From fda3565fc36ad5f88435a5b77a6f7cfaefb0d47d Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 16 Feb 2023 09:52:36 +0000 Subject: [PATCH] chore(release): 10.5.0 [skip ci] # [10.5.0](https://github.com/CESNET/perun-web-apps/compare/v10.4.3...v10.5.0) (2023-02-16) ### Bug Fixes * **admin:** align app state and type icons ([50a5b8c](https://github.com/CESNET/perun-web-apps/commit/50a5b8c04fd7ce7831d08a7a2c15c4350c899ea0)) * **admin:** fix translation of removing manager dialogue ([16b73ab](https://github.com/CESNET/perun-web-apps/commit/16b73ab2a82da5738d47f37c59adf466c1dd1db0)), closes [CESNET/perun#3855](https://github.com/CESNET/perun/issues/3855) * **admin:** fixed a bug that caused admin user detail page to display incorrect icon ([ecd9437](https://github.com/CESNET/perun-web-apps/commit/ecd9437f5ac4dad8fe194242c054d3f4aebb5982)) * **admin:** fixed a bug that caused an incorrect member to initially load on the user accounts page ([684e3ce](https://github.com/CESNET/perun-web-apps/commit/684e3cec6a52a9dc5ffaeac1752b333b4b3b5ff2)) * **admin:** replace mat-selects for our custom search selects ([76fc9eb](https://github.com/CESNET/perun-web-apps/commit/76fc9ebe6f154b6dfc4daf3111581108f58053b2)) * **admin:** send invitation to one member ([0ff54a1](https://github.com/CESNET/perun-web-apps/commit/0ff54a19b2baac48a00ca51b64f8c263be40b806)) * **apps:** Apps config were lot loaded ([5c2b387](https://github.com/CESNET/perun-web-apps/commit/5c2b387e009cdde6257b62e053273c509f962eaf)) * do not call checkPasswordStrength without authorization unless explicitly needed ([2c19ece](https://github.com/CESNET/perun-web-apps/commit/2c19ece3e54065a344f9585c53f28317868848e6)) * fixed a bug that caused properties of object in instanceConfig that weren't in the same object in defaultConfig to not load at all ([f607002](https://github.com/CESNET/perun-web-apps/commit/f607002c71a1e692f145cd6a5488e099be1e6904)) * **profile:** added missing translation ([076be32](https://github.com/CESNET/perun-web-apps/commit/076be32f06a90122f99060b5ed05f92b166d92c3)) ### Features * added new method to notificator which manage translation of notification ([154f665](https://github.com/CESNET/perun-web-apps/commit/154f6655ab1e7d92ffc871f3226b7fe1abc8233b)) * **admin:** allow sorting members by email, org and statuses ([f5952b1](https://github.com/CESNET/perun-web-apps/commit/f5952b1d5f540f860500fba3ef54201ef19ab0b7)) * **admin:** auto-approve error ([06059dd](https://github.com/CESNET/perun-web-apps/commit/06059ddc6baf90b14bcb0b9310ca2bbee8a8bf71)) * **admin:** member candidates bulk operations ([a4c3fac](https://github.com/CESNET/perun-web-apps/commit/a4c3fac8b3718baa4c7b6c48f34429ce35362d62)) --- dist/apps/admin-gui/254.9437b8119450dc1c.js | 1 - dist/apps/admin-gui/254.98b9b46c9327ea59.js | 1 + dist/apps/admin-gui/283.6fb68f2866b58a16.js | 1 + ...8.eece52703f68413f.js => 338.b5a1b8ce27f85e05.js} | 2 +- dist/apps/admin-gui/705.192e8293555087df.js | 1 + dist/apps/admin-gui/705.b8b7f12d1e85c8dc.js | 1 - ...5.69d90981bcc1b878.js => 775.7b77420afc2b970f.js} | 2 +- dist/apps/admin-gui/839.7b40c505f923811d.js | 1 - ...7.1e001fc658db11fa.js => 907.12b02d1e1fc3f8db.js} | 2 +- dist/apps/admin-gui/assets/config/version.json | 2 +- dist/apps/admin-gui/assets/i18n/en.json | 12 +++++++----- dist/apps/admin-gui/index.html | 2 +- dist/apps/admin-gui/main.3ff7b12e6fa8c390.js | 1 + dist/apps/admin-gui/main.9694654c1539d260.js | 1 - ...ff2a249a8da639.js => runtime.864e3f1ca64f759d.js} | 2 +- dist/apps/consolidator/index.html | 2 +- dist/apps/consolidator/main.c6513d07c9b825d5.js | 1 + dist/apps/consolidator/main.d5ea60c5d477fb05.js | 1 - dist/apps/linker/index.html | 2 +- dist/apps/linker/main.317f8a362b8a9b1d.js | 1 + dist/apps/linker/main.8d26f22202574299.js | 1 - dist/apps/password-reset/index.html | 2 +- dist/apps/password-reset/main.86c4baf8728ceb35.js | 1 + dist/apps/password-reset/main.aa61a0d1e3098c62.js | 1 - dist/apps/publications/index.html | 2 +- dist/apps/publications/main.2efb5ba8f16a550e.js | 1 - dist/apps/publications/main.395dea0fc73b2003.js | 1 + dist/apps/user-profile/index.html | 2 +- dist/apps/user-profile/main.05b408dd82998862.js | 1 + dist/apps/user-profile/main.23eb62dee0f373c6.js | 1 - 30 files changed, 27 insertions(+), 25 deletions(-) delete mode 100644 dist/apps/admin-gui/254.9437b8119450dc1c.js create mode 100644 dist/apps/admin-gui/254.98b9b46c9327ea59.js create mode 100644 dist/apps/admin-gui/283.6fb68f2866b58a16.js rename dist/apps/admin-gui/{338.eece52703f68413f.js => 338.b5a1b8ce27f85e05.js} (99%) create mode 100644 dist/apps/admin-gui/705.192e8293555087df.js delete mode 100644 dist/apps/admin-gui/705.b8b7f12d1e85c8dc.js rename dist/apps/admin-gui/{775.69d90981bcc1b878.js => 775.7b77420afc2b970f.js} (99%) delete mode 100644 dist/apps/admin-gui/839.7b40c505f923811d.js rename dist/apps/admin-gui/{907.1e001fc658db11fa.js => 907.12b02d1e1fc3f8db.js} (99%) create mode 100644 dist/apps/admin-gui/main.3ff7b12e6fa8c390.js delete mode 100644 dist/apps/admin-gui/main.9694654c1539d260.js rename dist/apps/admin-gui/{runtime.faff2a249a8da639.js => runtime.864e3f1ca64f759d.js} (92%) create mode 100644 dist/apps/consolidator/main.c6513d07c9b825d5.js delete mode 100644 dist/apps/consolidator/main.d5ea60c5d477fb05.js create mode 100644 dist/apps/linker/main.317f8a362b8a9b1d.js delete mode 100644 dist/apps/linker/main.8d26f22202574299.js create mode 100644 dist/apps/password-reset/main.86c4baf8728ceb35.js delete mode 100644 dist/apps/password-reset/main.aa61a0d1e3098c62.js delete mode 100644 dist/apps/publications/main.2efb5ba8f16a550e.js create mode 100644 dist/apps/publications/main.395dea0fc73b2003.js create mode 100644 dist/apps/user-profile/main.05b408dd82998862.js delete mode 100644 dist/apps/user-profile/main.23eb62dee0f373c6.js diff --git a/dist/apps/admin-gui/254.9437b8119450dc1c.js b/dist/apps/admin-gui/254.9437b8119450dc1c.js deleted file mode 100644 index 159285f4e..000000000 --- a/dist/apps/admin-gui/254.9437b8119450dc1c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[254],{74254:(mu,ft,l)=>{l.r(ft),l.d(ft,{VosModule:()=>du});var _=l(36895),b=l(94364),te=l(25309),tt=l(69024),M=l(36769),h=l(61744),g=l(9244),p=l(81591),S=l(64080),G=l(21029),ee=l(41656),At=l(22158),Tt=l(82722),t=l(94650),F=l(77968),u=l(65412),et=l(15003),It=l(32597),P=l(97392),I=l(4859),T=l(51572),N=l(10266),Y=l(61283),it=l(4235),k=l(34198),Q=l(55660),m=l(89383),ie=l(29218),oe=l(45942),ne=l(28764);function ae(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function se(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.editGroup())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function re(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.deleteGroup())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function le(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.onSyncDetail())}),t.ALo(1,"groupSyncIcon"),t.TgZ(2,"mat-icon"),t.ALo(3,"groupSyncIconColor"),t._uU(4),t.ALo(5,"groupSyncIcon"),t.qZA()()}if(2&i){const e=t.oxw(3);t.Q6J("disabled","sync_disabled"===t.lcZ(1,5,e.group)),t.xp6(2),t.Tol(t.lcZ(3,7,e.group)),t.xp6(2),t.hij(" ",t.lcZ(5,9,e.group)," ")}}function ce(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",16),t.ALo(4,"translate"),t.ALo(5,"groupSyncToolTip"),t.YNc(6,le,6,11,"button",17),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" , ",t.lcZ(2,4,"GROUP_DETAIL.SYNCHRONIZATION"),": "),t.xp6(2),t.Q6J("matTooltipPosition","above")("matTooltip",t.lcZ(4,6,t.lcZ(5,8,e.group))),t.xp6(3),t.Q6J("ngIf",e.syncAuth)}}const pe=function(){return{color:"black"}},bt=function(i,a){return["/organizations",i,"groups",a]},vt=function(i){return["/organizations",i]};function ue(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,se,3,0,"button",10),t.YNc(11,re,3,0,"button",11),t.qZA(),t.TgZ(12,"div"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"span",12),t._uU(16),t.ALo(17,"translate"),t.ALo(18,"translate"),t.TgZ(19,"a",13),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(20),t.qZA(),t._uU(21),t.ALo(22,"translate"),t.YNc(23,ce,7,10,"span",2),t.qZA()()(),t._UZ(24,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,21,"GROUP_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(31,pe)),t.xp6(4),t.Q2q("data-cy","",e.group.shortName,"-shortName"),t.Q6J("perunWebAppsMiddleClickRouterLink",t.WLB(32,bt,e.vo.id.toString(),e.group.id.toString()))("routerLink",t.WLB(35,bt,e.vo.id,e.group.id))("queryParams",e.route.snapshot.queryParams),t.xp6(1),t.hij(" ",e.group.shortName," "),t.xp6(2),t.hij(" \xa0#",e.group.id," "),t.xp6(1),t.Q6J("ngIf","members"!==e.group.name&&e.editAuth),t.xp6(1),t.Q6J("ngIf","members"!==e.group.name&&e.deleteAuth),t.xp6(2),t.AsE("",t.lcZ(14,23,"GROUP_DETAIL.UUID"),": ",e.group.uuid,""),t.xp6(3),t.AsE(" ",t.lcZ(17,25,"GROUP_DETAIL.ENTITY"),", ",t.lcZ(18,27,"GROUP_DETAIL.VO_NAME"),": "),t.xp6(3),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(38,vt,e.vo.id.toString()))("routerLink",t.VKq(40,vt,e.vo.id))("queryParams",e.route.snapshot.queryParams),t.xp6(1),t.Oqu(e.vo.name),t.xp6(1),t.AsE(", ",t.lcZ(22,29,"GROUP_DETAIL.DESCRIPTION"),": ",e.group.description," "),t.xp6(2),t.Q6J("ngIf",e.syncEnabled)}}let de=(()=>{class i extends((0,At.T)()){constructor(e,o,n,s,r,d,A,v,D,X,gt){super(),this.sideMenuService=e,this.voService=o,this.route=n,this.sideMenuItemService=s,this.groupService=r,this.dialog=d,this.guiAuthResolver=A,this.router=v,this.entityStorageService=D,this.reloadEntityDetail=X,this.queryParamsRouter=gt,this.editAuth=!1,this.deleteAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[S.r.GROUP_SYNC_ENABLED,S.r.GROUP_LAST_SYNC_STATE,S.r.GROUP_LAST_SYNC_TIMESTAMP,S.r.GROUP_STRUCTURE_SYNC_ENABLED,S.r.GROUP_LAST_STRUCTURE_SYNC_STATE,S.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.reloadEntityDetail.entityDetailChange.pipe((0,Tt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()}),this.reloadData()}onSyncDetail(){const e=(0,g.kZ)();e.width="450px",e.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(G.Bp,e)}editGroup(){const e=(0,g.kZ)();e.width="450px",e.data={theme:"group-theme",group:this.group,dialogType:G.Eg.GROUP},this.dialog.open(G.rd,e).afterClosed().subscribe(n=>{n&&this.groupService.getGroupById(this.group.id).subscribe(s=>{this.group=s,this.setMenuItems()})})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),n=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.groupService.getGroupById(n).subscribe(r=>{this.group=r,this.entityStorageService.setEntity(this.group),(0,g.sF)("groups",this.group),(0,g.XI)(this.group,s.name),this.guiAuthResolver.isAuthorized("getRichGroupByIdWithAttributesByNames_int_List_policy",[this.group])?this.groupService.getRichGroupByIdWithAttributesByNames(n,this.attrNames).subscribe(d=>{this.group=d,this.syncEnabled=(0,g.bx)(d),this.syncAuth=this.guiAuthResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group])},()=>this.loading=!1):this.syncEnabled=!1,this.editAuth=this.guiAuthResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.group]),this.setMenuItems(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseVo(this.vo),o=this.sideMenuItemService.parseGroup(this.group);this.sideMenuService.setAccessMenuItems([e,o])}deleteGroup(){const e=(0,g.kZ)();e.width="500px",e.data={theme:"group-theme",groups:[this.group]},this.dialog.open(ee.P,e).afterClosed().subscribe(n=>{n&&this.queryParamsRouter.navigate(["../"],this.route)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(F.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(tt.V),t.Y36(h.ff),t.Y36(u.uw),t.Y36(p.x4),t.Y36(b.F0),t.Y36(p.fb),t.Y36(et.G),t.Y36(It.g))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","group-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-group-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"group-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","queryParams","auxclick"],[1,"text-muted"],["aria-label","Edit group","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["data-cy","vo-link",1,"group-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","queryParams","auxclick"],["aria-label","Edit group","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,ae,1,0,"mat-spinner",1),t.YNc(3,ue,25,42,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.group))},dependencies:[_.O5,_.PC,b.yS,P.Hw,I.lW,T.Ou,N.gM,Y.A,it.W,k.Y,Q.Q,m.X$,ie.J,oe.r,ne.F],data:{animation:[M.Ji]}}),i})();function _e(i,a){1&i&&t._UZ(0,"mat-spinner",3)}const Et=function(i){return["/admin","users",i]};function me(i,a){if(1&i&&(t.TgZ(0,"a",8),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(3,Et,e.member.userId.toString()))("routerLink",t.VKq(5,Et,e.member.userId)),t.xp6(1),t.hij(" ",e.member.userId," ")}}function ge(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(e.member.userId)}}const he=function(){return{color:"black"}},Ct=function(i,a){return["/organizations",i,"members",a]};function fe(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA()(),t.TgZ(10,"span",10),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"translate"),t.YNc(14,me,2,7,"a",11),t.YNc(15,ge,2,1,"span",2),t.qZA()()(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,11,"MEMBER_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(17,he)),t.xp6(4),t.Q2q("data-cy","",e.member.user.firstName,"-firstName"),t.Q6J("perunWebAppsMiddleClickRouterLink",t.WLB(18,Ct,e.vo.id.toString(),e.member.id.toString()))("routerLink",t.WLB(21,Ct,e.vo.id,e.member.id)),t.xp6(1),t.hij(" ",e.fullName," "),t.xp6(2),t.hij(" \xa0#",e.member.id," "),t.xp6(2),t.AsE(" ",t.lcZ(12,13,"MEMBER_DETAIL.ENTITY"),", ",t.lcZ(13,15,"MEMBER_DETAIL.USER_ID"),": "),t.xp6(3),t.Q6J("ngIf",e.isAuthorized),t.xp6(1),t.Q6J("ngIf",!e.isAuthorized)}}let Ae=(()=>{class i{constructor(e,o,n,s,r,d,A,v){this.sideMenuItemService=e,this.translate=o,this.sideMenuService=n,this.membersService=s,this.voService=r,this.route=d,this.authResolver=A,this.entityService=v,this.fullName="",this.isAuthorized=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),n=Number(e.memberId);this.isAuthorized=this.authResolver.isPerunAdminOrObserver(),this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.membersService.getRichMemberWithAttributes(n).subscribe(r=>{this.member=r,this.entityService.setEntity({id:r.id,beanName:r.beanName,voId:r.voId,userId:r.userId});const d=this.sideMenuItemService.parseVo(this.vo),A=this.sideMenuItemService.parseMember(this.member);this.fullName=A.label,this.sideMenuService.setAccessMenuItems([d,A]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(tt.V),t.Y36(m.sK),t.Y36(F.D),t.Y36(h.uq),t.Y36(h.YF),t.Y36(b.gz),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-detail-page"]],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","member-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"member-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],[1,"mt-1","entity-info"],["class","member-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick",4,"ngIf"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,_e,1,0,"mat-spinner",1),t.YNc(3,fe,17,24,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.member))},dependencies:[_.O5,_.PC,b.yS,P.Hw,T.Ou,N.gM,Y.A,it.W,k.Y,Q.Q,m.X$],data:{animation:[M.Ji]}}),i})();var J=l(71135);function Te(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Ie(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let be=(()=>{class i{constructor(e,o,n,s,r,d){this.sideMenuService=e,this.voService=o,this.router=n,this.authResolver=s,this.entityStorageService=r,this.routePolicyService=d,this.items=[],this.navItems=[],this.loading=!1}ngDoCheck(){const e=this.vo.id;this.vo=this.entityStorageService.getEntity(),e!==this.vo.id&&this.initNavItems()}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initNavItems(),this.loading=!1}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("organizations-members",this.vo)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/members`,label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-groups",this.vo)&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups`,label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources",this.vo)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.vo.id}/resources`,label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-applications",this.vo)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.vo.id}/applications`,label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",this.vo)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/sponsoredMembers`,label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",this.vo)&&this.navItems.push({cssIcon:"perun-service-identity",url:`/organizations/${this.vo.id}/serviceAccounts`,label:"MENU_ITEMS.VO.SERVICE_MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-attributes",this.vo)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/attributes`,label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-statistics",this.vo)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.vo.id}/statistics`,label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings",this.vo)&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.vo.id}/settings`,label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(F.D),t.Y36(h.YF),t.Y36(b.F0),t.Y36(p.x4),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-overview"]],decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,Te,1,0,"mat-spinner",0),t.YNc(1,Ie,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,T.Ou,J.L]}),i})();var ve=l(4732),Ee=l(81847),Ce=l(11717);function Se(i,a){1&i&&(t.TgZ(0,"span"),t._uU(1,", "),t.qZA())}const St=function(i){return["/organizations",i]};function xe(i,a){if(1&i&&(t.TgZ(0,"span")(1,"a",2),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(2),t.qZA(),t.YNc(3,Se,2,0,"span",1),t.qZA()),2&i){const e=a.$implicit,o=a.index,n=t.oxw();t.xp6(1),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(4,St,e.id.toString()))("routerLink",t.VKq(6,St,e.id.toString())),t.xp6(1),t.hij(" ",e.name," "),t.xp6(1),t.Q6J("ngIf",n.vos.length>o+1)}}function Ne(i,a){1&i&&(t.TgZ(0,"span"),t._uU(1,"\u2026"),t.qZA())}let Oe=(()=>{class i{constructor(){this.vos=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-related-vos"]],inputs:{title:"title",vos:"vos"},decls:4,vars:5,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"vo-link","pointer",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"]],template:function(e,o){1&e&&(t._uU(0),t.ALo(1,"translate"),t.YNc(2,xe,4,8,"span",0),t.YNc(3,Ne,2,0,"span",1)),2&e&&(t.hij("",t.lcZ(1,3,o.title),":\n"),t.xp6(2),t.Q6J("ngForOf",o.vos.slice(0,3)),t.xp6(1),t.Q6J("ngIf",o.vos.length>3))},dependencies:[_.sg,_.O5,b.yS,k.Y,Q.Q,m.X$],styles:[".pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Ze(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function De(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.editVo())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Me(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.removeVo())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function Le(i,a){if(1&i&&t._UZ(0,"app-related-vos",16),2&i){const e=t.oxw(2);t.Q6J("title","VO_DETAIL.RELATED_VOS.MEMBER_VOS")("vos",e.enrichedVo.memberVos)}}function Re(i,a){if(1&i&&t._UZ(0,"app-related-vos",16),2&i){const e=t.oxw(2);t.Q6J("title","VO_DETAIL.RELATED_VOS.PARENT_VOS")("vos",e.enrichedVo.parentVos)}}const we=function(){return{color:"black"}},Ge=function(i){return["/organizations",i]},Ue=function(i){return["/organizations/",i]};function Pe(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,De,3,0,"button",10),t.YNc(11,Me,3,0,"button",11),t.qZA(),t.TgZ(12,"span",12),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.YNc(16,Le,1,2,"app-related-vos",13),t.YNc(17,Re,1,2,"app-related-vos",13),t.qZA()()(),t._UZ(18,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,15,"VO_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(21,we))("svgIcon",0!==e.enrichedVo.memberVos.length?"perun-hierarchical-vo":"perun-vo-black"),t.xp6(4),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(22,Ge,e.vo.id.toString()))("routerLink",t.VKq(24,Ue,e.vo.id))("queryParams",e.route.snapshot.queryParams),t.xp6(1),t.hij(" ",e.vo.name," "),t.xp6(2),t.hij(" \xa0#",e.vo.id," "),t.xp6(1),t.Q6J("ngIf",e.editAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(2),t.lnq(" ",t.lcZ(14,17,"VO_DETAIL.ENTITY"),", ",t.lcZ(15,19,"VO_DETAIL.SHORT_NAME"),": ",e.vo.shortName+(e.enrichedVo.memberVos.length+e.enrichedVo.parentVos.length?",":"")," "),t.xp6(3),t.Q6J("ngIf",0!==e.enrichedVo.memberVos.length),t.xp6(1),t.Q6J("ngIf",0!==e.enrichedVo.parentVos.length)}}let ye=(()=>{class i extends((0,At.T)()){constructor(e,o,n,s,r,d,A,v,D,X){super(),this.sideMenuService=e,this.voService=o,this.route=n,this.router=s,this.sideMenuItemService=r,this.dialog=d,this.authResolver=A,this.entityStorageService=v,this.reloadEntityDetail=D,this.queryParamsRouter=X,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,Tt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId);this.voService.getEnrichedVoById(o).subscribe(n=>{this.vo=n.vo,this.enrichedVo=n,this.entityStorageService.setEntity({id:this.vo.id,beanName:this.vo.beanName}),this.editAuth=this.authResolver.isAuthorized("updateVo_Vo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("deleteVo_Vo_policy",[this.vo]),this.setMenuItems(),(0,g.sF)("vos",this.vo),(0,g.XI)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const e=(0,g.kZ)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:G.Eg.VO},this.dialog.open(G.rd,e).afterClosed().subscribe(n=>{n&&this.voService.getVoById(this.vo.id).subscribe(s=>{this.vo=s,this.setMenuItems()})})}setMenuItems(){const n=this.sideMenuItemService.parseVo(this.vo,0!==this.enrichedVo.memberVos.length,0!==this.enrichedVo.parentVos.length);this.sideMenuService.setAccessMenuItems([n])}removeVo(){const e=(0,g.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(Ce.o,e).afterClosed().subscribe(n=>{n&&this.queryParamsRouter.navigate([""])})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(F.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(b.F0),t.Y36(tt.V),t.Y36(u.uw),t.Y36(p.x4),t.Y36(p.fb),t.Y36(et.G),t.Y36(It.g))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","vo-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle","svgIcon"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["data-cy","vo-name-link",1,"vo-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","queryParams","auxclick"],[1,"text-muted"],["mat-icon-button","","aria-label","Edit Vo",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[3,"title","vos",4,"ngIf"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click"],[3,"title","vos"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Ze,1,0,"mat-spinner",1),t.YNc(3,Pe,19,26,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo))},dependencies:[_.O5,_.PC,b.yS,P.Hw,I.lW,T.Ou,N.gM,Y.A,it.W,k.Y,Q.Q,Oe,m.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[M.Ji]}}),i})();var c=l(30671),Ve=l(58964),Fe=l(19352),U=l(73546),Ye=l(12488),Je=l(93057);let qe=(()=>{class i{transform(e){return(0,g.Cz)(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"attributeFriendlyName",type:i,pure:!0}),i})();var B=l(31359),ke=l(62383);function Qe(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Be(i,a){1&i&&t._UZ(0,"th",19)}function He(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[0],": ")}}function je(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"attributeFriendlyName"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e),": ")}}function ze(i,a){if(1&i&&(t.TgZ(0,"td",20),t.YNc(1,He,2,1,"span",1),t.YNc(2,je,3,3,"span",1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",null!==o.attributes.get(e)[0]),t.xp6(1),t.Q6J("ngIf",null===o.attributes.get(e)[0])}}function $e(i,a){1&i&&t._UZ(0,"th",19)}function Xe(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[1]," ")}}function Ke(i,a){1&i&&t._UZ(0,"tr",22)}function We(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card",5)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",6),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content",23)(7,"div",24),t.ALo(8,"translate"),t.TgZ(9,"button",25),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.requestPwdReset())}),t._uU(10),t.ALo(11,"translate"),t.qZA()()()()}if(2&i){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),t.xp6(3),t.Q6J("matTooltipDisabled",e.logins.length>0)("matTooltip",t.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED")),t.xp6(2),t.Q6J("disabled",!e.logins.length),t.xp6(1),t.hij(" ",t.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function ti(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")," "))}function ei(i,a){if(1&i&&(t.TgZ(0,"td",35),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.user)," ")}}function ii(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")," "))}function oi(i,a){if(1&i&&(t.TgZ(0,"td",35)(1,"span",36),t._uU(2),t.ALo(3,"parseDate"),t.qZA()()),2&i){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.validityTo))}}function ni(i,a){1&i&&t._UZ(0,"tr",37)}function ai(i,a){1&i&&t._UZ(0,"tr",22)}const xt=function(){return["sponsors","expiration"]};function si(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card-content")(1,"h6",28),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"button",29),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.changeSponsors())}),t.TgZ(5,"mat-icon"),t._uU(6,"edit"),t.qZA()()(),t.TgZ(7,"table",30),t.ynx(8,31),t.YNc(9,ti,3,3,"th",9),t.YNc(10,ei,3,3,"td",32),t.BQk(),t.ynx(11,33),t.YNc(12,ii,3,3,"th",9),t.YNc(13,oi,4,3,"td",32),t.BQk(),t.YNc(14,ni,1,0,"tr",34),t.YNc(15,ai,1,0,"tr",13),t.qZA()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),t.xp6(5),t.Q6J("dataSource",e.sponsorsDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(6,xt)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(7,xt))}}function ri(i,a){if(1&i&&(t.TgZ(0,"div")(1,"mat-card",26)(2,"mat-card-header")(3,"mat-card-title")(4,"h1",6),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"mat-card-subtitle",27),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.YNc(10,si,16,8,"mat-card-content",1),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(5),t.Oqu(t.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),t.xp6(3),t.hij(" ",t.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),t.xp6(2),t.Q6J("ngIf",0!==e.sponsors.length)}}function li(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",3)(2,"div",4)(3,"mat-card",5)(4,"mat-card-header")(5,"mat-card-title")(6,"h1",6),t._uU(7),t.ALo(8,"translate"),t.qZA()()(),t.TgZ(9,"mat-card-content")(10,"table",7),t.ynx(11,8),t.YNc(12,Be,1,0,"th",9),t.YNc(13,ze,3,2,"td",10),t.BQk(),t.ynx(14,11),t.YNc(15,$e,1,0,"th",9),t.YNc(16,Xe,2,1,"td",12),t.BQk(),t.YNc(17,Ke,1,0,"tr",13),t.qZA()()()(),t.TgZ(18,"div",4)(19,"mat-card",14),t._UZ(20,"perun-web-apps-member-overview-membership",15),t.qZA(),t.TgZ(21,"mat-card",16),t._UZ(22,"perun-web-apps-member-overview-groups",15),t.qZA()(),t.TgZ(23,"div",4),t.YNc(24,We,12,11,"mat-card",17),t.YNc(25,ri,11,7,"div",1),t.qZA()(),t.TgZ(26,"div"),t._UZ(27,"perun-web-apps-menu-buttons-field",18),t.qZA()()),2&i){const e=t.oxw();t.xp6(7),t.Oqu(t.lcZ(8,11,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),t.xp6(3),t.Q6J("dataSource",e.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(3),t.Q6J("member",e.member)("voId",e.vo.id),t.xp6(2),t.Q6J("member",e.member)("voId",e.vo.id),t.xp6(2),t.Q6J("ngIf",e.pwdResetAuth),t.xp6(1),t.Q6J("ngIf",e.member.sponsored),t.xp6(2),t.Q6J("items",e.navItems)("size","small")}}let ci=(()=>{class i{constructor(e,o,n,s,r,d,A,v){this.attributesManager=e,this.membersService=o,this.usersManager=n,this.route=s,this.dialog=r,this.authResolver=d,this.storeService=A,this.routePolicyService=v,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new c.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new c.by,this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{const o=Number(e.memberId);this.attributeNames=this.storeService.getMemberProfileAttributeNames(),this.membersService.getRichMemberWithAttributes(o).subscribe(n=>{this.attUrns=this.storeService.getProperty("password_namespace_attributes").map(s=>{const r=s.split(":");return r[r.length-1]}),this.attributesManager.getLogins(n.userId).subscribe(s=>{this.logins=s.filter(r=>this.attUrns.includes(r.friendlyNameParameter)),this.member=n,this.initAttributes(),this.dataSource=new c.by(Array.from(this.attributes.keys())),this.vo={id:n.voId,beanName:"Vo"},this.pwdResetAuth=this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[this.vo,this.member]),this.member.sponsored&&this.authResolver.isAuthorized("getSponsorsForMember_Member_List_policy",[this.member])?this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(r=>{this.sponsors=r,this.sponsorsDataSource=new c.by(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}requestPwdReset(){const e=(0,g.kZ)();e.width="400px",e.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(Ve.m,e)}changeSponsors(){const e=(0,g.kZ)();e.width="650px",e.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(Fe.H,e).afterClosed().subscribe(n=>{n&&(this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(s=>{this.member=s,this.member.sponsored&&this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(r=>{this.sponsors=r,this.sponsorsDataSource.data=this.sponsors}),this.loading=!1}))})}initAttributes(){this.attributeNames.forEach(e=>{this.attributes.set(e,[null,"-"])}),this.filterAttributes()}filterAttributes(){null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(e=>{this.attributeNames.includes(e.friendlyName)&&this.attributes.set(e.friendlyName,[e.displayName,e.value])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(e=>{this.attributeNames.includes(e.friendlyName)&&this.attributes.set(e.friendlyName,[e.displayName,e.value])})}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("members-groups",this.member)&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.member.voId}/members/${this.member.id}/groups`,label:"MENU_ITEMS.MEMBER.GROUPS",style:"member-btn"}),this.routePolicyService.canNavigate("members-applications",this.member)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.member.voId}/members/${this.member.id}/applications`,label:"MENU_ITEMS.MEMBER.APPLICATIONS",style:"member-btn"}),this.routePolicyService.canNavigate("members-resources",this.member)&&this.navItems.push({cssIcon:"perun-resource",url:`/organizations/${this.member.voId}/members/${this.member.id}/resources`,label:"MENU_ITEMS.MEMBER.RESOURCES",style:"member-btn"}),this.routePolicyService.canNavigate("members-attributes",this.member)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/members/${this.member.id}/attributes`,label:"MENU_ITEMS.MEMBER.ATTRIBUTES",style:"member-btn"}),this.routePolicyService.canNavigate("members-bans",this.member)&&this.navItems.push({cssIcon:"perun-ban",url:`/organizations/${this.vo.id}/members/${this.member.id}/bans`,label:"MENU_ITEMS.MEMBER.BANS",style:"member-btn"})}refreshData(){this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(e=>{this.member=e,this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(b.gz),t.Y36(u.uw),t.Y36(p.x4),t.Y36(p.d6),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"member-cards"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mat-elevation-z3","membership-card"],[3,"member","voId"],[1,"mat-elevation-z3","membership-card","mt-4"],["class","mat-elevation-z3",4,"ngIf"],[3,"items","size"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],["mat-row",""],[1,"column-center"],[3,"matTooltipDisabled","matTooltip"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],[1,"mat-elevation-z3","mt-4"],[1,"mt-n3"],[1,"d-flex"],["mat-icon-button","",1,"ml-auto","mt-n2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","sponsors"],["mat-cell","",4,"matCellDef"],["matColumnDef","expiration"],["mat-header-row","",4,"matHeaderRowDef"],["mat-cell",""],[1,"font-italic"],["mat-header-row",""]],template:function(e,o){1&e&&(t.YNc(0,Qe,1,0,"mat-spinner",0),t.YNc(1,li,28,13,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,P.Hw,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,I.lW,T.Ou,N.gM,U.a8,U.dk,U.dn,U.n5,U.$j,J.L,Ye.b,Je.z,m.X$,qe,B.d,ke.M],styles:[".vert-center[_ngcontent-%COMP%]{vertical-align:inherit!important}.vert-top[_ngcontent-%COMP%]{vertical-align:top}.column-center[_ngcontent-%COMP%]{text-align:center}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.member-cards[_ngcontent-%COMP%]{margin:0 -1rem}.membership-card[_ngcontent-%COMP%]{max-width:400px}"]}),i})();var pi=l(85243);function ui(i,a){1&i&&t._UZ(0,"mat-spinner",2)}const Nt=function(i,a){return["/organizations",i,"groups",a]};function di(i,a){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"a",4),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,4,"GROUP_DETAIL.SUBGROUP_INFO")," "),t.xp6(2),t.Q6J("perunWebAppsMiddleClickRouterLink",t.WLB(6,Nt,e.parentGroup.voId.toString(),e.parentGroup.id.toString()))("routerLink",t.WLB(9,Nt,e.parentGroup.voId,e.parentGroup.id)),t.xp6(1),t.hij(" ",e.parentGroup.name," ")}}function _i(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,di,5,12,"p",1),t._UZ(2,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!==e.parentGroup),t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let mi=(()=>{class i{constructor(e,o,n,s,r,d,A,v,D){this.route=e,this.groupService=o,this.voService=n,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=d,this.notificator=A,this.entityStorageService=v,this.routePolicyService=D,this.navItems=[],this.parentGroup=null,this.loading=!1}ngOnInit(){this.loading=!0,this.loadData()}loadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),n=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.groupService.getGroupById(n).subscribe(r=>{if(this.group=r,this.entityStorageService.setEntity(this.group),(0,g.sF)("groups",this.group),(0,g.XI)(this.group,s.name),this.loadParentGroupData(this.group.parentGroupId),null==this.group.parentGroupId)return this.parentGroup=null,this.initNavItems(),void(this.loading=!1);this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}loadParentGroupData(e){null!=e&&this.groupService.getGroupById(e).subscribe(o=>{this.parentGroup=o,this.initNavItems(),this.loading=!1},()=>this.loading=!1)}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("groups-members",this.group)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.group.voId}/groups/${this.group.id}/members`,label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-subgroups",this.group)&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/subgroups`,label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-resources",this.group)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.group.voId}/groups/${this.group.id}/resources`,label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),"members"!==this.group.name&&this.routePolicyService.canNavigate("groups-applications",this.group)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.group.voId}/groups/${this.group.id}/applications`,label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-attributes",this.group)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.group.voId}/groups/${this.group.id}/attributes`,label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"}),this.routePolicyService.canNavigate("groups-statistics",this.group)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.group.voId}/groups/${this.group.id}/statistics`,label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-roles",this.group)&&this.navItems.push({cssIcon:"perun-roles",url:`/organizations/${this.group.voId}/groups/${this.group.id}/roles`,label:"MENU_ITEMS.GROUP.ROLES",style:"group-btn"});let e=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{e=!0},o=>{"PrivilegeException"!==o.name&&this.notificator.showRPCError(o)}),(e||this.routePolicyService.canNavigate("groups-settings",this.group))&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings`,label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.ff),t.Y36(h.YF),t.Y36(p.x4),t.Y36(p.F5),t.Y36(h.H8),t.Y36(p.V6),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"],[1,"group-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"]],template:function(e,o){1&e&&(t.YNc(0,ui,1,0,"mat-spinner",0),t.YNc(1,_i,3,3,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,b.yS,T.Ou,J.L,k.Y,Q.Q,m.X$]}),i})();var gi=l(15592);let hi=(()=>{class i{constructor(e){this.route=e}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[M.Ji]}}),i})();var fi=l(94856);let Ai=(()=>{class i{constructor(e,o){this.route=e,this.router=o,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=o.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),o.events.subscribe(n=>{n instanceof b.m2&&(this.currentUrl=n.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl))})}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[M.Ji]}}),i})();var ot=l(12651);let Ti=(()=>{class i{constructor(e){this.entityStorageService=e}ngOnInit(){this.vo=this.entityStorageService.getEntity()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityId","entity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._UZ(4,"app-one-entity-attribute-page",1),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("entityId",o.vo.id)("entity","vo"))},dependencies:[ot.t,m.X$]}),i})();function Ii(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function bi(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let vi=(()=>{class i{constructor(e,o,n,s){this.voService=e,this.router=o,this.entityStorageService=n,this.routePolicyService=s,this.items=[],this.loading=!1,this.isMemberOfSomeOrganization=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.isMemberOfSomeOrganization=0!==e.parentVos.length,this.initItems(),this.loading=!1})}initItems(){this.items=[],this.routePolicyService.canNavigate("organizations-settings-expiration",this.vo)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/settings/expiration`,label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-managers",this.vo)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/settings/managers`,label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",this.vo)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/settings/applicationForm`,label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-notifications",this.vo)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/settings/notifications`,label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-extsources",this.vo)&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.vo.id}/settings/extsources`,label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",this.vo)&&this.items.push({cssIcon:"perun-hierarchical-vo",url:`/organizations/${this.vo.id}/settings/memberOrganizations`,label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",this.vo)&&this.isMemberOfSomeOrganization&&this.items.push({cssIcon:"perun-hierarchical-inclusion",url:`/organizations/${this.vo.id}/settings/hierarchicalInclusion`,label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-bans",this.vo)&&this.items.push({cssIcon:"perun-ban",url:`/organizations/${this.vo.id}/settings/bans`,label:"MENU_ITEMS.VO.BANS",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(b.F0),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,Ii,1,0,"mat-spinner",0),t.YNc(1,bi,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,T.Ou,J.L]}),i})();var H=l(3238),x=l(59549),y=l(284),f=l(24006),j=l(56709),z=l(84385),nt=l(90455),Ot=l(71948);const Ei=["*"];let Ci=(()=>{class i{constructor(){this.modelChange=new t.vpe}ngAfterViewInit(){this.toggle.change.subscribe(()=>this.valueChanged())}valueChanged(){this.modelChange.emit(this.toggle.checked)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-settings-toggle-item"]],viewQuery:function(e,o){if(1&e&&t.Gf(nt.Rr,7),2&e){let n;t.iGM(n=t.CRH())&&(o.toggle=n.first)}},inputs:{title:"title",modelValue:"modelValue"},outputs:{modelChange:"modelChange"},ngContentSelectors:Ei,decls:8,vars:5,consts:[[1,"mt-3"],[1,"d-flex","flex-row","align-items-baseline","justify-content-between"],[1,"setting-item","clickable",3,"click"],["color","primary",1,"ml-4",3,"ngModel","ngModelChange"],["toggle",""],[1,"ml-1"]],template:function(e,o){if(1&e){const n=t.EpF();t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"label",2),t.NdJ("click",function(){t.CHM(n);const r=t.MAs(5);return t.KtG(r.toggle()||o.valueChanged())}),t._uU(3),t.qZA(),t.TgZ(4,"mat-slide-toggle",3,4),t.NdJ("ngModelChange",function(r){return o.modelValue=r}),t.qZA()(),t.TgZ(6,"div",5),t.Hsn(7),t.qZA()()}if(2&e){const n=t.MAs(5);t.xp6(2),t.ekj("unselected-setting",!n.checked),t.xp6(1),t.hij(" ",o.title," "),t.xp6(1),t.Q6J("ngModel",o.modelValue),t.xp6(2),t.Q6J("@openClose",n.checked?"open":"closed")}},dependencies:[f.JJ,f.On,nt.Rr],data:{animation:[M.BQ]}}),i})();function Si(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",25)(1,"mat-form-field",26)(2,"input",20),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodStatic=n)}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.periodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function xi(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Ni(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"mat-form-field",19)(2,"input",27),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodDynamic=n)}),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodDynamicUnit=n)}),t.YNc(9,xi,2,2,"mat-option",17),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.periodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.periodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function Oi(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Zi(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Di(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Mi(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Li(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",25)(1,"mat-form-field",26)(2,"input",20),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodStatic=n)}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Ri(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function wi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"mat-form-field",19)(2,"input",20),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodDynamic=n)}),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodDynamicUnit=n)}),t.YNc(9,Ri,2,2,"mat-option",17),t.qZA()()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function Gi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",29)(1,"mat-radio-group",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.specialLoaPeriodType=n)}),t.TgZ(2,"mat-radio-button",9,30),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"mat-radio-button",11,31),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.YNc(10,Li,7,8,"div",13),t.YNc(11,wi,10,10,"div",14),t.TgZ(12,"div")(13,"mat-checkbox",32),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.specialLoaPeriodExtendExpiredMembers=n)}),t._uU(14),t.ALo(15,"translate"),t.qZA()()()}if(2&i){const e=t.MAs(3),o=t.MAs(7),n=t.oxw(2);t.xp6(1),t.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodType),t.xp6(3),t.hij(" ",t.lcZ(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),t.xp6(4),t.hij(" ",t.lcZ(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),t.xp6(2),t.Q6J("ngIf",e.checked),t.xp6(1),t.Q6J("ngIf",o.checked),t.xp6(2),t.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodExtendExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function Ui(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2)(2,"h1",3),t.NdJ("click",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.toggle())}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"mat-slide-toggle",4,5),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.enabled=n)}),t.qZA()(),t.TgZ(7,"div")(8,"label",6),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",7)(12,"mat-radio-group",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.periodType=n)}),t.TgZ(13,"mat-radio-button",9,10),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"mat-radio-button",11,12),t._uU(19),t.ALo(20,"translate"),t.qZA()(),t.YNc(21,Si,7,8,"div",13),t.YNc(22,Ni,10,10,"div",14),t.qZA(),t.TgZ(23,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotAllowLoasEnabled=n)}),t.ALo(24,"translate"),t.TgZ(25,"mat-form-field")(26,"mat-placeholder"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"mat-select",16),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotAllowLoas=n)}),t.YNc(30,Oi,2,2,"mat-option",17),t.qZA()()(),t.TgZ(31,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotExtendLoasEnabled=n)}),t.ALo(32,"translate"),t.TgZ(33,"mat-form-field")(34,"mat-placeholder"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t.TgZ(37,"mat-select",16),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotExtendLoas=n)}),t.YNc(38,Zi,2,2,"mat-option",17),t.qZA()()(),t.TgZ(39,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriodEnabled=n)}),t.ALo(40,"translate"),t.TgZ(41,"div",18)(42,"mat-form-field",19)(43,"input",20),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriod=n)}),t.ALo(44,"translate"),t.qZA()(),t.TgZ(45,"mat-form-field")(46,"mat-label"),t._uU(47),t.ALo(48,"translate"),t.qZA(),t.TgZ(49,"mat-select",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriodUnit=n)}),t.YNc(50,Di,2,2,"mat-option",17),t.qZA()()()(),t.TgZ(51,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.specialLoaPeriodEnabled=n)}),t.ALo(52,"translate"),t.TgZ(53,"div",7)(54,"div")(55,"mat-form-field")(56,"mat-label"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"mat-select",8,21),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.specialLoa=n)}),t.YNc(61,Mi,2,2,"mat-option",17),t.qZA()(),t.YNc(62,Gi,16,13,"div",22),t.qZA()()()(),t.TgZ(63,"div",23),t.ALo(64,"translate"),t.TgZ(65,"button",24),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.saveChanges())}),t._uU(66),t.ALo(67,"translate"),t.qZA()()()}if(2&i){const e=t.MAs(6),o=t.MAs(14),n=t.MAs(18),s=t.oxw();t.xp6(2),t.ekj("unselected-setting",!e.checked),t.xp6(1),t.hij(" ",t.lcZ(4,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.enabled),t.xp6(2),t.Q6J("@openClose",e.checked?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(10,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),t.xp6(3),t.Q6J("ngModel",s.currentConfiguration.periodType),t.xp6(3),t.hij(" ",t.lcZ(16,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),t.xp6(4),t.hij(" ",t.lcZ(20,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),t.xp6(2),t.Q6J("ngIf",o.checked),t.xp6(1),t.Q6J("ngIf",n.checked),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.doNotAllowLoasEnabled)("modelValue",s.currentConfiguration.doNotAllowLoasEnabled)("title",t.lcZ(24,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),t.xp6(4),t.Oqu(t.lcZ(28,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.doNotAllowLoas),t.xp6(1),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.doNotExtendLoasEnabled)("modelValue",s.currentConfiguration.doNotExtendLoasEnabled)("title",t.lcZ(32,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),t.xp6(4),t.Oqu(t.lcZ(36,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.doNotExtendLoas),t.xp6(1),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.gracePeriodEnabled)("modelValue",s.currentConfiguration.gracePeriodEnabled)("title",t.lcZ(40,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),t.xp6(4),t.s9C("pattern",s.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(44,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),t.Q6J("ngModel",s.currentConfiguration.gracePeriod),t.xp6(4),t.Oqu(t.lcZ(48,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.gracePeriodUnit),t.xp6(1),t.Q6J("ngForOf",s.amountOptions),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.specialLoaPeriodEnabled)("modelValue",s.currentConfiguration.specialLoaPeriodEnabled)("title",t.lcZ(52,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),t.xp6(6),t.Oqu(t.lcZ(58,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.specialLoa),t.xp6(2),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngIf",null!==s.currentConfiguration.specialLoa),t.xp6(1),t.s9C("matTooltip",t.lcZ(64,70,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),t.Q6J("matTooltipDisabled",s.expirationAttribute.writable)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",!s.areChangesMade()||!s.expirationAttribute.writable),t.xp6(1),t.hij(" ",t.lcZ(67,72,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}let Zt=(()=>{class i{constructor(){this.saveAttribute=new t.vpe,this.loas=[0,1,2],this.datePattern="^(3[01]|[12][0-9]|0?[1-9])\\.(1[012]|0?[1-9])\\.$",this.dynamicAmountPattern="^[1-9]+$",this.amountOptions=[{value:"d",text:"Days"},{value:"m",text:"Months"},{value:"y",text:"Years"}]}ngOnInit(){const e=new Map;this.loas.forEach(o=>e.set(o,"")),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}ngOnChanges(e){e.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}saveChanges(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}areChangesMade(){const e=this.parseAttributeValueFromConfig(this.currentConfiguration),o=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===o?null!==e:null===e||e.period!==o.period||e.gracePeriod!==o.gracePeriod||e.doNotExtendLoa!==o.doNotExtendLoa||e.doNotAllowLoa!==o.doNotAllowLoa||e.periodLoa!==o.periodLoa}parseExpirationRulesAttribute(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}parsePeriod(e){switch(e.periodType){case"dynamic":return this.parseDynamicPeriod(e);case"static":return this.parseStaticPeriod(e)}}createInitConfiguration(){const e=new Map;return this.loas.forEach(o=>e.set(o,"")),{enabled:!1,periodType:null,periodStatic:"",periodDynamic:"",periodDynamicUnit:"m",doNotAllowLoas:[],doNotAllowLoasEnabled:!1,doNotExtendLoas:[],doNotExtendLoasEnabled:!1,gracePeriodEnabled:!1,gracePeriod:null,gracePeriodUnit:null,specialLoaPeriodEnabled:!1,specialLoaPeriod:"",specialLoa:null,specialLoaPeriodType:null,specialLoaPeriodDynamic:"",specialLoaPeriodDynamicUnit:"m",specialLoaPeriodStatic:"",specialLoaPeriodExtendExpiredMembers:!1}}unParseAttrValue(e){let o=this.createInitConfiguration();return null==e||(void 0!==e.period&&e.period.length>0&&(o=this.setPeriodValues(e,o)),void 0!==e.doNotAllowLoa&&e.doNotAllowLoa.length>0&&(o=this.setDoNotAllowLoasValues(e,o)),void 0!==e.doNotExtendLoa&&e.doNotExtendLoa.length>0&&(o=this.setDoNotExtendLoasValues(e,o)),void 0!==e.gracePeriod&&e.gracePeriod.length>0&&(o=this.setGracePeriodValues(e,o)),void 0!==e.periodLoa&&e.periodLoa.length>0&&(o=this.setSpecialLoaPeriodValues(e,o))),o}setPeriodValues(e,o){if(o.enabled=!0,e.period.startsWith("+")){o.periodType="dynamic";const n=e.period.charAt(e.period.length-1);o.periodDynamic=e.period.substring(1,e.period.length-1),o.periodDynamicUnit=n}else o.periodType="static",o.periodStatic=e.period;return o}setDoNotAllowLoasValues(e,o){const n=[];return e.doNotAllowLoa.split(",").forEach(s=>n.push(parseInt(s.trim(),10))),o.doNotAllowLoas=n,n.length>0&&(o.doNotAllowLoasEnabled=!0),o}setDoNotExtendLoasValues(e,o){const n=[];return e.doNotExtendLoa.split(",").forEach(s=>n.push(parseInt(s.trim(),10))),o.doNotExtendLoas=n,n.length>0&&(o.doNotExtendLoasEnabled=!0),o}setGracePeriodValues(e,o){o.gracePeriodEnabled=!0;const n=e.gracePeriod.charAt(e.gracePeriod.length-1);return o.gracePeriod=e.gracePeriod.substring(0,e.gracePeriod.length-1),o.gracePeriodUnit=n,o}setSpecialLoaPeriodValues(e,o){o.specialLoa=parseInt(e.periodLoa.substring(0,e.periodLoa.indexOf("|")),10),o.specialLoaPeriodEnabled=!0;let n=e.periodLoa.substring(e.periodLoa.indexOf("|")+1,e.periodLoa.length);if(n.startsWith("+")){n.endsWith(".")&&(o.specialLoaPeriodExtendExpiredMembers=!0,n=n.substring(0,n.length-1)),o.specialLoaPeriodType="dynamic";const s=n.charAt(n.length-1);o.specialLoaPeriodDynamic=n.substring(1,n.length-1),o.specialLoaPeriodDynamicUnit=s}else n.endsWith("..")&&(o.specialLoaPeriodExtendExpiredMembers=!0,n=n.substring(0,n.length-1)),o.specialLoaPeriodType="static",o.specialLoaPeriodStatic=n;return o}parseDynamicPeriod(e){return"+"+e.periodDynamic+e.periodDynamicUnit}parseStaticPeriod(e){return e.periodStatic}parseDontAllowLoas(e){if(!e.doNotAllowLoasEnabled)return null;let o="";return e.doNotAllowLoas.forEach(n=>o+=n.toString()+","),o.length>0&&(o=o.substring(0,o.length-1)),o.length>0?o:null}parseDontExtendLoas(e){if(!e.doNotExtendLoasEnabled)return null;let o="";return e.doNotExtendLoas.forEach(n=>o+=n.toString()+","),o.length>0&&(o=o.substring(0,o.length-1)),o.length>0?o:null}parseGracePeriod(e){return e.gracePeriodEnabled?e.gracePeriod+e.gracePeriodUnit:null}parseSpecialLoaPeriod(e){if(!e.specialLoaPeriodEnabled||!e.specialLoa)return null;let o=e.specialLoa.toString()+"|";switch(e.specialLoaPeriodType){case"static":o+=this.parseSpecialLoaPeriodStatic(e);break;case"dynamic":o+=this.parseSpecialLoaPeriodDynamic(e)}return null!=o&&e.specialLoaPeriodExtendExpiredMembers&&(o+="."),o}parseSpecialLoaPeriodStatic(e){return e.specialLoaPeriodStatic}parseSpecialLoaPeriodDynamic(e){return"+"+e.specialLoaPeriodDynamic+e.specialLoaPeriodDynamicUnit}parseAttributeValueFromConfig(e){if(!e.enabled)return null;const o=this.parsePeriod(e),n=this.parseDontAllowLoas(e),s=this.parseDontExtendLoas(e),r=this.parseGracePeriod(e),d=this.parseSpecialLoaPeriod(e),A={period:o};return null!==s&&(A.doNotExtendLoa=s),null!==n&&(A.doNotAllowLoa=n),null!==r&&(A.gracePeriod=r),null!==d&&(A.periodLoa=d),A}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[t.TTD],decls:1,vars:1,consts:[["class","card settings-card col-12 col-md-12 col-xl-6",4,"ngIf"],[1,"card","settings-card","col-12","col-md-12","col-xl-6"],[1,"d-flex","flex-row","align-items-baseline","justify-content-between"],[1,"settings-header",3,"click"],["color","primary",1,"ml-4",3,"ngModel","ngModelChange"],["mainToggle",""],[1,"setting-item","pt-2"],[1,"ml-1"],[3,"ngModel","ngModelChange"],["color","primary","value","static",1,"mr-3"],["staticPeriod",""],["color","primary","value","dynamic"],["dynamicPeriod",""],["class","form-container",4,"ngIf"],["class","d-flex flex-row",4,"ngIf"],["ngDefaultControl","",3,"ngModel","modelValue","title","ngModelChange"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],[1,"mr-2","amount-field"],["matInput","",3,"pattern","ngModel","placeholder","ngModelChange"],["specialLoaSelect",""],["class","mt-2",4,"ngIf"],[1,"ml-auto",3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","primary","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],["matInput","",3,"ngModel","pattern","placeholder","ngModelChange"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&t.YNc(0,Ui,68,74,"div",0),2&e&&t.Q6J("ngIf",o.currentConfiguration)},dependencies:[_.sg,_.O5,H.ey,x.KE,x.bx,x.hX,x.UY,y.Nt,f.Fj,f.JJ,f.c5,f.On,I.lW,j.oG,z.gD,N.gM,nt.Rr,Ot.VQ,Ot.U0,Ci,m.X$],styles:[".period-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:1.5rem}.amount-field[_ngcontent-%COMP%]{width:80px}.date-field[_ngcontent-%COMP%]{width:100%}.settings-header[_ngcontent-%COMP%]{margin-top:.75rem;margin-bottom:.75rem;font-size:1.25rem;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.settings-card[_ngcontent-%COMP%]{padding:.5rem 1.5rem}"],data:{animation:[M.BQ]}}),i})();function Pi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.saveExpirationAttribute(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let yi=(()=>{class i{constructor(e,o,n,s,r){this.attributesManager=e,this.translate=o,this.notificator=n,this.apiRequest=s,this.entityStorageService=r,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(d=>this.successMessage=d),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(d=>this.errorMessage=d)}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.vo.id,attribute:e}).subscribe({next:()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},error:o=>{this.notificator.showRPCError(o,this.errorMessage)}})}loadSettings(){this.attributesManager.getVoAttributeByName(this.vo.id,S.r.VO_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(m.sK),t.Y36(p.V6),t.Y36(p.F5),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(e,o){1&e&&t.YNc(0,Pi,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},dependencies:[_.O5,Zt],data:{animation:[M.BQ]}}),i})();var Vi=l(55857),Dt=l(28361);let Fi=(()=>{class i{constructor(e,o,n,s){this.dialog=e,this.voService=o,this.guiAuthResolver=n,this.entityStorageService=s,this.availableRoles=[],this.type="Vo",this.theme="vo-theme"}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.YF),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(e,o){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",o.vo)("availableRoles",o.availableRoles)("complementaryObjectType",o.type)("theme",o.theme)},dependencies:[Dt.s]}),i})();function Yi(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Ji(i,a){1&i&&(t.TgZ(0,"mat-option",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APPROVABLE_GROUP_APP_USER")))}function qi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"textarea",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.reason=n)}),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),t.xp6(3),t.Q6J("ngModel",e.reason)}}function ki(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"mat-select",9),t.NdJ("valueChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.mailType=n)}),t.TgZ(5,"mat-option",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,Ji,3,3,"mat-option",11),t.TgZ(9,"mat-option",12),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-option",13),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-option",14),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",15),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"mat-option",16),t._uU(22),t.ALo(23,"translate"),t.qZA()()(),t.YNc(24,qi,5,4,"div",17),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,10,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),t.xp6(3),t.Q6J("value",e.mailType),t.xp6(2),t.Oqu(t.lcZ(7,12,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.Oqu(t.lcZ(11,14,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),t.xp6(3),t.Oqu(t.lcZ(14,16,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),t.xp6(3),t.Oqu(t.lcZ(17,18,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),t.xp6(3),t.Oqu(t.lcZ(20,20,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),t.xp6(3),t.Oqu(t.lcZ(23,22,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),t.xp6(2),t.Q6J("ngIf","APP_REJECTED_USER"===e.mailType)}}let Qi=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.translate=n,this.notificator=s,this.registrarManager=r,this.mailType="APP_CREATED_USER",this.reason="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"APP_REJECTED_USER"===this.mailType?this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType,reason:this.reason}).subscribe(()=>{this.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1):this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType}).subscribe(()=>{this.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(m.sK),t.Y36(p.V6),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-re-send-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["disableOptionCentering","",3,"value","valueChange"],["value","APP_CREATED_USER"],["value","APPROVABLE_GROUP_APP_USER",4,"ngIf"],["value","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],[4,"ngIf"],["value","APPROVABLE_GROUP_APP_USER"],["matInput","",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Yi,1,0,"mat-spinner",1),t.YNc(5,ki,25,24,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Gre("",o.theme,"}"),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},dependencies:[_.O5,H.ey,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,u.uh,u.xY,u.H8,z.gD,T.Ou,m.X$]}),i})();function Bi(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Hi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"textarea",9),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.reason=n)}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),t.xp6(3),t.Q6J("ngModel",e.reason)}}let ji=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.translate=n,this.notificator=s,this.registrarManager=r,this.reason="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.registrarManager.rejectApplication(this.data.applicationId,this.reason).subscribe(()=>{this.translate.get("DIALOGS.REJECT_APPLICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(m.sK),t.Y36(p.V6),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-reject-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Bi,1,0,"mat-spinner",1),t.YNc(5,Hi,5,4,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},dependencies:[_.O5,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();function zi(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function $i(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function Xi(i,a){if(1&i&&(t.TgZ(0,"mat-form-field")(1,"label"),t._UZ(2,"input",9),t.qZA(),t.YNc(3,$i,3,3,"mat-error",8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Q6J("formControl",e.emailControl),t.xp6(1),t.Q6J("ngIf",e.emailControl.invalid)}}function Ki(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function Wi(i,a){if(1&i&&(t.TgZ(0,"mat-form-field"),t._UZ(1,"input",10),t.YNc(2,Ki,3,3,"mat-error",8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("formControl",e.inputControl),t.xp6(1),t.Q6J("ngIf",e.inputControl.invalid)}}function to(i,a){if(1&i&&(t.TgZ(0,"div",7),t.YNc(1,Xi,4,2,"mat-form-field",8),t.YNc(2,Wi,3,2,"mat-form-field",8),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!==e.emailControl),t.xp6(1),t.Q6J("ngIf",null!==e.inputControl)}}let eo=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.notificator=n,this.translateService=s,this.registrarService=r,this.loading=!1,this.inputControl=null,this.emailControl=null}static getLabel(e){return null!==e.i18n.en.label&&0!==e.i18n.en.label.length?e.i18n.en.label:e.shortname}ngOnInit(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=i.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new f.p4(this.formItemData.value,[f.kI.required,f.kI.email]):this.inputControl=new f.p4(this.formItemData.value,[f.kI.required])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.formItemData.value=null!==this.inputControl?this.inputControl.value:this.emailControl.value,this.registrarService.updateFormItemData({appId:this.data.applicationId,data:{id:this.formItemData.id,formItem:this.formItemData.formItem,shortname:this.formItemData.shortname,value:this.formItemData.value,assuranceLevel:this.formItemData.assuranceLevel,prefilledValue:this.formItemData.prefilledValue}}).subscribe(()=>{this.notificator.showSuccess(this.translateService.instant("DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(p.V6),t.Y36(m.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-application-form-item-data-dialog"]],decls:13,vars:16,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl"],["matInput","","required","","type","text",3,"formControl"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,zi,1,0,"mat-spinner",1),t.YNc(5,to,3,2,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.AsE(" ",t.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",o.itemName," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading||null!==o.inputControl&&o.inputControl.invalid||null!==o.emailControl&&o.emailControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},dependencies:[_.O5,x.TO,x.KE,y.Nt,f.Fj,f.JJ,f.Q7,f.oH,I.lW,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();var at=l(44850),io=l(43157);function oo(i,a){if(1&i&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.hij(" #",e.application.id," ")}}function no(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function ao(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.verifyApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function so(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.approveApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function ro(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.rejectApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function lo(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.deleteApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function co(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.resendNotification())}),t.TgZ(1,"i",19),t._uU(2," mail_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function po(i,a){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function uo(i,a){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.TgZ(5,"span",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t._uU(8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),t.xp6(2),t.hij(": ",e.application.group.name," "),t.xp6(2),t.Oqu(t.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function _o(i,a){1&i&&(t.TgZ(0,"span")(1,"mat-icon",20),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3," Initial "),t.qZA())}function mo(i,a){1&i&&(t.TgZ(0,"span")(1,"mat-icon",20),t._uU(2,"restore"),t.qZA(),t._uU(3," Extension "),t.qZA())}function go(i,a){1&i&&(t.TgZ(0,"span")(1,"mat-icon",20),t._uU(2,"nat"),t.qZA(),t._uU(3," Embedded "),t.qZA())}function ho(i,a){if(1&i&&(t.TgZ(0,"div",21)(1,"mat-card-title")(2,"i",22),t._uU(3,"clear"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div")(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function fo(i,a){if(1&i&&(t.TgZ(0,"div",21)(1,"mat-card-title")(2,"i",23),t._uU(3,"done"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div")(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function Ao(i,a){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),t.xp6(2),t.hij(": ",e.userMail," ")}}function To(i,a){1&i&&t._UZ(0,"th",32)}function Io(i,a){if(1&i&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",o.getLabel(e.formItem)," ")}}function bo(i,a){1&i&&t._UZ(0,"th",32)}function vo(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",36),t.NdJ("click",function(){t.CHM(e);const n=t.oxw().$implicit,s=t.oxw(3);return t.KtG(s.editApplicationData(n))}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Eo(i,a){if(1&i&&(t.TgZ(0,"td",34),t._uU(1),t.YNc(2,vo,3,0,"button",35),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",e.value," "),t.xp6(1),t.Q6J("ngIf",("NEW"===o.application.state||"VERIFIED"===o.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==e.formItem.type)}}function Co(i,a){1&i&&t._UZ(0,"tr",37)}function So(i,a){1&i&&t._UZ(0,"tr",38)}function xo(i,a){if(1&i&&(t.TgZ(0,"table",24),t.ynx(1,25),t.YNc(2,To,1,0,"th",26),t.YNc(3,Io,2,1,"td",27),t.BQk(),t.ynx(4,28),t.YNc(5,bo,1,0,"th",26),t.YNc(6,Eo,3,2,"td",29),t.BQk(),t.YNc(7,Co,1,0,"tr",30),t.YNc(8,So,1,0,"tr",31),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("dataSource",e.dataSource),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function No(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,ao,3,3,"button",7),t.YNc(2,so,3,3,"button",7),t.YNc(3,ro,3,3,"button",8),t.YNc(4,lo,3,3,"button",8),t.YNc(5,co,5,3,"button",9),t.YNc(6,po,5,4,"div",4),t.YNc(7,uo,9,8,"div",4),t.TgZ(8,"div")(9,"span",10),t._uU(10),t.ALo(11,"translate"),t.qZA(),t._uU(12,": "),t._UZ(13,"span",11),t.ALo(14,"applicationState"),t.qZA(),t.TgZ(15,"div")(16,"span",10),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,": "),t.YNc(20,_o,4,0,"span",4),t.YNc(21,mo,4,0,"span",4),t.YNc(22,go,4,0,"span",4),t.qZA(),t.YNc(23,ho,12,11,"div",12),t.YNc(24,fo,12,11,"div",12),t.TgZ(25,"div",13)(26,"mat-card-title")(27,"i",14),t._uU(28,"redo"),t.qZA(),t._uU(29),t.ALo(30,"translate"),t.ALo(31,"userFullName"),t.qZA(),t.YNc(32,Ao,5,4,"div",4),t.TgZ(33,"div")(34,"span",10),t.ALo(35,"lowercase"),t._uU(36),t.ALo(37,"translate"),t.qZA(),t._uU(38),t.qZA(),t.TgZ(39,"div")(40,"span",10),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43),t.qZA(),t.TgZ(44,"div")(45,"span",10),t._uU(46),t.ALo(47,"translate"),t.qZA(),t._uU(48),t.ALo(49,"date"),t.qZA(),t.YNc(50,xo,9,3,"table",15),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf","NEW"===e.application.state&&e.verifyAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.approveAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.rejectAuth),t.xp6(1),t.Q6J("ngIf",("REJECTED"===e.application.state||"NEW"===e.application.state)&&e.deleteAuth),t.xp6(1),t.Q6J("ngIf",e.resendAuth),t.xp6(1),t.Q6J("ngIf",!e.application.group),t.xp6(1),t.Q6J("ngIf",e.application.group),t.xp6(3),t.Oqu(t.lcZ(11,26,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),t.xp6(3),t.Q6J("outerHTML",t.lcZ(14,28,e.application.state),t.oJD),t.xp6(4),t.Oqu(t.lcZ(18,30,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),t.xp6(3),t.Q6J("ngIf","INITIAL"===e.application.type),t.xp6(1),t.Q6J("ngIf","EXTENSION"===e.application.type),t.xp6(1),t.Q6J("ngIf","EMBEDDED"===e.application.type),t.xp6(1),t.Q6J("ngIf","REJECTED"===e.application.state),t.xp6(1),t.Q6J("ngIf","APPROVED"===e.application.state),t.xp6(5),t.AsE(" ",t.lcZ(30,32,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===e.application.user?e.submittedBy():t.lcZ(31,34,e.application.user),""),t.xp6(3),t.Q6J("ngIf",e.userMail),t.xp6(2),t.Q2q("data-cy","",t.lcZ(35,36,e.application.extSourceName),"-application-extsource"),t.xp6(2),t.Oqu(t.lcZ(37,38,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),t.xp6(2),t.hij(": ",e.application.extSourceName," "),t.xp6(3),t.Oqu(t.lcZ(42,40,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),t.xp6(2),t.hij(": ",e.application.extSourceLoa," "),t.xp6(3),t.Oqu(t.lcZ(47,42,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(49,44,e.application.createdAt,"d.M.y H:mm:ss")," "),t.xp6(2),t.Q6J("ngIf",0!==e.userData.length)}}let st=(()=>{class i{constructor(e,o,n,s,r,d,A,v){this.registrarManager=e,this.dialog=o,this.translate=n,this.route=s,this.notificator=r,this.router=d,this.authResolver=A,this.usersService=v,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.route.parent.params.subscribe(o=>{this.dialogTheme=o.groupId?"group-theme":o.memberId?"member-theme":"vo-theme";const n=Number(e.applicationId);this.registrarManager.getApplicationById(n).subscribe(s=>{this.application=s,"EMBEDDED"===this.application.type&&this.application.user?this.usersService.getRichUserWithAttributes(this.application.user.id).subscribe(r=>{const d=r.userAttributes.find(A=>"preferredMail"===A.friendlyName);this.userMail=d?.value,this.setAuthRights(),this.loading=!1}):this.registrarManager.getApplicationDataById(this.application.id).subscribe(r=>{this.userData=r,this.dataSource=new c.by(this.userData),this.setAuthRights(),this.loading=!1})})})})}setAuthRights(){"group-theme"===this.dialogTheme?(this.verifyAuth=this.authResolver.isAuthorized("group-verifyApplication_int_policy",[this.application.group]),this.approveAuth=this.authResolver.isAuthorized("group-approveApplicationInternal_int_policy",[this.application.group]),this.rejectAuth=this.authResolver.isAuthorized("group-rejectApplication_int_String_policy",[this.application.group]),this.deleteAuth=this.authResolver.isAuthorized("group-deleteApplication_Application_policy",[this.application.group]),this.resendAuth=this.authResolver.isAuthorized("group-sendMessage_Application_MailType_String_policy",[this.application.group])):(this.verifyAuth=this.authResolver.isAuthorized("vo-verifyApplication_int_policy",[this.application.vo]),this.approveAuth=this.authResolver.isAuthorized("vo-approveApplicationInternal_int_policy",[this.application.vo]),this.rejectAuth=this.authResolver.isAuthorized("vo-rejectApplication_int_String_policy",[this.application.vo]),this.deleteAuth=this.authResolver.isAuthorized("vo-deleteApplication_Application_policy",[this.application.vo]),this.resendAuth=this.authResolver.isAuthorized("vo-sendMessage_Application_MailType_String_policy",[this.application.vo]))}getLabel(e){return null!==e.i18n.en.label&&0!==e.i18n.en.label.length?e.i18n.en.label:e.shortname}submittedBy(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}getModifiedAtName(e){const o=e.lastIndexOf("/CN=");if(-1!==o){const n=e.slice(o+4,e.length).replace("/unstructuredName="," ");return-1!==n.lastIndexOf("\\")?e.slice(e.lastIndexOf("=")+1,e.length):n}return e}resendNotification(){const e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme,groupId:this.application.group?.id},this.dialog.open(Qi,e)}deleteApplication(){const e=(0,g.kZ)();e.width="450px",e.data={items:[this.application.id],title:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_TITLE",description:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(n=>{n&&this.registrarManager.deleteApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(s=>{this.notificator.showSuccess(s),this.router.navigateByUrl(this.router.url.substring(0,this.router.url.lastIndexOf("/")))})})})}rejectApplication(){const e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(ji,e).afterClosed().subscribe(()=>{this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(n=>{this.application=n,this.loading=!1},()=>this.loading=!1)})}approveApplication(){this.loading=!0,this.registrarManager.approveApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e)}),this.registrarManager.getApplicationById(this.application.id).subscribe(e=>{this.application=e,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}verifyApplication(){this.registrarManager.verifyApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e)}),this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe({next:e=>{this.application=e,this.loading=!1},error:()=>this.loading=!1})})}editApplicationData(e){const o=(0,g.kZ)();o.width="600px",o.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:e},this.dialog.open(eo,o)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(u.uw),t.Y36(m.sK),t.Y36(b.gz),t.Y36(p.V6),t.Y36(b.F0),t.Y36(p.x4),t.Y36(h.Fv))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:7,vars:6,consts:[[1,"page-subtitle"],["class","text-muted",4,"ngIf"],[1,"mb-4"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"text-muted"],[1,"ml-auto","mr-auto"],["color","accent","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mb-2","mat-stroked-button","",3,"click",4,"ngIf"],[1,"font-weight-bold"],[3,"outerHTML"],["class","card p-3 mt-2",4,"ngIf"],[1,"card","p-4","mt-2"],[1,"material-icons","align-text-top"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"click"],["mat-stroked-button","",1,"mr-2","mb-2",3,"click"],[1,"material-icons"],[1,"align-bottom"],[1,"card","p-3","mt-2"],[1,"material-icons","red","align-text-top"],[1,"material-icons","green","align-text-top"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","label"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["class","h-50","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["aria-label","Edit Application data","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Edit Application data","mat-icon-button","",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"h2",0),t._uU(1),t.ALo(2,"translate"),t.YNc(3,oo,2,1,"span",1),t.qZA(),t._UZ(4,"mat-divider",2),t.YNc(5,no,1,0,"mat-spinner",3),t.YNc(6,No,51,47,"div",4)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),t.xp6(2),t.Q6J("ngIf",!!o.application),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,P.Hw,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,I.lW,T.Ou,at.d,U.n5,_.i8,_.uU,m.X$,io.h,B.d]}),i})();var Oo=l(13600),Zo=l(37240);let Do=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[M.Ji]}}),i})();var O=l(3848),Mt=l(19191);function Mo(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function Lo(i,a){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.group.id)("entity","group")}}function Ro(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",t.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function wo(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","group")("firstEntityId",e.group.id)("secondEntity","member")}}function Go(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Ro,3,6,"ng-template",1),t.YNc(2,wo,1,3,"ng-template",2),t.qZA())}function Uo(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",t.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Po(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","group")("firstEntityId",e.group.id)("secondEntity","resource")}}function yo(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Uo,3,6,"ng-template",1),t.YNc(2,Po,1,3,"ng-template",2),t.qZA())}let Vo=(()=>{class i{constructor(e,o){this.authResolver=e,this.entityStorageService=o}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.groupResourceAttAuth=this.authResolver.isAuthorized("getResourceAssignments_Group_policy",[this.group]),this.groupMemberAttAuth=this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_List_List_boolean_policy",[this.group])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,Mo,2,3,"ng-template",1),t.YNc(7,Lo,1,2,"ng-template",2),t.qZA(),t.YNc(8,Go,3,0,"mat-tab",3),t.YNc(9,yo,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.groupMemberAttAuth),t.xp6(1),t.Q6J("ngIf",o.groupResourceAttAuth))},dependencies:[_.O5,O.SP,O.uD,O.uX,O.Vc,Mt.Y,ot.t,m.X$]}),i})();function Fo(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Yo(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let Jo=(()=>{class i{constructor(e,o,n,s,r,d,A,v,D){this.sideMenuService=e,this.groupService=o,this.router=n,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=d,this.notificator=A,this.entityStorageService=v,this.routePolicyService=D,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/expiration`,label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},e=>{"PrivilegeException"!==e.name&&this.notificator.showRPCError(e)}),this.routePolicyService.canNavigate("groups-settings-managers",this.group)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/managers`,label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),"members"!==this.group.name&&this.routePolicyService.canNavigate("groups-settings-applicationForm",this.group)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/applicationForm`,label:"MENU_ITEMS.GROUP.APPLICATION_FORM",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-notifications",this.group)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/notifications`,label:"MENU_ITEMS.GROUP.NOTIFICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-relations",this.group)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/relations`,label:"MENU_ITEMS.GROUP.RELATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-extsources",this.group)&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/extsources`,label:"MENU_ITEMS.GROUP.EXTSOURCES",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(F.D),t.Y36(h.ff),t.Y36(b.F0),t.Y36(p.x4),t.Y36(p.F5),t.Y36(h.H8),t.Y36(p.V6),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,Fo,1,0,"mat-spinner",0),t.YNc(1,Yo,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,T.Ou,J.L]}),i})();var qo=l(10369),ko=l(21963),Qo=l(28820),Bo=l(30076);function Ho(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function jo(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.switchToInitial())}),t.TgZ(1,"i",11),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function zo(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.switchToExtension())}),t.TgZ(1,"i",11),t._uU(2,"cached"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function $o(i,a){if(1&i&&(t.TgZ(0,"mat-option",12),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function Xo(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Ko(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Wo(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",19),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,Xo,2,1,"mat-icon",21),t.YNc(8,Ko,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function tn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function en(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function on(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",24)(6,"br")(7,"input",19),t.qZA()(),t.TgZ(8,"div",20),t.YNc(9,tn,2,1,"mat-icon",21),t.YNc(10,en,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function nn(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",26),t._uU(2),t._UZ(3,"br"),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e,"")}}function an(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function sn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function rn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"form",18),t.YNc(5,nn,4,2,"div",9),t._UZ(6,"input",25),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"div",20),t.YNc(9,an,2,1,"mat-icon",21),t.YNc(10,sn,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.s9C("value",t.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function ln(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"span",27),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("innerHTML",o.getLocalizedLabel(e),t.oJD)}}function cn(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"span",27),t.ALo(2,"sanitizeHtml"),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,o.getLocalizedLabel(e)),t.oJD)}}function pn(i,a){if(1&i&&(t.TgZ(0,"option"),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e," ")}}function un(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function dn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function _n(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",28),t.YNc(6,pn,2,1,"option",9),t.qZA()()(),t.TgZ(7,"div",20),t.YNc(8,un,2,1,"mat-icon",21),t.YNc(9,dn,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function mn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function gn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function hn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t._UZ(4,"textarea",29),t.qZA(),t.TgZ(5,"div",20),t.YNc(6,mn,2,1,"mat-icon",21),t.YNc(7,gn,2,1,"mat-icon",21),t.TgZ(8,"span",22),t._uU(9),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function fn(i,a){if(1&i&&(t.TgZ(0,"option",34),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e," ")}}function An(i,a){1&i&&(t.TgZ(0,"div",35)(1,"form"),t._UZ(2,"input",36),t.qZA()())}function Tn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function In(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function bn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",30),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2).$implicit,r=t.oxw(2);return t.KtG(r.mapForCombobox[s.id]=n)}),t.TgZ(6,"option",31),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,fn,2,1,"option",32),t.qZA(),t.YNc(10,An,3,0,"div",33),t.qZA()(),t.TgZ(11,"div",20),t.YNc(12,Tn,2,1,"mat-icon",21),t.YNc(13,In,2,1,"mat-icon",21),t.TgZ(14,"span",22),t._uU(15),t.qZA()()()}if(2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngModel",o.mapForCombobox[e.id])("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.Q6J("ngIf","true"===o.mapForCombobox[e.id]),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function vn(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",37),t._uU(2),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e," ")}}function En(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Cn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Sn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"form",35),t.YNc(6,vn,3,2,"div",9),t.qZA()()(),t.TgZ(7,"div",20),t.YNc(8,En,2,1,"mat-icon",21),t.YNc(9,Cn,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function xn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Nn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function On(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"form",35),t._UZ(6,"input",37),t._uU(7," example group1 "),t._UZ(8,"br")(9,"input",37),t._uU(10," example group2 "),t._UZ(11,"br")(12,"input",37),t._uU(13," example group3 "),t.qZA()()(),t.TgZ(14,"div",20),t.YNc(15,xn,2,1,"mat-icon",21),t.YNc(16,Nn,2,1,"mat-icon",21),t.TgZ(17,"span",22),t._uU(18),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Zn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Dn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Mn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,Zn,2,1,"mat-icon",39),t.YNc(4,Dn,2,1,"mat-icon",39),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.hij(" ",o.getLocalizedLabel(e)," "),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden)}}function Ln(i,a){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Rn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function wn(i,a){if(1&i&&(t.TgZ(0,"div")(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,Ln,2,1,"mat-icon",39),t.YNc(4,Rn,2,1,"mat-icon",39),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.hij(" ",o.getLocalizedLabel(e)," "),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden)}}function Gn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Un(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Pn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",41)(6,"option",42),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"option",43),t._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),t.qZA(),t.TgZ(11,"option",44),t._uU(12,"(GMT -11:00) Midway Island, Samoa"),t.qZA(),t.TgZ(13,"option",45),t._uU(14,"(GMT -10:00) Hawaii"),t.qZA(),t.TgZ(15,"option",46),t._uU(16,"(GMT -9:30) Taiohae"),t.qZA(),t.TgZ(17,"option",47),t._uU(18,"(GMT -9:00) Alaska"),t.qZA(),t.TgZ(19,"option",48),t._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),t.qZA(),t.TgZ(21,"option",49),t._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),t.qZA(),t.TgZ(23,"option",50),t._uU(24," (GMT -6:00) Central Time (US & Canada), Mexico City "),t.qZA(),t.TgZ(25,"option",51),t._uU(26," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),t.qZA(),t.TgZ(27,"option",52),t._uU(28,"(GMT -4:30) Caracas"),t.qZA(),t.TgZ(29,"option",53),t._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),t.qZA(),t.TgZ(31,"option",54),t._uU(32,"(GMT -3:30) Newfoundland"),t.qZA(),t.TgZ(33,"option",55),t._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),t.qZA(),t.TgZ(35,"option",56),t._uU(36,"(GMT -2:00) Mid-Atlantic"),t.qZA(),t.TgZ(37,"option",57),t._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),t.qZA(),t.TgZ(39,"option",58),t._uU(40," (GMT) Western Europe Time, London, Lisbon, Casablanca "),t.qZA(),t.TgZ(41,"option",59),t._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),t.qZA(),t.TgZ(43,"option",60),t._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),t.qZA(),t.TgZ(45,"option",61),t._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),t.qZA(),t.TgZ(47,"option",62),t._uU(48,"(GMT +3:30) Tehran"),t.qZA(),t.TgZ(49,"option",63),t._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),t.qZA(),t.TgZ(51,"option",64),t._uU(52,"(GMT +4:30) Kabul"),t.qZA(),t.TgZ(53,"option",65),t._uU(54," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),t.qZA(),t.TgZ(55,"option",66),t._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),t.qZA(),t.TgZ(57,"option",67),t._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),t.qZA(),t.TgZ(59,"option",68),t._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),t.qZA(),t.TgZ(61,"option",69),t._uU(62,"(GMT +6:30) Yangon, Mandalay"),t.qZA(),t.TgZ(63,"option",70),t._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),t.qZA(),t.TgZ(65,"option",71),t._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),t.qZA(),t.TgZ(67,"option",72),t._uU(68,"(GMT +8:45) Eucla"),t.qZA(),t.TgZ(69,"option",73),t._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),t.qZA(),t.TgZ(71,"option",74),t._uU(72,"(GMT +9:30) Adelaide, Darwin"),t.qZA(),t.TgZ(73,"option",75),t._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),t.qZA(),t.TgZ(75,"option",76),t._uU(76,"(GMT +10:30) Lord Howe Island"),t.qZA(),t.TgZ(77,"option",77),t._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),t.qZA(),t.TgZ(79,"option",78),t._uU(80,"(GMT +11:30) Norfolk Island"),t.qZA(),t.TgZ(81,"option",79),t._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),t.qZA(),t.TgZ(83,"option",80),t._uU(84,"(GMT +12:45) Chatham Islands"),t.qZA(),t.TgZ(85,"option",81),t._uU(86,"(GMT +13:00) Apia, Nukualofa"),t.qZA(),t.TgZ(87,"option",82),t._uU(88,"(GMT +14:00) Line Islands, Tokelau"),t.qZA()()()(),t.TgZ(89,"div",20),t.YNc(90,Gn,2,1,"mat-icon",21),t.YNc(91,Un,2,1,"mat-icon",21),t.TgZ(92,"span",22),t._uU(93),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),t.xp6(83),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function yn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Vn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}const Fn=function(){return["Example 1","Example 2"]},Lt=function(i){return{id:0,beanName:"Attribute",namespace:"",value:i}};function Yn(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-list",83),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,yn,2,1,"mat-icon",21),t.YNc(8,Vn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Lt,t.DdM(5,Fn))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Jn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function qn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}const kn=function(){return{key1:"value 1",key2:"value 2"}};function Qn(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-map",83),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,Jn,2,1,"mat-icon",21),t.YNc(8,qn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Lt,t.DdM(5,kn))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Bn(i,a){if(1&i&&(t.TgZ(0,"div",14),t.YNc(1,Wo,11,5,"div",15),t.YNc(2,on,13,6,"div",15),t.YNc(3,rn,13,9,"div",15),t.YNc(4,ln,2,1,"div",2),t.YNc(5,cn,3,3,"div",2),t.YNc(6,_n,12,6,"div",15),t.YNc(7,hn,10,5,"div",15),t.YNc(8,bn,16,11,"div",15),t.YNc(9,Sn,12,5,"div",15),t.YNc(10,On,19,7,"div",15),t.YNc(11,Mn,5,4,"div",15),t.YNc(12,wn,5,4,"div",2),t.YNc(13,Pn,94,8,"div",15),t.YNc(14,Yn,11,8,"div",2),t.YNc(15,Qn,11,8,"div",2),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",("TEXTFIELD"===e.type||"VALIDATED_EMAIL"===e.type||"USERNAME"===e.type)&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","PASSWORD"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","RADIO"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","HEADING"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","HTML_COMMENT"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","SELECTIONBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","TEXTAREA"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","COMBOBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","CHECKBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","SUBMIT_BUTTON"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","TIMEZONE"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","LIST_INPUT_BOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","MAP_INPUT_BOX"===e.type&&"ALWAYS"!==e.hidden)}}function Hn(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,Bn,16,15,"div",13),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",o.isValid(e))}}function jn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",4),t.YNc(2,jo,5,3,"button",5),t.YNc(3,zo,5,3,"button",5),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",6),t.NdJ("valueChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentLanguage=n)}),t.YNc(9,$o,4,6,"mat-option",7),t.qZA()()(),t.TgZ(10,"div",8),t.YNc(11,Hn,2,1,"div",9),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",!e.initialPage),t.xp6(1),t.Q6J("ngIf",e.initialPage),t.xp6(3),t.Oqu(t.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),t.xp6(2),t.Q6J("value",e.currentLanguage),t.xp6(1),t.Q6J("ngForOf",e.languages),t.xp6(2),t.Q6J("ngForOf",e.applicationFormItems)}}let Rt=(()=>{class i{constructor(e,o,n){this.route=e,this.translate=o,this.store=n,this.loading=!0,this.applicationFormItems=[],this.currentLanguage="en",this.languages=["en"],this.initialPage=!0,this.mapForCombobox=new Map}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.route.queryParamMap.subscribe(e=>{this.applicationFormItems=JSON.parse(e.get("applicationFormItems")),this.loading=!1})}switchToInitial(){this.initialPage=!0}switchToExtension(){this.initialPage=!1}getLocalizedOptions(e){if(e.i18n[this.currentLanguage]){const o=e.i18n[this.currentLanguage].options;if(null!==o&&""!==o){const n=[];for(const s of o.split("|"))n.push(s.split("#")[1]);return n}}return[]}isValid(e){if(e.forDelete)return!1;for(const o of e.applicationTypes)if("INITIAL"===o&&this.initialPage||"EXTENSION"===o&&!this.initialPage)return!0;return!1}disabledTooltip(e){let o,n,s;switch(e.disabled){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED");case"IF_PREFILLED":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),n=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.disabledDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${o} ${n} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),n=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.disabledDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${o} ${n} ${s}`;default:return""}}hiddenTooltip(e){let o,n,s;switch(e.hidden){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN");case"IF_PREFILLED":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),n=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.hiddenDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${o} ${n} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),n=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.hiddenDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${o} ${n} ${s}`;default:return""}}getLocalizedLabel(e){return e.i18n[this.currentLanguage]?.label?e.i18n[this.currentLanguage].label+(e.required?"*":""):e.shortname+(e.required?"*":"")}getLocalizedHint(e){return e.i18n[this.currentLanguage]?e.i18n[this.currentLanguage].help:""}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(m.sK),t.Y36(p.d6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-100","mb-2"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"card","mb-4","p-5"],[4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],[3,"value"],["class","mb-2",4,"ngIf"],[1,"mb-2"],["class","d-flex",4,"ngIf"],[1,"d-flex"],[1,"w-50","d-flex"],[1,"w-50"],["type","text",1,"w-100",3,"disabled"],[1,"w-50","d-flex","left"],["class","pointer",3,"matTooltip",4,"ngIf"],[1,"ml-2"],[1,"pointer",3,"matTooltip"],["type","text",1,"mb-1","w-100",3,"disabled"],["type","reset",3,"disabled","value"],["name","temp","type","radio",3,"disabled"],[3,"innerHTML"],[1,"w-100",3,"disabled"],[1,"w-50",3,"disabled"],[1,"w-100",3,"ngModel","disabled","ngModelChange"],["selected","","value","true"],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],[1,"w-100"],["type","text"],["type","checkbox",3,"disabled"],["color","accent","mat-flat-button","",3,"disabled"],["class","pointer left",3,"matTooltip",4,"ngIf"],[1,"pointer","left",3,"matTooltip"],["id","timezone-offset","name","timezone_offset",1,"w-100",3,"disabled"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Ho,1,0,"mat-spinner",1),t.YNc(4,jn,12,8,"div",2)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.sg,_.O5,H.ey,x.KE,x.hX,f._Y,f.YN,f.Kr,f.EJ,f.JJ,f.JL,f.On,f.F,P.Hw,I.lW,z.gD,T.Ou,N.gM,ko.H,Qo.$,_.gd,m.X$,Bo.A],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function zn(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function $n(i,a){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",5),2&i){const e=t.oxw();t.Q6J("entityId",e.memberId)("entity","member")}}function Xn(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",t.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function Kn(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","member")("firstEntityId",e.memberId)("secondEntity","group")}}function Wn(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Xn,3,6,"ng-template",1),t.YNc(2,Kn,1,3,"ng-template",2),t.qZA())}function ta(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",t.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function ea(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","member")("firstEntityId",e.memberId)("secondEntity","resource")}}function ia(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,ta,3,6,"ng-template",1),t.YNc(2,ea,1,3,"ng-template",2),t.qZA())}function oa(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function na(i,a){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",5),2&i){const e=t.oxw();t.Q6J("entityId",e.member.userId)("entity","user")}}function aa(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",t.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function sa(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","user")("firstEntityId",e.member.userId)("secondEntity","facility")}}function ra(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,aa,3,6,"ng-template",1),t.YNc(2,sa,1,3,"ng-template",2),t.qZA())}let la=(()=>{class i{constructor(e,o,n){this.route=e,this.authResolver=o,this.memberManager=n}ngOnInit(){this.route.parent.params.subscribe(e=>{this.memberId=Number(e.memberId),this.memberManager.getMemberById(this.memberId).subscribe(o=>{this.member=o,this.memberGroupAttAuth=this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.member]),this.memberResourceAttAuth=this.authResolver.isAuthorized("getAssignedResourcesWithStatus_Member_policy",[this.member]),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{beanName:"User",id:o.userId}])})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(p.x4),t.Y36(h.uq))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:14,vars:6,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[1,"mb-2"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,zn,2,3,"ng-template",1),t.YNc(7,$n,1,2,"ng-template",2),t.qZA(),t.YNc(8,Wn,3,0,"mat-tab",3),t.YNc(9,ia,3,0,"mat-tab",3),t.TgZ(10,"mat-tab",4),t.YNc(11,oa,2,3,"ng-template",1),t.YNc(12,na,1,2,"ng-template",2),t.qZA(),t.YNc(13,ra,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.memberGroupAttAuth),t.xp6(1),t.Q6J("ngIf",o.memberResourceAttAuth),t.xp6(4),t.Q6J("ngIf",o.userFacilityAttAuth))},dependencies:[_.O5,O.SP,O.uD,O.uX,O.Vc,Mt.Y,ot.t,m.X$]}),i})(),ca=(()=>{class i{constructor(e,o,n,s,r){this.sideMenuService=e,this.voService=o,this.authResolver=n,this.entityStorageService=s,this.routePolicyService=r,this.items=[]}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.initItems()}initItems(){this.routePolicyService.canNavigate("organizations-resources-preview",this.vo)&&this.items.push({cssIcon:"perun-resource",url:`/organizations/${this.vo.id}/resources/preview`,label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources-tags",this.vo)&&this.items.push({cssIcon:"perun-resource-tags",url:`/organizations/${this.vo.id}/resources/tags`,label:"MENU_ITEMS.VO.RESOURCE_TAGS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources-states",this.vo)&&this.items.push({cssIcon:"perun-resources-state",url:`/organizations/${this.vo.id}/resources/states`,label:"MENU_ITEMS.VO.RESOURCE_STATES",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(F.D),t.Y36(h.YF),t.Y36(p.x4),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",o.items)("size","small"))},dependencies:[J.L]}),i})();var pa=l(68056),ua=l(24219),E=l(95017),da=l(17584);function _a(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function ma(i,a){1&i&&t._UZ(0,"th",15)}function ga(i,a){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.tagName)}}function ha(i,a){1&i&&t._UZ(0,"tr",17)}function fa(i,a){1&i&&t._UZ(0,"tr",18)}function Aa(i,a){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,ma,1,0,"th",11),t.YNc(10,ga,2,1,"td",12),t.BQk(),t.YNc(11,ha,1,0,"tr",13),t.YNc(12,fa,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Ta=(()=>{class i{constructor(e,o,n){this.dialogRef=e,this.data=o,this.resourceManager=n,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.tagsForDelete)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;for(const e of this.data.tagsForDelete)this.resourceManager.deleteResourceTag({resourceTag:e}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.dialogRef.close(!0))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.xk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-resource-tag-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,_a,1,0,"mat-spinner",1),t.YNc(5,Aa,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},dependencies:[_.O5,I.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();var C=l(10036),Ia=l(17672),Z=l(96214),L=l(7434);function ba(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.create())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function va(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.deleteTag())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function Ea(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function Ca(i,a){if(1&i&&t._UZ(0,"app-resources-tags-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("entity","vo")("resourceTags",e.resourceTag)("filterValue",e.filterValue)("selection",e.selection)("tableId",e.tableId)}}let Sa=(()=>{class i{constructor(e,o,n,s,r,d){this.resourceManager=e,this.dialog=o,this.notificator=n,this.translator=s,this.authResolver=r,this.entityStorageService=d,this.loading=!1,this.resourceTag=[],this.selection=new E.Ov(!0,[]),this.tableId=C.O7,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}deleteTag(){const e=(0,g.kZ)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ta,e).afterClosed().subscribe(n=>{n&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}create(){const e=(0,g.kZ)();e.width="450px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(da.p,e).afterClosed().subscribe(n=>{n&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.vo.id).subscribe(e=>{this.resourceTag=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(e){this.filterValue=e}setAuthRights(){this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[this.vo]),this.deleteAuth=this.authResolver.isAuthorized("deleteResourceTag_ResourceTag_policy",[this.vo]),this.editAuth=this.authResolver.isAuthorized("updateResourceTag_ResourceTag_policy",[this.vo]),this.displayedColumns=this.deleteAuth?["select","id","name"]:["id","name"],this.editAuth&&this.displayedColumns.push("edit")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.xk),t.Y36(u.uw),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.updateData()}),t.qZA(),t.YNc(4,ba,3,3,"button",2),t.YNc(5,va,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,Ea,1,0,"mat-spinner",5),t.YNc(8,Ca,1,6,"app-resources-tags-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.createAuth),t.xp6(1),t.Q6J("ngIf",o.deleteAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,Ia.o,Z.t,L.L,m.X$]}),i})();function xa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.saveExpirationAttribute(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let Na=(()=>{class i{constructor(e,o,n,s,r){this.attributesManager=e,this.translate=o,this.notificator=n,this.apiRequest=s,this.entityStorageService=r,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(d=>this.successMessage=d),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(d=>this.errorMessage=d)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.group.id,attribute:e}).subscribe({next:()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},error:o=>this.notificator.showRPCError(o,this.errorMessage)})}loadSettings(){this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(m.sK),t.Y36(p.V6),t.Y36(p.F5),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(e,o){1&e&&t.YNc(0,xa,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},dependencies:[_.O5,Zt]}),i})(),Oa=(()=>{class i{constructor(e,o){this.guiAuthResolver=e,this.entityStorageService=o,this.availableRoles=[],this.selected="user",this.type="Group",this.theme="group-theme"}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Group")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(e,o){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",o.group)("availableRoles",o.availableRoles)("complementaryObjectType",o.type)("theme",o.theme)},dependencies:[Dt.s]}),i})();function Za(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Da(i,a){1&i&&t._UZ(0,"th",15)}function Ma(i,a){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.Oqu(o.getMailType(e))}}function La(i,a){1&i&&t._UZ(0,"tr",17)}function Ra(i,a){1&i&&t._UZ(0,"tr",18)}function wa(i,a){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Da,1,0,"th",11),t.YNc(10,Ma,2,1,"td",12),t.BQk(),t.YNc(11,La,1,0,"tr",13),t.YNc(12,Ra,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let wt=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.notificator=n,this.translate=s,this.registrarService=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.mails)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.groupId)for(const e of this.data.mails)this.registrarService.deleteApplicationMailForGroup(this.data.groupId,e.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1);else for(const e of this.data.mails)this.registrarService.deleteApplicationMailForVo(this.data.voId,e.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getMailType(e){let o="";return null==e.mailType||0===e.mailType.length?o="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+e.mailType).subscribe(n=>{o=n}),o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(p.V6),t.Y36(m.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Za,1,0,"mat-spinner",1),t.YNc(5,wa,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},dependencies:[_.O5,I.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();var R=l(98380);function Ga(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function Ua(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.FORMAT_HTML_NOT_AUTHORIZED")," "))}const Pa=function(i){return{"disabled-label":i}};function ya(i,a){if(1&i&&(t.TgZ(0,"span",18),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.Q6J("ngClass",t.VKq(6,Pa,"html"===e&&!o.htmlEditAuth)),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.FORMAT_"+e))," ")}}function Va(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.mailFooter=n)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("ngModel",e.mailFooter)}}function Fa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.htmlMailFooter=n)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("ngModel",e.htmlMailFooter)}}function Ya(i,a){if(1&i&&(t.TgZ(0,"mat-tab",14),t.YNc(1,ya,4,8,"ng-template",15),t.TgZ(2,"mat-form-field",16),t.YNc(3,Va,2,1,"textarea",17),t.YNc(4,Fa,2,1,"textarea",17),t.qZA()()),2&i){const e=a.$implicit,o=t.oxw(2);t.Q6J("disabled","html"===e&&!o.htmlEditAuth),t.xp6(3),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e)}}function Ja(i,a){if(1&i&&(t.TgZ(0,"div",8),t.YNc(1,Ua,3,3,"perun-web-apps-alert",9),t.TgZ(2,"mat-tab-group",10),t.YNc(3,Ya,5,3,"mat-tab",11),t.qZA(),t.TgZ(4,"div",12),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.plainEdithAuth&&!e.htmlEditAuth),t.xp6(2),t.Q6J("ngForOf",e.formats),t.xp6(2),t.hij(" ",t.lcZ(6,3,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION")," ")}}let Gt=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.attributesManager=o,this.translateService=n,this.notificator=s,this.data=r,this.mailFooter="",this.htmlMailFooter="",this.loading=!1,this.formats=["plain_text","html"]}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}submit(){this.loading=!0,this.mailAttribute.value=this.mailFooter,this.htmlMailAttribute.value=this.htmlMailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe({next:()=>{this.htmlEditAuth&&this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.htmlMailAttribute}).subscribe({next:()=>{this.notificationSuccess(),this.dialogRef.close()},error:()=>this.loading=!1})},error:()=>this.loading=!1}):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe({next:()=>{this.htmlEditAuth&&this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.htmlMailAttribute}).subscribe({next:()=>{this.notificationSuccess(),this.dialogRef.close()},error:()=>this.loading=!1})},error:()=>this.loading=!1})}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,S.r.VO_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.plainEdithAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""}),this.attributesManager.getVoAttributeByName(this.data.voId,S.r.VO_DEF_MAIL_HTML_FOOTER).subscribe(e=>{this.htmlMailAttribute=e,this.htmlEditAuth=this.htmlMailAttribute.writable,this.htmlMailFooter=e.value?e.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,S.r.GROUP_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.plainEdithAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""}),this.attributesManager.getGroupAttributeByName(this.data.groupId,S.r.GROUP_DEF_MAIL_HTML_FOOTER).subscribe(e=>{this.htmlMailAttribute=e,this.htmlEditAuth=this.htmlMailAttribute.writable,this.htmlMailFooter=e.value?e.value:""})}notificationSuccess(){this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.H8),t.Y36(m.sK),t.Y36(p.V6),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["alert_type","info",4,"ngIf"],["color","primary"],[3,"disabled",4,"ngFor","ngForOf"],[1,"mt-2","font-italic","text-muted"],["alert_type","info"],[3,"disabled"],["mat-tab-label",""],[1,"w-100"],["matInput","","rows","5",3,"ngModel","ngModelChange",4,"ngIf"],[3,"ngClass"],["matInput","","rows","5",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ga,1,0,"mat-spinner",1),t.YNc(5,Ja,7,5,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",5),t.ALo(11,"translate"),t.TgZ(12,"button",6),t.NdJ("click",function(){return o.submit()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),t.Q6J("matTooltipDisabled",o.plainEdithAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",o.loading||!o.plainEdithAuth),t.xp6(1),t.hij(" ",t.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},dependencies:[_.mk,_.sg,_.O5,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,O.SP,O.uD,O.uX,u.uh,u.xY,u.H8,T.Ou,N.gM,R.w,_.gd,m.X$],styles:[".disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"]}),i})();var qa=l(67376);function ka(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",1)(2,"button",2),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.addTag("{"+s[0]+"}"))}),t.ALo(3,"translate"),t._uU(4),t.qZA(),t.TgZ(5,"span",3),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t._UZ(8,"mat-divider",4),t.qZA()}if(2&i){const e=a.$implicit;t.xp6(2),t.s9C("matTooltip",t.lcZ(3,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAG_HINT")),t.xp6(2),t.hij(" ",e[0]," "),t.xp6(2),t.hij(" ",t.lcZ(7,5,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+e[1])," ")}}let Qa=(()=>{class i{constructor(){this.tags=[],this.addedTag=new t.vpe}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-section"]],inputs:{tags:"tags"},outputs:{addedTag:"addedTag"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],["mat-flat-button","","matTooltipPosition","above",1,"tag-text","w-25",3,"matTooltip","click"],[1,"w-75"],[1,"mt-1","mb-1"]],template:function(e,o){1&e&&t.YNc(0,ka,9,7,"div",0),2&e&&t.Q6J("ngForOf",o.tags)},dependencies:[_.sg,I.lW,N.gM,at.d,m.X$],styles:[".tag-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}"]}),i})(),Ba=(()=>{class i{constructor(){this.addedTag=new t.vpe,this.applicationRelatedTags=[],this.userRelatedTags=[],this.validationLinksUsersTags=[],this.applicationLinksUsersTags=[],this.applicationLinksAdministratorsTags=[],this.perunLinksAdministratorsTags=[],this.userInvitationsTags=[]}ngOnInit(){this.getApplicationRelatedTags(),this.getUserRelatedTags(),this.getValidationLinksUsersTags(),this.getApplicationLinksUsersTags(),this.getApplicationLinksAdministratorsTags(),this.getPerunLinksAdministratorsTags(),this.getUserInvitationsTags()}getApplicationRelatedTags(){const e=[];e.push(["appId","APPID_DESCRIPTION"]),e.push(["actor","ACTOR_DESCRIPTION"]),e.push(["extSource","EXTSOURCE_DESCRIPTION"]),e.push(["voName","VONAME_DESCRIPTION"]),e.push(["groupName","GROUPNAME_DESCRIPTION"]),e.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),e.push(["htmlMailFooter","HTMLMAILFOOTER_DESCRIPTION"]),e.push(["errors","ERRORS_DESCRIPTION"]),e.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),e.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=e}getUserRelatedTags(){const e=[];e.push(["firstName","FIRSTNAME_DESCRIPTION"]),e.push(["lastName","LASTNAME_DESCRIPTION"]),e.push(["displayName","DISPLAYNAME_DESCRIPTION"]),e.push(["mail","MAIL_DESCRIPTION"]),e.push(["phone","PHONE_DESCRIPTION"]),e.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),e.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=e}getValidationLinksUsersTags(){const e=[];e.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),e.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),e.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),e.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),e.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),e.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=e}getApplicationLinksUsersTags(){const e=[];e.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),e.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),e.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),e.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),e.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=e}getApplicationLinksAdministratorsTags(){const e=[];e.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),e.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),e.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),e.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),e.push(["appDetailUrl-newGUI","APPDETAILURLNEWGUI_DESCRIPTION"]),this.applicationLinksAdministratorsTags=e}getPerunLinksAdministratorsTags(){const e=[];e.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),e.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),e.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),e.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),e.push(["perunGuiUrl-newGUI","PERUNGUINEWGUI_DESCRIPTION"]),this.perunLinksAdministratorsTags=e}getUserInvitationsTags(){const e=[];e.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),e.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),e.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),e.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),e.push(["htmlMailFooter","USER_INVITATIONS_HTMLMAILFOOTER_DESCRIPTION"]),e.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),e.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),e.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),e.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),e.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=e}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-bar"]],outputs:{addedTag:"addedTag"},decls:47,vars:46,consts:[["alert_type","info"],["cdkScrollable","",1,"scrollable"],[1,"font-weight-bold"],[3,"tags","addedTag"],[1,"font-weight-bold","pt-2"],[1,"font-italic","text-muted"]],template:function(e,o){1&e&&(t.TgZ(0,"perun-web-apps-alert",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"div",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(8,"div",4),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(12,"div",4),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"div",5),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(19,"div",4),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"div",5),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(26,"div",4),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"div",5),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(33,"div",4),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"div",5),t._uU(37),t.ALo(38,"translate"),t.qZA(),t.TgZ(39,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(40,"div",4),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"div",5),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA()()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.applicationRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.userRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.validationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.perunLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.userInvitationsTags))},dependencies:[qa.PQ,R.w,Qa,m.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),i})();function Ha(i,a){1&i&&(t.TgZ(0,"div")(1,"h1",9),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&i&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function ja(i,a){1&i&&(t.TgZ(0,"h1",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function za(i,a){1&i&&t._UZ(0,"mat-spinner",10)}function $a(i,a){1&i&&(t.TgZ(0,"mat-option",37),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APPROVABLE_GROUP_APP_USER")," "))}function Xa(i,a){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function Ka(i,a){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function Wa(i,a){1&i&&(t.TgZ(0,"mat-option",38),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function ts(i,a){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function es(i,a){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function is(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",42),t._UZ(1,"i",43),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_INFO"),t.oJD))}function os(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",42),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_INFO_NOT_AUTHORIZED")," "))}const ns=function(i){return{"disabled-label":i}};function as(i,a){if(1&i&&(t.TgZ(0,"span",58),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(4);t.Q6J("ngClass",t.VKq(6,ns,"html"===e&&!o.htmlAuth)),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_"+e))," ")}}function ss(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.message[s].subject=n)})("focus",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.isTextFocused=!1)}),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.message[e].subject)}}function rs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.htmlMessage[s].subject=n)})("focus",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.isTextFocused=!1)}),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.htmlMessage[e].subject)}}function ls(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.message[s].text=n)})("focus",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.isTextFocused=!0)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.message[e].text)}}function cs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.htmlMessage[s].text=n)})("focus",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.isTextFocused=!0)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.htmlMessage[e].text)}}function ps(i,a){1&i&&t._UZ(0,"mat-divider",61)}function us(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-tab",44),t.YNc(1,as,4,8,"ng-template",45),t.TgZ(2,"div",46)(3,"div",47)(4,"div",48)(5,"button",49),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(4);return t.KtG(n.showTags=!n.showTags)}),t._uU(6),t.ALo(7,"translate"),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"span",50),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-form-field",18)(13,"div",null,51),t.YNc(15,ss,1,1,"input",52),t.YNc(16,rs,1,1,"input",52),t.qZA()()(),t.TgZ(17,"div",53),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-form-field",18)(21,"div",null,54),t.YNc(23,ls,2,1,"textarea",55),t.YNc(24,cs,2,1,"textarea",55),t.qZA()()(),t.YNc(25,ps,1,0,"mat-divider",56),t.TgZ(26,"div")(27,"app-tag-bar",57),t.NdJ("addedTag",function(n){const r=t.CHM(e).$implicit,d=t.MAs(14),A=t.MAs(22),v=t.oxw(2).$implicit,D=t.oxw(2);return t.KtG(D.addTag(d,A,v,n,r))}),t.qZA()()()()}if(2&i){const e=a.$implicit,o=t.oxw(4);t.Q6J("disabled","html"===e&&!o.htmlAuth),t.xp6(6),t.hij(" ",o.showTags?t.lcZ(7,10,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):t.lcZ(8,12,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),t.xp6(4),t.hij(" ",t.lcZ(11,14,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT"),": "),t.xp6(5),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e),t.xp6(2),t.hij(" ",t.lcZ(19,16,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),t.xp6(5),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e),t.xp6(1),t.Q6J("ngIf",o.showTags),t.xp6(1),t.Q6J("@tagsOpenClose",o.showTags?"open":"closed")}}function ds(i,a){if(1&i&&(t.YNc(0,is,3,3,"perun-web-apps-alert",40),t.YNc(1,os,3,3,"perun-web-apps-alert",40),t.TgZ(2,"mat-tab-group",13),t.YNc(3,us,28,18,"mat-tab",41),t.qZA()),2&i){const e=t.oxw(3);t.Q6J("ngIf",e.htmlAuth),t.xp6(1),t.Q6J("ngIf",!e.htmlAuth),t.xp6(2),t.Q6J("ngForOf",e.formats)}}function _s(i,a){1&i&&(t.TgZ(0,"mat-tab",14),t.ALo(1,"translate"),t.ALo(2,"uppercase"),t.YNc(3,ds,4,3,"ng-template",39),t.qZA()),2&i&&t.s9C("label",t.lcZ(1,1,t.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+a.$implicit)))}function ms(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",11)(1,"div")(2,"perun-web-apps-alert",12),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"mat-tab-group",13)(6,"mat-tab",14),t.ALo(7,"translate"),t.TgZ(8,"div",15)(9,"span",16),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"div",17)(13,"mat-form-field",18)(14,"mat-select",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.mailType=n)})("selectionChange",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.notificationExist())}),t.TgZ(15,"mat-option",20),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.YNc(18,$a,3,3,"mat-option",21),t.TgZ(19,"mat-option",22),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"mat-option",23),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"mat-option",24),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"mat-option",25),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.TgZ(31,"mat-option",26),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mat-option",27),t._uU(35),t.ALo(36,"translate"),t.qZA()()()()(),t.TgZ(37,"div",28),t._UZ(38,"span",29),t.YNc(39,Xa,3,3,"div",30),t.YNc(40,Ka,3,3,"div",30),t.qZA(),t.TgZ(41,"div",15)(42,"span",31),t._uU(43),t.ALo(44,"translate"),t.qZA(),t.TgZ(45,"div",17)(46,"mat-form-field",18)(47,"mat-select",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.appType=n)})("selectionChange",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.notificationExist())}),t.TgZ(48,"mat-option",32),t._uU(49),t.ALo(50,"translate"),t.qZA(),t.YNc(51,Wa,3,3,"mat-option",33),t.qZA()()()(),t.TgZ(52,"div",28),t._UZ(53,"span",29),t.YNc(54,ts,3,3,"div",30),t.YNc(55,es,3,3,"div",30),t.qZA(),t.TgZ(56,"div",15)(57,"span",31),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.TgZ(60,"div",17)(61,"mat-checkbox",34),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.send=n)}),t.qZA()()(),t.TgZ(62,"div",28),t._UZ(63,"span",29),t.TgZ(64,"div",35),t._uU(65),t.ALo(66,"translate"),t.qZA()()(),t.YNc(67,_s,4,5,"mat-tab",36),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("@openClose",e.invalidNotification?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(4,27,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),t.xp6(3),t.s9C("label",t.lcZ(7,29,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),t.xp6(4),t.hij("",t.lcZ(11,31,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.mailType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(17,33,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.hij(" ",t.lcZ(21,35,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(24,37,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),t.xp6(3),t.hij(" ",t.lcZ(27,39,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(30,41,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(33,43,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(36,45,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),t.xp6(4),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(44,47,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.appType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(50,49,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),t.xp6(2),t.Q6J("ngIf","USER_INVITE"!==e.applicationMail.mailType),t.xp6(3),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(59,51,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),t.xp6(3),t.Q6J("ngModel",e.applicationMail.send),t.xp6(4),t.hij(" ",t.lcZ(66,53,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),t.xp6(2),t.Q6J("ngForOf",e.languages)}}function gs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.create())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.invalidNotification||e.loading),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function hs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.save())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.loading||!e.editAuth),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}let rt=(()=>{class i{constructor(e,o,n,s,r,d){this.dialogRef=e,this.registrarService=o,this.data=n,this.authResolver=s,this.groupsService=r,this.store=d,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"],this.formats=["plain_text","html"]}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.htmlAuth=this.authResolver.isPerunAdmin(),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(e=>{this.editAuth=this.authResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[e])}):this.data.voId&&(this.editAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[{id:this.data.voId,beanName:"Vo"}]))}cancel(){this.dialogRef.close()}create(){this.notificationExist(),!this.invalidNotification&&(this.loading=!0,this.data.groupId?this.registrarService.addApplicationMailForGroup({group:this.data.groupId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.addApplicationMailForVo({vo:this.data.voId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}save(){this.loading=!0,this.registrarService.updateApplicationMail({mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}addTag(e,o,n,s,r){const d=this.isTextFocused?o.children.item(0):e.children.item(0),A=d.selectionStart;this.isTextFocused?"html"===r?this.applicationMail.htmlMessage[n].text=this.applicationMail.htmlMessage[n].text.substring(0,A)+s+this.applicationMail.htmlMessage[n].text.substring(A):this.applicationMail.message[n].text=this.applicationMail.message[n].text.substring(0,A)+s+this.applicationMail.message[n].text.substring(A):"html"===r?this.applicationMail.htmlMessage[n].subject=this.applicationMail.htmlMessage[n].subject.substring(0,A)+s+this.applicationMail.htmlMessage[n].subject.substring(A):this.applicationMail.message[n].subject=this.applicationMail.message[n].subject.substring(0,A)+s+this.applicationMail.message[n].subject.substring(A),d.focus()}notificationExist(){for(const e of this.data.applicationMails)if(e.mailType===this.applicationMail.mailType&&e.appType===this.applicationMail.appType)return void(this.invalidNotification=!0);this.invalidNotification=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.tk),t.Y36(u.WI),t.Y36(p.x4),t.Y36(h.ff),t.Y36(p.d6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-edit-notification-dialog"]],decls:15,vars:17,consts:[[1,"h-100","d-flex","flex-column"],[4,"ngIf","ngIfElse"],["edit",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["alert_type","error"],["color","primary"],[3,"label"],[1,"d-flex"],[1,"w-25","m-auto","font-weight-bold"],[1,"w-75"],[1,"w-100"],["disableOptionCentering","",3,"ngModel","disabled","ngModelChange","selectionChange"],["value","APP_CREATED_USER"],["value","APPROVABLE_GROUP_APP_USER",4,"ngIf"],["value","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],["value","USER_INVITE"],[1,"d-flex","mb-3"],[1,"w-25"],["class","w-75 font-italic text-muted",4,"ngIf"],[1,"w-25","font-weight-bold"],["value","INITIAL"],["value","EXTENSION",4,"ngIf"],[3,"ngModel","ngModelChange"],[1,"w-75","font-italic","text-muted"],[3,"label",4,"ngFor","ngForOf"],["value","APPROVABLE_GROUP_APP_USER"],["value","EXTENSION"],["matTabContent",""],["alert_type","info",4,"ngIf"],[3,"disabled",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],[3,"disabled"],["mat-tab-label",""],[1,"d-flex","w-100"],[1,"pr-2","w-100"],[1,"pt-2"],["mat-stroked-button","",1,"right-button",3,"click"],[1,"font-weight-bold","pr-2"],["Input",""],["matInput","",3,"ngModel","ngModelChange","focus",4,"ngIf"],[1,"font-weight-bold"],["Textarea",""],["matInput","","rows","17",3,"ngModel","ngModelChange","focus",4,"ngIf"],["class","ml-3 mr-3","vertical","true",4,"ngIf"],[3,"addedTag"],[3,"ngClass"],["matInput","",3,"ngModel","ngModelChange","focus"],["matInput","","rows","17",3,"ngModel","ngModelChange","focus"],["vertical","true",1,"ml-3","mr-3"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div")(1,"div",0),t.YNc(2,Ha,4,3,"div",1),t.YNc(3,ja,3,3,"ng-template",null,2,t.W1O),t.YNc(5,za,1,0,"mat-spinner",3),t.YNc(6,ms,68,55,"div",4),t.TgZ(7,"div",5)(8,"button",6),t.NdJ("click",function(){return o.cancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,gs,3,4,"button",7),t.TgZ(12,"div",8),t.ALo(13,"translate"),t.YNc(14,hs,3,4,"button",7),t.qZA()()()()),2&e){const n=t.MAs(4);t.Gre("",o.theme," h-100"),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification)("ngIfElse",n),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification),t.xp6(1),t.s9C("matTooltip",t.lcZ(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),t.Q6J("matTooltipDisabled",o.editAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("ngIf",!o.data.createMailNotification)}},dependencies:[_.mk,_.sg,_.O5,H.ey,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,O.SP,O.uD,O.uX,O.Vc,j.oG,u.uh,u.xY,u.H8,z.gD,T.Ou,N.gM,at.d,R.w,Ba,_.gd,m.X$],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}.disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"],data:{animation:[M.es,M.BQ]}}),i})();var lt=l(62707),fs=l(82322);function As(i,a){1&i&&t._UZ(0,"mat-spinner",9)}let Ut=(()=>{class i{constructor(e,o,n,s,r,d,A){this.dialogRef=e,this.voService=o,this.groupService=n,this.translateService=s,this.registrarService=r,this.cd=d,this.data=A,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=v=>v.name}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(e=>{this.fakeGroup={id:-1,name:e,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},this.selectedGroup=this.fakeGroup,this.voService.getAllVos().subscribe(o=>{this.vos=o,this.loading=!1})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.loading=!0,this.data.groupId?this.selectedGroup===this.fakeGroup?this.registrarService.copyMailsFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.copyMailsFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.selectedGroup===this.fakeGroup?this.registrarService.copyMailsFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.copyMailsFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}voSelected(e){this.selectedVo=e,this.getGroups(),this.cd.detectChanges()}getGroups(){this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(e=>{this.groups=[this.fakeGroup].concat(e)}):this.groups=[this.fakeGroup]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.YF),t.Y36(h.ff),t.Y36(m.sK),t.Y36(h.tk),t.Y36(t.sBO),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notifications-copy-mails-dialog"]],decls:22,vars:27,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container",3,"hidden"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,As,1,0,"mat-spinner",1),t.TgZ(5,"div",2)(6,"div",3),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.TgZ(11,"perun-web-apps-vo-search-select",4),t.NdJ("voSelected",function(s){return o.voSelected(s)}),t.qZA(),t._uU(12),t.ALo(13,"translate"),t.TgZ(14,"perun-web-apps-group-search-select",5),t.NdJ("groupSelected",function(s){return o.selectedGroup=s}),t.qZA()(),t.TgZ(15,"div",6)(16,"button",7),t.NdJ("click",function(){return o.cancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"button",8),t.NdJ("click",function(){return o.submit()}),t._uU(20),t.ALo(21,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,15,"DIALOGS.NOTIFICATIONS_COPY_MAILS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("hidden",o.loading),t.xp6(2),t.hij(" ",t.lcZ(8,17,"DIALOGS.NOTIFICATIONS_COPY_MAILS.DESCRIPTION")," "),t.xp6(2),t.hij(" ",t.lcZ(10,19,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_VO"),": "),t.xp6(2),t.Q6J("vos",o.vos),t.xp6(1),t.hij(" ",t.lcZ(13,21,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_GROUP"),": "),t.xp6(2),t.Q6J("groups",o.groups)("disableAutoSelect",!0),t.xp6(3),t.hij(" ",t.lcZ(18,23,"DIALOGS.NOTIFICATIONS_COPY_MAILS.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",null===o.selectedVo||null===o.selectedGroup||o.loading),t.xp6(1),t.hij(" ",t.lcZ(21,25,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SUBMIT_BUTTON")," "))},dependencies:[_.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,lt.M,fs.h,m.X$],data:{animation:[M.BQ]}}),i})();var q=l(96308),Pt=l(18750),yt=l(9185),Vt=l(8231),Ft=l(14849);function Ts(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(n?s.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,o=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",o.selection.hasValue()&&e.all)("indeterminate",o.selection.hasValue()&&!e.all)}}const Is=function(i){return{name:i}};function bs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(n?d.toggle(r):null)})("click",function(n){return n.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,o.selection.isSelected(e)),t.VKq(7,Is,o.getMailType(e))))("checked",o.selection.isSelected(e))}}function vs(i,a){1&i&&(t.ynx(0,14),t.YNc(1,Ts,4,7,"th",15),t.YNc(2,bs,4,9,"td",16),t.BQk())}function Es(i,a){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function Cs(i,a){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Ss(i,a){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function xs(i,a){if(1&i&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.Oqu(o.getMailType(e))}}function Ns(i,a){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function Os(i,a){1&i&&(t.TgZ(0,"div")(1,"mat-icon",26),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_INITIAL")," "))}function Zs(i,a){1&i&&(t.TgZ(0,"mat-icon",27),t._uU(1,"cached"),t.qZA(),t._uU(2),t.ALo(3,"translate")),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_EXTENSION")," "))}function Ds(i,a){if(1&i&&(t.TgZ(0,"td",23),t.YNc(1,Os,5,3,"div",24),t.YNc(2,Zs,4,3,"ng-template",null,25,t.W1O),t.qZA()),2&i){const e=a.$implicit,o=t.MAs(3);t.xp6(1),t.Q6J("ngIf","INITIAL"===e.appType)("ngIfElse",o)}}function Ms(i,a){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function Ls(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",23)(1,"section")(2,"mat-checkbox",28),t.NdJ("change",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.changeSending(s))})("click",function(n){return n.stopPropagation()}),t.ALo(3,"translate"),t.qZA()()()}if(2&i){const e=a.$implicit,o=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,4,"VO_DETAIL.SETTINGS.NOTIFICATIONS.DISABLED_HINT")),t.Q6J("disabled",o.disableSend)("matTooltipDisabled",!o.disableSend)("ngModel",e.send)}}function Rs(i,a){1&i&&t._UZ(0,"tr",29)}function ws(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"tr",30),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.openApplicationMailDetail(s))}),t.qZA()}2&i&&t.ekj("cursor-pointer",!0)}function Gs(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}const Us=function(i){return{all:i}};let Yt=(()=>{class i{constructor(e,o,n,s,r,d){this.registrarService=e,this.translate=o,this.notificator=n,this.dialog=s,this.authResolver=r,this.tableCheckbox=d,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new E.Ov(!0,[]),this.selectionChange=new t.vpe,this.pageSizeOptions=g.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new c.by(this.applicationMails),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}changeSending(e){e.send?this.registrarService.setSendingEnabled({mails:[e],enabled:!1}).subscribe(()=>{e.send=!1}):this.registrarService.setSendingEnabled({mails:[e],enabled:!0}).subscribe(()=>{e.send=!0})}openApplicationMailDetail(e){const o=(0,g.kZ)();o.width="1400px",o.height="700px",o.data={theme:this.theme,voId:this.voId,groupId:this.groupId,createMailNotification:!1,applicationMail:e},this.dialog.open(rt,o).afterClosed().subscribe(s=>{s&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.EDIT_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.selectionChange.emit(this.selection),this.update())})}getMailType(e){let o="";return null==e.mailType||0===e.mailType.length?o="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+e.mailType).subscribe(n=>{o=n}),o}update(){this.groupId?this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(e=>{this.updateTable(e)}):this.registrarService.getApplicationMailsForVo(this.voId).subscribe(e=>{this.updateTable(e)})}toggle(e){this.selection.toggle(e),this.selectionChange.emit(this.selection)}updateTable(e){this.applicationMails=e,this.dataSource=new c.by(this.applicationMails),this.setDataSource()}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(m.sK),t.Y36(p.V6),t.Y36(u.uw),t.Y36(p.x4),t.Y36(p.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notification-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(g.l9,7),t.Gf(q.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(o.child=n.first),t.iGM(n=t.CRH())&&(o.matSort=n.first)}},inputs:{applicationMails:"applicationMails",voId:"voId",groupId:"groupId",displayedColumns:"displayedColumns",disableSend:"disableSend",selection:"selection",tableId:"tableId",theme:"theme"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:20,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","mailType"],["mat-cell","",4,"matCellDef"],["matColumnDef","appType"],["matColumnDef","send"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf","ngIfElse"],["extension",""],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],[3,"disabled","matTooltipDisabled","ngModel","matTooltip","change","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1)(2,"table",2),t.YNc(3,vs,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Es,3,3,"th",5),t.YNc(7,Cs,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Ss,3,3,"th",5),t.YNc(10,xs,2,1,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,Ns,3,3,"th",5),t.YNc(13,Ds,4,2,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,Ms,3,3,"th",5),t.YNc(16,Ls,4,6,"td",8),t.BQk(),t.YNc(17,Rs,1,0,"tr",11),t.YNc(18,ws,1,2,"tr",12),t.qZA()()(),t.YNc(19,Gs,3,3,"perun-web-apps-alert",13)),2&e&&(t.Q6J("hidden",0===o.applicationMails.length),t.xp6(1),t.Q6J("pageSizeOptions",o.pageSizeOptions)("dataLength",o.dataSource.filteredData.length)("hideExport",!0)("tableId",o.tableId),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Us,t.xi3(4,10,o.dataSource,o.selection.selected.length))),t.xp6(14),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.applicationMails.length))},dependencies:[_.O5,f.JJ,f.On,P.Hw,q.YE,q.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,j.oG,N.gM,R.w,Pt.l,m.X$,yt.I,Vt.G,Ft.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Ps(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function ys(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Vs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.copy())}),t.TgZ(1,"i",6),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Fs(i,a){1&i&&t._UZ(0,"mat-spinner",13)}function Ys(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",14),t.NdJ("selectionChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.changeSelection(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("applicationMails",e.applicationMails)("disableSend",!e.addAuth)("displayedColumns",e.displayedColumns)("tableId",e.tableId)("selection",e.selection)("theme","vo-theme")("voId",e.vo.id)}}let Js=(()=>{class i{constructor(e,o,n,s,r,d,A,v,D){this.route=e,this.registrarService=o,this.translate=n,this.dialog=s,this.notificator=r,this.authResolver=d,this.voService=A,this.store=v,this.entityStorageService=D,this.loading=!1,this.applicationMails=[],this.selection=new E.Ov(!0,[]),this.tableId=C.VR,this.displayedColumns=[]}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refresh()}refresh(){this.loading=!0,this.registrarService.getVoApplicationForm(this.vo.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(o=>{this.applicationMails=o,this.loading=!1})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("vo-deleteMailById_ApplicationForm_Integer_policy",[this.vo]),this.copyAuth=this.authResolver.isAuthorized("destination-copyMailsFromVoToVo_Vo_Vo_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=this.store.getProperty("supported_languages"),o=(0,g.i5)(e);o.formId=this.applicationForm.id;const n=(0,g.kZ)();n.width="1400px",n.height="700px",n.data={theme:"vo-theme",voId:this.vo.id,createMailNotification:!0,applicationMail:o,applicationMails:this.applicationMails},this.dialog.open(rt,n).afterClosed().subscribe(r=>{r&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(d=>{this.notificator.showSuccess(d)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(wt,e).afterClosed().subscribe(n=>{n&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Ut,e).afterClosed().subscribe(n=>{n&&(this.selection.clear(),this.updateTable())})}changeEmailFooter(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Gt,e)}changeSelection(e){this.selection=e}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(e=>{this.applicationMails=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.tk),t.Y36(m.sK),t.Y36(u.uw),t.Y36(p.V6),t.Y36(p.x4),t.Y36(h.YF),t.Y36(p.d6),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-notifications"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:15,vars:11,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"perun-web-apps-refresh-button",2),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(5,Ps,3,3,"button",3),t.YNc(6,ys,3,4,"button",4),t.TgZ(7,"button",5),t.NdJ("click",function(){return o.changeEmailFooter()}),t.TgZ(8,"i",6),t._uU(9,"email"),t.qZA(),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.YNc(12,Vs,5,3,"button",7),t.qZA(),t.YNc(13,Fs,1,0,"mat-spinner",8),t.YNc(14,Ys,1,7,"app-notification-list",9)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,7,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(4),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(11,9,"VO_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",o.copyAuth),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,Z.t,Yt,m.X$]}),i})();var qs=l(14336);function ks(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function Qs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Bs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.copy())}),t.TgZ(1,"i",7),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Hs(i,a){1&i&&t._UZ(0,"mat-spinner",14)}function js(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",15),t.NdJ("selectionChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.changeSelection(n))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableSend",!e.addAuth)("displayedColumns",e.displayedColumns)("applicationMails",e.applicationMails)("groupId",e.group.id)("selection",e.selection)("tableId",e.tableId)("theme","group-theme")}}function zs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",2)(2,"perun-web-apps-refresh-button",3),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.refresh())}),t.qZA(),t.YNc(3,ks,3,3,"button",4),t.YNc(4,Qs,3,4,"button",5),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.changeEmailFooter())}),t.TgZ(6,"i",7),t._uU(7,"email"),t.qZA(),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,Bs,5,3,"button",8),t.qZA(),t.YNc(11,Hs,1,0,"mat-spinner",9),t.YNc(12,js,1,7,"app-notification-list",10),t.qZA()}if(2&i){const e=t.oxw();t.xp6(3),t.Q6J("ngIf",e.addAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(9,6,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",e.copyAuth),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function $s(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.createEmptyApplicationForm())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.CREATE_APPLICATION_FORM")," "))}function Xs(i,a){if(1&i&&(t.TgZ(0,"div")(1,"perun-web-apps-alert",16),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,$s,3,3,"button",17),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_APPLICATION_FORM")),t.xp6(2),t.Q6J("ngIf",e.createFormAuth)}}let Ks=(()=>{class i{constructor(e,o,n,s,r,d,A,v){this.registrarService=e,this.translate=o,this.dialog=n,this.apiRequest=s,this.notificator=r,this.guiAuthResolver=d,this.attributesService=A,this.entityStorageService=v,this.loading=!1,this.applicationMails=[],this.selection=new E.Ov(!0,[]),this.noApplicationForm=!1,this.editEmailFooterAuth=!1,this.addAuth=!1,this.removeAuth=!1,this.copyAuth=!1,this.createFormAuth=!1,this.displayedColumns=[],this.tableId=C.AA}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refresh()}refresh(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.registrarService.getGroupApplicationForm(this.group.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(o=>{this.applicationMails=o,this.apiRequest.dontHandleErrorForNext(),this.attributesService.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.setAuthRights(),this.loading=!1},n=>{"PrivilegeException"!==n.name&&this.notificator.showRPCError(n),this.setAuthRights(),this.loading=!1})})},e=>{"FormNotExistsException"===e.name?(this.noApplicationForm=!0,this.setAuthRights(),this.loading=!1):this.notificator.showRPCError(e)})}setAuthRights(){this.createFormAuth=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.addAuth=this.guiAuthResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("group-deleteMailById_ApplicationForm_Integer_policy",[this.group]),this.copyAuth=this.guiAuthResolver.isAuthorized("destination-copyMailsFromVoToGroup_Vo_Group_boolean_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=(0,g.i5)();e.formId=this.applicationForm.id;const o=(0,g.kZ)();o.width="1400px",o.height="700px",o.data={theme:"group-theme",voId:this.group.voId,groupId:this.group.id,createMailNotification:!0,applicationMail:e,applicationMails:this.applicationMails},this.dialog.open(rt,o).afterClosed().subscribe(s=>{s&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(wt,e).afterClosed().subscribe(n=>{n&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(Ut,e).afterClosed().subscribe(n=>{n&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(e=>{this.applicationMails=e,this.loading=!1})}changeEmailFooter(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(Gt,e)}changeSelection(e){this.selection=e}createEmptyApplicationForm(){this.registrarService.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(m.sK),t.Y36(u.uw),t.Y36(p.F5),t.Y36(p.V6),t.Y36(p.x4),t.Y36(h.H8),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-notifications"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"w-100","d-flex"],[3,"click"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,zs,13,8,"div",1),t.YNc(4,Xs,5,4,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",!o.noApplicationForm),t.xp6(1),t.Q6J("ngIf",o.noApplicationForm&&!o.loading))},dependencies:[_.O5,I.lW,T.Ou,R.w,Z.t,Yt,m.X$]}),i})();var ct=l(15935);function Ws(i,a){1&i&&t._UZ(0,"mat-spinner",8)}function tr(i,a){if(1&i&&(t.TgZ(0,"div",9),t._UZ(1,"app-ext-sources-list",10),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("selection",e.selection)("extSources",e.extSources)("filterValue",e.filterValue)("tableId",e.tableId)}}let Jt=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.extSourceService=n,this.notificator=s,this.translate=r,this.extSources=[],this.selection=new E.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=C.BV}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.data.groupId?this.extSourceService.getVoExtSources(this.data.voId).subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:n})=>n===o.id)),this.loading=!1},()=>this.loading=!1):this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:n})=>n===o.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}addVoExtSources(e){const o=e.map(n=>n.id);this.extSourceService.addExtSourcesWithVoSource(this.data.voId,o).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}addGroupExtSources(e){const o=e.map(n=>n.id);this.extSourceService.addExtSourcesWithGroupSource(this.data.groupId,o).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}onAdd(){this.loading=!0,this.data.groupId?this.addGroupExtSources(this.selection.selected):this.addVoExtSources(this.selection.selected)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.KG),t.Y36(p.V6),t.Y36(p.Te))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-ext-source-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title",""],[1,"page-subtitle"],[1,"font-size-1rem",3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"selection","extSources","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA()(),t.YNc(6,Ws,1,0,"mat-spinner",3),t.YNc(7,tr,2,4,"div",4),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return o.onCancel()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",7),t.NdJ("click",function(){return o.onAdd()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,10,"DIALOGS.ADD_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(11,12,"DIALOGS.ADD_EXT_SOURCES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(14,14,"DIALOGS.ADD_EXT_SOURCES.ADD")," "))},dependencies:[_.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,L.L,ct.D,m.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),i})();function er(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function ir(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1,"id"),t.qZA())}function or(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.id)}}function nr(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1,"name"),t.qZA())}function ar(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function sr(i,a){1&i&&t._UZ(0,"tr",19)}function rr(i,a){1&i&&t._UZ(0,"tr",20)}function lr(i,a){if(1&i&&(t.TgZ(0,"div",8)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",9),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",10),t.ynx(8,11),t.YNc(9,ir,2,0,"th",12),t.YNc(10,or,2,1,"td",13),t.BQk(),t.ynx(11,14),t.YNc(12,nr,2,0,"th",12),t.YNc(13,ar,2,1,"td",13),t.BQk(),t.YNc(14,sr,1,0,"tr",15),t.YNc(15,rr,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_EXT_SOURCES.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_EXT_SOURCES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.extSources),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let qt=(()=>{class i{constructor(e,o,n,s,r,d){this.dialogRef=e,this.data=o,this.extSourceService=n,this.notificator=s,this.tableConfigService=r,this.translate=d,this.extSources=[],this.displayedColumns=["id","name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.extSources=this.data.extSources}removeVoExtSources(){const e=this.extSources.map(o=>o.id);this.extSourceService.removeExtSourcesWithVoSource(this.data.voId,e).subscribe({next:()=>{this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)})},error:()=>this.loading=!1})}removeGroupExtSources(){const e=this.extSources.map(o=>o.id);this.extSourceService.removeExtSourcesWithGroupSource(this.data.groupId,e).subscribe({next:()=>{this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)})},error:()=>this.loading=!1})}onRemove(){this.loading=!0,this.data.groupId?this.removeGroupExtSources():this.removeVoExtSources()}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.KG),t.Y36(p.V6),t.Y36(C.dB),t.Y36(m.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-ext-source-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.YNc(5,er,1,0,"mat-spinner",2),t.YNc(6,lr,16,9,"div",3),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){return o.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return o.onRemove()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,8,"DIALOGS.REMOVE_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,10,"DIALOGS.REMOVE_EXT_SOURCES.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.REMOVE_EXT_SOURCES.REMOVE")," "))},dependencies:[_.O5,I.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();function cr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function pr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function ur(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function dr(i,a){if(1&i&&t._UZ(0,"app-ext-sources-list",10),2&i){const e=t.oxw();t.Q6J("extSources",e.extSources)("selection",e.selection)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("tableId",e.tableId)}}let _r=(()=>{class i{constructor(e,o,n,s,r,d){this.extSourceService=e,this.dialog=o,this.notificator=n,this.translate=s,this.authResolver=r,this.entityStorageService=d,this.extSources=[],this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.qV,this.displayedColumns=[],this.translate.get("VO_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(A=>this.successMessage=A)}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.extSourceService.getVoExtSources(this.vo.id).subscribe(e=>{this.extSources=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(e){this.filterValue=e}onAdd(){const e=(0,g.kZ)();e.width="1000px",e.data={voId:this.vo.id,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(Jt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}onRemove(){const e=(0,g.kZ)();e.width="600px",e.data={voId:this.vo.id,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(qt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Vo_ExtSource_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Vo_ExtSource_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","name","type"]:["id","name","type"]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(u.uw),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","selection","displayedColumns","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"extSources","selection","displayedColumns","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,cr,3,3,"button",2),t.YNc(6,pr,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,ur,1,0,"mat-spinner",5),t.YNc(9,dr,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"VO_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,ct.D,Z.t,L.L,m.X$]}),i})();var V=l(25788);function mr(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function gr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",11),t.NdJ("voSelected",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.getGroupsToInclude(n.id))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("vo",e.thisVo.vo)("vos",e.vosToSelect)}}const hr=function(){return["select","id","name","description"]};function fr(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",12),2&i){const e=t.oxw(2);t.Q6J("groupsToDisableCheckbox",e.groupsToDisable)("disableGroups",!0)("groups",e.groups)("selection",e.selection)("disableHeadCheckbox",!0)("disableRouting",!0)("displayedColumns",t.DdM(10,hr))("filter",e.filterValue)("tableId",e.tableId)("relation",!0)}}function Ar(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Tr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.YNc(1,gr,1,2,"perun-web-apps-vo-search-select",4),t.TgZ(2,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applyFilter(n))}),t.qZA(),t.TgZ(3,"div",6),t.YNc(4,fr,1,11,"perun-web-apps-groups-list",7),t.qZA(),t.YNc(5,Ar,1,0,"mat-spinner",1),t.TgZ(6,"div",8)(7,"button",9),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onCancel())}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSubmit())}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()}if(2&i){const e=t.oxw();t.Tol(e.theme),t.xp6(1),t.Q6J("ngIf",e.vosToSelect.length>1),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(3),t.hij(" ",t.lcZ(9,10,"DIALOGS.CREATE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.initLoading||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,12,"DIALOGS.CREATE_RELATION.CREATE")," ")}}let Ir=(()=>{class i{constructor(e,o,n,s,r,d,A){this.dialogRef=e,this.groupService=o,this.notificator=n,this.translate=s,this.guiAuthResolver=r,this.voService=d,this.data=A,this.selection=new E.Ov(!1,[]),this.filterValue="",this.tableId=C.RS,this.groupsToDisable=new Set,this.vosToSelect=[],s.get("DIALOGS.CREATE_RELATION.SUCCESS").subscribe(v=>this.successMessage=v)}ngOnInit(){this.initLoading=!0,this.groupService.getGroupUnions(this.data.group.id,!this.data.reverse).subscribe(e=>{e=e.concat(this.data.groups),this.groupsToNotInclude=e.map(o=>o.id),this.voService.getEnrichedVoById(this.data.voId).subscribe(o=>{this.thisVo=o,this.vosToSelect=o.memberVos.filter(n=>this.guiAuthResolver.isAuthorized("getAllAllowedGroupsToHierarchicalVo_Vo_policy",[n])),this.vosToSelect.push(o.vo),this.getGroupsToInclude(this.data.voId),this.initLoading=!1})},()=>this.initLoading=!1),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}getGroupsToInclude(e){this.loading=!0,e===this.data.voId?this.groupService.getAllGroups(this.data.voId).subscribe(o=>{this.finishLoadingGroups(o)},()=>this.loading=!1):this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.data.voId,e).subscribe(o=>{this.finishLoadingGroups(o)},()=>this.loading=!1)}onSubmit(){this.loading=!0,this.groupService.createGroupUnion(this.data.group.id,this.selection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}setGroupsToDisable(){for(const e of this.groups)(!this.guiAuthResolver.isAuthorized("result-createGroupUnion_Group_Group_policy",[this.data.group])||!this.guiAuthResolver.isAuthorized("operand-createGroupUnion_Group_Group_policy",[e]))&&this.groupsToDisable.add(e.id)}finishLoadingGroups(e){this.groups=e.filter(o=>!this.groupsToNotInclude.includes(o.id)&&o.id!==this.data.group.id),this.setGroupsToDisable(),this.selection.clear(),this.loading=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.ff),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.x4),t.Y36(h.YF),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-relation-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"class",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"vo","vos","voSelected",4,"ngIf"],[3,"placeholder","filter"],["mat-dialog-content","",1,"dialog-container"],[3,"groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId","relation",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"vo","vos","voSelected"],[3,"groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId","relation"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,mr,1,0,"mat-spinner",1),t.qZA(),t.YNc(5,Tr,13,14,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.CREATE_RELATION.TITLE")),t.xp6(2),t.Tol(o.theme),t.xp6(1),t.Q6J("ngIf",o.initLoading),t.xp6(1),t.Q6J("ngIf",!o.initLoading))},dependencies:[_.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,V.W,L.L,lt.M,m.X$]}),i})();function br(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function vr(i,a){1&i&&t._UZ(0,"th",15)}function Er(i,a){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Cr(i,a){1&i&&t._UZ(0,"tr",17)}function Sr(i,a){1&i&&t._UZ(0,"tr",18)}function xr(i,a){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,vr,1,0,"th",11),t.YNc(10,Er,2,1,"td",12),t.BQk(),t.YNc(11,Cr,1,0,"tr",13),t.YNc(12,Sr,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_RELATION.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_RELATION.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Nr=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.notificator=n,this.groupService=s,this.translate=r,this.displayedColumns=["name"],r.get("DIALOGS.REMOVE_RELATION.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.groups)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,1===this.data.groups.length)this.groupService.removeGroupUnion(this.data.reverse?this.data.groups[0].id:this.data.groupId,this.data.reverse?this.data.groupId:this.data.groups[0].id).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1);else{const e=this.data.reverse?this.data.groups.shift().id:this.data.groupId,o=this.data.reverse?this.data.groupId:this.data.groups.shift().id;this.groupService.removeGroupUnion(e,o).subscribe(()=>{this.onSubmit(),this.dialogRef.close(!0)},()=>this.loading=!1)}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(p.V6),t.Y36(h.ff),t.Y36(m.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-relation-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,br,1,0,"mat-spinner",1),t.YNc(5,xr,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_RELATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_RELATION.DELETE")," "))},dependencies:[_.O5,I.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();var K=l(54004);function Or(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",8),t.ALo(1,"translate"),t.TgZ(2,"button",9),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onDelete())}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&i){const e=a.ngIf,o=t.oxw();t.s9C("matTooltip",t.lcZ(1,4,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE_TOOLTIP")),t.Q6J("matTooltipDisabled",0===o.selection.selected.length||e.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||!e.removeAuth||o.reverse),t.xp6(1),t.hij(" ",t.lcZ(4,6,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE")," ")}}function Zr(i,a){1&i&&t._UZ(0,"mat-spinner",10)}const Dr=function(){return["select","id","vo","name","description"]};function Mr(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",11),2&i){const e=t.oxw();t.Q6J("groups",e.groups)("parentGroup",e.group)("disableHeadCheckbox",!0)("selection",e.selection)("displayedColumns",t.DdM(7,Dr))("filter",e.filterValue)("tableId",e.tableId)}}const Lr=function(i){return{removeAuth:i}};let Rr=(()=>{class i{constructor(e,o,n,s){this.groupService=e,this.dialog=o,this.entityStorageService=n,this.authResolver=s,this.selection=new E.Ov(!0,[]),this.groups=[],this.reverse=!1,this.filterValue="",this.tableId=C._7,this.removeAuth$=this.selection.changed.pipe((0,K.U)(r=>r.source.selected.reduce((d,A)=>d&&this.authResolver.isAuthorized("result-removeGroupUnion_Group_Group_policy",[{id:this.group.id,beanName:"Group"}])&&this.authResolver.isAuthorized("operand-removeGroupUnion_Group_Group_policy",[A]),!0)))}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.refreshTable()}onCreate(){const e=(0,g.kZ)();e.width="1050px",e.data={groups:this.groups,theme:"group-theme",group:this.group,voId:this.group.voId,reverse:this.reverse},this.dialog.open(Ir,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}onDelete(){const e=(0,g.kZ)();e.width="450px",e.data={groups:this.selection.selected,theme:"group-theme",groupId:this.group.id,reverse:this.reverse},this.dialog.open(Nr,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selection.clear(),this.groupService.getGroupUnions(this.group.id,this.reverse).subscribe(e=>{this.groups=e,this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}showReverseUnions(){this.reverse=!this.reverse,this.refreshTable()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(u.uw),t.Y36(p.fb),t.Y36(p.x4))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-relations"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:16,vars:18,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],[3,"matTooltip","matTooltipDisabled",4,"ngIf"],[3,"placeholder","filter"],[3,"change"],["class","ml-auto mr-auto",4,"ngIf"],[3,"groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId",4,"ngIf"],[3,"matTooltip","matTooltipDisabled"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return o.onCreate()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,Or,5,8,"span",3),t.ALo(9,"async"),t.TgZ(10,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.TgZ(11,"mat-checkbox",5),t.NdJ("change",function(){return o.showReverseUnions()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.YNc(14,Zr,1,0,"mat-spinner",6),t.YNc(15,Mr,1,8,"perun-web-apps-groups-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,8,"GROUP_DETAIL.SETTINGS.RELATIONS.TITLE")),t.xp6(3),t.Q6J("disabled",o.reverse),t.xp6(1),t.hij(" ",t.lcZ(7,10,"GROUP_DETAIL.SETTINGS.RELATIONS.CREATE")," "),t.xp6(2),t.Q6J("ngIf",t.VKq(16,Lr,t.lcZ(9,12,o.removeAuth$))),t.xp6(2),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Oqu(t.lcZ(13,14,"GROUP_DETAIL.SETTINGS.RELATIONS.REVERSE_UNIONS")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,j.oG,T.Ou,N.gM,V.W,Z.t,L.L,_.Ov,m.X$]}),i})();var $=l(64901),wr=l(99168);function Gr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.showAllDetails=!0)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_ALL_DETAILS")," "))}function Ur(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.showAllDetails=!1)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_LESS_DETAILS")," "))}function Pr(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function yr(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-applications-dynamic-list",8),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("tableId",e.showAllDetails?e.detailTableId:e.tableId)("searchString",e.filterValue)("member",e.member)("displayedColumns",e.showAllDetails?e.detailedDisplayedColumns:e.displayedColumns)("dateFrom",e.dateFrom)("refreshTable",e.refresh)}}let Vr=(()=>{class i{constructor(e,o,n){this.registrarManager=e,this.memberManager=o,this.route=n,this.loading=!1,this.displayedColumns=["id","createdAt","type","state","user","groupName","modifiedBy"],this.detailedDisplayedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=C.d7,this.tableId=C.vq,this.dateFrom=new Date("1970-01-01")}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.memberId=Number(e.memberId),this.memberManager.getMemberById(this.memberId).subscribe(o=>{this.member=o,this.loading=!1})})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(h.uq),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-applications"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","member","displayedColumns","states","dateFrom","refreshTable"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh=!o.refresh}),t.qZA(),t.YNc(5,Gr,3,3,"button",2),t.YNc(6,Ur,3,3,"button",2),t.TgZ(7,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA()(),t.YNc(8,Pr,1,0,"mat-spinner",4),t.YNc(9,yr,2,6,"div",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"MEMBER_DETAIL.APPLICATIONS.TITLE")),t.xp6(4),t.Q6J("ngIf",!o.showAllDetails),t.xp6(1),t.Q6J("ngIf",o.showAllDetails),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.APPLICATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,Z.t,$.P,wr.S,m.X$]}),i})();var pt=l(68675),w=l(86257),kt=l(47957);function Fr(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECT_RESOURCE"))}function Yr(i,a){1&i&&t._UZ(0,"mat-spinner",13)}function Jr(i,a){if(1&i&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function qr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",25),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return r.setResource(s),t.KtG(r.stepper.selected.completed=!0)}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function kr(i,a){if(1&i&&(t.TgZ(0,"div",22),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Qr(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div")(2,"mat-form-field",14),t._UZ(3,"input",15),t.ALo(4,"translate"),t.TgZ(5,"mat-autocomplete",16,17),t.YNc(7,Jr,2,2,"mat-option",18),t.ALo(8,"async"),t.qZA()()(),t.TgZ(9,"div")(10,"mat-form-field",14)(11,"mat-select",19),t.ALo(12,"translate"),t.YNc(13,qr,2,2,"mat-option",20),t.ALo(14,"async"),t.qZA()()(),t.TgZ(15,"div")(16,"span",21),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"div",22),t._uU(20),t.qZA()(),t.TgZ(21,"div")(22,"span",21),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.YNc(25,kr,2,1,"div",23),t.qZA()()),2&i){const e=t.MAs(6),o=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,10,"DIALOGS.ADD_MEMBER_TO_RESOURCE.FILTER")),t.Q6J("formControl",o.facilityCtrl)("matAutocomplete",e),t.xp6(4),t.Q6J("ngForOf",t.lcZ(8,12,o.filteredFacilities)),t.xp6(4),t.s9C("placeholder",t.lcZ(12,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECTED")),t.xp6(2),t.Q6J("ngForOf",t.lcZ(14,16,o.filteredResources)),t.xp6(4),t.Oqu(t.lcZ(18,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.DESCRIPTION")),t.xp6(3),t.Oqu(o.description),t.xp6(3),t.Oqu(t.lcZ(24,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SERVICES")),t.xp6(2),t.Q6J("ngForOf",o.services)}}function Br(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.ADD_GROUP"))}function Hr(i,a){1&i&&t._UZ(0,"mat-spinner",13)}const jr=function(){return["select","id","name","description"]};function zr(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-groups-list",26),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("disableGroups",!0)("disableHeadCheckbox",!0)("disableRouting",!0)("groupsToDisableCheckbox",e.membersGroupsId)("groups",e.groups)("displayedColumns",t.DdM(7,jr))("selection",e.selectedGroups)}}function $r(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.NO_GROUPS")," "))}function Xr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK")," "))}function Kr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return n.stepperNext(),t.KtG(n.loadGroups())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",null===e.selectedResource||e.processing||e.loading),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CONTINUE")," ")}}function Wr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onFinish())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selectedGroups.selected.length||e.processing),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT")," ")}}let tl=(()=>{class i{constructor(e,o,n,s,r,d,A,v){this.dialogRef=e,this.data=o,this.resourceManager=n,this.groupManager=s,this.notificator=r,this.translate=d,this.authResolver=A,this.cd=v,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new f.p4,this.facilitiesNames=[],this.resources=[],this.selectedResource=null,this.services=[],this.description="",this.groups=[],this.selectedGroups=new E.Ov(!1,[])}ngAfterViewInit(){this.stepper.selectionChange.subscribe(()=>{this.selectedGroups.clear()}),this.cd.detectChanges()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getRichResources(this.data.voId).subscribe(e=>{this.resources=e,this.getResourceFacilities(),this.loading=!1},()=>this.loading=!1)}setResource(e){this.processing=!0,this.selectedResource=e,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(o=>{this.services=o,this.processing=!1},()=>this.processing=!1),this.description=this.selectedResource.description}loadGroups(){this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(e=>{this.groups=e,this.groupManager.getAllMemberGroups(this.data.memberId).subscribe(o=>{this.membersGroupsId=new Set(o.map(n=>n.id)),this.groups.forEach(n=>{this.authResolver.isAuthorized("addMember_Group_Member_policy",[n])||this.membersGroupsId.add(n.id)}),this.processing=!1},()=>this.processing=!1)})}onFinish(){this.processing=!0,this.groupManager.addMembers(this.selectedGroups.selected[0].id,[this.data.memberId]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_TO_RESOURCE.SUCCESS")),this.dialogRef.close(!0)},()=>this.processing=!1)}onCancel(){this.dialogRef.close(!1)}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}getResourceFacilities(){const e=new Set;for(const o of this.resources)e.add(o.facility.name);this.facilitiesNames=Array.from(e),this.filteredFacilities=this.facilityCtrl.valueChanges.pipe((0,pt.O)(""),(0,K.U)(o=>this.filterFacilities(o))),this.filteredResources=this.facilityCtrl.valueChanges.pipe((0,pt.O)(""),(0,K.U)(o=>this.filterResources(o)))}filterFacilities(e){const o=e.toLowerCase();return this.facilitiesNames.filter(s=>s.toLowerCase().includes(o)).sort((s,r)=>s.toLowerCase().localeCompare(r.toLowerCase()))}filterResources(e){if(null==e)return this.resources;const o=e.toLowerCase();return this.resources.filter(s=>s.facility.name.toLowerCase().startsWith(o)).sort((s,r)=>s.name.toLowerCase().localeCompare(r.name.toLowerCase()))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.xk),t.Y36(h.ff),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.x4),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-to-resource-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(w.Vq,5),2&e){let n;t.iGM(n=t.CRH())&&(o.stepper=n.first)}},decls:22,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["completed","false"],["matStepLabel",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"input-style"],["aria-label","Number","matInput","","type","text",3,"formControl","matAutocomplete","placeholder"],["autoActiveFirstOption",""],["autoFacility","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["disableOptionCentering","true","required","",3,"placeholder"],[3,"value","click",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"ml-5"],["class","ml-5",4,"ngFor","ngForOf"],[3,"value"],[3,"value","click"],[3,"disableGroups","disableHeadCheckbox","disableRouting","groupsToDisableCheckbox","groups","displayedColumns","selection"],["alert_type","warn"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1)(5,"mat-stepper",2)(6,"mat-step",3),t.YNc(7,Fr,2,3,"ng-template",4),t.YNc(8,Yr,1,0,"mat-spinner",5),t.YNc(9,Qr,26,22,"div",6),t.qZA(),t.TgZ(10,"mat-step"),t.YNc(11,Br,2,3,"ng-template",4),t.YNc(12,Hr,1,0,"mat-spinner",5),t.YNc(13,zr,2,8,"div",6),t.YNc(14,$r,3,3,"perun-web-apps-alert",7),t.qZA()()(),t.TgZ(15,"div",8)(16,"button",9),t.NdJ("click",function(){return o.onCancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.YNc(19,Xr,3,3,"button",10),t.YNc(20,Kr,3,8,"button",11),t.YNc(21,Wr,3,4,"button",12),t.qZA()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),t.xp6(3),t.Q6J("linear",!0),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",0!==o.groups.length&&!o.processing),t.xp6(1),t.Q6J("ngIf",0===o.groups.length&&!o.processing),t.xp6(3),t.hij(" ",t.lcZ(18,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==o.stepper&&0!==o.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex!==o.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex===o.stepper._steps.length-1))},dependencies:[_.sg,_.O5,kt.XC,kt.ZL,H.ey,x.KE,y.Nt,f.Fj,f.JJ,f.oH,I.lW,u.uh,u.xY,u.H8,z.gD,T.Ou,w.C0,w.VY,w.Vq,R.w,V.W,_.Ov,m.X$],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),i})();var el=l(62109);function il(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addResource())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function ol(i,a){if(1&i&&t._UZ(0,"perun-web-apps-resources-list",7),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("routingVo",!0)("resources",e.resources)("tableId",e.tableId)}}function nl(i,a){1&i&&t._UZ(0,"mat-spinner",8)}let al=(()=>{class i{constructor(e,o,n,s,r){this.dialog=e,this.memberManager=o,this.resourceManager=n,this.route=s,this.authResolver=r,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=C.aL}ngOnInit(){this.route.parent.params.subscribe(e=>{const o=Number(e.memberId);this.memberManager.getMemberById(o).subscribe(n=>{this.member=n,this.refreshTable()})})}addResource(){const e=(0,g.kZ)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(tl,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}refreshTable(){this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(e=>{this.resources=e,this.setAuthRights(),this.loading=!1})}setAuthRights(){const e={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[e])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[e]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[e,this.resources[0]]))}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.uq),t.Y36(h.xk),t.Y36(b.gz),t.Y36(p.x4))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-resources"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],[3,"disableRouting","filterValue","displayedColumns","routingVo","resources","tableId",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[3,"disableRouting","filterValue","displayedColumns","routingVo","resources","tableId"],[1,"mr-auto","ml-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,il,3,3,"button",2),t.TgZ(6,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,ol,1,6,"perun-web-apps-resources-list",4),t.qZA(),t.YNc(8,nl,1,0,"mat-spinner",5)),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"MEMBER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[_.O5,I.lW,T.Ou,Z.t,L.L,el.C,m.X$]}),i})();var sl=l(98918),rl=l(4675),ll=l(258),cl=l(60113),pl=l(16500),ul=l(92090),dl=l(20057),_l=l(49546),ml=l(76023),gl=l(11042);function hl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function fl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function Al(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function Tl(i,a){if(1&i&&t._UZ(0,"app-ext-sources-list",10),2&i){const e=t.oxw();t.Q6J("extSources",e.extSources)("selection",e.selection)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("tableId",e.tableId)}}let Il=(()=>{class i{constructor(e,o,n,s,r,d){this.extSourceService=e,this.dialog=o,this.notificator=n,this.translate=s,this.authResolver=r,this.entityStorageService=d,this.extSources=[],this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.S7,this.displayedColumns=[],this.translate.get("GROUP_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(A=>this.successMessage=A)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Group_ExtSource_policy",[this.group]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Group_ExtSource_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","name","type"]:["id","name","type"]}refreshTable(){this.loading=!0,this.extSourceService.getGroupExtSources(this.group.id).subscribe(e=>{this.extSources=e,this.selection.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}onAdd(){const e=(0,g.kZ)();e.width="1000px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.extSources,theme:"group-theme"},this.dialog.open(Jt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}onRemove(){const e=(0,g.kZ)();e.width="600px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(qt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(u.uw),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","selection","displayedColumns","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"extSources","selection","displayedColumns","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,hl,3,3,"button",2),t.YNc(6,fl,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,Al,1,0,"mat-spinner",5),t.YNc(9,Tl,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,ct.D,Z.t,L.L,m.X$]}),i})();function bl(i,a){1&i&&t._UZ(0,"th",9)}function vl(i,a){if(1&i&&(t.TgZ(0,"td",10),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij("",e,":")}}function El(i,a){1&i&&t._UZ(0,"th",9)}function Cl(i,a){if(1&i&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.statistics.get(e.toLowerCase())," ")}}function Sl(i,a){1&i&&t._UZ(0,"tr",12)}let Qt=(()=>{class i{constructor(){this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}ngOnInit(){this.dataSource=new c.by(this.rowNames)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-statistics-card"]],inputs:{rowNames:"rowNames",title:"title",statistics:"statistics"},decls:15,vars:5,consts:[[1,"mat-elevation-z3","align-card"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content")(7,"table",2),t.ynx(8,3),t.YNc(9,bl,1,0,"th",4),t.YNc(10,vl,2,1,"td",5),t.BQk(),t.ynx(11,6),t.YNc(12,El,1,0,"th",4),t.YNc(13,Cl,2,1,"td",7),t.BQk(),t.YNc(14,Sl,1,0,"tr",8),t.qZA()()()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,3,o.title)),t.xp6(3),t.Q6J("dataSource",o.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",o.displayedColumns))},dependencies:[c.BZ,c.fO,c.w1,c.Dz,c.nj,c.ge,c.ev,c.Gk,U.a8,U.dk,U.dn,U.n5,m.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0rem;display:inline-block;vertical-align:top}"]}),i})();function xl(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Nl(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.rowNames)("statistics",e.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}let Ol=(()=>{class i{constructor(e,o){this.voService=e,this.entityStorageService=o,this.loading=!1,this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]]),this.dataSource=new c.by}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.dataSource=new c.by(this.rowNames),this.voService.getVoMembersCountsByStatus(this.vo.id).subscribe(e=>{this.allMembersCount=0;for(const o of Object.keys(e))this.membersCount.set(o.toLowerCase(),e[o]),this.allMembersCount+=e[o];this.membersCount.set("members",this.allMembersCount),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-statistics"]],decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"rowNames","statistics","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,xl,1,0,"mat-spinner",1),t.YNc(4,Nl,2,3,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"VO_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,T.Ou,Qt,m.X$]}),i})();function Zl(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Dl(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4)(2,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.voStatusCountsRowNames)("statistics",e.membersCountsByVoStatus)("title","GROUP_DETAIL.STATISTICS.VO_STATUS_COUNT"),t.xp6(1),t.Q6J("rowNames",e.groupStatusCountsRowNames)("statistics",e.membersCountsByGroupStatus)("title","GROUP_DETAIL.STATISTICS.GROUP_STATUS_COUNT")}}let Ml=(()=>{class i{constructor(e,o){this.groupService=e,this.entityStorageService=o,this.loading=!1,this.voStatusCountsRowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCountsByVoStatus=new Map,this.groupStatusCountsRowNames=["Members","Valid","Expired"],this.membersCountsByGroupStatus=new Map}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.groupService.getGroupMembersCount(this.group.id).subscribe(e=>{this.membersCountsByVoStatus.set("members",e),this.membersCountsByGroupStatus.set("members",e),this.groupService.getGroupMembersCountsByVoStatus(this.group.id).subscribe(o=>{Object.entries(o).forEach(([n,s])=>this.membersCountsByVoStatus.set(n.toLowerCase(),s)),this.groupService.getGroupMembersCountsByGroupStatus(this.group.id).subscribe(n=>{Object.entries(n).forEach(([s,r])=>this.membersCountsByGroupStatus.set(s.toLowerCase(),r)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-statistics"]],decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"rowNames","statistics","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Zl,1,0,"mat-spinner",1),t.YNc(4,Dl,3,6,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"GROUP_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,T.Ou,Qt,m.X$]}),i})();function Ll(i,a){1&i&&t._UZ(0,"mat-spinner",6)}const Rl=function(){return["select","id","name","description"]};function wl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"perun-web-apps-debounce-filter",8),t.NdJ("filter",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applyFilter(n))}),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"perun-web-apps-groups-list",9),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.s9C("placeholder",t.lcZ(2,8,"DIALOGS.ADD_GROUP_TO_REGISTRATION.FILTER_DESCRIPTION")),t.xp6(2),t.Q6J("disableMembers",!0)("groups",e.unAssignedGroups)("selection",e.selection)("disableRouting",!0)("displayedColumns",t.DdM(10,Rl))("filter",e.filterValue)("tableId",e.tableId)}}let Gl=(()=>{class i{constructor(e,o,n,s){this.dialogRef=e,this.data=o,this.groupService=n,this.registrarService=s,this.loading=!1,this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.Is}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.groupService.getAllGroups(this.data.voId).subscribe(e=>{this.unAssignedGroups=e.filter(o=>!this.data.assignedGroups.includes(o.id)),this.loading=!1})}applyFilter(e){this.filterValue=e}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.registrarService.addGroupsToAutoRegistration(this.selection.selected.map(e=>e.id)).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.ff),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-group-to-registration"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ll,1,0,"mat-spinner",1),t.YNc(5,wl,4,11,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_GROUP_TO_REGISTRATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_GROUP_TO_REGISTRATION.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_GROUP_TO_REGISTRATION.ADD_BUTTON")," "))},dependencies:[_.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,V.W,$.P,m.X$]}),i})();function Ul(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onAddGroup())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.ADD"),"\n"))}function Pl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",9),t.ALo(1,"translate"),t.TgZ(2,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.removeGroup())}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&i){const e=a.ngIf,o=t.oxw();t.s9C("matTooltip",t.lcZ(1,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),t.Q6J("matTooltipDisabled",0===o.selected.selected.length||e.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length||!e.removeAuth),t.xp6(1),t.hij(" ",t.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," ")}}function yl(i,a){1&i&&t._UZ(0,"mat-spinner",11)}const Vl=function(){return["select","id","name","description"]};function Fl(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",12),2&i){const e=t.oxw();t.Q6J("displayedColumns",t.DdM(6,Vl))("disableRouting",!0)("groups",e.groups)("filter",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}const Yl=function(i){return{removeAuth:i}};let Jl=(()=>{class i{constructor(e,o,n,s){this.registrarService=e,this.authResolver=o,this.dialog=n,this.route=s,this.groups=[],this.selected=new E.Ov(!0,[]),this.tableId=C.CE,this.filterValue="",this.removeAuth$=this.selected.changed.pipe((0,K.U)(r=>r.source.selected.reduce((d,A)=>d&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"},A]),!0)),(0,pt.O)(!0))}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.voId=Number(e.voId),this.loadGroups()})}loadGroups(){this.loading=!0,this.registrarService.getGroupsToAutoRegistration(this.voId).subscribe(e=>{this.groups=e,this.selected.clear(),this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}onAddGroup(){const e=(0,g.kZ)();e.width="900px",e.data={voId:this.voId,assignedGroups:this.groups.map(n=>n.id),theme:"vo-theme"},this.dialog.open(Gl,e).afterClosed().subscribe(n=>{n&&this.loadGroups()})}removeGroup(){const e=(0,g.kZ)();e.width="450px",e.data={items:this.selected.selected.map(n=>n.name),title:"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_GROUP_DIALOG_TITLE",description:"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_GROUP_DIALOG_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(n=>{n&&this.registrarService.deleteGroupsFromAutoRegistration(this.selected.selected.map(s=>s.id)).subscribe(()=>{this.loadGroups()})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"}])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(p.x4),t.Y36(u.uw),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-manage-groups"]],decls:14,vars:18,consts:[[1,"page-subtitle"],["alert_type","info"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"displayedColumns","disableRouting","groups","filter","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"displayedColumns","disableRouting","groups","filter","selection","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-alert",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return o.loadGroups()}),t.qZA(),t.YNc(8,Ul,3,3,"button",3),t.YNc(9,Pl,5,8,"span",4),t.ALo(10,"async"),t.TgZ(11,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(12,yl,1,0,"mat-spinner",6),t.YNc(13,Fl,1,7,"perun-web-apps-groups-list",7)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",t.lcZ(3,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",t.VKq(16,Yl,t.lcZ(10,14,o.removeAuth$))),t.xp6(2),t.Q6J("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,N.gM,R.w,V.W,Z.t,L.L,_.Ov,m.X$]}),i})();var ql=l(20872),kl=l(28499),Bt=l(38383),Ht=l(96338),Ql=l(95406);const Bl=["stepper"];function Hl(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_IDENTITY"))}function jl(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function zl(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function $l(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL_INVALID")))}function Xl(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Kl(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Wl(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function tc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATE_USERS"))}function ec(i,a){if(1&i&&(t.TgZ(0,"span",28),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("#",e.id,"")}}function ic(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-list-item")(1,"p",23),t._uU(2),t.ALo(3,"userFullName"),t.YNc(4,ec,2,1,"span",24),t.TgZ(5,"span",25),t.ALo(6,"translate"),t.TgZ(7,"button",26),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.removeUser(s))}),t.TgZ(8,"mat-icon",27),t._uU(9,"close"),t.qZA()()()()()}if(2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(2),t.hij(" ",t.lcZ(3,5,e.user)," "),t.xp6(2),t.Q6J("ngIf",e.id),t.xp6(1),t.Q6J("matTooltipDisabled",o.assignedMembers.length>1)("matTooltip",t.lcZ(6,7,"DIALOGS.CREATE_SERVICE_MEMBER.MINIMAL_USERS")),t.xp6(2),t.Q6J("disabled",1===o.assignedMembers.length)}}function oc(i,a){1&i&&t._UZ(0,"mat-spinner",29)}const nc=function(){return["checkbox","id","fullName"]};function ac(i,a){if(1&i&&t._UZ(0,"perun-web-apps-members-list",32),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(5,nc))("members",e.members)("tableId",e.tableId)("selection",e.selection)}}function sc(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",33),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")," "))}function rc(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,ac,1,6,"perun-web-apps-members-list",30),t.YNc(2,sc,3,3,"perun-web-apps-alert",31),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.firstSearchDone),t.xp6(1),t.Q6J("ngIf",!e.firstSearchDone)}}function lc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SPONSOR")," ")}function cc(i,a){1&i&&(t.TgZ(0,"mat-step"),t.YNc(1,lc,2,3,"ng-template",9),t.TgZ(2,"perun-web-apps-alert",33),t._uU(3),t.ALo(4,"translate"),t.qZA()()),2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"DIALOGS.CREATE_SERVICE_MEMBER.MANAGE_LIFECYCLE_INFO")," "))}function pc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",4)(1,"mat-stepper",5,6)(3,"mat-step",7)(4,"form",8),t.YNc(5,Hl,2,3,"ng-template",9),t.TgZ(6,"div",10)(7,"mat-form-field")(8,"mat-label"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._UZ(11,"input",11),t.YNc(12,jl,3,3,"mat-error",12),t.qZA(),t.TgZ(13,"mat-form-field")(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._UZ(17,"input",13),t.YNc(18,zl,3,3,"mat-error",12),t.YNc(19,$l,3,3,"mat-error",12),t.qZA(),t.TgZ(20,"mat-form-field")(21,"mat-label"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._UZ(24,"input",14),t.YNc(25,Xl,3,3,"mat-error",12),t.qZA(),t.TgZ(26,"mat-form-field")(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._UZ(30,"input",15),t.YNc(31,Kl,3,3,"mat-error",12),t.qZA()()()(),t.TgZ(32,"mat-step",7)(33,"form",8),t.YNc(34,Wl,2,3,"ng-template",9),t.TgZ(35,"app-login-password-form-with-generate-option",16),t.NdJ("parsedRulesOutput",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.parsedRules=n)}),t.qZA()()(),t.TgZ(36,"mat-step"),t.YNc(37,tc,2,3,"ng-template",9),t.TgZ(38,"h6"),t._uU(39),t.ALo(40,"translate"),t.qZA(),t.TgZ(41,"mat-list"),t.YNc(42,ic,10,9,"mat-list-item",17),t.qZA(),t.TgZ(43,"h6",18),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"mat-form-field",19)(47,"input",20),t.NdJ("keyup.enter",function(){t.CHM(e);const n=t.oxw();return t.KtG(0!==n.searchCtrl.value.length&&n.onSearchByString())}),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"button",21),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSearchByString())}),t.TgZ(50,"mat-icon"),t._uU(51,"search"),t.qZA()(),t.TgZ(52,"button",22),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addUsers())}),t._uU(53),t.ALo(54,"translate"),t.qZA(),t.YNc(55,oc,1,0,"mat-spinner",2),t.YNc(56,rc,3,2,"div",12),t.qZA(),t.YNc(57,cc,5,3,"mat-step",12),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",e.firstFormGroup),t.xp6(1),t.Q6J("formGroup",e.firstFormGroup),t.xp6(5),t.Oqu(t.lcZ(10,28,"DIALOGS.CREATE_SERVICE_MEMBER.NAME")),t.xp6(3),t.Q6J("ngIf",e.firstFormGroup.get("nameCtrl").hasError("required")),t.xp6(3),t.Oqu(t.lcZ(16,30,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL")),t.xp6(3),t.Q6J("ngIf",e.firstFormGroup.get("emailCtrl").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("emailCtrl").hasError("pattern")),t.xp6(3),t.Oqu(t.lcZ(23,32,"DIALOGS.CREATE_SERVICE_MEMBER.SUBJECT_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("issuerCtrl").value&&0!==e.firstFormGroup.get("issuerCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("subjectCtrl").hasError("required")),t.xp6(3),t.Oqu(t.lcZ(29,34,"DIALOGS.CREATE_SERVICE_MEMBER.ISSUER_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("subjectCtrl").value&&0!==e.firstFormGroup.get("subjectCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("issuerCtrl").hasError("required")),t.xp6(1),t.Q6J("stepControl",e.secondFormGroup),t.xp6(1),t.Q6J("formGroup",e.secondFormGroup),t.xp6(2),t.Q6J("formGroup",e.secondFormGroup),t.xp6(4),t.Oqu(t.lcZ(40,36,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),t.xp6(3),t.Q6J("ngForOf",e.assignedMembers),t.xp6(2),t.Oqu(t.lcZ(45,38,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),t.xp6(3),t.s9C("placeholder",t.lcZ(48,40,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_PLACEHOLDER")),t.Q6J("formControl",e.searchCtrl),t.xp6(2),t.Q6J("disabled",e.loading||0===e.searchCtrl.value.length),t.xp6(3),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(54,42,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")," "),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.findSponsorsAuth&&0!==e.voSponsors.length&&e.setSponsorshipAuth)}}function uc(i,a){1&i&&t._UZ(0,"mat-spinner",29)}function dc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",39),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.BACK")," "))}function _c(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.stepperNext())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",e.getStepperNextConditions()),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," ")}}function mc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onCreate(!1))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",e.firstFormGroup.invalid||"Not selected"!==e.secondFormGroup.get("namespaceCtrl").value&&e.secondFormGroup.invalid),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE")," ")}}function gc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onCreate(!0))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",e.firstFormGroup.invalid||"Not selected"!==e.secondFormGroup.get("namespaceCtrl").value&&e.secondFormGroup.invalid),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_AND_SPONSOR")," ")}}function hc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",34)(1,"button",35),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,dc,3,3,"button",36),t.TgZ(5,"span",25),t.ALo(6,"translate"),t.YNc(7,_c,3,8,"button",37),t.qZA(),t.YNc(8,mc,3,4,"button",38),t.YNc(9,gc,3,4,"button",38),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("matTooltipDisabled",0===e.selection.selected.length)("matTooltip",t.lcZ(6,9,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT_BUTTON_DISABLED_TOOLTIP")),t.xp6(2),t.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex!==e.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",e.findSponsorsAuth&&0!==e.voSponsors.length&&e.setSponsorshipAuth&&void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1)}}let fc=(()=>{class i{constructor(e,o,n,s,r,d,A,v,D,X,gt,_u){this.dialogRef=e,this.data=o,this.membersManagerService=n,this.usersManagerService=s,this.notificator=r,this.translate=d,this.store=A,this.apiRequestConfiguration=v,this._formBuilder=D,this.cd=X,this.authResolver=gt,this.findSponsors=_u,this.parsedRules=new Map,this.firstSearchDone=!1,this.searchCtrl=new f.p4(""),this.members=[],this.selection=new E.Ov(!0,[]),this.tableId=C.j1,this.assignedMembers=[],this.candidate={beanName:"",id:0},this.successMessageMember="",this.successMessagePwd="",this.processing=!1,this.voSponsors=[],d.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(ht=>this.successMessageMember=ht),d.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(ht=>this.successMessagePwd=ht)}ngAfterViewInit(){this.cd.detectChanges()}ngOnInit(){this.theme=this.data.theme,this.firstFormGroup=this._formBuilder.group({nameCtrl:["",f.kI.required],emailCtrl:["",[f.kI.required,f.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[f.kI.pattern("^[a-z][a-z0-9_-]+$"),f.kI.maxLength(15),f.kI.minLength(2)]],passwordCtrl:["",f.kI.required,[(0,kl.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:g.dN.passwordMatchValidator});const e=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(e.id).subscribe(o=>{let n={};for(const s of o)s.voId===this.data.vo.id&&(n=s);n.user=e,this.assignedMembers.push(n)}),this.setSponsorshipAuth=this.authResolver.isAuthorized("setSponsorshipForMember_Member_User_LocalDate_policy",[this.data.vo,this.store.getPerunPrincipal().user]),this.findSponsorsAuth=this.findSponsors.findSponsorsAuth(this.data.vo),this.findSponsorsAuth&&this.findSponsors.getSponsors(this.data.vo.id).subscribe(o=>{this.voSponsors=o})}onCreate(e){this.processing=!0,this.candidate.firstName="",this.candidate.lastName=this.firstFormGroup.get("nameCtrl").value,this.candidate.attributes={},this.candidate.attributes["urn:perun:member:attribute-def:def:mail"]=this.firstFormGroup.get("emailCtrl").value;const o=this.firstFormGroup.get("subjectCtrl");o?.value&&(this.candidate.userExtSource={},this.candidate.userExtSource.login=o.value,this.candidate.userExtSource.loa=0,this.candidate.userExtSource.extSource={},this.candidate.userExtSource.extSource.name=this.firstFormGroup.get("issuerCtrl").value,this.candidate.userExtSource.extSource.type="cz.metacentrum.perun.core.impl.ExtSourceX509");const n=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),s=this.parsedRules.get(n),r=`urn:perun:user:attribute-def:def:login-namespace:${n}`;"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&"disabled"===s.login?this.usersManagerService.generateAccountForName(n,this.firstFormGroup.get("nameCtrl").value).subscribe(d=>{this.candidate.attributes[r]=d[r],this.createSpecificMember(e)},()=>this.processing=!1):("Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&(this.candidate.attributes[r]=this.secondFormGroup.get("loginCtrl").value),this.createSpecificMember(e))}createSpecificMember(e){this.membersManagerService.createSpecificMember({vo:this.data.vo.id,specificUserType:"SERVICE",specificUserOwners:this.assignedMembers.map(o=>o.user),candidate:this.candidate}).subscribe(o=>{this.membersManagerService.validateMemberAsync(o.id).subscribe(n=>{this.notificator.showSuccess(this.successMessageMember),"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value?this.setPassword(n,this.secondFormGroup.get("generatePasswordCtrl").value,e):this.dialogRef.close({result:!0,sponsor:e,voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth,serviceMemberId:o.id})},()=>this.processing=!1)},()=>this.processing=!1)}setPassword(e,o,n){const s=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),r=this.secondFormGroup.get("passwordCtrl").value;if(o){if("disabled"===this.parsedRules.get(s).login)return void this.validateMember(e.id,n);this.usersManagerService.reserveRandomPassword(e.userId,s).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,s).subscribe(()=>{this.validateMember(e.id,n,!1)},()=>{this.processing=!1})},()=>{this.processing=!1})}else this.usersManagerService.reservePasswordForUser({user:e.userId,namespace:s,password:r}).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,s).subscribe(()=>{this.validateMember(e.id,n)},()=>{this.processing=!1,this.dialogRef.close({result:!0,sponsor:n,voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth,serviceMemberId:e.id})})},()=>{this.processing=!1,this.dialogRef.close({result:!0,sponsor:n,voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth,serviceMemberId:e.id})})}validateMember(e,o,n=!0){this.membersManagerService.validateMemberAsync(e).subscribe(()=>{n&&this.notificator.showSuccess(this.successMessagePwd),this.dialogRef.close({result:!0,sponsor:o,voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth,serviceMemberId:e})},()=>{this.processing=!1})}onCancel(){this.dialogRef.close({result:!1,sponsor:!1})}onSearchByString(){this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.vo.id,[""],this.searchCtrl.value).subscribe(e=>{this.members=e.filter(o=>!o.user.specificUser),this.firstSearchDone=!0,this.loading=!1})}addUsers(){const e=this.assignedMembers.map(o=>o.id);this.selection.selected.forEach(o=>{e.includes(o.id)||this.assignedMembers.push(o)}),this.selection.clear()}removeUser(e){this.assignedMembers=this.assignedMembers.filter(o=>o.id!==e.id)}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.firstFormGroup.invalid||this.firstFormGroup.pending;case 1:return this.secondFormGroup.invalid||this.secondFormGroup.pending;case 2:return this.selection.selected.length>0;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.d6),t.Y36(p.F5),t.Y36(f.QS),t.Y36(t.sBO),t.Y36(p.x4),t.Y36(p.Mf))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-service-member-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(Bl,5),2&e){let n;t.iGM(n=t.CRH())&&(o.stepper=n.first)}},decls:7,vars:9,consts:[[1,"mat-dialog-title"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],[3,"formGroup"],["matStepLabel",""],[1,"display-flex"],["formControlName","nameCtrl","matInput","","required",""],[4,"ngIf"],["formControlName","emailCtrl","matInput","","required","","type","email"],["formControlName","subjectCtrl","matInput","",3,"required"],["formControlName","issuerCtrl","matInput","",3,"required"],[3,"formGroup","parsedRulesOutput"],[4,"ngFor","ngForOf"],[1,"mt-3"],[1,"mr-2","w-50"],["autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["color","primary","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",3,"disabled","click"],[1,"truncate","center-content"],["class","text-muted",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-icon-button","",1,"ml-1",3,"disabled","click"],[1,"margin-bottom"],[1,"text-muted"],[1,"ml-auto","mr-auto"],[3,"disableRouting","displayedColumns","members","tableId","selection",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"disableRouting","displayedColumns","members","tableId","selection"],["alert_type","info"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,pc,58,44,"div",1),t.YNc(5,uc,1,0,"mat-spinner",2),t.YNc(6,hc,10,11,"div",3),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.CREATE_SERVICE_MEMBER.TITLE")),t.xp6(2),t.Q6J("ngIf",!o.processing),t.xp6(1),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",!o.processing))},dependencies:[_.sg,_.O5,x.TO,x.KE,x.hX,y.Nt,f._Y,f.Fj,f.JJ,f.JL,f.Q7,f.oH,f.sg,f.u,P.Hw,I.lW,u.xY,u.H8,T.Ou,N.gM,w.C0,w.VY,w.Vq,R.w,Bt.O,Ht.i$,Ht.Tg,Ql.r,m.X$,B.d],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input-disabled[_ngcontent-%COMP%]{pointer-events:none;color:#888}.truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}.margin-bottom[_ngcontent-%COMP%]{margin-bottom:6px}"]}),i})();var Ac=l(53455),Tc=l(91828);function Ic(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onRemoveMembers())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.selection.isEmpty()),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.DELETE"),"\n")}}function bc(i,a){1&i&&t._UZ(0,"mat-spinner",8)}const vc=function(){return["checkbox","id","type","fullName","status"]};function Ec(i,a){if(1&i&&t._UZ(0,"perun-web-apps-members-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",t.DdM(6,vc))("selection",e.selection)("disableStatusChange",!0)("filter",e.searchString)("members",e.members)}}let Cc=(()=>{class i{constructor(e,o,n,s,r){this.membersManager=e,this.dialog=o,this.authResolver=n,this.authzService=s,this.entityStorageService=r,this.members=[],this.selection=new E.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=C._c}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.refresh()}createServiceMember(){const e=(0,g.kZ)();e.width="800px",e.data={vo:this.vo,theme:"vo-theme"},this.dialog.open(fc,e).afterClosed().subscribe(n=>{n.result&&(n.sponsor?(e.data={voId:this.vo.id,theme:"vo-theme",voSponsors:n.voSponsors,findSponsorsAuth:n.findSponsorsAuth,serviceMemberId:n.serviceMemberId},this.dialog.open(Tc.b,e).afterClosed().subscribe(()=>{this.refresh()})):this.refresh())})}onRemoveMembers(){const e=(0,g.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ac.X,e).afterClosed().subscribe(n=>{n&&(this.refresh(),this.selection.clear())})}applyFilter(e){this.searchString=e}refresh(){this.loading=!0,this.membersManager.findCompleteRichMembersForVo(this.vo.id,[""],"(Service)").subscribe(e=>{this.members=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.uq),t.Y36(u.uw),t.Y36(p.x4),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-service-members"]],decls:11,vars:10,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","selection","disableStatusChange","filter","members",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","selection","disableStatusChange","filter","members"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh()}),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return o.createServiceMember()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.YNc(7,Ic,3,4,"button",3),t.TgZ(8,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,bc,1,0,"mat-spinner",5),t.YNc(10,Ec,1,7,"perun-web-apps-members-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.TITLE")),t.xp6(4),t.hij(" ",t.lcZ(6,8,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.CREATE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.SERVICE_MEMBERS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,Z.t,L.L,Bt.O,m.X$]}),i})();var W=l(71992),jt=l(87831);const Sc=["stepper"];function xc(i,a){1&i&&t._UZ(0,"mat-spinner",4)}function Nc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.SELECTION_STEP"))}function Oc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CONFIRMATION_STEP"))}function Zc(i,a){1&i&&t._UZ(0,"th",19)}function Dc(i,a){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Mc(i,a){1&i&&t._UZ(0,"tr",21)}function Lc(i,a){1&i&&t._UZ(0,"tr",22)}function Rc(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"table",12),t.ynx(4,13),t.YNc(5,Zc,1,0,"th",14),t.YNc(6,Dc,2,1,"td",15),t.BQk(),t.YNc(7,Mc,1,0,"tr",16),t.YNc(8,Lc,1,0,"tr",17),t.qZA(),t.TgZ(9,"perun-web-apps-alert",18),t._uU(10),t.ALo(11,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CONFIRM")),t.xp6(2),t.Q6J("dataSource",e.voSelection.selected),t.xp6(4),t.Q6J("matHeaderRowDef",e.columns),t.xp6(1),t.Q6J("matRowDefColumns",e.columns),t.xp6(1),t.Q6J("alert_type","warn"),t.xp6(1),t.Oqu(t.lcZ(11,8,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.WARNING"))}}function wc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step"),t.YNc(4,Nc,2,3,"ng-template",8),t.TgZ(5,"perun-web-apps-immediate-filter",9),t.NdJ("filter",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.voFilter=n)}),t.qZA(),t._UZ(6,"perun-web-apps-vos-list",10),t.qZA(),t.TgZ(7,"mat-step"),t.YNc(8,Oc,2,3,"ng-template",8),t.YNc(9,Rc,12,10,"ng-template",11),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(4),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.FILTER_VOS"),t.xp6(1),t.Q6J("vos",e.vos)("selection",e.voSelection)("displayedColumns",e.displayedColumns)("filterValue",e.voFilter)("disableRouting",!0)}}function Gc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.BACK")," "))}function Uc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.stepperNext())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.voSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.NEXT")," ")}}function Pc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.addMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.ADD")," "))}function yc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",23)(1,"button",24),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.close())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",25),t.YNc(5,Gc,3,3,"button",26),t.YNc(6,Uc,3,4,"button",27),t.YNc(7,Pc,3,3,"button",28),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,4,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CANCEL")," "),t.xp6(3),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",1!==(null==e.stepper?null:e.stepper.selectedIndex)),t.xp6(1),t.Q6J("ngIf",1===(null==e.stepper?null:e.stepper.selectedIndex))}}let Vc=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.vosService=o,this.entityStorage=n,this.notificator=s,this.translator=r,this.loading=!1,this.theme="vo-theme",this.displayedColumns=["checkbox","id","name","shortName"],this.columns=["name"],this.vos=[],this.voSelection=new E.Ov(!1,[]),this.voFilter=""}ngOnInit(){this.loading=!0,this.voId=this.entityStorage.getEntity().id,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.vosService.getAllVos().subscribe(o=>{const n=e.memberVos.map(s=>s.id);this.vos=o.filter(s=>!n.includes(s.id)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}close(){this.dialogRef.close(!1)}stepperNext(){this.stepper.next()}stepperPrevious(){this.stepper.previous()}addMemberOrganization(){this.loading=!0,this.vosService.addMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.YF),t.Y36(p.fb),t.Y36(p.V6),t.Y36(m.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-organization-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(Sc,5),2&e){let n;t.iGM(n=t.CRH())&&(o.stepper=n.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],["matStepLabel",""],[3,"placeholder","filter"],[3,"vos","selection","displayedColumns","filterValue","disableRouting"],["matStepContent",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],[1,"ml-auto"],["mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,xc,1,0,"mat-spinner",1),t.YNc(5,wc,10,7,"div",2),t.YNc(6,yc,8,6,"div",3),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,7,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.TITLE")," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,I.lW,u.uh,u.xY,u.H8,T.Ou,w.C0,w.VY,w.Vq,w.BY,R.w,jt.Z,L.L,m.X$]}),i})();function Fc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD"),"\n"))}function Yc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.removeMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.voSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE"),"\n")}}function Jc(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function qc(i,a){if(1&i&&t._UZ(0,"perun-web-apps-vos-list",10),2&i){const e=t.oxw();t.Q6J("vos",e.memberVos)("selection",e.voSelection)("filterValue",e.filterValue)("disableRouting",!e.auth)("displayedColumns",e.displayedColumns)}}let kc=(()=>{class i{constructor(e,o,n,s,r,d,A){this.dialog=e,this.vosService=o,this.entityStorage=n,this.authResolver=s,this.reloadDetailService=r,this.notificator=d,this.translator=A,this.loading=!1,this.voSelection=new E.Ov(!1,[]),this.displayedColumns=["checkbox","id","shortName","name"],this.filterValue="",this.auth=!1,this.memberVos=[]}ngOnInit(){this.auth=this.authResolver.isPerunAdmin(),this.voId=this.entityStorage.getEntity().id,this.refresh()}refresh(){this.loading=!0,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.voId=e.vo.id,this.memberVos=e.memberVos,this.voSelection.clear(),this.loading=!1},()=>this.loading=!1)}addMemberOrganization(){const e=(0,g.kZ)();e.width="750px",this.dialog.open(Vc,e).afterClosed().subscribe(o=>{o&&(this.reloadDetailService.reloadEntityDetail(),this.refresh())})}removeMemberVos(){this.vosService.removeMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE")),this.reloadDetailService.reloadEntityDetail(),this.refresh()})}removeMemberOrganization(){const e=(0,g.kZ)();e.width="550px",e.data={items:this.voSelection.selected.map(o=>o.name),title:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE",alert:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.WARNING",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(o=>{o&&this.removeMemberVos()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.YF),t.Y36(p.fb),t.Y36(p.x4),t.Y36(et.G),t.Y36(p.V6),t.Y36(m.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-member-organizations"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["mat-flat-button","","class","mr-2 action-button","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"vos","selection","filterValue","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"vos","selection","filterValue","disableRouting","displayedColumns"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(4,Fc,3,3,"button",2),t.YNc(5,Yc,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(7,Jc,1,0,"mat-spinner",5),t.YNc(8,qc,1,5,"perun-web-apps-vos-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,jt.Z,Z.t,L.L,m.X$]}),i})();const Qc=function(){return["select","id","name","description"]};function Bc(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",7),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("groups",e.groups)("selection",e.selected)("filter",e.filterValue)("displayedColumns",t.DdM(7,Qc))("disableRouting",!0)("noGroupsAlert","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.NO_GROUPS_FOUND_ALERT")}}function Hc(i,a){1&i&&t._UZ(0,"mat-spinner",8)}function jc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",9)(1,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.close())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",11),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.confirm())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.ALLOW")," ")}}const zc=function(i){return{parentVo:i}};let $c=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.groupService=n,this.notificator=s,this.translate=r,this.loading=!1,this.selected=new E.Ov(!0,[]),this.tableId=C.uI,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voId=this.data.voId,this.parentVo=this.data.parentVo,this.groupService.getAllGroups(this.voId).subscribe(e=>{this.groups=e.filter(o=>!this.data.allowedGroupsIds.includes(o.id)),this.loading=!1})}applyFilter(e){this.filterValue=e}close(){this.dialogRef.close(!1)}confirm(){this.loading=!0;const e=this.selected.selected.map(o=>o.id);this.groupService.allowGroupsToHierarchicalVo(e,this.parentVo.id).subscribe({next:()=>{this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS")),this.loading=!1},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.ff),t.Y36(p.V6),t.Y36(p.Te))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-group-hierarchical-include-dialog"]],decls:12,vars:16,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","info"],[3,"placeholder","filter"],["theme","vo-theme",3,"tableId","groups","selection","filter","displayedColumns","disableRouting","noGroupsAlert",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","filter","displayedColumns","disableRouting","noGroupsAlert"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1)(5,"perun-web-apps-alert",2),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,Bc,1,8,"perun-web-apps-groups-list",4),t.YNc(10,Hc,1,0,"mat-spinner",5),t.qZA(),t.YNc(11,jc,7,7,"div",6),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,9,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.TITLE")," "),t.xp6(4),t.hij(" ",t.xi3(7,11,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.INFO",t.VKq(14,zc,o.parentVo.name))," "),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SEARCH"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,R.w,V.W,L.L,m.X$]}),i})();function Xc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",9),t.NdJ("voSelected",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.voSelected(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("vos",e.parentVos)}}const Kc=function(){return["select","id","name","description"]};function Wc(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",10),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("groups",e.allowedGroups)("selection",e.selected)("displayedColumns",t.DdM(5,Kc))("noGroupsAlert","VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.NO_GROUPS_ALLOWED_ALERT")}}function tp(i,a){1&i&&t._UZ(0,"mat-spinner",11)}let ep=(()=>{class i{constructor(e,o,n,s,r,d,A){this.dialog=e,this.entityStorage=o,this.voService=n,this.groupService=s,this.notificator=r,this.translate=d,this.changeDetector=A,this.loading=!1,this.parentVos=[],this.allowedGroups=[],this.selected=new E.Ov(!0,[]),this.tableId=C.$t}ngOnInit(){this.loading=!0,this.vo=this.entityStorage.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.parentVos=e.parentVos,this.loading=!1},()=>this.loading=!1)}voSelected(e){this.selectedParentVo=e,this.loadAllowedGroups(),this.changeDetector.detectChanges()}loadAllowedGroups(){this.loading=!0,this.selected.clear(),this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.selectedParentVo.id,this.vo.id).subscribe(e=>{this.allowedGroups=e,this.loading=!1})}addGroupsInclusion(){const e=(0,g.kZ)();e.width="750px",e.data={theme:"vo-theme",voId:this.vo.id,parentVo:this.selectedParentVo,allowedGroupsIds:this.allowedGroups.map(o=>o.id)},this.dialog.open($c,e).afterClosed().subscribe(o=>{o&&this.loadAllowedGroups()})}removeGroupsInclusion(){const e=(0,g.kZ)();e.width="750px",e.data={theme:"vo-theme",title:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.TITLE",description:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.DESCRIPTION",items:this.selected.selected.map(o=>o.name),alert:this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.ALERT",{parentVo:this.selectedParentVo.name}),type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(o=>{o&&this.disallowGroups()})}disallowGroups(){this.loading=!0;const e=this.selected.selected.map(o=>o.id);this.groupService.disallowGroupsToHierarchicalVo(e,this.selectedParentVo.id).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS")),this.loadAllowedGroups()},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(p.fb),t.Y36(h.YF),t.Y36(h.ff),t.Y36(p.V6),t.Y36(p.Te),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-hierarchical-inclusion"]],decls:15,vars:13,consts:[[1,"page-subtitle"],[1,"display-flex"],[3,"click"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"vo-search-select"],[3,"vos","voSelected",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","displayedColumns","noGroupsAlert",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"vos","voSelected"],["theme","vo-theme",3,"tableId","groups","selection","displayedColumns","noGroupsAlert"],[1,"ml-auto","mr-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"perun-web-apps-refresh-button",2),t.NdJ("click",function(){return o.loadAllowedGroups()}),t.qZA(),t.TgZ(5,"button",3),t.NdJ("click",function(){return o.addGroupsInclusion()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",4),t.NdJ("click",function(){return o.removeGroupsInclusion()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",5),t.YNc(12,Xc,1,1,"perun-web-apps-vo-search-select",6),t.qZA()(),t.YNc(13,Wc,1,6,"perun-web-apps-groups-list",7),t.YNc(14,tp,1,0,"mat-spinner",8)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,7,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.TITLE")),t.xp6(5),t.hij(" ",t.lcZ(7,9,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.ADD")," "),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,11,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.REMOVE")," "),t.xp6(3),t.Q6J("ngIf",o.parentVos.length>0),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[_.O5,I.lW,T.Ou,V.W,Z.t,lt.M,m.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.vo-search-select[_ngcontent-%COMP%]{width:400px;padding-top:10px;margin-left:5px}"]}),i})();var ip=l(61639),op=l(4811),np=l(83370);let ap=(()=>{class i{constructor(e,o,n,s,r){this.data=e,this.dialogRef=o,this.store=n,this.voService=s,this.notificator=r,this.selection=new E.Ov(!1,[]),this.loading=!1,this.attrNames=[S.r.MEMBER_DEF_MAIL,S.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.displayedColumns=["checkbox","id","fullName","email","logins"],this.tableId=C.bj,this.filter=""}ngOnInit(){this.selection.changed.subscribe(e=>{this.ban=this.data.bans.find(o=>o.memberId===e.source.selected[0]?.id)})}cancel(){this.dialogRef.close(!1)}submitBan(e){this.ban?this.updateBan(e):this.banMember(e)}setFilter(e){this.filter=e,this.selection.clear()}banMember(e){this.loading=!0,this.voService.setVoBan({banOnVo:{memberId:this.selection.selected[0].id,description:e.description,validityTo:e.validity,id:0,beanName:"BanOnVo"}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.ADD_BAN.SUCCESS_MEMBER"),this.dialogRef.close(!0)},error:()=>this.loading=!1})}updateBan(e){this.loading=!0,this.voService.updateVoBan({banOnVo:{id:this.ban.id,beanName:"BanOnVo",voId:this.ban.voId,memberId:this.ban.memberId,description:e.description,validityTo:e.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.WI),t.Y36(u.so),t.Y36(p.d6),t.Y36(h.YF),t.Y36(p.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-vo-ban-dialog"]],decls:3,vars:12,consts:[[3,"loading","disabled","theme","ban","add","cancel"],[3,"placeholder","filter"],[3,"attrNames","selection","tableId","disableRouting","displayedColumns","searchString","voId"]],template:function(e,o){1&e&&(t.TgZ(0,"app-add-ban-dialog",0),t.NdJ("add",function(s){return o.submitBan(s)})("cancel",function(){return o.cancel()}),t.TgZ(1,"perun-web-apps-debounce-filter",1),t.NdJ("filter",function(s){return o.setFilter(s)}),t.qZA(),t._UZ(2,"perun-web-apps-members-dynamic-list",2),t.qZA()),2&e&&(t.Q6J("loading",o.loading)("disabled",0===o.selection.selected.length)("theme",o.data.theme)("ban",o.ban),t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_BAN.FILTER"),t.xp6(1),t.Q6J("attrNames",o.attrNames)("selection",o.selection)("tableId",o.tableId)("disableRouting",!0)("displayedColumns",o.displayedColumns)("searchString",o.filter)("voId",o.data.entityId))},dependencies:[$.P,op.m,np.u]}),i})();var zt=l(32316),ut=l(19516),$t=l(73358),Xt=l(91880);function sp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.BANS.ADD"),"\n"))}function rp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.BANS.REMOVE"),"\n")}}function lp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-ban-on-entity-list",10),t.NdJ("updateBan",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.update(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("bans",e.bans)("selection",e.selection)("updatePolicy","updateBan_BanOnVo_policy")("displayedColumns",e.displayedColumns)("filter",e.filter)}}function cp(i,a){1&i&&(t.TgZ(0,"div",11),t._UZ(1,"mat-spinner"),t.qZA())}let pp=(()=>{class i{constructor(e,o,n,s,r,d){this.voService=e,this.entityService=o,this.authResolver=n,this.dialog=s,this.notificator=r,this.userName=d,this.loading=!1,this.bans=[],this.removeAuth=!1,this.filter="",this.selection=new E.Ov(!1,[]),this.displayedColumns=["select","banId","subjectId","subjectName","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.vo=this.entityService.getEntity(),this.addAuth=this.authResolver.isAuthorized("setBan_BanOnVo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("vo-removeBan_int_policy",[this.vo]),this.refresh()}refresh(){this.loading=!0,this.voService.getEnrichedBansForVo(this.vo.id).subscribe({next:e=>{this.bans=e,this.selection.clear(),this.loading=!1},error:()=>this.loading=!1})}add(){const e=(0,g.kZ)();e.width="850px",e.data={entityId:this.vo.id,theme:"vo-theme",bans:this.bans.map(n=>n.ban)},this.dialog.open(ap,e).afterClosed().subscribe(n=>{n&&this.refresh()})}remove(){const e=(0,g.kZ)();e.width="550px",e.data={theme:"vo-theme",title:"DIALOGS.REMOVE_BAN.TITLE",description:"DIALOGS.REMOVE_BAN.DESCRIPTION",items:[this.userName.transform(this.selection.selected[0].member.user)],type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(n=>{n&&this.voService.removeVoBan(this.selection.selected[0].ban.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.REMOVE_BAN.SUCCESS"),this.refresh()})})}update(e){const o=(0,g.kZ)();o.width="600px",o.data={ban:e.ban,theme:"vo-theme"},this.dialog.open(zt.A,o).afterClosed().subscribe(s=>{s&&this.refresh()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(p.fb),t.Y36(p.x4),t.Y36(u.uw),t.Y36(p.V6),t.Y36(ut.dp))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-bans"]],features:[t._Bn([ut.dp])],decls:11,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mt-2","search-field",3,"placeholder","filter"],[1,"position-relative"],[3,"bans","selection","updatePolicy","displayedColumns","filter","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["spinner",""],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"bans","selection","updatePolicy","displayedColumns","filter","updateBan"],[1,"spinner-container"]],template:function(e,o){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(4,sp,3,3,"button",2),t.YNc(5,rp,3,4,"button",3),t.TgZ(6,"perun-web-apps-debounce-filter",4),t.NdJ("filter",function(s){return o.filter=s}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,lp,1,5,"perun-web-apps-ban-on-entity-list",6),t.qZA(),t.YNc(9,cp,2,0,"ng-template",null,7,t.W1O)),2&e){const n=t.MAs(10);t.xp6(1),t.hij(" ",t.lcZ(2,6,"VO_DETAIL.SETTINGS.BANS.TITLE"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.BANS.FILTER"),t.xp6(2),t.Q6J("perunWebAppsLoader",o.loading)("perunWebAppsLoaderIndicator",n)}},dependencies:[_.O5,I.lW,T.Ou,Z.t,$.P,$t.e,Xt.s,m.X$]}),i})();function up(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-ban-on-entity-list",5),t.NdJ("updateBan",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.update(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("bans",e.bans)("updatePolicy","updateBan_BanOnVo_policy")("displayedColumns",e.displayedColumns)}}function dp(i,a){1&i&&(t.TgZ(0,"div",6),t._UZ(1,"mat-spinner"),t.qZA())}let _p=(()=>{class i{constructor(e,o,n){this.voService=e,this.entityService=o,this.dialog=n,this.loading=!1,this.bans=[],this.filter="",this.displayedColumns=["banId","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.member=this.entityService.getEntity(),this.refresh()}refresh(){this.loading=!0,this.voService.getVoBanForMember(this.member.id).subscribe({next:e=>{this.bans=null===e?[]:[{ban:e,member:null,vo:null}],this.loading=!1},error:()=>this.loading=!1})}update(e){const o=(0,g.kZ)();o.width="600px",o.data={ban:e.ban,theme:"vo-theme"},this.dialog.open(zt.A,o).afterClosed().subscribe(s=>{s&&this.refresh()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(p.fb),t.Y36(u.uw))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-bans"]],decls:8,vars:5,consts:[[1,"page-subtitle"],[3,"click"],[1,"position-relative"],[3,"bans","updatePolicy","displayedColumns","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["spinner",""],[3,"bans","updatePolicy","displayedColumns","updateBan"],[1,"spinner-container"]],template:function(e,o){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.TgZ(4,"div",2),t.YNc(5,up,1,3,"perun-web-apps-ban-on-entity-list",3),t.qZA(),t.YNc(6,dp,2,0,"ng-template",null,4,t.W1O)),2&e){const n=t.MAs(7);t.xp6(1),t.hij(" ",t.lcZ(2,3,"MEMBER_DETAIL.BANS.TITLE"),"\n"),t.xp6(4),t.Q6J("perunWebAppsLoader",o.loading)("perunWebAppsLoaderIndicator",n)}},dependencies:[T.Ou,Z.t,$t.e,Xt.s,m.X$]}),i})();var mp=l(35265);const gp=[{path:"",component:te.Y},{path:":voId",component:ye,canActivateChild:[W.a],children:[{path:"",component:be,data:{animation:"VoOverviewPage"}},{path:"attributes",component:Ti,data:{animation:"VoAttributesPage"}},{path:"groups",component:ve.G,data:{animation:"VoGroupsPage"}},{path:"members",component:Ee.y,data:{animation:"VoMembersPage"}},{path:"resources",component:hi,children:[{path:"",component:ca,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:pa.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:ua.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Sa,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:fi.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:st,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:gl.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:Cc,data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:Ol,data:{animation:"VoStatisticsPage"}},{path:"settings",component:Ai,children:[{path:"",component:vi,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:yi,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:Fi,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:qo.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:Rt,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:Jl},{path:"notifications",component:Js,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:_r,data:{animation:"VoSettingsExtSourcesPage"}},{path:"memberOrganizations",component:kc,data:{animation:"VoSettingsMemberOrganizationsPage"}},{path:"hierarchicalInclusion",component:ep,data:{animation:"VoSettingsHierarchicalInclusionComponent"}},{path:"bans",component:pp,data:{animation:"VoSettingsBansComponent"}}]}]},{path:":voId/members/:memberId",component:Ae,canActivateChild:[W.a],children:[{path:"",component:ci,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:la,data:{animation:"MemberAttributesPage"}},{path:"groups",component:pi.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:Vr,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:st,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:al,data:{animation:"MemberResourcesPage"}},{path:"bans",component:_p,data:{animation:"MemberBansPage"}}]},{path:":voId/groups/:groupId",component:de,canActivateChild:[W.a],children:[{path:"",component:mi,data:{animation:"GroupOverviewPage"}},{path:"members",component:Oo.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:gi.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:Vi.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:Zo.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:Vo,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:Ml,data:{animation:"GroupStatisticsPage"}},{path:"roles",component:ip.C,data:{animation:"GroupRolesPage"}},{path:"settings",component:Do,children:[{path:"",component:Jo,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:Na,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:Oa,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:qs.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:Rt},{path:"notifications",component:Ks,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:Rr,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:Il,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:st,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:sl.b,canActivateChild:[W.a],children:[{path:"",component:rl.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:ll.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:_l.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:ul.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:ml.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:ql.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:cl.t,children:[{path:"",component:pl.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:dl.O,data:{animation:"ResourceSettingsManagersPage"}},{path:"bans",component:mp.I,data:{animation:"ResourceSettingsBansPage"}}]}]}];let hp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[b.Bz.forChild(gp),b.Bz]}),i})();var fp=l(14264),Ap=l(63189),Tp=l(37433),Ip=l(51525),bp=l(45256),dt=l(28255);let _t=(()=>{class i{transform(e){return e?.member?.sourceGroupId&&"DIRECT"===e?.member?.membershipType?"Member of Group":e?.member?.sourceGroupId&&"INDIRECT"===e?.member?.membershipType?"Indirect member of Group":e.member?"Member of VO":""}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"memberType",type:i,pure:!0}),i})();var vp=l(86511);let mt=(()=>{class i{constructor(e){this.addMemberService=e}transform(e,o){return e.member?"vo"===this.addMemberService.getType()||e.member?.sourceGroupId&&"DIRECT"===e.member?.membershipType:o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(vp.A,16))},i.\u0275pipe=t.Yjl({name:"disabledCandidate",type:i,pure:!0}),i})();var Ep=l(69773),Cp=l(21757),Sp=l(9954);let xp=(()=>{class i{transform(e){return e.member?"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER":"MEMBERS_CANDIDATES_LIST.ADDING_BLOCKED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"disabledCandidateTooltip",type:i,pure:!0}),i})();function Np(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",19)(1,"mat-checkbox",20),t.NdJ("change",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(n?s.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,o=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",o.selection.hasValue()&&e.all)("indeterminate",o.selection.hasValue()&&!e.all)}}const Op=function(i){return{name:i}};function Zp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",21)(1,"div",22),t.ALo(2,"translate"),t.ALo(3,"disabledCandidateTooltip"),t.ALo(4,"disabledCandidate"),t.TgZ(5,"mat-checkbox",23),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(n?d.itemSelectionToggle(r):null)})("click",function(n){return n.stopPropagation()}),t.ALo(6,"translate"),t.ALo(7,"checkboxLabel"),t.ALo(8,"userFullName"),t.ALo(9,"disabledCandidate"),t.ALo(10,"lowercase"),t.ALo(11,"translate"),t.qZA()()()}if(2&i){const e=a.$implicit,o=t.oxw(2);let n;t.xp6(1),t.Q6J("matTooltip",t.lcZ(2,6,t.lcZ(3,8,e)))("matTooltipDisabled",!t.xi3(4,10,e,o.blockManualAdding)),t.xp6(4),t.Q2q("data-cy","",t.lcZ(10,23,t.lcZ(11,25,e.richUser?e.richUser.firstName:e.candidate.firstName)),"-checkbox"),t.Q6J("aria-label",t.xi3(6,13,t.lcZ(7,16,o.selection.isSelected(e)),t.VKq(27,Op,t.lcZ(8,18,null!==(n=e.richUser)&&void 0!==n?n:e.candidate))))("checked",o.selection.isSelected(e))("disabled",t.xi3(9,20,e,o.blockManualAdding))}}function Dp(i,a){1&i&&(t.ynx(0,16),t.YNc(1,Np,4,7,"th",17),t.YNc(2,Zp,12,29,"td",18),t.BQk())}function Mp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.STATUS")," "))}function Lp(i,a){if(1&i&&(t.TgZ(0,"i",27),t.ALo(1,"memberStatusIconColor"),t._uU(2),t.ALo(3,"memberStatusIcon"),t.qZA()),2&i){const e=t.oxw().$implicit;t.Gre("material-icons ",t.lcZ(1,5,e.member),""),t.s9C("matTooltip",e.member.status),t.xp6(2),t.hij(" ",t.lcZ(3,7,e.member.status)," ")}}function Rp(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Lp,4,9,"i",26),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.member)}}function wp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.NAME")," "))}function Gp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"userFullName"),t.ALo(3,"userFullName"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):t.lcZ(3,3,e.candidate)," ")}}function Up(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ORGANIZATION")," "))}function Pp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"userVo"),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):o.getOrganization(e.candidate)," ")}}function yp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.EMAIL")," "))}function Vp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getEmail(e)," ")}}function Fp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.LOGINS")," "))}function Yp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getLogins(e)," ")}}function Jp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER")," "))}function qp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"memberType"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function kp(i,a){1&i&&t._UZ(0,"th",24)}function Qp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.richUser?"Local":"External identity"," ")}}function Bp(i,a){1&i&&t._UZ(0,"tr",28)}function Hp(i,a){1&i&&t._UZ(0,"tr",29)}function jp(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NO_USERS_FOUND"),"\n"))}const zp=function(i){return{all:i}};let $p=(()=>{class i{constructor(e,o,n){this.memberTypePipe=e,this.disabledCandidatePipe=o,this.tableCheckbox=n,this.blockManualAdding=!1,this.displayedColumns=["checkbox","status","fullName","voExtSource","email","logins","alreadyMember","local"],this.pageSizeOptions=g.f7,this.canBeSelected=s=>!this.disabledCandidatePipe.transform(s,this.blockManualAdding),this.getDataForColumnFun=(s,r)=>this.getDataForColumn(s,r),this.getExportDataForColumnFun=(s,r)=>this.getExportDataForColumn(s,r)}set matSort(e){this.sort=e,this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new c.by(this.members),this.setDataSource()}getDataForColumn(e,o){switch(o){case"status":return e.member?e.member.status??"":"";case"fullName":{const n=e.richUser?e.richUser:e.candidate;return n.lastName?n.lastName:n.firstName??""}case"voExtSource":return e.richUser?(0,g.OV)(e.richUser):(0,g.v$)(e.candidate);case"email":return e.richUser||e.member?(0,g.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}getExportDataForColumn(e,o){switch(o){case"status":return e.member?e.member.status??"":"";case"fullName":return(0,g.bD)(e.richUser?e.richUser:e.candidate);case"voExtSource":return e.richUser?(0,g.OV)(e.richUser):(0,g.v$)(e.candidate);case"email":return e.richUser||e.member?(0,g.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}exportAllData(e){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),e)}exportDisplayedData(e){const o=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,n=o+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(o,n),this.displayedColumns,this.getExportDataForColumnFun),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,o)=>(0,g.Sd)(e,o,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(e,o)=>(0,g.pR)(e,o,this.getDataForColumnFun),this.dataSource.paginator=this.child.paginator)}getEmail(e){let o;if(e.richUser){for(const n of e.richUser.userAttributes)if(n.namespace+":"+n.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){o=n;break}return null!=o?.value?o.value.replace(","," "):""}return(0,g.Jc)(e.candidate)}getOrganization(e){return(0,g.v$)(e)}getLogins(e){if(e.richUser)return this.getLoginsForRichUser(e.richUser);{let o=this.getLoginsForCandidate(e.candidate);return(null==o||""===o)&&(o=e.candidate.userExtSource.login),o}}getLoginsForRichUser(e){let o="";for(const n of e.userAttributes)n.friendlyName.startsWith("login-namespace")&&null!=n.value&&(o.length>0&&(o+=", "),o+=n.friendlyName.substring(16)+": "+n.value);return o}getLoginsForCandidate(e){let n="";for(const s in e.attributes)Object.prototype.hasOwnProperty.call(e.attributes,s)&&s.includes("urn:perun:user:attribute-def:def:login-namespace:")&&null!=e.attributes[s]&&(n.length>0&&(n+=", "),n+=s.substring(49)+": "+e.attributes[s]);return n}itemSelectionToggle(e){this.selection.toggle(e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(_t),t.Y36(mt),t.Y36(p.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-members-candidates-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(g.l9,7),t.Gf(q.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(o.child=n.first),t.iGM(n=t.CRH())&&(o.matSort=n.first)}},inputs:{members:"members",selection:"selection",tableId:"tableId",blockManualAdding:"blockManualAdding"},features:[t._Bn([_t,mt]),t.TTD],decls:29,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","voExtSource"],["matColumnDef","email"],["matColumnDef","logins"],["matColumnDef","alreadyMember"],["matColumnDef","local"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipPosition","left",3,"class","matTooltip",4,"ngIf"],["matTooltipPosition","left",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(s){return o.exportDisplayedData(s)})("exportAllData",function(s){return o.exportAllData(s)}),t.TgZ(2,"table",2),t.YNc(3,Dp,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Mp,3,3,"th",5),t.YNc(7,Rp,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,wp,3,3,"th",5),t.YNc(10,Gp,4,5,"td",6),t.BQk(),t.ynx(11,8),t.YNc(12,Up,3,3,"th",5),t.YNc(13,Pp,3,3,"td",6),t.BQk(),t.ynx(14,9),t.YNc(15,yp,3,3,"th",5),t.YNc(16,Vp,2,1,"td",6),t.BQk(),t.ynx(17,10),t.YNc(18,Fp,3,3,"th",5),t.YNc(19,Yp,2,1,"td",6),t.BQk(),t.ynx(20,11),t.YNc(21,Jp,3,3,"th",5),t.YNc(22,qp,3,3,"td",6),t.BQk(),t.ynx(23,12),t.YNc(24,kp,1,0,"th",5),t.YNc(25,Qp,2,1,"td",6),t.BQk(),t.YNc(26,Bp,1,0,"tr",13),t.YNc(27,Hp,1,0,"tr",14),t.qZA()()(),t.YNc(28,jp,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===o.members.length),t.xp6(1),t.Q6J("tableId",o.tableId)("dataLength",o.dataSource.filteredData.length)("pageSizeOptions",o.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,zp,t.Dn7(4,9,o.dataSource,o.selection.selected.length,o.canBeSelected))),t.xp6(23),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.members.length))},dependencies:[_.O5,q.YE,q.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,j.oG,N.gM,R.w,Pt.l,_.i8,m.X$,B.d,Ep.u,Cp.f,Sp.Z,xp,yt.I,Vt.G,Ft.r,_t,mt]}),i})();function Xp(i,a){1&i&&t._UZ(0,"mat-spinner",14)}function Kp(i,a){if(1&i&&(t.TgZ(0,"div",15),t._UZ(1,"app-members-candidates-list",16),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("tableId",e.tableId)("members",e.members)("selection",e.selection)("blockManualAdding",e.manualAddingBlocked)}}function Wp(i,a){if(1&i&&(t.TgZ(0,"button",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){t.oxw();const e=t.MAs(16),o=t.oxw();t.Q6J("disabled",0===o.selection.selected.length||!o.inviteAuth)("matMenuTriggerFor",e),t.xp6(1),t.hij(" ",t.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function tu(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.invite.emit(s))}),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"uppercase"),t.ALo(5,"translate"),t.qZA()}if(2&i){const e=a.$implicit;t.xp6(1),t.lnq(" ",t.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE_IN_LANGUAGE")," ",t.lcZ(3,5,t.lcZ(4,7,"SHARED_LIB.LANGUAGES."+e))," ",t.lcZ(5,9,"DIALOGS.ADD_MEMBERS.LANGUAGE")," ")}}function eu(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",2)(2,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.search.emit(n))}),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",4),t.YNc(6,Xp,1,0,"mat-spinner",5),t.qZA(),t.YNc(7,Kp,2,4,"div",6),t.qZA(),t.TgZ(8,"div",7)(9,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.cancel.emit(!1))}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"span",9),t.ALo(13,"translate"),t.YNc(14,Wp,3,5,"button",10),t.TgZ(15,"mat-menu",null,11),t.YNc(17,tu,6,11,"button",12),t.qZA()(),t.TgZ(18,"span",9),t.ALo(19,"translate"),t.TgZ(20,"button",13),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.add.emit())}),t._uU(21),t.ALo(22,"translate"),t.qZA()()()()}if(2&i){const e=t.oxw();t.xp6(2),t.s9C("error",t.lcZ(3,15,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")),t.s9C("placeholder",t.lcZ(4,17,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),t.Q6J("autoFocus",!0)("control",e.searchCtrl),t.xp6(4),t.Q6J("ngIf",null===e.members||e.loading),t.xp6(1),t.Q6J("ngIf",!!e.members&&!e.loading),t.xp6(3),t.hij(" ",t.lcZ(11,19,"DIALOGS.ADD_MEMBERS.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(13,21,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.inviteAuth),t.xp6(2),t.Q6J("ngIf",e.inviteAuth),t.xp6(3),t.Q6J("ngForOf",e.languages),t.xp6(1),t.s9C("matTooltip",t.lcZ(19,23,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.addAuth),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||!e.addAuth),t.xp6(1),t.hij(" ",t.lcZ(22,25,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}function iu(i,a){1&i&&t._UZ(0,"mat-spinner",14)}function ou(i,a){1&i&&(t.TgZ(0,"th",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NAME_COLUMN")," "))}function nu(i,a){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=a.$implicit;let o;t.xp6(1),t.hij(" ",t.lcZ(2,1,null!==(o=e.candidate.candidate)&&void 0!==o?o:e.candidate.richUser)," ")}}function au(i,a){1&i&&(t.TgZ(0,"th",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.ERROR_COLUMN")," "))}function su(i,a){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.TgZ(2,"div",31),t._uU(3),t.qZA()()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.errorMsg," "),t.xp6(2),t.hij(" ",e.errorName," ")}}function ru(i,a){1&i&&t._UZ(0,"tr",32)}function lu(i,a){1&i&&t._UZ(0,"tr",33)}const Kt=function(){return["userName","error"]};function cu(i,a){if(1&i&&(t.TgZ(0,"div",2)(1,"perun-web-apps-alert",21),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"table",22),t.ynx(5,23),t.YNc(6,ou,3,3,"th",24),t.YNc(7,nu,3,3,"td",25),t.BQk(),t.ynx(8,26),t.YNc(9,au,3,3,"th",24),t.YNc(10,su,4,2,"td",25),t.BQk(),t.YNc(11,ru,1,0,"tr",27),t.YNc(12,lu,1,0,"tr",28),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("alert_type","error"),t.xp6(1),t.Oqu(t.lcZ(3,5,"DIALOGS.ADD_MEMBERS.FAILED_DESC")),t.xp6(2),t.Q6J("dataSource",e.failedCandidateDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(7,Kt)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(8,Kt))}}function pu(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.cancel.emit(!0))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.ADD_MEMBERS.CLOSE")," "))}function uu(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,iu,1,0,"mat-spinner",5),t.YNc(2,cu,13,9,"div",19),t.YNc(3,pu,4,3,"div",20),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}let Wt=(()=>{class i{constructor(){this.loading=!1,this.manualAddingBlocked=!1,this.inviteAuth=!0,this.addAuth=!0,this.members=[],this.selection=new E.Ov(!0,[]),this.add=new t.vpe,this.cancel=new t.vpe,this.search=new t.vpe,this.invite=new t.vpe,this.tableId=C.tY,this.searchCtrl=new f.p4("",[f.kI.required,f.kI.pattern(".*[\\S]+.*")])}ngOnInit(){this.failedCandidateDataSource=new c.by(this.failed)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-dialog"]],inputs:{loading:"loading",theme:"theme",languages:"languages",manualAddingBlocked:"manualAddingBlocked",inviteAuth:"inviteAuth",addAuth:"addAuth",members:"members",failed:"failed",selection:"selection"},outputs:{add:"add",cancel:"cancel",search:"search",invite:"invite"},decls:6,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-dialog-content",""],["data-cy","search-members",3,"error","placeholder","autoFocus","control","filter"],[1,"no-bounce-scrollbar"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["class","ml-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent","data-cy","add-button",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"tableId","members","selection","blockManualAdding"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mb-2",3,"alert_type"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","userName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","error"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"text-muted"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,eu,23,27,"div",1),t.YNc(5,uu,4,3,"div",1),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.ADD_MEMBERS.TITLE")),t.xp6(2),t.Q6J("ngIf",0===o.failed.length),t.xp6(1),t.Q6J("ngIf",0!==o.failed.length))},dependencies:[_.sg,_.O5,I.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,N.gM,dt.VK,dt.OP,dt.p6,R.w,$.P,$p,_.gd,m.X$,B.d],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}.error-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%;padding:1em 0}.error-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:50%}.divider[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}"]}),i})(),du=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[_.ez,hp,fp.m,Ap.r,Tp.ez,ut.d4,g.Je]}),i})();t.B6R(Ip.H,[Wt],[_.Ov]),t.B6R(bp.k,[Wt],[_.Ov])}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/254.98b9b46c9327ea59.js b/dist/apps/admin-gui/254.98b9b46c9327ea59.js new file mode 100644 index 000000000..7d047e538 --- /dev/null +++ b/dist/apps/admin-gui/254.98b9b46c9327ea59.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[254],{74254:(fu,gt,l)=>{l.r(gt),l.d(gt,{VosModule:()=>gu});var _=l(36895),b=l(94364),Kt=l(25309),W=l(69024),M=l(36769),h=l(61744),g=l(9244),p=l(81591),S=l(64080),G=l(21029),Wt=l(41656),ht=l(22158),ft=l(82722),t=l(94650),F=l(77968),u=l(65412),tt=l(15003),At=l(32597),P=l(97392),I=l(4859),T=l(51572),x=l(10266),Y=l(61283),et=l(4235),k=l(34198),Q=l(55660),m=l(89383),te=l(29218),ee=l(45942),ie=l(28764);function oe(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function ne(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.editGroup())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function ae(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.deleteGroup())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function se(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.onSyncDetail())}),t.ALo(1,"groupSyncIcon"),t.TgZ(2,"mat-icon"),t.ALo(3,"groupSyncIconColor"),t._uU(4),t.ALo(5,"groupSyncIcon"),t.qZA()()}if(2&i){const e=t.oxw(3);t.Q6J("disabled","sync_disabled"===t.lcZ(1,5,e.group)),t.xp6(2),t.Tol(t.lcZ(3,7,e.group)),t.xp6(2),t.hij(" ",t.lcZ(5,9,e.group)," ")}}function re(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",16),t.ALo(4,"translate"),t.ALo(5,"groupSyncToolTip"),t.YNc(6,se,6,11,"button",17),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" , ",t.lcZ(2,4,"GROUP_DETAIL.SYNCHRONIZATION"),": "),t.xp6(2),t.Q6J("matTooltipPosition","above")("matTooltip",t.lcZ(4,6,t.lcZ(5,8,e.group))),t.xp6(3),t.Q6J("ngIf",e.syncAuth)}}const le=function(){return{color:"black"}},Tt=function(i,a){return["/organizations",i,"groups",a]},It=function(i){return["/organizations",i]};function ce(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,ne,3,0,"button",10),t.YNc(11,ae,3,0,"button",11),t.qZA(),t.TgZ(12,"div"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"span",12),t._uU(16),t.ALo(17,"translate"),t.ALo(18,"translate"),t.TgZ(19,"a",13),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(20),t.qZA(),t._uU(21),t.ALo(22,"translate"),t.YNc(23,re,7,10,"span",2),t.qZA()()(),t._UZ(24,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,21,"GROUP_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(31,le)),t.xp6(4),t.Q2q("data-cy","",e.group.shortName,"-shortName"),t.Q6J("perunWebAppsMiddleClickRouterLink",t.WLB(32,Tt,e.vo.id.toString(),e.group.id.toString()))("routerLink",t.WLB(35,Tt,e.vo.id,e.group.id))("queryParams",e.route.snapshot.queryParams),t.xp6(1),t.hij(" ",e.group.shortName," "),t.xp6(2),t.hij(" \xa0#",e.group.id," "),t.xp6(1),t.Q6J("ngIf","members"!==e.group.name&&e.editAuth),t.xp6(1),t.Q6J("ngIf","members"!==e.group.name&&e.deleteAuth),t.xp6(2),t.AsE("",t.lcZ(14,23,"GROUP_DETAIL.UUID"),": ",e.group.uuid,""),t.xp6(3),t.AsE(" ",t.lcZ(17,25,"GROUP_DETAIL.ENTITY"),", ",t.lcZ(18,27,"GROUP_DETAIL.VO_NAME"),": "),t.xp6(3),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(38,It,e.vo.id.toString()))("routerLink",t.VKq(40,It,e.vo.id))("queryParams",e.route.snapshot.queryParams),t.xp6(1),t.Oqu(e.vo.name),t.xp6(1),t.AsE(", ",t.lcZ(22,29,"GROUP_DETAIL.DESCRIPTION"),": ",e.group.description," "),t.xp6(2),t.Q6J("ngIf",e.syncEnabled)}}let pe=(()=>{class i extends((0,ht.T)()){constructor(e,o,n,s,r,d,f,v,D,z,_t){super(),this.sideMenuService=e,this.voService=o,this.route=n,this.sideMenuItemService=s,this.groupService=r,this.dialog=d,this.guiAuthResolver=f,this.router=v,this.entityStorageService=D,this.reloadEntityDetail=z,this.queryParamsRouter=_t,this.editAuth=!1,this.deleteAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[S.r.GROUP_SYNC_ENABLED,S.r.GROUP_LAST_SYNC_STATE,S.r.GROUP_LAST_SYNC_TIMESTAMP,S.r.GROUP_STRUCTURE_SYNC_ENABLED,S.r.GROUP_LAST_STRUCTURE_SYNC_STATE,S.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.reloadEntityDetail.entityDetailChange.pipe((0,ft.R)(this.destroyed$)).subscribe(()=>{this.reloadData()}),this.reloadData()}onSyncDetail(){const e=(0,g.kZ)();e.width="450px",e.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(G.Bp,e)}editGroup(){const e=(0,g.kZ)();e.width="450px",e.data={theme:"group-theme",group:this.group,dialogType:G.Eg.GROUP},this.dialog.open(G.rd,e).afterClosed().subscribe(n=>{n&&this.groupService.getGroupById(this.group.id).subscribe(s=>{this.group=s,this.setMenuItems()})})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),n=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.groupService.getGroupById(n).subscribe(r=>{this.group=r,this.entityStorageService.setEntity(this.group),(0,g.sF)("groups",this.group),(0,g.XI)(this.group,s.name),this.guiAuthResolver.isAuthorized("getRichGroupByIdWithAttributesByNames_int_List_policy",[this.group])?this.groupService.getRichGroupByIdWithAttributesByNames(n,this.attrNames).subscribe(d=>{this.group=d,this.syncEnabled=(0,g.bx)(d),this.syncAuth=this.guiAuthResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group])},()=>this.loading=!1):this.syncEnabled=!1,this.editAuth=this.guiAuthResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.group]),this.setMenuItems(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseVo(this.vo),o=this.sideMenuItemService.parseGroup(this.group);this.sideMenuService.setAccessMenuItems([e,o])}deleteGroup(){const e=(0,g.kZ)();e.width="500px",e.data={theme:"group-theme",groups:[this.group]},this.dialog.open(Wt.P,e).afterClosed().subscribe(n=>{n&&this.queryParamsRouter.navigate(["../"],this.route)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(F.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(W.V),t.Y36(h.ff),t.Y36(u.uw),t.Y36(p.x4),t.Y36(b.F0),t.Y36(p.fb),t.Y36(tt.G),t.Y36(At.g))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","group-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-group-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"group-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","queryParams","auxclick"],[1,"text-muted"],["aria-label","Edit group","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["data-cy","vo-link",1,"group-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","queryParams","auxclick"],["aria-label","Edit group","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,oe,1,0,"mat-spinner",1),t.YNc(3,ce,25,42,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.group))},dependencies:[_.O5,_.PC,b.yS,P.Hw,I.lW,T.Ou,x.gM,Y.A,et.W,k.Y,Q.Q,m.X$,te.J,ee.r,ie.F],data:{animation:[M.Ji]}}),i})();function ue(i,a){1&i&&t._UZ(0,"mat-spinner",3)}const bt=function(i){return["/admin","users",i]};function de(i,a){if(1&i&&(t.TgZ(0,"a",8),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(3,bt,e.member.userId.toString()))("routerLink",t.VKq(5,bt,e.member.userId)),t.xp6(1),t.hij(" ",e.member.userId," ")}}function _e(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(e.member.userId)}}const me=function(){return{color:"black"}},vt=function(i,a){return["/organizations",i,"members",a]};function ge(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA()(),t.TgZ(10,"span",10),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"translate"),t.YNc(14,de,2,7,"a",11),t.YNc(15,_e,2,1,"span",2),t.qZA()()(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,11,"MEMBER_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(17,me)),t.xp6(4),t.Q2q("data-cy","",e.member.user.firstName,"-firstName"),t.Q6J("perunWebAppsMiddleClickRouterLink",t.WLB(18,vt,e.vo.id.toString(),e.member.id.toString()))("routerLink",t.WLB(21,vt,e.vo.id,e.member.id)),t.xp6(1),t.hij(" ",e.fullName," "),t.xp6(2),t.hij(" \xa0#",e.member.id," "),t.xp6(2),t.AsE(" ",t.lcZ(12,13,"MEMBER_DETAIL.ENTITY"),", ",t.lcZ(13,15,"MEMBER_DETAIL.USER_ID"),": "),t.xp6(3),t.Q6J("ngIf",e.isAuthorized),t.xp6(1),t.Q6J("ngIf",!e.isAuthorized)}}let he=(()=>{class i{constructor(e,o,n,s,r,d,f,v){this.sideMenuItemService=e,this.translate=o,this.sideMenuService=n,this.membersService=s,this.voService=r,this.route=d,this.authResolver=f,this.entityService=v,this.fullName="",this.isAuthorized=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),n=Number(e.memberId);this.isAuthorized=this.authResolver.isPerunAdminOrObserver(),this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.membersService.getRichMemberWithAttributes(n).subscribe(r=>{this.member=r,this.entityService.setEntity({id:r.id,beanName:r.beanName,voId:r.voId,userId:r.userId});const d=this.sideMenuItemService.parseVo(this.vo),f=this.sideMenuItemService.parseMember(this.member);this.fullName=f.label,this.sideMenuService.setAccessMenuItems([d,f]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(W.V),t.Y36(m.sK),t.Y36(F.D),t.Y36(h.uq),t.Y36(h.YF),t.Y36(b.gz),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-detail-page"]],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","member-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"member-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],[1,"mt-1","entity-info"],["class","member-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick",4,"ngIf"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,ue,1,0,"mat-spinner",1),t.YNc(3,ge,17,24,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.member))},dependencies:[_.O5,_.PC,b.yS,P.Hw,T.Ou,x.gM,Y.A,et.W,k.Y,Q.Q,m.X$],data:{animation:[M.Ji]}}),i})();var J=l(71135);function fe(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Ae(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let Te=(()=>{class i{constructor(e,o,n,s,r,d){this.sideMenuService=e,this.voService=o,this.router=n,this.authResolver=s,this.entityStorageService=r,this.routePolicyService=d,this.items=[],this.navItems=[],this.loading=!1}ngDoCheck(){const e=this.vo.id;this.vo=this.entityStorageService.getEntity(),e!==this.vo.id&&this.initNavItems()}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initNavItems(),this.loading=!1}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("organizations-members",this.vo)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/members`,label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-groups",this.vo)&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups`,label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources",this.vo)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.vo.id}/resources`,label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-applications",this.vo)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.vo.id}/applications`,label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",this.vo)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/sponsoredMembers`,label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",this.vo)&&this.navItems.push({cssIcon:"perun-service-identity",url:`/organizations/${this.vo.id}/serviceAccounts`,label:"MENU_ITEMS.VO.SERVICE_MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-attributes",this.vo)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/attributes`,label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-statistics",this.vo)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.vo.id}/statistics`,label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings",this.vo)&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.vo.id}/settings`,label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(F.D),t.Y36(h.YF),t.Y36(b.F0),t.Y36(p.x4),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-overview"]],decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,fe,1,0,"mat-spinner",0),t.YNc(1,Ae,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,T.Ou,J.L]}),i})();var Ie=l(4732),be=l(81847),ve=l(11717);function Ee(i,a){1&i&&(t.TgZ(0,"span"),t._uU(1,", "),t.qZA())}const Et=function(i){return["/organizations",i]};function Ce(i,a){if(1&i&&(t.TgZ(0,"span")(1,"a",2),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(2),t.qZA(),t.YNc(3,Ee,2,0,"span",1),t.qZA()),2&i){const e=a.$implicit,o=a.index,n=t.oxw();t.xp6(1),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(4,Et,e.id.toString()))("routerLink",t.VKq(6,Et,e.id.toString())),t.xp6(1),t.hij(" ",e.name," "),t.xp6(1),t.Q6J("ngIf",n.vos.length>o+1)}}function Se(i,a){1&i&&(t.TgZ(0,"span"),t._uU(1,"\u2026"),t.qZA())}let xe=(()=>{class i{constructor(){this.vos=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-related-vos"]],inputs:{title:"title",vos:"vos"},decls:4,vars:5,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"vo-link","pointer",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"]],template:function(e,o){1&e&&(t._uU(0),t.ALo(1,"translate"),t.YNc(2,Ce,4,8,"span",0),t.YNc(3,Se,2,0,"span",1)),2&e&&(t.hij("",t.lcZ(1,3,o.title),":\n"),t.xp6(2),t.Q6J("ngForOf",o.vos.slice(0,3)),t.xp6(1),t.Q6J("ngIf",o.vos.length>3))},dependencies:[_.sg,_.O5,b.yS,k.Y,Q.Q,m.X$],styles:[".pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Ne(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Oe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.editVo())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Ze(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.removeVo())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function De(i,a){if(1&i&&t._UZ(0,"app-related-vos",16),2&i){const e=t.oxw(2);t.Q6J("title","VO_DETAIL.RELATED_VOS.MEMBER_VOS")("vos",e.enrichedVo.memberVos)}}function Me(i,a){if(1&i&&t._UZ(0,"app-related-vos",16),2&i){const e=t.oxw(2);t.Q6J("title","VO_DETAIL.RELATED_VOS.PARENT_VOS")("vos",e.enrichedVo.parentVos)}}const Le=function(){return{color:"black"}},Re=function(i){return["/organizations",i]},we=function(i){return["/organizations/",i]};function Ge(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,Oe,3,0,"button",10),t.YNc(11,Ze,3,0,"button",11),t.qZA(),t.TgZ(12,"span",12),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.YNc(16,De,1,2,"app-related-vos",13),t.YNc(17,Me,1,2,"app-related-vos",13),t.qZA()()(),t._UZ(18,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,15,"VO_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(21,Le))("svgIcon",0!==e.enrichedVo.memberVos.length?"perun-hierarchical-vo":"perun-vo-black"),t.xp6(4),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(22,Re,e.vo.id.toString()))("routerLink",t.VKq(24,we,e.vo.id))("queryParams",e.route.snapshot.queryParams),t.xp6(1),t.hij(" ",e.vo.name," "),t.xp6(2),t.hij(" \xa0#",e.vo.id," "),t.xp6(1),t.Q6J("ngIf",e.editAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(2),t.lnq(" ",t.lcZ(14,17,"VO_DETAIL.ENTITY"),", ",t.lcZ(15,19,"VO_DETAIL.SHORT_NAME"),": ",e.vo.shortName+(e.enrichedVo.memberVos.length+e.enrichedVo.parentVos.length?",":"")," "),t.xp6(3),t.Q6J("ngIf",0!==e.enrichedVo.memberVos.length),t.xp6(1),t.Q6J("ngIf",0!==e.enrichedVo.parentVos.length)}}let Ue=(()=>{class i extends((0,ht.T)()){constructor(e,o,n,s,r,d,f,v,D,z){super(),this.sideMenuService=e,this.voService=o,this.route=n,this.router=s,this.sideMenuItemService=r,this.dialog=d,this.authResolver=f,this.entityStorageService=v,this.reloadEntityDetail=D,this.queryParamsRouter=z,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,ft.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId);this.voService.getEnrichedVoById(o).subscribe(n=>{this.vo=n.vo,this.enrichedVo=n,this.entityStorageService.setEntity({id:this.vo.id,beanName:this.vo.beanName}),this.editAuth=this.authResolver.isAuthorized("updateVo_Vo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("deleteVo_Vo_policy",[this.vo]),this.setMenuItems(),(0,g.sF)("vos",this.vo),(0,g.XI)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const e=(0,g.kZ)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:G.Eg.VO},this.dialog.open(G.rd,e).afterClosed().subscribe(n=>{n&&this.voService.getVoById(this.vo.id).subscribe(s=>{this.vo=s,this.setMenuItems()})})}setMenuItems(){const n=this.sideMenuItemService.parseVo(this.vo,0!==this.enrichedVo.memberVos.length,0!==this.enrichedVo.parentVos.length);this.sideMenuService.setAccessMenuItems([n])}removeVo(){const e=(0,g.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(ve.o,e).afterClosed().subscribe(n=>{n&&this.queryParamsRouter.navigate([""])})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(F.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(b.F0),t.Y36(W.V),t.Y36(u.uw),t.Y36(p.x4),t.Y36(p.fb),t.Y36(tt.G),t.Y36(At.g))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","vo-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle","svgIcon"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["data-cy","vo-name-link",1,"vo-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","queryParams","auxclick"],[1,"text-muted"],["mat-icon-button","","aria-label","Edit Vo",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[3,"title","vos",4,"ngIf"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click"],[3,"title","vos"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Ne,1,0,"mat-spinner",1),t.YNc(3,Ge,19,26,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo))},dependencies:[_.O5,_.PC,b.yS,P.Hw,I.lW,T.Ou,x.gM,Y.A,et.W,k.Y,Q.Q,xe,m.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[M.Ji]}}),i})();var c=l(30671),Pe=l(58964),ye=l(19352),U=l(73546),Ve=l(12488),Fe=l(93057);let Ye=(()=>{class i{transform(e){return(0,g.Cz)(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"attributeFriendlyName",type:i,pure:!0}),i})();var B=l(31359),Je=l(62383);function qe(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function ke(i,a){1&i&&t._UZ(0,"th",19)}function Qe(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[0],": ")}}function Be(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"attributeFriendlyName"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e),": ")}}function He(i,a){if(1&i&&(t.TgZ(0,"td",20),t.YNc(1,Qe,2,1,"span",1),t.YNc(2,Be,3,3,"span",1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",null!==o.attributes.get(e)[0]),t.xp6(1),t.Q6J("ngIf",null===o.attributes.get(e)[0])}}function je(i,a){1&i&&t._UZ(0,"th",19)}function ze(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[1]," ")}}function $e(i,a){1&i&&t._UZ(0,"tr",22)}function Xe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card",5)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",6),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content",23)(7,"div",24),t.ALo(8,"translate"),t.TgZ(9,"button",25),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.requestPwdReset())}),t._uU(10),t.ALo(11,"translate"),t.qZA()()()()}if(2&i){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),t.xp6(3),t.Q6J("matTooltipDisabled",e.logins.length>0)("matTooltip",t.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED")),t.xp6(2),t.Q6J("disabled",!e.logins.length),t.xp6(1),t.hij(" ",t.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function Ke(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")," "))}function We(i,a){if(1&i&&(t.TgZ(0,"td",35),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.user)," ")}}function ti(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")," "))}function ei(i,a){if(1&i&&(t.TgZ(0,"td",35)(1,"span",36),t._uU(2),t.ALo(3,"parseDate"),t.qZA()()),2&i){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.validityTo))}}function ii(i,a){1&i&&t._UZ(0,"tr",37)}function oi(i,a){1&i&&t._UZ(0,"tr",22)}const Ct=function(){return["sponsors","expiration"]};function ni(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card-content")(1,"h6",28),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"button",29),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.changeSponsors())}),t.TgZ(5,"mat-icon"),t._uU(6,"edit"),t.qZA()()(),t.TgZ(7,"table",30),t.ynx(8,31),t.YNc(9,Ke,3,3,"th",9),t.YNc(10,We,3,3,"td",32),t.BQk(),t.ynx(11,33),t.YNc(12,ti,3,3,"th",9),t.YNc(13,ei,4,3,"td",32),t.BQk(),t.YNc(14,ii,1,0,"tr",34),t.YNc(15,oi,1,0,"tr",13),t.qZA()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),t.xp6(5),t.Q6J("dataSource",e.sponsorsDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(6,Ct)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(7,Ct))}}function ai(i,a){if(1&i&&(t.TgZ(0,"div")(1,"mat-card",26)(2,"mat-card-header")(3,"mat-card-title")(4,"h1",6),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"mat-card-subtitle",27),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.YNc(10,ni,16,8,"mat-card-content",1),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(5),t.Oqu(t.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),t.xp6(3),t.hij(" ",t.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),t.xp6(2),t.Q6J("ngIf",0!==e.sponsors.length)}}function si(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",3)(2,"div",4)(3,"mat-card",5)(4,"mat-card-header")(5,"mat-card-title")(6,"h1",6),t._uU(7),t.ALo(8,"translate"),t.qZA()()(),t.TgZ(9,"mat-card-content")(10,"table",7),t.ynx(11,8),t.YNc(12,ke,1,0,"th",9),t.YNc(13,He,3,2,"td",10),t.BQk(),t.ynx(14,11),t.YNc(15,je,1,0,"th",9),t.YNc(16,ze,2,1,"td",12),t.BQk(),t.YNc(17,$e,1,0,"tr",13),t.qZA()()()(),t.TgZ(18,"div",4)(19,"mat-card",14),t._UZ(20,"perun-web-apps-member-overview-membership",15),t.qZA(),t.TgZ(21,"mat-card",16),t._UZ(22,"perun-web-apps-member-overview-groups",15),t.qZA()(),t.TgZ(23,"div",4),t.YNc(24,Xe,12,11,"mat-card",17),t.YNc(25,ai,11,7,"div",1),t.qZA()(),t.TgZ(26,"div"),t._UZ(27,"perun-web-apps-menu-buttons-field",18),t.qZA()()),2&i){const e=t.oxw();t.xp6(7),t.Oqu(t.lcZ(8,11,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),t.xp6(3),t.Q6J("dataSource",e.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(3),t.Q6J("member",e.member)("voId",e.vo.id),t.xp6(2),t.Q6J("member",e.member)("voId",e.vo.id),t.xp6(2),t.Q6J("ngIf",e.pwdResetAuth),t.xp6(1),t.Q6J("ngIf",e.member.sponsored),t.xp6(2),t.Q6J("items",e.navItems)("size","small")}}let ri=(()=>{class i{constructor(e,o,n,s,r,d,f,v){this.attributesManager=e,this.membersService=o,this.usersManager=n,this.route=s,this.dialog=r,this.authResolver=d,this.storeService=f,this.routePolicyService=v,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new c.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new c.by,this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{const o=Number(e.memberId);this.attributeNames=this.storeService.getMemberProfileAttributeNames(),this.membersService.getRichMemberWithAttributes(o).subscribe(n=>{this.attUrns=this.storeService.getProperty("password_namespace_attributes").map(s=>{const r=s.split(":");return r[r.length-1]}),this.attributesManager.getLogins(n.userId).subscribe(s=>{this.logins=s.filter(r=>this.attUrns.includes(r.friendlyNameParameter)),this.member=n,this.initAttributes(),this.dataSource=new c.by(Array.from(this.attributes.keys())),this.vo={id:n.voId,beanName:"Vo"},this.pwdResetAuth=this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[this.vo,this.member]),this.member.sponsored&&this.authResolver.isAuthorized("getSponsorsForMember_Member_List_policy",[this.member])?this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(r=>{this.sponsors=r,this.sponsorsDataSource=new c.by(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}requestPwdReset(){const e=(0,g.kZ)();e.width="400px",e.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(Pe.m,e)}changeSponsors(){const e=(0,g.kZ)();e.width="650px",e.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(ye.H,e).afterClosed().subscribe(n=>{n&&(this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(s=>{this.member=s,this.member.sponsored&&this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(r=>{this.sponsors=r,this.sponsorsDataSource.data=this.sponsors}),this.loading=!1}))})}initAttributes(){this.attributeNames.forEach(e=>{this.attributes.set(e,[null,"-"])}),this.filterAttributes()}filterAttributes(){null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(e=>{this.attributeNames.includes(e.friendlyName)&&this.attributes.set(e.friendlyName,[e.displayName,e.value])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(e=>{this.attributeNames.includes(e.friendlyName)&&this.attributes.set(e.friendlyName,[e.displayName,e.value])})}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("members-groups",this.member)&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.member.voId}/members/${this.member.id}/groups`,label:"MENU_ITEMS.MEMBER.GROUPS",style:"member-btn"}),this.routePolicyService.canNavigate("members-applications",this.member)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.member.voId}/members/${this.member.id}/applications`,label:"MENU_ITEMS.MEMBER.APPLICATIONS",style:"member-btn"}),this.routePolicyService.canNavigate("members-resources",this.member)&&this.navItems.push({cssIcon:"perun-resource",url:`/organizations/${this.member.voId}/members/${this.member.id}/resources`,label:"MENU_ITEMS.MEMBER.RESOURCES",style:"member-btn"}),this.routePolicyService.canNavigate("members-attributes",this.member)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/members/${this.member.id}/attributes`,label:"MENU_ITEMS.MEMBER.ATTRIBUTES",style:"member-btn"}),this.routePolicyService.canNavigate("members-bans",this.member)&&this.navItems.push({cssIcon:"perun-ban",url:`/organizations/${this.vo.id}/members/${this.member.id}/bans`,label:"MENU_ITEMS.MEMBER.BANS",style:"member-btn"})}refreshData(){this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(e=>{this.member=e,this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(b.gz),t.Y36(u.uw),t.Y36(p.x4),t.Y36(p.d6),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"member-cards"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mat-elevation-z3","membership-card"],[3,"member","voId"],[1,"mat-elevation-z3","membership-card","mt-4"],["class","mat-elevation-z3",4,"ngIf"],[3,"items","size"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],["mat-row",""],[1,"column-center"],[3,"matTooltipDisabled","matTooltip"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],[1,"mat-elevation-z3","mt-4"],[1,"mt-n3"],[1,"d-flex"],["mat-icon-button","",1,"ml-auto","mt-n2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","sponsors"],["mat-cell","",4,"matCellDef"],["matColumnDef","expiration"],["mat-header-row","",4,"matHeaderRowDef"],["mat-cell",""],[1,"font-italic"],["mat-header-row",""]],template:function(e,o){1&e&&(t.YNc(0,qe,1,0,"mat-spinner",0),t.YNc(1,si,28,13,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,P.Hw,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,I.lW,T.Ou,x.gM,U.a8,U.dk,U.dn,U.n5,U.$j,J.L,Ve.b,Fe.z,m.X$,Ye,B.d,Je.M],styles:[".vert-center[_ngcontent-%COMP%]{vertical-align:inherit!important}.vert-top[_ngcontent-%COMP%]{vertical-align:top}.column-center[_ngcontent-%COMP%]{text-align:center}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.member-cards[_ngcontent-%COMP%]{margin:0 -1rem}.membership-card[_ngcontent-%COMP%]{max-width:400px}"]}),i})();var li=l(85243);function ci(i,a){1&i&&t._UZ(0,"mat-spinner",2)}const St=function(i,a){return["/organizations",i,"groups",a]};function pi(i,a){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"a",4),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,4,"GROUP_DETAIL.SUBGROUP_INFO")," "),t.xp6(2),t.Q6J("perunWebAppsMiddleClickRouterLink",t.WLB(6,St,e.parentGroup.voId.toString(),e.parentGroup.id.toString()))("routerLink",t.WLB(9,St,e.parentGroup.voId,e.parentGroup.id)),t.xp6(1),t.hij(" ",e.parentGroup.name," ")}}function ui(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,pi,5,12,"p",1),t._UZ(2,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!==e.parentGroup),t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let di=(()=>{class i{constructor(e,o,n,s,r,d,f,v,D){this.route=e,this.groupService=o,this.voService=n,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=d,this.notificator=f,this.entityStorageService=v,this.routePolicyService=D,this.navItems=[],this.parentGroup=null,this.loading=!1}ngOnInit(){this.loading=!0,this.loadData()}loadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),n=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.groupService.getGroupById(n).subscribe(r=>{if(this.group=r,this.entityStorageService.setEntity(this.group),(0,g.sF)("groups",this.group),(0,g.XI)(this.group,s.name),this.loadParentGroupData(this.group.parentGroupId),null==this.group.parentGroupId)return this.parentGroup=null,this.initNavItems(),void(this.loading=!1);this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}loadParentGroupData(e){null!=e&&this.groupService.getGroupById(e).subscribe(o=>{this.parentGroup=o,this.initNavItems(),this.loading=!1},()=>this.loading=!1)}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("groups-members",this.group)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.group.voId}/groups/${this.group.id}/members`,label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-subgroups",this.group)&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/subgroups`,label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-resources",this.group)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.group.voId}/groups/${this.group.id}/resources`,label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),"members"!==this.group.name&&this.routePolicyService.canNavigate("groups-applications",this.group)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.group.voId}/groups/${this.group.id}/applications`,label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-attributes",this.group)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.group.voId}/groups/${this.group.id}/attributes`,label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"}),this.routePolicyService.canNavigate("groups-statistics",this.group)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.group.voId}/groups/${this.group.id}/statistics`,label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-roles",this.group)&&this.navItems.push({cssIcon:"perun-roles",url:`/organizations/${this.group.voId}/groups/${this.group.id}/roles`,label:"MENU_ITEMS.GROUP.ROLES",style:"group-btn"});let e=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{e=!0},o=>{"PrivilegeException"!==o.name&&this.notificator.showRPCError(o)}),(e||this.routePolicyService.canNavigate("groups-settings",this.group))&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings`,label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.ff),t.Y36(h.YF),t.Y36(p.x4),t.Y36(p.F5),t.Y36(h.H8),t.Y36(p.V6),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"],[1,"group-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"]],template:function(e,o){1&e&&(t.YNc(0,ci,1,0,"mat-spinner",0),t.YNc(1,ui,3,3,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,b.yS,T.Ou,J.L,k.Y,Q.Q,m.X$]}),i})();var _i=l(15592);let mi=(()=>{class i{constructor(e){this.route=e}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[M.Ji]}}),i})();var gi=l(94856);let hi=(()=>{class i{constructor(e,o){this.route=e,this.router=o,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=o.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),o.events.subscribe(n=>{n instanceof b.m2&&(this.currentUrl=n.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl))})}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[M.Ji]}}),i})();var it=l(12651);let fi=(()=>{class i{constructor(e){this.entityStorageService=e}ngOnInit(){this.vo=this.entityStorageService.getEntity()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityId","entity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._UZ(4,"app-one-entity-attribute-page",1),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("entityId",o.vo.id)("entity","vo"))},dependencies:[it.t,m.X$]}),i})();function Ai(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Ti(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let Ii=(()=>{class i{constructor(e,o,n,s){this.voService=e,this.router=o,this.entityStorageService=n,this.routePolicyService=s,this.items=[],this.loading=!1,this.isMemberOfSomeOrganization=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.isMemberOfSomeOrganization=0!==e.parentVos.length,this.initItems(),this.loading=!1})}initItems(){this.items=[],this.routePolicyService.canNavigate("organizations-settings-expiration",this.vo)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/settings/expiration`,label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-managers",this.vo)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/settings/managers`,label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",this.vo)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/settings/applicationForm`,label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-notifications",this.vo)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/settings/notifications`,label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-extsources",this.vo)&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.vo.id}/settings/extsources`,label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",this.vo)&&this.items.push({cssIcon:"perun-hierarchical-vo",url:`/organizations/${this.vo.id}/settings/memberOrganizations`,label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",this.vo)&&this.isMemberOfSomeOrganization&&this.items.push({cssIcon:"perun-hierarchical-inclusion",url:`/organizations/${this.vo.id}/settings/hierarchicalInclusion`,label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-bans",this.vo)&&this.items.push({cssIcon:"perun-ban",url:`/organizations/${this.vo.id}/settings/bans`,label:"MENU_ITEMS.VO.BANS",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(b.F0),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,Ai,1,0,"mat-spinner",0),t.YNc(1,Ti,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,T.Ou,J.L]}),i})();var $=l(3238),N=l(59549),y=l(284),A=l(24006),H=l(56709),X=l(84385),ot=l(90455),xt=l(71948);const bi=["*"];let vi=(()=>{class i{constructor(){this.modelChange=new t.vpe}ngAfterViewInit(){this.toggle.change.subscribe(()=>this.valueChanged())}valueChanged(){this.modelChange.emit(this.toggle.checked)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-settings-toggle-item"]],viewQuery:function(e,o){if(1&e&&t.Gf(ot.Rr,7),2&e){let n;t.iGM(n=t.CRH())&&(o.toggle=n.first)}},inputs:{title:"title",modelValue:"modelValue"},outputs:{modelChange:"modelChange"},ngContentSelectors:bi,decls:8,vars:5,consts:[[1,"mt-3"],[1,"d-flex","flex-row","align-items-baseline","justify-content-between"],[1,"setting-item","clickable",3,"click"],["color","primary",1,"ml-4",3,"ngModel","ngModelChange"],["toggle",""],[1,"ml-1"]],template:function(e,o){if(1&e){const n=t.EpF();t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"label",2),t.NdJ("click",function(){t.CHM(n);const r=t.MAs(5);return t.KtG(r.toggle()||o.valueChanged())}),t._uU(3),t.qZA(),t.TgZ(4,"mat-slide-toggle",3,4),t.NdJ("ngModelChange",function(r){return o.modelValue=r}),t.qZA()(),t.TgZ(6,"div",5),t.Hsn(7),t.qZA()()}if(2&e){const n=t.MAs(5);t.xp6(2),t.ekj("unselected-setting",!n.checked),t.xp6(1),t.hij(" ",o.title," "),t.xp6(1),t.Q6J("ngModel",o.modelValue),t.xp6(2),t.Q6J("@openClose",n.checked?"open":"closed")}},dependencies:[A.JJ,A.On,ot.Rr],data:{animation:[M.BQ]}}),i})();function Ei(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",25)(1,"mat-form-field",26)(2,"input",20),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodStatic=n)}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.periodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Ci(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Si(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"mat-form-field",19)(2,"input",27),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodDynamic=n)}),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodDynamicUnit=n)}),t.YNc(9,Ci,2,2,"mat-option",17),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.periodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.periodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function xi(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Ni(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Oi(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Zi(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Di(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",25)(1,"mat-form-field",26)(2,"input",20),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodStatic=n)}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Mi(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Li(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"mat-form-field",19)(2,"input",20),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodDynamic=n)}),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodDynamicUnit=n)}),t.YNc(9,Mi,2,2,"mat-option",17),t.qZA()()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function Ri(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",29)(1,"mat-radio-group",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.specialLoaPeriodType=n)}),t.TgZ(2,"mat-radio-button",9,30),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"mat-radio-button",11,31),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.YNc(10,Di,7,8,"div",13),t.YNc(11,Li,10,10,"div",14),t.TgZ(12,"div")(13,"mat-checkbox",32),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.specialLoaPeriodExtendExpiredMembers=n)}),t._uU(14),t.ALo(15,"translate"),t.qZA()()()}if(2&i){const e=t.MAs(3),o=t.MAs(7),n=t.oxw(2);t.xp6(1),t.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodType),t.xp6(3),t.hij(" ",t.lcZ(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),t.xp6(4),t.hij(" ",t.lcZ(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),t.xp6(2),t.Q6J("ngIf",e.checked),t.xp6(1),t.Q6J("ngIf",o.checked),t.xp6(2),t.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodExtendExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function wi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2)(2,"h1",3),t.NdJ("click",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.toggle())}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"mat-slide-toggle",4,5),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.enabled=n)}),t.qZA()(),t.TgZ(7,"div")(8,"label",6),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",7)(12,"mat-radio-group",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.periodType=n)}),t.TgZ(13,"mat-radio-button",9,10),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"mat-radio-button",11,12),t._uU(19),t.ALo(20,"translate"),t.qZA()(),t.YNc(21,Ei,7,8,"div",13),t.YNc(22,Si,10,10,"div",14),t.qZA(),t.TgZ(23,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotAllowLoasEnabled=n)}),t.ALo(24,"translate"),t.TgZ(25,"mat-form-field")(26,"mat-placeholder"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"mat-select",16),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotAllowLoas=n)}),t.YNc(30,xi,2,2,"mat-option",17),t.qZA()()(),t.TgZ(31,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotExtendLoasEnabled=n)}),t.ALo(32,"translate"),t.TgZ(33,"mat-form-field")(34,"mat-placeholder"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t.TgZ(37,"mat-select",16),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotExtendLoas=n)}),t.YNc(38,Ni,2,2,"mat-option",17),t.qZA()()(),t.TgZ(39,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriodEnabled=n)}),t.ALo(40,"translate"),t.TgZ(41,"div",18)(42,"mat-form-field",19)(43,"input",20),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriod=n)}),t.ALo(44,"translate"),t.qZA()(),t.TgZ(45,"mat-form-field")(46,"mat-label"),t._uU(47),t.ALo(48,"translate"),t.qZA(),t.TgZ(49,"mat-select",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriodUnit=n)}),t.YNc(50,Oi,2,2,"mat-option",17),t.qZA()()()(),t.TgZ(51,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.specialLoaPeriodEnabled=n)}),t.ALo(52,"translate"),t.TgZ(53,"div",7)(54,"div")(55,"mat-form-field")(56,"mat-label"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"mat-select",8,21),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.specialLoa=n)}),t.YNc(61,Zi,2,2,"mat-option",17),t.qZA()(),t.YNc(62,Ri,16,13,"div",22),t.qZA()()()(),t.TgZ(63,"div",23),t.ALo(64,"translate"),t.TgZ(65,"button",24),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.saveChanges())}),t._uU(66),t.ALo(67,"translate"),t.qZA()()()}if(2&i){const e=t.MAs(6),o=t.MAs(14),n=t.MAs(18),s=t.oxw();t.xp6(2),t.ekj("unselected-setting",!e.checked),t.xp6(1),t.hij(" ",t.lcZ(4,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.enabled),t.xp6(2),t.Q6J("@openClose",e.checked?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(10,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),t.xp6(3),t.Q6J("ngModel",s.currentConfiguration.periodType),t.xp6(3),t.hij(" ",t.lcZ(16,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),t.xp6(4),t.hij(" ",t.lcZ(20,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),t.xp6(2),t.Q6J("ngIf",o.checked),t.xp6(1),t.Q6J("ngIf",n.checked),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.doNotAllowLoasEnabled)("modelValue",s.currentConfiguration.doNotAllowLoasEnabled)("title",t.lcZ(24,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),t.xp6(4),t.Oqu(t.lcZ(28,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.doNotAllowLoas),t.xp6(1),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.doNotExtendLoasEnabled)("modelValue",s.currentConfiguration.doNotExtendLoasEnabled)("title",t.lcZ(32,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),t.xp6(4),t.Oqu(t.lcZ(36,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.doNotExtendLoas),t.xp6(1),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.gracePeriodEnabled)("modelValue",s.currentConfiguration.gracePeriodEnabled)("title",t.lcZ(40,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),t.xp6(4),t.s9C("pattern",s.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(44,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),t.Q6J("ngModel",s.currentConfiguration.gracePeriod),t.xp6(4),t.Oqu(t.lcZ(48,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.gracePeriodUnit),t.xp6(1),t.Q6J("ngForOf",s.amountOptions),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.specialLoaPeriodEnabled)("modelValue",s.currentConfiguration.specialLoaPeriodEnabled)("title",t.lcZ(52,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),t.xp6(6),t.Oqu(t.lcZ(58,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.specialLoa),t.xp6(2),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngIf",null!==s.currentConfiguration.specialLoa),t.xp6(1),t.s9C("matTooltip",t.lcZ(64,70,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),t.Q6J("matTooltipDisabled",s.expirationAttribute.writable)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",!s.areChangesMade()||!s.expirationAttribute.writable),t.xp6(1),t.hij(" ",t.lcZ(67,72,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}let Nt=(()=>{class i{constructor(){this.saveAttribute=new t.vpe,this.loas=[0,1,2],this.datePattern="^(3[01]|[12][0-9]|0?[1-9])\\.(1[012]|0?[1-9])\\.$",this.dynamicAmountPattern="^[1-9]+$",this.amountOptions=[{value:"d",text:"Days"},{value:"m",text:"Months"},{value:"y",text:"Years"}]}ngOnInit(){const e=new Map;this.loas.forEach(o=>e.set(o,"")),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}ngOnChanges(e){e.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}saveChanges(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}areChangesMade(){const e=this.parseAttributeValueFromConfig(this.currentConfiguration),o=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===o?null!==e:null===e||e.period!==o.period||e.gracePeriod!==o.gracePeriod||e.doNotExtendLoa!==o.doNotExtendLoa||e.doNotAllowLoa!==o.doNotAllowLoa||e.periodLoa!==o.periodLoa}parseExpirationRulesAttribute(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}parsePeriod(e){switch(e.periodType){case"dynamic":return this.parseDynamicPeriod(e);case"static":return this.parseStaticPeriod(e)}}createInitConfiguration(){const e=new Map;return this.loas.forEach(o=>e.set(o,"")),{enabled:!1,periodType:null,periodStatic:"",periodDynamic:"",periodDynamicUnit:"m",doNotAllowLoas:[],doNotAllowLoasEnabled:!1,doNotExtendLoas:[],doNotExtendLoasEnabled:!1,gracePeriodEnabled:!1,gracePeriod:null,gracePeriodUnit:null,specialLoaPeriodEnabled:!1,specialLoaPeriod:"",specialLoa:null,specialLoaPeriodType:null,specialLoaPeriodDynamic:"",specialLoaPeriodDynamicUnit:"m",specialLoaPeriodStatic:"",specialLoaPeriodExtendExpiredMembers:!1}}unParseAttrValue(e){let o=this.createInitConfiguration();return null==e||(void 0!==e.period&&e.period.length>0&&(o=this.setPeriodValues(e,o)),void 0!==e.doNotAllowLoa&&e.doNotAllowLoa.length>0&&(o=this.setDoNotAllowLoasValues(e,o)),void 0!==e.doNotExtendLoa&&e.doNotExtendLoa.length>0&&(o=this.setDoNotExtendLoasValues(e,o)),void 0!==e.gracePeriod&&e.gracePeriod.length>0&&(o=this.setGracePeriodValues(e,o)),void 0!==e.periodLoa&&e.periodLoa.length>0&&(o=this.setSpecialLoaPeriodValues(e,o))),o}setPeriodValues(e,o){if(o.enabled=!0,e.period.startsWith("+")){o.periodType="dynamic";const n=e.period.charAt(e.period.length-1);o.periodDynamic=e.period.substring(1,e.period.length-1),o.periodDynamicUnit=n}else o.periodType="static",o.periodStatic=e.period;return o}setDoNotAllowLoasValues(e,o){const n=[];return e.doNotAllowLoa.split(",").forEach(s=>n.push(parseInt(s.trim(),10))),o.doNotAllowLoas=n,n.length>0&&(o.doNotAllowLoasEnabled=!0),o}setDoNotExtendLoasValues(e,o){const n=[];return e.doNotExtendLoa.split(",").forEach(s=>n.push(parseInt(s.trim(),10))),o.doNotExtendLoas=n,n.length>0&&(o.doNotExtendLoasEnabled=!0),o}setGracePeriodValues(e,o){o.gracePeriodEnabled=!0;const n=e.gracePeriod.charAt(e.gracePeriod.length-1);return o.gracePeriod=e.gracePeriod.substring(0,e.gracePeriod.length-1),o.gracePeriodUnit=n,o}setSpecialLoaPeriodValues(e,o){o.specialLoa=parseInt(e.periodLoa.substring(0,e.periodLoa.indexOf("|")),10),o.specialLoaPeriodEnabled=!0;let n=e.periodLoa.substring(e.periodLoa.indexOf("|")+1,e.periodLoa.length);if(n.startsWith("+")){n.endsWith(".")&&(o.specialLoaPeriodExtendExpiredMembers=!0,n=n.substring(0,n.length-1)),o.specialLoaPeriodType="dynamic";const s=n.charAt(n.length-1);o.specialLoaPeriodDynamic=n.substring(1,n.length-1),o.specialLoaPeriodDynamicUnit=s}else n.endsWith("..")&&(o.specialLoaPeriodExtendExpiredMembers=!0,n=n.substring(0,n.length-1)),o.specialLoaPeriodType="static",o.specialLoaPeriodStatic=n;return o}parseDynamicPeriod(e){return"+"+e.periodDynamic+e.periodDynamicUnit}parseStaticPeriod(e){return e.periodStatic}parseDontAllowLoas(e){if(!e.doNotAllowLoasEnabled)return null;let o="";return e.doNotAllowLoas.forEach(n=>o+=n.toString()+","),o.length>0&&(o=o.substring(0,o.length-1)),o.length>0?o:null}parseDontExtendLoas(e){if(!e.doNotExtendLoasEnabled)return null;let o="";return e.doNotExtendLoas.forEach(n=>o+=n.toString()+","),o.length>0&&(o=o.substring(0,o.length-1)),o.length>0?o:null}parseGracePeriod(e){return e.gracePeriodEnabled?e.gracePeriod+e.gracePeriodUnit:null}parseSpecialLoaPeriod(e){if(!e.specialLoaPeriodEnabled||!e.specialLoa)return null;let o=e.specialLoa.toString()+"|";switch(e.specialLoaPeriodType){case"static":o+=this.parseSpecialLoaPeriodStatic(e);break;case"dynamic":o+=this.parseSpecialLoaPeriodDynamic(e)}return null!=o&&e.specialLoaPeriodExtendExpiredMembers&&(o+="."),o}parseSpecialLoaPeriodStatic(e){return e.specialLoaPeriodStatic}parseSpecialLoaPeriodDynamic(e){return"+"+e.specialLoaPeriodDynamic+e.specialLoaPeriodDynamicUnit}parseAttributeValueFromConfig(e){if(!e.enabled)return null;const o=this.parsePeriod(e),n=this.parseDontAllowLoas(e),s=this.parseDontExtendLoas(e),r=this.parseGracePeriod(e),d=this.parseSpecialLoaPeriod(e),f={period:o};return null!==s&&(f.doNotExtendLoa=s),null!==n&&(f.doNotAllowLoa=n),null!==r&&(f.gracePeriod=r),null!==d&&(f.periodLoa=d),f}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[t.TTD],decls:1,vars:1,consts:[["class","card settings-card col-12 col-md-12 col-xl-6",4,"ngIf"],[1,"card","settings-card","col-12","col-md-12","col-xl-6"],[1,"d-flex","flex-row","align-items-baseline","justify-content-between"],[1,"settings-header",3,"click"],["color","primary",1,"ml-4",3,"ngModel","ngModelChange"],["mainToggle",""],[1,"setting-item","pt-2"],[1,"ml-1"],[3,"ngModel","ngModelChange"],["color","primary","value","static",1,"mr-3"],["staticPeriod",""],["color","primary","value","dynamic"],["dynamicPeriod",""],["class","form-container",4,"ngIf"],["class","d-flex flex-row",4,"ngIf"],["ngDefaultControl","",3,"ngModel","modelValue","title","ngModelChange"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],[1,"mr-2","amount-field"],["matInput","",3,"pattern","ngModel","placeholder","ngModelChange"],["specialLoaSelect",""],["class","mt-2",4,"ngIf"],[1,"ml-auto",3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","primary","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],["matInput","",3,"ngModel","pattern","placeholder","ngModelChange"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&t.YNc(0,wi,68,74,"div",0),2&e&&t.Q6J("ngIf",o.currentConfiguration)},dependencies:[_.sg,_.O5,$.ey,N.KE,N.bx,N.hX,N.UY,y.Nt,A.Fj,A.JJ,A.c5,A.On,I.lW,H.oG,X.gD,x.gM,ot.Rr,xt.VQ,xt.U0,vi,m.X$],styles:[".period-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:1.5rem}.amount-field[_ngcontent-%COMP%]{width:80px}.date-field[_ngcontent-%COMP%]{width:100%}.settings-header[_ngcontent-%COMP%]{margin-top:.75rem;margin-bottom:.75rem;font-size:1.25rem;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.settings-card[_ngcontent-%COMP%]{padding:.5rem 1.5rem}"],data:{animation:[M.BQ]}}),i})();function Gi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.saveExpirationAttribute(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let Ui=(()=>{class i{constructor(e,o,n,s,r){this.attributesManager=e,this.translate=o,this.notificator=n,this.apiRequest=s,this.entityStorageService=r,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(d=>this.successMessage=d),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(d=>this.errorMessage=d)}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.vo.id,attribute:e}).subscribe({next:()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},error:o=>{this.notificator.showRPCError(o,this.errorMessage)}})}loadSettings(){this.attributesManager.getVoAttributeByName(this.vo.id,S.r.VO_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(m.sK),t.Y36(p.V6),t.Y36(p.F5),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(e,o){1&e&&t.YNc(0,Gi,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},dependencies:[_.O5,Nt],data:{animation:[M.BQ]}}),i})();var Pi=l(55857),Ot=l(28361);let yi=(()=>{class i{constructor(e,o,n,s){this.dialog=e,this.voService=o,this.guiAuthResolver=n,this.entityStorageService=s,this.availableRoles=[],this.type="Vo",this.theme="vo-theme"}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.YF),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(e,o){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",o.vo)("availableRoles",o.availableRoles)("complementaryObjectType",o.type)("theme",o.theme)},dependencies:[Ot.s]}),i})();function Vi(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Fi(i,a){1&i&&(t.TgZ(0,"mat-option",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APPROVABLE_GROUP_APP_USER")))}function Yi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"textarea",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.reason=n)}),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),t.xp6(3),t.Q6J("ngModel",e.reason)}}function Ji(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"mat-select",9),t.NdJ("valueChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.mailType=n)}),t.TgZ(5,"mat-option",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,Fi,3,3,"mat-option",11),t.TgZ(9,"mat-option",12),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-option",13),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-option",14),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",15),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"mat-option",16),t._uU(22),t.ALo(23,"translate"),t.qZA()()(),t.YNc(24,Yi,5,4,"div",17),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,10,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),t.xp6(3),t.Q6J("value",e.mailType),t.xp6(2),t.Oqu(t.lcZ(7,12,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.Oqu(t.lcZ(11,14,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),t.xp6(3),t.Oqu(t.lcZ(14,16,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),t.xp6(3),t.Oqu(t.lcZ(17,18,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),t.xp6(3),t.Oqu(t.lcZ(20,20,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),t.xp6(3),t.Oqu(t.lcZ(23,22,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),t.xp6(2),t.Q6J("ngIf","APP_REJECTED_USER"===e.mailType)}}let qi=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.translate=n,this.notificator=s,this.registrarManager=r,this.mailType="APP_CREATED_USER",this.reason="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"APP_REJECTED_USER"===this.mailType?this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType,reason:this.reason}).subscribe(()=>{this.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1):this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType}).subscribe(()=>{this.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(m.sK),t.Y36(p.V6),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-re-send-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["disableOptionCentering","",3,"value","valueChange"],["value","APP_CREATED_USER"],["value","APPROVABLE_GROUP_APP_USER",4,"ngIf"],["value","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],[4,"ngIf"],["value","APPROVABLE_GROUP_APP_USER"],["matInput","",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Vi,1,0,"mat-spinner",1),t.YNc(5,Ji,25,24,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Gre("",o.theme,"}"),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},dependencies:[_.O5,$.ey,N.KE,y.Nt,A.Fj,A.JJ,A.On,I.lW,u.uh,u.xY,u.H8,X.gD,T.Ou,m.X$]}),i})();function ki(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Qi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"textarea",9),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.reason=n)}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),t.xp6(3),t.Q6J("ngModel",e.reason)}}let Bi=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.translate=n,this.notificator=s,this.registrarManager=r,this.reason="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.registrarManager.rejectApplication(this.data.applicationId,this.reason).subscribe(()=>{this.translate.get("DIALOGS.REJECT_APPLICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(m.sK),t.Y36(p.V6),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-reject-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ki,1,0,"mat-spinner",1),t.YNc(5,Qi,5,4,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},dependencies:[_.O5,N.KE,y.Nt,A.Fj,A.JJ,A.On,I.lW,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();function Hi(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function ji(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function zi(i,a){if(1&i&&(t.TgZ(0,"mat-form-field")(1,"label"),t._UZ(2,"input",9),t.qZA(),t.YNc(3,ji,3,3,"mat-error",8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Q6J("formControl",e.emailControl),t.xp6(1),t.Q6J("ngIf",e.emailControl.invalid)}}function $i(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function Xi(i,a){if(1&i&&(t.TgZ(0,"mat-form-field"),t._UZ(1,"input",10),t.YNc(2,$i,3,3,"mat-error",8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("formControl",e.inputControl),t.xp6(1),t.Q6J("ngIf",e.inputControl.invalid)}}function Ki(i,a){if(1&i&&(t.TgZ(0,"div",7),t.YNc(1,zi,4,2,"mat-form-field",8),t.YNc(2,Xi,3,2,"mat-form-field",8),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!==e.emailControl),t.xp6(1),t.Q6J("ngIf",null!==e.inputControl)}}let Wi=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.notificator=n,this.translateService=s,this.registrarService=r,this.loading=!1,this.inputControl=null,this.emailControl=null}static getLabel(e){return null!==e.i18n.en.label&&0!==e.i18n.en.label.length?e.i18n.en.label:e.shortname}ngOnInit(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=i.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new A.p4(this.formItemData.value,[A.kI.required,A.kI.email]):this.inputControl=new A.p4(this.formItemData.value,[A.kI.required])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.formItemData.value=null!==this.inputControl?this.inputControl.value:this.emailControl.value,this.registrarService.updateFormItemData({appId:this.data.applicationId,data:{id:this.formItemData.id,formItem:this.formItemData.formItem,shortname:this.formItemData.shortname,value:this.formItemData.value,assuranceLevel:this.formItemData.assuranceLevel,prefilledValue:this.formItemData.prefilledValue}}).subscribe(()=>{this.notificator.showSuccess(this.translateService.instant("DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(p.V6),t.Y36(m.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-application-form-item-data-dialog"]],decls:13,vars:16,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl"],["matInput","","required","","type","text",3,"formControl"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Hi,1,0,"mat-spinner",1),t.YNc(5,Ki,3,2,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.AsE(" ",t.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",o.itemName," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading||null!==o.inputControl&&o.inputControl.invalid||null!==o.emailControl&&o.emailControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},dependencies:[_.O5,N.TO,N.KE,y.Nt,A.Fj,A.JJ,A.Q7,A.oH,I.lW,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();var nt=l(44850),to=l(43157);function eo(i,a){if(1&i&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.hij(" #",e.application.id," ")}}function io(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function oo(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.verifyApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function no(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.approveApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function ao(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.rejectApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function so(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.deleteApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function ro(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.resendNotification())}),t.TgZ(1,"i",19),t._uU(2," mail_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function lo(i,a){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function co(i,a){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.TgZ(5,"span",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t._uU(8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),t.xp6(2),t.hij(": ",e.application.group.name," "),t.xp6(2),t.Oqu(t.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function po(i,a){1&i&&(t.TgZ(0,"span")(1,"mat-icon",20),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3," Initial "),t.qZA())}function uo(i,a){1&i&&(t.TgZ(0,"span")(1,"mat-icon",20),t._uU(2,"restore"),t.qZA(),t._uU(3," Extension "),t.qZA())}function _o(i,a){1&i&&(t.TgZ(0,"span")(1,"mat-icon",20),t._uU(2,"nat"),t.qZA(),t._uU(3," Embedded "),t.qZA())}function mo(i,a){if(1&i&&(t.TgZ(0,"div",21)(1,"mat-card-title")(2,"i",22),t._uU(3,"clear"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div")(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function go(i,a){if(1&i&&(t.TgZ(0,"div",21)(1,"mat-card-title")(2,"i",23),t._uU(3,"done"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div")(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function ho(i,a){if(1&i&&(t.TgZ(0,"div",21)(1,"h5",10)(2,"i",24),t._uU(3,"warning"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div"),t._uU(7),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.hij(" ",t.lcZ(5,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.AUTO_APPROVE_FAILURE"),": "),t.xp6(3),t.Oqu(e.application.autoApproveError)}}function fo(i,a){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),t.xp6(2),t.hij(": ",e.userMail," ")}}function Ao(i,a){1&i&&t._UZ(0,"th",33)}function To(i,a){if(1&i&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",o.getLabel(e.formItem)," ")}}function Io(i,a){1&i&&t._UZ(0,"th",33)}function bo(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",37),t.NdJ("click",function(){t.CHM(e);const n=t.oxw().$implicit,s=t.oxw(3);return t.KtG(s.editApplicationData(n))}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function vo(i,a){if(1&i&&(t.TgZ(0,"td",35),t._uU(1),t.YNc(2,bo,3,0,"button",36),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",e.value," "),t.xp6(1),t.Q6J("ngIf",("NEW"===o.application.state||"VERIFIED"===o.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==e.formItem.type)}}function Eo(i,a){1&i&&t._UZ(0,"tr",38)}function Co(i,a){1&i&&t._UZ(0,"tr",39)}function So(i,a){if(1&i&&(t.TgZ(0,"table",25),t.ynx(1,26),t.YNc(2,Ao,1,0,"th",27),t.YNc(3,To,2,1,"td",28),t.BQk(),t.ynx(4,29),t.YNc(5,Io,1,0,"th",27),t.YNc(6,vo,3,2,"td",30),t.BQk(),t.YNc(7,Eo,1,0,"tr",31),t.YNc(8,Co,1,0,"tr",32),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("dataSource",e.dataSource),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function xo(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,oo,3,3,"button",7),t.YNc(2,no,3,3,"button",7),t.YNc(3,ao,3,3,"button",8),t.YNc(4,so,3,3,"button",8),t.YNc(5,ro,5,3,"button",9),t.YNc(6,lo,5,4,"div",4),t.YNc(7,co,9,8,"div",4),t.TgZ(8,"div")(9,"span",10),t._uU(10),t.ALo(11,"translate"),t.qZA(),t._uU(12,": "),t._UZ(13,"span",11),t.ALo(14,"applicationState"),t.qZA(),t.TgZ(15,"div")(16,"span",10),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,": "),t.YNc(20,po,4,0,"span",4),t.YNc(21,uo,4,0,"span",4),t.YNc(22,_o,4,0,"span",4),t.qZA(),t.YNc(23,mo,12,11,"div",12),t.YNc(24,go,12,11,"div",12),t.YNc(25,ho,8,4,"div",12),t.TgZ(26,"div",13)(27,"mat-card-title")(28,"i",14),t._uU(29,"redo"),t.qZA(),t._uU(30),t.ALo(31,"translate"),t.ALo(32,"userFullName"),t.qZA(),t.YNc(33,fo,5,4,"div",4),t.TgZ(34,"div")(35,"span",10),t.ALo(36,"lowercase"),t._uU(37),t.ALo(38,"translate"),t.qZA(),t._uU(39),t.qZA(),t.TgZ(40,"div")(41,"span",10),t._uU(42),t.ALo(43,"translate"),t.qZA(),t._uU(44),t.qZA(),t.TgZ(45,"div")(46,"span",10),t._uU(47),t.ALo(48,"translate"),t.qZA(),t._uU(49),t.ALo(50,"date"),t.qZA(),t.YNc(51,So,9,3,"table",15),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf","NEW"===e.application.state&&e.verifyAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.approveAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.rejectAuth),t.xp6(1),t.Q6J("ngIf",("REJECTED"===e.application.state||"NEW"===e.application.state)&&e.deleteAuth),t.xp6(1),t.Q6J("ngIf",e.resendAuth),t.xp6(1),t.Q6J("ngIf",!e.application.group),t.xp6(1),t.Q6J("ngIf",e.application.group),t.xp6(3),t.Oqu(t.lcZ(11,27,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),t.xp6(3),t.Q6J("outerHTML",t.lcZ(14,29,e.application.state),t.oJD),t.xp6(4),t.Oqu(t.lcZ(18,31,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),t.xp6(3),t.Q6J("ngIf","INITIAL"===e.application.type),t.xp6(1),t.Q6J("ngIf","EXTENSION"===e.application.type),t.xp6(1),t.Q6J("ngIf","EMBEDDED"===e.application.type),t.xp6(1),t.Q6J("ngIf","REJECTED"===e.application.state),t.xp6(1),t.Q6J("ngIf","APPROVED"===e.application.state),t.xp6(1),t.Q6J("ngIf","APPROVED"!==e.application.state&&"REJECTED"!==e.application.state&&e.application.autoApproveError),t.xp6(5),t.AsE(" ",t.lcZ(31,33,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===e.application.user?e.submittedBy():t.lcZ(32,35,e.application.user),""),t.xp6(3),t.Q6J("ngIf",e.userMail),t.xp6(2),t.Q2q("data-cy","",t.lcZ(36,37,e.application.extSourceName),"-application-extsource"),t.xp6(2),t.Oqu(t.lcZ(38,39,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),t.xp6(2),t.hij(": ",e.application.extSourceName," "),t.xp6(3),t.Oqu(t.lcZ(43,41,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),t.xp6(2),t.hij(": ",e.application.extSourceLoa," "),t.xp6(3),t.Oqu(t.lcZ(48,43,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(50,45,e.application.createdAt,"d.M.y H:mm:ss")," "),t.xp6(2),t.Q6J("ngIf",0!==e.userData.length)}}let at=(()=>{class i{constructor(e,o,n,s,r,d,f,v){this.registrarManager=e,this.dialog=o,this.translate=n,this.route=s,this.notificator=r,this.router=d,this.authResolver=f,this.usersService=v,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.route.parent.params.subscribe(o=>{this.dialogTheme=o.groupId?"group-theme":o.memberId?"member-theme":"vo-theme";const n=Number(e.applicationId);this.registrarManager.getApplicationById(n).subscribe(s=>{this.application=s,"EMBEDDED"===this.application.type&&this.application.user?this.usersService.getRichUserWithAttributes(this.application.user.id).subscribe(r=>{const d=r.userAttributes.find(f=>"preferredMail"===f.friendlyName);this.userMail=d?.value,this.setAuthRights(),this.loading=!1}):this.registrarManager.getApplicationDataById(this.application.id).subscribe(r=>{this.userData=r,this.dataSource=new c.by(this.userData),this.setAuthRights(),this.loading=!1})})})})}setAuthRights(){"group-theme"===this.dialogTheme?(this.verifyAuth=this.authResolver.isAuthorized("group-verifyApplication_int_policy",[this.application.group]),this.approveAuth=this.authResolver.isAuthorized("group-approveApplicationInternal_int_policy",[this.application.group]),this.rejectAuth=this.authResolver.isAuthorized("group-rejectApplication_int_String_policy",[this.application.group]),this.deleteAuth=this.authResolver.isAuthorized("group-deleteApplication_Application_policy",[this.application.group]),this.resendAuth=this.authResolver.isAuthorized("group-sendMessage_Application_MailType_String_policy",[this.application.group])):(this.verifyAuth=this.authResolver.isAuthorized("vo-verifyApplication_int_policy",[this.application.vo]),this.approveAuth=this.authResolver.isAuthorized("vo-approveApplicationInternal_int_policy",[this.application.vo]),this.rejectAuth=this.authResolver.isAuthorized("vo-rejectApplication_int_String_policy",[this.application.vo]),this.deleteAuth=this.authResolver.isAuthorized("vo-deleteApplication_Application_policy",[this.application.vo]),this.resendAuth=this.authResolver.isAuthorized("vo-sendMessage_Application_MailType_String_policy",[this.application.vo]))}getLabel(e){return null!==e.i18n.en.label&&0!==e.i18n.en.label.length?e.i18n.en.label:e.shortname}submittedBy(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}getModifiedAtName(e){const o=e.lastIndexOf("/CN=");if(-1!==o){const n=e.slice(o+4,e.length).replace("/unstructuredName="," ");return-1!==n.lastIndexOf("\\")?e.slice(e.lastIndexOf("=")+1,e.length):n}return e}resendNotification(){const e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme,groupId:this.application.group?.id},this.dialog.open(qi,e)}deleteApplication(){const e=(0,g.kZ)();e.width="450px",e.data={items:[this.application.id],title:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_TITLE",description:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(n=>{n&&this.registrarManager.deleteApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(s=>{this.notificator.showSuccess(s),this.router.navigateByUrl(this.router.url.substring(0,this.router.url.lastIndexOf("/")))})})})}rejectApplication(){const e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(Bi,e).afterClosed().subscribe(()=>{this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(n=>{this.application=n,this.loading=!1},()=>this.loading=!1)})}approveApplication(){this.loading=!0,this.registrarManager.approveApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e)}),this.registrarManager.getApplicationById(this.application.id).subscribe(e=>{this.application=e,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}verifyApplication(){this.registrarManager.verifyApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e)}),this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe({next:e=>{this.application=e,this.loading=!1},error:()=>this.loading=!1})})}editApplicationData(e){const o=(0,g.kZ)();o.width="600px",o.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:e},this.dialog.open(Wi,o)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(u.uw),t.Y36(m.sK),t.Y36(b.gz),t.Y36(p.V6),t.Y36(b.F0),t.Y36(p.x4),t.Y36(h.Fv))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:7,vars:6,consts:[[1,"page-subtitle"],["class","text-muted",4,"ngIf"],[1,"mb-4"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"text-muted"],[1,"ml-auto","mr-auto"],["color","accent","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mb-2","mat-stroked-button","",3,"click",4,"ngIf"],[1,"font-weight-bold"],[3,"outerHTML"],["class","card p-3 mt-2",4,"ngIf"],[1,"card","p-4","mt-2"],[1,"material-icons","align-text-top"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"click"],["mat-stroked-button","",1,"mr-2","mb-2",3,"click"],[1,"material-icons"],[1,"align-bottom"],[1,"card","p-3","mt-2"],[1,"material-icons","red","align-text-top"],[1,"material-icons","green","align-text-top"],[1,"material-icons","orange"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","label"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["class","h-50","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["aria-label","Edit Application data","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Edit Application data","mat-icon-button","",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"h2",0),t._uU(1),t.ALo(2,"translate"),t.YNc(3,eo,2,1,"span",1),t.qZA(),t._UZ(4,"mat-divider",2),t.YNc(5,io,1,0,"mat-spinner",3),t.YNc(6,xo,52,48,"div",4)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),t.xp6(2),t.Q6J("ngIf",!!o.application),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,P.Hw,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,I.lW,T.Ou,nt.d,U.n5,_.i8,_.uU,m.X$,to.h,B.d]}),i})();var No=l(13600),Oo=l(37240);let Zo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[M.Ji]}}),i})();var O=l(3848),Zt=l(48323);function Do(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function Mo(i,a){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.group.id)("entity","group")}}function Lo(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",t.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function Ro(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","group")("firstEntityId",e.group.id)("secondEntity","member")}}function wo(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Lo,3,6,"ng-template",1),t.YNc(2,Ro,1,3,"ng-template",2),t.qZA())}function Go(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",t.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Uo(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","group")("firstEntityId",e.group.id)("secondEntity","resource")}}function Po(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Go,3,6,"ng-template",1),t.YNc(2,Uo,1,3,"ng-template",2),t.qZA())}let yo=(()=>{class i{constructor(e,o){this.authResolver=e,this.entityStorageService=o}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.groupResourceAttAuth=this.authResolver.isAuthorized("getResourceAssignments_Group_policy",[this.group]),this.groupMemberAttAuth=this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_List_List_boolean_policy",[this.group])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,Do,2,3,"ng-template",1),t.YNc(7,Mo,1,2,"ng-template",2),t.qZA(),t.YNc(8,wo,3,0,"mat-tab",3),t.YNc(9,Po,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.groupMemberAttAuth),t.xp6(1),t.Q6J("ngIf",o.groupResourceAttAuth))},dependencies:[_.O5,O.SP,O.uD,O.uX,O.Vc,Zt.Y,it.t,m.X$]}),i})();function Vo(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Fo(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let Yo=(()=>{class i{constructor(e,o,n,s,r,d,f,v,D){this.sideMenuService=e,this.groupService=o,this.router=n,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=d,this.notificator=f,this.entityStorageService=v,this.routePolicyService=D,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/expiration`,label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},e=>{"PrivilegeException"!==e.name&&this.notificator.showRPCError(e)}),this.routePolicyService.canNavigate("groups-settings-managers",this.group)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/managers`,label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),"members"!==this.group.name&&this.routePolicyService.canNavigate("groups-settings-applicationForm",this.group)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/applicationForm`,label:"MENU_ITEMS.GROUP.APPLICATION_FORM",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-notifications",this.group)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/notifications`,label:"MENU_ITEMS.GROUP.NOTIFICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-relations",this.group)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/relations`,label:"MENU_ITEMS.GROUP.RELATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-extsources",this.group)&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/extsources`,label:"MENU_ITEMS.GROUP.EXTSOURCES",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(F.D),t.Y36(h.ff),t.Y36(b.F0),t.Y36(p.x4),t.Y36(p.F5),t.Y36(h.H8),t.Y36(p.V6),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,Vo,1,0,"mat-spinner",0),t.YNc(1,Fo,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,T.Ou,J.L]}),i})();var Jo=l(10369),qo=l(21963),ko=l(28820),Qo=l(30076);function Bo(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Ho(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.switchToInitial())}),t.TgZ(1,"i",11),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function jo(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.switchToExtension())}),t.TgZ(1,"i",11),t._uU(2,"cached"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function zo(i,a){if(1&i&&(t.TgZ(0,"mat-option",12),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function $o(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Xo(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Ko(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",19),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,$o,2,1,"mat-icon",21),t.YNc(8,Xo,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Wo(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function tn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function en(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",24)(6,"br")(7,"input",19),t.qZA()(),t.TgZ(8,"div",20),t.YNc(9,Wo,2,1,"mat-icon",21),t.YNc(10,tn,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function on(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",26),t._uU(2),t._UZ(3,"br"),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e,"")}}function nn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function an(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function sn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"form",18),t.YNc(5,on,4,2,"div",9),t._UZ(6,"input",25),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"div",20),t.YNc(9,nn,2,1,"mat-icon",21),t.YNc(10,an,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.s9C("value",t.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function rn(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"span",27),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("innerHTML",o.getLocalizedLabel(e),t.oJD)}}function ln(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"span",27),t.ALo(2,"sanitizeHtml"),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,o.getLocalizedLabel(e)),t.oJD)}}function cn(i,a){if(1&i&&(t.TgZ(0,"option"),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e," ")}}function pn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function un(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function dn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",28),t.YNc(6,cn,2,1,"option",9),t.qZA()()(),t.TgZ(7,"div",20),t.YNc(8,pn,2,1,"mat-icon",21),t.YNc(9,un,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function _n(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function mn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function gn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t._UZ(4,"textarea",29),t.qZA(),t.TgZ(5,"div",20),t.YNc(6,_n,2,1,"mat-icon",21),t.YNc(7,mn,2,1,"mat-icon",21),t.TgZ(8,"span",22),t._uU(9),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function hn(i,a){if(1&i&&(t.TgZ(0,"option",34),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e," ")}}function fn(i,a){1&i&&(t.TgZ(0,"div",35)(1,"form"),t._UZ(2,"input",36),t.qZA()())}function An(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Tn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function In(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",30),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2).$implicit,r=t.oxw(2);return t.KtG(r.mapForCombobox[s.id]=n)}),t.TgZ(6,"option",31),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,hn,2,1,"option",32),t.qZA(),t.YNc(10,fn,3,0,"div",33),t.qZA()(),t.TgZ(11,"div",20),t.YNc(12,An,2,1,"mat-icon",21),t.YNc(13,Tn,2,1,"mat-icon",21),t.TgZ(14,"span",22),t._uU(15),t.qZA()()()}if(2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngModel",o.mapForCombobox[e.id])("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.Q6J("ngIf","true"===o.mapForCombobox[e.id]),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function bn(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",37),t._uU(2),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e," ")}}function vn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function En(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Cn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"form",35),t.YNc(6,bn,3,2,"div",9),t.qZA()()(),t.TgZ(7,"div",20),t.YNc(8,vn,2,1,"mat-icon",21),t.YNc(9,En,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Sn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function xn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Nn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"form",35),t._UZ(6,"input",37),t._uU(7," example group1 "),t._UZ(8,"br")(9,"input",37),t._uU(10," example group2 "),t._UZ(11,"br")(12,"input",37),t._uU(13," example group3 "),t.qZA()()(),t.TgZ(14,"div",20),t.YNc(15,Sn,2,1,"mat-icon",21),t.YNc(16,xn,2,1,"mat-icon",21),t.TgZ(17,"span",22),t._uU(18),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function On(i,a){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Zn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Dn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,On,2,1,"mat-icon",39),t.YNc(4,Zn,2,1,"mat-icon",39),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.hij(" ",o.getLocalizedLabel(e)," "),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden)}}function Mn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Ln(i,a){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Rn(i,a){if(1&i&&(t.TgZ(0,"div")(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,Mn,2,1,"mat-icon",39),t.YNc(4,Ln,2,1,"mat-icon",39),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.hij(" ",o.getLocalizedLabel(e)," "),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden)}}function wn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Gn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Un(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",41)(6,"option",42),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"option",43),t._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),t.qZA(),t.TgZ(11,"option",44),t._uU(12,"(GMT -11:00) Midway Island, Samoa"),t.qZA(),t.TgZ(13,"option",45),t._uU(14,"(GMT -10:00) Hawaii"),t.qZA(),t.TgZ(15,"option",46),t._uU(16,"(GMT -9:30) Taiohae"),t.qZA(),t.TgZ(17,"option",47),t._uU(18,"(GMT -9:00) Alaska"),t.qZA(),t.TgZ(19,"option",48),t._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),t.qZA(),t.TgZ(21,"option",49),t._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),t.qZA(),t.TgZ(23,"option",50),t._uU(24," (GMT -6:00) Central Time (US & Canada), Mexico City "),t.qZA(),t.TgZ(25,"option",51),t._uU(26," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),t.qZA(),t.TgZ(27,"option",52),t._uU(28,"(GMT -4:30) Caracas"),t.qZA(),t.TgZ(29,"option",53),t._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),t.qZA(),t.TgZ(31,"option",54),t._uU(32,"(GMT -3:30) Newfoundland"),t.qZA(),t.TgZ(33,"option",55),t._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),t.qZA(),t.TgZ(35,"option",56),t._uU(36,"(GMT -2:00) Mid-Atlantic"),t.qZA(),t.TgZ(37,"option",57),t._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),t.qZA(),t.TgZ(39,"option",58),t._uU(40," (GMT) Western Europe Time, London, Lisbon, Casablanca "),t.qZA(),t.TgZ(41,"option",59),t._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),t.qZA(),t.TgZ(43,"option",60),t._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),t.qZA(),t.TgZ(45,"option",61),t._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),t.qZA(),t.TgZ(47,"option",62),t._uU(48,"(GMT +3:30) Tehran"),t.qZA(),t.TgZ(49,"option",63),t._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),t.qZA(),t.TgZ(51,"option",64),t._uU(52,"(GMT +4:30) Kabul"),t.qZA(),t.TgZ(53,"option",65),t._uU(54," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),t.qZA(),t.TgZ(55,"option",66),t._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),t.qZA(),t.TgZ(57,"option",67),t._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),t.qZA(),t.TgZ(59,"option",68),t._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),t.qZA(),t.TgZ(61,"option",69),t._uU(62,"(GMT +6:30) Yangon, Mandalay"),t.qZA(),t.TgZ(63,"option",70),t._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),t.qZA(),t.TgZ(65,"option",71),t._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),t.qZA(),t.TgZ(67,"option",72),t._uU(68,"(GMT +8:45) Eucla"),t.qZA(),t.TgZ(69,"option",73),t._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),t.qZA(),t.TgZ(71,"option",74),t._uU(72,"(GMT +9:30) Adelaide, Darwin"),t.qZA(),t.TgZ(73,"option",75),t._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),t.qZA(),t.TgZ(75,"option",76),t._uU(76,"(GMT +10:30) Lord Howe Island"),t.qZA(),t.TgZ(77,"option",77),t._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),t.qZA(),t.TgZ(79,"option",78),t._uU(80,"(GMT +11:30) Norfolk Island"),t.qZA(),t.TgZ(81,"option",79),t._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),t.qZA(),t.TgZ(83,"option",80),t._uU(84,"(GMT +12:45) Chatham Islands"),t.qZA(),t.TgZ(85,"option",81),t._uU(86,"(GMT +13:00) Apia, Nukualofa"),t.qZA(),t.TgZ(87,"option",82),t._uU(88,"(GMT +14:00) Line Islands, Tokelau"),t.qZA()()()(),t.TgZ(89,"div",20),t.YNc(90,wn,2,1,"mat-icon",21),t.YNc(91,Gn,2,1,"mat-icon",21),t.TgZ(92,"span",22),t._uU(93),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),t.xp6(83),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Pn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function yn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}const Vn=function(){return["Example 1","Example 2"]},Dt=function(i){return{id:0,beanName:"Attribute",namespace:"",value:i}};function Fn(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-list",83),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,Pn,2,1,"mat-icon",21),t.YNc(8,yn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Dt,t.DdM(5,Vn))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Yn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Jn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}const qn=function(){return{key1:"value 1",key2:"value 2"}};function kn(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-map",83),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,Yn,2,1,"mat-icon",21),t.YNc(8,Jn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Dt,t.DdM(5,qn))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Qn(i,a){if(1&i&&(t.TgZ(0,"div",14),t.YNc(1,Ko,11,5,"div",15),t.YNc(2,en,13,6,"div",15),t.YNc(3,sn,13,9,"div",15),t.YNc(4,rn,2,1,"div",2),t.YNc(5,ln,3,3,"div",2),t.YNc(6,dn,12,6,"div",15),t.YNc(7,gn,10,5,"div",15),t.YNc(8,In,16,11,"div",15),t.YNc(9,Cn,12,5,"div",15),t.YNc(10,Nn,19,7,"div",15),t.YNc(11,Dn,5,4,"div",15),t.YNc(12,Rn,5,4,"div",2),t.YNc(13,Un,94,8,"div",15),t.YNc(14,Fn,11,8,"div",2),t.YNc(15,kn,11,8,"div",2),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",("TEXTFIELD"===e.type||"VALIDATED_EMAIL"===e.type||"USERNAME"===e.type)&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","PASSWORD"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","RADIO"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","HEADING"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","HTML_COMMENT"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","SELECTIONBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","TEXTAREA"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","COMBOBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","CHECKBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","SUBMIT_BUTTON"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","TIMEZONE"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","LIST_INPUT_BOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","MAP_INPUT_BOX"===e.type&&"ALWAYS"!==e.hidden)}}function Bn(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,Qn,16,15,"div",13),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",o.isValid(e))}}function Hn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",4),t.YNc(2,Ho,5,3,"button",5),t.YNc(3,jo,5,3,"button",5),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",6),t.NdJ("valueChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentLanguage=n)}),t.YNc(9,zo,4,6,"mat-option",7),t.qZA()()(),t.TgZ(10,"div",8),t.YNc(11,Bn,2,1,"div",9),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",!e.initialPage),t.xp6(1),t.Q6J("ngIf",e.initialPage),t.xp6(3),t.Oqu(t.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),t.xp6(2),t.Q6J("value",e.currentLanguage),t.xp6(1),t.Q6J("ngForOf",e.languages),t.xp6(2),t.Q6J("ngForOf",e.applicationFormItems)}}let Mt=(()=>{class i{constructor(e,o,n){this.route=e,this.translate=o,this.store=n,this.loading=!0,this.applicationFormItems=[],this.currentLanguage="en",this.languages=["en"],this.initialPage=!0,this.mapForCombobox=new Map}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.route.queryParamMap.subscribe(e=>{this.applicationFormItems=JSON.parse(e.get("applicationFormItems")),this.loading=!1})}switchToInitial(){this.initialPage=!0}switchToExtension(){this.initialPage=!1}getLocalizedOptions(e){if(e.i18n[this.currentLanguage]){const o=e.i18n[this.currentLanguage].options;if(null!==o&&""!==o){const n=[];for(const s of o.split("|"))n.push(s.split("#")[1]);return n}}return[]}isValid(e){if(e.forDelete)return!1;for(const o of e.applicationTypes)if("INITIAL"===o&&this.initialPage||"EXTENSION"===o&&!this.initialPage)return!0;return!1}disabledTooltip(e){let o,n,s;switch(e.disabled){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED");case"IF_PREFILLED":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),n=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.disabledDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${o} ${n} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),n=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.disabledDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${o} ${n} ${s}`;default:return""}}hiddenTooltip(e){let o,n,s;switch(e.hidden){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN");case"IF_PREFILLED":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),n=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.hiddenDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${o} ${n} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),n=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.hiddenDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${o} ${n} ${s}`;default:return""}}getLocalizedLabel(e){return e.i18n[this.currentLanguage]?.label?e.i18n[this.currentLanguage].label+(e.required?"*":""):e.shortname+(e.required?"*":"")}getLocalizedHint(e){return e.i18n[this.currentLanguage]?e.i18n[this.currentLanguage].help:""}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(m.sK),t.Y36(p.d6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-100","mb-2"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"card","mb-4","p-5"],[4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],[3,"value"],["class","mb-2",4,"ngIf"],[1,"mb-2"],["class","d-flex",4,"ngIf"],[1,"d-flex"],[1,"w-50","d-flex"],[1,"w-50"],["type","text",1,"w-100",3,"disabled"],[1,"w-50","d-flex","left"],["class","pointer",3,"matTooltip",4,"ngIf"],[1,"ml-2"],[1,"pointer",3,"matTooltip"],["type","text",1,"mb-1","w-100",3,"disabled"],["type","reset",3,"disabled","value"],["name","temp","type","radio",3,"disabled"],[3,"innerHTML"],[1,"w-100",3,"disabled"],[1,"w-50",3,"disabled"],[1,"w-100",3,"ngModel","disabled","ngModelChange"],["selected","","value","true"],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],[1,"w-100"],["type","text"],["type","checkbox",3,"disabled"],["color","accent","mat-flat-button","",3,"disabled"],["class","pointer left",3,"matTooltip",4,"ngIf"],[1,"pointer","left",3,"matTooltip"],["id","timezone-offset","name","timezone_offset",1,"w-100",3,"disabled"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Bo,1,0,"mat-spinner",1),t.YNc(4,Hn,12,8,"div",2)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.sg,_.O5,$.ey,N.KE,N.hX,A._Y,A.YN,A.Kr,A.EJ,A.JJ,A.JL,A.On,A.F,P.Hw,I.lW,X.gD,T.Ou,x.gM,qo.H,ko.$,_.gd,m.X$,Qo.A],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function jn(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function zn(i,a){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",5),2&i){const e=t.oxw();t.Q6J("entityId",e.memberId)("entity","member")}}function $n(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",t.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function Xn(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","member")("firstEntityId",e.memberId)("secondEntity","group")}}function Kn(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,$n,3,6,"ng-template",1),t.YNc(2,Xn,1,3,"ng-template",2),t.qZA())}function Wn(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",t.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function ta(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","member")("firstEntityId",e.memberId)("secondEntity","resource")}}function ea(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Wn,3,6,"ng-template",1),t.YNc(2,ta,1,3,"ng-template",2),t.qZA())}function ia(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function oa(i,a){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",5),2&i){const e=t.oxw();t.Q6J("entityId",e.member.userId)("entity","user")}}function na(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",t.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function aa(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","user")("firstEntityId",e.member.userId)("secondEntity","facility")}}function sa(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,na,3,6,"ng-template",1),t.YNc(2,aa,1,3,"ng-template",2),t.qZA())}let ra=(()=>{class i{constructor(e,o,n){this.route=e,this.authResolver=o,this.memberManager=n}ngOnInit(){this.route.parent.params.subscribe(e=>{this.memberId=Number(e.memberId),this.memberManager.getMemberById(this.memberId).subscribe(o=>{this.member=o,this.memberGroupAttAuth=this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.member]),this.memberResourceAttAuth=this.authResolver.isAuthorized("getAssignedResourcesWithStatus_Member_policy",[this.member]),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{beanName:"User",id:o.userId}])})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(p.x4),t.Y36(h.uq))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:14,vars:6,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[1,"mb-2"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,jn,2,3,"ng-template",1),t.YNc(7,zn,1,2,"ng-template",2),t.qZA(),t.YNc(8,Kn,3,0,"mat-tab",3),t.YNc(9,ea,3,0,"mat-tab",3),t.TgZ(10,"mat-tab",4),t.YNc(11,ia,2,3,"ng-template",1),t.YNc(12,oa,1,2,"ng-template",2),t.qZA(),t.YNc(13,sa,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.memberGroupAttAuth),t.xp6(1),t.Q6J("ngIf",o.memberResourceAttAuth),t.xp6(4),t.Q6J("ngIf",o.userFacilityAttAuth))},dependencies:[_.O5,O.SP,O.uD,O.uX,O.Vc,Zt.Y,it.t,m.X$]}),i})(),la=(()=>{class i{constructor(e,o,n,s,r){this.sideMenuService=e,this.voService=o,this.authResolver=n,this.entityStorageService=s,this.routePolicyService=r,this.items=[]}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.initItems()}initItems(){this.routePolicyService.canNavigate("organizations-resources-preview",this.vo)&&this.items.push({cssIcon:"perun-resource",url:`/organizations/${this.vo.id}/resources/preview`,label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources-tags",this.vo)&&this.items.push({cssIcon:"perun-resource-tags",url:`/organizations/${this.vo.id}/resources/tags`,label:"MENU_ITEMS.VO.RESOURCE_TAGS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources-states",this.vo)&&this.items.push({cssIcon:"perun-resources-state",url:`/organizations/${this.vo.id}/resources/states`,label:"MENU_ITEMS.VO.RESOURCE_STATES",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(F.D),t.Y36(h.YF),t.Y36(p.x4),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",o.items)("size","small"))},dependencies:[J.L]}),i})();var ca=l(68056),pa=l(24219),E=l(95017),ua=l(17584);function da(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function _a(i,a){1&i&&t._UZ(0,"th",15)}function ma(i,a){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.tagName)}}function ga(i,a){1&i&&t._UZ(0,"tr",17)}function ha(i,a){1&i&&t._UZ(0,"tr",18)}function fa(i,a){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,_a,1,0,"th",11),t.YNc(10,ma,2,1,"td",12),t.BQk(),t.YNc(11,ga,1,0,"tr",13),t.YNc(12,ha,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Aa=(()=>{class i{constructor(e,o,n){this.dialogRef=e,this.data=o,this.resourceManager=n,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.tagsForDelete)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;for(const e of this.data.tagsForDelete)this.resourceManager.deleteResourceTag({resourceTag:e}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.dialogRef.close(!0))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.xk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-resource-tag-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,da,1,0,"mat-spinner",1),t.YNc(5,fa,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},dependencies:[_.O5,I.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();var C=l(10036),Ta=l(17672),Z=l(96214),L=l(7434);function Ia(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.create())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function ba(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.deleteTag())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function va(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function Ea(i,a){if(1&i&&t._UZ(0,"app-resources-tags-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("entity","vo")("resourceTags",e.resourceTag)("filterValue",e.filterValue)("selection",e.selection)("tableId",e.tableId)}}let Ca=(()=>{class i{constructor(e,o,n,s,r,d){this.resourceManager=e,this.dialog=o,this.notificator=n,this.translator=s,this.authResolver=r,this.entityStorageService=d,this.loading=!1,this.resourceTag=[],this.selection=new E.Ov(!0,[]),this.tableId=C.O7,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}deleteTag(){const e=(0,g.kZ)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(Aa,e).afterClosed().subscribe(n=>{n&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}create(){const e=(0,g.kZ)();e.width="450px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(ua.p,e).afterClosed().subscribe(n=>{n&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.vo.id).subscribe(e=>{this.resourceTag=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(e){this.filterValue=e}setAuthRights(){this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[this.vo]),this.deleteAuth=this.authResolver.isAuthorized("deleteResourceTag_ResourceTag_policy",[this.vo]),this.editAuth=this.authResolver.isAuthorized("updateResourceTag_ResourceTag_policy",[this.vo]),this.displayedColumns=this.deleteAuth?["select","id","name"]:["id","name"],this.editAuth&&this.displayedColumns.push("edit")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.xk),t.Y36(u.uw),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.updateData()}),t.qZA(),t.YNc(4,Ia,3,3,"button",2),t.YNc(5,ba,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,va,1,0,"mat-spinner",5),t.YNc(8,Ea,1,6,"app-resources-tags-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.createAuth),t.xp6(1),t.Q6J("ngIf",o.deleteAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,Ta.o,Z.t,L.L,m.X$]}),i})();function Sa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.saveExpirationAttribute(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let xa=(()=>{class i{constructor(e,o,n,s,r){this.attributesManager=e,this.translate=o,this.notificator=n,this.apiRequest=s,this.entityStorageService=r,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(d=>this.successMessage=d),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(d=>this.errorMessage=d)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.group.id,attribute:e}).subscribe({next:()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},error:o=>this.notificator.showRPCError(o,this.errorMessage)})}loadSettings(){this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(m.sK),t.Y36(p.V6),t.Y36(p.F5),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(e,o){1&e&&t.YNc(0,Sa,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},dependencies:[_.O5,Nt]}),i})(),Na=(()=>{class i{constructor(e,o){this.guiAuthResolver=e,this.entityStorageService=o,this.availableRoles=[],this.selected="user",this.type="Group",this.theme="group-theme"}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Group")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(e,o){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",o.group)("availableRoles",o.availableRoles)("complementaryObjectType",o.type)("theme",o.theme)},dependencies:[Ot.s]}),i})();function Oa(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Za(i,a){1&i&&t._UZ(0,"th",15)}function Da(i,a){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.Oqu(o.getMailType(e))}}function Ma(i,a){1&i&&t._UZ(0,"tr",17)}function La(i,a){1&i&&t._UZ(0,"tr",18)}function Ra(i,a){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Za,1,0,"th",11),t.YNc(10,Da,2,1,"td",12),t.BQk(),t.YNc(11,Ma,1,0,"tr",13),t.YNc(12,La,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Lt=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.notificator=n,this.translate=s,this.registrarService=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.mails)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.groupId)for(const e of this.data.mails)this.registrarService.deleteApplicationMailForGroup(this.data.groupId,e.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1);else for(const e of this.data.mails)this.registrarService.deleteApplicationMailForVo(this.data.voId,e.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getMailType(e){let o="";return null==e.mailType||0===e.mailType.length?o="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+e.mailType).subscribe(n=>{o=n}),o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(p.V6),t.Y36(m.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Oa,1,0,"mat-spinner",1),t.YNc(5,Ra,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},dependencies:[_.O5,I.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();var R=l(98380);function wa(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function Ga(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.FORMAT_HTML_NOT_AUTHORIZED")," "))}const Ua=function(i){return{"disabled-label":i}};function Pa(i,a){if(1&i&&(t.TgZ(0,"span",18),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.Q6J("ngClass",t.VKq(6,Ua,"html"===e&&!o.htmlEditAuth)),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.FORMAT_"+e))," ")}}function ya(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.mailFooter=n)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("ngModel",e.mailFooter)}}function Va(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.htmlMailFooter=n)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("ngModel",e.htmlMailFooter)}}function Fa(i,a){if(1&i&&(t.TgZ(0,"mat-tab",14),t.YNc(1,Pa,4,8,"ng-template",15),t.TgZ(2,"mat-form-field",16),t.YNc(3,ya,2,1,"textarea",17),t.YNc(4,Va,2,1,"textarea",17),t.qZA()()),2&i){const e=a.$implicit,o=t.oxw(2);t.Q6J("disabled","html"===e&&!o.htmlEditAuth),t.xp6(3),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e)}}function Ya(i,a){if(1&i&&(t.TgZ(0,"div",8),t.YNc(1,Ga,3,3,"perun-web-apps-alert",9),t.TgZ(2,"mat-tab-group",10),t.YNc(3,Fa,5,3,"mat-tab",11),t.qZA(),t.TgZ(4,"div",12),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.plainEdithAuth&&!e.htmlEditAuth),t.xp6(2),t.Q6J("ngForOf",e.formats),t.xp6(2),t.hij(" ",t.lcZ(6,3,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION")," ")}}let Rt=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.attributesManager=o,this.translateService=n,this.notificator=s,this.data=r,this.mailFooter="",this.htmlMailFooter="",this.loading=!1,this.formats=["plain_text","html"]}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}submit(){this.loading=!0,this.mailAttribute.value=this.mailFooter,this.htmlMailAttribute.value=this.htmlMailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe({next:()=>{this.htmlEditAuth&&this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.htmlMailAttribute}).subscribe({next:()=>{this.notificationSuccess(),this.dialogRef.close()},error:()=>this.loading=!1})},error:()=>this.loading=!1}):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe({next:()=>{this.htmlEditAuth&&this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.htmlMailAttribute}).subscribe({next:()=>{this.notificationSuccess(),this.dialogRef.close()},error:()=>this.loading=!1})},error:()=>this.loading=!1})}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,S.r.VO_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.plainEdithAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""}),this.attributesManager.getVoAttributeByName(this.data.voId,S.r.VO_DEF_MAIL_HTML_FOOTER).subscribe(e=>{this.htmlMailAttribute=e,this.htmlEditAuth=this.htmlMailAttribute.writable,this.htmlMailFooter=e.value?e.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,S.r.GROUP_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.plainEdithAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""}),this.attributesManager.getGroupAttributeByName(this.data.groupId,S.r.GROUP_DEF_MAIL_HTML_FOOTER).subscribe(e=>{this.htmlMailAttribute=e,this.htmlEditAuth=this.htmlMailAttribute.writable,this.htmlMailFooter=e.value?e.value:""})}notificationSuccess(){this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.H8),t.Y36(m.sK),t.Y36(p.V6),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["alert_type","info",4,"ngIf"],["color","primary"],[3,"disabled",4,"ngFor","ngForOf"],[1,"mt-2","font-italic","text-muted"],["alert_type","info"],[3,"disabled"],["mat-tab-label",""],[1,"w-100"],["matInput","","rows","5",3,"ngModel","ngModelChange",4,"ngIf"],[3,"ngClass"],["matInput","","rows","5",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,wa,1,0,"mat-spinner",1),t.YNc(5,Ya,7,5,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",5),t.ALo(11,"translate"),t.TgZ(12,"button",6),t.NdJ("click",function(){return o.submit()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),t.Q6J("matTooltipDisabled",o.plainEdithAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",o.loading||!o.plainEdithAuth),t.xp6(1),t.hij(" ",t.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},dependencies:[_.mk,_.sg,_.O5,N.KE,y.Nt,A.Fj,A.JJ,A.On,I.lW,O.SP,O.uD,O.uX,u.uh,u.xY,u.H8,T.Ou,x.gM,R.w,_.gd,m.X$],styles:[".disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"]}),i})();var Ja=l(67376);function qa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",1)(2,"button",2),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.addTag("{"+s[0]+"}"))}),t.ALo(3,"translate"),t._uU(4),t.qZA(),t.TgZ(5,"span",3),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t._UZ(8,"mat-divider",4),t.qZA()}if(2&i){const e=a.$implicit;t.xp6(2),t.s9C("matTooltip",t.lcZ(3,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAG_HINT")),t.xp6(2),t.hij(" ",e[0]," "),t.xp6(2),t.hij(" ",t.lcZ(7,5,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+e[1])," ")}}let ka=(()=>{class i{constructor(){this.tags=[],this.addedTag=new t.vpe}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-section"]],inputs:{tags:"tags"},outputs:{addedTag:"addedTag"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],["mat-flat-button","","matTooltipPosition","above",1,"tag-text","w-25",3,"matTooltip","click"],[1,"w-75"],[1,"mt-1","mb-1"]],template:function(e,o){1&e&&t.YNc(0,qa,9,7,"div",0),2&e&&t.Q6J("ngForOf",o.tags)},dependencies:[_.sg,I.lW,x.gM,nt.d,m.X$],styles:[".tag-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}"]}),i})(),Qa=(()=>{class i{constructor(){this.addedTag=new t.vpe,this.applicationRelatedTags=[],this.userRelatedTags=[],this.validationLinksUsersTags=[],this.applicationLinksUsersTags=[],this.applicationLinksAdministratorsTags=[],this.perunLinksAdministratorsTags=[],this.userInvitationsTags=[]}ngOnInit(){this.getApplicationRelatedTags(),this.getUserRelatedTags(),this.getValidationLinksUsersTags(),this.getApplicationLinksUsersTags(),this.getApplicationLinksAdministratorsTags(),this.getPerunLinksAdministratorsTags(),this.getUserInvitationsTags()}getApplicationRelatedTags(){const e=[];e.push(["appId","APPID_DESCRIPTION"]),e.push(["actor","ACTOR_DESCRIPTION"]),e.push(["extSource","EXTSOURCE_DESCRIPTION"]),e.push(["voName","VONAME_DESCRIPTION"]),e.push(["groupName","GROUPNAME_DESCRIPTION"]),e.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),e.push(["htmlMailFooter","HTMLMAILFOOTER_DESCRIPTION"]),e.push(["errors","ERRORS_DESCRIPTION"]),e.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),e.push(["autoApproveError","AUTOAPPROVEERROR_DESCRIPTION"]),e.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=e}getUserRelatedTags(){const e=[];e.push(["firstName","FIRSTNAME_DESCRIPTION"]),e.push(["lastName","LASTNAME_DESCRIPTION"]),e.push(["displayName","DISPLAYNAME_DESCRIPTION"]),e.push(["mail","MAIL_DESCRIPTION"]),e.push(["phone","PHONE_DESCRIPTION"]),e.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),e.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=e}getValidationLinksUsersTags(){const e=[];e.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),e.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),e.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),e.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),e.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),e.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=e}getApplicationLinksUsersTags(){const e=[];e.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),e.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),e.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),e.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),e.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=e}getApplicationLinksAdministratorsTags(){const e=[];e.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),e.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),e.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),e.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),e.push(["appDetailUrl-newGUI","APPDETAILURLNEWGUI_DESCRIPTION"]),this.applicationLinksAdministratorsTags=e}getPerunLinksAdministratorsTags(){const e=[];e.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),e.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),e.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),e.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),e.push(["perunGuiUrl-newGUI","PERUNGUINEWGUI_DESCRIPTION"]),this.perunLinksAdministratorsTags=e}getUserInvitationsTags(){const e=[];e.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),e.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),e.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),e.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),e.push(["htmlMailFooter","USER_INVITATIONS_HTMLMAILFOOTER_DESCRIPTION"]),e.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),e.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),e.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),e.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),e.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=e}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-bar"]],outputs:{addedTag:"addedTag"},decls:47,vars:46,consts:[["alert_type","info"],["cdkScrollable","",1,"scrollable"],[1,"font-weight-bold"],[3,"tags","addedTag"],[1,"font-weight-bold","pt-2"],[1,"font-italic","text-muted"]],template:function(e,o){1&e&&(t.TgZ(0,"perun-web-apps-alert",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"div",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(8,"div",4),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(12,"div",4),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"div",5),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(19,"div",4),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"div",5),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(26,"div",4),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"div",5),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(33,"div",4),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"div",5),t._uU(37),t.ALo(38,"translate"),t.qZA(),t.TgZ(39,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(40,"div",4),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"div",5),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA()()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.applicationRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.userRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.validationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.perunLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.userInvitationsTags))},dependencies:[Ja.PQ,R.w,ka,m.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),i})();function Ba(i,a){1&i&&(t.TgZ(0,"div")(1,"h1",9),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&i&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function Ha(i,a){1&i&&(t.TgZ(0,"h1",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function ja(i,a){1&i&&t._UZ(0,"mat-spinner",10)}function za(i,a){1&i&&(t.TgZ(0,"mat-option",37),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APPROVABLE_GROUP_APP_USER")," "))}function $a(i,a){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function Xa(i,a){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function Ka(i,a){1&i&&(t.TgZ(0,"mat-option",38),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function Wa(i,a){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function ts(i,a){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function es(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",42),t._UZ(1,"i",43),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_INFO"),t.oJD))}function is(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",42),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_INFO_NOT_AUTHORIZED")," "))}const os=function(i){return{"disabled-label":i}};function ns(i,a){if(1&i&&(t.TgZ(0,"span",58),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(4);t.Q6J("ngClass",t.VKq(6,os,"html"===e&&!o.htmlAuth)),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_"+e))," ")}}function as(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.message[s].subject=n)})("focus",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.isTextFocused=!1)}),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.message[e].subject)}}function ss(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.htmlMessage[s].subject=n)})("focus",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.isTextFocused=!1)}),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.htmlMessage[e].subject)}}function rs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.message[s].text=n)})("focus",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.isTextFocused=!0)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.message[e].text)}}function ls(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.htmlMessage[s].text=n)})("focus",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.isTextFocused=!0)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.htmlMessage[e].text)}}function cs(i,a){1&i&&t._UZ(0,"mat-divider",61)}function ps(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-tab",44),t.YNc(1,ns,4,8,"ng-template",45),t.TgZ(2,"div",46)(3,"div",47)(4,"div",48)(5,"button",49),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(4);return t.KtG(n.showTags=!n.showTags)}),t._uU(6),t.ALo(7,"translate"),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"span",50),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-form-field",18)(13,"div",null,51),t.YNc(15,as,1,1,"input",52),t.YNc(16,ss,1,1,"input",52),t.qZA()()(),t.TgZ(17,"div",53),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-form-field",18)(21,"div",null,54),t.YNc(23,rs,2,1,"textarea",55),t.YNc(24,ls,2,1,"textarea",55),t.qZA()()(),t.YNc(25,cs,1,0,"mat-divider",56),t.TgZ(26,"div")(27,"app-tag-bar",57),t.NdJ("addedTag",function(n){const r=t.CHM(e).$implicit,d=t.MAs(14),f=t.MAs(22),v=t.oxw(2).$implicit,D=t.oxw(2);return t.KtG(D.addTag(d,f,v,n,r))}),t.qZA()()()()}if(2&i){const e=a.$implicit,o=t.oxw(4);t.Q6J("disabled","html"===e&&!o.htmlAuth),t.xp6(6),t.hij(" ",o.showTags?t.lcZ(7,10,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):t.lcZ(8,12,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),t.xp6(4),t.hij(" ",t.lcZ(11,14,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT"),": "),t.xp6(5),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e),t.xp6(2),t.hij(" ",t.lcZ(19,16,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),t.xp6(5),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e),t.xp6(1),t.Q6J("ngIf",o.showTags),t.xp6(1),t.Q6J("@tagsOpenClose",o.showTags?"open":"closed")}}function us(i,a){if(1&i&&(t.YNc(0,es,3,3,"perun-web-apps-alert",40),t.YNc(1,is,3,3,"perun-web-apps-alert",40),t.TgZ(2,"mat-tab-group",13),t.YNc(3,ps,28,18,"mat-tab",41),t.qZA()),2&i){const e=t.oxw(3);t.Q6J("ngIf",e.htmlAuth),t.xp6(1),t.Q6J("ngIf",!e.htmlAuth),t.xp6(2),t.Q6J("ngForOf",e.formats)}}function ds(i,a){1&i&&(t.TgZ(0,"mat-tab",14),t.ALo(1,"translate"),t.ALo(2,"uppercase"),t.YNc(3,us,4,3,"ng-template",39),t.qZA()),2&i&&t.s9C("label",t.lcZ(1,1,t.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+a.$implicit)))}function _s(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",11)(1,"div")(2,"perun-web-apps-alert",12),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"mat-tab-group",13)(6,"mat-tab",14),t.ALo(7,"translate"),t.TgZ(8,"div",15)(9,"span",16),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"div",17)(13,"mat-form-field",18)(14,"mat-select",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.mailType=n)})("selectionChange",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.notificationExist())}),t.TgZ(15,"mat-option",20),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.YNc(18,za,3,3,"mat-option",21),t.TgZ(19,"mat-option",22),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"mat-option",23),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"mat-option",24),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"mat-option",25),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.TgZ(31,"mat-option",26),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mat-option",27),t._uU(35),t.ALo(36,"translate"),t.qZA()()()()(),t.TgZ(37,"div",28),t._UZ(38,"span",29),t.YNc(39,$a,3,3,"div",30),t.YNc(40,Xa,3,3,"div",30),t.qZA(),t.TgZ(41,"div",15)(42,"span",31),t._uU(43),t.ALo(44,"translate"),t.qZA(),t.TgZ(45,"div",17)(46,"mat-form-field",18)(47,"mat-select",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.appType=n)})("selectionChange",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.notificationExist())}),t.TgZ(48,"mat-option",32),t._uU(49),t.ALo(50,"translate"),t.qZA(),t.YNc(51,Ka,3,3,"mat-option",33),t.qZA()()()(),t.TgZ(52,"div",28),t._UZ(53,"span",29),t.YNc(54,Wa,3,3,"div",30),t.YNc(55,ts,3,3,"div",30),t.qZA(),t.TgZ(56,"div",15)(57,"span",31),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.TgZ(60,"div",17)(61,"mat-checkbox",34),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.send=n)}),t.qZA()()(),t.TgZ(62,"div",28),t._UZ(63,"span",29),t.TgZ(64,"div",35),t._uU(65),t.ALo(66,"translate"),t.qZA()()(),t.YNc(67,ds,4,5,"mat-tab",36),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("@openClose",e.invalidNotification?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(4,27,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),t.xp6(3),t.s9C("label",t.lcZ(7,29,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),t.xp6(4),t.hij("",t.lcZ(11,31,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.mailType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(17,33,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.hij(" ",t.lcZ(21,35,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(24,37,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),t.xp6(3),t.hij(" ",t.lcZ(27,39,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(30,41,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(33,43,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(36,45,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),t.xp6(4),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(44,47,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.appType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(50,49,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),t.xp6(2),t.Q6J("ngIf","USER_INVITE"!==e.applicationMail.mailType),t.xp6(3),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(59,51,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),t.xp6(3),t.Q6J("ngModel",e.applicationMail.send),t.xp6(4),t.hij(" ",t.lcZ(66,53,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),t.xp6(2),t.Q6J("ngForOf",e.languages)}}function ms(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.create())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.invalidNotification||e.loading),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function gs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.save())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.loading||!e.editAuth),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}let st=(()=>{class i{constructor(e,o,n,s,r,d){this.dialogRef=e,this.registrarService=o,this.data=n,this.authResolver=s,this.groupsService=r,this.store=d,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"],this.formats=["plain_text","html"]}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.htmlAuth=this.authResolver.isPerunAdmin(),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(e=>{this.editAuth=this.authResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[e])}):this.data.voId&&(this.editAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[{id:this.data.voId,beanName:"Vo"}]))}cancel(){this.dialogRef.close()}create(){this.notificationExist(),!this.invalidNotification&&(this.loading=!0,this.data.groupId?this.registrarService.addApplicationMailForGroup({group:this.data.groupId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.addApplicationMailForVo({vo:this.data.voId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}save(){this.loading=!0,this.registrarService.updateApplicationMail({mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}addTag(e,o,n,s,r){const d=this.isTextFocused?o.children.item(0):e.children.item(0),f=d.selectionStart;this.isTextFocused?"html"===r?this.applicationMail.htmlMessage[n].text=this.applicationMail.htmlMessage[n].text.substring(0,f)+s+this.applicationMail.htmlMessage[n].text.substring(f):this.applicationMail.message[n].text=this.applicationMail.message[n].text.substring(0,f)+s+this.applicationMail.message[n].text.substring(f):"html"===r?this.applicationMail.htmlMessage[n].subject=this.applicationMail.htmlMessage[n].subject.substring(0,f)+s+this.applicationMail.htmlMessage[n].subject.substring(f):this.applicationMail.message[n].subject=this.applicationMail.message[n].subject.substring(0,f)+s+this.applicationMail.message[n].subject.substring(f),d.focus()}notificationExist(){for(const e of this.data.applicationMails)if(e.mailType===this.applicationMail.mailType&&e.appType===this.applicationMail.appType)return void(this.invalidNotification=!0);this.invalidNotification=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.tk),t.Y36(u.WI),t.Y36(p.x4),t.Y36(h.ff),t.Y36(p.d6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-edit-notification-dialog"]],decls:15,vars:17,consts:[[1,"h-100","d-flex","flex-column"],[4,"ngIf","ngIfElse"],["edit",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["alert_type","error"],["color","primary"],[3,"label"],[1,"d-flex"],[1,"w-25","m-auto","font-weight-bold"],[1,"w-75"],[1,"w-100"],["disableOptionCentering","",3,"ngModel","disabled","ngModelChange","selectionChange"],["value","APP_CREATED_USER"],["value","APPROVABLE_GROUP_APP_USER",4,"ngIf"],["value","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],["value","USER_INVITE"],[1,"d-flex","mb-3"],[1,"w-25"],["class","w-75 font-italic text-muted",4,"ngIf"],[1,"w-25","font-weight-bold"],["value","INITIAL"],["value","EXTENSION",4,"ngIf"],[3,"ngModel","ngModelChange"],[1,"w-75","font-italic","text-muted"],[3,"label",4,"ngFor","ngForOf"],["value","APPROVABLE_GROUP_APP_USER"],["value","EXTENSION"],["matTabContent",""],["alert_type","info",4,"ngIf"],[3,"disabled",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],[3,"disabled"],["mat-tab-label",""],[1,"d-flex","w-100"],[1,"pr-2","w-100"],[1,"pt-2"],["mat-stroked-button","",1,"right-button",3,"click"],[1,"font-weight-bold","pr-2"],["Input",""],["matInput","",3,"ngModel","ngModelChange","focus",4,"ngIf"],[1,"font-weight-bold"],["Textarea",""],["matInput","","rows","17",3,"ngModel","ngModelChange","focus",4,"ngIf"],["class","ml-3 mr-3","vertical","true",4,"ngIf"],[3,"addedTag"],[3,"ngClass"],["matInput","",3,"ngModel","ngModelChange","focus"],["matInput","","rows","17",3,"ngModel","ngModelChange","focus"],["vertical","true",1,"ml-3","mr-3"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div")(1,"div",0),t.YNc(2,Ba,4,3,"div",1),t.YNc(3,Ha,3,3,"ng-template",null,2,t.W1O),t.YNc(5,ja,1,0,"mat-spinner",3),t.YNc(6,_s,68,55,"div",4),t.TgZ(7,"div",5)(8,"button",6),t.NdJ("click",function(){return o.cancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,ms,3,4,"button",7),t.TgZ(12,"div",8),t.ALo(13,"translate"),t.YNc(14,gs,3,4,"button",7),t.qZA()()()()),2&e){const n=t.MAs(4);t.Gre("",o.theme," h-100"),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification)("ngIfElse",n),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification),t.xp6(1),t.s9C("matTooltip",t.lcZ(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),t.Q6J("matTooltipDisabled",o.editAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("ngIf",!o.data.createMailNotification)}},dependencies:[_.mk,_.sg,_.O5,$.ey,N.KE,y.Nt,A.Fj,A.JJ,A.On,I.lW,O.SP,O.uD,O.uX,O.Vc,H.oG,u.uh,u.xY,u.H8,X.gD,T.Ou,x.gM,nt.d,R.w,Qa,_.gd,m.X$],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}.disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"],data:{animation:[M.es,M.BQ]}}),i})();var rt=l(62707),hs=l(82322);function fs(i,a){1&i&&t._UZ(0,"mat-spinner",9)}let wt=(()=>{class i{constructor(e,o,n,s,r,d,f){this.dialogRef=e,this.voService=o,this.groupService=n,this.translateService=s,this.registrarService=r,this.cd=d,this.data=f,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=v=>v.name}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(e=>{this.fakeGroup={id:-1,name:e,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},this.selectedGroup=this.fakeGroup,this.voService.getAllVos().subscribe(o=>{this.vos=o,this.loading=!1})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.loading=!0,this.data.groupId?this.selectedGroup===this.fakeGroup?this.registrarService.copyMailsFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.copyMailsFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.selectedGroup===this.fakeGroup?this.registrarService.copyMailsFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.copyMailsFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}voSelected(e){this.selectedVo=e,this.getGroups(),this.cd.detectChanges()}getGroups(){this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(e=>{this.groups=[this.fakeGroup].concat(e)}):this.groups=[this.fakeGroup]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.YF),t.Y36(h.ff),t.Y36(m.sK),t.Y36(h.tk),t.Y36(t.sBO),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notifications-copy-mails-dialog"]],decls:22,vars:27,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container",3,"hidden"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,fs,1,0,"mat-spinner",1),t.TgZ(5,"div",2)(6,"div",3),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.TgZ(11,"perun-web-apps-vo-search-select",4),t.NdJ("voSelected",function(s){return o.voSelected(s)}),t.qZA(),t._uU(12),t.ALo(13,"translate"),t.TgZ(14,"perun-web-apps-group-search-select",5),t.NdJ("groupSelected",function(s){return o.selectedGroup=s}),t.qZA()(),t.TgZ(15,"div",6)(16,"button",7),t.NdJ("click",function(){return o.cancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"button",8),t.NdJ("click",function(){return o.submit()}),t._uU(20),t.ALo(21,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,15,"DIALOGS.NOTIFICATIONS_COPY_MAILS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("hidden",o.loading),t.xp6(2),t.hij(" ",t.lcZ(8,17,"DIALOGS.NOTIFICATIONS_COPY_MAILS.DESCRIPTION")," "),t.xp6(2),t.hij(" ",t.lcZ(10,19,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_VO"),": "),t.xp6(2),t.Q6J("vos",o.vos),t.xp6(1),t.hij(" ",t.lcZ(13,21,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_GROUP"),": "),t.xp6(2),t.Q6J("groups",o.groups)("disableAutoSelect",!0),t.xp6(3),t.hij(" ",t.lcZ(18,23,"DIALOGS.NOTIFICATIONS_COPY_MAILS.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",null===o.selectedVo||null===o.selectedGroup||o.loading),t.xp6(1),t.hij(" ",t.lcZ(21,25,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SUBMIT_BUTTON")," "))},dependencies:[_.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,rt.M,hs.h,m.X$],data:{animation:[M.BQ]}}),i})();var q=l(96308),Gt=l(18750),Ut=l(9185),Pt=l(8231),yt=l(14849);function As(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(n?s.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,o=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",o.selection.hasValue()&&e.all)("indeterminate",o.selection.hasValue()&&!e.all)}}const Ts=function(i){return{name:i}};function Is(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(n?d.toggle(r):null)})("click",function(n){return n.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,o.selection.isSelected(e)),t.VKq(7,Ts,o.getMailType(e))))("checked",o.selection.isSelected(e))}}function bs(i,a){1&i&&(t.ynx(0,14),t.YNc(1,As,4,7,"th",15),t.YNc(2,Is,4,9,"td",16),t.BQk())}function vs(i,a){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function Es(i,a){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Cs(i,a){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function Ss(i,a){if(1&i&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.Oqu(o.getMailType(e))}}function xs(i,a){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function Ns(i,a){1&i&&(t.TgZ(0,"div")(1,"mat-icon",26),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_INITIAL")," "))}function Os(i,a){1&i&&(t.TgZ(0,"mat-icon",27),t._uU(1,"cached"),t.qZA(),t._uU(2),t.ALo(3,"translate")),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_EXTENSION")," "))}function Zs(i,a){if(1&i&&(t.TgZ(0,"td",23),t.YNc(1,Ns,5,3,"div",24),t.YNc(2,Os,4,3,"ng-template",null,25,t.W1O),t.qZA()),2&i){const e=a.$implicit,o=t.MAs(3);t.xp6(1),t.Q6J("ngIf","INITIAL"===e.appType)("ngIfElse",o)}}function Ds(i,a){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function Ms(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",23)(1,"section")(2,"mat-checkbox",28),t.NdJ("change",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.changeSending(s))})("click",function(n){return n.stopPropagation()}),t.ALo(3,"translate"),t.qZA()()()}if(2&i){const e=a.$implicit,o=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,4,"VO_DETAIL.SETTINGS.NOTIFICATIONS.DISABLED_HINT")),t.Q6J("disabled",o.disableSend)("matTooltipDisabled",!o.disableSend)("ngModel",e.send)}}function Ls(i,a){1&i&&t._UZ(0,"tr",29)}function Rs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"tr",30),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.openApplicationMailDetail(s))}),t.qZA()}2&i&&t.ekj("cursor-pointer",!0)}function ws(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}const Gs=function(i){return{all:i}};let Vt=(()=>{class i{constructor(e,o,n,s,r,d){this.registrarService=e,this.translate=o,this.notificator=n,this.dialog=s,this.authResolver=r,this.tableCheckbox=d,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new E.Ov(!0,[]),this.selectionChange=new t.vpe,this.pageSizeOptions=g.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new c.by(this.applicationMails),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}changeSending(e){e.send?this.registrarService.setSendingEnabled({mails:[e],enabled:!1}).subscribe(()=>{e.send=!1}):this.registrarService.setSendingEnabled({mails:[e],enabled:!0}).subscribe(()=>{e.send=!0})}openApplicationMailDetail(e){const o=(0,g.kZ)();o.width="1400px",o.height="700px",o.data={theme:this.theme,voId:this.voId,groupId:this.groupId,createMailNotification:!1,applicationMail:e},this.dialog.open(st,o).afterClosed().subscribe(s=>{s&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.EDIT_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.selectionChange.emit(this.selection),this.update())})}getMailType(e){let o="";return null==e.mailType||0===e.mailType.length?o="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+e.mailType).subscribe(n=>{o=n}),o}update(){this.groupId?this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(e=>{this.updateTable(e)}):this.registrarService.getApplicationMailsForVo(this.voId).subscribe(e=>{this.updateTable(e)})}toggle(e){this.selection.toggle(e),this.selectionChange.emit(this.selection)}updateTable(e){this.applicationMails=e,this.dataSource=new c.by(this.applicationMails),this.setDataSource()}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(m.sK),t.Y36(p.V6),t.Y36(u.uw),t.Y36(p.x4),t.Y36(p.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notification-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(g.l9,7),t.Gf(q.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(o.child=n.first),t.iGM(n=t.CRH())&&(o.matSort=n.first)}},inputs:{applicationMails:"applicationMails",voId:"voId",groupId:"groupId",displayedColumns:"displayedColumns",disableSend:"disableSend",selection:"selection",tableId:"tableId",theme:"theme"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:20,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","mailType"],["mat-cell","",4,"matCellDef"],["matColumnDef","appType"],["matColumnDef","send"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf","ngIfElse"],["extension",""],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],[3,"disabled","matTooltipDisabled","ngModel","matTooltip","change","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1)(2,"table",2),t.YNc(3,bs,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,vs,3,3,"th",5),t.YNc(7,Es,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Cs,3,3,"th",5),t.YNc(10,Ss,2,1,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,xs,3,3,"th",5),t.YNc(13,Zs,4,2,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,Ds,3,3,"th",5),t.YNc(16,Ms,4,6,"td",8),t.BQk(),t.YNc(17,Ls,1,0,"tr",11),t.YNc(18,Rs,1,2,"tr",12),t.qZA()()(),t.YNc(19,ws,3,3,"perun-web-apps-alert",13)),2&e&&(t.Q6J("hidden",0===o.applicationMails.length),t.xp6(1),t.Q6J("pageSizeOptions",o.pageSizeOptions)("dataLength",o.dataSource.filteredData.length)("hideExport",!0)("tableId",o.tableId),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Gs,t.xi3(4,10,o.dataSource,o.selection.selected.length))),t.xp6(14),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.applicationMails.length))},dependencies:[_.O5,A.JJ,A.On,P.Hw,q.YE,q.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,H.oG,x.gM,R.w,Gt.l,m.X$,Ut.I,Pt.G,yt.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Us(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function Ps(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function ys(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.copy())}),t.TgZ(1,"i",6),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Vs(i,a){1&i&&t._UZ(0,"mat-spinner",13)}function Fs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",14),t.NdJ("selectionChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.changeSelection(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("applicationMails",e.applicationMails)("disableSend",!e.addAuth)("displayedColumns",e.displayedColumns)("tableId",e.tableId)("selection",e.selection)("theme","vo-theme")("voId",e.vo.id)}}let Ys=(()=>{class i{constructor(e,o,n,s,r,d,f,v,D){this.route=e,this.registrarService=o,this.translate=n,this.dialog=s,this.notificator=r,this.authResolver=d,this.voService=f,this.store=v,this.entityStorageService=D,this.loading=!1,this.applicationMails=[],this.selection=new E.Ov(!0,[]),this.tableId=C.VR,this.displayedColumns=[]}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refresh()}refresh(){this.loading=!0,this.registrarService.getVoApplicationForm(this.vo.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(o=>{this.applicationMails=o,this.loading=!1})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("vo-deleteMailById_ApplicationForm_Integer_policy",[this.vo]),this.copyAuth=this.authResolver.isAuthorized("destination-copyMailsFromVoToVo_Vo_Vo_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=this.store.getProperty("supported_languages"),o=(0,g.i5)(e);o.formId=this.applicationForm.id;const n=(0,g.kZ)();n.width="1400px",n.height="700px",n.data={theme:"vo-theme",voId:this.vo.id,createMailNotification:!0,applicationMail:o,applicationMails:this.applicationMails},this.dialog.open(st,n).afterClosed().subscribe(r=>{r&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(d=>{this.notificator.showSuccess(d)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(Lt,e).afterClosed().subscribe(n=>{n&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(wt,e).afterClosed().subscribe(n=>{n&&(this.selection.clear(),this.updateTable())})}changeEmailFooter(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Rt,e)}changeSelection(e){this.selection=e}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(e=>{this.applicationMails=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.tk),t.Y36(m.sK),t.Y36(u.uw),t.Y36(p.V6),t.Y36(p.x4),t.Y36(h.YF),t.Y36(p.d6),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-notifications"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:15,vars:11,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"perun-web-apps-refresh-button",2),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(5,Us,3,3,"button",3),t.YNc(6,Ps,3,4,"button",4),t.TgZ(7,"button",5),t.NdJ("click",function(){return o.changeEmailFooter()}),t.TgZ(8,"i",6),t._uU(9,"email"),t.qZA(),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.YNc(12,ys,5,3,"button",7),t.qZA(),t.YNc(13,Vs,1,0,"mat-spinner",8),t.YNc(14,Fs,1,7,"app-notification-list",9)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,7,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(4),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(11,9,"VO_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",o.copyAuth),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,Z.t,Vt,m.X$]}),i})();var Js=l(14336);function qs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function ks(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Qs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.copy())}),t.TgZ(1,"i",7),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Bs(i,a){1&i&&t._UZ(0,"mat-spinner",14)}function Hs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",15),t.NdJ("selectionChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.changeSelection(n))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableSend",!e.addAuth)("displayedColumns",e.displayedColumns)("applicationMails",e.applicationMails)("groupId",e.group.id)("selection",e.selection)("tableId",e.tableId)("theme","group-theme")}}function js(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",2)(2,"perun-web-apps-refresh-button",3),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.refresh())}),t.qZA(),t.YNc(3,qs,3,3,"button",4),t.YNc(4,ks,3,4,"button",5),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.changeEmailFooter())}),t.TgZ(6,"i",7),t._uU(7,"email"),t.qZA(),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,Qs,5,3,"button",8),t.qZA(),t.YNc(11,Bs,1,0,"mat-spinner",9),t.YNc(12,Hs,1,7,"app-notification-list",10),t.qZA()}if(2&i){const e=t.oxw();t.xp6(3),t.Q6J("ngIf",e.addAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(9,6,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",e.copyAuth),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function zs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.createEmptyApplicationForm())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.CREATE_APPLICATION_FORM")," "))}function $s(i,a){if(1&i&&(t.TgZ(0,"div")(1,"perun-web-apps-alert",16),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,zs,3,3,"button",17),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_APPLICATION_FORM")),t.xp6(2),t.Q6J("ngIf",e.createFormAuth)}}let Xs=(()=>{class i{constructor(e,o,n,s,r,d,f,v){this.registrarService=e,this.translate=o,this.dialog=n,this.apiRequest=s,this.notificator=r,this.guiAuthResolver=d,this.attributesService=f,this.entityStorageService=v,this.loading=!1,this.applicationMails=[],this.selection=new E.Ov(!0,[]),this.noApplicationForm=!1,this.editEmailFooterAuth=!1,this.addAuth=!1,this.removeAuth=!1,this.copyAuth=!1,this.createFormAuth=!1,this.displayedColumns=[],this.tableId=C.AA}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refresh()}refresh(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.registrarService.getGroupApplicationForm(this.group.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(o=>{this.applicationMails=o,this.apiRequest.dontHandleErrorForNext(),this.attributesService.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.setAuthRights(),this.loading=!1},n=>{"PrivilegeException"!==n.name&&this.notificator.showRPCError(n),this.setAuthRights(),this.loading=!1})})},e=>{"FormNotExistsException"===e.name?(this.noApplicationForm=!0,this.setAuthRights(),this.loading=!1):this.notificator.showRPCError(e)})}setAuthRights(){this.createFormAuth=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.addAuth=this.guiAuthResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("group-deleteMailById_ApplicationForm_Integer_policy",[this.group]),this.copyAuth=this.guiAuthResolver.isAuthorized("destination-copyMailsFromVoToGroup_Vo_Group_boolean_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=(0,g.i5)();e.formId=this.applicationForm.id;const o=(0,g.kZ)();o.width="1400px",o.height="700px",o.data={theme:"group-theme",voId:this.group.voId,groupId:this.group.id,createMailNotification:!0,applicationMail:e,applicationMails:this.applicationMails},this.dialog.open(st,o).afterClosed().subscribe(s=>{s&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(Lt,e).afterClosed().subscribe(n=>{n&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(wt,e).afterClosed().subscribe(n=>{n&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(e=>{this.applicationMails=e,this.loading=!1})}changeEmailFooter(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(Rt,e)}changeSelection(e){this.selection=e}createEmptyApplicationForm(){this.registrarService.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(m.sK),t.Y36(u.uw),t.Y36(p.F5),t.Y36(p.V6),t.Y36(p.x4),t.Y36(h.H8),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-notifications"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"w-100","d-flex"],[3,"click"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,js,13,8,"div",1),t.YNc(4,$s,5,4,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",!o.noApplicationForm),t.xp6(1),t.Q6J("ngIf",o.noApplicationForm&&!o.loading))},dependencies:[_.O5,I.lW,T.Ou,R.w,Z.t,Vt,m.X$]}),i})();var lt=l(15935);function Ks(i,a){1&i&&t._UZ(0,"mat-spinner",8)}function Ws(i,a){if(1&i&&(t.TgZ(0,"div",9),t._UZ(1,"app-ext-sources-list",10),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("selection",e.selection)("extSources",e.extSources)("filterValue",e.filterValue)("tableId",e.tableId)}}let Ft=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.extSourceService=n,this.notificator=s,this.translate=r,this.extSources=[],this.selection=new E.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=C.BV}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.data.groupId?this.extSourceService.getVoExtSources(this.data.voId).subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:n})=>n===o.id)),this.loading=!1},()=>this.loading=!1):this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:n})=>n===o.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}addVoExtSources(e){const o=e.map(n=>n.id);this.extSourceService.addExtSourcesWithVoSource(this.data.voId,o).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}addGroupExtSources(e){const o=e.map(n=>n.id);this.extSourceService.addExtSourcesWithGroupSource(this.data.groupId,o).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}onAdd(){this.loading=!0,this.data.groupId?this.addGroupExtSources(this.selection.selected):this.addVoExtSources(this.selection.selected)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.KG),t.Y36(p.V6),t.Y36(p.Te))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-ext-source-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title",""],[1,"page-subtitle"],[1,"font-size-1rem",3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"selection","extSources","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA()(),t.YNc(6,Ks,1,0,"mat-spinner",3),t.YNc(7,Ws,2,4,"div",4),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return o.onCancel()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",7),t.NdJ("click",function(){return o.onAdd()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,10,"DIALOGS.ADD_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(11,12,"DIALOGS.ADD_EXT_SOURCES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(14,14,"DIALOGS.ADD_EXT_SOURCES.ADD")," "))},dependencies:[_.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,L.L,lt.D,m.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),i})();function tr(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function er(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1,"id"),t.qZA())}function ir(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.id)}}function or(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1,"name"),t.qZA())}function nr(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function ar(i,a){1&i&&t._UZ(0,"tr",19)}function sr(i,a){1&i&&t._UZ(0,"tr",20)}function rr(i,a){if(1&i&&(t.TgZ(0,"div",8)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",9),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",10),t.ynx(8,11),t.YNc(9,er,2,0,"th",12),t.YNc(10,ir,2,1,"td",13),t.BQk(),t.ynx(11,14),t.YNc(12,or,2,0,"th",12),t.YNc(13,nr,2,1,"td",13),t.BQk(),t.YNc(14,ar,1,0,"tr",15),t.YNc(15,sr,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_EXT_SOURCES.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_EXT_SOURCES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.extSources),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Yt=(()=>{class i{constructor(e,o,n,s,r,d){this.dialogRef=e,this.data=o,this.extSourceService=n,this.notificator=s,this.tableConfigService=r,this.translate=d,this.extSources=[],this.displayedColumns=["id","name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.extSources=this.data.extSources}removeVoExtSources(){const e=this.extSources.map(o=>o.id);this.extSourceService.removeExtSourcesWithVoSource(this.data.voId,e).subscribe({next:()=>{this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)})},error:()=>this.loading=!1})}removeGroupExtSources(){const e=this.extSources.map(o=>o.id);this.extSourceService.removeExtSourcesWithGroupSource(this.data.groupId,e).subscribe({next:()=>{this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)})},error:()=>this.loading=!1})}onRemove(){this.loading=!0,this.data.groupId?this.removeGroupExtSources():this.removeVoExtSources()}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.KG),t.Y36(p.V6),t.Y36(C.dB),t.Y36(m.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-ext-source-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.YNc(5,tr,1,0,"mat-spinner",2),t.YNc(6,rr,16,9,"div",3),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){return o.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return o.onRemove()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,8,"DIALOGS.REMOVE_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,10,"DIALOGS.REMOVE_EXT_SOURCES.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.REMOVE_EXT_SOURCES.REMOVE")," "))},dependencies:[_.O5,I.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();function lr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function cr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function pr(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function ur(i,a){if(1&i&&t._UZ(0,"app-ext-sources-list",10),2&i){const e=t.oxw();t.Q6J("extSources",e.extSources)("selection",e.selection)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("tableId",e.tableId)}}let dr=(()=>{class i{constructor(e,o,n,s,r,d){this.extSourceService=e,this.dialog=o,this.notificator=n,this.translate=s,this.authResolver=r,this.entityStorageService=d,this.extSources=[],this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.qV,this.displayedColumns=[],this.translate.get("VO_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(f=>this.successMessage=f)}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.extSourceService.getVoExtSources(this.vo.id).subscribe(e=>{this.extSources=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(e){this.filterValue=e}onAdd(){const e=(0,g.kZ)();e.width="1000px",e.data={voId:this.vo.id,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(Ft,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}onRemove(){const e=(0,g.kZ)();e.width="600px",e.data={voId:this.vo.id,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(Yt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Vo_ExtSource_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Vo_ExtSource_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","name","type"]:["id","name","type"]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(u.uw),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","selection","displayedColumns","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"extSources","selection","displayedColumns","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,lr,3,3,"button",2),t.YNc(6,cr,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,pr,1,0,"mat-spinner",5),t.YNc(9,ur,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"VO_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,lt.D,Z.t,L.L,m.X$]}),i})();var V=l(25788);function _r(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function mr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",11),t.NdJ("voSelected",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.getGroupsToInclude(n.id))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("vo",e.thisVo.vo)("vos",e.vosToSelect)}}const gr=function(){return["select","id","name","description"]};function hr(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",12),2&i){const e=t.oxw(2);t.Q6J("groupsToDisableCheckbox",e.groupsToDisable)("disableGroups",!0)("groups",e.groups)("selection",e.selection)("disableHeadCheckbox",!0)("disableRouting",!0)("displayedColumns",t.DdM(10,gr))("filter",e.filterValue)("tableId",e.tableId)("relation",!0)}}function fr(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Ar(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.YNc(1,mr,1,2,"perun-web-apps-vo-search-select",4),t.TgZ(2,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applyFilter(n))}),t.qZA(),t.TgZ(3,"div",6),t.YNc(4,hr,1,11,"perun-web-apps-groups-list",7),t.qZA(),t.YNc(5,fr,1,0,"mat-spinner",1),t.TgZ(6,"div",8)(7,"button",9),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onCancel())}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSubmit())}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()}if(2&i){const e=t.oxw();t.Tol(e.theme),t.xp6(1),t.Q6J("ngIf",e.vosToSelect.length>1),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(3),t.hij(" ",t.lcZ(9,10,"DIALOGS.CREATE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.initLoading||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,12,"DIALOGS.CREATE_RELATION.CREATE")," ")}}let Tr=(()=>{class i{constructor(e,o,n,s,r,d,f){this.dialogRef=e,this.groupService=o,this.notificator=n,this.translate=s,this.guiAuthResolver=r,this.voService=d,this.data=f,this.selection=new E.Ov(!1,[]),this.filterValue="",this.tableId=C.RS,this.groupsToDisable=new Set,this.vosToSelect=[],s.get("DIALOGS.CREATE_RELATION.SUCCESS").subscribe(v=>this.successMessage=v)}ngOnInit(){this.initLoading=!0,this.groupService.getGroupUnions(this.data.group.id,!this.data.reverse).subscribe(e=>{e=e.concat(this.data.groups),this.groupsToNotInclude=e.map(o=>o.id),this.voService.getEnrichedVoById(this.data.voId).subscribe(o=>{this.thisVo=o,this.vosToSelect=o.memberVos.filter(n=>this.guiAuthResolver.isAuthorized("getAllAllowedGroupsToHierarchicalVo_Vo_policy",[n])),this.vosToSelect.push(o.vo),this.getGroupsToInclude(this.data.voId),this.initLoading=!1})},()=>this.initLoading=!1),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}getGroupsToInclude(e){this.loading=!0,e===this.data.voId?this.groupService.getAllGroups(this.data.voId).subscribe(o=>{this.finishLoadingGroups(o)},()=>this.loading=!1):this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.data.voId,e).subscribe(o=>{this.finishLoadingGroups(o)},()=>this.loading=!1)}onSubmit(){this.loading=!0,this.groupService.createGroupUnion(this.data.group.id,this.selection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}setGroupsToDisable(){for(const e of this.groups)(!this.guiAuthResolver.isAuthorized("result-createGroupUnion_Group_Group_policy",[this.data.group])||!this.guiAuthResolver.isAuthorized("operand-createGroupUnion_Group_Group_policy",[e]))&&this.groupsToDisable.add(e.id)}finishLoadingGroups(e){this.groups=e.filter(o=>!this.groupsToNotInclude.includes(o.id)&&o.id!==this.data.group.id),this.setGroupsToDisable(),this.selection.clear(),this.loading=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.ff),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.x4),t.Y36(h.YF),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-relation-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"class",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"vo","vos","voSelected",4,"ngIf"],[3,"placeholder","filter"],["mat-dialog-content","",1,"dialog-container"],[3,"groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId","relation",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"vo","vos","voSelected"],[3,"groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId","relation"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,_r,1,0,"mat-spinner",1),t.qZA(),t.YNc(5,Ar,13,14,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.CREATE_RELATION.TITLE")),t.xp6(2),t.Tol(o.theme),t.xp6(1),t.Q6J("ngIf",o.initLoading),t.xp6(1),t.Q6J("ngIf",!o.initLoading))},dependencies:[_.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,V.W,L.L,rt.M,m.X$]}),i})();function Ir(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function br(i,a){1&i&&t._UZ(0,"th",15)}function vr(i,a){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Er(i,a){1&i&&t._UZ(0,"tr",17)}function Cr(i,a){1&i&&t._UZ(0,"tr",18)}function Sr(i,a){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,br,1,0,"th",11),t.YNc(10,vr,2,1,"td",12),t.BQk(),t.YNc(11,Er,1,0,"tr",13),t.YNc(12,Cr,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_RELATION.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_RELATION.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let xr=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.notificator=n,this.groupService=s,this.translate=r,this.displayedColumns=["name"],r.get("DIALOGS.REMOVE_RELATION.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.groups)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,1===this.data.groups.length)this.groupService.removeGroupUnion(this.data.reverse?this.data.groups[0].id:this.data.groupId,this.data.reverse?this.data.groupId:this.data.groups[0].id).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1);else{const e=this.data.reverse?this.data.groups.shift().id:this.data.groupId,o=this.data.reverse?this.data.groupId:this.data.groups.shift().id;this.groupService.removeGroupUnion(e,o).subscribe(()=>{this.onSubmit(),this.dialogRef.close(!0)},()=>this.loading=!1)}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(p.V6),t.Y36(h.ff),t.Y36(m.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-relation-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ir,1,0,"mat-spinner",1),t.YNc(5,Sr,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_RELATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_RELATION.DELETE")," "))},dependencies:[_.O5,I.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();var Jt=l(54004);function Nr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",8),t.ALo(1,"translate"),t.TgZ(2,"button",9),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onDelete())}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&i){const e=a.ngIf,o=t.oxw();t.s9C("matTooltip",t.lcZ(1,4,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE_TOOLTIP")),t.Q6J("matTooltipDisabled",0===o.selection.selected.length||e.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||!e.removeAuth||o.reverse),t.xp6(1),t.hij(" ",t.lcZ(4,6,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE")," ")}}function Or(i,a){1&i&&t._UZ(0,"mat-spinner",10)}const Zr=function(){return["select","id","vo","name","description"]};function Dr(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",11),2&i){const e=t.oxw();t.Q6J("groups",e.groups)("parentGroup",e.group)("disableHeadCheckbox",!0)("selection",e.selection)("displayedColumns",t.DdM(7,Zr))("filter",e.filterValue)("tableId",e.tableId)}}const Mr=function(i){return{removeAuth:i}};let Lr=(()=>{class i{constructor(e,o,n,s){this.groupService=e,this.dialog=o,this.entityStorageService=n,this.authResolver=s,this.selection=new E.Ov(!0,[]),this.groups=[],this.reverse=!1,this.filterValue="",this.tableId=C._7,this.removeAuth$=this.selection.changed.pipe((0,Jt.U)(r=>r.source.selected.reduce((d,f)=>d&&this.authResolver.isAuthorized("result-removeGroupUnion_Group_Group_policy",[{id:this.group.id,beanName:"Group"}])&&this.authResolver.isAuthorized("operand-removeGroupUnion_Group_Group_policy",[f]),!0)))}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.refreshTable()}onCreate(){const e=(0,g.kZ)();e.width="1050px",e.data={groups:this.groups,theme:"group-theme",group:this.group,voId:this.group.voId,reverse:this.reverse},this.dialog.open(Tr,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}onDelete(){const e=(0,g.kZ)();e.width="450px",e.data={groups:this.selection.selected,theme:"group-theme",groupId:this.group.id,reverse:this.reverse},this.dialog.open(xr,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selection.clear(),this.groupService.getGroupUnions(this.group.id,this.reverse).subscribe(e=>{this.groups=e,this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}showReverseUnions(){this.reverse=!this.reverse,this.refreshTable()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(u.uw),t.Y36(p.fb),t.Y36(p.x4))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-relations"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:16,vars:18,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],[3,"matTooltip","matTooltipDisabled",4,"ngIf"],[3,"placeholder","filter"],[3,"change"],["class","ml-auto mr-auto",4,"ngIf"],[3,"groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId",4,"ngIf"],[3,"matTooltip","matTooltipDisabled"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return o.onCreate()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,Nr,5,8,"span",3),t.ALo(9,"async"),t.TgZ(10,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.TgZ(11,"mat-checkbox",5),t.NdJ("change",function(){return o.showReverseUnions()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.YNc(14,Or,1,0,"mat-spinner",6),t.YNc(15,Dr,1,8,"perun-web-apps-groups-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,8,"GROUP_DETAIL.SETTINGS.RELATIONS.TITLE")),t.xp6(3),t.Q6J("disabled",o.reverse),t.xp6(1),t.hij(" ",t.lcZ(7,10,"GROUP_DETAIL.SETTINGS.RELATIONS.CREATE")," "),t.xp6(2),t.Q6J("ngIf",t.VKq(16,Mr,t.lcZ(9,12,o.removeAuth$))),t.xp6(2),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Oqu(t.lcZ(13,14,"GROUP_DETAIL.SETTINGS.RELATIONS.REVERSE_UNIONS")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,H.oG,T.Ou,x.gM,V.W,Z.t,L.L,_.Ov,m.X$]}),i})();var j=l(64901),Rr=l(99168);function wr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.showAllDetails=!0)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_ALL_DETAILS")," "))}function Gr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.showAllDetails=!1)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_LESS_DETAILS")," "))}function Ur(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function Pr(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-applications-dynamic-list",8),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("tableId",e.showAllDetails?e.detailTableId:e.tableId)("searchString",e.filterValue)("member",e.member)("displayedColumns",e.showAllDetails?e.detailedDisplayedColumns:e.displayedColumns)("dateFrom",e.dateFrom)("refreshTable",e.refresh)}}let yr=(()=>{class i{constructor(e,o,n){this.registrarManager=e,this.memberManager=o,this.route=n,this.loading=!1,this.displayedColumns=["id","createdAt","type","state","user","groupName","modifiedBy"],this.detailedDisplayedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=C.d7,this.tableId=C.vq,this.dateFrom=new Date("1970-01-01")}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.memberId=Number(e.memberId),this.memberManager.getMemberById(this.memberId).subscribe(o=>{this.member=o,this.loading=!1})})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(h.uq),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-applications"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","member","displayedColumns","states","dateFrom","refreshTable"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh=!o.refresh}),t.qZA(),t.YNc(5,wr,3,3,"button",2),t.YNc(6,Gr,3,3,"button",2),t.TgZ(7,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA()(),t.YNc(8,Ur,1,0,"mat-spinner",4),t.YNc(9,Pr,2,6,"div",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"MEMBER_DETAIL.APPLICATIONS.TITLE")),t.xp6(4),t.Q6J("ngIf",!o.showAllDetails),t.xp6(1),t.Q6J("ngIf",o.showAllDetails),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.APPLICATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,Z.t,j.P,Rr.S,m.X$]}),i})();var w=l(86257),Vr=l(45703),Fr=l(79707);function Yr(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECT_RESOURCE"))}function Jr(i,a){1&i&&t._UZ(0,"mat-spinner",13)}function qr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-resource-search-select",21),t.NdJ("resourceSelected",function(n){t.CHM(e);const s=t.oxw(2);return s.setResource(n),t.KtG(s.stepper.selected.completed=!0)}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableAutoSelect",!0)("required",!0)("resource",e.selectedResource)("resources",e.filteredResources)}}const kr=function(){return[]};function Qr(i,a){1&i&&t._UZ(0,"perun-web-apps-resource-search-select",22),2&i&&t.Q6J("resources",t.DdM(1,kr))}function Br(i,a){if(1&i&&(t.TgZ(0,"div",19),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Hr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",14)(2,"perun-web-apps-facility-search-select",15),t.NdJ("facilitySelected",function(n){t.CHM(e);const s=t.oxw();return s.filterResources(n.name),t.KtG(s.stepper.selected.completed=!0)}),t.qZA()(),t.TgZ(3,"div",14),t.YNc(4,qr,1,4,"perun-web-apps-resource-search-select",16),t.YNc(5,Qr,1,2,"perun-web-apps-resource-search-select",17),t.qZA(),t.TgZ(6,"div")(7,"span",18),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",19),t._uU(11),t.qZA()(),t.TgZ(12,"div")(13,"span",18),t._uU(14),t.ALo(15,"translate"),t.qZA(),t.YNc(16,Br,2,1,"div",20),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("disableAutoSelect",!0)("facilities",e.facilities)("selectPlaceholder","DIALOGS.ADD_MEMBER_TO_RESOURCE.FILTER"),t.xp6(2),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("ngIf",e.processing),t.xp6(3),t.Oqu(t.lcZ(9,9,"DIALOGS.ADD_MEMBER_TO_RESOURCE.DESCRIPTION")),t.xp6(3),t.Oqu(e.description),t.xp6(3),t.Oqu(t.lcZ(15,11,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SERVICES")),t.xp6(2),t.Q6J("ngForOf",e.services)}}function jr(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.ADD_GROUP"))}function zr(i,a){1&i&&t._UZ(0,"mat-spinner",13)}const $r=function(){return["select","id","name","description"]};function Xr(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-groups-list",23),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("disableGroups",!0)("disableHeadCheckbox",!0)("disableRouting",!0)("groupsToDisableCheckbox",e.membersGroupsId)("groups",e.groups)("displayedColumns",t.DdM(7,$r))("selection",e.selectedGroups)}}function Kr(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.NO_GROUPS")," "))}function Wr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",25),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK")," "))}function tl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",26),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return n.stepperNext(),t.KtG(n.loadGroups())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",null===e.selectedResource||e.processing||e.loading),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CONTINUE")," ")}}function el(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onFinish())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selectedGroups.selected.length||e.processing),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT")," ")}}let il=(()=>{class i{constructor(e,o,n,s,r,d,f,v){this.dialogRef=e,this.data=o,this.resourceManager=n,this.groupManager=s,this.notificator=r,this.translate=d,this.authResolver=f,this.cd=v,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilities=[],this.filteredResources=[],this.resources=[],this.selectedResource=null,this.services=[],this.description="",this.groups=[],this.selectedGroups=new E.Ov(!1,[])}ngAfterViewInit(){this.stepper.selectionChange.subscribe(()=>{this.selectedGroups.clear()}),this.cd.detectChanges()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getRichResources(this.data.voId).subscribe(e=>{this.resources=e,this.filteredResources=e,this.getResourceFacilities(),this.loading=!1},()=>this.loading=!1)}setResource(e){this.processing=!0,this.selectedResource=e,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(o=>{this.services=o,this.processing=!1},()=>this.processing=!1),this.description=this.selectedResource.description}loadGroups(){this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(e=>{this.groups=e,this.groupManager.getAllMemberGroups(this.data.memberId).subscribe(o=>{this.membersGroupsId=new Set(o.map(n=>n.id)),this.groups.forEach(n=>{this.authResolver.isAuthorized("addMember_Group_Member_policy",[n])||this.membersGroupsId.add(n.id)}),this.processing=!1},()=>this.processing=!1)})}onFinish(){this.processing=!0,this.groupManager.addMembers(this.selectedGroups.selected[0].id,[this.data.memberId]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_TO_RESOURCE.SUCCESS")),this.dialogRef.close(!0)},()=>this.processing=!1)}onCancel(){this.dialogRef.close(!1)}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}filterResources(e){if(null==e)return;const o=e.toLowerCase(),n=this.resources.filter(s=>s.facility.name.toLowerCase().startsWith(o));this.filteredResources=n.sort((s,r)=>s.name.toLowerCase().localeCompare(r.name.toLowerCase())),this.setResource(this.filteredResources[0])}getResourceFacilities(){const e=new Set;for(const o of this.resources)e.add(o.facility.name),this.facilities.length!==e.size&&this.facilities.push(o.facility)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.xk),t.Y36(h.ff),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.x4),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-to-resource-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(w.Vq,5),2&e){let n;t.iGM(n=t.CRH())&&(o.stepper=n.first)}},decls:22,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["completed","false"],["matStepLabel",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"input-style"],[3,"disableAutoSelect","facilities","selectPlaceholder","facilitySelected"],[3,"disableAutoSelect","required","resource","resources","resourceSelected",4,"ngIf"],[3,"resources",4,"ngIf"],[1,"font-weight-bold"],[1,"ml-5"],["class","ml-5",4,"ngFor","ngForOf"],[3,"disableAutoSelect","required","resource","resources","resourceSelected"],[3,"resources"],[3,"disableGroups","disableHeadCheckbox","disableRouting","groupsToDisableCheckbox","groups","displayedColumns","selection"],["alert_type","warn"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1)(5,"mat-stepper",2)(6,"mat-step",3),t.YNc(7,Yr,2,3,"ng-template",4),t.YNc(8,Jr,1,0,"mat-spinner",5),t.YNc(9,Hr,17,13,"div",6),t.qZA(),t.TgZ(10,"mat-step"),t.YNc(11,jr,2,3,"ng-template",4),t.YNc(12,zr,1,0,"mat-spinner",5),t.YNc(13,Xr,2,8,"div",6),t.YNc(14,Kr,3,3,"perun-web-apps-alert",7),t.qZA()()(),t.TgZ(15,"div",8)(16,"button",9),t.NdJ("click",function(){return o.onCancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.YNc(19,Wr,3,3,"button",10),t.YNc(20,tl,3,8,"button",11),t.YNc(21,el,3,4,"button",12),t.qZA()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),t.xp6(3),t.Q6J("linear",!0),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",0!==o.groups.length&&!o.processing),t.xp6(1),t.Q6J("ngIf",0===o.groups.length&&!o.processing),t.xp6(3),t.hij(" ",t.lcZ(18,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==o.stepper&&0!==o.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex!==o.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex===o.stepper._steps.length-1))},dependencies:[_.sg,_.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,w.C0,w.VY,w.Vq,R.w,V.W,Vr.L,Fr.R,m.X$],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),i})();var ol=l(62109);function nl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addResource())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function al(i,a){if(1&i&&t._UZ(0,"perun-web-apps-resources-list",7),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("routingVo",!0)("resources",e.resources)("tableId",e.tableId)}}function sl(i,a){1&i&&t._UZ(0,"mat-spinner",8)}let rl=(()=>{class i{constructor(e,o,n,s,r){this.dialog=e,this.memberManager=o,this.resourceManager=n,this.route=s,this.authResolver=r,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=C.aL}ngOnInit(){this.route.parent.params.subscribe(e=>{const o=Number(e.memberId);this.memberManager.getMemberById(o).subscribe(n=>{this.member=n,this.refreshTable()})})}addResource(){const e=(0,g.kZ)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(il,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}refreshTable(){this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(e=>{this.resources=e,this.setAuthRights(),this.loading=!1})}setAuthRights(){const e={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[e])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[e]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[e,this.resources[0]]))}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.uq),t.Y36(h.xk),t.Y36(b.gz),t.Y36(p.x4))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-resources"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],[3,"disableRouting","filterValue","displayedColumns","routingVo","resources","tableId",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[3,"disableRouting","filterValue","displayedColumns","routingVo","resources","tableId"],[1,"mr-auto","ml-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,nl,3,3,"button",2),t.TgZ(6,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,al,1,6,"perun-web-apps-resources-list",4),t.qZA(),t.YNc(8,sl,1,0,"mat-spinner",5)),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"MEMBER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[_.O5,I.lW,T.Ou,Z.t,L.L,ol.C,m.X$]}),i})();var ll=l(98918),cl=l(4675),pl=l(258),ul=l(60113),dl=l(16500),_l=l(92090),ml=l(20057),gl=l(49546),hl=l(76023),fl=l(11042);function Al(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function Tl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function Il(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function bl(i,a){if(1&i&&t._UZ(0,"app-ext-sources-list",10),2&i){const e=t.oxw();t.Q6J("extSources",e.extSources)("selection",e.selection)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("tableId",e.tableId)}}let vl=(()=>{class i{constructor(e,o,n,s,r,d){this.extSourceService=e,this.dialog=o,this.notificator=n,this.translate=s,this.authResolver=r,this.entityStorageService=d,this.extSources=[],this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.S7,this.displayedColumns=[],this.translate.get("GROUP_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(f=>this.successMessage=f)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Group_ExtSource_policy",[this.group]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Group_ExtSource_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","name","type"]:["id","name","type"]}refreshTable(){this.loading=!0,this.extSourceService.getGroupExtSources(this.group.id).subscribe(e=>{this.extSources=e,this.selection.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}onAdd(){const e=(0,g.kZ)();e.width="1000px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.extSources,theme:"group-theme"},this.dialog.open(Ft,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}onRemove(){const e=(0,g.kZ)();e.width="600px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(Yt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(u.uw),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","selection","displayedColumns","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"extSources","selection","displayedColumns","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,Al,3,3,"button",2),t.YNc(6,Tl,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,Il,1,0,"mat-spinner",5),t.YNc(9,bl,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,lt.D,Z.t,L.L,m.X$]}),i})();function El(i,a){1&i&&t._UZ(0,"th",9)}function Cl(i,a){if(1&i&&(t.TgZ(0,"td",10),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij("",e,":")}}function Sl(i,a){1&i&&t._UZ(0,"th",9)}function xl(i,a){if(1&i&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.statistics.get(e.toLowerCase())," ")}}function Nl(i,a){1&i&&t._UZ(0,"tr",12)}let qt=(()=>{class i{constructor(){this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}ngOnInit(){this.dataSource=new c.by(this.rowNames)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-statistics-card"]],inputs:{rowNames:"rowNames",title:"title",statistics:"statistics"},decls:15,vars:5,consts:[[1,"mat-elevation-z3","align-card"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content")(7,"table",2),t.ynx(8,3),t.YNc(9,El,1,0,"th",4),t.YNc(10,Cl,2,1,"td",5),t.BQk(),t.ynx(11,6),t.YNc(12,Sl,1,0,"th",4),t.YNc(13,xl,2,1,"td",7),t.BQk(),t.YNc(14,Nl,1,0,"tr",8),t.qZA()()()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,3,o.title)),t.xp6(3),t.Q6J("dataSource",o.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",o.displayedColumns))},dependencies:[c.BZ,c.fO,c.w1,c.Dz,c.nj,c.ge,c.ev,c.Gk,U.a8,U.dk,U.dn,U.n5,m.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0rem;display:inline-block;vertical-align:top}"]}),i})();function Ol(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Zl(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.rowNames)("statistics",e.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}let Dl=(()=>{class i{constructor(e,o){this.voService=e,this.entityStorageService=o,this.loading=!1,this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]]),this.dataSource=new c.by}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.dataSource=new c.by(this.rowNames),this.voService.getVoMembersCountsByStatus(this.vo.id).subscribe(e=>{this.allMembersCount=0;for(const o of Object.keys(e))this.membersCount.set(o.toLowerCase(),e[o]),this.allMembersCount+=e[o];this.membersCount.set("members",this.allMembersCount),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-statistics"]],decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"rowNames","statistics","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Ol,1,0,"mat-spinner",1),t.YNc(4,Zl,2,3,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"VO_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,T.Ou,qt,m.X$]}),i})();function Ml(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Ll(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4)(2,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.voStatusCountsRowNames)("statistics",e.membersCountsByVoStatus)("title","GROUP_DETAIL.STATISTICS.VO_STATUS_COUNT"),t.xp6(1),t.Q6J("rowNames",e.groupStatusCountsRowNames)("statistics",e.membersCountsByGroupStatus)("title","GROUP_DETAIL.STATISTICS.GROUP_STATUS_COUNT")}}let Rl=(()=>{class i{constructor(e,o){this.groupService=e,this.entityStorageService=o,this.loading=!1,this.voStatusCountsRowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCountsByVoStatus=new Map,this.groupStatusCountsRowNames=["Members","Valid","Expired"],this.membersCountsByGroupStatus=new Map}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.groupService.getGroupMembersCount(this.group.id).subscribe(e=>{this.membersCountsByVoStatus.set("members",e),this.membersCountsByGroupStatus.set("members",e),this.groupService.getGroupMembersCountsByVoStatus(this.group.id).subscribe(o=>{Object.entries(o).forEach(([n,s])=>this.membersCountsByVoStatus.set(n.toLowerCase(),s)),this.groupService.getGroupMembersCountsByGroupStatus(this.group.id).subscribe(n=>{Object.entries(n).forEach(([s,r])=>this.membersCountsByGroupStatus.set(s.toLowerCase(),r)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-statistics"]],decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"rowNames","statistics","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Ml,1,0,"mat-spinner",1),t.YNc(4,Ll,3,6,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"GROUP_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,T.Ou,qt,m.X$]}),i})();function wl(i,a){1&i&&t._UZ(0,"mat-spinner",6)}const Gl=function(){return["select","id","name","description"]};function Ul(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"perun-web-apps-debounce-filter",8),t.NdJ("filter",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applyFilter(n))}),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"perun-web-apps-groups-list",9),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.s9C("placeholder",t.lcZ(2,8,"DIALOGS.ADD_GROUP_TO_REGISTRATION.FILTER_DESCRIPTION")),t.xp6(2),t.Q6J("disableMembers",!0)("groups",e.unAssignedGroups)("selection",e.selection)("disableRouting",!0)("displayedColumns",t.DdM(10,Gl))("filter",e.filterValue)("tableId",e.tableId)}}let Pl=(()=>{class i{constructor(e,o,n,s){this.dialogRef=e,this.data=o,this.groupService=n,this.registrarService=s,this.loading=!1,this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.Is}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.groupService.getAllGroups(this.data.voId).subscribe(e=>{this.unAssignedGroups=e.filter(o=>!this.data.assignedGroups.includes(o.id)),this.loading=!1})}applyFilter(e){this.filterValue=e}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.registrarService.addGroupsToAutoRegistration(this.selection.selected.map(e=>e.id)).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.ff),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-group-to-registration"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,wl,1,0,"mat-spinner",1),t.YNc(5,Ul,4,11,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_GROUP_TO_REGISTRATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_GROUP_TO_REGISTRATION.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_GROUP_TO_REGISTRATION.ADD_BUTTON")," "))},dependencies:[_.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,V.W,j.P,m.X$]}),i})();var yl=l(68675);function Vl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onAddGroup())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.ADD"),"\n"))}function Fl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",9),t.ALo(1,"translate"),t.TgZ(2,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.removeGroup())}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&i){const e=a.ngIf,o=t.oxw();t.s9C("matTooltip",t.lcZ(1,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),t.Q6J("matTooltipDisabled",0===o.selected.selected.length||e.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length||!e.removeAuth),t.xp6(1),t.hij(" ",t.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," ")}}function Yl(i,a){1&i&&t._UZ(0,"mat-spinner",11)}const Jl=function(){return["select","id","name","description"]};function ql(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",12),2&i){const e=t.oxw();t.Q6J("displayedColumns",t.DdM(6,Jl))("disableRouting",!0)("groups",e.groups)("filter",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}const kl=function(i){return{removeAuth:i}};let Ql=(()=>{class i{constructor(e,o,n,s){this.registrarService=e,this.authResolver=o,this.dialog=n,this.route=s,this.groups=[],this.selected=new E.Ov(!0,[]),this.tableId=C.CE,this.filterValue="",this.removeAuth$=this.selected.changed.pipe((0,Jt.U)(r=>r.source.selected.reduce((d,f)=>d&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"},f]),!0)),(0,yl.O)(!0))}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.voId=Number(e.voId),this.loadGroups()})}loadGroups(){this.loading=!0,this.registrarService.getGroupsToAutoRegistration(this.voId).subscribe(e=>{this.groups=e,this.selected.clear(),this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}onAddGroup(){const e=(0,g.kZ)();e.width="900px",e.data={voId:this.voId,assignedGroups:this.groups.map(n=>n.id),theme:"vo-theme"},this.dialog.open(Pl,e).afterClosed().subscribe(n=>{n&&this.loadGroups()})}removeGroup(){const e=(0,g.kZ)();e.width="450px",e.data={items:this.selected.selected.map(n=>n.name),title:"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_GROUP_DIALOG_TITLE",description:"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_GROUP_DIALOG_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(n=>{n&&this.registrarService.deleteGroupsFromAutoRegistration(this.selected.selected.map(s=>s.id)).subscribe(()=>{this.loadGroups()})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"}])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(p.x4),t.Y36(u.uw),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-manage-groups"]],decls:14,vars:18,consts:[[1,"page-subtitle"],["alert_type","info"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"displayedColumns","disableRouting","groups","filter","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"displayedColumns","disableRouting","groups","filter","selection","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-alert",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return o.loadGroups()}),t.qZA(),t.YNc(8,Vl,3,3,"button",3),t.YNc(9,Fl,5,8,"span",4),t.ALo(10,"async"),t.TgZ(11,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(12,Yl,1,0,"mat-spinner",6),t.YNc(13,ql,1,7,"perun-web-apps-groups-list",7)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",t.lcZ(3,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",t.VKq(16,kl,t.lcZ(10,14,o.removeAuth$))),t.xp6(2),t.Q6J("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,x.gM,R.w,V.W,Z.t,L.L,_.Ov,m.X$]}),i})();var Bl=l(20872),Hl=l(28499),kt=l(38383),Qt=l(96338),jl=l(95406);const zl=["stepper"];function $l(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_IDENTITY"))}function Xl(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Kl(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Wl(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL_INVALID")))}function tc(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function ec(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function ic(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function oc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATE_USERS"))}function nc(i,a){if(1&i&&(t.TgZ(0,"span",28),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("#",e.id,"")}}function ac(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-list-item")(1,"p",23),t._uU(2),t.ALo(3,"userFullName"),t.YNc(4,nc,2,1,"span",24),t.TgZ(5,"span",25),t.ALo(6,"translate"),t.TgZ(7,"button",26),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.removeUser(s))}),t.TgZ(8,"mat-icon",27),t._uU(9,"close"),t.qZA()()()()()}if(2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(2),t.hij(" ",t.lcZ(3,5,e.user)," "),t.xp6(2),t.Q6J("ngIf",e.id),t.xp6(1),t.Q6J("matTooltipDisabled",o.assignedMembers.length>1)("matTooltip",t.lcZ(6,7,"DIALOGS.CREATE_SERVICE_MEMBER.MINIMAL_USERS")),t.xp6(2),t.Q6J("disabled",1===o.assignedMembers.length)}}function sc(i,a){1&i&&t._UZ(0,"mat-spinner",29)}const rc=function(){return["checkbox","id","fullName"]};function lc(i,a){if(1&i&&t._UZ(0,"perun-web-apps-members-list",32),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(5,rc))("members",e.members)("tableId",e.tableId)("selection",e.selection)}}function cc(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",33),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")," "))}function pc(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,lc,1,6,"perun-web-apps-members-list",30),t.YNc(2,cc,3,3,"perun-web-apps-alert",31),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.firstSearchDone),t.xp6(1),t.Q6J("ngIf",!e.firstSearchDone)}}function uc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SPONSOR")," ")}function dc(i,a){1&i&&(t.TgZ(0,"mat-step"),t.YNc(1,uc,2,3,"ng-template",9),t.TgZ(2,"perun-web-apps-alert",33),t._uU(3),t.ALo(4,"translate"),t.qZA()()),2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"DIALOGS.CREATE_SERVICE_MEMBER.MANAGE_LIFECYCLE_INFO")," "))}function _c(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",4)(1,"mat-stepper",5,6)(3,"mat-step",7)(4,"form",8),t.YNc(5,$l,2,3,"ng-template",9),t.TgZ(6,"div",10)(7,"mat-form-field")(8,"mat-label"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._UZ(11,"input",11),t.YNc(12,Xl,3,3,"mat-error",12),t.qZA(),t.TgZ(13,"mat-form-field")(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._UZ(17,"input",13),t.YNc(18,Kl,3,3,"mat-error",12),t.YNc(19,Wl,3,3,"mat-error",12),t.qZA(),t.TgZ(20,"mat-form-field")(21,"mat-label"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._UZ(24,"input",14),t.YNc(25,tc,3,3,"mat-error",12),t.qZA(),t.TgZ(26,"mat-form-field")(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._UZ(30,"input",15),t.YNc(31,ec,3,3,"mat-error",12),t.qZA()()()(),t.TgZ(32,"mat-step",7)(33,"form",8),t.YNc(34,ic,2,3,"ng-template",9),t.TgZ(35,"app-login-password-form-with-generate-option",16),t.NdJ("parsedRulesOutput",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.parsedRules=n)}),t.qZA()()(),t.TgZ(36,"mat-step"),t.YNc(37,oc,2,3,"ng-template",9),t.TgZ(38,"h6"),t._uU(39),t.ALo(40,"translate"),t.qZA(),t.TgZ(41,"mat-list"),t.YNc(42,ac,10,9,"mat-list-item",17),t.qZA(),t.TgZ(43,"h6",18),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"mat-form-field",19)(47,"input",20),t.NdJ("keyup.enter",function(){t.CHM(e);const n=t.oxw();return t.KtG(0!==n.searchCtrl.value.length&&n.onSearchByString())}),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"button",21),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSearchByString())}),t.TgZ(50,"mat-icon"),t._uU(51,"search"),t.qZA()(),t.TgZ(52,"button",22),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addUsers())}),t._uU(53),t.ALo(54,"translate"),t.qZA(),t.YNc(55,sc,1,0,"mat-spinner",2),t.YNc(56,pc,3,2,"div",12),t.qZA(),t.YNc(57,dc,5,3,"mat-step",12),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",e.firstFormGroup),t.xp6(1),t.Q6J("formGroup",e.firstFormGroup),t.xp6(5),t.Oqu(t.lcZ(10,28,"DIALOGS.CREATE_SERVICE_MEMBER.NAME")),t.xp6(3),t.Q6J("ngIf",e.firstFormGroup.get("nameCtrl").hasError("required")),t.xp6(3),t.Oqu(t.lcZ(16,30,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL")),t.xp6(3),t.Q6J("ngIf",e.firstFormGroup.get("emailCtrl").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("emailCtrl").hasError("pattern")),t.xp6(3),t.Oqu(t.lcZ(23,32,"DIALOGS.CREATE_SERVICE_MEMBER.SUBJECT_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("issuerCtrl").value&&0!==e.firstFormGroup.get("issuerCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("subjectCtrl").hasError("required")),t.xp6(3),t.Oqu(t.lcZ(29,34,"DIALOGS.CREATE_SERVICE_MEMBER.ISSUER_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("subjectCtrl").value&&0!==e.firstFormGroup.get("subjectCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("issuerCtrl").hasError("required")),t.xp6(1),t.Q6J("stepControl",e.secondFormGroup),t.xp6(1),t.Q6J("formGroup",e.secondFormGroup),t.xp6(2),t.Q6J("formGroup",e.secondFormGroup),t.xp6(4),t.Oqu(t.lcZ(40,36,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),t.xp6(3),t.Q6J("ngForOf",e.assignedMembers),t.xp6(2),t.Oqu(t.lcZ(45,38,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),t.xp6(3),t.s9C("placeholder",t.lcZ(48,40,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_PLACEHOLDER")),t.Q6J("formControl",e.searchCtrl),t.xp6(2),t.Q6J("disabled",e.loading||0===e.searchCtrl.value.length),t.xp6(3),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(54,42,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")," "),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.findSponsorsAuth&&0!==e.voSponsors.length&&e.setSponsorshipAuth)}}function mc(i,a){1&i&&t._UZ(0,"mat-spinner",29)}function gc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",39),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.BACK")," "))}function hc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.stepperNext())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",e.getStepperNextConditions()),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," ")}}function fc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onCreate(!1))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",e.firstFormGroup.invalid||"Not selected"!==e.secondFormGroup.get("namespaceCtrl").value&&e.secondFormGroup.invalid),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE")," ")}}function Ac(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onCreate(!0))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",e.firstFormGroup.invalid||"Not selected"!==e.secondFormGroup.get("namespaceCtrl").value&&e.secondFormGroup.invalid),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_AND_SPONSOR")," ")}}function Tc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",34)(1,"button",35),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,gc,3,3,"button",36),t.TgZ(5,"span",25),t.ALo(6,"translate"),t.YNc(7,hc,3,8,"button",37),t.qZA(),t.YNc(8,fc,3,4,"button",38),t.YNc(9,Ac,3,4,"button",38),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("matTooltipDisabled",0===e.selection.selected.length)("matTooltip",t.lcZ(6,9,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT_BUTTON_DISABLED_TOOLTIP")),t.xp6(2),t.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex!==e.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",e.findSponsorsAuth&&0!==e.voSponsors.length&&e.setSponsorshipAuth&&void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1)}}let Ic=(()=>{class i{constructor(e,o,n,s,r,d,f,v,D,z,_t,hu){this.dialogRef=e,this.data=o,this.membersManagerService=n,this.usersManagerService=s,this.notificator=r,this.translate=d,this.store=f,this.apiRequestConfiguration=v,this._formBuilder=D,this.cd=z,this.authResolver=_t,this.findSponsors=hu,this.parsedRules=new Map,this.firstSearchDone=!1,this.searchCtrl=new A.p4(""),this.members=[],this.selection=new E.Ov(!0,[]),this.tableId=C.j1,this.assignedMembers=[],this.candidate={beanName:"",id:0},this.successMessageMember="",this.successMessagePwd="",this.processing=!1,this.voSponsors=[],d.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(mt=>this.successMessageMember=mt),d.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(mt=>this.successMessagePwd=mt)}ngAfterViewInit(){this.cd.detectChanges()}ngOnInit(){this.theme=this.data.theme,this.firstFormGroup=this._formBuilder.group({nameCtrl:["",A.kI.required],emailCtrl:["",[A.kI.required,A.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[A.kI.pattern("^[a-z][a-z0-9_-]+$"),A.kI.maxLength(15),A.kI.minLength(2)]],passwordCtrl:["",A.kI.required,[(0,Hl.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:g.dN.passwordMatchValidator});const e=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(e.id).subscribe(o=>{let n={};for(const s of o)s.voId===this.data.vo.id&&(n=s);n.user=e,this.assignedMembers.push(n)}),this.setSponsorshipAuth=this.authResolver.isAuthorized("setSponsorshipForMember_Member_User_LocalDate_policy",[this.data.vo,this.store.getPerunPrincipal().user]),this.findSponsorsAuth=this.findSponsors.findSponsorsAuth(this.data.vo),this.findSponsorsAuth&&this.findSponsors.getSponsors(this.data.vo.id).subscribe(o=>{this.voSponsors=o})}onCreate(e){this.processing=!0,this.candidate.firstName="",this.candidate.lastName=this.firstFormGroup.get("nameCtrl").value,this.candidate.attributes={},this.candidate.attributes["urn:perun:member:attribute-def:def:mail"]=this.firstFormGroup.get("emailCtrl").value;const o=this.firstFormGroup.get("subjectCtrl");o?.value&&(this.candidate.userExtSource={},this.candidate.userExtSource.login=o.value,this.candidate.userExtSource.loa=0,this.candidate.userExtSource.extSource={},this.candidate.userExtSource.extSource.name=this.firstFormGroup.get("issuerCtrl").value,this.candidate.userExtSource.extSource.type="cz.metacentrum.perun.core.impl.ExtSourceX509");const n=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),s=this.parsedRules.get(n),r=`urn:perun:user:attribute-def:def:login-namespace:${n}`;"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&"disabled"===s.login?this.usersManagerService.generateAccountForName(n,this.firstFormGroup.get("nameCtrl").value).subscribe(d=>{this.candidate.attributes[r]=d[r],this.createSpecificMember(e)},()=>this.processing=!1):("Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&(this.candidate.attributes[r]=this.secondFormGroup.get("loginCtrl").value),this.createSpecificMember(e))}createSpecificMember(e){this.membersManagerService.createSpecificMember({vo:this.data.vo.id,specificUserType:"SERVICE",specificUserOwners:this.assignedMembers.map(o=>o.user),candidate:this.candidate}).subscribe(o=>{this.membersManagerService.validateMemberAsync(o.id).subscribe(n=>{this.notificator.showSuccess(this.successMessageMember),"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value?this.setPassword(n,this.secondFormGroup.get("generatePasswordCtrl").value,e):this.dialogRef.close({result:!0,sponsor:e,voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth,serviceMemberId:o.id})},()=>this.processing=!1)},()=>this.processing=!1)}setPassword(e,o,n){const s=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),r=this.secondFormGroup.get("passwordCtrl").value;if(o){if("disabled"===this.parsedRules.get(s).login)return void this.validateMember(e.id,n);this.usersManagerService.reserveRandomPassword(e.userId,s).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,s).subscribe(()=>{this.validateMember(e.id,n,!1)},()=>{this.processing=!1})},()=>{this.processing=!1})}else this.usersManagerService.reservePasswordForUser({user:e.userId,namespace:s,password:r}).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,s).subscribe(()=>{this.validateMember(e.id,n)},()=>{this.processing=!1,this.dialogRef.close({result:!0,sponsor:n,voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth,serviceMemberId:e.id})})},()=>{this.processing=!1,this.dialogRef.close({result:!0,sponsor:n,voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth,serviceMemberId:e.id})})}validateMember(e,o,n=!0){this.membersManagerService.validateMemberAsync(e).subscribe(()=>{n&&this.notificator.showSuccess(this.successMessagePwd),this.dialogRef.close({result:!0,sponsor:o,voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth,serviceMemberId:e})},()=>{this.processing=!1})}onCancel(){this.dialogRef.close({result:!1,sponsor:!1})}onSearchByString(){this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.vo.id,[""],this.searchCtrl.value).subscribe(e=>{this.members=e.filter(o=>!o.user.specificUser),this.firstSearchDone=!0,this.loading=!1})}addUsers(){const e=this.assignedMembers.map(o=>o.id);this.selection.selected.forEach(o=>{e.includes(o.id)||this.assignedMembers.push(o)}),this.selection.clear()}removeUser(e){this.assignedMembers=this.assignedMembers.filter(o=>o.id!==e.id)}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.firstFormGroup.invalid||this.firstFormGroup.pending;case 1:return this.secondFormGroup.invalid||this.secondFormGroup.pending;case 2:return this.selection.selected.length>0;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.d6),t.Y36(p.F5),t.Y36(A.QS),t.Y36(t.sBO),t.Y36(p.x4),t.Y36(p.Mf))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-service-member-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(zl,5),2&e){let n;t.iGM(n=t.CRH())&&(o.stepper=n.first)}},decls:7,vars:9,consts:[[1,"mat-dialog-title"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],[3,"formGroup"],["matStepLabel",""],[1,"display-flex"],["formControlName","nameCtrl","matInput","","required",""],[4,"ngIf"],["formControlName","emailCtrl","matInput","","required","","type","email"],["formControlName","subjectCtrl","matInput","",3,"required"],["formControlName","issuerCtrl","matInput","",3,"required"],[3,"formGroup","parsedRulesOutput"],[4,"ngFor","ngForOf"],[1,"mt-3"],[1,"mr-2","w-50"],["autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["color","primary","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",3,"disabled","click"],[1,"truncate","center-content"],["class","text-muted",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-icon-button","",1,"ml-1",3,"disabled","click"],[1,"margin-bottom"],[1,"text-muted"],[1,"ml-auto","mr-auto"],[3,"disableRouting","displayedColumns","members","tableId","selection",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"disableRouting","displayedColumns","members","tableId","selection"],["alert_type","info"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,_c,58,44,"div",1),t.YNc(5,mc,1,0,"mat-spinner",2),t.YNc(6,Tc,10,11,"div",3),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.CREATE_SERVICE_MEMBER.TITLE")),t.xp6(2),t.Q6J("ngIf",!o.processing),t.xp6(1),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",!o.processing))},dependencies:[_.sg,_.O5,N.TO,N.KE,N.hX,y.Nt,A._Y,A.Fj,A.JJ,A.JL,A.Q7,A.oH,A.sg,A.u,P.Hw,I.lW,u.xY,u.H8,T.Ou,x.gM,w.C0,w.VY,w.Vq,R.w,kt.O,Qt.i$,Qt.Tg,jl.r,m.X$,B.d],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input-disabled[_ngcontent-%COMP%]{pointer-events:none;color:#888}.truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}.margin-bottom[_ngcontent-%COMP%]{margin-bottom:6px}"]}),i})();var bc=l(53455),vc=l(91828);function Ec(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onRemoveMembers())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.selection.isEmpty()),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.DELETE"),"\n")}}function Cc(i,a){1&i&&t._UZ(0,"mat-spinner",8)}const Sc=function(){return["checkbox","id","type","fullName","status"]};function xc(i,a){if(1&i&&t._UZ(0,"perun-web-apps-members-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",t.DdM(6,Sc))("selection",e.selection)("disableStatusChange",!0)("filter",e.searchString)("members",e.members)}}let Nc=(()=>{class i{constructor(e,o,n,s,r){this.membersManager=e,this.dialog=o,this.authResolver=n,this.authzService=s,this.entityStorageService=r,this.members=[],this.selection=new E.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=C._c}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.refresh()}createServiceMember(){const e=(0,g.kZ)();e.width="800px",e.data={vo:this.vo,theme:"vo-theme"},this.dialog.open(Ic,e).afterClosed().subscribe(n=>{n.result&&(n.sponsor?(e.data={voId:this.vo.id,theme:"vo-theme",voSponsors:n.voSponsors,findSponsorsAuth:n.findSponsorsAuth,serviceMemberId:n.serviceMemberId},this.dialog.open(vc.b,e).afterClosed().subscribe(()=>{this.refresh()})):this.refresh())})}onRemoveMembers(){const e=(0,g.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(bc.X,e).afterClosed().subscribe(n=>{n&&(this.refresh(),this.selection.clear())})}applyFilter(e){this.searchString=e}refresh(){this.loading=!0,this.membersManager.findCompleteRichMembersForVo(this.vo.id,[""],"(Service)").subscribe(e=>{this.members=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.uq),t.Y36(u.uw),t.Y36(p.x4),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-service-members"]],decls:11,vars:10,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","selection","disableStatusChange","filter","members",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","selection","disableStatusChange","filter","members"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh()}),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return o.createServiceMember()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.YNc(7,Ec,3,4,"button",3),t.TgZ(8,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,Cc,1,0,"mat-spinner",5),t.YNc(10,xc,1,7,"perun-web-apps-members-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.TITLE")),t.xp6(4),t.hij(" ",t.lcZ(6,8,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.CREATE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.SERVICE_MEMBERS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,Z.t,L.L,kt.O,m.X$]}),i})();var K=l(71992),Bt=l(87831);const Oc=["stepper"];function Zc(i,a){1&i&&t._UZ(0,"mat-spinner",4)}function Dc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.SELECTION_STEP"))}function Mc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CONFIRMATION_STEP"))}function Lc(i,a){1&i&&t._UZ(0,"th",19)}function Rc(i,a){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function wc(i,a){1&i&&t._UZ(0,"tr",21)}function Gc(i,a){1&i&&t._UZ(0,"tr",22)}function Uc(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"table",12),t.ynx(4,13),t.YNc(5,Lc,1,0,"th",14),t.YNc(6,Rc,2,1,"td",15),t.BQk(),t.YNc(7,wc,1,0,"tr",16),t.YNc(8,Gc,1,0,"tr",17),t.qZA(),t.TgZ(9,"perun-web-apps-alert",18),t._uU(10),t.ALo(11,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CONFIRM")),t.xp6(2),t.Q6J("dataSource",e.voSelection.selected),t.xp6(4),t.Q6J("matHeaderRowDef",e.columns),t.xp6(1),t.Q6J("matRowDefColumns",e.columns),t.xp6(1),t.Q6J("alert_type","warn"),t.xp6(1),t.Oqu(t.lcZ(11,8,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.WARNING"))}}function Pc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step"),t.YNc(4,Dc,2,3,"ng-template",8),t.TgZ(5,"perun-web-apps-immediate-filter",9),t.NdJ("filter",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.voFilter=n)}),t.qZA(),t._UZ(6,"perun-web-apps-vos-list",10),t.qZA(),t.TgZ(7,"mat-step"),t.YNc(8,Mc,2,3,"ng-template",8),t.YNc(9,Uc,12,10,"ng-template",11),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(4),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.FILTER_VOS"),t.xp6(1),t.Q6J("vos",e.vos)("selection",e.voSelection)("displayedColumns",e.displayedColumns)("filterValue",e.voFilter)("disableRouting",!0)}}function yc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.BACK")," "))}function Vc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.stepperNext())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.voSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.NEXT")," ")}}function Fc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.addMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.ADD")," "))}function Yc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",23)(1,"button",24),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.close())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",25),t.YNc(5,yc,3,3,"button",26),t.YNc(6,Vc,3,4,"button",27),t.YNc(7,Fc,3,3,"button",28),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,4,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CANCEL")," "),t.xp6(3),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",1!==(null==e.stepper?null:e.stepper.selectedIndex)),t.xp6(1),t.Q6J("ngIf",1===(null==e.stepper?null:e.stepper.selectedIndex))}}let Jc=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.vosService=o,this.entityStorage=n,this.notificator=s,this.translator=r,this.loading=!1,this.theme="vo-theme",this.displayedColumns=["checkbox","id","name","shortName"],this.columns=["name"],this.vos=[],this.voSelection=new E.Ov(!1,[]),this.voFilter=""}ngOnInit(){this.loading=!0,this.voId=this.entityStorage.getEntity().id,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.vosService.getAllVos().subscribe(o=>{const n=e.memberVos.map(s=>s.id);this.vos=o.filter(s=>!n.includes(s.id)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}close(){this.dialogRef.close(!1)}stepperNext(){this.stepper.next()}stepperPrevious(){this.stepper.previous()}addMemberOrganization(){this.loading=!0,this.vosService.addMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.YF),t.Y36(p.fb),t.Y36(p.V6),t.Y36(m.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-organization-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(Oc,5),2&e){let n;t.iGM(n=t.CRH())&&(o.stepper=n.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],["matStepLabel",""],[3,"placeholder","filter"],[3,"vos","selection","displayedColumns","filterValue","disableRouting"],["matStepContent",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],[1,"ml-auto"],["mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Zc,1,0,"mat-spinner",1),t.YNc(5,Pc,10,7,"div",2),t.YNc(6,Yc,8,6,"div",3),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,7,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.TITLE")," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,I.lW,u.uh,u.xY,u.H8,T.Ou,w.C0,w.VY,w.Vq,w.BY,R.w,Bt.Z,L.L,m.X$]}),i})();function qc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD"),"\n"))}function kc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.removeMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.voSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE"),"\n")}}function Qc(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function Bc(i,a){if(1&i&&t._UZ(0,"perun-web-apps-vos-list",10),2&i){const e=t.oxw();t.Q6J("vos",e.memberVos)("selection",e.voSelection)("filterValue",e.filterValue)("disableRouting",!e.auth)("displayedColumns",e.displayedColumns)}}let Hc=(()=>{class i{constructor(e,o,n,s,r,d,f){this.dialog=e,this.vosService=o,this.entityStorage=n,this.authResolver=s,this.reloadDetailService=r,this.notificator=d,this.translator=f,this.loading=!1,this.voSelection=new E.Ov(!1,[]),this.displayedColumns=["checkbox","id","shortName","name"],this.filterValue="",this.auth=!1,this.memberVos=[]}ngOnInit(){this.auth=this.authResolver.isPerunAdmin(),this.voId=this.entityStorage.getEntity().id,this.refresh()}refresh(){this.loading=!0,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.voId=e.vo.id,this.memberVos=e.memberVos,this.voSelection.clear(),this.loading=!1},()=>this.loading=!1)}addMemberOrganization(){const e=(0,g.kZ)();e.width="750px",this.dialog.open(Jc,e).afterClosed().subscribe(o=>{o&&(this.reloadDetailService.reloadEntityDetail(),this.refresh())})}removeMemberVos(){this.vosService.removeMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE")),this.reloadDetailService.reloadEntityDetail(),this.refresh()})}removeMemberOrganization(){const e=(0,g.kZ)();e.width="550px",e.data={items:this.voSelection.selected.map(o=>o.name),title:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE",alert:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.WARNING",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(o=>{o&&this.removeMemberVos()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.YF),t.Y36(p.fb),t.Y36(p.x4),t.Y36(tt.G),t.Y36(p.V6),t.Y36(m.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-member-organizations"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["mat-flat-button","","class","mr-2 action-button","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"vos","selection","filterValue","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"vos","selection","filterValue","disableRouting","displayedColumns"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(4,qc,3,3,"button",2),t.YNc(5,kc,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(7,Qc,1,0,"mat-spinner",5),t.YNc(8,Bc,1,5,"perun-web-apps-vos-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,Bt.Z,Z.t,L.L,m.X$]}),i})();const jc=function(){return["select","id","name","description"]};function zc(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",7),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("groups",e.groups)("selection",e.selected)("filter",e.filterValue)("displayedColumns",t.DdM(7,jc))("disableRouting",!0)("noGroupsAlert","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.NO_GROUPS_FOUND_ALERT")}}function $c(i,a){1&i&&t._UZ(0,"mat-spinner",8)}function Xc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",9)(1,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.close())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",11),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.confirm())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.ALLOW")," ")}}const Kc=function(i){return{parentVo:i}};let Wc=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.groupService=n,this.notificator=s,this.translate=r,this.loading=!1,this.selected=new E.Ov(!0,[]),this.tableId=C.uI,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voId=this.data.voId,this.parentVo=this.data.parentVo,this.groupService.getAllGroups(this.voId).subscribe(e=>{this.groups=e.filter(o=>!this.data.allowedGroupsIds.includes(o.id)),this.loading=!1})}applyFilter(e){this.filterValue=e}close(){this.dialogRef.close(!1)}confirm(){this.loading=!0;const e=this.selected.selected.map(o=>o.id);this.groupService.allowGroupsToHierarchicalVo(e,this.parentVo.id).subscribe({next:()=>{this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS")),this.loading=!1},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.ff),t.Y36(p.V6),t.Y36(p.Te))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-group-hierarchical-include-dialog"]],decls:12,vars:16,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","info"],[3,"placeholder","filter"],["theme","vo-theme",3,"tableId","groups","selection","filter","displayedColumns","disableRouting","noGroupsAlert",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","filter","displayedColumns","disableRouting","noGroupsAlert"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1)(5,"perun-web-apps-alert",2),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,zc,1,8,"perun-web-apps-groups-list",4),t.YNc(10,$c,1,0,"mat-spinner",5),t.qZA(),t.YNc(11,Xc,7,7,"div",6),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,9,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.TITLE")," "),t.xp6(4),t.hij(" ",t.xi3(7,11,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.INFO",t.VKq(14,Kc,o.parentVo.name))," "),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SEARCH"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,R.w,V.W,L.L,m.X$]}),i})();function tp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",9),t.NdJ("voSelected",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.voSelected(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("vos",e.parentVos)}}const ep=function(){return["select","id","name","description"]};function ip(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",10),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("groups",e.allowedGroups)("selection",e.selected)("displayedColumns",t.DdM(5,ep))("noGroupsAlert","VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.NO_GROUPS_ALLOWED_ALERT")}}function op(i,a){1&i&&t._UZ(0,"mat-spinner",11)}let np=(()=>{class i{constructor(e,o,n,s,r,d,f){this.dialog=e,this.entityStorage=o,this.voService=n,this.groupService=s,this.notificator=r,this.translate=d,this.changeDetector=f,this.loading=!1,this.parentVos=[],this.allowedGroups=[],this.selected=new E.Ov(!0,[]),this.tableId=C.$t}ngOnInit(){this.loading=!0,this.vo=this.entityStorage.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.parentVos=e.parentVos,this.loading=!1},()=>this.loading=!1)}voSelected(e){this.selectedParentVo=e,this.loadAllowedGroups(),this.changeDetector.detectChanges()}loadAllowedGroups(){this.loading=!0,this.selected.clear(),this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.selectedParentVo.id,this.vo.id).subscribe(e=>{this.allowedGroups=e,this.loading=!1})}addGroupsInclusion(){const e=(0,g.kZ)();e.width="750px",e.data={theme:"vo-theme",voId:this.vo.id,parentVo:this.selectedParentVo,allowedGroupsIds:this.allowedGroups.map(o=>o.id)},this.dialog.open(Wc,e).afterClosed().subscribe(o=>{o&&this.loadAllowedGroups()})}removeGroupsInclusion(){const e=(0,g.kZ)();e.width="750px",e.data={theme:"vo-theme",title:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.TITLE",description:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.DESCRIPTION",items:this.selected.selected.map(o=>o.name),alert:this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.ALERT",{parentVo:this.selectedParentVo.name}),type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(o=>{o&&this.disallowGroups()})}disallowGroups(){this.loading=!0;const e=this.selected.selected.map(o=>o.id);this.groupService.disallowGroupsToHierarchicalVo(e,this.selectedParentVo.id).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS")),this.loadAllowedGroups()},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(p.fb),t.Y36(h.YF),t.Y36(h.ff),t.Y36(p.V6),t.Y36(p.Te),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-hierarchical-inclusion"]],decls:15,vars:13,consts:[[1,"page-subtitle"],[1,"display-flex"],[3,"click"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"vo-search-select"],[3,"vos","voSelected",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","displayedColumns","noGroupsAlert",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"vos","voSelected"],["theme","vo-theme",3,"tableId","groups","selection","displayedColumns","noGroupsAlert"],[1,"ml-auto","mr-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"perun-web-apps-refresh-button",2),t.NdJ("click",function(){return o.loadAllowedGroups()}),t.qZA(),t.TgZ(5,"button",3),t.NdJ("click",function(){return o.addGroupsInclusion()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",4),t.NdJ("click",function(){return o.removeGroupsInclusion()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",5),t.YNc(12,tp,1,1,"perun-web-apps-vo-search-select",6),t.qZA()(),t.YNc(13,ip,1,6,"perun-web-apps-groups-list",7),t.YNc(14,op,1,0,"mat-spinner",8)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,7,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.TITLE")),t.xp6(5),t.hij(" ",t.lcZ(7,9,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.ADD")," "),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,11,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.REMOVE")," "),t.xp6(3),t.Q6J("ngIf",o.parentVos.length>0),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[_.O5,I.lW,T.Ou,V.W,Z.t,rt.M,m.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.vo-search-select[_ngcontent-%COMP%]{width:400px;padding-top:10px;margin-left:5px}"]}),i})();var ap=l(61639),sp=l(4811),rp=l(83370);let lp=(()=>{class i{constructor(e,o,n,s,r){this.data=e,this.dialogRef=o,this.store=n,this.voService=s,this.notificator=r,this.selection=new E.Ov(!1,[]),this.loading=!1,this.attrNames=[S.r.MEMBER_DEF_MAIL,S.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.displayedColumns=["checkbox","id","fullName","email","logins"],this.tableId=C.bj,this.filter=""}ngOnInit(){this.selection.changed.subscribe(e=>{this.ban=this.data.bans.find(o=>o.memberId===e.source.selected[0]?.id)})}cancel(){this.dialogRef.close(!1)}submitBan(e){this.ban?this.updateBan(e):this.banMember(e)}setFilter(e){this.filter=e,this.selection.clear()}banMember(e){this.loading=!0,this.voService.setVoBan({banOnVo:{memberId:this.selection.selected[0].id,description:e.description,validityTo:e.validity,id:0,beanName:"BanOnVo"}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.ADD_BAN.SUCCESS_MEMBER"),this.dialogRef.close(!0)},error:()=>this.loading=!1})}updateBan(e){this.loading=!0,this.voService.updateVoBan({banOnVo:{id:this.ban.id,beanName:"BanOnVo",voId:this.ban.voId,memberId:this.ban.memberId,description:e.description,validityTo:e.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.WI),t.Y36(u.so),t.Y36(p.d6),t.Y36(h.YF),t.Y36(p.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-vo-ban-dialog"]],decls:3,vars:12,consts:[[3,"loading","disabled","theme","ban","add","cancel"],[3,"placeholder","filter"],[3,"attrNames","selection","tableId","disableRouting","displayedColumns","searchString","voId"]],template:function(e,o){1&e&&(t.TgZ(0,"app-add-ban-dialog",0),t.NdJ("add",function(s){return o.submitBan(s)})("cancel",function(){return o.cancel()}),t.TgZ(1,"perun-web-apps-debounce-filter",1),t.NdJ("filter",function(s){return o.setFilter(s)}),t.qZA(),t._UZ(2,"perun-web-apps-members-dynamic-list",2),t.qZA()),2&e&&(t.Q6J("loading",o.loading)("disabled",0===o.selection.selected.length)("theme",o.data.theme)("ban",o.ban),t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_BAN.FILTER"),t.xp6(1),t.Q6J("attrNames",o.attrNames)("selection",o.selection)("tableId",o.tableId)("disableRouting",!0)("displayedColumns",o.displayedColumns)("searchString",o.filter)("voId",o.data.entityId))},dependencies:[j.P,sp.m,rp.u]}),i})();var Ht=l(32316),ct=l(19516),jt=l(73358),zt=l(91880);function cp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.BANS.ADD"),"\n"))}function pp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.BANS.REMOVE"),"\n")}}function up(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-ban-on-entity-list",10),t.NdJ("updateBan",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.update(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("bans",e.bans)("selection",e.selection)("updatePolicy","updateBan_BanOnVo_policy")("displayedColumns",e.displayedColumns)("filter",e.filter)}}function dp(i,a){1&i&&(t.TgZ(0,"div",11),t._UZ(1,"mat-spinner"),t.qZA())}let _p=(()=>{class i{constructor(e,o,n,s,r,d){this.voService=e,this.entityService=o,this.authResolver=n,this.dialog=s,this.notificator=r,this.userName=d,this.loading=!1,this.bans=[],this.removeAuth=!1,this.filter="",this.selection=new E.Ov(!1,[]),this.displayedColumns=["select","banId","subjectId","subjectName","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.vo=this.entityService.getEntity(),this.addAuth=this.authResolver.isAuthorized("setBan_BanOnVo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("vo-removeBan_int_policy",[this.vo]),this.refresh()}refresh(){this.loading=!0,this.voService.getEnrichedBansForVo(this.vo.id).subscribe({next:e=>{this.bans=e,this.selection.clear(),this.loading=!1},error:()=>this.loading=!1})}add(){const e=(0,g.kZ)();e.width="850px",e.data={entityId:this.vo.id,theme:"vo-theme",bans:this.bans.map(n=>n.ban)},this.dialog.open(lp,e).afterClosed().subscribe(n=>{n&&this.refresh()})}remove(){const e=(0,g.kZ)();e.width="550px",e.data={theme:"vo-theme",title:"DIALOGS.REMOVE_BAN.TITLE",description:"DIALOGS.REMOVE_BAN.DESCRIPTION",items:[this.userName.transform(this.selection.selected[0].member.user)],type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(n=>{n&&this.voService.removeVoBan(this.selection.selected[0].ban.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.REMOVE_BAN.SUCCESS"),this.refresh()})})}update(e){const o=(0,g.kZ)();o.width="600px",o.data={ban:e.ban,theme:"vo-theme"},this.dialog.open(Ht.A,o).afterClosed().subscribe(s=>{s&&this.refresh()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(p.fb),t.Y36(p.x4),t.Y36(u.uw),t.Y36(p.V6),t.Y36(ct.dp))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-bans"]],features:[t._Bn([ct.dp])],decls:11,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mt-2","search-field",3,"placeholder","filter"],[1,"position-relative"],[3,"bans","selection","updatePolicy","displayedColumns","filter","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["spinner",""],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"bans","selection","updatePolicy","displayedColumns","filter","updateBan"],[1,"spinner-container"]],template:function(e,o){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(4,cp,3,3,"button",2),t.YNc(5,pp,3,4,"button",3),t.TgZ(6,"perun-web-apps-debounce-filter",4),t.NdJ("filter",function(s){return o.filter=s}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,up,1,5,"perun-web-apps-ban-on-entity-list",6),t.qZA(),t.YNc(9,dp,2,0,"ng-template",null,7,t.W1O)),2&e){const n=t.MAs(10);t.xp6(1),t.hij(" ",t.lcZ(2,6,"VO_DETAIL.SETTINGS.BANS.TITLE"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.BANS.FILTER"),t.xp6(2),t.Q6J("perunWebAppsLoader",o.loading)("perunWebAppsLoaderIndicator",n)}},dependencies:[_.O5,I.lW,T.Ou,Z.t,j.P,jt.e,zt.s,m.X$]}),i})();function mp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-ban-on-entity-list",5),t.NdJ("updateBan",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.update(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("bans",e.bans)("updatePolicy","updateBan_BanOnVo_policy")("displayedColumns",e.displayedColumns)}}function gp(i,a){1&i&&(t.TgZ(0,"div",6),t._UZ(1,"mat-spinner"),t.qZA())}let hp=(()=>{class i{constructor(e,o,n){this.voService=e,this.entityService=o,this.dialog=n,this.loading=!1,this.bans=[],this.filter="",this.displayedColumns=["banId","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.member=this.entityService.getEntity(),this.refresh()}refresh(){this.loading=!0,this.voService.getVoBanForMember(this.member.id).subscribe({next:e=>{this.bans=null===e?[]:[{ban:e,member:null,vo:null}],this.loading=!1},error:()=>this.loading=!1})}update(e){const o=(0,g.kZ)();o.width="600px",o.data={ban:e.ban,theme:"vo-theme"},this.dialog.open(Ht.A,o).afterClosed().subscribe(s=>{s&&this.refresh()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(p.fb),t.Y36(u.uw))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-bans"]],decls:8,vars:5,consts:[[1,"page-subtitle"],[3,"click"],[1,"position-relative"],[3,"bans","updatePolicy","displayedColumns","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["spinner",""],[3,"bans","updatePolicy","displayedColumns","updateBan"],[1,"spinner-container"]],template:function(e,o){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.TgZ(4,"div",2),t.YNc(5,mp,1,3,"perun-web-apps-ban-on-entity-list",3),t.qZA(),t.YNc(6,gp,2,0,"ng-template",null,4,t.W1O)),2&e){const n=t.MAs(7);t.xp6(1),t.hij(" ",t.lcZ(2,3,"MEMBER_DETAIL.BANS.TITLE"),"\n"),t.xp6(4),t.Q6J("perunWebAppsLoader",o.loading)("perunWebAppsLoaderIndicator",n)}},dependencies:[T.Ou,Z.t,jt.e,zt.s,m.X$]}),i})();var fp=l(35265);const Ap=[{path:"",component:Kt.Y},{path:":voId",component:Ue,canActivateChild:[K.a],children:[{path:"",component:Te,data:{animation:"VoOverviewPage"}},{path:"attributes",component:fi,data:{animation:"VoAttributesPage"}},{path:"groups",component:Ie.G,data:{animation:"VoGroupsPage"}},{path:"members",component:be.y,data:{animation:"VoMembersPage"}},{path:"resources",component:mi,children:[{path:"",component:la,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:ca.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:pa.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Ca,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:gi.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:at,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:fl.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:Nc,data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:Dl,data:{animation:"VoStatisticsPage"}},{path:"settings",component:hi,children:[{path:"",component:Ii,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:Ui,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:yi,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:Jo.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:Mt,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:Ql},{path:"notifications",component:Ys,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:dr,data:{animation:"VoSettingsExtSourcesPage"}},{path:"memberOrganizations",component:Hc,data:{animation:"VoSettingsMemberOrganizationsPage"}},{path:"hierarchicalInclusion",component:np,data:{animation:"VoSettingsHierarchicalInclusionComponent"}},{path:"bans",component:_p,data:{animation:"VoSettingsBansComponent"}}]}]},{path:":voId/members/:memberId",component:he,canActivateChild:[K.a],children:[{path:"",component:ri,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:ra,data:{animation:"MemberAttributesPage"}},{path:"groups",component:li.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:yr,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:at,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:rl,data:{animation:"MemberResourcesPage"}},{path:"bans",component:hp,data:{animation:"MemberBansPage"}}]},{path:":voId/groups/:groupId",component:pe,canActivateChild:[K.a],children:[{path:"",component:di,data:{animation:"GroupOverviewPage"}},{path:"members",component:No.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:_i.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:Pi.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:Oo.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:yo,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:Rl,data:{animation:"GroupStatisticsPage"}},{path:"roles",component:ap.C,data:{animation:"GroupRolesPage"}},{path:"settings",component:Zo,children:[{path:"",component:Yo,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:xa,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:Na,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:Js.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:Mt},{path:"notifications",component:Xs,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:Lr,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:vl,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:at,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:ll.b,canActivateChild:[K.a],children:[{path:"",component:cl.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:pl.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:gl.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:_l.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:hl.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Bl.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:ul.t,children:[{path:"",component:dl.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:ml.O,data:{animation:"ResourceSettingsManagersPage"}},{path:"bans",component:fp.I,data:{animation:"ResourceSettingsBansPage"}}]}]}];let Tp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[b.Bz.forChild(Ap),b.Bz]}),i})();var Ip=l(14264),bp=l(63189),vp=l(37433),Ep=l(51525),Cp=l(45256),pt=l(28255);let ut=(()=>{class i{transform(e){return e?.member?.sourceGroupId&&"DIRECT"===e?.member?.membershipType?"Member of Group":e?.member?.sourceGroupId&&"INDIRECT"===e?.member?.membershipType?"Indirect member of Group":e.member?"Member of VO":""}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"memberType",type:i,pure:!0}),i})();var Sp=l(86511);let dt=(()=>{class i{constructor(e){this.addMemberService=e}transform(e,o){return e.member?"vo"===this.addMemberService.getType()||e.member?.sourceGroupId&&"DIRECT"===e.member?.membershipType:o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(Sp.A,16))},i.\u0275pipe=t.Yjl({name:"disabledCandidate",type:i,pure:!0}),i})();var xp=l(69773),Np=l(21757),Op=l(9954);let Zp=(()=>{class i{transform(e){return e.member?"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER":"MEMBERS_CANDIDATES_LIST.ADDING_BLOCKED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"disabledCandidateTooltip",type:i,pure:!0}),i})();function Dp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",19)(1,"mat-checkbox",20),t.NdJ("change",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(n?s.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,o=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",o.selection.hasValue()&&e.all)("indeterminate",o.selection.hasValue()&&!e.all)}}const Mp=function(i){return{name:i}};function Lp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",21)(1,"div",22),t.ALo(2,"translate"),t.ALo(3,"disabledCandidateTooltip"),t.ALo(4,"disabledCandidate"),t.TgZ(5,"mat-checkbox",23),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(n?d.itemSelectionToggle(r):null)})("click",function(n){return n.stopPropagation()}),t.ALo(6,"translate"),t.ALo(7,"checkboxLabel"),t.ALo(8,"userFullName"),t.ALo(9,"disabledCandidate"),t.ALo(10,"lowercase"),t.ALo(11,"translate"),t.qZA()()()}if(2&i){const e=a.$implicit,o=t.oxw(2);let n;t.xp6(1),t.Q6J("matTooltip",t.lcZ(2,6,t.lcZ(3,8,e)))("matTooltipDisabled",!t.xi3(4,10,e,o.blockManualAdding)),t.xp6(4),t.Q2q("data-cy","",t.lcZ(10,23,t.lcZ(11,25,e.richUser?e.richUser.firstName:e.candidate.firstName)),"-checkbox"),t.Q6J("aria-label",t.xi3(6,13,t.lcZ(7,16,o.selection.isSelected(e)),t.VKq(27,Mp,t.lcZ(8,18,null!==(n=e.richUser)&&void 0!==n?n:e.candidate))))("checked",o.selection.isSelected(e))("disabled",t.xi3(9,20,e,o.blockManualAdding))}}function Rp(i,a){1&i&&(t.ynx(0,16),t.YNc(1,Dp,4,7,"th",17),t.YNc(2,Lp,12,29,"td",18),t.BQk())}function wp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.STATUS")," "))}function Gp(i,a){if(1&i&&(t.TgZ(0,"i",27),t.ALo(1,"memberStatusIconColor"),t._uU(2),t.ALo(3,"memberStatusIcon"),t.qZA()),2&i){const e=t.oxw().$implicit;t.Gre("material-icons ",t.lcZ(1,5,e.member),""),t.s9C("matTooltip",e.member.status),t.xp6(2),t.hij(" ",t.lcZ(3,7,e.member.status)," ")}}function Up(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Gp,4,9,"i",26),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.member)}}function Pp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.NAME")," "))}function yp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"userFullName"),t.ALo(3,"userFullName"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):t.lcZ(3,3,e.candidate)," ")}}function Vp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ORGANIZATION")," "))}function Fp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"userVo"),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):o.getOrganization(e.candidate)," ")}}function Yp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.EMAIL")," "))}function Jp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getEmail(e)," ")}}function qp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.LOGINS")," "))}function kp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getLogins(e)," ")}}function Qp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER")," "))}function Bp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"memberType"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function Hp(i,a){1&i&&t._UZ(0,"th",24)}function jp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.richUser?"Local":"External identity"," ")}}function zp(i,a){1&i&&t._UZ(0,"tr",28)}function $p(i,a){1&i&&t._UZ(0,"tr",29)}function Xp(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NO_USERS_FOUND"),"\n"))}const Kp=function(i){return{all:i}};let Wp=(()=>{class i{constructor(e,o,n){this.memberTypePipe=e,this.disabledCandidatePipe=o,this.tableCheckbox=n,this.blockManualAdding=!1,this.displayedColumns=["checkbox","status","fullName","voExtSource","email","logins","alreadyMember","local"],this.pageSizeOptions=g.f7,this.canBeSelected=s=>!this.disabledCandidatePipe.transform(s,this.blockManualAdding),this.getDataForColumnFun=(s,r)=>this.getDataForColumn(s,r),this.getExportDataForColumnFun=(s,r)=>this.getExportDataForColumn(s,r)}set matSort(e){this.sort=e,this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new c.by(this.members),this.setDataSource()}getDataForColumn(e,o){switch(o){case"status":return e.member?e.member.status??"":"";case"fullName":{const n=e.richUser?e.richUser:e.candidate;return n.lastName?n.lastName:n.firstName??""}case"voExtSource":return e.richUser?(0,g.OV)(e.richUser):(0,g.v$)(e.candidate);case"email":return e.richUser||e.member?(0,g.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}getExportDataForColumn(e,o){switch(o){case"status":return e.member?e.member.status??"":"";case"fullName":return(0,g.bD)(e.richUser?e.richUser:e.candidate);case"voExtSource":return e.richUser?(0,g.OV)(e.richUser):(0,g.v$)(e.candidate);case"email":return e.richUser||e.member?(0,g.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}exportAllData(e){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),e)}exportDisplayedData(e){const o=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,n=o+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(o,n),this.displayedColumns,this.getExportDataForColumnFun),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,o)=>(0,g.Sd)(e,o,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(e,o)=>(0,g.pR)(e,o,this.getDataForColumnFun),this.dataSource.paginator=this.child.paginator)}getEmail(e){let o;if(e.richUser){for(const n of e.richUser.userAttributes)if(n.namespace+":"+n.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){o=n;break}return null!=o?.value?o.value.replace(","," "):""}return(0,g.Jc)(e.candidate)}getOrganization(e){return(0,g.v$)(e)}getLogins(e){if(e.richUser)return this.getLoginsForRichUser(e.richUser);{let o=this.getLoginsForCandidate(e.candidate);return(null==o||""===o)&&(o=e.candidate.userExtSource.login),o}}getLoginsForRichUser(e){let o="";for(const n of e.userAttributes)n.friendlyName.startsWith("login-namespace")&&null!=n.value&&(o.length>0&&(o+=", "),o+=n.friendlyName.substring(16)+": "+n.value);return o}getLoginsForCandidate(e){let n="";for(const s in e.attributes)Object.prototype.hasOwnProperty.call(e.attributes,s)&&s.includes("urn:perun:user:attribute-def:def:login-namespace:")&&null!=e.attributes[s]&&(n.length>0&&(n+=", "),n+=s.substring(49)+": "+e.attributes[s]);return n}itemSelectionToggle(e){this.selection.toggle(e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(ut),t.Y36(dt),t.Y36(p.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-members-candidates-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(g.l9,7),t.Gf(q.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(o.child=n.first),t.iGM(n=t.CRH())&&(o.matSort=n.first)}},inputs:{members:"members",selection:"selection",tableId:"tableId",blockManualAdding:"blockManualAdding"},features:[t._Bn([ut,dt]),t.TTD],decls:29,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","voExtSource"],["matColumnDef","email"],["matColumnDef","logins"],["matColumnDef","alreadyMember"],["matColumnDef","local"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipPosition","left",3,"class","matTooltip",4,"ngIf"],["matTooltipPosition","left",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(s){return o.exportDisplayedData(s)})("exportAllData",function(s){return o.exportAllData(s)}),t.TgZ(2,"table",2),t.YNc(3,Rp,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,wp,3,3,"th",5),t.YNc(7,Up,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Pp,3,3,"th",5),t.YNc(10,yp,4,5,"td",6),t.BQk(),t.ynx(11,8),t.YNc(12,Vp,3,3,"th",5),t.YNc(13,Fp,3,3,"td",6),t.BQk(),t.ynx(14,9),t.YNc(15,Yp,3,3,"th",5),t.YNc(16,Jp,2,1,"td",6),t.BQk(),t.ynx(17,10),t.YNc(18,qp,3,3,"th",5),t.YNc(19,kp,2,1,"td",6),t.BQk(),t.ynx(20,11),t.YNc(21,Qp,3,3,"th",5),t.YNc(22,Bp,3,3,"td",6),t.BQk(),t.ynx(23,12),t.YNc(24,Hp,1,0,"th",5),t.YNc(25,jp,2,1,"td",6),t.BQk(),t.YNc(26,zp,1,0,"tr",13),t.YNc(27,$p,1,0,"tr",14),t.qZA()()(),t.YNc(28,Xp,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===o.members.length),t.xp6(1),t.Q6J("tableId",o.tableId)("dataLength",o.dataSource.filteredData.length)("pageSizeOptions",o.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Kp,t.Dn7(4,9,o.dataSource,o.selection.selected.length,o.canBeSelected))),t.xp6(23),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.members.length))},dependencies:[_.O5,q.YE,q.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,H.oG,x.gM,R.w,Gt.l,_.i8,m.X$,B.d,xp.u,Np.f,Op.Z,Zp,Ut.I,Pt.G,yt.r,ut,dt]}),i})();function tu(i,a){1&i&&t._UZ(0,"mat-spinner",15)}function eu(i,a){if(1&i&&(t.TgZ(0,"div",16),t._UZ(1,"app-members-candidates-list",17),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("tableId",e.tableId)("members",e.members)("selection",e.selection)("blockManualAdding",e.manualAddingBlocked)}}function iu(i,a){if(1&i&&(t.TgZ(0,"button",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){t.oxw();const e=t.MAs(16),o=t.oxw();t.Q6J("disabled",0===o.selection.selected.length||!o.inviteAuth||!o.showInvite)("matMenuTriggerFor",e),t.xp6(1),t.hij(" ",t.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function ou(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.invite.emit(s))}),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"uppercase"),t.ALo(5,"translate"),t.qZA()}if(2&i){const e=a.$implicit;t.xp6(1),t.lnq(" ",t.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE_IN_LANGUAGE")," ",t.lcZ(3,5,t.lcZ(4,7,"SHARED_LIB.LANGUAGES."+e))," ",t.lcZ(5,9,"DIALOGS.ADD_MEMBERS.LANGUAGE")," ")}}function nu(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",2)(2,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.search.emit(n))}),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",4),t.YNc(6,tu,1,0,"mat-spinner",5),t.qZA(),t.YNc(7,eu,2,4,"div",6),t.qZA(),t.TgZ(8,"div",7)(9,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.cancel.emit(!1))}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"span",9),t.ALo(13,"translate"),t.YNc(14,iu,3,5,"button",10),t.TgZ(15,"mat-menu",null,11),t.YNc(17,ou,6,11,"button",12),t.qZA()(),t.TgZ(18,"span",13),t.ALo(19,"translate"),t.TgZ(20,"button",14),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.add.emit())}),t._uU(21),t.ALo(22,"translate"),t.qZA()()()()}if(2&i){const e=t.oxw();t.xp6(2),t.s9C("error",t.lcZ(3,16,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")),t.s9C("placeholder",t.lcZ(4,18,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),t.Q6J("autoFocus",!0)("control",e.searchCtrl),t.xp6(4),t.Q6J("ngIf",null===e.members||e.loading),t.xp6(1),t.Q6J("ngIf",!!e.members&&!e.loading),t.xp6(3),t.hij(" ",t.lcZ(11,20,"DIALOGS.ADD_MEMBERS.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(13,22,e.showInvite?"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP":"DIALOGS.ADD_MEMBERS.INVITE_MEMBER_DISABLED")),t.Q6J("matTooltipPosition","below")("matTooltipDisabled",e.selection.selected.length<=0||e.showInvite&&e.inviteAuth),t.xp6(2),t.Q6J("ngIf",e.inviteAuth),t.xp6(3),t.Q6J("ngForOf",e.languages),t.xp6(1),t.s9C("matTooltip",t.lcZ(19,24,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.addAuth),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||!e.addAuth),t.xp6(1),t.hij(" ",t.lcZ(22,26,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}function au(i,a){1&i&&t._UZ(0,"mat-spinner",15)}function su(i,a){1&i&&(t.TgZ(0,"th",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NAME_COLUMN")," "))}function ru(i,a){if(1&i&&(t.TgZ(0,"td",31),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=a.$implicit;let o;t.xp6(1),t.hij(" ",t.lcZ(2,1,null!==(o=e.candidate.candidate)&&void 0!==o?o:e.candidate.richUser)," ")}}function lu(i,a){1&i&&(t.TgZ(0,"th",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.ERROR_COLUMN")," "))}function cu(i,a){if(1&i&&(t.TgZ(0,"td",31),t._uU(1),t.TgZ(2,"div",32),t._uU(3),t.qZA()()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.errorMsg," "),t.xp6(2),t.hij(" ",e.errorName," ")}}function pu(i,a){1&i&&t._UZ(0,"tr",33)}function uu(i,a){1&i&&t._UZ(0,"tr",34)}const $t=function(){return["userName","error"]};function du(i,a){if(1&i&&(t.TgZ(0,"div",2)(1,"perun-web-apps-alert",22),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"table",23),t.ynx(5,24),t.YNc(6,su,3,3,"th",25),t.YNc(7,ru,3,3,"td",26),t.BQk(),t.ynx(8,27),t.YNc(9,lu,3,3,"th",25),t.YNc(10,cu,4,2,"td",26),t.BQk(),t.YNc(11,pu,1,0,"tr",28),t.YNc(12,uu,1,0,"tr",29),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("alert_type","error"),t.xp6(1),t.Oqu(t.lcZ(3,5,"DIALOGS.ADD_MEMBERS.FAILED_DESC")),t.xp6(2),t.Q6J("dataSource",e.failedCandidateDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(7,$t)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(8,$t))}}function _u(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.cancel.emit(!0))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.ADD_MEMBERS.CLOSE")," "))}function mu(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,au,1,0,"mat-spinner",5),t.YNc(2,du,13,9,"div",20),t.YNc(3,_u,4,3,"div",21),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}let Xt=(()=>{class i{constructor(){this.loading=!1,this.manualAddingBlocked=!1,this.inviteAuth=!0,this.addAuth=!0,this.showInvite=!1,this.members=[],this.selection=new E.Ov(!0,[]),this.add=new t.vpe,this.cancel=new t.vpe,this.search=new t.vpe,this.invite=new t.vpe,this.tableId=C.tY,this.searchCtrl=new A.p4("",[A.kI.required,A.kI.pattern(".*[\\S]+.*")])}ngOnInit(){this.failedCandidateDataSource=new c.by(this.failed)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-dialog"]],inputs:{loading:"loading",theme:"theme",languages:"languages",manualAddingBlocked:"manualAddingBlocked",inviteAuth:"inviteAuth",addAuth:"addAuth",showInvite:"showInvite",members:"members",failed:"failed",selection:"selection"},outputs:{add:"add",cancel:"cancel",search:"search",invite:"invite"},decls:6,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-dialog-content",""],["data-cy","search-members",3,"error","placeholder","autoFocus","control","filter"],[1,"no-bounce-scrollbar"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["class","ml-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","data-cy","add-button",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"tableId","members","selection","blockManualAdding"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mb-2",3,"alert_type"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","userName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","error"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"text-muted"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,nu,23,28,"div",1),t.YNc(5,mu,4,3,"div",1),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.ADD_MEMBERS.TITLE")),t.xp6(2),t.Q6J("ngIf",0===o.failed.length),t.xp6(1),t.Q6J("ngIf",0!==o.failed.length))},dependencies:[_.sg,_.O5,I.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,x.gM,pt.VK,pt.OP,pt.p6,R.w,j.P,Wp,_.gd,m.X$,B.d],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}.error-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%;padding:1em 0}.error-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:50%}.divider[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}"]}),i})(),gu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[_.ez,Tp,Ip.m,bp.r,vp.ez,ct.d4,g.Je]}),i})();t.B6R(Ep.H,[Xt],[_.Ov]),t.B6R(Cp.k,[Xt],[_.Ov])}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/283.6fb68f2866b58a16.js b/dist/apps/admin-gui/283.6fb68f2866b58a16.js new file mode 100644 index 000000000..46224cd5c --- /dev/null +++ b/dist/apps/admin-gui/283.6fb68f2866b58a16.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[283],{61283:(W,L,s)=>{s.d(L,{A:()=>g});var t=s(36769),u=s(94650),I=s(94364);let g=(()=>{class i{prepareRoute(n){return n?.activatedRouteData&&null!==n?.activatedRouteData.animation}}return i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=u.Xpm({type:i,selectors:[["app-animated-router-outlet"]],decls:3,vars:0,consts:[["outlet","outlet"]],template:function(n,y){1&n&&(u.TgZ(0,"div"),u._UZ(1,"router-outlet",null,0),u.qZA())},dependencies:[I.lC],data:{animation:[t.Ji]}}),i})()},71103:(W,L,s)=>{s.d(L,{n:()=>_});var t=s(65412),u=s(95017),I=s(81591),g=s(61744),i=s(10036),n=(s(37433),s(94650)),y=s(89383),e=s(36895),O=s(4859),S=s(51572),T=s(98380),w=s(7434),v=s(53984);const A=["list"];function R(f,U){1&f&&(n.TgZ(0,"perun-web-apps-alert",10),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&f&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE.ERROR_EMPTY_VALUE")," "))}function d(f,U){1&f&&n._UZ(0,"mat-spinner",11)}function D(f,U){if(1&f&&n._UZ(0,"perun-web-apps-attributes-list",12,13),2&f){const p=n.oxw();n.Q6J("emptyListText","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_ATTRIBUTES")("attributes",p.attributes)("filterValue",p.filterValue)("inDialog",!0)("selection",p.selected)("tableId",p.tableId)}}let _=(()=>{class f{constructor(p,E,l,C,P){this.dialogRef=p,this.data=E,this.attributesManager=l,this.notificator=C,this.translate=P,this.attributes=[],this.selected=new u.Ov(!0,[]),this.showError=!1,this.filterValue="",this.tableId=i.rF,this.translate.get("DIALOGS.CREATE_ATTRIBUTE.SUCCESS_SAVE").subscribe(F=>this.saveSuccessMessage=F)}ngOnInit(){const p=new Array;let E,l,C,P,F,J,b,x;switch(this.data.notEmptyAttributes.forEach(c=>{p.push(c.id)}),this.data.entity){case"member":E=this.data.entityId;break;case"user":l=this.data.entityId;break;case"vo":C=this.data.entityId;break;case"group":P=this.data.entityId;break;case"resource":F=this.data.entityId;break;case"facility":J=this.data.entityId;break;case"host":b=this.data.entityId;break;case"ues":x=this.data.entityId}switch(this.data.secondEntity){case"member":E=this.data.secondEntityId;break;case"user":l=this.data.secondEntityId;break;case"vo":C=this.data.secondEntityId;break;case"group":P=this.data.secondEntityId;break;case"resource":F=this.data.secondEntityId;break;case"facility":J=this.data.secondEntityId;break;case"host":b=this.data.secondEntityId;break;case"ues":x=this.data.secondEntityId}this.loading=!0,this.attributesManager.getAttributesDefinitionWithRights(E,l,C,P,F,J,b,x).subscribe(c=>{this.attributes=c,this.attributes=this.attributes.filter(o=>!p.includes(o.id)&&this.twoEntityValid(o)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSave(){this.list.updateMapAttributes();let p=!1;for(const E of this.selected.selected)"java.util.ArrayList"===E.type&&0===E.value.length&&(p=!0),void 0===E.value&&(p=!0);if(p)return this.showError=!0,void setTimeout(()=>{this.showError=!1},5e3);switch(this.data.entity){case"facility":"user"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({facility:this.data.entityId,user:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}break;case"resource":switch(this.data.secondEntity){case"member":this.attributesManager.setMemberResourceAttributes({resource:this.data.entityId,member:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":this.attributesManager.setGroupResourceAttributes({resource:this.data.entityId,group:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default:this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}}applyFilter(p){this.filterValue=p}handleSuccess(){this.notificator.showSuccess(this.saveSuccessMessage),this.selected.clear(),this.dialogRef.close("saved")}twoEntityValid(p){return!this.data.secondEntity||p.entity===`${this.data.entity}_${this.data.secondEntity}`||p.entity===`${this.data.secondEntity}_${this.data.entity}`}}return f.\u0275fac=function(p){return new(p||f)(n.Y36(t.so),n.Y36(t.WI),n.Y36(g.H8),n.Y36(I.V6),n.Y36(y.sK))},f.\u0275cmp=n.Xpm({type:f,selectors:[["app-create-attribute-dialog"]],viewQuery:function(p,E){if(1&p&&n.Gf(A,5),2&p){let l;n.iGM(l=n.CRH())&&(E.list=l.first)}},decls:17,vars:17,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["data-cy","filter-attributes",1,"font-size-1rem",3,"placeholder","filter"],["class","ml-3 font-size-1rem","alert_type","error",4,"ngIf"],["mat-dialog-content",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","save-selected-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","error",1,"ml-3","font-size-1rem"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId"],["list",""]],template:function(p,E){1&p&&(n.TgZ(0,"div")(1,"div",0)(2,"h1",1),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(C){return E.applyFilter(C)}),n.qZA(),n.YNc(6,R,3,3,"perun-web-apps-alert",3),n.qZA(),n.TgZ(7,"div",4),n.YNc(8,d,1,0,"mat-spinner",5),n.YNc(9,D,2,6,"perun-web-apps-attributes-list",6),n.qZA(),n.TgZ(10,"div",7)(11,"button",8),n.NdJ("click",function(){return E.onCancel()}),n._uU(12),n.ALo(13,"translate"),n.qZA(),n.TgZ(14,"button",9),n.NdJ("click",function(){return E.onSave()}),n._uU(15),n.ALo(16,"translate"),n.qZA()()()),2&p&&(n.Tol(E.data.style),n.xp6(3),n.Oqu(n.lcZ(4,11,"DIALOGS.CREATE_ATTRIBUTE.SET_NEW")),n.xp6(2),n.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),n.xp6(1),n.Q6J("ngIf",E.showError),n.xp6(2),n.Q6J("ngIf",E.loading),n.xp6(1),n.Q6J("ngIf",!E.loading),n.xp6(3),n.hij(" ",n.lcZ(13,13,"DIALOGS.CREATE_ATTRIBUTE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",0===E.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(16,15,"DIALOGS.CREATE_ATTRIBUTE.SAVE")," "))},dependencies:[e.O5,O.lW,t.uh,t.xY,t.H8,S.Ou,T.w,w.L,v.p,y.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),f})()},61365:(W,L,s)=>{s.d(L,{k:()=>R});var t=s(65412),u=s(30671),I=s(81591),g=s(61744),i=s(94650),M=s(89383),n=s(36895),y=s(4859),e=s(51572);function O(d,D){1&d&&i._UZ(0,"mat-spinner",6)}function S(d,D){1&d&&i._UZ(0,"th",15)}function T(d,D){if(1&d&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&d){const _=D.$implicit;i.xp6(1),i.Oqu(_.displayName)}}function w(d,D){1&d&&i._UZ(0,"tr",17)}function v(d,D){1&d&&i._UZ(0,"tr",18)}function A(d,D){if(1&d&&(i.TgZ(0,"div",7)(1,"div"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",8),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"table",9),i.ynx(8,10),i.YNc(9,S,1,0,"th",11),i.YNc(10,T,2,1,"td",12),i.BQk(),i.YNc(11,w,1,0,"tr",13),i.YNc(12,v,1,0,"tr",14),i.qZA()()),2&d){const _=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,"DIALOGS.DELETE_ATTRIBUTES.DESCRIPTION")," "),i.xp6(3),i.hij(" ",i.lcZ(6,7,"DIALOGS.DELETE_ATTRIBUTES.ASK")," "),i.xp6(2),i.Q6J("dataSource",_.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",_.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",_.displayedColumns)}}let R=(()=>{class d{constructor(_,f,U,p,E){this.dialogRef=_,this.data=f,this.notificator=U,this.translate=p,this.attributesManager=E,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.dataSource=new u.by(this.data.attributes),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){const _=[];for(const U of this.data.attributes)_.push(U.id);const f={};switch(f[this.data.entity]=this.data.entityId,f.attributes=_,void 0!==this.data.secondEntity&&(f[this.data.secondEntity]=this.data.secondEntityId),this.loading=!0,this.data.entity){case"vo":this.attributesManager.removeVoAttributes(this.data.entityId,_).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.removeGroupResourceAttributes(this.data.entityId,this.data.secondEntityId,_).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1}):this.attributesManager.removeGroupAttributes(this.data.entityId,_).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.removeUserFacilityAttributes(this.data.entityId,this.data.secondEntityId,_).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1}):this.attributesManager.removeUserAttributes(this.data.entityId,_).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.removeMemberResourceAttributes(this.data.entityId,this.data.secondEntityId,_).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"group":this.attributesManager.removeMemberGroupAttributes(this.data.entityId,this.data.secondEntityId,_).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;default:this.attributesManager.removeMemberAttributes(this.data.entityId,_).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1})}break;case"facility":"user"===this.data.secondEntity?this.attributesManager.removeUserFacilityAttributes(this.data.secondEntityId,this.data.entityId,_).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1}):this.attributesManager.removeFacilityAttributes(this.data.entityId,_).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"host":this.attributesManager.removeHostAttributes(this.data.entityId,_).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"ues":this.attributesManager.removeUesAttributes(this.data.entityId,_).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"resource":switch(this.data.secondEntity){case"member":this.attributesManager.removeMemberResourceAttributes(this.data.secondEntityId,this.data.entityId,_).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"group":this.attributesManager.removeGroupResourceAttributes(this.data.secondEntityId,this.data.entityId,_).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;default:this.attributesManager.removeResourceAttributes(this.data.entityId,_).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1})}}}onSuccess(){this.translate.get("DIALOGS.DELETE_ATTRIBUTES.SUCCESS").subscribe(_=>{this.notificator.showSuccess(_),this.dialogRef.close(!0)})}}return d.\u0275fac=function(_){return new(_||d)(i.Y36(t.so),i.Y36(t.WI),i.Y36(I.V6),i.Y36(M.sK),i.Y36(g.H8))},d.\u0275cmp=i.Xpm({type:d,selectors:[["app-delete-attribute-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(_,f){1&_&&(i.TgZ(0,"div")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,O,1,0,"mat-spinner",1),i.YNc(5,A,13,9,"div",2),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return f.onCancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",5),i.NdJ("click",function(){return f.onSubmit()}),i._uU(11),i.ALo(12,"translate"),i.qZA()()()),2&_&&(i.Tol(f.theme),i.xp6(2),i.Oqu(i.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTES.TITLE")),i.xp6(2),i.Q6J("ngIf",f.loading),i.xp6(1),i.Q6J("ngIf",!f.loading),i.xp6(3),i.hij(" ",i.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTES.CANCEL")," "),i.xp6(2),i.Q6J("disabled",f.loading),i.xp6(1),i.hij(" ",i.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTES.DELETE")," "))},dependencies:[n.O5,y.lW,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,t.uh,t.xY,t.H8,e.Ou,M.X$]}),d})()},1415:(W,L,s)=>{s.d(L,{l:()=>S});var t=s(94650),u=s(37433),I=s(36895),g=s(4859),i=s(65412),M=s(51572),n=s(29926),y=s(89383);function e(T,w){1&T&&t._UZ(0,"mat-spinner",7)}function O(T,w){if(1&T&&t._UZ(0,"perun-web-apps-ban-specification",8),2&T){const v=t.oxw();t.Q6J("description",v.ban.description)("validity",v.ban.validityTo)}}let S=(()=>{class T{constructor(){this.loading=!1,this.cancel=new t.vpe,this.update=new t.vpe}updateBan(){this.update.emit({description:this.banForm.getDescription(),validity:this.banForm.getValidity()})}}return T.\u0275fac=function(v){return new(v||T)},T.\u0275cmp=t.Xpm({type:T,selectors:[["app-update-ban-dialog"]],viewQuery:function(v,A){if(1&v&&t.Gf(u.CZ,5),2&v){let R;t.iGM(R=t.CRH())&&(A.banForm=R.first)}},inputs:{loading:"loading",ban:"ban",theme:"theme"},outputs:{cancel:"cancel",update:"update"},decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"description","validity",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],[1,"ml-auto","mr-auto"],[3,"description","validity"]],template:function(v,A){1&v&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t.YNc(5,e,1,0,"mat-spinner",2),t.YNc(6,O,1,2,"perun-web-apps-ban-specification",3),t.qZA(),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){return A.cancel.emit()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return A.updateBan()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&v&&(t.Tol(A.theme),t.xp6(2),t.Oqu(t.lcZ(3,8,"DIALOGS.UPDATE_BAN.TITLE")),t.xp6(3),t.Q6J("ngIf",A.loading),t.xp6(1),t.Q6J("ngIf",!A.loading),t.xp6(3),t.hij(" ",t.lcZ(10,10,"DIALOGS.UPDATE_BAN.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.UPDATE_BAN.UPDATE")," "))},dependencies:[I.O5,g.lW,i.uh,i.xY,i.H8,M.Ou,n.C,y.X$]}),T})()},28943:(W,L,s)=>{s.d(L,{e:()=>M});var t=s(65412),u=s(61744),I=s(81591),g=s(94650),i=s(1415);let M=(()=>{class n{constructor(e,O,S,T){this.data=e,this.dialogRef=O,this.resourceService=S,this.notificator=T,this.loading=!1}update(e){this.loading=!0,this.resourceService.updateResourceBan({banOnResource:{id:this.data.ban.id,beanName:"BanOnFacility",resourceId:this.data.ban.resourceId,memberId:this.data.ban.memberId,description:e.description,validityTo:e.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}cancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(g.Y36(t.WI),g.Y36(t.so),g.Y36(u.xk),g.Y36(I.V6))},n.\u0275cmp=g.Xpm({type:n,selectors:[["app-update-resource-ban-dialog"]],decls:1,vars:2,consts:[[3,"ban","theme","cancel","update"]],template:function(e,O){1&e&&(g.TgZ(0,"app-update-ban-dialog",0),g.NdJ("cancel",function(){return O.cancel()})("update",function(T){return O.update(T)}),g.qZA()),2&e&&g.Q6J("ban",O.data.ban)("theme","facility-theme")},dependencies:[i.l]}),n})()},32316:(W,L,s)=>{s.d(L,{A:()=>M});var t=s(65412),u=s(61744),I=s(81591),g=s(94650),i=s(1415);let M=(()=>{class n{constructor(e,O,S,T){this.data=e,this.dialogRef=O,this.voService=S,this.notificator=T,this.loading=!1}update(e){this.loading=!0,this.voService.updateVoBan({banOnVo:{id:this.data.ban.id,beanName:"BanOnVo",voId:this.data.ban.voId,memberId:this.data.ban.memberId,description:e.description,validityTo:e.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}cancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(g.Y36(t.WI),g.Y36(t.so),g.Y36(u.YF),g.Y36(I.V6))},n.\u0275cmp=g.Xpm({type:n,selectors:[["app-update-vo-ban-dialog"]],decls:1,vars:2,consts:[[3,"ban","theme","cancel","update"]],template:function(e,O){1&e&&(g.TgZ(0,"app-update-ban-dialog",0),g.NdJ("cancel",function(){return O.cancel()})("update",function(T){return O.update(T)}),g.qZA()),2&e&&g.Q6J("ban",O.data.ban)("theme","vo-theme")},dependencies:[i.l]}),n})()},95406:(W,L,s)=>{s.d(L,{r:()=>J});var t=s(94650),u=s(24006),I=s(9244),g=s(28499),i=s(61744),M=s(81591),n=s(10266),y=s(71948),e=s(13469),O=s(78372),S=s(95698),T=s(63900),w=s(54004),v=s(36895),A=s(3238),R=s(59549),d=s(284),D=s(84385),_=s(89383);function f(b,x){if(1&b&&(t.TgZ(0,"mat-option",7),t._uU(1),t.qZA()),2&b){const c=x.$implicit;t.Q6J("value",c),t.xp6(1),t.hij(" ",c," ")}}function U(b,x){1&b&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&b&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.FIELD_EMPTY")))}function p(b,x){1&b&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&b&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_EXISTS")))}function E(b,x){1&b&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&b&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_FORMAT")))}function l(b,x){1&b&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&b&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_LONG")))}function C(b,x){1&b&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&b&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_SHORT")))}function P(b,x){if(1&b&&(t.TgZ(0,"span",8),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&b){const c=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,1,"Not selected"===c.formGroup.get("namespaceCtrl").value?"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_DISABLED":"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_DISABLED_FOR_NAMESPACE")," ")}}let F=(()=>{class b{constructor(c,o){this.membersManagerService=c,this.usersManagerService=o,this.filteredNamespaces=null,this.namespaceChanged=new t.vpe,this.parsedRulesChanged=new t.vpe,this.namespaceOptions=[],this.selectedNamespace=null,this.namespaceRules=[],this.parsedRules=new Map}ngOnInit(){this.namespaceOptions=["Not selected"],this.membersManagerService.getAllNamespacesRules().subscribe(c=>{this.namespaceRules=c,this.parseNamespaceRules()}),this.onNamespaceChanged("Not selected")}existingLoginValidator(){return c=>{let o=this.formGroup.get("namespaceCtrl").value.toLowerCase();return o="not selected"===o?"mu":o,c.valueChanges.pipe((0,O.b)(500),(0,S.q)(1),(0,T.w)(()=>this.usersManagerService.isLoginAvailable(o,c.value).pipe((0,w.U)(Z=>Z?null:{loginExists:!0}))))}}parseNamespaceRules(){for(const c of this.namespaceRules)if(null===this.filteredNamespaces||!this.filteredNamespaces.includes(c.namespaceName)){this.namespaceOptions.push(c.namespaceName);const o={login:"disabled"};this.parseAttributes(o,c.requiredAttributes,"required"),this.parseAttributes(o,c.optionalAttributes,"optional"),this.parsedRules.set(c.namespaceName,o)}this.parsedRulesChanged.emit(this.parsedRules)}parseAttributes(c,o,Z){for(const G of o)"login"===G&&(c.login=Z)}onNamespaceChanged(c){this.selectedNamespace=c.toLowerCase();const o=this.formGroup.get("loginCtrl");if("Not selected"!==c)if("disabled"===this.parsedRules.get(this.selectedNamespace).login)o.disable(),o.setValue("");else{const Z=[u.kI.required,u.kI.pattern("^[a-z][a-z0-9_-]+$"),u.kI.maxLength(15),u.kI.minLength(2)];(0,I.mH)(o,Z,[this.existingLoginValidator()])}else o.disable(),o.setValue("");this.namespaceChanged.emit(c)}}return b.\u0275fac=function(c){return new(c||b)(t.Y36(i.uq),t.Y36(i.Fv))},b.\u0275cmp=t.Xpm({type:b,selectors:[["app-login-for-namespace"]],inputs:{formGroup:"formGroup",filteredNamespaces:"filteredNamespaces"},outputs:{namespaceChanged:"namespaceChanged",parsedRulesChanged:"parsedRulesChanged"},decls:18,vars:16,consts:[[1,"display-flex",3,"formGroup"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"floatLabel"],["formControlName","loginCtrl","matInput","","required","",3,"hidden"],[4,"ngIf"],["class","input-disabled",4,"ngIf"],[3,"value"],[1,"input-disabled"]],template:function(c,o){1&c&&(t.TgZ(0,"div",0)(1,"mat-form-field")(2,"mat-label"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"mat-select",1),t.NdJ("valueChange",function(G){return o.onNamespaceChanged(G)}),t.YNc(6,f,2,2,"mat-option",2),t.qZA()(),t.TgZ(7,"mat-form-field",3)(8,"mat-label"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._UZ(11,"input",4),t.YNc(12,U,3,3,"mat-error",5),t.YNc(13,p,3,3,"mat-error",5),t.YNc(14,E,3,3,"mat-error",5),t.YNc(15,l,3,3,"mat-error",5),t.YNc(16,C,3,3,"mat-error",5),t.YNc(17,P,3,3,"span",6),t.qZA()()),2&c&&(t.Q6J("formGroup",o.formGroup),t.xp6(3),t.Oqu(t.lcZ(4,12,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.NAMESPACE")),t.xp6(3),t.Q6J("ngForOf",o.namespaceOptions),t.xp6(1),t.Q6J("floatLabel",o.formGroup.get("loginCtrl").disabled?"always":null),t.xp6(2),t.Oqu(t.lcZ(10,14,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN")),t.xp6(2),t.Q6J("hidden",o.formGroup.get("loginCtrl").disabled),t.xp6(1),t.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("required")),t.xp6(1),t.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("loginExists")),t.xp6(1),t.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("pattern")&&!o.formGroup.get("loginCtrl").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("maxlength")),t.xp6(1),t.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",o.formGroup.get("loginCtrl").disabled))},dependencies:[v.sg,v.O5,A.ey,R.TO,R.KE,R.hX,d.Nt,u.Fj,u.JJ,u.JL,u.Q7,u.sg,u.u,D.gD,_.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input-disabled[_ngcontent-%COMP%]{pointer-events:none;color:#888}"]}),b})(),J=(()=>{class b{constructor(c,o,Z){this.membersManagerService=c,this.usersManagerService=o,this.apiRequestConfiguration=Z,this.filteredNamespace=null,this.parsedRulesOutput=new t.vpe,this.selectedNamespace=null,this.parsedRules=new Map}parsedRulesFunction(c){this.parsedRules=c,this.parsedRulesOutput.emit(c)}onNamespaceChanged(c){this.selectedNamespace=c.toLowerCase();const o=this.formGroup.get("passwordCtrl"),Z=this.formGroup.get("passwordAgainCtrl"),G=this.formGroup.get("generatePasswordCtrl");"Not selected"!==c?((0,I.mH)(G,[]),this.passwordOptionChanged()):(o.disable(),o.setValue(""),Z.disable(),Z.setValue(""),G.disable(),G.dirty||G.setValue(!0))}passwordOptionChanged(){const c=this.formGroup.get("passwordCtrl"),o=this.formGroup.get("passwordAgainCtrl");this.formGroup.get("generatePasswordCtrl").value?(c.disable(),c.setValue(""),o.disable(),o.setValue("")):((0,I.mH)(c,[u.kI.required],[(0,g.yT)(this.selectedNamespace,this.usersManagerService,this.apiRequestConfiguration)]),(0,I.mH)(o,[]))}}return b.\u0275fac=function(c){return new(c||b)(t.Y36(i.uq),t.Y36(i.Fv),t.Y36(M.F5))},b.\u0275cmp=t.Xpm({type:b,selectors:[["app-login-password-form-with-generate-option"]],inputs:{formGroup:"formGroup",filteredNamespace:"filteredNamespace"},outputs:{parsedRulesOutput:"parsedRulesOutput"},decls:12,vars:23,consts:[[1,"display-flex",3,"formGroup"],[3,"formGroup","filteredNamespaces","namespaceChanged","parsedRulesChanged"],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[1,"display-flex"],[3,"formGroup","namespace","passwordRequired","tooltipPwdDisabledForNamespace"]],template:function(c,o){1&c&&(t.TgZ(0,"div",0)(1,"app-login-for-namespace",1),t.NdJ("namespaceChanged",function(G){return o.onNamespaceChanged(G)})("parsedRulesChanged",function(G){return o.parsedRulesFunction(G)}),t.qZA(),t.TgZ(2,"mat-radio-group",2),t.NdJ("ngModelChange",function(){return o.passwordOptionChanged()}),t.ALo(3,"translate"),t.TgZ(4,"mat-radio-button",3),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"mat-radio-button",3),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.TgZ(10,"div",4),t._UZ(11,"perun-web-apps-password-form",5),t.qZA()()),2&c&&(t.Q6J("formGroup",o.formGroup),t.xp6(1),t.Q6J("formGroup",o.formGroup)("filteredNamespaces",o.filteredNamespace),t.xp6(1),t.s9C("matTooltip",t.lcZ(3,17,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),t.Q6J("matTooltipDisabled","Not selected"!==o.formGroup.get("namespaceCtrl").value),t.xp6(2),t.Q6J("checked",o.formGroup.get("generatePasswordCtrl").value&&o.formGroup.get("generatePasswordCtrl").enabled)("value",!0),t.xp6(1),t.hij(" ",t.lcZ(6,19,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),t.xp6(2),t.Q6J("checked",!o.formGroup.get("generatePasswordCtrl").value&&o.formGroup.get("generatePasswordCtrl").enabled)("value",!1),t.xp6(1),t.hij(" ",t.lcZ(9,21,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),t.xp6(2),t.ekj("input-disabled",o.formGroup.get("generatePasswordCtrl").value),t.xp6(1),t.Q6J("formGroup",o.formGroup)("namespace",o.selectedNamespace)("passwordRequired",!o.formGroup.get("generatePasswordCtrl").value)("tooltipPwdDisabledForNamespace",o.formGroup.get("generatePasswordCtrl").enabled))},dependencies:[u.JJ,u.JL,u.sg,u.u,n.gM,y.VQ,y.U0,e.G,F,_.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),b})()},12651:(W,L,s)=>{s.d(L,{t:()=>U});var t=s(61744),u=s(95017),I=s(9244),g=s(71103),i=s(21029),M=s(61365),y=(s(37433),s(10036)),e=s(94650),O=s(65412),S=s(36895),T=s(4859),w=s(51572),v=s(96214),A=s(7434),R=s(53984),d=s(89383);const D=["list"];function _(p,E){1&p&&e._UZ(0,"mat-spinner",7)}function f(p,E){if(1&p&&e._UZ(0,"perun-web-apps-attributes-list",8,9),2&p){const l=e.oxw();e.Q6J("attributes",l.attributes)("filterValue",l.filterValue)("selection",l.selection)("tableId",l.tableId)}}let U=(()=>{class p{constructor(l,C){this.attributesManagerService=l,this.dialog=C,this.attributes=[],this.selection=new u.Ov(!0,[]),this.filterValue="",this.tableId=y.rF,this.loading=!1}ngOnInit(){this.refreshTable()}refreshTable(){switch(this.loading=!0,this.entity){case"member":this.attributesManagerService.getMemberAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"group":this.attributesManagerService.getGroupAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"user":this.attributesManagerService.getUserAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"resource":this.attributesManagerService.getResourceAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"facility":this.attributesManagerService.getFacilityAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"vo":this.attributesManagerService.getVoAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1})}}applyFilter(l){this.filterValue=l}onCreate(){const l=(0,I.kZ)();l.width="1050px",l.data={entityId:this.entityId,entity:this.entity,notEmptyAttributes:this.attributes,style:this.entity+"-theme"},this.dialog.open(g.n,l).afterClosed().subscribe(P=>{P&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const l=(0,I.kZ)();l.width="450px",l.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(i.wA,l).afterClosed().subscribe(P=>{P&&this.refreshTable()})}onDelete(){const l=(0,I.kZ)();l.width="450px",l.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(M.k,l).afterClosed().subscribe(P=>{P&&this.refreshTable()})}}return p.\u0275fac=function(l){return new(l||p)(e.Y36(t.H8),e.Y36(O.uw))},p.\u0275cmp=e.Xpm({type:p,selectors:[["app-one-entity-attribute-page"]],viewQuery:function(l,C){if(1&l&&e.Gf(D,5),2&l){let P;e.iGM(P=e.CRH())&&(C.list=P.first)}},inputs:{entity:"entity",entityId:"entityId"},decls:13,vars:14,consts:[[1,"mt-2",3,"refresh"],["color","accent","data-cy","add-attributes","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],["color","warn","data-cy","remove-attributes","mat-flat-button","",1,"mt-2","mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"attributes","filterValue","selection","tableId"],["list",""]],template:function(l,C){1&l&&(e.TgZ(0,"perun-web-apps-refresh-button",0),e.NdJ("refresh",function(){return C.refreshTable()}),e.qZA(),e.TgZ(1,"button",1),e.NdJ("click",function(){return C.onCreate()}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",2),e.NdJ("click",function(){return C.onSave()}),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"button",3),e.NdJ("click",function(){return C.onDelete()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"perun-web-apps-immediate-filter",4),e.NdJ("filter",function(F){return C.applyFilter(F)}),e.qZA(),e.YNc(11,_,1,0,"mat-spinner",5),e.YNc(12,f,2,4,"perun-web-apps-attributes-list",6)),2&l&&(e.xp6(2),e.hij(" ",e.lcZ(3,8,"USER_DETAIL.SETTINGS.ATTRIBUTES.CREATE"),"\n"),e.xp6(2),e.Q6J("disabled",0===C.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(6,10,"USER_DETAIL.SETTINGS.ATTRIBUTES.SAVE"),"\n"),e.xp6(2),e.Q6J("disabled",0===C.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(9,12,"USER_DETAIL.SETTINGS.ATTRIBUTES.DELETE"),"\n"),e.xp6(2),e.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),e.xp6(1),e.Q6J("ngIf",C.loading),e.xp6(1),e.Q6J("ngIf",!C.loading))},dependencies:[S.O5,T.lW,w.Ou,v.t,A.L,R.p,d.X$]}),p})()},48323:(W,L,s)=>{s.d(L,{Y:()=>V});var t=s(61744),I=(s(37433),s(95017)),g=s(61365),i=s(9244),M=s(21029),n=s(71103),y=s(64080),e=s(94650),O=s(65412),S=s(36895),T=s(4859),w=s(51572),v=s(98380),A=s(96214),R=s(7434),d=s(53984),D=s(82322),_=s(45703),f=s(89593),U=s(89383);let p=(()=>{class h{constructor(){this.memberSelected=new e.vpe,this.memberFullNameFunction=a=>(0,i.bD)(a.user)}ngOnInit(){this.members=this.members.sort(i.fx)}}return h.\u0275fac=function(a){return new(a||h)},h.\u0275cmp=e.Xpm({type:h,selectors:[["perun-web-apps-member-search-select"]],inputs:{members:"members"},outputs:{memberSelected:"memberSelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(a,r){1&a&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(N){return r.memberSelected.emit(N)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&a&&e.Q6J("entities",r.members)("searchFunction",r.memberFullNameFunction)("mainTextFunction",r.memberFullNameFunction)("selectPlaceholder",e.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",e.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",e.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},dependencies:[f.i,U.X$]}),h})();var E=s(79707),l=s(74250);const C=["list"];function P(h,B){1&h&&e._UZ(0,"mat-spinner",4)}function F(h,B){if(1&h&&(e.TgZ(0,"perun-web-apps-alert",5),e._uU(1),e.qZA()),2&h){const a=e.oxw();e.xp6(1),e.Oqu(a.noEntityMessage)}}function J(h,B){if(1&h){const a=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",18),e.NdJ("groupSelected",function(m){e.CHM(a);const N=e.oxw(2);return e.KtG(N.specifySecondEntity(m))}),e.qZA()}if(2&h){const a=e.oxw(2);e.Q6J("firstSelectedGroup",a.specificSecondEntity)("displayStatus",!0)("groups",a.entityValues)}}function b(h,B){if(1&h){const a=e.EpF();e.TgZ(0,"perun-web-apps-resource-search-select",19),e.NdJ("resourceSelected",function(m){e.CHM(a);const N=e.oxw(2);return e.KtG(N.specifySecondEntity(m))}),e.qZA()}if(2&h){const a=e.oxw(2);e.Q6J("resources",a.entityValues)}}function x(h,B){if(1&h){const a=e.EpF();e.TgZ(0,"perun-web-apps-member-search-select",20),e.NdJ("memberSelected",function(m){e.CHM(a);const N=e.oxw(2);return e.KtG(N.specifySecondEntity(m))}),e.qZA()}if(2&h){const a=e.oxw(2);e.Q6J("members",a.entityValues)}}function c(h,B){if(1&h){const a=e.EpF();e.TgZ(0,"perun-web-apps-facility-search-select",21),e.NdJ("facilitySelected",function(m){e.CHM(a);const N=e.oxw(2);return e.KtG(N.specifySecondEntity(m))}),e.qZA()}if(2&h){const a=e.oxw(2);e.Q6J("facilities",a.entityValues)}}function o(h,B){if(1&h){const a=e.EpF();e.TgZ(0,"perun-web-apps-user-search-select",22),e.NdJ("userSelected",function(m){e.CHM(a);const N=e.oxw(2);return e.KtG(N.specifySecondEntity(m))}),e.qZA()}if(2&h){const a=e.oxw(2);e.Q6J("users",a.entityValues)}}function Z(h,B){1&h&&e._UZ(0,"mat-spinner",4)}function G(h,B){if(1&h&&e._UZ(0,"perun-web-apps-attributes-list",23,24),2&h){const a=e.oxw(2);e.Q6J("attributes",a.attributes)("filterValue",a.filterValue)("selection",a.selection)}}function K(h,B){if(1&h){const a=e.EpF();e.TgZ(0,"div")(1,"div",6),e.YNc(2,J,1,3,"perun-web-apps-group-search-select",7),e.YNc(3,b,1,1,"perun-web-apps-resource-search-select",8),e.YNc(4,x,1,1,"perun-web-apps-member-search-select",9),e.YNc(5,c,1,1,"perun-web-apps-facility-search-select",10),e.YNc(6,o,1,1,"perun-web-apps-user-search-select",11),e.qZA(),e.TgZ(7,"perun-web-apps-refresh-button",12),e.NdJ("refresh",function(){e.CHM(a);const m=e.oxw();return e.KtG(m.getAttributes(m.specificSecondEntity.id))}),e.qZA(),e.TgZ(8,"button",13),e.NdJ("click",function(){e.CHM(a);const m=e.oxw();return e.KtG(m.onAdd(m.specificSecondEntity.id))}),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"button",14),e.NdJ("click",function(){e.CHM(a);const m=e.oxw();return e.KtG(m.onSave(m.specificSecondEntity.id))}),e._uU(12),e.ALo(13,"translate"),e.qZA(),e.TgZ(14,"button",15),e.NdJ("click",function(){e.CHM(a);const m=e.oxw();return e.KtG(m.onDelete(m.specificSecondEntity.id))}),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"perun-web-apps-immediate-filter",16),e.NdJ("filter",function(m){e.CHM(a);const N=e.oxw();return e.KtG(N.applyFilter(m))}),e.qZA(),e.YNc(18,Z,1,0,"mat-spinner",1),e.YNc(19,G,2,3,"perun-web-apps-attributes-list",17),e.qZA()}if(2&h){const a=e.oxw();e.xp6(2),e.Q6J("ngIf","group"===a.secondEntity),e.xp6(1),e.Q6J("ngIf","resource"===a.secondEntity),e.xp6(1),e.Q6J("ngIf","member"===a.secondEntity),e.xp6(1),e.Q6J("ngIf","facility"===a.secondEntity),e.xp6(1),e.Q6J("ngIf","user"===a.secondEntity),e.xp6(3),e.hij(" ",e.lcZ(10,13,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),e.xp6(2),e.Q6J("disabled",0===a.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(13,15,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),e.xp6(2),e.Q6J("disabled",0===a.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(16,17,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),e.xp6(2),e.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),e.xp6(1),e.Q6J("ngIf",a.innerLoading),e.xp6(1),e.Q6J("ngIf",!a.innerLoading)}}let V=(()=>{class h{constructor(a,r,m,N,Y,Q){this.attributesManagerService=a,this.resourcesManagerService=r,this.facilitiesManagerService=m,this.groupsManagerService=N,this.membersManager=Y,this.dialog=Q,this.entityValues=[],this.attributes=[],this.selection=new I.Ov(!0,[]),this.allowedStatuses=["INVALID","VALID"],this.loading=!1,this.innerLoading=!1,this.filterValue=""}ngOnInit(){this.loadEntityValues(),this.setMessages(this.secondEntity.toLowerCase())}loadEntityValues(){switch(this.loading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.resourcesManagerService.getAssignedResourcesWithStatus(this.firstEntityId).subscribe(a=>{this.entityValues=a.map(r=>r.enrichedResource.resource),this.preselectEntity(),this.loading=!1});break;case"group":this.groupsManagerService.getMemberGroups(this.firstEntityId).subscribe(a=>{this.entityValues=a,this.preselectEntity(),this.loading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.resourcesManagerService.getResourceAssignments(this.firstEntityId).subscribe(a=>{this.entityValues=a.map(r=>{const m=r.enrichedResource.resource;return m.status=r.status,m}),this.preselectEntity(),this.loading=!1});break;case"member":this.membersManager.getCompleteRichMembersForGroup(this.firstEntityId,!1,this.allowedStatuses,null,[y.r.MEMBER_CORE_ID]).subscribe(a=>{this.entityValues=a,this.preselectEntity(),this.loading=!1})}break;case"user":this.facilitiesManagerService.getAssignedFacilitiesByUser(this.firstEntityId).subscribe(a=>{this.entityValues=a,this.preselectEntity(),this.loading=!1});break;case"resource":switch(this.secondEntity){case"member":this.resourcesManagerService.getAssignedMembersWithStatus(this.firstEntityId).subscribe(a=>{this.entityValues=a.map(r=>r.richMember),this.preselectEntity(),this.loading=!1});break;case"group":this.resourcesManagerService.getGroupAssignments(this.firstEntityId).subscribe(a=>{this.entityValues=a.map(r=>{const m=r.enrichedGroup.group;return m.status=r.status,m}),this.preselectEntity(),this.loading=!1})}break;case"facility":this.facilitiesManagerService.getAssignedUsers(this.firstEntityId).subscribe(a=>{this.entityValues=a,this.preselectEntity(),this.loading=!1})}}preselectEntity(){0!==this.entityValues.length&&this.findInitiallySelectedEntity()}findInitiallySelectedEntity(){let a=this.entityValues[0];const r=(0,i.vL)(this.entityKey());if(r)for(const m of this.entityValues)if(m.id===r[0]){a=m;break}this.specifySecondEntity(a)}entityKey(){return"group"===this.secondEntity?"groups":""}getAttributes(a){switch(this.innerLoading=!0,this.selection.clear(),this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.attributesManagerService.getMemberResourceAttributes(this.firstEntityId,a).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"group":this.attributesManagerService.getMemberGroupAttributes(this.firstEntityId,a).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.attributesManagerService.getGroupResourceAttributes(this.firstEntityId,a).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"member":this.attributesManagerService.getMemberGroupAttributes(a,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"user":this.attributesManagerService.getUserFacilityAttributes(this.firstEntityId,a).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"resource":switch(this.secondEntity){case"member":this.attributesManagerService.getMemberResourceAttributes(a,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"group":this.attributesManagerService.getGroupResourceAttributes(a,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"facility":this.attributesManagerService.getUserFacilityAttributes(a,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}}setMessages(a){this.noEntityMessage=`No ${a} assigned`}onSave(a){this.list.updateMapAttributes();const r=(0,i.kZ)();r.width="450px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:a,attributes:this.selection.selected},this.dialog.open(M.wA,r).afterClosed().subscribe(N=>{N&&(this.selection.clear(),this.getAttributes(a))})}onDelete(a){const r=(0,i.kZ)();r.width="450px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:a,attributes:this.selection.selected,theme:`${this.firstEntity}-theme`},this.dialog.open(g.k,r).afterClosed().subscribe(N=>{N&&(this.selection.clear(),this.getAttributes(a))})}onAdd(a){const r=(0,i.kZ)();r.width="1050px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:a,notEmptyAttributes:this.attributes,style:`${this.firstEntity}-theme`},this.dialog.open(n.n,r).afterClosed().subscribe(N=>{N&&(this.selection.clear(),this.getAttributes(a))})}specifySecondEntity(a){a&&(this.specificSecondEntity=a,this.getAttributes(this.specificSecondEntity.id))}applyFilter(a){this.filterValue=a}}return h.\u0275fac=function(a){return new(a||h)(e.Y36(t.H8),e.Y36(t.xk),e.Y36(t.IQ),e.Y36(t.ff),e.Y36(t.uq),e.Y36(O.uw))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-two-entity-attribute-page"]],viewQuery:function(a,r){if(1&a&&e.Gf(C,5),2&a){let m;e.iGM(m=e.CRH())&&(r.list=m.first)}},inputs:{firstEntityId:"firstEntityId",firstEntity:"firstEntity",secondEntity:"secondEntity"},decls:4,vars:3,consts:[[1,"mt-3"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"flex-row"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected",4,"ngIf"],[3,"resources","resourceSelected",4,"ngIf"],[3,"members","memberSelected",4,"ngIf"],[3,"facilities","facilitySelected",4,"ngIf"],[3,"users","userSelected",4,"ngIf"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"attributes","filterValue","selection",4,"ngIf"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected"],[3,"resources","resourceSelected"],[3,"members","memberSelected"],[3,"facilities","facilitySelected"],[3,"users","userSelected"],[3,"attributes","filterValue","selection"],["list",""]],template:function(a,r){1&a&&(e.TgZ(0,"div",0),e.YNc(1,P,1,0,"mat-spinner",1),e.YNc(2,F,2,1,"perun-web-apps-alert",2),e.YNc(3,K,20,19,"div",3),e.qZA()),2&a&&(e.xp6(1),e.Q6J("ngIf",r.loading),e.xp6(1),e.Q6J("ngIf",0===r.entityValues.length&&!r.loading),e.xp6(1),e.Q6J("ngIf",0!==r.entityValues.length))},dependencies:[S.O5,T.lW,w.Ou,v.w,A.t,R.L,d.p,D.h,_.L,p,E.R,l.S,U.X$],styles:[".w-35[_ngcontent-%COMP%]{width:35%}"]}),h})()},79707:(W,L,s)=>{s.d(L,{R:()=>i});var t=s(94650),u=s(9244),I=s(89593),g=s(89383);let i=(()=>{class M{constructor(){this.disableAutoSelect=!1,this.selectPlaceholder="SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY",this.facilitySelected=new t.vpe,this.nameFunction=y=>y.name}ngOnInit(){this.facilities=this.facilities.sort(u.aC)}}return M.\u0275fac=function(y){return new(y||M)},M.\u0275cmp=t.Xpm({type:M,selectors:[["perun-web-apps-facility-search-select"]],inputs:{facilities:"facilities",disableAutoSelect:"disableAutoSelect",selectPlaceholder:"selectPlaceholder"},outputs:{facilitySelected:"facilitySelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(y,e){1&y&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(S){return e.facilitySelected.emit(S)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&y&&t.Q6J("entities",e.facilities)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.nameFunction)("mainTextFunction",e.nameFunction)("selectPlaceholder",t.lcZ(1,7,e.selectPlaceholder))("findPlaceholder",t.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",t.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},dependencies:[I.i,g.X$]}),M})()},71135:(W,L,s)=>{s.d(L,{L:()=>v});var t=s(94650),u=s(65412),I=s(94364),g=s(36895),i=s(97392),M=s(3238),n=s(34198),y=s(55660),e=s(89383),O=s(64597);const S=function(A){return[A]};function T(A,R){if(1&A&&(t.TgZ(0,"div",3)(1,"a",4),t.NdJ("auxclick",function(D){return D.preventDefault()}),t.ALo(2,"multiWordDataCy"),t.ALo(3,"translate"),t._UZ(4,"mat-icon",5),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&A){const d=R.$implicit;t.xp6(1),t.Gre("",d.style," item-itself"),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(14,S,d.url))("routerLink",d.url),t.uIk("data-cy",t.lcZ(2,8,t.lcZ(3,10,d.label))),t.xp6(3),t.Q6J("svgIcon",d.cssIcon),t.xp6(1),t.hij(" ",t.lcZ(6,12,d.label)," ")}}function w(A,R){if(1&A&&(t.TgZ(0,"div",1),t.YNc(1,T,7,16,"div",2),t.qZA()),2&A){const d=t.oxw();t.xp6(1),t.Q6J("ngForOf",d.items)}}let v=(()=>{class A{constructor(d,D){this.dialog=d,this.route=D,this.size="large"}ngOnInit(){this.route.params.subscribe(d=>{this.voId=Number(d.voId)})}}return A.\u0275fac=function(d){return new(d||A)(t.Y36(u.uw),t.Y36(I.gz))},A.\u0275cmp=t.Xpm({type:A,selectors:[["perun-web-apps-menu-buttons-field"]],inputs:{items:"items",size:"size"},decls:1,vars:1,consts:[["class","items-container",4,"ngIf"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],[3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(d,D){1&d&&t.YNc(0,w,2,1,"div",0),2&d&&t.Q6J("ngIf","small"===D.size)},dependencies:[g.sg,g.O5,I.yS,i.Hw,M.wG,n.Y,y.Q,e.X$,O.R],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;align-items:center;font-size:1.25rem}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}"]}),A})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/338.eece52703f68413f.js b/dist/apps/admin-gui/338.b5a1b8ce27f85e05.js similarity index 99% rename from dist/apps/admin-gui/338.eece52703f68413f.js rename to dist/apps/admin-gui/338.b5a1b8ce27f85e05.js index 2f091e95f..3f9a8fc67 100644 --- a/dist/apps/admin-gui/338.eece52703f68413f.js +++ b/dist/apps/admin-gui/338.b5a1b8ce27f85e05.js @@ -1 +1 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[338],{54668:(W,Z,t)=>{t.d(Z,{l:()=>p});var C=t(65412),c=t(61744),L=t(81591),n=t(10036),e=t(95017),D=t(64080),s=t(24006),i=t(94650),A=t(89383),d=t(36895),y=t(59549),S=t(284),b=t(97392),N=t(4859),U=t(51572),P=t(98380),T=t(64877);function v(o,_){if(1&o&&i._UZ(0,"app-users-list",14),2&o){const l=i.oxw(2);i.Q6J("displayedColumns",l.displayedColumns)("selection",l.selection)("tableId",l.tableId)("disableRouting",!0)("users",l.identities)}}function O(o,_){if(1&o&&(i.TgZ(0,"div"),i.YNc(1,v,1,5,"app-users-list",13),i.qZA()),2&o){const l=i.oxw();i.xp6(1),i.Q6J("ngIf",void 0!==l.identities&&l.identities.length>0)}}function g(o,_){1&o&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&o&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function h(o,_){1&o&&(i.TgZ(0,"perun-web-apps-alert",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&o&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function u(o,_){1&o&&i._UZ(0,"mat-spinner",17)}let p=(()=>{class o{constructor(l,I,f,R,B,x){this.dialogRef=l,this.data=I,this.userManager=f,this.storeService=R,this.notificator=B,this.translate=x,this.loading=!1,this.selection=new e.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=n.Iz}ngOnInit(){this.target=this.data.target,this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new s.p4("",[s.kI.required,s.kI.pattern(".*[\\S]+.*")])}onAdd(){let l,I;this.loading=!0,this.isService?(l=this.selection.selected[0].id,I=this.userId):(l=this.userId,I=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(l,I).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.firstSearchDone=!0;let l=[D.r.USER_DEF_ORGANIZATION,D.r.USER_DEF_PREFERRED_MAIL];l=l.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,l).subscribe(I=>{this.identities=this.filterIdentities(I),this.loading=!1},()=>{this.loading=!1})}onKeyInput(l){"Enter"===l.key&&this.onSearchByString()}filterIdentities(l){return l.filter(this.isService?I=>!I.serviceUser:I=>I.serviceUser)}}return o.\u0275fac=function(l){return new(l||o)(i.Y36(C.so),i.Y36(C.WI),i.Y36(c.Fv),i.Y36(L.d6),i.Y36(L.V6),i.Y36(A.sK))},o.\u0275cmp=i.Xpm({type:o,selectors:[["app-connect-identity-dialog"]],decls:25,vars:25,consts:[[3,"keyup"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["color","primary","mat-flat-button","",1,"mr-2","search-btn",3,"disabled","click"],[4,"ngIf"],["alert_type","info",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"displayedColumns","selection","tableId","disableRouting","users",4,"ngIf"],[3,"displayedColumns","selection","tableId","disableRouting","users"],["alert_type","info"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(l,I){1&l&&(i.TgZ(0,"div",0),i.NdJ("keyup",function(R){return I.onKeyInput(R)}),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2)(5,"mat-form-field",3),i._UZ(6,"input",4),i.ALo(7,"translate"),i.TgZ(8,"mat-error"),i._uU(9),i.ALo(10,"translate"),i.qZA()(),i.TgZ(11,"button",5),i.NdJ("click",function(){return I.onSearchByString()}),i.TgZ(12,"mat-icon"),i._uU(13,"search"),i.qZA()(),i.YNc(14,O,2,1,"div",6),i.YNc(15,g,3,3,"perun-web-apps-alert",7),i.YNc(16,h,3,3,"perun-web-apps-alert",8),i.qZA(),i.YNc(17,u,1,0,"mat-spinner",9),i.TgZ(18,"div",10)(19,"button",11),i.NdJ("click",function(){return I.onCancel()}),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"button",12),i.NdJ("click",function(){return I.onAdd()}),i._uU(23),i.ALo(24,"translate"),i.qZA()()()),2&l&&(i.Tol(I.theme),i.xp6(2),i.Oqu(i.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE_"+I.target)),i.xp6(4),i.s9C("placeholder",i.lcZ(7,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),i.Q6J("formControl",I.searchCtrl),i.xp6(3),i.hij(" ",i.lcZ(10,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),i.xp6(2),i.Q6J("disabled",I.loading),i.xp6(3),i.Q6J("ngIf",!I.loading),i.xp6(1),i.Q6J("ngIf",!I.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!I.loading&&I.firstSearchDone&&0===I.identities.length),i.xp6(1),i.Q6J("ngIf",I.loading),i.xp6(3),i.hij(" ",i.lcZ(21,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===I.selection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(24,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},dependencies:[d.O5,y.TO,y.KE,S.Nt,s.Fj,s.JJ,s.oH,b.Hw,N.lW,C.uh,C.xY,C.H8,U.Ou,P.w,T.C,A.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),o})()},94814:(W,Z,t)=>{t.d(Z,{B:()=>T});var C=t(61744),c=t(65412),L=t(81591),n=t(30671),e=t(94650),D=t(89383),s=t(36895),i=t(4859),A=t(98380),d=t(31359);function y(v,O){1&v&&e._UZ(0,"th",13)}function S(v,O){if(1&v&&(e.TgZ(0,"td",14),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&v){const g=O.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,g))}}function b(v,O){1&v&&e._UZ(0,"tr",15)}function N(v,O){1&v&&e._UZ(0,"tr",16)}function U(v,O){1&v&&(e.TgZ(0,"perun-web-apps-alert",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_DISCONNECT_YOURSELF")," "))}function P(v,O){1&v&&(e.TgZ(0,"perun-web-apps-alert",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_LAST_USER")," "))}let T=(()=>{class v{constructor(g,h,u,p,o,_){this.dialogRef=g,this.data=h,this.userManager=u,this.notificator=p,this.translate=o,this.store=_,this.displayedColumns=["name"]}ngOnInit(){let g;this.targetTitle=this.data.targetTitle,this.targetDescription=this.data.targetDescription,this.theme=this.data.theme,this.userId=Number(this.data.userId),this.dataSource=new n.by([this.data.specificUser]),this.isService=this.data.isService,this.isService?(g=this.userId,this.disconnectingSelf=this.dataSource.data[0].id===this.store.getPerunPrincipal().userId):(g=this.dataSource.data[0].id,this.disconnectingSelf=this.userId===this.store.getPerunPrincipal().userId),this.userManager.getUsersBySpecificUser(g).subscribe(h=>{this.disconnectingLastOwner=1===h.length})}onConfirm(){let g,h;this.isService?(g=this.dataSource.data[0].id,h=this.userId):(g=this.userId,h=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(g,h).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return v.\u0275fac=function(g){return new(g||v)(e.Y36(c.so),e.Y36(c.WI),e.Y36(C.Fv),e.Y36(L.V6),e.Y36(D.sK),e.Y36(L.d6))},v.\u0275cmp=e.Xpm({type:v,selectors:[["app-disconnect-identity-dialog"]],decls:26,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"]],template:function(g,h){1&g&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div")(4,"div",1)(5,"p"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"div",2),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"table",3),e.ynx(12,4),e.YNc(13,y,1,0,"th",5),e.YNc(14,S,3,3,"td",6),e.BQk(),e.YNc(15,b,1,0,"tr",7),e.YNc(16,N,1,0,"tr",8),e.qZA(),e.YNc(17,U,3,3,"perun-web-apps-alert",9),e.YNc(18,P,3,3,"perun-web-apps-alert",9),e.qZA(),e.TgZ(19,"div",10)(20,"button",11),e.NdJ("click",function(){return h.onCancel()}),e._uU(21),e.ALo(22,"translate"),e.qZA(),e.TgZ(23,"button",12),e.NdJ("click",function(){return h.onConfirm()}),e._uU(24),e.ALo(25,"translate"),e.qZA()()()),2&g&&(e.xp6(1),e.Oqu(e.lcZ(2,13,"DIALOGS.DISCONNECT_IDENTITY.TITLE_"+h.targetTitle)),e.xp6(2),e.Tol(h.theme),e.xp6(3),e.Oqu(e.lcZ(7,15,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION_"+h.targetDescription)),e.xp6(3),e.hij(" ",e.lcZ(10,17,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),e.xp6(2),e.Q6J("dataSource",h.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",h.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",h.displayedColumns),e.xp6(1),e.Q6J("ngIf",h.disconnectingSelf),e.xp6(1),e.Q6J("ngIf",h.disconnectingLastOwner),e.xp6(3),e.hij(" ",e.lcZ(22,19,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.lcZ(25,21,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},dependencies:[s.O5,i.lW,n.BZ,n.fO,n.as,n.w1,n.Dz,n.nj,n.ge,n.ev,n.XQ,n.Gk,c.uh,c.xY,c.H8,A.w,D.X$,d.d]}),v})()},29862:(W,Z,t)=>{t.d(Z,{x:()=>P});var C=t(61744),c=t(65412),L=t(81591),n=t(24006),e=t(94650),D=t(89383),s=t(36895),i=t(59549),A=t(284),d=t(4859);function y(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function S(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function b(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function N(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function U(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}let P=(()=>{class T{constructor(O,g,h,u,p){this.dialogRef=O,this.data=g,this.userService=h,this.notificator=u,this.translateService=p,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.titleBefore=new n.p4(this.data.user.titleBefore,[n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)]),this.titleAfter=new n.p4(this.data.user.titleAfter,[n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)]),this.firstName=new n.p4(this.data.user.firstName,[n.kI.required,n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)]),this.middleName=new n.p4(this.data.user.middleName,[n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)]),this.lastName=new n.p4(this.data.user.lastName,[n.kI.required,n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSave(){this.loading=!0,this.data.user.titleBefore=this.titleBefore.value,this.data.user.titleAfter=this.titleAfter.value,this.data.user.firstName=this.firstName.value,this.data.user.middleName=this.middleName.value,this.data.user.lastName=this.lastName.value,this.userService.updateUser({user:this.data.user}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_USER.SUCCESS").subscribe(O=>{this.notificator.showSuccess(O),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return T.\u0275fac=function(O){return new(O||T)(e.Y36(c.so),e.Y36(c.WI),e.Y36(C.Fv),e.Y36(L.V6),e.Y36(D.sK))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-edit-user-dialog"]],decls:32,vars:38,consts:[[1,"mat-dialog-title"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["matInput","","data-cy","user-first-name-input","required","",3,"placeholder","formControl"],["matInput","","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","user-save-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(O,g){1&O&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"mat-form-field"),e._UZ(6,"input",2),e.ALo(7,"translate"),e.YNc(8,y,3,3,"mat-error",3),e.qZA(),e.TgZ(9,"mat-form-field"),e._UZ(10,"input",2),e.ALo(11,"translate"),e.YNc(12,S,3,3,"mat-error",3),e.qZA(),e.TgZ(13,"mat-form-field"),e._UZ(14,"input",4),e.ALo(15,"translate"),e.YNc(16,b,3,3,"mat-error",3),e.qZA(),e.TgZ(17,"mat-form-field"),e._UZ(18,"input",2),e.ALo(19,"translate"),e.YNc(20,N,3,3,"mat-error",3),e.qZA(),e.TgZ(21,"mat-form-field"),e._UZ(22,"input",5),e.ALo(23,"translate"),e.YNc(24,U,3,3,"mat-error",3),e.qZA()(),e.TgZ(25,"div",6)(26,"button",7),e.NdJ("click",function(){return g.onCancel()}),e._uU(27),e.ALo(28,"translate"),e.qZA(),e.TgZ(29,"button",8),e.NdJ("click",function(){return g.onSave()}),e._uU(30),e.ALo(31,"translate"),e.qZA()()()),2&O&&(e.Tol(g.theme),e.xp6(2),e.Oqu(e.lcZ(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),e.xp6(4),e.s9C("placeholder",e.lcZ(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),e.Q6J("formControl",g.titleBefore),e.xp6(2),e.Q6J("ngIf",g.titleBefore.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),e.Q6J("formControl",g.titleAfter),e.xp6(2),e.Q6J("ngIf",g.titleAfter.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),e.Q6J("formControl",g.firstName),e.xp6(2),e.Q6J("ngIf",g.firstName.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),e.Q6J("formControl",g.middleName),e.xp6(2),e.Q6J("ngIf",g.middleName.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),e.Q6J("formControl",g.lastName),e.xp6(2),e.Q6J("ngIf",g.lastName.invalid),e.xp6(3),e.hij(" ",e.lcZ(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),e.xp6(2),e.Q6J("disabled",g.loading||g.firstName.invalid||g.lastName.invalid||g.titleBefore.invalid||g.titleAfter.invalid||g.middleName.invalid),e.xp6(1),e.hij(" ",e.lcZ(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},dependencies:[s.O5,i.TO,i.KE,A.Nt,n.Fj,n.JJ,n.Q7,n.oH,d.lW,c.xY,c.H8,D.X$]}),T})()},90979:(W,Z,t)=>{t.d(Z,{G:()=>D});var C=t(65412),c=t(81591),L=t(61744),n=t(94650),e=t(1415);let D=(()=>{class s{constructor(A,d,y,S){this.data=A,this.dialogRef=d,this.facilityService=y,this.notificator=S,this.loading=!1}update(A){this.loading=!0,this.facilityService.updateFacilityBan({banOnFacility:{id:this.data.ban.id,beanName:"BanOnFacility",facilityId:this.data.ban.facilityId,userId:this.data.ban.userId,description:A.description,validityTo:A.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}cancel(){this.dialogRef.close(!1)}}return s.\u0275fac=function(A){return new(A||s)(n.Y36(C.WI),n.Y36(C.so),n.Y36(L.IQ),n.Y36(c.V6))},s.\u0275cmp=n.Xpm({type:s,selectors:[["app-update-facility-ban-dialog"]],decls:1,vars:2,consts:[[3,"ban","theme","cancel","update"]],template:function(A,d){1&A&&(n.TgZ(0,"app-update-ban-dialog",0),n.NdJ("cancel",function(){return d.cancel()})("update",function(S){return d.update(S)}),n.qZA()),2&A&&n.Q6J("ban",d.data.ban)("theme","facility-theme")},dependencies:[e.l]}),s})()},98973:(W,Z,t)=>{t.d(Z,{u:()=>N});var C=t(81591),c=t(94650),L=t(94364),n=t(36895),e=t(3848),D=t(19191),s=t(12651),i=t(89383);function A(U,P){1&U&&(c._uU(0),c.ALo(1,"translate")),2&U&&c.hij(" ",c.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function d(U,P){if(1&U&&c._UZ(0,"app-one-entity-attribute-page",5),2&U){const T=c.oxw();c.Q6J("entityId",T.userId)("entity","user")}}function y(U,P){1&U&&(c._uU(0),c.ALo(1,"translate"),c.ALo(2,"translate")),2&U&&c.AsE(" ",c.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",c.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function S(U,P){if(1&U&&c._UZ(0,"app-two-entity-attribute-page",6),2&U){const T=c.oxw(2);c.Q6J("firstEntity","user")("firstEntityId",T.userId)("secondEntity","facility")}}function b(U,P){1&U&&(c.TgZ(0,"mat-tab"),c.YNc(1,y,3,6,"ng-template",2),c.YNc(2,S,1,3,"ng-template",3),c.qZA())}let N=(()=>{class U{constructor(T,v,O){this.route=T,this.store=v,this.authResolver=O}ngOnInit(){this.route.parent.params.subscribe(T=>{this.userId=Number(T.userId),this.userId||(this.userId=this.store.getPerunPrincipal().userId),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:this.userId,beanName:"User"}])})}}return U.\u0275fac=function(T){return new(T||U)(c.Y36(L.gz),c.Y36(C.d6),c.Y36(C.x4))},U.\u0275cmp=c.Xpm({type:U,selectors:[["app-user-settings-attributes"]],hostVars:2,hostBindings:function(T,v){2&T&&c.ekj("router-component",v.true)},decls:8,vars:4,consts:[[1,"page-subtitle"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(T,v){1&T&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"mat-tab-group")(4,"mat-tab",1),c.YNc(5,A,2,3,"ng-template",2),c.YNc(6,d,1,2,"ng-template",3),c.qZA(),c.YNc(7,b,3,0,"mat-tab",4),c.qZA()),2&T&&(c.xp6(1),c.Oqu(c.lcZ(2,2,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),c.xp6(6),c.Q6J("ngIf",v.userFacilityAttAuth))},dependencies:[n.O5,e.SP,e.uD,e.uX,e.Vc,D.Y,s.t,i.X$]}),U})()},51403:(W,Z,t)=>{t.d(Z,{Q:()=>_});var C=t(61744),c=t(81591),L=t(9244),n=t(32316),e=t(28943),D=t(90979),s=t(94650),i=t(65412),A=t(3848),d=t(51572),y=t(64901),S=t(73358),b=t(91880),N=t(89383);function U(l,I){1&l&&(s._uU(0),s.ALo(1,"translate")),2&l&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.BANS.VO")," ")}function P(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-ban-on-entity-list",8),s.NdJ("updateBan",function(B){s.CHM(f);const x=s.oxw(2);return s.KtG(x.updateVoBan(B))}),s.qZA()}if(2&l){const f=s.oxw(2);s.Q6J("bans",f.voBans)("displayedColumns",f.displayedColumns)("filter",f.filter)("updatePolicy","updateBan_BanOnVo_policy")}}function T(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(B){s.CHM(f);const x=s.oxw();return s.KtG(x.filter=B)}),s.qZA(),s.TgZ(1,"div",6),s.YNc(2,P,1,4,"perun-web-apps-ban-on-entity-list",7),s.qZA()}if(2&l){const f=s.oxw(),R=s.MAs(14);s.Q6J("placeholder","USER_DETAIL.BANS.FILTER"),s.xp6(2),s.Q6J("perunWebAppsLoader",f.loading)("perunWebAppsLoaderIndicator",R)}}function v(l,I){1&l&&(s._uU(0),s.ALo(1,"translate")),2&l&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.BANS.RESOURCE")," ")}function O(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-ban-on-entity-list",8),s.NdJ("updateBan",function(B){s.CHM(f);const x=s.oxw(2);return s.KtG(x.updateResourceBan(B))}),s.qZA()}if(2&l){const f=s.oxw(2);s.Q6J("bans",f.resourceBans)("displayedColumns",f.displayedColumns)("filter",f.filter)("updatePolicy","updateBan_BanOnResource_policy")}}function g(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(B){s.CHM(f);const x=s.oxw();return s.KtG(x.filter=B)}),s.qZA(),s.TgZ(1,"div",6),s.YNc(2,O,1,4,"perun-web-apps-ban-on-entity-list",7),s.qZA()}if(2&l){const f=s.oxw(),R=s.MAs(14);s.Q6J("placeholder","USER_DETAIL.BANS.FILTER"),s.xp6(2),s.Q6J("perunWebAppsLoader",f.loading)("perunWebAppsLoaderIndicator",R)}}function h(l,I){1&l&&(s._uU(0),s.ALo(1,"translate")),2&l&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.BANS.FACILITY")," ")}function u(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-ban-on-entity-list",8),s.NdJ("updateBan",function(B){s.CHM(f);const x=s.oxw(2);return s.KtG(x.updateFacilityBan(B))}),s.qZA()}if(2&l){const f=s.oxw(2);s.Q6J("bans",f.facilityBans)("displayedColumns",f.displayedColumns)("filter",f.filter)("updatePolicy","updateBan_BanOnFacility_policy")}}function p(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(B){s.CHM(f);const x=s.oxw();return s.KtG(x.filter=B)}),s.qZA(),s.TgZ(1,"div",6),s.YNc(2,u,1,4,"perun-web-apps-ban-on-entity-list",7),s.qZA()}if(2&l){const f=s.oxw(),R=s.MAs(14);s.Q6J("placeholder","USER_DETAIL.BANS.FILTER"),s.xp6(2),s.Q6J("perunWebAppsLoader",f.loading)("perunWebAppsLoaderIndicator",R)}}function o(l,I){1&l&&(s.TgZ(0,"div",9),s._UZ(1,"mat-spinner"),s.qZA())}let _=(()=>{class l{constructor(f,R,B,x,z){this.voService=f,this.resourceService=R,this.facilityService=B,this.entityService=x,this.dialog=z,this.loading=!1,this.voBans=[],this.resourceBans=[],this.facilityBans=[],this.filter="",this.displayedColumns=["banId","targetId","targetName","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.user=this.entityService.getEntity(),this.refreshVoBans()}refreshVoBans(){this.loading=!0,this.voService.getEnrichedVoBansForUser(this.user.id).subscribe({next:f=>{this.voBans=f,this.loading=!1},error:()=>this.loading=!1})}refreshResourceBans(){this.loading=!0,this.resourceService.getEnrichedBansForUser(this.user.id).subscribe({next:f=>{this.resourceBans=f,this.loading=!1},error:()=>this.loading=!1})}refreshFacilityBans(){this.loading=!0,this.facilityService.getEnricheFacilitydBansForUser(this.user.id).subscribe({next:f=>{this.facilityBans=f,this.loading=!1},error:()=>this.loading=!1})}updateVoBan(f){this.dialog.open(n.A,this.getConfig(f)).afterClosed().subscribe(B=>{B&&this.refreshVoBans()})}updateResourceBan(f){this.dialog.open(e.e,this.getConfig(f)).afterClosed().subscribe(B=>{B&&this.refreshResourceBans()})}updateFacilityBan(f){this.dialog.open(D.G,this.getConfig(f)).afterClosed().subscribe(B=>{B&&this.refreshFacilityBans()})}getConfig(f){const R=(0,L.kZ)();return R.width="600px",R.data={ban:f.ban,theme:"user-theme"},R}refresh(f){0===f.index?this.refreshVoBans():1===f.index?this.refreshResourceBans():this.refreshFacilityBans()}}return l.\u0275fac=function(f){return new(f||l)(s.Y36(C.YF),s.Y36(C.xk),s.Y36(C.IQ),s.Y36(c.fb),s.Y36(i.uw))},l.\u0275cmp=s.Xpm({type:l,selectors:[["app-user-bans"]],decls:15,vars:3,consts:[[1,"page-subtitle"],[1,"mt-3",3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["spinner",""],[1,"mt-2","search-field",3,"placeholder","filter"],[1,"position-relative"],[3,"bans","displayedColumns","filter","updatePolicy","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"bans","displayedColumns","filter","updatePolicy","updateBan"],[1,"spinner-container"]],template:function(f,R){1&f&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"mat-tab-group",1),s.NdJ("selectedTabChange",function(x){return R.refresh(x)}),s.TgZ(4,"mat-tab"),s.YNc(5,U,2,3,"ng-template",2),s.YNc(6,T,3,3,"ng-template",3),s.qZA(),s.TgZ(7,"mat-tab"),s.YNc(8,v,2,3,"ng-template",2),s.YNc(9,g,3,3,"ng-template",3),s.qZA(),s.TgZ(10,"mat-tab"),s.YNc(11,h,2,3,"ng-template",2),s.YNc(12,p,3,3,"ng-template",3),s.qZA()(),s.YNc(13,o,2,0,"ng-template",null,4,s.W1O)),2&f&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.BANS.TITLE"),"\n"))},dependencies:[A.SP,A.uD,A.uX,A.Vc,d.Ou,y.P,S.e,b.s,N.X$]}),l})()},85985:(W,Z,t)=>{t.d(Z,{u:()=>g});var C=t(81591),c=t(61744),L=t(10036),n=t(94650),e=t(94364),D=t(36895),s=t(51572),i=t(25788),A=t(96214),d=t(7434),y=t(89383);function S(h,u){1&h&&(n.TgZ(0,"h1",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&h&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function b(h,u){1&h&&(n.TgZ(0,"h1",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&h&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function N(h,u){1&h&&n._UZ(0,"mat-spinner",7)}const U=function(){return["id","vo","name","description"]};function P(h,u){if(1&h&&n._UZ(0,"perun-web-apps-groups-list",8),2&h){const p=n.oxw();n.Q6J("disableMembers",!1)("groups",p.membersGroups)("displayedColumns",n.DdM(5,U))("filter",p.memberFilterValue)("tableId",p.tableId)}}function T(h,u){1&h&&n._UZ(0,"mat-spinner",7)}function v(h,u){if(1&h&&n._UZ(0,"perun-web-apps-groups-list",8),2&h){const p=n.oxw(2);n.Q6J("disableMembers",!1)("groups",p.adminsGroups)("displayedColumns",n.DdM(5,U))("filter",p.adminFilterValue)("tableId",p.adminTableId)}}function O(h,u){if(1&h){const p=n.EpF();n.TgZ(0,"div",9)(1,"h1",6),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){n.CHM(p);const _=n.oxw();return n.KtG(_.refreshAdminTable())}),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(_){n.CHM(p);const l=n.oxw();return n.KtG(l.adminFilter(_))}),n.qZA(),n.YNc(6,T,1,0,"mat-spinner",3),n.YNc(7,v,1,6,"perun-web-apps-groups-list",4),n.qZA()}if(2&h){const p=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),n.xp6(3),n.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),n.xp6(1),n.Q6J("ngIf",p.adminRefresh),n.xp6(1),n.Q6J("ngIf",!p.adminRefresh)}}let g=(()=>{class h{constructor(p,o,_,l,I){this.usersService=p,this.memberService=o,this.groupService=_,this.store=l,this.route=I,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=L.KE,this.adminTableId=L.Sb}ngOnInit(){(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(p=>this.userId=Number(p.userId)),this.refreshAdminTable(),this.refreshMemberTable()}memberFilter(p){this.memberFilterValue=p}adminFilter(p){this.adminFilterValue=p}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(p=>{this.adminsGroups=p,this.adminRefresh=!1})}refreshMemberTable(){this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(p=>{this.vos=p;for(const o of this.vos)this.memberService.getMemberByUser(o.id,this.userId).subscribe(_=>{this.groupService.getMemberGroups(_.id).subscribe(l=>{this.membersGroups=this.membersGroups.concat(l),this.vos.indexOf(o)===this.vos.length-1&&(this.memberRefresh=!1)})});0===p.length&&(this.memberRefresh=!1)})}}return h.\u0275fac=function(p){return new(p||h)(n.Y36(c.Fv),n.Y36(c.uq),n.Y36(c.ff),n.Y36(C.d6),n.Y36(e.gz))},h.\u0275cmp=n.Xpm({type:h,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(p,o){2&p&&n.ekj("router-component",o.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableMembers","groups","displayedColumns","filter","tableId",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"disableMembers","groups","displayedColumns","filter","tableId"],[1,"mt-5"]],template:function(p,o){1&p&&(n.YNc(0,S,3,3,"h1",0),n.YNc(1,b,3,3,"h1",0),n.TgZ(2,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){return o.refreshMemberTable()}),n.qZA(),n.TgZ(3,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(l){return o.memberFilter(l)}),n.qZA(),n.YNc(4,N,1,0,"mat-spinner",3),n.YNc(5,P,1,6,"perun-web-apps-groups-list",4),n.YNc(6,O,8,6,"div",5)),2&p&&(n.Q6J("ngIf",o.showPrincipal),n.xp6(1),n.Q6J("ngIf",!o.showPrincipal),n.xp6(2),n.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),n.xp6(1),n.Q6J("ngIf",o.memberRefresh),n.xp6(1),n.Q6J("ngIf",!o.memberRefresh),n.xp6(1),n.Q6J("ngIf",!o.showPrincipal))},dependencies:[D.O5,s.Ou,i.W,A.t,d.L,y.X$]}),h})()},74837:(W,Z,t)=>{t.d(Z,{j:()=>O});var C=t(61744),c=t(81591),L=t(10036),n=t(94650),e=t(94364),D=t(36895),s=t(51572),i=t(87831),A=t(96214),d=t(7434),y=t(89383);function S(g,h){1&g&&(n.TgZ(0,"h1",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&g&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function b(g,h){1&g&&(n.TgZ(0,"h1",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&g&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function N(g,h){1&g&&n._UZ(0,"mat-spinner",7)}function U(g,h){if(1&g&&n._UZ(0,"perun-web-apps-vos-list",8),2&g){const u=n.oxw();n.Q6J("displayedColumns",u.displayedColumns)("tableId",u.memberTableId)("filterValue",u.memberFilterValue)("vos",u.vosWhereIsMember)}}function P(g,h){1&g&&n._UZ(0,"mat-spinner",7)}function T(g,h){if(1&g&&n._UZ(0,"perun-web-apps-vos-list",8),2&g){const u=n.oxw(2);n.Q6J("displayedColumns",u.displayedColumns)("tableId",u.adminTableId)("filterValue",u.adminFilterValue)("vos",u.vosWhereIsAdmin)}}function v(g,h){if(1&g){const u=n.EpF();n.TgZ(0,"div",9)(1,"h1",6),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){n.CHM(u);const o=n.oxw();return n.KtG(o.refreshAdminTable())}),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(o){n.CHM(u);const _=n.oxw();return n.KtG(_.applyAdminFilter(o))}),n.qZA(),n.YNc(6,P,1,0,"mat-spinner",3),n.YNc(7,T,1,4,"perun-web-apps-vos-list",4),n.qZA()}if(2&g){const u=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),n.xp6(3),n.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),n.xp6(1),n.Q6J("ngIf",u.adminRefresh),n.xp6(1),n.Q6J("ngIf",!u.adminRefresh)}}let O=(()=>{class g{constructor(u,p,o,_){this.usersService=u,this.authResolver=p,this.store=o,this.route=_,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=L.YF,this.memberTableId=L.gc}ngOnInit(){(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(u=>this.userId=Number(u.userId)),this.refreshAdminTable(),this.refreshMemberTable()}refreshMemberTable(){this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(u=>{this.vosWhereIsMember=u,this.memberRefresh=!1},()=>this.memberRefresh=!1)}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(u=>{this.vosWhereIsAdmin=u,this.adminRefresh=!1},()=>this.adminRefresh=!1)}applyMemberFilter(u){this.memberFilterValue=u}applyAdminFilter(u){this.adminFilterValue=u}}return g.\u0275fac=function(u){return new(u||g)(n.Y36(C.Fv),n.Y36(c.x4),n.Y36(c.d6),n.Y36(e.gz))},g.\u0275cmp=n.Xpm({type:g,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(u,p){2&u&&n.ekj("router-component",p.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","tableId","filterValue","vos",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","tableId","filterValue","vos"],[1,"mt-5"]],template:function(u,p){1&u&&(n.YNc(0,S,3,3,"h1",0),n.YNc(1,b,3,3,"h1",0),n.TgZ(2,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){return p.refreshMemberTable()}),n.qZA(),n.TgZ(3,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(_){return p.applyMemberFilter(_)}),n.qZA(),n.YNc(4,N,1,0,"mat-spinner",3),n.YNc(5,U,1,4,"perun-web-apps-vos-list",4),n.YNc(6,v,8,6,"div",5)),2&u&&(n.Q6J("ngIf",p.isMyProfile),n.xp6(1),n.Q6J("ngIf",!p.isMyProfile),n.xp6(2),n.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),n.xp6(1),n.Q6J("ngIf",p.memberRefresh),n.xp6(1),n.Q6J("ngIf",!p.memberRefresh),n.xp6(1),n.Q6J("ngIf",!p.isMyProfile))},dependencies:[D.O5,s.Ou,i.Z,A.t,d.L,y.X$]}),g})()},17755:(W,Z,t)=>{t.d(Z,{Z:()=>u});var C=t(61744),c=t(30671),L=t(81591),n=t(64080),e=t(9244),D=t(21029),s=t(94650),i=t(94364),A=t(65412),d=t(36895),y=t(97392),S=t(4859),b=t(73546),N=t(71135),U=t(89383);function P(p,o){1&p&&s._UZ(0,"th",12)}function T(p,o){if(1&p&&(s.TgZ(0,"td",13),s._uU(1),s.qZA()),2&p){const _=o.$implicit;s.xp6(1),s.hij(" ",_.displayName,": ")}}function v(p,o){1&p&&s._UZ(0,"th",12)}function O(p,o){if(1&p){const _=s.EpF();s.TgZ(0,"td",14),s._uU(1),s.TgZ(2,"button",15),s.NdJ("click",function(){s.CHM(_);const I=s.oxw(2);return s.KtG(I.changeEmail())}),s.TgZ(3,"mat-icon"),s._uU(4,"edit"),s.qZA()()()}if(2&p){const _=o.$implicit;s.xp6(1),s.hij(" ",_.value," ")}}function g(p,o){1&p&&s._UZ(0,"tr",16)}function h(p,o){if(1&p&&(s.TgZ(0,"div",2)(1,"mat-card",3)(2,"mat-card-header")(3,"mat-card-title")(4,"h1",4),s._uU(5),s.ALo(6,"translate"),s.qZA()()(),s.TgZ(7,"mat-card-content")(8,"table",5),s.ynx(9,6),s.YNc(10,P,1,0,"th",7),s.YNc(11,T,2,1,"td",8),s.BQk(),s.ynx(12,9),s.YNc(13,v,1,0,"th",7),s.YNc(14,O,5,1,"td",10),s.BQk(),s.YNc(15,g,1,0,"tr",11),s.qZA()()()()),2&p){const _=s.oxw();s.xp6(5),s.Oqu(s.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),s.xp6(3),s.Q6J("dataSource",_.mailDataSource),s.xp6(7),s.Q6J("matRowDefColumns",_.displayedColumns)}}let u=(()=>{class p{constructor(_,l,I,f,R){this.userService=_,this.attributeService=l,this.storeService=I,this.route=f,this.dialog=R,this.navItems=[],this.isServiceUser=!1,this.displayedColumns=["name","value"],this.inMyProfile=!1}ngOnInit(){this.route.params.subscribe(_=>{_.userId?this.userService.getUserById(Number(_.userId)).subscribe(l=>{this.user=l,this.isServiceUser=l.serviceUser,this.initNavItems(`/admin/users/${this.user.id}`)}):(this.inMyProfile=!0,this.userID=this.storeService.getPerunPrincipal().user.id,this.attributeService.getUserAttributeByName(this.userID,n.r.USER_DEF_PREFERRED_MAIL).subscribe(l=>{this.preferredMail=l,this.handleMailNotDefined(),this.mailDataSource=new c.by([this.preferredMail]),this.initNavItems("/myProfile")}))})}changeEmail(){const _=(0,e.kZ)();_.width="350px",_.data={userId:this.userID},this.dialog.open(D.gr,_).afterClosed().subscribe(I=>{I&&this.attributeService.getUserAttributeByName(this.userID,n.r.USER_DEF_PREFERRED_MAIL).subscribe(f=>{this.preferredMail=f,this.handleMailNotDefined(),this.mailDataSource=new c.by([this.preferredMail])})})}handleMailNotDefined(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,e.Cz)(n.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:new Object("-")})}initNavItems(_){this.navItems=[{cssIcon:"perun-vo",url:`${_}/organizations`,label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",style:"user-btn"},{cssIcon:"perun-group",url:`${_}/groups`,label:"MENU_ITEMS.ADMIN.GROUPS",style:"user-btn"}],window.location.pathname.startsWith("/admin")&&this.navItems.push({cssIcon:"perun-user",url:`${_}/accounts`,label:"MENU_ITEMS.USER.ACCOUNTS",style:"user-btn"},{cssIcon:"perun-identity",url:`${_}/identities`,label:"MENU_ITEMS.USER.IDENTITIES",style:"user-btn"},{cssIcon:"perun-facility-white",url:`${_}/facilities`,label:"MENU_ITEMS.USER.FACILITIES",style:"user-btn"},{cssIcon:"perun-resource",url:`${_}/resources`,label:"MENU_ITEMS.USER.RESOURCES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`${_}/attributes`,label:"MENU_ITEMS.USER.ATTRIBUTES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-roles",url:`${_}/roles`,label:"MENU_ITEMS.USER.ROLES",style:"user-btn"}),this.navItems.push(this.isServiceUser?{cssIcon:"perun-manager",url:`${_}/associated-users`,label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}:{cssIcon:"perun-service-identity",url:`${_}/service-identities`,label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-ban",url:"bans",label:"MENU_ITEMS.USER.BANS",style:"user-btn"}),window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:`${_}/settings`,label:"MENU_ITEMS.ADMIN.SETTINGS",style:"user-btn"})}}return p.\u0275fac=function(_){return new(_||p)(s.Y36(C.Fv),s.Y36(C.H8),s.Y36(L.d6),s.Y36(i.gz),s.Y36(A.uw))},p.\u0275cmp=s.Xpm({type:p,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(_,l){2&_&&s.ekj("router-component",l.true)},decls:2,vars:3,consts:[["class","align-cards",4,"ngIf"],[3,"items","size"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-icon-button","",1,"ml-3",3,"click"],["mat-row",""]],template:function(_,l){1&_&&(s.YNc(0,h,16,5,"div",0),s._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&_&&(s.Q6J("ngIf",l.inMyProfile),s.xp6(1),s.Q6J("items",l.navItems)("size","small"))},dependencies:[d.O5,y.Hw,S.lW,c.BZ,c.fO,c.w1,c.Dz,c.nj,c.ge,c.ev,c.Gk,b.a8,b.dk,b.dn,b.n5,N.L,U.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),p})()},6097:(W,Z,t)=>{t.d(Z,{t:()=>A});var C=t(61744),c=t(81591),L=t(39646),n=t(48382),e=t(86099),D=t(94650),s=t(94364),i=t(90820);let A=(()=>{class d{constructor(S,b,N,U){this.authzResolverService=S,this.route=b,this.store=N,this.roleService=U,this.roles=new Map,this.showDescription=!0}ngOnInit(){this.outerLoading=!0,this.route.parent.params.subscribe(S=>{S.userId?(this.entityType="USER",this.userId=Number(S.userId)):(this.userId=this.store.getPerunPrincipal().userId,this.entityType="SELF"),this.getData()})}getData(){this.outerLoading=!0,this.roles.clear(),(0,L.of)(this.entityType).pipe((0,e.z)(S=>(0,n.s)(()=>"SELF"===S,(0,L.of)(this.store.getPerunPrincipal().roles),this.authzResolverService.getUserRoles(this.userId)))).subscribe(S=>{const b=Object.keys(S).map(N=>N.toUpperCase());this.roles=this.roleService.prepareRoles(S,b),this.outerLoading=!1})}}return d.\u0275fac=function(S){return new(S||d)(D.Y36(C.Ct),D.Y36(s.gz),D.Y36(c.d6),D.Y36(c.Nj))},d.\u0275cmp=D.Xpm({type:d,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(S,b){2&S&&D.ekj("router-component",b.true)},decls:1,vars:5,consts:[[3,"outerLoading","roles","entityId","showDescription","entityType","reload","startLoading"]],template:function(S,b){1&S&&(D.TgZ(0,"app-perun-web-apps-roles-page",0),D.NdJ("reload",function(){return b.getData()})("startLoading",function(){return b.outerLoading=!0}),D.qZA()),2&S&&D.Q6J("outerLoading",b.outerLoading)("roles",b.roles)("entityId",b.userId)("showDescription",b.showDescription)("entityType",b.entityType)},dependencies:[i._]}),d})()},46597:(W,Z,t)=>{t.d(Z,{d:()=>h});var C=t(10036),c=t(61744),L=t(95017),n=t(9244),e=t(54668),D=t(94814),s=t(81591),i=t(54004),A=t(63900),d=t(94650),y=t(65412),S=t(94364),b=t(36895),N=t(4859),U=t(51572),P=t(96214),T=t(64877),v=t(89383);function O(u,p){if(1&u&&(d._UZ(0,"app-users-list",6),d.ALo(1,"translate")),2&u){const o=d.oxw();d.Q6J("noUsersFoundLabel",d.lcZ(1,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS"))("disableRouting",o.disableRouting)("displayedColumns",o.displayedColumns)("selection",o.selection)("tableId",o.tableId)("users",o.associatedUsers)}}function g(u,p){1&u&&d._UZ(0,"mat-spinner",7)}let h=(()=>{class u{constructor(o,_,l,I,f){this.dialog=o,this.router=_,this.authResolver=l,this.userManager=I,this.entityStorageService=f,this.loading=!1,this.selection=new L.Ov(!1,[]),this.associatedUsers=[],this.tableId=C.It,this.displayedColumns=["select","id","user","name","email","logins","organization"]}ngOnInit(){this.loading=!0,this.user=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.userManager.getUsersBySpecificUser(this.user.id).pipe((0,i.U)(o=>o.map(_=>_.id)),(0,A.w)(o=>this.userManager.getRichUsersWithAttributesByIds(o))).subscribe(o=>{this.associatedUsers=o,this.selection.clear(),this.setAuth(),this.loading=!1})}setAuth(){this.addAuth=this.authResolver.isAuthorized("addSpecificUserOwner_User_User_policy",[this.user]),this.removeAuth=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[this.user]),this.disableRouting=!this.authResolver.isPerunAdminOrObserver()}onAdd(){const o=(0,n.kZ)();o.width="1250px",o.data={userId:this.user.id,theme:"user-theme",isService:!0,target:"USER"},this.dialog.open(e.l,o).afterClosed().subscribe(l=>{l&&this.refreshTable()})}onRemove(){const o=(0,n.kZ)();o.width="650px",o.data={identities:this.selection.selected,userId:this.user.id,specificUser:this.selection.selected[0],isService:!0,theme:"user-theme",targetTitle:"USER",targetDescription:"SERVICE"},this.dialog.open(D.B,o).afterClosed().subscribe(l=>{l&&(this.authResolver.isAuthorized("getUsersBySpecificUser_User_policy",[this.user])?this.refreshTable():this.router.navigate(["/myProfile"],{queryParamsHandling:"preserve"}))})}}return u.\u0275fac=function(o){return new(o||u)(d.Y36(y.uw),d.Y36(S.F0),d.Y36(s.x4),d.Y36(c.Fv),d.Y36(s.fb))},u.\u0275cmp=d.Xpm({type:u,selectors:[["app-user-settings-associated-users"]],decls:13,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users"],[1,"mr-auto","ml-auto"]],template:function(o,_){1&o&&(d.TgZ(0,"div")(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return _.refreshTable()}),d.qZA(),d.TgZ(5,"button",2),d.NdJ("click",function(){return _.onAdd()}),d._uU(6),d.ALo(7,"translate"),d.qZA(),d.TgZ(8,"button",3),d.NdJ("click",function(){return _.onRemove()}),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.YNc(11,O,2,8,"app-users-list",4),d.qZA(),d.YNc(12,g,1,0,"mat-spinner",5)),2&o&&(d.xp6(2),d.Oqu(d.lcZ(3,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),d.xp6(4),d.hij(" ",d.lcZ(7,8,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "),d.xp6(2),d.Q6J("disabled",0===_.selection.selected.length),d.xp6(1),d.hij(" ",d.lcZ(10,10,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," "),d.xp6(2),d.Q6J("ngIf",!_.loading),d.xp6(1),d.Q6J("ngIf",_.loading))},dependencies:[b.O5,N.lW,U.Ou,P.t,T.C,v.X$]}),u})()},97453:(W,Z,t)=>{t.d(Z,{R:()=>h});var C=t(95017),c=t(61744),L=t(10036),n=t(9244),e=t(54668),D=t(94814),s=t(81591),i=t(94650),A=t(94364),d=t(65412),y=t(36895),S=t(4859),b=t(51572),N=t(96214),U=t(64877),P=t(89383);function T(u,p){if(1&u){const o=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){i.CHM(o);const l=i.oxw();return i.KtG(l.onAdd())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&u&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE"),"\n"))}function v(u,p){if(1&u){const o=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(o);const l=i.oxw();return i.KtG(l.onRemove())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&u){const o=i.oxw();i.Q6J("disabled",0===o.selection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE"),"\n")}}function O(u,p){1&u&&i._UZ(0,"mat-spinner",8)}function g(u,p){if(1&u&&(i._UZ(0,"app-users-list",9),i.ALo(1,"translate")),2&u){const o=i.oxw();i.Q6J("noUsersFoundLabel",i.lcZ(1,6,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES"))("displayedColumns",o.displayedColumns)("selection",o.selection)("tableId",o.tableId)("routeToAdmin",o.routeToAdminSection)("users",o.identities)}}let h=(()=>{class u{constructor(o,_,l,I,f,R){this.route=o,this.dialog=_,this.router=l,this.userManager=I,this.authResolver=f,this.store=R,this.loading=!1,this.selection=new C.Ov(!1,[]),this.identities=[],this.tableId=L.Iz,this.displayedColumns=["select","id","user","name"],this.routeToAdminSection=!0,this.targetTitle="SERVICE",this.targetDescription="SERVICE"}ngOnDestroy(){this.subscription.unsubscribe()}ngOnInit(){this.loading=!0,this.subscription=this.route.parent.params.subscribe(o=>{this.userId=Number(o.userId),this.userId||(this.targetTitle="SERVICE",this.targetDescription="SELF",this.userId=this.store.getPerunPrincipal().userId,this.routeToAdminSection=!1),this.setAuthRights(),this.refreshTable()})}refreshTable(){this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(o=>{this.identities=o,this.selection.clear(),this.loading=!1})}setAuthRights(){this.addIdentity=this.authResolver.isPerunAdmin(),this.removeIdentity=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[{id:this.userId,beanName:"User"}])}onAdd(){const o=(0,n.kZ)();o.width="1250px",o.data={userId:this.userId,theme:"user-theme",isService:!1,target:this.targetTitle},this.dialog.open(e.l,o).afterClosed().subscribe(l=>{l&&this.refreshTable()})}onRemove(){const o=(0,n.kZ)();o.width="650px",o.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],theme:"user-theme",targetTitle:this.targetTitle,targetDescription:this.targetDescription},this.dialog.open(D.B,o).afterClosed().subscribe(l=>{l&&this.refreshTable()})}}return u.\u0275fac=function(o){return new(o||u)(i.Y36(A.gz),i.Y36(d.uw),i.Y36(A.F0),i.Y36(c.Fv),i.Y36(s.x4),i.Y36(s.d6))},u.\u0275cmp=i.Xpm({type:u,selectors:[["app-user-settings-service-identities"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users"]],template:function(o,_){1&o&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"perun-web-apps-refresh-button",1),i.NdJ("refresh",function(){return _.refreshTable()}),i.qZA(),i.YNc(4,T,3,3,"button",2),i.YNc(5,v,3,4,"button",3),i.YNc(6,O,1,0,"mat-spinner",4),i.YNc(7,g,2,8,"app-users-list",5)),2&o&&(i.xp6(1),i.Oqu(i.lcZ(2,5,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),i.xp6(3),i.Q6J("ngIf",_.addIdentity),i.xp6(1),i.Q6J("ngIf",_.removeIdentity),i.xp6(1),i.Q6J("ngIf",_.loading),i.xp6(1),i.Q6J("ngIf",!_.loading))},dependencies:[y.O5,S.lW,b.Ou,N.t,U.C,P.X$]}),u})()},38338:(W,Z,t)=>{t.r(Z),t.d(Z,{UsersModule:()=>_t});var C=t(36895),c=t(94364),L=t(74837),n=t(85985),e=t(94650),D=t(61283);let s=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(a,m){2&a&&e.ekj("router-component",m.true)},decls:1,vars:0,template:function(a,m){1&a&&e._UZ(0,"app-animated-router-outlet")},dependencies:[D.A]}),r})();var i=t(61744),A=t(51572),d=t(71135);function y(r,E){1&r&&e._UZ(0,"mat-spinner",2)}function S(r,E){if(1&r&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-menu-buttons-field",3),e.qZA()),2&r){const a=e.oxw();e.xp6(1),e.Q6J("items",a.navItems)("size","small")}}let b=(()=>{class r{constructor(a,m){this.route=a,this.userManager=m,this.navItems=[],this.loading=!1}ngOnInit(){window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(a=>{const m=Number(a.userId);this.userManager.getUserById(m).subscribe(M=>{this.isServiceUser=M.serviceUser,this.initNavItems(),this.loading=!1},()=>this.loading=!1)})):this.initNavItems()}initNavItems(){this.navItems=[],window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:"/myProfile/settings/passwordReset",label:"MENU_ITEMS.USER.PASSWORD_RESET",style:"user-btn"},{cssIcon:"perun-settings1",url:"/myProfile/settings/guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(c.gz),e.Y36(i.Fv))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(a,m){2&a&&e.ekj("router-component",m.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(a,m){1&a&&(e.YNc(0,y,1,0,"mat-spinner",0),e.YNc(1,S,2,2,"div",1)),2&a&&(e.Q6J("ngIf",m.loading),e.xp6(1),e.Q6J("ngIf",!m.loading))},dependencies:[C.O5,A.Ou,d.L]}),r})();var N=t(98973),U=t(37433),P=t(9244),T=t(6335),v=t(3238),O=t(59549),g=t(84385),h=t(89383);function u(r,E){if(1&r&&(e.TgZ(0,"mat-option",5),e._uU(1),e.qZA()),2&r){const a=E.$implicit;e.Q6J("value",a),e.xp6(1),e.hij(" ",a," ")}}let p=(()=>{class r{constructor(a){this.guiConfigService=a,this.tablePageSizeOptions=P.f7}ngOnInit(){this.preferredTablePageSize=this.guiConfigService.getNumber(T.Rc)}updatePreferredTablePageSize(){this.guiConfigService.setNumber(T.Rc,this.preferredTablePageSize)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(T.Ng))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-user-settings-app-configuration"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[1,"col-12","col-lg-6","p-0"],[1,"w-100"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(a,m){1&a&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"mat-select",3),e.NdJ("valueChange",function(Y){return m.preferredTablePageSize=Y})("valueChange",function(){return m.updatePreferredTablePageSize()}),e.YNc(9,u,2,2,"mat-option",4),e.qZA()()()),2&a&&(e.xp6(1),e.Oqu(e.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),e.xp6(5),e.Oqu(e.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),e.xp6(2),e.Q6J("value",m.preferredTablePageSize),e.xp6(1),e.Q6J("ngForOf",m.tablePageSizeOptions))},dependencies:[C.sg,v.ey,O.KE,O.hX,g.gD,h.X$]}),r})();var o=t(17755),_=t(81591),l=t(77968),I=t(97392),f=t(10266),R=t(4235),B=t(34198),x=t(55660),z=t(31359);const $=function(){return{color:"black"}},V=function(){return["/myProfile"]};function k(r,E){if(1&r&&(e.TgZ(0,"div",1),e._UZ(1,"perun-web-apps-back-button"),e.TgZ(2,"div",2),e._UZ(3,"mat-icon",3),e.ALo(4,"translate"),e.TgZ(5,"div",4)(6,"div",5)(7,"a",6),e.NdJ("auxclick",function(m){return m.preventDefault()}),e._uU(8),e.ALo(9,"userFullName"),e.qZA(),e.TgZ(10,"span",7),e._uU(11),e.qZA()(),e.TgZ(12,"span",8),e._uU(13),e.ALo(14,"translate"),e.ALo(15,"translate"),e.qZA()()(),e._UZ(16,"app-animated-router-outlet"),e.qZA()),2&r){const a=e.oxw();e.xp6(3),e.s9C("matTooltip",e.lcZ(4,9,"MENU_ITEMS.USER.ENTITY")),e.Q6J("ngStyle",e.DdM(17,$)),e.xp6(4),e.Q6J("perunWebAppsMiddleClickRouterLink",e.DdM(18,V))("routerLink",e.DdM(19,V)),e.xp6(1),e.hij(" ",e.lcZ(9,11,a.user)," "),e.xp6(3),e.hij(" \xa0#",a.user.id," "),e.xp6(2),e.lnq(" ",e.lcZ(14,13,"MENU_ITEMS.USER.ENTITY"),", ",e.lcZ(15,15,"MENU_ITEMS.USER.USER_TYPE"),": ",a.getUserType()," ")}}let q=(()=>{class r{constructor(a,m,M,Y){this.sideMenuService=a,this.store=m,this.entityStore=M,this.router=Y}ngOnInit(){this.path=this.router.url,this.router.events.subscribe(()=>{this.path=this.router.url}),this.principal=this.store.getPerunPrincipal(),this.user=this.principal.user,this.entityStore.setEntity(this.user),this.sideMenuService.setUserItems([])}getUserType(){return this.user.serviceUser?"Service":"Person"}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(l.D),e.Y36(_.d6),e.Y36(_.fb),e.Y36(c.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-user-profile"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"user-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],[1,"mt-1","entity-info"]],template:function(a,m){1&a&&e.YNc(0,k,17,20,"div",0),2&a&&e.Q6J("ngIf",void 0!==m.user)},dependencies:[C.O5,C.PC,c.yS,I.Hw,f.gM,R.W,B.Y,x.Q,D.A,h.X$,z.d]}),r})();var ee=t(6097),te=t(97453),ne=t(69024),se=t(29862),G=t(65412),F=t(4859);function ie(r,E){1&r&&e._UZ(0,"mat-spinner",11)}function ae(r,E){if(1&r){const a=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){e.CHM(a);const M=e.oxw(2);return e.KtG(M.editUser())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}const re=function(){return{color:"black"}},H=function(r){return["/myProfile/service-identities",r]};function oe(r,E){if(1&r&&(e.TgZ(0,"div",1),e._UZ(1,"perun-web-apps-back-button"),e.YNc(2,ie,1,0,"mat-spinner",2),e.TgZ(3,"div",3),e._UZ(4,"mat-icon",4),e.ALo(5,"translate"),e.TgZ(6,"div",5)(7,"div",6)(8,"a",7),e.NdJ("auxclick",function(m){return m.preventDefault()}),e._uU(9),e.ALo(10,"userFullName"),e.qZA(),e.TgZ(11,"span",8),e._uU(12),e.qZA(),e.YNc(13,ae,3,0,"button",9),e.qZA(),e.TgZ(14,"div"),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"span",10),e._uU(18),e.ALo(19,"translate"),e.ALo(20,"translate"),e.qZA()()(),e._UZ(21,"app-animated-router-outlet"),e.qZA()),2&r){const a=e.oxw();e.xp6(2),e.Q6J("ngIf",a.loading),e.xp6(2),e.s9C("matTooltip",e.lcZ(5,13,"MENU_ITEMS.USER.ENTITY")),e.Q6J("ngStyle",e.DdM(23,re)),e.xp6(4),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(24,H,a.user.id.toString()))("routerLink",e.VKq(26,H,a.user.id)),e.xp6(1),e.hij(" ",e.lcZ(10,15,a.user)," "),e.xp6(3),e.hij(" \xa0#",a.user.id," "),e.xp6(1),e.Q6J("ngIf",a.authResolver.isPerunAdmin()),e.xp6(2),e.AsE("",e.lcZ(16,17,"ADMIN_USER.UUID"),": ",a.user.uuid,""),e.xp6(3),e.lnq(" ",e.lcZ(19,19,"MENU_ITEMS.USER.ENTITY"),", ",e.lcZ(20,21,"MENU_ITEMS.USER.USER_TYPE"),": ",a.getUserType()," ")}}let le=(()=>{class r{constructor(a,m,M,Y,w,J,Q){this.sideMenuService=a,this.usersService=m,this.sideMenuItemService=M,this.route=Y,this.dialog=w,this.authResolver=J,this.entityStorageService=Q,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(a=>{const m=Number(a.userId);this.entityStorageService.setEntity({id:m,beanName:"User"}),this.usersService.getUserById(m).subscribe(M=>{this.user=M;const Y=this.sideMenuItemService.parseServiceIdentity(M);this.sideMenuService.setUserItems([Y]),this.loading=!1},()=>this.loading=!1)})}getUserType(){return this.user.serviceUser?"Service":"Person"}editUser(){const a=(0,P.kZ)();a.width="450px",a.data={theme:"admin-theme",user:this.user},this.dialog.open(se.x,a).afterClosed().subscribe(M=>{M&&this.usersService.getUserById(this.user.id).subscribe(Y=>{this.user=Y})})}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(l.D),e.Y36(i.Fv),e.Y36(ne.V),e.Y36(c.gz),e.Y36(G.uw),e.Y36(_.x4),e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-detail-page"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service-identity",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"user-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"mr-auto","ml-auto"],["mat-icon-button","",3,"click"]],template:function(a,m){1&a&&e.YNc(0,oe,22,28,"div",0),2&a&&e.Q6J("ngIf",void 0!==m.user)},dependencies:[C.O5,C.PC,c.yS,I.Hw,F.lW,A.Ou,f.gM,R.W,B.Y,x.Q,D.A,h.X$,z.d]}),r})(),_e=(()=>{class r{constructor(a){this.entityStorageService=a,this.navItems=[]}ngOnInit(){this.serviceAccount=this.entityStorageService.getEntity(),this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-manager",url:`/myProfile/service-identities/${this.serviceAccount.id}/associated-users`,label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"},{cssIcon:"perun-notification",url:`/myProfile/service-identities/${this.serviceAccount.id}/mailing-lists`,label:"MENU_ITEMS.USER.MAILING_LISTS",style:"user-btn"},{cssIcon:"perun-statistics",url:`/myProfile/service-identities/${this.serviceAccount.id}/data-quotas`,label:"MENU_ITEMS.USER.DATA_QUOTAS",style:"user-btn"},{cssIcon:"perun-authentication",url:`/myProfile/service-identities/${this.serviceAccount.id}/authentication`,label:"MENU_ITEMS.USER.AUTHENTICATION",style:"user-btn"}]}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(a,m){1&a&&e._UZ(0,"perun-web-apps-menu-buttons-field",0),2&a&&e.Q6J("items",m.navItems)("size","small")},dependencies:[d.L]}),r})();var ce=t(46597),pe=t(74006);let ue=(()=>{class r{constructor(a){this.entityStorageService=a}ngOnInit(){this.user=this.entityStorageService.getEntity()}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-perun-web-apps-user-settings-mailing-lists"]],decls:1,vars:2,consts:[[3,"user","isService"]],template:function(a,m){1&a&&e._UZ(0,"perun-web-apps-mailing-lists",0),2&a&&e.Q6J("user",m.user)("isService",!0)},dependencies:[pe.E]}),r})();var de=t(2541);let me=(()=>{class r{constructor(a){this.entityStorageService=a}ngOnInit(){this.user=this.entityStorageService.getEntity()}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-perun-web-apps-user-settings-data-quotas"]],decls:1,vars:1,consts:[[3,"user"]],template:function(a,m){1&a&&e._UZ(0,"perun-web-apps-data-quotas",0),2&a&&e.Q6J("user",m.user)},dependencies:[de.m]}),r})(),ge=(()=>{class r{constructor(a){this.entityStorageService=a,this.navItems=[]}ngOnInit(){this.serviceAccount=this.entityStorageService.getEntity(),this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-logins",url:`/myProfile/service-identities/${this.serviceAccount.id}/authentication/logins`,label:"MENU_ITEMS.USER.LOGINS",style:"user-btn"},{cssIcon:"perun-certificates",url:`/myProfile/service-identities/${this.serviceAccount.id}/authentication/certificates`,label:"MENU_ITEMS.USER.CERTIFICATES",style:"user-btn"},{cssIcon:"perun-key",url:`/myProfile/service-identities/${this.serviceAccount.id}/authentication/ssh-keys`,label:"MENU_ITEMS.USER.SSH_KEYS",style:"user-btn"}]}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-authentication-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(a,m){1&a&&e._UZ(0,"perun-web-apps-menu-buttons-field",0),2&a&&e.Q6J("items",m.navItems)("size","small")},dependencies:[d.L]}),r})();var K=t(24006),he=t(28499),fe=t(95406);function Ee(r,E){if(1&r&&(e.TgZ(0,"div",7),e._UZ(1,"app-login-password-form-with-generate-option",8),e.qZA()),2&r){const a=e.oxw();e.xp6(1),e.Q6J("formGroup",a.formGroup)("filteredNamespace",a.data.filteredNamespaces)}}function Ie(r,E){1&r&&e._UZ(0,"mat-spinner",9)}let Te=(()=>{class r{constructor(a,m,M,Y,w,J,Q,ct,pt,ut){this.dialogRef=a,this.data=m,this.formBuilder=M,this.usersManagerService=Y,this.membersManagerService=w,this.attributesManagerService=J,this.apiRequestConfiguration=Q,this.notificator=ct,this.translate=pt,this.cd=ut,this.processing=!1}ngOnInit(){this.userId=this.data.userId,this.formGroup=this.formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[K.kI.pattern("^[a-z][a-z0-9_-]+$"),K.kI.maxLength(15),K.kI.minLength(2)]],passwordCtrl:["",K.kI.required,[(0,he.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:P.dN.passwordMatchValidator})}ngAfterViewInit(){this.cd.detectChanges()}onSetLogin(){this.processing=!0;const a=this.formGroup.get("namespaceCtrl").value.toLowerCase(),m=this.formGroup.get("loginCtrl").value;if(m)this.setLogin(a,m);else{const M=`urn:perun:user:attribute-def:def:login-namespace:${a}`;this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:core:lastName").subscribe(Y=>{this.usersManagerService.generateAccountForName(a,Y.value).subscribe(J=>{this.setLogin(a,J[M])},()=>this.processing=!1)})}}setLogin(a,m){this.usersManagerService.setLogin(this.userId,m,a).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SET_LOGIN.SUCCESS_LOGIN")),this.setPassword()},()=>{this.processing=!1})}setPassword(){const a=this.formGroup.get("namespaceCtrl").value.toLowerCase(),m=this.formGroup.get("passwordCtrl").value;if(this.formGroup.get("generatePasswordCtrl").value){if(!this.formGroup.get("loginCtrl").value)return;this.usersManagerService.reserveRandomPassword(this.userId,a).subscribe(()=>{this.usersManagerService.validatePasswordForUser(this.userId,a).subscribe(()=>{this.dialogRef.close(!0)},()=>{this.processing=!1})},()=>{this.processing=!1})}else this.usersManagerService.reservePasswordForUser({user:this.userId,namespace:a,password:m}).subscribe(()=>{this.usersManagerService.validatePasswordForUser(this.userId,a).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SET_LOGIN.SUCCESS_PASSWORD")),this.dialogRef.close(!0)},()=>{this.processing=!1})},()=>{this.processing=!1})}onCancel(){this.dialogRef.close(!1)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(G.so),e.Y36(G.WI),e.Y36(K.QS),e.Y36(i.Fv),e.Y36(i.uq),e.Y36(i.H8),e.Y36(_.F5),e.Y36(_.V6),e.Y36(h.sK),e.Y36(e.sBO))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-perun-web-apps-set-login-dialog"]],decls:13,vars:12,consts:[[1,"vo-theme"],[1,"mat-dialog-title"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-content","",1,"dialog-container"],[3,"formGroup","filteredNamespace"],[1,"ml-auto","mr-auto"]],template:function(a,m){1&a&&(e.TgZ(0,"div",0)(1,"h1",1),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Ee,2,2,"div",2),e.YNc(5,Ie,1,0,"mat-spinner",3),e.TgZ(6,"div",4)(7,"button",5),e.NdJ("click",function(){return m.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",6),e.NdJ("click",function(){return m.onSetLogin()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&a&&(e.xp6(2),e.Oqu(e.lcZ(3,6,"DIALOGS.SET_LOGIN.TITLE")),e.xp6(2),e.Q6J("ngIf",!m.processing),e.xp6(1),e.Q6J("ngIf",m.processing),e.xp6(3),e.hij(" ",e.lcZ(9,8,"DIALOGS.SET_LOGIN.CANCEL")," "),e.xp6(2),e.Q6J("disabled","Not selected"===m.formGroup.get("namespaceCtrl").value||m.formGroup.invalid||m.formGroup.pending||m.processing),e.xp6(1),e.hij(" ",e.lcZ(12,10,"DIALOGS.SET_LOGIN.SET_LOGIN")," "))},dependencies:[C.O5,K.JL,K.sg,F.lW,G.xY,G.H8,A.Ou,fe.r,h.X$]}),r})();var j=t(96214),ve=t(53599);const Ue=["logins"];let Ce=(()=>{class r{constructor(a,m){this.dialog=a,this.entityStorageService=m,this.filteredNamespaces=[]}ngOnInit(){this.userId=this.entityStorageService.getEntity().id}onAdd(){const a=(0,P.kZ)();a.width="500px",a.data={userId:this.userId,filteredNamespaces:this.filteredNamespaces},this.dialog.open(Te,a).afterClosed().subscribe(M=>{M&&this.logins.refreshTable()})}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(G.uw),e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-perun-web-apps-user-settings-logins"]],viewQuery:function(a,m){if(1&a&&e.Gf(Ue,5),2&a){let M;e.iGM(M=e.CRH())&&(m.logins=M.first)}},decls:9,vars:7,consts:[[1,"page-title"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"authenticationPage","filteredNamespaces"],["logins",""]],template:function(a,m){if(1&a){const M=e.EpF();e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){e.CHM(M);const w=e.MAs(8);return e.KtG(w.refreshTable())}),e.qZA(),e.TgZ(4,"button",2),e.NdJ("click",function(){return m.onAdd()}),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"perun-web-apps-password-reset",3,4),e.NdJ("filteredNamespaces",function(w){return m.filteredNamespaces=w}),e.qZA()}2&a&&(e.xp6(1),e.Oqu(e.lcZ(2,3,"USER_DETAIL.SETTINGS.LOGINS.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,5,"USER_DETAIL.SETTINGS.LOGINS.ADD"),"\n"),e.xp6(2),e.Q6J("authenticationPage",!0))},dependencies:[F.lW,j.t,ve.N,h.X$]}),r})(),Ae=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-authentication"]],hostVars:2,hostBindings:function(a,m){2&a&&e.ekj("router-component",m.true)},decls:1,vars:0,template:function(a,m){1&a&&e._UZ(0,"app-animated-router-outlet")},dependencies:[D.A]}),r})();var Se=t(64080),De=t(95017),be=t(21029),Oe=t(53984);const Me=["list"];function Re(r,E){1&r&&e._UZ(0,"mat-spinner",5)}const Pe=function(r){return[r]};function Le(r,E){if(1&r&&e._UZ(0,"perun-web-apps-attributes-list",6,7),2&r){const a=e.oxw();e.Q6J("attributes",e.VKq(2,Pe,a.certificates))("selection",a.selection)}}let ye=(()=>{class r{constructor(a,m,M){this.entityStorageService=a,this.attributesManagerService=m,this.dialog=M,this.selection=new De.Ov(!0,[])}ngOnInit(){this.userId=this.entityStorageService.getEntity().id,this.refresh()}refresh(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,Se.r.USER_DEF_CERTIFICATES).subscribe(a=>{this.certificates=a,this.selection.clear(),this.loading=!1})}save(){this.list.updateMapAttributes();const a=(0,P.kZ)();a.width="450px",a.data={entityId:this.userId,entity:"user",attributes:this.selection.selected},this.dialog.open(be.wA,a).afterClosed().subscribe(M=>{M&&this.refresh()})}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb),e.Y36(i.H8),e.Y36(G.uw))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-certificates"]],viewQuery:function(a,m){if(1&a&&e.Gf(Me,5),2&a){let M;e.iGM(M=e.CRH())&&(m.list=M.first)}},decls:9,vars:9,consts:[[1,"page-title"],[1,"mt-2",3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"attributes","selection"],["list",""]],template:function(a,m){1&a&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){return m.refresh()}),e.qZA(),e.TgZ(4,"button",2),e.NdJ("click",function(){return m.save()}),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.YNc(7,Re,1,0,"mat-spinner",3),e.YNc(8,Le,2,4,"perun-web-apps-attributes-list",4)),2&a&&(e.xp6(1),e.Oqu(e.lcZ(2,5,"USER_DETAIL.SETTINGS.CERTIFICATES.TITLE")),e.xp6(3),e.Q6J("disabled",0===m.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(6,7,"USER_DETAIL.SETTINGS.CERTIFICATES.SAVE"),"\n"),e.xp6(2),e.Q6J("ngIf",m.loading),e.xp6(1),e.Q6J("ngIf",!m.loading))},dependencies:[C.O5,F.lW,A.Ou,j.t,Oe.p,h.X$]}),r})();var Ne=t(51403);const Ze=[{path:"",component:q,children:[{path:"",component:o.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:N.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:L.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:n.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:ee.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:te.R,data:{animation:"UserServiceIdentities"}},{path:"bans",component:Ne.Q,data:{animation:"UserBansPage"}},{path:"settings",component:s,children:[{path:"",component:b,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:U.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:p,data:{animation:"UserAppConfigurationPage"}}]}]},{path:"service-identities/:userId",component:le,children:[{path:"",component:_e},{path:"associated-users",component:ce.d},{path:"authentication",component:Ae,children:[{path:"",component:ge},{path:"logins",component:Ce},{path:"certificates",component:ye},{path:"ssh-keys",component:U.N7}]},{path:"mailing-lists",component:ue},{path:"data-quotas",component:me}]}];let Be=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[c.Bz.forChild(Ze),c.Bz]}),r})();var xe=t(47957),Ye=t(284),We=t(23267),Ke=t(37084),we=t(96308),Ge=t(30671),Fe=t(3848),Je=t(35423),Qe=t(56709),ze=t(17009),Ve=t(73162),He=t(90455),je=t(99602),Xe=t(71948),$e=t(44850),ke=t(98739),X=t(73546),qe=t(86257),et=t(73555),tt=t(77331),nt=t(28255),st=t(67376),it=t(63189),at=t(42673),rt=t(11243),ot=t(19516),lt=t(14264);let _t=(()=>{class r{constructor(a){this.translate=a,a.addLangs(["en","cs"])}}return r.\u0275fac=function(a){return new(a||r)(e.LFG(h.sK))},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[C.ez,Be,xe.Bb,Ye.c,O.lN,K.UX,K.u5,I.Ps,We.SJ,Ke.To,h.aw.forChild({}),F.ot,we.JX,Ge.p0,Fe.Nh,Je.dp,F.ot,Qe.p9,G.Is,g.LD,ze.ZX,A.Cq,Ve.Cv,f.AV,He.rP,je.FA,v.XK,Xe.Fk,$e.t,v.si,ke.TU,X.QW,qe.T5,et._t,X.QW,tt.Hi,nt.Tx,st.Cl,it.r,at.g,U.ez,rt.r,ot.d4,lt.m]}),r})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[338],{54668:(W,Z,t)=>{t.d(Z,{l:()=>p});var C=t(65412),c=t(61744),L=t(81591),n=t(10036),e=t(95017),D=t(64080),s=t(24006),i=t(94650),A=t(89383),d=t(36895),y=t(59549),S=t(284),b=t(97392),N=t(4859),U=t(51572),P=t(98380),T=t(64877);function v(o,_){if(1&o&&i._UZ(0,"app-users-list",14),2&o){const l=i.oxw(2);i.Q6J("displayedColumns",l.displayedColumns)("selection",l.selection)("tableId",l.tableId)("disableRouting",!0)("users",l.identities)}}function O(o,_){if(1&o&&(i.TgZ(0,"div"),i.YNc(1,v,1,5,"app-users-list",13),i.qZA()),2&o){const l=i.oxw();i.xp6(1),i.Q6J("ngIf",void 0!==l.identities&&l.identities.length>0)}}function g(o,_){1&o&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&o&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function h(o,_){1&o&&(i.TgZ(0,"perun-web-apps-alert",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&o&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function u(o,_){1&o&&i._UZ(0,"mat-spinner",17)}let p=(()=>{class o{constructor(l,I,f,R,B,x){this.dialogRef=l,this.data=I,this.userManager=f,this.storeService=R,this.notificator=B,this.translate=x,this.loading=!1,this.selection=new e.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=n.Iz}ngOnInit(){this.target=this.data.target,this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new s.p4("",[s.kI.required,s.kI.pattern(".*[\\S]+.*")])}onAdd(){let l,I;this.loading=!0,this.isService?(l=this.selection.selected[0].id,I=this.userId):(l=this.userId,I=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(l,I).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.firstSearchDone=!0;let l=[D.r.USER_DEF_ORGANIZATION,D.r.USER_DEF_PREFERRED_MAIL];l=l.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,l).subscribe(I=>{this.identities=this.filterIdentities(I),this.loading=!1},()=>{this.loading=!1})}onKeyInput(l){"Enter"===l.key&&this.onSearchByString()}filterIdentities(l){return l.filter(this.isService?I=>!I.serviceUser:I=>I.serviceUser)}}return o.\u0275fac=function(l){return new(l||o)(i.Y36(C.so),i.Y36(C.WI),i.Y36(c.Fv),i.Y36(L.d6),i.Y36(L.V6),i.Y36(A.sK))},o.\u0275cmp=i.Xpm({type:o,selectors:[["app-connect-identity-dialog"]],decls:25,vars:25,consts:[[3,"keyup"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["color","primary","mat-flat-button","",1,"mr-2","search-btn",3,"disabled","click"],[4,"ngIf"],["alert_type","info",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"displayedColumns","selection","tableId","disableRouting","users",4,"ngIf"],[3,"displayedColumns","selection","tableId","disableRouting","users"],["alert_type","info"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(l,I){1&l&&(i.TgZ(0,"div",0),i.NdJ("keyup",function(R){return I.onKeyInput(R)}),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2)(5,"mat-form-field",3),i._UZ(6,"input",4),i.ALo(7,"translate"),i.TgZ(8,"mat-error"),i._uU(9),i.ALo(10,"translate"),i.qZA()(),i.TgZ(11,"button",5),i.NdJ("click",function(){return I.onSearchByString()}),i.TgZ(12,"mat-icon"),i._uU(13,"search"),i.qZA()(),i.YNc(14,O,2,1,"div",6),i.YNc(15,g,3,3,"perun-web-apps-alert",7),i.YNc(16,h,3,3,"perun-web-apps-alert",8),i.qZA(),i.YNc(17,u,1,0,"mat-spinner",9),i.TgZ(18,"div",10)(19,"button",11),i.NdJ("click",function(){return I.onCancel()}),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"button",12),i.NdJ("click",function(){return I.onAdd()}),i._uU(23),i.ALo(24,"translate"),i.qZA()()()),2&l&&(i.Tol(I.theme),i.xp6(2),i.Oqu(i.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE_"+I.target)),i.xp6(4),i.s9C("placeholder",i.lcZ(7,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),i.Q6J("formControl",I.searchCtrl),i.xp6(3),i.hij(" ",i.lcZ(10,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),i.xp6(2),i.Q6J("disabled",I.loading),i.xp6(3),i.Q6J("ngIf",!I.loading),i.xp6(1),i.Q6J("ngIf",!I.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!I.loading&&I.firstSearchDone&&0===I.identities.length),i.xp6(1),i.Q6J("ngIf",I.loading),i.xp6(3),i.hij(" ",i.lcZ(21,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===I.selection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(24,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},dependencies:[d.O5,y.TO,y.KE,S.Nt,s.Fj,s.JJ,s.oH,b.Hw,N.lW,C.uh,C.xY,C.H8,U.Ou,P.w,T.C,A.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),o})()},94814:(W,Z,t)=>{t.d(Z,{B:()=>T});var C=t(61744),c=t(65412),L=t(81591),n=t(30671),e=t(94650),D=t(89383),s=t(36895),i=t(4859),A=t(98380),d=t(31359);function y(v,O){1&v&&e._UZ(0,"th",13)}function S(v,O){if(1&v&&(e.TgZ(0,"td",14),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&v){const g=O.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,g))}}function b(v,O){1&v&&e._UZ(0,"tr",15)}function N(v,O){1&v&&e._UZ(0,"tr",16)}function U(v,O){1&v&&(e.TgZ(0,"perun-web-apps-alert",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_DISCONNECT_YOURSELF")," "))}function P(v,O){1&v&&(e.TgZ(0,"perun-web-apps-alert",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_LAST_USER")," "))}let T=(()=>{class v{constructor(g,h,u,p,o,_){this.dialogRef=g,this.data=h,this.userManager=u,this.notificator=p,this.translate=o,this.store=_,this.displayedColumns=["name"]}ngOnInit(){let g;this.targetTitle=this.data.targetTitle,this.targetDescription=this.data.targetDescription,this.theme=this.data.theme,this.userId=Number(this.data.userId),this.dataSource=new n.by([this.data.specificUser]),this.isService=this.data.isService,this.isService?(g=this.userId,this.disconnectingSelf=this.dataSource.data[0].id===this.store.getPerunPrincipal().userId):(g=this.dataSource.data[0].id,this.disconnectingSelf=this.userId===this.store.getPerunPrincipal().userId),this.userManager.getUsersBySpecificUser(g).subscribe(h=>{this.disconnectingLastOwner=1===h.length})}onConfirm(){let g,h;this.isService?(g=this.dataSource.data[0].id,h=this.userId):(g=this.userId,h=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(g,h).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return v.\u0275fac=function(g){return new(g||v)(e.Y36(c.so),e.Y36(c.WI),e.Y36(C.Fv),e.Y36(L.V6),e.Y36(D.sK),e.Y36(L.d6))},v.\u0275cmp=e.Xpm({type:v,selectors:[["app-disconnect-identity-dialog"]],decls:26,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"]],template:function(g,h){1&g&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div")(4,"div",1)(5,"p"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"div",2),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"table",3),e.ynx(12,4),e.YNc(13,y,1,0,"th",5),e.YNc(14,S,3,3,"td",6),e.BQk(),e.YNc(15,b,1,0,"tr",7),e.YNc(16,N,1,0,"tr",8),e.qZA(),e.YNc(17,U,3,3,"perun-web-apps-alert",9),e.YNc(18,P,3,3,"perun-web-apps-alert",9),e.qZA(),e.TgZ(19,"div",10)(20,"button",11),e.NdJ("click",function(){return h.onCancel()}),e._uU(21),e.ALo(22,"translate"),e.qZA(),e.TgZ(23,"button",12),e.NdJ("click",function(){return h.onConfirm()}),e._uU(24),e.ALo(25,"translate"),e.qZA()()()),2&g&&(e.xp6(1),e.Oqu(e.lcZ(2,13,"DIALOGS.DISCONNECT_IDENTITY.TITLE_"+h.targetTitle)),e.xp6(2),e.Tol(h.theme),e.xp6(3),e.Oqu(e.lcZ(7,15,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION_"+h.targetDescription)),e.xp6(3),e.hij(" ",e.lcZ(10,17,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),e.xp6(2),e.Q6J("dataSource",h.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",h.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",h.displayedColumns),e.xp6(1),e.Q6J("ngIf",h.disconnectingSelf),e.xp6(1),e.Q6J("ngIf",h.disconnectingLastOwner),e.xp6(3),e.hij(" ",e.lcZ(22,19,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.lcZ(25,21,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},dependencies:[s.O5,i.lW,n.BZ,n.fO,n.as,n.w1,n.Dz,n.nj,n.ge,n.ev,n.XQ,n.Gk,c.uh,c.xY,c.H8,A.w,D.X$,d.d]}),v})()},29862:(W,Z,t)=>{t.d(Z,{x:()=>P});var C=t(61744),c=t(65412),L=t(81591),n=t(24006),e=t(94650),D=t(89383),s=t(36895),i=t(59549),A=t(284),d=t(4859);function y(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function S(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function b(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function N(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function U(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}let P=(()=>{class T{constructor(O,g,h,u,p){this.dialogRef=O,this.data=g,this.userService=h,this.notificator=u,this.translateService=p,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.titleBefore=new n.p4(this.data.user.titleBefore,[n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)]),this.titleAfter=new n.p4(this.data.user.titleAfter,[n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)]),this.firstName=new n.p4(this.data.user.firstName,[n.kI.required,n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)]),this.middleName=new n.p4(this.data.user.middleName,[n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)]),this.lastName=new n.p4(this.data.user.lastName,[n.kI.required,n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSave(){this.loading=!0,this.data.user.titleBefore=this.titleBefore.value,this.data.user.titleAfter=this.titleAfter.value,this.data.user.firstName=this.firstName.value,this.data.user.middleName=this.middleName.value,this.data.user.lastName=this.lastName.value,this.userService.updateUser({user:this.data.user}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_USER.SUCCESS").subscribe(O=>{this.notificator.showSuccess(O),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return T.\u0275fac=function(O){return new(O||T)(e.Y36(c.so),e.Y36(c.WI),e.Y36(C.Fv),e.Y36(L.V6),e.Y36(D.sK))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-edit-user-dialog"]],decls:32,vars:38,consts:[[1,"mat-dialog-title"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["matInput","","data-cy","user-first-name-input","required","",3,"placeholder","formControl"],["matInput","","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","user-save-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(O,g){1&O&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"mat-form-field"),e._UZ(6,"input",2),e.ALo(7,"translate"),e.YNc(8,y,3,3,"mat-error",3),e.qZA(),e.TgZ(9,"mat-form-field"),e._UZ(10,"input",2),e.ALo(11,"translate"),e.YNc(12,S,3,3,"mat-error",3),e.qZA(),e.TgZ(13,"mat-form-field"),e._UZ(14,"input",4),e.ALo(15,"translate"),e.YNc(16,b,3,3,"mat-error",3),e.qZA(),e.TgZ(17,"mat-form-field"),e._UZ(18,"input",2),e.ALo(19,"translate"),e.YNc(20,N,3,3,"mat-error",3),e.qZA(),e.TgZ(21,"mat-form-field"),e._UZ(22,"input",5),e.ALo(23,"translate"),e.YNc(24,U,3,3,"mat-error",3),e.qZA()(),e.TgZ(25,"div",6)(26,"button",7),e.NdJ("click",function(){return g.onCancel()}),e._uU(27),e.ALo(28,"translate"),e.qZA(),e.TgZ(29,"button",8),e.NdJ("click",function(){return g.onSave()}),e._uU(30),e.ALo(31,"translate"),e.qZA()()()),2&O&&(e.Tol(g.theme),e.xp6(2),e.Oqu(e.lcZ(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),e.xp6(4),e.s9C("placeholder",e.lcZ(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),e.Q6J("formControl",g.titleBefore),e.xp6(2),e.Q6J("ngIf",g.titleBefore.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),e.Q6J("formControl",g.titleAfter),e.xp6(2),e.Q6J("ngIf",g.titleAfter.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),e.Q6J("formControl",g.firstName),e.xp6(2),e.Q6J("ngIf",g.firstName.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),e.Q6J("formControl",g.middleName),e.xp6(2),e.Q6J("ngIf",g.middleName.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),e.Q6J("formControl",g.lastName),e.xp6(2),e.Q6J("ngIf",g.lastName.invalid),e.xp6(3),e.hij(" ",e.lcZ(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),e.xp6(2),e.Q6J("disabled",g.loading||g.firstName.invalid||g.lastName.invalid||g.titleBefore.invalid||g.titleAfter.invalid||g.middleName.invalid),e.xp6(1),e.hij(" ",e.lcZ(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},dependencies:[s.O5,i.TO,i.KE,A.Nt,n.Fj,n.JJ,n.Q7,n.oH,d.lW,c.xY,c.H8,D.X$]}),T})()},90979:(W,Z,t)=>{t.d(Z,{G:()=>D});var C=t(65412),c=t(81591),L=t(61744),n=t(94650),e=t(1415);let D=(()=>{class s{constructor(A,d,y,S){this.data=A,this.dialogRef=d,this.facilityService=y,this.notificator=S,this.loading=!1}update(A){this.loading=!0,this.facilityService.updateFacilityBan({banOnFacility:{id:this.data.ban.id,beanName:"BanOnFacility",facilityId:this.data.ban.facilityId,userId:this.data.ban.userId,description:A.description,validityTo:A.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}cancel(){this.dialogRef.close(!1)}}return s.\u0275fac=function(A){return new(A||s)(n.Y36(C.WI),n.Y36(C.so),n.Y36(L.IQ),n.Y36(c.V6))},s.\u0275cmp=n.Xpm({type:s,selectors:[["app-update-facility-ban-dialog"]],decls:1,vars:2,consts:[[3,"ban","theme","cancel","update"]],template:function(A,d){1&A&&(n.TgZ(0,"app-update-ban-dialog",0),n.NdJ("cancel",function(){return d.cancel()})("update",function(S){return d.update(S)}),n.qZA()),2&A&&n.Q6J("ban",d.data.ban)("theme","facility-theme")},dependencies:[e.l]}),s})()},98973:(W,Z,t)=>{t.d(Z,{u:()=>N});var C=t(81591),c=t(94650),L=t(94364),n=t(36895),e=t(3848),D=t(48323),s=t(12651),i=t(89383);function A(U,P){1&U&&(c._uU(0),c.ALo(1,"translate")),2&U&&c.hij(" ",c.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function d(U,P){if(1&U&&c._UZ(0,"app-one-entity-attribute-page",5),2&U){const T=c.oxw();c.Q6J("entityId",T.userId)("entity","user")}}function y(U,P){1&U&&(c._uU(0),c.ALo(1,"translate"),c.ALo(2,"translate")),2&U&&c.AsE(" ",c.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",c.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function S(U,P){if(1&U&&c._UZ(0,"app-two-entity-attribute-page",6),2&U){const T=c.oxw(2);c.Q6J("firstEntity","user")("firstEntityId",T.userId)("secondEntity","facility")}}function b(U,P){1&U&&(c.TgZ(0,"mat-tab"),c.YNc(1,y,3,6,"ng-template",2),c.YNc(2,S,1,3,"ng-template",3),c.qZA())}let N=(()=>{class U{constructor(T,v,O){this.route=T,this.store=v,this.authResolver=O}ngOnInit(){this.route.parent.params.subscribe(T=>{this.userId=Number(T.userId),this.userId||(this.userId=this.store.getPerunPrincipal().userId),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:this.userId,beanName:"User"}])})}}return U.\u0275fac=function(T){return new(T||U)(c.Y36(L.gz),c.Y36(C.d6),c.Y36(C.x4))},U.\u0275cmp=c.Xpm({type:U,selectors:[["app-user-settings-attributes"]],hostVars:2,hostBindings:function(T,v){2&T&&c.ekj("router-component",v.true)},decls:8,vars:4,consts:[[1,"page-subtitle"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(T,v){1&T&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"mat-tab-group")(4,"mat-tab",1),c.YNc(5,A,2,3,"ng-template",2),c.YNc(6,d,1,2,"ng-template",3),c.qZA(),c.YNc(7,b,3,0,"mat-tab",4),c.qZA()),2&T&&(c.xp6(1),c.Oqu(c.lcZ(2,2,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),c.xp6(6),c.Q6J("ngIf",v.userFacilityAttAuth))},dependencies:[n.O5,e.SP,e.uD,e.uX,e.Vc,D.Y,s.t,i.X$]}),U})()},51403:(W,Z,t)=>{t.d(Z,{Q:()=>_});var C=t(61744),c=t(81591),L=t(9244),n=t(32316),e=t(28943),D=t(90979),s=t(94650),i=t(65412),A=t(3848),d=t(51572),y=t(64901),S=t(73358),b=t(91880),N=t(89383);function U(l,I){1&l&&(s._uU(0),s.ALo(1,"translate")),2&l&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.BANS.VO")," ")}function P(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-ban-on-entity-list",8),s.NdJ("updateBan",function(B){s.CHM(f);const x=s.oxw(2);return s.KtG(x.updateVoBan(B))}),s.qZA()}if(2&l){const f=s.oxw(2);s.Q6J("bans",f.voBans)("displayedColumns",f.displayedColumns)("filter",f.filter)("updatePolicy","updateBan_BanOnVo_policy")}}function T(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(B){s.CHM(f);const x=s.oxw();return s.KtG(x.filter=B)}),s.qZA(),s.TgZ(1,"div",6),s.YNc(2,P,1,4,"perun-web-apps-ban-on-entity-list",7),s.qZA()}if(2&l){const f=s.oxw(),R=s.MAs(14);s.Q6J("placeholder","USER_DETAIL.BANS.FILTER"),s.xp6(2),s.Q6J("perunWebAppsLoader",f.loading)("perunWebAppsLoaderIndicator",R)}}function v(l,I){1&l&&(s._uU(0),s.ALo(1,"translate")),2&l&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.BANS.RESOURCE")," ")}function O(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-ban-on-entity-list",8),s.NdJ("updateBan",function(B){s.CHM(f);const x=s.oxw(2);return s.KtG(x.updateResourceBan(B))}),s.qZA()}if(2&l){const f=s.oxw(2);s.Q6J("bans",f.resourceBans)("displayedColumns",f.displayedColumns)("filter",f.filter)("updatePolicy","updateBan_BanOnResource_policy")}}function g(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(B){s.CHM(f);const x=s.oxw();return s.KtG(x.filter=B)}),s.qZA(),s.TgZ(1,"div",6),s.YNc(2,O,1,4,"perun-web-apps-ban-on-entity-list",7),s.qZA()}if(2&l){const f=s.oxw(),R=s.MAs(14);s.Q6J("placeholder","USER_DETAIL.BANS.FILTER"),s.xp6(2),s.Q6J("perunWebAppsLoader",f.loading)("perunWebAppsLoaderIndicator",R)}}function h(l,I){1&l&&(s._uU(0),s.ALo(1,"translate")),2&l&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.BANS.FACILITY")," ")}function u(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-ban-on-entity-list",8),s.NdJ("updateBan",function(B){s.CHM(f);const x=s.oxw(2);return s.KtG(x.updateFacilityBan(B))}),s.qZA()}if(2&l){const f=s.oxw(2);s.Q6J("bans",f.facilityBans)("displayedColumns",f.displayedColumns)("filter",f.filter)("updatePolicy","updateBan_BanOnFacility_policy")}}function p(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(B){s.CHM(f);const x=s.oxw();return s.KtG(x.filter=B)}),s.qZA(),s.TgZ(1,"div",6),s.YNc(2,u,1,4,"perun-web-apps-ban-on-entity-list",7),s.qZA()}if(2&l){const f=s.oxw(),R=s.MAs(14);s.Q6J("placeholder","USER_DETAIL.BANS.FILTER"),s.xp6(2),s.Q6J("perunWebAppsLoader",f.loading)("perunWebAppsLoaderIndicator",R)}}function o(l,I){1&l&&(s.TgZ(0,"div",9),s._UZ(1,"mat-spinner"),s.qZA())}let _=(()=>{class l{constructor(f,R,B,x,z){this.voService=f,this.resourceService=R,this.facilityService=B,this.entityService=x,this.dialog=z,this.loading=!1,this.voBans=[],this.resourceBans=[],this.facilityBans=[],this.filter="",this.displayedColumns=["banId","targetId","targetName","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.user=this.entityService.getEntity(),this.refreshVoBans()}refreshVoBans(){this.loading=!0,this.voService.getEnrichedVoBansForUser(this.user.id).subscribe({next:f=>{this.voBans=f,this.loading=!1},error:()=>this.loading=!1})}refreshResourceBans(){this.loading=!0,this.resourceService.getEnrichedBansForUser(this.user.id).subscribe({next:f=>{this.resourceBans=f,this.loading=!1},error:()=>this.loading=!1})}refreshFacilityBans(){this.loading=!0,this.facilityService.getEnricheFacilitydBansForUser(this.user.id).subscribe({next:f=>{this.facilityBans=f,this.loading=!1},error:()=>this.loading=!1})}updateVoBan(f){this.dialog.open(n.A,this.getConfig(f)).afterClosed().subscribe(B=>{B&&this.refreshVoBans()})}updateResourceBan(f){this.dialog.open(e.e,this.getConfig(f)).afterClosed().subscribe(B=>{B&&this.refreshResourceBans()})}updateFacilityBan(f){this.dialog.open(D.G,this.getConfig(f)).afterClosed().subscribe(B=>{B&&this.refreshFacilityBans()})}getConfig(f){const R=(0,L.kZ)();return R.width="600px",R.data={ban:f.ban,theme:"user-theme"},R}refresh(f){0===f.index?this.refreshVoBans():1===f.index?this.refreshResourceBans():this.refreshFacilityBans()}}return l.\u0275fac=function(f){return new(f||l)(s.Y36(C.YF),s.Y36(C.xk),s.Y36(C.IQ),s.Y36(c.fb),s.Y36(i.uw))},l.\u0275cmp=s.Xpm({type:l,selectors:[["app-user-bans"]],decls:15,vars:3,consts:[[1,"page-subtitle"],[1,"mt-3",3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["spinner",""],[1,"mt-2","search-field",3,"placeholder","filter"],[1,"position-relative"],[3,"bans","displayedColumns","filter","updatePolicy","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"bans","displayedColumns","filter","updatePolicy","updateBan"],[1,"spinner-container"]],template:function(f,R){1&f&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"mat-tab-group",1),s.NdJ("selectedTabChange",function(x){return R.refresh(x)}),s.TgZ(4,"mat-tab"),s.YNc(5,U,2,3,"ng-template",2),s.YNc(6,T,3,3,"ng-template",3),s.qZA(),s.TgZ(7,"mat-tab"),s.YNc(8,v,2,3,"ng-template",2),s.YNc(9,g,3,3,"ng-template",3),s.qZA(),s.TgZ(10,"mat-tab"),s.YNc(11,h,2,3,"ng-template",2),s.YNc(12,p,3,3,"ng-template",3),s.qZA()(),s.YNc(13,o,2,0,"ng-template",null,4,s.W1O)),2&f&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.BANS.TITLE"),"\n"))},dependencies:[A.SP,A.uD,A.uX,A.Vc,d.Ou,y.P,S.e,b.s,N.X$]}),l})()},85985:(W,Z,t)=>{t.d(Z,{u:()=>g});var C=t(81591),c=t(61744),L=t(10036),n=t(94650),e=t(94364),D=t(36895),s=t(51572),i=t(25788),A=t(96214),d=t(7434),y=t(89383);function S(h,u){1&h&&(n.TgZ(0,"h1",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&h&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function b(h,u){1&h&&(n.TgZ(0,"h1",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&h&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function N(h,u){1&h&&n._UZ(0,"mat-spinner",7)}const U=function(){return["id","vo","name","description"]};function P(h,u){if(1&h&&n._UZ(0,"perun-web-apps-groups-list",8),2&h){const p=n.oxw();n.Q6J("disableMembers",!1)("groups",p.membersGroups)("displayedColumns",n.DdM(5,U))("filter",p.memberFilterValue)("tableId",p.tableId)}}function T(h,u){1&h&&n._UZ(0,"mat-spinner",7)}function v(h,u){if(1&h&&n._UZ(0,"perun-web-apps-groups-list",8),2&h){const p=n.oxw(2);n.Q6J("disableMembers",!1)("groups",p.adminsGroups)("displayedColumns",n.DdM(5,U))("filter",p.adminFilterValue)("tableId",p.adminTableId)}}function O(h,u){if(1&h){const p=n.EpF();n.TgZ(0,"div",9)(1,"h1",6),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){n.CHM(p);const _=n.oxw();return n.KtG(_.refreshAdminTable())}),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(_){n.CHM(p);const l=n.oxw();return n.KtG(l.adminFilter(_))}),n.qZA(),n.YNc(6,T,1,0,"mat-spinner",3),n.YNc(7,v,1,6,"perun-web-apps-groups-list",4),n.qZA()}if(2&h){const p=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),n.xp6(3),n.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),n.xp6(1),n.Q6J("ngIf",p.adminRefresh),n.xp6(1),n.Q6J("ngIf",!p.adminRefresh)}}let g=(()=>{class h{constructor(p,o,_,l,I){this.usersService=p,this.memberService=o,this.groupService=_,this.store=l,this.route=I,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=L.KE,this.adminTableId=L.Sb}ngOnInit(){(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(p=>this.userId=Number(p.userId)),this.refreshAdminTable(),this.refreshMemberTable()}memberFilter(p){this.memberFilterValue=p}adminFilter(p){this.adminFilterValue=p}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(p=>{this.adminsGroups=p,this.adminRefresh=!1})}refreshMemberTable(){this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(p=>{this.vos=p;for(const o of this.vos)this.memberService.getMemberByUser(o.id,this.userId).subscribe(_=>{this.groupService.getMemberGroups(_.id).subscribe(l=>{this.membersGroups=this.membersGroups.concat(l),this.vos.indexOf(o)===this.vos.length-1&&(this.memberRefresh=!1)})});0===p.length&&(this.memberRefresh=!1)})}}return h.\u0275fac=function(p){return new(p||h)(n.Y36(c.Fv),n.Y36(c.uq),n.Y36(c.ff),n.Y36(C.d6),n.Y36(e.gz))},h.\u0275cmp=n.Xpm({type:h,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(p,o){2&p&&n.ekj("router-component",o.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableMembers","groups","displayedColumns","filter","tableId",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"disableMembers","groups","displayedColumns","filter","tableId"],[1,"mt-5"]],template:function(p,o){1&p&&(n.YNc(0,S,3,3,"h1",0),n.YNc(1,b,3,3,"h1",0),n.TgZ(2,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){return o.refreshMemberTable()}),n.qZA(),n.TgZ(3,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(l){return o.memberFilter(l)}),n.qZA(),n.YNc(4,N,1,0,"mat-spinner",3),n.YNc(5,P,1,6,"perun-web-apps-groups-list",4),n.YNc(6,O,8,6,"div",5)),2&p&&(n.Q6J("ngIf",o.showPrincipal),n.xp6(1),n.Q6J("ngIf",!o.showPrincipal),n.xp6(2),n.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),n.xp6(1),n.Q6J("ngIf",o.memberRefresh),n.xp6(1),n.Q6J("ngIf",!o.memberRefresh),n.xp6(1),n.Q6J("ngIf",!o.showPrincipal))},dependencies:[D.O5,s.Ou,i.W,A.t,d.L,y.X$]}),h})()},74837:(W,Z,t)=>{t.d(Z,{j:()=>O});var C=t(61744),c=t(81591),L=t(10036),n=t(94650),e=t(94364),D=t(36895),s=t(51572),i=t(87831),A=t(96214),d=t(7434),y=t(89383);function S(g,h){1&g&&(n.TgZ(0,"h1",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&g&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function b(g,h){1&g&&(n.TgZ(0,"h1",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&g&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function N(g,h){1&g&&n._UZ(0,"mat-spinner",7)}function U(g,h){if(1&g&&n._UZ(0,"perun-web-apps-vos-list",8),2&g){const u=n.oxw();n.Q6J("displayedColumns",u.displayedColumns)("tableId",u.memberTableId)("filterValue",u.memberFilterValue)("vos",u.vosWhereIsMember)}}function P(g,h){1&g&&n._UZ(0,"mat-spinner",7)}function T(g,h){if(1&g&&n._UZ(0,"perun-web-apps-vos-list",8),2&g){const u=n.oxw(2);n.Q6J("displayedColumns",u.displayedColumns)("tableId",u.adminTableId)("filterValue",u.adminFilterValue)("vos",u.vosWhereIsAdmin)}}function v(g,h){if(1&g){const u=n.EpF();n.TgZ(0,"div",9)(1,"h1",6),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){n.CHM(u);const o=n.oxw();return n.KtG(o.refreshAdminTable())}),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(o){n.CHM(u);const _=n.oxw();return n.KtG(_.applyAdminFilter(o))}),n.qZA(),n.YNc(6,P,1,0,"mat-spinner",3),n.YNc(7,T,1,4,"perun-web-apps-vos-list",4),n.qZA()}if(2&g){const u=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),n.xp6(3),n.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),n.xp6(1),n.Q6J("ngIf",u.adminRefresh),n.xp6(1),n.Q6J("ngIf",!u.adminRefresh)}}let O=(()=>{class g{constructor(u,p,o,_){this.usersService=u,this.authResolver=p,this.store=o,this.route=_,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=L.YF,this.memberTableId=L.gc}ngOnInit(){(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(u=>this.userId=Number(u.userId)),this.refreshAdminTable(),this.refreshMemberTable()}refreshMemberTable(){this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(u=>{this.vosWhereIsMember=u,this.memberRefresh=!1},()=>this.memberRefresh=!1)}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(u=>{this.vosWhereIsAdmin=u,this.adminRefresh=!1},()=>this.adminRefresh=!1)}applyMemberFilter(u){this.memberFilterValue=u}applyAdminFilter(u){this.adminFilterValue=u}}return g.\u0275fac=function(u){return new(u||g)(n.Y36(C.Fv),n.Y36(c.x4),n.Y36(c.d6),n.Y36(e.gz))},g.\u0275cmp=n.Xpm({type:g,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(u,p){2&u&&n.ekj("router-component",p.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","tableId","filterValue","vos",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","tableId","filterValue","vos"],[1,"mt-5"]],template:function(u,p){1&u&&(n.YNc(0,S,3,3,"h1",0),n.YNc(1,b,3,3,"h1",0),n.TgZ(2,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){return p.refreshMemberTable()}),n.qZA(),n.TgZ(3,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(_){return p.applyMemberFilter(_)}),n.qZA(),n.YNc(4,N,1,0,"mat-spinner",3),n.YNc(5,U,1,4,"perun-web-apps-vos-list",4),n.YNc(6,v,8,6,"div",5)),2&u&&(n.Q6J("ngIf",p.isMyProfile),n.xp6(1),n.Q6J("ngIf",!p.isMyProfile),n.xp6(2),n.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),n.xp6(1),n.Q6J("ngIf",p.memberRefresh),n.xp6(1),n.Q6J("ngIf",!p.memberRefresh),n.xp6(1),n.Q6J("ngIf",!p.isMyProfile))},dependencies:[D.O5,s.Ou,i.Z,A.t,d.L,y.X$]}),g})()},17755:(W,Z,t)=>{t.d(Z,{Z:()=>u});var C=t(61744),c=t(30671),L=t(81591),n=t(64080),e=t(9244),D=t(21029),s=t(94650),i=t(94364),A=t(65412),d=t(36895),y=t(97392),S=t(4859),b=t(73546),N=t(71135),U=t(89383);function P(p,o){1&p&&s._UZ(0,"th",12)}function T(p,o){if(1&p&&(s.TgZ(0,"td",13),s._uU(1),s.qZA()),2&p){const _=o.$implicit;s.xp6(1),s.hij(" ",_.displayName,": ")}}function v(p,o){1&p&&s._UZ(0,"th",12)}function O(p,o){if(1&p){const _=s.EpF();s.TgZ(0,"td",14),s._uU(1),s.TgZ(2,"button",15),s.NdJ("click",function(){s.CHM(_);const I=s.oxw(2);return s.KtG(I.changeEmail())}),s.TgZ(3,"mat-icon"),s._uU(4,"edit"),s.qZA()()()}if(2&p){const _=o.$implicit;s.xp6(1),s.hij(" ",_.value," ")}}function g(p,o){1&p&&s._UZ(0,"tr",16)}function h(p,o){if(1&p&&(s.TgZ(0,"div",2)(1,"mat-card",3)(2,"mat-card-header")(3,"mat-card-title")(4,"h1",4),s._uU(5),s.ALo(6,"translate"),s.qZA()()(),s.TgZ(7,"mat-card-content")(8,"table",5),s.ynx(9,6),s.YNc(10,P,1,0,"th",7),s.YNc(11,T,2,1,"td",8),s.BQk(),s.ynx(12,9),s.YNc(13,v,1,0,"th",7),s.YNc(14,O,5,1,"td",10),s.BQk(),s.YNc(15,g,1,0,"tr",11),s.qZA()()()()),2&p){const _=s.oxw();s.xp6(5),s.Oqu(s.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),s.xp6(3),s.Q6J("dataSource",_.mailDataSource),s.xp6(7),s.Q6J("matRowDefColumns",_.displayedColumns)}}let u=(()=>{class p{constructor(_,l,I,f,R){this.userService=_,this.attributeService=l,this.storeService=I,this.route=f,this.dialog=R,this.navItems=[],this.isServiceUser=!1,this.displayedColumns=["name","value"],this.inMyProfile=!1}ngOnInit(){this.route.params.subscribe(_=>{_.userId?this.userService.getUserById(Number(_.userId)).subscribe(l=>{this.user=l,this.isServiceUser=l.serviceUser,this.initNavItems(`/admin/users/${this.user.id}`)}):(this.inMyProfile=!0,this.userID=this.storeService.getPerunPrincipal().user.id,this.attributeService.getUserAttributeByName(this.userID,n.r.USER_DEF_PREFERRED_MAIL).subscribe(l=>{this.preferredMail=l,this.handleMailNotDefined(),this.mailDataSource=new c.by([this.preferredMail]),this.initNavItems("/myProfile")}))})}changeEmail(){const _=(0,e.kZ)();_.width="350px",_.data={userId:this.userID},this.dialog.open(D.gr,_).afterClosed().subscribe(I=>{I&&this.attributeService.getUserAttributeByName(this.userID,n.r.USER_DEF_PREFERRED_MAIL).subscribe(f=>{this.preferredMail=f,this.handleMailNotDefined(),this.mailDataSource=new c.by([this.preferredMail])})})}handleMailNotDefined(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,e.Cz)(n.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:new Object("-")})}initNavItems(_){this.navItems=[{cssIcon:"perun-vo",url:`${_}/organizations`,label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",style:"user-btn"},{cssIcon:"perun-group",url:`${_}/groups`,label:"MENU_ITEMS.ADMIN.GROUPS",style:"user-btn"}],window.location.pathname.startsWith("/admin")&&this.navItems.push({cssIcon:"perun-user",url:`${_}/accounts`,label:"MENU_ITEMS.USER.ACCOUNTS",style:"user-btn"},{cssIcon:"perun-identity",url:`${_}/identities`,label:"MENU_ITEMS.USER.IDENTITIES",style:"user-btn"},{cssIcon:"perun-facility-white",url:`${_}/facilities`,label:"MENU_ITEMS.USER.FACILITIES",style:"user-btn"},{cssIcon:"perun-resource",url:`${_}/resources`,label:"MENU_ITEMS.USER.RESOURCES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`${_}/attributes`,label:"MENU_ITEMS.USER.ATTRIBUTES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-roles",url:`${_}/roles`,label:"MENU_ITEMS.USER.ROLES",style:"user-btn"}),this.navItems.push(this.isServiceUser?{cssIcon:"perun-manager",url:`${_}/associated-users`,label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}:{cssIcon:"perun-service-identity",url:`${_}/service-identities`,label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-ban",url:"bans",label:"MENU_ITEMS.USER.BANS",style:"user-btn"}),window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:`${_}/settings`,label:"MENU_ITEMS.ADMIN.SETTINGS",style:"user-btn"})}}return p.\u0275fac=function(_){return new(_||p)(s.Y36(C.Fv),s.Y36(C.H8),s.Y36(L.d6),s.Y36(i.gz),s.Y36(A.uw))},p.\u0275cmp=s.Xpm({type:p,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(_,l){2&_&&s.ekj("router-component",l.true)},decls:2,vars:3,consts:[["class","align-cards",4,"ngIf"],[3,"items","size"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-icon-button","",1,"ml-3",3,"click"],["mat-row",""]],template:function(_,l){1&_&&(s.YNc(0,h,16,5,"div",0),s._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&_&&(s.Q6J("ngIf",l.inMyProfile),s.xp6(1),s.Q6J("items",l.navItems)("size","small"))},dependencies:[d.O5,y.Hw,S.lW,c.BZ,c.fO,c.w1,c.Dz,c.nj,c.ge,c.ev,c.Gk,b.a8,b.dk,b.dn,b.n5,N.L,U.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),p})()},6097:(W,Z,t)=>{t.d(Z,{t:()=>A});var C=t(61744),c=t(81591),L=t(39646),n=t(48382),e=t(86099),D=t(94650),s=t(94364),i=t(90820);let A=(()=>{class d{constructor(S,b,N,U){this.authzResolverService=S,this.route=b,this.store=N,this.roleService=U,this.roles=new Map,this.showDescription=!0}ngOnInit(){this.outerLoading=!0,this.route.parent.params.subscribe(S=>{S.userId?(this.entityType="USER",this.userId=Number(S.userId)):(this.userId=this.store.getPerunPrincipal().userId,this.entityType="SELF"),this.getData()})}getData(){this.outerLoading=!0,this.roles.clear(),(0,L.of)(this.entityType).pipe((0,e.z)(S=>(0,n.s)(()=>"SELF"===S,(0,L.of)(this.store.getPerunPrincipal().roles),this.authzResolverService.getUserRoles(this.userId)))).subscribe(S=>{const b=Object.keys(S).map(N=>N.toUpperCase());this.roles=this.roleService.prepareRoles(S,b),this.outerLoading=!1})}}return d.\u0275fac=function(S){return new(S||d)(D.Y36(C.Ct),D.Y36(s.gz),D.Y36(c.d6),D.Y36(c.Nj))},d.\u0275cmp=D.Xpm({type:d,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(S,b){2&S&&D.ekj("router-component",b.true)},decls:1,vars:5,consts:[[3,"outerLoading","roles","entityId","showDescription","entityType","reload","startLoading"]],template:function(S,b){1&S&&(D.TgZ(0,"app-perun-web-apps-roles-page",0),D.NdJ("reload",function(){return b.getData()})("startLoading",function(){return b.outerLoading=!0}),D.qZA()),2&S&&D.Q6J("outerLoading",b.outerLoading)("roles",b.roles)("entityId",b.userId)("showDescription",b.showDescription)("entityType",b.entityType)},dependencies:[i._]}),d})()},46597:(W,Z,t)=>{t.d(Z,{d:()=>h});var C=t(10036),c=t(61744),L=t(95017),n=t(9244),e=t(54668),D=t(94814),s=t(81591),i=t(54004),A=t(63900),d=t(94650),y=t(65412),S=t(94364),b=t(36895),N=t(4859),U=t(51572),P=t(96214),T=t(64877),v=t(89383);function O(u,p){if(1&u&&(d._UZ(0,"app-users-list",6),d.ALo(1,"translate")),2&u){const o=d.oxw();d.Q6J("noUsersFoundLabel",d.lcZ(1,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS"))("disableRouting",o.disableRouting)("displayedColumns",o.displayedColumns)("selection",o.selection)("tableId",o.tableId)("users",o.associatedUsers)}}function g(u,p){1&u&&d._UZ(0,"mat-spinner",7)}let h=(()=>{class u{constructor(o,_,l,I,f){this.dialog=o,this.router=_,this.authResolver=l,this.userManager=I,this.entityStorageService=f,this.loading=!1,this.selection=new L.Ov(!1,[]),this.associatedUsers=[],this.tableId=C.It,this.displayedColumns=["select","id","user","name","email","logins","organization"]}ngOnInit(){this.loading=!0,this.user=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.userManager.getUsersBySpecificUser(this.user.id).pipe((0,i.U)(o=>o.map(_=>_.id)),(0,A.w)(o=>this.userManager.getRichUsersWithAttributesByIds(o))).subscribe(o=>{this.associatedUsers=o,this.selection.clear(),this.setAuth(),this.loading=!1})}setAuth(){this.addAuth=this.authResolver.isAuthorized("addSpecificUserOwner_User_User_policy",[this.user]),this.removeAuth=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[this.user]),this.disableRouting=!this.authResolver.isPerunAdminOrObserver()}onAdd(){const o=(0,n.kZ)();o.width="1250px",o.data={userId:this.user.id,theme:"user-theme",isService:!0,target:"USER"},this.dialog.open(e.l,o).afterClosed().subscribe(l=>{l&&this.refreshTable()})}onRemove(){const o=(0,n.kZ)();o.width="650px",o.data={identities:this.selection.selected,userId:this.user.id,specificUser:this.selection.selected[0],isService:!0,theme:"user-theme",targetTitle:"USER",targetDescription:"SERVICE"},this.dialog.open(D.B,o).afterClosed().subscribe(l=>{l&&(this.authResolver.isAuthorized("getUsersBySpecificUser_User_policy",[this.user])?this.refreshTable():this.router.navigate(["/myProfile"],{queryParamsHandling:"preserve"}))})}}return u.\u0275fac=function(o){return new(o||u)(d.Y36(y.uw),d.Y36(S.F0),d.Y36(s.x4),d.Y36(c.Fv),d.Y36(s.fb))},u.\u0275cmp=d.Xpm({type:u,selectors:[["app-user-settings-associated-users"]],decls:13,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users"],[1,"mr-auto","ml-auto"]],template:function(o,_){1&o&&(d.TgZ(0,"div")(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return _.refreshTable()}),d.qZA(),d.TgZ(5,"button",2),d.NdJ("click",function(){return _.onAdd()}),d._uU(6),d.ALo(7,"translate"),d.qZA(),d.TgZ(8,"button",3),d.NdJ("click",function(){return _.onRemove()}),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.YNc(11,O,2,8,"app-users-list",4),d.qZA(),d.YNc(12,g,1,0,"mat-spinner",5)),2&o&&(d.xp6(2),d.Oqu(d.lcZ(3,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),d.xp6(4),d.hij(" ",d.lcZ(7,8,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "),d.xp6(2),d.Q6J("disabled",0===_.selection.selected.length),d.xp6(1),d.hij(" ",d.lcZ(10,10,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," "),d.xp6(2),d.Q6J("ngIf",!_.loading),d.xp6(1),d.Q6J("ngIf",_.loading))},dependencies:[b.O5,N.lW,U.Ou,P.t,T.C,v.X$]}),u})()},97453:(W,Z,t)=>{t.d(Z,{R:()=>h});var C=t(95017),c=t(61744),L=t(10036),n=t(9244),e=t(54668),D=t(94814),s=t(81591),i=t(94650),A=t(94364),d=t(65412),y=t(36895),S=t(4859),b=t(51572),N=t(96214),U=t(64877),P=t(89383);function T(u,p){if(1&u){const o=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){i.CHM(o);const l=i.oxw();return i.KtG(l.onAdd())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&u&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE"),"\n"))}function v(u,p){if(1&u){const o=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(o);const l=i.oxw();return i.KtG(l.onRemove())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&u){const o=i.oxw();i.Q6J("disabled",0===o.selection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE"),"\n")}}function O(u,p){1&u&&i._UZ(0,"mat-spinner",8)}function g(u,p){if(1&u&&(i._UZ(0,"app-users-list",9),i.ALo(1,"translate")),2&u){const o=i.oxw();i.Q6J("noUsersFoundLabel",i.lcZ(1,6,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES"))("displayedColumns",o.displayedColumns)("selection",o.selection)("tableId",o.tableId)("routeToAdmin",o.routeToAdminSection)("users",o.identities)}}let h=(()=>{class u{constructor(o,_,l,I,f,R){this.route=o,this.dialog=_,this.router=l,this.userManager=I,this.authResolver=f,this.store=R,this.loading=!1,this.selection=new C.Ov(!1,[]),this.identities=[],this.tableId=L.Iz,this.displayedColumns=["select","id","user","name"],this.routeToAdminSection=!0,this.targetTitle="SERVICE",this.targetDescription="SERVICE"}ngOnDestroy(){this.subscription.unsubscribe()}ngOnInit(){this.loading=!0,this.subscription=this.route.parent.params.subscribe(o=>{this.userId=Number(o.userId),this.userId||(this.targetTitle="SERVICE",this.targetDescription="SELF",this.userId=this.store.getPerunPrincipal().userId,this.routeToAdminSection=!1),this.setAuthRights(),this.refreshTable()})}refreshTable(){this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(o=>{this.identities=o,this.selection.clear(),this.loading=!1})}setAuthRights(){this.addIdentity=this.authResolver.isPerunAdmin(),this.removeIdentity=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[{id:this.userId,beanName:"User"}])}onAdd(){const o=(0,n.kZ)();o.width="1250px",o.data={userId:this.userId,theme:"user-theme",isService:!1,target:this.targetTitle},this.dialog.open(e.l,o).afterClosed().subscribe(l=>{l&&this.refreshTable()})}onRemove(){const o=(0,n.kZ)();o.width="650px",o.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],theme:"user-theme",targetTitle:this.targetTitle,targetDescription:this.targetDescription},this.dialog.open(D.B,o).afterClosed().subscribe(l=>{l&&this.refreshTable()})}}return u.\u0275fac=function(o){return new(o||u)(i.Y36(A.gz),i.Y36(d.uw),i.Y36(A.F0),i.Y36(c.Fv),i.Y36(s.x4),i.Y36(s.d6))},u.\u0275cmp=i.Xpm({type:u,selectors:[["app-user-settings-service-identities"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users"]],template:function(o,_){1&o&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"perun-web-apps-refresh-button",1),i.NdJ("refresh",function(){return _.refreshTable()}),i.qZA(),i.YNc(4,T,3,3,"button",2),i.YNc(5,v,3,4,"button",3),i.YNc(6,O,1,0,"mat-spinner",4),i.YNc(7,g,2,8,"app-users-list",5)),2&o&&(i.xp6(1),i.Oqu(i.lcZ(2,5,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),i.xp6(3),i.Q6J("ngIf",_.addIdentity),i.xp6(1),i.Q6J("ngIf",_.removeIdentity),i.xp6(1),i.Q6J("ngIf",_.loading),i.xp6(1),i.Q6J("ngIf",!_.loading))},dependencies:[y.O5,S.lW,b.Ou,N.t,U.C,P.X$]}),u})()},38338:(W,Z,t)=>{t.r(Z),t.d(Z,{UsersModule:()=>_t});var C=t(36895),c=t(94364),L=t(74837),n=t(85985),e=t(94650),D=t(61283);let s=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(a,m){2&a&&e.ekj("router-component",m.true)},decls:1,vars:0,template:function(a,m){1&a&&e._UZ(0,"app-animated-router-outlet")},dependencies:[D.A]}),r})();var i=t(61744),A=t(51572),d=t(71135);function y(r,E){1&r&&e._UZ(0,"mat-spinner",2)}function S(r,E){if(1&r&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-menu-buttons-field",3),e.qZA()),2&r){const a=e.oxw();e.xp6(1),e.Q6J("items",a.navItems)("size","small")}}let b=(()=>{class r{constructor(a,m){this.route=a,this.userManager=m,this.navItems=[],this.loading=!1}ngOnInit(){window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(a=>{const m=Number(a.userId);this.userManager.getUserById(m).subscribe(M=>{this.isServiceUser=M.serviceUser,this.initNavItems(),this.loading=!1},()=>this.loading=!1)})):this.initNavItems()}initNavItems(){this.navItems=[],window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:"/myProfile/settings/passwordReset",label:"MENU_ITEMS.USER.PASSWORD_RESET",style:"user-btn"},{cssIcon:"perun-settings1",url:"/myProfile/settings/guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(c.gz),e.Y36(i.Fv))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(a,m){2&a&&e.ekj("router-component",m.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(a,m){1&a&&(e.YNc(0,y,1,0,"mat-spinner",0),e.YNc(1,S,2,2,"div",1)),2&a&&(e.Q6J("ngIf",m.loading),e.xp6(1),e.Q6J("ngIf",!m.loading))},dependencies:[C.O5,A.Ou,d.L]}),r})();var N=t(98973),U=t(37433),P=t(9244),T=t(6335),v=t(3238),O=t(59549),g=t(84385),h=t(89383);function u(r,E){if(1&r&&(e.TgZ(0,"mat-option",5),e._uU(1),e.qZA()),2&r){const a=E.$implicit;e.Q6J("value",a),e.xp6(1),e.hij(" ",a," ")}}let p=(()=>{class r{constructor(a){this.guiConfigService=a,this.tablePageSizeOptions=P.f7}ngOnInit(){this.preferredTablePageSize=this.guiConfigService.getNumber(T.Rc)}updatePreferredTablePageSize(){this.guiConfigService.setNumber(T.Rc,this.preferredTablePageSize)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(T.Ng))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-user-settings-app-configuration"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[1,"col-12","col-lg-6","p-0"],[1,"w-100"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(a,m){1&a&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"mat-select",3),e.NdJ("valueChange",function(Y){return m.preferredTablePageSize=Y})("valueChange",function(){return m.updatePreferredTablePageSize()}),e.YNc(9,u,2,2,"mat-option",4),e.qZA()()()),2&a&&(e.xp6(1),e.Oqu(e.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),e.xp6(5),e.Oqu(e.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),e.xp6(2),e.Q6J("value",m.preferredTablePageSize),e.xp6(1),e.Q6J("ngForOf",m.tablePageSizeOptions))},dependencies:[C.sg,v.ey,O.KE,O.hX,g.gD,h.X$]}),r})();var o=t(17755),_=t(81591),l=t(77968),I=t(97392),f=t(10266),R=t(4235),B=t(34198),x=t(55660),z=t(31359);const $=function(){return{color:"black"}},V=function(){return["/myProfile"]};function k(r,E){if(1&r&&(e.TgZ(0,"div",1),e._UZ(1,"perun-web-apps-back-button"),e.TgZ(2,"div",2),e._UZ(3,"mat-icon",3),e.ALo(4,"translate"),e.TgZ(5,"div",4)(6,"div",5)(7,"a",6),e.NdJ("auxclick",function(m){return m.preventDefault()}),e._uU(8),e.ALo(9,"userFullName"),e.qZA(),e.TgZ(10,"span",7),e._uU(11),e.qZA()(),e.TgZ(12,"span",8),e._uU(13),e.ALo(14,"translate"),e.ALo(15,"translate"),e.qZA()()(),e._UZ(16,"app-animated-router-outlet"),e.qZA()),2&r){const a=e.oxw();e.xp6(3),e.s9C("matTooltip",e.lcZ(4,9,"MENU_ITEMS.USER.ENTITY")),e.Q6J("ngStyle",e.DdM(17,$)),e.xp6(4),e.Q6J("perunWebAppsMiddleClickRouterLink",e.DdM(18,V))("routerLink",e.DdM(19,V)),e.xp6(1),e.hij(" ",e.lcZ(9,11,a.user)," "),e.xp6(3),e.hij(" \xa0#",a.user.id," "),e.xp6(2),e.lnq(" ",e.lcZ(14,13,"MENU_ITEMS.USER.ENTITY"),", ",e.lcZ(15,15,"MENU_ITEMS.USER.USER_TYPE"),": ",a.getUserType()," ")}}let q=(()=>{class r{constructor(a,m,M,Y){this.sideMenuService=a,this.store=m,this.entityStore=M,this.router=Y}ngOnInit(){this.path=this.router.url,this.router.events.subscribe(()=>{this.path=this.router.url}),this.principal=this.store.getPerunPrincipal(),this.user=this.principal.user,this.entityStore.setEntity(this.user),this.sideMenuService.setUserItems([])}getUserType(){return this.user.serviceUser?"Service":"Person"}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(l.D),e.Y36(_.d6),e.Y36(_.fb),e.Y36(c.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-user-profile"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"user-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],[1,"mt-1","entity-info"]],template:function(a,m){1&a&&e.YNc(0,k,17,20,"div",0),2&a&&e.Q6J("ngIf",void 0!==m.user)},dependencies:[C.O5,C.PC,c.yS,I.Hw,f.gM,R.W,B.Y,x.Q,D.A,h.X$,z.d]}),r})();var ee=t(6097),te=t(97453),ne=t(69024),se=t(29862),G=t(65412),F=t(4859);function ie(r,E){1&r&&e._UZ(0,"mat-spinner",11)}function ae(r,E){if(1&r){const a=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){e.CHM(a);const M=e.oxw(2);return e.KtG(M.editUser())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}const re=function(){return{color:"black"}},H=function(r){return["/myProfile/service-identities",r]};function oe(r,E){if(1&r&&(e.TgZ(0,"div",1),e._UZ(1,"perun-web-apps-back-button"),e.YNc(2,ie,1,0,"mat-spinner",2),e.TgZ(3,"div",3),e._UZ(4,"mat-icon",4),e.ALo(5,"translate"),e.TgZ(6,"div",5)(7,"div",6)(8,"a",7),e.NdJ("auxclick",function(m){return m.preventDefault()}),e._uU(9),e.ALo(10,"userFullName"),e.qZA(),e.TgZ(11,"span",8),e._uU(12),e.qZA(),e.YNc(13,ae,3,0,"button",9),e.qZA(),e.TgZ(14,"div"),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"span",10),e._uU(18),e.ALo(19,"translate"),e.ALo(20,"translate"),e.qZA()()(),e._UZ(21,"app-animated-router-outlet"),e.qZA()),2&r){const a=e.oxw();e.xp6(2),e.Q6J("ngIf",a.loading),e.xp6(2),e.s9C("matTooltip",e.lcZ(5,13,"MENU_ITEMS.USER.ENTITY")),e.Q6J("ngStyle",e.DdM(23,re)),e.xp6(4),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(24,H,a.user.id.toString()))("routerLink",e.VKq(26,H,a.user.id)),e.xp6(1),e.hij(" ",e.lcZ(10,15,a.user)," "),e.xp6(3),e.hij(" \xa0#",a.user.id," "),e.xp6(1),e.Q6J("ngIf",a.authResolver.isPerunAdmin()),e.xp6(2),e.AsE("",e.lcZ(16,17,"ADMIN_USER.UUID"),": ",a.user.uuid,""),e.xp6(3),e.lnq(" ",e.lcZ(19,19,"MENU_ITEMS.USER.ENTITY"),", ",e.lcZ(20,21,"MENU_ITEMS.USER.USER_TYPE"),": ",a.getUserType()," ")}}let le=(()=>{class r{constructor(a,m,M,Y,w,J,Q){this.sideMenuService=a,this.usersService=m,this.sideMenuItemService=M,this.route=Y,this.dialog=w,this.authResolver=J,this.entityStorageService=Q,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(a=>{const m=Number(a.userId);this.entityStorageService.setEntity({id:m,beanName:"User"}),this.usersService.getUserById(m).subscribe(M=>{this.user=M;const Y=this.sideMenuItemService.parseServiceIdentity(M);this.sideMenuService.setUserItems([Y]),this.loading=!1},()=>this.loading=!1)})}getUserType(){return this.user.serviceUser?"Service":"Person"}editUser(){const a=(0,P.kZ)();a.width="450px",a.data={theme:"admin-theme",user:this.user},this.dialog.open(se.x,a).afterClosed().subscribe(M=>{M&&this.usersService.getUserById(this.user.id).subscribe(Y=>{this.user=Y})})}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(l.D),e.Y36(i.Fv),e.Y36(ne.V),e.Y36(c.gz),e.Y36(G.uw),e.Y36(_.x4),e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-detail-page"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service-identity",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"user-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"mr-auto","ml-auto"],["mat-icon-button","",3,"click"]],template:function(a,m){1&a&&e.YNc(0,oe,22,28,"div",0),2&a&&e.Q6J("ngIf",void 0!==m.user)},dependencies:[C.O5,C.PC,c.yS,I.Hw,F.lW,A.Ou,f.gM,R.W,B.Y,x.Q,D.A,h.X$,z.d]}),r})(),_e=(()=>{class r{constructor(a){this.entityStorageService=a,this.navItems=[]}ngOnInit(){this.serviceAccount=this.entityStorageService.getEntity(),this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-manager",url:`/myProfile/service-identities/${this.serviceAccount.id}/associated-users`,label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"},{cssIcon:"perun-notification",url:`/myProfile/service-identities/${this.serviceAccount.id}/mailing-lists`,label:"MENU_ITEMS.USER.MAILING_LISTS",style:"user-btn"},{cssIcon:"perun-statistics",url:`/myProfile/service-identities/${this.serviceAccount.id}/data-quotas`,label:"MENU_ITEMS.USER.DATA_QUOTAS",style:"user-btn"},{cssIcon:"perun-authentication",url:`/myProfile/service-identities/${this.serviceAccount.id}/authentication`,label:"MENU_ITEMS.USER.AUTHENTICATION",style:"user-btn"}]}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(a,m){1&a&&e._UZ(0,"perun-web-apps-menu-buttons-field",0),2&a&&e.Q6J("items",m.navItems)("size","small")},dependencies:[d.L]}),r})();var ce=t(46597),pe=t(74006);let ue=(()=>{class r{constructor(a){this.entityStorageService=a}ngOnInit(){this.user=this.entityStorageService.getEntity()}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-perun-web-apps-user-settings-mailing-lists"]],decls:1,vars:2,consts:[[3,"user","isService"]],template:function(a,m){1&a&&e._UZ(0,"perun-web-apps-mailing-lists",0),2&a&&e.Q6J("user",m.user)("isService",!0)},dependencies:[pe.E]}),r})();var de=t(2541);let me=(()=>{class r{constructor(a){this.entityStorageService=a}ngOnInit(){this.user=this.entityStorageService.getEntity()}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-perun-web-apps-user-settings-data-quotas"]],decls:1,vars:1,consts:[[3,"user"]],template:function(a,m){1&a&&e._UZ(0,"perun-web-apps-data-quotas",0),2&a&&e.Q6J("user",m.user)},dependencies:[de.m]}),r})(),ge=(()=>{class r{constructor(a){this.entityStorageService=a,this.navItems=[]}ngOnInit(){this.serviceAccount=this.entityStorageService.getEntity(),this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-logins",url:`/myProfile/service-identities/${this.serviceAccount.id}/authentication/logins`,label:"MENU_ITEMS.USER.LOGINS",style:"user-btn"},{cssIcon:"perun-certificates",url:`/myProfile/service-identities/${this.serviceAccount.id}/authentication/certificates`,label:"MENU_ITEMS.USER.CERTIFICATES",style:"user-btn"},{cssIcon:"perun-key",url:`/myProfile/service-identities/${this.serviceAccount.id}/authentication/ssh-keys`,label:"MENU_ITEMS.USER.SSH_KEYS",style:"user-btn"}]}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-authentication-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(a,m){1&a&&e._UZ(0,"perun-web-apps-menu-buttons-field",0),2&a&&e.Q6J("items",m.navItems)("size","small")},dependencies:[d.L]}),r})();var K=t(24006),he=t(28499),fe=t(95406);function Ee(r,E){if(1&r&&(e.TgZ(0,"div",7),e._UZ(1,"app-login-password-form-with-generate-option",8),e.qZA()),2&r){const a=e.oxw();e.xp6(1),e.Q6J("formGroup",a.formGroup)("filteredNamespace",a.data.filteredNamespaces)}}function Ie(r,E){1&r&&e._UZ(0,"mat-spinner",9)}let Te=(()=>{class r{constructor(a,m,M,Y,w,J,Q,ct,pt,ut){this.dialogRef=a,this.data=m,this.formBuilder=M,this.usersManagerService=Y,this.membersManagerService=w,this.attributesManagerService=J,this.apiRequestConfiguration=Q,this.notificator=ct,this.translate=pt,this.cd=ut,this.processing=!1}ngOnInit(){this.userId=this.data.userId,this.formGroup=this.formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[K.kI.pattern("^[a-z][a-z0-9_-]+$"),K.kI.maxLength(15),K.kI.minLength(2)]],passwordCtrl:["",K.kI.required,[(0,he.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:P.dN.passwordMatchValidator})}ngAfterViewInit(){this.cd.detectChanges()}onSetLogin(){this.processing=!0;const a=this.formGroup.get("namespaceCtrl").value.toLowerCase(),m=this.formGroup.get("loginCtrl").value;if(m)this.setLogin(a,m);else{const M=`urn:perun:user:attribute-def:def:login-namespace:${a}`;this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:core:lastName").subscribe(Y=>{this.usersManagerService.generateAccountForName(a,Y.value).subscribe(J=>{this.setLogin(a,J[M])},()=>this.processing=!1)})}}setLogin(a,m){this.usersManagerService.setLogin(this.userId,m,a).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SET_LOGIN.SUCCESS_LOGIN")),this.setPassword()},()=>{this.processing=!1})}setPassword(){const a=this.formGroup.get("namespaceCtrl").value.toLowerCase(),m=this.formGroup.get("passwordCtrl").value;if(this.formGroup.get("generatePasswordCtrl").value){if(!this.formGroup.get("loginCtrl").value)return;this.usersManagerService.reserveRandomPassword(this.userId,a).subscribe(()=>{this.usersManagerService.validatePasswordForUser(this.userId,a).subscribe(()=>{this.dialogRef.close(!0)},()=>{this.processing=!1})},()=>{this.processing=!1})}else this.usersManagerService.reservePasswordForUser({user:this.userId,namespace:a,password:m}).subscribe(()=>{this.usersManagerService.validatePasswordForUser(this.userId,a).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SET_LOGIN.SUCCESS_PASSWORD")),this.dialogRef.close(!0)},()=>{this.processing=!1})},()=>{this.processing=!1})}onCancel(){this.dialogRef.close(!1)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(G.so),e.Y36(G.WI),e.Y36(K.QS),e.Y36(i.Fv),e.Y36(i.uq),e.Y36(i.H8),e.Y36(_.F5),e.Y36(_.V6),e.Y36(h.sK),e.Y36(e.sBO))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-perun-web-apps-set-login-dialog"]],decls:13,vars:12,consts:[[1,"vo-theme"],[1,"mat-dialog-title"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-content","",1,"dialog-container"],[3,"formGroup","filteredNamespace"],[1,"ml-auto","mr-auto"]],template:function(a,m){1&a&&(e.TgZ(0,"div",0)(1,"h1",1),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Ee,2,2,"div",2),e.YNc(5,Ie,1,0,"mat-spinner",3),e.TgZ(6,"div",4)(7,"button",5),e.NdJ("click",function(){return m.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",6),e.NdJ("click",function(){return m.onSetLogin()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&a&&(e.xp6(2),e.Oqu(e.lcZ(3,6,"DIALOGS.SET_LOGIN.TITLE")),e.xp6(2),e.Q6J("ngIf",!m.processing),e.xp6(1),e.Q6J("ngIf",m.processing),e.xp6(3),e.hij(" ",e.lcZ(9,8,"DIALOGS.SET_LOGIN.CANCEL")," "),e.xp6(2),e.Q6J("disabled","Not selected"===m.formGroup.get("namespaceCtrl").value||m.formGroup.invalid||m.formGroup.pending||m.processing),e.xp6(1),e.hij(" ",e.lcZ(12,10,"DIALOGS.SET_LOGIN.SET_LOGIN")," "))},dependencies:[C.O5,K.JL,K.sg,F.lW,G.xY,G.H8,A.Ou,fe.r,h.X$]}),r})();var j=t(96214),ve=t(53599);const Ue=["logins"];let Ce=(()=>{class r{constructor(a,m){this.dialog=a,this.entityStorageService=m,this.filteredNamespaces=[]}ngOnInit(){this.userId=this.entityStorageService.getEntity().id}onAdd(){const a=(0,P.kZ)();a.width="500px",a.data={userId:this.userId,filteredNamespaces:this.filteredNamespaces},this.dialog.open(Te,a).afterClosed().subscribe(M=>{M&&this.logins.refreshTable()})}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(G.uw),e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-perun-web-apps-user-settings-logins"]],viewQuery:function(a,m){if(1&a&&e.Gf(Ue,5),2&a){let M;e.iGM(M=e.CRH())&&(m.logins=M.first)}},decls:9,vars:7,consts:[[1,"page-title"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"authenticationPage","filteredNamespaces"],["logins",""]],template:function(a,m){if(1&a){const M=e.EpF();e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){e.CHM(M);const w=e.MAs(8);return e.KtG(w.refreshTable())}),e.qZA(),e.TgZ(4,"button",2),e.NdJ("click",function(){return m.onAdd()}),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"perun-web-apps-password-reset",3,4),e.NdJ("filteredNamespaces",function(w){return m.filteredNamespaces=w}),e.qZA()}2&a&&(e.xp6(1),e.Oqu(e.lcZ(2,3,"USER_DETAIL.SETTINGS.LOGINS.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,5,"USER_DETAIL.SETTINGS.LOGINS.ADD"),"\n"),e.xp6(2),e.Q6J("authenticationPage",!0))},dependencies:[F.lW,j.t,ve.N,h.X$]}),r})(),Ae=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-authentication"]],hostVars:2,hostBindings:function(a,m){2&a&&e.ekj("router-component",m.true)},decls:1,vars:0,template:function(a,m){1&a&&e._UZ(0,"app-animated-router-outlet")},dependencies:[D.A]}),r})();var Se=t(64080),De=t(95017),be=t(21029),Oe=t(53984);const Me=["list"];function Re(r,E){1&r&&e._UZ(0,"mat-spinner",5)}const Pe=function(r){return[r]};function Le(r,E){if(1&r&&e._UZ(0,"perun-web-apps-attributes-list",6,7),2&r){const a=e.oxw();e.Q6J("attributes",e.VKq(2,Pe,a.certificates))("selection",a.selection)}}let ye=(()=>{class r{constructor(a,m,M){this.entityStorageService=a,this.attributesManagerService=m,this.dialog=M,this.selection=new De.Ov(!0,[])}ngOnInit(){this.userId=this.entityStorageService.getEntity().id,this.refresh()}refresh(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,Se.r.USER_DEF_CERTIFICATES).subscribe(a=>{this.certificates=a,this.selection.clear(),this.loading=!1})}save(){this.list.updateMapAttributes();const a=(0,P.kZ)();a.width="450px",a.data={entityId:this.userId,entity:"user",attributes:this.selection.selected},this.dialog.open(be.wA,a).afterClosed().subscribe(M=>{M&&this.refresh()})}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb),e.Y36(i.H8),e.Y36(G.uw))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-certificates"]],viewQuery:function(a,m){if(1&a&&e.Gf(Me,5),2&a){let M;e.iGM(M=e.CRH())&&(m.list=M.first)}},decls:9,vars:9,consts:[[1,"page-title"],[1,"mt-2",3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"attributes","selection"],["list",""]],template:function(a,m){1&a&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){return m.refresh()}),e.qZA(),e.TgZ(4,"button",2),e.NdJ("click",function(){return m.save()}),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.YNc(7,Re,1,0,"mat-spinner",3),e.YNc(8,Le,2,4,"perun-web-apps-attributes-list",4)),2&a&&(e.xp6(1),e.Oqu(e.lcZ(2,5,"USER_DETAIL.SETTINGS.CERTIFICATES.TITLE")),e.xp6(3),e.Q6J("disabled",0===m.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(6,7,"USER_DETAIL.SETTINGS.CERTIFICATES.SAVE"),"\n"),e.xp6(2),e.Q6J("ngIf",m.loading),e.xp6(1),e.Q6J("ngIf",!m.loading))},dependencies:[C.O5,F.lW,A.Ou,j.t,Oe.p,h.X$]}),r})();var Ne=t(51403);const Ze=[{path:"",component:q,children:[{path:"",component:o.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:N.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:L.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:n.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:ee.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:te.R,data:{animation:"UserServiceIdentities"}},{path:"bans",component:Ne.Q,data:{animation:"UserBansPage"}},{path:"settings",component:s,children:[{path:"",component:b,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:U.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:p,data:{animation:"UserAppConfigurationPage"}}]}]},{path:"service-identities/:userId",component:le,children:[{path:"",component:_e},{path:"associated-users",component:ce.d},{path:"authentication",component:Ae,children:[{path:"",component:ge},{path:"logins",component:Ce},{path:"certificates",component:ye},{path:"ssh-keys",component:U.N7}]},{path:"mailing-lists",component:ue},{path:"data-quotas",component:me}]}];let Be=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[c.Bz.forChild(Ze),c.Bz]}),r})();var xe=t(47957),Ye=t(284),We=t(23267),Ke=t(37084),we=t(96308),Ge=t(30671),Fe=t(3848),Je=t(35423),Qe=t(56709),ze=t(17009),Ve=t(73162),He=t(90455),je=t(99602),Xe=t(71948),$e=t(44850),ke=t(98739),X=t(73546),qe=t(86257),et=t(73555),tt=t(77331),nt=t(28255),st=t(67376),it=t(63189),at=t(42673),rt=t(11243),ot=t(19516),lt=t(14264);let _t=(()=>{class r{constructor(a){this.translate=a,a.addLangs(["en","cs"])}}return r.\u0275fac=function(a){return new(a||r)(e.LFG(h.sK))},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[C.ez,Be,xe.Bb,Ye.c,O.lN,K.UX,K.u5,I.Ps,We.SJ,Ke.To,h.aw.forChild({}),F.ot,we.JX,Ge.p0,Fe.Nh,Je.dp,F.ot,Qe.p9,G.Is,g.LD,ze.ZX,A.Cq,Ve.Cv,f.AV,He.rP,je.FA,v.XK,Xe.Fk,$e.t,v.si,ke.TU,X.QW,qe.T5,et._t,X.QW,tt.Hi,nt.Tx,st.Cl,it.r,at.g,U.ez,rt.r,ot.d4,lt.m]}),r})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/705.192e8293555087df.js b/dist/apps/admin-gui/705.192e8293555087df.js new file mode 100644 index 000000000..1e1febf06 --- /dev/null +++ b/dist/apps/admin-gui/705.192e8293555087df.js @@ -0,0 +1 @@ +(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[705],{89397:function(w,D){!function(s){"use strict";function c(Y,nt){return nt.forEach(function(rt){rt&&"string"!=typeof rt&&!Array.isArray(rt)&&Object.keys(rt).forEach(function(q){if("default"!==q&&!(q in Y)){var F=Object.getOwnPropertyDescriptor(rt,q);Object.defineProperty(Y,q,F.get?F:{enumerable:!0,get:function(){return rt[q]}})}})}),Object.freeze(Y)}var q,rt,x={exports:{}};q=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,rt=function(F){var ut,ft,E=typeof(F=F||{})<"u"?F:{};E.ready=new Promise(function(b,k){ut=b,ft=k});var St,Dt={};for(St in E)E.hasOwnProperty(St)&&(Dt[St]=E[St]);var Nt,zt,Qt="./this.program",wt="";typeof document<"u"&&document.currentScript&&(wt=document.currentScript.src),q&&(wt=q),wt=0!==wt.indexOf("blob:")?wt.substr(0,wt.replace(/[?#].*/,"").lastIndexOf("/")+1):"",Nt=function(b){var k=new XMLHttpRequest;return k.open("GET",b,!1),k.send(null),k.responseText},zt=function(b,k,V){var it=new XMLHttpRequest;it.open("GET",b,!0),it.responseType="arraybuffer",it.onload=function(){200==it.status||0==it.status&&it.response?k(it.response):V()},it.onerror=V,it.send(null)};var te,ie=E.print||console.log.bind(console),Ot=E.printErr||console.warn.bind(console);for(St in Dt)Dt.hasOwnProperty(St)&&(E[St]=Dt[St]);Dt=null,E.thisProgram&&(Qt=E.thisProgram),E.wasmBinary&&(te=E.wasmBinary),"object"!=typeof WebAssembly&&_i("no native wasm support detected");var jt,se=!1;function At(b,k){b||_i("Assertion failed: "+k)}var He,Ge,an,be,ln,Ht=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Zt(b,k,V){for(var it=k+V,ht=k;b[ht]&&!(ht>=it);)++ht;if(ht-k>16&&b.subarray&&Ht)return Ht.decode(b.subarray(k,ht));for(var xt="";k>10,56320|1023&Ae)}}else xt+=String.fromCharCode((31&Mt)<<6|Bt)}else xt+=String.fromCharCode(Mt)}return xt}function Kt(b,k){return b?Zt(an,b,k):""}function xe(b,k,V,it){if(!(it>0))return 0;for(var ht=V,xt=V+it-1,Mt=0;Mt=55296&&Bt<=57343&&(Bt=65536+((1023&Bt)<<10)|1023&b.charCodeAt(++Mt)),Bt<=127){if(V>=xt)break;k[V++]=Bt}else if(Bt<=2047){if(V+1>=xt)break;k[V++]=192|Bt>>6,k[V++]=128|63&Bt}else if(Bt<=65535){if(V+2>=xt)break;k[V++]=224|Bt>>12,k[V++]=128|Bt>>6&63,k[V++]=128|63&Bt}else{if(V+3>=xt)break;k[V++]=240|Bt>>18,k[V++]=128|Bt>>12&63,k[V++]=128|Bt>>6&63,k[V++]=128|63&Bt}}return k[V]=0,V-ht}function Le(b){for(var k=0,V=0;V=55296&&it<=57343&&(it=65536+((1023&it)<<10)|1023&b.charCodeAt(++V)),it<=127?++k:k+=it<=2047?2:it<=65535?3:4}return k}function Ee(b,k){return b%k>0&&(b+=k-b%k),b}function Tt(b){He=b,E.HEAP8=Ge=new Int8Array(b),E.HEAP16=new Int16Array(b),E.HEAP32=be=new Int32Array(b),E.HEAPU8=an=new Uint8Array(b),E.HEAPU16=new Uint16Array(b),E.HEAPU32=new Uint32Array(b),E.HEAPF32=new Float32Array(b),E.HEAPF64=ln=new Float64Array(b)}var Wt,ce=[],_e=[],ee=[];var gi=0,Si=null;function Fi(b){gi++,E.monitorRunDependencies&&E.monitorRunDependencies(gi)}function Ni(b){if(gi--,E.monitorRunDependencies&&E.monitorRunDependencies(gi),0==gi&&Si){var k=Si;Si=null,k()}}function _i(b){E.onAbort&&E.onAbort(b),Ot(b="Aborted("+b+")"),se=!0,b+=". Build with -s ASSERTIONS=1 for more info.";var k=new WebAssembly.RuntimeError(b);throw ft(k),k}E.preloadedImages={},E.preloadedAudios={};var fe;function Ri(b){return b.startsWith("data:application/octet-stream;base64,")}function Sn(b){try{if(b==fe&&te)return new Uint8Array(te);throw"both async and sync fetching of the wasm failed"}catch(k){_i(k)}}Ri(fe="expatlib.wasm")||(fe=function yt(b){return E.locateFile?E.locateFile(b,wt):wt+b}(fe));var gn,sn,zn={11694:function(b){var k=E.getCache(E.CExpatJS)[b];if(!k.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";k.startElement()},11912:function(b){var k=E.getCache(E.CExpatJS)[b];if(!k.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";k.endElement()},12124:function(b){var k=E.getCache(E.CExpatJS)[b];if(!k.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";k.characterData()}};function li(b){for(;b.length>0;){var k=b.shift();if("function"!=typeof k){var V=k.func;"number"==typeof V?void 0===k.arg?Ln(V)():Ln(V)(k.arg):V(void 0===k.arg?null:k.arg)}else k(E)}}function Ln(b){return Wt.get(b)}var we={splitPath:function(b){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(b).slice(1)},normalizeArray:function(b,k){for(var V=0,it=b.length-1;it>=0;it--){var ht=b[it];"."===ht?b.splice(it,1):".."===ht?(b.splice(it,1),V++):V&&(b.splice(it,1),V--)}if(k)for(;V;V--)b.unshift("..");return b},normalize:function(b){var k="/"===b.charAt(0),V="/"===b.substr(-1);return!(b=we.normalizeArray(b.split("/").filter(function(it){return!!it}),!k).join("/"))&&!k&&(b="."),b&&V&&(b+="/"),(k?"/":"")+b},dirname:function(b){var k=we.splitPath(b),V=k[0],it=k[1];return V||it?(it&&(it=it.substr(0,it.length-1)),V+it):"."},basename:function(b){if("/"===b)return"/";var k=(b=(b=we.normalize(b)).replace(/\/$/,"")).lastIndexOf("/");return-1===k?b:b.substr(k+1)},extname:function(b){return we.splitPath(b)[3]},join:function(){var b=Array.prototype.slice.call(arguments,0);return we.normalize(b.join("/"))},join2:function(b,k){return we.normalize(b+"/"+k)}};var Nn={resolve:function(){for(var b="",k=!1,V=arguments.length-1;V>=-1&&!k;V--){var it=V>=0?arguments[V]:A.cwd();if("string"!=typeof it)throw new TypeError("Arguments to path.resolve must be strings");if(!it)return"";b=it+"/"+b,k="/"===it.charAt(0)}return(k?"/":"")+(b=we.normalizeArray(b.split("/").filter(function(ht){return!!ht}),!k).join("/"))||"."},relative:function(b,k){function V(Ae){for(var We=0;We=0&&""===Ae[qe];qe--);return We>qe?[]:Ae.slice(We,qe-We+1)}b=Nn.resolve(b).substr(1),k=Nn.resolve(k).substr(1);for(var it=V(b.split("/")),ht=V(k.split("/")),xt=Math.min(it.length,ht.length),Mt=xt,Bt=0;Bt0&&(ie(Zt(b.output,0)),b.output=[])}},default_tty1_ops:{put_char:function(b,k){null===k||10===k?(Ot(Zt(b.output,0)),b.output=[]):0!=k&&b.output.push(k)},flush:function(b){b.output&&b.output.length>0&&(Ot(Zt(b.output,0)),b.output=[])}}};var X={ops_table:null,mount:function(b){return X.createNode(null,"/",16895,0)},createNode:function(b,k,V,it){if(A.isBlkdev(V)||A.isFIFO(V))throw new A.ErrnoError(63);X.ops_table||(X.ops_table={dir:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr,lookup:X.node_ops.lookup,mknod:X.node_ops.mknod,rename:X.node_ops.rename,unlink:X.node_ops.unlink,rmdir:X.node_ops.rmdir,readdir:X.node_ops.readdir,symlink:X.node_ops.symlink},stream:{llseek:X.stream_ops.llseek}},file:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr},stream:{llseek:X.stream_ops.llseek,read:X.stream_ops.read,write:X.stream_ops.write,allocate:X.stream_ops.allocate,mmap:X.stream_ops.mmap,msync:X.stream_ops.msync}},link:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr,readlink:X.node_ops.readlink},stream:{}},chrdev:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr},stream:A.chrdev_stream_ops}});var ht=A.createNode(b,k,V,it);return A.isDir(ht.mode)?(ht.node_ops=X.ops_table.dir.node,ht.stream_ops=X.ops_table.dir.stream,ht.contents={}):A.isFile(ht.mode)?(ht.node_ops=X.ops_table.file.node,ht.stream_ops=X.ops_table.file.stream,ht.usedBytes=0,ht.contents=null):A.isLink(ht.mode)?(ht.node_ops=X.ops_table.link.node,ht.stream_ops=X.ops_table.link.stream):A.isChrdev(ht.mode)&&(ht.node_ops=X.ops_table.chrdev.node,ht.stream_ops=X.ops_table.chrdev.stream),ht.timestamp=Date.now(),b&&(b.contents[k]=ht,b.timestamp=ht.timestamp),ht},getFileDataAsTypedArray:function(b){return b.contents?b.contents.subarray?b.contents.subarray(0,b.usedBytes):new Uint8Array(b.contents):new Uint8Array(0)},expandFileStorage:function(b,k){var V=b.contents?b.contents.length:0;if(!(V>=k)){k=Math.max(k,V*(V<1048576?2:1.125)>>>0),0!=V&&(k=Math.max(k,256));var ht=b.contents;b.contents=new Uint8Array(k),b.usedBytes>0&&b.contents.set(ht.subarray(0,b.usedBytes),0)}},resizeFileStorage:function(b,k){if(b.usedBytes!=k)if(0==k)b.contents=null,b.usedBytes=0;else{var V=b.contents;b.contents=new Uint8Array(k),V&&b.contents.set(V.subarray(0,Math.min(k,b.usedBytes))),b.usedBytes=k}},node_ops:{getattr:function(b){var k={};return k.dev=A.isChrdev(b.mode)?b.id:1,k.ino=b.id,k.mode=b.mode,k.nlink=1,k.uid=0,k.gid=0,k.rdev=b.rdev,k.size=A.isDir(b.mode)?4096:A.isFile(b.mode)?b.usedBytes:A.isLink(b.mode)?b.link.length:0,k.atime=new Date(b.timestamp),k.mtime=new Date(b.timestamp),k.ctime=new Date(b.timestamp),k.blksize=4096,k.blocks=Math.ceil(k.size/k.blksize),k},setattr:function(b,k){void 0!==k.mode&&(b.mode=k.mode),void 0!==k.timestamp&&(b.timestamp=k.timestamp),void 0!==k.size&&X.resizeFileStorage(b,k.size)},lookup:function(b,k){throw A.genericErrors[44]},mknod:function(b,k,V,it){return X.createNode(b,k,V,it)},rename:function(b,k,V){if(A.isDir(b.mode)){var it;try{it=A.lookupNode(k,V)}catch{}if(it)for(var ht in it.contents)throw new A.ErrnoError(55)}delete b.parent.contents[b.name],b.parent.timestamp=Date.now(),b.name=V,k.contents[V]=b,k.timestamp=b.parent.timestamp,b.parent=k},unlink:function(b,k){delete b.contents[k],b.timestamp=Date.now()},rmdir:function(b,k){var V=A.lookupNode(b,k);for(var it in V.contents)throw new A.ErrnoError(55);delete b.contents[k],b.timestamp=Date.now()},readdir:function(b){var k=[".",".."];for(var V in b.contents)!b.contents.hasOwnProperty(V)||k.push(V);return k},symlink:function(b,k,V){var it=X.createNode(b,k,41471,0);return it.link=V,it},readlink:function(b){if(!A.isLink(b.mode))throw new A.ErrnoError(28);return b.link}},stream_ops:{read:function(b,k,V,it,ht){var xt=b.node.contents;if(ht>=b.node.usedBytes)return 0;var Mt=Math.min(b.node.usedBytes-ht,it);if(Mt>8&&xt.subarray)k.set(xt.subarray(ht,ht+Mt),V);else for(var Bt=0;Bt0||it+V8)throw new A.ErrnoError(32);for(var ht=we.normalizeArray(b.split("/").filter(function(Ie){return!!Ie}),!1),xt=A.root,Mt="/",Bt=0;Bt40)throw new A.ErrnoError(32)}}return{path:Mt,node:xt}},getPath:function(b){for(var k;;){if(A.isRoot(b)){var V=b.mount.mountpoint;return k?"/"!==V[V.length-1]?V+"/"+k:V+k:V}k=k?b.name+"/"+k:b.name,b=b.parent}},hashName:function(b,k){for(var V=0,it=0;it>>0)%A.nameTable.length},hashAddNode:function(b){var k=A.hashName(b.parent.id,b.name);b.name_next=A.nameTable[k],A.nameTable[k]=b},hashRemoveNode:function(b){var k=A.hashName(b.parent.id,b.name);if(A.nameTable[k]===b)A.nameTable[k]=b.name_next;else for(var V=A.nameTable[k];V;){if(V.name_next===b){V.name_next=b.name_next;break}V=V.name_next}},lookupNode:function(b,k){var V=A.mayLookup(b);if(V)throw new A.ErrnoError(V,b);for(var it=A.hashName(b.id,k),ht=A.nameTable[it];ht;ht=ht.name_next)if(ht.parent.id===b.id&&ht.name===k)return ht;return A.lookup(b,k)},createNode:function(b,k,V,it){var ht=new A.FSNode(b,k,V,it);return A.hashAddNode(ht),ht},destroyNode:function(b){A.hashRemoveNode(b)},isRoot:function(b){return b===b.parent},isMountpoint:function(b){return!!b.mounted},isFile:function(b){return 32768==(61440&b)},isDir:function(b){return 16384==(61440&b)},isLink:function(b){return 40960==(61440&b)},isChrdev:function(b){return 8192==(61440&b)},isBlkdev:function(b){return 24576==(61440&b)},isFIFO:function(b){return 4096==(61440&b)},isSocket:function(b){return 49152==(49152&b)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(b){var k=A.flagModes[b];if(typeof k>"u")throw new Error("Unknown file open mode: "+b);return k},flagsToPermissionString:function(b){var k=["r","w","rw"][3&b];return 512&b&&(k+="w"),k},nodePermissions:function(b,k){return A.ignorePermissions?0:k.includes("r")&&!(292&b.mode)||k.includes("w")&&!(146&b.mode)||k.includes("x")&&!(73&b.mode)?2:0},mayLookup:function(b){return A.nodePermissions(b,"x")||(b.node_ops.lookup?0:2)},mayCreate:function(b,k){try{return A.lookupNode(b,k),20}catch{}return A.nodePermissions(b,"wx")},mayDelete:function(b,k,V){var it;try{it=A.lookupNode(b,k)}catch(xt){return xt.errno}var ht=A.nodePermissions(b,"wx");if(ht)return ht;if(V){if(!A.isDir(it.mode))return 54;if(A.isRoot(it)||A.getPath(it)===A.cwd())return 10}else if(A.isDir(it.mode))return 31;return 0},mayOpen:function(b,k){return b?A.isLink(b.mode)?32:A.isDir(b.mode)&&("r"!==A.flagsToPermissionString(k)||512&k)?31:A.nodePermissions(b,A.flagsToPermissionString(k)):44},MAX_OPEN_FDS:4096,nextfd:function(b,k){k=k||A.MAX_OPEN_FDS;for(var V=b=b||0;V<=k;V++)if(!A.streams[V])return V;throw new A.ErrnoError(33)},getStream:function(b){return A.streams[b]},createStream:function(b,k,V){A.FSStream||(A.FSStream=function(){},A.FSStream.prototype={object:{get:function(){return this.node},set:function(Mt){this.node=Mt}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var it=new A.FSStream;for(var ht in b)it[ht]=b[ht];b=it;var xt=A.nextfd(k,V);return b.fd=xt,A.streams[xt]=b,b},closeStream:function(b){A.streams[b]=null},chrdev_stream_ops:{open:function(b){var k=A.getDevice(b.node.rdev);b.stream_ops=k.stream_ops,b.stream_ops.open&&b.stream_ops.open(b)},llseek:function(){throw new A.ErrnoError(70)}},major:function(b){return b>>8},minor:function(b){return 255&b},makedev:function(b,k){return b<<8|k},registerDevice:function(b,k){A.devices[b]={stream_ops:k}},getDevice:function(b){return A.devices[b]},getMounts:function(b){for(var k=[],V=[b];V.length;){var it=V.pop();k.push(it),V.push.apply(V,it.mounts)}return k},syncfs:function(b,k){"function"==typeof b&&(k=b,b=!1),A.syncFSRequests++,A.syncFSRequests>1&&Ot("warning: "+A.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var V=A.getMounts(A.root.mount),it=0;function ht(Mt){return A.syncFSRequests--,k(Mt)}function xt(Mt){if(Mt)return xt.errored?void 0:(xt.errored=!0,ht(Mt));++it>=V.length&&ht(null)}V.forEach(function(Mt){if(!Mt.type.syncfs)return xt(null);Mt.type.syncfs(Mt,b,xt)})},mount:function(b,k,V){var xt,it="/"===V,ht=!V;if(it&&A.root)throw new A.ErrnoError(10);if(!it&&!ht){var Mt=A.lookupPath(V,{follow_mount:!1});if(V=Mt.path,A.isMountpoint(xt=Mt.node))throw new A.ErrnoError(10);if(!A.isDir(xt.mode))throw new A.ErrnoError(54)}var Bt={type:b,opts:k,mountpoint:V,mounts:[]},ae=b.mount(Bt);return ae.mount=Bt,Bt.root=ae,it?A.root=ae:xt&&(xt.mounted=Bt,xt.mount&&xt.mount.mounts.push(Bt)),ae},unmount:function(b){var k=A.lookupPath(b,{follow_mount:!1});if(!A.isMountpoint(k.node))throw new A.ErrnoError(28);var V=k.node,it=V.mounted,ht=A.getMounts(it);Object.keys(A.nameTable).forEach(function(Mt){for(var Bt=A.nameTable[Mt];Bt;){var ae=Bt.name_next;ht.includes(Bt.mount)&&A.destroyNode(Bt),Bt=ae}}),V.mounted=null;var xt=V.mount.mounts.indexOf(it);V.mount.mounts.splice(xt,1)},lookup:function(b,k){return b.node_ops.lookup(b,k)},mknod:function(b,k,V){var ht=A.lookupPath(b,{parent:!0}).node,xt=we.basename(b);if(!xt||"."===xt||".."===xt)throw new A.ErrnoError(28);var Mt=A.mayCreate(ht,xt);if(Mt)throw new A.ErrnoError(Mt);if(!ht.node_ops.mknod)throw new A.ErrnoError(63);return ht.node_ops.mknod(ht,xt,k,V)},create:function(b,k){return k=void 0!==k?k:438,k&=4095,A.mknod(b,k|=32768,0)},mkdir:function(b,k){return k=void 0!==k?k:511,k&=1023,A.mknod(b,k|=16384,0)},mkdirTree:function(b,k){for(var V=b.split("/"),it="",ht=0;ht"u"&&(V=k,k=438),A.mknod(b,k|=8192,V)},symlink:function(b,k){if(!Nn.resolve(b))throw new A.ErrnoError(44);var it=A.lookupPath(k,{parent:!0}).node;if(!it)throw new A.ErrnoError(44);var ht=we.basename(k),xt=A.mayCreate(it,ht);if(xt)throw new A.ErrnoError(xt);if(!it.node_ops.symlink)throw new A.ErrnoError(63);return it.node_ops.symlink(it,ht,b)},rename:function(b,k){var Bt,ae,V=we.dirname(b),it=we.dirname(k),ht=we.basename(b),xt=we.basename(k);if(Bt=A.lookupPath(b,{parent:!0}).node,ae=A.lookupPath(k,{parent:!0}).node,!Bt||!ae)throw new A.ErrnoError(44);if(Bt.mount!==ae.mount)throw new A.ErrnoError(75);var qe,Ae=A.lookupNode(Bt,ht),We=Nn.relative(b,it);if("."!==We.charAt(0))throw new A.ErrnoError(28);if("."!==(We=Nn.relative(k,V)).charAt(0))throw new A.ErrnoError(55);try{qe=A.lookupNode(ae,xt)}catch{}if(Ae!==qe){var Ie=A.isDir(Ae.mode),Me=A.mayDelete(Bt,ht,Ie);if(Me)throw new A.ErrnoError(Me);if(Me=qe?A.mayDelete(ae,xt,Ie):A.mayCreate(ae,xt))throw new A.ErrnoError(Me);if(!Bt.node_ops.rename)throw new A.ErrnoError(63);if(A.isMountpoint(Ae)||qe&&A.isMountpoint(qe))throw new A.ErrnoError(10);if(ae!==Bt&&(Me=A.nodePermissions(Bt,"w")))throw new A.ErrnoError(Me);A.hashRemoveNode(Ae);try{Bt.node_ops.rename(Ae,ae,xt)}catch(_n){throw _n}finally{A.hashAddNode(Ae)}}},rmdir:function(b){var V=A.lookupPath(b,{parent:!0}).node,it=we.basename(b),ht=A.lookupNode(V,it),xt=A.mayDelete(V,it,!0);if(xt)throw new A.ErrnoError(xt);if(!V.node_ops.rmdir)throw new A.ErrnoError(63);if(A.isMountpoint(ht))throw new A.ErrnoError(10);V.node_ops.rmdir(V,it),A.destroyNode(ht)},readdir:function(b){var V=A.lookupPath(b,{follow:!0}).node;if(!V.node_ops.readdir)throw new A.ErrnoError(54);return V.node_ops.readdir(V)},unlink:function(b){var V=A.lookupPath(b,{parent:!0}).node,it=we.basename(b),ht=A.lookupNode(V,it),xt=A.mayDelete(V,it,!1);if(xt)throw new A.ErrnoError(xt);if(!V.node_ops.unlink)throw new A.ErrnoError(63);if(A.isMountpoint(ht))throw new A.ErrnoError(10);V.node_ops.unlink(V,it),A.destroyNode(ht)},readlink:function(b){var V=A.lookupPath(b).node;if(!V)throw new A.ErrnoError(44);if(!V.node_ops.readlink)throw new A.ErrnoError(28);return Nn.resolve(A.getPath(V.parent),V.node_ops.readlink(V))},stat:function(b,k){var it=A.lookupPath(b,{follow:!k}).node;if(!it)throw new A.ErrnoError(44);if(!it.node_ops.getattr)throw new A.ErrnoError(63);return it.node_ops.getattr(it)},lstat:function(b){return A.stat(b,!0)},chmod:function(b,k,V){var it;if(!(it="string"==typeof b?A.lookupPath(b,{follow:!V}).node:b).node_ops.setattr)throw new A.ErrnoError(63);it.node_ops.setattr(it,{mode:4095&k|-4096&it.mode,timestamp:Date.now()})},lchmod:function(b,k){A.chmod(b,k,!0)},fchmod:function(b,k){var V=A.getStream(b);if(!V)throw new A.ErrnoError(8);A.chmod(V.node,k)},chown:function(b,k,V,it){var ht;if(!(ht="string"==typeof b?A.lookupPath(b,{follow:!it}).node:b).node_ops.setattr)throw new A.ErrnoError(63);ht.node_ops.setattr(ht,{timestamp:Date.now()})},lchown:function(b,k,V){A.chown(b,k,V,!0)},fchown:function(b,k,V){var it=A.getStream(b);if(!it)throw new A.ErrnoError(8);A.chown(it.node,k,V)},truncate:function(b,k){if(k<0)throw new A.ErrnoError(28);var V;if(!(V="string"==typeof b?A.lookupPath(b,{follow:!0}).node:b).node_ops.setattr)throw new A.ErrnoError(63);if(A.isDir(V.mode))throw new A.ErrnoError(31);if(!A.isFile(V.mode))throw new A.ErrnoError(28);var ht=A.nodePermissions(V,"w");if(ht)throw new A.ErrnoError(ht);V.node_ops.setattr(V,{size:k,timestamp:Date.now()})},ftruncate:function(b,k){var V=A.getStream(b);if(!V)throw new A.ErrnoError(8);if(0==(2097155&V.flags))throw new A.ErrnoError(28);A.truncate(V.node,k)},utime:function(b,k,V){var ht=A.lookupPath(b,{follow:!0}).node;ht.node_ops.setattr(ht,{timestamp:Math.max(k,V)})},open:function(b,k,V,it,ht){if(""===b)throw new A.ErrnoError(44);var xt;if(V=typeof V>"u"?438:V,V=64&(k="string"==typeof k?A.modeStringToFlags(k):k)?4095&V|32768:0,"object"==typeof b)xt=b;else{b=we.normalize(b);try{xt=A.lookupPath(b,{follow:!(131072&k)}).node}catch{}}var Bt=!1;if(64&k)if(xt){if(128&k)throw new A.ErrnoError(20)}else xt=A.mknod(b,V,0),Bt=!0;if(!xt)throw new A.ErrnoError(44);if(A.isChrdev(xt.mode)&&(k&=-513),65536&k&&!A.isDir(xt.mode))throw new A.ErrnoError(54);if(!Bt){var ae=A.mayOpen(xt,k);if(ae)throw new A.ErrnoError(ae)}512&k&&A.truncate(xt,0),k&=-131713;var Ae=A.createStream({node:xt,path:A.getPath(xt),id:xt.id,flags:k,mode:xt.mode,seekable:!0,position:0,stream_ops:xt.stream_ops,node_ops:xt.node_ops,ungotten:[],error:!1},it,ht);return Ae.stream_ops.open&&Ae.stream_ops.open(Ae),E.logReadFiles&&!(1&k)&&(A.readFiles||(A.readFiles={}),b in A.readFiles||(A.readFiles[b]=1)),Ae},close:function(b){if(A.isClosed(b))throw new A.ErrnoError(8);b.getdents&&(b.getdents=null);try{b.stream_ops.close&&b.stream_ops.close(b)}catch(k){throw k}finally{A.closeStream(b.fd)}b.fd=null},isClosed:function(b){return null===b.fd},llseek:function(b,k,V){if(A.isClosed(b))throw new A.ErrnoError(8);if(!b.seekable||!b.stream_ops.llseek)throw new A.ErrnoError(70);if(0!=V&&1!=V&&2!=V)throw new A.ErrnoError(28);return b.position=b.stream_ops.llseek(b,k,V),b.ungotten=[],b.position},read:function(b,k,V,it,ht){if(it<0||ht<0)throw new A.ErrnoError(28);if(A.isClosed(b))throw new A.ErrnoError(8);if(1==(2097155&b.flags))throw new A.ErrnoError(8);if(A.isDir(b.node.mode))throw new A.ErrnoError(31);if(!b.stream_ops.read)throw new A.ErrnoError(28);var xt=typeof ht<"u";if(xt){if(!b.seekable)throw new A.ErrnoError(70)}else ht=b.position;var Mt=b.stream_ops.read(b,k,V,it,ht);return xt||(b.position+=Mt),Mt},write:function(b,k,V,it,ht,xt){if(it<0||ht<0)throw new A.ErrnoError(28);if(A.isClosed(b))throw new A.ErrnoError(8);if(0==(2097155&b.flags))throw new A.ErrnoError(8);if(A.isDir(b.node.mode))throw new A.ErrnoError(31);if(!b.stream_ops.write)throw new A.ErrnoError(28);b.seekable&&1024&b.flags&&A.llseek(b,0,2);var Mt=typeof ht<"u";if(Mt){if(!b.seekable)throw new A.ErrnoError(70)}else ht=b.position;var Bt=b.stream_ops.write(b,k,V,it,ht,xt);return Mt||(b.position+=Bt),Bt},allocate:function(b,k,V){if(A.isClosed(b))throw new A.ErrnoError(8);if(k<0||V<=0)throw new A.ErrnoError(28);if(0==(2097155&b.flags))throw new A.ErrnoError(8);if(!A.isFile(b.node.mode)&&!A.isDir(b.node.mode))throw new A.ErrnoError(43);if(!b.stream_ops.allocate)throw new A.ErrnoError(138);b.stream_ops.allocate(b,k,V)},mmap:function(b,k,V,it,ht,xt){if(0!=(2&ht)&&0==(2&xt)&&2!=(2097155&b.flags))throw new A.ErrnoError(2);if(1==(2097155&b.flags))throw new A.ErrnoError(2);if(!b.stream_ops.mmap)throw new A.ErrnoError(43);return b.stream_ops.mmap(b,k,V,it,ht,xt)},msync:function(b,k,V,it,ht){return b&&b.stream_ops.msync?b.stream_ops.msync(b,k,V,it,ht):0},munmap:function(b){return 0},ioctl:function(b,k,V){if(!b.stream_ops.ioctl)throw new A.ErrnoError(59);return b.stream_ops.ioctl(b,k,V)},readFile:function(b,k){if((k=k||{}).flags=k.flags||0,k.encoding=k.encoding||"binary","utf8"!==k.encoding&&"binary"!==k.encoding)throw new Error('Invalid encoding type "'+k.encoding+'"');var V,it=A.open(b,k.flags),xt=A.stat(b).size,Mt=new Uint8Array(xt);return A.read(it,Mt,0,xt,0),"utf8"===k.encoding?V=Zt(Mt,0):"binary"===k.encoding&&(V=Mt),A.close(it),V},writeFile:function(b,k,V){(V=V||{}).flags=V.flags||577;var it=A.open(b,V.flags,V.mode);if("string"==typeof k){var ht=new Uint8Array(Le(k)+1),xt=xe(k,ht,0,ht.length);A.write(it,ht,0,xt,void 0,V.canOwn)}else{if(!ArrayBuffer.isView(k))throw new Error("Unsupported data type");A.write(it,k,0,k.byteLength,void 0,V.canOwn)}A.close(it)},cwd:function(){return A.currentPath},chdir:function(b){var k=A.lookupPath(b,{follow:!0});if(null===k.node)throw new A.ErrnoError(44);if(!A.isDir(k.node.mode))throw new A.ErrnoError(54);var V=A.nodePermissions(k.node,"x");if(V)throw new A.ErrnoError(V);A.currentPath=k.path},createDefaultDirectories:function(){A.mkdir("/tmp"),A.mkdir("/home"),A.mkdir("/home/web_user")},createDefaultDevices:function(){A.mkdir("/dev"),A.registerDevice(A.makedev(1,3),{read:function(){return 0},write:function(k,V,it,ht,xt){return ht}}),A.mkdev("/dev/null",A.makedev(1,3)),pn.register(A.makedev(5,0),pn.default_tty_ops),pn.register(A.makedev(6,0),pn.default_tty1_ops),A.mkdev("/dev/tty",A.makedev(5,0)),A.mkdev("/dev/tty1",A.makedev(6,0));var b=function Bi(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var b=new Uint8Array(1);return function(){return crypto.getRandomValues(b),b[0]}}return function(){_i("randomDevice")}}();A.createDevice("/dev","random",b),A.createDevice("/dev","urandom",b),A.mkdir("/dev/shm"),A.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){A.mkdir("/proc");var b=A.mkdir("/proc/self");A.mkdir("/proc/self/fd"),A.mount({mount:function(){var k=A.createNode(b,"fd",16895,73);return k.node_ops={lookup:function(V,it){var xt=A.getStream(+it);if(!xt)throw new A.ErrnoError(8);var Mt={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return xt.path}}};return Mt.parent=Mt,Mt}},k}},{},"/proc/self/fd")},createStandardStreams:function(){E.stdin?A.createDevice("/dev","stdin",E.stdin):A.symlink("/dev/tty","/dev/stdin"),E.stdout?A.createDevice("/dev","stdout",null,E.stdout):A.symlink("/dev/tty","/dev/stdout"),E.stderr?A.createDevice("/dev","stderr",null,E.stderr):A.symlink("/dev/tty1","/dev/stderr"),A.open("/dev/stdin",0),A.open("/dev/stdout",1),A.open("/dev/stderr",1)},ensureErrnoError:function(){A.ErrnoError||(A.ErrnoError=function(k,V){this.node=V,this.setErrno=function(it){this.errno=it},this.setErrno(k),this.message="FS error"},A.ErrnoError.prototype=new Error,A.ErrnoError.prototype.constructor=A.ErrnoError,[44].forEach(function(b){A.genericErrors[b]=new A.ErrnoError(b),A.genericErrors[b].stack=""}))},staticInit:function(){A.ensureErrnoError(),A.nameTable=new Array(4096),A.mount(X,{},"/"),A.createDefaultDirectories(),A.createDefaultDevices(),A.createSpecialDirectories(),A.filesystems={MEMFS:X}},init:function(b,k,V){A.init.initialized=!0,A.ensureErrnoError(),E.stdin=b||E.stdin,E.stdout=k||E.stdout,E.stderr=V||E.stderr,A.createStandardStreams()},quit:function(){A.init.initialized=!1;var b=E._fflush;b&&b(0);for(var k=0;kthis.length-1||Ie<0)){var Me=Ie%this.chunkSize;return this.getter(Ie/this.chunkSize|0)[Me]}},xt.prototype.setDataGetter=function(Ie){this.getter=Ie},xt.prototype.cacheLength=function(){var Ie=new XMLHttpRequest;if(Ie.open("HEAD",V,!1),Ie.send(null),!(Ie.status>=200&&Ie.status<300||304===Ie.status))throw new Error("Couldn't load "+V+". Status: "+Ie.status);var _n,Me=Number(Ie.getResponseHeader("Content-length")),Jn=(_n=Ie.getResponseHeader("Accept-Ranges"))&&"bytes"===_n,tr=(_n=Ie.getResponseHeader("Content-Encoding"))&&"gzip"===_n,xi=1048576;Jn||(xi=Me);var Mn=this;Mn.setDataGetter(function(Kn){var sr=Kn*xi,Pn=(Kn+1)*xi-1;if(Pn=Math.min(Pn,Me-1),typeof Mn.chunks[Kn]>"u"&&(Mn.chunks[Kn]=function(Kn,sr){if(Kn>sr)throw new Error("invalid range ("+Kn+", "+sr+") or no bytes requested!");if(sr>Me-1)throw new Error("only "+Me+" bytes available! programmer error!");var Pn=new XMLHttpRequest;if(Pn.open("GET",V,!1),Me!==xi&&Pn.setRequestHeader("Range","bytes="+Kn+"-"+sr),typeof Uint8Array<"u"&&(Pn.responseType="arraybuffer"),Pn.overrideMimeType&&Pn.overrideMimeType("text/plain; charset=x-user-defined"),Pn.send(null),!(Pn.status>=200&&Pn.status<300||304===Pn.status))throw new Error("Couldn't load "+V+". Status: "+Pn.status);return void 0!==Pn.response?new Uint8Array(Pn.response||[]):me(Pn.responseText||"",!0)}(sr,Pn)),typeof Mn.chunks[Kn]>"u")throw new Error("doXHR failed!");return Mn.chunks[Kn]}),(tr||!Me)&&(xi=Me=1,Me=this.getter(0).length,xi=Me,ie("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=Me,this._chunkSize=xi,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Bt,ae=A.createFile(b,k,Bt={isDevice:!1,url:V},it,ht);Bt.contents?ae.contents=Bt.contents:Bt.url&&(ae.contents=null,ae.url=Bt.url),Object.defineProperties(ae,{usedBytes:{get:function(){return this.contents.length}}});var Ae={};return Object.keys(ae.stream_ops).forEach(function(qe){var Ie=ae.stream_ops[qe];Ae[qe]=function(){return A.forceLoadFile(ae),Ie.apply(null,arguments)}}),Ae.read=function(Ie,Me,_n,Jn,tr){A.forceLoadFile(ae);var xi=Ie.node.contents;if(tr>=xi.length)return 0;var Yn=Math.min(xi.length-tr,Jn);if(xi.slice)for(var Mn=0;Mn>2]=it.dev,be[V+4>>2]=0,be[V+8>>2]=it.ino,be[V+12>>2]=it.mode,be[V+16>>2]=it.nlink,be[V+20>>2]=it.uid,be[V+24>>2]=it.gid,be[V+28>>2]=it.rdev,be[V+32>>2]=0,sn=[it.size>>>0,(gn=it.size,+Math.abs(gn)>=1?gn>0?(0|Math.min(+Math.floor(gn/4294967296),4294967295))>>>0:~~+Math.ceil((gn-+(~~gn>>>0))/4294967296)>>>0:0)],be[V+40>>2]=sn[0],be[V+44>>2]=sn[1],be[V+48>>2]=4096,be[V+52>>2]=it.blocks,be[V+56>>2]=it.atime.getTime()/1e3|0,be[V+60>>2]=0,be[V+64>>2]=it.mtime.getTime()/1e3|0,be[V+68>>2]=0,be[V+72>>2]=it.ctime.getTime()/1e3|0,be[V+76>>2]=0,sn=[it.ino>>>0,(gn=it.ino,+Math.abs(gn)>=1?gn>0?(0|Math.min(+Math.floor(gn/4294967296),4294967295))>>>0:~~+Math.ceil((gn-+(~~gn>>>0))/4294967296)>>>0:0)],be[V+80>>2]=sn[0],be[V+84>>2]=sn[1],0},doMsync:function(b,k,V,it,ht){var xt=an.slice(b,b+V);A.msync(k,xt,ht,V,it)},doMkdir:function(b,k){return"/"===(b=we.normalize(b))[b.length-1]&&(b=b.substr(0,b.length-1)),A.mkdir(b,k,0),0},doMknod:function(b,k,V){switch(61440&k){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return A.mknod(b,k,V),0},doReadlink:function(b,k,V){if(V<=0)return-28;var it=A.readlink(b),ht=Math.min(V,Le(it)),xt=Ge[k+ht];return function Te(b,k,V){return xe(b,an,k,V)}(it,k,V+1),Ge[k+ht]=xt,ht},doAccess:function(b,k){if(-8&k)return-28;var it=A.lookupPath(b,{follow:!0}).node;if(!it)return-44;var ht="";return 4&k&&(ht+="r"),2&k&&(ht+="w"),1&k&&(ht+="x"),ht&&A.nodePermissions(it,ht)?-2:0},doDup:function(b,k,V){var it=A.getStream(V);return it&&A.close(it),A.open(b,k,0,V,V).fd},doReadv:function(b,k,V,it){for(var ht=0,xt=0;xt>2],ae=A.read(b,Ge,be[k+8*xt>>2],Bt,it);if(ae<0)return-1;if(ht+=ae,ae>2],be[k+(8*xt+4)>>2],it);if(ae<0)return-1;ht+=ae}return ht},varargs:void 0,get:function(){return bt.varargs+=4,be[bt.varargs-4>>2]},getStr:function(b){return Kt(b)},getStreamFromFD:function(b){var k=A.getStream(b);if(!k)throw new A.ErrnoError(8);return k},get64:function(b,k){return b}};var Gt=[];function pt(b){try{return jt.grow(b-He.byteLength+65535>>>16),Tt(jt.buffer),1}catch{}}var gt={};function Xt(){if(!Xt.strings){var k={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Qt||"./this.program"};for(var V in gt)void 0===gt[V]?delete k[V]:k[V]=gt[V];var it=[];for(var V in k)it.push(V+"="+k[V]);Xt.strings=it}return Xt.strings}var Pe=function(b,k,V,it){b||(b=this),this.parent=b,this.mount=b.mount,this.mounted=null,this.id=A.nextInode++,this.name=k,this.mode=V,this.node_ops={},this.stream_ops={},this.rdev=it};function me(b,k,V){var it=V>0?V:Le(b)+1,ht=new Array(it),xt=xe(b,ht,0,ht.length);return k&&(ht.length=xt),ht}Object.defineProperties(Pe.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(b){b?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(b){b?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return A.isDir(this.mode)}},isDevice:{get:function(){return A.isChrdev(this.mode)}}}),A.FSNode=Pe,A.staticInit();var Fe={h:function Lt(b,k,V){bt.varargs=V;try{var it=bt.getStr(b),ht=V?bt.get():0;return A.open(it,k,ht).fd}catch(Mt){if(typeof A>"u"||!(Mt instanceof A.ErrnoError))throw Mt;return-Mt.errno}},b:function Pt(){_i("")},a:function Yt(b,k,V){var it=function Jt(b,k){var V;for(Gt.length=0,k>>=2;V=an[b++];){var it=V<105;it&&1&k&&k++,Gt.push(it?ln[k++>>1]:be[k]),++k}return Gt}(k,V);return zn[b].apply(null,it)},k:function Q(b,k,V){an.copyWithin(b,k,k+V)},e:function mt(b){var k=an.length,V=2147483648;if((b>>>=0)>V)return!1;for(var it=1;it<=4;it*=2){var ht=k*(1+.2/it);if(ht=Math.min(ht,b+100663296),pt(Math.min(V,Ee(Math.max(b,ht),65536))))return!0}return!1},f:function kt(b,k){var V=0;return Xt().forEach(function(it,ht){var xt=k+V;be[b+4*ht>>2]=xt,function Oe(b,k,V){for(var it=0;it>0]=b.charCodeAt(it);V||(Ge[k>>0]=0)}(it,xt),V+=it.length+1}),0},g:function le(b,k){var V=Xt();be[b>>2]=V.length;var it=0;return V.forEach(function(ht){it+=ht.length+1}),be[k>>2]=it,0},d:function O(b){try{var k=bt.getStreamFromFD(b);return A.close(k),0}catch(V){if(typeof A>"u"||!(V instanceof A.ErrnoError))throw V;return V.errno}},i:function oe(b,k,V,it){try{var ht=bt.getStreamFromFD(b),xt=bt.doReadv(ht,k,V);return be[it>>2]=xt,0}catch(Mt){if(typeof A>"u"||!(Mt instanceof A.ErrnoError))throw Mt;return Mt.errno}},j:function Se(b,k,V,it,ht){try{var xt=bt.getStreamFromFD(b),Bt=4294967296*V+(k>>>0),ae=9007199254740992;return Bt<=-ae||Bt>=ae?-61:(A.llseek(xt,Bt,it),sn=[xt.position>>>0,(gn=xt.position,+Math.abs(gn)>=1?gn>0?(0|Math.min(+Math.floor(gn/4294967296),4294967295))>>>0:~~+Math.ceil((gn-+(~~gn>>>0))/4294967296)>>>0:0)],be[ht>>2]=sn[0],be[ht+4>>2]=sn[1],xt.getdents&&0===Bt&&0===it&&(xt.getdents=null),0)}catch(Ae){if(typeof A>"u"||!(Ae instanceof A.ErrnoError))throw Ae;return Ae.errno}},c:function Ce(b,k,V,it){try{var ht=bt.getStreamFromFD(b),xt=bt.doWritev(ht,k,V);return be[it>>2]=xt,0}catch(Mt){if(typeof A>"u"||!(Mt instanceof A.ErrnoError))throw Mt;return Mt.errno}},l:function Ke(b){var k=Date.now();return be[b>>2]=k/1e3|0,be[b+4>>2]=k%1e3*1e3|0,0}};(function In(){var b={a:Fe};function k(Mt,Bt){E.asm=Mt.exports,Tt((jt=E.asm.m).buffer),Wt=E.asm.G,function Mi(b){_e.unshift(b)}(E.asm.n),Ni()}function V(Mt){k(Mt.instance)}function it(Mt){return function ji(){return te||"function"!=typeof fetch?Promise.resolve().then(function(){return Sn(fe)}):fetch(fe,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+fe+"'";return b.arrayBuffer()}).catch(function(){return Sn(fe)})}().then(function(Bt){return WebAssembly.instantiate(Bt,b)}).then(function(Bt){return Bt}).then(Mt,function(Bt){Ot("failed to asynchronously prepare wasm: "+Bt),_i(Bt)})}if(Fi(),E.instantiateWasm)try{return E.instantiateWasm(b,k)}catch(Mt){return Ot("Module.instantiateWasm callback failed with error: "+Mt),!1}return function ht(){return te||"function"!=typeof WebAssembly.instantiateStreaming||Ri(fe)||"function"!=typeof fetch?it(V):fetch(fe,{credentials:"same-origin"}).then(function(Mt){return WebAssembly.instantiateStreaming(Mt,b).then(V,function(ae){return Ot("wasm streaming compile failed: "+ae),Ot("falling back to ArrayBuffer instantiation"),it(V)})})}().catch(ft),{}})(),E.___wasm_call_ctors=function(){return(E.___wasm_call_ctors=E.asm.n).apply(null,arguments)};var jn,fn=E._emscripten_bind_CExpat_CExpat_0=function(){return(fn=E._emscripten_bind_CExpat_CExpat_0=E.asm.o).apply(null,arguments)},cn=E._emscripten_bind_CExpat_version_0=function(){return(cn=E._emscripten_bind_CExpat_version_0=E.asm.p).apply(null,arguments)},$e=E._emscripten_bind_CExpat_create_0=function(){return($e=E._emscripten_bind_CExpat_create_0=E.asm.q).apply(null,arguments)},Qe=E._emscripten_bind_CExpat_destroy_0=function(){return(Qe=E._emscripten_bind_CExpat_destroy_0=E.asm.r).apply(null,arguments)},wn=E._emscripten_bind_CExpat_parse_1=function(){return(wn=E._emscripten_bind_CExpat_parse_1=E.asm.s).apply(null,arguments)},Bn=E._emscripten_bind_CExpat_tag_0=function(){return(Bn=E._emscripten_bind_CExpat_tag_0=E.asm.t).apply(null,arguments)},Zn=E._emscripten_bind_CExpat_attrs_0=function(){return(Zn=E._emscripten_bind_CExpat_attrs_0=E.asm.u).apply(null,arguments)},Hn=E._emscripten_bind_CExpat_content_0=function(){return(Hn=E._emscripten_bind_CExpat_content_0=E.asm.v).apply(null,arguments)},Pi=E._emscripten_bind_CExpat_startElement_0=function(){return(Pi=E._emscripten_bind_CExpat_startElement_0=E.asm.w).apply(null,arguments)},he=E._emscripten_bind_CExpat_endElement_0=function(){return(he=E._emscripten_bind_CExpat_endElement_0=E.asm.x).apply(null,arguments)},je=E._emscripten_bind_CExpat_characterData_0=function(){return(je=E._emscripten_bind_CExpat_characterData_0=E.asm.y).apply(null,arguments)},vn=E._emscripten_bind_CExpat___destroy___0=function(){return(vn=E._emscripten_bind_CExpat___destroy___0=E.asm.z).apply(null,arguments)},Cn=E._emscripten_bind_VoidPtr___destroy___0=function(){return(Cn=E._emscripten_bind_VoidPtr___destroy___0=E.asm.A).apply(null,arguments)},$n=E._emscripten_bind_CExpatJS_CExpatJS_0=function(){return($n=E._emscripten_bind_CExpatJS_CExpatJS_0=E.asm.B).apply(null,arguments)},ci=E._emscripten_bind_CExpatJS_startElement_0=function(){return(ci=E._emscripten_bind_CExpatJS_startElement_0=E.asm.C).apply(null,arguments)},vi=E._emscripten_bind_CExpatJS_endElement_0=function(){return(vi=E._emscripten_bind_CExpatJS_endElement_0=E.asm.D).apply(null,arguments)},Qn=E._emscripten_bind_CExpatJS_characterData_0=function(){return(Qn=E._emscripten_bind_CExpatJS_characterData_0=E.asm.E).apply(null,arguments)},Zi=E._emscripten_bind_CExpatJS___destroy___0=function(){return(Zi=E._emscripten_bind_CExpatJS___destroy___0=E.asm.F).apply(null,arguments)};function bi(b){function k(){jn||(jn=!0,E.calledRun=!0,!se&&(function Ye(){!E.noFSInit&&!A.init.initialized&&A.init(),A.ignorePermissions=!1,li(_e)}(),ut(E),E.onRuntimeInitialized&&E.onRuntimeInitialized(),function Tn(){if(E.postRun)for("function"==typeof E.postRun&&(E.postRun=[E.postRun]);E.postRun.length;)b=E.postRun.shift(),ee.unshift(b);var b;li(ee)}()))}gi>0||(function Ze(){if(E.preRun)for("function"==typeof E.preRun&&(E.preRun=[E.preRun]);E.preRun.length;)b=E.preRun.shift(),ce.unshift(b);var b;li(ce)}(),gi>0)||(E.setStatus?(E.setStatus("Running..."),setTimeout(function(){setTimeout(function(){E.setStatus("")},1),k()},1)):k())}if(E._malloc=function(){return(E._malloc=E.asm.H).apply(null,arguments)},Si=function b(){jn||bi(),jn||(Si=b)},E.run=bi,E.preInit)for("function"==typeof E.preInit&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();function mn(){}function un(b){return(b||mn).__cache__}function ui(b,k){var V=un(k),it=V[b];return it||((it=Object.create((k||mn).prototype)).ptr=b,V[b]=it)}bi(),(mn.prototype=Object.create(mn.prototype)).constructor=mn,mn.prototype.__class__=mn,mn.__cache__={},E.WrapperObject=mn,E.getCache=un,E.wrapPointer=ui,E.castObject=function Ji(b,k){return ui(b.ptr,k)},E.NULL=ui(0),E.destroy=function hi(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";b.__destroy__(),delete un(b.__class__)[b.ptr]},E.compare=function Hi(b,k){return b.ptr===k.ptr},E.getPointer=function On(b){return b.ptr},E.getClass=function di(b){return b.__class__};var Ue={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Ue.needed){for(var b=0;b=Ue.size?(At(it>0),Ue.needed+=it,ht=E._malloc(it),Ue.temps.push(ht)):(ht=Ue.buffer+Ue.pos,Ue.pos+=it),ht},copy:function(b,k,V){switch(V>>>=0,k.BYTES_PER_ELEMENT){case 2:V>>>=1;break;case 4:V>>>=2;break;case 8:V>>>=3}for(var ht=0;ht=$);)++dt;if(dt-S>16&&y.subarray&&Le)return Le.decode(y.subarray(S,dt));for(var vt="";S>10,56320|1023&ke)}}else vt+=String.fromCharCode((31&Et)<<6|Rt)}else vt+=String.fromCharCode(Et)}return vt}function Ee(y,S){return y?Oe(ce,y,S):""}function He(y,S,P,$){if(!($>0))return 0;for(var dt=P,vt=P+$-1,Et=0;Et=55296&&Rt<=57343&&(Rt=65536+((1023&Rt)<<10)|1023&y.charCodeAt(++Et)),Rt<=127){if(P>=vt)break;S[P++]=Rt}else if(Rt<=2047){if(P+1>=vt)break;S[P++]=192|Rt>>6,S[P++]=128|63&Rt}else if(Rt<=65535){if(P+2>=vt)break;S[P++]=224|Rt>>12,S[P++]=128|Rt>>6&63,S[P++]=128|63&Rt}else{if(P+3>=vt)break;S[P++]=240|Rt>>18,S[P++]=128|Rt>>12&63,S[P++]=128|Rt>>6&63,S[P++]=128|63&Rt}}return S[P]=0,P-dt}function an(y){for(var S=0,P=0;P=55296&&$<=57343&&($=65536+((1023&$)<<10)|1023&y.charCodeAt(++P)),$<=127?++S:S+=$<=2047?2:$<=65535?3:4}return S}function ln(y,S){return y%S>0&&(y+=S-y%S),y}function Ye(y){Tt=y,E.HEAP8=Wt=new Int8Array(y),E.HEAP16=_e=new Int16Array(y),E.HEAP32=ee=new Int32Array(y),E.HEAPU8=ce=new Uint8Array(y),E.HEAPU16=new Uint16Array(y),E.HEAPU32=new Uint32Array(y),E.HEAPF32=new Float32Array(y),E.HEAPF64=Ze=new Float64Array(y)}var Tn,oi=[],Mi=[],mi=[];var fe=0,Sn=null;function In(y){fe++,E.monitorRunDependencies&&E.monitorRunDependencies(fe)}function gn(y){if(fe--,E.monitorRunDependencies&&E.monitorRunDependencies(fe),0==fe&&Sn){var S=Sn;Sn=null,S()}}function sn(y){E.onAbort&&E.onAbort(y),te(y="Aborted("+y+")"),xe=!0,y+=". Build with -s ASSERTIONS=1 for more info.";var S=new WebAssembly.RuntimeError(y);throw ft(S),S}E.preloadedImages={},E.preloadedAudios={};var Ln;function li(y){return y.startsWith("data:application/octet-stream;base64,")}function we(y){try{if(y==Ln&&Ht)return new Uint8Array(Ht);throw"both async and sync fetching of the wasm failed"}catch(S){sn(S)}}li(Ln="graphvizlib.wasm")||(Ln=function Nt(y){return E.locateFile?E.locateFile(y,yt):yt+y}(Ln));var pn,z,bt,X={161580:function(y,S){var P=Ee(y),$=Ee(S);O.createPath("/",Yt.dirname(P)),O.writeFile(Yt.join("/",P),$)}};function lt(y){for(;y.length>0;){var S=y.shift();if("function"!=typeof S){var P=S.func;"number"==typeof P?void 0===S.arg?A(P)():A(P)(S.arg):P(void 0===S.arg?null:S.arg)}else S(E)}}function A(y){return Tn.get(y)}bt=function(){return performance.now()};function Pt(y){return ee[Mt()>>2]=y,y}var Yt={splitPath:function(y){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(y).slice(1)},normalizeArray:function(y,S){for(var P=0,$=y.length-1;$>=0;$--){var dt=y[$];"."===dt?y.splice($,1):".."===dt?(y.splice($,1),P++):P&&(y.splice($,1),P--)}if(S)for(;P;P--)y.unshift("..");return y},normalize:function(y){var S="/"===y.charAt(0),P="/"===y.substr(-1);return!(y=Yt.normalizeArray(y.split("/").filter(function($){return!!$}),!S).join("/"))&&!S&&(y="."),y&&P&&(y+="/"),(S?"/":"")+y},dirname:function(y){var S=Yt.splitPath(y),P=S[0],$=S[1];return P||$?($&&($=$.substr(0,$.length-1)),P+$):"."},basename:function(y){if("/"===y)return"/";var S=(y=(y=Yt.normalize(y)).replace(/\/$/,"")).lastIndexOf("/");return-1===S?y:y.substr(S+1)},extname:function(y){return Yt.splitPath(y)[3]},join:function(){var y=Array.prototype.slice.call(arguments,0);return Yt.normalize(y.join("/"))},join2:function(y,S){return Yt.normalize(y+"/"+S)}};var pt={resolve:function(){for(var y="",S=!1,P=arguments.length-1;P>=-1&&!S;P--){var $=P>=0?arguments[P]:O.cwd();if("string"!=typeof $)throw new TypeError("Arguments to path.resolve must be strings");if(!$)return"";y=$+"/"+y,S="/"===$.charAt(0)}return(S?"/":"")+(y=Yt.normalizeArray(y.split("/").filter(function(dt){return!!dt}),!S).join("/"))||"."},relative:function(y,S){function P(ke){for(var tn=0;tn=0&&""===ke[hn];hn--);return tn>hn?[]:ke.slice(tn,hn-tn+1)}y=pt.resolve(y).substr(1),S=pt.resolve(S).substr(1);for(var $=P(y.split("/")),dt=P(S.split("/")),vt=Math.min($.length,dt.length),Et=vt,Rt=0;Rt0&&(Ot(Oe(y.output,0)),y.output=[])}},default_tty1_ops:{put_char:function(y,S){null===S||10===S?(te(Oe(y.output,0)),y.output=[]):0!=S&&y.output.push(S)},flush:function(y){y.output&&y.output.length>0&&(te(Oe(y.output,0)),y.output=[])}}};function Xt(y){y=function Ut(y,S){return Math.ceil(y/S)*S}(y,65536);var S=We(65536,y);return S?(function gt(y,S){ce.fill(0,y,y+S)}(S,y),S):0}var kt={ops_table:null,mount:function(y){return kt.createNode(null,"/",16895,0)},createNode:function(y,S,P,$){if(O.isBlkdev(P)||O.isFIFO(P))throw new O.ErrnoError(63);kt.ops_table||(kt.ops_table={dir:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr,lookup:kt.node_ops.lookup,mknod:kt.node_ops.mknod,rename:kt.node_ops.rename,unlink:kt.node_ops.unlink,rmdir:kt.node_ops.rmdir,readdir:kt.node_ops.readdir,symlink:kt.node_ops.symlink},stream:{llseek:kt.stream_ops.llseek}},file:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr},stream:{llseek:kt.stream_ops.llseek,read:kt.stream_ops.read,write:kt.stream_ops.write,allocate:kt.stream_ops.allocate,mmap:kt.stream_ops.mmap,msync:kt.stream_ops.msync}},link:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr,readlink:kt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr},stream:O.chrdev_stream_ops}});var dt=O.createNode(y,S,P,$);return O.isDir(dt.mode)?(dt.node_ops=kt.ops_table.dir.node,dt.stream_ops=kt.ops_table.dir.stream,dt.contents={}):O.isFile(dt.mode)?(dt.node_ops=kt.ops_table.file.node,dt.stream_ops=kt.ops_table.file.stream,dt.usedBytes=0,dt.contents=null):O.isLink(dt.mode)?(dt.node_ops=kt.ops_table.link.node,dt.stream_ops=kt.ops_table.link.stream):O.isChrdev(dt.mode)&&(dt.node_ops=kt.ops_table.chrdev.node,dt.stream_ops=kt.ops_table.chrdev.stream),dt.timestamp=Date.now(),y&&(y.contents[S]=dt,y.timestamp=dt.timestamp),dt},getFileDataAsTypedArray:function(y){return y.contents?y.contents.subarray?y.contents.subarray(0,y.usedBytes):new Uint8Array(y.contents):new Uint8Array(0)},expandFileStorage:function(y,S){var P=y.contents?y.contents.length:0;if(!(P>=S)){S=Math.max(S,P*(P<1048576?2:1.125)>>>0),0!=P&&(S=Math.max(S,256));var dt=y.contents;y.contents=new Uint8Array(S),y.usedBytes>0&&y.contents.set(dt.subarray(0,y.usedBytes),0)}},resizeFileStorage:function(y,S){if(y.usedBytes!=S)if(0==S)y.contents=null,y.usedBytes=0;else{var P=y.contents;y.contents=new Uint8Array(S),P&&y.contents.set(P.subarray(0,Math.min(S,y.usedBytes))),y.usedBytes=S}},node_ops:{getattr:function(y){var S={};return S.dev=O.isChrdev(y.mode)?y.id:1,S.ino=y.id,S.mode=y.mode,S.nlink=1,S.uid=0,S.gid=0,S.rdev=y.rdev,S.size=O.isDir(y.mode)?4096:O.isFile(y.mode)?y.usedBytes:O.isLink(y.mode)?y.link.length:0,S.atime=new Date(y.timestamp),S.mtime=new Date(y.timestamp),S.ctime=new Date(y.timestamp),S.blksize=4096,S.blocks=Math.ceil(S.size/S.blksize),S},setattr:function(y,S){void 0!==S.mode&&(y.mode=S.mode),void 0!==S.timestamp&&(y.timestamp=S.timestamp),void 0!==S.size&&kt.resizeFileStorage(y,S.size)},lookup:function(y,S){throw O.genericErrors[44]},mknod:function(y,S,P,$){return kt.createNode(y,S,P,$)},rename:function(y,S,P){if(O.isDir(y.mode)){var $;try{$=O.lookupNode(S,P)}catch{}if($)for(var dt in $.contents)throw new O.ErrnoError(55)}delete y.parent.contents[y.name],y.parent.timestamp=Date.now(),y.name=P,S.contents[P]=y,S.timestamp=y.parent.timestamp,y.parent=S},unlink:function(y,S){delete y.contents[S],y.timestamp=Date.now()},rmdir:function(y,S){var P=O.lookupNode(y,S);for(var $ in P.contents)throw new O.ErrnoError(55);delete y.contents[S],y.timestamp=Date.now()},readdir:function(y){var S=[".",".."];for(var P in y.contents)!y.contents.hasOwnProperty(P)||S.push(P);return S},symlink:function(y,S,P){var $=kt.createNode(y,S,41471,0);return $.link=P,$},readlink:function(y){if(!O.isLink(y.mode))throw new O.ErrnoError(28);return y.link}},stream_ops:{read:function(y,S,P,$,dt){var vt=y.node.contents;if(dt>=y.node.usedBytes)return 0;var Et=Math.min(y.node.usedBytes-dt,$);if(Et>8&&vt.subarray)S.set(vt.subarray(dt,dt+Et),P);else for(var Rt=0;Rt0||$+P8)throw new O.ErrnoError(32);for(var dt=Yt.normalizeArray(y.split("/").filter(function(Ne){return!!Ne}),!1),vt=O.root,Et="/",Rt=0;Rt40)throw new O.ErrnoError(32)}}return{path:Et,node:vt}},getPath:function(y){for(var S;;){if(O.isRoot(y)){var P=y.mount.mountpoint;return S?"/"!==P[P.length-1]?P+"/"+S:P+S:P}S=S?y.name+"/"+S:y.name,y=y.parent}},hashName:function(y,S){for(var P=0,$=0;$>>0)%O.nameTable.length},hashAddNode:function(y){var S=O.hashName(y.parent.id,y.name);y.name_next=O.nameTable[S],O.nameTable[S]=y},hashRemoveNode:function(y){var S=O.hashName(y.parent.id,y.name);if(O.nameTable[S]===y)O.nameTable[S]=y.name_next;else for(var P=O.nameTable[S];P;){if(P.name_next===y){P.name_next=y.name_next;break}P=P.name_next}},lookupNode:function(y,S){var P=O.mayLookup(y);if(P)throw new O.ErrnoError(P,y);for(var $=O.hashName(y.id,S),dt=O.nameTable[$];dt;dt=dt.name_next)if(dt.parent.id===y.id&&dt.name===S)return dt;return O.lookup(y,S)},createNode:function(y,S,P,$){var dt=new O.FSNode(y,S,P,$);return O.hashAddNode(dt),dt},destroyNode:function(y){O.hashRemoveNode(y)},isRoot:function(y){return y===y.parent},isMountpoint:function(y){return!!y.mounted},isFile:function(y){return 32768==(61440&y)},isDir:function(y){return 16384==(61440&y)},isLink:function(y){return 40960==(61440&y)},isChrdev:function(y){return 8192==(61440&y)},isBlkdev:function(y){return 24576==(61440&y)},isFIFO:function(y){return 4096==(61440&y)},isSocket:function(y){return 49152==(49152&y)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(y){var S=O.flagModes[y];if(typeof S>"u")throw new Error("Unknown file open mode: "+y);return S},flagsToPermissionString:function(y){var S=["r","w","rw"][3&y];return 512&y&&(S+="w"),S},nodePermissions:function(y,S){return O.ignorePermissions?0:S.includes("r")&&!(292&y.mode)||S.includes("w")&&!(146&y.mode)||S.includes("x")&&!(73&y.mode)?2:0},mayLookup:function(y){return O.nodePermissions(y,"x")||(y.node_ops.lookup?0:2)},mayCreate:function(y,S){try{return O.lookupNode(y,S),20}catch{}return O.nodePermissions(y,"wx")},mayDelete:function(y,S,P){var $;try{$=O.lookupNode(y,S)}catch(vt){return vt.errno}var dt=O.nodePermissions(y,"wx");if(dt)return dt;if(P){if(!O.isDir($.mode))return 54;if(O.isRoot($)||O.getPath($)===O.cwd())return 10}else if(O.isDir($.mode))return 31;return 0},mayOpen:function(y,S){return y?O.isLink(y.mode)?32:O.isDir(y.mode)&&("r"!==O.flagsToPermissionString(S)||512&S)?31:O.nodePermissions(y,O.flagsToPermissionString(S)):44},MAX_OPEN_FDS:4096,nextfd:function(y,S){S=S||O.MAX_OPEN_FDS;for(var P=y=y||0;P<=S;P++)if(!O.streams[P])return P;throw new O.ErrnoError(33)},getStream:function(y){return O.streams[y]},createStream:function(y,S,P){O.FSStream||(O.FSStream=function(){},O.FSStream.prototype={object:{get:function(){return this.node},set:function(Et){this.node=Et}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var $=new O.FSStream;for(var dt in y)$[dt]=y[dt];y=$;var vt=O.nextfd(S,P);return y.fd=vt,O.streams[vt]=y,y},closeStream:function(y){O.streams[y]=null},chrdev_stream_ops:{open:function(y){var S=O.getDevice(y.node.rdev);y.stream_ops=S.stream_ops,y.stream_ops.open&&y.stream_ops.open(y)},llseek:function(){throw new O.ErrnoError(70)}},major:function(y){return y>>8},minor:function(y){return 255&y},makedev:function(y,S){return y<<8|S},registerDevice:function(y,S){O.devices[y]={stream_ops:S}},getDevice:function(y){return O.devices[y]},getMounts:function(y){for(var S=[],P=[y];P.length;){var $=P.pop();S.push($),P.push.apply(P,$.mounts)}return S},syncfs:function(y,S){"function"==typeof y&&(S=y,y=!1),O.syncFSRequests++,O.syncFSRequests>1&&te("warning: "+O.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var P=O.getMounts(O.root.mount),$=0;function dt(Et){return O.syncFSRequests--,S(Et)}function vt(Et){if(Et)return vt.errored?void 0:(vt.errored=!0,dt(Et));++$>=P.length&&dt(null)}P.forEach(function(Et){if(!Et.type.syncfs)return vt(null);Et.type.syncfs(Et,y,vt)})},mount:function(y,S,P){var vt,$="/"===P,dt=!P;if($&&O.root)throw new O.ErrnoError(10);if(!$&&!dt){var Et=O.lookupPath(P,{follow_mount:!1});if(P=Et.path,O.isMountpoint(vt=Et.node))throw new O.ErrnoError(10);if(!O.isDir(vt.mode))throw new O.ErrnoError(54)}var Rt={type:y,opts:S,mountpoint:P,mounts:[]},ne=y.mount(Rt);return ne.mount=Rt,Rt.root=ne,$?O.root=ne:vt&&(vt.mounted=Rt,vt.mount&&vt.mount.mounts.push(Rt)),ne},unmount:function(y){var S=O.lookupPath(y,{follow_mount:!1});if(!O.isMountpoint(S.node))throw new O.ErrnoError(28);var P=S.node,$=P.mounted,dt=O.getMounts($);Object.keys(O.nameTable).forEach(function(Et){for(var Rt=O.nameTable[Et];Rt;){var ne=Rt.name_next;dt.includes(Rt.mount)&&O.destroyNode(Rt),Rt=ne}}),P.mounted=null;var vt=P.mount.mounts.indexOf($);P.mount.mounts.splice(vt,1)},lookup:function(y,S){return y.node_ops.lookup(y,S)},mknod:function(y,S,P){var dt=O.lookupPath(y,{parent:!0}).node,vt=Yt.basename(y);if(!vt||"."===vt||".."===vt)throw new O.ErrnoError(28);var Et=O.mayCreate(dt,vt);if(Et)throw new O.ErrnoError(Et);if(!dt.node_ops.mknod)throw new O.ErrnoError(63);return dt.node_ops.mknod(dt,vt,S,P)},create:function(y,S){return S=void 0!==S?S:438,S&=4095,O.mknod(y,S|=32768,0)},mkdir:function(y,S){return S=void 0!==S?S:511,S&=1023,O.mknod(y,S|=16384,0)},mkdirTree:function(y,S){for(var P=y.split("/"),$="",dt=0;dt"u"&&(P=S,S=438),O.mknod(y,S|=8192,P)},symlink:function(y,S){if(!pt.resolve(y))throw new O.ErrnoError(44);var $=O.lookupPath(S,{parent:!0}).node;if(!$)throw new O.ErrnoError(44);var dt=Yt.basename(S),vt=O.mayCreate($,dt);if(vt)throw new O.ErrnoError(vt);if(!$.node_ops.symlink)throw new O.ErrnoError(63);return $.node_ops.symlink($,dt,y)},rename:function(y,S){var Rt,ne,P=Yt.dirname(y),$=Yt.dirname(S),dt=Yt.basename(y),vt=Yt.basename(S);if(Rt=O.lookupPath(y,{parent:!0}).node,ne=O.lookupPath(S,{parent:!0}).node,!Rt||!ne)throw new O.ErrnoError(44);if(Rt.mount!==ne.mount)throw new O.ErrnoError(75);var hn,ke=O.lookupNode(Rt,dt),tn=pt.relative(y,$);if("."!==tn.charAt(0))throw new O.ErrnoError(28);if("."!==(tn=pt.relative(S,P)).charAt(0))throw new O.ErrnoError(55);try{hn=O.lookupNode(ne,vt)}catch{}if(ke!==hn){var Ne=O.isDir(ke.mode),ze=O.mayDelete(Rt,dt,Ne);if(ze)throw new O.ErrnoError(ze);if(ze=hn?O.mayDelete(ne,vt,Ne):O.mayCreate(ne,vt))throw new O.ErrnoError(ze);if(!Rt.node_ops.rename)throw new O.ErrnoError(63);if(O.isMountpoint(ke)||hn&&O.isMountpoint(hn))throw new O.ErrnoError(10);if(ne!==Rt&&(ze=O.nodePermissions(Rt,"w")))throw new O.ErrnoError(ze);O.hashRemoveNode(ke);try{Rt.node_ops.rename(ke,ne,vt)}catch(bn){throw bn}finally{O.hashAddNode(ke)}}},rmdir:function(y){var P=O.lookupPath(y,{parent:!0}).node,$=Yt.basename(y),dt=O.lookupNode(P,$),vt=O.mayDelete(P,$,!0);if(vt)throw new O.ErrnoError(vt);if(!P.node_ops.rmdir)throw new O.ErrnoError(63);if(O.isMountpoint(dt))throw new O.ErrnoError(10);P.node_ops.rmdir(P,$),O.destroyNode(dt)},readdir:function(y){var P=O.lookupPath(y,{follow:!0}).node;if(!P.node_ops.readdir)throw new O.ErrnoError(54);return P.node_ops.readdir(P)},unlink:function(y){var P=O.lookupPath(y,{parent:!0}).node,$=Yt.basename(y),dt=O.lookupNode(P,$),vt=O.mayDelete(P,$,!1);if(vt)throw new O.ErrnoError(vt);if(!P.node_ops.unlink)throw new O.ErrnoError(63);if(O.isMountpoint(dt))throw new O.ErrnoError(10);P.node_ops.unlink(P,$),O.destroyNode(dt)},readlink:function(y){var P=O.lookupPath(y).node;if(!P)throw new O.ErrnoError(44);if(!P.node_ops.readlink)throw new O.ErrnoError(28);return pt.resolve(O.getPath(P.parent),P.node_ops.readlink(P))},stat:function(y,S){var $=O.lookupPath(y,{follow:!S}).node;if(!$)throw new O.ErrnoError(44);if(!$.node_ops.getattr)throw new O.ErrnoError(63);return $.node_ops.getattr($)},lstat:function(y){return O.stat(y,!0)},chmod:function(y,S,P){var $;if(!($="string"==typeof y?O.lookupPath(y,{follow:!P}).node:y).node_ops.setattr)throw new O.ErrnoError(63);$.node_ops.setattr($,{mode:4095&S|-4096&$.mode,timestamp:Date.now()})},lchmod:function(y,S){O.chmod(y,S,!0)},fchmod:function(y,S){var P=O.getStream(y);if(!P)throw new O.ErrnoError(8);O.chmod(P.node,S)},chown:function(y,S,P,$){var dt;if(!(dt="string"==typeof y?O.lookupPath(y,{follow:!$}).node:y).node_ops.setattr)throw new O.ErrnoError(63);dt.node_ops.setattr(dt,{timestamp:Date.now()})},lchown:function(y,S,P){O.chown(y,S,P,!0)},fchown:function(y,S,P){var $=O.getStream(y);if(!$)throw new O.ErrnoError(8);O.chown($.node,S,P)},truncate:function(y,S){if(S<0)throw new O.ErrnoError(28);var P;if(!(P="string"==typeof y?O.lookupPath(y,{follow:!0}).node:y).node_ops.setattr)throw new O.ErrnoError(63);if(O.isDir(P.mode))throw new O.ErrnoError(31);if(!O.isFile(P.mode))throw new O.ErrnoError(28);var dt=O.nodePermissions(P,"w");if(dt)throw new O.ErrnoError(dt);P.node_ops.setattr(P,{size:S,timestamp:Date.now()})},ftruncate:function(y,S){var P=O.getStream(y);if(!P)throw new O.ErrnoError(8);if(0==(2097155&P.flags))throw new O.ErrnoError(28);O.truncate(P.node,S)},utime:function(y,S,P){var dt=O.lookupPath(y,{follow:!0}).node;dt.node_ops.setattr(dt,{timestamp:Math.max(S,P)})},open:function(y,S,P,$,dt){if(""===y)throw new O.ErrnoError(44);var vt;if(P=typeof P>"u"?438:P,P=64&(S="string"==typeof S?O.modeStringToFlags(S):S)?4095&P|32768:0,"object"==typeof y)vt=y;else{y=Yt.normalize(y);try{vt=O.lookupPath(y,{follow:!(131072&S)}).node}catch{}}var Rt=!1;if(64&S)if(vt){if(128&S)throw new O.ErrnoError(20)}else vt=O.mknod(y,P,0),Rt=!0;if(!vt)throw new O.ErrnoError(44);if(O.isChrdev(vt.mode)&&(S&=-513),65536&S&&!O.isDir(vt.mode))throw new O.ErrnoError(54);if(!Rt){var ne=O.mayOpen(vt,S);if(ne)throw new O.ErrnoError(ne)}512&S&&O.truncate(vt,0),S&=-131713;var ke=O.createStream({node:vt,path:O.getPath(vt),id:vt.id,flags:S,mode:vt.mode,seekable:!0,position:0,stream_ops:vt.stream_ops,node_ops:vt.node_ops,ungotten:[],error:!1},$,dt);return ke.stream_ops.open&&ke.stream_ops.open(ke),E.logReadFiles&&!(1&S)&&(O.readFiles||(O.readFiles={}),y in O.readFiles||(O.readFiles[y]=1)),ke},close:function(y){if(O.isClosed(y))throw new O.ErrnoError(8);y.getdents&&(y.getdents=null);try{y.stream_ops.close&&y.stream_ops.close(y)}catch(S){throw S}finally{O.closeStream(y.fd)}y.fd=null},isClosed:function(y){return null===y.fd},llseek:function(y,S,P){if(O.isClosed(y))throw new O.ErrnoError(8);if(!y.seekable||!y.stream_ops.llseek)throw new O.ErrnoError(70);if(0!=P&&1!=P&&2!=P)throw new O.ErrnoError(28);return y.position=y.stream_ops.llseek(y,S,P),y.ungotten=[],y.position},read:function(y,S,P,$,dt){if($<0||dt<0)throw new O.ErrnoError(28);if(O.isClosed(y))throw new O.ErrnoError(8);if(1==(2097155&y.flags))throw new O.ErrnoError(8);if(O.isDir(y.node.mode))throw new O.ErrnoError(31);if(!y.stream_ops.read)throw new O.ErrnoError(28);var vt=typeof dt<"u";if(vt){if(!y.seekable)throw new O.ErrnoError(70)}else dt=y.position;var Et=y.stream_ops.read(y,S,P,$,dt);return vt||(y.position+=Et),Et},write:function(y,S,P,$,dt,vt){if($<0||dt<0)throw new O.ErrnoError(28);if(O.isClosed(y))throw new O.ErrnoError(8);if(0==(2097155&y.flags))throw new O.ErrnoError(8);if(O.isDir(y.node.mode))throw new O.ErrnoError(31);if(!y.stream_ops.write)throw new O.ErrnoError(28);y.seekable&&1024&y.flags&&O.llseek(y,0,2);var Et=typeof dt<"u";if(Et){if(!y.seekable)throw new O.ErrnoError(70)}else dt=y.position;var Rt=y.stream_ops.write(y,S,P,$,dt,vt);return Et||(y.position+=Rt),Rt},allocate:function(y,S,P){if(O.isClosed(y))throw new O.ErrnoError(8);if(S<0||P<=0)throw new O.ErrnoError(28);if(0==(2097155&y.flags))throw new O.ErrnoError(8);if(!O.isFile(y.node.mode)&&!O.isDir(y.node.mode))throw new O.ErrnoError(43);if(!y.stream_ops.allocate)throw new O.ErrnoError(138);y.stream_ops.allocate(y,S,P)},mmap:function(y,S,P,$,dt,vt){if(0!=(2&dt)&&0==(2&vt)&&2!=(2097155&y.flags))throw new O.ErrnoError(2);if(1==(2097155&y.flags))throw new O.ErrnoError(2);if(!y.stream_ops.mmap)throw new O.ErrnoError(43);return y.stream_ops.mmap(y,S,P,$,dt,vt)},msync:function(y,S,P,$,dt){return y&&y.stream_ops.msync?y.stream_ops.msync(y,S,P,$,dt):0},munmap:function(y){return 0},ioctl:function(y,S,P){if(!y.stream_ops.ioctl)throw new O.ErrnoError(59);return y.stream_ops.ioctl(y,S,P)},readFile:function(y,S){if((S=S||{}).flags=S.flags||0,S.encoding=S.encoding||"binary","utf8"!==S.encoding&&"binary"!==S.encoding)throw new Error('Invalid encoding type "'+S.encoding+'"');var P,$=O.open(y,S.flags),vt=O.stat(y).size,Et=new Uint8Array(vt);return O.read($,Et,0,vt,0),"utf8"===S.encoding?P=Oe(Et,0):"binary"===S.encoding&&(P=Et),O.close($),P},writeFile:function(y,S,P){(P=P||{}).flags=P.flags||577;var $=O.open(y,P.flags,P.mode);if("string"==typeof S){var dt=new Uint8Array(an(S)+1),vt=He(S,dt,0,dt.length);O.write($,dt,0,vt,void 0,P.canOwn)}else{if(!ArrayBuffer.isView(S))throw new Error("Unsupported data type");O.write($,S,0,S.byteLength,void 0,P.canOwn)}O.close($)},cwd:function(){return O.currentPath},chdir:function(y){var S=O.lookupPath(y,{follow:!0});if(null===S.node)throw new O.ErrnoError(44);if(!O.isDir(S.node.mode))throw new O.ErrnoError(54);var P=O.nodePermissions(S.node,"x");if(P)throw new O.ErrnoError(P);O.currentPath=S.path},createDefaultDirectories:function(){O.mkdir("/tmp"),O.mkdir("/home"),O.mkdir("/home/web_user")},createDefaultDevices:function(){O.mkdir("/dev"),O.registerDevice(O.makedev(1,3),{read:function(){return 0},write:function(S,P,$,dt,vt){return dt}}),O.mkdev("/dev/null",O.makedev(1,3)),mt.register(O.makedev(5,0),mt.default_tty_ops),mt.register(O.makedev(6,0),mt.default_tty1_ops),O.mkdev("/dev/tty",O.makedev(5,0)),O.mkdev("/dev/tty1",O.makedev(6,0));var y=function Q(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var y=new Uint8Array(1);return function(){return crypto.getRandomValues(y),y[0]}}return function(){sn("randomDevice")}}();O.createDevice("/dev","random",y),O.createDevice("/dev","urandom",y),O.mkdir("/dev/shm"),O.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){O.mkdir("/proc");var y=O.mkdir("/proc/self");O.mkdir("/proc/self/fd"),O.mount({mount:function(){var S=O.createNode(y,"fd",16895,73);return S.node_ops={lookup:function(P,$){var vt=O.getStream(+$);if(!vt)throw new O.ErrnoError(8);var Et={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return vt.path}}};return Et.parent=Et,Et}},S}},{},"/proc/self/fd")},createStandardStreams:function(){E.stdin?O.createDevice("/dev","stdin",E.stdin):O.symlink("/dev/tty","/dev/stdin"),E.stdout?O.createDevice("/dev","stdout",null,E.stdout):O.symlink("/dev/tty","/dev/stdout"),E.stderr?O.createDevice("/dev","stderr",null,E.stderr):O.symlink("/dev/tty1","/dev/stderr"),O.open("/dev/stdin",0),O.open("/dev/stdout",1),O.open("/dev/stderr",1)},ensureErrnoError:function(){O.ErrnoError||(O.ErrnoError=function(S,P){this.node=P,this.setErrno=function($){this.errno=$},this.setErrno(S),this.message="FS error"},O.ErrnoError.prototype=new Error,O.ErrnoError.prototype.constructor=O.ErrnoError,[44].forEach(function(y){O.genericErrors[y]=new O.ErrnoError(y),O.genericErrors[y].stack=""}))},staticInit:function(){O.ensureErrnoError(),O.nameTable=new Array(4096),O.mount(kt,{},"/"),O.createDefaultDirectories(),O.createDefaultDevices(),O.createSpecialDirectories(),O.filesystems={MEMFS:kt}},init:function(y,S,P){O.init.initialized=!0,O.ensureErrnoError(),E.stdin=y||E.stdin,E.stdout=S||E.stdout,E.stderr=P||E.stderr,O.createStandardStreams()},quit:function(){O.init.initialized=!1;var y=E._fflush;y&&y(0);for(var S=0;Sthis.length-1||Ne<0)){var ze=Ne%this.chunkSize;return this.getter(Ne/this.chunkSize|0)[ze]}},vt.prototype.setDataGetter=function(Ne){this.getter=Ne},vt.prototype.cacheLength=function(){var Ne=new XMLHttpRequest;if(Ne.open("HEAD",P,!1),Ne.send(null),!(Ne.status>=200&&Ne.status<300||304===Ne.status))throw new Error("Couldn't load "+P+". Status: "+Ne.status);var bn,ze=Number(Ne.getResponseHeader("Content-length")),Ei=(bn=Ne.getResponseHeader("Accept-Ranges"))&&"bytes"===bn,mr=(bn=Ne.getResponseHeader("Content-Encoding"))&&"gzip"===bn,Di=1048576;Ei||(Di=ze);var yi=this;yi.setDataGetter(function(Yi){var gr=Yi*Di,qn=(Yi+1)*Di-1;if(qn=Math.min(qn,ze-1),typeof yi.chunks[Yi]>"u"&&(yi.chunks[Yi]=function(Yi,gr){if(Yi>gr)throw new Error("invalid range ("+Yi+", "+gr+") or no bytes requested!");if(gr>ze-1)throw new Error("only "+ze+" bytes available! programmer error!");var qn=new XMLHttpRequest;if(qn.open("GET",P,!1),ze!==Di&&qn.setRequestHeader("Range","bytes="+Yi+"-"+gr),typeof Uint8Array<"u"&&(qn.responseType="arraybuffer"),qn.overrideMimeType&&qn.overrideMimeType("text/plain; charset=x-user-defined"),qn.send(null),!(qn.status>=200&&qn.status<300||304===qn.status))throw new Error("Couldn't load "+P+". Status: "+qn.status);return void 0!==qn.response?new Uint8Array(qn.response||[]):Vn(qn.responseText||"",!0)}(gr,qn)),typeof yi.chunks[Yi]>"u")throw new Error("doXHR failed!");return yi.chunks[Yi]}),(mr||!ze)&&(Di=ze=1,ze=this.getter(0).length,Di=ze,Ot("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=ze,this._chunkSize=Di,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Rt,ne=O.createFile(y,S,Rt={isDevice:!1,url:P},$,dt);Rt.contents?ne.contents=Rt.contents:Rt.url&&(ne.contents=null,ne.url=Rt.url),Object.defineProperties(ne,{usedBytes:{get:function(){return this.contents.length}}});var ke={};return Object.keys(ne.stream_ops).forEach(function(hn){var Ne=ne.stream_ops[hn];ke[hn]=function(){return O.forceLoadFile(ne),Ne.apply(null,arguments)}}),ke.read=function(Ne,ze,bn,Ei,mr){O.forceLoadFile(ne);var Di=Ne.node.contents;if(mr>=Di.length)return 0;var wr=Math.min(Di.length-mr,Ei);if(Di.slice)for(var yi=0;yi>2]=$.dev,ee[P+4>>2]=0,ee[P+8>>2]=$.ino,ee[P+12>>2]=$.mode,ee[P+16>>2]=$.nlink,ee[P+20>>2]=$.uid,ee[P+24>>2]=$.gid,ee[P+28>>2]=$.rdev,ee[P+32>>2]=0,z=[$.size>>>0,(pn=$.size,+Math.abs(pn)>=1?pn>0?(0|Math.min(+Math.floor(pn/4294967296),4294967295))>>>0:~~+Math.ceil((pn-+(~~pn>>>0))/4294967296)>>>0:0)],ee[P+40>>2]=z[0],ee[P+44>>2]=z[1],ee[P+48>>2]=4096,ee[P+52>>2]=$.blocks,ee[P+56>>2]=$.atime.getTime()/1e3|0,ee[P+60>>2]=0,ee[P+64>>2]=$.mtime.getTime()/1e3|0,ee[P+68>>2]=0,ee[P+72>>2]=$.ctime.getTime()/1e3|0,ee[P+76>>2]=0,z=[$.ino>>>0,(pn=$.ino,+Math.abs(pn)>=1?pn>0?(0|Math.min(+Math.floor(pn/4294967296),4294967295))>>>0:~~+Math.ceil((pn-+(~~pn>>>0))/4294967296)>>>0:0)],ee[P+80>>2]=z[0],ee[P+84>>2]=z[1],0},doMsync:function(y,S,P,$,dt){var vt=ce.slice(y,y+P);O.msync(S,vt,dt,P,$)},doMkdir:function(y,S){return"/"===(y=Yt.normalize(y))[y.length-1]&&(y=y.substr(0,y.length-1)),O.mkdir(y,S,0),0},doMknod:function(y,S,P){switch(61440&S){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return O.mknod(y,S,P),0},doReadlink:function(y,S,P){if(P<=0)return-28;var $=O.readlink(y),dt=Math.min(P,an($)),vt=Wt[S+dt];return function Ge(y,S,P){return He(y,ce,S,P)}($,S,P+1),Wt[S+dt]=vt,dt},doAccess:function(y,S){if(-8&S)return-28;var $=O.lookupPath(y,{follow:!0}).node;if(!$)return-44;var dt="";return 4&S&&(dt+="r"),2&S&&(dt+="w"),1&S&&(dt+="x"),dt&&O.nodePermissions($,dt)?-2:0},doDup:function(y,S,P){var $=O.getStream(P);return $&&O.close($),O.open(y,S,0,P,P).fd},doReadv:function(y,S,P,$){for(var dt=0,vt=0;vt>2],ne=O.read(y,Wt,ee[S+8*vt>>2],Rt,$);if(ne<0)return-1;if(dt+=ne,ne>2],ee[S+(8*vt+4)>>2],$);if(ne<0)return-1;dt+=ne}return dt},varargs:void 0,get:function(){return oe.varargs+=4,ee[oe.varargs-4>>2]},getStr:function(y){return Ee(y)},getStreamFromFD:function(y){var S=O.getStream(y);if(!S)throw new O.ErrnoError(8);return S},get64:function(y,S){return y}};var Zn=[];function je(y){try{return Kt.grow(y-Tt.byteLength+65535>>>16),Ye(Kt.buffer),1}catch{}}var Cn={};function ci(){if(!ci.strings){var S={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Qt||"./this.program"};for(var P in Cn)void 0===Cn[P]?delete S[P]:S[P]=Cn[P];var $=[];for(var P in S)$.push(P+"="+S[P]);ci.strings=$}return ci.strings}var On=function(y,S,P,$){y||(y=this),this.parent=y,this.mount=y.mount,this.mounted=null,this.id=O.nextInode++,this.name=S,this.mode=P,this.node_ops={},this.stream_ops={},this.rdev=$};function Vn(y,S,P){var $=P>0?P:an(y)+1,dt=new Array($),vt=He(y,dt,0,dt.length);return S&&(dt.length=vt),dt}Object.defineProperties(On.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(y){y?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(y){y?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return O.isDir(this.mode)}},isDevice:{get:function(){return O.isChrdev(this.mode)}}}),O.FSNode=On,O.staticInit();var nn={A:function Jt(y,S){return function Gt(y,S){var P;if(0===y)P=Date.now();else{if(1!==y&&4!==y)return Pt(28),-1;P=bt()}return ee[S>>2]=P/1e3|0,ee[S+4>>2]=P%1e3*1e3*1e3|0,0}(y,S)},B:function Se(y,S){try{return y=oe.getStr(y),oe.doAccess(y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},h:function Ce(y,S,P){oe.varargs=P;try{var $=oe.getStreamFromFD(y);switch(S){case 0:return(dt=oe.get())<0?-28:O.open($.path,$.flags,0,dt).fd;case 1:case 2:case 6:case 7:return 0;case 3:return $.flags;case 4:var dt=oe.get();return $.flags|=dt,0;case 5:return dt=oe.get(),_e[dt+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return Pt(28),-1}}catch(Rt){if(typeof O>"u"||!(Rt instanceof O.ErrnoError))throw Rt;return-Rt.errno}},x:function Ke(y,S){try{var P=oe.getStreamFromFD(y);return oe.doStat(O.stat,P.path,S)}catch($){if(typeof O>"u"||!($ instanceof O.ErrnoError))throw $;return-$.errno}},u:function Pe(y,S,P,$){try{S=oe.getStr(S);var dt=256&$,vt=4096&$;return $&=-4353,S=oe.calculateAt(y,S,vt),oe.doStat(dt?O.lstat:O.stat,S,P)}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return-Et.errno}},y:function Be(y,S,P){oe.varargs=P;try{var $=oe.getStreamFromFD(y);switch(S){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return $.tty?0:-59;case 21519:if(!$.tty)return-59;var dt=oe.get();return ee[dt>>2]=0,0;case 21520:return $.tty?-28:-59;case 21531:return dt=oe.get(),O.ioctl($,S,dt);default:sn("bad ioctl syscall "+S)}}catch(vt){if(typeof O>"u"||!(vt instanceof O.ErrnoError))throw vt;return-vt.errno}},k:function me(y,S,P,$,dt,vt){try{return function ue(y,S,P,$,dt,vt){vt<<=12;var Et,Rt=!1;if(0!=(16&$)&&y%65536!=0)return-28;if(0!=(32&$)){if(!(Et=Xt(S)))return-48;Rt=!0}else{var ne=O.getStream(dt);if(!ne)return-8;var ke=O.mmap(ne,y,S,vt,P,$);Et=ke.ptr,Rt=ke.allocated}return oe.mappings[Et]={malloc:Et,len:S,allocated:Rt,fd:dt,prot:P,flags:$,offset:vt},Et}(y,S,P,$,dt,vt)}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return-Et.errno}},j:function fn(y,S){try{return function Fe(y,S){var P=oe.mappings[y];if(0===S||!P)return-28;if(S===P.len){var $=O.getStream(P.fd);$&&2&P.prot&&oe.doMsync(y,$,S,P.flags,P.offset),oe.mappings[y]=null,P.allocated&&xt(P.malloc)}return 0}(y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},e:function cn(y,S,P){oe.varargs=P;try{var $=oe.getStr(y),dt=P?oe.get():0;return O.open($,S,dt).fd}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return-Et.errno}},v:function $e(y,S){try{return y=oe.getStr(y),oe.doStat(O.stat,y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},z:function Qe(y){try{return y=oe.getStr(y),O.unlink(y),0}catch(S){if(typeof O>"u"||!(S instanceof O.ErrnoError))throw S;return-S.errno}},r:function wn(){throw"longjmp"},q:function Bn(){sn("")},C:function Pi(y,S,P){var $=function Hn(y,S){var P;for(Zn.length=0,S>>=2;P=ce[y++];){var $=P<105;$&&1&S&&S++,Zn.push($?Ze[S++>>1]:ee[S]),++S}return Zn}(S,P);return X[y].apply(null,$)},o:function he(y,S,P){ce.copyWithin(y,S,S+P)},p:function vn(y){var S=ce.length,P=2147483648;if((y>>>=0)>P)return!1;for(var $=1;$<=4;$*=2){var dt=S*(1+.2/$);if(dt=Math.min(dt,y+100663296),je(Math.min(P,ln(Math.max(y,dt),65536))))return!0}return!1},s:function vi(y,S){var P=0;return ci().forEach(function($,dt){var vt=S+P;ee[y+4*dt>>2]=vt,function be(y,S,P){for(var $=0;$>0]=y.charCodeAt($);P||(Wt[S>>0]=0)}($,vt),P+=$.length+1}),0},t:function Qn(y,S){var P=ci();ee[y>>2]=P.length;var $=0;return P.forEach(function(dt){$+=dt.length+1}),ee[S>>2]=$,0},a:function Zi(y){!function tr(y,S){!function xi(y){(function Si(){return Zt||!1})()||(E.onExit&&E.onExit(y),xe=!0),pe(y,new _n(y))}(y)}(y)},d:function jn(y){try{var S=oe.getStreamFromFD(y);return O.close(S),0}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return P.errno}},i:function bi(y,S,P,$){try{var dt=oe.getStreamFromFD(y),vt=oe.doReadv(dt,S,P);return ee[$>>2]=vt,0}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return Et.errno}},n:function mn(y,S,P,$,dt){try{var vt=oe.getStreamFromFD(y),Rt=4294967296*P+(S>>>0),ne=9007199254740992;return Rt<=-ne||Rt>=ne?-61:(O.llseek(vt,Rt,$),z=[vt.position>>>0,(pn=vt.position,+Math.abs(pn)>=1?pn>0?(0|Math.min(+Math.floor(pn/4294967296),4294967295))>>>0:~~+Math.ceil((pn-+(~~pn>>>0))/4294967296)>>>0:0)],ee[dt>>2]=z[0],ee[dt+4>>2]=z[1],vt.getdents&&0===Rt&&0===$&&(vt.getdents=null),0)}catch(ke){if(typeof O>"u"||!(ke instanceof O.ErrnoError))throw ke;return ke.errno}},g:function un(y,S,P,$){try{var dt=oe.getStreamFromFD(y),vt=oe.doWritev(dt,S,P);return ee[$>>2]=vt,0}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return Et.errno}},c:function ui(){return jt},w:function Ji(y){var S=Date.now();return ee[y>>2]=S/1e3|0,ee[y+4>>2]=S%1e3*1e3|0,0},l:function Ie(y,S,P,$,dt,vt,Et){var Rt=Bt();try{return A(y)(S,P,$,dt,vt,Et)}catch(ne){if(ae(Rt),ne!==ne+0&&"longjmp"!==ne)throw ne;Ae(1,0)}},m:function qe(y,S){var P=Bt();try{A(y)(S)}catch($){if(ae(P),$!==$+0&&"longjmp"!==$)throw $;Ae(1,0)}},b:function hi(y){!function(y){jt=y}(y)},f:function Hi(y){var S=Date.now()/1e3|0;return y&&(ee[y>>2]=S),S}};(function Nn(){var y={a:nn};function S(Et,Rt){E.asm=Et.exports,Ye((Kt=E.asm.D).buffer),Tn=E.asm.M,function Qi(y){Mi.unshift(y)}(E.asm.E),gn()}function P(Et){S(Et.instance)}function $(Et){return function Bi(){return Ht||"function"!=typeof fetch?Promise.resolve().then(function(){return we(Ln)}):fetch(Ln,{credentials:"same-origin"}).then(function(y){if(!y.ok)throw"failed to load wasm binary file at '"+Ln+"'";return y.arrayBuffer()}).catch(function(){return we(Ln)})}().then(function(Rt){return WebAssembly.instantiate(Rt,y)}).then(function(Rt){return Rt}).then(Et,function(Rt){te("failed to asynchronously prepare wasm: "+Rt),sn(Rt)})}if(In(),E.instantiateWasm)try{return E.instantiateWasm(y,S)}catch(Et){return te("Module.instantiateWasm callback failed with error: "+Et),!1}return function dt(){return Ht||"function"!=typeof WebAssembly.instantiateStreaming||li(Ln)||"function"!=typeof fetch?$(P):fetch(Ln,{credentials:"same-origin"}).then(function(Et){return WebAssembly.instantiateStreaming(Et,y).then(P,function(ne){return te("wasm streaming compile failed: "+ne),te("falling back to ArrayBuffer instantiation"),$(P)})})}().catch(ft),{}})(),E.___wasm_call_ctors=function(){return(E.___wasm_call_ctors=E.asm.E).apply(null,arguments)};var Ti=E._emscripten_bind_VoidPtr___destroy___0=function(){return(Ti=E._emscripten_bind_VoidPtr___destroy___0=E.asm.F).apply(null,arguments)},kn=E._emscripten_bind_Graphviz_Graphviz_2=function(){return(kn=E._emscripten_bind_Graphviz_Graphviz_2=E.asm.G).apply(null,arguments)},b=E._emscripten_bind_Graphviz_version_0=function(){return(b=E._emscripten_bind_Graphviz_version_0=E.asm.H).apply(null,arguments)},k=E._emscripten_bind_Graphviz_lastError_0=function(){return(k=E._emscripten_bind_Graphviz_lastError_0=E.asm.I).apply(null,arguments)},V=E._emscripten_bind_Graphviz_layout_3=function(){return(V=E._emscripten_bind_Graphviz_layout_3=E.asm.J).apply(null,arguments)},it=E._emscripten_bind_Graphviz_createFile_2=function(){return(it=E._emscripten_bind_Graphviz_createFile_2=E.asm.K).apply(null,arguments)},ht=E._emscripten_bind_Graphviz___destroy___0=function(){return(ht=E._emscripten_bind_Graphviz___destroy___0=E.asm.L).apply(null,arguments)};E._malloc=function(){return(E._malloc=E.asm.N).apply(null,arguments)};var Me,xt=E._free=function(){return(xt=E._free=E.asm.O).apply(null,arguments)},Mt=E.___errno_location=function(){return(Mt=E.___errno_location=E.asm.P).apply(null,arguments)},Bt=E.stackSave=function(){return(Bt=E.stackSave=E.asm.Q).apply(null,arguments)},ae=E.stackRestore=function(){return(ae=E.stackRestore=E.asm.R).apply(null,arguments)},Ae=E._setThrew=function(){return(Ae=E._setThrew=E.asm.S).apply(null,arguments)},We=E._memalign=function(){return(We=E._memalign=E.asm.T).apply(null,arguments)};function _n(y){this.name="ExitStatus",this.message="Program terminated with exit("+y+")",this.status=y}function Jn(y){function S(){Me||(Me=!0,E.calledRun=!0,!xe&&(function Fi(){!E.noFSInit&&!O.init.initialized&&O.init(),O.ignorePermissions=!1,lt(Mi)}(),ut(E),E.onRuntimeInitialized&&E.onRuntimeInitialized(),function Ni(){if(E.postRun)for("function"==typeof E.postRun&&(E.postRun=[E.postRun]);E.postRun.length;)y=E.postRun.shift(),mi.unshift(y);var y;lt(mi)}()))}fe>0||(function qi(){if(E.preRun)for("function"==typeof E.preRun&&(E.preRun=[E.preRun]);E.preRun.length;)y=E.preRun.shift(),oi.unshift(y);var y;lt(oi)}(),fe>0)||(E.setStatus?(E.setStatus("Running..."),setTimeout(function(){setTimeout(function(){E.setStatus("")},1),S()},1)):S())}if(Sn=function y(){Me||Jn(),Me||(Sn=y)},E.run=Jn,E.preInit)for("function"==typeof E.preInit&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();function Yn(){}function Mn(y){return(y||Yn).__cache__}function Kn(y,S){var P=Mn(S),$=P[y];return $||(($=Object.create((S||Yn).prototype)).ptr=y,P[y]=$)}Jn(),(Yn.prototype=Object.create(Yn.prototype)).constructor=Yn,Yn.prototype.__class__=Yn,Yn.__cache__={},E.WrapperObject=Yn,E.getCache=Mn,E.wrapPointer=Kn,E.castObject=function sr(y,S){return Kn(y.ptr,S)},E.NULL=Kn(0),E.destroy=function Pn(y){if(!y.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";y.__destroy__(),delete Mn(y.__class__)[y.ptr]},E.compare=function Ha(y,S){return y.ptr===S.ptr},E.getPointer=function ea(y){return y.ptr},E.getClass=function va(y){return y.__class__};var Ve={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Ve.needed){for(var y=0;y=Ve.size?(Te($>0),Ve.needed+=$,dt=E._malloc($),Ve.temps.push(dt)):(dt=Ve.buffer+Ve.pos,Ve.pos+=$),dt},copy:function(y,S,P){switch(P>>>=0,S.BYTES_PER_ELEMENT){case 2:P>>>=1;break;case 4:P>>>=2;break;case 8:P>>>=3}for(var dt=0;dt\n\n')}}function st(Y,nt){var rt=H({images:[],files:[]},nt);G(G([],rt.files,!0),function K(Y){return Y.map(tt)}(rt.images),!0).forEach(function(q){return Y.createFile(q.path,q.data)})}var W={layout:function(Y,nt,rt,q){return void 0===nt&&(nt="svg"),void 0===rt&&(rt="dot"),Y?u(Z,q?.wasmFolder,q?.wasmBinary).then(function(F){var E=new F.Graphviz(void 0!==q?.yInvert&&q?.yInvert,void 0!==q?.nop?q?.nop:0);st(E,q);var ut=E.layout(Y,nt,rt);if(F.destroy(E),!ut)throw new Error(F.Graphviz.prototype.lastError());return ut}):Promise.resolve("")},circo:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"circo",rt)},dot:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"dot",rt)},fdp:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"fdp",rt)},sfdp:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"sfdp",rt)},neato:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"neato",rt)},osage:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"osage",rt)},patchwork:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"patchwork",rt)},twopi:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"twopi",rt)}},et=function(){function Y(nt){this._wasm=nt}return Y.prototype.layout=function(nt,rt,q,F){if(void 0===rt&&(rt="svg"),void 0===q&&(q="dot"),!nt)return"";var E=new this._wasm.Graphviz(F?.yInvert?1:0,F?.nop?F?.nop:0);st(E,F);var ut=E.layout(nt,rt,q);if(this._wasm.destroy(E),!ut)throw new Error(this._wasm.Graphviz.prototype.lastError());return ut},Y.prototype.circo=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"circo",q)},Y.prototype.dot=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"dot",q)},Y.prototype.fdp=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"fdp",q)},Y.prototype.sfdp=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"sfdp",q)},Y.prototype.neato=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"neato",q)},Y.prototype.osage=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"osage",q)},Y.prototype.patchwork=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"patchwork",q)},Y.prototype.twopi=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"twopi",q)},Y}();s.GraphvizSync=et,s.StackElement=g,s.StackParser=C,s.expatVersion=function I(Y,nt){return u(m,Y,nt).then(function(rt){return rt.CExpat.prototype.version()})},s.graphviz=W,s.graphvizSync=function at(Y,nt){return u(Z,Y,nt).then(function(rt){return new et(rt)})},s.graphvizVersion=function j(Y,nt){return u(Z,Y,nt).then(function(rt){return rt.Graphviz.prototype.version()})},s.parse=B,s.wasmFolder=l,Object.defineProperty(s,"__esModule",{value:!0})}(D)},72705:(w,D,s)=>{"use strict";s.r(D),s.d(D,{AdminModule:()=>Wy});var c={};s.r(c),s.d(c,{forceCenter:()=>Td,forceCollide:()=>Ho,forceLink:()=>Qo,forceManyBody:()=>Jo,forceRadial:()=>Qd,forceSimulation:()=>jo,forceX:()=>jd,forceY:()=>Jd});var x={};s.r(x),s.d(x,{dispatch:()=>Ta.Z});var _={};s.r(_),s.d(_,{interval:()=>qd,now:()=>or.zO,timeout:()=>ja.Z,timer:()=>or.HT,timerFlush:()=>or.R8});var m=s(36895),p=s(94364),t=s(94650),d=s(77968),l=s(97392),h=s(61283),f=s(4235),u=s(89383);const g=function(){return{color:"black"}};let C=(()=>{class n{constructor(e){this.sideMenuService=e}ngOnInit(){this.sideMenuService.setAdminItems([])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-page"]],decls:7,vars:5,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","admin-theme"],[1,"page-title","d-flex"],["svgIcon","perun-perun-admin",1,"perun-icon","icon-scale",3,"ngStyle"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.TgZ(2,"h1",1),t._UZ(3,"mat-icon",2),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._UZ(6,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(3),t.Q6J("ngStyle",t.DdM(4,g)),t.xp6(1),t.hij(" ",t.lcZ(5,2,"ADMIN.TITLE")," "))},dependencies:[m.PC,l.Hw,h.A,f.W,u.X$]}),n})();var L=s(71135);let I=(()=>{class n{constructor(){this.navItems=[{cssIcon:"perun-attributes",url:"/admin/attributes",label:"MENU_ITEMS.ADMIN.ATTRIBUTES",style:"admin-btn"},{cssIcon:"perun-user",url:"/admin/users",label:"MENU_ITEMS.ADMIN.USERS",style:"admin-btn"},{cssIcon:"perun-owner-grey",url:"/admin/owners",label:"MENU_ITEMS.ADMIN.OWNERS",style:"admin-btn"},{cssIcon:"perun-service",url:"/admin/services",label:"MENU_ITEMS.ADMIN.SERVICES",style:"admin-btn"},{cssIcon:"perun-preview",url:"/admin/visualizer",label:"MENU_ITEMS.ADMIN.VISUALIZER",style:"admin-btn"},{cssIcon:"perun-external-sources",url:"/admin/ext_sources",label:"MENU_ITEMS.ADMIN.EXT_SOURCES",style:"admin-btn"},{cssIcon:"perun-audit-log",url:"/admin/audit_log",label:"MENU_ITEMS.ADMIN.AUDIT_LOG",style:"admin-btn"},{cssIcon:"perun-consent-hubs",url:"/admin/consent_hubs",label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",style:"admin-btn"},{cssIcon:"perun-searcher",url:"/admin/searcher",label:"MENU_ITEMS.ADMIN.SEARCHER",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.navItems)("size","small"))},dependencies:[L.L]}),n})();var B=s(95017),M=s(65412),R=s(30671),Z=s(81591),H=s(61744),G=s(4859),tt=s(51572),K=s(98380);function st(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function j(n,r){1&n&&t._UZ(0,"th",16)}function W(n,r){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function et(n,r){1&n&&t._UZ(0,"tr",18)}function at(n,r){1&n&&t._UZ(0,"tr",19)}function Y(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,j,1,0,"th",11),t.YNc(10,W,2,1,"td",12),t.BQk(),t.YNc(11,et,1,0,"tr",13),t.YNc(12,at,1,0,"tr",14),t.qZA(),t.TgZ(13,"perun-web-apps-alert",15),t._uU(14),t.ALo(15,"translate"),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE1")," "),t.xp6(3),t.hij(" ",t.lcZ(6,8,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE2")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.hij(" ",t.lcZ(15,10,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.WARNING")," ")}}let nt=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=v,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new R.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=[];for(const i of this.data.attributes)e.push(i.id);this.attributesManager.deleteAttributeDefinitions(e).subscribe(()=>{this.translate.get("DIALOGS.DELETE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-attribute-definition-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","","data-cy","confirm-delete-attr-definition-button",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",1,"mt-3"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,st,1,0,"mat-spinner",1),t.YNc(5,Y,16,12,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},dependencies:[m.O5,G.lW,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,M.uh,M.xY,M.H8,tt.Ou,K.w,u.X$]}),n})();var rt=s(24006),q=s(78372),F=s(63900),E=s(61135),ut=s(69751),ft=s(38421),Dt=s(75797),St=s(60515),Qt=s(25403),pe=s(63269);function wt(...n){const r=(0,pe.jO)(n),e=(0,Dt.k)(n);return e.length?new ut.y(i=>{let a=e.map(()=>[]),o=e.map(()=>!1);i.add(()=>{a=o=null});for(let v=0;!i.closed&&v{if(a[v].push(T),a.every(N=>N.length)){const N=a.map(U=>U.shift());i.next(r?r(...N):N),a.some((U,J)=>!U.length&&o[J])&&i.complete()}},()=>{o[v]=!0,!a[v].length&&i.complete()}));return()=>{a=o=null}}):St.E}var yt=s(39646),Nt=s(19516),zt=s(3238),de=s(39349),ie=s(59549),Ot=s(284),te=s(84385),jt=s(3848),se=s(23123);function At(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.ALo(2,"displayedRole"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e.roleName),t.xp6(1),t.hij(" ",t.lcZ(2,2,e)," ")}}function Ht(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}let Zt=(()=>{class n{constructor(e){this.attrRightsService=e,this.policyRemoved=new t.vpe,this.roles=this.attrRightsService.getRoles()}ngOnInit(){this.selectedRole=new E.X(this.policy.role),this.objects=this.selectedRole.pipe((0,F.w)(e=>this.attrRightsService.getObjects(e)))}changeRole(e){this.selectedRole.next(e.value),this.policy.object="None"}remove(){this.policyRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-item"]],inputs:{policy:"policy"},outputs:{policyRemoved:"policyRemoved"},decls:14,vars:14,consts:[[1,"flex-row"],[1,"grow-item"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","placeholder","ngModelChange"],["color","warn","mat-icon-button","",1,"close-button",3,"click"],["inline","true"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-select",2),t.NdJ("ngModelChange",function(o){return i.policy.role=o})("selectionChange",function(o){return i.changeRole(o)}),t.ALo(3,"translate"),t.YNc(4,At,3,4,"mat-option",3),t.ALo(5,"async"),t.qZA()(),t.TgZ(6,"mat-form-field")(7,"mat-select",4),t.NdJ("ngModelChange",function(o){return i.policy.object=o}),t.ALo(8,"translate"),t.YNc(9,Ht,2,2,"mat-option",3),t.ALo(10,"async"),t.qZA()(),t.TgZ(11,"button",5),t.NdJ("click",function(){return i.remove()}),t.TgZ(12,"mat-icon",6),t._uU(13,"remove_circle"),t.qZA()()()),2&e&&(t.xp6(2),t.s9C("placeholder",t.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ROLE")),t.Q6J("ngModel",i.policy.role),t.xp6(2),t.Q6J("ngForOf",t.lcZ(5,8,i.roles)),t.xp6(3),t.s9C("placeholder",t.lcZ(8,10,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ENTITY")),t.Q6J("ngModel",i.policy.object),t.xp6(2),t.Q6J("ngForOf",t.lcZ(10,12,i.objects)))},dependencies:[m.sg,rt.JJ,rt.On,l.Hw,G.lW,ie.KE,zt.ey,te.gD,m.Ov,u.X$,se.i],styles:[".flex-row[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;background:white;border-radius:1em;padding:1em 1em 0}.grow-item[_ngcontent-%COMP%]{flex-grow:2;margin:0 1em}.close-button[_ngcontent-%COMP%]{position:absolute;font-size:1.3em;top:-15px;right:-15px;z-index:100}"]}),n})();function Kt(n,r){1&n&&(t.TgZ(0,"div",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.AND")," "))}function xe(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-attribute-rights-item",7),t.NdJ("policyRemoved",function(){const o=t.CHM(e).index,v=t.oxw(2);return t.KtG(v.removePolicy(o))}),t.qZA(),t.YNc(2,Kt,3,3,"div",8),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw(2);t.xp6(1),t.Q6J("policy",e),t.xp6(1),t.Q6J("ngIf",i!==a.collection.policies.length-1)}}function Te(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2),t.YNc(2,xe,3,2,"div",3),t.qZA(),t.TgZ(3,"div",4)(4,"button",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeCollection())}),t.TgZ(5,"mat-icon"),t._uU(6,"delete"),t.qZA()(),t.TgZ(7,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addPolicy())}),t.TgZ(8,"mat-icon"),t._uU(9,"add_circle"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.collection.policies)}}let Le=(()=>{class n{constructor(){this.collectionRemoved=new t.vpe}addPolicy(){this.collection.policies.push({id:-1,role:null,object:null,policyCollectionId:this.collection.id})}removePolicy(e){this.collection.policies.splice(e,1),0===this.collection.policies.length&&this.removeCollection()}removeCollection(){this.collectionRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-collection"]],inputs:{collection:"collection"},outputs:{collectionRemoved:"collectionRemoved"},decls:1,vars:1,consts:[["class","collection",4,"ngIf"],[1,"collection"],[1,"column","role-selection"],[4,"ngFor","ngForOf"],[1,"column","controls"],["mat-icon-button","",3,"click"],["color","accent","mat-icon-button","",3,"click"],[3,"policy","policyRemoved"],["class","divider",4,"ngIf"],[1,"divider"]],template:function(e,i){1&e&&t.YNc(0,Te,10,1,"div",0),2&e&&t.Q6J("ngIf",i.collection)},dependencies:[m.sg,m.O5,l.Hw,G.lW,Zt,u.X$],styles:[".collection[_ngcontent-%COMP%]{background-color:#0000001a;padding:1em;border-radius:1em;margin-top:1em;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:1em}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1em}.role-selection[_ngcontent-%COMP%]{flex-grow:2}.controls[_ngcontent-%COMP%]{align-items:flex-end;justify-content:center}.divider[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:1em}"]}),n})();function Oe(n,r){1&n&&(t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.OR")," "))}function Ee(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-attribute-rights-collection",5),t.NdJ("collectionRemoved",function(){const o=t.CHM(e).index,v=t.oxw();return t.KtG(v.removeCollection(o))}),t.qZA(),t.YNc(2,Oe,3,3,"div",6),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw();t.xp6(1),t.Q6J("collection",e.action===a.action?e:null),t.xp6(1),t.Q6J("ngIf",i!==a.lastIndex&&e.action===a.action)}}let He=(()=>{class n{ngOnChanges(){this.lastIndex=this.findLastIndex()}addCollection(){this.collections.push({id:-1,attributeId:this.attributeId,action:this.action,policies:[{id:-1,role:null,object:null,policyCollectionId:-1}]}),this.lastIndex=this.findLastIndex()}removeCollection(e){this.collections.splice(e,1),this.lastIndex=this.findLastIndex()}findLastIndex(){let e=0;for(let i=0;i{class n{constructor(){this.collections=[],this.actionTabs=["READ","WRITE"]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-tab-group"]],inputs:{attDef:"attDef",collections:"collections"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["matTabLabel",""],[3,"attributeId","collections","action"]],template:function(e,i){1&e&&(t.TgZ(0,"mat-tab-group"),t.YNc(1,an,3,3,"mat-tab",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngForOf",i.actionTabs))},dependencies:[m.sg,jt.SP,jt.uD,jt.uX,He,u.X$]}),n})();var ln=s(10266),Tt=s(90455),Wt=s(4765);function ce(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.ALo(1,"translate"),t.TgZ(2,"mat-slide-toggle",2),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.attDef.unique=a)}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&n){const e=r.ngIf,i=t.oxw();t.s9C("matTooltip",t.lcZ(1,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.TOOLTIP")),t.Q6J("matTooltipDisabled",!e.disable),t.xp6(2),t.Q6J("ngModel",i.attDef.unique)("disabled",e.disable),t.xp6(1),t.hij(" ",t.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.UNIQUE")," ")}}const _e=function(n){return{disable:n}};let ee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-unique-toggle"]],inputs:{attDef:"attDef"},decls:2,vars:5,consts:[["class","unique-toggle-container","matTooltipPosition","above",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"unique-toggle-container",3,"matTooltipDisabled","matTooltip"],["color","accent","labelPosition","before",3,"ngModel","disabled","ngModelChange"]],template:function(e,i){1&e&&(t.YNc(0,ce,5,9,"div",0),t.ALo(1,"disableUniqueAttribute")),2&e&&t.Q6J("ngIf",t.VKq(3,_e,t.lcZ(1,1,i.attDef)))},dependencies:[m.O5,rt.JJ,rt.On,ln.gM,Tt.Rr,u.X$,Wt.b],styles:[".unique-toggle-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:1em 0;width:-moz-fit-content;width:fit-content;font-size:1.125rem}"]}),n})(),Ze=(()=>{class n{constructor(){this.readOperation=!1,this.writeOperation=!0,this.readOperationChanged=new t.vpe,this.writeOperationChanged=new t.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-critical-operations-toggles"]],inputs:{readOperation:"readOperation",writeOperation:"writeOperation"},outputs:{readOperationChanged:"readOperationChanged",writeOperationChanged:"writeOperationChanged"},decls:10,vars:11,consts:[["color","accent","labelPosition","before",1,"toggle-font",3,"ngModel","ngModelChange","toggleChange"],["alert_type","info"]],template:function(e,i){1&e&&(t.TgZ(0,"mat-slide-toggle",0),t.NdJ("ngModelChange",function(o){return i.readOperation=o})("toggleChange",function(){return i.readOperationChanged.emit(!i.readOperation)}),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"br"),t.TgZ(4,"mat-slide-toggle",0),t.NdJ("ngModelChange",function(o){return i.writeOperation=o})("toggleChange",function(){return i.writeOperationChanged.emit(!i.writeOperation)}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"perun-web-apps-alert",1),t._uU(8),t.ALo(9,"translate"),t.qZA()),2&e&&(t.Q6J("ngModel",i.readOperation),t.xp6(1),t.hij(" ",t.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_TOGGLE.READ"),"\n"),t.xp6(3),t.Q6J("ngModel",i.writeOperation),t.xp6(1),t.hij(" ",t.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_TOGGLE.WRITE"),"\n"),t.xp6(3),t.hij(" ",t.lcZ(9,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_TOGGLE.INFO"),"\n"))},dependencies:[rt.JJ,rt.On,K.w,Tt.Rr,u.X$],styles:[".toggle-font[_ngcontent-%COMP%]{font-size:1.125rem}"]}),n})(),Ye=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(".")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"attributeTypeClean",type:n,pure:!0}),n})();function Tn(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function oi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Mi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function mi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function gi(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Si(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function qi(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij("",e," ")}}function Fi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Ni(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e)," ")}}function _i(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Qi(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8)(1,"form",9)(2,"mat-form-field"),t._UZ(3,"input",10),t.ALo(4,"translate"),t.YNc(5,oi,3,3,"mat-error",11),t.qZA(),t.TgZ(6,"mat-form-field"),t._UZ(7,"input",12),t.ALo(8,"translate"),t.YNc(9,Mi,3,3,"mat-error",11),t.qZA(),t.TgZ(10,"mat-form-field")(11,"textarea",13),t.ALo(12,"translate"),t._uU(13," "),t.qZA(),t.YNc(14,mi,3,3,"mat-error",11),t.qZA(),t.TgZ(15,"mat-form-field")(16,"mat-select",14),t.ALo(17,"translate"),t.YNc(18,gi,2,2,"mat-option",15),t.qZA(),t.YNc(19,Si,3,3,"mat-error",11),t.qZA(),t.TgZ(20,"mat-form-field")(21,"mat-select",16),t.ALo(22,"translate"),t.YNc(23,qi,2,2,"mat-option",15),t.qZA(),t.YNc(24,Fi,3,3,"mat-error",11),t.qZA(),t.TgZ(25,"mat-form-field")(26,"mat-select",17),t.ALo(27,"translate"),t.YNc(28,Ni,3,4,"mat-option",15),t.qZA(),t.YNc(29,_i,3,3,"mat-error",11),t.qZA()(),t._UZ(30,"perun-web-apps-attribute-unique-toggle",18),t.ALo(31,"async"),t.TgZ(32,"perun-web-apps-attribute-critical-operations-toggles",19),t.NdJ("readOperationChanged",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.finalReadOperations=a)})("writeOperationChanged",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.finalWriteOperations=a)}),t.qZA(),t._UZ(33,"perun-web-apps-attribute-rights-tab-group",20),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,18,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","friendlyName")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,20,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","displayName")),t.xp6(2),t.s9C("placeholder",t.lcZ(12,22,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(2),t.s9C("placeholder",t.lcZ(17,24,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),t.xp6(2),t.Q6J("ngForOf",e.entities),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","entity")),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),t.xp6(2),t.Q6J("ngForOf",e.definitionTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","definitionType")),t.xp6(2),t.s9C("placeholder",t.lcZ(27,28,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),t.xp6(2),t.Q6J("ngForOf",e.valueTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","valueType")),t.xp6(1),t.Q6J("attDef",t.lcZ(31,30,e.attDef)),t.xp6(3),t.Q6J("collections",e.collections)}}let Ri=(()=>{class n{constructor(e,i,a,o,v,T,N){this.dialogRef=e,this.formBuilder=i,this.attributeService=a,this.attributeRightsService=o,this.notificator=v,this.translate=T,this.uniqueAttPipe=N,this.loading=!1,this.attributeControl=this.formBuilder.group({friendlyName:["",rt.kI.required],displayName:["",rt.kI.required],description:["",rt.kI.required],entity:["",rt.kI.required],definitionType:["",rt.kI.required],valueType:["",rt.kI.required]}),this.entities=["facility","resource","group","group_resource","host","member","member_group","member_resource","user","ues","user_facility","vo","entityless"],this.definitionTypes=["def","opt","virt","core"],this.valueTypes=["java.lang.String","java.lang.Integer","java.lang.Boolean","java.util.ArrayList","java.util.LinkedHashMap"],this.attDef=new E.X({id:0,beanName:"",namespace:"",unique:!1}),this.collections=[],this.attributeControl.valueChanges.pipe((0,q.b)(200)).subscribe(U=>{this.setAttribute(U)})}submit(){this.loading=!0,this.attributeService.createAttributeDefinition({attribute:this.attDef.getValue()}).pipe((0,F.w)(e=>(this.attDefCreated=e,wt((0,yt.of)(e.id),(0,yt.of)(this.collections)))),this.attributeRightsService.addAttributeId(),this.attributeRightsService.filterNullInPolicy(),(0,F.w)(e=>this.attributeService.setAttributePolicyCollections({policyCollections:e})),(0,F.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalReadOperations,!1,this.attDefCreated.id,H.oW.READ)),(0,F.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalWriteOperations,!0,this.attDefCreated.id,H.oW.WRITE))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}setAttribute(e){const i={id:0,beanName:"",friendlyName:e.friendlyName,displayName:e.displayName,description:e.description,type:e.valueType,namespace:this.createNamespace(e.entity,e.definitionType)};i.unique=this.attDef.getValue().unique&&!this.uniqueAttPipe.transform(i),this.attDef.next(i)}createNamespace(e,i){return"urn:perun:"+e+":attribute-def:"+i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(rt.QS),t.Y36(H.H8),t.Y36(Z.eE),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(Nt.bY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-create-attribute-definition-dialog"]],features:[t._Bn([Nt.bY])],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","create-attr-definition-button","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"dialog-container",3,"formGroup"],["matInput","","formControlName","friendlyName","data-cy","attribute-friendly-name-input","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","displayName","data-cy","attribute-display-name-input","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","data-cy","attribute-description-input","required","",3,"placeholder"],["formControlName","entity","data-cy","attribute-entity-input","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["formControlName","definitionType","data-cy","attribute-definition-type-input","required","",3,"placeholder"],["formControlName","valueType","data-cy","attribute-value-type-input","required","",3,"placeholder"],[3,"attDef"],[3,"readOperationChanged","writeOperationChanged"],[3,"collections"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Tn,1,0,"mat-spinner",2),t.YNc(5,Qi,34,32,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.submit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading||i.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},dependencies:[m.sg,m.O5,zt.ey,de.IC,ie.TO,ie.KE,Ot.Nt,rt._Y,rt.Fj,rt.JJ,rt.JL,rt.Q7,rt.sg,rt.u,G.lW,M.uh,M.xY,M.H8,te.gD,tt.Ou,be,ee,Ze,m.Ov,u.X$,Ye]}),n})();var fe=s(9244),Sn=s(10036);function ji(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function In(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field",10)(5,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.value=a)}),t.ALo(6,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.IMPORT_ATTRIBUTE.INFO")," "),t.xp6(3),t.Q6J("ngModel",e.value)("placeholder",t.lcZ(6,5,"DIALOGS.IMPORT_ATTRIBUTE.HINT"))}}let gn=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.notificator=i,this.translate=a,this.attributesManager=o,this.attributesRightsService=v,this.value="",this.loading=!1}create(){this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).pipe((0,F.w)(e=>wt((0,yt.of)(e.id),(0,yt.of)(this.attributeData.attributeRights))),this.attributesRightsService.addAttributeId(),(0,F.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.H8),t.Y36(Z.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attribute-import-dialog"]],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ji,1,0,"mat-spinner",2),t.YNc(5,In,7,7,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.dialogRef.close()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.create()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.IMPORT_ATTRIBUTE.TITLE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.IMPORT_ATTRIBUTE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===i.value.trim().length||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.IMPORT_ATTRIBUTE.CREATE")," "))},dependencies:[m.O5,ie.KE,Ot.Nt,rt.Fj,rt.JJ,rt.Q7,rt.On,G.lW,M.uh,M.xY,M.H8,tt.Ou,K.w,u.X$]}),n})();var sn=s(96308),zn=s(36769),li=s(68675),Ln=s(64425),we=s(37084),Bi=s(37433),Nn=s(56709),pn=s(43532),z=s(18750),X=s(9185),lt=s(8231),A=s(14849);function bt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",23)(1,"mat-checkbox",24),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(3);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&n){const e=t.oxw().ngIf,i=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",i.selection.hasValue()&&e.all)("indeterminate",i.selection.hasValue()&&!e.all)}}const Lt=function(n){return{name:n}};function Pt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",25)(1,"mat-checkbox",26),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(3);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,i.selection.isSelected(e)),t.VKq(7,Lt,e[0])))("checked",i.selection.isSelected(e))}}function Gt(n,r){1&n&&(t.ynx(0,20),t.YNc(1,bt,4,7,"th",21),t.YNc(2,Pt,4,9,"td",22),t.BQk())}function Jt(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.KEY")," "))}function Yt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",28)(1,"label")(2,"input",29),t.NdJ("ngModelChange",function(){const o=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.onValueChange(o))})("ngModelChange",function(a){const v=t.CHM(e).$implicit;return t.KtG(v[0]=a)}),t.qZA()()()}if(2&n){const e=r.$implicit;t.xp6(2),t.Q6J("ngModel",e[0])}}function Q(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.VALUE")," "))}function pt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",28)(1,"perun-web-apps-attribute-value",30),t.NdJ("sendEventToParent2",function(){const o=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.onValueChange(o))}),t.qZA()()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("attribute",e[1])}}function mt(n,r){1&n&&t._UZ(0,"tr",31)}function gt(n,r){1&n&&t._UZ(0,"tr",32)}const Ut=function(n){return{all:n}};function Xt(n,r){if(1&n&&(t.TgZ(0,"div",10)(1,"perun-web-apps-table-wrapper",11)(2,"table",12),t.YNc(3,Gt,3,0,"ng-container",13),t.ALo(4,"isAllSelected"),t.ynx(5,14),t.YNc(6,Jt,3,3,"th",15),t.YNc(7,Yt,3,1,"td",16),t.BQk(),t.ynx(8,17),t.YNc(9,Q,3,3,"th",15),t.YNc(10,pt,2,1,"td",16),t.BQk(),t.YNc(11,mt,1,0,"tr",18),t.YNc(12,gt,1,0,"tr",19),t.qZA()()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("pageSizeOptions",e.pageSizeOptions)("dataLength",e.dataSource.filteredData.length)("hideExport",!0)("tableId",e.tableId),t.xp6(1),t.Q6J("dataSource",e.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(11,Ut,t.xi3(4,8,e.dataSource,e.selection.selected.length))),t.xp6(8),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function kt(n,r){1&n&&t._UZ(0,"mat-spinner",33)}function le(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",34),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.NO_KEYS_WARNING")," "))}let O=(()=>{class n{constructor(e,i,a,o,v,T){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=v,this.cd=T,this.switchView=new t.vpe,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new R.by,this.selection=new B.Ov(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=fe.f7}set matSort(e){this.sort=e}ngOnChanges(){this.ngOnInit()}ngOnInit(){this.loading=!0,this.attDef=this.data.attDef,this.attributesManager.getEntitylessKeys(this.attDef.id).subscribe(e=>{this.attributesManager.getEntitylessAttributesByName(`${this.attDef.namespace}:${this.attDef.friendlyName}`).subscribe(i=>{let a=0;this.records=[];for(const o of e)this.records.push([o,i[a]]),a++;this.dataSource=new R.by(this.records),this.setDataSource(),this.loading=!1})})}setDataSource(){!this.child||!this.child.paginator||this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}onSave(){this.updateMapAttributes();for(const e of this.selection.selected)this.attributesManager.setEntitylessAttribute({key:e[0],attribute:e[1]}).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE_SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.ngOnInit()})});this.selection.clear(),this.isAddButtonDisabled=!1,this.cd.detectChanges()}onRemove(){for(const e of this.selection.selected)this.attributesManager.removeEntitylessAttribute(e[0],e[1].id).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE_SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.ngOnInit()})});this.ngOnInit(),this.selection.clear(),this.isAddButtonDisabled=!1,this.cd.detectChanges()}onAdd(){const e=["",this.attDef];e[1].value=void 0,this.records.unshift(e),this.dataSource.data=this.records,this.setDataSource(),this.selection.clear(),this.selection.select(e),this.isAddButtonDisabled=!0,this.cd.detectChanges()}onCancel(){this.dialogRef.close(!1)}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(e=>this.selection.select(e))}onValueChange(e){this.selection.select(e)}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}ngAfterViewInit(){this.children.changes.subscribe(e=>{this.child=e.first,this.dataSource.paginator=this.child.paginator}),this.setDataSource()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.H8),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(sn.YE,7),t.Gf(Bi.Mw,5),t.Gf(fe.l9,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.matSort=a.first),t.iGM(a=t.CRH())&&(i.items=a),t.iGM(a=t.CRH())&&(i.children=a)}},inputs:{attDef:"attDef",tableId:"tableId"},outputs:{switchView:"switchView"},features:[t.TTD],decls:19,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-actions","",1,"mt-3"],["mat-stroked-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["color","accent","matTooltip","save or remove new attribute first","mat-flat-button","","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-dialog-content","",1,"mt-3",3,"hidden"],["class","card mt-3",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn","class","mt-3",4,"ngIf"],[1,"card","mt-3"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortActive","key","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","key"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell",""],["mat-cell",""],["matInput","","placeholder","New key",1,"mt-2",3,"ngModel","ngModelChange"],[3,"attribute","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],[1,"ml-auto","mr-auto"],["alert_type","warn",1,"mt-3"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"button",2),t.NdJ("click",function(){return i.switchView.emit()}),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"div",6),t.YNc(16,Xt,13,13,"div",7),t.YNc(17,kt,1,0,"mat-spinner",8),t.YNc(18,le,3,3,"perun-web-apps-alert",9),t.qZA()),2&e&&(t.xp6(1),t.Oqu(i.attDef.namespace+":"+i.attDef.friendlyName),t.xp6(3),t.hij(" ",t.lcZ(5,11,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(8,13,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE")," "),t.xp6(2),t.Q6J("disabled",i.isAddButtonDisabled)("matTooltipDisabled",!i.isAddButtonDisabled),t.xp6(1),t.hij(" ",t.lcZ(11,15,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.ADD")," "),t.xp6(3),t.hij(" ",t.lcZ(14,17,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE")," "),t.xp6(2),t.Q6J("hidden",i.loading),t.xp6(1),t.Q6J("ngIf",i.records&&i.records.length),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",0===i.records.length))},dependencies:[m.O5,Ot.Nt,rt.Fj,rt.JJ,rt.On,G.lW,sn.YE,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,Nn.oG,M.uh,M.xY,M.H8,tt.Ou,ln.gM,K.w,pn.M,z.l,u.X$,X.I,lt.G,A.r],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),n})();var oe=s(60205);function Se(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function Ce(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Ke(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}const Pe=function(){return["id","name","enabled","script"]};function Be(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",11)(1,"form",12)(2,"mat-form-field"),t._UZ(3,"input",13),t.ALo(4,"translate"),t.YNc(5,Ce,3,3,"mat-error",1),t.qZA(),t.TgZ(6,"mat-form-field")(7,"textarea",14),t.ALo(8,"translate"),t._uU(9," "),t.qZA(),t.YNc(10,Ke,3,3,"mat-error",1),t.qZA()(),t.TgZ(11,"label",15),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",16),t._uU(15),t.TgZ(16,"mat-icon",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.copyUrn())}),t.ALo(17,"translate"),t._uU(18,"content_copy"),t.qZA()(),t._UZ(19,"perun-web-apps-attribute-unique-toggle",18),t.TgZ(20,"perun-web-apps-attribute-critical-operations-toggles",19),t.NdJ("readOperationChanged",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.finalReadOperations=a)})("writeOperationChanged",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.finalWriteOperations=a)}),t.qZA(),t._UZ(21,"perun-web-apps-attribute-rights-tab-group",20),t.ALo(22,"async"),t.TgZ(23,"mat-accordion")(24,"mat-expansion-panel",21)(25,"mat-expansion-panel-header")(26,"mat-panel-title"),t._uU(27),t.ALo(28,"translate"),t.qZA()(),t._UZ(29,"app-services-list",22),t.ALo(30,"async"),t.qZA()()()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,17,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","name")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,19,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(2),t.hij(" ",t.lcZ(13,21,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.URN")," "),t.xp6(3),t.hij(" ",e.urn," "),t.xp6(1),t.s9C("matTooltip",t.lcZ(17,23,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.URN_TOOLTIP")),t.xp6(3),t.Q6J("attDef",e.attDef),t.xp6(1),t.Q6J("readOperation",e.initReadOperations)("writeOperation",e.initWriteOperations),t.xp6(1),t.Q6J("attDef",e.attDef)("collections",t.lcZ(22,25,e.collections$)),t.xp6(6),t.hij(" ",t.lcZ(28,27,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")," "),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(31,Pe))("services",t.lcZ(30,29,e.services$))}}function ue(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.switchShowKeys())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SHOW_KEYS")," "))}function me(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"h1",2),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Se,1,0,"mat-spinner",3),t.YNc(5,Be,31,32,"div",4),t.TgZ(6,"div",5),t.YNc(7,ue,3,3,"button",6),t.TgZ(8,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCopy())}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(15),t.ALo(16,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,8,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(2),t.Q6J("ngIf","entityless"===(null==e.attDef?null:e.attDef.entity)),t.xp6(2),t.hij(" ",t.lcZ(10,10,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FOR_IMPORT")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(16,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function Fe(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"app-entityless-attribute-keys-list",24),t.NdJ("switchView",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.switchShowKeys())}),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("attDef",e.attDef)("tableId",e.tableId)}}let fn=(()=>{class n{constructor(e,i,a,o,v,T,N,U,J){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.clipboard=v,this.attributesManager=T,this.serviceService=N,this.formBuilder=U,this.attributeRightsService=J,this.tableId=Sn.Wv,this.loading=!1,this.showKeys=!1,this.attDef=this.data.attDef,this.attributeControl=this.formBuilder.group({name:[this.attDef.displayName,rt.kI.required],description:[this.attDef.description,rt.kI.required]}),this.urn=`${this.attDef.namespace}:${this.attDef.friendlyName}`,this.collections$=new E.X([]),this.services$=this.serviceService.getServicesByAttributeDefinition(this.attDef.id).pipe((0,li.O)([]))}ngOnInit(){this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attributesManager.getAttributeRules(this.attDef.id).subscribe(e=>{this.collections$=new E.X(e.attributePolicyCollections),this.initReadOperations=e.criticalActions.includes("READ"),this.initWriteOperations=e.criticalActions.includes("WRITE")})}onSubmit(){this.loading=!0,this.updateAttribute(),this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).pipe((0,F.w)(()=>(0,yt.of)(this.collections$.getValue())),this.attributeRightsService.filterNullInPolicy(),(0,F.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e})),(0,F.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalReadOperations,this.initReadOperations,this.attDef.id,H.oW.READ)),(0,F.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalWriteOperations,this.initWriteOperations,this.attDef.id,H.oW.WRITE))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}switchShowKeys(){this.showKeys=!this.showKeys,this.dialogRef.updateSize(this.showKeys?"800px":"700px")}copyUrn(){this.clipboard.copy(this.urn)?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}onCopy(){this.updateAttribute();const e={attributeDefinition:this.attDef,attributeRights:this.collections$.getValue()};this.clipboard.copy(JSON.stringify(e))?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}updateAttribute(){this.attDef.displayName=this.attributeControl.get("name").value,this.attDef.description=this.attributeControl.get("description").value}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(Ln.TU),t.Y36(H.H8),t.Y36(H.KK),t.Y36(rt.QS),t.Y36(Z.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-edit-attribute-definition-dialog"]],decls:3,vars:2,consts:[[1,"admin-theme"],[4,"ngIf"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"fields-container",3,"formGroup"],["matInput","","data-cy","display-name-input","formControlName","name","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","required","",3,"placeholder"],[1,"urn-name"],[1,"urn-row"],["matSuffix","",1,"copy-urn",3,"matTooltip","click"],[3,"attDef"],[3,"readOperation","writeOperation","readOperationChanged","writeOperationChanged"],[3,"attDef","collections"],[1,"mt-4","mb-4"],[3,"disableRouting","displayedColumns","services"],["mat-flat-button","",3,"click"],[3,"attDef","tableId","switchView"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,me,17,16,"div",1),t.YNc(2,Fe,2,2,"div",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",!i.showKeys),t.xp6(1),t.Q6J("ngIf",i.showKeys))},dependencies:[m.O5,de.IC,ie.TO,ie.KE,ie.R9,Ot.Nt,rt._Y,rt.Fj,rt.JJ,rt.JL,rt.Q7,rt.sg,rt.u,l.Hw,we.pp,we.ib,we.yz,we.yK,G.lW,M.uh,M.xY,M.H8,tt.Ou,ln.gM,be,ee,Ze,O,oe.Q,m.Ov,u.X$],styles:[".fields-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.urn-name[_ngcontent-%COMP%]{color:#0000008a;margin-bottom:0;font-size:small}.urn-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.copy-urn[_ngcontent-%COMP%]{cursor:pointer}"],data:{animation:[zn.SG,zn.GH,zn.Ls]}}),n})();var cn=s(70844),$e=s(64597);let Qe=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(":")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"nameSpaceToDef",type:n,pure:!0}),n})();function wn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",21)(1,"mat-checkbox",22),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&n){const e=t.oxw().ngIf,i=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",i.selection.hasValue()&&e.all)("indeterminate",i.selection.hasValue()&&!e.all)}}const Bn=function(n){return{name:n}};function Zn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",23)(1,"mat-checkbox",24),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(2);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"multiWordDataCy"),t.ALo(3,"translate"),t.ALo(4,"checkboxLabel"),t.ALo(5,"consentRelatedAttribute"),t.ALo(6,"translate"),t.ALo(7,"consentRelatedAttribute"),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q2q("data-cy","",t.lcZ(2,6,e.displayName),"-checkbox"),t.Q6J("aria-label",t.xi3(3,8,t.lcZ(4,11,i.selection.isSelected(e)),t.VKq(23,Bn,e.displayName)))("checked",i.selection.isSelected(e))("disabled",t.Dn7(5,13,e.namespace,i.serviceEnabled,i.consentRequired))("matTooltip",t.lcZ(6,17,"ADMIN.ATTRIBUTES.CONSENT_RELATED_DISABLED"))("matTooltipDisabled",!t.Dn7(7,19,e.namespace,i.serviceEnabled,i.consentRequired))}}function Hn(n,r){1&n&&(t.ynx(0,18),t.YNc(1,wn,4,7,"th",19),t.YNc(2,Zn,8,25,"td",20),t.BQk())}function Pi(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ID")," "))}function he(n,r){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function je(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_FRIENDLY_NAME")," "))}function vn(n,r){if(1&n&&(t.TgZ(0,"td",27),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&n){const e=r.$implicit;t.Q2q("data-cy","",t.lcZ(1,2,e.friendlyName),"-friendly-name"),t.xp6(2),t.hij(" ",e.friendlyName," ")}}function Cn(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DISPLAY_NAME")," "))}function $n(n,r){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.displayName," ")}}function ci(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ENTITY")," "))}function vi(n,r){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.entity)}}function Qn(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DEF")," "))}function Zi(n,r){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.ALo(2,"nameSpaceToDef"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.namespace))}}function jn(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_TYPE")," "))}function bi(n,r){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.type))}}function mn(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_UNIQUE")," "))}function un(n,r){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.unique)}}function ui(n,r){1&n&&t._UZ(0,"tr",28)}function Ji(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"tr",29),t.NdJ("click",function(){const o=t.CHM(e).$implicit,v=t.oxw();return t.KtG(v.onRowClick(o))}),t.qZA()}if(2&n){const e=t.oxw();t.ekj("cursor-pointer",!e.disableRouting)}}function hi(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.NO_ATTRIBUTES"),"\n"))}function Hi(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const On=function(n){return{all:n}};let di=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.authResolver=i,this.tableCheckbox=a,this.consentRelatedPipe=o,this.selection=new B.Ov(!0,[]),this.displayedColumns=["select","id","friendlyName","displayName","entity","namespace","type","unique"],this.disableRouting=!1,this.consentRequired=!1,this.serviceEnabled=!1,this.refreshEvent=new t.vpe,this.pageSizeOptions=fe.f7,this.canBeSelected=v=>!this.consentRelatedPipe.transform(v.namespace,this.serviceEnabled,this.consentRequired)}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"displayName":return e.displayName;case"entity":return e.entity;case"namespace":if(e.namespace){const a=e.namespace;return a.substring(a.lastIndexOf(":")+1,a.length)}return"";case"type":if(e.type){const a=e.type;return a.substring(a.lastIndexOf(".")+1,a.length)}return"";case"unique":return e.unique?"true":"false";default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new R.by(this.definitions),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){(0,fe.O6)((0,fe.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=i+this.dataSource.paginator.pageSize;(0,fe.O6)((0,fe.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,a),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,i)=>(0,fe.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,fe.pR)(e,i,n.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}onRowClick(e){if(!this.disableRouting){const i=(0,fe.kZ)();i.width="700px",i.data={attDef:e},this.dialog.open(fn,i).afterClosed().subscribe(o=>{o&&(this.selection.clear(),this.refreshEvent.emit())})}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.UA),t.Y36(cn.u))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attr-def-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(fe.l9,7),t.Gf(sn.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{definitions:"definitions",selection:"selection",displayedColumns:"displayedColumns",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting",consentRequired:"consentRequired",serviceEnabled:"serviceEnabled"},outputs:{refreshEvent:"refreshEvent"},features:[t.TTD],decls:31,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","displayName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["matColumnDef","entity"],["matColumnDef","namespace"],["matColumnDef","type"],["matColumnDef","unique"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","left","color","primary",3,"aria-label","checked","disabled","matTooltip","matTooltipDisabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)})("exportAllData",function(o){return i.exportAllData(o)}),t.TgZ(2,"div",2)(3,"table",3),t.YNc(4,Hn,3,0,"ng-container",4),t.ALo(5,"isAllSelected"),t.ynx(6,5),t.YNc(7,Pi,3,3,"th",6),t.YNc(8,he,2,1,"td",7),t.BQk(),t.ynx(9,8),t.YNc(10,je,3,3,"th",6),t.YNc(11,vn,3,4,"td",9),t.BQk(),t.ynx(12,10),t.YNc(13,Cn,3,3,"th",6),t.YNc(14,$n,2,1,"td",9),t.BQk(),t.ynx(15,11),t.YNc(16,ci,3,3,"th",6),t.YNc(17,vi,2,1,"td",9),t.BQk(),t.ynx(18,12),t.YNc(19,Qn,3,3,"th",6),t.YNc(20,Zi,3,3,"td",9),t.BQk(),t.ynx(21,13),t.YNc(22,jn,3,3,"th",6),t.YNc(23,bi,3,3,"td",9),t.BQk(),t.ynx(24,14),t.YNc(25,mn,3,3,"th",6),t.YNc(26,un,2,1,"td",9),t.BQk(),t.YNc(27,ui,1,0,"tr",15),t.YNc(28,Ji,1,2,"tr",16),t.qZA()()()(),t.YNc(29,hi,3,3,"perun-web-apps-alert",17),t.YNc(30,Hi,3,3,"perun-web-apps-alert",17)),2&e&&(t.Q6J("hidden",0===i.dataSource.filteredData.length||0===i.definitions.length),t.xp6(1),t.Q6J("pageSizeOptions",i.pageSizeOptions)("dataLength",i.dataSource.filteredData.length)("tableId",i.tableId),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(14,On,t.Dn7(5,10,i.dataSource,i.selection.selected.length,i.canBeSelected))),t.xp6(23),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.definitions.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.definitions.length))},dependencies:[m.O5,sn.YE,sn.nU,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,Nn.oG,ln.gM,K.w,z.l,u.X$,$e.R,X.I,lt.G,A.r,Ye,Qe,cn.u],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();var Ue=s(96214),Vn=s(7434);function nn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.CREATE")," "))}function Ti(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onImport())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.IMPORT")," "))}function kn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDelete())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.ATTRIBUTES.DELETE")," ")}}function b(n,r){1&n&&t._UZ(0,"mat-spinner",11)}function k(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",12),t.NdJ("refreshEvent",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshTable())}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("disableRouting",!e.authResolver.isPerunAdminOrObserver())("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let V=(()=>{class n{constructor(e,i,a){this.dialog=e,this.attributesManager=i,this.authResolver=a,this.attrDefinitions=[],this.selected=new B.Ov(!0,[]),this.filterValue="",this.tableId=Sn.uM}ngOnInit(){this.refreshTable()}onCreate(){const e=(0,fe.kZ)();e.width="650px",this.dialog.open(Ri,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,fe.kZ)();e.width="450px",e.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(nt,e).afterClosed().subscribe(a=>{a&&(this.refreshTable(),this.selected.clear())})}refreshTable(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}applyFilter(e){this.filterValue=e}onImport(){const e=(0,fe.kZ)();e.width="700px",this.dialog.open(gn,e).afterClosed().subscribe(a=>{!0===a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(H.H8),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-attributes"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","data-cy","new-attr-definition-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","data-cy","delete-attr-definition-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent",4,"ngIf"],["color","accent","data-cy","new-attr-definition-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","delete-attr-definition-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,nn,3,3,"button",2),t.YNc(6,Ti,3,3,"button",3),t.YNc(7,kn,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,b,1,0,"mat-spinner",6),t.YNc(10,k,1,5,"app-attr-def-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"ADMIN.ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.ATTRIBUTES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,di,Ue.t,Vn.L,u.X$]}),n})(),it=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-visualizer"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:1,vars:0,template:function(e,i){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[h.A]}),n})();var ht=s(9921);let xt=(()=>{class n{constructor(e){this.attributesManager=e}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(e=>{const i=e.graph.replace("\\t","").replace("\\n","").replace("\\","");(0,ht.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(i)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-attr-modules"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:4,vars:3,consts:[[1,"page-subtitle"],["id","dependenciesGraph",1,"card"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.VISUALIZER.ATTR_DEPENDENCIES.TITLE"),"\n"))},dependencies:[u.X$],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),n})(),Mt=(()=>{class n{constructor(){this.items=[{cssIcon:"perun-module-dependencies",url:"attrDependencies",label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",style:"admin-btn"},{cssIcon:"perun-user-destination-relationship",url:"userDestinationRelationship",label:"MENU_ITEMS.VISUALIZER.USER_DESTINATION",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.items)("size","small"))},dependencies:[L.L]}),n})();var Bt=s(71884),ae=s(18505),Ae=s(47957),We=s(71948),qe=s(86257);function Ie(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_USER"))}function Me(n,r){1&n&&t._UZ(0,"mat-spinner",17),2&n&&t.Q6J("diameter",20)("strokeWidth",2)}function _n(n,r){if(1&n&&(t.TgZ(0,"mat-option",18)(1,"span",19),t._uU(2),t.qZA(),t._uU(3),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e.firstName+" "+e.lastName),t.xp6(2),t.hij("#",e.id,""),t.xp6(1),t.AsE(" ",e.firstName," ",e.lastName," ")}}function Jn(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_DESTINATION"))}function tr(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_SERVICE"))}function xi(n,r){if(1&n&&(t.TgZ(0,"mat-radio-button",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}let Yn=(()=>{class n{constructor(e,i,a,o,v,T){this.usersService=e,this.translate=i,this.facilityManager=a,this.serviceService=o,this.router=v,this.notificator=T,this.searchField=new rt.p4,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe((0,q.b)(400),(0,Bt.x)(),(0,ae.b)(()=>this.loading=!0),(0,F.w)(e=>this.usersService.findUsers(e)),(0,ae.b)(()=>this.loading=!1)),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SELECT_NO_SERVICE").subscribe(e=>{this.noServiceText=e,this.availableServices.push(this.noServiceText)})}validateName(e){""!==this.searchField.value?this.usersService.findUsers(this.searchField.value).subscribe(i=>{for(const a of i){if((a.firstName+" "+a.lastName).toLowerCase()===this.searchField.value.toLowerCase()){this.selectedUser=a,e.selected.completed=!0,e.next();break}this.selectedUser=null}this.selectedUser||this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_NAME").subscribe(a=>{this.notificator.showError(a)})}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_NAME").subscribe(i=>{this.notificator.showError(i)})}validateDestination(e){""!==this.destination?(this.availableServices=[],this.availableServices.push(this.noServiceText),this.chosenService="",this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(i=>{if(0!==i.length){e.selected.completed=!0,e.next();for(const a of i)this.serviceService.getAllRichDestinationsForFacility(a.id).subscribe(o=>{for(const v of o)v.destination===this.destination&&(this.availableServices.includes(v.service.name)||this.availableServices.push(v.service.name))})}else this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_DESTINATION").subscribe(a=>{this.notificator.showError(a)})})):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_DESTINATION").subscribe(i=>{this.notificator.showError(i)})}getGraph(){""!==this.chosenService?this.router.navigate(["admin/visualizer/userDestinationRelationship/graph"],this.chosenService===this.noServiceText?{queryParams:{user:this.selectedUser.id,destination:this.destination,service:"noService"},queryParamsHandling:"merge"}:{queryParams:{user:this.selectedUser.id,destination:this.destination,service:this.chosenService},queryParamsHandling:"merge"}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NOT_CHOSEN_SERVICE").subscribe(e=>{this.notificator.showError(e)})}notCompleted(e){e.selected.completed=!1}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.Fv),t.Y36(u.sK),t.Y36(H.IQ),t.Y36(H.KK),t.Y36(p.F0),t.Y36(Z.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-relationship"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:46,vars:36,consts:[[1,"p-3","card","settings-card","col-12","col-xl-5"],[1,"page-subtitle"],["linear",""],["stepper",""],["completed","false"],["matStepLabel",""],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keydown.enter","ngModelChange"],["matSuffix","",3,"diameter","strokeWidth",4,"ngIf"],["align","start"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mt-2",3,"click"],["matInput","","type","text",3,"placeholder","ngModel","keydown.enter","ngModelChange"],["mat-stroked-button","","matStepperPrevious","",1,"mt-2"],[1,"mb-2",3,"ngModel","ngModelChange"],["class","flex-column d-flex","color","primary",3,"value",4,"ngFor","ngForOf"],["matSuffix","",3,"diameter","strokeWidth"],[3,"value"],[1,"text-muted"],["color","primary",1,"flex-column","d-flex",3,"value"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-vertical-stepper",2,3)(6,"mat-step",4),t.YNc(7,Ie,2,3,"ng-template",5),t.TgZ(8,"mat-form-field",6)(9,"input",7),t.NdJ("keydown.enter",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateName(v))})("ngModelChange",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.notCompleted(v))}),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Me,1,2,"mat-spinner",8),t.TgZ(12,"mat-hint",9),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-autocomplete",null,10),t.YNc(17,_n,4,4,"mat-option",11),t.ALo(18,"async"),t.qZA()(),t.TgZ(19,"div")(20,"button",12),t.NdJ("click",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateName(v))}),t._uU(21),t.ALo(22,"translate"),t.qZA()()(),t.TgZ(23,"mat-step",4),t.YNc(24,Jn,2,3,"ng-template",5),t.TgZ(25,"mat-form-field",6)(26,"input",13),t.NdJ("keydown.enter",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateDestination(v))})("ngModelChange",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.notCompleted(v))})("ngModelChange",function(v){return i.destination=v}),t.ALo(27,"translate"),t.qZA()(),t.TgZ(28,"div")(29,"button",14),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"button",12),t.NdJ("click",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateDestination(v))}),t._uU(33),t.ALo(34,"translate"),t.qZA()()(),t.TgZ(35,"mat-step"),t.YNc(36,tr,2,3,"ng-template",5),t.TgZ(37,"mat-radio-group",15),t.NdJ("ngModelChange",function(v){return i.chosenService=v}),t.YNc(38,xi,2,2,"mat-radio-button",16),t.qZA(),t.TgZ(39,"div")(40,"button",14),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"button",12),t.NdJ("click",function(){return i.getGraph()}),t._uU(44),t.ALo(45,"translate"),t.qZA()()()()()}if(2&e){const a=t.MAs(16);t.xp6(2),t.hij(" ",t.lcZ(3,16,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE")," "),t.xp6(7),t.s9C("placeholder",t.lcZ(10,18,"ADMIN.VISUALIZER.USER_DESTINATION.USER_EXAMPLE")),t.Q6J("formControl",i.searchField)("matAutocomplete",a),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(2),t.Oqu(t.lcZ(14,20,"ADMIN.VISUALIZER.USER_DESTINATION.USER_HINT")),t.xp6(4),t.Q6J("ngForOf",t.lcZ(18,22,i.users)),t.xp6(4),t.hij(" ",t.lcZ(22,24,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(5),t.s9C("placeholder",t.lcZ(27,26,"ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION_EXAMPLE")),t.Q6J("ngModel",i.destination),t.xp6(4),t.hij(" ",t.lcZ(31,28,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(34,30,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(4),t.Q6J("ngModel",i.chosenService),t.xp6(1),t.Q6J("ngForOf",i.availableServices),t.xp6(3),t.hij(" ",t.lcZ(42,32,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(45,34,"ADMIN.VISUALIZER.USER_DESTINATION.SUBMIT_BUTTON")," ")}},dependencies:[m.sg,m.O5,Ae.XC,Ae.ZL,zt.ey,ie.KE,ie.bx,ie.R9,Ot.Nt,rt.Fj,rt.JJ,rt.oH,rt.On,G.lW,tt.Ou,We.VQ,We.U0,qe.C0,qe.VY,qe.Vq,qe.fd,m.Ov,u.X$]}),n})();function Mn(n,r,e){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+r)/6,(n._y0+4*n._y1+e)/6)}function Kn(n){this._context=n}function Pn(n,r){this._basis=new Kn(n),this._beta=r}Kn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Mn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,r){switch(n=+n,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Mn(this,n,r)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=r}},Pn.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,r=this._y,e=n.length-1;if(e>0)for(var N,i=n[0],a=r[0],o=n[e]-i,v=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(N=T/e)*o),this._beta*r[T]+(1-this._beta)*(a+N*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const Ha=function n(r){function e(i){return 1===r?new Kn(i):new Pn(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var ea=s(77579),va=s(70655),Ve=s(37340);function Cr(){}function Vi(n){return null==n?Cr:function(){return this.querySelector(n)}}function y(){return[]}function S(n){return null==n?y:function(){return this.querySelectorAll(n)}}function $(n){return function(){return this.matches(n)}}function vt(n){return new Array(n.length)}function Rt(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function tn(n,r,e,i,a,o){for(var T,v=0,N=r.length,U=o.length;vr?1:n>=r?0:NaN}Rt.prototype={constructor:Rt,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,r){return this._parent.insertBefore(n,r)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var Ya="http://www.w3.org/1999/xhtml";const Hs={svg:"http://www.w3.org/2000/svg",xhtml:Ya,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xa(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Hs.hasOwnProperty(r)?{space:Hs[r],local:n}:n}function Lc(n){return function(){this.removeAttribute(n)}}function kc(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Ic(n,r){return function(){this.setAttribute(n,r)}}function Oc(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Mc(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Nc(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function Ys(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Fc(n){return function(){this.style.removeProperty(n)}}function Rc(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Bc(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function Mr(n,r){return n.style.getPropertyValue(r)||Ys(n).getComputedStyle(n,null).getPropertyValue(r)}function Vc(n){return function(){delete this[n]}}function Gc(n,r){return function(){this[n]=r}}function Uc(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Ws(n){return n.trim().split(/^|\s+/)}function Wa(n){return n.classList||new Xs(n)}function Xs(n){this._node=n,this._names=Ws(n.getAttribute("class")||"")}function $s(n,r){for(var e=Wa(n),i=-1,a=r.length;++i=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var Js={},Ar=null;function vu(n,r,e){return n=Ks(n,r,e),function(i){var a=i.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&n.call(this,i)}}function Ks(n,r,e){return function(i){var a=Ar;Ar=i;try{n.call(this,this.__data__,r,e)}finally{Ar=a}}}function xu(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function yu(n){return function(){var r=this.__on;if(r){for(var o,e=0,i=-1,a=r.length;e=$t&&($t=qt+1);!(De=_t[$t])&&++$t=0;)(v=i[a])&&(o&&4^v.compareDocumentPosition(o)&&o.parentNode.insertBefore(v,o),o=v);return this},sort:function Di(n){function r(ct,ot){return ct&&ot?n(ct.__data__,ot.__data__):!ct-!ot}n||(n=wr);for(var e=this._groups,i=e.length,a=new Array(i),o=0;o1?this.each((null==r?Fc:"function"==typeof r?Bc:Rc)(n,r,e??"")):Mr(this.node(),n)},property:function zc(n,r){return arguments.length>1?this.each((null==r?Vc:"function"==typeof r?Uc:Gc)(n,r)):this.node()[n]},classed:function Xc(n,r){var e=Ws(n+"");if(arguments.length<2){for(var i=Wa(this.node()),a=-1,o=e.length;++a0)for(var N,i=n[0],a=r[0],o=n[e]-i,v=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(N=T/e)*o),this._beta*r[T]+(1-this._beta)*(a+N*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const Su=function n(r){function e(i){return 1===r?new ya(i):new ro(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var Xa=Math.PI,$a=2*Xa,Sr=1e-6,Eu=$a-Sr;function Qa(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ao(){return new Qa}Qa.prototype=ao.prototype={constructor:Qa,moveTo:function(n,r){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,r){this._+="L"+(this._x1=+n)+","+(this._y1=+r)},quadraticCurveTo:function(n,r,e,i){this._+="Q"+ +n+","+ +r+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(n,r,e,i,a,o){this._+="C"+ +n+","+ +r+","+ +e+","+ +i+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function(n,r,e,i,a){var o=this._x1,v=this._y1,T=(e=+e)-(n=+n),N=(i=+i)-(r=+r),U=o-n,J=v-r,ct=U*U+J*J;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=n)+","+(this._y1=r);else if(ct>Sr)if(Math.abs(J*T-N*U)>Sr&&a){var ot=e-o,Ct=i-v,It=T*T+N*N,Ft=ot*ot+Ct*Ct,_t=Math.sqrt(It),Vt=Math.sqrt(ct),qt=a*Math.tan((Xa-Math.acos((It+ct-Ft)/(2*_t*Vt)))/2),$t=qt/Vt,ye=qt/_t;Math.abs($t-1)>Sr&&(this._+="L"+(n+$t*U)+","+(r+$t*J)),this._+="A"+a+","+a+",0,0,"+ +(J*ot>U*Ct)+","+(this._x1=n+ye*T)+","+(this._y1=r+ye*N)}else this._+="L"+(this._x1=n)+","+(this._y1=r)},arc:function(n,r,e,i,a,o){n=+n,r=+r,o=!!o;var v=(e=+e)*Math.cos(i),T=e*Math.sin(i),N=n+v,U=r+T,J=1^o,ct=o?i-a:a-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+N+","+U:(Math.abs(this._x1-N)>Sr||Math.abs(this._y1-U)>Sr)&&(this._+="L"+N+","+U),e&&(ct<0&&(ct=ct%$a+$a),ct>Eu?this._+="A"+e+","+e+",0,1,"+J+","+(n-v)+","+(r-T)+"A"+e+","+e+",0,1,"+J+","+(this._x1=N)+","+(this._y1=U):ct>Sr&&(this._+="A"+e+","+e+",0,"+ +(ct>=Xa)+","+J+","+(this._x1=n+e*Math.cos(a))+","+(this._y1=r+e*Math.sin(a))))},rect:function(n,r,e,i){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const Du=ao;function ba(n){return function(){return n}}function so(n){this._context=n}function Lu(n){return new so(n)}function ku(n){return n[0]}function Iu(n){return n[1]}so.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,r){switch(n=+n,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 1:this._point=2;default:this._context.lineTo(n,r)}}};var oo=Math.PI;function co(n){return(1-Math.cos(oo*n))/2}var Ta=s(25922),or=s(49194),ja=s(73339),Mu=(0,Ta.Z)("start","end","cancel","interrupt"),Nu=[];function Aa(n,r,e,i,a,o){var v=n.__transition;if(v){if(e in v)return}else n.__transition={};!function Pu(n,r,e){var a,i=n.__transition;function v(U){var J,ct,ot,Ct;if(1!==e.state)return N();for(J in i)if((Ct=i[J]).name===e.name){if(3===Ct.state)return(0,ja.Z)(v);4===Ct.state?(Ct.state=6,Ct.timer.stop(),Ct.on.call("interrupt",n,n.__data__,Ct.index,Ct.group),delete i[J]):+J0)throw new Error("too late; already scheduled");return e}function lr(n,r){var e=Ki(n,r);if(e.state>3)throw new Error("too late; already running");return e}function Ki(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function _r(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}var ia,es,go,Sa,fo=180/Math.PI,ts={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function mo(n,r,e,i,a,o){var v,T,N;return(v=Math.sqrt(n*n+r*r))&&(n/=v,r/=v),(N=n*e+r*i)&&(e-=n*N,i-=r*N),(T=Math.sqrt(e*e+i*i))&&(e/=T,i/=T,N/=T),n*i180?J+=360:J-U>180&&(U+=360),ot.push({i:ct.push(a(ct)+"rotate(",null,i)-2,x:_r(U,J)})):J&&ct.push(a(ct)+"rotate("+J+i)}(U.rotate,J.rotate,ct,ot),function T(U,J,ct,ot){U!==J?ot.push({i:ct.push(a(ct)+"skewX(",null,i)-2,x:_r(U,J)}):J&&ct.push(a(ct)+"skewX("+J+i)}(U.skewX,J.skewX,ct,ot),function N(U,J,ct,ot,Ct,It){if(U!==ct||J!==ot){var Ft=Ct.push(a(Ct)+"scale(",null,",",null,")");It.push({i:Ft-4,x:_r(U,ct)},{i:Ft-2,x:_r(J,ot)})}else(1!==ct||1!==ot)&&Ct.push(a(Ct)+"scale("+ct+","+ot+")")}(U.scaleX,U.scaleY,J.scaleX,J.scaleY,ct,ot),U=J=null,function(Ct){for(var _t,It=-1,Ft=ot.length;++It>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?Da(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?Da(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=Wu.exec(n))?new Ui(r[1],r[2],r[3],1):(r=Xu.exec(n))?new Ui(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=$u.exec(n))?Da(r[1],r[2],r[3],r[4]):(r=Qu.exec(n))?Da(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=ju.exec(n))?Ao(r[1],r[2]/100,r[3]/100,1):(r=Ju.exec(n))?Ao(r[1],r[2]/100,r[3]/100,r[4]):xo.hasOwnProperty(n)?To(xo[n]):"transparent"===n?new Ui(NaN,NaN,NaN,0):null}function To(n){return new Ui(n>>16&255,n>>8&255,255&n,1)}function Da(n,r,e,i){return i<=0&&(n=r=e=NaN),new Ui(n,r,e,i)}function qu(n){return n instanceof ra||(n=oa(n)),n?new Ui((n=n.rgb()).r,n.g,n.b,n.opacity):new Ui}function La(n,r,e,i){return 1===arguments.length?qu(n):new Ui(n,r,e,i??1)}function Ui(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function Co(){return"#"+rs(this.r)+rs(this.g)+rs(this.b)}function wo(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function rs(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function Ao(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new nr(n,r,e,i)}function So(n){if(n instanceof nr)return new nr(n.h,n.s,n.l,n.opacity);if(n instanceof ra||(n=oa(n)),!n)return new nr;if(n instanceof nr)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,a=Math.min(r,e,i),o=Math.max(r,e,i),v=NaN,T=o-a,N=(o+a)/2;return T?(v=r===o?(e-i)/T+6*(e0&&N<1?0:v,new nr(v,T,N,n.opacity)}function nr(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function as(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function Eo(n,r,e,i,a){var o=n*n,v=o*n;return((1-3*n+3*o-v)*r+(4-6*o+3*v)*e+(1+3*n+3*o-3*v)*i+v*a)/6}function Do(n){return function(){return n}}function ko(n,r){var e=r-n;return e?function Lo(n,r){return function(e){return n+e*r}}(n,e):Do(isNaN(n)?r:n)}is(ra,oa,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:yo,formatHex:yo,formatHsl:function Ku(){return So(this).formatHsl()},formatRgb:bo,toString:bo}),is(Ui,La,vo(ra,{brighter:function(n){return n=null==n?Ea:Math.pow(Ea,n),new Ui(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new Ui(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Co,formatHex:Co,formatRgb:wo,toString:wo})),is(nr,function th(n,r,e,i){return 1===arguments.length?So(n):new nr(n,r,e,i??1)},vo(ra,{brighter:function(n){return n=null==n?Ea:Math.pow(Ea,n),new nr(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new nr(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),r=isNaN(n)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*r,a=2*e-i;return new Ui(as(n>=240?n-240:n+120,a,i),as(n,a,i),as(n<120?n+240:n-120,a,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===n?")":", "+n+")")}}));const Io=function n(r){var e=function rh(n){return 1==(n=+n)?ko:function(r,e){return e-r?function ih(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):Do(isNaN(r)?e:r)}}(r);function i(a,o){var v=e((a=La(a)).r,(o=La(o)).r),T=e(a.g,o.g),N=e(a.b,o.b),U=ko(a.opacity,o.opacity);return function(J){return a.r=v(J),a.g=T(J),a.b=N(J),a.opacity=U(J),a+""}}return i.gamma=n,i}(1);function Oo(n){return function(r){var v,T,e=r.length,i=new Array(e),a=new Array(e),o=new Array(e);for(v=0;v=1?(e=1,r-1):Math.floor(e*r),a=n[i],o=n[i+1];return Eo((e-i/r)*r,i>0?n[i-1]:2*a-o,a,o,ie&&(o=r.slice(e,o),T[v]?T[v]+=o:T[++v]=o),(i=i[0])===(a=a[0])?T[v]?T[v]+=a:T[++v]=a:(T[++v]=null,N.push({i:v,x:_r(i,a)})),e=os.lastIndex;return e=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?qa:lr;return function(){var v=o(this,n),T=v.on;T!==i&&(a=(i=T).copy()).on(r,e),v.on=a}}var Rh=na.prototype.constructor;function No(n){return function(){this.style.removeProperty(n)}}function Hh(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function Yh(n,r,e){var i,a;function o(){var v=r.apply(this,arguments);return v!==a&&(i=(a=v)&&Hh(n,v,e)),i}return o._value=r,o}function jh(n){return function(r){this.textContent=n.call(this,r)}}function Jh(n){var r,e;function i(){var a=n.apply(this,arguments);return a!==e&&(r=(e=a)&&jh(a)),r}return i._value=n,i}var ed=0;function cr(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Po(){return++ed}var Pr=na.prototype;cr.prototype=function nd(n){return na().transition(n)}.prototype={constructor:cr,select:function Ph(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=Vi(n));for(var i=this._groups,a=i.length,o=new Array(a),v=0;v2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(a?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[v]):o=!1;o&&delete n.__transition}}(this,n)})},na.prototype.transition=function ad(n){var r,e;n instanceof cr?(r=n._id,n=n._name):(r=Po(),(e=ls).time=(0,or.zO)(),n=null==n?null:n+"");for(var i=this._groups,a=i.length,o=0;o"u"}function xd(n){if(Array.isArray(n)){for(var r=0,e=Array(n.length);r1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:n,b:0,d:1,f:r}}function ka(n,r){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(r).domain(n)}return this}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;const Go=Symbol("implicit");function cs(){var n=new Map,r=[],e=[],i=Go;function a(o){var v=o+"",T=n.get(v);if(!T){if(i!==Go)return i;n.set(v,T=r.push(o))}return e[(T-1)%e.length]}return a.domain=function(o){if(!arguments.length)return r.slice();r=[],n=new Map;for(const v of o){const T=v+"";n.has(T)||n.set(T,r.push(v))}return a},a.range=function(o){return arguments.length?(e=Array.from(o),a):e.slice()},a.unknown=function(o){return arguments.length?(i=o,a):i},a.copy=function(){return cs(r,e).unknown(i)},ka.apply(a,arguments),a}var Rr=s(59695);function Td(n,r){var e;function i(){var a,v,o=e.length,T=0,N=0;for(a=0;a=(ct=(T+U)/2))?T=ct:U=ct,(_t=e>=(ot=(N+J)/2))?N=ot:J=ot,a=o,!(o=o[Vt=_t<<1|Ft]))return a[Vt]=v,n;if(Ct=+n._x.call(null,o.data),It=+n._y.call(null,o.data),r===Ct&&e===It)return v.next=o,a?a[Vt]=v:n._root=v,n;do{a=a?a[Vt]=new Array(4):n._root=new Array(4),(Ft=r>=(ct=(T+U)/2))?T=ct:U=ct,(_t=e>=(ot=(N+J)/2))?N=ot:J=ot}while((Vt=_t<<1|Ft)==(qt=(It>=ot)<<1|Ct>=ct));return a[qt]=o,a[Vt]=v,n}function Li(n,r,e,i,a){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=a}function Pd(n){return n[0]}function Rd(n){return n[1]}function us(n,r,e){var i=new hs(r??Pd,e??Rd,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function hs(n,r,e,i,a,o){this._x=n,this._y=r,this._x0=e,this._y0=i,this._x1=a,this._y1=o,this._root=void 0}function zo(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var ki=us.prototype=hs.prototype;function Zd(n){return n.x+n.vx}function Vd(n){return n.y+n.vy}function Ho(n){var r,e,i=1,a=1;function o(){for(var N,J,ct,ot,Ct,It,Ft,U=r.length,_t=0;_tot+yn||DeCt+yn||gect.index){var En=ot-en.x-en.vx,Dn=Ct-en.y-en.vy,Xn=En*En+Dn*Dn;XnN.r&&(N.r=N[U].r)}function T(){if(r){var N,J,U=r.length;for(e=new Array(U),N=0;NJ&&(J=a),oct&&(ct=o));if(N>J||U>ct)return this;for(this.cover(N,U).cover(J,ct),e=0;en||n>=a||i>r||r>=o;)switch(U=(rJ||(T=It.y0)>ct||(N=It.x1)=Vt)<<1|n>=_t)&&(It=ot[ot.length-1],ot[ot.length-1]=ot[ot.length-1-Ft],ot[ot.length-1-Ft]=It)}else{var qt=n-+this._x.call(null,Ct.data),$t=r-+this._y.call(null,Ct.data),ye=qt*qt+$t*$t;if(ye=(ot=(v+N)/2))?v=ot:N=ot,(Ft=ct>=(Ct=(T+U)/2))?T=Ct:U=Ct,r=e,!(e=e[_t=Ft<<1|It]))return this;if(!e.length)break;(r[_t+1&3]||r[_t+2&3]||r[_t+3&3])&&(i=r,Vt=_t)}for(;e.data!==n;)if(a=e,!(e=e.next))return this;return(o=e.next)&&delete e.next,a?(o?a.next=o:delete a.next,this):r?(o?r[_t]=o:delete r[_t],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[Vt]=e:this._root=e),this):(this._root=o,this)},ki.removeAll=function kd(n){for(var r=0,e=n.length;r1?(null==Ft?T.remove(It):T.set(It,Ct(Ft)),r):T.get(It)},find:function(It,Ft,_t){var $t,ye,De,ge,en,Vt=0,qt=n.length;for(null==_t?_t=1/0:_t*=_t,Vt=0;Vt1?(U.on(It,Ft),r):U.on(It)}}}function Jo(){var n,r,e,a,i=ti(-30),o=1,v=1/0,T=.81;function N(ot){var Ct,It=n.length,Ft=us(n,Yd,Wd).visitAfter(J);for(e=ot,Ct=0;Ct=v)){(ot.data!==r||ot.next)&&(0===_t&&($t+=(_t=vr())*_t),0===Vt&&($t+=(Vt=vr())*Vt),$t{return(n=Br||(Br={})).Both="both",n.Horizontal="horizontal",n.Vertical="vertical",Br;var n})(),Zr=(()=>{return(n=Zr||(Zr={})).UpperLeft="UpperLeft",n.UpperRight="UpperRight",Zr;var n})();function Ap(n,r,e){e=e||{};let i,a,o,v=null,T=0;function N(){T=!1===e.leading?0:+new Date,v=null,o=n.apply(i,a)}return function(...U){const J=+new Date;!T&&!1===e.leading&&(T=J);const ct=r-(J-T);return i=this,a=U,ct<=0?(clearTimeout(v),v=null,T=J,o=n.apply(i,a)):!v&&!1!==e.trailing&&(v=setTimeout(N,ct)),o}}function Sp(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:Ap(o.value,n,r)}),this[a]}}}}const qo=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Ep{constructor(r,e,i){"string"==typeof r&&(r=qo.find(a=>a.name===r)),this.colorDomain=r.domain,this.domain=e,this.customColors=i,this.scale=this.generateColorScheme(r,this.domain)}generateColorScheme(r,e){return"string"==typeof r&&(r=qo.find(i=>i.name===r)),cs().range(r.domain).domain(e)}getColor(r){if(null==r)throw new Error("Value can not be null");if("function"==typeof this.customColors)return this.customColors(r);const e=r.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(a=>a.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(r)}}let Lp=(()=>{class n{constructor(e,i){this.element=e,this.zone=i,this.visible=new t.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:a}=this.element.nativeElement;i&&a?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),n})();var Vr=(()=>{return(n=Vr||(Vr={})).LEFT_TO_RIGHT="LR",n.RIGHT_TO_LEFT="RL",n.TOP_TO_BOTTOM="TB",n.BOTTOM_TO_TOM="BT",Vr;var n})();function Gr(n){return"string"==typeof n?{id:n,x:0,y:0}:n}function el(n,r){return"number"==typeof r?n[r]:r}const nl={dagre:class kp{constructor(){this.defaultSettings={orientation:Vr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Rr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}return r}updateEdge(r,e){const i=r.nodes.find(N=>N.id===e.source),a=r.nodes.find(N=>N.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Rr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreCluster:class Ip{constructor(){this.defaultSettings={orientation:Vr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Rr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const a=this.dagreGraph._nodes[i.id];return{...i,position:{x:a.x,y:a.y},dimension:{width:a.width,height:a.height}}};return r.clusters=(r.clusters||[]).map(e),r.nodes=r.nodes.map(e),r}updateEdge(r,e){const i=r.nodes.find(N=>N.id===e.source),a=r.nodes.find(N=>N.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Rr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreClusters=r.clusters||[],this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)this.dagreGraph.setNode(i.id,i);for(const i of this.dagreClusters)this.dagreGraph.setNode(i.id,i),i.childNodeIds.forEach(a=>{this.dagreGraph.setParent(a,i.id)});for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreNodesOnly:class Mp{constructor(){this.defaultSettings={orientation:Vr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Rr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}for(const e of r.edges)this.updateEdge(r,e);return r}updateEdge(r,e){const i=r.nodes.find(It=>It.id===e.source),a=r.nodes.find(It=>It.id===e.target),o="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",v="y"===o?"x":"y",T="y"===o?"height":"width",N=i.position[o]<=a.position[o]?-1:1,U={[v]:i.position[v],[o]:i.position[o]-N*(i.dimension[T]/2)},J={[v]:a.position[v],[o]:a.position[o]+N*(a.dimension[T]/2)},ct=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[U,{[v]:U[v],[o]:U[o]-N*ct},{[v]:J[v],[o]:J[o]+N*ct},J];const Ct=r.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return Ct&&(Ct.points=e.points),r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Rr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},d3ForceDirected:class Np{constructor(){this.defaultSettings={force:jo().force("charge",Jo().strength(-150)).force("collide",Ho(5)),forceLink:Qo().id(r=>r.id).distance(()=>100)},this.settings={},this.outputGraph$=new ea.x}run(r){return this.inputGraph=r,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>({...e}))],edges:[...this.inputGraph.edges.map(e=>({...e}))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.nodes(this.d3Graph.nodes).force("link",i.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(r){return this.outputGraph.nodes=this.d3Graph.nodes.map(e=>({...e,id:e.id||ur(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(e=>({...e,source:Gr(e.source).id,target:Gr(e.target).id,points:[{x:Gr(e.source).x,y:Gr(e.source).y},{x:Gr(e.target).x,y:Gr(e.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){this.settings.force.alphaTarget(.3).restart();const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.draggingStart={x:e.x-i.x,y:e.y-i.y},i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDrag(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDragEnd(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.settings.force.alphaTarget(0),i.fx=void 0,i.fy=void 0)}},colaForceDirected:class Pp{constructor(){this.defaultSettings={force:(0,Kd.d3adaptor)({...x,...c,..._}).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new ea.x}run(r){return this.inputGraph=r,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>({...e,width:e.dimension?e.dimension.width:20,height:e.dimension?e.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(e=>({padding:5,groups:e.childNodeIds.map(i=>this.inputGraph.clusters.findIndex(a=>a.id===i)).filter(i=>i>=0),leaves:e.childNodeIds.map(i=>this.inputGraph.nodes.findIndex(a=>a.id===i)).filter(i=>i>=0)}))],links:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(-1!==i&&-1!==a)return{...e,source:i,target:a}}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(!(i>=0&&a>=0))return e}).filter(e=>!!e)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(r){return this.outputGraph.nodes=r.nodes.map(e=>({...e,id:e.id||ur(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=r.links.map(e=>{const i=el(r.nodes,e.source),a=el(r.nodes,e.target);return{...e,source:i.id,target:a.id,points:[i.bounds.rayIntersection(a.bounds.cx(),a.bounds.cy()),a.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]}}).concat(r.groupLinks.map(e=>{const i=r.nodes.find(T=>T.id===e.source),a=r.nodes.find(T=>T.id===e.target),o=i||r.groups.find(T=>T.id===e.source),v=a||r.groups.find(T=>T.id===e.target);return{...e,source:o.id,target:v.id,points:[o.bounds.rayIntersection(v.bounds.cx(),v.bounds.cy()),v.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy())]}})),this.outputGraph.clusters=r.groups.map((e,i)=>({...this.inputGraph.clusters[i],dimension:{width:e.bounds?e.bounds.width():20,height:e.bounds?e.bounds.height():20},position:{x:e.bounds?e.bounds.x+e.bounds.width()/2:0,y:e.bounds?e.bounds.y+e.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(this.draggingStart={x:a.x-e.x,y:a.y-e.y},a.fixed=1,this.settings.force.start())}onDrag(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.x=this.draggingStart.x+e.x,a.y=this.draggingStart.y+e.y)}onDragEnd(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.fixed=0)}}};let il=(()=>{class n{getLayout(e){if(nl[e])return new nl[e];throw new Error(`Unknown layout type '${e}'`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Fp=(()=>{class n{constructor(){this.mouseWheelUp=new t.vpe,this.mouseWheelDown=new t.vpe}onMouseWheelChrome(e){this.mouseWheelFunc(e)}onMouseWheelFirefox(e){this.mouseWheelFunc(e)}onWheel(e){this.mouseWheelFunc(e)}onMouseWheelIE(e){this.mouseWheelFunc(e)}mouseWheelFunc(e){window.event&&(e=window.event);const i=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail||e.deltaY||e.deltaX)),o=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):o&&this.mouseWheelDown.emit(e),e.returnValue=!1,e.preventDefault&&e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","mouseWheel",""]],hostBindings:function(e,i){1&e&&t.NdJ("mousewheel",function(o){return i.onMouseWheelChrome(o)})("DOMMouseScroll",function(o){return i.onMouseWheelFirefox(o)})("wheel",function(o){return i.onWheel(o)})("onmousewheel",function(o){return i.onMouseWheelIE(o)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),n})(),Rp=(()=>{class n{constructor(e,i,a,o){this.el=e,this.zone=i,this.cd=a,this.layoutService=o,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Br.Both,this.enableZoom=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.autoZoom=!1,this.panOnZoom=!0,this.animate=!1,this.autoCenter=!1,this.enableTrackpadSupport=!1,this.showMiniMap=!1,this.miniMapMaxWidth=100,this.miniMapPosition=Zr.UpperRight,this.scheme="cool",this.animations=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.zoomChange=new t.vpe,this.clickHandler=new t.vpe,this.isMouseMoveCalled=!1,this.graphSubscription=new Fo.w0,this.subscriptions=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.oldClusters=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.minimapScaleCoefficient=3,this.minimapOffsetX=0,this.minimapOffsetY=0,this.isMinimapPanning=!1,this.groupResultsBy=v=>v.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(e){this.zoomTo(Number(e))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(e){this.panTo(Number(e),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(e){this.panTo(null,Number(e))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(e=>{this.panToNodeId(e)})),this.minimapClipPathId=`minimapClip${ur()}`}ngOnChanges(e){this.basicUpdate();const{layoutSettings:a}=e;this.setLayout(this.layout),a&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(e){this.initialized=!1,e||(e="dagre"),"string"==typeof e&&(this.layout=this.layoutService.getLayout(e),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(e){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=e)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy());for(const e of this.subscriptions)e.unsubscribe();this.subscriptions=null}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Lp(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=Su.beta(1)),this.zone.run(()=>{this.dims=function Dp({width:n,height:r}){let e=n,i=r;return e=Math.max(0,e),i=Math.max(0,i),{width:Math.floor(e),height:Math.floor(i)}}({width:this.width,height:this.height}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new Fo.w0;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=ur()),i.dimension?i.meta.forceDimensions=void 0===i.meta.forceDimensions||i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position={x:0,y:0},i.data=i.data?i.data:{},i);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(e):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(e):[],edges:this.links.length>0?[...this.links].map(i=>(i.id||(i.id=ur()),i)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const e=this.layout.run(this.graph),i=e instanceof ut.y?e:(0,yt.of)(e);this.graphSubscription.add(i.subscribe(a=>{this.graph=a,this.tick()})),0!==this.graph.nodes.length&&i.pipe((0,od.P)()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),e.add(o.id)});const i=new Set;(this.graph.clusters||[]).map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),i.add(o.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const a=[];for(const o in this.graph.edgeLabels){const v=this.graph.edgeLabels[o],T=o.replace(/[^\w-]*/g,""),N=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let U=this._oldLinks.find(N?Ft=>`${Ft.source}${Ft.target}${Ft.id}`===T:Ft=>`${Ft.source}${Ft.target}`===T);const J=this.graph.edges.find(N?Ft=>`${Ft.source}${Ft.target}${Ft.id}`===T:Ft=>`${Ft.source}${Ft.target}`===T);U?U.data&&J&&J.data&&JSON.stringify(U.data)!==JSON.stringify(J.data)&&(U.data=J.data):U=J||v,U.oldLine=U.line;const ct=v.points,ot=this.generateLine(ct),Ct=Object.assign({},U);Ct.line=ot,Ct.points=ct,this.updateMidpointOnEdge(Ct,ct);const It=ct[Math.floor(ct.length/2)];It&&(Ct.textTransform=`translate(${It.x||0},${It.y||0})`),Ct.textAngle=0,Ct.oldLine||(Ct.oldLine=Ct.line),this.calcDominantBaseline(Ct),a.push(Ct)}this.graph.edges=a,this.graph.edges&&(this._oldLinks=this.graph.edges.map(o=>{const v=Object.assign({},o);return v.oldLine=o.line,v})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Zr.UpperLeft:return"";case Zr.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let e=1/0,i=-1/0,a=1/0,o=-1/0;for(let v=0;vi?T.position.x+T.dimension.width:i,o=T.position.y+T.dimension.height>o?T.position.y+T.dimension.height:o}e-=100,a-=100,i+=100,o+=100,this.graphDims.width=i-e,this.graphDims.height=o-a,this.minimapOffsetX=e,this.minimapOffsetY=a}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(e=>{const i=e.nativeElement,a=this.graph.nodes.find(v=>v.id===i.id);if(!a)return;let o;try{if(o=i.getBBox(),!o.width||!o.height)return}catch{return}if(a.dimension.height=this.nodeHeight?a.dimension.height&&a.meta.forceDimensions?a.dimension.height:this.nodeHeight:a.dimension.height&&a.meta.forceDimensions?a.dimension.height:o.height,this.nodeMaxHeight&&(a.dimension.height=Math.max(a.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(a.dimension.height=Math.min(a.dimension.height,this.nodeMinHeight)),this.nodeWidth)a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:this.nodeWidth;else if(i.getElementsByTagName("text").length){let v;try{for(const T of i.getElementsByTagName("text")){const N=T.getBBox();v?(N.width>v.width&&(v.width=N.width),N.height>v.height&&(v.height=N.height)):v=N}}catch{return}a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:v.width+20}else a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:o.width;this.nodeMaxWidth&&(a.dimension.width=Math.max(a.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(a.dimension.width=Math.min(a.dimension.width,this.nodeMinWidth))})}redrawLines(e=this.animate){this.linkElements.map(i=>{const a=this.graph.edges.find(o=>o.id===i.nativeElement.id);a&&(no(i.nativeElement).select(".line").attr("d",a.oldLine).transition().ease(co).duration(e?500:0).attr("d",a.line),no(this.el.nativeElement).select(`#${a.id}`).attr("d",a.oldTextPath).transition().ease(co).duration(e?500:0).attr("d",a.textPath),this.updateMidpointOnEdge(a,a.points))})}calcDominantBaseline(e){const i=e.points[0],a=e.points[e.points.length-1];e.oldTextPath=e.textPath,a.xa.x).y(a=>a.y).curve(this.curve)(e)}onZoom(e,i){if(this.enableTrackpadSupport&&!e.ctrlKey)return void this.pan(-1*e.deltaX,-1*e.deltaY);const a=1+("in"===i?this.zoomSpeed:-this.zoomSpeed),o=this.zoomLevel*a;if(!(o<=this.minZoomLevel||o>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const v=e.clientX,T=e.clientY,N=this.el.nativeElement.querySelector("svg"),U=N.querySelector("g.chart"),J=N.createSVGPoint();J.x=v,J.y=T;const ct=J.matrixTransform(U.getScreenCTM().inverse());this.pan(ct.x,ct.y,!0),this.zoom(a),this.pan(-ct.x,-ct.y,!0)}else this.zoom(a)}pan(e,i,a=!1){const o=a?1:this.zoomLevel;this.transformationMatrix=la(this.transformationMatrix,Vo(e/o,i/o)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=la(this.transformationMatrix,Vo((-this.panOffsetX-e*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-i*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(e){this.transformationMatrix=la(this.transformationMatrix,function gd(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return md(r)&&(r=n),{a:n,c:0,e:0,b:0,d:r,f:0}}(e,e)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(e){this.transformationMatrix.a=isNaN(e)?this.transformationMatrix.a:Number(e),this.transformationMatrix.d=isNaN(e)?this.transformationMatrix.d:Number(e),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(e){if(!this.draggingEnabled)return;const i=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(i,e),i.position.x+=e.movementX/this.zoomLevel,i.position.y+=e.movementY/this.zoomLevel,i.transform=`translate(${i.position.x-i.dimension.width/2}, ${i.position.y-i.dimension.height/2})`;for(const v of this.graph.edges)if((v.target===i.id||v.source===i.id||v.target.id===i.id||v.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const T=this.layout.updateEdge(this.graph,v),N=T instanceof ut.y?T:(0,yt.of)(T);this.graphSubscription.add(N.subscribe(U=>{this.graph=U,this.redrawEdge(v)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(e){const i=this.generateLine(e.points);this.calcDominantBaseline(e),e.oldLine=e.line,e.line=i}updateTransform(){this.transform=function vd(n){return function Zo(n){return"matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")"}(n)}(function bd(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(n.a*r)/r,b:Math.round(n.b*r)/r,c:Math.round(n.c*r)/r,d:Math.round(n.d*r)/r,e:Math.round(n.e*r)/r,f:Math.round(n.f*r)/r}}(this.transformationMatrix,100))}onClick(e){this.select.emit(e)}onActivate(e){this.activeEntries.indexOf(e)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.indexOf(e);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(e=>this.groupResultsBy(e)).reduce((e,i)=>-1!==e.indexOf(i)?e:e.concat([i]),[]).sort()}trackLinkBy(e,i){return i.id}trackNodeBy(e,i){return i.id}setColors(){this.colors=new Ep(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(e){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,e):this.isDragging&&this.draggingEnabled&&this.onDrag(e)}onMouseDown(e){this.isMouseMoveCalled=!1}graphClick(e){this.isMouseMoveCalled||this.clickHandler.emit(e)}onTouchStart(e){this._touchLastX=e.changedTouches[0].clientX,this._touchLastY=e.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(e){if(this.isPanning&&this.panningEnabled){const i=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY,o=i-this._touchLastX,v=a-this._touchLastY;this._touchLastX=i,this._touchLastY=a,this.pan(o,v)}}onTouchEnd(e){this.isPanning=!1}onMouseUp(e){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,e)}onNodeMouseDown(e,i){!this.draggingEnabled||(this.isDragging=!0,this.draggingNode=i,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(i,e))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(e){this.panTo((e.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(e.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let a=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);athis.maxZoomLevel&&(a=this.maxZoomLevel),a!==this.zoomLevel&&(this.zoomLevel=a,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(e){const i=this.graph.nodes.find(a=>a.id===e);!i||this.panTo(i.position.x,i.position.y)}panWithConstraints(e,i){let a=i.movementX,o=i.movementY;switch(this.isMinimapPanning&&(a=-this.minimapScaleCoefficient*a*this.zoomLevel,o=-this.minimapScaleCoefficient*o*this.zoomLevel),e){case Br.Horizontal:this.pan(a,0);break;case Br.Vertical:this.pan(0,o);break;default:this.pan(a,o)}}updateMidpointOnEdge(e,i){if(e&&i)if(i.length%2==1)e.midPoint=i[Math.floor(i.length/2)];else{const a=i[i.length/2],o=i[i.length/2-1];e.midPoint={x:(a.x+o.x)/2,y:(a.y+o.y)/2}}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const a=this.el.nativeElement;if(null!==a.parentNode){const o=a.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=(0,Ro.R)(window,"resize").pipe((0,q.b)(200)).subscribe(a=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(il))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-graph"]],contentQueries:function(e,i,a){if(1&e&&(t.Suo(a,tp,5),t.Suo(a,ep,5),t.Suo(a,np,5),t.Suo(a,ip,5),t.Suo(a,rp,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.linkTemplate=o.first),t.iGM(o=t.CRH())&&(i.nodeTemplate=o.first),t.iGM(o=t.CRH())&&(i.clusterTemplate=o.first),t.iGM(o=t.CRH())&&(i.defsTemplate=o.first),t.iGM(o=t.CRH())&&(i.miniMapNodeTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&(t.Gf(ap,5),t.Gf(sp,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.nodeElements=a),t.iGM(a=t.CRH())&&(i.linkElements=a)}},hostBindings:function(e,i){1&e&&t.NdJ("mousemove",function(o){return i.onMouseMove(o)},!1,t.evT)("mousedown",function(o){return i.onMouseDown(o)},!1,t.evT)("click",function(o){return i.graphClick(o)},!1,t.evT)("touchmove",function(o){return i.onTouchMove(o)},!1,t.evT)("mouseup",function(o){return i.onMouseUp(o)},!1,t.evT)},inputs:{nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",animations:"animations",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[t.TTD],ngContentSelectors:wp,decls:6,vars:11,consts:[["mouseWheel","",1,"ngx-charts-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-charts"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"id","click"],["clusterElement",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"link-group",3,"id"],["linkElement",""],["class","edge",4,"ngIf"],[1,"edge"],[1,"node-group",3,"id","click","mousedown"],["nodeElement",""],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(e,i){1&e&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("mouseWheelUp",function(o){return i.onZoom(o,"in")})("mouseWheelDown",function(o){return i.onZoom(o,"out")}),t.O4$(),t.TgZ(1,"svg",1),t.YNc(2,vp,12,12,"g",2),t.TgZ(3,"clipPath"),t._UZ(4,"rect"),t.qZA(),t.YNc(5,Cp,6,15,"g",3),t.qZA()()),2&e&&(t.Udp("width",i.width,"px"),t.Q6J("@animationState","active")("@.disabled",!i.animations),t.xp6(1),t.uIk("width",i.width)("height",i.height),t.xp6(1),t.Q6J("ngIf",i.initialized&&i.graph),t.xp6(1),t.uIk("id",i.minimapClipPathId),t.xp6(1),t.uIk("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),t.xp6(1),t.Q6J("ngIf",i.showMiniMap))},dependencies:[Fp,m.O5,m.tP,m.sg],styles:[".minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}\n"],encapsulation:2,data:{animation:[(0,Ve.X$)("animationState",[(0,Ve.eR)(":enter",[(0,Ve.oB)({opacity:0}),(0,Ve.jt)("500ms 100ms",(0,Ve.oB)({opacity:1}))])])]},changeDetection:0}),(0,va.gn)([Sp(500)],n.prototype,"updateMinimap",null),n})(),Bp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[il],imports:[[m.ez]]}),n})(),Zp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez],Bp]}),n})();var rl=s(84080);s(52016),s(56758),s(37656),s(29132),s(18429);Math;function ua(n){return{type:n}}function fl(n,r){return nr?1:n>=r?0:NaN}function xs(n){let r=n,e=n;function i(v,T,N,U){for(null==N&&(N=0),null==U&&(U=v.length);N>>1;e(v[J],T)<0?N=J+1:U=J}return N}return 1===n.length&&(r=(v,T)=>n(v)-T,e=function jp(n){return(r,e)=>fl(n(r),e)}(n)),{left:i,center:function o(v,T,N,U){null==N&&(N=0),null==U&&(U=v.length);const J=i(v,T,N,U-1);return J>N&&r(v[J-1],T)>-r(v[J],T)?J-1:J},right:function a(v,T,N,U){for(null==N&&(N=0),null==U&&(U=v.length);N>>1;e(v[J],T)>0?U=J:N=J+1}return N}}}["w","e"].map(ua),["n","s"].map(ua),["n","w","e","s","nw","ne","sw","se"].map(ua);var ys=Math.sqrt(50),bs=Math.sqrt(10),Ts=Math.sqrt(2);function Cs(n,r,e){var i=Math.abs(r-n)/Math.max(0,e),a=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/a;return o>=ys?a*=10:o>=bs?a*=5:o>=Ts&&(a*=2),r0))return N;do{N.push(U=new Date(+o)),r(o,T),n(o)}while(U=v)for(;n(v),!o(v);)v.setTime(v-1)},function(v,T){if(v>=v)if(T<0)for(;++T<=0;)for(;r(v,-1),!o(v););else for(;--T>=0;)for(;r(v,1),!o(v););})},e&&(a.count=function(o,v){return Ss.setTime(+o),Es.setTime(+v),n(Ss),n(Es),Math.floor(e(Ss,Es))},a.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?a.filter(i?function(v){return i(v)%o==0}:function(v){return a.count(0,v)%o==0}):a:null}),a}var Pa=pi(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});Pa.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?pi(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):Pa:null};const Kp=Pa;const ha=pi(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+r*pr)},function(n,r){return(r-n)/pr},function(n){return n.getUTCSeconds()});const xl=pi(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*pr)},function(n,r){n.setTime(+n+r*Xi)},function(n,r){return(r-n)/Xi},function(n){return n.getMinutes()});const bl=pi(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*pr-n.getMinutes()*Xi)},function(n,r){n.setTime(+n+r*fr)},function(n,r){return(r-n)/fr},function(n){return n.getHours()});const Fa=pi(n=>n.setHours(0,0,0,0),(n,r)=>n.setDate(n.getDate()+r),(n,r)=>(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*Xi)/Dr,n=>n.getDate()-1);function Lr(n){return pi(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*Xi)/ws})}var Ra=Lr(0),Ba=Lr(1),Hr=(Lr(2),Lr(3),Lr(4));const wl=(Lr(5),Lr(6),pi(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}));var Ds=pi(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});Ds.every=function(n){return isFinite(n=Math.floor(n))&&n>0?pi(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};const kr=Ds;const rf=pi(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*Xi)},function(n,r){return(r-n)/Xi},function(n){return n.getUTCMinutes()});const af=pi(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*fr)},function(n,r){return(r-n)/fr},function(n){return n.getUTCHours()});const Ls=pi(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/Dr},function(n){return n.getUTCDate()-1});function Ir(n){return pi(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/ws})}var ks=Ir(0),Za=Ir(1),Yr=(Ir(2),Ir(3),Ir(4));const uf=(Ir(5),Ir(6),pi(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}));var Is=pi(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});Is.every=function(n){return isFinite(n=Math.floor(n))&&n>0?pi(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};const Wr=Is;function Ll(n,r,e,i,a,o){const v=[[ha,1,pr],[ha,5,5e3],[ha,15,15e3],[ha,30,3e4],[o,1,Xi],[o,5,5*Xi],[o,15,15*Xi],[o,30,30*Xi],[a,1,fr],[a,3,3*fr],[a,6,6*fr],[a,12,12*fr],[i,1,Dr],[i,2,2*Dr],[e,1,ws],[r,1,gl],[r,3,3*gl],[n,1,As]];function N(U,J,ct){const ot=Math.abs(J-U)/ct,Ct=xs(([,,_t])=>_t).right(v,ot);if(Ct===v.length)return n.every(Cs(U/As,J/As,ct));if(0===Ct)return Kp.every(Math.max(Cs(U,J,ct),1));const[It,Ft]=v[ot/v[Ct-1][2][r.toLowerCase(),e]))}function _f(n,r,e){var i=fi.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function vf(n,r,e){var i=fi.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function xf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function yf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function bf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function Il(n,r,e){var i=fi.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function Ol(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function Tf(n,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function Cf(n,r,e){var i=fi.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function wf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Ml(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function Af(n,r,e){var i=fi.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function Nl(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function Sf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function Ef(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function Df(n,r,e){var i=fi.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function Lf(n,r,e){var i=fi.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function kf(n,r,e){var i=ff.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function If(n,r,e){var i=fi.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function Of(n,r,e){var i=fi.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function Pl(n,r){return xn(n.getDate(),r,2)}function Mf(n,r){return xn(n.getHours(),r,2)}function Nf(n,r){return xn(n.getHours()%12||12,r,2)}function Pf(n,r){return xn(1+Fa.count(kr(n),n),r,3)}function Fl(n,r){return xn(n.getMilliseconds(),r,3)}function Ff(n,r){return Fl(n,r)+"000"}function Rf(n,r){return xn(n.getMonth()+1,r,2)}function Bf(n,r){return xn(n.getMinutes(),r,2)}function Zf(n,r){return xn(n.getSeconds(),r,2)}function Vf(n){var r=n.getDay();return 0===r?7:r}function Gf(n,r){return xn(Ra.count(kr(n)-1,n),r,2)}function Rl(n){var r=n.getDay();return r>=4||0===r?Hr(n):Hr.ceil(n)}function Uf(n,r){return n=Rl(n),xn(Hr.count(kr(n),n)+(4===kr(n).getDay()),r,2)}function zf(n){return n.getDay()}function Hf(n,r){return xn(Ba.count(kr(n)-1,n),r,2)}function Yf(n,r){return xn(n.getFullYear()%100,r,2)}function Wf(n,r){return xn((n=Rl(n)).getFullYear()%100,r,2)}function Xf(n,r){return xn(n.getFullYear()%1e4,r,4)}function $f(n,r){var e=n.getDay();return xn((n=e>=4||0===e?Hr(n):Hr.ceil(n)).getFullYear()%1e4,r,4)}function Qf(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+xn(r/60|0,"0",2)+xn(r%60,"0",2)}function Bl(n,r){return xn(n.getUTCDate(),r,2)}function jf(n,r){return xn(n.getUTCHours(),r,2)}function Jf(n,r){return xn(n.getUTCHours()%12||12,r,2)}function Kf(n,r){return xn(1+Ls.count(Wr(n),n),r,3)}function Zl(n,r){return xn(n.getUTCMilliseconds(),r,3)}function qf(n,r){return Zl(n,r)+"000"}function tm(n,r){return xn(n.getUTCMonth()+1,r,2)}function em(n,r){return xn(n.getUTCMinutes(),r,2)}function nm(n,r){return xn(n.getUTCSeconds(),r,2)}function im(n){var r=n.getUTCDay();return 0===r?7:r}function rm(n,r){return xn(ks.count(Wr(n)-1,n),r,2)}function Vl(n){var r=n.getUTCDay();return r>=4||0===r?Yr(n):Yr.ceil(n)}function am(n,r){return n=Vl(n),xn(Yr.count(Wr(n),n)+(4===Wr(n).getUTCDay()),r,2)}function sm(n){return n.getUTCDay()}function om(n,r){return xn(Za.count(Wr(n)-1,n),r,2)}function lm(n,r){return xn(n.getUTCFullYear()%100,r,2)}function cm(n,r){return xn((n=Vl(n)).getUTCFullYear()%100,r,2)}function um(n,r){return xn(n.getUTCFullYear()%1e4,r,4)}function hm(n,r){var e=n.getUTCDay();return xn((n=e>=4||0===e?Yr(n):Yr.ceil(n)).getUTCFullYear()%1e4,r,4)}function dm(){return"+0000"}function Gl(){return"%"}function Ul(n){return+n}function zl(n){return Math.floor(+n/1e3)}!function gm(n){(function pf(n){var r=n.dateTime,e=n.date,i=n.time,a=n.periods,o=n.days,v=n.shortDays,T=n.months,N=n.shortMonths,U=pa(a),J=fa(a),ct=pa(o),ot=fa(o),Ct=pa(v),It=fa(v),Ft=pa(T),_t=fa(T),Vt=pa(N),qt=fa(N),$t={a:function ri(ve){return v[ve.getDay()]},A:function ar(ve){return o[ve.getDay()]},b:function ai(ve){return N[ve.getMonth()]},B:function si(ve){return T[ve.getMonth()]},c:null,d:Pl,e:Pl,f:Ff,g:Wf,G:$f,H:Mf,I:Nf,j:Pf,L:Fl,m:Rf,M:Bf,p:function Gn(ve){return a[+(ve.getHours()>=12)]},q:function Un(ve){return 1+~~(ve.getMonth()/3)},Q:Ul,s:zl,S:Zf,u:Vf,U:Gf,V:Uf,w:zf,W:Hf,x:null,X:null,y:Yf,Y:Xf,Z:Qf,"%":Gl},ye={a:function ga(ve){return v[ve.getUTCDay()]},A:function Kr(ve){return o[ve.getUTCDay()]},b:function qr(ve){return N[ve.getUTCMonth()]},B:function ta(ve){return T[ve.getUTCMonth()]},c:null,d:Bl,e:Bl,f:qf,g:cm,G:hm,H:jf,I:Jf,j:Kf,L:Zl,m:tm,M:em,p:function Ai(ve){return a[+(ve.getUTCHours()>=12)]},q:function za(ve){return 1+~~(ve.getUTCMonth()/3)},Q:Ul,s:zl,S:nm,u:im,U:rm,V:am,w:sm,W:om,x:null,X:null,y:lm,Y:um,Z:dm,"%":Gl},De={a:function En(ve,Je,dn){var re=Ct.exec(Je.slice(dn));return re?(ve.w=It.get(re[0].toLowerCase()),dn+re[0].length):-1},A:function Dn(ve,Je,dn){var re=ct.exec(Je.slice(dn));return re?(ve.w=ot.get(re[0].toLowerCase()),dn+re[0].length):-1},b:function Xn(ve,Je,dn){var re=Vt.exec(Je.slice(dn));return re?(ve.m=qt.get(re[0].toLowerCase()),dn+re[0].length):-1},B:function ei(ve,Je,dn){var re=Ft.exec(Je.slice(dn));return re?(ve.m=_t.get(re[0].toLowerCase()),dn+re[0].length):-1},c:function ni(ve,Je,dn){return on(ve,r,Je,dn)},d:Ml,e:Ml,f:Lf,g:Ol,G:Il,H:Nl,I:Nl,j:Af,L:Df,m:wf,M:Sf,p:function yn(ve,Je,dn){var re=U.exec(Je.slice(dn));return re?(ve.p=J.get(re[0].toLowerCase()),dn+re[0].length):-1},q:Cf,Q:If,s:Of,S:Ef,u:vf,U:xf,V:yf,w:_f,W:bf,x:function rr(ve,Je,dn){return on(ve,e,Je,dn)},X:function ii(ve,Je,dn){return on(ve,i,Je,dn)},y:Ol,Y:Il,Z:Tf,"%":kf};function ge(ve,Je){return function(dn){var Oi,Xe,Rn,re=[],Fn=-1,An=0,Ii=ve.length;for(dn instanceof Date||(dn=new Date(+dn));++Fn53)return null;"w"in re||(re.w=1),"Z"in re?(Ii=(An=Ms(da(re.y,0,1))).getUTCDay(),An=Ii>4||0===Ii?Za.ceil(An):Za(An),An=Ls.offset(An,7*(re.V-1)),re.y=An.getUTCFullYear(),re.m=An.getUTCMonth(),re.d=An.getUTCDate()+(re.w+6)%7):(Ii=(An=Os(da(re.y,0,1))).getDay(),An=Ii>4||0===Ii?Ba.ceil(An):Ba(An),An=Fa.offset(An,7*(re.V-1)),re.y=An.getFullYear(),re.m=An.getMonth(),re.d=An.getDate()+(re.w+6)%7)}else("W"in re||"U"in re)&&("w"in re||(re.w="u"in re?re.u%7:"W"in re?1:0),Ii="Z"in re?Ms(da(re.y,0,1)).getUTCDay():Os(da(re.y,0,1)).getDay(),re.m=0,re.d="W"in re?(re.w+6)%7+7*re.W-(Ii+5)%7:re.w+7*re.U-(Ii+6)%7);return"Z"in re?(re.H+=re.Z/100|0,re.M+=re.Z%100,Ms(re)):Os(re)}}function on(ve,Je,dn,re){for(var Oi,Xe,Fn=0,An=Je.length,Ii=dn.length;Fn=Ii)return-1;if(37===(Oi=Je.charCodeAt(Fn++))){if(Oi=Je.charAt(Fn++),!(Xe=De[Oi in kl?Je.charAt(Fn++):Oi])||(re=Xe(ve,dn,re))<0)return-1}else if(Oi!=dn.charCodeAt(re++))return-1}return re}return $t.x=ge(e,$t),$t.X=ge(i,$t),$t.c=ge(r,$t),ye.x=ge(e,ye),ye.X=ge(i,ye),ye.c=ge(r,ye),{format:function(ve){var Je=ge(ve+="",$t);return Je.toString=function(){return ve},Je},parse:function(ve){var Je=en(ve+="",!1);return Je.toString=function(){return ve},Je},utcFormat:function(ve){var Je=ge(ve+="",ye);return Je.toString=function(){return ve},Je},utcParse:function(ve){var Je=en(ve+="",!0);return Je.toString=function(){return ve},Je}}})(n)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),xs(fl),xs(function _m(n){return null===n?NaN:+n}),s(6738),s(84067),s(32517),s(38914),s(22910),s(65142),s(78986),s(16087);const Vm=["caretElm"];function Gm(n,r){}const Um=function(n){return{model:n}};function zm(n,r){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Gm,0,0,"ng-template",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e.template)("ngTemplateOutletContext",t.VKq(2,Um,e.context))}}function Hm(n,r){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("innerHTML",e.title,t.oJD)}}function v_(n,r,e){e=e||{};let i,a,o,v=null,T=0;function N(){T=!1===e.leading?0:+new Date,v=null,o=n.apply(i,a)}return function(){const U=+new Date;!T&&!1===e.leading&&(T=U);const J=r-(U-T);return i=this,a=arguments,J<=0?(clearTimeout(v),v=null,T=U,o=n.apply(i,a)):!v&&!1!==e.trailing&&(v=setTimeout(N,J)),o}}function x_(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:v_(o.value,n,r)}),this[a]}}}}var rn=(()=>{return(n=rn||(rn={})).Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.Center="center",rn;var n})();function ec(n,r,e){return e===rn.Top?n.top-7:e===rn.Bottom?n.top+n.height-r.height+7:e===rn.Center?n.top+n.height/2-r.height/2:void 0}function nc(n,r,e){return e===rn.Left?n.left-7:e===rn.Right?n.left+n.width-r.width+7:e===rn.Center?n.left+n.width/2-r.width/2:void 0}class zi{static calculateVerticalAlignment(r,e,i){let a=ec(r,e,i);return a+e.height>window.innerHeight&&(a=window.innerHeight-e.height),a}static calculateVerticalCaret(r,e,i,a){let o;a===rn.Top&&(o=r.height/2-i.height/2+7),a===rn.Bottom&&(o=e.height-r.height/2-i.height/2-7),a===rn.Center&&(o=e.height/2-i.height/2);const v=ec(r,e,a);return v+e.height>window.innerHeight&&(o+=v+e.height-window.innerHeight),o}static calculateHorizontalAlignment(r,e,i){let a=nc(r,e,i);return a+e.width>window.innerWidth&&(a=window.innerWidth-e.width),a}static calculateHorizontalCaret(r,e,i,a){let o;a===rn.Left&&(o=r.width/2-i.width/2+7),a===rn.Right&&(o=e.width-r.width/2-i.width/2-7),a===rn.Center&&(o=e.width/2-i.width/2);const v=nc(r,e,a);return v+e.width>window.innerWidth&&(o+=v+e.width-window.innerWidth),o}static shouldFlip(r,e,i,a){let o=!1;return i===rn.Right&&r.left+r.width+e.width+a>window.innerWidth&&(o=!0),i===rn.Left&&r.left-e.width-a<0&&(o=!0),i===rn.Top&&r.top-e.height-a<0&&(o=!0),i===rn.Bottom&&r.top+r.height+e.height+a>window.innerHeight&&(o=!0),o}static positionCaret(r,e,i,a,o){let v=0,T=0;return r===rn.Right?(T=-7,v=zi.calculateVerticalCaret(i,e,a,o)):r===rn.Left?(T=e.width,v=zi.calculateVerticalCaret(i,e,a,o)):r===rn.Top?(v=e.height,T=zi.calculateHorizontalCaret(i,e,a,o)):r===rn.Bottom&&(v=-7,T=zi.calculateHorizontalCaret(i,e,a,o)),{top:v,left:T}}static positionContent(r,e,i,a,o){let v=0,T=0;return r===rn.Right?(T=i.left+i.width+a,v=zi.calculateVerticalAlignment(i,e,o)):r===rn.Left?(T=i.left-e.width-a,v=zi.calculateVerticalAlignment(i,e,o)):r===rn.Top?(v=i.top-e.height-a,T=zi.calculateHorizontalAlignment(i,e,o)):r===rn.Bottom&&(v=i.top+i.height+a,T=zi.calculateHorizontalAlignment(i,e,o)),{top:v,left:T}}static determinePlacement(r,e,i,a){if(zi.shouldFlip(i,e,r,a)){if(r===rn.Right)return rn.Left;if(r===rn.Left)return rn.Right;if(r===rn.Top)return rn.Bottom;if(r===rn.Bottom)return rn.Top}return r}}let y_=(()=>{class n{constructor(e,i,a){this.element=e,this.renderer=i,this.platformId=a}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,m.NF)(this.platformId))return;const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const a=e.getBoundingClientRect();this.checkFlip(i,a),this.positionContent(e,i,a),this.showCaret&&this.positionCaret(i,a),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,a){const{top:o,left:v}=zi.positionContent(this.placement,a,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${v}px`)}positionCaret(e,i){const a=this.caretElm.nativeElement,o=a.getBoundingClientRect(),{top:v,left:T}=zi.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(a,"top",`${v}px`),this.renderer.setStyle(a,"left",`${T}px`)}checkFlip(e,i){this.placement=zi.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&t.Gf(Vm,5),2&e){let a;t.iGM(a=t.CRH())&&(i.caretElm=a.first)}},hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(){return i.onWindowResize()},!1,t.Jf7),2&e&&t.Tol(i.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,zm,2,4,"span",3),t.YNc(5,Hm,1,1,"span",4),t.qZA()()),2&e&&(t.xp6(1),t.Gre("tooltip-caret position-",i.placement,""),t.Q6J("hidden",!i.showCaret),t.xp6(3),t.Q6J("ngIf",!i.title),t.xp6(1),t.Q6J("ngIf",i.title))},dependencies:[m.O5,m.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,va.gn)([x_(100)],n.prototype,"onWindowResize",null),n})(),ic=(()=>{class n{constructor(e,i,a){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=a}static setGlobalRootViewContainer(e){n.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(n.globalRootViewContainer)return n.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function T_(n){return n.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const a=Object.getOwnPropertyNames(i.inputs);for(const o of a)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const a=Object.getOwnPropertyNames(i.outputs);for(const o of a)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},a){a||(a=this.getRootViewContainer());const o=this.getComponentRootNode(a),v=new rl.u0(o,this.componentFactoryResolver,this.applicationRef,this.injector),T=new rl.C5(e),N=v.attach(T);return this.projectComponentBindings(N,i),N}}return n.globalRootViewContainer=null,n.\u0275fac=function(e){return new(e||n)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Ps=(()=>{class n extends class b_{constructor(r){this.injectionService=r,this.defaults={},this.components=new Map}getByType(r=this.type){return this.components.get(r)}create(r){return this.createByType(this.type,r)}createByType(r,e){e=this.assignDefaults(e);const i=this.injectComponent(r,e);return this.register(r,i),i}destroy(r){const e=this.components.get(r.componentType);if(e&&e.length){const i=e.indexOf(r);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(r){const e=this.components.get(r);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(r,e){return this.injectionService.appendComponent(r,e)}assignDefaults(r){const e={...this.defaults.inputs},i={...this.defaults.outputs};return!r.inputs&&!r.outputs&&(r={inputs:r}),e&&(r.inputs={...e,...r.inputs}),i&&(r.outputs={...i,...r.outputs}),r}register(r,e){this.components.has(r)||this.components.set(r,[]),this.components.get(r).push(e)}}{constructor(e){super(e),this.type=y_}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ic))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),cc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez]]}),n})();var Qr=(()=>{return(n=Qr||(Qr={})).popover="popover",n.tooltip="tooltip",Qr;var n})(),br=(()=>{return(n=br||(br={}))[n.all="all"]="all",n[n.focus="focus"]="focus",n[n.mouseover="mouseover"]="mouseover",br;var n})();let Zs,Rs=(()=>{class n{constructor(e,i,a){this.tooltipService=e,this.viewContainerRef=i,this.renderer=a,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=rn.Top,this.tooltipAlignment=rn.Center,this.tooltipType=Qr.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=br.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===br.all||this.tooltipShowEvent===br.focus}get listensForHover(){return this.tooltipShowEvent===br.all||this.tooltipShowEvent===br.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const a=this.createBoundOptions();this.component=this.tooltipService.create(a),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ps),t.Y36(t.s_b),t.Y36(t.Qsj))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&t.NdJ("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),n})(),uc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[ic,Ps],imports:[[m.ez]]}),n})();typeof window<"u"?Zs=window:typeof global<"u"&&(Zs=global);let $i=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez,cc,uc],m.ez,cc,uc]}),n})(),N_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),vc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),P_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),F_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),R_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),xc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})();Math;let Gs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),V_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i,Gs,xc]]}),n})(),U_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),z_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),H_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i,Gs,vc]]}),n})(),W_=(()=>{class n{constructor(){!function Y_(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[$i,N_,vc,P_,F_,R_,xc,V_,U_,Gs,z_,H_]}),n})();function X_(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",3),t.qZA())}function $_(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function Q_(n,r){1&n&&(t.O4$(),t.TgZ(0,"marker",10),t._UZ(1,"path",11),t.qZA())}function j_(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",12),t._UZ(1,"rect"),t.TgZ(2,"text",13),t._uU(3),t.qZA()()),2&n){const e=r.$implicit;t.Q6J("tooltipTitle",e.tooltip)("tooltipPlacement","top")("tooltipType","tooltip"),t.xp6(1),t.uIk("fill",e.color)("height",e.dimension.height)("width",e.dimension.width),t.xp6(1),t.uIk("y",e.dimension.height/2)("x",10),t.xp6(1),t.hij(" ",e.label," ")}}function J_(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",14),t._UZ(1,"path",15),t.TgZ(2,"text",16)(3,"textPath",17),t._uU(4),t.qZA()()()),2&n){const e=r.$implicit;t.xp6(3),t.uIk("href","#"+e.id),t.xp6(1),t.hij(" ",e.label," ")}}const K_=function(n,r){return[n,r]};function q_(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5),t.ALo(6,"translate"),t.TgZ(7,"strong"),t._uU(8),t.qZA(),t.YNc(9,$_,5,4,"span",4),t.TgZ(10,"div",5)(11,"ngx-graph",6),t.YNc(12,Q_,2,0,"ng-template",null,7,t.W1O),t.YNc(14,j_,4,9,"ng-template",null,8,t.W1O),t.YNc(16,J_,5,2,"ng-template",null,9,t.W1O),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(2),t.Q6J("links",e.hierarchialGraph.links)("nodes",e.hierarchialGraph.nodes)("view",t.WLB(16,K_,e.innerWidth,e.innerHeight))("curve",e.curve)("draggingEnabled",!1)("zoomToFit$",e.zoomToFit$)}}function tv(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function ev(n,r){if(1&n&&(t._uU(0),t.ALo(1,"translate"),t.TgZ(2,"strong"),t._uU(3),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.TgZ(6,"strong"),t._uU(7),t.qZA(),t.YNc(8,tv,5,4,"span",4),t._uU(9),t.ALo(10,"translate")),2&n){const e=t.oxw(2);t.hij(" ",t.lcZ(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(1),t.hij(" ",t.lcZ(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function nv(n,r){if(1&n&&(t.YNc(0,q_,18,19,"div",1),t.YNc(1,ev,11,13,"ng-template",null,2,t.W1O)),2&n){const e=t.MAs(2),i=t.oxw();t.Q6J("ngIf",i.isConnected)("ngIfElse",e)}}let iv=(()=>{class n{constructor(e,i,a,o,v,T,N,U,J){this.route=e,this.facilityManager=i,this.userService=a,this.membersService=o,this.serviceService=v,this.resourceManager=T,this.groupService=N,this.voService=U,this.translate=J,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=Ha,this.zoomToFit$=new ea.x,this.idCounter=0}static findConnectedGroups(e,i){const a=[];for(const o of e)for(const v of i)o.id===v.id&&a.push(o);return a}static findConnectedResources(e,i){const a=[];for(const o of e)for(const v of i)o.id===v.id&&a.push(o);return a}onResize(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight}ngOnInit(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(e=>{this.destination=String(e.destination),this.service=String(e.service),this.userService.getUserById(Number(e.user)).subscribe(i=>{this.user=i,this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(a=>{this.facilities=a,this.membersService.getMembersByUser(this.user.id).subscribe(o=>{if(this.membership=o,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){const e=""+this.id().toString(),i=this.user.firstName??" "+this.user.lastName??"",a=this.localUser,o="user: "+this.user.id.toString();this.hierarchialGraph.nodes.push({id:e,label:i,tooltip:a,color:"#FFFFCC",tip:o});const T=""+this.id().toString(),N="destination no id";this.hierarchialGraph.nodes.push("noService"===this.service?{id:T,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:N}:{id:T,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:N});for(const U of this.facilities)this.serviceService.getAllRichDestinationsForFacility(U.id).subscribe(J=>{this.connectToService(U,J),setTimeout(()=>{this.zoomToFit$.next(!0),this.loading=!1},2e3)})}connectToService(e,i){this.isConnectedToService(i)&&this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(a=>{for(const o of this.membership)this.connectToGroups(e,o,a)})}connectToGroups(e,i,a){this.facilityManager.getAllowedGroups(e.id,i.voId).subscribe(o=>{0!==o.length&&this.groupService.getMemberGroups(i.id).subscribe(v=>{const T=n.findConnectedGroups(o,v);if(0!==T.length)for(const N of T)this.connectToResource(e,N,a)})})}haveService(e){if("noService"===this.service)return!0;for(const i of e)if(this.service===i.name)return!0;return!1}connectToResource(e,i,a){this.resourceManager.getAssignedResourcesWithGroup(i.id).subscribe(o=>{const v=n.findConnectedResources(o,a);for(const T of v)this.resourceManager.getAssignedServicesToResource(T.id).subscribe(N=>{this.haveService(N)&&(this.isConnected=!0,this.addNodesToGraph(i.voId,i,T,e))})})}addNodesToGraph(e,i,a,o){if(-1===this.findEntityInGraph("Facility: "+o.id.toString())){const v=""+this.id().toString(),T=this.localFacility+": "+o.name,N=o.description,U="Facility: "+o.id.toString();this.hierarchialGraph.nodes.push({id:v,label:T,tooltip:N,color:"#FFCCFF",tip:U});const ct={source:v,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links.push(ct)}this.voService.getVoById(e).subscribe(v=>{if(-1===this.findEntityInGraph("Vo: "+v.id.toString())){const N=this.id().toString(),U=this.localVo+": "+v.shortName,J=v.name,ct="Vo: "+v.id.toString();this.hierarchialGraph.nodes.push({id:N,label:U,tooltip:J,color:"#E5FFCC",tip:ct});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct)}if(-1===this.findEntityInGraph("Group: "+i.id.toString())){const N=this.id().toString(),U=this.localGroup+": "+i.name,J=i.description,ct="Group: "+i.id.toString();this.hierarchialGraph.nodes.push({id:N,label:U,tooltip:J,color:"#CCE5FF",tip:ct});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+v.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct)}const T=this.findEntityInGraph("Resource: "+a.id.toString());if(-1!==T){const N={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:this.hierarchialGraph.nodes[T].id};this.hierarchialGraph.links.push(N)}else{const N=this.id().toString(),U=this.localResource+": "+a.name,J=a.description,ct="Resource: "+a.id.toString();this.hierarchialGraph.nodes.push({id:N,label:U,tooltip:J,color:"#FFCCCC",tip:ct});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct);const It={source:N,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+o.id.toString())].id};this.hierarchialGraph.links.push(It)}})}findEntityInGraph(e){for(let i=0;i{this.localUser=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.VO").subscribe(e=>{this.localVo=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.GROUP").subscribe(e=>{this.localGroup=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.RESOURCE").subscribe(e=>{this.localResource=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.FACILITY").subscribe(e=>{this.localFacility=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SERVICE").subscribe(e=>{this.localService=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION").subscribe(e=>{this.localDestination=e})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(H.IQ),t.Y36(H.Fv),t.Y36(H.uq),t.Y36(H.KK),t.Y36(H.xk),t.Y36(H.ff),t.Y36(H.YF),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-graph"]],hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(o){return i.onResize(o)},!1,t.Jf7),2&e&&t.ekj("router-component",i.true)},decls:6,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf","ngIfElse"],["elseBlock",""],[1,"ml-auto","mr-auto"],[4,"ngIf"],[1,"card","w-100","h-100"],[1,"chart-container",3,"links","nodes","view","curve","draggingEnabled","zoomToFit$"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","markerHeight","4","refX","8","refY","0","markerWidth","4","orient","auto","viewBox","0 -5 10 10"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["ngx-tooltip","",1,"node",3,"tooltipTitle","tooltipPlacement","tooltipType"],["alignment-baseline","central"],[1,"edge"],["marker-end","url(#arrow)","stroke-width","2",1,"line"],["text-anchor","end",1,"edge-label"],["startOffset","60%",2,"fill","#000"]],template:function(e,i){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,X_,2,0,"div",1),t.YNc(4,nv,3,2,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(5);t.xp6(1),t.hij(" ",t.lcZ(2,3,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",i.loading)("ngIfElse",a)}},dependencies:[Rp,m.O5,Rs,tt.Ou,u.X$]}),n})();var rv=s(25828),yc=s(69024),av=s(29862),ma=s(21029),Us=s(55660),sv=s(31359);function ov(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function lv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.editUser())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function cv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.anonymizeUser())}),t.TgZ(1,"mat-icon"),t._uU(2,"no_accounts"),t.qZA()()}}function uv(n,r){1&n&&(t.TgZ(0,"mat-icon",17),t.ALo(1,"translate"),t._uU(2," blur_off "),t.qZA()),2&n&&t.s9C("matTooltip",t.lcZ(1,1,"USER_DETAIL.DASHBOARD.ANONYMIZED"))}function hv(n,r){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,lv,3,0,"button",12),t.YNc(2,cv,3,0,"button",13),t.YNc(3,uv,3,3,"mat-icon",14),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!e.anonymized),t.xp6(1),t.Q6J("ngIf",!e.anonymized),t.xp6(1),t.Q6J("ngIf",e.anonymized)}}const dv=function(){return{color:"black"}},pv=function(n){return["/admin/users",n]};function fv(n,r){if(1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6)(4,"div",7)(5,"a",8),t._uU(6),t.ALo(7,"userFullName"),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,hv,4,3,"span",10),t.qZA(),t.TgZ(11,"div"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"span",11),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()()()),2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,12,"ADMIN_USER.ENTITY")),t.Q6J("ngStyle",t.DdM(22,dv))("svgIcon",e.svgIcon),t.xp6(4),t.Q6J("routerLink",t.VKq(23,pv,e.user.id)),t.xp6(1),t.hij(" ",t.lcZ(7,14,e.user)," "),t.xp6(3),t.hij(" \xa0#",e.user.id," "),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(2),t.AsE("",t.lcZ(13,16,"ADMIN_USER.UUID"),": ",e.user.uuid,""),t.xp6(3),t.lnq(" ",t.lcZ(16,18,"ADMIN_USER.ENTITY"),", ",t.lcZ(17,20,"ADMIN_USER.USER_TYPE"),": ",e.getUserType()," ")}}let mv=(()=>{class n{constructor(e,i,a,o,v,T,N,U,J){this.route=e,this.attributesService=i,this.usersService=a,this.sideMenuService=o,this.sideMenuItemService=v,this.dialog=T,this.authResolver=N,this.entityStorageService=U,this.router=J,this.loading=!1,this.svgIcon="perun-user-dark"}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const i=Number(e.userId);this.entityStorageService.setEntity({id:Number(i),beanName:"User"}),this.path=`/admin/users/${i}`,this.regex="/admin/users/\\d+",this.usersService.getUserById(i).subscribe({next:o=>{this.user=o,this.svgIcon=this.user.serviceUser?"perun-service-identity":"perun-user-dark";const v=this.sideMenuItemService.parseUser(o,this.path,this.regex);this.sideMenuService.setAdminItems([v]),this.loading=!1},error:()=>this.loading=!1}),this.attributesService.getAttribute("urn:perun:user:attribute-def:virt:anonymized",void 0,void 0,i).subscribe(o=>{this.anonymized=Boolean(o.value)})})}editUser(){const e=(0,fe.kZ)();e.width="450px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(av.x,e).afterClosed().subscribe(a=>{a&&this.usersService.getUserById(this.user.id).subscribe(o=>{this.user=o})})}getUserType(){return this.user.serviceUser?"Service":"Person"}anonymizeUser(){const e=(0,fe.kZ)();e.width="550px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(ma.GI,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin","users"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(H.H8),t.Y36(H.Fv),t.Y36(d.D),t.Y36(yc.V),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.fb),t.Y36(p.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-user-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],["class","d-flex page-title-headtitle",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"ngStyle","svgIcon","matTooltip"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["data-cy","user-name-link",1,"user-link",3,"routerLink"],[1,"text-muted"],[4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","data-cy","edit-user-button",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],["class","mat-icon-war ml-2",3,"matTooltip",4,"ngIf"],["mat-icon-button","","data-cy","edit-user-button",3,"click"],["mat-icon-button","",3,"click"],[1,"mat-icon-war","ml-2",3,"matTooltip"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,ov,1,0,"mat-spinner",1),t.YNc(3,fv,18,25,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading&&void 0!==i.user))},dependencies:[m.O5,m.PC,p.yS,l.Hw,G.lW,tt.Ou,ln.gM,h.A,f.W,Us.Q,u.X$,sv.d]}),n})();var gv=s(17755),_v=s(74837),vv=s(85985),xv=s(98973),yv=s(15935);function bv(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const Tv=function(){return["id","name","type"]};function Cv(n,r){if(1&n&&t._UZ(0,"app-ext-sources-list",6),2&n){const e=t.oxw();t.Q6J("extSources",e.extSources)("filterValue",e.filterValue)("displayedColumns",t.DdM(4,Tv))("tableId",e.tableId)}}let wv=(()=>{class n{constructor(e,i,a,o){this.extSourceService=e,this.notificator=i,this.translate=a,this.authResolver=o,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=Sn.qy,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(v=>this.loadSuccess=v)}ngOnInit(){this.refreshTable()}applyFilter(e){this.filterValue=e}onLoad(){this.extSourceService.loadExtSourcesDefinitions().subscribe(()=>{this.notificator.showSuccess(this.loadSuccess),this.refreshTable()})}refreshTable(){this.loading=!0,this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.KG),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-ext-sources"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","filterValue","displayedColumns","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"extSources","filterValue","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return i.onLoad()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,bv,1,0,"mat-spinner",3),t.YNc(7,Cv,1,5,"app-ext-sources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"ADMIN.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("placeholder","ADMIN.EXT_SOURCES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,tt.Ou,yv.D,Ue.t,Vn.L,u.X$]}),n})();var Av=s(6097),Sv=s(97453),Ua=s(54004);function Ev(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function Dv(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Lv(n,r){if(1&n&&(t.TgZ(0,"div")(1,"mat-form-field",8),t._UZ(2,"input",9),t.ALo(3,"translate"),t.TgZ(4,"mat-error"),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"mat-form-field",8),t._UZ(8,"input",10),t.ALo(9,"translate"),t.TgZ(10,"mat-error"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"mat-autocomplete",11,12),t.YNc(15,Dv,2,2,"mat-option",13),t.ALo(16,"async"),t.qZA()()()),2&n){const e=t.MAs(14),i=t.oxw();t.xp6(2),t.s9C("placeholder",t.lcZ(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),t.Q6J("formControl",i.loginControl),t.xp6(3),t.hij(" ",t.lcZ(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),t.Q6J("formControl",i.extSourcesControl)("matAutocomplete",e),t.xp6(3),t.hij(" ",t.lcZ(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),t.xp6(2),t.Q6J("displayWith",i.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(16,17,i.filteredExtSources))}}let kv=(()=>{class n{constructor(e,i,a,o,v,T){this.dialogRef=e,this.data=i,this.extSourcesManagerService=a,this.usersManagerService=o,this.translate=v,this.notificator=T,this.extSources=[],v.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(N=>this.successMessage=N)}ngOnInit(){this.loading=!0,this.loginControl=new rt.p4("",[rt.kI.required,rt.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new rt.p4("",[rt.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,li.O)(""),(0,Ua.U)(e=>this._filter(e))),this.extSourcesManagerService.getExtSources().subscribe(e=>{this.extSources=e,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,li.O)(""),(0,Ua.U)(i=>this._filter(i))),this.loading=!1},()=>this.loading=!1)}displayFn(e){return e?e.name:null}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.usersManagerService.addUserExtSource({user:this.data.userId,userExtSource:{beanName:"",extSource:this.extSourcesControl.value,id:0,login:this.loginControl.value,userId:this.data.userId}}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}_filter(e){const i="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.extSources.filter(a=>a.name.toLowerCase().includes(i))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(H.KG),t.Y36(H.Fv),t.Y36(u.sK),t.Y36(Z.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-user-ext-source-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"center-self","w-100"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.YNc(4,Ev,1,0,"mat-spinner",2),t.YNc(5,Lv,17,19,"div",3),t.qZA(),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),t.xp6(3),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loginControl.invalid||i.extSourcesControl.invalid||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},dependencies:[m.sg,m.O5,Ae.XC,Ae.ZL,zt.ey,ie.TO,ie.KE,Ot.Nt,rt.Fj,rt.JJ,rt.Q7,rt.oH,G.lW,M.uh,M.xY,M.H8,tt.Ou,m.Ov,u.X$],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.auto-width[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:auto!important}.auto-width[_ngcontent-%COMP%] .mat-select-value[_ngcontent-%COMP%]{max-width:100%;width:auto}.pre-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),n})();var Iv=s(80275);function Ov(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addIdentity())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"USER_DETAIL.IDENTITIES.ADD"),"\n"))}function Mv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeIdentity())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"USER_DETAIL.IDENTITIES.REMOVE"),"\n")}}function Nv(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function Pv(n,r){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-user-ext-sources-list",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("tableId",e.tableId)("userExtSources",e.userExtSources)}}let Fv=(()=>{class n{constructor(e,i,a,o,v,T){this.usersManagerService=e,this.storage=i,this.registrarManagerService=a,this.dialog=o,this.route=v,this.authResolver=T,this.userExtSources=[],this.selection=new B.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=Sn.gG,this.filterValue=""}ngOnInit(){this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId)}),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{this.userExtSources=e,this.loading=!1},()=>this.loading=!1)}addIdentity(){const e=(0,fe.kZ)();e.width="1000px",e.data={userId:this.userId},this.dialog.open(kv,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeIdentity(){const e=(0,fe.kZ)();e.width="450px",e.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(ma.Lc,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.Fv),t.Y36(Z.d6),t.Y36(H.tk),t.Y36(M.uw),t.Y36(p.gz),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-identities"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],[1,"admin-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","selection","tableId","userExtSources"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(4,Ov,3,3,"button",2),t.YNc(5,Mv,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,Nv,1,0,"mat-spinner",6),t.qZA(),t.YNc(9,Pv,2,5,"div",7)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"USER_DETAIL.IDENTITIES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","USER_DETAIL.IDENTITIES.FILTER_PLACEHOLDER"),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,Ue.t,Vn.L,Iv.j,u.X$]}),n})();var Rv=s(80774),Bv=s(62109);function Zv(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const Vv=function(){return["id","name","vo","facility","description"]};function Gv(n,r){if(1&n&&t._UZ(0,"perun-web-apps-resources-list",6),2&n){const e=t.oxw();t.Q6J("displayedColumns",t.DdM(4,Vv))("resources",e.resources)("filterValue",e.filterValue)("tableId",e.tableId)}}let Uv=(()=>{class n{constructor(e,i){this.userManager=e,this.route=i,this.resources=[],this.tableId=Sn.kO,this.filterValue=""}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.params.subscribe(e=>{const i=Number(e.userId);this.userManager.getAssignedRichResourcesForUser(i).subscribe(a=>{this.resources=a,this.loading=!1})})}resourceFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.Fv),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-resources"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","resources","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","resources","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.resourceFilter(o)}),t.qZA(),t.YNc(6,Zv,1,0,"mat-spinner",3),t.YNc(7,Gv,1,5,"perun-web-apps-resources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,tt.Ou,Ue.t,Vn.L,Bv.C,u.X$]}),n})();var zv=s(61365),Hv=s(71103),Yv=s(53984);const Wv=["list"];function Xv(n,r){1&n&&t._UZ(0,"mat-spinner",8)}function $v(n,r){if(1&n&&t._UZ(0,"perun-web-apps-attributes-list",9,10),2&n){const e=t.oxw();t.Q6J("selection",e.selection)("attributes",e.attributes)("tableId",e.tableId)}}let Qv=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.attributesManager=i,this.userService=a,this.route=o,this.loading=!1,this.selection=new B.Ov(!0,[]),this.tableId=Sn.rF,this.attributes=[]}ngOnInit(){this.route.params.subscribe(e=>{const i=Number(e.identityId);this.userService.getUserExtSourceById(i).subscribe(a=>{this.userExtSource=a,this.refreshTable()})})}refreshTable(){this.loading=!0,this.attributesManager.getUserExtSourceAttributes(this.userExtSource.id).subscribe(e=>{this.attributes=(0,fe.MX)(e),this.selection.clear(),this.loading=!1})}onAdd(){const e=(0,fe.kZ)();e.width="1050px",e.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(Hv.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const e=(0,fe.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(ma.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,fe.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(zv.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(H.H8),t.Y36(H.Fv),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-identity-detail"]],viewQuery:function(e,i){if(1&e&&t.Gf(Wv,5),2&e){let a;t.iGM(a=t.CRH())&&(i.list=a.first)}},decls:26,vars:32,consts:[[1,"page-subtitle"],[1,"mb-2"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",1),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"date"),t.qZA(),t.TgZ(14,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(15,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.YNc(24,Xv,1,0,"mat-spinner",6),t.YNc(25,$v,2,3,"perun-web-apps-attributes-list",7),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,15,"SHARED.IDENTITY_DETAIL.TITLE")," - ",i.userExtSource?i.userExtSource.extSource.name:""," "),t.xp6(3),t.AsE(" ",t.lcZ(6,17,"SHARED.IDENTITY_DETAIL.TYPE"),": ",i.userExtSource?i.userExtSource.extSource.type:""," "),t.xp6(3),t.AsE(" ",t.lcZ(9,19,"SHARED.IDENTITY_DETAIL.LOGIN"),": ",i.userExtSource?i.userExtSource.login:""," "),t.xp6(3),t.AsE(" ",t.lcZ(12,21,"SHARED.IDENTITY_DETAIL.LAST_ACCESS"),": ",i.userExtSource?t.xi3(13,23,i.userExtSource.lastAccess,"d.M.y H:mm:ss"):""," "),t.xp6(4),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(17,26,"SHARED.IDENTITY_DETAIL.SAVE")," "),t.xp6(3),t.hij(" ",t.lcZ(20,28,"SHARED.IDENTITY_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(23,30,"SHARED.IDENTITY_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,Ue.t,Yv.p,m.uU,u.X$]}),n})();var jv=s(40009),Jv=s(90719),bc=s(34198);function Kv(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function qv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editService())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function t0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.removeService())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function e0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.evaluateConsents())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.EVALUATE_CONSENTS")," "))}const n0=function(){return{color:"black"}},Tc=function(n){return["/admin/services",n]};function r0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6)(4,"div",7)(5,"div",8)(6,"div",9)(7,"a",10),t.NdJ("auxclick",function(a){return a.preventDefault()}),t._uU(8),t.qZA(),t.TgZ(9,"span",11),t._uU(10),t.qZA(),t.YNc(11,qv,3,0,"button",12),t.YNc(12,t0,3,0,"button",13),t.qZA(),t.TgZ(13,"span",14),t._uU(14),t.ALo(15,"translate"),t.qZA()()(),t.TgZ(16,"div",15)(17,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.changeServiceStatus())}),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.propagationChange())}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.YNc(23,e0,3,3,"button",17),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,15,"SERVICE_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(23,n0)),t.xp6(6),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(24,Tc,e.service.id.toString()))("routerLink",t.VKq(26,Tc,e.service.id)),t.xp6(1),t.hij(" ",e.service.name," "),t.xp6(2),t.hij(" \xa0 #",e.service.id," "),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(2),t.AsE(" ",t.lcZ(15,17,"SERVICE_DETAIL.DESCRIPTION"),": ",e.service.description," "),t.xp6(3),t.Q6J("checked",e.service.enabled),t.xp6(1),t.hij(" ",t.lcZ(19,19,"SERVICE_DETAIL.ENABLE")," "),t.xp6(2),t.Q6J("checked",e.service.useExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(22,21,"SERVICE_DETAIL.PROPAGATE")," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isPerunAdmin())}}let a0=(()=>{class n{constructor(e,i,a,o,v,T,N,U,J,ct,ot){this.route=e,this.router=i,this.consentsManager=a,this.serviceManager=o,this.sideMenuService=v,this.sideMenuItemService=T,this.dialog=N,this.authResolver=U,this.translate=J,this.notificator=ct,this.entityStorageService=ot,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.serviceId=Number(e.serviceId),this.entityStorageService.setEntity({id:this.serviceId,beanName:"Service"}),this.refresh()})}editService(){const e=(0,fe.kZ)();e.width="600px",e.data={theme:"service-theme",service:this.service},this.dialog.open(jv.R,e).afterClosed().subscribe(a=>{a&&this.refresh()})}removeService(){const e=(0,fe.kZ)();e.width="600px",e.data={theme:"service-theme",services:[this.service]},this.dialog.open(Jv.m,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin/services"],{queryParamsHandling:"preserve"})})}changeServiceStatus(){this.service.enabled=!this.service.enabled,this.serviceManager.updateService({service:this.service}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.STATUS_CHANGE_SUCCESS"))},()=>this.service.enabled=!this.service.enabled)}propagationChange(){this.service.useExpiredMembers=!this.service.useExpiredMembers,this.serviceManager.updateService({service:this.service}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.PROPAGATION_CHANGE_SUCCESS"))},()=>this.service.useExpiredMembers=!this.service.useExpiredMembers)}evaluateConsents(){const e=(0,fe.kZ)();e.width="500px",e.data={title:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_TITLE"),theme:"service-theme",description:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_DESCRIPTION"),items:[this.service.name],type:"confirmation",showAsk:!1},this.dialog.open(ma.Ts,e).afterClosed().subscribe(a=>{a&&this.consentsManager.evaluateConsentsForService(this.service.id).subscribe(()=>this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.EVALUATION_FINISH")))})}refresh(){this.serviceManager.getServiceById(this.serviceId).subscribe(e=>{this.service=e;const i=this.sideMenuItemService.parseService(this.service);this.sideMenuService.setAdminItems([i]),this.loading=!1},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(p.F0),t.Y36(H.WY),t.Y36(H.KK),t.Y36(d.D),t.Y36(yc.V),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(u.sK),t.Y36(Z.V6),t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","service-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","page-title-headtitle detail-layout",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title-headtitle","detail-layout"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"wrap-container"],[1,"detail-info"],[1,"flex-column"],[1,"page-title-headline","d-flex","align-items-center"],["data-cy","service-name-link",1,"service-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],["aria-label","Edit service","data-cy","service-edit-button","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Remove service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"detail-actions"],["labelPosition","before",3,"checked","toggleChange"],["class","action-button evaluate-button","mat-stroked-button","",3,"click",4,"ngIf"],["aria-label","Edit service","data-cy","service-edit-button","mat-icon-button","",3,"click"],["aria-label","Remove service","mat-icon-button","",3,"click"],["mat-stroked-button","",1,"action-button","evaluate-button",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Kv,1,0,"mat-spinner",1),t.YNc(3,r0,24,28,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,m.PC,p.yS,l.Hw,G.lW,tt.Ou,ln.gM,Tt.Rr,h.A,f.W,bc.Y,Us.Q,u.X$],styles:[".detail-layout[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1.2em}.detail-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-right:1.2em}.wrap-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;gap:.3em}.detail-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-left:1px solid rgba(0,0,0,.2);padding-left:.5em}.evaluate-button[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}"],data:{animation:[zn.Ji]}}),n})(),s0=(()=>{class n{constructor(e){this.entityStorageService=e,this.navItems=[]}ngOnInit(){this.service=this.entityStorageService.getEntity(),this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-attributes",url:`/admin/services/${this.service.id}/required-attributes`,label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",style:"service-btn"},{cssIcon:"perun-service_destination",url:`/admin/services/${this.service.id}/destinations`,label:"MENU_ITEMS.SERVICE.DESTINATIONS",style:"service-btn"}]}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&t._UZ(0,"perun-web-apps-menu-buttons-field",0),2&e&&t.Q6J("items",i.navItems)("size","small")},dependencies:[L.L]}),n})();var o0=s(32076),l0=s(24351),Cc=s(54482),c0=s(25032),h0=s(86099),d0=s(57359);function f0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function m0(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.Q6J("alert_type","warn"),t.xp6(1),t.Oqu(t.lcZ(2,2,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ACTIVE_WARN")))}function g0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",5),t.YNc(1,m0,3,4,"perun-web-apps-alert",6),t.ALo(2,"async"),t.TgZ(3,"perun-web-apps-immediate-filter",7),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t._UZ(4,"app-attr-def-list",8),t.ALo(5,"async"),t.ALo(6,"async"),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",t.lcZ(2,8,e.serviceEnabled$)),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("selection",e.selection)("definitions",e.attrDefinitions)("disableRouting",!0)("filterValue",e.filterValue)("serviceEnabled",t.lcZ(5,10,e.serviceEnabled$))("consentRequired",t.lcZ(6,12,e.consentRequired$))}}function _0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",10)(1,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}let v0=(()=>{class n{constructor(e,i,a,o,v,T,N,U){this.dialogRef=e,this.data=i,this.serviceManager=a,this.attributesManager=o,this.facilitiesService=v,this.consentHubService=T,this.notificator=N,this.translate=U,this.consentRequired$=this.facilitiesService.getAssignedFacilitiesByService(this.data.serviceId).pipe((0,l0.b)(o0.D),(0,Ua.U)(J=>J.id),function u0(n,r){return(0,Cc.e)((e,i)=>{const a=new Set;e.subscribe((0,Qt.x)(i,o=>{const v=n?n(o):o;a.has(v)||(a.add(v),i.next(o))})),r?.subscribe((0,Qt.x)(i,()=>a.clear(),c0.Z))})}(),(0,h0.z)(J=>this.consentHubService.getConsentHubByFacility(J)),function p0(n,r){return(0,Cc.e)((0,d0.U)(n,r,arguments.length>=2,!1,!0))}((J,ct)=>J||ct.enforceConsents,!1),(0,li.O)(!0)),this.serviceEnabled$=this.serviceManager.getServiceById(this.data.serviceId).pipe((0,Ua.U)(J=>J.enabled),(0,li.O)(!0)),this.attrDefinitions=[],this.selection=new B.Ov(!0,[]),this.filterValue="",this.loading=!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}onAdd(){this.loading=!0;const e=this.selection.selected.map(i=>i.id);this.serviceManager.addRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(H.KK),t.Y36(H.H8),t.Y36(H.IQ),t.Y36(H.WY),t.Y36(Z.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-required-attributes"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"alert_type",4,"ngIf"],[3,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue","serviceEnabled","consentRequired"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,f0,1,0,"mat-spinner",1),t.YNc(5,g0,7,14,"div",2),t.YNc(6,_0,7,7,"div",3),t.qZA()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,M.uh,M.xY,M.H8,tt.Ou,K.w,Vn.L,di,m.Ov,u.X$]}),n})();function x0(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function y0(n,r){1&n&&t._UZ(0,"th",15)}function b0(n,r){if(1&n&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function T0(n,r){1&n&&t._UZ(0,"tr",17)}function C0(n,r){1&n&&t._UZ(0,"tr",18)}function w0(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,y0,1,0,"th",11),t.YNc(10,b0,2,1,"td",12),t.BQk(),t.YNc(11,T0,1,0,"tr",13),t.YNc(12,C0,1,0,"tr",14),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let A0=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.serviceManager=a,this.notificator=o,this.translate=v,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new R.by(this.data.attrDefinitions)}onConfirm(){this.loading=!0;const e=this.dataSource.data.map(i=>i.id);this.serviceManager.removeRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(H.KK),t.Y36(Z.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-remove-required-attributes"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,x0,1,0,"mat-spinner",1),t.YNc(5,w0,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Tol(i.theme),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE")," "))},dependencies:[m.O5,G.lW,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,M.uh,M.xY,M.H8,tt.Ou,u.X$]}),n})();function S0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function E0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function D0(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function L0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",10),t.NdJ("refreshEvent",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshTable())}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("filterValue",e.filterValue)("selection",e.selection)("disableRouting",!e.authResolver.isPerunAdmin())("tableId",e.tableId)}}let k0=(()=>{class n{constructor(e,i,a,o){this.attributeManager=e,this.dialog=i,this.authResolver=a,this.entityStorageService=o,this.loading=!1,this.filterValue="",this.selection=new B.Ov(!0,[]),this.attrDefinitions=[],this.tableId=Sn.JO}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.attributeManager.getRequiredAttributesDefinition(this.service.id).subscribe(e=>{this.selection.clear(),this.attrDefinitions=e,this.loading=!1})}onAdd(){const e=(0,fe.kZ)();e.width="950px",e.data={serviceId:this.service.id,theme:"service-theme"},this.dialog.open(v0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,fe.kZ)();e.width="650px",e.data={serviceId:this.service.id,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(A0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.H8),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-required-attributes"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,S0,3,3,"button",2),t.YNc(6,E0,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,D0,1,0,"mat-spinner",5),t.YNc(9,L0,1,5,"app-attr-def-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,di,Ue.t,Vn.L,u.X$]}),n})();var I0=s(46597),O0=s(89466),M0=s(70242);function N0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function P0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAllow())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function F0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onBlock())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function R0(n,r){1&n&&t._UZ(0,"mat-spinner",10)}const B0=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function Z0(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-destination-list",11),2&n){const e=t.oxw();t.Q6J("destinations",e.destinations)("filterValue",e.filterValue)("selection",e.selection)("displayedColumns",t.DdM(5,B0))("tableId",e.tableId)}}let V0=(()=>{class n{constructor(e,i,a,o,v,T){this.serviceManager=e,this.notificator=i,this.translate=a,this.dialog=o,this.authResolver=v,this.entityStorageService=T,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new B.Ov(!0,[]),this.tableId=Sn.Cf}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.serviceManager.getAllRichDestinationsForService(this.service.id).subscribe(e=>{this.selection.clear(),this.filterValue="",this.destinations=e,this.loading=!1})}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selection.selected)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selection.selected)}onRemove(){const e=(0,fe.kZ)();e.width="500px",e.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(O0.u,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}blockServiceOnDestinations(e){this.serviceManager.blockServicesOnDestinations({richDestinations:e}).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),this.refreshTable()},error:()=>this.loading=!1})}allowServiceOnDestinations(e){this.serviceManager.unblockServicesOnDestinations({richDestinations:e}).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),this.refreshTable()},error:()=>this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.KK),t.Y36(Z.V6),t.Y36(Z.Te),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-destinations"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","filterValue","selection","displayedColumns","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"destinations","filterValue","selection","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,N0,3,4,"button",2),t.YNc(6,P0,3,4,"button",3),t.YNc(7,F0,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,R0,1,0,"mat-spinner",6),t.YNc(10,Z0,1,6,"app-perun-web-apps-destination-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"SERVICE_DETAIL.DESTINATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,M0.q,Ue.t,Vn.L,u.X$]}),n})();function G0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function U0(n,r){1&n&&t._UZ(0,"th",13)}function z0(n,r){if(1&n&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}function H0(n,r){1&n&&t._UZ(0,"tr",15)}function Y0(n,r){1&n&&t._UZ(0,"tr",16)}function W0(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",6),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",7),t.ynx(8,8),t.YNc(9,U0,1,0,"th",9),t.YNc(10,z0,2,1,"td",10),t.BQk(),t.YNc(11,H0,1,0,"tr",11),t.YNc(12,Y0,1,0,"tr",12),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function X0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",17)(1,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}let $0=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.ownersManagerService=v,this.displayedColumns=["name"],this.owners=[]}ngOnInit(){this.dataSource=new R.by(this.data),this.owners=this.data}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=this.owners.map(i=>i.id);this.ownersManagerService.deleteOwners(e).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_OWNER.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(Z.Te),t.Y36(H.aC))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-owner-dialog"]],decls:6,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,G0,1,0,"mat-spinner",1),t.YNc(4,W0,13,9,"div",2),t.YNc(5,X0,7,7,"div",3)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,4,"DIALOGS.DELETE_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,M.uh,M.xY,M.H8,tt.Ou,u.X$]}),n})();function Q0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function j0(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_OWNER.FILL_CONTACT")," "))}function J0(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_OWNER.CONTACT_FORMAT")," "))}function K0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),t._UZ(3,"input",6),t.ALo(4,"translate"),t.TgZ(5,"mat-error"),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"mat-form-field"),t._UZ(9,"input",6),t.ALo(10,"translate"),t.YNc(11,j0,3,3,"mat-error",3),t.YNc(12,J0,3,3,"mat-error",3),t.qZA(),t.TgZ(13,"mat-form-field")(14,"mat-select",7),t.NdJ("valueChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.type=a)}),t.TgZ(15,"mat-option",8),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",9),t._uU(19),t.ALo(20,"translate"),t.qZA()()()(),t.TgZ(21,"div",10)(22,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"div",12),t.ALo(26,"translate"),t.TgZ(27,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(28),t.ALo(29,"translate"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,15,"DIALOGS.ADD_OWNER.NAME")),t.Q6J("formControl",e.nameCtrl),t.xp6(3),t.hij(" ",t.lcZ(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(10,19,"DIALOGS.ADD_OWNER.CONTACT")),t.Q6J("formControl",e.contactCtrl),t.xp6(2),t.Q6J("ngIf",e.contactCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.contactCtrl.invalid&&!e.contactCtrl.hasError("required")),t.xp6(2),t.Q6J("value",e.type),t.xp6(2),t.Oqu(t.lcZ(17,21,"DIALOGS.ADD_OWNER.TYPE1")),t.xp6(3),t.Oqu(t.lcZ(20,23,"DIALOGS.ADD_OWNER.TYPE2")),t.xp6(4),t.hij(" ",t.lcZ(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),t.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.contactCtrl.valid),t.xp6(2),t.Q6J("disabled",e.nameCtrl.invalid||e.contactCtrl.invalid),t.xp6(1),t.hij(" ",t.lcZ(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}let q0=(()=>{class n{constructor(e,i,a,o){this.dialogRef=e,this.notificator=i,this.ownersManagerService=a,this.translate=o,this.type="1",o.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(v=>this.successMessage=v)}ngOnInit(){this.nameCtrl=new rt.p4(null,[rt.kI.required,rt.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new rt.p4(null,[rt.kI.required,rt.kI.pattern(fe.B2)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number(this.type)}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(Z.V6),t.Y36(H.aC),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-owner-dialog"]],decls:6,vars:5,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","1"],["value","0"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Q0,1,0,"mat-spinner",2),t.YNc(5,K0,30,31,"div",3),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"DIALOGS.ADD_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,zt.ey,ie.TO,ie.KE,Ot.Nt,rt.Fj,rt.JJ,rt.Q7,rt.oH,G.lW,M.uh,M.xY,M.H8,te.gD,tt.Ou,ln.gM,u.X$]}),n})();var tx=s(23256);function ex(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addOwner())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.OWNERS.ADD")," "))}function nx(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeOwner())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.OWNERS.DELETE")," ")}}function ix(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function rx(n,r){if(1&n&&t._UZ(0,"perun-web-apps-owners-list",10),2&n){const e=t.oxw();t.Q6J("selection",e.selected)("filterValue",e.filterValue)("owners",e.owners)("tableId",e.tableId)}}let ax=(()=>{class n{constructor(e,i,a){this.ownersManagerService=e,this.dialog=i,this.guiAuthResolver=a,this.owners=[],this.selected=new B.Ov(!0,[]),this.filterValue="",this.tableId=Sn.v1}ngOnInit(){this.setAuth(),this.refreshTable()}setAuth(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteOwner_Owner_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createOwner_Owner_policy",[])}refreshTable(){this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=e,this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}addOwner(){const e=(0,fe.kZ)();e.width="400px",e.data={},this.dialog.open(q0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeOwner(){const e=(0,fe.kZ)();e.width="400px",e.data=this.selected.selected,this.dialog.open($0,e).afterClosed().subscribe(a=>{a&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.aC),t.Y36(M.uw),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-owners"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","filterValue","owners","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","filterValue","owners","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,ex,3,3,"button",2),t.YNc(6,nx,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,ix,1,0,"mat-spinner",5),t.YNc(9,rx,1,4,"perun-web-apps-owners-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"ADMIN.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.addAuth),t.xp6(1),t.Q6J("ngIf",i.removeAuth),t.xp6(1),t.Q6J("placeholder","ADMIN.OWNERS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,Ue.t,Vn.L,tx.Q,u.X$]}),n})();var sx=s(74010);function ox(n,r){1&n&&t._UZ(0,"mat-spinner",5)}function lx(n,r){if(1&n&&t._UZ(0,"perun-web-apps-facilities-list",6),2&n){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("facilities",e.facilities)("tableId",e.tableId)}}let cx=(()=>{class n{constructor(e,i){this.facilityManager=e,this.route=i,this.facilities=[],this.filterValue="",this.tableId=Sn.zW,this.displayedColumns=["id","name","description"]}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe(e=>{this.facilities=e.map(i=>({facility:i})),this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.IQ),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-facilities"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","facilities","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","facilities","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,ox,1,0,"mat-spinner",3),t.YNc(7,lx,1,4,"perun-web-apps-facilities-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.FACILITIES.TITLE")),t.xp6(3),t.Q6J("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,tt.Ou,Ue.t,Vn.L,sx.X,u.X$]}),n})();var wc=s(64080),ux=s(73546),hx=s(25788),dx=s(62707),px=s(12488),fx=s(48323),mx=s(12651);function gx(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function _x(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",7),t.NdJ("voSelected",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.loadMember(a))}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("vos",e.vos)}}function vx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.STATUS")," ")}function xx(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const yx=function(){return["id","recent","name","description","expiration","groupStatus"]};function bx(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-groups-list",17),t.NdJ("refreshTable",function(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.loadMember(a.selectedVo))}),t.qZA()}if(2&n){const e=t.oxw(4);t.Q6J("groups",e.groups)("memberId",e.member.id)("memberGroupStatus",e.member.groupStatus)("displayedColumns",t.DdM(4,yx))}}const Ac=function(n,r){return["/organizations",n,"members",r]};function Tx(n,r){if(1&n&&(t.TgZ(0,"div")(1,"div",10)(2,"span",11),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"a",12),t.NdJ("auxclick",function(i){return i.preventDefault()}),t._uU(6),t.qZA()(),t.TgZ(7,"mat-card",13),t._UZ(8,"perun-web-apps-member-overview-membership",14),t.qZA(),t.TgZ(9,"p",15),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.YNc(12,bx,1,5,"perun-web-apps-groups-list",16),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.hij("",t.lcZ(4,8,"USER_DETAIL.ACCOUNTS.MEMBER"),":"),t.xp6(2),t.Q6J("perunWebAppsMiddleClickRouterLink",t.WLB(12,Ac,e.selectedVo.id.toString(),e.member.id.toString()))("routerLink",t.WLB(15,Ac,e.selectedVo.id,e.member.id)),t.xp6(1),t.hij("",e.member.id," "),t.xp6(2),t.Q6J("member",e.member)("voId",e.selectedVo.id),t.xp6(2),t.Oqu(t.lcZ(11,10,"USER_DETAIL.ACCOUNTS.GROUPS")),t.xp6(2),t.Q6J("ngIf",!e.loading)}}function Cx(n,r){if(1&n&&(t.YNc(0,xx,1,0,"mat-spinner",1),t.YNc(1,Tx,13,18,"div",4)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function wx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_ATT")," ")}function Ax(n,r){1&n&&t._UZ(0,"mat-spinner")}function Sx(n,r){if(1&n&&t._UZ(0,"app-one-entity-attribute-page",19),2&n){const e=t.oxw(3);t.Q6J("entity","member")("entityId",e.member.id)}}function Ex(n,r){if(1&n&&(t.YNc(0,Ax,1,0,"mat-spinner",4),t.YNc(1,Sx,1,2,"app-one-entity-attribute-page",18)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function Dx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_GROUP_ATT")," ")}function Lx(n,r){1&n&&t._UZ(0,"mat-spinner")}function kx(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",21),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","group")}}function Ix(n,r){if(1&n&&(t.YNc(0,Lx,1,0,"mat-spinner",4),t.YNc(1,kx,1,3,"app-two-entity-attribute-page",20)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function Ox(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_RESOURCE_ATT")," ")}function Mx(n,r){1&n&&t._UZ(0,"mat-spinner")}function Nx(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",21),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","resource")}}function Px(n,r){if(1&n&&(t.YNc(0,Mx,1,0,"mat-spinner",4),t.YNc(1,Nx,1,3,"app-two-entity-attribute-page",20)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function Fx(n,r){1&n&&(t.TgZ(0,"mat-tab-group")(1,"mat-tab"),t.YNc(2,vx,2,3,"ng-template",8),t.YNc(3,Cx,2,2,"ng-template",9),t.qZA(),t.TgZ(4,"mat-tab"),t.YNc(5,wx,2,3,"ng-template",8),t.YNc(6,Ex,2,2,"ng-template",9),t.qZA(),t.TgZ(7,"mat-tab"),t.YNc(8,Dx,2,3,"ng-template",8),t.YNc(9,Ix,2,2,"ng-template",9),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,Ox,2,3,"ng-template",8),t.YNc(12,Px,2,2,"ng-template",9),t.qZA()())}function Rx(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"USER_DETAIL.ACCOUNTS.NO_VOS")))}let Bx=(()=>{class n{constructor(e,i,a,o){this.route=e,this.usersService=i,this.membersService=a,this.groupService=o,this.initLoading=!1,this.loading=!1,this.vos=[],this.selectedVo=null,this.member=null,this.groups=[]}ngOnInit(){this.initLoading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.usersService.getVosWhereUserIsMember(this.userId).subscribe({next:i=>{this.vos=i,this.vos.length&&this.loadMember(this.vos.sort(fe.aC)[0]),this.initLoading=!1},error:()=>this.initLoading=!1})})}loadMember(e){this.loading=!0,this.selectedVo=e,this.membersService.getMemberByUser(this.selectedVo.id,this.userId).subscribe({next:i=>{this.membersService.getRichMemberWithAttributes(i.id).subscribe({next:a=>{this.member=a,this.groupService.getMemberRichGroupsWithAttributesByNames(this.member.id,[wc.r.MEMBER_DEF_GROUP_EXPIRATION,wc.r.MEMBER_GROUP_STATUS]).subscribe({next:o=>{this.groups=o,this.loading=!1},error:()=>this.loading=!1})},error:()=>this.loading=!1})},error:()=>this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(H.Fv),t.Y36(H.uq),t.Y36(H.ff))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-accounts"]],decls:8,vars:7,consts:[[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[1,"d-flex"],["class","w-50",3,"vos","voSelected",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-50",3,"vos","voSelected"],["matTabLabel",""],["matTabContent",""],[1,"mt-4","mb-4"],[1,"subtitle","mr-2"],[1,"member-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"mat-elevation-z3","membership-card"],[3,"member","voId"],[1,"mt-4","subtitle"],[3,"groups","memberId","memberGroupStatus","displayedColumns","refreshTable",4,"ngIf"],[3,"groups","memberId","memberGroupStatus","displayedColumns","refreshTable"],[3,"entity","entityId",4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,gx,1,0,"mat-spinner",1),t.TgZ(4,"div",2),t.YNc(5,_x,1,1,"perun-web-apps-vo-search-select",3),t.qZA(),t.YNc(6,Fx,13,0,"mat-tab-group",4),t.YNc(7,Rx,3,3,"perun-web-apps-alert",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"USER_DETAIL.ACCOUNTS.TITLE")),t.xp6(2),t.Q6J("ngIf",i.initLoading),t.xp6(2),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!i.initLoading&&0===i.vos.length))},dependencies:[m.O5,p.yS,jt.SP,jt.uD,jt.uX,jt.Vc,tt.Ou,ux.a8,K.w,hx.W,dx.M,bc.Y,Us.Q,px.b,fx.Y,mx.t,u.X$],styles:[".subtitle[_ngcontent-%COMP%]{font-size:1.2rem}.membership-card[_ngcontent-%COMP%]{max-width:400px}"]}),n})(),Sc=(()=>{class n{transform(e){if(e)return e.split(".").pop()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"parseEventName",type:n,pure:!0}),n})();function Zx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.OBJECTS")," ")}function Vx(n,r){if(1&n&&t._UZ(0,"pre",9),2&n){const e=t.oxw();t.Q6J("innerHTML",e.syntaxHighlight(e.eventData),t.oJD)}}function Gx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.MESSAGE")," ")}function Ux(n,r){if(1&n&&(t.TgZ(0,"div",10),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.message)}}let zx=(()=>{class n{constructor(e,i,a){this.dialogRef=e,this.data=i,this.clipboard=a,this.tabIndex=0,this.eventData={}}ngOnInit(){const e=this.data.message.event;this.actor=this.data.message.actor,this.createdAt=this.data.message.createdAt,e.message&&(this.message=e.message,delete e.message),e.name&&(this.title=e.name,delete e.name),this.eventData=e}tabChanged(e){this.tabIndex=e.index}copyObjects(){this.clipboard.copy(JSON.stringify(this.eventData,null,2))}copyMessage(){this.clipboard.copy(this.message)}syntaxHighlight(e){return"string"!=typeof e&&(e=JSON.stringify(e,void 0,2)),(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(i){let a="number";return i.startsWith('"')?a=i.endsWith(":")?"key":"string":/true|false/.test(i)?a="boolean":i.includes("null")&&(a="null"),''+i+""})}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Ln.TU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-message-detail-dialog"]],decls:26,vars:19,consts:[[1,"admin-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-button","",3,"click"],[3,"innerHTML"],["data-cy","audit-message-text"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"parseEventName"),t.qZA(),t.TgZ(5,"div",2)(6,"div"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"mat-tab-group",3),t.NdJ("selectedTabChange",function(o){return i.tabChanged(o)}),t.TgZ(11,"mat-tab"),t.YNc(12,Zx,2,3,"ng-template",4),t.YNc(13,Vx,1,1,"ng-template",5),t.qZA(),t.TgZ(14,"mat-tab"),t.YNc(15,Gx,2,3,"ng-template",4),t.YNc(16,Ux,2,1,"ng-template",5),t.qZA()()(),t.TgZ(17,"div",6)(18,"button",7),t.NdJ("click",function(){return i.onClose()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",8),t.NdJ("click",function(){return 0===i.tabIndex?i.copyObjects():i.copyMessage()}),t._uU(22),t.ALo(23,"translate"),t.TgZ(24,"mat-icon"),t._uU(25,"content_copy"),t.qZA()()()()),2&e){let a;t.xp6(2),t.hij(" ",t.lcZ(3,7,null!==(a=t.lcZ(4,9,i.title))&&void 0!==a?a:"DIALOGS.AUDIT_MESSAGE_DETAIL.TITLE")," "),t.xp6(5),t.HOy(" ",t.lcZ(8,11,"DIALOGS.AUDIT_MESSAGE_DETAIL.ACTOR"),": ",i.actor,", ",t.lcZ(9,13,"DIALOGS.AUDIT_MESSAGE_DETAIL.CREATED_AT"),": ",i.createdAt," "),t.xp6(12),t.hij(" ",t.lcZ(20,15,"DIALOGS.AUDIT_MESSAGE_DETAIL.CLOSE")," "),t.xp6(3),t.hij(" ",t.lcZ(23,17,"DIALOGS.AUDIT_MESSAGE_DETAIL.COPY")," ")}},dependencies:[l.Hw,G.lW,jt.SP,jt.uD,jt.uX,jt.Vc,M.uh,M.xY,M.H8,u.X$,Sc],styles:[".key{color:brown}.string{color:green}.number{color:#ff8c00}.boolean{color:#00f}.null{color:#f0f}\n"],encapsulation:2}),n})();var Hx=s(98739),Yx=s(56451),Wx=s(62383);function Xx(n,r){1&n&&(t.TgZ(0,"div",16),t._UZ(1,"mat-spinner",17),t.qZA())}function $x(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"AUDIT_MESSAGES_LIST.ID")," "))}function Qx(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function jx(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"AUDIT_MESSAGES_LIST.TIMESTAMP")," "))}function Jx(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.ALo(2,"parseDate"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.createdAt,!0)," ")}}function Kx(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.EVENT_NAME")))}function qx(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.ALo(2,"parseEventName"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.event.name)," ")}}function ty(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.ACTOR")))}function ey(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.actor," ")}}function ny(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.MESSAGE")))}function iy(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.event.message," ")}}function ry(n,r){1&n&&t._UZ(0,"th",20)}function ay(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",19)(1,"button",21),t.NdJ("click",function(){const o=t.CHM(e).$implicit,v=t.oxw();return t.KtG(v.viewDetails(o))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"AUDIT_MESSAGES_LIST.VIEW_DETAIL")," "))}function sy(n,r){1&n&&t._UZ(0,"tr",22)}function oy(n,r){1&n&&t._UZ(0,"tr",23)}function ly(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_AUDIT_MESSAGES"),"\n"))}let cy=(()=>{class n{constructor(e,i,a){this.dialog=e,this.dynamicPaginatingService=i,this.tableConfigService=a,this.displayedColumns=["id","timestamp","name","actor","event.message","detail"],this.pageSizeOptions=fe.f7}static getExportDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"timestamp":return(0,m.p6)(e.createdAt,"d.M.y H.mm.ss","en");case"name":return e.event.name.split(".").pop();case"actor":return e.actor;case"event.message":return e.event.message;default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,Yx.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,ae.b)(()=>this.loadAuditMessagesPage())).subscribe()}ngOnInit(){this.dataSource=new Z.Hy(this.dynamicPaginatingService,null),this.dataSource.loadAuditMessages(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING",this.selectedEvents)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadAuditMessagesPage())}loadAuditMessagesPage(){this.dataSource.loadAuditMessages(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.selectedEvents)}viewDetails(e){const i=(0,fe.kZ)(),a=JSON.parse(JSON.stringify(e));i.minWidth="700px",i.maxWidth="1000px",i.data={message:a},this.dialog.open(zx,i)}exportDisplayedData(e){(0,fe.O6)((0,fe.Xn)(this.dataSource.getData(),this.displayedColumns.filter(i=>"detail"!==i),n.getExportDataForColumn),e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(Z.ly),t.Y36(Sn.dB))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-messages-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(fe.l9,7),t.Gf(sn.YE,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.sort=a.first)}},inputs:{tableId:"tableId",refresh:"refresh",displayedColumns:"displayedColumns",selectedEvents:"selectedEvents"},features:[t._Bn([{provide:Hx.ye,useClass:Z.Be}]),t.TTD],decls:28,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","allowExportAll","exportDisplayedData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","id","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","actor"],["matColumnDef","event.message"],["matColumnDef","detail"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["data-cy","audit-message-detail-button","color","accent","mat-flat-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.ALo(1,"async"),t.TgZ(2,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)}),t.YNc(3,Xx,2,0,"div",2),t.ALo(4,"async"),t.TgZ(5,"table",3),t.ynx(6,4),t.YNc(7,$x,3,3,"th",5),t.YNc(8,Qx,2,1,"td",6),t.BQk(),t.ynx(9,7),t.YNc(10,jx,3,3,"th",5),t.YNc(11,Jx,3,4,"td",6),t.BQk(),t.ynx(12,8),t.YNc(13,Kx,3,3,"th",9),t.YNc(14,qx,3,3,"td",6),t.BQk(),t.ynx(15,10),t.YNc(16,ty,3,3,"th",9),t.YNc(17,ey,2,1,"td",6),t.BQk(),t.ynx(18,11),t.YNc(19,ny,3,3,"th",9),t.YNc(20,iy,2,1,"td",6),t.BQk(),t.ynx(21,12),t.YNc(22,ry,1,0,"th",9),t.YNc(23,ay,4,3,"td",6),t.BQk(),t.YNc(24,sy,1,0,"tr",13),t.YNc(25,oy,1,0,"tr",14),t.qZA()()(),t.YNc(26,ly,3,3,"perun-web-apps-alert",15),t.ALo(27,"async")),2&e&&(t.Q6J("hidden",0===i.dataSource.allObjectCount&&!1===t.lcZ(1,10,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataLength",i.dataSource.allObjectCount)("pageSizeOptions",i.pageSizeOptions)("tableId",i.tableId)("allowExportAll",!1),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,12,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(19),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.allObjectCount&&!1===t.lcZ(27,14,i.dataSource.loading$)))},dependencies:[m.O5,G.lW,sn.YE,sn.nU,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,tt.Ou,K.w,z.l,m.Ov,u.X$,Wx.M,Sc]}),n})();var uy=s(89593);let hy=(()=>{class n{constructor(){this.auditLogsSelected=new t.vpe,this.selectClosed=new t.vpe,this.searchFunction=e=>e,this.mainTextFunction=e=>e,this.secondaryTextFunction=()=>""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-audit-log-search-select"]],inputs:{auditLogs:"auditLogs"},outputs:{auditLogsSelected:"auditLogsSelected",selectClosed:"selectClosed"},decls:3,vars:9,consts:[[1,"w-450"],[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","multiple","disableAutoSelect","selectPlaceholder","entitySelected","selectClosed"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-entity-search-select",1),t.NdJ("entitySelected",function(o){return i.auditLogsSelected.emit(o)})("selectClosed",function(o){return i.selectClosed.emit(o)}),t.ALo(2,"translate"),t.qZA()()),2&e&&(t.xp6(1),t.Q6J("entities",i.auditLogs)("searchFunction",i.searchFunction)("mainTextFunction",i.mainTextFunction)("secondaryTextFunction",i.secondaryTextFunction)("multiple",!0)("disableAutoSelect",!0)("selectPlaceholder",t.lcZ(2,7,"ADMIN.AUDIT_LOG.SEARCH_DESCRIPTION")))},dependencies:[uy.i,u.X$],styles:[".w-450[_ngcontent-%COMP%]{width:450px}"]}),n})(),dy=(()=>{class n{constructor(e){this.auditMessagesManagerService=e,this.tableId=Sn.yW,this.refresh=!1,this.selectedEvents=[],this.eventOptions=[]}ngOnInit(){this.auditMessagesManagerService.findAllPossibleEvents().subscribe(e=>{this.eventOptions=e.sort()})}refreshTable(){this.refresh=!this.refresh}toggleEvent(e){this.selectedEvents.splice(0,this.selectedEvents.length,...e)}refreshOnClosed(){this.selectedEvents=[...this.selectedEvents]}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.jw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-audit-log"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[1,"align-elements"],[1,"d-flex","align-items-center"],[3,"refresh"],[3,"auditLogs","auditLogsSelected","selectClosed"],[3,"refresh","tableId","selectedEvents"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"div",2)(5,"perun-web-apps-refresh-button",3),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(6,"perun-web-apps-audit-log-search-select",4),t.NdJ("auditLogsSelected",function(o){return i.toggleEvent(o)})("selectClosed",function(){return i.refreshOnClosed()}),t.qZA()(),t._UZ(7,"app-audit-messages-list",5),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"ADMIN.AUDIT_LOG.TITLE")),t.xp6(5),t.Q6J("auditLogs",i.eventOptions),t.xp6(1),t.Q6J("refresh",i.refresh)("tableId",i.tableId)("selectedEvents",i.selectedEvents))},dependencies:[cy,Ue.t,hy,u.X$]}),n})();var py=s(44850);let fy=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-edit-enforce-consents-dialog"]],decls:26,vars:27,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mt-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",1)(6,"p"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t._UZ(10,"mat-divider"),t.TgZ(11,"p",2),t._uU(12),t.qZA(),t._UZ(13,"mat-divider"),t.TgZ(14,"perun-web-apps-alert",3),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"div",4)(19,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"button",6),t.NdJ("click",function(){return i.onSubmit()}),t._uU(23),t.ALo(24,"translate"),t.ALo(25,"translate"),t.qZA()()()),2&e&&(t.Tol(i.data.theme),t.xp6(2),t.hij(" ",i.data.enforceConsents?t.lcZ(3,9,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_TITLE"):t.lcZ(4,11,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_TITLE")," "),t.xp6(5),t.hij(" ",i.data.enforceConsents?t.lcZ(8,13,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_DESCRIPTION"):t.lcZ(9,15,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_DESCRIPTION")," "),t.xp6(5),t.Oqu(i.data.consentHubName),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(16,17,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BOLD_DESCRIPTION"):t.lcZ(17,19,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BOLD_DESCRIPTION")," "),t.xp6(5),t.hij(" ",t.lcZ(21,21,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.CANCEL_BUTTON")," "),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(24,23,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BUTTON"):t.lcZ(25,25,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BUTTON")," "))},dependencies:[G.lW,M.uh,M.xY,M.H8,py.d,K.w,u.X$]}),n})();function my(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&n){const e=t.oxw().ngIf,i=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",i.selection.hasValue()&&e.all)("indeterminate",i.selection.hasValue()&&!e.all)}}const gy=function(n){return{name:n}};function _y(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(2);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,i.selection.isSelected(e)),t.VKq(7,gy,e.name)))("checked",i.selection.isSelected(e))}}function vy(n,r){1&n&&(t.ynx(0,14),t.YNc(1,my,4,7,"th",15),t.YNc(2,_y,4,9,"td",16),t.BQk())}function xy(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ID")," "))}function yy(n,r){if(1&n&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function by(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NAME")," "))}function Ty(n,r){if(1&n&&(t.TgZ(0,"td",23),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&n){const e=r.$implicit;t.Q2q("data-cy","",t.lcZ(1,2,e.name),"-name-td"),t.xp6(2),t.hij(" ",e.name," ")}}function Cy(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ENFORCE_CONSENTS")," "))}function wy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",23)(1,"mat-slide-toggle",24),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw();return t.KtG(T.changeEnforceFlag(v,a))}),t.qZA()()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("checked",e.enforceConsents)}}function Ay(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.FACILITIES")," "))}function Sy(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.TgZ(2,"span",26),t._uU(3),t.qZA(),t._UZ(4,"br"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.name," "),t.xp6(2),t.hij(" #",e.id,"")}}function Ey(n,r){if(1&n&&(t.TgZ(0,"td",23),t.YNc(1,Sy,5,2,"span",25),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Q6J("ngForOf",e.facilities)}}function Dy(n,r){1&n&&t._UZ(0,"tr",27)}function Ly(n,r){1&n&&t._UZ(0,"tr",28)}function ky(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_CONSENT_HUBS"),"\n"))}function Iy(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_FILTER_RESULTS"),"\n"))}const Oy=function(n){return{all:n}};let My=(()=>{class n{constructor(e,i,a,o,v){this.tableCheckbox=e,this.dialog=i,this.notificator=a,this.translate=o,this.consentsManager=v,this.filterValue="",this.displayedColumns=["select","id","name","enforceConsents","facilities"],this.selection=new B.Ov(!0,[]),this.exporting=!1,this.pageSizeOptions=fe.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"name":return e.name;case"enforceConsents":return e.enforceConsents?"true":"false";case"facilities":{let a="";return e.facilities.forEach(o=>a+=o.name+" #"+String(o.id)+";"),a.slice(0,-1)}default:return""}}ngOnChanges(){this.dataSource=new R.by(this.consentHubs),this.setDataSource()}exportAllData(e){(0,fe.O6)((0,fe.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=i+this.dataSource.paginator.pageSize;(0,fe.O6)((0,fe.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,a),this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,i)=>(0,fe.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,fe.pR)(e,i,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}changeEnforceFlag(e,i){i.source.checked=e.enforceConsents;const a=(0,fe.kZ)();a.width="550px",a.data={theme:"admin-theme",enforceConsents:e.enforceConsents,consentHubName:e.name},this.dialog.open(fy,a).afterClosed().subscribe(v=>{v&&(e.enforceConsents=!e.enforceConsents,this.consentsManager.updateConsentHub({consentHub:e}).subscribe(T=>{i.source.checked=T.enforceConsents,e.enforceConsents=T.enforceConsents,this.translate.get("SHARED.COMPONENTS.CONSENT_HUBS_LIST.CHANGE_ENFORCE_CONSENTS_SUCCESS").subscribe(N=>{this.notificator.showSuccess(N)})},()=>e.enforceConsents=!e.enforceConsents))})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.UA),t.Y36(M.uw),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.WY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-consent-hubs-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(fe.l9,7),t.Gf(sn.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{consentHubs:"consentHubs",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",selection:"selection"},features:[t.TTD],decls:21,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enforceConsents"],["matColumnDef","facilities"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"checked","change"],[4,"ngFor","ngForOf"],[1,"text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)})("exportAllData",function(o){return i.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,vy,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,xy,3,3,"th",5),t.YNc(7,yy,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,by,3,3,"th",5),t.YNc(10,Ty,3,4,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,Cy,3,3,"th",5),t.YNc(13,wy,2,1,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,Ay,3,3,"th",5),t.YNc(16,Ey,2,1,"td",8),t.BQk(),t.YNc(17,Dy,1,0,"tr",11),t.YNc(18,Ly,1,0,"tr",12),t.qZA()()(),t.YNc(19,ky,3,3,"perun-web-apps-alert",13),t.YNc(20,Iy,3,3,"perun-web-apps-alert",13)),2&e&&(t.Q6J("hidden",0===i.consentHubs.length||0===i.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",i.tableId)("dataLength",i.dataSource.filteredData.length)("pageSizeOptions",i.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",i.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Oy,t.xi3(4,10,i.dataSource,i.selection.selected.length))),t.xp6(14),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.consentHubs.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.consentHubs.length))},dependencies:[m.sg,m.O5,sn.YE,sn.nU,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,Nn.oG,Tt.Rr,K.w,z.l,u.X$,$e.R,X.I,lt.G,A.r]}),n})();function Ny(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",8),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.CONSENT_HUBS.GLOBAL_DISABLED")," "))}function Py(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.evaluateConsents())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.globalForceConsents||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.CONSENT_HUBS.EVALUATE_CONSENTS")," ")}}function Fy(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function Ry(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-consent-hubs-list",11),2&n){const e=t.oxw();t.Q6J("consentHubs",e.consentHubs)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)}}let By=(()=>{class n{constructor(e,i,a,o,v,T){this.consentsManager=e,this.authResolver=i,this.notificator=a,this.translate=o,this.store=v,this.dialog=T,this.loading=!1,this.tableId=Sn.HE,this.selection=new B.Ov(!0,[]),this.filterValue="",this.consentHubs=[]}ngOnInit(){this.globalForceConsents=this.store.getProperty("enforce_consents"),this.refreshTable()}applyFilter(e){this.filterValue=e}refreshTable(){this.loading=!0,this.consentsManager.getAllConsentHubs().subscribe(e=>{this.consentHubs=e,this.loading=!1})}evaluateConsents(){const e=(0,fe.kZ)();e.width="500px",e.data={title:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_TITLE"),theme:"admin-theme",description:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_DESCRIPTION"),items:this.selection.selected.map(a=>a.name),type:"confirmation",showAsk:!1},this.dialog.open(ma.Ts,e).afterClosed().subscribe(a=>{a&&this.evaluateConsentsForConsentHubs()})}evaluateConsentsForConsentHubs(){this.loading=!0;const e=this.selection.selected.map(i=>i.id);this.consentsManager.evaluateConsentsForConsentHubs(e).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("ADMIN.CONSENT_HUBS.EVALUATION_FINISH")),this.selection.clear(),this.loading=!1},error:()=>this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.WY),t.Y36(Z.x4),t.Y36(Z.V6),t.Y36(Z.Te),t.Y36(Z.d6),t.Y36(M.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-admin-consent-hubs"]],decls:12,vars:12,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[3,"refresh"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","action-button mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"consentHubs","selection","filterValue","tableId",4,"ngIf"],["alert_type","warn"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"consentHubs","selection","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ny,3,3,"perun-web-apps-alert",1),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(6,"span",3),t.ALo(7,"translate"),t.YNc(8,Py,3,4,"button",4),t.qZA(),t.TgZ(9,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(10,Fy,1,0,"mat-spinner",6),t.YNc(11,Ry,1,4,"app-perun-web-apps-consent-hubs-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,8,"ADMIN.CONSENT_HUBS.TITLE")),t.xp6(2),t.Q6J("ngIf",!i.globalForceConsents),t.xp6(2),t.s9C("matTooltip",t.lcZ(7,10,"ADMIN.CONSENT_HUBS.TOOLTIP")),t.Q6J("matTooltipDisabled",i.globalForceConsents),t.xp6(2),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.CONSENT_HUBS.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,ln.gM,My,K.w,Ue.t,Vn.L,u.X$]}),n})();var Zy=s(57788),zs=s(71992),Vy=s(51403);const Gy=[{path:"",component:C,canActivateChild:[zs.a],children:[{path:"",component:I,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:V,data:{animation:"AdminAttributesPage"}},{path:"users",component:rv.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:ax,data:{animation:"AdminOwnersPage"}},{path:"services",component:Rv.F,data:{animation:"AdminServicesPage"}},{path:"audit_log",component:dy,data:{animation:"AdminAuditLogPage"}},{path:"visualizer",component:it,children:[{path:"",component:Mt,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:xt,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Yn,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:iv,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:wv,data:{animation:"AdminExtSourcesPage"}},{path:"consent_hubs",component:By,data:{animation:"AdminConsentHubsPage"}},{path:"searcher",component:Zy.g,data:{animation:"AdminSearcherPage"}}]},{path:"users/:userId",component:mv,canActivateChild:[zs.a],children:[{path:"",component:gv.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:Bx,data:{animation:"UserAccountsPage"}},{path:"attributes",component:xv.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:_v.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:vv.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:Fv,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:cx,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:Uv,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Qv,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:Av.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:Sv.R,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:I0.d,data:{animation:"AssociatedUsersPage"}},{path:"bans",component:Vy.Q,data:{animation:"UserBansPage"}}]},{path:"services/:serviceId",component:a0,canActivateChild:[zs.a],children:[{path:"",component:s0,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:k0,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:V0,data:{animation:"ServiceDestinationsPage"}}]}];let Uy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.Bz.forChild(Gy),p.Bz]}),n})();var zy=s(14264),Hy=s(63189),Yy=s(38338);let Wy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[Zp,W_,m.ez,Uy,zy.m,Hy.r,Bi.ez,Nt.d4,Yy.UsersModule]}),n})()},70242:(w,D,s)=>{"use strict";s.d(D,{q:()=>ie});var c=s(96308),x=s(95017),_=s(30671),m=s(9244),p=s(81591),t=s(94650),d=s(36895),l=s(97392),h=s(56709),f=s(10266),u=s(98380),g=s(18750),C=s(89383),L=s(64597),I=s(9185),B=s(8231),M=s(14849);function R(Ot,te){if(1&Ot){const jt=t.EpF();t.TgZ(0,"th",22)(1,"mat-checkbox",23),t.NdJ("change",function(At){t.CHM(jt);const Ht=t.oxw(2);return t.KtG(At?Ht.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&Ot){const jt=t.oxw().ngIf,se=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,jt.all)))("checked",se.selection.hasValue()&&jt.all)("indeterminate",se.selection.hasValue()&&!jt.all)}}const Z=function(Ot){return{name:Ot}};function H(Ot,te){if(1&Ot){const jt=t.EpF();t.TgZ(0,"td",24)(1,"mat-checkbox",25),t.NdJ("change",function(At){const Zt=t.CHM(jt).$implicit,Kt=t.oxw(2);return t.KtG(At?Kt.selection.toggle(Zt):null)})("click",function(At){return At.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&Ot){const jt=te.$implicit,se=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,se.selection.isSelected(jt)),t.VKq(7,Z,jt.destination)))("checked",se.selection.isSelected(jt))}}function G(Ot,te){1&Ot&&(t.ynx(0,19),t.YNc(1,R,4,7,"th",20),t.YNc(2,H,4,9,"td",21),t.BQk())}function tt(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")," "))}function K(Ot,te){if(1&Ot&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.hij(" ",jt.id," ")}}function st(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")," "))}function j(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.Oqu(jt.service.name)}}function W(Ot,te){1&Ot&&t._UZ(0,"th",29)}function et(Ot,te){1&Ot&&(t.TgZ(0,"mat-icon",31),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&Ot&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.WARN"))}function at(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t.YNc(1,et,3,3,"mat-icon",30),t.qZA()),2&Ot){const jt=te.$implicit,se=t.oxw();t.xp6(1),t.Q6J("ngIf",!se.services.has(jt.service.id))}}function Y(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")," "))}function nt(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.Oqu(jt.facility.name)}}function rt(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")," "))}function q(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&Ot){const jt=te.$implicit;t.uIk("data-cy",t.lcZ(1,2,jt.destination)),t.xp6(2),t.hij(" ",jt.destination," ")}}function F(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")," "))}function E(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.Oqu(jt.type.toUpperCase())}}function ut(Ot,te){1&Ot&&t._UZ(0,"th",29)}function ft(Ot,te){1&Ot&&(t.TgZ(0,"mat-icon",33),t.ALo(1,"translate"),t._uU(2," check_circle_outline "),t.qZA()),2&Ot&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function Dt(Ot,te){1&Ot&&(t.TgZ(0,"mat-icon",33),t.ALo(1,"translate"),t._uU(2," block "),t.qZA()),2&Ot&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function St(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t.YNc(1,ft,3,3,"mat-icon",32),t.YNc(2,Dt,3,3,"mat-icon",32),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.Q6J("ngIf",!jt.blocked),t.xp6(1),t.Q6J("ngIf",jt.blocked)}}function Qt(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")," "))}function pe(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.Oqu(jt.propagationType)}}function wt(Ot,te){1&Ot&&t._UZ(0,"tr",34)}function yt(Ot,te){1&Ot&&t._UZ(0,"tr",35)}function Nt(Ot,te){1&Ot&&(t.TgZ(0,"perun-web-apps-alert",36),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function zt(Ot,te){1&Ot&&(t.TgZ(0,"perun-web-apps-alert",36),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}const de=function(Ot){return{all:Ot}};let ie=(()=>{class Ot{constructor(jt,se){this.authResolver=jt,this.tableCheckbox=se,this.destinations=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.pageSizeOptions=m.f7}set matSort(jt){this.sort=jt,this.setDataSource()}static getDataForColumn(jt,se){switch(se){case"destinationId":return jt.id.toString();case"service":return jt.service.name;case"facility":return jt.facility.name;case"destination":return jt.destination;case"type":return jt.type;case"status":return jt.blocked?"blocked":"allowed";case"propagationType":return jt.propagationType;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(jt=>"destinationId"!==jt)),this.dataSource=new _.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}exportAllData(jt){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,Ot.getDataForColumn),jt)}exportDisplayedData(jt){const se=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,At=se+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(se,At),this.displayedColumns,Ot.getDataForColumn),jt)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(jt,se)=>(0,m.Sd)(jt,se,this.displayedColumns,Ot.getDataForColumn),this.dataSource.sortData=(jt,se)=>(0,m.pR)(jt,se,Ot.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return Ot.\u0275fac=function(jt){return new(jt||Ot)(t.Y36(p.x4),t.Y36(p.UA))},Ot.\u0275cmp=t.Xpm({type:Ot,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(jt,se){if(1&jt&&(t.Gf(m.l9,7),t.Gf(c.YE,7)),2&jt){let At;t.iGM(At=t.CRH())&&(se.child=At.first),t.iGM(At=t.CRH())&&(se.matSort=At.first)}},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",services:"services"},features:[t.TTD],decls:33,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","destinationId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","service"],["mat-cell","",4,"matCellDef"],["matColumnDef","warn"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","facility"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","status"],["matColumnDef","propagationType"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","warn","matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"warn",3,"matTooltip"],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(jt,se){1&jt&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(Ht){return se.exportDisplayedData(Ht)})("exportAllData",function(Ht){return se.exportAllData(Ht)}),t.TgZ(2,"table",2),t.YNc(3,G,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,tt,3,3,"th",5),t.YNc(7,K,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,st,3,3,"th",5),t.YNc(10,j,2,1,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,W,1,0,"th",10),t.YNc(13,at,2,1,"td",8),t.BQk(),t.ynx(14,11),t.YNc(15,Y,3,3,"th",5),t.YNc(16,nt,2,1,"td",8),t.BQk(),t.ynx(17,12),t.YNc(18,rt,3,3,"th",5),t.YNc(19,q,3,4,"td",8),t.BQk(),t.ynx(20,13),t.YNc(21,F,3,3,"th",5),t.YNc(22,E,2,1,"td",8),t.BQk(),t.ynx(23,14),t.YNc(24,ut,1,0,"th",10),t.YNc(25,St,3,2,"td",8),t.BQk(),t.ynx(26,15),t.YNc(27,Qt,3,3,"th",5),t.YNc(28,pe,2,1,"td",8),t.BQk(),t.YNc(29,wt,1,0,"tr",16),t.YNc(30,yt,1,0,"tr",17),t.qZA()()(),t.YNc(31,Nt,3,3,"perun-web-apps-alert",18),t.YNc(32,zt,3,3,"perun-web-apps-alert",18)),2&jt&&(t.Q6J("hidden",0===se.dataSource.filteredData.length||0===se.destinations.length),t.xp6(1),t.Q6J("pageSizeOptions",se.pageSizeOptions)("dataLength",se.dataSource.filteredData.length)("tableId",se.tableId),t.xp6(1),t.Q6J("dataSource",se.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,de,t.xi3(4,10,se.dataSource,se.selection.selected.length))),t.xp6(26),t.Q6J("matHeaderRowDef",se.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",se.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===se.dataSource.filteredData.length&&0!==se.destinations.length),t.xp6(1),t.Q6J("ngIf",0===se.destinations.length))},dependencies:[d.O5,l.Hw,c.YE,c.nU,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,h.oG,f.gM,u.w,g.l,C.X$,L.R,I.I,B.G,M.r],styles:[".warn[_ngcontent-%COMP%]{color:#ebe134}"]}),Ot})()},89466:(w,D,s)=>{"use strict";s.d(D,{u:()=>I});var c=s(61744),x=s(65412),_=s(30671),m=s(81591),p=s(94650),t=s(36895),d=s(4859),l=s(51572),h=s(98380),f=s(70242),u=s(89383);function g(B,M){1&B&&p._UZ(0,"mat-spinner",6)}function C(B,M){if(1&B&&p._UZ(0,"app-perun-web-apps-destination-list",11),2&B){const R=p.oxw(2);p.Q6J("destinations",R.destinations)("displayedColumns",R.displayedColumns)}}function L(B,M){if(1&B&&(p.TgZ(0,"div",7)(1,"perun-web-apps-alert",8),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"p"),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"div",9),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.YNc(10,C,1,2,"app-perun-web-apps-destination-list",10),p.qZA()),2&B){const R=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,4,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),p.xp6(3),p.Oqu(p.lcZ(6,6,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),p.xp6(3),p.hij(" ",p.lcZ(9,8,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),p.xp6(2),p.Q6J("ngIf",!R.loading)}}let I=(()=>{class B{constructor(R,Z,H,G,tt){this.dialogRef=R,this.data=Z,this.notificator=H,this.translate=G,this.serviceManager=tt,this.displayedColumns=[],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.destinations=this.data.destinations,this.displayedColumns="admin-theme"===this.theme?["destinationId","facility","destination","type","propagationType"]:["destinationId","service","destination","type","propagationType"],this.dataSource=new _.by(this.data.destinations)}onCancel(){this.dialogRef.close(!1)}deleteDestinations(){this.serviceManager.removeDestinationsByRichDestinations({richDestinations:this.destinations}).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_DESTINATIONS.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}onConfirm(){this.loading=!0,this.deleteDestinations()}}return B.\u0275fac=function(R){return new(R||B)(p.Y36(x.so),p.Y36(x.WI),p.Y36(m.V6),p.Y36(m.Te),p.Y36(c.KK))},B.\u0275cmp=p.Xpm({type:B,selectors:[["app-perun-web-apps-remove-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","warn"],[1,"font-weight-bold"],[3,"destinations","displayedColumns",4,"ngIf"],[3,"destinations","displayedColumns"]],template:function(R,Z){1&R&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,g,1,0,"mat-spinner",1),p.YNc(5,L,11,10,"div",2),p.TgZ(6,"div",3)(7,"button",4),p.NdJ("click",function(){return Z.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return Z.onConfirm()}),p._uU(11),p.ALo(12,"translate"),p.qZA()()()),2&R&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),p.xp6(2),p.Tol(Z.theme),p.xp6(1),p.Q6J("ngIf",Z.loading),p.xp6(1),p.Q6J("ngIf",!Z.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",Z.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM")," "))},dependencies:[t.O5,d.lW,x.uh,x.xY,x.H8,l.Ou,h.w,f.q,u.X$]}),B})()},23256:(w,D,s)=>{"use strict";s.d(D,{Q:()=>q});var c=s(96308),x=s(95017),_=s(30671),m=s(9244),p=s(81591),t=s(94650),d=s(36895),l=s(56709),h=s(98380),f=s(18750),u=s(89383),g=s(9185),C=s(8231),L=s(14849);function I(F,E){if(1&F){const ut=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(Dt){t.CHM(ut);const St=t.oxw(2);return t.KtG(Dt?St.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&F){const ut=t.oxw().ngIf,ft=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,ut.all)))("checked",ft.selection.hasValue()&&ut.all)("indeterminate",ft.selection.hasValue()&&!ut.all)}}const B=function(F){return{name:F}};function M(F,E){if(1&F){const ut=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(Dt){const Qt=t.CHM(ut).$implicit,pe=t.oxw(2);return t.KtG(Dt?pe.selection.toggle(Qt):null)})("click",function(Dt){return Dt.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&F){const ut=E.$implicit,ft=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,ft.selection.isSelected(ut)),t.VKq(7,B,ut.name)))("checked",ft.selection.isSelected(ut))}}function R(F,E){1&F&&(t.ynx(0,14),t.YNc(1,I,4,7,"th",15),t.YNc(2,M,4,9,"td",16),t.BQk())}function Z(F,E){1&F&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function H(F,E){if(1&F&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&F){const ut=E.$implicit;t.xp6(1),t.hij(" ",ut.id," ")}}function G(F,E){1&F&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function tt(F,E){if(1&F&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&F){const ut=E.$implicit;t.uIk("data-cy",ut.name),t.xp6(1),t.Oqu(ut.name)}}function K(F,E){1&F&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function st(F,E){if(1&F&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&F){const ut=E.$implicit;t.xp6(1),t.Oqu(ut.contact)}}function j(F,E){1&F&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function W(F,E){if(1&F&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&F){const ut=E.$implicit;t.xp6(1),t.Oqu(ut.type)}}function et(F,E){1&F&&t._UZ(0,"tr",24)}function at(F,E){1&F&&t._UZ(0,"tr",25)}function Y(F,E){1&F&&(t.TgZ(0,"perun-web-apps-alert",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function nt(F,E){1&F&&(t.TgZ(0,"perun-web-apps-alert",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}const rt=function(F){return{all:F}};let q=(()=>{class F{constructor(ut,ft){this.authResolver=ut,this.tableCheckbox=ft,this.owners=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=m.f7}set matSort(ut){this.sort=ut,this.setDataSource()}static getDataForColumn(ut,ft){switch(ft){case"id":return ut.id.toString();case"name":return ut.name;case"contact":return ut.contact;case"type":return ut.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportAllData(ut){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,F.getDataForColumn),ut)}exportDisplayedData(ut){const ft=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Dt=ft+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ft,Dt),this.displayedColumns,F.getDataForColumn),ut)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(ut,ft)=>(0,m.Sd)(ut,ft,this.displayedColumns,F.getDataForColumn),this.dataSource.sortData=(ut,ft)=>(0,m.pR)(ut,ft,F.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ut=>"id"!==ut)),this.dataSource=new _.by(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return F.\u0275fac=function(ut){return new(ut||F)(t.Y36(p.x4),t.Y36(p.UA))},F.\u0275cmp=t.Xpm({type:F,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(ut,ft){if(1&ut&&(t.Gf(m.l9,7),t.Gf(c.YE,7)),2&ut){let Dt;t.iGM(Dt=t.CRH())&&(ft.child=Dt.first),t.iGM(Dt=t.CRH())&&(ft.matSort=Dt.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[t.TTD],decls:21,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(ut,ft){1&ut&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(St){return ft.exportDisplayedData(St)})("exportAllData",function(St){return ft.exportAllData(St)}),t.TgZ(2,"table",2),t.YNc(3,R,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Z,3,3,"th",5),t.YNc(7,H,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,G,3,3,"th",5),t.YNc(10,tt,2,2,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,K,3,3,"th",5),t.YNc(13,st,2,1,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,j,3,3,"th",5),t.YNc(16,W,2,1,"td",8),t.BQk(),t.YNc(17,et,1,0,"tr",11),t.YNc(18,at,1,0,"tr",12),t.qZA()()(),t.YNc(19,Y,3,3,"perun-web-apps-alert",13),t.YNc(20,nt,3,3,"perun-web-apps-alert",13)),2&ut&&(t.Q6J("hidden",0===ft.owners.length||0===ft.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",ft.tableId)("dataLength",ft.dataSource.filteredData.length)("pageSizeOptions",ft.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",ft.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,rt,t.xi3(4,10,ft.dataSource,ft.selection.selected.length))),t.xp6(14),t.Q6J("matHeaderRowDef",ft.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",ft.displayedColumns),t.xp6(1),t.Q6J("ngIf",!ft.owners.length),t.xp6(1),t.Q6J("ngIf",!ft.dataSource.filteredData.length&&ft.owners.length))},dependencies:[d.O5,l.oG,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,c.YE,c.nU,h.w,f.l,u.X$,g.I,C.G,L.r]}),F})()},16087:(w,D,s)=>{"use strict";const c=s(34315),x=s(52872),_=s(60929);w.exports=function m(d,l){switch(x(d)){case"object":return function p(d,l){if("function"==typeof l)return l(d);if(l||_(d)){const h=new d.constructor;for(let f in d)h[f]=m(d[f],l);return h}return d}(d,l);case"array":return function t(d,l){const h=new d.constructor(d.length);for(let f=0;f{"use strict";var c=s(50623);function x(_){return!0===c(_)&&"[object Object]"===Object.prototype.toString.call(_)}w.exports=function(m){var p,t;return!(!1===x(m)||(p=m.constructor,"function"!=typeof p)||(t=p.prototype,!1===x(t))||!1===t.hasOwnProperty("isPrototypeOf"))}},52786:(w,D,s)=>{"use strict";s.d(D,{B8:()=>K,Il:()=>x,J5:()=>m,SU:()=>tt,Ss:()=>st,Ym:()=>nt,ZP:()=>Z,xV:()=>_});var c=s(68884);function x(){}var _=.7,m=1/_,p="\\s*([+-]?\\d+)\\s*",t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",d="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),f=new RegExp("^rgb\\("+[d,d,d]+"\\)$"),u=new RegExp("^rgba\\("+[p,p,p,t]+"\\)$"),g=new RegExp("^rgba\\("+[d,d,d,t]+"\\)$"),C=new RegExp("^hsl\\("+[t,d,d]+"\\)$"),L=new RegExp("^hsla\\("+[t,d,d,t]+"\\)$"),I={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function B(){return this.rgb().formatHex()}function R(){return this.rgb().formatRgb()}function Z(F){var E,ut;return F=(F+"").trim().toLowerCase(),(E=l.exec(F))?(ut=E[1].length,E=parseInt(E[1],16),6===ut?H(E):3===ut?new st(E>>8&15|E>>4&240,E>>4&15|240&E,(15&E)<<4|15&E,1):8===ut?G(E>>24&255,E>>16&255,E>>8&255,(255&E)/255):4===ut?G(E>>12&15|E>>8&240,E>>8&15|E>>4&240,E>>4&15|240&E,((15&E)<<4|15&E)/255):null):(E=h.exec(F))?new st(E[1],E[2],E[3],1):(E=f.exec(F))?new st(255*E[1]/100,255*E[2]/100,255*E[3]/100,1):(E=u.exec(F))?G(E[1],E[2],E[3],E[4]):(E=g.exec(F))?G(255*E[1]/100,255*E[2]/100,255*E[3]/100,E[4]):(E=C.exec(F))?at(E[1],E[2]/100,E[3]/100,1):(E=L.exec(F))?at(E[1],E[2]/100,E[3]/100,E[4]):I.hasOwnProperty(F)?H(I[F]):"transparent"===F?new st(NaN,NaN,NaN,0):null}function H(F){return new st(F>>16&255,F>>8&255,255&F,1)}function G(F,E,ut,ft){return ft<=0&&(F=E=ut=NaN),new st(F,E,ut,ft)}function tt(F){return F instanceof x||(F=Z(F)),F?new st((F=F.rgb()).r,F.g,F.b,F.opacity):new st}function K(F,E,ut,ft){return 1===arguments.length?tt(F):new st(F,E,ut,ft??1)}function st(F,E,ut,ft){this.r=+F,this.g=+E,this.b=+ut,this.opacity=+ft}function j(){return"#"+et(this.r)+et(this.g)+et(this.b)}function W(){var F=this.opacity;return(1===(F=isNaN(F)?1:Math.max(0,Math.min(1,F)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===F?")":", "+F+")")}function et(F){return((F=Math.max(0,Math.min(255,Math.round(F)||0)))<16?"0":"")+F.toString(16)}function at(F,E,ut,ft){return ft<=0?F=E=ut=NaN:ut<=0||ut>=1?F=E=NaN:E<=0&&(F=NaN),new rt(F,E,ut,ft)}function Y(F){if(F instanceof rt)return new rt(F.h,F.s,F.l,F.opacity);if(F instanceof x||(F=Z(F)),!F)return new rt;if(F instanceof rt)return F;var E=(F=F.rgb()).r/255,ut=F.g/255,ft=F.b/255,Dt=Math.min(E,ut,ft),St=Math.max(E,ut,ft),Qt=NaN,pe=St-Dt,wt=(St+Dt)/2;return pe?(Qt=E===St?(ut-ft)/pe+6*(ut0&&wt<1?0:Qt,new rt(Qt,pe,wt,F.opacity)}function nt(F,E,ut,ft){return 1===arguments.length?Y(F):new rt(F,E,ut,ft??1)}function rt(F,E,ut,ft){this.h=+F,this.s=+E,this.l=+ut,this.opacity=+ft}function q(F,E,ut){return 255*(F<60?E+(ut-E)*F/60:F<180?ut:F<240?E+(ut-E)*(240-F)/60:E)}(0,c.Z)(x,Z,{copy:function(F){return Object.assign(new this.constructor,this,F)},displayable:function(){return this.rgb().displayable()},hex:B,formatHex:B,formatHsl:function M(){return Y(this).formatHsl()},formatRgb:R,toString:R}),(0,c.Z)(st,K,(0,c.l)(x,{brighter:function(F){return F=null==F?m:Math.pow(m,F),new st(this.r*F,this.g*F,this.b*F,this.opacity)},darker:function(F){return F=null==F?_:Math.pow(_,F),new st(this.r*F,this.g*F,this.b*F,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:j,formatHex:j,formatRgb:W,toString:W})),(0,c.Z)(rt,nt,(0,c.l)(x,{brighter:function(F){return F=null==F?m:Math.pow(m,F),new rt(this.h,this.s,this.l*F,this.opacity)},darker:function(F){return F=null==F?_:Math.pow(_,F),new rt(this.h,this.s,this.l*F,this.opacity)},rgb:function(){var F=this.h%360+360*(this.h<0),E=isNaN(F)||isNaN(this.s)?0:this.s,ut=this.l,ft=ut+(ut<.5?ut:1-ut)*E,Dt=2*ut-ft;return new st(q(F>=240?F-240:F+120,Dt,ft),q(F,Dt,ft),q(F<120?F+240:F-120,Dt,ft),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var F=this.opacity;return(1===(F=isNaN(F)?1:Math.max(0,Math.min(1,F)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===F?")":", "+F+")")}}))},68884:(w,D,s)=>{"use strict";function c(_,m,p){_.prototype=m.prototype=p,p.constructor=_}function x(_,m){var p=Object.create(_.prototype);for(var t in m)p[t]=m[t];return p}s.d(D,{Z:()=>c,l:()=>x})},25922:(w,D,s)=>{"use strict";s.d(D,{Z:()=>d});var c={value:function(){}};function x(){for(var u,l=0,h=arguments.length,f={};l=0&&(u=f.slice(g+1),f=f.slice(0,g)),f&&!h.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:u}})}function p(l,h){for(var g,f=0,u=l.length;f0)for(var g,C,f=new Array(g),u=0;u{"use strict";s.d(D,{Z:()=>m,D:()=>p});var c=s(52016);function _(t){t.preventDefault(),t.stopImmediatePropagation()}function m(t){var d=t.document.documentElement,l=(0,c.Z)(t).on("dragstart.drag",_,!0);"onselectstart"in d?l.on("selectstart.drag",_,!0):(d.__noselect=d.style.MozUserSelect,d.style.MozUserSelect="none")}function p(t,d){var l=t.document.documentElement,h=(0,c.Z)(t).on("dragstart.drag",null);d&&(h.on("click.drag",_,!0),setTimeout(function(){h.on("click.drag",null)},0)),"onselectstart"in l?h.on("selectstart.drag",null):(l.style.MozUserSelect=l.__noselect,delete l.__noselect)}},27065:(w,D,s)=>{"use strict";function _(m){return((m*=2)<=1?m*m*m:(m-=2)*m*m+2)/2}s.d(D,{tw:()=>_})},22910:(w,D,s)=>{"use strict";s.d(D,{WU:()=>_,ZP:()=>p,jH:()=>m});var x,_,m,c=s(4753);function p(t){return x=(0,c.Z)(t),_=x.format,m=x.formatPrefix,x}p({thousands:",",grouping:[3],currency:["$",""]})},68520:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(5326);function x(_){return(_=(0,c.V)(Math.abs(_)))?_[1]:NaN}},5326:(w,D,s)=>{"use strict";function c(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)}function x(_,m){if((p=(_=m?_.toExponential(m-1):_.toExponential()).indexOf("e"))<0)return null;var p,t=_.slice(0,p);return[t.length>1?t[0]+t.slice(2):t,+_.slice(p+1)]}s.d(D,{V:()=>x,Z:()=>c})},32517:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x,v:()=>_});var c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function x(m){if(!(p=c.exec(m)))throw new Error("invalid format: "+m);var p;return new _({fill:p[1],align:p[2],sign:p[3],symbol:p[4],zero:p[5],width:p[6],comma:p[7],precision:p[8]&&p[8].slice(1),trim:p[9],type:p[10]})}function _(m){this.fill=void 0===m.fill?" ":m.fill+"",this.align=void 0===m.align?">":m.align+"",this.sign=void 0===m.sign?"-":m.sign+"",this.symbol=void 0===m.symbol?"":m.symbol+"",this.zero=!!m.zero,this.width=void 0===m.width?void 0:+m.width,this.comma=!!m.comma,this.precision=void 0===m.precision?void 0:+m.precision,this.trim=!!m.trim,this.type=void 0===m.type?"":m.type+""}x.prototype=_.prototype,_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},41129:(w,D,s)=>{"use strict";s.r(D),s.d(D,{FormatSpecifier:()=>_.v,format:()=>c.WU,formatDefaultLocale:()=>c.ZP,formatLocale:()=>x.Z,formatPrefix:()=>c.jH,formatSpecifier:()=>_.Z,precisionFixed:()=>m.Z,precisionPrefix:()=>p.Z,precisionRound:()=>t.Z});var c=s(22910),x=s(4753),_=s(32517),m=s(78986),p=s(38914),t=s(65142)},4753:(w,D,s)=>{"use strict";s.d(D,{Z:()=>L});var d,c=s(68520),m=s(32517),t=s(5326);function h(I,B){var M=(0,t.V)(I,B);if(!M)return I+"";var R=M[0],Z=M[1];return Z<0?"0."+new Array(-Z).join("0")+R:R.length>Z+1?R.slice(0,Z+1)+"."+R.slice(Z+1):R+new Array(Z-R.length+2).join("0")}const f={"%":(I,B)=>(100*I).toFixed(B),b:I=>Math.round(I).toString(2),c:I=>I+"",d:t.Z,e:(I,B)=>I.toExponential(B),f:(I,B)=>I.toFixed(B),g:(I,B)=>I.toPrecision(B),o:I=>Math.round(I).toString(8),p:(I,B)=>h(100*I,B),r:h,s:function l(I,B){var M=(0,t.V)(I,B);if(!M)return I+"";var R=M[0],Z=M[1],H=Z-(d=3*Math.max(-8,Math.min(8,Math.floor(Z/3))))+1,G=R.length;return H===G?R:H>G?R+new Array(H-G+1).join("0"):H>0?R.slice(0,H)+"."+R.slice(H):"0."+new Array(1-H).join("0")+(0,t.V)(I,Math.max(0,B+H-1))[0]},X:I=>Math.round(I).toString(16).toUpperCase(),x:I=>Math.round(I).toString(16)};function u(I){return I}var g=Array.prototype.map,C=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function L(I){var B=void 0===I.grouping||void 0===I.thousands?u:function x(I,B){return function(M,R){for(var Z=M.length,H=[],G=0,tt=I[0],K=0;Z>0&&tt>0&&(K+tt+1>R&&(tt=Math.max(1,R-K)),H.push(M.substring(Z-=tt,Z+tt)),!((K+=tt+1)>R));)tt=I[G=(G+1)%I.length];return H.reverse().join(B)}}(g.call(I.grouping,Number),I.thousands+""),M=void 0===I.currency?"":I.currency[0]+"",R=void 0===I.currency?"":I.currency[1]+"",Z=void 0===I.decimal?".":I.decimal+"",H=void 0===I.numerals?u:function _(I){return function(B){return B.replace(/[0-9]/g,function(M){return I[+M]})}}(g.call(I.numerals,String)),G=void 0===I.percent?"%":I.percent+"",tt=void 0===I.minus?"\u2212":I.minus+"",K=void 0===I.nan?"NaN":I.nan+"";function st(W){var et=(W=(0,m.Z)(W)).fill,at=W.align,Y=W.sign,nt=W.symbol,rt=W.zero,q=W.width,F=W.comma,E=W.precision,ut=W.trim,ft=W.type;"n"===ft?(F=!0,ft="g"):f[ft]||(void 0===E&&(E=12),ut=!0,ft="g"),(rt||"0"===et&&"="===at)&&(rt=!0,et="0",at="=");var Dt="$"===nt?M:"#"===nt&&/[boxX]/.test(ft)?"0"+ft.toLowerCase():"",St="$"===nt?R:/[%p]/.test(ft)?G:"",Qt=f[ft],pe=/[defgprs%]/.test(ft);function wt(yt){var de,ie,Ot,Nt=Dt,zt=St;if("c"===ft)zt=Qt(yt)+zt,yt="";else{var te=(yt=+yt)<0||1/yt<0;if(yt=isNaN(yt)?K:Qt(Math.abs(yt),E),ut&&(yt=function p(I){t:for(var Z,B=I.length,M=1,R=-1;M0&&(R=0)}return R>0?I.slice(0,R)+I.slice(Z+1):I}(yt)),te&&0==+yt&&"+"!==Y&&(te=!1),Nt=(te?"("===Y?Y:tt:"-"===Y||"("===Y?"":Y)+Nt,zt=("s"===ft?C[8+d/3]:"")+zt+(te&&"("===Y?")":""),pe)for(de=-1,ie=yt.length;++de(Ot=yt.charCodeAt(de))||Ot>57){zt=(46===Ot?Z+yt.slice(de+1):yt.slice(de))+zt,yt=yt.slice(0,de);break}}F&&!rt&&(yt=B(yt,1/0));var jt=Nt.length+yt.length+zt.length,se=jt>1)+Nt+yt+zt+se.slice(jt);break;default:yt=se+Nt+yt+zt}return H(yt)}return E=void 0===E?6:/[gprs]/.test(ft)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E)),wt.toString=function(){return W+""},wt}return{format:st,formatPrefix:function j(W,et){var at=st(((W=(0,m.Z)(W)).type="f",W)),Y=3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(et)/3))),nt=Math.pow(10,-Y),rt=C[8+Y/3];return function(q){return at(nt*q)+rt}}}}},78986:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(68520);function x(_){return Math.max(0,-(0,c.Z)(Math.abs(_)))}},38914:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(68520);function x(_,m){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(m)/3)))-(0,c.Z)(Math.abs(_)))}},65142:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(68520);function x(_,m){return _=Math.abs(_),m=Math.abs(m)-_,Math.max(0,(0,c.Z)(m)-(0,c.Z)(_))+1}},9921:function(w,D,s){!function(c,x,_,m,p,t,d,l,h,f){"use strict";function u(Q){if(Q&&Q.__esModule)return Q;var pt=Object.create(null);return Q&&Object.keys(Q).forEach(function(mt){if("default"!==mt){var gt=Object.getOwnPropertyDescriptor(Q,mt);Object.defineProperty(pt,mt,gt.get?gt:{enumerable:!0,get:function(){return Q[mt]}})}}),pt.default=Q,Object.freeze(pt)}var Lt,g=u(x);function C(Q,pt,mt){return pt in Q?Object.defineProperty(Q,pt,{value:mt,enumerable:!0,configurable:!0,writable:!0}):Q[pt]=mt,Q}function L(Q){return function I(Q){if(Array.isArray(Q))return R(Q)}(Q)||function B(Q){if(typeof Symbol<"u"&&null!=Q[Symbol.iterator]||null!=Q["@@iterator"])return Array.from(Q)}(Q)||function M(Q,pt){if(Q){if("string"==typeof Q)return R(Q,pt);var mt=Object.prototype.toString.call(Q).slice(8,-1);if("Object"===mt&&Q.constructor&&(mt=Q.constructor.name),"Map"===mt||"Set"===mt)return Array.from(Q);if("Arguments"===mt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(mt))return R(Q,pt)}}(Q)||function Z(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(Q,pt){(null==pt||pt>Q.length)&&(pt=Q.length);for(var mt=0,gt=new Array(pt);mt1&&void 0!==arguments[1]?arguments[1]:0,mt=g.select(this),gt=Q.attributes,Ut=mt.node().attributes;if(Ut)for(var Xt=0;Xt0?Cn.children[0].text:"")}null==he.key&&(Ut&&("ellipse"==vn||"polygon"==vn)&&(vn="path"),he.key=vn+"-"+je)}function Pe(he,je){he.id=(je?je.id+".":"")+he.key}function Be(he){O[he.id]=he}function ue(he,je){Ut&&he.id in oe&&("polygon"==je.tag||"ellipse"==je.tag||"path"==je.tag)&&(je.tag!=he.tag||"polygon"==he.tag)&&("path"!=je.tag&&(he.alternativeOld=se(je,he)),"path"!=he.tag&&(he.alternativeNew=se(he,je)))}function me(he,je){if(gt&&je&&("path"==je.tag||he.alternativeOld&&"path"==he.alternativeOld.tag)){var vn=(he.alternativeNew||he).attributes.d;if(he.alternativeOld)var Cn=K(he.alternativeOld);else Cn=K(je);(he.alternativeOld||(he.alternativeOld={})).points=function wt(Q,pt,mt,gt){for(var Ut=Q,Xt=Ut.cloneNode(),kt=Ut.getTotalLength(),le=(Xt.setAttribute("d",pt),Xt).getTotalLength(),O=[0],oe=0,Se=gt?mt:mt/Math.max(kt,le);(oe+=Se)<1;)O.push(oe);return O.push(1),O.map(function(Ke){var Pe=Ut.getPointAtLength(Ke*kt),Be=Xt.getPointAtLength(Ke*le);return[[Pe.x,Pe.y],[Be.x,Be.y]]})}(Cn,vn,Xt,kt)}}function Fe(he){var vn=arguments.length>2?arguments[2]:void 0;Ke(he,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),Pe(he,vn);var $n=oe[he.id];Be(he),ue(he,$n),me(he,$n);var ci={};he.children.forEach(function(vi){var Qn=vi.tag;("ellipse"==Qn||"polygon"==Qn)&&(Qn="path"),null==ci[Qn]&&(ci[Qn]=0),Fe(vi,ci[Qn]++,he)})}function $e(he){(function fn(he){if(le&&he.parent&&"node"==he.parent.attributes.class&&"title"==he.tag){if(he.children.length>0)var Cn=he.children[0].text;else Cn="";Se[Cn]=he.parent}})(he),function cn(he){var vn=he.tag;if(le&&!oe[he.id]&&he.parent&&zt(he)&&("path"==vn||"polygon"==vn)){if("polygon"==vn){var $n=he.parent.children.find(function(On){return"path"==On.tag});$n&&(he.totalLength=$n.totalLength)}var vi=function ie(Q){return function de(Q){return"edge"==Q.parent.attributes.class?Q.parent:Q.parent.parent.parent}(Q).children.find(function(pt){return"title"==pt.tag})}(he).children[0],Qn=vi.text.split("->");2!=Qn.length&&(Qn=vi.text.split("--"));var Zi=Qn[0],jn=Se[Zi],bi=Ce[Zi];if(bi){if((un=jn.children.findIndex(function(On,di){return"g"==On.tag}))>=0){var mn=jn.children[un].children.findIndex(function(On,di){return"a"==On.tag});jn=jn.children[un].children[mn]}(un=bi.children.findIndex(function(On,di){return"g"==On.tag}))>=0&&(mn=bi.children[un].children.findIndex(function(di,Ue){return"a"==di.tag}),bi=bi.children[un].children[mn]);for(var ui=jn.children,un=0;un0&&this._queue.shift().call(this)}function Ni(Q,pt,mt,gt){var Ut=[Q*mt-(pt=-pt)*(gt=-gt),Q*gt+pt*mt];return[Q=Ut[0],pt=-(pt=Ut[1])]}function Ri(Q,pt,mt,gt,Ut,Xt,kt){var O=G(sn.call(this,Xt));Q.data([O]),at.call(Q.node(),O),fe(Q,pt,mt,gt,Ut,Xt,kt)}function fe(Q,pt,mt,gt,Ut,Xt,kt){var le=kt.shortening||0,Ce=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],Ke=gt-pt,Pe=Ut-mt,Be=Math.sqrt(Ke*Ke+Pe*Pe);if(0==Be)var ue=1,me=0;else ue=Ke/Be,me=Pe/Be;if(gt=pt+(Be-le-10-.1)*ue,Ut=mt+(Be-le-10-.1)*me,Xt.URL||Xt.tooltip)var Fe=Q.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),fn=Fe.selectWithoutDataPropagation("path"),cn=Fe.selectWithoutDataPropagation("polygon");else fn=Q.selectWithoutDataPropagation("path"),cn=Q.selectWithoutDataPropagation("polygon");var $e=f.path();$e.moveTo(pt,mt),$e.lineTo(gt,Ut),fn.attr("d",$e),gt=pt+(Be-le-10)*ue,Ut=mt+(Be-le-10)*me;for(var Qe=0;Qe b ["+pt+"]}","svg","dot"),O=(new window.DOMParser).parseFromString(kt,"image/svg+xml");return g.select(document.createDocumentFragment()).append(function(){return O.documentElement}).select(".edge")}function Ln(Q,pt,mt,gt,Ut,Xt){var le=G(X.call(this,gt,Ut));return Q.data([le]),at.call(Q.node(),le),we(Q,pt,mt,Ut),this}function we(Q,pt,mt,gt,Ut){if(gt.URL||gt.tooltip)var Xt=Q.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else Xt=Q;var kt=Xt.selectAll("ellipse,polygon,path,polyline"),le=Q.selectWithoutDataPropagation("text");if(0!=kt.size()){var O=kt.node().getBBox();O.cx=O.x+O.width/2,O.cy=O.y+O.height/2}else 0!=le.size()&&(O={x:+le.attr("x"),y:+le.attr("y"),width:0,height:0,cx:+le.attr("x"),cy:+le.attr("y")});return kt.each(function(oe,Se){var Ce=g.select(this);if(Ce.attr("cx"))Ce.attr("cx",nt(pt)).attr("cy",nt(mt));else if(Ce.attr("points")){var Ke=Ce.attr("points").trim();Ce.attr("points",function At(Xt,pt,mt){var Ut,gt=(Ut=Xt.split(" ")).map(function(kt){return kt.split(",")});return gt=Ut.map(function(kt){return[nt(+pt+ +kt.split(",")[0]),nt(+mt+ +kt.split(",")[1])]}),(Ut=gt.map(function(kt){return kt.join(",")})).join(" ")}(Ke,pt-O.cx,mt-O.cy))}else{var Pe=Ce.attr("d");Ce.attr("d",function Ht(Q,pt,mt){(Xt=Q.split(/[A-Z ]/)).shift();var gt=Q.split(/[^[A-Z ]+/),Xt=(Xt.map(function(kt){return kt.split(",")}),Xt.map(function(kt){return[nt(+pt+ +kt.split(",")[0]),nt(+mt+ +kt.split(",")[1])]}).map(function(kt){return kt.join(",")}));return gt.reduce(function(kt,le,O){return kt.concat(le,Xt[O])},[]).join("")}(Pe,pt-O.cx,mt-O.cy))}}),0!=le.size()&&le.attr("x",nt(+le.attr("x")+pt-O.cx)).attr("y",nt(+le.attr("y")+mt-O.cy)),this}function Nn(){if(!this._drawnNode)return this;var Q=this._drawnNode.g;return Q.empty()||Q.remove(),this._drawnNode=null,this}function z(){return this._drawnNode?this._drawnNode.g:g.select(null)}function X(Q,pt){for(var mt="",gt=0,Ut=Object.keys(pt);gt"u"&&(kt=!1),typeof SharedWorker>"u"&&(le=!1),kt||le){var oe=g.selectAll("script").filter(function(){return"javascript/worker"==g.select(this).attr("type")||g.select(this).attr("src")&&g.select(this).attr("src").match(/.*\/@hpcc-js\/wasm/)});0==oe.size()?(console.warn('No script tag of type "javascript/worker" was found and "useWorker" is true. Not using web worker.'),kt=!1,le=!1):(this._vizURL=oe.attr("src"),this._vizURL||(console.warn('No "src" attribute of was found on the "javascript/worker" script tag and "useWorker" is true. Not using web worker.'),kt=!1,le=!1))}if(le){var Se="data:application/javascript;base64,"+btoa(lt.toString()+"("+bt.toString()+")()");this._worker=this._worker=new SharedWorker(Se),this._workerPort=this._worker.port,this._workerPortClose=this._worker.port.close.bind(this._workerPort),this._worker.port.start(),this._workerCallbacks=[]}else if(kt){var Ce=new Blob([lt.toString()+"("+A.toString()+")()"]),Ke=window.URL.createObjectURL(Ce);this._worker=new Worker(Ke),this._workerPort=this._worker,this._workerPortClose=this._worker.terminate.bind(this._worker),this._workerCallbacks=[]}else l.graphvizVersion().then(function(Pe){mt._graphvizVersion=Pe}.bind(this));this._selection=Q,this._active=!1,this._busy=!1,this._jobs=[],this._queue=[],this._keyModes=new Set(["title","id","tag-index","index"]),this._images=[],this._translation=void 0,this._scale=void 0,this._eventTypes=["initEnd","start","layoutStart","layoutEnd","dataExtractEnd","dataProcessPass1End","dataProcessPass2End","dataProcessEnd","renderStart","renderEnd","transitionStart","transitionEnd","restoreEnd","end","zoom"],this._dispatch=_.dispatch.apply(void 0,L(this._eventTypes)),Zt.call(this),Q.node().__graphviz__=this}function Gt(Q,pt){return g.select(Q).graphviz(pt)}Pt.prototype=Gt.prototype=(C(Lt={constructor:Pt,engine:function ce(Q){return this._options.engine=Q,this},addImage:function _e(Q,pt,mt){return this._images.push({path:Q,width:pt,height:mt}),this},keyMode:function ee(Q){if(!this._keyModes.has(Q))throw Error("Illegal keyMode: "+Q);if(Q!=this._options.keyMode&&null!=this._data)throw Error("Too late to change keyMode");return this._options.keyMode=Q,this},fade:function Ze(Q){return this._options.fade=Q,this},tweenPaths:function Ye(Q){return this._options.tweenPaths=Q,this},tweenShapes:function Tn(Q){return this._options.tweenShapes=Q,Q&&(this._options.tweenPaths=!0),this},convertEqualSidedPolygons:function oi(Q){return this._options.convertEqualSidedPolygons=Q,this},tweenPrecision:function Mi(Q){return this._options.tweenPrecision=Q,this},growEnteringEdges:function mi(Q){return this._options.growEnteringEdges=Q,this},zoom:function rt(Q){return this._options.zoom=Q,this._options.zoom&&!this._zoomBehavior?q.call(this):!this._options.zoom&&this._zoomBehavior&&(this._zoomSelection.on(".zoom",null),this._zoomBehavior=null),this},resetZoom:function ut(Q){var pt=this._zoomSelection;return Q&&(pt=pt.transition(Q)),pt.call(this._zoomBehavior.transform,this._originalTransform),this},zoomBehavior:function St(){return this._zoomBehavior||null},zoomSelection:function Qt(){return this._zoomSelection||null},zoomScaleExtent:function ft(Q){return this._options.zoomScaleExtent=Q,this},zoomTranslateExtent:function Dt(Q){return this._options.zoomTranslateExtent=Q,this},render:function Ot(Q){return this._busy?(this._queue.push(this.render.bind(this,Q)),this):(this._dispatch.call("renderStart",this),this._transitionFactory?p.timeout(function(){this._transition=m.transition(this._transitionFactory()),te.call(this,Q)}.bind(this),0):te.call(this,Q),this)},layout:function xe(Q,pt,mt,gt){if(this._worker)Kt.call(this,{type:"layout",dot:Q,engine:pt,options:mt},function(Xt){gt.call(this,Xt.data)});else try{var Ut=this.layoutSync(Q,"svg",pt,mt);gt.call(this,{type:"done",svg:Ut})}catch(Xt){gt.call(this,{type:"error",error:Xt.message})}},dot:function Te(Q,pt){var mt=this,gt=this._options.engine,Ut=this._images;return this._dispatch.call("start",this),this._busy=!0,this._dispatch.call("layoutStart",this),this._worker||null!=this.layoutSync?(this.layout(Q,gt,{images:Ut},function(kt){switch(kt.type){case"error":if(!mt._onerror)throw kt.error.message;mt._onerror(kt.error);break;case"done":Le.call(this,kt.svg,pt)}}),this):(this._afterInit=this.dot.bind(this,Q,pt),this)},data:function yt(){return this._data||null},renderDot:function Oe(Q,pt){var mt=this;return this.dot(Q,function gt(){mt.render(pt)}),this},transition:function Ee(Q){return Q instanceof Function?this._transitionFactory=Q:this._transition=m.transition(Q),this},active:function He(Q){var mt=this._selection.selectWithoutDataPropagation("svg");return 0!=mt.size()?m.active(mt.node(),Q):null},options:function Ge(Q){if(typeof Q>"u")return Object.assign({},this._options);for(var pt=0,mt=Object.keys(Q);pt2")(Ke)+" ",me+=Pe+" ".repeat(Xt-Pe.length),me+=h.format(" >5")(Be-mt)+" ","initEnd"!=Pe&&(me+=h.format(" >5")(Be-gt.start[ue])),"dataProcessEnd"==Pe&&(me+=" prepare "+h.format(" >5")(Be-gt.layoutEnd[ue])),"renderEnd"==Pe&&O._transition&&(me+=" transition start margin "+h.format(" >5")(O._transition.delay()-(Be-gt.renderStart[ue])),oe=O._transition.delay(),Se=O._transition.duration()),"transitionStart"==Pe){var Fe=Be-gt.renderStart[ue];me+=" transition delay "+h.format(" >5")(Be-gt.renderStart[ue]),me+=" expected "+h.format(" >5")(oe),me+=" diff "+h.format(" >5")(Fe-oe)}if("transitionEnd"==Pe){var fn=Be-gt.transitionStart[ue];me+=" transition duration "+h.format(" >5")(fn),me+=" expected "+h.format(" >5")(Se),me+=" diff "+h.format(" >5")(fn-Se)}console.log(me),mt=Be}:null)},le=0;le5&&void 0!==arguments[5]?arguments[5]:{};if((Ut=Object.assign({},Ut)).style&&Ut.style.includes("invis"))var kt=g.select(null);else{var oe=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Ce=G(sn.call(this,Ut));kt=oe.append("g").data([Ce]),at.call(kt.node(),Ce),Ri.call(this,kt,Q,pt,mt,gt,Ut,Xt)}return this._drawnEdge={g:kt,x1:Q,y1:pt,x2:mt,y2:gt,attributes:Ut},this},updateDrawnEdge:function Qi(Q,pt,mt,gt){var Ut=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},Xt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var kt=this._drawnEdge.g;return Ut=Object.assign(this._drawnEdge.attributes,Ut),this._drawnEdge.x1=Q,this._drawnEdge.y1=pt,this._drawnEdge.x2=mt,this._drawnEdge.y2=gt,!kt.empty()||Ut.style&&Ut.style.includes("invis")||(kt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=kt),kt.empty()||Ri.call(this,kt,Q,pt,mt,gt,Ut,Xt),this},moveDrawnEdgeEndPoint:function Sn(Q,pt){var mt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var gt=this._drawnEdge.g,Ut=this._drawnEdge.x1,Xt=this._drawnEdge.y1,kt=this._drawnEdge.attributes;return this._drawnEdge.x2=Q,this._drawnEdge.y2=pt,fe(gt,Ut,Xt,Q,pt,kt,mt),this},insertDrawnEdge:function In(Q){if(!this._drawnEdge)throw Error("No edge has been drawn");var pt=this._drawnEdge.g;if(pt.empty())return this;pt.selectWithoutDataPropagation("title").text(Q);var Xt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),kt=Xt.datum(),le=this._extractData(pt,kt.children.length,Xt.datum());return kt.children.push(le),W(pt,le),this._drawnEdge=null,this},removeDrawnEdge:ji},"removeDrawnEdge",ji),C(Lt,"drawnEdgeSelection",gn),C(Lt,"drawnEdgeSelection",gn),C(Lt,"drawNode",function zn(Q,pt,mt){var gt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Ut=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((gt=Object.assign({},gt)).style&>.style.includes("invis"))var Xt=g.select(null);else{var O=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Se=G(X.call(this,mt,gt));Xt=O.append("g").data([Se]),at.call(Xt.node(),Se),Ln.call(this,Xt,Q,pt,mt,gt,Ut)}return this._drawnNode={g:Xt,nodeId:mt,x:Q,y:pt,attributes:gt},this}),C(Lt,"updateDrawnNode",function li(Q,pt,mt){var gt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Ut=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var Xt=this._drawnNode.g;return null==mt&&(mt=this._drawnNode.nodeId),gt=Object.assign(this._drawnNode.attributes,gt),this._drawnNode.nodeId=mt,this._drawnNode.x=Q,this._drawnNode.y=pt,!Xt.empty()||gt.style&>.style.includes("invis")||(Xt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=Xt),Xt.empty()||Ln.call(this,Xt,Q,pt,mt,gt,Ut),this}),C(Lt,"moveDrawnNode",function Bi(Q,pt){if(!this._drawnNode)throw Error("No node has been drawn");var mt=this._drawnNode.g,gt=this._drawnNode.attributes;return this._drawnNode.x=Q,this._drawnNode.y=pt,mt.empty()||we(mt,Q,pt,gt),this}),C(Lt,"insertDrawnNode",function pn(Q){if(!this._drawnNode)throw Error("No node has been drawn");null==Q&&(Q=this._drawnNode.nodeId);var pt=this._drawnNode.g;if(pt.empty())return this;var mt=this._drawnNode.attributes;if(pt.selectWithoutDataPropagation("title").text(Q),mt.URL||mt.tooltip){var Xt=pt.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");Xt.selectWithoutDataPropagation("ellipse,polygon,path,polyline");var kt=Xt.selectWithoutDataPropagation("text")}else pt.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),kt=pt.selectWithoutDataPropagation("text");kt.text(mt.label||Q);var oe=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Se=oe.datum(),Ce=this._extractData(pt,Se.children.length,oe.datum());return Se.children.push(Ce),W(pt,Ce),this._drawnNode=null,this}),C(Lt,"removeDrawnNode",Nn),C(Lt,"removeDrawnNode",Nn),C(Lt,"drawnNodeSelection",z),C(Lt,"drawnNodeSelection",z),C(Lt,"graphvizVersion",function jt(){return this._graphvizVersion}),Lt),x.selection.prototype.graphviz=function Jt(Q){var pt=this.node().__graphviz__;return pt?(pt.options(Q),p.timeout(function(){pt._dispatch.call("initEnd",this)}.bind(this),0)):pt=new Pt(this,Q),pt},x.selection.prototype.selectWithoutDataPropagation=function Yt(Q){return g.select(this.size()>0?this.node().querySelector(Q):null)},c.graphviz=Gt,Object.defineProperty(c,"__esModule",{value:!0})}(D,s(68557),s(75143),s(18429),s(65894),s(46176),s(46041),s(89397),s(41129),s(38184))},75143:(w,D,s)=>{"use strict";s.r(D),s.d(D,{dispatch:()=>d});var c={value:()=>{}};function x(){for(var u,l=0,h=arguments.length,f={};l=0&&(u=f.slice(g+1),f=f.slice(0,g)),f&&!h.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:u}})}function p(l,h){for(var g,f=0,u=l.length;f0)for(var g,C,f=new Array(g),u=0;u{"use strict";s.r(D),s.d(D,{interval:()=>tt,now:()=>g,timeout:()=>G,timer:()=>I,timerFlush:()=>B});var p,t,c=0,x=0,_=0,d=0,l=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(K){setTimeout(K,17)};function g(){return l||(u(C),l=f.now()+h)}function C(){l=0}function L(){this._call=this._time=this._next=null}function I(K,st,j){var W=new L;return W.restart(K,st,j),W}function B(){g(),++c;for(var st,K=p;K;)(st=l-K._time)>=0&&K._call.call(null,st),K=K._next;--c}function M(){l=(d=f.now())+h,c=x=0;try{B()}finally{c=0,function Z(){for(var K,j,st=p,W=1/0;st;)st._call?(W>st._time&&(W=st._time),K=st,st=st._next):(j=st._next,st._next=null,st=K?K._next=j:p=j);t=K,H(W)}(),l=0}}function R(){var K=f.now(),st=K-d;st>1e3&&(h-=st,d=K)}function H(K){c||(x&&(x=clearTimeout(x)),K-l>24?(K<1/0&&(x=setTimeout(M,K-f.now()-h)),_&&(_=clearInterval(_))):(_||(d=f.now(),_=setInterval(R,1e3)),c=1,u(M)))}function G(K,st,j){var W=new L;return W.restart(et=>{W.stop(),K(et+st)},st=null==st?0:+st,j),W}function tt(K,st,j){var W=new L,et=st;return null==st?(W.restart(K,st,j),W):(W._restart=W.restart,W.restart=function(at,Y,nt){Y=+Y,nt=null==nt?g():+nt,W._restart(function rt(q){q+=et,W._restart(rt,et+=Y,nt),at(q)},Y,nt)},W.restart(K,st,j),W)}L.prototype=I.prototype={constructor:L,restart:function(K,st,j){if("function"!=typeof K)throw new TypeError("callback is not a function");j=(null==j?g():+j)+(null==st?0:+st),!this._next&&t!==this&&(t?t._next=this:p=this,t=this),this._call=K,this._time=j,H()},stop:function(){this._call&&(this._call=null,this._time=1/0,H())}}},90268:(w,D,s)=>{"use strict";s.d(D,{M:()=>m,Z:()=>_});var c=s(37656),x=s(62681);function _(p,t){return((0,x.v)(t)?x.Z:m)(p,t)}function m(p,t){var u,d=t?t.length:0,l=p?Math.min(d,p.length):0,h=new Array(l),f=new Array(d);for(u=0;u{"use strict";function c(_,m,p,t,d){var l=_*_,h=l*_;return((1-3*_+3*l-h)*m+(4-6*l+3*h)*p+(1+3*_+3*l-3*h)*t+h*d)/6}function x(_){var m=_.length-1;return function(p){var t=p<=0?p=0:p>=1?(p=1,m-1):Math.floor(p*m),d=_[t],l=_[t+1];return c((p-t/m)*m,t>0?_[t-1]:2*d-l,d,l,tx,t:()=>c})},68523:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(16712);function x(_){var m=_.length;return function(p){var t=Math.floor(((p%=1)<0?++p:p)*m);return(0,c.t)((p-t/m)*m,_[(t+m-1)%m],_[t%m],_[(t+1)%m],_[(t+2)%m])}}},35147:(w,D,s)=>{"use strict";s.d(D,{ZP:()=>t,wx:()=>m,yi:()=>p});var c=s(47927);function x(d,l){return function(h){return d+h*l}}function m(d,l){var h=l-d;return h?x(d,h>180||h<-180?h-360*Math.round(h/360):h):(0,c.Z)(isNaN(d)?l:d)}function p(d){return 1==(d=+d)?t:function(l,h){return h-l?function _(d,l,h){return d=Math.pow(d,h),l=Math.pow(l,h)-d,h=1/h,function(f){return Math.pow(d+f*l,h)}}(l,h,d):(0,c.Z)(isNaN(l)?h:l)}}function t(d,l){var h=l-d;return h?x(d,h):(0,c.Z)(isNaN(d)?l:d)}},47927:(w,D,s)=>{"use strict";s.d(D,{Z:()=>c});const c=x=>()=>x},15629:(w,D,s)=>{"use strict";function c(x,_){var m=new Date;return x=+x,_=+_,function(p){return m.setTime(x*(1-p)+_*p),m}}s.d(D,{Z:()=>c})},46176:(w,D,s)=>{"use strict";s.r(D),s.d(D,{interpolate:()=>c.Z,interpolateArray:()=>x.Z,interpolateBasis:()=>_.Z,interpolateBasisClosed:()=>m.Z,interpolateCubehelix:()=>Ge,interpolateCubehelixLong:()=>an,interpolateDate:()=>p.Z,interpolateDiscrete:()=>t,interpolateHcl:()=>Ot,interpolateHclLong:()=>te,interpolateHsl:()=>Z,interpolateHslLong:()=>H,interpolateHue:()=>l,interpolateLab:()=>de,interpolateNumber:()=>h.Z,interpolateNumberArray:()=>f.Z,interpolateObject:()=>u.Z,interpolateRgb:()=>B.ZP,interpolateRgbBasis:()=>B.hD,interpolateRgbBasisClosed:()=>B.YD,interpolateRound:()=>g.Z,interpolateString:()=>C.Z,interpolateTransformCss:()=>L.Y,interpolateTransformSvg:()=>L.w,interpolateZoom:()=>I.Z,piecewise:()=>be,quantize:()=>ln});var c=s(37656),x=s(90268),_=s(16712),m=s(68523),p=s(15629);function t(Tt){var Wt=Tt.length;return function(ce){return Tt[Math.max(0,Math.min(Wt-1,Math.floor(ce*Wt)))]}}var d=s(35147);function l(Tt,Wt){var ce=(0,d.wx)(+Tt,+Wt);return function(_e){var ee=ce(_e);return ee-360*Math.floor(ee/360)}}var h=s(6738),f=s(62681),u=s(84858),g=s(84067),C=s(23096),L=s(75349),I=s(76257),B=s(86811),M=s(52786);function R(Tt){return function(Wt,ce){var _e=Tt((Wt=(0,M.Ym)(Wt)).h,(ce=(0,M.Ym)(ce)).h),ee=(0,d.ZP)(Wt.s,ce.s),Ze=(0,d.ZP)(Wt.l,ce.l),Ye=(0,d.ZP)(Wt.opacity,ce.opacity);return function(Tn){return Wt.h=_e(Tn),Wt.s=ee(Tn),Wt.l=Ze(Tn),Wt.opacity=Ye(Tn),Wt+""}}}const Z=R(d.wx);var H=R(d.ZP),G=s(68884);const tt=Math.PI/180,K=180/Math.PI,j=.96422,at=4/29,Y=6/29,nt=3*Y*Y;function q(Tt){if(Tt instanceof ut)return new ut(Tt.l,Tt.a,Tt.b,Tt.opacity);if(Tt instanceof Nt)return zt(Tt);Tt instanceof M.Ss||(Tt=(0,M.SU)(Tt));var Ze,Ye,Wt=Qt(Tt.r),ce=Qt(Tt.g),_e=Qt(Tt.b),ee=ft((.2225045*Wt+.7168786*ce+.0606169*_e)/1);return Wt===ce&&ce===_e?Ze=Ye=ee:(Ze=ft((.4360747*Wt+.3850649*ce+.1430804*_e)/j),Ye=ft((.0139322*Wt+.0971045*ce+.7141733*_e)/.82521)),new ut(116*ee-16,500*(Ze-ee),200*(ee-Ye),Tt.opacity)}function E(Tt,Wt,ce,_e){return 1===arguments.length?q(Tt):new ut(Tt,Wt,ce,_e??1)}function ut(Tt,Wt,ce,_e){this.l=+Tt,this.a=+Wt,this.b=+ce,this.opacity=+_e}function ft(Tt){return Tt>.008856451679035631?Math.pow(Tt,1/3):Tt/nt+at}function Dt(Tt){return Tt>Y?Tt*Tt*Tt:nt*(Tt-at)}function St(Tt){return 255*(Tt<=.0031308?12.92*Tt:1.055*Math.pow(Tt,1/2.4)-.055)}function Qt(Tt){return(Tt/=255)<=.04045?Tt/12.92:Math.pow((Tt+.055)/1.055,2.4)}function pe(Tt){if(Tt instanceof Nt)return new Nt(Tt.h,Tt.c,Tt.l,Tt.opacity);if(Tt instanceof ut||(Tt=q(Tt)),0===Tt.a&&0===Tt.b)return new Nt(NaN,0{"use strict";function c(x,_){return x=+x,_=+_,function(m){return x*(1-m)+_*m}}s.d(D,{Z:()=>c})},62681:(w,D,s)=>{"use strict";function c(_,m){m||(m=[]);var d,p=_?Math.min(m.length,_.length):0,t=m.slice();return function(l){for(d=0;dc,v:()=>x})},84858:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(37656);function x(_,m){var d,p={},t={};for(d in(null===_||"object"!=typeof _)&&(_={}),(null===m||"object"!=typeof m)&&(m={}),m)d in _?p[d]=(0,c.Z)(_[d],m[d]):t[d]=m[d];return function(l){for(d in p)t[d]=p[d](l);return t}}},86811:(w,D,s)=>{"use strict";s.d(D,{YD:()=>l,ZP:()=>p,hD:()=>d});var c=s(52786),x=s(16712),_=s(68523),m=s(35147);const p=function h(f){var u=(0,m.yi)(f);function g(C,L){var I=u((C=(0,c.B8)(C)).r,(L=(0,c.B8)(L)).r),B=u(C.g,L.g),M=u(C.b,L.b),R=(0,m.ZP)(C.opacity,L.opacity);return function(Z){return C.r=I(Z),C.g=B(Z),C.b=M(Z),C.opacity=R(Z),C+""}}return g.gamma=h,g}(1);function t(h){return function(f){var I,B,u=f.length,g=new Array(u),C=new Array(u),L=new Array(u);for(I=0;I{"use strict";function c(x,_){return x=+x,_=+_,function(m){return Math.round(x*(1-m)+_*m)}}s.d(D,{Z:()=>c})},23096:(w,D,s)=>{"use strict";s.d(D,{Z:()=>t});var c=s(6738),x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(x.source,"g");function t(d,l){var f,u,g,h=x.lastIndex=_.lastIndex=0,C=-1,L=[],I=[];for(d+="",l+="";(f=x.exec(d))&&(u=_.exec(l));)(g=u.index)>h&&(g=l.slice(h,g),L[C]?L[C]+=g:L[++C]=g),(f=f[0])===(u=u[0])?L[C]?L[C]+=u:L[++C]=u:(L[++C]=null,I.push({i:C,x:(0,c.Z)(f,u)})),h=_.lastIndex;return h{"use strict";s.d(D,{Y:()=>h,w:()=>f});var p,c=s(6738),x=180/Math.PI,_={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function m(u,g,C,L,I,B){var M,R,Z;return(M=Math.sqrt(u*u+g*g))&&(u/=M,g/=M),(Z=u*C+g*L)&&(C-=u*Z,L-=g*Z),(R=Math.sqrt(C*C+L*L))&&(C/=R,L/=R,Z/=R),u*L180?G+=360:G-H>180&&(H+=360),K.push({i:tt.push(I(tt)+"rotate(",null,L)-2,x:(0,c.Z)(H,G)})):G&&tt.push(I(tt)+"rotate("+G+L)}(H.rotate,G.rotate,tt,K),function R(H,G,tt,K){H!==G?K.push({i:tt.push(I(tt)+"skewX(",null,L)-2,x:(0,c.Z)(H,G)}):G&&tt.push(I(tt)+"skewX("+G+L)}(H.skewX,G.skewX,tt,K),function Z(H,G,tt,K,st,j){if(H!==tt||G!==K){var W=st.push(I(st)+"scale(",null,",",null,")");j.push({i:W-4,x:(0,c.Z)(H,tt)},{i:W-2,x:(0,c.Z)(G,K)})}else(1!==tt||1!==K)&&st.push(I(st)+"scale("+tt+","+K+")")}(H.scaleX,H.scaleY,G.scaleX,G.scaleY,tt,K),H=G=null,function(st){for(var et,j=-1,W=K.length;++j{"use strict";s.d(D,{Z:()=>f});var c=s(52786),x=s(86811),_=s(90268),m=s(15629),p=s(6738),t=s(84858),d=s(23096),l=s(47927),h=s(62681);function f(u,g){var L,C=typeof g;return null==g||"boolean"===C?(0,l.Z)(g):("number"===C?p.Z:"string"===C?(L=(0,c.ZP)(g))?(g=L,x.ZP):d.Z:g instanceof c.ZP?x.ZP:g instanceof Date?m.Z:(0,h.v)(g)?h.Z:Array.isArray(g)?_.M:"function"!=typeof g.valueOf&&"function"!=typeof g.toString||isNaN(g)?t.Z:p.Z)(u,g)}},76257:(w,D,s)=>{"use strict";function x(t){return((t=Math.exp(t))+1/t)/2}s.d(D,{Z:()=>p});const p=function t(d,l,h){function f(u,g){var tt,K,C=u[0],L=u[1],I=u[2],R=g[2],Z=g[0]-C,H=g[1]-L,G=Z*Z+H*H;if(G<1e-12)K=Math.log(R/I)/d,tt=function(Y){return[C+Y*Z,L+Y*H,I*Math.exp(d*Y*K)]};else{var st=Math.sqrt(G),j=(R*R-I*I+h*G)/(2*I*l*st),W=(R*R-I*I-h*G)/(2*R*l*st),et=Math.log(Math.sqrt(j*j+1)-j),at=Math.log(Math.sqrt(W*W+1)-W);K=(at-et)/d,tt=function(Y){var nt=Y*K,rt=x(et),q=I/(l*st)*(rt*function m(t){return((t=Math.exp(2*t))-1)/(t+1)}(d*nt+et)-function _(t){return((t=Math.exp(t))-1/t)/2}(et));return[C+q*Z,L+q*H,I*rt/x(d*nt+et)]}}return tt.duration=1e3*K*d/Math.SQRT2,tt}return f.rho=function(u){var g=Math.max(.001,+u),C=g*g;return t(g,C,C*C)},f}(Math.SQRT2,2,4)},38184:(w,D,s)=>{"use strict";s.r(D),s.d(D,{path:()=>d});const c=Math.PI,x=2*c,_=1e-6,m=x-_;function p(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function t(){return new p}p.prototype=t.prototype={constructor:p,moveTo:function(l,h){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(l,h){this._+="L"+(this._x1=+l)+","+(this._y1=+h)},quadraticCurveTo:function(l,h,f,u){this._+="Q"+ +l+","+ +h+","+(this._x1=+f)+","+(this._y1=+u)},bezierCurveTo:function(l,h,f,u,g,C){this._+="C"+ +l+","+ +h+","+ +f+","+ +u+","+(this._x1=+g)+","+(this._y1=+C)},arcTo:function(l,h,f,u,g){var C=this._x1,L=this._y1,I=(f=+f)-(l=+l),B=(u=+u)-(h=+h),M=C-l,R=L-h,Z=M*M+R*R;if((g=+g)<0)throw new Error("negative radius: "+g);if(null===this._x1)this._+="M"+(this._x1=l)+","+(this._y1=h);else if(Z>_)if(Math.abs(R*I-B*M)>_&&g){var H=f-C,G=u-L,tt=I*I+B*B,K=H*H+G*G,st=Math.sqrt(tt),j=Math.sqrt(Z),W=g*Math.tan((c-Math.acos((tt+Z-K)/(2*st*j)))/2),et=W/j,at=W/st;Math.abs(et-1)>_&&(this._+="L"+(l+et*M)+","+(h+et*R)),this._+="A"+g+","+g+",0,0,"+ +(R*H>M*G)+","+(this._x1=l+at*I)+","+(this._y1=h+at*B)}else this._+="L"+(this._x1=l)+","+(this._y1=h)},arc:function(l,h,f,u,g,C){l=+l,h=+h,C=!!C;var L=(f=+f)*Math.cos(u),I=f*Math.sin(u),B=l+L,M=h+I,R=1^C,Z=C?u-g:g-u;if(f<0)throw new Error("negative radius: "+f);null===this._x1?this._+="M"+B+","+M:(Math.abs(this._x1-B)>_||Math.abs(this._y1-M)>_)&&(this._+="L"+B+","+M),f&&(Z<0&&(Z=Z%x+x),Z>m?this._+="A"+f+","+f+",0,1,"+R+","+(l-L)+","+(h-I)+"A"+f+","+f+",0,1,"+R+","+(this._x1=B)+","+(this._y1=M):Z>_&&(this._+="A"+f+","+f+",0,"+ +(Z>=c)+","+R+","+(this._x1=l+f*Math.cos(g))+","+(this._y1=h+f*Math.sin(g))))},rect:function(l,h,f,u){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)+"h"+ +f+"v"+ +u+"h"+-f+"Z"},toString:function(){return this._}};const d=t},34638:(w,D,s)=>{"use strict";function c(x){return"object"==typeof x&&"length"in x?x:Array.from(x)}s.d(D,{Z:()=>c})},7500:(w,D,s)=>{"use strict";s.d(D,{Z:()=>p});var c=s(36175),x=s(53517);function _(t){return function(){var d=this.ownerDocument,l=this.namespaceURI;return l===x.P&&d.documentElement.namespaceURI===x.P?d.createElement(t):d.createElementNS(l,t)}}function m(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function p(t){var d=(0,c.Z)(t);return(d.local?m:_)(d)}},68557:(w,D,s)=>{"use strict";s.r(D),s.d(D,{create:()=>_,creator:()=>c.Z,local:()=>p,matcher:()=>d.Z,namespace:()=>l.Z,namespaces:()=>h.Z,pointer:()=>f.Z,pointers:()=>g,select:()=>x.Z,selectAll:()=>I,selection:()=>L.ZP,selector:()=>B.Z,selectorAll:()=>M.Z,style:()=>R.S,window:()=>Z.Z});var c=s(7500),x=s(52016);function _(H){return(0,x.Z)((0,c.Z)(H).call(document.documentElement))}var m=0;function p(){return new t}function t(){this._="@"+(++m).toString(36)}t.prototype=p.prototype={constructor:t,get:function(H){for(var G=this._;!(G in H);)if(!(H=H.parentNode))return;return H[G]},set:function(H,G){return H[this._]=G},remove:function(H){return this._ in H&&delete H[this._]},toString:function(){return this._}};var d=s(97905),l=s(36175),h=s(53517),f=s(29132),u=s(75819);function g(H,G){return H.target&&(H=(0,u.Z)(H),void 0===G&&(G=H.currentTarget),H=H.touches||[H]),Array.from(H,tt=>(0,f.Z)(tt,G))}var C=s(34638),L=s(37853);function I(H){return"string"==typeof H?new L.Y1([document.querySelectorAll(H)],[document.documentElement]):new L.Y1([null==H?[]:(0,C.Z)(H)],L.Jz)}var B=s(29742),M=s(32037),R=s(24476),Z=s(2442)},97905:(w,D,s)=>{"use strict";function c(_){return function(){return this.matches(_)}}function x(_){return function(m){return m.matches(_)}}s.d(D,{P:()=>x,Z:()=>c})},36175:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(53517);function x(_){var m=_+="",p=m.indexOf(":");return p>=0&&"xmlns"!==(m=_.slice(0,p))&&(_=_.slice(p+1)),c.Z.hasOwnProperty(m)?{space:c.Z[m],local:_}:_}},53517:(w,D,s)=>{"use strict";s.d(D,{P:()=>c,Z:()=>x});var c="http://www.w3.org/1999/xhtml";const x={svg:"http://www.w3.org/2000/svg",xhtml:c,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},29132:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(75819);function x(_,m){if(_=(0,c.Z)(_),void 0===m&&(m=_.currentTarget),m){var p=m.ownerSVGElement||m;if(p.createSVGPoint){var t=p.createSVGPoint();return t.x=_.clientX,t.y=_.clientY,[(t=t.matrixTransform(m.getScreenCTM().inverse())).x,t.y]}if(m.getBoundingClientRect){var d=m.getBoundingClientRect();return[_.clientX-d.left-m.clientLeft,_.clientY-d.top-m.clientTop]}}return[_.pageX,_.pageY]}},52016:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(37853);function x(_){return"string"==typeof _?new c.Y1([[document.querySelector(_)]],[document.documentElement]):new c.Y1([[_]],c.Jz)}},37853:(w,D,s)=>{"use strict";s.d(D,{Y1:()=>we,ZP:()=>pn,Jz:()=>Ln});var c=s(29742),_=s(34638),m=s(32037),d=s(97905),l=Array.prototype.find;function f(){return this.firstElementChild}var g=Array.prototype.filter;function C(){return this.children}function M(z){return new Array(z.length)}function Z(z,X){this.ownerDocument=z.ownerDocument,this.namespaceURI=z.namespaceURI,this._next=null,this._parent=z,this.__data__=X}function H(z){return function(){return z}}function G(z,X,lt,A,bt,Lt){for(var Gt,Pt=0,Jt=X.length,Yt=Lt.length;PtX?1:z>=X?0:NaN}Z.prototype={constructor:Z,appendChild:function(z){return this._parent.insertBefore(z,this._next)},insertBefore:function(z,X){return this._parent.insertBefore(z,X)},querySelector:function(z){return this._parent.querySelector(z)},querySelectorAll:function(z){return this._parent.querySelectorAll(z)}};var Dt=s(36175);function St(z){return function(){this.removeAttribute(z)}}function Qt(z){return function(){this.removeAttributeNS(z.space,z.local)}}function pe(z,X){return function(){this.setAttribute(z,X)}}function wt(z,X){return function(){this.setAttributeNS(z.space,z.local,X)}}function yt(z,X){return function(){var lt=X.apply(this,arguments);null==lt?this.removeAttribute(z):this.setAttribute(z,lt)}}function Nt(z,X){return function(){var lt=X.apply(this,arguments);null==lt?this.removeAttributeNS(z.space,z.local):this.setAttributeNS(z.space,z.local,lt)}}var de=s(24476);function ie(z){return function(){delete this[z]}}function Ot(z,X){return function(){this[z]=X}}function te(z,X){return function(){var lt=X.apply(this,arguments);null==lt?delete this[z]:this[z]=lt}}function se(z){return z.trim().split(/^|\s+/)}function At(z){return z.classList||new Ht(z)}function Ht(z){this._node=z,this._names=se(z.getAttribute("class")||"")}function Zt(z,X){for(var lt=At(z),A=-1,bt=X.length;++A=0&&(this._names.splice(X,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(z){return this._names.indexOf(z)>=0}};var Ye=s(7500);function oi(){return null}function mi(){var z=this.parentNode;z&&z.removeChild(this)}function Si(){var z=this.cloneNode(!1),X=this.parentNode;return X?X.insertBefore(z,this.nextSibling):z}function qi(){var z=this.cloneNode(!0),X=this.parentNode;return X?X.insertBefore(z,this.nextSibling):z}function Qi(z){return z.trim().split(/^|\s+/).map(function(X){var lt="",A=X.indexOf(".");return A>=0&&(lt=X.slice(A+1),X=X.slice(0,A)),{type:X,name:lt}})}function Ri(z){return function(){var X=this.__on;if(X){for(var Lt,lt=0,A=-1,bt=X.length;lt=oe&&(oe=O+1);!(Ce=kt[oe])&&++oe=0;)(Pt=A[bt])&&(Lt&&4^Pt.compareDocumentPosition(Lt)&&Lt.parentNode.insertBefore(Pt,Lt),Lt=Pt);return this},sort:function Y(z){function X(pt,mt){return pt&&mt?z(pt.__data__,mt.__data__):!pt-!mt}z||(z=nt);for(var lt=this._groups,A=lt.length,bt=new Array(A),Lt=0;Lt1?this.each((null==X?ie:"function"==typeof X?te:Ot)(z,X)):this.node()[z]},classed:function Oe(z,X){var lt=se(z+"");if(arguments.length<2){for(var A=At(this.node()),bt=-1,Lt=lt.length;++bt{"use strict";s.d(D,{S:()=>t,Z:()=>p});var c=s(2442);function x(d){return function(){this.style.removeProperty(d)}}function _(d,l,h){return function(){this.style.setProperty(d,l,h)}}function m(d,l,h){return function(){var f=l.apply(this,arguments);null==f?this.style.removeProperty(d):this.style.setProperty(d,f,h)}}function p(d,l,h){return arguments.length>1?this.each((null==l?x:"function"==typeof l?m:_)(d,l,h??"")):t(this.node(),d)}function t(d,l){return d.style.getPropertyValue(l)||(0,c.Z)(d).getComputedStyle(d,null).getPropertyValue(l)}},29742:(w,D,s)=>{"use strict";function c(){}function x(_){return null==_?c:function(){return this.querySelector(_)}}s.d(D,{Z:()=>x})},32037:(w,D,s)=>{"use strict";function c(){return[]}function x(_){return null==_?c:function(){return this.querySelectorAll(_)}}s.d(D,{Z:()=>x})},75819:(w,D,s)=>{"use strict";function c(x){let _;for(;_=x.sourceEvent;)x=_;return x}s.d(D,{Z:()=>c})},2442:(w,D,s)=>{"use strict";function c(x){return x.ownerDocument&&x.ownerDocument.defaultView||x.document&&x||x.defaultView}s.d(D,{Z:()=>c})},73339:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(49194);function x(_,m,p){var t=new c.B7;return t.restart(function(d){t.stop(),_(d+m)},m=null==m?0:+m,p),t}},49194:(w,D,s)=>{"use strict";s.d(D,{B7:()=>L,HT:()=>I,R8:()=>B,zO:()=>g});var p,t,c=0,x=0,_=0,d=0,l=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(G){setTimeout(G,17)};function g(){return l||(u(C),l=f.now()+h)}function C(){l=0}function L(){this._call=this._time=this._next=null}function I(G,tt,K){var st=new L;return st.restart(G,tt,K),st}function B(){g(),++c;for(var tt,G=p;G;)(tt=l-G._time)>=0&&G._call.call(null,tt),G=G._next;--c}function M(){l=(d=f.now())+h,c=x=0;try{B()}finally{c=0,function Z(){for(var G,K,tt=p,st=1/0;tt;)tt._call?(st>tt._time&&(st=tt._time),G=tt,tt=tt._next):(K=tt._next,tt._next=null,tt=G?G._next=K:p=K);t=G,H(st)}(),l=0}}function R(){var G=f.now(),tt=G-d;tt>1e3&&(h-=tt,d=G)}function H(G){c||(x&&(x=clearTimeout(x)),G-l>24?(G<1/0&&(x=setTimeout(M,G-f.now()-h)),_&&(_=clearInterval(_))):(_||(d=f.now(),_=setInterval(R,1e3)),c=1,u(M)))}L.prototype=I.prototype={constructor:L,restart:function(G,tt,K){if("function"!=typeof G)throw new TypeError("callback is not a function");K=(null==K?g():+K)+(null==tt?0:+tt),!this._next&&t!==this&&(t?t._next=this:p=this,t=this),this._call=G,this._time=K,H()},stop:function(){this._call&&(this._call=null,this._time=1/0,H())}}},18429:(w,D,s)=>{"use strict";s.r(D),s.d(D,{active:()=>pn,interrupt:()=>Z,transition:()=>gn});var c=s(37853),x=s(25922),_=s(49194),m=s(73339),p=(0,x.Z)("start","end","cancel","interrupt"),t=[];function L(z,X,lt,A,bt,Lt){var Pt=z.__transition;if(Pt){if(lt in Pt)return}else z.__transition={};!function R(z,X,lt){var bt,A=z.__transition;function Pt(Yt){var Q,pt,mt,gt;if(1!==lt.state)return Jt();for(Q in A)if((gt=A[Q]).name===lt.name){if(3===gt.state)return(0,m.Z)(Pt);4===gt.state?(gt.state=6,gt.timer.stop(),gt.on.call("interrupt",z,z.__data__,gt.index,gt.group),delete A[Q]):+Q0)throw new Error("too late; already scheduled");return lt}function B(z,X){var lt=M(z,X);if(lt.state>3)throw new Error("too late; already running");return lt}function M(z,X){var lt=z.__transition;if(!lt||!(lt=lt[X]))throw new Error("transition not found");return lt}function Z(z,X){var A,bt,Pt,lt=z.__transition,Lt=!0;if(lt){for(Pt in X=null==X?null:X+"",lt)(A=lt[Pt]).name===X?(bt=A.state>2&&A.state<5,A.state=6,A.timer.stop(),A.on.call(bt?"interrupt":"cancel",z,z.__data__,A.index,A.group),delete lt[Pt]):Lt=!1;Lt&&delete z.__transition}}var G=s(75349),tt=s(36175);function K(z,X){var lt,A;return function(){var bt=B(this,z),Lt=bt.tween;if(Lt!==lt)for(var Pt=0,Gt=(A=lt=Lt).length;Pt=0&&(X=X.slice(0,lt)),!X||"start"===X})}(X)?I:B;return function(){var Pt=Lt(this,z),Gt=Pt.on;Gt!==A&&(bt=(A=Gt).copy()).on(X,lt),Pt.on=bt}}var an=s(29742),ln=s(32037),Wt=c.ZP.prototype.constructor,_e=s(24476);function Ze(z){return function(){this.style.removeProperty(z)}}function mi(z,X,lt){return function(A){this.style.setProperty(z,X.call(this,A),lt)}}function gi(z,X,lt){var A,bt;function Lt(){var Pt=X.apply(this,arguments);return Pt!==bt&&(A=(bt=Pt)&&mi(z,Pt,lt)),A}return Lt._value=X,Lt}function _i(z){return function(X){this.textContent=z.call(this,X)}}function Qi(z){var X,lt;function A(){var bt=z.apply(this,arguments);return bt!==lt&&(X=(lt=bt)&&_i(bt)),X}return A._value=z,A}var ji=0;function In(z,X,lt,A){this._groups=z,this._parents=X,this._name=lt,this._id=A}function gn(z){return(0,c.ZP)().transition(z)}function sn(){return++ji}var zn=c.ZP.prototype;In.prototype=gn.prototype={constructor:In,select:function be(z){var X=this._name,lt=this._id;"function"!=typeof z&&(z=(0,an.Z)(z));for(var A=this._groups,bt=A.length,Lt=new Array(bt),Pt=0;Pt1&&A.name===X)return new In([[z]],Nn,X,+bt);return null}},46041:(w,D,s)=>{"use strict";s.r(D),s.d(D,{zoom:()=>H,zoomIdentity:()=>f,zoomTransform:()=>u});var c=s(25922),x=s(56758),_=s(76257),m=s(52016),p=s(29132),t=s(18429);const d=G=>()=>G;function l(G,{sourceEvent:tt,target:K,transform:st,dispatch:j}){Object.defineProperties(this,{type:{value:G,enumerable:!0,configurable:!0},sourceEvent:{value:tt,enumerable:!0,configurable:!0},target:{value:K,enumerable:!0,configurable:!0},transform:{value:st,enumerable:!0,configurable:!0},_:{value:j}})}function h(G,tt,K){this.k=G,this.x=tt,this.y=K}h.prototype={constructor:h,scale:function(G){return 1===G?this:new h(this.k*G,this.x,this.y)},translate:function(G,tt){return 0===G&0===tt?this:new h(this.k,this.x+this.k*G,this.y+this.k*tt)},apply:function(G){return[G[0]*this.k+this.x,G[1]*this.k+this.y]},applyX:function(G){return G*this.k+this.x},applyY:function(G){return G*this.k+this.y},invert:function(G){return[(G[0]-this.x)/this.k,(G[1]-this.y)/this.k]},invertX:function(G){return(G-this.x)/this.k},invertY:function(G){return(G-this.y)/this.k},rescaleX:function(G){return G.copy().domain(G.range().map(this.invertX,this).map(G.invert,G))},rescaleY:function(G){return G.copy().domain(G.range().map(this.invertY,this).map(G.invert,G))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var f=new h(1,0,0);function u(G){for(;!G.__zoom;)if(!(G=G.parentNode))return f;return G.__zoom}function g(G){G.stopImmediatePropagation()}function C(G){G.preventDefault(),G.stopImmediatePropagation()}function L(G){return!(G.ctrlKey&&"wheel"!==G.type||G.button)}function I(){var G=this;return G instanceof SVGElement?(G=G.ownerSVGElement||G).hasAttribute("viewBox")?[[(G=G.viewBox.baseVal).x,G.y],[G.x+G.width,G.y+G.height]]:[[0,0],[G.width.baseVal.value,G.height.baseVal.value]]:[[0,0],[G.clientWidth,G.clientHeight]]}function B(){return this.__zoom||f}function M(G){return-G.deltaY*(1===G.deltaMode?.05:G.deltaMode?1:.002)*(G.ctrlKey?10:1)}function R(){return navigator.maxTouchPoints||"ontouchstart"in this}function Z(G,tt,K){var st=G.invertX(tt[0][0])-K[0][0],j=G.invertX(tt[1][0])-K[1][0],W=G.invertY(tt[0][1])-K[0][1],et=G.invertY(tt[1][1])-K[1][1];return G.translate(j>st?(st+j)/2:Math.min(0,st)||Math.max(0,j),et>W?(W+et)/2:Math.min(0,W)||Math.max(0,et))}function H(){var rt,q,F,G=L,tt=I,K=Z,st=M,j=R,W=[0,1/0],et=[[-1/0,-1/0],[1/0,1/0]],at=250,Y=_.Z,nt=(0,c.Z)("start","zoom","end"),E=500,ft=0,Dt=10;function St(At){At.property("__zoom",B).on("wheel.zoom",de).on("mousedown.zoom",ie).on("dblclick.zoom",Ot).filter(j).on("touchstart.zoom",te).on("touchmove.zoom",jt).on("touchend.zoom touchcancel.zoom",se).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Qt(At,Ht){return(Ht=Math.max(W[0],Math.min(W[1],Ht)))===At.k?At:new h(Ht,At.x,At.y)}function pe(At,Ht,Zt){var Kt=Ht[0]-Zt[0]*At.k,xe=Ht[1]-Zt[1]*At.k;return Kt===At.x&&xe===At.y?At:new h(At.k,Kt,xe)}function wt(At){return[(+At[0][0]+ +At[1][0])/2,(+At[0][1]+ +At[1][1])/2]}function yt(At,Ht,Zt,Kt){At.on("start.zoom",function(){Nt(this,arguments).event(Kt).start()}).on("interrupt.zoom end.zoom",function(){Nt(this,arguments).event(Kt).end()}).tween("zoom",function(){var xe=this,Te=arguments,Le=Nt(xe,Te).event(Kt),Oe=tt.apply(xe,Te),Ee=null==Zt?wt(Oe):"function"==typeof Zt?Zt.apply(xe,Te):Zt,He=Math.max(Oe[1][0]-Oe[0][0],Oe[1][1]-Oe[0][1]),Ge=xe.__zoom,an="function"==typeof Ht?Ht.apply(xe,Te):Ht,be=Y(Ge.invert(Ee).concat(He/Ge.k),an.invert(Ee).concat(He/an.k));return function(ln){if(1===ln)ln=an;else{var Tt=be(ln),Wt=He/Tt[2];ln=new h(Wt,Ee[0]-Tt[0]*Wt,Ee[1]-Tt[1]*Wt)}Le.zoom(null,ln)}})}function Nt(At,Ht,Zt){return!Zt&&At.__zooming||new zt(At,Ht)}function zt(At,Ht){this.that=At,this.args=Ht,this.active=0,this.sourceEvent=null,this.extent=tt.apply(At,Ht),this.taps=0}function de(At,...Ht){if(G.apply(this,arguments)){var Zt=Nt(this,Ht).event(At),Kt=this.__zoom,xe=Math.max(W[0],Math.min(W[1],Kt.k*Math.pow(2,st.apply(this,arguments)))),Te=(0,p.Z)(At);if(Zt.wheel)(Zt.mouse[0][0]!==Te[0]||Zt.mouse[0][1]!==Te[1])&&(Zt.mouse[1]=Kt.invert(Zt.mouse[0]=Te)),clearTimeout(Zt.wheel);else{if(Kt.k===xe)return;Zt.mouse=[Te,Kt.invert(Te)],(0,t.interrupt)(this),Zt.start()}C(At),Zt.wheel=setTimeout(Le,150),Zt.zoom("mouse",K(pe(Qt(Kt,xe),Zt.mouse[0],Zt.mouse[1]),Zt.extent,et))}function Le(){Zt.wheel=null,Zt.end()}}function ie(At,...Ht){if(!F&&G.apply(this,arguments)){var Zt=Nt(this,Ht,!0).event(At),Kt=(0,m.Z)(At.view).on("mousemove.zoom",Ee,!0).on("mouseup.zoom",He,!0),xe=(0,p.Z)(At,Te),Te=At.currentTarget,Le=At.clientX,Oe=At.clientY;(0,x.Z)(At.view),g(At),Zt.mouse=[xe,this.__zoom.invert(xe)],(0,t.interrupt)(this),Zt.start()}function Ee(Ge){if(C(Ge),!Zt.moved){var an=Ge.clientX-Le,be=Ge.clientY-Oe;Zt.moved=an*an+be*be>ft}Zt.event(Ge).zoom("mouse",K(pe(Zt.that.__zoom,Zt.mouse[0]=(0,p.Z)(Ge,Te),Zt.mouse[1]),Zt.extent,et))}function He(Ge){Kt.on("mousemove.zoom mouseup.zoom",null),(0,x.D)(Ge.view,Zt.moved),C(Ge),Zt.event(Ge).end()}}function Ot(At,...Ht){if(G.apply(this,arguments)){var Zt=this.__zoom,Kt=(0,p.Z)(At.changedTouches?At.changedTouches[0]:At,this),xe=Zt.invert(Kt),Te=Zt.k*(At.shiftKey?.5:2),Le=K(pe(Qt(Zt,Te),Kt,xe),tt.apply(this,Ht),et);C(At),at>0?(0,m.Z)(this).transition().duration(at).call(yt,Le,Kt,At):(0,m.Z)(this).call(St.transform,Le,Kt,At)}}function te(At,...Ht){if(G.apply(this,arguments)){var Te,Le,Oe,Ee,Zt=At.touches,Kt=Zt.length,xe=Nt(this,Ht,At.changedTouches.length===Kt).event(At);for(g(At),Le=0;Le{w.exports={graphlib:s(36456),layout:s(14850),debug:s(71914),util:{time:s(11510).time,notime:s(11510).notime},version:s(28126)}},12234:(w,D,s)=>{"use strict";var c=s(45760),x=s(67365);w.exports={run:function _(t){var d="greedy"===t.graph().acyclicer?x(t,function l(h){return function(f){return h.edge(f).weight}}(t)):function m(t){var d=[],l={},h={};return c.forEach(t.nodes(),function f(u){c.has(h,u)||(h[u]=!0,l[u]=!0,c.forEach(t.outEdges(u),function(g){c.has(l,g.w)?d.push(g):f(g.w)}),delete l[u])}),d}(t);c.forEach(d,function(h){var f=t.edge(h);t.removeEdge(h),f.forwardName=h.name,f.reversed=!0,t.setEdge(h.w,h.v,f,c.uniqueId("rev"))})},undo:function p(t){c.forEach(t.edges(),function(d){var l=t.edge(d);if(l.reversed){t.removeEdge(d);var h=l.forwardName;delete l.reversed,delete l.forwardName,t.setEdge(d.w,d.v,l,h)}})}}},79999:(w,D,s)=>{var c=s(45760),x=s(11510);function m(p,t,d,l,h,f){var g=h[t][f-1],C=x.addDummyNode(p,"border",{width:0,height:0,rank:f,borderType:t},d);h[t][f]=C,p.setParent(C,l),g&&p.setEdge(g,C,{weight:1})}w.exports=function _(p){c.forEach(p.children(),function t(d){var l=p.children(d),h=p.node(d);if(l.length&&c.forEach(l,t),c.has(h,"minRank")){h.borderLeft=[],h.borderRight=[];for(var f=h.minRank,u=h.maxRank+1;f{"use strict";var c=s(45760);function m(f){c.forEach(f.nodes(),function(u){p(f.node(u))}),c.forEach(f.edges(),function(u){p(f.edge(u))})}function p(f){var u=f.width;f.width=f.height,f.height=u}function d(f){f.y=-f.y}function h(f){var u=f.x;f.x=f.y,f.y=u}w.exports={adjust:function x(f){var u=f.graph().rankdir.toLowerCase();("lr"===u||"rl"===u)&&m(f)},undo:function _(f){var u=f.graph().rankdir.toLowerCase();("bt"===u||"rl"===u)&&function t(f){c.forEach(f.nodes(),function(u){d(f.node(u))}),c.forEach(f.edges(),function(u){var g=f.edge(u);c.forEach(g.points,d),c.has(g,"y")&&d(g)})}(f),("lr"===u||"rl"===u)&&(function l(f){c.forEach(f.nodes(),function(u){h(f.node(u))}),c.forEach(f.edges(),function(u){var g=f.edge(u);c.forEach(g.points,h),c.has(g,"x")&&h(g)})}(f),m(f))}}},3226:w=>{function D(){var x={};x._next=x._prev=x,this._sentinel=x}function s(x){x._prev._next=x._next,x._next._prev=x._prev,delete x._next,delete x._prev}function c(x,_){if("_next"!==x&&"_prev"!==x)return _}w.exports=D,D.prototype.dequeue=function(){var x=this._sentinel,_=x._prev;if(_!==x)return s(_),_},D.prototype.enqueue=function(x){var _=this._sentinel;x._prev&&x._next&&s(x),x._next=_._next,_._next._prev=x,_._next=x,x._prev=_},D.prototype.toString=function(){for(var x=[],_=this._sentinel,m=_._prev;m!==_;)x.push(JSON.stringify(m,c)),m=m._prev;return"["+x.join(", ")+"]"}},71914:(w,D,s)=>{var c=s(45760),x=s(11510),_=s(36456).Graph;w.exports={debugOrdering:function m(p){var t=x.buildLayerMatrix(p),d=new _({compound:!0,multigraph:!0}).setGraph({});return c.forEach(p.nodes(),function(l){d.setNode(l,{label:l}),d.setParent(l,"layer"+p.node(l).rank)}),c.forEach(p.edges(),function(l){d.setEdge(l.v,l.w,{},l.name)}),c.forEach(t,function(l,h){d.setNode("layer"+h,{rank:"same"}),c.reduce(l,function(u,g){return d.setEdge(u,g,{style:"invis"}),g})}),d}}},36456:(w,D,s)=>{var c;try{c=s(85510)}catch{}c||(c=window.graphlib),w.exports=c},67365:(w,D,s)=>{var c=s(45760),x=s(36456).Graph,_=s(3226);w.exports=function p(f,u){if(f.nodeCount()<=1)return[];var g=function l(f,u){var g=new x,C=0,L=0;c.forEach(f.nodes(),function(M){g.setNode(M,{v:M,in:0,out:0})}),c.forEach(f.edges(),function(M){var R=g.edge(M.v,M.w)||0,Z=u(M);g.setEdge(M.v,M.w,R+Z),L=Math.max(L,g.node(M.v).out+=Z),C=Math.max(C,g.node(M.w).in+=Z)});var I=c.range(L+C+3).map(function(){return new _}),B=C+1;return c.forEach(g.nodes(),function(M){h(I,B,g.node(M))}),{graph:g,buckets:I,zeroIdx:B}}(f,u||m),C=function t(f,u,g){for(var B,C=[],L=u[u.length-1],I=u[0];f.nodeCount();){for(;B=I.dequeue();)d(f,u,g,B);for(;B=L.dequeue();)d(f,u,g,B);if(f.nodeCount())for(var M=u.length-2;M>0;--M)if(B=u[M].dequeue()){C=C.concat(d(f,u,g,B,!0));break}}return C}(g.graph,g.buckets,g.zeroIdx);return c.flatten(c.map(C,function(L){return f.outEdges(L.v,L.w)}),!0)};var m=c.constant(1);function d(f,u,g,C,L){var I=L?[]:void 0;return c.forEach(f.inEdges(C.v),function(B){var M=f.edge(B),R=f.node(B.v);L&&I.push({v:B.v,w:B.w}),R.out-=M,h(u,g,R)}),c.forEach(f.outEdges(C.v),function(B){var M=f.edge(B),Z=f.node(B.w);Z.in-=M,h(u,g,Z)}),f.removeNode(C.v),I}function h(f,u,g){g.out?g.in?f[g.out-g.in+u].enqueue(g):f[f.length-1].enqueue(g):f[0].enqueue(g)}},14850:(w,D,s)=>{"use strict";var c=s(45760),x=s(12234),_=s(91496),m=s(94124),p=s(11510).normalizeRanks,t=s(60162),d=s(11510).removeEmptyRanks,l=s(1230),h=s(79999),f=s(83870),u=s(32974),g=s(78226),C=s(11510),L=s(36456).Graph;w.exports=function I(wt,yt){var Nt=yt&&yt.debugTiming?C.time:C.notime;Nt("layout",function(){var zt=Nt(" buildLayoutGraph",function(){return function W(wt){var yt=new L({multigraph:!0,compound:!0}),Nt=pe(wt.graph());return yt.setGraph(c.merge({},Z,Qt(Nt,R),c.pick(Nt,H))),c.forEach(wt.nodes(),function(zt){var de=pe(wt.node(zt));yt.setNode(zt,c.defaults(Qt(de,G),tt)),yt.setParent(zt,wt.parent(zt))}),c.forEach(wt.edges(),function(zt){var de=pe(wt.edge(zt));yt.setEdge(zt,c.merge({},st,Qt(de,K),c.pick(de,j)))}),yt}(wt)});Nt(" runLayout",function(){!function B(wt,yt){yt(" makeSpaceForEdgeLabels",function(){!function et(wt){var yt=wt.graph();yt.ranksep/=2,c.forEach(wt.edges(),function(Nt){var zt=wt.edge(Nt);zt.minlen*=2,"c"!==zt.labelpos.toLowerCase()&&("TB"===yt.rankdir||"BT"===yt.rankdir?zt.width+=zt.labeloffset:zt.height+=zt.labeloffset)})}(wt)}),yt(" removeSelfEdges",function(){!function ft(wt){c.forEach(wt.edges(),function(yt){if(yt.v===yt.w){var Nt=wt.node(yt.v);Nt.selfEdges||(Nt.selfEdges=[]),Nt.selfEdges.push({e:yt,label:wt.edge(yt)}),wt.removeEdge(yt)}})}(wt)}),yt(" acyclic",function(){x.run(wt)}),yt(" nestingGraph.run",function(){l.run(wt)}),yt(" rank",function(){m(C.asNonCompoundGraph(wt))}),yt(" injectEdgeLabelProxies",function(){!function at(wt){c.forEach(wt.edges(),function(yt){var Nt=wt.edge(yt);if(Nt.width&&Nt.height){var zt=wt.node(yt.v),de=wt.node(yt.w);C.addDummyNode(wt,"edge-proxy",{rank:(de.rank-zt.rank)/2+zt.rank,e:yt},"_ep")}})}(wt)}),yt(" removeEmptyRanks",function(){d(wt)}),yt(" nestingGraph.cleanup",function(){l.cleanup(wt)}),yt(" normalizeRanks",function(){p(wt)}),yt(" assignRankMinMax",function(){!function Y(wt){var yt=0;c.forEach(wt.nodes(),function(Nt){var zt=wt.node(Nt);zt.borderTop&&(zt.minRank=wt.node(zt.borderTop).rank,zt.maxRank=wt.node(zt.borderBottom).rank,yt=c.max(yt,zt.maxRank))}),wt.graph().maxRank=yt}(wt)}),yt(" removeEdgeLabelProxies",function(){!function nt(wt){c.forEach(wt.nodes(),function(yt){var Nt=wt.node(yt);"edge-proxy"===Nt.dummy&&(wt.edge(Nt.e).labelRank=Nt.rank,wt.removeNode(yt))})}(wt)}),yt(" normalize.run",function(){_.run(wt)}),yt(" parentDummyChains",function(){t(wt)}),yt(" addBorderSegments",function(){h(wt)}),yt(" order",function(){u(wt)}),yt(" insertSelfEdges",function(){!function Dt(wt){var yt=C.buildLayerMatrix(wt);c.forEach(yt,function(Nt){var zt=0;c.forEach(Nt,function(de,ie){var Ot=wt.node(de);Ot.order=ie+zt,c.forEach(Ot.selfEdges,function(te){C.addDummyNode(wt,"selfedge",{width:te.label.width,height:te.label.height,rank:Ot.rank,order:ie+ ++zt,e:te.e,label:te.label},"_se")}),delete Ot.selfEdges})})}(wt)}),yt(" adjustCoordinateSystem",function(){f.adjust(wt)}),yt(" position",function(){g(wt)}),yt(" positionSelfEdges",function(){!function St(wt){c.forEach(wt.nodes(),function(yt){var Nt=wt.node(yt);if("selfedge"===Nt.dummy){var zt=wt.node(Nt.e.v),de=zt.x+zt.width/2,ie=zt.y,Ot=Nt.x-de,te=zt.height/2;wt.setEdge(Nt.e,Nt.label),wt.removeNode(yt),Nt.label.points=[{x:de+2*Ot/3,y:ie-te},{x:de+5*Ot/6,y:ie-te},{x:de+Ot,y:ie},{x:de+5*Ot/6,y:ie+te},{x:de+2*Ot/3,y:ie+te}],Nt.label.x=Nt.x,Nt.label.y=Nt.y}})}(wt)}),yt(" removeBorderNodes",function(){!function ut(wt){c.forEach(wt.nodes(),function(yt){if(wt.children(yt).length){var Nt=wt.node(yt),zt=wt.node(Nt.borderTop),de=wt.node(Nt.borderBottom),ie=wt.node(c.last(Nt.borderLeft)),Ot=wt.node(c.last(Nt.borderRight));Nt.width=Math.abs(Ot.x-ie.x),Nt.height=Math.abs(de.y-zt.y),Nt.x=ie.x+Nt.width/2,Nt.y=zt.y+Nt.height/2}}),c.forEach(wt.nodes(),function(yt){"border"===wt.node(yt).dummy&&wt.removeNode(yt)})}(wt)}),yt(" normalize.undo",function(){_.undo(wt)}),yt(" fixupEdgeLabelCoords",function(){!function F(wt){c.forEach(wt.edges(),function(yt){var Nt=wt.edge(yt);if(c.has(Nt,"x"))switch(("l"===Nt.labelpos||"r"===Nt.labelpos)&&(Nt.width-=Nt.labeloffset),Nt.labelpos){case"l":Nt.x-=Nt.width/2+Nt.labeloffset;break;case"r":Nt.x+=Nt.width/2+Nt.labeloffset}})}(wt)}),yt(" undoCoordinateSystem",function(){f.undo(wt)}),yt(" translateGraph",function(){!function rt(wt){var yt=Number.POSITIVE_INFINITY,Nt=0,zt=Number.POSITIVE_INFINITY,de=0,ie=wt.graph(),Ot=ie.marginx||0,te=ie.marginy||0;function jt(se){var At=se.x,Ht=se.y,Zt=se.width,Kt=se.height;yt=Math.min(yt,At-Zt/2),Nt=Math.max(Nt,At+Zt/2),zt=Math.min(zt,Ht-Kt/2),de=Math.max(de,Ht+Kt/2)}c.forEach(wt.nodes(),function(se){jt(wt.node(se))}),c.forEach(wt.edges(),function(se){var At=wt.edge(se);c.has(At,"x")&&jt(At)}),yt-=Ot,zt-=te,c.forEach(wt.nodes(),function(se){var At=wt.node(se);At.x-=yt,At.y-=zt}),c.forEach(wt.edges(),function(se){var At=wt.edge(se);c.forEach(At.points,function(Ht){Ht.x-=yt,Ht.y-=zt}),c.has(At,"x")&&(At.x-=yt),c.has(At,"y")&&(At.y-=zt)}),ie.width=Nt-yt+Ot,ie.height=de-zt+te}(wt)}),yt(" assignNodeIntersects",function(){!function q(wt){c.forEach(wt.edges(),function(yt){var ie,Ot,Nt=wt.edge(yt),zt=wt.node(yt.v),de=wt.node(yt.w);Nt.points?(ie=Nt.points[0],Ot=Nt.points[Nt.points.length-1]):(Nt.points=[],ie=de,Ot=zt),Nt.points.unshift(C.intersectRect(zt,ie)),Nt.points.push(C.intersectRect(de,Ot))})}(wt)}),yt(" reversePoints",function(){!function E(wt){c.forEach(wt.edges(),function(yt){var Nt=wt.edge(yt);Nt.reversed&&Nt.points.reverse()})}(wt)}),yt(" acyclic.undo",function(){x.undo(wt)})}(zt,Nt)}),Nt(" updateInputGraph",function(){!function M(wt,yt){c.forEach(wt.nodes(),function(Nt){var zt=wt.node(Nt),de=yt.node(Nt);zt&&(zt.x=de.x,zt.y=de.y,yt.children(Nt).length&&(zt.width=de.width,zt.height=de.height))}),c.forEach(wt.edges(),function(Nt){var zt=wt.edge(Nt),de=yt.edge(Nt);zt.points=de.points,c.has(de,"x")&&(zt.x=de.x,zt.y=de.y)}),wt.graph().width=yt.graph().width,wt.graph().height=yt.graph().height}(wt,zt)})})};var R=["nodesep","edgesep","ranksep","marginx","marginy"],Z={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},H=["acyclicer","ranker","rankdir","align"],G=["width","height"],tt={width:0,height:0},K=["minlen","weight","width","height","labeloffset"],st={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},j=["labelpos"];function Qt(wt,yt){return c.mapValues(c.pick(wt,yt),Number)}function pe(wt){var yt={};return c.forEach(wt,function(Nt,zt){yt[zt.toLowerCase()]=Nt}),yt}},45760:(w,D,s)=>{var c;try{c={cloneDeep:s(90733),constant:s(76684),defaults:s(28800),each:s(35474),filter:s(35281),find:s(62516),flatten:s(22274),forEach:s(89851),forIn:s(41176),has:s(54842),isUndefined:s(34235),last:s(25809),map:s(19984),mapValues:s(10203),max:s(18176),merge:s(80567),min:s(29439),minBy:s(29525),now:s(31710),pick:s(16372),range:s(90361),reduce:s(81337),sortBy:s(12906),uniqueId:s(51541),values:s(90377),zipObject:s(21617)}}catch{}c||(c=window._),w.exports=c},1230:(w,D,s)=>{var c=s(45760),x=s(11510);function m(l,h,f,u,g,C,L){var I=l.children(L);if(I.length){var B=x.addBorderNode(l,"_bt"),M=x.addBorderNode(l,"_bb"),R=l.node(L);l.setParent(B,L),R.borderTop=B,l.setParent(M,L),R.borderBottom=M,c.forEach(I,function(Z){m(l,h,f,u,g,C,Z);var H=l.node(Z),G=H.borderTop?H.borderTop:Z,tt=H.borderBottom?H.borderBottom:Z,K=H.borderTop?u:2*u,st=G!==tt?1:g-C[L]+1;l.setEdge(B,G,{weight:K,minlen:st,nestingEdge:!0}),l.setEdge(tt,M,{weight:K,minlen:st,nestingEdge:!0})}),l.parent(L)||l.setEdge(h,B,{weight:0,minlen:g+C[L]})}else L!==h&&l.setEdge(h,L,{weight:0,minlen:f})}w.exports={run:function _(l){var h=x.addDummyNode(l,"root",{},"_root"),f=function p(l){var h={};function f(u,g){var C=l.children(u);C&&C.length&&c.forEach(C,function(L){f(L,g+1)}),h[u]=g}return c.forEach(l.children(),function(u){f(u,1)}),h}(l),u=c.max(c.values(f))-1,g=2*u+1;l.graph().nestingRoot=h,c.forEach(l.edges(),function(L){l.edge(L).minlen*=g});var C=function t(l){return c.reduce(l.edges(),function(h,f){return h+l.edge(f).weight},0)}(l)+1;c.forEach(l.children(),function(L){m(l,h,g,C,u,f,L)}),l.graph().nodeRankFactor=g},cleanup:function d(l){var h=l.graph();l.removeNode(h.nestingRoot),delete h.nestingRoot,c.forEach(l.edges(),function(f){l.edge(f).nestingEdge&&l.removeEdge(f)})}}},91496:(w,D,s)=>{"use strict";var c=s(45760),x=s(11510);w.exports={run:function _(t){t.graph().dummyChains=[],c.forEach(t.edges(),function(d){!function m(t,d){var l=d.v,h=t.node(l).rank,f=d.w,u=t.node(f).rank,g=d.name,C=t.edge(d),L=C.labelRank;if(u!==h+1){var I,B,M;for(t.removeEdge(d),M=0,++h;h{var c=s(45760);w.exports=function x(_,m,p){var d,t={};c.forEach(p,function(l){for(var f,u,h=_.parent(l);h;){if((f=_.parent(h))?(u=t[f],t[f]=h):(u=d,d=h),u&&u!==h)return void m.setEdge(u,h);h=f}})}},81323:(w,D,s)=>{var c=s(45760);w.exports=function x(_,m){return c.map(m,function(p){var t=_.inEdges(p);if(t.length){var d=c.reduce(t,function(l,h){var f=_.edge(h),u=_.node(h.v);return{sum:l.sum+f.weight*u.order,weight:l.weight+f.weight}},{sum:0,weight:0});return{v:p,barycenter:d.sum/d.weight,weight:d.weight}}return{v:p}})}},1686:(w,D,s)=>{var c=s(45760),x=s(36456).Graph;w.exports=function _(p,t,d){var l=function m(p){for(var t;p.hasNode(t=c.uniqueId("_root")););return t}(p),h=new x({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(f){return p.node(f)});return c.forEach(p.nodes(),function(f){var u=p.node(f),g=p.parent(f);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(h.setNode(f),h.setParent(f,g||l),c.forEach(p[d](f),function(C){var L=C.v===f?C.w:C.v,I=h.edge(L,f),B=c.isUndefined(I)?0:I.weight;h.setEdge(L,f,{weight:p.edge(C).weight+B})}),c.has(u,"minRank")&&h.setNode(f,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))}),h}},18796:(w,D,s)=>{"use strict";var c=s(45760);function _(m,p,t){for(var d=c.zipObject(t,c.map(t,function(C,L){return L})),l=c.flatten(c.map(p,function(C){return c.sortBy(c.map(m.outEdges(C),function(L){return{pos:d[L.w],weight:m.edge(L).weight}}),"pos")}),!0),h=1;h0;)L%2&&(I+=u[L+1]),u[L=L-1>>1]+=C.weight;g+=C.weight*I})),g}w.exports=function x(m,p){for(var t=0,d=1;d{"use strict";var c=s(45760),x=s(49402),_=s(18796),m=s(61057),p=s(1686),t=s(33034),d=s(36456).Graph,l=s(11510);function f(C,L,I){return c.map(L,function(B){return p(C,B,I)})}function u(C,L){var I=new d;c.forEach(C,function(B){var M=B.graph().root,R=m(B,M,I,L);c.forEach(R.vs,function(Z,H){B.node(Z).order=H}),t(B,I,R.vs)})}function g(C,L){c.forEach(L,function(I){c.forEach(I,function(B,M){C.node(B).order=M})})}w.exports=function h(C){var L=l.maxRank(C),I=f(C,c.range(1,L+1),"inEdges"),B=f(C,c.range(L-1,-1,-1),"outEdges"),M=x(C);g(C,M);for(var Z,R=Number.POSITIVE_INFINITY,H=0,G=0;G<4;++H,++G){u(H%2?I:B,H%4>=2),M=l.buildLayerMatrix(C);var tt=_(C,M);tt{"use strict";var c=s(45760);w.exports=function x(_){var m={},p=c.filter(_.nodes(),function(f){return!_.children(f).length}),t=c.max(c.map(p,function(f){return _.node(f).rank})),d=c.map(c.range(t+1),function(){return[]}),h=c.sortBy(p,function(f){return _.node(f).rank});return c.forEach(h,function l(f){if(!c.has(m,f)){m[f]=!0;var u=_.node(f);d[u.rank].push(f),c.forEach(_.successors(f),l)}}),d}},83826:(w,D,s)=>{"use strict";var c=s(45760);w.exports=function x(p,t){var d={};return c.forEach(p,function(h,f){var u=d[h.v]={indegree:0,in:[],out:[],vs:[h.v],i:f};c.isUndefined(h.barycenter)||(u.barycenter=h.barycenter,u.weight=h.weight)}),c.forEach(t.edges(),function(h){var f=d[h.v],u=d[h.w];!c.isUndefined(f)&&!c.isUndefined(u)&&(u.indegree++,f.out.push(d[h.w]))}),function _(p){var t=[];function d(f){return function(u){u.merged||(c.isUndefined(u.barycenter)||c.isUndefined(f.barycenter)||u.barycenter>=f.barycenter)&&function m(p,t){var d=0,l=0;p.weight&&(d+=p.barycenter*p.weight,l+=p.weight),t.weight&&(d+=t.barycenter*t.weight,l+=t.weight),p.vs=t.vs.concat(p.vs),p.barycenter=d/l,p.weight=l,p.i=Math.min(t.i,p.i),t.merged=!0}(f,u)}}function l(f){return function(u){u.in.push(f),0==--u.indegree&&p.push(u)}}for(;p.length;){var h=p.pop();t.push(h),c.forEach(h.in.reverse(),d(h)),c.forEach(h.out,l(h))}return c.map(c.filter(t,function(f){return!f.merged}),function(f){return c.pick(f,["vs","i","barycenter","weight"])})}(c.filter(d,function(h){return!h.indegree}))}},61057:(w,D,s)=>{var c=s(45760),x=s(81323),_=s(83826),m=s(93803);w.exports=function p(l,h,f,u){var g=l.children(h),C=l.node(h),L=C?C.borderLeft:void 0,I=C?C.borderRight:void 0,B={};L&&(g=c.filter(g,function(tt){return tt!==L&&tt!==I}));var M=x(l,g);c.forEach(M,function(tt){if(l.children(tt.v).length){var K=p(l,tt.v,f,u);B[tt.v]=K,c.has(K,"barycenter")&&function d(l,h){c.isUndefined(l.barycenter)?(l.barycenter=h.barycenter,l.weight=h.weight):(l.barycenter=(l.barycenter*l.weight+h.barycenter*h.weight)/(l.weight+h.weight),l.weight+=h.weight)}(tt,K)}});var R=_(M,f);!function t(l,h){c.forEach(l,function(f){f.vs=c.flatten(f.vs.map(function(u){return h[u]?h[u].vs:u}),!0)})}(R,B);var Z=m(R,u);if(L&&(Z.vs=c.flatten([L,Z.vs,I],!0),l.predecessors(L).length)){var H=l.node(l.predecessors(L)[0]),G=l.node(l.predecessors(I)[0]);c.has(Z,"barycenter")||(Z.barycenter=0,Z.weight=0),Z.barycenter=(Z.barycenter*Z.weight+H.order+G.order)/(Z.weight+2),Z.weight+=2}return Z}},93803:(w,D,s)=>{var c=s(45760),x=s(11510);function m(t,d,l){for(var h;d.length&&(h=c.last(d)).i<=l;)d.pop(),t.push(h.vs),l++;return l}w.exports=function _(t,d){var l=x.partition(t,function(B){return c.has(B,"barycenter")}),h=l.lhs,f=c.sortBy(l.rhs,function(B){return-B.i}),u=[],g=0,C=0,L=0;h.sort(function p(t){return function(d,l){return d.barycenterl.barycenter?1:t?l.i-d.i:d.i-l.i}}(!!d)),L=m(u,f,L),c.forEach(h,function(B){L+=B.vs.length,u.push(B.vs),g+=B.barycenter*B.weight,C+=B.weight,L=m(u,f,L)});var I={vs:c.flatten(u,!0)};return C&&(I.barycenter=g/C,I.weight=C),I}},60162:(w,D,s)=>{var c=s(45760);w.exports=function x(p){var t=function m(p){var t={},d=0;return c.forEach(p.children(),function l(h){var f=d;c.forEach(p.children(h),l),t[h]={low:f,lim:d++}}),t}(p);c.forEach(p.graph().dummyChains,function(d){for(var l=p.node(d),h=l.edgeObj,f=function _(p,t,d,l){var C,L,h=[],f=[],u=Math.min(t[d].low,t[l].low),g=Math.max(t[d].lim,t[l].lim);C=d;do{C=p.parent(C),h.push(C)}while(C&&(t[C].low>u||g>t[C].lim));for(L=C,C=l;(C=p.parent(C))!==L;)f.push(C);return{path:h.concat(f.reverse()),lca:L}}(p,t,h.v,h.w),u=f.path,g=f.lca,C=0,L=u[C],I=!0;d!==h.w;){if(l=p.node(d),I){for(;(L=u[C])!==g&&p.node(L).maxRank{"use strict";var c=s(45760),x=s(36456).Graph,_=s(11510);function m(R,Z){var H={};return c.reduce(Z,function G(tt,K){var st=0,j=0,W=tt.length,et=c.last(K);return c.forEach(K,function(at,Y){var nt=function t(R,Z){if(R.node(Z).dummy)return c.find(R.predecessors(Z),function(H){return R.node(H).dummy})}(R,at),rt=nt?R.node(nt).order:W;(nt||at===et)&&(c.forEach(K.slice(j,Y+1),function(q){c.forEach(R.predecessors(q),function(F){var E=R.node(F),ut=E.order;(utet)&&d(H,nt,at)})})}return c.reduce(Z,function tt(K,st){var W,j=-1,et=0;return c.forEach(st,function(at,Y){if("border"===R.node(at).dummy){var nt=R.predecessors(at);nt.length&&(W=R.node(nt[0]).order,G(st,et,Y,j,W),et=Y,j=W)}G(st,et,st.length,W,K.length)}),st}),H}function d(R,Z,H){if(Z>H){var G=Z;Z=H,H=G}var tt=R[Z];tt||(R[Z]=tt={}),tt[H]=!0}function l(R,Z,H){if(Z>H){var G=Z;Z=H,H=G}return c.has(R[Z],H)}function h(R,Z,H,G){var tt={},K={},st={};return c.forEach(Z,function(j){c.forEach(j,function(W,et){tt[W]=W,K[W]=W,st[W]=et})}),c.forEach(Z,function(j){var W=-1;c.forEach(j,function(et){var at=G(et);if(at.length)for(var Y=((at=c.sortBy(at,function(F){return st[F]})).length-1)/2,nt=Math.floor(Y),rt=Math.ceil(Y);nt<=rt;++nt){var q=at[nt];K[et]===et&&W{"use strict";var c=s(45760),x=s(11510),_=s(54058).positionX;w.exports=function m(t){(function p(t){var d=x.buildLayerMatrix(t),l=t.graph().ranksep,h=0;c.forEach(d,function(f){var u=c.max(c.map(f,function(g){return t.node(g).height}));c.forEach(f,function(g){t.node(g).y=h+u/2}),h+=u+l})})(t=x.asNonCompoundGraph(t)),c.forEach(_(t),function(d,l){t.node(l).x=d})}},96632:(w,D,s)=>{"use strict";var c=s(45760),x=s(36456).Graph,_=s(1916).slack;function p(l,h){return c.forEach(l.nodes(),function f(u){c.forEach(h.nodeEdges(u),function(g){var C=g.v,L=u===C?g.w:C;!l.hasNode(L)&&!_(h,g)&&(l.setNode(L,{}),l.setEdge(u,L,{}),f(L))})}),l.nodeCount()}function t(l,h){return c.minBy(h.edges(),function(f){if(l.hasNode(f.v)!==l.hasNode(f.w))return _(h,f)})}function d(l,h,f){c.forEach(l.nodes(),function(u){h.node(u).rank+=f})}w.exports=function m(l){var g,C,h=new x({directed:!1}),f=l.nodes()[0],u=l.nodeCount();for(h.setNode(f,{});p(h,l){"use strict";var x=s(1916).longestPath,_=s(96632),m=s(63804);w.exports=function p(h){switch(h.graph().ranker){case"network-simplex":default:!function l(h){m(h)}(h);break;case"tight-tree":!function d(h){x(h),_(h)}(h);break;case"longest-path":t(h)}};var t=x},63804:(w,D,s)=>{"use strict";var c=s(45760),x=s(96632),_=s(1916).slack,m=s(1916).longestPath,p=s(36456).alg.preorder,t=s(36456).alg.postorder,d=s(11510).simplify;function l(H){H=d(H),m(H);var tt,G=x(H);for(g(G),h(G,H);tt=L(G);)B(G,H,tt,I(G,H,tt))}function h(H,G){var tt=t(H,H.nodes());tt=tt.slice(0,tt.length-1),c.forEach(tt,function(K){!function f(H,G,tt){var K=H.node(tt);H.edge(tt,K.parent).cutvalue=u(H,G,tt)}(H,G,K)})}function u(H,G,tt){var st=H.node(tt).parent,j=!0,W=G.edge(tt,st),et=0;return W||(j=!1,W=G.edge(st,tt)),et=W.weight,c.forEach(G.nodeEdges(tt),function(at){var Y=at.v===tt,nt=Y?at.w:at.v;if(nt!==st){var rt=Y===j,q=G.edge(at).weight;if(et+=rt?q:-q,function R(H,G,tt){return H.hasEdge(G,tt)}(H,tt,nt)){var F=H.edge(tt,nt).cutvalue;et+=rt?-F:F}}}),et}function g(H,G){arguments.length<2&&(G=H.nodes()[0]),C(H,{},1,G)}function C(H,G,tt,K,st){var j=tt,W=H.node(K);return G[K]=!0,c.forEach(H.neighbors(K),function(et){c.has(G,et)||(tt=C(H,G,tt,et,K))}),W.low=j,W.lim=tt++,st?W.parent=st:delete W.parent,tt}function L(H){return c.find(H.edges(),function(G){return H.edge(G).cutvalue<0})}function I(H,G,tt){var K=tt.v,st=tt.w;G.hasEdge(K,st)||(K=tt.w,st=tt.v);var j=H.node(K),W=H.node(st),et=j,at=!1;j.lim>W.lim&&(et=W,at=!0);var Y=c.filter(G.edges(),function(nt){return at===Z(0,H.node(nt.v),et)&&at!==Z(0,H.node(nt.w),et)});return c.minBy(Y,function(nt){return _(G,nt)})}function B(H,G,tt,K){H.removeEdge(tt.v,tt.w),H.setEdge(K.v,K.w,{}),g(H),h(H,G),function M(H,G){var tt=c.find(H.nodes(),function(st){return!G.node(st).parent}),K=p(H,tt);K=K.slice(1),c.forEach(K,function(st){var j=H.node(st).parent,W=G.edge(st,j),et=!1;W||(W=G.edge(j,st),et=!0),G.node(st).rank=G.node(j).rank+(et?W.minlen:-W.minlen)})}(H,G)}function Z(H,G,tt){return tt.low<=G.lim&&G.lim<=tt.lim}w.exports=l,l.initLowLimValues=g,l.initCutValues=h,l.calcCutValue=u,l.leaveEdge=L,l.enterEdge=I,l.exchangeEdges=B},1916:(w,D,s)=>{"use strict";var c=s(45760);w.exports={longestPath:function x(m){var p={};c.forEach(m.sources(),function t(d){var l=m.node(d);if(c.has(p,d))return l.rank;p[d]=!0;var h=c.min(c.map(m.outEdges(d),function(f){return t(f.w)-m.edge(f).minlen}));return(h===Number.POSITIVE_INFINITY||null==h)&&(h=0),l.rank=h})},slack:function _(m,p){return m.node(p.w).rank-m.node(p.v).rank-m.edge(p).minlen}}},11510:(w,D,s)=>{"use strict";var c=s(45760),x=s(36456).Graph;function _(M,R,Z,H){var G;do{G=c.uniqueId(H)}while(M.hasNode(G));return Z.dummy=R,M.setNode(G,Z),G}function C(M){return c.max(c.map(M.nodes(),function(R){var Z=M.node(R).rank;if(!c.isUndefined(Z))return Z}))}w.exports={addDummyNode:_,simplify:function m(M){var R=(new x).setGraph(M.graph());return c.forEach(M.nodes(),function(Z){R.setNode(Z,M.node(Z))}),c.forEach(M.edges(),function(Z){var H=R.edge(Z.v,Z.w)||{weight:0,minlen:1},G=M.edge(Z);R.setEdge(Z.v,Z.w,{weight:H.weight+G.weight,minlen:Math.max(H.minlen,G.minlen)})}),R},asNonCompoundGraph:function p(M){var R=new x({multigraph:M.isMultigraph()}).setGraph(M.graph());return c.forEach(M.nodes(),function(Z){M.children(Z).length||R.setNode(Z,M.node(Z))}),c.forEach(M.edges(),function(Z){R.setEdge(Z,M.edge(Z))}),R},successorWeights:function t(M){var R=c.map(M.nodes(),function(Z){var H={};return c.forEach(M.outEdges(Z),function(G){H[G.w]=(H[G.w]||0)+M.edge(G).weight}),H});return c.zipObject(M.nodes(),R)},predecessorWeights:function d(M){var R=c.map(M.nodes(),function(Z){var H={};return c.forEach(M.inEdges(Z),function(G){H[G.v]=(H[G.v]||0)+M.edge(G).weight}),H});return c.zipObject(M.nodes(),R)},intersectRect:function l(M,R){var j,W,Z=M.x,H=M.y,G=R.x-Z,tt=R.y-H,K=M.width/2,st=M.height/2;if(!G&&!tt)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(tt)*K>Math.abs(G)*st?(tt<0&&(st=-st),j=st*G/tt,W=st):(G<0&&(K=-K),j=K,W=K*tt/G),{x:Z+j,y:H+W}},buildLayerMatrix:function h(M){var R=c.map(c.range(C(M)+1),function(){return[]});return c.forEach(M.nodes(),function(Z){var H=M.node(Z),G=H.rank;c.isUndefined(G)||(R[G][H.order]=Z)}),R},normalizeRanks:function f(M){var R=c.min(c.map(M.nodes(),function(Z){return M.node(Z).rank}));c.forEach(M.nodes(),function(Z){var H=M.node(Z);c.has(H,"rank")&&(H.rank-=R)})},removeEmptyRanks:function u(M){var R=c.min(c.map(M.nodes(),function(tt){return M.node(tt).rank})),Z=[];c.forEach(M.nodes(),function(tt){var K=M.node(tt).rank-R;Z[K]||(Z[K]=[]),Z[K].push(tt)});var H=0,G=M.graph().nodeRankFactor;c.forEach(Z,function(tt,K){c.isUndefined(tt)&&K%G!=0?--H:H&&c.forEach(tt,function(st){M.node(st).rank+=H})})},addBorderNode:function g(M,R,Z,H){var G={width:0,height:0};return arguments.length>=4&&(G.rank=Z,G.order=H),_(M,"border",G,R)},maxRank:C,partition:function L(M,R){var Z={lhs:[],rhs:[]};return c.forEach(M,function(H){R(H)?Z.lhs.push(H):Z.rhs.push(H)}),Z},time:function I(M,R){var Z=c.now();try{return R()}finally{console.log(M+" time: "+(c.now()-Z)+"ms")}},notime:function B(M,R){return R()}}},28126:w=>{w.exports="0.8.5"},85510:(w,D,s)=>{var c=s(51838);w.exports={Graph:c.Graph,json:s(21088),alg:s(83430),version:c.version}},86730:(w,D,s)=>{var c=s(79138);w.exports=function x(_){var t,m={},p=[];function d(l){c.has(m,l)||(m[l]=!0,t.push(l),c.each(_.successors(l),d),c.each(_.predecessors(l),d))}return c.each(_.nodes(),function(l){t=[],d(l),t.length&&p.push(t)}),p}},22163:(w,D,s)=>{var c=s(79138);function _(m,p,t,d,l,h){c.has(d,p)||(d[p]=!0,t||h.push(p),c.each(l(p),function(f){_(m,f,t,d,l,h)}),t&&h.push(p))}w.exports=function x(m,p,t){c.isArray(p)||(p=[p]);var d=(m.isDirected()?m.successors:m.neighbors).bind(m),l=[],h={};return c.each(p,function(f){if(!m.hasNode(f))throw new Error("Graph does not have node: "+f);_(m,f,"post"===t,h,d,l)}),l}},25668:(w,D,s)=>{var c=s(61718),x=s(79138);w.exports=function _(m,p,t){return x.transform(m.nodes(),function(d,l){d[l]=c(m,l,p,t)},{})}},61718:(w,D,s)=>{var c=s(79138),x=s(31919);w.exports=function m(t,d,l,h){return function p(t,d,l,h){var g,C,f={},u=new x,L=function(I){var B=I.v!==g?I.v:I.w,M=f[B],R=l(I),Z=C.distance+R;if(R<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+I+" Weight: "+R);Z0&&(g=u.removeMin(),(C=f[g]).distance!==Number.POSITIVE_INFINITY);)h(g).forEach(L);return f}(t,String(d),l||_,h||function(f){return t.outEdges(f)})};var _=c.constant(1)},9611:(w,D,s)=>{var c=s(79138),x=s(73585);w.exports=function _(m){return c.filter(x(m),function(p){return p.length>1||1===p.length&&m.hasEdge(p[0],p[0])})}},22881:(w,D,s)=>{var c=s(79138);w.exports=function _(p,t,d){return function m(p,t,d){var l={},h=p.nodes();return h.forEach(function(f){l[f]={},l[f][f]={distance:0},h.forEach(function(u){f!==u&&(l[f][u]={distance:Number.POSITIVE_INFINITY})}),d(f).forEach(function(u){var g=u.v===f?u.w:u.v,C=t(u);l[f][g]={distance:C,predecessor:f}})}),h.forEach(function(f){var u=l[f];h.forEach(function(g){var C=l[g];h.forEach(function(L){var B=u[L],M=C[L],R=C[f].distance+B.distance;R{w.exports={components:s(86730),dijkstra:s(61718),dijkstraAll:s(25668),findCycles:s(9611),floydWarshall:s(22881),isAcyclic:s(46693),postorder:s(46694),preorder:s(5330),prim:s(46823),tarjan:s(73585),topsort:s(52180)}},46693:(w,D,s)=>{var c=s(52180);w.exports=function x(_){try{c(_)}catch(m){if(m instanceof c.CycleException)return!1;throw m}return!0}},46694:(w,D,s)=>{var c=s(22163);w.exports=function x(_,m){return c(_,m,"post")}},5330:(w,D,s)=>{var c=s(22163);w.exports=function x(_,m){return c(_,m,"pre")}},46823:(w,D,s)=>{var c=s(79138),x=s(66568),_=s(31919);w.exports=function m(p,t){var f,d=new x,l={},h=new _;function u(C){var L=C.v===f?C.w:C.v,I=h.priority(L);if(void 0!==I){var B=t(C);B0;){if(f=h.removeMin(),c.has(l,f))d.setEdge(f,l[f]);else{if(g)throw new Error("Input graph is not connected: "+p);g=!0}p.nodeEdges(f).forEach(u)}return d}},73585:(w,D,s)=>{var c=s(79138);w.exports=function x(_){var m=0,p=[],t={},d=[];function l(h){var f=t[h]={onStack:!0,lowlink:m,index:m++};if(p.push(h),_.successors(h).forEach(function(C){c.has(t,C)?t[C].onStack&&(f.lowlink=Math.min(f.lowlink,t[C].index)):(l(C),f.lowlink=Math.min(f.lowlink,t[C].lowlink))}),f.lowlink===f.index){var g,u=[];do{g=p.pop(),t[g].onStack=!1,u.push(g)}while(h!==g);d.push(u)}}return _.nodes().forEach(function(h){c.has(t,h)||l(h)}),d}},52180:(w,D,s)=>{var c=s(79138);function x(m){var p={},t={},d=[];if(c.each(m.sinks(),function l(h){if(c.has(t,h))throw new _;c.has(p,h)||(t[h]=!0,p[h]=!0,c.each(m.predecessors(h),l),delete t[h],d.push(h))}),c.size(p)!==m.nodeCount())throw new _;return d}function _(){}w.exports=x,x.CycleException=_,_.prototype=new Error},31919:(w,D,s)=>{var c=s(79138);function x(){this._arr=[],this._keyIndices={}}w.exports=x,x.prototype.size=function(){return this._arr.length},x.prototype.keys=function(){return this._arr.map(function(_){return _.key})},x.prototype.has=function(_){return c.has(this._keyIndices,_)},x.prototype.priority=function(_){var m=this._keyIndices[_];if(void 0!==m)return this._arr[m].priority},x.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},x.prototype.add=function(_,m){var p=this._keyIndices;if(_=String(_),!c.has(p,_)){var t=this._arr,d=t.length;return p[_]=d,t.push({key:_,priority:m}),this._decrease(d),!0}return!1},x.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var _=this._arr.pop();return delete this._keyIndices[_.key],this._heapify(0),_.key},x.prototype.decrease=function(_,m){var p=this._keyIndices[_];if(m>this._arr[p].priority)throw new Error("New priority is greater than current priority. Key: "+_+" Old: "+this._arr[p].priority+" New: "+m);this._arr[p].priority=m,this._decrease(p)},x.prototype._heapify=function(_){var m=this._arr,p=2*_,t=p+1,d=_;p>1].priority{"use strict";var c=s(79138);w.exports=p;var _="\0";function p(u){this._isDirected=!c.has(u,"directed")||u.directed,this._isMultigraph=!!c.has(u,"multigraph")&&u.multigraph,this._isCompound=!!c.has(u,"compound")&&u.compound,this._label=void 0,this._defaultNodeLabelFn=c.constant(void 0),this._defaultEdgeLabelFn=c.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[_]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function t(u,g){u[g]?u[g]++:u[g]=1}function d(u,g){--u[g]||delete u[g]}function l(u,g,C,L){var I=""+g,B=""+C;if(!u&&I>B){var M=I;I=B,B=M}return I+"\x01"+B+"\x01"+(c.isUndefined(L)?"\0":L)}function h(u,g,C,L){var I=""+g,B=""+C;if(!u&&I>B){var M=I;I=B,B=M}var R={v:I,w:B};return L&&(R.name=L),R}function f(u,g){return l(u,g.v,g.w,g.name)}p.prototype._nodeCount=0,p.prototype._edgeCount=0,p.prototype.isDirected=function(){return this._isDirected},p.prototype.isMultigraph=function(){return this._isMultigraph},p.prototype.isCompound=function(){return this._isCompound},p.prototype.setGraph=function(u){return this._label=u,this},p.prototype.graph=function(){return this._label},p.prototype.setDefaultNodeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultNodeLabelFn=u,this},p.prototype.nodeCount=function(){return this._nodeCount},p.prototype.nodes=function(){return c.keys(this._nodes)},p.prototype.sources=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._in[g])})},p.prototype.sinks=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._out[g])})},p.prototype.setNodes=function(u,g){var C=arguments,L=this;return c.each(u,function(I){C.length>1?L.setNode(I,g):L.setNode(I)}),this},p.prototype.setNode=function(u,g){return c.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=g),this):(this._nodes[u]=arguments.length>1?g:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=_,this._children[u]={},this._children[_][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},p.prototype.node=function(u){return this._nodes[u]},p.prototype.hasNode=function(u){return c.has(this._nodes,u)},p.prototype.removeNode=function(u){var g=this;if(c.has(this._nodes,u)){var C=function(L){g.removeEdge(g._edgeObjs[L])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],c.each(this.children(u),function(L){g.setParent(L)}),delete this._children[u]),c.each(c.keys(this._in[u]),C),delete this._in[u],delete this._preds[u],c.each(c.keys(this._out[u]),C),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},p.prototype.setParent=function(u,g){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.isUndefined(g))g=_;else{for(var C=g+="";!c.isUndefined(C);C=this.parent(C))if(C===u)throw new Error("Setting "+g+" as parent of "+u+" would create a cycle");this.setNode(g)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=g,this._children[g][u]=!0,this},p.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},p.prototype.parent=function(u){if(this._isCompound){var g=this._parent[u];if(g!==_)return g}},p.prototype.children=function(u){if(c.isUndefined(u)&&(u=_),this._isCompound){var g=this._children[u];if(g)return c.keys(g)}else{if(u===_)return this.nodes();if(this.hasNode(u))return[]}},p.prototype.predecessors=function(u){var g=this._preds[u];if(g)return c.keys(g)},p.prototype.successors=function(u){var g=this._sucs[u];if(g)return c.keys(g)},p.prototype.neighbors=function(u){var g=this.predecessors(u);if(g)return c.union(g,this.successors(u))},p.prototype.isLeaf=function(u){return 0===(this.isDirected()?this.successors(u):this.neighbors(u)).length},p.prototype.filterNodes=function(u){var g=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});g.setGraph(this.graph());var C=this;c.each(this._nodes,function(B,M){u(M)&&g.setNode(M,B)}),c.each(this._edgeObjs,function(B){g.hasNode(B.v)&&g.hasNode(B.w)&&g.setEdge(B,C.edge(B))});var L={};function I(B){var M=C.parent(B);return void 0===M||g.hasNode(M)?(L[B]=M,M):M in L?L[M]:I(M)}return this._isCompound&&c.each(g.nodes(),function(B){g.setParent(B,I(B))}),g},p.prototype.setDefaultEdgeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultEdgeLabelFn=u,this},p.prototype.edgeCount=function(){return this._edgeCount},p.prototype.edges=function(){return c.values(this._edgeObjs)},p.prototype.setPath=function(u,g){var C=this,L=arguments;return c.reduce(u,function(I,B){return L.length>1?C.setEdge(I,B,g):C.setEdge(I,B),B}),this},p.prototype.setEdge=function(){var u,g,C,L,I=!1,B=arguments[0];"object"==typeof B&&null!==B&&"v"in B?(u=B.v,g=B.w,C=B.name,2===arguments.length&&(L=arguments[1],I=!0)):(u=B,g=arguments[1],C=arguments[3],arguments.length>2&&(L=arguments[2],I=!0)),u=""+u,g=""+g,c.isUndefined(C)||(C=""+C);var M=l(this._isDirected,u,g,C);if(c.has(this._edgeLabels,M))return I&&(this._edgeLabels[M]=L),this;if(!c.isUndefined(C)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(g),this._edgeLabels[M]=I?L:this._defaultEdgeLabelFn(u,g,C);var R=h(this._isDirected,u,g,C);return u=R.v,g=R.w,Object.freeze(R),this._edgeObjs[M]=R,t(this._preds[g],u),t(this._sucs[u],g),this._in[g][M]=R,this._out[u][M]=R,this._edgeCount++,this},p.prototype.edge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return this._edgeLabels[L]},p.prototype.hasEdge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return c.has(this._edgeLabels,L)},p.prototype.removeEdge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C),I=this._edgeObjs[L];return I&&(u=I.v,g=I.w,delete this._edgeLabels[L],delete this._edgeObjs[L],d(this._preds[g],u),d(this._sucs[u],g),delete this._in[g][L],delete this._out[u][L],this._edgeCount--),this},p.prototype.inEdges=function(u,g){var C=this._in[u];if(C){var L=c.values(C);return g?c.filter(L,function(I){return I.v===g}):L}},p.prototype.outEdges=function(u,g){var C=this._out[u];if(C){var L=c.values(C);return g?c.filter(L,function(I){return I.w===g}):L}},p.prototype.nodeEdges=function(u,g){var C=this.inEdges(u,g);if(C)return C.concat(this.outEdges(u,g))}},51838:(w,D,s)=>{w.exports={Graph:s(66568),version:s(75089)}},21088:(w,D,s)=>{var c=s(79138),x=s(66568);function m(d){return c.map(d.nodes(),function(l){var h=d.node(l),f=d.parent(l),u={v:l};return c.isUndefined(h)||(u.value=h),c.isUndefined(f)||(u.parent=f),u})}function p(d){return c.map(d.edges(),function(l){var h=d.edge(l),f={v:l.v,w:l.w};return c.isUndefined(l.name)||(f.name=l.name),c.isUndefined(h)||(f.value=h),f})}w.exports={write:function _(d){var l={options:{directed:d.isDirected(),multigraph:d.isMultigraph(),compound:d.isCompound()},nodes:m(d),edges:p(d)};return c.isUndefined(d.graph())||(l.value=c.clone(d.graph())),l},read:function t(d){var l=new x(d.options).setGraph(d.value);return c.each(d.nodes,function(h){l.setNode(h.v,h.value),h.parent&&l.setParent(h.v,h.parent)}),c.each(d.edges,function(h){l.setEdge({v:h.v,w:h.w,name:h.name},h.value)}),l}}},79138:(w,D,s)=>{var c;try{c={clone:s(11094),constant:s(76684),each:s(35474),filter:s(35281),has:s(54842),isArray:s(21503),isEmpty:s(71973),isFunction:s(75946),isUndefined:s(34235),keys:s(118),map:s(19984),reduce:s(81337),size:s(55637),transform:s(89416),union:s(68921),values:s(90377)}}catch{}c||(c=window._),w.exports=c},75089:w=>{w.exports="2.1.8"},50623:w=>{"use strict";w.exports=function(s){return null!=s&&"object"==typeof s&&!1===Array.isArray(s)}},52872:w=>{var D=Object.prototype.toString;function s(h){return"function"==typeof h.constructor?h.constructor.name:null}w.exports=function(f){if(void 0===f)return"undefined";if(null===f)return"null";var u=typeof f;if("boolean"===u)return"boolean";if("string"===u)return"string";if("number"===u)return"number";if("symbol"===u)return"symbol";if("function"===u)return function p(h,f){return"GeneratorFunction"===s(h)}(f)?"generatorfunction":"function";if(function c(h){return Array.isArray?Array.isArray(h):h instanceof Array}(f))return"array";if(function l(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(f))return"buffer";if(function d(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(f){if(-1!==f.message.indexOf("callee"))return!0}return!1}(f))return"arguments";if(function _(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(f))return"date";if(function x(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(f))return"error";if(function m(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(f))return"regexp";switch(s(f)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function t(h){return"function"==typeof h.throw&&"function"==typeof h.return&&"function"==typeof h.next}(f))return"generator";switch(u=D.call(f)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return u.slice(8,-1).toLowerCase().replace(/\s/g,"")}},37244:(w,D,s)=>{var _=s(53436)(s(12119),"DataView");w.exports=_},54994:(w,D,s)=>{var c=s(64312),x=s(46421),_=s(15764),m=s(18685),p=s(26676);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var c=s(41840),x=s(34378),_=s(54981),m=s(67343),p=s(98895);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var _=s(53436)(s(12119),"Map");w.exports=_},99850:(w,D,s)=>{var c=s(10638),x=s(11184),_=s(70866),m=s(43771),p=s(51772);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var _=s(53436)(s(12119),"Promise");w.exports=_},46323:(w,D,s)=>{var _=s(53436)(s(12119),"Set");w.exports=_},58849:(w,D,s)=>{var c=s(99850),x=s(4600),_=s(31387);function m(p){var t=-1,d=null==p?0:p.length;for(this.__data__=new c;++t{var c=s(9215),x=s(13720),_=s(64410),m=s(45576),p=s(22247),t=s(41585);function d(l){var h=this.__data__=new c(l);this.size=h.size}d.prototype.clear=x,d.prototype.delete=_,d.prototype.get=m,d.prototype.has=p,d.prototype.set=t,w.exports=d},60443:(w,D,s)=>{var c=s(12119);w.exports=c.Symbol},73457:(w,D,s)=>{var c=s(12119);w.exports=c.Uint8Array},24243:(w,D,s)=>{var _=s(53436)(s(12119),"WeakMap");w.exports=_},26999:w=>{w.exports=function D(s,c,x){switch(x.length){case 0:return s.call(c);case 1:return s.call(c,x[0]);case 2:return s.call(c,x[0],x[1]);case 3:return s.call(c,x[0],x[1],x[2])}return s.apply(c,x)}},96837:w=>{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length;++x<_&&!1!==c(s[x],x,s););return s}},69779:w=>{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length,m=0,p=[];++x<_;){var t=s[x];c(t,x,s)&&(p[m++]=t)}return p}},61253:(w,D,s)=>{var c=s(14164);w.exports=function x(_,m){return!(null==_||!_.length)&&c(_,m,0)>-1}},37609:w=>{w.exports=function D(s,c,x){for(var _=-1,m=null==s?0:s.length;++_{var c=s(85334),x=s(77151),_=s(21503),m=s(80891),p=s(58442),t=s(48159),l=Object.prototype.hasOwnProperty;w.exports=function h(f,u){var g=_(f),C=!g&&x(f),L=!g&&!C&&m(f),I=!g&&!C&&!L&&t(f),B=g||C||L||I,M=B?c(f.length,String):[],R=M.length;for(var Z in f)(u||l.call(f,Z))&&(!B||!("length"==Z||L&&("offset"==Z||"parent"==Z)||I&&("buffer"==Z||"byteLength"==Z||"byteOffset"==Z)||p(Z,R)))&&M.push(Z);return M}},84633:w=>{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length,m=Array(_);++x<_;)m[x]=c(s[x],x,s);return m}},85059:w=>{w.exports=function D(s,c){for(var x=-1,_=c.length,m=s.length;++x<_;)s[m+x]=c[x];return s}},8745:w=>{w.exports=function D(s,c,x,_){var m=-1,p=null==s?0:s.length;for(_&&p&&(x=s[++m]);++m{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length;++x<_;)if(c(s[x],x,s))return!0;return!1}},75481:(w,D,s)=>{var x=s(11847)("length");w.exports=x},49276:(w,D,s)=>{var c=s(85683),x=s(20217);w.exports=function _(m,p,t){(void 0!==t&&!x(m[p],t)||void 0===t&&!(p in m))&&c(m,p,t)}},89719:(w,D,s)=>{var c=s(85683),x=s(20217),m=Object.prototype.hasOwnProperty;w.exports=function p(t,d,l){var h=t[d];(!m.call(t,d)||!x(h,l)||void 0===l&&!(d in t))&&c(t,d,l)}},43503:(w,D,s)=>{var c=s(20217);w.exports=function x(_,m){for(var p=_.length;p--;)if(c(_[p][0],m))return p;return-1}},94121:(w,D,s)=>{var c=s(31989),x=s(118);w.exports=function _(m,p){return m&&c(p,x(p),m)}},99287:(w,D,s)=>{var c=s(31989),x=s(16555);w.exports=function _(m,p){return m&&c(p,x(p),m)}},85683:(w,D,s)=>{var c=s(56713);w.exports=function x(_,m,p){"__proto__"==m&&c?c(_,m,{configurable:!0,enumerable:!0,value:p,writable:!0}):_[m]=p}},44462:(w,D,s)=>{var c=s(2858),x=s(96837),_=s(89719),m=s(94121),p=s(99287),t=s(19292),d=s(99454),l=s(84444),h=s(59905),f=s(47597),u=s(6967),g=s(28794),C=s(76782),L=s(37878),I=s(4264),B=s(21503),M=s(80891),R=s(13222),Z=s(25940),H=s(90799),G=s(118),tt=s(16555),W="[object Arguments]",rt="[object Function]",ut="[object Object]",Ht={};Ht[W]=Ht["[object Array]"]=Ht["[object ArrayBuffer]"]=Ht["[object DataView]"]=Ht["[object Boolean]"]=Ht["[object Date]"]=Ht["[object Float32Array]"]=Ht["[object Float64Array]"]=Ht["[object Int8Array]"]=Ht["[object Int16Array]"]=Ht["[object Int32Array]"]=Ht["[object Map]"]=Ht["[object Number]"]=Ht[ut]=Ht["[object RegExp]"]=Ht["[object Set]"]=Ht["[object String]"]=Ht["[object Symbol]"]=Ht["[object Uint8Array]"]=Ht["[object Uint8ClampedArray]"]=Ht["[object Uint16Array]"]=Ht["[object Uint32Array]"]=!0,Ht["[object Error]"]=Ht[rt]=Ht["[object WeakMap]"]=!1,w.exports=function Zt(Kt,xe,Te,Le,Oe,Ee){var He,Ge=1&xe,an=2&xe,be=4&xe;if(Te&&(He=Oe?Te(Kt,Le,Oe,Ee):Te(Kt)),void 0!==He)return He;if(!Z(Kt))return Kt;var ln=B(Kt);if(ln){if(He=C(Kt),!Ge)return d(Kt,He)}else{var Tt=g(Kt),Wt=Tt==rt||"[object GeneratorFunction]"==Tt;if(M(Kt))return t(Kt,Ge);if(Tt==ut||Tt==W||Wt&&!Oe){if(He=an||Wt?{}:I(Kt),!Ge)return an?h(Kt,p(He,Kt)):l(Kt,m(He,Kt))}else{if(!Ht[Tt])return Oe?Kt:{};He=L(Kt,Tt,Ge)}}Ee||(Ee=new c);var ce=Ee.get(Kt);if(ce)return ce;Ee.set(Kt,He),H(Kt)?Kt.forEach(function(Ze){He.add(Zt(Ze,xe,Te,Ze,Kt,Ee))}):R(Kt)&&Kt.forEach(function(Ze,Ye){He.set(Ye,Zt(Ze,xe,Te,Ye,Kt,Ee))});var ee=ln?void 0:(be?an?u:f:an?tt:G)(Kt);return x(ee||Kt,function(Ze,Ye){ee&&(Ze=Kt[Ye=Ze]),_(He,Ye,Zt(Ze,xe,Te,Ye,Kt,Ee))}),He}},78858:(w,D,s)=>{var c=s(25940),x=Object.create,_=function(){function m(){}return function(p){if(!c(p))return{};if(x)return x(p);m.prototype=p;var t=new m;return m.prototype=void 0,t}}();w.exports=_},43132:(w,D,s)=>{var c=s(45184),_=s(16539)(c);w.exports=_},67308:(w,D,s)=>{var c=s(44129);w.exports=function x(_,m,p){for(var t=-1,d=_.length;++t{var c=s(43132);w.exports=function x(_,m){var p=[];return c(_,function(t,d,l){m(t,d,l)&&p.push(t)}),p}},65317:w=>{w.exports=function D(s,c,x,_){for(var m=s.length,p=x+(_?1:-1);_?p--:++p{var c=s(85059),x=s(75039);w.exports=function _(m,p,t,d,l){var h=-1,f=m.length;for(t||(t=x),l||(l=[]);++h0&&t(u)?p>1?_(u,p-1,t,d,l):c(l,u):d||(l[l.length]=u)}return l}},30755:(w,D,s)=>{var x=s(40456)();w.exports=x},45184:(w,D,s)=>{var c=s(30755),x=s(118);w.exports=function _(m,p){return m&&c(m,p,x)}},15456:(w,D,s)=>{var c=s(65456),x=s(68533);w.exports=function _(m,p){for(var t=0,d=(p=c(p,m)).length;null!=m&&t{var c=s(85059),x=s(21503);w.exports=function _(m,p,t){var d=p(m);return x(m)?d:c(d,t(m))}},93337:(w,D,s)=>{var c=s(60443),x=s(21318),_=s(92902),t=c?c.toStringTag:void 0;w.exports=function d(l){return null==l?void 0===l?"[object Undefined]":"[object Null]":t&&t in Object(l)?x(l):_(l)}},31100:w=>{w.exports=function D(s,c){return s>c}},84781:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x,_){return null!=x&&s.call(x,_)}},69989:w=>{w.exports=function D(s,c){return null!=s&&c in Object(s)}},14164:(w,D,s)=>{var c=s(65317),x=s(70968),_=s(24977);w.exports=function m(p,t,d){return t==t?_(p,t,d):c(p,x,d)}},60186:(w,D,s)=>{var c=s(93337),x=s(72671);w.exports=function m(p){return x(p)&&"[object Arguments]"==c(p)}},85740:(w,D,s)=>{var c=s(58325),x=s(72671);w.exports=function _(m,p,t,d,l){return m===p||(null==m||null==p||!x(m)&&!x(p)?m!=m&&p!=p:c(m,p,t,d,_,l))}},58325:(w,D,s)=>{var c=s(2858),x=s(63914),_=s(78583),m=s(32286),p=s(28794),t=s(21503),d=s(80891),l=s(48159),f="[object Arguments]",u="[object Array]",g="[object Object]",L=Object.prototype.hasOwnProperty;w.exports=function I(B,M,R,Z,H,G){var tt=t(B),K=t(M),st=tt?u:p(B),j=K?u:p(M),W=(st=st==f?g:st)==g,et=(j=j==f?g:j)==g,at=st==j;if(at&&d(B)){if(!d(M))return!1;tt=!0,W=!1}if(at&&!W)return G||(G=new c),tt||l(B)?x(B,M,R,Z,H,G):_(B,M,st,R,Z,H,G);if(!(1&R)){var Y=W&&L.call(B,"__wrapped__"),nt=et&&L.call(M,"__wrapped__");if(Y||nt){var rt=Y?B.value():B,q=nt?M.value():M;return G||(G=new c),H(rt,q,R,Z,G)}}return!!at&&(G||(G=new c),m(B,M,R,Z,H,G))}},97021:(w,D,s)=>{var c=s(28794),x=s(72671);w.exports=function m(p){return x(p)&&"[object Map]"==c(p)}},40431:(w,D,s)=>{var c=s(2858),x=s(85740);w.exports=function p(t,d,l,h){var f=l.length,u=f,g=!h;if(null==t)return!u;for(t=Object(t);f--;){var C=l[f];if(g&&C[2]?C[1]!==t[C[0]]:!(C[0]in t))return!1}for(;++f{w.exports=function D(s){return s!=s}},37304:(w,D,s)=>{var c=s(75946),x=s(91943),_=s(25940),m=s(52827),t=/^\[object .+?Constructor\]$/,u=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");w.exports=function g(C){return!(!_(C)||x(C))&&(c(C)?u:t).test(m(C))}},771:(w,D,s)=>{var c=s(28794),x=s(72671);w.exports=function m(p){return x(p)&&"[object Set]"==c(p)}},1083:(w,D,s)=>{var c=s(93337),x=s(96231),_=s(72671),at={};at["[object Float32Array]"]=at["[object Float64Array]"]=at["[object Int8Array]"]=at["[object Int16Array]"]=at["[object Int32Array]"]=at["[object Uint8Array]"]=at["[object Uint8ClampedArray]"]=at["[object Uint16Array]"]=at["[object Uint32Array]"]=!0,at["[object Arguments]"]=at["[object Array]"]=at["[object ArrayBuffer]"]=at["[object Boolean]"]=at["[object DataView]"]=at["[object Date]"]=at["[object Error]"]=at["[object Function]"]=at["[object Map]"]=at["[object Number]"]=at["[object Object]"]=at["[object RegExp]"]=at["[object Set]"]=at["[object String]"]=at["[object WeakMap]"]=!1,w.exports=function Y(nt){return _(nt)&&x(nt.length)&&!!at[c(nt)]}},96517:(w,D,s)=>{var c=s(98133),x=s(9458),_=s(32608),m=s(21503),p=s(87495);w.exports=function t(d){return"function"==typeof d?d:null==d?_:"object"==typeof d?m(d)?x(d[0],d[1]):c(d):p(d)}},81172:(w,D,s)=>{var c=s(45488),x=s(85491),m=Object.prototype.hasOwnProperty;w.exports=function p(t){if(!c(t))return x(t);var d=[];for(var l in Object(t))m.call(t,l)&&"constructor"!=l&&d.push(l);return d}},92809:(w,D,s)=>{var c=s(25940),x=s(45488),_=s(32158),p=Object.prototype.hasOwnProperty;w.exports=function t(d){if(!c(d))return _(d);var l=x(d),h=[];for(var f in d)"constructor"==f&&(l||!p.call(d,f))||h.push(f);return h}},99069:w=>{w.exports=function D(s,c){return s{var c=s(43132),x=s(56507);w.exports=function _(m,p){var t=-1,d=x(m)?Array(m.length):[];return c(m,function(l,h,f){d[++t]=p(l,h,f)}),d}},98133:(w,D,s)=>{var c=s(40431),x=s(22379),_=s(642);w.exports=function m(p){var t=x(p);return 1==t.length&&t[0][2]?_(t[0][0],t[0][1]):function(d){return d===p||c(d,p,t)}}},9458:(w,D,s)=>{var c=s(85740),x=s(8817),_=s(11172),m=s(45352),p=s(22442),t=s(642),d=s(68533);w.exports=function f(u,g){return m(u)&&p(g)?t(d(u),g):function(C){var L=x(C,u);return void 0===L&&L===g?_(C,u):c(g,L,3)}}},73842:(w,D,s)=>{var c=s(2858),x=s(49276),_=s(30755),m=s(33675),p=s(25940),t=s(16555),d=s(99351);w.exports=function l(h,f,u,g,C){h!==f&&_(f,function(L,I){if(C||(C=new c),p(L))m(h,f,I,u,l,g,C);else{var B=g?g(d(h,I),L,I+"",h,f,C):void 0;void 0===B&&(B=L),x(h,I,B)}},t)}},33675:(w,D,s)=>{var c=s(49276),x=s(19292),_=s(65208),m=s(99454),p=s(4264),t=s(77151),d=s(21503),l=s(21330),h=s(80891),f=s(75946),u=s(25940),g=s(97614),C=s(48159),L=s(99351),I=s(8067);w.exports=function B(M,R,Z,H,G,tt,K){var st=L(M,Z),j=L(R,Z),W=K.get(j);if(W)c(M,Z,W);else{var et=tt?tt(st,j,Z+"",M,R,K):void 0,at=void 0===et;if(at){var Y=d(j),nt=!Y&&h(j),rt=!Y&&!nt&&C(j);et=j,Y||nt||rt?d(st)?et=st:l(st)?et=m(st):nt?(at=!1,et=x(j,!0)):rt?(at=!1,et=_(j,!0)):et=[]:g(j)||t(j)?(et=st,t(st)?et=I(st):(!u(st)||f(st))&&(et=p(j))):at=!1}at&&(K.set(j,et),G(et,j,H,tt,K),K.delete(j)),c(M,Z,et)}}},6119:(w,D,s)=>{var c=s(84633),x=s(15456),_=s(96517),m=s(92046),p=s(42061),t=s(85647),d=s(41215),l=s(32608),h=s(21503);w.exports=function f(u,g,C){g=g.length?c(g,function(B){return h(B)?function(M){return x(M,1===B.length?B[0]:B)}:B}):[l];var L=-1;g=c(g,t(_));var I=m(u,function(B,M,R){return{criteria:c(g,function(H){return H(B)}),index:++L,value:B}});return p(I,function(B,M){return d(B,M,C)})}},83021:(w,D,s)=>{var c=s(95495),x=s(11172);w.exports=function _(m,p){return c(m,p,function(t,d){return x(m,d)})}},95495:(w,D,s)=>{var c=s(15456),x=s(55963),_=s(65456);w.exports=function m(p,t,d){for(var l=-1,h=t.length,f={};++l{w.exports=function D(s){return function(c){return c?.[s]}}},39222:(w,D,s)=>{var c=s(15456);w.exports=function x(_){return function(m){return c(m,_)}}},16307:w=>{var D=Math.ceil,s=Math.max;w.exports=function c(x,_,m,p){for(var t=-1,d=s(D((_-x)/(m||1)),0),l=Array(d);d--;)l[p?d:++t]=x,x+=m;return l}},13570:w=>{w.exports=function D(s,c,x,_,m){return m(s,function(p,t,d){x=_?(_=!1,p):c(x,p,t,d)}),x}},23269:(w,D,s)=>{var c=s(32608),x=s(53983),_=s(72185);w.exports=function m(p,t){return _(x(p,t,c),p+"")}},55963:(w,D,s)=>{var c=s(89719),x=s(65456),_=s(58442),m=s(25940),p=s(68533);w.exports=function t(d,l,h,f){if(!m(d))return d;for(var u=-1,g=(l=x(l,d)).length,C=g-1,L=d;null!=L&&++u{var c=s(76684),x=s(56713),_=s(32608);w.exports=x?function(p,t){return x(p,"toString",{configurable:!0,enumerable:!1,value:c(t),writable:!0})}:_},42061:w=>{w.exports=function D(s,c){var x=s.length;for(s.sort(c);x--;)s[x]=s[x].value;return s}},85334:w=>{w.exports=function D(s,c){for(var x=-1,_=Array(s);++x{var c=s(60443),x=s(84633),_=s(21503),m=s(44129),t=c?c.prototype:void 0,d=t?t.toString:void 0;w.exports=function l(h){if("string"==typeof h)return h;if(_(h))return x(h,l)+"";if(m(h))return d?d.call(h):"";var f=h+"";return"0"==f&&1/h==-1/0?"-0":f}},83348:(w,D,s)=>{var c=s(42760),x=/^\s+/;w.exports=function _(m){return m&&m.slice(0,c(m)+1).replace(x,"")}},85647:w=>{w.exports=function D(s){return function(c){return s(c)}}},80707:(w,D,s)=>{var c=s(58849),x=s(61253),_=s(37609),m=s(25972),p=s(14575),t=s(24174);w.exports=function l(h,f,u){var g=-1,C=x,L=h.length,I=!0,B=[],M=B;if(u)I=!1,C=_;else if(L>=200){var R=f?null:p(h);if(R)return t(R);I=!1,C=m,M=new c}else M=f?[]:B;t:for(;++g{var c=s(84633);w.exports=function x(_,m){return c(m,function(p){return _[p]})}},38645:w=>{w.exports=function D(s,c,x){for(var _=-1,m=s.length,p=c.length,t={};++_{w.exports=function D(s,c){return s.has(c)}},21481:(w,D,s)=>{var c=s(32608);w.exports=function x(_){return"function"==typeof _?_:c}},65456:(w,D,s)=>{var c=s(21503),x=s(45352),_=s(32855),m=s(73943);w.exports=function p(t,d){return c(t)?t:x(t,d)?[t]:_(m(t))}},43362:(w,D,s)=>{var c=s(73457);w.exports=function x(_){var m=new _.constructor(_.byteLength);return new c(m).set(new c(_)),m}},19292:(w,D,s)=>{w=s.nmd(w);var c=s(12119),x=D&&!D.nodeType&&D,_=x&&w&&!w.nodeType&&w,p=_&&_.exports===x?c.Buffer:void 0,t=p?p.allocUnsafe:void 0;w.exports=function d(l,h){if(h)return l.slice();var f=l.length,u=t?t(f):new l.constructor(f);return l.copy(u),u}},17e3:(w,D,s)=>{var c=s(43362);w.exports=function x(_,m){var p=m?c(_.buffer):_.buffer;return new _.constructor(p,_.byteOffset,_.byteLength)}},74098:w=>{var D=/\w*$/;w.exports=function s(c){var x=new c.constructor(c.source,D.exec(c));return x.lastIndex=c.lastIndex,x}},62533:(w,D,s)=>{var c=s(60443),x=c?c.prototype:void 0,_=x?x.valueOf:void 0;w.exports=function m(p){return _?Object(_.call(p)):{}}},65208:(w,D,s)=>{var c=s(43362);w.exports=function x(_,m){var p=m?c(_.buffer):_.buffer;return new _.constructor(p,_.byteOffset,_.length)}},13443:(w,D,s)=>{var c=s(44129);w.exports=function x(_,m){if(_!==m){var p=void 0!==_,t=null===_,d=_==_,l=c(_),h=void 0!==m,f=null===m,u=m==m,g=c(m);if(!f&&!g&&!l&&_>m||l&&h&&u&&!f&&!g||t&&h&&u||!p&&u||!d)return 1;if(!t&&!l&&!g&&_{var c=s(13443);w.exports=function x(_,m,p){for(var t=-1,d=_.criteria,l=m.criteria,h=d.length,f=p.length;++t=f?u:u*("desc"==p[t]?-1:1)}return _.index-m.index}},99454:w=>{w.exports=function D(s,c){var x=-1,_=s.length;for(c||(c=Array(_));++x<_;)c[x]=s[x];return c}},31989:(w,D,s)=>{var c=s(89719),x=s(85683);w.exports=function _(m,p,t,d){var l=!t;t||(t={});for(var h=-1,f=p.length;++h{var c=s(31989),x=s(39383);w.exports=function _(m,p){return c(m,x(m),p)}},59905:(w,D,s)=>{var c=s(31989),x=s(53051);w.exports=function _(m,p){return c(m,x(m),p)}},24610:(w,D,s)=>{var c=s(12119);w.exports=c["__core-js_shared__"]},84944:(w,D,s)=>{var c=s(23269),x=s(93342);w.exports=function _(m){return c(function(p,t){var d=-1,l=t.length,h=l>1?t[l-1]:void 0,f=l>2?t[2]:void 0;for(h=m.length>3&&"function"==typeof h?(l--,h):void 0,f&&x(t[0],t[1],f)&&(h=l<3?void 0:h,l=1),p=Object(p);++d{var c=s(56507);w.exports=function x(_,m){return function(p,t){if(null==p)return p;if(!c(p))return _(p,t);for(var d=p.length,l=m?d:-1,h=Object(p);(m?l--:++l{w.exports=function D(s){return function(c,x,_){for(var m=-1,p=Object(c),t=_(c),d=t.length;d--;){var l=t[s?d:++m];if(!1===x(p[l],l,p))break}return c}}},24653:(w,D,s)=>{var c=s(96517),x=s(56507),_=s(118);w.exports=function m(p){return function(t,d,l){var h=Object(t);if(!x(t)){var f=c(d,3);t=_(t),d=function(g){return f(h[g],g,h)}}var u=p(t,d,l);return u>-1?h[f?t[u]:u]:void 0}}},97509:(w,D,s)=>{var c=s(16307),x=s(93342),_=s(12232);w.exports=function m(p){return function(t,d,l){return l&&"number"!=typeof l&&x(t,d,l)&&(d=l=void 0),t=_(t),void 0===d?(d=t,t=0):d=_(d),l=void 0===l?t{var c=s(46323),x=s(12552),_=s(24174),p=c&&1/_(new c([,-0]))[1]==1/0?function(t){return new c(t)}:x;w.exports=p},56713:(w,D,s)=>{var c=s(53436),x=function(){try{var _=c(Object,"defineProperty");return _({},"",{}),_}catch{}}();w.exports=x},63914:(w,D,s)=>{var c=s(58849),x=s(79503),_=s(25972);w.exports=function t(d,l,h,f,u,g){var C=1&h,L=d.length,I=l.length;if(L!=I&&!(C&&I>L))return!1;var B=g.get(d),M=g.get(l);if(B&&M)return B==l&&M==d;var R=-1,Z=!0,H=2&h?new c:void 0;for(g.set(d,l),g.set(l,d);++R{var c=s(60443),x=s(73457),_=s(20217),m=s(63914),p=s(83205),t=s(24174),H=c?c.prototype:void 0,G=H?H.valueOf:void 0;w.exports=function tt(K,st,j,W,et,at,Y){switch(j){case"[object DataView]":if(K.byteLength!=st.byteLength||K.byteOffset!=st.byteOffset)return!1;K=K.buffer,st=st.buffer;case"[object ArrayBuffer]":return!(K.byteLength!=st.byteLength||!at(new x(K),new x(st)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _(+K,+st);case"[object Error]":return K.name==st.name&&K.message==st.message;case"[object RegExp]":case"[object String]":return K==st+"";case"[object Map]":var nt=p;case"[object Set]":if(nt||(nt=t),K.size!=st.size&&!(1&W))return!1;var q=Y.get(K);if(q)return q==st;W|=2,Y.set(K,st);var F=m(nt(K),nt(st),W,et,at,Y);return Y.delete(K),F;case"[object Symbol]":if(G)return G.call(K)==G.call(st)}return!1}},32286:(w,D,s)=>{var c=s(47597),m=Object.prototype.hasOwnProperty;w.exports=function p(t,d,l,h,f,u){var g=1&l,C=c(t),L=C.length;if(L!=c(d).length&&!g)return!1;for(var M=L;M--;){var R=C[M];if(!(g?R in d:m.call(d,R)))return!1}var Z=u.get(t),H=u.get(d);if(Z&&H)return Z==d&&H==t;var G=!0;u.set(t,d),u.set(d,t);for(var tt=g;++M{var c=s(22274),x=s(53983),_=s(72185);w.exports=function m(p){return _(x(p,void 0,c),p+"")}},79122:w=>{var D="object"==typeof global&&global&&global.Object===Object&&global;w.exports=D},47597:(w,D,s)=>{var c=s(38247),x=s(39383),_=s(118);w.exports=function m(p){return c(p,_,x)}},6967:(w,D,s)=>{var c=s(38247),x=s(53051),_=s(16555);w.exports=function m(p){return c(p,_,x)}},54537:(w,D,s)=>{var c=s(23819);w.exports=function x(_,m){var p=_.__data__;return c(m)?p["string"==typeof m?"string":"hash"]:p.map}},22379:(w,D,s)=>{var c=s(22442),x=s(118);w.exports=function _(m){for(var p=x(m),t=p.length;t--;){var d=p[t],l=m[d];p[t]=[d,l,c(l)]}return p}},53436:(w,D,s)=>{var c=s(37304),x=s(51990);w.exports=function _(m,p){var t=x(m,p);return c(t)?t:void 0}},29519:(w,D,s)=>{var x=s(69385)(Object.getPrototypeOf,Object);w.exports=x},21318:(w,D,s)=>{var c=s(60443),x=Object.prototype,_=x.hasOwnProperty,m=x.toString,p=c?c.toStringTag:void 0;w.exports=function t(d){var l=_.call(d,p),h=d[p];try{d[p]=void 0;var f=!0}catch{}var u=m.call(d);return f&&(l?d[p]=h:delete d[p]),u}},39383:(w,D,s)=>{var c=s(69779),x=s(49975),m=Object.prototype.propertyIsEnumerable,p=Object.getOwnPropertySymbols;w.exports=p?function(d){return null==d?[]:(d=Object(d),c(p(d),function(l){return m.call(d,l)}))}:x},53051:(w,D,s)=>{var c=s(85059),x=s(29519),_=s(39383),m=s(49975);w.exports=Object.getOwnPropertySymbols?function(d){for(var l=[];d;)c(l,_(d)),d=x(d);return l}:m},28794:(w,D,s)=>{var c=s(37244),x=s(51501),_=s(44267),m=s(46323),p=s(24243),t=s(93337),d=s(52827),l="[object Map]",f="[object Promise]",u="[object Set]",g="[object WeakMap]",C="[object DataView]",L=d(c),I=d(x),B=d(_),M=d(m),R=d(p),Z=t;(c&&Z(new c(new ArrayBuffer(1)))!=C||x&&Z(new x)!=l||_&&Z(_.resolve())!=f||m&&Z(new m)!=u||p&&Z(new p)!=g)&&(Z=function(H){var G=t(H),tt="[object Object]"==G?H.constructor:void 0,K=tt?d(tt):"";if(K)switch(K){case L:return C;case I:return l;case B:return f;case M:return u;case R:return g}return G}),w.exports=Z},51990:w=>{w.exports=function D(s,c){return s?.[c]}},47283:(w,D,s)=>{var c=s(65456),x=s(77151),_=s(21503),m=s(58442),p=s(96231),t=s(68533);w.exports=function d(l,h,f){for(var u=-1,g=(h=c(h,l)).length,C=!1;++u{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");w.exports=function d(l){return t.test(l)}},64312:(w,D,s)=>{var c=s(60862);w.exports=function x(){this.__data__=c?c(null):{},this.size=0}},46421:w=>{w.exports=function D(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}},15764:(w,D,s)=>{var c=s(60862),m=Object.prototype.hasOwnProperty;w.exports=function p(t){var d=this.__data__;if(c){var l=d[t];return"__lodash_hash_undefined__"===l?void 0:l}return m.call(d,t)?d[t]:void 0}},18685:(w,D,s)=>{var c=s(60862),_=Object.prototype.hasOwnProperty;w.exports=function m(p){var t=this.__data__;return c?void 0!==t[p]:_.call(t,p)}},26676:(w,D,s)=>{var c=s(60862);w.exports=function _(m,p){var t=this.__data__;return this.size+=this.has(m)?0:1,t[m]=c&&void 0===p?"__lodash_hash_undefined__":p,this}},76782:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x){var _=x.length,m=new x.constructor(_);return _&&"string"==typeof x[0]&&s.call(x,"index")&&(m.index=x.index,m.input=x.input),m}},37878:(w,D,s)=>{var c=s(43362),x=s(17e3),_=s(74098),m=s(62533),p=s(65208);w.exports=function j(W,et,at){var Y=W.constructor;switch(et){case"[object ArrayBuffer]":return c(W);case"[object Boolean]":case"[object Date]":return new Y(+W);case"[object DataView]":return x(W,at);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return p(W,at);case"[object Map]":case"[object Set]":return new Y;case"[object Number]":case"[object String]":return new Y(W);case"[object RegExp]":return _(W);case"[object Symbol]":return m(W)}}},4264:(w,D,s)=>{var c=s(78858),x=s(29519),_=s(45488);w.exports=function m(p){return"function"!=typeof p.constructor||_(p)?{}:c(x(p))}},75039:(w,D,s)=>{var c=s(60443),x=s(77151),_=s(21503),m=c?c.isConcatSpreadable:void 0;w.exports=function p(t){return _(t)||x(t)||!!(m&&t&&t[m])}},58442:w=>{var s=/^(?:0|[1-9]\d*)$/;w.exports=function c(x,_){var m=typeof x;return!!(_=_??9007199254740991)&&("number"==m||"symbol"!=m&&s.test(x))&&x>-1&&x%1==0&&x<_}},93342:(w,D,s)=>{var c=s(20217),x=s(56507),_=s(58442),m=s(25940);w.exports=function p(t,d,l){if(!m(l))return!1;var h=typeof d;return!!("number"==h?x(l)&&_(d,l.length):"string"==h&&d in l)&&c(l[d],t)}},45352:(w,D,s)=>{var c=s(21503),x=s(44129),_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m=/^\w*$/;w.exports=function p(t,d){if(c(t))return!1;var l=typeof t;return!("number"!=l&&"symbol"!=l&&"boolean"!=l&&null!=t&&!x(t))||m.test(t)||!_.test(t)||null!=d&&t in Object(d)}},23819:w=>{w.exports=function D(s){var c=typeof s;return"string"==c||"number"==c||"symbol"==c||"boolean"==c?"__proto__"!==s:null===s}},91943:(w,D,s)=>{var m,c=s(24610),x=(m=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"";w.exports=function _(m){return!!x&&x in m}},45488:w=>{var D=Object.prototype;w.exports=function s(c){var x=c&&c.constructor;return c===("function"==typeof x&&x.prototype||D)}},22442:(w,D,s)=>{var c=s(25940);w.exports=function x(_){return _==_&&!c(_)}},41840:w=>{w.exports=function D(){this.__data__=[],this.size=0}},34378:(w,D,s)=>{var c=s(43503),_=Array.prototype.splice;w.exports=function m(p){var t=this.__data__,d=c(t,p);return!(d<0||(d==t.length-1?t.pop():_.call(t,d,1),--this.size,0))}},54981:(w,D,s)=>{var c=s(43503);w.exports=function x(_){var m=this.__data__,p=c(m,_);return p<0?void 0:m[p][1]}},67343:(w,D,s)=>{var c=s(43503);w.exports=function x(_){return c(this.__data__,_)>-1}},98895:(w,D,s)=>{var c=s(43503);w.exports=function x(_,m){var p=this.__data__,t=c(p,_);return t<0?(++this.size,p.push([_,m])):p[t][1]=m,this}},10638:(w,D,s)=>{var c=s(54994),x=s(9215),_=s(51501);w.exports=function m(){this.size=0,this.__data__={hash:new c,map:new(_||x),string:new c}}},11184:(w,D,s)=>{var c=s(54537);w.exports=function x(_){var m=c(this,_).delete(_);return this.size-=m?1:0,m}},70866:(w,D,s)=>{var c=s(54537);w.exports=function x(_){return c(this,_).get(_)}},43771:(w,D,s)=>{var c=s(54537);w.exports=function x(_){return c(this,_).has(_)}},51772:(w,D,s)=>{var c=s(54537);w.exports=function x(_,m){var p=c(this,_),t=p.size;return p.set(_,m),this.size+=p.size==t?0:1,this}},83205:w=>{w.exports=function D(s){var c=-1,x=Array(s.size);return s.forEach(function(_,m){x[++c]=[m,_]}),x}},642:w=>{w.exports=function D(s,c){return function(x){return null!=x&&x[s]===c&&(void 0!==c||s in Object(x))}}},15144:(w,D,s)=>{var c=s(30535);w.exports=function _(m){var p=c(m,function(d){return 500===t.size&&t.clear(),d}),t=p.cache;return p}},60862:(w,D,s)=>{var x=s(53436)(Object,"create");w.exports=x},85491:(w,D,s)=>{var x=s(69385)(Object.keys,Object);w.exports=x},32158:w=>{w.exports=function D(s){var c=[];if(null!=s)for(var x in Object(s))c.push(x);return c}},73597:(w,D,s)=>{w=s.nmd(w);var c=s(79122),x=D&&!D.nodeType&&D,_=x&&w&&!w.nodeType&&w,p=_&&_.exports===x&&c.process,t=function(){try{return _&&_.require&&_.require("util").types||p&&p.binding&&p.binding("util")}catch{}}();w.exports=t},92902:w=>{var s=Object.prototype.toString;w.exports=function c(x){return s.call(x)}},69385:w=>{w.exports=function D(s,c){return function(x){return s(c(x))}}},53983:(w,D,s)=>{var c=s(26999),x=Math.max;w.exports=function _(m,p,t){return p=x(void 0===p?m.length-1:p,0),function(){for(var d=arguments,l=-1,h=x(d.length-p,0),f=Array(h);++l{var c=s(79122),x="object"==typeof self&&self&&self.Object===Object&&self,_=c||x||Function("return this")();w.exports=_},99351:w=>{w.exports=function D(s,c){if(("constructor"!==c||"function"!=typeof s[c])&&"__proto__"!=c)return s[c]}},4600:w=>{w.exports=function s(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},31387:w=>{w.exports=function D(s){return this.__data__.has(s)}},24174:w=>{w.exports=function D(s){var c=-1,x=Array(s.size);return s.forEach(function(_){x[++c]=_}),x}},72185:(w,D,s)=>{var c=s(69510),_=s(10029)(c);w.exports=_},10029:w=>{var c=Date.now;w.exports=function x(_){var m=0,p=0;return function(){var t=c(),d=16-(t-p);if(p=t,d>0){if(++m>=800)return arguments[0]}else m=0;return _.apply(void 0,arguments)}}},13720:(w,D,s)=>{var c=s(9215);w.exports=function x(){this.__data__=new c,this.size=0}},64410:w=>{w.exports=function D(s){var c=this.__data__,x=c.delete(s);return this.size=c.size,x}},45576:w=>{w.exports=function D(s){return this.__data__.get(s)}},22247:w=>{w.exports=function D(s){return this.__data__.has(s)}},41585:(w,D,s)=>{var c=s(9215),x=s(51501),_=s(99850);w.exports=function p(t,d){var l=this.__data__;if(l instanceof c){var h=l.__data__;if(!x||h.length<199)return h.push([t,d]),this.size=++l.size,this;l=this.__data__=new _(h)}return l.set(t,d),this.size=l.size,this}},24977:w=>{w.exports=function D(s,c,x){for(var _=x-1,m=s.length;++_{var c=s(75481),x=s(77609),_=s(81149);w.exports=function m(p){return x(p)?_(p):c(p)}},32855:(w,D,s)=>{var c=s(15144),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,m=c(function(p){var t=[];return 46===p.charCodeAt(0)&&t.push(""),p.replace(x,function(d,l,h,f){t.push(h?f.replace(_,"$1"):l||d)}),t});w.exports=m},68533:(w,D,s)=>{var c=s(44129);w.exports=function _(m){if("string"==typeof m||c(m))return m;var p=m+"";return"0"==p&&1/m==-1/0?"-0":p}},52827:w=>{var s=Function.prototype.toString;w.exports=function c(x){if(null!=x){try{return s.call(x)}catch{}try{return x+""}catch{}}return""}},42760:w=>{var D=/\s/;w.exports=function s(c){for(var x=c.length;x--&&D.test(c.charAt(x)););return x}},81149:w=>{var D="\\ud800-\\udfff",p="["+D+"]",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",d="\\ud83c[\\udffb-\\udfff]",h="[^"+D+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",C="(?:"+t+"|"+d+")?",L="[\\ufe0e\\ufe0f]?",B=L+C+"(?:\\u200d(?:"+[h,f,u].join("|")+")"+L+C+")*",M="(?:"+[h+t+"?",t,f,u,p].join("|")+")",R=RegExp(d+"(?="+d+")|"+M+B,"g");w.exports=function Z(H){for(var G=R.lastIndex=0;R.test(H);)++G;return G}},11094:(w,D,s)=>{var c=s(44462);w.exports=function _(m){return c(m,4)}},90733:(w,D,s)=>{var c=s(44462);w.exports=function m(p){return c(p,5)}},76684:w=>{w.exports=function D(s){return function(){return s}}},28800:(w,D,s)=>{var c=s(23269),x=s(20217),_=s(93342),m=s(16555),p=Object.prototype,t=p.hasOwnProperty,d=c(function(l,h){l=Object(l);var f=-1,u=h.length,g=u>2?h[2]:void 0;for(g&&_(h[0],h[1],g)&&(u=1);++f{w.exports=s(89851)},20217:w=>{w.exports=function D(s,c){return s===c||s!=s&&c!=c}},35281:(w,D,s)=>{var c=s(69779),x=s(33609),_=s(96517),m=s(21503);w.exports=function p(t,d){return(m(t)?c:x)(t,_(d,3))}},62516:(w,D,s)=>{var _=s(24653)(s(36397));w.exports=_},36397:(w,D,s)=>{var c=s(65317),x=s(96517),_=s(44401),m=Math.max;w.exports=function p(t,d,l){var h=null==t?0:t.length;if(!h)return-1;var f=null==l?0:_(l);return f<0&&(f=m(h+f,0)),c(t,x(d,3),f)}},22274:(w,D,s)=>{var c=s(50686);w.exports=function x(_){return null!=_&&_.length?c(_,1):[]}},89851:(w,D,s)=>{var c=s(96837),x=s(43132),_=s(21481),m=s(21503);w.exports=function p(t,d){return(m(t)?c:x)(t,_(d))}},41176:(w,D,s)=>{var c=s(30755),x=s(21481),_=s(16555);w.exports=function m(p,t){return null==p?p:c(p,x(t),_)}},8817:(w,D,s)=>{var c=s(15456);w.exports=function x(_,m,p){var t=null==_?void 0:c(_,m);return void 0===t?p:t}},54842:(w,D,s)=>{var c=s(84781),x=s(47283);w.exports=function _(m,p){return null!=m&&x(m,p,c)}},11172:(w,D,s)=>{var c=s(69989),x=s(47283);w.exports=function _(m,p){return null!=m&&x(m,p,c)}},32608:w=>{w.exports=function D(s){return s}},77151:(w,D,s)=>{var c=s(60186),x=s(72671),_=Object.prototype,m=_.hasOwnProperty,p=_.propertyIsEnumerable,t=c(function(){return arguments}())?c:function(d){return x(d)&&m.call(d,"callee")&&!p.call(d,"callee")};w.exports=t},21503:w=>{w.exports=Array.isArray},56507:(w,D,s)=>{var c=s(75946),x=s(96231);w.exports=function _(m){return null!=m&&x(m.length)&&!c(m)}},21330:(w,D,s)=>{var c=s(56507),x=s(72671);w.exports=function _(m){return x(m)&&c(m)}},80891:(w,D,s)=>{w=s.nmd(w);var c=s(12119),x=s(63580),_=D&&!D.nodeType&&D,m=_&&w&&!w.nodeType&&w,t=m&&m.exports===_?c.Buffer:void 0;w.exports=(t?t.isBuffer:void 0)||x},71973:(w,D,s)=>{var c=s(81172),x=s(28794),_=s(77151),m=s(21503),p=s(56507),t=s(80891),d=s(45488),l=s(48159),g=Object.prototype.hasOwnProperty;w.exports=function C(L){if(null==L)return!0;if(p(L)&&(m(L)||"string"==typeof L||"function"==typeof L.splice||t(L)||l(L)||_(L)))return!L.length;var I=x(L);if("[object Map]"==I||"[object Set]"==I)return!L.size;if(d(L))return!c(L).length;for(var B in L)if(g.call(L,B))return!1;return!0}},75946:(w,D,s)=>{var c=s(93337),x=s(25940);w.exports=function d(l){if(!x(l))return!1;var h=c(l);return"[object Function]"==h||"[object GeneratorFunction]"==h||"[object AsyncFunction]"==h||"[object Proxy]"==h}},96231:w=>{w.exports=function s(c){return"number"==typeof c&&c>-1&&c%1==0&&c<=9007199254740991}},13222:(w,D,s)=>{var c=s(97021),x=s(85647),_=s(73597),m=_&&_.isMap,p=m?x(m):c;w.exports=p},25940:w=>{w.exports=function D(s){var c=typeof s;return null!=s&&("object"==c||"function"==c)}},72671:w=>{w.exports=function D(s){return null!=s&&"object"==typeof s}},97614:(w,D,s)=>{var c=s(93337),x=s(29519),_=s(72671),d=Function.prototype.toString,l=Object.prototype.hasOwnProperty,h=d.call(Object);w.exports=function f(u){if(!_(u)||"[object Object]"!=c(u))return!1;var g=x(u);if(null===g)return!0;var C=l.call(g,"constructor")&&g.constructor;return"function"==typeof C&&C instanceof C&&d.call(C)==h}},90799:(w,D,s)=>{var c=s(771),x=s(85647),_=s(73597),m=_&&_.isSet,p=m?x(m):c;w.exports=p},30248:(w,D,s)=>{var c=s(93337),x=s(21503),_=s(72671);w.exports=function p(t){return"string"==typeof t||!x(t)&&_(t)&&"[object String]"==c(t)}},44129:(w,D,s)=>{var c=s(93337),x=s(72671);w.exports=function m(p){return"symbol"==typeof p||x(p)&&"[object Symbol]"==c(p)}},48159:(w,D,s)=>{var c=s(1083),x=s(85647),_=s(73597),m=_&&_.isTypedArray,p=m?x(m):c;w.exports=p},34235:w=>{w.exports=function D(s){return void 0===s}},118:(w,D,s)=>{var c=s(72271),x=s(81172),_=s(56507);w.exports=function m(p){return _(p)?c(p):x(p)}},16555:(w,D,s)=>{var c=s(72271),x=s(92809),_=s(56507);w.exports=function m(p){return _(p)?c(p,!0):x(p)}},25809:w=>{w.exports=function D(s){var c=null==s?0:s.length;return c?s[c-1]:void 0}},19984:(w,D,s)=>{var c=s(84633),x=s(96517),_=s(92046),m=s(21503);w.exports=function p(t,d){return(m(t)?c:_)(t,x(d,3))}},10203:(w,D,s)=>{var c=s(85683),x=s(45184),_=s(96517);w.exports=function m(p,t){var d={};return t=_(t,3),x(p,function(l,h,f){c(d,h,t(l,h,f))}),d}},18176:(w,D,s)=>{var c=s(67308),x=s(31100),_=s(32608);w.exports=function m(p){return p&&p.length?c(p,_,x):void 0}},30535:(w,D,s)=>{var c=s(99850);function _(m,p){if("function"!=typeof m||null!=p&&"function"!=typeof p)throw new TypeError("Expected a function");var t=function(){var d=arguments,l=p?p.apply(this,d):d[0],h=t.cache;if(h.has(l))return h.get(l);var f=m.apply(this,d);return t.cache=h.set(l,f)||h,f};return t.cache=new(_.Cache||c),t}_.Cache=c,w.exports=_},80567:(w,D,s)=>{var c=s(73842),_=s(84944)(function(m,p,t){c(m,p,t)});w.exports=_},29439:(w,D,s)=>{var c=s(67308),x=s(99069),_=s(32608);w.exports=function m(p){return p&&p.length?c(p,_,x):void 0}},29525:(w,D,s)=>{var c=s(67308),x=s(96517),_=s(99069);w.exports=function m(p,t){return p&&p.length?c(p,x(t,2),_):void 0}},12552:w=>{w.exports=function D(){}},31710:(w,D,s)=>{var c=s(12119);w.exports=function(){return c.Date.now()}},16372:(w,D,s)=>{var c=s(83021),_=s(3975)(function(m,p){return null==m?{}:c(m,p)});w.exports=_},87495:(w,D,s)=>{var c=s(11847),x=s(39222),_=s(45352),m=s(68533);w.exports=function p(t){return _(t)?c(m(t)):x(t)}},90361:(w,D,s)=>{var x=s(97509)();w.exports=x},81337:(w,D,s)=>{var c=s(8745),x=s(43132),_=s(96517),m=s(13570),p=s(21503);w.exports=function t(d,l,h){var f=p(d)?c:m,u=arguments.length<3;return f(d,_(l,4),h,u,x)}},55637:(w,D,s)=>{var c=s(81172),x=s(28794),_=s(56507),m=s(30248),p=s(52315);w.exports=function l(h){if(null==h)return 0;if(_(h))return m(h)?p(h):h.length;var f=x(h);return"[object Map]"==f||"[object Set]"==f?h.size:c(h).length}},12906:(w,D,s)=>{var c=s(50686),x=s(6119),_=s(23269),m=s(93342),p=_(function(t,d){if(null==t)return[];var l=d.length;return l>1&&m(t,d[0],d[1])?d=[]:l>2&&m(d[0],d[1],d[2])&&(d=[d[0]]),x(t,c(d,1),[])});w.exports=p},49975:w=>{w.exports=function D(){return[]}},63580:w=>{w.exports=function D(){return!1}},12232:(w,D,s)=>{var c=s(51467),x=1/0;w.exports=function m(p){return p?(p=c(p))===x||p===-x?17976931348623157e292*(p<0?-1:1):p==p?p:0:0===p?p:0}},44401:(w,D,s)=>{var c=s(12232);w.exports=function x(_){var m=c(_),p=m%1;return m==m?p?m-p:m:0}},51467:(w,D,s)=>{var c=s(83348),x=s(25940),_=s(44129),p=/^[-+]0x[0-9a-f]+$/i,t=/^0b[01]+$/i,d=/^0o[0-7]+$/i,l=parseInt;w.exports=function h(f){if("number"==typeof f)return f;if(_(f))return NaN;if(x(f)){var u="function"==typeof f.valueOf?f.valueOf():f;f=x(u)?u+"":u}if("string"!=typeof f)return 0===f?f:+f;f=c(f);var g=t.test(f);return g||d.test(f)?l(f.slice(2),g?2:8):p.test(f)?NaN:+f}},8067:(w,D,s)=>{var c=s(31989),x=s(16555);w.exports=function _(m){return c(m,x(m))}},73943:(w,D,s)=>{var c=s(93935);w.exports=function x(_){return null==_?"":c(_)}},89416:(w,D,s)=>{var c=s(96837),x=s(78858),_=s(45184),m=s(96517),p=s(29519),t=s(21503),d=s(80891),l=s(75946),h=s(25940),f=s(48159);w.exports=function u(g,C,L){var I=t(g),B=I||d(g)||f(g);if(C=m(C,4),null==L){var M=g&&g.constructor;L=B?I?new M:[]:h(g)&&l(M)?x(p(g)):{}}return(B?c:_)(g,function(R,Z,H){return C(L,R,Z,H)}),L}},68921:(w,D,s)=>{var c=s(50686),x=s(23269),_=s(80707),m=s(21330),p=x(function(t){return _(c(t,1,m,!0))});w.exports=p},51541:(w,D,s)=>{var c=s(73943),x=0;w.exports=function _(m){var p=++x;return c(m)+p}},90377:(w,D,s)=>{var c=s(19179),x=s(118);w.exports=function _(m){return null==m?[]:c(m,x(m))}},21617:(w,D,s)=>{var c=s(89719),x=s(38645);w.exports=function _(m,p){return x(m||[],p||[],c)}},34315:(w,D,s)=>{"use strict";const c=Symbol.prototype.valueOf,x=s(52872);w.exports=function _(h,f){switch(x(h)){case"array":return h.slice();case"object":return Object.assign({},h);case"date":return new h.constructor(Number(h));case"map":return new Map(h);case"set":return new Set(h);case"buffer":return function d(h){const f=h.length,u=Buffer.allocUnsafe?Buffer.allocUnsafe(f):Buffer.from(f);return h.copy(u),u}(h);case"symbol":return function l(h){return c?Object(c.call(h)):{}}(h);case"arraybuffer":return function p(h){const f=new h.constructor(h.byteLength);return new Uint8Array(f).set(new Uint8Array(h)),f}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function t(h,f){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function m(h){const f=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,u=new h.constructor(h.source,f);return u.lastIndex=h.lastIndex,u}(h);case"error":return Object.create(h);default:return h}}},67824:(w,D,s)=>{"use strict";function c(x){for(var _ in x)D.hasOwnProperty(_)||(D[_]=x[_])}Object.defineProperty(D,"__esModule",{value:!0}),c(s(95085)),c(s(26243)),c(s(91786)),c(s(30225)),c(s(76767)),c(s(30345)),c(s(15675)),c(s(86461)),c(s(58802)),c(s(33900)),c(s(88866)),c(s(94655)),c(s(4068)),c(s(33858)),c(s(98237)),c(s(83292))},95085:function(w,D,s){"use strict";var p,c=this&&this.__extends||(p=function(t,d){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)h.hasOwnProperty(f)&&(l[f]=h[f])})(t,d)},function(t,d){function l(){this.constructor=t}p(t,d),t.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(15675),_=function(p){function t(d){var l=p.call(this)||this,f=d;return f.trigger&&(l.trigger=f.trigger),f.kick&&(l.kick=f.kick),f.drag&&(l.drag=f.drag),f.on&&(l.on=f.on),l.dragstart=l.dragStart=x.Layout.dragStart,l.dragend=l.dragEnd=x.Layout.dragEnd,l}return c(t,p),t.prototype.trigger=function(d){},t.prototype.kick=function(){},t.prototype.drag=function(){},t.prototype.on=function(d,l){return this},t}(x.Layout);D.LayoutAdaptor=_,D.adaptor=function m(p){return new _(p)}},83292:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(15675),x=s(76767);D.gridify=function _(t,d,l,h){t.cola.start(0,0,0,10,!1);var f=function m(t,d,l,h){t.forEach(function(u){u.routerNode={name:u.name,bounds:u.bounds.inflate(-l)}}),d.forEach(function(u){u.routerNode={bounds:u.bounds.inflate(-h),children:(typeof u.groups<"u"?u.groups.map(function(g){return t.length+g.id}):[]).concat(typeof u.leaves<"u"?u.leaves.map(function(g){return g.index}):[])}});var f=t.concat(d).map(function(u,g){return u.routerNode.id=g,u.routerNode});return new x.GridRouter(f,{getChildren:function(u){return u.children},getBounds:function(u){return u.bounds}},l-h)}(t.cola.nodes(),t.cola.groups(),l,h);return f.routeEdges(t.powerGraph.powerEdges,d,function(u){return u.source.routerNode.id},function(u){return u.target.routerNode.id})},D.powerGraphGridLayout=function p(t,d,l){var h;t.nodes.forEach(function(C,L){return C.index=L}),(new c.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(C){(h=C).groups.forEach(function(L){return L.padding=l})});var f=t.nodes.length,u=[],g=t.nodes.slice(0);return g.forEach(function(C,L){return C.index=L}),h.groups.forEach(function(C){var L=C.index=C.id+f;g.push(C),typeof C.leaves<"u"&&C.leaves.forEach(function(I){return u.push({source:L,target:I.index})}),typeof C.groups<"u"&&C.groups.forEach(function(I){return u.push({source:L,target:I.id+f})})}),h.powerEdges.forEach(function(C){u.push({source:C.source.index,target:C.target.index})}),(new c.Layout).size(d).nodes(g).links(u).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new c.Layout).convergenceThreshold(.001).size(d).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(C){(h=C).groups.forEach(function(L){L.padding=l})}).start(50,0,100,0,!1),powerGraph:h}}},26243:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(49346),x=s(22487);D.d3adaptor=function _(p){return!p||function m(p){return p.version&&null!==p.version.match(/^3\./)}(p)?new c.D3StyleLayoutAdaptor:new x.D3StyleLayoutAdaptor(p)}},49346:function(w,D,s){"use strict";var p,c=this&&this.__extends||(p=function(t,d){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)h.hasOwnProperty(f)&&(l[f]=h[f])})(t,d)},function(t,d){function l(){this.constructor=t}p(t,d),t.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(15675),_=function(p){function t(){var d=p.call(this)||this;d.event=d3.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=d;return d.drag=function(){if(!f)var f=d3.behavior.drag().origin(x.Layout.dragOrigin).on("dragstart.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,d3.event),l.resume()}).on("dragend.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return f;this.call(f)},d}return c(t,p),t.prototype.trigger=function(d){var l={type:x.EventType[d.type],alpha:d.alpha,stress:d.stress};this.event[l.type](l)},t.prototype.kick=function(){var d=this;d3.timer(function(){return p.prototype.tick.call(d)})},t.prototype.on=function(d,l){return this.event.on("string"==typeof d?d:x.EventType[d],l),this},t}(x.Layout);D.D3StyleLayoutAdaptor=_,D.d3adaptor=function m(){return new _}},22487:function(w,D,s){"use strict";var m,c=this&&this.__extends||(m=function(p,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,l){d.__proto__=l}||function(d,l){for(var h in l)l.hasOwnProperty(h)&&(d[h]=l[h])})(p,t)},function(p,t){function d(){this.constructor=p}m(p,t),p.prototype=null===t?Object.create(t):(d.prototype=t.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(15675),_=function(m){function p(t){var d=m.call(this)||this;d.d3Context=t,d.event=t.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=d;return d.drag=function(){if(!f)var f=t.drag().subject(x.Layout.dragOrigin).on("start.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,t.event),l.resume()}).on("end.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return f;arguments[0].call(f)},d}return c(p,m),p.prototype.trigger=function(t){var d={type:x.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(d.type,d)},p.prototype.kick=function(){var t=this,d=this.d3Context.timer(function(){return m.prototype.tick.call(t)&&d.stop()})},p.prototype.on=function(t,d){return this.event.on("string"==typeof t?t:x.EventType[t],d),this},p}(x.Layout);D.D3StyleLayoutAdaptor=_},91786:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function(){function _(){this.locks={}}return _.prototype.add=function(m,p){this.locks[m]=p},_.prototype.clear=function(){this.locks={}},_.prototype.isEmpty=function(){for(var m in this.locks)return!1;return!0},_.prototype.apply=function(m){for(var p in this.locks)m(Number(p),this.locks[p])},_}();D.Locks=s;var c=function(){function _(m,p,t){void 0===t&&(t=null),this.D=p,this.G=t,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new x,this.project=null,this.x=m,this.k=m.length;var d=this.n=m[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new s,this.minD=Number.MAX_VALUE;for(var h,l=d;l--;)for(h=d;--h>l;){var f=p[l][h];f>0&&f1e-9)break;var M=this.offsetDir();for(d=0;d1&&R>Z||!isFinite(Z)){for(d=0;d1&&(H=1);var G=Z*Z,tt=2*H*(R-Z)/(G*R),K=R*R*R,st=2*-H/(G*K);for(isFinite(tt)||console.log(tt),d=0;d0?nt-(F+1)*W:nt-(F-1)*W)&&B<=j&&(this.scaleSnapByMaxH?(this.g[d][g]+=u*at*B,this.H[d][g][g]+=u*at):(this.g[d][g]+=at*B,this.H[d][g][g]+=at))}this.locks.isEmpty()||this.locks.apply(function(ut,ft){for(d=0;d0;)for(var l=p;l-- >0;)t(d,l)},_.prototype.matrixApply=function(m){_.mApply(this.k,this.n,m)},_.prototype.computeNextPosition=function(m,p){var t=this;this.computeDerivatives(m);var d=this.computeStepSize(this.g);if(this.stepAndProject(m,p,this.g,d),this.project){this.matrixApply(function(h,f){return t.e[h][f]=m[h][f]-p[h][f]});var l=this.computeStepSize(this.e);l=Math.max(.2,Math.min(l,1)),this.stepAndProject(m,p,this.e,l)}},_.prototype.run=function(m){for(var p=Number.MAX_VALUE,t=!1;!t&&m-- >0;){var d=this.rungeKutta();t=Math.abs(p/d-1)>16)/this.range},_.prototype.getNextBetween=function(m,p){return m+this.getNext()*(p-m)},_}();D.PseudoRandom=x},30225:function(w,D,s){"use strict";var q,c=this&&this.__extends||(q=function(F,E){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ut,ft){ut.__proto__=ft}||function(ut,ft){for(var Dt in ft)ft.hasOwnProperty(Dt)&&(ut[Dt]=ft[Dt])})(F,E)},function(F,E){function ut(){this.constructor=F}q(F,E),F.prototype=null===E?Object.create(E):(ut.prototype=E.prototype,new ut)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(4068),_=function q(){};D.Point=_;var m=function q(F,E,ut,ft){this.x1=F,this.y1=E,this.x2=ut,this.y2=ft};D.LineSegment=m;var p=function(q){function F(){return null!==q&&q.apply(this,arguments)||this}return c(F,q),F}(_);function t(q,F,E){return(F.x-q.x)*(E.y-q.y)-(E.x-q.x)*(F.y-q.y)}function d(q,F,E){return t(q,F,E)>0}function l(q,F,E){return t(q,F,E)<0}function C(q,F){var E=F.slice(0);return E.push(F[0]),{rtan:L(q,E),ltan:I(q,E)}}function L(q,F){var ut,ft,Dt,Qt,E=F.length-1;if(l(q,F[1],F[0])&&!d(q,F[E-1],F[0]))return 0;for(ut=0,ft=E;;){if(ft-ut==1)return d(q,F[ut],F[ft])?ut:ft;if((Qt=l(q,F[(Dt=Math.floor((ut+ft)/2))+1],F[Dt]))&&!d(q,F[Dt-1],F[Dt]))return Dt;d(q,F[ut+1],F[ut])?Qt||d(q,F[ut],F[Dt])?ft=Dt:ut=Dt:Qt&&l(q,F[ut],F[Dt])?ft=Dt:ut=Dt}}function I(q,F){var ut,ft,Dt,Qt,E=F.length-1;if(d(q,F[E-1],F[0])&&!l(q,F[1],F[0]))return 0;for(ut=0,ft=E;;){if(ft-ut==1)return l(q,F[ut],F[ft])?ut:ft;if(Qt=l(q,F[(Dt=Math.floor((ut+ft)/2))+1],F[Dt]),d(q,F[Dt-1],F[Dt])&&!Qt)return Dt;l(q,F[ut+1],F[ut])?Qt?l(q,F[ut],F[Dt])?ft=Dt:ut=Dt:ft=Dt:Qt?ut=Dt:d(q,F[ut],F[Dt])?ft=Dt:ut=Dt}}function B(q,F,E,ut,ft,Dt){var St,Qt;Qt=ut(q[St=E(F[0],q)],F);for(var pe=!1;!pe;){for(pe=!0;St===q.length-1&&(St=0),!ft(F[Qt],q[St],q[St+1]);)++St;for(;0===Qt&&(Qt=F.length-1),!Dt(q[St],F[Qt],F[Qt-1]);)--Qt,pe=!1}return{t1:St,t2:Qt}}function R(q,F){return B(q,F,L,I,d,l)}D.PolyPoint=p,D.isLeft=t,D.ConvexHull=function h(q){var ut,F=q.slice(0).sort(function(zt,de){return zt.x!==de.x?de.x-zt.x:de.y-zt.y}),E=q.length,Dt=F[0].x;for(ut=1;ut=0&&F[ut].x===yt;ut--);for(pe=ut+1,ut=St;++ut<=pe;)if(!(t(F[0],F[pe],F[ut])>=0&&ut1&&!(t(Qt[Qt.length-2],Qt[Qt.length-1],F[ut])>0);)Qt.length-=1;0!=ut&&Qt.push(F[ut])}wt!=pe&&Qt.push(F[wt]);var Nt=Qt.length;for(ut=pe;--ut>=St;)if(!(t(F[wt],F[St],F[ut])>=0&&ut>St)){for(;Qt.length>Nt&&!(t(Qt[Qt.length-2],Qt[Qt.length-1],F[ut])>0);)Qt.length-=1;0!=ut&&Qt.push(F[ut])}}return Qt},D.clockwiseRadialSweep=function f(q,F,E){F.slice(0).sort(function(ut,ft){return Math.atan2(ut.y-q.y,ut.x-q.x)-Math.atan2(ft.y-q.y,ft.x-q.x)}).forEach(E)},D.tangent_PolyPolyC=B,D.LRtangent_PolyPolyC=function M(q,F){var E=R(F,q);return{t1:E.t2,t2:E.t1}},D.RLtangent_PolyPolyC=R,D.LLtangent_PolyPolyC=function Z(q,F){return B(q,F,I,I,l,l)},D.RRtangent_PolyPolyC=function H(q,F){return B(q,F,L,L,d,d)};var G=function q(F,E){this.t1=F,this.t2=E};D.BiTangent=G;var tt=function q(){};D.BiTangents=tt;var K=function(q){function F(){return null!==q&&q.apply(this,arguments)||this}return c(F,q),F}(_);D.TVGPoint=K;var st=function q(F,E,ut,ft){this.id=F,this.polyid=E,this.polyvertid=ut,this.p=ft,ft.vv=this};D.VisibilityVertex=st;var j=function(){function q(F,E){this.source=F,this.target=E}return q.prototype.length=function(){var F=this.source.p.x-this.target.p.x,E=this.source.p.y-this.target.p.y;return Math.sqrt(F*F+E*E)},q}();D.VisibilityEdge=j;var W=function(){function q(F,E){if(this.P=F,this.V=[],this.E=[],E)this.V=E.V.slice(0),this.E=E.E.slice(0);else{for(var ut=F.length,ft=0;ft0&&this.E.push(new j(Dt[St-1].vv,pe))}Dt.length>1&&this.E.push(new j(Dt[0].vv,Dt[Dt.length-1].vv))}for(ft=0;ft0)return!0;return!1},q}();function et(q,F){for(var E=[],ut=1,ft=F.length;ut=0&&ie>=0&&Ot<0&&te>=0&&jt>=0&&se<0?ft.ll=new G(Dt,St):de<=0&&ie<=0&&Ot>0&&te<=0&&jt<=0&&se>0?ft.rr=new G(Dt,St):de<=0&&ie>0&&Ot<=0&&te>=0&&jt<0&&se>=0?ft.rl=new G(Dt,St):de>=0&&ie<0&&Ot>=0&&te<=0&&jt>0&&se<=0&&(ft.lr=new G(Dt,St))}return ft}function nt(q,F){return!q.every(function(E){return!function Y(q,F){for(var E=1,ut=F.length;E0)return!0}return!1}},76767:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(4068),x=s(98237),_=s(33858),m=function l(h,f,u){this.id=h,this.rect=f,this.children=u,this.leaf=typeof u>"u"||0===u.length};D.NodeWrapper=m;var p=function l(h,f,u,g,C){void 0===g&&(g=null),void 0===C&&(C=null),this.id=h,this.x=f,this.y=u,this.node=g,this.line=C};D.Vert=p;var t=function(){function l(h,f){this.s=h,this.t=f;var u=l.findMatch(h,f),g=f.slice(0).reverse(),C=l.findMatch(h,g);u.length>=C.length?(this.length=u.length,this.si=u.si,this.ti=u.ti,this.reversed=!1):(this.length=C.length,this.si=C.si,this.ti=f.length-C.ti-C.length,this.reversed=!0)}return l.findMatch=function(h,f){for(var u=h.length,g=f.length,C={length:0,si:-1,ti:-1},L=new Array(u),I=0;IC.length&&(C.length=M,C.si=I-M+1,C.ti=B-M+1)}else L[I][B]=0}return C},l.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},l}();D.LongestCommonSubsequence=t;var d=function(){function l(h,f,u){var g=this;void 0===u&&(u=12),this.originalnodes=h,this.groupPadding=u,this.leaves=null,this.nodes=h.map(function(K,st){return new m(st,f.getBounds(K),f.getChildren(K))}),this.leaves=this.nodes.filter(function(K){return K.leaf}),this.groups=this.nodes.filter(function(K){return!K.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(K){return K.children.forEach(function(st){return g.nodes[st].parent=K})}),this.root={children:[]},this.nodes.forEach(function(K){typeof K.parent>"u"&&(K.parent=g.root,g.root.children.push(K.id)),K.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(K,st){return g.getDepth(K)-g.getDepth(st)}),this.backToFront.slice(0).reverse().filter(function(K){return!K.leaf}).forEach(function(K){var st=c.Rectangle.empty();K.children.forEach(function(j){return st=st.union(g.nodes[j].rect)}),K.rect=st.inflate(g.groupPadding)});var L=this.midPoints(this.cols.map(function(K){return K.pos})),I=this.midPoints(this.rows.map(function(K){return K.pos})),B=L[0],M=L[L.length-1],R=I[0],Z=I[I.length-1],H=this.rows.map(function(K){return{x1:B,x2:M,y1:K.pos,y2:K.pos}}).concat(I.map(function(K){return{x1:B,x2:M,y1:K,y2:K}})),G=this.cols.map(function(K){return{x1:K.pos,x2:K.pos,y1:R,y2:Z}}).concat(L.map(function(K){return{x1:K,x2:K,y1:R,y2:Z}})),tt=H.concat(G);tt.forEach(function(K){return K.verts=[]}),this.verts=[],this.edges=[],H.forEach(function(K){return G.forEach(function(st){var j=new p(g.verts.length,st.x1,K.y1);K.verts.push(j),st.verts.push(j),g.verts.push(j);for(var W=g.backToFront.length;W-- >0;){var et=g.backToFront[W],at=et.rect,Y=Math.abs(j.x-at.cx()),nt=Math.abs(j.y-at.cy());if(Y0;){var g=u.filter(function(L){return L.rect["overlap"+h.toUpperCase()](u[0].rect)}),C={nodes:g,pos:this.avg(g.map(function(L){return L.rect["c"+h]()}))};f.push(C),C.nodes.forEach(function(L){return u.splice(u.indexOf(L),1)})}return f.sort(function(L,I){return L.pos-I.pos}),f},l.prototype.getDepth=function(h){for(var f=0;h.parent!==this.root;)f++,h=h.parent;return f},l.prototype.midPoints=function(h){for(var f=h[1]-h[0],u=[h[0]-f/2],g=1;g.1)&&R.push(Z={pos:B[0][f],segments:[]}),Z.segments.push(B)}return R},l.nudgeSegs=function(h,f,u,g,C,L){var I=g.length;if(!(I<=1)){for(var B=g.map(function(et){return new x.Variable(et[0][h])}),M=[],R=0;R=0&&M.push(new x.Constraint(B[st],B[j],L))}new x.Solver(B,M).solve(),B.forEach(function(et,at){var Y=g[at],nt=et.position();Y[0][h]=Y[1][h]=nt;var rt=u[Y.edgeid];Y.i>0&&(rt[Y.i-1][1][h]=nt),Y.iMath.PI||C<-Math.PI)&&(C=g-u),C},l.isLeft=function(h,f,u){return(f.x-h.x)*(u.y-h.y)-(f.y-h.y)*(u.x-h.x)<=0},l.getOrder=function(h){for(var f={},u=0;u"u"&&(f[g.l]={}),f[g.l][g.r]=!0}return function(C,L){return typeof f[C]<"u"&&f[C][L]}},l.orderEdges=function(h){for(var f=[],u=0;u=C.length||I.ti+I.length>=L.length)){f.push({l:u,r:g});continue}I.si+I.length>=C.length||I.ti+I.length>=L.length?(B=C[I.si+1],R=C[I.si-1],M=L[I.ti-1]):(B=C[I.si+I.length-2],M=C[I.si+I.length],R=L[I.ti+I.length]),l.isLeft(B,M,R)?f.push({l:g,r:u}):f.push({l:u,r:g})}}return l.getOrder(f)},l.makeSegments=function(h){function f(M){return{x:M.x,y:M.y}}for(var g=[],C=f(h[0]),L=1;L1&&q>1?1e3:0}).reverse().map(function(j){return u.verts[j]});return st.push(this.nodes[C.id].ports[0]),st.filter(function(j,W){return!(W0&&j.node===C&&st[W-1].node===C)})},l.getRoutePath=function(h,f,u,g){var I,B,M,rt,q,C={routepath:"M "+h[0][0].x+" "+h[0][0].y+" ",arrowpath:""};if(h.length>1)for(var L=0;L0?B-=R/Math.abs(R)*f:M-=Z/Math.abs(Z)*f,C.routepath+="L "+B+" "+M+" ";var H=h[L+1],G=H[0].x,tt=H[0].y;R=H[1].x-G,Z=H[1].y-tt;var W,et,j=l.angleBetween2Lines(I,H)<0?1:0;Math.abs(R)>0?(W=G+R/Math.abs(R)*f,et=tt):(W=G,et=tt+Z/Math.abs(Z)*f);var at=Math.abs(W-B),Y=Math.abs(et-M);C.routepath+="A "+at+" "+Y+" 0 0 "+j+" "+W+" "+et+" "}else{var nt=[B,M];Math.abs(R)>0?(rt=[B-=R/Math.abs(R)*g,M+u],q=[B,M-u]):(rt=[B+u,M-=Z/Math.abs(Z)*g],q=[B-u,M]),C.routepath+="L "+B+" "+M+" ",g>0&&(C.arrowpath="M "+nt[0]+" "+nt[1]+" L "+rt[0]+" "+rt[1]+" L "+q[0]+" "+q[1])}}else R=(B=(I=h[0])[1].x)-I[0].x,Z=(M=I[1].y)-I[0].y,nt=[B,M],Math.abs(R)>0?(rt=[B-=R/Math.abs(R)*g,M+u],q=[B,M-u]):(rt=[B+u,M-=Z/Math.abs(Z)*g],q=[B-u,M]),C.routepath+="L "+B+" "+M+" ",g>0&&(C.arrowpath="M "+nt[0]+" "+nt[1]+" L "+rt[0]+" "+rt[1]+" L "+q[0]+" "+q[1]);return C},l}();D.GridRouter=d},30345:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s_GOLDEN_SECTION=(1+Math.sqrt(5))/2;D.applyPacking=function c(_,m,p,L,C,l){void 0===C&&(C=1),void 0===l&&(l=!0);var u=m,g=p,I=(C=typeof C<"u"?C:1,L=typeof L<"u"?L:0,0),B=0,M=0,R=0,Z=[];function K(et,at){Z=[],I=0,B=0,R=0;for(var Y=0;Y=et.height&&Z[nt].x+Z[nt].width+et.width+10-at<=1e-4){Y=Z[nt];break}Z.push(et),void 0!==Y?(et.x=Y.x+Y.width+10,et.y=Y.bottom,et.space_left=et.height,et.bottom=et.y,Y.space_left-=et.height+10,Y.bottom+=et.height+10):(et.y=R,R+=et.height+10,et.x=0,et.bottom=et.y,et.space_left=et.height),et.y+et.height-B>-1e-4&&(B=et.y+et.height-0),et.x+et.width-I>-1e-4&&(I=et.x+et.width-0)}0!=_.length&&(function H(et){et.forEach(function(Y){!function at(Y){var nt=Number.MAX_VALUE,rt=Number.MAX_VALUE,q=0,F=0;Y.array.forEach(function(E){var ut=typeof E.width<"u"?E.width:L,ft=typeof E.height<"u"?E.height:L;ut/=2,ft/=2,q=Math.max(E.x+ut,q),nt=Math.min(E.x-ut,nt),F=Math.max(E.y+ft,F),rt=Math.min(E.y-ft,rt)}),Y.width=q-nt,Y.height=F-rt}(Y)})}(_),function tt(et,at){var Y=Number.POSITIVE_INFINITY,nt=0;et.sort(function(wt,yt){return yt.height-wt.height});for(var rt=Qt=M=et.reduce(function(wt,yt){return wt.widthM||St>1e-4;){if(1!=ft){var Qt=q-(q-rt)/s_GOLDEN_SECTION;E=K(et,Qt)}if(0!=ft){var pe=rt+(q-rt)/s_GOLDEN_SECTION;ut=K(et,pe)}if(Dt=Math.abs(Qt-pe),St=Math.abs(E-ut),Eut?(rt=Qt,Qt=pe,E=ut,ft=1):(q=pe,pe=Qt,ut=E,ft=0),F++>100)break}K(et,nt)}(_),l&&function G(et){et.forEach(function(at){var Y={x:0,y:0};at.array.forEach(function(q){Y.x+=q.x,Y.y+=q.y}),Y.x/=at.array.length,Y.y/=at.array.length;var rt_x=at.x-(Y.x-at.width/2)+u/2-I/2,rt_y=at.y-(Y.y-at.height/2)+g/2-B/2;at.array.forEach(function(q){q.x+=rt_x,q.y+=rt_y})})}(_))},D.separateGraphs=function x(_,m){for(var p={},t={},d=[],l=0,h=0;h{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var l,u,c=s(33900),x=s(58802),_=s(91786),m=s(4068),p=s(33858),t=s(30225),d=s(30345);function h(u){return typeof u.leaves<"u"||typeof u.groups<"u"}(u=l=D.EventType||(D.EventType={}))[u.start=0]="start",u[u.tick=1]="tick",u[u.end=2]="end";var f=function(){function u(){var g=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:u.getSourceIndex,getTargetIndex:u.getTargetIndex,setLength:u.setLinkLength,getType:function(C){return"function"==typeof g._linkType?g._linkType(C):0}}}return u.prototype.on=function(g,C){return this.event||(this.event={}),"string"==typeof g?this.event[l[g]]=C:this.event[g]=C,this},u.prototype.trigger=function(g){this.event&&typeof this.event[g.type]<"u"&&this.event[g.type](g)},u.prototype.kick=function(){for(;!this.tick(););},u.prototype.tick=function(){if(this._alpha"u"||typeof L.py>"u")&&(L.px=L.x,L.py=L.y),this._descent.locks.add(I,[L.px,L.py]));var M=this._descent.rungeKutta();return 0===M?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=M),this._lastStress=M,this.updateNodePositions(),this.trigger({type:l.tick,alpha:this._alpha,stress:this._lastStress}),!1},u.prototype.updateNodePositions=function(){for(var L,g=this._descent.x[0],C=this._descent.x[1],I=this._nodes.length;I--;)(L=this._nodes[I]).x=g[I],L.y=C[I]},u.prototype.nodes=function(g){if(!g){if(0===this._nodes.length&&this._links.length>0){var C=0;this._links.forEach(function(I){C=Math.max(C,I.source,I.target)}),this._nodes=new Array(++C);for(var L=0;L"u"&&(L.padding=1),typeof L.leaves<"u"&&L.leaves.forEach(function(I,B){"number"==typeof I&&((L.leaves[B]=C._nodes[I]).parent=L)}),typeof L.groups<"u"&&L.groups.forEach(function(I,B){"number"==typeof I&&((L.groups[B]=C._groups[I]).parent=L)})}),this._rootGroup.leaves=this._nodes.filter(function(L){return typeof L.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(L){return typeof L.parent>"u"}),this):this._groups},u.prototype.powerGraphGroups=function(g){var C=c.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(C.groups),g(C),this},u.prototype.avoidOverlaps=function(g){return arguments.length?(this._avoidOverlaps=g,this):this._avoidOverlaps},u.prototype.handleDisconnected=function(g){return arguments.length?(this._handleDisconnected=g,this):this._handleDisconnected},u.prototype.flowLayout=function(g,C){return arguments.length||(g="y"),this._directedLinkConstraints={axis:g,getMinSeparation:"number"==typeof C?function(){return C}:C},this},u.prototype.links=function(g){return arguments.length?(this._links=g,this):this._links},u.prototype.constraints=function(g){return arguments.length?(this._constraints=g,this):this._constraints},u.prototype.distanceMatrix=function(g){return arguments.length?(this._distanceMatrix=g,this):this._distanceMatrix},u.prototype.size=function(g){return g?(this._canvasSize=g,this):this._canvasSize},u.prototype.defaultNodeSize=function(g){return g?(this._defaultNodeSize=g,this):this._defaultNodeSize},u.prototype.groupCompactness=function(g){return g?(this._groupCompactness=g,this):this._groupCompactness},u.prototype.linkDistance=function(g){return g?(this._linkDistance="function"==typeof g?g:+g,this._linkLengthCalculator=null,this):this._linkDistance},u.prototype.linkType=function(g){return this._linkType=g,this},u.prototype.convergenceThreshold=function(g){return g?(this._threshold="function"==typeof g?g:+g,this):this._threshold},u.prototype.alpha=function(g){return arguments.length?(g=+g,this._alpha?this._alpha=g>0?g:0:g>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=g}),this.kick())),this):this._alpha},u.prototype.getLinkLength=function(g){return"function"==typeof this._linkDistance?+this._linkDistance(g):this._linkDistance},u.setLinkLength=function(g,C){g.length=C},u.prototype.getLinkType=function(g){return"function"==typeof this._linkType?this._linkType(g):0},u.prototype.symmetricDiffLinkLengths=function(g,C){var L=this;return void 0===C&&(C=1),this.linkDistance(function(I){return g*I.length}),this._linkLengthCalculator=function(){return x.symmetricDiffLinkLengths(L._links,L.linkAccessor,C)},this},u.prototype.jaccardLinkLengths=function(g,C){var L=this;return void 0===C&&(C=1),this.linkDistance(function(I){return g*I.length}),this._linkLengthCalculator=function(){return x.jaccardLinkLengths(L._links,L.linkAccessor,C)},this},u.prototype.start=function(g,C,L,I,B,M){var R=this;void 0===g&&(g=0),void 0===C&&(C=0),void 0===L&&(L=0),void 0===I&&(I=0),void 0===B&&(B=!0),void 0===M&&(M=!0);var nt,G=this.nodes().length,tt=G+2*this._groups.length,st=this._canvasSize[0],j=this._canvasSize[1],W=new Array(tt),et=new Array(tt),at=null,Y=this._avoidOverlaps;this._nodes.forEach(function(Dt,St){Dt.index=St,typeof Dt.x>"u"&&(Dt.x=st/2,Dt.y=j/2),W[St]=Dt.x,et[St]=Dt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?nt=this._distanceMatrix:(nt=new p.Calculator(tt,this._links,u.getSourceIndex,u.getTargetIndex,function(Dt){return R.getLinkLength(Dt)}).DistanceMatrix(),at=_.Descent.createSquareMatrix(tt,function(){return 2}),this._links.forEach(function(Dt){"number"==typeof Dt.source&&(Dt.source=R._nodes[Dt.source]),"number"==typeof Dt.target&&(Dt.target=R._nodes[Dt.target])}),this._links.forEach(function(Dt){var St=u.getSourceIndex(Dt),Qt=u.getTargetIndex(Dt);at[St][Qt]=at[Qt][St]=Dt.weight||1}));var rt=_.Descent.createSquareMatrix(tt,function(Dt,St){return nt[Dt][St]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Z=G;this._groups.forEach(function(St){(function(St,Qt,pe,wt){at[St][Qt]=at[Qt][St]=pe,rt[St][Qt]=rt[Qt][St]=.1})(Z,Z+1,R._groupCompactness),W[Z]=0,et[Z++]=0,W[Z]=0,et[Z++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var F=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,F=F.concat(x.generateDirectedEdgeConstraints(G,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new _.Descent([W,et],rt),this._descent.locks.clear(),Z=0;Z0&&(this._descent.project=new m.Projection(this._nodes,this._groups,this._rootGroup,F).projectFunctions()),this._descent.run(C),this.separateOverlappingComponents(st,j,M),this.avoidOverlaps(Y),Y&&(this._nodes.forEach(function(Dt,St){Dt.x=W[St],Dt.y=et[St]}),this._descent.project=new m.Projection(this._nodes,this._groups,this._rootGroup,F,!0).projectFunctions(),this._nodes.forEach(function(Dt,St){W[St]=Dt.x,et[St]=Dt.y})),this._descent.G=at,this._descent.run(L),I){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=G,this._descent.scaleSnapByMaxH=G!=tt;var ft=_.Descent.createSquareMatrix(tt,function(Dt,St){return Dt>=G||St>=G?at[Dt][St]:0});this._descent.G=ft,this._descent.run(I)}return this.updateNodePositions(),this.separateOverlappingComponents(st,j,M),B?this.resume():this},u.prototype.initialLayout=function(g,C,L){if(this._groups.length>0&&g>0){var I=this._nodes.length,B=this._links.map(function(R){return{source:R.source.index,target:R.target.index}}),M=this._nodes.map(function(R){return{index:R.index}});this._groups.forEach(function(R,Z){M.push({index:R.index=I+Z})}),this._groups.forEach(function(R,Z){typeof R.leaves<"u"&&R.leaves.forEach(function(H){return B.push({source:R.index,target:H.index})}),typeof R.groups<"u"&&R.groups.forEach(function(H){return B.push({source:R.index,target:H.index})})}),(new u).size(this.size()).nodes(M).links(B).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(g,0,0,0,!1),this._nodes.forEach(function(R){C[R.index]=M[R.index].x,L[R.index]=M[R.index].y})}else this._descent.run(g)},u.prototype.separateOverlappingComponents=function(g,C,L){var I=this;if(void 0===L&&(L=!0),!this._distanceMatrix&&this._handleDisconnected){var B=this._descent.x[0],M=this._descent.x[1];this._nodes.forEach(function(Z,H){Z.x=B[H],Z.y=M[H]});var R=d.separateGraphs(this._nodes,this._links);d.applyPacking(R,g,C,this._defaultNodeSize,1,L),this._nodes.forEach(function(Z,H){I._descent.x[0][H]=Z.x,I._descent.x[1][H]=Z.y,Z.bounds&&(Z.bounds.setXCentre(Z.x),Z.bounds.setYCentre(Z.y))})}},u.prototype.resume=function(){return this.alpha(.1)},u.prototype.stop=function(){return this.alpha(0)},u.prototype.prepareEdgeRouting=function(g){void 0===g&&(g=0),this._visibilityGraph=new t.TangentVisibilityGraph(this._nodes.map(function(C){return C.bounds.inflate(-g).vertices()}))},u.prototype.routeEdge=function(g,C,L){void 0===C&&(C=5);var I=[],B=new t.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),M={x:g.source.x,y:g.source.y},R={x:g.target.x,y:g.target.y},Z=B.addPoint(M,g.source.index),H=B.addPoint(R,g.target.index);B.addEdgeIfVisible(M,R,g.source.index,g.target.index),typeof L<"u"&&L(B);var j=new p.Calculator(B.V.length,B.E,function(rt){return rt.source.id},function(rt){return rt.target.id},function(rt){return rt.length()}).PathFromNodeToNode(Z.id,H.id);if(1===j.length||j.length===B.V.length){var W=m.makeEdgeBetween(g.source.innerBounds,g.target.innerBounds,C);I=[W.sourceIntersection,W.arrowStart]}else{for(var et=j.length-2,at=B.V[j[et]].p,Y=B.V[j[0]].p,nt=(I=[g.source.innerBounds.rayIntersection(at.x,at.y)],et);nt>=0;--nt)I.push(B.V[j[nt]].p);I.push(m.makeEdgeTo(Y,g.target.innerBounds,C))}return I},u.getSourceIndex=function(g){return"number"==typeof g.source?g.source:g.source.index},u.getTargetIndex=function(g){return"number"==typeof g.target?g.target:g.target.index},u.linkId=function(g){return u.getSourceIndex(g)+"-"+u.getTargetIndex(g)},u.dragStart=function(g){h(g)?u.storeOffset(g,u.dragOrigin(g)):(u.stopNode(g),g.fixed|=2)},u.stopNode=function(g){g.px=g.x,g.py=g.y},u.storeOffset=function(g,C){typeof g.leaves<"u"&&g.leaves.forEach(function(L){L.fixed|=2,u.stopNode(L),L._dragGroupOffsetX=L.x-C.x,L._dragGroupOffsetY=L.y-C.y}),typeof g.groups<"u"&&g.groups.forEach(function(L){return u.storeOffset(L,C)})},u.dragOrigin=function(g){return h(g)?{x:g.bounds.cx(),y:g.bounds.cy()}:g},u.drag=function(g,C){h(g)?(typeof g.leaves<"u"&&g.leaves.forEach(function(L){g.bounds.setXCentre(C.x),g.bounds.setYCentre(C.y),L.px=L._dragGroupOffsetX+C.x,L.py=L._dragGroupOffsetY+C.y}),typeof g.groups<"u"&&g.groups.forEach(function(L){return u.drag(L,C)})):(g.px=C.x,g.py=C.y)},u.dragEnd=function(g){h(g)?(typeof g.leaves<"u"&&g.leaves.forEach(function(C){u.dragEnd(C),delete C._dragGroupOffsetX,delete C._dragGroupOffsetY}),typeof g.groups<"u"&&g.groups.forEach(u.dragEnd)):g.fixed&=-7},u.mouseOver=function(g){g.fixed|=4,g.px=g.x,g.py=g.y},u.mouseOut=function(g){g.fixed&=-5},u}();D.Layout=f},86461:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(33858),x=s(91786),_=s(4068),m=s(58802),p=function(){function h(f,u){this.source=f,this.target=u}return h.prototype.actualLength=function(f){var u=this;return Math.sqrt(f.reduce(function(g,C){var L=C[u.target]-C[u.source];return g+L*L},0))},h}();D.Link3D=p,D.Node3D=function h(f,u,g){void 0===f&&(f=0),void 0===u&&(u=0),void 0===g&&(g=0),this.x=f,this.y=u,this.z=g};var d=function(){function h(f,u,g){var C=this;void 0===g&&(g=1),this.nodes=f,this.links=u,this.idealLinkLength=g,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(h.k);for(var L=0;L"u"&&(I[Z]=Math.random())}C.result[0][B]=I.x,C.result[1][B]=I.y,C.result[2][B]=I.z})}return h.prototype.linkLength=function(f){return f.actualLength(this.result)},h.prototype.start=function(f){var u=this;void 0===f&&(f=100);var g=this.nodes.length,C=new l;this.useJaccardLinkLengths&&m.jaccardLinkLengths(this.links,C,1.5),this.links.forEach(function(Z){return Z.length*=u.idealLinkLength});var L=new c.Calculator(g,this.links,function(Z){return Z.source},function(Z){return Z.target},function(Z){return Z.length}).DistanceMatrix(),I=x.Descent.createSquareMatrix(g,function(Z,H){return L[Z][H]}),B=x.Descent.createSquareMatrix(g,function(){return 2});this.links.forEach(function(Z){var H=Z.source,G=Z.target;return B[H][G]=B[G][H]=1}),this.descent=new x.Descent(this.result,I),this.descent.threshold=.001,this.descent.G=B,this.constraints&&(this.descent.project=new _.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var M=0;M{"use strict";function s(l,h){var f={};for(var u in l)f[u]={};for(var u in h)f[u]={};return Object.keys(f).length}function c(l,h){var f=0;for(var u in l)typeof h[u]<"u"&&++f;return f}function _(l,h,f,u){var g=function x(l,h){var f={},u=function(g,C){typeof f[g]>"u"&&(f[g]={}),f[g][C]={}};return l.forEach(function(g){var C=h.getSourceIndex(g),L=h.getTargetIndex(g);u(C,L),u(L,C)}),f}(l,u);l.forEach(function(C){var L=g[u.getSourceIndex(C)],I=g[u.getTargetIndex(C)];u.setLength(C,1+h*f(L,I))})}function d(l,h,f){var u=[],g=0,C=[],L=[];function I(j){j.index=j.lowlink=g++,C.push(j),j.onStack=!0;for(var W=0,et=j.out;W"u"?(I(at),j.lowlink=Math.min(j.lowlink,at.lowlink)):at.onStack&&(j.lowlink=Math.min(j.lowlink,at.index))}if(j.lowlink===j.index){for(var Y=[];C.length&&((at=C.pop()).onStack=!1,Y.push(at),at!==j););L.push(Y.map(function(nt){return nt.id}))}}for(var B=0;B"u"&&I(st)}return L}Object.defineProperty(D,"__esModule",{value:!0}),D.symmetricDiffLinkLengths=function m(l,h,f){void 0===f&&(f=1),_(l,f,function(u,g){return Math.sqrt(s(u,g)-c(u,g))},h)},D.jaccardLinkLengths=function p(l,h,f){void 0===f&&(f=1),_(l,f,function(u,g){return Math.min(Object.keys(u).length,Object.keys(g).length)<1.1?0:c(u,g)/s(u,g)},h)},D.generateDirectedEdgeConstraints=function t(l,h,f,u){var g=d(l,h,u),C={};g.forEach(function(I,B){return I.forEach(function(M){return C[M]=B})});var L=[];return h.forEach(function(I){var B=u.getSourceIndex(I),M=u.getTargetIndex(I);C[B]!==C[M]&&L.push({axis:f,left:B,right:M,gap:u.getMinSeparation(I)})}),L},D.stronglyConnectedComponents=d},33900:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function h(f,u,g){this.source=f,this.target=u,this.type=g};D.PowerEdge=s;var c=function(){function h(f,u,g,C){var L=this;if(this.linkAccessor=g,this.modules=new Array(f),this.roots=[],C)this.initModulesFromGroup(C);else{this.roots.push(new p);for(var I=0;I=this.R))return this.merge(g.a,g.b,f),!0}},h.prototype.nEdges=function(f,u){var g=f.incoming.intersection(u.incoming),C=f.outgoing.intersection(u.outgoing);return this.R-g.count()-C.count()},h.prototype.getGroupHierarchy=function(f){var u=this,g=[];return x(this.roots[0],{},g),this.allEdges().forEach(function(I){var B=u.modules[I.source],M=u.modules[I.target];f.push(new s(typeof B.gid>"u"?I.source:g[B.gid],typeof M.gid>"u"?I.target:g[M.gid],I.type))}),g},h.prototype.allEdges=function(){var f=[];return h.getEdges(this.roots[0],f),f},h.getEdges=function(f,u){f.forAll(function(g){g.getEdges(u),h.getEdges(g.children,u)})},h}();function x(h,f,u){h.forAll(function(g){if(g.isLeaf())f.leaves||(f.leaves=[]),f.leaves.push(g.id);else{var C=f;if(g.gid=u.length,!g.isIsland()||g.isPredefined()){if(C={id:g.gid},g.isPredefined())for(var L in g.definition)C[L]=g.definition[L];f.groups||(f.groups=[]),f.groups.push(g.gid),u.push(C)}x(g.children,C,u)}})}D.Configuration=c;var _=function(){function h(f,u,g,C,L){void 0===u&&(u=new t),void 0===g&&(g=new t),void 0===C&&(C=new p),this.id=f,this.outgoing=u,this.incoming=g,this.children=C,this.definition=L}return h.prototype.getEdges=function(f){var u=this;this.outgoing.forAll(function(g,C){g.forAll(function(L){f.push(new s(u.id,L.id,C))})})},h.prototype.isLeaf=function(){return 0===this.children.count()},h.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},h.prototype.isPredefined=function(){return typeof this.definition<"u"},h}();D.Module=_;var p=function(){function h(){this.table={}}return h.prototype.count=function(){return Object.keys(this.table).length},h.prototype.intersection=function(f){var u=new h;return u.table=function m(h,f){var u={};for(var g in h)g in f&&(u[g]=h[g]);return u}(this.table,f.table),u},h.prototype.intersectionCount=function(f){return this.intersection(f).count()},h.prototype.contains=function(f){return f in this.table},h.prototype.add=function(f){this.table[f.id]=f},h.prototype.remove=function(f){delete this.table[f.id]},h.prototype.forAll=function(f){for(var u in this.table)f(this.table[u])},h.prototype.modules=function(){var f=[];return this.forAll(function(u){u.isPredefined()||f.push(u)}),f},h}();D.ModuleSet=p;var t=function(){function h(){this.sets={},this.n=0}return h.prototype.count=function(){return this.n},h.prototype.contains=function(f){var u=!1;return this.forAllModules(function(g){!u&&g.id==f&&(u=!0)}),u},h.prototype.add=function(f,u){(f in this.sets?this.sets[f]:this.sets[f]=new p).add(u),++this.n},h.prototype.remove=function(f,u){var g=this.sets[f];g.remove(u),0===g.count()&&delete this.sets[f],--this.n},h.prototype.forAll=function(f){for(var u in this.sets)f(this.sets[u],Number(u))},h.prototype.forAllModules=function(f){this.forAll(function(u,g){return u.forAll(f)})},h.prototype.intersection=function(f){var u=new h;return this.forAll(function(g,C){if(C in f.sets){var L=g.intersection(f.sets[C]),I=L.count();I>0&&(u.sets[C]=L,u.n+=I)}}),u},h}();D.LinkSets=t,D.getGroups=function l(h,f,u,g){for(var L=new c(h.length,f,u,g);L.greedyMerge(););var I=[],B=L.getGroupHierarchy(I);return I.forEach(function(M){var R=function(Z){var H=M[Z];"number"==typeof H&&(M[Z]=h[H])};R("source"),R("target")}),{groups:B,powerEdges:I}}},88866:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function(){function x(_){this.elem=_,this.subheaps=[]}return x.prototype.toString=function(_){for(var m="",p=!1,t=0;t0)}return null}}return p.prototype.clear=function(){this._root=null,this.size=0},p.prototype.find=function(t){for(var d=this._root;null!==d;){var l=this._comparator(t,d.data);if(0===l)return d.data;d=d.get_child(l>0)}return null},p.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},p.prototype.upperBound=function(t){var d=this._comparator;return this._bound(t,function l(h,f){return d(f,h)})},p.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},p.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},p.prototype.iterator=function(){return new x(this)},p.prototype.each=function(t){for(var l,d=this.iterator();null!==(l=d.next());)t(l)},p.prototype.reach=function(t){for(var l,d=this.iterator();null!==(l=d.prev());)t(l)},p.prototype._bound=function(t,d){for(var l=this._root,h=this.iterator();null!==l;){var f=this._comparator(t,l.data);if(0===f)return h._cursor=l,h;h._ancestors.push(l),l=l.get_child(f>0)}for(var u=h._ancestors.length-1;u>=0;--u)if(d(t,(l=h._ancestors[u]).data)>0)return h._cursor=l,h._ancestors.length=u,h;return h._ancestors.length=0,h},p}();D.TreeBase=c;var x=function(){function p(t){this._tree=t,this._ancestors=[],this._cursor=null}return p.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},p.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else if(null===this._cursor.right){var d;do{if(d=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===d)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},p.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else if(null===this._cursor.left){var d;do{if(d=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===d)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},p.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},p.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},p}();D.Iterator=x;var _=function(){function p(t){this.data=t,this.left=null,this.right=null,this.red=!0}return p.prototype.get_child=function(t){return t?this.right:this.left},p.prototype.set_child=function(t,d){t?this.right=d:this.left=d},p}(),m=function(p){function t(d){var l=p.call(this)||this;return l._root=null,l._comparator=d,l.size=0,l}return s(t,p),t.prototype.insert=function(d){var l=!1;if(null===this._root)this._root=new _(d),l=!0,this.size++;else{var h=new _(void 0),f=!1,u=!1,g=null,C=h,L=null,I=this._root;for(C.right=this._root;;){if(null===I?(I=new _(d),L.set_child(f,I),l=!0,this.size++):t.is_red(I.left)&&t.is_red(I.right)&&(I.red=!0,I.left.red=!1,I.right.red=!1),t.is_red(I)&&t.is_red(L)){var B=C.right===g;I===L.get_child(u)?C.set_child(B,t.single_rotate(g,!u)):C.set_child(B,t.double_rotate(g,!u))}var M=this._comparator(I.data,d);if(0===M)break;u=f,null!==g&&(C=g),g=L,L=I,I=I.get_child(f=M<0)}this._root=h.right}return this._root.red=!1,l},t.prototype.remove=function(d){if(null===this._root)return!1;var l=new _(void 0),h=l;h.right=this._root;for(var f=null,u=null,g=null,C=!0;null!==h.get_child(C);){var L=C;u=f,f=h,h=h.get_child(C);var I=this._comparator(d,h.data);if(C=I>0,0===I&&(g=h),!t.is_red(h)&&!t.is_red(h.get_child(C)))if(t.is_red(h.get_child(!C))){var B=t.single_rotate(h,C);f.set_child(L,B),f=B}else if(!t.is_red(h.get_child(!C))){var M=f.get_child(!L);if(null!==M)if(t.is_red(M.get_child(!L))||t.is_red(M.get_child(L))){var R=u.right===f;t.is_red(M.get_child(L))?u.set_child(R,t.double_rotate(f,L)):t.is_red(M.get_child(!L))&&u.set_child(R,t.single_rotate(f,L));var Z=u.get_child(R);Z.red=!0,h.red=!0,Z.left.red=!1,Z.right.red=!1}else f.red=!1,M.red=!0,h.red=!0}}return null!==g&&(g.data=h.data,f.set_child(f.right===h,h.get_child(null===h.left)),this.size--),this._root=l.right,null!==this._root&&(this._root.red=!1),null!==g},t.is_red=function(d){return null!==d&&d.red},t.single_rotate=function(d,l){var h=d.get_child(!l);return d.set_child(!l,h.get_child(l)),h.set_child(l,d),d.red=!0,h.red=!1,h},t.double_rotate=function(d,l){return d.set_child(!l,t.single_rotate(d.get_child(!l),!l)),t.single_rotate(d,l)},t}(c);D.RBTree=m},4068:function(w,D,s){"use strict";var j,c=this&&this.__extends||(j=function(W,et){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Y){at.__proto__=Y}||function(at,Y){for(var nt in Y)Y.hasOwnProperty(nt)&&(at[nt]=Y[nt])})(W,et)},function(W,et){function at(){this.constructor=W}j(W,et),W.prototype=null===et?Object.create(et):(at.prototype=et.prototype,new at)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(98237),_=s(94655);function m(j){return j.bounds=typeof j.leaves<"u"?j.leaves.reduce(function(W,et){return et.bounds.union(W)},p.empty()):p.empty(),typeof j.groups<"u"&&(j.bounds=j.groups.reduce(function(W,et){return m(et).union(W)},j.bounds)),j.bounds=j.bounds.inflate(j.padding),j.bounds}D.computeGroupBounds=m;var p=function(){function j(W,et,at,Y){this.x=W,this.X=et,this.y=at,this.Y=Y}return j.empty=function(){return new j(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},j.prototype.cx=function(){return(this.x+this.X)/2},j.prototype.cy=function(){return(this.y+this.Y)/2},j.prototype.overlapX=function(W){var et=this.cx(),at=W.cx();return et<=at&&W.x0?at[0]:null},j.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},j.lineIntersection=function(W,et,at,Y,nt,rt,q,F){var E=at-W,ut=q-nt,ft=Y-et,Dt=F-rt,St=Dt*E-ut*ft;if(0==St)return null;var Qt=W-nt,pe=et-rt,yt=(ut*pe-Dt*Qt)/St,zt=(E*pe-ft*Qt)/St;return yt>=0&&yt<=1&&zt>=0&&zt<=1?{x:W+yt*E,y:et+yt*ft}:null},j.prototype.inflate=function(W){return new j(this.x-W,this.X+W,this.y-W,this.Y+W)},j}();D.Rectangle=p,D.makeEdgeBetween=function t(j,W,et){var at=j.rayIntersection(W.cx(),W.cy())||{x:j.cx(),y:j.cy()},Y=W.rayIntersection(j.cx(),j.cy())||{x:W.cx(),y:W.cy()},nt=Y.x-at.x,rt=Y.y-at.y,q=Math.sqrt(nt*nt+rt*rt),F=q-et;return{sourceIntersection:at,targetIntersection:Y,arrowStart:{x:at.x+F*nt/q,y:at.y+F*rt/q}}},D.makeEdgeTo=function d(j,W,et){var at=W.rayIntersection(j.x,j.y);at||(at={x:W.cx(),y:W.cy()});var Y=at.x-j.x,nt=at.y-j.y,rt=Math.sqrt(Y*Y+nt*nt);return{x:at.x-et*Y/rt,y:at.y-et*nt/rt}};var l=function j(W,et,at){this.v=W,this.r=et,this.pos=at,this.prev=u(),this.next=u()},h=function j(W,et,at){this.isOpen=W,this.v=et,this.pos=at};function f(j,W){return j.pos>W.pos?1:j.pos0&&(j[at].insert(nt),nt[Y].insert(j))};et("next","prev"),et("prev","next")}};function L(j,W,et,at){void 0===at&&(at=!1);var Y=j.padding,nt=typeof j.groups<"u"?j.groups.length:0,rt=typeof j.leaves<"u"?j.leaves.length:0,q=nt?j.groups.reduce(function(ie,Ot){return ie.concat(L(Ot,W,et,!0))},[]):[],F=(at?2:0)+rt+nt,E=new Array(F),ut=new Array(F),ft=0,Dt=function(ie,Ot){ut[ft]=ie,E[ft++]=Ot};if(at){var St=j.bounds,Qt=W.getCentre(St),pe=W.getSize(St)/2,wt=W.getOpen(St),yt=W.getClose(St),Nt=Qt-pe+Y/2,zt=Qt+pe-Y/2;j.minVar.desiredPosition=Nt,Dt(W.makeRect(wt,yt,Nt,Y),j.minVar),j.maxVar.desiredPosition=zt,Dt(W.makeRect(wt,yt,zt,Y),j.maxVar)}rt&&j.leaves.forEach(function(ie){return Dt(ie.bounds,ie.variable)}),nt&&j.groups.forEach(function(ie){var Ot=ie.bounds;Dt(W.makeRect(W.getOpen(Ot),W.getClose(Ot),W.getCentre(Ot),W.getSize(Ot)),ie.minVar)});var de=I(ut,E,W,et);return nt&&(E.forEach(function(ie){ie.cOut=[],ie.cIn=[]}),de.forEach(function(ie){ie.left.cOut.push(ie),ie.right.cIn.push(ie)}),j.groups.forEach(function(ie){var Ot=(ie.padding-W.getSize(ie.bounds))/2;ie.minVar.cIn.forEach(function(te){return te.gap+=Ot}),ie.minVar.cOut.forEach(function(te){te.left=ie.maxVar,te.gap+=Ot})})),q.concat(de)}function I(j,W,et,at){var Y,nt=j.length,rt=2*nt;console.assert(W.length>=nt);var q=new Array(rt);for(Y=0;Yq[at]&&(q[at]=F)}rt=q})}},j.prototype.createAlignment=function(W){var et=this,at=this.nodes[W.offsets[0].node].variable;this.makeFeasible(W);var Y="x"===W.axis?this.xConstraints:this.yConstraints;W.offsets.slice(1).forEach(function(nt){Y.push(new x.Constraint(at,et.nodes[nt.node].variable,nt.offset,!0))})},j.prototype.createConstraints=function(W){var et=this,at=function(Y){return typeof Y.type>"u"||"separation"===Y.type};this.xConstraints=W.filter(function(Y){return"x"===Y.axis&&at(Y)}).map(function(Y){return et.createSeparation(Y)}),this.yConstraints=W.filter(function(Y){return"y"===Y.axis&&at(Y)}).map(function(Y){return et.createSeparation(Y)}),W.filter(function(Y){return"alignment"===Y.type}).forEach(function(Y){return et.createAlignment(Y)})},j.prototype.setupVariablesAndBounds=function(W,et,at,Y){this.nodes.forEach(function(nt,rt){nt.fixed?(nt.variable.weight=nt.fixedWeight?nt.fixedWeight:1e3,at[rt]=Y(nt)):nt.variable.weight=1;var q=(nt.width||0)/2,F=(nt.height||0)/2,E=W[rt],ut=et[rt];nt.bounds=new p(E-q,E+q,ut-F,ut+F)})},j.prototype.xProject=function(W,et,at){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(W,et,W,at,function(Y){return Y.px},this.xConstraints,H,function(Y){return Y.bounds.setXCentre(at[Y.variable.index]=Y.variable.position())},function(Y){var nt=at[Y.minVar.index]=Y.minVar.position(),rt=at[Y.maxVar.index]=Y.maxVar.position(),q=Y.padding/2;Y.bounds.x=nt-q,Y.bounds.X=rt+q})},j.prototype.yProject=function(W,et,at){!this.rootGroup&&!this.yConstraints||this.project(W,et,et,at,function(Y){return Y.py},this.yConstraints,G,function(Y){return Y.bounds.setYCentre(at[Y.variable.index]=Y.variable.position())},function(Y){var nt=at[Y.minVar.index]=Y.minVar.position(),rt=at[Y.maxVar.index]=Y.maxVar.position(),q=Y.padding/2;Y.bounds.y=nt-q,Y.bounds.Y=rt+q})},j.prototype.projectFunctions=function(){var W=this;return[function(et,at,Y){return W.xProject(et,at,Y)},function(et,at,Y){return W.yProject(et,at,Y)}]},j.prototype.project=function(W,et,at,Y,nt,rt,q,F,E){this.setupVariablesAndBounds(W,et,Y,nt),this.rootGroup&&this.avoidOverlaps&&(m(this.rootGroup),rt=rt.concat(q(this.rootGroup))),this.solve(this.variables,rt,at,Y),this.nodes.forEach(F),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(E),m(this.rootGroup))},j.prototype.solve=function(W,et,at,Y){var nt=new x.Solver(W,et);nt.setStartingPositions(at),nt.setDesiredPositions(Y),nt.solve()},j}();D.Projection=st},33858:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(88866),x=function t(d,l){this.id=d,this.distance=l},_=function t(d){this.id=d,this.neighbours=[]},m=function t(d,l,h){this.node=d,this.prev=l,this.d=h},p=function(){function t(d,l,h,f,u){this.n=d,this.es=l,this.neighbours=new Array(this.n);for(var g=this.n;g--;)this.neighbours[g]=new _(g);for(g=this.es.length;g--;){var C=this.es[g],L=h(C),I=f(C),B=u(C);this.neighbours[L].neighbours.push(new x(I,B)),this.neighbours[I].neighbours.push(new x(L,B))}}return t.prototype.DistanceMatrix=function(){for(var d=new Array(this.n),l=0;lM&&(I.d=M,I.prev=C,h.reduceKey(I.q,I,function(Z,H){return Z.q=H}))}}return u},t}();D.Calculator=p},98237:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function(){function d(l){this.scale=l,this.AB=0,this.AD=0,this.A2=0}return d.prototype.addVariable=function(l){var h=this.scale/l.scale,u=l.weight;this.AB+=u*h*(l.offset/l.scale),this.AD+=u*h*l.desiredPosition,this.A2+=u*h*h},d.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},d}();D.PositionStats=s;var c=function(){function d(l,h,f,u){void 0===u&&(u=!1),this.left=l,this.right=h,this.gap=f,this.equality=u,this.active=!1,this.unsatisfiable=!1,this.left=l,this.right=h,this.gap=f,this.equality=u}return d.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},d}();D.Constraint=c;var x=function(){function d(l,h,f){void 0===h&&(h=1),void 0===f&&(f=1),this.desiredPosition=l,this.weight=h,this.scale=f,this.offset=0}return d.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},d.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},d.prototype.visitNeighbours=function(l,h){var f=function(u,g){return u.active&&l!==g&&h(u,g)};this.cOut.forEach(function(u){return f(u,u.right)}),this.cIn.forEach(function(u){return f(u,u.left)})},d}();D.Variable=x;var _=function(){function d(l){this.vars=[],l.offset=0,this.ps=new s(l.scale),this.addVariable(l)}return d.prototype.addVariable=function(l){l.block=this,this.vars.push(l),this.ps.addVariable(l),this.posn=this.ps.getPosn()},d.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var l=0,h=this.vars.length;l=0?this.inactive.push(l):this.bs.merge(l)}}},d.prototype.solve=function(){this.satisfy();for(var l=Number.MAX_VALUE,h=this.bs.cost();Math.abs(l-h)>1e-4;)this.satisfy(),l=h,h=this.bs.cost();return h},d.LAGRANGIAN_TOLERANCE=-1e-4,d.ZERO_UPPERBOUND=-1e-10,d}();D.Solver=p,D.removeOverlapInOneDimension=function t(d,l,h){for(var f=d.map(function(K){return new x(K.desiredCenter)}),u=[],g=d.length,C=0;C=it);)++ht;if(ht-k>16&&b.subarray&&Ht)return Ht.decode(b.subarray(k,ht));for(var xt="";k>10,56320|1023&Ae)}}else xt+=String.fromCharCode((31&Mt)<<6|Bt)}else xt+=String.fromCharCode(Mt)}return xt}function Kt(b,k){return b?Zt(an,b,k):""}function xe(b,k,V,it){if(!(it>0))return 0;for(var ht=V,xt=V+it-1,Mt=0;Mt=55296&&Bt<=57343&&(Bt=65536+((1023&Bt)<<10)|1023&b.charCodeAt(++Mt)),Bt<=127){if(V>=xt)break;k[V++]=Bt}else if(Bt<=2047){if(V+1>=xt)break;k[V++]=192|Bt>>6,k[V++]=128|63&Bt}else if(Bt<=65535){if(V+2>=xt)break;k[V++]=224|Bt>>12,k[V++]=128|Bt>>6&63,k[V++]=128|63&Bt}else{if(V+3>=xt)break;k[V++]=240|Bt>>18,k[V++]=128|Bt>>12&63,k[V++]=128|Bt>>6&63,k[V++]=128|63&Bt}}return k[V]=0,V-ht}function Le(b){for(var k=0,V=0;V=55296&&it<=57343&&(it=65536+((1023&it)<<10)|1023&b.charCodeAt(++V)),it<=127?++k:k+=it<=2047?2:it<=65535?3:4}return k}function Ee(b,k){return b%k>0&&(b+=k-b%k),b}function Tt(b){He=b,E.HEAP8=Ge=new Int8Array(b),E.HEAP16=new Int16Array(b),E.HEAP32=be=new Int32Array(b),E.HEAPU8=an=new Uint8Array(b),E.HEAPU16=new Uint16Array(b),E.HEAPU32=new Uint32Array(b),E.HEAPF32=new Float32Array(b),E.HEAPF64=ln=new Float64Array(b)}var Wt,ce=[],_e=[],ee=[];var gi=0,Si=null;function Fi(b){gi++,E.monitorRunDependencies&&E.monitorRunDependencies(gi)}function Ni(b){if(gi--,E.monitorRunDependencies&&E.monitorRunDependencies(gi),0==gi&&Si){var k=Si;Si=null,k()}}function _i(b){E.onAbort&&E.onAbort(b),Ot(b="Aborted("+b+")"),se=!0,b+=". Build with -s ASSERTIONS=1 for more info.";var k=new WebAssembly.RuntimeError(b);throw ft(k),k}E.preloadedImages={},E.preloadedAudios={};var fe;function Ri(b){return b.startsWith("data:application/octet-stream;base64,")}function Sn(b){try{if(b==fe&&te)return new Uint8Array(te);throw"both async and sync fetching of the wasm failed"}catch(k){_i(k)}}Ri(fe="expatlib.wasm")||(fe=function yt(b){return E.locateFile?E.locateFile(b,wt):wt+b}(fe));var gn,sn,zn={11694:function(b){var k=E.getCache(E.CExpatJS)[b];if(!k.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";k.startElement()},11912:function(b){var k=E.getCache(E.CExpatJS)[b];if(!k.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";k.endElement()},12124:function(b){var k=E.getCache(E.CExpatJS)[b];if(!k.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";k.characterData()}};function li(b){for(;b.length>0;){var k=b.shift();if("function"!=typeof k){var V=k.func;"number"==typeof V?void 0===k.arg?Ln(V)():Ln(V)(k.arg):V(void 0===k.arg?null:k.arg)}else k(E)}}function Ln(b){return Wt.get(b)}var we={splitPath:function(b){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(b).slice(1)},normalizeArray:function(b,k){for(var V=0,it=b.length-1;it>=0;it--){var ht=b[it];"."===ht?b.splice(it,1):".."===ht?(b.splice(it,1),V++):V&&(b.splice(it,1),V--)}if(k)for(;V;V--)b.unshift("..");return b},normalize:function(b){var k="/"===b.charAt(0),V="/"===b.substr(-1);return!(b=we.normalizeArray(b.split("/").filter(function(it){return!!it}),!k).join("/"))&&!k&&(b="."),b&&V&&(b+="/"),(k?"/":"")+b},dirname:function(b){var k=we.splitPath(b),V=k[0],it=k[1];return V||it?(it&&(it=it.substr(0,it.length-1)),V+it):"."},basename:function(b){if("/"===b)return"/";var k=(b=(b=we.normalize(b)).replace(/\/$/,"")).lastIndexOf("/");return-1===k?b:b.substr(k+1)},extname:function(b){return we.splitPath(b)[3]},join:function(){var b=Array.prototype.slice.call(arguments,0);return we.normalize(b.join("/"))},join2:function(b,k){return we.normalize(b+"/"+k)}};var Nn={resolve:function(){for(var b="",k=!1,V=arguments.length-1;V>=-1&&!k;V--){var it=V>=0?arguments[V]:A.cwd();if("string"!=typeof it)throw new TypeError("Arguments to path.resolve must be strings");if(!it)return"";b=it+"/"+b,k="/"===it.charAt(0)}return(k?"/":"")+(b=we.normalizeArray(b.split("/").filter(function(ht){return!!ht}),!k).join("/"))||"."},relative:function(b,k){function V(Ae){for(var We=0;We=0&&""===Ae[qe];qe--);return We>qe?[]:Ae.slice(We,qe-We+1)}b=Nn.resolve(b).substr(1),k=Nn.resolve(k).substr(1);for(var it=V(b.split("/")),ht=V(k.split("/")),xt=Math.min(it.length,ht.length),Mt=xt,Bt=0;Bt0&&(ie(Zt(b.output,0)),b.output=[])}},default_tty1_ops:{put_char:function(b,k){null===k||10===k?(Ot(Zt(b.output,0)),b.output=[]):0!=k&&b.output.push(k)},flush:function(b){b.output&&b.output.length>0&&(Ot(Zt(b.output,0)),b.output=[])}}};var X={ops_table:null,mount:function(b){return X.createNode(null,"/",16895,0)},createNode:function(b,k,V,it){if(A.isBlkdev(V)||A.isFIFO(V))throw new A.ErrnoError(63);X.ops_table||(X.ops_table={dir:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr,lookup:X.node_ops.lookup,mknod:X.node_ops.mknod,rename:X.node_ops.rename,unlink:X.node_ops.unlink,rmdir:X.node_ops.rmdir,readdir:X.node_ops.readdir,symlink:X.node_ops.symlink},stream:{llseek:X.stream_ops.llseek}},file:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr},stream:{llseek:X.stream_ops.llseek,read:X.stream_ops.read,write:X.stream_ops.write,allocate:X.stream_ops.allocate,mmap:X.stream_ops.mmap,msync:X.stream_ops.msync}},link:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr,readlink:X.node_ops.readlink},stream:{}},chrdev:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr},stream:A.chrdev_stream_ops}});var ht=A.createNode(b,k,V,it);return A.isDir(ht.mode)?(ht.node_ops=X.ops_table.dir.node,ht.stream_ops=X.ops_table.dir.stream,ht.contents={}):A.isFile(ht.mode)?(ht.node_ops=X.ops_table.file.node,ht.stream_ops=X.ops_table.file.stream,ht.usedBytes=0,ht.contents=null):A.isLink(ht.mode)?(ht.node_ops=X.ops_table.link.node,ht.stream_ops=X.ops_table.link.stream):A.isChrdev(ht.mode)&&(ht.node_ops=X.ops_table.chrdev.node,ht.stream_ops=X.ops_table.chrdev.stream),ht.timestamp=Date.now(),b&&(b.contents[k]=ht,b.timestamp=ht.timestamp),ht},getFileDataAsTypedArray:function(b){return b.contents?b.contents.subarray?b.contents.subarray(0,b.usedBytes):new Uint8Array(b.contents):new Uint8Array(0)},expandFileStorage:function(b,k){var V=b.contents?b.contents.length:0;if(!(V>=k)){k=Math.max(k,V*(V<1048576?2:1.125)>>>0),0!=V&&(k=Math.max(k,256));var ht=b.contents;b.contents=new Uint8Array(k),b.usedBytes>0&&b.contents.set(ht.subarray(0,b.usedBytes),0)}},resizeFileStorage:function(b,k){if(b.usedBytes!=k)if(0==k)b.contents=null,b.usedBytes=0;else{var V=b.contents;b.contents=new Uint8Array(k),V&&b.contents.set(V.subarray(0,Math.min(k,b.usedBytes))),b.usedBytes=k}},node_ops:{getattr:function(b){var k={};return k.dev=A.isChrdev(b.mode)?b.id:1,k.ino=b.id,k.mode=b.mode,k.nlink=1,k.uid=0,k.gid=0,k.rdev=b.rdev,k.size=A.isDir(b.mode)?4096:A.isFile(b.mode)?b.usedBytes:A.isLink(b.mode)?b.link.length:0,k.atime=new Date(b.timestamp),k.mtime=new Date(b.timestamp),k.ctime=new Date(b.timestamp),k.blksize=4096,k.blocks=Math.ceil(k.size/k.blksize),k},setattr:function(b,k){void 0!==k.mode&&(b.mode=k.mode),void 0!==k.timestamp&&(b.timestamp=k.timestamp),void 0!==k.size&&X.resizeFileStorage(b,k.size)},lookup:function(b,k){throw A.genericErrors[44]},mknod:function(b,k,V,it){return X.createNode(b,k,V,it)},rename:function(b,k,V){if(A.isDir(b.mode)){var it;try{it=A.lookupNode(k,V)}catch{}if(it)for(var ht in it.contents)throw new A.ErrnoError(55)}delete b.parent.contents[b.name],b.parent.timestamp=Date.now(),b.name=V,k.contents[V]=b,k.timestamp=b.parent.timestamp,b.parent=k},unlink:function(b,k){delete b.contents[k],b.timestamp=Date.now()},rmdir:function(b,k){var V=A.lookupNode(b,k);for(var it in V.contents)throw new A.ErrnoError(55);delete b.contents[k],b.timestamp=Date.now()},readdir:function(b){var k=[".",".."];for(var V in b.contents)!b.contents.hasOwnProperty(V)||k.push(V);return k},symlink:function(b,k,V){var it=X.createNode(b,k,41471,0);return it.link=V,it},readlink:function(b){if(!A.isLink(b.mode))throw new A.ErrnoError(28);return b.link}},stream_ops:{read:function(b,k,V,it,ht){var xt=b.node.contents;if(ht>=b.node.usedBytes)return 0;var Mt=Math.min(b.node.usedBytes-ht,it);if(Mt>8&&xt.subarray)k.set(xt.subarray(ht,ht+Mt),V);else for(var Bt=0;Bt0||it+V8)throw new A.ErrnoError(32);for(var ht=we.normalizeArray(b.split("/").filter(function(Ie){return!!Ie}),!1),xt=A.root,Mt="/",Bt=0;Bt40)throw new A.ErrnoError(32)}}return{path:Mt,node:xt}},getPath:function(b){for(var k;;){if(A.isRoot(b)){var V=b.mount.mountpoint;return k?"/"!==V[V.length-1]?V+"/"+k:V+k:V}k=k?b.name+"/"+k:b.name,b=b.parent}},hashName:function(b,k){for(var V=0,it=0;it>>0)%A.nameTable.length},hashAddNode:function(b){var k=A.hashName(b.parent.id,b.name);b.name_next=A.nameTable[k],A.nameTable[k]=b},hashRemoveNode:function(b){var k=A.hashName(b.parent.id,b.name);if(A.nameTable[k]===b)A.nameTable[k]=b.name_next;else for(var V=A.nameTable[k];V;){if(V.name_next===b){V.name_next=b.name_next;break}V=V.name_next}},lookupNode:function(b,k){var V=A.mayLookup(b);if(V)throw new A.ErrnoError(V,b);for(var it=A.hashName(b.id,k),ht=A.nameTable[it];ht;ht=ht.name_next)if(ht.parent.id===b.id&&ht.name===k)return ht;return A.lookup(b,k)},createNode:function(b,k,V,it){var ht=new A.FSNode(b,k,V,it);return A.hashAddNode(ht),ht},destroyNode:function(b){A.hashRemoveNode(b)},isRoot:function(b){return b===b.parent},isMountpoint:function(b){return!!b.mounted},isFile:function(b){return 32768==(61440&b)},isDir:function(b){return 16384==(61440&b)},isLink:function(b){return 40960==(61440&b)},isChrdev:function(b){return 8192==(61440&b)},isBlkdev:function(b){return 24576==(61440&b)},isFIFO:function(b){return 4096==(61440&b)},isSocket:function(b){return 49152==(49152&b)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(b){var k=A.flagModes[b];if(typeof k>"u")throw new Error("Unknown file open mode: "+b);return k},flagsToPermissionString:function(b){var k=["r","w","rw"][3&b];return 512&b&&(k+="w"),k},nodePermissions:function(b,k){return A.ignorePermissions?0:k.includes("r")&&!(292&b.mode)||k.includes("w")&&!(146&b.mode)||k.includes("x")&&!(73&b.mode)?2:0},mayLookup:function(b){return A.nodePermissions(b,"x")||(b.node_ops.lookup?0:2)},mayCreate:function(b,k){try{return A.lookupNode(b,k),20}catch{}return A.nodePermissions(b,"wx")},mayDelete:function(b,k,V){var it;try{it=A.lookupNode(b,k)}catch(xt){return xt.errno}var ht=A.nodePermissions(b,"wx");if(ht)return ht;if(V){if(!A.isDir(it.mode))return 54;if(A.isRoot(it)||A.getPath(it)===A.cwd())return 10}else if(A.isDir(it.mode))return 31;return 0},mayOpen:function(b,k){return b?A.isLink(b.mode)?32:A.isDir(b.mode)&&("r"!==A.flagsToPermissionString(k)||512&k)?31:A.nodePermissions(b,A.flagsToPermissionString(k)):44},MAX_OPEN_FDS:4096,nextfd:function(b,k){k=k||A.MAX_OPEN_FDS;for(var V=b=b||0;V<=k;V++)if(!A.streams[V])return V;throw new A.ErrnoError(33)},getStream:function(b){return A.streams[b]},createStream:function(b,k,V){A.FSStream||(A.FSStream=function(){},A.FSStream.prototype={object:{get:function(){return this.node},set:function(Mt){this.node=Mt}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var it=new A.FSStream;for(var ht in b)it[ht]=b[ht];b=it;var xt=A.nextfd(k,V);return b.fd=xt,A.streams[xt]=b,b},closeStream:function(b){A.streams[b]=null},chrdev_stream_ops:{open:function(b){var k=A.getDevice(b.node.rdev);b.stream_ops=k.stream_ops,b.stream_ops.open&&b.stream_ops.open(b)},llseek:function(){throw new A.ErrnoError(70)}},major:function(b){return b>>8},minor:function(b){return 255&b},makedev:function(b,k){return b<<8|k},registerDevice:function(b,k){A.devices[b]={stream_ops:k}},getDevice:function(b){return A.devices[b]},getMounts:function(b){for(var k=[],V=[b];V.length;){var it=V.pop();k.push(it),V.push.apply(V,it.mounts)}return k},syncfs:function(b,k){"function"==typeof b&&(k=b,b=!1),A.syncFSRequests++,A.syncFSRequests>1&&Ot("warning: "+A.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var V=A.getMounts(A.root.mount),it=0;function ht(Mt){return A.syncFSRequests--,k(Mt)}function xt(Mt){if(Mt)return xt.errored?void 0:(xt.errored=!0,ht(Mt));++it>=V.length&&ht(null)}V.forEach(function(Mt){if(!Mt.type.syncfs)return xt(null);Mt.type.syncfs(Mt,b,xt)})},mount:function(b,k,V){var xt,it="/"===V,ht=!V;if(it&&A.root)throw new A.ErrnoError(10);if(!it&&!ht){var Mt=A.lookupPath(V,{follow_mount:!1});if(V=Mt.path,A.isMountpoint(xt=Mt.node))throw new A.ErrnoError(10);if(!A.isDir(xt.mode))throw new A.ErrnoError(54)}var Bt={type:b,opts:k,mountpoint:V,mounts:[]},ae=b.mount(Bt);return ae.mount=Bt,Bt.root=ae,it?A.root=ae:xt&&(xt.mounted=Bt,xt.mount&&xt.mount.mounts.push(Bt)),ae},unmount:function(b){var k=A.lookupPath(b,{follow_mount:!1});if(!A.isMountpoint(k.node))throw new A.ErrnoError(28);var V=k.node,it=V.mounted,ht=A.getMounts(it);Object.keys(A.nameTable).forEach(function(Mt){for(var Bt=A.nameTable[Mt];Bt;){var ae=Bt.name_next;ht.includes(Bt.mount)&&A.destroyNode(Bt),Bt=ae}}),V.mounted=null;var xt=V.mount.mounts.indexOf(it);V.mount.mounts.splice(xt,1)},lookup:function(b,k){return b.node_ops.lookup(b,k)},mknod:function(b,k,V){var ht=A.lookupPath(b,{parent:!0}).node,xt=we.basename(b);if(!xt||"."===xt||".."===xt)throw new A.ErrnoError(28);var Mt=A.mayCreate(ht,xt);if(Mt)throw new A.ErrnoError(Mt);if(!ht.node_ops.mknod)throw new A.ErrnoError(63);return ht.node_ops.mknod(ht,xt,k,V)},create:function(b,k){return k=void 0!==k?k:438,k&=4095,A.mknod(b,k|=32768,0)},mkdir:function(b,k){return k=void 0!==k?k:511,k&=1023,A.mknod(b,k|=16384,0)},mkdirTree:function(b,k){for(var V=b.split("/"),it="",ht=0;ht"u"&&(V=k,k=438),A.mknod(b,k|=8192,V)},symlink:function(b,k){if(!Nn.resolve(b))throw new A.ErrnoError(44);var it=A.lookupPath(k,{parent:!0}).node;if(!it)throw new A.ErrnoError(44);var ht=we.basename(k),xt=A.mayCreate(it,ht);if(xt)throw new A.ErrnoError(xt);if(!it.node_ops.symlink)throw new A.ErrnoError(63);return it.node_ops.symlink(it,ht,b)},rename:function(b,k){var Bt,ae,V=we.dirname(b),it=we.dirname(k),ht=we.basename(b),xt=we.basename(k);if(Bt=A.lookupPath(b,{parent:!0}).node,ae=A.lookupPath(k,{parent:!0}).node,!Bt||!ae)throw new A.ErrnoError(44);if(Bt.mount!==ae.mount)throw new A.ErrnoError(75);var qe,Ae=A.lookupNode(Bt,ht),We=Nn.relative(b,it);if("."!==We.charAt(0))throw new A.ErrnoError(28);if("."!==(We=Nn.relative(k,V)).charAt(0))throw new A.ErrnoError(55);try{qe=A.lookupNode(ae,xt)}catch{}if(Ae!==qe){var Ie=A.isDir(Ae.mode),Me=A.mayDelete(Bt,ht,Ie);if(Me)throw new A.ErrnoError(Me);if(Me=qe?A.mayDelete(ae,xt,Ie):A.mayCreate(ae,xt))throw new A.ErrnoError(Me);if(!Bt.node_ops.rename)throw new A.ErrnoError(63);if(A.isMountpoint(Ae)||qe&&A.isMountpoint(qe))throw new A.ErrnoError(10);if(ae!==Bt&&(Me=A.nodePermissions(Bt,"w")))throw new A.ErrnoError(Me);A.hashRemoveNode(Ae);try{Bt.node_ops.rename(Ae,ae,xt)}catch(_n){throw _n}finally{A.hashAddNode(Ae)}}},rmdir:function(b){var V=A.lookupPath(b,{parent:!0}).node,it=we.basename(b),ht=A.lookupNode(V,it),xt=A.mayDelete(V,it,!0);if(xt)throw new A.ErrnoError(xt);if(!V.node_ops.rmdir)throw new A.ErrnoError(63);if(A.isMountpoint(ht))throw new A.ErrnoError(10);V.node_ops.rmdir(V,it),A.destroyNode(ht)},readdir:function(b){var V=A.lookupPath(b,{follow:!0}).node;if(!V.node_ops.readdir)throw new A.ErrnoError(54);return V.node_ops.readdir(V)},unlink:function(b){var V=A.lookupPath(b,{parent:!0}).node,it=we.basename(b),ht=A.lookupNode(V,it),xt=A.mayDelete(V,it,!1);if(xt)throw new A.ErrnoError(xt);if(!V.node_ops.unlink)throw new A.ErrnoError(63);if(A.isMountpoint(ht))throw new A.ErrnoError(10);V.node_ops.unlink(V,it),A.destroyNode(ht)},readlink:function(b){var V=A.lookupPath(b).node;if(!V)throw new A.ErrnoError(44);if(!V.node_ops.readlink)throw new A.ErrnoError(28);return Nn.resolve(A.getPath(V.parent),V.node_ops.readlink(V))},stat:function(b,k){var it=A.lookupPath(b,{follow:!k}).node;if(!it)throw new A.ErrnoError(44);if(!it.node_ops.getattr)throw new A.ErrnoError(63);return it.node_ops.getattr(it)},lstat:function(b){return A.stat(b,!0)},chmod:function(b,k,V){var it;if(!(it="string"==typeof b?A.lookupPath(b,{follow:!V}).node:b).node_ops.setattr)throw new A.ErrnoError(63);it.node_ops.setattr(it,{mode:4095&k|-4096&it.mode,timestamp:Date.now()})},lchmod:function(b,k){A.chmod(b,k,!0)},fchmod:function(b,k){var V=A.getStream(b);if(!V)throw new A.ErrnoError(8);A.chmod(V.node,k)},chown:function(b,k,V,it){var ht;if(!(ht="string"==typeof b?A.lookupPath(b,{follow:!it}).node:b).node_ops.setattr)throw new A.ErrnoError(63);ht.node_ops.setattr(ht,{timestamp:Date.now()})},lchown:function(b,k,V){A.chown(b,k,V,!0)},fchown:function(b,k,V){var it=A.getStream(b);if(!it)throw new A.ErrnoError(8);A.chown(it.node,k,V)},truncate:function(b,k){if(k<0)throw new A.ErrnoError(28);var V;if(!(V="string"==typeof b?A.lookupPath(b,{follow:!0}).node:b).node_ops.setattr)throw new A.ErrnoError(63);if(A.isDir(V.mode))throw new A.ErrnoError(31);if(!A.isFile(V.mode))throw new A.ErrnoError(28);var ht=A.nodePermissions(V,"w");if(ht)throw new A.ErrnoError(ht);V.node_ops.setattr(V,{size:k,timestamp:Date.now()})},ftruncate:function(b,k){var V=A.getStream(b);if(!V)throw new A.ErrnoError(8);if(0==(2097155&V.flags))throw new A.ErrnoError(28);A.truncate(V.node,k)},utime:function(b,k,V){var ht=A.lookupPath(b,{follow:!0}).node;ht.node_ops.setattr(ht,{timestamp:Math.max(k,V)})},open:function(b,k,V,it,ht){if(""===b)throw new A.ErrnoError(44);var xt;if(V=typeof V>"u"?438:V,V=64&(k="string"==typeof k?A.modeStringToFlags(k):k)?4095&V|32768:0,"object"==typeof b)xt=b;else{b=we.normalize(b);try{xt=A.lookupPath(b,{follow:!(131072&k)}).node}catch{}}var Bt=!1;if(64&k)if(xt){if(128&k)throw new A.ErrnoError(20)}else xt=A.mknod(b,V,0),Bt=!0;if(!xt)throw new A.ErrnoError(44);if(A.isChrdev(xt.mode)&&(k&=-513),65536&k&&!A.isDir(xt.mode))throw new A.ErrnoError(54);if(!Bt){var ae=A.mayOpen(xt,k);if(ae)throw new A.ErrnoError(ae)}512&k&&A.truncate(xt,0),k&=-131713;var Ae=A.createStream({node:xt,path:A.getPath(xt),id:xt.id,flags:k,mode:xt.mode,seekable:!0,position:0,stream_ops:xt.stream_ops,node_ops:xt.node_ops,ungotten:[],error:!1},it,ht);return Ae.stream_ops.open&&Ae.stream_ops.open(Ae),E.logReadFiles&&!(1&k)&&(A.readFiles||(A.readFiles={}),b in A.readFiles||(A.readFiles[b]=1)),Ae},close:function(b){if(A.isClosed(b))throw new A.ErrnoError(8);b.getdents&&(b.getdents=null);try{b.stream_ops.close&&b.stream_ops.close(b)}catch(k){throw k}finally{A.closeStream(b.fd)}b.fd=null},isClosed:function(b){return null===b.fd},llseek:function(b,k,V){if(A.isClosed(b))throw new A.ErrnoError(8);if(!b.seekable||!b.stream_ops.llseek)throw new A.ErrnoError(70);if(0!=V&&1!=V&&2!=V)throw new A.ErrnoError(28);return b.position=b.stream_ops.llseek(b,k,V),b.ungotten=[],b.position},read:function(b,k,V,it,ht){if(it<0||ht<0)throw new A.ErrnoError(28);if(A.isClosed(b))throw new A.ErrnoError(8);if(1==(2097155&b.flags))throw new A.ErrnoError(8);if(A.isDir(b.node.mode))throw new A.ErrnoError(31);if(!b.stream_ops.read)throw new A.ErrnoError(28);var xt=typeof ht<"u";if(xt){if(!b.seekable)throw new A.ErrnoError(70)}else ht=b.position;var Mt=b.stream_ops.read(b,k,V,it,ht);return xt||(b.position+=Mt),Mt},write:function(b,k,V,it,ht,xt){if(it<0||ht<0)throw new A.ErrnoError(28);if(A.isClosed(b))throw new A.ErrnoError(8);if(0==(2097155&b.flags))throw new A.ErrnoError(8);if(A.isDir(b.node.mode))throw new A.ErrnoError(31);if(!b.stream_ops.write)throw new A.ErrnoError(28);b.seekable&&1024&b.flags&&A.llseek(b,0,2);var Mt=typeof ht<"u";if(Mt){if(!b.seekable)throw new A.ErrnoError(70)}else ht=b.position;var Bt=b.stream_ops.write(b,k,V,it,ht,xt);return Mt||(b.position+=Bt),Bt},allocate:function(b,k,V){if(A.isClosed(b))throw new A.ErrnoError(8);if(k<0||V<=0)throw new A.ErrnoError(28);if(0==(2097155&b.flags))throw new A.ErrnoError(8);if(!A.isFile(b.node.mode)&&!A.isDir(b.node.mode))throw new A.ErrnoError(43);if(!b.stream_ops.allocate)throw new A.ErrnoError(138);b.stream_ops.allocate(b,k,V)},mmap:function(b,k,V,it,ht,xt){if(0!=(2&ht)&&0==(2&xt)&&2!=(2097155&b.flags))throw new A.ErrnoError(2);if(1==(2097155&b.flags))throw new A.ErrnoError(2);if(!b.stream_ops.mmap)throw new A.ErrnoError(43);return b.stream_ops.mmap(b,k,V,it,ht,xt)},msync:function(b,k,V,it,ht){return b&&b.stream_ops.msync?b.stream_ops.msync(b,k,V,it,ht):0},munmap:function(b){return 0},ioctl:function(b,k,V){if(!b.stream_ops.ioctl)throw new A.ErrnoError(59);return b.stream_ops.ioctl(b,k,V)},readFile:function(b,k){if((k=k||{}).flags=k.flags||0,k.encoding=k.encoding||"binary","utf8"!==k.encoding&&"binary"!==k.encoding)throw new Error('Invalid encoding type "'+k.encoding+'"');var V,it=A.open(b,k.flags),xt=A.stat(b).size,Mt=new Uint8Array(xt);return A.read(it,Mt,0,xt,0),"utf8"===k.encoding?V=Zt(Mt,0):"binary"===k.encoding&&(V=Mt),A.close(it),V},writeFile:function(b,k,V){(V=V||{}).flags=V.flags||577;var it=A.open(b,V.flags,V.mode);if("string"==typeof k){var ht=new Uint8Array(Le(k)+1),xt=xe(k,ht,0,ht.length);A.write(it,ht,0,xt,void 0,V.canOwn)}else{if(!ArrayBuffer.isView(k))throw new Error("Unsupported data type");A.write(it,k,0,k.byteLength,void 0,V.canOwn)}A.close(it)},cwd:function(){return A.currentPath},chdir:function(b){var k=A.lookupPath(b,{follow:!0});if(null===k.node)throw new A.ErrnoError(44);if(!A.isDir(k.node.mode))throw new A.ErrnoError(54);var V=A.nodePermissions(k.node,"x");if(V)throw new A.ErrnoError(V);A.currentPath=k.path},createDefaultDirectories:function(){A.mkdir("/tmp"),A.mkdir("/home"),A.mkdir("/home/web_user")},createDefaultDevices:function(){A.mkdir("/dev"),A.registerDevice(A.makedev(1,3),{read:function(){return 0},write:function(k,V,it,ht,xt){return ht}}),A.mkdev("/dev/null",A.makedev(1,3)),pn.register(A.makedev(5,0),pn.default_tty_ops),pn.register(A.makedev(6,0),pn.default_tty1_ops),A.mkdev("/dev/tty",A.makedev(5,0)),A.mkdev("/dev/tty1",A.makedev(6,0));var b=function Bi(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var b=new Uint8Array(1);return function(){return crypto.getRandomValues(b),b[0]}}return function(){_i("randomDevice")}}();A.createDevice("/dev","random",b),A.createDevice("/dev","urandom",b),A.mkdir("/dev/shm"),A.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){A.mkdir("/proc");var b=A.mkdir("/proc/self");A.mkdir("/proc/self/fd"),A.mount({mount:function(){var k=A.createNode(b,"fd",16895,73);return k.node_ops={lookup:function(V,it){var xt=A.getStream(+it);if(!xt)throw new A.ErrnoError(8);var Mt={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return xt.path}}};return Mt.parent=Mt,Mt}},k}},{},"/proc/self/fd")},createStandardStreams:function(){E.stdin?A.createDevice("/dev","stdin",E.stdin):A.symlink("/dev/tty","/dev/stdin"),E.stdout?A.createDevice("/dev","stdout",null,E.stdout):A.symlink("/dev/tty","/dev/stdout"),E.stderr?A.createDevice("/dev","stderr",null,E.stderr):A.symlink("/dev/tty1","/dev/stderr"),A.open("/dev/stdin",0),A.open("/dev/stdout",1),A.open("/dev/stderr",1)},ensureErrnoError:function(){A.ErrnoError||(A.ErrnoError=function(k,V){this.node=V,this.setErrno=function(it){this.errno=it},this.setErrno(k),this.message="FS error"},A.ErrnoError.prototype=new Error,A.ErrnoError.prototype.constructor=A.ErrnoError,[44].forEach(function(b){A.genericErrors[b]=new A.ErrnoError(b),A.genericErrors[b].stack=""}))},staticInit:function(){A.ensureErrnoError(),A.nameTable=new Array(4096),A.mount(X,{},"/"),A.createDefaultDirectories(),A.createDefaultDevices(),A.createSpecialDirectories(),A.filesystems={MEMFS:X}},init:function(b,k,V){A.init.initialized=!0,A.ensureErrnoError(),E.stdin=b||E.stdin,E.stdout=k||E.stdout,E.stderr=V||E.stderr,A.createStandardStreams()},quit:function(){A.init.initialized=!1;var b=E._fflush;b&&b(0);for(var k=0;kthis.length-1||Ie<0)){var Me=Ie%this.chunkSize;return this.getter(Ie/this.chunkSize|0)[Me]}},xt.prototype.setDataGetter=function(Ie){this.getter=Ie},xt.prototype.cacheLength=function(){var Ie=new XMLHttpRequest;if(Ie.open("HEAD",V,!1),Ie.send(null),!(Ie.status>=200&&Ie.status<300||304===Ie.status))throw new Error("Couldn't load "+V+". Status: "+Ie.status);var _n,Me=Number(Ie.getResponseHeader("Content-length")),Jn=(_n=Ie.getResponseHeader("Accept-Ranges"))&&"bytes"===_n,tr=(_n=Ie.getResponseHeader("Content-Encoding"))&&"gzip"===_n,xi=1048576;Jn||(xi=Me);var Mn=this;Mn.setDataGetter(function(Kn){var sr=Kn*xi,Pn=(Kn+1)*xi-1;if(Pn=Math.min(Pn,Me-1),typeof Mn.chunks[Kn]>"u"&&(Mn.chunks[Kn]=function(Kn,sr){if(Kn>sr)throw new Error("invalid range ("+Kn+", "+sr+") or no bytes requested!");if(sr>Me-1)throw new Error("only "+Me+" bytes available! programmer error!");var Pn=new XMLHttpRequest;if(Pn.open("GET",V,!1),Me!==xi&&Pn.setRequestHeader("Range","bytes="+Kn+"-"+sr),typeof Uint8Array<"u"&&(Pn.responseType="arraybuffer"),Pn.overrideMimeType&&Pn.overrideMimeType("text/plain; charset=x-user-defined"),Pn.send(null),!(Pn.status>=200&&Pn.status<300||304===Pn.status))throw new Error("Couldn't load "+V+". Status: "+Pn.status);return void 0!==Pn.response?new Uint8Array(Pn.response||[]):me(Pn.responseText||"",!0)}(sr,Pn)),typeof Mn.chunks[Kn]>"u")throw new Error("doXHR failed!");return Mn.chunks[Kn]}),(tr||!Me)&&(xi=Me=1,Me=this.getter(0).length,xi=Me,ie("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=Me,this._chunkSize=xi,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Bt,ae=A.createFile(b,k,Bt={isDevice:!1,url:V},it,ht);Bt.contents?ae.contents=Bt.contents:Bt.url&&(ae.contents=null,ae.url=Bt.url),Object.defineProperties(ae,{usedBytes:{get:function(){return this.contents.length}}});var Ae={};return Object.keys(ae.stream_ops).forEach(function(qe){var Ie=ae.stream_ops[qe];Ae[qe]=function(){return A.forceLoadFile(ae),Ie.apply(null,arguments)}}),Ae.read=function(Ie,Me,_n,Jn,tr){A.forceLoadFile(ae);var xi=Ie.node.contents;if(tr>=xi.length)return 0;var Yn=Math.min(xi.length-tr,Jn);if(xi.slice)for(var Mn=0;Mn>2]=it.dev,be[V+4>>2]=0,be[V+8>>2]=it.ino,be[V+12>>2]=it.mode,be[V+16>>2]=it.nlink,be[V+20>>2]=it.uid,be[V+24>>2]=it.gid,be[V+28>>2]=it.rdev,be[V+32>>2]=0,sn=[it.size>>>0,(gn=it.size,+Math.abs(gn)>=1?gn>0?(0|Math.min(+Math.floor(gn/4294967296),4294967295))>>>0:~~+Math.ceil((gn-+(~~gn>>>0))/4294967296)>>>0:0)],be[V+40>>2]=sn[0],be[V+44>>2]=sn[1],be[V+48>>2]=4096,be[V+52>>2]=it.blocks,be[V+56>>2]=it.atime.getTime()/1e3|0,be[V+60>>2]=0,be[V+64>>2]=it.mtime.getTime()/1e3|0,be[V+68>>2]=0,be[V+72>>2]=it.ctime.getTime()/1e3|0,be[V+76>>2]=0,sn=[it.ino>>>0,(gn=it.ino,+Math.abs(gn)>=1?gn>0?(0|Math.min(+Math.floor(gn/4294967296),4294967295))>>>0:~~+Math.ceil((gn-+(~~gn>>>0))/4294967296)>>>0:0)],be[V+80>>2]=sn[0],be[V+84>>2]=sn[1],0},doMsync:function(b,k,V,it,ht){var xt=an.slice(b,b+V);A.msync(k,xt,ht,V,it)},doMkdir:function(b,k){return"/"===(b=we.normalize(b))[b.length-1]&&(b=b.substr(0,b.length-1)),A.mkdir(b,k,0),0},doMknod:function(b,k,V){switch(61440&k){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return A.mknod(b,k,V),0},doReadlink:function(b,k,V){if(V<=0)return-28;var it=A.readlink(b),ht=Math.min(V,Le(it)),xt=Ge[k+ht];return function Te(b,k,V){return xe(b,an,k,V)}(it,k,V+1),Ge[k+ht]=xt,ht},doAccess:function(b,k){if(-8&k)return-28;var it=A.lookupPath(b,{follow:!0}).node;if(!it)return-44;var ht="";return 4&k&&(ht+="r"),2&k&&(ht+="w"),1&k&&(ht+="x"),ht&&A.nodePermissions(it,ht)?-2:0},doDup:function(b,k,V){var it=A.getStream(V);return it&&A.close(it),A.open(b,k,0,V,V).fd},doReadv:function(b,k,V,it){for(var ht=0,xt=0;xt>2],ae=A.read(b,Ge,be[k+8*xt>>2],Bt,it);if(ae<0)return-1;if(ht+=ae,ae>2],be[k+(8*xt+4)>>2],it);if(ae<0)return-1;ht+=ae}return ht},varargs:void 0,get:function(){return bt.varargs+=4,be[bt.varargs-4>>2]},getStr:function(b){return Kt(b)},getStreamFromFD:function(b){var k=A.getStream(b);if(!k)throw new A.ErrnoError(8);return k},get64:function(b,k){return b}};var Gt=[];function pt(b){try{return jt.grow(b-He.byteLength+65535>>>16),Tt(jt.buffer),1}catch{}}var gt={};function Xt(){if(!Xt.strings){var k={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Qt||"./this.program"};for(var V in gt)void 0===gt[V]?delete k[V]:k[V]=gt[V];var it=[];for(var V in k)it.push(V+"="+k[V]);Xt.strings=it}return Xt.strings}var Pe=function(b,k,V,it){b||(b=this),this.parent=b,this.mount=b.mount,this.mounted=null,this.id=A.nextInode++,this.name=k,this.mode=V,this.node_ops={},this.stream_ops={},this.rdev=it};function me(b,k,V){var it=V>0?V:Le(b)+1,ht=new Array(it),xt=xe(b,ht,0,ht.length);return k&&(ht.length=xt),ht}Object.defineProperties(Pe.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(b){b?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(b){b?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return A.isDir(this.mode)}},isDevice:{get:function(){return A.isChrdev(this.mode)}}}),A.FSNode=Pe,A.staticInit();var Fe={h:function Lt(b,k,V){bt.varargs=V;try{var it=bt.getStr(b),ht=V?bt.get():0;return A.open(it,k,ht).fd}catch(Mt){if(typeof A>"u"||!(Mt instanceof A.ErrnoError))throw Mt;return-Mt.errno}},b:function Pt(){_i("")},a:function Yt(b,k,V){var it=function Jt(b,k){var V;for(Gt.length=0,k>>=2;V=an[b++];){var it=V<105;it&&1&k&&k++,Gt.push(it?ln[k++>>1]:be[k]),++k}return Gt}(k,V);return zn[b].apply(null,it)},k:function Q(b,k,V){an.copyWithin(b,k,k+V)},e:function mt(b){var k=an.length,V=2147483648;if((b>>>=0)>V)return!1;for(var it=1;it<=4;it*=2){var ht=k*(1+.2/it);if(ht=Math.min(ht,b+100663296),pt(Math.min(V,Ee(Math.max(b,ht),65536))))return!0}return!1},f:function kt(b,k){var V=0;return Xt().forEach(function(it,ht){var xt=k+V;be[b+4*ht>>2]=xt,function Oe(b,k,V){for(var it=0;it>0]=b.charCodeAt(it);V||(Ge[k>>0]=0)}(it,xt),V+=it.length+1}),0},g:function le(b,k){var V=Xt();be[b>>2]=V.length;var it=0;return V.forEach(function(ht){it+=ht.length+1}),be[k>>2]=it,0},d:function O(b){try{var k=bt.getStreamFromFD(b);return A.close(k),0}catch(V){if(typeof A>"u"||!(V instanceof A.ErrnoError))throw V;return V.errno}},i:function oe(b,k,V,it){try{var ht=bt.getStreamFromFD(b),xt=bt.doReadv(ht,k,V);return be[it>>2]=xt,0}catch(Mt){if(typeof A>"u"||!(Mt instanceof A.ErrnoError))throw Mt;return Mt.errno}},j:function Se(b,k,V,it,ht){try{var xt=bt.getStreamFromFD(b),Bt=4294967296*V+(k>>>0),ae=9007199254740992;return Bt<=-ae||Bt>=ae?-61:(A.llseek(xt,Bt,it),sn=[xt.position>>>0,(gn=xt.position,+Math.abs(gn)>=1?gn>0?(0|Math.min(+Math.floor(gn/4294967296),4294967295))>>>0:~~+Math.ceil((gn-+(~~gn>>>0))/4294967296)>>>0:0)],be[ht>>2]=sn[0],be[ht+4>>2]=sn[1],xt.getdents&&0===Bt&&0===it&&(xt.getdents=null),0)}catch(Ae){if(typeof A>"u"||!(Ae instanceof A.ErrnoError))throw Ae;return Ae.errno}},c:function Ce(b,k,V,it){try{var ht=bt.getStreamFromFD(b),xt=bt.doWritev(ht,k,V);return be[it>>2]=xt,0}catch(Mt){if(typeof A>"u"||!(Mt instanceof A.ErrnoError))throw Mt;return Mt.errno}},l:function Ke(b){var k=Date.now();return be[b>>2]=k/1e3|0,be[b+4>>2]=k%1e3*1e3|0,0}};(function In(){var b={a:Fe};function k(Mt,Bt){E.asm=Mt.exports,Tt((jt=E.asm.m).buffer),Wt=E.asm.G,function Mi(b){_e.unshift(b)}(E.asm.n),Ni()}function V(Mt){k(Mt.instance)}function it(Mt){return function ji(){return te||"function"!=typeof fetch?Promise.resolve().then(function(){return Sn(fe)}):fetch(fe,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+fe+"'";return b.arrayBuffer()}).catch(function(){return Sn(fe)})}().then(function(Bt){return WebAssembly.instantiate(Bt,b)}).then(function(Bt){return Bt}).then(Mt,function(Bt){Ot("failed to asynchronously prepare wasm: "+Bt),_i(Bt)})}if(Fi(),E.instantiateWasm)try{return E.instantiateWasm(b,k)}catch(Mt){return Ot("Module.instantiateWasm callback failed with error: "+Mt),!1}return function ht(){return te||"function"!=typeof WebAssembly.instantiateStreaming||Ri(fe)||"function"!=typeof fetch?it(V):fetch(fe,{credentials:"same-origin"}).then(function(Mt){return WebAssembly.instantiateStreaming(Mt,b).then(V,function(ae){return Ot("wasm streaming compile failed: "+ae),Ot("falling back to ArrayBuffer instantiation"),it(V)})})}().catch(ft),{}})(),E.___wasm_call_ctors=function(){return(E.___wasm_call_ctors=E.asm.n).apply(null,arguments)};var jn,fn=E._emscripten_bind_CExpat_CExpat_0=function(){return(fn=E._emscripten_bind_CExpat_CExpat_0=E.asm.o).apply(null,arguments)},cn=E._emscripten_bind_CExpat_version_0=function(){return(cn=E._emscripten_bind_CExpat_version_0=E.asm.p).apply(null,arguments)},$e=E._emscripten_bind_CExpat_create_0=function(){return($e=E._emscripten_bind_CExpat_create_0=E.asm.q).apply(null,arguments)},Qe=E._emscripten_bind_CExpat_destroy_0=function(){return(Qe=E._emscripten_bind_CExpat_destroy_0=E.asm.r).apply(null,arguments)},wn=E._emscripten_bind_CExpat_parse_1=function(){return(wn=E._emscripten_bind_CExpat_parse_1=E.asm.s).apply(null,arguments)},Bn=E._emscripten_bind_CExpat_tag_0=function(){return(Bn=E._emscripten_bind_CExpat_tag_0=E.asm.t).apply(null,arguments)},Zn=E._emscripten_bind_CExpat_attrs_0=function(){return(Zn=E._emscripten_bind_CExpat_attrs_0=E.asm.u).apply(null,arguments)},Hn=E._emscripten_bind_CExpat_content_0=function(){return(Hn=E._emscripten_bind_CExpat_content_0=E.asm.v).apply(null,arguments)},Pi=E._emscripten_bind_CExpat_startElement_0=function(){return(Pi=E._emscripten_bind_CExpat_startElement_0=E.asm.w).apply(null,arguments)},he=E._emscripten_bind_CExpat_endElement_0=function(){return(he=E._emscripten_bind_CExpat_endElement_0=E.asm.x).apply(null,arguments)},je=E._emscripten_bind_CExpat_characterData_0=function(){return(je=E._emscripten_bind_CExpat_characterData_0=E.asm.y).apply(null,arguments)},vn=E._emscripten_bind_CExpat___destroy___0=function(){return(vn=E._emscripten_bind_CExpat___destroy___0=E.asm.z).apply(null,arguments)},Cn=E._emscripten_bind_VoidPtr___destroy___0=function(){return(Cn=E._emscripten_bind_VoidPtr___destroy___0=E.asm.A).apply(null,arguments)},$n=E._emscripten_bind_CExpatJS_CExpatJS_0=function(){return($n=E._emscripten_bind_CExpatJS_CExpatJS_0=E.asm.B).apply(null,arguments)},ci=E._emscripten_bind_CExpatJS_startElement_0=function(){return(ci=E._emscripten_bind_CExpatJS_startElement_0=E.asm.C).apply(null,arguments)},vi=E._emscripten_bind_CExpatJS_endElement_0=function(){return(vi=E._emscripten_bind_CExpatJS_endElement_0=E.asm.D).apply(null,arguments)},Qn=E._emscripten_bind_CExpatJS_characterData_0=function(){return(Qn=E._emscripten_bind_CExpatJS_characterData_0=E.asm.E).apply(null,arguments)},Zi=E._emscripten_bind_CExpatJS___destroy___0=function(){return(Zi=E._emscripten_bind_CExpatJS___destroy___0=E.asm.F).apply(null,arguments)};function bi(b){function k(){jn||(jn=!0,E.calledRun=!0,!se&&(function Ye(){!E.noFSInit&&!A.init.initialized&&A.init(),A.ignorePermissions=!1,li(_e)}(),ut(E),E.onRuntimeInitialized&&E.onRuntimeInitialized(),function Tn(){if(E.postRun)for("function"==typeof E.postRun&&(E.postRun=[E.postRun]);E.postRun.length;)b=E.postRun.shift(),ee.unshift(b);var b;li(ee)}()))}gi>0||(function Ze(){if(E.preRun)for("function"==typeof E.preRun&&(E.preRun=[E.preRun]);E.preRun.length;)b=E.preRun.shift(),ce.unshift(b);var b;li(ce)}(),gi>0)||(E.setStatus?(E.setStatus("Running..."),setTimeout(function(){setTimeout(function(){E.setStatus("")},1),k()},1)):k())}if(E._malloc=function(){return(E._malloc=E.asm.H).apply(null,arguments)},Si=function b(){jn||bi(),jn||(Si=b)},E.run=bi,E.preInit)for("function"==typeof E.preInit&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();function mn(){}function un(b){return(b||mn).__cache__}function ui(b,k){var V=un(k),it=V[b];return it||((it=Object.create((k||mn).prototype)).ptr=b,V[b]=it)}bi(),(mn.prototype=Object.create(mn.prototype)).constructor=mn,mn.prototype.__class__=mn,mn.__cache__={},E.WrapperObject=mn,E.getCache=un,E.wrapPointer=ui,E.castObject=function Ji(b,k){return ui(b.ptr,k)},E.NULL=ui(0),E.destroy=function hi(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";b.__destroy__(),delete un(b.__class__)[b.ptr]},E.compare=function Hi(b,k){return b.ptr===k.ptr},E.getPointer=function On(b){return b.ptr},E.getClass=function di(b){return b.__class__};var Ue={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Ue.needed){for(var b=0;b=Ue.size?(At(it>0),Ue.needed+=it,ht=E._malloc(it),Ue.temps.push(ht)):(ht=Ue.buffer+Ue.pos,Ue.pos+=it),ht},copy:function(b,k,V){switch(V>>>=0,k.BYTES_PER_ELEMENT){case 2:V>>>=1;break;case 4:V>>>=2;break;case 8:V>>>=3}for(var ht=0;ht=$);)++dt;if(dt-S>16&&y.subarray&&Le)return Le.decode(y.subarray(S,dt));for(var vt="";S>10,56320|1023&ke)}}else vt+=String.fromCharCode((31&Et)<<6|Rt)}else vt+=String.fromCharCode(Et)}return vt}function Ee(y,S){return y?Oe(ce,y,S):""}function He(y,S,P,$){if(!($>0))return 0;for(var dt=P,vt=P+$-1,Et=0;Et=55296&&Rt<=57343&&(Rt=65536+((1023&Rt)<<10)|1023&y.charCodeAt(++Et)),Rt<=127){if(P>=vt)break;S[P++]=Rt}else if(Rt<=2047){if(P+1>=vt)break;S[P++]=192|Rt>>6,S[P++]=128|63&Rt}else if(Rt<=65535){if(P+2>=vt)break;S[P++]=224|Rt>>12,S[P++]=128|Rt>>6&63,S[P++]=128|63&Rt}else{if(P+3>=vt)break;S[P++]=240|Rt>>18,S[P++]=128|Rt>>12&63,S[P++]=128|Rt>>6&63,S[P++]=128|63&Rt}}return S[P]=0,P-dt}function an(y){for(var S=0,P=0;P=55296&&$<=57343&&($=65536+((1023&$)<<10)|1023&y.charCodeAt(++P)),$<=127?++S:S+=$<=2047?2:$<=65535?3:4}return S}function ln(y,S){return y%S>0&&(y+=S-y%S),y}function Ye(y){Tt=y,E.HEAP8=Wt=new Int8Array(y),E.HEAP16=_e=new Int16Array(y),E.HEAP32=ee=new Int32Array(y),E.HEAPU8=ce=new Uint8Array(y),E.HEAPU16=new Uint16Array(y),E.HEAPU32=new Uint32Array(y),E.HEAPF32=new Float32Array(y),E.HEAPF64=Ze=new Float64Array(y)}var Tn,oi=[],Mi=[],mi=[];var fe=0,Sn=null;function In(y){fe++,E.monitorRunDependencies&&E.monitorRunDependencies(fe)}function gn(y){if(fe--,E.monitorRunDependencies&&E.monitorRunDependencies(fe),0==fe&&Sn){var S=Sn;Sn=null,S()}}function sn(y){E.onAbort&&E.onAbort(y),te(y="Aborted("+y+")"),xe=!0,y+=". Build with -s ASSERTIONS=1 for more info.";var S=new WebAssembly.RuntimeError(y);throw ft(S),S}E.preloadedImages={},E.preloadedAudios={};var Ln;function li(y){return y.startsWith("data:application/octet-stream;base64,")}function we(y){try{if(y==Ln&&Ht)return new Uint8Array(Ht);throw"both async and sync fetching of the wasm failed"}catch(S){sn(S)}}li(Ln="graphvizlib.wasm")||(Ln=function Nt(y){return E.locateFile?E.locateFile(y,yt):yt+y}(Ln));var pn,z,bt,X={161580:function(y,S){var P=Ee(y),$=Ee(S);O.createPath("/",Yt.dirname(P)),O.writeFile(Yt.join("/",P),$)}};function lt(y){for(;y.length>0;){var S=y.shift();if("function"!=typeof S){var P=S.func;"number"==typeof P?void 0===S.arg?A(P)():A(P)(S.arg):P(void 0===S.arg?null:S.arg)}else S(E)}}function A(y){return Tn.get(y)}bt=function(){return performance.now()};function Pt(y){return ee[Mt()>>2]=y,y}var Yt={splitPath:function(y){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(y).slice(1)},normalizeArray:function(y,S){for(var P=0,$=y.length-1;$>=0;$--){var dt=y[$];"."===dt?y.splice($,1):".."===dt?(y.splice($,1),P++):P&&(y.splice($,1),P--)}if(S)for(;P;P--)y.unshift("..");return y},normalize:function(y){var S="/"===y.charAt(0),P="/"===y.substr(-1);return!(y=Yt.normalizeArray(y.split("/").filter(function($){return!!$}),!S).join("/"))&&!S&&(y="."),y&&P&&(y+="/"),(S?"/":"")+y},dirname:function(y){var S=Yt.splitPath(y),P=S[0],$=S[1];return P||$?($&&($=$.substr(0,$.length-1)),P+$):"."},basename:function(y){if("/"===y)return"/";var S=(y=(y=Yt.normalize(y)).replace(/\/$/,"")).lastIndexOf("/");return-1===S?y:y.substr(S+1)},extname:function(y){return Yt.splitPath(y)[3]},join:function(){var y=Array.prototype.slice.call(arguments,0);return Yt.normalize(y.join("/"))},join2:function(y,S){return Yt.normalize(y+"/"+S)}};var pt={resolve:function(){for(var y="",S=!1,P=arguments.length-1;P>=-1&&!S;P--){var $=P>=0?arguments[P]:O.cwd();if("string"!=typeof $)throw new TypeError("Arguments to path.resolve must be strings");if(!$)return"";y=$+"/"+y,S="/"===$.charAt(0)}return(S?"/":"")+(y=Yt.normalizeArray(y.split("/").filter(function(dt){return!!dt}),!S).join("/"))||"."},relative:function(y,S){function P(ke){for(var tn=0;tn=0&&""===ke[hn];hn--);return tn>hn?[]:ke.slice(tn,hn-tn+1)}y=pt.resolve(y).substr(1),S=pt.resolve(S).substr(1);for(var $=P(y.split("/")),dt=P(S.split("/")),vt=Math.min($.length,dt.length),Et=vt,Rt=0;Rt0&&(Ot(Oe(y.output,0)),y.output=[])}},default_tty1_ops:{put_char:function(y,S){null===S||10===S?(te(Oe(y.output,0)),y.output=[]):0!=S&&y.output.push(S)},flush:function(y){y.output&&y.output.length>0&&(te(Oe(y.output,0)),y.output=[])}}};function Xt(y){y=function Ut(y,S){return Math.ceil(y/S)*S}(y,65536);var S=We(65536,y);return S?(function gt(y,S){ce.fill(0,y,y+S)}(S,y),S):0}var kt={ops_table:null,mount:function(y){return kt.createNode(null,"/",16895,0)},createNode:function(y,S,P,$){if(O.isBlkdev(P)||O.isFIFO(P))throw new O.ErrnoError(63);kt.ops_table||(kt.ops_table={dir:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr,lookup:kt.node_ops.lookup,mknod:kt.node_ops.mknod,rename:kt.node_ops.rename,unlink:kt.node_ops.unlink,rmdir:kt.node_ops.rmdir,readdir:kt.node_ops.readdir,symlink:kt.node_ops.symlink},stream:{llseek:kt.stream_ops.llseek}},file:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr},stream:{llseek:kt.stream_ops.llseek,read:kt.stream_ops.read,write:kt.stream_ops.write,allocate:kt.stream_ops.allocate,mmap:kt.stream_ops.mmap,msync:kt.stream_ops.msync}},link:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr,readlink:kt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr},stream:O.chrdev_stream_ops}});var dt=O.createNode(y,S,P,$);return O.isDir(dt.mode)?(dt.node_ops=kt.ops_table.dir.node,dt.stream_ops=kt.ops_table.dir.stream,dt.contents={}):O.isFile(dt.mode)?(dt.node_ops=kt.ops_table.file.node,dt.stream_ops=kt.ops_table.file.stream,dt.usedBytes=0,dt.contents=null):O.isLink(dt.mode)?(dt.node_ops=kt.ops_table.link.node,dt.stream_ops=kt.ops_table.link.stream):O.isChrdev(dt.mode)&&(dt.node_ops=kt.ops_table.chrdev.node,dt.stream_ops=kt.ops_table.chrdev.stream),dt.timestamp=Date.now(),y&&(y.contents[S]=dt,y.timestamp=dt.timestamp),dt},getFileDataAsTypedArray:function(y){return y.contents?y.contents.subarray?y.contents.subarray(0,y.usedBytes):new Uint8Array(y.contents):new Uint8Array(0)},expandFileStorage:function(y,S){var P=y.contents?y.contents.length:0;if(!(P>=S)){S=Math.max(S,P*(P<1048576?2:1.125)>>>0),0!=P&&(S=Math.max(S,256));var dt=y.contents;y.contents=new Uint8Array(S),y.usedBytes>0&&y.contents.set(dt.subarray(0,y.usedBytes),0)}},resizeFileStorage:function(y,S){if(y.usedBytes!=S)if(0==S)y.contents=null,y.usedBytes=0;else{var P=y.contents;y.contents=new Uint8Array(S),P&&y.contents.set(P.subarray(0,Math.min(S,y.usedBytes))),y.usedBytes=S}},node_ops:{getattr:function(y){var S={};return S.dev=O.isChrdev(y.mode)?y.id:1,S.ino=y.id,S.mode=y.mode,S.nlink=1,S.uid=0,S.gid=0,S.rdev=y.rdev,S.size=O.isDir(y.mode)?4096:O.isFile(y.mode)?y.usedBytes:O.isLink(y.mode)?y.link.length:0,S.atime=new Date(y.timestamp),S.mtime=new Date(y.timestamp),S.ctime=new Date(y.timestamp),S.blksize=4096,S.blocks=Math.ceil(S.size/S.blksize),S},setattr:function(y,S){void 0!==S.mode&&(y.mode=S.mode),void 0!==S.timestamp&&(y.timestamp=S.timestamp),void 0!==S.size&&kt.resizeFileStorage(y,S.size)},lookup:function(y,S){throw O.genericErrors[44]},mknod:function(y,S,P,$){return kt.createNode(y,S,P,$)},rename:function(y,S,P){if(O.isDir(y.mode)){var $;try{$=O.lookupNode(S,P)}catch{}if($)for(var dt in $.contents)throw new O.ErrnoError(55)}delete y.parent.contents[y.name],y.parent.timestamp=Date.now(),y.name=P,S.contents[P]=y,S.timestamp=y.parent.timestamp,y.parent=S},unlink:function(y,S){delete y.contents[S],y.timestamp=Date.now()},rmdir:function(y,S){var P=O.lookupNode(y,S);for(var $ in P.contents)throw new O.ErrnoError(55);delete y.contents[S],y.timestamp=Date.now()},readdir:function(y){var S=[".",".."];for(var P in y.contents)!y.contents.hasOwnProperty(P)||S.push(P);return S},symlink:function(y,S,P){var $=kt.createNode(y,S,41471,0);return $.link=P,$},readlink:function(y){if(!O.isLink(y.mode))throw new O.ErrnoError(28);return y.link}},stream_ops:{read:function(y,S,P,$,dt){var vt=y.node.contents;if(dt>=y.node.usedBytes)return 0;var Et=Math.min(y.node.usedBytes-dt,$);if(Et>8&&vt.subarray)S.set(vt.subarray(dt,dt+Et),P);else for(var Rt=0;Rt0||$+P8)throw new O.ErrnoError(32);for(var dt=Yt.normalizeArray(y.split("/").filter(function(Ne){return!!Ne}),!1),vt=O.root,Et="/",Rt=0;Rt40)throw new O.ErrnoError(32)}}return{path:Et,node:vt}},getPath:function(y){for(var S;;){if(O.isRoot(y)){var P=y.mount.mountpoint;return S?"/"!==P[P.length-1]?P+"/"+S:P+S:P}S=S?y.name+"/"+S:y.name,y=y.parent}},hashName:function(y,S){for(var P=0,$=0;$>>0)%O.nameTable.length},hashAddNode:function(y){var S=O.hashName(y.parent.id,y.name);y.name_next=O.nameTable[S],O.nameTable[S]=y},hashRemoveNode:function(y){var S=O.hashName(y.parent.id,y.name);if(O.nameTable[S]===y)O.nameTable[S]=y.name_next;else for(var P=O.nameTable[S];P;){if(P.name_next===y){P.name_next=y.name_next;break}P=P.name_next}},lookupNode:function(y,S){var P=O.mayLookup(y);if(P)throw new O.ErrnoError(P,y);for(var $=O.hashName(y.id,S),dt=O.nameTable[$];dt;dt=dt.name_next)if(dt.parent.id===y.id&&dt.name===S)return dt;return O.lookup(y,S)},createNode:function(y,S,P,$){var dt=new O.FSNode(y,S,P,$);return O.hashAddNode(dt),dt},destroyNode:function(y){O.hashRemoveNode(y)},isRoot:function(y){return y===y.parent},isMountpoint:function(y){return!!y.mounted},isFile:function(y){return 32768==(61440&y)},isDir:function(y){return 16384==(61440&y)},isLink:function(y){return 40960==(61440&y)},isChrdev:function(y){return 8192==(61440&y)},isBlkdev:function(y){return 24576==(61440&y)},isFIFO:function(y){return 4096==(61440&y)},isSocket:function(y){return 49152==(49152&y)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(y){var S=O.flagModes[y];if(typeof S>"u")throw new Error("Unknown file open mode: "+y);return S},flagsToPermissionString:function(y){var S=["r","w","rw"][3&y];return 512&y&&(S+="w"),S},nodePermissions:function(y,S){return O.ignorePermissions?0:S.includes("r")&&!(292&y.mode)||S.includes("w")&&!(146&y.mode)||S.includes("x")&&!(73&y.mode)?2:0},mayLookup:function(y){return O.nodePermissions(y,"x")||(y.node_ops.lookup?0:2)},mayCreate:function(y,S){try{return O.lookupNode(y,S),20}catch{}return O.nodePermissions(y,"wx")},mayDelete:function(y,S,P){var $;try{$=O.lookupNode(y,S)}catch(vt){return vt.errno}var dt=O.nodePermissions(y,"wx");if(dt)return dt;if(P){if(!O.isDir($.mode))return 54;if(O.isRoot($)||O.getPath($)===O.cwd())return 10}else if(O.isDir($.mode))return 31;return 0},mayOpen:function(y,S){return y?O.isLink(y.mode)?32:O.isDir(y.mode)&&("r"!==O.flagsToPermissionString(S)||512&S)?31:O.nodePermissions(y,O.flagsToPermissionString(S)):44},MAX_OPEN_FDS:4096,nextfd:function(y,S){S=S||O.MAX_OPEN_FDS;for(var P=y=y||0;P<=S;P++)if(!O.streams[P])return P;throw new O.ErrnoError(33)},getStream:function(y){return O.streams[y]},createStream:function(y,S,P){O.FSStream||(O.FSStream=function(){},O.FSStream.prototype={object:{get:function(){return this.node},set:function(Et){this.node=Et}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var $=new O.FSStream;for(var dt in y)$[dt]=y[dt];y=$;var vt=O.nextfd(S,P);return y.fd=vt,O.streams[vt]=y,y},closeStream:function(y){O.streams[y]=null},chrdev_stream_ops:{open:function(y){var S=O.getDevice(y.node.rdev);y.stream_ops=S.stream_ops,y.stream_ops.open&&y.stream_ops.open(y)},llseek:function(){throw new O.ErrnoError(70)}},major:function(y){return y>>8},minor:function(y){return 255&y},makedev:function(y,S){return y<<8|S},registerDevice:function(y,S){O.devices[y]={stream_ops:S}},getDevice:function(y){return O.devices[y]},getMounts:function(y){for(var S=[],P=[y];P.length;){var $=P.pop();S.push($),P.push.apply(P,$.mounts)}return S},syncfs:function(y,S){"function"==typeof y&&(S=y,y=!1),O.syncFSRequests++,O.syncFSRequests>1&&te("warning: "+O.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var P=O.getMounts(O.root.mount),$=0;function dt(Et){return O.syncFSRequests--,S(Et)}function vt(Et){if(Et)return vt.errored?void 0:(vt.errored=!0,dt(Et));++$>=P.length&&dt(null)}P.forEach(function(Et){if(!Et.type.syncfs)return vt(null);Et.type.syncfs(Et,y,vt)})},mount:function(y,S,P){var vt,$="/"===P,dt=!P;if($&&O.root)throw new O.ErrnoError(10);if(!$&&!dt){var Et=O.lookupPath(P,{follow_mount:!1});if(P=Et.path,O.isMountpoint(vt=Et.node))throw new O.ErrnoError(10);if(!O.isDir(vt.mode))throw new O.ErrnoError(54)}var Rt={type:y,opts:S,mountpoint:P,mounts:[]},ne=y.mount(Rt);return ne.mount=Rt,Rt.root=ne,$?O.root=ne:vt&&(vt.mounted=Rt,vt.mount&&vt.mount.mounts.push(Rt)),ne},unmount:function(y){var S=O.lookupPath(y,{follow_mount:!1});if(!O.isMountpoint(S.node))throw new O.ErrnoError(28);var P=S.node,$=P.mounted,dt=O.getMounts($);Object.keys(O.nameTable).forEach(function(Et){for(var Rt=O.nameTable[Et];Rt;){var ne=Rt.name_next;dt.includes(Rt.mount)&&O.destroyNode(Rt),Rt=ne}}),P.mounted=null;var vt=P.mount.mounts.indexOf($);P.mount.mounts.splice(vt,1)},lookup:function(y,S){return y.node_ops.lookup(y,S)},mknod:function(y,S,P){var dt=O.lookupPath(y,{parent:!0}).node,vt=Yt.basename(y);if(!vt||"."===vt||".."===vt)throw new O.ErrnoError(28);var Et=O.mayCreate(dt,vt);if(Et)throw new O.ErrnoError(Et);if(!dt.node_ops.mknod)throw new O.ErrnoError(63);return dt.node_ops.mknod(dt,vt,S,P)},create:function(y,S){return S=void 0!==S?S:438,S&=4095,O.mknod(y,S|=32768,0)},mkdir:function(y,S){return S=void 0!==S?S:511,S&=1023,O.mknod(y,S|=16384,0)},mkdirTree:function(y,S){for(var P=y.split("/"),$="",dt=0;dt"u"&&(P=S,S=438),O.mknod(y,S|=8192,P)},symlink:function(y,S){if(!pt.resolve(y))throw new O.ErrnoError(44);var $=O.lookupPath(S,{parent:!0}).node;if(!$)throw new O.ErrnoError(44);var dt=Yt.basename(S),vt=O.mayCreate($,dt);if(vt)throw new O.ErrnoError(vt);if(!$.node_ops.symlink)throw new O.ErrnoError(63);return $.node_ops.symlink($,dt,y)},rename:function(y,S){var Rt,ne,P=Yt.dirname(y),$=Yt.dirname(S),dt=Yt.basename(y),vt=Yt.basename(S);if(Rt=O.lookupPath(y,{parent:!0}).node,ne=O.lookupPath(S,{parent:!0}).node,!Rt||!ne)throw new O.ErrnoError(44);if(Rt.mount!==ne.mount)throw new O.ErrnoError(75);var hn,ke=O.lookupNode(Rt,dt),tn=pt.relative(y,$);if("."!==tn.charAt(0))throw new O.ErrnoError(28);if("."!==(tn=pt.relative(S,P)).charAt(0))throw new O.ErrnoError(55);try{hn=O.lookupNode(ne,vt)}catch{}if(ke!==hn){var Ne=O.isDir(ke.mode),ze=O.mayDelete(Rt,dt,Ne);if(ze)throw new O.ErrnoError(ze);if(ze=hn?O.mayDelete(ne,vt,Ne):O.mayCreate(ne,vt))throw new O.ErrnoError(ze);if(!Rt.node_ops.rename)throw new O.ErrnoError(63);if(O.isMountpoint(ke)||hn&&O.isMountpoint(hn))throw new O.ErrnoError(10);if(ne!==Rt&&(ze=O.nodePermissions(Rt,"w")))throw new O.ErrnoError(ze);O.hashRemoveNode(ke);try{Rt.node_ops.rename(ke,ne,vt)}catch(bn){throw bn}finally{O.hashAddNode(ke)}}},rmdir:function(y){var P=O.lookupPath(y,{parent:!0}).node,$=Yt.basename(y),dt=O.lookupNode(P,$),vt=O.mayDelete(P,$,!0);if(vt)throw new O.ErrnoError(vt);if(!P.node_ops.rmdir)throw new O.ErrnoError(63);if(O.isMountpoint(dt))throw new O.ErrnoError(10);P.node_ops.rmdir(P,$),O.destroyNode(dt)},readdir:function(y){var P=O.lookupPath(y,{follow:!0}).node;if(!P.node_ops.readdir)throw new O.ErrnoError(54);return P.node_ops.readdir(P)},unlink:function(y){var P=O.lookupPath(y,{parent:!0}).node,$=Yt.basename(y),dt=O.lookupNode(P,$),vt=O.mayDelete(P,$,!1);if(vt)throw new O.ErrnoError(vt);if(!P.node_ops.unlink)throw new O.ErrnoError(63);if(O.isMountpoint(dt))throw new O.ErrnoError(10);P.node_ops.unlink(P,$),O.destroyNode(dt)},readlink:function(y){var P=O.lookupPath(y).node;if(!P)throw new O.ErrnoError(44);if(!P.node_ops.readlink)throw new O.ErrnoError(28);return pt.resolve(O.getPath(P.parent),P.node_ops.readlink(P))},stat:function(y,S){var $=O.lookupPath(y,{follow:!S}).node;if(!$)throw new O.ErrnoError(44);if(!$.node_ops.getattr)throw new O.ErrnoError(63);return $.node_ops.getattr($)},lstat:function(y){return O.stat(y,!0)},chmod:function(y,S,P){var $;if(!($="string"==typeof y?O.lookupPath(y,{follow:!P}).node:y).node_ops.setattr)throw new O.ErrnoError(63);$.node_ops.setattr($,{mode:4095&S|-4096&$.mode,timestamp:Date.now()})},lchmod:function(y,S){O.chmod(y,S,!0)},fchmod:function(y,S){var P=O.getStream(y);if(!P)throw new O.ErrnoError(8);O.chmod(P.node,S)},chown:function(y,S,P,$){var dt;if(!(dt="string"==typeof y?O.lookupPath(y,{follow:!$}).node:y).node_ops.setattr)throw new O.ErrnoError(63);dt.node_ops.setattr(dt,{timestamp:Date.now()})},lchown:function(y,S,P){O.chown(y,S,P,!0)},fchown:function(y,S,P){var $=O.getStream(y);if(!$)throw new O.ErrnoError(8);O.chown($.node,S,P)},truncate:function(y,S){if(S<0)throw new O.ErrnoError(28);var P;if(!(P="string"==typeof y?O.lookupPath(y,{follow:!0}).node:y).node_ops.setattr)throw new O.ErrnoError(63);if(O.isDir(P.mode))throw new O.ErrnoError(31);if(!O.isFile(P.mode))throw new O.ErrnoError(28);var dt=O.nodePermissions(P,"w");if(dt)throw new O.ErrnoError(dt);P.node_ops.setattr(P,{size:S,timestamp:Date.now()})},ftruncate:function(y,S){var P=O.getStream(y);if(!P)throw new O.ErrnoError(8);if(0==(2097155&P.flags))throw new O.ErrnoError(28);O.truncate(P.node,S)},utime:function(y,S,P){var dt=O.lookupPath(y,{follow:!0}).node;dt.node_ops.setattr(dt,{timestamp:Math.max(S,P)})},open:function(y,S,P,$,dt){if(""===y)throw new O.ErrnoError(44);var vt;if(P=typeof P>"u"?438:P,P=64&(S="string"==typeof S?O.modeStringToFlags(S):S)?4095&P|32768:0,"object"==typeof y)vt=y;else{y=Yt.normalize(y);try{vt=O.lookupPath(y,{follow:!(131072&S)}).node}catch{}}var Rt=!1;if(64&S)if(vt){if(128&S)throw new O.ErrnoError(20)}else vt=O.mknod(y,P,0),Rt=!0;if(!vt)throw new O.ErrnoError(44);if(O.isChrdev(vt.mode)&&(S&=-513),65536&S&&!O.isDir(vt.mode))throw new O.ErrnoError(54);if(!Rt){var ne=O.mayOpen(vt,S);if(ne)throw new O.ErrnoError(ne)}512&S&&O.truncate(vt,0),S&=-131713;var ke=O.createStream({node:vt,path:O.getPath(vt),id:vt.id,flags:S,mode:vt.mode,seekable:!0,position:0,stream_ops:vt.stream_ops,node_ops:vt.node_ops,ungotten:[],error:!1},$,dt);return ke.stream_ops.open&&ke.stream_ops.open(ke),E.logReadFiles&&!(1&S)&&(O.readFiles||(O.readFiles={}),y in O.readFiles||(O.readFiles[y]=1)),ke},close:function(y){if(O.isClosed(y))throw new O.ErrnoError(8);y.getdents&&(y.getdents=null);try{y.stream_ops.close&&y.stream_ops.close(y)}catch(S){throw S}finally{O.closeStream(y.fd)}y.fd=null},isClosed:function(y){return null===y.fd},llseek:function(y,S,P){if(O.isClosed(y))throw new O.ErrnoError(8);if(!y.seekable||!y.stream_ops.llseek)throw new O.ErrnoError(70);if(0!=P&&1!=P&&2!=P)throw new O.ErrnoError(28);return y.position=y.stream_ops.llseek(y,S,P),y.ungotten=[],y.position},read:function(y,S,P,$,dt){if($<0||dt<0)throw new O.ErrnoError(28);if(O.isClosed(y))throw new O.ErrnoError(8);if(1==(2097155&y.flags))throw new O.ErrnoError(8);if(O.isDir(y.node.mode))throw new O.ErrnoError(31);if(!y.stream_ops.read)throw new O.ErrnoError(28);var vt=typeof dt<"u";if(vt){if(!y.seekable)throw new O.ErrnoError(70)}else dt=y.position;var Et=y.stream_ops.read(y,S,P,$,dt);return vt||(y.position+=Et),Et},write:function(y,S,P,$,dt,vt){if($<0||dt<0)throw new O.ErrnoError(28);if(O.isClosed(y))throw new O.ErrnoError(8);if(0==(2097155&y.flags))throw new O.ErrnoError(8);if(O.isDir(y.node.mode))throw new O.ErrnoError(31);if(!y.stream_ops.write)throw new O.ErrnoError(28);y.seekable&&1024&y.flags&&O.llseek(y,0,2);var Et=typeof dt<"u";if(Et){if(!y.seekable)throw new O.ErrnoError(70)}else dt=y.position;var Rt=y.stream_ops.write(y,S,P,$,dt,vt);return Et||(y.position+=Rt),Rt},allocate:function(y,S,P){if(O.isClosed(y))throw new O.ErrnoError(8);if(S<0||P<=0)throw new O.ErrnoError(28);if(0==(2097155&y.flags))throw new O.ErrnoError(8);if(!O.isFile(y.node.mode)&&!O.isDir(y.node.mode))throw new O.ErrnoError(43);if(!y.stream_ops.allocate)throw new O.ErrnoError(138);y.stream_ops.allocate(y,S,P)},mmap:function(y,S,P,$,dt,vt){if(0!=(2&dt)&&0==(2&vt)&&2!=(2097155&y.flags))throw new O.ErrnoError(2);if(1==(2097155&y.flags))throw new O.ErrnoError(2);if(!y.stream_ops.mmap)throw new O.ErrnoError(43);return y.stream_ops.mmap(y,S,P,$,dt,vt)},msync:function(y,S,P,$,dt){return y&&y.stream_ops.msync?y.stream_ops.msync(y,S,P,$,dt):0},munmap:function(y){return 0},ioctl:function(y,S,P){if(!y.stream_ops.ioctl)throw new O.ErrnoError(59);return y.stream_ops.ioctl(y,S,P)},readFile:function(y,S){if((S=S||{}).flags=S.flags||0,S.encoding=S.encoding||"binary","utf8"!==S.encoding&&"binary"!==S.encoding)throw new Error('Invalid encoding type "'+S.encoding+'"');var P,$=O.open(y,S.flags),vt=O.stat(y).size,Et=new Uint8Array(vt);return O.read($,Et,0,vt,0),"utf8"===S.encoding?P=Oe(Et,0):"binary"===S.encoding&&(P=Et),O.close($),P},writeFile:function(y,S,P){(P=P||{}).flags=P.flags||577;var $=O.open(y,P.flags,P.mode);if("string"==typeof S){var dt=new Uint8Array(an(S)+1),vt=He(S,dt,0,dt.length);O.write($,dt,0,vt,void 0,P.canOwn)}else{if(!ArrayBuffer.isView(S))throw new Error("Unsupported data type");O.write($,S,0,S.byteLength,void 0,P.canOwn)}O.close($)},cwd:function(){return O.currentPath},chdir:function(y){var S=O.lookupPath(y,{follow:!0});if(null===S.node)throw new O.ErrnoError(44);if(!O.isDir(S.node.mode))throw new O.ErrnoError(54);var P=O.nodePermissions(S.node,"x");if(P)throw new O.ErrnoError(P);O.currentPath=S.path},createDefaultDirectories:function(){O.mkdir("/tmp"),O.mkdir("/home"),O.mkdir("/home/web_user")},createDefaultDevices:function(){O.mkdir("/dev"),O.registerDevice(O.makedev(1,3),{read:function(){return 0},write:function(S,P,$,dt,vt){return dt}}),O.mkdev("/dev/null",O.makedev(1,3)),mt.register(O.makedev(5,0),mt.default_tty_ops),mt.register(O.makedev(6,0),mt.default_tty1_ops),O.mkdev("/dev/tty",O.makedev(5,0)),O.mkdev("/dev/tty1",O.makedev(6,0));var y=function Q(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var y=new Uint8Array(1);return function(){return crypto.getRandomValues(y),y[0]}}return function(){sn("randomDevice")}}();O.createDevice("/dev","random",y),O.createDevice("/dev","urandom",y),O.mkdir("/dev/shm"),O.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){O.mkdir("/proc");var y=O.mkdir("/proc/self");O.mkdir("/proc/self/fd"),O.mount({mount:function(){var S=O.createNode(y,"fd",16895,73);return S.node_ops={lookup:function(P,$){var vt=O.getStream(+$);if(!vt)throw new O.ErrnoError(8);var Et={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return vt.path}}};return Et.parent=Et,Et}},S}},{},"/proc/self/fd")},createStandardStreams:function(){E.stdin?O.createDevice("/dev","stdin",E.stdin):O.symlink("/dev/tty","/dev/stdin"),E.stdout?O.createDevice("/dev","stdout",null,E.stdout):O.symlink("/dev/tty","/dev/stdout"),E.stderr?O.createDevice("/dev","stderr",null,E.stderr):O.symlink("/dev/tty1","/dev/stderr"),O.open("/dev/stdin",0),O.open("/dev/stdout",1),O.open("/dev/stderr",1)},ensureErrnoError:function(){O.ErrnoError||(O.ErrnoError=function(S,P){this.node=P,this.setErrno=function($){this.errno=$},this.setErrno(S),this.message="FS error"},O.ErrnoError.prototype=new Error,O.ErrnoError.prototype.constructor=O.ErrnoError,[44].forEach(function(y){O.genericErrors[y]=new O.ErrnoError(y),O.genericErrors[y].stack=""}))},staticInit:function(){O.ensureErrnoError(),O.nameTable=new Array(4096),O.mount(kt,{},"/"),O.createDefaultDirectories(),O.createDefaultDevices(),O.createSpecialDirectories(),O.filesystems={MEMFS:kt}},init:function(y,S,P){O.init.initialized=!0,O.ensureErrnoError(),E.stdin=y||E.stdin,E.stdout=S||E.stdout,E.stderr=P||E.stderr,O.createStandardStreams()},quit:function(){O.init.initialized=!1;var y=E._fflush;y&&y(0);for(var S=0;Sthis.length-1||Ne<0)){var ze=Ne%this.chunkSize;return this.getter(Ne/this.chunkSize|0)[ze]}},vt.prototype.setDataGetter=function(Ne){this.getter=Ne},vt.prototype.cacheLength=function(){var Ne=new XMLHttpRequest;if(Ne.open("HEAD",P,!1),Ne.send(null),!(Ne.status>=200&&Ne.status<300||304===Ne.status))throw new Error("Couldn't load "+P+". Status: "+Ne.status);var bn,ze=Number(Ne.getResponseHeader("Content-length")),Ei=(bn=Ne.getResponseHeader("Accept-Ranges"))&&"bytes"===bn,mr=(bn=Ne.getResponseHeader("Content-Encoding"))&&"gzip"===bn,Di=1048576;Ei||(Di=ze);var yi=this;yi.setDataGetter(function(Yi){var gr=Yi*Di,qn=(Yi+1)*Di-1;if(qn=Math.min(qn,ze-1),typeof yi.chunks[Yi]>"u"&&(yi.chunks[Yi]=function(Yi,gr){if(Yi>gr)throw new Error("invalid range ("+Yi+", "+gr+") or no bytes requested!");if(gr>ze-1)throw new Error("only "+ze+" bytes available! programmer error!");var qn=new XMLHttpRequest;if(qn.open("GET",P,!1),ze!==Di&&qn.setRequestHeader("Range","bytes="+Yi+"-"+gr),typeof Uint8Array<"u"&&(qn.responseType="arraybuffer"),qn.overrideMimeType&&qn.overrideMimeType("text/plain; charset=x-user-defined"),qn.send(null),!(qn.status>=200&&qn.status<300||304===qn.status))throw new Error("Couldn't load "+P+". Status: "+qn.status);return void 0!==qn.response?new Uint8Array(qn.response||[]):Vn(qn.responseText||"",!0)}(gr,qn)),typeof yi.chunks[Yi]>"u")throw new Error("doXHR failed!");return yi.chunks[Yi]}),(mr||!ze)&&(Di=ze=1,ze=this.getter(0).length,Di=ze,Ot("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=ze,this._chunkSize=Di,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Rt,ne=O.createFile(y,S,Rt={isDevice:!1,url:P},$,dt);Rt.contents?ne.contents=Rt.contents:Rt.url&&(ne.contents=null,ne.url=Rt.url),Object.defineProperties(ne,{usedBytes:{get:function(){return this.contents.length}}});var ke={};return Object.keys(ne.stream_ops).forEach(function(hn){var Ne=ne.stream_ops[hn];ke[hn]=function(){return O.forceLoadFile(ne),Ne.apply(null,arguments)}}),ke.read=function(Ne,ze,bn,Ei,mr){O.forceLoadFile(ne);var Di=Ne.node.contents;if(mr>=Di.length)return 0;var wr=Math.min(Di.length-mr,Ei);if(Di.slice)for(var yi=0;yi>2]=$.dev,ee[P+4>>2]=0,ee[P+8>>2]=$.ino,ee[P+12>>2]=$.mode,ee[P+16>>2]=$.nlink,ee[P+20>>2]=$.uid,ee[P+24>>2]=$.gid,ee[P+28>>2]=$.rdev,ee[P+32>>2]=0,z=[$.size>>>0,(pn=$.size,+Math.abs(pn)>=1?pn>0?(0|Math.min(+Math.floor(pn/4294967296),4294967295))>>>0:~~+Math.ceil((pn-+(~~pn>>>0))/4294967296)>>>0:0)],ee[P+40>>2]=z[0],ee[P+44>>2]=z[1],ee[P+48>>2]=4096,ee[P+52>>2]=$.blocks,ee[P+56>>2]=$.atime.getTime()/1e3|0,ee[P+60>>2]=0,ee[P+64>>2]=$.mtime.getTime()/1e3|0,ee[P+68>>2]=0,ee[P+72>>2]=$.ctime.getTime()/1e3|0,ee[P+76>>2]=0,z=[$.ino>>>0,(pn=$.ino,+Math.abs(pn)>=1?pn>0?(0|Math.min(+Math.floor(pn/4294967296),4294967295))>>>0:~~+Math.ceil((pn-+(~~pn>>>0))/4294967296)>>>0:0)],ee[P+80>>2]=z[0],ee[P+84>>2]=z[1],0},doMsync:function(y,S,P,$,dt){var vt=ce.slice(y,y+P);O.msync(S,vt,dt,P,$)},doMkdir:function(y,S){return"/"===(y=Yt.normalize(y))[y.length-1]&&(y=y.substr(0,y.length-1)),O.mkdir(y,S,0),0},doMknod:function(y,S,P){switch(61440&S){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return O.mknod(y,S,P),0},doReadlink:function(y,S,P){if(P<=0)return-28;var $=O.readlink(y),dt=Math.min(P,an($)),vt=Wt[S+dt];return function Ge(y,S,P){return He(y,ce,S,P)}($,S,P+1),Wt[S+dt]=vt,dt},doAccess:function(y,S){if(-8&S)return-28;var $=O.lookupPath(y,{follow:!0}).node;if(!$)return-44;var dt="";return 4&S&&(dt+="r"),2&S&&(dt+="w"),1&S&&(dt+="x"),dt&&O.nodePermissions($,dt)?-2:0},doDup:function(y,S,P){var $=O.getStream(P);return $&&O.close($),O.open(y,S,0,P,P).fd},doReadv:function(y,S,P,$){for(var dt=0,vt=0;vt>2],ne=O.read(y,Wt,ee[S+8*vt>>2],Rt,$);if(ne<0)return-1;if(dt+=ne,ne>2],ee[S+(8*vt+4)>>2],$);if(ne<0)return-1;dt+=ne}return dt},varargs:void 0,get:function(){return oe.varargs+=4,ee[oe.varargs-4>>2]},getStr:function(y){return Ee(y)},getStreamFromFD:function(y){var S=O.getStream(y);if(!S)throw new O.ErrnoError(8);return S},get64:function(y,S){return y}};var Zn=[];function je(y){try{return Kt.grow(y-Tt.byteLength+65535>>>16),Ye(Kt.buffer),1}catch{}}var Cn={};function ci(){if(!ci.strings){var S={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Qt||"./this.program"};for(var P in Cn)void 0===Cn[P]?delete S[P]:S[P]=Cn[P];var $=[];for(var P in S)$.push(P+"="+S[P]);ci.strings=$}return ci.strings}var On=function(y,S,P,$){y||(y=this),this.parent=y,this.mount=y.mount,this.mounted=null,this.id=O.nextInode++,this.name=S,this.mode=P,this.node_ops={},this.stream_ops={},this.rdev=$};function Vn(y,S,P){var $=P>0?P:an(y)+1,dt=new Array($),vt=He(y,dt,0,dt.length);return S&&(dt.length=vt),dt}Object.defineProperties(On.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(y){y?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(y){y?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return O.isDir(this.mode)}},isDevice:{get:function(){return O.isChrdev(this.mode)}}}),O.FSNode=On,O.staticInit();var nn={A:function Jt(y,S){return function Gt(y,S){var P;if(0===y)P=Date.now();else{if(1!==y&&4!==y)return Pt(28),-1;P=bt()}return ee[S>>2]=P/1e3|0,ee[S+4>>2]=P%1e3*1e3*1e3|0,0}(y,S)},B:function Se(y,S){try{return y=oe.getStr(y),oe.doAccess(y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},h:function Ce(y,S,P){oe.varargs=P;try{var $=oe.getStreamFromFD(y);switch(S){case 0:return(dt=oe.get())<0?-28:O.open($.path,$.flags,0,dt).fd;case 1:case 2:case 6:case 7:return 0;case 3:return $.flags;case 4:var dt=oe.get();return $.flags|=dt,0;case 5:return dt=oe.get(),_e[dt+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return Pt(28),-1}}catch(Rt){if(typeof O>"u"||!(Rt instanceof O.ErrnoError))throw Rt;return-Rt.errno}},x:function Ke(y,S){try{var P=oe.getStreamFromFD(y);return oe.doStat(O.stat,P.path,S)}catch($){if(typeof O>"u"||!($ instanceof O.ErrnoError))throw $;return-$.errno}},u:function Pe(y,S,P,$){try{S=oe.getStr(S);var dt=256&$,vt=4096&$;return $&=-4353,S=oe.calculateAt(y,S,vt),oe.doStat(dt?O.lstat:O.stat,S,P)}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return-Et.errno}},y:function Be(y,S,P){oe.varargs=P;try{var $=oe.getStreamFromFD(y);switch(S){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return $.tty?0:-59;case 21519:if(!$.tty)return-59;var dt=oe.get();return ee[dt>>2]=0,0;case 21520:return $.tty?-28:-59;case 21531:return dt=oe.get(),O.ioctl($,S,dt);default:sn("bad ioctl syscall "+S)}}catch(vt){if(typeof O>"u"||!(vt instanceof O.ErrnoError))throw vt;return-vt.errno}},k:function me(y,S,P,$,dt,vt){try{return function ue(y,S,P,$,dt,vt){vt<<=12;var Et,Rt=!1;if(0!=(16&$)&&y%65536!=0)return-28;if(0!=(32&$)){if(!(Et=Xt(S)))return-48;Rt=!0}else{var ne=O.getStream(dt);if(!ne)return-8;var ke=O.mmap(ne,y,S,vt,P,$);Et=ke.ptr,Rt=ke.allocated}return oe.mappings[Et]={malloc:Et,len:S,allocated:Rt,fd:dt,prot:P,flags:$,offset:vt},Et}(y,S,P,$,dt,vt)}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return-Et.errno}},j:function fn(y,S){try{return function Fe(y,S){var P=oe.mappings[y];if(0===S||!P)return-28;if(S===P.len){var $=O.getStream(P.fd);$&&2&P.prot&&oe.doMsync(y,$,S,P.flags,P.offset),oe.mappings[y]=null,P.allocated&&xt(P.malloc)}return 0}(y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},e:function cn(y,S,P){oe.varargs=P;try{var $=oe.getStr(y),dt=P?oe.get():0;return O.open($,S,dt).fd}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return-Et.errno}},v:function $e(y,S){try{return y=oe.getStr(y),oe.doStat(O.stat,y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},z:function Qe(y){try{return y=oe.getStr(y),O.unlink(y),0}catch(S){if(typeof O>"u"||!(S instanceof O.ErrnoError))throw S;return-S.errno}},r:function wn(){throw"longjmp"},q:function Bn(){sn("")},C:function Pi(y,S,P){var $=function Hn(y,S){var P;for(Zn.length=0,S>>=2;P=ce[y++];){var $=P<105;$&&1&S&&S++,Zn.push($?Ze[S++>>1]:ee[S]),++S}return Zn}(S,P);return X[y].apply(null,$)},o:function he(y,S,P){ce.copyWithin(y,S,S+P)},p:function vn(y){var S=ce.length,P=2147483648;if((y>>>=0)>P)return!1;for(var $=1;$<=4;$*=2){var dt=S*(1+.2/$);if(dt=Math.min(dt,y+100663296),je(Math.min(P,ln(Math.max(y,dt),65536))))return!0}return!1},s:function vi(y,S){var P=0;return ci().forEach(function($,dt){var vt=S+P;ee[y+4*dt>>2]=vt,function be(y,S,P){for(var $=0;$>0]=y.charCodeAt($);P||(Wt[S>>0]=0)}($,vt),P+=$.length+1}),0},t:function Qn(y,S){var P=ci();ee[y>>2]=P.length;var $=0;return P.forEach(function(dt){$+=dt.length+1}),ee[S>>2]=$,0},a:function Zi(y){!function tr(y,S){!function xi(y){(function Si(){return Zt||!1})()||(E.onExit&&E.onExit(y),xe=!0),pe(y,new _n(y))}(y)}(y)},d:function jn(y){try{var S=oe.getStreamFromFD(y);return O.close(S),0}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return P.errno}},i:function bi(y,S,P,$){try{var dt=oe.getStreamFromFD(y),vt=oe.doReadv(dt,S,P);return ee[$>>2]=vt,0}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return Et.errno}},n:function mn(y,S,P,$,dt){try{var vt=oe.getStreamFromFD(y),Rt=4294967296*P+(S>>>0),ne=9007199254740992;return Rt<=-ne||Rt>=ne?-61:(O.llseek(vt,Rt,$),z=[vt.position>>>0,(pn=vt.position,+Math.abs(pn)>=1?pn>0?(0|Math.min(+Math.floor(pn/4294967296),4294967295))>>>0:~~+Math.ceil((pn-+(~~pn>>>0))/4294967296)>>>0:0)],ee[dt>>2]=z[0],ee[dt+4>>2]=z[1],vt.getdents&&0===Rt&&0===$&&(vt.getdents=null),0)}catch(ke){if(typeof O>"u"||!(ke instanceof O.ErrnoError))throw ke;return ke.errno}},g:function un(y,S,P,$){try{var dt=oe.getStreamFromFD(y),vt=oe.doWritev(dt,S,P);return ee[$>>2]=vt,0}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return Et.errno}},c:function ui(){return jt},w:function Ji(y){var S=Date.now();return ee[y>>2]=S/1e3|0,ee[y+4>>2]=S%1e3*1e3|0,0},l:function Ie(y,S,P,$,dt,vt,Et){var Rt=Bt();try{return A(y)(S,P,$,dt,vt,Et)}catch(ne){if(ae(Rt),ne!==ne+0&&"longjmp"!==ne)throw ne;Ae(1,0)}},m:function qe(y,S){var P=Bt();try{A(y)(S)}catch($){if(ae(P),$!==$+0&&"longjmp"!==$)throw $;Ae(1,0)}},b:function hi(y){!function(y){jt=y}(y)},f:function Hi(y){var S=Date.now()/1e3|0;return y&&(ee[y>>2]=S),S}};(function Nn(){var y={a:nn};function S(Et,Rt){E.asm=Et.exports,Ye((Kt=E.asm.D).buffer),Tn=E.asm.M,function Qi(y){Mi.unshift(y)}(E.asm.E),gn()}function P(Et){S(Et.instance)}function $(Et){return function Bi(){return Ht||"function"!=typeof fetch?Promise.resolve().then(function(){return we(Ln)}):fetch(Ln,{credentials:"same-origin"}).then(function(y){if(!y.ok)throw"failed to load wasm binary file at '"+Ln+"'";return y.arrayBuffer()}).catch(function(){return we(Ln)})}().then(function(Rt){return WebAssembly.instantiate(Rt,y)}).then(function(Rt){return Rt}).then(Et,function(Rt){te("failed to asynchronously prepare wasm: "+Rt),sn(Rt)})}if(In(),E.instantiateWasm)try{return E.instantiateWasm(y,S)}catch(Et){return te("Module.instantiateWasm callback failed with error: "+Et),!1}return function dt(){return Ht||"function"!=typeof WebAssembly.instantiateStreaming||li(Ln)||"function"!=typeof fetch?$(P):fetch(Ln,{credentials:"same-origin"}).then(function(Et){return WebAssembly.instantiateStreaming(Et,y).then(P,function(ne){return te("wasm streaming compile failed: "+ne),te("falling back to ArrayBuffer instantiation"),$(P)})})}().catch(ft),{}})(),E.___wasm_call_ctors=function(){return(E.___wasm_call_ctors=E.asm.E).apply(null,arguments)};var Ti=E._emscripten_bind_VoidPtr___destroy___0=function(){return(Ti=E._emscripten_bind_VoidPtr___destroy___0=E.asm.F).apply(null,arguments)},kn=E._emscripten_bind_Graphviz_Graphviz_2=function(){return(kn=E._emscripten_bind_Graphviz_Graphviz_2=E.asm.G).apply(null,arguments)},b=E._emscripten_bind_Graphviz_version_0=function(){return(b=E._emscripten_bind_Graphviz_version_0=E.asm.H).apply(null,arguments)},k=E._emscripten_bind_Graphviz_lastError_0=function(){return(k=E._emscripten_bind_Graphviz_lastError_0=E.asm.I).apply(null,arguments)},V=E._emscripten_bind_Graphviz_layout_3=function(){return(V=E._emscripten_bind_Graphviz_layout_3=E.asm.J).apply(null,arguments)},it=E._emscripten_bind_Graphviz_createFile_2=function(){return(it=E._emscripten_bind_Graphviz_createFile_2=E.asm.K).apply(null,arguments)},ht=E._emscripten_bind_Graphviz___destroy___0=function(){return(ht=E._emscripten_bind_Graphviz___destroy___0=E.asm.L).apply(null,arguments)};E._malloc=function(){return(E._malloc=E.asm.N).apply(null,arguments)};var Me,xt=E._free=function(){return(xt=E._free=E.asm.O).apply(null,arguments)},Mt=E.___errno_location=function(){return(Mt=E.___errno_location=E.asm.P).apply(null,arguments)},Bt=E.stackSave=function(){return(Bt=E.stackSave=E.asm.Q).apply(null,arguments)},ae=E.stackRestore=function(){return(ae=E.stackRestore=E.asm.R).apply(null,arguments)},Ae=E._setThrew=function(){return(Ae=E._setThrew=E.asm.S).apply(null,arguments)},We=E._memalign=function(){return(We=E._memalign=E.asm.T).apply(null,arguments)};function _n(y){this.name="ExitStatus",this.message="Program terminated with exit("+y+")",this.status=y}function Jn(y){function S(){Me||(Me=!0,E.calledRun=!0,!xe&&(function Fi(){!E.noFSInit&&!O.init.initialized&&O.init(),O.ignorePermissions=!1,lt(Mi)}(),ut(E),E.onRuntimeInitialized&&E.onRuntimeInitialized(),function Ni(){if(E.postRun)for("function"==typeof E.postRun&&(E.postRun=[E.postRun]);E.postRun.length;)y=E.postRun.shift(),mi.unshift(y);var y;lt(mi)}()))}fe>0||(function qi(){if(E.preRun)for("function"==typeof E.preRun&&(E.preRun=[E.preRun]);E.preRun.length;)y=E.preRun.shift(),oi.unshift(y);var y;lt(oi)}(),fe>0)||(E.setStatus?(E.setStatus("Running..."),setTimeout(function(){setTimeout(function(){E.setStatus("")},1),S()},1)):S())}if(Sn=function y(){Me||Jn(),Me||(Sn=y)},E.run=Jn,E.preInit)for("function"==typeof E.preInit&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();function Yn(){}function Mn(y){return(y||Yn).__cache__}function Kn(y,S){var P=Mn(S),$=P[y];return $||(($=Object.create((S||Yn).prototype)).ptr=y,P[y]=$)}Jn(),(Yn.prototype=Object.create(Yn.prototype)).constructor=Yn,Yn.prototype.__class__=Yn,Yn.__cache__={},E.WrapperObject=Yn,E.getCache=Mn,E.wrapPointer=Kn,E.castObject=function sr(y,S){return Kn(y.ptr,S)},E.NULL=Kn(0),E.destroy=function Pn(y){if(!y.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";y.__destroy__(),delete Mn(y.__class__)[y.ptr]},E.compare=function Ha(y,S){return y.ptr===S.ptr},E.getPointer=function ea(y){return y.ptr},E.getClass=function va(y){return y.__class__};var Ve={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Ve.needed){for(var y=0;y=Ve.size?(Te($>0),Ve.needed+=$,dt=E._malloc($),Ve.temps.push(dt)):(dt=Ve.buffer+Ve.pos,Ve.pos+=$),dt},copy:function(y,S,P){switch(P>>>=0,S.BYTES_PER_ELEMENT){case 2:P>>>=1;break;case 4:P>>>=2;break;case 8:P>>>=3}for(var dt=0;dt\n\n')}}function st(Y,nt){var rt=H({images:[],files:[]},nt);G(G([],rt.files,!0),function K(Y){return Y.map(tt)}(rt.images),!0).forEach(function(q){return Y.createFile(q.path,q.data)})}var W={layout:function(Y,nt,rt,q){return void 0===nt&&(nt="svg"),void 0===rt&&(rt="dot"),Y?u(Z,q?.wasmFolder,q?.wasmBinary).then(function(F){var E=new F.Graphviz(void 0!==q?.yInvert&&q?.yInvert,void 0!==q?.nop?q?.nop:0);st(E,q);var ut=E.layout(Y,nt,rt);if(F.destroy(E),!ut)throw new Error(F.Graphviz.prototype.lastError());return ut}):Promise.resolve("")},circo:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"circo",rt)},dot:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"dot",rt)},fdp:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"fdp",rt)},sfdp:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"sfdp",rt)},neato:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"neato",rt)},osage:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"osage",rt)},patchwork:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"patchwork",rt)},twopi:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"twopi",rt)}},et=function(){function Y(nt){this._wasm=nt}return Y.prototype.layout=function(nt,rt,q,F){if(void 0===rt&&(rt="svg"),void 0===q&&(q="dot"),!nt)return"";var E=new this._wasm.Graphviz(F?.yInvert?1:0,F?.nop?F?.nop:0);st(E,F);var ut=E.layout(nt,rt,q);if(this._wasm.destroy(E),!ut)throw new Error(this._wasm.Graphviz.prototype.lastError());return ut},Y.prototype.circo=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"circo",q)},Y.prototype.dot=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"dot",q)},Y.prototype.fdp=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"fdp",q)},Y.prototype.sfdp=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"sfdp",q)},Y.prototype.neato=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"neato",q)},Y.prototype.osage=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"osage",q)},Y.prototype.patchwork=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"patchwork",q)},Y.prototype.twopi=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"twopi",q)},Y}();s.GraphvizSync=et,s.StackElement=g,s.StackParser=C,s.expatVersion=function I(Y,nt){return u(m,Y,nt).then(function(rt){return rt.CExpat.prototype.version()})},s.graphviz=W,s.graphvizSync=function at(Y,nt){return u(Z,Y,nt).then(function(rt){return new et(rt)})},s.graphvizVersion=function j(Y,nt){return u(Z,Y,nt).then(function(rt){return rt.Graphviz.prototype.version()})},s.parse=B,s.wasmFolder=l,Object.defineProperty(s,"__esModule",{value:!0})}(D)},72705:(w,D,s)=>{"use strict";s.r(D),s.d(D,{AdminModule:()=>Wy});var c={};s.r(c),s.d(c,{forceCenter:()=>Td,forceCollide:()=>Ho,forceLink:()=>Qo,forceManyBody:()=>Jo,forceRadial:()=>Qd,forceSimulation:()=>jo,forceX:()=>jd,forceY:()=>Jd});var x={};s.r(x),s.d(x,{dispatch:()=>Ta.Z});var _={};s.r(_),s.d(_,{interval:()=>qd,now:()=>or.zO,timeout:()=>ja.Z,timer:()=>or.HT,timerFlush:()=>or.R8});var m=s(36895),p=s(94364),t=s(94650),d=s(77968),l=s(97392),h=s(61283),f=s(4235),u=s(89383);const g=function(){return{color:"black"}};let C=(()=>{class n{constructor(e){this.sideMenuService=e}ngOnInit(){this.sideMenuService.setAdminItems([])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-page"]],decls:7,vars:5,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","admin-theme"],[1,"page-title","d-flex"],["svgIcon","perun-perun-admin",1,"perun-icon","icon-scale",3,"ngStyle"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.TgZ(2,"h1",1),t._UZ(3,"mat-icon",2),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._UZ(6,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(3),t.Q6J("ngStyle",t.DdM(4,g)),t.xp6(1),t.hij(" ",t.lcZ(5,2,"ADMIN.TITLE")," "))},dependencies:[m.PC,l.Hw,h.A,f.W,u.X$]}),n})();var L=s(71135);let I=(()=>{class n{constructor(){this.navItems=[{cssIcon:"perun-attributes",url:"/admin/attributes",label:"MENU_ITEMS.ADMIN.ATTRIBUTES",style:"admin-btn"},{cssIcon:"perun-user",url:"/admin/users",label:"MENU_ITEMS.ADMIN.USERS",style:"admin-btn"},{cssIcon:"perun-owner-grey",url:"/admin/owners",label:"MENU_ITEMS.ADMIN.OWNERS",style:"admin-btn"},{cssIcon:"perun-service",url:"/admin/services",label:"MENU_ITEMS.ADMIN.SERVICES",style:"admin-btn"},{cssIcon:"perun-preview",url:"/admin/visualizer",label:"MENU_ITEMS.ADMIN.VISUALIZER",style:"admin-btn"},{cssIcon:"perun-external-sources",url:"/admin/ext_sources",label:"MENU_ITEMS.ADMIN.EXT_SOURCES",style:"admin-btn"},{cssIcon:"perun-audit-log",url:"/admin/audit_log",label:"MENU_ITEMS.ADMIN.AUDIT_LOG",style:"admin-btn"},{cssIcon:"perun-consent-hubs",url:"/admin/consent_hubs",label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",style:"admin-btn"},{cssIcon:"perun-searcher",url:"/admin/searcher",label:"MENU_ITEMS.ADMIN.SEARCHER",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.navItems)("size","small"))},dependencies:[L.L]}),n})();var B=s(95017),M=s(65412),R=s(30671),Z=s(81591),H=s(61744),G=s(4859),tt=s(51572),K=s(98380);function st(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function j(n,r){1&n&&t._UZ(0,"th",16)}function W(n,r){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function et(n,r){1&n&&t._UZ(0,"tr",18)}function at(n,r){1&n&&t._UZ(0,"tr",19)}function Y(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,j,1,0,"th",11),t.YNc(10,W,2,1,"td",12),t.BQk(),t.YNc(11,et,1,0,"tr",13),t.YNc(12,at,1,0,"tr",14),t.qZA(),t.TgZ(13,"perun-web-apps-alert",15),t._uU(14),t.ALo(15,"translate"),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE1")," "),t.xp6(3),t.hij(" ",t.lcZ(6,8,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE2")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.hij(" ",t.lcZ(15,10,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.WARNING")," ")}}let nt=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=v,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new R.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=[];for(const i of this.data.attributes)e.push(i.id);this.attributesManager.deleteAttributeDefinitions(e).subscribe(()=>{this.translate.get("DIALOGS.DELETE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-attribute-definition-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","","data-cy","confirm-delete-attr-definition-button",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",1,"mt-3"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,st,1,0,"mat-spinner",1),t.YNc(5,Y,16,12,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},dependencies:[m.O5,G.lW,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,M.uh,M.xY,M.H8,tt.Ou,K.w,u.X$]}),n})();var rt=s(24006),q=s(78372),F=s(63900),E=s(61135),ut=s(69751),ft=s(38421),Dt=s(75797),St=s(60515),Qt=s(25403),pe=s(63269);function wt(...n){const r=(0,pe.jO)(n),e=(0,Dt.k)(n);return e.length?new ut.y(i=>{let a=e.map(()=>[]),o=e.map(()=>!1);i.add(()=>{a=o=null});for(let v=0;!i.closed&&v{if(a[v].push(T),a.every(N=>N.length)){const N=a.map(U=>U.shift());i.next(r?r(...N):N),a.some((U,J)=>!U.length&&o[J])&&i.complete()}},()=>{o[v]=!0,!a[v].length&&i.complete()}));return()=>{a=o=null}}):St.E}var yt=s(39646),Nt=s(19516),zt=s(3238),de=s(39349),ie=s(59549),Ot=s(284),te=s(84385),jt=s(3848),se=s(23123);function At(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.ALo(2,"displayedRole"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e.roleName),t.xp6(1),t.hij(" ",t.lcZ(2,2,e)," ")}}function Ht(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}let Zt=(()=>{class n{constructor(e){this.attrRightsService=e,this.policyRemoved=new t.vpe,this.roles=this.attrRightsService.getRoles()}ngOnInit(){this.selectedRole=new E.X(this.policy.role),this.objects=this.selectedRole.pipe((0,F.w)(e=>this.attrRightsService.getObjects(e)))}changeRole(e){this.selectedRole.next(e.value),this.policy.object="None"}remove(){this.policyRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-item"]],inputs:{policy:"policy"},outputs:{policyRemoved:"policyRemoved"},decls:14,vars:14,consts:[[1,"flex-row"],[1,"grow-item"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","placeholder","ngModelChange"],["color","warn","mat-icon-button","",1,"close-button",3,"click"],["inline","true"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-select",2),t.NdJ("ngModelChange",function(o){return i.policy.role=o})("selectionChange",function(o){return i.changeRole(o)}),t.ALo(3,"translate"),t.YNc(4,At,3,4,"mat-option",3),t.ALo(5,"async"),t.qZA()(),t.TgZ(6,"mat-form-field")(7,"mat-select",4),t.NdJ("ngModelChange",function(o){return i.policy.object=o}),t.ALo(8,"translate"),t.YNc(9,Ht,2,2,"mat-option",3),t.ALo(10,"async"),t.qZA()(),t.TgZ(11,"button",5),t.NdJ("click",function(){return i.remove()}),t.TgZ(12,"mat-icon",6),t._uU(13,"remove_circle"),t.qZA()()()),2&e&&(t.xp6(2),t.s9C("placeholder",t.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ROLE")),t.Q6J("ngModel",i.policy.role),t.xp6(2),t.Q6J("ngForOf",t.lcZ(5,8,i.roles)),t.xp6(3),t.s9C("placeholder",t.lcZ(8,10,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ENTITY")),t.Q6J("ngModel",i.policy.object),t.xp6(2),t.Q6J("ngForOf",t.lcZ(10,12,i.objects)))},dependencies:[m.sg,rt.JJ,rt.On,l.Hw,G.lW,ie.KE,zt.ey,te.gD,m.Ov,u.X$,se.i],styles:[".flex-row[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;background:white;border-radius:1em;padding:1em 1em 0}.grow-item[_ngcontent-%COMP%]{flex-grow:2;margin:0 1em}.close-button[_ngcontent-%COMP%]{position:absolute;font-size:1.3em;top:-15px;right:-15px;z-index:100}"]}),n})();function Kt(n,r){1&n&&(t.TgZ(0,"div",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.AND")," "))}function xe(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-attribute-rights-item",7),t.NdJ("policyRemoved",function(){const o=t.CHM(e).index,v=t.oxw(2);return t.KtG(v.removePolicy(o))}),t.qZA(),t.YNc(2,Kt,3,3,"div",8),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw(2);t.xp6(1),t.Q6J("policy",e),t.xp6(1),t.Q6J("ngIf",i!==a.collection.policies.length-1)}}function Te(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2),t.YNc(2,xe,3,2,"div",3),t.qZA(),t.TgZ(3,"div",4)(4,"button",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeCollection())}),t.TgZ(5,"mat-icon"),t._uU(6,"delete"),t.qZA()(),t.TgZ(7,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addPolicy())}),t.TgZ(8,"mat-icon"),t._uU(9,"add_circle"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.collection.policies)}}let Le=(()=>{class n{constructor(){this.collectionRemoved=new t.vpe}addPolicy(){this.collection.policies.push({id:-1,role:null,object:null,policyCollectionId:this.collection.id})}removePolicy(e){this.collection.policies.splice(e,1),0===this.collection.policies.length&&this.removeCollection()}removeCollection(){this.collectionRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-collection"]],inputs:{collection:"collection"},outputs:{collectionRemoved:"collectionRemoved"},decls:1,vars:1,consts:[["class","collection",4,"ngIf"],[1,"collection"],[1,"column","role-selection"],[4,"ngFor","ngForOf"],[1,"column","controls"],["mat-icon-button","",3,"click"],["color","accent","mat-icon-button","",3,"click"],[3,"policy","policyRemoved"],["class","divider",4,"ngIf"],[1,"divider"]],template:function(e,i){1&e&&t.YNc(0,Te,10,1,"div",0),2&e&&t.Q6J("ngIf",i.collection)},dependencies:[m.sg,m.O5,l.Hw,G.lW,Zt,u.X$],styles:[".collection[_ngcontent-%COMP%]{background-color:#0000001a;padding:1em;border-radius:1em;margin-top:1em;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:1em}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1em}.role-selection[_ngcontent-%COMP%]{flex-grow:2}.controls[_ngcontent-%COMP%]{align-items:flex-end;justify-content:center}.divider[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:1em}"]}),n})();function Oe(n,r){1&n&&(t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.OR")," "))}function Ee(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-attribute-rights-collection",5),t.NdJ("collectionRemoved",function(){const o=t.CHM(e).index,v=t.oxw();return t.KtG(v.removeCollection(o))}),t.qZA(),t.YNc(2,Oe,3,3,"div",6),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw();t.xp6(1),t.Q6J("collection",e.action===a.action?e:null),t.xp6(1),t.Q6J("ngIf",i!==a.lastIndex&&e.action===a.action)}}let He=(()=>{class n{ngOnChanges(){this.lastIndex=this.findLastIndex()}addCollection(){this.collections.push({id:-1,attributeId:this.attributeId,action:this.action,policies:[{id:-1,role:null,object:null,policyCollectionId:-1}]}),this.lastIndex=this.findLastIndex()}removeCollection(e){this.collections.splice(e,1),this.lastIndex=this.findLastIndex()}findLastIndex(){let e=0;for(let i=0;i{class n{constructor(){this.collections=[],this.actionTabs=["READ","WRITE"]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-tab-group"]],inputs:{attDef:"attDef",collections:"collections"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["matTabLabel",""],[3,"attributeId","collections","action"]],template:function(e,i){1&e&&(t.TgZ(0,"mat-tab-group"),t.YNc(1,an,3,3,"mat-tab",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngForOf",i.actionTabs))},dependencies:[m.sg,jt.SP,jt.uD,jt.uX,He,u.X$]}),n})();var ln=s(10266),Tt=s(90455),Wt=s(4765);function ce(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.ALo(1,"translate"),t.TgZ(2,"mat-slide-toggle",2),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.attDef.unique=a)}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&n){const e=r.ngIf,i=t.oxw();t.s9C("matTooltip",t.lcZ(1,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.TOOLTIP")),t.Q6J("matTooltipDisabled",!e.disable),t.xp6(2),t.Q6J("ngModel",i.attDef.unique)("disabled",e.disable),t.xp6(1),t.hij(" ",t.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.UNIQUE")," ")}}const _e=function(n){return{disable:n}};let ee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-unique-toggle"]],inputs:{attDef:"attDef"},decls:2,vars:5,consts:[["class","unique-toggle-container","matTooltipPosition","above",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"unique-toggle-container",3,"matTooltipDisabled","matTooltip"],["color","accent","labelPosition","before",3,"ngModel","disabled","ngModelChange"]],template:function(e,i){1&e&&(t.YNc(0,ce,5,9,"div",0),t.ALo(1,"disableUniqueAttribute")),2&e&&t.Q6J("ngIf",t.VKq(3,_e,t.lcZ(1,1,i.attDef)))},dependencies:[m.O5,rt.JJ,rt.On,ln.gM,Tt.Rr,u.X$,Wt.b],styles:[".unique-toggle-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:1em 0;width:-moz-fit-content;width:fit-content;font-size:1.125rem}"]}),n})(),Ze=(()=>{class n{constructor(){this.readOperation=!1,this.writeOperation=!0,this.readOperationChanged=new t.vpe,this.writeOperationChanged=new t.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-critical-operations-toggles"]],inputs:{readOperation:"readOperation",writeOperation:"writeOperation"},outputs:{readOperationChanged:"readOperationChanged",writeOperationChanged:"writeOperationChanged"},decls:10,vars:11,consts:[["color","accent","labelPosition","before",1,"toggle-font",3,"ngModel","ngModelChange","toggleChange"],["alert_type","info"]],template:function(e,i){1&e&&(t.TgZ(0,"mat-slide-toggle",0),t.NdJ("ngModelChange",function(o){return i.readOperation=o})("toggleChange",function(){return i.readOperationChanged.emit(!i.readOperation)}),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"br"),t.TgZ(4,"mat-slide-toggle",0),t.NdJ("ngModelChange",function(o){return i.writeOperation=o})("toggleChange",function(){return i.writeOperationChanged.emit(!i.writeOperation)}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"perun-web-apps-alert",1),t._uU(8),t.ALo(9,"translate"),t.qZA()),2&e&&(t.Q6J("ngModel",i.readOperation),t.xp6(1),t.hij(" ",t.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_TOGGLE.READ"),"\n"),t.xp6(3),t.Q6J("ngModel",i.writeOperation),t.xp6(1),t.hij(" ",t.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_TOGGLE.WRITE"),"\n"),t.xp6(3),t.hij(" ",t.lcZ(9,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_TOGGLE.INFO"),"\n"))},dependencies:[rt.JJ,rt.On,K.w,Tt.Rr,u.X$],styles:[".toggle-font[_ngcontent-%COMP%]{font-size:1.125rem}"]}),n})(),Ye=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(".")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"attributeTypeClean",type:n,pure:!0}),n})();function Tn(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function oi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Mi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function mi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function gi(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Si(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function qi(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij("",e," ")}}function Fi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Ni(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e)," ")}}function _i(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Qi(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8)(1,"form",9)(2,"mat-form-field"),t._UZ(3,"input",10),t.ALo(4,"translate"),t.YNc(5,oi,3,3,"mat-error",11),t.qZA(),t.TgZ(6,"mat-form-field"),t._UZ(7,"input",12),t.ALo(8,"translate"),t.YNc(9,Mi,3,3,"mat-error",11),t.qZA(),t.TgZ(10,"mat-form-field")(11,"textarea",13),t.ALo(12,"translate"),t._uU(13," "),t.qZA(),t.YNc(14,mi,3,3,"mat-error",11),t.qZA(),t.TgZ(15,"mat-form-field")(16,"mat-select",14),t.ALo(17,"translate"),t.YNc(18,gi,2,2,"mat-option",15),t.qZA(),t.YNc(19,Si,3,3,"mat-error",11),t.qZA(),t.TgZ(20,"mat-form-field")(21,"mat-select",16),t.ALo(22,"translate"),t.YNc(23,qi,2,2,"mat-option",15),t.qZA(),t.YNc(24,Fi,3,3,"mat-error",11),t.qZA(),t.TgZ(25,"mat-form-field")(26,"mat-select",17),t.ALo(27,"translate"),t.YNc(28,Ni,3,4,"mat-option",15),t.qZA(),t.YNc(29,_i,3,3,"mat-error",11),t.qZA()(),t._UZ(30,"perun-web-apps-attribute-unique-toggle",18),t.ALo(31,"async"),t.TgZ(32,"perun-web-apps-attribute-critical-operations-toggles",19),t.NdJ("readOperationChanged",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.finalReadOperations=a)})("writeOperationChanged",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.finalWriteOperations=a)}),t.qZA(),t._UZ(33,"perun-web-apps-attribute-rights-tab-group",20),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,18,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","friendlyName")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,20,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","displayName")),t.xp6(2),t.s9C("placeholder",t.lcZ(12,22,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(2),t.s9C("placeholder",t.lcZ(17,24,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),t.xp6(2),t.Q6J("ngForOf",e.entities),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","entity")),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),t.xp6(2),t.Q6J("ngForOf",e.definitionTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","definitionType")),t.xp6(2),t.s9C("placeholder",t.lcZ(27,28,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),t.xp6(2),t.Q6J("ngForOf",e.valueTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","valueType")),t.xp6(1),t.Q6J("attDef",t.lcZ(31,30,e.attDef)),t.xp6(3),t.Q6J("collections",e.collections)}}let Ri=(()=>{class n{constructor(e,i,a,o,v,T,N){this.dialogRef=e,this.formBuilder=i,this.attributeService=a,this.attributeRightsService=o,this.notificator=v,this.translate=T,this.uniqueAttPipe=N,this.loading=!1,this.attributeControl=this.formBuilder.group({friendlyName:["",rt.kI.required],displayName:["",rt.kI.required],description:["",rt.kI.required],entity:["",rt.kI.required],definitionType:["",rt.kI.required],valueType:["",rt.kI.required]}),this.entities=["facility","resource","group","group_resource","host","member","member_group","member_resource","user","ues","user_facility","vo","entityless"],this.definitionTypes=["def","opt","virt","core"],this.valueTypes=["java.lang.String","java.lang.Integer","java.lang.Boolean","java.util.ArrayList","java.util.LinkedHashMap"],this.attDef=new E.X({id:0,beanName:"",namespace:"",unique:!1}),this.collections=[],this.attributeControl.valueChanges.pipe((0,q.b)(200)).subscribe(U=>{this.setAttribute(U)})}submit(){this.loading=!0,this.attributeService.createAttributeDefinition({attribute:this.attDef.getValue()}).pipe((0,F.w)(e=>(this.attDefCreated=e,wt((0,yt.of)(e.id),(0,yt.of)(this.collections)))),this.attributeRightsService.addAttributeId(),this.attributeRightsService.filterNullInPolicy(),(0,F.w)(e=>this.attributeService.setAttributePolicyCollections({policyCollections:e})),(0,F.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalReadOperations,!1,this.attDefCreated.id,H.oW.READ)),(0,F.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalWriteOperations,!0,this.attDefCreated.id,H.oW.WRITE))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}setAttribute(e){const i={id:0,beanName:"",friendlyName:e.friendlyName,displayName:e.displayName,description:e.description,type:e.valueType,namespace:this.createNamespace(e.entity,e.definitionType)};i.unique=this.attDef.getValue().unique&&!this.uniqueAttPipe.transform(i),this.attDef.next(i)}createNamespace(e,i){return"urn:perun:"+e+":attribute-def:"+i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(rt.QS),t.Y36(H.H8),t.Y36(Z.eE),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(Nt.bY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-create-attribute-definition-dialog"]],features:[t._Bn([Nt.bY])],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","create-attr-definition-button","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"dialog-container",3,"formGroup"],["matInput","","formControlName","friendlyName","data-cy","attribute-friendly-name-input","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","displayName","data-cy","attribute-display-name-input","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","data-cy","attribute-description-input","required","",3,"placeholder"],["formControlName","entity","data-cy","attribute-entity-input","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["formControlName","definitionType","data-cy","attribute-definition-type-input","required","",3,"placeholder"],["formControlName","valueType","data-cy","attribute-value-type-input","required","",3,"placeholder"],[3,"attDef"],[3,"readOperationChanged","writeOperationChanged"],[3,"collections"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Tn,1,0,"mat-spinner",2),t.YNc(5,Qi,34,32,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.submit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading||i.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},dependencies:[m.sg,m.O5,zt.ey,de.IC,ie.TO,ie.KE,Ot.Nt,rt._Y,rt.Fj,rt.JJ,rt.JL,rt.Q7,rt.sg,rt.u,G.lW,M.uh,M.xY,M.H8,te.gD,tt.Ou,be,ee,Ze,m.Ov,u.X$,Ye]}),n})();var fe=s(9244),Sn=s(10036);function ji(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function In(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field",10)(5,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.value=a)}),t.ALo(6,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.IMPORT_ATTRIBUTE.INFO")," "),t.xp6(3),t.Q6J("ngModel",e.value)("placeholder",t.lcZ(6,5,"DIALOGS.IMPORT_ATTRIBUTE.HINT"))}}let gn=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.notificator=i,this.translate=a,this.attributesManager=o,this.attributesRightsService=v,this.value="",this.loading=!1}create(){this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).pipe((0,F.w)(e=>wt((0,yt.of)(e.id),(0,yt.of)(this.attributeData.attributeRights))),this.attributesRightsService.addAttributeId(),(0,F.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.H8),t.Y36(Z.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attribute-import-dialog"]],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ji,1,0,"mat-spinner",2),t.YNc(5,In,7,7,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.dialogRef.close()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.create()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.IMPORT_ATTRIBUTE.TITLE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.IMPORT_ATTRIBUTE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===i.value.trim().length||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.IMPORT_ATTRIBUTE.CREATE")," "))},dependencies:[m.O5,ie.KE,Ot.Nt,rt.Fj,rt.JJ,rt.Q7,rt.On,G.lW,M.uh,M.xY,M.H8,tt.Ou,K.w,u.X$]}),n})();var sn=s(96308),zn=s(36769),li=s(68675),Ln=s(64425),we=s(37084),Bi=s(37433),Nn=s(56709),pn=s(43532),z=s(18750),X=s(9185),lt=s(8231),A=s(14849);function bt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",23)(1,"mat-checkbox",24),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(3);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&n){const e=t.oxw().ngIf,i=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",i.selection.hasValue()&&e.all)("indeterminate",i.selection.hasValue()&&!e.all)}}const Lt=function(n){return{name:n}};function Pt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",25)(1,"mat-checkbox",26),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(3);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,i.selection.isSelected(e)),t.VKq(7,Lt,e[0])))("checked",i.selection.isSelected(e))}}function Gt(n,r){1&n&&(t.ynx(0,20),t.YNc(1,bt,4,7,"th",21),t.YNc(2,Pt,4,9,"td",22),t.BQk())}function Jt(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.KEY")," "))}function Yt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",28)(1,"label")(2,"input",29),t.NdJ("ngModelChange",function(){const o=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.onValueChange(o))})("ngModelChange",function(a){const v=t.CHM(e).$implicit;return t.KtG(v[0]=a)}),t.qZA()()()}if(2&n){const e=r.$implicit;t.xp6(2),t.Q6J("ngModel",e[0])}}function Q(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.VALUE")," "))}function pt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",28)(1,"perun-web-apps-attribute-value",30),t.NdJ("sendEventToParent2",function(){const o=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.onValueChange(o))}),t.qZA()()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("attribute",e[1])}}function mt(n,r){1&n&&t._UZ(0,"tr",31)}function gt(n,r){1&n&&t._UZ(0,"tr",32)}const Ut=function(n){return{all:n}};function Xt(n,r){if(1&n&&(t.TgZ(0,"div",10)(1,"perun-web-apps-table-wrapper",11)(2,"table",12),t.YNc(3,Gt,3,0,"ng-container",13),t.ALo(4,"isAllSelected"),t.ynx(5,14),t.YNc(6,Jt,3,3,"th",15),t.YNc(7,Yt,3,1,"td",16),t.BQk(),t.ynx(8,17),t.YNc(9,Q,3,3,"th",15),t.YNc(10,pt,2,1,"td",16),t.BQk(),t.YNc(11,mt,1,0,"tr",18),t.YNc(12,gt,1,0,"tr",19),t.qZA()()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("pageSizeOptions",e.pageSizeOptions)("dataLength",e.dataSource.filteredData.length)("hideExport",!0)("tableId",e.tableId),t.xp6(1),t.Q6J("dataSource",e.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(11,Ut,t.xi3(4,8,e.dataSource,e.selection.selected.length))),t.xp6(8),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function kt(n,r){1&n&&t._UZ(0,"mat-spinner",33)}function le(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",34),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.NO_KEYS_WARNING")," "))}let O=(()=>{class n{constructor(e,i,a,o,v,T){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=v,this.cd=T,this.switchView=new t.vpe,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new R.by,this.selection=new B.Ov(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=fe.f7}set matSort(e){this.sort=e}ngOnChanges(){this.ngOnInit()}ngOnInit(){this.loading=!0,this.attDef=this.data.attDef,this.attributesManager.getEntitylessKeys(this.attDef.id).subscribe(e=>{this.attributesManager.getEntitylessAttributesByName(`${this.attDef.namespace}:${this.attDef.friendlyName}`).subscribe(i=>{let a=0;this.records=[];for(const o of e)this.records.push([o,i[a]]),a++;this.dataSource=new R.by(this.records),this.setDataSource(),this.loading=!1})})}setDataSource(){!this.child||!this.child.paginator||this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}onSave(){this.updateMapAttributes();for(const e of this.selection.selected)this.attributesManager.setEntitylessAttribute({key:e[0],attribute:e[1]}).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE_SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.ngOnInit()})});this.selection.clear(),this.isAddButtonDisabled=!1,this.cd.detectChanges()}onRemove(){for(const e of this.selection.selected)this.attributesManager.removeEntitylessAttribute(e[0],e[1].id).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE_SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.ngOnInit()})});this.ngOnInit(),this.selection.clear(),this.isAddButtonDisabled=!1,this.cd.detectChanges()}onAdd(){const e=["",this.attDef];e[1].value=void 0,this.records.unshift(e),this.dataSource.data=this.records,this.setDataSource(),this.selection.clear(),this.selection.select(e),this.isAddButtonDisabled=!0,this.cd.detectChanges()}onCancel(){this.dialogRef.close(!1)}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(e=>this.selection.select(e))}onValueChange(e){this.selection.select(e)}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}ngAfterViewInit(){this.children.changes.subscribe(e=>{this.child=e.first,this.dataSource.paginator=this.child.paginator}),this.setDataSource()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.H8),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(sn.YE,7),t.Gf(Bi.Mw,5),t.Gf(fe.l9,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.matSort=a.first),t.iGM(a=t.CRH())&&(i.items=a),t.iGM(a=t.CRH())&&(i.children=a)}},inputs:{attDef:"attDef",tableId:"tableId"},outputs:{switchView:"switchView"},features:[t.TTD],decls:19,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-actions","",1,"mt-3"],["mat-stroked-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["color","accent","matTooltip","save or remove new attribute first","mat-flat-button","","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-dialog-content","",1,"mt-3",3,"hidden"],["class","card mt-3",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn","class","mt-3",4,"ngIf"],[1,"card","mt-3"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortActive","key","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","key"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell",""],["mat-cell",""],["matInput","","placeholder","New key",1,"mt-2",3,"ngModel","ngModelChange"],[3,"attribute","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],[1,"ml-auto","mr-auto"],["alert_type","warn",1,"mt-3"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"button",2),t.NdJ("click",function(){return i.switchView.emit()}),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"div",6),t.YNc(16,Xt,13,13,"div",7),t.YNc(17,kt,1,0,"mat-spinner",8),t.YNc(18,le,3,3,"perun-web-apps-alert",9),t.qZA()),2&e&&(t.xp6(1),t.Oqu(i.attDef.namespace+":"+i.attDef.friendlyName),t.xp6(3),t.hij(" ",t.lcZ(5,11,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(8,13,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE")," "),t.xp6(2),t.Q6J("disabled",i.isAddButtonDisabled)("matTooltipDisabled",!i.isAddButtonDisabled),t.xp6(1),t.hij(" ",t.lcZ(11,15,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.ADD")," "),t.xp6(3),t.hij(" ",t.lcZ(14,17,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE")," "),t.xp6(2),t.Q6J("hidden",i.loading),t.xp6(1),t.Q6J("ngIf",i.records&&i.records.length),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",0===i.records.length))},dependencies:[m.O5,Ot.Nt,rt.Fj,rt.JJ,rt.On,G.lW,sn.YE,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,Nn.oG,M.uh,M.xY,M.H8,tt.Ou,ln.gM,K.w,pn.M,z.l,u.X$,X.I,lt.G,A.r],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),n})();var oe=s(60205);function Se(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function Ce(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Ke(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}const Pe=function(){return["id","name","enabled","script"]};function Be(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",11)(1,"form",12)(2,"mat-form-field"),t._UZ(3,"input",13),t.ALo(4,"translate"),t.YNc(5,Ce,3,3,"mat-error",1),t.qZA(),t.TgZ(6,"mat-form-field")(7,"textarea",14),t.ALo(8,"translate"),t._uU(9," "),t.qZA(),t.YNc(10,Ke,3,3,"mat-error",1),t.qZA()(),t.TgZ(11,"label",15),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",16),t._uU(15),t.TgZ(16,"mat-icon",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.copyUrn())}),t.ALo(17,"translate"),t._uU(18,"content_copy"),t.qZA()(),t._UZ(19,"perun-web-apps-attribute-unique-toggle",18),t.TgZ(20,"perun-web-apps-attribute-critical-operations-toggles",19),t.NdJ("readOperationChanged",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.finalReadOperations=a)})("writeOperationChanged",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.finalWriteOperations=a)}),t.qZA(),t._UZ(21,"perun-web-apps-attribute-rights-tab-group",20),t.ALo(22,"async"),t.TgZ(23,"mat-accordion")(24,"mat-expansion-panel",21)(25,"mat-expansion-panel-header")(26,"mat-panel-title"),t._uU(27),t.ALo(28,"translate"),t.qZA()(),t._UZ(29,"app-services-list",22),t.ALo(30,"async"),t.qZA()()()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,17,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","name")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,19,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(2),t.hij(" ",t.lcZ(13,21,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.URN")," "),t.xp6(3),t.hij(" ",e.urn," "),t.xp6(1),t.s9C("matTooltip",t.lcZ(17,23,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.URN_TOOLTIP")),t.xp6(3),t.Q6J("attDef",e.attDef),t.xp6(1),t.Q6J("readOperation",e.initReadOperations)("writeOperation",e.initWriteOperations),t.xp6(1),t.Q6J("attDef",e.attDef)("collections",t.lcZ(22,25,e.collections$)),t.xp6(6),t.hij(" ",t.lcZ(28,27,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")," "),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(31,Pe))("services",t.lcZ(30,29,e.services$))}}function ue(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.switchShowKeys())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SHOW_KEYS")," "))}function me(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"h1",2),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Se,1,0,"mat-spinner",3),t.YNc(5,Be,31,32,"div",4),t.TgZ(6,"div",5),t.YNc(7,ue,3,3,"button",6),t.TgZ(8,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCopy())}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(15),t.ALo(16,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,8,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(2),t.Q6J("ngIf","entityless"===(null==e.attDef?null:e.attDef.entity)),t.xp6(2),t.hij(" ",t.lcZ(10,10,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FOR_IMPORT")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(16,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function Fe(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"app-entityless-attribute-keys-list",24),t.NdJ("switchView",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.switchShowKeys())}),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("attDef",e.attDef)("tableId",e.tableId)}}let fn=(()=>{class n{constructor(e,i,a,o,v,T,N,U,J){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.clipboard=v,this.attributesManager=T,this.serviceService=N,this.formBuilder=U,this.attributeRightsService=J,this.tableId=Sn.Wv,this.loading=!1,this.showKeys=!1,this.attDef=this.data.attDef,this.attributeControl=this.formBuilder.group({name:[this.attDef.displayName,rt.kI.required],description:[this.attDef.description,rt.kI.required]}),this.urn=`${this.attDef.namespace}:${this.attDef.friendlyName}`,this.collections$=new E.X([]),this.services$=this.serviceService.getServicesByAttributeDefinition(this.attDef.id).pipe((0,li.O)([]))}ngOnInit(){this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attributesManager.getAttributeRules(this.attDef.id).subscribe(e=>{this.collections$=new E.X(e.attributePolicyCollections),this.initReadOperations=e.criticalActions.includes("READ"),this.initWriteOperations=e.criticalActions.includes("WRITE")})}onSubmit(){this.loading=!0,this.updateAttribute(),this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).pipe((0,F.w)(()=>(0,yt.of)(this.collections$.getValue())),this.attributeRightsService.filterNullInPolicy(),(0,F.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e})),(0,F.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalReadOperations,this.initReadOperations,this.attDef.id,H.oW.READ)),(0,F.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalWriteOperations,this.initWriteOperations,this.attDef.id,H.oW.WRITE))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}switchShowKeys(){this.showKeys=!this.showKeys,this.dialogRef.updateSize(this.showKeys?"800px":"700px")}copyUrn(){this.clipboard.copy(this.urn)?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}onCopy(){this.updateAttribute();const e={attributeDefinition:this.attDef,attributeRights:this.collections$.getValue()};this.clipboard.copy(JSON.stringify(e))?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}updateAttribute(){this.attDef.displayName=this.attributeControl.get("name").value,this.attDef.description=this.attributeControl.get("description").value}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(Ln.TU),t.Y36(H.H8),t.Y36(H.KK),t.Y36(rt.QS),t.Y36(Z.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-edit-attribute-definition-dialog"]],decls:3,vars:2,consts:[[1,"admin-theme"],[4,"ngIf"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"fields-container",3,"formGroup"],["matInput","","data-cy","display-name-input","formControlName","name","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","required","",3,"placeholder"],[1,"urn-name"],[1,"urn-row"],["matSuffix","",1,"copy-urn",3,"matTooltip","click"],[3,"attDef"],[3,"readOperation","writeOperation","readOperationChanged","writeOperationChanged"],[3,"attDef","collections"],[1,"mt-4","mb-4"],[3,"disableRouting","displayedColumns","services"],["mat-flat-button","",3,"click"],[3,"attDef","tableId","switchView"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,me,17,16,"div",1),t.YNc(2,Fe,2,2,"div",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",!i.showKeys),t.xp6(1),t.Q6J("ngIf",i.showKeys))},dependencies:[m.O5,de.IC,ie.TO,ie.KE,ie.R9,Ot.Nt,rt._Y,rt.Fj,rt.JJ,rt.JL,rt.Q7,rt.sg,rt.u,l.Hw,we.pp,we.ib,we.yz,we.yK,G.lW,M.uh,M.xY,M.H8,tt.Ou,ln.gM,be,ee,Ze,O,oe.Q,m.Ov,u.X$],styles:[".fields-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.urn-name[_ngcontent-%COMP%]{color:#0000008a;margin-bottom:0;font-size:small}.urn-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.copy-urn[_ngcontent-%COMP%]{cursor:pointer}"],data:{animation:[zn.SG,zn.GH,zn.Ls]}}),n})();var cn=s(70844),$e=s(64597);let Qe=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(":")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"nameSpaceToDef",type:n,pure:!0}),n})();function wn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",21)(1,"mat-checkbox",22),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&n){const e=t.oxw().ngIf,i=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",i.selection.hasValue()&&e.all)("indeterminate",i.selection.hasValue()&&!e.all)}}const Bn=function(n){return{name:n}};function Zn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",23)(1,"mat-checkbox",24),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(2);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"multiWordDataCy"),t.ALo(3,"translate"),t.ALo(4,"checkboxLabel"),t.ALo(5,"consentRelatedAttribute"),t.ALo(6,"translate"),t.ALo(7,"consentRelatedAttribute"),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q2q("data-cy","",t.lcZ(2,6,e.displayName),"-checkbox"),t.Q6J("aria-label",t.xi3(3,8,t.lcZ(4,11,i.selection.isSelected(e)),t.VKq(23,Bn,e.displayName)))("checked",i.selection.isSelected(e))("disabled",t.Dn7(5,13,e.namespace,i.serviceEnabled,i.consentRequired))("matTooltip",t.lcZ(6,17,"ADMIN.ATTRIBUTES.CONSENT_RELATED_DISABLED"))("matTooltipDisabled",!t.Dn7(7,19,e.namespace,i.serviceEnabled,i.consentRequired))}}function Hn(n,r){1&n&&(t.ynx(0,18),t.YNc(1,wn,4,7,"th",19),t.YNc(2,Zn,8,25,"td",20),t.BQk())}function Pi(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ID")," "))}function he(n,r){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function je(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_FRIENDLY_NAME")," "))}function vn(n,r){if(1&n&&(t.TgZ(0,"td",27),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&n){const e=r.$implicit;t.Q2q("data-cy","",t.lcZ(1,2,e.friendlyName),"-friendly-name"),t.xp6(2),t.hij(" ",e.friendlyName," ")}}function Cn(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DISPLAY_NAME")," "))}function $n(n,r){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.displayName," ")}}function ci(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ENTITY")," "))}function vi(n,r){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.entity)}}function Qn(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DEF")," "))}function Zi(n,r){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.ALo(2,"nameSpaceToDef"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.namespace))}}function jn(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_TYPE")," "))}function bi(n,r){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.type))}}function mn(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_UNIQUE")," "))}function un(n,r){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.unique)}}function ui(n,r){1&n&&t._UZ(0,"tr",28)}function Ji(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"tr",29),t.NdJ("click",function(){const o=t.CHM(e).$implicit,v=t.oxw();return t.KtG(v.onRowClick(o))}),t.qZA()}if(2&n){const e=t.oxw();t.ekj("cursor-pointer",!e.disableRouting)}}function hi(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.NO_ATTRIBUTES"),"\n"))}function Hi(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const On=function(n){return{all:n}};let di=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.authResolver=i,this.tableCheckbox=a,this.consentRelatedPipe=o,this.selection=new B.Ov(!0,[]),this.displayedColumns=["select","id","friendlyName","displayName","entity","namespace","type","unique"],this.disableRouting=!1,this.consentRequired=!1,this.serviceEnabled=!1,this.refreshEvent=new t.vpe,this.pageSizeOptions=fe.f7,this.canBeSelected=v=>!this.consentRelatedPipe.transform(v.namespace,this.serviceEnabled,this.consentRequired)}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"displayName":return e.displayName;case"entity":return e.entity;case"namespace":if(e.namespace){const a=e.namespace;return a.substring(a.lastIndexOf(":")+1,a.length)}return"";case"type":if(e.type){const a=e.type;return a.substring(a.lastIndexOf(".")+1,a.length)}return"";case"unique":return e.unique?"true":"false";default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new R.by(this.definitions),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){(0,fe.O6)((0,fe.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=i+this.dataSource.paginator.pageSize;(0,fe.O6)((0,fe.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,a),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,i)=>(0,fe.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,fe.pR)(e,i,n.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}onRowClick(e){if(!this.disableRouting){const i=(0,fe.kZ)();i.width="700px",i.data={attDef:e},this.dialog.open(fn,i).afterClosed().subscribe(o=>{o&&(this.selection.clear(),this.refreshEvent.emit())})}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.UA),t.Y36(cn.u))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attr-def-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(fe.l9,7),t.Gf(sn.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{definitions:"definitions",selection:"selection",displayedColumns:"displayedColumns",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting",consentRequired:"consentRequired",serviceEnabled:"serviceEnabled"},outputs:{refreshEvent:"refreshEvent"},features:[t.TTD],decls:31,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","displayName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["matColumnDef","entity"],["matColumnDef","namespace"],["matColumnDef","type"],["matColumnDef","unique"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","left","color","primary",3,"aria-label","checked","disabled","matTooltip","matTooltipDisabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)})("exportAllData",function(o){return i.exportAllData(o)}),t.TgZ(2,"div",2)(3,"table",3),t.YNc(4,Hn,3,0,"ng-container",4),t.ALo(5,"isAllSelected"),t.ynx(6,5),t.YNc(7,Pi,3,3,"th",6),t.YNc(8,he,2,1,"td",7),t.BQk(),t.ynx(9,8),t.YNc(10,je,3,3,"th",6),t.YNc(11,vn,3,4,"td",9),t.BQk(),t.ynx(12,10),t.YNc(13,Cn,3,3,"th",6),t.YNc(14,$n,2,1,"td",9),t.BQk(),t.ynx(15,11),t.YNc(16,ci,3,3,"th",6),t.YNc(17,vi,2,1,"td",9),t.BQk(),t.ynx(18,12),t.YNc(19,Qn,3,3,"th",6),t.YNc(20,Zi,3,3,"td",9),t.BQk(),t.ynx(21,13),t.YNc(22,jn,3,3,"th",6),t.YNc(23,bi,3,3,"td",9),t.BQk(),t.ynx(24,14),t.YNc(25,mn,3,3,"th",6),t.YNc(26,un,2,1,"td",9),t.BQk(),t.YNc(27,ui,1,0,"tr",15),t.YNc(28,Ji,1,2,"tr",16),t.qZA()()()(),t.YNc(29,hi,3,3,"perun-web-apps-alert",17),t.YNc(30,Hi,3,3,"perun-web-apps-alert",17)),2&e&&(t.Q6J("hidden",0===i.dataSource.filteredData.length||0===i.definitions.length),t.xp6(1),t.Q6J("pageSizeOptions",i.pageSizeOptions)("dataLength",i.dataSource.filteredData.length)("tableId",i.tableId),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(14,On,t.Dn7(5,10,i.dataSource,i.selection.selected.length,i.canBeSelected))),t.xp6(23),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.definitions.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.definitions.length))},dependencies:[m.O5,sn.YE,sn.nU,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,Nn.oG,ln.gM,K.w,z.l,u.X$,$e.R,X.I,lt.G,A.r,Ye,Qe,cn.u],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();var Ue=s(96214),Vn=s(7434);function nn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.CREATE")," "))}function Ti(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onImport())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.IMPORT")," "))}function kn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDelete())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.ATTRIBUTES.DELETE")," ")}}function b(n,r){1&n&&t._UZ(0,"mat-spinner",11)}function k(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",12),t.NdJ("refreshEvent",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshTable())}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("disableRouting",!e.authResolver.isPerunAdminOrObserver())("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let V=(()=>{class n{constructor(e,i,a){this.dialog=e,this.attributesManager=i,this.authResolver=a,this.attrDefinitions=[],this.selected=new B.Ov(!0,[]),this.filterValue="",this.tableId=Sn.uM}ngOnInit(){this.refreshTable()}onCreate(){const e=(0,fe.kZ)();e.width="650px",this.dialog.open(Ri,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,fe.kZ)();e.width="450px",e.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(nt,e).afterClosed().subscribe(a=>{a&&(this.refreshTable(),this.selected.clear())})}refreshTable(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}applyFilter(e){this.filterValue=e}onImport(){const e=(0,fe.kZ)();e.width="700px",this.dialog.open(gn,e).afterClosed().subscribe(a=>{!0===a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(H.H8),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-attributes"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","data-cy","new-attr-definition-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","data-cy","delete-attr-definition-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent",4,"ngIf"],["color","accent","data-cy","new-attr-definition-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","delete-attr-definition-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,nn,3,3,"button",2),t.YNc(6,Ti,3,3,"button",3),t.YNc(7,kn,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,b,1,0,"mat-spinner",6),t.YNc(10,k,1,5,"app-attr-def-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"ADMIN.ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.ATTRIBUTES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,di,Ue.t,Vn.L,u.X$]}),n})(),it=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-visualizer"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:1,vars:0,template:function(e,i){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[h.A]}),n})();var ht=s(9921);let xt=(()=>{class n{constructor(e){this.attributesManager=e}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(e=>{const i=e.graph.replace("\\t","").replace("\\n","").replace("\\","");(0,ht.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(i)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-attr-modules"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:4,vars:3,consts:[[1,"page-subtitle"],["id","dependenciesGraph",1,"card"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.VISUALIZER.ATTR_DEPENDENCIES.TITLE"),"\n"))},dependencies:[u.X$],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),n})(),Mt=(()=>{class n{constructor(){this.items=[{cssIcon:"perun-module-dependencies",url:"attrDependencies",label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",style:"admin-btn"},{cssIcon:"perun-user-destination-relationship",url:"userDestinationRelationship",label:"MENU_ITEMS.VISUALIZER.USER_DESTINATION",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.items)("size","small"))},dependencies:[L.L]}),n})();var Bt=s(71884),ae=s(18505),Ae=s(47957),We=s(71948),qe=s(86257);function Ie(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_USER"))}function Me(n,r){1&n&&t._UZ(0,"mat-spinner",17),2&n&&t.Q6J("diameter",20)("strokeWidth",2)}function _n(n,r){if(1&n&&(t.TgZ(0,"mat-option",18)(1,"span",19),t._uU(2),t.qZA(),t._uU(3),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e.firstName+" "+e.lastName),t.xp6(2),t.hij("#",e.id,""),t.xp6(1),t.AsE(" ",e.firstName," ",e.lastName," ")}}function Jn(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_DESTINATION"))}function tr(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_SERVICE"))}function xi(n,r){if(1&n&&(t.TgZ(0,"mat-radio-button",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}let Yn=(()=>{class n{constructor(e,i,a,o,v,T){this.usersService=e,this.translate=i,this.facilityManager=a,this.serviceService=o,this.router=v,this.notificator=T,this.searchField=new rt.p4,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe((0,q.b)(400),(0,Bt.x)(),(0,ae.b)(()=>this.loading=!0),(0,F.w)(e=>this.usersService.findUsers(e)),(0,ae.b)(()=>this.loading=!1)),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SELECT_NO_SERVICE").subscribe(e=>{this.noServiceText=e,this.availableServices.push(this.noServiceText)})}validateName(e){""!==this.searchField.value?this.usersService.findUsers(this.searchField.value).subscribe(i=>{for(const a of i){if((a.firstName+" "+a.lastName).toLowerCase()===this.searchField.value.toLowerCase()){this.selectedUser=a,e.selected.completed=!0,e.next();break}this.selectedUser=null}this.selectedUser||this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_NAME").subscribe(a=>{this.notificator.showError(a)})}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_NAME").subscribe(i=>{this.notificator.showError(i)})}validateDestination(e){""!==this.destination?(this.availableServices=[],this.availableServices.push(this.noServiceText),this.chosenService="",this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(i=>{if(0!==i.length){e.selected.completed=!0,e.next();for(const a of i)this.serviceService.getAllRichDestinationsForFacility(a.id).subscribe(o=>{for(const v of o)v.destination===this.destination&&(this.availableServices.includes(v.service.name)||this.availableServices.push(v.service.name))})}else this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_DESTINATION").subscribe(a=>{this.notificator.showError(a)})})):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_DESTINATION").subscribe(i=>{this.notificator.showError(i)})}getGraph(){""!==this.chosenService?this.router.navigate(["admin/visualizer/userDestinationRelationship/graph"],this.chosenService===this.noServiceText?{queryParams:{user:this.selectedUser.id,destination:this.destination,service:"noService"},queryParamsHandling:"merge"}:{queryParams:{user:this.selectedUser.id,destination:this.destination,service:this.chosenService},queryParamsHandling:"merge"}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NOT_CHOSEN_SERVICE").subscribe(e=>{this.notificator.showError(e)})}notCompleted(e){e.selected.completed=!1}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.Fv),t.Y36(u.sK),t.Y36(H.IQ),t.Y36(H.KK),t.Y36(p.F0),t.Y36(Z.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-relationship"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:46,vars:36,consts:[[1,"p-3","card","settings-card","col-12","col-xl-5"],[1,"page-subtitle"],["linear",""],["stepper",""],["completed","false"],["matStepLabel",""],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keydown.enter","ngModelChange"],["matSuffix","",3,"diameter","strokeWidth",4,"ngIf"],["align","start"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mt-2",3,"click"],["matInput","","type","text",3,"placeholder","ngModel","keydown.enter","ngModelChange"],["mat-stroked-button","","matStepperPrevious","",1,"mt-2"],[1,"mb-2",3,"ngModel","ngModelChange"],["class","flex-column d-flex","color","primary",3,"value",4,"ngFor","ngForOf"],["matSuffix","",3,"diameter","strokeWidth"],[3,"value"],[1,"text-muted"],["color","primary",1,"flex-column","d-flex",3,"value"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-vertical-stepper",2,3)(6,"mat-step",4),t.YNc(7,Ie,2,3,"ng-template",5),t.TgZ(8,"mat-form-field",6)(9,"input",7),t.NdJ("keydown.enter",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateName(v))})("ngModelChange",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.notCompleted(v))}),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Me,1,2,"mat-spinner",8),t.TgZ(12,"mat-hint",9),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-autocomplete",null,10),t.YNc(17,_n,4,4,"mat-option",11),t.ALo(18,"async"),t.qZA()(),t.TgZ(19,"div")(20,"button",12),t.NdJ("click",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateName(v))}),t._uU(21),t.ALo(22,"translate"),t.qZA()()(),t.TgZ(23,"mat-step",4),t.YNc(24,Jn,2,3,"ng-template",5),t.TgZ(25,"mat-form-field",6)(26,"input",13),t.NdJ("keydown.enter",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateDestination(v))})("ngModelChange",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.notCompleted(v))})("ngModelChange",function(v){return i.destination=v}),t.ALo(27,"translate"),t.qZA()(),t.TgZ(28,"div")(29,"button",14),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"button",12),t.NdJ("click",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateDestination(v))}),t._uU(33),t.ALo(34,"translate"),t.qZA()()(),t.TgZ(35,"mat-step"),t.YNc(36,tr,2,3,"ng-template",5),t.TgZ(37,"mat-radio-group",15),t.NdJ("ngModelChange",function(v){return i.chosenService=v}),t.YNc(38,xi,2,2,"mat-radio-button",16),t.qZA(),t.TgZ(39,"div")(40,"button",14),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"button",12),t.NdJ("click",function(){return i.getGraph()}),t._uU(44),t.ALo(45,"translate"),t.qZA()()()()()}if(2&e){const a=t.MAs(16);t.xp6(2),t.hij(" ",t.lcZ(3,16,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE")," "),t.xp6(7),t.s9C("placeholder",t.lcZ(10,18,"ADMIN.VISUALIZER.USER_DESTINATION.USER_EXAMPLE")),t.Q6J("formControl",i.searchField)("matAutocomplete",a),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(2),t.Oqu(t.lcZ(14,20,"ADMIN.VISUALIZER.USER_DESTINATION.USER_HINT")),t.xp6(4),t.Q6J("ngForOf",t.lcZ(18,22,i.users)),t.xp6(4),t.hij(" ",t.lcZ(22,24,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(5),t.s9C("placeholder",t.lcZ(27,26,"ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION_EXAMPLE")),t.Q6J("ngModel",i.destination),t.xp6(4),t.hij(" ",t.lcZ(31,28,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(34,30,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(4),t.Q6J("ngModel",i.chosenService),t.xp6(1),t.Q6J("ngForOf",i.availableServices),t.xp6(3),t.hij(" ",t.lcZ(42,32,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(45,34,"ADMIN.VISUALIZER.USER_DESTINATION.SUBMIT_BUTTON")," ")}},dependencies:[m.sg,m.O5,Ae.XC,Ae.ZL,zt.ey,ie.KE,ie.bx,ie.R9,Ot.Nt,rt.Fj,rt.JJ,rt.oH,rt.On,G.lW,tt.Ou,We.VQ,We.U0,qe.C0,qe.VY,qe.Vq,qe.fd,m.Ov,u.X$]}),n})();function Mn(n,r,e){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+r)/6,(n._y0+4*n._y1+e)/6)}function Kn(n){this._context=n}function Pn(n,r){this._basis=new Kn(n),this._beta=r}Kn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Mn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,r){switch(n=+n,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Mn(this,n,r)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=r}},Pn.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,r=this._y,e=n.length-1;if(e>0)for(var N,i=n[0],a=r[0],o=n[e]-i,v=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(N=T/e)*o),this._beta*r[T]+(1-this._beta)*(a+N*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const Ha=function n(r){function e(i){return 1===r?new Kn(i):new Pn(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var ea=s(77579),va=s(70655),Ve=s(37340);function Cr(){}function Vi(n){return null==n?Cr:function(){return this.querySelector(n)}}function y(){return[]}function S(n){return null==n?y:function(){return this.querySelectorAll(n)}}function $(n){return function(){return this.matches(n)}}function vt(n){return new Array(n.length)}function Rt(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function tn(n,r,e,i,a,o){for(var T,v=0,N=r.length,U=o.length;vr?1:n>=r?0:NaN}Rt.prototype={constructor:Rt,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,r){return this._parent.insertBefore(n,r)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var Ya="http://www.w3.org/1999/xhtml";const Hs={svg:"http://www.w3.org/2000/svg",xhtml:Ya,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xa(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Hs.hasOwnProperty(r)?{space:Hs[r],local:n}:n}function Lc(n){return function(){this.removeAttribute(n)}}function kc(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Ic(n,r){return function(){this.setAttribute(n,r)}}function Oc(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Mc(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Nc(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function Ys(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Fc(n){return function(){this.style.removeProperty(n)}}function Rc(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Bc(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function Mr(n,r){return n.style.getPropertyValue(r)||Ys(n).getComputedStyle(n,null).getPropertyValue(r)}function Vc(n){return function(){delete this[n]}}function Gc(n,r){return function(){this[n]=r}}function Uc(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Ws(n){return n.trim().split(/^|\s+/)}function Wa(n){return n.classList||new Xs(n)}function Xs(n){this._node=n,this._names=Ws(n.getAttribute("class")||"")}function $s(n,r){for(var e=Wa(n),i=-1,a=r.length;++i=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var Js={},Ar=null;function vu(n,r,e){return n=Ks(n,r,e),function(i){var a=i.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&n.call(this,i)}}function Ks(n,r,e){return function(i){var a=Ar;Ar=i;try{n.call(this,this.__data__,r,e)}finally{Ar=a}}}function xu(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function yu(n){return function(){var r=this.__on;if(r){for(var o,e=0,i=-1,a=r.length;e=$t&&($t=qt+1);!(De=_t[$t])&&++$t=0;)(v=i[a])&&(o&&4^v.compareDocumentPosition(o)&&o.parentNode.insertBefore(v,o),o=v);return this},sort:function Di(n){function r(ct,ot){return ct&&ot?n(ct.__data__,ot.__data__):!ct-!ot}n||(n=wr);for(var e=this._groups,i=e.length,a=new Array(i),o=0;o1?this.each((null==r?Fc:"function"==typeof r?Bc:Rc)(n,r,e??"")):Mr(this.node(),n)},property:function zc(n,r){return arguments.length>1?this.each((null==r?Vc:"function"==typeof r?Uc:Gc)(n,r)):this.node()[n]},classed:function Xc(n,r){var e=Ws(n+"");if(arguments.length<2){for(var i=Wa(this.node()),a=-1,o=e.length;++a0)for(var N,i=n[0],a=r[0],o=n[e]-i,v=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(N=T/e)*o),this._beta*r[T]+(1-this._beta)*(a+N*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const Su=function n(r){function e(i){return 1===r?new ya(i):new ro(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var Xa=Math.PI,$a=2*Xa,Sr=1e-6,Eu=$a-Sr;function Qa(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ao(){return new Qa}Qa.prototype=ao.prototype={constructor:Qa,moveTo:function(n,r){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,r){this._+="L"+(this._x1=+n)+","+(this._y1=+r)},quadraticCurveTo:function(n,r,e,i){this._+="Q"+ +n+","+ +r+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(n,r,e,i,a,o){this._+="C"+ +n+","+ +r+","+ +e+","+ +i+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function(n,r,e,i,a){var o=this._x1,v=this._y1,T=(e=+e)-(n=+n),N=(i=+i)-(r=+r),U=o-n,J=v-r,ct=U*U+J*J;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=n)+","+(this._y1=r);else if(ct>Sr)if(Math.abs(J*T-N*U)>Sr&&a){var ot=e-o,Ct=i-v,It=T*T+N*N,Ft=ot*ot+Ct*Ct,_t=Math.sqrt(It),Vt=Math.sqrt(ct),qt=a*Math.tan((Xa-Math.acos((It+ct-Ft)/(2*_t*Vt)))/2),$t=qt/Vt,ye=qt/_t;Math.abs($t-1)>Sr&&(this._+="L"+(n+$t*U)+","+(r+$t*J)),this._+="A"+a+","+a+",0,0,"+ +(J*ot>U*Ct)+","+(this._x1=n+ye*T)+","+(this._y1=r+ye*N)}else this._+="L"+(this._x1=n)+","+(this._y1=r)},arc:function(n,r,e,i,a,o){n=+n,r=+r,o=!!o;var v=(e=+e)*Math.cos(i),T=e*Math.sin(i),N=n+v,U=r+T,J=1^o,ct=o?i-a:a-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+N+","+U:(Math.abs(this._x1-N)>Sr||Math.abs(this._y1-U)>Sr)&&(this._+="L"+N+","+U),e&&(ct<0&&(ct=ct%$a+$a),ct>Eu?this._+="A"+e+","+e+",0,1,"+J+","+(n-v)+","+(r-T)+"A"+e+","+e+",0,1,"+J+","+(this._x1=N)+","+(this._y1=U):ct>Sr&&(this._+="A"+e+","+e+",0,"+ +(ct>=Xa)+","+J+","+(this._x1=n+e*Math.cos(a))+","+(this._y1=r+e*Math.sin(a))))},rect:function(n,r,e,i){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const Du=ao;function ba(n){return function(){return n}}function so(n){this._context=n}function Lu(n){return new so(n)}function ku(n){return n[0]}function Iu(n){return n[1]}so.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,r){switch(n=+n,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 1:this._point=2;default:this._context.lineTo(n,r)}}};var oo=Math.PI;function co(n){return(1-Math.cos(oo*n))/2}var Ta=s(25922),or=s(49194),ja=s(73339),Mu=(0,Ta.Z)("start","end","cancel","interrupt"),Nu=[];function Aa(n,r,e,i,a,o){var v=n.__transition;if(v){if(e in v)return}else n.__transition={};!function Pu(n,r,e){var a,i=n.__transition;function v(U){var J,ct,ot,Ct;if(1!==e.state)return N();for(J in i)if((Ct=i[J]).name===e.name){if(3===Ct.state)return(0,ja.Z)(v);4===Ct.state?(Ct.state=6,Ct.timer.stop(),Ct.on.call("interrupt",n,n.__data__,Ct.index,Ct.group),delete i[J]):+J0)throw new Error("too late; already scheduled");return e}function lr(n,r){var e=Ki(n,r);if(e.state>3)throw new Error("too late; already running");return e}function Ki(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function _r(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}var ia,es,go,Sa,fo=180/Math.PI,ts={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function mo(n,r,e,i,a,o){var v,T,N;return(v=Math.sqrt(n*n+r*r))&&(n/=v,r/=v),(N=n*e+r*i)&&(e-=n*N,i-=r*N),(T=Math.sqrt(e*e+i*i))&&(e/=T,i/=T,N/=T),n*i180?J+=360:J-U>180&&(U+=360),ot.push({i:ct.push(a(ct)+"rotate(",null,i)-2,x:_r(U,J)})):J&&ct.push(a(ct)+"rotate("+J+i)}(U.rotate,J.rotate,ct,ot),function T(U,J,ct,ot){U!==J?ot.push({i:ct.push(a(ct)+"skewX(",null,i)-2,x:_r(U,J)}):J&&ct.push(a(ct)+"skewX("+J+i)}(U.skewX,J.skewX,ct,ot),function N(U,J,ct,ot,Ct,It){if(U!==ct||J!==ot){var Ft=Ct.push(a(Ct)+"scale(",null,",",null,")");It.push({i:Ft-4,x:_r(U,ct)},{i:Ft-2,x:_r(J,ot)})}else(1!==ct||1!==ot)&&Ct.push(a(Ct)+"scale("+ct+","+ot+")")}(U.scaleX,U.scaleY,J.scaleX,J.scaleY,ct,ot),U=J=null,function(Ct){for(var _t,It=-1,Ft=ot.length;++It>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?Da(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?Da(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=Wu.exec(n))?new Ui(r[1],r[2],r[3],1):(r=Xu.exec(n))?new Ui(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=$u.exec(n))?Da(r[1],r[2],r[3],r[4]):(r=Qu.exec(n))?Da(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=ju.exec(n))?Ao(r[1],r[2]/100,r[3]/100,1):(r=Ju.exec(n))?Ao(r[1],r[2]/100,r[3]/100,r[4]):xo.hasOwnProperty(n)?To(xo[n]):"transparent"===n?new Ui(NaN,NaN,NaN,0):null}function To(n){return new Ui(n>>16&255,n>>8&255,255&n,1)}function Da(n,r,e,i){return i<=0&&(n=r=e=NaN),new Ui(n,r,e,i)}function qu(n){return n instanceof ra||(n=oa(n)),n?new Ui((n=n.rgb()).r,n.g,n.b,n.opacity):new Ui}function La(n,r,e,i){return 1===arguments.length?qu(n):new Ui(n,r,e,i??1)}function Ui(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function Co(){return"#"+rs(this.r)+rs(this.g)+rs(this.b)}function wo(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function rs(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function Ao(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new nr(n,r,e,i)}function So(n){if(n instanceof nr)return new nr(n.h,n.s,n.l,n.opacity);if(n instanceof ra||(n=oa(n)),!n)return new nr;if(n instanceof nr)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,a=Math.min(r,e,i),o=Math.max(r,e,i),v=NaN,T=o-a,N=(o+a)/2;return T?(v=r===o?(e-i)/T+6*(e0&&N<1?0:v,new nr(v,T,N,n.opacity)}function nr(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function as(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function Eo(n,r,e,i,a){var o=n*n,v=o*n;return((1-3*n+3*o-v)*r+(4-6*o+3*v)*e+(1+3*n+3*o-3*v)*i+v*a)/6}function Do(n){return function(){return n}}function ko(n,r){var e=r-n;return e?function Lo(n,r){return function(e){return n+e*r}}(n,e):Do(isNaN(n)?r:n)}is(ra,oa,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:yo,formatHex:yo,formatHsl:function Ku(){return So(this).formatHsl()},formatRgb:bo,toString:bo}),is(Ui,La,vo(ra,{brighter:function(n){return n=null==n?Ea:Math.pow(Ea,n),new Ui(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new Ui(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Co,formatHex:Co,formatRgb:wo,toString:wo})),is(nr,function th(n,r,e,i){return 1===arguments.length?So(n):new nr(n,r,e,i??1)},vo(ra,{brighter:function(n){return n=null==n?Ea:Math.pow(Ea,n),new nr(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new nr(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),r=isNaN(n)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*r,a=2*e-i;return new Ui(as(n>=240?n-240:n+120,a,i),as(n,a,i),as(n<120?n+240:n-120,a,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===n?")":", "+n+")")}}));const Io=function n(r){var e=function rh(n){return 1==(n=+n)?ko:function(r,e){return e-r?function ih(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):Do(isNaN(r)?e:r)}}(r);function i(a,o){var v=e((a=La(a)).r,(o=La(o)).r),T=e(a.g,o.g),N=e(a.b,o.b),U=ko(a.opacity,o.opacity);return function(J){return a.r=v(J),a.g=T(J),a.b=N(J),a.opacity=U(J),a+""}}return i.gamma=n,i}(1);function Oo(n){return function(r){var v,T,e=r.length,i=new Array(e),a=new Array(e),o=new Array(e);for(v=0;v=1?(e=1,r-1):Math.floor(e*r),a=n[i],o=n[i+1];return Eo((e-i/r)*r,i>0?n[i-1]:2*a-o,a,o,ie&&(o=r.slice(e,o),T[v]?T[v]+=o:T[++v]=o),(i=i[0])===(a=a[0])?T[v]?T[v]+=a:T[++v]=a:(T[++v]=null,N.push({i:v,x:_r(i,a)})),e=os.lastIndex;return e=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?qa:lr;return function(){var v=o(this,n),T=v.on;T!==i&&(a=(i=T).copy()).on(r,e),v.on=a}}var Rh=na.prototype.constructor;function No(n){return function(){this.style.removeProperty(n)}}function Hh(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function Yh(n,r,e){var i,a;function o(){var v=r.apply(this,arguments);return v!==a&&(i=(a=v)&&Hh(n,v,e)),i}return o._value=r,o}function jh(n){return function(r){this.textContent=n.call(this,r)}}function Jh(n){var r,e;function i(){var a=n.apply(this,arguments);return a!==e&&(r=(e=a)&&jh(a)),r}return i._value=n,i}var ed=0;function cr(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Po(){return++ed}var Pr=na.prototype;cr.prototype=function nd(n){return na().transition(n)}.prototype={constructor:cr,select:function Ph(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=Vi(n));for(var i=this._groups,a=i.length,o=new Array(a),v=0;v2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(a?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[v]):o=!1;o&&delete n.__transition}}(this,n)})},na.prototype.transition=function ad(n){var r,e;n instanceof cr?(r=n._id,n=n._name):(r=Po(),(e=ls).time=(0,or.zO)(),n=null==n?null:n+"");for(var i=this._groups,a=i.length,o=0;o"u"}function xd(n){if(Array.isArray(n)){for(var r=0,e=Array(n.length);r1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:n,b:0,d:1,f:r}}function ka(n,r){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(r).domain(n)}return this}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;const Go=Symbol("implicit");function cs(){var n=new Map,r=[],e=[],i=Go;function a(o){var v=o+"",T=n.get(v);if(!T){if(i!==Go)return i;n.set(v,T=r.push(o))}return e[(T-1)%e.length]}return a.domain=function(o){if(!arguments.length)return r.slice();r=[],n=new Map;for(const v of o){const T=v+"";n.has(T)||n.set(T,r.push(v))}return a},a.range=function(o){return arguments.length?(e=Array.from(o),a):e.slice()},a.unknown=function(o){return arguments.length?(i=o,a):i},a.copy=function(){return cs(r,e).unknown(i)},ka.apply(a,arguments),a}var Rr=s(59695);function Td(n,r){var e;function i(){var a,v,o=e.length,T=0,N=0;for(a=0;a=(ct=(T+U)/2))?T=ct:U=ct,(_t=e>=(ot=(N+J)/2))?N=ot:J=ot,a=o,!(o=o[Vt=_t<<1|Ft]))return a[Vt]=v,n;if(Ct=+n._x.call(null,o.data),It=+n._y.call(null,o.data),r===Ct&&e===It)return v.next=o,a?a[Vt]=v:n._root=v,n;do{a=a?a[Vt]=new Array(4):n._root=new Array(4),(Ft=r>=(ct=(T+U)/2))?T=ct:U=ct,(_t=e>=(ot=(N+J)/2))?N=ot:J=ot}while((Vt=_t<<1|Ft)==(qt=(It>=ot)<<1|Ct>=ct));return a[qt]=o,a[Vt]=v,n}function Li(n,r,e,i,a){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=a}function Pd(n){return n[0]}function Rd(n){return n[1]}function us(n,r,e){var i=new hs(r??Pd,e??Rd,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function hs(n,r,e,i,a,o){this._x=n,this._y=r,this._x0=e,this._y0=i,this._x1=a,this._y1=o,this._root=void 0}function zo(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var ki=us.prototype=hs.prototype;function Zd(n){return n.x+n.vx}function Vd(n){return n.y+n.vy}function Ho(n){var r,e,i=1,a=1;function o(){for(var N,J,ct,ot,Ct,It,Ft,U=r.length,_t=0;_tot+yn||DeCt+yn||gect.index){var En=ot-en.x-en.vx,Dn=Ct-en.y-en.vy,Xn=En*En+Dn*Dn;XnN.r&&(N.r=N[U].r)}function T(){if(r){var N,J,U=r.length;for(e=new Array(U),N=0;NJ&&(J=a),oct&&(ct=o));if(N>J||U>ct)return this;for(this.cover(N,U).cover(J,ct),e=0;en||n>=a||i>r||r>=o;)switch(U=(rJ||(T=It.y0)>ct||(N=It.x1)=Vt)<<1|n>=_t)&&(It=ot[ot.length-1],ot[ot.length-1]=ot[ot.length-1-Ft],ot[ot.length-1-Ft]=It)}else{var qt=n-+this._x.call(null,Ct.data),$t=r-+this._y.call(null,Ct.data),ye=qt*qt+$t*$t;if(ye=(ot=(v+N)/2))?v=ot:N=ot,(Ft=ct>=(Ct=(T+U)/2))?T=Ct:U=Ct,r=e,!(e=e[_t=Ft<<1|It]))return this;if(!e.length)break;(r[_t+1&3]||r[_t+2&3]||r[_t+3&3])&&(i=r,Vt=_t)}for(;e.data!==n;)if(a=e,!(e=e.next))return this;return(o=e.next)&&delete e.next,a?(o?a.next=o:delete a.next,this):r?(o?r[_t]=o:delete r[_t],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[Vt]=e:this._root=e),this):(this._root=o,this)},ki.removeAll=function kd(n){for(var r=0,e=n.length;r1?(null==Ft?T.remove(It):T.set(It,Ct(Ft)),r):T.get(It)},find:function(It,Ft,_t){var $t,ye,De,ge,en,Vt=0,qt=n.length;for(null==_t?_t=1/0:_t*=_t,Vt=0;Vt1?(U.on(It,Ft),r):U.on(It)}}}function Jo(){var n,r,e,a,i=ti(-30),o=1,v=1/0,T=.81;function N(ot){var Ct,It=n.length,Ft=us(n,Yd,Wd).visitAfter(J);for(e=ot,Ct=0;Ct=v)){(ot.data!==r||ot.next)&&(0===_t&&($t+=(_t=vr())*_t),0===Vt&&($t+=(Vt=vr())*Vt),$t{return(n=Br||(Br={})).Both="both",n.Horizontal="horizontal",n.Vertical="vertical",Br;var n})(),Zr=(()=>{return(n=Zr||(Zr={})).UpperLeft="UpperLeft",n.UpperRight="UpperRight",Zr;var n})();function Ap(n,r,e){e=e||{};let i,a,o,v=null,T=0;function N(){T=!1===e.leading?0:+new Date,v=null,o=n.apply(i,a)}return function(...U){const J=+new Date;!T&&!1===e.leading&&(T=J);const ct=r-(J-T);return i=this,a=U,ct<=0?(clearTimeout(v),v=null,T=J,o=n.apply(i,a)):!v&&!1!==e.trailing&&(v=setTimeout(N,ct)),o}}function Sp(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:Ap(o.value,n,r)}),this[a]}}}}const qo=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Ep{constructor(r,e,i){"string"==typeof r&&(r=qo.find(a=>a.name===r)),this.colorDomain=r.domain,this.domain=e,this.customColors=i,this.scale=this.generateColorScheme(r,this.domain)}generateColorScheme(r,e){return"string"==typeof r&&(r=qo.find(i=>i.name===r)),cs().range(r.domain).domain(e)}getColor(r){if(null==r)throw new Error("Value can not be null");if("function"==typeof this.customColors)return this.customColors(r);const e=r.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(a=>a.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(r)}}let Lp=(()=>{class n{constructor(e,i){this.element=e,this.zone=i,this.visible=new t.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:a}=this.element.nativeElement;i&&a?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),n})();var Vr=(()=>{return(n=Vr||(Vr={})).LEFT_TO_RIGHT="LR",n.RIGHT_TO_LEFT="RL",n.TOP_TO_BOTTOM="TB",n.BOTTOM_TO_TOM="BT",Vr;var n})();function Gr(n){return"string"==typeof n?{id:n,x:0,y:0}:n}function el(n,r){return"number"==typeof r?n[r]:r}const nl={dagre:class kp{constructor(){this.defaultSettings={orientation:Vr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Rr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}return r}updateEdge(r,e){const i=r.nodes.find(N=>N.id===e.source),a=r.nodes.find(N=>N.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Rr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreCluster:class Ip{constructor(){this.defaultSettings={orientation:Vr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Rr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const a=this.dagreGraph._nodes[i.id];return{...i,position:{x:a.x,y:a.y},dimension:{width:a.width,height:a.height}}};return r.clusters=(r.clusters||[]).map(e),r.nodes=r.nodes.map(e),r}updateEdge(r,e){const i=r.nodes.find(N=>N.id===e.source),a=r.nodes.find(N=>N.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Rr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreClusters=r.clusters||[],this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)this.dagreGraph.setNode(i.id,i);for(const i of this.dagreClusters)this.dagreGraph.setNode(i.id,i),i.childNodeIds.forEach(a=>{this.dagreGraph.setParent(a,i.id)});for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreNodesOnly:class Mp{constructor(){this.defaultSettings={orientation:Vr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Rr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}for(const e of r.edges)this.updateEdge(r,e);return r}updateEdge(r,e){const i=r.nodes.find(It=>It.id===e.source),a=r.nodes.find(It=>It.id===e.target),o="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",v="y"===o?"x":"y",T="y"===o?"height":"width",N=i.position[o]<=a.position[o]?-1:1,U={[v]:i.position[v],[o]:i.position[o]-N*(i.dimension[T]/2)},J={[v]:a.position[v],[o]:a.position[o]+N*(a.dimension[T]/2)},ct=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[U,{[v]:U[v],[o]:U[o]-N*ct},{[v]:J[v],[o]:J[o]+N*ct},J];const Ct=r.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return Ct&&(Ct.points=e.points),r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Rr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},d3ForceDirected:class Np{constructor(){this.defaultSettings={force:jo().force("charge",Jo().strength(-150)).force("collide",Ho(5)),forceLink:Qo().id(r=>r.id).distance(()=>100)},this.settings={},this.outputGraph$=new ea.x}run(r){return this.inputGraph=r,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>({...e}))],edges:[...this.inputGraph.edges.map(e=>({...e}))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.nodes(this.d3Graph.nodes).force("link",i.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(r){return this.outputGraph.nodes=this.d3Graph.nodes.map(e=>({...e,id:e.id||ur(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(e=>({...e,source:Gr(e.source).id,target:Gr(e.target).id,points:[{x:Gr(e.source).x,y:Gr(e.source).y},{x:Gr(e.target).x,y:Gr(e.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){this.settings.force.alphaTarget(.3).restart();const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.draggingStart={x:e.x-i.x,y:e.y-i.y},i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDrag(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDragEnd(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.settings.force.alphaTarget(0),i.fx=void 0,i.fy=void 0)}},colaForceDirected:class Pp{constructor(){this.defaultSettings={force:(0,Kd.d3adaptor)({...x,...c,..._}).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new ea.x}run(r){return this.inputGraph=r,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>({...e,width:e.dimension?e.dimension.width:20,height:e.dimension?e.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(e=>({padding:5,groups:e.childNodeIds.map(i=>this.inputGraph.clusters.findIndex(a=>a.id===i)).filter(i=>i>=0),leaves:e.childNodeIds.map(i=>this.inputGraph.nodes.findIndex(a=>a.id===i)).filter(i=>i>=0)}))],links:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(-1!==i&&-1!==a)return{...e,source:i,target:a}}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(!(i>=0&&a>=0))return e}).filter(e=>!!e)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(r){return this.outputGraph.nodes=r.nodes.map(e=>({...e,id:e.id||ur(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=r.links.map(e=>{const i=el(r.nodes,e.source),a=el(r.nodes,e.target);return{...e,source:i.id,target:a.id,points:[i.bounds.rayIntersection(a.bounds.cx(),a.bounds.cy()),a.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]}}).concat(r.groupLinks.map(e=>{const i=r.nodes.find(T=>T.id===e.source),a=r.nodes.find(T=>T.id===e.target),o=i||r.groups.find(T=>T.id===e.source),v=a||r.groups.find(T=>T.id===e.target);return{...e,source:o.id,target:v.id,points:[o.bounds.rayIntersection(v.bounds.cx(),v.bounds.cy()),v.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy())]}})),this.outputGraph.clusters=r.groups.map((e,i)=>({...this.inputGraph.clusters[i],dimension:{width:e.bounds?e.bounds.width():20,height:e.bounds?e.bounds.height():20},position:{x:e.bounds?e.bounds.x+e.bounds.width()/2:0,y:e.bounds?e.bounds.y+e.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(this.draggingStart={x:a.x-e.x,y:a.y-e.y},a.fixed=1,this.settings.force.start())}onDrag(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.x=this.draggingStart.x+e.x,a.y=this.draggingStart.y+e.y)}onDragEnd(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.fixed=0)}}};let il=(()=>{class n{getLayout(e){if(nl[e])return new nl[e];throw new Error(`Unknown layout type '${e}'`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Fp=(()=>{class n{constructor(){this.mouseWheelUp=new t.vpe,this.mouseWheelDown=new t.vpe}onMouseWheelChrome(e){this.mouseWheelFunc(e)}onMouseWheelFirefox(e){this.mouseWheelFunc(e)}onWheel(e){this.mouseWheelFunc(e)}onMouseWheelIE(e){this.mouseWheelFunc(e)}mouseWheelFunc(e){window.event&&(e=window.event);const i=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail||e.deltaY||e.deltaX)),o=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):o&&this.mouseWheelDown.emit(e),e.returnValue=!1,e.preventDefault&&e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","mouseWheel",""]],hostBindings:function(e,i){1&e&&t.NdJ("mousewheel",function(o){return i.onMouseWheelChrome(o)})("DOMMouseScroll",function(o){return i.onMouseWheelFirefox(o)})("wheel",function(o){return i.onWheel(o)})("onmousewheel",function(o){return i.onMouseWheelIE(o)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),n})(),Rp=(()=>{class n{constructor(e,i,a,o){this.el=e,this.zone=i,this.cd=a,this.layoutService=o,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Br.Both,this.enableZoom=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.autoZoom=!1,this.panOnZoom=!0,this.animate=!1,this.autoCenter=!1,this.enableTrackpadSupport=!1,this.showMiniMap=!1,this.miniMapMaxWidth=100,this.miniMapPosition=Zr.UpperRight,this.scheme="cool",this.animations=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.zoomChange=new t.vpe,this.clickHandler=new t.vpe,this.isMouseMoveCalled=!1,this.graphSubscription=new Fo.w0,this.subscriptions=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.oldClusters=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.minimapScaleCoefficient=3,this.minimapOffsetX=0,this.minimapOffsetY=0,this.isMinimapPanning=!1,this.groupResultsBy=v=>v.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(e){this.zoomTo(Number(e))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(e){this.panTo(Number(e),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(e){this.panTo(null,Number(e))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(e=>{this.panToNodeId(e)})),this.minimapClipPathId=`minimapClip${ur()}`}ngOnChanges(e){this.basicUpdate();const{layoutSettings:a}=e;this.setLayout(this.layout),a&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(e){this.initialized=!1,e||(e="dagre"),"string"==typeof e&&(this.layout=this.layoutService.getLayout(e),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(e){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=e)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy());for(const e of this.subscriptions)e.unsubscribe();this.subscriptions=null}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Lp(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=Su.beta(1)),this.zone.run(()=>{this.dims=function Dp({width:n,height:r}){let e=n,i=r;return e=Math.max(0,e),i=Math.max(0,i),{width:Math.floor(e),height:Math.floor(i)}}({width:this.width,height:this.height}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new Fo.w0;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=ur()),i.dimension?i.meta.forceDimensions=void 0===i.meta.forceDimensions||i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position={x:0,y:0},i.data=i.data?i.data:{},i);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(e):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(e):[],edges:this.links.length>0?[...this.links].map(i=>(i.id||(i.id=ur()),i)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const e=this.layout.run(this.graph),i=e instanceof ut.y?e:(0,yt.of)(e);this.graphSubscription.add(i.subscribe(a=>{this.graph=a,this.tick()})),0!==this.graph.nodes.length&&i.pipe((0,od.P)()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),e.add(o.id)});const i=new Set;(this.graph.clusters||[]).map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),i.add(o.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const a=[];for(const o in this.graph.edgeLabels){const v=this.graph.edgeLabels[o],T=o.replace(/[^\w-]*/g,""),N=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let U=this._oldLinks.find(N?Ft=>`${Ft.source}${Ft.target}${Ft.id}`===T:Ft=>`${Ft.source}${Ft.target}`===T);const J=this.graph.edges.find(N?Ft=>`${Ft.source}${Ft.target}${Ft.id}`===T:Ft=>`${Ft.source}${Ft.target}`===T);U?U.data&&J&&J.data&&JSON.stringify(U.data)!==JSON.stringify(J.data)&&(U.data=J.data):U=J||v,U.oldLine=U.line;const ct=v.points,ot=this.generateLine(ct),Ct=Object.assign({},U);Ct.line=ot,Ct.points=ct,this.updateMidpointOnEdge(Ct,ct);const It=ct[Math.floor(ct.length/2)];It&&(Ct.textTransform=`translate(${It.x||0},${It.y||0})`),Ct.textAngle=0,Ct.oldLine||(Ct.oldLine=Ct.line),this.calcDominantBaseline(Ct),a.push(Ct)}this.graph.edges=a,this.graph.edges&&(this._oldLinks=this.graph.edges.map(o=>{const v=Object.assign({},o);return v.oldLine=o.line,v})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Zr.UpperLeft:return"";case Zr.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let e=1/0,i=-1/0,a=1/0,o=-1/0;for(let v=0;vi?T.position.x+T.dimension.width:i,o=T.position.y+T.dimension.height>o?T.position.y+T.dimension.height:o}e-=100,a-=100,i+=100,o+=100,this.graphDims.width=i-e,this.graphDims.height=o-a,this.minimapOffsetX=e,this.minimapOffsetY=a}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(e=>{const i=e.nativeElement,a=this.graph.nodes.find(v=>v.id===i.id);if(!a)return;let o;try{if(o=i.getBBox(),!o.width||!o.height)return}catch{return}if(a.dimension.height=this.nodeHeight?a.dimension.height&&a.meta.forceDimensions?a.dimension.height:this.nodeHeight:a.dimension.height&&a.meta.forceDimensions?a.dimension.height:o.height,this.nodeMaxHeight&&(a.dimension.height=Math.max(a.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(a.dimension.height=Math.min(a.dimension.height,this.nodeMinHeight)),this.nodeWidth)a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:this.nodeWidth;else if(i.getElementsByTagName("text").length){let v;try{for(const T of i.getElementsByTagName("text")){const N=T.getBBox();v?(N.width>v.width&&(v.width=N.width),N.height>v.height&&(v.height=N.height)):v=N}}catch{return}a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:v.width+20}else a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:o.width;this.nodeMaxWidth&&(a.dimension.width=Math.max(a.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(a.dimension.width=Math.min(a.dimension.width,this.nodeMinWidth))})}redrawLines(e=this.animate){this.linkElements.map(i=>{const a=this.graph.edges.find(o=>o.id===i.nativeElement.id);a&&(no(i.nativeElement).select(".line").attr("d",a.oldLine).transition().ease(co).duration(e?500:0).attr("d",a.line),no(this.el.nativeElement).select(`#${a.id}`).attr("d",a.oldTextPath).transition().ease(co).duration(e?500:0).attr("d",a.textPath),this.updateMidpointOnEdge(a,a.points))})}calcDominantBaseline(e){const i=e.points[0],a=e.points[e.points.length-1];e.oldTextPath=e.textPath,a.xa.x).y(a=>a.y).curve(this.curve)(e)}onZoom(e,i){if(this.enableTrackpadSupport&&!e.ctrlKey)return void this.pan(-1*e.deltaX,-1*e.deltaY);const a=1+("in"===i?this.zoomSpeed:-this.zoomSpeed),o=this.zoomLevel*a;if(!(o<=this.minZoomLevel||o>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const v=e.clientX,T=e.clientY,N=this.el.nativeElement.querySelector("svg"),U=N.querySelector("g.chart"),J=N.createSVGPoint();J.x=v,J.y=T;const ct=J.matrixTransform(U.getScreenCTM().inverse());this.pan(ct.x,ct.y,!0),this.zoom(a),this.pan(-ct.x,-ct.y,!0)}else this.zoom(a)}pan(e,i,a=!1){const o=a?1:this.zoomLevel;this.transformationMatrix=la(this.transformationMatrix,Vo(e/o,i/o)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=la(this.transformationMatrix,Vo((-this.panOffsetX-e*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-i*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(e){this.transformationMatrix=la(this.transformationMatrix,function gd(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return md(r)&&(r=n),{a:n,c:0,e:0,b:0,d:r,f:0}}(e,e)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(e){this.transformationMatrix.a=isNaN(e)?this.transformationMatrix.a:Number(e),this.transformationMatrix.d=isNaN(e)?this.transformationMatrix.d:Number(e),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(e){if(!this.draggingEnabled)return;const i=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(i,e),i.position.x+=e.movementX/this.zoomLevel,i.position.y+=e.movementY/this.zoomLevel,i.transform=`translate(${i.position.x-i.dimension.width/2}, ${i.position.y-i.dimension.height/2})`;for(const v of this.graph.edges)if((v.target===i.id||v.source===i.id||v.target.id===i.id||v.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const T=this.layout.updateEdge(this.graph,v),N=T instanceof ut.y?T:(0,yt.of)(T);this.graphSubscription.add(N.subscribe(U=>{this.graph=U,this.redrawEdge(v)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(e){const i=this.generateLine(e.points);this.calcDominantBaseline(e),e.oldLine=e.line,e.line=i}updateTransform(){this.transform=function vd(n){return function Zo(n){return"matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")"}(n)}(function bd(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(n.a*r)/r,b:Math.round(n.b*r)/r,c:Math.round(n.c*r)/r,d:Math.round(n.d*r)/r,e:Math.round(n.e*r)/r,f:Math.round(n.f*r)/r}}(this.transformationMatrix,100))}onClick(e){this.select.emit(e)}onActivate(e){this.activeEntries.indexOf(e)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.indexOf(e);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(e=>this.groupResultsBy(e)).reduce((e,i)=>-1!==e.indexOf(i)?e:e.concat([i]),[]).sort()}trackLinkBy(e,i){return i.id}trackNodeBy(e,i){return i.id}setColors(){this.colors=new Ep(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(e){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,e):this.isDragging&&this.draggingEnabled&&this.onDrag(e)}onMouseDown(e){this.isMouseMoveCalled=!1}graphClick(e){this.isMouseMoveCalled||this.clickHandler.emit(e)}onTouchStart(e){this._touchLastX=e.changedTouches[0].clientX,this._touchLastY=e.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(e){if(this.isPanning&&this.panningEnabled){const i=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY,o=i-this._touchLastX,v=a-this._touchLastY;this._touchLastX=i,this._touchLastY=a,this.pan(o,v)}}onTouchEnd(e){this.isPanning=!1}onMouseUp(e){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,e)}onNodeMouseDown(e,i){!this.draggingEnabled||(this.isDragging=!0,this.draggingNode=i,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(i,e))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(e){this.panTo((e.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(e.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let a=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);athis.maxZoomLevel&&(a=this.maxZoomLevel),a!==this.zoomLevel&&(this.zoomLevel=a,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(e){const i=this.graph.nodes.find(a=>a.id===e);!i||this.panTo(i.position.x,i.position.y)}panWithConstraints(e,i){let a=i.movementX,o=i.movementY;switch(this.isMinimapPanning&&(a=-this.minimapScaleCoefficient*a*this.zoomLevel,o=-this.minimapScaleCoefficient*o*this.zoomLevel),e){case Br.Horizontal:this.pan(a,0);break;case Br.Vertical:this.pan(0,o);break;default:this.pan(a,o)}}updateMidpointOnEdge(e,i){if(e&&i)if(i.length%2==1)e.midPoint=i[Math.floor(i.length/2)];else{const a=i[i.length/2],o=i[i.length/2-1];e.midPoint={x:(a.x+o.x)/2,y:(a.y+o.y)/2}}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const a=this.el.nativeElement;if(null!==a.parentNode){const o=a.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=(0,Ro.R)(window,"resize").pipe((0,q.b)(200)).subscribe(a=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(il))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-graph"]],contentQueries:function(e,i,a){if(1&e&&(t.Suo(a,tp,5),t.Suo(a,ep,5),t.Suo(a,np,5),t.Suo(a,ip,5),t.Suo(a,rp,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.linkTemplate=o.first),t.iGM(o=t.CRH())&&(i.nodeTemplate=o.first),t.iGM(o=t.CRH())&&(i.clusterTemplate=o.first),t.iGM(o=t.CRH())&&(i.defsTemplate=o.first),t.iGM(o=t.CRH())&&(i.miniMapNodeTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&(t.Gf(ap,5),t.Gf(sp,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.nodeElements=a),t.iGM(a=t.CRH())&&(i.linkElements=a)}},hostBindings:function(e,i){1&e&&t.NdJ("mousemove",function(o){return i.onMouseMove(o)},!1,t.evT)("mousedown",function(o){return i.onMouseDown(o)},!1,t.evT)("click",function(o){return i.graphClick(o)},!1,t.evT)("touchmove",function(o){return i.onTouchMove(o)},!1,t.evT)("mouseup",function(o){return i.onMouseUp(o)},!1,t.evT)},inputs:{nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",animations:"animations",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[t.TTD],ngContentSelectors:wp,decls:6,vars:11,consts:[["mouseWheel","",1,"ngx-charts-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-charts"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"id","click"],["clusterElement",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"link-group",3,"id"],["linkElement",""],["class","edge",4,"ngIf"],[1,"edge"],[1,"node-group",3,"id","click","mousedown"],["nodeElement",""],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(e,i){1&e&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("mouseWheelUp",function(o){return i.onZoom(o,"in")})("mouseWheelDown",function(o){return i.onZoom(o,"out")}),t.O4$(),t.TgZ(1,"svg",1),t.YNc(2,vp,12,12,"g",2),t.TgZ(3,"clipPath"),t._UZ(4,"rect"),t.qZA(),t.YNc(5,Cp,6,15,"g",3),t.qZA()()),2&e&&(t.Udp("width",i.width,"px"),t.Q6J("@animationState","active")("@.disabled",!i.animations),t.xp6(1),t.uIk("width",i.width)("height",i.height),t.xp6(1),t.Q6J("ngIf",i.initialized&&i.graph),t.xp6(1),t.uIk("id",i.minimapClipPathId),t.xp6(1),t.uIk("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),t.xp6(1),t.Q6J("ngIf",i.showMiniMap))},dependencies:[Fp,m.O5,m.tP,m.sg],styles:[".minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}\n"],encapsulation:2,data:{animation:[(0,Ve.X$)("animationState",[(0,Ve.eR)(":enter",[(0,Ve.oB)({opacity:0}),(0,Ve.jt)("500ms 100ms",(0,Ve.oB)({opacity:1}))])])]},changeDetection:0}),(0,va.gn)([Sp(500)],n.prototype,"updateMinimap",null),n})(),Bp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[il],imports:[[m.ez]]}),n})(),Zp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez],Bp]}),n})();var rl=s(84080);s(52016),s(56758),s(37656),s(29132),s(18429);Math;function ua(n){return{type:n}}function fl(n,r){return nr?1:n>=r?0:NaN}function xs(n){let r=n,e=n;function i(v,T,N,U){for(null==N&&(N=0),null==U&&(U=v.length);N>>1;e(v[J],T)<0?N=J+1:U=J}return N}return 1===n.length&&(r=(v,T)=>n(v)-T,e=function jp(n){return(r,e)=>fl(n(r),e)}(n)),{left:i,center:function o(v,T,N,U){null==N&&(N=0),null==U&&(U=v.length);const J=i(v,T,N,U-1);return J>N&&r(v[J-1],T)>-r(v[J],T)?J-1:J},right:function a(v,T,N,U){for(null==N&&(N=0),null==U&&(U=v.length);N>>1;e(v[J],T)>0?U=J:N=J+1}return N}}}["w","e"].map(ua),["n","s"].map(ua),["n","w","e","s","nw","ne","sw","se"].map(ua);var ys=Math.sqrt(50),bs=Math.sqrt(10),Ts=Math.sqrt(2);function Cs(n,r,e){var i=Math.abs(r-n)/Math.max(0,e),a=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/a;return o>=ys?a*=10:o>=bs?a*=5:o>=Ts&&(a*=2),r0))return N;do{N.push(U=new Date(+o)),r(o,T),n(o)}while(U=v)for(;n(v),!o(v);)v.setTime(v-1)},function(v,T){if(v>=v)if(T<0)for(;++T<=0;)for(;r(v,-1),!o(v););else for(;--T>=0;)for(;r(v,1),!o(v););})},e&&(a.count=function(o,v){return Ss.setTime(+o),Es.setTime(+v),n(Ss),n(Es),Math.floor(e(Ss,Es))},a.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?a.filter(i?function(v){return i(v)%o==0}:function(v){return a.count(0,v)%o==0}):a:null}),a}var Pa=pi(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});Pa.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?pi(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):Pa:null};const Kp=Pa;const ha=pi(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+r*pr)},function(n,r){return(r-n)/pr},function(n){return n.getUTCSeconds()});const xl=pi(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*pr)},function(n,r){n.setTime(+n+r*Xi)},function(n,r){return(r-n)/Xi},function(n){return n.getMinutes()});const bl=pi(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*pr-n.getMinutes()*Xi)},function(n,r){n.setTime(+n+r*fr)},function(n,r){return(r-n)/fr},function(n){return n.getHours()});const Fa=pi(n=>n.setHours(0,0,0,0),(n,r)=>n.setDate(n.getDate()+r),(n,r)=>(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*Xi)/Dr,n=>n.getDate()-1);function Lr(n){return pi(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*Xi)/ws})}var Ra=Lr(0),Ba=Lr(1),Hr=(Lr(2),Lr(3),Lr(4));const wl=(Lr(5),Lr(6),pi(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}));var Ds=pi(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});Ds.every=function(n){return isFinite(n=Math.floor(n))&&n>0?pi(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};const kr=Ds;const rf=pi(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*Xi)},function(n,r){return(r-n)/Xi},function(n){return n.getUTCMinutes()});const af=pi(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*fr)},function(n,r){return(r-n)/fr},function(n){return n.getUTCHours()});const Ls=pi(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/Dr},function(n){return n.getUTCDate()-1});function Ir(n){return pi(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/ws})}var ks=Ir(0),Za=Ir(1),Yr=(Ir(2),Ir(3),Ir(4));const uf=(Ir(5),Ir(6),pi(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}));var Is=pi(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});Is.every=function(n){return isFinite(n=Math.floor(n))&&n>0?pi(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};const Wr=Is;function Ll(n,r,e,i,a,o){const v=[[ha,1,pr],[ha,5,5e3],[ha,15,15e3],[ha,30,3e4],[o,1,Xi],[o,5,5*Xi],[o,15,15*Xi],[o,30,30*Xi],[a,1,fr],[a,3,3*fr],[a,6,6*fr],[a,12,12*fr],[i,1,Dr],[i,2,2*Dr],[e,1,ws],[r,1,gl],[r,3,3*gl],[n,1,As]];function N(U,J,ct){const ot=Math.abs(J-U)/ct,Ct=xs(([,,_t])=>_t).right(v,ot);if(Ct===v.length)return n.every(Cs(U/As,J/As,ct));if(0===Ct)return Kp.every(Math.max(Cs(U,J,ct),1));const[It,Ft]=v[ot/v[Ct-1][2][r.toLowerCase(),e]))}function _f(n,r,e){var i=fi.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function vf(n,r,e){var i=fi.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function xf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function yf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function bf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function Il(n,r,e){var i=fi.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function Ol(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function Tf(n,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function Cf(n,r,e){var i=fi.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function wf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Ml(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function Af(n,r,e){var i=fi.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function Nl(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function Sf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function Ef(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function Df(n,r,e){var i=fi.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function Lf(n,r,e){var i=fi.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function kf(n,r,e){var i=ff.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function If(n,r,e){var i=fi.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function Of(n,r,e){var i=fi.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function Pl(n,r){return xn(n.getDate(),r,2)}function Mf(n,r){return xn(n.getHours(),r,2)}function Nf(n,r){return xn(n.getHours()%12||12,r,2)}function Pf(n,r){return xn(1+Fa.count(kr(n),n),r,3)}function Fl(n,r){return xn(n.getMilliseconds(),r,3)}function Ff(n,r){return Fl(n,r)+"000"}function Rf(n,r){return xn(n.getMonth()+1,r,2)}function Bf(n,r){return xn(n.getMinutes(),r,2)}function Zf(n,r){return xn(n.getSeconds(),r,2)}function Vf(n){var r=n.getDay();return 0===r?7:r}function Gf(n,r){return xn(Ra.count(kr(n)-1,n),r,2)}function Rl(n){var r=n.getDay();return r>=4||0===r?Hr(n):Hr.ceil(n)}function Uf(n,r){return n=Rl(n),xn(Hr.count(kr(n),n)+(4===kr(n).getDay()),r,2)}function zf(n){return n.getDay()}function Hf(n,r){return xn(Ba.count(kr(n)-1,n),r,2)}function Yf(n,r){return xn(n.getFullYear()%100,r,2)}function Wf(n,r){return xn((n=Rl(n)).getFullYear()%100,r,2)}function Xf(n,r){return xn(n.getFullYear()%1e4,r,4)}function $f(n,r){var e=n.getDay();return xn((n=e>=4||0===e?Hr(n):Hr.ceil(n)).getFullYear()%1e4,r,4)}function Qf(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+xn(r/60|0,"0",2)+xn(r%60,"0",2)}function Bl(n,r){return xn(n.getUTCDate(),r,2)}function jf(n,r){return xn(n.getUTCHours(),r,2)}function Jf(n,r){return xn(n.getUTCHours()%12||12,r,2)}function Kf(n,r){return xn(1+Ls.count(Wr(n),n),r,3)}function Zl(n,r){return xn(n.getUTCMilliseconds(),r,3)}function qf(n,r){return Zl(n,r)+"000"}function tm(n,r){return xn(n.getUTCMonth()+1,r,2)}function em(n,r){return xn(n.getUTCMinutes(),r,2)}function nm(n,r){return xn(n.getUTCSeconds(),r,2)}function im(n){var r=n.getUTCDay();return 0===r?7:r}function rm(n,r){return xn(ks.count(Wr(n)-1,n),r,2)}function Vl(n){var r=n.getUTCDay();return r>=4||0===r?Yr(n):Yr.ceil(n)}function am(n,r){return n=Vl(n),xn(Yr.count(Wr(n),n)+(4===Wr(n).getUTCDay()),r,2)}function sm(n){return n.getUTCDay()}function om(n,r){return xn(Za.count(Wr(n)-1,n),r,2)}function lm(n,r){return xn(n.getUTCFullYear()%100,r,2)}function cm(n,r){return xn((n=Vl(n)).getUTCFullYear()%100,r,2)}function um(n,r){return xn(n.getUTCFullYear()%1e4,r,4)}function hm(n,r){var e=n.getUTCDay();return xn((n=e>=4||0===e?Yr(n):Yr.ceil(n)).getUTCFullYear()%1e4,r,4)}function dm(){return"+0000"}function Gl(){return"%"}function Ul(n){return+n}function zl(n){return Math.floor(+n/1e3)}!function gm(n){(function pf(n){var r=n.dateTime,e=n.date,i=n.time,a=n.periods,o=n.days,v=n.shortDays,T=n.months,N=n.shortMonths,U=pa(a),J=fa(a),ct=pa(o),ot=fa(o),Ct=pa(v),It=fa(v),Ft=pa(T),_t=fa(T),Vt=pa(N),qt=fa(N),$t={a:function ri(ve){return v[ve.getDay()]},A:function ar(ve){return o[ve.getDay()]},b:function ai(ve){return N[ve.getMonth()]},B:function si(ve){return T[ve.getMonth()]},c:null,d:Pl,e:Pl,f:Ff,g:Wf,G:$f,H:Mf,I:Nf,j:Pf,L:Fl,m:Rf,M:Bf,p:function Gn(ve){return a[+(ve.getHours()>=12)]},q:function Un(ve){return 1+~~(ve.getMonth()/3)},Q:Ul,s:zl,S:Zf,u:Vf,U:Gf,V:Uf,w:zf,W:Hf,x:null,X:null,y:Yf,Y:Xf,Z:Qf,"%":Gl},ye={a:function ga(ve){return v[ve.getUTCDay()]},A:function Kr(ve){return o[ve.getUTCDay()]},b:function qr(ve){return N[ve.getUTCMonth()]},B:function ta(ve){return T[ve.getUTCMonth()]},c:null,d:Bl,e:Bl,f:qf,g:cm,G:hm,H:jf,I:Jf,j:Kf,L:Zl,m:tm,M:em,p:function Ai(ve){return a[+(ve.getUTCHours()>=12)]},q:function za(ve){return 1+~~(ve.getUTCMonth()/3)},Q:Ul,s:zl,S:nm,u:im,U:rm,V:am,w:sm,W:om,x:null,X:null,y:lm,Y:um,Z:dm,"%":Gl},De={a:function En(ve,Je,dn){var re=Ct.exec(Je.slice(dn));return re?(ve.w=It.get(re[0].toLowerCase()),dn+re[0].length):-1},A:function Dn(ve,Je,dn){var re=ct.exec(Je.slice(dn));return re?(ve.w=ot.get(re[0].toLowerCase()),dn+re[0].length):-1},b:function Xn(ve,Je,dn){var re=Vt.exec(Je.slice(dn));return re?(ve.m=qt.get(re[0].toLowerCase()),dn+re[0].length):-1},B:function ei(ve,Je,dn){var re=Ft.exec(Je.slice(dn));return re?(ve.m=_t.get(re[0].toLowerCase()),dn+re[0].length):-1},c:function ni(ve,Je,dn){return on(ve,r,Je,dn)},d:Ml,e:Ml,f:Lf,g:Ol,G:Il,H:Nl,I:Nl,j:Af,L:Df,m:wf,M:Sf,p:function yn(ve,Je,dn){var re=U.exec(Je.slice(dn));return re?(ve.p=J.get(re[0].toLowerCase()),dn+re[0].length):-1},q:Cf,Q:If,s:Of,S:Ef,u:vf,U:xf,V:yf,w:_f,W:bf,x:function rr(ve,Je,dn){return on(ve,e,Je,dn)},X:function ii(ve,Je,dn){return on(ve,i,Je,dn)},y:Ol,Y:Il,Z:Tf,"%":kf};function ge(ve,Je){return function(dn){var Oi,Xe,Rn,re=[],Fn=-1,An=0,Ii=ve.length;for(dn instanceof Date||(dn=new Date(+dn));++Fn53)return null;"w"in re||(re.w=1),"Z"in re?(Ii=(An=Ms(da(re.y,0,1))).getUTCDay(),An=Ii>4||0===Ii?Za.ceil(An):Za(An),An=Ls.offset(An,7*(re.V-1)),re.y=An.getUTCFullYear(),re.m=An.getUTCMonth(),re.d=An.getUTCDate()+(re.w+6)%7):(Ii=(An=Os(da(re.y,0,1))).getDay(),An=Ii>4||0===Ii?Ba.ceil(An):Ba(An),An=Fa.offset(An,7*(re.V-1)),re.y=An.getFullYear(),re.m=An.getMonth(),re.d=An.getDate()+(re.w+6)%7)}else("W"in re||"U"in re)&&("w"in re||(re.w="u"in re?re.u%7:"W"in re?1:0),Ii="Z"in re?Ms(da(re.y,0,1)).getUTCDay():Os(da(re.y,0,1)).getDay(),re.m=0,re.d="W"in re?(re.w+6)%7+7*re.W-(Ii+5)%7:re.w+7*re.U-(Ii+6)%7);return"Z"in re?(re.H+=re.Z/100|0,re.M+=re.Z%100,Ms(re)):Os(re)}}function on(ve,Je,dn,re){for(var Oi,Xe,Fn=0,An=Je.length,Ii=dn.length;Fn=Ii)return-1;if(37===(Oi=Je.charCodeAt(Fn++))){if(Oi=Je.charAt(Fn++),!(Xe=De[Oi in kl?Je.charAt(Fn++):Oi])||(re=Xe(ve,dn,re))<0)return-1}else if(Oi!=dn.charCodeAt(re++))return-1}return re}return $t.x=ge(e,$t),$t.X=ge(i,$t),$t.c=ge(r,$t),ye.x=ge(e,ye),ye.X=ge(i,ye),ye.c=ge(r,ye),{format:function(ve){var Je=ge(ve+="",$t);return Je.toString=function(){return ve},Je},parse:function(ve){var Je=en(ve+="",!1);return Je.toString=function(){return ve},Je},utcFormat:function(ve){var Je=ge(ve+="",ye);return Je.toString=function(){return ve},Je},utcParse:function(ve){var Je=en(ve+="",!0);return Je.toString=function(){return ve},Je}}})(n)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),xs(fl),xs(function _m(n){return null===n?NaN:+n}),s(6738),s(84067),s(32517),s(38914),s(22910),s(65142),s(78986),s(16087);const Vm=["caretElm"];function Gm(n,r){}const Um=function(n){return{model:n}};function zm(n,r){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Gm,0,0,"ng-template",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e.template)("ngTemplateOutletContext",t.VKq(2,Um,e.context))}}function Hm(n,r){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("innerHTML",e.title,t.oJD)}}function v_(n,r,e){e=e||{};let i,a,o,v=null,T=0;function N(){T=!1===e.leading?0:+new Date,v=null,o=n.apply(i,a)}return function(){const U=+new Date;!T&&!1===e.leading&&(T=U);const J=r-(U-T);return i=this,a=arguments,J<=0?(clearTimeout(v),v=null,T=U,o=n.apply(i,a)):!v&&!1!==e.trailing&&(v=setTimeout(N,J)),o}}function x_(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:v_(o.value,n,r)}),this[a]}}}}var rn=(()=>{return(n=rn||(rn={})).Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.Center="center",rn;var n})();function ec(n,r,e){return e===rn.Top?n.top-7:e===rn.Bottom?n.top+n.height-r.height+7:e===rn.Center?n.top+n.height/2-r.height/2:void 0}function nc(n,r,e){return e===rn.Left?n.left-7:e===rn.Right?n.left+n.width-r.width+7:e===rn.Center?n.left+n.width/2-r.width/2:void 0}class zi{static calculateVerticalAlignment(r,e,i){let a=ec(r,e,i);return a+e.height>window.innerHeight&&(a=window.innerHeight-e.height),a}static calculateVerticalCaret(r,e,i,a){let o;a===rn.Top&&(o=r.height/2-i.height/2+7),a===rn.Bottom&&(o=e.height-r.height/2-i.height/2-7),a===rn.Center&&(o=e.height/2-i.height/2);const v=ec(r,e,a);return v+e.height>window.innerHeight&&(o+=v+e.height-window.innerHeight),o}static calculateHorizontalAlignment(r,e,i){let a=nc(r,e,i);return a+e.width>window.innerWidth&&(a=window.innerWidth-e.width),a}static calculateHorizontalCaret(r,e,i,a){let o;a===rn.Left&&(o=r.width/2-i.width/2+7),a===rn.Right&&(o=e.width-r.width/2-i.width/2-7),a===rn.Center&&(o=e.width/2-i.width/2);const v=nc(r,e,a);return v+e.width>window.innerWidth&&(o+=v+e.width-window.innerWidth),o}static shouldFlip(r,e,i,a){let o=!1;return i===rn.Right&&r.left+r.width+e.width+a>window.innerWidth&&(o=!0),i===rn.Left&&r.left-e.width-a<0&&(o=!0),i===rn.Top&&r.top-e.height-a<0&&(o=!0),i===rn.Bottom&&r.top+r.height+e.height+a>window.innerHeight&&(o=!0),o}static positionCaret(r,e,i,a,o){let v=0,T=0;return r===rn.Right?(T=-7,v=zi.calculateVerticalCaret(i,e,a,o)):r===rn.Left?(T=e.width,v=zi.calculateVerticalCaret(i,e,a,o)):r===rn.Top?(v=e.height,T=zi.calculateHorizontalCaret(i,e,a,o)):r===rn.Bottom&&(v=-7,T=zi.calculateHorizontalCaret(i,e,a,o)),{top:v,left:T}}static positionContent(r,e,i,a,o){let v=0,T=0;return r===rn.Right?(T=i.left+i.width+a,v=zi.calculateVerticalAlignment(i,e,o)):r===rn.Left?(T=i.left-e.width-a,v=zi.calculateVerticalAlignment(i,e,o)):r===rn.Top?(v=i.top-e.height-a,T=zi.calculateHorizontalAlignment(i,e,o)):r===rn.Bottom&&(v=i.top+i.height+a,T=zi.calculateHorizontalAlignment(i,e,o)),{top:v,left:T}}static determinePlacement(r,e,i,a){if(zi.shouldFlip(i,e,r,a)){if(r===rn.Right)return rn.Left;if(r===rn.Left)return rn.Right;if(r===rn.Top)return rn.Bottom;if(r===rn.Bottom)return rn.Top}return r}}let y_=(()=>{class n{constructor(e,i,a){this.element=e,this.renderer=i,this.platformId=a}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,m.NF)(this.platformId))return;const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const a=e.getBoundingClientRect();this.checkFlip(i,a),this.positionContent(e,i,a),this.showCaret&&this.positionCaret(i,a),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,a){const{top:o,left:v}=zi.positionContent(this.placement,a,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${v}px`)}positionCaret(e,i){const a=this.caretElm.nativeElement,o=a.getBoundingClientRect(),{top:v,left:T}=zi.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(a,"top",`${v}px`),this.renderer.setStyle(a,"left",`${T}px`)}checkFlip(e,i){this.placement=zi.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&t.Gf(Vm,5),2&e){let a;t.iGM(a=t.CRH())&&(i.caretElm=a.first)}},hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(){return i.onWindowResize()},!1,t.Jf7),2&e&&t.Tol(i.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,zm,2,4,"span",3),t.YNc(5,Hm,1,1,"span",4),t.qZA()()),2&e&&(t.xp6(1),t.Gre("tooltip-caret position-",i.placement,""),t.Q6J("hidden",!i.showCaret),t.xp6(3),t.Q6J("ngIf",!i.title),t.xp6(1),t.Q6J("ngIf",i.title))},dependencies:[m.O5,m.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,va.gn)([x_(100)],n.prototype,"onWindowResize",null),n})(),ic=(()=>{class n{constructor(e,i,a){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=a}static setGlobalRootViewContainer(e){n.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(n.globalRootViewContainer)return n.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function T_(n){return n.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const a=Object.getOwnPropertyNames(i.inputs);for(const o of a)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const a=Object.getOwnPropertyNames(i.outputs);for(const o of a)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},a){a||(a=this.getRootViewContainer());const o=this.getComponentRootNode(a),v=new rl.u0(o,this.componentFactoryResolver,this.applicationRef,this.injector),T=new rl.C5(e),N=v.attach(T);return this.projectComponentBindings(N,i),N}}return n.globalRootViewContainer=null,n.\u0275fac=function(e){return new(e||n)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Ps=(()=>{class n extends class b_{constructor(r){this.injectionService=r,this.defaults={},this.components=new Map}getByType(r=this.type){return this.components.get(r)}create(r){return this.createByType(this.type,r)}createByType(r,e){e=this.assignDefaults(e);const i=this.injectComponent(r,e);return this.register(r,i),i}destroy(r){const e=this.components.get(r.componentType);if(e&&e.length){const i=e.indexOf(r);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(r){const e=this.components.get(r);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(r,e){return this.injectionService.appendComponent(r,e)}assignDefaults(r){const e={...this.defaults.inputs},i={...this.defaults.outputs};return!r.inputs&&!r.outputs&&(r={inputs:r}),e&&(r.inputs={...e,...r.inputs}),i&&(r.outputs={...i,...r.outputs}),r}register(r,e){this.components.has(r)||this.components.set(r,[]),this.components.get(r).push(e)}}{constructor(e){super(e),this.type=y_}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ic))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),cc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez]]}),n})();var Qr=(()=>{return(n=Qr||(Qr={})).popover="popover",n.tooltip="tooltip",Qr;var n})(),br=(()=>{return(n=br||(br={}))[n.all="all"]="all",n[n.focus="focus"]="focus",n[n.mouseover="mouseover"]="mouseover",br;var n})();let Zs,Rs=(()=>{class n{constructor(e,i,a){this.tooltipService=e,this.viewContainerRef=i,this.renderer=a,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=rn.Top,this.tooltipAlignment=rn.Center,this.tooltipType=Qr.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=br.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===br.all||this.tooltipShowEvent===br.focus}get listensForHover(){return this.tooltipShowEvent===br.all||this.tooltipShowEvent===br.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const a=this.createBoundOptions();this.component=this.tooltipService.create(a),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ps),t.Y36(t.s_b),t.Y36(t.Qsj))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&t.NdJ("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),n})(),uc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[ic,Ps],imports:[[m.ez]]}),n})();typeof window<"u"?Zs=window:typeof global<"u"&&(Zs=global);let $i=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez,cc,uc],m.ez,cc,uc]}),n})(),N_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),vc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),P_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),F_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),R_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),xc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})();Math;let Gs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),V_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i,Gs,xc]]}),n})(),U_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),z_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),H_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i,Gs,vc]]}),n})(),W_=(()=>{class n{constructor(){!function Y_(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[$i,N_,vc,P_,F_,R_,xc,V_,U_,Gs,z_,H_]}),n})();function X_(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",3),t.qZA())}function $_(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function Q_(n,r){1&n&&(t.O4$(),t.TgZ(0,"marker",10),t._UZ(1,"path",11),t.qZA())}function j_(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",12),t._UZ(1,"rect"),t.TgZ(2,"text",13),t._uU(3),t.qZA()()),2&n){const e=r.$implicit;t.Q6J("tooltipTitle",e.tooltip)("tooltipPlacement","top")("tooltipType","tooltip"),t.xp6(1),t.uIk("fill",e.color)("height",e.dimension.height)("width",e.dimension.width),t.xp6(1),t.uIk("y",e.dimension.height/2)("x",10),t.xp6(1),t.hij(" ",e.label," ")}}function J_(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",14),t._UZ(1,"path",15),t.TgZ(2,"text",16)(3,"textPath",17),t._uU(4),t.qZA()()()),2&n){const e=r.$implicit;t.xp6(3),t.uIk("href","#"+e.id),t.xp6(1),t.hij(" ",e.label," ")}}const K_=function(n,r){return[n,r]};function q_(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5),t.ALo(6,"translate"),t.TgZ(7,"strong"),t._uU(8),t.qZA(),t.YNc(9,$_,5,4,"span",4),t.TgZ(10,"div",5)(11,"ngx-graph",6),t.YNc(12,Q_,2,0,"ng-template",null,7,t.W1O),t.YNc(14,j_,4,9,"ng-template",null,8,t.W1O),t.YNc(16,J_,5,2,"ng-template",null,9,t.W1O),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(2),t.Q6J("links",e.hierarchialGraph.links)("nodes",e.hierarchialGraph.nodes)("view",t.WLB(16,K_,e.innerWidth,e.innerHeight))("curve",e.curve)("draggingEnabled",!1)("zoomToFit$",e.zoomToFit$)}}function tv(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function ev(n,r){if(1&n&&(t._uU(0),t.ALo(1,"translate"),t.TgZ(2,"strong"),t._uU(3),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.TgZ(6,"strong"),t._uU(7),t.qZA(),t.YNc(8,tv,5,4,"span",4),t._uU(9),t.ALo(10,"translate")),2&n){const e=t.oxw(2);t.hij(" ",t.lcZ(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(1),t.hij(" ",t.lcZ(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function nv(n,r){if(1&n&&(t.YNc(0,q_,18,19,"div",1),t.YNc(1,ev,11,13,"ng-template",null,2,t.W1O)),2&n){const e=t.MAs(2),i=t.oxw();t.Q6J("ngIf",i.isConnected)("ngIfElse",e)}}let iv=(()=>{class n{constructor(e,i,a,o,v,T,N,U,J){this.route=e,this.facilityManager=i,this.userService=a,this.membersService=o,this.serviceService=v,this.resourceManager=T,this.groupService=N,this.voService=U,this.translate=J,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=Ha,this.zoomToFit$=new ea.x,this.idCounter=0}static findConnectedGroups(e,i){const a=[];for(const o of e)for(const v of i)o.id===v.id&&a.push(o);return a}static findConnectedResources(e,i){const a=[];for(const o of e)for(const v of i)o.id===v.id&&a.push(o);return a}onResize(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight}ngOnInit(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(e=>{this.destination=String(e.destination),this.service=String(e.service),this.userService.getUserById(Number(e.user)).subscribe(i=>{this.user=i,this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(a=>{this.facilities=a,this.membersService.getMembersByUser(this.user.id).subscribe(o=>{if(this.membership=o,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){const e=""+this.id().toString(),i=this.user.firstName??" "+this.user.lastName??"",a=this.localUser,o="user: "+this.user.id.toString();this.hierarchialGraph.nodes.push({id:e,label:i,tooltip:a,color:"#FFFFCC",tip:o});const T=""+this.id().toString(),N="destination no id";this.hierarchialGraph.nodes.push("noService"===this.service?{id:T,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:N}:{id:T,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:N});for(const U of this.facilities)this.serviceService.getAllRichDestinationsForFacility(U.id).subscribe(J=>{this.connectToService(U,J),setTimeout(()=>{this.zoomToFit$.next(!0),this.loading=!1},2e3)})}connectToService(e,i){this.isConnectedToService(i)&&this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(a=>{for(const o of this.membership)this.connectToGroups(e,o,a)})}connectToGroups(e,i,a){this.facilityManager.getAllowedGroups(e.id,i.voId).subscribe(o=>{0!==o.length&&this.groupService.getMemberGroups(i.id).subscribe(v=>{const T=n.findConnectedGroups(o,v);if(0!==T.length)for(const N of T)this.connectToResource(e,N,a)})})}haveService(e){if("noService"===this.service)return!0;for(const i of e)if(this.service===i.name)return!0;return!1}connectToResource(e,i,a){this.resourceManager.getAssignedResourcesWithGroup(i.id).subscribe(o=>{const v=n.findConnectedResources(o,a);for(const T of v)this.resourceManager.getAssignedServicesToResource(T.id).subscribe(N=>{this.haveService(N)&&(this.isConnected=!0,this.addNodesToGraph(i.voId,i,T,e))})})}addNodesToGraph(e,i,a,o){if(-1===this.findEntityInGraph("Facility: "+o.id.toString())){const v=""+this.id().toString(),T=this.localFacility+": "+o.name,N=o.description,U="Facility: "+o.id.toString();this.hierarchialGraph.nodes.push({id:v,label:T,tooltip:N,color:"#FFCCFF",tip:U});const ct={source:v,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links.push(ct)}this.voService.getVoById(e).subscribe(v=>{if(-1===this.findEntityInGraph("Vo: "+v.id.toString())){const N=this.id().toString(),U=this.localVo+": "+v.shortName,J=v.name,ct="Vo: "+v.id.toString();this.hierarchialGraph.nodes.push({id:N,label:U,tooltip:J,color:"#E5FFCC",tip:ct});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct)}if(-1===this.findEntityInGraph("Group: "+i.id.toString())){const N=this.id().toString(),U=this.localGroup+": "+i.name,J=i.description,ct="Group: "+i.id.toString();this.hierarchialGraph.nodes.push({id:N,label:U,tooltip:J,color:"#CCE5FF",tip:ct});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+v.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct)}const T=this.findEntityInGraph("Resource: "+a.id.toString());if(-1!==T){const N={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:this.hierarchialGraph.nodes[T].id};this.hierarchialGraph.links.push(N)}else{const N=this.id().toString(),U=this.localResource+": "+a.name,J=a.description,ct="Resource: "+a.id.toString();this.hierarchialGraph.nodes.push({id:N,label:U,tooltip:J,color:"#FFCCCC",tip:ct});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct);const It={source:N,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+o.id.toString())].id};this.hierarchialGraph.links.push(It)}})}findEntityInGraph(e){for(let i=0;i{this.localUser=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.VO").subscribe(e=>{this.localVo=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.GROUP").subscribe(e=>{this.localGroup=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.RESOURCE").subscribe(e=>{this.localResource=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.FACILITY").subscribe(e=>{this.localFacility=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SERVICE").subscribe(e=>{this.localService=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION").subscribe(e=>{this.localDestination=e})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(H.IQ),t.Y36(H.Fv),t.Y36(H.uq),t.Y36(H.KK),t.Y36(H.xk),t.Y36(H.ff),t.Y36(H.YF),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-graph"]],hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(o){return i.onResize(o)},!1,t.Jf7),2&e&&t.ekj("router-component",i.true)},decls:6,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf","ngIfElse"],["elseBlock",""],[1,"ml-auto","mr-auto"],[4,"ngIf"],[1,"card","w-100","h-100"],[1,"chart-container",3,"links","nodes","view","curve","draggingEnabled","zoomToFit$"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","markerHeight","4","refX","8","refY","0","markerWidth","4","orient","auto","viewBox","0 -5 10 10"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["ngx-tooltip","",1,"node",3,"tooltipTitle","tooltipPlacement","tooltipType"],["alignment-baseline","central"],[1,"edge"],["marker-end","url(#arrow)","stroke-width","2",1,"line"],["text-anchor","end",1,"edge-label"],["startOffset","60%",2,"fill","#000"]],template:function(e,i){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,X_,2,0,"div",1),t.YNc(4,nv,3,2,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(5);t.xp6(1),t.hij(" ",t.lcZ(2,3,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",i.loading)("ngIfElse",a)}},dependencies:[Rp,m.O5,Rs,tt.Ou,u.X$]}),n})();var rv=s(25828),yc=s(69024),av=s(29862),ma=s(21029),Us=s(55660),sv=s(31359);function ov(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function lv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.editUser())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function cv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.anonymizeUser())}),t.TgZ(1,"mat-icon"),t._uU(2,"no_accounts"),t.qZA()()}}function uv(n,r){1&n&&(t.TgZ(0,"mat-icon",17),t.ALo(1,"translate"),t._uU(2," blur_off "),t.qZA()),2&n&&t.s9C("matTooltip",t.lcZ(1,1,"USER_DETAIL.DASHBOARD.ANONYMIZED"))}function hv(n,r){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,lv,3,0,"button",12),t.YNc(2,cv,3,0,"button",13),t.YNc(3,uv,3,3,"mat-icon",14),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!e.anonymized),t.xp6(1),t.Q6J("ngIf",!e.anonymized),t.xp6(1),t.Q6J("ngIf",e.anonymized)}}const dv=function(){return{color:"black"}},pv=function(n){return["/admin/users",n]};function fv(n,r){if(1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6)(4,"div",7)(5,"a",8),t._uU(6),t.ALo(7,"userFullName"),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,hv,4,3,"span",10),t.qZA(),t.TgZ(11,"div"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"span",11),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()()()),2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,12,"ADMIN_USER.ENTITY")),t.Q6J("ngStyle",t.DdM(22,dv))("svgIcon",e.svgIcon),t.xp6(4),t.Q6J("routerLink",t.VKq(23,pv,e.user.id)),t.xp6(1),t.hij(" ",t.lcZ(7,14,e.user)," "),t.xp6(3),t.hij(" \xa0#",e.user.id," "),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(2),t.AsE("",t.lcZ(13,16,"ADMIN_USER.UUID"),": ",e.user.uuid,""),t.xp6(3),t.lnq(" ",t.lcZ(16,18,"ADMIN_USER.ENTITY"),", ",t.lcZ(17,20,"ADMIN_USER.USER_TYPE"),": ",e.getUserType()," ")}}let mv=(()=>{class n{constructor(e,i,a,o,v,T,N,U,J){this.route=e,this.attributesService=i,this.usersService=a,this.sideMenuService=o,this.sideMenuItemService=v,this.dialog=T,this.authResolver=N,this.entityStorageService=U,this.router=J,this.loading=!1,this.svgIcon="perun-user-dark"}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const i=Number(e.userId);this.entityStorageService.setEntity({id:Number(i),beanName:"User"}),this.path=`/admin/users/${i}`,this.regex="/admin/users/\\d+",this.usersService.getUserById(i).subscribe(o=>{this.user=o,this.user.serviceUser&&(this.svgIcon="perun-service-identity");const v=this.sideMenuItemService.parseUser(o,this.path,this.regex);this.sideMenuService.setAdminItems([v]),this.loading=!1},()=>this.loading=!1),this.attributesService.getAttribute("urn:perun:user:attribute-def:virt:anonymized",void 0,void 0,i).subscribe(o=>{this.anonymized=Boolean(o.value)})})}editUser(){const e=(0,fe.kZ)();e.width="450px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(av.x,e).afterClosed().subscribe(a=>{a&&this.usersService.getUserById(this.user.id).subscribe(o=>{this.user=o})})}getUserType(){return this.user.serviceUser?"Service":"Person"}anonymizeUser(){const e=(0,fe.kZ)();e.width="550px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(ma.GI,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin","users"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(H.H8),t.Y36(H.Fv),t.Y36(d.D),t.Y36(yc.V),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.fb),t.Y36(p.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-user-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],["class","d-flex page-title-headtitle",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"ngStyle","svgIcon","matTooltip"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["data-cy","user-name-link",1,"user-link",3,"routerLink"],[1,"text-muted"],[4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","data-cy","edit-user-button",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],["class","mat-icon-war ml-2",3,"matTooltip",4,"ngIf"],["mat-icon-button","","data-cy","edit-user-button",3,"click"],["mat-icon-button","",3,"click"],[1,"mat-icon-war","ml-2",3,"matTooltip"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,ov,1,0,"mat-spinner",1),t.YNc(3,fv,18,25,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading&&void 0!==i.user))},dependencies:[m.O5,m.PC,p.yS,l.Hw,G.lW,tt.Ou,ln.gM,h.A,f.W,Us.Q,u.X$,sv.d]}),n})();var gv=s(17755),_v=s(74837),vv=s(85985),xv=s(98973),yv=s(15935);function bv(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const Tv=function(){return["id","name","type"]};function Cv(n,r){if(1&n&&t._UZ(0,"app-ext-sources-list",6),2&n){const e=t.oxw();t.Q6J("extSources",e.extSources)("filterValue",e.filterValue)("displayedColumns",t.DdM(4,Tv))("tableId",e.tableId)}}let wv=(()=>{class n{constructor(e,i,a,o){this.extSourceService=e,this.notificator=i,this.translate=a,this.authResolver=o,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=Sn.qy,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(v=>this.loadSuccess=v)}ngOnInit(){this.refreshTable()}applyFilter(e){this.filterValue=e}onLoad(){this.extSourceService.loadExtSourcesDefinitions().subscribe(()=>{this.notificator.showSuccess(this.loadSuccess),this.refreshTable()})}refreshTable(){this.loading=!0,this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.KG),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-ext-sources"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","filterValue","displayedColumns","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"extSources","filterValue","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return i.onLoad()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,bv,1,0,"mat-spinner",3),t.YNc(7,Cv,1,5,"app-ext-sources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"ADMIN.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("placeholder","ADMIN.EXT_SOURCES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,tt.Ou,yv.D,Ue.t,Vn.L,u.X$]}),n})();var Av=s(6097),Sv=s(97453),Ua=s(54004);function Ev(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function Dv(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Lv(n,r){if(1&n&&(t.TgZ(0,"div")(1,"mat-form-field",8),t._UZ(2,"input",9),t.ALo(3,"translate"),t.TgZ(4,"mat-error"),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"mat-form-field",8),t._UZ(8,"input",10),t.ALo(9,"translate"),t.TgZ(10,"mat-error"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"mat-autocomplete",11,12),t.YNc(15,Dv,2,2,"mat-option",13),t.ALo(16,"async"),t.qZA()()()),2&n){const e=t.MAs(14),i=t.oxw();t.xp6(2),t.s9C("placeholder",t.lcZ(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),t.Q6J("formControl",i.loginControl),t.xp6(3),t.hij(" ",t.lcZ(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),t.Q6J("formControl",i.extSourcesControl)("matAutocomplete",e),t.xp6(3),t.hij(" ",t.lcZ(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),t.xp6(2),t.Q6J("displayWith",i.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(16,17,i.filteredExtSources))}}let kv=(()=>{class n{constructor(e,i,a,o,v,T){this.dialogRef=e,this.data=i,this.extSourcesManagerService=a,this.usersManagerService=o,this.translate=v,this.notificator=T,this.extSources=[],v.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(N=>this.successMessage=N)}ngOnInit(){this.loading=!0,this.loginControl=new rt.p4("",[rt.kI.required,rt.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new rt.p4("",[rt.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,li.O)(""),(0,Ua.U)(e=>this._filter(e))),this.extSourcesManagerService.getExtSources().subscribe(e=>{this.extSources=e,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,li.O)(""),(0,Ua.U)(i=>this._filter(i))),this.loading=!1},()=>this.loading=!1)}displayFn(e){return e?e.name:null}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.usersManagerService.addUserExtSource({user:this.data.userId,userExtSource:{beanName:"",extSource:this.extSourcesControl.value,id:0,login:this.loginControl.value,userId:this.data.userId}}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}_filter(e){const i="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.extSources.filter(a=>a.name.toLowerCase().includes(i))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(H.KG),t.Y36(H.Fv),t.Y36(u.sK),t.Y36(Z.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-user-ext-source-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"center-self","w-100"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.YNc(4,Ev,1,0,"mat-spinner",2),t.YNc(5,Lv,17,19,"div",3),t.qZA(),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),t.xp6(3),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loginControl.invalid||i.extSourcesControl.invalid||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},dependencies:[m.sg,m.O5,Ae.XC,Ae.ZL,zt.ey,ie.TO,ie.KE,Ot.Nt,rt.Fj,rt.JJ,rt.Q7,rt.oH,G.lW,M.uh,M.xY,M.H8,tt.Ou,m.Ov,u.X$],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.auto-width[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:auto!important}.auto-width[_ngcontent-%COMP%] .mat-select-value[_ngcontent-%COMP%]{max-width:100%;width:auto}.pre-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),n})();var Iv=s(80275);function Ov(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addIdentity())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"USER_DETAIL.IDENTITIES.ADD"),"\n"))}function Mv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeIdentity())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"USER_DETAIL.IDENTITIES.REMOVE"),"\n")}}function Nv(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function Pv(n,r){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-user-ext-sources-list",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("tableId",e.tableId)("userExtSources",e.userExtSources)}}let Fv=(()=>{class n{constructor(e,i,a,o,v,T){this.usersManagerService=e,this.storage=i,this.registrarManagerService=a,this.dialog=o,this.route=v,this.authResolver=T,this.userExtSources=[],this.selection=new B.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=Sn.gG,this.filterValue=""}ngOnInit(){this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId)}),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{this.userExtSources=e,this.loading=!1},()=>this.loading=!1)}addIdentity(){const e=(0,fe.kZ)();e.width="1000px",e.data={userId:this.userId},this.dialog.open(kv,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeIdentity(){const e=(0,fe.kZ)();e.width="450px",e.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(ma.Lc,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.Fv),t.Y36(Z.d6),t.Y36(H.tk),t.Y36(M.uw),t.Y36(p.gz),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-identities"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],[1,"admin-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","selection","tableId","userExtSources"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(4,Ov,3,3,"button",2),t.YNc(5,Mv,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,Nv,1,0,"mat-spinner",6),t.qZA(),t.YNc(9,Pv,2,5,"div",7)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"USER_DETAIL.IDENTITIES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","USER_DETAIL.IDENTITIES.FILTER_PLACEHOLDER"),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,Ue.t,Vn.L,Iv.j,u.X$]}),n})();var Rv=s(80774),Bv=s(62109);function Zv(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const Vv=function(){return["id","name","vo","facility","description"]};function Gv(n,r){if(1&n&&t._UZ(0,"perun-web-apps-resources-list",6),2&n){const e=t.oxw();t.Q6J("displayedColumns",t.DdM(4,Vv))("resources",e.resources)("filterValue",e.filterValue)("tableId",e.tableId)}}let Uv=(()=>{class n{constructor(e,i){this.userManager=e,this.route=i,this.resources=[],this.tableId=Sn.kO,this.filterValue=""}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.params.subscribe(e=>{const i=Number(e.userId);this.userManager.getAssignedRichResourcesForUser(i).subscribe(a=>{this.resources=a,this.loading=!1})})}resourceFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.Fv),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-resources"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","resources","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","resources","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.resourceFilter(o)}),t.qZA(),t.YNc(6,Zv,1,0,"mat-spinner",3),t.YNc(7,Gv,1,5,"perun-web-apps-resources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,tt.Ou,Ue.t,Vn.L,Bv.C,u.X$]}),n})();var zv=s(61365),Hv=s(71103),Yv=s(53984);const Wv=["list"];function Xv(n,r){1&n&&t._UZ(0,"mat-spinner",8)}function $v(n,r){if(1&n&&t._UZ(0,"perun-web-apps-attributes-list",9,10),2&n){const e=t.oxw();t.Q6J("selection",e.selection)("attributes",e.attributes)("tableId",e.tableId)}}let Qv=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.attributesManager=i,this.userService=a,this.route=o,this.loading=!1,this.selection=new B.Ov(!0,[]),this.tableId=Sn.rF,this.attributes=[]}ngOnInit(){this.route.params.subscribe(e=>{const i=Number(e.identityId);this.userService.getUserExtSourceById(i).subscribe(a=>{this.userExtSource=a,this.refreshTable()})})}refreshTable(){this.loading=!0,this.attributesManager.getUserExtSourceAttributes(this.userExtSource.id).subscribe(e=>{this.attributes=(0,fe.MX)(e),this.selection.clear(),this.loading=!1})}onAdd(){const e=(0,fe.kZ)();e.width="1050px",e.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(Hv.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const e=(0,fe.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(ma.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,fe.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(zv.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(H.H8),t.Y36(H.Fv),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-identity-detail"]],viewQuery:function(e,i){if(1&e&&t.Gf(Wv,5),2&e){let a;t.iGM(a=t.CRH())&&(i.list=a.first)}},decls:26,vars:32,consts:[[1,"page-subtitle"],[1,"mb-2"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",1),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"date"),t.qZA(),t.TgZ(14,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(15,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.YNc(24,Xv,1,0,"mat-spinner",6),t.YNc(25,$v,2,3,"perun-web-apps-attributes-list",7),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,15,"SHARED.IDENTITY_DETAIL.TITLE")," - ",i.userExtSource?i.userExtSource.extSource.name:""," "),t.xp6(3),t.AsE(" ",t.lcZ(6,17,"SHARED.IDENTITY_DETAIL.TYPE"),": ",i.userExtSource?i.userExtSource.extSource.type:""," "),t.xp6(3),t.AsE(" ",t.lcZ(9,19,"SHARED.IDENTITY_DETAIL.LOGIN"),": ",i.userExtSource?i.userExtSource.login:""," "),t.xp6(3),t.AsE(" ",t.lcZ(12,21,"SHARED.IDENTITY_DETAIL.LAST_ACCESS"),": ",i.userExtSource?t.xi3(13,23,i.userExtSource.lastAccess,"d.M.y H:mm:ss"):""," "),t.xp6(4),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(17,26,"SHARED.IDENTITY_DETAIL.SAVE")," "),t.xp6(3),t.hij(" ",t.lcZ(20,28,"SHARED.IDENTITY_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(23,30,"SHARED.IDENTITY_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,Ue.t,Yv.p,m.uU,u.X$]}),n})();var jv=s(40009),Jv=s(90719),bc=s(34198);function Kv(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function qv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editService())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function t0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.removeService())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function e0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.evaluateConsents())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.EVALUATE_CONSENTS")," "))}const n0=function(){return{color:"black"}},Tc=function(n){return["/admin/services",n]};function r0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6)(4,"div",7)(5,"div",8)(6,"div",9)(7,"a",10),t.NdJ("auxclick",function(a){return a.preventDefault()}),t._uU(8),t.qZA(),t.TgZ(9,"span",11),t._uU(10),t.qZA(),t.YNc(11,qv,3,0,"button",12),t.YNc(12,t0,3,0,"button",13),t.qZA(),t.TgZ(13,"span",14),t._uU(14),t.ALo(15,"translate"),t.qZA()()(),t.TgZ(16,"div",15)(17,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.changeServiceStatus())}),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.propagationChange())}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.YNc(23,e0,3,3,"button",17),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,15,"SERVICE_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(23,n0)),t.xp6(6),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(24,Tc,e.service.id.toString()))("routerLink",t.VKq(26,Tc,e.service.id)),t.xp6(1),t.hij(" ",e.service.name," "),t.xp6(2),t.hij(" \xa0 #",e.service.id," "),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(2),t.AsE(" ",t.lcZ(15,17,"SERVICE_DETAIL.DESCRIPTION"),": ",e.service.description," "),t.xp6(3),t.Q6J("checked",e.service.enabled),t.xp6(1),t.hij(" ",t.lcZ(19,19,"SERVICE_DETAIL.ENABLE")," "),t.xp6(2),t.Q6J("checked",e.service.useExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(22,21,"SERVICE_DETAIL.PROPAGATE")," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isPerunAdmin())}}let a0=(()=>{class n{constructor(e,i,a,o,v,T,N,U,J,ct,ot){this.route=e,this.router=i,this.consentsManager=a,this.serviceManager=o,this.sideMenuService=v,this.sideMenuItemService=T,this.dialog=N,this.authResolver=U,this.translate=J,this.notificator=ct,this.entityStorageService=ot,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.serviceId=Number(e.serviceId),this.entityStorageService.setEntity({id:this.serviceId,beanName:"Service"}),this.refresh()})}editService(){const e=(0,fe.kZ)();e.width="600px",e.data={theme:"service-theme",service:this.service},this.dialog.open(jv.R,e).afterClosed().subscribe(a=>{a&&this.refresh()})}removeService(){const e=(0,fe.kZ)();e.width="600px",e.data={theme:"service-theme",services:[this.service]},this.dialog.open(Jv.m,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin/services"],{queryParamsHandling:"preserve"})})}changeServiceStatus(){this.service.enabled=!this.service.enabled,this.serviceManager.updateService({service:this.service}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.STATUS_CHANGE_SUCCESS"))},()=>this.service.enabled=!this.service.enabled)}propagationChange(){this.service.useExpiredMembers=!this.service.useExpiredMembers,this.serviceManager.updateService({service:this.service}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.PROPAGATION_CHANGE_SUCCESS"))},()=>this.service.useExpiredMembers=!this.service.useExpiredMembers)}evaluateConsents(){const e=(0,fe.kZ)();e.width="500px",e.data={title:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_TITLE"),theme:"service-theme",description:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_DESCRIPTION"),items:[this.service.name],type:"confirmation",showAsk:!1},this.dialog.open(ma.Ts,e).afterClosed().subscribe(a=>{a&&this.consentsManager.evaluateConsentsForService(this.service.id).subscribe(()=>this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.EVALUATION_FINISH")))})}refresh(){this.serviceManager.getServiceById(this.serviceId).subscribe(e=>{this.service=e;const i=this.sideMenuItemService.parseService(this.service);this.sideMenuService.setAdminItems([i]),this.loading=!1},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(p.F0),t.Y36(H.WY),t.Y36(H.KK),t.Y36(d.D),t.Y36(yc.V),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(u.sK),t.Y36(Z.V6),t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","service-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","page-title-headtitle detail-layout",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title-headtitle","detail-layout"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"wrap-container"],[1,"detail-info"],[1,"flex-column"],[1,"page-title-headline","d-flex","align-items-center"],["data-cy","service-name-link",1,"service-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],["aria-label","Edit service","data-cy","service-edit-button","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Remove service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"detail-actions"],["labelPosition","before",3,"checked","toggleChange"],["class","action-button evaluate-button","mat-stroked-button","",3,"click",4,"ngIf"],["aria-label","Edit service","data-cy","service-edit-button","mat-icon-button","",3,"click"],["aria-label","Remove service","mat-icon-button","",3,"click"],["mat-stroked-button","",1,"action-button","evaluate-button",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Kv,1,0,"mat-spinner",1),t.YNc(3,r0,24,28,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,m.PC,p.yS,l.Hw,G.lW,tt.Ou,ln.gM,Tt.Rr,h.A,f.W,bc.Y,Us.Q,u.X$],styles:[".detail-layout[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1.2em}.detail-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-right:1.2em}.wrap-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;gap:.3em}.detail-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-left:1px solid rgba(0,0,0,.2);padding-left:.5em}.evaluate-button[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}"],data:{animation:[zn.Ji]}}),n})(),s0=(()=>{class n{constructor(e){this.entityStorageService=e,this.navItems=[]}ngOnInit(){this.service=this.entityStorageService.getEntity(),this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-attributes",url:`/admin/services/${this.service.id}/required-attributes`,label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",style:"service-btn"},{cssIcon:"perun-service_destination",url:`/admin/services/${this.service.id}/destinations`,label:"MENU_ITEMS.SERVICE.DESTINATIONS",style:"service-btn"}]}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&t._UZ(0,"perun-web-apps-menu-buttons-field",0),2&e&&t.Q6J("items",i.navItems)("size","small")},dependencies:[L.L]}),n})();var o0=s(32076),l0=s(24351),Cc=s(54482),c0=s(25032),h0=s(86099),d0=s(57359);function f0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function m0(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.Q6J("alert_type","warn"),t.xp6(1),t.Oqu(t.lcZ(2,2,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ACTIVE_WARN")))}function g0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",5),t.YNc(1,m0,3,4,"perun-web-apps-alert",6),t.ALo(2,"async"),t.TgZ(3,"perun-web-apps-immediate-filter",7),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t._UZ(4,"app-attr-def-list",8),t.ALo(5,"async"),t.ALo(6,"async"),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",t.lcZ(2,8,e.serviceEnabled$)),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("selection",e.selection)("definitions",e.attrDefinitions)("disableRouting",!0)("filterValue",e.filterValue)("serviceEnabled",t.lcZ(5,10,e.serviceEnabled$))("consentRequired",t.lcZ(6,12,e.consentRequired$))}}function _0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",10)(1,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}let v0=(()=>{class n{constructor(e,i,a,o,v,T,N,U){this.dialogRef=e,this.data=i,this.serviceManager=a,this.attributesManager=o,this.facilitiesService=v,this.consentHubService=T,this.notificator=N,this.translate=U,this.consentRequired$=this.facilitiesService.getAssignedFacilitiesByService(this.data.serviceId).pipe((0,l0.b)(o0.D),(0,Ua.U)(J=>J.id),function u0(n,r){return(0,Cc.e)((e,i)=>{const a=new Set;e.subscribe((0,Qt.x)(i,o=>{const v=n?n(o):o;a.has(v)||(a.add(v),i.next(o))})),r?.subscribe((0,Qt.x)(i,()=>a.clear(),c0.Z))})}(),(0,h0.z)(J=>this.consentHubService.getConsentHubByFacility(J)),function p0(n,r){return(0,Cc.e)((0,d0.U)(n,r,arguments.length>=2,!1,!0))}((J,ct)=>J||ct.enforceConsents,!1),(0,li.O)(!0)),this.serviceEnabled$=this.serviceManager.getServiceById(this.data.serviceId).pipe((0,Ua.U)(J=>J.enabled),(0,li.O)(!0)),this.attrDefinitions=[],this.selection=new B.Ov(!0,[]),this.filterValue="",this.loading=!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}onAdd(){this.loading=!0;const e=this.selection.selected.map(i=>i.id);this.serviceManager.addRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(H.KK),t.Y36(H.H8),t.Y36(H.IQ),t.Y36(H.WY),t.Y36(Z.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-required-attributes"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"alert_type",4,"ngIf"],[3,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue","serviceEnabled","consentRequired"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,f0,1,0,"mat-spinner",1),t.YNc(5,g0,7,14,"div",2),t.YNc(6,_0,7,7,"div",3),t.qZA()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,M.uh,M.xY,M.H8,tt.Ou,K.w,Vn.L,di,m.Ov,u.X$]}),n})();function x0(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function y0(n,r){1&n&&t._UZ(0,"th",15)}function b0(n,r){if(1&n&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function T0(n,r){1&n&&t._UZ(0,"tr",17)}function C0(n,r){1&n&&t._UZ(0,"tr",18)}function w0(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,y0,1,0,"th",11),t.YNc(10,b0,2,1,"td",12),t.BQk(),t.YNc(11,T0,1,0,"tr",13),t.YNc(12,C0,1,0,"tr",14),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let A0=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.serviceManager=a,this.notificator=o,this.translate=v,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new R.by(this.data.attrDefinitions)}onConfirm(){this.loading=!0;const e=this.dataSource.data.map(i=>i.id);this.serviceManager.removeRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(H.KK),t.Y36(Z.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-remove-required-attributes"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,x0,1,0,"mat-spinner",1),t.YNc(5,w0,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Tol(i.theme),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE")," "))},dependencies:[m.O5,G.lW,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,M.uh,M.xY,M.H8,tt.Ou,u.X$]}),n})();function S0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function E0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function D0(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function L0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",10),t.NdJ("refreshEvent",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshTable())}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("filterValue",e.filterValue)("selection",e.selection)("disableRouting",!e.authResolver.isPerunAdmin())("tableId",e.tableId)}}let k0=(()=>{class n{constructor(e,i,a,o){this.attributeManager=e,this.dialog=i,this.authResolver=a,this.entityStorageService=o,this.loading=!1,this.filterValue="",this.selection=new B.Ov(!0,[]),this.attrDefinitions=[],this.tableId=Sn.JO}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.attributeManager.getRequiredAttributesDefinition(this.service.id).subscribe(e=>{this.selection.clear(),this.attrDefinitions=e,this.loading=!1})}onAdd(){const e=(0,fe.kZ)();e.width="950px",e.data={serviceId:this.service.id,theme:"service-theme"},this.dialog.open(v0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,fe.kZ)();e.width="650px",e.data={serviceId:this.service.id,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(A0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.H8),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-required-attributes"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,S0,3,3,"button",2),t.YNc(6,E0,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,D0,1,0,"mat-spinner",5),t.YNc(9,L0,1,5,"app-attr-def-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,di,Ue.t,Vn.L,u.X$]}),n})();var I0=s(46597),O0=s(89466),M0=s(70242);function N0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function P0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAllow())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function F0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onBlock())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function R0(n,r){1&n&&t._UZ(0,"mat-spinner",10)}const B0=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function Z0(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-destination-list",11),2&n){const e=t.oxw();t.Q6J("destinations",e.destinations)("filterValue",e.filterValue)("selection",e.selection)("displayedColumns",t.DdM(5,B0))("tableId",e.tableId)}}let V0=(()=>{class n{constructor(e,i,a,o,v,T){this.serviceManager=e,this.notificator=i,this.translate=a,this.dialog=o,this.authResolver=v,this.entityStorageService=T,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new B.Ov(!0,[]),this.tableId=Sn.Cf}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.serviceManager.getAllRichDestinationsForService(this.service.id).subscribe(e=>{this.selection.clear(),this.filterValue="",this.destinations=e,this.loading=!1})}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selection.selected)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selection.selected)}onRemove(){const e=(0,fe.kZ)();e.width="500px",e.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(O0.u,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}blockServiceOnDestinations(e){this.serviceManager.blockServicesOnDestinations({richDestinations:e}).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),this.refreshTable()},error:()=>this.loading=!1})}allowServiceOnDestinations(e){this.serviceManager.unblockServicesOnDestinations({richDestinations:e}).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),this.refreshTable()},error:()=>this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.KK),t.Y36(Z.V6),t.Y36(Z.Te),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-destinations"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","filterValue","selection","displayedColumns","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"destinations","filterValue","selection","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,N0,3,4,"button",2),t.YNc(6,P0,3,4,"button",3),t.YNc(7,F0,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,R0,1,0,"mat-spinner",6),t.YNc(10,Z0,1,6,"app-perun-web-apps-destination-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"SERVICE_DETAIL.DESTINATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,M0.q,Ue.t,Vn.L,u.X$]}),n})();function G0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function U0(n,r){1&n&&t._UZ(0,"th",13)}function z0(n,r){if(1&n&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}function H0(n,r){1&n&&t._UZ(0,"tr",15)}function Y0(n,r){1&n&&t._UZ(0,"tr",16)}function W0(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",6),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",7),t.ynx(8,8),t.YNc(9,U0,1,0,"th",9),t.YNc(10,z0,2,1,"td",10),t.BQk(),t.YNc(11,H0,1,0,"tr",11),t.YNc(12,Y0,1,0,"tr",12),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function X0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",17)(1,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}let $0=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.ownersManagerService=v,this.displayedColumns=["name"],this.owners=[]}ngOnInit(){this.dataSource=new R.by(this.data),this.owners=this.data}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=this.owners.map(i=>i.id);this.ownersManagerService.deleteOwners(e).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_OWNER.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(Z.Te),t.Y36(H.aC))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-owner-dialog"]],decls:6,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,G0,1,0,"mat-spinner",1),t.YNc(4,W0,13,9,"div",2),t.YNc(5,X0,7,7,"div",3)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,4,"DIALOGS.DELETE_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,M.uh,M.xY,M.H8,tt.Ou,u.X$]}),n})();function Q0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function j0(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_OWNER.FILL_CONTACT")," "))}function J0(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_OWNER.CONTACT_FORMAT")," "))}function K0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),t._UZ(3,"input",6),t.ALo(4,"translate"),t.TgZ(5,"mat-error"),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"mat-form-field"),t._UZ(9,"input",6),t.ALo(10,"translate"),t.YNc(11,j0,3,3,"mat-error",3),t.YNc(12,J0,3,3,"mat-error",3),t.qZA(),t.TgZ(13,"mat-form-field")(14,"mat-select",7),t.NdJ("valueChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.type=a)}),t.TgZ(15,"mat-option",8),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",9),t._uU(19),t.ALo(20,"translate"),t.qZA()()()(),t.TgZ(21,"div",10)(22,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"div",12),t.ALo(26,"translate"),t.TgZ(27,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(28),t.ALo(29,"translate"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,15,"DIALOGS.ADD_OWNER.NAME")),t.Q6J("formControl",e.nameCtrl),t.xp6(3),t.hij(" ",t.lcZ(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(10,19,"DIALOGS.ADD_OWNER.CONTACT")),t.Q6J("formControl",e.contactCtrl),t.xp6(2),t.Q6J("ngIf",e.contactCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.contactCtrl.invalid&&!e.contactCtrl.hasError("required")),t.xp6(2),t.Q6J("value",e.type),t.xp6(2),t.Oqu(t.lcZ(17,21,"DIALOGS.ADD_OWNER.TYPE1")),t.xp6(3),t.Oqu(t.lcZ(20,23,"DIALOGS.ADD_OWNER.TYPE2")),t.xp6(4),t.hij(" ",t.lcZ(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),t.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.contactCtrl.valid),t.xp6(2),t.Q6J("disabled",e.nameCtrl.invalid||e.contactCtrl.invalid),t.xp6(1),t.hij(" ",t.lcZ(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}let q0=(()=>{class n{constructor(e,i,a,o){this.dialogRef=e,this.notificator=i,this.ownersManagerService=a,this.translate=o,this.type="1",o.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(v=>this.successMessage=v)}ngOnInit(){this.nameCtrl=new rt.p4(null,[rt.kI.required,rt.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new rt.p4(null,[rt.kI.required,rt.kI.pattern(fe.B2)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number(this.type)}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(Z.V6),t.Y36(H.aC),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-owner-dialog"]],decls:6,vars:5,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","1"],["value","0"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Q0,1,0,"mat-spinner",2),t.YNc(5,K0,30,31,"div",3),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"DIALOGS.ADD_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,zt.ey,ie.TO,ie.KE,Ot.Nt,rt.Fj,rt.JJ,rt.Q7,rt.oH,G.lW,M.uh,M.xY,M.H8,te.gD,tt.Ou,ln.gM,u.X$]}),n})();var tx=s(23256);function ex(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addOwner())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.OWNERS.ADD")," "))}function nx(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeOwner())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.OWNERS.DELETE")," ")}}function ix(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function rx(n,r){if(1&n&&t._UZ(0,"perun-web-apps-owners-list",10),2&n){const e=t.oxw();t.Q6J("selection",e.selected)("filterValue",e.filterValue)("owners",e.owners)("tableId",e.tableId)}}let ax=(()=>{class n{constructor(e,i,a){this.ownersManagerService=e,this.dialog=i,this.guiAuthResolver=a,this.owners=[],this.selected=new B.Ov(!0,[]),this.filterValue="",this.tableId=Sn.v1}ngOnInit(){this.setAuth(),this.refreshTable()}setAuth(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteOwner_Owner_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createOwner_Owner_policy",[])}refreshTable(){this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=e,this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}addOwner(){const e=(0,fe.kZ)();e.width="400px",e.data={},this.dialog.open(q0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeOwner(){const e=(0,fe.kZ)();e.width="400px",e.data=this.selected.selected,this.dialog.open($0,e).afterClosed().subscribe(a=>{a&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.aC),t.Y36(M.uw),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-owners"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","filterValue","owners","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","filterValue","owners","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,ex,3,3,"button",2),t.YNc(6,nx,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,ix,1,0,"mat-spinner",5),t.YNc(9,rx,1,4,"perun-web-apps-owners-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"ADMIN.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.addAuth),t.xp6(1),t.Q6J("ngIf",i.removeAuth),t.xp6(1),t.Q6J("placeholder","ADMIN.OWNERS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,Ue.t,Vn.L,tx.Q,u.X$]}),n})();var sx=s(74010);function ox(n,r){1&n&&t._UZ(0,"mat-spinner",5)}function lx(n,r){if(1&n&&t._UZ(0,"perun-web-apps-facilities-list",6),2&n){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("facilities",e.facilities)("tableId",e.tableId)}}let cx=(()=>{class n{constructor(e,i){this.facilityManager=e,this.route=i,this.facilities=[],this.filterValue="",this.tableId=Sn.zW,this.displayedColumns=["id","name","description"]}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe(e=>{this.facilities=e.map(i=>({facility:i})),this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.IQ),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-facilities"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","facilities","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","facilities","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,ox,1,0,"mat-spinner",3),t.YNc(7,lx,1,4,"perun-web-apps-facilities-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.FACILITIES.TITLE")),t.xp6(3),t.Q6J("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,tt.Ou,Ue.t,Vn.L,sx.X,u.X$]}),n})();var wc=s(64080),ux=s(73546),hx=s(25788),dx=s(62707),px=s(12488),fx=s(19191),mx=s(12651);function gx(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function _x(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",7),t.NdJ("voSelected",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.loadMember(a))}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("vos",e.vos)}}function vx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.STATUS")," ")}function xx(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const yx=function(){return["id","recent","name","description","expiration","groupStatus"]};function bx(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-groups-list",17),t.NdJ("refreshTable",function(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.loadMember(a.selectedVo))}),t.qZA()}if(2&n){const e=t.oxw(4);t.Q6J("groups",e.groups)("memberId",e.member.id)("memberGroupStatus",e.member.groupStatus)("displayedColumns",t.DdM(4,yx))}}const Ac=function(n,r){return["/organizations",n,"members",r]};function Tx(n,r){if(1&n&&(t.TgZ(0,"div")(1,"div",10)(2,"span",11),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"a",12),t.NdJ("auxclick",function(i){return i.preventDefault()}),t._uU(6),t.qZA()(),t.TgZ(7,"mat-card",13),t._UZ(8,"perun-web-apps-member-overview-membership",14),t.qZA(),t.TgZ(9,"p",15),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.YNc(12,bx,1,5,"perun-web-apps-groups-list",16),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.hij("",t.lcZ(4,8,"USER_DETAIL.ACCOUNTS.MEMBER"),":"),t.xp6(2),t.Q6J("perunWebAppsMiddleClickRouterLink",t.WLB(12,Ac,e.selectedVo.id.toString(),e.member.id.toString()))("routerLink",t.WLB(15,Ac,e.selectedVo.id,e.member.id)),t.xp6(1),t.hij("",e.member.id," "),t.xp6(2),t.Q6J("member",e.member)("voId",e.selectedVo.id),t.xp6(2),t.Oqu(t.lcZ(11,10,"USER_DETAIL.ACCOUNTS.GROUPS")),t.xp6(2),t.Q6J("ngIf",!e.loading)}}function Cx(n,r){if(1&n&&(t.YNc(0,xx,1,0,"mat-spinner",1),t.YNc(1,Tx,13,18,"div",4)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function wx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_ATT")," ")}function Ax(n,r){1&n&&t._UZ(0,"mat-spinner")}function Sx(n,r){if(1&n&&t._UZ(0,"app-one-entity-attribute-page",19),2&n){const e=t.oxw(3);t.Q6J("entity","member")("entityId",e.member.id)}}function Ex(n,r){if(1&n&&(t.YNc(0,Ax,1,0,"mat-spinner",4),t.YNc(1,Sx,1,2,"app-one-entity-attribute-page",18)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function Dx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_GROUP_ATT")," ")}function Lx(n,r){1&n&&t._UZ(0,"mat-spinner")}function kx(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",21),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","group")}}function Ix(n,r){if(1&n&&(t.YNc(0,Lx,1,0,"mat-spinner",4),t.YNc(1,kx,1,3,"app-two-entity-attribute-page",20)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function Ox(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_RESOURCE_ATT")," ")}function Mx(n,r){1&n&&t._UZ(0,"mat-spinner")}function Nx(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",21),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","resource")}}function Px(n,r){if(1&n&&(t.YNc(0,Mx,1,0,"mat-spinner",4),t.YNc(1,Nx,1,3,"app-two-entity-attribute-page",20)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function Fx(n,r){1&n&&(t.TgZ(0,"mat-tab-group")(1,"mat-tab"),t.YNc(2,vx,2,3,"ng-template",8),t.YNc(3,Cx,2,2,"ng-template",9),t.qZA(),t.TgZ(4,"mat-tab"),t.YNc(5,wx,2,3,"ng-template",8),t.YNc(6,Ex,2,2,"ng-template",9),t.qZA(),t.TgZ(7,"mat-tab"),t.YNc(8,Dx,2,3,"ng-template",8),t.YNc(9,Ix,2,2,"ng-template",9),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,Ox,2,3,"ng-template",8),t.YNc(12,Px,2,2,"ng-template",9),t.qZA()())}function Rx(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"USER_DETAIL.ACCOUNTS.NO_VOS")))}let Bx=(()=>{class n{constructor(e,i,a,o){this.route=e,this.usersService=i,this.membersService=a,this.groupService=o,this.initLoading=!1,this.loading=!1,this.vos=[],this.selectedVo=null,this.member=null,this.groups=[]}ngOnInit(){this.initLoading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.usersService.getVosWhereUserIsMember(this.userId).subscribe(i=>{this.vos=i,this.vos.length&&this.loadMember(this.vos[0]),this.initLoading=!1},()=>this.initLoading=!1)})}loadMember(e){this.loading=!0,this.selectedVo=e,this.membersService.getMemberByUser(this.selectedVo.id,this.userId).subscribe(i=>{this.membersService.getRichMemberWithAttributes(i.id).subscribe(a=>{this.member=a,this.groupService.getMemberRichGroupsWithAttributesByNames(this.member.id,[wc.r.MEMBER_DEF_GROUP_EXPIRATION,wc.r.MEMBER_GROUP_STATUS]).subscribe(o=>{this.groups=o,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(H.Fv),t.Y36(H.uq),t.Y36(H.ff))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-accounts"]],decls:8,vars:7,consts:[[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[1,"d-flex"],["class","w-50",3,"vos","voSelected",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-50",3,"vos","voSelected"],["matTabLabel",""],["matTabContent",""],[1,"mt-4","mb-4"],[1,"subtitle","mr-2"],[1,"member-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"mat-elevation-z3","membership-card"],[3,"member","voId"],[1,"mt-4","subtitle"],[3,"groups","memberId","memberGroupStatus","displayedColumns","refreshTable",4,"ngIf"],[3,"groups","memberId","memberGroupStatus","displayedColumns","refreshTable"],[3,"entity","entityId",4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,gx,1,0,"mat-spinner",1),t.TgZ(4,"div",2),t.YNc(5,_x,1,1,"perun-web-apps-vo-search-select",3),t.qZA(),t.YNc(6,Fx,13,0,"mat-tab-group",4),t.YNc(7,Rx,3,3,"perun-web-apps-alert",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"USER_DETAIL.ACCOUNTS.TITLE")),t.xp6(2),t.Q6J("ngIf",i.initLoading),t.xp6(2),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!i.initLoading&&0===i.vos.length))},dependencies:[m.O5,p.yS,jt.SP,jt.uD,jt.uX,jt.Vc,tt.Ou,ux.a8,K.w,hx.W,dx.M,bc.Y,Us.Q,px.b,fx.Y,mx.t,u.X$],styles:[".subtitle[_ngcontent-%COMP%]{font-size:1.2rem}.membership-card[_ngcontent-%COMP%]{max-width:400px}"]}),n})(),Sc=(()=>{class n{transform(e){if(e)return e.split(".").pop()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"parseEventName",type:n,pure:!0}),n})();function Zx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.OBJECTS")," ")}function Vx(n,r){if(1&n&&t._UZ(0,"pre",9),2&n){const e=t.oxw();t.Q6J("innerHTML",e.syntaxHighlight(e.eventData),t.oJD)}}function Gx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.MESSAGE")," ")}function Ux(n,r){if(1&n&&(t.TgZ(0,"div",10),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.message)}}let zx=(()=>{class n{constructor(e,i,a){this.dialogRef=e,this.data=i,this.clipboard=a,this.tabIndex=0,this.eventData={}}ngOnInit(){const e=this.data.message.event;this.actor=this.data.message.actor,this.createdAt=this.data.message.createdAt,e.message&&(this.message=e.message,delete e.message),e.name&&(this.title=e.name,delete e.name),this.eventData=e}tabChanged(e){this.tabIndex=e.index}copyObjects(){this.clipboard.copy(JSON.stringify(this.eventData,null,2))}copyMessage(){this.clipboard.copy(this.message)}syntaxHighlight(e){return"string"!=typeof e&&(e=JSON.stringify(e,void 0,2)),(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(i){let a="number";return i.startsWith('"')?a=i.endsWith(":")?"key":"string":/true|false/.test(i)?a="boolean":i.includes("null")&&(a="null"),''+i+""})}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Ln.TU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-message-detail-dialog"]],decls:26,vars:19,consts:[[1,"admin-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-button","",3,"click"],[3,"innerHTML"],["data-cy","audit-message-text"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"parseEventName"),t.qZA(),t.TgZ(5,"div",2)(6,"div"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"mat-tab-group",3),t.NdJ("selectedTabChange",function(o){return i.tabChanged(o)}),t.TgZ(11,"mat-tab"),t.YNc(12,Zx,2,3,"ng-template",4),t.YNc(13,Vx,1,1,"ng-template",5),t.qZA(),t.TgZ(14,"mat-tab"),t.YNc(15,Gx,2,3,"ng-template",4),t.YNc(16,Ux,2,1,"ng-template",5),t.qZA()()(),t.TgZ(17,"div",6)(18,"button",7),t.NdJ("click",function(){return i.onClose()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",8),t.NdJ("click",function(){return 0===i.tabIndex?i.copyObjects():i.copyMessage()}),t._uU(22),t.ALo(23,"translate"),t.TgZ(24,"mat-icon"),t._uU(25,"content_copy"),t.qZA()()()()),2&e){let a;t.xp6(2),t.hij(" ",t.lcZ(3,7,null!==(a=t.lcZ(4,9,i.title))&&void 0!==a?a:"DIALOGS.AUDIT_MESSAGE_DETAIL.TITLE")," "),t.xp6(5),t.HOy(" ",t.lcZ(8,11,"DIALOGS.AUDIT_MESSAGE_DETAIL.ACTOR"),": ",i.actor,", ",t.lcZ(9,13,"DIALOGS.AUDIT_MESSAGE_DETAIL.CREATED_AT"),": ",i.createdAt," "),t.xp6(12),t.hij(" ",t.lcZ(20,15,"DIALOGS.AUDIT_MESSAGE_DETAIL.CLOSE")," "),t.xp6(3),t.hij(" ",t.lcZ(23,17,"DIALOGS.AUDIT_MESSAGE_DETAIL.COPY")," ")}},dependencies:[l.Hw,G.lW,jt.SP,jt.uD,jt.uX,jt.Vc,M.uh,M.xY,M.H8,u.X$,Sc],styles:[".key{color:brown}.string{color:green}.number{color:#ff8c00}.boolean{color:#00f}.null{color:#f0f}\n"],encapsulation:2}),n})();var Hx=s(98739),Yx=s(56451),Wx=s(62383);function Xx(n,r){1&n&&(t.TgZ(0,"div",16),t._UZ(1,"mat-spinner",17),t.qZA())}function $x(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"AUDIT_MESSAGES_LIST.ID")," "))}function Qx(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function jx(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"AUDIT_MESSAGES_LIST.TIMESTAMP")," "))}function Jx(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.ALo(2,"parseDate"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.createdAt,!0)," ")}}function Kx(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.EVENT_NAME")))}function qx(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.ALo(2,"parseEventName"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.event.name)," ")}}function ty(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.ACTOR")))}function ey(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.actor," ")}}function ny(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.MESSAGE")))}function iy(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.event.message," ")}}function ry(n,r){1&n&&t._UZ(0,"th",20)}function ay(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",19)(1,"button",21),t.NdJ("click",function(){const o=t.CHM(e).$implicit,v=t.oxw();return t.KtG(v.viewDetails(o))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"AUDIT_MESSAGES_LIST.VIEW_DETAIL")," "))}function sy(n,r){1&n&&t._UZ(0,"tr",22)}function oy(n,r){1&n&&t._UZ(0,"tr",23)}function ly(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_AUDIT_MESSAGES"),"\n"))}let cy=(()=>{class n{constructor(e,i,a){this.dialog=e,this.dynamicPaginatingService=i,this.tableConfigService=a,this.displayedColumns=["id","timestamp","name","actor","event.message","detail"],this.pageSizeOptions=fe.f7}static getExportDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"timestamp":return(0,m.p6)(e.createdAt,"d.M.y H.mm.ss","en");case"name":return e.event.name.split(".").pop();case"actor":return e.actor;case"event.message":return e.event.message;default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,Yx.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,ae.b)(()=>this.loadAuditMessagesPage())).subscribe()}ngOnInit(){this.dataSource=new Z.Hy(this.dynamicPaginatingService,null),this.dataSource.loadAuditMessages(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING",this.selectedEvents)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadAuditMessagesPage())}loadAuditMessagesPage(){this.dataSource.loadAuditMessages(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.selectedEvents)}viewDetails(e){const i=(0,fe.kZ)(),a=JSON.parse(JSON.stringify(e));i.minWidth="700px",i.maxWidth="1000px",i.data={message:a},this.dialog.open(zx,i)}exportDisplayedData(e){(0,fe.O6)((0,fe.Xn)(this.dataSource.getData(),this.displayedColumns.filter(i=>"detail"!==i),n.getExportDataForColumn),e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(Z.ly),t.Y36(Sn.dB))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-messages-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(fe.l9,7),t.Gf(sn.YE,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.sort=a.first)}},inputs:{tableId:"tableId",refresh:"refresh",displayedColumns:"displayedColumns",selectedEvents:"selectedEvents"},features:[t._Bn([{provide:Hx.ye,useClass:Z.Be}]),t.TTD],decls:28,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","allowExportAll","exportDisplayedData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","id","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","actor"],["matColumnDef","event.message"],["matColumnDef","detail"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["data-cy","audit-message-detail-button","color","accent","mat-flat-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.ALo(1,"async"),t.TgZ(2,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)}),t.YNc(3,Xx,2,0,"div",2),t.ALo(4,"async"),t.TgZ(5,"table",3),t.ynx(6,4),t.YNc(7,$x,3,3,"th",5),t.YNc(8,Qx,2,1,"td",6),t.BQk(),t.ynx(9,7),t.YNc(10,jx,3,3,"th",5),t.YNc(11,Jx,3,4,"td",6),t.BQk(),t.ynx(12,8),t.YNc(13,Kx,3,3,"th",9),t.YNc(14,qx,3,3,"td",6),t.BQk(),t.ynx(15,10),t.YNc(16,ty,3,3,"th",9),t.YNc(17,ey,2,1,"td",6),t.BQk(),t.ynx(18,11),t.YNc(19,ny,3,3,"th",9),t.YNc(20,iy,2,1,"td",6),t.BQk(),t.ynx(21,12),t.YNc(22,ry,1,0,"th",9),t.YNc(23,ay,4,3,"td",6),t.BQk(),t.YNc(24,sy,1,0,"tr",13),t.YNc(25,oy,1,0,"tr",14),t.qZA()()(),t.YNc(26,ly,3,3,"perun-web-apps-alert",15),t.ALo(27,"async")),2&e&&(t.Q6J("hidden",0===i.dataSource.allObjectCount&&!1===t.lcZ(1,10,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataLength",i.dataSource.allObjectCount)("pageSizeOptions",i.pageSizeOptions)("tableId",i.tableId)("allowExportAll",!1),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,12,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(19),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.allObjectCount&&!1===t.lcZ(27,14,i.dataSource.loading$)))},dependencies:[m.O5,G.lW,sn.YE,sn.nU,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,tt.Ou,K.w,z.l,m.Ov,u.X$,Wx.M,Sc]}),n})();var uy=s(89593);let hy=(()=>{class n{constructor(){this.auditLogsSelected=new t.vpe,this.selectClosed=new t.vpe,this.searchFunction=e=>e,this.mainTextFunction=e=>e,this.secondaryTextFunction=()=>""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-audit-log-search-select"]],inputs:{auditLogs:"auditLogs"},outputs:{auditLogsSelected:"auditLogsSelected",selectClosed:"selectClosed"},decls:3,vars:10,consts:[[1,"w-450"],[3,"entities","searchFunction","shouldRefresh","mainTextFunction","secondaryTextFunction","multiple","disableAutoSelect","selectPlaceholder","entitySelected","selectClosed"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-entity-search-select",1),t.NdJ("entitySelected",function(o){return i.auditLogsSelected.emit(o)})("selectClosed",function(o){return i.selectClosed.emit(o)}),t.ALo(2,"translate"),t.qZA()()),2&e&&(t.xp6(1),t.Q6J("entities",i.auditLogs)("searchFunction",i.searchFunction)("shouldRefresh",!0)("mainTextFunction",i.mainTextFunction)("secondaryTextFunction",i.secondaryTextFunction)("multiple",!0)("disableAutoSelect",!0)("selectPlaceholder",t.lcZ(2,8,"ADMIN.AUDIT_LOG.SEARCH_DESCRIPTION")))},dependencies:[uy.i,u.X$],styles:[".w-450[_ngcontent-%COMP%]{width:450px}"]}),n})(),dy=(()=>{class n{constructor(e){this.auditMessagesManagerService=e,this.tableId=Sn.yW,this.refresh=!1,this.selectedEvents=[],this.eventOptions=[]}ngOnInit(){this.auditMessagesManagerService.findAllPossibleEvents().subscribe(e=>{this.eventOptions=e.sort()})}refreshTable(){this.refresh=!this.refresh}toggleEvent(e){this.selectedEvents.splice(0,this.selectedEvents.length,...e)}refreshOnClosed(){this.selectedEvents=[...this.selectedEvents]}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.jw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-audit-log"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[1,"align-elements"],[1,"d-flex","align-items-center"],[3,"refresh"],[3,"auditLogs","auditLogsSelected","selectClosed"],[3,"refresh","tableId","selectedEvents"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"div",2)(5,"perun-web-apps-refresh-button",3),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(6,"perun-web-apps-audit-log-search-select",4),t.NdJ("auditLogsSelected",function(o){return i.toggleEvent(o)})("selectClosed",function(){return i.refreshOnClosed()}),t.qZA()(),t._UZ(7,"app-audit-messages-list",5),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"ADMIN.AUDIT_LOG.TITLE")),t.xp6(5),t.Q6J("auditLogs",i.eventOptions),t.xp6(1),t.Q6J("refresh",i.refresh)("tableId",i.tableId)("selectedEvents",i.selectedEvents))},dependencies:[cy,Ue.t,hy,u.X$]}),n})();var py=s(44850);let fy=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-edit-enforce-consents-dialog"]],decls:26,vars:27,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mt-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",1)(6,"p"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t._UZ(10,"mat-divider"),t.TgZ(11,"p",2),t._uU(12),t.qZA(),t._UZ(13,"mat-divider"),t.TgZ(14,"perun-web-apps-alert",3),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"div",4)(19,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"button",6),t.NdJ("click",function(){return i.onSubmit()}),t._uU(23),t.ALo(24,"translate"),t.ALo(25,"translate"),t.qZA()()()),2&e&&(t.Tol(i.data.theme),t.xp6(2),t.hij(" ",i.data.enforceConsents?t.lcZ(3,9,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_TITLE"):t.lcZ(4,11,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_TITLE")," "),t.xp6(5),t.hij(" ",i.data.enforceConsents?t.lcZ(8,13,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_DESCRIPTION"):t.lcZ(9,15,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_DESCRIPTION")," "),t.xp6(5),t.Oqu(i.data.consentHubName),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(16,17,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BOLD_DESCRIPTION"):t.lcZ(17,19,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BOLD_DESCRIPTION")," "),t.xp6(5),t.hij(" ",t.lcZ(21,21,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.CANCEL_BUTTON")," "),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(24,23,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BUTTON"):t.lcZ(25,25,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BUTTON")," "))},dependencies:[G.lW,M.uh,M.xY,M.H8,py.d,K.w,u.X$]}),n})();function my(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&n){const e=t.oxw().ngIf,i=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",i.selection.hasValue()&&e.all)("indeterminate",i.selection.hasValue()&&!e.all)}}const gy=function(n){return{name:n}};function _y(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(2);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,i.selection.isSelected(e)),t.VKq(7,gy,e.name)))("checked",i.selection.isSelected(e))}}function vy(n,r){1&n&&(t.ynx(0,14),t.YNc(1,my,4,7,"th",15),t.YNc(2,_y,4,9,"td",16),t.BQk())}function xy(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ID")," "))}function yy(n,r){if(1&n&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function by(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NAME")," "))}function Ty(n,r){if(1&n&&(t.TgZ(0,"td",23),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&n){const e=r.$implicit;t.Q2q("data-cy","",t.lcZ(1,2,e.name),"-name-td"),t.xp6(2),t.hij(" ",e.name," ")}}function Cy(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ENFORCE_CONSENTS")," "))}function wy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",23)(1,"mat-slide-toggle",24),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw();return t.KtG(T.changeEnforceFlag(v,a))}),t.qZA()()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("checked",e.enforceConsents)}}function Ay(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.FACILITIES")," "))}function Sy(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.TgZ(2,"span",26),t._uU(3),t.qZA(),t._UZ(4,"br"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.name," "),t.xp6(2),t.hij(" #",e.id,"")}}function Ey(n,r){if(1&n&&(t.TgZ(0,"td",23),t.YNc(1,Sy,5,2,"span",25),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Q6J("ngForOf",e.facilities)}}function Dy(n,r){1&n&&t._UZ(0,"tr",27)}function Ly(n,r){1&n&&t._UZ(0,"tr",28)}function ky(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_CONSENT_HUBS"),"\n"))}function Iy(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_FILTER_RESULTS"),"\n"))}const Oy=function(n){return{all:n}};let My=(()=>{class n{constructor(e,i,a,o,v){this.tableCheckbox=e,this.dialog=i,this.notificator=a,this.translate=o,this.consentsManager=v,this.filterValue="",this.displayedColumns=["select","id","name","enforceConsents","facilities"],this.selection=new B.Ov(!0,[]),this.exporting=!1,this.pageSizeOptions=fe.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"name":return e.name;case"enforceConsents":return e.enforceConsents?"true":"false";case"facilities":{let a="";return e.facilities.forEach(o=>a+=o.name+" #"+String(o.id)+";"),a.slice(0,-1)}default:return""}}ngOnChanges(){this.dataSource=new R.by(this.consentHubs),this.setDataSource()}exportAllData(e){(0,fe.O6)((0,fe.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=i+this.dataSource.paginator.pageSize;(0,fe.O6)((0,fe.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,a),this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,i)=>(0,fe.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,fe.pR)(e,i,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}changeEnforceFlag(e,i){i.source.checked=e.enforceConsents;const a=(0,fe.kZ)();a.width="550px",a.data={theme:"admin-theme",enforceConsents:e.enforceConsents,consentHubName:e.name},this.dialog.open(fy,a).afterClosed().subscribe(v=>{v&&(e.enforceConsents=!e.enforceConsents,this.consentsManager.updateConsentHub({consentHub:e}).subscribe(T=>{i.source.checked=T.enforceConsents,e.enforceConsents=T.enforceConsents,this.translate.get("SHARED.COMPONENTS.CONSENT_HUBS_LIST.CHANGE_ENFORCE_CONSENTS_SUCCESS").subscribe(N=>{this.notificator.showSuccess(N)})},()=>e.enforceConsents=!e.enforceConsents))})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.UA),t.Y36(M.uw),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.WY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-consent-hubs-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(fe.l9,7),t.Gf(sn.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{consentHubs:"consentHubs",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",selection:"selection"},features:[t.TTD],decls:21,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enforceConsents"],["matColumnDef","facilities"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"checked","change"],[4,"ngFor","ngForOf"],[1,"text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)})("exportAllData",function(o){return i.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,vy,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,xy,3,3,"th",5),t.YNc(7,yy,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,by,3,3,"th",5),t.YNc(10,Ty,3,4,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,Cy,3,3,"th",5),t.YNc(13,wy,2,1,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,Ay,3,3,"th",5),t.YNc(16,Ey,2,1,"td",8),t.BQk(),t.YNc(17,Dy,1,0,"tr",11),t.YNc(18,Ly,1,0,"tr",12),t.qZA()()(),t.YNc(19,ky,3,3,"perun-web-apps-alert",13),t.YNc(20,Iy,3,3,"perun-web-apps-alert",13)),2&e&&(t.Q6J("hidden",0===i.consentHubs.length||0===i.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",i.tableId)("dataLength",i.dataSource.filteredData.length)("pageSizeOptions",i.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",i.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Oy,t.xi3(4,10,i.dataSource,i.selection.selected.length))),t.xp6(14),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.consentHubs.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.consentHubs.length))},dependencies:[m.sg,m.O5,sn.YE,sn.nU,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,Nn.oG,Tt.Rr,K.w,z.l,u.X$,$e.R,X.I,lt.G,A.r]}),n})();function Ny(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",8),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.CONSENT_HUBS.GLOBAL_DISABLED")," "))}function Py(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.evaluateConsents())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.globalForceConsents||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.CONSENT_HUBS.EVALUATE_CONSENTS")," ")}}function Fy(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function Ry(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-consent-hubs-list",11),2&n){const e=t.oxw();t.Q6J("consentHubs",e.consentHubs)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)}}let By=(()=>{class n{constructor(e,i,a,o,v,T){this.consentsManager=e,this.authResolver=i,this.notificator=a,this.translate=o,this.store=v,this.dialog=T,this.loading=!1,this.tableId=Sn.HE,this.selection=new B.Ov(!0,[]),this.filterValue="",this.consentHubs=[]}ngOnInit(){this.globalForceConsents=this.store.getProperty("enforce_consents"),this.refreshTable()}applyFilter(e){this.filterValue=e}refreshTable(){this.loading=!0,this.consentsManager.getAllConsentHubs().subscribe(e=>{this.consentHubs=e,this.loading=!1})}evaluateConsents(){const e=(0,fe.kZ)();e.width="500px",e.data={title:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_TITLE"),theme:"admin-theme",description:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_DESCRIPTION"),items:this.selection.selected.map(a=>a.name),type:"confirmation",showAsk:!1},this.dialog.open(ma.Ts,e).afterClosed().subscribe(a=>{a&&this.evaluateConsentsForConsentHubs()})}evaluateConsentsForConsentHubs(){this.loading=!0;const e=this.selection.selected.map(i=>i.id);this.consentsManager.evaluateConsentsForConsentHubs(e).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("ADMIN.CONSENT_HUBS.EVALUATION_FINISH")),this.selection.clear(),this.loading=!1},error:()=>this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.WY),t.Y36(Z.x4),t.Y36(Z.V6),t.Y36(Z.Te),t.Y36(Z.d6),t.Y36(M.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-admin-consent-hubs"]],decls:12,vars:12,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[3,"refresh"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","action-button mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"consentHubs","selection","filterValue","tableId",4,"ngIf"],["alert_type","warn"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"consentHubs","selection","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ny,3,3,"perun-web-apps-alert",1),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(6,"span",3),t.ALo(7,"translate"),t.YNc(8,Py,3,4,"button",4),t.qZA(),t.TgZ(9,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(10,Fy,1,0,"mat-spinner",6),t.YNc(11,Ry,1,4,"app-perun-web-apps-consent-hubs-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,8,"ADMIN.CONSENT_HUBS.TITLE")),t.xp6(2),t.Q6J("ngIf",!i.globalForceConsents),t.xp6(2),t.s9C("matTooltip",t.lcZ(7,10,"ADMIN.CONSENT_HUBS.TOOLTIP")),t.Q6J("matTooltipDisabled",i.globalForceConsents),t.xp6(2),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.CONSENT_HUBS.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,ln.gM,My,K.w,Ue.t,Vn.L,u.X$]}),n})();var Zy=s(57788),zs=s(71992),Vy=s(51403);const Gy=[{path:"",component:C,canActivateChild:[zs.a],children:[{path:"",component:I,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:V,data:{animation:"AdminAttributesPage"}},{path:"users",component:rv.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:ax,data:{animation:"AdminOwnersPage"}},{path:"services",component:Rv.F,data:{animation:"AdminServicesPage"}},{path:"audit_log",component:dy,data:{animation:"AdminAuditLogPage"}},{path:"visualizer",component:it,children:[{path:"",component:Mt,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:xt,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Yn,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:iv,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:wv,data:{animation:"AdminExtSourcesPage"}},{path:"consent_hubs",component:By,data:{animation:"AdminConsentHubsPage"}},{path:"searcher",component:Zy.g,data:{animation:"AdminSearcherPage"}}]},{path:"users/:userId",component:mv,canActivateChild:[zs.a],children:[{path:"",component:gv.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:Bx,data:{animation:"UserAccountsPage"}},{path:"attributes",component:xv.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:_v.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:vv.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:Fv,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:cx,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:Uv,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Qv,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:Av.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:Sv.R,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:I0.d,data:{animation:"AssociatedUsersPage"}},{path:"bans",component:Vy.Q,data:{animation:"UserBansPage"}}]},{path:"services/:serviceId",component:a0,canActivateChild:[zs.a],children:[{path:"",component:s0,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:k0,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:V0,data:{animation:"ServiceDestinationsPage"}}]}];let Uy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.Bz.forChild(Gy),p.Bz]}),n})();var zy=s(14264),Hy=s(63189),Yy=s(38338);let Wy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[Zp,W_,m.ez,Uy,zy.m,Hy.r,Bi.ez,Nt.d4,Yy.UsersModule]}),n})()},70242:(w,D,s)=>{"use strict";s.d(D,{q:()=>ie});var c=s(96308),x=s(95017),_=s(30671),m=s(9244),p=s(81591),t=s(94650),d=s(36895),l=s(97392),h=s(56709),f=s(10266),u=s(98380),g=s(18750),C=s(89383),L=s(64597),I=s(9185),B=s(8231),M=s(14849);function R(Ot,te){if(1&Ot){const jt=t.EpF();t.TgZ(0,"th",22)(1,"mat-checkbox",23),t.NdJ("change",function(At){t.CHM(jt);const Ht=t.oxw(2);return t.KtG(At?Ht.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&Ot){const jt=t.oxw().ngIf,se=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,jt.all)))("checked",se.selection.hasValue()&&jt.all)("indeterminate",se.selection.hasValue()&&!jt.all)}}const Z=function(Ot){return{name:Ot}};function H(Ot,te){if(1&Ot){const jt=t.EpF();t.TgZ(0,"td",24)(1,"mat-checkbox",25),t.NdJ("change",function(At){const Zt=t.CHM(jt).$implicit,Kt=t.oxw(2);return t.KtG(At?Kt.selection.toggle(Zt):null)})("click",function(At){return At.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&Ot){const jt=te.$implicit,se=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,se.selection.isSelected(jt)),t.VKq(7,Z,jt.destination)))("checked",se.selection.isSelected(jt))}}function G(Ot,te){1&Ot&&(t.ynx(0,19),t.YNc(1,R,4,7,"th",20),t.YNc(2,H,4,9,"td",21),t.BQk())}function tt(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")," "))}function K(Ot,te){if(1&Ot&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.hij(" ",jt.id," ")}}function st(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")," "))}function j(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.Oqu(jt.service.name)}}function W(Ot,te){1&Ot&&t._UZ(0,"th",29)}function et(Ot,te){1&Ot&&(t.TgZ(0,"mat-icon",31),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&Ot&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.WARN"))}function at(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t.YNc(1,et,3,3,"mat-icon",30),t.qZA()),2&Ot){const jt=te.$implicit,se=t.oxw();t.xp6(1),t.Q6J("ngIf",!se.services.has(jt.service.id))}}function Y(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")," "))}function nt(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.Oqu(jt.facility.name)}}function rt(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")," "))}function q(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&Ot){const jt=te.$implicit;t.uIk("data-cy",t.lcZ(1,2,jt.destination)),t.xp6(2),t.hij(" ",jt.destination," ")}}function F(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")," "))}function E(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.Oqu(jt.type.toUpperCase())}}function ut(Ot,te){1&Ot&&t._UZ(0,"th",29)}function ft(Ot,te){1&Ot&&(t.TgZ(0,"mat-icon",33),t.ALo(1,"translate"),t._uU(2," check_circle_outline "),t.qZA()),2&Ot&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function Dt(Ot,te){1&Ot&&(t.TgZ(0,"mat-icon",33),t.ALo(1,"translate"),t._uU(2," block "),t.qZA()),2&Ot&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function St(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t.YNc(1,ft,3,3,"mat-icon",32),t.YNc(2,Dt,3,3,"mat-icon",32),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.Q6J("ngIf",!jt.blocked),t.xp6(1),t.Q6J("ngIf",jt.blocked)}}function Qt(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")," "))}function pe(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.Oqu(jt.propagationType)}}function wt(Ot,te){1&Ot&&t._UZ(0,"tr",34)}function yt(Ot,te){1&Ot&&t._UZ(0,"tr",35)}function Nt(Ot,te){1&Ot&&(t.TgZ(0,"perun-web-apps-alert",36),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function zt(Ot,te){1&Ot&&(t.TgZ(0,"perun-web-apps-alert",36),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}const de=function(Ot){return{all:Ot}};let ie=(()=>{class Ot{constructor(jt,se){this.authResolver=jt,this.tableCheckbox=se,this.destinations=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.pageSizeOptions=m.f7}set matSort(jt){this.sort=jt,this.setDataSource()}static getDataForColumn(jt,se){switch(se){case"destinationId":return jt.id.toString();case"service":return jt.service.name;case"facility":return jt.facility.name;case"destination":return jt.destination;case"type":return jt.type;case"status":return jt.blocked?"blocked":"allowed";case"propagationType":return jt.propagationType;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(jt=>"destinationId"!==jt)),this.dataSource=new _.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}exportAllData(jt){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,Ot.getDataForColumn),jt)}exportDisplayedData(jt){const se=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,At=se+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(se,At),this.displayedColumns,Ot.getDataForColumn),jt)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(jt,se)=>(0,m.Sd)(jt,se,this.displayedColumns,Ot.getDataForColumn),this.dataSource.sortData=(jt,se)=>(0,m.pR)(jt,se,Ot.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return Ot.\u0275fac=function(jt){return new(jt||Ot)(t.Y36(p.x4),t.Y36(p.UA))},Ot.\u0275cmp=t.Xpm({type:Ot,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(jt,se){if(1&jt&&(t.Gf(m.l9,7),t.Gf(c.YE,7)),2&jt){let At;t.iGM(At=t.CRH())&&(se.child=At.first),t.iGM(At=t.CRH())&&(se.matSort=At.first)}},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",services:"services"},features:[t.TTD],decls:33,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","destinationId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","service"],["mat-cell","",4,"matCellDef"],["matColumnDef","warn"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","facility"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","status"],["matColumnDef","propagationType"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","warn","matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"warn",3,"matTooltip"],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(jt,se){1&jt&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(Ht){return se.exportDisplayedData(Ht)})("exportAllData",function(Ht){return se.exportAllData(Ht)}),t.TgZ(2,"table",2),t.YNc(3,G,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,tt,3,3,"th",5),t.YNc(7,K,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,st,3,3,"th",5),t.YNc(10,j,2,1,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,W,1,0,"th",10),t.YNc(13,at,2,1,"td",8),t.BQk(),t.ynx(14,11),t.YNc(15,Y,3,3,"th",5),t.YNc(16,nt,2,1,"td",8),t.BQk(),t.ynx(17,12),t.YNc(18,rt,3,3,"th",5),t.YNc(19,q,3,4,"td",8),t.BQk(),t.ynx(20,13),t.YNc(21,F,3,3,"th",5),t.YNc(22,E,2,1,"td",8),t.BQk(),t.ynx(23,14),t.YNc(24,ut,1,0,"th",10),t.YNc(25,St,3,2,"td",8),t.BQk(),t.ynx(26,15),t.YNc(27,Qt,3,3,"th",5),t.YNc(28,pe,2,1,"td",8),t.BQk(),t.YNc(29,wt,1,0,"tr",16),t.YNc(30,yt,1,0,"tr",17),t.qZA()()(),t.YNc(31,Nt,3,3,"perun-web-apps-alert",18),t.YNc(32,zt,3,3,"perun-web-apps-alert",18)),2&jt&&(t.Q6J("hidden",0===se.dataSource.filteredData.length||0===se.destinations.length),t.xp6(1),t.Q6J("pageSizeOptions",se.pageSizeOptions)("dataLength",se.dataSource.filteredData.length)("tableId",se.tableId),t.xp6(1),t.Q6J("dataSource",se.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,de,t.xi3(4,10,se.dataSource,se.selection.selected.length))),t.xp6(26),t.Q6J("matHeaderRowDef",se.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",se.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===se.dataSource.filteredData.length&&0!==se.destinations.length),t.xp6(1),t.Q6J("ngIf",0===se.destinations.length))},dependencies:[d.O5,l.Hw,c.YE,c.nU,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,h.oG,f.gM,u.w,g.l,C.X$,L.R,I.I,B.G,M.r],styles:[".warn[_ngcontent-%COMP%]{color:#ebe134}"]}),Ot})()},89466:(w,D,s)=>{"use strict";s.d(D,{u:()=>I});var c=s(61744),x=s(65412),_=s(30671),m=s(81591),p=s(94650),t=s(36895),d=s(4859),l=s(51572),h=s(98380),f=s(70242),u=s(89383);function g(B,M){1&B&&p._UZ(0,"mat-spinner",6)}function C(B,M){if(1&B&&p._UZ(0,"app-perun-web-apps-destination-list",11),2&B){const R=p.oxw(2);p.Q6J("destinations",R.destinations)("displayedColumns",R.displayedColumns)}}function L(B,M){if(1&B&&(p.TgZ(0,"div",7)(1,"perun-web-apps-alert",8),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"p"),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"div",9),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.YNc(10,C,1,2,"app-perun-web-apps-destination-list",10),p.qZA()),2&B){const R=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,4,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),p.xp6(3),p.Oqu(p.lcZ(6,6,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),p.xp6(3),p.hij(" ",p.lcZ(9,8,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),p.xp6(2),p.Q6J("ngIf",!R.loading)}}let I=(()=>{class B{constructor(R,Z,H,G,tt){this.dialogRef=R,this.data=Z,this.notificator=H,this.translate=G,this.serviceManager=tt,this.displayedColumns=[],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.destinations=this.data.destinations,this.displayedColumns="admin-theme"===this.theme?["destinationId","facility","destination","type","propagationType"]:["destinationId","service","destination","type","propagationType"],this.dataSource=new _.by(this.data.destinations)}onCancel(){this.dialogRef.close(!1)}deleteDestinations(){this.serviceManager.removeDestinationsByRichDestinations({richDestinations:this.destinations}).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_DESTINATIONS.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}onConfirm(){this.loading=!0,this.deleteDestinations()}}return B.\u0275fac=function(R){return new(R||B)(p.Y36(x.so),p.Y36(x.WI),p.Y36(m.V6),p.Y36(m.Te),p.Y36(c.KK))},B.\u0275cmp=p.Xpm({type:B,selectors:[["app-perun-web-apps-remove-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","warn"],[1,"font-weight-bold"],[3,"destinations","displayedColumns",4,"ngIf"],[3,"destinations","displayedColumns"]],template:function(R,Z){1&R&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,g,1,0,"mat-spinner",1),p.YNc(5,L,11,10,"div",2),p.TgZ(6,"div",3)(7,"button",4),p.NdJ("click",function(){return Z.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return Z.onConfirm()}),p._uU(11),p.ALo(12,"translate"),p.qZA()()()),2&R&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),p.xp6(2),p.Tol(Z.theme),p.xp6(1),p.Q6J("ngIf",Z.loading),p.xp6(1),p.Q6J("ngIf",!Z.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",Z.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM")," "))},dependencies:[t.O5,d.lW,x.uh,x.xY,x.H8,l.Ou,h.w,f.q,u.X$]}),B})()},23256:(w,D,s)=>{"use strict";s.d(D,{Q:()=>q});var c=s(96308),x=s(95017),_=s(30671),m=s(9244),p=s(81591),t=s(94650),d=s(36895),l=s(56709),h=s(98380),f=s(18750),u=s(89383),g=s(9185),C=s(8231),L=s(14849);function I(F,E){if(1&F){const ut=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(Dt){t.CHM(ut);const St=t.oxw(2);return t.KtG(Dt?St.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&F){const ut=t.oxw().ngIf,ft=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,ut.all)))("checked",ft.selection.hasValue()&&ut.all)("indeterminate",ft.selection.hasValue()&&!ut.all)}}const B=function(F){return{name:F}};function M(F,E){if(1&F){const ut=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(Dt){const Qt=t.CHM(ut).$implicit,pe=t.oxw(2);return t.KtG(Dt?pe.selection.toggle(Qt):null)})("click",function(Dt){return Dt.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&F){const ut=E.$implicit,ft=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,ft.selection.isSelected(ut)),t.VKq(7,B,ut.name)))("checked",ft.selection.isSelected(ut))}}function R(F,E){1&F&&(t.ynx(0,14),t.YNc(1,I,4,7,"th",15),t.YNc(2,M,4,9,"td",16),t.BQk())}function Z(F,E){1&F&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function H(F,E){if(1&F&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&F){const ut=E.$implicit;t.xp6(1),t.hij(" ",ut.id," ")}}function G(F,E){1&F&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function tt(F,E){if(1&F&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&F){const ut=E.$implicit;t.uIk("data-cy",ut.name),t.xp6(1),t.Oqu(ut.name)}}function K(F,E){1&F&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function st(F,E){if(1&F&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&F){const ut=E.$implicit;t.xp6(1),t.Oqu(ut.contact)}}function j(F,E){1&F&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function W(F,E){if(1&F&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&F){const ut=E.$implicit;t.xp6(1),t.Oqu(ut.type)}}function et(F,E){1&F&&t._UZ(0,"tr",24)}function at(F,E){1&F&&t._UZ(0,"tr",25)}function Y(F,E){1&F&&(t.TgZ(0,"perun-web-apps-alert",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function nt(F,E){1&F&&(t.TgZ(0,"perun-web-apps-alert",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}const rt=function(F){return{all:F}};let q=(()=>{class F{constructor(ut,ft){this.authResolver=ut,this.tableCheckbox=ft,this.owners=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=m.f7}set matSort(ut){this.sort=ut,this.setDataSource()}static getDataForColumn(ut,ft){switch(ft){case"id":return ut.id.toString();case"name":return ut.name;case"contact":return ut.contact;case"type":return ut.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportAllData(ut){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,F.getDataForColumn),ut)}exportDisplayedData(ut){const ft=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Dt=ft+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ft,Dt),this.displayedColumns,F.getDataForColumn),ut)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(ut,ft)=>(0,m.Sd)(ut,ft,this.displayedColumns,F.getDataForColumn),this.dataSource.sortData=(ut,ft)=>(0,m.pR)(ut,ft,F.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ut=>"id"!==ut)),this.dataSource=new _.by(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return F.\u0275fac=function(ut){return new(ut||F)(t.Y36(p.x4),t.Y36(p.UA))},F.\u0275cmp=t.Xpm({type:F,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(ut,ft){if(1&ut&&(t.Gf(m.l9,7),t.Gf(c.YE,7)),2&ut){let Dt;t.iGM(Dt=t.CRH())&&(ft.child=Dt.first),t.iGM(Dt=t.CRH())&&(ft.matSort=Dt.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[t.TTD],decls:21,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(ut,ft){1&ut&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(St){return ft.exportDisplayedData(St)})("exportAllData",function(St){return ft.exportAllData(St)}),t.TgZ(2,"table",2),t.YNc(3,R,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Z,3,3,"th",5),t.YNc(7,H,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,G,3,3,"th",5),t.YNc(10,tt,2,2,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,K,3,3,"th",5),t.YNc(13,st,2,1,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,j,3,3,"th",5),t.YNc(16,W,2,1,"td",8),t.BQk(),t.YNc(17,et,1,0,"tr",11),t.YNc(18,at,1,0,"tr",12),t.qZA()()(),t.YNc(19,Y,3,3,"perun-web-apps-alert",13),t.YNc(20,nt,3,3,"perun-web-apps-alert",13)),2&ut&&(t.Q6J("hidden",0===ft.owners.length||0===ft.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",ft.tableId)("dataLength",ft.dataSource.filteredData.length)("pageSizeOptions",ft.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",ft.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,rt,t.xi3(4,10,ft.dataSource,ft.selection.selected.length))),t.xp6(14),t.Q6J("matHeaderRowDef",ft.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",ft.displayedColumns),t.xp6(1),t.Q6J("ngIf",!ft.owners.length),t.xp6(1),t.Q6J("ngIf",!ft.dataSource.filteredData.length&&ft.owners.length))},dependencies:[d.O5,l.oG,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,c.YE,c.nU,h.w,f.l,u.X$,g.I,C.G,L.r]}),F})()},16087:(w,D,s)=>{"use strict";const c=s(34315),x=s(52872),_=s(60929);w.exports=function m(d,l){switch(x(d)){case"object":return function p(d,l){if("function"==typeof l)return l(d);if(l||_(d)){const h=new d.constructor;for(let f in d)h[f]=m(d[f],l);return h}return d}(d,l);case"array":return function t(d,l){const h=new d.constructor(d.length);for(let f=0;f{"use strict";var c=s(50623);function x(_){return!0===c(_)&&"[object Object]"===Object.prototype.toString.call(_)}w.exports=function(m){var p,t;return!(!1===x(m)||(p=m.constructor,"function"!=typeof p)||(t=p.prototype,!1===x(t))||!1===t.hasOwnProperty("isPrototypeOf"))}},52786:(w,D,s)=>{"use strict";s.d(D,{B8:()=>K,Il:()=>x,J5:()=>m,SU:()=>tt,Ss:()=>st,Ym:()=>nt,ZP:()=>Z,xV:()=>_});var c=s(68884);function x(){}var _=.7,m=1/_,p="\\s*([+-]?\\d+)\\s*",t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",d="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),f=new RegExp("^rgb\\("+[d,d,d]+"\\)$"),u=new RegExp("^rgba\\("+[p,p,p,t]+"\\)$"),g=new RegExp("^rgba\\("+[d,d,d,t]+"\\)$"),C=new RegExp("^hsl\\("+[t,d,d]+"\\)$"),L=new RegExp("^hsla\\("+[t,d,d,t]+"\\)$"),I={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function B(){return this.rgb().formatHex()}function R(){return this.rgb().formatRgb()}function Z(F){var E,ut;return F=(F+"").trim().toLowerCase(),(E=l.exec(F))?(ut=E[1].length,E=parseInt(E[1],16),6===ut?H(E):3===ut?new st(E>>8&15|E>>4&240,E>>4&15|240&E,(15&E)<<4|15&E,1):8===ut?G(E>>24&255,E>>16&255,E>>8&255,(255&E)/255):4===ut?G(E>>12&15|E>>8&240,E>>8&15|E>>4&240,E>>4&15|240&E,((15&E)<<4|15&E)/255):null):(E=h.exec(F))?new st(E[1],E[2],E[3],1):(E=f.exec(F))?new st(255*E[1]/100,255*E[2]/100,255*E[3]/100,1):(E=u.exec(F))?G(E[1],E[2],E[3],E[4]):(E=g.exec(F))?G(255*E[1]/100,255*E[2]/100,255*E[3]/100,E[4]):(E=C.exec(F))?at(E[1],E[2]/100,E[3]/100,1):(E=L.exec(F))?at(E[1],E[2]/100,E[3]/100,E[4]):I.hasOwnProperty(F)?H(I[F]):"transparent"===F?new st(NaN,NaN,NaN,0):null}function H(F){return new st(F>>16&255,F>>8&255,255&F,1)}function G(F,E,ut,ft){return ft<=0&&(F=E=ut=NaN),new st(F,E,ut,ft)}function tt(F){return F instanceof x||(F=Z(F)),F?new st((F=F.rgb()).r,F.g,F.b,F.opacity):new st}function K(F,E,ut,ft){return 1===arguments.length?tt(F):new st(F,E,ut,ft??1)}function st(F,E,ut,ft){this.r=+F,this.g=+E,this.b=+ut,this.opacity=+ft}function j(){return"#"+et(this.r)+et(this.g)+et(this.b)}function W(){var F=this.opacity;return(1===(F=isNaN(F)?1:Math.max(0,Math.min(1,F)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===F?")":", "+F+")")}function et(F){return((F=Math.max(0,Math.min(255,Math.round(F)||0)))<16?"0":"")+F.toString(16)}function at(F,E,ut,ft){return ft<=0?F=E=ut=NaN:ut<=0||ut>=1?F=E=NaN:E<=0&&(F=NaN),new rt(F,E,ut,ft)}function Y(F){if(F instanceof rt)return new rt(F.h,F.s,F.l,F.opacity);if(F instanceof x||(F=Z(F)),!F)return new rt;if(F instanceof rt)return F;var E=(F=F.rgb()).r/255,ut=F.g/255,ft=F.b/255,Dt=Math.min(E,ut,ft),St=Math.max(E,ut,ft),Qt=NaN,pe=St-Dt,wt=(St+Dt)/2;return pe?(Qt=E===St?(ut-ft)/pe+6*(ut0&&wt<1?0:Qt,new rt(Qt,pe,wt,F.opacity)}function nt(F,E,ut,ft){return 1===arguments.length?Y(F):new rt(F,E,ut,ft??1)}function rt(F,E,ut,ft){this.h=+F,this.s=+E,this.l=+ut,this.opacity=+ft}function q(F,E,ut){return 255*(F<60?E+(ut-E)*F/60:F<180?ut:F<240?E+(ut-E)*(240-F)/60:E)}(0,c.Z)(x,Z,{copy:function(F){return Object.assign(new this.constructor,this,F)},displayable:function(){return this.rgb().displayable()},hex:B,formatHex:B,formatHsl:function M(){return Y(this).formatHsl()},formatRgb:R,toString:R}),(0,c.Z)(st,K,(0,c.l)(x,{brighter:function(F){return F=null==F?m:Math.pow(m,F),new st(this.r*F,this.g*F,this.b*F,this.opacity)},darker:function(F){return F=null==F?_:Math.pow(_,F),new st(this.r*F,this.g*F,this.b*F,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:j,formatHex:j,formatRgb:W,toString:W})),(0,c.Z)(rt,nt,(0,c.l)(x,{brighter:function(F){return F=null==F?m:Math.pow(m,F),new rt(this.h,this.s,this.l*F,this.opacity)},darker:function(F){return F=null==F?_:Math.pow(_,F),new rt(this.h,this.s,this.l*F,this.opacity)},rgb:function(){var F=this.h%360+360*(this.h<0),E=isNaN(F)||isNaN(this.s)?0:this.s,ut=this.l,ft=ut+(ut<.5?ut:1-ut)*E,Dt=2*ut-ft;return new st(q(F>=240?F-240:F+120,Dt,ft),q(F,Dt,ft),q(F<120?F+240:F-120,Dt,ft),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var F=this.opacity;return(1===(F=isNaN(F)?1:Math.max(0,Math.min(1,F)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===F?")":", "+F+")")}}))},68884:(w,D,s)=>{"use strict";function c(_,m,p){_.prototype=m.prototype=p,p.constructor=_}function x(_,m){var p=Object.create(_.prototype);for(var t in m)p[t]=m[t];return p}s.d(D,{Z:()=>c,l:()=>x})},25922:(w,D,s)=>{"use strict";s.d(D,{Z:()=>d});var c={value:function(){}};function x(){for(var u,l=0,h=arguments.length,f={};l=0&&(u=f.slice(g+1),f=f.slice(0,g)),f&&!h.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:u}})}function p(l,h){for(var g,f=0,u=l.length;f0)for(var g,C,f=new Array(g),u=0;u{"use strict";s.d(D,{Z:()=>m,D:()=>p});var c=s(52016);function _(t){t.preventDefault(),t.stopImmediatePropagation()}function m(t){var d=t.document.documentElement,l=(0,c.Z)(t).on("dragstart.drag",_,!0);"onselectstart"in d?l.on("selectstart.drag",_,!0):(d.__noselect=d.style.MozUserSelect,d.style.MozUserSelect="none")}function p(t,d){var l=t.document.documentElement,h=(0,c.Z)(t).on("dragstart.drag",null);d&&(h.on("click.drag",_,!0),setTimeout(function(){h.on("click.drag",null)},0)),"onselectstart"in l?h.on("selectstart.drag",null):(l.style.MozUserSelect=l.__noselect,delete l.__noselect)}},27065:(w,D,s)=>{"use strict";function _(m){return((m*=2)<=1?m*m*m:(m-=2)*m*m+2)/2}s.d(D,{tw:()=>_})},22910:(w,D,s)=>{"use strict";s.d(D,{WU:()=>_,ZP:()=>p,jH:()=>m});var x,_,m,c=s(4753);function p(t){return x=(0,c.Z)(t),_=x.format,m=x.formatPrefix,x}p({thousands:",",grouping:[3],currency:["$",""]})},68520:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(5326);function x(_){return(_=(0,c.V)(Math.abs(_)))?_[1]:NaN}},5326:(w,D,s)=>{"use strict";function c(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)}function x(_,m){if((p=(_=m?_.toExponential(m-1):_.toExponential()).indexOf("e"))<0)return null;var p,t=_.slice(0,p);return[t.length>1?t[0]+t.slice(2):t,+_.slice(p+1)]}s.d(D,{V:()=>x,Z:()=>c})},32517:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x,v:()=>_});var c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function x(m){if(!(p=c.exec(m)))throw new Error("invalid format: "+m);var p;return new _({fill:p[1],align:p[2],sign:p[3],symbol:p[4],zero:p[5],width:p[6],comma:p[7],precision:p[8]&&p[8].slice(1),trim:p[9],type:p[10]})}function _(m){this.fill=void 0===m.fill?" ":m.fill+"",this.align=void 0===m.align?">":m.align+"",this.sign=void 0===m.sign?"-":m.sign+"",this.symbol=void 0===m.symbol?"":m.symbol+"",this.zero=!!m.zero,this.width=void 0===m.width?void 0:+m.width,this.comma=!!m.comma,this.precision=void 0===m.precision?void 0:+m.precision,this.trim=!!m.trim,this.type=void 0===m.type?"":m.type+""}x.prototype=_.prototype,_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},41129:(w,D,s)=>{"use strict";s.r(D),s.d(D,{FormatSpecifier:()=>_.v,format:()=>c.WU,formatDefaultLocale:()=>c.ZP,formatLocale:()=>x.Z,formatPrefix:()=>c.jH,formatSpecifier:()=>_.Z,precisionFixed:()=>m.Z,precisionPrefix:()=>p.Z,precisionRound:()=>t.Z});var c=s(22910),x=s(4753),_=s(32517),m=s(78986),p=s(38914),t=s(65142)},4753:(w,D,s)=>{"use strict";s.d(D,{Z:()=>L});var d,c=s(68520),m=s(32517),t=s(5326);function h(I,B){var M=(0,t.V)(I,B);if(!M)return I+"";var R=M[0],Z=M[1];return Z<0?"0."+new Array(-Z).join("0")+R:R.length>Z+1?R.slice(0,Z+1)+"."+R.slice(Z+1):R+new Array(Z-R.length+2).join("0")}const f={"%":(I,B)=>(100*I).toFixed(B),b:I=>Math.round(I).toString(2),c:I=>I+"",d:t.Z,e:(I,B)=>I.toExponential(B),f:(I,B)=>I.toFixed(B),g:(I,B)=>I.toPrecision(B),o:I=>Math.round(I).toString(8),p:(I,B)=>h(100*I,B),r:h,s:function l(I,B){var M=(0,t.V)(I,B);if(!M)return I+"";var R=M[0],Z=M[1],H=Z-(d=3*Math.max(-8,Math.min(8,Math.floor(Z/3))))+1,G=R.length;return H===G?R:H>G?R+new Array(H-G+1).join("0"):H>0?R.slice(0,H)+"."+R.slice(H):"0."+new Array(1-H).join("0")+(0,t.V)(I,Math.max(0,B+H-1))[0]},X:I=>Math.round(I).toString(16).toUpperCase(),x:I=>Math.round(I).toString(16)};function u(I){return I}var g=Array.prototype.map,C=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function L(I){var B=void 0===I.grouping||void 0===I.thousands?u:function x(I,B){return function(M,R){for(var Z=M.length,H=[],G=0,tt=I[0],K=0;Z>0&&tt>0&&(K+tt+1>R&&(tt=Math.max(1,R-K)),H.push(M.substring(Z-=tt,Z+tt)),!((K+=tt+1)>R));)tt=I[G=(G+1)%I.length];return H.reverse().join(B)}}(g.call(I.grouping,Number),I.thousands+""),M=void 0===I.currency?"":I.currency[0]+"",R=void 0===I.currency?"":I.currency[1]+"",Z=void 0===I.decimal?".":I.decimal+"",H=void 0===I.numerals?u:function _(I){return function(B){return B.replace(/[0-9]/g,function(M){return I[+M]})}}(g.call(I.numerals,String)),G=void 0===I.percent?"%":I.percent+"",tt=void 0===I.minus?"\u2212":I.minus+"",K=void 0===I.nan?"NaN":I.nan+"";function st(W){var et=(W=(0,m.Z)(W)).fill,at=W.align,Y=W.sign,nt=W.symbol,rt=W.zero,q=W.width,F=W.comma,E=W.precision,ut=W.trim,ft=W.type;"n"===ft?(F=!0,ft="g"):f[ft]||(void 0===E&&(E=12),ut=!0,ft="g"),(rt||"0"===et&&"="===at)&&(rt=!0,et="0",at="=");var Dt="$"===nt?M:"#"===nt&&/[boxX]/.test(ft)?"0"+ft.toLowerCase():"",St="$"===nt?R:/[%p]/.test(ft)?G:"",Qt=f[ft],pe=/[defgprs%]/.test(ft);function wt(yt){var de,ie,Ot,Nt=Dt,zt=St;if("c"===ft)zt=Qt(yt)+zt,yt="";else{var te=(yt=+yt)<0||1/yt<0;if(yt=isNaN(yt)?K:Qt(Math.abs(yt),E),ut&&(yt=function p(I){t:for(var Z,B=I.length,M=1,R=-1;M0&&(R=0)}return R>0?I.slice(0,R)+I.slice(Z+1):I}(yt)),te&&0==+yt&&"+"!==Y&&(te=!1),Nt=(te?"("===Y?Y:tt:"-"===Y||"("===Y?"":Y)+Nt,zt=("s"===ft?C[8+d/3]:"")+zt+(te&&"("===Y?")":""),pe)for(de=-1,ie=yt.length;++de(Ot=yt.charCodeAt(de))||Ot>57){zt=(46===Ot?Z+yt.slice(de+1):yt.slice(de))+zt,yt=yt.slice(0,de);break}}F&&!rt&&(yt=B(yt,1/0));var jt=Nt.length+yt.length+zt.length,se=jt>1)+Nt+yt+zt+se.slice(jt);break;default:yt=se+Nt+yt+zt}return H(yt)}return E=void 0===E?6:/[gprs]/.test(ft)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E)),wt.toString=function(){return W+""},wt}return{format:st,formatPrefix:function j(W,et){var at=st(((W=(0,m.Z)(W)).type="f",W)),Y=3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(et)/3))),nt=Math.pow(10,-Y),rt=C[8+Y/3];return function(q){return at(nt*q)+rt}}}}},78986:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(68520);function x(_){return Math.max(0,-(0,c.Z)(Math.abs(_)))}},38914:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(68520);function x(_,m){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(m)/3)))-(0,c.Z)(Math.abs(_)))}},65142:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(68520);function x(_,m){return _=Math.abs(_),m=Math.abs(m)-_,Math.max(0,(0,c.Z)(m)-(0,c.Z)(_))+1}},9921:function(w,D,s){!function(c,x,_,m,p,t,d,l,h,f){"use strict";function u(Q){if(Q&&Q.__esModule)return Q;var pt=Object.create(null);return Q&&Object.keys(Q).forEach(function(mt){if("default"!==mt){var gt=Object.getOwnPropertyDescriptor(Q,mt);Object.defineProperty(pt,mt,gt.get?gt:{enumerable:!0,get:function(){return Q[mt]}})}}),pt.default=Q,Object.freeze(pt)}var Lt,g=u(x);function C(Q,pt,mt){return pt in Q?Object.defineProperty(Q,pt,{value:mt,enumerable:!0,configurable:!0,writable:!0}):Q[pt]=mt,Q}function L(Q){return function I(Q){if(Array.isArray(Q))return R(Q)}(Q)||function B(Q){if(typeof Symbol<"u"&&null!=Q[Symbol.iterator]||null!=Q["@@iterator"])return Array.from(Q)}(Q)||function M(Q,pt){if(Q){if("string"==typeof Q)return R(Q,pt);var mt=Object.prototype.toString.call(Q).slice(8,-1);if("Object"===mt&&Q.constructor&&(mt=Q.constructor.name),"Map"===mt||"Set"===mt)return Array.from(Q);if("Arguments"===mt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(mt))return R(Q,pt)}}(Q)||function Z(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(Q,pt){(null==pt||pt>Q.length)&&(pt=Q.length);for(var mt=0,gt=new Array(pt);mt1&&void 0!==arguments[1]?arguments[1]:0,mt=g.select(this),gt=Q.attributes,Ut=mt.node().attributes;if(Ut)for(var Xt=0;Xt0?Cn.children[0].text:"")}null==he.key&&(Ut&&("ellipse"==vn||"polygon"==vn)&&(vn="path"),he.key=vn+"-"+je)}function Pe(he,je){he.id=(je?je.id+".":"")+he.key}function Be(he){O[he.id]=he}function ue(he,je){Ut&&he.id in oe&&("polygon"==je.tag||"ellipse"==je.tag||"path"==je.tag)&&(je.tag!=he.tag||"polygon"==he.tag)&&("path"!=je.tag&&(he.alternativeOld=se(je,he)),"path"!=he.tag&&(he.alternativeNew=se(he,je)))}function me(he,je){if(gt&&je&&("path"==je.tag||he.alternativeOld&&"path"==he.alternativeOld.tag)){var vn=(he.alternativeNew||he).attributes.d;if(he.alternativeOld)var Cn=K(he.alternativeOld);else Cn=K(je);(he.alternativeOld||(he.alternativeOld={})).points=function wt(Q,pt,mt,gt){for(var Ut=Q,Xt=Ut.cloneNode(),kt=Ut.getTotalLength(),le=(Xt.setAttribute("d",pt),Xt).getTotalLength(),O=[0],oe=0,Se=gt?mt:mt/Math.max(kt,le);(oe+=Se)<1;)O.push(oe);return O.push(1),O.map(function(Ke){var Pe=Ut.getPointAtLength(Ke*kt),Be=Xt.getPointAtLength(Ke*le);return[[Pe.x,Pe.y],[Be.x,Be.y]]})}(Cn,vn,Xt,kt)}}function Fe(he){var vn=arguments.length>2?arguments[2]:void 0;Ke(he,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),Pe(he,vn);var $n=oe[he.id];Be(he),ue(he,$n),me(he,$n);var ci={};he.children.forEach(function(vi){var Qn=vi.tag;("ellipse"==Qn||"polygon"==Qn)&&(Qn="path"),null==ci[Qn]&&(ci[Qn]=0),Fe(vi,ci[Qn]++,he)})}function $e(he){(function fn(he){if(le&&he.parent&&"node"==he.parent.attributes.class&&"title"==he.tag){if(he.children.length>0)var Cn=he.children[0].text;else Cn="";Se[Cn]=he.parent}})(he),function cn(he){var vn=he.tag;if(le&&!oe[he.id]&&he.parent&&zt(he)&&("path"==vn||"polygon"==vn)){if("polygon"==vn){var $n=he.parent.children.find(function(On){return"path"==On.tag});$n&&(he.totalLength=$n.totalLength)}var vi=function ie(Q){return function de(Q){return"edge"==Q.parent.attributes.class?Q.parent:Q.parent.parent.parent}(Q).children.find(function(pt){return"title"==pt.tag})}(he).children[0],Qn=vi.text.split("->");2!=Qn.length&&(Qn=vi.text.split("--"));var Zi=Qn[0],jn=Se[Zi],bi=Ce[Zi];if(bi){if((un=jn.children.findIndex(function(On,di){return"g"==On.tag}))>=0){var mn=jn.children[un].children.findIndex(function(On,di){return"a"==On.tag});jn=jn.children[un].children[mn]}(un=bi.children.findIndex(function(On,di){return"g"==On.tag}))>=0&&(mn=bi.children[un].children.findIndex(function(di,Ue){return"a"==di.tag}),bi=bi.children[un].children[mn]);for(var ui=jn.children,un=0;un0&&this._queue.shift().call(this)}function Ni(Q,pt,mt,gt){var Ut=[Q*mt-(pt=-pt)*(gt=-gt),Q*gt+pt*mt];return[Q=Ut[0],pt=-(pt=Ut[1])]}function Ri(Q,pt,mt,gt,Ut,Xt,kt){var O=G(sn.call(this,Xt));Q.data([O]),at.call(Q.node(),O),fe(Q,pt,mt,gt,Ut,Xt,kt)}function fe(Q,pt,mt,gt,Ut,Xt,kt){var le=kt.shortening||0,Ce=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],Ke=gt-pt,Pe=Ut-mt,Be=Math.sqrt(Ke*Ke+Pe*Pe);if(0==Be)var ue=1,me=0;else ue=Ke/Be,me=Pe/Be;if(gt=pt+(Be-le-10-.1)*ue,Ut=mt+(Be-le-10-.1)*me,Xt.URL||Xt.tooltip)var Fe=Q.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),fn=Fe.selectWithoutDataPropagation("path"),cn=Fe.selectWithoutDataPropagation("polygon");else fn=Q.selectWithoutDataPropagation("path"),cn=Q.selectWithoutDataPropagation("polygon");var $e=f.path();$e.moveTo(pt,mt),$e.lineTo(gt,Ut),fn.attr("d",$e),gt=pt+(Be-le-10)*ue,Ut=mt+(Be-le-10)*me;for(var Qe=0;Qe b ["+pt+"]}","svg","dot"),O=(new window.DOMParser).parseFromString(kt,"image/svg+xml");return g.select(document.createDocumentFragment()).append(function(){return O.documentElement}).select(".edge")}function Ln(Q,pt,mt,gt,Ut,Xt){var le=G(X.call(this,gt,Ut));return Q.data([le]),at.call(Q.node(),le),we(Q,pt,mt,Ut),this}function we(Q,pt,mt,gt,Ut){if(gt.URL||gt.tooltip)var Xt=Q.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else Xt=Q;var kt=Xt.selectAll("ellipse,polygon,path,polyline"),le=Q.selectWithoutDataPropagation("text");if(0!=kt.size()){var O=kt.node().getBBox();O.cx=O.x+O.width/2,O.cy=O.y+O.height/2}else 0!=le.size()&&(O={x:+le.attr("x"),y:+le.attr("y"),width:0,height:0,cx:+le.attr("x"),cy:+le.attr("y")});return kt.each(function(oe,Se){var Ce=g.select(this);if(Ce.attr("cx"))Ce.attr("cx",nt(pt)).attr("cy",nt(mt));else if(Ce.attr("points")){var Ke=Ce.attr("points").trim();Ce.attr("points",function At(Xt,pt,mt){var Ut,gt=(Ut=Xt.split(" ")).map(function(kt){return kt.split(",")});return gt=Ut.map(function(kt){return[nt(+pt+ +kt.split(",")[0]),nt(+mt+ +kt.split(",")[1])]}),(Ut=gt.map(function(kt){return kt.join(",")})).join(" ")}(Ke,pt-O.cx,mt-O.cy))}else{var Pe=Ce.attr("d");Ce.attr("d",function Ht(Q,pt,mt){(Xt=Q.split(/[A-Z ]/)).shift();var gt=Q.split(/[^[A-Z ]+/),Xt=(Xt.map(function(kt){return kt.split(",")}),Xt.map(function(kt){return[nt(+pt+ +kt.split(",")[0]),nt(+mt+ +kt.split(",")[1])]}).map(function(kt){return kt.join(",")}));return gt.reduce(function(kt,le,O){return kt.concat(le,Xt[O])},[]).join("")}(Pe,pt-O.cx,mt-O.cy))}}),0!=le.size()&&le.attr("x",nt(+le.attr("x")+pt-O.cx)).attr("y",nt(+le.attr("y")+mt-O.cy)),this}function Nn(){if(!this._drawnNode)return this;var Q=this._drawnNode.g;return Q.empty()||Q.remove(),this._drawnNode=null,this}function z(){return this._drawnNode?this._drawnNode.g:g.select(null)}function X(Q,pt){for(var mt="",gt=0,Ut=Object.keys(pt);gt"u"&&(kt=!1),typeof SharedWorker>"u"&&(le=!1),kt||le){var oe=g.selectAll("script").filter(function(){return"javascript/worker"==g.select(this).attr("type")||g.select(this).attr("src")&&g.select(this).attr("src").match(/.*\/@hpcc-js\/wasm/)});0==oe.size()?(console.warn('No script tag of type "javascript/worker" was found and "useWorker" is true. Not using web worker.'),kt=!1,le=!1):(this._vizURL=oe.attr("src"),this._vizURL||(console.warn('No "src" attribute of was found on the "javascript/worker" script tag and "useWorker" is true. Not using web worker.'),kt=!1,le=!1))}if(le){var Se="data:application/javascript;base64,"+btoa(lt.toString()+"("+bt.toString()+")()");this._worker=this._worker=new SharedWorker(Se),this._workerPort=this._worker.port,this._workerPortClose=this._worker.port.close.bind(this._workerPort),this._worker.port.start(),this._workerCallbacks=[]}else if(kt){var Ce=new Blob([lt.toString()+"("+A.toString()+")()"]),Ke=window.URL.createObjectURL(Ce);this._worker=new Worker(Ke),this._workerPort=this._worker,this._workerPortClose=this._worker.terminate.bind(this._worker),this._workerCallbacks=[]}else l.graphvizVersion().then(function(Pe){mt._graphvizVersion=Pe}.bind(this));this._selection=Q,this._active=!1,this._busy=!1,this._jobs=[],this._queue=[],this._keyModes=new Set(["title","id","tag-index","index"]),this._images=[],this._translation=void 0,this._scale=void 0,this._eventTypes=["initEnd","start","layoutStart","layoutEnd","dataExtractEnd","dataProcessPass1End","dataProcessPass2End","dataProcessEnd","renderStart","renderEnd","transitionStart","transitionEnd","restoreEnd","end","zoom"],this._dispatch=_.dispatch.apply(void 0,L(this._eventTypes)),Zt.call(this),Q.node().__graphviz__=this}function Gt(Q,pt){return g.select(Q).graphviz(pt)}Pt.prototype=Gt.prototype=(C(Lt={constructor:Pt,engine:function ce(Q){return this._options.engine=Q,this},addImage:function _e(Q,pt,mt){return this._images.push({path:Q,width:pt,height:mt}),this},keyMode:function ee(Q){if(!this._keyModes.has(Q))throw Error("Illegal keyMode: "+Q);if(Q!=this._options.keyMode&&null!=this._data)throw Error("Too late to change keyMode");return this._options.keyMode=Q,this},fade:function Ze(Q){return this._options.fade=Q,this},tweenPaths:function Ye(Q){return this._options.tweenPaths=Q,this},tweenShapes:function Tn(Q){return this._options.tweenShapes=Q,Q&&(this._options.tweenPaths=!0),this},convertEqualSidedPolygons:function oi(Q){return this._options.convertEqualSidedPolygons=Q,this},tweenPrecision:function Mi(Q){return this._options.tweenPrecision=Q,this},growEnteringEdges:function mi(Q){return this._options.growEnteringEdges=Q,this},zoom:function rt(Q){return this._options.zoom=Q,this._options.zoom&&!this._zoomBehavior?q.call(this):!this._options.zoom&&this._zoomBehavior&&(this._zoomSelection.on(".zoom",null),this._zoomBehavior=null),this},resetZoom:function ut(Q){var pt=this._zoomSelection;return Q&&(pt=pt.transition(Q)),pt.call(this._zoomBehavior.transform,this._originalTransform),this},zoomBehavior:function St(){return this._zoomBehavior||null},zoomSelection:function Qt(){return this._zoomSelection||null},zoomScaleExtent:function ft(Q){return this._options.zoomScaleExtent=Q,this},zoomTranslateExtent:function Dt(Q){return this._options.zoomTranslateExtent=Q,this},render:function Ot(Q){return this._busy?(this._queue.push(this.render.bind(this,Q)),this):(this._dispatch.call("renderStart",this),this._transitionFactory?p.timeout(function(){this._transition=m.transition(this._transitionFactory()),te.call(this,Q)}.bind(this),0):te.call(this,Q),this)},layout:function xe(Q,pt,mt,gt){if(this._worker)Kt.call(this,{type:"layout",dot:Q,engine:pt,options:mt},function(Xt){gt.call(this,Xt.data)});else try{var Ut=this.layoutSync(Q,"svg",pt,mt);gt.call(this,{type:"done",svg:Ut})}catch(Xt){gt.call(this,{type:"error",error:Xt.message})}},dot:function Te(Q,pt){var mt=this,gt=this._options.engine,Ut=this._images;return this._dispatch.call("start",this),this._busy=!0,this._dispatch.call("layoutStart",this),this._worker||null!=this.layoutSync?(this.layout(Q,gt,{images:Ut},function(kt){switch(kt.type){case"error":if(!mt._onerror)throw kt.error.message;mt._onerror(kt.error);break;case"done":Le.call(this,kt.svg,pt)}}),this):(this._afterInit=this.dot.bind(this,Q,pt),this)},data:function yt(){return this._data||null},renderDot:function Oe(Q,pt){var mt=this;return this.dot(Q,function gt(){mt.render(pt)}),this},transition:function Ee(Q){return Q instanceof Function?this._transitionFactory=Q:this._transition=m.transition(Q),this},active:function He(Q){var mt=this._selection.selectWithoutDataPropagation("svg");return 0!=mt.size()?m.active(mt.node(),Q):null},options:function Ge(Q){if(typeof Q>"u")return Object.assign({},this._options);for(var pt=0,mt=Object.keys(Q);pt2")(Ke)+" ",me+=Pe+" ".repeat(Xt-Pe.length),me+=h.format(" >5")(Be-mt)+" ","initEnd"!=Pe&&(me+=h.format(" >5")(Be-gt.start[ue])),"dataProcessEnd"==Pe&&(me+=" prepare "+h.format(" >5")(Be-gt.layoutEnd[ue])),"renderEnd"==Pe&&O._transition&&(me+=" transition start margin "+h.format(" >5")(O._transition.delay()-(Be-gt.renderStart[ue])),oe=O._transition.delay(),Se=O._transition.duration()),"transitionStart"==Pe){var Fe=Be-gt.renderStart[ue];me+=" transition delay "+h.format(" >5")(Be-gt.renderStart[ue]),me+=" expected "+h.format(" >5")(oe),me+=" diff "+h.format(" >5")(Fe-oe)}if("transitionEnd"==Pe){var fn=Be-gt.transitionStart[ue];me+=" transition duration "+h.format(" >5")(fn),me+=" expected "+h.format(" >5")(Se),me+=" diff "+h.format(" >5")(fn-Se)}console.log(me),mt=Be}:null)},le=0;le5&&void 0!==arguments[5]?arguments[5]:{};if((Ut=Object.assign({},Ut)).style&&Ut.style.includes("invis"))var kt=g.select(null);else{var oe=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Ce=G(sn.call(this,Ut));kt=oe.append("g").data([Ce]),at.call(kt.node(),Ce),Ri.call(this,kt,Q,pt,mt,gt,Ut,Xt)}return this._drawnEdge={g:kt,x1:Q,y1:pt,x2:mt,y2:gt,attributes:Ut},this},updateDrawnEdge:function Qi(Q,pt,mt,gt){var Ut=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},Xt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var kt=this._drawnEdge.g;return Ut=Object.assign(this._drawnEdge.attributes,Ut),this._drawnEdge.x1=Q,this._drawnEdge.y1=pt,this._drawnEdge.x2=mt,this._drawnEdge.y2=gt,!kt.empty()||Ut.style&&Ut.style.includes("invis")||(kt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=kt),kt.empty()||Ri.call(this,kt,Q,pt,mt,gt,Ut,Xt),this},moveDrawnEdgeEndPoint:function Sn(Q,pt){var mt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var gt=this._drawnEdge.g,Ut=this._drawnEdge.x1,Xt=this._drawnEdge.y1,kt=this._drawnEdge.attributes;return this._drawnEdge.x2=Q,this._drawnEdge.y2=pt,fe(gt,Ut,Xt,Q,pt,kt,mt),this},insertDrawnEdge:function In(Q){if(!this._drawnEdge)throw Error("No edge has been drawn");var pt=this._drawnEdge.g;if(pt.empty())return this;pt.selectWithoutDataPropagation("title").text(Q);var Xt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),kt=Xt.datum(),le=this._extractData(pt,kt.children.length,Xt.datum());return kt.children.push(le),W(pt,le),this._drawnEdge=null,this},removeDrawnEdge:ji},"removeDrawnEdge",ji),C(Lt,"drawnEdgeSelection",gn),C(Lt,"drawnEdgeSelection",gn),C(Lt,"drawNode",function zn(Q,pt,mt){var gt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Ut=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((gt=Object.assign({},gt)).style&>.style.includes("invis"))var Xt=g.select(null);else{var O=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Se=G(X.call(this,mt,gt));Xt=O.append("g").data([Se]),at.call(Xt.node(),Se),Ln.call(this,Xt,Q,pt,mt,gt,Ut)}return this._drawnNode={g:Xt,nodeId:mt,x:Q,y:pt,attributes:gt},this}),C(Lt,"updateDrawnNode",function li(Q,pt,mt){var gt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Ut=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var Xt=this._drawnNode.g;return null==mt&&(mt=this._drawnNode.nodeId),gt=Object.assign(this._drawnNode.attributes,gt),this._drawnNode.nodeId=mt,this._drawnNode.x=Q,this._drawnNode.y=pt,!Xt.empty()||gt.style&>.style.includes("invis")||(Xt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=Xt),Xt.empty()||Ln.call(this,Xt,Q,pt,mt,gt,Ut),this}),C(Lt,"moveDrawnNode",function Bi(Q,pt){if(!this._drawnNode)throw Error("No node has been drawn");var mt=this._drawnNode.g,gt=this._drawnNode.attributes;return this._drawnNode.x=Q,this._drawnNode.y=pt,mt.empty()||we(mt,Q,pt,gt),this}),C(Lt,"insertDrawnNode",function pn(Q){if(!this._drawnNode)throw Error("No node has been drawn");null==Q&&(Q=this._drawnNode.nodeId);var pt=this._drawnNode.g;if(pt.empty())return this;var mt=this._drawnNode.attributes;if(pt.selectWithoutDataPropagation("title").text(Q),mt.URL||mt.tooltip){var Xt=pt.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");Xt.selectWithoutDataPropagation("ellipse,polygon,path,polyline");var kt=Xt.selectWithoutDataPropagation("text")}else pt.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),kt=pt.selectWithoutDataPropagation("text");kt.text(mt.label||Q);var oe=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Se=oe.datum(),Ce=this._extractData(pt,Se.children.length,oe.datum());return Se.children.push(Ce),W(pt,Ce),this._drawnNode=null,this}),C(Lt,"removeDrawnNode",Nn),C(Lt,"removeDrawnNode",Nn),C(Lt,"drawnNodeSelection",z),C(Lt,"drawnNodeSelection",z),C(Lt,"graphvizVersion",function jt(){return this._graphvizVersion}),Lt),x.selection.prototype.graphviz=function Jt(Q){var pt=this.node().__graphviz__;return pt?(pt.options(Q),p.timeout(function(){pt._dispatch.call("initEnd",this)}.bind(this),0)):pt=new Pt(this,Q),pt},x.selection.prototype.selectWithoutDataPropagation=function Yt(Q){return g.select(this.size()>0?this.node().querySelector(Q):null)},c.graphviz=Gt,Object.defineProperty(c,"__esModule",{value:!0})}(D,s(68557),s(75143),s(18429),s(65894),s(46176),s(46041),s(89397),s(41129),s(38184))},75143:(w,D,s)=>{"use strict";s.r(D),s.d(D,{dispatch:()=>d});var c={value:()=>{}};function x(){for(var u,l=0,h=arguments.length,f={};l=0&&(u=f.slice(g+1),f=f.slice(0,g)),f&&!h.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:u}})}function p(l,h){for(var g,f=0,u=l.length;f0)for(var g,C,f=new Array(g),u=0;u{"use strict";s.r(D),s.d(D,{interval:()=>tt,now:()=>g,timeout:()=>G,timer:()=>I,timerFlush:()=>B});var p,t,c=0,x=0,_=0,d=0,l=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(K){setTimeout(K,17)};function g(){return l||(u(C),l=f.now()+h)}function C(){l=0}function L(){this._call=this._time=this._next=null}function I(K,st,j){var W=new L;return W.restart(K,st,j),W}function B(){g(),++c;for(var st,K=p;K;)(st=l-K._time)>=0&&K._call.call(null,st),K=K._next;--c}function M(){l=(d=f.now())+h,c=x=0;try{B()}finally{c=0,function Z(){for(var K,j,st=p,W=1/0;st;)st._call?(W>st._time&&(W=st._time),K=st,st=st._next):(j=st._next,st._next=null,st=K?K._next=j:p=j);t=K,H(W)}(),l=0}}function R(){var K=f.now(),st=K-d;st>1e3&&(h-=st,d=K)}function H(K){c||(x&&(x=clearTimeout(x)),K-l>24?(K<1/0&&(x=setTimeout(M,K-f.now()-h)),_&&(_=clearInterval(_))):(_||(d=f.now(),_=setInterval(R,1e3)),c=1,u(M)))}function G(K,st,j){var W=new L;return W.restart(et=>{W.stop(),K(et+st)},st=null==st?0:+st,j),W}function tt(K,st,j){var W=new L,et=st;return null==st?(W.restart(K,st,j),W):(W._restart=W.restart,W.restart=function(at,Y,nt){Y=+Y,nt=null==nt?g():+nt,W._restart(function rt(q){q+=et,W._restart(rt,et+=Y,nt),at(q)},Y,nt)},W.restart(K,st,j),W)}L.prototype=I.prototype={constructor:L,restart:function(K,st,j){if("function"!=typeof K)throw new TypeError("callback is not a function");j=(null==j?g():+j)+(null==st?0:+st),!this._next&&t!==this&&(t?t._next=this:p=this,t=this),this._call=K,this._time=j,H()},stop:function(){this._call&&(this._call=null,this._time=1/0,H())}}},90268:(w,D,s)=>{"use strict";s.d(D,{M:()=>m,Z:()=>_});var c=s(37656),x=s(62681);function _(p,t){return((0,x.v)(t)?x.Z:m)(p,t)}function m(p,t){var u,d=t?t.length:0,l=p?Math.min(d,p.length):0,h=new Array(l),f=new Array(d);for(u=0;u{"use strict";function c(_,m,p,t,d){var l=_*_,h=l*_;return((1-3*_+3*l-h)*m+(4-6*l+3*h)*p+(1+3*_+3*l-3*h)*t+h*d)/6}function x(_){var m=_.length-1;return function(p){var t=p<=0?p=0:p>=1?(p=1,m-1):Math.floor(p*m),d=_[t],l=_[t+1];return c((p-t/m)*m,t>0?_[t-1]:2*d-l,d,l,tx,t:()=>c})},68523:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(16712);function x(_){var m=_.length;return function(p){var t=Math.floor(((p%=1)<0?++p:p)*m);return(0,c.t)((p-t/m)*m,_[(t+m-1)%m],_[t%m],_[(t+1)%m],_[(t+2)%m])}}},35147:(w,D,s)=>{"use strict";s.d(D,{ZP:()=>t,wx:()=>m,yi:()=>p});var c=s(47927);function x(d,l){return function(h){return d+h*l}}function m(d,l){var h=l-d;return h?x(d,h>180||h<-180?h-360*Math.round(h/360):h):(0,c.Z)(isNaN(d)?l:d)}function p(d){return 1==(d=+d)?t:function(l,h){return h-l?function _(d,l,h){return d=Math.pow(d,h),l=Math.pow(l,h)-d,h=1/h,function(f){return Math.pow(d+f*l,h)}}(l,h,d):(0,c.Z)(isNaN(l)?h:l)}}function t(d,l){var h=l-d;return h?x(d,h):(0,c.Z)(isNaN(d)?l:d)}},47927:(w,D,s)=>{"use strict";s.d(D,{Z:()=>c});const c=x=>()=>x},15629:(w,D,s)=>{"use strict";function c(x,_){var m=new Date;return x=+x,_=+_,function(p){return m.setTime(x*(1-p)+_*p),m}}s.d(D,{Z:()=>c})},46176:(w,D,s)=>{"use strict";s.r(D),s.d(D,{interpolate:()=>c.Z,interpolateArray:()=>x.Z,interpolateBasis:()=>_.Z,interpolateBasisClosed:()=>m.Z,interpolateCubehelix:()=>Ge,interpolateCubehelixLong:()=>an,interpolateDate:()=>p.Z,interpolateDiscrete:()=>t,interpolateHcl:()=>Ot,interpolateHclLong:()=>te,interpolateHsl:()=>Z,interpolateHslLong:()=>H,interpolateHue:()=>l,interpolateLab:()=>de,interpolateNumber:()=>h.Z,interpolateNumberArray:()=>f.Z,interpolateObject:()=>u.Z,interpolateRgb:()=>B.ZP,interpolateRgbBasis:()=>B.hD,interpolateRgbBasisClosed:()=>B.YD,interpolateRound:()=>g.Z,interpolateString:()=>C.Z,interpolateTransformCss:()=>L.Y,interpolateTransformSvg:()=>L.w,interpolateZoom:()=>I.Z,piecewise:()=>be,quantize:()=>ln});var c=s(37656),x=s(90268),_=s(16712),m=s(68523),p=s(15629);function t(Tt){var Wt=Tt.length;return function(ce){return Tt[Math.max(0,Math.min(Wt-1,Math.floor(ce*Wt)))]}}var d=s(35147);function l(Tt,Wt){var ce=(0,d.wx)(+Tt,+Wt);return function(_e){var ee=ce(_e);return ee-360*Math.floor(ee/360)}}var h=s(6738),f=s(62681),u=s(84858),g=s(84067),C=s(23096),L=s(75349),I=s(76257),B=s(86811),M=s(52786);function R(Tt){return function(Wt,ce){var _e=Tt((Wt=(0,M.Ym)(Wt)).h,(ce=(0,M.Ym)(ce)).h),ee=(0,d.ZP)(Wt.s,ce.s),Ze=(0,d.ZP)(Wt.l,ce.l),Ye=(0,d.ZP)(Wt.opacity,ce.opacity);return function(Tn){return Wt.h=_e(Tn),Wt.s=ee(Tn),Wt.l=Ze(Tn),Wt.opacity=Ye(Tn),Wt+""}}}const Z=R(d.wx);var H=R(d.ZP),G=s(68884);const tt=Math.PI/180,K=180/Math.PI,j=.96422,at=4/29,Y=6/29,nt=3*Y*Y;function q(Tt){if(Tt instanceof ut)return new ut(Tt.l,Tt.a,Tt.b,Tt.opacity);if(Tt instanceof Nt)return zt(Tt);Tt instanceof M.Ss||(Tt=(0,M.SU)(Tt));var Ze,Ye,Wt=Qt(Tt.r),ce=Qt(Tt.g),_e=Qt(Tt.b),ee=ft((.2225045*Wt+.7168786*ce+.0606169*_e)/1);return Wt===ce&&ce===_e?Ze=Ye=ee:(Ze=ft((.4360747*Wt+.3850649*ce+.1430804*_e)/j),Ye=ft((.0139322*Wt+.0971045*ce+.7141733*_e)/.82521)),new ut(116*ee-16,500*(Ze-ee),200*(ee-Ye),Tt.opacity)}function E(Tt,Wt,ce,_e){return 1===arguments.length?q(Tt):new ut(Tt,Wt,ce,_e??1)}function ut(Tt,Wt,ce,_e){this.l=+Tt,this.a=+Wt,this.b=+ce,this.opacity=+_e}function ft(Tt){return Tt>.008856451679035631?Math.pow(Tt,1/3):Tt/nt+at}function Dt(Tt){return Tt>Y?Tt*Tt*Tt:nt*(Tt-at)}function St(Tt){return 255*(Tt<=.0031308?12.92*Tt:1.055*Math.pow(Tt,1/2.4)-.055)}function Qt(Tt){return(Tt/=255)<=.04045?Tt/12.92:Math.pow((Tt+.055)/1.055,2.4)}function pe(Tt){if(Tt instanceof Nt)return new Nt(Tt.h,Tt.c,Tt.l,Tt.opacity);if(Tt instanceof ut||(Tt=q(Tt)),0===Tt.a&&0===Tt.b)return new Nt(NaN,0{"use strict";function c(x,_){return x=+x,_=+_,function(m){return x*(1-m)+_*m}}s.d(D,{Z:()=>c})},62681:(w,D,s)=>{"use strict";function c(_,m){m||(m=[]);var d,p=_?Math.min(m.length,_.length):0,t=m.slice();return function(l){for(d=0;dc,v:()=>x})},84858:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(37656);function x(_,m){var d,p={},t={};for(d in(null===_||"object"!=typeof _)&&(_={}),(null===m||"object"!=typeof m)&&(m={}),m)d in _?p[d]=(0,c.Z)(_[d],m[d]):t[d]=m[d];return function(l){for(d in p)t[d]=p[d](l);return t}}},86811:(w,D,s)=>{"use strict";s.d(D,{YD:()=>l,ZP:()=>p,hD:()=>d});var c=s(52786),x=s(16712),_=s(68523),m=s(35147);const p=function h(f){var u=(0,m.yi)(f);function g(C,L){var I=u((C=(0,c.B8)(C)).r,(L=(0,c.B8)(L)).r),B=u(C.g,L.g),M=u(C.b,L.b),R=(0,m.ZP)(C.opacity,L.opacity);return function(Z){return C.r=I(Z),C.g=B(Z),C.b=M(Z),C.opacity=R(Z),C+""}}return g.gamma=h,g}(1);function t(h){return function(f){var I,B,u=f.length,g=new Array(u),C=new Array(u),L=new Array(u);for(I=0;I{"use strict";function c(x,_){return x=+x,_=+_,function(m){return Math.round(x*(1-m)+_*m)}}s.d(D,{Z:()=>c})},23096:(w,D,s)=>{"use strict";s.d(D,{Z:()=>t});var c=s(6738),x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(x.source,"g");function t(d,l){var f,u,g,h=x.lastIndex=_.lastIndex=0,C=-1,L=[],I=[];for(d+="",l+="";(f=x.exec(d))&&(u=_.exec(l));)(g=u.index)>h&&(g=l.slice(h,g),L[C]?L[C]+=g:L[++C]=g),(f=f[0])===(u=u[0])?L[C]?L[C]+=u:L[++C]=u:(L[++C]=null,I.push({i:C,x:(0,c.Z)(f,u)})),h=_.lastIndex;return h{"use strict";s.d(D,{Y:()=>h,w:()=>f});var p,c=s(6738),x=180/Math.PI,_={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function m(u,g,C,L,I,B){var M,R,Z;return(M=Math.sqrt(u*u+g*g))&&(u/=M,g/=M),(Z=u*C+g*L)&&(C-=u*Z,L-=g*Z),(R=Math.sqrt(C*C+L*L))&&(C/=R,L/=R,Z/=R),u*L180?G+=360:G-H>180&&(H+=360),K.push({i:tt.push(I(tt)+"rotate(",null,L)-2,x:(0,c.Z)(H,G)})):G&&tt.push(I(tt)+"rotate("+G+L)}(H.rotate,G.rotate,tt,K),function R(H,G,tt,K){H!==G?K.push({i:tt.push(I(tt)+"skewX(",null,L)-2,x:(0,c.Z)(H,G)}):G&&tt.push(I(tt)+"skewX("+G+L)}(H.skewX,G.skewX,tt,K),function Z(H,G,tt,K,st,j){if(H!==tt||G!==K){var W=st.push(I(st)+"scale(",null,",",null,")");j.push({i:W-4,x:(0,c.Z)(H,tt)},{i:W-2,x:(0,c.Z)(G,K)})}else(1!==tt||1!==K)&&st.push(I(st)+"scale("+tt+","+K+")")}(H.scaleX,H.scaleY,G.scaleX,G.scaleY,tt,K),H=G=null,function(st){for(var et,j=-1,W=K.length;++j{"use strict";s.d(D,{Z:()=>f});var c=s(52786),x=s(86811),_=s(90268),m=s(15629),p=s(6738),t=s(84858),d=s(23096),l=s(47927),h=s(62681);function f(u,g){var L,C=typeof g;return null==g||"boolean"===C?(0,l.Z)(g):("number"===C?p.Z:"string"===C?(L=(0,c.ZP)(g))?(g=L,x.ZP):d.Z:g instanceof c.ZP?x.ZP:g instanceof Date?m.Z:(0,h.v)(g)?h.Z:Array.isArray(g)?_.M:"function"!=typeof g.valueOf&&"function"!=typeof g.toString||isNaN(g)?t.Z:p.Z)(u,g)}},76257:(w,D,s)=>{"use strict";function x(t){return((t=Math.exp(t))+1/t)/2}s.d(D,{Z:()=>p});const p=function t(d,l,h){function f(u,g){var tt,K,C=u[0],L=u[1],I=u[2],R=g[2],Z=g[0]-C,H=g[1]-L,G=Z*Z+H*H;if(G<1e-12)K=Math.log(R/I)/d,tt=function(Y){return[C+Y*Z,L+Y*H,I*Math.exp(d*Y*K)]};else{var st=Math.sqrt(G),j=(R*R-I*I+h*G)/(2*I*l*st),W=(R*R-I*I-h*G)/(2*R*l*st),et=Math.log(Math.sqrt(j*j+1)-j),at=Math.log(Math.sqrt(W*W+1)-W);K=(at-et)/d,tt=function(Y){var nt=Y*K,rt=x(et),q=I/(l*st)*(rt*function m(t){return((t=Math.exp(2*t))-1)/(t+1)}(d*nt+et)-function _(t){return((t=Math.exp(t))-1/t)/2}(et));return[C+q*Z,L+q*H,I*rt/x(d*nt+et)]}}return tt.duration=1e3*K*d/Math.SQRT2,tt}return f.rho=function(u){var g=Math.max(.001,+u),C=g*g;return t(g,C,C*C)},f}(Math.SQRT2,2,4)},38184:(w,D,s)=>{"use strict";s.r(D),s.d(D,{path:()=>d});const c=Math.PI,x=2*c,_=1e-6,m=x-_;function p(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function t(){return new p}p.prototype=t.prototype={constructor:p,moveTo:function(l,h){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(l,h){this._+="L"+(this._x1=+l)+","+(this._y1=+h)},quadraticCurveTo:function(l,h,f,u){this._+="Q"+ +l+","+ +h+","+(this._x1=+f)+","+(this._y1=+u)},bezierCurveTo:function(l,h,f,u,g,C){this._+="C"+ +l+","+ +h+","+ +f+","+ +u+","+(this._x1=+g)+","+(this._y1=+C)},arcTo:function(l,h,f,u,g){var C=this._x1,L=this._y1,I=(f=+f)-(l=+l),B=(u=+u)-(h=+h),M=C-l,R=L-h,Z=M*M+R*R;if((g=+g)<0)throw new Error("negative radius: "+g);if(null===this._x1)this._+="M"+(this._x1=l)+","+(this._y1=h);else if(Z>_)if(Math.abs(R*I-B*M)>_&&g){var H=f-C,G=u-L,tt=I*I+B*B,K=H*H+G*G,st=Math.sqrt(tt),j=Math.sqrt(Z),W=g*Math.tan((c-Math.acos((tt+Z-K)/(2*st*j)))/2),et=W/j,at=W/st;Math.abs(et-1)>_&&(this._+="L"+(l+et*M)+","+(h+et*R)),this._+="A"+g+","+g+",0,0,"+ +(R*H>M*G)+","+(this._x1=l+at*I)+","+(this._y1=h+at*B)}else this._+="L"+(this._x1=l)+","+(this._y1=h)},arc:function(l,h,f,u,g,C){l=+l,h=+h,C=!!C;var L=(f=+f)*Math.cos(u),I=f*Math.sin(u),B=l+L,M=h+I,R=1^C,Z=C?u-g:g-u;if(f<0)throw new Error("negative radius: "+f);null===this._x1?this._+="M"+B+","+M:(Math.abs(this._x1-B)>_||Math.abs(this._y1-M)>_)&&(this._+="L"+B+","+M),f&&(Z<0&&(Z=Z%x+x),Z>m?this._+="A"+f+","+f+",0,1,"+R+","+(l-L)+","+(h-I)+"A"+f+","+f+",0,1,"+R+","+(this._x1=B)+","+(this._y1=M):Z>_&&(this._+="A"+f+","+f+",0,"+ +(Z>=c)+","+R+","+(this._x1=l+f*Math.cos(g))+","+(this._y1=h+f*Math.sin(g))))},rect:function(l,h,f,u){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)+"h"+ +f+"v"+ +u+"h"+-f+"Z"},toString:function(){return this._}};const d=t},34638:(w,D,s)=>{"use strict";function c(x){return"object"==typeof x&&"length"in x?x:Array.from(x)}s.d(D,{Z:()=>c})},7500:(w,D,s)=>{"use strict";s.d(D,{Z:()=>p});var c=s(36175),x=s(53517);function _(t){return function(){var d=this.ownerDocument,l=this.namespaceURI;return l===x.P&&d.documentElement.namespaceURI===x.P?d.createElement(t):d.createElementNS(l,t)}}function m(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function p(t){var d=(0,c.Z)(t);return(d.local?m:_)(d)}},68557:(w,D,s)=>{"use strict";s.r(D),s.d(D,{create:()=>_,creator:()=>c.Z,local:()=>p,matcher:()=>d.Z,namespace:()=>l.Z,namespaces:()=>h.Z,pointer:()=>f.Z,pointers:()=>g,select:()=>x.Z,selectAll:()=>I,selection:()=>L.ZP,selector:()=>B.Z,selectorAll:()=>M.Z,style:()=>R.S,window:()=>Z.Z});var c=s(7500),x=s(52016);function _(H){return(0,x.Z)((0,c.Z)(H).call(document.documentElement))}var m=0;function p(){return new t}function t(){this._="@"+(++m).toString(36)}t.prototype=p.prototype={constructor:t,get:function(H){for(var G=this._;!(G in H);)if(!(H=H.parentNode))return;return H[G]},set:function(H,G){return H[this._]=G},remove:function(H){return this._ in H&&delete H[this._]},toString:function(){return this._}};var d=s(97905),l=s(36175),h=s(53517),f=s(29132),u=s(75819);function g(H,G){return H.target&&(H=(0,u.Z)(H),void 0===G&&(G=H.currentTarget),H=H.touches||[H]),Array.from(H,tt=>(0,f.Z)(tt,G))}var C=s(34638),L=s(37853);function I(H){return"string"==typeof H?new L.Y1([document.querySelectorAll(H)],[document.documentElement]):new L.Y1([null==H?[]:(0,C.Z)(H)],L.Jz)}var B=s(29742),M=s(32037),R=s(24476),Z=s(2442)},97905:(w,D,s)=>{"use strict";function c(_){return function(){return this.matches(_)}}function x(_){return function(m){return m.matches(_)}}s.d(D,{P:()=>x,Z:()=>c})},36175:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(53517);function x(_){var m=_+="",p=m.indexOf(":");return p>=0&&"xmlns"!==(m=_.slice(0,p))&&(_=_.slice(p+1)),c.Z.hasOwnProperty(m)?{space:c.Z[m],local:_}:_}},53517:(w,D,s)=>{"use strict";s.d(D,{P:()=>c,Z:()=>x});var c="http://www.w3.org/1999/xhtml";const x={svg:"http://www.w3.org/2000/svg",xhtml:c,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},29132:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(75819);function x(_,m){if(_=(0,c.Z)(_),void 0===m&&(m=_.currentTarget),m){var p=m.ownerSVGElement||m;if(p.createSVGPoint){var t=p.createSVGPoint();return t.x=_.clientX,t.y=_.clientY,[(t=t.matrixTransform(m.getScreenCTM().inverse())).x,t.y]}if(m.getBoundingClientRect){var d=m.getBoundingClientRect();return[_.clientX-d.left-m.clientLeft,_.clientY-d.top-m.clientTop]}}return[_.pageX,_.pageY]}},52016:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(37853);function x(_){return"string"==typeof _?new c.Y1([[document.querySelector(_)]],[document.documentElement]):new c.Y1([[_]],c.Jz)}},37853:(w,D,s)=>{"use strict";s.d(D,{Y1:()=>we,ZP:()=>pn,Jz:()=>Ln});var c=s(29742),_=s(34638),m=s(32037),d=s(97905),l=Array.prototype.find;function f(){return this.firstElementChild}var g=Array.prototype.filter;function C(){return this.children}function M(z){return new Array(z.length)}function Z(z,X){this.ownerDocument=z.ownerDocument,this.namespaceURI=z.namespaceURI,this._next=null,this._parent=z,this.__data__=X}function H(z){return function(){return z}}function G(z,X,lt,A,bt,Lt){for(var Gt,Pt=0,Jt=X.length,Yt=Lt.length;PtX?1:z>=X?0:NaN}Z.prototype={constructor:Z,appendChild:function(z){return this._parent.insertBefore(z,this._next)},insertBefore:function(z,X){return this._parent.insertBefore(z,X)},querySelector:function(z){return this._parent.querySelector(z)},querySelectorAll:function(z){return this._parent.querySelectorAll(z)}};var Dt=s(36175);function St(z){return function(){this.removeAttribute(z)}}function Qt(z){return function(){this.removeAttributeNS(z.space,z.local)}}function pe(z,X){return function(){this.setAttribute(z,X)}}function wt(z,X){return function(){this.setAttributeNS(z.space,z.local,X)}}function yt(z,X){return function(){var lt=X.apply(this,arguments);null==lt?this.removeAttribute(z):this.setAttribute(z,lt)}}function Nt(z,X){return function(){var lt=X.apply(this,arguments);null==lt?this.removeAttributeNS(z.space,z.local):this.setAttributeNS(z.space,z.local,lt)}}var de=s(24476);function ie(z){return function(){delete this[z]}}function Ot(z,X){return function(){this[z]=X}}function te(z,X){return function(){var lt=X.apply(this,arguments);null==lt?delete this[z]:this[z]=lt}}function se(z){return z.trim().split(/^|\s+/)}function At(z){return z.classList||new Ht(z)}function Ht(z){this._node=z,this._names=se(z.getAttribute("class")||"")}function Zt(z,X){for(var lt=At(z),A=-1,bt=X.length;++A=0&&(this._names.splice(X,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(z){return this._names.indexOf(z)>=0}};var Ye=s(7500);function oi(){return null}function mi(){var z=this.parentNode;z&&z.removeChild(this)}function Si(){var z=this.cloneNode(!1),X=this.parentNode;return X?X.insertBefore(z,this.nextSibling):z}function qi(){var z=this.cloneNode(!0),X=this.parentNode;return X?X.insertBefore(z,this.nextSibling):z}function Qi(z){return z.trim().split(/^|\s+/).map(function(X){var lt="",A=X.indexOf(".");return A>=0&&(lt=X.slice(A+1),X=X.slice(0,A)),{type:X,name:lt}})}function Ri(z){return function(){var X=this.__on;if(X){for(var Lt,lt=0,A=-1,bt=X.length;lt=oe&&(oe=O+1);!(Ce=kt[oe])&&++oe=0;)(Pt=A[bt])&&(Lt&&4^Pt.compareDocumentPosition(Lt)&&Lt.parentNode.insertBefore(Pt,Lt),Lt=Pt);return this},sort:function Y(z){function X(pt,mt){return pt&&mt?z(pt.__data__,mt.__data__):!pt-!mt}z||(z=nt);for(var lt=this._groups,A=lt.length,bt=new Array(A),Lt=0;Lt1?this.each((null==X?ie:"function"==typeof X?te:Ot)(z,X)):this.node()[z]},classed:function Oe(z,X){var lt=se(z+"");if(arguments.length<2){for(var A=At(this.node()),bt=-1,Lt=lt.length;++bt{"use strict";s.d(D,{S:()=>t,Z:()=>p});var c=s(2442);function x(d){return function(){this.style.removeProperty(d)}}function _(d,l,h){return function(){this.style.setProperty(d,l,h)}}function m(d,l,h){return function(){var f=l.apply(this,arguments);null==f?this.style.removeProperty(d):this.style.setProperty(d,f,h)}}function p(d,l,h){return arguments.length>1?this.each((null==l?x:"function"==typeof l?m:_)(d,l,h??"")):t(this.node(),d)}function t(d,l){return d.style.getPropertyValue(l)||(0,c.Z)(d).getComputedStyle(d,null).getPropertyValue(l)}},29742:(w,D,s)=>{"use strict";function c(){}function x(_){return null==_?c:function(){return this.querySelector(_)}}s.d(D,{Z:()=>x})},32037:(w,D,s)=>{"use strict";function c(){return[]}function x(_){return null==_?c:function(){return this.querySelectorAll(_)}}s.d(D,{Z:()=>x})},75819:(w,D,s)=>{"use strict";function c(x){let _;for(;_=x.sourceEvent;)x=_;return x}s.d(D,{Z:()=>c})},2442:(w,D,s)=>{"use strict";function c(x){return x.ownerDocument&&x.ownerDocument.defaultView||x.document&&x||x.defaultView}s.d(D,{Z:()=>c})},73339:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(49194);function x(_,m,p){var t=new c.B7;return t.restart(function(d){t.stop(),_(d+m)},m=null==m?0:+m,p),t}},49194:(w,D,s)=>{"use strict";s.d(D,{B7:()=>L,HT:()=>I,R8:()=>B,zO:()=>g});var p,t,c=0,x=0,_=0,d=0,l=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(G){setTimeout(G,17)};function g(){return l||(u(C),l=f.now()+h)}function C(){l=0}function L(){this._call=this._time=this._next=null}function I(G,tt,K){var st=new L;return st.restart(G,tt,K),st}function B(){g(),++c;for(var tt,G=p;G;)(tt=l-G._time)>=0&&G._call.call(null,tt),G=G._next;--c}function M(){l=(d=f.now())+h,c=x=0;try{B()}finally{c=0,function Z(){for(var G,K,tt=p,st=1/0;tt;)tt._call?(st>tt._time&&(st=tt._time),G=tt,tt=tt._next):(K=tt._next,tt._next=null,tt=G?G._next=K:p=K);t=G,H(st)}(),l=0}}function R(){var G=f.now(),tt=G-d;tt>1e3&&(h-=tt,d=G)}function H(G){c||(x&&(x=clearTimeout(x)),G-l>24?(G<1/0&&(x=setTimeout(M,G-f.now()-h)),_&&(_=clearInterval(_))):(_||(d=f.now(),_=setInterval(R,1e3)),c=1,u(M)))}L.prototype=I.prototype={constructor:L,restart:function(G,tt,K){if("function"!=typeof G)throw new TypeError("callback is not a function");K=(null==K?g():+K)+(null==tt?0:+tt),!this._next&&t!==this&&(t?t._next=this:p=this,t=this),this._call=G,this._time=K,H()},stop:function(){this._call&&(this._call=null,this._time=1/0,H())}}},18429:(w,D,s)=>{"use strict";s.r(D),s.d(D,{active:()=>pn,interrupt:()=>Z,transition:()=>gn});var c=s(37853),x=s(25922),_=s(49194),m=s(73339),p=(0,x.Z)("start","end","cancel","interrupt"),t=[];function L(z,X,lt,A,bt,Lt){var Pt=z.__transition;if(Pt){if(lt in Pt)return}else z.__transition={};!function R(z,X,lt){var bt,A=z.__transition;function Pt(Yt){var Q,pt,mt,gt;if(1!==lt.state)return Jt();for(Q in A)if((gt=A[Q]).name===lt.name){if(3===gt.state)return(0,m.Z)(Pt);4===gt.state?(gt.state=6,gt.timer.stop(),gt.on.call("interrupt",z,z.__data__,gt.index,gt.group),delete A[Q]):+Q0)throw new Error("too late; already scheduled");return lt}function B(z,X){var lt=M(z,X);if(lt.state>3)throw new Error("too late; already running");return lt}function M(z,X){var lt=z.__transition;if(!lt||!(lt=lt[X]))throw new Error("transition not found");return lt}function Z(z,X){var A,bt,Pt,lt=z.__transition,Lt=!0;if(lt){for(Pt in X=null==X?null:X+"",lt)(A=lt[Pt]).name===X?(bt=A.state>2&&A.state<5,A.state=6,A.timer.stop(),A.on.call(bt?"interrupt":"cancel",z,z.__data__,A.index,A.group),delete lt[Pt]):Lt=!1;Lt&&delete z.__transition}}var G=s(75349),tt=s(36175);function K(z,X){var lt,A;return function(){var bt=B(this,z),Lt=bt.tween;if(Lt!==lt)for(var Pt=0,Gt=(A=lt=Lt).length;Pt=0&&(X=X.slice(0,lt)),!X||"start"===X})}(X)?I:B;return function(){var Pt=Lt(this,z),Gt=Pt.on;Gt!==A&&(bt=(A=Gt).copy()).on(X,lt),Pt.on=bt}}var an=s(29742),ln=s(32037),Wt=c.ZP.prototype.constructor,_e=s(24476);function Ze(z){return function(){this.style.removeProperty(z)}}function mi(z,X,lt){return function(A){this.style.setProperty(z,X.call(this,A),lt)}}function gi(z,X,lt){var A,bt;function Lt(){var Pt=X.apply(this,arguments);return Pt!==bt&&(A=(bt=Pt)&&mi(z,Pt,lt)),A}return Lt._value=X,Lt}function _i(z){return function(X){this.textContent=z.call(this,X)}}function Qi(z){var X,lt;function A(){var bt=z.apply(this,arguments);return bt!==lt&&(X=(lt=bt)&&_i(bt)),X}return A._value=z,A}var ji=0;function In(z,X,lt,A){this._groups=z,this._parents=X,this._name=lt,this._id=A}function gn(z){return(0,c.ZP)().transition(z)}function sn(){return++ji}var zn=c.ZP.prototype;In.prototype=gn.prototype={constructor:In,select:function be(z){var X=this._name,lt=this._id;"function"!=typeof z&&(z=(0,an.Z)(z));for(var A=this._groups,bt=A.length,Lt=new Array(bt),Pt=0;Pt1&&A.name===X)return new In([[z]],Nn,X,+bt);return null}},46041:(w,D,s)=>{"use strict";s.r(D),s.d(D,{zoom:()=>H,zoomIdentity:()=>f,zoomTransform:()=>u});var c=s(25922),x=s(56758),_=s(76257),m=s(52016),p=s(29132),t=s(18429);const d=G=>()=>G;function l(G,{sourceEvent:tt,target:K,transform:st,dispatch:j}){Object.defineProperties(this,{type:{value:G,enumerable:!0,configurable:!0},sourceEvent:{value:tt,enumerable:!0,configurable:!0},target:{value:K,enumerable:!0,configurable:!0},transform:{value:st,enumerable:!0,configurable:!0},_:{value:j}})}function h(G,tt,K){this.k=G,this.x=tt,this.y=K}h.prototype={constructor:h,scale:function(G){return 1===G?this:new h(this.k*G,this.x,this.y)},translate:function(G,tt){return 0===G&0===tt?this:new h(this.k,this.x+this.k*G,this.y+this.k*tt)},apply:function(G){return[G[0]*this.k+this.x,G[1]*this.k+this.y]},applyX:function(G){return G*this.k+this.x},applyY:function(G){return G*this.k+this.y},invert:function(G){return[(G[0]-this.x)/this.k,(G[1]-this.y)/this.k]},invertX:function(G){return(G-this.x)/this.k},invertY:function(G){return(G-this.y)/this.k},rescaleX:function(G){return G.copy().domain(G.range().map(this.invertX,this).map(G.invert,G))},rescaleY:function(G){return G.copy().domain(G.range().map(this.invertY,this).map(G.invert,G))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var f=new h(1,0,0);function u(G){for(;!G.__zoom;)if(!(G=G.parentNode))return f;return G.__zoom}function g(G){G.stopImmediatePropagation()}function C(G){G.preventDefault(),G.stopImmediatePropagation()}function L(G){return!(G.ctrlKey&&"wheel"!==G.type||G.button)}function I(){var G=this;return G instanceof SVGElement?(G=G.ownerSVGElement||G).hasAttribute("viewBox")?[[(G=G.viewBox.baseVal).x,G.y],[G.x+G.width,G.y+G.height]]:[[0,0],[G.width.baseVal.value,G.height.baseVal.value]]:[[0,0],[G.clientWidth,G.clientHeight]]}function B(){return this.__zoom||f}function M(G){return-G.deltaY*(1===G.deltaMode?.05:G.deltaMode?1:.002)*(G.ctrlKey?10:1)}function R(){return navigator.maxTouchPoints||"ontouchstart"in this}function Z(G,tt,K){var st=G.invertX(tt[0][0])-K[0][0],j=G.invertX(tt[1][0])-K[1][0],W=G.invertY(tt[0][1])-K[0][1],et=G.invertY(tt[1][1])-K[1][1];return G.translate(j>st?(st+j)/2:Math.min(0,st)||Math.max(0,j),et>W?(W+et)/2:Math.min(0,W)||Math.max(0,et))}function H(){var rt,q,F,G=L,tt=I,K=Z,st=M,j=R,W=[0,1/0],et=[[-1/0,-1/0],[1/0,1/0]],at=250,Y=_.Z,nt=(0,c.Z)("start","zoom","end"),E=500,ft=0,Dt=10;function St(At){At.property("__zoom",B).on("wheel.zoom",de).on("mousedown.zoom",ie).on("dblclick.zoom",Ot).filter(j).on("touchstart.zoom",te).on("touchmove.zoom",jt).on("touchend.zoom touchcancel.zoom",se).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Qt(At,Ht){return(Ht=Math.max(W[0],Math.min(W[1],Ht)))===At.k?At:new h(Ht,At.x,At.y)}function pe(At,Ht,Zt){var Kt=Ht[0]-Zt[0]*At.k,xe=Ht[1]-Zt[1]*At.k;return Kt===At.x&&xe===At.y?At:new h(At.k,Kt,xe)}function wt(At){return[(+At[0][0]+ +At[1][0])/2,(+At[0][1]+ +At[1][1])/2]}function yt(At,Ht,Zt,Kt){At.on("start.zoom",function(){Nt(this,arguments).event(Kt).start()}).on("interrupt.zoom end.zoom",function(){Nt(this,arguments).event(Kt).end()}).tween("zoom",function(){var xe=this,Te=arguments,Le=Nt(xe,Te).event(Kt),Oe=tt.apply(xe,Te),Ee=null==Zt?wt(Oe):"function"==typeof Zt?Zt.apply(xe,Te):Zt,He=Math.max(Oe[1][0]-Oe[0][0],Oe[1][1]-Oe[0][1]),Ge=xe.__zoom,an="function"==typeof Ht?Ht.apply(xe,Te):Ht,be=Y(Ge.invert(Ee).concat(He/Ge.k),an.invert(Ee).concat(He/an.k));return function(ln){if(1===ln)ln=an;else{var Tt=be(ln),Wt=He/Tt[2];ln=new h(Wt,Ee[0]-Tt[0]*Wt,Ee[1]-Tt[1]*Wt)}Le.zoom(null,ln)}})}function Nt(At,Ht,Zt){return!Zt&&At.__zooming||new zt(At,Ht)}function zt(At,Ht){this.that=At,this.args=Ht,this.active=0,this.sourceEvent=null,this.extent=tt.apply(At,Ht),this.taps=0}function de(At,...Ht){if(G.apply(this,arguments)){var Zt=Nt(this,Ht).event(At),Kt=this.__zoom,xe=Math.max(W[0],Math.min(W[1],Kt.k*Math.pow(2,st.apply(this,arguments)))),Te=(0,p.Z)(At);if(Zt.wheel)(Zt.mouse[0][0]!==Te[0]||Zt.mouse[0][1]!==Te[1])&&(Zt.mouse[1]=Kt.invert(Zt.mouse[0]=Te)),clearTimeout(Zt.wheel);else{if(Kt.k===xe)return;Zt.mouse=[Te,Kt.invert(Te)],(0,t.interrupt)(this),Zt.start()}C(At),Zt.wheel=setTimeout(Le,150),Zt.zoom("mouse",K(pe(Qt(Kt,xe),Zt.mouse[0],Zt.mouse[1]),Zt.extent,et))}function Le(){Zt.wheel=null,Zt.end()}}function ie(At,...Ht){if(!F&&G.apply(this,arguments)){var Zt=Nt(this,Ht,!0).event(At),Kt=(0,m.Z)(At.view).on("mousemove.zoom",Ee,!0).on("mouseup.zoom",He,!0),xe=(0,p.Z)(At,Te),Te=At.currentTarget,Le=At.clientX,Oe=At.clientY;(0,x.Z)(At.view),g(At),Zt.mouse=[xe,this.__zoom.invert(xe)],(0,t.interrupt)(this),Zt.start()}function Ee(Ge){if(C(Ge),!Zt.moved){var an=Ge.clientX-Le,be=Ge.clientY-Oe;Zt.moved=an*an+be*be>ft}Zt.event(Ge).zoom("mouse",K(pe(Zt.that.__zoom,Zt.mouse[0]=(0,p.Z)(Ge,Te),Zt.mouse[1]),Zt.extent,et))}function He(Ge){Kt.on("mousemove.zoom mouseup.zoom",null),(0,x.D)(Ge.view,Zt.moved),C(Ge),Zt.event(Ge).end()}}function Ot(At,...Ht){if(G.apply(this,arguments)){var Zt=this.__zoom,Kt=(0,p.Z)(At.changedTouches?At.changedTouches[0]:At,this),xe=Zt.invert(Kt),Te=Zt.k*(At.shiftKey?.5:2),Le=K(pe(Qt(Zt,Te),Kt,xe),tt.apply(this,Ht),et);C(At),at>0?(0,m.Z)(this).transition().duration(at).call(yt,Le,Kt,At):(0,m.Z)(this).call(St.transform,Le,Kt,At)}}function te(At,...Ht){if(G.apply(this,arguments)){var Te,Le,Oe,Ee,Zt=At.touches,Kt=Zt.length,xe=Nt(this,Ht,At.changedTouches.length===Kt).event(At);for(g(At),Le=0;Le{w.exports={graphlib:s(36456),layout:s(14850),debug:s(71914),util:{time:s(11510).time,notime:s(11510).notime},version:s(28126)}},12234:(w,D,s)=>{"use strict";var c=s(45760),x=s(67365);w.exports={run:function _(t){var d="greedy"===t.graph().acyclicer?x(t,function l(h){return function(f){return h.edge(f).weight}}(t)):function m(t){var d=[],l={},h={};return c.forEach(t.nodes(),function f(u){c.has(h,u)||(h[u]=!0,l[u]=!0,c.forEach(t.outEdges(u),function(g){c.has(l,g.w)?d.push(g):f(g.w)}),delete l[u])}),d}(t);c.forEach(d,function(h){var f=t.edge(h);t.removeEdge(h),f.forwardName=h.name,f.reversed=!0,t.setEdge(h.w,h.v,f,c.uniqueId("rev"))})},undo:function p(t){c.forEach(t.edges(),function(d){var l=t.edge(d);if(l.reversed){t.removeEdge(d);var h=l.forwardName;delete l.reversed,delete l.forwardName,t.setEdge(d.w,d.v,l,h)}})}}},79999:(w,D,s)=>{var c=s(45760),x=s(11510);function m(p,t,d,l,h,f){var g=h[t][f-1],C=x.addDummyNode(p,"border",{width:0,height:0,rank:f,borderType:t},d);h[t][f]=C,p.setParent(C,l),g&&p.setEdge(g,C,{weight:1})}w.exports=function _(p){c.forEach(p.children(),function t(d){var l=p.children(d),h=p.node(d);if(l.length&&c.forEach(l,t),c.has(h,"minRank")){h.borderLeft=[],h.borderRight=[];for(var f=h.minRank,u=h.maxRank+1;f{"use strict";var c=s(45760);function m(f){c.forEach(f.nodes(),function(u){p(f.node(u))}),c.forEach(f.edges(),function(u){p(f.edge(u))})}function p(f){var u=f.width;f.width=f.height,f.height=u}function d(f){f.y=-f.y}function h(f){var u=f.x;f.x=f.y,f.y=u}w.exports={adjust:function x(f){var u=f.graph().rankdir.toLowerCase();("lr"===u||"rl"===u)&&m(f)},undo:function _(f){var u=f.graph().rankdir.toLowerCase();("bt"===u||"rl"===u)&&function t(f){c.forEach(f.nodes(),function(u){d(f.node(u))}),c.forEach(f.edges(),function(u){var g=f.edge(u);c.forEach(g.points,d),c.has(g,"y")&&d(g)})}(f),("lr"===u||"rl"===u)&&(function l(f){c.forEach(f.nodes(),function(u){h(f.node(u))}),c.forEach(f.edges(),function(u){var g=f.edge(u);c.forEach(g.points,h),c.has(g,"x")&&h(g)})}(f),m(f))}}},3226:w=>{function D(){var x={};x._next=x._prev=x,this._sentinel=x}function s(x){x._prev._next=x._next,x._next._prev=x._prev,delete x._next,delete x._prev}function c(x,_){if("_next"!==x&&"_prev"!==x)return _}w.exports=D,D.prototype.dequeue=function(){var x=this._sentinel,_=x._prev;if(_!==x)return s(_),_},D.prototype.enqueue=function(x){var _=this._sentinel;x._prev&&x._next&&s(x),x._next=_._next,_._next._prev=x,_._next=x,x._prev=_},D.prototype.toString=function(){for(var x=[],_=this._sentinel,m=_._prev;m!==_;)x.push(JSON.stringify(m,c)),m=m._prev;return"["+x.join(", ")+"]"}},71914:(w,D,s)=>{var c=s(45760),x=s(11510),_=s(36456).Graph;w.exports={debugOrdering:function m(p){var t=x.buildLayerMatrix(p),d=new _({compound:!0,multigraph:!0}).setGraph({});return c.forEach(p.nodes(),function(l){d.setNode(l,{label:l}),d.setParent(l,"layer"+p.node(l).rank)}),c.forEach(p.edges(),function(l){d.setEdge(l.v,l.w,{},l.name)}),c.forEach(t,function(l,h){d.setNode("layer"+h,{rank:"same"}),c.reduce(l,function(u,g){return d.setEdge(u,g,{style:"invis"}),g})}),d}}},36456:(w,D,s)=>{var c;try{c=s(85510)}catch{}c||(c=window.graphlib),w.exports=c},67365:(w,D,s)=>{var c=s(45760),x=s(36456).Graph,_=s(3226);w.exports=function p(f,u){if(f.nodeCount()<=1)return[];var g=function l(f,u){var g=new x,C=0,L=0;c.forEach(f.nodes(),function(M){g.setNode(M,{v:M,in:0,out:0})}),c.forEach(f.edges(),function(M){var R=g.edge(M.v,M.w)||0,Z=u(M);g.setEdge(M.v,M.w,R+Z),L=Math.max(L,g.node(M.v).out+=Z),C=Math.max(C,g.node(M.w).in+=Z)});var I=c.range(L+C+3).map(function(){return new _}),B=C+1;return c.forEach(g.nodes(),function(M){h(I,B,g.node(M))}),{graph:g,buckets:I,zeroIdx:B}}(f,u||m),C=function t(f,u,g){for(var B,C=[],L=u[u.length-1],I=u[0];f.nodeCount();){for(;B=I.dequeue();)d(f,u,g,B);for(;B=L.dequeue();)d(f,u,g,B);if(f.nodeCount())for(var M=u.length-2;M>0;--M)if(B=u[M].dequeue()){C=C.concat(d(f,u,g,B,!0));break}}return C}(g.graph,g.buckets,g.zeroIdx);return c.flatten(c.map(C,function(L){return f.outEdges(L.v,L.w)}),!0)};var m=c.constant(1);function d(f,u,g,C,L){var I=L?[]:void 0;return c.forEach(f.inEdges(C.v),function(B){var M=f.edge(B),R=f.node(B.v);L&&I.push({v:B.v,w:B.w}),R.out-=M,h(u,g,R)}),c.forEach(f.outEdges(C.v),function(B){var M=f.edge(B),Z=f.node(B.w);Z.in-=M,h(u,g,Z)}),f.removeNode(C.v),I}function h(f,u,g){g.out?g.in?f[g.out-g.in+u].enqueue(g):f[f.length-1].enqueue(g):f[0].enqueue(g)}},14850:(w,D,s)=>{"use strict";var c=s(45760),x=s(12234),_=s(91496),m=s(94124),p=s(11510).normalizeRanks,t=s(60162),d=s(11510).removeEmptyRanks,l=s(1230),h=s(79999),f=s(83870),u=s(32974),g=s(78226),C=s(11510),L=s(36456).Graph;w.exports=function I(wt,yt){var Nt=yt&&yt.debugTiming?C.time:C.notime;Nt("layout",function(){var zt=Nt(" buildLayoutGraph",function(){return function W(wt){var yt=new L({multigraph:!0,compound:!0}),Nt=pe(wt.graph());return yt.setGraph(c.merge({},Z,Qt(Nt,R),c.pick(Nt,H))),c.forEach(wt.nodes(),function(zt){var de=pe(wt.node(zt));yt.setNode(zt,c.defaults(Qt(de,G),tt)),yt.setParent(zt,wt.parent(zt))}),c.forEach(wt.edges(),function(zt){var de=pe(wt.edge(zt));yt.setEdge(zt,c.merge({},st,Qt(de,K),c.pick(de,j)))}),yt}(wt)});Nt(" runLayout",function(){!function B(wt,yt){yt(" makeSpaceForEdgeLabels",function(){!function et(wt){var yt=wt.graph();yt.ranksep/=2,c.forEach(wt.edges(),function(Nt){var zt=wt.edge(Nt);zt.minlen*=2,"c"!==zt.labelpos.toLowerCase()&&("TB"===yt.rankdir||"BT"===yt.rankdir?zt.width+=zt.labeloffset:zt.height+=zt.labeloffset)})}(wt)}),yt(" removeSelfEdges",function(){!function ft(wt){c.forEach(wt.edges(),function(yt){if(yt.v===yt.w){var Nt=wt.node(yt.v);Nt.selfEdges||(Nt.selfEdges=[]),Nt.selfEdges.push({e:yt,label:wt.edge(yt)}),wt.removeEdge(yt)}})}(wt)}),yt(" acyclic",function(){x.run(wt)}),yt(" nestingGraph.run",function(){l.run(wt)}),yt(" rank",function(){m(C.asNonCompoundGraph(wt))}),yt(" injectEdgeLabelProxies",function(){!function at(wt){c.forEach(wt.edges(),function(yt){var Nt=wt.edge(yt);if(Nt.width&&Nt.height){var zt=wt.node(yt.v),de=wt.node(yt.w);C.addDummyNode(wt,"edge-proxy",{rank:(de.rank-zt.rank)/2+zt.rank,e:yt},"_ep")}})}(wt)}),yt(" removeEmptyRanks",function(){d(wt)}),yt(" nestingGraph.cleanup",function(){l.cleanup(wt)}),yt(" normalizeRanks",function(){p(wt)}),yt(" assignRankMinMax",function(){!function Y(wt){var yt=0;c.forEach(wt.nodes(),function(Nt){var zt=wt.node(Nt);zt.borderTop&&(zt.minRank=wt.node(zt.borderTop).rank,zt.maxRank=wt.node(zt.borderBottom).rank,yt=c.max(yt,zt.maxRank))}),wt.graph().maxRank=yt}(wt)}),yt(" removeEdgeLabelProxies",function(){!function nt(wt){c.forEach(wt.nodes(),function(yt){var Nt=wt.node(yt);"edge-proxy"===Nt.dummy&&(wt.edge(Nt.e).labelRank=Nt.rank,wt.removeNode(yt))})}(wt)}),yt(" normalize.run",function(){_.run(wt)}),yt(" parentDummyChains",function(){t(wt)}),yt(" addBorderSegments",function(){h(wt)}),yt(" order",function(){u(wt)}),yt(" insertSelfEdges",function(){!function Dt(wt){var yt=C.buildLayerMatrix(wt);c.forEach(yt,function(Nt){var zt=0;c.forEach(Nt,function(de,ie){var Ot=wt.node(de);Ot.order=ie+zt,c.forEach(Ot.selfEdges,function(te){C.addDummyNode(wt,"selfedge",{width:te.label.width,height:te.label.height,rank:Ot.rank,order:ie+ ++zt,e:te.e,label:te.label},"_se")}),delete Ot.selfEdges})})}(wt)}),yt(" adjustCoordinateSystem",function(){f.adjust(wt)}),yt(" position",function(){g(wt)}),yt(" positionSelfEdges",function(){!function St(wt){c.forEach(wt.nodes(),function(yt){var Nt=wt.node(yt);if("selfedge"===Nt.dummy){var zt=wt.node(Nt.e.v),de=zt.x+zt.width/2,ie=zt.y,Ot=Nt.x-de,te=zt.height/2;wt.setEdge(Nt.e,Nt.label),wt.removeNode(yt),Nt.label.points=[{x:de+2*Ot/3,y:ie-te},{x:de+5*Ot/6,y:ie-te},{x:de+Ot,y:ie},{x:de+5*Ot/6,y:ie+te},{x:de+2*Ot/3,y:ie+te}],Nt.label.x=Nt.x,Nt.label.y=Nt.y}})}(wt)}),yt(" removeBorderNodes",function(){!function ut(wt){c.forEach(wt.nodes(),function(yt){if(wt.children(yt).length){var Nt=wt.node(yt),zt=wt.node(Nt.borderTop),de=wt.node(Nt.borderBottom),ie=wt.node(c.last(Nt.borderLeft)),Ot=wt.node(c.last(Nt.borderRight));Nt.width=Math.abs(Ot.x-ie.x),Nt.height=Math.abs(de.y-zt.y),Nt.x=ie.x+Nt.width/2,Nt.y=zt.y+Nt.height/2}}),c.forEach(wt.nodes(),function(yt){"border"===wt.node(yt).dummy&&wt.removeNode(yt)})}(wt)}),yt(" normalize.undo",function(){_.undo(wt)}),yt(" fixupEdgeLabelCoords",function(){!function F(wt){c.forEach(wt.edges(),function(yt){var Nt=wt.edge(yt);if(c.has(Nt,"x"))switch(("l"===Nt.labelpos||"r"===Nt.labelpos)&&(Nt.width-=Nt.labeloffset),Nt.labelpos){case"l":Nt.x-=Nt.width/2+Nt.labeloffset;break;case"r":Nt.x+=Nt.width/2+Nt.labeloffset}})}(wt)}),yt(" undoCoordinateSystem",function(){f.undo(wt)}),yt(" translateGraph",function(){!function rt(wt){var yt=Number.POSITIVE_INFINITY,Nt=0,zt=Number.POSITIVE_INFINITY,de=0,ie=wt.graph(),Ot=ie.marginx||0,te=ie.marginy||0;function jt(se){var At=se.x,Ht=se.y,Zt=se.width,Kt=se.height;yt=Math.min(yt,At-Zt/2),Nt=Math.max(Nt,At+Zt/2),zt=Math.min(zt,Ht-Kt/2),de=Math.max(de,Ht+Kt/2)}c.forEach(wt.nodes(),function(se){jt(wt.node(se))}),c.forEach(wt.edges(),function(se){var At=wt.edge(se);c.has(At,"x")&&jt(At)}),yt-=Ot,zt-=te,c.forEach(wt.nodes(),function(se){var At=wt.node(se);At.x-=yt,At.y-=zt}),c.forEach(wt.edges(),function(se){var At=wt.edge(se);c.forEach(At.points,function(Ht){Ht.x-=yt,Ht.y-=zt}),c.has(At,"x")&&(At.x-=yt),c.has(At,"y")&&(At.y-=zt)}),ie.width=Nt-yt+Ot,ie.height=de-zt+te}(wt)}),yt(" assignNodeIntersects",function(){!function q(wt){c.forEach(wt.edges(),function(yt){var ie,Ot,Nt=wt.edge(yt),zt=wt.node(yt.v),de=wt.node(yt.w);Nt.points?(ie=Nt.points[0],Ot=Nt.points[Nt.points.length-1]):(Nt.points=[],ie=de,Ot=zt),Nt.points.unshift(C.intersectRect(zt,ie)),Nt.points.push(C.intersectRect(de,Ot))})}(wt)}),yt(" reversePoints",function(){!function E(wt){c.forEach(wt.edges(),function(yt){var Nt=wt.edge(yt);Nt.reversed&&Nt.points.reverse()})}(wt)}),yt(" acyclic.undo",function(){x.undo(wt)})}(zt,Nt)}),Nt(" updateInputGraph",function(){!function M(wt,yt){c.forEach(wt.nodes(),function(Nt){var zt=wt.node(Nt),de=yt.node(Nt);zt&&(zt.x=de.x,zt.y=de.y,yt.children(Nt).length&&(zt.width=de.width,zt.height=de.height))}),c.forEach(wt.edges(),function(Nt){var zt=wt.edge(Nt),de=yt.edge(Nt);zt.points=de.points,c.has(de,"x")&&(zt.x=de.x,zt.y=de.y)}),wt.graph().width=yt.graph().width,wt.graph().height=yt.graph().height}(wt,zt)})})};var R=["nodesep","edgesep","ranksep","marginx","marginy"],Z={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},H=["acyclicer","ranker","rankdir","align"],G=["width","height"],tt={width:0,height:0},K=["minlen","weight","width","height","labeloffset"],st={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},j=["labelpos"];function Qt(wt,yt){return c.mapValues(c.pick(wt,yt),Number)}function pe(wt){var yt={};return c.forEach(wt,function(Nt,zt){yt[zt.toLowerCase()]=Nt}),yt}},45760:(w,D,s)=>{var c;try{c={cloneDeep:s(90733),constant:s(76684),defaults:s(28800),each:s(35474),filter:s(35281),find:s(62516),flatten:s(22274),forEach:s(89851),forIn:s(41176),has:s(54842),isUndefined:s(34235),last:s(25809),map:s(19984),mapValues:s(10203),max:s(18176),merge:s(80567),min:s(29439),minBy:s(29525),now:s(31710),pick:s(16372),range:s(90361),reduce:s(81337),sortBy:s(12906),uniqueId:s(51541),values:s(90377),zipObject:s(21617)}}catch{}c||(c=window._),w.exports=c},1230:(w,D,s)=>{var c=s(45760),x=s(11510);function m(l,h,f,u,g,C,L){var I=l.children(L);if(I.length){var B=x.addBorderNode(l,"_bt"),M=x.addBorderNode(l,"_bb"),R=l.node(L);l.setParent(B,L),R.borderTop=B,l.setParent(M,L),R.borderBottom=M,c.forEach(I,function(Z){m(l,h,f,u,g,C,Z);var H=l.node(Z),G=H.borderTop?H.borderTop:Z,tt=H.borderBottom?H.borderBottom:Z,K=H.borderTop?u:2*u,st=G!==tt?1:g-C[L]+1;l.setEdge(B,G,{weight:K,minlen:st,nestingEdge:!0}),l.setEdge(tt,M,{weight:K,minlen:st,nestingEdge:!0})}),l.parent(L)||l.setEdge(h,B,{weight:0,minlen:g+C[L]})}else L!==h&&l.setEdge(h,L,{weight:0,minlen:f})}w.exports={run:function _(l){var h=x.addDummyNode(l,"root",{},"_root"),f=function p(l){var h={};function f(u,g){var C=l.children(u);C&&C.length&&c.forEach(C,function(L){f(L,g+1)}),h[u]=g}return c.forEach(l.children(),function(u){f(u,1)}),h}(l),u=c.max(c.values(f))-1,g=2*u+1;l.graph().nestingRoot=h,c.forEach(l.edges(),function(L){l.edge(L).minlen*=g});var C=function t(l){return c.reduce(l.edges(),function(h,f){return h+l.edge(f).weight},0)}(l)+1;c.forEach(l.children(),function(L){m(l,h,g,C,u,f,L)}),l.graph().nodeRankFactor=g},cleanup:function d(l){var h=l.graph();l.removeNode(h.nestingRoot),delete h.nestingRoot,c.forEach(l.edges(),function(f){l.edge(f).nestingEdge&&l.removeEdge(f)})}}},91496:(w,D,s)=>{"use strict";var c=s(45760),x=s(11510);w.exports={run:function _(t){t.graph().dummyChains=[],c.forEach(t.edges(),function(d){!function m(t,d){var l=d.v,h=t.node(l).rank,f=d.w,u=t.node(f).rank,g=d.name,C=t.edge(d),L=C.labelRank;if(u!==h+1){var I,B,M;for(t.removeEdge(d),M=0,++h;h{var c=s(45760);w.exports=function x(_,m,p){var d,t={};c.forEach(p,function(l){for(var f,u,h=_.parent(l);h;){if((f=_.parent(h))?(u=t[f],t[f]=h):(u=d,d=h),u&&u!==h)return void m.setEdge(u,h);h=f}})}},81323:(w,D,s)=>{var c=s(45760);w.exports=function x(_,m){return c.map(m,function(p){var t=_.inEdges(p);if(t.length){var d=c.reduce(t,function(l,h){var f=_.edge(h),u=_.node(h.v);return{sum:l.sum+f.weight*u.order,weight:l.weight+f.weight}},{sum:0,weight:0});return{v:p,barycenter:d.sum/d.weight,weight:d.weight}}return{v:p}})}},1686:(w,D,s)=>{var c=s(45760),x=s(36456).Graph;w.exports=function _(p,t,d){var l=function m(p){for(var t;p.hasNode(t=c.uniqueId("_root")););return t}(p),h=new x({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(f){return p.node(f)});return c.forEach(p.nodes(),function(f){var u=p.node(f),g=p.parent(f);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(h.setNode(f),h.setParent(f,g||l),c.forEach(p[d](f),function(C){var L=C.v===f?C.w:C.v,I=h.edge(L,f),B=c.isUndefined(I)?0:I.weight;h.setEdge(L,f,{weight:p.edge(C).weight+B})}),c.has(u,"minRank")&&h.setNode(f,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))}),h}},18796:(w,D,s)=>{"use strict";var c=s(45760);function _(m,p,t){for(var d=c.zipObject(t,c.map(t,function(C,L){return L})),l=c.flatten(c.map(p,function(C){return c.sortBy(c.map(m.outEdges(C),function(L){return{pos:d[L.w],weight:m.edge(L).weight}}),"pos")}),!0),h=1;h0;)L%2&&(I+=u[L+1]),u[L=L-1>>1]+=C.weight;g+=C.weight*I})),g}w.exports=function x(m,p){for(var t=0,d=1;d{"use strict";var c=s(45760),x=s(49402),_=s(18796),m=s(61057),p=s(1686),t=s(33034),d=s(36456).Graph,l=s(11510);function f(C,L,I){return c.map(L,function(B){return p(C,B,I)})}function u(C,L){var I=new d;c.forEach(C,function(B){var M=B.graph().root,R=m(B,M,I,L);c.forEach(R.vs,function(Z,H){B.node(Z).order=H}),t(B,I,R.vs)})}function g(C,L){c.forEach(L,function(I){c.forEach(I,function(B,M){C.node(B).order=M})})}w.exports=function h(C){var L=l.maxRank(C),I=f(C,c.range(1,L+1),"inEdges"),B=f(C,c.range(L-1,-1,-1),"outEdges"),M=x(C);g(C,M);for(var Z,R=Number.POSITIVE_INFINITY,H=0,G=0;G<4;++H,++G){u(H%2?I:B,H%4>=2),M=l.buildLayerMatrix(C);var tt=_(C,M);tt{"use strict";var c=s(45760);w.exports=function x(_){var m={},p=c.filter(_.nodes(),function(f){return!_.children(f).length}),t=c.max(c.map(p,function(f){return _.node(f).rank})),d=c.map(c.range(t+1),function(){return[]}),h=c.sortBy(p,function(f){return _.node(f).rank});return c.forEach(h,function l(f){if(!c.has(m,f)){m[f]=!0;var u=_.node(f);d[u.rank].push(f),c.forEach(_.successors(f),l)}}),d}},83826:(w,D,s)=>{"use strict";var c=s(45760);w.exports=function x(p,t){var d={};return c.forEach(p,function(h,f){var u=d[h.v]={indegree:0,in:[],out:[],vs:[h.v],i:f};c.isUndefined(h.barycenter)||(u.barycenter=h.barycenter,u.weight=h.weight)}),c.forEach(t.edges(),function(h){var f=d[h.v],u=d[h.w];!c.isUndefined(f)&&!c.isUndefined(u)&&(u.indegree++,f.out.push(d[h.w]))}),function _(p){var t=[];function d(f){return function(u){u.merged||(c.isUndefined(u.barycenter)||c.isUndefined(f.barycenter)||u.barycenter>=f.barycenter)&&function m(p,t){var d=0,l=0;p.weight&&(d+=p.barycenter*p.weight,l+=p.weight),t.weight&&(d+=t.barycenter*t.weight,l+=t.weight),p.vs=t.vs.concat(p.vs),p.barycenter=d/l,p.weight=l,p.i=Math.min(t.i,p.i),t.merged=!0}(f,u)}}function l(f){return function(u){u.in.push(f),0==--u.indegree&&p.push(u)}}for(;p.length;){var h=p.pop();t.push(h),c.forEach(h.in.reverse(),d(h)),c.forEach(h.out,l(h))}return c.map(c.filter(t,function(f){return!f.merged}),function(f){return c.pick(f,["vs","i","barycenter","weight"])})}(c.filter(d,function(h){return!h.indegree}))}},61057:(w,D,s)=>{var c=s(45760),x=s(81323),_=s(83826),m=s(93803);w.exports=function p(l,h,f,u){var g=l.children(h),C=l.node(h),L=C?C.borderLeft:void 0,I=C?C.borderRight:void 0,B={};L&&(g=c.filter(g,function(tt){return tt!==L&&tt!==I}));var M=x(l,g);c.forEach(M,function(tt){if(l.children(tt.v).length){var K=p(l,tt.v,f,u);B[tt.v]=K,c.has(K,"barycenter")&&function d(l,h){c.isUndefined(l.barycenter)?(l.barycenter=h.barycenter,l.weight=h.weight):(l.barycenter=(l.barycenter*l.weight+h.barycenter*h.weight)/(l.weight+h.weight),l.weight+=h.weight)}(tt,K)}});var R=_(M,f);!function t(l,h){c.forEach(l,function(f){f.vs=c.flatten(f.vs.map(function(u){return h[u]?h[u].vs:u}),!0)})}(R,B);var Z=m(R,u);if(L&&(Z.vs=c.flatten([L,Z.vs,I],!0),l.predecessors(L).length)){var H=l.node(l.predecessors(L)[0]),G=l.node(l.predecessors(I)[0]);c.has(Z,"barycenter")||(Z.barycenter=0,Z.weight=0),Z.barycenter=(Z.barycenter*Z.weight+H.order+G.order)/(Z.weight+2),Z.weight+=2}return Z}},93803:(w,D,s)=>{var c=s(45760),x=s(11510);function m(t,d,l){for(var h;d.length&&(h=c.last(d)).i<=l;)d.pop(),t.push(h.vs),l++;return l}w.exports=function _(t,d){var l=x.partition(t,function(B){return c.has(B,"barycenter")}),h=l.lhs,f=c.sortBy(l.rhs,function(B){return-B.i}),u=[],g=0,C=0,L=0;h.sort(function p(t){return function(d,l){return d.barycenterl.barycenter?1:t?l.i-d.i:d.i-l.i}}(!!d)),L=m(u,f,L),c.forEach(h,function(B){L+=B.vs.length,u.push(B.vs),g+=B.barycenter*B.weight,C+=B.weight,L=m(u,f,L)});var I={vs:c.flatten(u,!0)};return C&&(I.barycenter=g/C,I.weight=C),I}},60162:(w,D,s)=>{var c=s(45760);w.exports=function x(p){var t=function m(p){var t={},d=0;return c.forEach(p.children(),function l(h){var f=d;c.forEach(p.children(h),l),t[h]={low:f,lim:d++}}),t}(p);c.forEach(p.graph().dummyChains,function(d){for(var l=p.node(d),h=l.edgeObj,f=function _(p,t,d,l){var C,L,h=[],f=[],u=Math.min(t[d].low,t[l].low),g=Math.max(t[d].lim,t[l].lim);C=d;do{C=p.parent(C),h.push(C)}while(C&&(t[C].low>u||g>t[C].lim));for(L=C,C=l;(C=p.parent(C))!==L;)f.push(C);return{path:h.concat(f.reverse()),lca:L}}(p,t,h.v,h.w),u=f.path,g=f.lca,C=0,L=u[C],I=!0;d!==h.w;){if(l=p.node(d),I){for(;(L=u[C])!==g&&p.node(L).maxRank{"use strict";var c=s(45760),x=s(36456).Graph,_=s(11510);function m(R,Z){var H={};return c.reduce(Z,function G(tt,K){var st=0,j=0,W=tt.length,et=c.last(K);return c.forEach(K,function(at,Y){var nt=function t(R,Z){if(R.node(Z).dummy)return c.find(R.predecessors(Z),function(H){return R.node(H).dummy})}(R,at),rt=nt?R.node(nt).order:W;(nt||at===et)&&(c.forEach(K.slice(j,Y+1),function(q){c.forEach(R.predecessors(q),function(F){var E=R.node(F),ut=E.order;(utet)&&d(H,nt,at)})})}return c.reduce(Z,function tt(K,st){var W,j=-1,et=0;return c.forEach(st,function(at,Y){if("border"===R.node(at).dummy){var nt=R.predecessors(at);nt.length&&(W=R.node(nt[0]).order,G(st,et,Y,j,W),et=Y,j=W)}G(st,et,st.length,W,K.length)}),st}),H}function d(R,Z,H){if(Z>H){var G=Z;Z=H,H=G}var tt=R[Z];tt||(R[Z]=tt={}),tt[H]=!0}function l(R,Z,H){if(Z>H){var G=Z;Z=H,H=G}return c.has(R[Z],H)}function h(R,Z,H,G){var tt={},K={},st={};return c.forEach(Z,function(j){c.forEach(j,function(W,et){tt[W]=W,K[W]=W,st[W]=et})}),c.forEach(Z,function(j){var W=-1;c.forEach(j,function(et){var at=G(et);if(at.length)for(var Y=((at=c.sortBy(at,function(F){return st[F]})).length-1)/2,nt=Math.floor(Y),rt=Math.ceil(Y);nt<=rt;++nt){var q=at[nt];K[et]===et&&W{"use strict";var c=s(45760),x=s(11510),_=s(54058).positionX;w.exports=function m(t){(function p(t){var d=x.buildLayerMatrix(t),l=t.graph().ranksep,h=0;c.forEach(d,function(f){var u=c.max(c.map(f,function(g){return t.node(g).height}));c.forEach(f,function(g){t.node(g).y=h+u/2}),h+=u+l})})(t=x.asNonCompoundGraph(t)),c.forEach(_(t),function(d,l){t.node(l).x=d})}},96632:(w,D,s)=>{"use strict";var c=s(45760),x=s(36456).Graph,_=s(1916).slack;function p(l,h){return c.forEach(l.nodes(),function f(u){c.forEach(h.nodeEdges(u),function(g){var C=g.v,L=u===C?g.w:C;!l.hasNode(L)&&!_(h,g)&&(l.setNode(L,{}),l.setEdge(u,L,{}),f(L))})}),l.nodeCount()}function t(l,h){return c.minBy(h.edges(),function(f){if(l.hasNode(f.v)!==l.hasNode(f.w))return _(h,f)})}function d(l,h,f){c.forEach(l.nodes(),function(u){h.node(u).rank+=f})}w.exports=function m(l){var g,C,h=new x({directed:!1}),f=l.nodes()[0],u=l.nodeCount();for(h.setNode(f,{});p(h,l){"use strict";var x=s(1916).longestPath,_=s(96632),m=s(63804);w.exports=function p(h){switch(h.graph().ranker){case"network-simplex":default:!function l(h){m(h)}(h);break;case"tight-tree":!function d(h){x(h),_(h)}(h);break;case"longest-path":t(h)}};var t=x},63804:(w,D,s)=>{"use strict";var c=s(45760),x=s(96632),_=s(1916).slack,m=s(1916).longestPath,p=s(36456).alg.preorder,t=s(36456).alg.postorder,d=s(11510).simplify;function l(H){H=d(H),m(H);var tt,G=x(H);for(g(G),h(G,H);tt=L(G);)B(G,H,tt,I(G,H,tt))}function h(H,G){var tt=t(H,H.nodes());tt=tt.slice(0,tt.length-1),c.forEach(tt,function(K){!function f(H,G,tt){var K=H.node(tt);H.edge(tt,K.parent).cutvalue=u(H,G,tt)}(H,G,K)})}function u(H,G,tt){var st=H.node(tt).parent,j=!0,W=G.edge(tt,st),et=0;return W||(j=!1,W=G.edge(st,tt)),et=W.weight,c.forEach(G.nodeEdges(tt),function(at){var Y=at.v===tt,nt=Y?at.w:at.v;if(nt!==st){var rt=Y===j,q=G.edge(at).weight;if(et+=rt?q:-q,function R(H,G,tt){return H.hasEdge(G,tt)}(H,tt,nt)){var F=H.edge(tt,nt).cutvalue;et+=rt?-F:F}}}),et}function g(H,G){arguments.length<2&&(G=H.nodes()[0]),C(H,{},1,G)}function C(H,G,tt,K,st){var j=tt,W=H.node(K);return G[K]=!0,c.forEach(H.neighbors(K),function(et){c.has(G,et)||(tt=C(H,G,tt,et,K))}),W.low=j,W.lim=tt++,st?W.parent=st:delete W.parent,tt}function L(H){return c.find(H.edges(),function(G){return H.edge(G).cutvalue<0})}function I(H,G,tt){var K=tt.v,st=tt.w;G.hasEdge(K,st)||(K=tt.w,st=tt.v);var j=H.node(K),W=H.node(st),et=j,at=!1;j.lim>W.lim&&(et=W,at=!0);var Y=c.filter(G.edges(),function(nt){return at===Z(0,H.node(nt.v),et)&&at!==Z(0,H.node(nt.w),et)});return c.minBy(Y,function(nt){return _(G,nt)})}function B(H,G,tt,K){H.removeEdge(tt.v,tt.w),H.setEdge(K.v,K.w,{}),g(H),h(H,G),function M(H,G){var tt=c.find(H.nodes(),function(st){return!G.node(st).parent}),K=p(H,tt);K=K.slice(1),c.forEach(K,function(st){var j=H.node(st).parent,W=G.edge(st,j),et=!1;W||(W=G.edge(j,st),et=!0),G.node(st).rank=G.node(j).rank+(et?W.minlen:-W.minlen)})}(H,G)}function Z(H,G,tt){return tt.low<=G.lim&&G.lim<=tt.lim}w.exports=l,l.initLowLimValues=g,l.initCutValues=h,l.calcCutValue=u,l.leaveEdge=L,l.enterEdge=I,l.exchangeEdges=B},1916:(w,D,s)=>{"use strict";var c=s(45760);w.exports={longestPath:function x(m){var p={};c.forEach(m.sources(),function t(d){var l=m.node(d);if(c.has(p,d))return l.rank;p[d]=!0;var h=c.min(c.map(m.outEdges(d),function(f){return t(f.w)-m.edge(f).minlen}));return(h===Number.POSITIVE_INFINITY||null==h)&&(h=0),l.rank=h})},slack:function _(m,p){return m.node(p.w).rank-m.node(p.v).rank-m.edge(p).minlen}}},11510:(w,D,s)=>{"use strict";var c=s(45760),x=s(36456).Graph;function _(M,R,Z,H){var G;do{G=c.uniqueId(H)}while(M.hasNode(G));return Z.dummy=R,M.setNode(G,Z),G}function C(M){return c.max(c.map(M.nodes(),function(R){var Z=M.node(R).rank;if(!c.isUndefined(Z))return Z}))}w.exports={addDummyNode:_,simplify:function m(M){var R=(new x).setGraph(M.graph());return c.forEach(M.nodes(),function(Z){R.setNode(Z,M.node(Z))}),c.forEach(M.edges(),function(Z){var H=R.edge(Z.v,Z.w)||{weight:0,minlen:1},G=M.edge(Z);R.setEdge(Z.v,Z.w,{weight:H.weight+G.weight,minlen:Math.max(H.minlen,G.minlen)})}),R},asNonCompoundGraph:function p(M){var R=new x({multigraph:M.isMultigraph()}).setGraph(M.graph());return c.forEach(M.nodes(),function(Z){M.children(Z).length||R.setNode(Z,M.node(Z))}),c.forEach(M.edges(),function(Z){R.setEdge(Z,M.edge(Z))}),R},successorWeights:function t(M){var R=c.map(M.nodes(),function(Z){var H={};return c.forEach(M.outEdges(Z),function(G){H[G.w]=(H[G.w]||0)+M.edge(G).weight}),H});return c.zipObject(M.nodes(),R)},predecessorWeights:function d(M){var R=c.map(M.nodes(),function(Z){var H={};return c.forEach(M.inEdges(Z),function(G){H[G.v]=(H[G.v]||0)+M.edge(G).weight}),H});return c.zipObject(M.nodes(),R)},intersectRect:function l(M,R){var j,W,Z=M.x,H=M.y,G=R.x-Z,tt=R.y-H,K=M.width/2,st=M.height/2;if(!G&&!tt)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(tt)*K>Math.abs(G)*st?(tt<0&&(st=-st),j=st*G/tt,W=st):(G<0&&(K=-K),j=K,W=K*tt/G),{x:Z+j,y:H+W}},buildLayerMatrix:function h(M){var R=c.map(c.range(C(M)+1),function(){return[]});return c.forEach(M.nodes(),function(Z){var H=M.node(Z),G=H.rank;c.isUndefined(G)||(R[G][H.order]=Z)}),R},normalizeRanks:function f(M){var R=c.min(c.map(M.nodes(),function(Z){return M.node(Z).rank}));c.forEach(M.nodes(),function(Z){var H=M.node(Z);c.has(H,"rank")&&(H.rank-=R)})},removeEmptyRanks:function u(M){var R=c.min(c.map(M.nodes(),function(tt){return M.node(tt).rank})),Z=[];c.forEach(M.nodes(),function(tt){var K=M.node(tt).rank-R;Z[K]||(Z[K]=[]),Z[K].push(tt)});var H=0,G=M.graph().nodeRankFactor;c.forEach(Z,function(tt,K){c.isUndefined(tt)&&K%G!=0?--H:H&&c.forEach(tt,function(st){M.node(st).rank+=H})})},addBorderNode:function g(M,R,Z,H){var G={width:0,height:0};return arguments.length>=4&&(G.rank=Z,G.order=H),_(M,"border",G,R)},maxRank:C,partition:function L(M,R){var Z={lhs:[],rhs:[]};return c.forEach(M,function(H){R(H)?Z.lhs.push(H):Z.rhs.push(H)}),Z},time:function I(M,R){var Z=c.now();try{return R()}finally{console.log(M+" time: "+(c.now()-Z)+"ms")}},notime:function B(M,R){return R()}}},28126:w=>{w.exports="0.8.5"},85510:(w,D,s)=>{var c=s(51838);w.exports={Graph:c.Graph,json:s(21088),alg:s(83430),version:c.version}},86730:(w,D,s)=>{var c=s(79138);w.exports=function x(_){var t,m={},p=[];function d(l){c.has(m,l)||(m[l]=!0,t.push(l),c.each(_.successors(l),d),c.each(_.predecessors(l),d))}return c.each(_.nodes(),function(l){t=[],d(l),t.length&&p.push(t)}),p}},22163:(w,D,s)=>{var c=s(79138);function _(m,p,t,d,l,h){c.has(d,p)||(d[p]=!0,t||h.push(p),c.each(l(p),function(f){_(m,f,t,d,l,h)}),t&&h.push(p))}w.exports=function x(m,p,t){c.isArray(p)||(p=[p]);var d=(m.isDirected()?m.successors:m.neighbors).bind(m),l=[],h={};return c.each(p,function(f){if(!m.hasNode(f))throw new Error("Graph does not have node: "+f);_(m,f,"post"===t,h,d,l)}),l}},25668:(w,D,s)=>{var c=s(61718),x=s(79138);w.exports=function _(m,p,t){return x.transform(m.nodes(),function(d,l){d[l]=c(m,l,p,t)},{})}},61718:(w,D,s)=>{var c=s(79138),x=s(31919);w.exports=function m(t,d,l,h){return function p(t,d,l,h){var g,C,f={},u=new x,L=function(I){var B=I.v!==g?I.v:I.w,M=f[B],R=l(I),Z=C.distance+R;if(R<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+I+" Weight: "+R);Z0&&(g=u.removeMin(),(C=f[g]).distance!==Number.POSITIVE_INFINITY);)h(g).forEach(L);return f}(t,String(d),l||_,h||function(f){return t.outEdges(f)})};var _=c.constant(1)},9611:(w,D,s)=>{var c=s(79138),x=s(73585);w.exports=function _(m){return c.filter(x(m),function(p){return p.length>1||1===p.length&&m.hasEdge(p[0],p[0])})}},22881:(w,D,s)=>{var c=s(79138);w.exports=function _(p,t,d){return function m(p,t,d){var l={},h=p.nodes();return h.forEach(function(f){l[f]={},l[f][f]={distance:0},h.forEach(function(u){f!==u&&(l[f][u]={distance:Number.POSITIVE_INFINITY})}),d(f).forEach(function(u){var g=u.v===f?u.w:u.v,C=t(u);l[f][g]={distance:C,predecessor:f}})}),h.forEach(function(f){var u=l[f];h.forEach(function(g){var C=l[g];h.forEach(function(L){var B=u[L],M=C[L],R=C[f].distance+B.distance;R{w.exports={components:s(86730),dijkstra:s(61718),dijkstraAll:s(25668),findCycles:s(9611),floydWarshall:s(22881),isAcyclic:s(46693),postorder:s(46694),preorder:s(5330),prim:s(46823),tarjan:s(73585),topsort:s(52180)}},46693:(w,D,s)=>{var c=s(52180);w.exports=function x(_){try{c(_)}catch(m){if(m instanceof c.CycleException)return!1;throw m}return!0}},46694:(w,D,s)=>{var c=s(22163);w.exports=function x(_,m){return c(_,m,"post")}},5330:(w,D,s)=>{var c=s(22163);w.exports=function x(_,m){return c(_,m,"pre")}},46823:(w,D,s)=>{var c=s(79138),x=s(66568),_=s(31919);w.exports=function m(p,t){var f,d=new x,l={},h=new _;function u(C){var L=C.v===f?C.w:C.v,I=h.priority(L);if(void 0!==I){var B=t(C);B0;){if(f=h.removeMin(),c.has(l,f))d.setEdge(f,l[f]);else{if(g)throw new Error("Input graph is not connected: "+p);g=!0}p.nodeEdges(f).forEach(u)}return d}},73585:(w,D,s)=>{var c=s(79138);w.exports=function x(_){var m=0,p=[],t={},d=[];function l(h){var f=t[h]={onStack:!0,lowlink:m,index:m++};if(p.push(h),_.successors(h).forEach(function(C){c.has(t,C)?t[C].onStack&&(f.lowlink=Math.min(f.lowlink,t[C].index)):(l(C),f.lowlink=Math.min(f.lowlink,t[C].lowlink))}),f.lowlink===f.index){var g,u=[];do{g=p.pop(),t[g].onStack=!1,u.push(g)}while(h!==g);d.push(u)}}return _.nodes().forEach(function(h){c.has(t,h)||l(h)}),d}},52180:(w,D,s)=>{var c=s(79138);function x(m){var p={},t={},d=[];if(c.each(m.sinks(),function l(h){if(c.has(t,h))throw new _;c.has(p,h)||(t[h]=!0,p[h]=!0,c.each(m.predecessors(h),l),delete t[h],d.push(h))}),c.size(p)!==m.nodeCount())throw new _;return d}function _(){}w.exports=x,x.CycleException=_,_.prototype=new Error},31919:(w,D,s)=>{var c=s(79138);function x(){this._arr=[],this._keyIndices={}}w.exports=x,x.prototype.size=function(){return this._arr.length},x.prototype.keys=function(){return this._arr.map(function(_){return _.key})},x.prototype.has=function(_){return c.has(this._keyIndices,_)},x.prototype.priority=function(_){var m=this._keyIndices[_];if(void 0!==m)return this._arr[m].priority},x.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},x.prototype.add=function(_,m){var p=this._keyIndices;if(_=String(_),!c.has(p,_)){var t=this._arr,d=t.length;return p[_]=d,t.push({key:_,priority:m}),this._decrease(d),!0}return!1},x.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var _=this._arr.pop();return delete this._keyIndices[_.key],this._heapify(0),_.key},x.prototype.decrease=function(_,m){var p=this._keyIndices[_];if(m>this._arr[p].priority)throw new Error("New priority is greater than current priority. Key: "+_+" Old: "+this._arr[p].priority+" New: "+m);this._arr[p].priority=m,this._decrease(p)},x.prototype._heapify=function(_){var m=this._arr,p=2*_,t=p+1,d=_;p>1].priority{"use strict";var c=s(79138);w.exports=p;var _="\0";function p(u){this._isDirected=!c.has(u,"directed")||u.directed,this._isMultigraph=!!c.has(u,"multigraph")&&u.multigraph,this._isCompound=!!c.has(u,"compound")&&u.compound,this._label=void 0,this._defaultNodeLabelFn=c.constant(void 0),this._defaultEdgeLabelFn=c.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[_]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function t(u,g){u[g]?u[g]++:u[g]=1}function d(u,g){--u[g]||delete u[g]}function l(u,g,C,L){var I=""+g,B=""+C;if(!u&&I>B){var M=I;I=B,B=M}return I+"\x01"+B+"\x01"+(c.isUndefined(L)?"\0":L)}function h(u,g,C,L){var I=""+g,B=""+C;if(!u&&I>B){var M=I;I=B,B=M}var R={v:I,w:B};return L&&(R.name=L),R}function f(u,g){return l(u,g.v,g.w,g.name)}p.prototype._nodeCount=0,p.prototype._edgeCount=0,p.prototype.isDirected=function(){return this._isDirected},p.prototype.isMultigraph=function(){return this._isMultigraph},p.prototype.isCompound=function(){return this._isCompound},p.prototype.setGraph=function(u){return this._label=u,this},p.prototype.graph=function(){return this._label},p.prototype.setDefaultNodeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultNodeLabelFn=u,this},p.prototype.nodeCount=function(){return this._nodeCount},p.prototype.nodes=function(){return c.keys(this._nodes)},p.prototype.sources=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._in[g])})},p.prototype.sinks=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._out[g])})},p.prototype.setNodes=function(u,g){var C=arguments,L=this;return c.each(u,function(I){C.length>1?L.setNode(I,g):L.setNode(I)}),this},p.prototype.setNode=function(u,g){return c.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=g),this):(this._nodes[u]=arguments.length>1?g:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=_,this._children[u]={},this._children[_][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},p.prototype.node=function(u){return this._nodes[u]},p.prototype.hasNode=function(u){return c.has(this._nodes,u)},p.prototype.removeNode=function(u){var g=this;if(c.has(this._nodes,u)){var C=function(L){g.removeEdge(g._edgeObjs[L])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],c.each(this.children(u),function(L){g.setParent(L)}),delete this._children[u]),c.each(c.keys(this._in[u]),C),delete this._in[u],delete this._preds[u],c.each(c.keys(this._out[u]),C),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},p.prototype.setParent=function(u,g){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.isUndefined(g))g=_;else{for(var C=g+="";!c.isUndefined(C);C=this.parent(C))if(C===u)throw new Error("Setting "+g+" as parent of "+u+" would create a cycle");this.setNode(g)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=g,this._children[g][u]=!0,this},p.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},p.prototype.parent=function(u){if(this._isCompound){var g=this._parent[u];if(g!==_)return g}},p.prototype.children=function(u){if(c.isUndefined(u)&&(u=_),this._isCompound){var g=this._children[u];if(g)return c.keys(g)}else{if(u===_)return this.nodes();if(this.hasNode(u))return[]}},p.prototype.predecessors=function(u){var g=this._preds[u];if(g)return c.keys(g)},p.prototype.successors=function(u){var g=this._sucs[u];if(g)return c.keys(g)},p.prototype.neighbors=function(u){var g=this.predecessors(u);if(g)return c.union(g,this.successors(u))},p.prototype.isLeaf=function(u){return 0===(this.isDirected()?this.successors(u):this.neighbors(u)).length},p.prototype.filterNodes=function(u){var g=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});g.setGraph(this.graph());var C=this;c.each(this._nodes,function(B,M){u(M)&&g.setNode(M,B)}),c.each(this._edgeObjs,function(B){g.hasNode(B.v)&&g.hasNode(B.w)&&g.setEdge(B,C.edge(B))});var L={};function I(B){var M=C.parent(B);return void 0===M||g.hasNode(M)?(L[B]=M,M):M in L?L[M]:I(M)}return this._isCompound&&c.each(g.nodes(),function(B){g.setParent(B,I(B))}),g},p.prototype.setDefaultEdgeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultEdgeLabelFn=u,this},p.prototype.edgeCount=function(){return this._edgeCount},p.prototype.edges=function(){return c.values(this._edgeObjs)},p.prototype.setPath=function(u,g){var C=this,L=arguments;return c.reduce(u,function(I,B){return L.length>1?C.setEdge(I,B,g):C.setEdge(I,B),B}),this},p.prototype.setEdge=function(){var u,g,C,L,I=!1,B=arguments[0];"object"==typeof B&&null!==B&&"v"in B?(u=B.v,g=B.w,C=B.name,2===arguments.length&&(L=arguments[1],I=!0)):(u=B,g=arguments[1],C=arguments[3],arguments.length>2&&(L=arguments[2],I=!0)),u=""+u,g=""+g,c.isUndefined(C)||(C=""+C);var M=l(this._isDirected,u,g,C);if(c.has(this._edgeLabels,M))return I&&(this._edgeLabels[M]=L),this;if(!c.isUndefined(C)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(g),this._edgeLabels[M]=I?L:this._defaultEdgeLabelFn(u,g,C);var R=h(this._isDirected,u,g,C);return u=R.v,g=R.w,Object.freeze(R),this._edgeObjs[M]=R,t(this._preds[g],u),t(this._sucs[u],g),this._in[g][M]=R,this._out[u][M]=R,this._edgeCount++,this},p.prototype.edge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return this._edgeLabels[L]},p.prototype.hasEdge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return c.has(this._edgeLabels,L)},p.prototype.removeEdge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C),I=this._edgeObjs[L];return I&&(u=I.v,g=I.w,delete this._edgeLabels[L],delete this._edgeObjs[L],d(this._preds[g],u),d(this._sucs[u],g),delete this._in[g][L],delete this._out[u][L],this._edgeCount--),this},p.prototype.inEdges=function(u,g){var C=this._in[u];if(C){var L=c.values(C);return g?c.filter(L,function(I){return I.v===g}):L}},p.prototype.outEdges=function(u,g){var C=this._out[u];if(C){var L=c.values(C);return g?c.filter(L,function(I){return I.w===g}):L}},p.prototype.nodeEdges=function(u,g){var C=this.inEdges(u,g);if(C)return C.concat(this.outEdges(u,g))}},51838:(w,D,s)=>{w.exports={Graph:s(66568),version:s(75089)}},21088:(w,D,s)=>{var c=s(79138),x=s(66568);function m(d){return c.map(d.nodes(),function(l){var h=d.node(l),f=d.parent(l),u={v:l};return c.isUndefined(h)||(u.value=h),c.isUndefined(f)||(u.parent=f),u})}function p(d){return c.map(d.edges(),function(l){var h=d.edge(l),f={v:l.v,w:l.w};return c.isUndefined(l.name)||(f.name=l.name),c.isUndefined(h)||(f.value=h),f})}w.exports={write:function _(d){var l={options:{directed:d.isDirected(),multigraph:d.isMultigraph(),compound:d.isCompound()},nodes:m(d),edges:p(d)};return c.isUndefined(d.graph())||(l.value=c.clone(d.graph())),l},read:function t(d){var l=new x(d.options).setGraph(d.value);return c.each(d.nodes,function(h){l.setNode(h.v,h.value),h.parent&&l.setParent(h.v,h.parent)}),c.each(d.edges,function(h){l.setEdge({v:h.v,w:h.w,name:h.name},h.value)}),l}}},79138:(w,D,s)=>{var c;try{c={clone:s(11094),constant:s(76684),each:s(35474),filter:s(35281),has:s(54842),isArray:s(21503),isEmpty:s(71973),isFunction:s(75946),isUndefined:s(34235),keys:s(118),map:s(19984),reduce:s(81337),size:s(55637),transform:s(89416),union:s(68921),values:s(90377)}}catch{}c||(c=window._),w.exports=c},75089:w=>{w.exports="2.1.8"},50623:w=>{"use strict";w.exports=function(s){return null!=s&&"object"==typeof s&&!1===Array.isArray(s)}},52872:w=>{var D=Object.prototype.toString;function s(h){return"function"==typeof h.constructor?h.constructor.name:null}w.exports=function(f){if(void 0===f)return"undefined";if(null===f)return"null";var u=typeof f;if("boolean"===u)return"boolean";if("string"===u)return"string";if("number"===u)return"number";if("symbol"===u)return"symbol";if("function"===u)return function p(h,f){return"GeneratorFunction"===s(h)}(f)?"generatorfunction":"function";if(function c(h){return Array.isArray?Array.isArray(h):h instanceof Array}(f))return"array";if(function l(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(f))return"buffer";if(function d(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(f){if(-1!==f.message.indexOf("callee"))return!0}return!1}(f))return"arguments";if(function _(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(f))return"date";if(function x(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(f))return"error";if(function m(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(f))return"regexp";switch(s(f)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function t(h){return"function"==typeof h.throw&&"function"==typeof h.return&&"function"==typeof h.next}(f))return"generator";switch(u=D.call(f)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return u.slice(8,-1).toLowerCase().replace(/\s/g,"")}},37244:(w,D,s)=>{var _=s(53436)(s(12119),"DataView");w.exports=_},54994:(w,D,s)=>{var c=s(64312),x=s(46421),_=s(15764),m=s(18685),p=s(26676);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var c=s(41840),x=s(34378),_=s(54981),m=s(67343),p=s(98895);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var _=s(53436)(s(12119),"Map");w.exports=_},99850:(w,D,s)=>{var c=s(10638),x=s(11184),_=s(70866),m=s(43771),p=s(51772);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var _=s(53436)(s(12119),"Promise");w.exports=_},46323:(w,D,s)=>{var _=s(53436)(s(12119),"Set");w.exports=_},58849:(w,D,s)=>{var c=s(99850),x=s(4600),_=s(31387);function m(p){var t=-1,d=null==p?0:p.length;for(this.__data__=new c;++t{var c=s(9215),x=s(13720),_=s(64410),m=s(45576),p=s(22247),t=s(41585);function d(l){var h=this.__data__=new c(l);this.size=h.size}d.prototype.clear=x,d.prototype.delete=_,d.prototype.get=m,d.prototype.has=p,d.prototype.set=t,w.exports=d},60443:(w,D,s)=>{var c=s(12119);w.exports=c.Symbol},73457:(w,D,s)=>{var c=s(12119);w.exports=c.Uint8Array},24243:(w,D,s)=>{var _=s(53436)(s(12119),"WeakMap");w.exports=_},26999:w=>{w.exports=function D(s,c,x){switch(x.length){case 0:return s.call(c);case 1:return s.call(c,x[0]);case 2:return s.call(c,x[0],x[1]);case 3:return s.call(c,x[0],x[1],x[2])}return s.apply(c,x)}},96837:w=>{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length;++x<_&&!1!==c(s[x],x,s););return s}},69779:w=>{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length,m=0,p=[];++x<_;){var t=s[x];c(t,x,s)&&(p[m++]=t)}return p}},61253:(w,D,s)=>{var c=s(14164);w.exports=function x(_,m){return!(null==_||!_.length)&&c(_,m,0)>-1}},37609:w=>{w.exports=function D(s,c,x){for(var _=-1,m=null==s?0:s.length;++_{var c=s(85334),x=s(77151),_=s(21503),m=s(80891),p=s(58442),t=s(48159),l=Object.prototype.hasOwnProperty;w.exports=function h(f,u){var g=_(f),C=!g&&x(f),L=!g&&!C&&m(f),I=!g&&!C&&!L&&t(f),B=g||C||L||I,M=B?c(f.length,String):[],R=M.length;for(var Z in f)(u||l.call(f,Z))&&(!B||!("length"==Z||L&&("offset"==Z||"parent"==Z)||I&&("buffer"==Z||"byteLength"==Z||"byteOffset"==Z)||p(Z,R)))&&M.push(Z);return M}},84633:w=>{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length,m=Array(_);++x<_;)m[x]=c(s[x],x,s);return m}},85059:w=>{w.exports=function D(s,c){for(var x=-1,_=c.length,m=s.length;++x<_;)s[m+x]=c[x];return s}},8745:w=>{w.exports=function D(s,c,x,_){var m=-1,p=null==s?0:s.length;for(_&&p&&(x=s[++m]);++m{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length;++x<_;)if(c(s[x],x,s))return!0;return!1}},75481:(w,D,s)=>{var x=s(11847)("length");w.exports=x},49276:(w,D,s)=>{var c=s(85683),x=s(20217);w.exports=function _(m,p,t){(void 0!==t&&!x(m[p],t)||void 0===t&&!(p in m))&&c(m,p,t)}},89719:(w,D,s)=>{var c=s(85683),x=s(20217),m=Object.prototype.hasOwnProperty;w.exports=function p(t,d,l){var h=t[d];(!m.call(t,d)||!x(h,l)||void 0===l&&!(d in t))&&c(t,d,l)}},43503:(w,D,s)=>{var c=s(20217);w.exports=function x(_,m){for(var p=_.length;p--;)if(c(_[p][0],m))return p;return-1}},94121:(w,D,s)=>{var c=s(31989),x=s(118);w.exports=function _(m,p){return m&&c(p,x(p),m)}},99287:(w,D,s)=>{var c=s(31989),x=s(16555);w.exports=function _(m,p){return m&&c(p,x(p),m)}},85683:(w,D,s)=>{var c=s(56713);w.exports=function x(_,m,p){"__proto__"==m&&c?c(_,m,{configurable:!0,enumerable:!0,value:p,writable:!0}):_[m]=p}},44462:(w,D,s)=>{var c=s(2858),x=s(96837),_=s(89719),m=s(94121),p=s(99287),t=s(19292),d=s(99454),l=s(84444),h=s(59905),f=s(47597),u=s(6967),g=s(28794),C=s(76782),L=s(37878),I=s(4264),B=s(21503),M=s(80891),R=s(13222),Z=s(25940),H=s(90799),G=s(118),tt=s(16555),W="[object Arguments]",rt="[object Function]",ut="[object Object]",Ht={};Ht[W]=Ht["[object Array]"]=Ht["[object ArrayBuffer]"]=Ht["[object DataView]"]=Ht["[object Boolean]"]=Ht["[object Date]"]=Ht["[object Float32Array]"]=Ht["[object Float64Array]"]=Ht["[object Int8Array]"]=Ht["[object Int16Array]"]=Ht["[object Int32Array]"]=Ht["[object Map]"]=Ht["[object Number]"]=Ht[ut]=Ht["[object RegExp]"]=Ht["[object Set]"]=Ht["[object String]"]=Ht["[object Symbol]"]=Ht["[object Uint8Array]"]=Ht["[object Uint8ClampedArray]"]=Ht["[object Uint16Array]"]=Ht["[object Uint32Array]"]=!0,Ht["[object Error]"]=Ht[rt]=Ht["[object WeakMap]"]=!1,w.exports=function Zt(Kt,xe,Te,Le,Oe,Ee){var He,Ge=1&xe,an=2&xe,be=4&xe;if(Te&&(He=Oe?Te(Kt,Le,Oe,Ee):Te(Kt)),void 0!==He)return He;if(!Z(Kt))return Kt;var ln=B(Kt);if(ln){if(He=C(Kt),!Ge)return d(Kt,He)}else{var Tt=g(Kt),Wt=Tt==rt||"[object GeneratorFunction]"==Tt;if(M(Kt))return t(Kt,Ge);if(Tt==ut||Tt==W||Wt&&!Oe){if(He=an||Wt?{}:I(Kt),!Ge)return an?h(Kt,p(He,Kt)):l(Kt,m(He,Kt))}else{if(!Ht[Tt])return Oe?Kt:{};He=L(Kt,Tt,Ge)}}Ee||(Ee=new c);var ce=Ee.get(Kt);if(ce)return ce;Ee.set(Kt,He),H(Kt)?Kt.forEach(function(Ze){He.add(Zt(Ze,xe,Te,Ze,Kt,Ee))}):R(Kt)&&Kt.forEach(function(Ze,Ye){He.set(Ye,Zt(Ze,xe,Te,Ye,Kt,Ee))});var ee=ln?void 0:(be?an?u:f:an?tt:G)(Kt);return x(ee||Kt,function(Ze,Ye){ee&&(Ze=Kt[Ye=Ze]),_(He,Ye,Zt(Ze,xe,Te,Ye,Kt,Ee))}),He}},78858:(w,D,s)=>{var c=s(25940),x=Object.create,_=function(){function m(){}return function(p){if(!c(p))return{};if(x)return x(p);m.prototype=p;var t=new m;return m.prototype=void 0,t}}();w.exports=_},43132:(w,D,s)=>{var c=s(45184),_=s(16539)(c);w.exports=_},67308:(w,D,s)=>{var c=s(44129);w.exports=function x(_,m,p){for(var t=-1,d=_.length;++t{var c=s(43132);w.exports=function x(_,m){var p=[];return c(_,function(t,d,l){m(t,d,l)&&p.push(t)}),p}},65317:w=>{w.exports=function D(s,c,x,_){for(var m=s.length,p=x+(_?1:-1);_?p--:++p{var c=s(85059),x=s(75039);w.exports=function _(m,p,t,d,l){var h=-1,f=m.length;for(t||(t=x),l||(l=[]);++h0&&t(u)?p>1?_(u,p-1,t,d,l):c(l,u):d||(l[l.length]=u)}return l}},30755:(w,D,s)=>{var x=s(40456)();w.exports=x},45184:(w,D,s)=>{var c=s(30755),x=s(118);w.exports=function _(m,p){return m&&c(m,p,x)}},15456:(w,D,s)=>{var c=s(65456),x=s(68533);w.exports=function _(m,p){for(var t=0,d=(p=c(p,m)).length;null!=m&&t{var c=s(85059),x=s(21503);w.exports=function _(m,p,t){var d=p(m);return x(m)?d:c(d,t(m))}},93337:(w,D,s)=>{var c=s(60443),x=s(21318),_=s(92902),t=c?c.toStringTag:void 0;w.exports=function d(l){return null==l?void 0===l?"[object Undefined]":"[object Null]":t&&t in Object(l)?x(l):_(l)}},31100:w=>{w.exports=function D(s,c){return s>c}},84781:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x,_){return null!=x&&s.call(x,_)}},69989:w=>{w.exports=function D(s,c){return null!=s&&c in Object(s)}},14164:(w,D,s)=>{var c=s(65317),x=s(70968),_=s(24977);w.exports=function m(p,t,d){return t==t?_(p,t,d):c(p,x,d)}},60186:(w,D,s)=>{var c=s(93337),x=s(72671);w.exports=function m(p){return x(p)&&"[object Arguments]"==c(p)}},85740:(w,D,s)=>{var c=s(58325),x=s(72671);w.exports=function _(m,p,t,d,l){return m===p||(null==m||null==p||!x(m)&&!x(p)?m!=m&&p!=p:c(m,p,t,d,_,l))}},58325:(w,D,s)=>{var c=s(2858),x=s(63914),_=s(78583),m=s(32286),p=s(28794),t=s(21503),d=s(80891),l=s(48159),f="[object Arguments]",u="[object Array]",g="[object Object]",L=Object.prototype.hasOwnProperty;w.exports=function I(B,M,R,Z,H,G){var tt=t(B),K=t(M),st=tt?u:p(B),j=K?u:p(M),W=(st=st==f?g:st)==g,et=(j=j==f?g:j)==g,at=st==j;if(at&&d(B)){if(!d(M))return!1;tt=!0,W=!1}if(at&&!W)return G||(G=new c),tt||l(B)?x(B,M,R,Z,H,G):_(B,M,st,R,Z,H,G);if(!(1&R)){var Y=W&&L.call(B,"__wrapped__"),nt=et&&L.call(M,"__wrapped__");if(Y||nt){var rt=Y?B.value():B,q=nt?M.value():M;return G||(G=new c),H(rt,q,R,Z,G)}}return!!at&&(G||(G=new c),m(B,M,R,Z,H,G))}},97021:(w,D,s)=>{var c=s(28794),x=s(72671);w.exports=function m(p){return x(p)&&"[object Map]"==c(p)}},40431:(w,D,s)=>{var c=s(2858),x=s(85740);w.exports=function p(t,d,l,h){var f=l.length,u=f,g=!h;if(null==t)return!u;for(t=Object(t);f--;){var C=l[f];if(g&&C[2]?C[1]!==t[C[0]]:!(C[0]in t))return!1}for(;++f{w.exports=function D(s){return s!=s}},37304:(w,D,s)=>{var c=s(75946),x=s(91943),_=s(25940),m=s(52827),t=/^\[object .+?Constructor\]$/,u=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");w.exports=function g(C){return!(!_(C)||x(C))&&(c(C)?u:t).test(m(C))}},771:(w,D,s)=>{var c=s(28794),x=s(72671);w.exports=function m(p){return x(p)&&"[object Set]"==c(p)}},1083:(w,D,s)=>{var c=s(93337),x=s(96231),_=s(72671),at={};at["[object Float32Array]"]=at["[object Float64Array]"]=at["[object Int8Array]"]=at["[object Int16Array]"]=at["[object Int32Array]"]=at["[object Uint8Array]"]=at["[object Uint8ClampedArray]"]=at["[object Uint16Array]"]=at["[object Uint32Array]"]=!0,at["[object Arguments]"]=at["[object Array]"]=at["[object ArrayBuffer]"]=at["[object Boolean]"]=at["[object DataView]"]=at["[object Date]"]=at["[object Error]"]=at["[object Function]"]=at["[object Map]"]=at["[object Number]"]=at["[object Object]"]=at["[object RegExp]"]=at["[object Set]"]=at["[object String]"]=at["[object WeakMap]"]=!1,w.exports=function Y(nt){return _(nt)&&x(nt.length)&&!!at[c(nt)]}},96517:(w,D,s)=>{var c=s(98133),x=s(9458),_=s(32608),m=s(21503),p=s(87495);w.exports=function t(d){return"function"==typeof d?d:null==d?_:"object"==typeof d?m(d)?x(d[0],d[1]):c(d):p(d)}},81172:(w,D,s)=>{var c=s(45488),x=s(85491),m=Object.prototype.hasOwnProperty;w.exports=function p(t){if(!c(t))return x(t);var d=[];for(var l in Object(t))m.call(t,l)&&"constructor"!=l&&d.push(l);return d}},92809:(w,D,s)=>{var c=s(25940),x=s(45488),_=s(32158),p=Object.prototype.hasOwnProperty;w.exports=function t(d){if(!c(d))return _(d);var l=x(d),h=[];for(var f in d)"constructor"==f&&(l||!p.call(d,f))||h.push(f);return h}},99069:w=>{w.exports=function D(s,c){return s{var c=s(43132),x=s(56507);w.exports=function _(m,p){var t=-1,d=x(m)?Array(m.length):[];return c(m,function(l,h,f){d[++t]=p(l,h,f)}),d}},98133:(w,D,s)=>{var c=s(40431),x=s(22379),_=s(642);w.exports=function m(p){var t=x(p);return 1==t.length&&t[0][2]?_(t[0][0],t[0][1]):function(d){return d===p||c(d,p,t)}}},9458:(w,D,s)=>{var c=s(85740),x=s(8817),_=s(11172),m=s(45352),p=s(22442),t=s(642),d=s(68533);w.exports=function f(u,g){return m(u)&&p(g)?t(d(u),g):function(C){var L=x(C,u);return void 0===L&&L===g?_(C,u):c(g,L,3)}}},73842:(w,D,s)=>{var c=s(2858),x=s(49276),_=s(30755),m=s(33675),p=s(25940),t=s(16555),d=s(99351);w.exports=function l(h,f,u,g,C){h!==f&&_(f,function(L,I){if(C||(C=new c),p(L))m(h,f,I,u,l,g,C);else{var B=g?g(d(h,I),L,I+"",h,f,C):void 0;void 0===B&&(B=L),x(h,I,B)}},t)}},33675:(w,D,s)=>{var c=s(49276),x=s(19292),_=s(65208),m=s(99454),p=s(4264),t=s(77151),d=s(21503),l=s(21330),h=s(80891),f=s(75946),u=s(25940),g=s(97614),C=s(48159),L=s(99351),I=s(8067);w.exports=function B(M,R,Z,H,G,tt,K){var st=L(M,Z),j=L(R,Z),W=K.get(j);if(W)c(M,Z,W);else{var et=tt?tt(st,j,Z+"",M,R,K):void 0,at=void 0===et;if(at){var Y=d(j),nt=!Y&&h(j),rt=!Y&&!nt&&C(j);et=j,Y||nt||rt?d(st)?et=st:l(st)?et=m(st):nt?(at=!1,et=x(j,!0)):rt?(at=!1,et=_(j,!0)):et=[]:g(j)||t(j)?(et=st,t(st)?et=I(st):(!u(st)||f(st))&&(et=p(j))):at=!1}at&&(K.set(j,et),G(et,j,H,tt,K),K.delete(j)),c(M,Z,et)}}},6119:(w,D,s)=>{var c=s(84633),x=s(15456),_=s(96517),m=s(92046),p=s(42061),t=s(85647),d=s(41215),l=s(32608),h=s(21503);w.exports=function f(u,g,C){g=g.length?c(g,function(B){return h(B)?function(M){return x(M,1===B.length?B[0]:B)}:B}):[l];var L=-1;g=c(g,t(_));var I=m(u,function(B,M,R){return{criteria:c(g,function(H){return H(B)}),index:++L,value:B}});return p(I,function(B,M){return d(B,M,C)})}},83021:(w,D,s)=>{var c=s(95495),x=s(11172);w.exports=function _(m,p){return c(m,p,function(t,d){return x(m,d)})}},95495:(w,D,s)=>{var c=s(15456),x=s(55963),_=s(65456);w.exports=function m(p,t,d){for(var l=-1,h=t.length,f={};++l{w.exports=function D(s){return function(c){return c?.[s]}}},39222:(w,D,s)=>{var c=s(15456);w.exports=function x(_){return function(m){return c(m,_)}}},16307:w=>{var D=Math.ceil,s=Math.max;w.exports=function c(x,_,m,p){for(var t=-1,d=s(D((_-x)/(m||1)),0),l=Array(d);d--;)l[p?d:++t]=x,x+=m;return l}},13570:w=>{w.exports=function D(s,c,x,_,m){return m(s,function(p,t,d){x=_?(_=!1,p):c(x,p,t,d)}),x}},23269:(w,D,s)=>{var c=s(32608),x=s(53983),_=s(72185);w.exports=function m(p,t){return _(x(p,t,c),p+"")}},55963:(w,D,s)=>{var c=s(89719),x=s(65456),_=s(58442),m=s(25940),p=s(68533);w.exports=function t(d,l,h,f){if(!m(d))return d;for(var u=-1,g=(l=x(l,d)).length,C=g-1,L=d;null!=L&&++u{var c=s(76684),x=s(56713),_=s(32608);w.exports=x?function(p,t){return x(p,"toString",{configurable:!0,enumerable:!1,value:c(t),writable:!0})}:_},42061:w=>{w.exports=function D(s,c){var x=s.length;for(s.sort(c);x--;)s[x]=s[x].value;return s}},85334:w=>{w.exports=function D(s,c){for(var x=-1,_=Array(s);++x{var c=s(60443),x=s(84633),_=s(21503),m=s(44129),t=c?c.prototype:void 0,d=t?t.toString:void 0;w.exports=function l(h){if("string"==typeof h)return h;if(_(h))return x(h,l)+"";if(m(h))return d?d.call(h):"";var f=h+"";return"0"==f&&1/h==-1/0?"-0":f}},83348:(w,D,s)=>{var c=s(42760),x=/^\s+/;w.exports=function _(m){return m&&m.slice(0,c(m)+1).replace(x,"")}},85647:w=>{w.exports=function D(s){return function(c){return s(c)}}},80707:(w,D,s)=>{var c=s(58849),x=s(61253),_=s(37609),m=s(25972),p=s(14575),t=s(24174);w.exports=function l(h,f,u){var g=-1,C=x,L=h.length,I=!0,B=[],M=B;if(u)I=!1,C=_;else if(L>=200){var R=f?null:p(h);if(R)return t(R);I=!1,C=m,M=new c}else M=f?[]:B;t:for(;++g{var c=s(84633);w.exports=function x(_,m){return c(m,function(p){return _[p]})}},38645:w=>{w.exports=function D(s,c,x){for(var _=-1,m=s.length,p=c.length,t={};++_{w.exports=function D(s,c){return s.has(c)}},21481:(w,D,s)=>{var c=s(32608);w.exports=function x(_){return"function"==typeof _?_:c}},65456:(w,D,s)=>{var c=s(21503),x=s(45352),_=s(32855),m=s(73943);w.exports=function p(t,d){return c(t)?t:x(t,d)?[t]:_(m(t))}},43362:(w,D,s)=>{var c=s(73457);w.exports=function x(_){var m=new _.constructor(_.byteLength);return new c(m).set(new c(_)),m}},19292:(w,D,s)=>{w=s.nmd(w);var c=s(12119),x=D&&!D.nodeType&&D,_=x&&w&&!w.nodeType&&w,p=_&&_.exports===x?c.Buffer:void 0,t=p?p.allocUnsafe:void 0;w.exports=function d(l,h){if(h)return l.slice();var f=l.length,u=t?t(f):new l.constructor(f);return l.copy(u),u}},17e3:(w,D,s)=>{var c=s(43362);w.exports=function x(_,m){var p=m?c(_.buffer):_.buffer;return new _.constructor(p,_.byteOffset,_.byteLength)}},74098:w=>{var D=/\w*$/;w.exports=function s(c){var x=new c.constructor(c.source,D.exec(c));return x.lastIndex=c.lastIndex,x}},62533:(w,D,s)=>{var c=s(60443),x=c?c.prototype:void 0,_=x?x.valueOf:void 0;w.exports=function m(p){return _?Object(_.call(p)):{}}},65208:(w,D,s)=>{var c=s(43362);w.exports=function x(_,m){var p=m?c(_.buffer):_.buffer;return new _.constructor(p,_.byteOffset,_.length)}},13443:(w,D,s)=>{var c=s(44129);w.exports=function x(_,m){if(_!==m){var p=void 0!==_,t=null===_,d=_==_,l=c(_),h=void 0!==m,f=null===m,u=m==m,g=c(m);if(!f&&!g&&!l&&_>m||l&&h&&u&&!f&&!g||t&&h&&u||!p&&u||!d)return 1;if(!t&&!l&&!g&&_{var c=s(13443);w.exports=function x(_,m,p){for(var t=-1,d=_.criteria,l=m.criteria,h=d.length,f=p.length;++t=f?u:u*("desc"==p[t]?-1:1)}return _.index-m.index}},99454:w=>{w.exports=function D(s,c){var x=-1,_=s.length;for(c||(c=Array(_));++x<_;)c[x]=s[x];return c}},31989:(w,D,s)=>{var c=s(89719),x=s(85683);w.exports=function _(m,p,t,d){var l=!t;t||(t={});for(var h=-1,f=p.length;++h{var c=s(31989),x=s(39383);w.exports=function _(m,p){return c(m,x(m),p)}},59905:(w,D,s)=>{var c=s(31989),x=s(53051);w.exports=function _(m,p){return c(m,x(m),p)}},24610:(w,D,s)=>{var c=s(12119);w.exports=c["__core-js_shared__"]},84944:(w,D,s)=>{var c=s(23269),x=s(93342);w.exports=function _(m){return c(function(p,t){var d=-1,l=t.length,h=l>1?t[l-1]:void 0,f=l>2?t[2]:void 0;for(h=m.length>3&&"function"==typeof h?(l--,h):void 0,f&&x(t[0],t[1],f)&&(h=l<3?void 0:h,l=1),p=Object(p);++d{var c=s(56507);w.exports=function x(_,m){return function(p,t){if(null==p)return p;if(!c(p))return _(p,t);for(var d=p.length,l=m?d:-1,h=Object(p);(m?l--:++l{w.exports=function D(s){return function(c,x,_){for(var m=-1,p=Object(c),t=_(c),d=t.length;d--;){var l=t[s?d:++m];if(!1===x(p[l],l,p))break}return c}}},24653:(w,D,s)=>{var c=s(96517),x=s(56507),_=s(118);w.exports=function m(p){return function(t,d,l){var h=Object(t);if(!x(t)){var f=c(d,3);t=_(t),d=function(g){return f(h[g],g,h)}}var u=p(t,d,l);return u>-1?h[f?t[u]:u]:void 0}}},97509:(w,D,s)=>{var c=s(16307),x=s(93342),_=s(12232);w.exports=function m(p){return function(t,d,l){return l&&"number"!=typeof l&&x(t,d,l)&&(d=l=void 0),t=_(t),void 0===d?(d=t,t=0):d=_(d),l=void 0===l?t{var c=s(46323),x=s(12552),_=s(24174),p=c&&1/_(new c([,-0]))[1]==1/0?function(t){return new c(t)}:x;w.exports=p},56713:(w,D,s)=>{var c=s(53436),x=function(){try{var _=c(Object,"defineProperty");return _({},"",{}),_}catch{}}();w.exports=x},63914:(w,D,s)=>{var c=s(58849),x=s(79503),_=s(25972);w.exports=function t(d,l,h,f,u,g){var C=1&h,L=d.length,I=l.length;if(L!=I&&!(C&&I>L))return!1;var B=g.get(d),M=g.get(l);if(B&&M)return B==l&&M==d;var R=-1,Z=!0,H=2&h?new c:void 0;for(g.set(d,l),g.set(l,d);++R{var c=s(60443),x=s(73457),_=s(20217),m=s(63914),p=s(83205),t=s(24174),H=c?c.prototype:void 0,G=H?H.valueOf:void 0;w.exports=function tt(K,st,j,W,et,at,Y){switch(j){case"[object DataView]":if(K.byteLength!=st.byteLength||K.byteOffset!=st.byteOffset)return!1;K=K.buffer,st=st.buffer;case"[object ArrayBuffer]":return!(K.byteLength!=st.byteLength||!at(new x(K),new x(st)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _(+K,+st);case"[object Error]":return K.name==st.name&&K.message==st.message;case"[object RegExp]":case"[object String]":return K==st+"";case"[object Map]":var nt=p;case"[object Set]":if(nt||(nt=t),K.size!=st.size&&!(1&W))return!1;var q=Y.get(K);if(q)return q==st;W|=2,Y.set(K,st);var F=m(nt(K),nt(st),W,et,at,Y);return Y.delete(K),F;case"[object Symbol]":if(G)return G.call(K)==G.call(st)}return!1}},32286:(w,D,s)=>{var c=s(47597),m=Object.prototype.hasOwnProperty;w.exports=function p(t,d,l,h,f,u){var g=1&l,C=c(t),L=C.length;if(L!=c(d).length&&!g)return!1;for(var M=L;M--;){var R=C[M];if(!(g?R in d:m.call(d,R)))return!1}var Z=u.get(t),H=u.get(d);if(Z&&H)return Z==d&&H==t;var G=!0;u.set(t,d),u.set(d,t);for(var tt=g;++M{var c=s(22274),x=s(53983),_=s(72185);w.exports=function m(p){return _(x(p,void 0,c),p+"")}},79122:w=>{var D="object"==typeof global&&global&&global.Object===Object&&global;w.exports=D},47597:(w,D,s)=>{var c=s(38247),x=s(39383),_=s(118);w.exports=function m(p){return c(p,_,x)}},6967:(w,D,s)=>{var c=s(38247),x=s(53051),_=s(16555);w.exports=function m(p){return c(p,_,x)}},54537:(w,D,s)=>{var c=s(23819);w.exports=function x(_,m){var p=_.__data__;return c(m)?p["string"==typeof m?"string":"hash"]:p.map}},22379:(w,D,s)=>{var c=s(22442),x=s(118);w.exports=function _(m){for(var p=x(m),t=p.length;t--;){var d=p[t],l=m[d];p[t]=[d,l,c(l)]}return p}},53436:(w,D,s)=>{var c=s(37304),x=s(51990);w.exports=function _(m,p){var t=x(m,p);return c(t)?t:void 0}},29519:(w,D,s)=>{var x=s(69385)(Object.getPrototypeOf,Object);w.exports=x},21318:(w,D,s)=>{var c=s(60443),x=Object.prototype,_=x.hasOwnProperty,m=x.toString,p=c?c.toStringTag:void 0;w.exports=function t(d){var l=_.call(d,p),h=d[p];try{d[p]=void 0;var f=!0}catch{}var u=m.call(d);return f&&(l?d[p]=h:delete d[p]),u}},39383:(w,D,s)=>{var c=s(69779),x=s(49975),m=Object.prototype.propertyIsEnumerable,p=Object.getOwnPropertySymbols;w.exports=p?function(d){return null==d?[]:(d=Object(d),c(p(d),function(l){return m.call(d,l)}))}:x},53051:(w,D,s)=>{var c=s(85059),x=s(29519),_=s(39383),m=s(49975);w.exports=Object.getOwnPropertySymbols?function(d){for(var l=[];d;)c(l,_(d)),d=x(d);return l}:m},28794:(w,D,s)=>{var c=s(37244),x=s(51501),_=s(44267),m=s(46323),p=s(24243),t=s(93337),d=s(52827),l="[object Map]",f="[object Promise]",u="[object Set]",g="[object WeakMap]",C="[object DataView]",L=d(c),I=d(x),B=d(_),M=d(m),R=d(p),Z=t;(c&&Z(new c(new ArrayBuffer(1)))!=C||x&&Z(new x)!=l||_&&Z(_.resolve())!=f||m&&Z(new m)!=u||p&&Z(new p)!=g)&&(Z=function(H){var G=t(H),tt="[object Object]"==G?H.constructor:void 0,K=tt?d(tt):"";if(K)switch(K){case L:return C;case I:return l;case B:return f;case M:return u;case R:return g}return G}),w.exports=Z},51990:w=>{w.exports=function D(s,c){return s?.[c]}},47283:(w,D,s)=>{var c=s(65456),x=s(77151),_=s(21503),m=s(58442),p=s(96231),t=s(68533);w.exports=function d(l,h,f){for(var u=-1,g=(h=c(h,l)).length,C=!1;++u{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");w.exports=function d(l){return t.test(l)}},64312:(w,D,s)=>{var c=s(60862);w.exports=function x(){this.__data__=c?c(null):{},this.size=0}},46421:w=>{w.exports=function D(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}},15764:(w,D,s)=>{var c=s(60862),m=Object.prototype.hasOwnProperty;w.exports=function p(t){var d=this.__data__;if(c){var l=d[t];return"__lodash_hash_undefined__"===l?void 0:l}return m.call(d,t)?d[t]:void 0}},18685:(w,D,s)=>{var c=s(60862),_=Object.prototype.hasOwnProperty;w.exports=function m(p){var t=this.__data__;return c?void 0!==t[p]:_.call(t,p)}},26676:(w,D,s)=>{var c=s(60862);w.exports=function _(m,p){var t=this.__data__;return this.size+=this.has(m)?0:1,t[m]=c&&void 0===p?"__lodash_hash_undefined__":p,this}},76782:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x){var _=x.length,m=new x.constructor(_);return _&&"string"==typeof x[0]&&s.call(x,"index")&&(m.index=x.index,m.input=x.input),m}},37878:(w,D,s)=>{var c=s(43362),x=s(17e3),_=s(74098),m=s(62533),p=s(65208);w.exports=function j(W,et,at){var Y=W.constructor;switch(et){case"[object ArrayBuffer]":return c(W);case"[object Boolean]":case"[object Date]":return new Y(+W);case"[object DataView]":return x(W,at);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return p(W,at);case"[object Map]":case"[object Set]":return new Y;case"[object Number]":case"[object String]":return new Y(W);case"[object RegExp]":return _(W);case"[object Symbol]":return m(W)}}},4264:(w,D,s)=>{var c=s(78858),x=s(29519),_=s(45488);w.exports=function m(p){return"function"!=typeof p.constructor||_(p)?{}:c(x(p))}},75039:(w,D,s)=>{var c=s(60443),x=s(77151),_=s(21503),m=c?c.isConcatSpreadable:void 0;w.exports=function p(t){return _(t)||x(t)||!!(m&&t&&t[m])}},58442:w=>{var s=/^(?:0|[1-9]\d*)$/;w.exports=function c(x,_){var m=typeof x;return!!(_=_??9007199254740991)&&("number"==m||"symbol"!=m&&s.test(x))&&x>-1&&x%1==0&&x<_}},93342:(w,D,s)=>{var c=s(20217),x=s(56507),_=s(58442),m=s(25940);w.exports=function p(t,d,l){if(!m(l))return!1;var h=typeof d;return!!("number"==h?x(l)&&_(d,l.length):"string"==h&&d in l)&&c(l[d],t)}},45352:(w,D,s)=>{var c=s(21503),x=s(44129),_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m=/^\w*$/;w.exports=function p(t,d){if(c(t))return!1;var l=typeof t;return!("number"!=l&&"symbol"!=l&&"boolean"!=l&&null!=t&&!x(t))||m.test(t)||!_.test(t)||null!=d&&t in Object(d)}},23819:w=>{w.exports=function D(s){var c=typeof s;return"string"==c||"number"==c||"symbol"==c||"boolean"==c?"__proto__"!==s:null===s}},91943:(w,D,s)=>{var m,c=s(24610),x=(m=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"";w.exports=function _(m){return!!x&&x in m}},45488:w=>{var D=Object.prototype;w.exports=function s(c){var x=c&&c.constructor;return c===("function"==typeof x&&x.prototype||D)}},22442:(w,D,s)=>{var c=s(25940);w.exports=function x(_){return _==_&&!c(_)}},41840:w=>{w.exports=function D(){this.__data__=[],this.size=0}},34378:(w,D,s)=>{var c=s(43503),_=Array.prototype.splice;w.exports=function m(p){var t=this.__data__,d=c(t,p);return!(d<0||(d==t.length-1?t.pop():_.call(t,d,1),--this.size,0))}},54981:(w,D,s)=>{var c=s(43503);w.exports=function x(_){var m=this.__data__,p=c(m,_);return p<0?void 0:m[p][1]}},67343:(w,D,s)=>{var c=s(43503);w.exports=function x(_){return c(this.__data__,_)>-1}},98895:(w,D,s)=>{var c=s(43503);w.exports=function x(_,m){var p=this.__data__,t=c(p,_);return t<0?(++this.size,p.push([_,m])):p[t][1]=m,this}},10638:(w,D,s)=>{var c=s(54994),x=s(9215),_=s(51501);w.exports=function m(){this.size=0,this.__data__={hash:new c,map:new(_||x),string:new c}}},11184:(w,D,s)=>{var c=s(54537);w.exports=function x(_){var m=c(this,_).delete(_);return this.size-=m?1:0,m}},70866:(w,D,s)=>{var c=s(54537);w.exports=function x(_){return c(this,_).get(_)}},43771:(w,D,s)=>{var c=s(54537);w.exports=function x(_){return c(this,_).has(_)}},51772:(w,D,s)=>{var c=s(54537);w.exports=function x(_,m){var p=c(this,_),t=p.size;return p.set(_,m),this.size+=p.size==t?0:1,this}},83205:w=>{w.exports=function D(s){var c=-1,x=Array(s.size);return s.forEach(function(_,m){x[++c]=[m,_]}),x}},642:w=>{w.exports=function D(s,c){return function(x){return null!=x&&x[s]===c&&(void 0!==c||s in Object(x))}}},15144:(w,D,s)=>{var c=s(30535);w.exports=function _(m){var p=c(m,function(d){return 500===t.size&&t.clear(),d}),t=p.cache;return p}},60862:(w,D,s)=>{var x=s(53436)(Object,"create");w.exports=x},85491:(w,D,s)=>{var x=s(69385)(Object.keys,Object);w.exports=x},32158:w=>{w.exports=function D(s){var c=[];if(null!=s)for(var x in Object(s))c.push(x);return c}},73597:(w,D,s)=>{w=s.nmd(w);var c=s(79122),x=D&&!D.nodeType&&D,_=x&&w&&!w.nodeType&&w,p=_&&_.exports===x&&c.process,t=function(){try{return _&&_.require&&_.require("util").types||p&&p.binding&&p.binding("util")}catch{}}();w.exports=t},92902:w=>{var s=Object.prototype.toString;w.exports=function c(x){return s.call(x)}},69385:w=>{w.exports=function D(s,c){return function(x){return s(c(x))}}},53983:(w,D,s)=>{var c=s(26999),x=Math.max;w.exports=function _(m,p,t){return p=x(void 0===p?m.length-1:p,0),function(){for(var d=arguments,l=-1,h=x(d.length-p,0),f=Array(h);++l{var c=s(79122),x="object"==typeof self&&self&&self.Object===Object&&self,_=c||x||Function("return this")();w.exports=_},99351:w=>{w.exports=function D(s,c){if(("constructor"!==c||"function"!=typeof s[c])&&"__proto__"!=c)return s[c]}},4600:w=>{w.exports=function s(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},31387:w=>{w.exports=function D(s){return this.__data__.has(s)}},24174:w=>{w.exports=function D(s){var c=-1,x=Array(s.size);return s.forEach(function(_){x[++c]=_}),x}},72185:(w,D,s)=>{var c=s(69510),_=s(10029)(c);w.exports=_},10029:w=>{var c=Date.now;w.exports=function x(_){var m=0,p=0;return function(){var t=c(),d=16-(t-p);if(p=t,d>0){if(++m>=800)return arguments[0]}else m=0;return _.apply(void 0,arguments)}}},13720:(w,D,s)=>{var c=s(9215);w.exports=function x(){this.__data__=new c,this.size=0}},64410:w=>{w.exports=function D(s){var c=this.__data__,x=c.delete(s);return this.size=c.size,x}},45576:w=>{w.exports=function D(s){return this.__data__.get(s)}},22247:w=>{w.exports=function D(s){return this.__data__.has(s)}},41585:(w,D,s)=>{var c=s(9215),x=s(51501),_=s(99850);w.exports=function p(t,d){var l=this.__data__;if(l instanceof c){var h=l.__data__;if(!x||h.length<199)return h.push([t,d]),this.size=++l.size,this;l=this.__data__=new _(h)}return l.set(t,d),this.size=l.size,this}},24977:w=>{w.exports=function D(s,c,x){for(var _=x-1,m=s.length;++_{var c=s(75481),x=s(77609),_=s(81149);w.exports=function m(p){return x(p)?_(p):c(p)}},32855:(w,D,s)=>{var c=s(15144),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,m=c(function(p){var t=[];return 46===p.charCodeAt(0)&&t.push(""),p.replace(x,function(d,l,h,f){t.push(h?f.replace(_,"$1"):l||d)}),t});w.exports=m},68533:(w,D,s)=>{var c=s(44129);w.exports=function _(m){if("string"==typeof m||c(m))return m;var p=m+"";return"0"==p&&1/m==-1/0?"-0":p}},52827:w=>{var s=Function.prototype.toString;w.exports=function c(x){if(null!=x){try{return s.call(x)}catch{}try{return x+""}catch{}}return""}},42760:w=>{var D=/\s/;w.exports=function s(c){for(var x=c.length;x--&&D.test(c.charAt(x)););return x}},81149:w=>{var D="\\ud800-\\udfff",p="["+D+"]",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",d="\\ud83c[\\udffb-\\udfff]",h="[^"+D+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",C="(?:"+t+"|"+d+")?",L="[\\ufe0e\\ufe0f]?",B=L+C+"(?:\\u200d(?:"+[h,f,u].join("|")+")"+L+C+")*",M="(?:"+[h+t+"?",t,f,u,p].join("|")+")",R=RegExp(d+"(?="+d+")|"+M+B,"g");w.exports=function Z(H){for(var G=R.lastIndex=0;R.test(H);)++G;return G}},11094:(w,D,s)=>{var c=s(44462);w.exports=function _(m){return c(m,4)}},90733:(w,D,s)=>{var c=s(44462);w.exports=function m(p){return c(p,5)}},76684:w=>{w.exports=function D(s){return function(){return s}}},28800:(w,D,s)=>{var c=s(23269),x=s(20217),_=s(93342),m=s(16555),p=Object.prototype,t=p.hasOwnProperty,d=c(function(l,h){l=Object(l);var f=-1,u=h.length,g=u>2?h[2]:void 0;for(g&&_(h[0],h[1],g)&&(u=1);++f{w.exports=s(89851)},20217:w=>{w.exports=function D(s,c){return s===c||s!=s&&c!=c}},35281:(w,D,s)=>{var c=s(69779),x=s(33609),_=s(96517),m=s(21503);w.exports=function p(t,d){return(m(t)?c:x)(t,_(d,3))}},62516:(w,D,s)=>{var _=s(24653)(s(36397));w.exports=_},36397:(w,D,s)=>{var c=s(65317),x=s(96517),_=s(44401),m=Math.max;w.exports=function p(t,d,l){var h=null==t?0:t.length;if(!h)return-1;var f=null==l?0:_(l);return f<0&&(f=m(h+f,0)),c(t,x(d,3),f)}},22274:(w,D,s)=>{var c=s(50686);w.exports=function x(_){return null!=_&&_.length?c(_,1):[]}},89851:(w,D,s)=>{var c=s(96837),x=s(43132),_=s(21481),m=s(21503);w.exports=function p(t,d){return(m(t)?c:x)(t,_(d))}},41176:(w,D,s)=>{var c=s(30755),x=s(21481),_=s(16555);w.exports=function m(p,t){return null==p?p:c(p,x(t),_)}},8817:(w,D,s)=>{var c=s(15456);w.exports=function x(_,m,p){var t=null==_?void 0:c(_,m);return void 0===t?p:t}},54842:(w,D,s)=>{var c=s(84781),x=s(47283);w.exports=function _(m,p){return null!=m&&x(m,p,c)}},11172:(w,D,s)=>{var c=s(69989),x=s(47283);w.exports=function _(m,p){return null!=m&&x(m,p,c)}},32608:w=>{w.exports=function D(s){return s}},77151:(w,D,s)=>{var c=s(60186),x=s(72671),_=Object.prototype,m=_.hasOwnProperty,p=_.propertyIsEnumerable,t=c(function(){return arguments}())?c:function(d){return x(d)&&m.call(d,"callee")&&!p.call(d,"callee")};w.exports=t},21503:w=>{w.exports=Array.isArray},56507:(w,D,s)=>{var c=s(75946),x=s(96231);w.exports=function _(m){return null!=m&&x(m.length)&&!c(m)}},21330:(w,D,s)=>{var c=s(56507),x=s(72671);w.exports=function _(m){return x(m)&&c(m)}},80891:(w,D,s)=>{w=s.nmd(w);var c=s(12119),x=s(63580),_=D&&!D.nodeType&&D,m=_&&w&&!w.nodeType&&w,t=m&&m.exports===_?c.Buffer:void 0;w.exports=(t?t.isBuffer:void 0)||x},71973:(w,D,s)=>{var c=s(81172),x=s(28794),_=s(77151),m=s(21503),p=s(56507),t=s(80891),d=s(45488),l=s(48159),g=Object.prototype.hasOwnProperty;w.exports=function C(L){if(null==L)return!0;if(p(L)&&(m(L)||"string"==typeof L||"function"==typeof L.splice||t(L)||l(L)||_(L)))return!L.length;var I=x(L);if("[object Map]"==I||"[object Set]"==I)return!L.size;if(d(L))return!c(L).length;for(var B in L)if(g.call(L,B))return!1;return!0}},75946:(w,D,s)=>{var c=s(93337),x=s(25940);w.exports=function d(l){if(!x(l))return!1;var h=c(l);return"[object Function]"==h||"[object GeneratorFunction]"==h||"[object AsyncFunction]"==h||"[object Proxy]"==h}},96231:w=>{w.exports=function s(c){return"number"==typeof c&&c>-1&&c%1==0&&c<=9007199254740991}},13222:(w,D,s)=>{var c=s(97021),x=s(85647),_=s(73597),m=_&&_.isMap,p=m?x(m):c;w.exports=p},25940:w=>{w.exports=function D(s){var c=typeof s;return null!=s&&("object"==c||"function"==c)}},72671:w=>{w.exports=function D(s){return null!=s&&"object"==typeof s}},97614:(w,D,s)=>{var c=s(93337),x=s(29519),_=s(72671),d=Function.prototype.toString,l=Object.prototype.hasOwnProperty,h=d.call(Object);w.exports=function f(u){if(!_(u)||"[object Object]"!=c(u))return!1;var g=x(u);if(null===g)return!0;var C=l.call(g,"constructor")&&g.constructor;return"function"==typeof C&&C instanceof C&&d.call(C)==h}},90799:(w,D,s)=>{var c=s(771),x=s(85647),_=s(73597),m=_&&_.isSet,p=m?x(m):c;w.exports=p},30248:(w,D,s)=>{var c=s(93337),x=s(21503),_=s(72671);w.exports=function p(t){return"string"==typeof t||!x(t)&&_(t)&&"[object String]"==c(t)}},44129:(w,D,s)=>{var c=s(93337),x=s(72671);w.exports=function m(p){return"symbol"==typeof p||x(p)&&"[object Symbol]"==c(p)}},48159:(w,D,s)=>{var c=s(1083),x=s(85647),_=s(73597),m=_&&_.isTypedArray,p=m?x(m):c;w.exports=p},34235:w=>{w.exports=function D(s){return void 0===s}},118:(w,D,s)=>{var c=s(72271),x=s(81172),_=s(56507);w.exports=function m(p){return _(p)?c(p):x(p)}},16555:(w,D,s)=>{var c=s(72271),x=s(92809),_=s(56507);w.exports=function m(p){return _(p)?c(p,!0):x(p)}},25809:w=>{w.exports=function D(s){var c=null==s?0:s.length;return c?s[c-1]:void 0}},19984:(w,D,s)=>{var c=s(84633),x=s(96517),_=s(92046),m=s(21503);w.exports=function p(t,d){return(m(t)?c:_)(t,x(d,3))}},10203:(w,D,s)=>{var c=s(85683),x=s(45184),_=s(96517);w.exports=function m(p,t){var d={};return t=_(t,3),x(p,function(l,h,f){c(d,h,t(l,h,f))}),d}},18176:(w,D,s)=>{var c=s(67308),x=s(31100),_=s(32608);w.exports=function m(p){return p&&p.length?c(p,_,x):void 0}},30535:(w,D,s)=>{var c=s(99850);function _(m,p){if("function"!=typeof m||null!=p&&"function"!=typeof p)throw new TypeError("Expected a function");var t=function(){var d=arguments,l=p?p.apply(this,d):d[0],h=t.cache;if(h.has(l))return h.get(l);var f=m.apply(this,d);return t.cache=h.set(l,f)||h,f};return t.cache=new(_.Cache||c),t}_.Cache=c,w.exports=_},80567:(w,D,s)=>{var c=s(73842),_=s(84944)(function(m,p,t){c(m,p,t)});w.exports=_},29439:(w,D,s)=>{var c=s(67308),x=s(99069),_=s(32608);w.exports=function m(p){return p&&p.length?c(p,_,x):void 0}},29525:(w,D,s)=>{var c=s(67308),x=s(96517),_=s(99069);w.exports=function m(p,t){return p&&p.length?c(p,x(t,2),_):void 0}},12552:w=>{w.exports=function D(){}},31710:(w,D,s)=>{var c=s(12119);w.exports=function(){return c.Date.now()}},16372:(w,D,s)=>{var c=s(83021),_=s(3975)(function(m,p){return null==m?{}:c(m,p)});w.exports=_},87495:(w,D,s)=>{var c=s(11847),x=s(39222),_=s(45352),m=s(68533);w.exports=function p(t){return _(t)?c(m(t)):x(t)}},90361:(w,D,s)=>{var x=s(97509)();w.exports=x},81337:(w,D,s)=>{var c=s(8745),x=s(43132),_=s(96517),m=s(13570),p=s(21503);w.exports=function t(d,l,h){var f=p(d)?c:m,u=arguments.length<3;return f(d,_(l,4),h,u,x)}},55637:(w,D,s)=>{var c=s(81172),x=s(28794),_=s(56507),m=s(30248),p=s(52315);w.exports=function l(h){if(null==h)return 0;if(_(h))return m(h)?p(h):h.length;var f=x(h);return"[object Map]"==f||"[object Set]"==f?h.size:c(h).length}},12906:(w,D,s)=>{var c=s(50686),x=s(6119),_=s(23269),m=s(93342),p=_(function(t,d){if(null==t)return[];var l=d.length;return l>1&&m(t,d[0],d[1])?d=[]:l>2&&m(d[0],d[1],d[2])&&(d=[d[0]]),x(t,c(d,1),[])});w.exports=p},49975:w=>{w.exports=function D(){return[]}},63580:w=>{w.exports=function D(){return!1}},12232:(w,D,s)=>{var c=s(51467),x=1/0;w.exports=function m(p){return p?(p=c(p))===x||p===-x?17976931348623157e292*(p<0?-1:1):p==p?p:0:0===p?p:0}},44401:(w,D,s)=>{var c=s(12232);w.exports=function x(_){var m=c(_),p=m%1;return m==m?p?m-p:m:0}},51467:(w,D,s)=>{var c=s(83348),x=s(25940),_=s(44129),p=/^[-+]0x[0-9a-f]+$/i,t=/^0b[01]+$/i,d=/^0o[0-7]+$/i,l=parseInt;w.exports=function h(f){if("number"==typeof f)return f;if(_(f))return NaN;if(x(f)){var u="function"==typeof f.valueOf?f.valueOf():f;f=x(u)?u+"":u}if("string"!=typeof f)return 0===f?f:+f;f=c(f);var g=t.test(f);return g||d.test(f)?l(f.slice(2),g?2:8):p.test(f)?NaN:+f}},8067:(w,D,s)=>{var c=s(31989),x=s(16555);w.exports=function _(m){return c(m,x(m))}},73943:(w,D,s)=>{var c=s(93935);w.exports=function x(_){return null==_?"":c(_)}},89416:(w,D,s)=>{var c=s(96837),x=s(78858),_=s(45184),m=s(96517),p=s(29519),t=s(21503),d=s(80891),l=s(75946),h=s(25940),f=s(48159);w.exports=function u(g,C,L){var I=t(g),B=I||d(g)||f(g);if(C=m(C,4),null==L){var M=g&&g.constructor;L=B?I?new M:[]:h(g)&&l(M)?x(p(g)):{}}return(B?c:_)(g,function(R,Z,H){return C(L,R,Z,H)}),L}},68921:(w,D,s)=>{var c=s(50686),x=s(23269),_=s(80707),m=s(21330),p=x(function(t){return _(c(t,1,m,!0))});w.exports=p},51541:(w,D,s)=>{var c=s(73943),x=0;w.exports=function _(m){var p=++x;return c(m)+p}},90377:(w,D,s)=>{var c=s(19179),x=s(118);w.exports=function _(m){return null==m?[]:c(m,x(m))}},21617:(w,D,s)=>{var c=s(89719),x=s(38645);w.exports=function _(m,p){return x(m||[],p||[],c)}},34315:(w,D,s)=>{"use strict";const c=Symbol.prototype.valueOf,x=s(52872);w.exports=function _(h,f){switch(x(h)){case"array":return h.slice();case"object":return Object.assign({},h);case"date":return new h.constructor(Number(h));case"map":return new Map(h);case"set":return new Set(h);case"buffer":return function d(h){const f=h.length,u=Buffer.allocUnsafe?Buffer.allocUnsafe(f):Buffer.from(f);return h.copy(u),u}(h);case"symbol":return function l(h){return c?Object(c.call(h)):{}}(h);case"arraybuffer":return function p(h){const f=new h.constructor(h.byteLength);return new Uint8Array(f).set(new Uint8Array(h)),f}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function t(h,f){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function m(h){const f=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,u=new h.constructor(h.source,f);return u.lastIndex=h.lastIndex,u}(h);case"error":return Object.create(h);default:return h}}},67824:(w,D,s)=>{"use strict";function c(x){for(var _ in x)D.hasOwnProperty(_)||(D[_]=x[_])}Object.defineProperty(D,"__esModule",{value:!0}),c(s(95085)),c(s(26243)),c(s(91786)),c(s(30225)),c(s(76767)),c(s(30345)),c(s(15675)),c(s(86461)),c(s(58802)),c(s(33900)),c(s(88866)),c(s(94655)),c(s(4068)),c(s(33858)),c(s(98237)),c(s(83292))},95085:function(w,D,s){"use strict";var p,c=this&&this.__extends||(p=function(t,d){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)h.hasOwnProperty(f)&&(l[f]=h[f])})(t,d)},function(t,d){function l(){this.constructor=t}p(t,d),t.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(15675),_=function(p){function t(d){var l=p.call(this)||this,f=d;return f.trigger&&(l.trigger=f.trigger),f.kick&&(l.kick=f.kick),f.drag&&(l.drag=f.drag),f.on&&(l.on=f.on),l.dragstart=l.dragStart=x.Layout.dragStart,l.dragend=l.dragEnd=x.Layout.dragEnd,l}return c(t,p),t.prototype.trigger=function(d){},t.prototype.kick=function(){},t.prototype.drag=function(){},t.prototype.on=function(d,l){return this},t}(x.Layout);D.LayoutAdaptor=_,D.adaptor=function m(p){return new _(p)}},83292:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(15675),x=s(76767);D.gridify=function _(t,d,l,h){t.cola.start(0,0,0,10,!1);var f=function m(t,d,l,h){t.forEach(function(u){u.routerNode={name:u.name,bounds:u.bounds.inflate(-l)}}),d.forEach(function(u){u.routerNode={bounds:u.bounds.inflate(-h),children:(typeof u.groups<"u"?u.groups.map(function(g){return t.length+g.id}):[]).concat(typeof u.leaves<"u"?u.leaves.map(function(g){return g.index}):[])}});var f=t.concat(d).map(function(u,g){return u.routerNode.id=g,u.routerNode});return new x.GridRouter(f,{getChildren:function(u){return u.children},getBounds:function(u){return u.bounds}},l-h)}(t.cola.nodes(),t.cola.groups(),l,h);return f.routeEdges(t.powerGraph.powerEdges,d,function(u){return u.source.routerNode.id},function(u){return u.target.routerNode.id})},D.powerGraphGridLayout=function p(t,d,l){var h;t.nodes.forEach(function(C,L){return C.index=L}),(new c.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(C){(h=C).groups.forEach(function(L){return L.padding=l})});var f=t.nodes.length,u=[],g=t.nodes.slice(0);return g.forEach(function(C,L){return C.index=L}),h.groups.forEach(function(C){var L=C.index=C.id+f;g.push(C),typeof C.leaves<"u"&&C.leaves.forEach(function(I){return u.push({source:L,target:I.index})}),typeof C.groups<"u"&&C.groups.forEach(function(I){return u.push({source:L,target:I.id+f})})}),h.powerEdges.forEach(function(C){u.push({source:C.source.index,target:C.target.index})}),(new c.Layout).size(d).nodes(g).links(u).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new c.Layout).convergenceThreshold(.001).size(d).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(C){(h=C).groups.forEach(function(L){L.padding=l})}).start(50,0,100,0,!1),powerGraph:h}}},26243:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(49346),x=s(22487);D.d3adaptor=function _(p){return!p||function m(p){return p.version&&null!==p.version.match(/^3\./)}(p)?new c.D3StyleLayoutAdaptor:new x.D3StyleLayoutAdaptor(p)}},49346:function(w,D,s){"use strict";var p,c=this&&this.__extends||(p=function(t,d){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)h.hasOwnProperty(f)&&(l[f]=h[f])})(t,d)},function(t,d){function l(){this.constructor=t}p(t,d),t.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(15675),_=function(p){function t(){var d=p.call(this)||this;d.event=d3.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=d;return d.drag=function(){if(!f)var f=d3.behavior.drag().origin(x.Layout.dragOrigin).on("dragstart.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,d3.event),l.resume()}).on("dragend.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return f;this.call(f)},d}return c(t,p),t.prototype.trigger=function(d){var l={type:x.EventType[d.type],alpha:d.alpha,stress:d.stress};this.event[l.type](l)},t.prototype.kick=function(){var d=this;d3.timer(function(){return p.prototype.tick.call(d)})},t.prototype.on=function(d,l){return this.event.on("string"==typeof d?d:x.EventType[d],l),this},t}(x.Layout);D.D3StyleLayoutAdaptor=_,D.d3adaptor=function m(){return new _}},22487:function(w,D,s){"use strict";var m,c=this&&this.__extends||(m=function(p,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,l){d.__proto__=l}||function(d,l){for(var h in l)l.hasOwnProperty(h)&&(d[h]=l[h])})(p,t)},function(p,t){function d(){this.constructor=p}m(p,t),p.prototype=null===t?Object.create(t):(d.prototype=t.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(15675),_=function(m){function p(t){var d=m.call(this)||this;d.d3Context=t,d.event=t.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=d;return d.drag=function(){if(!f)var f=t.drag().subject(x.Layout.dragOrigin).on("start.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,t.event),l.resume()}).on("end.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return f;arguments[0].call(f)},d}return c(p,m),p.prototype.trigger=function(t){var d={type:x.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(d.type,d)},p.prototype.kick=function(){var t=this,d=this.d3Context.timer(function(){return m.prototype.tick.call(t)&&d.stop()})},p.prototype.on=function(t,d){return this.event.on("string"==typeof t?t:x.EventType[t],d),this},p}(x.Layout);D.D3StyleLayoutAdaptor=_},91786:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function(){function _(){this.locks={}}return _.prototype.add=function(m,p){this.locks[m]=p},_.prototype.clear=function(){this.locks={}},_.prototype.isEmpty=function(){for(var m in this.locks)return!1;return!0},_.prototype.apply=function(m){for(var p in this.locks)m(Number(p),this.locks[p])},_}();D.Locks=s;var c=function(){function _(m,p,t){void 0===t&&(t=null),this.D=p,this.G=t,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new x,this.project=null,this.x=m,this.k=m.length;var d=this.n=m[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new s,this.minD=Number.MAX_VALUE;for(var h,l=d;l--;)for(h=d;--h>l;){var f=p[l][h];f>0&&f1e-9)break;var M=this.offsetDir();for(d=0;d1&&R>Z||!isFinite(Z)){for(d=0;d1&&(H=1);var G=Z*Z,tt=2*H*(R-Z)/(G*R),K=R*R*R,st=2*-H/(G*K);for(isFinite(tt)||console.log(tt),d=0;d0?nt-(F+1)*W:nt-(F-1)*W)&&B<=j&&(this.scaleSnapByMaxH?(this.g[d][g]+=u*at*B,this.H[d][g][g]+=u*at):(this.g[d][g]+=at*B,this.H[d][g][g]+=at))}this.locks.isEmpty()||this.locks.apply(function(ut,ft){for(d=0;d0;)for(var l=p;l-- >0;)t(d,l)},_.prototype.matrixApply=function(m){_.mApply(this.k,this.n,m)},_.prototype.computeNextPosition=function(m,p){var t=this;this.computeDerivatives(m);var d=this.computeStepSize(this.g);if(this.stepAndProject(m,p,this.g,d),this.project){this.matrixApply(function(h,f){return t.e[h][f]=m[h][f]-p[h][f]});var l=this.computeStepSize(this.e);l=Math.max(.2,Math.min(l,1)),this.stepAndProject(m,p,this.e,l)}},_.prototype.run=function(m){for(var p=Number.MAX_VALUE,t=!1;!t&&m-- >0;){var d=this.rungeKutta();t=Math.abs(p/d-1)>16)/this.range},_.prototype.getNextBetween=function(m,p){return m+this.getNext()*(p-m)},_}();D.PseudoRandom=x},30225:function(w,D,s){"use strict";var q,c=this&&this.__extends||(q=function(F,E){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ut,ft){ut.__proto__=ft}||function(ut,ft){for(var Dt in ft)ft.hasOwnProperty(Dt)&&(ut[Dt]=ft[Dt])})(F,E)},function(F,E){function ut(){this.constructor=F}q(F,E),F.prototype=null===E?Object.create(E):(ut.prototype=E.prototype,new ut)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(4068),_=function q(){};D.Point=_;var m=function q(F,E,ut,ft){this.x1=F,this.y1=E,this.x2=ut,this.y2=ft};D.LineSegment=m;var p=function(q){function F(){return null!==q&&q.apply(this,arguments)||this}return c(F,q),F}(_);function t(q,F,E){return(F.x-q.x)*(E.y-q.y)-(E.x-q.x)*(F.y-q.y)}function d(q,F,E){return t(q,F,E)>0}function l(q,F,E){return t(q,F,E)<0}function C(q,F){var E=F.slice(0);return E.push(F[0]),{rtan:L(q,E),ltan:I(q,E)}}function L(q,F){var ut,ft,Dt,Qt,E=F.length-1;if(l(q,F[1],F[0])&&!d(q,F[E-1],F[0]))return 0;for(ut=0,ft=E;;){if(ft-ut==1)return d(q,F[ut],F[ft])?ut:ft;if((Qt=l(q,F[(Dt=Math.floor((ut+ft)/2))+1],F[Dt]))&&!d(q,F[Dt-1],F[Dt]))return Dt;d(q,F[ut+1],F[ut])?Qt||d(q,F[ut],F[Dt])?ft=Dt:ut=Dt:Qt&&l(q,F[ut],F[Dt])?ft=Dt:ut=Dt}}function I(q,F){var ut,ft,Dt,Qt,E=F.length-1;if(d(q,F[E-1],F[0])&&!l(q,F[1],F[0]))return 0;for(ut=0,ft=E;;){if(ft-ut==1)return l(q,F[ut],F[ft])?ut:ft;if(Qt=l(q,F[(Dt=Math.floor((ut+ft)/2))+1],F[Dt]),d(q,F[Dt-1],F[Dt])&&!Qt)return Dt;l(q,F[ut+1],F[ut])?Qt?l(q,F[ut],F[Dt])?ft=Dt:ut=Dt:ft=Dt:Qt?ut=Dt:d(q,F[ut],F[Dt])?ft=Dt:ut=Dt}}function B(q,F,E,ut,ft,Dt){var St,Qt;Qt=ut(q[St=E(F[0],q)],F);for(var pe=!1;!pe;){for(pe=!0;St===q.length-1&&(St=0),!ft(F[Qt],q[St],q[St+1]);)++St;for(;0===Qt&&(Qt=F.length-1),!Dt(q[St],F[Qt],F[Qt-1]);)--Qt,pe=!1}return{t1:St,t2:Qt}}function R(q,F){return B(q,F,L,I,d,l)}D.PolyPoint=p,D.isLeft=t,D.ConvexHull=function h(q){var ut,F=q.slice(0).sort(function(zt,de){return zt.x!==de.x?de.x-zt.x:de.y-zt.y}),E=q.length,Dt=F[0].x;for(ut=1;ut=0&&F[ut].x===yt;ut--);for(pe=ut+1,ut=St;++ut<=pe;)if(!(t(F[0],F[pe],F[ut])>=0&&ut1&&!(t(Qt[Qt.length-2],Qt[Qt.length-1],F[ut])>0);)Qt.length-=1;0!=ut&&Qt.push(F[ut])}wt!=pe&&Qt.push(F[wt]);var Nt=Qt.length;for(ut=pe;--ut>=St;)if(!(t(F[wt],F[St],F[ut])>=0&&ut>St)){for(;Qt.length>Nt&&!(t(Qt[Qt.length-2],Qt[Qt.length-1],F[ut])>0);)Qt.length-=1;0!=ut&&Qt.push(F[ut])}}return Qt},D.clockwiseRadialSweep=function f(q,F,E){F.slice(0).sort(function(ut,ft){return Math.atan2(ut.y-q.y,ut.x-q.x)-Math.atan2(ft.y-q.y,ft.x-q.x)}).forEach(E)},D.tangent_PolyPolyC=B,D.LRtangent_PolyPolyC=function M(q,F){var E=R(F,q);return{t1:E.t2,t2:E.t1}},D.RLtangent_PolyPolyC=R,D.LLtangent_PolyPolyC=function Z(q,F){return B(q,F,I,I,l,l)},D.RRtangent_PolyPolyC=function H(q,F){return B(q,F,L,L,d,d)};var G=function q(F,E){this.t1=F,this.t2=E};D.BiTangent=G;var tt=function q(){};D.BiTangents=tt;var K=function(q){function F(){return null!==q&&q.apply(this,arguments)||this}return c(F,q),F}(_);D.TVGPoint=K;var st=function q(F,E,ut,ft){this.id=F,this.polyid=E,this.polyvertid=ut,this.p=ft,ft.vv=this};D.VisibilityVertex=st;var j=function(){function q(F,E){this.source=F,this.target=E}return q.prototype.length=function(){var F=this.source.p.x-this.target.p.x,E=this.source.p.y-this.target.p.y;return Math.sqrt(F*F+E*E)},q}();D.VisibilityEdge=j;var W=function(){function q(F,E){if(this.P=F,this.V=[],this.E=[],E)this.V=E.V.slice(0),this.E=E.E.slice(0);else{for(var ut=F.length,ft=0;ft0&&this.E.push(new j(Dt[St-1].vv,pe))}Dt.length>1&&this.E.push(new j(Dt[0].vv,Dt[Dt.length-1].vv))}for(ft=0;ft0)return!0;return!1},q}();function et(q,F){for(var E=[],ut=1,ft=F.length;ut=0&&ie>=0&&Ot<0&&te>=0&&jt>=0&&se<0?ft.ll=new G(Dt,St):de<=0&&ie<=0&&Ot>0&&te<=0&&jt<=0&&se>0?ft.rr=new G(Dt,St):de<=0&&ie>0&&Ot<=0&&te>=0&&jt<0&&se>=0?ft.rl=new G(Dt,St):de>=0&&ie<0&&Ot>=0&&te<=0&&jt>0&&se<=0&&(ft.lr=new G(Dt,St))}return ft}function nt(q,F){return!q.every(function(E){return!function Y(q,F){for(var E=1,ut=F.length;E0)return!0}return!1}},76767:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(4068),x=s(98237),_=s(33858),m=function l(h,f,u){this.id=h,this.rect=f,this.children=u,this.leaf=typeof u>"u"||0===u.length};D.NodeWrapper=m;var p=function l(h,f,u,g,C){void 0===g&&(g=null),void 0===C&&(C=null),this.id=h,this.x=f,this.y=u,this.node=g,this.line=C};D.Vert=p;var t=function(){function l(h,f){this.s=h,this.t=f;var u=l.findMatch(h,f),g=f.slice(0).reverse(),C=l.findMatch(h,g);u.length>=C.length?(this.length=u.length,this.si=u.si,this.ti=u.ti,this.reversed=!1):(this.length=C.length,this.si=C.si,this.ti=f.length-C.ti-C.length,this.reversed=!0)}return l.findMatch=function(h,f){for(var u=h.length,g=f.length,C={length:0,si:-1,ti:-1},L=new Array(u),I=0;IC.length&&(C.length=M,C.si=I-M+1,C.ti=B-M+1)}else L[I][B]=0}return C},l.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},l}();D.LongestCommonSubsequence=t;var d=function(){function l(h,f,u){var g=this;void 0===u&&(u=12),this.originalnodes=h,this.groupPadding=u,this.leaves=null,this.nodes=h.map(function(K,st){return new m(st,f.getBounds(K),f.getChildren(K))}),this.leaves=this.nodes.filter(function(K){return K.leaf}),this.groups=this.nodes.filter(function(K){return!K.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(K){return K.children.forEach(function(st){return g.nodes[st].parent=K})}),this.root={children:[]},this.nodes.forEach(function(K){typeof K.parent>"u"&&(K.parent=g.root,g.root.children.push(K.id)),K.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(K,st){return g.getDepth(K)-g.getDepth(st)}),this.backToFront.slice(0).reverse().filter(function(K){return!K.leaf}).forEach(function(K){var st=c.Rectangle.empty();K.children.forEach(function(j){return st=st.union(g.nodes[j].rect)}),K.rect=st.inflate(g.groupPadding)});var L=this.midPoints(this.cols.map(function(K){return K.pos})),I=this.midPoints(this.rows.map(function(K){return K.pos})),B=L[0],M=L[L.length-1],R=I[0],Z=I[I.length-1],H=this.rows.map(function(K){return{x1:B,x2:M,y1:K.pos,y2:K.pos}}).concat(I.map(function(K){return{x1:B,x2:M,y1:K,y2:K}})),G=this.cols.map(function(K){return{x1:K.pos,x2:K.pos,y1:R,y2:Z}}).concat(L.map(function(K){return{x1:K,x2:K,y1:R,y2:Z}})),tt=H.concat(G);tt.forEach(function(K){return K.verts=[]}),this.verts=[],this.edges=[],H.forEach(function(K){return G.forEach(function(st){var j=new p(g.verts.length,st.x1,K.y1);K.verts.push(j),st.verts.push(j),g.verts.push(j);for(var W=g.backToFront.length;W-- >0;){var et=g.backToFront[W],at=et.rect,Y=Math.abs(j.x-at.cx()),nt=Math.abs(j.y-at.cy());if(Y0;){var g=u.filter(function(L){return L.rect["overlap"+h.toUpperCase()](u[0].rect)}),C={nodes:g,pos:this.avg(g.map(function(L){return L.rect["c"+h]()}))};f.push(C),C.nodes.forEach(function(L){return u.splice(u.indexOf(L),1)})}return f.sort(function(L,I){return L.pos-I.pos}),f},l.prototype.getDepth=function(h){for(var f=0;h.parent!==this.root;)f++,h=h.parent;return f},l.prototype.midPoints=function(h){for(var f=h[1]-h[0],u=[h[0]-f/2],g=1;g.1)&&R.push(Z={pos:B[0][f],segments:[]}),Z.segments.push(B)}return R},l.nudgeSegs=function(h,f,u,g,C,L){var I=g.length;if(!(I<=1)){for(var B=g.map(function(et){return new x.Variable(et[0][h])}),M=[],R=0;R=0&&M.push(new x.Constraint(B[st],B[j],L))}new x.Solver(B,M).solve(),B.forEach(function(et,at){var Y=g[at],nt=et.position();Y[0][h]=Y[1][h]=nt;var rt=u[Y.edgeid];Y.i>0&&(rt[Y.i-1][1][h]=nt),Y.iMath.PI||C<-Math.PI)&&(C=g-u),C},l.isLeft=function(h,f,u){return(f.x-h.x)*(u.y-h.y)-(f.y-h.y)*(u.x-h.x)<=0},l.getOrder=function(h){for(var f={},u=0;u"u"&&(f[g.l]={}),f[g.l][g.r]=!0}return function(C,L){return typeof f[C]<"u"&&f[C][L]}},l.orderEdges=function(h){for(var f=[],u=0;u=C.length||I.ti+I.length>=L.length)){f.push({l:u,r:g});continue}I.si+I.length>=C.length||I.ti+I.length>=L.length?(B=C[I.si+1],R=C[I.si-1],M=L[I.ti-1]):(B=C[I.si+I.length-2],M=C[I.si+I.length],R=L[I.ti+I.length]),l.isLeft(B,M,R)?f.push({l:g,r:u}):f.push({l:u,r:g})}}return l.getOrder(f)},l.makeSegments=function(h){function f(M){return{x:M.x,y:M.y}}for(var g=[],C=f(h[0]),L=1;L1&&q>1?1e3:0}).reverse().map(function(j){return u.verts[j]});return st.push(this.nodes[C.id].ports[0]),st.filter(function(j,W){return!(W0&&j.node===C&&st[W-1].node===C)})},l.getRoutePath=function(h,f,u,g){var I,B,M,rt,q,C={routepath:"M "+h[0][0].x+" "+h[0][0].y+" ",arrowpath:""};if(h.length>1)for(var L=0;L0?B-=R/Math.abs(R)*f:M-=Z/Math.abs(Z)*f,C.routepath+="L "+B+" "+M+" ";var H=h[L+1],G=H[0].x,tt=H[0].y;R=H[1].x-G,Z=H[1].y-tt;var W,et,j=l.angleBetween2Lines(I,H)<0?1:0;Math.abs(R)>0?(W=G+R/Math.abs(R)*f,et=tt):(W=G,et=tt+Z/Math.abs(Z)*f);var at=Math.abs(W-B),Y=Math.abs(et-M);C.routepath+="A "+at+" "+Y+" 0 0 "+j+" "+W+" "+et+" "}else{var nt=[B,M];Math.abs(R)>0?(rt=[B-=R/Math.abs(R)*g,M+u],q=[B,M-u]):(rt=[B+u,M-=Z/Math.abs(Z)*g],q=[B-u,M]),C.routepath+="L "+B+" "+M+" ",g>0&&(C.arrowpath="M "+nt[0]+" "+nt[1]+" L "+rt[0]+" "+rt[1]+" L "+q[0]+" "+q[1])}}else R=(B=(I=h[0])[1].x)-I[0].x,Z=(M=I[1].y)-I[0].y,nt=[B,M],Math.abs(R)>0?(rt=[B-=R/Math.abs(R)*g,M+u],q=[B,M-u]):(rt=[B+u,M-=Z/Math.abs(Z)*g],q=[B-u,M]),C.routepath+="L "+B+" "+M+" ",g>0&&(C.arrowpath="M "+nt[0]+" "+nt[1]+" L "+rt[0]+" "+rt[1]+" L "+q[0]+" "+q[1]);return C},l}();D.GridRouter=d},30345:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s_GOLDEN_SECTION=(1+Math.sqrt(5))/2;D.applyPacking=function c(_,m,p,L,C,l){void 0===C&&(C=1),void 0===l&&(l=!0);var u=m,g=p,I=(C=typeof C<"u"?C:1,L=typeof L<"u"?L:0,0),B=0,M=0,R=0,Z=[];function K(et,at){Z=[],I=0,B=0,R=0;for(var Y=0;Y=et.height&&Z[nt].x+Z[nt].width+et.width+10-at<=1e-4){Y=Z[nt];break}Z.push(et),void 0!==Y?(et.x=Y.x+Y.width+10,et.y=Y.bottom,et.space_left=et.height,et.bottom=et.y,Y.space_left-=et.height+10,Y.bottom+=et.height+10):(et.y=R,R+=et.height+10,et.x=0,et.bottom=et.y,et.space_left=et.height),et.y+et.height-B>-1e-4&&(B=et.y+et.height-0),et.x+et.width-I>-1e-4&&(I=et.x+et.width-0)}0!=_.length&&(function H(et){et.forEach(function(Y){!function at(Y){var nt=Number.MAX_VALUE,rt=Number.MAX_VALUE,q=0,F=0;Y.array.forEach(function(E){var ut=typeof E.width<"u"?E.width:L,ft=typeof E.height<"u"?E.height:L;ut/=2,ft/=2,q=Math.max(E.x+ut,q),nt=Math.min(E.x-ut,nt),F=Math.max(E.y+ft,F),rt=Math.min(E.y-ft,rt)}),Y.width=q-nt,Y.height=F-rt}(Y)})}(_),function tt(et,at){var Y=Number.POSITIVE_INFINITY,nt=0;et.sort(function(wt,yt){return yt.height-wt.height});for(var rt=Qt=M=et.reduce(function(wt,yt){return wt.widthM||St>1e-4;){if(1!=ft){var Qt=q-(q-rt)/s_GOLDEN_SECTION;E=K(et,Qt)}if(0!=ft){var pe=rt+(q-rt)/s_GOLDEN_SECTION;ut=K(et,pe)}if(Dt=Math.abs(Qt-pe),St=Math.abs(E-ut),Eut?(rt=Qt,Qt=pe,E=ut,ft=1):(q=pe,pe=Qt,ut=E,ft=0),F++>100)break}K(et,nt)}(_),l&&function G(et){et.forEach(function(at){var Y={x:0,y:0};at.array.forEach(function(q){Y.x+=q.x,Y.y+=q.y}),Y.x/=at.array.length,Y.y/=at.array.length;var rt_x=at.x-(Y.x-at.width/2)+u/2-I/2,rt_y=at.y-(Y.y-at.height/2)+g/2-B/2;at.array.forEach(function(q){q.x+=rt_x,q.y+=rt_y})})}(_))},D.separateGraphs=function x(_,m){for(var p={},t={},d=[],l=0,h=0;h{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var l,u,c=s(33900),x=s(58802),_=s(91786),m=s(4068),p=s(33858),t=s(30225),d=s(30345);function h(u){return typeof u.leaves<"u"||typeof u.groups<"u"}(u=l=D.EventType||(D.EventType={}))[u.start=0]="start",u[u.tick=1]="tick",u[u.end=2]="end";var f=function(){function u(){var g=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:u.getSourceIndex,getTargetIndex:u.getTargetIndex,setLength:u.setLinkLength,getType:function(C){return"function"==typeof g._linkType?g._linkType(C):0}}}return u.prototype.on=function(g,C){return this.event||(this.event={}),"string"==typeof g?this.event[l[g]]=C:this.event[g]=C,this},u.prototype.trigger=function(g){this.event&&typeof this.event[g.type]<"u"&&this.event[g.type](g)},u.prototype.kick=function(){for(;!this.tick(););},u.prototype.tick=function(){if(this._alpha"u"||typeof L.py>"u")&&(L.px=L.x,L.py=L.y),this._descent.locks.add(I,[L.px,L.py]));var M=this._descent.rungeKutta();return 0===M?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=M),this._lastStress=M,this.updateNodePositions(),this.trigger({type:l.tick,alpha:this._alpha,stress:this._lastStress}),!1},u.prototype.updateNodePositions=function(){for(var L,g=this._descent.x[0],C=this._descent.x[1],I=this._nodes.length;I--;)(L=this._nodes[I]).x=g[I],L.y=C[I]},u.prototype.nodes=function(g){if(!g){if(0===this._nodes.length&&this._links.length>0){var C=0;this._links.forEach(function(I){C=Math.max(C,I.source,I.target)}),this._nodes=new Array(++C);for(var L=0;L"u"&&(L.padding=1),typeof L.leaves<"u"&&L.leaves.forEach(function(I,B){"number"==typeof I&&((L.leaves[B]=C._nodes[I]).parent=L)}),typeof L.groups<"u"&&L.groups.forEach(function(I,B){"number"==typeof I&&((L.groups[B]=C._groups[I]).parent=L)})}),this._rootGroup.leaves=this._nodes.filter(function(L){return typeof L.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(L){return typeof L.parent>"u"}),this):this._groups},u.prototype.powerGraphGroups=function(g){var C=c.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(C.groups),g(C),this},u.prototype.avoidOverlaps=function(g){return arguments.length?(this._avoidOverlaps=g,this):this._avoidOverlaps},u.prototype.handleDisconnected=function(g){return arguments.length?(this._handleDisconnected=g,this):this._handleDisconnected},u.prototype.flowLayout=function(g,C){return arguments.length||(g="y"),this._directedLinkConstraints={axis:g,getMinSeparation:"number"==typeof C?function(){return C}:C},this},u.prototype.links=function(g){return arguments.length?(this._links=g,this):this._links},u.prototype.constraints=function(g){return arguments.length?(this._constraints=g,this):this._constraints},u.prototype.distanceMatrix=function(g){return arguments.length?(this._distanceMatrix=g,this):this._distanceMatrix},u.prototype.size=function(g){return g?(this._canvasSize=g,this):this._canvasSize},u.prototype.defaultNodeSize=function(g){return g?(this._defaultNodeSize=g,this):this._defaultNodeSize},u.prototype.groupCompactness=function(g){return g?(this._groupCompactness=g,this):this._groupCompactness},u.prototype.linkDistance=function(g){return g?(this._linkDistance="function"==typeof g?g:+g,this._linkLengthCalculator=null,this):this._linkDistance},u.prototype.linkType=function(g){return this._linkType=g,this},u.prototype.convergenceThreshold=function(g){return g?(this._threshold="function"==typeof g?g:+g,this):this._threshold},u.prototype.alpha=function(g){return arguments.length?(g=+g,this._alpha?this._alpha=g>0?g:0:g>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=g}),this.kick())),this):this._alpha},u.prototype.getLinkLength=function(g){return"function"==typeof this._linkDistance?+this._linkDistance(g):this._linkDistance},u.setLinkLength=function(g,C){g.length=C},u.prototype.getLinkType=function(g){return"function"==typeof this._linkType?this._linkType(g):0},u.prototype.symmetricDiffLinkLengths=function(g,C){var L=this;return void 0===C&&(C=1),this.linkDistance(function(I){return g*I.length}),this._linkLengthCalculator=function(){return x.symmetricDiffLinkLengths(L._links,L.linkAccessor,C)},this},u.prototype.jaccardLinkLengths=function(g,C){var L=this;return void 0===C&&(C=1),this.linkDistance(function(I){return g*I.length}),this._linkLengthCalculator=function(){return x.jaccardLinkLengths(L._links,L.linkAccessor,C)},this},u.prototype.start=function(g,C,L,I,B,M){var R=this;void 0===g&&(g=0),void 0===C&&(C=0),void 0===L&&(L=0),void 0===I&&(I=0),void 0===B&&(B=!0),void 0===M&&(M=!0);var nt,G=this.nodes().length,tt=G+2*this._groups.length,st=this._canvasSize[0],j=this._canvasSize[1],W=new Array(tt),et=new Array(tt),at=null,Y=this._avoidOverlaps;this._nodes.forEach(function(Dt,St){Dt.index=St,typeof Dt.x>"u"&&(Dt.x=st/2,Dt.y=j/2),W[St]=Dt.x,et[St]=Dt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?nt=this._distanceMatrix:(nt=new p.Calculator(tt,this._links,u.getSourceIndex,u.getTargetIndex,function(Dt){return R.getLinkLength(Dt)}).DistanceMatrix(),at=_.Descent.createSquareMatrix(tt,function(){return 2}),this._links.forEach(function(Dt){"number"==typeof Dt.source&&(Dt.source=R._nodes[Dt.source]),"number"==typeof Dt.target&&(Dt.target=R._nodes[Dt.target])}),this._links.forEach(function(Dt){var St=u.getSourceIndex(Dt),Qt=u.getTargetIndex(Dt);at[St][Qt]=at[Qt][St]=Dt.weight||1}));var rt=_.Descent.createSquareMatrix(tt,function(Dt,St){return nt[Dt][St]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Z=G;this._groups.forEach(function(St){(function(St,Qt,pe,wt){at[St][Qt]=at[Qt][St]=pe,rt[St][Qt]=rt[Qt][St]=.1})(Z,Z+1,R._groupCompactness),W[Z]=0,et[Z++]=0,W[Z]=0,et[Z++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var F=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,F=F.concat(x.generateDirectedEdgeConstraints(G,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new _.Descent([W,et],rt),this._descent.locks.clear(),Z=0;Z0&&(this._descent.project=new m.Projection(this._nodes,this._groups,this._rootGroup,F).projectFunctions()),this._descent.run(C),this.separateOverlappingComponents(st,j,M),this.avoidOverlaps(Y),Y&&(this._nodes.forEach(function(Dt,St){Dt.x=W[St],Dt.y=et[St]}),this._descent.project=new m.Projection(this._nodes,this._groups,this._rootGroup,F,!0).projectFunctions(),this._nodes.forEach(function(Dt,St){W[St]=Dt.x,et[St]=Dt.y})),this._descent.G=at,this._descent.run(L),I){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=G,this._descent.scaleSnapByMaxH=G!=tt;var ft=_.Descent.createSquareMatrix(tt,function(Dt,St){return Dt>=G||St>=G?at[Dt][St]:0});this._descent.G=ft,this._descent.run(I)}return this.updateNodePositions(),this.separateOverlappingComponents(st,j,M),B?this.resume():this},u.prototype.initialLayout=function(g,C,L){if(this._groups.length>0&&g>0){var I=this._nodes.length,B=this._links.map(function(R){return{source:R.source.index,target:R.target.index}}),M=this._nodes.map(function(R){return{index:R.index}});this._groups.forEach(function(R,Z){M.push({index:R.index=I+Z})}),this._groups.forEach(function(R,Z){typeof R.leaves<"u"&&R.leaves.forEach(function(H){return B.push({source:R.index,target:H.index})}),typeof R.groups<"u"&&R.groups.forEach(function(H){return B.push({source:R.index,target:H.index})})}),(new u).size(this.size()).nodes(M).links(B).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(g,0,0,0,!1),this._nodes.forEach(function(R){C[R.index]=M[R.index].x,L[R.index]=M[R.index].y})}else this._descent.run(g)},u.prototype.separateOverlappingComponents=function(g,C,L){var I=this;if(void 0===L&&(L=!0),!this._distanceMatrix&&this._handleDisconnected){var B=this._descent.x[0],M=this._descent.x[1];this._nodes.forEach(function(Z,H){Z.x=B[H],Z.y=M[H]});var R=d.separateGraphs(this._nodes,this._links);d.applyPacking(R,g,C,this._defaultNodeSize,1,L),this._nodes.forEach(function(Z,H){I._descent.x[0][H]=Z.x,I._descent.x[1][H]=Z.y,Z.bounds&&(Z.bounds.setXCentre(Z.x),Z.bounds.setYCentre(Z.y))})}},u.prototype.resume=function(){return this.alpha(.1)},u.prototype.stop=function(){return this.alpha(0)},u.prototype.prepareEdgeRouting=function(g){void 0===g&&(g=0),this._visibilityGraph=new t.TangentVisibilityGraph(this._nodes.map(function(C){return C.bounds.inflate(-g).vertices()}))},u.prototype.routeEdge=function(g,C,L){void 0===C&&(C=5);var I=[],B=new t.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),M={x:g.source.x,y:g.source.y},R={x:g.target.x,y:g.target.y},Z=B.addPoint(M,g.source.index),H=B.addPoint(R,g.target.index);B.addEdgeIfVisible(M,R,g.source.index,g.target.index),typeof L<"u"&&L(B);var j=new p.Calculator(B.V.length,B.E,function(rt){return rt.source.id},function(rt){return rt.target.id},function(rt){return rt.length()}).PathFromNodeToNode(Z.id,H.id);if(1===j.length||j.length===B.V.length){var W=m.makeEdgeBetween(g.source.innerBounds,g.target.innerBounds,C);I=[W.sourceIntersection,W.arrowStart]}else{for(var et=j.length-2,at=B.V[j[et]].p,Y=B.V[j[0]].p,nt=(I=[g.source.innerBounds.rayIntersection(at.x,at.y)],et);nt>=0;--nt)I.push(B.V[j[nt]].p);I.push(m.makeEdgeTo(Y,g.target.innerBounds,C))}return I},u.getSourceIndex=function(g){return"number"==typeof g.source?g.source:g.source.index},u.getTargetIndex=function(g){return"number"==typeof g.target?g.target:g.target.index},u.linkId=function(g){return u.getSourceIndex(g)+"-"+u.getTargetIndex(g)},u.dragStart=function(g){h(g)?u.storeOffset(g,u.dragOrigin(g)):(u.stopNode(g),g.fixed|=2)},u.stopNode=function(g){g.px=g.x,g.py=g.y},u.storeOffset=function(g,C){typeof g.leaves<"u"&&g.leaves.forEach(function(L){L.fixed|=2,u.stopNode(L),L._dragGroupOffsetX=L.x-C.x,L._dragGroupOffsetY=L.y-C.y}),typeof g.groups<"u"&&g.groups.forEach(function(L){return u.storeOffset(L,C)})},u.dragOrigin=function(g){return h(g)?{x:g.bounds.cx(),y:g.bounds.cy()}:g},u.drag=function(g,C){h(g)?(typeof g.leaves<"u"&&g.leaves.forEach(function(L){g.bounds.setXCentre(C.x),g.bounds.setYCentre(C.y),L.px=L._dragGroupOffsetX+C.x,L.py=L._dragGroupOffsetY+C.y}),typeof g.groups<"u"&&g.groups.forEach(function(L){return u.drag(L,C)})):(g.px=C.x,g.py=C.y)},u.dragEnd=function(g){h(g)?(typeof g.leaves<"u"&&g.leaves.forEach(function(C){u.dragEnd(C),delete C._dragGroupOffsetX,delete C._dragGroupOffsetY}),typeof g.groups<"u"&&g.groups.forEach(u.dragEnd)):g.fixed&=-7},u.mouseOver=function(g){g.fixed|=4,g.px=g.x,g.py=g.y},u.mouseOut=function(g){g.fixed&=-5},u}();D.Layout=f},86461:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(33858),x=s(91786),_=s(4068),m=s(58802),p=function(){function h(f,u){this.source=f,this.target=u}return h.prototype.actualLength=function(f){var u=this;return Math.sqrt(f.reduce(function(g,C){var L=C[u.target]-C[u.source];return g+L*L},0))},h}();D.Link3D=p,D.Node3D=function h(f,u,g){void 0===f&&(f=0),void 0===u&&(u=0),void 0===g&&(g=0),this.x=f,this.y=u,this.z=g};var d=function(){function h(f,u,g){var C=this;void 0===g&&(g=1),this.nodes=f,this.links=u,this.idealLinkLength=g,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(h.k);for(var L=0;L"u"&&(I[Z]=Math.random())}C.result[0][B]=I.x,C.result[1][B]=I.y,C.result[2][B]=I.z})}return h.prototype.linkLength=function(f){return f.actualLength(this.result)},h.prototype.start=function(f){var u=this;void 0===f&&(f=100);var g=this.nodes.length,C=new l;this.useJaccardLinkLengths&&m.jaccardLinkLengths(this.links,C,1.5),this.links.forEach(function(Z){return Z.length*=u.idealLinkLength});var L=new c.Calculator(g,this.links,function(Z){return Z.source},function(Z){return Z.target},function(Z){return Z.length}).DistanceMatrix(),I=x.Descent.createSquareMatrix(g,function(Z,H){return L[Z][H]}),B=x.Descent.createSquareMatrix(g,function(){return 2});this.links.forEach(function(Z){var H=Z.source,G=Z.target;return B[H][G]=B[G][H]=1}),this.descent=new x.Descent(this.result,I),this.descent.threshold=.001,this.descent.G=B,this.constraints&&(this.descent.project=new _.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var M=0;M{"use strict";function s(l,h){var f={};for(var u in l)f[u]={};for(var u in h)f[u]={};return Object.keys(f).length}function c(l,h){var f=0;for(var u in l)typeof h[u]<"u"&&++f;return f}function _(l,h,f,u){var g=function x(l,h){var f={},u=function(g,C){typeof f[g]>"u"&&(f[g]={}),f[g][C]={}};return l.forEach(function(g){var C=h.getSourceIndex(g),L=h.getTargetIndex(g);u(C,L),u(L,C)}),f}(l,u);l.forEach(function(C){var L=g[u.getSourceIndex(C)],I=g[u.getTargetIndex(C)];u.setLength(C,1+h*f(L,I))})}function d(l,h,f){var u=[],g=0,C=[],L=[];function I(j){j.index=j.lowlink=g++,C.push(j),j.onStack=!0;for(var W=0,et=j.out;W"u"?(I(at),j.lowlink=Math.min(j.lowlink,at.lowlink)):at.onStack&&(j.lowlink=Math.min(j.lowlink,at.index))}if(j.lowlink===j.index){for(var Y=[];C.length&&((at=C.pop()).onStack=!1,Y.push(at),at!==j););L.push(Y.map(function(nt){return nt.id}))}}for(var B=0;B"u"&&I(st)}return L}Object.defineProperty(D,"__esModule",{value:!0}),D.symmetricDiffLinkLengths=function m(l,h,f){void 0===f&&(f=1),_(l,f,function(u,g){return Math.sqrt(s(u,g)-c(u,g))},h)},D.jaccardLinkLengths=function p(l,h,f){void 0===f&&(f=1),_(l,f,function(u,g){return Math.min(Object.keys(u).length,Object.keys(g).length)<1.1?0:c(u,g)/s(u,g)},h)},D.generateDirectedEdgeConstraints=function t(l,h,f,u){var g=d(l,h,u),C={};g.forEach(function(I,B){return I.forEach(function(M){return C[M]=B})});var L=[];return h.forEach(function(I){var B=u.getSourceIndex(I),M=u.getTargetIndex(I);C[B]!==C[M]&&L.push({axis:f,left:B,right:M,gap:u.getMinSeparation(I)})}),L},D.stronglyConnectedComponents=d},33900:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function h(f,u,g){this.source=f,this.target=u,this.type=g};D.PowerEdge=s;var c=function(){function h(f,u,g,C){var L=this;if(this.linkAccessor=g,this.modules=new Array(f),this.roots=[],C)this.initModulesFromGroup(C);else{this.roots.push(new p);for(var I=0;I=this.R))return this.merge(g.a,g.b,f),!0}},h.prototype.nEdges=function(f,u){var g=f.incoming.intersection(u.incoming),C=f.outgoing.intersection(u.outgoing);return this.R-g.count()-C.count()},h.prototype.getGroupHierarchy=function(f){var u=this,g=[];return x(this.roots[0],{},g),this.allEdges().forEach(function(I){var B=u.modules[I.source],M=u.modules[I.target];f.push(new s(typeof B.gid>"u"?I.source:g[B.gid],typeof M.gid>"u"?I.target:g[M.gid],I.type))}),g},h.prototype.allEdges=function(){var f=[];return h.getEdges(this.roots[0],f),f},h.getEdges=function(f,u){f.forAll(function(g){g.getEdges(u),h.getEdges(g.children,u)})},h}();function x(h,f,u){h.forAll(function(g){if(g.isLeaf())f.leaves||(f.leaves=[]),f.leaves.push(g.id);else{var C=f;if(g.gid=u.length,!g.isIsland()||g.isPredefined()){if(C={id:g.gid},g.isPredefined())for(var L in g.definition)C[L]=g.definition[L];f.groups||(f.groups=[]),f.groups.push(g.gid),u.push(C)}x(g.children,C,u)}})}D.Configuration=c;var _=function(){function h(f,u,g,C,L){void 0===u&&(u=new t),void 0===g&&(g=new t),void 0===C&&(C=new p),this.id=f,this.outgoing=u,this.incoming=g,this.children=C,this.definition=L}return h.prototype.getEdges=function(f){var u=this;this.outgoing.forAll(function(g,C){g.forAll(function(L){f.push(new s(u.id,L.id,C))})})},h.prototype.isLeaf=function(){return 0===this.children.count()},h.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},h.prototype.isPredefined=function(){return typeof this.definition<"u"},h}();D.Module=_;var p=function(){function h(){this.table={}}return h.prototype.count=function(){return Object.keys(this.table).length},h.prototype.intersection=function(f){var u=new h;return u.table=function m(h,f){var u={};for(var g in h)g in f&&(u[g]=h[g]);return u}(this.table,f.table),u},h.prototype.intersectionCount=function(f){return this.intersection(f).count()},h.prototype.contains=function(f){return f in this.table},h.prototype.add=function(f){this.table[f.id]=f},h.prototype.remove=function(f){delete this.table[f.id]},h.prototype.forAll=function(f){for(var u in this.table)f(this.table[u])},h.prototype.modules=function(){var f=[];return this.forAll(function(u){u.isPredefined()||f.push(u)}),f},h}();D.ModuleSet=p;var t=function(){function h(){this.sets={},this.n=0}return h.prototype.count=function(){return this.n},h.prototype.contains=function(f){var u=!1;return this.forAllModules(function(g){!u&&g.id==f&&(u=!0)}),u},h.prototype.add=function(f,u){(f in this.sets?this.sets[f]:this.sets[f]=new p).add(u),++this.n},h.prototype.remove=function(f,u){var g=this.sets[f];g.remove(u),0===g.count()&&delete this.sets[f],--this.n},h.prototype.forAll=function(f){for(var u in this.sets)f(this.sets[u],Number(u))},h.prototype.forAllModules=function(f){this.forAll(function(u,g){return u.forAll(f)})},h.prototype.intersection=function(f){var u=new h;return this.forAll(function(g,C){if(C in f.sets){var L=g.intersection(f.sets[C]),I=L.count();I>0&&(u.sets[C]=L,u.n+=I)}}),u},h}();D.LinkSets=t,D.getGroups=function l(h,f,u,g){for(var L=new c(h.length,f,u,g);L.greedyMerge(););var I=[],B=L.getGroupHierarchy(I);return I.forEach(function(M){var R=function(Z){var H=M[Z];"number"==typeof H&&(M[Z]=h[H])};R("source"),R("target")}),{groups:B,powerEdges:I}}},88866:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function(){function x(_){this.elem=_,this.subheaps=[]}return x.prototype.toString=function(_){for(var m="",p=!1,t=0;t0)}return null}}return p.prototype.clear=function(){this._root=null,this.size=0},p.prototype.find=function(t){for(var d=this._root;null!==d;){var l=this._comparator(t,d.data);if(0===l)return d.data;d=d.get_child(l>0)}return null},p.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},p.prototype.upperBound=function(t){var d=this._comparator;return this._bound(t,function l(h,f){return d(f,h)})},p.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},p.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},p.prototype.iterator=function(){return new x(this)},p.prototype.each=function(t){for(var l,d=this.iterator();null!==(l=d.next());)t(l)},p.prototype.reach=function(t){for(var l,d=this.iterator();null!==(l=d.prev());)t(l)},p.prototype._bound=function(t,d){for(var l=this._root,h=this.iterator();null!==l;){var f=this._comparator(t,l.data);if(0===f)return h._cursor=l,h;h._ancestors.push(l),l=l.get_child(f>0)}for(var u=h._ancestors.length-1;u>=0;--u)if(d(t,(l=h._ancestors[u]).data)>0)return h._cursor=l,h._ancestors.length=u,h;return h._ancestors.length=0,h},p}();D.TreeBase=c;var x=function(){function p(t){this._tree=t,this._ancestors=[],this._cursor=null}return p.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},p.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else if(null===this._cursor.right){var d;do{if(d=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===d)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},p.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else if(null===this._cursor.left){var d;do{if(d=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===d)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},p.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},p.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},p}();D.Iterator=x;var _=function(){function p(t){this.data=t,this.left=null,this.right=null,this.red=!0}return p.prototype.get_child=function(t){return t?this.right:this.left},p.prototype.set_child=function(t,d){t?this.right=d:this.left=d},p}(),m=function(p){function t(d){var l=p.call(this)||this;return l._root=null,l._comparator=d,l.size=0,l}return s(t,p),t.prototype.insert=function(d){var l=!1;if(null===this._root)this._root=new _(d),l=!0,this.size++;else{var h=new _(void 0),f=!1,u=!1,g=null,C=h,L=null,I=this._root;for(C.right=this._root;;){if(null===I?(I=new _(d),L.set_child(f,I),l=!0,this.size++):t.is_red(I.left)&&t.is_red(I.right)&&(I.red=!0,I.left.red=!1,I.right.red=!1),t.is_red(I)&&t.is_red(L)){var B=C.right===g;I===L.get_child(u)?C.set_child(B,t.single_rotate(g,!u)):C.set_child(B,t.double_rotate(g,!u))}var M=this._comparator(I.data,d);if(0===M)break;u=f,null!==g&&(C=g),g=L,L=I,I=I.get_child(f=M<0)}this._root=h.right}return this._root.red=!1,l},t.prototype.remove=function(d){if(null===this._root)return!1;var l=new _(void 0),h=l;h.right=this._root;for(var f=null,u=null,g=null,C=!0;null!==h.get_child(C);){var L=C;u=f,f=h,h=h.get_child(C);var I=this._comparator(d,h.data);if(C=I>0,0===I&&(g=h),!t.is_red(h)&&!t.is_red(h.get_child(C)))if(t.is_red(h.get_child(!C))){var B=t.single_rotate(h,C);f.set_child(L,B),f=B}else if(!t.is_red(h.get_child(!C))){var M=f.get_child(!L);if(null!==M)if(t.is_red(M.get_child(!L))||t.is_red(M.get_child(L))){var R=u.right===f;t.is_red(M.get_child(L))?u.set_child(R,t.double_rotate(f,L)):t.is_red(M.get_child(!L))&&u.set_child(R,t.single_rotate(f,L));var Z=u.get_child(R);Z.red=!0,h.red=!0,Z.left.red=!1,Z.right.red=!1}else f.red=!1,M.red=!0,h.red=!0}}return null!==g&&(g.data=h.data,f.set_child(f.right===h,h.get_child(null===h.left)),this.size--),this._root=l.right,null!==this._root&&(this._root.red=!1),null!==g},t.is_red=function(d){return null!==d&&d.red},t.single_rotate=function(d,l){var h=d.get_child(!l);return d.set_child(!l,h.get_child(l)),h.set_child(l,d),d.red=!0,h.red=!1,h},t.double_rotate=function(d,l){return d.set_child(!l,t.single_rotate(d.get_child(!l),!l)),t.single_rotate(d,l)},t}(c);D.RBTree=m},4068:function(w,D,s){"use strict";var j,c=this&&this.__extends||(j=function(W,et){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Y){at.__proto__=Y}||function(at,Y){for(var nt in Y)Y.hasOwnProperty(nt)&&(at[nt]=Y[nt])})(W,et)},function(W,et){function at(){this.constructor=W}j(W,et),W.prototype=null===et?Object.create(et):(at.prototype=et.prototype,new at)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(98237),_=s(94655);function m(j){return j.bounds=typeof j.leaves<"u"?j.leaves.reduce(function(W,et){return et.bounds.union(W)},p.empty()):p.empty(),typeof j.groups<"u"&&(j.bounds=j.groups.reduce(function(W,et){return m(et).union(W)},j.bounds)),j.bounds=j.bounds.inflate(j.padding),j.bounds}D.computeGroupBounds=m;var p=function(){function j(W,et,at,Y){this.x=W,this.X=et,this.y=at,this.Y=Y}return j.empty=function(){return new j(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},j.prototype.cx=function(){return(this.x+this.X)/2},j.prototype.cy=function(){return(this.y+this.Y)/2},j.prototype.overlapX=function(W){var et=this.cx(),at=W.cx();return et<=at&&W.x0?at[0]:null},j.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},j.lineIntersection=function(W,et,at,Y,nt,rt,q,F){var E=at-W,ut=q-nt,ft=Y-et,Dt=F-rt,St=Dt*E-ut*ft;if(0==St)return null;var Qt=W-nt,pe=et-rt,yt=(ut*pe-Dt*Qt)/St,zt=(E*pe-ft*Qt)/St;return yt>=0&&yt<=1&&zt>=0&&zt<=1?{x:W+yt*E,y:et+yt*ft}:null},j.prototype.inflate=function(W){return new j(this.x-W,this.X+W,this.y-W,this.Y+W)},j}();D.Rectangle=p,D.makeEdgeBetween=function t(j,W,et){var at=j.rayIntersection(W.cx(),W.cy())||{x:j.cx(),y:j.cy()},Y=W.rayIntersection(j.cx(),j.cy())||{x:W.cx(),y:W.cy()},nt=Y.x-at.x,rt=Y.y-at.y,q=Math.sqrt(nt*nt+rt*rt),F=q-et;return{sourceIntersection:at,targetIntersection:Y,arrowStart:{x:at.x+F*nt/q,y:at.y+F*rt/q}}},D.makeEdgeTo=function d(j,W,et){var at=W.rayIntersection(j.x,j.y);at||(at={x:W.cx(),y:W.cy()});var Y=at.x-j.x,nt=at.y-j.y,rt=Math.sqrt(Y*Y+nt*nt);return{x:at.x-et*Y/rt,y:at.y-et*nt/rt}};var l=function j(W,et,at){this.v=W,this.r=et,this.pos=at,this.prev=u(),this.next=u()},h=function j(W,et,at){this.isOpen=W,this.v=et,this.pos=at};function f(j,W){return j.pos>W.pos?1:j.pos0&&(j[at].insert(nt),nt[Y].insert(j))};et("next","prev"),et("prev","next")}};function L(j,W,et,at){void 0===at&&(at=!1);var Y=j.padding,nt=typeof j.groups<"u"?j.groups.length:0,rt=typeof j.leaves<"u"?j.leaves.length:0,q=nt?j.groups.reduce(function(ie,Ot){return ie.concat(L(Ot,W,et,!0))},[]):[],F=(at?2:0)+rt+nt,E=new Array(F),ut=new Array(F),ft=0,Dt=function(ie,Ot){ut[ft]=ie,E[ft++]=Ot};if(at){var St=j.bounds,Qt=W.getCentre(St),pe=W.getSize(St)/2,wt=W.getOpen(St),yt=W.getClose(St),Nt=Qt-pe+Y/2,zt=Qt+pe-Y/2;j.minVar.desiredPosition=Nt,Dt(W.makeRect(wt,yt,Nt,Y),j.minVar),j.maxVar.desiredPosition=zt,Dt(W.makeRect(wt,yt,zt,Y),j.maxVar)}rt&&j.leaves.forEach(function(ie){return Dt(ie.bounds,ie.variable)}),nt&&j.groups.forEach(function(ie){var Ot=ie.bounds;Dt(W.makeRect(W.getOpen(Ot),W.getClose(Ot),W.getCentre(Ot),W.getSize(Ot)),ie.minVar)});var de=I(ut,E,W,et);return nt&&(E.forEach(function(ie){ie.cOut=[],ie.cIn=[]}),de.forEach(function(ie){ie.left.cOut.push(ie),ie.right.cIn.push(ie)}),j.groups.forEach(function(ie){var Ot=(ie.padding-W.getSize(ie.bounds))/2;ie.minVar.cIn.forEach(function(te){return te.gap+=Ot}),ie.minVar.cOut.forEach(function(te){te.left=ie.maxVar,te.gap+=Ot})})),q.concat(de)}function I(j,W,et,at){var Y,nt=j.length,rt=2*nt;console.assert(W.length>=nt);var q=new Array(rt);for(Y=0;Yq[at]&&(q[at]=F)}rt=q})}},j.prototype.createAlignment=function(W){var et=this,at=this.nodes[W.offsets[0].node].variable;this.makeFeasible(W);var Y="x"===W.axis?this.xConstraints:this.yConstraints;W.offsets.slice(1).forEach(function(nt){Y.push(new x.Constraint(at,et.nodes[nt.node].variable,nt.offset,!0))})},j.prototype.createConstraints=function(W){var et=this,at=function(Y){return typeof Y.type>"u"||"separation"===Y.type};this.xConstraints=W.filter(function(Y){return"x"===Y.axis&&at(Y)}).map(function(Y){return et.createSeparation(Y)}),this.yConstraints=W.filter(function(Y){return"y"===Y.axis&&at(Y)}).map(function(Y){return et.createSeparation(Y)}),W.filter(function(Y){return"alignment"===Y.type}).forEach(function(Y){return et.createAlignment(Y)})},j.prototype.setupVariablesAndBounds=function(W,et,at,Y){this.nodes.forEach(function(nt,rt){nt.fixed?(nt.variable.weight=nt.fixedWeight?nt.fixedWeight:1e3,at[rt]=Y(nt)):nt.variable.weight=1;var q=(nt.width||0)/2,F=(nt.height||0)/2,E=W[rt],ut=et[rt];nt.bounds=new p(E-q,E+q,ut-F,ut+F)})},j.prototype.xProject=function(W,et,at){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(W,et,W,at,function(Y){return Y.px},this.xConstraints,H,function(Y){return Y.bounds.setXCentre(at[Y.variable.index]=Y.variable.position())},function(Y){var nt=at[Y.minVar.index]=Y.minVar.position(),rt=at[Y.maxVar.index]=Y.maxVar.position(),q=Y.padding/2;Y.bounds.x=nt-q,Y.bounds.X=rt+q})},j.prototype.yProject=function(W,et,at){!this.rootGroup&&!this.yConstraints||this.project(W,et,et,at,function(Y){return Y.py},this.yConstraints,G,function(Y){return Y.bounds.setYCentre(at[Y.variable.index]=Y.variable.position())},function(Y){var nt=at[Y.minVar.index]=Y.minVar.position(),rt=at[Y.maxVar.index]=Y.maxVar.position(),q=Y.padding/2;Y.bounds.y=nt-q,Y.bounds.Y=rt+q})},j.prototype.projectFunctions=function(){var W=this;return[function(et,at,Y){return W.xProject(et,at,Y)},function(et,at,Y){return W.yProject(et,at,Y)}]},j.prototype.project=function(W,et,at,Y,nt,rt,q,F,E){this.setupVariablesAndBounds(W,et,Y,nt),this.rootGroup&&this.avoidOverlaps&&(m(this.rootGroup),rt=rt.concat(q(this.rootGroup))),this.solve(this.variables,rt,at,Y),this.nodes.forEach(F),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(E),m(this.rootGroup))},j.prototype.solve=function(W,et,at,Y){var nt=new x.Solver(W,et);nt.setStartingPositions(at),nt.setDesiredPositions(Y),nt.solve()},j}();D.Projection=st},33858:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(88866),x=function t(d,l){this.id=d,this.distance=l},_=function t(d){this.id=d,this.neighbours=[]},m=function t(d,l,h){this.node=d,this.prev=l,this.d=h},p=function(){function t(d,l,h,f,u){this.n=d,this.es=l,this.neighbours=new Array(this.n);for(var g=this.n;g--;)this.neighbours[g]=new _(g);for(g=this.es.length;g--;){var C=this.es[g],L=h(C),I=f(C),B=u(C);this.neighbours[L].neighbours.push(new x(I,B)),this.neighbours[I].neighbours.push(new x(L,B))}}return t.prototype.DistanceMatrix=function(){for(var d=new Array(this.n),l=0;lM&&(I.d=M,I.prev=C,h.reduceKey(I.q,I,function(Z,H){return Z.q=H}))}}return u},t}();D.Calculator=p},98237:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function(){function d(l){this.scale=l,this.AB=0,this.AD=0,this.A2=0}return d.prototype.addVariable=function(l){var h=this.scale/l.scale,u=l.weight;this.AB+=u*h*(l.offset/l.scale),this.AD+=u*h*l.desiredPosition,this.A2+=u*h*h},d.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},d}();D.PositionStats=s;var c=function(){function d(l,h,f,u){void 0===u&&(u=!1),this.left=l,this.right=h,this.gap=f,this.equality=u,this.active=!1,this.unsatisfiable=!1,this.left=l,this.right=h,this.gap=f,this.equality=u}return d.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},d}();D.Constraint=c;var x=function(){function d(l,h,f){void 0===h&&(h=1),void 0===f&&(f=1),this.desiredPosition=l,this.weight=h,this.scale=f,this.offset=0}return d.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},d.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},d.prototype.visitNeighbours=function(l,h){var f=function(u,g){return u.active&&l!==g&&h(u,g)};this.cOut.forEach(function(u){return f(u,u.right)}),this.cIn.forEach(function(u){return f(u,u.left)})},d}();D.Variable=x;var _=function(){function d(l){this.vars=[],l.offset=0,this.ps=new s(l.scale),this.addVariable(l)}return d.prototype.addVariable=function(l){l.block=this,this.vars.push(l),this.ps.addVariable(l),this.posn=this.ps.getPosn()},d.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var l=0,h=this.vars.length;l=0?this.inactive.push(l):this.bs.merge(l)}}},d.prototype.solve=function(){this.satisfy();for(var l=Number.MAX_VALUE,h=this.bs.cost();Math.abs(l-h)>1e-4;)this.satisfy(),l=h,h=this.bs.cost();return h},d.LAGRANGIAN_TOLERANCE=-1e-4,d.ZERO_UPPERBOUND=-1e-10,d}();D.Solver=p,D.removeOverlapInOneDimension=function t(d,l,h){for(var f=d.map(function(K){return new x(K.desiredCenter)}),u=[],g=d.length,C=0;C{l.r(et),l.d(et,{FacilitiesModule:()=>So});var m=l(36895),v=l(94364),it=l(86353),V=l(36769),bt=l(69024),h=l(61744),p=l(9244),d=l(81591),M=l(21029),yt=l(54037),vt=l(22158),xt=l(82722),t=l(94650),u=l(65412),Et=l(77968),Dt=l(15003),R=l(97392),S=l(4859),T=l(51572),J=l(10266),st=l(61283),Lt=l(4235),B=l(34198),j=l(55660),f=l(89383);function Zt(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Ot(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editFacility())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Rt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.deleteFacility())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}const Ft=function(){return{color:"black"}},at=function(i){return["/facilities",i]};function Nt(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t.NdJ("auxclick",function(s){return s.preventDefault()}),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,Ot,3,0,"button",10),t.YNc(11,Rt,3,0,"button",10),t.qZA(),t.TgZ(12,"span",11),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.qZA()()(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,11,"FACILITY_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(17,Ft)),t.xp6(4),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(18,at,e.facility.id.toString()))("routerLink",t.VKq(20,at,e.facility.id)),t.xp6(1),t.Oqu(e.facility.name),t.xp6(2),t.hij(" \xa0#",e.facility.id," "),t.xp6(1),t.Q6J("ngIf",e.editFacilityAuth),t.xp6(1),t.Q6J("ngIf",e.deleteAuth),t.xp6(2),t.lnq(" ",t.lcZ(14,13,"FACILITY_DETAIL.ENTITY"),", ",t.lcZ(15,15,"FACILITY_DETAIL.DESCRIPTION"),": ",e.facility.description," ")}}let kt=(()=>{class i extends((0,vt.T)()){constructor(e,s,a,o,r,_,C,b,L){super(),this.dialog=e,this.facilityManager=s,this.route=a,this.sideMenuService=o,this.sideMenuItemService=r,this.guiAuthResolver=_,this.router=C,this.entityStorageService=b,this.reloadEntityDetail=L,this.editFacilityAuth=!1,this.deleteAuth=!1,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,xt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const s=Number(e.facilityId);this.facilityManager.getFacilityById(s).subscribe(a=>{this.facility=a,this.entityStorageService.setEntity({id:a.id,beanName:a.beanName}),this.setMenuItems(),this.editFacilityAuth=this.guiAuthResolver.isAuthorized("updateFacility_Facility_policy",[this.facility]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteFacility_Facility_Boolean_policy",[this.facility]),(0,p.sF)("facilities",this.facility),(0,p.XI)(this.facility),this.loading=!1},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseFacility(this.facility);this.sideMenuService.setFacilityMenuItems([e])}editFacility(){const e=(0,p.kZ)();e.width="450px",e.data={theme:"facility-theme",facility:this.facility,dialogType:M.Eg.FACILITY},this.dialog.open(M.rd,e).afterClosed().subscribe(a=>{a&&this.facilityManager.getFacilityById(this.facility.id).subscribe(o=>{this.facility=o,this.setMenuItems()})})}deleteFacility(){const e=(0,p.kZ)();e.width="500px",e.data={theme:"facility-theme",facility:this.facility},this.dialog.open(yt.Y,e).afterClosed().subscribe(a=>{a&&this.router.navigate([""],{queryParamsHandling:"preserve"})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.IQ),t.Y36(v.gz),t.Y36(Et.D),t.Y36(bt.V),t.Y36(d.x4),t.Y36(v.F0),t.Y36(d.fb),t.Y36(Dt.G))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","facility-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-facility-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"facility-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Zt,1,0,"mat-spinner",1),t.YNc(3,Nt,17,22,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading&&void 0!==s.facility))},dependencies:[m.O5,m.PC,v.yS,R.Hw,S.lW,T.Ou,J.gM,st.A,Lt.W,B.Y,j.Q,f.X$],data:{animation:[V.Ji]}}),i})();var nt=l(71135);function wt(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Yt(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let Ut=(()=>{class i{constructor(e,s,a,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=a,this.routePolicyService=o,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.navItems=[],this.routePolicyService.canNavigate("facilities-resources",this.facility)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/facilities/${this.facility.id}/resources`,label:"MENU_ITEMS.FACILITY.RESOURCES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-users",this.facility)&&this.navItems.push({cssIcon:"perun-user",url:`/facilities/${this.facility.id}/allowed-users`,label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-groups",this.facility)&&this.navItems.push({cssIcon:"perun-group",url:`/facilities/${this.facility.id}/allowed-groups`,label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-status",this.facility)&&this.navItems.push({cssIcon:"perun-service-status",url:`/facilities/${this.facility.id}/services-status`,label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-destinations",this.facility)&&this.navItems.push({cssIcon:"perun-service_destination",url:`/facilities/${this.facility.id}/services-destinations`,label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-hosts",this.facility)&&this.navItems.push({cssIcon:"perun-hosts",url:`/facilities/${this.facility.id}/hosts`,label:"MENU_ITEMS.FACILITY.HOSTS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-attributes",this.facility)&&this.navItems.push({cssIcon:"perun-attributes",url:`/facilities/${this.facility.id}/attributes`,label:"MENU_ITEMS.FACILITY.ATTRIBUTES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings",this.facility)&&this.navItems.push({cssIcon:"perun-settings2",url:`/facilities/${this.facility.id}/settings`,label:"MENU_ITEMS.FACILITY.SETTINGS",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb),t.Y36(d.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-overview"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,s){1&e&&(t.YNc(0,wt,1,0,"mat-spinner",0),t.YNc(1,Yt,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,T.Ou,nt.L]}),i})();var Mt=l(34904),Jt=l(37380),Qt=l(98918),Ht=l(4675);let Gt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:1,vars:0,template:function(e,s){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[st.A],data:{animation:[V.Ji]}}),i})();function Pt(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function qt(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let Vt=(()=>{class i{constructor(e,s,a,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=a,this.routePolicyService=o,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.routePolicyService.canNavigate("facilities-settings-owners",this.facility)&&this.items.push({cssIcon:"perun-owner-grey",url:`/facilities/${this.facility.id}/settings/owners`,label:"MENU_ITEMS.FACILITY.OWNERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-managers",this.facility)&&this.items.push({cssIcon:"perun-manager",url:`/facilities/${this.facility.id}/settings/managers`,label:"MENU_ITEMS.FACILITY.MANAGERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",this.facility)&&this.items.push({cssIcon:"perun-security-teams",url:`/facilities/${this.facility.id}/settings/security-teams`,label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",this.facility)&&this.items.push({cssIcon:"perun-black-list",url:`/facilities/${this.facility.id}/settings/blacklist`,label:"MENU_ITEMS.FACILITY.BLACKLIST",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-bans",this.facility)&&this.items.push({cssIcon:"perun-ban",url:`/facilities/${this.facility.id}/settings/bans`,label:"MENU_ITEMS.FACILITY.BANS",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb),t.Y36(d.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-overview"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,s){1&e&&(t.YNc(0,Pt,1,0,"mat-spinner",0),t.YNc(1,qt,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,T.Ou,nt.L]}),i})();var Q=l(3848),Bt=l(19191),jt=l(12651);function Kt(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"FACILITY_DETAIL.ENTITY")," ")}function zt(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.facility.id)("entity","facility")}}function $t(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"FACILITY_DETAIL.ENTITY")," - ",t.lcZ(2,4,"ADMIN_USER.ENTITY")," ")}function Wt(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","facility")("firstEntityId",e.facility.id)("secondEntity","user")}}function Xt(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,$t,3,6,"ng-template",1),t.YNc(2,Wt,1,3,"ng-template",2),t.qZA())}let te=(()=>{class i{constructor(e,s){this.authResolver=e,this.entityStorageService=s}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityUserAttAuth=this.authResolver.isAuthorized("getAssignedUsers_Facility_policy",[this.facility])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-attributes"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:9,vars:4,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,Kt,2,3,"ng-template",1),t.YNc(7,zt,1,2,"ng-template",2),t.qZA(),t.YNc(8,Xt,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",s.facilityUserAttAuth))},dependencies:[m.O5,Q.SP,Q.uD,Q.uX,Q.Vc,Bt.Y,jt.t,f.X$]}),i})();var ee=l(60113),ie=l(16500),se=l(92090),ae=l(258),g=l(24006),H=l(68675),G=l(54004),F=l(19516),ot=l(47957),lt=l(3238),N=l(59549),K=l(284),Z=l(56709),ct=l(31359);function ne(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedService(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function oe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",7),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedSerVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9)(5,"mat-option",10),t.NdJ("onSelectionChange",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onSelectedService("NOT_SELECTED"))}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-option",10),t.NdJ("onSelectionChange",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onSelectedService("ALL"))}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,ne,2,2,"mat-option",11),t.ALo(12,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,9,"FACILITY_DETAIL.SERVICE_CONFIG.SERVICE_SELECT")),t.Q6J("formControl",s.serviceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.serviceDisplayFn.bind(s)),t.xp6(2),t.Q6J("value","NOT_SELECTED"),t.xp6(1),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED")," "),t.xp6(2),t.Q6J("value","ALL"),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.SERVICE_CONFIG.ALL")," "),t.xp6(2),t.Q6J("ngForOf",t.lcZ(12,15,s.filteredServices))}}function le(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedResource(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ce(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",12),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedResVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,le,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.RES_SELECT")),t.Q6J("formControl",s.resourceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.resourceDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredResources))}}function re(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedGroup(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ue(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",12),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedGroupVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",13,9),t.YNc(5,re,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.GROUP_SELECT")),t.Q6J("formControl",s.groupField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.groupDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredGroups))}}function pe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedMember(o))}),t._uU(1),t.ALo(2,"userFullName"),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.user)," ")}}function de(i,n){if(1&i&&(t.TgZ(0,"mat-form-field",6),t._UZ(1,"input",14),t.ALo(2,"translate"),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,pe,3,4,"mat-option",11),t.ALo(6,"async"),t.qZA()()),2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.MEMBER_SELECT")),t.Q6J("matAutocomplete",e)("formControl",s.memberField),t.xp6(2),t.Q6J("displayWith",s.memberDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredMembers))}}function _e(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",3),t.YNc(1,oe,13,17,"mat-form-field",4),t.TgZ(2,"mat-checkbox",5),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.onOfferAllServices(a))}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,ce,7,9,"mat-form-field",4),t.YNc(6,ue,7,9,"mat-form-field",4),t.YNc(7,de,7,9,"mat-form-field",4),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",void 0!==e.services),t.xp6(2),t.hij(" ",t.lcZ(4,5,"FACILITY_DETAIL.SERVICE_CONFIG.ALL_SERVICES")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.resources&&0!==e.resources.length),t.xp6(1),t.Q6J("ngIf",void 0!==e.selectedResource&&void 0!==e.groups&&0!==e.groups.length),t.xp6(1),t.Q6J("ngIf",void 0!==e.selectedGroup&&void 0!==e.members&&0!==e.members.length)}}function me(i,n){if(1&i&&t._UZ(0,"perun-web-apps-service-configurator",15),2&i){const e=t.oxw();t.Q6J("facility",e.facility)("resource",e.selectedResource)("group",e.selectedGroup)("member",e.selectedMember)("service",e.selectedService)}}let he=(()=>{class i{constructor(e,s,a,o,r,_,C){this.facilityManager=e,this.resourceManager=s,this.serviceManager=a,this.membersManager=o,this.namePipe=r,this.translate=_,this.entityStorageService=C,this.serviceField=new g.p4,this.resourceField=new g.p4,this.groupField=new g.p4,this.memberField=new g.p4,this.allowedStatuses=["INVALID","VALID"],this.selectedService="NOT_SELECTED",this.attrNames=[],this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.ALL").subscribe(b=>this.serviceAllTranslation=b),this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED").subscribe(b=>this.serviceNotSelectedTranslation=b)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(s=>this.resources=s),this.serviceManager.getAssignedServices(e.id).subscribe(s=>this.services=s)}),this.filteredServices=this.serviceField.valueChanges.pipe((0,H.O)(""),(0,G.U)(e=>this._filterServices(e))),this.filteredResources=this.resourceField.valueChanges.pipe((0,H.O)(""),(0,G.U)(e=>this._filterResources(e))),this.filteredGroups=this.groupField.valueChanges.pipe((0,H.O)(""),(0,G.U)(e=>this._filterGroups(e))),this.filteredMembers=this.memberField.valueChanges.pipe((0,H.O)(""),(0,G.U)(e=>this._filterMembers(e)))}onSelectedService(e){this.selectedService=e}onSelectedResource(e){this.selectedResource=e,void 0!==this.selectedResource?(this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(s=>this.groups=s),this.selectedGroup=void 0,this.selectedMember=void 0):this.groups=void 0}onOfferAllServices(e){e.checked||this.serviceManager.getAssignedServices(this.facility.id).subscribe(s=>this.services=s)}onSelectedGroup(e){this.selectedGroup=e,void 0!==this.selectedGroup?(this.membersManager.getCompleteRichMembersForGroup(this.selectedGroup.id,!1,this.allowedStatuses,[],this.attrNames).subscribe(s=>this.members=s),this.selectedMember=void 0):this.members=void 0}onSelectedMember(e){this.selectedMember=e}serviceDisplayFn(e){if(null!==e)return"ALL"===e?this.serviceAllTranslation:"NOT_SELECTED"===e?this.serviceNotSelectedTranslation:"string"!=typeof e?e.name:e}resourceDisplayFn(e){if(null!==e)return e.name}groupDisplayFn(e){if(null!==e)return e.name}memberDisplayFn(e){if(null!==e)return this.namePipe.transform(e.user)}updatedSerVal(e){""===e.target.value&&(this.selectedService="NOT_SELECTED")}updatedResVal(e){""===e.target.value&&(this.groups=void 0,this.members=void 0)}updatedGroupVal(e){""===e.target.value&&(this.members=void 0)}_filterServices(e){const s=e.toString().toLowerCase();return this.services.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterResources(e){const s=e.toString().toLowerCase();return this.resources.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterGroups(e){const s=e.toString().toLowerCase();return this.groups.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterMembers(e){const s=e.toString().toLowerCase();return this.members.filter(a=>this.namePipe.transform(a.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(h.xk),t.Y36(h.KK),t.Y36(h.uq),t.Y36(F.dp),t.Y36(f.sK),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-service-config"]],decls:6,vars:5,consts:[[1,"page-subtitle"],["class","col-12 col-lg-6 mb-2",4,"ngIf"],[3,"facility","resource","group","member","service",4,"ngIf"],[1,"col-12","col-lg-6","mb-2"],["class","w-100",4,"ngIf"],[3,"change"],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keyup"],["autoActiveFirstOption","",3,"displayWith"],["auto","matAutocomplete"],[3,"value","onSelectionChange"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],["matInput","","type","text",3,"formControl","matAutocomplete","placeholder","keyup"],["autoActiveFirstOption","",3,"displayWith","ngClass"],["matInput","","type","text",3,"matAutocomplete","placeholder","formControl"],[3,"facility","resource","group","member","service"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,_e,8,7,"div",1),t.YNc(5,me,1,5,"perun-web-apps-service-configurator",2),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"FACILITY_DETAIL.SERVICE_CONFIG.TITLE")),t.xp6(2),t.Q6J("ngIf",!!s.facility),t.xp6(1),t.Q6J("ngIf",!!s.facility))},dependencies:[m.mk,m.sg,m.O5,ot.XC,ot.ZL,lt.ey,N.KE,K.Nt,g.Fj,g.JJ,g.oH,Z.oG,m.Ov,f.X$,ct.d]}),i})();var rt=l(28361);let ut=(()=>{class i{constructor(e,s,a){this.facilityService=e,this.guiAuthResolver=s,this.entityStorageService=a,this.disableRouting=!1,this.disableSelf=!1,this.availableRoles=[],this.selected="user",this.type="Facility",this.theme="facility-theme"}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-settings-managers"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},inputs:{disableRouting:"disableRouting",disableSelf:"disableSelf"},decls:1,vars:6,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","disableSelf","disableRouting","theme"]],template:function(e,s){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",s.facility)("availableRoles",s.availableRoles)("complementaryObjectType",s.type)("disableSelf",s.disableSelf)("disableRouting",s.disableRouting)("theme",s.theme)},dependencies:[rt.s]}),i})();var x=l(10036),A=l(95017),fe=l(89466),ge=l(84385);function Te(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Se(i,n){1&i&&(t.TgZ(0,"mat-option",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.SELECTION_ALL")))}function Ce(i,n){1&i&&(t.TgZ(0,"mat-option",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.NO_SERVICE")))}function Ae(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Ie(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.CHOOSE_SERVICE")," "))}function be(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit,s=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.hij(" ",s.getTypeForView(e)," ")}}function ye(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.REQUIRED_FIELD")," "))}function ve(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.INVALID_DESTINATION")," "))}function xe(i,n){if(1&i&&(t.TgZ(0,"mat-form-field",22),t._UZ(1,"input",23),t.YNc(2,ye,3,3,"mat-error",13),t.YNc(3,ve,3,3,"mat-error",13),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.s9C("placeholder",e.getTypeForView(e.selectedType)),t.Q6J("formControl",e.destinationControl),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType&&!e.useFacilityHost&&e.destinationControl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.destinationControl.hasError("invalidDestination"))}}function Ee(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.useFacilityHost=a)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("ngModel",e.useFacilityHost),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_SERVICE_DESTINATION.USE_FACILITY_HOST")," ")}}function De(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Le(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field")(5,"mat-select",9),t.ALo(6,"translate"),t.YNc(7,Se,3,3,"mat-option",10),t.YNc(8,Ce,3,3,"mat-option",11),t.YNc(9,Ae,2,2,"mat-option",12),t.qZA(),t.YNc(10,Ie,3,3,"mat-error",13),t.qZA(),t.TgZ(11,"mat-checkbox",14),t.NdJ("change",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getServices())})("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.servicesOnFacility=a)}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"mat-form-field")(15,"mat-select",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.selectedType=a)})("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.destinationControl.updateValueAndValidity())}),t.ALo(16,"translate"),t.YNc(17,be,2,2,"mat-option",12),t.qZA()(),t.YNc(18,xe,4,4,"mat-form-field",16),t.YNc(19,Ee,3,4,"mat-checkbox",17),t.TgZ(20,"mat-form-field")(21,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.selectedPropagation=a)}),t.ALo(22,"translate"),t.YNc(23,De,2,2,"mat-option",12),t.qZA()(),t.TgZ(24,"div",8),t._uU(25),t.ALo(26,"translate"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,18,"DIALOGS.ADD_SERVICE_DESTINATION.DESCRIPTION")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,20,"DIALOGS.ADD_SERVICE_DESTINATION.SERVICE")),t.Q6J("formControl",e.serviceControl),t.xp6(2),t.Q6J("ngIf",0!==e.services.length),t.xp6(1),t.Q6J("ngIf",0===e.services.length),t.xp6(1),t.Q6J("ngForOf",e.services),t.xp6(1),t.Q6J("ngIf",void 0===e.serviceControl.value),t.xp6(1),t.Q6J("ngModel",e.servicesOnFacility),t.xp6(1),t.Oqu(t.lcZ(13,22,"DIALOGS.ADD_SERVICE_DESTINATION.IS_SERVICES_ONLY_ON_FACILITY")),t.xp6(3),t.s9C("placeholder",t.lcZ(16,24,"DIALOGS.ADD_SERVICE_DESTINATION.TYPE")),t.Q6J("ngModel",e.selectedType),t.xp6(2),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf",!("host"===e.selectedType&&e.useFacilityHost)),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION")),t.Q6J("ngModel",e.selectedPropagation),t.xp6(2),t.Q6J("ngForOf",e.propagations),t.xp6(2),t.hij(" ",t.lcZ(26,28,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION_TYPE_"+e.selectedPropagation)," ")}}let Ze=(()=>{class i{constructor(e,s,a,o){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.servicesManager=o,this.services=[],this.types=["host","user@host","user@host:port","user@host-windows","host-windows-proxy","url","email","semail","service-specific"],this.selectedType="host",this.propagations=["PARALLEL","DUMMY"],this.selectedPropagation="PARALLEL",this.useFacilityHost=!1,this.loading=!1,this.emailRegex=new RegExp(p.B2),this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$"),this.urlPattern=new RegExp("^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;()*$']*[-a-zA-Z0-9+&@#/%=~_|()*$']$"),this.userAtHostPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$)"),this.userAtHostPortPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}):[0-9]+"),this.serviceSpecificPattern=new RegExp("^(?!-)[a-zA-Z0-9-_.:/]*$")}ngOnInit(){this.serviceControl=new g.p4(void 0,g.kI.required),this.destinationControl=new g.p4("",this.getDestinationValidator()),this.emailControl=new g.p4("",[g.kI.required,g.kI.pattern(this.emailRegex)]),this.servicesOnFacility=!0,this.getServices()}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"all"===this.serviceControl.value?this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility({services:this.services,facility:this.data.facility.id}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestinationToMultipleServices({services:this.services,facility:this.data.facility.id,destination:this.destinationControl.value,type:this.selectedType,propagationType:this.selectedPropagation}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(this.serviceControl.value.id,this.data.facility.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestination(this.serviceControl.value.id,this.data.facility.id,this.destinationControl.value,this.selectedType,this.selectedPropagation).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getServices(){this.loading=!0,this.servicesOnFacility?0!==this.data.configServices.length?this.services=this.data.configServices:this.servicesManager.getAssignedServices(this.data.facility.id).subscribe(e=>{this.services=e},()=>this.loading=!1):this.servicesManager.getServices().subscribe(e=>{this.services=e},()=>this.loading=!1),this.loading=!1,this.serviceControl.setValue(void 0)}getTypeForView(e){return"semail"===e?"Send Mail":"service-specific"===e?"Service Specific":e}invalidDestination(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}getDestinationValidator(){return e=>{if(!e.value)return null;let s;switch(this.selectedType){case"host":case"host-windows-proxy":s=this.hostPattern;break;case"email":case"semail":s=this.emailRegex;break;case"url":s=this.urlPattern;break;case"user@host":case"user@host-windows":s=this.userAtHostPattern;break;case"user@host:port":s=this.userAtHostPortPattern;break;case"service-specific":s=this.serviceSpecificPattern;break;default:return null}return s.test(e.value)?null:{invalidDestination:{value:e.value}}}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.IQ),t.Y36(h.KK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-add-services-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-italic"],["required","",3,"formControl","placeholder"],["value","all",4,"ngIf"],["value","noService",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],["class","w-100",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],[3,"ngModel","placeholder","ngModelChange"],["value","all"],["value","noService"],[3,"value"],[1,"w-100"],["matInput","","required","",3,"formControl","placeholder"],[3,"ngModel","ngModelChange"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Te,1,0,"mat-spinner",1),t.YNc(5,Le,27,30,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(s.data.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||s.invalidDestination()||s.serviceControl.invalid||"noService"===s.serviceControl.value),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},dependencies:[m.sg,m.O5,lt.ey,N.TO,N.KE,K.Nt,g.Fj,g.JJ,g.Q7,g.oH,g.On,S.lW,Z.oG,u.uh,u.xY,u.H8,ge.gD,T.Ou,f.X$],data:{animation:[V.BQ]}}),i})();var pt=l(70242),O=l(98380),E=l(96214),D=l(7434);function Oe(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.DESTINATIONS_INFO")," "))}function Re(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addDestination())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function Fe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeDestination())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function Ne(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAllow())}),t.TgZ(1,"mat-icon"),t._uU(2," check_circle_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedAllowed()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function ke(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onBlock())}),t.TgZ(1,"mat-icon"),t._uU(2," block "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedBlocked()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function we(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function Ye(i,n){if(1&i&&t._UZ(0,"app-perun-web-apps-destination-list",14),2&i){const e=t.oxw();t.Q6J("filterValue",e.filterValue)("selection",e.selected)("destinations",e.destinations)("services",e.configServicesIds)("displayedColumns",e.displayedColumns)("tableId",e.tableId)}}let dt=(()=>{class i{constructor(e,s,a,o,r,_,C,b){this.dialog=e,this.facilitiesManager=s,this.servicesManager=a,this.translate=o,this.notificator=r,this.authResolver=_,this.serviceManager=C,this.entityStorageService=b,this.displayedColumns=["select","destinationId","service","destination","type","status","propagationType"],this.configServices=[],this.configServicesIds=new Set,this.title="FACILITY_DETAIL.SERVICES_DESTINATIONS.TITLE",this.destinationEmitter=new t.vpe,this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.Cf}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.servicesManager.getAllRichDestinationsForFacility(this.facility.id).subscribe(e=>{this.destinations=e,this.destinationEmitter.emit(this.destinations),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addDestination_Service_Facility_Destination_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeDestination_Service_Facility_Destination_policy",[this.facility]),this.allowAuth=this.authResolver.isAuthorized("unblockServiceOnDestination_Service_int_policy",[this.facility]),this.blockAuth=this.authResolver.isAuthorized("blockServiceOnDestination_Service_int_policy",[this.facility]),this.displayedColumns=this.removeAuth?this.displayedColumns:this.displayedColumns.filter(e=>"select"!==e)}addDestination(){const e=(0,p.kZ)();e.width="600px",e.data={facility:this.facility,theme:"facility-theme",configServices:this.configServices},this.dialog.open(Ze,e).afterClosed().subscribe(a=>{a&&(this.refreshTable(),this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS")))})}removeDestination(){const e=(0,p.kZ)();e.width="600px",e.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(fe.u,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}blockServicesOnDestinations(e){this.serviceManager.blockServicesOnDestinations({richDestinations:e}).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK_SUCCESS")),this.refreshTable()},error:()=>this.loading=!1})}onBlock(){this.loading=!0,this.blockServicesOnDestinations(this.selected.selected)}allowServicesOnDestinations(e){this.serviceManager.unblockServicesOnDestinations({richDestinations:e}).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW_SUCCESS")),this.refreshTable()},error:()=>this.loading=!1})}onAllow(){this.loading=!0,this.allowServicesOnDestinations(this.selected.selected)}applyFilter(e){this.filterValue=e}allSelectedAllowed(){return this.selected.selected.reduce((e,s)=>e&&!s.blocked,!0)}allSelectedBlocked(){return this.selected.selected.reduce((e,s)=>e&&s.blocked,!0)}}return i.id="FacilityServicesDestinationsComponent",i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.IQ),t.Y36(h.KK),t.Y36(d.Te),t.Y36(d.V6),t.Y36(d.x4),t.Y36(h.KK),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-services-destinations"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},inputs:{displayedColumns:"displayedColumns",configServices:"configServices",configServicesIds:"configServicesIds",title:"title",loading:"loading"},outputs:{destinationEmitter:"destinationEmitter"},decls:13,vars:11,consts:[[1,"page-subtitle"],["alert_type","info",4,"ngIf"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","mat-stroked-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"filterValue","selection","destinations","services","displayedColumns","tableId",4,"ngIf"],["alert_type","info"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"filterValue","selection","destinations","services","displayedColumns","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Oe,3,3,"perun-web-apps-alert",1),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,Re,3,3,"button",3),t.YNc(7,Fe,3,4,"button",4),t.YNc(8,Ne,5,4,"button",5),t.YNc(9,ke,5,4,"button",5),t.TgZ(10,"perun-web-apps-immediate-filter",6),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(11,we,1,0,"mat-spinner",7),t.YNc(12,Ye,1,6,"app-perun-web-apps-destination-list",8),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,9,s.title)),t.xp6(2),t.Q6J("ngIf",s.title.includes("CONFIG")),t.xp6(2),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,R.Hw,S.lW,T.Ou,pt.q,O.w,E.t,D.L,f.X$]}),i})();var z=l(23256);function Ue(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Me(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t.TgZ(2,"div",5),t._UZ(3,"perun-web-apps-owners-list",6),t.qZA(),t.TgZ(4,"div",7)(5,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(9),t.ALo(10,"translate"),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_OWNERS.FILTER"),t.xp6(2),t.Q6J("filterValue",e.filterValue)("selection",e.selection)("owners",e.owners)("tableId",e.tableId),t.xp6(3),t.hij(" ",t.lcZ(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||e.loading),t.xp6(1),t.hij(" ",t.lcZ(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}let Je=(()=>{class i{constructor(e,s,a,o,r,_){this.dialogRef=e,this.data=s,this.notificator=a,this.translate=o,this.ownersManagerService=r,this.facilitiesManagerService=_,this.extSources=[],this.selection=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.BV,this.owners=[]}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=e.filter(s=>!this.data.forbiddenOwners.includes(s.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}onAdd(){this.loading=!0;const e=this.selection.selected.map(s=>s.id);this.facilitiesManagerService.addFacilityOwners(this.data.facilityId,e).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_OWNERS.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(d.Te),t.Y36(h.aC),t.Y36(h.IQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-facility-owner-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"font-size-1rem",3,"placeholder","filter"],["mat-dialog-content",""],[3,"filterValue","selection","owners","tableId"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Ue,1,0,"mat-spinner",1),t.YNc(5,Me,11,12,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,u.uh,u.xY,u.H8,T.Ou,D.L,z.Q,f.X$]}),i})();var c=l(30671);function Qe(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function He(i,n){1&i&&t._UZ(0,"th",15)}function Ge(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Pe(i,n){1&i&&t._UZ(0,"tr",17)}function qe(i,n){1&i&&t._UZ(0,"tr",18)}function Ve(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,He,1,0,"th",11),t.YNc(10,Ge,2,1,"td",12),t.BQk(),t.YNc(11,Pe,1,0,"tr",13),t.YNc(12,qe,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_OWNERS.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_OWNERS.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Be=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.notificator=a,this.translate=o,this.facilitiesManagerService=r,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new c.by(this.data.owners),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=this.data.owners.map(s=>s.id);this.facilitiesManagerService.removeFacilityOwners(this.data.facilityId,e).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_OWNERS.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(d.Te),t.Y36(h.IQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-facility-owner-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Qe,1,0,"mat-spinner",1),t.YNc(5,Ve,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},dependencies:[m.O5,S.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,f.X$]}),i})();function je(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function Ke(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function ze(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function $e(i,n){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("owners",e.owners)("selection",e.selection)("tableId",e.tableId)}}let _t=(()=>{class i{constructor(e,s,a,o){this.facilitiesManagerService=e,this.dialog=s,this.authResolver=a,this.entityStorageService=o,this.ownerEmitter=new t.vpe,this.owners=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=x.zp}ngOnInit(){this.filterValue="",this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.facilitiesManagerService.getFacilityOwners(this.facility.id).subscribe(e=>{this.owners=e,this.ownerEmitter.emit(this.owners),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addOwner_Facility_Owner_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeOwner_Facility_Owner_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","contact","type"]:["id","name","contact","type"]}applyFilter(e){this.filterValue=e}onCreate(){const e=(0,p.kZ)();e.width="800px",e.data={theme:"facility-theme",facilityId:this.facility.id,forbiddenOwners:this.owners.map(a=>a.id)},this.dialog.open(Je,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facility.id},this.dialog.open(Be,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(u.uw),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-owners"]],outputs:{ownerEmitter:"ownerEmitter"},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","owners","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","owners","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(4,je,3,3,"button",2),t.YNc(5,Ke,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(7,ze,1,0,"mat-spinner",5),t.YNc(8,$e,1,5,"perun-web-apps-owners-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"FACILITY_DETAIL.SETTINGS.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,T.Ou,E.t,D.L,z.Q,f.X$]}),i})();var We=l(22308);function Xe(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function ti(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function ei(i,n){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.AsE(" ",t.lcZ(2,2,"DIALOGS.ADD_HOST.INVALID_HOST")," ",e.hostsCtrl.getError("invalidHost").value," ")}}function ii(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"mat-form-field")(2,"textarea",8),t.ALo(3,"translate"),t._uU(4," "),t.qZA(),t.YNc(5,ti,3,3,"mat-error",9),t.YNc(6,ei,3,4,"mat-error",9),t.qZA(),t.TgZ(7,"perun-web-apps-alert",10),t._uU(8),t.ALo(9,"translate"),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Q6J("formControl",e.hostsCtrl)("placeholder",t.lcZ(3,5,"DIALOGS.ADD_HOST.SUBTITLE")),t.xp6(3),t.Q6J("ngIf",e.hostsCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hostsCtrl.hasError("invalidHost")),t.xp6(2),t.Oqu(t.lcZ(9,7,"DIALOGS.ADD_HOST.HINT"))}}let si=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.notificator=o,this.translate=r,this.loading=!1,this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$")}static parseRange(e){const[s,a]=e.split("-");return[parseInt(s.substring(1,s.length),10),parseInt(a.substring(0,a.length),10)]}ngOnInit(){this.theme=this.data.theme,this.hostsCtrl=new g.p4("",[g.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const e=this.hostsCtrl.value.split("\n");let s=[];for(const a of e)s=s.concat(this.parseHostName(a));this.facilitiesManager.addHosts(this.data.facilityId,s).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}hostsNameValidator(){return e=>{let s=[];const a=e.value.split("\n");for(const o of a)s=s.concat(this.parseHostName(o));for(const o of s)if(!this.hostPattern.test(o))return{invalidHost:{value:o}};return null}}parseHostName(e){const s=new RegExp("[[0-9]+-[0-9]+]","g"),a=e.split(s),o=e.match(s);if(null==o)return""===e?[]:[e];let r=[];for(let _=0;_{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.notificator=o,this.translate=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.hosts=this.data.hosts,this.dataSource=new c.by(this.data.hosts)}onConfirm(){this.loading=!0,this.facilitiesManager.removeHosts(this.data.facilityId,this.hosts.map(e=>e.id)).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.IQ),t.Y36(d.V6),t.Y36(f.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-host-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,ai,1,0,"mat-spinner",1),t.YNc(5,ri,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_HOST.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_HOST.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_HOST.CONFIRM")," "))},dependencies:[m.O5,S.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,f.X$]}),i})();var I=l(96308),k=l(18750),mt=l(64597),w=l(9185),Y=l(8231),U=l(14849);function pi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",15)(1,"mat-checkbox",16),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}const di=function(i){return{name:i}};function _i(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",17)(1,"mat-checkbox",18),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(7,di,e.hostname)))("checked",s.selection.isSelected(e))}}function mi(i,n){1&i&&(t.ynx(0,12),t.YNc(1,pi,4,7,"th",13),t.YNc(2,_i,4,9,"td",14),t.BQk())}function hi(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_ID")," "))}function fi(i,n){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function gi(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_NAME")," "))}function Ti(i,n){if(1&i&&(t.TgZ(0,"td",21),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&i){const e=n.$implicit;t.uIk("data-cy",t.lcZ(1,2,e.hostname)),t.xp6(2),t.hij(" ",e.hostname," ")}}function Si(i,n){1&i&&t._UZ(0,"tr",22)}const ht=function(i,n){return["/facilities",i,"hosts",n]};function Ci(i,n){if(1&i&&t._UZ(0,"tr",23),2&i){const e=n.$implicit,s=t.oxw();t.Q6J("perunWebAppsMiddleClickRouterLink",s.disableRouting?null:t.WLB(2,ht,s.facilityId.toString(),e.id.toString()))("routerLink",s.disableRouting?null:t.WLB(5,ht,s.facilityId,e.id))}}function Ai(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ii(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.NO_HOST_WARNING"),"\n"))}const bi=function(i){return{all:i}};let ft=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.hosts=[],this.selection=new A.Ov(!0,[]),this.disableRouting=!1,this.displayedColumns=["select","id","name"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"name":return e.hostname;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new c.by(this.hosts),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-hosts-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",tableId:"tableId",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},features:[t.TTD],decls:15,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,mi,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,hi,3,3,"th",5),t.YNc(7,fi,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,gi,3,3,"th",5),t.YNc(10,Ti,3,4,"td",8),t.BQk(),t.YNc(11,Si,1,0,"tr",9),t.YNc(12,Ci,1,8,"tr",10),t.qZA()()(),t.YNc(13,Ai,3,3,"perun-web-apps-alert",11),t.YNc(14,Ii,3,3,"perun-web-apps-alert",11)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.hosts.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,bi,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(8),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.hosts.length),t.xp6(1),t.Q6J("ngIf",0===s.hosts.length))},dependencies:[m.O5,v.rH,I.YE,I.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,Z.oG,O.w,B.Y,j.Q,k.l,f.X$,mt.R,w.I,Y.G,U.r],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function yi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addHost())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.HOSTS.ADD")," "))}function vi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeHost())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.HOSTS.REMOVE")," ")}}function xi(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Ei(i,n){if(1&i&&t._UZ(0,"app-hosts-list",10),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth||e.disableRouting)("filterValue",e.filterValue)("hosts",e.hosts)("selection",e.selected)("displayedColumns",e.displayedColumns)("facilityId",e.facility.id)("tableId",e.tableId)}}let gt=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=a,this.entityStorageService=o,this.disableRouting=!1,this.hostEmitter=new t.vpe,this.hosts=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.eq,this.displayedColumns=["id","name"]}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.facilitiesManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getHosts(this.facility.id).subscribe(e=>{this.hosts=e,this.hostEmitter.emit(this.hosts),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addHosts_Facility_List_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeHosts_List_Facility_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"],0!==this.hosts.length&&(this.routeAuth=this.authResolver.isAuthorized("getHostById_int_policy",[this.facility,this.hosts[0]]))}addHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(si,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(ui,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts"]],inputs:{disableRouting:"disableRouting"},outputs:{hostEmitter:"hostEmitter"},decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","hosts","selection","displayedColumns","facilityId","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","hosts","selection","displayedColumns","facilityId","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(5,yi,3,3,"button",2),t.YNc(6,vi,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(8,xi,1,0,"mat-spinner",5),t.YNc(9,Ei,1,7,"app-hosts-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,T.Ou,ft,E.t,D.L,f.X$]}),i})();function Di(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}const Li=function(i){return{name:i}};function Zi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.ALo(4,"userFullName"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(9,Li,t.lcZ(4,7,e[1]))))("checked",s.selection.isSelected(e))}}function Oi(i,n){1&i&&(t.ynx(0,13),t.YNc(1,Di,4,7,"th",14),t.YNc(2,Zi,5,11,"td",15),t.BQk())}function Ri(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")," "))}function Fi(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e[1].id," ")}}function Ni(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")," "))}function ki(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e[1])," ")}}function wi(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")," "))}function Yi(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e[0].description," ")}}function Ui(i,n){1&i&&t._UZ(0,"tr",23)}function Mi(i,n){1&i&&t._UZ(0,"tr",24)}function Ji(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Qi(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}const Hi=function(i){return{all:i}};let Gi=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.bansOnFacilitiesWithUsers=[],this.selection=new A.Ov(!0,[]),this.pageSizeOptions=p.f7,this.displayedColumns=["select","userId","name","reason"]}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"userId":return e[1].id.toString();case"reason":return e[0].description;case"name":return(0,p.hu)(e[1]);default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"userId"!==e)),this.dataSource=new c.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",tableId:"tableId"},features:[t.TTD],decls:18,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","userId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","reason"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,Oi,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Ri,3,3,"th",5),t.YNc(7,Fi,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Ni,3,3,"th",5),t.YNc(10,ki,3,3,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,wi,3,3,"th",5),t.YNc(13,Yi,2,1,"td",8),t.BQk(),t.YNc(14,Ui,1,0,"tr",10),t.YNc(15,Mi,1,0,"tr",11),t.qZA()()(),t.YNc(16,Ji,3,3,"perun-web-apps-alert",12),t.YNc(17,Qi,3,3,"perun-web-apps-alert",12)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Hi,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(11),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("ngIf",0===s.bansOnFacilitiesWithUsers.length))},dependencies:[m.O5,I.YE,I.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,Z.oG,O.w,k.l,f.X$,ct.d,w.I,Y.G,U.r]}),i})();function Pi(i,n){1&i&&t._UZ(0,"mat-spinner",5)}function qi(i,n){if(1&i&&t._UZ(0,"app-perun-web-apps-blacklist-list",6),2&i){const e=t.oxw();t.Q6J("bansOnFacilitiesWithUsers",e.bansOnFacilitiesWithUsers)("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let Vi=(()=>{class i{constructor(e,s,a){this.facilitiesManager=e,this.usersManager=s,this.entityStorageService=a,this.bansOnFacilitiesWithUsers=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.NG}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getBansForFacility(this.facility.id).subscribe(e=>{const s=e;for(const a of s){let o;this.usersManager.getUserById(a.userId).subscribe(r=>{o=r}),this.bansOnFacilitiesWithUsers.push([a,o])}this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(h.Fv),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-settings-blacklist"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"bansOnFacilitiesWithUsers","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"bansOnFacilitiesWithUsers","filterValue","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.ALo(6,"translate"),t.qZA(),t.YNc(7,Pi,1,0,"mat-spinner",3),t.YNc(8,qi,1,4,"app-perun-web-apps-blacklist-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),t.xp6(3),t.Q6J("placeholder",t.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,T.Ou,Gi,E.t,D.L,f.X$]}),i})();var Bi=l(37433),ji=l(61365),Ki=l(71103),Tt=l(53984);const zi=["list"];function $i(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Wi(i,n){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&i){const e=t.oxw();t.Q6J("selection",e.selected)("attributes",e.attributes)("tableId",e.tableId)}}let Xi=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.attributesManager=s,this.facilityManager=a,this.route=o,this.attributes=[],this.selected=new A.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=x.rF}ngOnInit(){this.route.params.subscribe(e=>{this.hostId=Number(e.hostId),this.facilityManager.getHostById(this.hostId).subscribe(s=>{this.host=s}),this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(e=>{this.attributes=(0,p.MX)(e),this.selected.clear(),this.loading=!1})}onSave(){this.list.updateMapAttributes();const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(M.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}addAttribute(){const e=(0,p.kZ)();e.width="1050px",e.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(Ki.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}removeAttribute(){const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(ji.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.H8),t.Y36(h.IQ),t.Y36(v.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts-detail"]],viewQuery:function(e,s){if(1&e&&t.Gf(zi,5),2&e){let a;t.iGM(a=t.CRH())&&(s.list=a.first)}},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return s.addAttribute()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return s.onSave()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.removeAttribute()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.YNc(14,$i,1,0,"mat-spinner",5),t.YNc(15,Wi,2,3,"perun-web-apps-attributes-list",6),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,9,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",s.host.hostname," "),t.xp6(4),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,T.Ou,E.t,Tt.p,f.X$]}),i})();function ts(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}const es=function(i){return{name:i}};function is(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(7,es,e.name)))("checked",s.selection.isSelected(e))}}function ss(i,n){1&i&&(t.ynx(0,13),t.YNc(1,ts,4,7,"th",14),t.YNc(2,is,4,9,"td",15),t.BQk())}function as(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")," "))}function ns(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function os(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")," "))}function ls(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function cs(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")," "))}function rs(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.description)}}function us(i,n){1&i&&t._UZ(0,"tr",23)}function ps(i,n){1&i&&t._UZ(0,"tr",24)}function ds(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function _s(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}const ms=function(i){return{all:i}};let hs=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.securityTeams=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","name","description"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"name":return e.name;case"description":return e.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new c.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-security-teams-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:18,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,ss,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,as,3,3,"th",5),t.YNc(7,ns,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,os,3,3,"th",5),t.YNc(10,ls,2,1,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,cs,3,3,"th",5),t.YNc(13,rs,2,1,"td",8),t.BQk(),t.YNc(14,us,1,0,"tr",10),t.YNc(15,ps,1,0,"tr",11),t.qZA()()(),t.YNc(16,ds,3,3,"perun-web-apps-alert",12),t.YNc(17,_s,3,3,"perun-web-apps-alert",12)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.securityTeams.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,ms,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(11),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.securityTeams.length),t.xp6(1),t.Q6J("ngIf",0===s.securityTeams.length))},dependencies:[m.O5,I.YE,I.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,Z.oG,O.w,k.l,f.X$,w.I,Y.G,U.r]}),i})();function fs(i,n){1&i&&t._UZ(0,"mat-spinner",5)}function gs(i,n){if(1&i&&t._UZ(0,"app-security-teams-list",6),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("securityTeams",e.securityTeams)("selection",e.selected)("tableId",e.tableId)}}let Ts=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=a,this.entityStorageService=o,this.securityTeams=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.O9,this.displayedColumns=[]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(e=>{this.securityTeams=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("assignSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","description"]:["id","name","description"]}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-security-teams"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","securityTeams","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","securityTeams","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(6,fs,1,0,"mat-spinner",3),t.YNc(7,gs,1,5,"app-security-teams-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),t.xp6(3),t.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,T.Ou,hs,E.t,D.L,f.X$]}),i})();var Ss=l(20057),Cs=l(49546);function As(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Is(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")," "))}function bs(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function ys(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")," "))}function vs(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.destination.destination)}}function xs(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function Es(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function Ds(i,n){1&i&&t._UZ(0,"tr",19)}function Ls(i,n){1&i&&t._UZ(0,"tr",20)}function Zs(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Is,3,3,"th",11),t.YNc(10,bs,2,1,"td",12),t.BQk(),t.ynx(11,13),t.YNc(12,ys,3,3,"th",11),t.YNc(13,vs,2,1,"td",12),t.BQk(),t.ynx(14,14),t.YNc(15,xs,3,3,"th",11),t.YNc(16,Es,3,4,"td",12),t.BQk(),t.YNc(17,Ds,1,0,"tr",15),t.YNc(18,Ls,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let St=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.taskManager=a,this.notificator=o,this.translate=r,this.loading=!1,this.dataSource=new c.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}ngOnInit(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}onDelete(){this.loading=!0;const e=this.taskResults.map(s=>s.id);this.taskManager.deleteTaskResultsByIds(e).subscribe({next:()=>{this.dialogRef.close(!0),this.loading=!1,this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_TASK_RESULT.SUCCESS"))},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.Ob),t.Y36(d.V6),t.Y36(d.Te))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-task-result-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","time"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,As,1,0,"mat-spinner",1),t.YNc(5,Zs,19,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onDelete()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},dependencies:[m.O5,S.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,m.uU,f.X$]}),i})();var Os=l(62109);function Rs(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",13),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.change(a))}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function Ns(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",14),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.change(a))}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskResultsChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function ks(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-resources-list",15),t.NdJ("allSelected",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.disableCheckboxes(a))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("displayedColumns",e.displayedColumns)("disableRouting",!0)("resources",e.resources)("selection",e.selected)("tableId",e.tableId)}}function ws(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t.YNc(5,Fs,4,9,"mat-checkbox",8),t.YNc(6,Ns,4,9,"mat-checkbox",9),t.TgZ(7,"mat-checkbox",10),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.change(a))}),t.ALo(8,"translate"),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.TgZ(11,"p"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",11),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,ks,1,5,"perun-web-apps-resources-list",12),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",null!==e.taskId),t.xp6(1),t.Q6J("ngIf",null!==e.taskId),t.xp6(1),t.s9C("matTooltip",t.lcZ(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled)("checked",e.destinationChecked),t.xp6(2),t.hij(" ",t.lcZ(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),t.xp6(3),t.Oqu(t.lcZ(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),t.xp6(2),t.Q6J("ngIf",!e.loading)}}let Ys=(()=>{class i{constructor(e,s,a,o,r,_,C,b){this.dialogRef=e,this.data=s,this.resourcesManager=a,this.tasksManager=o,this.serviceManager=r,this.translate=_,this.notificator=C,this.cd=b,this.loading=!1,this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=x.$V,this.dataSource=new c.by(this.data.resource),this.selected=new A.Ov(!0,[...this.dataSource.data])}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId,this.serviceId=this.data.serviceId,this.facilityId=this.data.facilityId,this.resources=this.data.resource}remove(){this.loading=!0,this.taskResultsChecked&&!this.taskChecked&&null!==this.taskId&&this.tasksManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{this.tasksManager.deleteTaskResultsByIds(e.map(s=>s.id)).subscribe()}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getRichDestinations(this.serviceId,this.facilityId).subscribe(e=>{this.serviceManager.removeDestinationsByRichDestinations({richDestinations:e}).subscribe()}),this.resourcesManager.removeServiceForResources(this.selected.selected.map(e=>e.id),this.serviceId).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}cancel(){this.dialogRef.close(!1)}disableCheckboxes(e){e&&this.checkboxesDisabled&&this.changeCheckboxes(!0),!e&&!this.checkboxesDisabled&&this.changeCheckboxes(!1)}changeCheckboxes(e){this.checkboxesDisabled=!e,this.taskChecked=e,this.taskResultsChecked=e,this.destinationChecked=e,this.cd.detectChanges()}change(e){switch(e.source.id){case"task":this.taskChecked=e.checked;break;case"taskResults":this.taskResultsChecked=e.checked;break;case"destination":this.destinationChecked=e.checked}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.xk),t.Y36(h.Ob),t.Y36(h.KK),t.Y36(d.Te),t.Y36(d.V6),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-service-from-facility"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","right-space","color","warn","id","task",3,"checked","disabled","matTooltipDisabled","matTooltip","change",4,"ngIf"],["class","right-space","color","warn","id","taskResults",3,"checked","disabled","matTooltipDisabled","matTooltip","change",4,"ngIf"],["color","warn","id","destination",3,"disabled","matTooltipDisabled","checked","matTooltip","change"],[1,"font-weight-bold"],[3,"displayedColumns","disableRouting","resources","selection","tableId","allSelected",4,"ngIf"],["color","warn","id","task",1,"right-space",3,"checked","disabled","matTooltipDisabled","matTooltip","change"],["color","warn","id","taskResults",1,"right-space",3,"checked","disabled","matTooltipDisabled","matTooltip","change"],[3,"displayedColumns","disableRouting","resources","selection","tableId","allSelected"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Rs,1,0,"mat-spinner",1),t.YNc(5,ws,18,21,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},dependencies:[m.O5,S.lW,Z.oG,u.uh,u.xY,u.H8,T.Ou,J.gM,Os.C,f.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),i})();function Us(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ms(i,n){1&i&&(t.TgZ(0,"div",7)(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let Js=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.tasksManager=a,this.translate=o,this.notificator=r,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId}remove(){this.loading=!0,this.tasksManager.deleteTask({task:this.taskId}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_TASK.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.Ob),t.Y36(f.sK),t.Y36(d.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-task-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Us,1,0,"mat-spinner",1),t.YNc(5,Ms,4,3,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},dependencies:[m.O5,S.lW,u.uh,u.xY,u.H8,T.Ou,f.X$]}),i})();var $=l(28255);let Qs=(()=>{class i{transform(e){return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"serviceStateBlockedToString",type:i,pure:!0}),i})();function Hs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",19)(1,"mat-checkbox",20),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return a&&o.masterToggle(),t.KtG(o.selectionChange.emit())}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))}}const Gs=function(i){return{name:i}};function Ps(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",21)(1,"mat-checkbox",22),t.NdJ("click",function(a){return a.stopPropagation()})("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return a&&_.selection.toggle(r),t.KtG(_.selectionChange.emit())}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("checked",s.selection.isSelected(e))("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(7,Gs,e.service.name)))}}function qs(i,n){1&i&&(t.ynx(0,16),t.YNc(1,Hs,4,7,"th",17),t.YNc(2,Ps,4,9,"td",18),t.BQk())}function Vs(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")," "))}function Bs(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.task.id)}}function js(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1,"0"),t.qZA())}function Ks(i,n){if(1&i&&(t.TgZ(0,"td",24),t.YNc(1,Bs,2,1,"div",25),t.YNc(2,js,2,0,"div",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task),t.xp6(1),t.Q6J("ngIf",!e.task)}}function zs(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")," "))}function $s(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.uIk("data-cy",e.service.name),t.xp6(1),t.hij(" ",e.service.name," ")}}function Ws(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")," "))}function Xs(i,n){1&i&&(t.TgZ(0,"mat-icon",28),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&i&&t.Q6J("matTooltip",t.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_DESTINATIONS_TOOLTIP"))}function ta(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.YNc(2,Xs,3,3,"mat-icon",27),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.status," "),t.xp6(1),t.Q6J("ngIf",!e.hasDestinations)}}function ea(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")," "))}function ia(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.ALo(2,"serviceStateBlockedToString"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function sa(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")," "))}function aa(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.startTime,"d.M.y H:mm:ss")," ")}}function na(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function oa(i,n){if(1&i&&(t.TgZ(0,"td",26),t.YNc(1,aa,3,4,"div",25),t.YNc(2,na,3,3,"div",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.startTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.startTime)}}function la(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")," "))}function ca(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.endTime,"d.M.y H:mm:ss")," ")}}function ra(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function ua(i,n){if(1&i&&(t.TgZ(0,"td",26),t.YNc(1,ca,3,4,"div",25),t.YNc(2,ra,3,3,"div",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.endTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.endTime)}}function pa(i,n){1&i&&t._UZ(0,"tr",29)}const Ct=function(i,n){return["/facilities",i,"services-status",n]};function da(i,n){if(1&i&&t._UZ(0,"tr",30),2&i){const e=n.$implicit,s=t.oxw();t.ekj("disable-outline",s.disableRouting||!e.task)("make-yellow","WARNING"===e.status)("make-green","DONE"===e.status)("make-red","GENERROR"===e.status||"SENDERROR"===e.status||"ERROR"===e.status)("cursor-pointer",!s.disableRouting&&null!==e.task),t.Q6J("routerLink",s.disableRouting||null===e.task?null:t.WLB(12,Ct,e.facility.id,e.taskId))("perunWebAppsMiddleClickRouterLink",s.disableRouting||null===e.task?null:t.WLB(15,Ct,e.facility.id,e.taskId))}}function _a(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ma(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}const ha=function(i){return{all:i}};let fa=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new A.Ov(!0,[]),this.disableRouting=!0,this.selectionChange=new t.vpe,this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return e.task?.startTime?(0,m.p6)(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];case"task.endTime":return e.task?.endTime?(0,m.p6)(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];default:return e[s]}}static getDataForColumn(e,s){switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return e.task?.startTime?(0,m.p6)(e.task.startTime,"d.M.y H:mm:ss","en"):e[s];case"task.endTime":return e.task?.endTime?(0,m.p6)(e.task.endTime,"d.M.y H:mm:ss","en"):e[s];default:return e[s]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"task.id"!==e)),this.dataSource=new c.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(e,s)=>{const a=s.trim().toLowerCase(),o=r=>{let _="";return Object.values(r).forEach(C=>{"object"!=typeof C?_=_+" "+String(C):null!==C&&(_=_+" "+o(C))}),_.trim().toLowerCase()};return o(e).includes(a)},this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:27,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","task.id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","service.name"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","blocked"],["matColumnDef","task.startTime"],["matColumnDef","task.endTime"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"disable-outline","make-yellow","make-green","make-red","cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngIf"],["mat-cell",""],["class","align-text-bottom ml-1",3,"matTooltip",4,"ngIf"],[1,"align-text-bottom","ml-1",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,qs,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Vs,3,3,"th",5),t.YNc(7,Ks,3,2,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,zs,3,3,"th",5),t.YNc(10,$s,2,2,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,Ws,3,3,"th",5),t.YNc(13,ta,3,2,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,ea,3,3,"th",5),t.YNc(16,ia,3,3,"td",8),t.BQk(),t.ynx(17,11),t.YNc(18,sa,3,3,"th",5),t.YNc(19,oa,3,2,"td",8),t.BQk(),t.ynx(20,12),t.YNc(21,la,3,3,"th",5),t.YNc(22,ua,3,2,"td",8),t.BQk(),t.YNc(23,pa,1,0,"tr",13),t.YNc(24,da,1,18,"tr",14),t.qZA()()(),t.YNc(25,_a,3,3,"perun-web-apps-alert",15),t.YNc(26,ma,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.servicesStatus.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,ha,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(20),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.servicesStatus.length),t.xp6(1),t.Q6J("ngIf",0===s.servicesStatus.length))},dependencies:[m.O5,Z.oG,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,v.rH,I.YE,I.nU,O.w,R.Hw,J.gM,k.l,B.Y,j.Q,m.uU,f.X$,Qs,w.I,Y.G,U.r],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.make-green[_ngcontent-%COMP%]{background-color:#c4ffcb}.make-yellow[_ngcontent-%COMP%]{background-color:#fffde7}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function ga(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.forcePropagation())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Ta(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.allow())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableAllowButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function Sa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.block())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableBlockButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function Ca(i,n){if(1&i&&(t.TgZ(0,"button",13),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw(),s=t.MAs(10);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.disableRemoveButton)("matMenuTriggerFor",s)("matTooltipDisabled",!e.disableRemoveButton),t.xp6(2),t.hij(" ",t.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function Aa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeTaskResults())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function Ia(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function ba(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-services-status-list",15),t.NdJ("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.selectionChanged())}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("servicesStatus",e.servicesStates)("selection",e.selected)("tableId",e.tableId)}}let ya=(()=>{class i{constructor(e,s,a,o,r,_,C,b,L){this.tasksManager=e,this.servicesManager=s,this.notificator=a,this.translate=o,this.authResolver=r,this.facilityManager=_,this.resourcesManager=C,this.dialog=b,this.entityStorageService=L,this.servicesStates=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.oK,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(y=>this.successFPMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(y=>this.successAllowMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(y=>this.successBlockMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(y=>this.successDeleteMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(y=>this.allreadyDeletedMessage=y)}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}forcePropagation(){for(const e of this.selected.selected)this.servicesManager.forceServicePropagation(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successFPMessage)})}allow(){for(const e of this.selected.selected)this.servicesManager.unblockServiceOnFacility(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successAllowMessage)})}block(){for(const e of this.selected.selected)this.servicesManager.blockServiceOnFacility(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successBlockMessage)})}removeTaskResults(){this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe(e=>{const s=(0,p.kZ)();s.width="600px",s.data={theme:"facility-theme",taskResults:e},this.dialog.open(St,s)})}removeServiceFromFacility(){this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(e=>{const s=(0,p.kZ)();s.width="600px",this.taskId=this.taskIsNull?null:this.selected.selected[0].task.id,0===e.length?(s.data={theme:"facility-theme",taskId:this.taskId},this.dialog.open(Js,s).afterClosed().subscribe(o=>{o&&(this.disableRemoveButton=!0,this.refreshTable())})):this.resourcesManager.getRichResourcesByIds(e.map(a=>a.id)).subscribe(a=>{s.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:a},this.dialog.open(Ys,s).afterClosed().subscribe(r=>{r&&(this.disableRemoveButton=!0,this.refreshTable())})})})}refreshTable(){this.loading=!0,this.tasksManager.getFacilityServicesState(this.facility.id).subscribe(e=>{this.servicesStates=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.propagationAuth=this.authResolver.isAuthorized("forceServicePropagation_Facility_Service_policy",[this.facility]),this.blockAuth=this.authResolver.isAuthorized("blockServiceOnFacility_Service_Facility_policy",[this.facility]),this.allowAuth=this.authResolver.isAuthorized("unblockServiceOnFacility_Service_Facility_policy",[this.facility]),this.deleteAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.routeAuth=this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[this.facility])}applyFilter(e){this.filterValue=e}selectionChanged(){this.disableBlockButton=!0,this.disableAllowButton=!0,this.disableRemoveButton=1!==this.selected.selected.length,this.disableRemoveButton||(this.taskIsNull=null===this.selected.selected[0].task);for(const e of this.selected.selected)e.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.Ob),t.Y36(h.KK),t.Y36(d.V6),t.Y36(f.sK),t.Y36(d.x4),t.Y36(h.IQ),t.Y36(h.xk),t.Y36(u.uw),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","mr-2 dropdown-toggle","color","warn",3,"disabled","matMenuTriggerFor","matTooltipDisabled","matTooltip",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","servicesStatus","selection","tableId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor","matTooltipDisabled","matTooltip"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","servicesStatus","selection","tableId","selectionChange"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(5,ga,3,4,"button",2),t.YNc(6,Ta,3,4,"button",2),t.YNc(7,Sa,3,4,"button",3),t.YNc(8,Ca,4,9,"button",4),t.TgZ(9,"mat-menu",null,5),t.YNc(11,Aa,3,3,"button",6),t.TgZ(12,"button",7),t.NdJ("click",function(){return s.removeServiceFromFacility()}),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"perun-web-apps-immediate-filter",8),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(16,Ia,1,0,"mat-spinner",9),t.YNc(17,ba,1,5,"perun-web-apps-services-status-list",10),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.propagationAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("ngIf",s.deleteAuth),t.xp6(3),t.Q6J("ngIf",!s.taskIsNull),t.xp6(2),t.hij(" ",t.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,T.Ou,J.gM,$.VK,$.OP,$.p6,E.t,D.L,fa,f.X$]}),i})();var va=l(25610),xa=l(76023);function Ea(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",21)(1,"mat-checkbox",22),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}const Da=function(i){return{name:i}};function La(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",23)(1,"mat-checkbox",24),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(7,Da,e.destination.destination)))("checked",s.selection.isSelected(e))}}function Za(i,n){1&i&&(t.ynx(0,18),t.YNc(1,Ea,4,7,"th",19),t.YNc(2,La,4,9,"td",20),t.BQk())}function Oa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")," "))}function Ra(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function Fa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")," "))}function Na(i,n){if(1&i&&(t.TgZ(0,"td",26),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&i){const e=n.$implicit;t.uIk("data-cy",t.lcZ(1,2,e.destination.destination)),t.xp6(2),t.hij(" ",e.destination.destination," ")}}function ka(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")," "))}function wa(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.destination.type.toUpperCase()," ")}}function Ya(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")," "))}function Ua(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.service.name," ")}}function Ma(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")," "))}function Ja(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.status," ")}}function Qa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")," "))}function Ha(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function Ga(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")," "))}function Pa(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.returnCode," ")}}function qa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")," "))}function Va(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t._UZ(2,"br"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e)}}function Ba(i,n){if(1&i&&(t.TgZ(0,"td",26),t.YNc(1,Va,3,1,"span",27),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngForOf",e.standardMessage.split("\n"))}}function ja(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")," "))}function Ka(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.errorMessage," ")}}function za(i,n){1&i&&t._UZ(0,"tr",28)}function $a(i,n){if(1&i&&t._UZ(0,"tr",29),2&i){const e=n.$implicit;t.ekj("greenTableItem","DONE"===e.status)("redTableItem","ERROR"===e.status||"DENIED"===e.status)("yellowTableItem","WARNING"===e.status)}}function Wa(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Xa(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}const tn=function(i){return{all:i}};let en=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.taskResults=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"destination":return e.destination.destination;case"type":return e.destination.type;case"service":return e.service.name;case"status":return e.status;case"time":return(0,m.p6)(e.timestamp.toString(),"yyyy.MM.dd HH:mm:ss","en");case"returnCode":return e.returnCode.toString();case"standardMessage":return e.standardMessage;case"errorMessage":return e.errorMessage;default:return""}}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"destination":return e.destination.destination;case"type":return e.destination.type;case"service":return e.service.name;case"status":return e.status;case"time":return(0,m.p6)(e.timestamp.toString(),"d.M.y H:mm:ss","en");case"returnCode":return e.returnCode.toString();case"standardMessage":return e.standardMessage;case"errorMessage":return e.errorMessage;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new c.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn))}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:36,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","time"],["matColumnDef","returnCode"],["matColumnDef","standardMessage"],["matColumnDef","errorMessage"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"greenTableItem","redTableItem","yellowTableItem",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,Za,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Oa,3,3,"th",5),t.YNc(7,Ra,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Fa,3,3,"th",5),t.YNc(10,Na,3,4,"td",6),t.BQk(),t.ynx(11,8),t.YNc(12,ka,3,3,"th",5),t.YNc(13,wa,2,1,"td",6),t.BQk(),t.ynx(14,9),t.YNc(15,Ya,3,3,"th",5),t.YNc(16,Ua,2,1,"td",6),t.BQk(),t.ynx(17,10),t.YNc(18,Ma,3,3,"th",5),t.YNc(19,Ja,2,1,"td",6),t.BQk(),t.ynx(20,11),t.YNc(21,Qa,3,3,"th",5),t.YNc(22,Ha,3,4,"td",6),t.BQk(),t.ynx(23,12),t.YNc(24,Ga,3,3,"th",5),t.YNc(25,Pa,2,1,"td",6),t.BQk(),t.ynx(26,13),t.YNc(27,qa,3,3,"th",5),t.YNc(28,Ba,2,1,"td",6),t.BQk(),t.ynx(29,14),t.YNc(30,ja,3,3,"th",5),t.YNc(31,Ka,2,1,"td",6),t.BQk(),t.YNc(32,za,1,0,"tr",15),t.YNc(33,$a,1,6,"tr",16),t.qZA()()(),t.YNc(34,Wa,3,3,"perun-web-apps-alert",17),t.YNc(35,Xa,3,3,"perun-web-apps-alert",17)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.taskResults.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,tn,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(29),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.taskResults.length),t.xp6(1),t.Q6J("ngIf",0===s.taskResults.length))},dependencies:[m.sg,m.O5,Z.oG,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,I.YE,I.nU,O.w,k.l,m.uU,f.X$,mt.R,w.I,Y.G,U.r],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),i})();function sn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeTaskResult())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE"),"\n")}}function an(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function nn(i,n){if(1&i&&t._UZ(0,"perun-web-apps-task-results-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("taskResults",e.taskResults)}}let on=(()=>{class i{constructor(e,s,a,o,r){this.route=e,this.taskManager=s,this.authResolver=a,this.dialog=o,this.entityStorageService=r,this.loading=!1,this.filterValue="",this.selection=new A.Ov(!0,[]),this.task={id:0},this.tableId=x.e5,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.removeAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.removeAuth||(this.displayedColumns=["id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]),this.route.params.subscribe(e=>{this.taskId=Number(e.taskId),this.taskManager.getTaskById(this.taskId).subscribe(s=>{this.task=s,this.refreshTable()})})}refreshTable(){this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{this.selection.clear(),this.taskResults=e,this.loading=!1})}removeTaskResult(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(St,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(v.gz),t.Y36(h.Ob),t.Y36(d.x4),t.Y36(u.uw),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-task-results"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[1,"text-muted"],[3,"refresh"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","filterValue","selection","taskResults",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","filterValue","selection","taskResults"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",1),t._uU(4),t.qZA()(),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,sn,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(8,an,1,0,"mat-spinner",5),t.YNc(9,nn,1,5,"perun-web-apps-task-results-list",6)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",s.task.service?s.task.service.name:""," "),t.xp6(3),t.hij(" \xa0#",s.task.id," "),t.xp6(2),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,T.Ou,E.t,D.L,en,f.X$]}),i})();var ln=l(20872);let cn=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-no-service-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2)(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.NO_SERVICE.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.NO_SERVICE.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.NO_SERVICE.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.NO_SERVICE.SKIP")," "))},dependencies:[S.lW,u.uh,u.xY,u.H8,f.X$]}),i})(),rn=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-config-unsaved-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2)(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.CONFIG_UNSAVED.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.CONFIG_UNSAVED.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.CONFIG_UNSAVED.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.CONFIG_UNSAVED.SKIP")," "))},dependencies:[S.lW,u.uh,u.xY,u.H8,f.X$]}),i})();function un(i,n){if(1&i&&(t.TgZ(0,"div",3),t._UZ(1,"i",4),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,e.info),t.oJD)}}function pn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onKeep())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CANCEL_CONFIG.KEEP")," "))}function dn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDelete())}),t.TgZ(5,"mat-icon"),t._uU(6," warning "),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,pn,3,3,"button",8),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.CANCEL_CONFIG.CANCEL")," "),t.xp6(5),t.hij(" ",t.lcZ(8,5,"DIALOGS.CANCEL_CONFIG.DELETE")," "),t.xp6(2),t.Q6J("ngIf",!e.lastStep)}}let _n=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilityService=a,this.notificator=o,this.translate=r,this.theme="",this.title="",this.info="",this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.lastStep=this.data.lastStep,this.lastStep?(this.title="DIALOGS.CANCEL_CONFIG.TITLE_COMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_COMPLETE"):(this.title="DIALOGS.CANCEL_CONFIG.TITLE_INCOMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_INCOMPLETE")}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.facilityService.deleteFacility(this.data.facilityId,!0).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CANCEL_CONFIG.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onKeep(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.IQ),t.Y36(d.V6),t.Y36(f.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-cancel-configuration-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["matDialogActions","",4,"ngIf"],["mat-dialog-content",""],[3,"innerHTML"],["matDialogActions",""],["mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,un,3,3,"div",1),t.YNc(5,dn,10,7,"div",2),t.qZA()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,s.title)),t.xp6(2),t.Q6J("ngIf",!s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,R.Hw,S.lW,u.uh,u.xY,u.H8,f.X$]}),i})();var P=l(86257),q=l(37084),mn=l(60205),hn=l(90439),fn=l(30540);const gn=["stepper"];function Tn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.OWNERS"))}function Sn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-settings-owners",14),t.NdJ("ownerEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.owners=a)}),t.qZA()}}function Cn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.HOSTS"))}function An(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-hosts",15),t.NdJ("hostEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.hosts=a)}),t.qZA()}2&i&&t.Q6J("disableRouting",!0)}function In(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICES"))}const bn=function(){return["select","id","name","enabled","description"]};function yn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18)(7,"perun-web-apps-immediate-filter",19),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t.TgZ(8,"perun-web-apps-service-package-search-select",20),t.NdJ("packageSelected",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.packagesSelected(a))}),t.qZA()(),t.TgZ(9,"app-services-list",21),t.NdJ("selectionChanged",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.singleServiceSelected())}),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,13,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(3),t.hij(" ",t.lcZ(5,15,"FACILITY_CONFIGURATION.SERVICES_INFO")," "),t.xp6(3),t.Q6J("placeholder","FACILITY_CONFIGURATION.SERVICES_FILTER"),t.xp6(1),t.Q6J("disableAutoSelect",!0)("selectedPackage",e.selectedPackages)("multiple",!0)("servicePackages",e.servicePackages)("theme","facility-theme"),t.xp6(1),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(17,bn))("selection",e.selection)("filterValue",e.filterValue)("services",e.services)}}function vn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICE_CONFIG"))}function xn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-service-search-select",27),t.NdJ("serviceSelected",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.filterAttributes(a))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableAutoSelect",!0)("services",e.selection.selected)("multiple",!0)("theme","facility-theme")}}function En(i,n){1&i&&t._UZ(0,"mat-spinner",28)}function Dn(i,n){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",29),2&i){const e=t.oxw(2);t.Q6J("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("attributes",e.filteredAttributes)("selection",e.attSelection)}}function Ln(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18)(7,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemoveAttributes())}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSaveAttributes())}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.YNc(13,xn,1,4,"perun-web-apps-service-search-select",24),t.qZA(),t.YNc(14,En,1,0,"mat-spinner",25),t.YNc(15,Dn,1,3,"perun-web-apps-attributes-list",26)}if(2&i){const e=t.oxw(),s=t.MAs(5);t.xp6(1),t.Oqu(t.lcZ(2,9,"FACILITY_CONFIGURATION.SERVICE_CONFIG")),t.xp6(3),t.hij(" ",t.lcZ(5,11,"FACILITY_CONFIGURATION.ATT_INFO")," "),t.xp6(3),t.Q6J("disabled",0===e.attSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,13,"FACILITY_CONFIGURATION.REMOVE")," "),t.xp6(2),t.Q6J("disabled",0===e.attSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,15,"FACILITY_CONFIGURATION.SAVE")," "),t.xp6(2),t.Q6J("ngIf",s.selectedIndex===e.ATTRIBUTES_IDX),t.xp6(1),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing)}}function Zn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.DESTINATION_CONFIG"))}const On=function(){return["select","destinationId","service","warn","destination","type","propagationType"]};function Rn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-perun-web-apps-facility-services-destinations",30),t.NdJ("destinationEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.destinations=a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("configServicesIds",e.serviceIds)("displayedColumns",t.DdM(5,On))("configServices",e.selection.selected)("loading",e.processing)("title","FACILITY_CONFIGURATION.DESTINATION_CONFIG")}}function Fn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.MANAGERS"))}function Nn(i,n){1&i&&t._UZ(0,"app-perun-web-apps-facility-settings-managers",31),2&i&&t.Q6J("disableRouting",!0)("disableSelf",!0)}function kn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SUMMARY"))}function wn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const Yn=function(){return["id","name","contact","type"]};function Un(i,n){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",48),2&i){const e=t.oxw(3);t.Q6J("displayedColumns",t.DdM(2,Yn))("owners",e.owners)}}function Mn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const Jn=function(){return["id","name"]};function Qn(i,n){if(1&i&&t._UZ(0,"app-hosts-list",49),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(3,Jn))("hosts",e.hosts)}}function Hn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const Gn=function(){return["id","name","enabled","script","description"]},Pn=function(){return["id","displayName","value","description"]},qn=function(){return["destinationId","service","warn","destination","type","propagationType"]},Vn=function(){return["id","vo","name","description"]},Bn=function(){return["id","name","email","logins","organization"]};function jn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",34)(2,"mat-expansion-panel-header")(3,"mat-panel-title"),t._UZ(4,"mat-icon",35),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"h1",16),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,wn,1,0,"mat-spinner",25),t.YNc(11,Un,1,3,"perun-web-apps-owners-list",36),t.qZA(),t.TgZ(12,"mat-expansion-panel",34)(13,"mat-expansion-panel-header")(14,"mat-panel-title"),t._UZ(15,"mat-icon",37),t._uU(16),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"h1",16),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.YNc(21,Mn,1,0,"mat-spinner",25),t.YNc(22,Qn,1,4,"app-hosts-list",38),t.qZA(),t.TgZ(23,"mat-expansion-panel",34)(24,"mat-expansion-panel-header")(25,"mat-panel-title"),t._UZ(26,"mat-icon",39),t._uU(27),t.ALo(28,"translate"),t.qZA()(),t.TgZ(29,"h1",16),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._UZ(32,"app-services-list",40),t.qZA(),t.TgZ(33,"mat-expansion-panel",41),t.NdJ("opened",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.getNonEmptyAttributes())}),t.TgZ(34,"mat-expansion-panel-header")(35,"mat-panel-title"),t._UZ(36,"mat-icon",37),t._uU(37),t.ALo(38,"translate"),t.qZA()(),t.TgZ(39,"h1",16),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._UZ(42,"perun-web-apps-attributes-list",42),t.qZA(),t.TgZ(43,"mat-expansion-panel",43),t.NdJ("expandedChange",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.destinationServiceMissing=a)}),t.TgZ(44,"mat-expansion-panel-header")(45,"mat-panel-title"),t._UZ(46,"mat-icon",44),t._uU(47),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"h1",16),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.YNc(52,Hn,1,0,"mat-spinner",25),t._UZ(53,"app-perun-web-apps-destination-list",45),t.qZA(),t.TgZ(54,"mat-expansion-panel")(55,"mat-expansion-panel-header")(56,"mat-panel-title"),t._UZ(57,"mat-icon",46),t._uU(58),t.ALo(59,"translate"),t.qZA()(),t._UZ(60,"app-managers-page",47),t.qZA()()}if(2&i){const e=t.oxw(2);t.Q6J("@.disabled",!0),t.xp6(1),t.Q6J("disabled",0===e.owners.length),t.xp6(1),t.ekj("cursor-default",0===e.owners.length),t.xp6(3),t.hij(" ",t.lcZ(6,49,"FACILITY_CONFIGURATION.OWNERS")," "),t.xp6(3),t.Oqu(t.lcZ(9,51,"FACILITY_CONFIGURATION.OWNERS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.hosts.length),t.xp6(1),t.ekj("cursor-default",0===e.hosts.length),t.xp6(3),t.hij(" ",t.lcZ(17,53,"FACILITY_CONFIGURATION.HOSTS")," "),t.xp6(3),t.Oqu(t.lcZ(20,55,"FACILITY_CONFIGURATION.HOSTS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(28,57,"FACILITY_CONFIGURATION.SERVICES")," "),t.xp6(3),t.Oqu(t.lcZ(31,59,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(71,Gn))("services",e.selection.selected),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(38,61,"FACILITY_CONFIGURATION.SERVICE_CONFIG")," "),t.xp6(3),t.Oqu(t.lcZ(41,63,"FACILITY_CONFIGURATION.ATTS")),t.xp6(2),t.Q6J("displayedColumns",t.DdM(72,Pn))("attributes",e.filteredAttributes)("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT"),t.xp6(1),t.Q6J("expanded",e.destinationServiceMissing)("disabled",0===e.selection.selected.length&&0===e.destinations.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length&&0===e.destinations.length),t.xp6(3),t.hij(" ",t.lcZ(48,65,"FACILITY_CONFIGURATION.DESTINATION_CONFIG")," "),t.xp6(3),t.Oqu(t.lcZ(51,67,"FACILITY_CONFIGURATION.DESTINATION")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("destinations",e.destinations)("displayedColumns",t.DdM(73,qn))("services",e.serviceIds),t.xp6(5),t.hij(" ",t.lcZ(59,69,"FACILITY_CONFIGURATION.MANAGERS")," "),t.xp6(2),t.Q6J("complementaryObject",e.facility)("configMode",!0)("disableRouting",!0)("availableRoles",e.availableRoles)("complementaryObjectType","Facility")("displayedGroupColumns",t.DdM(74,Vn))("displayedUserColumns",t.DdM(75,Bn))}}function Kn(i,n){if(1&i&&(t.TgZ(0,"perun-web-apps-alert",17),t._UZ(1,"i",32),t.ALo(2,"translate"),t.qZA(),t.YNc(3,jn,61,76,"mat-accordion",33)),2&i){t.oxw();const e=t.MAs(5);t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,2,"FACILITY_CONFIGURATION.SUMMARY_INFO"),t.oJD),t.xp6(2),t.Q6J("ngIf",e.selectedIndex===e.steps.length-1)}}function zn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.back())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.BACK")," "))}function $n(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.next())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){t.oxw();const e=t.MAs(5);t.ekj("mr-2",void 0!==e&&0!==e.selectedIndex)("ml-auto",!(void 0!==e&&0!==e.selectedIndex)),t.xp6(1),t.hij(" ",t.lcZ(2,5,"FACILITY_CONFIGURATION.NEXT")," ")}}function Wn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onFinish())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.FINISH")," "))}let Xn=(()=>{class i{constructor(e,s,a,o,r,_,C,b,L,y){this.attributesManager=e,this.serviceManager=s,this.facilityService=a,this.cd=o,this.dialog=r,this.notificator=_,this.translate=C,this.router=b,this.guiAuthResolver=L,this.entityStorageService=y,this.processing=!1,this.filteredAttributes=[],this.attSelection=new A.Ov(!0,[]),this.services=[],this.serviceIds=new Set,this.servicePackages=[],this.selectedPackages=[],this.selection=new A.Ov(!0,[]),this.owners=[],this.hosts=[],this.destinations=[],this.destinationServiceMissing=!1,this.availableRoles=[],this.filterValue="",this.ATTRIBUTES_IDX=3,this.serviceControl=new g.p4(!1,g.kI.requiredTrue),this.attributesControl=new g.p4(!0,g.kI.requiredTrue),this.allowNavigate=!1,this.attributes=[],this.attributeIds=new Set,this.attributesPerService=new Map,this.servicesPerPackage=new Map,this.saveMsg="",this.removeMsg="",this.BEFORE_OPTIONAL_IDX=2,this.DESTINATIONS_IDX=4,this.AFTER_OPTIONAL_IDX=5,this.translate.get("FACILITY_CONFIGURATION.ATT_SAVED").subscribe(tt=>this.saveMsg=tt),this.translate.get("FACILITY_CONFIGURATION.ATT_REMOVED").subscribe(tt=>this.removeMsg=tt)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility"),this.serviceManager.getServicesPackages().subscribe(e=>{this.servicePackages=e,this.getServicePackageServices(e,0)})}ngAfterViewInit(){this.cd.detectChanges(),this.attSelection.changed.subscribe(()=>{this.attributesControl.setValue(0===this.attSelection.selected.length)})}onCancel(){const e=(0,p.kZ)();e.width="550px",e.data={facilityId:this.facility.id,lastStep:this.stepper.selectedIndex===this.stepper.steps.length-1,theme:"facility-theme"},this.dialog.open(_n,e).afterClosed().subscribe(a=>{a&&(this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities"],{queryParamsHandling:"merge"}))})}packagesSelected(e){if(this.packageSelectionEqual(e))return;this.processing=!0;let s=new Set;if(e&&0!==e.length?s=this.setSymDif(this.selectedPackages,e):this.selectedPackages.forEach(r=>{this.servicesPerPackage.get(r.id).forEach(_=>s.add(_))}),0===s.size)return;const a=this.filterService(s,e.filter(r=>this.selectedPackages.findIndex(_=>_.id===r.id)<0)),o=this.filterService(s,this.selectedPackages.filter(r=>e.findIndex(_=>_.id===r.id)<0));for(const r of this.services)a.has(r.id)?this.selection.select(r):o.has(r.id)&&this.selection.deselect(r);this.selectedPackages=e,this.setServiceControl(),this.processing=!1}singleServiceSelected(){this.setServiceControl(),!this.processing&&this.checkPackageComplete()}back(){this.stepper.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl(),this.stepper.selectedIndex===this.AFTER_OPTIONAL_IDX&&0===this.selection.selected.length?this.stepper.selectedIndex=this.BEFORE_OPTIONAL_IDX:this.stepper.previous()}onSaveAttributes(){return new Promise((e,s)=>{this.processing=!0,this.attributesManager.setFacilityAttributes({facility:this.facility.id,attributes:this.attSelection.selected}).subscribe({next:()=>{this.notificator.showSuccess(this.saveMsg),this.attSelection.clear(),this.processing=!1,e()},error:()=>{this.processing=!1,s()}})})}next(){this.checkDestinationDependency(this.stepper.selectedIndex),this.stepper.selectedIndex===this.BEFORE_OPTIONAL_IDX?0===this.selection.selected.length?this.openSkipDialog():(this.getRequiredAttributes(),this.stepper.next()):this.stepper.selectedIndex===this.ATTRIBUTES_IDX&&0!==this.attSelection.selected.length?this.openUnsavedAttsDialog():this.stepper.next()}onFinish(){this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities",this.facility.id],{queryParamsHandling:"merge"})}onRemoveAttributes(){this.processing=!0;const e=this.attSelection.selected.map(s=>s.id);this.attributesManager.removeFacilityAttributes(this.facility.id,e).subscribe({next:()=>{this.notificator.showSuccess(this.removeMsg),this.getRequiredAttributes(),this.processing=!1},error:()=>this.processing=!1})}filterAttributes(e){if(void 0===e||0===e.length)return void(this.filteredAttributes=this.attributes);const s=new Set;for(const a of e)this.attributesPerService.get(a.id).forEach(o=>s.add(o));this.filteredAttributes=[];for(const a of this.attributes)s.has(a.id)&&this.filteredAttributes.push(a)}getNonEmptyAttributes(){this.filteredAttributes=this.attributes.filter(e=>{if(e.value&&(!Array.isArray(e.value)||0!==e.value.length))return e})}navigationStep(e){this.checkDestinationDependency(e.previouslySelectedIndex),e.selectedIndex===this.ATTRIBUTES_IDX?this.getRequiredAttributes():e.selectedIndex===this.DESTINATIONS_IDX?this.processing=!1:e.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl()}applyFilter(e){this.filterValue=e}canDeactivate(){return this.allowNavigate||this.onCancel(),this.allowNavigate}getServicePackageServices(e,s){s===e.length?this.serviceManager.getServices().subscribe(a=>{this.services=a}):this.serviceManager.getServicesFromServicesPackage(e[s].id).subscribe(a=>{this.servicesPerPackage.set(e[s].id,new Set([...a.map(o=>o.id)])),this.getServicePackageServices(e,s+1)})}getServiceRequiredAttributes(e,s){s!==e.length&&this.attributesManager.getRequiredAttributesDefinition(e[s].id).subscribe(a=>{a=a.filter(o=>this.attributeIds.has(o.id)),this.attributesPerService.set(e[s].id,a.map(o=>o.id)),this.getServiceRequiredAttributes(e,s+1)})}setServiceControl(){this.serviceControl.setValue(0!==this.selection.selected.length)}buildServiceSet(e){const s=new Set;return e.forEach(a=>{this.servicesPerPackage.get(a.id).forEach(o=>s.add(o))}),s}setDiff(e,s){return new Set([...e].filter(a=>!s.has(a)))}setIntersect(e,s){return new Set([...e].filter(a=>s.has(a)))}setSymDif(e,s){const a=this.buildServiceSet(e),o=this.buildServiceSet(s),r=this.setDiff(a,o),_=this.setDiff(o,a);return new Set([...r,..._])}filterService(e,s){const a=new Set;for(const o of s){const r=this.setIntersect(e,this.servicesPerPackage.get(o.id));0!==r.size&&r.forEach(_=>a.add(_))}return a}packageSelectionEqual(e){return e.length===this.selectedPackages.length&&(e.forEach(s=>{if(-1===this.selectedPackages.findIndex(a=>a.id===s.id))return!1}),!0)}checkPackageComplete(){const e=[];for(const s of this.selectedPackages){let a=!0;for(const o of this.servicesPerPackage.get(s.id))if(-1===this.selection.selected.findIndex(r=>r.id===o)){a=!1;break}a&&e.push(s)}this.selectedPackages=e}openSkipDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(cn,e).afterClosed().subscribe(a=>{a&&(this.serviceControl.setValue(!0),this.stepper.selectedIndex=this.AFTER_OPTIONAL_IDX)})}getRequiredAttributes(){this.processing=!0,this.attributesManager.getRequiredAttributesFacilityServices(this.selection.selected.map(e=>e.id),this.facility.id).subscribe(e=>{this.attSelection.clear(),this.attributes=e.filter(s=>!(0,p.Hm)(s)),this.filteredAttributes=this.attributes,this.attributes.forEach(s=>this.attributeIds.add(s.id)),this.getServiceRequiredAttributes(this.selection.selected,0),this.processing=!1})}openUnsavedAttsDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(rn,e).afterClosed().subscribe(a=>{a&&this.onSaveAttributes().then(()=>{this.stepper.next()},()=>this.getRequiredAttributes())})}checkDestinationDependency(e){(e===this.BEFORE_OPTIONAL_IDX||e===this.DESTINATIONS_IDX)&&(this.serviceIds=new Set([...this.selection.selected.map(s=>s.id)]),this.destinationServicePresent())}destinationServicePresent(){for(const e of this.destinations)if(!this.serviceIds.has(e.service.id))return void(this.destinationServiceMissing=!0);this.destinationServiceMissing=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(h.KK),t.Y36(h.IQ),t.Y36(t.sBO),t.Y36(u.uw),t.Y36(d.V6),t.Y36(f.sK),t.Y36(v.F0),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-configuration-page"]],viewQuery:function(e,s){if(1&e&&t.Gf(gn,5),2&e){let a;t.iGM(a=t.CRH())&&(s.stepper=a.first)}},decls:34,vars:15,consts:[[1,"facility-theme"],[1,"page-title"],[3,"linear","selectionChange"],["stepper",""],["matStepLabel",""],["matStepContent",""],[3,"stepControl"],["optional","true",3,"editable","stepControl"],[3,"editable","optional"],[1,"actions"],["mat-flat-button","",3,"click"],["class","ml-auto mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"mr-2","ml-auto","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"ownerEmitter"],[3,"disableRouting","hostEmitter"],[1,"page-subtitle"],["alert_type","info"],[1,"filters"],[1,"filter",3,"placeholder","filter"],[1,"package-search-select",3,"disableAutoSelect","selectedPackage","multiple","servicePackages","theme","packageSelected"],[3,"disableRouting","displayedColumns","selection","filterValue","services","selectionChanged"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","selection",4,"ngIf"],[1,"service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","selection"],[3,"configServicesIds","displayedColumns","configServices","loading","title","destinationEmitter"],[3,"disableRouting","disableSelf"],[3,"innerHTML"],[4,"ngIf"],[3,"disabled"],["svgIcon","perun-owner-grey",1,"mr-2"],[3,"displayedColumns","owners",4,"ngIf"],["svgIcon","perun-hosts",1,"mr-2"],[3,"disableRouting","displayedColumns","hosts",4,"ngIf"],["svgIcon","perun-service",1,"mr-2"],[3,"disableRouting","displayedColumns","services"],[3,"disabled","opened"],[3,"displayedColumns","attributes","emptyListText"],[3,"expanded","disabled","expandedChange"],["svgIcon","perun-service_destination",1,"mr-2"],[3,"destinations","displayedColumns","services"],["svgIcon","perun-manager",1,"mr-2"],[3,"complementaryObject","configMode","disableRouting","availableRoles","complementaryObjectType","displayedGroupColumns","displayedUserColumns"],[3,"displayedColumns","owners"],[3,"disableRouting","displayedColumns","hosts"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"]],template:function(e,s){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-stepper",2,3),t.NdJ("selectionChange",function(o){return s.navigationStep(o)}),t.TgZ(6,"mat-step"),t.YNc(7,Tn,2,3,"ng-template",4),t.YNc(8,Sn,1,0,"ng-template",5),t.qZA(),t.TgZ(9,"mat-step"),t.YNc(10,Cn,2,3,"ng-template",4),t.YNc(11,An,1,1,"ng-template",5),t.qZA(),t.TgZ(12,"mat-step",6),t.YNc(13,In,2,3,"ng-template",4),t.YNc(14,yn,10,18,"ng-template",5),t.qZA(),t.TgZ(15,"mat-step",7),t.YNc(16,vn,2,3,"ng-template",4),t.YNc(17,Ln,16,17,"ng-template",5),t.qZA(),t.TgZ(18,"mat-step",8),t.YNc(19,Zn,2,3,"ng-template",4),t.YNc(20,Rn,1,6,"ng-template",5),t.qZA(),t.TgZ(21,"mat-step"),t.YNc(22,Fn,2,3,"ng-template",4),t.YNc(23,Nn,1,2,"ng-template",5),t.qZA(),t.TgZ(24,"mat-step"),t.YNc(25,kn,2,3,"ng-template",4),t.YNc(26,Kn,4,4,"ng-template",5),t.qZA()(),t.TgZ(27,"div",9)(28,"button",10),t.NdJ("click",function(){return s.onCancel()}),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.YNc(31,zn,3,3,"button",11),t.YNc(32,$n,3,7,"button",12),t.YNc(33,Wn,3,3,"button",13),t.qZA()()),2&e){const a=t.MAs(5);t.xp6(2),t.hij(" ",t.lcZ(3,11,"FACILITY_CONFIGURATION.TITLE")," "),t.xp6(2),t.Q6J("linear",!0),t.xp6(8),t.Q6J("stepControl",s.serviceControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length)("stepControl",s.attributesControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length||0!==s.destinations.length)("optional",0===s.destinations.length),t.xp6(11),t.hij(" ",t.lcZ(30,13,"FACILITY_CONFIGURATION.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==a&&0!==a.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==a&&a.selectedIndex!==a.steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==a&&a.selectedIndex===a.steps.length-1)}},dependencies:[m.O5,R.Hw,S.lW,T.Ou,P.C0,P.VY,P.Vq,P.BY,q.pp,q.ib,q.yz,q.yK,rt.s,pt.q,ft,mn.Q,O.w,D.L,Tt.p,z.Q,hn.F,fn.J,ut,dt,_t,gt,f.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.6rem;margin-right:.9rem}.filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.package-search-select[_ngcontent-%COMP%]{width:650px}.service-search-select[_ngcontent-%COMP%]{width:400px}.filter[_ngcontent-%COMP%]{width:350px;margin-right:20px}.actions[_ngcontent-%COMP%]{background-color:#fff;display:flex;padding:20px}.cursor-default[_ngcontent-%COMP%]{cursor:default}"]}),i})(),At=(()=>{class i{constructor(e){this.router=e}canActivate(e){return e.parent.params.facilityId===sessionStorage.getItem("newFacilityId")||(this.router.navigate(["/home"],{queryParamsHandling:"merge"}),!1)}canDeactivate(e){return e.canDeactivate()}}return i.\u0275fac=function(e){return new(e||i)(t.LFG(v.F0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var W=l(71992),X=l(64080),It=l(64901),to=l(11447),eo=l(83370);let io=(()=>{class i{constructor(e,s,a,o,r){this.data=e,this.dialogRef=s,this.store=a,this.facilityService=o,this.notificator=r,this.selection=new A.Ov(!1,[]),this.loading=!1,this.attrNames=[X.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.displayedColumns=["select","id","name","email","logins"],this.tableId=x.bj,this.filter=""}ngOnInit(){this.selection.changed.subscribe(e=>{this.ban=this.data.bans.find(s=>s.userId===e.source.selected[0]?.id)})}cancel(){this.dialogRef.close(!1)}submitBan(e){this.ban?this.updateBan(e):this.banUser(e)}setFilter(e){this.filter=e,this.selection.clear()}banUser(e){this.loading=!0,this.facilityService.setFacilityBan({banOnFacility:{userId:this.selection.selected[0].id,facilityId:this.data.entityId,description:e.description,validityTo:e.validity,id:0,beanName:"BanOnVo"}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.ADD_BAN.SUCCESS_USER"),this.dialogRef.close(!0)},error:()=>this.loading=!1})}updateBan(e){this.loading=!0,this.facilityService.updateFacilityBan({banOnFacility:{id:this.ban.id,beanName:"BanOnFacility",facilityId:this.ban.facilityId,userId:this.ban.userId,description:e.description,validityTo:e.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.WI),t.Y36(u.so),t.Y36(d.d6),t.Y36(h.IQ),t.Y36(d.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-facility-ban-dialog"]],decls:3,vars:12,consts:[[3,"loading","disabled","theme","ban","add","cancel"],[3,"placeholder","filter"],[3,"attrNames","selection","tableId","disableRouting","displayedColumns","searchString","facilityId"]],template:function(e,s){1&e&&(t.TgZ(0,"app-add-ban-dialog",0),t.NdJ("add",function(o){return s.submitBan(o)})("cancel",function(){return s.cancel()}),t.TgZ(1,"perun-web-apps-debounce-filter",1),t.NdJ("filter",function(o){return s.setFilter(o)}),t.qZA(),t._UZ(2,"perun-web-apps-users-dynamic-list",2),t.qZA()),2&e&&(t.Q6J("loading",s.loading)("disabled",0===s.selection.selected.length)("theme",s.data.theme)("ban",s.ban),t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_BAN.FILTER"),t.xp6(1),t.Q6J("attrNames",s.attrNames)("selection",s.selection)("tableId",s.tableId)("disableRouting",!0)("displayedColumns",s.displayedColumns)("searchString",s.filter)("facilityId",s.data.entityId))},dependencies:[It.P,to.M,eo.u]}),i})();var so=l(90979),ao=l(73358),no=l(91880);function oo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.BANS.ADD"),"\n"))}function lo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.BANS.REMOVE"),"\n")}}function co(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-ban-on-entity-list",10),t.NdJ("updateBan",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.update(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("bans",e.bans)("selection",e.selection)("displayedColumns",e.displayedColumns)("filter",e.filter)("updatePolicy","updateBan_BanOnFacility_policy")}}function ro(i,n){1&i&&(t.TgZ(0,"div",11),t._UZ(1,"mat-spinner"),t.qZA())}let uo=(()=>{class i{constructor(e,s,a,o,r,_,C){this.facilityService=e,this.entityService=s,this.authResolver=a,this.dialog=o,this.notificator=r,this.store=_,this.userName=C,this.loading=!1,this.bans=[],this.removeAuth=!1,this.filter="",this.selection=new A.Ov(!1,[]),this.attrNames=[X.r.MEMBER_DEF_MAIL,X.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.displayedColumns=["select","banId","subjectId","subjectName","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.facility=this.entityService.getEntity(),this.addAuth=this.authResolver.isAuthorized("setBan_BanOnFacility_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeBan_int_policy",[this.facility]),this.refresh()}refresh(){this.loading=!0,this.facilityService.getEnrichedBansForFacility(this.facility.id,this.attrNames).subscribe({next:e=>{this.bans=e,this.selection.clear(),this.loading=!1},error:()=>this.loading=!1})}add(){const e=(0,p.kZ)();e.width="850px",e.data={entityId:this.facility.id,theme:"facility-theme",bans:this.bans.map(a=>a.ban)},this.dialog.open(io,e).afterClosed().subscribe(a=>{a&&this.refresh()})}remove(){const e=(0,p.kZ)();e.width="550px",e.data={theme:"facility-theme",title:"DIALOGS.REMOVE_BAN.TITLE",description:"DIALOGS.REMOVE_BAN.DESCRIPTION",items:[this.userName.transform(this.selection.selected[0].user)],type:"remove",showAsk:!0},this.dialog.open(M.Ts,e).afterClosed().subscribe(a=>{a&&this.facilityService.removeFacilityBanById(this.selection.selected[0].ban.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.REMOVE_BAN.SUCCESS"),this.refresh()})})}update(e){const s=(0,p.kZ)();s.width="600px",s.data={ban:e.ban,theme:"facility-theme"},this.dialog.open(so.G,s).afterClosed().subscribe(o=>{o&&this.refresh()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(d.fb),t.Y36(d.x4),t.Y36(u.uw),t.Y36(d.V6),t.Y36(d.d6),t.Y36(F.dp))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-bans"]],features:[t._Bn([F.dp])],decls:11,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mt-2","search-field",3,"placeholder","filter"],[1,"position-relative"],[3,"bans","selection","displayedColumns","filter","updatePolicy","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["spinner",""],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"bans","selection","displayedColumns","filter","updatePolicy","updateBan"],[1,"spinner-container"]],template:function(e,s){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return s.refresh()}),t.qZA(),t.YNc(4,oo,3,3,"button",2),t.YNc(5,lo,3,4,"button",3),t.TgZ(6,"perun-web-apps-debounce-filter",4),t.NdJ("filter",function(o){return s.filter=o}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,co,1,5,"perun-web-apps-ban-on-entity-list",6),t.qZA(),t.YNc(9,ro,2,0,"ng-template",null,7,t.W1O)),2&e){const a=t.MAs(10);t.xp6(1),t.hij(" ",t.lcZ(2,6,"FACILITY_DETAIL.SETTINGS.BANS.TITLE"),"\n"),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.SETTINGS.BANS.FILTER"),t.xp6(2),t.Q6J("perunWebAppsLoader",s.loading)("perunWebAppsLoaderIndicator",a)}},dependencies:[m.O5,S.lW,T.Ou,E.t,It.P,ao.e,no.s,f.X$]}),i})();var po=l(35265);const _o=[{path:"",component:it.P,canActivateChild:[W.a],children:[{path:"",component:it.P,data:{animation:"FacilitySelectPage"}}]},{path:":facilityId",component:kt,canActivateChild:[W.a],children:[{path:"",component:Ut,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:te,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:Mt.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:va._,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:Jt.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:ya,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:on,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:he,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:dt,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:gt,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:Xi,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:Gt,children:[{path:"",component:Vt,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:_t,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:ut,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:Ts,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:Vi,data:{animation:"FacilitySettingsBlackListPage"}},{path:"bans",component:uo,data:{animation:"FacilitySettingsBansPage"}}]},{path:"configuration",component:Xn,canActivate:[At],canDeactivate:[At]}]},{path:":facilityId/resources/:resourceId",component:Qt.b,canActivateChild:[W.a],children:[{path:"",component:Ht.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:se.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:ae.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:Cs.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:xa.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:ln.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:ee.t,children:[{path:"",component:ie.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:Ss.O,data:{animation:"ResourceSettingsManagersPage"}},{path:"bans",component:po.I,data:{animation:"ResourceSettingsBansPage"}}]}]}];let mo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[v.Bz.forChild(_o),v.Bz]}),i})();var ho=l(14264),fo=l(63189),go=l(38338),To=l(72705);let So=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[F.dp],imports:[m.ez,mo,ho.m,fo.r,Bi.ez,F.d4,go.UsersModule,To.AdminModule]}),i})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[775],{27775:(Co,et,l)=>{l.r(et),l.d(et,{FacilitiesModule:()=>So});var m=l(36895),v=l(94364),it=l(86353),V=l(36769),bt=l(69024),h=l(61744),p=l(9244),d=l(81591),M=l(21029),yt=l(54037),vt=l(22158),xt=l(82722),t=l(94650),u=l(65412),Et=l(77968),Dt=l(15003),R=l(97392),S=l(4859),T=l(51572),J=l(10266),st=l(61283),Lt=l(4235),B=l(34198),j=l(55660),f=l(89383);function Zt(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Ot(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editFacility())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Rt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.deleteFacility())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}const Ft=function(){return{color:"black"}},at=function(i){return["/facilities",i]};function Nt(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t.NdJ("auxclick",function(s){return s.preventDefault()}),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,Ot,3,0,"button",10),t.YNc(11,Rt,3,0,"button",10),t.qZA(),t.TgZ(12,"span",11),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.qZA()()(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,11,"FACILITY_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(17,Ft)),t.xp6(4),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(18,at,e.facility.id.toString()))("routerLink",t.VKq(20,at,e.facility.id)),t.xp6(1),t.Oqu(e.facility.name),t.xp6(2),t.hij(" \xa0#",e.facility.id," "),t.xp6(1),t.Q6J("ngIf",e.editFacilityAuth),t.xp6(1),t.Q6J("ngIf",e.deleteAuth),t.xp6(2),t.lnq(" ",t.lcZ(14,13,"FACILITY_DETAIL.ENTITY"),", ",t.lcZ(15,15,"FACILITY_DETAIL.DESCRIPTION"),": ",e.facility.description," ")}}let kt=(()=>{class i extends((0,vt.T)()){constructor(e,s,a,o,r,_,C,b,L){super(),this.dialog=e,this.facilityManager=s,this.route=a,this.sideMenuService=o,this.sideMenuItemService=r,this.guiAuthResolver=_,this.router=C,this.entityStorageService=b,this.reloadEntityDetail=L,this.editFacilityAuth=!1,this.deleteAuth=!1,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,xt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const s=Number(e.facilityId);this.facilityManager.getFacilityById(s).subscribe(a=>{this.facility=a,this.entityStorageService.setEntity({id:a.id,beanName:a.beanName}),this.setMenuItems(),this.editFacilityAuth=this.guiAuthResolver.isAuthorized("updateFacility_Facility_policy",[this.facility]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteFacility_Facility_Boolean_policy",[this.facility]),(0,p.sF)("facilities",this.facility),(0,p.XI)(this.facility),this.loading=!1},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseFacility(this.facility);this.sideMenuService.setFacilityMenuItems([e])}editFacility(){const e=(0,p.kZ)();e.width="450px",e.data={theme:"facility-theme",facility:this.facility,dialogType:M.Eg.FACILITY},this.dialog.open(M.rd,e).afterClosed().subscribe(a=>{a&&this.facilityManager.getFacilityById(this.facility.id).subscribe(o=>{this.facility=o,this.setMenuItems()})})}deleteFacility(){const e=(0,p.kZ)();e.width="500px",e.data={theme:"facility-theme",facility:this.facility},this.dialog.open(yt.Y,e).afterClosed().subscribe(a=>{a&&this.router.navigate([""],{queryParamsHandling:"preserve"})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.IQ),t.Y36(v.gz),t.Y36(Et.D),t.Y36(bt.V),t.Y36(d.x4),t.Y36(v.F0),t.Y36(d.fb),t.Y36(Dt.G))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","facility-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-facility-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"facility-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Zt,1,0,"mat-spinner",1),t.YNc(3,Nt,17,22,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading&&void 0!==s.facility))},dependencies:[m.O5,m.PC,v.yS,R.Hw,S.lW,T.Ou,J.gM,st.A,Lt.W,B.Y,j.Q,f.X$],data:{animation:[V.Ji]}}),i})();var nt=l(71135);function wt(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Yt(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let Ut=(()=>{class i{constructor(e,s,a,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=a,this.routePolicyService=o,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.navItems=[],this.routePolicyService.canNavigate("facilities-resources",this.facility)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/facilities/${this.facility.id}/resources`,label:"MENU_ITEMS.FACILITY.RESOURCES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-users",this.facility)&&this.navItems.push({cssIcon:"perun-user",url:`/facilities/${this.facility.id}/allowed-users`,label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-groups",this.facility)&&this.navItems.push({cssIcon:"perun-group",url:`/facilities/${this.facility.id}/allowed-groups`,label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-status",this.facility)&&this.navItems.push({cssIcon:"perun-service-status",url:`/facilities/${this.facility.id}/services-status`,label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-destinations",this.facility)&&this.navItems.push({cssIcon:"perun-service_destination",url:`/facilities/${this.facility.id}/services-destinations`,label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-hosts",this.facility)&&this.navItems.push({cssIcon:"perun-hosts",url:`/facilities/${this.facility.id}/hosts`,label:"MENU_ITEMS.FACILITY.HOSTS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-attributes",this.facility)&&this.navItems.push({cssIcon:"perun-attributes",url:`/facilities/${this.facility.id}/attributes`,label:"MENU_ITEMS.FACILITY.ATTRIBUTES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings",this.facility)&&this.navItems.push({cssIcon:"perun-settings2",url:`/facilities/${this.facility.id}/settings`,label:"MENU_ITEMS.FACILITY.SETTINGS",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb),t.Y36(d.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-overview"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,s){1&e&&(t.YNc(0,wt,1,0,"mat-spinner",0),t.YNc(1,Yt,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,T.Ou,nt.L]}),i})();var Mt=l(34904),Jt=l(37380),Qt=l(98918),Ht=l(4675);let Gt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:1,vars:0,template:function(e,s){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[st.A],data:{animation:[V.Ji]}}),i})();function Pt(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function qt(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let Vt=(()=>{class i{constructor(e,s,a,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=a,this.routePolicyService=o,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.routePolicyService.canNavigate("facilities-settings-owners",this.facility)&&this.items.push({cssIcon:"perun-owner-grey",url:`/facilities/${this.facility.id}/settings/owners`,label:"MENU_ITEMS.FACILITY.OWNERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-managers",this.facility)&&this.items.push({cssIcon:"perun-manager",url:`/facilities/${this.facility.id}/settings/managers`,label:"MENU_ITEMS.FACILITY.MANAGERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",this.facility)&&this.items.push({cssIcon:"perun-security-teams",url:`/facilities/${this.facility.id}/settings/security-teams`,label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",this.facility)&&this.items.push({cssIcon:"perun-black-list",url:`/facilities/${this.facility.id}/settings/blacklist`,label:"MENU_ITEMS.FACILITY.BLACKLIST",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-bans",this.facility)&&this.items.push({cssIcon:"perun-ban",url:`/facilities/${this.facility.id}/settings/bans`,label:"MENU_ITEMS.FACILITY.BANS",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb),t.Y36(d.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-overview"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,s){1&e&&(t.YNc(0,Pt,1,0,"mat-spinner",0),t.YNc(1,qt,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,T.Ou,nt.L]}),i})();var Q=l(3848),Bt=l(48323),jt=l(12651);function Kt(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"FACILITY_DETAIL.ENTITY")," ")}function zt(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.facility.id)("entity","facility")}}function $t(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"FACILITY_DETAIL.ENTITY")," - ",t.lcZ(2,4,"ADMIN_USER.ENTITY")," ")}function Wt(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","facility")("firstEntityId",e.facility.id)("secondEntity","user")}}function Xt(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,$t,3,6,"ng-template",1),t.YNc(2,Wt,1,3,"ng-template",2),t.qZA())}let te=(()=>{class i{constructor(e,s){this.authResolver=e,this.entityStorageService=s}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityUserAttAuth=this.authResolver.isAuthorized("getAssignedUsers_Facility_policy",[this.facility])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-attributes"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:9,vars:4,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,Kt,2,3,"ng-template",1),t.YNc(7,zt,1,2,"ng-template",2),t.qZA(),t.YNc(8,Xt,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",s.facilityUserAttAuth))},dependencies:[m.O5,Q.SP,Q.uD,Q.uX,Q.Vc,Bt.Y,jt.t,f.X$]}),i})();var ee=l(60113),ie=l(16500),se=l(92090),ae=l(258),g=l(24006),H=l(68675),G=l(54004),F=l(19516),ot=l(47957),lt=l(3238),N=l(59549),K=l(284),Z=l(56709),ct=l(31359);function ne(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedService(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function oe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",7),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedSerVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9)(5,"mat-option",10),t.NdJ("onSelectionChange",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onSelectedService("NOT_SELECTED"))}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-option",10),t.NdJ("onSelectionChange",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onSelectedService("ALL"))}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,ne,2,2,"mat-option",11),t.ALo(12,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,9,"FACILITY_DETAIL.SERVICE_CONFIG.SERVICE_SELECT")),t.Q6J("formControl",s.serviceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.serviceDisplayFn.bind(s)),t.xp6(2),t.Q6J("value","NOT_SELECTED"),t.xp6(1),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED")," "),t.xp6(2),t.Q6J("value","ALL"),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.SERVICE_CONFIG.ALL")," "),t.xp6(2),t.Q6J("ngForOf",t.lcZ(12,15,s.filteredServices))}}function le(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedResource(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ce(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",12),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedResVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,le,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.RES_SELECT")),t.Q6J("formControl",s.resourceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.resourceDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredResources))}}function re(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedGroup(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ue(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",12),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedGroupVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",13,9),t.YNc(5,re,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.GROUP_SELECT")),t.Q6J("formControl",s.groupField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.groupDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredGroups))}}function pe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedMember(o))}),t._uU(1),t.ALo(2,"userFullName"),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.user)," ")}}function de(i,n){if(1&i&&(t.TgZ(0,"mat-form-field",6),t._UZ(1,"input",14),t.ALo(2,"translate"),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,pe,3,4,"mat-option",11),t.ALo(6,"async"),t.qZA()()),2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.MEMBER_SELECT")),t.Q6J("matAutocomplete",e)("formControl",s.memberField),t.xp6(2),t.Q6J("displayWith",s.memberDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredMembers))}}function _e(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",3),t.YNc(1,oe,13,17,"mat-form-field",4),t.TgZ(2,"mat-checkbox",5),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.onOfferAllServices(a))}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,ce,7,9,"mat-form-field",4),t.YNc(6,ue,7,9,"mat-form-field",4),t.YNc(7,de,7,9,"mat-form-field",4),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",void 0!==e.services),t.xp6(2),t.hij(" ",t.lcZ(4,5,"FACILITY_DETAIL.SERVICE_CONFIG.ALL_SERVICES")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.resources&&0!==e.resources.length),t.xp6(1),t.Q6J("ngIf",void 0!==e.selectedResource&&void 0!==e.groups&&0!==e.groups.length),t.xp6(1),t.Q6J("ngIf",void 0!==e.selectedGroup&&void 0!==e.members&&0!==e.members.length)}}function me(i,n){if(1&i&&t._UZ(0,"perun-web-apps-service-configurator",15),2&i){const e=t.oxw();t.Q6J("facility",e.facility)("resource",e.selectedResource)("group",e.selectedGroup)("member",e.selectedMember)("service",e.selectedService)}}let he=(()=>{class i{constructor(e,s,a,o,r,_,C){this.facilityManager=e,this.resourceManager=s,this.serviceManager=a,this.membersManager=o,this.namePipe=r,this.translate=_,this.entityStorageService=C,this.serviceField=new g.p4,this.resourceField=new g.p4,this.groupField=new g.p4,this.memberField=new g.p4,this.allowedStatuses=["INVALID","VALID"],this.selectedService="NOT_SELECTED",this.attrNames=[],this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.ALL").subscribe(b=>this.serviceAllTranslation=b),this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED").subscribe(b=>this.serviceNotSelectedTranslation=b)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(s=>this.resources=s),this.serviceManager.getAssignedServices(e.id).subscribe(s=>this.services=s)}),this.filteredServices=this.serviceField.valueChanges.pipe((0,H.O)(""),(0,G.U)(e=>this._filterServices(e))),this.filteredResources=this.resourceField.valueChanges.pipe((0,H.O)(""),(0,G.U)(e=>this._filterResources(e))),this.filteredGroups=this.groupField.valueChanges.pipe((0,H.O)(""),(0,G.U)(e=>this._filterGroups(e))),this.filteredMembers=this.memberField.valueChanges.pipe((0,H.O)(""),(0,G.U)(e=>this._filterMembers(e)))}onSelectedService(e){this.selectedService=e}onSelectedResource(e){this.selectedResource=e,void 0!==this.selectedResource?(this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(s=>this.groups=s),this.selectedGroup=void 0,this.selectedMember=void 0):this.groups=void 0}onOfferAllServices(e){e.checked||this.serviceManager.getAssignedServices(this.facility.id).subscribe(s=>this.services=s)}onSelectedGroup(e){this.selectedGroup=e,void 0!==this.selectedGroup?(this.membersManager.getCompleteRichMembersForGroup(this.selectedGroup.id,!1,this.allowedStatuses,[],this.attrNames).subscribe(s=>this.members=s),this.selectedMember=void 0):this.members=void 0}onSelectedMember(e){this.selectedMember=e}serviceDisplayFn(e){if(null!==e)return"ALL"===e?this.serviceAllTranslation:"NOT_SELECTED"===e?this.serviceNotSelectedTranslation:"string"!=typeof e?e.name:e}resourceDisplayFn(e){if(null!==e)return e.name}groupDisplayFn(e){if(null!==e)return e.name}memberDisplayFn(e){if(null!==e)return this.namePipe.transform(e.user)}updatedSerVal(e){""===e.target.value&&(this.selectedService="NOT_SELECTED")}updatedResVal(e){""===e.target.value&&(this.groups=void 0,this.members=void 0)}updatedGroupVal(e){""===e.target.value&&(this.members=void 0)}_filterServices(e){const s=e.toString().toLowerCase();return this.services.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterResources(e){const s=e.toString().toLowerCase();return this.resources.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterGroups(e){const s=e.toString().toLowerCase();return this.groups.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterMembers(e){const s=e.toString().toLowerCase();return this.members.filter(a=>this.namePipe.transform(a.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(h.xk),t.Y36(h.KK),t.Y36(h.uq),t.Y36(F.dp),t.Y36(f.sK),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-service-config"]],decls:6,vars:5,consts:[[1,"page-subtitle"],["class","col-12 col-lg-6 mb-2",4,"ngIf"],[3,"facility","resource","group","member","service",4,"ngIf"],[1,"col-12","col-lg-6","mb-2"],["class","w-100",4,"ngIf"],[3,"change"],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keyup"],["autoActiveFirstOption","",3,"displayWith"],["auto","matAutocomplete"],[3,"value","onSelectionChange"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],["matInput","","type","text",3,"formControl","matAutocomplete","placeholder","keyup"],["autoActiveFirstOption","",3,"displayWith","ngClass"],["matInput","","type","text",3,"matAutocomplete","placeholder","formControl"],[3,"facility","resource","group","member","service"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,_e,8,7,"div",1),t.YNc(5,me,1,5,"perun-web-apps-service-configurator",2),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"FACILITY_DETAIL.SERVICE_CONFIG.TITLE")),t.xp6(2),t.Q6J("ngIf",!!s.facility),t.xp6(1),t.Q6J("ngIf",!!s.facility))},dependencies:[m.mk,m.sg,m.O5,ot.XC,ot.ZL,lt.ey,N.KE,K.Nt,g.Fj,g.JJ,g.oH,Z.oG,m.Ov,f.X$,ct.d]}),i})();var rt=l(28361);let ut=(()=>{class i{constructor(e,s,a){this.facilityService=e,this.guiAuthResolver=s,this.entityStorageService=a,this.disableRouting=!1,this.disableSelf=!1,this.availableRoles=[],this.selected="user",this.type="Facility",this.theme="facility-theme"}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-settings-managers"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},inputs:{disableRouting:"disableRouting",disableSelf:"disableSelf"},decls:1,vars:6,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","disableSelf","disableRouting","theme"]],template:function(e,s){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",s.facility)("availableRoles",s.availableRoles)("complementaryObjectType",s.type)("disableSelf",s.disableSelf)("disableRouting",s.disableRouting)("theme",s.theme)},dependencies:[rt.s]}),i})();var x=l(10036),A=l(95017),fe=l(89466),ge=l(84385);function Te(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Se(i,n){1&i&&(t.TgZ(0,"mat-option",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.SELECTION_ALL")))}function Ce(i,n){1&i&&(t.TgZ(0,"mat-option",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.NO_SERVICE")))}function Ae(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Ie(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.CHOOSE_SERVICE")," "))}function be(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit,s=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.hij(" ",s.getTypeForView(e)," ")}}function ye(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.REQUIRED_FIELD")," "))}function ve(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.INVALID_DESTINATION")," "))}function xe(i,n){if(1&i&&(t.TgZ(0,"mat-form-field",22),t._UZ(1,"input",23),t.YNc(2,ye,3,3,"mat-error",13),t.YNc(3,ve,3,3,"mat-error",13),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.s9C("placeholder",e.getTypeForView(e.selectedType)),t.Q6J("formControl",e.destinationControl),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType&&!e.useFacilityHost&&e.destinationControl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.destinationControl.hasError("invalidDestination"))}}function Ee(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.useFacilityHost=a)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("ngModel",e.useFacilityHost),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_SERVICE_DESTINATION.USE_FACILITY_HOST")," ")}}function De(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Le(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field")(5,"mat-select",9),t.ALo(6,"translate"),t.YNc(7,Se,3,3,"mat-option",10),t.YNc(8,Ce,3,3,"mat-option",11),t.YNc(9,Ae,2,2,"mat-option",12),t.qZA(),t.YNc(10,Ie,3,3,"mat-error",13),t.qZA(),t.TgZ(11,"mat-checkbox",14),t.NdJ("change",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getServices())})("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.servicesOnFacility=a)}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"mat-form-field")(15,"mat-select",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.selectedType=a)})("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.destinationControl.updateValueAndValidity())}),t.ALo(16,"translate"),t.YNc(17,be,2,2,"mat-option",12),t.qZA()(),t.YNc(18,xe,4,4,"mat-form-field",16),t.YNc(19,Ee,3,4,"mat-checkbox",17),t.TgZ(20,"mat-form-field")(21,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.selectedPropagation=a)}),t.ALo(22,"translate"),t.YNc(23,De,2,2,"mat-option",12),t.qZA()(),t.TgZ(24,"div",8),t._uU(25),t.ALo(26,"translate"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,18,"DIALOGS.ADD_SERVICE_DESTINATION.DESCRIPTION")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,20,"DIALOGS.ADD_SERVICE_DESTINATION.SERVICE")),t.Q6J("formControl",e.serviceControl),t.xp6(2),t.Q6J("ngIf",0!==e.services.length),t.xp6(1),t.Q6J("ngIf",0===e.services.length),t.xp6(1),t.Q6J("ngForOf",e.services),t.xp6(1),t.Q6J("ngIf",void 0===e.serviceControl.value),t.xp6(1),t.Q6J("ngModel",e.servicesOnFacility),t.xp6(1),t.Oqu(t.lcZ(13,22,"DIALOGS.ADD_SERVICE_DESTINATION.IS_SERVICES_ONLY_ON_FACILITY")),t.xp6(3),t.s9C("placeholder",t.lcZ(16,24,"DIALOGS.ADD_SERVICE_DESTINATION.TYPE")),t.Q6J("ngModel",e.selectedType),t.xp6(2),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf",!("host"===e.selectedType&&e.useFacilityHost)),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION")),t.Q6J("ngModel",e.selectedPropagation),t.xp6(2),t.Q6J("ngForOf",e.propagations),t.xp6(2),t.hij(" ",t.lcZ(26,28,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION_TYPE_"+e.selectedPropagation)," ")}}let Ze=(()=>{class i{constructor(e,s,a,o){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.servicesManager=o,this.services=[],this.types=["host","user@host","user@host:port","user@host-windows","host-windows-proxy","url","email","semail","service-specific"],this.selectedType="host",this.propagations=["PARALLEL","DUMMY"],this.selectedPropagation="PARALLEL",this.useFacilityHost=!1,this.loading=!1,this.emailRegex=new RegExp(p.B2),this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$"),this.urlPattern=new RegExp("^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;()*$']*[-a-zA-Z0-9+&@#/%=~_|()*$']$"),this.userAtHostPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$)"),this.userAtHostPortPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}):[0-9]+"),this.serviceSpecificPattern=new RegExp("^(?!-)[a-zA-Z0-9-_.:/]*$")}ngOnInit(){this.serviceControl=new g.p4(void 0,g.kI.required),this.destinationControl=new g.p4("",this.getDestinationValidator()),this.emailControl=new g.p4("",[g.kI.required,g.kI.pattern(this.emailRegex)]),this.servicesOnFacility=!0,this.getServices()}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"all"===this.serviceControl.value?this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility({services:this.services,facility:this.data.facility.id}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestinationToMultipleServices({services:this.services,facility:this.data.facility.id,destination:this.destinationControl.value,type:this.selectedType,propagationType:this.selectedPropagation}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(this.serviceControl.value.id,this.data.facility.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestination(this.serviceControl.value.id,this.data.facility.id,this.destinationControl.value,this.selectedType,this.selectedPropagation).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getServices(){this.loading=!0,this.servicesOnFacility?0!==this.data.configServices.length?this.services=this.data.configServices:this.servicesManager.getAssignedServices(this.data.facility.id).subscribe(e=>{this.services=e},()=>this.loading=!1):this.servicesManager.getServices().subscribe(e=>{this.services=e},()=>this.loading=!1),this.loading=!1,this.serviceControl.setValue(void 0)}getTypeForView(e){return"semail"===e?"Send Mail":"service-specific"===e?"Service Specific":e}invalidDestination(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}getDestinationValidator(){return e=>{if(!e.value)return null;let s;switch(this.selectedType){case"host":case"host-windows-proxy":s=this.hostPattern;break;case"email":case"semail":s=this.emailRegex;break;case"url":s=this.urlPattern;break;case"user@host":case"user@host-windows":s=this.userAtHostPattern;break;case"user@host:port":s=this.userAtHostPortPattern;break;case"service-specific":s=this.serviceSpecificPattern;break;default:return null}return s.test(e.value)?null:{invalidDestination:{value:e.value}}}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.IQ),t.Y36(h.KK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-add-services-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-italic"],["required","",3,"formControl","placeholder"],["value","all",4,"ngIf"],["value","noService",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],["class","w-100",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],[3,"ngModel","placeholder","ngModelChange"],["value","all"],["value","noService"],[3,"value"],[1,"w-100"],["matInput","","required","",3,"formControl","placeholder"],[3,"ngModel","ngModelChange"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Te,1,0,"mat-spinner",1),t.YNc(5,Le,27,30,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(s.data.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||s.invalidDestination()||s.serviceControl.invalid||"noService"===s.serviceControl.value),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},dependencies:[m.sg,m.O5,lt.ey,N.TO,N.KE,K.Nt,g.Fj,g.JJ,g.Q7,g.oH,g.On,S.lW,Z.oG,u.uh,u.xY,u.H8,ge.gD,T.Ou,f.X$],data:{animation:[V.BQ]}}),i})();var pt=l(70242),O=l(98380),E=l(96214),D=l(7434);function Oe(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.DESTINATIONS_INFO")," "))}function Re(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addDestination())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function Fe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeDestination())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function Ne(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAllow())}),t.TgZ(1,"mat-icon"),t._uU(2," check_circle_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedAllowed()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function ke(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onBlock())}),t.TgZ(1,"mat-icon"),t._uU(2," block "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedBlocked()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function we(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function Ye(i,n){if(1&i&&t._UZ(0,"app-perun-web-apps-destination-list",14),2&i){const e=t.oxw();t.Q6J("filterValue",e.filterValue)("selection",e.selected)("destinations",e.destinations)("services",e.configServicesIds)("displayedColumns",e.displayedColumns)("tableId",e.tableId)}}let dt=(()=>{class i{constructor(e,s,a,o,r,_,C,b){this.dialog=e,this.facilitiesManager=s,this.servicesManager=a,this.translate=o,this.notificator=r,this.authResolver=_,this.serviceManager=C,this.entityStorageService=b,this.displayedColumns=["select","destinationId","service","destination","type","status","propagationType"],this.configServices=[],this.configServicesIds=new Set,this.title="FACILITY_DETAIL.SERVICES_DESTINATIONS.TITLE",this.destinationEmitter=new t.vpe,this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.Cf}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.servicesManager.getAllRichDestinationsForFacility(this.facility.id).subscribe(e=>{this.destinations=e,this.destinationEmitter.emit(this.destinations),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addDestination_Service_Facility_Destination_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeDestination_Service_Facility_Destination_policy",[this.facility]),this.allowAuth=this.authResolver.isAuthorized("unblockServiceOnDestination_Service_int_policy",[this.facility]),this.blockAuth=this.authResolver.isAuthorized("blockServiceOnDestination_Service_int_policy",[this.facility]),this.displayedColumns=this.removeAuth?this.displayedColumns:this.displayedColumns.filter(e=>"select"!==e)}addDestination(){const e=(0,p.kZ)();e.width="600px",e.data={facility:this.facility,theme:"facility-theme",configServices:this.configServices},this.dialog.open(Ze,e).afterClosed().subscribe(a=>{a&&(this.refreshTable(),this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS")))})}removeDestination(){const e=(0,p.kZ)();e.width="600px",e.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(fe.u,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}blockServicesOnDestinations(e){this.serviceManager.blockServicesOnDestinations({richDestinations:e}).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK_SUCCESS")),this.refreshTable()},error:()=>this.loading=!1})}onBlock(){this.loading=!0,this.blockServicesOnDestinations(this.selected.selected)}allowServicesOnDestinations(e){this.serviceManager.unblockServicesOnDestinations({richDestinations:e}).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW_SUCCESS")),this.refreshTable()},error:()=>this.loading=!1})}onAllow(){this.loading=!0,this.allowServicesOnDestinations(this.selected.selected)}applyFilter(e){this.filterValue=e}allSelectedAllowed(){return this.selected.selected.reduce((e,s)=>e&&!s.blocked,!0)}allSelectedBlocked(){return this.selected.selected.reduce((e,s)=>e&&s.blocked,!0)}}return i.id="FacilityServicesDestinationsComponent",i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.IQ),t.Y36(h.KK),t.Y36(d.Te),t.Y36(d.V6),t.Y36(d.x4),t.Y36(h.KK),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-services-destinations"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},inputs:{displayedColumns:"displayedColumns",configServices:"configServices",configServicesIds:"configServicesIds",title:"title",loading:"loading"},outputs:{destinationEmitter:"destinationEmitter"},decls:13,vars:11,consts:[[1,"page-subtitle"],["alert_type","info",4,"ngIf"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","mat-stroked-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"filterValue","selection","destinations","services","displayedColumns","tableId",4,"ngIf"],["alert_type","info"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"filterValue","selection","destinations","services","displayedColumns","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Oe,3,3,"perun-web-apps-alert",1),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,Re,3,3,"button",3),t.YNc(7,Fe,3,4,"button",4),t.YNc(8,Ne,5,4,"button",5),t.YNc(9,ke,5,4,"button",5),t.TgZ(10,"perun-web-apps-immediate-filter",6),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(11,we,1,0,"mat-spinner",7),t.YNc(12,Ye,1,6,"app-perun-web-apps-destination-list",8),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,9,s.title)),t.xp6(2),t.Q6J("ngIf",s.title.includes("CONFIG")),t.xp6(2),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,R.Hw,S.lW,T.Ou,pt.q,O.w,E.t,D.L,f.X$]}),i})();var z=l(23256);function Ue(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Me(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t.TgZ(2,"div",5),t._UZ(3,"perun-web-apps-owners-list",6),t.qZA(),t.TgZ(4,"div",7)(5,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(9),t.ALo(10,"translate"),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_OWNERS.FILTER"),t.xp6(2),t.Q6J("filterValue",e.filterValue)("selection",e.selection)("owners",e.owners)("tableId",e.tableId),t.xp6(3),t.hij(" ",t.lcZ(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||e.loading),t.xp6(1),t.hij(" ",t.lcZ(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}let Je=(()=>{class i{constructor(e,s,a,o,r,_){this.dialogRef=e,this.data=s,this.notificator=a,this.translate=o,this.ownersManagerService=r,this.facilitiesManagerService=_,this.extSources=[],this.selection=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.BV,this.owners=[]}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=e.filter(s=>!this.data.forbiddenOwners.includes(s.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}onAdd(){this.loading=!0;const e=this.selection.selected.map(s=>s.id);this.facilitiesManagerService.addFacilityOwners(this.data.facilityId,e).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_OWNERS.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(d.Te),t.Y36(h.aC),t.Y36(h.IQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-facility-owner-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"font-size-1rem",3,"placeholder","filter"],["mat-dialog-content",""],[3,"filterValue","selection","owners","tableId"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Ue,1,0,"mat-spinner",1),t.YNc(5,Me,11,12,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,u.uh,u.xY,u.H8,T.Ou,D.L,z.Q,f.X$]}),i})();var c=l(30671);function Qe(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function He(i,n){1&i&&t._UZ(0,"th",15)}function Ge(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Pe(i,n){1&i&&t._UZ(0,"tr",17)}function qe(i,n){1&i&&t._UZ(0,"tr",18)}function Ve(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,He,1,0,"th",11),t.YNc(10,Ge,2,1,"td",12),t.BQk(),t.YNc(11,Pe,1,0,"tr",13),t.YNc(12,qe,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_OWNERS.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_OWNERS.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Be=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.notificator=a,this.translate=o,this.facilitiesManagerService=r,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new c.by(this.data.owners),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=this.data.owners.map(s=>s.id);this.facilitiesManagerService.removeFacilityOwners(this.data.facilityId,e).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_OWNERS.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(d.Te),t.Y36(h.IQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-facility-owner-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Qe,1,0,"mat-spinner",1),t.YNc(5,Ve,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},dependencies:[m.O5,S.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,f.X$]}),i})();function je(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function Ke(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function ze(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function $e(i,n){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("owners",e.owners)("selection",e.selection)("tableId",e.tableId)}}let _t=(()=>{class i{constructor(e,s,a,o){this.facilitiesManagerService=e,this.dialog=s,this.authResolver=a,this.entityStorageService=o,this.ownerEmitter=new t.vpe,this.owners=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=x.zp}ngOnInit(){this.filterValue="",this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.facilitiesManagerService.getFacilityOwners(this.facility.id).subscribe(e=>{this.owners=e,this.ownerEmitter.emit(this.owners),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addOwner_Facility_Owner_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeOwner_Facility_Owner_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","contact","type"]:["id","name","contact","type"]}applyFilter(e){this.filterValue=e}onCreate(){const e=(0,p.kZ)();e.width="800px",e.data={theme:"facility-theme",facilityId:this.facility.id,forbiddenOwners:this.owners.map(a=>a.id)},this.dialog.open(Je,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facility.id},this.dialog.open(Be,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(u.uw),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-owners"]],outputs:{ownerEmitter:"ownerEmitter"},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","owners","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","owners","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(4,je,3,3,"button",2),t.YNc(5,Ke,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(7,ze,1,0,"mat-spinner",5),t.YNc(8,$e,1,5,"perun-web-apps-owners-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"FACILITY_DETAIL.SETTINGS.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,T.Ou,E.t,D.L,z.Q,f.X$]}),i})();var We=l(22308);function Xe(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function ti(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function ei(i,n){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.AsE(" ",t.lcZ(2,2,"DIALOGS.ADD_HOST.INVALID_HOST")," ",e.hostsCtrl.getError("invalidHost").value," ")}}function ii(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"mat-form-field")(2,"textarea",8),t.ALo(3,"translate"),t._uU(4," "),t.qZA(),t.YNc(5,ti,3,3,"mat-error",9),t.YNc(6,ei,3,4,"mat-error",9),t.qZA(),t.TgZ(7,"perun-web-apps-alert",10),t._uU(8),t.ALo(9,"translate"),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Q6J("formControl",e.hostsCtrl)("placeholder",t.lcZ(3,5,"DIALOGS.ADD_HOST.SUBTITLE")),t.xp6(3),t.Q6J("ngIf",e.hostsCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hostsCtrl.hasError("invalidHost")),t.xp6(2),t.Oqu(t.lcZ(9,7,"DIALOGS.ADD_HOST.HINT"))}}let si=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.notificator=o,this.translate=r,this.loading=!1,this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$")}static parseRange(e){const[s,a]=e.split("-");return[parseInt(s.substring(1,s.length),10),parseInt(a.substring(0,a.length),10)]}ngOnInit(){this.theme=this.data.theme,this.hostsCtrl=new g.p4("",[g.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const e=this.hostsCtrl.value.split("\n");let s=[];for(const a of e)s=s.concat(this.parseHostName(a));this.facilitiesManager.addHosts(this.data.facilityId,s).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}hostsNameValidator(){return e=>{let s=[];const a=e.value.split("\n");for(const o of a)s=s.concat(this.parseHostName(o));for(const o of s)if(!this.hostPattern.test(o))return{invalidHost:{value:o}};return null}}parseHostName(e){const s=new RegExp("[[0-9]+-[0-9]+]","g"),a=e.split(s),o=e.match(s);if(null==o)return""===e?[]:[e];let r=[];for(let _=0;_{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.notificator=o,this.translate=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.hosts=this.data.hosts,this.dataSource=new c.by(this.data.hosts)}onConfirm(){this.loading=!0,this.facilitiesManager.removeHosts(this.data.facilityId,this.hosts.map(e=>e.id)).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.IQ),t.Y36(d.V6),t.Y36(f.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-host-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,ai,1,0,"mat-spinner",1),t.YNc(5,ri,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_HOST.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_HOST.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_HOST.CONFIRM")," "))},dependencies:[m.O5,S.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,f.X$]}),i})();var I=l(96308),k=l(18750),mt=l(64597),w=l(9185),Y=l(8231),U=l(14849);function pi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",15)(1,"mat-checkbox",16),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}const di=function(i){return{name:i}};function _i(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",17)(1,"mat-checkbox",18),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(7,di,e.hostname)))("checked",s.selection.isSelected(e))}}function mi(i,n){1&i&&(t.ynx(0,12),t.YNc(1,pi,4,7,"th",13),t.YNc(2,_i,4,9,"td",14),t.BQk())}function hi(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_ID")," "))}function fi(i,n){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function gi(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_NAME")," "))}function Ti(i,n){if(1&i&&(t.TgZ(0,"td",21),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&i){const e=n.$implicit;t.uIk("data-cy",t.lcZ(1,2,e.hostname)),t.xp6(2),t.hij(" ",e.hostname," ")}}function Si(i,n){1&i&&t._UZ(0,"tr",22)}const ht=function(i,n){return["/facilities",i,"hosts",n]};function Ci(i,n){if(1&i&&t._UZ(0,"tr",23),2&i){const e=n.$implicit,s=t.oxw();t.Q6J("perunWebAppsMiddleClickRouterLink",s.disableRouting?null:t.WLB(2,ht,s.facilityId.toString(),e.id.toString()))("routerLink",s.disableRouting?null:t.WLB(5,ht,s.facilityId,e.id))}}function Ai(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ii(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.NO_HOST_WARNING"),"\n"))}const bi=function(i){return{all:i}};let ft=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.hosts=[],this.selection=new A.Ov(!0,[]),this.disableRouting=!1,this.displayedColumns=["select","id","name"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"name":return e.hostname;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new c.by(this.hosts),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-hosts-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",tableId:"tableId",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},features:[t.TTD],decls:15,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,mi,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,hi,3,3,"th",5),t.YNc(7,fi,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,gi,3,3,"th",5),t.YNc(10,Ti,3,4,"td",8),t.BQk(),t.YNc(11,Si,1,0,"tr",9),t.YNc(12,Ci,1,8,"tr",10),t.qZA()()(),t.YNc(13,Ai,3,3,"perun-web-apps-alert",11),t.YNc(14,Ii,3,3,"perun-web-apps-alert",11)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.hosts.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,bi,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(8),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.hosts.length),t.xp6(1),t.Q6J("ngIf",0===s.hosts.length))},dependencies:[m.O5,v.rH,I.YE,I.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,Z.oG,O.w,B.Y,j.Q,k.l,f.X$,mt.R,w.I,Y.G,U.r],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function yi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addHost())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.HOSTS.ADD")," "))}function vi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeHost())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.HOSTS.REMOVE")," ")}}function xi(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Ei(i,n){if(1&i&&t._UZ(0,"app-hosts-list",10),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth||e.disableRouting)("filterValue",e.filterValue)("hosts",e.hosts)("selection",e.selected)("displayedColumns",e.displayedColumns)("facilityId",e.facility.id)("tableId",e.tableId)}}let gt=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=a,this.entityStorageService=o,this.disableRouting=!1,this.hostEmitter=new t.vpe,this.hosts=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.eq,this.displayedColumns=["id","name"]}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.facilitiesManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getHosts(this.facility.id).subscribe(e=>{this.hosts=e,this.hostEmitter.emit(this.hosts),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addHosts_Facility_List_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeHosts_List_Facility_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"],0!==this.hosts.length&&(this.routeAuth=this.authResolver.isAuthorized("getHostById_int_policy",[this.facility,this.hosts[0]]))}addHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(si,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(ui,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts"]],inputs:{disableRouting:"disableRouting"},outputs:{hostEmitter:"hostEmitter"},decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","hosts","selection","displayedColumns","facilityId","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","hosts","selection","displayedColumns","facilityId","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(5,yi,3,3,"button",2),t.YNc(6,vi,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(8,xi,1,0,"mat-spinner",5),t.YNc(9,Ei,1,7,"app-hosts-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,T.Ou,ft,E.t,D.L,f.X$]}),i})();function Di(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}const Li=function(i){return{name:i}};function Zi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.ALo(4,"userFullName"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(9,Li,t.lcZ(4,7,e[1]))))("checked",s.selection.isSelected(e))}}function Oi(i,n){1&i&&(t.ynx(0,13),t.YNc(1,Di,4,7,"th",14),t.YNc(2,Zi,5,11,"td",15),t.BQk())}function Ri(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")," "))}function Fi(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e[1].id," ")}}function Ni(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")," "))}function ki(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e[1])," ")}}function wi(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")," "))}function Yi(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e[0].description," ")}}function Ui(i,n){1&i&&t._UZ(0,"tr",23)}function Mi(i,n){1&i&&t._UZ(0,"tr",24)}function Ji(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Qi(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}const Hi=function(i){return{all:i}};let Gi=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.bansOnFacilitiesWithUsers=[],this.selection=new A.Ov(!0,[]),this.pageSizeOptions=p.f7,this.displayedColumns=["select","userId","name","reason"]}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"userId":return e[1].id.toString();case"reason":return e[0].description;case"name":return(0,p.hu)(e[1]);default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"userId"!==e)),this.dataSource=new c.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",tableId:"tableId"},features:[t.TTD],decls:18,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","userId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","reason"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,Oi,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Ri,3,3,"th",5),t.YNc(7,Fi,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Ni,3,3,"th",5),t.YNc(10,ki,3,3,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,wi,3,3,"th",5),t.YNc(13,Yi,2,1,"td",8),t.BQk(),t.YNc(14,Ui,1,0,"tr",10),t.YNc(15,Mi,1,0,"tr",11),t.qZA()()(),t.YNc(16,Ji,3,3,"perun-web-apps-alert",12),t.YNc(17,Qi,3,3,"perun-web-apps-alert",12)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Hi,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(11),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("ngIf",0===s.bansOnFacilitiesWithUsers.length))},dependencies:[m.O5,I.YE,I.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,Z.oG,O.w,k.l,f.X$,ct.d,w.I,Y.G,U.r]}),i})();function Pi(i,n){1&i&&t._UZ(0,"mat-spinner",5)}function qi(i,n){if(1&i&&t._UZ(0,"app-perun-web-apps-blacklist-list",6),2&i){const e=t.oxw();t.Q6J("bansOnFacilitiesWithUsers",e.bansOnFacilitiesWithUsers)("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let Vi=(()=>{class i{constructor(e,s,a){this.facilitiesManager=e,this.usersManager=s,this.entityStorageService=a,this.bansOnFacilitiesWithUsers=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.NG}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getBansForFacility(this.facility.id).subscribe(e=>{const s=e;for(const a of s){let o;this.usersManager.getUserById(a.userId).subscribe(r=>{o=r}),this.bansOnFacilitiesWithUsers.push([a,o])}this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(h.Fv),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-settings-blacklist"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"bansOnFacilitiesWithUsers","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"bansOnFacilitiesWithUsers","filterValue","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.ALo(6,"translate"),t.qZA(),t.YNc(7,Pi,1,0,"mat-spinner",3),t.YNc(8,qi,1,4,"app-perun-web-apps-blacklist-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),t.xp6(3),t.Q6J("placeholder",t.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,T.Ou,Gi,E.t,D.L,f.X$]}),i})();var Bi=l(37433),ji=l(61365),Ki=l(71103),Tt=l(53984);const zi=["list"];function $i(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Wi(i,n){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&i){const e=t.oxw();t.Q6J("selection",e.selected)("attributes",e.attributes)("tableId",e.tableId)}}let Xi=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.attributesManager=s,this.facilityManager=a,this.route=o,this.attributes=[],this.selected=new A.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=x.rF}ngOnInit(){this.route.params.subscribe(e=>{this.hostId=Number(e.hostId),this.facilityManager.getHostById(this.hostId).subscribe(s=>{this.host=s}),this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(e=>{this.attributes=(0,p.MX)(e),this.selected.clear(),this.loading=!1})}onSave(){this.list.updateMapAttributes();const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(M.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}addAttribute(){const e=(0,p.kZ)();e.width="1050px",e.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(Ki.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}removeAttribute(){const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(ji.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.H8),t.Y36(h.IQ),t.Y36(v.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts-detail"]],viewQuery:function(e,s){if(1&e&&t.Gf(zi,5),2&e){let a;t.iGM(a=t.CRH())&&(s.list=a.first)}},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return s.addAttribute()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return s.onSave()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.removeAttribute()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.YNc(14,$i,1,0,"mat-spinner",5),t.YNc(15,Wi,2,3,"perun-web-apps-attributes-list",6),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,9,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",s.host.hostname," "),t.xp6(4),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,T.Ou,E.t,Tt.p,f.X$]}),i})();function ts(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}const es=function(i){return{name:i}};function is(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(7,es,e.name)))("checked",s.selection.isSelected(e))}}function ss(i,n){1&i&&(t.ynx(0,13),t.YNc(1,ts,4,7,"th",14),t.YNc(2,is,4,9,"td",15),t.BQk())}function as(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")," "))}function ns(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function os(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")," "))}function ls(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function cs(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")," "))}function rs(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.description)}}function us(i,n){1&i&&t._UZ(0,"tr",23)}function ps(i,n){1&i&&t._UZ(0,"tr",24)}function ds(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function _s(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}const ms=function(i){return{all:i}};let hs=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.securityTeams=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","name","description"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"name":return e.name;case"description":return e.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new c.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-security-teams-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:18,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,ss,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,as,3,3,"th",5),t.YNc(7,ns,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,os,3,3,"th",5),t.YNc(10,ls,2,1,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,cs,3,3,"th",5),t.YNc(13,rs,2,1,"td",8),t.BQk(),t.YNc(14,us,1,0,"tr",10),t.YNc(15,ps,1,0,"tr",11),t.qZA()()(),t.YNc(16,ds,3,3,"perun-web-apps-alert",12),t.YNc(17,_s,3,3,"perun-web-apps-alert",12)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.securityTeams.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,ms,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(11),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.securityTeams.length),t.xp6(1),t.Q6J("ngIf",0===s.securityTeams.length))},dependencies:[m.O5,I.YE,I.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,Z.oG,O.w,k.l,f.X$,w.I,Y.G,U.r]}),i})();function fs(i,n){1&i&&t._UZ(0,"mat-spinner",5)}function gs(i,n){if(1&i&&t._UZ(0,"app-security-teams-list",6),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("securityTeams",e.securityTeams)("selection",e.selected)("tableId",e.tableId)}}let Ts=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=a,this.entityStorageService=o,this.securityTeams=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.O9,this.displayedColumns=[]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(e=>{this.securityTeams=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("assignSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","description"]:["id","name","description"]}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-security-teams"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","securityTeams","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","securityTeams","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(6,fs,1,0,"mat-spinner",3),t.YNc(7,gs,1,5,"app-security-teams-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),t.xp6(3),t.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,T.Ou,hs,E.t,D.L,f.X$]}),i})();var Ss=l(20057),Cs=l(49546);function As(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Is(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")," "))}function bs(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function ys(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")," "))}function vs(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.destination.destination)}}function xs(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function Es(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function Ds(i,n){1&i&&t._UZ(0,"tr",19)}function Ls(i,n){1&i&&t._UZ(0,"tr",20)}function Zs(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Is,3,3,"th",11),t.YNc(10,bs,2,1,"td",12),t.BQk(),t.ynx(11,13),t.YNc(12,ys,3,3,"th",11),t.YNc(13,vs,2,1,"td",12),t.BQk(),t.ynx(14,14),t.YNc(15,xs,3,3,"th",11),t.YNc(16,Es,3,4,"td",12),t.BQk(),t.YNc(17,Ds,1,0,"tr",15),t.YNc(18,Ls,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let St=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.taskManager=a,this.notificator=o,this.translate=r,this.loading=!1,this.dataSource=new c.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}ngOnInit(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}onDelete(){this.loading=!0;const e=this.taskResults.map(s=>s.id);this.taskManager.deleteTaskResultsByIds(e).subscribe({next:()=>{this.dialogRef.close(!0),this.loading=!1,this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_TASK_RESULT.SUCCESS"))},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.Ob),t.Y36(d.V6),t.Y36(d.Te))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-task-result-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","time"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,As,1,0,"mat-spinner",1),t.YNc(5,Zs,19,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onDelete()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},dependencies:[m.O5,S.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,m.uU,f.X$]}),i})();var Os=l(62109);function Rs(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",13),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.change(a))}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function Ns(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",14),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.change(a))}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskResultsChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function ks(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-resources-list",15),t.NdJ("allSelected",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.disableCheckboxes(a))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("displayedColumns",e.displayedColumns)("disableRouting",!0)("resources",e.resources)("selection",e.selected)("tableId",e.tableId)}}function ws(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t.YNc(5,Fs,4,9,"mat-checkbox",8),t.YNc(6,Ns,4,9,"mat-checkbox",9),t.TgZ(7,"mat-checkbox",10),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.change(a))}),t.ALo(8,"translate"),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.TgZ(11,"p"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",11),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,ks,1,5,"perun-web-apps-resources-list",12),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",null!==e.taskId),t.xp6(1),t.Q6J("ngIf",null!==e.taskId),t.xp6(1),t.s9C("matTooltip",t.lcZ(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled)("checked",e.destinationChecked),t.xp6(2),t.hij(" ",t.lcZ(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),t.xp6(3),t.Oqu(t.lcZ(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),t.xp6(2),t.Q6J("ngIf",!e.loading)}}let Ys=(()=>{class i{constructor(e,s,a,o,r,_,C,b){this.dialogRef=e,this.data=s,this.resourcesManager=a,this.tasksManager=o,this.serviceManager=r,this.translate=_,this.notificator=C,this.cd=b,this.loading=!1,this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=x.$V,this.dataSource=new c.by(this.data.resource),this.selected=new A.Ov(!0,[...this.dataSource.data])}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId,this.serviceId=this.data.serviceId,this.facilityId=this.data.facilityId,this.resources=this.data.resource}remove(){this.loading=!0,this.taskResultsChecked&&!this.taskChecked&&null!==this.taskId&&this.tasksManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{this.tasksManager.deleteTaskResultsByIds(e.map(s=>s.id)).subscribe()}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getRichDestinations(this.serviceId,this.facilityId).subscribe(e=>{this.serviceManager.removeDestinationsByRichDestinations({richDestinations:e}).subscribe()}),this.resourcesManager.removeServiceForResources(this.selected.selected.map(e=>e.id),this.serviceId).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}cancel(){this.dialogRef.close(!1)}disableCheckboxes(e){e&&this.checkboxesDisabled&&this.changeCheckboxes(!0),!e&&!this.checkboxesDisabled&&this.changeCheckboxes(!1)}changeCheckboxes(e){this.checkboxesDisabled=!e,this.taskChecked=e,this.taskResultsChecked=e,this.destinationChecked=e,this.cd.detectChanges()}change(e){switch(e.source.id){case"task":this.taskChecked=e.checked;break;case"taskResults":this.taskResultsChecked=e.checked;break;case"destination":this.destinationChecked=e.checked}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.xk),t.Y36(h.Ob),t.Y36(h.KK),t.Y36(d.Te),t.Y36(d.V6),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-service-from-facility"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","right-space","color","warn","id","task",3,"checked","disabled","matTooltipDisabled","matTooltip","change",4,"ngIf"],["class","right-space","color","warn","id","taskResults",3,"checked","disabled","matTooltipDisabled","matTooltip","change",4,"ngIf"],["color","warn","id","destination",3,"disabled","matTooltipDisabled","checked","matTooltip","change"],[1,"font-weight-bold"],[3,"displayedColumns","disableRouting","resources","selection","tableId","allSelected",4,"ngIf"],["color","warn","id","task",1,"right-space",3,"checked","disabled","matTooltipDisabled","matTooltip","change"],["color","warn","id","taskResults",1,"right-space",3,"checked","disabled","matTooltipDisabled","matTooltip","change"],[3,"displayedColumns","disableRouting","resources","selection","tableId","allSelected"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Rs,1,0,"mat-spinner",1),t.YNc(5,ws,18,21,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},dependencies:[m.O5,S.lW,Z.oG,u.uh,u.xY,u.H8,T.Ou,J.gM,Os.C,f.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),i})();function Us(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ms(i,n){1&i&&(t.TgZ(0,"div",7)(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let Js=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.tasksManager=a,this.translate=o,this.notificator=r,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId}remove(){this.loading=!0,this.tasksManager.deleteTask({task:this.taskId}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_TASK.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.Ob),t.Y36(f.sK),t.Y36(d.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-task-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Us,1,0,"mat-spinner",1),t.YNc(5,Ms,4,3,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},dependencies:[m.O5,S.lW,u.uh,u.xY,u.H8,T.Ou,f.X$]}),i})();var $=l(28255);let Qs=(()=>{class i{transform(e){return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"serviceStateBlockedToString",type:i,pure:!0}),i})();function Hs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",19)(1,"mat-checkbox",20),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return a&&o.masterToggle(),t.KtG(o.selectionChange.emit())}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))}}const Gs=function(i){return{name:i}};function Ps(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",21)(1,"mat-checkbox",22),t.NdJ("click",function(a){return a.stopPropagation()})("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return a&&_.selection.toggle(r),t.KtG(_.selectionChange.emit())}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("checked",s.selection.isSelected(e))("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(7,Gs,e.service.name)))}}function qs(i,n){1&i&&(t.ynx(0,16),t.YNc(1,Hs,4,7,"th",17),t.YNc(2,Ps,4,9,"td",18),t.BQk())}function Vs(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")," "))}function Bs(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.task.id)}}function js(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1,"0"),t.qZA())}function Ks(i,n){if(1&i&&(t.TgZ(0,"td",24),t.YNc(1,Bs,2,1,"div",25),t.YNc(2,js,2,0,"div",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task),t.xp6(1),t.Q6J("ngIf",!e.task)}}function zs(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")," "))}function $s(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.uIk("data-cy",e.service.name),t.xp6(1),t.hij(" ",e.service.name," ")}}function Ws(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")," "))}function Xs(i,n){1&i&&(t.TgZ(0,"mat-icon",28),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&i&&t.Q6J("matTooltip",t.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_DESTINATIONS_TOOLTIP"))}function ta(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.YNc(2,Xs,3,3,"mat-icon",27),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.status," "),t.xp6(1),t.Q6J("ngIf",!e.hasDestinations)}}function ea(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")," "))}function ia(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.ALo(2,"serviceStateBlockedToString"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function sa(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")," "))}function aa(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.startTime,"d.M.y H:mm:ss")," ")}}function na(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function oa(i,n){if(1&i&&(t.TgZ(0,"td",26),t.YNc(1,aa,3,4,"div",25),t.YNc(2,na,3,3,"div",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.startTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.startTime)}}function la(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")," "))}function ca(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.endTime,"d.M.y H:mm:ss")," ")}}function ra(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function ua(i,n){if(1&i&&(t.TgZ(0,"td",26),t.YNc(1,ca,3,4,"div",25),t.YNc(2,ra,3,3,"div",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.endTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.endTime)}}function pa(i,n){1&i&&t._UZ(0,"tr",29)}const Ct=function(i,n){return["/facilities",i,"services-status",n]};function da(i,n){if(1&i&&t._UZ(0,"tr",30),2&i){const e=n.$implicit,s=t.oxw();t.ekj("disable-outline",s.disableRouting||!e.task)("make-yellow","WARNING"===e.status)("make-green","DONE"===e.status)("make-red","GENERROR"===e.status||"SENDERROR"===e.status||"ERROR"===e.status)("cursor-pointer",!s.disableRouting&&null!==e.task),t.Q6J("routerLink",s.disableRouting||null===e.task?null:t.WLB(12,Ct,e.facility.id,e.taskId))("perunWebAppsMiddleClickRouterLink",s.disableRouting||null===e.task?null:t.WLB(15,Ct,e.facility.id,e.taskId))}}function _a(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ma(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}const ha=function(i){return{all:i}};let fa=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new A.Ov(!0,[]),this.disableRouting=!0,this.selectionChange=new t.vpe,this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return e.task?.startTime?(0,m.p6)(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];case"task.endTime":return e.task?.endTime?(0,m.p6)(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];default:return e[s]}}static getDataForColumn(e,s){switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return e.task?.startTime?(0,m.p6)(e.task.startTime,"d.M.y H:mm:ss","en"):e[s];case"task.endTime":return e.task?.endTime?(0,m.p6)(e.task.endTime,"d.M.y H:mm:ss","en"):e[s];default:return e[s]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"task.id"!==e)),this.dataSource=new c.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(e,s)=>{const a=s.trim().toLowerCase(),o=r=>{let _="";return Object.values(r).forEach(C=>{"object"!=typeof C?_=_+" "+String(C):null!==C&&(_=_+" "+o(C))}),_.trim().toLowerCase()};return o(e).includes(a)},this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:27,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","task.id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","service.name"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","blocked"],["matColumnDef","task.startTime"],["matColumnDef","task.endTime"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"disable-outline","make-yellow","make-green","make-red","cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngIf"],["mat-cell",""],["class","align-text-bottom ml-1",3,"matTooltip",4,"ngIf"],[1,"align-text-bottom","ml-1",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,qs,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Vs,3,3,"th",5),t.YNc(7,Ks,3,2,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,zs,3,3,"th",5),t.YNc(10,$s,2,2,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,Ws,3,3,"th",5),t.YNc(13,ta,3,2,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,ea,3,3,"th",5),t.YNc(16,ia,3,3,"td",8),t.BQk(),t.ynx(17,11),t.YNc(18,sa,3,3,"th",5),t.YNc(19,oa,3,2,"td",8),t.BQk(),t.ynx(20,12),t.YNc(21,la,3,3,"th",5),t.YNc(22,ua,3,2,"td",8),t.BQk(),t.YNc(23,pa,1,0,"tr",13),t.YNc(24,da,1,18,"tr",14),t.qZA()()(),t.YNc(25,_a,3,3,"perun-web-apps-alert",15),t.YNc(26,ma,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.servicesStatus.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,ha,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(20),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.servicesStatus.length),t.xp6(1),t.Q6J("ngIf",0===s.servicesStatus.length))},dependencies:[m.O5,Z.oG,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,v.rH,I.YE,I.nU,O.w,R.Hw,J.gM,k.l,B.Y,j.Q,m.uU,f.X$,Qs,w.I,Y.G,U.r],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.make-green[_ngcontent-%COMP%]{background-color:#c4ffcb}.make-yellow[_ngcontent-%COMP%]{background-color:#fffde7}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function ga(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.forcePropagation())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Ta(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.allow())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableAllowButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function Sa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.block())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableBlockButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function Ca(i,n){if(1&i&&(t.TgZ(0,"button",13),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw(),s=t.MAs(10);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.disableRemoveButton)("matMenuTriggerFor",s)("matTooltipDisabled",!e.disableRemoveButton),t.xp6(2),t.hij(" ",t.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function Aa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeTaskResults())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function Ia(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function ba(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-services-status-list",15),t.NdJ("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.selectionChanged())}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("servicesStatus",e.servicesStates)("selection",e.selected)("tableId",e.tableId)}}let ya=(()=>{class i{constructor(e,s,a,o,r,_,C,b,L){this.tasksManager=e,this.servicesManager=s,this.notificator=a,this.translate=o,this.authResolver=r,this.facilityManager=_,this.resourcesManager=C,this.dialog=b,this.entityStorageService=L,this.servicesStates=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.oK,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(y=>this.successFPMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(y=>this.successAllowMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(y=>this.successBlockMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(y=>this.successDeleteMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(y=>this.allreadyDeletedMessage=y)}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}forcePropagation(){for(const e of this.selected.selected)this.servicesManager.forceServicePropagation(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successFPMessage)})}allow(){for(const e of this.selected.selected)this.servicesManager.unblockServiceOnFacility(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successAllowMessage)})}block(){for(const e of this.selected.selected)this.servicesManager.blockServiceOnFacility(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successBlockMessage)})}removeTaskResults(){this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe(e=>{const s=(0,p.kZ)();s.width="600px",s.data={theme:"facility-theme",taskResults:e},this.dialog.open(St,s)})}removeServiceFromFacility(){this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(e=>{const s=(0,p.kZ)();s.width="600px",this.taskId=this.taskIsNull?null:this.selected.selected[0].task.id,0===e.length?(s.data={theme:"facility-theme",taskId:this.taskId},this.dialog.open(Js,s).afterClosed().subscribe(o=>{o&&(this.disableRemoveButton=!0,this.refreshTable())})):this.resourcesManager.getRichResourcesByIds(e.map(a=>a.id)).subscribe(a=>{s.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:a},this.dialog.open(Ys,s).afterClosed().subscribe(r=>{r&&(this.disableRemoveButton=!0,this.refreshTable())})})})}refreshTable(){this.loading=!0,this.tasksManager.getFacilityServicesState(this.facility.id).subscribe(e=>{this.servicesStates=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.propagationAuth=this.authResolver.isAuthorized("forceServicePropagation_Facility_Service_policy",[this.facility]),this.blockAuth=this.authResolver.isAuthorized("blockServiceOnFacility_Service_Facility_policy",[this.facility]),this.allowAuth=this.authResolver.isAuthorized("unblockServiceOnFacility_Service_Facility_policy",[this.facility]),this.deleteAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.routeAuth=this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[this.facility])}applyFilter(e){this.filterValue=e}selectionChanged(){this.disableBlockButton=!0,this.disableAllowButton=!0,this.disableRemoveButton=1!==this.selected.selected.length,this.disableRemoveButton||(this.taskIsNull=null===this.selected.selected[0].task);for(const e of this.selected.selected)e.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.Ob),t.Y36(h.KK),t.Y36(d.V6),t.Y36(f.sK),t.Y36(d.x4),t.Y36(h.IQ),t.Y36(h.xk),t.Y36(u.uw),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","mr-2 dropdown-toggle","color","warn",3,"disabled","matMenuTriggerFor","matTooltipDisabled","matTooltip",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","servicesStatus","selection","tableId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor","matTooltipDisabled","matTooltip"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","servicesStatus","selection","tableId","selectionChange"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(5,ga,3,4,"button",2),t.YNc(6,Ta,3,4,"button",2),t.YNc(7,Sa,3,4,"button",3),t.YNc(8,Ca,4,9,"button",4),t.TgZ(9,"mat-menu",null,5),t.YNc(11,Aa,3,3,"button",6),t.TgZ(12,"button",7),t.NdJ("click",function(){return s.removeServiceFromFacility()}),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"perun-web-apps-immediate-filter",8),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(16,Ia,1,0,"mat-spinner",9),t.YNc(17,ba,1,5,"perun-web-apps-services-status-list",10),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.propagationAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("ngIf",s.deleteAuth),t.xp6(3),t.Q6J("ngIf",!s.taskIsNull),t.xp6(2),t.hij(" ",t.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,T.Ou,J.gM,$.VK,$.OP,$.p6,E.t,D.L,fa,f.X$]}),i})();var va=l(25610),xa=l(76023);function Ea(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",21)(1,"mat-checkbox",22),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}const Da=function(i){return{name:i}};function La(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",23)(1,"mat-checkbox",24),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(7,Da,e.destination.destination)))("checked",s.selection.isSelected(e))}}function Za(i,n){1&i&&(t.ynx(0,18),t.YNc(1,Ea,4,7,"th",19),t.YNc(2,La,4,9,"td",20),t.BQk())}function Oa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")," "))}function Ra(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function Fa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")," "))}function Na(i,n){if(1&i&&(t.TgZ(0,"td",26),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&i){const e=n.$implicit;t.uIk("data-cy",t.lcZ(1,2,e.destination.destination)),t.xp6(2),t.hij(" ",e.destination.destination," ")}}function ka(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")," "))}function wa(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.destination.type.toUpperCase()," ")}}function Ya(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")," "))}function Ua(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.service.name," ")}}function Ma(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")," "))}function Ja(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.status," ")}}function Qa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")," "))}function Ha(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function Ga(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")," "))}function Pa(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.returnCode," ")}}function qa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")," "))}function Va(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t._UZ(2,"br"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e)}}function Ba(i,n){if(1&i&&(t.TgZ(0,"td",26),t.YNc(1,Va,3,1,"span",27),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngForOf",e.standardMessage.split("\n"))}}function ja(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")," "))}function Ka(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.errorMessage," ")}}function za(i,n){1&i&&t._UZ(0,"tr",28)}function $a(i,n){if(1&i&&t._UZ(0,"tr",29),2&i){const e=n.$implicit;t.ekj("greenTableItem","DONE"===e.status)("redTableItem","ERROR"===e.status||"DENIED"===e.status)("yellowTableItem","WARNING"===e.status)}}function Wa(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Xa(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}const tn=function(i){return{all:i}};let en=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.taskResults=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"destination":return e.destination.destination;case"type":return e.destination.type;case"service":return e.service.name;case"status":return e.status;case"time":return(0,m.p6)(e.timestamp.toString(),"yyyy.MM.dd HH:mm:ss","en");case"returnCode":return e.returnCode.toString();case"standardMessage":return e.standardMessage;case"errorMessage":return e.errorMessage;default:return""}}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"destination":return e.destination.destination;case"type":return e.destination.type;case"service":return e.service.name;case"status":return e.status;case"time":return(0,m.p6)(e.timestamp.toString(),"d.M.y H:mm:ss","en");case"returnCode":return e.returnCode.toString();case"standardMessage":return e.standardMessage;case"errorMessage":return e.errorMessage;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new c.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn))}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:36,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","time"],["matColumnDef","returnCode"],["matColumnDef","standardMessage"],["matColumnDef","errorMessage"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"greenTableItem","redTableItem","yellowTableItem",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,Za,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Oa,3,3,"th",5),t.YNc(7,Ra,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Fa,3,3,"th",5),t.YNc(10,Na,3,4,"td",6),t.BQk(),t.ynx(11,8),t.YNc(12,ka,3,3,"th",5),t.YNc(13,wa,2,1,"td",6),t.BQk(),t.ynx(14,9),t.YNc(15,Ya,3,3,"th",5),t.YNc(16,Ua,2,1,"td",6),t.BQk(),t.ynx(17,10),t.YNc(18,Ma,3,3,"th",5),t.YNc(19,Ja,2,1,"td",6),t.BQk(),t.ynx(20,11),t.YNc(21,Qa,3,3,"th",5),t.YNc(22,Ha,3,4,"td",6),t.BQk(),t.ynx(23,12),t.YNc(24,Ga,3,3,"th",5),t.YNc(25,Pa,2,1,"td",6),t.BQk(),t.ynx(26,13),t.YNc(27,qa,3,3,"th",5),t.YNc(28,Ba,2,1,"td",6),t.BQk(),t.ynx(29,14),t.YNc(30,ja,3,3,"th",5),t.YNc(31,Ka,2,1,"td",6),t.BQk(),t.YNc(32,za,1,0,"tr",15),t.YNc(33,$a,1,6,"tr",16),t.qZA()()(),t.YNc(34,Wa,3,3,"perun-web-apps-alert",17),t.YNc(35,Xa,3,3,"perun-web-apps-alert",17)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.taskResults.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,tn,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(29),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.taskResults.length),t.xp6(1),t.Q6J("ngIf",0===s.taskResults.length))},dependencies:[m.sg,m.O5,Z.oG,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,I.YE,I.nU,O.w,k.l,m.uU,f.X$,mt.R,w.I,Y.G,U.r],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),i})();function sn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeTaskResult())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE"),"\n")}}function an(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function nn(i,n){if(1&i&&t._UZ(0,"perun-web-apps-task-results-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("taskResults",e.taskResults)}}let on=(()=>{class i{constructor(e,s,a,o,r){this.route=e,this.taskManager=s,this.authResolver=a,this.dialog=o,this.entityStorageService=r,this.loading=!1,this.filterValue="",this.selection=new A.Ov(!0,[]),this.task={id:0},this.tableId=x.e5,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.removeAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.removeAuth||(this.displayedColumns=["id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]),this.route.params.subscribe(e=>{this.taskId=Number(e.taskId),this.taskManager.getTaskById(this.taskId).subscribe(s=>{this.task=s,this.refreshTable()})})}refreshTable(){this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{this.selection.clear(),this.taskResults=e,this.loading=!1})}removeTaskResult(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(St,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(v.gz),t.Y36(h.Ob),t.Y36(d.x4),t.Y36(u.uw),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-task-results"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[1,"text-muted"],[3,"refresh"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","filterValue","selection","taskResults",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","filterValue","selection","taskResults"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",1),t._uU(4),t.qZA()(),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,sn,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(8,an,1,0,"mat-spinner",5),t.YNc(9,nn,1,5,"perun-web-apps-task-results-list",6)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",s.task.service?s.task.service.name:""," "),t.xp6(3),t.hij(" \xa0#",s.task.id," "),t.xp6(2),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,T.Ou,E.t,D.L,en,f.X$]}),i})();var ln=l(20872);let cn=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-no-service-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2)(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.NO_SERVICE.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.NO_SERVICE.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.NO_SERVICE.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.NO_SERVICE.SKIP")," "))},dependencies:[S.lW,u.uh,u.xY,u.H8,f.X$]}),i})(),rn=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-config-unsaved-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2)(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.CONFIG_UNSAVED.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.CONFIG_UNSAVED.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.CONFIG_UNSAVED.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.CONFIG_UNSAVED.SKIP")," "))},dependencies:[S.lW,u.uh,u.xY,u.H8,f.X$]}),i})();function un(i,n){if(1&i&&(t.TgZ(0,"div",3),t._UZ(1,"i",4),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,e.info),t.oJD)}}function pn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onKeep())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CANCEL_CONFIG.KEEP")," "))}function dn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDelete())}),t.TgZ(5,"mat-icon"),t._uU(6," warning "),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,pn,3,3,"button",8),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.CANCEL_CONFIG.CANCEL")," "),t.xp6(5),t.hij(" ",t.lcZ(8,5,"DIALOGS.CANCEL_CONFIG.DELETE")," "),t.xp6(2),t.Q6J("ngIf",!e.lastStep)}}let _n=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilityService=a,this.notificator=o,this.translate=r,this.theme="",this.title="",this.info="",this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.lastStep=this.data.lastStep,this.lastStep?(this.title="DIALOGS.CANCEL_CONFIG.TITLE_COMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_COMPLETE"):(this.title="DIALOGS.CANCEL_CONFIG.TITLE_INCOMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_INCOMPLETE")}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.facilityService.deleteFacility(this.data.facilityId,!0).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CANCEL_CONFIG.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onKeep(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.IQ),t.Y36(d.V6),t.Y36(f.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-cancel-configuration-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["matDialogActions","",4,"ngIf"],["mat-dialog-content",""],[3,"innerHTML"],["matDialogActions",""],["mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,un,3,3,"div",1),t.YNc(5,dn,10,7,"div",2),t.qZA()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,s.title)),t.xp6(2),t.Q6J("ngIf",!s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,R.Hw,S.lW,u.uh,u.xY,u.H8,f.X$]}),i})();var P=l(86257),q=l(37084),mn=l(60205),hn=l(90439),fn=l(30540);const gn=["stepper"];function Tn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.OWNERS"))}function Sn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-settings-owners",14),t.NdJ("ownerEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.owners=a)}),t.qZA()}}function Cn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.HOSTS"))}function An(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-hosts",15),t.NdJ("hostEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.hosts=a)}),t.qZA()}2&i&&t.Q6J("disableRouting",!0)}function In(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICES"))}const bn=function(){return["select","id","name","enabled","description"]};function yn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18)(7,"perun-web-apps-immediate-filter",19),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t.TgZ(8,"perun-web-apps-service-package-search-select",20),t.NdJ("packageSelected",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.packagesSelected(a))}),t.qZA()(),t.TgZ(9,"app-services-list",21),t.NdJ("selectionChanged",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.singleServiceSelected())}),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,13,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(3),t.hij(" ",t.lcZ(5,15,"FACILITY_CONFIGURATION.SERVICES_INFO")," "),t.xp6(3),t.Q6J("placeholder","FACILITY_CONFIGURATION.SERVICES_FILTER"),t.xp6(1),t.Q6J("disableAutoSelect",!0)("selectedPackage",e.selectedPackages)("multiple",!0)("servicePackages",e.servicePackages)("theme","facility-theme"),t.xp6(1),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(17,bn))("selection",e.selection)("filterValue",e.filterValue)("services",e.services)}}function vn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICE_CONFIG"))}function xn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-service-search-select",27),t.NdJ("serviceSelected",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.filterAttributes(a))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableAutoSelect",!0)("services",e.selection.selected)("multiple",!0)("theme","facility-theme")}}function En(i,n){1&i&&t._UZ(0,"mat-spinner",28)}function Dn(i,n){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",29),2&i){const e=t.oxw(2);t.Q6J("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("attributes",e.filteredAttributes)("selection",e.attSelection)}}function Ln(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18)(7,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemoveAttributes())}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSaveAttributes())}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.YNc(13,xn,1,4,"perun-web-apps-service-search-select",24),t.qZA(),t.YNc(14,En,1,0,"mat-spinner",25),t.YNc(15,Dn,1,3,"perun-web-apps-attributes-list",26)}if(2&i){const e=t.oxw(),s=t.MAs(5);t.xp6(1),t.Oqu(t.lcZ(2,9,"FACILITY_CONFIGURATION.SERVICE_CONFIG")),t.xp6(3),t.hij(" ",t.lcZ(5,11,"FACILITY_CONFIGURATION.ATT_INFO")," "),t.xp6(3),t.Q6J("disabled",0===e.attSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,13,"FACILITY_CONFIGURATION.REMOVE")," "),t.xp6(2),t.Q6J("disabled",0===e.attSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,15,"FACILITY_CONFIGURATION.SAVE")," "),t.xp6(2),t.Q6J("ngIf",s.selectedIndex===e.ATTRIBUTES_IDX),t.xp6(1),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing)}}function Zn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.DESTINATION_CONFIG"))}const On=function(){return["select","destinationId","service","warn","destination","type","propagationType"]};function Rn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-perun-web-apps-facility-services-destinations",30),t.NdJ("destinationEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.destinations=a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("configServicesIds",e.serviceIds)("displayedColumns",t.DdM(5,On))("configServices",e.selection.selected)("loading",e.processing)("title","FACILITY_CONFIGURATION.DESTINATION_CONFIG")}}function Fn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.MANAGERS"))}function Nn(i,n){1&i&&t._UZ(0,"app-perun-web-apps-facility-settings-managers",31),2&i&&t.Q6J("disableRouting",!0)("disableSelf",!0)}function kn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SUMMARY"))}function wn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const Yn=function(){return["id","name","contact","type"]};function Un(i,n){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",48),2&i){const e=t.oxw(3);t.Q6J("displayedColumns",t.DdM(2,Yn))("owners",e.owners)}}function Mn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const Jn=function(){return["id","name"]};function Qn(i,n){if(1&i&&t._UZ(0,"app-hosts-list",49),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(3,Jn))("hosts",e.hosts)}}function Hn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const Gn=function(){return["id","name","enabled","script","description"]},Pn=function(){return["id","displayName","value","description"]},qn=function(){return["destinationId","service","warn","destination","type","propagationType"]},Vn=function(){return["id","vo","name","description"]},Bn=function(){return["id","name","email","logins","organization"]};function jn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",34)(2,"mat-expansion-panel-header")(3,"mat-panel-title"),t._UZ(4,"mat-icon",35),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"h1",16),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,wn,1,0,"mat-spinner",25),t.YNc(11,Un,1,3,"perun-web-apps-owners-list",36),t.qZA(),t.TgZ(12,"mat-expansion-panel",34)(13,"mat-expansion-panel-header")(14,"mat-panel-title"),t._UZ(15,"mat-icon",37),t._uU(16),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"h1",16),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.YNc(21,Mn,1,0,"mat-spinner",25),t.YNc(22,Qn,1,4,"app-hosts-list",38),t.qZA(),t.TgZ(23,"mat-expansion-panel",34)(24,"mat-expansion-panel-header")(25,"mat-panel-title"),t._UZ(26,"mat-icon",39),t._uU(27),t.ALo(28,"translate"),t.qZA()(),t.TgZ(29,"h1",16),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._UZ(32,"app-services-list",40),t.qZA(),t.TgZ(33,"mat-expansion-panel",41),t.NdJ("opened",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.getNonEmptyAttributes())}),t.TgZ(34,"mat-expansion-panel-header")(35,"mat-panel-title"),t._UZ(36,"mat-icon",37),t._uU(37),t.ALo(38,"translate"),t.qZA()(),t.TgZ(39,"h1",16),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._UZ(42,"perun-web-apps-attributes-list",42),t.qZA(),t.TgZ(43,"mat-expansion-panel",43),t.NdJ("expandedChange",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.destinationServiceMissing=a)}),t.TgZ(44,"mat-expansion-panel-header")(45,"mat-panel-title"),t._UZ(46,"mat-icon",44),t._uU(47),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"h1",16),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.YNc(52,Hn,1,0,"mat-spinner",25),t._UZ(53,"app-perun-web-apps-destination-list",45),t.qZA(),t.TgZ(54,"mat-expansion-panel")(55,"mat-expansion-panel-header")(56,"mat-panel-title"),t._UZ(57,"mat-icon",46),t._uU(58),t.ALo(59,"translate"),t.qZA()(),t._UZ(60,"app-managers-page",47),t.qZA()()}if(2&i){const e=t.oxw(2);t.Q6J("@.disabled",!0),t.xp6(1),t.Q6J("disabled",0===e.owners.length),t.xp6(1),t.ekj("cursor-default",0===e.owners.length),t.xp6(3),t.hij(" ",t.lcZ(6,49,"FACILITY_CONFIGURATION.OWNERS")," "),t.xp6(3),t.Oqu(t.lcZ(9,51,"FACILITY_CONFIGURATION.OWNERS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.hosts.length),t.xp6(1),t.ekj("cursor-default",0===e.hosts.length),t.xp6(3),t.hij(" ",t.lcZ(17,53,"FACILITY_CONFIGURATION.HOSTS")," "),t.xp6(3),t.Oqu(t.lcZ(20,55,"FACILITY_CONFIGURATION.HOSTS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(28,57,"FACILITY_CONFIGURATION.SERVICES")," "),t.xp6(3),t.Oqu(t.lcZ(31,59,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(71,Gn))("services",e.selection.selected),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(38,61,"FACILITY_CONFIGURATION.SERVICE_CONFIG")," "),t.xp6(3),t.Oqu(t.lcZ(41,63,"FACILITY_CONFIGURATION.ATTS")),t.xp6(2),t.Q6J("displayedColumns",t.DdM(72,Pn))("attributes",e.filteredAttributes)("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT"),t.xp6(1),t.Q6J("expanded",e.destinationServiceMissing)("disabled",0===e.selection.selected.length&&0===e.destinations.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length&&0===e.destinations.length),t.xp6(3),t.hij(" ",t.lcZ(48,65,"FACILITY_CONFIGURATION.DESTINATION_CONFIG")," "),t.xp6(3),t.Oqu(t.lcZ(51,67,"FACILITY_CONFIGURATION.DESTINATION")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("destinations",e.destinations)("displayedColumns",t.DdM(73,qn))("services",e.serviceIds),t.xp6(5),t.hij(" ",t.lcZ(59,69,"FACILITY_CONFIGURATION.MANAGERS")," "),t.xp6(2),t.Q6J("complementaryObject",e.facility)("configMode",!0)("disableRouting",!0)("availableRoles",e.availableRoles)("complementaryObjectType","Facility")("displayedGroupColumns",t.DdM(74,Vn))("displayedUserColumns",t.DdM(75,Bn))}}function Kn(i,n){if(1&i&&(t.TgZ(0,"perun-web-apps-alert",17),t._UZ(1,"i",32),t.ALo(2,"translate"),t.qZA(),t.YNc(3,jn,61,76,"mat-accordion",33)),2&i){t.oxw();const e=t.MAs(5);t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,2,"FACILITY_CONFIGURATION.SUMMARY_INFO"),t.oJD),t.xp6(2),t.Q6J("ngIf",e.selectedIndex===e.steps.length-1)}}function zn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.back())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.BACK")," "))}function $n(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.next())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){t.oxw();const e=t.MAs(5);t.ekj("mr-2",void 0!==e&&0!==e.selectedIndex)("ml-auto",!(void 0!==e&&0!==e.selectedIndex)),t.xp6(1),t.hij(" ",t.lcZ(2,5,"FACILITY_CONFIGURATION.NEXT")," ")}}function Wn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onFinish())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.FINISH")," "))}let Xn=(()=>{class i{constructor(e,s,a,o,r,_,C,b,L,y){this.attributesManager=e,this.serviceManager=s,this.facilityService=a,this.cd=o,this.dialog=r,this.notificator=_,this.translate=C,this.router=b,this.guiAuthResolver=L,this.entityStorageService=y,this.processing=!1,this.filteredAttributes=[],this.attSelection=new A.Ov(!0,[]),this.services=[],this.serviceIds=new Set,this.servicePackages=[],this.selectedPackages=[],this.selection=new A.Ov(!0,[]),this.owners=[],this.hosts=[],this.destinations=[],this.destinationServiceMissing=!1,this.availableRoles=[],this.filterValue="",this.ATTRIBUTES_IDX=3,this.serviceControl=new g.p4(!1,g.kI.requiredTrue),this.attributesControl=new g.p4(!0,g.kI.requiredTrue),this.allowNavigate=!1,this.attributes=[],this.attributeIds=new Set,this.attributesPerService=new Map,this.servicesPerPackage=new Map,this.saveMsg="",this.removeMsg="",this.BEFORE_OPTIONAL_IDX=2,this.DESTINATIONS_IDX=4,this.AFTER_OPTIONAL_IDX=5,this.translate.get("FACILITY_CONFIGURATION.ATT_SAVED").subscribe(tt=>this.saveMsg=tt),this.translate.get("FACILITY_CONFIGURATION.ATT_REMOVED").subscribe(tt=>this.removeMsg=tt)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility"),this.serviceManager.getServicesPackages().subscribe(e=>{this.servicePackages=e,this.getServicePackageServices(e,0)})}ngAfterViewInit(){this.cd.detectChanges(),this.attSelection.changed.subscribe(()=>{this.attributesControl.setValue(0===this.attSelection.selected.length)})}onCancel(){const e=(0,p.kZ)();e.width="550px",e.data={facilityId:this.facility.id,lastStep:this.stepper.selectedIndex===this.stepper.steps.length-1,theme:"facility-theme"},this.dialog.open(_n,e).afterClosed().subscribe(a=>{a&&(this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities"],{queryParamsHandling:"merge"}))})}packagesSelected(e){if(this.packageSelectionEqual(e))return;this.processing=!0;let s=new Set;if(e&&0!==e.length?s=this.setSymDif(this.selectedPackages,e):this.selectedPackages.forEach(r=>{this.servicesPerPackage.get(r.id).forEach(_=>s.add(_))}),0===s.size)return;const a=this.filterService(s,e.filter(r=>this.selectedPackages.findIndex(_=>_.id===r.id)<0)),o=this.filterService(s,this.selectedPackages.filter(r=>e.findIndex(_=>_.id===r.id)<0));for(const r of this.services)a.has(r.id)?this.selection.select(r):o.has(r.id)&&this.selection.deselect(r);this.selectedPackages=e,this.setServiceControl(),this.processing=!1}singleServiceSelected(){this.setServiceControl(),!this.processing&&this.checkPackageComplete()}back(){this.stepper.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl(),this.stepper.selectedIndex===this.AFTER_OPTIONAL_IDX&&0===this.selection.selected.length?this.stepper.selectedIndex=this.BEFORE_OPTIONAL_IDX:this.stepper.previous()}onSaveAttributes(){return new Promise((e,s)=>{this.processing=!0,this.attributesManager.setFacilityAttributes({facility:this.facility.id,attributes:this.attSelection.selected}).subscribe({next:()=>{this.notificator.showSuccess(this.saveMsg),this.attSelection.clear(),this.processing=!1,e()},error:()=>{this.processing=!1,s()}})})}next(){this.checkDestinationDependency(this.stepper.selectedIndex),this.stepper.selectedIndex===this.BEFORE_OPTIONAL_IDX?0===this.selection.selected.length?this.openSkipDialog():(this.getRequiredAttributes(),this.stepper.next()):this.stepper.selectedIndex===this.ATTRIBUTES_IDX&&0!==this.attSelection.selected.length?this.openUnsavedAttsDialog():this.stepper.next()}onFinish(){this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities",this.facility.id],{queryParamsHandling:"merge"})}onRemoveAttributes(){this.processing=!0;const e=this.attSelection.selected.map(s=>s.id);this.attributesManager.removeFacilityAttributes(this.facility.id,e).subscribe({next:()=>{this.notificator.showSuccess(this.removeMsg),this.getRequiredAttributes(),this.processing=!1},error:()=>this.processing=!1})}filterAttributes(e){if(void 0===e||0===e.length)return void(this.filteredAttributes=this.attributes);const s=new Set;for(const a of e)this.attributesPerService.get(a.id).forEach(o=>s.add(o));this.filteredAttributes=[];for(const a of this.attributes)s.has(a.id)&&this.filteredAttributes.push(a)}getNonEmptyAttributes(){this.filteredAttributes=this.attributes.filter(e=>{if(e.value&&(!Array.isArray(e.value)||0!==e.value.length))return e})}navigationStep(e){this.checkDestinationDependency(e.previouslySelectedIndex),e.selectedIndex===this.ATTRIBUTES_IDX?this.getRequiredAttributes():e.selectedIndex===this.DESTINATIONS_IDX?this.processing=!1:e.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl()}applyFilter(e){this.filterValue=e}canDeactivate(){return this.allowNavigate||this.onCancel(),this.allowNavigate}getServicePackageServices(e,s){s===e.length?this.serviceManager.getServices().subscribe(a=>{this.services=a}):this.serviceManager.getServicesFromServicesPackage(e[s].id).subscribe(a=>{this.servicesPerPackage.set(e[s].id,new Set([...a.map(o=>o.id)])),this.getServicePackageServices(e,s+1)})}getServiceRequiredAttributes(e,s){s!==e.length&&this.attributesManager.getRequiredAttributesDefinition(e[s].id).subscribe(a=>{a=a.filter(o=>this.attributeIds.has(o.id)),this.attributesPerService.set(e[s].id,a.map(o=>o.id)),this.getServiceRequiredAttributes(e,s+1)})}setServiceControl(){this.serviceControl.setValue(0!==this.selection.selected.length)}buildServiceSet(e){const s=new Set;return e.forEach(a=>{this.servicesPerPackage.get(a.id).forEach(o=>s.add(o))}),s}setDiff(e,s){return new Set([...e].filter(a=>!s.has(a)))}setIntersect(e,s){return new Set([...e].filter(a=>s.has(a)))}setSymDif(e,s){const a=this.buildServiceSet(e),o=this.buildServiceSet(s),r=this.setDiff(a,o),_=this.setDiff(o,a);return new Set([...r,..._])}filterService(e,s){const a=new Set;for(const o of s){const r=this.setIntersect(e,this.servicesPerPackage.get(o.id));0!==r.size&&r.forEach(_=>a.add(_))}return a}packageSelectionEqual(e){return e.length===this.selectedPackages.length&&(e.forEach(s=>{if(-1===this.selectedPackages.findIndex(a=>a.id===s.id))return!1}),!0)}checkPackageComplete(){const e=[];for(const s of this.selectedPackages){let a=!0;for(const o of this.servicesPerPackage.get(s.id))if(-1===this.selection.selected.findIndex(r=>r.id===o)){a=!1;break}a&&e.push(s)}this.selectedPackages=e}openSkipDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(cn,e).afterClosed().subscribe(a=>{a&&(this.serviceControl.setValue(!0),this.stepper.selectedIndex=this.AFTER_OPTIONAL_IDX)})}getRequiredAttributes(){this.processing=!0,this.attributesManager.getRequiredAttributesFacilityServices(this.selection.selected.map(e=>e.id),this.facility.id).subscribe(e=>{this.attSelection.clear(),this.attributes=e.filter(s=>!(0,p.Hm)(s)),this.filteredAttributes=this.attributes,this.attributes.forEach(s=>this.attributeIds.add(s.id)),this.getServiceRequiredAttributes(this.selection.selected,0),this.processing=!1})}openUnsavedAttsDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(rn,e).afterClosed().subscribe(a=>{a&&this.onSaveAttributes().then(()=>{this.stepper.next()},()=>this.getRequiredAttributes())})}checkDestinationDependency(e){(e===this.BEFORE_OPTIONAL_IDX||e===this.DESTINATIONS_IDX)&&(this.serviceIds=new Set([...this.selection.selected.map(s=>s.id)]),this.destinationServicePresent())}destinationServicePresent(){for(const e of this.destinations)if(!this.serviceIds.has(e.service.id))return void(this.destinationServiceMissing=!0);this.destinationServiceMissing=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(h.KK),t.Y36(h.IQ),t.Y36(t.sBO),t.Y36(u.uw),t.Y36(d.V6),t.Y36(f.sK),t.Y36(v.F0),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-configuration-page"]],viewQuery:function(e,s){if(1&e&&t.Gf(gn,5),2&e){let a;t.iGM(a=t.CRH())&&(s.stepper=a.first)}},decls:34,vars:15,consts:[[1,"facility-theme"],[1,"page-title"],[3,"linear","selectionChange"],["stepper",""],["matStepLabel",""],["matStepContent",""],[3,"stepControl"],["optional","true",3,"editable","stepControl"],[3,"editable","optional"],[1,"actions"],["mat-flat-button","",3,"click"],["class","ml-auto mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"mr-2","ml-auto","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"ownerEmitter"],[3,"disableRouting","hostEmitter"],[1,"page-subtitle"],["alert_type","info"],[1,"filters"],[1,"filter",3,"placeholder","filter"],[1,"package-search-select",3,"disableAutoSelect","selectedPackage","multiple","servicePackages","theme","packageSelected"],[3,"disableRouting","displayedColumns","selection","filterValue","services","selectionChanged"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","selection",4,"ngIf"],[1,"service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","selection"],[3,"configServicesIds","displayedColumns","configServices","loading","title","destinationEmitter"],[3,"disableRouting","disableSelf"],[3,"innerHTML"],[4,"ngIf"],[3,"disabled"],["svgIcon","perun-owner-grey",1,"mr-2"],[3,"displayedColumns","owners",4,"ngIf"],["svgIcon","perun-hosts",1,"mr-2"],[3,"disableRouting","displayedColumns","hosts",4,"ngIf"],["svgIcon","perun-service",1,"mr-2"],[3,"disableRouting","displayedColumns","services"],[3,"disabled","opened"],[3,"displayedColumns","attributes","emptyListText"],[3,"expanded","disabled","expandedChange"],["svgIcon","perun-service_destination",1,"mr-2"],[3,"destinations","displayedColumns","services"],["svgIcon","perun-manager",1,"mr-2"],[3,"complementaryObject","configMode","disableRouting","availableRoles","complementaryObjectType","displayedGroupColumns","displayedUserColumns"],[3,"displayedColumns","owners"],[3,"disableRouting","displayedColumns","hosts"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"]],template:function(e,s){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-stepper",2,3),t.NdJ("selectionChange",function(o){return s.navigationStep(o)}),t.TgZ(6,"mat-step"),t.YNc(7,Tn,2,3,"ng-template",4),t.YNc(8,Sn,1,0,"ng-template",5),t.qZA(),t.TgZ(9,"mat-step"),t.YNc(10,Cn,2,3,"ng-template",4),t.YNc(11,An,1,1,"ng-template",5),t.qZA(),t.TgZ(12,"mat-step",6),t.YNc(13,In,2,3,"ng-template",4),t.YNc(14,yn,10,18,"ng-template",5),t.qZA(),t.TgZ(15,"mat-step",7),t.YNc(16,vn,2,3,"ng-template",4),t.YNc(17,Ln,16,17,"ng-template",5),t.qZA(),t.TgZ(18,"mat-step",8),t.YNc(19,Zn,2,3,"ng-template",4),t.YNc(20,Rn,1,6,"ng-template",5),t.qZA(),t.TgZ(21,"mat-step"),t.YNc(22,Fn,2,3,"ng-template",4),t.YNc(23,Nn,1,2,"ng-template",5),t.qZA(),t.TgZ(24,"mat-step"),t.YNc(25,kn,2,3,"ng-template",4),t.YNc(26,Kn,4,4,"ng-template",5),t.qZA()(),t.TgZ(27,"div",9)(28,"button",10),t.NdJ("click",function(){return s.onCancel()}),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.YNc(31,zn,3,3,"button",11),t.YNc(32,$n,3,7,"button",12),t.YNc(33,Wn,3,3,"button",13),t.qZA()()),2&e){const a=t.MAs(5);t.xp6(2),t.hij(" ",t.lcZ(3,11,"FACILITY_CONFIGURATION.TITLE")," "),t.xp6(2),t.Q6J("linear",!0),t.xp6(8),t.Q6J("stepControl",s.serviceControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length)("stepControl",s.attributesControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length||0!==s.destinations.length)("optional",0===s.destinations.length),t.xp6(11),t.hij(" ",t.lcZ(30,13,"FACILITY_CONFIGURATION.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==a&&0!==a.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==a&&a.selectedIndex!==a.steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==a&&a.selectedIndex===a.steps.length-1)}},dependencies:[m.O5,R.Hw,S.lW,T.Ou,P.C0,P.VY,P.Vq,P.BY,q.pp,q.ib,q.yz,q.yK,rt.s,pt.q,ft,mn.Q,O.w,D.L,Tt.p,z.Q,hn.F,fn.J,ut,dt,_t,gt,f.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.6rem;margin-right:.9rem}.filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.package-search-select[_ngcontent-%COMP%]{width:650px}.service-search-select[_ngcontent-%COMP%]{width:400px}.filter[_ngcontent-%COMP%]{width:350px;margin-right:20px}.actions[_ngcontent-%COMP%]{background-color:#fff;display:flex;padding:20px}.cursor-default[_ngcontent-%COMP%]{cursor:default}"]}),i})(),At=(()=>{class i{constructor(e){this.router=e}canActivate(e){return e.parent.params.facilityId===sessionStorage.getItem("newFacilityId")||(this.router.navigate(["/home"],{queryParamsHandling:"merge"}),!1)}canDeactivate(e){return e.canDeactivate()}}return i.\u0275fac=function(e){return new(e||i)(t.LFG(v.F0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var W=l(71992),X=l(64080),It=l(64901),to=l(11447),eo=l(83370);let io=(()=>{class i{constructor(e,s,a,o,r){this.data=e,this.dialogRef=s,this.store=a,this.facilityService=o,this.notificator=r,this.selection=new A.Ov(!1,[]),this.loading=!1,this.attrNames=[X.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.displayedColumns=["select","id","name","email","logins"],this.tableId=x.bj,this.filter=""}ngOnInit(){this.selection.changed.subscribe(e=>{this.ban=this.data.bans.find(s=>s.userId===e.source.selected[0]?.id)})}cancel(){this.dialogRef.close(!1)}submitBan(e){this.ban?this.updateBan(e):this.banUser(e)}setFilter(e){this.filter=e,this.selection.clear()}banUser(e){this.loading=!0,this.facilityService.setFacilityBan({banOnFacility:{userId:this.selection.selected[0].id,facilityId:this.data.entityId,description:e.description,validityTo:e.validity,id:0,beanName:"BanOnVo"}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.ADD_BAN.SUCCESS_USER"),this.dialogRef.close(!0)},error:()=>this.loading=!1})}updateBan(e){this.loading=!0,this.facilityService.updateFacilityBan({banOnFacility:{id:this.ban.id,beanName:"BanOnFacility",facilityId:this.ban.facilityId,userId:this.ban.userId,description:e.description,validityTo:e.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.WI),t.Y36(u.so),t.Y36(d.d6),t.Y36(h.IQ),t.Y36(d.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-facility-ban-dialog"]],decls:3,vars:12,consts:[[3,"loading","disabled","theme","ban","add","cancel"],[3,"placeholder","filter"],[3,"attrNames","selection","tableId","disableRouting","displayedColumns","searchString","facilityId"]],template:function(e,s){1&e&&(t.TgZ(0,"app-add-ban-dialog",0),t.NdJ("add",function(o){return s.submitBan(o)})("cancel",function(){return s.cancel()}),t.TgZ(1,"perun-web-apps-debounce-filter",1),t.NdJ("filter",function(o){return s.setFilter(o)}),t.qZA(),t._UZ(2,"perun-web-apps-users-dynamic-list",2),t.qZA()),2&e&&(t.Q6J("loading",s.loading)("disabled",0===s.selection.selected.length)("theme",s.data.theme)("ban",s.ban),t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_BAN.FILTER"),t.xp6(1),t.Q6J("attrNames",s.attrNames)("selection",s.selection)("tableId",s.tableId)("disableRouting",!0)("displayedColumns",s.displayedColumns)("searchString",s.filter)("facilityId",s.data.entityId))},dependencies:[It.P,to.M,eo.u]}),i})();var so=l(90979),ao=l(73358),no=l(91880);function oo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.BANS.ADD"),"\n"))}function lo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.BANS.REMOVE"),"\n")}}function co(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-ban-on-entity-list",10),t.NdJ("updateBan",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.update(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("bans",e.bans)("selection",e.selection)("displayedColumns",e.displayedColumns)("filter",e.filter)("updatePolicy","updateBan_BanOnFacility_policy")}}function ro(i,n){1&i&&(t.TgZ(0,"div",11),t._UZ(1,"mat-spinner"),t.qZA())}let uo=(()=>{class i{constructor(e,s,a,o,r,_,C){this.facilityService=e,this.entityService=s,this.authResolver=a,this.dialog=o,this.notificator=r,this.store=_,this.userName=C,this.loading=!1,this.bans=[],this.removeAuth=!1,this.filter="",this.selection=new A.Ov(!1,[]),this.attrNames=[X.r.MEMBER_DEF_MAIL,X.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.displayedColumns=["select","banId","subjectId","subjectName","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.facility=this.entityService.getEntity(),this.addAuth=this.authResolver.isAuthorized("setBan_BanOnFacility_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeBan_int_policy",[this.facility]),this.refresh()}refresh(){this.loading=!0,this.facilityService.getEnrichedBansForFacility(this.facility.id,this.attrNames).subscribe({next:e=>{this.bans=e,this.selection.clear(),this.loading=!1},error:()=>this.loading=!1})}add(){const e=(0,p.kZ)();e.width="850px",e.data={entityId:this.facility.id,theme:"facility-theme",bans:this.bans.map(a=>a.ban)},this.dialog.open(io,e).afterClosed().subscribe(a=>{a&&this.refresh()})}remove(){const e=(0,p.kZ)();e.width="550px",e.data={theme:"facility-theme",title:"DIALOGS.REMOVE_BAN.TITLE",description:"DIALOGS.REMOVE_BAN.DESCRIPTION",items:[this.userName.transform(this.selection.selected[0].user)],type:"remove",showAsk:!0},this.dialog.open(M.Ts,e).afterClosed().subscribe(a=>{a&&this.facilityService.removeFacilityBanById(this.selection.selected[0].ban.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.REMOVE_BAN.SUCCESS"),this.refresh()})})}update(e){const s=(0,p.kZ)();s.width="600px",s.data={ban:e.ban,theme:"facility-theme"},this.dialog.open(so.G,s).afterClosed().subscribe(o=>{o&&this.refresh()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(d.fb),t.Y36(d.x4),t.Y36(u.uw),t.Y36(d.V6),t.Y36(d.d6),t.Y36(F.dp))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-bans"]],features:[t._Bn([F.dp])],decls:11,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mt-2","search-field",3,"placeholder","filter"],[1,"position-relative"],[3,"bans","selection","displayedColumns","filter","updatePolicy","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["spinner",""],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"bans","selection","displayedColumns","filter","updatePolicy","updateBan"],[1,"spinner-container"]],template:function(e,s){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return s.refresh()}),t.qZA(),t.YNc(4,oo,3,3,"button",2),t.YNc(5,lo,3,4,"button",3),t.TgZ(6,"perun-web-apps-debounce-filter",4),t.NdJ("filter",function(o){return s.filter=o}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,co,1,5,"perun-web-apps-ban-on-entity-list",6),t.qZA(),t.YNc(9,ro,2,0,"ng-template",null,7,t.W1O)),2&e){const a=t.MAs(10);t.xp6(1),t.hij(" ",t.lcZ(2,6,"FACILITY_DETAIL.SETTINGS.BANS.TITLE"),"\n"),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.SETTINGS.BANS.FILTER"),t.xp6(2),t.Q6J("perunWebAppsLoader",s.loading)("perunWebAppsLoaderIndicator",a)}},dependencies:[m.O5,S.lW,T.Ou,E.t,It.P,ao.e,no.s,f.X$]}),i})();var po=l(35265);const _o=[{path:"",component:it.P,canActivateChild:[W.a],children:[{path:"",component:it.P,data:{animation:"FacilitySelectPage"}}]},{path:":facilityId",component:kt,canActivateChild:[W.a],children:[{path:"",component:Ut,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:te,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:Mt.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:va._,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:Jt.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:ya,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:on,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:he,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:dt,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:gt,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:Xi,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:Gt,children:[{path:"",component:Vt,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:_t,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:ut,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:Ts,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:Vi,data:{animation:"FacilitySettingsBlackListPage"}},{path:"bans",component:uo,data:{animation:"FacilitySettingsBansPage"}}]},{path:"configuration",component:Xn,canActivate:[At],canDeactivate:[At]}]},{path:":facilityId/resources/:resourceId",component:Qt.b,canActivateChild:[W.a],children:[{path:"",component:Ht.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:se.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:ae.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:Cs.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:xa.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:ln.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:ee.t,children:[{path:"",component:ie.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:Ss.O,data:{animation:"ResourceSettingsManagersPage"}},{path:"bans",component:po.I,data:{animation:"ResourceSettingsBansPage"}}]}]}];let mo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[v.Bz.forChild(_o),v.Bz]}),i})();var ho=l(14264),fo=l(63189),go=l(38338),To=l(72705);let So=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[F.dp],imports:[m.ez,mo,ho.m,fo.r,Bi.ez,F.d4,go.UsersModule,To.AdminModule]}),i})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/839.7b40c505f923811d.js b/dist/apps/admin-gui/839.7b40c505f923811d.js deleted file mode 100644 index 150c4d573..000000000 --- a/dist/apps/admin-gui/839.7b40c505f923811d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[839],{61283:(J,U,s)=>{s.d(U,{A:()=>b});var e=s(36769),d=s(94650),C=s(94364);let b=(()=>{class a{prepareRoute(n){return n?.activatedRouteData&&null!==n?.activatedRouteData.animation}}return a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=d.Xpm({type:a,selectors:[["app-animated-router-outlet"]],decls:3,vars:0,consts:[["outlet","outlet"]],template:function(n,D){1&n&&(d.TgZ(0,"div"),d._UZ(1,"router-outlet",null,0),d.qZA())},dependencies:[C.lC],data:{animation:[e.Ji]}}),a})()},71103:(J,U,s)=>{s.d(U,{n:()=>h});var e=s(65412),d=s(95017),C=s(81591),b=s(61744),a=s(10036),n=(s(37433),s(94650)),D=s(89383),t=s(36895),I=s(4859),P=s(51572),T=s(98380),Z=s(7434),M=s(53984);const A=["list"];function R(f,N){1&f&&(n.TgZ(0,"perun-web-apps-alert",10),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&f&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE.ERROR_EMPTY_VALUE")," "))}function u(f,N){1&f&&n._UZ(0,"mat-spinner",11)}function O(f,N){if(1&f&&n._UZ(0,"perun-web-apps-attributes-list",12,13),2&f){const _=n.oxw();n.Q6J("emptyListText","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_ATTRIBUTES")("attributes",_.attributes)("filterValue",_.filterValue)("inDialog",!0)("selection",_.selected)("tableId",_.tableId)}}let h=(()=>{class f{constructor(_,E,l,y,S){this.dialogRef=_,this.data=E,this.attributesManager=l,this.notificator=y,this.translate=S,this.attributes=[],this.selected=new d.Ov(!0,[]),this.showError=!1,this.filterValue="",this.tableId=a.rF,this.translate.get("DIALOGS.CREATE_ATTRIBUTE.SUCCESS_SAVE").subscribe(F=>this.saveSuccessMessage=F)}ngOnInit(){const _=new Array;let E,l,y,S,F,W,g,x;switch(this.data.notEmptyAttributes.forEach(c=>{_.push(c.id)}),this.data.entity){case"member":E=this.data.entityId;break;case"user":l=this.data.entityId;break;case"vo":y=this.data.entityId;break;case"group":S=this.data.entityId;break;case"resource":F=this.data.entityId;break;case"facility":W=this.data.entityId;break;case"host":g=this.data.entityId;break;case"ues":x=this.data.entityId}switch(this.data.secondEntity){case"member":E=this.data.secondEntityId;break;case"user":l=this.data.secondEntityId;break;case"vo":y=this.data.secondEntityId;break;case"group":S=this.data.secondEntityId;break;case"resource":F=this.data.secondEntityId;break;case"facility":W=this.data.secondEntityId;break;case"host":g=this.data.secondEntityId;break;case"ues":x=this.data.secondEntityId}this.loading=!0,this.attributesManager.getAttributesDefinitionWithRights(E,l,y,S,F,W,g,x).subscribe(c=>{this.attributes=c,this.attributes=this.attributes.filter(o=>!_.includes(o.id)&&this.twoEntityValid(o)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSave(){this.list.updateMapAttributes();let _=!1;for(const E of this.selected.selected)"java.util.ArrayList"===E.type&&0===E.value.length&&(_=!0),void 0===E.value&&(_=!0);if(_)return this.showError=!0,void setTimeout(()=>{this.showError=!1},5e3);switch(this.data.entity){case"facility":"user"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({facility:this.data.entityId,user:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}break;case"resource":switch(this.data.secondEntity){case"member":this.attributesManager.setMemberResourceAttributes({resource:this.data.entityId,member:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":this.attributesManager.setGroupResourceAttributes({resource:this.data.entityId,group:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default:this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}}applyFilter(_){this.filterValue=_}handleSuccess(){this.notificator.showSuccess(this.saveSuccessMessage),this.selected.clear(),this.dialogRef.close("saved")}twoEntityValid(_){return!this.data.secondEntity||_.entity===`${this.data.entity}_${this.data.secondEntity}`||_.entity===`${this.data.secondEntity}_${this.data.entity}`}}return f.\u0275fac=function(_){return new(_||f)(n.Y36(e.so),n.Y36(e.WI),n.Y36(b.H8),n.Y36(C.V6),n.Y36(D.sK))},f.\u0275cmp=n.Xpm({type:f,selectors:[["app-create-attribute-dialog"]],viewQuery:function(_,E){if(1&_&&n.Gf(A,5),2&_){let l;n.iGM(l=n.CRH())&&(E.list=l.first)}},decls:17,vars:17,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["data-cy","filter-attributes",1,"font-size-1rem",3,"placeholder","filter"],["class","ml-3 font-size-1rem","alert_type","error",4,"ngIf"],["mat-dialog-content",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","save-selected-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","error",1,"ml-3","font-size-1rem"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId"],["list",""]],template:function(_,E){1&_&&(n.TgZ(0,"div")(1,"div",0)(2,"h1",1),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(y){return E.applyFilter(y)}),n.qZA(),n.YNc(6,R,3,3,"perun-web-apps-alert",3),n.qZA(),n.TgZ(7,"div",4),n.YNc(8,u,1,0,"mat-spinner",5),n.YNc(9,O,2,6,"perun-web-apps-attributes-list",6),n.qZA(),n.TgZ(10,"div",7)(11,"button",8),n.NdJ("click",function(){return E.onCancel()}),n._uU(12),n.ALo(13,"translate"),n.qZA(),n.TgZ(14,"button",9),n.NdJ("click",function(){return E.onSave()}),n._uU(15),n.ALo(16,"translate"),n.qZA()()()),2&_&&(n.Tol(E.data.style),n.xp6(3),n.Oqu(n.lcZ(4,11,"DIALOGS.CREATE_ATTRIBUTE.SET_NEW")),n.xp6(2),n.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),n.xp6(1),n.Q6J("ngIf",E.showError),n.xp6(2),n.Q6J("ngIf",E.loading),n.xp6(1),n.Q6J("ngIf",!E.loading),n.xp6(3),n.hij(" ",n.lcZ(13,13,"DIALOGS.CREATE_ATTRIBUTE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",0===E.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(16,15,"DIALOGS.CREATE_ATTRIBUTE.SAVE")," "))},dependencies:[t.O5,I.lW,e.uh,e.xY,e.H8,P.Ou,T.w,Z.L,M.p,D.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),f})()},61365:(J,U,s)=>{s.d(U,{k:()=>R});var e=s(65412),d=s(30671),C=s(81591),b=s(61744),a=s(94650),L=s(89383),n=s(36895),D=s(4859),t=s(51572);function I(u,O){1&u&&a._UZ(0,"mat-spinner",6)}function P(u,O){1&u&&a._UZ(0,"th",15)}function T(u,O){if(1&u&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&u){const h=O.$implicit;a.xp6(1),a.Oqu(h.displayName)}}function Z(u,O){1&u&&a._UZ(0,"tr",17)}function M(u,O){1&u&&a._UZ(0,"tr",18)}function A(u,O){if(1&u&&(a.TgZ(0,"div",7)(1,"div"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"div",8),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"table",9),a.ynx(8,10),a.YNc(9,P,1,0,"th",11),a.YNc(10,T,2,1,"td",12),a.BQk(),a.YNc(11,Z,1,0,"tr",13),a.YNc(12,M,1,0,"tr",14),a.qZA()()),2&u){const h=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,5,"DIALOGS.DELETE_ATTRIBUTES.DESCRIPTION")," "),a.xp6(3),a.hij(" ",a.lcZ(6,7,"DIALOGS.DELETE_ATTRIBUTES.ASK")," "),a.xp6(2),a.Q6J("dataSource",h.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",h.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",h.displayedColumns)}}let R=(()=>{class u{constructor(h,f,N,_,E){this.dialogRef=h,this.data=f,this.notificator=N,this.translate=_,this.attributesManager=E,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.dataSource=new d.by(this.data.attributes),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){const h=[];for(const N of this.data.attributes)h.push(N.id);const f={};switch(f[this.data.entity]=this.data.entityId,f.attributes=h,void 0!==this.data.secondEntity&&(f[this.data.secondEntity]=this.data.secondEntityId),this.loading=!0,this.data.entity){case"vo":this.attributesManager.removeVoAttributes(this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.removeGroupResourceAttributes(this.data.entityId,this.data.secondEntityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1}):this.attributesManager.removeGroupAttributes(this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.removeUserFacilityAttributes(this.data.entityId,this.data.secondEntityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1}):this.attributesManager.removeUserAttributes(this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.removeMemberResourceAttributes(this.data.entityId,this.data.secondEntityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"group":this.attributesManager.removeMemberGroupAttributes(this.data.entityId,this.data.secondEntityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;default:this.attributesManager.removeMemberAttributes(this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1})}break;case"facility":"user"===this.data.secondEntity?this.attributesManager.removeUserFacilityAttributes(this.data.secondEntityId,this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1}):this.attributesManager.removeFacilityAttributes(this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"host":this.attributesManager.removeHostAttributes(this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"ues":this.attributesManager.removeUesAttributes(this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"resource":switch(this.data.secondEntity){case"member":this.attributesManager.removeMemberResourceAttributes(this.data.secondEntityId,this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"group":this.attributesManager.removeGroupResourceAttributes(this.data.secondEntityId,this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;default:this.attributesManager.removeResourceAttributes(this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1})}}}onSuccess(){this.translate.get("DIALOGS.DELETE_ATTRIBUTES.SUCCESS").subscribe(h=>{this.notificator.showSuccess(h),this.dialogRef.close(!0)})}}return u.\u0275fac=function(h){return new(h||u)(a.Y36(e.so),a.Y36(e.WI),a.Y36(C.V6),a.Y36(L.sK),a.Y36(b.H8))},u.\u0275cmp=a.Xpm({type:u,selectors:[["app-delete-attribute-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(h,f){1&h&&(a.TgZ(0,"div")(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,I,1,0,"mat-spinner",1),a.YNc(5,A,13,9,"div",2),a.TgZ(6,"div",3)(7,"button",4),a.NdJ("click",function(){return f.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return f.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA()()()),2&h&&(a.Tol(f.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTES.TITLE")),a.xp6(2),a.Q6J("ngIf",f.loading),a.xp6(1),a.Q6J("ngIf",!f.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTES.CANCEL")," "),a.xp6(2),a.Q6J("disabled",f.loading),a.xp6(1),a.hij(" ",a.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTES.DELETE")," "))},dependencies:[n.O5,D.lW,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,e.uh,e.xY,e.H8,t.Ou,L.X$]}),u})()},1415:(J,U,s)=>{s.d(U,{l:()=>P});var e=s(94650),d=s(37433),C=s(36895),b=s(4859),a=s(65412),L=s(51572),n=s(29926),D=s(89383);function t(T,Z){1&T&&e._UZ(0,"mat-spinner",7)}function I(T,Z){if(1&T&&e._UZ(0,"perun-web-apps-ban-specification",8),2&T){const M=e.oxw();e.Q6J("description",M.ban.description)("validity",M.ban.validityTo)}}let P=(()=>{class T{constructor(){this.loading=!1,this.cancel=new e.vpe,this.update=new e.vpe}updateBan(){this.update.emit({description:this.banForm.getDescription(),validity:this.banForm.getValidity()})}}return T.\u0275fac=function(M){return new(M||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-update-ban-dialog"]],viewQuery:function(M,A){if(1&M&&e.Gf(d.CZ,5),2&M){let R;e.iGM(R=e.CRH())&&(A.banForm=R.first)}},inputs:{loading:"loading",ban:"ban",theme:"theme"},outputs:{cancel:"cancel",update:"update"},decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"description","validity",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],[1,"ml-auto","mr-auto"],[3,"description","validity"]],template:function(M,A){1&M&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1),e.YNc(5,t,1,0,"mat-spinner",2),e.YNc(6,I,1,2,"perun-web-apps-ban-specification",3),e.qZA(),e.TgZ(7,"div",4)(8,"button",5),e.NdJ("click",function(){return A.cancel.emit()}),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"button",6),e.NdJ("click",function(){return A.updateBan()}),e._uU(12),e.ALo(13,"translate"),e.qZA()()()),2&M&&(e.Tol(A.theme),e.xp6(2),e.Oqu(e.lcZ(3,8,"DIALOGS.UPDATE_BAN.TITLE")),e.xp6(3),e.Q6J("ngIf",A.loading),e.xp6(1),e.Q6J("ngIf",!A.loading),e.xp6(3),e.hij(" ",e.lcZ(10,10,"DIALOGS.UPDATE_BAN.CANCEL")," "),e.xp6(3),e.hij(" ",e.lcZ(13,12,"DIALOGS.UPDATE_BAN.UPDATE")," "))},dependencies:[C.O5,b.lW,a.uh,a.xY,a.H8,L.Ou,n.C,D.X$]}),T})()},28943:(J,U,s)=>{s.d(U,{e:()=>L});var e=s(65412),d=s(61744),C=s(81591),b=s(94650),a=s(1415);let L=(()=>{class n{constructor(t,I,P,T){this.data=t,this.dialogRef=I,this.resourceService=P,this.notificator=T,this.loading=!1}update(t){this.loading=!0,this.resourceService.updateResourceBan({banOnResource:{id:this.data.ban.id,beanName:"BanOnFacility",resourceId:this.data.ban.resourceId,memberId:this.data.ban.memberId,description:t.description,validityTo:t.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}cancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(t){return new(t||n)(b.Y36(e.WI),b.Y36(e.so),b.Y36(d.xk),b.Y36(C.V6))},n.\u0275cmp=b.Xpm({type:n,selectors:[["app-update-resource-ban-dialog"]],decls:1,vars:2,consts:[[3,"ban","theme","cancel","update"]],template:function(t,I){1&t&&(b.TgZ(0,"app-update-ban-dialog",0),b.NdJ("cancel",function(){return I.cancel()})("update",function(T){return I.update(T)}),b.qZA()),2&t&&b.Q6J("ban",I.data.ban)("theme","facility-theme")},dependencies:[a.l]}),n})()},32316:(J,U,s)=>{s.d(U,{A:()=>L});var e=s(65412),d=s(61744),C=s(81591),b=s(94650),a=s(1415);let L=(()=>{class n{constructor(t,I,P,T){this.data=t,this.dialogRef=I,this.voService=P,this.notificator=T,this.loading=!1}update(t){this.loading=!0,this.voService.updateVoBan({banOnVo:{id:this.data.ban.id,beanName:"BanOnVo",voId:this.data.ban.voId,memberId:this.data.ban.memberId,description:t.description,validityTo:t.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}cancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(t){return new(t||n)(b.Y36(e.WI),b.Y36(e.so),b.Y36(d.YF),b.Y36(C.V6))},n.\u0275cmp=b.Xpm({type:n,selectors:[["app-update-vo-ban-dialog"]],decls:1,vars:2,consts:[[3,"ban","theme","cancel","update"]],template:function(t,I){1&t&&(b.TgZ(0,"app-update-ban-dialog",0),b.NdJ("cancel",function(){return I.cancel()})("update",function(T){return I.update(T)}),b.qZA()),2&t&&b.Q6J("ban",I.data.ban)("theme","vo-theme")},dependencies:[a.l]}),n})()},95406:(J,U,s)=>{s.d(U,{r:()=>W});var e=s(94650),d=s(24006),C=s(9244),b=s(28499),a=s(61744),L=s(81591),n=s(10266),D=s(71948),t=s(13469),I=s(78372),P=s(95698),T=s(63900),Z=s(54004),M=s(36895),A=s(3238),R=s(59549),u=s(284),O=s(84385),h=s(89383);function f(g,x){if(1&g&&(e.TgZ(0,"mat-option",7),e._uU(1),e.qZA()),2&g){const c=x.$implicit;e.Q6J("value",c),e.xp6(1),e.hij(" ",c," ")}}function N(g,x){1&g&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&g&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.FIELD_EMPTY")))}function _(g,x){1&g&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&g&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_EXISTS")))}function E(g,x){1&g&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&g&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_FORMAT")))}function l(g,x){1&g&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&g&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_LONG")))}function y(g,x){1&g&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&g&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_SHORT")))}function S(g,x){if(1&g&&(e.TgZ(0,"span",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&g){const c=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,"Not selected"===c.formGroup.get("namespaceCtrl").value?"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_DISABLED":"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_DISABLED_FOR_NAMESPACE")," ")}}let F=(()=>{class g{constructor(c,o){this.membersManagerService=c,this.usersManagerService=o,this.filteredNamespaces=null,this.namespaceChanged=new e.vpe,this.parsedRulesChanged=new e.vpe,this.namespaceOptions=[],this.selectedNamespace=null,this.namespaceRules=[],this.parsedRules=new Map}ngOnInit(){this.namespaceOptions=["Not selected"],this.membersManagerService.getAllNamespacesRules().subscribe(c=>{this.namespaceRules=c,this.parseNamespaceRules()}),this.onNamespaceChanged("Not selected")}existingLoginValidator(){return c=>{let o=this.formGroup.get("namespaceCtrl").value.toLowerCase();return o="not selected"===o?"mu":o,c.valueChanges.pipe((0,I.b)(500),(0,P.q)(1),(0,T.w)(()=>this.usersManagerService.isLoginAvailable(o,c.value).pipe((0,Z.U)(B=>B?null:{loginExists:!0}))))}}parseNamespaceRules(){for(const c of this.namespaceRules)if(null===this.filteredNamespaces||!this.filteredNamespaces.includes(c.namespaceName)){this.namespaceOptions.push(c.namespaceName);const o={login:"disabled"};this.parseAttributes(o,c.requiredAttributes,"required"),this.parseAttributes(o,c.optionalAttributes,"optional"),this.parsedRules.set(c.namespaceName,o)}this.parsedRulesChanged.emit(this.parsedRules)}parseAttributes(c,o,B){for(const G of o)"login"===G&&(c.login=B)}onNamespaceChanged(c){this.selectedNamespace=c.toLowerCase();const o=this.formGroup.get("loginCtrl");if("Not selected"!==c)if("disabled"===this.parsedRules.get(this.selectedNamespace).login)o.disable(),o.setValue("");else{const B=[d.kI.required,d.kI.pattern("^[a-z][a-z0-9_-]+$"),d.kI.maxLength(15),d.kI.minLength(2)];(0,C.mH)(o,B,[this.existingLoginValidator()])}else o.disable(),o.setValue("");this.namespaceChanged.emit(c)}}return g.\u0275fac=function(c){return new(c||g)(e.Y36(a.uq),e.Y36(a.Fv))},g.\u0275cmp=e.Xpm({type:g,selectors:[["app-login-for-namespace"]],inputs:{formGroup:"formGroup",filteredNamespaces:"filteredNamespaces"},outputs:{namespaceChanged:"namespaceChanged",parsedRulesChanged:"parsedRulesChanged"},decls:18,vars:16,consts:[[1,"display-flex",3,"formGroup"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"floatLabel"],["formControlName","loginCtrl","matInput","","required","",3,"hidden"],[4,"ngIf"],["class","input-disabled",4,"ngIf"],[3,"value"],[1,"input-disabled"]],template:function(c,o){1&c&&(e.TgZ(0,"div",0)(1,"mat-form-field")(2,"mat-label"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-select",1),e.NdJ("valueChange",function(G){return o.onNamespaceChanged(G)}),e.YNc(6,f,2,2,"mat-option",2),e.qZA()(),e.TgZ(7,"mat-form-field",3)(8,"mat-label"),e._uU(9),e.ALo(10,"translate"),e.qZA(),e._UZ(11,"input",4),e.YNc(12,N,3,3,"mat-error",5),e.YNc(13,_,3,3,"mat-error",5),e.YNc(14,E,3,3,"mat-error",5),e.YNc(15,l,3,3,"mat-error",5),e.YNc(16,y,3,3,"mat-error",5),e.YNc(17,S,3,3,"span",6),e.qZA()()),2&c&&(e.Q6J("formGroup",o.formGroup),e.xp6(3),e.Oqu(e.lcZ(4,12,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.NAMESPACE")),e.xp6(3),e.Q6J("ngForOf",o.namespaceOptions),e.xp6(1),e.Q6J("floatLabel",o.formGroup.get("loginCtrl").disabled?"always":null),e.xp6(2),e.Oqu(e.lcZ(10,14,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN")),e.xp6(2),e.Q6J("hidden",o.formGroup.get("loginCtrl").disabled),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("required")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("loginExists")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("pattern")&&!o.formGroup.get("loginCtrl").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("maxlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").disabled))},dependencies:[M.sg,M.O5,A.ey,R.TO,R.KE,R.hX,u.Nt,d.Fj,d.JJ,d.JL,d.Q7,d.sg,d.u,O.gD,h.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input-disabled[_ngcontent-%COMP%]{pointer-events:none;color:#888}"]}),g})(),W=(()=>{class g{constructor(c,o,B){this.membersManagerService=c,this.usersManagerService=o,this.apiRequestConfiguration=B,this.filteredNamespace=null,this.parsedRulesOutput=new e.vpe,this.selectedNamespace=null,this.parsedRules=new Map}parsedRulesFunction(c){this.parsedRules=c,this.parsedRulesOutput.emit(c)}onNamespaceChanged(c){this.selectedNamespace=c.toLowerCase();const o=this.formGroup.get("passwordCtrl"),B=this.formGroup.get("passwordAgainCtrl"),G=this.formGroup.get("generatePasswordCtrl");"Not selected"!==c?((0,C.mH)(G,[]),this.passwordOptionChanged()):(o.disable(),o.setValue(""),B.disable(),B.setValue(""),G.disable(),G.dirty||G.setValue(!0))}passwordOptionChanged(){const c=this.formGroup.get("passwordCtrl"),o=this.formGroup.get("passwordAgainCtrl");this.formGroup.get("generatePasswordCtrl").value?(c.disable(),c.setValue(""),o.disable(),o.setValue("")):((0,C.mH)(c,[d.kI.required],[(0,b.yT)(this.selectedNamespace,this.usersManagerService,this.apiRequestConfiguration)]),(0,C.mH)(o,[]))}}return g.\u0275fac=function(c){return new(c||g)(e.Y36(a.uq),e.Y36(a.Fv),e.Y36(L.F5))},g.\u0275cmp=e.Xpm({type:g,selectors:[["app-login-password-form-with-generate-option"]],inputs:{formGroup:"formGroup",filteredNamespace:"filteredNamespace"},outputs:{parsedRulesOutput:"parsedRulesOutput"},decls:12,vars:23,consts:[[1,"display-flex",3,"formGroup"],[3,"formGroup","filteredNamespaces","namespaceChanged","parsedRulesChanged"],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[1,"display-flex"],[3,"formGroup","namespace","passwordRequired","tooltipPwdDisabledForNamespace"]],template:function(c,o){1&c&&(e.TgZ(0,"div",0)(1,"app-login-for-namespace",1),e.NdJ("namespaceChanged",function(G){return o.onNamespaceChanged(G)})("parsedRulesChanged",function(G){return o.parsedRulesFunction(G)}),e.qZA(),e.TgZ(2,"mat-radio-group",2),e.NdJ("ngModelChange",function(){return o.passwordOptionChanged()}),e.ALo(3,"translate"),e.TgZ(4,"mat-radio-button",3),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-radio-button",3),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"div",4),e._UZ(11,"perun-web-apps-password-form",5),e.qZA()()),2&c&&(e.Q6J("formGroup",o.formGroup),e.xp6(1),e.Q6J("formGroup",o.formGroup)("filteredNamespaces",o.filteredNamespace),e.xp6(1),e.s9C("matTooltip",e.lcZ(3,17,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),e.Q6J("matTooltipDisabled","Not selected"!==o.formGroup.get("namespaceCtrl").value),e.xp6(2),e.Q6J("checked",o.formGroup.get("generatePasswordCtrl").value&&o.formGroup.get("generatePasswordCtrl").enabled)("value",!0),e.xp6(1),e.hij(" ",e.lcZ(6,19,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),e.xp6(2),e.Q6J("checked",!o.formGroup.get("generatePasswordCtrl").value&&o.formGroup.get("generatePasswordCtrl").enabled)("value",!1),e.xp6(1),e.hij(" ",e.lcZ(9,21,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),e.xp6(2),e.ekj("input-disabled",o.formGroup.get("generatePasswordCtrl").value),e.xp6(1),e.Q6J("formGroup",o.formGroup)("namespace",o.selectedNamespace)("passwordRequired",!o.formGroup.get("generatePasswordCtrl").value)("tooltipPwdDisabledForNamespace",o.formGroup.get("generatePasswordCtrl").enabled))},dependencies:[d.JJ,d.JL,d.sg,d.u,n.gM,D.VQ,D.U0,t.G,F,h.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),g})()},12651:(J,U,s)=>{s.d(U,{t:()=>N});var e=s(61744),d=s(95017),C=s(9244),b=s(71103),a=s(21029),L=s(61365),D=(s(37433),s(10036)),t=s(94650),I=s(65412),P=s(36895),T=s(4859),Z=s(51572),M=s(96214),A=s(7434),R=s(53984),u=s(89383);const O=["list"];function h(_,E){1&_&&t._UZ(0,"mat-spinner",7)}function f(_,E){if(1&_&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&_){const l=t.oxw();t.Q6J("attributes",l.attributes)("filterValue",l.filterValue)("selection",l.selection)("tableId",l.tableId)}}let N=(()=>{class _{constructor(l,y){this.attributesManagerService=l,this.dialog=y,this.attributes=[],this.selection=new d.Ov(!0,[]),this.filterValue="",this.tableId=D.rF,this.loading=!1}ngOnInit(){this.refreshTable()}refreshTable(){switch(this.loading=!0,this.entity){case"member":this.attributesManagerService.getMemberAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"group":this.attributesManagerService.getGroupAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"user":this.attributesManagerService.getUserAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"resource":this.attributesManagerService.getResourceAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"facility":this.attributesManagerService.getFacilityAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"vo":this.attributesManagerService.getVoAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1})}}applyFilter(l){this.filterValue=l}onCreate(){const l=(0,C.kZ)();l.width="1050px",l.data={entityId:this.entityId,entity:this.entity,notEmptyAttributes:this.attributes,style:this.entity+"-theme"},this.dialog.open(b.n,l).afterClosed().subscribe(S=>{S&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const l=(0,C.kZ)();l.width="450px",l.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(a.wA,l).afterClosed().subscribe(S=>{S&&this.refreshTable()})}onDelete(){const l=(0,C.kZ)();l.width="450px",l.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(L.k,l).afterClosed().subscribe(S=>{S&&this.refreshTable()})}}return _.\u0275fac=function(l){return new(l||_)(t.Y36(e.H8),t.Y36(I.uw))},_.\u0275cmp=t.Xpm({type:_,selectors:[["app-one-entity-attribute-page"]],viewQuery:function(l,y){if(1&l&&t.Gf(O,5),2&l){let S;t.iGM(S=t.CRH())&&(y.list=S.first)}},inputs:{entity:"entity",entityId:"entityId"},decls:13,vars:14,consts:[[1,"mt-2",3,"refresh"],["color","accent","data-cy","add-attributes","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],["color","warn","data-cy","remove-attributes","mat-flat-button","",1,"mt-2","mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"attributes","filterValue","selection","tableId"],["list",""]],template:function(l,y){1&l&&(t.TgZ(0,"perun-web-apps-refresh-button",0),t.NdJ("refresh",function(){return y.refreshTable()}),t.qZA(),t.TgZ(1,"button",1),t.NdJ("click",function(){return y.onCreate()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return y.onSave()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"button",3),t.NdJ("click",function(){return y.onDelete()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(F){return y.applyFilter(F)}),t.qZA(),t.YNc(11,h,1,0,"mat-spinner",5),t.YNc(12,f,2,4,"perun-web-apps-attributes-list",6)),2&l&&(t.xp6(2),t.hij(" ",t.lcZ(3,8,"USER_DETAIL.SETTINGS.ATTRIBUTES.CREATE"),"\n"),t.xp6(2),t.Q6J("disabled",0===y.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,10,"USER_DETAIL.SETTINGS.ATTRIBUTES.SAVE"),"\n"),t.xp6(2),t.Q6J("disabled",0===y.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,12,"USER_DETAIL.SETTINGS.ATTRIBUTES.DELETE"),"\n"),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",y.loading),t.xp6(1),t.Q6J("ngIf",!y.loading))},dependencies:[P.O5,T.lW,Z.Ou,M.t,A.L,R.p,u.X$]}),_})()},19191:(J,U,s)=>{s.d(U,{Y:()=>V});var e=s(61744),C=(s(37433),s(95017)),b=s(61365),a=s(9244),L=s(21029),n=s(71103),D=s(64080),t=s(94650),I=s(65412),P=s(36895),T=s(4859),Z=s(51572),M=s(98380),A=s(96214),R=s(7434),u=s(53984),O=s(82322),h=s(45703),f=s(89593),N=s(89383);let _=(()=>{class p{constructor(){this.memberSelected=new t.vpe,this.memberFullNameFunction=i=>(0,a.bD)(i.user)}ngOnInit(){this.members=this.members.sort(a.fx)}}return p.\u0275fac=function(i){return new(i||p)},p.\u0275cmp=t.Xpm({type:p,selectors:[["perun-web-apps-member-search-select"]],inputs:{members:"members"},outputs:{memberSelected:"memberSelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(i,r){1&i&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(v){return r.memberSelected.emit(v)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&i&&t.Q6J("entities",r.members)("searchFunction",r.memberFullNameFunction)("mainTextFunction",r.memberFullNameFunction)("selectPlaceholder",t.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",t.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",t.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},dependencies:[f.i,N.X$]}),p})(),E=(()=>{class p{constructor(){this.disableAutoSelect=!1,this.facilitySelected=new t.vpe,this.nameFunction=i=>i.name}ngOnInit(){this.facilities=this.facilities.sort(a.aC)}}return p.\u0275fac=function(i){return new(i||p)},p.\u0275cmp=t.Xpm({type:p,selectors:[["perun-web-apps-facility-search-select"]],inputs:{facilities:"facilities",disableAutoSelect:"disableAutoSelect"},outputs:{facilitySelected:"facilitySelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(i,r){1&i&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(v){return r.facilitySelected.emit(v)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&i&&t.Q6J("entities",r.facilities)("disableAutoSelect",r.disableAutoSelect)("searchFunction",r.nameFunction)("mainTextFunction",r.nameFunction)("selectPlaceholder",t.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",t.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",t.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},dependencies:[f.i,N.X$]}),p})();var l=s(74250);const y=["list"];function S(p,w){1&p&&t._UZ(0,"mat-spinner",4)}function F(p,w){if(1&p&&(t.TgZ(0,"perun-web-apps-alert",5),t._uU(1),t.qZA()),2&p){const i=t.oxw();t.xp6(1),t.Oqu(i.noEntityMessage)}}function W(p,w){if(1&p){const i=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",18),t.NdJ("groupSelected",function(m){t.CHM(i);const v=t.oxw(2);return t.KtG(v.specifySecondEntity(m))}),t.qZA()}if(2&p){const i=t.oxw(2);t.Q6J("firstSelectedGroup",i.specificSecondEntity)("displayStatus",!0)("groups",i.entityValues)}}function g(p,w){if(1&p){const i=t.EpF();t.TgZ(0,"perun-web-apps-resource-search-select",19),t.NdJ("resourceSelected",function(m){t.CHM(i);const v=t.oxw(2);return t.KtG(v.specifySecondEntity(m))}),t.qZA()}if(2&p){const i=t.oxw(2);t.Q6J("resources",i.entityValues)}}function x(p,w){if(1&p){const i=t.EpF();t.TgZ(0,"perun-web-apps-member-search-select",20),t.NdJ("memberSelected",function(m){t.CHM(i);const v=t.oxw(2);return t.KtG(v.specifySecondEntity(m))}),t.qZA()}if(2&p){const i=t.oxw(2);t.Q6J("members",i.entityValues)}}function c(p,w){if(1&p){const i=t.EpF();t.TgZ(0,"perun-web-apps-facility-search-select",21),t.NdJ("facilitySelected",function(m){t.CHM(i);const v=t.oxw(2);return t.KtG(v.specifySecondEntity(m))}),t.qZA()}if(2&p){const i=t.oxw(2);t.Q6J("facilities",i.entityValues)}}function o(p,w){if(1&p){const i=t.EpF();t.TgZ(0,"perun-web-apps-user-search-select",22),t.NdJ("userSelected",function(m){t.CHM(i);const v=t.oxw(2);return t.KtG(v.specifySecondEntity(m))}),t.qZA()}if(2&p){const i=t.oxw(2);t.Q6J("users",i.entityValues)}}function B(p,w){1&p&&t._UZ(0,"mat-spinner",4)}function G(p,w){if(1&p&&t._UZ(0,"perun-web-apps-attributes-list",23,24),2&p){const i=t.oxw(2);t.Q6J("attributes",i.attributes)("filterValue",i.filterValue)("selection",i.selection)}}function K(p,w){if(1&p){const i=t.EpF();t.TgZ(0,"div")(1,"div",6),t.YNc(2,W,1,3,"perun-web-apps-group-search-select",7),t.YNc(3,g,1,1,"perun-web-apps-resource-search-select",8),t.YNc(4,x,1,1,"perun-web-apps-member-search-select",9),t.YNc(5,c,1,1,"perun-web-apps-facility-search-select",10),t.YNc(6,o,1,1,"perun-web-apps-user-search-select",11),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",12),t.NdJ("refresh",function(){t.CHM(i);const m=t.oxw();return t.KtG(m.getAttributes(m.specificSecondEntity.id))}),t.qZA(),t.TgZ(8,"button",13),t.NdJ("click",function(){t.CHM(i);const m=t.oxw();return t.KtG(m.onAdd(m.specificSecondEntity.id))}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",14),t.NdJ("click",function(){t.CHM(i);const m=t.oxw();return t.KtG(m.onSave(m.specificSecondEntity.id))}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",15),t.NdJ("click",function(){t.CHM(i);const m=t.oxw();return t.KtG(m.onDelete(m.specificSecondEntity.id))}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"perun-web-apps-immediate-filter",16),t.NdJ("filter",function(m){t.CHM(i);const v=t.oxw();return t.KtG(v.applyFilter(m))}),t.qZA(),t.YNc(18,B,1,0,"mat-spinner",1),t.YNc(19,G,2,3,"perun-web-apps-attributes-list",17),t.qZA()}if(2&p){const i=t.oxw();t.xp6(2),t.Q6J("ngIf","group"===i.secondEntity),t.xp6(1),t.Q6J("ngIf","resource"===i.secondEntity),t.xp6(1),t.Q6J("ngIf","member"===i.secondEntity),t.xp6(1),t.Q6J("ngIf","facility"===i.secondEntity),t.xp6(1),t.Q6J("ngIf","user"===i.secondEntity),t.xp6(3),t.hij(" ",t.lcZ(10,13,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),t.xp6(2),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(16,17,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",i.innerLoading),t.xp6(1),t.Q6J("ngIf",!i.innerLoading)}}let V=(()=>{class p{constructor(i,r,m,v,Y,Q){this.attributesManagerService=i,this.resourcesManagerService=r,this.facilitiesManagerService=m,this.groupsManagerService=v,this.membersManager=Y,this.dialog=Q,this.entityValues=[],this.attributes=[],this.selection=new C.Ov(!0,[]),this.allowedStatuses=["INVALID","VALID"],this.loading=!1,this.innerLoading=!1,this.filterValue=""}ngOnInit(){this.loadEntityValues(),this.setMessages(this.secondEntity.toLowerCase())}loadEntityValues(){switch(this.loading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.resourcesManagerService.getAssignedResourcesWithStatus(this.firstEntityId).subscribe(i=>{this.entityValues=i.map(r=>r.enrichedResource.resource),this.preselectEntity(),this.loading=!1});break;case"group":this.groupsManagerService.getMemberGroups(this.firstEntityId).subscribe(i=>{this.entityValues=i,this.preselectEntity(),this.loading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.resourcesManagerService.getResourceAssignments(this.firstEntityId).subscribe(i=>{this.entityValues=i.map(r=>{const m=r.enrichedResource.resource;return m.status=r.status,m}),this.preselectEntity(),this.loading=!1});break;case"member":this.membersManager.getCompleteRichMembersForGroup(this.firstEntityId,!1,this.allowedStatuses,null,[D.r.MEMBER_CORE_ID]).subscribe(i=>{this.entityValues=i,this.preselectEntity(),this.loading=!1})}break;case"user":this.facilitiesManagerService.getAssignedFacilitiesByUser(this.firstEntityId).subscribe(i=>{this.entityValues=i,this.preselectEntity(),this.loading=!1});break;case"resource":switch(this.secondEntity){case"member":this.resourcesManagerService.getAssignedMembersWithStatus(this.firstEntityId).subscribe(i=>{this.entityValues=i.map(r=>r.richMember),this.preselectEntity(),this.loading=!1});break;case"group":this.resourcesManagerService.getGroupAssignments(this.firstEntityId).subscribe(i=>{this.entityValues=i.map(r=>{const m=r.enrichedGroup.group;return m.status=r.status,m}),this.preselectEntity(),this.loading=!1})}break;case"facility":this.facilitiesManagerService.getAssignedUsers(this.firstEntityId).subscribe(i=>{this.entityValues=i,this.preselectEntity(),this.loading=!1})}}preselectEntity(){0!==this.entityValues.length&&this.findInitiallySelectedEntity()}findInitiallySelectedEntity(){let i=this.entityValues[0];const r=(0,a.vL)(this.entityKey());if(r)for(const m of this.entityValues)if(m.id===r[0]){i=m;break}this.specifySecondEntity(i)}entityKey(){return"group"===this.secondEntity?"groups":""}getAttributes(i){switch(this.innerLoading=!0,this.selection.clear(),this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.attributesManagerService.getMemberResourceAttributes(this.firstEntityId,i).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"group":this.attributesManagerService.getMemberGroupAttributes(this.firstEntityId,i).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.attributesManagerService.getGroupResourceAttributes(this.firstEntityId,i).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"member":this.attributesManagerService.getMemberGroupAttributes(i,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"user":this.attributesManagerService.getUserFacilityAttributes(this.firstEntityId,i).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"resource":switch(this.secondEntity){case"member":this.attributesManagerService.getMemberResourceAttributes(i,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"group":this.attributesManagerService.getGroupResourceAttributes(i,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"facility":this.attributesManagerService.getUserFacilityAttributes(i,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}}setMessages(i){this.noEntityMessage=`No ${i} assigned`}onSave(i){this.list.updateMapAttributes();const r=(0,a.kZ)();r.width="450px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:i,attributes:this.selection.selected},this.dialog.open(L.wA,r).afterClosed().subscribe(v=>{v&&(this.selection.clear(),this.getAttributes(i))})}onDelete(i){const r=(0,a.kZ)();r.width="450px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:i,attributes:this.selection.selected,theme:`${this.firstEntity}-theme`},this.dialog.open(b.k,r).afterClosed().subscribe(v=>{v&&(this.selection.clear(),this.getAttributes(i))})}onAdd(i){const r=(0,a.kZ)();r.width="1050px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:i,notEmptyAttributes:this.attributes,style:`${this.firstEntity}-theme`},this.dialog.open(n.n,r).afterClosed().subscribe(v=>{v&&(this.selection.clear(),this.getAttributes(i))})}specifySecondEntity(i){i&&(this.specificSecondEntity=i,this.getAttributes(this.specificSecondEntity.id))}applyFilter(i){this.filterValue=i}}return p.\u0275fac=function(i){return new(i||p)(t.Y36(e.H8),t.Y36(e.xk),t.Y36(e.IQ),t.Y36(e.ff),t.Y36(e.uq),t.Y36(I.uw))},p.\u0275cmp=t.Xpm({type:p,selectors:[["app-two-entity-attribute-page"]],viewQuery:function(i,r){if(1&i&&t.Gf(y,5),2&i){let m;t.iGM(m=t.CRH())&&(r.list=m.first)}},inputs:{firstEntityId:"firstEntityId",firstEntity:"firstEntity",secondEntity:"secondEntity"},decls:4,vars:3,consts:[[1,"mt-3"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"flex-row"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected",4,"ngIf"],[3,"resources","resourceSelected",4,"ngIf"],[3,"members","memberSelected",4,"ngIf"],[3,"facilities","facilitySelected",4,"ngIf"],[3,"users","userSelected",4,"ngIf"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"attributes","filterValue","selection",4,"ngIf"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected"],[3,"resources","resourceSelected"],[3,"members","memberSelected"],[3,"facilities","facilitySelected"],[3,"users","userSelected"],[3,"attributes","filterValue","selection"],["list",""]],template:function(i,r){1&i&&(t.TgZ(0,"div",0),t.YNc(1,S,1,0,"mat-spinner",1),t.YNc(2,F,2,1,"perun-web-apps-alert",2),t.YNc(3,K,20,19,"div",3),t.qZA()),2&i&&(t.xp6(1),t.Q6J("ngIf",r.loading),t.xp6(1),t.Q6J("ngIf",0===r.entityValues.length&&!r.loading),t.xp6(1),t.Q6J("ngIf",0!==r.entityValues.length))},dependencies:[P.O5,T.lW,Z.Ou,M.w,A.t,R.L,u.p,O.h,h.L,_,E,l.S,N.X$],styles:[".w-35[_ngcontent-%COMP%]{width:35%}"]}),p})()},71135:(J,U,s)=>{s.d(U,{L:()=>M});var e=s(94650),d=s(65412),C=s(94364),b=s(36895),a=s(97392),L=s(3238),n=s(34198),D=s(55660),t=s(89383),I=s(64597);const P=function(A){return[A]};function T(A,R){if(1&A&&(e.TgZ(0,"div",3)(1,"a",4),e.NdJ("auxclick",function(O){return O.preventDefault()}),e.ALo(2,"multiWordDataCy"),e.ALo(3,"translate"),e._UZ(4,"mat-icon",5),e._uU(5),e.ALo(6,"translate"),e.qZA()()),2&A){const u=R.$implicit;e.xp6(1),e.Gre("",u.style," item-itself"),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(14,P,u.url))("routerLink",u.url),e.uIk("data-cy",e.lcZ(2,8,e.lcZ(3,10,u.label))),e.xp6(3),e.Q6J("svgIcon",u.cssIcon),e.xp6(1),e.hij(" ",e.lcZ(6,12,u.label)," ")}}function Z(A,R){if(1&A&&(e.TgZ(0,"div",1),e.YNc(1,T,7,16,"div",2),e.qZA()),2&A){const u=e.oxw();e.xp6(1),e.Q6J("ngForOf",u.items)}}let M=(()=>{class A{constructor(u,O){this.dialog=u,this.route=O,this.size="large"}ngOnInit(){this.route.params.subscribe(u=>{this.voId=Number(u.voId)})}}return A.\u0275fac=function(u){return new(u||A)(e.Y36(d.uw),e.Y36(C.gz))},A.\u0275cmp=e.Xpm({type:A,selectors:[["perun-web-apps-menu-buttons-field"]],inputs:{items:"items",size:"size"},decls:1,vars:1,consts:[["class","items-container",4,"ngIf"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],[3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(u,O){1&u&&e.YNc(0,Z,2,1,"div",0),2&u&&e.Q6J("ngIf","small"===O.size)},dependencies:[b.sg,b.O5,C.yS,a.Hw,L.wG,n.Y,D.Q,t.X$,I.R],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;align-items:center;font-size:1.25rem}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}"]}),A})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/907.1e001fc658db11fa.js b/dist/apps/admin-gui/907.12b02d1e1fc3f8db.js similarity index 99% rename from dist/apps/admin-gui/907.1e001fc658db11fa.js rename to dist/apps/admin-gui/907.12b02d1e1fc3f8db.js index fab5507ff..636bf7da5 100644 --- a/dist/apps/admin-gui/907.1e001fc658db11fa.js +++ b/dist/apps/admin-gui/907.12b02d1e1fc3f8db.js @@ -1 +1 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[907],{15003:(te,j,o)=>{o.d(j,{G:()=>A});var r=o(94650);let A=(()=>{class n{constructor(){this.entityDetailChange=new r.vpe}reloadEntityDetail(){this.entityDetailChange.emit()}}return n.\u0275fac=function(R){return new(R||n)},n.\u0275prov=r.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})()},76023:(te,j,o)=>{o.d(j,{y:()=>H});var r=o(61744),A=o(10036),n=o(81591),m=o(94650),R=o(94364),s=o(36895),t=o(51572),e=o(96214),Q=o(38383),K=o(64901),a=o(89383);function w(G,F){1&G&&m._UZ(0,"mat-spinner",5)}const y=function(){return["id","fullName"]};function U(G,F){if(1&G){const E=m.EpF();m.TgZ(0,"perun-web-apps-members-list",6),m.NdJ("updateTable",function(){m.CHM(E);const P=m.oxw();return m.KtG(P.refreshTable())}),m.qZA()}if(2&G){const E=m.oxw();m.Q6J("displayedColumns",m.DdM(5,y))("disableRouting",!E.routeAuth)("filter",E.filterValue)("members",E.members)("tableId",E.tableId)}}let H=(()=>{class G{constructor(E,I,P,L){this.route=E,this.resourceService=I,this.authResolver=P,this.entityStorageService=L,this.loading=!1,this.filterValue="",this.tableId=A.iQ}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resource.id).subscribe(E=>{this.members=E,this.setAuthRights(),this.loading=!1})}setAuthRights(){0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.members[0]]))}applyFilter(E){this.filterValue=E}}return G.\u0275fac=function(E){return new(E||G)(m.Y36(R.gz),m.Y36(r.xk),m.Y36(n.x4),m.Y36(n.fb))},G.\u0275cmp=m.Xpm({type:G,selectors:[["app-resource-assigned-members"]],decls:7,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable"]],template:function(E,I){1&E&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return I.refreshTable()}),m.qZA(),m.TgZ(4,"perun-web-apps-debounce-filter",2),m.NdJ("filter",function(L){return I.applyFilter(L)}),m.qZA(),m.YNc(5,w,1,0,"mat-spinner",3),m.YNc(6,U,1,6,"perun-web-apps-members-list",4)),2&E&&(m.xp6(1),m.Oqu(m.lcZ(2,4,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),m.xp6(3),m.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_MEMBERS.FILTER"),m.xp6(1),m.Q6J("ngIf",I.loading),m.xp6(1),m.Q6J("ngIf",!I.loading))},dependencies:[s.O5,t.Ou,e.t,Q.O,K.P,a.X$]}),G})()},49546:(te,j,o)=>{o.d(j,{D:()=>re});var r=o(61744),A=o(10036),n=o(95017),m=o(9244),R=o(65412),s=o(81591),t=o(94650),e=o(89383),Q=o(36895),K=o(4859),a=o(3848),w=o(51572),y=o(64901),U=o(90439),H=o(60205);function G(M,S){1&M&&t._UZ(0,"mat-spinner",6)}const F=function(){return["id","name","enabled","description"]};function E(M,S){if(1&M&&t._UZ(0,"app-services-list",16),2&M){const p=t.oxw(2);t.Q6J("disableRouting",!0)("services",p.filteredServices)("displayedColumns",t.DdM(5,F))("selection",p.selection)("tableId",p.tableId)}}const I=function(){return["select","id","name","enabled","description"]};function P(M,S){if(1&M){const p=t.EpF();t.TgZ(0,"div",7)(1,"mat-tab-group",8),t.NdJ("selectedTabChange",function(){t.CHM(p);const u=t.oxw();return t.KtG(u.tabChanged())}),t.TgZ(2,"mat-tab",9),t.ALo(3,"translate"),t.TgZ(4,"div",10)(5,"perun-web-apps-debounce-filter",11),t.NdJ("filter",function(u){t.CHM(p);const v=t.oxw();return t.KtG(v.applyFilter(u))}),t.ALo(6,"translate"),t.qZA()(),t._UZ(7,"app-services-list",12),t.qZA(),t.TgZ(8,"mat-tab",9),t.ALo(9,"translate"),t.TgZ(10,"div",13)(11,"perun-web-apps-service-package-search-select",14),t.NdJ("packageSelected",function(u){t.CHM(p);const v=t.oxw();return t.KtG(v.servicePackageSelected(u))}),t.qZA()(),t.YNc(12,E,1,6,"app-services-list",15),t.qZA()()()}if(2&M){const p=t.oxw();t.xp6(2),t.s9C("label",t.lcZ(3,12,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_SERVICE")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,14,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.FILTER_DESCRIPTION")),t.xp6(2),t.Q6J("services",p.unAssignedServices)("disableRouting",!0)("displayedColumns",t.DdM(18,I))("filterValue",p.filterValue)("selection",p.selection)("tableId",p.tableId),t.xp6(1),t.s9C("label",t.lcZ(9,16,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_PACKAGE")),t.xp6(3),t.Q6J("selectedPackage",p.selectedPackage)("servicePackages",p.servicePackages),t.xp6(1),t.Q6J("ngIf",-1!==p.selectedPackage.id)}}let L=(()=>{class M{constructor(p,_,u,v,f,D){this.dialogRef=p,this.data=_,this.notificator=u,this.translate=v,this.resourceManager=f,this.servicesManager=D,this.loading=!1,this.unAssignedServices=[],this.filteredServices=[],this.servicePackages=[],this.selectedPackage={name:"Not selected",description:"",id:-1,beanName:"ServicePackage"},this.selection=new n.Ov(!0,[]),this.tableId=A.DR,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(p=>{this.servicesManager.getServices().subscribe(_=>{this.servicesManager.getServicesPackages().subscribe(u=>{this.servicePackages.push(this.selectedPackage),this.servicePackages=this.servicePackages.concat(u),this.unAssignedServices=_;for(const v of p)for(const f of _)v.id===f.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(f),1);this.loading=!1})})})}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0,-1!==this.selectedPackage.id?this.addServicePackage():this.addServices()}applyFilter(p){this.filterValue=p}servicePackageSelected(p){this.selectedPackage=p,-1!==p.id?this.servicesManager.getServicesFromServicesPackage(p.id).subscribe(_=>{this.filteredServices=_}):this.filteredServices=[]}tabChanged(){this.selection.clear(),this.filterValue="",this.selectedPackage=this.servicePackages[0]}addServicePackage(){this.resourceManager.assignServicesPackage(this.data.resourceId,this.selectedPackage.id).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.PACKAGE_SUCCESS_MESSAGE").subscribe(p=>{this.notificator.showSuccess(p),0!==this.selection.selected.length?this.addServices():this.dialogRef.close(!0)})},()=>this.loading=!1)}addServices(){const p=[];for(const _ of this.selection.selected)p.push(_.id);this.resourceManager.assignServices(this.data.resourceId,p).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SERVICE_SUCCESS_MESSAGE").subscribe(_=>{this.notificator.showSuccess(_),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return M.\u0275fac=function(p){return new(p||M)(t.Y36(R.so),t.Y36(R.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(r.xk),t.Y36(r.KK))},M.\u0275cmp=t.Xpm({type:M,selectors:[["app-perun-web-apps-assign-service-to-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"selectedTabChange"],[3,"label"],[1,"mt-2"],[3,"placeholder","filter"],[3,"services","disableRouting","displayedColumns","filterValue","selection","tableId"],[1,"mt-3"],[3,"selectedPackage","servicePackages","packageSelected"],[3,"disableRouting","services","displayedColumns","selection","tableId",4,"ngIf"],[3,"disableRouting","services","displayedColumns","selection","tableId"]],template:function(p,_){1&p&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,G,1,0,"mat-spinner",1),t.YNc(5,P,13,19,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return _.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return _.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&p&&(t.Tol(_.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",_.loading),t.xp6(1),t.Q6J("ngIf",!_.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===_.selection.selected.length&&-1===_.selectedPackage.id||_.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE."+(-1===_.selectedPackage.id?"ADD_SERVICES":"ADD_PACKAGE"))," "))},dependencies:[Q.O5,K.lW,a.SP,a.uX,R.uh,R.xY,R.H8,w.Ou,y.P,U.F,H.Q,e.X$]}),M})();var V=o(30671);function W(M,S){1&M&&t._UZ(0,"mat-spinner",6)}function oe(M,S){1&M&&t._UZ(0,"th",15)}function ne(M,S){if(1&M&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&M){const p=S.$implicit;t.xp6(1),t.Oqu(p.name)}}function B(M,S){1&M&&t._UZ(0,"tr",17)}function $(M,S){1&M&&t._UZ(0,"tr",18)}function b(M,S){if(1&M&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,oe,1,0,"th",11),t.YNc(10,ne,2,1,"td",12),t.BQk(),t.YNc(11,B,1,0,"tr",13),t.YNc(12,$,1,0,"tr",14),t.qZA()()),2&M){const p=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.ASK")," "),t.xp6(2),t.Q6J("dataSource",p.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",p.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",p.displayedColumns)}}let h=(()=>{class M{constructor(p,_,u,v,f){this.dialogRef=p,this.data=_,this.notificator=u,this.translate=v,this.resourcesManager=f,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new V.by(this.data.services)}onSubmit(){this.loading=!0;const p=[];for(const _ of this.data.services)p.push(_.id);this.resourcesManager.removeServices(this.data.resourceId,p).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(_=>{this.notificator.showSuccess(_),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return M.\u0275fac=function(p){return new(p||M)(t.Y36(R.so),t.Y36(R.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(r.xk))},M.\u0275cmp=t.Xpm({type:M,selectors:[["app-perun-web-apps-remove-service-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(p,_){1&p&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,W,1,0,"mat-spinner",1),t.YNc(5,b,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return _.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return _.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&p&&(t.Tol(_.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",_.loading),t.xp6(1),t.Q6J("ngIf",!_.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",_.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},dependencies:[Q.O5,K.lW,V.BZ,V.fO,V.as,V.w1,V.Dz,V.nj,V.ge,V.ev,V.XQ,V.Gk,R.uh,R.xY,R.H8,w.Ou,e.X$]}),M})();var J=o(94364),C=o(96214),Y=o(7434);function k(M,S){if(1&M){const p=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(p);const u=t.oxw();return t.KtG(u.addService())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&M&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_SERVICES.ADD_SERVICE"),"\n"))}function X(M,S){if(1&M){const p=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(p);const u=t.oxw();return t.KtG(u.removeServices())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&M){const p=t.oxw();t.Q6J("disabled",0===p.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"RESOURCE_DETAIL.ASSIGNED_SERVICES.REMOVE_SERVICE"),"\n")}}function se(M,S){1&M&&t._UZ(0,"mat-spinner",9)}function ae(M,S){if(1&M&&t._UZ(0,"app-services-list",10),2&M){const p=t.oxw();t.Q6J("disableRouting",!p.serviceRoutingAuth)("selection",p.selected)("displayedColumns",p.displayedColumns)("filterValue",p.filterValue)("services",p.assignedServices)("tableId",p.tableId)}}let re=(()=>{class M{constructor(p,_,u,v,f){this.route=p,this.resourcesManager=_,this.dialog=u,this.guiAuthResolver=v,this.entityStorageService=f,this.assignedServices=[],this.selected=new n.Ov(!0,[]),this.tableId=A.uC,this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.getDataForAuthorization(),this.loadAllServices()}loadAllServices(){this.loading=!0,this.resourcesManager.getAssignedServicesToResource(this.resource.id).subscribe(p=>{this.assignedServices=p,this.selected.clear(),this.loading=!1})}addService(){const p=(0,m.kZ)();p.width="800px",p.data={theme:"resource-theme",resourceId:this.resource.id},this.dialog.open(L,p).afterClosed().subscribe(u=>{u&&this.loadAllServices()})}removeServices(){const p=(0,m.kZ)();p.width="500px",p.data={theme:"resource-theme",resourceId:this.resource.id,services:this.selected.selected},this.dialog.open(h,p).afterClosed().subscribe(u=>{u&&this.loadAllServices()})}applyFilter(p){this.filterValue=p}getDataForAuthorization(){this.assignServiceAuth=this.guiAuthResolver.isAuthorized("assignServices_Resource_List_policy",[this.resource]),this.removeServiceAuth=this.guiAuthResolver.isAuthorized("removeServices_Resource_List_policy",[this.resource]),this.displayedColumns=this.removeServiceAuth?["select","id","name","enabled","script","description"]:["id","name","enabled","script","description"],this.serviceRoutingAuth=this.guiAuthResolver.isPerunAdminOrObserver()}}return M.\u0275fac=function(p){return new(p||M)(t.Y36(J.gz),t.Y36(r.xk),t.Y36(R.uw),t.Y36(s.x4),t.Y36(s.fb))},M.\u0275cmp=t.Xpm({type:M,selectors:[["app-perun-web-apps-resource-assigned-services"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","displayedColumns","filterValue","services","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","displayedColumns","filterValue","services","tableId"]],template:function(p,_){1&p&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return _.loadAllServices()}),t.qZA(),t.YNc(4,k,3,3,"button",2),t.YNc(5,X,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(v){return _.applyFilter(v)}),t.qZA(),t.YNc(7,se,1,0,"mat-spinner",5),t.YNc(8,ae,1,6,"app-services-list",6)),2&p&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),t.xp6(3),t.Q6J("ngIf",_.assignServiceAuth),t.xp6(1),t.Q6J("ngIf",_.removeServiceAuth),t.xp6(1),t.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),t.xp6(1),t.Q6J("ngIf",_.loading),t.xp6(1),t.Q6J("ngIf",!_.loading))},dependencies:[Q.O5,K.lW,w.Ou,H.Q,C.t,Y.L,e.X$]}),M})()},92090:(te,j,o)=>{o.d(j,{X:()=>F});var r=o(81591),A=o(61744),n=o(94650),m=o(36895),R=o(3848),s=o(19191),t=o(12651),e=o(89383);function Q(E,I){1&E&&(n._uU(0),n.ALo(1,"translate")),2&E&&n.hij(" ",n.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function K(E,I){if(1&E&&n._UZ(0,"app-one-entity-attribute-page",4),2&E){const P=n.oxw();n.Q6J("entityId",P.resource.id)("entity","resource")}}function a(E,I){1&E&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&E&&n.AsE(" ",n.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",n.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function w(E,I){if(1&E&&n._UZ(0,"app-two-entity-attribute-page",5),2&E){const P=n.oxw(2);n.Q6J("firstEntity","resource")("firstEntityId",P.resource.id)("secondEntity","member")}}function y(E,I){1&E&&(n.TgZ(0,"mat-tab"),n.YNc(1,a,3,6,"ng-template",1),n.YNc(2,w,1,3,"ng-template",2),n.qZA())}function U(E,I){1&E&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&E&&n.AsE(" ",n.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",n.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function H(E,I){if(1&E&&n._UZ(0,"app-two-entity-attribute-page",5),2&E){const P=n.oxw(2);n.Q6J("firstEntity","resource")("firstEntityId",P.resource.id)("secondEntity","group")}}function G(E,I){1&E&&(n.TgZ(0,"mat-tab"),n.YNc(1,U,3,6,"ng-template",1),n.YNc(2,H,1,3,"ng-template",2),n.qZA())}let F=(()=>{class E{constructor(P,L,V){this.authResolver=P,this.resourceManager=L,this.entityStorageService=V}ngOnInit(){this.resource=this.entityStorageService.getEntity(),this.resourceGroupAttAuth=this.authResolver.isAuthorized("getGroupAssignments_Resource_policy",[this.resource]),this.resourceMemberAttAuth=this.authResolver.isAuthorized("getAssignedMembersWithStatus_Resource_policy",[this.resource])}}return E.\u0275fac=function(P){return new(P||E)(n.Y36(r.x4),n.Y36(A.xk),n.Y36(r.fb))},E.\u0275cmp=n.Xpm({type:E,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(P,L){2&P&&n.ekj("router-component",L.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(P,L){1&P&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-tab-group")(5,"mat-tab"),n.YNc(6,Q,2,3,"ng-template",1),n.YNc(7,K,1,2,"ng-template",2),n.qZA(),n.YNc(8,y,3,0,"mat-tab",3),n.YNc(9,G,3,0,"mat-tab",3),n.qZA()()),2&P&&(n.xp6(2),n.Oqu(n.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),n.xp6(6),n.Q6J("ngIf",L.resourceMemberAttAuth),n.xp6(1),n.Q6J("ngIf",L.resourceGroupAttAuth))},dependencies:[m.O5,R.SP,R.uD,R.uX,R.Vc,s.Y,t.t,e.X$]}),E})()},98918:(te,j,o)=>{o.d(j,{b:()=>M});var r=o(36769),A=o(69024),n=o(61744),m=o(9244),R=o(81591),s=o(19516),t=o(21029),e=o(533),Q=o(22158),K=o(82722),a=o(94650),w=o(94364),y=o(77968),U=o(65412),H=o(15003),G=o(36895),F=o(97392),E=o(4859),I=o(51572),P=o(10266),L=o(61283),V=o(4235),W=o(34198),oe=o(55660),ne=o(89383);function B(S,p){1&S&&a._UZ(0,"mat-spinner",3)}function $(S,p){if(1&S){const _=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){a.CHM(_);const v=a.oxw(2);return a.KtG(v.editResource())}),a.TgZ(1,"mat-icon"),a._uU(2,"edit"),a.qZA()()}}function b(S,p){if(1&S){const _=a.EpF();a.TgZ(0,"button",15),a.NdJ("click",function(){a.CHM(_);const v=a.oxw(2);return a.KtG(v.deleteResource())}),a.TgZ(1,"mat-icon"),a._uU(2,"delete_forever"),a.qZA()()}}const h=function(S){return["/organizations",S]};function J(S,p){if(1&S&&(a.TgZ(0,"a",8),a.NdJ("auxclick",function(u){return u.preventDefault()}),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.Q6J("perunWebAppsMiddleClickRouterLink",a.VKq(4,h,_.resource.vo.id.toString()))("routerLink",a.VKq(6,h,_.resource.vo.id)),a.uIk("data-cy",_.resource.vo.name),a.xp6(1),a.Oqu(_.resource.vo.name)}}function C(S,p){if(1&S&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.xp6(1),a.hij(" ",_.resource.vo.name," ")}}const Y=function(S){return["/facilities",S]};function k(S,p){if(1&S&&(a.TgZ(0,"a",8),a.NdJ("auxclick",function(u){return u.preventDefault()}),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.Q6J("perunWebAppsMiddleClickRouterLink",a.VKq(4,Y,_.resource.facilityId.toString()))("routerLink",a.VKq(6,Y,_.resource.facilityId)),a.uIk("data-cy",_.resource.facility.name),a.xp6(1),a.Oqu(_.resource.facility.name)}}function X(S,p){if(1&S&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.xp6(1),a.hij(" ",_.resource.facility.name," ")}}const se=function(){return{color:"black"}},ae=function(S){return[S]};function re(S,p){if(1&S&&(a.TgZ(0,"div")(1,"div",4),a._UZ(2,"mat-icon",5),a.ALo(3,"translate"),a.TgZ(4,"div",6)(5,"div",7)(6,"a",8),a.NdJ("auxclick",function(u){return u.preventDefault()}),a._uU(7),a.qZA(),a.TgZ(8,"span",9),a._uU(9),a.qZA(),a.YNc(10,$,3,0,"button",10),a.YNc(11,b,3,0,"button",11),a.qZA(),a.TgZ(12,"div"),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.TgZ(15,"span",12),a._uU(16),a.ALo(17,"translate"),a.ALo(18,"translate"),a.YNc(19,J,2,8,"a",13),a.YNc(20,C,2,1,"span",2),a._uU(21),a.ALo(22,"translate"),a.YNc(23,k,2,8,"a",13),a.YNc(24,X,2,1,"span",2),a._uU(25),a.ALo(26,"translate"),a.qZA()()(),a._UZ(27,"app-animated-router-outlet"),a.qZA()),2&S){const _=a.oxw();a.xp6(2),a.s9C("matTooltip",a.lcZ(3,21,"RESOURCE_DETAIL.ENTITY")),a.Q6J("ngStyle",a.DdM(33,se)),a.xp6(4),a.Q6J("perunWebAppsMiddleClickRouterLink",a.VKq(34,ae,_.baseUrl))("routerLink",a.VKq(36,ae,_.baseUrl)),a.xp6(1),a.hij(" ",_.resource.name," "),a.xp6(2),a.hij(" \xa0#",_.resource.id," "),a.xp6(1),a.Q6J("ngIf",_.editResourceAuth),a.xp6(1),a.Q6J("ngIf",_.deleteAuth),a.xp6(2),a.AsE("",a.lcZ(14,23,"RESOURCE_DETAIL.UUID"),": ",_.resource.uuid,""),a.xp6(3),a.AsE(" ",a.lcZ(17,25,"RESOURCE_DETAIL.ENTITY"),", ",a.lcZ(18,27,"RESOURCE_DETAIL.VO"),": "),a.xp6(3),a.Q6J("ngIf",_.voLinkAuth),a.xp6(1),a.Q6J("ngIf",!_.voLinkAuth),a.xp6(1),a.AsE(" #",_.resource.voId,", ",a.lcZ(22,29,"RESOURCE_DETAIL.FACILITY"),": "),a.xp6(2),a.Q6J("ngIf",_.facilityLinkAuth),a.xp6(1),a.Q6J("ngIf",!_.facilityLinkAuth),a.xp6(1),a.lnq(" #",_.resource.facilityId,", ",a.lcZ(26,31,"RESOURCE_DETAIL.DESCRIPTION"),": ",_.resource.description," ")}}let M=(()=>{class S extends((0,Q.T)()){constructor(_,u,v,f,D,g,N,c,T,Z,q){super(),this.route=_,this.facilityManager=u,this.vosManagerService=v,this.resourcesManager=f,this.sideMenuService=D,this.sideMenuItemService=g,this.dialog=N,this.guiAuthResolver=c,this.router=T,this.entityStorageService=Z,this.reloadEntityDetail=q,this.underVoUrl=!1,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,K.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(_=>{const u=Number(_.resourceId);this.resourcesManager.getRichResourceById(u).subscribe(v=>{this.resource=v,this.entityStorageService.setEntity({id:v.id,voId:v.voId,facilityId:v.facilityId,beanName:"Resource"}),this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new s.r5).transform(v,!1),this.facilityManager.getFacilityById(v.facilityId).subscribe(f=>{this.facility=f,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new s.r5).transform(v,!0),this.vosManagerService.getVoById(v.voId).subscribe(f=>{this.vo=f,this.underVoUrl=!0,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)),(0,m.sF)("resources",this.resource)})})}setMenuItems(){let _;const u=this.sideMenuItemService.parseResource(this.resource,this.underVoUrl);this.underVoUrl?(_=this.sideMenuItemService.parseVo(this.vo),this.sideMenuService.setAccessMenuItems([_,u])):(_=this.sideMenuItemService.parseFacility(this.facility),this.sideMenuService.setFacilityMenuItems([_,u]))}editResource(){let _;this.resourcesManager.getResourceById(this.resource.id).subscribe(u=>{_=u;const v=(0,m.kZ)();v.width="450px",v.data={theme:"resource-theme",resource:_,dialogType:t.Eg.RESOURCE},this.dialog.open(t.rd,v).afterClosed().subscribe(D=>{D&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(g=>{this.resource=g,this.setMenuItems()})})})}deleteResource(){const _=(0,m.kZ)();_.width="500px",_.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(e.f,_).afterClosed().subscribe(v=>{v&&this.router.navigate(["../"],{relativeTo:this.route,queryParamsHandling:"preserve"})})}setAuth(){this.facilityLinkAuth=this.guiAuthResolver.isAuthorized("getFacilityById_int_policy",[this.resource]),this.editResourceAuth=this.guiAuthResolver.isAuthorized("updateResource_Resource_policy",[this.resource]),this.voLinkAuth=this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.resource]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteResource_Resource_policy",[this.resource])}}return S.\u0275fac=function(_){return new(_||S)(a.Y36(w.gz),a.Y36(n.IQ),a.Y36(n.YF),a.Y36(n.xk),a.Y36(y.D),a.Y36(A.V),a.Y36(U.uw),a.Y36(R.x4),a.Y36(w.F0),a.Y36(R.fb),a.Y36(H.G))},S.\u0275cmp=a.Xpm({type:S,selectors:[["app-resource-detail-page"]],features:[a.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","resource-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-resource-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"resource-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],["aria-label","Edit resource","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["class","resource-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick",4,"ngIf"],["aria-label","Edit resource","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"]],template:function(_,u){1&_&&(a.TgZ(0,"div",0),a._UZ(1,"perun-web-apps-back-button"),a.YNc(2,B,1,0,"mat-spinner",1),a.YNc(3,re,28,38,"div",2),a.qZA()),2&_&&(a.xp6(2),a.Q6J("ngIf",u.loading),a.xp6(1),a.Q6J("ngIf",!u.loading&&void 0!==u.resource))},dependencies:[G.O5,G.PC,w.yS,F.Hw,E.lW,I.Ou,P.gM,L.A,V.W,W.Y,oe.Q,ne.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[r.Ji]}}),S})()},258:(te,j,o)=>{o.d(j,{K:()=>D});var r=o(61744),A=o(95017),n=o(65412),m=o(30671),R=o(81591),s=o(94650),t=o(89383),e=o(36895),Q=o(4859),K=o(51572);function a(g,N){1&g&&s._UZ(0,"mat-spinner",6)}function w(g,N){1&g&&s._UZ(0,"th",15)}function y(g,N){if(1&g&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&g){const c=N.$implicit;s.xp6(1),s.Oqu(c.name)}}function U(g,N){1&g&&s._UZ(0,"tr",17)}function H(g,N){1&g&&s._UZ(0,"tr",18)}function G(g,N){if(1&g&&(s.TgZ(0,"div",7)(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",8),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",9),s.ynx(8,10),s.YNc(9,w,1,0,"th",11),s.YNc(10,y,2,1,"td",12),s.BQk(),s.YNc(11,U,1,0,"tr",13),s.YNc(12,H,1,0,"tr",14),s.qZA()()),2&g){const c=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),s.xp6(2),s.Q6J("dataSource",c.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",c.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",c.displayedColumns)}}let F=(()=>{class g{constructor(c,T,Z,q,z){this.dialogRef=c,this.data=T,this.notificator=Z,this.translate=q,this.resourceManager=z,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new m.by(this.data.groups)}onCancel(){this.dialogRef.close()}onSubmit(){const c=[];for(const T of this.data.groups)c.push(T.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(c,this.data.resourceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(T=>{this.notificator.showSuccess(T),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return g.\u0275fac=function(c){return new(c||g)(s.Y36(n.so),s.Y36(n.WI),s.Y36(R.V6),s.Y36(t.sK),s.Y36(r.xk))},g.\u0275cmp=s.Xpm({type:g,selectors:[["app-perun-web-apps-remove-group-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","","data-cy","delete-button",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(c,T){1&c&&(s.TgZ(0,"div")(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,a,1,0,"mat-spinner",1),s.YNc(5,G,13,9,"div",2),s.TgZ(6,"div",3)(7,"button",4),s.NdJ("click",function(){return T.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return T.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA()()()),2&c&&(s.Tol(T.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",T.loading),s.xp6(1),s.Q6J("ngIf",!T.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",T.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},dependencies:[e.O5,Q.lW,m.BZ,m.fO,m.as,m.w1,m.Dz,m.nj,m.ge,m.ev,m.XQ,m.Gk,n.uh,n.xY,n.H8,K.Ou,t.X$]}),g})();var E=o(10036),I=o(24006),P=o(90455),L=o(86257),V=o(25788),W=o(64901);const oe=["stepper"];function ne(g,N){1&g&&s._UZ(0,"mat-spinner",4)}function B(g,N){1&g&&(s._uU(0),s.ALo(1,"translate")),2&g&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.GROUPS"))}function $(g,N){1&g&&(s._uU(0),s.ALo(1,"translate")),2&g&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.OPTIONS"))}const b=function(){return["select","id","name","description"]};function h(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),s.YNc(4,B,2,3,"ng-template",9),s.TgZ(5,"perun-web-apps-debounce-filter",10),s.NdJ("filter",function(Z){s.CHM(c);const q=s.oxw();return s.KtG(q.applyFilter(Z))}),s.ALo(6,"translate"),s.qZA(),s._UZ(7,"perun-web-apps-groups-list",11),s.qZA(),s.TgZ(8,"mat-step"),s.YNc(9,$,2,3,"ng-template",9),s.TgZ(10,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.changeSubgroupsMessage())})("ngModelChange",function(Z){s.CHM(c);const q=s.oxw();return s.KtG(q.autoAssignSubgroups=Z)}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"div",13),s._UZ(14,"i",14),s.qZA(),s.TgZ(15,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.changeInactiveMessage())})("ngModelChange",function(Z){s.CHM(c);const q=s.oxw();return s.KtG(q.asActive=Z)}),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"div",13),s._uU(19),s.qZA(),s.TgZ(20,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.changeAsyncMessage())})("ngModelChange",function(Z){s.CHM(c);const q=s.oxw();return s.KtG(q.async=Z)}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.TgZ(23,"div",13),s._uU(24),s.qZA()()()()}if(2&g){const c=s.oxw();s.xp6(1),s.Q6J("linear",!0),s.xp6(2),s.Q6J("completed",0!==c.selection.selected.length&&c.canAddGroups()),s.xp6(2),s.s9C("placeholder",s.lcZ(6,19,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),s.xp6(2),s.Q6J("disableMembers",!1)("groups",c.unAssignedGroups)("selection",c.selection)("disableRouting",!0)("displayedColumns",s.DdM(27,b))("filter",c.filterValue)("tableId",c.tableId),s.xp6(3),s.Q6J("ngModel",c.autoAssignSubgroups),s.xp6(1),s.hij(" ",s.lcZ(12,21,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS")," "),s.xp6(3),s.Q6J("innerHTML",c.autoAssignHint,s.oJD),s.xp6(1),s.Q6J("ngModel",c.asActive),s.xp6(1),s.hij(" ",s.lcZ(17,23,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AS_ACTIVE")," "),s.xp6(3),s.hij(" ",c.asActiveHint," "),s.xp6(1),s.Q6J("ngModel",c.async),s.xp6(1),s.hij(" ",s.lcZ(22,25,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),s.xp6(3),s.hij(" ",c.asyncHint," ")}}function J(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"button",20),s.NdJ("click",function(){s.CHM(c);const Z=s.oxw(2);return s.KtG(Z.stepperPrevious())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&g&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.BACK")," "))}function C(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){s.CHM(c);const Z=s.oxw(2);return s.KtG(Z.stepperNext())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&g){const c=s.oxw(2);s.ekj("ml-2",void 0!==c.stepper&&0!==c.stepper.selectedIndex)("ml-auto",!(void 0!==c.stepper&&0!==c.stepper.selectedIndex)),s.Q6J("disabled",0===c.selection.selected.length||!c.canAddGroups()),s.xp6(1),s.hij(" ",s.lcZ(2,6,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.NEXT")," ")}}function Y(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"button",22),s.NdJ("click",function(){s.CHM(c);const Z=s.oxw(2);return s.KtG(Z.onAdd())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&g&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))}function k(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"div",15)(1,"button",16),s.NdJ("click",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.onCancel())}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,J,3,3,"button",17),s.YNc(5,C,3,8,"button",18),s.YNc(6,Y,3,3,"button",19),s.qZA()}if(2&g){const c=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,4,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),s.xp6(2),s.Q6J("ngIf",void 0!==c.stepper&&0!==c.stepper.selectedIndex),s.xp6(1),s.Q6J("ngIf",void 0!==c.stepper&&c.stepper.selectedIndex!==c.stepper._steps.length-1),s.xp6(1),s.Q6J("ngIf",void 0!==c.stepper&&c.stepper.selectedIndex===c.stepper._steps.length-1)}}let X=(()=>{class g{constructor(c,T,Z,q,z,ie,pe,ge){this.dialogRef=c,this.data=T,this.notificator=Z,this.translate=q,this.resourceManager=z,this.groupService=ie,this.guiAuthResolver=pe,this.cd=ge,this.loading=!1,this.unAssignedGroups=this.data.onlyAutoAssignedGroups,this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.selection=new A.Ov(!0,[]),this.filterValue="",this.tableId=E.cL}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resource=this.data.resource,this.autoAssignHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT"),this.resourceManager.getAssignedGroups(this.resource.id).subscribe(c=>{this.groupService.getAllGroups(this.resource.voId).subscribe(T=>{for(const Z of T)-1===c.findIndex(q=>q.id===Z.id)&&this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,Z])&&this.unAssignedGroups.push(Z);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0;const c=[];for(const T of this.selection.selected)c.push(T.id);this.resourceManager.assignGroupsToResource(c,this.resource.id,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(T=>{this.notificator.showSuccess(T),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(c){this.filterValue=c}canAddGroups(){let c=!0;return this.selection.selected.forEach(T=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,T])||(c=!1)}),c}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return g.\u0275fac=function(c){return new(c||g)(s.Y36(n.so),s.Y36(n.WI),s.Y36(R.V6),s.Y36(t.sK),s.Y36(r.xk),s.Y36(r.ff),s.Y36(R.x4),s.Y36(s.sBO))},g.\u0275cmp=s.Xpm({type:g,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],viewQuery:function(c,T){if(1&c&&s.Gf(oe,5),2&c){let Z;s.iGM(Z=s.CRH())&&(T.stepper=Z.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","","type","button","data-cy","next-button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button","data-cy","assign-button",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button","data-cy","next-button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button","data-cy","assign-button",1,"ml-2",3,"click"]],template:function(c,T){1&c&&(s.TgZ(0,"div")(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,ne,1,0,"mat-spinner",1),s.YNc(5,h,25,28,"div",2),s.YNc(6,k,7,6,"div",3),s.qZA()),2&c&&(s.Tol(T.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",T.loading),s.xp6(1),s.Q6J("ngIf",!T.loading),s.xp6(1),s.Q6J("ngIf",!T.loading&&T.stepper))},dependencies:[e.O5,I.JJ,I.On,Q.lW,n.uh,n.xY,n.H8,K.Ou,P.Rr,L.C0,L.VY,L.Vq,V.W,W.P,t.X$],styles:[".slide-text[_ngcontent-%COMP%]{font-size:1.1rem}"]}),g})();var se=o(9244),ae=o(64080),re=o(94364),M=o(10266),S=o(96214);function p(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.addGroup())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&g&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function _(g,N){1&g&&s._UZ(0,"mat-spinner",9)}const u=function(g){return[g]},v=function(){return["select","id","indirectGroupAssigment","name","status","description"]};function f(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"perun-web-apps-groups-list",10),s.NdJ("refreshTable",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.loadAllGroups())}),s.qZA()}if(2&g){const c=s.oxw();s.Q6J("disableGroups",!0)("groupsToDisableCheckbox",c.groupsToDisable)("disableMembers",!1)("groups",c.assignedGroups)("disableRouting",!!c.assignedGroups[0]&&!c.guiAuthResolver.isAuthorized("getGroupById_int_policy",s.VKq(10,u,c.assignedGroups[0])))("displayedColumns",s.DdM(12,v))("filter",c.filteredValue)("resourceId",c.resource.id)("selection",c.selected)("tableId",c.tableId)}}let D=(()=>{class g{constructor(c,T,Z,q,z){this.route=c,this.resourcesManager=T,this.dialog=Z,this.guiAuthResolver=q,this.entityStorageService=z,this.assignedGroups=[],this.selected=new A.Ov(!0,[]),this.filteredValue="",this.tableId=E.Ad}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.loadAllGroups()}loadAllGroups(){this.loading=!0,this.resourcesManager.getGroupAssignments(this.resource.id,[ae.r.GROUP_SYNC_ENABLED]).subscribe(c=>{this.assignedGroups=c.map(z=>{const ie=z.enrichedGroup.group;return ie.status=z.status,ie.failureCause=z.failureCause,ie.sourceGroupId=z.sourceGroupId,ie});const T=this.assignedGroups.map(z=>z.id),Z=this.assignedGroups.filter((z,ie)=>T.indexOf(z.id)===ie),q=this.assignedGroups.filter((z,ie)=>{const pe=T.indexOf(z.id);return pe!==ie&&(null===z.sourceGroupId||null===this.assignedGroups[pe].sourceGroupId)}).map(z=>z.id);Z.forEach(z=>{q.includes(z.id)&&(z.moreTypesOfAssignment=!0)}),this.assignedGroups=Z,this.groupsToDisable=new Set(this.assignedGroups.filter(z=>!!z.sourceGroupId&&!z.moreTypesOfAssignment).map(z=>z.id)),this.selected.clear(),this.loading=!1})}addGroup(){const c=(0,se.kZ)();c.width="1000px",c.data={theme:"resource-theme",resource:this.resource,onlyAutoAssignedGroups:this.assignedGroups.filter(Z=>this.groupsToDisable.has(Z.id))},this.dialog.open(X,c).afterClosed().subscribe(Z=>{Z&&this.loadAllGroups()})}removeGroups(){const c=(0,se.kZ)();c.width="500px",c.data={resourceId:this.resource.id,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(F,c).afterClosed().subscribe(Z=>{Z&&this.loadAllGroups()})}canRemoveGroups(){let c=!0;return this.selected.selected.forEach(T=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,T])||(c=!1)}),c}applyFilter(c){this.filteredValue=c}}return g.\u0275fac=function(c){return new(c||g)(s.Y36(re.gz),s.Y36(r.xk),s.Y36(n.uw),s.Y36(R.x4),s.Y36(R.fb))},g.\u0275cmp=s.Xpm({type:g,selectors:[["app-perun-web-apps-resource-groups"]],decls:13,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","mat-flat-button","","data-cy","add-group-button",3,"click",4,"ngIf"],["color","warn","mat-flat-button","","data-cy","remove-group-button",1,"ml-2","mr-2",3,"disabled","click"],[3,"matTooltipDisabled","matTooltip"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","","data-cy","add-group-button",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable"]],template:function(c,T){1&c&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return T.loadAllGroups()}),s.qZA(),s.YNc(4,p,3,3,"button",2),s.TgZ(5,"button",3),s.NdJ("click",function(){return T.removeGroups()}),s.TgZ(6,"span",4),s.ALo(7,"translate"),s._uU(8),s.ALo(9,"translate"),s.qZA()(),s.TgZ(10,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(q){return T.applyFilter(q)}),s.qZA(),s.YNc(11,_,1,0,"mat-spinner",6),s.YNc(12,f,1,13,"perun-web-apps-groups-list",7)),2&c&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),s.xp6(3),s.Q6J("ngIf",T.guiAuthResolver.isAuthorized("getAllGroups_Vo_policy",s.VKq(15,u,T.resource))),s.xp6(1),s.Q6J("disabled",0===T.selected.selected.length||!T.canRemoveGroups()),s.xp6(1),s.s9C("matTooltip",s.lcZ(7,11,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),s.Q6J("matTooltipDisabled",T.canRemoveGroups()),s.xp6(2),s.hij(" ",s.lcZ(9,13,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),s.xp6(2),s.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),s.xp6(1),s.Q6J("ngIf",T.loading),s.xp6(1),s.Q6J("ngIf",!T.loading))},dependencies:[e.O5,Q.lW,K.Ou,M.gM,V.W,S.t,W.P,t.X$]}),g})()},4675:(te,j,o)=>{o.d(j,{H:()=>K});var r=o(61744),A=o(81591),n=o(94650),m=o(94364),R=o(36895),s=o(51572),t=o(71135);function e(a,w){1&a&&n._UZ(0,"mat-spinner",2)}function Q(a,w){if(1&a&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&a){const y=n.oxw();n.xp6(1),n.Q6J("items",y.navItems)("size","small")}}let K=(()=>{class a{constructor(y,U,H,G,F){this.resourcesManager=y,this.route=U,this.guiAuthResolver=H,this.entityStorageService=G,this.routePolicyService=F,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.snapshot.url[0].path),this.loading=!1}initItems(y){const U=y?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`;this.navItems=[],this.routePolicyService.canNavigate("resources-groups",this.resource)&&this.navItems.push({cssIcon:"perun-group",url:`${U}/resources/${this.resource.id}/groups`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-services",this.resource)&&this.navItems.push({cssIcon:"perun-service",url:`${U}/resources/${this.resource.id}/services`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-members",this.resource)&&this.navItems.push({cssIcon:"perun-user",url:`${U}/resources/${this.resource.id}/members`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-tags",this.resource)&&this.navItems.push({cssIcon:"perun-resource-tags",url:`${U}/resources/${this.resource.id}/tags`,label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-attributes",this.resource)&&this.navItems.push({cssIcon:"perun-attributes",url:`${U}/resources/${this.resource.id}/attributes`,label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-settings",this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:`${U}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return a.\u0275fac=function(y){return new(y||a)(n.Y36(r.xk),n.Y36(m.gz),n.Y36(A.x4),n.Y36(A.fb),n.Y36(A.Ip))},a.\u0275cmp=n.Xpm({type:a,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(y,U){2&y&&n.ekj("router-component",U.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(y,U){1&y&&(n.YNc(0,e,1,0,"mat-spinner",0),n.YNc(1,Q,2,2,"div",1)),2&y&&(n.Q6J("ngIf",U.loading),n.xp6(1),n.Q6J("ngIf",!U.loading))},dependencies:[R.O5,s.Ou,t.L]}),a})()},35265:(te,j,o)=>{o.d(j,{I:()=>b});var r=o(61744),A=o(95017),n=o(81591),m=o(9244),R=o(21029),s=o(10036),t=o(65412),e=o(94650),Q=o(38383),K=o(64901),a=o(83370);const w=function(){return["checkbox","id","fullName"]};let y=(()=>{class h{constructor(C,Y,k,X,se){this.data=C,this.dialogRef=Y,this.store=k,this.resourceService=X,this.notificator=se,this.selection=new A.Ov(!1,[]),this.loading=!1,this.displayedColumns=["checkbox","id","fullName","organization","email","logins"],this.members=[],this.tableId=s.bj,this.filter=""}ngOnInit(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.data.entityId).subscribe({next:C=>{this.members=C,this.loading=!1},error:()=>this.loading=!1}),this.selection.changed.subscribe(C=>{this.ban=this.data.bans.find(Y=>Y.memberId===C.source.selected[0]?.id)})}cancel(){this.dialogRef.close(!1)}submitBan(C){this.ban?this.updateBan(C):this.banMember(C)}banMember(C){this.loading=!0,this.resourceService.setResourceBan({banOnResource:{memberId:this.selection.selected[0].id,resourceId:this.data.entityId,description:C.description,validityTo:C.validity,id:0,beanName:"BanOnResource"}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.ADD_BAN.SUCCESS_MEMBER"),this.dialogRef.close(!0)},error:()=>this.loading=!1})}updateBan(C){this.loading=!0,this.resourceService.updateResourceBan({banOnResource:{id:this.ban.id,beanName:"BanOnFacility",resourceId:this.ban.resourceId,memberId:this.ban.memberId,description:C.description,validityTo:C.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}}return h.\u0275fac=function(C){return new(C||h)(e.Y36(t.WI),e.Y36(t.so),e.Y36(n.d6),e.Y36(r.xk),e.Y36(n.V6))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-add-resource-ban-dialog"]],decls:3,vars:13,consts:[[3,"loading","disabled","theme","ban","add","cancel"],[3,"placeholder","filter"],[3,"displayedColumns","selection","disableRouting","allowCheckboxDisabled","filter","members","tableId"]],template:function(C,Y){1&C&&(e.TgZ(0,"app-add-ban-dialog",0),e.NdJ("add",function(X){return Y.submitBan(X)})("cancel",function(){return Y.cancel()}),e.TgZ(1,"perun-web-apps-debounce-filter",1),e.NdJ("filter",function(X){return Y.filter=X}),e.qZA(),e._UZ(2,"perun-web-apps-members-list",2),e.qZA()),2&C&&(e.Q6J("loading",Y.loading)("disabled",0===Y.selection.selected.length)("theme",Y.data.theme)("ban",Y.ban),e.xp6(1),e.Q6J("placeholder","DIALOGS.ADD_BAN.FILTER"),e.xp6(1),e.Q6J("displayedColumns",e.DdM(12,w))("selection",Y.selection)("disableRouting",!0)("allowCheckboxDisabled",!1)("filter",Y.filter)("members",Y.members)("tableId",Y.tableId))},dependencies:[Q.O,K.P,a.u]}),h})();var U=o(64080),H=o(28943),G=o(19516),F=o(36895),E=o(4859),I=o(51572),P=o(96214),L=o(73358),V=o(91880),W=o(89383);function oe(h,J){if(1&h){const C=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(C);const k=e.oxw();return e.KtG(k.add())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&h&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"RESOURCE_DETAIL.SETTINGS.BANS.ADD"),"\n"))}function ne(h,J){if(1&h){const C=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM(C);const k=e.oxw();return e.KtG(k.remove())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&h){const C=e.oxw();e.Q6J("disabled",0===C.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"RESOURCE_DETAIL.SETTINGS.BANS.REMOVE"),"\n")}}function B(h,J){if(1&h){const C=e.EpF();e.TgZ(0,"perun-web-apps-ban-on-entity-list",10),e.NdJ("updateBan",function(k){e.CHM(C);const X=e.oxw();return e.KtG(X.update(k))}),e.qZA()}if(2&h){const C=e.oxw();e.Q6J("bans",C.bans)("selection",C.selection)("displayedColumns",C.displayedColumns)("filter",C.filter)("updatePolicy","updateBan_BanOnResource_policy")}}function $(h,J){1&h&&(e.TgZ(0,"div",11),e._UZ(1,"mat-spinner"),e.qZA())}let b=(()=>{class h{constructor(C,Y,k,X,se,ae,re){this.resourceService=C,this.entityService=Y,this.authResolver=k,this.dialog=X,this.notificator=se,this.store=ae,this.userName=re,this.loading=!1,this.bans=[],this.removeAuth=!1,this.filter="",this.selection=new A.Ov(!1,[]),this.attrNames=[U.r.MEMBER_DEF_MAIL,U.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.displayedColumns=["select","banId","subjectId","subjectName","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.resource=this.entityService.getEntity(),this.addAuth=this.authResolver.isAuthorized("setBan_BanOnResource_policy",[this.resource]),this.removeAuth=this.authResolver.isAuthorized("resource-removeBan_int_policy",[this.resource]),this.refresh()}refresh(){this.loading=!0,this.resourceService.getEnrichedBansForResource(this.resource.id,this.attrNames).subscribe({next:C=>{this.bans=C,this.selection.clear(),this.loading=!1},error:()=>this.loading=!1})}add(){const C=(0,m.kZ)();C.width="850px",C.data={entityId:this.resource.id,theme:"resource-theme",bans:this.bans.map(k=>k.ban)},this.dialog.open(y,C).afterClosed().subscribe(k=>{k&&this.refresh()})}remove(){const C=(0,m.kZ)();C.width="550px",C.data={theme:"resource-theme",title:"DIALOGS.REMOVE_BAN.TITLE",description:"DIALOGS.REMOVE_BAN.DESCRIPTION",items:[this.userName.transform(this.selection.selected[0].member.user)],type:"remove",showAsk:!0},this.dialog.open(R.Ts,C).afterClosed().subscribe(k=>{k&&this.resourceService.removeResourceBanById(this.selection.selected[0].ban.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.REMOVE_BAN.SUCCESS"),this.refresh()})})}update(C){const Y=(0,m.kZ)();Y.width="600px",Y.data={ban:C.ban,theme:"facility-theme"},this.dialog.open(H.e,Y).afterClosed().subscribe(X=>{X&&this.refresh()})}}return h.\u0275fac=function(C){return new(C||h)(e.Y36(r.xk),e.Y36(n.fb),e.Y36(n.x4),e.Y36(t.uw),e.Y36(n.V6),e.Y36(n.d6),e.Y36(G.dp))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-resource-settings-bans"]],features:[e._Bn([G.dp])],decls:11,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mt-2","search-field",3,"placeholder","filter"],[1,"position-relative"],[3,"bans","selection","displayedColumns","filter","updatePolicy","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["spinner",""],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"bans","selection","displayedColumns","filter","updatePolicy","updateBan"],[1,"spinner-container"]],template:function(C,Y){if(1&C&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("click",function(){return Y.refresh()}),e.qZA(),e.YNc(4,oe,3,3,"button",2),e.YNc(5,ne,3,4,"button",3),e.TgZ(6,"perun-web-apps-debounce-filter",4),e.NdJ("filter",function(X){return Y.filter=X}),e.qZA(),e.TgZ(7,"div",5),e.YNc(8,B,1,5,"perun-web-apps-ban-on-entity-list",6),e.qZA(),e.YNc(9,$,2,0,"ng-template",null,7,e.W1O)),2&C){const k=e.MAs(10);e.xp6(1),e.hij(" ",e.lcZ(2,6,"RESOURCE_DETAIL.SETTINGS.BANS.TITLE"),"\n"),e.xp6(3),e.Q6J("ngIf",Y.addAuth),e.xp6(1),e.Q6J("ngIf",Y.removeAuth),e.xp6(1),e.Q6J("placeholder","RESOURCE_DETAIL.SETTINGS.BANS.FILTER"),e.xp6(2),e.Q6J("perunWebAppsLoader",Y.loading)("perunWebAppsLoaderIndicator",k)}},dependencies:[F.O5,E.lW,I.Ou,P.t,K.P,L.e,V.s,W.X$]}),h})()},20057:(te,j,o)=>{o.d(j,{O:()=>m});var r=o(81591),A=o(94650),n=o(28361);let m=(()=>{class R{constructor(t,e){this.guiAuthResolver=t,this.entityStorageService=e,this.availableRoles=[],this.type="Resource",this.theme="resource-theme"}ngOnInit(){this.resource=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Resource")}}return R.\u0275fac=function(t){return new(t||R)(A.Y36(r.x4),A.Y36(r.fb))},R.\u0275cmp=A.Xpm({type:R,selectors:[["app-resource-settings-managers"]],decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(t,e){1&t&&A._UZ(0,"app-managers-page",0),2&t&&A.Q6J("complementaryObject",e.resource)("availableRoles",e.availableRoles)("complementaryObjectType",e.type)("theme",e.theme)},dependencies:[n.s]}),R})()},16500:(te,j,o)=>{o.d(j,{h:()=>K});var r=o(61744),A=o(81591),n=o(94650),m=o(94364),R=o(36895),s=o(51572),t=o(71135);function e(a,w){1&a&&n._UZ(0,"mat-spinner",2)}function Q(a,w){if(1&a&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&a){const y=n.oxw();n.xp6(1),n.Q6J("items",y.items)("size","small")}}let K=(()=>{class a{constructor(y,U,H,G,F){this.route=y,this.resourceManager=U,this.authResolver=H,this.entityStorageService=G,this.routePolicyService=F,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.parent.snapshot.url[0].path),this.loading=!1}initItems(y){this.items=[],this.routePolicyService.canNavigate("resources-settings-managers",this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${y?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-settings-bans",this.resource)&&this.items.push({cssIcon:"perun-ban",url:`${y?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/bans`,label:"MENU_ITEMS.RESOURCE.BANS",style:"resource-btn"})}}return a.\u0275fac=function(y){return new(y||a)(n.Y36(m.gz),n.Y36(r.xk),n.Y36(A.x4),n.Y36(A.fb),n.Y36(A.Ip))},a.\u0275cmp=n.Xpm({type:a,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(y,U){2&y&&n.ekj("router-component",U.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(y,U){1&y&&(n.YNc(0,e,1,0,"mat-spinner",0),n.YNc(1,Q,2,2,"div",1)),2&y&&(n.Q6J("ngIf",U.loading),n.xp6(1),n.Q6J("ngIf",!U.loading))},dependencies:[R.O5,s.Ou,t.L]}),a})()},60113:(te,j,o)=>{o.d(j,{t:()=>m});var r=o(36769),A=o(94650),n=o(61283);let m=(()=>{class R{}return R.\u0275fac=function(t){return new(t||R)},R.\u0275cmp=A.Xpm({type:R,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&A.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&A._UZ(0,"app-animated-router-outlet")},dependencies:[n.A],data:{animation:[r.Ji]}}),R})()},20872:(te,j,o)=>{o.d(j,{v:()=>ne});var r=o(61744),A=o(95017),n=o(10036),m=o(9244),R=o(81591),s=o(21029),t=o(65412),e=o(94650),Q=o(36895),K=o(4859),a=o(51572),w=o(17672),y=o(89383);function U(B,$){1&B&&e._UZ(0,"mat-spinner",8)}function H(B,$){if(1&B&&e._UZ(0,"app-resources-tags-list",9),2&B){const b=e.oxw();e.Q6J("selection",b.selection)("displayedColumns",b.displayedColumns)("entity","resource")("filterValue",b.filterValue)("resourceTags",b.resourceTags)("tableId",b.tableId)}}let G=(()=>{class B{constructor(b,h,J){this.dialogRef=b,this.data=h,this.resourcesManager=J,this.tableId=n.g,this.selection=new A.Ov(!0,[]),this.resourceTags=[],this.displayedColumns=["select","id","name"]}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voId=this.data.voId,this.resourceId=this.data.resourceId,this.assignedTags=this.data.assignedTags,this.resourcesManager.getAllResourcesTagsForVo(this.voId).subscribe(b=>{this.resourceTags=b.filter(h=>!this.assignedTags.map(J=>J.id).includes(h.id)),this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(b){this.resourcesManager.assignResourceTagsToResource({resource:this.resourceId,resourceTags:b}).subscribe(()=>{this.dialogRef.close(!0)})}applyFilter(b){this.filterValue=b}}return B.\u0275fac=function(b){return new(b||B)(e.Y36(t.so),e.Y36(t.WI),e.Y36(r.xk))},B.\u0275cmp=e.Xpm({type:B,selectors:[["app-add-resource-tag-to-resource-dialog"]],decls:15,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],[3,"selection","displayedColumns","entity","filterValue","resourceTags","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"selection","displayedColumns","entity","filterValue","resourceTags","tableId"]],template:function(b,h){1&b&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2),e.YNc(6,U,1,0,"mat-spinner",3),e.qZA(),e.YNc(7,H,1,6,"app-resources-tags-list",4),e.qZA(),e.TgZ(8,"div",5)(9,"button",6),e.NdJ("click",function(){return h.onCancel()}),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"button",7),e.NdJ("click",function(){return h.onSubmit(h.selection.selected)}),e._uU(13),e.ALo(14,"translate"),e.qZA()()()),2&b&&(e.Tol(h.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),e.xp6(4),e.Q6J("ngIf",h.loading),e.xp6(1),e.Q6J("ngIf",!h.loading),e.xp6(3),e.hij(" ",e.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",h.loading||0===h.resourceTags.length),e.xp6(1),e.hij(" ",e.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},dependencies:[Q.O5,K.lW,t.uh,t.xY,t.H8,a.Ou,w.o,y.X$]}),B})();var F=o(17584),E=o(96214),I=o(7434);function P(B,$){if(1&B){const b=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(b);const J=e.oxw();return e.KtG(J.create())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&B&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function L(B,$){if(1&B){const b=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(b);const J=e.oxw();return e.KtG(J.addTag())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&B&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function V(B,$){if(1&B){const b=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(b);const J=e.oxw();return e.KtG(J.removeTags())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&B){const b=e.oxw();e.Q6J("disabled",0===b.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function W(B,$){1&B&&e._UZ(0,"mat-spinner",9)}function oe(B,$){if(1&B&&e._UZ(0,"app-resources-tags-list",10),2&B){const b=e.oxw();e.Q6J("displayedColumns",b.displayedColumns)("entity","resource")("resourceTags",b.resourceTags)("filterValue",b.filterValue)("selection",b.selection)("tableId",b.tableId)}}let ne=(()=>{class B{constructor(b,h,J,C,Y,k){this.authResolver=b,this.resourcesManager=h,this.dialog=J,this.notificator=C,this.translate=Y,this.entityStorageService=k,this.loading=!1,this.resourceTags=[],this.selection=new A.Ov(!0,[]),this.tableId=n.M8,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}removeTags(){const b=(0,m.kZ)();b.width="450px",b.data={items:this.selection.selected.map(J=>J.tagName),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme",type:"remove",showAsk:!0},this.dialog.open(s.Ts,b).afterClosed().subscribe(J=>{J&&this.resourcesManager.removeResourceTagsFromResource({resource:this.resource.id,resourceTags:this.selection.selected}).subscribe(()=>(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData()))})}addTag(){const b=(0,m.kZ)();b.width="600px",b.data={voId:this.resource.voId,resourceId:this.resource.id,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(G,b).afterClosed().subscribe(J=>{J&&(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),this.updateData())})}create(){const b=(0,m.kZ)();b.width="450px",b.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(F.p,b).afterClosed().subscribe(J=>{J&&(this.notificator.showSuccess(this.translate.instant("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS")),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resource.id).subscribe(b=>{this.resourceTags=b,this.selection.clear(),this.loading=!1})}setAuthRights(){const b={id:this.resource.voId,beanName:"Vo"};this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[b]),this.addAuth=this.authResolver.isAuthorized("assignResourceTagToResource_ResourceTag_Resource_policy",[this.resource]),this.removeAuth=this.authResolver.isAuthorized("removeResourceTagFromResource_ResourceTag_Resource_policy",[this.resource]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"]}applyFilter(b){this.filterValue=b}}return B.\u0275fac=function(b){return new(b||B)(e.Y36(R.x4),e.Y36(r.xk),e.Y36(t.uw),e.Y36(R.V6),e.Y36(R.Te),e.Y36(R.fb))},B.\u0275cmp=e.Xpm({type:B,selectors:[["app-perun-web-apps-resource-tags"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId"]],template:function(b,h){1&b&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){return h.updateData()}),e.qZA(),e.YNc(4,P,3,3,"button",2),e.YNc(5,L,3,3,"button",2),e.YNc(6,V,3,4,"button",3),e.TgZ(7,"perun-web-apps-immediate-filter",4),e.NdJ("filter",function(C){return h.applyFilter(C)}),e.qZA(),e.YNc(8,W,1,0,"mat-spinner",5),e.YNc(9,oe,1,6,"app-resources-tags-list",6)),2&b&&(e.xp6(1),e.Oqu(e.lcZ(2,7,"RESOURCE_DETAIL.TAGS.TITLE")),e.xp6(3),e.Q6J("ngIf",h.createAuth),e.xp6(1),e.Q6J("ngIf",h.addAuth),e.xp6(1),e.Q6J("ngIf",h.removeAuth),e.xp6(1),e.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),e.xp6(1),e.Q6J("ngIf",h.loading),e.xp6(1),e.Q6J("ngIf",!h.loading))},dependencies:[Q.O5,K.lW,a.Ou,w.o,E.t,I.L,y.X$]}),B})()},83370:(te,j,o)=>{o.d(j,{u:()=>E});var r=o(94650),A=o(37433),n=o(36895),m=o(4859),R=o(65412),s=o(51572),t=o(86257),e=o(98380),Q=o(29926),K=o(89383);function a(I,P){1&I&&r._UZ(0,"mat-spinner",13)}function w(I,P){1&I&&(r.TgZ(0,"perun-web-apps-alert",16),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&I&&(r.Q6J("alert_type","info"),r.xp6(1),r.hij(" ",r.lcZ(2,2,"DIALOGS.ADD_BAN.ALREADY_BANNED")," "))}function y(I,P){if(1&I&&(r.TgZ(0,"div"),r.YNc(1,w,3,4,"perun-web-apps-alert",14),r._UZ(2,"perun-web-apps-ban-specification",15),r.qZA()),2&I){const L=r.oxw();r.xp6(1),r.Q6J("ngIf",L.ban),r.xp6(1),r.Q6J("description",null==L.ban?null:L.ban.description)("validity",null==L.ban?null:L.ban.validityTo)}}function U(I,P){if(1&I){const L=r.EpF();r.TgZ(0,"button",17),r.NdJ("click",function(){r.CHM(L),r.oxw();const W=r.MAs(6);return r.KtG(W.next())}),r._uU(1),r.ALo(2,"translate"),r.qZA()}if(2&I){const L=r.oxw();r.Q6J("disabled",L.disabled),r.xp6(1),r.hij(" ",r.lcZ(2,2,"DIALOGS.ADD_BAN.NEXT")," ")}}function H(I,P){if(1&I){const L=r.EpF();r.TgZ(0,"button",18),r.NdJ("click",function(){r.CHM(L),r.oxw();const W=r.MAs(6);return r.KtG(W.previous())}),r._uU(1),r.ALo(2,"translate"),r.qZA()}2&I&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"DIALOGS.ADD_BAN.BACK")," "))}function G(I,P){if(1&I){const L=r.EpF();r.TgZ(0,"button",19),r.NdJ("click",function(){r.CHM(L);const W=r.oxw();return r.KtG(W.addBan())}),r._uU(1),r.ALo(2,"translate"),r.qZA()}if(2&I){const L=r.oxw();r.xp6(1),r.hij(" ",r.lcZ(2,1,L.ban?"DIALOGS.ADD_BAN.UPDATE":"DIALOGS.ADD_BAN.ADD")," ")}}const F=["*"];let E=(()=>{class I{constructor(){this.loading=!1,this.disabled=!1,this.add=new r.vpe,this.cancel=new r.vpe}addBan(){this.add.emit({description:this.banForm.getDescription(),validity:this.banForm.getValidity()})}}return I.\u0275fac=function(L){return new(L||I)},I.\u0275cmp=r.Xpm({type:I,selectors:[["app-add-ban-dialog"]],viewQuery:function(L,V){if(1&L&&r.Gf(A.CZ,5),2&L){let W;r.iGM(W=r.CRH())&&(V.banForm=W.first)}},inputs:{loading:"loading",disabled:"disabled",theme:"theme",ban:"ban"},outputs:{add:"add",cancel:"cancel"},ngContentSelectors:F,decls:21,vars:22,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"linear"],["stepper",""],[3,"completed","label"],[3,"label"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","class","mr-2","color","accent",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"alert_type",4,"ngIf"],[3,"description","validity"],[3,"alert_type"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"]],template:function(L,V){if(1&L&&(r.F$t(),r.TgZ(0,"div")(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"div",1)(5,"mat-stepper",2,3)(7,"mat-step",4),r.ALo(8,"translate"),r.Hsn(9),r.qZA(),r.TgZ(10,"mat-step",5),r.ALo(11,"translate"),r.YNc(12,a,1,0,"mat-spinner",6),r.YNc(13,y,3,3,"div",7),r.qZA()()(),r.TgZ(14,"div",8)(15,"button",9),r.NdJ("click",function(){return V.cancel.emit()}),r._uU(16),r.ALo(17,"translate"),r.qZA(),r.YNc(18,U,3,4,"button",10),r.YNc(19,H,3,3,"button",11),r.YNc(20,G,3,3,"button",12),r.qZA()()),2&L){const W=r.MAs(6);r.Tol(V.theme),r.xp6(2),r.Oqu(r.lcZ(3,14,"DIALOGS.ADD_BAN.TITLE")),r.xp6(3),r.Q6J("linear",!0),r.xp6(2),r.Q6J("completed",!V.disabled)("label",r.lcZ(8,16,"DIALOGS.ADD_BAN.SELECTION")),r.xp6(3),r.Q6J("label",r.lcZ(11,18,"DIALOGS.ADD_BAN.SPECIFICATION")),r.xp6(2),r.Q6J("ngIf",V.loading),r.xp6(1),r.Q6J("ngIf",!V.loading),r.xp6(3),r.hij(" ",r.lcZ(17,20,"DIALOGS.ADD_BAN.CANCEL")," "),r.xp6(2),r.Q6J("ngIf",W.selectedIndex!==(null==W||null==W._steps?null:W._steps.length)-1),r.xp6(1),r.Q6J("ngIf",W.selectedIndex===(null==W||null==W._steps?null:W._steps.length)-1),r.xp6(1),r.Q6J("ngIf",W.selectedIndex===(null==W||null==W._steps?null:W._steps.length)-1)}},dependencies:[n.O5,m.lW,R.uh,R.xY,R.H8,s.Ou,t.C0,t.Vq,e.w,Q.C,K.X$]}),I})()},17584:(te,j,o)=>{o.d(j,{p:()=>y});var r=o(65412),A=o(61744),n=o(94650),m=o(36895),R=o(59549),s=o(284),t=o(24006),e=o(4859),Q=o(51572),K=o(89383);function a(U,H){1&U&&n._UZ(0,"mat-spinner",6)}function w(U,H){if(1&U){const G=n.EpF();n.TgZ(0,"div",7)(1,"mat-form-field")(2,"input",8),n.NdJ("ngModelChange",function(E){n.CHM(G);const I=n.oxw();return n.KtG(I.name=E)}),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-error"),n._uU(5),n.ALo(6,"translate"),n.qZA()()()}if(2&U){const G=n.oxw();n.xp6(2),n.s9C("placeholder",n.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),n.Q6J("ngModel",G.name),n.xp6(3),n.Oqu(n.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let y=(()=>{class U{constructor(G,F,E){this.dialogRef=G,this.data=F,this.resourceManager=E,this.name="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){""!==this.name&&(this.loading=!0,this.resourceManager.createResourceTagWithTagName(this.name,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}}return U.\u0275fac=function(G){return new(G||U)(n.Y36(r.so),n.Y36(r.WI),n.Y36(A.xk))},U.\u0275cmp=n.Xpm({type:U,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","ngModel","ngModelChange"]],template:function(G,F){1&G&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,a,1,0,"mat-spinner",1),n.YNc(5,w,7,7,"div",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return F.onCancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",5),n.NdJ("click",function(){return F.onSubmit()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&G&&(n.Tol(F.theme),n.xp6(2),n.Oqu(n.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),n.xp6(2),n.Q6J("ngIf",F.loading),n.xp6(1),n.Q6J("ngIf",!F.loading),n.xp6(3),n.hij(" ",n.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),n.xp6(2),n.Q6J("disabled",F.loading),n.xp6(1),n.hij(" ",n.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},dependencies:[m.O5,R.TO,R.KE,s.Nt,t.Fj,t.JJ,t.Q7,t.On,e.lW,r.uh,r.xY,r.H8,Q.Ou,K.X$]}),U})()},28361:(te,j,o)=>{o.d(j,{s:()=>Pe});var r=o(95017),A=o(65412),n=o(81591),m=o(61744),R=o(10036),s=o(64080),t=o(24006),e=o(94650),Q=o(89383),K=o(94364),a=o(36895),w=o(3238),y=o(59549),U=o(284),H=o(4859),G=o(84385),F=o(51572),E=o(98380),I=o(22308),P=o(64877),L=o(23123);function V(l,O){if(1&l&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&l){const i=O.$implicit;e.Q6J("value",i.roleName),e.xp6(1),e.hij(" ",e.lcZ(2,2,i)," ")}}function W(l,O){1&l&&e._UZ(0,"mat-spinner",16)}function oe(l,O){1&l&&(e.TgZ(0,"perun-web-apps-alert",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&l&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}const ne=function(){return["select","id","name","email","logins","organization"]};function B(l,O){if(1&l&&e._UZ(0,"app-users-list",21),2&l){const i=e.oxw(2);e.Q6J("disableRouting",!0)("selection",i.selection)("displayedColumns",e.DdM(5,ne))("tableId",i.tableId)("users",i.users)}}function $(l,O){if(1&l&&(e.TgZ(0,"div",17),e.YNc(1,oe,3,3,"perun-web-apps-alert",18),e.YNc(2,B,1,6,"app-users-list",19),e.qZA()),2&l){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",0===i.users.length&&i.firstSearchDone),e.xp6(1),e.Q6J("ngIf",0!==i.users.length)}}let b=(()=>{class l{constructor(i,d,x,ee,le,ce,ue,he,fe){this.dialogRef=i,this.data=d,this.authzService=x,this.usersService=ee,this.translate=le,this.notificator=ce,this.storeService=ue,this.route=he,this.router=fe,this.selection=new r.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=R.H2,le.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(_e=>this.title=_e),le.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(_e=>this.successMessage=_e)}ngOnInit(){this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new t.p4("",[t.kI.required,t.kI.pattern(".*[\\S]+.*")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(i=>i.id),complementaryObject:this.data.complementaryObject}).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.selection.clear();let i=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];i=i.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,i).subscribe({next:d=>{this.users=d,this.loading=!1,this.firstSearchDone=!0},error:()=>this.loading=!1})}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(A.so),e.Y36(A.WI),e.Y36(m.Ct),e.Y36(m.Fv),e.Y36(Q.sK),e.Y36(n.V6),e.Y36(n.d6),e.Y36(K.gz),e.Y36(K.F0))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-add-manager-dialog"]],decls:31,vars:31,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"inline-dialog-items"],[1,"mr-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mr-2","w-100"],["matInput","","autocomplete","false","data-cy","search-manager-input","perunWebAppsAutoFocus","",3,"placeholder","formControl","keyup.enter"],["color","accent","data-cy","search-manager-button","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","add-manager-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"disableRouting","selection","displayedColumns","tableId","users",4,"ngIf"],["alert_type","warn"],[3,"disableRouting","selection","displayedColumns","tableId","users"]],template:function(i,d){1&i&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"mat-form-field",3)(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(ee){return d.selectedRole=ee}),e.YNc(11,V,3,4,"mat-option",5),e.qZA()(),e.TgZ(12,"mat-form-field",6)(13,"input",7),e.NdJ("keyup.enter",function(){return d.onSearchByString()}),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"mat-error"),e._uU(16),e.ALo(17,"translate"),e.qZA()()(),e.TgZ(18,"button",8),e.NdJ("click",function(){return d.onSearchByString()}),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"div",9),e.YNc(22,W,1,0,"mat-spinner",10),e.qZA(),e.YNc(23,$,3,2,"div",11),e.qZA(),e.TgZ(24,"div",12)(25,"button",13),e.NdJ("click",function(){return d.onCancel()}),e._uU(26),e.ALo(27,"translate"),e.qZA(),e.TgZ(28,"button",14),e.NdJ("click",function(){return d.onSubmit()}),e._uU(29),e.ALo(30,"translate"),e.qZA()()()),2&i&&(e.Tol(d.theme),e.xp6(2),e.Oqu(e.lcZ(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),e.xp6(6),e.Oqu(e.lcZ(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",d.selectedRole),e.xp6(1),e.Q6J("ngForOf",d.availableRoles),e.xp6(2),e.s9C("placeholder",e.lcZ(14,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),e.Q6J("formControl",d.searchCtrl),e.xp6(3),e.hij(" ",e.lcZ(17,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),e.xp6(2),e.Q6J("disabled",d.loading),e.xp6(1),e.hij(" ",e.lcZ(20,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),e.xp6(3),e.Q6J("ngIf",d.loading),e.xp6(1),e.Q6J("ngIf",null!==d.users&&!d.loading),e.xp6(3),e.hij(" ",e.lcZ(27,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===d.selection.selected.length||void 0===d.selectedRole||d.loading),e.xp6(1),e.hij(" ",e.lcZ(30,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},dependencies:[a.sg,a.O5,w.ey,y.TO,y.KE,y.hX,U.Nt,t.Fj,t.JJ,t.oH,H.lW,A.uh,A.xY,A.H8,G.gD,F.Ou,E.w,I.h,P.C,Q.X$,L.i],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),l})();var h=o(30671);function J(l,O){1&l&&e._UZ(0,"th",15)}function C(l,O){if(1&l&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&l){const i=O.$implicit;e.xp6(1),e.AsE("",i.firstName," ",i.lastName,"")}}function Y(l,O){1&l&&e._UZ(0,"tr",17)}function k(l,O){1&l&&e._UZ(0,"tr",18)}const X=function(l){return{role:l}};function se(l,O){if(1&l&&(e.TgZ(0,"perun-web-apps-alert",19),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&l){const i=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,"DIALOGS.REMOVE_MANAGERS.WARNING_REMOVE_YOURSELF",e.VKq(6,X,e.lcZ(3,4,"ROLES."+i.data.role)))," ")}}function ae(l,O){if(1&l&&(e.TgZ(0,"div",6)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",7),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",8),e.ynx(8,9),e.YNc(9,J,1,0,"th",10),e.YNc(10,C,2,2,"td",11),e.BQk(),e.YNc(11,Y,1,0,"tr",12),e.YNc(12,k,1,0,"tr",13),e.qZA(),e.YNc(13,se,4,8,"perun-web-apps-alert",14),e.qZA()),2&l){const i=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,6,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(6,8,"DIALOGS.REMOVE_MANAGERS.ASK")," "),e.xp6(2),e.Q6J("dataSource",i.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(1),e.Q6J("ngIf",i.removeSelf)}}function re(l,O){1&l&&e._UZ(0,"mat-spinner",20)}let M=(()=>{class l{constructor(i,d,x,ee,le,ce,ue){this.dialogRef=i,this.data=d,this.notificator=x,this.translate=ee,this.authzService=le,this.store=ce,this.authService=ue,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new h.by(this.data.managers),this.theme=this.data.theme,this.removeSelf=this.data.managers.map(i=>i.id).includes(this.store.getPerunPrincipal().userId)&&!this.authService.isPerunAdmin()}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithUserComplementaryObject({role:this.data.role,users:this.data.managers.map(i=>i.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(A.so),e.Y36(A.WI),e.Y36(n.V6),e.Y36(Q.sK),e.Y36(m.Ct),e.Y36(n.d6),e.Y36(n.x4))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-remove-manager-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","remove-manager-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(i,d){1&i&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,ae,14,10,"div",1),e.YNc(5,re,1,0,"mat-spinner",2),e.TgZ(6,"div",3)(7,"button",4),e.NdJ("click",function(){return d.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return d.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&i&&(e.Tol(d.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),e.xp6(2),e.Q6J("ngIf",!d.loading),e.xp6(1),e.Q6J("ngIf",d.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",d.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},dependencies:[a.O5,H.lW,h.BZ,h.fO,h.as,h.w1,h.Dz,h.nj,h.ge,h.ev,h.XQ,h.Gk,A.uh,A.xY,A.H8,F.Ou,E.w,Q.X$]}),l})();function S(l,O){1&l&&e._UZ(0,"mat-spinner",6)}function p(l,O){1&l&&e._UZ(0,"th",15)}function _(l,O){if(1&l&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&l){const i=O.$implicit;e.xp6(1),e.Oqu(i.name)}}function u(l,O){1&l&&e._UZ(0,"tr",17)}function v(l,O){1&l&&e._UZ(0,"tr",18)}function f(l,O){if(1&l&&(e.TgZ(0,"div",7)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",9),e.ynx(8,10),e.YNc(9,p,1,0,"th",11),e.YNc(10,_,2,1,"td",12),e.BQk(),e.YNc(11,u,1,0,"tr",13),e.YNc(12,v,1,0,"tr",14),e.qZA()()),2&l){const i=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),e.xp6(2),e.Q6J("dataSource",i.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns)}}let D=(()=>{class l{constructor(i,d,x,ee,le){this.dialogRef=i,this.data=d,this.notificator=x,this.translate=ee,this.authzService=le,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new h.by(this.data.groups),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithGroupComplementaryObject({role:this.data.role,authorizedGroups:this.data.groups.map(i=>i.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(A.so),e.Y36(A.WI),e.Y36(n.V6),e.Y36(Q.sK),e.Y36(m.Ct))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-remove-group-manager-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(i,d){1&i&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,S,1,0,"mat-spinner",1),e.YNc(5,f,13,9,"div",2),e.TgZ(6,"div",3)(7,"button",4),e.NdJ("click",function(){return d.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return d.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&i&&(e.Tol(d.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),e.xp6(2),e.Q6J("ngIf",d.loading),e.xp6(1),e.Q6J("ngIf",!d.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",d.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},dependencies:[a.O5,H.lW,h.BZ,h.fO,h.as,h.w1,h.Dz,h.nj,h.ge,h.ev,h.XQ,h.Gk,A.uh,A.xY,A.H8,F.Ou,Q.X$]}),l})();var g=o(68675),N=o(54004),c=o(47957),T=o(25788),Z=o(64901);function q(l,O){if(1&l&&(e.TgZ(0,"mat-option",17),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&l){const i=O.$implicit;e.Q6J("value",i.roleName),e.xp6(1),e.hij(" ",e.lcZ(2,2,i)," ")}}function z(l,O){if(1&l&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&l){const i=O.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",i.name," ")}}function ie(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"perun-web-apps-debounce-filter",18),e.NdJ("filter",function(x){e.CHM(i);const ee=e.oxw();return e.KtG(ee.applyFilter(x))}),e.ALo(1,"translate"),e.qZA()}2&l&&e.s9C("placeholder",e.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function pe(l,O){1&l&&e._UZ(0,"mat-spinner",19)}const ge=function(){return["select","id","name","description"]};function Ae(l,O){if(1&l&&(e.TgZ(0,"div",20),e._UZ(1,"perun-web-apps-groups-list",21),e.qZA()),2&l){const i=e.oxw();e.xp6(1),e.Q6J("disableMembers",!1)("disableRouting",!0)("displayedColumns",e.DdM(7,ge))("selection",i.selection)("groups",i.groups)("filter",i.filterValue)("tableId",i.tableId)}}let Re=(()=>{class l{constructor(i,d,x,ee,le,ce,ue,he,fe){this.dialogRef=i,this.data=d,this.authzService=x,this.voService=ee,this.groupService=le,this.translate=ce,this.notificator=ue,this.route=he,this.router=fe,this.searchString="",this.selection=new r.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new t.p4,this.firstSearchDone=!1,this.tableId=R.kZ,ce.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(_e=>this.title=_e),ce.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(_e=>this.successMessage=_e)}displayFn(i){return i?i.name:null}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(i=>i.id),complementaryObject:this.data.complementaryObject}).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}ngOnInit(){this.loading=!0,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.theme=this.data.theme,this.voService.getMyVos().subscribe({next:i=>{this.filteredOptions=this.myControl.valueChanges.pipe((0,g.O)(""),(0,N.U)(d=>this._filter(d))),this.vos=i,this.loading=!1},error:()=>this.loading=!1})}showVoGroups(i){this.loading=!0,this.groupService.getAllGroups(i.option.value.id).subscribe({next:d=>{this.groups=d,this.loading=!1,this.firstSearchDone=!0},error:()=>this.loading=!1})}applyFilter(i){this.filterValue=i}_filter(i){const d="string"==typeof i?i.toLowerCase():i.name.toLowerCase();return this.vos.filter(x=>x.name.toLowerCase().includes(d))}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(A.so),e.Y36(A.WI),e.Y36(m.Ct),e.Y36(m.YF),e.Y36(m.ff),e.Y36(Q.sK),e.Y36(n.V6),e.Y36(K.gz),e.Y36(K.F0))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-add-group-manager-dialog"]],decls:33,vars:33,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"inline-dialog-items"],[1,"mr-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mr-2","w-75"],["aria-label","Assignee","matInput","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"placeholder","filter",4,"ngIf"],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"disableMembers","disableRouting","displayedColumns","selection","groups","filter","tableId"]],template:function(i,d){if(1&i&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"mat-form-field",3)(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(ee){return d.selectedRole=ee}),e.YNc(11,q,3,4,"mat-option",5),e.qZA()(),e.TgZ(12,"mat-form-field",6)(13,"mat-label"),e._uU(14),e.ALo(15,"translate"),e.qZA(),e._UZ(16,"input",7),e.ALo(17,"translate"),e.TgZ(18,"mat-autocomplete",8,9),e.NdJ("optionSelected",function(ee){return d.showVoGroups(ee)}),e.YNc(20,z,2,2,"mat-option",5),e.ALo(21,"async"),e.qZA()()(),e.YNc(22,ie,2,3,"perun-web-apps-debounce-filter",10),e.TgZ(23,"div",11),e.YNc(24,pe,1,0,"mat-spinner",12),e.qZA(),e.YNc(25,Ae,2,8,"div",13),e.qZA(),e.TgZ(26,"div",14)(27,"button",15),e.NdJ("click",function(){return d.onCancel()}),e._uU(28),e.ALo(29,"translate"),e.qZA(),e.TgZ(30,"button",16),e.NdJ("click",function(){return d.onSubmit()}),e._uU(31),e.ALo(32,"translate"),e.qZA()()()),2&i){const x=e.MAs(19);e.Tol(d.theme),e.xp6(2),e.Oqu(e.lcZ(3,19,"DIALOGS.ADD_GROUPS.TITLE")),e.xp6(6),e.Oqu(e.lcZ(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",d.selectedRole),e.xp6(1),e.Q6J("ngForOf",d.availableRoles),e.xp6(3),e.Oqu(e.lcZ(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),e.xp6(2),e.s9C("placeholder",e.lcZ(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),e.Q6J("formControl",d.myControl)("matAutocomplete",x),e.xp6(2),e.Q6J("displayWith",d.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(21,27,d.filteredOptions)),e.xp6(2),e.Q6J("ngIf",null!==d.groups&&d.groups.length>0&&!d.loading),e.xp6(2),e.Q6J("ngIf",d.loading),e.xp6(1),e.Q6J("ngIf",null!==d.groups&&!d.loading),e.xp6(3),e.hij(" ",e.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===d.selection.selected.length||d.loading),e.xp6(1),e.hij(" ",e.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},dependencies:[a.sg,a.O5,c.XC,c.ZL,w.ey,y.KE,y.hX,U.Nt,t.Fj,t.JJ,t.oH,H.lW,A.uh,A.xY,A.H8,G.gD,F.Ou,T.W,Z.P,a.Ov,Q.X$,L.i]}),l})();var de=o(9244),Ee=o(15003),me=o(3848),Te=o(96214);function be(l,O){1&l&&(e._uU(0),e.ALo(1,"translate")),2&l&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function Ce(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(i);const x=e.oxw(2);return e.KtG(x.addManager())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&l&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function ve(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(i);const x=e.oxw(2);return e.KtG(x.removeManager())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&l){const i=e.oxw(2);e.Q6J("disabled",0===i.selectionUsers.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Se(l,O){if(1&l&&(e.TgZ(0,"mat-option",15),e.ALo(1,"lowercase"),e._uU(2),e.ALo(3,"displayedRole"),e.qZA()),2&l){const i=O.$implicit;e.Q6J("value",i.roleName),e.uIk("data-cy",e.lcZ(1,3,i.roleName)),e.xp6(2),e.hij(" ",e.lcZ(3,5,i)," ")}}function Oe(l,O){1&l&&e._UZ(0,"mat-spinner",16)}function Ie(l,O){if(1&l&&e._UZ(0,"app-users-list",17),2&l){const i=e.oxw(2);e.Q6J("disableSelf",i.disableSelf)("tableId",i.tableId)("disableRouting",!i.routeAuth||i.disableRouting)("displayedColumns",i.displayedUserColumns)("selection",i.selectionUsers)("users",i.managers)}}function De(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){e.CHM(i);const x=e.oxw();return e.KtG(x.refreshUsers())}),e.qZA(),e.YNc(1,Ce,3,3,"button",6),e.YNc(2,ve,3,4,"button",7),e.TgZ(3,"mat-form-field",8)(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){e.CHM(i);const x=e.oxw();return e.KtG(x.refreshUsers())})("valueChange",function(x){e.CHM(i);const ee=e.oxw();return e.KtG(ee.selectedRole=x)}),e.YNc(8,Se,4,7,"mat-option",10),e.qZA()(),e.YNc(9,Oe,1,0,"mat-spinner",11),e.YNc(10,Ie,1,6,"app-users-list",12)}if(2&l){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.manageAuth&&!i.configMode),e.xp6(1),e.Q6J("ngIf",i.manageAuth&&!i.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",i.selectedRole),e.xp6(1),e.Q6J("ngForOf",i.availableRoles),e.xp6(1),e.Q6J("ngIf",i.loading),e.xp6(1),e.Q6J("ngIf",!i.loading&&i.managers)}}function Me(l,O){1&l&&(e._uU(0),e.ALo(1,"translate")),2&l&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function xe(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(i);const x=e.oxw(2);return e.KtG(x.addGroup())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&l&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Ze(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(i);const x=e.oxw(2);return e.KtG(x.removeGroup())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&l){const i=e.oxw(2);e.Q6J("disabled",0===i.selectionGroups.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function ye(l,O){if(1&l&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&l){const i=O.$implicit;e.Q6J("value",i.roleName),e.xp6(1),e.Oqu(e.lcZ(2,2,i))}}function Ue(l,O){1&l&&e._UZ(0,"mat-spinner",16)}function Le(l,O){if(1&l&&e._UZ(0,"perun-web-apps-groups-list",24),2&l){const i=e.oxw(2);e.Q6J("disableMembers",!1)("disableRouting",i.disableRouting)("displayedColumns",i.displayedGroupColumns)("groups",i.groups)("selection",i.selectionGroups)("tableId",i.tableId)}}function Ge(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){e.CHM(i);const x=e.oxw();return e.KtG(x.refreshGroups())}),e.qZA(),e.YNc(1,xe,3,3,"button",18),e.YNc(2,Ze,3,4,"button",19),e.TgZ(3,"mat-form-field",20)(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){e.CHM(i);const x=e.oxw();return e.KtG(x.refreshGroups())})("valueChange",function(x){e.CHM(i);const ee=e.oxw();return e.KtG(ee.selectedRole=x)}),e.YNc(8,ye,3,4,"mat-option",10),e.qZA()(),e.YNc(9,Ue,1,0,"mat-spinner",11),e.YNc(10,Le,1,6,"perun-web-apps-groups-list",21)}if(2&l){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.manageAuth&&!i.configMode),e.xp6(1),e.Q6J("ngIf",i.manageAuth&&!i.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",i.selectedRole),e.xp6(1),e.Q6J("ngForOf",i.availableRoles),e.xp6(1),e.Q6J("ngIf",i.loading),e.xp6(1),e.Q6J("ngIf",!i.loading&&i.groups)}}function Ne(l,O){1&l&&(e.TgZ(0,"perun-web-apps-alert",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&l&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}let Pe=(()=>{class l{constructor(i,d,x,ee,le,ce,ue){this.dialog=i,this.authzService=d,this.storeService=x,this.guiAuthResolver=ee,this.router=le,this.reloadEntityDetail=ce,this.route=ue,this.configMode=!1,this.disableRouting=!1,this.disableSelf=!1,this.displayedUserColumns=["select","id","name","email","logins","organization"],this.displayedGroupColumns=["select","id","vo","name","description"],this.groups=[],this.managers=null,this.selectionUsers=new r.Ov(!0,[]),this.selectionGroups=new r.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=R.HC,this.availableRolesPrivileges=new Map}ngOnInit(){this.loading=!0,this.routeAuth=this.guiAuthResolver.isPerunAdminOrObserver(),this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(i=>this.availableRolesPrivileges.get(i.roleName).readAuth),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0].roleName),this.refreshUsers()}changeRolePrivileges(){this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(d=>this.availableRolesPrivileges.get(d.roleName).readAuth),this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.displayedUserColumns=this.manageAuth?this.displayedUserColumns:this.displayedUserColumns.filter(d=>"select"!==d),this.displayedGroupColumns=this.manageAuth?this.displayedGroupColumns:this.displayedGroupColumns.filter(d=>"select"!==d),this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;let i=!1;for(const d of this.roleModes)if(this.selectedMode===d.toLowerCase()){i=!0;break}i||(this.selectedMode=this.roleModes[0].toLowerCase())}tabChanged(i){this.loading=!0,0===i.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}refreshUsers(){this.loading=!0,this.changeRolePrivileges();let i=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];i=i.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,i,!1,!0).subscribe({next:d=>{this.managers=d,this.selectionUsers.clear(),this.loading=!1},error:()=>{this.loading=!1}})}refreshGroups(){this.loading=!0,this.changeRolePrivileges(),this.authzService.getAuthzAdminGroups(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType).subscribe({next:i=>{this.groups=i,this.selectionGroups.clear(),this.loading=!1},error:()=>{this.loading=!1}})}addManager(){const i=(0,de.kZ)();i.width="1000px",i.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(b,i).afterClosed().subscribe(x=>{x&&this.refreshUsers()})}removeManager(){const i=(0,de.kZ)();i.width="450px",i.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(M,i).afterClosed().subscribe(x=>{x&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?this.reloadEntityDetail.reloadEntityDetail():this.redirectToAuthRoute())})}removeGroup(){const i=(0,de.kZ)();i.width="450px",i.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(D,i).afterClosed().subscribe(x=>{x&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?this.refreshGroups():this.redirectToAuthRoute())})}addGroup(){const i=(0,de.kZ)();i.width="1000px",i.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(Re,i).afterClosed().subscribe(x=>{x&&this.refreshGroups()})}redirectToAuthRoute(){if("Group"===this.complementaryObjectType&&(this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.complementaryObject])||this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject])))this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.complementaryObject])?this.router.navigate(["/organizations",this.complementaryObject.voId,"groups",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"}):this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject])&&this.router.navigate(["/organizations",this.complementaryObject.voId],{queryParamsHandling:"merge"});else if("Facility"===this.complementaryObjectType&&this.guiAuthResolver.isAuthorized("getFacilityById_int_policy",[this.complementaryObject]))this.router.navigate(["/facilities",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"});else if("Vo"===this.complementaryObjectType&&this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject]))this.router.navigate(["/organizations",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"});else{if("Resource"!==this.complementaryObjectType||!this.guiAuthResolver.isAuthorized("getRichResourceById_int_policy",[this.complementaryObject]))return void this.router.navigate(["/home"],{queryParamsHandling:"merge"});this.router.navigate(["../../"],{relativeTo:this.route,queryParamsHandling:"merge"})}this.reloadEntityDetail.reloadEntityDetail()}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(A.uw),e.Y36(m.Ct),e.Y36(n.d6),e.Y36(n.x4),e.Y36(K.F0),e.Y36(Ee.G),e.Y36(K.gz))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(i,d){2&i&&e.ekj("router-component",d.true)},inputs:{complementaryObject:"complementaryObject",availableRoles:"availableRoles",complementaryObjectType:"complementaryObjectType",theme:"theme",configMode:"configMode",disableRouting:"disableRouting",disableSelf:"disableSelf",displayedUserColumns:"displayedUserColumns",displayedGroupColumns:"displayedGroupColumns"},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["alert_type","warn",4,"ngIf"],[1,"mt-2",3,"refresh"],["color","accent","class","mr-2 mt-2 action-button","data-cy","add-manager-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-manager-button","class","mr-2 mt-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["data-cy","role-filter",1,"mr-2","mt-2"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users",4,"ngIf"],["color","accent","data-cy","add-manager-button","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","data-cy","remove-manager-button","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users"],["color","accent","class","mr-2 mt-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mt-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","mt-2"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId"],["alert_type","warn"]],template:function(i,d){1&i&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"mat-tab-group",1),e.NdJ("selectedTabChange",function(ee){return d.tabChanged(ee)}),e.TgZ(4,"mat-tab"),e.YNc(5,be,2,3,"ng-template",2),e.YNc(6,De,11,9,"ng-template",3),e.qZA(),e.TgZ(7,"mat-tab"),e.YNc(8,Me,2,3,"ng-template",2),e.YNc(9,Ge,11,9,"ng-template",3),e.qZA()(),e.YNc(10,Ne,3,3,"perun-web-apps-alert",4)),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),e.xp6(9),e.Q6J("ngIf",0===d.availableRoles.length))},dependencies:[a.sg,a.O5,w.ey,y.KE,y.hX,H.lW,me.SP,me.uD,me.uX,me.Vc,G.gD,F.Ou,E.w,T.W,Te.t,P.C,a.i8,Q.X$,L.i]}),l})()},17672:(te,j,o)=>{o.d(j,{o:()=>_});var r=o(96308),A=o(30671),n=o(95017),m=o(81591),R=o(61744),s=o(9244),t=o(94650),e=o(89383),Q=o(36895),K=o(59549),a=o(284),w=o(24006),y=o(97392),U=o(4859),H=o(56709),G=o(10266),F=o(98380),E=o(18750),I=o(9185),P=o(8231),L=o(14849);function V(u,v){if(1&u){const f=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(g){t.CHM(f);const N=t.oxw(2);return t.KtG(g?N.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&u){const f=t.oxw().ngIf,D=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,f.all)))("checked",D.selection.hasValue()&&f.all)("indeterminate",D.selection.hasValue()&&!f.all)}}const W=function(u){return{name:u}};function oe(u,v){if(1&u){const f=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(g){const c=t.CHM(f).$implicit,T=t.oxw(2);return t.KtG(g?T.selection.toggle(c):null)})("click",function(g){return g.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&u){const f=v.$implicit,D=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,D.selection.isSelected(f)),t.VKq(7,W,f.tagName)))("checked",D.selection.isSelected(f))}}function ne(u,v){1&u&&(t.ynx(0,14),t.YNc(1,V,4,7,"th",15),t.YNc(2,oe,4,9,"td",16),t.BQk())}function B(u,v){1&u&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&u&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")," "))}function $(u,v){if(1&u&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&u){const f=v.$implicit;t.xp6(1),t.Oqu(f.id)}}function b(u,v){1&u&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&u&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")," "))}function h(u,v){if(1&u&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&u){const f=t.oxw().$implicit;t.xp6(1),t.hij(" ",f.tagName," ")}}function J(u,v){if(1&u){const f=t.EpF();t.TgZ(0,"div")(1,"mat-form-field")(2,"input",26),t.NdJ("ngModelChange",function(g){t.CHM(f);const N=t.oxw().$implicit;return t.KtG(N.tagName=g)}),t.qZA()()()}if(2&u){const f=t.oxw().$implicit;t.xp6(2),t.Q6J("ngModel",f.tagName)}}function C(u,v){if(1&u&&(t.TgZ(0,"td",24),t.YNc(1,h,2,1,"div",25),t.YNc(2,J,3,1,"div",25),t.qZA()),2&u){const f=v.$implicit,D=t.oxw();t.xp6(1),t.Q6J("ngIf",!D.isChanging.isSelected(f)),t.xp6(1),t.Q6J("ngIf",D.isChanging.isSelected(f))}}function Y(u,v){1&u&&t._UZ(0,"th",23)}function k(u,v){if(1&u){const f=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(f);const g=t.oxw().$implicit,N=t.oxw();return t.KtG(N.edit(g))}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA()()}2&u&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function X(u,v){if(1&u){const f=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(f);const g=t.oxw().$implicit,N=t.oxw();return t.KtG(N.save(g))}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"save"),t.qZA()()}2&u&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function se(u,v){if(1&u&&(t.TgZ(0,"td",24)(1,"div",27),t.YNc(2,k,4,3,"button",28),t.YNc(3,X,4,3,"button",28),t.qZA()()),2&u){const f=v.$implicit,D=t.oxw();t.xp6(2),t.Q6J("ngIf",!D.isChanging.isSelected(f)),t.xp6(1),t.Q6J("ngIf",D.isChanging.isSelected(f))}}function ae(u,v){1&u&&t._UZ(0,"tr",30)}function re(u,v){1&u&&t._UZ(0,"tr",31)}function M(u,v){if(1&u&&(t.TgZ(0,"perun-web-apps-alert",32),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&u){const f=t.oxw();t.xp6(1),t.hij(" ","vo"===f.entity?t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):t.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function S(u,v){1&u&&(t.TgZ(0,"perun-web-apps-alert",32),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&u&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const p=function(u){return{all:u}};let _=(()=>{class u{constructor(f,D,g,N,c){this.resourceManager=f,this.notificator=D,this.translator=g,this.authResolver=N,this.tableCheckbox=c,this.resourceTags=[],this.selection=new n.Ov(!0,[]),this.displayedColumns=["select","id","name","edit"],this.isChanging=new n.Ov(!0,[]),this.pageSizeOptions=s.f7}set matSort(f){this.sort=f,this.setDataSource()}static getDataForColumn(f,D){switch(D){case"id":return f.id.toString();case"name":return f.tagName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(f=>"id"!==f)),this.dataSource=new A.by(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(f){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,u.getDataForColumn),f)}exportDisplayedData(f){const D=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,g=D+this.dataSource.paginator.pageSize;(0,s.O6)((0,s.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(D,g),this.displayedColumns,u.getDataForColumn),f)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(f,D)=>(0,s.Sd)(f,D,this.displayedColumns,u.getDataForColumn),this.dataSource.sortData=(f,D)=>(0,s.pR)(f,D,u.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}save(f){this.resourceManager.updateResourceTag({resourceTag:f}).subscribe(()=>{this.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(D=>{this.notificator.showSuccess(D)}),this.isChanging.deselect(f)})}edit(f){this.isChanging.select(f)}}return u.\u0275fac=function(f){return new(f||u)(t.Y36(R.xk),t.Y36(m.V6),t.Y36(e.sK),t.Y36(m.x4),t.Y36(m.UA))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-resources-tags-list"]],viewQuery:function(f,D){if(1&f&&(t.Gf(s.l9,7),t.Gf(r.YE,7)),2&f){let g;t.iGM(g=t.CRH())&&(D.child=g.first),t.iGM(g=t.CRH())&&(D.matSort=g.first)}},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",tableId:"tableId",displayedColumns:"displayedColumns",entity:"entity"},features:[t.TTD],decls:18,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","edit"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["matInput","",3,"ngModel","ngModelChange"],[1,"d-flex","justify-content-end"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(f,D){1&f&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(N){return D.exportDisplayedData(N)})("exportAllData",function(N){return D.exportAllData(N)}),t.TgZ(2,"table",2),t.YNc(3,ne,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,B,3,3,"th",5),t.YNc(7,$,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,b,3,3,"th",8),t.YNc(10,C,3,2,"td",9),t.BQk(),t.ynx(11,10),t.YNc(12,Y,1,0,"th",8),t.YNc(13,se,4,2,"td",9),t.BQk(),t.YNc(14,ae,1,0,"tr",11),t.YNc(15,re,1,0,"tr",12),t.qZA()()(),t.YNc(16,M,4,5,"perun-web-apps-alert",13),t.YNc(17,S,3,3,"perun-web-apps-alert",13)),2&f&&(t.Q6J("hidden",0===D.resourceTags.length||0===D.dataSource.filteredData.length),t.xp6(1),t.Q6J("pageSizeOptions",D.pageSizeOptions)("dataLength",D.dataSource.filteredData.length)("tableId",D.tableId),t.xp6(1),t.Q6J("dataSource",D.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,p,t.xi3(4,10,D.dataSource,D.selection.selected.length))),t.xp6(11),t.Q6J("matHeaderRowDef",D.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",D.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===D.resourceTags.length),t.xp6(1),t.Q6J("ngIf",0===D.dataSource.filteredData.length&&0!==D.resourceTags.length))},dependencies:[Q.O5,K.KE,a.Nt,w.Fj,w.JJ,w.On,y.Hw,U.lW,r.YE,r.nU,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,H.oG,G.gM,F.w,E.l,e.X$,I.I,P.G,L.r]}),u})()},22158:(te,j,o)=>{o.d(j,{T:()=>A});var r=o(77579);const A=(n=class{})=>class extends n{constructor(){super(...arguments),this.destroyed$=new r.x}ngOnDestroy(){this.destroyed$.next()}}},90439:(te,j,o)=>{o.d(j,{F:()=>m});var r=o(94650),A=o(89593),n=o(89383);let m=(()=>{class R{constructor(){this.servicePackages=[],this.selectedPackage=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.packageSelected=new r.vpe,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.description,this.searchFunction=t=>t.name+t.description}}return R.\u0275fac=function(t){return new(t||R)},R.\u0275cmp=r.Xpm({type:R,selectors:[["perun-web-apps-service-package-search-select"]],inputs:{servicePackages:"servicePackages",selectedPackage:"selectedPackage",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{packageSelected:"packageSelected"},decls:4,vars:17,consts:[[3,"entities","entity","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(t,e){1&t&&(r.TgZ(0,"perun-web-apps-entity-search-select",0),r.NdJ("entitySelected",function(K){return e.packageSelected.emit(K)}),r.ALo(1,"translate"),r.ALo(2,"translate"),r.ALo(3,"translate"),r.qZA()),2&t&&r.Q6J("entities",e.servicePackages)("entity",e.selectedPackage)("multiple",e.multiple)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",r.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.SELECT_PACKAGE"))("findPlaceholder",r.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.FIND_PACKAGE"))("noEntriesText",r.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.NO_PACKAGE_FOUND"))("theme",e.theme)},dependencies:[A.i,n.X$]}),R})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[907],{15003:(te,j,o)=>{o.d(j,{G:()=>A});var r=o(94650);let A=(()=>{class n{constructor(){this.entityDetailChange=new r.vpe}reloadEntityDetail(){this.entityDetailChange.emit()}}return n.\u0275fac=function(R){return new(R||n)},n.\u0275prov=r.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})()},76023:(te,j,o)=>{o.d(j,{y:()=>H});var r=o(61744),A=o(10036),n=o(81591),m=o(94650),R=o(94364),s=o(36895),t=o(51572),e=o(96214),Q=o(38383),K=o(64901),a=o(89383);function w(G,F){1&G&&m._UZ(0,"mat-spinner",5)}const y=function(){return["id","fullName"]};function U(G,F){if(1&G){const E=m.EpF();m.TgZ(0,"perun-web-apps-members-list",6),m.NdJ("updateTable",function(){m.CHM(E);const P=m.oxw();return m.KtG(P.refreshTable())}),m.qZA()}if(2&G){const E=m.oxw();m.Q6J("displayedColumns",m.DdM(5,y))("disableRouting",!E.routeAuth)("filter",E.filterValue)("members",E.members)("tableId",E.tableId)}}let H=(()=>{class G{constructor(E,I,P,L){this.route=E,this.resourceService=I,this.authResolver=P,this.entityStorageService=L,this.loading=!1,this.filterValue="",this.tableId=A.iQ}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resource.id).subscribe(E=>{this.members=E,this.setAuthRights(),this.loading=!1})}setAuthRights(){0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.members[0]]))}applyFilter(E){this.filterValue=E}}return G.\u0275fac=function(E){return new(E||G)(m.Y36(R.gz),m.Y36(r.xk),m.Y36(n.x4),m.Y36(n.fb))},G.\u0275cmp=m.Xpm({type:G,selectors:[["app-resource-assigned-members"]],decls:7,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable"]],template:function(E,I){1&E&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return I.refreshTable()}),m.qZA(),m.TgZ(4,"perun-web-apps-debounce-filter",2),m.NdJ("filter",function(L){return I.applyFilter(L)}),m.qZA(),m.YNc(5,w,1,0,"mat-spinner",3),m.YNc(6,U,1,6,"perun-web-apps-members-list",4)),2&E&&(m.xp6(1),m.Oqu(m.lcZ(2,4,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),m.xp6(3),m.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_MEMBERS.FILTER"),m.xp6(1),m.Q6J("ngIf",I.loading),m.xp6(1),m.Q6J("ngIf",!I.loading))},dependencies:[s.O5,t.Ou,e.t,Q.O,K.P,a.X$]}),G})()},49546:(te,j,o)=>{o.d(j,{D:()=>re});var r=o(61744),A=o(10036),n=o(95017),m=o(9244),R=o(65412),s=o(81591),t=o(94650),e=o(89383),Q=o(36895),K=o(4859),a=o(3848),w=o(51572),y=o(64901),U=o(90439),H=o(60205);function G(M,S){1&M&&t._UZ(0,"mat-spinner",6)}const F=function(){return["id","name","enabled","description"]};function E(M,S){if(1&M&&t._UZ(0,"app-services-list",16),2&M){const p=t.oxw(2);t.Q6J("disableRouting",!0)("services",p.filteredServices)("displayedColumns",t.DdM(5,F))("selection",p.selection)("tableId",p.tableId)}}const I=function(){return["select","id","name","enabled","description"]};function P(M,S){if(1&M){const p=t.EpF();t.TgZ(0,"div",7)(1,"mat-tab-group",8),t.NdJ("selectedTabChange",function(){t.CHM(p);const u=t.oxw();return t.KtG(u.tabChanged())}),t.TgZ(2,"mat-tab",9),t.ALo(3,"translate"),t.TgZ(4,"div",10)(5,"perun-web-apps-debounce-filter",11),t.NdJ("filter",function(u){t.CHM(p);const v=t.oxw();return t.KtG(v.applyFilter(u))}),t.ALo(6,"translate"),t.qZA()(),t._UZ(7,"app-services-list",12),t.qZA(),t.TgZ(8,"mat-tab",9),t.ALo(9,"translate"),t.TgZ(10,"div",13)(11,"perun-web-apps-service-package-search-select",14),t.NdJ("packageSelected",function(u){t.CHM(p);const v=t.oxw();return t.KtG(v.servicePackageSelected(u))}),t.qZA()(),t.YNc(12,E,1,6,"app-services-list",15),t.qZA()()()}if(2&M){const p=t.oxw();t.xp6(2),t.s9C("label",t.lcZ(3,12,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_SERVICE")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,14,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.FILTER_DESCRIPTION")),t.xp6(2),t.Q6J("services",p.unAssignedServices)("disableRouting",!0)("displayedColumns",t.DdM(18,I))("filterValue",p.filterValue)("selection",p.selection)("tableId",p.tableId),t.xp6(1),t.s9C("label",t.lcZ(9,16,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_PACKAGE")),t.xp6(3),t.Q6J("selectedPackage",p.selectedPackage)("servicePackages",p.servicePackages),t.xp6(1),t.Q6J("ngIf",-1!==p.selectedPackage.id)}}let L=(()=>{class M{constructor(p,_,u,v,f,D){this.dialogRef=p,this.data=_,this.notificator=u,this.translate=v,this.resourceManager=f,this.servicesManager=D,this.loading=!1,this.unAssignedServices=[],this.filteredServices=[],this.servicePackages=[],this.selectedPackage={name:"Not selected",description:"",id:-1,beanName:"ServicePackage"},this.selection=new n.Ov(!0,[]),this.tableId=A.DR,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(p=>{this.servicesManager.getServices().subscribe(_=>{this.servicesManager.getServicesPackages().subscribe(u=>{this.servicePackages.push(this.selectedPackage),this.servicePackages=this.servicePackages.concat(u),this.unAssignedServices=_;for(const v of p)for(const f of _)v.id===f.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(f),1);this.loading=!1})})})}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0,-1!==this.selectedPackage.id?this.addServicePackage():this.addServices()}applyFilter(p){this.filterValue=p}servicePackageSelected(p){this.selectedPackage=p,-1!==p.id?this.servicesManager.getServicesFromServicesPackage(p.id).subscribe(_=>{this.filteredServices=_}):this.filteredServices=[]}tabChanged(){this.selection.clear(),this.filterValue="",this.selectedPackage=this.servicePackages[0]}addServicePackage(){this.resourceManager.assignServicesPackage(this.data.resourceId,this.selectedPackage.id).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.PACKAGE_SUCCESS_MESSAGE").subscribe(p=>{this.notificator.showSuccess(p),0!==this.selection.selected.length?this.addServices():this.dialogRef.close(!0)})},()=>this.loading=!1)}addServices(){const p=[];for(const _ of this.selection.selected)p.push(_.id);this.resourceManager.assignServices(this.data.resourceId,p).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SERVICE_SUCCESS_MESSAGE").subscribe(_=>{this.notificator.showSuccess(_),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return M.\u0275fac=function(p){return new(p||M)(t.Y36(R.so),t.Y36(R.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(r.xk),t.Y36(r.KK))},M.\u0275cmp=t.Xpm({type:M,selectors:[["app-perun-web-apps-assign-service-to-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"selectedTabChange"],[3,"label"],[1,"mt-2"],[3,"placeholder","filter"],[3,"services","disableRouting","displayedColumns","filterValue","selection","tableId"],[1,"mt-3"],[3,"selectedPackage","servicePackages","packageSelected"],[3,"disableRouting","services","displayedColumns","selection","tableId",4,"ngIf"],[3,"disableRouting","services","displayedColumns","selection","tableId"]],template:function(p,_){1&p&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,G,1,0,"mat-spinner",1),t.YNc(5,P,13,19,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return _.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return _.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&p&&(t.Tol(_.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",_.loading),t.xp6(1),t.Q6J("ngIf",!_.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===_.selection.selected.length&&-1===_.selectedPackage.id||_.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE."+(-1===_.selectedPackage.id?"ADD_SERVICES":"ADD_PACKAGE"))," "))},dependencies:[Q.O5,K.lW,a.SP,a.uX,R.uh,R.xY,R.H8,w.Ou,y.P,U.F,H.Q,e.X$]}),M})();var V=o(30671);function W(M,S){1&M&&t._UZ(0,"mat-spinner",6)}function oe(M,S){1&M&&t._UZ(0,"th",15)}function ne(M,S){if(1&M&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&M){const p=S.$implicit;t.xp6(1),t.Oqu(p.name)}}function B(M,S){1&M&&t._UZ(0,"tr",17)}function $(M,S){1&M&&t._UZ(0,"tr",18)}function b(M,S){if(1&M&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,oe,1,0,"th",11),t.YNc(10,ne,2,1,"td",12),t.BQk(),t.YNc(11,B,1,0,"tr",13),t.YNc(12,$,1,0,"tr",14),t.qZA()()),2&M){const p=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.ASK")," "),t.xp6(2),t.Q6J("dataSource",p.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",p.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",p.displayedColumns)}}let h=(()=>{class M{constructor(p,_,u,v,f){this.dialogRef=p,this.data=_,this.notificator=u,this.translate=v,this.resourcesManager=f,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new V.by(this.data.services)}onSubmit(){this.loading=!0;const p=[];for(const _ of this.data.services)p.push(_.id);this.resourcesManager.removeServices(this.data.resourceId,p).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(_=>{this.notificator.showSuccess(_),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return M.\u0275fac=function(p){return new(p||M)(t.Y36(R.so),t.Y36(R.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(r.xk))},M.\u0275cmp=t.Xpm({type:M,selectors:[["app-perun-web-apps-remove-service-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(p,_){1&p&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,W,1,0,"mat-spinner",1),t.YNc(5,b,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return _.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return _.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&p&&(t.Tol(_.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",_.loading),t.xp6(1),t.Q6J("ngIf",!_.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",_.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},dependencies:[Q.O5,K.lW,V.BZ,V.fO,V.as,V.w1,V.Dz,V.nj,V.ge,V.ev,V.XQ,V.Gk,R.uh,R.xY,R.H8,w.Ou,e.X$]}),M})();var J=o(94364),C=o(96214),Y=o(7434);function k(M,S){if(1&M){const p=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(p);const u=t.oxw();return t.KtG(u.addService())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&M&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_SERVICES.ADD_SERVICE"),"\n"))}function X(M,S){if(1&M){const p=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(p);const u=t.oxw();return t.KtG(u.removeServices())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&M){const p=t.oxw();t.Q6J("disabled",0===p.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"RESOURCE_DETAIL.ASSIGNED_SERVICES.REMOVE_SERVICE"),"\n")}}function se(M,S){1&M&&t._UZ(0,"mat-spinner",9)}function ae(M,S){if(1&M&&t._UZ(0,"app-services-list",10),2&M){const p=t.oxw();t.Q6J("disableRouting",!p.serviceRoutingAuth)("selection",p.selected)("displayedColumns",p.displayedColumns)("filterValue",p.filterValue)("services",p.assignedServices)("tableId",p.tableId)}}let re=(()=>{class M{constructor(p,_,u,v,f){this.route=p,this.resourcesManager=_,this.dialog=u,this.guiAuthResolver=v,this.entityStorageService=f,this.assignedServices=[],this.selected=new n.Ov(!0,[]),this.tableId=A.uC,this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.getDataForAuthorization(),this.loadAllServices()}loadAllServices(){this.loading=!0,this.resourcesManager.getAssignedServicesToResource(this.resource.id).subscribe(p=>{this.assignedServices=p,this.selected.clear(),this.loading=!1})}addService(){const p=(0,m.kZ)();p.width="800px",p.data={theme:"resource-theme",resourceId:this.resource.id},this.dialog.open(L,p).afterClosed().subscribe(u=>{u&&this.loadAllServices()})}removeServices(){const p=(0,m.kZ)();p.width="500px",p.data={theme:"resource-theme",resourceId:this.resource.id,services:this.selected.selected},this.dialog.open(h,p).afterClosed().subscribe(u=>{u&&this.loadAllServices()})}applyFilter(p){this.filterValue=p}getDataForAuthorization(){this.assignServiceAuth=this.guiAuthResolver.isAuthorized("assignServices_Resource_List_policy",[this.resource]),this.removeServiceAuth=this.guiAuthResolver.isAuthorized("removeServices_Resource_List_policy",[this.resource]),this.displayedColumns=this.removeServiceAuth?["select","id","name","enabled","script","description"]:["id","name","enabled","script","description"],this.serviceRoutingAuth=this.guiAuthResolver.isPerunAdminOrObserver()}}return M.\u0275fac=function(p){return new(p||M)(t.Y36(J.gz),t.Y36(r.xk),t.Y36(R.uw),t.Y36(s.x4),t.Y36(s.fb))},M.\u0275cmp=t.Xpm({type:M,selectors:[["app-perun-web-apps-resource-assigned-services"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","displayedColumns","filterValue","services","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","displayedColumns","filterValue","services","tableId"]],template:function(p,_){1&p&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return _.loadAllServices()}),t.qZA(),t.YNc(4,k,3,3,"button",2),t.YNc(5,X,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(v){return _.applyFilter(v)}),t.qZA(),t.YNc(7,se,1,0,"mat-spinner",5),t.YNc(8,ae,1,6,"app-services-list",6)),2&p&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),t.xp6(3),t.Q6J("ngIf",_.assignServiceAuth),t.xp6(1),t.Q6J("ngIf",_.removeServiceAuth),t.xp6(1),t.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),t.xp6(1),t.Q6J("ngIf",_.loading),t.xp6(1),t.Q6J("ngIf",!_.loading))},dependencies:[Q.O5,K.lW,w.Ou,H.Q,C.t,Y.L,e.X$]}),M})()},92090:(te,j,o)=>{o.d(j,{X:()=>F});var r=o(81591),A=o(61744),n=o(94650),m=o(36895),R=o(3848),s=o(48323),t=o(12651),e=o(89383);function Q(E,I){1&E&&(n._uU(0),n.ALo(1,"translate")),2&E&&n.hij(" ",n.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function K(E,I){if(1&E&&n._UZ(0,"app-one-entity-attribute-page",4),2&E){const P=n.oxw();n.Q6J("entityId",P.resource.id)("entity","resource")}}function a(E,I){1&E&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&E&&n.AsE(" ",n.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",n.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function w(E,I){if(1&E&&n._UZ(0,"app-two-entity-attribute-page",5),2&E){const P=n.oxw(2);n.Q6J("firstEntity","resource")("firstEntityId",P.resource.id)("secondEntity","member")}}function y(E,I){1&E&&(n.TgZ(0,"mat-tab"),n.YNc(1,a,3,6,"ng-template",1),n.YNc(2,w,1,3,"ng-template",2),n.qZA())}function U(E,I){1&E&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&E&&n.AsE(" ",n.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",n.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function H(E,I){if(1&E&&n._UZ(0,"app-two-entity-attribute-page",5),2&E){const P=n.oxw(2);n.Q6J("firstEntity","resource")("firstEntityId",P.resource.id)("secondEntity","group")}}function G(E,I){1&E&&(n.TgZ(0,"mat-tab"),n.YNc(1,U,3,6,"ng-template",1),n.YNc(2,H,1,3,"ng-template",2),n.qZA())}let F=(()=>{class E{constructor(P,L,V){this.authResolver=P,this.resourceManager=L,this.entityStorageService=V}ngOnInit(){this.resource=this.entityStorageService.getEntity(),this.resourceGroupAttAuth=this.authResolver.isAuthorized("getGroupAssignments_Resource_policy",[this.resource]),this.resourceMemberAttAuth=this.authResolver.isAuthorized("getAssignedMembersWithStatus_Resource_policy",[this.resource])}}return E.\u0275fac=function(P){return new(P||E)(n.Y36(r.x4),n.Y36(A.xk),n.Y36(r.fb))},E.\u0275cmp=n.Xpm({type:E,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(P,L){2&P&&n.ekj("router-component",L.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(P,L){1&P&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-tab-group")(5,"mat-tab"),n.YNc(6,Q,2,3,"ng-template",1),n.YNc(7,K,1,2,"ng-template",2),n.qZA(),n.YNc(8,y,3,0,"mat-tab",3),n.YNc(9,G,3,0,"mat-tab",3),n.qZA()()),2&P&&(n.xp6(2),n.Oqu(n.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),n.xp6(6),n.Q6J("ngIf",L.resourceMemberAttAuth),n.xp6(1),n.Q6J("ngIf",L.resourceGroupAttAuth))},dependencies:[m.O5,R.SP,R.uD,R.uX,R.Vc,s.Y,t.t,e.X$]}),E})()},98918:(te,j,o)=>{o.d(j,{b:()=>M});var r=o(36769),A=o(69024),n=o(61744),m=o(9244),R=o(81591),s=o(19516),t=o(21029),e=o(533),Q=o(22158),K=o(82722),a=o(94650),w=o(94364),y=o(77968),U=o(65412),H=o(15003),G=o(36895),F=o(97392),E=o(4859),I=o(51572),P=o(10266),L=o(61283),V=o(4235),W=o(34198),oe=o(55660),ne=o(89383);function B(S,p){1&S&&a._UZ(0,"mat-spinner",3)}function $(S,p){if(1&S){const _=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){a.CHM(_);const v=a.oxw(2);return a.KtG(v.editResource())}),a.TgZ(1,"mat-icon"),a._uU(2,"edit"),a.qZA()()}}function b(S,p){if(1&S){const _=a.EpF();a.TgZ(0,"button",15),a.NdJ("click",function(){a.CHM(_);const v=a.oxw(2);return a.KtG(v.deleteResource())}),a.TgZ(1,"mat-icon"),a._uU(2,"delete_forever"),a.qZA()()}}const h=function(S){return["/organizations",S]};function J(S,p){if(1&S&&(a.TgZ(0,"a",8),a.NdJ("auxclick",function(u){return u.preventDefault()}),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.Q6J("perunWebAppsMiddleClickRouterLink",a.VKq(4,h,_.resource.vo.id.toString()))("routerLink",a.VKq(6,h,_.resource.vo.id)),a.uIk("data-cy",_.resource.vo.name),a.xp6(1),a.Oqu(_.resource.vo.name)}}function C(S,p){if(1&S&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.xp6(1),a.hij(" ",_.resource.vo.name," ")}}const Y=function(S){return["/facilities",S]};function k(S,p){if(1&S&&(a.TgZ(0,"a",8),a.NdJ("auxclick",function(u){return u.preventDefault()}),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.Q6J("perunWebAppsMiddleClickRouterLink",a.VKq(4,Y,_.resource.facilityId.toString()))("routerLink",a.VKq(6,Y,_.resource.facilityId)),a.uIk("data-cy",_.resource.facility.name),a.xp6(1),a.Oqu(_.resource.facility.name)}}function X(S,p){if(1&S&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.xp6(1),a.hij(" ",_.resource.facility.name," ")}}const se=function(){return{color:"black"}},ae=function(S){return[S]};function re(S,p){if(1&S&&(a.TgZ(0,"div")(1,"div",4),a._UZ(2,"mat-icon",5),a.ALo(3,"translate"),a.TgZ(4,"div",6)(5,"div",7)(6,"a",8),a.NdJ("auxclick",function(u){return u.preventDefault()}),a._uU(7),a.qZA(),a.TgZ(8,"span",9),a._uU(9),a.qZA(),a.YNc(10,$,3,0,"button",10),a.YNc(11,b,3,0,"button",11),a.qZA(),a.TgZ(12,"div"),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.TgZ(15,"span",12),a._uU(16),a.ALo(17,"translate"),a.ALo(18,"translate"),a.YNc(19,J,2,8,"a",13),a.YNc(20,C,2,1,"span",2),a._uU(21),a.ALo(22,"translate"),a.YNc(23,k,2,8,"a",13),a.YNc(24,X,2,1,"span",2),a._uU(25),a.ALo(26,"translate"),a.qZA()()(),a._UZ(27,"app-animated-router-outlet"),a.qZA()),2&S){const _=a.oxw();a.xp6(2),a.s9C("matTooltip",a.lcZ(3,21,"RESOURCE_DETAIL.ENTITY")),a.Q6J("ngStyle",a.DdM(33,se)),a.xp6(4),a.Q6J("perunWebAppsMiddleClickRouterLink",a.VKq(34,ae,_.baseUrl))("routerLink",a.VKq(36,ae,_.baseUrl)),a.xp6(1),a.hij(" ",_.resource.name," "),a.xp6(2),a.hij(" \xa0#",_.resource.id," "),a.xp6(1),a.Q6J("ngIf",_.editResourceAuth),a.xp6(1),a.Q6J("ngIf",_.deleteAuth),a.xp6(2),a.AsE("",a.lcZ(14,23,"RESOURCE_DETAIL.UUID"),": ",_.resource.uuid,""),a.xp6(3),a.AsE(" ",a.lcZ(17,25,"RESOURCE_DETAIL.ENTITY"),", ",a.lcZ(18,27,"RESOURCE_DETAIL.VO"),": "),a.xp6(3),a.Q6J("ngIf",_.voLinkAuth),a.xp6(1),a.Q6J("ngIf",!_.voLinkAuth),a.xp6(1),a.AsE(" #",_.resource.voId,", ",a.lcZ(22,29,"RESOURCE_DETAIL.FACILITY"),": "),a.xp6(2),a.Q6J("ngIf",_.facilityLinkAuth),a.xp6(1),a.Q6J("ngIf",!_.facilityLinkAuth),a.xp6(1),a.lnq(" #",_.resource.facilityId,", ",a.lcZ(26,31,"RESOURCE_DETAIL.DESCRIPTION"),": ",_.resource.description," ")}}let M=(()=>{class S extends((0,Q.T)()){constructor(_,u,v,f,D,g,N,c,T,Z,q){super(),this.route=_,this.facilityManager=u,this.vosManagerService=v,this.resourcesManager=f,this.sideMenuService=D,this.sideMenuItemService=g,this.dialog=N,this.guiAuthResolver=c,this.router=T,this.entityStorageService=Z,this.reloadEntityDetail=q,this.underVoUrl=!1,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,K.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(_=>{const u=Number(_.resourceId);this.resourcesManager.getRichResourceById(u).subscribe(v=>{this.resource=v,this.entityStorageService.setEntity({id:v.id,voId:v.voId,facilityId:v.facilityId,beanName:"Resource"}),this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new s.r5).transform(v,!1),this.facilityManager.getFacilityById(v.facilityId).subscribe(f=>{this.facility=f,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new s.r5).transform(v,!0),this.vosManagerService.getVoById(v.voId).subscribe(f=>{this.vo=f,this.underVoUrl=!0,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)),(0,m.sF)("resources",this.resource)})})}setMenuItems(){let _;const u=this.sideMenuItemService.parseResource(this.resource,this.underVoUrl);this.underVoUrl?(_=this.sideMenuItemService.parseVo(this.vo),this.sideMenuService.setAccessMenuItems([_,u])):(_=this.sideMenuItemService.parseFacility(this.facility),this.sideMenuService.setFacilityMenuItems([_,u]))}editResource(){let _;this.resourcesManager.getResourceById(this.resource.id).subscribe(u=>{_=u;const v=(0,m.kZ)();v.width="450px",v.data={theme:"resource-theme",resource:_,dialogType:t.Eg.RESOURCE},this.dialog.open(t.rd,v).afterClosed().subscribe(D=>{D&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(g=>{this.resource=g,this.setMenuItems()})})})}deleteResource(){const _=(0,m.kZ)();_.width="500px",_.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(e.f,_).afterClosed().subscribe(v=>{v&&this.router.navigate(["../"],{relativeTo:this.route,queryParamsHandling:"preserve"})})}setAuth(){this.facilityLinkAuth=this.guiAuthResolver.isAuthorized("getFacilityById_int_policy",[this.resource]),this.editResourceAuth=this.guiAuthResolver.isAuthorized("updateResource_Resource_policy",[this.resource]),this.voLinkAuth=this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.resource]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteResource_Resource_policy",[this.resource])}}return S.\u0275fac=function(_){return new(_||S)(a.Y36(w.gz),a.Y36(n.IQ),a.Y36(n.YF),a.Y36(n.xk),a.Y36(y.D),a.Y36(A.V),a.Y36(U.uw),a.Y36(R.x4),a.Y36(w.F0),a.Y36(R.fb),a.Y36(H.G))},S.\u0275cmp=a.Xpm({type:S,selectors:[["app-resource-detail-page"]],features:[a.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","resource-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-resource-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"resource-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],["aria-label","Edit resource","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["class","resource-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick",4,"ngIf"],["aria-label","Edit resource","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"]],template:function(_,u){1&_&&(a.TgZ(0,"div",0),a._UZ(1,"perun-web-apps-back-button"),a.YNc(2,B,1,0,"mat-spinner",1),a.YNc(3,re,28,38,"div",2),a.qZA()),2&_&&(a.xp6(2),a.Q6J("ngIf",u.loading),a.xp6(1),a.Q6J("ngIf",!u.loading&&void 0!==u.resource))},dependencies:[G.O5,G.PC,w.yS,F.Hw,E.lW,I.Ou,P.gM,L.A,V.W,W.Y,oe.Q,ne.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[r.Ji]}}),S})()},258:(te,j,o)=>{o.d(j,{K:()=>D});var r=o(61744),A=o(95017),n=o(65412),m=o(30671),R=o(81591),s=o(94650),t=o(89383),e=o(36895),Q=o(4859),K=o(51572);function a(g,N){1&g&&s._UZ(0,"mat-spinner",6)}function w(g,N){1&g&&s._UZ(0,"th",15)}function y(g,N){if(1&g&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&g){const c=N.$implicit;s.xp6(1),s.Oqu(c.name)}}function U(g,N){1&g&&s._UZ(0,"tr",17)}function H(g,N){1&g&&s._UZ(0,"tr",18)}function G(g,N){if(1&g&&(s.TgZ(0,"div",7)(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",8),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",9),s.ynx(8,10),s.YNc(9,w,1,0,"th",11),s.YNc(10,y,2,1,"td",12),s.BQk(),s.YNc(11,U,1,0,"tr",13),s.YNc(12,H,1,0,"tr",14),s.qZA()()),2&g){const c=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),s.xp6(2),s.Q6J("dataSource",c.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",c.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",c.displayedColumns)}}let F=(()=>{class g{constructor(c,T,Z,q,z){this.dialogRef=c,this.data=T,this.notificator=Z,this.translate=q,this.resourceManager=z,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new m.by(this.data.groups)}onCancel(){this.dialogRef.close()}onSubmit(){const c=[];for(const T of this.data.groups)c.push(T.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(c,this.data.resourceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(T=>{this.notificator.showSuccess(T),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return g.\u0275fac=function(c){return new(c||g)(s.Y36(n.so),s.Y36(n.WI),s.Y36(R.V6),s.Y36(t.sK),s.Y36(r.xk))},g.\u0275cmp=s.Xpm({type:g,selectors:[["app-perun-web-apps-remove-group-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","","data-cy","delete-button",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(c,T){1&c&&(s.TgZ(0,"div")(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,a,1,0,"mat-spinner",1),s.YNc(5,G,13,9,"div",2),s.TgZ(6,"div",3)(7,"button",4),s.NdJ("click",function(){return T.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return T.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA()()()),2&c&&(s.Tol(T.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",T.loading),s.xp6(1),s.Q6J("ngIf",!T.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",T.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},dependencies:[e.O5,Q.lW,m.BZ,m.fO,m.as,m.w1,m.Dz,m.nj,m.ge,m.ev,m.XQ,m.Gk,n.uh,n.xY,n.H8,K.Ou,t.X$]}),g})();var E=o(10036),I=o(24006),P=o(90455),L=o(86257),V=o(25788),W=o(64901);const oe=["stepper"];function ne(g,N){1&g&&s._UZ(0,"mat-spinner",4)}function B(g,N){1&g&&(s._uU(0),s.ALo(1,"translate")),2&g&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.GROUPS"))}function $(g,N){1&g&&(s._uU(0),s.ALo(1,"translate")),2&g&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.OPTIONS"))}const b=function(){return["select","id","name","description"]};function h(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),s.YNc(4,B,2,3,"ng-template",9),s.TgZ(5,"perun-web-apps-debounce-filter",10),s.NdJ("filter",function(Z){s.CHM(c);const q=s.oxw();return s.KtG(q.applyFilter(Z))}),s.ALo(6,"translate"),s.qZA(),s._UZ(7,"perun-web-apps-groups-list",11),s.qZA(),s.TgZ(8,"mat-step"),s.YNc(9,$,2,3,"ng-template",9),s.TgZ(10,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.changeSubgroupsMessage())})("ngModelChange",function(Z){s.CHM(c);const q=s.oxw();return s.KtG(q.autoAssignSubgroups=Z)}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"div",13),s._UZ(14,"i",14),s.qZA(),s.TgZ(15,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.changeInactiveMessage())})("ngModelChange",function(Z){s.CHM(c);const q=s.oxw();return s.KtG(q.asActive=Z)}),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"div",13),s._uU(19),s.qZA(),s.TgZ(20,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.changeAsyncMessage())})("ngModelChange",function(Z){s.CHM(c);const q=s.oxw();return s.KtG(q.async=Z)}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.TgZ(23,"div",13),s._uU(24),s.qZA()()()()}if(2&g){const c=s.oxw();s.xp6(1),s.Q6J("linear",!0),s.xp6(2),s.Q6J("completed",0!==c.selection.selected.length&&c.canAddGroups()),s.xp6(2),s.s9C("placeholder",s.lcZ(6,19,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),s.xp6(2),s.Q6J("disableMembers",!1)("groups",c.unAssignedGroups)("selection",c.selection)("disableRouting",!0)("displayedColumns",s.DdM(27,b))("filter",c.filterValue)("tableId",c.tableId),s.xp6(3),s.Q6J("ngModel",c.autoAssignSubgroups),s.xp6(1),s.hij(" ",s.lcZ(12,21,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS")," "),s.xp6(3),s.Q6J("innerHTML",c.autoAssignHint,s.oJD),s.xp6(1),s.Q6J("ngModel",c.asActive),s.xp6(1),s.hij(" ",s.lcZ(17,23,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AS_ACTIVE")," "),s.xp6(3),s.hij(" ",c.asActiveHint," "),s.xp6(1),s.Q6J("ngModel",c.async),s.xp6(1),s.hij(" ",s.lcZ(22,25,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),s.xp6(3),s.hij(" ",c.asyncHint," ")}}function J(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"button",20),s.NdJ("click",function(){s.CHM(c);const Z=s.oxw(2);return s.KtG(Z.stepperPrevious())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&g&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.BACK")," "))}function C(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){s.CHM(c);const Z=s.oxw(2);return s.KtG(Z.stepperNext())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&g){const c=s.oxw(2);s.ekj("ml-2",void 0!==c.stepper&&0!==c.stepper.selectedIndex)("ml-auto",!(void 0!==c.stepper&&0!==c.stepper.selectedIndex)),s.Q6J("disabled",0===c.selection.selected.length||!c.canAddGroups()),s.xp6(1),s.hij(" ",s.lcZ(2,6,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.NEXT")," ")}}function Y(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"button",22),s.NdJ("click",function(){s.CHM(c);const Z=s.oxw(2);return s.KtG(Z.onAdd())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&g&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))}function k(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"div",15)(1,"button",16),s.NdJ("click",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.onCancel())}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,J,3,3,"button",17),s.YNc(5,C,3,8,"button",18),s.YNc(6,Y,3,3,"button",19),s.qZA()}if(2&g){const c=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,4,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),s.xp6(2),s.Q6J("ngIf",void 0!==c.stepper&&0!==c.stepper.selectedIndex),s.xp6(1),s.Q6J("ngIf",void 0!==c.stepper&&c.stepper.selectedIndex!==c.stepper._steps.length-1),s.xp6(1),s.Q6J("ngIf",void 0!==c.stepper&&c.stepper.selectedIndex===c.stepper._steps.length-1)}}let X=(()=>{class g{constructor(c,T,Z,q,z,ie,pe,ge){this.dialogRef=c,this.data=T,this.notificator=Z,this.translate=q,this.resourceManager=z,this.groupService=ie,this.guiAuthResolver=pe,this.cd=ge,this.loading=!1,this.unAssignedGroups=this.data.onlyAutoAssignedGroups,this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.selection=new A.Ov(!0,[]),this.filterValue="",this.tableId=E.cL}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resource=this.data.resource,this.autoAssignHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT"),this.resourceManager.getAssignedGroups(this.resource.id).subscribe(c=>{this.groupService.getAllGroups(this.resource.voId).subscribe(T=>{for(const Z of T)-1===c.findIndex(q=>q.id===Z.id)&&this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,Z])&&this.unAssignedGroups.push(Z);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0;const c=[];for(const T of this.selection.selected)c.push(T.id);this.resourceManager.assignGroupsToResource(c,this.resource.id,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(T=>{this.notificator.showSuccess(T),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(c){this.filterValue=c}canAddGroups(){let c=!0;return this.selection.selected.forEach(T=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,T])||(c=!1)}),c}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return g.\u0275fac=function(c){return new(c||g)(s.Y36(n.so),s.Y36(n.WI),s.Y36(R.V6),s.Y36(t.sK),s.Y36(r.xk),s.Y36(r.ff),s.Y36(R.x4),s.Y36(s.sBO))},g.\u0275cmp=s.Xpm({type:g,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],viewQuery:function(c,T){if(1&c&&s.Gf(oe,5),2&c){let Z;s.iGM(Z=s.CRH())&&(T.stepper=Z.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","","type","button","data-cy","next-button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button","data-cy","assign-button",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button","data-cy","next-button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button","data-cy","assign-button",1,"ml-2",3,"click"]],template:function(c,T){1&c&&(s.TgZ(0,"div")(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,ne,1,0,"mat-spinner",1),s.YNc(5,h,25,28,"div",2),s.YNc(6,k,7,6,"div",3),s.qZA()),2&c&&(s.Tol(T.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",T.loading),s.xp6(1),s.Q6J("ngIf",!T.loading),s.xp6(1),s.Q6J("ngIf",!T.loading&&T.stepper))},dependencies:[e.O5,I.JJ,I.On,Q.lW,n.uh,n.xY,n.H8,K.Ou,P.Rr,L.C0,L.VY,L.Vq,V.W,W.P,t.X$],styles:[".slide-text[_ngcontent-%COMP%]{font-size:1.1rem}"]}),g})();var se=o(9244),ae=o(64080),re=o(94364),M=o(10266),S=o(96214);function p(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.addGroup())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&g&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function _(g,N){1&g&&s._UZ(0,"mat-spinner",9)}const u=function(g){return[g]},v=function(){return["select","id","indirectGroupAssigment","name","status","description"]};function f(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"perun-web-apps-groups-list",10),s.NdJ("refreshTable",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.loadAllGroups())}),s.qZA()}if(2&g){const c=s.oxw();s.Q6J("disableGroups",!0)("groupsToDisableCheckbox",c.groupsToDisable)("disableMembers",!1)("groups",c.assignedGroups)("disableRouting",!!c.assignedGroups[0]&&!c.guiAuthResolver.isAuthorized("getGroupById_int_policy",s.VKq(10,u,c.assignedGroups[0])))("displayedColumns",s.DdM(12,v))("filter",c.filteredValue)("resourceId",c.resource.id)("selection",c.selected)("tableId",c.tableId)}}let D=(()=>{class g{constructor(c,T,Z,q,z){this.route=c,this.resourcesManager=T,this.dialog=Z,this.guiAuthResolver=q,this.entityStorageService=z,this.assignedGroups=[],this.selected=new A.Ov(!0,[]),this.filteredValue="",this.tableId=E.Ad}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.loadAllGroups()}loadAllGroups(){this.loading=!0,this.resourcesManager.getGroupAssignments(this.resource.id,[ae.r.GROUP_SYNC_ENABLED]).subscribe(c=>{this.assignedGroups=c.map(z=>{const ie=z.enrichedGroup.group;return ie.status=z.status,ie.failureCause=z.failureCause,ie.sourceGroupId=z.sourceGroupId,ie});const T=this.assignedGroups.map(z=>z.id),Z=this.assignedGroups.filter((z,ie)=>T.indexOf(z.id)===ie),q=this.assignedGroups.filter((z,ie)=>{const pe=T.indexOf(z.id);return pe!==ie&&(null===z.sourceGroupId||null===this.assignedGroups[pe].sourceGroupId)}).map(z=>z.id);Z.forEach(z=>{q.includes(z.id)&&(z.moreTypesOfAssignment=!0)}),this.assignedGroups=Z,this.groupsToDisable=new Set(this.assignedGroups.filter(z=>!!z.sourceGroupId&&!z.moreTypesOfAssignment).map(z=>z.id)),this.selected.clear(),this.loading=!1})}addGroup(){const c=(0,se.kZ)();c.width="1000px",c.data={theme:"resource-theme",resource:this.resource,onlyAutoAssignedGroups:this.assignedGroups.filter(Z=>this.groupsToDisable.has(Z.id))},this.dialog.open(X,c).afterClosed().subscribe(Z=>{Z&&this.loadAllGroups()})}removeGroups(){const c=(0,se.kZ)();c.width="500px",c.data={resourceId:this.resource.id,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(F,c).afterClosed().subscribe(Z=>{Z&&this.loadAllGroups()})}canRemoveGroups(){let c=!0;return this.selected.selected.forEach(T=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,T])||(c=!1)}),c}applyFilter(c){this.filteredValue=c}}return g.\u0275fac=function(c){return new(c||g)(s.Y36(re.gz),s.Y36(r.xk),s.Y36(n.uw),s.Y36(R.x4),s.Y36(R.fb))},g.\u0275cmp=s.Xpm({type:g,selectors:[["app-perun-web-apps-resource-groups"]],decls:13,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","mat-flat-button","","data-cy","add-group-button",3,"click",4,"ngIf"],["color","warn","mat-flat-button","","data-cy","remove-group-button",1,"ml-2","mr-2",3,"disabled","click"],[3,"matTooltipDisabled","matTooltip"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","","data-cy","add-group-button",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable"]],template:function(c,T){1&c&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return T.loadAllGroups()}),s.qZA(),s.YNc(4,p,3,3,"button",2),s.TgZ(5,"button",3),s.NdJ("click",function(){return T.removeGroups()}),s.TgZ(6,"span",4),s.ALo(7,"translate"),s._uU(8),s.ALo(9,"translate"),s.qZA()(),s.TgZ(10,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(q){return T.applyFilter(q)}),s.qZA(),s.YNc(11,_,1,0,"mat-spinner",6),s.YNc(12,f,1,13,"perun-web-apps-groups-list",7)),2&c&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),s.xp6(3),s.Q6J("ngIf",T.guiAuthResolver.isAuthorized("getAllGroups_Vo_policy",s.VKq(15,u,T.resource))),s.xp6(1),s.Q6J("disabled",0===T.selected.selected.length||!T.canRemoveGroups()),s.xp6(1),s.s9C("matTooltip",s.lcZ(7,11,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),s.Q6J("matTooltipDisabled",T.canRemoveGroups()),s.xp6(2),s.hij(" ",s.lcZ(9,13,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),s.xp6(2),s.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),s.xp6(1),s.Q6J("ngIf",T.loading),s.xp6(1),s.Q6J("ngIf",!T.loading))},dependencies:[e.O5,Q.lW,K.Ou,M.gM,V.W,S.t,W.P,t.X$]}),g})()},4675:(te,j,o)=>{o.d(j,{H:()=>K});var r=o(61744),A=o(81591),n=o(94650),m=o(94364),R=o(36895),s=o(51572),t=o(71135);function e(a,w){1&a&&n._UZ(0,"mat-spinner",2)}function Q(a,w){if(1&a&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&a){const y=n.oxw();n.xp6(1),n.Q6J("items",y.navItems)("size","small")}}let K=(()=>{class a{constructor(y,U,H,G,F){this.resourcesManager=y,this.route=U,this.guiAuthResolver=H,this.entityStorageService=G,this.routePolicyService=F,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.snapshot.url[0].path),this.loading=!1}initItems(y){const U=y?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`;this.navItems=[],this.routePolicyService.canNavigate("resources-groups",this.resource)&&this.navItems.push({cssIcon:"perun-group",url:`${U}/resources/${this.resource.id}/groups`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-services",this.resource)&&this.navItems.push({cssIcon:"perun-service",url:`${U}/resources/${this.resource.id}/services`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-members",this.resource)&&this.navItems.push({cssIcon:"perun-user",url:`${U}/resources/${this.resource.id}/members`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-tags",this.resource)&&this.navItems.push({cssIcon:"perun-resource-tags",url:`${U}/resources/${this.resource.id}/tags`,label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-attributes",this.resource)&&this.navItems.push({cssIcon:"perun-attributes",url:`${U}/resources/${this.resource.id}/attributes`,label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-settings",this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:`${U}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return a.\u0275fac=function(y){return new(y||a)(n.Y36(r.xk),n.Y36(m.gz),n.Y36(A.x4),n.Y36(A.fb),n.Y36(A.Ip))},a.\u0275cmp=n.Xpm({type:a,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(y,U){2&y&&n.ekj("router-component",U.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(y,U){1&y&&(n.YNc(0,e,1,0,"mat-spinner",0),n.YNc(1,Q,2,2,"div",1)),2&y&&(n.Q6J("ngIf",U.loading),n.xp6(1),n.Q6J("ngIf",!U.loading))},dependencies:[R.O5,s.Ou,t.L]}),a})()},35265:(te,j,o)=>{o.d(j,{I:()=>b});var r=o(61744),A=o(95017),n=o(81591),m=o(9244),R=o(21029),s=o(10036),t=o(65412),e=o(94650),Q=o(38383),K=o(64901),a=o(83370);const w=function(){return["checkbox","id","fullName"]};let y=(()=>{class h{constructor(C,Y,k,X,se){this.data=C,this.dialogRef=Y,this.store=k,this.resourceService=X,this.notificator=se,this.selection=new A.Ov(!1,[]),this.loading=!1,this.displayedColumns=["checkbox","id","fullName","organization","email","logins"],this.members=[],this.tableId=s.bj,this.filter=""}ngOnInit(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.data.entityId).subscribe({next:C=>{this.members=C,this.loading=!1},error:()=>this.loading=!1}),this.selection.changed.subscribe(C=>{this.ban=this.data.bans.find(Y=>Y.memberId===C.source.selected[0]?.id)})}cancel(){this.dialogRef.close(!1)}submitBan(C){this.ban?this.updateBan(C):this.banMember(C)}banMember(C){this.loading=!0,this.resourceService.setResourceBan({banOnResource:{memberId:this.selection.selected[0].id,resourceId:this.data.entityId,description:C.description,validityTo:C.validity,id:0,beanName:"BanOnResource"}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.ADD_BAN.SUCCESS_MEMBER"),this.dialogRef.close(!0)},error:()=>this.loading=!1})}updateBan(C){this.loading=!0,this.resourceService.updateResourceBan({banOnResource:{id:this.ban.id,beanName:"BanOnFacility",resourceId:this.ban.resourceId,memberId:this.ban.memberId,description:C.description,validityTo:C.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}}return h.\u0275fac=function(C){return new(C||h)(e.Y36(t.WI),e.Y36(t.so),e.Y36(n.d6),e.Y36(r.xk),e.Y36(n.V6))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-add-resource-ban-dialog"]],decls:3,vars:13,consts:[[3,"loading","disabled","theme","ban","add","cancel"],[3,"placeholder","filter"],[3,"displayedColumns","selection","disableRouting","allowCheckboxDisabled","filter","members","tableId"]],template:function(C,Y){1&C&&(e.TgZ(0,"app-add-ban-dialog",0),e.NdJ("add",function(X){return Y.submitBan(X)})("cancel",function(){return Y.cancel()}),e.TgZ(1,"perun-web-apps-debounce-filter",1),e.NdJ("filter",function(X){return Y.filter=X}),e.qZA(),e._UZ(2,"perun-web-apps-members-list",2),e.qZA()),2&C&&(e.Q6J("loading",Y.loading)("disabled",0===Y.selection.selected.length)("theme",Y.data.theme)("ban",Y.ban),e.xp6(1),e.Q6J("placeholder","DIALOGS.ADD_BAN.FILTER"),e.xp6(1),e.Q6J("displayedColumns",e.DdM(12,w))("selection",Y.selection)("disableRouting",!0)("allowCheckboxDisabled",!1)("filter",Y.filter)("members",Y.members)("tableId",Y.tableId))},dependencies:[Q.O,K.P,a.u]}),h})();var U=o(64080),H=o(28943),G=o(19516),F=o(36895),E=o(4859),I=o(51572),P=o(96214),L=o(73358),V=o(91880),W=o(89383);function oe(h,J){if(1&h){const C=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(C);const k=e.oxw();return e.KtG(k.add())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&h&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"RESOURCE_DETAIL.SETTINGS.BANS.ADD"),"\n"))}function ne(h,J){if(1&h){const C=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM(C);const k=e.oxw();return e.KtG(k.remove())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&h){const C=e.oxw();e.Q6J("disabled",0===C.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"RESOURCE_DETAIL.SETTINGS.BANS.REMOVE"),"\n")}}function B(h,J){if(1&h){const C=e.EpF();e.TgZ(0,"perun-web-apps-ban-on-entity-list",10),e.NdJ("updateBan",function(k){e.CHM(C);const X=e.oxw();return e.KtG(X.update(k))}),e.qZA()}if(2&h){const C=e.oxw();e.Q6J("bans",C.bans)("selection",C.selection)("displayedColumns",C.displayedColumns)("filter",C.filter)("updatePolicy","updateBan_BanOnResource_policy")}}function $(h,J){1&h&&(e.TgZ(0,"div",11),e._UZ(1,"mat-spinner"),e.qZA())}let b=(()=>{class h{constructor(C,Y,k,X,se,ae,re){this.resourceService=C,this.entityService=Y,this.authResolver=k,this.dialog=X,this.notificator=se,this.store=ae,this.userName=re,this.loading=!1,this.bans=[],this.removeAuth=!1,this.filter="",this.selection=new A.Ov(!1,[]),this.attrNames=[U.r.MEMBER_DEF_MAIL,U.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.displayedColumns=["select","banId","subjectId","subjectName","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.resource=this.entityService.getEntity(),this.addAuth=this.authResolver.isAuthorized("setBan_BanOnResource_policy",[this.resource]),this.removeAuth=this.authResolver.isAuthorized("resource-removeBan_int_policy",[this.resource]),this.refresh()}refresh(){this.loading=!0,this.resourceService.getEnrichedBansForResource(this.resource.id,this.attrNames).subscribe({next:C=>{this.bans=C,this.selection.clear(),this.loading=!1},error:()=>this.loading=!1})}add(){const C=(0,m.kZ)();C.width="850px",C.data={entityId:this.resource.id,theme:"resource-theme",bans:this.bans.map(k=>k.ban)},this.dialog.open(y,C).afterClosed().subscribe(k=>{k&&this.refresh()})}remove(){const C=(0,m.kZ)();C.width="550px",C.data={theme:"resource-theme",title:"DIALOGS.REMOVE_BAN.TITLE",description:"DIALOGS.REMOVE_BAN.DESCRIPTION",items:[this.userName.transform(this.selection.selected[0].member.user)],type:"remove",showAsk:!0},this.dialog.open(R.Ts,C).afterClosed().subscribe(k=>{k&&this.resourceService.removeResourceBanById(this.selection.selected[0].ban.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.REMOVE_BAN.SUCCESS"),this.refresh()})})}update(C){const Y=(0,m.kZ)();Y.width="600px",Y.data={ban:C.ban,theme:"facility-theme"},this.dialog.open(H.e,Y).afterClosed().subscribe(X=>{X&&this.refresh()})}}return h.\u0275fac=function(C){return new(C||h)(e.Y36(r.xk),e.Y36(n.fb),e.Y36(n.x4),e.Y36(t.uw),e.Y36(n.V6),e.Y36(n.d6),e.Y36(G.dp))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-resource-settings-bans"]],features:[e._Bn([G.dp])],decls:11,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mt-2","search-field",3,"placeholder","filter"],[1,"position-relative"],[3,"bans","selection","displayedColumns","filter","updatePolicy","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["spinner",""],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"bans","selection","displayedColumns","filter","updatePolicy","updateBan"],[1,"spinner-container"]],template:function(C,Y){if(1&C&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("click",function(){return Y.refresh()}),e.qZA(),e.YNc(4,oe,3,3,"button",2),e.YNc(5,ne,3,4,"button",3),e.TgZ(6,"perun-web-apps-debounce-filter",4),e.NdJ("filter",function(X){return Y.filter=X}),e.qZA(),e.TgZ(7,"div",5),e.YNc(8,B,1,5,"perun-web-apps-ban-on-entity-list",6),e.qZA(),e.YNc(9,$,2,0,"ng-template",null,7,e.W1O)),2&C){const k=e.MAs(10);e.xp6(1),e.hij(" ",e.lcZ(2,6,"RESOURCE_DETAIL.SETTINGS.BANS.TITLE"),"\n"),e.xp6(3),e.Q6J("ngIf",Y.addAuth),e.xp6(1),e.Q6J("ngIf",Y.removeAuth),e.xp6(1),e.Q6J("placeholder","RESOURCE_DETAIL.SETTINGS.BANS.FILTER"),e.xp6(2),e.Q6J("perunWebAppsLoader",Y.loading)("perunWebAppsLoaderIndicator",k)}},dependencies:[F.O5,E.lW,I.Ou,P.t,K.P,L.e,V.s,W.X$]}),h})()},20057:(te,j,o)=>{o.d(j,{O:()=>m});var r=o(81591),A=o(94650),n=o(28361);let m=(()=>{class R{constructor(t,e){this.guiAuthResolver=t,this.entityStorageService=e,this.availableRoles=[],this.type="Resource",this.theme="resource-theme"}ngOnInit(){this.resource=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Resource")}}return R.\u0275fac=function(t){return new(t||R)(A.Y36(r.x4),A.Y36(r.fb))},R.\u0275cmp=A.Xpm({type:R,selectors:[["app-resource-settings-managers"]],decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(t,e){1&t&&A._UZ(0,"app-managers-page",0),2&t&&A.Q6J("complementaryObject",e.resource)("availableRoles",e.availableRoles)("complementaryObjectType",e.type)("theme",e.theme)},dependencies:[n.s]}),R})()},16500:(te,j,o)=>{o.d(j,{h:()=>K});var r=o(61744),A=o(81591),n=o(94650),m=o(94364),R=o(36895),s=o(51572),t=o(71135);function e(a,w){1&a&&n._UZ(0,"mat-spinner",2)}function Q(a,w){if(1&a&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&a){const y=n.oxw();n.xp6(1),n.Q6J("items",y.items)("size","small")}}let K=(()=>{class a{constructor(y,U,H,G,F){this.route=y,this.resourceManager=U,this.authResolver=H,this.entityStorageService=G,this.routePolicyService=F,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.parent.snapshot.url[0].path),this.loading=!1}initItems(y){this.items=[],this.routePolicyService.canNavigate("resources-settings-managers",this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${y?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-settings-bans",this.resource)&&this.items.push({cssIcon:"perun-ban",url:`${y?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/bans`,label:"MENU_ITEMS.RESOURCE.BANS",style:"resource-btn"})}}return a.\u0275fac=function(y){return new(y||a)(n.Y36(m.gz),n.Y36(r.xk),n.Y36(A.x4),n.Y36(A.fb),n.Y36(A.Ip))},a.\u0275cmp=n.Xpm({type:a,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(y,U){2&y&&n.ekj("router-component",U.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(y,U){1&y&&(n.YNc(0,e,1,0,"mat-spinner",0),n.YNc(1,Q,2,2,"div",1)),2&y&&(n.Q6J("ngIf",U.loading),n.xp6(1),n.Q6J("ngIf",!U.loading))},dependencies:[R.O5,s.Ou,t.L]}),a})()},60113:(te,j,o)=>{o.d(j,{t:()=>m});var r=o(36769),A=o(94650),n=o(61283);let m=(()=>{class R{}return R.\u0275fac=function(t){return new(t||R)},R.\u0275cmp=A.Xpm({type:R,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&A.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&A._UZ(0,"app-animated-router-outlet")},dependencies:[n.A],data:{animation:[r.Ji]}}),R})()},20872:(te,j,o)=>{o.d(j,{v:()=>ne});var r=o(61744),A=o(95017),n=o(10036),m=o(9244),R=o(81591),s=o(21029),t=o(65412),e=o(94650),Q=o(36895),K=o(4859),a=o(51572),w=o(17672),y=o(89383);function U(B,$){1&B&&e._UZ(0,"mat-spinner",8)}function H(B,$){if(1&B&&e._UZ(0,"app-resources-tags-list",9),2&B){const b=e.oxw();e.Q6J("selection",b.selection)("displayedColumns",b.displayedColumns)("entity","resource")("filterValue",b.filterValue)("resourceTags",b.resourceTags)("tableId",b.tableId)}}let G=(()=>{class B{constructor(b,h,J){this.dialogRef=b,this.data=h,this.resourcesManager=J,this.tableId=n.g,this.selection=new A.Ov(!0,[]),this.resourceTags=[],this.displayedColumns=["select","id","name"]}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voId=this.data.voId,this.resourceId=this.data.resourceId,this.assignedTags=this.data.assignedTags,this.resourcesManager.getAllResourcesTagsForVo(this.voId).subscribe(b=>{this.resourceTags=b.filter(h=>!this.assignedTags.map(J=>J.id).includes(h.id)),this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(b){this.resourcesManager.assignResourceTagsToResource({resource:this.resourceId,resourceTags:b}).subscribe(()=>{this.dialogRef.close(!0)})}applyFilter(b){this.filterValue=b}}return B.\u0275fac=function(b){return new(b||B)(e.Y36(t.so),e.Y36(t.WI),e.Y36(r.xk))},B.\u0275cmp=e.Xpm({type:B,selectors:[["app-add-resource-tag-to-resource-dialog"]],decls:15,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],[3,"selection","displayedColumns","entity","filterValue","resourceTags","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"selection","displayedColumns","entity","filterValue","resourceTags","tableId"]],template:function(b,h){1&b&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2),e.YNc(6,U,1,0,"mat-spinner",3),e.qZA(),e.YNc(7,H,1,6,"app-resources-tags-list",4),e.qZA(),e.TgZ(8,"div",5)(9,"button",6),e.NdJ("click",function(){return h.onCancel()}),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"button",7),e.NdJ("click",function(){return h.onSubmit(h.selection.selected)}),e._uU(13),e.ALo(14,"translate"),e.qZA()()()),2&b&&(e.Tol(h.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),e.xp6(4),e.Q6J("ngIf",h.loading),e.xp6(1),e.Q6J("ngIf",!h.loading),e.xp6(3),e.hij(" ",e.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",h.loading||0===h.resourceTags.length),e.xp6(1),e.hij(" ",e.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},dependencies:[Q.O5,K.lW,t.uh,t.xY,t.H8,a.Ou,w.o,y.X$]}),B})();var F=o(17584),E=o(96214),I=o(7434);function P(B,$){if(1&B){const b=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(b);const J=e.oxw();return e.KtG(J.create())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&B&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function L(B,$){if(1&B){const b=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(b);const J=e.oxw();return e.KtG(J.addTag())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&B&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function V(B,$){if(1&B){const b=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(b);const J=e.oxw();return e.KtG(J.removeTags())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&B){const b=e.oxw();e.Q6J("disabled",0===b.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function W(B,$){1&B&&e._UZ(0,"mat-spinner",9)}function oe(B,$){if(1&B&&e._UZ(0,"app-resources-tags-list",10),2&B){const b=e.oxw();e.Q6J("displayedColumns",b.displayedColumns)("entity","resource")("resourceTags",b.resourceTags)("filterValue",b.filterValue)("selection",b.selection)("tableId",b.tableId)}}let ne=(()=>{class B{constructor(b,h,J,C,Y,k){this.authResolver=b,this.resourcesManager=h,this.dialog=J,this.notificator=C,this.translate=Y,this.entityStorageService=k,this.loading=!1,this.resourceTags=[],this.selection=new A.Ov(!0,[]),this.tableId=n.M8,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}removeTags(){const b=(0,m.kZ)();b.width="450px",b.data={items:this.selection.selected.map(J=>J.tagName),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme",type:"remove",showAsk:!0},this.dialog.open(s.Ts,b).afterClosed().subscribe(J=>{J&&this.resourcesManager.removeResourceTagsFromResource({resource:this.resource.id,resourceTags:this.selection.selected}).subscribe(()=>(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData()))})}addTag(){const b=(0,m.kZ)();b.width="600px",b.data={voId:this.resource.voId,resourceId:this.resource.id,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(G,b).afterClosed().subscribe(J=>{J&&(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),this.updateData())})}create(){const b=(0,m.kZ)();b.width="450px",b.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(F.p,b).afterClosed().subscribe(J=>{J&&(this.notificator.showSuccess(this.translate.instant("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS")),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resource.id).subscribe(b=>{this.resourceTags=b,this.selection.clear(),this.loading=!1})}setAuthRights(){const b={id:this.resource.voId,beanName:"Vo"};this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[b]),this.addAuth=this.authResolver.isAuthorized("assignResourceTagToResource_ResourceTag_Resource_policy",[this.resource]),this.removeAuth=this.authResolver.isAuthorized("removeResourceTagFromResource_ResourceTag_Resource_policy",[this.resource]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"]}applyFilter(b){this.filterValue=b}}return B.\u0275fac=function(b){return new(b||B)(e.Y36(R.x4),e.Y36(r.xk),e.Y36(t.uw),e.Y36(R.V6),e.Y36(R.Te),e.Y36(R.fb))},B.\u0275cmp=e.Xpm({type:B,selectors:[["app-perun-web-apps-resource-tags"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId"]],template:function(b,h){1&b&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){return h.updateData()}),e.qZA(),e.YNc(4,P,3,3,"button",2),e.YNc(5,L,3,3,"button",2),e.YNc(6,V,3,4,"button",3),e.TgZ(7,"perun-web-apps-immediate-filter",4),e.NdJ("filter",function(C){return h.applyFilter(C)}),e.qZA(),e.YNc(8,W,1,0,"mat-spinner",5),e.YNc(9,oe,1,6,"app-resources-tags-list",6)),2&b&&(e.xp6(1),e.Oqu(e.lcZ(2,7,"RESOURCE_DETAIL.TAGS.TITLE")),e.xp6(3),e.Q6J("ngIf",h.createAuth),e.xp6(1),e.Q6J("ngIf",h.addAuth),e.xp6(1),e.Q6J("ngIf",h.removeAuth),e.xp6(1),e.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),e.xp6(1),e.Q6J("ngIf",h.loading),e.xp6(1),e.Q6J("ngIf",!h.loading))},dependencies:[Q.O5,K.lW,a.Ou,w.o,E.t,I.L,y.X$]}),B})()},83370:(te,j,o)=>{o.d(j,{u:()=>E});var r=o(94650),A=o(37433),n=o(36895),m=o(4859),R=o(65412),s=o(51572),t=o(86257),e=o(98380),Q=o(29926),K=o(89383);function a(I,P){1&I&&r._UZ(0,"mat-spinner",13)}function w(I,P){1&I&&(r.TgZ(0,"perun-web-apps-alert",16),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&I&&(r.Q6J("alert_type","info"),r.xp6(1),r.hij(" ",r.lcZ(2,2,"DIALOGS.ADD_BAN.ALREADY_BANNED")," "))}function y(I,P){if(1&I&&(r.TgZ(0,"div"),r.YNc(1,w,3,4,"perun-web-apps-alert",14),r._UZ(2,"perun-web-apps-ban-specification",15),r.qZA()),2&I){const L=r.oxw();r.xp6(1),r.Q6J("ngIf",L.ban),r.xp6(1),r.Q6J("description",null==L.ban?null:L.ban.description)("validity",null==L.ban?null:L.ban.validityTo)}}function U(I,P){if(1&I){const L=r.EpF();r.TgZ(0,"button",17),r.NdJ("click",function(){r.CHM(L),r.oxw();const W=r.MAs(6);return r.KtG(W.next())}),r._uU(1),r.ALo(2,"translate"),r.qZA()}if(2&I){const L=r.oxw();r.Q6J("disabled",L.disabled),r.xp6(1),r.hij(" ",r.lcZ(2,2,"DIALOGS.ADD_BAN.NEXT")," ")}}function H(I,P){if(1&I){const L=r.EpF();r.TgZ(0,"button",18),r.NdJ("click",function(){r.CHM(L),r.oxw();const W=r.MAs(6);return r.KtG(W.previous())}),r._uU(1),r.ALo(2,"translate"),r.qZA()}2&I&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"DIALOGS.ADD_BAN.BACK")," "))}function G(I,P){if(1&I){const L=r.EpF();r.TgZ(0,"button",19),r.NdJ("click",function(){r.CHM(L);const W=r.oxw();return r.KtG(W.addBan())}),r._uU(1),r.ALo(2,"translate"),r.qZA()}if(2&I){const L=r.oxw();r.xp6(1),r.hij(" ",r.lcZ(2,1,L.ban?"DIALOGS.ADD_BAN.UPDATE":"DIALOGS.ADD_BAN.ADD")," ")}}const F=["*"];let E=(()=>{class I{constructor(){this.loading=!1,this.disabled=!1,this.add=new r.vpe,this.cancel=new r.vpe}addBan(){this.add.emit({description:this.banForm.getDescription(),validity:this.banForm.getValidity()})}}return I.\u0275fac=function(L){return new(L||I)},I.\u0275cmp=r.Xpm({type:I,selectors:[["app-add-ban-dialog"]],viewQuery:function(L,V){if(1&L&&r.Gf(A.CZ,5),2&L){let W;r.iGM(W=r.CRH())&&(V.banForm=W.first)}},inputs:{loading:"loading",disabled:"disabled",theme:"theme",ban:"ban"},outputs:{add:"add",cancel:"cancel"},ngContentSelectors:F,decls:21,vars:22,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"linear"],["stepper",""],[3,"completed","label"],[3,"label"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","class","mr-2","color","accent",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"alert_type",4,"ngIf"],[3,"description","validity"],[3,"alert_type"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"]],template:function(L,V){if(1&L&&(r.F$t(),r.TgZ(0,"div")(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"div",1)(5,"mat-stepper",2,3)(7,"mat-step",4),r.ALo(8,"translate"),r.Hsn(9),r.qZA(),r.TgZ(10,"mat-step",5),r.ALo(11,"translate"),r.YNc(12,a,1,0,"mat-spinner",6),r.YNc(13,y,3,3,"div",7),r.qZA()()(),r.TgZ(14,"div",8)(15,"button",9),r.NdJ("click",function(){return V.cancel.emit()}),r._uU(16),r.ALo(17,"translate"),r.qZA(),r.YNc(18,U,3,4,"button",10),r.YNc(19,H,3,3,"button",11),r.YNc(20,G,3,3,"button",12),r.qZA()()),2&L){const W=r.MAs(6);r.Tol(V.theme),r.xp6(2),r.Oqu(r.lcZ(3,14,"DIALOGS.ADD_BAN.TITLE")),r.xp6(3),r.Q6J("linear",!0),r.xp6(2),r.Q6J("completed",!V.disabled)("label",r.lcZ(8,16,"DIALOGS.ADD_BAN.SELECTION")),r.xp6(3),r.Q6J("label",r.lcZ(11,18,"DIALOGS.ADD_BAN.SPECIFICATION")),r.xp6(2),r.Q6J("ngIf",V.loading),r.xp6(1),r.Q6J("ngIf",!V.loading),r.xp6(3),r.hij(" ",r.lcZ(17,20,"DIALOGS.ADD_BAN.CANCEL")," "),r.xp6(2),r.Q6J("ngIf",W.selectedIndex!==(null==W||null==W._steps?null:W._steps.length)-1),r.xp6(1),r.Q6J("ngIf",W.selectedIndex===(null==W||null==W._steps?null:W._steps.length)-1),r.xp6(1),r.Q6J("ngIf",W.selectedIndex===(null==W||null==W._steps?null:W._steps.length)-1)}},dependencies:[n.O5,m.lW,R.uh,R.xY,R.H8,s.Ou,t.C0,t.Vq,e.w,Q.C,K.X$]}),I})()},17584:(te,j,o)=>{o.d(j,{p:()=>y});var r=o(65412),A=o(61744),n=o(94650),m=o(36895),R=o(59549),s=o(284),t=o(24006),e=o(4859),Q=o(51572),K=o(89383);function a(U,H){1&U&&n._UZ(0,"mat-spinner",6)}function w(U,H){if(1&U){const G=n.EpF();n.TgZ(0,"div",7)(1,"mat-form-field")(2,"input",8),n.NdJ("ngModelChange",function(E){n.CHM(G);const I=n.oxw();return n.KtG(I.name=E)}),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-error"),n._uU(5),n.ALo(6,"translate"),n.qZA()()()}if(2&U){const G=n.oxw();n.xp6(2),n.s9C("placeholder",n.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),n.Q6J("ngModel",G.name),n.xp6(3),n.Oqu(n.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let y=(()=>{class U{constructor(G,F,E){this.dialogRef=G,this.data=F,this.resourceManager=E,this.name="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){""!==this.name&&(this.loading=!0,this.resourceManager.createResourceTagWithTagName(this.name,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}}return U.\u0275fac=function(G){return new(G||U)(n.Y36(r.so),n.Y36(r.WI),n.Y36(A.xk))},U.\u0275cmp=n.Xpm({type:U,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","ngModel","ngModelChange"]],template:function(G,F){1&G&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,a,1,0,"mat-spinner",1),n.YNc(5,w,7,7,"div",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return F.onCancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",5),n.NdJ("click",function(){return F.onSubmit()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&G&&(n.Tol(F.theme),n.xp6(2),n.Oqu(n.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),n.xp6(2),n.Q6J("ngIf",F.loading),n.xp6(1),n.Q6J("ngIf",!F.loading),n.xp6(3),n.hij(" ",n.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),n.xp6(2),n.Q6J("disabled",F.loading),n.xp6(1),n.hij(" ",n.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},dependencies:[m.O5,R.TO,R.KE,s.Nt,t.Fj,t.JJ,t.Q7,t.On,e.lW,r.uh,r.xY,r.H8,Q.Ou,K.X$]}),U})()},28361:(te,j,o)=>{o.d(j,{s:()=>Pe});var r=o(95017),A=o(65412),n=o(81591),m=o(61744),R=o(10036),s=o(64080),t=o(24006),e=o(94650),Q=o(89383),K=o(94364),a=o(36895),w=o(3238),y=o(59549),U=o(284),H=o(4859),G=o(84385),F=o(51572),E=o(98380),I=o(22308),P=o(64877),L=o(23123);function V(l,O){if(1&l&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&l){const i=O.$implicit;e.Q6J("value",i.roleName),e.xp6(1),e.hij(" ",e.lcZ(2,2,i)," ")}}function W(l,O){1&l&&e._UZ(0,"mat-spinner",16)}function oe(l,O){1&l&&(e.TgZ(0,"perun-web-apps-alert",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&l&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}const ne=function(){return["select","id","name","email","logins","organization"]};function B(l,O){if(1&l&&e._UZ(0,"app-users-list",21),2&l){const i=e.oxw(2);e.Q6J("disableRouting",!0)("selection",i.selection)("displayedColumns",e.DdM(5,ne))("tableId",i.tableId)("users",i.users)}}function $(l,O){if(1&l&&(e.TgZ(0,"div",17),e.YNc(1,oe,3,3,"perun-web-apps-alert",18),e.YNc(2,B,1,6,"app-users-list",19),e.qZA()),2&l){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",0===i.users.length&&i.firstSearchDone),e.xp6(1),e.Q6J("ngIf",0!==i.users.length)}}let b=(()=>{class l{constructor(i,d,x,ee,le,ce,ue,he,fe){this.dialogRef=i,this.data=d,this.authzService=x,this.usersService=ee,this.translate=le,this.notificator=ce,this.storeService=ue,this.route=he,this.router=fe,this.selection=new r.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=R.H2,le.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(_e=>this.title=_e),le.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(_e=>this.successMessage=_e)}ngOnInit(){this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new t.p4("",[t.kI.required,t.kI.pattern(".*[\\S]+.*")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(i=>i.id),complementaryObject:this.data.complementaryObject}).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.selection.clear();let i=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];i=i.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,i).subscribe({next:d=>{this.users=d,this.loading=!1,this.firstSearchDone=!0},error:()=>this.loading=!1})}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(A.so),e.Y36(A.WI),e.Y36(m.Ct),e.Y36(m.Fv),e.Y36(Q.sK),e.Y36(n.V6),e.Y36(n.d6),e.Y36(K.gz),e.Y36(K.F0))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-add-manager-dialog"]],decls:31,vars:31,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"inline-dialog-items"],[1,"mr-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mr-2","w-100"],["matInput","","autocomplete","false","data-cy","search-manager-input","perunWebAppsAutoFocus","",3,"placeholder","formControl","keyup.enter"],["color","accent","data-cy","search-manager-button","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","add-manager-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"disableRouting","selection","displayedColumns","tableId","users",4,"ngIf"],["alert_type","warn"],[3,"disableRouting","selection","displayedColumns","tableId","users"]],template:function(i,d){1&i&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"mat-form-field",3)(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(ee){return d.selectedRole=ee}),e.YNc(11,V,3,4,"mat-option",5),e.qZA()(),e.TgZ(12,"mat-form-field",6)(13,"input",7),e.NdJ("keyup.enter",function(){return d.onSearchByString()}),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"mat-error"),e._uU(16),e.ALo(17,"translate"),e.qZA()()(),e.TgZ(18,"button",8),e.NdJ("click",function(){return d.onSearchByString()}),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"div",9),e.YNc(22,W,1,0,"mat-spinner",10),e.qZA(),e.YNc(23,$,3,2,"div",11),e.qZA(),e.TgZ(24,"div",12)(25,"button",13),e.NdJ("click",function(){return d.onCancel()}),e._uU(26),e.ALo(27,"translate"),e.qZA(),e.TgZ(28,"button",14),e.NdJ("click",function(){return d.onSubmit()}),e._uU(29),e.ALo(30,"translate"),e.qZA()()()),2&i&&(e.Tol(d.theme),e.xp6(2),e.Oqu(e.lcZ(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),e.xp6(6),e.Oqu(e.lcZ(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",d.selectedRole),e.xp6(1),e.Q6J("ngForOf",d.availableRoles),e.xp6(2),e.s9C("placeholder",e.lcZ(14,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),e.Q6J("formControl",d.searchCtrl),e.xp6(3),e.hij(" ",e.lcZ(17,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),e.xp6(2),e.Q6J("disabled",d.loading),e.xp6(1),e.hij(" ",e.lcZ(20,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),e.xp6(3),e.Q6J("ngIf",d.loading),e.xp6(1),e.Q6J("ngIf",null!==d.users&&!d.loading),e.xp6(3),e.hij(" ",e.lcZ(27,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===d.selection.selected.length||void 0===d.selectedRole||d.loading),e.xp6(1),e.hij(" ",e.lcZ(30,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},dependencies:[a.sg,a.O5,w.ey,y.TO,y.KE,y.hX,U.Nt,t.Fj,t.JJ,t.oH,H.lW,A.uh,A.xY,A.H8,G.gD,F.Ou,E.w,I.h,P.C,Q.X$,L.i],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),l})();var h=o(30671);function J(l,O){1&l&&e._UZ(0,"th",15)}function C(l,O){if(1&l&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&l){const i=O.$implicit;e.xp6(1),e.AsE("",i.firstName," ",i.lastName,"")}}function Y(l,O){1&l&&e._UZ(0,"tr",17)}function k(l,O){1&l&&e._UZ(0,"tr",18)}const X=function(l){return{role:l}};function se(l,O){if(1&l&&(e.TgZ(0,"perun-web-apps-alert",19),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&l){const i=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,"DIALOGS.REMOVE_MANAGERS.WARNING_REMOVE_YOURSELF",e.VKq(6,X,e.lcZ(3,4,"ROLES."+i.data.role)))," ")}}function ae(l,O){if(1&l&&(e.TgZ(0,"div",6)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",7),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",8),e.ynx(8,9),e.YNc(9,J,1,0,"th",10),e.YNc(10,C,2,2,"td",11),e.BQk(),e.YNc(11,Y,1,0,"tr",12),e.YNc(12,k,1,0,"tr",13),e.qZA(),e.YNc(13,se,4,8,"perun-web-apps-alert",14),e.qZA()),2&l){const i=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,6,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(6,8,"DIALOGS.REMOVE_MANAGERS.ASK")," "),e.xp6(2),e.Q6J("dataSource",i.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(1),e.Q6J("ngIf",i.removeSelf)}}function re(l,O){1&l&&e._UZ(0,"mat-spinner",20)}let M=(()=>{class l{constructor(i,d,x,ee,le,ce,ue){this.dialogRef=i,this.data=d,this.notificator=x,this.translate=ee,this.authzService=le,this.store=ce,this.authService=ue,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new h.by(this.data.managers),this.theme=this.data.theme,this.removeSelf=this.data.managers.map(i=>i.id).includes(this.store.getPerunPrincipal().userId)&&!this.authService.isPerunAdmin()}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithUserComplementaryObject({role:this.data.role,users:this.data.managers.map(i=>i.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(A.so),e.Y36(A.WI),e.Y36(n.V6),e.Y36(Q.sK),e.Y36(m.Ct),e.Y36(n.d6),e.Y36(n.x4))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-remove-manager-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","remove-manager-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(i,d){1&i&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,ae,14,10,"div",1),e.YNc(5,re,1,0,"mat-spinner",2),e.TgZ(6,"div",3)(7,"button",4),e.NdJ("click",function(){return d.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return d.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&i&&(e.Tol(d.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),e.xp6(2),e.Q6J("ngIf",!d.loading),e.xp6(1),e.Q6J("ngIf",d.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",d.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},dependencies:[a.O5,H.lW,h.BZ,h.fO,h.as,h.w1,h.Dz,h.nj,h.ge,h.ev,h.XQ,h.Gk,A.uh,A.xY,A.H8,F.Ou,E.w,Q.X$]}),l})();function S(l,O){1&l&&e._UZ(0,"mat-spinner",6)}function p(l,O){1&l&&e._UZ(0,"th",15)}function _(l,O){if(1&l&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&l){const i=O.$implicit;e.xp6(1),e.Oqu(i.name)}}function u(l,O){1&l&&e._UZ(0,"tr",17)}function v(l,O){1&l&&e._UZ(0,"tr",18)}function f(l,O){if(1&l&&(e.TgZ(0,"div",7)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",9),e.ynx(8,10),e.YNc(9,p,1,0,"th",11),e.YNc(10,_,2,1,"td",12),e.BQk(),e.YNc(11,u,1,0,"tr",13),e.YNc(12,v,1,0,"tr",14),e.qZA()()),2&l){const i=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),e.xp6(2),e.Q6J("dataSource",i.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns)}}let D=(()=>{class l{constructor(i,d,x,ee,le){this.dialogRef=i,this.data=d,this.notificator=x,this.translate=ee,this.authzService=le,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new h.by(this.data.groups),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithGroupComplementaryObject({role:this.data.role,authorizedGroups:this.data.groups.map(i=>i.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(A.so),e.Y36(A.WI),e.Y36(n.V6),e.Y36(Q.sK),e.Y36(m.Ct))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-remove-group-manager-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(i,d){1&i&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,S,1,0,"mat-spinner",1),e.YNc(5,f,13,9,"div",2),e.TgZ(6,"div",3)(7,"button",4),e.NdJ("click",function(){return d.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return d.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&i&&(e.Tol(d.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),e.xp6(2),e.Q6J("ngIf",d.loading),e.xp6(1),e.Q6J("ngIf",!d.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",d.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},dependencies:[a.O5,H.lW,h.BZ,h.fO,h.as,h.w1,h.Dz,h.nj,h.ge,h.ev,h.XQ,h.Gk,A.uh,A.xY,A.H8,F.Ou,Q.X$]}),l})();var g=o(68675),N=o(54004),c=o(47957),T=o(25788),Z=o(64901);function q(l,O){if(1&l&&(e.TgZ(0,"mat-option",17),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&l){const i=O.$implicit;e.Q6J("value",i.roleName),e.xp6(1),e.hij(" ",e.lcZ(2,2,i)," ")}}function z(l,O){if(1&l&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&l){const i=O.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",i.name," ")}}function ie(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"perun-web-apps-debounce-filter",18),e.NdJ("filter",function(x){e.CHM(i);const ee=e.oxw();return e.KtG(ee.applyFilter(x))}),e.ALo(1,"translate"),e.qZA()}2&l&&e.s9C("placeholder",e.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function pe(l,O){1&l&&e._UZ(0,"mat-spinner",19)}const ge=function(){return["select","id","name","description"]};function Ae(l,O){if(1&l&&(e.TgZ(0,"div",20),e._UZ(1,"perun-web-apps-groups-list",21),e.qZA()),2&l){const i=e.oxw();e.xp6(1),e.Q6J("disableMembers",!1)("disableRouting",!0)("displayedColumns",e.DdM(7,ge))("selection",i.selection)("groups",i.groups)("filter",i.filterValue)("tableId",i.tableId)}}let Re=(()=>{class l{constructor(i,d,x,ee,le,ce,ue,he,fe){this.dialogRef=i,this.data=d,this.authzService=x,this.voService=ee,this.groupService=le,this.translate=ce,this.notificator=ue,this.route=he,this.router=fe,this.searchString="",this.selection=new r.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new t.p4,this.firstSearchDone=!1,this.tableId=R.kZ,ce.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(_e=>this.title=_e),ce.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(_e=>this.successMessage=_e)}displayFn(i){return i?i.name:null}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(i=>i.id),complementaryObject:this.data.complementaryObject}).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}ngOnInit(){this.loading=!0,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.theme=this.data.theme,this.voService.getMyVos().subscribe({next:i=>{this.filteredOptions=this.myControl.valueChanges.pipe((0,g.O)(""),(0,N.U)(d=>this._filter(d))),this.vos=i,this.loading=!1},error:()=>this.loading=!1})}showVoGroups(i){this.loading=!0,this.groupService.getAllGroups(i.option.value.id).subscribe({next:d=>{this.groups=d,this.loading=!1,this.firstSearchDone=!0},error:()=>this.loading=!1})}applyFilter(i){this.filterValue=i}_filter(i){const d="string"==typeof i?i.toLowerCase():i.name.toLowerCase();return this.vos.filter(x=>x.name.toLowerCase().includes(d))}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(A.so),e.Y36(A.WI),e.Y36(m.Ct),e.Y36(m.YF),e.Y36(m.ff),e.Y36(Q.sK),e.Y36(n.V6),e.Y36(K.gz),e.Y36(K.F0))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-add-group-manager-dialog"]],decls:33,vars:33,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"inline-dialog-items"],[1,"mr-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mr-2","w-75"],["aria-label","Assignee","matInput","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"placeholder","filter",4,"ngIf"],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"disableMembers","disableRouting","displayedColumns","selection","groups","filter","tableId"]],template:function(i,d){if(1&i&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"mat-form-field",3)(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(ee){return d.selectedRole=ee}),e.YNc(11,q,3,4,"mat-option",5),e.qZA()(),e.TgZ(12,"mat-form-field",6)(13,"mat-label"),e._uU(14),e.ALo(15,"translate"),e.qZA(),e._UZ(16,"input",7),e.ALo(17,"translate"),e.TgZ(18,"mat-autocomplete",8,9),e.NdJ("optionSelected",function(ee){return d.showVoGroups(ee)}),e.YNc(20,z,2,2,"mat-option",5),e.ALo(21,"async"),e.qZA()()(),e.YNc(22,ie,2,3,"perun-web-apps-debounce-filter",10),e.TgZ(23,"div",11),e.YNc(24,pe,1,0,"mat-spinner",12),e.qZA(),e.YNc(25,Ae,2,8,"div",13),e.qZA(),e.TgZ(26,"div",14)(27,"button",15),e.NdJ("click",function(){return d.onCancel()}),e._uU(28),e.ALo(29,"translate"),e.qZA(),e.TgZ(30,"button",16),e.NdJ("click",function(){return d.onSubmit()}),e._uU(31),e.ALo(32,"translate"),e.qZA()()()),2&i){const x=e.MAs(19);e.Tol(d.theme),e.xp6(2),e.Oqu(e.lcZ(3,19,"DIALOGS.ADD_GROUPS.TITLE")),e.xp6(6),e.Oqu(e.lcZ(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",d.selectedRole),e.xp6(1),e.Q6J("ngForOf",d.availableRoles),e.xp6(3),e.Oqu(e.lcZ(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),e.xp6(2),e.s9C("placeholder",e.lcZ(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),e.Q6J("formControl",d.myControl)("matAutocomplete",x),e.xp6(2),e.Q6J("displayWith",d.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(21,27,d.filteredOptions)),e.xp6(2),e.Q6J("ngIf",null!==d.groups&&d.groups.length>0&&!d.loading),e.xp6(2),e.Q6J("ngIf",d.loading),e.xp6(1),e.Q6J("ngIf",null!==d.groups&&!d.loading),e.xp6(3),e.hij(" ",e.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===d.selection.selected.length||d.loading),e.xp6(1),e.hij(" ",e.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},dependencies:[a.sg,a.O5,c.XC,c.ZL,w.ey,y.KE,y.hX,U.Nt,t.Fj,t.JJ,t.oH,H.lW,A.uh,A.xY,A.H8,G.gD,F.Ou,T.W,Z.P,a.Ov,Q.X$,L.i]}),l})();var de=o(9244),Ee=o(15003),me=o(3848),Te=o(96214);function be(l,O){1&l&&(e._uU(0),e.ALo(1,"translate")),2&l&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function Ce(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(i);const x=e.oxw(2);return e.KtG(x.addManager())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&l&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function ve(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(i);const x=e.oxw(2);return e.KtG(x.removeManager())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&l){const i=e.oxw(2);e.Q6J("disabled",0===i.selectionUsers.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Se(l,O){if(1&l&&(e.TgZ(0,"mat-option",15),e.ALo(1,"lowercase"),e._uU(2),e.ALo(3,"displayedRole"),e.qZA()),2&l){const i=O.$implicit;e.Q6J("value",i.roleName),e.uIk("data-cy",e.lcZ(1,3,i.roleName)),e.xp6(2),e.hij(" ",e.lcZ(3,5,i)," ")}}function Oe(l,O){1&l&&e._UZ(0,"mat-spinner",16)}function Ie(l,O){if(1&l&&e._UZ(0,"app-users-list",17),2&l){const i=e.oxw(2);e.Q6J("disableSelf",i.disableSelf)("tableId",i.tableId)("disableRouting",!i.routeAuth||i.disableRouting)("displayedColumns",i.displayedUserColumns)("selection",i.selectionUsers)("users",i.managers)}}function De(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){e.CHM(i);const x=e.oxw();return e.KtG(x.refreshUsers())}),e.qZA(),e.YNc(1,Ce,3,3,"button",6),e.YNc(2,ve,3,4,"button",7),e.TgZ(3,"mat-form-field",8)(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){e.CHM(i);const x=e.oxw();return e.KtG(x.refreshUsers())})("valueChange",function(x){e.CHM(i);const ee=e.oxw();return e.KtG(ee.selectedRole=x)}),e.YNc(8,Se,4,7,"mat-option",10),e.qZA()(),e.YNc(9,Oe,1,0,"mat-spinner",11),e.YNc(10,Ie,1,6,"app-users-list",12)}if(2&l){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.manageAuth&&!i.configMode),e.xp6(1),e.Q6J("ngIf",i.manageAuth&&!i.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",i.selectedRole),e.xp6(1),e.Q6J("ngForOf",i.availableRoles),e.xp6(1),e.Q6J("ngIf",i.loading),e.xp6(1),e.Q6J("ngIf",!i.loading&&i.managers)}}function Me(l,O){1&l&&(e._uU(0),e.ALo(1,"translate")),2&l&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function xe(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(i);const x=e.oxw(2);return e.KtG(x.addGroup())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&l&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Ze(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(i);const x=e.oxw(2);return e.KtG(x.removeGroup())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&l){const i=e.oxw(2);e.Q6J("disabled",0===i.selectionGroups.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function ye(l,O){if(1&l&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&l){const i=O.$implicit;e.Q6J("value",i.roleName),e.xp6(1),e.Oqu(e.lcZ(2,2,i))}}function Ue(l,O){1&l&&e._UZ(0,"mat-spinner",16)}function Le(l,O){if(1&l&&e._UZ(0,"perun-web-apps-groups-list",24),2&l){const i=e.oxw(2);e.Q6J("disableMembers",!1)("disableRouting",i.disableRouting)("displayedColumns",i.displayedGroupColumns)("groups",i.groups)("selection",i.selectionGroups)("tableId",i.tableId)}}function Ge(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){e.CHM(i);const x=e.oxw();return e.KtG(x.refreshGroups())}),e.qZA(),e.YNc(1,xe,3,3,"button",18),e.YNc(2,Ze,3,4,"button",19),e.TgZ(3,"mat-form-field",20)(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){e.CHM(i);const x=e.oxw();return e.KtG(x.refreshGroups())})("valueChange",function(x){e.CHM(i);const ee=e.oxw();return e.KtG(ee.selectedRole=x)}),e.YNc(8,ye,3,4,"mat-option",10),e.qZA()(),e.YNc(9,Ue,1,0,"mat-spinner",11),e.YNc(10,Le,1,6,"perun-web-apps-groups-list",21)}if(2&l){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.manageAuth&&!i.configMode),e.xp6(1),e.Q6J("ngIf",i.manageAuth&&!i.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",i.selectedRole),e.xp6(1),e.Q6J("ngForOf",i.availableRoles),e.xp6(1),e.Q6J("ngIf",i.loading),e.xp6(1),e.Q6J("ngIf",!i.loading&&i.groups)}}function Ne(l,O){1&l&&(e.TgZ(0,"perun-web-apps-alert",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&l&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}let Pe=(()=>{class l{constructor(i,d,x,ee,le,ce,ue){this.dialog=i,this.authzService=d,this.storeService=x,this.guiAuthResolver=ee,this.router=le,this.reloadEntityDetail=ce,this.route=ue,this.configMode=!1,this.disableRouting=!1,this.disableSelf=!1,this.displayedUserColumns=["select","id","name","email","logins","organization"],this.displayedGroupColumns=["select","id","vo","name","description"],this.groups=[],this.managers=null,this.selectionUsers=new r.Ov(!0,[]),this.selectionGroups=new r.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=R.HC,this.availableRolesPrivileges=new Map}ngOnInit(){this.loading=!0,this.routeAuth=this.guiAuthResolver.isPerunAdminOrObserver(),this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(i=>this.availableRolesPrivileges.get(i.roleName).readAuth),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0].roleName),this.refreshUsers()}changeRolePrivileges(){this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(d=>this.availableRolesPrivileges.get(d.roleName).readAuth),this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.displayedUserColumns=this.manageAuth?this.displayedUserColumns:this.displayedUserColumns.filter(d=>"select"!==d),this.displayedGroupColumns=this.manageAuth?this.displayedGroupColumns:this.displayedGroupColumns.filter(d=>"select"!==d),this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;let i=!1;for(const d of this.roleModes)if(this.selectedMode===d.toLowerCase()){i=!0;break}i||(this.selectedMode=this.roleModes[0].toLowerCase())}tabChanged(i){this.loading=!0,0===i.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}refreshUsers(){this.loading=!0,this.changeRolePrivileges();let i=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];i=i.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,i,!1,!0).subscribe({next:d=>{this.managers=d,this.selectionUsers.clear(),this.loading=!1},error:()=>{this.loading=!1}})}refreshGroups(){this.loading=!0,this.changeRolePrivileges(),this.authzService.getAuthzAdminGroups(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType).subscribe({next:i=>{this.groups=i,this.selectionGroups.clear(),this.loading=!1},error:()=>{this.loading=!1}})}addManager(){const i=(0,de.kZ)();i.width="1000px",i.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(b,i).afterClosed().subscribe(x=>{x&&this.refreshUsers()})}removeManager(){const i=(0,de.kZ)();i.width="450px",i.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(M,i).afterClosed().subscribe(x=>{x&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?this.reloadEntityDetail.reloadEntityDetail():this.redirectToAuthRoute())})}removeGroup(){const i=(0,de.kZ)();i.width="450px",i.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(D,i).afterClosed().subscribe(x=>{x&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?this.refreshGroups():this.redirectToAuthRoute())})}addGroup(){const i=(0,de.kZ)();i.width="1000px",i.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(Re,i).afterClosed().subscribe(x=>{x&&this.refreshGroups()})}redirectToAuthRoute(){if("Group"===this.complementaryObjectType&&(this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.complementaryObject])||this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject])))this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.complementaryObject])?this.router.navigate(["/organizations",this.complementaryObject.voId,"groups",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"}):this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject])&&this.router.navigate(["/organizations",this.complementaryObject.voId],{queryParamsHandling:"merge"});else if("Facility"===this.complementaryObjectType&&this.guiAuthResolver.isAuthorized("getFacilityById_int_policy",[this.complementaryObject]))this.router.navigate(["/facilities",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"});else if("Vo"===this.complementaryObjectType&&this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject]))this.router.navigate(["/organizations",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"});else{if("Resource"!==this.complementaryObjectType||!this.guiAuthResolver.isAuthorized("getRichResourceById_int_policy",[this.complementaryObject]))return void this.router.navigate(["/home"],{queryParamsHandling:"merge"});this.router.navigate(["../../"],{relativeTo:this.route,queryParamsHandling:"merge"})}this.reloadEntityDetail.reloadEntityDetail()}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(A.uw),e.Y36(m.Ct),e.Y36(n.d6),e.Y36(n.x4),e.Y36(K.F0),e.Y36(Ee.G),e.Y36(K.gz))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(i,d){2&i&&e.ekj("router-component",d.true)},inputs:{complementaryObject:"complementaryObject",availableRoles:"availableRoles",complementaryObjectType:"complementaryObjectType",theme:"theme",configMode:"configMode",disableRouting:"disableRouting",disableSelf:"disableSelf",displayedUserColumns:"displayedUserColumns",displayedGroupColumns:"displayedGroupColumns"},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["alert_type","warn",4,"ngIf"],[1,"mt-2",3,"refresh"],["color","accent","class","mr-2 mt-2 action-button","data-cy","add-manager-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-manager-button","class","mr-2 mt-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["data-cy","role-filter",1,"mr-2","mt-2"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users",4,"ngIf"],["color","accent","data-cy","add-manager-button","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","data-cy","remove-manager-button","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users"],["color","accent","class","mr-2 mt-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mt-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","mt-2"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId"],["alert_type","warn"]],template:function(i,d){1&i&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"mat-tab-group",1),e.NdJ("selectedTabChange",function(ee){return d.tabChanged(ee)}),e.TgZ(4,"mat-tab"),e.YNc(5,be,2,3,"ng-template",2),e.YNc(6,De,11,9,"ng-template",3),e.qZA(),e.TgZ(7,"mat-tab"),e.YNc(8,Me,2,3,"ng-template",2),e.YNc(9,Ge,11,9,"ng-template",3),e.qZA()(),e.YNc(10,Ne,3,3,"perun-web-apps-alert",4)),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),e.xp6(9),e.Q6J("ngIf",0===d.availableRoles.length))},dependencies:[a.sg,a.O5,w.ey,y.KE,y.hX,H.lW,me.SP,me.uD,me.uX,me.Vc,G.gD,F.Ou,E.w,T.W,Te.t,P.C,a.i8,Q.X$,L.i]}),l})()},17672:(te,j,o)=>{o.d(j,{o:()=>_});var r=o(96308),A=o(30671),n=o(95017),m=o(81591),R=o(61744),s=o(9244),t=o(94650),e=o(89383),Q=o(36895),K=o(59549),a=o(284),w=o(24006),y=o(97392),U=o(4859),H=o(56709),G=o(10266),F=o(98380),E=o(18750),I=o(9185),P=o(8231),L=o(14849);function V(u,v){if(1&u){const f=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(g){t.CHM(f);const N=t.oxw(2);return t.KtG(g?N.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&u){const f=t.oxw().ngIf,D=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,f.all)))("checked",D.selection.hasValue()&&f.all)("indeterminate",D.selection.hasValue()&&!f.all)}}const W=function(u){return{name:u}};function oe(u,v){if(1&u){const f=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(g){const c=t.CHM(f).$implicit,T=t.oxw(2);return t.KtG(g?T.selection.toggle(c):null)})("click",function(g){return g.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&u){const f=v.$implicit,D=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,D.selection.isSelected(f)),t.VKq(7,W,f.tagName)))("checked",D.selection.isSelected(f))}}function ne(u,v){1&u&&(t.ynx(0,14),t.YNc(1,V,4,7,"th",15),t.YNc(2,oe,4,9,"td",16),t.BQk())}function B(u,v){1&u&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&u&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")," "))}function $(u,v){if(1&u&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&u){const f=v.$implicit;t.xp6(1),t.Oqu(f.id)}}function b(u,v){1&u&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&u&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")," "))}function h(u,v){if(1&u&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&u){const f=t.oxw().$implicit;t.xp6(1),t.hij(" ",f.tagName," ")}}function J(u,v){if(1&u){const f=t.EpF();t.TgZ(0,"div")(1,"mat-form-field")(2,"input",26),t.NdJ("ngModelChange",function(g){t.CHM(f);const N=t.oxw().$implicit;return t.KtG(N.tagName=g)}),t.qZA()()()}if(2&u){const f=t.oxw().$implicit;t.xp6(2),t.Q6J("ngModel",f.tagName)}}function C(u,v){if(1&u&&(t.TgZ(0,"td",24),t.YNc(1,h,2,1,"div",25),t.YNc(2,J,3,1,"div",25),t.qZA()),2&u){const f=v.$implicit,D=t.oxw();t.xp6(1),t.Q6J("ngIf",!D.isChanging.isSelected(f)),t.xp6(1),t.Q6J("ngIf",D.isChanging.isSelected(f))}}function Y(u,v){1&u&&t._UZ(0,"th",23)}function k(u,v){if(1&u){const f=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(f);const g=t.oxw().$implicit,N=t.oxw();return t.KtG(N.edit(g))}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA()()}2&u&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function X(u,v){if(1&u){const f=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(f);const g=t.oxw().$implicit,N=t.oxw();return t.KtG(N.save(g))}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"save"),t.qZA()()}2&u&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function se(u,v){if(1&u&&(t.TgZ(0,"td",24)(1,"div",27),t.YNc(2,k,4,3,"button",28),t.YNc(3,X,4,3,"button",28),t.qZA()()),2&u){const f=v.$implicit,D=t.oxw();t.xp6(2),t.Q6J("ngIf",!D.isChanging.isSelected(f)),t.xp6(1),t.Q6J("ngIf",D.isChanging.isSelected(f))}}function ae(u,v){1&u&&t._UZ(0,"tr",30)}function re(u,v){1&u&&t._UZ(0,"tr",31)}function M(u,v){if(1&u&&(t.TgZ(0,"perun-web-apps-alert",32),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&u){const f=t.oxw();t.xp6(1),t.hij(" ","vo"===f.entity?t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):t.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function S(u,v){1&u&&(t.TgZ(0,"perun-web-apps-alert",32),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&u&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const p=function(u){return{all:u}};let _=(()=>{class u{constructor(f,D,g,N,c){this.resourceManager=f,this.notificator=D,this.translator=g,this.authResolver=N,this.tableCheckbox=c,this.resourceTags=[],this.selection=new n.Ov(!0,[]),this.displayedColumns=["select","id","name","edit"],this.isChanging=new n.Ov(!0,[]),this.pageSizeOptions=s.f7}set matSort(f){this.sort=f,this.setDataSource()}static getDataForColumn(f,D){switch(D){case"id":return f.id.toString();case"name":return f.tagName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(f=>"id"!==f)),this.dataSource=new A.by(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(f){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,u.getDataForColumn),f)}exportDisplayedData(f){const D=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,g=D+this.dataSource.paginator.pageSize;(0,s.O6)((0,s.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(D,g),this.displayedColumns,u.getDataForColumn),f)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(f,D)=>(0,s.Sd)(f,D,this.displayedColumns,u.getDataForColumn),this.dataSource.sortData=(f,D)=>(0,s.pR)(f,D,u.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}save(f){this.resourceManager.updateResourceTag({resourceTag:f}).subscribe(()=>{this.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(D=>{this.notificator.showSuccess(D)}),this.isChanging.deselect(f)})}edit(f){this.isChanging.select(f)}}return u.\u0275fac=function(f){return new(f||u)(t.Y36(R.xk),t.Y36(m.V6),t.Y36(e.sK),t.Y36(m.x4),t.Y36(m.UA))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-resources-tags-list"]],viewQuery:function(f,D){if(1&f&&(t.Gf(s.l9,7),t.Gf(r.YE,7)),2&f){let g;t.iGM(g=t.CRH())&&(D.child=g.first),t.iGM(g=t.CRH())&&(D.matSort=g.first)}},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",tableId:"tableId",displayedColumns:"displayedColumns",entity:"entity"},features:[t.TTD],decls:18,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","edit"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["matInput","",3,"ngModel","ngModelChange"],[1,"d-flex","justify-content-end"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(f,D){1&f&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(N){return D.exportDisplayedData(N)})("exportAllData",function(N){return D.exportAllData(N)}),t.TgZ(2,"table",2),t.YNc(3,ne,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,B,3,3,"th",5),t.YNc(7,$,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,b,3,3,"th",8),t.YNc(10,C,3,2,"td",9),t.BQk(),t.ynx(11,10),t.YNc(12,Y,1,0,"th",8),t.YNc(13,se,4,2,"td",9),t.BQk(),t.YNc(14,ae,1,0,"tr",11),t.YNc(15,re,1,0,"tr",12),t.qZA()()(),t.YNc(16,M,4,5,"perun-web-apps-alert",13),t.YNc(17,S,3,3,"perun-web-apps-alert",13)),2&f&&(t.Q6J("hidden",0===D.resourceTags.length||0===D.dataSource.filteredData.length),t.xp6(1),t.Q6J("pageSizeOptions",D.pageSizeOptions)("dataLength",D.dataSource.filteredData.length)("tableId",D.tableId),t.xp6(1),t.Q6J("dataSource",D.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,p,t.xi3(4,10,D.dataSource,D.selection.selected.length))),t.xp6(11),t.Q6J("matHeaderRowDef",D.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",D.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===D.resourceTags.length),t.xp6(1),t.Q6J("ngIf",0===D.dataSource.filteredData.length&&0!==D.resourceTags.length))},dependencies:[Q.O5,K.KE,a.Nt,w.Fj,w.JJ,w.On,y.Hw,U.lW,r.YE,r.nU,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,H.oG,G.gM,F.w,E.l,e.X$,I.I,P.G,L.r]}),u})()},22158:(te,j,o)=>{o.d(j,{T:()=>A});var r=o(77579);const A=(n=class{})=>class extends n{constructor(){super(...arguments),this.destroyed$=new r.x}ngOnDestroy(){this.destroyed$.next()}}},90439:(te,j,o)=>{o.d(j,{F:()=>m});var r=o(94650),A=o(89593),n=o(89383);let m=(()=>{class R{constructor(){this.servicePackages=[],this.selectedPackage=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.packageSelected=new r.vpe,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.description,this.searchFunction=t=>t.name+t.description}}return R.\u0275fac=function(t){return new(t||R)},R.\u0275cmp=r.Xpm({type:R,selectors:[["perun-web-apps-service-package-search-select"]],inputs:{servicePackages:"servicePackages",selectedPackage:"selectedPackage",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{packageSelected:"packageSelected"},decls:4,vars:17,consts:[[3,"entities","entity","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(t,e){1&t&&(r.TgZ(0,"perun-web-apps-entity-search-select",0),r.NdJ("entitySelected",function(K){return e.packageSelected.emit(K)}),r.ALo(1,"translate"),r.ALo(2,"translate"),r.ALo(3,"translate"),r.qZA()),2&t&&r.Q6J("entities",e.servicePackages)("entity",e.selectedPackage)("multiple",e.multiple)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",r.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.SELECT_PACKAGE"))("findPlaceholder",r.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.FIND_PACKAGE"))("noEntriesText",r.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.NO_PACKAGE_FOUND"))("theme",e.theme)},dependencies:[A.i,n.X$]}),R})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/assets/config/version.json b/dist/apps/admin-gui/assets/config/version.json index 511b75335..2cb29a3c4 100644 --- a/dist/apps/admin-gui/assets/config/version.json +++ b/dist/apps/admin-gui/assets/config/version.json @@ -1 +1 @@ -{"version":"10.4.3"} +{"version":"10.5.0"} diff --git a/dist/apps/admin-gui/assets/i18n/en.json b/dist/apps/admin-gui/assets/i18n/en.json index d7503cabc..a09ecbfff 100644 --- a/dist/apps/admin-gui/assets/i18n/en.json +++ b/dist/apps/admin-gui/assets/i18n/en.json @@ -603,8 +603,7 @@ "VERIFIED": "Submitted" }, "DATE": { - "START": "Start date", - "END": "End date" + "LABEL": "Enter a date range" }, "APPLICATION_DETAIL": { "TITLE": "Application detail", @@ -629,7 +628,8 @@ "DELETE_APPLICATION_DESCRIPTION": "Application with following Id will be deleted.", "DELETE_MESSAGE": "Application was deleted", "APPROVE_MESSAGE": "Application was approved", - "VERIFY_MESSAGE": "Application was verified" + "VERIFY_MESSAGE": "Application was verified", + "AUTO_APPROVE_FAILURE": "Automatic approval of application failed" } }, "STATISTICS": { @@ -1178,7 +1178,8 @@ "EMPTY_SEARCH_MESSAGE": "The search field cannot be empty", "FAILED_DESC": "Following users couldn't be added due to an error", "NAME_COLUMN": "Name", - "ERROR_COLUMN": "Error" + "ERROR_COLUMN": "Error", + "INVITE_MEMBER_DISABLED": "Invitation form does not exist" }, "COPY_MEMBERS": { "TITLE": "Copy members", @@ -1455,6 +1456,7 @@ "HTMLMAILFOOTER_DESCRIPTION": "common mail HTML footer defined by organization", "ERRORS_DESCRIPTION": "errors description, what happened while processing new application. Useful for organization administrators", "CUSTOMMESSAGE_DESCRIPTION": "optional message passed by administrators when rejecting an application", + "AUTOAPPROVEERROR_DESCRIPTION": "error due to which automatic approval of application failed", "FROMAPPITEMNAME_DESCRIPTION": "value of a form item in user's application. You MUST specify the itemName, e.g. {fromApp-mail} will print value of item with short name 'mail' from user's application.", "FIRSTNAME_DESCRIPTION": "users first name taken from application form or Perun", "LASTNAME_DESCRIPTION": "users last name taken from application form or Perun", @@ -1805,7 +1807,7 @@ "CANCEL": "Cancel", "BACK": "Back", "SUBMIT": "Submit", - "FILTER": "Filter by facility:", + "FILTER": "Filter by facility", "SELECTED": "Selected resource:", "DESCRIPTION": "Description:", "SERVICES": "Services on resource:", diff --git a/dist/apps/admin-gui/index.html b/dist/apps/admin-gui/index.html index f64a228ad..fe577dcbc 100644 --- a/dist/apps/admin-gui/index.html +++ b/dist/apps/admin-gui/index.html @@ -14,5 +14,5 @@
- + diff --git a/dist/apps/admin-gui/main.3ff7b12e6fa8c390.js b/dist/apps/admin-gui/main.3ff7b12e6fa8c390.js new file mode 100644 index 000000000..78a8a2fca --- /dev/null +++ b/dist/apps/admin-gui/main.3ff7b12e6fa8c390.js @@ -0,0 +1 @@ +(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[179],{57788:($e,he,p)=>{"use strict";p.d(he,{g:()=>ut});var e=p(61744),A=p(10036),C=p(94650),M=p(36895),f=p(3848),b=p(51572),D=p(64877),T=p(62109),R=p(62707),B=p(38383),w=p(74010),H=p(9244),O=p(97392),J=p(4859),ne=p(10266),G=p(89593),se=p(64901),Oe=p(89383);function _e(tt,vt){if(1&tt){const ee=C.EpF();C.TgZ(0,"div",6)(1,"div",7)(2,"perun-web-apps-entity-search-select",8),C.NdJ("entitySelected",function(Ae){const ge=C.CHM(ee).$implicit;return C.KtG(ge[0]=Ae.namespace+":"+Ae.friendlyName)}),C.ALo(3,"translate"),C.ALo(4,"translate"),C.ALo(5,"translate"),C.qZA()(),C.TgZ(6,"div",9)(7,"perun-web-apps-debounce-filter",10),C.NdJ("filter",function(Ae){const ge=C.CHM(ee).$implicit;return C.KtG(ge[1]=Ae)}),C.qZA()(),C.TgZ(8,"div",11)(9,"button",12),C.NdJ("click",function(){const Ee=C.CHM(ee).$implicit,ge=C.oxw(2);return C.KtG(ge.removeOption(Ee))}),C.ALo(10,"translate"),C.TgZ(11,"mat-icon"),C._uU(12,"clear"),C.qZA()()()()}if(2&tt){const ee=C.oxw(2);C.xp6(2),C.Q6J("entities",ee.availableAttrDefs)("searchFunction",ee.nameFunction)("mainTextFunction",ee.nameFunction)("secondaryTextFunction",ee.secondaryTextFunction)("selectPlaceholder",C.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SELECT_ATTR_DEF"))("findPlaceholder",C.lcZ(4,12,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.FIND_ATTR_DEF"))("noEntriesText",C.lcZ(5,14,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.NO_ATTR_DEF_FOUND")),C.xp6(5),C.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_PLACEHOLDER"),C.xp6(2),C.s9C("matTooltip",C.lcZ(10,16,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.REMOVE_PARAMETER")),C.Q6J("disabled",1===ee.options.length)}}function Be(tt,vt){if(1&tt){const ee=C.EpF();C.TgZ(0,"div",1),C.YNc(1,_e,13,18,"div",2),C.TgZ(2,"button",3),C.NdJ("click",function(){C.CHM(ee);const Ae=C.oxw();return C.KtG(Ae.addOption())}),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.TgZ(5,"span",4),C.ALo(6,"translate"),C.TgZ(7,"button",5),C.NdJ("click",function(){C.CHM(ee);const Ae=C.oxw();return C.KtG(Ae.searchEntities())}),C.TgZ(8,"mat-icon"),C._uU(9,"search"),C.qZA(),C._uU(10),C.ALo(11,"translate"),C.qZA()()()}if(2&tt){const ee=C.oxw();C.xp6(1),C.Q6J("ngForOf",ee.options),C.xp6(2),C.hij(" ",C.lcZ(4,6,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.ADD_PARAMETER")," "),C.xp6(2),C.s9C("matTooltip",C.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON_TOOLTIP")),C.Q6J("matTooltipDisabled",!ee.emptySearchString()),C.xp6(2),C.Q6J("disabled",ee.emptySearchString()),C.xp6(3),C.hij(" ",C.lcZ(11,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON")," ")}}let E=(()=>{class tt{constructor(){this.attributeSelected=new C.vpe,this.search=new C.vpe,this.availableAttrDefs=[],this.options=[],this.nameFunction=ee=>ee.displayName,this.secondaryTextFunction=ee=>"#"+String(ee.id)}ngOnInit(){this.availableAttrDefs=this.attributes.filter(ee=>ee.entity===this.attributesForEntity).sort(H.Xd)}ngOnChanges(){this.options=[],this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}removeOption(ee){this.options=this.options.filter(nt=>nt!==ee)}addOption(){this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}emptySearchString(){return this.options.some(ee=>0===ee[1].length)}searchEntities(){const ee={};this.options.forEach(nt=>{ee[nt[0]]=nt[1]}),this.search.emit(ee)}}return tt.\u0275fac=function(ee){return new(ee||tt)},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["perun-web-apps-attribute-search-select"]],inputs:{attributes:"attributes",attributesForEntity:"attributesForEntity"},outputs:{attributeSelected:"attributeSelected",search:"search"},features:[C.TTD],decls:1,vars:1,consts:[["class","container ml-0 mr-0 pl-0 pr-0 mt-3",4,"ngIf"],[1,"container","ml-0","mr-0","pl-0","pr-0","mt-3"],["class","row",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["matTooltipPosition","below",3,"matTooltip","matTooltipDisabled"],["data-cy","searcher-search-button","mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"row"],[1,"col-7"],[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"],[1,"col-4","pr-0"],[3,"placeholder","filter"],[1,"col-1"],["mat-icon-button","","color","warn",1,"mt-2",3,"matTooltip","disabled","click"]],template:function(ee,nt){1&ee&&C.YNc(0,Be,12,12,"div",0),2&ee&&C.Q6J("ngIf",void 0!==nt.options)},dependencies:[M.sg,M.O5,O.Hw,J.lW,ne.gM,G.i,se.P,Oe.X$]}),tt})();function z(tt,vt){1&tt&&(C._uU(0),C.ALo(1,"translate")),2&tt&&C.hij(" ",C.lcZ(1,1,"ADMIN.SEARCHER.TAB_USERS")," ")}function F(tt,vt){if(1&tt){const ee=C.EpF();C.TgZ(0,"perun-web-apps-attribute-search-select",8),C.NdJ("search",function(Ae){C.CHM(ee);const Ee=C.oxw(2);return C.KtG(Ee.searchEntities(Ae,"user"))}),C.qZA()}if(2&tt){const ee=C.oxw(2);C.Q6J("attributes",ee.allAttrDefinitions)("attributesForEntity","user")}}const V=function(){return["user","id","name"]};function X(tt,vt){if(1&tt&&C._UZ(0,"app-users-list",9),2&tt){const ee=C.oxw(2);C.Q6J("tableId",ee.tableId)("displayedColumns",C.DdM(3,V))("users",ee.entities)}}function q(tt,vt){if(1&tt&&(C.YNc(0,F,1,2,"perun-web-apps-attribute-search-select",6),C.YNc(1,X,1,4,"app-users-list",7)),2&tt){const ee=C.oxw();C.Q6J("ngIf",!ee.loading),C.xp6(1),C.Q6J("ngIf",!ee.loadingEntityData)}}function pe(tt,vt){1&tt&&(C._uU(0),C.ALo(1,"translate")),2&tt&&C.hij(" ",C.lcZ(1,1,"ADMIN.SEARCHER.TAB_MEMBERS")," ")}function le(tt,vt){if(1&tt){const ee=C.EpF();C.TgZ(0,"perun-web-apps-vo-search-select",13),C.NdJ("voSelected",function(Ae){C.CHM(ee);const Ee=C.oxw(2);return C.KtG(Ee.voSelected(Ae))}),C.qZA()}if(2&tt){const ee=C.oxw(2);C.Q6J("vos",ee.vos)}}function ye(tt,vt){if(1&tt){const ee=C.EpF();C.TgZ(0,"perun-web-apps-attribute-search-select",8),C.NdJ("search",function(Ae){C.CHM(ee);const Ee=C.oxw(2);return C.KtG(Ee.searchEntities(Ae,"member"))}),C.qZA()}if(2&tt){const ee=C.oxw(2);C.Q6J("attributes",ee.allAttrDefinitions)("attributesForEntity","user")}}const Ve=function(){return["id","voId","userId","status"]};function ve(tt,vt){if(1&tt){const ee=C.EpF();C.TgZ(0,"perun-web-apps-members-list",14),C.NdJ("updateTable",function(){C.CHM(ee);const Ae=C.oxw(2);return C.KtG(Ae.searchEntities(Ae.searchInput,"member"))}),C.qZA()}if(2&tt){const ee=C.oxw(2);C.Q6J("tableId",ee.tableId)("displayedColumns",C.DdM(5,Ve))("disableStatusChange",!0)("disableExpirationChange",!0)("members",ee.entities)}}function Ke(tt,vt){if(1&tt&&(C.TgZ(0,"div",10),C.YNc(1,le,1,1,"perun-web-apps-vo-search-select",11),C.qZA(),C.YNc(2,ye,1,2,"perun-web-apps-attribute-search-select",6),C.YNc(3,ve,1,6,"perun-web-apps-members-list",12)),2&tt){const ee=C.oxw();C.xp6(1),C.Q6J("ngIf",ee.vos.length>0),C.xp6(1),C.Q6J("ngIf",!ee.loading),C.xp6(1),C.Q6J("ngIf",!ee.loadingEntityData)}}function Ue(tt,vt){1&tt&&(C._uU(0),C.ALo(1,"translate")),2&tt&&C.hij(" ",C.lcZ(1,1,"ADMIN.SEARCHER.TAB_FACILITIES")," ")}function oe(tt,vt){if(1&tt){const ee=C.EpF();C.TgZ(0,"perun-web-apps-attribute-search-select",8),C.NdJ("search",function(Ae){C.CHM(ee);const Ee=C.oxw(2);return C.KtG(Ee.searchEntities(Ae,"facility"))}),C.qZA()}if(2&tt){const ee=C.oxw(2);C.Q6J("attributes",ee.allAttrDefinitions)("attributesForEntity","facility")}}const ce=function(){return["id","name","description"]};function k(tt,vt){if(1&tt&&C._UZ(0,"perun-web-apps-facilities-list",16),2&tt){const ee=C.oxw(2);C.Q6J("tableId",ee.tableId)("displayedColumns",C.DdM(3,ce))("facilities",ee.entities)}}function N(tt,vt){if(1&tt&&(C.YNc(0,oe,1,2,"perun-web-apps-attribute-search-select",6),C.YNc(1,k,1,4,"perun-web-apps-facilities-list",15)),2&tt){const ee=C.oxw();C.Q6J("ngIf",!ee.loading),C.xp6(1),C.Q6J("ngIf",!ee.loadingEntityData)}}function be(tt,vt){1&tt&&(C._uU(0),C.ALo(1,"translate")),2&tt&&C.hij(" ",C.lcZ(1,1,"ADMIN.SEARCHER.TAB_RESOURCES")," ")}function W(tt,vt){if(1&tt){const ee=C.EpF();C.TgZ(0,"perun-web-apps-attribute-search-select",8),C.NdJ("search",function(Ae){C.CHM(ee);const Ee=C.oxw(2);return C.KtG(Ee.searchEntities(Ae,"resource"))}),C.qZA()}if(2&tt){const ee=C.oxw(2);C.Q6J("attributes",ee.allAttrDefinitions)("attributesForEntity","resource")}}const ue=function(){return["id","name","description","voId","facilityId"]};function Me(tt,vt){if(1&tt&&C._UZ(0,"perun-web-apps-resources-list",18),2&tt){const ee=C.oxw(2);C.Q6J("tableId",ee.tableId)("displayedColumns",C.DdM(3,ue))("resources",ee.entities)}}function ot(tt,vt){if(1&tt&&(C.YNc(0,W,1,2,"perun-web-apps-attribute-search-select",6),C.YNc(1,Me,1,4,"perun-web-apps-resources-list",17)),2&tt){const ee=C.oxw();C.Q6J("ngIf",!ee.loading),C.xp6(1),C.Q6J("ngIf",!ee.loadingEntityData)}}function je(tt,vt){1&tt&&C._UZ(0,"mat-spinner",19)}let ut=(()=>{class tt{constructor(ee,nt,Ae){this.attributesManager=ee,this.searcher=nt,this.voService=Ae,this.loadingEntityData=!1,this.allAttrDefinitions=[],this.tableId=A.ee,this.entities=[],this.vos=[]}ngOnInit(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(ee=>{this.allAttrDefinitions=ee,this.loading=!1})}tabChanged(ee){switch(this.entities=[],ee){case 0:this.tableId=A.ee;break;case 1:this.loadingEntityData=!0,this.loadAllVos(),this.tableId=A.FF;break;case 2:this.tableId=A.$I;break;case 3:this.tableId=A.XH}}loadAllVos(){this.loadingEntityData=!0,this.voService.getAllVos().subscribe(ee=>{this.vos=ee,this.selectedVo=ee[0],this.loadingEntityData=!1})}voSelected(ee){void 0!==ee&&(this.selectedVo=ee)}searchEntities(ee,nt){switch(this.searchInput=ee,this.loadingEntityData=!0,nt){case"user":this.getUsers();break;case"member":this.getMembers();break;case"facility":this.getFacilities();break;case"resource":this.getResources()}}getUsers(){this.searcher.getUsersSearcher({attributesWithSearchingValues:this.searchInput}).subscribe(ee=>{this.entities=ee,this.loadingEntityData=!1})}getMembers(){this.searcher.getMembersByUserAttributes({vo:this.selectedVo.id,userAttributesWithSearchingValues:this.searchInput}).subscribe(ee=>{this.entities=ee,this.loadingEntityData=!1})}getFacilities(){this.searcher.getFacilities({attributesWithSearchingValues:this.searchInput}).subscribe(ee=>{this.entities=ee.map(nt=>({facility:nt})),this.loadingEntityData=!1})}getResources(){this.searcher.getAttributesResources({attributesWithSearchingValues:this.searchInput}).subscribe(ee=>{this.entities=ee,this.loadingEntityData=!1})}}return tt.id="AdminSearcherComponent",tt.\u0275fac=function(ee){return new(ee||tt)(C.Y36(e.H8),C.Y36(e.t7),C.Y36(e.YF))},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["app-admin-searcher"]],hostVars:2,hostBindings:function(ee,nt){2&ee&&C.ekj("router-component",nt.true)},decls:17,vars:4,consts:[[1,"page-subtitle"],[3,"selectedIndexChange"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","attributesForEntity","search",4,"ngIf"],[3,"tableId","displayedColumns","users",4,"ngIf"],[3,"attributes","attributesForEntity","search"],[3,"tableId","displayedColumns","users"],[1,"mt-3"],[3,"vos","voSelected",4,"ngIf"],[3,"tableId","displayedColumns","disableStatusChange","disableExpirationChange","members","updateTable",4,"ngIf"],[3,"vos","voSelected"],[3,"tableId","displayedColumns","disableStatusChange","disableExpirationChange","members","updateTable"],[3,"tableId","displayedColumns","facilities",4,"ngIf"],[3,"tableId","displayedColumns","facilities"],[3,"tableId","displayedColumns","resources",4,"ngIf"],[3,"tableId","displayedColumns","resources"],[1,"ml-auto","mr-auto"]],template:function(ee,nt){1&ee&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"mat-tab-group",1),C.NdJ("selectedIndexChange",function(Ee){return nt.tabChanged(Ee)}),C.TgZ(4,"mat-tab",2),C.YNc(5,z,2,3,"ng-template",3),C.YNc(6,q,2,2,"ng-template",4),C.qZA(),C.TgZ(7,"mat-tab"),C.YNc(8,pe,2,3,"ng-template",3),C.YNc(9,Ke,4,3,"ng-template",4),C.qZA(),C.TgZ(10,"mat-tab"),C.YNc(11,Ue,2,3,"ng-template",3),C.YNc(12,N,2,2,"ng-template",4),C.qZA(),C.TgZ(13,"mat-tab"),C.YNc(14,be,2,3,"ng-template",3),C.YNc(15,ot,2,2,"ng-template",4),C.qZA()(),C.YNc(16,je,1,0,"mat-spinner",5)),2&ee&&(C.xp6(1),C.Oqu(C.lcZ(2,2,"ADMIN.SEARCHER.TITLE")),C.xp6(15),C.Q6J("ngIf",nt.loading||nt.loadingEntityData))},dependencies:[M.O5,f.SP,f.uD,f.uX,f.Vc,b.Ou,D.C,T.C,R.M,B.O,w.X,E,Oe.X$]}),tt})()},80774:($e,he,p)=>{"use strict";p.d(he,{F:()=>E});var e=p(95017),A=p(61744),C=p(10036),M=p(9244),f=p(40009),b=p(90719),D=p(81591),T=p(94650),R=p(65412),B=p(36895),w=p(4859),H=p(51572),O=p(60205),J=p(96214),ne=p(7434),G=p(89383);function se(z,F){if(1&z){const V=T.EpF();T.TgZ(0,"button",7),T.NdJ("click",function(){T.CHM(V);const q=T.oxw();return T.KtG(q.createService())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&z&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"ADMIN.SERVICES.CREATE")," "))}function Oe(z,F){if(1&z){const V=T.EpF();T.TgZ(0,"button",8),T.NdJ("click",function(){T.CHM(V);const q=T.oxw();return T.KtG(q.deleteService())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&z){const V=T.oxw();T.Q6J("disabled",0===V.selection.selected.length),T.xp6(1),T.hij(" ",T.lcZ(2,2,"ADMIN.SERVICES.DELETE")," ")}}function _e(z,F){1&z&&T._UZ(0,"mat-spinner",9)}function Be(z,F){if(1&z&&T._UZ(0,"app-services-list",10),2&z){const V=T.oxw();T.Q6J("filterValue",V.filterValue)("selection",V.selection)("services",V.services)("tableId",V.tableId)}}let E=(()=>{class z{constructor(V,X,q){this.serviceManager=V,this.dialog=X,this.authResolver=q,this.selection=new e.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=C.NL}ngOnInit(){this.serviceManager.getServices().subscribe(V=>{this.services=V,this.refreshTable()})}createService(){const V=(0,M.kZ)();V.width="600px",V.data={theme:"admin-theme"},this.dialog.open(f.R,V).afterClosed().subscribe(q=>{q&&this.refreshTable()})}deleteService(){const V=(0,M.kZ)();V.width="600px",V.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(b.m,V).afterClosed().subscribe(q=>{q&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(V=>{this.services=V,this.selection.clear(),this.loading=!1})}applyFilter(V){this.filterValue=V}}return z.id="AdminServicesComponent",z.\u0275fac=function(V){return new(V||z)(T.Y36(A.KK),T.Y36(R.uw),T.Y36(D.x4))},z.\u0275cmp=T.Xpm({type:z,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button mr-2","data-cy","service-create-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","data-cy","service-delete-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"filterValue","selection","services","tableId",4,"ngIf"],["color","accent","data-cy","service-create-button","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","data-cy","service-delete-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"filterValue","selection","services","tableId"]],template:function(V,X){1&V&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"perun-web-apps-refresh-button",1),T.NdJ("refresh",function(){return X.refreshTable()}),T.qZA(),T.YNc(5,se,3,3,"button",2),T.YNc(6,Oe,3,4,"button",3),T.TgZ(7,"perun-web-apps-immediate-filter",4),T.NdJ("filter",function(pe){return X.applyFilter(pe)}),T.qZA(),T.YNc(8,_e,1,0,"mat-spinner",5),T.YNc(9,Be,1,4,"app-services-list",6),T.qZA()),2&V&&(T.xp6(2),T.Oqu(T.lcZ(3,6,"ADMIN.SERVICES.TITLE")),T.xp6(3),T.Q6J("ngIf",X.authResolver.isPerunAdmin()),T.xp6(1),T.Q6J("ngIf",X.authResolver.isPerunAdmin()),T.xp6(1),T.Q6J("placeholder","ADMIN.SERVICES.FILTER"),T.xp6(1),T.Q6J("ngIf",X.loading),T.xp6(1),T.Q6J("ngIf",!X.loading))},dependencies:[B.O5,w.lW,H.Ou,O.Q,J.t,ne.L,G.X$]}),z})()},25828:($e,he,p)=>{"use strict";p.d(he,{t:()=>w});var e=p(10036),A=p(64080),C=p(81591),M=p(94650),f=p(56709),b=p(96214),D=p(64901),T=p(11447),R=p(89383);const B=function(){return["user","id","name","email","logins","organization"]};let w=(()=>{class H{constructor(J){this.storeService=J,this.usersWithoutVo=!1,this.tableId=e.xx,this.attributes=[],this.update=!1}ngOnInit(){this.attributes=[A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(J){this.searchString=J}findUsersWithoutVO(){this.usersWithoutVo=!this.usersWithoutVo}refresh(){this.update=!this.update}}return H.id="AdminUsersComponent",H.\u0275fac=function(J){return new(J||H)(M.Y36(C.d6))},H.\u0275cmp=M.Xpm({type:H,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(J,ne){2&J&&M.ekj("router-component",ne.true)},decls:9,vars:17,consts:[[1,"page-subtitle"],[3,"click"],[1,"mt-2","search-field",3,"autoFocus","placeholder","filter"],["color","primary",3,"checked","change"],[3,"disableRouting","searchString","attrNames","displayedColumns","tableId","withoutVo","updateTable"]],template:function(J,ne){1&J&&(M.TgZ(0,"h1",0),M._uU(1),M.ALo(2,"translate"),M.qZA(),M.TgZ(3,"perun-web-apps-refresh-button",1),M.NdJ("click",function(){return ne.refresh()}),M.qZA(),M.TgZ(4,"perun-web-apps-debounce-filter",2),M.NdJ("filter",function(se){return ne.onSearchByString(se)}),M.qZA(),M.TgZ(5,"mat-checkbox",3),M.NdJ("change",function(){return ne.findUsersWithoutVO()}),M._uU(6),M.ALo(7,"translate"),M.qZA(),M._UZ(8,"perun-web-apps-users-dynamic-list",4)),2&J&&(M.xp6(1),M.Oqu(M.lcZ(2,12,"ADMIN.USERS.TITLE")),M.xp6(3),M.Q6J("autoFocus",!0)("placeholder","ADMIN.USERS.SEARCH_PLACEHOLDER"),M.xp6(1),M.Q6J("checked",ne.usersWithoutVo),M.xp6(1),M.hij(" ",M.lcZ(7,14,"ADMIN.USERS.USERS_WITHOUT_VO"),"\n"),M.xp6(2),M.Q6J("disableRouting",!1)("searchString",ne.searchString)("attrNames",ne.attributes)("displayedColumns",M.DdM(16,B))("tableId",ne.tableId)("withoutVo",ne.usersWithoutVo)("updateTable",ne.update))},dependencies:[f.oG,b.t,D.P,T.M,R.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),H})()},72077:($e,he,p)=>{"use strict";p.d(he,{y:()=>F});var e=p(81591),A=p(17445),C=p(80529),M=p(9244),f=p(94650),b=p(65412),D=p(4859),T=p(89383);let R=(()=>{class V{constructor(q){this.dialogRef=q}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return V.\u0275fac=function(q){return new(q||V)(f.Y36(b.so))},V.\u0275cmp=f.Xpm({type:V,selectors:[["app-new-version-dialog"]],decls:15,vars:12,consts:[["mat-dialog-title",""],[1,"user-theme"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(q,pe){1&q&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1)(4,"div",2)(5,"p"),f._uU(6),f.ALo(7,"translate"),f.qZA()(),f.TgZ(8,"div",3)(9,"button",4),f.NdJ("click",function(){return pe.onClose()}),f._uU(10),f.ALo(11,"translate"),f.qZA(),f.TgZ(12,"button",5),f.NdJ("click",function(){return pe.onReload()}),f._uU(13),f.ALo(14,"translate"),f.qZA()()()),2&q&&(f.xp6(1),f.Oqu(f.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),f.xp6(5),f.hij(" ",f.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),f.xp6(4),f.hij(" ",f.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),f.xp6(3),f.hij(" ",f.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},dependencies:[D.lW,b.uh,b.xY,b.H8,T.X$]}),V})();var B=p(94364),w=p(39300),H=p(40034);let O=(()=>{class V{constructor(q,pe){this.router=q,this.routeReuseStrategy=pe;const le=pe;q.events.subscribe(ye=>{ye instanceof B.OD&&le.setLastNavigationType("popstate"===ye.navigationTrigger?"back":"direct")})}init(){}}return V.\u0275fac=function(q){return new(q||V)(f.LFG(B.F0),f.LFG(B.wN))},V.\u0275prov=f.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const J=["footer"];function ne(V,X){if(1&V&&(f.TgZ(0,"div",3)(1,"mat-icon"),f._uU(2,"alert"),f.qZA(),f._uU(3),f.qZA()),2&V){const q=f.oxw();f.xp6(3),f.hij(" ",q.warningMessage,"\n")}}const G=function(V,X){return{top:V,background:X}},se=function(V,X){return{"margin-top":V,"min-height":X}},Oe=function(V,X){return{"border-color":V,background:X}},_e=function(V){return{"background-color":V}},Be=function(V){return{"min-height":V}};function E(V,X){if(1&V){const q=f.EpF();f.TgZ(0,"perun-web-apps-header",4),f.NdJ("sidenavToggle",function(){f.CHM(q);const le=f.MAs(3);return f.KtG(le.toggle())}),f.qZA(),f.TgZ(1,"mat-sidenav-container",5)(2,"mat-sidenav",6,7)(4,"ng-scrollbar"),f._UZ(5,"app-side-menu",8),f.qZA()(),f.TgZ(6,"mat-sidenav-content",9)(7,"div",10),f._UZ(8,"router-outlet"),f.qZA(),f.TgZ(9,"div",null,11),f._UZ(11,"perun-web-apps-footer"),f.qZA()()()}if(2&V){const q=f.MAs(3),pe=f.oxw();f.Q6J("ngStyle",f.WLB(12,G,pe.getNavMenuTop(),pe.navBackgroundColor))("otherApp",pe.otherApp)("showNotifications",!0),f.xp6(1),f.Q6J("ngStyle",f.WLB(15,se,pe.getSideNavMarginTop(),pe.getSideNavMinHeight())),f.xp6(1),f.Q6J("fixedInViewport",!0)("mode",pe.sidebarMode)("fixedTopGap",pe.getTopGap())("ngStyle",f.WLB(18,Oe,pe.sideBarBorderColor,pe.sideMenubackgroundColor))("opened",!pe.isMobile()),f.xp6(3),f.Q6J("sideNav",q),f.xp6(1),f.Q6J("ngStyle",f.VKq(21,_e,pe.contentBackgroundColor)),f.xp6(1),f.Q6J("ngStyle",f.VKq(23,Be,pe.contentInnerMinHeight))}}function z(V,X){1&V&&f._UZ(0,"perun-web-apps-login-screen-base",12),2&V&&f.Q6J("application","admin-gui")}let F=(()=>{class V{constructor(q,pe,le,ye,Ve,ve,Ke,Ue){this.cache=q,this.store=pe,this.http=le,this.dialog=ye,this.router=Ve,this.initAuth=ve,this.authService=Ke,this.cd=Ue,this.otherApp=H.p.Profile,this.sidebarMode="side",this.theme=this.store.getProperty("theme"),this.navBackgroundColor=this.theme.nav_bg_color,this.sideBarBorderColor=this.theme.sidemenu_border_color,this.contentBackgroundColor=this.theme.content_bg_color,this.sideMenubackgroundColor=this.theme.sidemenu_bg_color,this.displayWarning=this.store.getProperty("display_warning"),this.warningMessage=this.store.getProperty("warning_message"),this.version=p(4147).i8,this.contentInnerMinHeight=this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)",this.cache.init(),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side",this.lastScreenWidth=window.innerWidth}isLoggedIn(){return!this.authService.isLoggedIn()&&!this.initAuth.isServiceAccess()}isMobile(){return window.innerWidth<=V.minWidth}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),null===sessionStorage.getItem("initPage")&&(sessionStorage.setItem("initPage",location.pathname),sessionStorage.setItem("onInitPage","true")),this.store.setInitialPageId(1),this.principal=this.store.getPerunPrincipal(),this.loadAppVersion(),(0,A.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,w.h)(q=>q instanceof B.OD)).subscribe(q=>{this.updateInitAccessedPage(q)})}getTopGap(){return this.displayWarning?112:64}getSideNavMarginTop(){return this.displayWarning?"112px":"64px"}getSideNavMinHeight(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}getNavMenuTop(){return this.displayWarning?"48px":"0"}ngAfterViewInit(){const q=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentInnerMinHeight=this.displayWarning?"calc(100vh - "+q+"px - 112px)":"calc(100vh - "+q+"px - 64px)",this.cd.detectChanges()}updateInitAccessedPage(q){q.url===sessionStorage.getItem("initPage")?("imperative"===q.navigationTrigger&&q.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===q.navigationTrigger&&(q.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(q.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const q=new C.WM({"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"});this.http.get("/assets/config/version.json",{headers:q}).subscribe(pe=>{const le=pe.version;if(le)if(this.version&&"SNAPSHOT"!==le&&this.version!==le){const ye=(0,M.kZ)();this.dialog.open(R,ye)}else this.version=le})}}return V.minWidth=992,V.\u0275fac=function(q){return new(q||V)(f.Y36(O),f.Y36(e.d6),f.Y36(C.eN),f.Y36(b.uw),f.Y36(B.F0),f.Y36(e.v0),f.Y36(e.e8),f.Y36(f.sBO))},V.\u0275cmp=f.Xpm({type:V,selectors:[["app-root"]],viewQuery:function(q,pe){if(1&q&&f.Gf(J,5),2&q){let le;f.iGM(le=f.CRH())&&(pe.footer=le.first)}},hostBindings:function(q,pe){1&q&&f.NdJ("resize",function(ye){return pe.getScreenSize(ye)},!1,f.Jf7)},decls:4,vars:4,consts:[["class","beta-warning",4,"ngIf"],[3,"displayWarning"],[3,"ngIf"],[1,"beta-warning"],["id","nav-menu",1,"mat-elevation-z3",3,"ngStyle","otherApp","showNotifications","sidenavToggle"],["autosize","true",3,"ngStyle"],[3,"fixedInViewport","mode","fixedTopGap","ngStyle","opened"],["sidenav",""],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application"]],template:function(q,pe){1&q&&(f.YNc(0,ne,4,1,"div",0),f._UZ(1,"perun-web-apps-notificator",1),f.YNc(2,E,12,25,"ng-template",2),f.YNc(3,z,1,1,"ng-template",2)),2&q&&(f.Q6J("ngIf",pe.displayWarning),f.xp6(1),f.Q6J("displayWarning",pe.displayWarning),f.xp6(1),f.Q6J("ngIf",!pe.isLoginScreenShow&&!pe.isServiceAccess&&!pe.isLoggedIn()),f.xp6(1),f.Q6J("ngIf",pe.isLoginScreenShow||pe.isServiceAccess||pe.isLoggedIn()))},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px}.beta-warning[_ngcontent-%COMP%]{overflow:hidden;height:48px;position:fixed;z-index:999;top:0;background-color:#ffbfc5;width:100%;color:#d32f2f;text-align:center;font-weight:500;padding:6px;line-height:36px;font-size:1rem}ng-scrollbar[_ngcontent-%COMP%]{--scrollbar-thumb-color: #6a6a6a;--scrollbar-thumb-hover-color: lightgrey}"]}),V})()},77968:($e,he,p)=>{"use strict";p.d(he,{D:()=>A});var e=p(94650);let A=(()=>{class C{constructor(){this.accessItemsChange=new e.vpe,this.facilityItemsChange=new e.vpe,this.adminItemsChange=new e.vpe,this.userItemsChange=new e.vpe,this.resetChange=new e.vpe,this.homeItemsChange=new e.vpe}setHomeItems(f){this.homeItemsChange.emit(f)}setAccessMenuItems(f){this.accessItemsChange.emit(f)}setFacilityMenuItems(f){this.facilityItemsChange.emit(f)}setAdminItems(f){this.adminItemsChange.emit(f)}setUserItems(f){this.userItemsChange.emit(f)}reset(){this.resetChange.emit()}}return C.\u0275fac=function(f){return new(f||C)},C.\u0275prov=e.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})()},37380:($e,he,p)=>{"use strict";p.d(he,{o:()=>Oe});var e=p(61744),A=p(10036),C=p(81591),M=p(94650),f=p(36895),b=p(3238),D=p(59549),T=p(84385),R=p(51572),B=p(25788),w=p(96214),H=p(7434),O=p(89383);function J(_e,Be){if(1&_e&&(M.TgZ(0,"mat-option",9),M._uU(1),M.qZA()),2&_e){const E=Be.$implicit;M.Q6J("value",E.id),M.xp6(1),M.hij(" ",E.name," ")}}function ne(_e,Be){1&_e&&M._UZ(0,"mat-spinner",10)}const G=function(){return["id","vo","name","description"]};function se(_e,Be){if(1&_e&&M._UZ(0,"perun-web-apps-groups-list",11),2&_e){const E=M.oxw();M.Q6J("displayedColumns",M.DdM(6,G))("groups",E.groupsToShow)("disableMembers",!1)("filter",E.filterValue)("groupsToDisableRouting",E.groupsWithoutRouteAuth)("tableId",E.tableId)}}let Oe=(()=>{class _e{constructor(E,z,F){this.facilityManager=E,this.authResolver=z,this.entityStorageService=F,this.groups=[],this.filterValue="",this.selected="all",this.groupsToShow=this.groups,this.tableId=A.Aj,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.facilityManager.getAllowedVos(this.facility.id).subscribe(E=>{this.vos=E,this.refreshTable()})}showGroup(){this.groupsToShow="all"!==this.selected?this.groups.filter(E=>E.voId===parseInt(this.selected,10)):this.groups}refreshTable(){this.loading=!0,this.groups=[],this.facilityManager.getAllowedGroups(this.facility.id).subscribe(E=>{this.groups=this.groups.concat(E),this.groupsToShow=this.groups,this.setAuthRights(E),this.loading=!1}),0===this.vos.length&&(this.loading=!1)}setAuthRights(E){E.forEach(z=>{this.authResolver.isAuthorized("getGroupById_int_policy",[z])||this.groupsWithoutRouteAuth.add(z.id)})}applyFilter(E){this.filterValue=E}}return _e.id="FacilityAllowedGroupsComponent",_e.\u0275fac=function(E){return new(E||_e)(M.Y36(e.IQ),M.Y36(C.x4),M.Y36(C.fb))},_e.\u0275cmp=M.Xpm({type:_e,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(E,z){2&E&&M.ekj("router-component",z.true)},inputs:{groups:"groups"},decls:17,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],[1,"mr-2"],[3,"value","selectionChange","valueChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId",4,"ngIf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId"]],template:function(E,z){1&E&&(M.TgZ(0,"div")(1,"h1",0),M._uU(2),M.ALo(3,"translate"),M.qZA(),M.TgZ(4,"perun-web-apps-refresh-button",1),M.NdJ("refresh",function(){return z.refreshTable()}),M.qZA(),M.TgZ(5,"mat-form-field",2)(6,"mat-label"),M._uU(7),M.ALo(8,"translate"),M.qZA(),M.TgZ(9,"mat-select",3),M.NdJ("selectionChange",function(){return z.showGroup()})("valueChange",function(V){return z.selected=V}),M.TgZ(10,"mat-option",4),M._uU(11),M.ALo(12,"translate"),M.qZA(),M.YNc(13,J,2,2,"mat-option",5),M.qZA()(),M.TgZ(14,"perun-web-apps-immediate-filter",6),M.NdJ("filter",function(V){return z.applyFilter(V)}),M.qZA(),M.YNc(15,ne,1,0,"mat-spinner",7),M.YNc(16,se,1,7,"perun-web-apps-groups-list",8),M.qZA()),2&E&&(M.xp6(2),M.Oqu(M.lcZ(3,8,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),M.xp6(5),M.Oqu(M.lcZ(8,10,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),M.xp6(2),M.Q6J("value",z.selected),M.xp6(2),M.Oqu(M.lcZ(12,12,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),M.xp6(2),M.Q6J("ngForOf",z.vos),M.xp6(1),M.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),M.xp6(1),M.Q6J("ngIf",z.loading),M.xp6(1),M.Q6J("ngIf",!z.loading))},dependencies:[f.sg,f.O5,b.ey,D.KE,D.hX,T.gD,R.Ou,B.W,w.t,H.L,O.X$]}),_e})()},25610:($e,he,p)=>{"use strict";p.d(he,{_:()=>ye});var e=p(10036),A=p(61744),C=p(81591),M=p(64080),f=p(24006),b=p(94650),D=p(36895),T=p(3238),R=p(59549),B=p(84385),w=p(51572),H=p(90455),O=p(96214),J=p(62707),ne=p(45703),G=p(64901),se=p(11447),Oe=p(30540),_e=p(97392),Be=p(4859),E=p(89383);let z=(()=>{class Ve{constructor(){this.changeAdvancedFilter=new b.vpe,this.clearFilters=new b.vpe}ngOnInit(){this.changeAdvancedFilter.emit(this.advancedFilter)}toggleAdvancedFilter(){this.advancedFilter=!this.advancedFilter,this.changeAdvancedFilter.emit(this.advancedFilter)}}return Ve.\u0275fac=function(Ke){return new(Ke||Ve)},Ve.\u0275cmp=b.Xpm({type:Ve,selectors:[["perun-web-apps-advanced-filter"]],inputs:{filtersCount:"filtersCount",advancedFilter:"advancedFilter"},outputs:{changeAdvancedFilter:"changeAdvancedFilter",clearFilters:"clearFilters"},decls:12,vars:11,consts:[["mat-stroked-button","",3,"click"]],template:function(Ke,Ue){1&Ke&&(b.TgZ(0,"button",0),b.NdJ("click",function(){return Ue.toggleAdvancedFilter()}),b.TgZ(1,"mat-icon"),b._uU(2,"filter_list"),b.qZA(),b._uU(3),b.ALo(4,"translate"),b.TgZ(5,"mat-icon"),b._uU(6),b.qZA()(),b.TgZ(7,"button",0),b.NdJ("click",function(){return Ue.clearFilters.emit()}),b.TgZ(8,"mat-icon"),b._uU(9,"filter_list_off"),b.qZA(),b._uU(10),b.ALo(11,"translate"),b.qZA()),2&Ke&&(b.Gre("mr-2 ",Ue.filtersCount?"grey":"no-color",""),b.xp6(3),b.AsE(" ",b.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",Ue.filtersCount?"("+Ue.filtersCount+")":null," "),b.xp6(3),b.Oqu(Ue.advancedFilter?"arrow_drop_up":"arrow_drop_down"),b.xp6(4),b.hij(" ",b.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},dependencies:[_e.Hw,Be.lW,E.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:gray}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),Ve})();function F(Ve,ve){if(1&Ve&&(b.TgZ(0,"mat-option",19),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&Ve){const Ke=ve.$implicit;b.Q6J("value",Ke),b.xp6(1),b.Oqu(b.lcZ(2,2,"CONSENTS.STATUS_"+Ke))}}function V(Ve,ve){if(1&Ve){const Ke=b.EpF();b.TgZ(0,"mat-form-field",16)(1,"mat-label"),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"mat-select",17),b.NdJ("closed",function(){b.CHM(Ke);const oe=b.oxw(2);return b.KtG(oe.consentStatusSelected())}),b.TgZ(5,"mat-select-trigger"),b._uU(6),b.qZA(),b.YNc(7,F,3,4,"mat-option",18),b.qZA()()}if(2&Ve){const Ke=b.oxw(2);b.xp6(2),b.Oqu(b.lcZ(3,4,"CONSENTS.STATUS")),b.xp6(2),b.Q6J("formControl",Ke.statuses),b.xp6(2),b.hij(" ",Ke.displaySelectedStatuses()," "),b.xp6(1),b.Q6J("ngForOf",Ke.consentStatusesList)}}function X(Ve,ve){if(1&Ve){const Ke=b.EpF();b.TgZ(0,"div",8)(1,"div",9)(2,"mat-slide-toggle",10),b.NdJ("ngModelChange",function(oe){b.CHM(Ke);const ce=b.oxw();return b.KtG(ce.allowed=oe)})("change",function(){b.CHM(Ke);const oe=b.oxw();return b.KtG(oe.changeFilter())}),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.TgZ(5,"span",11),b._uU(6),b.ALo(7,"translate"),b.qZA()(),b.TgZ(8,"div",1)(9,"perun-web-apps-vo-search-select",12),b.NdJ("voSelected",function(oe){b.CHM(Ke);const ce=b.oxw();return b.KtG(ce.voSelected(oe))}),b.qZA(),b.TgZ(10,"perun-web-apps-resource-search-select",13),b.NdJ("resourceSelected",function(oe){b.CHM(Ke);const ce=b.oxw();return b.KtG(ce.resourceSelected(oe))}),b.qZA(),b.TgZ(11,"perun-web-apps-service-search-select",14),b.NdJ("serviceSelected",function(oe){b.CHM(Ke);const ce=b.oxw();return b.KtG(ce.serviceSelected(oe))}),b.qZA(),b.YNc(12,V,8,6,"mat-form-field",15),b.qZA()()}if(2&Ve){const Ke=b.oxw();b.xp6(2),b.Q6J("ngModel",Ke.allowed),b.xp6(1),b.hij(" ",b.lcZ(4,11,"FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED")," "),b.xp6(3),b.Oqu(b.lcZ(7,13,Ke.toggle_messages[Ke.allowed?1:0])),b.xp6(3),b.Q6J("vos",Ke.vos)("vo",Ke.selectedVo),b.xp6(1),b.Q6J("resources",Ke.filteredResources)("displayStatus",!1)("resource",Ke.selectedResource),b.xp6(1),b.Q6J("services",Ke.filteredServices)("service",Ke.selectedService),b.xp6(1),b.Q6J("ngIf",Ke.globalForceConsents&&Ke.facilityForceConsents)}}function q(Ve,ve){1&Ve&&b._UZ(0,"mat-spinner",20)}const pe=function(){return["id","name","email","logins","organization"]};function le(Ve,ve){if(1&Ve&&b._UZ(0,"perun-web-apps-users-dynamic-list",21),2&Ve){const Ke=b.oxw();b.Q6J("attrNames",Ke.attributes)("disableRouting",!Ke.routeAuth)("displayedColumns",b.DdM(12,pe))("onlyAllowed",Ke.allowed)("facilityId",Ke.facility.id)("searchString",Ke.filterValue)("resourceId",-1===Ke.selectedResource.id?null:Ke.selectedResource.id)("serviceId",-1===Ke.selectedService.id?null:Ke.selectedService.id)("tableId",Ke.tableId)("voId",-1===Ke.selectedVo.id?null:Ke.selectedVo.id)("consentStatuses",Ke.selectedConsentStatuses)("includeConsents",Ke.globalForceConsents&&Ke.facilityForceConsents)}}let ye=(()=>{class Ve{constructor(Ke,Ue,oe,ce,k,N,be,W){this.facilityService=Ke,this.serviceService=Ue,this.resourceService=oe,this.authResolver=ce,this.storeService=k,this.entityStorageService=N,this.consentService=be,this.translate=W,this.loading=!1,this.filterValue="",this.attributes=[],this.allowed=!0,this.emptyResource={id:-1,beanName:"Resource",name:"No filter"},this.resources=[this.emptyResource],this.filteredResources=[this.emptyResource],this.selectedResource=this.emptyResource,this.emptyVo={id:-1,beanName:"Vo",name:"No filter"},this.vos=[this.emptyVo],this.selectedVo=this.emptyVo,this.emptyService={id:-1,beanName:"Service",name:"No filter"},this.services=[this.emptyService],this.filteredServices=[this.emptyService],this.selectedService=this.emptyService,this.consentStatusesList=["UNSIGNED","GRANTED","REVOKED"],this.selectedConsentStatuses=[],this.resourceAssignedServices=new Map,this.tableId=e.z6,this.toggle_messages=["FACILITY_DETAIL.ALLOWED_USERS.FILTER_ASSIGNED_MSG","FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED_MSG"],this.advancedFilter=!1}ngOnInit(){this.loading=!0,this.statuses=new f.NI(this.selectedConsentStatuses),this.attributes=[M.r.USER_DEF_ORGANIZATION,M.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames()),this.facility=this.entityStorageService.getEntity(),this.globalForceConsents=this.storeService.getProperty("enforce_consents"),this.consentService.getConsentHubByFacility(this.facility.id).subscribe(Ke=>{this.facilityForceConsents=Ke.enforceConsents}),this.routeAuth=this.authResolver.isPerunAdminOrObserver(),this.changeFilter(),this.refreshPage()}changeFilter(){this.filtersCount=this.allowed?1:0,-1!==this.selectedVo.id&&(this.filtersCount+=1),-1!==this.selectedResource.id&&(this.filtersCount+=1),-1!==this.selectedService.id&&(this.filtersCount+=1),this.selectedConsentStatuses.length>0&&(this.filtersCount+=1)}clearFilters(){this.allowed=!1,this.selectedVo=this.emptyVo,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,this.selectedConsentStatuses=[],this.statuses.setValue(this.selectedConsentStatuses),this.filtersCount=0}refreshPage(){this.loading=!0,this.facilityService.getAssignedResourcesForFacility(this.facility.id).subscribe(Ke=>{this.resources=[this.emptyResource].concat(Ke),this.filteredResources=this.resources,this.facilityService.getAllowedVos(this.facility.id).subscribe(Ue=>{this.vos=[this.emptyVo].concat(Ue),this.serviceService.getAssignedServices(this.facility.id).subscribe(oe=>{this.services=[this.emptyService].concat(oe),this.filteredServices=this.services,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(Ke){this.filterValue=Ke}voSelected(Ke){this.selectedVo.id!==Ke.id&&(this.selectedVo=Ke,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,-1===Ke.id?(this.filteredResources=this.resources,this.filteredServices=this.services):(this.filteredResources=this.resources.filter(Ue=>Ue.voId===Ke.id),this.serviceService.getAssignedServicesVo(this.facility.id,Ke.id).subscribe(Ue=>{this.filteredServices=[this.emptyService].concat(Ue),this.loading=!1},()=>this.loading=!1),this.filteredResources=[this.emptyResource].concat(this.filteredResources)),this.changeFilter())}resourceSelected(Ke){this.selectedResource.id!==Ke.id&&(this.selectedResource=Ke,this.selectedService=this.emptyService,-1===Ke.id?this.filteredServices=this.services:this.resourceService.getAssignedServicesToResource(Ke.id).subscribe(Ue=>{this.filteredServices=[this.emptyService].concat(Ue),this.loading=!1},()=>this.loading=!1),this.changeFilter())}serviceSelected(Ke){this.selectedService=Ke,this.changeFilter()}consentStatusSelected(){this.selectedConsentStatuses=this.statuses.value,this.changeFilter()}displaySelectedStatuses(){if(this.selectedConsentStatuses.length===this.consentStatusesList.length)return"ALL";const Ke=this.statuses.value;return Ke?`${this.translate.instant("CONSENTS.STATUS_"+Ke[0])} ${Ke.length>1?"(+"+(Ke.length-1).toString()+" "+(2===Ke.length?"other)":"others)"):""}`:""}}return Ve.id="FacilityAllowedUsersComponent",Ve.\u0275fac=function(Ke){return new(Ke||Ve)(b.Y36(A.IQ),b.Y36(A.KK),b.Y36(A.xk),b.Y36(C.x4),b.Y36(C.d6),b.Y36(C.fb),b.Y36(A.WY),b.Y36(C.Te))},Ve.\u0275cmp=b.Xpm({type:Ve,selectors:[["app-facility-allowed-users"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[1,"filters"],[1,"mr-2",3,"refresh"],[1,"mr-2","filter",3,"placeholder","filter"],[3,"advancedFilter","filtersCount","changeAdvancedFilter","clearFilters"],["class","advanced-filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId","consentStatuses","includeConsents",4,"ngIf"],[1,"advanced-filter"],[1,"toggle","filters"],["labelPosition","before",1,"mr-2",3,"ngModel","ngModelChange","change"],[1,"text-muted"],[1,"search-select",3,"vos","vo","voSelected"],[1,"search-select",3,"resources","displayStatus","resource","resourceSelected"],[1,"search-select",3,"services","service","serviceSelected"],["class","search-select",4,"ngIf"],[1,"search-select"],["multiple","",3,"formControl","closed"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId","consentStatuses","includeConsents"]],template:function(Ke,Ue){1&Ke&&(b.TgZ(0,"div")(1,"h1",0),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),b.NdJ("refresh",function(){return Ue.refreshPage()}),b.qZA(),b.TgZ(6,"perun-web-apps-debounce-filter",3),b.NdJ("filter",function(ce){return Ue.applyFilter(ce)}),b.qZA(),b.TgZ(7,"perun-web-apps-advanced-filter",4),b.NdJ("changeAdvancedFilter",function(ce){return Ue.advancedFilter=ce})("clearFilters",function(){return Ue.clearFilters()}),b.qZA()(),b.YNc(8,X,13,15,"div",5),b.YNc(9,q,1,0,"mat-spinner",6),b.YNc(10,le,1,13,"perun-web-apps-users-dynamic-list",7),b.qZA()),2&Ke&&(b.xp6(2),b.Oqu(b.lcZ(3,7,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),b.xp6(4),b.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),b.xp6(1),b.Q6J("advancedFilter",Ue.advancedFilter)("filtersCount",Ue.filtersCount),b.xp6(1),b.Q6J("ngIf",Ue.advancedFilter),b.xp6(1),b.Q6J("ngIf",Ue.loading),b.xp6(1),b.Q6J("ngIf",!Ue.loading))},dependencies:[D.sg,D.O5,T.ey,R.KE,R.hX,f.JJ,f.oH,f.On,B.gD,B.$L,w.Ou,H.Rr,O.t,J.M,ne.L,G.P,se.M,Oe.J,z,E.X$],styles:[".filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.filter[_ngcontent-%COMP%]{min-width:350px}.search-select[_ngcontent-%COMP%]{width:32%;margin-right:20px;margin-top:30px}.toggle[_ngcontent-%COMP%]{display:flex;flex-direction:column}.advanced-filter[_ngcontent-%COMP%]{border:1px solid lightgray;padding:15px}"]}),Ve})()},34904:($e,he,p)=>{"use strict";p.d(he,{f:()=>le});var e=p(95017),A=p(533),C=p(61744),M=p(24006),f=p(65412),b=p(81591),D=p(94650),T=p(89383),R=p(36895),B=p(59549),w=p(284),H=p(4859),O=p(51572),J=p(62707);function ne(ye,Ve){1&ye&&D._UZ(0,"mat-spinner",5)}function G(ye,Ve){if(1&ye){const ve=D.EpF();D.TgZ(0,"div",6)(1,"perun-web-apps-vo-search-select",7),D.NdJ("voSelected",function(Ue){D.CHM(ve);const oe=D.oxw();return D.KtG(oe.selectedVo=Ue)}),D.qZA(),D.TgZ(2,"mat-form-field"),D._UZ(3,"input",8),D.ALo(4,"translate"),D.TgZ(5,"mat-error"),D._uU(6),D.ALo(7,"translate"),D.qZA()(),D.TgZ(8,"mat-form-field"),D._UZ(9,"input",9),D.ALo(10,"translate"),D.TgZ(11,"mat-error"),D._uU(12),D.ALo(13,"translate"),D.qZA()()()}if(2&ye){const ve=D.oxw();D.xp6(1),D.Q6J("vos",ve.vos),D.xp6(2),D.s9C("placeholder",D.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),D.Q6J("formControl",ve.nameCtrl),D.xp6(3),D.hij(" ",D.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),D.xp6(3),D.s9C("placeholder",D.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),D.Q6J("formControl",ve.descriptionCtrl),D.xp6(3),D.hij(" ",D.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let se=(()=>{class ye{constructor(ve,Ke,Ue,oe,ce,k){this.dialogRef=ve,this.data=Ke,this.notificator=Ue,this.voService=oe,this.translate=ce,this.resourcesManager=k,this.vos=[],this.selectedVo=null,ce.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(N=>this.successMessage=N)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(ve=>{this.vos=ve,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new M.p4(null,[M.kI.required,M.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new M.p4("")}onSubmit(){this.loading=!0,this.resourcesManager.createResource(this.selectedVo.id,this.data.facilityId,this.nameCtrl.value,this.descriptionCtrl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return ye.\u0275fac=function(ve){return new(ve||ye)(D.Y36(f.so),D.Y36(f.WI),D.Y36(b.V6),D.Y36(C.YF),D.Y36(T.sK),D.Y36(C.xk))},ye.\u0275cmp=D.Xpm({type:ye,selectors:[["app-create-resource-dialog"]],decls:10,vars:12,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","create-resource-dialog-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["data-cy","create-resource-select-vo",3,"vos","voSelected"],["matInput","","data-cy","create-resource-name-input","required","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(ve,Ke){1&ve&&(D.TgZ(0,"div"),D.YNc(1,ne,1,0,"mat-spinner",0),D.YNc(2,G,14,15,"div",1),D.TgZ(3,"div",2)(4,"button",3),D.NdJ("click",function(){return Ke.onCancel()}),D._uU(5),D.ALo(6,"translate"),D.qZA(),D.TgZ(7,"button",4),D.NdJ("click",function(){return Ke.onSubmit()}),D._uU(8),D.ALo(9,"translate"),D.qZA()()()),2&ve&&(D.Tol(Ke.theme),D.xp6(1),D.Q6J("ngIf",Ke.loading),D.xp6(1),D.Q6J("ngIf",!Ke.loading),D.xp6(3),D.hij(" ",D.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")," "),D.xp6(2),D.Q6J("disabled",Ke.nameCtrl.invalid||Ke.descriptionCtrl.invalid||null===Ke.selectedVo||Ke.loading),D.xp6(1),D.hij(" ",D.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")," "))},dependencies:[R.O5,B.TO,B.KE,w.Nt,M.Fj,M.JJ,M.Q7,M.oH,H.lW,f.xY,f.H8,O.Ou,J.M,T.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),ye})();var Oe=p(10036),_e=p(9244),Be=p(96214),E=p(7434),z=p(62109),F=p(30540);function V(ye,Ve){if(1&ye){const ve=D.EpF();D.TgZ(0,"button",9),D.NdJ("click",function(){D.CHM(ve);const Ue=D.oxw();return D.KtG(Ue.createResource())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}2&ye&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function X(ye,Ve){if(1&ye){const ve=D.EpF();D.TgZ(0,"button",10),D.NdJ("click",function(){D.CHM(ve);const Ue=D.oxw();return D.KtG(Ue.removeResource())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&ye){const ve=D.oxw();D.Q6J("disabled",0===ve.selected.selected.length),D.xp6(1),D.hij(" ",D.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function q(ye,Ve){1&ye&&D._UZ(0,"mat-spinner",11)}function pe(ye,Ve){if(1&ye&&D._UZ(0,"perun-web-apps-resources-list",12),2&ye){const ve=D.oxw();D.Q6J("tableId",ve.tableId)("filterValue",ve.filterValue)("resources",ve.resources)("selection",ve.selected)("disableRouting",!ve.routeAuth)("displayedColumns",ve.displayedColumns)}}let le=(()=>{class ye{constructor(ve,Ke,Ue,oe,ce,k){this.dialog=ve,this.facilitiesManager=Ke,this.servicesManager=Ue,this.authResolver=oe,this.entityStorageService=ce,this.cd=k,this.resources=[],this.selected=new e.Ov(!0,[]),this.emptyService={id:-1,beanName:"Service",name:"All"},this.services=[this.emptyService],this.selectedService=this.emptyService,this.filterValue="",this.tableId=Oe.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.servicesManager.getAssignedServices(this.facility.id).subscribe(ve=>{this.services=[this.emptyService].concat(ve)}),this.loadResourcesForFacility()}ngAfterViewInit(){this.cd.detectChanges()}removeResource(){const ve=(0,_e.kZ)();ve.width="450px",ve.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(A.f,ve).afterClosed().subscribe(Ue=>{Ue&&this.refreshTable()})}refreshTable(){this.loading=!0,-1===this.selectedService.id?this.loadResourcesForFacility():this.facilitiesManager.getAssignedRichResourcesForFacilityAndService(this.facility.id,this.selectedService.id).subscribe(ve=>{this.resources=ve,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("createResource_Resource_Vo_Facility_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","vo","description"]:["id","name","vo","description"],0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getRichResourceById_int_policy",[this.facility,this.resources[0]]))}applyFilter(ve){this.filterValue=ve}createResource(){const ve=(0,_e.kZ)();ve.width="1350px",ve.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(se,ve).afterClosed().subscribe(Ue=>{Ue&&this.refreshTable()})}serviceSelected(ve){this.selectedService=ve,this.refreshTable()}loadResourcesForFacility(){this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(ve=>{this.resources=ve,this.selected.clear(),this.setAuthRights(),this.loading=!1})}}return ye.id="FacilityResourcesComponent",ye.\u0275fac=function(ve){return new(ve||ye)(D.Y36(f.uw),D.Y36(C.IQ),D.Y36(C.KK),D.Y36(b.x4),D.Y36(b.fb),D.Y36(D.sBO))},ye.\u0275cmp=D.Xpm({type:ye,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(ve,Ke){2&ve&&D.ekj("router-component",Ke.true)},decls:12,vars:10,consts:[[1,"page-subtitle"],[1,"align-elements"],[3,"refresh"],["mat-flat-button","","color","accent","data-cy","create-resource-button","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2","data-cy","delete-resource-button",3,"disabled","click",4,"ngIf"],[1,"search-select","mr-2",3,"services","service","serviceSelected"],[1,"filter-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","create-resource-button",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","delete-resource-button",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns"]],template:function(ve,Ke){1&ve&&(D.TgZ(0,"div")(1,"h1",0),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),D.NdJ("refresh",function(){return Ke.refreshTable()}),D.qZA(),D.YNc(6,V,3,3,"button",3),D.YNc(7,X,3,4,"button",4),D.TgZ(8,"perun-web-apps-service-search-select",5),D.NdJ("serviceSelected",function(oe){return Ke.serviceSelected(oe)}),D.qZA(),D.TgZ(9,"perun-web-apps-immediate-filter",6),D.NdJ("filter",function(oe){return Ke.applyFilter(oe)}),D.qZA()(),D.YNc(10,q,1,0,"mat-spinner",7),D.YNc(11,pe,1,6,"perun-web-apps-resources-list",8),D.qZA()),2&ve&&(D.xp6(2),D.Oqu(D.lcZ(3,8,"FACILITY_DETAIL.RESOURCES.TITLE")),D.xp6(4),D.Q6J("ngIf",Ke.addAuth),D.xp6(1),D.Q6J("ngIf",Ke.removeAuth),D.xp6(1),D.Q6J("services",Ke.services)("service",Ke.selectedService),D.xp6(1),D.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),D.xp6(1),D.Q6J("ngIf",Ke.loading),D.xp6(1),D.Q6J("ngIf",!Ke.loading))},dependencies:[R.O5,H.lW,O.Ou,Be.t,E.L,z.C,F.J,T.X$],styles:[".search-select[_ngcontent-%COMP%]{min-width:325px}.filter-field[_ngcontent-%COMP%]{min-width:250px}.align-elements[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}"]}),ye})()},86353:($e,he,p)=>{"use strict";p.d(he,{P:()=>Ue});var e=p(61744),A=p(9244),C=p(10036),M=p(95017),f=p(65412),b=p(81591),D=p(24006),T=p(94650),R=p(89383),B=p(94364),w=p(36895),H=p(3238),O=p(59549),J=p(284),ne=p(4859),G=p(84385),se=p(51572),Oe=p(98380);function _e(oe,ce){1&oe&&T._UZ(0,"mat-spinner",7)}function Be(oe,ce){if(1&oe){const k=T.EpF();T.TgZ(0,"mat-option",16),T.NdJ("click",function(){const W=T.CHM(k).$implicit,ue=T.oxw(2);return T.KtG(ue.srcFacility=W)}),T._uU(1),T.qZA()}if(2&oe){const k=ce.$implicit;T.Q6J("value",k),T.xp6(1),T.hij(" ",k.name," ")}}function E(oe,ce){if(1&oe){const k=T.EpF();T.TgZ(0,"div",8)(1,"mat-form-field"),T._UZ(2,"input",9),T.ALo(3,"translate"),T.TgZ(4,"mat-error"),T._uU(5),T.ALo(6,"translate"),T.qZA()(),T.TgZ(7,"mat-form-field"),T._UZ(8,"input",10),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"mat-form-field")(11,"mat-select",11),T.ALo(12,"translate"),T.TgZ(13,"mat-option",12),T.NdJ("click",function(){T.CHM(k);const be=T.oxw();return T.KtG(be.srcFacility=null)}),T._uU(14),T.ALo(15,"translate"),T.qZA(),T.YNc(16,Be,2,2,"mat-option",13),T.qZA()(),T.TgZ(17,"perun-web-apps-alert",14),T._UZ(18,"i",15),T.ALo(19,"translate"),T.qZA()()}if(2&oe){const k=T.oxw();T.xp6(2),T.s9C("placeholder",T.lcZ(3,9,"DIALOGS.CREATE_FACILITY.NAME")),T.Q6J("formControl",k.nameControl),T.xp6(3),T.Oqu(T.lcZ(6,11,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),T.xp6(3),T.s9C("placeholder",T.lcZ(9,13,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),T.Q6J("formControl",k.descControl),T.xp6(3),T.s9C("placeholder",T.lcZ(12,15,"DIALOGS.CREATE_FACILITY.AS_COPY")),T.xp6(3),T.hij(" ",T.lcZ(15,17,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),T.xp6(2),T.Q6J("ngForOf",k.facilities),T.xp6(2),T.Q6J("innerHTML",T.lcZ(19,19,"DIALOGS.CREATE_FACILITY.HINT"),T.oJD)}}let z=(()=>{class oe{constructor(k,N,be,W,ue,Me,ot){this.dialogRef=k,this.data=N,this.facilitiesManager=be,this.notificator=W,this.translate=ue,this.router=Me,this.entityStorageService=ot,this.nameControl=new D.p4("",[D.kI.required]),this.descControl=new D.p4(""),this.srcFacility=null,this.loading=!1,this.configure=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(k=>{this.facilities=k,this.loading=!1},()=>this.loading=!1)}onCreate(k){this.loading=!0,this.configure=k,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe({next:N=>{this.entityStorageService.setEntity({id:N.id,beanName:N.beanName}),sessionStorage.setItem("newFacilityId",String(N.id)),null!==this.srcFacility?this.copyFacilitySettings(N.id):this.handleSuccess(N.id)},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}copyFacilitySettings(k){this.facilitiesManager.copyAttributes(this.srcFacility.id,k).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,k).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,k).subscribe(()=>{this.handleSuccess(k)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}handleSuccess(k){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.configure&&this.router.navigate(["facilities",k.toString(),"configuration"],{queryParamsHandling:"preserve"}),this.dialogRef.close(!0)}}return oe.\u0275fac=function(k){return new(k||oe)(T.Y36(f.so),T.Y36(f.WI),T.Y36(e.IQ),T.Y36(b.V6),T.Y36(R.sK),T.Y36(B.F0),T.Y36(b.fb))},oe.\u0275cmp=T.Xpm({type:oe,selectors:[["app-create-facility-dialog"]],decls:16,vars:19,consts:[[1,"mat-dialog-title"],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","create-facility-button","color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","data-cy","facility-name-input",3,"formControl","placeholder"],["matInput","","data-cy","facility-description-input",3,"formControl","placeholder"],["disableOptionCentering","true",3,"placeholder"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],[3,"value","click"]],template:function(k,N){1&k&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,_e,1,0,"mat-spinner",1),T.YNc(5,E,20,21,"div",2),T.TgZ(6,"div",3)(7,"button",4),T.NdJ("click",function(){return N.onCancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return N.onCreate(!1)}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.TgZ(13,"button",6),T.NdJ("click",function(){return N.onCreate(!0)}),T._uU(14),T.ALo(15,"translate"),T.qZA()()()),2&k&&(T.Tol(N.theme),T.xp6(2),T.Oqu(T.lcZ(3,11,"DIALOGS.CREATE_FACILITY.TITLE")),T.xp6(2),T.Q6J("ngIf",N.loading),T.xp6(1),T.Q6J("ngIf",!N.loading),T.xp6(3),T.hij(" ",T.lcZ(9,13,"DIALOGS.CREATE_FACILITY.CANCEL")," "),T.xp6(2),T.Q6J("disabled",0===N.nameControl.value.trim().length||N.loading),T.xp6(1),T.hij(" ",T.lcZ(12,15,"DIALOGS.CREATE_FACILITY.CREATE")," "),T.xp6(2),T.Q6J("disabled",0===N.nameControl.value.trim().length||!!N.srcFacility||N.loading),T.xp6(1),T.hij(" ",T.lcZ(15,17,"DIALOGS.CREATE_FACILITY.CREATE_AND_CONFIGURE")," "))},dependencies:[w.sg,w.O5,H.ey,O.TO,O.KE,J.Nt,D.Fj,D.JJ,D.Q7,D.oH,ne.lW,f.xY,f.H8,G.gD,se.Ou,Oe.w,R.X$]}),oe})();var F=p(54037),V=p(77968),X=p(97392),q=p(96214),pe=p(4235),le=p(7434),ye=p(74010);function Ve(oe,ce){1&oe&&T._UZ(0,"mat-spinner",9)}function ve(oe,ce){if(1&oe&&T._UZ(0,"perun-web-apps-facilities-list",10),2&oe){const k=T.oxw();T.Q6J("tableId",k.tableId)("selection",k.selection)("filterValue",k.filterValue)("facilities",k.facilities)("recentIds",k.recentIds)}}const Ke=function(){return{color:"black"}};let Ue=(()=>{class oe{constructor(k,N,be){this.facilityManager=k,this.sideMenuService=N,this.dialog=be,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=C.xt,this.selection=new M.Ov(!1,[])}ngOnInit(){this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(k=>{this.selection.clear(),this.facilities=k,this.recentIds=(0,A.vL)("facilities"),this.loading=!1})}onCreate(){const k=(0,A.kZ)();k.width="800px",k.data={theme:"facility-theme"},this.dialog.open(z,k).afterClosed().subscribe(be=>{be&&(this.loading=!0,this.refreshTable())})}onDelete(){const k=(0,A.kZ)();k.width="500px",k.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(F.Y,k).afterClosed().subscribe(be=>{be&&this.refreshTable()})}applyFilter(k){this.filterValue=k}}return oe.id="FacilitySelectPageComponent",oe.\u0275fac=function(k){return new(k||oe)(T.Y36(e.IQ),T.Y36(V.D),T.Y36(f.uw))},oe.\u0275cmp=T.Xpm({type:oe,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(k,N){2&k&&T.ekj("router-component",N.true)},decls:16,vars:16,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","facility-theme"],[1,"page-title","d-flex"],["svgIcon","perun-facility-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["mat-flat-button","","data-cy","new-facility-button","color","accent",1,"action-button","mr-2",3,"click"],["mat-flat-button","","data-cy","delete-facility-button","color","warn",1,"mr-2",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","selection","filterValue","facilities","recentIds",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","selection","filterValue","facilities","recentIds"]],template:function(k,N){1&k&&(T.TgZ(0,"div",0),T._UZ(1,"perun-web-apps-back-button"),T.TgZ(2,"h1",1),T._UZ(3,"mat-icon",2),T._uU(4),T.ALo(5,"translate"),T.qZA(),T.TgZ(6,"perun-web-apps-refresh-button",3),T.NdJ("refresh",function(){return N.refreshTable()}),T.qZA(),T.TgZ(7,"button",4),T.NdJ("click",function(){return N.onCreate()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return N.onDelete()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.TgZ(13,"perun-web-apps-immediate-filter",6),T.NdJ("filter",function(W){return N.applyFilter(W)}),T.qZA(),T.YNc(14,Ve,1,0,"mat-spinner",7),T.YNc(15,ve,1,5,"perun-web-apps-facilities-list",8),T.qZA()),2&k&&(T.xp6(3),T.Q6J("ngStyle",T.DdM(15,Ke)),T.xp6(1),T.hij(" ",T.lcZ(5,9,"FACILITY_MANAGEMENT.TITLE")," "),T.xp6(4),T.hij(" ",T.lcZ(9,11,"FACILITY_MANAGEMENT.CREATE")," "),T.xp6(2),T.Q6J("disabled",0===N.selection.selected.length),T.xp6(1),T.hij(" ",T.lcZ(12,13,"FACILITY_MANAGEMENT.DELETE")," "),T.xp6(2),T.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER"),T.xp6(1),T.Q6J("ngIf",N.loading),T.xp6(1),T.Q6J("ngIf",!N.loading))},dependencies:[w.O5,w.PC,X.Hw,ne.lW,se.Ou,q.t,pe.W,le.L,ye.X,R.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),oe})()},39158:($e,he,p)=>{"use strict";p.d(he,{l:()=>w});var e=p(94650),A=p(45323),C=p(81591),M=p(36895),f=p(24006),b=p(10266),D=p(71948),T=p(74250),R=p(89383);function B(H,O){if(1&H){const J=e.EpF();e.TgZ(0,"div")(1,"perun-web-apps-user-search-select",6),e.NdJ("userSelected",function(G){e.CHM(J);const se=e.oxw();return e.KtG(se.selectSponsor(G))}),e.qZA()()}if(2&H){const J=e.oxw();e.xp6(1),e.Q6J("disableAutoSelect",!0)("users",J.voSponsors)}}let w=(()=>{class H{constructor(J){this.guiAuthResolver=J,this.voSponsors=[],this.sponsorTypeSelected=new e.vpe,this.sponsorSelected=new e.vpe,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.selectedSponsor=null}ngOnInit(){this.isSponsor=this.guiAuthResolver.principalHasRole(A.u.SPONSOR,"Vo",this.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.emitSponsorType()}emitSponsorType(){"self"===this.sponsorType&&this.selectSponsor(null),this.sponsorTypeSelected.emit(this.sponsorType)}selectSponsor(J){this.selectedSponsor=J,this.sponsorSelected.emit(J)}}return H.\u0275fac=function(J){return new(J||H)(e.Y36(C.x4))},H.\u0275cmp=e.Xpm({type:H,selectors:[["app-choose-sponsor"]],inputs:{voId:"voId",voSponsors:"voSponsors"},outputs:{sponsorTypeSelected:"sponsorTypeSelected",sponsorSelected:"sponsorSelected"},decls:16,vars:21,consts:[[1,"mt-4"],[1,"dialog-container",3,"ngModel","ngModelChange"],["matTooltipPosition","before",3,"matTooltip","matTooltipDisabled"],["value","self",3,"disabled","click"],["value","other",3,"disabled"],[4,"ngIf"],[3,"disableAutoSelect","users","userSelected"]],template:function(J,ne){1&J&&(e.TgZ(0,"div",0)(1,"h6"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-radio-group",1),e.NdJ("ngModelChange",function(se){return ne.sponsorType=se})("ngModelChange",function(){return ne.emitSponsorType()}),e.TgZ(5,"span",2),e.ALo(6,"translate"),e.TgZ(7,"mat-radio-button",3),e.NdJ("click",function(){return ne.selectedSponsor=null}),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"span",2),e.ALo(11,"translate"),e.TgZ(12,"mat-radio-button",4),e._uU(13),e.ALo(14,"translate"),e.qZA()()(),e.YNc(15,B,2,2,"div",5),e.qZA()),2&J&&(e.xp6(2),e.Oqu(e.lcZ(3,11,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),e.xp6(2),e.Q6J("ngModel",ne.sponsorType),e.xp6(1),e.s9C("matTooltip",e.lcZ(6,13,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),e.Q6J("matTooltipDisabled",ne.isSponsor),e.xp6(2),e.Q6J("disabled",!ne.isSponsor),e.xp6(1),e.hij(" ",e.lcZ(9,15,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),e.xp6(2),e.s9C("matTooltip",e.lcZ(11,17,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),e.Q6J("matTooltipDisabled",ne.isPerunAdmin),e.xp6(2),e.Q6J("disabled",!ne.isPerunAdmin),e.xp6(1),e.hij(" ",e.lcZ(14,19,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),e.xp6(2),e.Q6J("ngIf","other"===ne.sponsorType))},dependencies:[M.O5,f.JJ,f.On,b.gM,D.VQ,D.U0,T.S,R.X$]}),H})()},93657:($e,he,p)=>{"use strict";p.d(he,{J:()=>Oe});var e=p(65412),A=p(81591),C=p(61744),M=p(9244),f=p(24006),b=p(94650),D=p(89383),T=p(36895),R=p(3238),B=p(59549),w=p(284),H=p(4859),O=p(84385),J=p(57706);function ne(_e,Be){if(1&_e&&(b.TgZ(0,"mat-option",9),b._uU(1),b.ALo(2,"applicationFormItemType"),b.qZA()),2&_e){const E=Be.$implicit;b.Q6J("value",E),b.xp6(1),b.hij(" ",b.lcZ(2,2,E)," ")}}function G(_e,Be){if(1&_e&&(b.TgZ(0,"mat-option",9),b._uU(1),b.qZA()),2&_e){const E=Be.$implicit;b.Q6J("value",E),b.xp6(1),b.hij(" ",E," ")}}const se=function(_e){return{"height.rem":_e}};let Oe=(()=>{class _e{constructor(E,z,F,V){this.dialogRef=E,this.data=z,this.translateService=F,this.store=V,this.languages=this.store.getProperty("supported_languages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","HTML_COMMENT","TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]}ngOnInit(){this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(E=>{this.nameCtrl=new f.p4("",[f.kI.required,f.kI.pattern(".*[\\S]+.*"),f.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(E);for(const z of this.data.applicationFormItems)this.items.push(z.shortname),z.type===C.Dy.EMBEDDED_GROUP_APPLICATION&&(this.widgets=this.widgets.filter(F=>F!==C.Dy.EMBEDDED_GROUP_APPLICATION));this.selectedItem=E})}setInputWidgetHeight(E){return Math.ceil(E/80)+2.5}cancel(){this.dialogRef.close(void 0)}submit(){const E=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,E])}createApplicationItem(){const E=(0,M.dv)(this.languages);E.id=this.data.fakeId,E.shortname=this.nameCtrl.value,E.type=this.selectedWidget;for(let z=0;z{"use strict";p.d(he,{W:()=>H});var e=p(65412),A=p(61744),C=p(81591),M=p(94650),f=p(89383),b=p(36895),D=p(4859),T=p(51572),R=p(62707),B=p(82322);function w(O,J){1&O&&M._UZ(0,"mat-spinner",9)}let H=(()=>{class O{constructor(ne,G,se,Oe,_e,Be,E,z,F){this.dialogRef=ne,this.voService=G,this.groupService=se,this.translateService=Oe,this.registrarManager=_e,this.notificatorService=Be,this.apiRequest=E,this.cd=z,this.data=F,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=V=>V.name,Oe.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(V=>this.successMessage=V),Oe.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(V=>this.privilegeMessage=V),Oe.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(V=>this.noFormMessage=V)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.translateService.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_GROUP_SELECTED").subscribe(()=>{this.voService.getMyVos().subscribe(ne=>{this.vos=ne,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.apiRequest.dontHandleErrorForNext(),this.loading=!0,this.data.groupId?null===this.selectedGroup?this.registrarManager.copyFormFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ne=>{"FormNotExistsException"===ne.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ne.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ne=>{"FormNotExistsException"===ne.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ne.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):null===this.selectedGroup?this.registrarManager.copyFormFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ne=>{"FormNotExistsException"===ne.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ne.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ne=>{"FormNotExistsException"===ne.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ne.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(ne){this.selectedVo=ne,this.cd.detectChanges(),this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(ne=>{this.groups=ne}):this.groups=[],this.selectedGroup=null}}return O.\u0275fac=function(ne){return new(ne||O)(M.Y36(e.so),M.Y36(A.YF),M.Y36(A.ff),M.Y36(f.sK),M.Y36(A.tk),M.Y36(C.V6),M.Y36(C.F5),M.Y36(M.sBO),M.Y36(e.WI))},O.\u0275cmp=M.Xpm({type:O,selectors:[["app-application-form-copy-items-dialog"]],decls:22,vars:27,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container",3,"hidden"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(ne,G){1&ne&&(M.TgZ(0,"div")(1,"h1",0),M._uU(2),M.ALo(3,"translate"),M.qZA(),M.YNc(4,w,1,0,"mat-spinner",1),M.TgZ(5,"div",2)(6,"div",3),M._uU(7),M.ALo(8,"translate"),M.qZA(),M._uU(9),M.ALo(10,"translate"),M.TgZ(11,"perun-web-apps-vo-search-select",4),M.NdJ("voSelected",function(Oe){return G.voSelected(Oe)}),M.qZA(),M._uU(12),M.ALo(13,"translate"),M.TgZ(14,"perun-web-apps-group-search-select",5),M.NdJ("groupSelected",function(Oe){return G.selectedGroup=Oe}),M.qZA()(),M.TgZ(15,"div",6)(16,"button",7),M.NdJ("click",function(){return G.cancel()}),M._uU(17),M.ALo(18,"translate"),M.qZA(),M.TgZ(19,"button",8),M.NdJ("click",function(){return G.submit()}),M._uU(20),M.ALo(21,"translate"),M.qZA()()()),2&ne&&(M.Tol(G.theme),M.xp6(2),M.Oqu(M.lcZ(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),M.xp6(2),M.Q6J("ngIf",G.loading),M.xp6(1),M.Q6J("hidden",G.loading),M.xp6(2),M.hij(" ",M.lcZ(8,17,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")," "),M.xp6(2),M.hij(" ",M.lcZ(10,19,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),M.xp6(2),M.Q6J("vos",G.vos),M.xp6(1),M.hij(" ",M.lcZ(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),M.xp6(2),M.Q6J("groups",G.groups)("disableAutoSelect",!0),M.xp6(3),M.hij(" ",M.lcZ(18,23,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),M.xp6(2),M.Q6J("disabled",!G.selectedVo&&!G.selectedGroup||G.loading),M.xp6(1),M.hij(" ",M.lcZ(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},dependencies:[b.O5,D.lW,e.uh,e.xY,e.H8,T.Ou,R.M,B.h,f.X$]}),O})()},23325:($e,he,p)=>{"use strict";p.d(he,{a:()=>Oe});var e=p(61744),A=p(65412),C=p(81591),M=p(24006),f=p(94650),b=p(36895),D=p(3238),T=p(59549),R=p(4859),B=p(84385),w=p(51572),H=p(98380),O=p(89383),J=p(77749);function ne(_e,Be){1&_e&&f._UZ(0,"mat-spinner",7)}function G(_e,Be){if(1&_e&&(f.TgZ(0,"mat-option",14),f._uU(1),f.ALo(2,"applicationColumnSelectLabel"),f.qZA()),2&_e){const E=Be.$implicit,z=f.oxw(2);f.Tol(z.theme),f.Q6J("value",E),f.xp6(1),f.hij(" ",f.lcZ(2,5,E)," ")}}function se(_e,Be){if(1&_e){const E=f.EpF();f.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"mat-form-field",10)(5,"mat-label"),f._uU(6),f.ALo(7,"translate"),f.qZA(),f.TgZ(8,"mat-select",11),f.NdJ("closed",function(){f.CHM(E);const F=f.oxw();return f.KtG(F.attribute.value=F.selectedColumns.value)}),f.YNc(9,G,3,7,"mat-option",12),f.qZA()(),f.TgZ(10,"perun-web-apps-alert",13),f._uU(11),f.ALo(12,"translate"),f.qZA()()}if(2&_e){const E=f.oxw();f.xp6(2),f.hij(" ",f.lcZ(3,5,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.WARN")," "),f.xp6(4),f.Oqu(f.lcZ(7,7,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.FILTER_COLUMNS")),f.xp6(2),f.Q6J("formControl",E.selectedColumns),f.xp6(1),f.Q6J("ngForOf",E.columnOptions),f.xp6(2),f.hij(" ",f.lcZ(12,9,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.DEFAULT_TEXT")," ")}}let Oe=(()=>{class _e{constructor(E,z,F,V,X){this.dialogRef=E,this.attributesManager=z,this.data=F,this.translate=V,this.notificator=X,this.loading=!1,this.simpleColumns=["createdAt","type","state","createdBy","modifiedBy"],this.columnOptions=["createdAt","type","state","createdBy","modifiedBy"],this.selectedColumns=new M.NI([])}ngOnInit(){this.theme=this.data.theme,this.data.groupId?this.attributesManager.getIdpAttributeDefinitions().subscribe(E=>{E.forEach(z=>{this.columnOptions.push(z.friendlyName)}),this.attributesManager.getGroupAttributeByName(this.data.groupId,"urn:perun:group:attribute-def:def:applicationViewPreferences").subscribe(z=>{this.attribute=z;const F=z.value;this.selectedColumns.setValue(null!==F&&F.length>0?F:this.simpleColumns)})}):this.attributesManager.getIdpAttributeDefinitions().subscribe(E=>{E.forEach(z=>{this.columnOptions.push(z.friendlyName)}),this.attributesManager.getVoAttributeByName(this.data.voId,"urn:perun:vo:attribute-def:def:applicationViewPreferences").subscribe(z=>{this.attribute=z;const F=z.value;this.selectedColumns.setValue(null!==F&&F.length>0?F:this.simpleColumns)})})}confirm(){this.data.groupId?this.changeGroupAttribute():this.changeVoAttribute()}cancel(){this.dialogRef.close(!1)}default(){this.attribute.value=[],this.confirm()}changeVoAttribute(){this.loading=!0,this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.attribute}).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.SUCCESS"))},error:()=>{this.loading=!1}})}changeGroupAttribute(){this.loading=!0,this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.attribute}).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.SUCCESS"))},error:()=>{this.loading=!1}})}}return _e.\u0275fac=function(E){return new(E||_e)(f.Y36(A.so),f.Y36(e.H8),f.Y36(A.WI),f.Y36(C.Te),f.Y36(C.V6))},_e.\u0275cmp=f.Xpm({type:_e,selectors:[["app-applications-list-columns-change-dialog"]],decls:16,vars:18,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["alert_type","warn"],[1,"w-100"],["multiple","",3,"formControl","closed"],[3,"class","value",4,"ngFor","ngForOf"],["alert_type","info"],[3,"value"]],template:function(E,z){1&E&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div"),f.YNc(4,ne,1,0,"mat-spinner",1),f.YNc(5,se,13,11,"div",2),f.TgZ(6,"div",3)(7,"button",4),f.NdJ("click",function(){return z.cancel()}),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.TgZ(10,"button",5),f.NdJ("click",function(){return z.default()}),f._uU(11),f.ALo(12,"translate"),f.qZA(),f.TgZ(13,"button",6),f.NdJ("click",function(){return z.confirm()}),f._uU(14),f.ALo(15,"translate"),f.qZA()()()),2&E&&(f.xp6(1),f.Oqu(f.lcZ(2,10,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.TITLE")),f.xp6(2),f.Tol(z.theme),f.xp6(1),f.Q6J("ngIf",z.loading),f.xp6(1),f.Q6J("ngIf",!z.loading),f.xp6(3),f.hij(" ",f.lcZ(9,12,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.CANCEL")," "),f.xp6(3),f.hij(" ",f.lcZ(12,14,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.DEFAULT")," "),f.xp6(2),f.Q6J("disabled",z.loading),f.xp6(1),f.hij(" ",f.lcZ(15,16,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.CONFIRM")," "))},dependencies:[b.sg,b.O5,D.ey,T.KE,T.hX,M.JJ,M.oH,R.lW,A.uh,A.xY,A.H8,B.gD,w.Ou,H.w,O.X$,J.K]}),_e})()},94742:($e,he,p)=>{"use strict";p.d(he,{F:()=>Ve});var e=p(24006),A=p(9244),C=p(65412),M=p(81591),f=p(61744),b=p(94650),D=p(36895),T=p(3238),R=p(59549),B=p(284),w=p(4859),H=p(84385),O=p(51572),J=p(98380),ne=p(89383);function G(ve,Ke){1&ve&&b._UZ(0,"mat-spinner",7)}function se(ve,Ke){1&ve&&(b.TgZ(0,"div",16),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ve&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.DESCRIPTION_VO")," "))}function Oe(ve,Ke){1&ve&&(b.TgZ(0,"div",16),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ve&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.DESCRIPTION_GROUP")," "))}function _e(ve,Ke){if(1&ve&&(b.TgZ(0,"mat-option",17),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"uppercase"),b.qZA()),2&ve){const Ue=Ke.$implicit;b.s9C("value",Ue),b.xp6(1),b.hij(" ",b.lcZ(2,2,b.lcZ(3,4,"SHARED_LIB.LANGUAGES."+Ue))," ")}}function Be(ve,Ke){1&ve&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ve&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.NAMES_ERROR")," "))}function E(ve,Ke){if(1&ve&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ve){const Ue=b.oxw(3);b.xp6(1),b.AsE(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.ERROR_FORMAT"),": ",Ue.invitedMembers.getError("invalidFormat").value," ")}}function z(ve,Ke){if(1&ve&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ve){const Ue=b.oxw(3);b.xp6(1),b.AsE(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.ERROR_EMAIL"),": ",Ue.invitedMembers.getError("invalidEmail").value," ")}}function F(ve,Ke){if(1&ve){const Ue=b.EpF();b.TgZ(0,"div"),b.YNc(1,se,3,3,"div",9),b.YNc(2,Oe,3,3,"div",9),b.TgZ(3,"mat-form-field",10)(4,"mat-label"),b._uU(5),b.ALo(6,"translate"),b.qZA(),b.TgZ(7,"mat-select",11),b.NdJ("valueChange",function(ce){b.CHM(Ue);const k=b.oxw(2);return b.KtG(k.currentLanguage=ce)}),b.YNc(8,_e,4,6,"mat-option",12),b.qZA()(),b._UZ(9,"p",13),b.ALo(10,"translate"),b.TgZ(11,"mat-form-field",14)(12,"mat-label"),b._uU(13),b.ALo(14,"translate"),b.qZA(),b.TgZ(15,"textarea",15),b.ALo(16,"translate"),b._uU(17," "),b.qZA(),b.YNc(18,Be,3,3,"mat-error",3),b.YNc(19,E,3,4,"mat-error",3),b.YNc(20,z,3,4,"mat-error",3),b.qZA()()}if(2&ve){const Ue=b.oxw(2);b.xp6(1),b.Q6J("ngIf",!Ue.data.groupId),b.xp6(1),b.Q6J("ngIf",Ue.data.groupId),b.xp6(3),b.Oqu(b.lcZ(6,12,"DIALOGS.BULK_INVITE_MEMBERS.LANGUAGE")),b.xp6(2),b.Q6J("value",Ue.currentLanguage),b.xp6(1),b.Q6J("ngForOf",Ue.languages),b.xp6(1),b.Q6J("innerHTML",b.lcZ(10,14,"DIALOGS.BULK_INVITE_MEMBERS.HINT"),b.oJD),b.xp6(4),b.Oqu(b.lcZ(14,16,"DIALOGS.BULK_INVITE_MEMBERS.INSERT_HERE")),b.xp6(2),b.s9C("placeholder",b.lcZ(16,18,"DIALOGS.BULK_INVITE_MEMBERS.PLACEHOLDER")),b.Q6J("formControl",Ue.invitedMembers),b.xp6(3),b.Q6J("ngIf",Ue.invitedMembers.hasError("required")),b.xp6(1),b.Q6J("ngIf",Ue.invitedMembers.hasError("invalidFormat")),b.xp6(1),b.Q6J("ngIf",Ue.invitedMembers.hasError("invalidEmail"))}}function V(ve,Ke){if(1&ve&&(b.TgZ(0,"div",8),b.YNc(1,F,21,20,"div",3),b.qZA()),2&ve){const Ue=b.oxw();b.xp6(1),b.Q6J("ngIf","input"===Ue.state)}}function X(ve,Ke){1&ve&&(b.TgZ(0,"perun-web-apps-alert",19),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ve&&(b.Q6J("alert_type","success"),b.xp6(1),b.hij(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.SUCCESS")," "))}function q(ve,Ke){1&ve&&(b.TgZ(0,"perun-web-apps-alert",19),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ve&&(b.Q6J("alert_type","warn"),b.xp6(1),b.hij(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.FINISHED_WITH_ERRORS")," "))}function pe(ve,Ke){if(1&ve&&(b.TgZ(0,"div"),b.YNc(1,X,3,4,"perun-web-apps-alert",18),b.YNc(2,q,3,4,"perun-web-apps-alert",18),b.qZA()),2&ve){const Ue=b.oxw();b.xp6(1),b.Q6J("ngIf",!Ue.finishedWithErrors),b.xp6(1),b.Q6J("ngIf",Ue.finishedWithErrors)}}function le(ve,Ke){if(1&ve){const Ue=b.EpF();b.TgZ(0,"button",20),b.NdJ("click",function(){b.CHM(Ue);const ce=b.oxw();return b.KtG(ce.onSubmit())}),b._uU(1),b.ALo(2,"translate"),b.qZA()}if(2&ve){const Ue=b.oxw();b.Q6J("disabled",Ue.loading||Ue.invitedMembers.invalid),b.xp6(1),b.hij(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.INVITE")," ")}}function ye(ve,Ke){if(1&ve){const Ue=b.EpF();b.TgZ(0,"button",20),b.NdJ("click",function(){b.CHM(Ue);const ce=b.oxw();return b.KtG(ce.downloadCsv())}),b._uU(1),b.ALo(2,"translate"),b.qZA()}if(2&ve){const Ue=b.oxw();b.Q6J("disabled",!Ue.resultData),b.xp6(1),b.hij(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.DOWNLOAD_CSV")," ")}}let Ve=(()=>{class ve{constructor(Ue,oe,ce,k){this.dialogRef=Ue,this.data=oe,this.store=ce,this.registrarManager=k,this.invitedMembers=new e.NI("",[e.kI.required,this.userInputValidator()]),this.languages=this.store.getProperty("supported_languages"),this.currentLanguage="en",this.loading=!1,this.state="input"}static didSomeInviteFail(Ue){for(const oe in Ue)if("OK"!==Ue[oe])return!0;return!1}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const Ue=this.invitedMembers.value.split("\n"),oe=[];for(const k of Ue)oe.push(this.parseMemberLine(k));const ce={invitationData:oe,voId:this.data.voId,language:this.currentLanguage};void 0!==this.data.groupId&&(ce.groupId=this.data.groupId),this.registrarManager.sendInvitationsFromCsv(ce).subscribe({next:k=>{this.state="results",this.finishedWithErrors=ve.didSomeInviteFail(k),this.resultData=k,this.loading=!1},error:()=>{this.loading=!1}})}downloadCsv(){(0,A.O6)(this.generateOutputData(this.resultData),"csv","member-invites")}generateOutputData(Ue){const oe=[];for(const ce in Ue)oe.push({email:ce,status:Ue[ce]});return oe}parseMemberLine(Ue){const oe=Ue.trim();if(""===oe)return"";const ce=oe.split(";");if(ce.length>2||0===ce.length)return"format";if(!ce[0].trim().match(A.B2))return"email";let k="";for(const N of ce)k+=N.trim()+";";return k.slice(0,-1)}userInputValidator(){return Ue=>{const oe=Ue.value.split("\n");for(const ce of oe){const k=this.parseMemberLine(ce);let N=ce;if(ce.length>25&&(N=ce.substring(0,25)+"..."),"format"===k)return{invalidFormat:{value:N}};if("email"===k)return{invalidEmail:{value:N}}}return null}}}return ve.\u0275fac=function(Ue){return new(Ue||ve)(b.Y36(C.so),b.Y36(C.WI),b.Y36(M.d6),b.Y36(f.tk))},ve.\u0275cmp=b.Xpm({type:ve,selectors:[["app-bulk-invite-members-dialog"]],decls:13,vars:14,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["class","font-italic",4,"ngIf"],[1,"w-100","pt-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML"],[1,"pt-2","flex-container"],["cols","50","required","","matInput","","rows","8",1,"md-textarea","form-control",3,"formControl","placeholder"],[1,"font-italic"],[3,"value"],[3,"alert_type",4,"ngIf"],[3,"alert_type"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Ue,oe){1&Ue&&(b.TgZ(0,"div")(1,"h1",0),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.YNc(4,G,1,0,"mat-spinner",1),b.YNc(5,V,2,1,"div",2),b.YNc(6,pe,3,2,"div",3),b.TgZ(7,"div",4)(8,"button",5),b.NdJ("click",function(){return oe.onCancel()}),b._uU(9),b.ALo(10,"translate"),b.qZA(),b.YNc(11,le,3,4,"button",6),b.YNc(12,ye,3,4,"button",6),b.qZA()()),2&Ue&&(b.Tol(oe.data.theme),b.xp6(2),b.Oqu(b.lcZ(3,10,"DIALOGS.BULK_INVITE_MEMBERS.TITLE")),b.xp6(2),b.Q6J("ngIf",oe.loading),b.xp6(1),b.Q6J("ngIf",!oe.loading),b.xp6(1),b.Q6J("ngIf","results"===oe.state),b.xp6(3),b.hij(" ",b.lcZ(10,12,"DIALOGS.BULK_INVITE_MEMBERS.CANCEL")," "),b.xp6(2),b.Q6J("ngIf","input"===oe.state),b.xp6(1),b.Q6J("ngIf","results"===oe.state))},dependencies:[D.sg,D.O5,T.ey,R.TO,R.KE,R.hX,B.Nt,e.Fj,e.JJ,e.Q7,e.oH,w.lW,C.uh,C.xY,C.H8,H.gD,O.Ou,J.w,D.gd,ne.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),ve})()},40009:($e,he,p)=>{"use strict";p.d(he,{R:()=>G});var e=p(65412),A=p(81591),C=p(24006),M=p(61744),f=p(94650),b=p(89383),D=p(36895),T=p(59549),R=p(284),B=p(4859),w=p(56709),H=p(51572);function O(se,Oe){1&se&&f._UZ(0,"mat-spinner",4)}function J(se,Oe){if(1&se){const _e=f.EpF();f.TgZ(0,"div",5)(1,"mat-form-field")(2,"input",6),f.NdJ("change",function(){f.CHM(_e);const E=f.oxw();return f.KtG(E.makePath())}),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"mat-error"),f._uU(5),f.ALo(6,"translate"),f.qZA()(),f.TgZ(7,"mat-form-field")(8,"input",7),f.NdJ("ngModelChange",function(E){f.CHM(_e);const z=f.oxw();return f.KtG(z.description=E)}),f.ALo(9,"translate"),f.qZA()(),f.TgZ(10,"mat-form-field"),f._UZ(11,"input",8),f.ALo(12,"translate"),f.TgZ(13,"mat-error"),f._uU(14),f.ALo(15,"translate"),f.qZA()(),f.TgZ(16,"mat-form-field"),f._UZ(17,"input",9),f.ALo(18,"translate"),f.TgZ(19,"mat-error"),f._uU(20),f.ALo(21,"translate"),f.qZA()(),f.TgZ(22,"mat-form-field"),f._UZ(23,"input",8),f.ALo(24,"translate"),f.TgZ(25,"mat-error"),f._uU(26),f.ALo(27,"translate"),f.qZA()(),f.TgZ(28,"span",10),f._uU(29),f.ALo(30,"translate"),f.TgZ(31,"mat-checkbox",11),f.NdJ("ngModelChange",function(E){f.CHM(_e);const z=f.oxw();return f.KtG(z.status=E)}),f._uU(32),f.ALo(33,"translate"),f.qZA()(),f.TgZ(34,"span",10),f._uU(35),f.ALo(36,"translate"),f.TgZ(37,"mat-checkbox",11),f.NdJ("ngModelChange",function(E){f.CHM(_e);const z=f.oxw();return f.KtG(z.propagateExpiredMembers=E)}),f._uU(38),f.ALo(39,"translate"),f.qZA()()()}if(2&se){const _e=f.oxw();f.xp6(2),f.s9C("placeholder",f.lcZ(3,20,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),f.Q6J("formControl",_e.nameControl),f.xp6(3),f.Oqu(f.lcZ(6,22,"DIALOGS.CREATE_EDIT_SERVICE.RESTRICTION_NAME")),f.xp6(3),f.s9C("placeholder",f.lcZ(9,24,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),f.Q6J("ngModel",_e.description),f.xp6(3),f.s9C("placeholder",f.lcZ(12,26,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),f.Q6J("formControl",_e.delayControl),f.xp6(3),f.Oqu(f.lcZ(15,28,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),f.xp6(3),f.s9C("placeholder",f.lcZ(18,30,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),f.Q6J("formControl",_e.recurrenceControl),f.xp6(3),f.Oqu(f.lcZ(21,32,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),f.xp6(3),f.s9C("placeholder",f.lcZ(24,34,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),f.Q6J("formControl",_e.pathControl),f.xp6(3),f.Oqu(f.lcZ(27,36,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),f.xp6(3),f.hij("",f.lcZ(30,38,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")," "),f.xp6(2),f.Q6J("ngModel",_e.status),f.xp6(1),f.Oqu(f.lcZ(33,40,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT")),f.xp6(3),f.hij("",f.lcZ(36,42,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS")," "),f.xp6(2),f.Q6J("ngModel",_e.propagateExpiredMembers),f.xp6(1),f.Oqu(f.lcZ(39,44,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS_HINT"))}}function ne(se,Oe){if(1&se){const _e=f.EpF();f.TgZ(0,"div",12)(1,"button",13),f.NdJ("click",function(){f.CHM(_e);const E=f.oxw();return f.KtG(E.onCancel())}),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"button",14),f.NdJ("click",function(){f.CHM(_e);const E=f.oxw();return f.KtG(E.asEdit?E.onEdit():E.onCreate())}),f._uU(5),f.qZA()()}if(2&se){const _e=f.oxw();f.xp6(2),f.hij(" ",f.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),f.xp6(2),f.Q6J("disabled",_e.nameControl.invalid||_e.delayControl.invalid||_e.recurrenceControl.invalid||_e.pathControl.invalid),f.xp6(1),f.hij(" ",_e.buttonText," ")}}let G=(()=>{class se{constructor(_e,Be,E,z,F){this.dialogRef=_e,this.data=Be,this.serviceManager=E,this.notificator=z,this.translate=F,this.loading=!1,this.status=!0,this.propagateExpiredMembers=!0,this.nameControl=new C.p4("",[C.kI.required,C.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new C.p4(10,[C.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new C.p4(2,[C.kI.pattern("^[0-9]*$")]),this.pathControl=new C.p4("",[C.kI.required]),this.asEdit=!1}ngOnInit(){this.theme=this.data.theme,this.asEdit=void 0!==this.data.service,this.asEdit?(this.nameControl.setValue(this.data.service.name),this.description=this.data.service.description,this.delayControl.setValue(this.data.service.delay),this.recurrenceControl.setValue(this.data.service.recurrence),this.pathControl.setValue(this.data.service.script),this.status=this.data.service.enabled,this.propagateExpiredMembers=this.data.service.useExpiredMembers,this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT")):(this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE"))}onCreate(){this.loading=!0,this.serviceManager.createServiceWithService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:0,beanName:""}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onEdit(){this.loading=!0,this.serviceManager.updateService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:this.data.service.id,beanName:this.data.service.beanName}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}makePath(){const _e="./".concat(this.nameControl.value);this.pathControl.setValue(_e)}}return se.\u0275fac=function(_e){return new(_e||se)(f.Y36(e.so),f.Y36(e.WI),f.Y36(M.KK),f.Y36(A.V6),f.Y36(b.sK))},se.\u0275cmp=f.Xpm({type:se,selectors:[["app-create-service-dialog"]],decls:6,vars:7,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","service-name-input","required","",3,"placeholder","formControl","change"],["matInput","","data-cy","service-description-input",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","",3,"placeholder","formControl"],[1,"d-flex"],[1,"ml-3",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","service-create-edit-dialog-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(_e,Be){1&_e&&(f.TgZ(0,"div")(1,"h1",0),f._uU(2),f.qZA(),f.YNc(3,O,1,0,"mat-spinner",1),f.YNc(4,J,40,46,"div",2),f.YNc(5,ne,6,5,"div",3),f.qZA()),2&_e&&(f.Tol(Be.theme),f.xp6(2),f.Oqu(Be.title),f.xp6(1),f.Q6J("ngIf",Be.loading),f.xp6(1),f.Q6J("ngIf",!Be.loading),f.xp6(1),f.Q6J("ngIf",!Be.loading))},dependencies:[D.O5,T.TO,T.KE,R.Nt,C.Fj,C.JJ,C.Q7,C.oH,C.On,B.lW,w.oG,e.uh,e.xY,e.H8,H.Ou,b.X$]}),se})()},81889:($e,he,p)=>{"use strict";p.d(he,{y:()=>Oe});var e=p(65412),A=p(81591),C=p(61744),M=p(24006),f=p(94650),b=p(89383),D=p(36895),T=p(59549),R=p(284),B=p(4859),w=p(56709),H=p(51572),O=p(82322);function J(_e,Be){1&_e&&f._UZ(0,"mat-spinner",3)}function ne(_e,Be){if(1&_e){const E=f.EpF();f.TgZ(0,"mat-checkbox",14),f.NdJ("ngModelChange",function(F){f.CHM(E);const V=f.oxw(2);return f.KtG(V.asSubgroup=F)})("click",function(){f.CHM(E);const F=f.oxw(2);return f.KtG(F.loadVoGroups())}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&_e){const E=f.oxw(2);f.Q6J("ngModel",E.asSubgroup)("labelPosition","before"),f.xp6(1),f.hij(" ",f.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function G(_e,Be){if(1&_e){const E=f.EpF();f.TgZ(0,"perun-web-apps-group-search-select",15),f.NdJ("groupSelected",function(F){f.CHM(E);const V=f.oxw(2);return f.KtG(V.selectedParent=F)}),f.qZA()}if(2&_e){const E=f.oxw(2);f.Q6J("disableAutoSelect",!0)("groups",E.voGroups)}}function se(_e,Be){if(1&_e){const E=f.EpF();f.TgZ(0,"div")(1,"div",4)(2,"mat-form-field")(3,"label",5),f._UZ(4,"input",6),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"mat-error"),f._uU(7),f.ALo(8,"translate"),f.qZA()(),f.TgZ(9,"mat-form-field",7)(10,"label",5)(11,"textarea",8),f.ALo(12,"translate"),f._uU(13," "),f.qZA()()(),f.YNc(14,ne,3,5,"mat-checkbox",9),f.YNc(15,G,1,2,"perun-web-apps-group-search-select",10),f.qZA(),f.TgZ(16,"div",11)(17,"button",12),f.NdJ("click",function(){f.CHM(E);const F=f.oxw();return f.KtG(F.onCancel())}),f._uU(18),f.ALo(19,"translate"),f.qZA(),f.TgZ(20,"button",13),f.NdJ("click",function(){f.CHM(E);const F=f.oxw();return f.KtG(F.onSubmit())}),f._uU(21),f.ALo(22,"translate"),f.qZA()()()}if(2&_e){const E=f.oxw();f.xp6(4),f.s9C("placeholder",f.lcZ(5,10,"DIALOGS.CREATE_GROUP.NAME")),f.Q6J("formControl",E.nameControl),f.xp6(3),f.hij(" ",E.invalidNameMessage.length?E.invalidNameMessage:f.lcZ(8,12,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),f.xp6(4),f.s9C("placeholder",f.lcZ(12,14,"DIALOGS.CREATE_GROUP.DESCRIPTION")),f.Q6J("formControl",E.descriptionControl),f.xp6(3),f.Q6J("ngIf",E.isNotSubGroup),f.xp6(1),f.Q6J("ngIf",E.asSubgroup),f.xp6(3),f.hij(" ",f.lcZ(19,16,"DIALOGS.CREATE_GROUP.CANCEL")," "),f.xp6(2),f.Q6J("disabled",E.nameControl.invalid||E.descriptionControl.invalid||E.asSubgroup&&null===E.selectedParent||E.loading),f.xp6(1),f.hij(" ",f.lcZ(22,18,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let Oe=(()=>{class _e{constructor(E,z,F,V,X,q){this.dialogRef=E,this.data=z,this.groupService=F,this.translate=V,this.notificator=X,this.store=q,this.asSubgroup=!1,this.invalidNameMessage=this.store.getProperty("group_name_error_message"),this.voGroups=[],this.secondaryRegex=this.store.getProperty("group_name_secondary_regex"),this.nameFunction=pe=>pe.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?V.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(pe=>this.title=pe):V.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(pe=>{this.title=pe+this.data.parentGroup.name}),V.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(pe=>this.successMessage=pe),V.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(pe=>this.successSubGroupMessage=pe)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new M.p4("",[M.kI.required,M.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),M.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new M.p4(""),this.selectedParent=null}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.isNotSubGroup&&!this.asSubgroup?this.groupService.createGroupWithVoNameDescription(this.data.voId,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1):this.groupService.createGroupWithParentGroupNameDescription(this.asSubgroup?this.selectedParent.id:this.data.parentGroup.id,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successSubGroupMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}loadVoGroups(){this.groupService.getAllGroups(this.data.voId).subscribe(E=>{this.voGroups=E.filter(z=>"members"!==z.name)})}}return _e.\u0275fac=function(E){return new(E||_e)(f.Y36(e.so),f.Y36(e.WI),f.Y36(C.ff),f.Y36(b.sK),f.Y36(A.V6),f.Y36(A.d6))},_e.\u0275cmp=f.Xpm({type:_e,selectors:[["app-create-group-dialog"]],decls:5,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","","data-cy","group-name","required","",3,"formControl","placeholder"],[1,"mt-4"],["mat-autosize","","matInput","","data-cy","group-description",3,"formControl","placeholder"],[3,"ngModel","labelPosition","ngModelChange","click",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","create-group-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"ngModel","labelPosition","ngModelChange","click"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(E,z){1&E&&(f.TgZ(0,"h1",0),f._uU(1),f.qZA(),f.TgZ(2,"div"),f.YNc(3,J,1,0,"mat-spinner",1),f.YNc(4,se,23,20,"div",2),f.qZA()),2&E&&(f.xp6(1),f.Oqu(z.title),f.xp6(1),f.Tol(z.theme),f.xp6(1),f.Q6J("ngIf",z.loading),f.xp6(1),f.Q6J("ngIf",!z.loading))},dependencies:[D.O5,T.TO,T.KE,R.Nt,M.Fj,M.JJ,M.Q7,M.oH,M.On,B.lW,w.oG,e.uh,e.xY,e.H8,H.Ou,O.h,b.X$]}),_e})()},54037:($e,he,p)=>{"use strict";p.d(he,{Y:()=>T});var e=p(61744),A=p(65412),C=p(81591),M=p(30671),f=p(94650),b=p(89383),D=p(90995);let T=(()=>{class R{constructor(w,H,O,J,ne){this.dialogRef=w,this.data=H,this.facilitiesManager=O,this.notificator=J,this.translate=ne,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.facility=this.data.facility,this.dataSource=new M.by([this.facility]),this.relations.push(this.translate.instant("DIALOGS.DELETE_FACILITY.RESOURCE_RELATION"))}onConfirm(){this.loading=!0,this.facilitiesManager.deleteFacility(this.facility.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_FACILITY.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(w){this.force=w.force,w.deleted?this.onConfirm():this.onCancel()}}return R.\u0275fac=function(w){return new(w||R)(f.Y36(A.so),f.Y36(A.WI),f.Y36(e.IQ),f.Y36(C.V6),f.Y36(b.sK))},R.\u0275cmp=f.Xpm({type:R,selectors:[["app-delete-facility-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(w,H){1&w&&(f.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),f.NdJ("deleted",function(J){return H.onSubmit(J)}),f.qZA()()),2&w&&(f.Tol(H.theme),f.xp6(1),f.Q6J("entityNames",H.dataSource)("entityType","facilities")("loading",H.loading)("relations",H.relations))},dependencies:[D.e]}),R})()},41656:($e,he,p)=>{"use strict";p.d(he,{P:()=>T});var e=p(65412),A=p(30671),C=p(81591),M=p(61744),f=p(94650),b=p(89383),D=p(90995);let T=(()=>{class R{constructor(w,H,O,J,ne){this.dialogRef=w,this.data=H,this.notificator=O,this.translate=J,this.groupService=ne,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.groups),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.SUBGROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.MEMBER_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0;const w=this.data.groups.map(H=>H.id);this.groupService.deleteGroups({groups:w,forceDelete:this.force}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(H=>{this.notificator.showSuccess(H),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(w){this.force=w.force,w.deleted?this.onDelete():this.onCancel()}}return R.\u0275fac=function(w){return new(w||R)(f.Y36(e.so),f.Y36(e.WI),f.Y36(C.V6),f.Y36(b.sK),f.Y36(M.ff))},R.\u0275cmp=f.Xpm({type:R,selectors:[["app-delete-group-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(w,H){1&w&&(f.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),f.NdJ("deleted",function(J){return H.onSubmit(J)}),f.qZA()()),2&w&&(f.Tol(H.theme),f.xp6(1),f.Q6J("entityNames",H.dataSource)("entityType","groups")("loading",H.loading)("relations",H.relations))},dependencies:[D.e]}),R})()},90719:($e,he,p)=>{"use strict";p.d(he,{m:()=>D});var e=p(61744),A=p(65412),C=p(81591),M=p(30671),f=p(94650),b=p(90995);let D=(()=>{class T{constructor(B,w,H,O,J){this.dialogRef=B,this.data=w,this.serviceManager=H,this.notificator=O,this.translate=J,this.dataSource=new M.by(this.data.services),this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.services=this.data.services,this.relations.push(this.translate.instant("DIALOGS.DELETE_SERVICE.DESTINATION_RELATION")),this.anotherMessage=this.translate.instant("DIALOGS.DELETE_SERVICE.MORE_INFORMATION")}onConfirm(){this.loading=!0;const B=this.services.map(w=>w.id);this.serviceManager.deleteServices(B,this.force).subscribe({next:()=>{this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_SERVICE.SUCCESS")),this.loading=!1},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(B){this.force=B.force,B.deleted?this.onConfirm():this.onCancel()}}return T.\u0275fac=function(B){return new(B||T)(f.Y36(A.so),f.Y36(A.WI),f.Y36(e.KK),f.Y36(C.V6),f.Y36(C.Te))},T.\u0275cmp=f.Xpm({type:T,selectors:[["app-delete-service-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","anotherMessage","loading","relations","deleted"]],template:function(B,w){1&B&&(f.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),f.NdJ("deleted",function(O){return w.onSubmit(O)}),f.qZA()()),2&B&&(f.Tol(w.theme),f.xp6(1),f.Q6J("entityNames",w.dataSource)("entityType","services")("anotherMessage",w.anotherMessage)("loading",w.loading)("relations",w.relations))},dependencies:[b.e]}),T})()},83491:($e,he,p)=>{"use strict";p.d(he,{_:()=>ge});var e=p(65412),A=p(61744),C=p(9244),M=p(37433),f=p(81591),b=p(94650),D=p(89383),T=p(36895),R=p(3238),B=p(39349),w=p(59549),H=p(284),O=p(24006),J=p(97392),ne=p(4859),G=p(3848),se=p(56709),Oe=p(84385),_e=p(51572),Be=p(10266),E=p(63312),z=p(52170);const F=["*"];let V=(()=>{class we{}return we.\u0275fac=function(Ce){return new(Ce||we)},we.\u0275cmp=b.Xpm({type:we,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:F,decls:9,vars:2,consts:[[1,"d-flex"],[1,"w-25","m-auto","font-weight-bold"],[1,"w-75"],[1,"d-flex","mb-3"],[1,"w-25"],[1,"w-75","font-italic","text-muted"]],template:function(Ce,fe){1&Ce&&(b.F$t(),b.TgZ(0,"div",0)(1,"span",1),b._uU(2),b.qZA(),b.TgZ(3,"div",2),b.Hsn(4),b.qZA()(),b.TgZ(5,"div",3),b._UZ(6,"span",4),b.TgZ(7,"div",5),b._uU(8),b.qZA()()),2&Ce&&(b.xp6(2),b.hij("",fe.label,":"),b.xp6(6),b.hij(" ",fe.description," "))}}),we})();var X=p(57706);let q=(()=>{class we{constructor(Ce){this.translateService=Ce}transform(Ce){switch(Ce){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+Ce);default:return Ce}}}return we.\u0275fac=function(Ce){return new(Ce||we)(b.Y36(D.sK,16))},we.\u0275pipe=b.Yjl({name:"applicationFormItemDisabled",type:we,pure:!0}),we})(),pe=(()=>{class we{constructor(Ce){this.translateService=Ce}transform(Ce){switch(Ce){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+Ce);default:return Ce}}}return we.\u0275fac=function(Ce){return new(Ce||we)(b.Y36(D.sK,16))},we.\u0275pipe=b.Yjl({name:"applicationFormItemHidden",type:we,pure:!0}),we})();function le(we,Ne){1&we&&b._UZ(0,"mat-spinner",8)}function ye(we,Ne){if(1&we){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"section")(5,"mat-checkbox",22),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw(3);return b.KtG(u.applicationFormItem.updatable=r)}),b.qZA()()()()}if(2&we){const Ce=b.oxw(3);b.xp6(1),b.Q6J("description",b.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION"))("label",b.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE")),b.xp6(4),b.Q6J("ngModel",Ce.applicationFormItem.updatable)}}function Ve(we,Ne){if(1&we){const Ce=b.EpF();b.TgZ(0,"div",13)(1,"mat-form-field",13)(2,"input",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw(3);return b.KtG(u.applicationFormItem.federationAttribute=r)}),b.qZA()()()}if(2&we){const Ce=b.oxw(3);b.xp6(2),b.Q6J("ngModel",Ce.applicationFormItem.federationAttribute)}}function ve(we,Ne){if(1&we){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"section")(5,"mat-checkbox",22),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.applicationFormItem.required=r)}),b.qZA()()(),b.YNc(6,ye,6,7,"div",17),b.TgZ(7,"app-edit-application-form-item-line",12),b.ALo(8,"translate"),b.ALo(9,"translate"),b.TgZ(10,"div",13)(11,"perun-web-apps-selection-item-search-select",23),b.NdJ("itemSelected",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.applicationFormItem.perunSourceAttribute=r.value)}),b.qZA()()(),b.TgZ(12,"app-edit-application-form-item-line",12),b.ALo(13,"translate"),b.ALo(14,"translate"),b.TgZ(15,"div",13)(16,"perun-web-apps-selection-item-search-select",23),b.NdJ("itemSelected",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.applicationFormItem.perunDestinationAttribute=r.value)}),b.qZA()()(),b.TgZ(17,"app-edit-application-form-item-line",12),b.ALo(18,"translate"),b.ALo(19,"translate"),b.TgZ(20,"div",13)(21,"perun-web-apps-selection-item-search-select",24),b.NdJ("itemSelected",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.changeFederationAttribute(r))}),b.qZA()(),b.YNc(22,Ve,3,1,"div",25),b.qZA()()}if(2&we){const Ce=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,22,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION"))("label",b.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED")),b.xp6(4),b.Q6J("ngModel",Ce.applicationFormItem.required),b.xp6(1),b.Q6J("ngIf",Ce.typesWithUpdatable.indexOf(Ce.applicationFormItem.type)>-1),b.xp6(1),b.Q6J("description",b.lcZ(8,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION"))("label",b.lcZ(9,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE")),b.xp6(4),b.Q6J("attributes",Ce.sourceAttributes)("selectedAttribute",Ce.applicationFormItem.perunSourceAttribute)("asGroup",!!Ce.data.group)("type",Ce.itemType.SOURCE),b.xp6(1),b.Q6J("description",b.lcZ(13,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION"))("label",b.lcZ(14,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE")),b.xp6(4),b.Q6J("attributes",Ce.destinationAttributes)("selectedAttribute",Ce.applicationFormItem.perunDestinationAttribute)("asGroup",!!Ce.data.group)("type",Ce.itemType.DESTINATION),b.xp6(1),b.Q6J("description",b.lcZ(18,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION"))("label",b.lcZ(19,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE")),b.xp6(4),b.Q6J("selectedAttribute",Ce.applicationFormItem.federationAttribute)("asGroup",!!Ce.data.group)("type",Ce.itemType.FEDERATION),b.xp6(1),b.Q6J("ngIf"," -- custom value -- "===Ce.federationAttributeDN)}}function Ke(we,Ne){if(1&we){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"input",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.applicationFormItem.regex=r)}),b.qZA()()()()}if(2&we){const Ce=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION"))("label",b.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX")),b.xp6(4),b.Q6J("ngModel",Ce.applicationFormItem.regex)}}function Ue(we,Ne){if(1&we&&(b.TgZ(0,"mat-option",26),b._uU(1),b.ALo(2,"applicationFormItemDisabled"),b.qZA()),2&we){const Ce=Ne.$implicit;b.Q6J("value",Ce),b.xp6(1),b.hij(" ",b.lcZ(2,2,Ce)," ")}}function oe(we,Ne){if(1&we){const Ce=b.EpF();b.TgZ(0,"perun-web-apps-app-form-item-search-select",27),b.NdJ("itemSelected",function(r){b.CHM(Ce);const u=b.oxw(3);return b.KtG(u.disabledDependencyItem=r)}),b.qZA()}if(2&we){const Ce=b.oxw(3);b.Q6J("item",Ce.disabledDependencyItem)("items",Ce.possibleDependencyItems)}}function ce(we,Ne){if(1&we){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"mat-select",18),b.NdJ("valueChange",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.applicationFormItem.disabled=r)}),b.YNc(6,Ue,3,4,"mat-option",19),b.qZA()()(),b.TgZ(7,"app-edit-application-form-item-line",12),b.ALo(8,"translate"),b.ALo(9,"translate"),b.TgZ(10,"div",13),b.YNc(11,oe,1,2,"perun-web-apps-app-form-item-search-select",20),b.qZA()()()}if(2&we){const Ce=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION"))("label",b.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED")),b.xp6(4),b.Q6J("value",Ce.applicationFormItem.disabled),b.xp6(1),b.Q6J("ngForOf",Ce.disabledValues),b.xp6(1),b.Q6J("description",b.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION"))("label",b.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY")),b.xp6(4),b.Q6J("ngIf",null!==Ce.disabledDependencyItem)}}function k(we,Ne){if(1&we&&(b.TgZ(0,"mat-option",26),b._uU(1),b.ALo(2,"applicationFormItemHidden"),b.qZA()),2&we){const Ce=Ne.$implicit;b.Q6J("value",Ce),b.xp6(1),b.hij(" ",b.lcZ(2,2,Ce)," ")}}function N(we,Ne){if(1&we){const Ce=b.EpF();b.TgZ(0,"perun-web-apps-app-form-item-search-select",27),b.NdJ("itemSelected",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.hiddenDependencyItem=r)}),b.qZA()}if(2&we){const Ce=b.oxw(2);b.Q6J("item",Ce.hiddenDependencyItem)("items",Ce.possibleDependencyItems)}}function be(we,Ne){if(1&we){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"textarea",28),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw().$implicit,g=b.oxw(2);return b.KtG(g.applicationFormItem.i18n[u].label=r)}),b.qZA()()()()}if(2&we){const Ce=b.oxw().$implicit,fe=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION"))("label",b.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT")),b.xp6(4),b.Q6J("cdkTextareaAutosize",!0)("ngModel",fe.applicationFormItem.i18n[Ce].label)}}function W(we,Ne){if(1&we){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"textarea",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw().$implicit,g=b.oxw(2);return b.KtG(g.applicationFormItem.i18n[u].label=r)}),b.qZA()()(),b.TgZ(6,"app-edit-application-form-item-line",12),b.ALo(7,"translate"),b.ALo(8,"translate"),b.TgZ(9,"mat-form-field",13)(10,"textarea",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw().$implicit,g=b.oxw(2);return b.KtG(g.applicationFormItem.i18n[u].help=r)}),b.qZA()()(),b.TgZ(11,"app-edit-application-form-item-line",12),b.ALo(12,"translate"),b.ALo(13,"translate"),b.TgZ(14,"mat-form-field",13)(15,"textarea",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw().$implicit,g=b.oxw(2);return b.KtG(g.applicationFormItem.i18n[u].errorMessage=r)}),b.qZA()()()()}if(2&we){const Ce=b.oxw().$implicit,fe=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION"))("label",b.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),b.xp6(4),b.Q6J("ngModel",fe.applicationFormItem.i18n[Ce].label),b.xp6(1),b.Q6J("description",b.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION"))("label",b.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP")),b.xp6(4),b.Q6J("ngModel",fe.applicationFormItem.i18n[Ce].help),b.xp6(1),b.Q6J("description",b.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION"))("label",b.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR")),b.xp6(4),b.Q6J("ngModel",fe.applicationFormItem.i18n[Ce].errorMessage)}}function ue(we,Ne){if(1&we){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"textarea",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw().$implicit,g=b.oxw(2);return b.KtG(g.applicationFormItem.i18n[u].label=r)}),b.qZA()()()()}if(2&we){const Ce=b.oxw().$implicit,fe=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION"))("label",b.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),b.xp6(4),b.Q6J("ngModel",fe.applicationFormItem.i18n[Ce].label)}}function Me(we,Ne){if(1&we){const Ce=b.EpF();b.TgZ(0,"div"),b._uU(1),b.ALo(2,"translate"),b.TgZ(3,"mat-form-field")(4,"input",14),b.NdJ("ngModelChange",function(r){const g=b.CHM(Ce).$implicit;return b.KtG(g[0]=r)}),b.qZA()(),b._uU(5),b.ALo(6,"translate"),b.TgZ(7,"mat-form-field")(8,"input",14),b.NdJ("ngModelChange",function(r){const g=b.CHM(Ce).$implicit;return b.KtG(g[1]=r)}),b.qZA()(),b.TgZ(9,"button",37),b.NdJ("click",function(){const u=b.CHM(Ce).$implicit,g=b.oxw(2).$implicit,v=b.oxw(2);return b.KtG(v.removeOption(u,g))}),b.ALo(10,"translate"),b.TgZ(11,"mat-icon"),b._uU(12,"clear"),b.qZA()()()}if(2&we){const Ce=Ne.$implicit;b.xp6(1),b.hij(" ",b.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),b.xp6(3),b.Q6J("ngModel",Ce[0]),b.xp6(1),b.hij(" ",b.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),b.xp6(3),b.Q6J("ngModel",Ce[1]),b.xp6(1),b.s9C("matTooltip",b.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function ot(we,Ne){if(1&we){const Ce=b.EpF();b.TgZ(0,"div")(1,"div",29),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"div",30),b._uU(5),b.ALo(6,"translate"),b.qZA(),b.TgZ(7,"div",31)(8,"button",32),b.NdJ("click",function(){b.CHM(Ce);const r=b.oxw().$implicit,u=b.oxw(2);return b.KtG(u.sortOptionsAZ(r))}),b.TgZ(9,"i",33),b._uU(10,"arrow_downward"),b.qZA(),b._uU(11),b.ALo(12,"translate"),b.qZA(),b.TgZ(13,"button",34),b.NdJ("click",function(){b.CHM(Ce);const r=b.oxw().$implicit,u=b.oxw(2);return b.KtG(u.sortOptionsZA(r))}),b.TgZ(14,"i",33),b._uU(15,"arrow_upward"),b.qZA(),b._uU(16),b.ALo(17,"translate"),b.qZA()(),b.YNc(18,Me,13,11,"div",35),b.TgZ(19,"button",36),b.NdJ("click",function(){b.CHM(Ce);const r=b.oxw().$implicit,u=b.oxw(2);return b.KtG(u.addOption(r))}),b._uU(20),b.ALo(21,"translate"),b.qZA()()}if(2&we){const Ce=b.oxw().$implicit,fe=b.oxw(2);b.xp6(2),b.hij(" ",b.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),": "),b.xp6(3),b.hij(" ",b.lcZ(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),b.xp6(6),b.hij(" ",b.lcZ(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),b.xp6(5),b.hij(" ",b.lcZ(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),b.xp6(2),b.Q6J("ngForOf",fe.options[Ce]),b.xp6(2),b.hij(" ",b.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const je=function(){return["HEADING","HTML_COMMENT"]},ut=function(){return["TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]},tt=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},vt=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function ee(we,Ne){if(1&we&&(b.TgZ(0,"mat-tab",11),b.ALo(1,"translate"),b.ALo(2,"uppercase"),b.YNc(3,be,6,8,"div",17),b.YNc(4,W,16,21,"div",17),b.YNc(5,ue,6,7,"div",17),b.YNc(6,ot,22,16,"div",17),b.qZA()),2&we){const Ce=Ne.$implicit,fe=b.oxw(2);b.s9C("label",b.lcZ(1,5,b.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+Ce))),b.xp6(3),b.Q6J("ngIf",fe.isApplicationFormItemOfType(b.DdM(9,je))),b.xp6(1),b.Q6J("ngIf",fe.isApplicationFormItemOfType(b.DdM(10,ut))),b.xp6(1),b.Q6J("ngIf",fe.isApplicationFormItemOfType(b.DdM(11,tt))),b.xp6(1),b.Q6J("ngIf",fe.isApplicationFormItemOfType(b.DdM(12,vt)))}}const nt=function(){return["TEXTFIELD","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]},Ae=function(){return["TEXTFIELD","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]};function Ee(we,Ne){if(1&we){const Ce=b.EpF();b.TgZ(0,"div",9)(1,"mat-tab-group",10)(2,"mat-tab",11),b.ALo(3,"translate"),b.TgZ(4,"app-edit-application-form-item-line",12),b.ALo(5,"translate"),b.ALo(6,"translate"),b.TgZ(7,"mat-form-field",13)(8,"input",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw();return b.KtG(u.applicationFormItem.shortname=r)}),b.qZA()()(),b.TgZ(9,"app-edit-application-form-item-line",12),b.ALo(10,"translate"),b.ALo(11,"translate"),b._uU(12),b.ALo(13,"applicationFormItemType"),b.qZA(),b.TgZ(14,"app-edit-application-form-item-line",12),b.ALo(15,"translate"),b.ALo(16,"translate"),b.TgZ(17,"section")(18,"mat-checkbox",15),b.NdJ("change",function(){b.CHM(Ce);const r=b.oxw();return b.KtG(r.onChangingType("INITIAL"))}),b._uU(19),b.ALo(20,"translate"),b.qZA(),b.TgZ(21,"mat-checkbox",16),b.NdJ("change",function(){b.CHM(Ce);const r=b.oxw();return b.KtG(r.onChangingType("EXTENSION"))}),b._uU(22),b.ALo(23,"translate"),b.qZA()()(),b.YNc(24,ve,23,38,"div",17),b.YNc(25,Ke,6,7,"div",17),b.YNc(26,ce,12,15,"div",17),b.TgZ(27,"app-edit-application-form-item-line",12),b.ALo(28,"translate"),b.ALo(29,"translate"),b.TgZ(30,"mat-form-field",13)(31,"mat-select",18),b.NdJ("valueChange",function(r){b.CHM(Ce);const u=b.oxw();return b.KtG(u.applicationFormItem.hidden=r)}),b.YNc(32,k,3,4,"mat-option",19),b.qZA()()(),b.TgZ(33,"app-edit-application-form-item-line",12),b.ALo(34,"translate"),b.ALo(35,"translate"),b.TgZ(36,"div",13),b.YNc(37,N,1,2,"perun-web-apps-app-form-item-search-select",20),b.qZA()()(),b.YNc(38,ee,7,13,"mat-tab",21),b.qZA()()}if(2&we){const Ce=b.oxw();b.xp6(2),b.s9C("label",b.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),b.xp6(2),b.Q6J("description",b.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION"))("label",b.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME")),b.xp6(4),b.Q6J("ngModel",Ce.applicationFormItem.shortname),b.xp6(1),b.Q6J("description",b.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION"))("label",b.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET")),b.xp6(3),b.hij(" ",b.lcZ(13,34,Ce.applicationFormItem.type)," "),b.xp6(2),b.Q6J("description",b.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION"))("label",b.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION")),b.xp6(4),b.Q6J("ngModel",Ce.applicationFormItem.applicationTypes.includes("INITIAL")),b.xp6(1),b.hij(" ",b.lcZ(20,40,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),b.xp6(2),b.Q6J("ngModel",Ce.applicationFormItem.applicationTypes.includes("EXTENSION")),b.xp6(1),b.hij(" ",b.lcZ(23,42,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),b.xp6(2),b.Q6J("ngIf",Ce.isApplicationFormItemOfType(b.DdM(52,nt))),b.xp6(1),b.Q6J("ngIf",Ce.isApplicationFormItemOfType(b.DdM(53,Ae))),b.xp6(1),b.Q6J("ngIf",Ce.typesWithDisabled.indexOf(Ce.applicationFormItem.type)>-1),b.xp6(1),b.Q6J("description",b.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION"))("label",b.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN")),b.xp6(4),b.Q6J("value",Ce.applicationFormItem.hidden),b.xp6(1),b.Q6J("ngForOf",Ce.hiddenValues),b.xp6(1),b.Q6J("description",b.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION"))("label",b.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY")),b.xp6(4),b.Q6J("ngIf",null!==Ce.hiddenDependencyItem),b.xp6(1),b.Q6J("ngForOf",Ce.languages)}}let ge=(()=>{class we{constructor(Ce,fe,r,u,g,v){this.dialogRef=Ce,this.data=fe,this.attributesManager=r,this.translateService=u,this.store=g,this.cd=v,this.federationAttributeDN="",this.itemType=M.qG,this.loading=!1,this.hiddenValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.disabledValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.possibleDependencyItems=[],this.typesWithUpdatable=["VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","TIMEZONE"],this.typesWithDisabled=["USERNAME","PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.languages=["en"],this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"]}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(Ce=>Ce.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=M.Sx),this.disabledDependencyItem=this.data.allItems.find(Ce=>Ce.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=M.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,C.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(Ce=>{const fe=this.filterAttributesForWidget(Ce);this.sourceAttributes=fe.concat(this.findAttribute(Ce,this.applicationFormItem.perunSourceAttribute)),this.destinationAttributes=fe.concat(this.findAttribute(Ce,this.applicationFormItem.perunDestinationAttribute)),this.loading=!1},()=>this.loading=!1),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}cancel(){this.dialogRef.close()}submit(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===M.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===M.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(Ce){if(this.applicationFormItem.applicationTypes.includes(Ce)){const fe=this.applicationFormItem.applicationTypes.indexOf(Ce);this.applicationFormItem.applicationTypes.splice(fe,1)}else this.applicationFormItem.applicationTypes.push(Ce)}addOption(Ce){this.options[Ce].push(["",""])}removeOption(Ce,fe){this.options[fe]=this.options[fe].filter(r=>!(r[0]===Ce[0]&&r[1]===Ce[1]))}sortOptionsAZ(Ce){this.options[Ce]=this.options[Ce].sort((fe,r)=>fe[1]>r[1]?1:fe[1]fe[1]>r[1]?-1:fe[1]this.dependencyTypes.includes(Ce.type)).filter(Ce=>Ce.id!==this.data.applicationFormItem.id))}updateOption(Ce){let fe="";if(this.options[Ce])for(const r of this.options[Ce])""!==r[0]&&""!==r[1]&&(fe=""===fe?r[0]+"#"+r[1]:fe+"|"+r[0]+"#"+r[1]);this.applicationFormItem.i18n[Ce].options=fe}updateOptions(){for(const Ce of this.languages)this.updateOption(Ce)}findAttribute(Ce,fe){return Ce.find(r=>fe.includes(r.friendlyName))}filterAttributesForWidget(Ce){return Ce.filter("MAP_INPUT_BOX"===this.applicationFormItem.type?fe=>fe.type.includes("LinkedHashMap"):"LIST_INPUT_BOX"===this.applicationFormItem.type?fe=>fe.type.includes("ArrayList"):fe=>!fe.type.includes("ArrayList")&&!fe.type.includes("LinkedHashMap"))}}return we.\u0275fac=function(Ce){return new(Ce||we)(b.Y36(e.so),b.Y36(e.WI),b.Y36(A.H8),b.Y36(D.sK),b.Y36(f.d6),b.Y36(b.sBO))},we.\u0275cmp=b.Xpm({type:we,selectors:[["app-edit-application-form-item-dialog"]],decls:16,vars:20,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","accent","data-cy","edit-form-item-button-dialog",1,"ml-2","mt-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["color","primary"],[3,"label"],[3,"description","label"],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"],[1,"mr-2",3,"ngModel","change"],[3,"ngModel","change"],[4,"ngIf"],["disableOptionCentering","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"item","items","itemSelected",4,"ngIf"],[3,"label",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"attributes","selectedAttribute","asGroup","type","itemSelected"],[3,"selectedAttribute","asGroup","type","itemSelected"],["class","w-100",4,"ngIf"],[3,"value"],[3,"item","items","itemSelected"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"font-weight-bold"],[1,"text-muted","font-italic"],[1,"d-flex","mt-2","mb-2"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],[1,"material-icons"],["mat-flat-button","",1,"mr-auto",3,"click"],[4,"ngFor","ngForOf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-icon-button","",3,"matTooltip","click"]],template:function(Ce,fe){1&Ce&&(b.TgZ(0,"div")(1,"div",0)(2,"h1",1),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.YNc(5,le,1,0,"mat-spinner",2),b.YNc(6,Ee,39,54,"div",3),b.TgZ(7,"div",4)(8,"button",5),b.NdJ("click",function(){return fe.cancel()}),b._uU(9),b.ALo(10,"translate"),b.qZA(),b.TgZ(11,"div",6),b.ALo(12,"translate"),b.TgZ(13,"button",7),b.NdJ("click",function(){return fe.submit()}),b._uU(14),b.ALo(15,"translate"),b.qZA()()()()()),2&Ce&&(b.Gre("",fe.theme," h-100"),b.xp6(3),b.AsE(" ",b.lcZ(4,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",fe.applicationFormItem.shortname," "),b.xp6(2),b.Q6J("ngIf",fe.loading),b.xp6(1),b.Q6J("ngIf",!fe.loading),b.xp6(3),b.hij(" ",b.lcZ(10,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),b.xp6(2),b.s9C("matTooltip",b.lcZ(12,16,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON_DISABLED_TOOLTIP")),b.Q6J("matTooltipDisabled",!fe.applicationFormItem.required||""!==fe.applicationFormItem.perunSourceAttribute||""!==fe.applicationFormItem.federationAttribute||"ALWAYS"!==fe.applicationFormItem.disabled&&"ALWAYS"!==fe.applicationFormItem.hidden),b.xp6(2),b.Q6J("disabled",fe.loading||fe.applicationFormItem.required&&""===fe.applicationFormItem.perunSourceAttribute&&""===fe.applicationFormItem.federationAttribute&&("ALWAYS"===fe.applicationFormItem.disabled||"ALWAYS"===fe.applicationFormItem.hidden)),b.xp6(1),b.hij(" ",b.lcZ(15,18,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},dependencies:[T.sg,T.O5,R.ey,B.IC,w.KE,H.Nt,O.Fj,O.JJ,O.On,J.Hw,ne.lW,G.SP,G.uX,se.oG,e.uh,e.xY,e.H8,Oe.gD,_e.Ou,Be.gM,E.Y,z.$x,V,T.gd,D.X$,X.c,q,pe]}),we})()},19352:($e,he,p)=>{"use strict";p.d(he,{H:()=>Ve});var e=p(61744),A=p(65412),C=p(81591),M=p(30671),f=p(9244),b=p(21029),D=p(36895),T=p(94650),R=p(97392),B=p(4859),w=p(51572),H=p(10266),O=p(89383),J=p(31359);function ne(ve,Ke){1&ve&&T._UZ(0,"mat-spinner",6)}function G(ve,Ke){1&ve&&(T.TgZ(0,"th",17),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&ve&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")," "))}function se(ve,Ke){if(1&ve&&(T.TgZ(0,"td",18),T._uU(1),T.qZA()),2&ve){const Ue=Ke.$implicit;T.xp6(1),T.Oqu(Ue.user.id)}}function Oe(ve,Ke){1&ve&&(T.TgZ(0,"th",17),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&ve&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")," "))}function _e(ve,Ke){if(1&ve&&(T.TgZ(0,"td",18),T._uU(1),T.ALo(2,"userFullName"),T.qZA()),2&ve){const Ue=Ke.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,Ue.user))}}function Be(ve,Ke){1&ve&&(T.TgZ(0,"th",17),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&ve&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")," "))}function E(ve,Ke){if(1&ve){const Ue=T.EpF();T.TgZ(0,"button",20),T.NdJ("click",function(){T.CHM(Ue);const ce=T.oxw().$implicit,k=T.oxw(2);return T.KtG(k.changeExpiration(ce))}),T.TgZ(1,"mat-icon"),T._uU(2," today "),T.qZA()()}}function z(ve,Ke){if(1&ve&&(T.TgZ(0,"td",18)(1,"span"),T._uU(2),T.qZA(),T.YNc(3,E,3,0,"button",19),T.qZA()),2&ve){const Ue=Ke.$implicit,oe=T.oxw(2);T.xp6(2),T.Oqu(oe.parseDate(Ue.validityTo)),T.xp6(1),T.Q6J("ngIf",oe.isExpirationAuthorized(Ue))}}function F(ve,Ke){1&ve&&T._UZ(0,"th",17)}function V(ve,Ke){1&ve&&(T.TgZ(0,"mat-icon",25),T._uU(1,"clear"),T.qZA())}function X(ve,Ke){1&ve&&(T.TgZ(0,"mat-icon"),T._uU(1,"settings_backup_restore"),T.qZA())}function q(ve,Ke){if(1&ve){const Ue=T.EpF();T.TgZ(0,"td",18)(1,"div",21),T.ALo(2,"translate"),T.TgZ(3,"button",22),T.NdJ("click",function(){const k=T.CHM(Ue).$implicit,N=T.oxw(2);return T.KtG(N.markSponsor(k))}),T.YNc(4,V,2,0,"mat-icon",23),T.YNc(5,X,2,0,"mat-icon",24),T.qZA()()()}if(2&ve){const Ue=Ke.$implicit,oe=T.oxw(2);T.xp6(1),T.s9C("matTooltip",T.lcZ(2,7,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),T.Q6J("matTooltipDisabled",oe.isRemoveAuthorized(Ue))("matTooltipPosition","above"),T.xp6(2),T.Q2q("data-cy","",Ue.user.firstName,"-unsponsor-mark-button"),T.Q6J("disabled",!oe.isRemoveAuthorized(Ue)),T.xp6(1),T.Q6J("ngIf",!oe.sponsorsToRemove.has(Ue.user.id)),T.xp6(1),T.Q6J("ngIf",oe.sponsorsToRemove.has(Ue.user.id))}}function pe(ve,Ke){1&ve&&T._UZ(0,"tr",26)}function le(ve,Ke){if(1&ve&&T._UZ(0,"tr",27),2&ve){const Ue=Ke.$implicit,oe=T.oxw(2);T.ekj("make-red",oe.sponsorsToRemove.has(Ue.user.id))}}function ye(ve,Ke){if(1&ve&&(T.TgZ(0,"div",7)(1,"table",8),T.ynx(2,9),T.YNc(3,G,3,3,"th",10),T.YNc(4,se,2,1,"td",11),T.BQk(),T.ynx(5,12),T.YNc(6,Oe,3,3,"th",10),T.YNc(7,_e,3,3,"td",11),T.BQk(),T.ynx(8,13),T.YNc(9,Be,3,3,"th",10),T.YNc(10,z,4,2,"td",11),T.BQk(),T.ynx(11,14),T.YNc(12,F,1,0,"th",10),T.YNc(13,q,6,9,"td",11),T.BQk(),T.YNc(14,pe,1,0,"tr",15),T.YNc(15,le,1,2,"tr",16),T.qZA()()),2&ve){const Ue=T.oxw();T.xp6(1),T.Q6J("dataSource",Ue.dataSource),T.xp6(13),T.Q6J("matHeaderRowDef",Ue.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",Ue.displayedColumns)}}let Ve=(()=>{class ve{constructor(Ue,oe,ce,k,N,be,W,ue){this.dialogRef=Ue,this.data=oe,this.memberService=ce,this.userService=k,this.notificator=N,this.authResolver=be,this.translate=W,this.dialog=ue,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.sponsorsToRemove=new Set,this.expirationChanged=!1}ngOnInit(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new M.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(Ue){this.sponsorsToRemove.has(Ue.user.id)?this.sponsorsToRemove.delete(Ue.user.id):this.sponsorsToRemove.add(Ue.user.id)}onSubmit(){this.loading=!0;const Ue=Array.from(this.sponsorsToRemove);this.removeSponsors(Ue)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(Ue){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[Ue.user])}isExpirationAuthorized(Ue){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[Ue.user,this.vo])}parseDate(Ue){return null===Ue?"Never expire":(0,D.p6)(Ue,"d.M.y","en")}changeExpiration(Ue){const oe=(0,f.kZ)();oe.width="400px",oe.data={memberId:this.data.member.id,sponsor:Ue},this.dialog.open(b.hd,oe).afterClosed().subscribe(k=>{k&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(N=>{this.sponsors=N,this.dataSource=new M.by(this.sponsors),this.loading=!1}))})}removeSponsors(Ue){this.memberService.removeSponsors(this.data.member.id,Ue).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return ve.\u0275fac=function(Ue){return new(Ue||ve)(T.Y36(A.so),T.Y36(A.WI),T.Y36(e.uq),T.Y36(e.Fv),T.Y36(C.V6),T.Y36(C.x4),T.Y36(C.Te),T.Y36(A.uw))},ve.\u0275cmp=T.Xpm({type:ve,selectors:[["app-edit-member-sponsors-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","unsponsor-confirm-button","color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expiration"],["matColumnDef","remove"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"make-red",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-icon-button","",1,"btn-delete",3,"disabled","click"],["class","icn-delete","color","warn",4,"ngIf"],[4,"ngIf"],["color","warn",1,"icn-delete"],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Ue,oe){1&Ue&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div"),T.YNc(4,ne,1,0,"mat-spinner",1),T.YNc(5,ye,16,3,"div",2),T.TgZ(6,"div",3)(7,"button",4),T.NdJ("click",function(){return oe.onCancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return oe.onSubmit()}),T._uU(11),T.ALo(12,"translate"),T.qZA()()()),2&Ue&&(T.xp6(1),T.Oqu(T.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),T.xp6(2),T.Tol(oe.theme),T.xp6(1),T.Q6J("ngIf",oe.loading),T.xp6(1),T.Q6J("ngIf",!oe.loading),T.xp6(3),T.hij(" ",T.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL")," "),T.xp6(2),T.Q6J("disabled",oe.loading||0===oe.sponsorsToRemove.size),T.xp6(1),T.hij(" ",T.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT")," "))},dependencies:[D.O5,R.Hw,B.lW,M.BZ,M.fO,M.as,M.w1,M.Dz,M.nj,M.ge,M.ev,M.XQ,M.Gk,A.uh,A.xY,A.H8,w.Ou,H.gM,O.X$,J.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:gray}"]}),ve})()},74414:($e,he,p)=>{"use strict";p.d(he,{R:()=>E});var e=p(65412),A=p(24006),C=p(61744),M=p(81591),f=p(94650),b=p(89383),D=p(36895),T=p(3238),R=p(59549),B=p(284),w=p(4859),H=p(84385),O=p(51572);function J(z,F){1&z&&f._UZ(0,"mat-spinner",6)}function ne(z,F){1&z&&(f.TgZ(0,"div",14),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&z&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function G(z,F){1&z&&(f.TgZ(0,"div",14),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&z&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function se(z,F){1&z&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&z&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function Oe(z,F){1&z&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&z&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function _e(z,F){if(1&z&&(f.TgZ(0,"mat-option",15),f._uU(1),f.ALo(2,"translate"),f.ALo(3,"uppercase"),f.qZA()),2&z){const V=F.$implicit;f.s9C("value",V),f.xp6(1),f.Oqu(f.lcZ(2,2,f.lcZ(3,4,"SHARED_LIB.LANGUAGES."+V)))}}function Be(z,F){if(1&z){const V=f.EpF();f.TgZ(0,"div",7),f.YNc(1,ne,3,3,"div",8),f.YNc(2,G,3,3,"div",8),f.TgZ(3,"mat-form-field",9),f._UZ(4,"input",10),f.ALo(5,"translate"),f.YNc(6,se,3,3,"mat-error",11),f.qZA(),f.TgZ(7,"mat-form-field",9),f._UZ(8,"textarea",10),f.ALo(9,"translate"),f.YNc(10,Oe,3,3,"mat-error",11),f.qZA(),f.TgZ(11,"mat-form-field",9)(12,"mat-label"),f._uU(13),f.ALo(14,"translate"),f.qZA(),f.TgZ(15,"mat-select",12),f.NdJ("valueChange",function(q){f.CHM(V);const pe=f.oxw();return f.KtG(pe.currentLanguage=q)}),f.YNc(16,_e,4,6,"mat-option",13),f.qZA()()()}if(2&z){const V=f.oxw();f.xp6(1),f.Q6J("ngIf",!V.data.groupId),f.xp6(1),f.Q6J("ngIf",V.data.groupId),f.xp6(2),f.s9C("placeholder",f.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),f.Q6J("formControl",V.name),f.xp6(2),f.Q6J("ngIf",V.name.invalid),f.xp6(2),f.s9C("placeholder",f.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),f.Q6J("formControl",V.emailForm),f.xp6(2),f.Q6J("ngIf",V.emailForm.invalid),f.xp6(3),f.Oqu(f.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),f.xp6(2),f.Q6J("value",V.currentLanguage),f.xp6(1),f.Q6J("ngForOf",V.languages)}}let E=(()=>{class z{constructor(V,X,q,pe,le,ye){this.dialogRef=V,this.data=X,this.registrarManager=q,this.notificator=pe,this.translate=le,this.store=ye,this.emailForm=new A.NI("",[A.kI.required,A.kI.email.bind(this)]),this.languages=["en"],this.currentLanguage="en",this.name=new A.NI("",A.kI.required),this.loading=!1}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.emailForm.invalid||this.name.invalid||(this.data.voId&&!this.data.groupId?(this.loading=!0,this.registrarManager.sendInvitation(this.emailForm.value,this.currentLanguage,this.data.voId,this.name.value).subscribe({next:()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(V=>{this.notificator.showSuccess(V),this.dialogRef.close(!0)})},error:()=>this.loading=!1})):(this.loading=!0,this.registrarManager.sendInvitationForGroup(this.emailForm.value,this.currentLanguage,this.data.voId,this.data.groupId,this.name.value).subscribe({next:()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(V=>{this.notificator.showSuccess(V),this.dialogRef.close(!0)})},error:()=>this.loading=!1})))}}return z.\u0275fac=function(V){return new(V||z)(f.Y36(e.so),f.Y36(e.WI),f.Y36(C.tk),f.Y36(M.V6),f.Y36(b.sK),f.Y36(M.d6))},z.\u0275cmp=f.Xpm({type:z,selectors:[["app-invite-member-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-italic",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"font-italic"],[3,"value"]],template:function(V,X){1&V&&(f.TgZ(0,"div")(1,"h1",0),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.YNc(4,J,1,0,"mat-spinner",1),f.YNc(5,Be,17,17,"div",2),f.TgZ(6,"div",3)(7,"button",4),f.NdJ("click",function(){return X.onCancel()}),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.TgZ(10,"button",5),f.NdJ("click",function(){return X.onSubmit()}),f._uU(11),f.ALo(12,"translate"),f.qZA()()()),2&V&&(f.Tol(X.theme),f.xp6(2),f.Oqu(f.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),f.xp6(2),f.Q6J("ngIf",X.loading),f.xp6(1),f.Q6J("ngIf",!X.loading),f.xp6(3),f.hij(" ",f.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),f.xp6(2),f.Q6J("disabled",X.emailForm.invalid||X.name.invalid||X.loading),f.xp6(1),f.hij(" ",f.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},dependencies:[D.sg,D.O5,T.ey,R.TO,R.KE,R.hX,B.Nt,A.Fj,A.JJ,A.Q7,A.oH,w.lW,e.uh,e.xY,e.H8,H.gD,O.Ou,D.gd,b.X$]}),z})()},87842:($e,he,p)=>{"use strict";p.d(he,{c:()=>q});var e=p(65412),A=p(24006),C=p(68675),M=p(54004),f=p(36769),b=p(81591),D=p(61744),T=p(94650),R=p(89383),B=p(36895),w=p(47957),H=p(3238),O=p(59549),J=p(284),ne=p(4859),G=p(51572),se=p(10266),Oe=p(71948),_e=p(98380);function Be(pe,le){1&pe&&(T.TgZ(0,"mat-radio-button",12),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&pe&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function E(pe,le){1&pe&&(T.TgZ(0,"mat-radio-button",13),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&pe&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function z(pe,le){1&pe&&(T.TgZ(0,"perun-web-apps-alert",14),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&pe&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function F(pe,le){if(1&pe){const ye=T.EpF();T.TgZ(0,"mat-option",20),T.NdJ("click",function(){const Ke=T.CHM(ye).$implicit,Ue=T.oxw(2);return T.KtG(Ue.selectedGroup=Ke)}),T.TgZ(1,"span"),T._uU(2),T.qZA()()}if(2&pe){const ye=le.$implicit;T.Q6J("value",ye),T.xp6(2),T.Oqu(ye.name)}}function V(pe,le){if(1&pe){const ye=T.EpF();T.TgZ(0,"mat-form-field",15)(1,"input",16),T.NdJ("change",function(){T.CHM(ye);const ve=T.oxw();return T.KtG(ve.selectedGroup=null)}),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"mat-autocomplete",17,18),T.YNc(5,F,3,2,"mat-option",19),T.ALo(6,"async"),T.qZA()()}if(2&pe){const ye=T.MAs(4),Ve=T.oxw();T.Q6J("@openClose","toGroup"===Ve.moveOption?"open":"closed"),T.xp6(1),T.s9C("placeholder",T.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),T.Q6J("formControl",Ve.otherGroupsCtrl)("matAutocomplete",ye),T.xp6(2),T.Q6J("displayWith",Ve.displayFn),T.xp6(2),T.Q6J("ngForOf",T.lcZ(6,8,Ve.filteredGroups))}}function X(pe,le){1&pe&&T._UZ(0,"mat-spinner",21)}let q=(()=>{class pe{constructor(ye,Ve,ve,Ke,Ue,oe,ce){this.dialogRef=ye,this.data=Ve,this.groupService=ve,this.notificator=Ke,this.translate=Ue,this.apiRequest=oe,this.authResolver=ce,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new A.p4(null,[A.kI.required.bind(this)]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(k=>this.successMessage=k),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(k=>this.errorMessage=k)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(ye=>{this.otherGroups=ye.filter(Ve=>Ve.id!==this.data.group.id&&"members"!==Ve.name&&this.canMove(Ve)),0===this.otherGroups.length&&(this.toGroupOptionDisabled=!0),(null===this.data.group.parentGroupId||!this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.data.group]))&&(this.toRootOptionDisabled=!0,this.moveOption="toGroup"),this.filteredGroups=this.otherGroupsCtrl.valueChanges.pipe((0,C.O)(""),(0,M.U)(Ve=>Ve?this._filterGroups(Ve):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(ye){return ye&&ye.name}canMove(ye){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[ye,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,ye])}close(){this.dialogRef.close()}confirm(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.groupService.moveGroupWithDestinationGroupMovingGroup(this.data.group.id,this.otherGroupsCtrl.value?this.otherGroupsCtrl.value.id:void 0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},ye=>{this.notificator.showRPCError(ye,this.errorMessage),this.dialogRef.close(!1)})}_filterGroups(ye){if("object"==typeof ye)return[];const Ve=ye.toLowerCase();return ye?this.otherGroups.filter(ve=>ve.name.toLowerCase().includes(Ve)):this.otherGroups}}return pe.\u0275fac=function(ye){return new(ye||pe)(T.Y36(e.so),T.Y36(e.WI),T.Y36(D.ff),T.Y36(b.V6),T.Y36(R.sK),T.Y36(b.F5),T.Y36(b.x4))},pe.\u0275cmp=T.Xpm({type:pe,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","class","move-options","value","toRoot",4,"ngIf"],["color","primary","value","toGroup",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","w-100 mt-2",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["color","primary","value","toGroup"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","formControl","matAutocomplete","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(ye,Ve){1&ye&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",1)(5,"p"),T._uU(6),T.ALo(7,"translate"),T.qZA(),T.TgZ(8,"mat-radio-group",2),T.NdJ("ngModelChange",function(Ke){return Ve.moveOption=Ke}),T.YNc(9,Be,3,3,"mat-radio-button",3),T.YNc(10,E,3,3,"mat-radio-button",4),T.qZA(),T.YNc(11,z,3,3,"perun-web-apps-alert",5),T.YNc(12,V,7,10,"mat-form-field",6),T.qZA(),T.YNc(13,X,1,0,"mat-spinner",7),T.TgZ(14,"div",8)(15,"button",9),T.NdJ("click",function(){return Ve.close()}),T._uU(16),T.ALo(17,"translate"),T.qZA(),T.TgZ(18,"span",10),T.ALo(19,"translate"),T.TgZ(20,"button",11),T.NdJ("click",function(){return Ve.confirm()}),T._uU(21),T.ALo(22,"translate"),T.qZA()()()()),2&ye&&(T.Tol(Ve.data.theme),T.xp6(2),T.AsE("",T.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",Ve.data.group.name,""),T.xp6(4),T.hij(" ",T.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),T.xp6(2),T.Q6J("ngModel",Ve.moveOption),T.xp6(1),T.Q6J("ngIf",!Ve.toRootOptionDisabled),T.xp6(1),T.Q6J("ngIf",!Ve.toGroupOptionDisabled),T.xp6(1),T.Q6J("ngIf",Ve.toRootOptionDisabled&&Ve.toGroupOptionDisabled),T.xp6(1),T.Q6J("ngIf",!Ve.toGroupOptionDisabled),T.xp6(1),T.Q6J("ngIf",Ve.loading),T.xp6(3),T.hij(" ",T.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),T.xp6(2),T.s9C("matTooltip",T.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),T.Q6J("matTooltipDisabled",null!==Ve.selectedGroup||"toRoot"===Ve.moveOption)("matTooltipPosition","above"),T.xp6(2),T.Q6J("disabled",(Ve.otherGroupsCtrl.invalid||null===Ve.selectedGroup)&&"toRoot"!==Ve.moveOption||Ve.loading),T.xp6(1),T.hij(" ",T.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},dependencies:[B.sg,B.O5,w.XC,w.ZL,H.ey,O.KE,J.Nt,A.Fj,A.JJ,A.Q7,A.oH,A.On,ne.lW,e.uh,e.xY,e.H8,G.Ou,se.gM,Oe.VQ,Oe.U0,_e.w,B.Ov,R.X$],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[f.BQ]}}),pe})()},58964:($e,he,p)=>{"use strict";p.d(he,{m:()=>se});var e=p(65412),A=p(61744),C=p(81591),M=p(94650),f=p(89383),b=p(36895),D=p(3238),T=p(59549),R=p(4859),B=p(84385),w=p(51572);function H(Oe,_e){1&Oe&&M._UZ(0,"mat-spinner",7)}function O(Oe,_e){if(1&Oe&&(M.TgZ(0,"mat-option",13),M._uU(1),M.qZA()),2&Oe){const Be=_e.$implicit;M.Q6J("value",Be),M.xp6(1),M.hij(" ",Be.friendlyNameParameter," ")}}function J(Oe,_e){if(1&Oe&&(M.TgZ(0,"mat-option",13),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"uppercase"),M.qZA()),2&Oe){const Be=_e.$implicit;M.Q6J("value",Be),M.xp6(1),M.hij(" ",M.lcZ(2,2,M.lcZ(3,4,"SHARED_LIB.LANGUAGES."+Be))," ")}}function ne(Oe,_e){if(1&Oe&&(M.TgZ(0,"mat-option",13),M._uU(1),M.qZA()),2&Oe){const Be=_e.$implicit;M.Q6J("value",Be),M.xp6(1),M.hij(" ",Be," ")}}function G(Oe,_e){if(1&Oe){const Be=M.EpF();M.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),M._uU(3),M.ALo(4,"translate"),M.qZA(),M.TgZ(5,"mat-select",9),M.NdJ("valueChange",function(z){M.CHM(Be);const F=M.oxw();return M.KtG(F.selectedLogin=z)}),M.YNc(6,O,2,2,"mat-option",10),M.qZA()(),M.TgZ(7,"mat-form-field")(8,"mat-label"),M._uU(9),M.ALo(10,"translate"),M.qZA(),M.TgZ(11,"mat-select",9),M.NdJ("valueChange",function(z){M.CHM(Be);const F=M.oxw();return M.KtG(F.selectedLang=z)}),M.YNc(12,J,4,6,"mat-option",10),M.qZA()(),M.TgZ(13,"mat-form-field")(14,"mat-label"),M._uU(15),M.ALo(16,"translate"),M.qZA(),M.TgZ(17,"mat-select",9),M.NdJ("valueChange",function(z){M.CHM(Be);const F=M.oxw();return M.KtG(F.selectedMail=z)}),M.YNc(18,ne,2,2,"mat-option",10),M.qZA()(),M.TgZ(19,"div",11)(20,"p",12),M._uU(21),M.ALo(22,"translate"),M.qZA(),M.TgZ(23,"p"),M._uU(24),M.qZA()()()}if(2&Oe){const Be=M.oxw();M.xp6(3),M.Oqu(M.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),M.xp6(2),M.Q6J("value",Be.selectedLogin),M.xp6(1),M.Q6J("ngForOf",Be.logins),M.xp6(3),M.Oqu(M.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),M.xp6(2),M.Q6J("value",Be.selectedLang),M.xp6(1),M.Q6J("ngForOf",Be.languages),M.xp6(3),M.Oqu(M.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),M.xp6(2),M.Q6J("value",Be.selectedMail),M.xp6(1),M.Q6J("ngForOf",Be.mails),M.xp6(3),M.Oqu(M.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),M.xp6(3),M.Oqu(Be.selectedLogin.value)}}let se=(()=>{class Oe{constructor(Be,E,z,F,V,X,q){this.dialogRef=Be,this.data=E,this.membersManagerService=z,this.attributesManagerService=F,this.store=V,this.translate=X,this.notificator=q,this.languages=this.store.getProperty("supported_languages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],X.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(pe=>this.successMessage=pe)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const Be=this.selectedLogin.friendlyNameParameter,z=window.location.href.split("/"),F=z[0]+"//"+z[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,Be,this.pwdMails.get(this.selectedMail),this.selectedLang,F).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>this.loading=!1)}getMailAttributes(){this.pwdMails.set("user:preferredMail","urn:perun:user:attribute-def:def:preferredMail"),this.pwdMails.set("member:mail","urn:perun:member:attribute-def:def:mail"),this.mails=Array.from(this.pwdMails.keys()),this.selectedMail="user:preferredMail"}}return Oe.\u0275fac=function(Be){return new(Be||Oe)(M.Y36(e.so),M.Y36(e.WI),M.Y36(A.uq),M.Y36(A.H8),M.Y36(C.d6),M.Y36(f.sK),M.Y36(C.V6))},Oe.\u0275cmp=M.Xpm({type:Oe,selectors:[["app-password-reset-request-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],[1,"member-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container member-theme","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","reset-passwd-confirm-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","member-theme"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"column-size","ml-3"],[3,"value"]],template:function(Be,E){1&Be&&(M.TgZ(0,"h1",0),M._uU(1),M.ALo(2,"translate"),M.qZA(),M.TgZ(3,"div",1),M.YNc(4,H,1,0,"mat-spinner",2),M.qZA(),M.YNc(5,G,25,19,"div",3),M.TgZ(6,"div",4)(7,"button",5),M.NdJ("click",function(){return E.onCancel()}),M._uU(8),M.ALo(9,"translate"),M.qZA(),M.TgZ(10,"button",6),M.NdJ("click",function(){return E.onSubmit()}),M._uU(11),M.ALo(12,"translate"),M.qZA()()),2&Be&&(M.xp6(1),M.Oqu(M.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),M.xp6(3),M.Q6J("ngIf",E.loading),M.xp6(1),M.Q6J("ngIf",!E.loading),M.xp6(3),M.hij(" ",M.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),M.xp6(2),M.Q6J("disabled",E.loading),M.xp6(1),M.hij(" ",M.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},dependencies:[b.sg,b.O5,D.ey,T.KE,T.hX,R.lW,e.uh,e.xY,e.H8,B.gD,w.Ou,b.gd,f.X$],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),Oe})()},53455:($e,he,p)=>{"use strict";p.d(he,{X:()=>Be});var e=p(65412),A=p(30671),C=p(81591),M=p(61744),f=p(94650),b=p(89383),D=p(36895),T=p(4859),R=p(51572),B=p(31359);function w(E,z){1&E&&f._UZ(0,"th",13)}function H(E,z){if(1&E&&(f.TgZ(0,"td",14),f._uU(1),f.qZA()),2&E){const F=z.$implicit;f.xp6(1),f.Oqu(F.id)}}function O(E,z){1&E&&f._UZ(0,"th",13)}function J(E,z){if(1&E&&(f.TgZ(0,"td",14),f._uU(1),f.ALo(2,"userFullName"),f.qZA()),2&E){const F=z.$implicit;f.xp6(1),f.Oqu(f.lcZ(2,1,F.user))}}function ne(E,z){1&E&&f._UZ(0,"tr",15)}function G(E,z){1&E&&f._UZ(0,"tr",16)}function se(E,z){if(1&E&&(f.TgZ(0,"div",4)(1,"p"),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"div",5),f._uU(5),f.ALo(6,"translate"),f.qZA(),f.TgZ(7,"table",6),f.ynx(8,7),f.YNc(9,w,1,0,"th",8),f.YNc(10,H,2,1,"td",9),f.BQk(),f.ynx(11,10),f.YNc(12,O,1,0,"th",8),f.YNc(13,J,3,3,"td",9),f.BQk(),f.YNc(14,ne,1,0,"tr",11),f.YNc(15,G,1,0,"tr",12),f.qZA()()),2&E){const F=f.oxw();f.xp6(2),f.hij(" ",f.lcZ(3,5,F.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),f.xp6(3),f.hij(" ",f.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),f.xp6(2),f.Q6J("dataSource",F.dataSource),f.xp6(7),f.Q6J("matHeaderRowDef",F.displayedColumns),f.xp6(1),f.Q6J("matRowDefColumns",F.displayedColumns)}}function Oe(E,z){1&E&&f._UZ(0,"mat-spinner",17)}function _e(E,z){if(1&E){const F=f.EpF();f.TgZ(0,"div",18)(1,"button",19),f.NdJ("click",function(){f.CHM(F);const X=f.oxw();return f.KtG(X.onCancel())}),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"button",20),f.NdJ("click",function(){f.CHM(F);const X=f.oxw();return f.KtG(X.onSubmit())}),f._uU(5),f.ALo(6,"translate"),f.qZA()()}if(2&E){const F=f.oxw();f.xp6(2),f.hij(" ",f.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),f.xp6(3),f.hij(" ",f.lcZ(6,4,F.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let Be=(()=>{class E{constructor(F,V,X,q,pe,le){this.dialogRef=F,this.data=V,this.membersService=X,this.groupService=q,this.notificator=pe,this.translate=le,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.members)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.groupId?this.groupService.removeMembers(this.data.groupId,this.data.members.map(F=>F.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(F=>F.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const F=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(F),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return E.\u0275fac=function(F){return new(F||E)(f.Y36(e.so),f.Y36(e.WI),f.Y36(M.uq),f.Y36(M.ff),f.Y36(C.V6),f.Y36(b.sK))},E.\u0275cmp=f.Xpm({type:E,selectors:[["app-remove-members-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","remove-members-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(F,V){1&F&&(f.TgZ(0,"div")(1,"h1",0),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.YNc(4,se,16,9,"div",1),f.YNc(5,Oe,1,0,"mat-spinner",2),f.YNc(6,_e,7,6,"div",3),f.qZA()),2&F&&(f.Tol(V.theme),f.xp6(2),f.Oqu(f.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),f.xp6(2),f.Q6J("ngIf",!V.loading),f.xp6(1),f.Q6J("ngIf",V.loading),f.xp6(1),f.Q6J("ngIf",!V.loading))},dependencies:[D.O5,T.lW,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,e.uh,e.xY,e.H8,R.Ou,b.X$,B.d]}),E})()},533:($e,he,p)=>{"use strict";p.d(he,{f:()=>T});var e=p(65412),A=p(30671),C=p(81591),M=p(61744),f=p(94650),b=p(89383),D=p(90995);let T=(()=>{class R{constructor(w,H,O,J,ne){this.dialogRef=w,this.data=H,this.notificator=O,this.translate=J,this.resourcesManager=ne,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,0===this.data.resources.length?this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(w=>{this.loading=!1,this.notificator.showSuccess(w),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(w){w.deleted?this.onDelete():this.onCancel()}}return R.\u0275fac=function(w){return new(w||R)(f.Y36(e.so),f.Y36(e.WI),f.Y36(C.V6),f.Y36(b.sK),f.Y36(M.xk))},R.\u0275cmp=f.Xpm({type:R,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(w,H){1&w&&(f.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),f.NdJ("deleted",function(J){return H.onSubmit(J)}),f.qZA()()),2&w&&(f.Tol(H.theme),f.xp6(1),f.Q6J("entityNames",H.dataSource)("entityType","resources")("disableForce",!0)("loading",H.loading))},dependencies:[D.e]}),R})()},11717:($e,he,p)=>{"use strict";p.d(he,{o:()=>T});var e=p(65412),A=p(30671),C=p(81591),M=p(61744),f=p(94650),b=p(89383),D=p(90995);let T=(()=>{class R{constructor(w,H,O,J,ne){this.dialogRef=w,this.data=H,this.notificator=O,this.voService=J,this.translate=ne,this.force=!1,this.displayedColumns=["name"],this.relations=[],ne.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(G=>this.successMessage=G)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.vos),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.MEMBER_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.RESOURCE_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.voService.deleteVo(this.data.vos[0].id,this.force).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(w){this.force=w.force,w.deleted?this.onDelete():this.onCancel()}}return R.\u0275fac=function(w){return new(w||R)(f.Y36(e.so),f.Y36(e.WI),f.Y36(C.V6),f.Y36(M.YF),f.Y36(b.sK))},R.\u0275cmp=f.Xpm({type:R,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(w,H){1&w&&(f.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),f.NdJ("deleted",function(J){return H.onSubmit(J)}),f.qZA()()),2&w&&(f.Tol(H.theme),f.xp6(1),f.Q6J("entityNames",H.dataSource)("entityType","organizations")("loading",H.loading)("relations",H.relations))},dependencies:[D.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),R})()},91828:($e,he,p)=>{"use strict";p.d(he,{b:()=>V});var e=p(65412),A=p(81591),C=p(61744),M=p(36895),f=p(24006),b=p(95017),D=p(64080),T=p(10036),R=p(94650),B=p(59549),w=p(284),H=p(4859),O=p(51572),J=p(98380),ne=p(38383),G=p(87488),se=p(39158),Oe=p(89383);function _e(X,q){if(1&X){const pe=R.EpF();R.TgZ(0,"mat-form-field",12)(1,"label")(2,"input",13),R.NdJ("keyup.enter",function(){R.CHM(pe);const ye=R.oxw();return R.KtG(ye.onSearchByString())}),R.ALo(3,"translate"),R.qZA()(),R.TgZ(4,"mat-error"),R._uU(5),R.ALo(6,"translate"),R.qZA()()}if(2&X){const pe=R.oxw();R.xp6(2),R.s9C("placeholder",R.lcZ(3,3,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),R.Q6J("formControl",pe.searchCtrl),R.xp6(3),R.hij(" ",R.lcZ(6,5,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," ")}}function Be(X,q){if(1&X){const pe=R.EpF();R.TgZ(0,"button",14),R.NdJ("click",function(){R.CHM(pe);const ye=R.oxw();return R.KtG(ye.onSearchByString())}),R._uU(1),R.ALo(2,"translate"),R.qZA()}if(2&X){const pe=R.oxw();R.Q6J("disabled",pe.loading),R.xp6(1),R.hij(" ",R.lcZ(2,2,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," ")}}function E(X,q){1&X&&R._UZ(0,"mat-spinner",15)}function z(X,q){if(1&X&&R._UZ(0,"perun-web-apps-members-list",16),2&X){const pe=R.oxw();R.Q6J("disableRouting",!0)("hidden",pe.loading)("disableStatusChange",!0)("members",pe.members)("selection",pe.selection)("displayedColumns",pe.displayedColumns)("tableId",pe.tableId)}}function F(X,q){1&X&&(R.TgZ(0,"perun-web-apps-alert",17),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&X&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let V=(()=>{class X{constructor(pe,le,ye,Ve,ve,Ke){this.dialogRef=pe,this.data=le,this.store=ye,this.membersService=Ve,this.notificator=ve,this.translate=Ke,this.loading=!1,this.tableId=T.US,this.expiration="never",this.searchCtrl=new f.p4("",[f.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new b.Ov(!0,[]),this.selectedSponsor=null,this.sponsorType="self"}ngOnInit(){this.theme=this.data.theme,this.serviceMemberId=this.data.serviceMemberId,this.displayedColumns=this.serviceMemberId?["checkbox","id","fullName","sponsored","email"]:["checkbox","id","fullName","status","sponsored","email"],this.serviceMemberId&&(this.searchCtrl.setValue(this.serviceMemberId),this.onSearchByString())}onCancel(){this.dialogRef.close(!1)}sponsor(pe){this.loading=!0;const le="self"===this.sponsorType?this.store.getPerunPrincipal().user:this.selectedSponsor,ye=pe.map(Ve=>Ve.id);this.membersService.sponsorMembers(ye,le.id,this.expiration).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}onSubmit(){this.loading=!0;const pe=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(pe)}setExpiration(pe){this.expiration="never"===pe?"never":(0,M.p6)(pe,"yyyy-MM-dd","en-GB")}onSearchByString(){this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.firstSearchDone=!0,this.loading=!0,this.selection.clear(),this.membersService.findCompleteRichMembersForVo(this.data.voId,[D.r.MEMBER_DEF_EXPIRATION,D.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe({next:le=>{this.members=le,this.serviceMemberId&&this.selection.toggle(le[0]),this.loading=!1},error:()=>this.loading=!1}))}}return X.\u0275fac=function(pe){return new(pe||X)(R.Y36(e.so),R.Y36(e.WI),R.Y36(A.d6),R.Y36(C.uq),R.Y36(A.V6),R.Y36(A.Te))},X.\u0275cmp=R.Xpm({type:X,selectors:[["app-sponsor-existing-member-dialog"]],decls:24,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["class","mr-2 search-field adjust-width",4,"ngIf"],["data-cy","sponsor-search-button","class","ml-auto","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"voId","voSponsors","sponsorTypeSelected","sponsorSelected"],[3,"datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","sponsor-member-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-2","search-field","adjust-width"],["data-cy","sponsor-search-input","autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["data-cy","sponsor-search-button","color","accent","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId"],["alert_type","info"]],template:function(pe,le){1&pe&&(R.TgZ(0,"div")(1,"h1",0),R._uU(2),R.ALo(3,"translate"),R.qZA(),R.TgZ(4,"div",1),R.YNc(5,_e,7,7,"mat-form-field",2),R.YNc(6,Be,3,4,"button",3),R.YNc(7,E,1,0,"mat-spinner",4),R.YNc(8,z,1,7,"perun-web-apps-members-list",5),R.YNc(9,F,3,3,"perun-web-apps-alert",6),R.TgZ(10,"app-choose-sponsor",7),R.NdJ("sponsorTypeSelected",function(Ve){return le.sponsorType=Ve})("sponsorSelected",function(Ve){return le.selectedSponsor=Ve}),R.qZA(),R.TgZ(11,"div"),R._UZ(12,"br"),R.TgZ(13,"h6"),R._uU(14),R.ALo(15,"translate"),R.qZA(),R.TgZ(16,"perun-web-apps-expiration-select",8),R.NdJ("datePicker",function(Ve){return le.setExpiration(Ve)}),R.qZA()()(),R.TgZ(17,"div",9)(18,"button",10),R.NdJ("click",function(){return le.onCancel()}),R._uU(19),R.ALo(20,"translate"),R.qZA(),R.TgZ(21,"button",11),R.NdJ("click",function(){return le.onSubmit()}),R._uU(22),R.ALo(23,"translate"),R.qZA()()()),2&pe&&(R.Tol(le.theme),R.xp6(2),R.Oqu(R.lcZ(3,15,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),R.xp6(3),R.Q6J("ngIf",!le.serviceMemberId),R.xp6(1),R.Q6J("ngIf",!le.serviceMemberId),R.xp6(1),R.Q6J("ngIf",le.loading),R.xp6(1),R.Q6J("ngIf",le.firstSearchDone),R.xp6(1),R.Q6J("ngIf",!le.firstSearchDone),R.xp6(1),R.Q6J("voId",le.data.voId)("voSponsors",le.data.voSponsors),R.xp6(4),R.Oqu(R.lcZ(15,17,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),R.xp6(5),R.hij(" ",R.lcZ(20,19,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),R.xp6(2),R.Q6J("disabled",le.loading||0===le.selection.selected.length||"other"===le.sponsorType&&!le.selectedSponsor),R.xp6(1),R.hij(" ",R.lcZ(23,21,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},dependencies:[M.O5,B.TO,B.KE,w.Nt,f.Fj,f.JJ,f.oH,H.lW,e.uh,e.xY,e.H8,O.Ou,J.w,ne.O,G.c,se.l,Oe.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),X})()},1186:($e,he,p)=>{"use strict";p.d(he,{E:()=>G});var e=p(65412),A=p(61744),C=p(94650),M=p(36895),f=p(3238),b=p(59549),D=p(284),T=p(24006),R=p(4859),B=p(84385),w=p(51572),H=p(89383);function O(se,Oe){1&se&&C._UZ(0,"mat-spinner",6)}function J(se,Oe){if(1&se){const _e=C.EpF();C.TgZ(0,"div")(1,"mat-form-field",9)(2,"mat-select",10),C.NdJ("valueChange",function(E){C.CHM(_e);const z=C.oxw(2);return C.KtG(z.embeddedState=E)}),C.ALo(3,"translate"),C.TgZ(4,"mat-option",11),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.TgZ(7,"mat-option",12),C._uU(8),C.ALo(9,"translate"),C.qZA()()()()}if(2&se){const _e=C.oxw(2);C.xp6(2),C.MGl("placeholder","",C.lcZ(3,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),C.Q6J("value",_e.embeddedState),C.xp6(3),C.Oqu(C.lcZ(6,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),C.xp6(3),C.Oqu(C.lcZ(9,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function ne(se,Oe){if(1&se){const _e=C.EpF();C.TgZ(0,"div",7)(1,"mat-form-field")(2,"input",8),C.NdJ("ngModelChange",function(E){C.CHM(_e);const z=C.oxw();return C.KtG(z.moduleName=E)}),C.ALo(3,"translate"),C.qZA()(),C.TgZ(4,"mat-form-field",9)(5,"mat-select",10),C.NdJ("valueChange",function(E){C.CHM(_e);const z=C.oxw();return C.KtG(z.initialState=E)}),C.ALo(6,"translate"),C.TgZ(7,"mat-option",11),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"mat-option",12),C._uU(11),C.ALo(12,"translate"),C.qZA()()(),C.TgZ(13,"mat-form-field",9)(14,"mat-select",10),C.NdJ("valueChange",function(E){C.CHM(_e);const z=C.oxw();return C.KtG(z.extensionState=E)}),C.ALo(15,"translate"),C.TgZ(16,"mat-option",11),C._uU(17),C.ALo(18,"translate"),C.qZA(),C.TgZ(19,"mat-option",12),C._uU(20),C.ALo(21,"translate"),C.qZA()()(),C.YNc(22,J,10,10,"div",13),C.qZA()}if(2&se){const _e=C.oxw();C.xp6(2),C.s9C("placeholder",C.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),C.Q6J("ngModel",_e.moduleName),C.xp6(3),C.MGl("placeholder","",C.lcZ(6,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),C.Q6J("value",_e.initialState),C.xp6(3),C.Oqu(C.lcZ(9,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),C.xp6(3),C.Oqu(C.lcZ(12,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),C.xp6(3),C.MGl("placeholder","",C.lcZ(15,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),C.Q6J("value",_e.extensionState),C.xp6(3),C.Oqu(C.lcZ(18,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),C.xp6(3),C.Oqu(C.lcZ(21,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),C.xp6(2),C.Q6J("ngIf","group"===_e.entity&&_e.autoRegistrationEnabled)}}let G=(()=>{class se{constructor(_e,Be,E){this.dialogRef=_e,this.data=Be,this.registrarManager=E,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.applicationForm=this.data.applicationForm,this.moduleName=this.applicationForm.moduleClassName,this.initialState=this.applicationForm.automaticApproval?"auto":"manual",this.extensionState=this.applicationForm.automaticApprovalExtension?"auto":"manual",this.embeddedState=this.applicationForm.automaticApprovalEmbedded?"auto":"manual",this.entity=this.data.entity,this.autoRegistrationEnabled=this.data.autoRegistrationEnabled}onCancel(){this.dialogRef.close()}submit(){this.loading=!0,this.applicationForm.moduleClassName=this.moduleName,this.applicationForm.automaticApproval="auto"===this.initialState,this.applicationForm.automaticApprovalExtension="auto"===this.extensionState,this.applicationForm.automaticApprovalEmbedded="auto"===this.embeddedState,this.registrarManager.updateForm({form:this.applicationForm}).subscribe(_e=>{this.dialogRef.close(_e)},()=>this.loading=!1)}}return se.\u0275fac=function(_e){return new(_e||se)(C.Y36(e.so),C.Y36(e.WI),C.Y36(A.tk))},se.\u0275cmp=C.Xpm({type:se,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","placeholder","ngModelChange"],[1,"w-100"],["disableOptionCentering","",3,"value","placeholder","valueChange"],["value","auto"],["value","manual"],[4,"ngIf"]],template:function(_e,Be){1&_e&&(C.TgZ(0,"div")(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,O,1,0,"mat-spinner",1),C.YNc(5,ne,23,25,"div",2),C.TgZ(6,"div",3)(7,"button",4),C.NdJ("click",function(){return Be.onCancel()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return Be.submit()}),C._uU(11),C.ALo(12,"translate"),C.qZA()()()),2&_e&&(C.Tol(Be.theme),C.xp6(2),C.Oqu(C.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),C.xp6(2),C.Q6J("ngIf",Be.loading),C.xp6(1),C.Q6J("ngIf",!Be.loading),C.xp6(3),C.hij(" ",C.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),C.xp6(2),C.Q6J("disabled",Be.loading),C.xp6(1),C.hij(" ",C.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},dependencies:[M.O5,f.ey,b.KE,D.Nt,T.Fj,T.JJ,T.On,R.lW,e.uh,e.xY,e.H8,B.gD,w.Ou,H.X$]}),se})()},90820:($e,he,p)=>{"use strict";p.d(he,{_:()=>bn});var e=p(94650),A=p(61744),C=p(9244),M=p(65412),f=p(81591),b=p(95017),D=p(19516),T=p(37433),R=p(36895),B=p(4859),w=p(51572),H=p(87831),O=p(25788),J=p(7434),ne=p(62109),G=p(74010),se=p(89593),Oe=p(89383);let _e=(()=>{class Tt{constructor(){this.role=null,this.disableAutoSelect=!1,this.roleSelected=new e.vpe,this.nameFunction=Ge=>Ge.displayName,this.secondaryTextFunction=()=>null}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)},Tt.\u0275cmp=e.Xpm({type:Tt,selectors:[["perun-web-apps-role-search-select"]],inputs:{role:"role",roles:"roles",disableAutoSelect:"disableAutoSelect"},outputs:{roleSelected:"roleSelected"},decls:4,vars:15,consts:[[3,"entity","entities","disableAutoSelect","mainTextFunction","searchFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(Ge,wt){1&Ge&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(ln){return wt.roleSelected.emit(ln)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&Ge&&e.Q6J("entity",wt.role)("entities",wt.roles)("disableAutoSelect",wt.disableAutoSelect)("mainTextFunction",wt.nameFunction)("searchFunction",wt.nameFunction)("secondaryTextFunction",wt.secondaryTextFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.SELECT_ROLE"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.FIND_ROLE"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.NO_ROLE_FOUND"))},dependencies:[se.i,Oe.X$]}),Tt})();var Be=p(56575);let E=(()=>{class Tt{transform(Ge,wt,Ft){return Ge.filter(ln=>!wt.get(Ft.roleName)?.get(Ft.primaryObject)?.includes(ln.id))}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)},Tt.\u0275pipe=e.Yjl({name:"unassignedRole",type:Tt,pure:!0}),Tt})(),z=(()=>{class Tt{transform(Ge){return Ge.map(wt=>wt.facility)}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)},Tt.\u0275pipe=e.Yjl({name:"extractFacility",type:Tt,pure:!0}),Tt})();var F=p(48524);function V(Tt,Dt){1&Tt&&e._UZ(0,"mat-spinner",5)}function X(Tt,Dt){1&Tt&&e._UZ(0,"mat-spinner",14)}function q(Tt,Dt){if(1&Tt){const Ge=e.EpF();e.TgZ(0,"perun-web-apps-immediate-filter",15),e.NdJ("filter",function(Ft){e.CHM(Ge);const ln=e.oxw(2);return e.KtG(ln.filterValue=Ft)}),e.qZA()}2&Tt&&e.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_OBJECTS_LIST.FILTER")}const pe=function(){return["checkbox","id","shortName","name"]};function le(Tt,Dt){if(1&Tt&&(e._UZ(0,"perun-web-apps-vos-list",16),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities")),2&Tt){const Ge=e.oxw(2);e.Q6J("filterValue",Ge.filterValue)("vos",e.Dn7(1,5,e.xi3(2,9,Ge.vos,Ge.selectedRule),Ge.roles,Ge.selectedRule))("displayedColumns",e.DdM(12,pe))("selection",Ge.selected)("disableRouting",!0)}}const ye=function(){return["select","id","vo","name","description"]};function Ve(Tt,Dt){if(1&Tt&&(e._UZ(0,"perun-web-apps-groups-list",17),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities")),2&Tt){const Ge=e.oxw(2);e.Q6J("groups",e.Dn7(1,5,e.xi3(2,9,Ge.groups,Ge.selectedRule),Ge.roles,Ge.selectedRule))("displayedColumns",e.DdM(12,ye))("selection",Ge.selected)("filter",Ge.filterValue)("disableRouting",!0)}}const ve=function(){return["select","id","name","description"]};function Ke(Tt,Dt){if(1&Tt&&(e._UZ(0,"perun-web-apps-facilities-list",18),e.ALo(1,"toEnrichedFacility"),e.ALo(2,"unassignedRole"),e.ALo(3,"manageableEntities"),e.ALo(4,"extractFacility")),2&Tt){const Ge=e.oxw(2);e.Q6J("filterValue",Ge.filterValue)("facilities",e.lcZ(1,5,e.Dn7(2,7,e.xi3(3,11,e.lcZ(4,14,Ge.facilities),Ge.selectedRule),Ge.roles,Ge.selectedRule)))("displayedColumns",e.DdM(16,ve))("selection",Ge.selectedFacilities)("disableRouting",!0)}}const Ue=function(){return["select","id","name"]};function oe(Tt,Dt){if(1&Tt&&(e._UZ(0,"perun-web-apps-resources-list",19),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities")),2&Tt){const Ge=e.oxw(2);e.Q6J("filterValue",Ge.filterValue)("resources",e.Dn7(1,5,e.xi3(2,9,Ge.resources,Ge.selectedRule),Ge.roles,Ge.selectedRule))("displayedColumns",e.DdM(12,Ue))("selection",Ge.selected)("disableRouting",!0)}}function ce(Tt,Dt){if(1&Tt){const Ge=e.EpF();e.TgZ(0,"div",6),e.YNc(1,X,1,0,"mat-spinner",7),e.TgZ(2,"perun-web-apps-role-search-select",8),e.NdJ("roleSelected",function(Ft){e.CHM(Ge);const ln=e.oxw();return e.KtG(ln.resetSelection(Ft))}),e.qZA(),e.YNc(3,q,1,1,"perun-web-apps-immediate-filter",9),e.YNc(4,le,3,13,"perun-web-apps-vos-list",10),e.YNc(5,Ve,3,13,"perun-web-apps-groups-list",11),e.YNc(6,Ke,5,17,"perun-web-apps-facilities-list",12),e.YNc(7,oe,3,13,"perun-web-apps-resources-list",13),e.qZA()}if(2&Tt){const Ge=e.oxw();e.xp6(1),e.Q6J("ngIf",Ge.loading),e.xp6(1),e.Q6J("roles",Ge.rules),e.xp6(1),e.Q6J("ngIf",null==Ge.selectedRule?null:Ge.selectedRule.primaryObject),e.xp6(1),e.Q6J("ngIf",!Ge.loading&&"Vo"===(null==Ge.selectedRule?null:Ge.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf",!Ge.loading&&"Group"===(null==Ge.selectedRule?null:Ge.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf",!Ge.loading&&"Facility"===(null==Ge.selectedRule?null:Ge.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf",!Ge.loading&&"Resource"===(null==Ge.selectedRule?null:Ge.selectedRule.primaryObject))}}function k(Tt,Dt){if(1&Tt){const Ge=e.EpF();e.TgZ(0,"div",20)(1,"button",21),e.NdJ("click",function(){e.CHM(Ge);const Ft=e.oxw();return e.KtG(Ft.cancel())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",22),e.NdJ("click",function(){e.CHM(Ge);const Ft=e.oxw();return e.KtG(Ft.addRole())}),e._uU(5),e.ALo(6,"translate"),e.qZA()()}if(2&Tt){const Ge=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,3,"DIALOGS.ADD_ROLE.CANCEL")," "),e.xp6(2),e.Q6J("disabled",null===Ge.selectedRule||"Facility"===Ge.selectedRule.primaryObject&&Ge.selectedFacilities.isEmpty()||Ge.selectedRule.primaryObject&&"Facility"!==Ge.selectedRule.primaryObject&&Ge.selected.isEmpty()),e.xp6(1),e.hij(" ",e.lcZ(6,5,"DIALOGS.ADD_ROLE.ADD")," ")}}function N(Tt,Dt){1&Tt&&(e.TgZ(0,"div",23),e._UZ(1,"mat-spinner"),e.qZA())}let be=(()=>{class Tt{constructor(Ge,wt,Ft,ln,Cn){this.dialogRef=Ge,this.voService=wt,this.groupService=Ft,this.facilityService=ln,this.resourceService=Cn,this.loading=!1,this.submitForm=new e.vpe,this.selected=new b.Ov(!0,[]),this.selectedFacilities=new b.Ov(!0,[]),this.filterValue="",this.vos=[],this.groups=[],this.facilities=[],this.resources=[]}ngOnInit(){this.selectedRule=this.rules[0],this.loadObjects()}loadObjects(){this.rules.some(Ge=>"Facility"===Ge.primaryObject)&&this.facilityService.getAllFacilities().subscribe({next:Ge=>this.facilities=(new D.E7).transform(Ge)}),this.rules.some(Ge=>"Vo"===Ge.primaryObject)&&this.voService.getMyVos().subscribe({next:Ge=>this.vos=Ge}),this.groupService.getAllGroupsFromAllVos().subscribe({next:Ge=>this.groups=Ge}),this.resourceService.getAllResources().subscribe({next:Ge=>this.resources=Ge})}cancel(){this.dialogRef.close(!1)}addRole(){this.submitForm.emit("Facility"===this.selectedRule.primaryObject?{role:this.selectedRule,entities:this.selectedFacilities.selected.map(Ge=>Ge.facility)}:{role:this.selectedRule,entities:this.selected.selected})}resetSelection(Ge){this.selectedRule=Ge,this.selected.clear(),this.selectedFacilities.clear(),this.filterValue="",this.loadObjects(),this.filterComponent&&this.filterComponent.formControl.setValue("")}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)(e.Y36(M.so),e.Y36(A.YF),e.Y36(A.ff),e.Y36(A.IQ),e.Y36(A.xk))},Tt.\u0275cmp=e.Xpm({type:Tt,selectors:[["app-add-role-dialog"]],viewQuery:function(Ge,wt){if(1&Ge&&e.Gf(T.Ld,5),2&Ge){let Ft;e.iGM(Ft=e.CRH())&&(wt.filterComponent=Ft.first)}},inputs:{loading:"loading",rules:"rules",roles:"roles",theme:"theme"},outputs:{submitForm:"submitForm"},decls:10,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["spinner",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["class","ml-auto mr-auto",4,"ngIf"],[3,"roles","roleSelected"],["class","font-size-1rem",3,"placeholder","filter",4,"ngIf"],[3,"filterValue","vos","displayedColumns","selection","disableRouting",4,"ngIf"],[3,"groups","displayedColumns","selection","filter","disableRouting",4,"ngIf"],[3,"filterValue","facilities","displayedColumns","selection","disableRouting",4,"ngIf"],[3,"filterValue","resources","displayedColumns","selection","disableRouting",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"font-size-1rem",3,"placeholder","filter"],[3,"filterValue","vos","displayedColumns","selection","disableRouting"],[3,"groups","displayedColumns","selection","filter","disableRouting"],[3,"filterValue","facilities","displayedColumns","selection","disableRouting"],[3,"filterValue","resources","displayedColumns","selection","disableRouting"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"spinner-container"]],template:function(Ge,wt){1&Ge&&(e.TgZ(0,"div")(1,"div",0)(2,"h1",0),e._uU(3),e.ALo(4,"translate"),e.qZA()(),e.YNc(5,V,1,0,"mat-spinner",1),e.YNc(6,ce,8,7,"div",2),e.YNc(7,k,7,7,"div",3),e.qZA(),e.YNc(8,N,2,0,"ng-template",null,4,e.W1O)),2&Ge&&(e.Tol(wt.theme),e.xp6(3),e.Oqu(e.lcZ(4,7,"DIALOGS.ADD_ROLE.TITLE")),e.xp6(2),e.Q6J("ngIf",wt.loading),e.xp6(1),e.Q6J("ngIf",!wt.loading),e.xp6(1),e.Q6J("ngIf",!wt.loading))},dependencies:[R.O5,B.lW,M.uh,M.xY,M.H8,w.Ou,H.Z,O.W,J.L,ne.C,G.X,_e,Oe.X$,Be.G,E,z,F.E]}),Tt})(),W=(()=>{class Tt{constructor(Ge,wt,Ft,ln,Cn,gn){this.dialogRef=Ge,this.data=wt,this.authResolver=Ft,this.authzService=ln,this.notificator=Cn,this.translate=gn,this.loading=!1,this.rules=this.authResolver.getAssignableRoleRules("GROUP")}addRole(Ge){this.loading=!0,Ge.entities&&0!==Ge.entities.length?this.authzService.setRoleWithGroupComplementaryObjects({role:Ge.role.roleName,authorizedGroup:this.data.entityId,complementaryObjects:Ge.entities}).subscribe({next:()=>{this.showSuccess(Ge.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}}):this.authzService.setRoleForGroup({role:Ge.role.roleName,authorizedGroup:this.data.entityId}).subscribe({next:()=>{this.showSuccess(Ge.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}showSuccess(Ge){this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_ROLE.SUCCESS",{role:Ge}))}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)(e.Y36(M.so),e.Y36(M.WI),e.Y36(f.x4),e.Y36(A.Ct),e.Y36(f.V6),e.Y36(f.Te))},Tt.\u0275cmp=e.Xpm({type:Tt,selectors:[["app-add-group-role-dialog"]],decls:1,vars:4,consts:[[3,"loading","rules","roles","theme","submitForm"]],template:function(Ge,wt){1&Ge&&(e.TgZ(0,"app-add-role-dialog",0),e.NdJ("submitForm",function(ln){return wt.addRole(ln)}),e.qZA()),2&Ge&&e.Q6J("loading",wt.loading)("rules",wt.rules)("roles",wt.data.roles)("theme","group-theme")},dependencies:[be]}),Tt})(),ue=(()=>{class Tt{constructor(Ge,wt,Ft,ln,Cn,gn,zn){this.dialogRef=Ge,this.data=wt,this.authResolver=Ft,this.authzService=ln,this.notificator=Cn,this.translate=gn,this.displayedRole=zn,this.loading=!1,this.rules=this.authResolver.getAssignableRoleRules("USER")}addRole(Ge){this.loading=!0,Ge.entities&&0!==Ge.entities.length?this.authzService.setRoleWithUserComplementaryObjects({role:Ge.role.roleName,user:this.data.entityId,complementaryObjects:Ge.entities}).subscribe({next:()=>{this.showSuccess(Ge.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}}):this.authzService.setRoleForUser({role:Ge.role.roleName,user:this.data.entityId}).subscribe({next:()=>{this.showSuccess(Ge.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}showSuccess(Ge){this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_ROLE.SUCCESS",{role:Ge}))}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)(e.Y36(M.so),e.Y36(M.WI),e.Y36(f.x4),e.Y36(A.Ct),e.Y36(f.V6),e.Y36(f.Te),e.Y36(D.i2))},Tt.\u0275cmp=e.Xpm({type:Tt,selectors:[["app-add-user-role-dialog"]],features:[e._Bn([D.i2])],decls:1,vars:4,consts:[[3,"loading","rules","theme","roles","submitForm"]],template:function(Ge,wt){1&Ge&&(e.TgZ(0,"app-add-role-dialog",0),e.NdJ("submitForm",function(ln){return wt.addRole(ln)}),e.qZA()),2&Ge&&e.Q6J("loading",wt.loading)("rules",wt.rules)("theme","user-theme")("roles",wt.data.roles)},dependencies:[be]}),Tt})();var Me=p(21029),ot=p(61135),je=p(39646),ut=p(86099),tt=p(48382),vt=p(63900),ee=p(18505),nt=p(68675),Ae=p(54004),Ee=p(97392),ge=p(37084),we=p(10266),Ne=p(73546),Ce=p(98380),fe=p(38383),r=p(73358),u=p(64877),g=p(23123);function v(Tt,Dt){if(1&Tt){const Ge=e.EpF();e.TgZ(0,"button",6),e.NdJ("click",function(){e.CHM(Ge);const Ft=e.oxw();return e.KtG(Ft.addRole())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&Tt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.ADD"),"\n"))}function h(Tt,Dt){1&Tt&&e._UZ(0,"mat-spinner",7)}const a=function(){return["Vo","Group","Resource"]};function i(Tt,Dt){if(1&Tt){const Ge=e.EpF();e.TgZ(0,"span",16),e.ALo(1,"translate"),e.TgZ(2,"button",17),e.NdJ("click",function(){e.CHM(Ge);const Ft=e.oxw(2).$implicit,ln=e.oxw(2);return e.KtG(ln.openConfirmDialog(Ft))}),e._uU(3),e.ALo(4,"translate"),e.qZA()()}if(2&Tt){const Ge=e.oxw(2).$implicit,wt=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,4,"ROLES.REMOVE_DISABLED_TOOLTIP")),e.Q6J("matTooltipDisabled",0===wt.selection.selected.length&&0===wt.selectedFacilities.selected.length||!wt.disableRemove),e.xp6(2),e.Q6J("disabled","Facility"===Ge.primaryObject&&(0===wt.selectedFacilities.selected.length||wt.disableRemove)||e.DdM(8,a).includes(Ge.primaryObject)&&(0===wt.selection.selected.length||wt.disableRemove)),e.xp6(1),e.hij(" ",e.lcZ(4,6,"ROLES.REMOVE")," ")}}function t(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ge=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ge.roleName+"_VOS_"+wt.entityType)," ")}}const n=function(){return["id","name","shortName"]},o=function(){return["checkbox","id","name","shortName"]};function s(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,t,3,3,"div",3),e._UZ(2,"perun-web-apps-vos-list",22),e.ALo(3,"async"),e.qZA()),2&Tt){const Ge=e.oxw(4).$implicit,wt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",wt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===Ge.roleName?e.DdM(6,n):e.DdM(7,o))("vos",e.lcZ(3,4,wt.vos))("selection",wt.selection)}}function l(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ge=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ge.roleName+"_GROUPS_"+wt.entityType)," ")}}const d=function(){return["id","vo","name","description"]},c=function(){return["select","id","vo","name","description"]};function S(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,l,3,3,"div",3),e._UZ(2,"perun-web-apps-groups-list",23),e.ALo(3,"async"),e.qZA()),2&Tt){const Ge=e.oxw(4).$implicit,wt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",wt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===Ge.roleName?e.DdM(6,d):e.DdM(7,c))("groups",e.lcZ(3,4,wt.groups))("selection",wt.selection)}}function $(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ge=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ge.roleName+"_RESOURCES_"+wt.entityType)," ")}}const ht=function(){return["id","name","vo","facility","description"]},ze=function(){return["select","id","name","vo","facility","description"]};function et(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,$,3,3,"div",3),e._UZ(2,"perun-web-apps-resources-list",24),e.ALo(3,"async"),e.qZA()),2&Tt){const Ge=e.oxw(4).$implicit,wt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",wt.showDescription),e.xp6(1),e.Q6J("resources",e.lcZ(3,5,wt.resources))("displayedColumns","MEMBERSHIP"===Ge.roleName?e.DdM(7,ht):e.DdM(8,ze))("routingVo",!0)("selection",wt.selection)}}function te(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ge=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ge.roleName+"_FACILITIES_"+wt.entityType)," ")}}const Le=function(){return["id","name","description"]},Ie=function(){return["select","id","name","description"]};function De(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,te,3,3,"div",3),e._UZ(2,"perun-web-apps-facilities-list",25),e.ALo(3,"async"),e.qZA()),2&Tt){const Ge=e.oxw(4).$implicit,wt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",wt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===Ge.roleName?e.DdM(6,Le):e.DdM(7,Ie))("facilities",e.lcZ(3,4,wt.facilities))("selection",wt.selectedFacilities)}}function xe(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ge=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ge.roleName+"_MEMBERS_"+wt.entityType)," ")}}const ie=function(){return["id","fullName","sponsored"]};function Te(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,xe,3,3,"div",3),e._UZ(2,"perun-web-apps-members-list",26),e.ALo(3,"async"),e.qZA()),2&Tt){const Ge=e.oxw(6);e.xp6(1),e.Q6J("ngIf",Ge.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(5,ie))("members",e.lcZ(3,3,Ge.members))}}function st(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ge=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ge.roleName+"_USERS_"+wt.entityType)," ")}}const Qe=function(){return["user","id","name"]};function Et(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,st,3,3,"div",3),e._UZ(2,"app-users-list",27),e.ALo(3,"async"),e.qZA()),2&Tt){const Ge=e.oxw(6);e.xp6(1),e.Q6J("ngIf",Ge.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(6,Qe))("disableRouting",!0)("users",e.lcZ(3,4,Ge.users))}}function ke(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e.YNc(1,s,4,8,"div",20),e.YNc(2,S,4,8,"div",20),e.YNc(3,et,4,9,"div",20),e.YNc(4,De,4,8,"div",20),e.YNc(5,Te,4,6,"div",20),e.YNc(6,Et,4,7,"div",20),e.qZA()),2&Tt){const Ge=e.oxw(3).$implicit;e.xp6(1),e.Q6J("ngIf","Vo"===Ge.primaryObject||"MEMBERSHIP"===Ge.roleName),e.xp6(1),e.Q6J("ngIf","Group"===Ge.primaryObject||"MEMBERSHIP"===Ge.roleName),e.xp6(1),e.Q6J("ngIf","Resource"===Ge.primaryObject||"MEMBERSHIP"===Ge.roleName),e.xp6(1),e.Q6J("ngIf","Facility"===Ge.primaryObject||"MEMBERSHIP"===Ge.roleName),e.xp6(1),e.Q6J("ngIf","SPONSORSHIP"===Ge.roleName),e.xp6(1),e.Q6J("ngIf","SELF"===Ge.roleName)}}function at(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",18),e.YNc(1,ke,7,6,"div",19),e.qZA()),2&Tt){const Ge=e.oxw(4),wt=e.MAs(8);e.xp6(1),e.Q6J("perunWebAppsLoader",Ge.loading)("perunWebAppsLoaderIndicator",wt)}}function It(Tt,Dt){if(1&Tt&&(e.YNc(0,i,5,9,"span",14),e.YNc(1,at,2,2,"div",15)),2&Tt){const Ge=e.oxw().$implicit,wt=e.MAs(1);e.Q6J("ngIf","SELF"!==Ge.roleName&&"MEMBERSHIP"!==Ge.roleName&&"SPONSORSHIP"!==Ge.roleName),e.xp6(1),e.Q6J("ngIf",wt.expanded)}}function jt(Tt,Dt){if(1&Tt){const Ge=e.EpF();e.TgZ(0,"mat-expansion-panel",9,10),e.NdJ("opened",function(){const ln=e.CHM(Ge).$implicit,Cn=e.oxw(2);return e.KtG(Cn.selectedRole.next(ln))})("closed",function(){e.CHM(Ge);const Ft=e.oxw(2);return e.KtG(Ft.selection.clear())}),e.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title"),e._UZ(4,"mat-icon",11),e.TgZ(5,"p",12),e._uU(6),e.ALo(7,"displayedRole"),e.qZA()()(),e.YNc(8,It,2,2,"ng-template",13),e.qZA()}if(2&Tt){const Ge=Dt.$implicit;e.xp6(6),e.Oqu(e.lcZ(7,1,Ge))}}function an(Tt,Dt){if(1&Tt&&(e.TgZ(0,"mat-accordion"),e.YNc(1,jt,9,3,"mat-expansion-panel",8),e.qZA()),2&Tt){const Ge=e.oxw();e.xp6(1),e.Q6J("ngForOf",Ge.allRules)}}function Kt(Tt,Dt){1&Tt&&(e.TgZ(0,"perun-web-apps-alert",28),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.NO_ROLES"),"\n"))}function on(Tt,Dt){1&Tt&&(e.TgZ(0,"div",29),e._UZ(1,"mat-spinner"),e.qZA())}let bn=(()=>{class Tt{constructor(Ge,wt,Ft,ln,Cn,gn,zn,bt,Lt,pt,it,St,j){this.authzResolverService=Ge,this.usersService=wt,this.vosService=Ft,this.facilitiesService=ln,this.resourcesService=Cn,this.groupsService=gn,this.membersService=zn,this.dialog=bt,this.notification=Lt,this.translate=pt,this.rolePipe=it,this.guiAuthResolver=St,this.manageableEntities=j,this.reload=new e.vpe,this.startLoading=new e.vpe,this.selection=new b.Ov(!0,[]),this.selectedFacilities=new b.Ov(!0,[]),this.assignableRules=[],this.allRules=[],this.disableRemove=!1,this.selectedRole=new ot.X(null),this.groups=this.selectedRole.pipe((0,vt.w)(He=>{this.loading=!0;const mt=this.roles.get(He.roleName).get("Group");return mt?.length?this.groupsService.getGroupsByIds(mt):(0,je.of)([])}),(0,ee.b)(()=>this.loading=!1),(0,nt.O)([])),this.vos=this.selectedRole.pipe((0,vt.w)(He=>{this.loading=!0;const mt=this.roles.get(He.roleName).get("Vo");return mt?.length?this.vosService.getVosByIds(mt):(0,je.of)([])}),(0,ee.b)(()=>this.loading=!1),(0,nt.O)([])),this.facilities=this.selectedRole.pipe((0,vt.w)(He=>{this.loading=!0;const mt=this.roles.get(He.roleName).get("Facility");return mt?.length?this.facilitiesService.getFacilitiesByIds(mt):(0,je.of)([])}),(0,Ae.U)(He=>He.map(mt=>({facility:mt}))),(0,ee.b)(()=>this.loading=!1),(0,nt.O)([])),this.resources=this.selectedRole.pipe((0,vt.w)(He=>{this.loading=!0;const mt=this.roles.get(He.roleName).get("Resource");return mt?.length?this.resourcesService.getRichResourcesByIds(mt):(0,je.of)([])}),(0,ee.b)(()=>this.loading=!1),(0,nt.O)([])),this.members=this.selectedRole.pipe((0,vt.w)(He=>this.membersService.getRichMembersByIds(this.roles.get(He.roleName).get("Member"))),(0,ee.b)(()=>this.loading=!1),(0,nt.O)([])),this.users=this.selectedRole.pipe((0,vt.w)(He=>this.usersService.getRichUsersByIds([this.entityId].concat(this.roles.get(He.roleName).get("User")))),(0,ee.b)(()=>this.loading=!1),(0,nt.O)([])),this._roles=new Map}get roles(){return this._roles}set roles(Ge){this._roles=Ge,this.allRules=this.guiAuthResolver.getAllRules().filter(wt=>this._roles.has(wt.roleName))}ngOnInit(){this.assignableRules=this.guiAuthResolver.getAssignableRoleRules("GROUP"===this.entityType?"GROUP":"USER"),this.selection.changed.subscribe(Ge=>{const wt=Ge.source.selected.map(ln=>{if("beanName"in ln)return ln}),Ft=this.manageableEntities.transform(wt,this.selectedRole.getValue()).length;this.disableRemove=Ge.source.selected.length!==Ft}),this.selectedFacilities.changed.subscribe(Ge=>{const wt=Ge.source.selected.map(ln=>{if("facility"in ln)return ln.facility}),Ft=this.manageableEntities.transform(wt,this.selectedRole.getValue()).length;this.disableRemove=Ge.source.selected.length!==Ft})}addRole(){const Ge=(0,C.kZ)();let wt;Ge.width="650px",Ge.data={entityId:this.entityId,roles:this.roles},wt=this.dialog.open("GROUP"===this.entityType?W:ue,Ge),wt.afterClosed().subscribe({next:Ft=>{Ft&&(this.startLoading.emit(),this.refresh())}})}openConfirmDialog(Ge){const wt=(0,C.kZ)(),Ft=this.getItems();wt.width="550px",wt.data={theme:"GROUP"===this.entityType?"group-theme":"user-theme",title:"ROLES.REMOVE",description:this.selectedRole.getValue().primaryObject?this.translate.instant("ROLES.REMOVE_DESC_WITH_OBJECTS",{role:this.rolePipe.transform(Ge),count:Ft.length}):this.translate.instant("ROLES.REMOVE_DESC",{role:this.rolePipe.transform(Ge)}),items:Ft,alert:!1,type:"remove",showAsk:!0},this.dialog.open(Me.Ts,wt).afterClosed().subscribe({next:Cn=>{Cn&&(this.startLoading.emit(),Ge.primaryObject?this.removeRoleWithComplementaryObject(Ge):this.removeRole(Ge))}})}getItems(){return this.selectedRole.getValue().primaryObject?"Facility"===this.selectedRole.getValue().primaryObject?this.selectedFacilities.selected.map(Ge=>Ge.facility.name):this.selection.selected.map(Ge=>Ge.name):[]}removeRole(Ge){(0,je.of)(this.entityType).pipe((0,ut.z)(wt=>(0,tt.s)(()=>"GROUP"===wt,this.authzResolverService.unsetRoleForGroup({role:Ge.roleName,authorizedGroup:this.entityId}),this.authzResolverService.unsetRoleForUser({role:Ge.roleName,user:this.entityId})))).subscribe({next:()=>{this.showSuccess(Ge),this.refresh()},error:()=>{this.selection.clear(),this.outerLoading=!1}})}removeRoleWithComplementaryObject(Ge){let wt;0!==this.selection.selected.length&&"beanName"in this.selection.selected[0]?(wt=this.selection.selected,"RichResource"===wt[0].beanName&&(wt=wt.map(Ft=>this.parseResource(Ft)))):0!==this.selectedFacilities.selected.length&&"facility"in this.selectedFacilities.selected[0]&&(wt=this.selectedFacilities.selected.map(Ft=>this.parseFacility(Ft))),(0,je.of)(this.entityType).pipe((0,ut.z)(Ft=>(0,tt.s)(()=>"GROUP"===Ft,this.authzResolverService.unsetRoleWithGroupComplementaryObjects({role:Ge.roleName,complementaryObjects:wt,authorizedGroup:this.entityId}),this.authzResolverService.unsetRoleWithUserComplementaryObjects({role:Ge.roleName,complementaryObjects:wt,user:this.entityId})))).subscribe({next:()=>{this.showSuccess(Ge),this.refresh()},error:()=>{this.selection.clear(),this.outerLoading=!1}})}showSuccess(Ge){this.notification.showSuccess(this.translate.instant("ROLES.REMOVE_SUCCESS",{role:this.rolePipe.transform(Ge)}))}refresh(){this.selection.clear(),setTimeout(()=>{this.reload.emit(),this.outerLoading=!1},500)}parseFacility(Ge){return Ge.facility}parseResource(Ge){return{beanName:"Resource",id:Ge.id,description:Ge.description,createdByUid:Ge.createdByUid,createdAt:Ge.createdAt,facilityId:Ge.facilityId,createdBy:Ge.createdBy,modifiedAt:Ge.modifiedAt,modifiedBy:Ge.modifiedBy,name:Ge.name,uuid:Ge.uuid,voId:Ge.voId,modifiedByUid:Ge.modifiedByUid}}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)(e.Y36(A.Ct),e.Y36(A.Fv),e.Y36(A.YF),e.Y36(A.IQ),e.Y36(A.xk),e.Y36(A.ff),e.Y36(A.uq),e.Y36(M.uw),e.Y36(f.V6),e.Y36(f.Te),e.Y36(D.i2),e.Y36(f.x4),e.Y36(D.GY))},Tt.\u0275cmp=e.Xpm({type:Tt,selectors:[["app-perun-web-apps-roles-page"]],inputs:{outerLoading:"outerLoading",showDescription:"showDescription",entityId:"entityId",entityType:"entityType",roles:"roles"},outputs:{reload:"reload",startLoading:"startLoading"},features:[e._Bn([D.i2,D.GY])],decls:9,vars:7,consts:[[1,"page-subtitle","d-flex"],["mat-flat-button","","color","accent","class","mb-3 mr-2",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],["spinner",""],["mat-flat-button","","color","accent",1,"mb-3","mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"opened","closed",4,"ngFor","ngForOf"],[3,"opened","closed"],["panel",""],["mat-card-avatar","","svgIcon","perun-user-dark",1,"mr-2"],[1,"mt-auto","mb-auto"],["matExpansionPanelContent",""],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled",4,"ngIf"],["class","position-relative",4,"ngIf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[1,"position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["class","mb-3",4,"ngIf"],[1,"mb-3"],[3,"displayedColumns","vos","selection"],[3,"displayedColumns","groups","selection"],[3,"resources","displayedColumns","routingVo","selection"],[3,"displayedColumns","facilities","selection"],[3,"displayedColumns","members"],[3,"displayedColumns","disableRouting","users"],["alert_type","warn"],[1,"spinner-container"]],template:function(Ge,wt){1&Ge&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,v,3,3,"button",1),e.YNc(4,h,1,0,"mat-spinner",2),e.YNc(5,an,2,1,"mat-accordion",3),e.YNc(6,Kt,3,3,"perun-web-apps-alert",4),e.YNc(7,on,2,0,"ng-template",null,5,e.W1O)),2&Ge&&(e.xp6(1),e.Oqu(e.lcZ(2,5,"ROLES.TITLE")),e.xp6(2),e.Q6J("ngIf",0!==wt.assignableRules.length),e.xp6(1),e.Q6J("ngIf",wt.outerLoading),e.xp6(1),e.Q6J("ngIf",!wt.outerLoading&&wt.roles.size>0),e.xp6(1),e.Q6J("ngIf",!wt.outerLoading&&0===wt.roles.size))},dependencies:[R.sg,R.O5,Ee.Hw,ge.pp,ge.ib,ge.yz,ge.yK,ge.HS,B.lW,w.Ou,we.gM,Ne.kc,Ce.w,H.Z,O.W,ne.C,fe.O,G.X,r.e,u.C,R.Ov,Oe.X$,g.i],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"],changeDetection:0}),Tt})()},60205:($e,he,p)=>{"use strict";p.d(he,{Q:()=>ot});var e=p(94650),A=p(96308),C=p(30671),M=p(95017),f=p(9244),b=p(81591),D=p(36895),T=p(94364),R=p(97392),B=p(56709),w=p(10266),H=p(98380),O=p(34198),J=p(55660),ne=p(18750),G=p(89383),se=p(9185),Oe=p(8231),_e=p(14849);function Be(je,ut){if(1&je){const tt=e.EpF();e.TgZ(0,"th",19)(1,"mat-checkbox",20),e.NdJ("change",function(ee){e.CHM(tt);const nt=e.oxw(2);return e.KtG(ee?nt.masterToggle():null)}),e.ALo(2,"translate"),e.ALo(3,"masterCheckboxLabel"),e.qZA()()}if(2&je){const tt=e.oxw().ngIf,vt=e.oxw();e.xp6(1),e.Q6J("aria-label",e.lcZ(2,3,e.lcZ(3,5,tt.all)))("checked",vt.selection.hasValue()&&tt.all)("indeterminate",vt.selection.hasValue()&&!tt.all)}}const E=function(je){return{name:je}};function z(je,ut){if(1&je){const tt=e.EpF();e.TgZ(0,"td",21)(1,"mat-checkbox",22),e.NdJ("change",function(ee){const Ae=e.CHM(tt).$implicit,Ee=e.oxw(2);return e.KtG(ee?Ee.selection.toggle(Ae):null)})("click",function(ee){return ee.stopPropagation()}),e.ALo(2,"lowercase"),e.ALo(3,"translate"),e.ALo(4,"checkboxLabel"),e.qZA()()}if(2&je){const tt=ut.$implicit,vt=e.oxw(2);e.xp6(1),e.Q2q("data-cy","",e.lcZ(2,3,tt.name),"-checkbox"),e.Q6J("aria-label",e.xi3(3,5,e.lcZ(4,8,vt.selection.isSelected(tt)),e.VKq(10,E,tt.name)))("checked",vt.selection.isSelected(tt))}}function F(je,ut){1&je&&(e.ynx(0,16),e.YNc(1,Be,4,7,"th",17),e.YNc(2,z,5,12,"td",18),e.BQk())}function V(je,ut){1&je&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&je&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")," "))}function X(je,ut){if(1&je&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&je){const tt=ut.$implicit;e.xp6(1),e.Oqu(tt.id)}}function q(je,ut){1&je&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&je&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")," "))}function pe(je,ut){if(1&je&&(e.TgZ(0,"td",25),e.ALo(1,"lowercase"),e._uU(2),e.qZA()),2&je){const tt=ut.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,tt.name),"-name-td"),e.xp6(2),e.hij(" ",tt.name," ")}}function le(je,ut){1&je&&e._UZ(0,"th",26)}function ye(je,ut){1&je&&(e.TgZ(0,"mat-icon",29),e.ALo(1,"translate"),e._uU(2," check_circle_outline "),e.qZA()),2&je&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function Ve(je,ut){1&je&&(e.TgZ(0,"mat-icon",30),e.ALo(1,"translate"),e._uU(2," block "),e.qZA()),2&je&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function ve(je,ut){if(1&je&&(e.TgZ(0,"td",25),e.YNc(1,ye,3,3,"mat-icon",27),e.YNc(2,Ve,3,3,"mat-icon",28),e.qZA()),2&je){const tt=ut.$implicit;e.xp6(1),e.Q6J("ngIf",tt.enabled),e.xp6(1),e.Q6J("ngIf",!tt.enabled)}}function Ke(je,ut){1&je&&(e.TgZ(0,"th",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&je&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")," "))}function Ue(je,ut){if(1&je&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&je){const tt=ut.$implicit;e.xp6(1),e.Oqu(tt.script)}}function oe(je,ut){1&je&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&je&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")," "))}function ce(je,ut){if(1&je&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&je){const tt=ut.$implicit;e.xp6(1),e.Oqu(tt.description)}}function k(je,ut){1&je&&e._UZ(0,"tr",31)}const N=function(je){return["/admin/services",je]};function be(je,ut){if(1&je&&e._UZ(0,"tr",32),2&je){const tt=ut.$implicit,vt=e.oxw();e.ekj("cursor-pointer",!vt.disableRouting)("disable-outline",vt.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",vt.disableRouting?null:e.VKq(6,N,tt.id))("routerLink",vt.disableRouting?null:e.VKq(8,N,tt.id))}}function W(je,ut){1&je&&(e.TgZ(0,"perun-web-apps-alert",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&je&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ue(je,ut){1&je&&(e.TgZ(0,"perun-web-apps-alert",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&je&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}const Me=function(je){return{all:je}};let ot=(()=>{class je{constructor(tt,vt){this.authResolver=tt,this.tableCheckbox=vt,this.services=[],this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new M.Ov(!0,[]),this.disableRouting=!1,this.selectionChanged=new e.vpe,this.pageSizeOptions=f.f7}set matSort(tt){this.sort=tt,this.setDataSource()}static getDataForColumn(tt,vt){switch(vt){case"id":return tt.id.toString();case"name":return tt.name;case"enabled":return tt.enabled?"true":"false";case"script":return tt.script;case"description":return tt.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(tt=>"id"!==tt)),this.dataSource=new C.by(this.services),this.setDataSource(),this.selection.changed.subscribe(()=>{this.selectionChanged.emit()})}exportAllData(tt){(0,f.O6)((0,f.Xn)(this.dataSource.filteredData,this.displayedColumns,je.getDataForColumn),tt)}exportDisplayedData(tt){const vt=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,ee=vt+this.dataSource.paginator.pageSize;(0,f.O6)((0,f.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(vt,ee),this.displayedColumns,je.getDataForColumn),tt)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(tt,vt)=>(0,f.Sd)(tt,vt,this.displayedColumns,je.getDataForColumn),this.dataSource.sortData=(tt,vt)=>(0,f.pR)(tt,vt,je.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return je.\u0275fac=function(tt){return new(tt||je)(e.Y36(b.x4),e.Y36(b.UA))},je.\u0275cmp=e.Xpm({type:je,selectors:[["app-services-list"]],viewQuery:function(tt,vt){if(1&tt&&(e.Gf(f.l9,7),e.Gf(A.YE,7)),2&tt){let ee;e.iGM(ee=e.CRH())&&(vt.child=ee.first),e.iGM(ee=e.CRH())&&(vt.matSort=ee.first)}},inputs:{services:"services",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{selectionChanged:"selectionChanged"},features:[e.TTD],decls:24,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enabled"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","script"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","align-bottom green",3,"matTooltip",4,"ngIf"],["class","align-bottom red",3,"matTooltip",4,"ngIf"],[1,"align-bottom","green",3,"matTooltip"],[1,"align-bottom","red",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(tt,vt){1&tt&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(nt){return vt.exportDisplayedData(nt)})("exportAllData",function(nt){return vt.exportAllData(nt)}),e.TgZ(2,"table",2),e.YNc(3,F,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,V,3,3,"th",5),e.YNc(7,X,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,q,3,3,"th",5),e.YNc(10,pe,3,4,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,le,1,0,"th",10),e.YNc(13,ve,3,2,"td",8),e.BQk(),e.ynx(14,11),e.YNc(15,Ke,3,3,"th",10),e.YNc(16,Ue,2,1,"td",8),e.BQk(),e.ynx(17,12),e.YNc(18,oe,3,3,"th",5),e.YNc(19,ce,2,1,"td",8),e.BQk(),e.YNc(20,k,1,0,"tr",13),e.YNc(21,be,1,10,"tr",14),e.qZA()()(),e.YNc(22,W,3,3,"perun-web-apps-alert",15),e.YNc(23,ue,3,3,"perun-web-apps-alert",15)),2&tt&&(e.Q6J("hidden",void 0===vt.services||0===vt.services.length||0===vt.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",vt.pageSizeOptions)("dataLength",vt.dataSource.filteredData.length)("tableId",vt.tableId),e.xp6(1),e.Q6J("dataSource",vt.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,Me,e.xi3(4,10,vt.dataSource,vt.selection.selected.length))),e.xp6(17),e.Q6J("matHeaderRowDef",vt.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",vt.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===vt.dataSource.filteredData.length&&void 0!==vt.services&&0!==vt.services.length),e.xp6(1),e.Q6J("ngIf",void 0===vt.services||0===vt.services.length))},dependencies:[D.O5,T.rH,R.Hw,A.YE,A.nU,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,B.oG,w.gM,H.w,O.Y,J.Q,ne.l,D.i8,G.X$,se.I,Oe.G,_e.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.green[_ngcontent-%COMP%]{color:green}.red[_ngcontent-%COMP%]{color:red}"]}),je})()},64877:($e,he,p)=>{"use strict";p.d(he,{C:()=>Ee});var e=p(96308),A=p(30671),C=p(95017),M=p(9244),f=p(81591),b=p(94650),D=p(36895),T=p(94364),R=p(97392),B=p(56709),w=p(10266),H=p(98380),O=p(34198),J=p(55660),ne=p(18750),G=p(89383),se=p(31359),Oe=p(16119),_e=p(7598),Be=p(9954),E=p(9185),z=p(8231),F=p(14849);function V(ge,we){if(1&ge){const Ne=b.EpF();b.TgZ(0,"mat-checkbox",22),b.NdJ("change",function(fe){b.CHM(Ne);const r=b.oxw(3);return b.KtG(fe?r.masterToggle():null)}),b.ALo(1,"translate"),b.ALo(2,"masterCheckboxLabel"),b.qZA()}if(2&ge){const Ne=b.oxw(2).ngIf,Ce=b.oxw();b.Q6J("aria-label",b.lcZ(1,3,b.lcZ(2,5,Ne.all)))("checked",Ce.selection.hasValue()&&Ne.all)("indeterminate",Ce.selection.hasValue()&&!Ne.all)}}function X(ge,we){if(1&ge&&(b.TgZ(0,"th",20),b.YNc(1,V,3,7,"mat-checkbox",21),b.qZA()),2&ge){const Ne=b.oxw(2);b.xp6(1),b.Q6J("ngIf",Ne.selection.isMultipleSelection())}}const q=function(ge){return{name:ge}};function pe(ge,we){if(1&ge){const Ne=b.EpF();b.TgZ(0,"td",23)(1,"mat-checkbox",24),b.NdJ("change",function(fe){const u=b.CHM(Ne).$implicit,g=b.oxw(2);return b.KtG(fe?g.selection.toggle(u):null)})("click",function(fe){return fe.stopPropagation()}),b.ALo(2,"translate"),b.ALo(3,"checkboxLabel"),b.ALo(4,"userFullName"),b.ALo(5,"lowercase"),b.qZA()()}if(2&ge){const Ne=we.$implicit,Ce=b.oxw(2);b.xp6(1),b.Q2q("data-cy","",b.lcZ(5,11,Ne.firstName),"-checkbox"),b.Q6J("aria-label",b.xi3(2,4,b.lcZ(3,7,Ce.selection.isSelected(Ne)),b.VKq(13,q,b.lcZ(4,9,Ne))))("checked",Ce.selection.isSelected(Ne))("disabled",Ce.disableSelf&&Ne.id===Ce.principalId&&!Ce.authResolver.isPerunAdmin())}}function le(ge,we){1&ge&&(b.ynx(0,17),b.YNc(1,X,2,1,"th",18),b.YNc(2,pe,6,15,"td",19),b.BQk())}function ye(ge,we){1&ge&&b._UZ(0,"th",25)}function Ve(ge,we){1&ge&&(b.TgZ(0,"mat-icon",29),b.ALo(1,"translate"),b._uU(2," account_circle "),b.qZA()),2&ge&&b.s9C("matTooltip",b.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function ve(ge,we){if(1&ge&&(b._UZ(0,"mat-icon",30),b.ALo(1,"translate")),2&ge){const Ne=b.oxw(2);b.s9C("matTooltip",b.lcZ(1,2,"MANAGERS_LIST.SERVICE")),b.Q6J("svgIcon",Ne.svgIcon)}}function Ke(ge,we){if(1&ge&&(b.TgZ(0,"td",26),b.YNc(1,Ve,3,3,"mat-icon",27),b.YNc(2,ve,2,4,"mat-icon",28),b.qZA()),2&ge){const Ne=we.$implicit;b.xp6(1),b.Q6J("ngIf",!Ne.serviceUser),b.xp6(1),b.Q6J("ngIf",Ne.serviceUser)}}function Ue(ge,we){1&ge&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ge&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function oe(ge,we){if(1&ge&&(b.TgZ(0,"td",26),b._uU(1),b.qZA()),2&ge){const Ne=we.$implicit;b.xp6(1),b.hij(" ",Ne.id," ")}}function ce(ge,we){1&ge&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ge&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function k(ge,we){if(1&ge&&(b.TgZ(0,"td",32),b.ALo(1,"lowercase"),b._uU(2),b.ALo(3,"userFullName"),b.qZA()),2&ge){const Ne=we.$implicit;b.Q2q("data-cy","",b.lcZ(1,2,Ne.firstName),"-firstName-td"),b.xp6(2),b.hij(" ",b.lcZ(3,4,Ne)," ")}}function N(ge,we){1&ge&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ge&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")," "))}function be(ge,we){if(1&ge&&(b.TgZ(0,"td",32),b._uU(1),b.ALo(2,"userVo"),b.qZA()),2&ge){const Ne=we.$implicit;b.xp6(1),b.Oqu(b.lcZ(2,1,Ne))}}function W(ge,we){1&ge&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ge&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.EMAIL")," "))}function ue(ge,we){if(1&ge&&(b.TgZ(0,"td",32),b._uU(1),b.ALo(2,"userEmail"),b.qZA()),2&ge){const Ne=we.$implicit;b.xp6(1),b.Oqu(b.lcZ(2,1,Ne))}}function Me(ge,we){1&ge&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ge&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.LOGINS")," "))}function ot(ge,we){if(1&ge&&(b.TgZ(0,"td",32),b._uU(1),b.ALo(2,"userLogins"),b.qZA()),2&ge){const Ne=we.$implicit;b.xp6(1),b.Oqu(b.lcZ(2,1,Ne))}}function je(ge,we){1&ge&&b._UZ(0,"tr",33)}const ut=function(ge){return["/admin/users",ge]},tt=function(ge){return["/myProfile/service-identities",ge]};function vt(ge,we){if(1&ge&&b._UZ(0,"tr",34),2&ge){const Ne=we.$implicit,Ce=b.oxw();b.ekj("cursor-pointer",!Ce.disableRouting),b.Q6J("routerLink",Ce.disableRouting?null:Ce.routeToAdmin?b.VKq(4,ut,Ne.id):b.VKq(6,tt,Ne.id))("perunWebAppsMiddleClickRouterLink",Ce.disableRouting?null:Ce.routeToAdmin?b.VKq(8,ut,Ne.id):b.VKq(10,tt,Ne.id))}}function ee(ge,we){if(1&ge&&(b.TgZ(0,"perun-web-apps-alert",35),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ge){const Ne=b.oxw();b.xp6(1),b.hij(" ",Ne.noUsersFoundLabel?Ne.noUsersFoundLabel:b.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n")}}function nt(ge,we){1&ge&&(b.TgZ(0,"perun-web-apps-alert",35),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&ge&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const Ae=function(ge){return{all:ge}};let Ee=(()=>{class ge{constructor(Ne,Ce,fe){this.authResolver=Ne,this.tableCheckbox=Ce,this.storeService=fe,this.selection=new C.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.routeToAdmin=!0,this.disableRouting=!1,this.filter="",this.disableSelf=!1,this.svgIcon="perun-service-identity-black",this.pageSizeOptions=M.f7}set matSort(Ne){this.sort=Ne}static getDataForColumn(Ne,Ce){switch(Ce){case"id":return Ne.id.toString();case"user":return Ne.serviceUser?"true":"false";case"name":return Ne?Ne.lastName?Ne.lastName:Ne.firstName??"":"";case"organization":return(0,M.OV)(Ne);case"email":return(0,M.kN)(Ne);case"logins":return(0,M.lt)(Ne);default:return""}}static getExportDataForColumn(Ne,Ce){switch(Ce){case"id":return Ne.id.toString();case"user":return Ne.serviceUser?"service-user":"user";case"name":return Ne?(0,M.bD)(Ne):"";case"organization":return(0,M.OV)(Ne);case"email":return(0,M.kN)(Ne);case"logins":return(0,M.lt)(Ne);default:return""}}exportAllData(Ne){(0,M.O6)((0,M.Xn)(this.dataSource.filteredData,this.displayedColumns,ge.getExportDataForColumn),Ne)}exportDisplayedData(Ne){const Ce=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,fe=Ce+this.dataSource.paginator.pageSize;(0,M.O6)((0,M.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ce,fe),this.displayedColumns,ge.getExportDataForColumn),Ne)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Ne,Ce)=>(0,M.Sd)(Ne,Ce,this.displayedColumns,ge.getDataForColumn),this.dataSource.sortData=(Ne,Ce)=>(0,M.pR)(Ne,Ce,ge.getDataForColumn)),this.dataSource.filter=this.filter,this.dataSource.data=this.users}ngOnChanges(){this.principalId=this.storeService.getPerunPrincipal().userId,this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Ne=>"id"!==Ne)),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return ge.\u0275fac=function(Ne){return new(Ne||ge)(b.Y36(f.x4),b.Y36(f.UA),b.Y36(f.d6))},ge.\u0275cmp=b.Xpm({type:ge,selectors:[["app-users-list"]],viewQuery:function(Ne,Ce){if(1&Ne&&(b.Gf(M.l9,7),b.Gf(e.YE,7)),2&Ne){let fe;b.iGM(fe=b.CRH())&&(Ce.child=fe.first),b.iGM(fe=b.CRH())&&(Ce.matSort=fe.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",routeToAdmin:"routeToAdmin",disableRouting:"disableRouting",filter:"filter",tableId:"tableId",noUsersFoundLabel:"noUsersFoundLabel",disableSelf:"disableSelf"},features:[b.TTD],decls:27,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"svgIcon","matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"svgIcon","matTooltip"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(Ne,Ce){1&Ne&&(b.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),b.NdJ("exportDisplayedData",function(r){return Ce.exportDisplayedData(r)})("exportAllData",function(r){return Ce.exportAllData(r)}),b.TgZ(2,"table",2),b.YNc(3,le,3,0,"ng-container",3),b.ALo(4,"isAllSelected"),b.ynx(5,4),b.YNc(6,ye,1,0,"th",5),b.YNc(7,Ke,3,2,"td",6),b.BQk(),b.ynx(8,7),b.YNc(9,Ue,3,3,"th",8),b.YNc(10,oe,2,1,"td",6),b.BQk(),b.ynx(11,9),b.YNc(12,ce,3,3,"th",8),b.YNc(13,k,4,6,"td",10),b.BQk(),b.ynx(14,11),b.YNc(15,N,3,3,"th",8),b.YNc(16,be,3,3,"td",10),b.BQk(),b.ynx(17,12),b.YNc(18,W,3,3,"th",8),b.YNc(19,ue,3,3,"td",10),b.BQk(),b.ynx(20,13),b.YNc(21,Me,3,3,"th",8),b.YNc(22,ot,3,3,"td",10),b.BQk(),b.YNc(23,je,1,0,"tr",14),b.YNc(24,vt,1,12,"tr",15),b.qZA()()(),b.YNc(25,ee,3,3,"perun-web-apps-alert",16),b.YNc(26,nt,3,3,"perun-web-apps-alert",16)),2&Ne&&(b.Q6J("hidden",0===Ce.users.length||!Ce.dataSource||0===Ce.dataSource.filteredData.length),b.xp6(1),b.Q6J("dataLength",Ce.dataSource.filteredData.length)("pageSizeOptions",Ce.pageSizeOptions)("tableId",Ce.tableId),b.xp6(1),b.Q6J("dataSource",Ce.dataSource),b.xp6(1),b.Q6J("ngIf",b.VKq(13,Ae,b.xi3(4,10,Ce.dataSource,Ce.selection.selected.length))),b.xp6(20),b.Q6J("matHeaderRowDef",Ce.displayedColumns),b.xp6(1),b.Q6J("matRowDefColumns",Ce.displayedColumns),b.xp6(1),b.Q6J("ngIf",0===Ce.users.length),b.xp6(1),b.Q6J("ngIf",0===Ce.dataSource.filteredData.length&&0!==Ce.users.length))},dependencies:[D.O5,T.rH,R.Hw,e.YE,e.nU,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,B.oG,w.gM,H.w,O.Y,J.Q,ne.l,D.i8,G.X$,se.d,Oe.S,_e.g,Be.Z,E.I,z.G,F.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),ge})()},57706:($e,he,p)=>{"use strict";p.d(he,{c:()=>C});var e=p(94650),A=p(89383);let C=(()=>{class M{constructor(b){this.translateService=b,this.returnData=""}transform(b){return this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES."+b).subscribe(D=>{this.returnData=D}),this.returnData}}return M.\u0275fac=function(b){return new(b||M)(e.Y36(A.sK,16))},M.\u0275pipe=e.Yjl({name:"applicationFormItemType",type:M,pure:!0}),M})()},43157:($e,he,p)=>{"use strict";p.d(he,{h:()=>C});var e=p(94650),A=p(89383);let C=(()=>{class M{constructor(b){this.translate=b,this.returnData=""}transform(b){switch(b){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(D=>{this.returnData=`done${D}`});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(D=>{this.returnData=`clear${D}`});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(D=>{this.returnData=`contact_mail ${D}`});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(D=>{this.returnData=`gavel${D}`});break;default:this.returnData=b}return this.returnData}}return M.\u0275fac=function(b){return new(b||M)(e.Y36(A.sK,16))},M.\u0275pipe=e.Yjl({name:"applicationState",type:M,pure:!1}),M})()},70844:($e,he,p)=>{"use strict";p.d(he,{u:()=>C});var e=p(81591),A=p(94650);let C=(()=>{class M{constructor(b){this.storeService=b,this.USER_CONSENT_RELATED_ATT_NAMESPACE=["urn:perun:user_facility:attribute-def","urn:perun:user:attribute-def","urn:perun:member:attribute-def","urn:perun:member_group:attribute-def","urn:perun:member_resource:attribute-def","urn:perun:ues:attribute-def"]}transform(b,D,T){return!!(this.storeService.getProperty("enforce_consents")&&T&&D)&&this.USER_CONSENT_RELATED_ATT_NAMESPACE.reduce((B,w)=>B||b.startsWith(w),!1)}}return M.\u0275fac=function(b){return new(b||M)(A.Y36(e.d6,16))},M.\u0275pipe=A.Yjl({name:"consentRelatedAttribute",type:M,pure:!0}),M})()},37677:($e,he,p)=>{"use strict";p.d(he,{A:()=>A});var e=p(94650);let A=(()=>{class C{transform(f){return f.substring(40)}}return C.\u0275fac=function(f){return new(f||C)},C.\u0275pipe=e.Yjl({name:"extSourceType",type:C,pure:!0}),C})()},32597:($e,he,p)=>{"use strict";p.d(he,{g:()=>M});var e=p(95698),A=p(94650),C=p(94364);let M=(()=>{class f{constructor(D,T){this.router=D,this.route=T}navigate(D,T=null){this.route.queryParams.pipe((0,e.q)(1)).subscribe(R=>{let B="merge";const w=Object.assign({},R);location.pathname.endsWith("applicationForm/preview")&&(B="",delete w.applicationFormItems),this.router.navigate(D,{relativeTo:T,queryParams:w,queryParamsHandling:B})})}}return f.\u0275fac=function(D){return new(D||f)(A.LFG(C.F0),A.LFG(C.gz))},f.\u0275prov=A.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})()},14264:($e,he,p)=>{"use strict";p.d(he,{m:()=>st});var e=p(36895),A=p(94364),C=p(47957),M=p(4859),f=p(56709),b=p(3238),D=p(99602),T=p(65412),R=p(44850),B=p(37084),w=p(59549),H=p(97392),O=p(284),J=p(98739),ne=p(73162),G=p(51572),se=p(71948),Oe=p(84385),_e=p(23267),Be=p(90455),E=p(17009),z=p(96308),F=p(30671),V=p(3848),X=p(10266),q=p(35423),pe=p(73546),le=p(42673),ye=p(77331),Ve=p(28255),ve=p(86257),Ke=p(24006),Ue=p(73228),oe=p(36769),ce=p(81591),k=p(94650),N=p(32597),be=p(34198),W=p(89383);const ue=["collapse"],Me=function(){return{color:"linkTextColor"}};function ot(Qe,Et){1&Qe&&(k.TgZ(0,"mat-icon",14),k._uU(1,"keyboard_arrow_right"),k.qZA()),2&Qe&&k.Q6J("ngStyle",k.DdM(1,Me))}function je(Qe,Et){1&Qe&&(k.TgZ(0,"mat-icon",14),k._uU(1,"keyboard_arrow_down"),k.qZA()),2&Qe&&k.Q6J("ngStyle",k.DdM(1,Me))}function ut(Qe,Et){if(1&Qe&&(k.TgZ(0,"span",12),k.YNc(1,ot,2,2,"mat-icon",13),k.YNc(2,je,2,2,"mat-icon",13),k.qZA()),2&Qe){const ke=k.oxw().$implicit,at=k.oxw(2);k.xp6(1),k.Q6J("ngIf",!at.isActive(at.currentUrl,ke.showChildrenRegex)),k.xp6(1),k.Q6J("ngIf",at.isActive(at.currentUrl,ke.showChildrenRegex))}}const tt=function(Qe,Et){return{color:Qe,"border-color":Et}};function vt(Qe,Et){if(1&Qe){const ke=k.EpF();k.TgZ(0,"a",17),k.NdJ("click",function(){const jt=k.CHM(ke).$implicit,an=k.oxw(4);return k.KtG(an.navigate(jt.url))}),k._uU(1),k.ALo(2,"translate"),k.qZA()}if(2&Qe){const ke=Et.$implicit,at=k.oxw(4);k.ekj("activated",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0===at.item.activatedClass),k.Q6J("perunWebAppsMiddleClickRouterLink",ke.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0!==at.item.activatedClass?at.item.activatedClass:"")("ngStyle",k.WLB(9,tt,at.linkTextColor,at.linkTextColor)),k.xp6(1),k.hij(" ",k.lcZ(2,7,ke.label)," ")}}function ee(Qe,Et){if(1&Qe&&(k.TgZ(0,"div",15),k.YNc(1,vt,3,12,"a",16),k.qZA()),2&Qe){const ke=k.oxw().$implicit;k.Q6J("@rollInOut",void 0),k.xp6(1),k.Q6J("ngForOf",null==ke?null:ke.children)}}function nt(Qe,Et){if(1&Qe){const ke=k.EpF();k.TgZ(0,"div")(1,"a",9),k.NdJ("click",function(){const jt=k.CHM(ke).$implicit,an=k.oxw(2);return k.KtG(an.navigate(jt.url))}),k._uU(2),k.ALo(3,"translate"),k.YNc(4,ut,3,2,"span",10),k.qZA(),k.YNc(5,ee,2,2,"div",11),k.qZA()}if(2&Qe){const ke=Et.$implicit,at=k.oxw(2);k.xp6(1),k.ekj("activated",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0===at.item.activatedClass),k.Q6J("perunWebAppsMiddleClickRouterLink",ke.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0!==at.item.activatedClass?at.item.activatedClass:"")("ngStyle",k.WLB(11,tt,at.linkTextColor,at.linkTextColor)),k.xp6(1),k.hij(" ",k.lcZ(3,9,ke.label)," "),k.xp6(2),k.Q6J("ngIf",ke.children),k.xp6(1),k.Q6J("ngIf",at.isActive(at.currentUrl,ke.showChildrenRegex))}}function Ae(Qe,Et){if(1&Qe&&(k.TgZ(0,"div"),k.YNc(1,nt,6,14,"div",8),k.qZA()),2&Qe){const ke=k.oxw();k.Q6J("@rollInOut",void 0),k.xp6(1),k.Q6J("ngForOf",ke.item.links)}}const Ee=function(Qe,Et){return{background:Qe,"border-top":Et}},ge=function(Qe){return{color:Qe}},we=function(){return{color:"currentColor"}},Ne=function(Qe){return{background:Qe}};let Ce=(()=>{class Qe{constructor(ke,at,It){this.router=ke,this.store=at,this.queryParamsRouter=It,this.expanded=!0,this.linkBgColor=this.store.getProperty("theme").sidemenu_submenu_bg_color,this.linkTextColor=this.store.getProperty("theme").sidemenu_submenu_text_color,this.dividerStyle="1px solid "+this.store.getProperty("theme").sidemenu_divider_color,this.currentUrl=ke.url,ke.events.subscribe(jt=>{jt instanceof A.m2&&(this.currentUrl=jt.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(ke,at){return new RegExp(at).test(ke.split("?")[0])}navigate(ke){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.queryParamsRouter.navigate(ke)):this.queryParamsRouter.navigate(ke)}}return Qe.\u0275fac=function(ke){return new(ke||Qe)(k.Y36(A.F0),k.Y36(ce.d6),k.Y36(N.g))},Qe.\u0275cmp=k.Xpm({type:Qe,selectors:[["app-side-menu-item"]],viewQuery:function(ke,at){if(1&ke&&k.Gf(ue,5),2&ke){let It;k.iGM(It=k.CRH())&&(at.collapseDiv=It.first)}},inputs:{item:"item",index:"index",showLinks:"showLinks",sideNav:"sideNav"},decls:12,vars:26,consts:[[1,"entity-menu-item"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","click"],["matRipple","",3,"perunWebAppsMiddleClickRouterLink"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ml-3"],[3,"ngStyle"],[4,"ngIf"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ml-auto",4,"ngIf"],["class","entity-menu-item-sub-menu",4,"ngIf"],[1,"ml-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],[1,"entity-menu-item-sub-menu"],["class","entity-menu-item-sub-menu-item clickable","matRipple","",3,"perunWebAppsMiddleClickRouterLink","activated","matRippleColor","ngClass","ngStyle","click",4,"ngFor","ngForOf"],["matRipple","",1,"entity-menu-item-sub-menu-item","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"]],template:function(ke,at){1&ke&&(k.TgZ(0,"div",0)(1,"div",1),k.NdJ("click",function(){return at.toggle()}),k.TgZ(2,"div",2)(3,"a",3)(4,"div"),k._UZ(5,"mat-icon",4),k.qZA(),k.TgZ(6,"div",5),k._uU(7),k.ALo(8,"translate"),k.qZA()()()(),k.TgZ(9,"div")(10,"div",6),k.YNc(11,Ae,2,2,"div",7),k.qZA()()()),2&ke&&(k.xp6(1),k.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",k.WLB(18,Ee,at.item.backgroundColorCss,at.index?at.dividerStyle:"none")),k.xp6(1),k.Gre("entity-menu-item-link ",at.item.labelClass,""),k.Q6J("perunWebAppsMiddleClickRouterLink",at.item.baseLink),k.xp6(1),k.Q6J("ngStyle",k.VKq(21,ge,at.item.textColorCss)),k.xp6(2),k.Q6J("ngStyle",k.DdM(23,we))("svgIcon",at.item.icon),k.xp6(2),k.Oqu(k.lcZ(8,16,at.item.label)),k.xp6(2),k.Q6J("@openClose",at.expanded?"open":"closed"),k.xp6(1),k.Gre("side-entity-menu ",at.item.linksClass,""),k.Q6J("ngStyle",k.VKq(24,Ne,at.linkBgColor)),k.xp6(1),k.Q6J("ngIf",at.showLinks))},dependencies:[e.mk,e.sg,e.O5,e.PC,H.Hw,b.wG,be.Y,W.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important;color:var(--side-link-text-hover)!important}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 40px;text-decoration:none;color:#fff;font-size:1rem;display:block}.activated[_ngcontent-%COMP%]{color:#313131!important;border-right:5px solid #313131}.entity-menu-item-header[_ngcontent-%COMP%]{padding:8px 5px 8px 25px;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;word-break:break-word}.entity-menu-item-label[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-item-sub-menu[_ngcontent-%COMP%]{overflow:hidden}.entity-menu-item-sub-menu-item[_ngcontent-%COMP%]{padding-left:4rem!important}"],data:{animation:[oe.BQ,oe.Ly]}}),Qe})(),fe=(()=>{class Qe{transform(ke){if(void 0===ke.value)return"";switch(ke.type){case"java.lang.String":return ke.value;case"java.lang.Integer":case"java.lang.Boolean":default:return String(ke.value);case"java.util.ArrayList":return this.whenValueIsArray(ke.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(ke.value)}}whenValueIsArray(ke){let at="";return ke.forEach(function(It){at=at.concat(It+", ")}),at}whenValueIsMap(ke){let at="";return ke.forEach((It,jt)=>{at=at.concat(jt+": "+It+", ")}),at}}return Qe.\u0275fac=function(ke){return new(ke||Qe)},Qe.\u0275pipe=k.Yjl({name:"anyToString",type:Qe,pure:!0}),Qe})();const r=["collapse"],u=function(){return{color:"linkTextColor"}};function g(Qe,Et){1&Qe&&(k.TgZ(0,"mat-icon",12),k._uU(1,"keyboard_arrow_right"),k.qZA()),2&Qe&&k.Q6J("ngStyle",k.DdM(1,u))}function v(Qe,Et){1&Qe&&(k.TgZ(0,"mat-icon",12),k._uU(1,"keyboard_arrow_down"),k.qZA()),2&Qe&&k.Q6J("ngStyle",k.DdM(1,u))}function h(Qe,Et){if(1&Qe&&(k.TgZ(0,"span",10),k.YNc(1,g,2,2,"mat-icon",11),k.YNc(2,v,2,2,"mat-icon",11),k.qZA()),2&Qe){const ke=k.oxw().$implicit,at=k.oxw();k.xp6(1),k.Q6J("ngIf",!at.isActive(at.currentUrl,ke.showChildrenRegex)),k.xp6(1),k.Q6J("ngIf",at.isActive(at.currentUrl,ke.showChildrenRegex))}}const a=function(Qe,Et){return{color:Qe,"border-color":Et}};function i(Qe,Et){if(1&Qe){const ke=k.EpF();k.TgZ(0,"a",14),k.NdJ("click",function(){const jt=k.CHM(ke).$implicit,an=k.oxw(3);return k.KtG(an.navigate(jt.url))}),k._uU(1),k.ALo(2,"translate"),k.qZA()}if(2&Qe){const ke=Et.$implicit,at=k.oxw(3);k.ekj("activated",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0===at.item.activatedClass),k.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",k.WLB(9,a,at.linkTextColor,at.linkTextColor))("ngClass",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0!==at.item.activatedClass?at.item.activatedClass:"")("perunWebAppsMiddleClickRouterLink",ke.url),k.xp6(1),k.hij(" ",k.lcZ(2,7,ke.label)," ")}}function t(Qe,Et){if(1&Qe&&(k.TgZ(0,"div"),k.YNc(1,i,3,12,"a",13),k.qZA()),2&Qe){const ke=k.oxw().$implicit;k.Q6J("@rollInOut",void 0),k.xp6(1),k.Q6J("ngForOf",null==ke?null:ke.children)}}function n(Qe,Et){if(1&Qe){const ke=k.EpF();k.TgZ(0,"div")(1,"a",7),k.NdJ("click",function(){const jt=k.CHM(ke).$implicit,an=k.oxw();return k.KtG(an.navigate(jt.url))}),k._uU(2),k.ALo(3,"translate"),k.YNc(4,h,3,2,"span",8),k.qZA(),k.YNc(5,t,2,2,"div",9),k.qZA()}if(2&Qe){const ke=Et.$implicit,at=k.oxw();k.xp6(1),k.ekj("activated",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0===at.item.activatedClass),k.Q6J("perunWebAppsMiddleClickRouterLink",ke.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0!==at.item.activatedClass?at.item.activatedClass:"")("ngStyle",k.WLB(11,a,at.linkTextColor,at.linkTextColor)),k.xp6(1),k.hij(" ",k.lcZ(3,9,ke.label)," "),k.xp6(2),k.Q6J("ngIf",ke.children),k.xp6(1),k.Q6J("ngIf",at.isActive(at.currentUrl,ke.showChildrenRegex))}}const o=function(Qe){return{background:Qe}},s=function(Qe){return{color:Qe}},l=function(){return{color:"currentColor"}};let d=(()=>{class Qe{constructor(ke,at,It){this.router=ke,this.store=at,this.queryParamsRouter=It,this.id="",this.expanded=!1,this.linkBgColor=this.store.getProperty("theme").sidemenu_submenu_bg_color,this.linkTextColor=this.store.getProperty("theme").sidemenu_submenu_text_color,this.currentUrl=ke.url,ke.events.subscribe(jt=>{jt instanceof A.m2&&(this.currentUrl=jt.url)})}ngOnInit(){this.expanded=this.showOpen}ngOnChanges(){this.expanded=this.showOpen}toggle(){void 0!==this.item.baseLink?this.navigate(this.item.baseLink):this.expanded=!this.expanded}isActive(ke,at){return new RegExp(at).test(ke)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(ke){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.queryParamsRouter.navigate(ke)):this.queryParamsRouter.navigate(ke)}}return Qe.\u0275fac=function(ke){return new(ke||Qe)(k.Y36(A.F0),k.Y36(ce.d6),k.Y36(N.g))},Qe.\u0275cmp=k.Xpm({type:Qe,selectors:[["app-side-menu-root-item"]],viewQuery:function(ke,at){if(1&ke&&k.Gf(r,5),2&ke){let It;k.iGM(It=k.CRH())&&(at.collapseDiv=It.first)}},inputs:{item:"item",index:"index",showOpen:"showOpen",id:"id",sideNav:"sideNav"},features:[k.TTD],decls:12,vars:28,consts:[[1,"entity-menu-item",3,"id"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","perunWebAppsMiddleClickRouterLink","click"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ml-3"],[3,"ngStyle"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ml-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],["class","pl-5 clickable","matRipple","",3,"activated","matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click"]],template:function(ke,at){1&ke&&(k.TgZ(0,"div",0)(1,"div",1),k.NdJ("click",function(){return at.toggle()}),k.TgZ(2,"div")(3,"a",2)(4,"div"),k._UZ(5,"mat-icon",3),k.qZA(),k.TgZ(6,"div",4),k._uU(7),k.ALo(8,"translate"),k.qZA()()()(),k.TgZ(9,"div")(10,"div",5),k.YNc(11,n,6,14,"div",6),k.qZA()()()),2&ke&&(k.s9C("id",at.id),k.xp6(1),k.ekj("root-header-activated",at.isActive(at.currentUrl,at.item.baseColorClassRegex)),k.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",k.VKq(21,o,at.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",at.item.baseLink),k.xp6(1),k.Gre("entity-menu-item-link ",at.item.labelClass,""),k.xp6(1),k.Q6J("ngStyle",k.VKq(23,s,at.item.textColorCss)),k.xp6(2),k.Q6J("ngStyle",k.DdM(25,l))("svgIcon",at.item.icon),k.xp6(2),k.Oqu(k.lcZ(8,19,at.item.label)),k.xp6(2),k.Q6J("@openClose",at.expanded?"open":"closed"),k.xp6(1),k.Gre("side-entity-menu ",at.item.linksClass,""),k.Q6J("ngStyle",k.VKq(26,o,at.linkBgColor)),k.xp6(1),k.Q6J("ngForOf",at.item.links))},dependencies:[e.mk,e.sg,e.O5,e.PC,H.Hw,b.wG,be.Y,W.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 32px;text-decoration:none;font-size:1rem;color:#fff;display:block}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important;color:var(--side-link-text-hover)!important}.root-header-activated[_ngcontent-%COMP%]{background:var(--side-root-item-active)!important;color:var(--side-root-item-text-active)!important}.entity-menu-item-header[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 1rem;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-header[_ngcontent-%COMP%]:hover{background:var(--side-root-item-hover)!important;color:var(--side-root-item-text-hover)!important}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;color:#fff}.entity-menu-item-label[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}"],data:{animation:[oe.BQ,oe.Ly]}}),Qe})();var c=p(73555),S=p(67376),$=p(63189),ht=p(37677),ze=p(37433),et=p(11243),te=p(19516),Le=p(33231),Ie=p(96338),De=p(9244),xe=p(28499),ie=p(70844),Te=p(21029);let st=(()=>{class Qe{constructor(ke){this.translate=ke,ke.addLangs(["en","cs"])}}return Qe.\u0275fac=function(ke){return new(ke||Qe)(k.LFG(W.sK))},Qe.\u0275mod=k.oAB({type:Qe}),Qe.\u0275inj=k.cJS({providers:[fe,ht.A,ie.u],imports:[e.ez,A.Bz,C.Bb,O.c,w.lN,Ke.UX,Ke.u5,H.Ps,_e.SJ,B.To,W.aw.forChild({}),M.ot,z.JX,F.p0,V.Nh,q.dp,M.ot,f.p9,T.Is,Oe.LD,E.ZX,G.Cq,ne.Cv,X.AV,Be.rP,D.FA,b.XK,se.Fk,R.t,b.si,J.TU,pe.QW,ve.T5,c._t,pe.QW,ye.Hi,Ve.Tx,S.Cl,$.r,le.g,ze.ez,et.r,te.d4,Le.Co,Ie.ie,De.Je,xe.E3,Te.jD,Le.Co,C.Bb,O.c,A.Bz,Ke.UX,Ke.u5,H.Ps,_e.SJ,W.aw,z.JX,F.p0,V.Nh,q.dp,M.ot,f.p9,T.Is,Oe.LD,E.ZX,G.Cq,ne.Cv,X.AV,Be.rP,D.FA,b.XK,se.Fk,R.t,pe.QW,ve.T5,b.si,J.TU,c._t,ye.Hi,ye.Hi,B.To,Ve.Tx,S.Cl,S.Cl,S.Cl,et.r]}),Qe})();k.B6R(Ue.V,function(){return[e.sg,e.O5,Ce,d]},[])},69024:($e,he,p)=>{"use strict";p.d(he,{V:()=>T});var e=p(81591),A=p(61744),C=p(9244),M=p(19516),f=p(64080),b=p(94650),D=p(89383);let T=(()=>{class R{constructor(w,H,O,J,ne,G,se,Oe){this.translate=w,this.authResolver=H,this.store=O,this.apiRequest=J,this.attributesManager=ne,this.notificator=G,this.guiAuthResolver=se,this.routePolicyService=Oe,this.theme=this.store.getProperty("theme")}getFacilitiesManagementItem(){return{label:"MAIN_MENU.FACILITIES",colorClass:"base-item-color-activated",icon:"perun-facility-white",baseLink:["/facilities"],links:[],baseColorClass:"base-item-color",baseColorClassRegex:"^/facilities$",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color}}getAccessManagementItem(){return{label:"MAIN_MENU.ACCESS",colorClass:"base-item-color-activated",icon:"perun-vo",links:[],baseLink:["/organizations"],baseColorClass:"base-item-color",baseColorClassRegex:"^/organizations$",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color}}getHomeItem(){return{baseLink:["/home"],label:"MAIN_MENU.HOME",colorClass:"base-item-color-activated",icon:"perun-home-white",baseColorClass:"base-item-color",baseColorClassRegex:"^/home$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[]}}getUserItem(){return{baseLink:["/myProfile"],expandable:!1,label:"MAIN_MENU.MY_PROFILE",colorClass:"base-item-color-activated",icon:"perun-user",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:["/myProfile"],activatedRegex:"^/myProfile$"},{label:"MENU_ITEMS.USER.ORGANIZATIONS",url:["/myProfile/organizations"],activatedRegex:"^/myProfile/organizations$"},{label:"MENU_ITEMS.USER.GROUPS",url:["/myProfile/groups"],activatedRegex:"^/myProfile/groups$"},{label:"MENU_ITEMS.USER.ATTRIBUTES",url:["/myProfile/attributes"],activatedRegex:"^/myProfile/attributes$"},{label:"MENU_ITEMS.USER.ROLES",url:["/myProfile/roles"],activatedRegex:"/myProfile/roles"},{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:["/myProfile/service-identities"],activatedRegex:"^/myProfile/service-identities"},{label:"MENU_ITEMS.USER.BANS",url:["/myProfile/bans"],activatedRegex:"^/myProfile/bans"},{label:"MENU_ITEMS.USER.SETTINGS",url:["/myProfile/settings"],activatedRegex:"^/myProfile/settings$",children:[{label:"MENU_ITEMS.USER.PASSWORD_RESET",url:["/myProfile/settings/passwordReset"],activatedRegex:"^/myProfile/settings/passwordReset"},{label:"MENU_ITEMS.USER.GUI_CONFIG",url:["/myProfile/settings/guiConfig"],activatedRegex:"/myProfile/settings/guiConfig"}],showChildrenRegex:"/myProfile/settings"}]}}getAdminItem(){return{baseLink:["/admin"],expandable:!1,label:"MAIN_MENU.ADMIN",colorClass:"base-item-color-activated",icon:"perun-perun-admin",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[{label:"MENU_ITEMS.ADMIN.OVERVIEW",url:["/admin"],activatedRegex:"^/admin$"},{label:"MENU_ITEMS.ADMIN.ATTRIBUTES",url:["/admin/attributes"],activatedRegex:"^/admin/attributes$"},{label:"MENU_ITEMS.ADMIN.USERS",url:["/admin/users"],activatedRegex:"^/admin/users$"},{label:"MENU_ITEMS.ADMIN.OWNERS",url:["/admin/owners"],activatedRegex:"^/admin/owners$"},{label:"MENU_ITEMS.ADMIN.SERVICES",url:["/admin/services"],activatedRegex:"^/admin/services$"},{label:"MENU_ITEMS.ADMIN.VISUALIZER",url:["/admin/visualizer"],activatedRegex:"^/admin/visualizer$",children:[{label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",url:["/admin/visualizer/attrDependencies"],activatedRegex:"^/admin/visualizer/attrDependencies"},{label:this.translate.instant("MENU_ITEMS.VISUALIZER.USER_DESTINATION"),url:["/admin/visualizer/userDestinationRelationship"],activatedRegex:"^/admin/visualizer/userDestinationRelationship"}],showChildrenRegex:"/admin/visualizer"},{label:"MENU_ITEMS.ADMIN.EXT_SOURCES",url:["/admin/ext_sources"],activatedRegex:"^/admin/ext_sources$"},{label:"MENU_ITEMS.ADMIN.AUDIT_LOG",url:["/admin/audit_log"],activatedRegex:"^/admin/audit_log$"},{label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",url:["/admin/consent_hubs"],activatedRegex:"^/admin/consent_hubs$"},{label:"MENU_ITEMS.ADMIN.SEARCHER",url:["/admin/searcher"],activatedRegex:"^/admin/searcher"}]}}parseFacility(w){return{label:w.name,baseLink:[`/facilities/${w.id}`],backgroundColorCss:this.theme.sidemenu_facility_bg_color,textColorCss:this.theme.sidemenu_facility_text_color,links:this.getFacilityLinks(w),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(w,H){const O=(new M.r5).transform(w,H);return{label:w.name,baseLink:[O],backgroundColorCss:this.theme.sidemenu_resource_bg_color,textColorCss:this.theme.sidemenu_resource_text_color,links:this.getResourceLinks(O,H?"/organizations":"/facilities",w),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseGroup(w){return{label:w.name,baseLink:[`/organizations/${w.voId}/groups/${w.id}`],backgroundColorCss:this.theme.sidemenu_group_bg_color,textColorCss:this.theme.sidemenu_group_text_color,links:this.getGroupLinks(w),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(w,H=!1,O=!1){return{label:w.name,baseLink:[`/organizations/${w.id}`],links:this.getVoLinks(w,O),colorClass:"vo-item",icon:H?"perun-hierarchical-vo":"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_vo_bg_color,textColorCss:this.theme.sidemenu_vo_text_color}}parseMember(w){return{label:(0,C.bD)(w.user),baseLink:[`/organizations/${w.voId}/members/${w.id}`],backgroundColorCss:this.theme.sidemenu_member_bg_color,textColorCss:this.theme.sidemenu_member_text_color,links:this.getMemberLinks(w),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(w,H,O){return{label:(0,C.bD)(w),baseLink:[H],backgroundColorCss:this.theme.sidemenu_user_bg_color,textColorCss:this.theme.sidemenu_user_text_color,links:this.getUserLinks(w,H,O),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseServiceIdentity(w){return{label:(0,C.bD)(w),baseLink:[`/myProfile/service-identities/${w.id}`],backgroundColorCss:this.theme.sidemenu_user_bg_color,textColorCss:this.theme.sidemenu_user_text_color,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:[`/myProfile/service-identities/${w.id}`],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`/myProfile/service-identities/${w.id}/associated-users`],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"},{label:"MENU_ITEMS.USER.MAILING_LISTS",url:[`/myProfile/service-identities/${w.id}/mailing-lists`],activatedRegex:"/myProfile/service-identities/\\d+/mailing-lists"},{label:"MENU_ITEMS.USER.DATA_QUOTAS",url:[`/myProfile/service-identities/${w.id}/data-quotas`],activatedRegex:"/myProfile/service-identities/\\d+/data-quotas"},{label:"MENU_ITEMS.USER.AUTHENTICATION",url:[`/myProfile/service-identities/${w.id}/authentication`],activatedRegex:"/myProfile/service-identities/\\d+/authentication$",children:[{label:"MENU_ITEMS.USER.LOGINS",url:[`/myProfile/service-identities/${w.id}/authentication/logins`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/logins"},{label:"MENU_ITEMS.USER.CERTIFICATES",url:[`/myProfile/service-identities/${w.id}/authentication/certificates`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/certificates"},{label:"MENU_ITEMS.USER.SSH_KEYS",url:[`/myProfile/service-identities/${w.id}/authentication/ssh-keys`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/ssh-keys"}],showChildrenRegex:"/myProfile/service-identities/\\d+/authentication"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(w){return{label:w.name,baseLink:[`/admin/services/${w.id}`],backgroundColorCss:this.theme.sidemenu_service_bg_color,textColorCss:this.theme.sidemenu_service_text_color,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${w.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${w.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${w.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(w,H){const O=[];if(O.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${w.id}`],activatedRegex:"/organizations/\\d+$"}),this.routePolicyService.canNavigate("organizations-members",w)&&O.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${w.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.routePolicyService.canNavigate("organizations-groups",w)&&O.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${w.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.routePolicyService.canNavigate("organizations-resources",w)){const J=[];this.routePolicyService.canNavigate("organizations-resources-preview",w)&&J.push({label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${w.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}),this.routePolicyService.canNavigate("organizations-resources-tags",w)&&J.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${w.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.routePolicyService.canNavigate("organizations-resources-states",w)&&J.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${w.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),O.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${w.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:J,showChildrenRegex:"/organizations/\\d+/resources"})}if(this.routePolicyService.canNavigate("organizations-applications",w)&&O.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${w.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",w)&&O.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${w.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",w)&&O.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${w.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),this.routePolicyService.canNavigate("organizations-attributes",w)&&O.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${w.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.routePolicyService.canNavigate("organizations-statistics",w)&&O.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${w.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"}),this.routePolicyService.canNavigate("organizations-settings",w)){const J=[];this.routePolicyService.canNavigate("organizations-settings-expiration",w)&&J.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${w.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),this.routePolicyService.canNavigate("organizations-settings-managers",w)&&J.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${w.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",w)&&J.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${w.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("organizations-settings-notifications",w)&&J.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${w.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("organizations-settings-extsources",w)&&J.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${w.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",w)&&J.push({label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",url:[`/organizations/${w.id}/settings/memberOrganizations`],activatedRegex:"/organizations/\\d+/settings/memberOrganizations"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",w)&&H&&J.push({label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",url:[`/organizations/${w.id}/settings/hierarchicalInclusion`],activatedRegex:"/organizations/\\d+/settings/hierarchicalInclusion"}),this.routePolicyService.canNavigate("organizations-settings-bans",w)&&J.push({label:"MENU_ITEMS.VO.BANS",url:[`/organizations/${w.id}/settings/bans`],activatedRegex:"/organizations/\\d+/settings/bans"}),O.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${w.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:J,showChildrenRegex:"/organizations/\\d+/settings"})}return O}getUserLinks(w,H,O){const J=[];return J.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[H],activatedRegex:`${O}$`}),J.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${H}/organizations`],activatedRegex:`${O}/organizations`}),J.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${H}/groups`],activatedRegex:`${O}/groups`}),J.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${H}/accounts`],activatedRegex:`${O}/accounts`}),J.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${H}/identities`],activatedRegex:`${O}/identities`}),J.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${H}/facilities`],activatedRegex:`${O}/facilities`}),J.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${H}/resources`],activatedRegex:`${O}/resources`}),J.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${H}/attributes`],activatedRegex:`${O}/attributes`}),J.push({label:"MENU_ITEMS.USER.ROLES",url:[`${H}/roles`],activatedRegex:`^${H}/roles`}),J.push(w.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${H}/associated-users`],activatedRegex:`^${H}/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${H}/service-identities`],activatedRegex:`^${H}/service-identities`}),J.push({label:"MENU_ITEMS.USER.BANS",url:[`${H}/bans`],activatedRegex:`^${H}/bans`}),J}getMemberLinks(w){const H=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${w.voId}/members/${w.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.routePolicyService.canNavigate("members-groups",w)&&H.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`/organizations/${w.voId}/members/${w.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.routePolicyService.canNavigate("members-applications",w)&&H.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`/organizations/${w.voId}/members/${w.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.routePolicyService.canNavigate("members-resources",w)&&H.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${w.voId}/members/${w.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),this.routePolicyService.canNavigate("members-attributes",w)&&H.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${w.voId}/members/${w.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),this.routePolicyService.canNavigate("members-bans",w)&&H.push({label:"MENU_ITEMS.MEMBER.BANS",url:[`/organizations/${w.voId}/members/${w.id}/bans`],activatedRegex:"/organizations/\\d+/members/\\d+/bans"}),H}getFacilityLinks(w){const H=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${w.id}`],activatedRegex:"/facilities/\\d+$"}];if(this.routePolicyService.canNavigate("facilities-resources",w)&&H.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${w.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.routePolicyService.canNavigate("facilities-allowed-users",w)&&H.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${w.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.routePolicyService.canNavigate("facilities-allowed-groups",w)&&H.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${w.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.routePolicyService.canNavigate("facilities-services-status",w)&&H.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${w.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.routePolicyService.canNavigate("facilities-services-destinations",w)&&H.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${w.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.routePolicyService.canNavigate("facilities-hosts",w)&&H.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${w.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),this.routePolicyService.canNavigate("facilities-attributes",w)&&H.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",w.id.toString(),"attributes"],activatedRegex:"/facilities/\\d+/attributes$"}),this.routePolicyService.canNavigate("facilities-settings",w)){const O=[];this.routePolicyService.canNavigate("facilities-settings-owners",w)&&O.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",w.id.toString(),"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),this.routePolicyService.canNavigate("facilities-settings-managers",w)&&O.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",w.id.toString(),"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",w)&&O.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${w.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",w)&&O.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",w.id.toString(),"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),this.routePolicyService.canNavigate("facilities-settings-bans",w)&&O.push({label:"MENU_ITEMS.FACILITY.BANS",url:[`/facilities/${w.id}/settings/bans`],activatedRegex:"/facilities/\\d+/settings/bans"}),H.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",w.id.toString(),"settings"],activatedRegex:"/facilities/\\d+/settings$",children:O,showChildrenRegex:"/facilities/\\d+/settings"})}return H}getGroupLinks(w){const H=[],O=[];return H.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${w.voId}/groups/${w.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.routePolicyService.canNavigate("groups-members",w)&&H.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${w.voId}/groups/${w.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.routePolicyService.canNavigate("groups-subgroups",w)&&"members"!==w.name&&H.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${w.voId}/groups/${w.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.routePolicyService.canNavigate("groups-resources",w)&&H.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${w.voId}/groups/${w.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),"members"!==w.name&&this.routePolicyService.canNavigate("groups-applications",w)&&H.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${w.voId}/groups/${w.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),this.routePolicyService.canNavigate("groups-attributes",w)&&H.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${w.voId}/groups/${w.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"}),this.routePolicyService.canNavigate("groups-statistics",w)&&H.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${w.voId}/groups/${w.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.routePolicyService.canNavigate("groups-roles",w)&&H.push({label:"MENU_ITEMS.GROUP.ROLES",url:[`/organizations/${w.voId}/groups/${w.id}/roles`],activatedRegex:"/organizations/\\d+/groups/\\d+/roles"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(w.id,f.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{O.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${w.voId}/groups/${w.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},J=>{"PrivilegeException"!==J.name&&this.notificator.showRPCError(J)}),this.routePolicyService.canNavigate("groups-settings-managers",w)&&O.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${w.voId}/groups/${w.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),"members"!==w.name&&this.routePolicyService.canNavigate("groups-settings-applicationForm",w)&&O.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${w.voId}/groups/${w.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("groups-settings-notifications",w)&&O.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${w.voId}/groups/${w.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("groups-settings-relations",w)&&O.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${w.voId}/groups/${w.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.routePolicyService.canNavigate("groups-settings-extsources",w)&&O.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${w.voId}/groups/${w.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==O.length&&H.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${w.voId}/groups/${w.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:O,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),H}getResourceLinks(w,H,O){const J=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[w],activatedRegex:`${H}/\\d+/resources/\\d+$`}];if(this.routePolicyService.canNavigate("resources-groups",O)&&J.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[w,"groups"],activatedRegex:`${H}/\\d+/resources/\\d+/groups$`}),this.routePolicyService.canNavigate("resources-services",O)&&J.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[w,"services"],activatedRegex:`${H}/\\d+/resources/\\d+/services$`}),this.routePolicyService.canNavigate("resources-members",O)&&J.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[w,"members"],activatedRegex:`${H}/\\d+/resources/\\d+/members$`}),this.routePolicyService.canNavigate("resources-tags",O)&&J.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[w,"tags"],activatedRegex:`${H}/\\d+/resources/\\d+/tags$`}),this.routePolicyService.canNavigate("resources-attributes",O)&&J.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[w,"attributes"],activatedRegex:`${H}/\\d+/resources/\\d+/attributes$`}),this.routePolicyService.canNavigate("resources-settings",O)){const ne=[];this.routePolicyService.canNavigate("resources-settings-managers",O)&&ne.push({label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[w,"settings","managers"],activatedRegex:`${H}/\\d+/resources/\\d+/settings/managers$`}),this.routePolicyService.canNavigate("resources-settings-bans",O)&&ne.push({label:"MENU_ITEMS.RESOURCE.BANS",url:[w,"settings","bans"],activatedRegex:`${H}/\\d+/resources/\\d+/settings/bans`}),J.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[w,"settings"],activatedRegex:`${H}/\\d+/resources/\\d+/settings$`,children:ne,showChildrenRegex:`${H}/\\d+/resources/\\d+/settings`})}return J}}return R.\u0275fac=function(w){return new(w||R)(b.LFG(D.sK),b.LFG(e.x4),b.LFG(e.d6),b.LFG(e.F5),b.LFG(A.H8),b.LFG(e.V6),b.LFG(e.x4),b.LFG(e.Ip))},R.\u0275prov=b.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})()},73228:($e,he,p)=>{"use strict";p.d(he,{V:()=>G});var e=p(72077),A=p(69024),C=p(81591),M=p(36769),f=p(94650),b=p(77968);function D(se,Oe){if(1&se&&(f.TgZ(0,"div",9),f._UZ(1,"app-side-menu-item",10),f.qZA()),2&se){const _e=Oe.$implicit,Be=Oe.index,E=f.oxw();f.Q6J("@rollInOut",void 0),f.xp6(1),f.Q6J("index",Be)("item",_e)("sideNav",E.sideNav)}}function T(se,Oe){if(1&se&&(f.TgZ(0,"div",9),f._UZ(1,"app-side-menu-item",11),f.qZA()),2&se){const _e=Oe.$implicit,Be=Oe.index,E=f.oxw();f.Q6J("@rollInOut",void 0),f.xp6(1),f.Q6J("index",Be)("item",_e)("showLinks",Be===E.accessItems.length-1)("sideNav",E.sideNav)}}function R(se,Oe){if(1&se&&f._UZ(0,"app-side-menu-root-item",12),2&se){const _e=f.oxw();f.Q6J("id","facilities-item-btn")("item",_e.facilityItem)("sideNav",_e.sideNav)}}function B(se,Oe){if(1&se&&(f.TgZ(0,"div",9),f._UZ(1,"app-side-menu-item",11),f.qZA()),2&se){const _e=Oe.$implicit,Be=Oe.index,E=f.oxw(2);f.Q6J("@rollInOut",void 0),f.xp6(1),f.Q6J("index",Be)("item",_e)("showLinks",Be===E.facilityItems.length-1)("sideNav",E.sideNav)}}function w(se,Oe){if(1&se&&(f.TgZ(0,"div"),f.YNc(1,B,2,5,"div",3),f.qZA()),2&se){const _e=f.oxw();f.xp6(1),f.Q6J("ngForOf",_e.facilityItems)}}function H(se,Oe){if(1&se&&(f.TgZ(0,"div",9),f._UZ(1,"app-side-menu-item",11),f.qZA()),2&se){const _e=Oe.$implicit,Be=Oe.index,E=f.oxw();f.Q6J("@rollInOut",void 0),f.xp6(1),f.Q6J("index",Be)("item",_e)("showLinks",Be===E.userItems.length-1)("sideNav",E.sideNav)}}function O(se,Oe){if(1&se&&f._UZ(0,"app-side-menu-root-item",13),2&se){const _e=f.oxw();f.Q6J("id","admin-item-btn")("item",_e.adminItem)("showOpen",_e.adminItemOpened)("sideNav",_e.sideNav)}}function J(se,Oe){if(1&se&&(f.TgZ(0,"div",9),f._UZ(1,"app-side-menu-item",11),f.qZA()),2&se){const _e=Oe.$implicit,Be=Oe.index,E=f.oxw(2);f.Q6J("@rollInOut",void 0),f.xp6(1),f.Q6J("index",Be)("item",_e)("showLinks",!0)("sideNav",E.sideNav)}}function ne(se,Oe){if(1&se&&(f.TgZ(0,"div"),f.YNc(1,J,2,5,"div",3),f.qZA()),2&se){const _e=f.oxw();f.xp6(1),f.Q6J("ngForOf",_e.adminItems)}}let G=(()=>{class se{constructor(_e,Be,E){this.sideMenuService=_e,this.sideMenuItemService=Be,this.authResolver=E,this.accessItems=[],this.facilityItems=[],this.adminItems=[],this.homeItems=[],this.userItems=[],this.accessItem=this.sideMenuItemService.getAccessManagementItem(),this.adminItem=this.sideMenuItemService.getAdminItem(),this.facilityItem=this.sideMenuItemService.getFacilitiesManagementItem(),this.homeItem=this.sideMenuItemService.getHomeItem(),this.userItem=this.sideMenuItemService.getUserItem(),this.mobileView=!0,this.adminItemOpened=!1,this.userItemOpened=!1}static areSameItems(_e,Be){return _e.label===Be.label&&_e.labelClass===Be.labelClass}static areSameLinks(_e,Be){if(_e.links.length!==Be.links.length)return!1;for(let E=0;E<_e.links.length;E++)if(_e.links[E].label!==Be.links[E].label)return!1;return!0}static setNewItems(_e,Be){const E=_e.length>Be.length?_e.length:Be.length;for(let z=0;z_e.length-1)_e.push(Be[z]);else{if(z>Be.length-1){const F=_e.length;for(let V=0;V{this.setFacilityItems(_e)}),this.sideMenuService.accessItemsChange.subscribe(_e=>{this.setAccessItems(_e)}),this.sideMenuService.adminItemsChange.subscribe(_e=>{this.setAdminItems(_e)}),this.sideMenuService.userItemsChange.subscribe(_e=>{this.setUserItems(_e)}),this.sideMenuService.homeItemsChange.subscribe(_e=>{this.setHomeItems(_e)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,se.setNewItems(this.homeItems,[]),se.setNewItems(this.adminItems,[]),se.setNewItems(this.accessItems,[]),se.setNewItems(this.facilityItems,[]),se.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,se.setNewItems(this.adminItems,[]),se.setNewItems(this.accessItems,[]),se.setNewItems(this.facilityItems,[]),se.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,se.setNewItems(this.homeItems,[]),se.setNewItems(this.adminItems,[]),se.setNewItems(this.accessItems,[]),se.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,se.setNewItems(this.homeItems,[]),se.setNewItems(this.adminItems,[]),se.setNewItems(this.facilityItems,[]),se.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,se.setNewItems(this.homeItems,[]),se.setNewItems(this.accessItems,[]),se.setNewItems(this.facilityItems,[]),se.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,se.setNewItems(this.accessItems,[]),se.setNewItems(this.facilityItems,[]),se.setNewItems(this.adminItems,[])}setHomeItems(_e){this.resetExceptHome(),se.setNewItems(this.homeItems,_e)}setFacilityItems(_e){this.resetExceptFacility(),se.setNewItems(this.facilityItems,_e)}setAccessItems(_e){this.resetExceptAccess(),se.setNewItems(this.accessItems,_e)}setUserItems(_e){this.userItemOpened=0===_e.length,this.resetExceptUser(),se.setNewItems(this.userItems,_e)}setAdminItems(_e){this.adminItemOpened=0===_e.length,this.resetExceptAdmin(),se.setNewItems(this.adminItems,_e)}}return se.\u0275fac=function(_e){return new(_e||se)(f.Y36(b.D),f.Y36(A.V),f.Y36(C.x4))},se.\u0275cmp=f.Xpm({type:se,selectors:[["app-side-menu"]],inputs:{sideNav:"sideNav"},decls:13,vars:17,consts:[["id","sideMenuSpacer"],["id","sideMenuAccordion",1,"accordion","entity-menu-accordion"],[3,"id","item","sideNav"],["class","overflow-hidden",4,"ngFor","ngForOf"],["data-cy","access-item-button",3,"item","id","sideNav"],["data-cy","facilities-button",3,"id","item","sideNav",4,"ngIf"],[4,"ngIf"],[3,"id","item","showOpen","sideNav"],["data-cy","admin-button",3,"id","item","showOpen","sideNav",4,"ngIf"],[1,"overflow-hidden"],[3,"index","item","sideNav"],[3,"index","item","showLinks","sideNav"],["data-cy","facilities-button",3,"id","item","sideNav"],["data-cy","admin-button",3,"id","item","showOpen","sideNav"]],template:function(_e,Be){1&_e&&(f.TgZ(0,"div",0)(1,"div",1),f._UZ(2,"app-side-menu-root-item",2),f.YNc(3,D,2,4,"div",3),f._UZ(4,"app-side-menu-root-item",4),f.TgZ(5,"div"),f.YNc(6,T,2,5,"div",3),f.qZA(),f.YNc(7,R,1,3,"app-side-menu-root-item",5),f.YNc(8,w,2,1,"div",6),f._UZ(9,"app-side-menu-root-item",7),f.YNc(10,H,2,5,"div",3),f.YNc(11,O,1,4,"app-side-menu-root-item",8),f.YNc(12,ne,2,1,"div",6),f.qZA()()),2&_e&&(f.xp6(2),f.Q6J("id","home-item-btn")("item",Be.homeItem)("sideNav",Be.sideNav),f.xp6(1),f.Q6J("ngForOf",Be.homeItems),f.xp6(1),f.Q6J("item",Be.accessItem)("id","access-item-btn")("sideNav",Be.sideNav),f.xp6(2),f.Q6J("ngForOf",Be.accessItems),f.xp6(1),f.Q6J("ngIf",Be.authResolver.canManageFacilities()),f.xp6(1),f.Q6J("ngIf",Be.authResolver.canManageFacilities()),f.xp6(1),f.Q6J("id","profile-item-btn")("item",Be.userItem)("showOpen",Be.userItemOpened)("sideNav",Be.sideNav),f.xp6(1),f.Q6J("ngForOf",Be.userItems),f.xp6(1),f.Q6J("ngIf",Be.authResolver.isPerunAdminOrObserver()),f.xp6(1),f.Q6J("ngIf",Be.authResolver.isPerunAdminOrObserver()))},styles:[".entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-accordion[_ngcontent-%COMP%]{background-color:#f4f4f4}#sideMenuAccordion[_ngcontent-%COMP%]{width:300px}#sideMenuSpacer[_ngcontent-%COMP%]{height:100%}"],data:{animation:[M.Ly]}}),se})()},86511:($e,he,p)=>{"use strict";p.d(he,{A:()=>M});var e=p(81591),A=p(94650),C=p(89383);let M=(()=>{class f{constructor(D,T){this.notificator=D,this.translate=T}setDialogRef(D){this.dialogRef=D}setType(D){this.entityType=D}getType(){return this.entityType}createCandidate(D){return{userExtSource:D.userExtSource,additionalUserExtSources:D.additionalUserExtSources,attributes:D.attributes,firstName:D.firstName,lastName:D.lastName,middleName:D.middleName,titleBefore:D.titleBefore,titleAfter:D.titleAfter,id:D.id}}getFormattedGroup(D){return{id:D.id,beanName:D.beanName,name:D.name,voId:D.voId}}success(D){this.notificator.showSuccess(this.translate.instant(D)),this.dialogRef.close(!0)}getCandidateWithError(D,T){if("MfaPrivilegeException"===String(T.type))return null;{const R=T.message.split(":").splice(1).join();return{candidate:D,errorName:T.name,errorMsg:R}}}convertToMemberCandidates(D){return D.map(T=>({member:T.member,candidate:T.candidate,richUser:T.richUser}))}}return f.\u0275fac=function(D){return new(D||f)(A.LFG(e.V6),A.LFG(C.sK))},f.\u0275prov=A.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})()},157:($e,he,p)=>{"use strict";p.d(he,{b:()=>Ie});var e=p(94650),A=p(73555),C=p(65412),M=p(4859),f=p(89383);let b=(()=>{class De{constructor(ie){this.dialogRef=ie}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return De.\u0275fac=function(ie){return new(ie||De)(e.Y36(C.so))},De.\u0275cmp=e.Xpm({type:De,selectors:[["app-delete-application-form-item-dialog"]],decls:20,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"pb-2","font-weight-bold"],[1,"pb-4","pt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-application-form-item-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(ie,Te){1&ie&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"div",2),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"div",3),e._uU(11),e.ALo(12,"translate"),e.qZA()(),e.TgZ(13,"div",4)(14,"button",5),e.NdJ("click",function(){return Te.onCancel()}),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"button",6),e.NdJ("click",function(){return Te.submit()}),e._uU(18),e.ALo(19,"translate"),e.qZA()()),2&ie&&(e.xp6(1),e.Oqu(e.lcZ(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")," "),e.xp6(3),e.Oqu(e.lcZ(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),e.xp6(3),e.Oqu(e.lcZ(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),e.xp6(4),e.hij(" ",e.lcZ(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),e.xp6(3),e.hij(" ",e.lcZ(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},dependencies:[M.lW,C.uh,C.xY,C.H8,f.X$]}),De})();var D=p(81591),T=p(83491),R=p(9244),B=p(94364),w=p(36895),H=p(24006),O=p(97392),J=p(30671),ne=p(51572),G=p(10266),se=p(98380),Oe=p(21963),_e=p(28820),Be=p(57706),E=p(30076),z=p(64597);const F=["table"];function V(De,xe){1&De&&e._UZ(0,"mat-spinner",3)}function X(De,xe){1&De&&e._UZ(0,"th",24)}function q(De,xe){if(1&De){const ie=e.EpF();e.TgZ(0,"td",25)(1,"button",26),e.NdJ("mousedown",function(){e.CHM(ie);const st=e.oxw(2);return e.KtG(st.dragDisabled=!1)}),e.TgZ(2,"mat-icon"),e._uU(3,"drag_indicator"),e.qZA()()()}}function pe(De,xe){1&De&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&De&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")," "))}function le(De,xe){if(1&De&&(e.TgZ(0,"td",25),e.ALo(1,"multiWordDataCy"),e._uU(2),e.qZA()),2&De){const ie=xe.$implicit;e.Q2q("data-cy","",e.lcZ(1,3,ie.shortname),"-shortname-td"),e.xp6(2),e.AsE(" ",ie.shortname,"",ie.required?"*":""," ")}}function ye(De,xe){1&De&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&De&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")," "))}function Ve(De,xe){if(1&De&&(e.TgZ(0,"td",25),e._uU(1),e.ALo(2,"applicationFormItemType"),e.qZA()),2&De){const ie=xe.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,ie.type)," ")}}function ve(De,xe){1&De&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&De&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")," "))}function Ke(De,xe){if(1&De&&(e.TgZ(0,"div")(1,"mat-icon",30),e._uU(2,"lock "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&De){const ie=e.oxw().$implicit,Te=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",Te.disabledTooltip(ie)),e.xp6(3),e.hij(" ",Te.disabledHiddenDependency(ie,ie.disabled,ie.disabledDependencyItemId)," ")}}function Ue(De,xe){if(1&De&&(e.TgZ(0,"td",28),e.YNc(1,Ke,5,2,"div",29),e.qZA()),2&De){const ie=xe.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==ie.disabled)}}function oe(De,xe){1&De&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&De&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")," "))}function ce(De,xe){if(1&De&&(e.TgZ(0,"div")(1,"mat-icon",30),e._uU(2,"visibility_off "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&De){const ie=e.oxw().$implicit,Te=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",Te.hiddenTooltip(ie)),e.xp6(3),e.hij(" ",Te.disabledHiddenDependency(ie,ie.hidden,ie.hiddenDependencyItemId)," ")}}function k(De,xe){if(1&De&&(e.TgZ(0,"td",28),e.YNc(1,ce,5,2,"div",29),e.qZA()),2&De){const ie=xe.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==ie.hidden)}}function N(De,xe){1&De&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&De&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")," "))}function be(De,xe){1&De&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",31),e.qZA()())}function W(De,xe){1&De&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",32)(3,"br")(4,"input",31),e.qZA()())}function ue(De,xe){if(1&De&&(e.TgZ(0,"div"),e._UZ(1,"input",35),e._uU(2),e._UZ(3,"br"),e.qZA()),2&De){const ie=xe.$implicit;e.xp6(2),e.hij(" ",ie,"")}}function Me(De,xe){if(1&De&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,ue,4,1,"div",33),e._UZ(3,"input",34),e.ALo(4,"translate"),e.qZA()()),2&De){const ie=e.oxw().$implicit,Te=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Te.getLocalizedOptions(ie)),e.xp6(1),e.s9C("value",e.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function ot(De,xe){if(1&De&&(e.TgZ(0,"div"),e._UZ(1,"span",36),e.qZA()),2&De){const ie=e.oxw().$implicit,Te=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",Te.getLocalizedLabel(ie),e.oJD)}}function je(De,xe){if(1&De&&(e.TgZ(0,"div"),e._UZ(1,"span",36),e.ALo(2,"sanitizeHtml"),e.qZA()),2&De){const ie=e.oxw().$implicit,Te=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",e.lcZ(2,1,Te.getLocalizedLabel(ie)),e.oJD)}}function ut(De,xe){if(1&De&&(e.TgZ(0,"option"),e._uU(1),e.qZA()),2&De){const ie=xe.$implicit;e.xp6(1),e.hij(" ",ie," ")}}function tt(De,xe){if(1&De&&(e.TgZ(0,"div")(1,"select"),e.YNc(2,ut,2,1,"option",33),e.qZA()()),2&De){const ie=e.oxw().$implicit,Te=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Te.getLocalizedOptions(ie))}}function vt(De,xe){1&De&&(e.TgZ(0,"div"),e._UZ(1,"textarea"),e.qZA())}function ee(De,xe){if(1&De&&(e.TgZ(0,"option",40),e._uU(1),e.qZA()),2&De){const ie=xe.$implicit;e.xp6(1),e.hij(" ",ie," ")}}function nt(De,xe){1&De&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",31),e.qZA()())}function Ae(De,xe){if(1&De){const ie=e.EpF();e.TgZ(0,"div")(1,"select",37),e.NdJ("ngModelChange",function(st){e.CHM(ie);const Qe=e.oxw().$implicit,Et=e.oxw(2);return e.KtG(Et.mapForCombobox[Qe.id]=st)}),e.YNc(2,ee,2,1,"option",38),e.TgZ(3,"option",39),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.YNc(6,nt,3,0,"div",29),e.qZA()}if(2&De){const ie=e.oxw().$implicit,Te=e.oxw(2);e.xp6(1),e.Q6J("ngModel",Te.mapForCombobox[ie.id]),e.xp6(1),e.Q6J("ngForOf",Te.getLocalizedOptions(ie)),e.xp6(2),e.hij(" ",e.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),e.xp6(2),e.Q6J("ngIf","true"===Te.mapForCombobox[ie.id])}}function Ee(De,xe){if(1&De&&(e.TgZ(0,"div"),e._UZ(1,"input",41),e._uU(2),e.qZA()),2&De){const ie=xe.$implicit;e.xp6(2),e.hij(" ",ie," ")}}function ge(De,xe){if(1&De&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,Ee,3,1,"div",33),e.qZA()()),2&De){const ie=e.oxw().$implicit,Te=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Te.getLocalizedOptions(ie))}}function we(De,xe){if(1&De&&(e.TgZ(0,"div")(1,"button",42),e._uU(2),e.qZA()()),2&De){const ie=e.oxw().$implicit,Te=e.oxw(2);e.xp6(2),e.hij(" ",Te.getLocalizedLabel(ie)," ")}}function Ne(De,xe){1&De&&(e.TgZ(0,"div")(1,"select",43)(2,"option",44),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"option",45),e._uU(6,"(GMT -12:00) Eniwetok, Kwajalein"),e.qZA(),e.TgZ(7,"option",46),e._uU(8,"(GMT -11:00) Midway Island, Samoa"),e.qZA(),e.TgZ(9,"option",47),e._uU(10,"(GMT -10:00) Hawaii"),e.qZA(),e.TgZ(11,"option",48),e._uU(12,"(GMT -9:30) Taiohae"),e.qZA(),e.TgZ(13,"option",49),e._uU(14,"(GMT -9:00) Alaska"),e.qZA(),e.TgZ(15,"option",50),e._uU(16,"(GMT -8:00) Pacific Time (US & Canada)"),e.qZA(),e.TgZ(17,"option",51),e._uU(18,"(GMT -7:00) Mountain Time (US & Canada)"),e.qZA(),e.TgZ(19,"option",52),e._uU(20," (GMT -6:00) Central Time (US & Canada), Mexico City "),e.qZA(),e.TgZ(21,"option",53),e._uU(22," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),e.qZA(),e.TgZ(23,"option",54),e._uU(24,"(GMT -4:30) Caracas"),e.qZA(),e.TgZ(25,"option",55),e._uU(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),e.qZA(),e.TgZ(27,"option",56),e._uU(28,"(GMT -3:30) Newfoundland"),e.qZA(),e.TgZ(29,"option",57),e._uU(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),e.qZA(),e.TgZ(31,"option",58),e._uU(32,"(GMT -2:00) Mid-Atlantic"),e.qZA(),e.TgZ(33,"option",59),e._uU(34,"(GMT -1:00) Azores, Cape Verde Islands"),e.qZA(),e.TgZ(35,"option",60),e._uU(36," (GMT) Western Europe Time, London, Lisbon, Casablanca "),e.qZA(),e.TgZ(37,"option",61),e._uU(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),e.qZA(),e.TgZ(39,"option",62),e._uU(40,"(GMT +2:00) Kaliningrad, South Africa"),e.qZA(),e.TgZ(41,"option",63),e._uU(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),e.qZA(),e.TgZ(43,"option",64),e._uU(44,"(GMT +3:30) Tehran"),e.qZA(),e.TgZ(45,"option",65),e._uU(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),e.qZA(),e.TgZ(47,"option",66),e._uU(48,"(GMT +4:30) Kabul"),e.qZA(),e.TgZ(49,"option",67),e._uU(50," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),e.qZA(),e.TgZ(51,"option",68),e._uU(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),e.qZA(),e.TgZ(53,"option",69),e._uU(54,"(GMT +5:45) Kathmandu, Pokhara"),e.qZA(),e.TgZ(55,"option",70),e._uU(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),e.qZA(),e.TgZ(57,"option",71),e._uU(58,"(GMT +6:30) Yangon, Mandalay"),e.qZA(),e.TgZ(59,"option",72),e._uU(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),e.qZA(),e.TgZ(61,"option",73),e._uU(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),e.qZA(),e.TgZ(63,"option",74),e._uU(64,"(GMT +8:45) Eucla"),e.qZA(),e.TgZ(65,"option",75),e._uU(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),e.qZA(),e.TgZ(67,"option",76),e._uU(68,"(GMT +9:30) Adelaide, Darwin"),e.qZA(),e.TgZ(69,"option",77),e._uU(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),e.qZA(),e.TgZ(71,"option",78),e._uU(72,"(GMT +10:30) Lord Howe Island"),e.qZA(),e.TgZ(73,"option",79),e._uU(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),e.qZA(),e.TgZ(75,"option",80),e._uU(76,"(GMT +11:30) Norfolk Island"),e.qZA(),e.TgZ(77,"option",81),e._uU(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),e.qZA(),e.TgZ(79,"option",82),e._uU(80,"(GMT +12:45) Chatham Islands"),e.qZA(),e.TgZ(81,"option",83),e._uU(82,"(GMT +13:00) Apia, Nukualofa"),e.qZA(),e.TgZ(83,"option",84),e._uU(84,"(GMT +14:00) Line Islands, Tokelau"),e.qZA()()()),2&De&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "))}function Ce(De,xe){if(1&De&&(e.TgZ(0,"div")(1,"button",42),e._uU(2),e.qZA()()),2&De){const ie=e.oxw().$implicit,Te=e.oxw(2);e.xp6(2),e.hij(" ",Te.getLocalizedLabel(ie)," ")}}function fe(De,xe){1&De&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",41),e._uU(3," example group1 "),e._UZ(4,"br")(5,"input",41),e._uU(6," example group2 "),e._UZ(7,"br")(8,"input",41),e._uU(9," example group3 "),e.qZA()())}const r=function(){return["Example 1","Example 2"]},u=function(De){return{id:0,beanName:"Attribute",namespace:"",value:De}};function g(De,xe){1&De&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-list",85),e.qZA()),2&De&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,u,e.DdM(1,r))))}const v=function(){return{key1:"value 1",key2:"value 2"}};function h(De,xe){1&De&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-map",85),e.qZA()),2&De&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,u,e.DdM(1,v))))}function a(De,xe){if(1&De&&(e.TgZ(0,"td",25),e.YNc(1,be,3,0,"div",29),e.YNc(2,W,5,0,"div",29),e.YNc(3,Me,5,4,"div",29),e.YNc(4,ot,2,1,"div",29),e.YNc(5,je,3,3,"div",29),e.YNc(6,tt,3,1,"div",29),e.YNc(7,vt,2,0,"div",29),e.YNc(8,Ae,7,6,"div",29),e.YNc(9,ge,3,1,"div",29),e.YNc(10,we,3,1,"div",29),e.YNc(11,Ne,85,3,"div",29),e.YNc(12,Ce,3,1,"div",29),e.YNc(13,fe,10,0,"div",29),e.YNc(14,g,2,4,"div",29),e.YNc(15,h,2,4,"div",29),e.qZA()),2&De){const ie=xe.$implicit;e.xp6(1),e.Q6J("ngIf","TEXTFIELD"===ie.type||"VALIDATED_EMAIL"===ie.type||"USERNAME"===ie.type),e.xp6(1),e.Q6J("ngIf","PASSWORD"===ie.type),e.xp6(1),e.Q6J("ngIf","RADIO"===ie.type),e.xp6(1),e.Q6J("ngIf","HEADING"===ie.type),e.xp6(1),e.Q6J("ngIf","HTML_COMMENT"===ie.type),e.xp6(1),e.Q6J("ngIf","SELECTIONBOX"===ie.type),e.xp6(1),e.Q6J("ngIf","TEXTAREA"===ie.type),e.xp6(1),e.Q6J("ngIf","COMBOBOX"===ie.type),e.xp6(1),e.Q6J("ngIf","CHECKBOX"===ie.type),e.xp6(1),e.Q6J("ngIf","SUBMIT_BUTTON"===ie.type),e.xp6(1),e.Q6J("ngIf","TIMEZONE"===ie.type),e.xp6(1),e.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===ie.type),e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===ie.type),e.xp6(1),e.Q6J("ngIf","LIST_INPUT_BOX"===ie.type),e.xp6(1),e.Q6J("ngIf","MAP_INPUT_BOX"===ie.type)}}function i(De,xe){1&De&&e._UZ(0,"th",24)}function t(De,xe){if(1&De){const ie=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(ie);const st=e.oxw(3);return e.KtG(st.openManagingGroups())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"supervised_user_circle"),e.qZA()()}2&De&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function n(De,xe){if(1&De&&(e.TgZ(0,"td",25),e.YNc(1,t,4,3,"button",86),e.qZA()),2&De){const ie=xe.$implicit;e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===ie.type&&!ie.forDelete)}}function o(De,xe){1&De&&e._UZ(0,"th",24)}function s(De,xe){if(1&De){const ie=e.EpF();e.TgZ(0,"button",90),e.NdJ("click",function(){e.CHM(ie);const st=e.oxw().$implicit,Qe=e.oxw(2);return e.KtG(Qe.edit(st))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"edit"),e.qZA()()}2&De&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function l(De,xe){1&De&&(e.TgZ(0,"div",91),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&De&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function d(De,xe){if(1&De&&(e.TgZ(0,"td",25),e.YNc(1,s,4,3,"button",88),e.YNc(2,l,3,3,"div",89),e.qZA()),2&De){const ie=xe.$implicit;e.xp6(1),e.Q6J("ngIf",!ie.forDelete),e.xp6(1),e.Q6J("ngIf",ie.forDelete)}}function c(De,xe){1&De&&e._UZ(0,"th",24)}function S(De,xe){if(1&De){const ie=e.EpF();e.TgZ(0,"button",93),e.NdJ("click",function(){e.CHM(ie);const st=e.oxw().$implicit,Qe=e.oxw(2);return e.KtG(Qe.delete(st))}),e.ALo(1,"multiWordDataCy"),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4,"delete"),e.qZA()()}if(2&De){const ie=e.oxw().$implicit;e.Q2q("data-cy","",e.lcZ(1,2,ie.shortname),"-delete"),e.s9C("matTooltip",e.lcZ(2,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}}function $(De,xe){if(1&De){const ie=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(ie);const st=e.oxw().$implicit,Qe=e.oxw(2);return e.KtG(Qe.restore(st))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"settings_backup_restore"),e.qZA()()}2&De&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function ht(De,xe){if(1&De&&(e.TgZ(0,"td",25),e.YNc(1,S,5,6,"button",92),e.YNc(2,$,4,3,"button",86),e.qZA()),2&De){const ie=xe.$implicit;e.xp6(1),e.Q6J("ngIf",!ie.forDelete),e.xp6(1),e.Q6J("ngIf",ie.forDelete)}}function ze(De,xe){1&De&&e._UZ(0,"tr",94)}function et(De,xe){if(1&De&&e._UZ(0,"tr",95),2&De){const ie=xe.$implicit,Te=e.oxw(2);e.ekj("make-green",ie.id<=0)("make-red",ie.forDelete)("make-yellow",-1!==Te.itemsChanged.indexOf(ie.id)&&!ie.forDelete&&ie.id>0),e.Q6J("cdkDragData",ie)}}function te(De,xe){if(1&De){const ie=e.EpF();e.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"table",7,8),e.NdJ("cdkDropListDropped",function(st){e.CHM(ie);const Qe=e.oxw();return e.KtG(Qe.drop(st))}),e.ynx(5,9),e.YNc(6,X,1,0,"th",10),e.YNc(7,q,4,0,"td",11),e.BQk(),e.ynx(8,12),e.YNc(9,pe,3,3,"th",10),e.YNc(10,le,3,5,"td",11),e.BQk(),e.ynx(11,13),e.YNc(12,ye,3,3,"th",10),e.YNc(13,Ve,3,3,"td",11),e.BQk(),e.ynx(14,14),e.YNc(15,ve,3,3,"th",15),e.YNc(16,Ue,2,1,"td",16),e.BQk(),e.ynx(17,17),e.YNc(18,oe,3,3,"th",15),e.YNc(19,k,2,1,"td",16),e.BQk(),e.ynx(20,18),e.YNc(21,N,3,3,"th",10),e.YNc(22,a,16,15,"td",11),e.BQk(),e.ynx(23,19),e.YNc(24,i,1,0,"th",10),e.YNc(25,n,2,1,"td",11),e.BQk(),e.ynx(26,20),e.YNc(27,o,1,0,"th",10),e.YNc(28,d,3,2,"td",11),e.BQk(),e.ynx(29,21),e.YNc(30,c,1,0,"th",10),e.YNc(31,ht,3,2,"td",11),e.BQk(),e.YNc(32,ze,1,0,"tr",22),e.YNc(33,et,1,7,"tr",23),e.qZA()()()()}if(2&De){const ie=e.oxw();e.xp6(3),e.Q6J("cdkDropListDisabled",ie.dragDisabled)("dataSource",ie.dataSource),e.xp6(29),e.Q6J("matHeaderRowDef",ie.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",ie.displayedColumns)}}function Le(De,xe){1&De&&(e.TgZ(0,"perun-web-apps-alert",96),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&De&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let Ie=(()=>{class De{constructor(ie,Te,st,Qe){this.dialog=ie,this.notificator=Te,this.router=st,this.translate=Qe,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new e.vpe,this.itemsChanged=[],this.dataSource=this.applicationFormItems,this.mapForCombobox=new Map,this.dragDisabled=!0}ngOnInit(){this.ifEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_EMPTY"),this.ifPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_PREFILLED"),this.alwaysDisabled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED_HINT"),this.alwaysHidden=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN_HINT"),this.isDisabledIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.DISABLED_IF_HINT"),this.isHiddenIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.HIDDEN_IF_HINT"),this.isEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_EMPTY_HINT"),this.isPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_PREFILLED_HINT")}ngOnChanges(){this.dataSource=this.applicationFormItems,this.refreshApplicationForm&&(this.itemsChanged=[])}disabledHiddenDependency(ie,Te,st){let Qe="";if("IF_EMPTY"===Te||"IF_PREFILLED"===Te){const Et=null===st?"":this.applicationFormItems.find(ke=>ke.id===st).shortname;Qe="IF_EMPTY"===Te?`(${this.ifEmpty} ${Et})`:`(${this.ifPrefilled} ${Et})`}return Qe}disabledTooltip(ie){let Te;switch(ie.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return Te=null===ie.disabledDependencyItemId?"":this.applicationFormItems.find(st=>st.id===ie.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${Te} ${this.isEmpty}`;case"IF_PREFILLED":return Te=null===ie.disabledDependencyItemId?"":this.applicationFormItems.find(st=>st.id===ie.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${Te} ${this.isPrefilled}`}}hiddenTooltip(ie){let Te;switch(ie.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return Te=null===ie.hiddenDependencyItemId?"":this.applicationFormItems.find(st=>st.id===ie.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${Te} ${this.isEmpty}`;case"IF_PREFILLED":return Te=null===ie.hiddenDependencyItemId?"":this.applicationFormItems.find(st=>st.id===ie.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${Te} ${this.isPrefilled}`}}edit(ie){const Te=(0,R.kZ)();Te.width="600px",Te.height="600px",Te.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:ie,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(T._,Te).afterClosed().subscribe(Qe=>{Qe&&(this.itemsChanged.push(ie.id),this.applicationFormItemsChange.emit())})}delete(ie){const Te=(0,R.kZ)();Te.width="500px",this.dialog.open(b,Te).afterClosed().subscribe(Qe=>{Qe&&(ie.forDelete=!0,0===ie.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(ie),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(ie){this.dragDisabled=!0;const Te=this.applicationFormItems.indexOf(ie.item.data);(0,A.bA)(this.applicationFormItems,Te,ie.currentIndex),this.itemsChanged.push(this.applicationFormItems[ie.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(ie){if(ie.i18n[this.translate.getDefaultLang()]){const Te=ie.i18n[this.translate.getDefaultLang()].options;if(null!==Te&&""!==Te){const st=[];for(const Qe of Te.split("|"))st.push(Qe.split("#")[1]);return st}}return[]}getLocalizedLabel(ie){return ie.i18n[this.translate.getDefaultLang()]?ie.i18n[this.translate.getDefaultLang()].label:ie.shortname}restore(ie){ie.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"],{queryParamsHandling:"preserve"})}}return De.\u0275fac=function(ie){return new(ie||De)(e.Y36(C.uw),e.Y36(D.V6),e.Y36(B.F0),e.Y36(f.sK))},De.\u0275cmp=e.Xpm({type:De,selectors:[["app-application-form-list"]],viewQuery:function(ie,Te){if(1&ie&&e.Gf(F,5),2&ie){let st;e.iGM(st=e.CRH())&&(Te.table=st.first)}},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns",refreshApplicationForm:"refreshApplicationForm"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[e.TTD],decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"card","mt-2"],[1,"card-body","table-theme"],[1,"overflow-auto"],["cdkDropList","","cdkDropListData","dataSource","mat-table","",1,"w-100",3,"cdkDropListDisabled","dataSource","cdkDropListDropped"],["table",""],["matColumnDef","drag"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortname"],["matColumnDef","type"],["matColumnDef","disabled"],["class","center","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","hidden"],["matColumnDef","preview"],["matColumnDef","managegroups"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["cdkDrag","","mat-row","",3,"cdkDragData","make-green","make-red","make-yellow",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"mousedown"],["mat-header-cell","",1,"center"],["mat-cell","",1,"center"],[4,"ngIf"],[1,"pointer",3,"matTooltip"],["type","text"],["type","text",1,"mb-1"],[4,"ngFor","ngForOf"],["type","reset",3,"value"],["name","temp","type","radio"],[3,"innerHTML"],[3,"ngModel","ngModelChange"],["selected","","value","false",4,"ngFor","ngForOf"],["value","true"],["selected","","value","false"],["type","checkbox"],["color","accent","mat-flat-button",""],["id","timezone-offset","name","timezone_offset",1,"span5"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["class","ml-auto","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["class","font-weight-bold",4,"ngIf"],["mat-icon-button","",1,"ml-auto",3,"matTooltip","click"],[1,"font-weight-bold"],["color","warn","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["color","warn","mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["cdkDrag","","mat-row","",3,"cdkDragData"],["alert_type","warn"]],template:function(ie,Te){1&ie&&(e.YNc(0,V,1,0,"mat-spinner",0),e.YNc(1,te,34,4,"div",1),e.YNc(2,Le,3,3,"perun-web-apps-alert",2)),2&ie&&(e.Q6J("ngIf",Te.loading),e.xp6(1),e.Q6J("ngIf",0!==Te.applicationFormItems.length&&!Te.loading),e.xp6(1),e.Q6J("ngIf",0===Te.applicationFormItems.length&&!Te.loading))},dependencies:[w.sg,w.O5,H._Y,H.YN,H.Kr,H.EJ,H.JJ,H.JL,H.On,H.F,O.Hw,J.BZ,J.fO,J.as,J.w1,J.Dz,J.nj,J.ge,J.ev,J.XQ,J.Gk,M.lW,ne.Ou,G.gM,A.Wj,A.Zt,se.w,Oe.H,_e.$,f.X$,Be.c,E.A,z.R],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.movable-row[_ngcontent-%COMP%]{cursor:move}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.make-green[_ngcontent-%COMP%]{background-color:#c8e6c9}.make-yellow[_ngcontent-%COMP%]{background-color:#fff9c4}.center[_ngcontent-%COMP%]{text-align:center}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),De})()},99168:($e,he,p)=>{"use strict";p.d(he,{S:()=>ht});var e=p(61744),A=p(9244),C=p(96308),M=p(81591),f=p(56451),b=p(18505),D=p(36895),T=p(21029),R=p(94650),B=p(10036),w=p(65412),H=p(94364),O=p(30671),J=p(51572),ne=p(98380),G=p(34198),se=p(55660),Oe=p(18750),_e=p(97392),Be=p(10266);function E(ze,et){1&ze&&(R.TgZ(0,"div")(1,"mat-icon",1),R._uU(2,"arrow_right_alt"),R.qZA()())}function z(ze,et){1&ze&&(R.TgZ(0,"div")(1,"mat-icon",2),R._uU(2,"restore"),R.qZA()())}function F(ze,et){1&ze&&(R.TgZ(0,"div")(1,"mat-icon",3),R._uU(2,"nat"),R.qZA()())}let V=(()=>{class ze{}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275cmp=R.Xpm({type:ze,selectors:[["app-application-type-icon"]],inputs:{applicationType:"applicationType"},decls:4,vars:3,consts:[[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"]],template:function(te,Le){1&te&&(R.TgZ(0,"div"),R.YNc(1,E,3,0,"div",0),R.YNc(2,z,3,0,"div",0),R.YNc(3,F,3,0,"div",0),R.qZA()),2&te&&(R.xp6(1),R.Q6J("ngIf","INITIAL"===Le.applicationType),R.xp6(1),R.Q6J("ngIf","EXTENSION"===Le.applicationType),R.xp6(1),R.Q6J("ngIf","EMBEDDED"===Le.applicationType))},dependencies:[D.O5,_e.Hw,Be.gM]}),ze})();var X=p(89383),q=p(43157),pe=p(31359),le=p(64597);let ye=(()=>{class ze{transform(te,Le,Ie,De){return Le?null:Ie?["/organizations",String(te.vo.id),"groups",String(Ie.id),"applications",String(te.id)]:De?["/organizations",String(te.vo.id),"members",String(De.id),"applications",String(te.id)]:["/organizations",String(te.vo.id),"applications",String(te.id)]}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275pipe=R.Yjl({name:"selectApplicationLink",type:ze,pure:!0}),ze})();function Ve(ze,et){1&ze&&(R.TgZ(0,"div",26),R._UZ(1,"mat-spinner",27),R.qZA())}function ve(ze,et){1&ze&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.ID")," "))}function Ke(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const te=et.$implicit;R.xp6(1),R.Oqu(te.id)}}function Ue(ze,et){1&ze&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.CREATED_DATE")," "))}function oe(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.ALo(2,"date"),R.qZA()),2&ze){const te=et.$implicit;R.xp6(1),R.Oqu(R.xi3(2,1,te.createdAt,"d.M.y"))}}function ce(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.VO_ID")))}function k(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const te=et.$implicit;R.xp6(1),R.Oqu(te.vo.id)}}function N(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.VO_NAME")))}function be(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const te=et.$implicit;R.xp6(1),R.Oqu(te.vo.name)}}function W(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.GROUP_ID")))}function ue(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const te=et.$implicit;R.xp6(1),R.hij(" ",te.group?te.group.id:""," ")}}function Me(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.GROUP_NAME")))}function ot(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R.ALo(1,"multiWordDataCy"),R._uU(2),R.qZA()),2&ze){const te=et.$implicit;R.Q2q("data-cy","",te.group?te.group.name:R.lcZ(1,2,"no-group"),"-groupname-td"),R.xp6(2),R.hij(" ",te.group?te.group.name:""," ")}}function je(ze,et){1&ze&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.TYPE")," "))}function ut(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._UZ(1,"app-application-type-icon",31),R.qZA()),2&ze){const te=et.$implicit;R.xp6(1),R.Q6J("applicationType",te.type)}}function tt(ze,et){1&ze&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.STATE")," "))}function vt(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._UZ(1,"span",32),R.ALo(2,"applicationState"),R.qZA()),2&ze){const te=et.$implicit;R.xp6(1),R.Q6J("outerHTML",R.lcZ(2,1,te.state),R.oJD)}}function ee(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCENAME")))}function nt(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const te=et.$implicit;R.xp6(1),R.Oqu(te.extSourceName)}}function Ae(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCETYPE")))}function Ee(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const te=et.$implicit;R.xp6(1),R.Oqu(te.extSourceType)}}function ge(ze,et){1&ze&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.USER")," "))}function we(ze,et){if(1&ze&&(R.TgZ(0,"div"),R._uU(1),R.qZA()),2&ze){const te=R.oxw().$implicit;R.xp6(1),R.hij(" ",te.createdBy.slice(te.createdBy.lastIndexOf("=")+1,te.createdBy.length)," ")}}function Ne(ze,et){if(1&ze&&(R._uU(0),R.ALo(1,"userFullName")),2&ze){const te=R.oxw().$implicit;R.hij(" ",R.lcZ(1,1,te.user)," ")}}function Ce(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R.YNc(1,we,2,1,"div",33),R.YNc(2,Ne,2,3,"ng-template",null,34,R.W1O),R.qZA()),2&ze){const te=et.$implicit,Le=R.MAs(3);R.xp6(1),R.Q6J("ngIf",null===te.user)("ngIfElse",Le)}}function fe(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.CREATED_BY")))}function r(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const te=et.$implicit;R.Q2q("data-cy","",te.createdBy,"-createdBy"),R.xp6(1),R.hij(" ",te.createdBy.slice(te.createdBy.lastIndexOf("=")+1,te.createdBy.length)," ")}}function u(ze,et){1&ze&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_BY")," "))}function g(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const te=et.$implicit,Le=R.oxw();R.xp6(1),R.Oqu(Le.getFriendlyName(te.modifiedBy))}}function v(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_AT")))}function h(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.ALo(2,"date"),R.qZA()),2&ze){const te=et.$implicit;R.xp6(1),R.Oqu(R.xi3(2,1,te.modifiedAt,"d.M.y"))}}function a(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.FEDINFO")))}function i(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const te=et.$implicit;R.xp6(1),R.Oqu(te.fedInfo)}}function t(ze,et){if(1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.qZA()),2&ze){const te=R.oxw().$implicit;R.xp6(1),R.Oqu(te)}}function n(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const te=et.$implicit,Le=R.oxw().$implicit,Ie=R.oxw();R.xp6(1),R.hij(" ",Ie.getFedValue(te.fedInfo,Le)," ")}}function o(ze,et){1&ze&&(R.ynx(0,35),R.YNc(1,t,2,1,"th",9),R.YNc(2,n,2,1,"td",6),R.BQk()),2&ze&&R.s9C("matColumnDef",et.$implicit)}function s(ze,et){if(1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.qZA()),2&ze){const te=R.oxw().$implicit;R.xp6(1),R.Oqu(te)}}function l(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const te=et.$implicit,Le=R.oxw().$implicit,Ie=R.oxw();R.xp6(1),R.hij(" ",Ie.getValue(te.formData,Le)," ")}}function d(ze,et){1&ze&&(R.ynx(0,35),R.YNc(1,s,2,1,"th",9),R.YNc(2,l,2,1,"td",6),R.BQk()),2&ze&&R.s9C("matColumnDef",et.$implicit)}function c(ze,et){1&ze&&R._UZ(0,"tr",36)}function S(ze,et){if(1&ze&&(R._UZ(0,"tr",37),R.ALo(1,"selectApplicationLink"),R.ALo(2,"selectApplicationLink")),2&ze){const te=et.$implicit,Le=R.oxw();R.ekj("cursor-pointer",!Le.disableRouting),R.Q6J("perunWebAppsMiddleClickRouterLink",R.gM2(1,4,te,Le.disableRouting,Le.group,Le.member))("routerLink",R.gM2(2,9,te,Le.disableRouting,Le.group,Le.member))}}function $(ze,et){1&ze&&(R.TgZ(0,"perun-web-apps-alert",38),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.Q6J("alert_type","warn"),R.xp6(1),R.hij(" ",R.lcZ(2,2,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}let ht=(()=>{class ze{constructor(te,Le,Ie,De,xe){this.authResolver=te,this.tableConfigService=Le,this.dynamicPaginatingService=Ie,this.attributesManagerService=De,this.dialog=xe,this.displayedColumns=[],this.fedColumns=[],this.disableRouting=!1,this.searchString="",this.dateTo=new Date,this.dateFrom=this.yearAgo(),this.fedAttrNames=[],this.refreshTable=!1,this.parsedColumns=[],this.pageSizeOptions=A.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,f.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,b.b)(()=>this.loadApplicationsPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Le=>"id"!==Le)),this.dataSource=new M.Hy(this.dynamicPaginatingService,this.authResolver);const te=this.dateTo??new Date;this.dataSource.loadApplications(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(te),this.member?.userId??null,this.group?.id??null,this.getVoId()),this.dataSource.loading$.subscribe(Le=>{if(Le||!this.displayedColumns.includes("fedInfo"))return;this.displayedColumns=this.displayedColumns.filter(De=>!this.parsedColumns.includes(De)),this.parsedColumns=[];const Ie=this.dataSource.getData()[0];Ie&&this.parseColumns(Ie.formData)})}ngOnChanges(){this.refreshTable=!1,this.dataSource&&(this.child.paginator.pageIndex=0,this.loadApplicationsPage())}loadApplicationsPage(){const te="asc"===this.sort.direction?"ASCENDING":"DESCENDING",Le=this.dateTo??new Date;this.dataSource.loadApplications(this.child.paginator.pageSize,this.child.paginator.pageIndex,te,this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(Le),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0)}exportDisplayedData(te){(0,A.O6)((0,A.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn.bind(this)),te)}exportAllData(te){const Le="asc"===this.sort.direction?"ASCENDING":"DESCENDING",Ie=(0,A.kZ)();Ie.width="300px";const De=this.dialog.open(T.QQ,Ie),xe=this.dateTo??new Date;this.dataSource.getAllApplications(this.child.paginator.length,Le,this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(xe),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0).subscribe(ie=>{De.close(),(0,A.O6)((0,A.Xn)(ie,this.displayedColumns,this.getExportDataForColumn.bind(this)),te)})}getExportDataForColumn(te,Le){switch(Le){case"id":return te.id.toString();case"voId":return te.vo.id.toString();case"voName":return te.vo.name;case"groupId":return te.group?.id.toString()??"";case"groupName":return te.group?.name??"";case"type":return te.type;case"fedInfo":return te.fedInfo;case"formData":return this.stringify(te.formData);case"state":return te.state;case"extSourceName":return te.extSourceName;case"extSourceType":return te.extSourceType;case"user":return te.user?(0,A.bD)(te.user):"";case"createdBy":return te.createdBy;case"createdAt":return te.createdAt;case"modifiedBy":return te.modifiedBy;case"modifiedAt":return te.modifiedAt;default:return te[Le]}}getSortDataColumn(){if(!this.sort)return e.sY.DATE_CREATED;switch(this.sort.active){case"id":return e.sY.ID;case"createdAt":default:return e.sY.DATE_CREATED;case"type":return e.sY.TYPE;case"state":return e.sY.STATE;case"user":return e.sY.SUBMITTER;case"groupName":return e.sY.GROUP_NAME;case"modifiedBy":return e.sY.MODIFIED_BY}}getFriendlyName(te){const Le=te.lastIndexOf("/CN=");if(-1!==Le){const Ie=te.slice(Le+4,te.length).replace("/unstructuredName="," ");return-1!==Ie.lastIndexOf("\\")?te.slice(te.lastIndexOf("=")+1,te.length):Ie}return te}yearAgo(){const te=new Date;return te.setDate(te.getDate()-365),te}dateToString(te){return(0,D.p6)(te,"yyyy-MM-dd","en-GB")}getVoId(){return this.vo?this.vo.id:this.group?this.group.voId:this.member?this.member.voId:void 0}stringify(te){const Le=De=>Object.entries(De).reduce((xe,[ie,Te])=>xe[ie]instanceof Object?xe[ie]=Le(xe[ie]):(null==Te||"null"===Te||0===Te.length||(xe[ie]=Te),xe),{});let Ie=JSON.stringify(Le(te));return Ie=Ie.replace("{","["),Ie=Ie.replace("}","]"),Ie}getFormDataString(te){return this.stringify(te.formItem)}parseColumns(te){te.forEach(Le=>{this.displayedColumns.includes(Le.shortname)||this.displayedColumns.push(Le.shortname),this.parsedColumns.includes(Le.shortname)||this.parsedColumns.push(Le.shortname)})}getValue(te,Le){const Ie=te.filter(De=>De.shortname===Le);return 0===Ie.length?"":Ie[0].value??Ie[0].prefilledValue}getFedValue(te,Le){const Ie=new RegExp(this.fedAttrNames.map(xe=>","+xe+":").join("|"));if(null===te||0===te.length)return"";let De=[];return De=te.startsWith(Le+":")?te.split(Le+":"):te.split(","+Le+":"),De.length<2?"":(De=De[1].split(Ie),De[0].endsWith(",")?De[0].slice(0,-1):De[0])}}return ze.\u0275fac=function(te){return new(te||ze)(R.Y36(M.x4),R.Y36(B.dB),R.Y36(M.ly),R.Y36(e.H8),R.Y36(w.uw))},ze.\u0275cmp=R.Xpm({type:ze,selectors:[["app-applications-dynamic-list"]],viewQuery:function(te,Le){if(1&te&&(R.Gf(A.l9,7),R.Gf(C.YE,5)),2&te){let Ie;R.iGM(Ie=R.CRH())&&(Le.child=Ie.first),R.iGM(Ie=R.CRH())&&(Le.sort=Ie.first)}},inputs:{displayedColumns:"displayedColumns",fedColumns:"fedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",group:"group",member:"member",vo:"vo",includeGroupApps:"includeGroupApps",states:"states",dateTo:"dateTo",dateFrom:"dateFrom",fedAttrNames:"fedAttrNames",refreshTable:"refreshTable"},features:[R.TTD],decls:56,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","createdAt","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdAt"],["matColumnDef","voId"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],["matColumnDef","fedInfo"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"applicationType"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(te,Le){1&te&&(R.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),R.NdJ("exportDisplayedData",function(De){return Le.exportDisplayedData(De)})("exportAllData",function(De){return Le.exportAllData(De)}),R.YNc(2,Ve,2,0,"div",2),R.ALo(3,"async"),R.TgZ(4,"table",3),R.ynx(5,4),R.YNc(6,ve,3,3,"th",5),R.YNc(7,Ke,2,1,"td",6),R.BQk(),R.ynx(8,7),R.YNc(9,Ue,3,3,"th",5),R.YNc(10,oe,3,4,"td",6),R.BQk(),R.ynx(11,8),R.YNc(12,ce,3,3,"th",9),R.YNc(13,k,2,1,"td",6),R.BQk(),R.ynx(14,10),R.YNc(15,N,3,3,"th",9),R.YNc(16,be,2,1,"td",6),R.BQk(),R.ynx(17,11),R.YNc(18,W,3,3,"th",9),R.YNc(19,ue,2,1,"td",6),R.BQk(),R.ynx(20,12),R.YNc(21,Me,3,3,"th",9),R.YNc(22,ot,3,4,"td",6),R.BQk(),R.ynx(23,13),R.YNc(24,je,3,3,"th",5),R.YNc(25,ut,2,1,"td",6),R.BQk(),R.ynx(26,14),R.YNc(27,tt,3,3,"th",5),R.YNc(28,vt,3,3,"td",6),R.BQk(),R.ynx(29,15),R.YNc(30,ee,3,3,"th",9),R.YNc(31,nt,2,1,"td",6),R.BQk(),R.ynx(32,16),R.YNc(33,Ae,3,3,"th",9),R.YNc(34,Ee,2,1,"td",6),R.BQk(),R.ynx(35,17),R.YNc(36,ge,3,3,"th",5),R.YNc(37,Ce,4,2,"td",6),R.BQk(),R.ynx(38,18),R.YNc(39,fe,3,3,"th",9),R.YNc(40,r,2,2,"td",6),R.BQk(),R.ynx(41,19),R.YNc(42,u,3,3,"th",5),R.YNc(43,g,2,1,"td",6),R.BQk(),R.ynx(44,20),R.YNc(45,v,3,3,"th",9),R.YNc(46,h,3,4,"td",6),R.BQk(),R.ynx(47,21),R.YNc(48,a,3,3,"th",9),R.YNc(49,i,2,1,"td",6),R.BQk(),R.YNc(50,o,3,1,"ng-container",22),R.YNc(51,d,3,1,"ng-container",22),R.YNc(52,c,1,0,"tr",23),R.YNc(53,S,3,14,"tr",24),R.qZA()()(),R.YNc(54,$,3,4,"perun-web-apps-alert",25),R.ALo(55,"async")),2&te&&(R.Q6J("hidden",0===Le.dataSource.allObjectCount),R.xp6(1),R.Q6J("dataLength",Le.dataSource.allObjectCount)("pageSizeOptions",Le.pageSizeOptions)("tableId",Le.tableId),R.xp6(1),R.Q6J("ngIf",R.lcZ(3,11,Le.dataSource.loading$)),R.xp6(2),R.Q6J("dataSource",Le.dataSource),R.xp6(46),R.Q6J("ngForOf",Le.fedColumns),R.xp6(1),R.Q6J("ngForOf",Le.parsedColumns),R.xp6(1),R.Q6J("matHeaderRowDef",Le.displayedColumns),R.xp6(1),R.Q6J("matRowDefColumns",Le.displayedColumns),R.xp6(1),R.Q6J("ngIf",0===Le.dataSource.allObjectCount&&!1===R.lcZ(55,13,Le.dataSource.loading$)))},dependencies:[D.sg,D.O5,H.rH,C.YE,C.nU,O.BZ,O.fO,O.as,O.w1,O.Dz,O.nj,O.ge,O.ev,O.XQ,O.Gk,J.Ou,ne.w,G.Y,se.Q,Oe.l,V,D.Ov,D.uU,X.X$,q.h,pe.d,le.R,ye],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),ze})()},45256:($e,he,p)=>{"use strict";p.d(he,{k:()=>O});var e=p(95017),A=p(61744),C=p(64080),M=p(65412),f=p(81591),b=p(86511),D=p(77579),T=p(56451),R=p(39646),B=p(63900),w=p(68675),H=p(94650);let O=(()=>{class J{constructor(G,se,Oe,_e,Be,E,z,F,V,X,q){this.data=G,this.dialogRef=se,this.membersManagerService=Oe,this.voService=_e,this.registrarManager=Be,this.groupService=E,this.store=z,this.guiAuthResolver=F,this.requestService=V,this.addMemberService=X,this.notificator=q,this.loading=!1,this.searcher=new D.x,this.members=this.searcher.pipe((0,B.w)(pe=>(0,T.T)((0,R.of)(null),this.voService.getCompleteCandidatesForGroup(this.data.group.id,this.attrNames,pe))),(0,w.O)(void 0)),this.failed=[],this.selection=new e.Ov(!0,[]),this.attrNames=[C.r.USER_DEF_ORGANIZATION,C.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.getProperty("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("group")}ngOnInit(){this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group]),this.selection.changed.subscribe(G=>{this.addAuth=!!G.source.selected.every(se=>se.member)||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.data.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.data.group])}),this.registrarManager.invitationFormExists(this.data.group.voId,this.data.group.id).subscribe(G=>{this.showInvite=G})}add(){this.loading=!0,this.membersManagerService.addMemberCandidates({candidates:this.addMemberService.convertToMemberCandidates(this.selection.selected),vo:this.data.group.voId,group:this.data.group.id}).subscribe({next:()=>{this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD")},error:G=>{this.loading=!1,this.notificator.showRPCError(G)}})}invite(G){this.loading=!0,this.registrarManager.inviteMemberCandidates({candidates:this.addMemberService.convertToMemberCandidates(this.selection.selected),vo:this.data.group.voId,lang:G,group:this.data.group.id}).subscribe({next:()=>{this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE")},error:se=>{this.loading=!1,this.notificator.showRPCError(se)}})}cancel(G){this.dialogRef.close(G)}}return J.\u0275fac=function(G){return new(G||J)(H.Y36(M.WI),H.Y36(M.so),H.Y36(A.uq),H.Y36(A.YF),H.Y36(A.tk),H.Y36(A.ff),H.Y36(f.d6),H.Y36(f.x4),H.Y36(f.F5),H.Y36(b.A),H.Y36(f.V6))},J.\u0275cmp=H.Xpm({type:J,selectors:[["app-group-add-member-dialog"]],decls:2,vars:12,consts:[[3,"showInvite","loading","languages","manualAddingBlocked","addAuth","inviteAuth","failed","members","selection","theme","add","cancel","invite","search"]],template:function(G,se){1&G&&(H.TgZ(0,"app-add-member-dialog",0),H.NdJ("add",function(){return se.add()})("cancel",function(_e){return se.cancel(_e)})("invite",function(_e){return se.invite(_e)})("search",function(_e){return se.searcher.next(_e)}),H.ALo(1,"async"),H.qZA()),2&G&&H.Q6J("showInvite",se.showInvite)("loading",se.loading)("languages",se.languages)("manualAddingBlocked",se.data.manualAddingBlocked)("addAuth",se.addAuth)("inviteAuth",se.inviteAuth)("failed",se.failed)("members",H.lcZ(1,10,se.members))("selection",se.selection)("theme","group-theme")}}),J})()},51525:($e,he,p)=>{"use strict";p.d(he,{H:()=>O});var e=p(65412),A=p(61744),C=p(81591),M=p(95017),f=p(64080),b=p(86511),D=p(77579),T=p(56451),R=p(39646),B=p(63900),w=p(68675),H=p(94650);let O=(()=>{class J{constructor(G,se,Oe,_e,Be,E,z,F,V){this.data=G,this.dialogRef=se,this.membersManagerService=Oe,this.voService=_e,this.registrarManager=Be,this.store=E,this.requestService=z,this.addMemberService=F,this.notificator=V,this.loading=!1,this.showInvite=!1,this.searcher=new D.x,this.members=this.searcher.pipe((0,B.w)(X=>(0,T.T)((0,R.of)(null),this.voService.getCompleteCandidatesForVo(this.data.voId,this.attrNames,X))),(0,w.O)(void 0)),this.failed=[],this.selection=new M.Ov(!0,[]),this.attrNames=[f.r.USER_DEF_ORGANIZATION,f.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.getProperty("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("vo")}ngOnInit(){this.registrarManager.invitationFormExists(this.data.voId).subscribe(G=>{this.showInvite=G})}add(){this.loading=!0,this.membersManagerService.addMemberCandidates({candidates:this.addMemberService.convertToMemberCandidates(this.selection.selected),vo:this.data.voId}).subscribe({next:()=>{this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD")},error:G=>{this.loading=!1,this.notificator.showRPCError(G)}})}invite(G){this.loading=!0,this.registrarManager.inviteMemberCandidates({candidates:this.addMemberService.convertToMemberCandidates(this.selection.selected),vo:this.data.voId,lang:G}).subscribe({next:()=>{this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE")},error:se=>{this.loading=!1,this.notificator.showRPCError(se)}})}cancel(G){this.dialogRef.close(G)}}return J.\u0275fac=function(G){return new(G||J)(H.Y36(e.WI),H.Y36(e.so),H.Y36(A.uq),H.Y36(A.YF),H.Y36(A.tk),H.Y36(C.d6),H.Y36(C.F5),H.Y36(b.A),H.Y36(C.V6))},J.\u0275cmp=H.Xpm({type:J,selectors:[["app-vo-add-member-dialog"]],decls:2,vars:9,consts:[[3,"loading","showInvite","languages","failed","members","selection","theme","add","cancel","invite","search"]],template:function(G,se){1&G&&(H.TgZ(0,"app-add-member-dialog",0),H.NdJ("add",function(){return se.add()})("cancel",function(_e){return se.cancel(_e)})("invite",function(_e){return se.invite(_e)})("search",function(_e){return se.searcher.next(_e)}),H.ALo(1,"async"),H.qZA()),2&G&&H.Q6J("loading",se.loading)("showInvite",se.showInvite)("languages",se.languages)("failed",se.failed)("members",H.lcZ(1,7,se.members))("selection",se.selection)("theme","vo-theme")}}),J})()},55857:($e,he,p)=>{"use strict";p.d(he,{W:()=>V});var e=p(61744),A=p(10036),C=p(81591),M=p(24006),f=p(36895),b=p(9244),D=p(23325),T=p(94650),R=p(65412),B=p(4859),w=p(51572),H=p(10266),O=p(96214),J=p(39798),ne=p(64901),G=p(68788),se=p(99168),Oe=p(89383);function _e(X,q){if(1&X){const pe=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){T.CHM(pe);const ye=T.oxw();return T.KtG(ye.showDetails(!0))}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&X&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function Be(X,q){if(1&X){const pe=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){T.CHM(pe);const ye=T.oxw();return T.KtG(ye.showDetails(!1))}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&X&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function E(X,q){if(1&X){const pe=T.EpF();T.TgZ(0,"button",11),T.NdJ("click",function(){T.CHM(pe);const ye=T.oxw();return T.KtG(ye.setColumns())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&X){const pe=T.oxw();T.Q6J("disabled",pe.showAllDetails),T.xp6(1),T.hij(" ",T.lcZ(2,2,"VO_DETAIL.APPLICATION.SET_COLUMN_SETTINGS")," ")}}function z(X,q){1&X&&T._UZ(0,"mat-spinner",12)}function F(X,q){if(1&X&&(T.TgZ(0,"div"),T._UZ(1,"app-applications-dynamic-list",13),T.qZA()),2&X){const pe=T.oxw();T.xp6(1),T.Q6J("tableId",pe.showAllDetails?pe.detailTableId:pe.tableId)("searchString",pe.filterValue)("displayedColumns",pe.currentColumns)("fedColumns",pe.configuredFedColumns)("fedAttrNames",pe.fedAttrNames)("states",pe.currentStates)("dateFrom",pe.startDate.value)("dateTo",pe.endDate.value)("refreshTable",pe.refresh)("group",pe.group)}}let V=(()=>{class X{constructor(pe,le,ye,Ve,ve){this.registrarManager=pe,this.guiAuthResolver=le,this.entityStorageService=ye,this.attributeManager=Ve,this.dialog=ve,this.currentStates=["NEW","VERIFIED"],this.simpleColumns=["createdAt","type","state","createdBy","modifiedBy"],this.detailedColumns=["createdAt","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=A.Af,this.tableId=A.gB,this.refresh=!1,this.fedAttrNames=[],this.currentColumns=[],this.configuredColumns=[],this.configuredFedColumns=[],this.columnsAuth=!1,this.loading=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.startDate=new M.p4((0,f.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new M.p4((0,f.p6)(new Date,"yyyy-MM-dd","en-GB")),this.attributeManager.getIdpAttributeDefinitions().subscribe(pe=>{pe.forEach(le=>{this.fedAttrNames.includes(le.friendlyName)||this.fedAttrNames.push(le.friendlyName)})}),this.loadViewConfiguration()}yearAgo(){const pe=new Date;return pe.setDate(pe.getDate()-365),pe}applyFilter(pe){this.filterValue=pe}showDetails(pe){this.loading=!0,this.showAllDetails=pe,this.loadViewConfiguration()}refreshColumns(){return["id"].concat(this.showAllDetails?this.detailedColumns:this.configuredColumns.length>0?this.configuredColumns:this.simpleColumns)}loadViewConfiguration(){this.attributeManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:def:applicationViewPreferences").subscribe(pe=>{null!=pe?.value&&pe?.value.length>0?(this.configuredColumns=pe.value,this.configuredFedColumns=this.configuredColumns.filter(le=>this.fedAttrNames.includes(le))):(this.configuredColumns=[],this.configuredFedColumns=[]),this.columnsAuth=pe.writable,this.currentColumns=this.refreshColumns(),this.loading=!1})}setColumns(){const pe=(0,b.kZ)();pe.width="650px",pe.data={columns:[],groupId:this.group.id,theme:"group-theme"},this.dialog.open(D.a,pe).afterClosed().subscribe(ye=>{ye&&this.loadViewConfiguration()})}}return X.id="GroupApplicationsComponent",X.\u0275fac=function(pe){return new(pe||X)(T.Y36(e.tk),T.Y36(C.x4),T.Y36(C.fb),T.Y36(e.H8),T.Y36(R.uw))},X.\u0275cmp=T.Xpm({type:X,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(pe,le){2&pe&&T.ekj("router-component",le.true)},decls:15,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"stateChanged"],[3,"placeholder","filter"],[3,"endDate","startDate"],["matTooltipPosition","above",3,"matTooltipDisabled","matTooltip"],["mat-stroked-button","",3,"disabled","click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],["mat-stroked-button","",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","displayedColumns","fedColumns","fedAttrNames","states","dateFrom","dateTo","refreshTable","group"]],template:function(pe,le){1&pe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),T.NdJ("refresh",function(){return le.refresh=!le.refresh}),T.qZA(),T.YNc(5,_e,3,3,"button",2),T.YNc(6,Be,3,3,"button",2),T.TgZ(7,"perun-web-apps-application-state-selector",3),T.NdJ("stateChanged",function(Ve){return le.currentStates=Ve}),T.qZA(),T.TgZ(8,"perun-web-apps-debounce-filter",4),T.NdJ("filter",function(Ve){return le.applyFilter(Ve)}),T.qZA(),T._UZ(9,"perun-web-apps-date-range",5),T.TgZ(10,"span",6),T.ALo(11,"translate"),T.YNc(12,E,3,4,"button",7),T.qZA()(),T.YNc(13,z,1,0,"mat-spinner",8),T.YNc(14,F,2,10,"div",9)),2&pe&&(T.xp6(1),T.Oqu(T.lcZ(2,11,"VO_DETAIL.APPLICATION.TITLE")),T.xp6(4),T.Q6J("ngIf",!le.showAllDetails),T.xp6(1),T.Q6J("ngIf",le.showAllDetails),T.xp6(2),T.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),T.xp6(1),T.Q6J("endDate",le.endDate)("startDate",le.startDate),T.xp6(1),T.s9C("matTooltip",T.lcZ(11,13,"VO_DETAIL.APPLICATION.COLUMNS_TOOLTIP")),T.Q6J("matTooltipDisabled",!le.showAllDetails),T.xp6(2),T.Q6J("ngIf",le.columnsAuth),T.xp6(1),T.Q6J("ngIf",le.loading),T.xp6(1),T.Q6J("ngIf",!le.loading))},dependencies:[f.O5,B.lW,w.Ou,H.gM,O.t,J.S,ne.P,G.x,se.S,Oe.X$]}),X})()},13600:($e,he,p)=>{"use strict";p.d(he,{y:()=>nt});var e=p(95017),A=p(81591),C=p(64080),M=p(53455),f=p(61744),b=p(10036),D=p(9244),T=p(74414),R=p(24006),B=p(45256),w=p(94742),H=p(65412),O=p(94650),J=p(36895),ne=p(4859),G=p(51572),se=p(10266),Oe=p(71948),_e=p(98380),Be=p(25788),E=p(7434),z=p(89383);function F(Ae,Ee){1&Ae&&O._UZ(0,"mat-spinner",6)}const V=function(){return["select","id","name","description"]};function X(Ae,Ee){if(1&Ae){const ge=O.EpF();O.TgZ(0,"div",7)(1,"mat-radio-group",8),O.NdJ("ngModelChange",function(Ne){O.CHM(ge);const Ce=O.oxw();return O.KtG(Ce.copyType=Ne)}),O.TgZ(2,"span",9),O.ALo(3,"translate"),O.TgZ(4,"mat-radio-button",10),O._uU(5),O.ALo(6,"translate"),O.qZA()(),O.TgZ(7,"mat-radio-button",11),O._uU(8),O.ALo(9,"translate"),O.qZA()(),O.TgZ(10,"perun-web-apps-alert",12),O._uU(11),O.ALo(12,"translate"),O.qZA(),O.TgZ(13,"h5",13),O._uU(14),O.ALo(15,"translate"),O.qZA(),O.TgZ(16,"perun-web-apps-immediate-filter",14),O.NdJ("filter",function(Ne){O.CHM(ge);const Ce=O.oxw();return O.KtG(Ce.applyFilter(Ne))}),O.qZA(),O._UZ(17,"perun-web-apps-groups-list",15),O.qZA()}if(2&Ae){const ge=O.oxw();O.xp6(1),O.Q6J("ngModel",ge.copyType),O.xp6(1),O.s9C("matTooltip",O.lcZ(3,15,"DIALOGS.COPY_MEMBERS.DISABLED_COPY_SELECTION")),O.Q6J("matTooltipDisabled",ge.data.members.length>0),O.xp6(2),O.Q6J("disabled",0===ge.data.members.length),O.xp6(1),O.hij(" ",O.lcZ(6,17,"DIALOGS.COPY_MEMBERS.COPY_SELECTION")," "),O.xp6(3),O.hij(" ",O.lcZ(9,19,"DIALOGS.COPY_MEMBERS.COPY_ALL")," "),O.xp6(3),O.hij(" ",O.lcZ(12,21,"DIALOGS.COPY_MEMBERS.ATTRIBUTES_WARN")," "),O.xp6(3),O.Oqu(O.lcZ(15,23,"DIALOGS.COPY_MEMBERS.SELECT_GROUPS")),O.xp6(2),O.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),O.xp6(1),O.Q6J("groups",ge.assignableGroups)("selection",ge.selection)("disableRouting",!0)("displayedColumns",O.DdM(25,V))("filter",ge.filterValue)("tableId",ge.tableId)}}let q=(()=>{class Ae{constructor(ge,we,Ne,Ce,fe,r){this.dialogRef=ge,this.data=we,this.groupsService=Ne,this.guiAuthResolver=Ce,this.translate=fe,this.notificator=r,this.loading=!1,this.copyType="all",this.filterValue="",this.tableId=b.rc,this.assignableGroups=[],this.selection=new e.Ov(!0,[]),this.groupAttrNames=[C.r.GROUP_SYNC_ENABLED,C.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.loading=!0,this.data.members.length>0&&(this.copyType="selection"),this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(ge=>{this.assignableGroups=this.filterAssignableGroups(ge),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const ge="selection"===this.copyType?this.data.members.map(we=>we.id):[];this.groupsService.copyMembers(this.data.groupId,this.selection.selected.map(we=>we.id),ge).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.COPY_MEMBERS.SUCCESS")),this.dialogRef.close(!0)},error:()=>{this.notificator.showError(this.translate.instant("DIALOGS.COPY_MEMBERS.ERROR")),this.loading=!1}})}applyFilter(ge){this.filterValue=ge}filterAssignableGroups(ge){const we=[];for(const Ne of ge)"members"!==Ne.name&&Ne.id!==this.data.groupId&&!(0,D.bx)(Ne)&&!(0,D.jh)(Ne.attributes,C.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("dest-copyMembers_Group_List_List_boolean_policy",[Ne])&&we.push(Ne);return we}}return Ae.\u0275fac=function(ge){return new(ge||Ae)(O.Y36(H.so),O.Y36(H.WI),O.Y36(f.ff),O.Y36(A.x4),O.Y36(A.Te),O.Y36(A.V6))},Ae.\u0275cmp=O.Xpm({type:Ae,selectors:[["app-copy-members-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"flex-container",3,"ngModel","ngModelChange"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","selection",3,"disabled"],["value","all"],["alert_type","warn",1,"mt-4"],[1,"mt-4"],[3,"placeholder","filter"],[3,"groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(ge,we){1&ge&&(O.TgZ(0,"div")(1,"h1",0),O._uU(2),O.ALo(3,"translate"),O.qZA(),O.YNc(4,F,1,0,"mat-spinner",1),O.YNc(5,X,18,26,"div",2),O.TgZ(6,"div",3)(7,"button",4),O.NdJ("click",function(){return we.onCancel()}),O._uU(8),O.ALo(9,"translate"),O.qZA(),O.TgZ(10,"button",5),O.NdJ("click",function(){return we.onSubmit()}),O._uU(11),O.ALo(12,"translate"),O.qZA()()()),2&ge&&(O.Tol(we.data.theme),O.xp6(2),O.Oqu(O.lcZ(3,9,"DIALOGS.COPY_MEMBERS.TITLE")),O.xp6(2),O.Q6J("ngIf",we.loading),O.xp6(1),O.Q6J("ngIf",!we.loading),O.xp6(3),O.hij(" ",O.lcZ(9,11,"DIALOGS.COPY_MEMBERS.CANCEL")," "),O.xp6(2),O.Q6J("disabled",we.loading||we.selection.isEmpty()),O.xp6(1),O.hij(" ",O.lcZ(12,13,"DIALOGS.COPY_MEMBERS.COPY")," "))},dependencies:[J.O5,R.JJ,R.On,ne.lW,H.uh,H.xY,H.H8,G.Ou,se.gM,Oe.VQ,Oe.U0,_e.w,Be.W,E.L,z.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Ae})();var pe=p(3238),le=p(59549),ye=p(84385),Ve=p(28255),ve=p(96214),Ke=p(64901),Ue=p(4811),oe=p(20551);let ce=(()=>{class Ae{transform(ge,we){return!!("members"===ge.name||(0,D.bx)(ge)||"add"===we&&(0,D.jh)(ge.attributes,C.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING))}}return Ae.\u0275fac=function(ge){return new(ge||Ae)},Ae.\u0275pipe=O.Yjl({name:"groupMembersActionButtonDisabled",type:Ae,pure:!0}),Ae})(),k=(()=>{class Ae{transform(ge,we){return"members"===ge.name?"GROUP_DETAIL.MEMBERS.BUTTON_DISABLED_MEMBERS_GROUP":(0,D.bx)(ge)?"GROUP_DETAIL.MEMBERS.SYNCHRONIZED":"add"===we&&(0,D.jh)(ge.attributes,C.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)?"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED":""}}return Ae.\u0275fac=function(ge){return new(ge||Ae)},Ae.\u0275pipe=O.Yjl({name:"groupMembersActionButtonDisabledTooltip",type:Ae,pure:!0}),Ae})();function N(Ae,Ee){1&Ae&&(O.TgZ(0,"perun-web-apps-alert",17),O._uU(1),O.ALo(2,"translate"),O.qZA()),2&Ae&&(O.xp6(1),O.hij(" ",O.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function be(Ae,Ee){if(1&Ae){const ge=O.EpF();O.TgZ(0,"button",18),O.NdJ("click",function(){O.CHM(ge);const Ne=O.oxw();return O.KtG(Ne.onAddMember())}),O.ALo(1,"groupMembersActionButtonDisabled"),O._uU(2),O.ALo(3,"translate"),O.qZA()}if(2&Ae){const ge=O.oxw();O.Q6J("disabled",O.xi3(1,2,ge.group,"add")),O.xp6(2),O.hij(" ",O.lcZ(3,5,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function W(Ae,Ee){if(1&Ae&&(O.TgZ(0,"button",19),O.ALo(1,"groupMembersActionButtonDisabled"),O._uU(2),O.ALo(3,"translate"),O.qZA()),2&Ae){const ge=O.oxw(),we=O.MAs(17);O.Q6J("disabled",O.lcZ(1,3,ge.group))("matMenuTriggerFor",we),O.xp6(2),O.hij(" ",O.lcZ(3,5,"GROUP_DETAIL.MEMBERS.INVITE")," ")}}function ue(Ae,Ee){if(1&Ae){const ge=O.EpF();O.TgZ(0,"button",20),O.NdJ("click",function(){O.CHM(ge);const Ne=O.oxw();return O.KtG(Ne.onInviteMember())}),O.ALo(1,"groupMembersActionButtonDisabled"),O._uU(2),O.ALo(3,"translate"),O.qZA()}if(2&Ae){const ge=O.oxw();O.Q6J("disabled",O.lcZ(1,2,ge.group)),O.xp6(2),O.hij(" ",O.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_ONE")," ")}}function Me(Ae,Ee){if(1&Ae){const ge=O.EpF();O.TgZ(0,"button",20),O.NdJ("click",function(){O.CHM(ge);const Ne=O.oxw();return O.KtG(Ne.onBulkInvite())}),O.ALo(1,"groupMembersActionButtonDisabled"),O._uU(2),O.ALo(3,"translate"),O.qZA()}if(2&Ae){const ge=O.oxw();O.Q6J("disabled",O.lcZ(1,2,ge.group)),O.xp6(2),O.hij(" ",O.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_BULK")," ")}}function ot(Ae,Ee){if(1&Ae){const ge=O.EpF();O.TgZ(0,"button",21),O.NdJ("click",function(){O.CHM(ge);const Ne=O.oxw();return O.KtG(Ne.onCopyMembers())}),O._uU(1),O.ALo(2,"translate"),O.qZA()}if(2&Ae){const ge=O.oxw();O.Q6J("disabled",ge.copyDisabled),O.xp6(1),O.hij(" ",O.lcZ(2,2,"GROUP_DETAIL.MEMBERS.COPY_MEMBERS")," ")}}function je(Ae,Ee){if(1&Ae){const ge=O.EpF();O.TgZ(0,"button",22),O.NdJ("click",function(){O.CHM(ge);const Ne=O.oxw();return O.KtG(Ne.onRemoveMembers())}),O.ALo(1,"groupMembersActionButtonDisabled"),O._uU(2),O.ALo(3,"translate"),O.qZA()}if(2&Ae){const ge=O.oxw();O.Q6J("disabled",ge.selection.isEmpty()||O.lcZ(1,2,ge.group)),O.xp6(2),O.hij(" ",O.lcZ(3,4,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function ut(Ae,Ee){if(1&Ae&&(O.TgZ(0,"mat-option",23),O._uU(1),O.ALo(2,"memberStatus"),O.qZA()),2&Ae){const ge=Ee.$implicit;O.Q6J("value",ge),O.xp6(1),O.Oqu(O.lcZ(2,2,ge))}}function tt(Ae,Ee){if(1&Ae&&(O.TgZ(0,"mat-option",23),O._uU(1),O.ALo(2,"memberStatus"),O.qZA()),2&Ae){const ge=Ee.$implicit;O.Q6J("value",ge),O.xp6(1),O.Oqu(O.lcZ(2,2,ge))}}function vt(Ae,Ee){1&Ae&&O._UZ(0,"mat-spinner",24)}function ee(Ae,Ee){if(1&Ae&&O._UZ(0,"perun-web-apps-members-dynamic-list",25),2&Ae){const ge=O.oxw();O.Q6J("attrNames",ge.memberAttrNames)("groupId",ge.group.id)("tableId",ge.tableId)("displayedColumns",ge.displayedColumns)("searchString",ge.searchString)("updateTable",ge.updateTable)("selectedGroupStatuses",ge.selectedGroupStatuses)("selectedStatuses",ge.selectedStatuses)("selection",ge.selection)("voId",ge.group.voId)("isMembersGroup","members"===ge.group.name)}}let nt=(()=>{class Ae{constructor(ge,we,Ne,Ce,fe,r,u,g){this.groupService=ge,this.dialog=we,this.guiAuthResolver=Ne,this.storeService=Ce,this.attributesManager=fe,this.apiRequest=r,this.notificator=u,this.entityStorageService=g,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=b.dI,this.memberAttrNames=[C.r.MEMBER_DEF_ORGANIZATION,C.r.MEMBER_DEF_MAIL,C.r.USER_DEF_ORGANIZATION,C.r.USER_DEF_PREFERRED_MAIL,C.r.MEMBER_DEF_EXPIRATION,C.r.MEMBER_DEF_GROUP_EXPIRATION,C.r.MEMBER_LIFECYCLE_ALTERABLE],this.copyDisabled=!1,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new R.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new R.p4,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"],this.groupAttrNames=[C.r.GROUP_SYNC_ENABLED,C.r.GROUP_LAST_SYNC_STATE,C.r.GROUP_LAST_SYNC_TIMESTAMP,C.r.GROUP_STRUCTURE_SYNC_ENABLED,C.r.GROUP_LAST_STRUCTURE_SYNC_STATE,C.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,C.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.loading=!0,this.selection=new e.Ov(!0,[]),this.statuses.setValue(this.selectedStatuses),this.groupStatuses.setValue(this.selectedGroupStatuses),this.memberAttrNames=this.memberAttrNames.concat(this.storeService.getLoginAttributeNames()),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.group.voId).then(()=>this.loadPage(this.group.id)),this.isCopyMembersDisabled()}loadPage(ge){this.groupService.getRichGroupByIdWithAttributesByNames(ge,this.groupAttrNames).subscribe(we=>{this.group=we,this.synchEnabled=(0,D.bx)(this.group),this.loading=!1})}setAuthRights(){this.addAuth=this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("removeMembers_Group_List_policy",[this.group]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","type","fullName","status","groupStatus","organization","email","logins"],this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_String_String_String_policy",[this.group]),this.copyAuth=this.guiAuthResolver.isAuthorized("source-copyMembers_Group_List_List_boolean_policy",[this.group])}onSearchByString(ge){this.searchString=ge,this.selection.clear()}onAddMember(){const ge=(0,D.kZ)();ge.width="1000px",ge.data={group:this.group,manualAddingBlocked:this.blockManualMemberAdding},this.dialog.open(B.k,ge).afterClosed().subscribe(Ne=>{Ne&&(this.selection.clear(),this.updateTable=!this.updateTable,this.isCopyMembersDisabled())})}onRemoveMembers(){const ge=(0,D.kZ)();ge.width="450px",ge.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(M.X,ge).afterClosed().subscribe(Ne=>{Ne&&(this.selection.clear(),this.updateTable=!this.updateTable,this.isCopyMembersDisabled())})}onInviteMember(){const ge=(0,D.kZ)();ge.width="650px",ge.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(T.R,ge)}onBulkInvite(){const ge=(0,D.kZ)();ge.width="650px",ge.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.F,ge)}onCopyMembers(){const ge=(0,D.kZ)();ge.width="650px",ge.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme",members:this.selection.selected},this.dialog.open(q,ge).afterClosed().subscribe(Ne=>{Ne&&this.selection.clear()})}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const ge=this.statuses.value;return ge?`${ge[0]} ${ge.length>1?"(+"+(ge.length-1).toString()+" "+(2===ge.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked(ge){return new Promise(we=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(ge,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe({next:Ne=>{this.blockManualMemberAdding=null!==Ne.value,we()},error:Ne=>{"PrivilegeException"!==Ne.name&&this.notificator.showError(Ne.name),we()}})})}isCopyMembersDisabled(){this.copyDisabled=!1,this.groupService.getGroupDirectMembersCount(this.group.id).subscribe({next:ge=>{this.copyDisabled=0===ge},error:()=>{this.copyDisabled=!0}})}changeVoStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}changeGroupStatuses(){this.selection.clear(),this.selectedGroupStatuses=this.groupStatuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable,this.isCopyMembersDisabled()}}return Ae.id="GroupMembersComponent",Ae.\u0275fac=function(ge){return new(ge||Ae)(O.Y36(f.ff),O.Y36(H.uw),O.Y36(A.x4),O.Y36(A.d6),O.Y36(f.H8),O.Y36(A.F5),O.Y36(A.V6),O.Y36(A.fb))},Ae.\u0275cmp=O.Xpm({type:Ae,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(ge,we){2&ge&&O.ekj("router-component",we.true)},decls:49,vars:63,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["class","mr-2 action-button","color","accent","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["class","action-button","mat-menu-item","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","data-cy","remove-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","fix-select"],["multiple","",3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId","isMembersGroup",4,"ngIf"],["alert_type","warn"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"group-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId","isMembersGroup"]],template:function(ge,we){1&ge&&(O.TgZ(0,"h1",0),O._uU(1),O.ALo(2,"translate"),O.qZA(),O.YNc(3,N,3,3,"perun-web-apps-alert",1),O.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),O.NdJ("click",function(){return we.refreshTable()}),O.qZA(),O.TgZ(6,"span",4),O.ALo(7,"groupMembersActionButtonDisabled"),O.ALo(8,"translate"),O.ALo(9,"groupMembersActionButtonDisabledTooltip"),O.YNc(10,be,4,7,"button",5),O.qZA(),O.TgZ(11,"span",4),O.ALo(12,"groupMembersActionButtonDisabled"),O.ALo(13,"translate"),O.ALo(14,"groupMembersActionButtonDisabledTooltip"),O.YNc(15,W,4,7,"button",6),O.TgZ(16,"mat-menu",null,7),O.YNc(18,ue,4,6,"button",8),O.YNc(19,Me,4,6,"button",8),O.qZA()(),O.TgZ(20,"span",4),O.ALo(21,"translate"),O.YNc(22,ot,3,4,"button",9),O.qZA(),O.TgZ(23,"span",4),O.ALo(24,"groupMembersActionButtonDisabled"),O.ALo(25,"translate"),O.ALo(26,"groupMembersActionButtonDisabledTooltip"),O.YNc(27,je,4,6,"button",10),O.qZA(),O.TgZ(28,"mat-form-field",11)(29,"mat-label"),O._uU(30),O.ALo(31,"translate"),O.qZA(),O.TgZ(32,"mat-select",12),O.NdJ("closed",function(){return we.changeVoStatuses()}),O.TgZ(33,"mat-select-trigger"),O._uU(34),O.ALo(35,"memberStatus"),O.qZA(),O.YNc(36,ut,3,4,"mat-option",13),O.qZA()(),O.TgZ(37,"mat-form-field",11)(38,"mat-label"),O._uU(39),O.ALo(40,"translate"),O.qZA(),O.TgZ(41,"mat-select",12),O.NdJ("closed",function(){return we.changeGroupStatuses()}),O.TgZ(42,"mat-select-trigger"),O._uU(43),O.ALo(44,"memberStatus"),O.qZA(),O.YNc(45,tt,3,4,"mat-option",13),O.qZA()(),O.TgZ(46,"perun-web-apps-debounce-filter",14),O.NdJ("filter",function(Ce){return we.onSearchByString(Ce)}),O.qZA()(),O.YNc(47,vt,1,0,"mat-spinner",15),O.YNc(48,ee,1,11,"perun-web-apps-members-dynamic-list",16)),2&ge&&(O.xp6(1),O.Oqu(O.lcZ(2,31,"GROUP_DETAIL.MEMBERS.TITLE")),O.xp6(2),O.Q6J("ngIf",we.synchEnabled),O.xp6(3),O.s9C("matTooltip",O.lcZ(8,36,O.xi3(9,38,we.group,"add"))),O.Q6J("matTooltipDisabled",!O.xi3(7,33,we.group,"add"))("matTooltipPosition","above"),O.xp6(4),O.Q6J("ngIf",we.addAuth),O.xp6(1),O.s9C("matTooltip",O.lcZ(13,43,O.lcZ(14,45,we.group))),O.Q6J("matTooltipDisabled",!O.lcZ(12,41,we.group))("matTooltipPosition","above"),O.xp6(4),O.Q6J("ngIf",we.inviteAuth),O.xp6(3),O.Q6J("ngIf",we.inviteAuth),O.xp6(1),O.Q6J("ngIf",we.inviteAuth),O.xp6(1),O.s9C("matTooltip",O.lcZ(21,47,"GROUP_DETAIL.MEMBERS.COPY_MEMBERS_DISABLED")),O.Q6J("matTooltipDisabled",!we.copyDisabled)("matTooltipPosition","above"),O.xp6(2),O.Q6J("ngIf",we.copyAuth),O.xp6(1),O.s9C("matTooltip",O.lcZ(25,51,O.lcZ(26,53,we.group))),O.Q6J("matTooltipDisabled",!O.lcZ(24,49,we.group))("matTooltipPosition","above"),O.xp6(4),O.Q6J("ngIf",we.removeAuth),O.xp6(3),O.Oqu(O.lcZ(31,55,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),O.xp6(2),O.Q6J("formControl",we.statuses),O.xp6(2),O.hij(" ",O.lcZ(35,57,we.displaySelectedStatuses())," "),O.xp6(2),O.Q6J("ngForOf",we.statusList),O.xp6(3),O.Oqu(O.lcZ(40,59,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),O.xp6(2),O.Q6J("formControl",we.groupStatuses),O.xp6(2),O.hij(" ",O.lcZ(44,61,we.displaySelectedGroupStatuses())," "),O.xp6(2),O.Q6J("ngForOf",we.groupStatusList),O.xp6(1),O.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),O.xp6(1),O.Q6J("ngIf",we.loading),O.xp6(1),O.Q6J("ngIf",!we.loading))},dependencies:[J.sg,J.O5,pe.ey,le.KE,le.hX,R.JJ,R.oH,ne.lW,ye.gD,ye.$L,G.Ou,se.gM,Ve.VK,Ve.OP,Ve.p6,_e.w,ve.t,Ke.P,Ue.m,z.X$,oe.l,ce,k],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),Ae})()},37240:($e,he,p)=>{"use strict";p.d(he,{q:()=>ee});var e=p(95017),A=p(61744),C=p(10036),M=p(65412),f=p(81591),D=(p(37433),p(94650)),T=p(89383),R=p(36895),B=p(24006),w=p(4859),H=p(51572),O=p(10266),J=p(90455),ne=p(86257),G=p(62109),se=p(64901);const Oe=["list"],_e=["stepper"];function Be(nt,Ae){1&nt&&D._UZ(0,"mat-spinner",4)}function E(nt,Ae){1&nt&&(D._uU(0),D.ALo(1,"translate")),2&nt&&D.Oqu(D.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function z(nt,Ae){1&nt&&(D._uU(0),D.ALo(1,"translate")),2&nt&&D.Oqu(D.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}const F=function(){return["select","id","name","facility","tags","description"]};function V(nt,Ae){if(1&nt){const Ee=D.EpF();D.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),D.YNc(4,E,2,3,"ng-template",9),D.TgZ(5,"perun-web-apps-debounce-filter",10),D.NdJ("filter",function(we){D.CHM(Ee);const Ne=D.oxw();return D.KtG(Ne.applyFilter(we))}),D.ALo(6,"translate"),D.qZA(),D._UZ(7,"perun-web-apps-resources-list",11,12),D.qZA(),D.TgZ(9,"mat-step"),D.YNc(10,z,2,3,"ng-template",9),D.TgZ(11,"mat-slide-toggle",13),D.NdJ("toggleChange",function(){D.CHM(Ee);const we=D.oxw();return D.KtG(we.changeSubgroupsMessage())})("ngModelChange",function(we){D.CHM(Ee);const Ne=D.oxw();return D.KtG(Ne.autoAssignSubgroups=we)}),D._uU(12),D.ALo(13,"translate"),D.qZA(),D.TgZ(14,"div",14),D._UZ(15,"i",15),D.qZA(),D.TgZ(16,"mat-slide-toggle",13),D.NdJ("toggleChange",function(){D.CHM(Ee);const we=D.oxw();return D.KtG(we.changeInactiveMessage())})("ngModelChange",function(we){D.CHM(Ee);const Ne=D.oxw();return D.KtG(Ne.asActive=we)}),D._uU(17),D.ALo(18,"translate"),D.qZA(),D.TgZ(19,"div",14),D._uU(20),D.qZA(),D.TgZ(21,"mat-slide-toggle",13),D.NdJ("toggleChange",function(){D.CHM(Ee);const we=D.oxw();return D.KtG(we.changeAsyncMessage())})("ngModelChange",function(we){D.CHM(Ee);const Ne=D.oxw();return D.KtG(Ne.async=we)}),D._uU(22),D.ALo(23,"translate"),D.qZA(),D.TgZ(24,"div",14),D._uU(25),D.qZA()()()()}if(2&nt){const Ee=D.MAs(8),ge=D.oxw();D.xp6(1),D.Q6J("linear",!0),D.xp6(2),D.Q6J("completed",0!==ge.selection.selected.length&&void 0!==Ee&&Ee.addAuth),D.xp6(2),D.s9C("placeholder",D.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),D.xp6(2),D.Q6J("filterValue",ge.filterValue)("groupToResource",ge.data.group)("disableRouting",!0)("resources",ge.resources)("selection",ge.selection)("displayedColumns",D.DdM(27,F))("tableId",ge.tableId),D.xp6(4),D.Q6J("ngModel",ge.autoAssignSubgroups),D.xp6(1),D.hij(" ",D.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),D.xp6(3),D.Q6J("innerHTML",ge.autoAssignHint,D.oJD),D.xp6(1),D.Q6J("ngModel",ge.asActive),D.xp6(1),D.hij(" ",D.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),D.xp6(3),D.hij(" ",ge.asActiveHint," "),D.xp6(1),D.Q6J("ngModel",ge.async),D.xp6(1),D.hij(" ",D.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),D.xp6(3),D.hij(" ",ge.asyncHint," ")}}function X(nt,Ae){if(1&nt){const Ee=D.EpF();D.TgZ(0,"button",22),D.NdJ("click",function(){D.CHM(Ee);const we=D.oxw(2);return D.KtG(we.stepperPrevious())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}2&nt&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function q(nt,Ae){if(1&nt){const Ee=D.EpF();D.TgZ(0,"button",23),D.NdJ("click",function(){D.CHM(Ee);const we=D.oxw(2);return D.KtG(we.stepperNext())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&nt){const Ee=D.oxw(2);D.ekj("ml-2",void 0!==Ee.stepper&&0!==Ee.stepper.selectedIndex)("ml-auto",!(void 0!==Ee.stepper&&0!==Ee.stepper.selectedIndex)),D.Q6J("disabled",0===Ee.selection.selected.length||void 0!==Ee.list&&!Ee.list.addAuth),D.xp6(1),D.hij(" ",D.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function pe(nt,Ae){if(1&nt){const Ee=D.EpF();D.TgZ(0,"button",24),D.NdJ("click",function(){D.CHM(Ee);const we=D.oxw(2);return D.KtG(we.onSubmit())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&nt){const Ee=D.oxw(2);D.Q6J("disabled",0===Ee.selection.selected.length||Ee.loading),D.xp6(1),D.hij(" ",D.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function le(nt,Ae){if(1&nt){const Ee=D.EpF();D.TgZ(0,"div",16)(1,"button",17),D.NdJ("click",function(){D.CHM(Ee);const we=D.oxw();return D.KtG(we.onCancel())}),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.YNc(4,X,3,3,"button",18),D.YNc(5,q,3,8,"button",19),D.TgZ(6,"span",20),D.ALo(7,"translate"),D.YNc(8,pe,3,4,"button",21),D.qZA()()}if(2&nt){const Ee=D.oxw();D.xp6(2),D.hij(" ",D.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),D.xp6(2),D.Q6J("ngIf",void 0!==Ee.stepper&&0!==Ee.stepper.selectedIndex),D.xp6(1),D.Q6J("ngIf",void 0!==Ee.stepper&&Ee.stepper.selectedIndex!==Ee.stepper._steps.length-1),D.xp6(1),D.s9C("matTooltip",D.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),D.Q6J("matTooltipDisabled",void 0===Ee.list||Ee.list.addAuth),D.xp6(2),D.Q6J("ngIf",void 0!==Ee.stepper&&Ee.stepper.selectedIndex===Ee.stepper._steps.length-1)}}let ye=(()=>{class nt{constructor(Ee,ge,we,Ne,Ce,fe,r){this.dialogRef=Ee,this.data=ge,this.notificator=we,this.translate=Ne,this.resourcesManager=Ce,this.guiAuthResolver=fe,this.cd=r,this.filterValue="",this.resources=[],this.selection=new e.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=C.dK}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.autoAssignHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT"),this.resourcesManager.getRichResources(this.data.group.voId).subscribe(Ee=>{this.resourcesManager.getAssignedResourcesWithGroup(this.data.group.id).subscribe(ge=>{for(const we of Ee)-1===ge.findIndex(Ne=>Ne.id===we.id)&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[this.data.group,we])&&this.resources.push(we);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(Ee){this.filterValue=Ee}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const Ee=this.selection.selected.map(ge=>ge.id);this.resourcesManager.assignGroupToResources(this.data.group.id,Ee,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(ge=>{this.notificator.showSuccess(ge),this.dialogRef.close(!0)})},()=>this.loading=!1)}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return nt.\u0275fac=function(Ee){return new(Ee||nt)(D.Y36(M.so),D.Y36(M.WI),D.Y36(f.V6),D.Y36(T.sK),D.Y36(A.xk),D.Y36(f.x4),D.Y36(D.sBO))},nt.\u0275cmp=D.Xpm({type:nt,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(Ee,ge){if(1&Ee&&(D.Gf(Oe,5),D.Gf(_e,5)),2&Ee){let we;D.iGM(we=D.CRH())&&(ge.list=we.first),D.iGM(we=D.CRH())&&(ge.stepper=we.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"filterValue","groupToResource","disableRouting","resources","selection","displayedColumns","tableId"],["list",""],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["class","ml-auto","color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button",1,"ml-auto",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Ee,ge){1&Ee&&(D.TgZ(0,"div")(1,"h1",0),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.YNc(4,Be,1,0,"mat-spinner",1),D.YNc(5,V,26,28,"div",2),D.YNc(6,le,9,10,"div",3),D.qZA()),2&Ee&&(D.Tol(ge.theme),D.xp6(2),D.Oqu(D.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),D.xp6(2),D.Q6J("ngIf",ge.loading),D.xp6(1),D.Q6J("ngIf",!ge.loading),D.xp6(1),D.Q6J("ngIf",!ge.loading&&void 0!==ge.stepper))},dependencies:[R.O5,B.JJ,B.On,w.lW,M.uh,M.xY,M.H8,H.Ou,O.gM,J.Rr,ne.C0,ne.VY,ne.Vq,G.C,se.P,T.X$]}),nt})();var Ve=p(30671);function ve(nt,Ae){1&nt&&D._UZ(0,"mat-spinner",4)}function Ke(nt,Ae){1&nt&&D._UZ(0,"th",13)}function Ue(nt,Ae){if(1&nt&&(D.TgZ(0,"td",14),D._uU(1),D.qZA()),2&nt){const Ee=Ae.$implicit;D.xp6(1),D.Oqu(Ee.name)}}function oe(nt,Ae){1&nt&&D._UZ(0,"tr",15)}function ce(nt,Ae){1&nt&&D._UZ(0,"tr",16)}function k(nt,Ae){if(1&nt&&(D.TgZ(0,"div",5)(1,"p"),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"div",6),D._uU(5),D.ALo(6,"translate"),D.qZA(),D.TgZ(7,"table",7),D.ynx(8,8),D.YNc(9,Ke,1,0,"th",9),D.YNc(10,Ue,2,1,"td",10),D.BQk(),D.YNc(11,oe,1,0,"tr",11),D.YNc(12,ce,1,0,"tr",12),D.qZA()()),2&nt){const Ee=D.oxw();D.xp6(2),D.hij(" ",D.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),D.xp6(3),D.hij(" ",D.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),D.xp6(2),D.Q6J("dataSource",Ee.dataSource),D.xp6(4),D.Q6J("matHeaderRowDef",Ee.displayedColumns),D.xp6(1),D.Q6J("matRowDefColumns",Ee.displayedColumns)}}function N(nt,Ae){if(1&nt){const Ee=D.EpF();D.TgZ(0,"div",17)(1,"button",18),D.NdJ("click",function(){D.CHM(Ee);const we=D.oxw();return D.KtG(we.onCancel())}),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"button",19),D.NdJ("click",function(){D.CHM(Ee);const we=D.oxw();return D.KtG(we.onSubmit())}),D._uU(5),D.ALo(6,"translate"),D.qZA()()}if(2&nt){const Ee=D.oxw();D.xp6(2),D.hij(" ",D.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),D.xp6(2),D.Q6J("disabled",Ee.loading),D.xp6(1),D.hij(" ",D.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let be=(()=>{class nt{constructor(Ee,ge,we,Ne,Ce){this.dialogRef=Ee,this.data=ge,this.notificator=we,this.translate=Ne,this.resourcesManager=Ce,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new Ve.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const Ee=this.data.resources.map(ge=>ge.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,Ee).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(ge=>{this.loading=!1,this.notificator.showSuccess(ge),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return nt.\u0275fac=function(Ee){return new(Ee||nt)(D.Y36(M.so),D.Y36(M.WI),D.Y36(f.V6),D.Y36(T.sK),D.Y36(A.xk))},nt.\u0275cmp=D.Xpm({type:nt,selectors:[["app-remove-group-resource-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Ee,ge){1&Ee&&(D.TgZ(0,"div")(1,"h1",0),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.YNc(4,ve,1,0,"mat-spinner",1),D.YNc(5,k,13,9,"div",2),D.YNc(6,N,7,7,"div",3),D.qZA()),2&Ee&&(D.Tol(ge.data.theme),D.xp6(2),D.Oqu(D.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),D.xp6(2),D.Q6J("ngIf",ge.loading),D.xp6(1),D.Q6J("ngIf",!ge.loading),D.xp6(1),D.Q6J("ngIf",!ge.loading))},dependencies:[R.O5,w.lW,Ve.BZ,Ve.fO,Ve.as,Ve.w1,Ve.Dz,Ve.nj,Ve.ge,Ve.ev,Ve.XQ,Ve.Gk,M.uh,M.xY,M.H8,H.Ou,T.X$]}),nt})();var W=p(9244),ue=p(96214),Me=p(7434);const ot=["list"];function je(nt,Ae){if(1&nt){const Ee=D.EpF();D.TgZ(0,"button",8),D.NdJ("click",function(){D.CHM(Ee);const we=D.oxw();return D.KtG(we.addResource())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}2&nt&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function ut(nt,Ae){1&nt&&D._UZ(0,"mat-spinner",9)}const tt=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function vt(nt,Ae){if(1&nt){const Ee=D.EpF();D.TgZ(0,"perun-web-apps-resources-list",10,11),D.NdJ("refreshTable",function(){D.CHM(Ee);const we=D.oxw();return D.KtG(we.refreshTable())}),D.qZA()}if(2&nt){const Ee=D.oxw();D.Q6J("disableRouting",!Ee.routingAuth)("filterValue",Ee.filterValue)("resources",Ee.resources)("routingVo",!0)("displayedColumns",D.DdM(10,tt))("selection",Ee.selected)("groupId",Ee.group.id)("groupToResource",Ee.group)("resourcesToDisableCheckbox",Ee.resourcesToDisable)("tableId",Ee.tableId)}}let ee=(()=>{class nt{constructor(Ee,ge,we,Ne,Ce){this.resourcesManager=Ee,this.groupService=ge,this.dialog=we,this.guiAuthResolver=Ne,this.entityStorageService=Ce,this.resources=null,this.selected=new e.Ov(!0,[]),this.filterValue="",this.tableId=C.v1,this.addAuth=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthorization(),this.refreshTable()}setAuthorization(){null!==this.resources&&0!==this.resources.length&&(this.routingAuth=this.guiAuthResolver.isAuthorized("getResourceById_int_policy",[this.resources[0]])),this.addAuth=this.guiAuthResolver.isAuthorized("getResources_Vo_policy",[this.group])}refreshTable(){this.loading=!0,this.resourcesManager.getResourceAssignments(this.group.id).subscribe(Ee=>{this.resources=Ee.map(ge=>{const we=ge.enrichedResource.resource;return we.facility=ge.facility,we.status=ge.status,we.resourceTags=ge.resourceTags,we.failureCause=ge.failureCause,we.sourceGroupId=ge.sourceGroupId,we}),this.selected.clear(),this.resourcesToDisable=new Set(this.resources.filter(ge=>null!==ge.sourceGroupId).map(ge=>ge.id)),this.setAuthorization(),this.loading=!1})}applyFilter(Ee){this.filterValue=Ee}addResource(){const Ee=(0,W.kZ)();Ee.width="1000px",Ee.data={theme:"group-theme",group:this.group},this.dialog.open(ye,Ee).afterClosed().subscribe(we=>{we&&this.refreshTable()})}removeResource(){const Ee=(0,W.kZ)();Ee.width="450px",Ee.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(be,Ee).afterClosed().subscribe(we=>{we&&(this.selected.clear(),this.refreshTable())})}}return nt.id="GroupResourcesComponent",nt.\u0275fac=function(Ee){return new(Ee||nt)(D.Y36(A.xk),D.Y36(A.ff),D.Y36(M.uw),D.Y36(f.x4),D.Y36(f.fb))},nt.\u0275cmp=D.Xpm({type:nt,selectors:[["app-group-resources"]],viewQuery:function(Ee,ge){if(1&Ee&&D.Gf(ot,5),2&Ee){let we;D.iGM(we=D.CRH())&&(ge.list=we.first)}},hostVars:2,hostBindings:function(Ee,ge){2&Ee&&D.ekj("router-component",ge.true)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable"],["list",""]],template:function(Ee,ge){1&Ee&&(D.TgZ(0,"div")(1,"h1",0),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"perun-web-apps-refresh-button",1),D.NdJ("refresh",function(){return ge.refreshTable()}),D.qZA(),D.YNc(5,je,3,3,"button",2),D.TgZ(6,"span",3),D.ALo(7,"translate"),D.TgZ(8,"button",4),D.NdJ("click",function(){return ge.removeResource()}),D._uU(9),D.ALo(10,"translate"),D.qZA()(),D.TgZ(11,"perun-web-apps-immediate-filter",5),D.NdJ("filter",function(Ne){return ge.applyFilter(Ne)}),D.qZA(),D.YNc(12,ut,1,0,"mat-spinner",6),D.YNc(13,vt,2,11,"perun-web-apps-resources-list",7),D.qZA()),2&Ee&&(D.xp6(2),D.Oqu(D.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),D.xp6(3),D.Q6J("ngIf",ge.addAuth),D.xp6(1),D.s9C("matTooltip",D.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),D.Q6J("matTooltipDisabled",0===ge.selected.selected.length||void 0!==ge.list&&ge.list.removeAuth),D.xp6(2),D.Q6J("disabled",0===ge.selected.selected.length||void 0!==ge.list&&!ge.list.removeAuth),D.xp6(1),D.hij(" ",D.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),D.xp6(2),D.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),D.xp6(1),D.Q6J("ngIf",ge.loading),D.xp6(1),D.Q6J("ngIf",ge.resources&&!ge.loading))},dependencies:[R.O5,w.lW,H.Ou,O.gM,ue.t,Me.L,G.C,T.X$]}),nt})()},61639:($e,he,p)=>{"use strict";p.d(he,{C:()=>f});var e=p(61744),A=p(81591),C=p(94650),M=p(90820);let f=(()=>{class b{constructor(T,R,B){this.authzResolverService=T,this.entityStorageService=R,this.roleService=B,this.roles=new Map}ngOnInit(){this.groupId=this.entityStorageService.getEntity().id,this.getData()}getData(){this.outerLoading=!0,this.roles.clear(),this.authzResolverService.getGroupRoles(this.groupId).subscribe(T=>{const R=Object.keys(T).map(B=>B.toUpperCase());this.roles=this.roleService.prepareRoles(T,R),this.outerLoading=!1})}}return b.id="GroupRolesComponent",b.\u0275fac=function(T){return new(T||b)(C.Y36(e.Ct),C.Y36(A.fb),C.Y36(A.Nj))},b.\u0275cmp=C.Xpm({type:b,selectors:[["app-group-roles"]],hostVars:2,hostBindings:function(T,R){2&T&&C.ekj("router-component",R.true)},decls:1,vars:5,consts:[[3,"outerLoading","roles","entityId","entityType","showDescription","reload","startLoading"]],template:function(T,R){1&T&&(C.TgZ(0,"app-perun-web-apps-roles-page",0),C.NdJ("reload",function(){return R.getData()})("startLoading",function(){return R.outerLoading=!0}),C.qZA()),2&T&&C.Q6J("outerLoading",R.outerLoading)("roles",R.roles)("entityId",R.groupId)("entityType","GROUP")("showDescription",!0)},dependencies:[M._]}),b})()},14336:($e,he,p)=>{"use strict";p.d(he,{Z:()=>be});var e=p(81591),A=p(93657),C=p(83491),M=p(95502),f=p(1186),b=p(61744),D=p(9244),T=p(94650),R=p(65412),B=p(89383),w=p(94364),H=p(36895),O=p(24006),J=p(97392),ne=p(4859),G=p(51572),se=p(10266),Oe=p(90455),_e=p(44850),Be=p(98380),E=p(96214),z=p(157);const F=["autoRegToggle"];function V(W,ue){1&W&&T._UZ(0,"mat-spinner",3)}function X(W,ue){if(1&W&&(T.TgZ(0,"span"),T._uU(1," , "),T.TgZ(2,"mat-icon",22),T._uU(3,"nat"),T.qZA(),T._uU(4),T.ALo(5,"translate"),T.ALo(6,"translate"),T.qZA()),2&W){const Me=T.oxw(3);T.xp6(4),T.hij(" ",Me.applicationForm.automaticApprovalEmbedded?T.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):T.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function q(W,ue){if(1&W){const Me=T.EpF();T.TgZ(0,"div")(1,"mat-slide-toggle",23,24),T.NdJ("change",function(){T.CHM(Me);const je=T.oxw(3);return T.KtG(je.updateAutoRegistration())}),T._uU(3),T.ALo(4,"translate"),T.qZA()()}if(2&W){const Me=T.oxw(3);T.xp6(1),T.Q6J("disabled",!Me.changeAutoRegistration)("ngModel",Me.autoRegistrationEnabled),T.xp6(2),T.hij(" ",T.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function pe(W,ue){if(1&W){const Me=T.EpF();T.TgZ(0,"button",25),T.NdJ("click",function(){T.CHM(Me);const je=T.oxw(3);return T.KtG(je.settings())}),T.TgZ(1,"i",12),T._uU(2,"edit"),T.qZA(),T._uU(3),T.ALo(4,"translate"),T.qZA()}2&W&&(T.xp6(3),T.hij(" ",T.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function le(W,ue){if(1&W&&(T.TgZ(0,"div",15)(1,"div",16)(2,"div",17),T._uU(3),T.ALo(4,"translate"),T.qZA(),T.TgZ(5,"div")(6,"span",17),T._uU(7),T.ALo(8,"translate"),T.qZA(),T._uU(9,": "),T.TgZ(10,"mat-icon",18),T._uU(11,"arrow_right_alt"),T.qZA(),T._uU(12),T.ALo(13,"translate"),T.ALo(14,"translate"),T.TgZ(15,"mat-icon",19),T._uU(16,"restore"),T.qZA(),T._uU(17),T.ALo(18,"translate"),T.ALo(19,"translate"),T.YNc(20,X,7,5,"span",2),T.qZA(),T.YNc(21,q,5,5,"div",2),T.qZA(),T.TgZ(22,"div",20),T.YNc(23,pe,5,3,"button",21),T.qZA()()),2&W){const Me=T.oxw(2);T.xp6(1),T.Q6J("ngClass",Me.autoRegistrationEnabled?"w-75":"w-50"),T.xp6(2),T.AsE(" ",T.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",Me.applicationForm.moduleClassName," "),T.xp6(4),T.Oqu(T.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),T.xp6(5),T.hij(" ",Me.applicationForm.automaticApproval?T.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):T.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),T.xp6(5),T.hij(" ",Me.applicationForm.automaticApprovalExtension?T.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):T.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),T.xp6(3),T.Q6J("ngIf",Me.autoRegistrationEnabled),T.xp6(1),T.Q6J("ngIf",Me.voHasEmbeddedGroupApplication),T.xp6(2),T.Q6J("ngIf",Me.editAuth)}}function ye(W,ue){if(1&W){const Me=T.EpF();T.TgZ(0,"button",26),T.NdJ("click",function(){T.CHM(Me);const je=T.oxw(2);return T.KtG(je.add())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&W&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function Ve(W,ue){if(1&W){const Me=T.EpF();T.TgZ(0,"button",27),T.NdJ("click",function(){T.CHM(Me);const je=T.oxw(2);return T.KtG(je.save())}),T.TgZ(1,"i",12),T._uU(2,"save"),T.qZA(),T._uU(3),T.ALo(4,"translate"),T.qZA()}if(2&W){const Me=T.oxw(2);T.Q6J("disabled",!Me.itemsChanged),T.xp6(3),T.hij(" ",T.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function ve(W,ue){if(1&W){const Me=T.EpF();T.TgZ(0,"button",28),T.NdJ("click",function(){T.CHM(Me);const je=T.oxw(2);return T.KtG(je.copy())}),T.TgZ(1,"i",12),T._uU(2,"file_copy"),T.qZA(),T._uU(3),T.ALo(4,"translate"),T.qZA()}2&W&&(T.xp6(3),T.hij(" ",T.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function Ke(W,ue){1&W&&(T.TgZ(0,"perun-web-apps-alert",29),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&W&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const Ue=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},oe=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function ce(W,ue){if(1&W){const Me=T.EpF();T.TgZ(0,"div"),T.YNc(1,le,24,21,"div",4),T._UZ(2,"mat-divider",5),T.TgZ(3,"div",6)(4,"perun-web-apps-refresh-button",7),T.NdJ("refresh",function(){T.CHM(Me);const je=T.oxw();return T.KtG(je.updateFormItems())}),T.qZA(),T.YNc(5,ye,3,3,"button",8),T.YNc(6,Ve,5,4,"button",9),T.YNc(7,ve,5,3,"button",10),T.TgZ(8,"button",11),T.NdJ("click",function(){T.CHM(Me);const je=T.oxw();return T.KtG(je.preview())}),T.TgZ(9,"i",12),T._uU(10,"search"),T.qZA(),T._uU(11),T.ALo(12,"translate"),T.qZA()(),T.YNc(13,Ke,3,3,"perun-web-apps-alert",13),T.TgZ(14,"app-application-form-list",14),T.NdJ("applicationFormItemsChange",function(){T.CHM(Me);const je=T.oxw();return T.KtG(je.changeItems())}),T.qZA()()}if(2&W){const Me=T.oxw();T.xp6(1),T.Q6J("ngIf",!Me.loading),T.xp6(4),T.Q6J("ngIf",Me.editAuth),T.xp6(1),T.Q6J("ngIf",Me.editAuth),T.xp6(1),T.Q6J("ngIf",Me.editAuth),T.xp6(4),T.hij(" ",T.lcZ(12,12,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),T.xp6(2),T.Q6J("ngIf",Me.editAuth),T.xp6(1),T.Q6J("applicationForm",Me.applicationForm)("applicationFormItems",Me.applicationFormItems)("loading",Me.loading)("displayedColumns",Me.editAuth?T.DdM(14,Ue):T.DdM(15,oe))("refreshApplicationForm",Me.refreshApplicationForm)("theme","group-theme")}}function k(W,ue){if(1&W){const Me=T.EpF();T.TgZ(0,"button",32),T.NdJ("click",function(){T.CHM(Me);const je=T.oxw(2);return T.KtG(je.createEmptyApplicationForm())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&W&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function N(W,ue){if(1&W&&(T.TgZ(0,"div")(1,"perun-web-apps-alert",30),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,k,3,3,"button",31),T.qZA()),2&W){const Me=T.oxw();T.xp6(2),T.Oqu(T.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),T.xp6(2),T.Q6J("ngIf",Me.createEmptyForm)}}let be=(()=>{class W{constructor(Me,ot,je,ut,tt,vt,ee,nt,Ae){this.registrarManager=Me,this.dialog=ot,this.notificator=je,this.translate=ut,this.apiRequest=tt,this.router=vt,this.guiAuthResolver=ee,this.attributesManager=nt,this.entityStorageService=Ae,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuth(),this.apiRequest.dontHandleErrorForNext(),this.registrarManager.getGroupApplicationForm(this.group.id).subscribe(Me=>{this.applicationForm=Me,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(ot=>{this.applicationFormItems=ot,this.attributesManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(je=>{this.voHasEmbeddedGroupApplication=null!==je.value,this.autoRegistrationEnabled=!!je.value,this.loading=!1})},()=>this.loading=!1)},Me=>{"FormNotExistsException"===Me.name?(this.noApplicationForm=!0,this.loading=!1):this.notificator.showRPCError(Me)})}setAuth(){this.editAuth=this.guiAuthResolver.isAuthorized("group-updateFormItems_ApplicationForm_List_policy",[this.group]),this.createEmptyForm=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.changeAutoRegistration=this.guiAuthResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[this.group])}add(){let Me=(0,D.kZ)();Me.width="500px",Me.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(A.J,Me).afterClosed().subscribe(je=>{je&&(this.applicationFormItems=Object.assign([],je[0]),Me=(0,D.kZ)(),Me.width="600px",Me.height="600px",Me.data={voId:this.group.voId,groupId:this.group.id,applicationFormItem:je[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(C._,Me),this.itemsChanged=!0)})}copy(){const Me=(0,D.kZ)();Me.width="500px",Me.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(M.W,Me).afterClosed().subscribe(je=>{je&&this.updateFormItems()})}settings(){const Me=(0,D.kZ)();Me.width="400px",Me.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(f.E,Me).afterClosed().subscribe(je=>{je&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(ut=>{this.notificator.showSuccess(ut)}),this.applicationForm=je)})}preview(){this.router.navigate(["/organizations",this.group.voId,"groups",this.group.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)},queryParamsHandling:"merge"})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe({next:Me=>{this.applicationFormItems=Me,this.itemsChanged=!1,this.refreshApplicationForm=!1,this.loading=!1},error:()=>this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let Me=0;for(const ot of this.applicationFormItems)ot.ordnum=Me,ot.forDelete||Me++;this.registrarManager.updateFormItemsForGroup({group:this.group.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(ot=>{this.notificator.showSuccess(ot)}),this.updateFormItems()})}clear(){this.applicationFormItems=[],this.itemsChanged=!0}updateAutoRegistration(){this.autoRegToggle.setDisabledState(!0),this.autoRegistrationEnabled?this.registrarManager.deleteGroupsFromAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(Me=>{this.notificator.showSuccess(Me)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1)):this.registrarManager.addGroupsToAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(Me=>{this.notificator.showSuccess(Me)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return W.id="GroupSettingsApplicationFormComponent",W.\u0275fac=function(Me){return new(Me||W)(T.Y36(b.tk),T.Y36(R.uw),T.Y36(e.V6),T.Y36(B.sK),T.Y36(e.F5),T.Y36(w.F0),T.Y36(e.x4),T.Y36(b.H8),T.Y36(e.fb))},W.\u0275cmp=T.Xpm({type:W,selectors:[["app-group-settings-application-form"]],viewQuery:function(Me,ot){if(1&Me&&T.Gf(F,5),2&Me){let je;T.iGM(je=T.CRH())&&(ot.autoRegToggle=je.first)}},hostVars:2,hostBindings:function(Me,ot){2&Me&&T.ekj("router-component",ot.true)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","class","mr-2","data-cy","save-application-form","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"applicationForm","applicationFormItems","loading","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],[1,"d-flex","w-50"],[3,"ngClass"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-bottom"],["matTooltip","Extension",1,"align-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["matTooltip","Embedded",1,"align-bottom"],["color","primary",3,"disabled","ngModel","change"],["autoRegToggle",""],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"],["alert_type","warn"],["data-cy","create-empty-form","mat-stroked-button","",3,"click",4,"ngIf"],["data-cy","create-empty-form","mat-stroked-button","",3,"click"]],template:function(Me,ot){1&Me&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.YNc(3,V,1,0,"mat-spinner",1),T.YNc(4,ce,15,16,"div",2),T.YNc(5,N,5,4,"div",2)),2&Me&&(T.xp6(1),T.hij(" ",T.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),T.xp6(2),T.Q6J("ngIf",ot.loading),T.xp6(1),T.Q6J("ngIf",!ot.noApplicationForm),T.xp6(1),T.Q6J("ngIf",!ot.loading&&ot.noApplicationForm))},dependencies:[H.mk,H.O5,O.JJ,O.On,J.Hw,ne.lW,G.Ou,se.gM,Oe.Rr,_e.d,Be.w,E.t,z.b,B.X$]}),W})()},15592:($e,he,p)=>{"use strict";p.d(he,{u:()=>k});var e=p(81889),A=p(95017),C=p(41656),M=p(9244),f=p(61744),b=p(64080),D=p(10036),T=p(87842),R=p(81591),B=p(54004),w=p(68675),H=p(94650),O=p(65412),J=p(36895),ne=p(24006),G=p(4859),se=p(51572),Oe=p(10266),_e=p(90455),Be=p(25788),E=p(96214),z=p(58956),F=p(64901),V=p(89383);const X=["toggle"];function q(N,be){if(1&N){const W=H.EpF();H.TgZ(0,"button",9),H.NdJ("click",function(){H.CHM(W);const Me=H.oxw();return H.KtG(Me.onCreateGroup())}),H._uU(1),H.ALo(2,"translate"),H.qZA()}2&N&&(H.xp6(1),H.hij(" ",H.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function pe(N,be){if(1&N){const W=H.EpF();H.TgZ(0,"button",12),H.NdJ("click",function(){H.CHM(W);const Me=H.oxw(2);return H.KtG(Me.deleteGroup())}),H._uU(1),H.ALo(2,"translate"),H.qZA()}if(2&N){const W=H.oxw().ngIf,ue=H.oxw();H.Q6J("disabled",0===ue.selected.selected.length||!W.removeAuth),H.xp6(1),H.hij(" ",H.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function le(N,be){if(1&N&&(H.TgZ(0,"span",10),H.ALo(1,"translate"),H.YNc(2,pe,3,4,"button",11),H.qZA()),2&N){const W=be.ngIf,ue=H.oxw();H.s9C("matTooltip",H.lcZ(1,3,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),H.Q6J("matTooltipDisabled",0===ue.selected.selected.length||W.removeAuth),H.xp6(2),H.Q6J("ngIf",ue.deleteAuth)}}function ye(N,be){1&N&&H._UZ(0,"mat-spinner",13)}function Ve(N,be){if(1&N){const W=H.EpF();H.TgZ(0,"perun-web-apps-groups-tree",17),H.NdJ("moveGroup",function(Me){H.CHM(W);const ot=H.oxw(2);return H.KtG(ot.onMoveGroup(Me))})("refreshTable",function(){H.CHM(W);const Me=H.oxw(2);return H.KtG(Me.refreshTable())}),H.qZA()}if(2&N){const W=H.oxw(2);H.Q6J("disableRouting",!W.routeAuth)("expandAll",W.filtering)("groups",W.groups)("hideCheckbox",!W.deleteAuth)("filterValue",W.filterValue)("selection",W.selected)}}const ve=function(){return["select","id","name","description","menu"]},Ke=function(){return["id","name","description","menu"]};function Ue(N,be){if(1&N){const W=H.EpF();H.TgZ(0,"perun-web-apps-groups-list",18),H.NdJ("groupMoved",function(Me){H.CHM(W);const ot=H.oxw(2);return H.KtG(ot.onMoveGroup(Me))})("refreshTable",function(){H.CHM(W);const Me=H.oxw(2);return H.KtG(Me.refreshTable())}),H.qZA()}if(2&N){const W=H.oxw(2);H.Q6J("disableMembers",!0)("disableRouting",!W.routeAuth)("displayedColumns",W.deleteAuth?H.DdM(7,ve):H.DdM(8,Ke))("groups",W.groups)("selection",W.selected)("filter",W.filterValue)("tableId",W.tableId)}}function oe(N,be){if(1&N&&(H.TgZ(0,"div",14),H.YNc(1,Ve,1,6,"perun-web-apps-groups-tree",15),H.YNc(2,Ue,1,9,"perun-web-apps-groups-list",16),H.qZA()),2&N){const W=H.oxw();H.xp6(1),H.Q6J("ngIf",!W.showGroupList),H.xp6(1),H.Q6J("ngIf",W.showGroupList)}}const ce=function(N){return{removeAuth:N}};let k=(()=>{class N{constructor(W,ue,Me,ot){this.dialog=W,this.groupService=ue,this.guiAuthResolver=Me,this.entityStorageService=ot,this.groups=[],this.selected=new A.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=D.bf,this.filterValue="",this.removeAuth$=this.selected.changed.pipe((0,B.U)(je=>je.source.selected.reduce((ut,tt)=>ut&&this.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[tt]),!0)),(0,w.O)(!0))}onCreateGroup(){const W=(0,M.kZ)();W.width="450px",W.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(e.y,W).afterClosed().subscribe(Me=>{Me&&(this.loading=!0,this.refreshTable())})}ngOnInit(){"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree")}),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.createAuth=this.guiAuthResolver.isAuthorized("createGroup_Group_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.group]),0!==this.groups.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.groups[0]]))}deleteGroup(){const W=(0,M.kZ)();W.width="450px",W.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(C.P,W).afterClosed().subscribe(Me=>{Me&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[b.r.GROUP_DEF_MAIL_FOOTER,b.r.GROUP_SYNC_ENABLED,b.r.GROUP_LAST_SYNC_STATE,b.r.GROUP_LAST_SYNC_TIMESTAMP,b.r.GROUP_STRUCTURE_SYNC_ENABLED,b.r.GROUP_LAST_STRUCTURE_SYNC_STATE,b.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(W=>{this.groups=W,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(W){this.filterValue=W,this.filtering=""!==W}onMoveGroup(W){const ue=(0,M.kZ)();ue.width="550px",ue.data={group:W,theme:"group-theme"},this.dialog.open(T.c,ue).afterClosed().subscribe(ot=>{ot&&this.refreshTable()})}}return N.id="GroupSubgroupsComponent",N.\u0275fac=function(W){return new(W||N)(H.Y36(O.uw),H.Y36(f.ff),H.Y36(R.x4),H.Y36(R.fb))},N.\u0275cmp=H.Xpm({type:N,selectors:[["app-group-subgroups"]],viewQuery:function(W,ue){if(1&W&&H.Gf(X,7),2&W){let Me;H.iGM(Me=H.CRH())&&(ue.toggle=Me.first)}},hostVars:2,hostBindings:function(W,ue){2&W&&H.ekj("router-component",ue.true)},decls:18,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","data-cy","new-subgroup-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["color","accent","data-cy","new-subgroup-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","class","mr-2","data-cy","delete-group-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable",4,"ngIf"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","groupMoved","refreshTable",4,"ngIf"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","groupMoved","refreshTable"]],template:function(W,ue){if(1&W&&(H.TgZ(0,"div")(1,"h1",0),H._uU(2),H.ALo(3,"translate"),H.qZA(),H.TgZ(4,"perun-web-apps-refresh-button",1),H.NdJ("refresh",function(){return ue.refreshTable()}),H.qZA(),H.YNc(5,q,3,3,"button",2),H.YNc(6,le,3,5,"span",3),H.ALo(7,"async"),H.TgZ(8,"perun-web-apps-debounce-filter",4),H.NdJ("filter",function(ot){return ue.applyFilter(ot)}),H.qZA(),H.TgZ(9,"mat-slide-toggle",5,6),H.NdJ("change",function(){return ue.selected.clear()})("ngModelChange",function(ot){return ue.showGroupList=ot}),H._uU(11),H.ALo(12,"translate"),H.qZA(),H.TgZ(13,"label"),H._uU(14),H.ALo(15,"translate"),H.qZA(),H.YNc(16,ye,1,0,"mat-spinner",7),H.YNc(17,oe,3,2,"div",8),H.qZA()),2&W){const Me=H.MAs(10);H.xp6(2),H.Oqu(H.lcZ(3,10,"GROUP_DETAIL.SUBGROUPS.TITLE")),H.xp6(3),H.Q6J("ngIf",ue.createAuth),H.xp6(1),H.Q6J("ngIf",H.VKq(18,ce,H.lcZ(7,12,ue.removeAuth$))),H.xp6(2),H.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),H.xp6(1),H.Q6J("ngModel",ue.showGroupList),H.xp6(2),H.Oqu(H.lcZ(12,14,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),H.xp6(2),H.uIk("for",Me.inputId),H.xp6(1),H.Oqu(H.lcZ(15,16,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),H.xp6(2),H.Q6J("ngIf",ue.loading),H.xp6(1),H.Q6J("ngIf",!ue.loading)}},dependencies:[J.O5,ne.JJ,ne.On,G.lW,se.Ou,Oe.gM,_e.Rr,Be.W,E.t,z.I,F.P,J.Ov,V.X$]}),N})()},85243:($e,he,p)=>{"use strict";p.d(he,{j:()=>ue});var e=p(61744),A=p(10036),C=p(95017),M=p(9244),f=p(65412),b=p(81591),D=p(64080),T=p(94650),R=p(89383),B=p(36895),w=p(4859),H=p(51572),O=p(25788),J=p(7434);function ne(Me,ot){1&Me&&T._UZ(0,"mat-spinner",6)}function G(Me,ot){if(1&Me){const je=T.EpF();T.TgZ(0,"perun-web-apps-immediate-filter",7),T.NdJ("filter",function(tt){T.CHM(je);const vt=T.oxw();return T.KtG(vt.applyFilter(tt))}),T.qZA()}2&Me&&T.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}const se=function(){return["select","id","name","description"]};function Oe(Me,ot){if(1&Me&&T._UZ(0,"perun-web-apps-groups-list",8),2&Me){const je=T.oxw();T.Q6J("disableGroups",!0)("disableMembers",!0)("displayedColumns",T.DdM(8,se))("groupsToDisableCheckbox",je.membersGroups)("disableRouting",!0)("groups",je.groups)("filter",je.filterValue)("selection",je.selection)}}function _e(Me,ot){if(1&Me){const je=T.EpF();T.TgZ(0,"div",9)(1,"button",10),T.NdJ("click",function(){T.CHM(je);const tt=T.oxw();return T.KtG(tt.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"button",11),T.NdJ("click",function(){T.CHM(je);const tt=T.oxw();return T.KtG(tt.onAdd())}),T._uU(5),T.ALo(6,"translate"),T.qZA()()}if(2&Me){const je=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),T.xp6(2),T.Q6J("disabled",0===je.selection.selected.length),T.xp6(1),T.hij(" ",T.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let Be=(()=>{class Me{constructor(je,ut,tt,vt,ee,nt,Ae){this.dialogRef=je,this.data=ut,this.groupManager=tt,this.memberManager=vt,this.notificator=ee,this.translate=nt,this.authResolver=Ae,this.loading=!1,this.groups=[],this.selection=new C.Ov(!0,[]),this.attrNames=[D.r.GROUP_SYNC_ENABLED,D.r.GROUP_LAST_SYNC_STATE,D.r.GROUP_LAST_SYNC_TIMESTAMP,D.r.GROUP_STRUCTURE_SYNC_ENABLED,D.r.GROUP_LAST_STRUCTURE_SYNC_STATE,D.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.filterValue=""}ngOnInit(){this.theme=this.data.theme,this.membersGroups=this.data.membersGroups,this.loading=!0,this.memberManager.getMemberById(this.data.memberId).subscribe(je=>{this.member=je,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(ut=>{this.groups=ut.filter(tt=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[tt])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const je=this.selection.selected.map(ut=>ut.id);this.loading=!0,this.groupManager.addMember(je,this.member.id).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(je){this.filterValue=je}}return Me.\u0275fac=function(je){return new(je||Me)(T.Y36(f.so),T.Y36(f.WI),T.Y36(e.ff),T.Y36(e.uq),T.Y36(b.V6),T.Y36(R.sK),T.Y36(b.x4))},Me.\u0275cmp=T.Xpm({type:Me,selectors:[["app-add-member-group-dialog"]],decls:9,vars:10,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter",4,"ngIf"],[3,"disableGroups","disableMembers","displayedColumns","groupsToDisableCheckbox","disableRouting","groups","filter","selection",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"disableGroups","disableMembers","displayedColumns","groupsToDisableCheckbox","disableRouting","groups","filter","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(je,ut){1&je&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,ne,1,0,"mat-spinner",1),T.TgZ(5,"div",2),T.YNc(6,G,1,1,"perun-web-apps-immediate-filter",3),T.YNc(7,Oe,1,9,"perun-web-apps-groups-list",4),T.qZA(),T.YNc(8,_e,7,7,"div",5),T.qZA()),2&je&&(T.Tol(ut.theme),T.xp6(2),T.Oqu(T.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),T.xp6(2),T.Q6J("ngIf",ut.loading),T.xp6(2),T.Q6J("ngIf",!ut.loading),T.xp6(1),T.Q6J("ngIf",!ut.loading),T.xp6(1),T.Q6J("ngIf",!ut.loading))},dependencies:[B.O5,w.lW,f.uh,f.xY,f.H8,H.Ou,O.W,J.L,R.X$]}),Me})();var E=p(30671);function z(Me,ot){1&Me&&T._UZ(0,"mat-spinner",6)}function F(Me,ot){1&Me&&T._UZ(0,"th",15)}function V(Me,ot){if(1&Me&&(T.TgZ(0,"td",16),T._uU(1),T.qZA()),2&Me){const je=ot.$implicit;T.xp6(1),T.Oqu(je.name)}}function X(Me,ot){1&Me&&T._UZ(0,"tr",17)}function q(Me,ot){1&Me&&T._UZ(0,"tr",18)}function pe(Me,ot){if(1&Me&&(T.TgZ(0,"div",7)(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",8),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"table",9),T.ynx(8,10),T.YNc(9,F,1,0,"th",11),T.YNc(10,V,2,1,"td",12),T.BQk(),T.YNc(11,X,1,0,"tr",13),T.YNc(12,q,1,0,"tr",14),T.qZA()()),2&Me){const je=T.oxw();T.xp6(2),T.Oqu(T.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),T.xp6(3),T.hij(" ",T.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),T.xp6(2),T.Q6J("dataSource",je.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",je.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",je.displayedColumns)}}let le=(()=>{class Me{constructor(je,ut,tt,vt,ee){this.dialogRef=je,this.data=ut,this.groupManager=tt,this.notificator=vt,this.translate=ee,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new E.by(this.data.groups)}onRemove(){this.loading=!0;const je=this.dataSource.data.map(ut=>ut.id);this.groupManager.removeMember(je,this.data.memberId).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return Me.\u0275fac=function(je){return new(je||Me)(T.Y36(f.so),T.Y36(f.WI),T.Y36(e.ff),T.Y36(b.V6),T.Y36(R.sK))},Me.\u0275cmp=T.Xpm({type:Me,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(je,ut){1&je&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,z,1,0,"mat-spinner",1),T.YNc(5,pe,13,9,"div",2),T.TgZ(6,"div",3)(7,"button",4),T.NdJ("click",function(){return ut.onCancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return ut.onRemove()}),T._uU(11),T.ALo(12,"translate"),T.qZA()()()),2&je&&(T.Tol(ut.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),T.xp6(2),T.Q6J("ngIf",ut.loading),T.xp6(1),T.Q6J("ngIf",!ut.loading),T.xp6(3),T.hij(" ",T.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),T.xp6(2),T.Q6J("disabled",ut.loading),T.xp6(1),T.hij(" ",T.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},dependencies:[B.O5,w.lW,E.BZ,E.fO,E.as,E.w1,E.Dz,E.nj,E.ge,E.ev,E.XQ,E.Gk,f.uh,f.xY,f.H8,H.Ou,R.X$]}),Me})();var ye=p(54004),Ve=p(68675),ve=p(94364),Ke=p(10266),Ue=p(96214);function oe(Me,ot){if(1&Me){const je=T.EpF();T.TgZ(0,"button",7),T.NdJ("click",function(){T.CHM(je);const tt=T.oxw();return T.KtG(tt.addGroup())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&Me&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function ce(Me,ot){if(1&Me){const je=T.EpF();T.TgZ(0,"span",8),T.ALo(1,"translate"),T.TgZ(2,"button",9),T.NdJ("click",function(){T.CHM(je);const tt=T.oxw();return T.KtG(tt.removeGroup())}),T._uU(3),T.ALo(4,"translate"),T.qZA()()}if(2&Me){const je=ot.ngIf,ut=T.oxw();T.s9C("matTooltip",T.lcZ(1,4,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),T.Q6J("matTooltipDisabled",je.removeAuth),T.xp6(2),T.Q6J("disabled",0===ut.selection.selected.length||!je.removeAuth),T.xp6(1),T.hij(" ",T.lcZ(4,6,"MEMBER_DETAIL.GROUPS.REMOVE")," ")}}function k(Me,ot){1&Me&&T._UZ(0,"mat-spinner",10)}const N=function(){return["select","id","name","description","expiration","groupStatus"]};function be(Me,ot){if(1&Me){const je=T.EpF();T.TgZ(0,"perun-web-apps-groups-list",11),T.NdJ("refreshTable",function(){T.CHM(je);const tt=T.oxw();return T.KtG(tt.refreshTable())}),T.qZA()}if(2&Me){const je=T.oxw();T.Q6J("displayedColumns",T.DdM(8,N))("memberId",je.memberId)("disableRouting",!je.routeAuth)("groups",je.groups)("filter",je.filterValue)("memberGroupStatus",je.member.groupStatus)("selection",je.selection)("tableId",je.tableId)}}const W=function(Me){return{removeAuth:Me}};let ue=(()=>{class Me{constructor(je,ut,tt,vt,ee){this.groupsService=je,this.route=ut,this.dialog=tt,this.authResolver=vt,this.memberService=ee,this.filterValue="",this.tableId=A.W1,this.selection=new C.Ov(!0,[]),this.removeAuth$=this.selection.changed.pipe((0,ye.U)(nt=>nt.source.selected.reduce((Ae,Ee)=>Ae&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[Ee]),!0)),(0,Ve.O)(!0))}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(je=>{this.memberId=Number(je.memberId),this.memberService.getMemberById(this.memberId).subscribe(ut=>{this.member=ut,this.groupsService.getAllGroups(this.member.voId).subscribe(tt=>{this.allGroups=tt,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,[D.r.MEMBER_DEF_GROUP_EXPIRATION,D.r.MEMBER_GROUP_STATUS,D.r.MEMBER_GROUP_STATUS_INDIRECT]).subscribe(je=>{this.selection.clear(),this.groups=je,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const je={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((ut,tt)=>ut||this.authResolver.isAuthorized("addMember_Group_Member_policy",[tt]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[je,this.groups[0]]))}addGroup(){const je=(0,M.kZ)();je.width="850px",je.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(tt=>tt.id)),theme:"member-theme"},this.dialog.open(Be,je).afterClosed().subscribe(tt=>{tt&&this.refreshTable()})}removeGroup(){const je=(0,M.kZ)();je.width="650px",je.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(le,je).afterClosed().subscribe(tt=>{tt&&this.refreshTable()})}applyFilter(je){this.filterValue=je}}return Me.id="MemberGroupsComponent",Me.\u0275fac=function(je){return new(je||Me)(T.Y36(e.ff),T.Y36(ve.gz),T.Y36(f.uw),T.Y36(b.x4),T.Y36(e.uq))},Me.\u0275cmp=T.Xpm({type:Me,selectors:[["app-member-groups"]],hostVars:2,hostBindings:function(je,ut){2&je&&T.ekj("router-component",ut.true)},decls:10,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","memberId","disableRouting","groups","filter","memberGroupStatus","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","memberId","disableRouting","groups","filter","memberGroupStatus","selection","tableId","refreshTable"]],template:function(je,ut){1&je&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"perun-web-apps-refresh-button",1),T.NdJ("refresh",function(){return ut.refreshTable()}),T.qZA(),T.YNc(4,oe,3,3,"button",2),T.YNc(5,ce,5,8,"span",3),T.ALo(6,"async"),T.TgZ(7,"perun-web-apps-immediate-filter",4),T.NdJ("filter",function(vt){return ut.applyFilter(vt)}),T.qZA(),T.YNc(8,k,1,0,"mat-spinner",5),T.YNc(9,be,1,9,"perun-web-apps-groups-list",6)),2&je&&(T.xp6(1),T.Oqu(T.lcZ(2,6,"MEMBER_DETAIL.GROUPS.TITLE")),T.xp6(3),T.Q6J("ngIf",ut.addAuth),T.xp6(1),T.Q6J("ngIf",T.VKq(10,W,T.lcZ(6,8,ut.removeAuth$))),T.xp6(2),T.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),T.xp6(1),T.Q6J("ngIf",ut.loading),T.xp6(1),T.Q6J("ngIf",!ut.loading))},dependencies:[B.O5,w.lW,H.Ou,Ke.gM,O.W,Ue.t,J.L,B.Ov,R.X$]}),Me})()},94856:($e,he,p)=>{"use strict";p.d(he,{c:()=>X});var e=p(61744),A=p(10036),C=p(24006),M=p(36895),f=p(81591),b=p(9244),D=p(23325),T=p(94650),R=p(65412),B=p(4859),w=p(56709),H=p(51572),O=p(10266),J=p(96214),ne=p(39798),G=p(64901),se=p(68788),Oe=p(99168),_e=p(89383);function Be(q,pe){if(1&q){const le=T.EpF();T.TgZ(0,"button",11),T.NdJ("click",function(){T.CHM(le);const Ve=T.oxw();return T.KtG(Ve.showDetails(!0))}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&q&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function E(q,pe){if(1&q){const le=T.EpF();T.TgZ(0,"button",11),T.NdJ("click",function(){T.CHM(le);const Ve=T.oxw();return T.KtG(Ve.showDetails(!1))}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&q&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function z(q,pe){if(1&q){const le=T.EpF();T.TgZ(0,"button",12),T.NdJ("click",function(){T.CHM(le);const Ve=T.oxw();return T.KtG(Ve.setColumns())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&q){const le=T.oxw();T.Q6J("disabled",le.showAllDetails),T.xp6(1),T.hij(" ",T.lcZ(2,2,"VO_DETAIL.APPLICATION.SET_COLUMN_SETTINGS")," ")}}function F(q,pe){1&q&&T._UZ(0,"mat-spinner",13)}function V(q,pe){if(1&q&&(T.TgZ(0,"div"),T._UZ(1,"app-applications-dynamic-list",14),T.qZA()),2&q){const le=T.oxw();T.xp6(1),T.Q6J("tableId",le.showAllDetails?le.detailTableId:le.tableId)("searchString",le.filterValue)("displayedColumns",le.currentColumns)("fedColumns",le.configuredFedColumns)("fedAttrNames",le.fedAttrNames)("states",le.currentStates)("dateFrom",le.startDate.value)("dateTo",le.endDate.value)("includeGroupApps",le.showGroupApps)("refreshTable",le.refresh)("vo",le.vo)}}let X=(()=>{class q{constructor(le,ye,Ve,ve){this.registrarManager=le,this.entityStorageService=ye,this.attributeManager=Ve,this.dialog=ve,this.currentStates=["NEW","VERIFIED"],this.simplePrependColumns=["id"],this.groupPrependColumns=["id","groupId","groupName"],this.simpleColumns=["createdAt","type","state","createdBy","modifiedBy"],this.detailedColumns=["createdAt","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.configuredColumns=[],this.configuredFedColumns=[],this.currentColumns=[],this.columnsAuth=!1,this.filterValue="",this.showAllDetails=!1,this.detailTableId=A.Jf,this.tableId=A.Hi,this.showGroupApps=!1,this.refresh=!1,this.loading=!0,this.fedAttrNames=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.startDate=new C.NI((0,M.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new C.NI((0,M.p6)(new Date,"yyyy-MM-dd","en-GB")),this.attributeManager.getIdpAttributeDefinitions().subscribe(le=>{le.forEach(ye=>{this.fedAttrNames.includes(ye.friendlyName)||this.fedAttrNames.push(ye.friendlyName)})}),this.loadViewConfiguration()}yearAgo(){const le=new Date;return le.setDate(le.getDate()-365),le}showGroupApplications(le){this.showGroupApps=le.checked,this.currentColumns=this.refreshColumns()}showDetails(le){this.loading=!0,this.showAllDetails=le,this.loadViewConfiguration()}applyFilter(le){this.filterValue=le}refreshColumns(){return this.showAllDetails?this.showGroupApps?this.groupPrependColumns.concat(this.detailedColumns):this.simplePrependColumns.concat(this.detailedColumns):this.configuredColumns.length>0?this.showGroupApps?this.groupPrependColumns.concat(this.configuredColumns):this.simplePrependColumns.concat(this.configuredColumns):this.showGroupApps?this.groupPrependColumns.concat(this.simpleColumns):this.simplePrependColumns.concat(this.simpleColumns)}loadViewConfiguration(){this.attributeManager.getVoAttributeByName(this.vo.id,"urn:perun:vo:attribute-def:def:applicationViewPreferences").subscribe(le=>{null!=le?.value&&le?.value.length>0?(this.configuredColumns=le.value,this.configuredFedColumns=this.configuredColumns.filter(ye=>this.fedAttrNames.includes(ye))):(this.configuredColumns=[],this.configuredFedColumns=[]),this.columnsAuth=le.writable,this.currentColumns=this.refreshColumns(),this.loading=!1})}setColumns(){const le=(0,b.kZ)();le.width="650px",le.data={columns:[],voId:this.vo.id,theme:"vo-theme"},this.dialog.open(D.a,le).afterClosed().subscribe(Ve=>{Ve&&this.loadViewConfiguration()})}}return q.id="VoApplicationsComponent",q.\u0275fac=function(le){return new(le||q)(T.Y36(e.tk),T.Y36(f.fb),T.Y36(e.H8),T.Y36(R.uw))},q.\u0275cmp=T.Xpm({type:q,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(le,ye){2&le&&T.ekj("router-component",ye.true)},decls:19,vars:19,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],[3,"stateChanged"],[3,"placeholder","filter"],[3,"endDate","startDate"],["color","primary",3,"checked","change"],["matTooltipPosition","above",3,"matTooltipDisabled","matTooltip"],["mat-stroked-button","","class","ml-2",3,"disabled","click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],["mat-stroked-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","displayedColumns","fedColumns","fedAttrNames","states","dateFrom","dateTo","includeGroupApps","refreshTable","vo"]],template:function(le,ye){1&le&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),T.NdJ("refresh",function(){return ye.refresh=!ye.refresh}),T.qZA(),T.YNc(5,Be,3,3,"button",2),T.YNc(6,E,3,3,"button",2),T.TgZ(7,"perun-web-apps-application-state-selector",3),T.NdJ("stateChanged",function(ve){return ye.currentStates=ve}),T.qZA(),T.TgZ(8,"perun-web-apps-debounce-filter",4),T.NdJ("filter",function(ve){return ye.applyFilter(ve)}),T.qZA(),T._UZ(9,"perun-web-apps-date-range",5),T.TgZ(10,"div")(11,"mat-checkbox",6),T.NdJ("change",function(ve){return ye.showGroupApplications(ve)}),T._uU(12),T.ALo(13,"translate"),T.qZA(),T.TgZ(14,"span",7),T.ALo(15,"translate"),T.YNc(16,z,3,4,"button",8),T.qZA()()(),T.YNc(17,F,1,0,"mat-spinner",9),T.YNc(18,V,2,11,"div",10)),2&le&&(T.xp6(1),T.Oqu(T.lcZ(2,13,"VO_DETAIL.APPLICATION.TITLE")),T.xp6(4),T.Q6J("ngIf",!ye.showAllDetails),T.xp6(1),T.Q6J("ngIf",ye.showAllDetails),T.xp6(2),T.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),T.xp6(1),T.Q6J("endDate",ye.endDate)("startDate",ye.startDate),T.xp6(2),T.Q6J("checked",ye.showGroupApps),T.xp6(1),T.hij(" ",T.lcZ(13,15,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),T.xp6(2),T.s9C("matTooltip",T.lcZ(15,17,"VO_DETAIL.APPLICATION.COLUMNS_TOOLTIP")),T.Q6J("matTooltipDisabled",!ye.showAllDetails),T.xp6(2),T.Q6J("ngIf",ye.columnsAuth),T.xp6(1),T.Q6J("ngIf",ye.loading),T.xp6(1),T.Q6J("ngIf",!ye.loading))},dependencies:[M.O5,B.lW,w.oG,H.Ou,O.gM,J.t,ne.S,G.P,se.x,Oe.S,_e.X$]}),q})()},4732:($e,he,p)=>{"use strict";p.d(he,{G:()=>W});var e=p(81889),A=p(41656),C=p(95017),M=p(87842),f=p(9244),b=p(61744),D=p(10036),T=p(64080),R=p(81591),B=p(61135),w=p(56451),H=p(63900),O=p(18505),J=p(68675),ne=p(54004),G=p(94650),se=p(65412),Oe=p(36895),_e=p(24006),Be=p(4859),E=p(51572),z=p(10266),F=p(90455),V=p(25788),X=p(96214),q=p(58956),pe=p(64901),le=p(73358),ye=p(89383);const Ve=["toggle"];function ve(ue,Me){if(1&ue){const ot=G.EpF();G.TgZ(0,"button",10),G.NdJ("click",function(){G.CHM(ot);const ut=G.oxw();return G.KtG(ut.onCreateGroup())}),G._uU(1),G.ALo(2,"translate"),G.qZA()}2&ue&&(G.xp6(1),G.hij(" ",G.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function Ke(ue,Me){if(1&ue){const ot=G.EpF();G.TgZ(0,"span",11),G.ALo(1,"translate"),G.TgZ(2,"button",12),G.NdJ("click",function(){G.CHM(ot);const ut=G.oxw();return G.KtG(ut.deleteGroup())}),G._uU(3),G.ALo(4,"translate"),G.qZA()()}if(2&ue){const ot=Me.ngIf,je=G.oxw();G.s9C("matTooltip",G.lcZ(1,4,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),G.Q6J("matTooltipDisabled",ot.removeAuth),G.xp6(2),G.Q6J("disabled",0===je.selected.selected.length||!ot.removeAuth),G.xp6(1),G.hij(" ",G.lcZ(4,6,"VO_DETAIL.GROUPS.DELETE_GROUP")," ")}}function Ue(ue,Me){if(1&ue){const ot=G.EpF();G.TgZ(0,"perun-web-apps-groups-tree",14),G.NdJ("moveGroup",function(ut){G.CHM(ot);const tt=G.oxw(2);return G.KtG(tt.onMoveGroup(ut))})("refreshTable",function(){G.CHM(ot);const ut=G.oxw(2);return G.KtG(ut.refresh())}),G.qZA()}if(2&ue){const ot=G.oxw(2);G.Q6J("expandAll",ot.filtering)("disableRouting",!ot.routeAuth)("groups",ot.groups)("selection",ot.selected)("filterValue",ot.filterValue)("vo",ot.vo)}}function oe(ue,Me){if(1&ue&&(G.TgZ(0,"div"),G.YNc(1,Ue,1,6,"perun-web-apps-groups-tree",13),G.ALo(2,"async"),G.qZA()),2&ue){const ot=G.oxw(),je=G.MAs(20);G.xp6(1),G.Q6J("perunWebAppsLoader",G.lcZ(2,2,ot.loading$))("perunWebAppsLoaderIndicator",je)}}function ce(ue,Me){if(1&ue){const ot=G.EpF();G.TgZ(0,"perun-web-apps-groups-list",16),G.NdJ("groupMoved",function(ut){G.CHM(ot);const tt=G.oxw(2);return G.KtG(tt.onMoveGroup(ut))})("queryChanged",function(ut){G.CHM(ot);const tt=G.oxw(2);return G.KtG(tt.nextPage.next(ut))})("refreshTable",function(){G.CHM(ot);const ut=G.oxw(2);return G.KtG(ut.refresh())})("downloadAll",function(ut){G.CHM(ot);const tt=G.oxw(2);return G.KtG(tt.downloadAll(ut))}),G.ALo(1,"async"),G.qZA()}if(2&ue){const ot=G.oxw(2);G.Q6J("disableMembers",!0)("displayedColumns",ot.displayedColumns)("disableRouting",!ot.routeAuth)("groups",G.lcZ(1,7,ot.groupPage$))("selection",ot.selected)("filter",ot.filterValue)("tableId",ot.tableId)}}function k(ue,Me){if(1&ue&&(G.TgZ(0,"div"),G.YNc(1,ce,2,9,"perun-web-apps-groups-list",15),G.ALo(2,"async"),G.qZA()),2&ue){const ot=G.oxw(),je=G.MAs(20);G.xp6(1),G.Q6J("perunWebAppsLoader",G.lcZ(2,2,ot.loading$))("perunWebAppsLoaderIndicator",je)}}function N(ue,Me){1&ue&&(G.TgZ(0,"div",17),G._UZ(1,"mat-spinner"),G.qZA())}const be=function(ue){return{removeAuth:ue}};let W=(()=>{class ue{constructor(ot,je,ut,tt,vt){this.dialog=ot,this.groupService=je,this.authResolver=ut,this.entityStorageService=tt,this.groupUtils=vt,this.groups=[],this.nextPage=new B.X({}),this.groupPage$=this.nextPage.pipe((0,H.w)(ee=>this.groupService.getGroupsPage({vo:this.vo.id,attrNames:this.attrNames,query:{order:ee.order,pageSize:ee.pageSize,offset:ee.offset,searchString:ee.searchString,sortColumn:ee.sortColumn}})),(0,O.b)(ee=>{this.groups=ee.data,this.setAuthRights(),this.selected.clear(),setTimeout(()=>this.loadingSubject$.next(!1),200)}),(0,J.O)({data:[],totalCount:0,offset:0,pageSize:0})),this.showGroupList=!1,this.selected=new C.Ov(!0,[]),this.loadingSubject$=new B.X(!1),this.loading$=(0,w.T)(this.loadingSubject$,this.nextPage.pipe((0,ne.U)(()=>!0))),this.filtering=!1,this.filterValue="",this.tableId=D.rc,this.displayedColumns=["select","id","name","description","menu"],this.removeAuth$=this.selected.changed.pipe((0,ne.U)(ee=>ee.source.selected.reduce((nt,Ae)=>nt&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,Ae]),!0)),(0,J.O)(!0)),this.attrNames=[T.r.GROUP_SYNC_ENABLED,T.r.GROUP_LAST_SYNC_STATE,T.r.GROUP_LAST_SYNC_TIMESTAMP,T.r.GROUP_STRUCTURE_SYNC_ENABLED,T.r.GROUP_LAST_STRUCTURE_SYNC_STATE,T.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}onCreateGroup(){const ot=(0,f.kZ)();ot.width="450px",ot.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(e.y,ot).afterClosed().subscribe(ut=>{ut&&this.refresh()})}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),"list"===localStorage.getItem("preferedValue")?(this.toggle.toggle(),this.showGroupList=!0):this.refresh(),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree"),this.refresh()})}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createGroup_Vo_Group_policy",[this.vo]),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[this.vo,this.groups[0]]))}deleteGroup(){const ot=(0,f.kZ)();ot.width="450px",ot.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(A.P,ot).afterClosed().subscribe(ut=>{ut&&this.refresh()})}removeAllGroups(){this.selected.clear()}onMoveGroup(ot){const je=(0,f.kZ)();je.width="550px",je.data={group:ot,theme:"vo-theme"},this.dialog.open(M.c,je).afterClosed().subscribe(tt=>{tt&&this.refresh()})}loadAllGroups(){this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,this.attrNames).subscribe(ot=>{this.groups=ot,this.selected.clear(),this.setAuthRights(),this.loadingSubject$.next(!1)})}applyFilter(ot){this.filterValue=ot,this.filtering=""!==ot}refresh(){this.loadingSubject$.next(!0),this.showGroupList?this.nextPage.next(this.nextPage.value):this.loadAllGroups()}downloadAll(ot){const je=this.nextPage.getValue(),ut=(tt,vt)=>this.groupUtils.getDataForColumn(tt,vt);this.groupService.getGroupsPage({vo:this.vo.id,attrNames:this.attrNames,query:{order:je.order,pageSize:ot.length,offset:0,searchString:je.searchString,sortColumn:je.sortColumn}}).subscribe({next:tt=>{(0,f.O6)((0,f.Xn)(tt.data,this.displayedColumns,ut),ot.format)}})}}return ue.id="VoGroupsComponent",ue.\u0275fac=function(ot){return new(ot||ue)(G.Y36(se.uw),G.Y36(b.ff),G.Y36(R.x4),G.Y36(R.fb),G.Y36(R.K1))},ue.\u0275cmp=G.Xpm({type:ue,selectors:[["app-vo-groups"]],viewQuery:function(ot,je){if(1&ot&&G.Gf(Ve,7),2&ot){let ut;G.iGM(ut=G.CRH())&&(je.toggle=ut.first)}},hostVars:2,hostBindings:function(ot,je){2&ot&&G.ekj("router-component",je.true)},decls:21,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","create-group-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],[1,"mt-3","position-relative"],[4,"ngIf"],["spinner",""],["color","accent","data-cy","create-group-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable"],["theme","vo-theme",3,"disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","groupMoved","queryChanged","refreshTable","downloadAll",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["theme","vo-theme",3,"disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","groupMoved","queryChanged","refreshTable","downloadAll"],[1,"spinner-container"]],template:function(ot,je){if(1&ot&&(G.TgZ(0,"div")(1,"h1",0),G._uU(2),G.ALo(3,"translate"),G.qZA(),G.TgZ(4,"perun-web-apps-refresh-button",1),G.NdJ("refresh",function(){return je.refresh()}),G.qZA(),G.YNc(5,ve,3,3,"button",2),G.YNc(6,Ke,5,8,"span",3),G.ALo(7,"async"),G.TgZ(8,"perun-web-apps-debounce-filter",4),G.NdJ("filter",function(tt){return je.applyFilter(tt)}),G.qZA(),G.TgZ(9,"mat-slide-toggle",5,6),G.NdJ("change",function(){return je.removeAllGroups()})("ngModelChange",function(tt){return je.showGroupList=tt}),G._uU(11),G.ALo(12,"translate"),G.qZA(),G.TgZ(13,"label"),G._uU(14),G.ALo(15,"translate"),G.qZA(),G.TgZ(16,"div",7),G.YNc(17,oe,3,4,"div",8),G.YNc(18,k,3,4,"div",8),G.qZA()(),G.YNc(19,N,2,0,"ng-template",null,9,G.W1O)),2&ot){const ut=G.MAs(10);G.xp6(2),G.Oqu(G.lcZ(3,10,"VO_DETAIL.GROUPS.TITLE")),G.xp6(3),G.Q6J("ngIf",je.createAuth),G.xp6(1),G.Q6J("ngIf",G.VKq(18,be,G.lcZ(7,12,je.removeAuth$))),G.xp6(2),G.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),G.xp6(1),G.Q6J("ngModel",je.showGroupList),G.xp6(2),G.hij(" ",G.lcZ(12,14,"VO_DETAIL.GROUPS.TREE_VIEW"),""),G.xp6(2),G.uIk("for",ut.inputId),G.xp6(1),G.Oqu(G.lcZ(15,16,"VO_DETAIL.GROUPS.LIST_VIEW")),G.xp6(3),G.Q6J("ngIf",!je.showGroupList),G.xp6(1),G.Q6J("ngIf",je.showGroupList)}},dependencies:[Oe.O5,_e.JJ,_e.On,Be.lW,E.Ou,z.gM,F.Rr,V.W,X.t,q.I,pe.P,le.e,Oe.Ov,ye.X$],changeDetection:0}),ue})()},81847:($e,he,p)=>{"use strict";p.d(he,{y:()=>ce});var e=p(95017),A=p(81591),C=p(53455),M=p(61744),f=p(64080),b=p(24006),D=p(10036),T=p(9244),R=p(74414),B=p(51525),w=p(94742),H=p(94650),O=p(65412),J=p(36895),ne=p(3238),G=p(59549),se=p(4859),Oe=p(84385),_e=p(51572),Be=p(10266),E=p(28255),z=p(96214),F=p(64901),V=p(4811),X=p(89383),q=p(20551);function pe(k,N){if(1&k){const be=H.EpF();H.TgZ(0,"button",16),H.NdJ("click",function(){H.CHM(be);const ue=H.oxw();return H.KtG(ue.onAddMember())}),H._uU(1),H.ALo(2,"translate"),H.qZA()}if(2&k){const be=H.oxw();H.Q6J("disabled",be.blockManualMemberAdding),H.xp6(1),H.hij(" ",H.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function le(k,N){if(1&k&&(H.TgZ(0,"button",17),H._uU(1),H.ALo(2,"translate"),H.qZA()),2&k){const be=H.oxw(),W=H.MAs(11);H.Q6J("disabled",be.blockManualMemberAdding)("matMenuTriggerFor",W),H.xp6(1),H.hij(" ",H.lcZ(2,3,"VO_DETAIL.MEMBERS.INVITE")," ")}}function ye(k,N){if(1&k){const be=H.EpF();H.TgZ(0,"button",18),H.NdJ("click",function(){H.CHM(be);const ue=H.oxw();return H.KtG(ue.onInviteMember())}),H._uU(1),H.ALo(2,"translate"),H.qZA()}2&k&&(H.xp6(1),H.hij(" ",H.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE_ONE")," "))}function Ve(k,N){if(1&k){const be=H.EpF();H.TgZ(0,"button",18),H.NdJ("click",function(){H.CHM(be);const ue=H.oxw();return H.KtG(ue.onBulkInvite())}),H._uU(1),H.ALo(2,"translate"),H.qZA()}2&k&&(H.xp6(1),H.hij(" ",H.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE_BULK")," "))}function ve(k,N){if(1&k){const be=H.EpF();H.TgZ(0,"button",19),H.NdJ("click",function(){H.CHM(be);const ue=H.oxw();return H.KtG(ue.onRemoveMembers())}),H._uU(1),H.ALo(2,"translate"),H.qZA()}if(2&k){const be=H.oxw();H.Q6J("disabled",be.selection.isEmpty()),H.xp6(1),H.hij(" ",H.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function Ke(k,N){if(1&k&&(H.TgZ(0,"mat-option",20),H._uU(1),H.ALo(2,"memberStatus"),H.qZA()),2&k){const be=N.$implicit;H.Q6J("value",be),H.xp6(1),H.Oqu(H.lcZ(2,2,be))}}function Ue(k,N){1&k&&H._UZ(0,"mat-spinner",21)}function oe(k,N){if(1&k&&H._UZ(0,"perun-web-apps-members-dynamic-list",22),2&k){const be=H.oxw();H.Q6J("attrNames",be.attrNames)("selection",be.selection)("tableId",be.tableId)("displayedColumns",be.displayedColumns)("updateTable",be.updateTable)("searchString",be.searchString)("selectedStatuses",be.selectedStatuses)("voId",be.vo.id)("isMembersGroup",!1)}}let ce=(()=>{class k{constructor(be,W,ue,Me,ot,je,ut){this.notificator=be,this.dialog=W,this.authzService=ue,this.storeService=Me,this.attributesManager=ot,this.apiRequest=je,this.entityStorageService=ut,this.members=null,this.selection=new e.Ov(!0,[]),this.loading=!1,this.attrNames=[f.r.MEMBER_DEF_ORGANIZATION,f.r.MEMBER_DEF_MAIL,f.r.USER_DEF_ORGANIZATION,f.r.USER_DEF_PREFERRED_MAIL,f.r.MEMBER_DEF_EXPIRATION,f.r.MEMBER_LIFECYCLE_ALTERABLE],this.statuses=new b.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=D.j1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.updateTable=!1}ngOnInit(){this.loading=!0,this.statuses.setValue(this.selectedStatuses),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.vo.id).then(()=>this.loading=!1)}setAuthRights(){this.addAuth=this.authzService.isAuthorized("createMember_Vo_User_List_policy",[this.vo])&&this.authzService.isAuthorized("createMember_Vo_Candidate_List_policy",[this.vo]),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","fullName","status","organization","email","logins"],null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0]])),this.inviteAuth=this.authzService.isAuthorized("vo-sendInvitation_Vo_Group_String_String_String_policy",[this.vo])}onSearchByString(be){this.searchString=be,this.selection.clear()}onAddMember(){const be=(0,T.kZ)();be.width="1000px",be.data={voId:this.vo.id},this.dialog.open(B.H,be).afterClosed().subscribe(ue=>{ue&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const be=(0,T.kZ)();be.width="450px",be.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(C.X,be).afterClosed().subscribe(ue=>{ue&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const be=(0,T.kZ)();be.width="650px",be.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(R.R,be)}onBulkInvite(){const be=(0,T.kZ)();be.width="650px",be.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(w.F,be)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const be=this.statuses.value;return be?`${be[0]} ${be.length>1?"(+"+(be.length-1).toString()+" "+(2===be.length?"other)":"others)"):""}`:""}isManualAddingBlocked(be){return new Promise(W=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(be,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe({next:ue=>{this.blockManualMemberAdding=null!==ue.value,W()},error:ue=>{"PrivilegeException"!==ue.name&&this.notificator.showError(ue.name),W()}})})}changeStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return k.id="VoMembersComponent",k.\u0275fac=function(be){return new(be||k)(H.Y36(A.V6),H.Y36(O.uw),H.Y36(A.x4),H.Y36(A.d6),H.Y36(M.H8),H.Y36(A.F5),H.Y36(A.fb))},k.\u0275cmp=H.Xpm({type:k,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(be,W){2&be&&H.ekj("router-component",W.true)},decls:27,vars:23,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","mr-2 action-button","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-members","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","fix-select"],["multiple","",3,"formControl","closed"],["class","vo-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup",4,"ngIf"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup"]],template:function(be,W){1&be&&(H.TgZ(0,"div",0)(1,"h1",1),H._uU(2),H.ALo(3,"translate"),H.qZA(),H.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),H.NdJ("click",function(){return W.refreshTable()}),H.qZA(),H.TgZ(6,"div",4),H.ALo(7,"translate"),H.YNc(8,pe,3,4,"button",5),H.qZA(),H.YNc(9,le,3,5,"button",6),H.TgZ(10,"mat-menu",null,7),H.YNc(12,ye,3,3,"button",8),H.YNc(13,Ve,3,3,"button",8),H.qZA(),H.YNc(14,ve,3,4,"button",9),H.TgZ(15,"mat-form-field",10)(16,"mat-label"),H._uU(17),H.ALo(18,"translate"),H.qZA(),H.TgZ(19,"mat-select",11),H.NdJ("closed",function(){return W.changeStatuses()}),H.TgZ(20,"mat-select-trigger"),H._uU(21),H.ALo(22,"memberStatus"),H.qZA(),H.YNc(23,Ke,3,4,"mat-option",12),H.qZA()(),H.TgZ(24,"perun-web-apps-debounce-filter",13),H.NdJ("filter",function(Me){return W.onSearchByString(Me)}),H.qZA()(),H.YNc(25,Ue,1,0,"mat-spinner",14),H.YNc(26,oe,1,9,"perun-web-apps-members-dynamic-list",15),H.qZA()),2&be&&(H.xp6(2),H.Oqu(H.lcZ(3,15,"VO_DETAIL.MEMBERS.TITLE")),H.xp6(4),H.s9C("matTooltip",H.lcZ(7,17,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),H.Q6J("matTooltipDisabled",!W.blockManualMemberAdding),H.xp6(2),H.Q6J("ngIf",W.addAuth),H.xp6(1),H.Q6J("ngIf",W.inviteAuth),H.xp6(3),H.Q6J("ngIf",W.inviteAuth),H.xp6(1),H.Q6J("ngIf",W.inviteAuth),H.xp6(1),H.Q6J("ngIf",W.removeAuth),H.xp6(3),H.Oqu(H.lcZ(18,19,"VO_DETAIL.MEMBERS.FILTER_STATUS")),H.xp6(2),H.Q6J("formControl",W.statuses),H.xp6(2),H.hij(" ",H.lcZ(22,21,W.displaySelectedStatuses())," "),H.xp6(2),H.Q6J("ngForOf",W.statusList),H.xp6(1),H.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),H.xp6(1),H.Q6J("ngIf",W.loading),H.xp6(1),H.Q6J("ngIf",!W.loading))},dependencies:[J.sg,J.O5,ne.ey,G.KE,G.hX,b.JJ,b.oH,se.lW,Oe.gD,Oe.$L,_e.Ou,Be.gM,E.VK,E.OP,E.p6,z.t,F.P,V.m,X.X$,q.l],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),k})()},68056:($e,he,p)=>{"use strict";p.d(he,{z:()=>_e});var e=p(95017),A=p(61744),C=p(533),M=p(10036),f=p(9244),b=p(81591),D=p(94650),T=p(65412),R=p(36895),B=p(4859),w=p(51572),H=p(96214),O=p(7434),J=p(62109),ne=p(89383);function G(Be,E){if(1&Be){const z=D.EpF();D.TgZ(0,"button",6),D.NdJ("click",function(){D.CHM(z);const V=D.oxw();return D.KtG(V.deleteSelectedResources())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&Be){const z=D.oxw();D.Q6J("disabled",0===z.selected.selected.length),D.xp6(1),D.hij(" ",D.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function se(Be,E){1&Be&&D._UZ(0,"mat-spinner",7)}function Oe(Be,E){if(1&Be&&D._UZ(0,"perun-web-apps-resources-list",8),2&Be){const z=D.oxw();D.Q6J("disableRouting",!z.routeAuth)("filterValue",z.filterValue)("resources",z.resources)("routingVo",!0)("displayedColumns",z.displayedColumns)("selection",z.selected)("tableId",z.tableId)}}let _e=(()=>{class Be{constructor(z,F,V,X){this.resourcesManager=z,this.dialog=F,this.authResolver=V,this.entityStorageService=X,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=M.nT,this.routeAuth=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.vo]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[this.vo,this.resources[0]])),this.displayedColumns=this.removeAuth?["select","id","name","facility","tags","description"]:["id","name","facility","tags","description"]}refreshTable(){this.loading=!0,this.resourcesManager.getRichResources(this.vo.id).subscribe(z=>{this.resources=z,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(z){this.filterValue=z}deleteSelectedResources(){const z=(0,f.kZ)();z.width="450px",z.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(C.f,z).afterClosed().subscribe(V=>{V&&this.refreshTable()})}}return Be.id="VoResourcesPreviewComponent",Be.\u0275fac=function(z){return new(z||Be)(D.Y36(A.xk),D.Y36(T.uw),D.Y36(b.x4),D.Y36(b.fb))},Be.\u0275cmp=D.Xpm({type:Be,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(z,F){2&z&&D.ekj("router-component",F.true)},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId"]],template:function(z,F){1&z&&(D.TgZ(0,"div")(1,"h1",0),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"perun-web-apps-refresh-button",1),D.NdJ("refresh",function(){return F.refreshTable()}),D.qZA(),D.YNc(5,G,3,4,"button",2),D.TgZ(6,"perun-web-apps-immediate-filter",3),D.NdJ("filter",function(X){return F.applyFilter(X)}),D.qZA(),D.YNc(7,se,1,0,"mat-spinner",4),D.YNc(8,Oe,1,7,"perun-web-apps-resources-list",5),D.qZA()),2&z&&(D.xp6(2),D.Oqu(D.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),D.xp6(3),D.Q6J("ngIf",F.removeAuth),D.xp6(1),D.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),D.xp6(1),D.Q6J("ngIf",F.loading),D.xp6(1),D.Q6J("ngIf",!F.loading))},dependencies:[R.O5,B.lW,w.Ou,H.t,O.L,J.C,ne.X$]}),Be})()},24219:($e,he,p)=>{"use strict";p.d(he,{z:()=>nt});var e=p(81591),A=p(61744),C=p(94650),M=p(36895),f=p(3848),b=p(98380),D=p(96214),T=p(30671),R=p(51572),B=p(44850),w=p(37084),H=p(89383);function O(Ae,Ee){1&Ae&&C._UZ(0,"mat-spinner",2)}function J(Ae,Ee){if(1&Ae&&(C.TgZ(0,"mat-panel-description")(1,"div")(2,"i",10),C._uU(3," error "),C.qZA(),C._uU(4),C.ALo(5,"translate"),C.ALo(6,"translate"),C.qZA()()),2&Ae){const ge=C.oxw().$implicit,we=C.oxw(2);C.xp6(4),C.HOy(" ",we.getErrorCountStates(ge)," ",C.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",ge.taskList.length," ",C.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function ne(Ae,Ee){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")," "))}function G(Ae,Ee){if(1&Ae&&(C.TgZ(0,"td",24),C._uU(1),C.qZA()),2&Ae){const ge=Ee.$implicit;C.xp6(1),C.Oqu(ge.id)}}function se(Ae,Ee){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")," "))}function Oe(Ae,Ee){if(1&Ae&&(C.TgZ(0,"td",24),C._uU(1),C.qZA()),2&Ae){const ge=Ee.$implicit;C.xp6(1),C.Oqu(ge.service.name)}}function _e(Ae,Ee){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")," "))}function Be(Ae,Ee){if(1&Ae&&(C.TgZ(0,"td",24),C._uU(1),C.qZA()),2&Ae){const ge=Ee.$implicit;C.xp6(1),C.Oqu(ge.status)}}function E(Ae,Ee){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")," "))}function z(Ae,Ee){if(1&Ae&&(C.TgZ(0,"div"),C._uU(1),C.ALo(2,"date"),C.qZA()),2&Ae){const ge=C.oxw().$implicit;C.xp6(1),C.hij(" ",C.xi3(2,1,ge.schedule,"d.M.y H:mm:ss")," ")}}function F(Ae,Ee){1&Ae&&(C._uU(0),C.ALo(1,"translate")),2&Ae&&C.hij(" ",C.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function V(Ae,Ee){if(1&Ae&&(C.TgZ(0,"td",24),C.YNc(1,z,3,4,"div",25),C.YNc(2,F,2,3,"ng-template",26,27,C.W1O),C.qZA()),2&Ae){const ge=Ee.$implicit,we=C.MAs(3);C.xp6(1),C.Q6J("ngIf",ge.schedule)("ngIfElse",we)}}function X(Ae,Ee){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")," "))}function q(Ae,Ee){if(1&Ae&&(C.TgZ(0,"div"),C._uU(1),C.ALo(2,"date"),C.qZA()),2&Ae){const ge=C.oxw().$implicit;C.xp6(1),C.hij(" ",C.xi3(2,1,ge.schedule,"d.M.y H:mm:ss")," ")}}function pe(Ae,Ee){1&Ae&&(C._uU(0),C.ALo(1,"translate")),2&Ae&&C.hij(" ",C.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function le(Ae,Ee){if(1&Ae&&(C.TgZ(0,"td",24),C.YNc(1,q,3,4,"div",25),C.YNc(2,pe,2,3,"ng-template",26,27,C.W1O),C.qZA()),2&Ae){const ge=Ee.$implicit,we=C.MAs(3);C.xp6(1),C.Q6J("ngIf",ge.startTime)("ngIfElse",we)}}function ye(Ae,Ee){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")," "))}function Ve(Ae,Ee){if(1&Ae&&(C.TgZ(0,"div"),C._uU(1),C.ALo(2,"date"),C.qZA()),2&Ae){const ge=C.oxw().$implicit;C.xp6(1),C.hij(" ",C.xi3(2,1,ge.schedule,"d.M.y H:mm:ss")," ")}}function ve(Ae,Ee){1&Ae&&(C._uU(0),C.ALo(1,"translate")),2&Ae&&C.hij(" ",C.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Ke(Ae,Ee){if(1&Ae&&(C.TgZ(0,"td",24),C.YNc(1,Ve,3,4,"div",25),C.YNc(2,ve,2,3,"ng-template",26,27,C.W1O),C.qZA()),2&Ae){const ge=Ee.$implicit,we=C.MAs(3);C.xp6(1),C.Q6J("ngIf",ge.endTime)("ngIfElse",we)}}function Ue(Ae,Ee){1&Ae&&C._UZ(0,"tr",28)}const oe=function(Ae,Ee,ge){return{redTableItem:Ae,greenTableItem:Ee,yellowTableItem:ge}};function ce(Ae,Ee){if(1&Ae&&C._UZ(0,"tr",29),2&Ae){const ge=Ee.$implicit;C.Q6J("ngClass",C.kEZ(1,oe,"ERROR"===ge.status||"SENDERROR"===ge.status||"GENERROR"===ge.status,"DONE"===ge.status,"WARNING"===ge.status))}}function k(Ae,Ee){if(1&Ae&&(C.TgZ(0,"table",12),C.ynx(1,13),C.YNc(2,ne,3,3,"th",14),C.YNc(3,G,2,1,"td",15),C.BQk(),C.ynx(4,16),C.YNc(5,se,3,3,"th",14),C.YNc(6,Oe,2,1,"td",15),C.BQk(),C.ynx(7,17),C.YNc(8,_e,3,3,"th",14),C.YNc(9,Be,2,1,"td",15),C.BQk(),C.ynx(10,18),C.YNc(11,E,3,3,"th",14),C.YNc(12,V,4,2,"td",15),C.BQk(),C.ynx(13,19),C.YNc(14,X,3,3,"th",14),C.YNc(15,le,4,2,"td",15),C.BQk(),C.ynx(16,20),C.YNc(17,ye,3,3,"th",14),C.YNc(18,Ke,4,2,"td",15),C.BQk(),C.YNc(19,Ue,1,0,"tr",21),C.YNc(20,ce,1,5,"tr",22),C.qZA()),2&Ae){const ge=C.oxw(2).$implicit,we=C.oxw(2);C.Q6J("dataSource",we.datasources[we.propagation.indexOf(ge)]),C.xp6(19),C.Q6J("matHeaderRowDef",we.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",we.displayedColumns)}}function N(Ae,Ee){1&Ae&&(C.TgZ(0,"div"),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function be(Ae,Ee){if(1&Ae&&(C._UZ(0,"mat-divider"),C.YNc(1,k,21,3,"table",11),C.YNc(2,N,3,3,"div",8)),2&Ae){const ge=C.oxw().$implicit;C.xp6(1),C.Q6J("ngIf",0!==ge.taskList.length),C.xp6(1),C.Q6J("ngIf",0===ge.taskList.length)}}function W(Ae,Ee){if(1&Ae&&(C.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),C._UZ(3,"img",6),C.TgZ(4,"div",7),C._uU(5),C.qZA()(),C.YNc(6,J,7,8,"mat-panel-description",8),C.qZA(),C.YNc(7,be,3,2,"ng-template",9),C.qZA()),2&Ae){const ge=Ee.$implicit,we=C.oxw(2);C.xp6(5),C.hij(" ",ge.resource.name," "),C.xp6(1),C.Q6J("ngIf",0!==we.getErrorCountStates(ge))}}function ue(Ae,Ee){if(1&Ae&&(C.TgZ(0,"div",3)(1,"mat-accordion",4),C.YNc(2,W,8,2,"mat-expansion-panel",5),C.qZA()()),2&Ae){const ge=C.oxw();C.xp6(2),C.Q6J("ngForOf",ge.propagation)}}let Me=(()=>{class Ae{constructor(){this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}getErrorCountStates(ge){let we=0;for(const Ne of ge.taskList)("ERROR"===Ne.status||"GENERROR"===Ne.status||"SENDERROR"===Ne.status)&&we++;return we}getDataSource(){this.datasources=[];for(const ge of this.propagation)this.datasources.push(new T.by(ge.taskList))}ngOnChanges(){this.getDataSource()}}return Ae.\u0275fac=function(ge){return new(ge||Ae)},Ae.\u0275cmp=C.Xpm({type:Ae,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[C.TTD],decls:2,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","p-2",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"p-2"],["multi","true","togglePosition","before",1,"headers-align"],[4,"ngFor","ngForOf"],["height","28","src","assets/img/PerunWebImages/resource-black.svg","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","scheduled"],["matColumnDef","started"],["matColumnDef","ended"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["class","font-italic"],["notYet",""],["mat-header-row",""],["mat-row","",3,"ngClass"]],template:function(ge,we){1&ge&&(C.YNc(0,O,1,0,"mat-spinner",0),C.YNc(1,ue,3,1,"div",1)),2&ge&&(C.Q6J("ngIf",we.loading),C.xp6(1),C.Q6J("ngIf",!we.loading))},dependencies:[M.mk,M.sg,M.O5,T.BZ,T.fO,T.as,T.w1,T.Dz,T.nj,T.ge,T.ev,T.XQ,T.Gk,R.Ou,B.d,w.pp,w.ib,w.yz,w.yK,w.u4,w.HS,M.uU,H.X$],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{margin-left:15%;justify-content:space-between;align-items:center}"]}),Ae})();function ot(Ae,Ee){if(1&Ae&&(C._uU(0),C.ALo(1,"translate"),C.TgZ(2,"span",5),C._uU(3),C.qZA()),2&Ae){const ge=C.oxw();C.hij(" ",C.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),C.xp6(3),C.Oqu(ge.errorPropagation.length)}}function je(Ae,Ee){1&Ae&&(C.TgZ(0,"perun-web-apps-alert",8),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function ut(Ae,Ee){if(1&Ae&&(C.YNc(0,je,3,3,"perun-web-apps-alert",6),C._UZ(1,"app-state-tab",7)),2&Ae){const ge=C.oxw();C.Q6J("ngIf",!ge.loading&&0===ge.errorPropagation.length),C.xp6(1),C.Q6J("loading",ge.loading)("propagation",ge.errorPropagation)}}function tt(Ae,Ee){if(1&Ae&&(C._uU(0),C.ALo(1,"translate"),C.TgZ(2,"span",9),C._uU(3),C.qZA()),2&Ae){const ge=C.oxw();C.hij(" ",C.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),C.xp6(3),C.Oqu(ge.okPropagation.length)}}function vt(Ae,Ee){1&Ae&&(C.TgZ(0,"perun-web-apps-alert",8),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function ee(Ae,Ee){if(1&Ae&&(C.YNc(0,vt,3,3,"perun-web-apps-alert",6),C._UZ(1,"app-state-tab",7)),2&Ae){const ge=C.oxw();C.Q6J("ngIf",!ge.loading&&0===ge.okPropagation.length),C.xp6(1),C.Q6J("loading",ge.loading)("propagation",ge.okPropagation)}}let nt=(()=>{class Ae{constructor(ge,we){this.taskService=ge,this.entityStorageService=we,this.loading=!1,this.okPropagation=[],this.errorPropagation=[],this.resourceStates=[],this.selectedIndex=0}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.taskService.getAllResourcesState(this.vo.id).subscribe(ge=>{this.resourceStates=ge,this.okPropagation=[],this.errorPropagation=[];for(const we of ge){let Ne=!0;for(const Ce of we.taskList)if("ERROR"===Ce.status||"GENERROR"===Ce.status||"SENDERROR"===Ce.status){Ne=!1;break}Ne?this.okPropagation.push(we):this.errorPropagation.push(we)}this.loading=!1},()=>this.loading=!1)}}return Ae.id="VoResourcesStatesComponent",Ae.\u0275fac=function(ge){return new(ge||Ae)(C.Y36(A.Ob),C.Y36(e.fb))},Ae.\u0275cmp=C.Xpm({type:Ae,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(ge,we){2&ge&&C.ekj("router-component",we.true)},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"refresh"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["matTabContent",""],[1,"badge","badge-danger","ml-1"],["alert_type","warn",4,"ngIf"],[3,"loading","propagation"],["alert_type","warn"],[1,"badge","badge-success","ml-1"]],template:function(ge,we){1&ge&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"perun-web-apps-refresh-button",1),C.NdJ("refresh",function(){return we.refreshTable()}),C.qZA(),C.TgZ(4,"mat-tab-group",2),C.NdJ("selectedIndexChange",function(Ce){return we.selectedIndex=Ce}),C.TgZ(5,"mat-tab"),C.YNc(6,ot,4,4,"ng-template",3),C.YNc(7,ut,2,3,"ng-template",4),C.qZA(),C.TgZ(8,"mat-tab"),C.YNc(9,tt,4,4,"ng-template",3),C.YNc(10,ee,2,3,"ng-template",4),C.qZA()()),2&ge&&(C.xp6(1),C.Oqu(C.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),C.xp6(3),C.Q6J("selectedIndex",we.selectedIndex))},dependencies:[M.O5,f.SP,f.uD,f.uX,f.Vc,b.w,D.t,Me,H.X$]}),Ae})()},10369:($e,he,p)=>{"use strict";p.d(he,{w:()=>le});var e=p(1186),A=p(81591),C=p(95502),M=p(93657),f=p(83491),b=p(61744),D=p(9244),T=p(94650),R=p(65412),B=p(89383),w=p(94364),H=p(36895),O=p(97392),J=p(4859),ne=p(51572),G=p(10266),se=p(44850),Oe=p(98380),_e=p(96214),Be=p(157);function E(ye,Ve){1&ye&&T._UZ(0,"mat-spinner",13)}function z(ye,Ve){if(1&ye){const ve=T.EpF();T.TgZ(0,"button",21),T.NdJ("click",function(){T.CHM(ve);const Ue=T.oxw(2);return T.KtG(Ue.settings())}),T.TgZ(1,"i",10),T._uU(2,"edit"),T.qZA(),T._uU(3),T.ALo(4,"translate"),T.qZA()}2&ye&&(T.xp6(3),T.hij(" ",T.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function F(ye,Ve){if(1&ye&&(T.TgZ(0,"div",14)(1,"div",15)(2,"div",16),T._uU(3),T.ALo(4,"translate"),T.qZA(),T.TgZ(5,"div")(6,"span",16),T._uU(7),T.ALo(8,"translate"),T.qZA(),T._uU(9,": "),T.TgZ(10,"mat-icon",17),T._uU(11,"arrow_right_alt"),T.qZA(),T._uU(12),T.ALo(13,"translate"),T.ALo(14,"translate"),T.TgZ(15,"mat-icon",18),T._uU(16,"restore"),T.qZA(),T._uU(17),T.ALo(18,"translate"),T.ALo(19,"translate"),T.qZA()(),T.TgZ(20,"div",19),T.YNc(21,z,5,3,"button",20),T.qZA()()),2&ye){const ve=T.oxw();T.xp6(3),T.AsE(" ",T.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",ve.applicationForm.moduleClassName," "),T.xp6(4),T.Oqu(T.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),T.xp6(5),T.hij(" ",ve.applicationForm.automaticApproval?T.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):T.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),T.xp6(5),T.hij(" ",ve.applicationForm.automaticApprovalExtension?T.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):T.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),T.xp6(4),T.Q6J("ngIf",ve.editAuth)}}function V(ye,Ve){if(1&ye){const ve=T.EpF();T.TgZ(0,"button",22),T.NdJ("click",function(){T.CHM(ve);const Ue=T.oxw();return T.KtG(Ue.add())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&ye&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function X(ye,Ve){if(1&ye){const ve=T.EpF();T.TgZ(0,"button",23),T.NdJ("click",function(){T.CHM(ve);const Ue=T.oxw();return T.KtG(Ue.save())}),T.TgZ(1,"i",10),T._uU(2,"save"),T.qZA(),T._uU(3),T.ALo(4,"translate"),T.qZA()}if(2&ye){const ve=T.oxw();T.Q6J("disabled",!ve.itemsChanged),T.xp6(3),T.hij(" ",T.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function q(ye,Ve){if(1&ye){const ve=T.EpF();T.TgZ(0,"button",24),T.NdJ("click",function(){T.CHM(ve);const Ue=T.oxw();return T.KtG(Ue.copy())}),T.TgZ(1,"i",10),T._uU(2,"file_copy"),T.qZA(),T._uU(3),T.ALo(4,"translate"),T.qZA()}2&ye&&(T.xp6(3),T.hij(" ",T.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function pe(ye,Ve){1&ye&&(T.TgZ(0,"perun-web-apps-alert",25),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&ye&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}let le=(()=>{class ye{constructor(ve,Ke,Ue,oe,ce,k,N,be){this.registrarManager=ve,this.dialog=Ke,this.notificator=Ue,this.translate=oe,this.router=ce,this.authResolver=k,this.voService=N,this.entityStorageService=be,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarManager.getVoApplicationForm(this.vo.id).subscribe(ve=>{this.applicationForm=ve,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(Ke=>{this.applicationFormItems=Ke,this.loading=!1})})}add(){let ve=(0,D.kZ)();ve.width="500px",ve.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(M.J,ve).afterClosed().subscribe(Ue=>{Ue&&(this.applicationFormItems=Object.assign([],Ue[0]),ve=(0,D.kZ)(),ve.width="600px",ve.height="600px",ve.data={voId:this.vo.id,applicationFormItem:Ue[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(f._,ve),this.itemsChanged=!0)})}copy(){const ve=(0,D.kZ)();ve.width="500px",ve.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(C.W,ve).afterClosed().subscribe(Ue=>{Ue&&this.updateFormItems()})}settings(){const ve=(0,D.kZ)();ve.width="400px",ve.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(e.E,ve).afterClosed().subscribe(Ue=>{Ue&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(oe=>{this.notificator.showSuccess(oe)}),this.applicationForm=Ue)})}preview(){this.router.navigate(["/organizations",this.vo.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)},queryParamsHandling:"merge"})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(ve=>{this.applicationFormItems=ve,this.itemsChanged=!1,this.setAuthRights(),this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let ve=0;for(const Ke of this.applicationFormItems)Ke.ordnum=ve,Ke.forDelete||ve++;this.registrarManager.updateFormItemsForVo({vo:this.vo.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(Ke=>{this.notificator.showSuccess(Ke)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(ve=>ve.forDelete=!0),this.itemsChanged=!0}setAuthRights(){this.editAuth=this.authResolver.isAuthorized("vo-updateFormItems_ApplicationForm_List_policy",[this.vo]),this.displayedColumns=this.editAuth?["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]:["shortname","type","disabled","hidden","preview","managegroups"]}}return ye.id="VoSettingsApplicationFormComponent",ye.\u0275fac=function(ve){return new(ve||ye)(T.Y36(b.tk),T.Y36(R.uw),T.Y36(A.V6),T.Y36(B.sK),T.Y36(w.F0),T.Y36(A.x4),T.Y36(b.YF),T.Y36(A.fb))},ye.\u0275cmp=T.Xpm({type:ye,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(ve,Ke){2&ve&&T.ekj("router-component",Ke.true)},decls:19,vars:18,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","data-cy","save-application-form","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"applicationForm","applicationFormItems","loading","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],[1,"ml-auto","mr-auto"],[1,"d-flex","w-50"],[1,"w-50"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-bottom"],["matTooltip","Extension",1,"align-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"]],template:function(ve,Ke){1&ve&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.YNc(3,E,1,0,"mat-spinner",1),T.TgZ(4,"div"),T.YNc(5,F,22,18,"div",2),T._UZ(6,"mat-divider",3),T.TgZ(7,"div",4)(8,"perun-web-apps-refresh-button",5),T.NdJ("refresh",function(){return Ke.updateFormItems()}),T.qZA(),T.YNc(9,V,3,3,"button",6),T.YNc(10,X,5,4,"button",7),T.YNc(11,q,5,3,"button",8),T.TgZ(12,"button",9),T.NdJ("click",function(){return Ke.preview()}),T.TgZ(13,"i",10),T._uU(14,"search"),T.qZA(),T._uU(15),T.ALo(16,"translate"),T.qZA()(),T.YNc(17,pe,3,3,"perun-web-apps-alert",11),T.TgZ(18,"app-application-form-list",12),T.NdJ("applicationFormItemsChange",function(){return Ke.changeItems()}),T.qZA()()),2&ve&&(T.xp6(1),T.hij(" ",T.lcZ(2,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),T.xp6(2),T.Q6J("ngIf",Ke.loading),T.xp6(2),T.Q6J("ngIf",!Ke.loading),T.xp6(4),T.Q6J("ngIf",Ke.editAuth),T.xp6(1),T.Q6J("ngIf",Ke.editAuth),T.xp6(1),T.Q6J("ngIf",Ke.editAuth),T.xp6(4),T.hij(" ",T.lcZ(16,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),T.xp6(2),T.Q6J("ngIf",Ke.editAuth),T.xp6(1),T.Q6J("applicationForm",Ke.applicationForm)("applicationFormItems",Ke.applicationFormItems)("loading",Ke.loading)("displayedColumns",Ke.displayedColumns)("refreshApplicationForm",Ke.refreshApplicationForm)("theme","vo-theme"))},dependencies:[H.O5,O.Hw,J.lW,ne.Ou,G.gM,se.d,Oe.w,_e.t,Be.b,B.X$]}),ye})()},11042:($e,he,p)=>{"use strict";p.d(he,{T:()=>Ii});var e=p(61744),A=p(95017),C=p(10036),M=p(9244),f=p(65412),b=p(81591),D=p(24006),T=p(36895),R=p(28499),B=p(77579),w=p(94650),H=p(89383),O=p(3238),J=p(59549),ne=p(284),G=p(97392),se=p(4859),Oe=p(56709),_e=p(84385),Be=p(51572),E=p(10266),z=p(86257),F=p(98380),V=p(87488),X=p(13469),q=p(64080),pe=p(71948),le=p(25788),ye=p(7434),Ve=p(61150);function ve(Mt,en){1&Mt&&w._UZ(0,"mat-spinner",2)}function Ke(Mt,en){1&Mt&&(w.TgZ(0,"div")(1,"perun-web-apps-alert",10),w._uU(2),w.ALo(3,"translate"),w.qZA()()),2&Mt&&(w.xp6(2),w.Oqu(w.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function Ue(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div")(1,"h5",11),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-create-group-form",12),w.NdJ("asSubgroupChanged",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.onAsSubgroupChange(Zt))})("nameChanged",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.onNameChange(Zt))})("descriptionChanged",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.onDescriptionChange(Zt))})("parentGroupChanged",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.onParentChange(Zt))}),w.qZA()()}if(2&Mt){const ct=w.oxw(2);w.xp6(2),w.Oqu(w.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")),w.xp6(2),w.Q6J("voGroups",ct.allVoGroups)}}const oe=function(){return["select","id","name","description"]};function ce(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div")(1,"h5",11),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-immediate-filter",13),w.NdJ("filter",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.applyFilter(Zt))}),w.qZA(),w._UZ(5,"perun-web-apps-groups-list",14),w.qZA()}if(2&Mt){const ct=w.oxw(2);w.xp6(2),w.hij(" ",w.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")," "),w.xp6(2),w.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),w.xp6(1),w.Q6J("groups",ct.assignableGroups)("selection",ct.selection)("disableRouting",!0)("displayedColumns",w.DdM(10,oe))("filter",ct.filterValue)("tableId",ct.tableId)}}function k(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div")(1,"div",3)(2,"h5",4),w._uU(3),w.ALo(4,"translate"),w.qZA(),w.TgZ(5,"mat-radio-group",5),w.NdJ("change",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.groupAssigmentChanged())})("ngModelChange",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.groupAssignment=Zt)}),w.TgZ(6,"mat-radio-button",6),w._uU(7),w.ALo(8,"translate"),w.qZA(),w.TgZ(9,"span",7),w.ALo(10,"translate"),w.TgZ(11,"mat-radio-button",8),w._uU(12),w.ALo(13,"translate"),w.qZA()(),w.TgZ(14,"span",7),w.ALo(15,"translate"),w.TgZ(16,"mat-radio-button",9),w._uU(17),w.ALo(18,"translate"),w.qZA()()()(),w.YNc(19,Ke,4,3,"div",1),w.YNc(20,Ue,5,4,"div",1),w.YNc(21,ce,6,11,"div",1),w.qZA()}if(2&Mt){const ct=w.oxw();w.xp6(3),w.Oqu(w.lcZ(4,14,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),w.xp6(2),w.Q6J("ngModel",ct.groupAssignment),w.xp6(2),w.hij(" ",w.lcZ(8,16,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),w.xp6(2),w.s9C("matTooltip",w.lcZ(10,18,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),w.Q6J("matTooltipDisabled",!ct.manualMemberAddingBlocked&&ct.createGroupAuth),w.xp6(2),w.Q6J("disabled",ct.manualMemberAddingBlocked||!ct.createGroupAuth),w.xp6(1),w.hij(" ",w.lcZ(13,20,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),w.xp6(2),w.s9C("matTooltip",w.lcZ(15,22,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),w.Q6J("matTooltipDisabled",!ct.manualMemberAddingBlocked&&0!==ct.assignableGroups.length),w.xp6(2),w.Q6J("disabled",ct.manualMemberAddingBlocked||0===ct.assignableGroups.length),w.xp6(1),w.hij(" ",w.lcZ(18,24,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),w.xp6(2),w.Q6J("ngIf","none"===ct.groupAssignment),w.xp6(1),w.Q6J("ngIf","new"===ct.groupAssignment),w.xp6(1),w.Q6J("ngIf","existing"===ct.groupAssignment)}}let N=(()=>{class Mt{constructor(ct,kt,Zt){this.groupsService=ct,this.guiAuthResolver=kt,this.attributesService=Zt,this.groupsToAdd=new w.vpe,this.submitAllowed=new w.vpe,this.loading=!1,this.assignableGroups=[],this.allVoGroups=[],this.manualMemberAddingBlocked=!1,this.groupAssignment="none",this.selection=new A.Ov(!0,[]),this.name="",this.description="",this.asSubgroup=!1,this.parentGroup=null,this.filterValue="",this.tableId=C.rc,this.groupToCreate={id:0,beanName:"Group"},this.groupIds=[],this.groupAttrNames=[q.r.GROUP_SYNC_ENABLED,q.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.onSubmit=this.submit.subscribe(()=>this.handleGroups()),this.selection.changed.subscribe(()=>this.isSubmitAllowed()),this.createGroupAuth=this.guiAuthResolver.isAuthorized("createGroup_Vo_Group_policy",[{id:this.voId,beanName:"Vo"}]),this.attributesService.getVoAttributes(this.voId).subscribe(ct=>{this.manualMemberAddingBlocked=(0,M.jh)(ct,q.r.VO_BLOCK_MANUAL_MEMBER_ADDING),this.groupsService.getAllRichGroupsWithAttributesByNames(this.voId,this.groupAttrNames).subscribe(kt=>{this.allVoGroups=kt.filter(Zt=>"members"!==Zt.name),this.assignableGroups=this.filterAssignableGroups(kt),this.isSubmitAllowed()})})}ngOnDestroy(){void 0!==this.onSubmit&&this.onSubmit.unsubscribe()}groupAssigmentChanged(){this.selection.clear(),this.groupToCreate.name="",this.groupToCreate.description="",this.asSubgroup=!1,this.groupToCreate.parentGroupId=null,this.isSubmitAllowed()}applyFilter(ct){this.filterValue=ct}onNameChange(ct){this.groupToCreate.name=ct,this.isSubmitAllowed()}onParentChange(ct){this.groupToCreate.parentGroupId=null===ct?null:ct.id,this.isSubmitAllowed()}onAsSubgroupChange(ct){this.asSubgroup=ct,this.isSubmitAllowed()}onDescriptionChange(ct){this.groupToCreate.description=ct,this.isSubmitAllowed()}isSubmitAllowed(){this.submitAllowed.emit(!(null===this.groupAssignment||"existing"===this.groupAssignment&&0===this.selection.selected.length||"new"===this.groupAssignment&&(0===this.groupToCreate.name.length||0===this.groupToCreate.description.length)||this.asSubgroup&&null===this.groupToCreate.parentGroupId))}handleGroups(){this.loading=!0,"new"===this.groupAssignment?this.asSubgroup?this.groupsService.createGroupWithParentGroupNameDescription(this.groupToCreate.parentGroupId,this.groupToCreate.name,this.groupToCreate.description).subscribe({next:ct=>{this.groupIds.push(ct.id),this.groupsToAdd.emit(this.groupIds)},error:()=>this.loading=!1}):this.groupsService.createGroupWithVoNameDescription(this.voId,this.groupToCreate.name,this.groupToCreate.description).subscribe({next:ct=>{this.groupIds.push(ct.id),this.groupsToAdd.emit(this.groupIds)},error:()=>this.loading=!1}):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(ct=>ct.id)),this.groupsToAdd.emit(this.groupIds))}filterAssignableGroups(ct){const kt=[];for(const Zt of ct)!(0,M.bx)(Zt)&&!(0,M.jh)(Zt.attributes,q.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[Zt])&&kt.push(Zt);return kt}}return Mt.\u0275fac=function(ct){return new(ct||Mt)(w.Y36(e.ff),w.Y36(b.x4),w.Y36(e.H8))},Mt.\u0275cmp=w.Xpm({type:Mt,selectors:[["app-assign-groups-sponsored-members-component"]],inputs:{submit:"submit",voId:"voId"},outputs:{groupsToAdd:"groupsToAdd",submitAllowed:"submitAllowed"},decls:2,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"mt-2"],[1,"mb-4"],[1,"flex-container",3,"ngModel","change","ngModelChange"],["value","none","data-cy","no-assign-button"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","new",3,"disabled"],["value","existing",3,"disabled"],["alert_type","info",1,"mt-4"],[1,"mt-4"],[3,"voGroups","asSubgroupChanged","nameChanged","descriptionChanged","parentGroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(ct,kt){1&ct&&(w.YNc(0,ve,1,0,"mat-spinner",0),w.YNc(1,k,22,26,"div",1)),2&ct&&(w.Q6J("ngIf",kt.loading),w.xp6(1),w.Q6J("ngIf",!kt.loading))},dependencies:[T.O5,D.JJ,D.On,Be.Ou,E.gM,pe.VQ,pe.U0,F.w,le.W,ye.L,Ve.r,H.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Mt})();var be=p(39158),W=p(31359);const ue=["stepper"];function Me(Mt,en){1&Mt&&(w.TgZ(0,"h1",4),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")," "))}function ot(Mt,en){1&Mt&&w._UZ(0,"mat-spinner",5)}function je(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function ut(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",33),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function tt(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function vt(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function ee(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function nt(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-option",34),w._uU(1),w.qZA()),2&Mt){const ct=en.$implicit;w.Q6J("value",ct),w.uIk("data-cy",ct),w.xp6(1),w.hij(" ",ct," ")}}function Ae(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function Ee(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function ge(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function we(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-option",34),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"uppercase"),w.qZA()),2&Mt){const ct=en.$implicit;w.s9C("value",ct),w.xp6(1),w.hij(" ",w.lcZ(2,2,w.lcZ(3,4,"SHARED_LIB.LANGUAGES."+ct))," ")}}function Ne(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"mat-form-field")(1,"mat-label"),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"mat-select",35),w.NdJ("valueChange",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.currentLanguage=Zt)}),w.YNc(5,we,4,6,"mat-option",23),w.qZA()()}if(2&Mt){const ct=w.oxw(2);w.xp6(2),w.Oqu(w.lcZ(3,3,"DIALOGS.INVITE_MEMBER.LANGUAGE")),w.xp6(2),w.Q6J("value",ct.currentLanguage),w.xp6(1),w.Q6J("ngForOf",ct.languages)}}function Ce(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function fe(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function r(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div",6)(1,"mat-stepper",7,8)(3,"mat-step",9),w.YNc(4,je,2,3,"ng-template",10),w.YNc(5,ut,3,3,"perun-web-apps-alert",11),w.TgZ(6,"form",12)(7,"h5",13),w._uU(8),w.ALo(9,"translate"),w.qZA(),w.TgZ(10,"mat-form-field",14),w._UZ(11,"input",15),w.ALo(12,"translate"),w.YNc(13,tt,3,3,"mat-error",16),w.qZA(),w.TgZ(14,"mat-form-field"),w._UZ(15,"input",17),w.ALo(16,"translate"),w.YNc(17,vt,3,3,"mat-error",16),w.qZA(),w.TgZ(18,"mat-form-field"),w._UZ(19,"input",18),w.ALo(20,"translate"),w.qZA(),w.TgZ(21,"mat-form-field"),w._UZ(22,"input",19),w.ALo(23,"translate"),w.qZA()()(),w.TgZ(24,"mat-step",9),w.YNc(25,ee,2,3,"ng-template",10),w.TgZ(26,"h5",13),w._uU(27),w.ALo(28,"translate"),w.qZA(),w.TgZ(29,"form",20)(30,"mat-form-field",21)(31,"mat-select",22),w.NdJ("valueChange",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.onNamespaceChanged(Zt))}),w.ALo(32,"translate"),w.YNc(33,nt,2,3,"mat-option",23),w.qZA(),w.YNc(34,Ae,3,3,"mat-error",16),w.qZA(),w.TgZ(35,"mat-form-field",24),w.ALo(36,"translate"),w._UZ(37,"input",25),w.ALo(38,"translate"),w.YNc(39,Ee,3,3,"mat-error",16),w.qZA(),w.TgZ(40,"mat-form-field"),w._UZ(41,"input",26),w.ALo(42,"translate"),w.YNc(43,ge,3,3,"mat-error",16),w.qZA(),w.TgZ(44,"span",24),w.ALo(45,"translate"),w.TgZ(46,"mat-checkbox",27),w.NdJ("change",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.passwordResetChange())}),w._uU(47),w.ALo(48,"translate"),w.qZA()(),w.YNc(49,Ne,6,5,"mat-form-field",16),w._UZ(50,"perun-web-apps-password-form",28),w.qZA()(),w.TgZ(51,"mat-step"),w.YNc(52,Ce,2,3,"ng-template",10),w.TgZ(53,"div",29)(54,"h5",13),w._uU(55),w.ALo(56,"translate"),w.qZA(),w.TgZ(57,"app-choose-sponsor",30),w.NdJ("sponsorTypeSelected",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.sponsorType=Zt)})("sponsorSelected",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.selectedSponsor=Zt)}),w.qZA(),w.TgZ(58,"h6",14),w._uU(59),w.ALo(60,"translate"),w.qZA(),w.TgZ(61,"perun-web-apps-expiration-select",31),w.NdJ("datePicker",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.setExpiration(Zt))}),w.qZA()()(),w.TgZ(62,"mat-step"),w.YNc(63,fe,2,3,"ng-template",10),w.TgZ(64,"app-assign-groups-sponsored-members-component",32),w.NdJ("groupsToAdd",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.createMember(Zt))})("submitAllowed",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.submitAllowed=Zt)}),w.qZA()()()()}if(2&Mt){const ct=w.oxw();w.xp6(1),w.Q6J("linear",!0),w.xp6(2),w.Q6J("stepControl",ct.userControl),w.xp6(2),w.Q6J("ngIf",ct.functionalityNotSupported),w.xp6(1),w.Q6J("formGroup",ct.userControl),w.xp6(2),w.hij(" ",w.lcZ(9,36,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),w.xp6(3),w.s9C("placeholder",w.lcZ(12,38,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),w.xp6(2),w.Q6J("ngIf",ct.userControl.hasError("required","firstName")),w.xp6(2),w.s9C("placeholder",w.lcZ(16,40,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),w.xp6(2),w.Q6J("ngIf",ct.userControl.hasError("required","lastName")),w.xp6(2),w.s9C("placeholder",w.lcZ(20,42,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),w.xp6(3),w.s9C("placeholder",w.lcZ(23,44,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),w.xp6(2),w.Q6J("stepControl",ct.namespaceControl),w.xp6(3),w.Oqu(w.lcZ(28,46,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),w.xp6(2),w.Q6J("formGroup",ct.namespaceControl),w.xp6(2),w.s9C("placeholder",w.lcZ(32,48,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),w.xp6(2),w.Q6J("ngForOf",ct.namespaceOptions),w.xp6(1),w.Q6J("ngIf",ct.namespaceControl.hasError("required","namespace")),w.xp6(1),w.s9C("matTooltip",w.lcZ(36,50,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),w.Q6J("matTooltipDisabled",ct.namespaceControl.get("login").enabled),w.xp6(2),w.s9C("placeholder",w.lcZ(38,52,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),w.xp6(2),w.Q6J("ngIf",ct.namespaceControl.hasError("required","login")),w.xp6(2),w.s9C("placeholder",w.lcZ(42,54,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),w.xp6(2),w.Q6J("ngIf",ct.namespaceControl.hasError("required","email")||ct.namespaceControl.hasError("pattern","email")),w.xp6(1),w.s9C("matTooltip",w.lcZ(45,56,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),w.Q6J("matTooltipDisabled",ct.namespaceControl.get("passwordReset").enabled),w.xp6(3),w.hij("",w.lcZ(48,58,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),w.xp6(2),w.Q6J("ngIf",ct.namespaceControl.get("passwordReset").value),w.xp6(1),w.Q6J("formGroup",ct.namespaceControl)("namespace",ct.selectedNamespace)("tooltipPwdViaEmail",ct.namespaceControl.get("passwordReset").value),w.xp6(5),w.Oqu(w.lcZ(56,60,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),w.xp6(2),w.Q6J("voId",ct.data.voId)("voSponsors",ct.data.sponsors),w.xp6(2),w.Oqu(w.lcZ(60,62,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION")),w.xp6(5),w.Q6J("voId",ct.data.voId)("submit",ct.groupsToAssign.asObservable())}}function u(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",33),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.WITH_ERRORS")))}function g(Mt,en){if(1&Mt&&(w.TgZ(0,"div",6)(1,"div",36)(2,"mat-icon",37),w._uU(3,"done"),w.qZA(),w._uU(4),w.ALo(5,"translate"),w.TgZ(6,"i"),w._uU(7),w.ALo(8,"userFullName"),w.qZA(),w._uU(9),w.ALo(10,"translate"),w.qZA(),w.TgZ(11,"div"),w._uU(12),w.ALo(13,"translate"),w.qZA(),w.TgZ(14,"div"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"perun-web-apps-alert",38),w._uU(18),w.ALo(19,"translate"),w.qZA(),w.YNc(20,u,3,3,"perun-web-apps-alert",11),w.qZA()),2&Mt){const ct=w.oxw();w.xp6(4),w.hij(" ",w.lcZ(5,9,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),w.xp6(3),w.Oqu(w.lcZ(8,11,ct.createdMember.user)),w.xp6(2),w.hij(" ",w.lcZ(10,13,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),w.xp6(3),w.AsE("",w.lcZ(13,15,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",ct.loginThatWasSet,""),w.xp6(3),w.AsE(" ",w.lcZ(16,17,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",ct.namespaceControl.get("passwordCtrl").value," "),w.xp6(3),w.Oqu(w.lcZ(19,19,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION")),w.xp6(2),w.Q6J("ngIf",ct.finishedWithErrors)}}function v(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div",39)(1,"button",40),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onCancel())}),w._uU(2),w.ALo(3,"translate"),w.qZA()()}2&Mt&&(w.xp6(2),w.hij(" ",w.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function h(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",45),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.stepperPrevious())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function a(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",46),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.stepperNext())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&Mt){const ct=w.oxw(2);w.ekj("ml-2",void 0!==ct.stepper&&0!==ct.stepper.selectedIndex)("ml-auto",!(void 0!==ct.stepper&&0!==ct.stepper.selectedIndex)),w.Q6J("disabled",ct.getStepperNextConditions()),w.xp6(1),w.hij(" ",w.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function i(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",47),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.onConfirm())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&Mt){const ct=w.oxw(2);w.Q6J("disabled",!ct.submitAllowed),w.xp6(1),w.hij(" ",w.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function t(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div",39)(1,"button",41),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onCancel())}),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,h,3,3,"button",42),w.YNc(5,a,3,8,"button",43),w.YNc(6,i,3,4,"button",44),w.qZA()}if(2&Mt){const ct=w.oxw();w.xp6(2),w.hij(" ",w.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),w.xp6(2),w.Q6J("ngIf",void 0!==ct.stepper&&0!==ct.stepper.selectedIndex),w.xp6(1),w.Q6J("ngIf",void 0!==ct.stepper&&ct.stepper.selectedIndex!==ct.stepper._steps.length-1),w.xp6(1),w.Q6J("ngIf",void 0!==ct.stepper&&ct.stepper.selectedIndex===ct.stepper._steps.length-1)}}let n=(()=>{class Mt{constructor(ct,kt,Zt,rn,On,Bn,Qn,hi,nr,Oi,xi,qi){this.dialogRef=ct,this.data=kt,this.membersService=Zt,this.apiRequestConfiguration=rn,this.usersService=On,this.store=Bn,this.translator=Qn,this.authzService=hi,this.guiAuthResolver=nr,this.formBuilder=Oi,this.cd=xi,this.groupsService=qi,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.selectedNamespace=null,this.userControl=null,this.namespaceControl=null,this.selectedSponsor=null,this.sponsorType="self",this.languages=["en"],this.currentLanguage="en",this.finishedWithErrors=!1,this.submitAllowed=!1,this.groupsToAssign=new B.x,this.namespaceRules=[],this.parsedRules=new Map,this.expiration="never"}static parseAttributes(ct,kt,Zt){for(const rn of kt)switch(rn){case"login":ct.login=Zt;break;case"password":ct.password=Zt}}onConfirm(){this.groupsToAssign.next()}createMember(ct){this.loading=!0;const kt={vo:this.data.voId,userData:{firstName:this.userControl.get("firstName").value,lastName:this.userControl.get("lastName").value,titleAfter:this.userControl.get("titleAfter").value,titleBefore:this.userControl.get("titleBefore").value,email:this.namespaceControl.get("email").value},sponsor:"other"===this.sponsorType?this.selectedSponsor.id:this.store.getPerunPrincipal().userId},Zt=this.namespaceControl.get("namespace").value,rn=this.parsedRules.get(Zt);"No namespace"!==Zt&&(kt.userData.namespace=Zt),"disabled"!==rn.login&&(kt.userData.login=this.namespaceControl.get("login").value),"disabled"!==rn.password&&(kt.sendActivationLink=this.namespaceControl.get("passwordReset").value,kt.language=this.currentLanguage,kt.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(kt.validityTo=this.expiration),this.membersService.createSponsoredMember(kt).subscribe(On=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=On,!!On&&!!On.userAttributes&&On.userAttributes.filter(Bn=>"login-namespace"===Bn.baseFriendlyName).filter(Bn=>Bn.friendlyNameParameter===Zt).filter(Bn=>null!==Bn.value).forEach(Bn=>{this.loginThatWasSet=Bn.value}),ct.length>0&&this.groupsService.addMember(ct,On.id).subscribe({next:()=>this.loading=!1,error:()=>{this.finishedWithErrors=!0,this.loading=!1}}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(ct){this.selectedNamespace=ct;const kt=this.parsedRules.get(ct),Zt=this.namespaceControl.get("login"),rn=this.namespaceControl.get("passwordCtrl"),On=this.namespaceControl.get("passwordAgainCtrl"),Bn=this.namespaceControl.get("passwordReset");"disabled"!==kt.login?(0,M.mH)(Zt,"optional"===kt.login?[]:[D.kI.required]):(Zt.disable(),Zt.setValue("")),"disabled"!==kt.password?((0,M.mH)(rn,"optional"===kt.password?[]:[D.kI.required],[(0,R.yT)(ct,this.usersService,this.apiRequestConfiguration)]),(0,M.mH)(On,[]),(0,M.mH)(Bn,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(rn.disable(),rn.setValue(""),On.disable(),On.setValue(""),Bn.disable(),Bn.setValue(!1))}passwordResetChange(){const ct=this.namespaceControl.get("passwordCtrl"),kt=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(ct.disable(),ct.setValue(""),kt.disable(),kt.setValue("")):(ct.enable(),kt.enable())}setExpiration(ct){this.expiration="never"===ct?"never":(0,T.p6)(ct,"yyyy-MM-dd","en-GB")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.userControl.invalid;case 1:return this.namespaceControl.invalid||this.namespaceControl.get("passwordCtrl").pending;case 2:return null===this.sponsorType||"other"===this.sponsorType&&null===this.selectedSponsor;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.userControl=this.formBuilder.group({firstName:["",D.kI.required],lastName:["",D.kI.required],titleBefore:[""],titleAfter:[""]}),this.languages=this.store.getProperty("supported_languages"),this.namespaceControl=this.formBuilder.group({namespace:["",D.kI.required],login:["",[D.kI.required]],passwordCtrl:["",D.kI.required,[(0,R.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[D.kI.required,D.kI.pattern(M.B2)]]},{validators:M.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(ct=>{this.store.getProperty("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(ct),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1,this.cd.detectChanges()})}parseNamespaceRules(){for(const ct of this.namespaceRules){this.namespaceOptions.push(ct.namespaceName);const kt={login:"disabled",password:"disabled"};Mt.parseAttributes(kt,ct.requiredAttributes,"required"),Mt.parseAttributes(kt,ct.optionalAttributes,"optional"),this.parsedRules.set(ct.namespaceName,kt)}}}return Mt.\u0275fac=function(ct){return new(ct||Mt)(w.Y36(f.so),w.Y36(f.WI),w.Y36(e.uq),w.Y36(b.F5),w.Y36(e.Fv),w.Y36(b.d6),w.Y36(H.sK),w.Y36(e.Ct),w.Y36(b.x4),w.Y36(D.QS),w.Y36(w.sBO),w.Y36(e.ff))},Mt.\u0275cmp=w.Xpm({type:Mt,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(ct,kt){if(1&ct&&w.Gf(ue,5),2&ct){let Zt;w.iGM(Zt=w.CRH())&&(kt.stepper=Zt.first)}},decls:7,vars:9,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"dialog-container",3,"formGroup"],[1,"mt-2"],[1,"mt-4"],["data-cy","first-name-input","matInput","","formControlName","firstName","required","",3,"placeholder"],[4,"ngIf"],["data-cy","last-name-input","matInput","","formControlName","lastName","required","",3,"placeholder"],["matInput","","formControlName","titleBefore",3,"placeholder"],["matInput","","formControlName","titleAfter",3,"placeholder"],[1,"dialog-container","mt-4",3,"formGroup"],["data-cy","namespace-filter"],["formControlName","namespace","required","",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["data-cy","login-input","matInput","","formControlName","login","required","",3,"placeholder"],["data-cy","email-input","matInput","","formControlName","email","required","",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","namespace","tooltipPwdViaEmail"],[1,"dialog-container"],[3,"voId","voSponsors","sponsorTypeSelected","sponsorSelected"],[1,"mt-2",3,"datePicker"],[3,"voId","submit","groupsToAdd","submitAllowed"],["alert_type","error"],[3,"value"],[3,"value","valueChange"],[1,"bigger-font","mb-2"],[1,"mr-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","","data-cy","ok-button",1,"ml-auto",3,"click"],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["data-cy","next-button","color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["data-cy","confirm-button","class","ml-2","color","accent","mat-flat-button","","type","button",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","next-button","color","accent","mat-flat-button","","type","button",3,"disabled","click"],["data-cy","confirm-button","color","accent","mat-flat-button","","type","button",1,"ml-2",3,"disabled","click"]],template:function(ct,kt){1&ct&&(w.TgZ(0,"div"),w.YNc(1,Me,3,3,"h1",0),w.YNc(2,ot,1,0,"mat-spinner",1),w.YNc(3,r,65,64,"div",2),w.YNc(4,g,21,21,"div",2),w.YNc(5,v,4,3,"div",3),w.YNc(6,t,7,6,"div",3),w.qZA()),2&ct&&(w.Tol(kt.theme),w.xp6(1),w.Q6J("ngIf",!kt.successfullyCreated),w.xp6(1),w.Q6J("ngIf",kt.loading),w.xp6(1),w.Q6J("ngIf",!kt.loading&&!kt.successfullyCreated),w.xp6(1),w.Q6J("ngIf",!kt.loading&&kt.successfullyCreated),w.xp6(1),w.Q6J("ngIf",kt.successfullyCreated),w.xp6(1),w.Q6J("ngIf",!kt.loading&&!kt.successfullyCreated))},dependencies:[T.sg,T.O5,O.ey,J.TO,J.KE,J.hX,ne.Nt,D._Y,D.Fj,D.JJ,D.JL,D.Q7,D.sg,D.u,G.Hw,se.lW,Oe.oG,f.uh,f.xY,f.H8,_e.gD,Be.Ou,E.gM,z.C0,z.VY,z.Vq,F.w,V.c,X.G,N,be.l,T.gd,H.X$,W.d],styles:[".bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:8px}mat-icon[_ngcontent-%COMP%]{color:#28a745;font-size:36px;vertical-align:bottom}"]}),Mt})();var o=p(28255);const s=["stepper"];function l(Mt,en){1&Mt&&w._UZ(0,"mat-spinner",4)}function d(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function c(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",26),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function S(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-option",27),w._uU(1),w.qZA()),2&Mt){const ct=en.$implicit;w.Q6J("value",ct),w.uIk("data-cy",ct),w.xp6(1),w.hij(" ",ct," ")}}function $(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function ht(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function ze(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt){const ct=w.oxw(3);w.xp6(1),w.AsE(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",ct.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function et(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt){const ct=w.oxw(3);w.xp6(1),w.AsE(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",ct.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function te(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt){const ct=w.oxw(3);w.xp6(1),w.AsE(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",ct.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function Le(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function Ie(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",28),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function De(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"mat-radio-group",29),w.NdJ("ngModelChange",function(Zt){w.CHM(ct);const rn=w.oxw(3);return w.KtG(rn.passwordReset=Zt)}),w.TgZ(1,"mat-radio-button",30),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"mat-radio-button",31),w._uU(5),w.ALo(6,"translate"),w.qZA()()}if(2&Mt){const ct=w.oxw(3);w.Q6J("ngModel",ct.passwordReset),w.xp6(2),w.hij(" ",w.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),w.xp6(3),w.hij(" ",w.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function xe(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-option",27),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"uppercase"),w.qZA()),2&Mt){const ct=en.$implicit;w.s9C("value",ct),w.xp6(1),w.hij(" ",w.lcZ(2,2,w.lcZ(3,4,"SHARED_LIB.LANGUAGES."+ct))," ")}}function ie(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"mat-form-field",32)(1,"mat-label"),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"mat-select",33),w.NdJ("valueChange",function(Zt){w.CHM(ct);const rn=w.oxw(3);return w.KtG(rn.currentLanguage=Zt)}),w.YNc(5,xe,4,6,"mat-option",16),w.qZA()()}if(2&Mt){const ct=w.oxw(3);w.xp6(2),w.Oqu(w.lcZ(3,3,"DIALOGS.INVITE_MEMBER.LANGUAGE")),w.xp6(2),w.Q6J("value",ct.currentLanguage),w.xp6(1),w.Q6J("ngForOf",ct.languages)}}function Te(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function st(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function Qe(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"mat-stepper",8,9)(2,"mat-step",10),w.YNc(3,d,2,3,"ng-template",11),w.YNc(4,c,3,3,"perun-web-apps-alert",12),w.TgZ(5,"h5",13),w._uU(6),w.ALo(7,"translate"),w.qZA(),w.TgZ(8,"form",14)(9,"mat-form-field")(10,"mat-select",15),w.ALo(11,"translate"),w.YNc(12,S,2,3,"mat-option",16),w.qZA(),w.YNc(13,$,3,3,"mat-error",7),w.qZA(),w.TgZ(14,"div"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"div",17),w._uU(18),w.qZA(),w.TgZ(19,"mat-form-field",18)(20,"mat-label"),w._uU(21),w.ALo(22,"translate"),w.qZA(),w.TgZ(23,"textarea",19),w._uU(24," "),w.qZA(),w.YNc(25,ht,3,3,"mat-error",7),w.YNc(26,ze,3,4,"mat-error",7),w.YNc(27,et,3,4,"mat-error",7),w.YNc(28,te,3,4,"mat-error",7),w.qZA()()(),w.TgZ(29,"mat-step"),w.YNc(30,Le,2,3,"ng-template",11),w.TgZ(31,"div",13)(32,"h5",20),w._uU(33),w.ALo(34,"translate"),w.qZA(),w.YNc(35,Ie,3,3,"perun-web-apps-alert",21),w.YNc(36,De,7,7,"mat-radio-group",22),w.YNc(37,ie,6,5,"mat-form-field",23),w.qZA()(),w.TgZ(38,"mat-step"),w.YNc(39,Te,2,3,"ng-template",11),w.TgZ(40,"div",13)(41,"h5",20),w._uU(42),w.ALo(43,"translate"),w.qZA(),w.TgZ(44,"perun-web-apps-expiration-select",24),w.NdJ("datePicker",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.setExpiration(Zt))}),w.qZA()()(),w.TgZ(45,"mat-step"),w.YNc(46,st,2,3,"ng-template",11),w.TgZ(47,"app-assign-groups-sponsored-members-component",25),w.NdJ("groupsToAdd",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.onGenerate(Zt))})("submitAllowed",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.submitAllowed=Zt)}),w.qZA()()()}if(2&Mt){const ct=w.oxw(2);w.Q6J("linear",!0),w.xp6(2),w.Q6J("stepControl",ct.usersInfoFormGroup),w.xp6(2),w.Q6J("ngIf",ct.functionalityNotSupported),w.xp6(2),w.Oqu(w.lcZ(7,24,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),w.xp6(2),w.Q6J("formGroup",ct.usersInfoFormGroup),w.xp6(2),w.s9C("placeholder",w.lcZ(11,26,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),w.xp6(2),w.Q6J("ngForOf",ct.namespaceOptions),w.xp6(1),w.Q6J("ngIf",ct.usersInfoFormGroup.hasError("required","namespace")),w.xp6(2),w.Oqu(w.lcZ(16,28,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),w.xp6(3),w.hij(" ",ct.getSelectedNamespaceRules().csvGenHeaderDescription," "),w.xp6(3),w.Oqu(w.lcZ(22,30,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),w.xp6(2),w.s9C("placeholder",ct.getSelectedNamespaceRules().csvGenPlaceholder),w.xp6(2),w.Q6J("ngIf",ct.usersInfoFormGroup.hasError("required","sponsoredMembers")),w.xp6(1),w.Q6J("ngIf",ct.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),w.xp6(1),w.Q6J("ngIf",ct.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),w.xp6(1),w.Q6J("ngIf",ct.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),w.xp6(5),w.hij(" ",w.lcZ(34,32,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")," "),w.xp6(2),w.Q6J("ngIf","No namespace"===ct.getSelectedNamespaceRules().namespaceName),w.xp6(1),w.Q6J("ngIf","No namespace"!==ct.getSelectedNamespaceRules().namespaceName),w.xp6(1),w.Q6J("ngIf","reset"===ct.passwordReset),w.xp6(5),w.Oqu(w.lcZ(43,34,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),w.xp6(2),w.Q6J("expiration",ct.expiration),w.xp6(3),w.Q6J("voId",ct.data.voId)("submit",ct.groupsToAssign.asObservable())}}function Et(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",35),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.Q6J("alert_type","success"),w.xp6(1),w.hij(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function ke(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",35),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.Q6J("alert_type","warn"),w.xp6(1),w.hij(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function at(Mt,en){if(1&Mt&&(w.TgZ(0,"div"),w.YNc(1,Et,3,4,"perun-web-apps-alert",34),w.YNc(2,ke,3,4,"perun-web-apps-alert",34),w.qZA()),2&Mt){const ct=w.oxw(2);w.xp6(1),w.Q6J("ngIf",!1===ct.finishedWithErrors),w.xp6(1),w.Q6J("ngIf",ct.finishedWithErrors)}}function It(Mt,en){if(1&Mt&&(w.TgZ(0,"div",5),w.YNc(1,Qe,48,36,"mat-stepper",6),w.YNc(2,at,3,2,"div",7),w.qZA()),2&Mt){const ct=w.oxw();w.xp6(1),w.Q6J("ngIf","user-input"===ct.state),w.xp6(1),w.Q6J("ngIf","results"===ct.state)}}function jt(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",41),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.stepperPrevious())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function an(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",42),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.stepperNext())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&Mt){const ct=w.oxw(2);w.ekj("ml-2",void 0!==ct.stepper&&0!==ct.stepper.selectedIndex)("ml-auto",!(void 0!==ct.stepper&&0!==ct.stepper.selectedIndex)),w.Q6J("disabled",ct.getStepperNextConditions()),w.xp6(1),w.hij(" ",w.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function Kt(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",43),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.onSubmit())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&Mt){const ct=w.oxw(2);w.Q6J("disabled",!ct.submitAllowed),w.xp6(1),w.hij(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function on(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div",36)(1,"button",37),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onCancel())}),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,jt,3,3,"button",38),w.YNc(5,an,3,8,"button",39),w.YNc(6,Kt,3,4,"button",40),w.qZA()}if(2&Mt){const ct=w.oxw();w.xp6(2),w.hij(" ",w.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),w.xp6(2),w.Q6J("ngIf",void 0!==ct.stepper&&0!==ct.stepper.selectedIndex),w.xp6(1),w.Q6J("ngIf",void 0!==ct.stepper&&ct.stepper.selectedIndex!==ct.stepper._steps.length-1),w.xp6(1),w.Q6J("ngIf",void 0!==ct.stepper&&ct.stepper.selectedIndex===ct.stepper._steps.length-1)}}function bn(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div",36)(1,"button",44),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onClose())}),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"button",45),w._uU(5),w.ALo(6,"translate"),w.qZA(),w.TgZ(7,"mat-menu",null,46)(9,"button",47),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.generatePdf())}),w._uU(10),w.ALo(11,"translate"),w.qZA(),w.TgZ(12,"button",47),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.downloadCsv())}),w._uU(13),w.ALo(14,"translate"),w.qZA()()()}if(2&Mt){const ct=w.MAs(8);w.xp6(2),w.hij(" ",w.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),w.xp6(2),w.Q6J("matMenuTriggerFor",ct),w.xp6(1),w.hij(" ",w.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),w.xp6(5),w.hij(" ",w.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),w.xp6(3),w.hij(" ",w.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}let Tt=(()=>{class Mt{constructor(ct,kt,Zt,rn,On,Bn,Qn,hi,nr,Oi,xi,qi){this.dialogRef=ct,this.data=kt,this.store=Zt,this.membersService=rn,this.notificator=On,this.translate=Bn,this.guiAuthResolver=Qn,this.groupsService=hi,this.attributesService=nr,this.formBuilder=Oi,this.sponsoredMembersPDFService=xi,this.cd=qi,this.loading=!1,this.functionalityNotSupported=!1,this.namespaceOptions=[],this.state="user-input",this.passwordReset="generate",this.expiration="never",this.finishedWithErrors=!1,this.submitAllowed=!1,this.groupsToAssign=new B.x,this.languages=["en"],this.currentLanguage="en",this.namespaceRules=[],this.resultData=[]}static didSomeGenerationFailed(ct){return ct.forEach(kt=>{if("OK"!==kt.status)return!0}),!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.languages=this.store.getProperty("supported_languages"),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",D.kI.required],sponsoredMembers:["",[D.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.membersService.getAllNamespacesRules().subscribe(ct=>{this.store.getProperty("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",csvGenHeader:"firstname;lastname;urn:perun:user:attribute-def:def:preferredMail",csvGenPlaceholder:"John;Doe;john@mail.cz",csvGenHeaderDescription:"First name;Last name;Email"}),this.namespaceRules=this.namespaceRules.concat(ct),this.namespaceRules.forEach(kt=>this.namespaceOptions.push(kt.namespaceName)),0===this.namespaceOptions.length?this.functionalityNotSupported=!0:this.usersInfoFormGroup.setValue({namespace:this.namespaceOptions[0],sponsoredMembers:""}),this.loading=!1,this.cd.detectChanges()})}onCancel(){this.dialogRef.close(!1)}onClose(){this.dialogRef.close(!0)}setExpiration(ct){this.expiration="never"===ct?"never":(0,T.p6)(ct,"yyyy-MM-dd","en-GB")}onSubmit(){this.groupsToAssign.next()}getSelectedNamespaceRules(){return this.namespaceRules.find(ct=>ct.namespaceName===this.usersInfoFormGroup.get("namespace").value)}generatePdf(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");this.loading=!0,this.sponsoredMembersPDFService.generate(this.resultData).then(()=>this.loading=!1)}downloadCsv(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");(0,M.O6)(this.createOutputObjects(this.resultData),"csv","member-logins")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.usersInfoFormGroup.invalid;case 1:return null===this.passwordReset;case 2:return null===this.expiration;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}onGenerate(ct){this.loading=!0;const kt=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),Zt=this.getSelectedNamespaceRules().csvGenHeader,rn=[];for(const Bn of kt){const Qn=this.parseMemberLine(Bn);if("format"===Qn||"email"===Qn)return void(this.loading=!1);""!==Qn&&rn.push(Qn)}const On={data:rn,header:Zt,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset,language:this.currentLanguage};ct.length>0&&(On.groups=ct),"never"!==this.expiration&&(On.validityTo=(0,T.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(On.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(On).subscribe(Bn=>{this.state="results",this.finishedWithErrors=Mt.didSomeGenerationFailed(Bn),this.loading=!1,this.resultData=Bn},()=>this.loading=!1)}createOutputObjects(ct){let kt="",Zt="",rn="",On="";const Bn=[];return ct.forEach(Qn=>{kt=Qn.name.replace(";"," ").split(";")[0],Zt=Qn.status,rn=Qn.login?Qn.login:rn,On=Qn.password?Qn.password:On;const hi={name:kt,status:Zt,login:rn,password:On};Qn.note&&(hi.note=Qn.note),Bn.push(hi)}),Bn}parseMemberLine(ct){const kt=ct.trim();if(""===kt)return"";const Zt=kt.split(";"),rn=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(Zt.length!==rn.length)return"format";if("mail"===rn[2].slice(rn[2].length-4).toLowerCase()&&!Zt[2].trim().match(M.B2))return"email";if("login"===rn[3]&&""===Zt[3].trim())return"login";let On="";for(const Bn of Zt)On+=Bn.trim()+";";return On.slice(0,-1)}userInputValidator(){return ct=>{const kt=ct.value.split("\n");for(const Zt of kt){const rn=this.parseMemberLine(Zt);if("format"===rn)return{invalidFormat:{value:Zt}};if("email"===rn)return{invalidEmail:{value:Zt}};if("login"===rn)return{invalidLogin:{value:Zt}}}return null}}}return Mt.\u0275fac=function(ct){return new(ct||Mt)(w.Y36(f.so),w.Y36(f.WI),w.Y36(b.d6),w.Y36(e.uq),w.Y36(b.V6),w.Y36(H.sK),w.Y36(b.x4),w.Y36(e.ff),w.Y36(e.H8),w.Y36(D.QS),w.Y36(b.HV),w.Y36(w.sBO))},Mt.\u0275cmp=w.Xpm({type:Mt,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(ct,kt){if(1&ct&&w.Gf(s,5),2&ct){let Zt;w.iGM(Zt=w.CRH())&&(kt.stepper=Zt.first)}},decls:8,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear",4,"ngIf"],[4,"ngIf"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"mt-2"],[1,"flex-container","mt-2",3,"formGroup"],["data-cy","namespace-filter","formControlName","namespace","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"pt-2"],["data-cy","csv-input","cols","50","id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","formControlName","sponsoredMembers","matInput","","rows","8",1,"md-textarea","form-control",3,"placeholder"],[1,"mb-4"],["alert_type","info",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["class","w-100",4,"ngIf"],[3,"expiration","datePicker"],[3,"voId","submit","groupsToAdd","submitAllowed"],["alert_type","error"],[3,"value"],["alert_type","info"],[3,"ngModel","ngModelChange"],["value","generate"],["value","reset"],[1,"w-100"],[3,"value","valueChange"],[3,"alert_type",4,"ngIf"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["data-cy","next-button","color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["data-cy","submit-button","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","next-button","color","accent","mat-flat-button","",3,"disabled","click"],["data-cy","submit-button","color","accent","mat-flat-button","",3,"disabled","click"],["mat-flat-button","","data-cy","close-button",3,"click"],["color","accent","mat-flat-button","",1,"ml-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(ct,kt){1&ct&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,l,1,0,"mat-spinner",1),w.YNc(5,It,3,2,"div",2),w.YNc(6,on,7,6,"div",3),w.YNc(7,bn,15,13,"div",3),w.qZA()),2&ct&&(w.Tol(kt.theme),w.xp6(2),w.Oqu(w.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),w.xp6(2),w.Q6J("ngIf",kt.loading),w.xp6(1),w.Q6J("ngIf",!kt.loading),w.xp6(1),w.Q6J("ngIf",!kt.loading&&void 0!==kt.stepper&&"results"!==kt.state),w.xp6(1),w.Q6J("ngIf","results"===kt.state))},dependencies:[T.sg,T.O5,O.ey,J.TO,J.KE,J.hX,ne.Nt,D._Y,D.Fj,D.JJ,D.JL,D.Q7,D.sg,D.u,D.On,se.lW,f.uh,f.xY,f.H8,_e.gD,Be.Ou,pe.VQ,pe.U0,z.C0,z.VY,z.Vq,o.VK,o.OP,o.p6,F.w,V.c,N,T.gd,H.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Mt})();var Dt=p(91828),Ge=p(96308),wt=p(30671),Ft=p(19352),ln=p(58964),Cn=p(94364),gn=p(34198),zn=p(55660),bt=p(18750),Lt=p(20919),pt=p(5865),it=p(9185),St=p(8231),j=p(14849);function He(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"th",20)(1,"mat-checkbox",21),w.NdJ("change",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(Zt?rn.masterToggle():null)}),w.ALo(2,"translate"),w.ALo(3,"masterCheckboxLabel"),w.qZA()()}if(2&Mt){const ct=w.oxw().ngIf,kt=w.oxw();w.xp6(1),w.Q6J("aria-label",w.lcZ(2,3,w.lcZ(3,5,ct.all)))("checked",kt.selection.hasValue()&&ct.all)("indeterminate",kt.selection.hasValue()&&!ct.all)}}const mt=function(Mt){return{name:Mt}};function Rt(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"td",22)(1,"mat-checkbox",23),w.NdJ("change",function(Zt){const On=w.CHM(ct).$implicit,Bn=w.oxw(2);return w.KtG(Zt?Bn.selection.toggle(On):null)})("click",function(Zt){return Zt.stopPropagation()}),w.ALo(2,"translate"),w.ALo(3,"checkboxLabel"),w.ALo(4,"userFullName"),w.qZA()()}if(2&Mt){const ct=en.$implicit,kt=w.oxw(2);w.xp6(1),w.Q6J("aria-label",w.xi3(2,2,w.lcZ(3,5,kt.selection.isSelected(ct)),w.VKq(9,mt,w.lcZ(4,7,ct.member.user))))("checked",kt.selection.isSelected(ct))}}function Xt(Mt,en){1&Mt&&(w.ynx(0,17),w.YNc(1,He,4,7,"th",18),w.YNc(2,Rt,5,11,"td",19),w.BQk())}function vn(Mt,en){1&Mt&&(w.TgZ(0,"th",24),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")," "))}function Vn(Mt,en){if(1&Mt&&(w.TgZ(0,"td",25),w._uU(1),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.hij(" ",ct.member.id," ")}}function In(Mt,en){1&Mt&&(w.TgZ(0,"th",24),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")," "))}function Kn(Mt,en){if(1&Mt&&(w.TgZ(0,"td",26),w._uU(1),w.ALo(2,"userFullName"),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.hij(" ",w.lcZ(2,1,ct.member.user)," ")}}function ti(Mt,en){1&Mt&&(w.TgZ(0,"th",27),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.EMAIL")," "))}function $n(Mt,en){if(1&Mt&&(w.TgZ(0,"td",26),w._uU(1),w.ALo(2,"memberEmail"),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.Oqu(w.lcZ(2,1,ct.member))}}function Jn(Mt,en){1&Mt&&(w.TgZ(0,"th",27),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.LOGIN")," "))}function Ln(Mt,en){if(1&Mt&&(w.TgZ(0,"td",26),w._uU(1),w.ALo(2,"memberLogins"),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.hij(" ",w.lcZ(2,1,ct.member)," ")}}function zi(Mt,en){1&Mt&&(w.TgZ(0,"th",24),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")," "))}function qn(Mt,en){if(1&Mt&&(w.TgZ(0,"span"),w._uU(1),w.ALo(2,"userFullName"),w._UZ(3,"br"),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.hij(" ",w.lcZ(2,1,ct.user),"")}}function ci(Mt,en){if(1&Mt&&(w.TgZ(0,"td",26),w.YNc(1,qn,4,3,"span",28),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.Q6J("ngForOf",ct.sponsors)}}function Yi(Mt,en){1&Mt&&w._UZ(0,"th",24)}function tr(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"span",31),w.ALo(1,"translate"),w.TgZ(2,"button",32),w.NdJ("mouseenter",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.disableRouting=!0)})("mouseleave",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.disableRouting=Zt.routingStrategy)})("click",function(){w.CHM(ct);const Zt=w.oxw().$implicit,rn=w.oxw();return w.KtG(rn.resetPassword(Zt))}),w.TgZ(3,"mat-icon"),w._uU(4,"vpn_key"),w.qZA()()()}if(2&Mt){const ct=w.oxw().$implicit,kt=w.oxw();w.Q6J("matTooltipPosition","above")("matTooltip",w.lcZ(1,4,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),w.xp6(2),w.Q2q("data-cy","",ct.member.user.firstName,"-reset-passwd-button"),w.Q6J("disabled",kt.loading)}}function Vi(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"td",26)(1,"button",29),w.NdJ("click",function(){const rn=w.CHM(ct).$implicit,On=w.oxw();return w.KtG(On.showSponsors(rn))})("mouseenter",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.disableRouting=!0)})("mouseleave",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.disableRouting=Zt.routingStrategy)}),w.TgZ(2,"mat-icon"),w._uU(3,"edit"),w.qZA()(),w.YNc(4,tr,5,6,"span",30),w.qZA()}if(2&Mt){const ct=en.$implicit,kt=w.oxw();w.xp6(1),w.Q2q("data-cy","",ct.member.user.firstName,"-edit-sponsors-button"),w.xp6(3),w.Q6J("ngIf",kt.passwdResetAuth(ct))}}function di(Mt,en){1&Mt&&w._UZ(0,"tr",33)}const or=function(Mt,en){return["/organizations",Mt,"members",en]};function Ir(Mt,en){if(1&Mt&&w._UZ(0,"tr",34),2&Mt){const ct=en.$implicit,kt=w.oxw();w.ekj("cursor-pointer",!kt.disableRouting)("disable-outline",kt.disableRouting),w.Q2q("data-cy","",ct.member.user.firstName,"-name"),w.Q6J("perunWebAppsMiddleClickRouterLink",kt.disableRouting?null:w.WLB(7,or,ct.member.voId,ct.member.id))("routerLink",kt.disableRouting?null:w.WLB(10,or,ct.member.voId,ct.member.id))}}function sr(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",35),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function lr(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",35),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}const Ci=function(Mt){return{all:Mt}};let Er=(()=>{class Mt{constructor(ct,kt,Zt,rn,On){this.dialog=ct,this.authResolver=kt,this.storeService=Zt,this.attributesManager=rn,this.tableCheckbox=On,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","email","logins","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new w.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=M.f7}set matSort(ct){this.sort=ct}static getSortDataForColumn(ct,kt){switch(kt){case"id":return ct.member.id.toString();case"name":return ct.member.user?ct.member.user.lastName?ct.member.user.lastName:ct.member.user.firstName??"":"";case"sponsors":return ct.sponsors.length.toString();default:return""}}static getDataForColumn(ct,kt){switch(kt){case"id":return ct.member.id.toString();case"name":return ct.member.user?(0,M.bD)(ct.member.user):"";case"sponsors":return ct.sponsors.map(Zt=>(0,M.bD)(Zt.user)).join();default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ct=>"id"!==ct)),this.setDataSource(),this.routingStrategy=this.disableRouting}exportAllData(ct){(0,M.O6)((0,M.Xn)(this.dataSource.filteredData,this.displayedColumns,Mt.getDataForColumn),ct)}exportDisplayedData(ct){const kt=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Zt=kt+this.dataSource.paginator.pageSize;(0,M.O6)((0,M.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(kt,Zt),this.displayedColumns,Mt.getDataForColumn),ct)}setDataSource(){this.dataSource||(this.dataSource=new wt.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(ct,kt)=>(0,M.Sd)(ct,kt,this.displayedColumns,Mt.getDataForColumn),this.dataSource.sortData=(ct,kt)=>(0,M.pR)(ct,kt,Mt.getSortDataForColumn)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(ct){const kt=(0,M.kZ)();kt.width="650px",kt.data={sponsors:ct.sponsors,member:ct.member,theme:"vo-theme"},this.dialog.open(Ft.H,kt).afterClosed().subscribe(rn=>{rn&&this.refreshTable.emit()})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}resetPassword(ct){this.loading=!0;const kt=this.storeService.getProperty("password_namespace_attributes").map(Zt=>{const rn=Zt.split(":");return rn[rn.length-1]});this.attributesManager.getLogins(ct.member.userId).subscribe(Zt=>{const rn=Zt.filter(Qn=>kt.includes(Qn.friendlyNameParameter)),On=(0,M.kZ)();On.width="400px",On.data={userId:ct.member.userId,memberId:ct.member.id,logins:rn},this.dialog.open(ln.m,On).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(ct){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:ct.member.voId,beanName:"Vo"},ct.member])}}return Mt.\u0275fac=function(ct){return new(ct||Mt)(w.Y36(f.uw),w.Y36(b.x4),w.Y36(b.d6),w.Y36(e.H8),w.Y36(b.UA))},Mt.\u0275cmp=w.Xpm({type:Mt,selectors:[["app-sponsored-members-list"]],viewQuery:function(ct,kt){if(1&ct&&(w.Gf(M.l9,7),w.Gf(Ge.YE,7)),2&ct){let Zt;w.iGM(Zt=w.CRH())&&(kt.child=Zt.first),w.iGM(Zt=w.CRH())&&(kt.matSort=Zt.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[w.TTD],decls:27,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","email"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","logins"],["matColumnDef","sponsors"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],[4,"ngFor","ngForOf"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"click","mouseenter","mouseleave"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"disabled","mouseenter","mouseleave","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(ct,kt){1&ct&&(w.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),w.NdJ("exportDisplayedData",function(rn){return kt.exportDisplayedData(rn)})("exportAllData",function(rn){return kt.exportAllData(rn)}),w.TgZ(2,"table",2),w.YNc(3,Xt,3,0,"ng-container",3),w.ALo(4,"isAllSelected"),w.ynx(5,4),w.YNc(6,vn,3,3,"th",5),w.YNc(7,Vn,2,1,"td",6),w.BQk(),w.ynx(8,7),w.YNc(9,In,3,3,"th",5),w.YNc(10,Kn,3,3,"td",8),w.BQk(),w.ynx(11,9),w.YNc(12,ti,3,3,"th",10),w.YNc(13,$n,3,3,"td",8),w.BQk(),w.ynx(14,11),w.YNc(15,Jn,3,3,"th",10),w.YNc(16,Ln,3,3,"td",8),w.BQk(),w.ynx(17,12),w.YNc(18,zi,3,3,"th",5),w.YNc(19,ci,2,1,"td",8),w.BQk(),w.ynx(20,13),w.YNc(21,Yi,1,0,"th",5),w.YNc(22,Vi,5,2,"td",8),w.BQk(),w.YNc(23,di,1,0,"tr",14),w.YNc(24,Ir,1,13,"tr",15),w.qZA()()(),w.YNc(25,sr,3,3,"perun-web-apps-alert",16),w.YNc(26,lr,3,3,"perun-web-apps-alert",16)),2&ct&&(w.Q6J("hidden",0===kt.dataSource.filteredData.length||0===kt.sponsoredMembers.length),w.xp6(1),w.Q6J("pageSizeOptions",kt.pageSizeOptions)("dataLength",kt.dataSource.filteredData.length)("tableId",kt.tableId),w.xp6(1),w.Q6J("dataSource",kt.dataSource),w.xp6(1),w.Q6J("ngIf",w.VKq(13,Ci,w.xi3(4,10,kt.dataSource,kt.selection.selected.length))),w.xp6(20),w.Q6J("matHeaderRowDef",kt.displayedColumns),w.xp6(1),w.Q6J("matRowDefColumns",kt.displayedColumns),w.xp6(1),w.Q6J("ngIf",0===kt.dataSource.filteredData.length&&0!==kt.sponsoredMembers.length),w.xp6(1),w.Q6J("ngIf",0===kt.sponsoredMembers.length))},dependencies:[T.sg,T.O5,Cn.rH,G.Hw,se.lW,Ge.YE,Ge.nU,wt.BZ,wt.fO,wt.as,wt.w1,wt.Dz,wt.nj,wt.ge,wt.ev,wt.XQ,wt.Gk,Oe.oG,E.gM,F.w,gn.Y,zn.Q,bt.l,H.X$,W.d,Lt.D,pt.p,it.I,St.G,j.r],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Mt})();var Ur=p(96214);function Ei(Mt,en){if(1&Mt&&(w.TgZ(0,"button",11),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt){const ct=w.oxw(),kt=w.MAs(9);w.Q6J("disabled",ct.findSponsorsAuth&&0===ct.voSponsors.length)("matMenuTriggerFor",kt),w.xp6(1),w.hij(" ",w.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function Or(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",12),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onCreate())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function Nr(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",13),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onGenerate())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function kr(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",14),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onSponsorExistingMember())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function Hr(Mt,en){1&Mt&&w._UZ(0,"mat-spinner",15)}function Pi(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"app-sponsored-members-list",16),w.NdJ("refreshTable",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.refresh())}),w.qZA()}if(2&Mt){const ct=w.oxw();w.Q6J("disableRouting",!ct.routeAuth)("selection",ct.selection)("filterValue",ct.searchString)("sponsoredMembers",ct.members)("tableId",ct.tableId)}}let Ii=(()=>{class Mt{constructor(ct,kt,Zt,rn,On,Bn,Qn){this.membersManager=ct,this.dialog=kt,this.authResolver=Zt,this.storeService=rn,this.authzResolver=On,this.entityStorageService=Bn,this.findSponsors=Qn,this.members=[],this.voSponsors=[],this.selection=new A.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=C.Bf,this.attrNames=[q.r.USER_DEF_PREFERRED_MAIL]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.setAuthRights(),this.findSponsorsAuth=this.findSponsors.findSponsorsAuth(this.vo),this.findSponsorsAuth?this.findSponsors.getSponsors(this.vo.id).subscribe(ct=>{this.voSponsors=ct,this.refresh()}):this.refresh()}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createSponsoredMember_Vo_String_Map_String_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.generateAuth=this.authResolver.isAuthorized("createSponsoredMembers_Vo_String_List_User_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.setSponsorshipAuth=this.authResolver.isAuthorized("setSponsorshipForMember_Member_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0].member]))}onCreate(){const ct=(0,M.kZ)();ct.width="750px",ct.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(n,ct).afterClosed().subscribe(Zt=>{Zt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(rn=>{this.storeService.setPerunPrincipal(rn),this.refresh()}))})}onGenerate(){const ct=(0,M.kZ)();ct.width="750px",ct.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Tt,ct).afterClosed().subscribe(Zt=>{Zt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(rn=>{this.storeService.setPerunPrincipal(rn),this.refresh()}))})}onSponsorExistingMember(){const ct=(0,M.kZ)();ct.width="650px",ct.data={voId:this.vo.id,theme:"vo-theme",voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth},this.dialog.open(Dt.b,ct).afterClosed().subscribe(Zt=>{Zt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(rn=>{this.storeService.setPerunPrincipal(rn),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(ct=>{this.selection.clear(),this.members=ct,this.setAuthRights(),this.loading=!1})}applyFilter(ct){this.searchString=ct}}return Mt.id="VoSponsoredMembersComponent",Mt.\u0275fac=function(ct){return new(ct||Mt)(w.Y36(e.uq),w.Y36(f.uw),w.Y36(b.x4),w.Y36(b.d6),w.Y36(e.Ct),w.Y36(b.fb),w.Y36(b.Mf))},Mt.\u0275cmp=w.Xpm({type:Mt,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(ct,kt){2&ct&&w.ekj("router-component",kt.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["data-cy","sponsor-dropdown-button","class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["data-cy","sponsor-new-button","class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["data-cy","sponsor-csv-button","class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["data-cy","sponsor-existing-button","color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable",4,"ngIf"],["data-cy","sponsor-dropdown-button","color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["data-cy","sponsor-new-button","mat-menu-item","",1,"action-button",3,"click"],["data-cy","sponsor-csv-button","mat-menu-item","",1,"action-button",3,"click"],["data-cy","sponsor-existing-button","color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable"]],template:function(ct,kt){1&ct&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-refresh-button",1),w.NdJ("refresh",function(){return kt.refresh()}),w.qZA(),w.TgZ(5,"span",2),w.ALo(6,"translate"),w.YNc(7,Ei,3,5,"button",3),w.qZA(),w.TgZ(8,"mat-menu",null,4),w.YNc(10,Or,3,3,"button",5),w.YNc(11,Nr,3,3,"button",6),w.qZA(),w.YNc(12,kr,3,3,"button",7),w.TgZ(13,"perun-web-apps-immediate-filter",8),w.NdJ("filter",function(rn){return kt.applyFilter(rn)}),w.qZA(),w.YNc(14,Hr,1,0,"mat-spinner",9),w.YNc(15,Pi,1,5,"app-sponsored-members-list",10),w.qZA()),2&ct&&(w.xp6(2),w.Oqu(w.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),w.xp6(3),w.s9C("matTooltip",w.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),w.Q6J("matTooltipDisabled",!(kt.findSponsorsAuth&&0===kt.voSponsors.length)),w.xp6(2),w.Q6J("ngIf",kt.createAuth||kt.generateAuth),w.xp6(3),w.Q6J("ngIf",kt.createAuth),w.xp6(1),w.Q6J("ngIf",kt.generateAuth),w.xp6(1),w.Q6J("ngIf",kt.setSponsorshipAuth),w.xp6(1),w.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),w.xp6(1),w.Q6J("ngIf",kt.loading),w.xp6(1),w.Q6J("ngIf",!kt.loading))},dependencies:[T.O5,se.lW,Be.Ou,E.gM,o.VK,o.OP,o.p6,Er,Ur.t,ye.L,H.X$]}),Mt})()},25309:($e,he,p)=>{"use strict";p.d(he,{Y:()=>Ke});var e=p(61744),A=p(9244),C=p(81591),M=p(11717),f=p(95017),b=p(65412),D=p(24006),T=p(94650),R=p(89383),B=p(94364),w=p(36895),H=p(59549),O=p(284),J=p(4859),ne=p(51572),G=p(10266);function se(Ue,oe){1&Ue&&T._UZ(0,"mat-spinner",3)}function Oe(Ue,oe){if(1&Ue){const ce=T.EpF();T.TgZ(0,"div")(1,"div",4)(2,"mat-form-field"),T._UZ(3,"input",5),T.ALo(4,"translate"),T.TgZ(5,"mat-error"),T._uU(6),T.ALo(7,"translate"),T.qZA()(),T.TgZ(8,"mat-form-field"),T._UZ(9,"input",6),T.ALo(10,"translate"),T.TgZ(11,"mat-error"),T._uU(12),T.ALo(13,"translate"),T.qZA()()(),T.TgZ(14,"div",7)(15,"button",8),T.NdJ("click",function(){T.CHM(ce);const N=T.oxw();return T.KtG(N.onCancel())}),T._uU(16),T.ALo(17,"translate"),T.qZA(),T.TgZ(18,"div",9),T.ALo(19,"translate"),T.TgZ(20,"button",10),T.NdJ("click",function(){T.CHM(ce);const N=T.oxw();return T.KtG(N.onSubmit())}),T._uU(21),T.ALo(22,"translate"),T.qZA()()()()}if(2&Ue){const ce=T.oxw();T.xp6(3),T.s9C("placeholder",T.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),T.Q6J("formControl",ce.fullNameCtrl),T.xp6(3),T.hij(" ",T.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),T.xp6(3),T.s9C("placeholder",T.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),T.Q6J("formControl",ce.shortNameCtrl),T.xp6(3),T.hij(" ",T.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),T.xp6(4),T.hij(" ",T.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),T.xp6(2),T.s9C("matTooltip",T.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),T.Q6J("matTooltipDisabled",ce.shortNameCtrl.valid&&ce.fullNameCtrl.valid),T.xp6(2),T.Q6J("disabled",ce.shortNameCtrl.invalid||ce.fullNameCtrl.invalid),T.xp6(1),T.hij(" ",T.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let _e=(()=>{class Ue{constructor(ce,k,N,be,W,ue){this.dialogRef=ce,this.data=k,this.notificator=N,this.voService=be,this.translate=W,this.router=ue,W.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(Me=>this.successMessage=Me)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new D.p4(null,[D.kI.required,D.kI.pattern("^[\\w.-]+$"),D.kI.maxLength(33)]),this.fullNameCtrl=new D.p4(null,[D.kI.required,D.kI.pattern(".*[\\S]+.*"),D.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe({next:ce=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.router.navigate(["/organizations",ce.id],{queryParamsHandling:"preserve"}),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return Ue.\u0275fac=function(ce){return new(ce||Ue)(T.Y36(b.so),T.Y36(b.WI),T.Y36(C.V6),T.Y36(e.YF),T.Y36(R.sK),T.Y36(B.F0))},Ue.\u0275cmp=T.Xpm({type:Ue,selectors:[["app-create-vo-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","vo-name-input","required","",3,"formControl","placeholder"],["matInput","","data-cy","vo-shortname-input","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","data-cy","create-vo-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(ce,k){1&ce&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,se,1,0,"mat-spinner",1),T.YNc(5,Oe,23,25,"div",2),T.qZA()),2&ce&&(T.Tol(k.theme),T.xp6(2),T.Oqu(T.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),T.xp6(2),T.Q6J("ngIf",k.loading),T.xp6(1),T.Q6J("ngIf",!k.loading))},dependencies:[w.O5,H.TO,H.KE,O.Nt,D.Fj,D.JJ,D.Q7,D.oH,J.lW,b.uh,b.xY,b.H8,ne.Ou,G.gM,R.X$],styles:[".mat-dialog-content[_ngcontent-%COMP%]{height:auto}@media (min-width: 421px) and (max-width: 755px){.mat-dialog-content[_ngcontent-%COMP%]{height:150px}}@media (max-width: 420px){.mat-dialog-content[_ngcontent-%COMP%]{height:175px}}"]}),Ue})();var Be=p(10036),E=p(77968),z=p(97392),F=p(87831),V=p(96214),X=p(4235),q=p(7434);function pe(Ue,oe){if(1&Ue){const ce=T.EpF();T.TgZ(0,"button",9),T.NdJ("click",function(){T.CHM(ce);const N=T.oxw();return T.KtG(N.onCreateVo())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&Ue&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function le(Ue,oe){if(1&Ue){const ce=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){T.CHM(ce);const N=T.oxw();return T.KtG(N.onRemoveVo())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ue){const ce=T.oxw();T.Q6J("disabled",0===ce.selection.selected.length),T.xp6(1),T.hij(" ",T.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function ye(Ue,oe){1&Ue&&T._UZ(0,"mat-spinner",11)}function Ve(Ue,oe){if(1&Ue&&T._UZ(0,"perun-web-apps-vos-list",12),2&Ue){const ce=T.oxw();T.Q6J("tableId",ce.tableId)("displayedColumns",ce.displayedColumns)("filterValue",ce.filterValue)("recentIds",ce.recentIds)("selection",ce.selection)("vos",ce.vos)}}const ve=function(){return{color:"black"}};let Ke=(()=>{class Ue{constructor(ce,k,N,be,W,ue){this.sideMenuService=ce,this.voService=k,this.guiAuthResolver=N,this.dialog=be,this.notificator=W,this.apiRequest=ue,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=Be.tw}ngOnInit(){this.loading=!0,this.selection=new f.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","hierarchy","recent","shortName","name"]:["id","recent","hierarchy","shortName","name"],this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setAccessMenuItems([])}refreshTable(){this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyEnrichedVos().subscribe({next:ce=>{this.vos=ce,this.recentIds=(0,A.vL)("vos"),this.loading=!1},error:ce=>{"PrivilegeException"===ce.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(ce)}})}applyFilter(ce){this.filterValue=ce}onCreateVo(){const ce=(0,A.kZ)();ce.width="610px",ce.data={theme:"vo-theme"},this.dialog.open(_e,ce).afterClosed().subscribe(N=>{N&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const ce=(0,A.kZ)();ce.width="500px",ce.data={theme:"vo-theme",vos:[this.selection.selected[0].vo]},this.dialog.open(M.o,ce).afterClosed().subscribe(N=>{N&&this.refreshTable()})}}return Ue.id="VoSelectPageComponent",Ue.\u0275fac=function(ce){return new(ce||Ue)(T.Y36(E.D),T.Y36(e.YF),T.Y36(C.x4),T.Y36(b.uw),T.Y36(C.V6),T.Y36(C.F5))},Ue.\u0275cmp=T.Xpm({type:Ue,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(ce,k){2&ce&&T.ekj("router-component",k.true)},decls:12,vars:11,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","vo-theme"],[1,"page-title","d-flex"],["svgIcon","perun-vo-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["class","mr-2 action-button","data-cy","new-vo-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos",4,"ngIf"],["data-cy","new-vo-button","color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos"]],template:function(ce,k){1&ce&&(T.TgZ(0,"div",0),T._UZ(1,"perun-web-apps-back-button"),T.TgZ(2,"h1",1),T._UZ(3,"mat-icon",2),T._uU(4),T.ALo(5,"translate"),T.qZA(),T.TgZ(6,"perun-web-apps-refresh-button",3),T.NdJ("refresh",function(){return k.refreshTable()}),T.qZA(),T.YNc(7,pe,3,3,"button",4),T.YNc(8,le,3,4,"button",5),T.TgZ(9,"perun-web-apps-immediate-filter",6),T.NdJ("filter",function(be){return k.applyFilter(be)}),T.qZA(),T.YNc(10,ye,1,0,"mat-spinner",7),T.YNc(11,Ve,1,6,"perun-web-apps-vos-list",8),T.qZA()),2&ce&&(T.xp6(3),T.Q6J("ngStyle",T.DdM(10,ve)),T.xp6(1),T.hij(" ",T.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),T.xp6(3),T.Q6J("ngIf",k.createAuth),T.xp6(1),T.Q6J("ngIf",k.deleteAuth),T.xp6(1),T.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),T.xp6(1),T.Q6J("ngIf",k.loading),T.xp6(1),T.Q6J("ngIf",!k.loading))},dependencies:[w.O5,w.PC,z.Hw,J.lW,ne.Ou,F.Z,V.t,X.W,q.L,R.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),Ue})()},92013:($e,he,p)=>{"use strict";var e=p(11481),A=p(94650),C=p(94364);let M=(()=>{class ae{}return ae.\u0275fac=function(I){return new(I||ae)},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(I,Q){}}),ae})();var f=p(61744),b=p(81591),D=p(9244),T=p(21029),R=p(40034),B=p(77968),w=p(89383),H=p(65412),O=p(36895),J=p(24006),ne=p(97392),G=p(23267),se=p(4859),Oe=p(56709),_e=p(51572),Be=p(10266),E=p(87831),z=p(25788),F=p(62109),V=p(74010);function X(ae,U){1&ae&&A._UZ(0,"mat-spinner",7)}const q=function(){return["id","recent","shortName","name"]};function pe(ae,U){if(1&ae&&(A.TgZ(0,"span"),A._UZ(1,"perun-web-apps-vos-list",8),A.qZA()),2&ae){const I=A.oxw(2);A.xp6(1),A.Q6J("pageSizeOptions",null)("displayedColumns",A.DdM(4,q))("recentIds",I.recentIds)("vos",I.objects)}}const le=function(){return["id","recent","vo","name","description"]};function ye(ae,U){if(1&ae&&(A.TgZ(0,"span"),A._UZ(1,"perun-web-apps-groups-list",9),A.qZA()),2&ae){const I=A.oxw(2);A.xp6(1),A.Q6J("pageSizeOptions",null)("displayedColumns",A.DdM(4,le))("groups",I.objects)("recentIds",I.recentIds)}}const Ve=function(){return["id","recent","name","vo","facility"]};function ve(ae,U){if(1&ae&&(A.TgZ(0,"span"),A._UZ(1,"perun-web-apps-resources-list",10),A.qZA()),2&ae){const I=A.oxw(2);A.xp6(1),A.Q6J("pageSizeOptions",null)("displayedColumns",A.DdM(5,Ve))("resources",I.objects)("recentIds",I.recentIds)("routingVo",!0)}}const Ke=function(){return["id","recent","name","description"]};function Ue(ae,U){if(1&ae&&(A.TgZ(0,"span"),A._UZ(1,"perun-web-apps-facilities-list",11),A.qZA()),2&ae){const I=A.oxw(2);A.xp6(1),A.Q6J("displayedColumns",A.DdM(4,Ke))("facilities",I.objects)("pageSizeOptions",null)("recentIds",I.recentIds)}}function oe(ae,U){if(1&ae&&(A.TgZ(0,"div"),A.YNc(1,pe,2,5,"span",6),A.YNc(2,ye,2,5,"span",6),A.YNc(3,ve,2,6,"span",6),A.YNc(4,Ue,2,5,"span",6),A.qZA()),2&ae){const I=A.oxw();A.xp6(1),A.Q6J("ngIf","Vo"===I.primaryObject),A.xp6(1),A.Q6J("ngIf","Group"===I.primaryObject),A.xp6(1),A.Q6J("ngIf","Resource"===I.primaryObject),A.xp6(1),A.Q6J("ngIf","Facility"===I.primaryObject)}}let ce=(()=>{class ae{constructor(I,Q,Ze){this.authzResolver=I,this.guiAuthResolver=Q,this.resourceService=Ze,this.loading=!1,this.recentIds=[]}ngOnInit(){this.loading=!0,this.primaryObject=this.guiAuthResolver.getPrimaryObjectOfRole(this.roleName),this.svgIcon="perun-"+this.primaryObject.toLowerCase()+"-black",this.title="USER_DETAIL.DASHBOARD.CARD_TITLE_"+this.roleName,this.roleTooltipInfo="USER_DETAIL.DASHBOARD.ROLE_INFO_"+this.roleName,this.getObjects()}getObjects(){switch(this.primaryObject){case"Vo":this.authzResolver.getVosWhereUserIsInRoles([this.roleName]).subscribe(I=>{this.objects=I,this.recentIds=(0,D.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(I=>{this.objects=I,this.recentIds=(0,D.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(I=>{this.objects=I,this.recentIds=(0,D.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(I=>{this.objects=I.map(Q=>({facility:Q})),this.recentIds=(0,D.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(f.Ct),A.Y36(b.x4),A.Y36(f.xk))},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["app-perun-web-apps-dashboard-card"]],inputs:{role:"role",roleName:"roleName"},decls:11,vars:9,consts:[[1,"card","p-3"],[1,"flex-column","card-title"],[1,"cover-image",3,"svgIcon"],["matTooltipPosition","above",3,"matTooltip"],[1,"dashboard-icon"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSizeOptions","displayedColumns","recentIds","vos"],[3,"pageSizeOptions","displayedColumns","groups","recentIds"],[3,"pageSizeOptions","displayedColumns","resources","recentIds","routingVo"],[3,"displayedColumns","facilities","pageSizeOptions","recentIds"]],template:function(I,Q){1&I&&(A.TgZ(0,"div",0)(1,"div",1),A._UZ(2,"mat-icon",2),A._uU(3),A.ALo(4,"translate"),A.TgZ(5,"span",3),A.ALo(6,"translate"),A.TgZ(7,"mat-icon",4),A._uU(8,"info_outline"),A.qZA()()(),A.YNc(9,X,1,0,"mat-spinner",5),A.YNc(10,oe,5,4,"div",6),A.qZA()),2&I&&(A.xp6(2),A.Q6J("svgIcon",Q.svgIcon),A.xp6(1),A.hij(" ",A.lcZ(4,5,Q.title)," "),A.xp6(2),A.s9C("matTooltip",A.lcZ(6,7,Q.roleTooltipInfo)),A.xp6(4),A.Q6J("ngIf",Q.loading),A.xp6(1),A.Q6J("ngIf",!Q.loading))},dependencies:[O.O5,ne.Hw,_e.Ou,Be.gM,E.Z,z.W,F.C,V.X,w.X$],styles:[".dashboard-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}.card-title[_ngcontent-%COMP%]{font-size:1.4rem;flex-wrap:wrap}.cover-image[_ngcontent-%COMP%]{transform:scale(1.8);margin-left:.9rem;margin-right:.7rem}"]}),ae})();var k=p(3238),N=p(98380),be=p(34198),W=p(55660);function ue(ae,U){1&ae&&A._UZ(0,"mat-spinner",3)}function Me(ae,U){1&ae&&(A.TgZ(0,"perun-web-apps-alert",4),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}const ot=function(ae){return[ae]};function je(ae,U){if(1&ae&&(A.TgZ(0,"div",7)(1,"a",8),A.NdJ("auxclick",function(Q){return Q.preventDefault()}),A.TgZ(2,"span",9),A._uU(3),A.qZA(),A._UZ(4,"mat-icon",10),A.TgZ(5,"p",11),A._uU(6),A.qZA()()()),2&ae){const I=U.$implicit;A.xp6(1),A.Gre("",I.style," item-itself"),A.s9C("matTooltip",I.tooltip),A.Q6J("perunWebAppsMiddleClickRouterLink",A.VKq(9,ot,I.url))("routerLink",I.url),A.xp6(2),A.Oqu(I.type),A.xp6(1),A.Q6J("svgIcon",I.cssIcon),A.xp6(2),A.Oqu(I.label)}}function ut(ae,U){if(1&ae&&(A.TgZ(0,"div",5),A.YNc(1,je,7,11,"div",6),A.qZA()),2&ae){const I=A.oxw();A.xp6(1),A.Q6J("ngForOf",I.items)}}let tt=(()=>{class ae{constructor(I,Q,Ze,dt){this.vosManager=I,this.groupsManager=Q,this.authResolver=Ze,this.facilitiesManager=dt,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}ngOnInit(){this.loading=!0,this.recentItems=(0,D.j4)("recent");for(const I of this.recentItems)switch(I.type){case"Vo":this.vosIds.push(I.id);break;case"Group":this.groupsIds.push(I.id);break;case"Facility":this.facilitiesIds.push(I.id)}0===this.vosIds.length&&this.vosIds.push(-1),0===this.groupsIds.length&&this.groupsIds.push(-1),0===this.facilitiesIds.length&&this.facilitiesIds.push(-1),this.getVos()}getVos(){this.authResolver.isAuthorized("getVosByIds_List_policy",[])?this.vosManager.getVosByIds(this.vosIds).subscribe(I=>{this.vos=I,this.getGroups()}):this.getGroups()}getGroups(){this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(I=>{this.groups=I,this.getFacilities()}):this.getFacilities()}getFacilities(){this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(I=>{this.facilities=I,this.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}addRecentlyViewedToDashboard(){for(const I of this.recentItems)switch(I.type){case"Vo":{const Q=this.vos.filter(Ze=>Ze.id===I.id)[0];Q&&this.items.push({cssIcon:"perun-vo",url:`/organizations/${Q.id}`,label:Q.name,tooltip:Q.name,style:"vo-btn",type:"Organization"});break}case"Group":{const Q=this.groups.filter(Ze=>Ze.id===I.id)[0];Q&&this.items.push({cssIcon:"perun-group",url:`/organizations/${Q.voId}/groups/${Q.id}`,label:Q.shortName,tooltip:`${I.voName} : ${Q.name.replace(/:/g," : ")}`,style:"group-btn",type:"Group"});break}case"Facility":{const Q=this.facilities.filter(Ze=>Ze.id===I.id)[0];Q&&this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${Q.id}`,label:Q.name,tooltip:Q.name,style:"facility-btn",type:"Facility"});break}}this.loading=!1}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(f.YF),A.Y36(f.ff),A.Y36(b.x4),A.Y36(f.IQ))},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["app-perun-web-apps-dashboard-recently-viewed-button-field"]],decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],["alert_type","info",4,"ngIf"],["class","items-container",4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","info"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],[3,"perunWebAppsMiddleClickRouterLink","routerLink","matTooltip","auxclick"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"],[1,"truncate"]],template:function(I,Q){1&I&&(A.YNc(0,ue,1,0,"mat-spinner",0),A.YNc(1,Me,3,3,"perun-web-apps-alert",1),A.YNc(2,ut,2,1,"div",2)),2&I&&(A.Q6J("ngIf",Q.loading),A.xp6(1),A.Q6J("ngIf",0===Q.items.length&&!Q.loading),A.xp6(1),A.Q6J("ngIf",Q.items.length>0))},dependencies:[O.sg,O.O5,C.yS,ne.Hw,_e.Ou,Be.gM,k.wG,N.w,be.Y,W.Q,w.X$],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px;align-self:center}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;font-size:1.25rem;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}.item-type[_ngcontent-%COMP%]{font-size:.75rem}.truncate[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}"]}),ae})();var vt=p(31359);function ee(ae,U){if(1&ae){const I=A.EpF();A.TgZ(0,"div")(1,"mat-checkbox",8),A.NdJ("change",function(Ze){const Ot=A.CHM(I).$implicit,Ht=A.oxw();return A.KtG(Ze?Ht.changeRoleView(Ot):null)}),A._uU(2),A.ALo(3,"translate"),A.qZA()()}if(2&ae){const I=U.$implicit,Q=A.oxw();A.xp6(1),A.Q6J("checked",Q.isRoleShowed(I)),A.xp6(1),A.Oqu(A.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+I))}}function nt(ae,U){if(1&ae){const I=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){A.CHM(I);const Ze=A.oxw(2);return A.KtG(Ze.rightSettingOpened=!0)}),A.TgZ(1,"mat-icon"),A._uU(2,"settings"),A.qZA()()}}function Ae(ae,U){1&ae&&(A.TgZ(0,"span"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function Ee(ae,U){1&ae&&(A.TgZ(0,"span"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function ge(ae,U){if(1&ae){const I=A.EpF();A.TgZ(0,"button",23),A.NdJ("click",function(){A.CHM(I);const Ze=A.oxw(3);return A.KtG(Ze.goToUserProfile())}),A.TgZ(1,"mat-icon",24),A._uU(2,"exit_to_app"),A.qZA(),A._uU(3),A.ALo(4,"translate"),A.qZA()}if(2&ae){const I=A.oxw(3);A.xp6(3),A.AsE("",A.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",I.userProfileName," ")}}const we=function(){return["/myProfile"]};function Ne(ae,U){if(1&ae&&(A.TgZ(0,"div")(1,"div",16)(2,"div",17),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.TgZ(5,"div",18),A.YNc(6,Ae,3,3,"span",14),A.YNc(7,Ee,3,3,"span",14),A.qZA(),A.TgZ(8,"div",19)(9,"button",20),A._UZ(10,"mat-icon",21),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.YNc(13,ge,5,4,"button",22),A.qZA()()()),2&ae){const I=A.oxw(2);A.xp6(3),A.hij(" ",A.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),A.xp6(3),A.Q6J("ngIf",!I.userProfileUrl),A.xp6(1),A.Q6J("ngIf",I.userProfileUrl),A.xp6(2),A.Q6J("routerLink",A.DdM(10,we)),A.xp6(2),A.hij(" ",A.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),A.xp6(2),A.Q6J("ngIf",I.userProfileUrl)}}function Ce(ae,U){1&ae&&(A.TgZ(0,"span")(1,"div",3),A._uU(2),A.ALo(3,"translate"),A.qZA(),A._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),A.qZA()),2&ae&&(A.xp6(2),A.hij(" ",A.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function fe(ae,U){1&ae&&(A.TgZ(0,"div",27),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function r(ae,U){if(1&ae&&A._UZ(0,"app-perun-web-apps-dashboard-card",30),2&ae){const I=A.oxw().$implicit,Q=A.oxw(3);A.Q6J("roleName",I)("role",Q.roles[I])}}function u(ae,U){if(1&ae&&(A.TgZ(0,"div",28),A.YNc(1,r,1,2,"app-perun-web-apps-dashboard-card",29),A.qZA()),2&ae){const I=U.$implicit,Q=A.oxw(3);A.xp6(1),A.Q6J("ngIf",Q.isRoleShowed(I))}}function g(ae,U){if(1&ae&&(A.TgZ(0,"div"),A.YNc(1,Ce,5,3,"span",14),A.YNc(2,fe,3,3,"div",25),A.TgZ(3,"div"),A.YNc(4,u,2,1,"div",26),A.qZA()()),2&ae){const I=A.oxw(2);A.xp6(1),A.Q6J("ngIf",I.recentlyViewedShow),A.xp6(1),A.Q6J("ngIf",I.rolesToHide.toString()!==I.roleNames.toString()),A.xp6(2),A.Q6J("ngForOf",I.roleNames)}}function v(ae,U){if(1&ae&&(A.TgZ(0,"div",9)(1,"h1",10),A._UZ(2,"mat-icon",11),A.TgZ(3,"span",12),A._uU(4),A.ALo(5,"translate"),A.ALo(6,"userFullName"),A.qZA(),A.YNc(7,nt,3,0,"button",13),A.qZA(),A.YNc(8,Ne,14,11,"div",14),A.YNc(9,g,5,3,"div",14),A.qZA()),2&ae){const I=A.oxw();A.xp6(4),A.AsE("",A.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",A.lcZ(6,7,I.user),""),A.xp6(3),A.Q6J("ngIf",!I.isOnlySelfRole),A.xp6(1),A.Q6J("ngIf",I.isOnlySelfRole),A.xp6(1),A.Q6J("ngIf",!I.isOnlySelfRole)}}let h=(()=>{class ae{constructor(I,Q,Ze,dt,Ot,Ht,Gt,$t,fn,yn){this.userManager=I,this.storeService=Q,this.sideMenuService=Ze,this.route=dt,this.router=Ot,this.notificator=Ht,this.translateService=Gt,this.dialog=$t,this.apiRequestConfiguration=fn,this.otherApplicationService=yn,this.roles={},this.userProfileUrl="",this.isOnlySelfRole=!1,this.rightSettingOpened=!1,this.recentlyViewedShow=!0,this.rolesToHide=[],this.allowedRoles=["VOADMIN","GROUPADMIN","FACILITYADMIN","SPONSOR","RESOURCEADMIN","TOPGROUPCREATOR","VOOBSERVER","GROUPOBSERVER","GROUPMEMBERSHIPMANAGER","FACILITYOBSERVER","RESOURCEOBSERVER"],Gt.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(kn=>this.mailSuccessMessage=kn)}ngOnInit(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const I=Object.keys(this.roles);this.isOnlySelfRole=I.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(Q=>I.includes(Q)),this.getDashboardSettings()}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}changeRoleView(I){if(this.isRoleShowed(I)){const Q=[];for(const Ze of this.roleNames)this.isRoleShowed(Ze)||Q.push(Ze),Ze===I&&Q.push(Ze);this.rolesToHide=Q}else this.rolesToHide=this.rolesToHide.filter(Q=>Q!==I);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(I){return!this.rolesToHide.includes(I)}validatePreferredMailChange(){const I=this.route.snapshot.queryParamMap,Q=I.get("token"),Ze=I.get("u");Q&&Ze&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(Q,Number.parseInt(Ze,10)).subscribe({next:()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0,queryParamsHandling:"preserve"})},error:()=>{const dt=(0,D.kZ)();dt.width="600px",this.dialog.open(T.qD,dt).afterClosed().subscribe(()=>{this.getDashboardSettings()})}}))}getDashboardSettings(){const I=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===I||I;const Q=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===Q?[]:Q}getUserProfile(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication(R.p.Profile),this.userProfileName=this.storeService.getProperty("profile_label_en")}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(f.Fv),A.Y36(b.d6),A.Y36(B.D),A.Y36(C.gz),A.Y36(C.F0),A.Y36(b.V6),A.Y36(w.sK),A.Y36(H.uw),A.Y36(b.F5),A.Y36(b.jq))},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(I,Q){2&I&&A.ekj("router-component",Q.true)},decls:16,vars:13,consts:[["hasBackdrop","true",1,"dashboard"],["mode","over","position","end",3,"opened","openedChange"],[1,"m-4","user-theme"],[1,"page-subtitle"],[3,"ngModel","ngModelChange","change"],[1,"text-bigger","mt-1","mb-1"],[4,"ngFor","ngForOf"],["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[3,"checked","change"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"page-title","d-flex"],["svgIcon","perun-home-white",1,"home-image","perun-icon"],["data-cy","dashboard-welcome",1,"pt-1"],["class","ml-auto text-bigger","mat-stroked-button","",3,"click",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"ml-auto","text-bigger",3,"click"],[1,"card","m-3","p-5"],[1,"text-align"],[1,"text-align","pt-3"],[1,"mx-auto","pt-3"],["queryParamsHandling","merge","mat-stroked-button","",1,"text-bigger",3,"routerLink"],["svgIcon","perun-user-dark",1,"mr-1","user-icon","perun-icon"],["class","text-bigger ml-2 mt-2","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"text-bigger","ml-2","mt-2",3,"click"],[1,"mr-1"],["class","page-subtitle mt-4",4,"ngIf"],["class","mb-3",4,"ngFor","ngForOf"],[1,"page-subtitle","mt-4"],[1,"mb-3"],[3,"roleName","role",4,"ngIf"],[3,"roleName","role"]],template:function(I,Q){1&I&&(A.TgZ(0,"mat-sidenav-container",0)(1,"mat-sidenav",1),A.NdJ("openedChange",function(dt){return Q.rightSettingOpened=dt}),A.TgZ(2,"div",2)(3,"div",3),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div")(7,"mat-checkbox",4),A.NdJ("ngModelChange",function(dt){return Q.recentlyViewedShow=dt})("change",function(dt){return dt?Q.recentlyViewedChanged():null}),A._uU(8),A.ALo(9,"translate"),A.qZA()(),A.TgZ(10,"div",5),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.YNc(13,ee,4,4,"div",6),A.qZA()(),A.TgZ(14,"mat-sidenav-content"),A.YNc(15,v,10,9,"div",7),A.qZA()()),2&I&&(A.xp6(1),A.Q6J("opened",Q.rightSettingOpened),A.xp6(3),A.Oqu(A.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),A.xp6(3),A.Q6J("ngModel",Q.recentlyViewedShow),A.xp6(1),A.Oqu(A.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),A.xp6(3),A.Oqu(A.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),A.xp6(2),A.Q6J("ngForOf",Q.roleNames),A.xp6(2),A.Q6J("ngIf",void 0!==Q.user))},dependencies:[O.sg,O.O5,C.rH,J.JJ,J.On,ne.Hw,G.JX,G.TM,G.Rh,se.lW,Oe.oG,ce,tt,w.X$,vt.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;-moz-column-gap:1rem;column-gap:1rem;margin:0}.dashboard-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:0 1rem 1rem 0;display:inline-block;min-width:300px;width:100%}.home-image[_ngcontent-%COMP%]{transform:scale(1.4);margin-right:.7rem;margin-left:.6rem}.text-align[_ngcontent-%COMP%]{text-align:center;font-size:1.25rem}.text-bigger[_ngcontent-%COMP%]{font-size:1.1rem}.user-icon[_ngcontent-%COMP%]{vertical-align:top}.dashboard[_ngcontent-%COMP%]{position:relative;min-height:calc(100vh - 234px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),ae})();var a=p(4235);let i=(()=>{class ae{}return ae.\u0275fac=function(I){return new(I||ae)},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["app-perun-web-apps-not-found-page"]],decls:5,vars:3,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5"],[1,"page-title"]],template:function(I,Q){1&I&&(A.TgZ(0,"div",0),A._UZ(1,"perun-web-apps-back-button"),A.TgZ(2,"h1",1),A._uU(3),A.ALo(4,"translate"),A.qZA()()),2&I&&(A.xp6(3),A.Oqu(A.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},dependencies:[a.W,w.X$]}),ae})();var t=p(37433),n=p(59549),o=p(284),s=p(63189);let l=(()=>{class ae{}return ae.\u0275fac=function(I){return new(I||ae)},ae.\u0275mod=A.oAB({type:ae}),ae.\u0275inj=A.cJS({imports:[O.ez,se.ot,ne.Ps,C.Bz,t.ez,w.aw,n.lN,J.UX,o.c,s.r]}),ae})(),d=(()=>{class ae{constructor(I,Q){this.auth=I,this.router=Q}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(b.e8),A.Y36(C.F0))},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(I,Q){1&I&&(A.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"button",4),A.NdJ("click",function(){return Q.startAuth()}),A._uU(7),A.ALo(8,"translate"),A.TgZ(9,"mat-icon"),A._uU(10," login "),A.qZA()()()()()),2&I&&(A.xp6(4),A.hij(" ",A.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),A.xp6(3),A.hij(" ",A.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[se.lW,ne.Hw,w.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),ae})();var c=p(41619);function S(ae,U){if(1&ae&&(A.TgZ(0,"div",8),A._UZ(1,"div",9),A.qZA()),2&ae){const I=A.oxw();A.xp6(1),A.Q6J("innerHTML",I.logo,A.oJD)}}function $(ae,U){if(1&ae&&(A.TgZ(0,"div",10),A._UZ(1,"div",11)(2,"mat-icon",12),A.qZA()),2&ae){const I=A.oxw();A.xp6(1),A.Q6J("innerHTML",I.logo,A.oJD)}}const ht=function(ae){return{color:ae}};function ze(ae,U){if(1&ae&&(A.TgZ(0,"p",13),A._uU(1),A.qZA()),2&ae){const I=A.oxw();A.Q6J("ngStyle",A.VKq(2,ht,I.textColor)),A.xp6(1),A.hij(" ",I.headerTitle," ")}}const et=function(ae,U){return{background:ae,color:U}},te=function(ae,U){return{"min-height":ae,"background-color":U}};let Le=(()=>{class ae{constructor(I,Q,Ze,dt){this.storeService=I,this.sanitizer=Q,this.preferredLangService=Ze,this.translateService=dt,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const I=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(I)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(b.d6),A.Y36(e.H7),A.Y36(b.BN),A.Y36(w.sK))},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(I,Q){1&I&&(A.TgZ(0,"div",0),A.YNc(1,S,2,1,"div",1),A.YNc(2,$,3,1,"div",2),A.YNc(3,ze,2,4,"p",3),A.qZA(),A.TgZ(4,"div",4)(5,"div",5)(6,"div",6),A._UZ(7,"router-outlet"),A.qZA(),A.TgZ(8,"div",7),A._UZ(9,"perun-web-apps-footer"),A.qZA()()()),2&I&&(A.Q6J("ngStyle",A.WLB(5,et,Q.headerBackgroundColor,Q.headerTextColor)),A.xp6(1),A.Q6J("ngIf","admin-gui"===Q.application||"user-profile"===Q.application||"consolidator"===Q.application),A.xp6(1),A.Q6J("ngIf","publications"===Q.application),A.xp6(1),A.Q6J("ngIf",!!Q.headerTitle),A.xp6(2),A.Q6J("ngStyle",A.WLB(8,te,Q.getContentInnerMinHeight(),Q.contentBackgroundColor)))},dependencies:[O.O5,O.PC,ne.Hw,C.lC,c.$],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),ae})();function Ie(ae,U){1&ae&&(A.TgZ(0,"perun-web-apps-alert",8),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const xe=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"api-callback",component:M},{path:"login",component:d},{path:"service-access",component:(()=>{class ae{constructor(I,Q,Ze){this.authzService=I,this.auth=Q,this.router=Ze,this.usernameCtrl=new J.NI(null,[J.kI.required]),this.passwordCtrl=new J.NI(null,[J.kI.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:I=>{sessionStorage.setItem("baPrincipal",JSON.stringify(I)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(f.Ct),A.Y36(b.e8),A.Y36(C.F0))},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl","keyup.enter"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(I,Q){1&I&&(A.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.YNc(6,Ie,3,3,"perun-web-apps-alert",3),A.TgZ(7,"mat-form-field",4)(8,"mat-label"),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"input",5),A.NdJ("keyup.enter",function(){return Q.startAuth()}),A.qZA(),A.TgZ(12,"mat-error"),A._uU(13),A.ALo(14,"translate"),A.qZA()(),A.TgZ(15,"mat-form-field",4)(16,"mat-label"),A._uU(17),A.ALo(18,"translate"),A.qZA(),A.TgZ(19,"input",6),A.NdJ("keyup.enter",function(){return Q.startAuth()}),A.qZA(),A.TgZ(20,"mat-error"),A._uU(21),A.ALo(22,"translate"),A.qZA()(),A.TgZ(23,"button",7),A.NdJ("click",function(){return Q.startAuth()}),A._uU(24),A.ALo(25,"translate"),A.TgZ(26,"mat-icon"),A._uU(27," login "),A.qZA()()()()()),2&I&&(A.xp6(4),A.Oqu(A.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),A.xp6(2),A.Q6J("ngIf",Q.wrongUsernameOrPassword),A.xp6(3),A.Oqu(A.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),A.xp6(2),A.Q6J("formControl",Q.usernameCtrl),A.xp6(2),A.hij(" ",A.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),A.xp6(4),A.Oqu(A.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),A.xp6(2),A.Q6J("formControl",Q.passwordCtrl)("type","password"),A.xp6(2),A.hij(" ",A.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),A.xp6(2),A.Q6J("disabled",Q.usernameCtrl.invalid||Q.passwordCtrl.invalid),A.xp6(1),A.hij(" ",A.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[O.O5,se.lW,ne.Hw,n.TO,n.KE,n.hX,J.Fj,J.JJ,J.Q7,J.oH,o.Nt,N.w,w.X$],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),ae})()},{path:"organizations",loadChildren:()=>Promise.all([p.e(283),p.e(109),p.e(907),p.e(254)]).then(p.bind(p,74254)).then(ae=>ae.VosModule)},{path:"admin",loadChildren:()=>Promise.all([p.e(283),p.e(338),p.e(109),p.e(705)]).then(p.bind(p,72705)).then(ae=>ae.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([p.e(283),p.e(338),p.e(109),p.e(705),p.e(907),p.e(775)]).then(p.bind(p,27775)).then(ae=>ae.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([p.e(283),p.e(338)]).then(p.bind(p,38338)).then(ae=>ae.UsersModule)},{path:"home",component:h},{path:"notAuthorized",component:t.y9},{path:"**",component:i}];let ie=(()=>{class ae{}return ae.\u0275fac=function(I){return new(I||ae)},ae.\u0275mod=A.oAB({type:ae}),ae.\u0275inj=A.cJS({imports:[C.Bz.forRoot(xe,{preloadingStrategy:C.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),C.Bz]}),ae})();var Te=p(72077),st=p(14264);class Qe{constructor(U,I="/assets/i18n/",Q=".json"){this.http=U,this.prefix=I,this.suffix=Q}getTranslation(U){return this.http.get(`${this.prefix}${U}${this.suffix}`)}}var Et=p(80529),ke=p(37340);function It(ae){return new A.vHH(3e3,!1)}function tr(){return typeof window<"u"&&typeof window.document<"u"}function Vi(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function di(ae){switch(ae.length){case 0:return new ke.ZN;case 1:return ae[0];default:return new ke.ZE(ae)}}function or(ae,U,I,Q,Ze=new Map,dt=new Map){const Ot=[],Ht=[];let Gt=-1,$t=null;if(Q.forEach(fn=>{const yn=fn.get("offset"),kn=yn==Gt,Zn=kn&&$t||new Map;fn.forEach((Hn,Nn)=>{let mi=Nn,li=Hn;if("offset"!==Nn)switch(mi=U.normalizePropertyName(mi,Ot),li){case ke.k1:li=Ze.get(Nn);break;case ke.l3:li=dt.get(Nn);break;default:li=U.normalizeStyleValue(Nn,mi,li,Ot)}Zn.set(mi,li)}),kn||Ht.push(Zn),$t=Zn,Gt=yn}),Ot.length)throw function Xt(ae){return new A.vHH(3502,!1)}();return Ht}function Ir(ae,U,I,Q){switch(U){case"start":ae.onStart(()=>Q(I&&sr(I,"start",ae)));break;case"done":ae.onDone(()=>Q(I&&sr(I,"done",ae)));break;case"destroy":ae.onDestroy(()=>Q(I&&sr(I,"destroy",ae)))}}function sr(ae,U,I){const dt=lr(ae.element,ae.triggerName,ae.fromState,ae.toState,U||ae.phaseName,I.totalTime??ae.totalTime,!!I.disabled),Ot=ae._data;return null!=Ot&&(dt._data=Ot),dt}function lr(ae,U,I,Q,Ze="",dt=0,Ot){return{element:ae,triggerName:U,fromState:I,toState:Q,phaseName:Ze,totalTime:dt,disabled:!!Ot}}function Ci(ae,U,I){let Q=ae.get(U);return Q||ae.set(U,Q=I),Q}function Er(ae){const U=ae.indexOf(":");return[ae.substring(1,U),ae.slice(U+1)]}let Ur=(ae,U)=>!1,Ei=(ae,U,I)=>[],Or=null;function Nr(ae){const U=ae.parentNode||ae.host;return U===Or?null:U}(Vi()||typeof Element<"u")&&(tr()?(Or=(()=>document.documentElement)(),Ur=(ae,U)=>{for(;U;){if(U===ae)return!0;U=Nr(U)}return!1}):Ur=(ae,U)=>ae.contains(U),Ei=(ae,U,I)=>{if(I)return Array.from(ae.querySelectorAll(U));const Q=ae.querySelector(U);return Q?[Q]:[]});let Pi=null,Ii=!1;const kt=Ur,Zt=Ei;let On=(()=>{class ae{validateStyleProperty(I){return function Mt(ae){Pi||(Pi=function ct(){return typeof document<"u"?document.body:null}()||{},Ii=!!Pi.style&&"WebkitAppearance"in Pi.style);let U=!0;return Pi.style&&!function Hr(ae){return"ebkit"==ae.substring(1,6)}(ae)&&(U=ae in Pi.style,!U&&Ii&&(U="Webkit"+ae.charAt(0).toUpperCase()+ae.slice(1)in Pi.style)),U}(I)}matchesElement(I,Q){return!1}containsElement(I,Q){return kt(I,Q)}getParentElement(I){return Nr(I)}query(I,Q,Ze){return Zt(I,Q,Ze)}computeStyle(I,Q,Ze){return Ze||""}animate(I,Q,Ze,dt,Ot,Ht=[],Gt){return new ke.ZN(Ze,dt)}}return ae.\u0275fac=function(I){return new(I||ae)},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac}),ae})(),Bn=(()=>{class ae{}return ae.NOOP=new On,ae})();const Oi="ng-enter",xi="ng-leave",qi="ng-trigger",lt=".ng-trigger",Vt="ng-animating",Xe=".ng-animating";function yt(ae){if("number"==typeof ae)return ae;const U=ae.match(/^(-?[\.\d]+)(m?s)/);return!U||U.length<2?0:Wt(parseFloat(U[1]),U[2])}function Wt(ae,U){return"s"===U?1e3*ae:ae}function dn(ae,U,I){return ae.hasOwnProperty("duration")?ae:function An(ae,U,I){let Ze,dt=0,Ot="";if("string"==typeof ae){const Ht=ae.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ht)return U.push(It()),{duration:0,delay:0,easing:""};Ze=Wt(parseFloat(Ht[1]),Ht[2]);const Gt=Ht[3];null!=Gt&&(dt=Wt(parseFloat(Gt),Ht[4]));const $t=Ht[5];$t&&(Ot=$t)}else Ze=ae;if(!I){let Ht=!1,Gt=U.length;Ze<0&&(U.push(function jt(){return new A.vHH(3100,!1)}()),Ht=!0),dt<0&&(U.push(function an(){return new A.vHH(3101,!1)}()),Ht=!0),Ht&&U.splice(Gt,0,It())}return{duration:Ze,delay:dt,easing:Ot}}(ae,U,I)}function Yn(ae,U={}){return Object.keys(ae).forEach(I=>{U[I]=ae[I]}),U}function oi(ae){const U=new Map;return Object.keys(ae).forEach(I=>{U.set(I,ae[I])}),U}function Ji(ae,U=new Map,I){if(I)for(let[Q,Ze]of I)U.set(Q,Ze);for(let[Q,Ze]of ae)U.set(Q,Ze);return U}function ni(ae,U,I){return I?U+":"+I+";":""}function Ba(ae){let U="";for(let I=0;I{const dt=qe(Ze);I&&!I.has(Ze)&&I.set(Ze,ae.style[dt]),ae.style[dt]=Q}),Vi()&&Ba(ae))}function Fi(ae,U){ae.style&&(U.forEach((I,Q)=>{const Ze=qe(Q);ae.style[Ze]=""}),Vi()&&Ba(ae))}function Si(ae){return Array.isArray(ae)?1==ae.length?ae[0]:(0,ke.vP)(ae):ae}const zr=new RegExp("{{\\s*(.+?)\\s*}}","g");function dr(ae){let U=[];if("string"==typeof ae){let I;for(;I=zr.exec(ae);)U.push(I[1]);zr.lastIndex=0}return U}function gi(ae,U,I){const Q=ae.toString(),Ze=Q.replace(zr,(dt,Ot)=>{let Ht=U[Ot];return null==Ht&&(I.push(function on(ae){return new A.vHH(3003,!1)}()),Ht=""),Ht.toString()});return Ze==Q?ae:Ze}function Ye(ae){const U=[];let I=ae.next();for(;!I.done;)U.push(I.value),I=ae.next();return U}const _t=/-+([a-z0-9])/g;function qe(ae){return ae.replace(_t,(...U)=>U[1].toUpperCase())}function Ct(ae){return ae.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function zt(ae,U,I){switch(U.type){case 7:return ae.visitTrigger(U,I);case 0:return ae.visitState(U,I);case 1:return ae.visitTransition(U,I);case 2:return ae.visitSequence(U,I);case 3:return ae.visitGroup(U,I);case 4:return ae.visitAnimate(U,I);case 5:return ae.visitKeyframes(U,I);case 6:return ae.visitStyle(U,I);case 8:return ae.visitReference(U,I);case 9:return ae.visitAnimateChild(U,I);case 10:return ae.visitAnimateRef(U,I);case 11:return ae.visitQuery(U,I);case 12:return ae.visitStagger(U,I);default:throw function bn(ae){return new A.vHH(3004,!1)}()}}function En(ae,U){return window.getComputedStyle(ae)[U]}function Un(ae,U){const I=[];return"string"==typeof ae?ae.split(/\s*,\s*/).forEach(Q=>function Ki(ae,U,I){if(":"==ae[0]){const Gt=function ji(ae,U){switch(ae){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(I,Q)=>parseFloat(Q)>parseFloat(I);case":decrement":return(I,Q)=>parseFloat(Q) *"}}(ae,I);if("function"==typeof Gt)return void U.push(Gt);ae=Gt}const Q=ae.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Q||Q.length<4)return I.push(function St(ae){return new A.vHH(3015,!1)}()),U;const Ze=Q[1],dt=Q[2],Ot=Q[3];U.push(Lr(Ze,Ot));"<"==dt[0]&&!("*"==Ze&&"*"==Ot)&&U.push(Lr(Ot,Ze))}(Q,I,U)):I.push(ae),I}const ui=new Set(["true","1"]),Tr=new Set(["false","0"]);function Lr(ae,U){const I=ui.has(ae)||Tr.has(ae),Q=ui.has(U)||Tr.has(U);return(Ze,dt)=>{let Ot="*"==ae||ae==Ze,Ht="*"==U||U==dt;return!Ot&&I&&"boolean"==typeof Ze&&(Ot=Ze?ui.has(ae):Tr.has(ae)),!Ht&&Q&&"boolean"==typeof dt&&(Ht=dt?ui.has(U):Tr.has(U)),Ot&&Ht}}const Fe=new RegExp("s*:selfs*,?","g");function Re(ae,U,I,Q){return new Jt(ae).build(U,I,Q)}class Jt{constructor(U){this._driver=U}build(U,I,Q){const Ze=new ai(I);return this._resetContextStyleTimingState(Ze),zt(this,Si(U),Ze)}_resetContextStyleTimingState(U){U.currentQuerySelector="",U.collectedStyles=new Map,U.collectedStyles.set("",new Map),U.currentTime=0}visitTrigger(U,I){let Q=I.queryCount=0,Ze=I.depCount=0;const dt=[],Ot=[];return"@"==U.name.charAt(0)&&I.errors.push(function Dt(){return new A.vHH(3006,!1)}()),U.definitions.forEach(Ht=>{if(this._resetContextStyleTimingState(I),0==Ht.type){const Gt=Ht,$t=Gt.name;$t.toString().split(/\s*,\s*/).forEach(fn=>{Gt.name=fn,dt.push(this.visitState(Gt,I))}),Gt.name=$t}else if(1==Ht.type){const Gt=this.visitTransition(Ht,I);Q+=Gt.queryCount,Ze+=Gt.depCount,Ot.push(Gt)}else I.errors.push(function Ge(){return new A.vHH(3007,!1)}())}),{type:7,name:U.name,states:dt,transitions:Ot,queryCount:Q,depCount:Ze,options:null}}visitState(U,I){const Q=this.visitStyle(U.styles,I),Ze=U.options&&U.options.params||null;if(Q.containsDynamicStyles){const dt=new Set,Ot=Ze||{};Q.styles.forEach(Ht=>{Ht instanceof Map&&Ht.forEach(Gt=>{dr(Gt).forEach($t=>{Ot.hasOwnProperty($t)||dt.add($t)})})}),dt.size&&(Ye(dt.values()),I.errors.push(function wt(ae,U){return new A.vHH(3008,!1)}()))}return{type:0,name:U.name,style:Q,options:Ze?{params:Ze}:null}}visitTransition(U,I){I.queryCount=0,I.depCount=0;const Q=zt(this,Si(U.animation),I);return{type:1,matchers:Un(U.expr,I.errors),animation:Q,queryCount:I.queryCount,depCount:I.depCount,options:ur(U.options)}}visitSequence(U,I){return{type:2,steps:U.steps.map(Q=>zt(this,Q,I)),options:ur(U.options)}}visitGroup(U,I){const Q=I.currentTime;let Ze=0;const dt=U.steps.map(Ot=>{I.currentTime=Q;const Ht=zt(this,Ot,I);return Ze=Math.max(Ze,I.currentTime),Ht});return I.currentTime=Ze,{type:3,steps:dt,options:ur(U.options)}}visitAnimate(U,I){const Q=function ga(ae,U){if(ae.hasOwnProperty("duration"))return ae;if("number"==typeof ae)return yr(dn(ae,U).duration,0,"");const I=ae;if(I.split(/\s+/).some(dt=>"{"==dt.charAt(0)&&"{"==dt.charAt(1))){const dt=yr(0,0,"");return dt.dynamic=!0,dt.strValue=I,dt}const Ze=dn(I,U);return yr(Ze.duration,Ze.delay,Ze.easing)}(U.timings,I.errors);I.currentAnimateTimings=Q;let Ze,dt=U.styles?U.styles:(0,ke.oB)({});if(5==dt.type)Ze=this.visitKeyframes(dt,I);else{let Ot=U.styles,Ht=!1;if(!Ot){Ht=!0;const $t={};Q.easing&&($t.easing=Q.easing),Ot=(0,ke.oB)($t)}I.currentTime+=Q.duration+Q.delay;const Gt=this.visitStyle(Ot,I);Gt.isEmptyStep=Ht,Ze=Gt}return I.currentAnimateTimings=null,{type:4,timings:Q,style:Ze,options:null}}visitStyle(U,I){const Q=this._makeStyleAst(U,I);return this._validateStyleAst(Q,I),Q}_makeStyleAst(U,I){const Q=[],Ze=Array.isArray(U.styles)?U.styles:[U.styles];for(let Ht of Ze)"string"==typeof Ht?Ht===ke.l3?Q.push(Ht):I.errors.push(new A.vHH(3002,!1)):Q.push(oi(Ht));let dt=!1,Ot=null;return Q.forEach(Ht=>{if(Ht instanceof Map&&(Ht.has("easing")&&(Ot=Ht.get("easing"),Ht.delete("easing")),!dt))for(let Gt of Ht.values())if(Gt.toString().indexOf("{{")>=0){dt=!0;break}}),{type:6,styles:Q,easing:Ot,offset:U.offset,containsDynamicStyles:dt,options:null}}_validateStyleAst(U,I){const Q=I.currentAnimateTimings;let Ze=I.currentTime,dt=I.currentTime;Q&&dt>0&&(dt-=Q.duration+Q.delay),U.styles.forEach(Ot=>{"string"!=typeof Ot&&Ot.forEach((Ht,Gt)=>{const $t=I.collectedStyles.get(I.currentQuerySelector),fn=$t.get(Gt);let yn=!0;fn&&(dt!=Ze&&dt>=fn.startTime&&Ze<=fn.endTime&&(I.errors.push(function Cn(ae,U,I,Q,Ze){return new A.vHH(3010,!1)}()),yn=!1),dt=fn.startTime),yn&&$t.set(Gt,{startTime:dt,endTime:Ze}),I.options&&function Ua(ae,U,I){const Q=U.params||{},Ze=dr(ae);Ze.length&&Ze.forEach(dt=>{Q.hasOwnProperty(dt)||I.push(function Kt(ae){return new A.vHH(3001,!1)}())})}(Ht,I.options,I.errors)})})}visitKeyframes(U,I){const Q={type:5,styles:[],options:null};if(!I.currentAnimateTimings)return I.errors.push(function gn(){return new A.vHH(3011,!1)}()),Q;let dt=0;const Ot=[];let Ht=!1,Gt=!1,$t=0;const fn=U.steps.map(li=>{const ki=this._makeStyleAst(li,I);let Zi=null!=ki.offset?ki.offset:function $i(ae){if("string"==typeof ae)return null;let U=null;if(Array.isArray(ae))ae.forEach(I=>{if(I instanceof Map&&I.has("offset")){const Q=I;U=parseFloat(Q.get("offset")),Q.delete("offset")}});else if(ae instanceof Map&&ae.has("offset")){const I=ae;U=parseFloat(I.get("offset")),I.delete("offset")}return U}(ki.styles),Gi=0;return null!=Zi&&(dt++,Gi=ki.offset=Zi),Gt=Gt||Gi<0||Gi>1,Ht=Ht||Gi<$t,$t=Gi,Ot.push(Gi),ki});Gt&&I.errors.push(function zn(){return new A.vHH(3012,!1)}()),Ht&&I.errors.push(function bt(){return new A.vHH(3200,!1)}());const yn=U.steps.length;let kn=0;dt>0&&dt{const Zi=kn>0?ki==Zn?1:kn*ki:Ot[ki],Gi=Zi*mi;I.currentTime=Hn+Nn.delay+Gi,Nn.duration=Gi,this._validateStyleAst(li,I),li.offset=Zi,Q.styles.push(li)}),Q}visitReference(U,I){return{type:8,animation:zt(this,Si(U.animation),I),options:ur(U.options)}}visitAnimateChild(U,I){return I.depCount++,{type:9,options:ur(U.options)}}visitAnimateRef(U,I){return{type:10,animation:this.visitReference(U.animation,I),options:ur(U.options)}}visitQuery(U,I){const Q=I.currentQuerySelector,Ze=U.options||{};I.queryCount++,I.currentQuery=U;const[dt,Ot]=function _n(ae){const U=!!ae.split(/\s*,\s*/).find(I=>":self"==I);return U&&(ae=ae.replace(Fe,"")),ae=ae.replace(/@\*/g,lt).replace(/@\w+/g,I=>lt+"-"+I.slice(1)).replace(/:animating/g,Xe),[ae,U]}(U.selector);I.currentQuerySelector=Q.length?Q+" "+dt:dt,Ci(I.collectedStyles,I.currentQuerySelector,new Map);const Ht=zt(this,Si(U.animation),I);return I.currentQuery=null,I.currentQuerySelector=Q,{type:11,selector:dt,limit:Ze.limit||0,optional:!!Ze.optional,includeSelf:Ot,animation:Ht,originalSelector:U.selector,options:ur(U.options)}}visitStagger(U,I){I.currentQuery||I.errors.push(function pt(){return new A.vHH(3013,!1)}());const Q="full"===U.timings?{duration:0,delay:0,easing:"full"}:dn(U.timings,I.errors,!0);return{type:12,animation:zt(this,Si(U.animation),I),timings:Q,options:null}}}class ai{constructor(U){this.errors=U,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 ur(ae){return ae?(ae=Yn(ae)).params&&(ae.params=function pi(ae){return ae?Yn(ae):null}(ae.params)):ae={},ae}function yr(ae,U,I){return{duration:ae,delay:U,easing:I}}function Mo(ae,U,I,Q,Ze,dt,Ot=null,Ht=!1){return{type:1,element:ae,keyframes:U,preStyleProps:I,postStyleProps:Q,duration:Ze,delay:dt,totalTime:Ze+dt,easing:Ot,subTimeline:Ht}}class Na{constructor(){this._map=new Map}get(U){return this._map.get(U)||[]}append(U,I){let Q=this._map.get(U);Q||this._map.set(U,Q=[]),Q.push(...I)}has(U){return this._map.has(U)}clear(){this._map.clear()}}const xo=new RegExp(":enter","g"),ts=new RegExp(":leave","g");function ta(ae,U,I,Q,Ze,dt=new Map,Ot=new Map,Ht,Gt,$t=[]){return(new ns).buildKeyframes(ae,U,I,Q,Ze,dt,Ot,Ht,Gt,$t)}class ns{buildKeyframes(U,I,Q,Ze,dt,Ot,Ht,Gt,$t,fn=[]){$t=$t||new Na;const yn=new Yr(U,I,$t,Ze,dt,fn,[]);yn.options=Gt;const kn=Gt.delay?yt(Gt.delay):0;yn.currentTimeline.delayNextStep(kn),yn.currentTimeline.setStyles([Ot],null,yn.errors,Gt),zt(this,Q,yn);const Zn=yn.timelines.filter(Hn=>Hn.containsAnimation());if(Zn.length&&Ht.size){let Hn;for(let Nn=Zn.length-1;Nn>=0;Nn--){const mi=Zn[Nn];if(mi.element===I){Hn=mi;break}}Hn&&!Hn.allowOnlyTimelineStyles()&&Hn.setStyles([Ht],null,yn.errors,Gt)}return Zn.length?Zn.map(Hn=>Hn.buildKeyframes()):[Mo(I,[],[],[],0,kn,"",!1)]}visitTrigger(U,I){}visitState(U,I){}visitTransition(U,I){}visitAnimateChild(U,I){const Q=I.subInstructions.get(I.element);if(Q){const Ze=I.createSubContext(U.options),dt=I.currentTimeline.currentTime,Ot=this._visitSubInstructions(Q,Ze,Ze.options);dt!=Ot&&I.transformIntoNewTimeline(Ot)}I.previousNode=U}visitAnimateRef(U,I){const Q=I.createSubContext(U.options);Q.transformIntoNewTimeline(),this.visitReference(U.animation,Q),I.transformIntoNewTimeline(Q.currentTimeline.currentTime),I.previousNode=U}_visitSubInstructions(U,I,Q){let dt=I.currentTimeline.currentTime;const Ot=null!=Q.duration?yt(Q.duration):null,Ht=null!=Q.delay?yt(Q.delay):null;return 0!==Ot&&U.forEach(Gt=>{const $t=I.appendInstructionToTimeline(Gt,Ot,Ht);dt=Math.max(dt,$t.duration+$t.delay)}),dt}visitReference(U,I){I.updateOptions(U.options,!0),zt(this,U.animation,I),I.previousNode=U}visitSequence(U,I){const Q=I.subContextCount;let Ze=I;const dt=U.options;if(dt&&(dt.params||dt.delay)&&(Ze=I.createSubContext(dt),Ze.transformIntoNewTimeline(),null!=dt.delay)){6==Ze.previousNode.type&&(Ze.currentTimeline.snapshotCurrentStyles(),Ze.previousNode=na);const Ot=yt(dt.delay);Ze.delayNextStep(Ot)}U.steps.length&&(U.steps.forEach(Ot=>zt(this,Ot,Ze)),Ze.currentTimeline.applyStylesToKeyframe(),Ze.subContextCount>Q&&Ze.transformIntoNewTimeline()),I.previousNode=U}visitGroup(U,I){const Q=[];let Ze=I.currentTimeline.currentTime;const dt=U.options&&U.options.delay?yt(U.options.delay):0;U.steps.forEach(Ot=>{const Ht=I.createSubContext(U.options);dt&&Ht.delayNextStep(dt),zt(this,Ot,Ht),Ze=Math.max(Ze,Ht.currentTimeline.currentTime),Q.push(Ht.currentTimeline)}),Q.forEach(Ot=>I.currentTimeline.mergeTimelineCollectedStyles(Ot)),I.transformIntoNewTimeline(Ze),I.previousNode=U}_visitTiming(U,I){if(U.dynamic){const Q=U.strValue;return dn(I.params?gi(Q,I.params,I.errors):Q,I.errors)}return{duration:U.duration,delay:U.delay,easing:U.easing}}visitAnimate(U,I){const Q=I.currentAnimateTimings=this._visitTiming(U.timings,I),Ze=I.currentTimeline;Q.delay&&(I.incrementTime(Q.delay),Ze.snapshotCurrentStyles());const dt=U.style;5==dt.type?this.visitKeyframes(dt,I):(I.incrementTime(Q.duration),this.visitStyle(dt,I),Ze.applyStylesToKeyframe()),I.currentAnimateTimings=null,I.previousNode=U}visitStyle(U,I){const Q=I.currentTimeline,Ze=I.currentAnimateTimings;!Ze&&Q.hasCurrentStyleProperties()&&Q.forwardFrame();const dt=Ze&&Ze.easing||U.easing;U.isEmptyStep?Q.applyEmptyStep(dt):Q.setStyles(U.styles,dt,I.errors,I.options),I.previousNode=U}visitKeyframes(U,I){const Q=I.currentAnimateTimings,Ze=I.currentTimeline.duration,dt=Q.duration,Ht=I.createSubContext().currentTimeline;Ht.easing=Q.easing,U.styles.forEach(Gt=>{Ht.forwardTime((Gt.offset||0)*dt),Ht.setStyles(Gt.styles,Gt.easing,I.errors,I.options),Ht.applyStylesToKeyframe()}),I.currentTimeline.mergeTimelineCollectedStyles(Ht),I.transformIntoNewTimeline(Ze+dt),I.previousNode=U}visitQuery(U,I){const Q=I.currentTimeline.currentTime,Ze=U.options||{},dt=Ze.delay?yt(Ze.delay):0;dt&&(6===I.previousNode.type||0==Q&&I.currentTimeline.hasCurrentStyleProperties())&&(I.currentTimeline.snapshotCurrentStyles(),I.previousNode=na);let Ot=Q;const Ht=I.invokeQuery(U.selector,U.originalSelector,U.limit,U.includeSelf,!!Ze.optional,I.errors);I.currentQueryTotal=Ht.length;let Gt=null;Ht.forEach(($t,fn)=>{I.currentQueryIndex=fn;const yn=I.createSubContext(U.options,$t);dt&&yn.delayNextStep(dt),$t===I.element&&(Gt=yn.currentTimeline),zt(this,U.animation,yn),yn.currentTimeline.applyStylesToKeyframe(),Ot=Math.max(Ot,yn.currentTimeline.currentTime)}),I.currentQueryIndex=0,I.currentQueryTotal=0,I.transformIntoNewTimeline(Ot),Gt&&(I.currentTimeline.mergeTimelineCollectedStyles(Gt),I.currentTimeline.snapshotCurrentStyles()),I.previousNode=U}visitStagger(U,I){const Q=I.parentContext,Ze=I.currentTimeline,dt=U.timings,Ot=Math.abs(dt.duration),Ht=Ot*(I.currentQueryTotal-1);let Gt=Ot*I.currentQueryIndex;switch(dt.duration<0?"reverse":dt.easing){case"reverse":Gt=Ht-Gt;break;case"full":Gt=Q.currentStaggerTime}const fn=I.currentTimeline;Gt&&fn.delayNextStep(Gt);const yn=fn.currentTime;zt(this,U.animation,I),I.previousNode=U,Q.currentStaggerTime=Ze.currentTime-yn+(Ze.startTime-Q.currentTimeline.startTime)}}const na={};class Yr{constructor(U,I,Q,Ze,dt,Ot,Ht,Gt){this._driver=U,this.element=I,this.subInstructions=Q,this._enterClassName=Ze,this._leaveClassName=dt,this.errors=Ot,this.timelines=Ht,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=na,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Gt||new ka(this._driver,I,0),Ht.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(U,I){if(!U)return;const Q=U;let Ze=this.options;null!=Q.duration&&(Ze.duration=yt(Q.duration)),null!=Q.delay&&(Ze.delay=yt(Q.delay));const dt=Q.params;if(dt){let Ot=Ze.params;Ot||(Ot=this.options.params={}),Object.keys(dt).forEach(Ht=>{(!I||!Ot.hasOwnProperty(Ht))&&(Ot[Ht]=gi(dt[Ht],Ot,this.errors))})}}_copyOptions(){const U={};if(this.options){const I=this.options.params;if(I){const Q=U.params={};Object.keys(I).forEach(Ze=>{Q[Ze]=I[Ze]})}}return U}createSubContext(U=null,I,Q){const Ze=I||this.element,dt=new Yr(this._driver,Ze,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Ze,Q||0));return dt.previousNode=this.previousNode,dt.currentAnimateTimings=this.currentAnimateTimings,dt.options=this._copyOptions(),dt.updateOptions(U),dt.currentQueryIndex=this.currentQueryIndex,dt.currentQueryTotal=this.currentQueryTotal,dt.parentContext=this,this.subContextCount++,dt}transformIntoNewTimeline(U){return this.previousNode=na,this.currentTimeline=this.currentTimeline.fork(this.element,U),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(U,I,Q){const Ze={duration:I??U.duration,delay:this.currentTimeline.currentTime+(Q??0)+U.delay,easing:""},dt=new is(this._driver,U.element,U.keyframes,U.preStyleProps,U.postStyleProps,Ze,U.stretchStartingKeyframe);return this.timelines.push(dt),Ze}incrementTime(U){this.currentTimeline.forwardTime(this.currentTimeline.duration+U)}delayNextStep(U){U>0&&this.currentTimeline.delayNextStep(U)}invokeQuery(U,I,Q,Ze,dt,Ot){let Ht=[];if(Ze&&Ht.push(this.element),U.length>0){U=(U=U.replace(xo,"."+this._enterClassName)).replace(ts,"."+this._leaveClassName);let $t=this._driver.query(this.element,U,1!=Q);0!==Q&&($t=Q<0?$t.slice($t.length+Q,$t.length):$t.slice(0,Q)),Ht.push(...$t)}return!dt&&0==Ht.length&&Ot.push(function it(ae){return new A.vHH(3014,!1)}()),Ht}}class ka{constructor(U,I,Q,Ze){this._driver=U,this.element=I,this.startTime=Q,this._elementTimelineStylesLookup=Ze,this.duration=0,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(I),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(I,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(U){const I=1===this._keyframes.size&&this._pendingStyles.size;this.duration||I?(this.forwardTime(this.currentTime+U),I&&this.snapshotCurrentStyles()):this.startTime+=U}fork(U,I){return this.applyStylesToKeyframe(),new ka(this._driver,U,I||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+=1,this._loadKeyframe()}forwardTime(U){this.applyStylesToKeyframe(),this.duration=U,this._loadKeyframe()}_updateStyle(U,I){this._localTimelineStyles.set(U,I),this._globalTimelineStyles.set(U,I),this._styleSummary.set(U,{time:this.currentTime,value:I})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(U){U&&this._previousKeyframe.set("easing",U);for(let[I,Q]of this._globalTimelineStyles)this._backFill.set(I,Q||ke.l3),this._currentKeyframe.set(I,ke.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(U,I,Q,Ze){I&&this._previousKeyframe.set("easing",I);const dt=Ze&&Ze.params||{},Ot=function rs(ae,U){const I=new Map;let Q;return ae.forEach(Ze=>{if("*"===Ze){Q=Q||U.keys();for(let dt of Q)I.set(dt,ke.l3)}else Ji(Ze,I)}),I}(U,this._globalTimelineStyles);for(let[Gt,$t]of Ot){const fn=gi($t,dt,Q);var Ht;this._pendingStyles.set(Gt,fn),this._localTimelineStyles.has(Gt)||this._backFill.set(Gt,null!==(Ht=this._globalTimelineStyles.get(Gt))&&void 0!==Ht?Ht:ke.l3),this._updateStyle(Gt,fn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((U,I)=>{this._currentKeyframe.set(I,U)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((U,I)=>{this._currentKeyframe.has(I)||this._currentKeyframe.set(I,U)}))}snapshotCurrentStyles(){for(let[U,I]of this._localTimelineStyles)this._pendingStyles.set(U,I),this._updateStyle(U,I)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const U=[];for(let I in this._currentKeyframe)U.push(I);return U}mergeTimelineCollectedStyles(U){U._styleSummary.forEach((I,Q)=>{const Ze=this._styleSummary.get(Q);(!Ze||I.time>Ze.time)&&this._updateStyle(Q,I.value)})}buildKeyframes(){this.applyStylesToKeyframe();const U=new Set,I=new Set,Q=1===this._keyframes.size&&0===this.duration;let Ze=[];this._keyframes.forEach((Ht,Gt)=>{const $t=Ji(Ht,new Map,this._backFill);$t.forEach((fn,yn)=>{fn===ke.k1?U.add(yn):fn===ke.l3&&I.add(yn)}),Q||$t.set("offset",Gt/this.duration),Ze.push($t)});const dt=U.size?Ye(U.values()):[],Ot=I.size?Ye(I.values()):[];if(Q){const Ht=Ze[0],Gt=new Map(Ht);Ht.set("offset",0),Gt.set("offset",1),Ze=[Ht,Gt]}return Mo(this.element,Ze,dt,Ot,this.duration,this.startTime,this.easing,!1)}}class is extends ka{constructor(U,I,Q,Ze,dt,Ot,Ht=!1){super(U,I,Ot.delay),this.keyframes=Q,this.preStyleProps=Ze,this.postStyleProps=dt,this._stretchStartingKeyframe=Ht,this.timings={duration:Ot.duration,delay:Ot.delay,easing:Ot.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let U=this.keyframes,{delay:I,duration:Q,easing:Ze}=this.timings;if(this._stretchStartingKeyframe&&I){const dt=[],Ot=Q+I,Ht=I/Ot,Gt=Ji(U[0]);Gt.set("offset",0),dt.push(Gt);const $t=Ji(U[0]);$t.set("offset",Do(Ht)),dt.push($t);const fn=U.length-1;for(let yn=1;yn<=fn;yn++){let kn=Ji(U[yn]);const Zn=kn.get("offset");kn.set("offset",Do((I+Zn*Q)/Ot)),dt.push(kn)}Q=Ot,I=0,Ze="",U=dt}return Mo(this.element,U,this.preStyleProps,this.postStyleProps,Q,I,Ze,!0)}}function Do(ae,U=3){const I=Math.pow(10,U-1);return Math.round(ae*I)/I}class eo{}const Hi=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"]);class wr extends eo{normalizePropertyName(U,I){return qe(U)}normalizeStyleValue(U,I,Q,Ze){let dt="";const Ot=Q.toString().trim();if(Hi.has(I)&&0!==Q&&"0"!==Q)if("number"==typeof Q)dt="px";else{const Ht=Q.match(/^[+-]?[\d\.]+([a-z]*)$/);Ht&&0==Ht[1].length&&Ze.push(function Tt(ae,U){return new A.vHH(3005,!1)}())}return Ot+dt}}function _i(ae,U,I,Q,Ze,dt,Ot,Ht,Gt,$t,fn,yn,kn){return{type:0,element:ae,triggerName:U,isRemovalTransition:Ze,fromState:I,fromStyles:dt,toState:Q,toStyles:Ot,timelines:Ht,queriedElements:Gt,preStyleProps:$t,postStyleProps:fn,totalTime:yn,errors:kn}}const qr={};class Ro{constructor(U,I,Q){this._triggerName=U,this.ast=I,this._stateStyles=Q}match(U,I,Q,Ze){return function $s(ae,U,I,Q,Ze){return ae.some(dt=>dt(U,I,Q,Ze))}(this.ast.matchers,U,I,Q,Ze)}buildStyles(U,I,Q){let Ze=this._stateStyles.get("*");return void 0!==U&&(Ze=this._stateStyles.get(U?.toString())||Ze),Ze?Ze.buildStyles(I,Q):new Map}build(U,I,Q,Ze,dt,Ot,Ht,Gt,$t,fn){var yn;const kn=[],Zn=this.ast.options&&this.ast.options.params||qr,Nn=this.buildStyles(Q,Ht&&Ht.params||qr,kn),mi=Gt&&Gt.params||qr,li=this.buildStyles(Ze,mi,kn),ki=new Set,Zi=new Map,Gi=new Map,vo="void"===Ze,da={params:Xs(mi,Zn),delay:null===(yn=this.ast.options)||void 0===yn?void 0:yn.delay},Ar=fn?[]:ta(U,I,this.ast.animation,dt,Ot,Nn,li,da,$t,kn);let Br=0;if(Ar.forEach(jr=>{Br=Math.max(jr.duration+jr.delay,Br)}),kn.length)return _i(I,this._triggerName,Q,Ze,vo,Nn,li,[],[],Zi,Gi,Br,kn);Ar.forEach(jr=>{const Eo=jr.element,Ma=Ci(Zi,Eo,new Set);jr.preStyleProps.forEach(xa=>Ma.add(xa));const To=Ci(Gi,Eo,new Set);jr.postStyleProps.forEach(xa=>To.add(xa)),Eo!==I&&ki.add(Eo)});const vs=Ye(ki.values());return _i(I,this._triggerName,Q,Ze,vo,Nn,li,Ar,vs,Zi,Gi,Br)}}function Xs(ae,U){const I=Yn(U);for(const Q in ae)ae.hasOwnProperty(Q)&&null!=ae[Q]&&(I[Q]=ae[Q]);return I}class el{constructor(U,I,Q){this.styles=U,this.defaultParams=I,this.normalizer=Q}buildStyles(U,I){const Q=new Map,Ze=Yn(this.defaultParams);return Object.keys(U).forEach(dt=>{const Ot=U[dt];null!==Ot&&(Ze[dt]=Ot)}),this.styles.styles.forEach(dt=>{"string"!=typeof dt&&dt.forEach((Ot,Ht)=>{Ot&&(Ot=gi(Ot,Ze,I));const Gt=this.normalizer.normalizePropertyName(Ht,I);Ot=this.normalizer.normalizeStyleValue(Ht,Gt,Ot,I),Q.set(Gt,Ot)})}),Q}}class ia{constructor(U,I,Q){this.name=U,this.ast=I,this._normalizer=Q,this.transitionFactories=[],this.states=new Map,I.states.forEach(Ze=>{this.states.set(Ze.name,new el(Ze.style,Ze.options&&Ze.options.params||{},Q))}),io(this.states,"true","1"),io(this.states,"false","0"),I.transitions.forEach(Ze=>{this.transitionFactories.push(new Ro(U,Ze,this.states))}),this.fallbackTransition=function no(ae,U,I){return new Ro(ae,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ot,Ht)=>!0],options:null,queryCount:0,depCount:0},U)}(U,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(U,I,Q,Ze){return this.transitionFactories.find(Ot=>Ot.match(U,I,Q,Ze))||null}matchStyles(U,I,Q){return this.fallbackTransition.buildStyles(U,I,Q)}}function io(ae,U,I){ae.has(U)?ae.has(I)||ae.set(I,ae.get(U)):ae.has(I)&&ae.set(U,ae.get(I))}const as=new Na;class tl{constructor(U,I,Q){this.bodyNode=U,this._driver=I,this._normalizer=Q,this._animations=new Map,this._playersById=new Map,this.players=[]}register(U,I){const Q=[],dt=Re(this._driver,I,Q,[]);if(Q.length)throw function vn(ae){return new A.vHH(3503,!1)}();this._animations.set(U,dt)}_buildPlayer(U,I,Q){const Ze=U.element,dt=or(0,this._normalizer,0,U.keyframes,I,Q);return this._driver.animate(Ze,dt,U.duration,U.delay,U.easing,[],!0)}create(U,I,Q={}){const Ze=[],dt=this._animations.get(U);let Ot;const Ht=new Map;if(dt?(Ot=ta(this._driver,I,dt,Oi,xi,new Map,new Map,Q,as,Ze),Ot.forEach(fn=>{const yn=Ci(Ht,fn.element,new Map);fn.postStyleProps.forEach(kn=>yn.set(kn,null))})):(Ze.push(function Vn(){return new A.vHH(3300,!1)}()),Ot=[]),Ze.length)throw function In(ae){return new A.vHH(3504,!1)}();Ht.forEach((fn,yn)=>{fn.forEach((kn,Zn)=>{fn.set(Zn,this._driver.computeStyle(yn,Zn,ke.l3))})});const $t=di(Ot.map(fn=>{const yn=Ht.get(fn.element);return this._buildPlayer(fn,new Map,yn)}));return this._playersById.set(U,$t),$t.onDestroy(()=>this.destroy(U)),this.players.push($t),$t}destroy(U){const I=this._getPlayer(U);I.destroy(),this._playersById.delete(U);const Q=this.players.indexOf(I);Q>=0&&this.players.splice(Q,1)}_getPlayer(U){const I=this._playersById.get(U);if(!I)throw function Kn(ae){return new A.vHH(3301,!1)}();return I}listen(U,I,Q,Ze){const dt=lr(I,"","","");return Ir(this._getPlayer(U),Q,dt,Ze),()=>{}}command(U,I,Q,Ze){if("register"==Q)return void this.register(U,Ze[0]);if("create"==Q)return void this.create(U,I,Ze[0]||{});const dt=this._getPlayer(U);switch(Q){case"play":dt.play();break;case"pause":dt.pause();break;case"reset":dt.reset();break;case"restart":dt.restart();break;case"finish":dt.finish();break;case"init":dt.init();break;case"setPosition":dt.setPosition(parseFloat(Ze[0]));break;case"destroy":this.destroy(U)}}}const Vr="ng-animate-queued",Po="ng-animate-disabled",ss=[],Io={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},nl={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},hr="__ng_removed";class _a{constructor(U,I=""){this.namespaceId=I;const Q=U&&U.hasOwnProperty("value");if(this.value=function cs(ae){return ae??null}(Q?U.value:U),Q){const dt=Yn(U);delete dt.value,this.options=dt}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(U){const I=U.params;if(I){const Q=this.options.params;Object.keys(I).forEach(Ze=>{null==Q[Ze]&&(Q[Ze]=I[Ze])})}}}const Jr="void",ao=new _a(Jr);class oo{constructor(U,I,Q){this.id=U,this.hostElement=I,this._engine=Q,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+U,ir(I,this._hostClassName)}listen(U,I,Q,Ze){if(!this._triggers.has(I))throw function ti(ae,U){return new A.vHH(3302,!1)}();if(null==Q||0==Q.length)throw function $n(ae){return new A.vHH(3303,!1)}();if(!function lo(ae){return"start"==ae||"done"==ae}(Q))throw function Jn(ae,U){return new A.vHH(3400,!1)}();const dt=Ci(this._elementListeners,U,[]),Ot={name:I,phase:Q,callback:Ze};dt.push(Ot);const Ht=Ci(this._engine.statesByElement,U,new Map);return Ht.has(I)||(ir(U,qi),ir(U,qi+"-"+I),Ht.set(I,ao)),()=>{this._engine.afterFlush(()=>{const Gt=dt.indexOf(Ot);Gt>=0&&dt.splice(Gt,1),this._triggers.has(I)||Ht.delete(I)})}}register(U,I){return!this._triggers.has(U)&&(this._triggers.set(U,I),!0)}_getTrigger(U){const I=this._triggers.get(U);if(!I)throw function Ln(ae){return new A.vHH(3401,!1)}();return I}trigger(U,I,Q,Ze=!0){const dt=this._getTrigger(I),Ot=new so(this.id,I,U);let Ht=this._engine.statesByElement.get(U);Ht||(ir(U,qi),ir(U,qi+"-"+I),this._engine.statesByElement.set(U,Ht=new Map));let Gt=Ht.get(I);const $t=new _a(Q,this.id);if(!(Q&&Q.hasOwnProperty("value"))&&Gt&&$t.absorbOptions(Gt.options),Ht.set(I,$t),Gt||(Gt=ao),$t.value!==Jr&&Gt.value===$t.value){if(!function Za(ae,U){const I=Object.keys(ae),Q=Object.keys(U);if(I.length!=Q.length)return!1;for(let Ze=0;Ze{Fi(U,mi),Qi(U,li)})}return}const kn=Ci(this._engine.playersByElement,U,[]);kn.forEach(Nn=>{Nn.namespaceId==this.id&&Nn.triggerName==I&&Nn.queued&&Nn.destroy()});let Zn=dt.matchTransition(Gt.value,$t.value,U,$t.params),Hn=!1;if(!Zn){if(!Ze)return;Zn=dt.fallbackTransition,Hn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:U,triggerName:I,transition:Zn,fromState:Gt,toState:$t,player:Ot,isFallbackTransition:Hn}),Hn||(ir(U,Vr),Ot.onStart(()=>{ba(U,Vr)})),Ot.onDone(()=>{let Nn=this.players.indexOf(Ot);Nn>=0&&this.players.splice(Nn,1);const mi=this._engine.playersByElement.get(U);if(mi){let li=mi.indexOf(Ot);li>=0&&mi.splice(li,1)}}),this.players.push(Ot),kn.push(Ot),Ot}deregister(U){this._triggers.delete(U),this._engine.statesByElement.forEach(I=>I.delete(U)),this._elementListeners.forEach((I,Q)=>{this._elementListeners.set(Q,I.filter(Ze=>Ze.name!=U))})}clearElementCache(U){this._engine.statesByElement.delete(U),this._elementListeners.delete(U);const I=this._engine.playersByElement.get(U);I&&(I.forEach(Q=>Q.destroy()),this._engine.playersByElement.delete(U))}_signalRemovalForInnerTriggers(U,I){const Q=this._engine.driver.query(U,lt,!0);Q.forEach(Ze=>{if(Ze[hr])return;const dt=this._engine.fetchNamespacesByElement(Ze);dt.size?dt.forEach(Ot=>Ot.triggerLeaveAnimation(Ze,I,!1,!0)):this.clearElementCache(Ze)}),this._engine.afterFlushAnimationsDone(()=>Q.forEach(Ze=>this.clearElementCache(Ze)))}triggerLeaveAnimation(U,I,Q,Ze){const dt=this._engine.statesByElement.get(U),Ot=new Map;if(dt){const Ht=[];if(dt.forEach((Gt,$t)=>{if(Ot.set($t,Gt.value),this._triggers.has($t)){const fn=this.trigger(U,$t,Jr,Ze);fn&&Ht.push(fn)}}),Ht.length)return this._engine.markElementAsRemoved(this.id,U,!0,I,Ot),Q&&di(Ht).onDone(()=>this._engine.processLeaveNode(U)),!0}return!1}prepareLeaveAnimationListeners(U){const I=this._elementListeners.get(U),Q=this._engine.statesByElement.get(U);if(I&&Q){const Ze=new Set;I.forEach(dt=>{const Ot=dt.name;if(Ze.has(Ot))return;Ze.add(Ot);const Gt=this._triggers.get(Ot).fallbackTransition,$t=Q.get(Ot)||ao,fn=new _a(Jr),yn=new so(this.id,Ot,U);this._engine.totalQueuedPlayers++,this._queue.push({element:U,triggerName:Ot,transition:Gt,fromState:$t,toState:fn,player:yn,isFallbackTransition:!0})})}}removeNode(U,I){const Q=this._engine;if(U.childElementCount&&this._signalRemovalForInnerTriggers(U,I),this.triggerLeaveAnimation(U,I,!0))return;let Ze=!1;if(Q.totalAnimations){const dt=Q.players.length?Q.playersByQueriedElement.get(U):[];if(dt&&dt.length)Ze=!0;else{let Ot=U;for(;Ot=Ot.parentNode;)if(Q.statesByElement.get(Ot)){Ze=!0;break}}}if(this.prepareLeaveAnimationListeners(U),Ze)Q.markElementAsRemoved(this.id,U,!1,I);else{const dt=U[hr];(!dt||dt===Io)&&(Q.afterFlush(()=>this.clearElementCache(U)),Q.destroyInnerAnimations(U),Q._onRemovalComplete(U,I))}}insertNode(U,I){ir(U,this._hostClassName)}drainQueuedTransitions(U){const I=[];return this._queue.forEach(Q=>{const Ze=Q.player;if(Ze.destroyed)return;const dt=Q.element,Ot=this._elementListeners.get(dt);Ot&&Ot.forEach(Ht=>{if(Ht.name==Q.triggerName){const Gt=lr(dt,Q.triggerName,Q.fromState.value,Q.toState.value);Gt._data=U,Ir(Q.player,Ht.phase,Gt,Ht.callback)}}),Ze.markedForDestroy?this._engine.afterFlush(()=>{Ze.destroy()}):I.push(Q)}),this._queue=[],I.sort((Q,Ze)=>{const dt=Q.transition.ast.depCount,Ot=Ze.transition.ast.depCount;return 0==dt||0==Ot?dt-Ot:this._engine.driver.containsElement(Q.element,Ze.element)?1:-1})}destroy(U){this.players.forEach(I=>I.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,U)}elementContainsData(U){let I=!1;return this._elementListeners.has(U)&&(I=!0),I=!!this._queue.find(Q=>Q.element===U)||I,I}}class ls{constructor(U,I,Q){this.bodyNode=U,this.driver=I,this._normalizer=Q,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=(Ze,dt)=>{}}_onRemovalComplete(U,I){this.onRemovalComplete(U,I)}get queuedPlayers(){const U=[];return this._namespaceList.forEach(I=>{I.players.forEach(Q=>{Q.queued&&U.push(Q)})}),U}createNamespace(U,I){const Q=new oo(U,I,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,I)?this._balanceNamespaceList(Q,I):(this.newHostElements.set(I,Q),this.collectEnterElement(I)),this._namespaceLookup[U]=Q}_balanceNamespaceList(U,I){const Q=this._namespaceList,Ze=this.namespacesByHostElement;if(Q.length-1>=0){let Ot=!1,Ht=this.driver.getParentElement(I);for(;Ht;){const Gt=Ze.get(Ht);if(Gt){const $t=Q.indexOf(Gt);Q.splice($t+1,0,U),Ot=!0;break}Ht=this.driver.getParentElement(Ht)}Ot||Q.unshift(U)}else Q.push(U);return Ze.set(I,U),U}register(U,I){let Q=this._namespaceLookup[U];return Q||(Q=this.createNamespace(U,I)),Q}registerTrigger(U,I,Q){let Ze=this._namespaceLookup[U];Ze&&Ze.register(I,Q)&&this.totalAnimations++}destroy(U,I){if(!U)return;const Q=this._fetchNamespace(U);this.afterFlush(()=>{this.namespacesByHostElement.delete(Q.hostElement),delete this._namespaceLookup[U];const Ze=this._namespaceList.indexOf(Q);Ze>=0&&this._namespaceList.splice(Ze,1)}),this.afterFlushAnimationsDone(()=>Q.destroy(I))}_fetchNamespace(U){return this._namespaceLookup[U]}fetchNamespacesByElement(U){const I=new Set,Q=this.statesByElement.get(U);if(Q)for(let Ze of Q.values())if(Ze.namespaceId){const dt=this._fetchNamespace(Ze.namespaceId);dt&&I.add(dt)}return I}trigger(U,I,Q,Ze){if(Sr(I)){const dt=this._fetchNamespace(U);if(dt)return dt.trigger(I,Q,Ze),!0}return!1}insertNode(U,I,Q,Ze){if(!Sr(I))return;const dt=I[hr];if(dt&&dt.setForRemoval){dt.setForRemoval=!1,dt.setForMove=!0;const Ot=this.collectedLeaveElements.indexOf(I);Ot>=0&&this.collectedLeaveElements.splice(Ot,1)}if(U){const Ot=this._fetchNamespace(U);Ot&&Ot.insertNode(I,Q)}Ze&&this.collectEnterElement(I)}collectEnterElement(U){this.collectedEnterElements.push(U)}markElementAsDisabled(U,I){I?this.disabledNodes.has(U)||(this.disabledNodes.add(U),ir(U,Po)):this.disabledNodes.has(U)&&(this.disabledNodes.delete(U),ba(U,Po))}removeNode(U,I,Q,Ze){if(Sr(I)){const dt=U?this._fetchNamespace(U):null;if(dt?dt.removeNode(I,Ze):this.markElementAsRemoved(U,I,!1,Ze),Q){const Ot=this.namespacesByHostElement.get(I);Ot&&Ot.id!==U&&Ot.removeNode(I,Ze)}}else this._onRemovalComplete(I,Ze)}markElementAsRemoved(U,I,Q,Ze,dt){this.collectedLeaveElements.push(I),I[hr]={namespaceId:U,setForRemoval:Ze,hasAnimation:Q,removedBeforeQueried:!1,previousTriggersValues:dt}}listen(U,I,Q,Ze,dt){return Sr(I)?this._fetchNamespace(U).listen(I,Q,Ze,dt):()=>{}}_buildInstruction(U,I,Q,Ze,dt){return U.transition.build(this.driver,U.element,U.fromState.value,U.toState.value,Q,Ze,U.fromState.options,U.toState.options,I,dt)}destroyInnerAnimations(U){let I=this.driver.query(U,lt,!0);I.forEach(Q=>this.destroyActiveAnimationsForElement(Q)),0!=this.playersByQueriedElement.size&&(I=this.driver.query(U,Xe,!0),I.forEach(Q=>this.finishActiveQueriedAnimationOnElement(Q)))}destroyActiveAnimationsForElement(U){const I=this.playersByElement.get(U);I&&I.forEach(Q=>{Q.queued?Q.markedForDestroy=!0:Q.destroy()})}finishActiveQueriedAnimationOnElement(U){const I=this.playersByQueriedElement.get(U);I&&I.forEach(Q=>Q.finish())}whenRenderingDone(){return new Promise(U=>{if(this.players.length)return di(this.players).onDone(()=>U());U()})}processLeaveNode(U){var I;const Q=U[hr];if(Q&&Q.setForRemoval){if(U[hr]=Io,Q.namespaceId){this.destroyInnerAnimations(U);const Ze=this._fetchNamespace(Q.namespaceId);Ze&&Ze.clearElementCache(U)}this._onRemovalComplete(U,Q.setForRemoval)}null!==(I=U.classList)&&void 0!==I&&I.contains(Po)&&this.markElementAsDisabled(U,!1),this.driver.query(U,".ng-animate-disabled",!0).forEach(Ze=>{this.markElementAsDisabled(Ze,!1)})}flush(U=-1){let I=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Q,Ze)=>this._balanceNamespaceList(Q,Ze)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Q=0;QQ()),this._flushFns=[],this._whenQuietFns.length){const Q=this._whenQuietFns;this._whenQuietFns=[],I.length?di(I).onDone(()=>{Q.forEach(Ze=>Ze())}):Q.forEach(Ze=>Ze())}}reportError(U){throw function zi(ae){return new A.vHH(3402,!1)}()}_flushAnimations(U,I){const Q=new Na,Ze=[],dt=new Map,Ot=[],Ht=new Map,Gt=new Map,$t=new Map,fn=new Set;this.disabledNodes.forEach(pn=>{fn.add(pn);const Sn=this.driver.query(pn,".ng-animate-queued",!0);for(let xn=0;xn{const xn=Oi+Nn++;Hn.set(Sn,xn),pn.forEach(Wn=>ir(Wn,xn))});const mi=[],li=new Set,ki=new Set;for(let pn=0;pnli.add(Wn)):ki.add(Sn))}const Zi=new Map,Gi=Oo(kn,Array.from(li));Gi.forEach((pn,Sn)=>{const xn=xi+Nn++;Zi.set(Sn,xn),pn.forEach(Wn=>ir(Wn,xn))}),U.push(()=>{Zn.forEach((pn,Sn)=>{const xn=Hn.get(Sn);pn.forEach(Wn=>ba(Wn,xn))}),Gi.forEach((pn,Sn)=>{const xn=Zi.get(Sn);pn.forEach(Wn=>ba(Wn,xn))}),mi.forEach(pn=>{this.processLeaveNode(pn)})});const vo=[],da=[];for(let pn=this._namespaceList.length-1;pn>=0;pn--)this._namespaceList[pn].drainQueuedTransitions(I).forEach(xn=>{const Wn=xn.player,yi=xn.element;if(vo.push(Wn),this.collectedEnterElements.length){const ar=yi[hr];if(ar&&ar.setForMove){if(ar.previousTriggersValues&&ar.previousTriggersValues.has(xn.triggerName)){const Zr=ar.previousTriggersValues.get(xn.triggerName),Cr=this.statesByElement.get(xn.element);if(Cr&&Cr.has(xn.triggerName)){const Wo=Cr.get(xn.triggerName);Wo.value=Zr,Cr.set(xn.triggerName,Wo)}}return void Wn.destroy()}}const Xr=!yn||!this.driver.containsElement(yn,yi),Dr=Zi.get(yi),Da=Hn.get(yi),wi=this._buildInstruction(xn,Q,Da,Dr,Xr);if(wi.errors&&wi.errors.length)return void da.push(wi);if(Xr)return Wn.onStart(()=>Fi(yi,wi.fromStyles)),Wn.onDestroy(()=>Qi(yi,wi.toStyles)),void Ze.push(Wn);if(xn.isFallbackTransition)return Wn.onStart(()=>Fi(yi,wi.fromStyles)),Wn.onDestroy(()=>Qi(yi,wi.toStyles)),void Ze.push(Wn);const ac=[];wi.timelines.forEach(ar=>{ar.stretchStartingKeyframe=!0,this.disabledNodes.has(ar.element)||ac.push(ar)}),wi.timelines=ac,Q.append(yi,wi.timelines),Ot.push({instruction:wi,player:Wn,element:yi}),wi.queriedElements.forEach(ar=>Ci(Ht,ar,[]).push(Wn)),wi.preStyleProps.forEach((ar,Zr)=>{if(ar.size){let Cr=Gt.get(Zr);Cr||Gt.set(Zr,Cr=new Set),ar.forEach((Wo,Es)=>Cr.add(Es))}}),wi.postStyleProps.forEach((ar,Zr)=>{let Cr=$t.get(Zr);Cr||$t.set(Zr,Cr=new Set),ar.forEach((Wo,Es)=>Cr.add(Es))})});if(da.length){const pn=[];da.forEach(Sn=>{pn.push(function ci(ae,U){return new A.vHH(3505,!1)}())}),vo.forEach(Sn=>Sn.destroy()),this.reportError(pn)}const Ar=new Map,Br=new Map;Ot.forEach(pn=>{const Sn=pn.element;Q.has(Sn)&&(Br.set(Sn,Sn),this._beforeAnimationBuild(pn.player.namespaceId,pn.instruction,Ar))}),Ze.forEach(pn=>{const Sn=pn.element;this._getPreviousPlayers(Sn,!1,pn.namespaceId,pn.triggerName,null).forEach(Wn=>{Ci(Ar,Sn,[]).push(Wn),Wn.destroy()})});const vs=mi.filter(pn=>co(pn,Gt,$t)),jr=new Map;ds(jr,this.driver,ki,$t,ke.l3).forEach(pn=>{co(pn,Gt,$t)&&vs.push(pn)});const Ma=new Map;Zn.forEach((pn,Sn)=>{ds(Ma,this.driver,new Set(pn),Gt,ke.k1)}),vs.forEach(pn=>{var Sn,xn;const Wn=jr.get(pn),yi=Ma.get(pn);jr.set(pn,new Map([...Array.from(null!==(Sn=Wn?.entries())&&void 0!==Sn?Sn:[]),...Array.from(null!==(xn=yi?.entries())&&void 0!==xn?xn:[])]))});const To=[],xa=[],rc={};Ot.forEach(pn=>{const{element:Sn,player:xn,instruction:Wn}=pn;if(Q.has(Sn)){if(fn.has(Sn))return xn.onDestroy(()=>Qi(Sn,Wn.toStyles)),xn.disabled=!0,xn.overrideTotalTime(Wn.totalTime),void Ze.push(xn);let yi=rc;if(Br.size>1){let Dr=Sn;const Da=[];for(;Dr=Dr.parentNode;){const wi=Br.get(Dr);if(wi){yi=wi;break}Da.push(Dr)}Da.forEach(wi=>Br.set(wi,yi))}const Xr=this._buildAnimation(xn.namespaceId,Wn,Ar,dt,Ma,jr);if(xn.setRealPlayer(Xr),yi===rc)To.push(xn);else{const Dr=this.playersByElement.get(yi);Dr&&Dr.length&&(xn.parentPlayer=di(Dr)),Ze.push(xn)}}else Fi(Sn,Wn.fromStyles),xn.onDestroy(()=>Qi(Sn,Wn.toStyles)),xa.push(xn),fn.has(Sn)&&Ze.push(xn)}),xa.forEach(pn=>{const Sn=dt.get(pn.element);if(Sn&&Sn.length){const xn=di(Sn);pn.setRealPlayer(xn)}}),Ze.forEach(pn=>{pn.parentPlayer?pn.syncPlayerEvents(pn.parentPlayer):pn.destroy()});for(let pn=0;pn!Xr.destroyed);yi.length?pr(this,Sn,yi):this.processLeaveNode(Sn)}return mi.length=0,To.forEach(pn=>{this.players.push(pn),pn.onDone(()=>{pn.destroy();const Sn=this.players.indexOf(pn);this.players.splice(Sn,1)}),pn.play()}),To}elementContainsData(U,I){let Q=!1;const Ze=I[hr];return Ze&&Ze.setForRemoval&&(Q=!0),this.playersByElement.has(I)&&(Q=!0),this.playersByQueriedElement.has(I)&&(Q=!0),this.statesByElement.has(I)&&(Q=!0),this._fetchNamespace(U).elementContainsData(I)||Q}afterFlush(U){this._flushFns.push(U)}afterFlushAnimationsDone(U){this._whenQuietFns.push(U)}_getPreviousPlayers(U,I,Q,Ze,dt){let Ot=[];if(I){const Ht=this.playersByQueriedElement.get(U);Ht&&(Ot=Ht)}else{const Ht=this.playersByElement.get(U);if(Ht){const Gt=!dt||dt==Jr;Ht.forEach($t=>{$t.queued||!Gt&&$t.triggerName!=Ze||Ot.push($t)})}}return(Q||Ze)&&(Ot=Ot.filter(Ht=>!(Q&&Q!=Ht.namespaceId||Ze&&Ze!=Ht.triggerName))),Ot}_beforeAnimationBuild(U,I,Q){const dt=I.element,Ot=I.isRemovalTransition?void 0:U,Ht=I.isRemovalTransition?void 0:I.triggerName;for(const Gt of I.timelines){const $t=Gt.element,fn=$t!==dt,yn=Ci(Q,$t,[]);this._getPreviousPlayers($t,fn,Ot,Ht,I.toState).forEach(Zn=>{const Hn=Zn.getRealPlayer();Hn.beforeDestroy&&Hn.beforeDestroy(),Zn.destroy(),yn.push(Zn)})}Fi(dt,I.fromStyles)}_buildAnimation(U,I,Q,Ze,dt,Ot){const Ht=I.triggerName,Gt=I.element,$t=[],fn=new Set,yn=new Set,kn=I.timelines.map(Hn=>{const Nn=Hn.element;fn.add(Nn);const mi=Nn[hr];if(mi&&mi.removedBeforeQueried)return new ke.ZN(Hn.duration,Hn.delay);const li=Nn!==Gt,ki=function us(ae){const U=[];return Qr(ae,U),U}((Q.get(Nn)||ss).map(Ar=>Ar.getRealPlayer())).filter(Ar=>!!Ar.element&&Ar.element===Nn),Zi=dt.get(Nn),Gi=Ot.get(Nn),vo=or(0,this._normalizer,0,Hn.keyframes,Zi,Gi),da=this._buildPlayer(Hn,vo,ki);if(Hn.subTimeline&&Ze&&yn.add(Nn),li){const Ar=new so(U,Ht,Nn);Ar.setRealPlayer(da),$t.push(Ar)}return da});$t.forEach(Hn=>{Ci(this.playersByQueriedElement,Hn.element,[]).push(Hn),Hn.onDone(()=>function Aa(ae,U,I){let Q=ae.get(U);if(Q){if(Q.length){const Ze=Q.indexOf(I);Q.splice(Ze,1)}0==Q.length&&ae.delete(U)}return Q}(this.playersByQueriedElement,Hn.element,Hn))}),fn.forEach(Hn=>ir(Hn,Vt));const Zn=di(kn);return Zn.onDestroy(()=>{fn.forEach(Hn=>ba(Hn,Vt)),Qi(Gt,I.toStyles)}),yn.forEach(Hn=>{Ci(Ze,Hn,[]).push(Zn)}),Zn}_buildPlayer(U,I,Q){return I.length>0?this.driver.animate(U.element,I,U.duration,U.delay,U.easing,Q):new ke.ZN(U.duration,U.delay)}}class so{constructor(U,I,Q){this.namespaceId=U,this.triggerName=I,this.element=Q,this._player=new ke.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(U){this._containsRealPlayer||(this._player=U,this._queuedCallbacks.forEach((I,Q)=>{I.forEach(Ze=>Ir(U,Q,void 0,Ze))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(U.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(U){this.totalTime=U}syncPlayerEvents(U){const I=this._player;I.triggerCallback&&U.onStart(()=>I.triggerCallback("start")),U.onDone(()=>this.finish()),U.onDestroy(()=>this.destroy())}_queueEvent(U,I){Ci(this._queuedCallbacks,U,[]).push(I)}onDone(U){this.queued&&this._queueEvent("done",U),this._player.onDone(U)}onStart(U){this.queued&&this._queueEvent("start",U),this._player.onStart(U)}onDestroy(U){this.queued&&this._queueEvent("destroy",U),this._player.onDestroy(U)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(U){this.queued||this._player.setPosition(U)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(U){const I=this._player;I.triggerCallback&&I.triggerCallback(U)}}function Sr(ae){return ae&&1===ae.nodeType}function Ca(ae,U){const I=ae.style.display;return ae.style.display=U??"none",I}function ds(ae,U,I,Q,Ze){const dt=[];I.forEach(Gt=>dt.push(Ca(Gt)));const Ot=[];Q.forEach((Gt,$t)=>{const fn=new Map;Gt.forEach(yn=>{const kn=U.computeStyle($t,yn,Ze);fn.set(yn,kn),(!kn||0==kn.length)&&($t[hr]=nl,Ot.push($t))}),ae.set($t,fn)});let Ht=0;return I.forEach(Gt=>Ca(Gt,dt[Ht++])),Ot}function Oo(ae,U){const I=new Map;if(ae.forEach(Ht=>I.set(Ht,[])),0==U.length)return I;const Ze=new Set(U),dt=new Map;function Ot(Ht){if(!Ht)return 1;let Gt=dt.get(Ht);if(Gt)return Gt;const $t=Ht.parentNode;return Gt=I.has($t)?$t:Ze.has($t)?1:Ot($t),dt.set(Ht,Gt),Gt}return U.forEach(Ht=>{const Gt=Ot(Ht);1!==Gt&&I.get(Gt).push(Ht)}),I}function ir(ae,U){var I;null===(I=ae.classList)||void 0===I||I.add(U)}function ba(ae,U){var I;null===(I=ae.classList)||void 0===I||I.remove(U)}function pr(ae,U,I){di(I).onDone(()=>ae.processLeaveNode(U))}function Qr(ae,U){for(let I=0;IZe.add(dt)):U.set(ae,Q),I.delete(ae),!0}class ra{constructor(U,I,Q){this.bodyNode=U,this._driver=I,this._normalizer=Q,this._triggerCache={},this.onRemovalComplete=(Ze,dt)=>{},this._transitionEngine=new ls(U,I,Q),this._timelineEngine=new tl(U,I,Q),this._transitionEngine.onRemovalComplete=(Ze,dt)=>this.onRemovalComplete(Ze,dt)}registerTrigger(U,I,Q,Ze,dt){const Ot=U+"-"+Ze;let Ht=this._triggerCache[Ot];if(!Ht){const Gt=[],fn=Re(this._driver,dt,Gt,[]);if(Gt.length)throw function Rt(ae,U){return new A.vHH(3404,!1)}();Ht=function to(ae,U,I){return new ia(ae,U,I)}(Ze,fn,this._normalizer),this._triggerCache[Ot]=Ht}this._transitionEngine.registerTrigger(I,Ze,Ht)}register(U,I){this._transitionEngine.register(U,I)}destroy(U,I){this._transitionEngine.destroy(U,I)}onInsert(U,I,Q,Ze){this._transitionEngine.insertNode(U,I,Q,Ze)}onRemove(U,I,Q,Ze){this._transitionEngine.removeNode(U,I,Ze||!1,Q)}disableAnimations(U,I){this._transitionEngine.markElementAsDisabled(U,I)}process(U,I,Q,Ze){if("@"==Q.charAt(0)){const[dt,Ot]=Er(Q);this._timelineEngine.command(dt,I,Ot,Ze)}else this._transitionEngine.trigger(U,I,Q,Ze)}listen(U,I,Q,Ze,dt){if("@"==Q.charAt(0)){const[Ot,Ht]=Er(Q);return this._timelineEngine.listen(Ot,I,Ht,dt)}return this._transitionEngine.listen(U,I,Q,Ze,dt)}flush(U=-1){this._transitionEngine.flush(U)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let il=(()=>{class ae{constructor(I,Q,Ze){this._element=I,this._startStyles=Q,this._endStyles=Ze,this._state=0;let dt=ae.initialStylesByElement.get(I);dt||ae.initialStylesByElement.set(I,dt=new Map),this._initialStyles=dt}start(){this._state<1&&(this._startStyles&&Qi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Qi(this._element,this._initialStyles),this._endStyles&&(Qi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ae.initialStylesByElement.delete(this._element),this._startStyles&&(Fi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Fi(this._element,this._endStyles),this._endStyles=null),Qi(this._element,this._initialStyles),this._state=3)}}return ae.initialStylesByElement=new WeakMap,ae})();function uo(ae){let U=null;return ae.forEach((I,Q)=>{(function hs(ae){return"display"===ae||"position"===ae})(Q)&&(U=U||new Map,U.set(Q,I))}),U}class Ho{constructor(U,I,Q,Ze){this.element=U,this.keyframes=I,this.options=Q,this._specialStyles=Ze,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=Q.duration,this._delay=Q.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(U=>U()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const U=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,U,this.options),this._finalKeyframe=U.length?U[U.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(U){const I=[];return U.forEach(Q=>{I.push(Object.fromEntries(Q))}),I}_triggerWebAnimation(U,I,Q){return U.animate(this._convertKeyframesToObject(I),Q)}onStart(U){this._originalOnStartFns.push(U),this._onStartFns.push(U)}onDone(U){this._originalOnDoneFns.push(U),this._onDoneFns.push(U)}onDestroy(U){this._onDestroyFns.push(U)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(U=>U()),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(U=>U()),this._onDestroyFns=[])}setPosition(U){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=U*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const U=new Map;this.hasStarted()&&this._finalKeyframe.forEach((Q,Ze)=>{"offset"!==Ze&&U.set(Ze,this._finished?Q:En(this.element,Ze))}),this.currentSnapshot=U}triggerCallback(U){const I="start"===U?this._onStartFns:this._onDoneFns;I.forEach(Q=>Q()),I.length=0}}class ps{validateStyleProperty(U){return!0}validateAnimatableStyleProperty(U){return!0}matchesElement(U,I){return!1}containsElement(U,I){return kt(U,I)}getParentElement(U){return Nr(U)}query(U,I,Q){return Zt(U,I,Q)}computeStyle(U,I,Q){return window.getComputedStyle(U)[I]}animate(U,I,Q,Ze,dt,Ot=[]){const Gt={duration:Q,delay:Ze,fill:0==Ze?"both":"forwards"};dt&&(Gt.easing=dt);const $t=new Map,fn=Ot.filter(Zn=>Zn instanceof Ho);(function Bt(ae,U){return 0===ae||0===U})(Q,Ze)&&fn.forEach(Zn=>{Zn.currentSnapshot.forEach((Hn,Nn)=>$t.set(Nn,Hn))});let yn=function bi(ae){return ae.length?ae[0]instanceof Map?ae:ae.map(U=>oi(U)):[]}(I).map(Zn=>Ji(Zn));yn=function Qt(ae,U,I){if(I.size&&U.length){let Q=U[0],Ze=[];if(I.forEach((dt,Ot)=>{Q.has(Ot)||Ze.push(Ot),Q.set(Ot,dt)}),Ze.length)for(let dt=1;dtOt.set(Ht,En(ae,Ht)))}}return U}(U,yn,$t);const kn=function aa(ae,U){let I=null,Q=null;return Array.isArray(U)&&U.length?(I=uo(U[0]),U.length>1&&(Q=uo(U[U.length-1]))):U instanceof Map&&(I=uo(U)),I||Q?new il(ae,I,Q):null}(U,yn);return new Ho(U,yn,Gt,kn)}}let fs=(()=>{class ae extends ke._j{constructor(I,Q){super(),this._nextAnimationId=0,this._renderer=I.createRenderer(Q.body,{id:"0",encapsulation:A.ifc.None,styles:[],data:{animation:[]}})}build(I){const Q=this._nextAnimationId.toString();this._nextAnimationId++;const Ze=Array.isArray(I)?(0,ke.vP)(I):I;return Lo(this._renderer,null,Q,"register",[Ze]),new Di(Q,this._renderer)}}return ae.\u0275fac=function(I){return new(I||ae)(A.LFG(A.FYo),A.LFG(O.K0))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac}),ae})();class Di extends ke.LC{constructor(U,I){super(),this._id=U,this._renderer=I}create(U,I){return new Ga(this._id,U,I||{},this._renderer)}}class Ga{constructor(U,I,Q,Ze){this.id=U,this.element=I,this._renderer=Ze,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Q)}_listen(U,I){return this._renderer.listen(this.element,`@@${this.id}:${U}`,I)}_command(U,...I){return Lo(this._renderer,this.element,this.id,U,I)}onDone(U){this._listen("done",U)}onStart(U){this._listen("start",U)}onDestroy(U){this._listen("destroy",U)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(U){this._command("setPosition",U)}getPosition(){var U,I;return null!==(U=null===(I=this._renderer.engine.players[+this.id])||void 0===I?void 0:I.getPosition())&&void 0!==U?U:0}}function Lo(ae,U,I,Q,Ze){return ae.setProperty(U,`@@${I}:${Q}`,Ze)}const va="@.disabled";let Ea=(()=>{class ae{constructor(I,Q,Ze){this.delegate=I,this.engine=Q,this._zone=Ze,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Q.onRemovalComplete=(dt,Ot)=>{const Ht=Ot?.parentNode(dt);Ht&&Ot.removeChild(Ht,dt)}}createRenderer(I,Q){const dt=this.delegate.createRenderer(I,Q);if(!(I&&Q&&Q.data&&Q.data.animation)){let fn=this._rendererCache.get(dt);return fn||(fn=new ms("",dt,this.engine),this._rendererCache.set(dt,fn)),fn}const Ot=Q.id,Ht=Q.id+"-"+this._currentId;this._currentId++,this.engine.register(Ht,I);const Gt=fn=>{Array.isArray(fn)?fn.forEach(Gt):this.engine.registerTrigger(Ot,Ht,I,fn.name,fn)};return Q.data.animation.forEach(Gt),new Bo(this,Ht,dt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(I,Q,Ze){I>=0&&IQ(Ze)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(dt=>{const[Ot,Ht]=dt;Ot(Ht)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Q,Ze]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return ae.\u0275fac=function(I){return new(I||ae)(A.LFG(A.FYo),A.LFG(ra),A.LFG(A.R0b))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac}),ae})();class ms{constructor(U,I,Q){this.namespaceId=U,this.delegate=I,this.engine=Q,this.destroyNode=this.delegate.destroyNode?Ze=>I.destroyNode(Ze):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(U,I){return this.delegate.createElement(U,I)}createComment(U){return this.delegate.createComment(U)}createText(U){return this.delegate.createText(U)}appendChild(U,I){this.delegate.appendChild(U,I),this.engine.onInsert(this.namespaceId,I,U,!1)}insertBefore(U,I,Q,Ze=!0){this.delegate.insertBefore(U,I,Q),this.engine.onInsert(this.namespaceId,I,U,Ze)}removeChild(U,I,Q){this.engine.onRemove(this.namespaceId,I,this.delegate,Q)}selectRootElement(U,I){return this.delegate.selectRootElement(U,I)}parentNode(U){return this.delegate.parentNode(U)}nextSibling(U){return this.delegate.nextSibling(U)}setAttribute(U,I,Q,Ze){this.delegate.setAttribute(U,I,Q,Ze)}removeAttribute(U,I,Q){this.delegate.removeAttribute(U,I,Q)}addClass(U,I){this.delegate.addClass(U,I)}removeClass(U,I){this.delegate.removeClass(U,I)}setStyle(U,I,Q,Ze){this.delegate.setStyle(U,I,Q,Ze)}removeStyle(U,I,Q){this.delegate.removeStyle(U,I,Q)}setProperty(U,I,Q){"@"==I.charAt(0)&&I==va?this.disableAnimations(U,!!Q):this.delegate.setProperty(U,I,Q)}setValue(U,I){this.delegate.setValue(U,I)}listen(U,I,Q){return this.delegate.listen(U,I,Q)}disableAnimations(U,I){this.engine.disableAnimations(U,I)}}class Bo extends ms{constructor(U,I,Q,Ze){super(I,Q,Ze),this.factory=U,this.namespaceId=I}setProperty(U,I,Q){"@"==I.charAt(0)?"."==I.charAt(1)&&I==va?this.disableAnimations(U,Q=void 0===Q||!!Q):this.engine.process(this.namespaceId,U,I.slice(1),Q):this.delegate.setProperty(U,I,Q)}listen(U,I,Q){if("@"==I.charAt(0)){const Ze=function gs(ae){switch(ae){case"body":return document.body;case"document":return document;case"window":return window;default:return ae}}(U);let dt=I.slice(1),Ot="";return"@"!=dt.charAt(0)&&([dt,Ot]=function rl(ae){const U=ae.indexOf(".");return[ae.substring(0,U),ae.slice(U+1)]}(dt)),this.engine.listen(this.namespaceId,Ze,dt,Ot,Ht=>{this.factory.scheduleListenerCallback(Ht._data||-1,Q,Ht)})}return this.delegate.listen(U,I,Q)}}const Xi=[{provide:ke._j,useClass:fs},{provide:eo,useFactory:function ho(){return new wr}},{provide:ra,useClass:(()=>{class ae extends ra{constructor(I,Q,Ze,dt){super(I.body,Q,Ze)}ngOnDestroy(){this.flush()}}return ae.\u0275fac=function(I){return new(I||ae)(A.LFG(O.K0),A.LFG(Bn),A.LFG(eo),A.LFG(A.z2F))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac}),ae})()},{provide:A.FYo,useFactory:function Ta(ae,U,I){return new Ea(ae,U,I)},deps:[e.se,ra,A.R0b]}],oa=[{provide:Bn,useFactory:()=>new ps},{provide:A.QbO,useValue:"BrowserAnimations"},...Xi],po=[{provide:Bn,useClass:On},{provide:A.QbO,useValue:"NoopAnimations"},...Xi];let fo=(()=>{class ae{static withConfig(I){return{ngModule:ae,providers:I.disableAnimations?po:oa}}}return ae.\u0275fac=function(I){return new(I||ae)},ae.\u0275mod=A.oAB({type:ae}),ae.\u0275inj=A.cJS({providers:oa,imports:[e.b2]}),ae})(),si=(()=>{class ae{}return ae.\u0275fac=function(I){return new(I||ae)},ae.\u0275mod=A.oAB({type:ae}),ae.\u0275inj=A.cJS({providers:[b.e8],imports:[O.ez]}),ae})();var Nl=p(81847),kl=p(4732),Vl=p(94856),Fl=p(55857),al=p(37240),jl=p(15592),ol=p(13600),za=p(37380),Zl=p(34904),sl=p(85243),Ri=p(68056),Ya=p(24219),qa=p(25828),Gl=p(10369),ll=p(14336),fr=p(25309),re=p(86353),de=p(11042),Y=p(57788),Se=p(80774),We=p(25610),gt=p(61639);let Ut=(()=>{class ae{constructor(){this.handlers=new Map,this.cachedComponents=new Set([Nl.y.id,kl.G.id,Vl.c.id,Ri.z.id,Ya.z.id,Gl.w.id,de.T.id,ol.y.id,jl.u.id,al.q.id,gt.C.id,Fl.W.id,ll.Z.id,za.o.id,Zl.f.id,We._.id,sl.j.id,qa.t.id,Y.g.id,Se.F.id,fr.Y.id,re.P.id]),this.cacheTimeMs=3e5,this.isUserNavigatingBack=!1}shouldReuseRoute(I,Q){return I.routeConfig===Q.routeConfig}retrieve(I){const Q=this.getKey(I);return this.handlers.has(Q)?this.handlers.get(Q).routeHandle:null}shouldAttach(I){if(!this.isUserNavigatingBack||!I.component)return!1;const Q=this.handlers.get(this.getKey(I));return Q&&this.getCurrentTimestamp()-Q.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();this.handlers.set(this.getKey(I),{routeHandle:Q,saveTimeStamp:this.getCurrentTimestamp()})}setLastNavigationType(I){this.isUserNavigatingBack="back"===I}getComponentId(I){return I.id}getKey(I){return I.pathFromRoot.map(Q=>Q.url.map(Ze=>Ze.toString())).join("/")}getCurrentTimestamp(){return+Date.now()}}return ae.\u0275fac=function(I){return new(I||ae)},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac}),ae})();const qt=new A.OlP("perun-api-service");let un=(()=>{class ae{constructor(I,Q,Ze,dt,Ot){this.http=I,this.storeService=Q,this.authzSevice=Ze,this.titleService=dt,this.utilsService=Ot}initializeColors(I,Q){return new Promise(Ze=>{Q.forEach(dt=>{const Ot=this.storeService.getProperty("theme")[dt.configValue];document.documentElement.style.setProperty(dt.cssVariable,Ot)}),I.forEach(dt=>{const Ot=this.storeService.getProperty("theme")[dt.configValue];document.documentElement.style.setProperty(dt.cssVariable,Ot),this.setEntityTheme(dt.entity,Ot)}),Ze()})}setEntityTheme(I,Q){const Ze=function Tn(ae){return[hn(tinycolor(ae).lighten(52),"50"),hn(tinycolor(ae).lighten(37),"100"),hn(tinycolor(ae).lighten(26),"200"),hn(tinycolor(ae).lighten(12),"300"),hn(tinycolor(ae).lighten(6),"400"),hn(tinycolor(ae),"500"),hn(tinycolor(ae).darken(6),"600"),hn(tinycolor(ae).darken(12),"700"),hn(tinycolor(ae).darken(18),"800"),hn(tinycolor(ae).darken(24),"900"),hn(tinycolor(ae).lighten(50).saturate(30),"A100"),hn(tinycolor(ae).lighten(30).saturate(30),"A200"),hn(tinycolor(ae).lighten(10).saturate(15),"A400"),hn(tinycolor(ae).lighten(5).saturate(5),"A700")]}(Q);for(const dt of Ze){const Gt=`--${I}-theme-primary-contrast-${dt.name}`,$t=dt.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${I}-theme-primary-${dt.name}`,`${dt.red},${dt.green},${dt.blue}`),document.documentElement.style.setProperty(Gt,$t)}}loadAppDefaultConfig(){return new Promise(I=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(Q=>{this.storeService.setDefaultConfig(Q),I()})})}loadAppInstanceConfig(){return new Promise(I=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(Q=>{this.storeService.setInstanceConfig(Q);const Ze=document.location.hostname;Q?.brandings?.[Ze]&&this.storeService.setBanding(Ze),I()},()=>{I()})})}getNoCacheHeaders(){return new Et.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(I=>{const Q=document.querySelector("link[rel*='icon']")||document.createElement("link");Q.type="image/x-icon",Q.rel="shortcut icon",Q.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(Q),I()})}setApiUrl(){return new Promise(I=>{let Q=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(Q=Q.replace("oauth","ba")),this.authzSevice.configuration.basePath=Q,this.titleService.setTitle(this.storeService.getProperty("document_title").en),I()})}loadAppsConfig(){return new Promise((I,Q)=>{this.utilsService.getAppsConfig().subscribe(Ze=>{this.storeService.setAppsConfig(Ze),I()},Ze=>Q(Ze))})}}return ae.\u0275fac=function(I){return new(I||ae)(A.LFG(Et.eN),A.LFG(b.d6),A.LFG(f.Ct),A.LFG(e.Dx),A.LFG(f.FW))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();function hn(ae,U){const I=tinycolor(ae),Q=I.toRgb();return{name:U,hex:I.toHexString(),darkContrast:I.isLight(),red:Q.r,green:Q.g,blue:Q.b}}let Dn=(()=>{class ae{constructor(I,Q){this.data=I,this.location=Q}redirect(){this.location.go("/"),location.reload()}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(H.WI),A.Y36(O.Ye))},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(I,Q){1&I&&(A.TgZ(0,"h2"),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"p"),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div")(7,"button",0),A.NdJ("click",function(){return Q.redirect()}),A._uU(8),A.ALo(9,"translate"),A.qZA()()),2&I&&(A.xp6(1),A.hij(" ",A.lcZ(2,3,Q.data.title),"\n"),A.xp6(3),A.hij(" ",A.lcZ(5,5,Q.data.message),"\n"),A.xp6(4),A.hij(" ",A.lcZ(9,7,Q.data.action)," "))},dependencies:[w.X$]}),ae})(),fi=(()=>{class ae{constructor(I,Q){this.dialogRef=I,this.data=Q}refresh(){location.reload()}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(H.so),A.Y36(H.WI))},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(I,Q){1&I&&(A.TgZ(0,"h2"),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"p"),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div")(7,"button",0),A.NdJ("click",function(){return Q.refresh()}),A._uU(8),A.ALo(9,"translate"),A.qZA()()),2&I&&(A.xp6(1),A.hij(" ",A.lcZ(2,3,Q.data.title),"\n"),A.xp6(3),A.hij(" ",A.lcZ(5,5,Q.data.message),"\n"),A.xp6(4),A.hij(" ",A.lcZ(9,7,Q.data.action)," "))},dependencies:[w.X$]}),ae})();var Li=p(83905);let rr=(()=>{class ae{constructor(I,Q,Ze,dt,Ot,Ht,Gt){this.initAuthService=I,this.appConfigService=Q,this.authzSevice=Ze,this.dialog=dt,this.location=Ot,this.guiAuthResolver=Ht,this.mfaHandlerService=Gt,this.entityColorConfigs=[{entity:"vo",configValue:"vo_color",cssVariable:"--vo-color"},{entity:"group",configValue:"group_color",cssVariable:"--group-color"},{entity:"user",configValue:"user_color",cssVariable:"--user-color"},{entity:"member",configValue:"member_color",cssVariable:"--member-color"},{entity:"facility",configValue:"facility_color",cssVariable:"--facility-color"},{entity:"resource",configValue:"resource_color",cssVariable:"--resource-color"},{entity:"admin",configValue:"admin_color",cssVariable:"--admin-color"},{entity:"service",configValue:"service_color",cssVariable:"--service-color"}],this.colorConfigs=[{configValue:"sidemenu_hover_color",cssVariable:"--side-root-item-hover"},{configValue:"sidemenu_active_color",cssVariable:"--side-root-item-active"},{configValue:"sidemenu_submenu_active_color",cssVariable:"--side-link-active"},{configValue:"sidemenu_submenu_hover_color",cssVariable:"--side-link-hover"},{configValue:"sidemenu_hover_text_color",cssVariable:"--side-root-item-text-hover"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-root-item-text-active"},{configValue:"sidemenu_submenu_active_text_color",cssVariable:"--side-link-text-active"},{configValue:"sidemenu_submenu_hover_text_color",cssVariable:"--side-link-text-hover"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(I=>{if("Invalid path"!==I)throw this.mfaHandlerService.catchNoMfaTokenError(I?.params?.error),console.error(I),this.location.go("/"),location.reload(),I;this.handleErr(I)}).then(I=>I?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().catch(Q=>this.handleErr(Q)).then(()=>this.loadPolicies()).then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.guiAuthResolver.loadRolesManagementRules()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}handleErr(I){const Q=(0,D.kZ)();throw"Invalid path"===I?(Q.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(Dn,Q)):401!==I.status&&(Q.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===I.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":I.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(fi,Q)),console.error(I),I}loadPolicies(){return(0,Li.z)(this.authzSevice.getAllPolicies()).then(I=>this.guiAuthResolver.setPerunPolicies(I))}}return ae.\u0275fac=function(I){return new(I||ae)(A.LFG(b.v0),A.LFG(un),A.LFG(f.Ct),A.LFG(H.uw),A.LFG(O.Ye),A.LFG(b.x4),A.LFG(b.hy))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),Mr=(()=>{class ae{}return ae.\u0275fac=function(I){return new(I||ae)},ae.\u0275mod=A.oAB({type:ae}),ae.\u0275inj=A.cJS({imports:[O.ez,H.Is,se.ot,w.aw]}),ae})();var xr=p(40445),sa=p(84080),Fr=p(83353),Mi=p(21281),$r=p(77579),la=p(56451),mr=p(54968),ya=p(69751),_s=p(66406),mo=p(39646),Wc=p(95698),zc=p(54482),Yc=p(72733),No=p(22529),gr=p(82722),qc=p(28746),Bi=p(71345);const zl=new A.OlP("SMOOTH_SCROLL_OPTIONS");let Yl=(()=>{class ae{constructor(I,Q,Ze){this._document=I,this._platform=Q,this._onGoingScrolls=new Map,this._defaultOptions={duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1},...Ze}}get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}_scrollElement(I,Q,Ze){I.scrollLeft=Q,I.scrollTop=Ze}_getElement(I,Q){return"string"==typeof I?(Q||this._document).querySelector(I):(0,Mi.fI)(I)}_initSmoothScroll(I){return this._onGoingScrolls.has(I)&&this._onGoingScrolls.get(I).next(),this._onGoingScrolls.set(I,new $r.x).get(I)}_isFinished(I,Q,Ze){return I.currentX!==I.x||I.currentY!==I.y||(Q.next(),Ze(),!1)}_interrupted(I,Q){return(0,la.T)((0,mr.R)(I,"wheel",{passive:!0,capture:!0}),(0,mr.R)(I,"touchmove",{passive:!0,capture:!0}),Q).pipe((0,Wc.q)(1))}_destroy(I,Q){Q.complete(),this._onGoingScrolls.delete(I)}_step(I){return new ya.y(Q=>{let Ze=(this._now()-I.startTime)/I.duration;Ze=Ze>1?1:Ze;const dt=I.easing(Ze);I.currentX=I.startX+(I.x-I.startX)*dt,I.currentY=I.startY+(I.y-I.startY)*dt,this._scrollElement(I.scrollable,I.currentX,I.currentY),_s.Z.schedule(()=>Q.next(I))})}_applyScrollToOptions(I,Q){if(!Q.duration)return this._scrollElement(I,Q.left,Q.top),Promise.resolve();const Ze=this._initSmoothScroll(I),dt={scrollable:I,startTime:this._now(),startX:I.scrollLeft,startY:I.scrollTop,x:null==Q.left?I.scrollLeft:~~Q.left,y:null==Q.top?I.scrollTop:~~Q.top,duration:Q.duration,easing:Bi(Q.easing.x1,Q.easing.y1,Q.easing.x2,Q.easing.y2)};return new Promise(Ot=>{(0,mo.of)(null).pipe(function Wl(ae,U=1/0,I){return U=(U||0)<1?1/0:U,(0,zc.e)((Q,Ze)=>(0,Yc.p)(Q,Ze,ae,U,void 0,!0,I))}(()=>this._step(dt).pipe((0,No.o)(Ht=>this._isFinished(Ht,Ze,Ot)))),(0,gr.R)(this._interrupted(I,Ze)),(0,qc.x)(()=>this._destroy(I,Ze))).subscribe()})}scrollTo(I,Q){if((0,O.NF)(this._platform)){const Ze=this._getElement(I),dt="rtl"===getComputedStyle(Ze).direction,Ot=(0,Fr._i)(),Ht={...this._defaultOptions,...Q,left:Q.left??(dt?Q.end:Q.start),right:Q.right??(dt?Q.start:Q.end)};return null!=Ht.bottom&&(Ht.top=Ze.scrollHeight-Ze.clientHeight-Ht.bottom),dt&&0!==Ot?(null!=Ht.left&&(Ht.right=Ze.scrollWidth-Ze.clientWidth-Ht.left),2===Ot?Ht.left=Ht.right:1===Ot&&(Ht.left=Ht.right?-Ht.right:Ht.right)):null!=Ht.right&&(Ht.left=Ze.scrollWidth-Ze.clientWidth-Ht.right),this._applyScrollToOptions(Ze,Ht)}return Promise.resolve()}scrollToElement(I,Q,Ze={}){const dt=this._getElement(I),Ot=this._getElement(Q,dt),Ht={...Ze,left:Ot.offsetLeft+(Ze.left||0),top:Ot.offsetTop+(Ze.top||0)};return Ot?this.scrollTo(dt,Ht):Promise.resolve()}}return ae.\u0275fac=function(I){return new(I||ae)(A.LFG(O.K0),A.LFG(A.Lbi),A.LFG(zl,8))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),ko=(()=>{class ae{}return ae.\u0275fac=function(I){return new(I||ae)},ae.\u0275mod=A.oAB({type:ae}),ae.\u0275inj=A.cJS({}),ae})();var Jc=p(61135),Qc=p(50727),Kc=p(60515),Ni=p(18505),er=p(54004),Vo=p(63900),go=p(78372),cl=p(71884);function Fo(...ae){const U=ae.length;if(0===U)throw new Error("list of properties cannot be empty.");return(0,er.U)(I=>{let Q=I;for(let Ze=0;Ze{ae.onselectstart=()=>!1})}function td(ae){return(0,Ni.b)(()=>{ae.onselectstart=null})}function wa(){return(0,Ni.b)(ae=>ae.stopPropagation())}function dl(ae,U){return ae.clientX>=U.left&&ae.clientX<=U.left+U.width&&ae.clientY>=U.top&&ae.clientY<=U.top+U.height}let ul=(()=>{class ae{constructor(I){this.viewPort=I,this.nativeElement=I.nativeElement}get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){var I;return(null===(I=this.contentWrapperElement)||void 0===I?void 0:I.clientHeight)||0}get contentWidth(){var I;return(null===(I=this.contentWrapperElement)||void 0===I?void 0:I.clientWidth)||0}activatePointerEvents(I,Q){this.hovered=new ya.y(Ze=>{const dt=(0,mr.R)(this.nativeElement,"mousemove",{passive:!0}),Ot=I?dt:dt.pipe(wa()),Ht=(0,mr.R)(this.nativeElement,"mouseleave",{passive:!0}).pipe((0,er.U)(()=>!1));(0,la.T)(Ot,Ht).pipe((0,Ni.b)(Gt=>Ze.next(Gt)),(0,gr.R)(Q)).subscribe()}),this.clicked=new ya.y(Ze=>{const dt=(0,mr.R)(this.nativeElement,"mousedown",{passive:!0}).pipe((0,Ni.b)(Ht=>Ze.next(Ht))),Ot=(0,mr.R)(this.nativeElement,"mouseup",{passive:!0}).pipe((0,Ni.b)(()=>Ze.next(!1)));dt.pipe((0,Vo.w)(()=>Ot),(0,gr.R)(Q)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(I){this.nativeElement.className=`ng-native-scrollbar-hider ng-scroll-viewport ${I}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(I){this.nativeElement.scrollTop=I}scrollXTo(I){this.nativeElement.scrollLeft=I}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(A.SBq))},ae.\u0275dir=A.lG2({type:ae,selectors:[["","scrollViewport",""]]}),ae})(),_r=(()=>{class ae{}return ae.\u0275fac=function(I){return new(I||ae)},ae.\u0275dir=A.lG2({type:ae}),ae})();const hl=new A.OlP("NG_SCROLLBAR_OPTIONS"),$l={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0,autoHeightDisabled:!0,autoWidthDisabled:!0,sensorDisabled:!1,pointerEventsDisabled:!1};let pl=(()=>{class ae{constructor(I){this.globalOptions=I?{...$l,...I}:$l,this.rtlScrollAxisType=(0,Fr._i)()}}return ae.\u0275fac=function(I){return new(I||ae)(A.LFG(hl,8))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),Dh=(()=>{class ae{constructor(I,Q,Ze){this.document=I,this.manager=Q,this.platform=Ze,this._scrollbarSize=new Jc.X(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),Ze.isBrowser&&(0,mr.R)(this.document.defaultView,"resize",{passive:!0}).pipe((0,go.b)(this.manager.globalOptions.windowResizeDebounce),(0,er.U)(()=>this.getNativeScrollbarSize()),(0,cl.x)(),(0,Ni.b)(dt=>this._scrollbarSize.next(dt))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;const I=this.document.createElement("div");I.className="ng-scrollbar-measure",I.style.left="0px",I.style.overflow="scroll",I.style.position="fixed",I.style.top="-9999px",this.document.body.appendChild(I);const Q=I.getBoundingClientRect().right;return this.document.body.removeChild(I),Q}}return ae.\u0275fac=function(I){return new(I||ae)(A.LFG(O.K0),A.LFG(pl),A.LFG(Fr.t4))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),Xl=(()=>{class ae{constructor(I,Q,Ze){this.renderer=Q,this.hideNativeScrollbar=Ze,this._subscriber=Qc.w0.EMPTY,this._subscriber=Ze.scrollbarSize.subscribe(dt=>{this.renderer.setStyle(I.nativeElement,"--native-scrollbar-size",`-${dt}px`,A.JOm.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(A.SBq),A.Y36(A.Qsj),A.Y36(Dh))},ae.\u0275dir=A.lG2({type:ae,selectors:[["","hideNativeScrollbar",""]]}),ae})(),Rh=(()=>{class ae{constructor(I){this.el=I}set ngAttr(I){for(const[Q,Ze]of Object.entries(I))this.el.nativeElement.setAttribute(Q,Ze)}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(A.SBq))},ae.\u0275dir=A.lG2({type:ae,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}}),ae})(),fl=(()=>{class ae{constructor(I,Q,Ze){if(this.zone=I,this.platform=Q,this.scrollbar=Ze,this._disabled=!1,this._currentSubscription=null,this.event=new A.vpe,!Ze)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}get debounce(){return this._debounce}set debounce(I){this._debounce=(0,Mi.su)(I),this._subscribe()}get disabled(){return this._disabled}set disabled(I){this._disabled=(0,Mi.Ig)(I),this._disabled?this._unsubscribe():this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){const I=new ya.y(Q=>{this._resizeObserver=new ResizeObserver(Ze=>Q.next(Ze)),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)});this.zone.runOutsideAngular(()=>{this._currentSubscription=(this._debounce?I.pipe((0,go.b)(this._debounce)):I).subscribe(this.event)})}}_unsubscribe(){var I,Q;null===(I=this._resizeObserver)||void 0===I||I.disconnect(),null===(Q=this._currentSubscription)||void 0===Q||Q.unsubscribe()}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(A.R0b),A.Y36(Fr.t4),A.Y36(_r))},ae.\u0275dir=A.lG2({type:ae,selectors:[["","resizeSensor",""]],inputs:{debounce:["sensorDebounce","debounce"],disabled:["sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}}),ae})(),ml=(()=>{class ae{constructor(I,Q,Ze){this.cmp=I,this.trackElement=Q,this.document=Ze}get clicked(){const I=(0,mr.R)(this.trackElement,"mousedown",{passive:!0}).pipe(wa(),Kl(this.document)),Q=(0,mr.R)(this.document,"mouseup",{passive:!0}).pipe(wa(),td(this.document),(0,Vo.w)(()=>Kc.E));return(0,la.T)(I,Q)}get clientRect(){return this.trackElement.getBoundingClientRect()}onTrackClicked(I,Q,Ze){return(0,mo.of)(I).pipe(Fo(this.pageProperty),(0,er.U)(dt=>(dt-this.offset-Q/2)/this.size*Ze),(0,Ni.b)(dt=>{this.cmp.scrollTo({...this.mapToScrollToOption(dt),duration:(0,Mi.su)(this.cmp.trackClickScrollDuration)})}))}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(_r),A.Y36(HTMLElement),A.Y36(Document))},ae.\u0275dir=A.lG2({type:ae}),ae})(),Cs=(()=>{class ae extends ml{constructor(I,Q,Ze){super(I,Q.nativeElement,Ze),this.cmp=I,this.document=Ze}get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}mapToScrollToOption(I){return{left:I}}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(_r),A.Y36(A.SBq),A.Y36(O.K0))},ae.\u0275dir=A.lG2({type:ae,selectors:[["","scrollbarTrackX",""]],features:[A.qOj]}),ae})(),Ao=(()=>{class ae extends ml{constructor(I,Q,Ze){super(I,Q.nativeElement,Ze),this.cmp=I,this.document=Ze}get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}mapToScrollToOption(I){return{top:I}}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(_r),A.Y36(A.SBq),A.Y36(O.K0))},ae.\u0275dir=A.lG2({type:ae,selectors:[["","scrollbarTrackY",""]],features:[A.qOj]}),ae})(),bs=(()=>{class ae{constructor(I,Q,Ze,dt){this.cmp=I,this.track=Q,this.thumbElement=Ze,this.document=dt,this._dragging=new $r.x,this.dragging=this._dragging.pipe((0,cl.x)())}get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return(0,mr.R)(this.thumbElement,"mousedown",{passive:!0}).pipe(wa())}update(){const I=function Co(ae,U,I){return Math.max(~~(ae/U*ae),I)}(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),Q=function nd(ae,U,I){return ae*I/U}(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);_s.Z.schedule(()=>this.updateStyles(this.handleDirection(Q,this.trackMax),I))}dragged(I){let Q,Ze;const dt=(0,mo.of)(I).pipe(Kl(this.document),(0,Ni.b)(()=>{Q=this.trackMax,Ze=this.viewportScrollMax,this.setDragging(!0)})),Ot=(0,mr.R)(this.document,"mousemove",{capture:!0,passive:!0}).pipe(wa()),Ht=(0,mr.R)(this.document,"mouseup",{capture:!0}).pipe(wa(),td(this.document),(0,Ni.b)(()=>this.setDragging(!1)));return dt.pipe(Fo(this.pageProperty),(0,er.U)(Gt=>Gt-this.dragStartOffset),(0,jo.z)(Gt=>Ot.pipe(Fo(this.clientProperty),(0,er.U)($t=>$t-this.track.offset),(0,er.U)($t=>Ze*($t-Gt)/Q),(0,er.U)($t=>this.handleDrag($t,Ze)),(0,Ni.b)($t=>this.scrollTo($t)),(0,gr.R)(Ht))))}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(_r),A.Y36(ml),A.Y36(HTMLElement),A.Y36(Document))},ae.\u0275dir=A.lG2({type:ae,outputs:{dragging:"dragging"}}),ae})(),ec=(()=>{class ae extends bs{constructor(I,Q,Ze,dt,Ot){super(I,Q,Ze.nativeElement,dt),this.cmp=I,this.track=Q,this.element=Ze,this.document=dt,this.dir=Ot}get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}updateStyles(I,Q){this.thumbElement.style.width=`${Q}px`,this.thumbElement.style.transform=`translate3d(${I}px, 0, 0)`}handleDrag(I,Q){if("rtl"===this.dir.value){if(1===this.cmp.manager.rtlScrollAxisType)return I-Q;if(2===this.cmp.manager.rtlScrollAxisType)return Q-I}return I}handleDirection(I,Q){if("rtl"===this.dir.value){if(2===this.cmp.manager.rtlScrollAxisType)return-I;if(0===this.cmp.manager.rtlScrollAxisType)return I-Q}return I}setDragging(I){this.cmp.setDragging({horizontalDragging:I})}scrollTo(I){this.cmp.viewport.scrollXTo(I)}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(_r),A.Y36(Cs),A.Y36(A.SBq),A.Y36(O.K0),A.Y36(xr.Is))},ae.\u0275dir=A.lG2({type:ae,selectors:[["","scrollbarThumbX",""]],features:[A.qOj]}),ae})(),id=(()=>{class ae extends bs{constructor(I,Q,Ze,dt){super(I,Q,Ze.nativeElement,dt),this.cmp=I,this.track=Q,this.element=Ze,this.document=dt}get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}updateStyles(I,Q){this.thumbElement.style.height=`${Q}px`,this.thumbElement.style.transform=`translate3d(0px, ${I}px, 0)`}handleDrag(I){return I}handleDirection(I){return I}setDragging(I){this.cmp.setDragging({verticalDragging:I})}scrollTo(I){this.cmp.viewport.scrollYTo(I)}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(_r),A.Y36(Ao),A.Y36(A.SBq),A.Y36(O.K0))},ae.\u0275dir=A.lG2({type:ae,selectors:[["","scrollbarThumbY",""]],features:[A.qOj]}),ae})(),Go=(()=>{class ae{constructor(I,Q,Ze,dt,Ot){this.el=I,this.cmp=Q,this.platform=Ze,this.document=dt,this.zone=Ot,this.destroyed=new $r.x}activatePointerEvents(){let I,Q,Ze;return"viewport"===this.cmp.pointerEventsMethod?(this.viewportTrackClicked=new $r.x,this.viewportThumbClicked=new $r.x,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),I=this.viewportThumbClicked,Q=this.viewportTrackClicked,Ze=this.cmp.viewport.hovered.pipe((0,er.U)(dt=>!!dt&&dl(dt,this.el.getBoundingClientRect())),(0,cl.x)(),(0,Ni.b)(dt=>this.document.onselectstart=dt?()=>!1:null)),this.cmp.viewport.clicked.pipe((0,Ni.b)(dt=>{dt?dl(dt,this.thumb.clientRect)?this.viewportThumbClicked.next(dt):dl(dt,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(dt)):this.cmp.setClicked(!1)}),(0,gr.R)(this.destroyed)).subscribe()):(I=this.thumb.clicked,Q=this.track.clicked,Ze=this.hovered),(0,la.T)(Ze.pipe((0,Ni.b)(dt=>this.setHovered(dt))),I.pipe((0,Vo.w)(dt=>this.thumb.dragged(dt))),Q.pipe((0,Vo.w)(dt=>this.track.onTrackClicked(dt,this.thumb.size,this.viewportScrollSize))))}get hovered(){const I=(0,mr.R)(this.el,"mouseenter",{passive:!0}).pipe(wa(),(0,er.U)(()=>!0)),Q=(0,mr.R)(this.el,"mouseleave",{passive:!0}).pipe(wa(),(0,er.U)(()=>!1));return(0,la.T)(I,Q)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe((0,gr.R)(this.destroyed)).subscribe(),(0,la.T)(this.cmp.scrolled,this.cmp.updated).pipe((0,Ni.b)(()=>{var I;return null===(I=this.thumb)||void 0===I?void 0:I.update()}),(0,gr.R)(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(HTMLElement),A.Y36(_r),A.Y36(Fr.t4),A.Y36(Document),A.Y36(A.R0b))},ae.\u0275dir=A.lG2({type:ae}),ae})(),gl=(()=>{class ae extends Go{constructor(I,Q,Ze,dt,Ot){super(I.nativeElement,Q,Ze,dt,Ot),this.cmp=Q,this.platform=Ze,this.document=dt,this.zone=Ot}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}setHovered(I){this.cmp.setHovered({verticalHovered:I})}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(A.SBq),A.Y36(_r),A.Y36(Fr.t4),A.Y36(O.K0),A.Y36(A.R0b))},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["scrollbar-y"]],viewQuery:function(I,Q){if(1&I&&(A.Gf(Ao,7),A.Gf(id,7)),2&I){let Ze;A.iGM(Ze=A.CRH())&&(Q.track=Ze.first),A.iGM(Ze=A.CRH())&&(Q.thumb=Ze.first)}},hostVars:2,hostBindings:function(I,Q){2&I&&A.ekj("scrollbar-control",!0)},features:[A.qOj],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(I,Q){1&I&&(A.TgZ(0,"div",0),A._UZ(1,"div",1),A.qZA()),2&I&&(A.Gre("ng-scrollbar-track ",Q.cmp.trackClass,""),A.xp6(1),A.Gre("ng-scrollbar-thumb ",Q.cmp.thumbClass,""))},dependencies:[id,Ao],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{width:var(--vertical-scrollbar-size);height:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%} .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{top:0;bottom:0} .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{right:0;left:initial} .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control{left:0;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control{left:initial;right:0} .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0} .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true]{top:var(--scrollbar-total-size);bottom:0}"],changeDetection:0}),ae})(),tc=(()=>{class ae extends Go{constructor(I,Q,Ze,dt,Ot){super(I.nativeElement,Q,Ze,dt,Ot),this.cmp=Q,this.platform=Ze,this.document=dt,this.zone=Ot}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}setHovered(I){this.cmp.setHovered({horizontalHovered:I})}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(A.SBq),A.Y36(_r),A.Y36(Fr.t4),A.Y36(O.K0),A.Y36(A.R0b))},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["scrollbar-x"]],viewQuery:function(I,Q){if(1&I&&(A.Gf(Cs,7),A.Gf(ec,7)),2&I){let Ze;A.iGM(Ze=A.CRH())&&(Q.track=Ze.first),A.iGM(Ze=A.CRH())&&(Q.thumb=Ze.first)}},hostVars:2,hostBindings:function(I,Q){2&I&&A.ekj("scrollbar-control",!0)},features:[A.qOj],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(I,Q){1&I&&(A.TgZ(0,"div",0),A._UZ(1,"div",1),A.qZA()),2&I&&(A.Gre("ng-scrollbar-track ",Q.cmp.trackClass,""),A.xp6(1),A.Gre("ng-scrollbar-thumb ",Q.cmp.thumbClass,""))},dependencies:[ec,Cs],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{width:0;height:100%} .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:initial} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{left:0;right:0;bottom:0;top:initial} .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:initial} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}"],changeDetection:0}),ae})(),nc=(()=>{class ae{constructor(I,Q,Ze,dt,Ot,Ht){this.el=I,this.zone=Q,this.changeDetectorRef=Ze,this.dir=dt,this.smoothScroll=Ot,this.manager=Ht,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new A.vpe,this.state={},this.destroyed=new $r.x}get disabled(){return this._disabled}set disabled(I){this._disabled=(0,Mi.Ig)(I)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(I){this._sensorDisabled=(0,Mi.Ig)(I)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(I){this._pointerEventsDisabled=(0,Mi.Ig)(I)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(I){this._viewportPropagateMouseMove=(0,Mi.Ig)(I)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(I){this._autoHeightDisabled=(0,Mi.Ig)(I)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(I){this._autoWidthDisabled=(0,Mi.Ig)(I)}get nativeElement(){return this.el.nativeElement}updateState(){let I=!1,Q=!1,Ze=!1,dt=!1;("all"===this.track||"vertical"===this.track)&&(Ze=this.viewport.scrollHeight>this.viewport.clientHeight,I="always"===this.visibility||Ze),("all"===this.track||"horizontal"===this.track)&&(dt=this.viewport.scrollWidth>this.viewport.clientWidth,Q="always"===this.visibility||dt),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:I,horizontalUsed:Q,isVerticallyScrollable:Ze,isHorizontallyScrollable:dt})}setState(I){this.state={...this.state,...I},this.changeDetectorRef.detectChanges()}getScrolledByDirection(I){let Q;return this.scrolled.pipe((0,Ni.b)(Ze=>Q=Ze),Fo("target",I),(0,As.G)(),(0,Jl.h)(([Ze,dt])=>Ze!==dt),(0,er.U)(()=>Q))}setHovered(I){this.zone.run(()=>this.setState({...I}))}setDragging(I){this.zone.run(()=>this.setState({...I}))}setClicked(I){this.zone.run(()=>this.setState({scrollbarClicked:I}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let I=(0,mr.R)(this.viewport.nativeElement,"scroll",{passive:!0});I=this.scrollAuditTime?I.pipe((0,$c.e)(this.scrollAuditTime)):I,this.scrolled=I.pipe((0,gr.R)(this.destroyed)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngOnChanges(I){this.viewport&&this.update()}ngAfterViewInit(){this.update(),this.dir.change.pipe((0,Ni.b)(()=>this.update()),(0,gr.R)(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(I){return this.smoothScroll.scrollTo(this.viewport.nativeElement,I)}scrollToElement(I,Q){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,I,Q)}updateHeight(){this.nativeElement.style.height="standard"===this.appearance&&this.scrollbarX?`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:`${this.viewport.contentHeight}px`}updateWidth(){this.nativeElement.style.width="standard"===this.appearance&&this.scrollbarY?`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:`${this.viewport.contentWidth}px`}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(A.SBq),A.Y36(A.R0b),A.Y36(A.sBO),A.Y36(xr.Is),A.Y36(Yl),A.Y36(pl))},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["ng-scrollbar"]],contentQueries:function(I,Q,Ze){if(1&I&&A.Suo(Ze,ul,7),2&I){let dt;A.iGM(dt=A.CRH())&&(Q.customViewPort=dt.first)}},viewQuery:function(I,Q){if(1&I&&(A.Gf(Xc,5,A.SBq),A.Gf(_o,5,A.SBq),A.Gf(ul,7)),2&I){let Ze;A.iGM(Ze=A.CRH())&&(Q.scrollbarY=Ze.first),A.iGM(Ze=A.CRH())&&(Q.scrollbarX=Ze.first),A.iGM(Ze=A.CRH())&&(Q.defaultViewPort=Ze.first)}},hostVars:2,hostBindings:function(I,Q){2&I&&A.ekj("ng-scrollbar",!0)},inputs:{disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled",viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],features:[A._Bn([{provide:_r,useExisting:ae}]),A.TTD],ngContentSelectors:Ql,decls:6,vars:4,consts:[[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"sensorDebounce","sensorDisabled","resizeSensor"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"],["scrollbarX",""],["scrollbarY",""]],template:function(I,Q){1&I&&(A.F$t(),A.TgZ(0,"div",0)(1,"div",1),A.NdJ("resizeSensor",function(){return Q.update()}),A.TgZ(2,"div",2)(3,"div"),A.Hsn(4),A.qZA()()(),A.YNc(5,xh,3,2,"ng-container",3),A.qZA()),2&I&&(A.Q6J("ngAttr",Q.state),A.xp6(1),A.Q6J("sensorDebounce",Q.sensorDebounce)("sensorDisabled",Q.sensorDisabled),A.xp6(4),A.Q6J("ngIf",!Q.disabled))},dependencies:[O.O5,ul,Xl,Rh,fl,gl,tc],styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none} .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius: 7px;--scrollbar-padding: 4px;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgba(0, 0, 0, .2);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-size: 5px;--scrollbar-hover-size: var(--scrollbar-size);--scrollbar-overscroll-behavior: initial;--scrollbar-transition-duration: .4s;--scrollbar-transition-delay: .8s;--scrollbar-thumb-transition: height ease-out .15s, width ease-out .15s;--scrollbar-track-transition: height ease-out .15s, width ease-out .15s;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size: calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size: var(--scrollbar-size);--horizontal-scrollbar-size: var(--scrollbar-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%]{--vertical-scrollbar-size: var(--scrollbar-hover-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size: var(--scrollbar-hover-size);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)} .ng-scroll-content{position:relative!important;display:inline-block;min-width:100%}.ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scroll-layer[_ngcontent-%COMP%], .ng-scroll-viewport{position:absolute;left:0;right:0;top:0;bottom:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none} .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none} .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)} .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none} .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default} .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0}),ae})(),ic=(()=>{class ae{static withConfig(I){return{ngModule:ae,providers:[{provide:hl,useValue:I}]}}}return ae.\u0275fac=function(I){return new(I||ae)},ae.\u0275mod=A.oAB({type:ae}),ae.\u0275inj=A.cJS({imports:[O.ez,xr.vT,sa.eL,Fr.ud,ko]}),ae})();var Sa=p(51214),rd=p(73228),ad=p(36769),od=p(22465);function sd(ae,U){if(1&ae){const I=A.EpF();A.TgZ(0,"div")(1,"perun-web-apps-notification",2),A.NdJ("closeNotification",function(){const dt=A.CHM(I).index,Ot=A.oxw();return A.KtG(Ot.removeNotification(dt))}),A.qZA()()}if(2&ae){const I=U.$implicit;A.Q6J("@flyInOut",void 0),A.xp6(1),A.Q6J("data",I)("newNotification",!0)}}const ld=function(ae){return{top:ae}};let ca=(()=>{class ae{constructor(I,Q){this.notificator=I,this.notificationStorageService=Q,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(Ze=>{this.processNotification(Ze)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(I){this.notifications.splice(I,1)}processNotification(I){this.notifications.push(I),this.notificationStorageService.storeNotification(I)}}return ae.\u0275fac=function(I){return new(I||ae)(A.Y36(b.V6),A.Y36(b.SZ))},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["perun-web-apps-notificator"]],hostBindings:function(I,Q){1&I&&A.NdJ("resize",function(dt){return Q.getScreenSize(dt)},!1,A.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(I,Q){1&I&&(A.TgZ(0,"div",0),A.YNc(1,sd,2,3,"div",1),A.qZA()),2&I&&(A.Q6J("ngStyle",A.VKq(2,ld,Q.getNotificatorTop())),A.xp6(1),A.Q6J("ngForOf",Q.notifications))},dependencies:[O.sg,O.PC,od.c],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;top:initial;bottom:0}}"],data:{animation:[ad.Pd]}}),ae})();var bo=p(46453);const cd={provide:Et.TP,useExisting:(0,A.Gpc)(()=>b.yC),multi:!0};function dd(ae){return new Qe(ae,"./assets/i18n/",".json")}function ud(ae){const U={basePath:ae.getProperty("api_url")};return new f.VK(U)}const hd=ae=>()=>ae.initialize();let pd=(()=>{class ae{constructor(I,Q){this.customIconService=I,this.translate=Q,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return ae.\u0275fac=function(I){return new(I||ae)(A.LFG(b.EB),A.LFG(w.sK))},ae.\u0275mod=A.oAB({type:ae,bootstrap:[Te.y]}),ae.\u0275inj=A.cJS({providers:[rr,{provide:A.ip1,useFactory:hd,multi:!0,deps:[rr]},{provide:f.VK,useFactory:ud,deps:[b.d6]},{provide:C.wN,useClass:Ut},b.EB,{provide:qt,useClass:b.sM},b.yC,cd,{provide:Sa.Hy,useFactory:()=>localStorage}],imports:[fo,e.b2,Et.JF,st.m,si,ie,ne.Ps,Mr,w.aw.forRoot({loader:{provide:w.Zw,useFactory:dd,deps:[Et.eN]}}),f.au,t.ez,l,ic.withConfig({autoWidthDisabled:!1,visibility:"hover"}),Sa.zr.forRoot()]}),ae})();A.B6R(Te.y,function(){return[O.O5,O.PC,C.lC,ne.Hw,rd.V,G.JX,G.TM,G.Rh,c.$,ca,bo.Y,Le,nc]},[]),(0,A.G48)(),e.q6().bootstrapModule(pd).catch(ae=>console.error(ae))},11243:($e,he,p)=>{"use strict";p.d(he,{r:()=>C});var e=p(36895),A=p(94650);let C=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=A.oAB({type:M}),M.\u0275inj=A.cJS({imports:[e.ez]}),M})()},6335:($e,he,p)=>{"use strict";p.d(he,{Ng:()=>M,Rc:()=>A,pI:()=>C});var e=p(94650);const A="GUI_CONFIG.PREF_PAGE_SIZE",C="GUI_CONFIG.PREF_PAGE_SIZE.";let M=(()=>{class f{getString(D){return localStorage.getItem(D)}getNumber(D){return parseInt(localStorage.getItem(D),10)}setNumber(D,T){localStorage.setItem(D,T.toString())}}return f.\u0275fac=function(D){return new(D||f)},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})()},10036:($e,he,p)=>{"use strict";p.d(he,{$I:()=>jt,$V:()=>c,$t:()=>Kt,AA:()=>B,Ad:()=>ve,Af:()=>F,Aj:()=>Ve,BV:()=>Be,Bf:()=>t,CE:()=>te,CP:()=>M,Cf:()=>Me,DR:()=>Ce,FF:()=>It,H2:()=>J,HC:()=>ce,HE:()=>Et,Hi:()=>q,Is:()=>Le,It:()=>v,Iz:()=>g,JO:()=>r,Jf:()=>pe,KE:()=>k,M8:()=>xe,NG:()=>ee,NL:()=>ge,O7:()=>V,O9:()=>nt,RS:()=>oe,S7:()=>S,Sb:()=>N,US:()=>l,VR:()=>w,W1:()=>le,Wv:()=>Oe,XH:()=>an,YF:()=>D,_7:()=>be,_c:()=>Te,aL:()=>Ne,bf:()=>W,bj:()=>bn,cL:()=>Ue,d7:()=>Ae,dB:()=>C,dI:()=>G,dK:()=>st,e5:()=>i,ee:()=>at,eq:()=>vt,g:()=>ie,gB:()=>X,gG:()=>d,gc:()=>T,iQ:()=>a,j1:()=>se,kO:()=>we,kZ:()=>Ke,nT:()=>b,oK:()=>u,qV:()=>E,qy:()=>_e,rF:()=>ye,rc:()=>ue,tY:()=>z,tw:()=>f,uC:()=>fe,uI:()=>on,uM:()=>H,v1:()=>R,vq:()=>Ee,xt:()=>ne,xx:()=>O,yW:()=>Qe,z6:()=>h,zW:()=>ze,zp:()=>s});var e=p(6335),A=p(94650);let C=(()=>{class Tt{constructor(Ge){this.guiConfigService=Ge,this.defaultTableSizes=new Map,this.defaultTableSizes.set(ye,25),this.defaultTableSizes.set(H,25)}getTablePageSize(Ge){const wt=this.guiConfigService.getNumber(e.pI+Ge);if(!isNaN(wt))return wt;const Ft=this.guiConfigService.getNumber(e.Rc);return isNaN(Ft)?this.defaultTableSizes.get(Ge)??10:Ft}setTablePageSize(Ge,wt){this.guiConfigService.setNumber(e.pI+Ge,wt)}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)(A.LFG(e.Ng))},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac,providedIn:"root"}),Tt})();const M="0",f="1",b="2",D="3",T="4",R="5",B="6",w="7",H="8",O="9",J="10",ne="11",G="12",se="13",Oe="14",_e="15",Be="16",E="17",z="18",F="19",V="20",X="21",q="22",pe="23",le="24",ye="25",Ve="26",ve="27",Ke="28",Ue="29",oe="30",ce="31",k="32",N="33",be="34",W="35",ue="36",Me="37",vt="42",ee="43",nt="44",Ae="45",Ee="46",ge="47",we="48",Ne="49",Ce="50",fe="51",r="52",u="53",g="54",v="55",h="56",a="57",i="58",t="59",s="62",l="63",d="64",c="65",S="66",ze="69",te="71",Le="72",xe="75",ie="76",Te="77",st="78",Qe="79",Et="80",at="82",It="83",jt="84",an="85",Kt="86",on="87",bn="88"},36769:($e,he,p)=>{"use strict";p.d(he,{Ji:()=>f,Pd:()=>C,BQ:()=>A,Ly:()=>M,GH:()=>T,Ls:()=>R,SG:()=>D,es:()=>b});var e=p(37340);const A=(0,e.X$)("openClose",[(0,e.SB)("open",(0,e.oB)({overflow:"hidden"})),(0,e.SB)("closed",(0,e.oB)({height:"0px",overflow:"hidden"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),C=(0,e.X$)("flyInOut",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".5s",(0,e.oB)({transform:"translateX(100%)"}))])]),M=(0,e.X$)("rollInOut",[(0,e.eR)(":enter",[(0,e.oB)({height:"0px"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".25s",(0,e.oB)({height:"0px"}))])]),f=(0,e.X$)("routeAnimations",[(0,e.eR)("* => *",[(0,e.oB)({position:"relative"}),(0,e.IO)(":enter",[(0,e.oB)({width:"100%",opacity:0})],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({position:"absolute",width:"100%",opacity:1}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,e.IO)(":enter",[(0,e.oB)({position:"absolute",width:"100%",opacity:0}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),b=(0,e.X$)("tagsOpenClose",[(0,e.SB)("open",(0,e.oB)({})),(0,e.SB)("closed",(0,e.oB)({width:"0px",height:"0px"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),D=(0,e.X$)("switchAnimations",[(0,e.eR)("true => false",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(-100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,e.eR)("false => true",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),T=(0,e.X$)("slideInOutLeft",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(-100%)"}))])]),R=(0,e.X$)("slideInOutRight",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)",position:"fixed"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(100%)"}))])])},37433:($e,he,p)=>{"use strict";p.d(he,{Mw:()=>Me.M,CZ:()=>l.C,Ld:()=>$.L,qG:()=>fe.qG,Sx:()=>Ne.S,y9:()=>r,Nj:()=>nt.N,ez:()=>W,N7:()=>o});var e=p(36895),A=p(56709),C=p(30671),M=p(89383),f=p(94364),b=p(96308),D=p(98739),T=p(51572),R=p(63189),B=p(97392),w=p(28255),H=p(4859),O=p(10266),J=p(59549),ne=p(24006),G=p(284),se=p(77331),Oe=p(73555),_e=p(3238),Be=p(19516),E=p(22465),z=p(64425),F=p(35423),V=p(99602),X=p(71948),q=p(84385),pe=p(33231),le=p(67376),ye=p(65412),Ve=p(9244),ve=p(60900),Ke=p(42673),Ue=p(21029),oe=p(94650),ce=p(98380),k=p(34447);let N=(()=>{class ht extends _e.LF{format(et,te){return"input"===te?`${et.getDate().toString()}.${(et.getMonth()+1).toString()}.${et.getFullYear()}`:et.toDateString()}}return ht.\u0275fac=function(){let ze;return function(te){return(ze||(ze=oe.n5z(ht)))(te||ht)}}(),ht.\u0275prov=oe.Yz7({token:ht,factory:ht.\u0275fac}),ht})();const be={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let W=(()=>{class ht{}return ht.\u0275fac=function(et){return new(et||ht)},ht.\u0275mod=oe.oAB({type:ht}),ht.\u0275inj=oe.cJS({providers:[{provide:_e._A,useClass:N},{provide:_e.sG,useValue:be}],imports:[e.ez,A.p9,C.p0,ne.u5,se.Hi,Oe._t,M.aw,f.Bz,b.JX,D.TU,T.Cq,R.r,B.Ps,w.Tx,H.ot,O.AV,J.lN,ne.UX,G.c,_e.si,Be.d4,z.Iq,F.dp,V.FA,X.Fk,_e.Ng,q.LD,pe.Co,le.Cl,ye.Is,Ve.Je,ve.C,Ke.g]}),ht})();oe.B6R(Ue.Us,[e.O5,ce.w,H.lW,le.xd,le.x0,le.N7,ye.uh,ye.H8,E.c],[M.X$,k.a]),p(53984);var Me=p(43532),nt=(p(38719),p(21963),p(28820),p(63167),p(62109),p(80275),p(53599)),Ne=(p(25788),p(58956),p(41619),p(61150),p(63312)),fe=(p(52314),p(52170));let r=(()=>{class ht{constructor(et){this.router=et}redirectToHome(){this.router.navigate(["/home"],{queryParamsHandling:"merge"})}}return ht.\u0275fac=function(et){return new(et||ht)(oe.Y36(f.F0))},ht.\u0275cmp=oe.Xpm({type:ht,selectors:[["perun-web-apps-not-authorized-page"]],decls:10,vars:9,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5"],[1,"page-title"],["mat-stroked-button","",1,"mt-2",3,"click"]],template:function(et,te){1&et&&(oe.TgZ(0,"div",0)(1,"h1",1),oe._uU(2),oe.ALo(3,"translate"),oe.qZA(),oe.TgZ(4,"div"),oe._uU(5),oe.ALo(6,"translate"),oe.qZA(),oe.TgZ(7,"button",2),oe.NdJ("click",function(){return te.redirectToHome()}),oe._uU(8),oe.ALo(9,"translate"),oe.qZA()()),2&et&&(oe.xp6(2),oe.Oqu(oe.lcZ(3,3,"GENERAL.NOT_AUTHORIZED_PAGE.TITLE")),oe.xp6(3),oe.Oqu(oe.lcZ(6,5,"GENERAL.NOT_AUTHORIZED_PAGE.DESC")),oe.xp6(3),oe.hij(" ",oe.lcZ(9,7,"GENERAL.NOT_AUTHORIZED_PAGE.REDIRECT")," "))},dependencies:[H.lW,M.X$]}),ht})();p(2541),p(74006);var v=p(81591),h=p(61744),a=p(95017),i=p(96338);function t(ht,ze){if(1&ht){const et=oe.EpF();oe.TgZ(0,"mat-list-item",4)(1,"p",5),oe.NdJ("click",function(){const Ie=oe.CHM(et).$implicit,De=oe.oxw();return oe.KtG(De.showWholeKey(Ie))}),oe._uU(2),oe.qZA(),oe.TgZ(3,"button",6),oe.ALo(4,"translate"),oe.ALo(5,"customTranslate"),oe.TgZ(6,"mat-icon"),oe._uU(7," file_copy "),oe.qZA()(),oe.TgZ(8,"button",7),oe.NdJ("click",function(){const Ie=oe.CHM(et).$implicit,De=oe.oxw();return oe.KtG(De.removeKey(Ie,!1))}),oe.ALo(9,"translate"),oe.ALo(10,"customTranslate"),oe.TgZ(11,"mat-icon"),oe._uU(12," delete "),oe.qZA()()()}if(2&ht){const et=ze.$implicit;oe.xp6(2),oe.Oqu(et),oe.xp6(1),oe.s9C("matTooltip",oe.lcZ(4,4,oe.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.COPY_TOOLTIP"))),oe.Q6J("cdkCopyToClipboard",et),oe.xp6(5),oe.s9C("matTooltip",oe.lcZ(9,8,oe.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_TOOLTIP")))}}function n(ht,ze){if(1&ht){const et=oe.EpF();oe.TgZ(0,"mat-list-item",4)(1,"label",8),oe.NdJ("click",function(){const Ie=oe.CHM(et).$implicit,De=oe.oxw();return oe.KtG(De.showWholeKey(Ie))}),oe._uU(2),oe.qZA(),oe.TgZ(3,"button",9)(4,"mat-icon"),oe._uU(5," file_copy "),oe.qZA()(),oe.TgZ(6,"button",10),oe.NdJ("click",function(){const Ie=oe.CHM(et).$implicit,De=oe.oxw();return oe.KtG(De.removeKey(Ie,!0))}),oe.TgZ(7,"mat-icon"),oe._uU(8," delete "),oe.qZA()()()}if(2&ht){const et=ze.$implicit;oe.xp6(2),oe.Oqu(et),oe.xp6(1),oe.Q6J("cdkCopyToClipboard",et)}}let o=(()=>{class ht{constructor(et,te,Le,Ie,De){this.store=et,this.attributesManagerService=te,this.dialog=Le,this.translateService=Ie,this.entityStorageService=De,this.adminKeys=[],this.userKeys=[],this.userUrn="urn:perun:user:attribute-def:def:sshPublicKey",this.adminUrn="urn:perun:user:attribute-def:def:sshPublicAdminKey",this.selection=new a.Ov(!1,[]),this.selectionAdmin=new a.Ov(!1,[]),Ie.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(xe=>this.removeDialogDescription=xe),Ie.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(xe=>this.removeDialogTitle=xe),Ie.get("ALERTS.NO_ALT_PASSWORDS").subscribe(xe=>this.alertText=xe),Ie.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(xe=>this.headerColumnText=xe)}ngOnInit(){this.userId=window.location.pathname.startsWith("/myProfile")?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(et=>this.removeDialogDescription=et),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(et=>this.removeDialogTitle=et),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(et=>this.alertText=et),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(et=>this.headerColumnText=et)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(et){const te=(0,Ve.kZ)();te.width="850px",te.data={attribute:et?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Ue.FJ,te).afterClosed().subscribe(Ie=>{Ie&&(et?this.getAdminSSH():this.getUserSSH())})}removeKey(et,te){const Le=(0,Ve.kZ)();Le.width="600px",Le.data={values:[et],attribute:te?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(Ue.eK,Le).afterClosed().subscribe(De=>{De&&(this.loading=!0,te?(this.getAdminSSH(),this.selectionAdmin.clear()):(this.getUserSSH(),this.selection.clear()))})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(et=>{this.userKeyAttribute=et,this.userKeys=et.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(et=>{this.adminKeyAttribute=et,this.adminKeys=et.value,this.loading=!1})}showWholeKey(et){const te=(0,Ve.kZ)();te.width="600px",te.data={value:et},this.dialog.open(Ue.iI,te)}}return ht.\u0275fac=function(et){return new(et||ht)(oe.Y36(v.d6),oe.Y36(h.H8),oe.Y36(ye.uw),oe.Y36(M.sK),oe.Y36(v.fb))},ht.\u0275cmp=oe.Xpm({type:ht,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:28,vars:32,consts:[[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["class","dark-hover-list-item w-auto","matRipple","",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item","w-auto"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ml-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ml-2","center-content",3,"matTooltip","click"],[1,"truncate","center-content",3,"click"],["mat-icon-button","","color","accent",1,"ml-auto","center-content",3,"cdkCopyToClipboard"],["mat-icon-button","","color","warn",1,"ml-2","center-content",3,"click"]],template:function(et,te){1&et&&(oe.TgZ(0,"h1",0),oe._uU(1),oe.ALo(2,"translate"),oe.ALo(3,"customTranslate"),oe.qZA(),oe.TgZ(4,"p"),oe._uU(5),oe.ALo(6,"translate"),oe.ALo(7,"customTranslate"),oe.qZA(),oe.TgZ(8,"button",1),oe.NdJ("click",function(){return te.addKey(!1)}),oe._uU(9),oe.ALo(10,"translate"),oe.ALo(11,"customTranslate"),oe.qZA(),oe.TgZ(12,"mat-list"),oe.YNc(13,t,13,12,"mat-list-item",2),oe.qZA(),oe.TgZ(14,"h1",3),oe._uU(15),oe.ALo(16,"translate"),oe.ALo(17,"customTranslate"),oe.qZA(),oe.TgZ(18,"p"),oe._uU(19),oe.ALo(20,"translate"),oe.ALo(21,"customTranslate"),oe.qZA(),oe.TgZ(22,"button",1),oe.NdJ("click",function(){return te.addKey(!0)}),oe._uU(23),oe.ALo(24,"translate"),oe.ALo(25,"customTranslate"),oe.qZA(),oe.TgZ(26,"mat-list"),oe.YNc(27,n,9,2,"mat-list-item",2),oe.qZA()),2&et&&(oe.xp6(1),oe.hij(" ",oe.lcZ(2,8,oe.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_TITLE")),"\n"),oe.xp6(4),oe.Oqu(oe.lcZ(6,12,oe.lcZ(7,14,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_DESCRIPTION"))),oe.xp6(4),oe.hij(" ",oe.lcZ(10,16,oe.lcZ(11,18,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),oe.xp6(4),oe.Q6J("ngForOf",te.userKeys),oe.xp6(2),oe.hij(" ",oe.lcZ(16,20,oe.lcZ(17,22,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.ADMIN_SSH_KEYS_TITLE")),"\n"),oe.xp6(4),oe.hij(" ",oe.lcZ(20,24,oe.lcZ(21,26,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION")),"\n"),oe.xp6(4),oe.hij(" ",oe.lcZ(24,28,oe.lcZ(25,30,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),oe.xp6(4),oe.Q6J("ngForOf",te.adminKeys))},dependencies:[e.sg,B.Hw,H.lW,O.gM,_e.wG,z.i3,i.i$,i.Tg,M.X$,k.a],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}label[_ngcontent-%COMP%]:hover, .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),ht})();p(46453);var l=p(29926),$=(p(91880),p(61880),p(12488),p(7434))},63312:($e,he,p)=>{"use strict";p.d(he,{S:()=>f,Y:()=>b});var e=p(94650),C=(p(61744),p(89383)),M=p(89593);const f={};let b=(()=>{class D{constructor(R){this.translate=R,this.item=null,this.itemSelected=new e.vpe,this.nameFunction=B=>B===f?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):B.shortname,this.secondaryFunction=B=>B===f?"":B.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+String(B.id),this.searchFunction=B=>B===f?"":B.shortname+String(B.id)}}return D.\u0275fac=function(R){return new(R||D)(e.Y36(C.sK))},D.\u0275cmp=e.Xpm({type:D,selectors:[["perun-web-apps-app-form-item-search-select"]],inputs:{items:"items",item:"item"},outputs:{itemSelected:"itemSelected"},decls:4,vars:15,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","entity","disableAutoSelect","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(R,B){1&R&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(H){return B.itemSelected.emit(H)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&R&&e.Q6J("entities",B.items)("searchFunction",B.searchFunction)("mainTextFunction",B.nameFunction)("secondaryTextFunction",B.secondaryFunction)("entity",B.item)("disableAutoSelect",!0)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[M.i,C.X$]}),D})()},68788:($e,he,p)=>{"use strict";p.d(he,{x:()=>b});var e=p(94650),A=p(59549),C=p(3238),M=p(84385),f=p(89383);let b=(()=>{class D{constructor(){this.stateChanged=new e.vpe,this.state="pending"}select(){switch(this.state){case"approved":this.stateChanged.emit(["APPROVED"]);break;case"rejected":this.stateChanged.emit(["REJECTED"]);break;case"wfmv":this.stateChanged.emit(["NEW"]);break;case"submitted":this.stateChanged.emit(["VERIFIED"]);break;case"pending":this.stateChanged.emit(["NEW","VERIFIED"]);break;case"all":this.stateChanged.emit(null)}}}return D.\u0275fac=function(R){return new(R||D)},D.\u0275cmp=e.Xpm({type:D,selectors:[["perun-web-apps-application-state-selector"]],outputs:{stateChanged:"stateChanged"},decls:23,vars:22,consts:[[1,"input-width-250","mr-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","pending"],["value","wfmv"],["value","submitted"],["value","approved"],["value","rejected"]],template:function(R,B){1&R&&(e.TgZ(0,"mat-form-field",0)(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-select",1),e.NdJ("selectionChange",function(){return B.select()})("valueChange",function(H){return B.state=H}),e.TgZ(5,"mat-option",2),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"mat-option",3),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"mat-option",4),e._uU(12),e.ALo(13,"translate"),e.qZA(),e.TgZ(14,"mat-option",5),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"mat-option",6),e._uU(18),e.ALo(19,"translate"),e.qZA(),e.TgZ(20,"mat-option",7),e._uU(21),e.ALo(22,"translate"),e.qZA()()()),2&R&&(e.xp6(2),e.Oqu(e.lcZ(3,8,"APPLICATIONS_LIST.STATE")),e.xp6(2),e.Q6J("value",B.state),e.xp6(2),e.Oqu(e.lcZ(7,10,"VO_DETAIL.APPLICATION.SELECTION_ALL")),e.xp6(3),e.Oqu(e.lcZ(10,12,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),e.xp6(3),e.Oqu(e.lcZ(13,14,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),e.xp6(3),e.Oqu(e.lcZ(16,16,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),e.xp6(3),e.Oqu(e.lcZ(19,18,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),e.xp6(3),e.Oqu(e.lcZ(22,20,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")))},dependencies:[A.KE,A.hX,C.ey,M.gD,f.X$]}),D})()},38719:($e,he,p)=>{"use strict";p.d(he,{u:()=>B});var e=p(94650),A=p(9244),C=p(36895),M=p(56709),f=p(24006),b=p(59549),D=p(64597);function T(w,H){if(1&w){const O=e.EpF();e.TgZ(0,"mat-checkbox",2),e.NdJ("change",function(){e.CHM(O);const ne=e.oxw();return e.KtG(ne._sendEventToParent())})("ngModelChange",function(ne){e.CHM(O);const G=e.oxw();return e.KtG(G.attribute.value=ne)}),e.ALo(1,"multiWordDataCy"),e.qZA()}if(2&w){const O=e.oxw();e.Q2q("data-cy","",e.lcZ(1,2,O.attribute.displayName),"-value"),e.Q6J("ngModel",O.attribute.value)}}function R(w,H){if(1&w&&(e.TgZ(0,"mat-label"),e._uU(1),e.qZA()),2&w){const O=e.oxw();e.xp6(1),e.Oqu(O.attribute.value)}}let B=(()=>{class w{constructor(){this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,A.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return w.\u0275fac=function(O){return new(O||w)},w.\u0275cmp=e.Xpm({type:w,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(O,J){1&O&&(e.TgZ(0,"div"),e.YNc(1,T,2,4,"mat-checkbox",0),e.YNc(2,R,2,1,"mat-label",1),e.qZA()),2&O&&(e.xp6(1),e.Q6J("ngIf",!J.readonly),e.xp6(1),e.Q6J("ngIf",J.readonly))},dependencies:[C.O5,M.oG,f.JJ,f.On,b.hX,D.R]}),w})()},21963:($e,he,p)=>{"use strict";p.d(he,{H:()=>z});var e=p(94650),A=p(29521),C=p(73555),M=p(21029),f=p(9244),b=p(65412),D=p(36895),T=p(77331),R=p(97392),B=p(4859),w=p(10266),H=p(59549),O=p(284);function J(F,V){if(1&F){const X=e.EpF();e.TgZ(0,"mat-icon",9),e.NdJ("mousedown",function(){e.CHM(X);const pe=e.oxw(2);return e.KtG(pe.dragDisabled=!1)}),e._uU(1,"drag_indicator"),e.qZA()}}function ne(F,V){if(1&F){const X=e.EpF();e.TgZ(0,"mat-icon",10),e.NdJ("click",function(){e.CHM(X);const pe=e.oxw().$implicit,le=e.oxw();return e.KtG(le.edit(pe))}),e._uU(1,"edit"),e.qZA()}}function G(F,V){if(1&F){const X=e.EpF();e.TgZ(0,"mat-icon",11),e.NdJ("click",function(){e.CHM(X);const pe=e.oxw().$implicit,le=e.oxw();return e.KtG(le.remove(pe))}),e._uU(1,"cancel"),e.qZA()}}function se(F,V){if(1&F){const X=e.EpF();e.TgZ(0,"mat-chip",4),e.NdJ("removed",function(){const le=e.CHM(X).$implicit,ye=e.oxw();return ye.remove(le),e.KtG(ye._sendEventToParent())}),e.YNc(1,J,2,0,"mat-icon",5),e.TgZ(2,"div",6),e.NdJ("click",function(){const le=e.CHM(X).$implicit,ye=e.oxw();return e.KtG(ye.readonly&&void 0!==ye.attribute.displayName&&ye.showValue(le,ye.attribute.displayName))}),e._uU(3),e.qZA(),e.YNc(4,ne,2,0,"mat-icon",7),e.YNc(5,G,2,0,"mat-icon",8),e.qZA()}if(2&F){const X=V.$implicit,q=e.oxw();e.Q6J("selectable",q.selectable)("cdkDragData",X)("removable",q.removable),e.xp6(1),e.Q6J("ngIf",q.removable),e.xp6(1),e.ekj("cursor-pointer",q.readonly&&void 0!==q.attribute.displayName),e.xp6(1),e.hij(" ",X," "),e.xp6(1),e.Q6J("ngIf",q.removable),e.xp6(1),e.Q6J("ngIf",q.removable)}}function Oe(F,V){1&F&&(e.TgZ(0,"mat-icon"),e._uU(1,"more_horiz"),e.qZA())}function _e(F,V){1&F&&(e.TgZ(0,"mat-icon"),e._uU(1,"keyboard_arrow_up"),e.qZA())}function Be(F,V){if(1&F){const X=e.EpF();e.TgZ(0,"div",12)(1,"span",13)(2,"button",14),e.NdJ("click",function(){e.CHM(X);const pe=e.oxw();return e.KtG(pe.onShowChange())}),e.YNc(3,Oe,2,0,"mat-icon",15),e.YNc(4,_e,2,0,"mat-icon",15),e.qZA()()()}if(2&F){const X=e.oxw();e.xp6(1),e.Q6J("matTooltip",X.showMore?"Show less":"Show more")("matTooltipPosition","above"),e.xp6(2),e.Q6J("ngIf",!X.showMore),e.xp6(1),e.Q6J("ngIf",X.showMore)}}function E(F,V){if(1&F){const X=e.EpF();e.TgZ(0,"mat-form-field",12)(1,"input",16),e.NdJ("matChipInputTokenEnd",function(pe){e.CHM(X);const le=e.oxw();return e.KtG(le.add(pe))})("change",function(){e.CHM(X);const pe=e.oxw();return e.KtG(pe._sendEventToParent())}),e.qZA()()}if(2&F){const X=e.oxw(),q=e.MAs(2);e.xp6(1),e.Q6J("matChipInputFor",q)("matChipInputSeparatorKeyCodes",X.separatorKeysCodes)("matChipInputAddOnBlur",X.addOnBlur)}}let z=(()=>{class F{constructor(X,q){this.dialog=X,this.changeDetector=q,this.readonly=!1,this.sendEventToParent=new e.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[A.K5,A.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!(0,f.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,f.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(X){const q=X.input,pe=X.value;(pe||"").trim()&&(this.attribute.value.push(pe.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),q&&(q.value=""),this.sendEventToParent.emit()}remove(X){const q=(0,f.kZ)();q.width="400px",q.data={name:X},this.dialog.open(M.Wr,q).afterClosed().subscribe(le=>{if(le){const ye=this.attribute.value.indexOf(X);this.attribute.value.splice(ye,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(X){this.dragDisabled=!0,(0,C.bA)(this.attribute.value,X.previousIndex,X.currentIndex),this.values=this.attribute.value}edit(X){const q=this.attribute.value.indexOf(X),pe=(0,f.kZ)();pe.width="600px",pe.data={attribute:this.attribute,index:q},this.dialog.open(M.r2,pe).afterClosed().subscribe(ye=>{ye&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(X,q){const pe=(0,f.kZ)();pe.width="350px",pe.data={value:X,title:q},this.dialog.open(M.mk,pe)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return F.\u0275fac=function(X){return new(X||F)(e.Y36(b.uw),e.Y36(e.sBO))},F.\u0275cmp=e.Xpm({type:F,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:6,vars:4,consts:[["cdkDropList","","cdkDropListOrientation","vertical",1,"mat-chip-list-stacked",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],["class","chip-word-break","cdkDrag","",3,"selectable","cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["cdkDrag","",1,"chip-word-break",3,"selectable","cdkDragData","removable","removed"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text","overflow-ellipsis",3,"click"],["class","edit-delete-icon ml-2",3,"click",4,"ngIf"],["class","edit-delete-icon",3,"click",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ml-2",3,"click"],[1,"edit-delete-icon",3,"click"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ml-auto",3,"click"],[4,"ngIf"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(X,q){1&X&&(e.TgZ(0,"div")(1,"mat-chip-list",0,1),e.NdJ("cdkDropListDropped",function(le){return q.drop(le),q._sendEventToParent()}),e.YNc(3,se,6,9,"mat-chip",2),e.YNc(4,Be,5,4,"div",3),e.YNc(5,E,2,3,"mat-form-field",3),e.qZA()()),2&X&&(e.xp6(1),e.Q6J("cdkDropListDisabled",q.dragDisabled),e.xp6(2),e.Q6J("ngForOf",q.values.slice(0,q.itemsShown)),e.xp6(1),e.Q6J("ngIf",q.values.length>q.defaultItemsShown),e.xp6(1),e.Q6J("ngIf",!q.readonly))},dependencies:[D.sg,D.O5,T.qn,T.HS,T.oH,C.Wj,C.Zt,R.Hw,B.lW,w.gM,H.KE,O.Nt],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),F})()},28820:($e,he,p)=>{"use strict";p.d(he,{$:()=>Oe});var e=p(21029),A=p(9244),C=p(94650),M=p(65412),f=p(36895),b=p(24006),D=p(97392),T=p(4859),R=p(10266),B=p(59549),w=p(284);function H(_e,Be){if(1&_e){const E=C.EpF();C.TgZ(0,"button",15),C.NdJ("click",function(){C.CHM(E);const F=C.oxw().index,V=C.oxw();return C.KtG(V.removeValue(F))}),C.TgZ(1,"mat-icon"),C._uU(2," indeterminate_check_box "),C.qZA()()}}function O(_e,Be){if(1&_e){const E=C.EpF();C.TgZ(0,"div",9)(1,"mat-form-field",10),C._UZ(2,"label",11),C.TgZ(3,"input",12),C.NdJ("click",function(){const V=C.CHM(E).index,X=C.oxw();return C.KtG(X.readonly&&X.attribute.displayName&&X.showValue(X.keys[V],X.attribute.displayName))})("ngModelChange",function(F){const X=C.CHM(E).index,q=C.oxw();return C.KtG(q.keys[X]=F)}),C.qZA()(),C.TgZ(4,"mat-form-field",10),C._UZ(5,"label",11),C.TgZ(6,"input",13),C.NdJ("click",function(){const V=C.CHM(E).$implicit,X=C.oxw();return C.KtG(X.readonly&&void 0!==X.attribute.displayName&&X.showValue(V,X.attribute.displayName))})("ngModelChange",function(F){const X=C.CHM(E).index,q=C.oxw();return C.KtG(q.values[X]=F)}),C.qZA()(),C.YNc(7,H,3,0,"button",14),C.qZA()}if(2&_e){const E=Be.index,z=C.oxw();C.xp6(1),C.s9C("appearance",z.readonly?"none":"standard"),C.xp6(1),C.hYB("for","",z.attribute.id,"-key-",E,""),C.xp6(1),C.ekj("cursor-pointer",z.readonly&&void 0!==z.attribute.displayName),C.hYB("id","",z.attribute.id,"-key-",E,""),C.MGl("name","key-",E,""),C.Q6J("ngModel",z.keys[E])("readonly",z.readonly),C.xp6(1),C.s9C("appearance",z.readonly?"none":"standard"),C.xp6(1),C.hYB("for","",z.attribute.id,"-value-",E,""),C.xp6(1),C.ekj("cursor-pointer",z.readonly&&void 0!==z.attribute.displayName),C.MGl("name","value-",E,""),C.hYB("id","",z.attribute.id,"-value-",E,""),C.Q6J("readonly",z.readonly)("ngModel",z.values[E]),C.xp6(1),C.Q6J("ngIf",!z.readonly)}}function J(_e,Be){1&_e&&(C.TgZ(0,"mat-icon"),C._uU(1,"more_horiz"),C.qZA())}function ne(_e,Be){1&_e&&(C.TgZ(0,"mat-icon"),C._uU(1,"keyboard_arrow_up"),C.qZA())}function G(_e,Be){if(1&_e){const E=C.EpF();C.TgZ(0,"button",16),C.NdJ("click",function(){C.CHM(E);const F=C.oxw();return C.KtG(F.onShowChange())}),C.YNc(1,J,2,0,"mat-icon",17),C.YNc(2,ne,2,0,"mat-icon",17),C.qZA()}if(2&_e){const E=C.oxw();C.xp6(1),C.Q6J("ngIf",!E.showMore),C.xp6(1),C.Q6J("ngIf",E.showMore)}}function se(_e,Be){if(1&_e){const E=C.EpF();C.TgZ(0,"button",18),C.NdJ("click",function(){C.CHM(E);const F=C.oxw();return C.KtG(F.addValue())}),C.TgZ(1,"mat-icon"),C._uU(2," add_box "),C.qZA()()}}let Oe=(()=>{class _e{constructor(E){this.dialog=E,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const E=new Map(Object.entries(this.attribute.value));for(const[z,F]of E.entries())this.keys.push(z),this.values.push(F)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,A.Hm)(this.attribute))}customTrackBy(E){return E}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(E){this.keys.splice(E,1),this.values.splice(E,1)}updateAttribute(){const E={};for(let z=0;zz.defaultItemsShown),C.xp6(1),C.Q6J("ngIf",!z.readonly))},dependencies:[f.sg,f.O5,b._Y,b.Fj,b.JJ,b.JL,b.Q7,b.On,b.F,D.Hw,T.lW,R.gM,B.KE,w.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),_e})()},63167:($e,he,p)=>{"use strict";p.d(he,{_:()=>R});var e=p(94650),A=p(9244),C=p(21029),M=p(65412),f=p(24006),b=p(59549),D=p(284),T=p(64597);let R=(()=>{class B{constructor(H){this.dialog=H,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,A.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(H,O){const J=(0,A.kZ)();J.width="350px",J.data={value:H,title:O},this.dialog.open(C.mk,J)}}return B.\u0275fac=function(H){return new(H||B)(e.Y36(M.uw))},B.\u0275cmp=e.Xpm({type:B,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(H,O){1&H&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return O.readonly&&void 0!==O.value&&O.showValue(O.value,O.attribute.displayName)})("ngModelChange",function(ne){return O.attribute.value=ne})("keydown",function(){return O._sendEventToParent()}),e.ALo(2,"multiWordDataCy"),e.qZA()()),2&H&&(e.s9C("appearance",O.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",O.readonly&&void 0!==O.value),e.Q2q("data-cy","",e.lcZ(2,6,O.attribute.displayName),"-value"),e.Q6J("readonly",O.readonly)("ngModel",O.attribute.value))},dependencies:[f.Fj,f.JJ,f.On,b.KE,D.Nt,T.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),B})()},43532:($e,he,p)=>{"use strict";p.d(he,{M:()=>Be});var e=p(94650),A=p(28820),C=p(36895),M=p(38719),f=p(21963),b=p(63167),D=p(9244),T=p(21029),R=p(65412),B=p(24006),w=p(59549),H=p(284);let O=(()=>{class E{constructor(F){this.dialog=F,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,D.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(F){const V=(0,D.kZ)();V.width="350px",V.data={value:F.value,title:F.displayName},this.dialog.open(T.mk,V)}}return E.\u0275fac=function(F){return new(F||E)(e.Y36(R.uw))},E.\u0275cmp=e.Xpm({type:E,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(F,V){1&F&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return V.readonly&&void 0!==V.attribute.value&&V.showValue(V.attribute)})("ngModelChange",function(q){return V.attribute.value=q})("keydown",function(){return V._sendEventToParent()}),e.qZA()()),2&F&&(e.s9C("appearance",V.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",V.readonly&&void 0!==V.attribute.value),e.Q6J("readonly",V.readonly)("ngModel",V.attribute.value))},dependencies:[B.Fj,B.wV,B.JJ,B.On,w.KE,H.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),E})();const J=["map"];function ne(E,z){if(1&E){const F=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-boolean",3),e.NdJ("sendEventToParent",function(){e.CHM(F);const X=e.oxw();return e.KtG(X._sendEventToParent2())}),e.qZA()}if(2&E){const F=e.oxw();e.Q6J("attribute",F.attribute)("readonly",F.readonly)}}function G(E,z){if(1&E){const F=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-list",3),e.NdJ("sendEventToParent",function(){e.CHM(F);const X=e.oxw();return e.KtG(X._sendEventToParent2())}),e.qZA()}if(2&E){const F=e.oxw();e.Q6J("attribute",F.attribute)("readonly",F.readonly)}}function se(E,z){if(1&E&&e._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&E){const F=e.oxw();e.Q6J("attribute",F.attribute)("readonly",F.readonly)}}function Oe(E,z){if(1&E){const F=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-string",3),e.NdJ("sendEventToParent",function(){e.CHM(F);const X=e.oxw();return e.KtG(X._sendEventToParent2())}),e.qZA()}if(2&E){const F=e.oxw();e.Q6J("attribute",F.attribute)("readonly",F.readonly)}}function _e(E,z){if(1&E){const F=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-integer",3),e.NdJ("sendEventToParent",function(){e.CHM(F);const X=e.oxw();return e.KtG(X._sendEventToParent2())}),e.qZA()}if(2&E){const F=e.oxw();e.Q6J("attribute",F.attribute)("readonly",F.readonly)}}let Be=(()=>{class E{constructor(){this.readonly=!1,this.sendEventToParent2=new e.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return E.\u0275fac=function(F){return new(F||E)},E.\u0275cmp=e.Xpm({type:E,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(F,V){if(1&F&&e.Gf(J,5),2&F){let X;e.iGM(X=e.CRH())&&(V.mapComponent=X.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(F,V){1&F&&(e.TgZ(0,"div"),e.YNc(1,ne,1,2,"perun-web-apps-attribute-value-boolean",0),e.YNc(2,G,1,2,"perun-web-apps-attribute-value-list",0),e.TgZ(3,"div",1),e.NdJ("click",function(){return V._sendEventToParent2()}),e.YNc(4,se,2,2,"perun-web-apps-attribute-value-map",2),e.qZA(),e.YNc(5,Oe,1,2,"perun-web-apps-attribute-value-string",0),e.YNc(6,_e,1,2,"perun-web-apps-attribute-value-integer",0),e.qZA()),2&F&&(e.xp6(1),e.Q6J("ngIf","java.lang.Boolean"===V.attribute.type),e.xp6(1),e.Q6J("ngIf","java.util.ArrayList"===V.attribute.type),e.xp6(2),e.Q6J("ngIf","java.util.LinkedHashMap"===V.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.String"===V.attribute.type||"java.lang.LargeString"===V.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.Integer"===V.attribute.type))},dependencies:[C.O5,M.u,f.H,A.$,b._,O]}),E})()},53984:($e,he,p)=>{"use strict";p.d(he,{p:()=>k});var e=p(96308),A=p(30671),C=p(95017),M=p(43532),f=p(9244),b=p(81591),D=p(94650),T=p(36895),R=p(56709),B=p(98380),w=p(10266),H=p(18750),O=p(89383);let J=(()=>{class N{transform(W){return"virt"===W.namespace.split(":")[4]}}return N.\u0275fac=function(W){return new(W||N)},N.\u0275pipe=D.Yjl({name:"isVirtualAttribute",type:N,pure:!0}),N})();var ne=p(64597),G=p(9185),se=p(8231),Oe=p(14849);function _e(N,be){if(1&N){const W=D.EpF();D.TgZ(0,"th",18)(1,"mat-checkbox",19),D.NdJ("change",function(Me){D.CHM(W);const ot=D.oxw(2);return D.KtG(Me?ot.masterToggle():null)}),D.ALo(2,"translate"),D.ALo(3,"masterCheckboxLabel"),D.qZA()()}if(2&N){const W=D.oxw().ngIf,ue=D.oxw();D.xp6(1),D.Q6J("checked",ue.selection.hasValue()&&W.all)("indeterminate",ue.selection.hasValue()&&!W.all)("aria-label",D.lcZ(2,3,D.lcZ(3,5,W.all)))}}const Be=function(N){return{name:N}};function E(N,be){if(1&N){const W=D.EpF();D.TgZ(0,"td",20)(1,"mat-checkbox",21),D.NdJ("click",function(Me){return Me.stopPropagation()})("change",function(Me){const je=D.CHM(W).$implicit,ut=D.oxw(2);return D.KtG(Me?ut.selection.toggle(je):null)}),D.ALo(2,"multiWordDataCy"),D.ALo(3,"isVirtualAttribute"),D.ALo(4,"translate"),D.ALo(5,"checkboxLabel"),D.qZA()()}if(2&N){const W=be.$implicit,ue=D.oxw(2);D.xp6(1),D.Q2q("data-cy","",D.lcZ(2,4,W.displayName),"-checkbox"),D.Q6J("checked",ue.selection.isSelected(W))("disabled",D.lcZ(3,6,W)||!W.writable)("aria-label",D.xi3(4,8,D.lcZ(5,11,ue.selection.isSelected(W)),D.VKq(13,Be,W.displayName)))}}function z(N,be){1&N&&(D.ynx(0,15),D.YNc(1,_e,4,7,"th",16),D.YNc(2,E,6,15,"td",17),D.BQk())}function F(N,be){1&N&&(D.TgZ(0,"th",22),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&N&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function V(N,be){if(1&N&&(D.TgZ(0,"td",23),D._uU(1),D.qZA()),2&N){const W=be.$implicit;D.xp6(1),D.Oqu(W.id)}}function X(N,be){1&N&&(D.TgZ(0,"th",22),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&N&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function q(N,be){if(1&N&&(D.TgZ(0,"td",24),D.ALo(1,"multiWordDataCy"),D.TgZ(2,"div",25),D._uU(3),D.qZA()()),2&N){const W=be.$implicit,ue=D.oxw();D.Q2q("data-cy","",D.lcZ(1,3,W.friendlyName),"-friendlyName"),D.xp6(2),D.s9C("matTooltip",ue.getAttributeFullName(W)),D.xp6(1),D.hij(" ",W.displayName," ")}}function pe(N,be){1&N&&(D.TgZ(0,"th",26),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&N&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function le(N,be){if(1&N){const W=D.EpF();D.TgZ(0,"td",24)(1,"perun-web-apps-attribute-value",27),D.NdJ("sendEventToParent2",function(){const ot=D.CHM(W).$implicit,je=D.oxw();return D.KtG(je.onValueChange(ot))}),D.qZA()()}if(2&N){const W=be.$implicit,ue=D.oxw();D.xp6(1),D.Q6J("attribute",W)("readonly",ue.readonly||!W.writable)}}function ye(N,be){1&N&&(D.TgZ(0,"th",22),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&N&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function Ve(N,be){if(1&N&&(D.TgZ(0,"td",24),D._uU(1),D.qZA()),2&N){const W=be.$implicit;D.xp6(1),D.Oqu(W.description)}}function ve(N,be){1&N&&D._UZ(0,"tr",28)}function Ke(N,be){if(1&N&&(D._UZ(0,"tr",29),D.ALo(1,"translate")),2&N){const W=be.$implicit,ue=D.oxw();D.s9C("matTooltip",D.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),D.Q6J("matTooltipPosition","before")("matTooltipDisabled",W.writable||ue.readonly)}}function Ue(N,be){1&N&&(D.TgZ(0,"perun-web-apps-alert",30),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&N&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function oe(N,be){if(1&N&&(D.TgZ(0,"perun-web-apps-alert",30),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&N){const W=D.oxw();D.xp6(1),D.hij(" ",D.lcZ(2,1,W.emptyListText),"\n")}}const ce=function(N){return{all:N}};let k=(()=>{class N{constructor(W,ue){this.authResolver=W,this.tableCheckbox=ue,this.attributes=[],this.selection=new C.Ov(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=f.f7}set matSort(W){this.sort=W,this.setDataSource()}static canBeSelected(W){return!(0,f.Hm)(W)&&W.writable}static getDataForColumn(W,ue){switch(ue){case"id":return W.id.toString();case"displayName":return W.displayName;case"description":return W.description;case"value":return JSON.stringify(W.value);case"urn":return W.namespace+":"+W.baseFriendlyName;default:return""}}canBeSelected(W){return!(0,f.Hm)(W)&&W.writable}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(W=>"id"!==W)),this.dataSource=new A.by((0,f.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(W){(0,f.O6)((0,f.Xn)(this.dataSource.filteredData,this.displayedColumns,N.getDataForColumn),W)}exportDisplayedData(W){const ue=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Me=ue+this.dataSource.paginator.pageSize;(0,f.O6)((0,f.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ue,Me),this.displayedColumns,N.getDataForColumn),W)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(W=>!this.hiddenColumns.includes(W)),this.dataSource&&(this.dataSource.filterPredicate=(W,ue)=>(0,f.Sd)(W,ue,this.displayedColumns.concat("urn"),N.getDataForColumn),this.dataSource.sortData=(W,ue)=>(0,f.pR)(W,ue,N.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,N.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,N.canBeSelected)}updateMapAttributes(){for(const W of this.items.toArray())"java.util.LinkedHashMap"===W.attribute.type&&W.updateMapAttribute()}onValueChange(W){N.canBeSelected(W)&&this.selection.select(W)}getAttributeFullName(W){return`${W.namespace}:${W.friendlyName}`}}return N.\u0275fac=function(W){return new(W||N)(D.Y36(b.x4),D.Y36(b.UA))},N.\u0275cmp=D.Xpm({type:N,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(W,ue){if(1&W&&(D.Gf(f.l9,7),D.Gf(e.YE,7),D.Gf(M.M,5)),2&W){let Me;D.iGM(Me=D.CRH())&&(ue.child=Me.first),D.iGM(Me=D.CRH())&&(ue.matSort=Me.first),D.iGM(Me=D.CRH())&&(ue.items=Me)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[D.TTD],decls:21,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","displayName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(W,ue){1&W&&(D.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),D.NdJ("exportDisplayedData",function(ot){return ue.exportDisplayedData(ot)})("exportAllData",function(ot){return ue.exportAllData(ot)}),D.TgZ(2,"table",2),D.YNc(3,z,3,0,"ng-container",3),D.ALo(4,"isAllSelected"),D.ynx(5,4),D.YNc(6,F,3,3,"th",5),D.YNc(7,V,2,1,"td",6),D.BQk(),D.ynx(8,7),D.YNc(9,X,3,3,"th",5),D.YNc(10,q,4,5,"td",8),D.BQk(),D.ynx(11,9),D.YNc(12,pe,3,3,"th",10),D.YNc(13,le,2,2,"td",8),D.BQk(),D.ynx(14,11),D.YNc(15,ye,3,3,"th",5),D.YNc(16,Ve,2,1,"td",8),D.BQk(),D.YNc(17,ve,1,0,"tr",12),D.YNc(18,Ke,2,5,"tr",13),D.qZA()()(),D.YNc(19,Ue,3,3,"perun-web-apps-alert",14),D.YNc(20,oe,3,3,"perun-web-apps-alert",14)),2&W&&(D.Q6J("hidden",0===ue.dataSource.filteredData.length),D.xp6(1),D.Q6J("tableId",ue.tableId)("dataLength",ue.dataSource.filteredData.length)("pageSizeOptions",ue.pageSizeOptions),D.xp6(1),D.Q6J("dataSource",ue.dataSource),D.xp6(1),D.Q6J("ngIf",D.VKq(14,ce,D.Dn7(4,10,ue.dataSource,ue.selection.selected.length,ue.canBeSelected))),D.xp6(14),D.Q6J("matHeaderRowDef",ue.displayedColumns),D.xp6(1),D.Q6J("matRowDefColumns",ue.displayedColumns),D.xp6(1),D.Q6J("ngIf",0===ue.dataSource.filteredData.length&&0!==ue.dataSource.data.length),D.xp6(1),D.Q6J("ngIf",0===ue.dataSource.data.length))},dependencies:[T.O5,R.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,e.YE,e.nU,B.w,w.gM,H.l,M.M,O.X$,J,ne.R,G.I,se.G,Oe.r],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),N})()},4235:($e,he,p)=>{"use strict";p.d(he,{W:()=>R});var e=p(81591),A=p(94650),C=p(36895),M=p(97392),f=p(4859),b=p(10266),D=p(89383);const T=function(B){return{color:B}};let R=(()=>{class B{constructor(H,O){this.location=H,this.storeService=O}ngOnInit(){this.backButtonColor=this.storeService.getProperty("theme").back_button_color}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return B.\u0275fac=function(H){return new(H||B)(A.Y36(C.Ye),A.Y36(e.d6))},B.\u0275cmp=A.Xpm({type:B,selectors:[["perun-web-apps-back-button"]],decls:4,vars:6,consts:[["mat-stroked-button","",1,"mb-2","mt-2",3,"ngStyle","matTooltip","click"],[1,"rotate"]],template:function(H,O){1&H&&(A.TgZ(0,"button",0),A.NdJ("click",function(){return O.goBack()}),A.ALo(1,"translate"),A.TgZ(2,"mat-icon",1),A._uU(3,"arrow_right_alt"),A.qZA()()),2&H&&(A.s9C("matTooltip",A.lcZ(1,2,"Back")),A.Q6J("ngStyle",A.VKq(4,T,O.backButtonColor)))},dependencies:[C.PC,M.Hw,f.lW,b.gM,D.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),B})()},91880:($e,he,p)=>{"use strict";p.d(he,{s:()=>Ae});var e=p(94650),A=p(9244),C=p(95017),M=p(81591),f=p(30671),b=p(96308),D=p(19516),T=p(36895),R=p(29926),B=p(56709),w=p(98380),H=p(97392),O=p(4859),J=p(18750),ne=p(89383),G=p(31359),se=p(9185),Oe=p(8231),_e=p(14849);let Be=(()=>{class Ee{constructor(we){this.authResolver=we}transform(we,Ne){return this.authResolver.isAuthorized(Ne,[we])}}return Ee.\u0275fac=function(we){return new(we||Ee)(e.Y36(M.x4,16))},Ee.\u0275pipe=e.Yjl({name:"isAuthorized",type:Ee,pure:!0}),Ee})();function E(Ee,ge){if(1&Ee){const we=e.EpF();e.TgZ(0,"mat-checkbox",24),e.NdJ("change",function(Ce){e.CHM(we);const fe=e.oxw(2).ngIf,r=e.oxw();return e.KtG(Ce?r.masterToggle(fe.all):null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&Ee){const we=e.oxw(2).ngIf,Ne=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,we.all)))("checked",Ne.selection.hasValue()&&we.all)("indeterminate",Ne.selection.hasValue()&&!we.all)}}function z(Ee,ge){if(1&Ee&&(e.TgZ(0,"th",22),e.YNc(1,E,3,7,"mat-checkbox",23),e.qZA()),2&Ee){const we=e.oxw(2);e.xp6(1),e.Q6J("ngIf",we.selection.isMultipleSelection())}}const F=function(Ee){return{name:Ee}};function V(Ee,ge){if(1&Ee){const we=e.EpF();e.TgZ(0,"td",25)(1,"mat-checkbox",26),e.NdJ("change",function(){const fe=e.CHM(we).$implicit,r=e.oxw(2);return e.KtG(r.toggle(fe))})("click",function(Ce){return Ce.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.qZA()()}if(2&Ee){const we=ge.$implicit,Ne=e.oxw(2);e.xp6(1),e.Q6J("aria-label",e.xi3(2,2,e.lcZ(3,5,Ne.selection.isSelected(we)),e.VKq(7,F,we.name)))("checked",Ne.selection.isSelected(we))}}function X(Ee,ge){1&Ee&&(e.ynx(0,19),e.YNc(1,z,2,1,"th",20),e.YNc(2,V,4,9,"td",21),e.BQk())}function q(Ee,ge){1&Ee&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.BAN_ID_HEADER")," "))}function pe(Ee,ge){if(1&Ee&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&Ee){const we=ge.$implicit;e.xp6(1),e.Oqu(we.ban.id)}}const le=function(Ee){return{target:Ee}};function ye(Ee,ge){if(1&Ee&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee){const we=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.TARGET_ID_HEADER",e.VKq(4,le,we.target))," ")}}function Ve(Ee,ge){if(1&Ee&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&Ee){const we=ge.$implicit;e.xp6(1),e.Oqu(we.ban.targetId)}}function ve(Ee,ge){if(1&Ee&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee){const we=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.TARGET_NAME_HEADER",e.VKq(4,le,we.target))," ")}}function Ke(Ee,ge){if(1&Ee&&(e.TgZ(0,"td",29),e._uU(1),e.qZA()),2&Ee){const we=ge.$implicit;let Ne;e.xp6(1),e.hij(" ",null!==(Ne=null!==(Ne=null==we||null==we.vo?null:we.vo.name)&&void 0!==Ne?Ne:null==we||null==we.facility?null:we.facility.name)&&void 0!==Ne?Ne:null==we||null==we.resource?null:we.resource.name," ")}}const Ue=function(Ee){return{subject:Ee}};function oe(Ee,ge){if(1&Ee&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee){const we=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.SUBJECT_ID_HEADER",e.VKq(4,Ue,we.subject))," ")}}function ce(Ee,ge){if(1&Ee&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&Ee){const we=ge.$implicit;e.xp6(1),e.Oqu(we.ban.subjectId)}}function k(Ee,ge){if(1&Ee&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee){const we=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.SUBJECT_NAME_HEADER",e.VKq(4,Ue,we.subject))," ")}}function N(Ee,ge){if(1&Ee&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&Ee){const we=ge.$implicit;let Ne;e.xp6(1),e.hij(" ",e.lcZ(2,1,null!==(Ne=we.user)&&void 0!==Ne?Ne:we.member.user)," ")}}function be(Ee,ge){1&Ee&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.DESCRIPTION_HEADER")," "))}function W(Ee,ge){if(1&Ee&&(e.TgZ(0,"td",29),e._uU(1),e.qZA()),2&Ee){const we=ge.$implicit;e.xp6(1),e.Oqu(we.ban.description)}}function ue(Ee,ge){1&Ee&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.EXPIRATION_HEADER")," "))}function Me(Ee,ge){if(1&Ee&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"date"),e.qZA()),2&Ee){const we=ge.$implicit,Ne=e.oxw();e.xp6(1),e.hij(" ",we.ban.validityTo===Ne.EXPIRE_NEVER?"never":e.xi3(2,1,we.ban.validityTo,"dd-MM-yyyy")," ")}}function ot(Ee,ge){1&Ee&&e._UZ(0,"th",30)}function je(Ee,ge){if(1&Ee){const we=e.EpF();e.TgZ(0,"button",32),e.NdJ("click",function(){e.CHM(we);const Ce=e.oxw().$implicit,fe=e.oxw();return e.KtG(fe.updateBan.emit(Ce))}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function ut(Ee,ge){if(1&Ee&&(e.TgZ(0,"td",29),e.YNc(1,je,3,0,"button",31),e.ALo(2,"isAuthorized"),e.qZA()),2&Ee){const we=ge.$implicit,Ne=e.oxw();let Ce;e.xp6(1),e.Q6J("ngIf",e.xi3(2,1,null!==(Ce=null!==(Ce=we.vo)&&void 0!==Ce?Ce:we.resource)&&void 0!==Ce?Ce:we.facility,Ne.updatePolicy))}}function tt(Ee,ge){1&Ee&&e._UZ(0,"tr",33)}function vt(Ee,ge){1&Ee&&e._UZ(0,"tr",34)}function ee(Ee,ge){1&Ee&&(e.TgZ(0,"perun-web-apps-alert",35),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.NO_BANS"),"\n"))}const nt=function(Ee){return{all:Ee}};let Ae=(()=>{class Ee{constructor(we,Ne,Ce){this.tableCheckbox=we,this.authResolver=Ne,this.userName=Ce,this.selection=new C.Ov(!1,[]),this.pageSizeOptions=A.f7,this.columns=["select","banId","targetId","targetName","subjectId","subjectName","description","expiration","edit"],this.updateBan=new e.vpe,this.EXPIRE_NEVER=R.R,this.getDataForColumn=(fe,r)=>{const u=this.isFacilityBan(fe)?fe.facility:this.isResourceBan(fe)?fe.resource:fe.vo,g=this.isFacilityBan(fe)?fe.user:fe.member,v=this.isFacilityBan(fe)?fe.user:fe.member.user;switch(r){case"banId":return String(fe.ban.id);case"targetId":return String(u.id);case"targetName":return u.name;case"subjectId":return String(g.id);case"subjectName":return this.userName.transform(v);case"description":return fe.ban.description;case"expiration":return Number(fe.ban.validityTo)===this.EXPIRE_NEVER?"never":(0,T.p6)(fe.ban.validityTo,"dd-MM-yyy","en");default:return""}}}set bans(we){this.dataSource||this.dataSourceInit(we),0!==we.length&&this.setHeaderLabels(we[0]),this.dataSource.data=we}set filter(we){this.dataSource.filter=we}set displayedColumns(we){this.authResolver.isPerunAdminOrObserver()||(we=we.filter(Ne=>!Ne.endsWith("Id"))),this.columns=we}exportAllData(we){(0,A.O6)((0,A.Xn)(this.dataSource.filteredData,this.columns,this.getDataForColumn),we)}exportDisplayedData(we){const Ne=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Ce=Ne+this.dataSource.paginator.pageSize;(0,A.O6)((0,A.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ne,Ce),this.columns,this.getDataForColumn),we)}toggle(we){this.selection.toggle(we)}masterToggle(we){this.tableCheckbox.masterToggle(we,this.selection,this.dataSource.filter,this.dataSource,this.dataSource.sort,this.dataSource.paginator.pageSize,this.dataSource.paginator.pageIndex,!1)}dataSourceInit(we){this.dataSource=new f.by(we),this.dataSource.sort=this.sort,this.dataSource.paginator=this.tableWrapper.paginator,this.dataSource.filterPredicate=(Ne,Ce)=>(0,A.Sd)(Ne,Ce,this.columns,this.getDataForColumn,!0),this.dataSource.sortData=(Ne,Ce)=>(0,A.pR)(Ne,Ce,this.getDataForColumn)}isFacilityBan(we){return"facility"in we}isResourceBan(we){return"resource"in we}setHeaderLabels(we){this.isFacilityBan(we)?(this.target="Facility",this.subject="User"):this.isResourceBan(we)?(this.target="Resource",this.subject="Member"):(this.target="Organization",this.subject="Member")}}return Ee.\u0275fac=function(we){return new(we||Ee)(e.Y36(M.UA),e.Y36(M.x4),e.Y36(D.dp))},Ee.\u0275cmp=e.Xpm({type:Ee,selectors:[["perun-web-apps-ban-on-entity-list"]],viewQuery:function(we,Ne){if(1&we&&(e.Gf(A.l9,7),e.Gf(b.YE,7)),2&we){let Ce;e.iGM(Ce=e.CRH())&&(Ne.tableWrapper=Ce.first),e.iGM(Ce=e.CRH())&&(Ne.sort=Ce.first)}},inputs:{selection:"selection",tableId:"tableId",updatePolicy:"updatePolicy",pageSizeOptions:"pageSizeOptions",columns:"columns",bans:"bans",filter:"filter",displayedColumns:"displayedColumns"},outputs:{updateBan:"updateBan"},features:[e._Bn([D.dp])],decls:32,vars:14,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","banId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","targetId"],["matColumnDef","targetName"],["mat-cell","",4,"matCellDef"],["matColumnDef","subjectId"],["matColumnDef","subjectName"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","edit"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(we,Ne){1&we&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(fe){return Ne.exportDisplayedData(fe)})("exportAllData",function(fe){return Ne.exportAllData(fe)}),e.TgZ(2,"table",2),e.YNc(3,X,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,q,3,3,"th",5),e.YNc(7,pe,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,ye,3,6,"th",5),e.YNc(10,Ve,2,1,"td",6),e.BQk(),e.ynx(11,8),e.YNc(12,ve,3,6,"th",5),e.YNc(13,Ke,2,1,"td",9),e.BQk(),e.ynx(14,10),e.YNc(15,oe,3,6,"th",5),e.YNc(16,ce,2,1,"td",6),e.BQk(),e.ynx(17,11),e.YNc(18,k,3,6,"th",5),e.YNc(19,N,3,3,"td",9),e.BQk(),e.ynx(20,12),e.YNc(21,be,3,3,"th",5),e.YNc(22,W,2,1,"td",9),e.BQk(),e.ynx(23,13),e.YNc(24,ue,3,3,"th",5),e.YNc(25,Me,3,4,"td",9),e.BQk(),e.ynx(26,14),e.YNc(27,ot,1,0,"th",15),e.YNc(28,ut,3,4,"td",9),e.BQk(),e.YNc(29,tt,1,0,"tr",16),e.YNc(30,vt,1,0,"tr",17),e.qZA()()(),e.YNc(31,ee,3,3,"perun-web-apps-alert",18)),2&we&&(e.Q6J("hidden",0===Ne.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",Ne.dataSource.filteredData.length)("tableId",Ne.tableId)("pageSizeOptions",Ne.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",Ne.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(12,nt,e.xi3(4,9,Ne.dataSource,Ne.selection.selected.length))),e.xp6(26),e.Q6J("matHeaderRowDef",Ne.columns),e.xp6(1),e.Q6J("matRowDefColumns",Ne.columns),e.xp6(1),e.Q6J("ngIf",0===Ne.dataSource.filteredData.length))},dependencies:[T.O5,B.oG,f.BZ,f.fO,f.as,f.w1,f.Dz,f.nj,f.ge,f.ev,f.XQ,f.Gk,b.YE,b.nU,w.w,H.Hw,O.lW,J.l,T.uU,ne.X$,G.d,se.I,Oe.G,_e.r,Be]}),Ee})()},29926:($e,he,p)=>{"use strict";p.d(he,{C:()=>B,R:()=>R});var e=p(24006),A=p(36895),C=p(94650),M=p(59549),f=p(284),b=p(99602),D=p(71948),T=p(89383);const R=new Date(324721404e5).valueOf();let B=(()=>{class w{constructor(){this.minDate=new Date,this.validityControl=new e.NI(null),this.descriptionControl=new e.NI("")}set validity(O){this.newValidity=O&&Number(new Date(O))!==R?this.parseDate(O):"never",this.validityControl.setValue("never"!==this.newValidity?this.newValidity:this.parseDate(new Date))}set description(O){this.descriptionControl.setValue(O)}getDescription(){return this.descriptionControl.value}getValidity(){return"never"!==this.newValidity&&this.validityControl.value?this.parseDate(this.validityControl.value):null}parseDate(O){return(0,A.p6)(O,"yyyy-MM-dd","en")}}return w.\u0275fac=function(O){return new(O||w)},w.\u0275cmp=C.Xpm({type:w,selectors:[["perun-web-apps-ban-specification"]],inputs:{validity:"validity",description:"description"},decls:18,vars:18,consts:[[1,"d-flex","flex-column",3,"ngModel","ngModelChange"],[3,"value"],["color","primary",1,"cursor-pointer","mt-2",3,"click"],["readonly","","matInput","",1,"disabl",3,"formControl","min","matDatepicker"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["value","never"],[1,"mt-3"],[1,"w-100","mt-2"],["matInput","","rows","5",3,"formControl","placeholder"]],template:function(O,J){if(1&O){const ne=C.EpF();C.TgZ(0,"div")(1,"mat-radio-group",0),C.NdJ("ngModelChange",function(se){return J.newValidity=se}),C.TgZ(2,"mat-radio-button",1)(3,"mat-form-field",2),C.NdJ("click",function(){C.CHM(ne);const se=C.MAs(10);return C.KtG(se.open())}),C.TgZ(4,"mat-label"),C._uU(5),C.ALo(6,"translate"),C.qZA(),C._UZ(7,"input",3)(8,"mat-datepicker-toggle",4)(9,"mat-datepicker",5,6),C.qZA()(),C.TgZ(11,"mat-radio-button",7),C._uU(12),C.ALo(13,"translate"),C.qZA()()(),C.TgZ(14,"div",8)(15,"mat-form-field",9),C._UZ(16,"textarea",10),C.ALo(17,"translate"),C.qZA()()}if(2&O){const ne=C.MAs(10);C.xp6(1),C.Q6J("ngModel",J.newValidity),C.xp6(1),C.s9C("value",J.validityControl.value),C.xp6(3),C.hij(" ",C.lcZ(6,12,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.VALIDITY")," "),C.xp6(2),C.Q6J("formControl",J.validityControl)("min",J.minDate)("matDatepicker",ne),C.xp6(1),C.Q6J("for",ne)("disabled",!1),C.xp6(1),C.Q6J("disabled",!1),C.xp6(3),C.hij(" ",C.lcZ(13,14,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.NEVER")," "),C.xp6(4),C.s9C("placeholder",C.lcZ(17,16,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.DESCRIPTION")),C.Q6J("formControl",J.descriptionControl)}},dependencies:[e.Fj,e.JJ,e.On,M.KE,M.hX,M.R9,e.oH,f.Nt,b.Mq,b.hl,b.nW,D.VQ,D.U0,T.X$]}),w})()},61880:($e,he,p)=>{"use strict";p.d(he,{z:()=>B});var e=p(65412),A=p(94650),C=p(36895),M=p(4859),f=p(12488),b=p(93057),D=p(89383);function T(w,H){if(1&w){const O=A.EpF();A.TgZ(0,"perun-web-apps-member-overview-membership",4),A.NdJ("statusChanged",function(ne){A.CHM(O);const G=A.oxw();return A.KtG(G.statusChanged=ne)}),A.qZA()}if(2&w){const O=A.oxw();A.Q6J("member",O.member)("voId",O.voId)("openedInDialog",!0)}}function R(w,H){if(1&w){const O=A.EpF();A.TgZ(0,"perun-web-apps-member-overview-groups",4),A.NdJ("statusChanged",function(ne){A.CHM(O);const G=A.oxw();return A.KtG(G.statusChanged=ne)}),A.qZA()}if(2&w){const O=A.oxw();A.Q6J("member",O.member)("voId",O.voId)("openedInDialog",!0)}}let B=(()=>{class w{constructor(O,J){this.dialogRef=O,this.data=J,this.statusChanged=!1}ngOnInit(){this.theme=this.data.groupId?"group-theme":"vo-theme",this.voId=this.data.voId,this.groupId=this.data.groupId,this.member=this.data.member}cancel(){this.statusChanged?this.dialogRef.close():this.dialogRef.close("closedWithoutChange")}}return w.\u0275fac=function(O){return new(O||w)(A.Y36(e.so),A.Y36(e.WI))},w.\u0275cmp=A.Xpm({type:w,selectors:[["perun-web-apps-change-member-status-or-expiration-dialog"]],decls:8,vars:8,consts:[["mat-dialog-content","",1,"dialog-container"],[3,"member","voId","openedInDialog","statusChanged",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"member","voId","openedInDialog","statusChanged"]],template:function(O,J){1&O&&(A.TgZ(0,"div")(1,"div",0),A.YNc(2,T,1,3,"perun-web-apps-member-overview-membership",1),A.YNc(3,R,1,3,"perun-web-apps-member-overview-groups",1),A.qZA(),A.TgZ(4,"div",2)(5,"button",3),A.NdJ("click",function(){return J.cancel()}),A._uU(6),A.ALo(7,"translate"),A.qZA()()()),2&O&&(A.Tol(J.theme),A.xp6(2),A.Q6J("ngIf",!J.groupId),A.xp6(1),A.Q6J("ngIf",J.groupId),A.xp6(3),A.hij(" ",A.lcZ(7,6,"DIALOGS.CHANGE_STATUS.CANCEL")," "))},dependencies:[C.O5,M.lW,e.xY,e.H8,f.b,b.z,D.X$]}),w})()},61150:($e,he,p)=>{"use strict";p.d(he,{r:()=>H});var e=p(94650),A=p(24006),C=p(81591),M=p(36895),f=p(56709),b=p(59549),D=p(284),T=p(82322),R=p(89383);function B(O,J){if(1&O){const ne=e.EpF();e.TgZ(0,"mat-checkbox",7),e.NdJ("change",function(){e.CHM(ne);const se=e.oxw();return e.KtG(se.emitAsSubGroup())})("ngModelChange",function(se){e.CHM(ne);const Oe=e.oxw();return e.KtG(Oe.asSubgroup=se)}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&O){const ne=e.oxw();e.Q6J("labelPosition","before")("ngModel",ne.asSubgroup),e.xp6(1),e.hij(" ",e.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function w(O,J){if(1&O){const ne=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(se){e.CHM(ne);const Oe=e.oxw();return e.KtG(Oe.emitParentGroup(se))}),e.qZA()}if(2&O){const ne=e.oxw();e.Q6J("disableAutoSelect",!0)("groups",ne.voGroups)}}let H=(()=>{class O{constructor(ne){this.store=ne,this.parentGroup=null,this.voGroups=[],this.nameChanged=new e.vpe,this.descriptionChanged=new e.vpe,this.parentGroupChanged=new e.vpe,this.asSubgroupChanged=new e.vpe,this.asSubgroup=!1,this.invalidNameMessage=this.store.getProperty("group_name_error_message"),this.secondaryRegex=this.store.getProperty("group_name_secondary_regex")}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new A.p4("",[A.kI.required,A.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),A.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new A.p4("",[A.kI.required,A.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(ne=>"members"!==ne.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(ne){this.selectedParent=ne,this.parentGroupChanged.emit(ne)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return O.\u0275fac=function(ne){return new(ne||O)(e.Y36(C.d6))},O.\u0275cmp=e.Xpm({type:O,selectors:[["perun-web-apps-create-group-form"]],inputs:{parentGroup:"parentGroup",voGroups:"voGroups"},outputs:{nameChanged:"nameChanged",descriptionChanged:"descriptionChanged",parentGroupChanged:"parentGroupChanged",asSubgroupChanged:"asSubgroupChanged"},decls:17,vars:16,consts:[[1,"dialog-container"],[3,"keyup"],[1,"w-100"],["matInput","","required","",3,"formControl","placeholder"],[1,"mt-4",3,"keyup"],[3,"labelPosition","ngModel","change","ngModelChange",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],[3,"labelPosition","ngModel","change","ngModelChange"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(ne,G){1&ne&&(e.TgZ(0,"div",0)(1,"mat-form-field",1),e.NdJ("keyup",function(){return G.emitName()}),e.TgZ(2,"label",2),e._UZ(3,"input",3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-error"),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"mat-form-field",4),e.NdJ("keyup",function(){return G.emitDescription()}),e.TgZ(9,"label",2),e._UZ(10,"textarea",3),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"mat-error"),e._uU(13),e.ALo(14,"translate"),e.qZA()(),e.YNc(15,B,3,5,"mat-checkbox",5),e.YNc(16,w,1,2,"perun-web-apps-group-search-select",6),e.qZA()),2&ne&&(e.xp6(3),e.s9C("placeholder",e.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),e.Q6J("formControl",G.nameControl),e.xp6(3),e.hij(" ",G.invalidNameMessage.length?G.invalidNameMessage:e.lcZ(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),e.xp6(4),e.s9C("placeholder",e.lcZ(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),e.Q6J("formControl",G.descriptionControl),e.xp6(3),e.hij(" ",e.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),e.xp6(2),e.Q6J("ngIf",G.isNotSubGroup),e.xp6(1),e.Q6J("ngIf",G.asSubgroup))},dependencies:[M.O5,f.oG,A.Fj,A.JJ,A.Q7,A.On,b.TO,b.KE,A.oH,D.Nt,T.h,R.X$]}),O})()},39798:($e,he,p)=>{"use strict";p.d(he,{S:()=>b});var e=p(94650),A=p(24006),C=p(59549),M=p(99602),f=p(89383);let b=(()=>{class D{ngOnInit(){this.startMinDate=new Date(2e3,0,1),this.endMaxDate=new Date}}return D.\u0275fac=function(R){return new(R||D)},D.\u0275cmp=e.Xpm({type:D,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},decls:10,vars:9,consts:[["appearance","standard",3,"click"],[3,"max","min","rangePicker"],["matStartDate","","readonly","",3,"formControl"],["matEndDate","","readonly","",3,"formControl"],["matSuffix","",3,"for"],["picker",""]],template:function(R,B){if(1&R){const w=e.EpF();e.TgZ(0,"mat-form-field",0),e.NdJ("click",function(){e.CHM(w);const O=e.MAs(9);return e.KtG(O.open())}),e.TgZ(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-date-range-input",1),e._UZ(5,"input",2)(6,"input",3),e.qZA(),e._UZ(7,"mat-datepicker-toggle",4)(8,"mat-date-range-picker",null,5),e.qZA()}if(2&R){const w=e.MAs(9);e.xp6(2),e.Oqu(e.lcZ(3,7,"VO_DETAIL.APPLICATION.DATE.LABEL")),e.xp6(2),e.Q6J("max",B.endMaxDate)("min",B.startMinDate)("rangePicker",w),e.xp6(1),e.Q6J("formControl",B.startDate),e.xp6(1),e.Q6J("formControl",B.endDate),e.xp6(1),e.Q6J("for",w)}},dependencies:[A.Fj,A.JJ,C.KE,C.hX,C.R9,A.oH,M.nW,M.wx,M.zY,M.By,M._g,f.X$]}),D})()},64901:($e,he,p)=>{"use strict";p.d(he,{P:()=>w});var e=p(94650),A=p(54968),C=p(54004),M=p(78372),f=p(71884),b=p(24006),D=p(59549),T=p(284),R=p(89383);const B=["input"];let w=(()=>{class H{constructor(){this.autoFocus=!1,this.control=new b.p4,this.filter=new e.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),(0,A.R)(this.input.nativeElement,"keyup").pipe((0,C.U)(J=>J.target.value),(0,M.b)(500),(0,f.x)()).subscribe(J=>{this.control.invalid||this.filter.emit(J)})}}return H.\u0275fac=function(J){return new(J||H)},H.\u0275cmp=e.Xpm({type:H,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(J,ne){if(1&J&&e.Gf(B,7),2&J){let G;e.iGM(G=e.CRH())&&(ne.input=G.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","","data-cy","filter-input",3,"placeholder","formControl"],["input",""]],template:function(J,ne){1&J&&(e.TgZ(0,"mat-form-field",0),e._UZ(1,"input",1,2),e.ALo(3,"translate"),e.TgZ(4,"mat-error"),e._uU(5),e.qZA()()),2&J&&(e.xp6(1),e.s9C("placeholder",e.lcZ(3,3,ne.placeholder)),e.Q6J("formControl",ne.control),e.xp6(4),e.hij(" ",ne.error," "))},dependencies:[b.Fj,b.JJ,D.TO,D.KE,b.oH,T.Nt,R.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),H})()},89593:($e,he,p)=>{"use strict";p.d(he,{i:()=>F});var e=p(94650),A=p(24006),C=p(4707),M=p(77579),f=p(82722),b=p(36895),D=p(59549),T=p(3238),R=p(84385),B=p(33231),w=p(67376),H=p(97392),O=p(4859),J=p(89383);let ne=(()=>{class V{constructor(){this.deselect=new e.vpe}onClickButton(q){this.deselect.emit(q)}}return V.\u0275fac=function(q){return new(q||V)},V.\u0275cmp=e.Xpm({type:V,selectors:[["perun-web-apps-deselect-button"]],outputs:{deselect:"deselect"},decls:5,vars:3,consts:[["mat-stroked-button","","data-cy","deselect-button",1,"mr-2","button-main",3,"click"]],template:function(q,pe){1&q&&(e.TgZ(0,"button",0),e.NdJ("click",function(ye){return pe.onClickButton(ye)}),e.TgZ(1,"mat-icon"),e._uU(2,"filter_list_off"),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.qZA()),2&q&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},dependencies:[H.Hw,O.lW,J.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),V})();const G=["scrollViewport"];function se(V,X){if(1&V&&(e.TgZ(0,"mat-select-trigger"),e._uU(1),e.qZA()),2&V){const q=e.oxw();e.xp6(1),e.hij(" ",q.multipleSelectedText()," ")}}function Oe(V,X){if(1&V&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&V){const q=e.oxw(2);e.Tol(q.colorByStatus(null==q.entitiesCtrl?null:q.entitiesCtrl.value)),e.xp6(1),e.hij(" ",q.statusTextFunction(null==q.entitiesCtrl?null:q.entitiesCtrl.value)?"("+q.statusTextFunction(null==q.entitiesCtrl?null:q.entitiesCtrl.value)+")":""," ")}}function _e(V,X){if(1&V){const q=e.EpF();e.TgZ(0,"mat-option",10),e.NdJ("onSelectionChange",function(le){e.CHM(q);const ye=e.oxw();return e.KtG(ye.onChange(le))}),e._uU(1),e.TgZ(2,"span",11),e._uU(3),e.qZA(),e.YNc(4,Oe,2,4,"span",12),e.qZA()}if(2&V){const q=e.oxw();e.Q6J("value",null==q.entitiesCtrl?null:q.entitiesCtrl.value),e.xp6(1),e.hij(" ",q.mainTextFunction(null==q.entitiesCtrl?null:q.entitiesCtrl.value)," "),e.xp6(2),e.Oqu(q.secondaryTextFunction(null==q.entitiesCtrl?null:q.entitiesCtrl.value)),e.xp6(1),e.Q6J("ngIf",q.displayStatus)}}function Be(V,X){if(1&V&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&V){const q=e.oxw().$implicit,pe=e.oxw();e.Tol(pe.colorByStatus(q)),e.xp6(1),e.hij(" ",pe.statusTextFunction(q)?"("+pe.statusTextFunction(q)+")":""," ")}}function E(V,X){if(1&V){const q=e.EpF();e.TgZ(0,"mat-option",13),e.NdJ("onSelectionChange",function(le){e.CHM(q);const ye=e.oxw();return e.KtG(ye.onChange(le))}),e._uU(1),e.TgZ(2,"span",11),e._uU(3),e.qZA(),e.YNc(4,Be,2,4,"span",12),e.qZA()}if(2&V){const q=X.$implicit,pe=e.oxw();e.Tol(pe.theme),e.Q6J("value",q),e.xp6(1),e.hij(" ",pe.mainTextFunction(q)," "),e.xp6(2),e.Oqu(pe.secondaryTextFunction(q)),e.xp6(1),e.Q6J("ngIf",pe.displayStatus)}}function z(V,X){if(1&V){const q=e.EpF();e.TgZ(0,"perun-web-apps-deselect-button",14),e.NdJ("deselect",function(){e.CHM(q);const le=e.oxw();return e.KtG(le.deselectEvent())}),e.qZA()}}let F=(()=>{class V{constructor(q){this.cd=q,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.displayStatus=!1,this.multiple=!1,this.theme="",this.required=!1,this.entitySelected=new e.vpe,this.selectClosed=new e.vpe,this.visibleDeselectButton=!1,this.selectedEntities=[],this.entitiesCtrl=new A.p4,this.entityFilterCtrl=new A.p4,this.filteredEntities=new C.t(1),this._onDestroy=new M.x,this.entitiesLen=0,this.mainTextFunction=pe=>JSON.stringify(pe),this.secondaryTextFunction=pe=>"#".concat(String(pe.id),pe.description?" ".concat(pe.description):""),this.statusTextFunction=pe=>pe.status}ngOnInit(){!this.disableAutoSelect&&null===this.entity&&this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(q=>this.entitiesLen=q.length),this.entityFilterCtrl.valueChanges.pipe((0,f.R)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}colorByStatus(q){switch(q.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}ngOnChanges(q){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),q.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}normalize(q){return q.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}onChange(q){if(q.isUserInput){const pe=q.source.value;if(this.multiple){if(this.selectedEntities.includes(pe)){const le=this.selectedEntities.indexOf(pe);this.selectedEntities.splice(le,1)}else this.selectedEntities.push(pe);this.entitiesCtrl.setValue(this.selectedEntities),this.entitySelected.emit(this.selectedEntities)}else this.entitySelected.emit(pe)}this.visibleDeselectButton=0!==this.selectedEntities.length}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}closeChange(){this.selectClosed.emit(!0)}getViewportHeight(){let q=48*this.entitiesLen;return q>192&&(q=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),q}multipleSelectedText(){const q=this.entitiesCtrl.value;if(q&&0!==q.length)return q.length===this.entities.length?"ALL":q.length>1?this.mainTextFunction(q[0])+` + ${q.length-1} other(s)`:this.mainTextFunction(q[0])+" "+this.secondaryTextFunction(q[0])}filterEntites(){if(!this.entities)return;let q=this.entityFilterCtrl.value;if(!q)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();q=this.normalize(q),this.filteredEntities.next(this.entities.filter(pe=>this.normalize(this.searchFunction(pe)).includes(q))),this.cd.detectChanges()}deselectEvent(){this.visibleDeselectButton=!1,this.selectedEntities=[],this.entitiesCtrl.setValue([]),this.entitySelected.emit([]),this.selectClosed.emit(!0)}}return V.\u0275fac=function(q){return new(q||V)(e.Y36(e.sBO))},V.\u0275cmp=e.Xpm({type:V,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(q,pe){if(1&q&&e.Gf(G,5),2&q){let le;e.iGM(le=e.CRH())&&(pe.scrollViewport=le.first)}},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",displayStatus:"displayStatus",multiple:"multiple",theme:"theme",required:"required",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected",selectClosed:"selectClosed"},features:[e.TTD],decls:12,vars:18,consts:[[1,"d-flex","flex-row","align-items-center","gap-4"],[1,"w-100","pb-0"],["data-cy","search-select-input",3,"required","placeholder","formControl","multiple","openedChange","closed"],[4,"ngIf"],["data-cy","find-input",3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value","onSelectionChange",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"class","value","onSelectionChange",4,"cdkVirtualFor","cdkVirtualForOf"],["class","ml-2",3,"deselect",4,"ngIf"],[1,"selected-options-bottom",3,"value","onSelectionChange"],[1,"text-muted"],[3,"class",4,"ngIf"],[3,"value","onSelectionChange"],[1,"ml-2",3,"deselect"]],template:function(q,pe){1&q&&(e.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-select",2),e.NdJ("openedChange",function(){return pe.openChange()})("closed",function(){return pe.closeChange()}),e.YNc(3,se,2,1,"mat-select-trigger",3),e.TgZ(4,"mat-option"),e._UZ(5,"ngx-mat-select-search",4),e.qZA(),e.YNc(6,_e,5,4,"mat-option",5),e.TgZ(7,"cdk-virtual-scroll-viewport",6,7),e.YNc(9,E,5,7,"mat-option",8),e.ALo(10,"async"),e.qZA()()(),e.YNc(11,z,1,0,"perun-web-apps-deselect-button",9),e.qZA()),2&q&&(e.xp6(2),e.s9C("placeholder",pe.selectPlaceholder),e.Q6J("required",pe.required)("formControl",pe.entitiesCtrl)("multiple",pe.multiple),e.xp6(1),e.Q6J("ngIf",pe.multiple),e.xp6(2),e.s9C("placeholderLabel",pe.findPlaceholder),e.s9C("noEntriesFoundLabel",pe.noEntriesText),e.Q6J("clearSearchInput",!1)("formControl",pe.entityFilterCtrl),e.xp6(1),e.Q6J("ngIf",null==pe.entitiesCtrl?null:pe.entitiesCtrl.value),e.xp6(1),e.Udp("height",pe.getViewportHeight(),"px"),e.Q6J("minBufferPx",240)("maxBufferPx",480),e.xp6(2),e.Q6J("cdkVirtualForOf",e.lcZ(10,16,pe.filteredEntities)),e.xp6(2),e.Q6J("ngIf",pe.visibleDeselectButton))},dependencies:[b.O5,A.JJ,A.Q7,D.KE,A.oH,T.ey,R.gD,R.$L,B.nu,w.xd,w.x0,w.N7,ne,b.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}.green[_ngcontent-%COMP%]{color:green}.grey[_ngcontent-%COMP%]{color:gray}.red[_ngcontent-%COMP%]{color:red}.black[_ngcontent-%COMP%]{color:#000}"]}),V})()},87488:($e,he,p)=>{"use strict";p.d(he,{c:()=>R});var e=p(94650),A=p(24006),C=p(36895),M=p(59549),f=p(284),b=p(99602),D=p(71948),T=p(89383);let R=(()=>{class B{constructor(){this.expiration="never",this.datePicker=new e.vpe,this.expirationControl=new A.p4(null)}ngOnInit(){const H=new Date;this.minDate=new Date(H.getFullYear(),H.getMonth(),H.getDate()),this.expirationControl.setValue((0,C.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}setExpiration(){this.expiration=(0,C.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,C.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return B.\u0275fac=function(H){return new(H||B)},B.\u0275cmp=e.Xpm({type:B,selectors:[["perun-web-apps-expiration-select"]],inputs:{expiration:"expiration"},outputs:{datePicker:"datePicker"},decls:13,vars:14,consts:[[1,"d-flex","flex-column",3,"ngModel","ngModelChange","change"],["value","never"],[3,"value"],["color","primary",1,"cursor-pointer","mr-3",3,"click"],["readonly","","matInput","",1,"disable",3,"min","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""]],template:function(H,O){if(1&H){const J=e.EpF();e.TgZ(0,"mat-radio-group",0),e.NdJ("ngModelChange",function(G){return O.expiration=G})("change",function(){return O.emitDate()}),e.TgZ(1,"mat-radio-button",1),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-radio-button",2)(5,"mat-form-field",3),e.NdJ("click",function(){e.CHM(J);const G=e.MAs(12);return e.KtG(G.open())}),e.TgZ(6,"mat-label"),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"input",4),e.NdJ("dateChange",function(){return O.setExpiration()}),e.qZA(),e._UZ(10,"mat-datepicker-toggle",5)(11,"mat-datepicker",6,7),e.qZA()()()}if(2&H){const J=e.MAs(12);e.Q6J("ngModel",O.expiration),e.xp6(2),e.hij(" ",e.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),e.xp6(2),e.s9C("value",O.expirationControl.value),e.xp6(3),e.Oqu(e.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),e.xp6(2),e.Q6J("min",O.minDate)("formControl",O.expirationControl)("matDatepicker",J),e.xp6(1),e.Q6J("for",J)("disabled",!1),e.xp6(1),e.Q6J("disabled",!1)}},dependencies:[A.Fj,A.JJ,A.On,M.KE,M.hX,M.R9,A.oH,f.Nt,b.Mq,b.hl,b.nW,D.VQ,D.U0,T.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),B})()},74010:($e,he,p)=>{"use strict";p.d(he,{X:()=>Ee});var e=p(96308),A=p(30671),C=p(9244),M=p(81591),f=p(94650),b=p(36895),D=p(56709),T=p(94364),R=p(98380),B=p(18750),w=p(34198),H=p(55660),O=p(10441),J=p(24006),ne=p(97392),G=p(4859),se=p(10266);function Oe(ge,we){if(1&ge&&(f.TgZ(0,"div",6),f._uU(1),f.qZA()),2&ge){const Ne=we.$implicit,Ce=f.oxw();f.xp6(1),f.hij(" ",Ne[Ce.paramName]," ")}}function _e(ge,we){1&ge&&(f.TgZ(0,"mat-icon"),f._uU(1,"more_horiz"),f.qZA())}function Be(ge,we){1&ge&&(f.TgZ(0,"mat-icon"),f._uU(1,"keyboard_arrow_up"),f.qZA())}function E(ge,we){if(1&ge){const Ne=f.EpF();f.TgZ(0,"button",7),f.NdJ("click",function(){f.CHM(Ne);const fe=f.oxw();return f.KtG(fe.onShowChange())}),f.YNc(1,_e,2,0,"mat-icon",8),f.YNc(2,Be,2,0,"mat-icon",8),f.qZA()}if(2&ge){const Ne=f.oxw();f.xp6(1),f.Q6J("ngIf",!Ne.showMore),f.xp6(1),f.Q6J("ngIf",Ne.showMore)}}let z=(()=>{class ge{constructor(){this.objects=[],this.filterValue="",this.paramName="",this.showMore=!1,this.defaultItemsShown=3}ngOnInit(){this.itemsShown=this.defaultItemsShown}ngOnChanges(){this.itemsShown=this.defaultItemsShown,this.showMore=!1}onShowChange(){this.showMore=!this.showMore,this.itemsShown=this.showMore?this.objects.length:this.defaultItemsShown}}return ge.\u0275fac=function(Ne){return new(Ne||ge)},ge.\u0275cmp=f.Xpm({type:ge,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[f.TTD],decls:7,vars:4,consts:[[1,"d-flex","w-100"],[1,"w-100"],[1,"mr-5"],["class","d-flex mb-1",4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"d-flex","mb-1"],["mat-icon-button","",3,"click"],[4,"ngIf"]],template:function(Ne,Ce){1&Ne&&(f.TgZ(0,"form",0)(1,"div",1)(2,"div",2),f.YNc(3,Oe,2,1,"div",3),f.qZA(),f.TgZ(4,"div")(5,"span",4),f.YNc(6,E,3,2,"button",5),f.qZA()()()()),2&Ne&&(f.xp6(3),f.Q6J("ngForOf",Ce.objects.slice(0,Ce.itemsShown)),f.xp6(2),f.Q6J("matTooltip",Ce.showMore?"Show less":"Show more")("matTooltipPosition","above"),f.xp6(1),f.Q6J("ngIf",Ce.objects.length>Ce.defaultItemsShown))},dependencies:[b.sg,b.O5,J._Y,J.JL,J.F,ne.Hw,G.lW,se.gM]}),ge})();var F=p(89383),V=p(53561);let X=(()=>{class ge{transform(Ne,Ce,fe){return Ne.filter(r=>r[fe].includes(Ce)).filter((r,u,g)=>g.findIndex(v=>v[fe]===r[fe])===u)}}return ge.\u0275fac=function(Ne){return new(Ne||ge)},ge.\u0275pipe=f.Yjl({name:"filterUniqueObjects",type:ge,pure:!0}),ge})();var q=p(8231);function pe(ge,we){1&ge&&f._UZ(0,"th",20)}const le=function(ge){return{name:ge}};function ye(ge,we){if(1&ge){const Ne=f.EpF();f.TgZ(0,"td",21)(1,"mat-checkbox",22),f.NdJ("change",function(fe){const u=f.CHM(Ne).$implicit,g=f.oxw();return f.KtG(fe?g.selection.toggle(u):null)})("click",function(fe){return fe.stopPropagation()}),f.ALo(2,"translate"),f.ALo(3,"checkboxLabel"),f.qZA()()}if(2&ge){const Ne=we.$implicit,Ce=f.oxw();f.xp6(1),f.Q2q("data-cy","",Ne.facility.name,"-checkbox"),f.Q6J("aria-label",f.xi3(2,3,f.lcZ(3,6,Ce.selection.isSelected(Ne)),f.VKq(8,le,Ne.facility.name)))("checked",Ce.selection.isSelected(Ne))}}function Ve(ge,we){1&ge&&(f.TgZ(0,"th",23),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ge&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")," "))}function ve(ge,we){if(1&ge&&(f.TgZ(0,"td",24),f._uU(1),f.qZA()),2&ge){const Ne=we.$implicit;f.xp6(1),f.hij(" ",Ne.facility.id," ")}}function Ke(ge,we){1&ge&&f._UZ(0,"th",25)}function Ue(ge,we){if(1&ge&&(f.TgZ(0,"td",26),f._UZ(1,"perun-web-apps-recently-viewed-icon",27),f.qZA()),2&ge){const Ne=we.$implicit,Ce=f.oxw();f.xp6(1),f.Q6J("id",Ne.facility.id)("recentIds",Ce.recentIds)}}function oe(ge,we){1&ge&&(f.TgZ(0,"th",23),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ge&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")," "))}function ce(ge,we){if(1&ge&&(f.TgZ(0,"td",26),f._uU(1),f.qZA()),2&ge){const Ne=we.$implicit;f.uIk("data-cy",Ne.facility.name),f.xp6(1),f.hij(" ",Ne.facility.name," ")}}function k(ge,we){1&ge&&(f.TgZ(0,"th",25),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ge&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")," "))}function N(ge,we){if(1&ge&&(f.TgZ(0,"td",26),f._uU(1),f.qZA()),2&ge){const Ne=we.$implicit;f.xp6(1),f.Oqu(Ne.facility.description)}}function be(ge,we){1&ge&&(f.TgZ(0,"th",25),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ge&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")," "))}function W(ge,we){if(1&ge&&(f.TgZ(0,"td",26),f._uU(1),f.ALo(2,"technicalOwners"),f.qZA()),2&ge){const Ne=we.$implicit;f.xp6(1),f.Oqu(f.lcZ(2,1,Ne.owners))}}function ue(ge,we){1&ge&&(f.TgZ(0,"th",25),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ge&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")," "))}function Me(ge,we){if(1&ge){const Ne=f.EpF();f.TgZ(0,"td",26)(1,"perun-web-apps-object-list-values",28),f.NdJ("mouseenter",function(){f.CHM(Ne);const fe=f.oxw();return f.KtG(fe.localDisableRouting=!0)})("mouseleave",function(){f.CHM(Ne);const fe=f.oxw();return f.KtG(fe.localDisableRouting=!1)}),f.ALo(2,"filterUniqueObjects"),f.qZA()()}if(2&ge){const Ne=we.$implicit,Ce=f.oxw();f.xp6(1),f.Q6J("objects",f.Dn7(2,2,Ne.destinations,Ce.filterValue,"destination"))("paramName","destination")}}function ot(ge,we){1&ge&&(f.TgZ(0,"th",25),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ge&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")," "))}function je(ge,we){if(1&ge){const Ne=f.EpF();f.TgZ(0,"td",26)(1,"perun-web-apps-object-list-values",28),f.NdJ("mouseenter",function(){f.CHM(Ne);const fe=f.oxw();return f.KtG(fe.localDisableRouting=!0)})("mouseleave",function(){f.CHM(Ne);const fe=f.oxw();return f.KtG(fe.localDisableRouting=!1)}),f.ALo(2,"filterUniqueObjects"),f.qZA()()}if(2&ge){const Ne=we.$implicit,Ce=f.oxw();f.xp6(1),f.Q6J("objects",f.Dn7(2,2,Ne.hosts,Ce.filterValue,"hostname"))("paramName","hostname")}}function ut(ge,we){1&ge&&f._UZ(0,"tr",29)}const tt=function(ge){return["/facilities",ge]},vt=function(){return[]};function ee(ge,we){if(1&ge&&f._UZ(0,"tr",30),2&ge){const Ne=we.$implicit,Ce=f.oxw();f.ekj("cursor-pointer",!Ce.disableRouting)("disable-outline",Ce.disableRouting),f.Q6J("perunWebAppsMiddleClickRouterLink",f.VKq(6,tt,Ne.facility.id))("routerLink",Ce.disableRouting||Ce.localDisableRouting?f.DdM(8,vt):f.VKq(9,tt,Ne.facility.id))}}function nt(ge,we){1&ge&&(f.TgZ(0,"perun-web-apps-alert",31),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ge&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ae(ge,we){1&ge&&(f.TgZ(0,"perun-web-apps-alert",31),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ge&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let Ee=(()=>{class ge{constructor(Ne){this.authResolver=Ne,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=C.f7,this.disableRouting=!1,this.getDataForColumnFun=(Ce,fe)=>ge.getDataForColumn(Ce,fe,this.recentIds)}set matSort(Ne){this.sort=Ne}static getDataForColumn(Ne,Ce,fe){switch(Ce){case"id":return Ne.facility.id.toString();case"name":return Ne.facility.name;case"description":return Ne.facility.description;case"technicalOwners":return(0,C.te)(Ne.owners);case"recent":return fe&&fe.includes(Ne.facility.id)?"#".repeat(fe.indexOf(Ne.facility.id)):Ne.name;case"destinations":return Ne.destinations.map(r=>r.destination).join(" ; ");case"hosts":return Ne.hosts.map(r=>r.hostname).join(" ; ");default:return Ne[Ce]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Ne=>"id"!==Ne)),this.setDataSource()}exportAllData(Ne){(0,C.O6)((0,C.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),Ne)}exportDisplayedData(Ne){const Ce=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,fe=Ce+this.dataSource.paginator.pageSize;(0,C.O6)((0,C.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ce,fe),this.displayedColumns,this.getDataForColumnFun),Ne)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Ne,Ce)=>(0,C.Sd)(Ne,Ce,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(Ne,Ce)=>(0,C.pR)(Ne,Ce,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.facilities}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(Ne=>this.selection.select(Ne))}}return ge.\u0275fac=function(Ne){return new(Ne||ge)(f.Y36(M.x4))},ge.\u0275cmp=f.Xpm({type:ge,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(Ne,Ce){if(1&Ne&&(f.Gf(C.l9,7),f.Gf(e.YE,7)),2&Ne){let fe;f.iGM(fe=f.CRH())&&(Ce.child=fe.first),f.iGM(fe=f.CRH())&&(Ce.matSort=fe.first)}},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions",disableRouting:"disableRouting"},features:[f.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","technicalOwners"],["matColumnDef","destinations"],["matColumnDef","hosts"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"id","recentIds"],[3,"objects","paramName","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(Ne,Ce){1&Ne&&(f.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),f.NdJ("exportDisplayedData",function(r){return Ce.exportDisplayedData(r)})("exportAllData",function(r){return Ce.exportAllData(r)}),f.TgZ(2,"table",2),f.ynx(3,3),f.YNc(4,pe,1,0,"th",4),f.YNc(5,ye,4,10,"td",5),f.BQk(),f.ynx(6,6),f.YNc(7,Ve,3,3,"th",7),f.YNc(8,ve,2,1,"td",8),f.BQk(),f.ynx(9,9),f.YNc(10,Ke,1,0,"th",10),f.YNc(11,Ue,2,2,"td",11),f.BQk(),f.ynx(12,12),f.YNc(13,oe,3,3,"th",7),f.YNc(14,ce,2,2,"td",11),f.BQk(),f.ynx(15,13),f.YNc(16,k,3,3,"th",10),f.YNc(17,N,2,1,"td",11),f.BQk(),f.ynx(18,14),f.YNc(19,be,3,3,"th",10),f.YNc(20,W,3,3,"td",11),f.BQk(),f.ynx(21,15),f.YNc(22,ue,3,3,"th",10),f.YNc(23,Me,3,6,"td",11),f.BQk(),f.ynx(24,16),f.YNc(25,ot,3,3,"th",10),f.YNc(26,je,3,6,"td",11),f.BQk(),f.YNc(27,ut,1,0,"tr",17),f.YNc(28,ee,1,11,"tr",18),f.qZA()()(),f.YNc(29,nt,3,3,"perun-web-apps-alert",19),f.YNc(30,Ae,3,3,"perun-web-apps-alert",19)),2&Ne&&(f.Q6J("hidden",!Ce.dataSource||0===Ce.dataSource.filteredData.length||0===Ce.facilities.length),f.xp6(1),f.Q6J("tableId",Ce.tableId)("dataLength",Ce.dataSource.filteredData.length)("pageSizeOptions",Ce.pageSizeOptions),f.xp6(1),f.Q6J("dataSource",Ce.dataSource),f.xp6(25),f.Q6J("matHeaderRowDef",Ce.displayedColumns),f.xp6(1),f.Q6J("matRowDefColumns",Ce.displayedColumns),f.xp6(1),f.Q6J("ngIf",0===Ce.dataSource.filteredData.length&&0!==Ce.facilities.length),f.xp6(1),f.Q6J("ngIf",0===Ce.facilities.length))},dependencies:[b.O5,D.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,T.rH,e.YE,e.nU,R.w,B.l,w.Y,O.W,z,H.Q,F.X$,V.J,X,q.G],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),ge})()},13449:($e,he,p)=>{"use strict";p.d(he,{i:()=>E});var e=p(94650),A=p(81591),C=p(36895),M=p(97392),f=p(28255),b=p(4859),D=p(10266),T=p(64425),R=p(89383),B=p(29218),w=p(45942),H=p(28764);function O(z,F){if(1&z){const V=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.ALo(2,"groupSyncToolTip"),e.TgZ(3,"button",6),e.NdJ("click",function(){e.CHM(V);const q=e.oxw(2);return e.KtG(q.onSyncDetail())}),e.ALo(4,"groupSyncIcon"),e.TgZ(5,"mat-icon"),e.ALo(6,"groupSyncIconColor"),e._uU(7),e.ALo(8,"groupSyncIcon"),e.qZA()()()}if(2&z){const V=e.oxw(2);e.Q6J("matTooltipPosition","above")("matTooltip",e.lcZ(1,7,e.lcZ(2,9,V.group))),e.xp6(3),e.Q6J("disabled","sync_disabled"===e.lcZ(4,11,V.group)),e.xp6(2),e.Tol(e.lcZ(6,13,V.group)),e.xp6(2),e.hij(" ",e.lcZ(8,15,V.group)," ")}}function J(z,F){if(1&z){const V=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(V);const q=e.oxw(2);return e.KtG(q.onMoveGroup())}),e.TgZ(3,"mat-icon"),e._uU(4,"arrow_right_alt"),e.qZA()()()}if(2&z){const V=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",V.disabled)}}function ne(z,F){if(1&z){const V=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(V);const q=e.oxw(2);return e.KtG(q.onChangeNameDescription())}),e.TgZ(3,"mat-icon"),e._uU(4,"text_format"),e.qZA()()()}if(2&z){const V=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",V.disabled)}}function G(z,F){if(1&z&&(e.TgZ(0,"div",2)(1,"button",3),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4," file_copy "),e.qZA()(),e.YNc(5,O,9,17,"span",4),e.YNc(6,J,5,5,"span",4),e.YNc(7,ne,5,5,"span",4),e.qZA()),2&z){const V=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.Q6J("cdkCopyToClipboard",V.group.name)("matTooltipPosition","above"),e.xp6(4),e.Q6J("ngIf",V.syncAuth),e.xp6(1),e.Q6J("ngIf",V.moveAuth),e.xp6(1),e.Q6J("ngIf",V.editAuth)}}function se(z,F){if(1&z){const V=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(V);const q=e.oxw(2);return e.KtG(q.onSyncDetail())}),e.ALo(1,"groupSyncIcon"),e.TgZ(2,"mat-icon"),e.ALo(3,"groupSyncIconColor"),e._uU(4),e.ALo(5,"groupSyncIcon"),e.qZA(),e.TgZ(6,"span"),e._uU(7),e.ALo(8,"translate"),e.ALo(9,"groupSyncToolTip"),e.qZA()()}if(2&z){const V=e.oxw(2);e.Q6J("disabled","sync_disabled"===e.lcZ(1,6,V.group)),e.xp6(2),e.Tol(e.lcZ(3,8,V.group)),e.xp6(2),e.hij(" ",e.lcZ(5,10,V.group)," "),e.xp6(3),e.Oqu(e.lcZ(8,12,e.lcZ(9,14,V.group)))}}function Oe(z,F){if(1&z){const V=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(V);const q=e.oxw(2);return e.KtG(q.onMoveGroup())}),e.TgZ(1,"mat-icon"),e._uU(2,"arrow_right_alt"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&z){const V=e.oxw(2);e.Q6J("disabled",V.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function _e(z,F){if(1&z){const V=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(V);const q=e.oxw(2);return e.KtG(q.onChangeNameDescription())}),e.TgZ(1,"mat-icon"),e._uU(2,"text_format"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&z){const V=e.oxw(2);e.Q6J("disabled",V.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function Be(z,F){if(1&z&&(e.TgZ(0,"div")(1,"button",7)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,8)(6,"button",9)(7,"mat-icon"),e._uU(8," file_copy "),e.qZA(),e.TgZ(9,"span"),e._uU(10),e.ALo(11,"translate"),e.qZA()(),e.YNc(12,se,10,16,"button",10),e.YNc(13,Oe,6,4,"button",10),e.YNc(14,_e,6,4,"button",10),e.qZA()()),2&z){const V=e.MAs(5),X=e.oxw();e.xp6(1),e.Q6J("mat-menu-trigger-for",V),e.xp6(5),e.Q6J("cdkCopyToClipboard",X.group.name),e.xp6(4),e.Oqu(e.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.xp6(2),e.Q6J("ngIf",X.syncAuth),e.xp6(1),e.Q6J("ngIf",X.moveAuth),e.xp6(1),e.Q6J("ngIf",X.editAuth)}}let E=(()=>{class z{constructor(V){this.authResolver=V,this.disabled=!1,this.moveGroup=new e.vpe,this.syncGroup=new e.vpe,this.changeNameDescription=new e.vpe}ngOnInit(){this.syncAuth=this.authResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group]),this.editAuth=this.authResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.moveAuth=this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.group])||this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.group])}onMoveGroup(){this.moveGroup.emit()}onSyncDetail(){this.syncGroup.emit()}onChangeNameDescription(){this.changeNameDescription.emit()}}return z.\u0275fac=function(V){return new(V||z)(e.Y36(A.x4))},z.\u0275cmp=e.Xpm({type:z,selectors:[["perun-web-apps-group-menu"]],inputs:{group:"group",disabled:"disabled",displayButtons:"displayButtons"},outputs:{moveGroup:"moveGroup",syncGroup:"syncGroup",changeNameDescription:"changeNameDescription"},decls:2,vars:2,consts:[["class","buttons-container",4,"ngIf"],[4,"ngIf"],[1,"buttons-container"],["mat-icon-button","",1,"ml-auto","horiz_right",3,"cdkCopyToClipboard","matTooltipPosition","matTooltip"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click"],["mat-icon-button","",3,"mat-menu-trigger-for"],["groupMenu","matMenu"],["mat-menu-item","",3,"cdkCopyToClipboard"],["mat-menu-item","",3,"disabled","click",4,"ngIf"],["mat-menu-item","",3,"disabled","click"]],template:function(V,X){1&V&&(e.YNc(0,G,8,8,"div",0),e.YNc(1,Be,15,8,"div",1)),2&V&&(e.Q6J("ngIf",X.displayButtons),e.xp6(1),e.Q6J("ngIf",!X.displayButtons))},dependencies:[C.O5,M.Hw,f.VK,f.OP,f.p6,b.lW,D.gM,T.i3,R.X$,B.J,w.r,H.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),z})()},8223:($e,he,p)=>{"use strict";p.d(he,{x:()=>O});var e=p(94650),A=p(9244),C=p(21029),M=p(65412),f=p(36895),b=p(97392),D=p(10266),T=p(89383);function R(J,ne){if(1&J){const G=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(G);const Oe=e.oxw();return e.KtG(Oe.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",4),e._uU(3,"check_circle_outline"),e.qZA()()}if(2&J){const G=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE")),e.Q2q("data-cy","",G.groupName,"-active")}}function B(J,ne){if(1&J){const G=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(G);const Oe=e.oxw();return e.KtG(Oe.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",5),e._uU(3,"block"),e.qZA()()}if(2&J){const G=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE")),e.Q2q("data-cy","",G.groupName,"-inactive")}}function w(J,ne){if(1&J){const G=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(G);const Oe=e.oxw();return e.KtG(Oe.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",6),e._uU(3,"report"),e.qZA()()}if(2&J){const G=e.oxw();e.hYB("matTooltip","",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",G.failureCause,"")}}function H(J,ne){1&J&&(e.TgZ(0,"span",7),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",8),e._uU(3,"autorenew"),e.qZA()()),2&J&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let O=(()=>{class J{constructor(G){this.dialog=G,this.status="",this.groupName="",this.statusChange=new e.vpe}changeStatus(){const G=(0,A.kZ)();G.width="500px",G.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(C.Qu,G).afterClosed().subscribe(Oe=>{Oe&&this.statusChange.emit()})}}return J.\u0275fac=function(G){return new(G||J)(e.Y36(M.uw))},J.\u0275cmp=e.Xpm({type:J,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",groupName:"groupName",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(G,se){1&G&&(e.TgZ(0,"div",0),e.YNc(1,R,4,4,"span",1),e.YNc(2,B,4,4,"span",1),e.YNc(3,w,4,4,"span",1),e.YNc(4,H,4,3,"span",2),e.qZA()),2&G&&(e.xp6(1),e.Q6J("ngIf","ACTIVE"===se.status),e.xp6(1),e.Q6J("ngIf","INACTIVE"===se.status),e.xp6(1),e.Q6J("ngIf","FAILED"===se.status),e.xp6(1),e.Q6J("ngIf","PROCESSING"===se.status))},dependencies:[f.O5,b.Hw,D.gM,T.X$]}),J})()},82322:($e,he,p)=>{"use strict";p.d(he,{h:()=>f});var e=p(94650),A=p(9244),C=p(89593),M=p(89383);let f=(()=>{class b{constructor(){this.disableAutoSelect=!1,this.displayStatus=!1,this.groupSelected=new e.vpe,this.nameFunction=T=>T.name}ngOnInit(){this.groups=this.groups.sort(A.aC)}}return b.\u0275fac=function(T){return new(T||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect",firstSelectedGroup:"firstSelectedGroup",displayStatus:"displayStatus"},outputs:{groupSelected:"groupSelected"},decls:4,vars:15,consts:[[1,"long-input",3,"entities","entity","displayStatus","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(T,R){if(1&T&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(w){return R.groupSelected.emit(w)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&T){let B;e.Q6J("entities",R.groups)("entity",null!==(B=R.firstSelectedGroup)&&void 0!==B?B:null)("displayStatus",R.displayStatus)("disableAutoSelect",R.disableAutoSelect)("mainTextFunction",R.nameFunction)("searchFunction",R.nameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))}},dependencies:[C.i,M.X$]}),b})()},25788:($e,he,p)=>{"use strict";p.d(he,{W:()=>et});var e=p(94650),A=p(21029),C=p(61744),M=p(81591),f=p(9244),b=p(91479),D=p(96308),T=p(30671),R=p(95017),B=p(19516),w=p(65412),H=p(36895),O=p(56709),J=p(94364),ne=p(98380),G=p(97392),se=p(4859),Oe=p(10266),_e=p(18750),Be=p(13449),E=p(34198),z=p(55660),F=p(10441),V=p(8223),X=p(89383),q=p(21757);let pe=(()=>{class te{transform(Ie){return Ie.attributes.find(xe=>"groupMembershipExpiration"===xe.baseFriendlyName)?.value??"Never"}}return te.\u0275fac=function(Ie){return new(Ie||te)},te.\u0275pipe=e.Yjl({name:"groupExpiration",type:te,pure:!0}),te})();var le=p(82514),ye=p(62383),Ve=p(9185);let ve=(()=>{class te{transform(Ie,De){return(0,f.cT)(Ie,De)}}return te.\u0275fac=function(Ie){return new(Ie||te)},te.\u0275pipe=e.Yjl({name:"findAttribute",type:te,pure:!0}),te})(),Ke=(()=>{class te{constructor(Ie){this.authResolver=Ie}transform(Ie){return this.authResolver.isThisGroupAdmin(Ie.id)||this.authResolver.isThisVoAdmin(Ie.voId)}}return te.\u0275fac=function(Ie){return new(Ie||te)(e.Y36(M.x4,16))},te.\u0275pipe=e.Yjl({name:"canManageGroup",type:te,pure:!0}),te})();var Ue=p(22908);let oe=(()=>{class te{transform(Ie,De,xe){return De?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":(0,f.bx)(Ie)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":Ie.sourceGroupId?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP":"members"===Ie.name?"":xe?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP":"MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT"}}return te.\u0275fac=function(Ie){return new(Ie||te)},te.\u0275pipe=e.Yjl({name:"groupCheckboxTooltip",type:te,pure:!0}),te})();var ce=p(8231),k=p(14849);function N(te,Le){if(1&te){const Ie=e.EpF();e.TgZ(0,"mat-checkbox",27),e.NdJ("change",function(xe){e.CHM(Ie);const ie=e.oxw(3);return e.KtG(xe?ie.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&te){const Ie=e.oxw(2).ngIf,De=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,Ie.all)))("checked",De.selection.hasValue()&&Ie.all)("indeterminate",De.selection.hasValue()&&!Ie.all)}}function be(te,Le){if(1&te&&(e.TgZ(0,"th",25),e.YNc(1,N,3,7,"mat-checkbox",26),e.qZA()),2&te){const Ie=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!Ie.disableHeadCheckbox&&Ie.selection.isMultipleSelection())}}const W=function(te){return{name:te}};function ue(te,Le){if(1&te){const Ie=e.EpF();e.TgZ(0,"span",30),e.ALo(1,"translate"),e.ALo(2,"groupCheckboxTooltip"),e.TgZ(3,"mat-checkbox",31),e.NdJ("change",function(xe){e.CHM(Ie);const ie=e.oxw().$implicit,Te=e.oxw(2);return e.KtG(xe?Te.itemSelectionToggle(ie):null)})("click",function(xe){return xe.stopPropagation()}),e.ALo(4,"translate"),e.ALo(5,"checkboxLabel"),e.qZA()()}if(2&te){const Ie=Le.ngIf,De=e.oxw().$implicit,xe=e.oxw(2);e.Q6J("matTooltip",e.lcZ(1,7,e.Dn7(2,9,De,!1,xe.canBeSelected(De))))("matTooltipPosition","above")("matTooltipDisabled",!Ie.disable&&xe.canBeSelected(De)),e.xp6(3),e.Q2q("data-cy","",De.name,"-checkbox"),e.Q6J("aria-label",e.xi3(4,13,e.lcZ(5,16,xe.selection.isSelected(De)),e.VKq(18,W,De.name)))("checked",xe.selection.isSelected(De))("disabled",Ie.disable||!xe.canBeSelected(De))}}const Me=function(te){return{disable:te}};function ot(te,Le){if(1&te&&(e.TgZ(0,"td",28),e.YNc(1,ue,6,20,"span",29),e.ALo(2,"disableGroupSelect"),e.qZA()),2&te){const Ie=Le.$implicit,De=e.oxw(2);e.xp6(1),e.Q6J("ngIf",e.VKq(6,Me,e.gM2(2,1,Ie,De.disableMembers,De.disableGroups,De.groupsToDisableCheckbox)))}}function je(te,Le){1&te&&(e.ynx(0,22),e.YNc(1,be,2,1,"th",23),e.YNc(2,ot,3,8,"td",24),e.BQk())}function ut(te,Le){1&te&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&te&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")," "))}function tt(te,Le){if(1&te&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&te){const Ie=Le.$implicit;e.xp6(1),e.Oqu(Ie.id)}}function vt(te,Le){1&te&&e._UZ(0,"th",34)}function ee(te,Le){if(1&te&&(e.TgZ(0,"td",35),e._UZ(1,"perun-web-apps-recently-viewed-icon",36),e.qZA()),2&te){const Ie=Le.$implicit,De=e.oxw();e.xp6(1),e.Q6J("recentIds",De.recentIds)("id",Ie.id)}}function nt(te,Le){1&te&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&te&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")," "))}function Ae(te,Le){if(1&te&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&te){const Ie=Le.$implicit,De=e.oxw();e.xp6(1),e.hij(" ",De.voNames.get(Ie.voId)," ")}}function Ee(te,Le){1&te&&e._UZ(0,"th",34)}function ge(te,Le){1&te&&(e.TgZ(0,"mat-icon",38),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&te&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function we(te,Le){1&te&&(e.TgZ(0,"mat-icon",38),e.ALo(1,"translate"),e._uU(2,"alt_route"),e.qZA()),2&te&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function Ne(te,Le){if(1&te&&(e.TgZ(0,"td",35),e.YNc(1,ge,3,3,"mat-icon",37),e.YNc(2,we,3,3,"mat-icon",37),e.qZA()),2&te){const Ie=Le.$implicit;e.xp6(1),e.Q6J("ngIf",Ie.sourceGroupId&&!Ie.moreTypesOfAssignment),e.xp6(1),e.Q6J("ngIf",Ie.moreTypesOfAssignment)}}function Ce(te,Le){1&te&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&te&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")," "))}function fe(te,Le){if(1&te&&(e.TgZ(0,"td",35),e._uU(1),e.qZA()),2&te){const Ie=Le.$implicit;e.uIk("data-cy",Ie.name),e.xp6(1),e.hij(" ",Ie.name," ")}}function r(te,Le){1&te&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&te&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function u(te,Le){if(1&te){const Ie=e.EpF();e.TgZ(0,"td",39)(1,"perun-web-apps-group-resource-status",40),e.NdJ("mouseenter",function(){e.CHM(Ie);const xe=e.oxw();return e.KtG(xe.disabledRouting=!0)})("mouseleave",function(){e.CHM(Ie);const xe=e.oxw();return e.KtG(xe.disabledRouting=xe.disableRouting)})("statusChange",function(){e.CHM(Ie);const xe=e.oxw();return e.KtG(xe.refreshTable.emit())}),e.qZA()()}if(2&te){const Ie=Le.$implicit,De=e.oxw();e.xp6(1),e.Q6J("theme","resource-theme")("groupId",Ie.id)("groupName",Ie.name)("resourceId",De.resourceId)("failureCause",Ie.failureCause)("status",Ie.status)}}function g(te,Le){1&te&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&te&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function v(te,Le){if(1&te&&(e.TgZ(0,"i",42),e.NdJ("click",function(De){return De.stopPropagation()}),e.ALo(1,"groupStatusIconColor"),e.TgZ(2,"span"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA()()),2&te){const Ie=Le.ngIf;e.Gre("material-icons ",e.lcZ(1,5,Ie.status)," cursor-default"),e.s9C("matTooltip",Ie.status),e.xp6(3),e.hij(" ",e.lcZ(4,7,Ie.status)," ")}}const h=function(te){return{status:te}};function a(te,Le){if(1&te&&(e.TgZ(0,"td",35),e.YNc(1,v,5,9,"i",41),e.ALo(2,"findAttribute"),e.qZA()),2&te){const Ie=Le.$implicit;e.xp6(1),e.Q6J("ngIf",e.VKq(4,h,e.xi3(2,1,Ie.attributes,"groupStatus")))}}function i(te,Le){1&te&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&te&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")," "))}function t(te,Le){if(1&te&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&te){const Ie=Le.$implicit;e.xp6(1),e.Oqu(Ie.description)}}function n(te,Le){1&te&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&te&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")," "))}function o(te,Le){if(1&te){const Ie=e.EpF();e.TgZ(0,"button",44),e.NdJ("click",function(){e.CHM(Ie);const xe=e.oxw().$implicit,ie=e.oxw();return e.KtG(ie.changeExpiration(xe))})("mouseenter",function(){e.CHM(Ie);const xe=e.oxw(2);return e.KtG(xe.disabledRouting=!0)})("mouseleave",function(){e.CHM(Ie);const xe=e.oxw(2);return e.KtG(xe.disabledRouting=xe.disableRouting)}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function s(te,Le){if(1&te&&(e.TgZ(0,"td",39),e._uU(1),e.ALo(2,"parseDate"),e.ALo(3,"groupExpiration"),e.YNc(4,o,3,0,"button",43),e.ALo(5,"canManageGroup"),e.qZA()),2&te){const Ie=Le.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,2,e.lcZ(3,4,Ie))," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(5,6,Ie))}}function l(te,Le){1&te&&e._UZ(0,"th",34)}function d(te,Le){if(1&te){const Ie=e.EpF();e.TgZ(0,"td",35)(1,"perun-web-apps-group-menu",45),e.NdJ("mouseenter",function(){e.CHM(Ie);const xe=e.oxw();return e.KtG(xe.disabledRouting=!0)})("mouseleave",function(){e.CHM(Ie);const xe=e.oxw();return e.KtG(xe.disabledRouting=xe.disableRouting)})("moveGroup",function(){const ie=e.CHM(Ie).$implicit,Te=e.oxw();return e.KtG(Te.moveGroup(ie))})("changeNameDescription",function(){const ie=e.CHM(Ie).$implicit,Te=e.oxw();return e.KtG(Te.editGroup(ie))})("syncGroup",function(){const ie=e.CHM(Ie).$implicit,Te=e.oxw();return e.KtG(Te.openSyncDetail(ie))}),e.qZA()()}if(2&te){const Ie=Le.$implicit,De=e.oxw();e.xp6(1),e.Q6J("disabled","members"===Ie.name)("displayButtons",De.displayButtons)("group",Ie)}}function c(te,Le){1&te&&e._UZ(0,"tr",46)}const S=function(te,Le){return["/organizations",te,"groups",Le]};function $(te,Le){if(1&te&&e._UZ(0,"tr",47),2&te){const Ie=Le.$implicit,De=e.oxw();e.ekj("cursor-pointer",!De.disableRouting&&!De.groupsToDisableRouting.has(Ie.id))("disable-outline",De.disableRouting||De.disabledRouting||De.groupsToDisableRouting.has(Ie.id)),e.Q6J("perunWebAppsMiddleClickRouterLink",De.disableRouting||De.disabledRouting||De.groupsToDisableRouting.has(Ie.id)?null:e.WLB(6,S,Ie.voId,Ie.id))("routerLink",De.disableRouting||De.disabledRouting||De.groupsToDisableRouting.has(Ie.id)?null:e.WLB(9,S,Ie.voId,Ie.id))}}function ht(te,Le){if(1&te&&(e.TgZ(0,"perun-web-apps-alert",48),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&te){const Ie=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,Ie.noGroupsAlert),"\n")}}const ze=function(te){return{all:te}};let et=(()=>{class te{constructor(Ie,De,xe,ie,Te,st){this.dialog=Ie,this.authResolver=De,this.voService=xe,this.tableCheckbox=ie,this.disableGroupSelect=Te,this.groupUtils=st,this.theme="group-theme",this.selection=new R.Ov(!0,[]),this.groupsToDisableCheckbox=new Set,this.groupsToDisableRouting=new Set,this.disableRouting=!1,this.pageSizeOptions=f.f7,this.recentIds=[],this.resourceId=null,this.relation=!1,this.noGroupsAlert="SHARED_LIB.UI.ALERTS.NO_GROUPS",this.groupMoved=new e.vpe,this.refreshTable=new e.vpe,this.queryChanged=new e.vpe,this.downloadAll=new e.vpe,this.displayButtons=window.innerWidth>800,this.disabledRouting=!1,this.voNames=new Map,this.columns=["select","id","recent","vo","indirectGroupAssigment","name","status","groupStatus","description","expiration","menu"],this.getDataForColumnFun=(Qe,Et)=>this.groupUtils.getDataForColumn(Qe,Et,this.voNames),this.getSortDataForColumnFun=(Qe,Et)=>this.groupUtils.getSortDataForColumn(Qe,Et,this.voNames,this.recentIds),this.canBeSelected=Qe=>{const Et=Qe.attributes?.find(ke=>"groupStatusIndirect"===ke.friendlyName);return Et?.value?!Et.value:!this.disableGroupSelect.transform(Qe,this.disableMembers,this.disableGroups,this.groupsToDisableCheckbox)}}set groups(Ie){this.dataSource||this.dataSourceInit(Ie);const De=this.isPaginated(Ie);(0,b.o)(this.dataSource)&&De?(this.dataSource.data=Ie.data,this.dataSource.count=Ie.totalCount):!(0,b.o)(this.dataSource)&&!De&&(this.dataSource.data=Ie),this.updateVoNames()}set filter(Ie){this.dataSource.filter=Ie}set displayedColumns(Ie){this.authResolver.isPerunAdminOrObserver()||(Ie=Ie.filter(De=>"id"!==De)),this.columns=Ie}shouldHideButtons(){this.displayButtons=window.innerWidth>800}isPaginated(Ie){return"data"in Ie}exportAllData(Ie){(0,b.o)(this.dataSource)?this.downloadAll.emit({format:Ie,length:this.dataSource.paginator.length}):(0,f.O6)((0,f.Xn)(this.dataSource.filteredData,this.columns,this.getDataForColumnFun),Ie)}exportDisplayedData(Ie){if((0,b.o)(this.dataSource))(0,f.O6)((0,f.Xn)(this.dataSource.data,this.columns,this.getDataForColumnFun),Ie);else{const De=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,xe=De+this.dataSource.paginator.pageSize;(0,f.O6)((0,f.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(De,xe),this.columns,this.getDataForColumnFun),Ie)}}isAllSelected(){return(0,b.o)(this.dataSource)?this.tableCheckbox.isAllSelectedPaginated(this.dataSource,this.selection.selected.length,this.canBeSelected):this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){(0,b.o)(this.dataSource)?this.tableCheckbox.masterTogglePaginated(this.dataSource,this.selection,!this.isAllSelected(),this.canBeSelected):this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.dataSource.filter,this.dataSource,this.dataSource.sort,this.dataSource.paginator.pageSize,this.dataSource.paginator.pageIndex,!0,this.canBeSelected)}moveGroup(Ie){this.groupMoved.emit(Ie)}openSyncDetail(Ie){const De=(0,f.kZ)();De.width="450px",De.data={groupId:Ie.id,theme:this.theme},this.dialog.open(A.Bp,De)}editGroup(Ie){const De=(0,f.kZ)();De.data={theme:"group-theme",group:Ie,dialogType:A.Eg.GROUP},this.dialog.open(A.rd,De).afterClosed().subscribe(ie=>{ie&&this.refreshTable.emit()})}changeExpiration(Ie){const De=Ie.attributes.find(Te=>"groupMembershipExpiration"===Te.baseFriendlyName),xe=(0,f.kZ)();xe.width="400px",xe.data={memberId:this.memberId,groupId:Ie.id,expirationAttr:De,status:(0,f.cT)(Ie.attributes,"groupStatus")},this.dialog.open(A.u3,xe).afterClosed().subscribe(Te=>{Te.success&&this.refreshTable.emit()})}itemSelectionToggle(Ie){this.selection.toggle(Ie)}dataSourceInit(Ie){const De=this.isPaginated(Ie);this.dataSource=De?new b.H(Ie.data,Ie.totalCount,this.sort,this.tableWrapper.paginator):new T.by(Ie),(0,b.o)(this.dataSource)?this.dataSource.pageQuery$.subscribe(xe=>this.queryChanged.emit(xe)):(this.dataSource.sort=this.sort,this.dataSource.paginator=this.tableWrapper.paginator,this.dataSource.filterPredicate=(xe,ie)=>(0,f.Sd)(xe,ie,this.columns,this.getDataForColumnFun,!0),this.dataSource.sortData=(xe,ie)=>(0,f.pR)(xe,ie,this.getSortDataForColumnFun))}updateVoNames(){if(this.columns.includes("vo")){const Ie=new Set;this.dataSource.filteredData.forEach(De=>{!Ie.has(De.voId)&&!this.voNames.has(De.voId)&&Ie.add(De.voId)}),Ie.size>0&&this.voService.getVosByIds([...Ie]).subscribe(De=>{De.forEach(xe=>{this.voNames.set(xe.id,xe.name)})})}}}return te.\u0275fac=function(Ie){return new(Ie||te)(e.Y36(w.uw),e.Y36(M.x4),e.Y36(C.YF),e.Y36(M.UA),e.Y36(B.yo),e.Y36(M.K1))},te.\u0275cmp=e.Xpm({type:te,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(Ie,De){if(1&Ie&&(e.Gf(f.l9,7),e.Gf(D.YE,7)),2&Ie){let xe;e.iGM(xe=e.CRH())&&(De.tableWrapper=xe.first),e.iGM(xe=e.CRH())&&(De.sort=xe.first)}},hostBindings:function(Ie,De){1&Ie&&e.NdJ("resize",function(ie){return De.shouldHideButtons(ie)},!1,e.Jf7)},inputs:{theme:"theme",selection:"selection",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisableCheckbox:"groupsToDisableCheckbox",groupsToDisableRouting:"groupsToDisableRouting",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",memberId:"memberId",memberGroupStatus:"memberGroupStatus",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",resourceId:"resourceId",tableId:"tableId",relation:"relation",noGroupsAlert:"noGroupsAlert",groups:"groups",filter:"filter",displayedColumns:"displayedColumns"},outputs:{groupMoved:"groupMoved",refreshTable:"refreshTable",queryChanged:"queryChanged",downloadAll:"downloadAll"},features:[e._Bn([B.yo])],decls:38,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","indirectGroupAssigment"],["matColumnDef","name"],["matColumnDef","status"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","groupStatus"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"ngIf"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","groupName","resourceId","failureCause","status","mouseenter","mouseleave","statusChange"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"class","matTooltip","click",4,"ngIf"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-icon-button","",3,"click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"click","mouseenter","mouseleave"],[3,"disabled","displayButtons","group","mouseenter","mouseleave","moveGroup","changeNameDescription","syncGroup"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(Ie,De){if(1&Ie&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(ie){return De.exportDisplayedData(ie)})("exportAllData",function(ie){return De.exportAllData(ie)}),e.TgZ(2,"table",2),e.YNc(3,je,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,ut,3,3,"th",5),e.YNc(7,tt,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,vt,1,0,"th",8),e.YNc(10,ee,2,2,"td",9),e.BQk(),e.ynx(11,10),e.YNc(12,nt,3,3,"th",5),e.YNc(13,Ae,2,1,"td",6),e.BQk(),e.ynx(14,11),e.YNc(15,Ee,1,0,"th",8),e.YNc(16,Ne,3,2,"td",9),e.BQk(),e.ynx(17,12),e.YNc(18,Ce,3,3,"th",5),e.YNc(19,fe,2,2,"td",9),e.BQk(),e.ynx(20,13),e.YNc(21,r,3,3,"th",5),e.YNc(22,u,2,6,"td",14),e.BQk(),e.ynx(23,15),e.YNc(24,g,3,3,"th",5),e.YNc(25,a,3,6,"td",9),e.BQk(),e.ynx(26,16),e.YNc(27,i,3,3,"th",5),e.YNc(28,t,2,1,"td",14),e.BQk(),e.ynx(29,17),e.YNc(30,n,3,3,"th",5),e.YNc(31,s,6,8,"td",14),e.BQk(),e.ynx(32,18),e.YNc(33,l,1,0,"th",8),e.YNc(34,d,2,3,"td",9),e.BQk(),e.YNc(35,c,1,0,"tr",19),e.YNc(36,$,1,12,"tr",20),e.qZA()()(),e.YNc(37,ht,3,3,"perun-web-apps-alert",21)),2&Ie){let xe;e.Q6J("hidden",0===De.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",null!==(xe=De.dataSource.count)&&void 0!==xe?xe:De.dataSource.filteredData.length)("pageSizeOptions",De.pageSizeOptions)("tableId",De.tableId),e.xp6(1),e.Q6J("dataSource",De.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,ze,e.Dn7(4,9,De.dataSource,De.selection.selected.length,De.canBeSelected))),e.xp6(32),e.Q6J("matHeaderRowDef",De.columns),e.xp6(1),e.Q6J("matRowDefColumns",De.columns),e.xp6(1),e.Q6J("ngIf",0===De.dataSource.filteredData.length)}},dependencies:[H.O5,O.oG,T.BZ,T.fO,T.as,T.w1,T.Dz,T.nj,T.ge,T.ev,T.XQ,T.Gk,J.rH,D.YE,D.nU,ne.w,G.Hw,se.lW,Oe.gM,_e.l,Be.i,E.Y,F.W,V.x,z.Q,X.X$,q.f,pe,le.F,ye.M,Ve.I,ve,Ke,Ue.y,oe,ce.G,k.r],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.cursor-default[_ngcontent-%COMP%]{cursor:default}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),te})()},58956:($e,he,p)=>{"use strict";p.d(he,{I:()=>ve});var e=p(94650),A=p(35423),C=p(57851),M=p(95017);class f{constructor(Ue){this.id=Ue.id,this.name=Ue.name,this.parentGroupId=Ue.parentGroupId,this.voId=Ue.voId,this.shortName=Ue.shortName,this.description=Ue.description,this.attributes=Ue.attributes,this.beanName=Ue.beanName}addChild(Ue){null==this.children?this.children=[Ue]:this.children.push(Ue)}}var b=p(9244),D=p(21029),T=p(81591),R=p(65412),B=p(36895),w=p(56709),H=p(94364),O=p(98380),J=p(97392),ne=p(4859),G=p(10266),se=p(67376),Oe=p(13449),_e=p(34198),Be=p(55660),E=p(89383);const z=["scrollViewport"];function F(Ke,Ue){if(1&Ke){const oe=e.EpF();e.TgZ(0,"mat-checkbox",19),e.NdJ("change",function(){e.CHM(oe);const k=e.oxw().$implicit,N=e.oxw(2);return e.KtG(N.itemSelectionToggle(k))}),e.qZA()}if(2&Ke){const oe=e.oxw().$implicit,ce=e.oxw(2);e.Q2q("data-cy","",oe.name,"-checkbox"),e.Q6J("disabled","members"===oe.fullName)("checked",ce.selection.isSelected(oe))("indeterminate",ce.descendantsPartiallySelected(oe))}}function V(Ke,Ue){if(1&Ke&&(e.TgZ(0,"mat-icon",20),e._uU(1),e.qZA()),2&Ke){const oe=e.oxw().$implicit,ce=e.oxw(2);e.xp6(1),e.hij(" ",ce.treeControl.isExpanded(oe)?"expand_more":"chevron_right"," ")}}function X(Ke,Ue){if(1&Ke&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&Ke){const oe=e.oxw().$implicit;e.xp6(1),e.hij(" #",oe.id," ")}}const q=function(Ke,Ue){return["/organizations",Ke,"groups",Ue]};function pe(Ke,Ue){if(1&Ke){const oe=e.EpF();e.ynx(0),e.TgZ(1,"div",6),e.YNc(2,F,1,4,"mat-checkbox",7),e.TgZ(3,"a",8),e.NdJ("auxclick",function(k){return k.preventDefault()}),e.TgZ(4,"button",9),e.NdJ("mouseenter",function(){e.CHM(oe);const k=e.oxw(2);return e.KtG(k.disableRouting=!0)})("mouseleave",function(){e.CHM(oe);const k=e.oxw(2);return e.KtG(k.disableRouting=!1)})("click",function(){const N=e.CHM(oe).$implicit,be=e.oxw(2);return e.KtG(be.treeControl.toggle(N))}),e.YNc(5,V,2,1,"mat-icon",10),e.qZA(),e.TgZ(6,"div",11)(7,"span",12),e._uU(8),e.qZA(),e.YNc(9,X,2,1,"span",13),e.qZA(),e.TgZ(10,"div",14,15)(12,"span",16),e._uU(13),e.qZA()()(),e.TgZ(14,"div",17)(15,"perun-web-apps-group-menu",18),e.NdJ("moveGroup",function(){const N=e.CHM(oe).$implicit,be=e.oxw(2);return e.KtG(be.onMoveGroup(N))})("syncGroup",function(){const N=e.CHM(oe).$implicit,be=e.oxw(2);return e.KtG(be.onSyncDetail(N))})("changeNameDescription",function(){const N=e.CHM(oe).$implicit,be=e.oxw(2);return e.KtG(be.onChangeNameDescription(N))}),e.qZA()()(),e.BQk()}if(2&Ke){const oe=Ue.$implicit,ce=e.oxw(2);e.xp6(1),e.Udp("padding-left",24*oe.level+"px"),e.xp6(1),e.Q6J("ngIf",!ce.hideCheckbox),e.xp6(1),e.Q6J("perunWebAppsMiddleClickRouterLink",ce.disableRouting?null:e.WLB(16,q,oe.voId.toString(),oe.id.toString()))("routerLink",ce.disableRouting?null:e.WLB(19,q,oe.voId,oe.id)),e.xp6(1),e.Q6J("disabled",!oe.expandable),e.uIk("aria-label","toggle "+oe.name),e.xp6(1),e.Q6J("ngIf",oe.expandable),e.xp6(2),e.uIk("data-cy",oe.name),e.xp6(1),e.hij(" ",oe.name," "),e.xp6(1),e.Q6J("ngIf",ce.authResolver.isPerunAdminOrObserver()),e.xp6(3),e.s9C("matTooltip",oe.description),e.xp6(1),e.hij(" ",oe.description," "),e.xp6(2),e.Q6J("disabled","members"===oe.fullName)("displayButtons",ce.displayButtons)("group",oe)}}const le=function(Ke){return{height:Ke}};function ye(Ke,Ue){if(1&Ke&&(e.TgZ(0,"div",2)(1,"cdk-virtual-scroll-viewport",3,4),e.YNc(3,pe,16,22,"ng-container",5),e.qZA()()),2&Ke){const oe=e.oxw();e.xp6(1),e.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",e.VKq(4,le,oe.getTreeViewHeight())),e.xp6(2),e.Q6J("cdkVirtualForOf",oe.dataSource)}}function Ve(Ke,Ue){1&Ke&&(e.TgZ(0,"perun-web-apps-alert",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ke&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let ve=(()=>{class Ke{constructor(oe,ce,k){this.cd=oe,this.dialog=ce,this.authResolver=k,this.theme="group-theme",this.moveGroup=new e.vpe,this.refreshTable=new e.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new M.Ov(!0,[]),this.hideCheckbox=!1,this.displayButtons=window.innerWidth>600,this.treeControl=new C.C2(N=>N.level,N=>N.expandable),this.hasChild=(N,be)=>be.expandable,this.getLevel=N=>N.level,this.transformer=(N,be)=>({expandable:!!N.children&&N.children.length>0,name:N.shortName,fullName:N.name,parentGroupId:N.parentGroupId,level:be,id:N.id,voId:N.voId,attributes:N.attributes,beanName:N.beanName,description:N.description}),this.treeFlattener=new A.JZ(this.transformer,N=>N.level,N=>N.expandable,N=>N.children),this.dataSource=new A.kc(this.treeControl,this.treeFlattener)}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(oe=>oe.name?.toLowerCase().includes(this.filterValue.toLowerCase())||oe.description?.toLowerCase().includes(this.filterValue.toLowerCase())||oe.id.toString().includes(this.filterValue.toLowerCase())||oe.uuid.toLowerCase().includes(this.filterValue.toLowerCase()));for(const oe of this.filteredGroups)oe.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,b.oU)(oe.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(oe){const ce=(0,b.kZ)();ce.width="450px",ce.data={groupId:oe.id,theme:this.theme},this.dialog.open(D.Bp,ce)}onChangeNameDescription(oe){const ce=(0,b.kZ)();ce.data={theme:"group-theme",group:oe,dialogType:D.Eg.GROUP},this.dialog.open(D.rd,ce).afterClosed().subscribe(N=>{N&&this.refreshTable.emit()})}createGroupTrees(oe){const ce=new Map;for(const be of oe)ce.set(be.id,new f(be));const k=new Set;ce.forEach((be,W,ue)=>{const Me=ue.get(be.parentGroupId);void 0!==Me&&(Me.addChild(be),ue.set(be.parentGroupId,Me)),null!==be.parentGroupId&&void 0===Me&&k.add(be.id)});const N=[];ce.forEach(be=>{(null===be.parentGroupId||k.has(be.id))&&N.push(be)}),this.dataSource.data=N,this.cd.detectChanges()}getParentNode(oe){const ce=this.getLevel(oe);if(ce<1)return null;for(let N=this.treeControl.dataNodes.indexOf(oe)-1;N>=0;N--){const be=this.treeControl.dataNodes[N];if(this.getLevel(be)this.selection.isSelected(be));ce&&!N&&this.selection.deselect(oe)}checkAllParentsSelection(oe){let ce=this.getParentNode(oe);for(;ce;)this.checkRootNodeSelection(ce),ce=this.getParentNode(ce);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(oe){return this.treeControl.getDescendants(oe).some(N=>this.selection.isSelected(N))&&!this.selection.isSelected(oe)}itemSelectionToggle(oe){this.selection.toggle(oe);const ce=this.treeControl.getDescendants(oe);this.selection.isSelected(oe)?this.selection.select(...ce):this.selection.deselect(...ce),ce.every(k=>this.selection.isSelected(k)),this.checkAllParentsSelection(oe)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(oe,ce)=>oe&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,ce]):(oe,ce)=>oe&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[ce]),!0)}onMoveGroup(oe){this.moveGroup.emit(oe)}getTreeViewHeight(){let oe=0;this.scrollViewport&&(oe=this.scrollViewport.getDataLength());let ce=48*oe;return ce>672&&(ce=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),String(ce)+"px"}}return Ke.\u0275fac=function(oe){return new(oe||Ke)(e.Y36(e.sBO),e.Y36(R.uw),e.Y36(T.x4))},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(oe,ce){if(1&oe&&e.Gf(z,5),2&oe){let k;e.iGM(k=e.CRH())&&(ce.scrollViewport=k.first)}},hostBindings:function(oe,ce){1&oe&&e.NdJ("resize",function(N){return ce.shouldHideButtons(N)},!1,e.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[e.TTD],decls:2,vars:2,consts:[["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"card","mt-2"],["itemSize","48",1,"virtual-scroll-container",3,"minBufferPx","maxBufferPx","ngStyle"],["scrollViewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"node"],["color","primary","class","no-label-margin-bottom ml-4",3,"disabled","checked","indeterminate","change",4,"ngIf"],[1,"group-item-content","text-format",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],["mat-icon-button","",3,"disabled","mouseenter","mouseleave","click"],["class","mat-icon-rtl-mirror",4,"ngIf"],[1,"w-50"],[1,"mr-2"],["class","text-muted",4,"ngIf"],[1,"w-50","text-muted","description-text"],["rootDescription",""],["matTooltipPosition","before",3,"matTooltip"],[1,"group-buttons"],[3,"disabled","displayButtons","group","moveGroup","syncGroup","changeNameDescription"],["color","primary",1,"no-label-margin-bottom","ml-4",3,"disabled","checked","indeterminate","change"],[1,"mat-icon-rtl-mirror"],[1,"text-muted"],["alert_type","warn"]],template:function(oe,ce){1&oe&&(e.YNc(0,ye,4,6,"div",0),e.YNc(1,Ve,3,3,"perun-web-apps-alert",1)),2&oe&&(e.Q6J("ngIf",0!==ce.filteredGroups.length),e.xp6(1),e.Q6J("ngIf",0===ce.filteredGroups.length))},dependencies:[B.O5,B.PC,w.oG,H.yS,O.w,J.Hw,ne.lW,G.gM,se.xd,se.x0,se.N7,Oe.i,_e.Y,Be.Q,E.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.group-item-content[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;overflow:hidden;word-wrap:break-word}mat-tree-node[_ngcontent-%COMP%]{cursor:pointer}.description-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.virtual-scroll-container[_ngcontent-%COMP%]{overflow:auto}cdk-tree-node[_ngcontent-%COMP%]{display:block}.node[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;word-wrap:break-word;cursor:pointer}.node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),Ke})()},52314:($e,he,p)=>{"use strict";p.d(he,{X:()=>O});var e=p(81591),A=p(94650),C=p(36895),M=p(97392),f=p(28255),b=p(4859),D=p(10266),T=p(89383);const R=function(J){return{color:J}};function B(J,ne){if(1&J&&(A.TgZ(0,"button",8),A.ALo(1,"translate"),A.TgZ(2,"mat-icon",4),A._uU(3," apps "),A.qZA()()),2&J){const G=A.oxw(),se=A.MAs(2);A.Q6J("matMenuTriggerFor",se)("matTooltip",A.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),A.xp6(2),A.Q6J("ngStyle",A.VKq(5,R,G.iconColor))}}function w(J,ne){if(1&J&&(A.TgZ(0,"span",9),A._uU(1),A.qZA()),2&J){const G=A.oxw();A.Q6J("ngStyle",A.VKq(6,R,G.textColor)),A.xp6(1),A.xDo(" ",G.user.titleBefore," ",G.user.firstName," ",G.user.middleName," ",G.user.lastName," ",G.user.titleAfter," ")}}function H(J,ne){if(1&J){const G=A.EpF();A.TgZ(0,"button",10),A.NdJ("click",function(){A.CHM(G);const Oe=A.oxw();return A.KtG(Oe.onLogOut())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&J&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"NAV.LOGOUT")," "))}let O=(()=>{class J{constructor(G){this.authService=G}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return J.\u0275fac=function(G){return new(G||J)(A.Y36(e.e8))},J.\u0275cmp=A.Xpm({type:J,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(G,se){if(1&G&&(A.YNc(0,B,4,7,"button",0),A.TgZ(1,"mat-menu",null,1)(3,"button",2),A.NdJ("click",function(){return se.redirectToUrl()})("auxclick",function(){return se.redirectToUrl()}),A.TgZ(4,"span"),A._uU(5),A.qZA()()(),A.TgZ(6,"button",3)(7,"mat-icon",4),A._uU(8," person "),A.qZA(),A.YNc(9,w,2,8,"span",5),A.qZA(),A.TgZ(10,"mat-menu",null,6),A.YNc(12,H,3,3,"button",7),A.qZA()),2&G){const Oe=A.MAs(11);A.Q6J("ngIf",se.url),A.xp6(5),A.Oqu(se.label),A.xp6(1),A.Q6J("matMenuTriggerFor",Oe),A.xp6(1),A.Q6J("ngStyle",A.VKq(6,R,se.iconColor)),A.xp6(2),A.Q6J("ngIf",null!==se.user),A.xp6(3),A.Q6J("ngIf",se.logoutEnabled)}},dependencies:[C.O5,C.PC,M.Hw,f.VK,f.OP,f.p6,b.lW,D.gM,T.X$],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),J})()},7434:($e,he,p)=>{"use strict";p.d(he,{L:()=>B});var e=p(94650),A=p(24006),C=p(36895),M=p(59549),f=p(284),b=p(22308),D=p(89383);function T(w,H){if(1&w&&(e._UZ(0,"input",3),e.ALo(1,"translate")),2&w){const O=e.oxw();e.s9C("placeholder",e.lcZ(1,2,O.placeholder)),e.Q6J("formControl",O.formControl)}}function R(w,H){if(1&w&&(e._UZ(0,"input",4),e.ALo(1,"translate")),2&w){const O=e.oxw();e.s9C("placeholder",e.lcZ(1,2,O.placeholder)),e.Q6J("formControl",O.formControl)}}let B=(()=>{class w{constructor(){this.filter=new e.vpe,this.autoFocus=!1,this.formControl=new A.p4}ngOnInit(){this.formControl.valueChanges.subscribe(O=>{let J=O.trim();J=J.toLowerCase(),this.filter.emit(J)})}}return w.\u0275fac=function(O){return new(O||w)},w.\u0275cmp=e.Xpm({type:w,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(O,J){1&O&&(e.TgZ(0,"mat-form-field",0),e.YNc(1,T,2,4,"input",1),e.YNc(2,R,2,4,"input",2),e.qZA()),2&O&&(e.xp6(1),e.Q6J("ngIf",J.autoFocus),e.xp6(1),e.Q6J("ngIf",!J.autoFocus))},dependencies:[C.O5,A.Fj,A.JJ,M.KE,A.oH,f.Nt,b.h,D.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),w})()},93057:($e,he,p)=>{"use strict";p.d(he,{z:()=>k});var e=p(94650),A=p(61744),C=p(9244),M=p(64080),f=p(30671),b=p(81591),D=p(21029),T=p(89383),R=p(65412),B=p(36895),w=p(51572),H=p(98380),O=p(97392),J=p(4859),ne=p(73546),G=p(82322),se=p(21757),Oe=p(82514),_e=p(62383),Be=p(49206);function E(N,be){1&N&&(e.TgZ(0,"mat-card-header")(1,"mat-card-title")(2,"h1",6),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&N&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")))}function z(N,be){1&N&&(e.TgZ(0,"h1",7),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&N&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP"),"\n"))}function F(N,be){if(1&N){const W=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(Me){e.CHM(W);const ot=e.oxw();return e.KtG(ot.groupIsSelected(Me))}),e.qZA()}if(2&N){const W=e.oxw();e.Q6J("firstSelectedGroup",W.selectedGroup)("groups",W.groups)}}function V(N,be){1&N&&e._UZ(0,"mat-spinner",9)}function X(N,be){1&N&&(e.TgZ(0,"perun-web-apps-alert",10),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&N&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function q(N,be){1&N&&e._UZ(0,"th",18)}function pe(N,be){if(1&N&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&N){const W=be.$implicit;e.xp6(1),e.hij("",W,":")}}function le(N,be){1&N&&e._UZ(0,"th",18)}function ye(N,be){if(1&N){const W=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(W);const Me=e.oxw(4);return e.KtG(Me.changeStatus())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function Ve(N,be){if(1&N&&(e.TgZ(0,"div")(1,"i"),e.ALo(2,"groupStatusIconColor"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA(),e.TgZ(5,"b",21),e._uU(6),e.ALo(7,"transformMemberStatus"),e.qZA(),e.YNc(8,ye,3,0,"button",22),e.qZA()),2&N){const W=e.oxw(3);e.xp6(1),e.Gre("material-icons vert-center mr-1 ",e.lcZ(2,6,W.selectedMember.groupStatus),""),e.xp6(2),e.hij(" ",e.lcZ(4,8,W.selectedMember.groupStatus)," "),e.xp6(3),e.hij(" ",e.lcZ(7,10,W.selectedMember.groupStatus)," "),e.xp6(2),e.Q6J("ngIf",W.authResolver.isThisVoAdmin(W.voId)||W.authResolver.isThisGroupAdmin(W.selectedGroup.id))}}function ve(N,be){if(1&N){const W=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(W);const Me=e.oxw(4);return e.KtG(Me.changeExpiration())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function Ke(N,be){if(1&N&&(e.TgZ(0,"div")(1,"i",2),e._uU(2),e.ALo(3,"parseDate"),e.qZA(),e.YNc(4,ve,3,0,"button",22),e.qZA()),2&N){const W=e.oxw(3);e.xp6(2),e.hij(" ",e.lcZ(3,2,W.expiration)," "),e.xp6(2),e.Q6J("ngIf",W.authResolver.isThisVoAdmin(W.voId)||W.authResolver.isThisGroupAdmin(W.selectedGroup.id))}}function Ue(N,be){if(1&N&&(e.TgZ(0,"td",20),e.YNc(1,Ve,9,12,"div",0),e.YNc(2,Ke,5,4,"div",0),e.qZA()),2&N){const W=be.$implicit;e.xp6(1),e.Q6J("ngIf","Status"===W),e.xp6(1),e.Q6J("ngIf","Expiration"===W)}}function oe(N,be){1&N&&e._UZ(0,"tr",24)}function ce(N,be){if(1&N&&(e.TgZ(0,"div")(1,"table",11),e.ynx(2,12),e.YNc(3,q,1,0,"th",13),e.YNc(4,pe,2,1,"td",14),e.BQk(),e.ynx(5,15),e.YNc(6,le,1,0,"th",13),e.YNc(7,Ue,3,2,"td",16),e.BQk(),e.YNc(8,oe,1,0,"tr",17),e.qZA()()),2&N){const W=e.oxw();e.xp6(1),e.Tol(W.openedInDialog?"mr-auto":"ml-auto mr-auto"),e.Q6J("dataSource",W.groupMembershipDataSource),e.xp6(7),e.Q6J("matRowDefColumns",W.displayedColumns)}}let k=(()=>{class N{constructor(W,ue,Me,ot){this.groupsManager=W,this.authResolver=ue,this.translate=Me,this.dialog=ot,this.openedInDialog=!1,this.statusChanged=new e.vpe,this.noGroups=!1,this.groupMembershipDataSource=new f.by,this.expiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new f.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(W=>{if(this.groups=W,0===this.groups.length)return void(this.noGroups=!0);const ue=this.findInitiallySelectedGroupId();this.groupIsSelected(ue),this.initLoading=!1})}findInitiallySelectedGroupId(){if(this.recentIds=(0,C.vL)("groups"),this.recentIds){const W=this.groups.find(ue=>ue.id===this.recentIds[0]);if(W)return W}return this.groups[0]}groupIsSelected(W){this.loading=!0,this.selectedGroup=W,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[M.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(ue=>{this.selectedMember=ue[0],this.expirationAtt=this.selectedMember.memberAttributes.find(Me=>"groupMembershipExpiration"===Me.baseFriendlyName),this.expirationAtt?(this.groupMembershipDataSource=new f.by(["Status","Expiration"]),this.expiration=this.expirationAtt.value?this.expirationAtt.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):this.groupMembershipDataSource=new f.by(["Status"]),this.loading=!1})}changeExpiration(W=!1){const ue=(0,C.kZ)();ue.width="400px",ue.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:W,backButton:this.openedInDialog},this.dialog.open(D.u3,ue).afterClosed().subscribe(ot=>{ot.success?(this.groupIsSelected(this.selectedGroup),this.dialog.closeAll()):W&&this.statusChanged.emit(W)})}changeStatus(){const W=(0,C.kZ)();W.width="600px",W.data={member:this.selectedMember,voId:this.voId,groupId:this.selectedGroup.id,backButton:this.openedInDialog},this.dialog.open(D.pf,W).afterClosed().subscribe(Me=>{Me&&(this.selectedMember=Me,this.changeExpiration(!0))})}}return N.\u0275fac=function(W){return new(W||N)(e.Y36(A.ff),e.Y36(b.x4),e.Y36(T.sK),e.Y36(R.uw))},N.\u0275cmp=e.Xpm({type:N,selectors:[["perun-web-apps-member-overview-groups"]],inputs:{voId:"voId",member:"member",openedInDialog:"openedInDialog"},outputs:{statusChanged:"statusChanged"},features:[e.TTD],decls:7,vars:6,consts:[[4,"ngIf"],["class","mat-dialog-title",4,"ngIf"],[1,"column-center"],[3,"firstSelectedGroup","groups","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"page-subtitle"],[1,"mat-dialog-title"],[3,"firstSelectedGroup","groups","groupSelected"],[1,"mr-auto","ml-auto"],["alert_type","warn"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-row",""]],template:function(W,ue){1&W&&(e.YNc(0,E,5,3,"mat-card-header",0),e.YNc(1,z,3,3,"h1",1),e.TgZ(2,"mat-card-content",2),e.YNc(3,F,1,2,"perun-web-apps-group-search-select",3),e.YNc(4,V,1,0,"mat-spinner",4),e.YNc(5,X,3,3,"perun-web-apps-alert",5),e.YNc(6,ce,9,4,"div",0),e.qZA()),2&W&&(e.Q6J("ngIf",!ue.openedInDialog),e.xp6(1),e.Q6J("ngIf",ue.openedInDialog),e.xp6(2),e.Q6J("ngIf",!ue.initLoading&&!ue.openedInDialog),e.xp6(1),e.Q6J("ngIf",(ue.loading||ue.initLoading)&&!ue.noGroups),e.xp6(1),e.Q6J("ngIf",ue.noGroups),e.xp6(1),e.Q6J("ngIf",!ue.loading))},dependencies:[B.O5,f.BZ,f.fO,f.w1,f.Dz,f.nj,f.ge,f.ev,f.Gk,w.Ou,H.w,O.Hw,J.lW,ne.dk,ne.dn,ne.n5,G.h,T.X$,se.f,Oe.F,_e.M,Be.r],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),N})()},12488:($e,he,p)=>{"use strict";p.d(he,{b:()=>Ue});var e=p(94650),A=p(61744),C=p(9244),M=p(21029),f=p(30671),b=p(81591),D=p(64080),T=p(65412),R=p(89383),B=p(36895),w=p(51572),H=p(97392),O=p(4859),J=p(73546),ne=p(69773),G=p(21757),se=p(38993),Oe=p(62383),_e=p(49206);function Be(oe,ce){1&oe&&(e.TgZ(0,"mat-card-header")(1,"mat-card-title")(2,"h1",3),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&oe&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")," "))}function E(oe,ce){1&oe&&(e.TgZ(0,"h1",4),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP"),"\n"))}function z(oe,ce){1&oe&&e._UZ(0,"mat-spinner",5)}function F(oe,ce){1&oe&&e._UZ(0,"th",13)}function V(oe,ce){if(1&oe&&(e.TgZ(0,"td",14),e._uU(1),e.qZA()),2&oe){const k=ce.$implicit;e.xp6(1),e.hij("",k,":")}}function X(oe,ce){1&oe&&e._UZ(0,"th",13)}function q(oe,ce){if(1&oe){const k=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){e.CHM(k);const be=e.oxw(4);return e.KtG(be.changeStatus())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function pe(oe,ce){if(1&oe&&(e.TgZ(0,"div")(1,"i"),e.ALo(2,"memberStatusIconColor"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA(),e.TgZ(5,"b",16),e._uU(6),e.ALo(7,"transformMemberStatus"),e.qZA(),e.YNc(8,q,3,0,"button",17),e.ALo(9,"memberStatusDisabled"),e.qZA()),2&oe){const k=e.oxw(3);e.xp6(1),e.Gre("material-icons vert-center mr-1 ",e.lcZ(2,6,k.member),""),e.xp6(2),e.hij(" ",e.lcZ(4,8,k.member.status)," "),e.xp6(3),e.hij(" ",e.lcZ(7,10,k.member.status)," "),e.xp6(2),e.Q6J("ngIf",k.authResolver.isThisVoAdmin(k.voId)&&!e.lcZ(9,12,k.member))}}function le(oe,ce){if(1&oe){const k=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){e.CHM(k);const be=e.oxw(4);return e.KtG(be.changeVoExpiration(!1))}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function ye(oe,ce){if(1&oe&&(e.TgZ(0,"div")(1,"i",19),e._uU(2),e.ALo(3,"parseDate"),e.qZA(),e.YNc(4,le,3,0,"button",17),e.ALo(5,"memberStatusDisabled"),e.qZA()),2&oe){const k=e.oxw(3);e.xp6(2),e.hij(" ",e.lcZ(3,2,k.voExpiration)," "),e.xp6(2),e.Q6J("ngIf",k.authResolver.isThisVoAdmin(k.voId)&&!e.lcZ(5,4,k.member))}}function Ve(oe,ce){if(1&oe&&(e.TgZ(0,"td",15),e.YNc(1,pe,10,14,"div",0),e.YNc(2,ye,6,6,"div",0),e.qZA()),2&oe){const k=ce.$implicit;e.xp6(1),e.Q6J("ngIf","Status"===k),e.xp6(1),e.Q6J("ngIf","Expiration"===k)}}function ve(oe,ce){1&oe&&e._UZ(0,"tr",20)}function Ke(oe,ce){if(1&oe&&(e.TgZ(0,"div")(1,"table",6),e.ynx(2,7),e.YNc(3,F,1,0,"th",8),e.YNc(4,V,2,1,"td",9),e.BQk(),e.ynx(5,10),e.YNc(6,X,1,0,"th",8),e.YNc(7,Ve,3,2,"td",11),e.BQk(),e.YNc(8,ve,1,0,"tr",12),e.qZA()()),2&oe){const k=e.oxw();e.xp6(1),e.Tol(k.openedInDialog?"mr-auto":"ml-auto mr-auto"),e.Q6J("dataSource",k.voMembershipDataSource),e.xp6(7),e.Q6J("matRowDefColumns",k.displayedColumns)}}let Ue=(()=>{class oe{constructor(k,N,be,W,ue,Me){this.dialog=k,this.authResolver=N,this.apiRequest=be,this.attributesManager=W,this.translate=ue,this.notificator=Me,this.openedInDialog=!1,this.statusChanged=new e.vpe,this.voMembershipDataSource=new f.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new f.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const k=(0,C.kZ)();k.width="600px",k.data={member:this.member,voId:this.voId,backButton:this.openedInDialog};const N=this.member.status;this.dialog.open(M.pf,k).afterClosed().subscribe(W=>{W&&(this.member=W,"VALID"===N&&("EXPIRED"===W.status||"DISABLED"===W.status)||"VALID"===W.status?this.changeVoExpiration(!0):this.dialog.closeAll())})}changeVoExpiration(k){const N=(0,C.kZ)();N.width="400px",N.data={voId:this.voId,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:k,backButton:this.openedInDialog},this.dialog.open(M.kZ,N).afterClosed().subscribe(W=>{W.success?(W.member&&(this.member=W.member),this.refreshVoExpiration(),this.dialog.closeAll()):k&&this.statusChanged.emit(k)})}refreshVoExpiration(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,D.r.MEMBER_DEF_EXPIRATION).subscribe({next:k=>{this.voExpirationAtt=k,this.voExpiration=k.value?k.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},error:k=>{"PrivilegeException"!==k.name?this.notificator.showError(k.name):this.voMembershipDataSource=new f.by(["Status"]),this.loading=!1}})}}return oe.\u0275fac=function(k){return new(k||oe)(e.Y36(T.uw),e.Y36(b.x4),e.Y36(b.F5),e.Y36(A.H8),e.Y36(R.sK),e.Y36(b.V6))},oe.\u0275cmp=e.Xpm({type:oe,selectors:[["perun-web-apps-member-overview-membership"]],inputs:{member:"member",voId:"voId",openedInDialog:"openedInDialog"},outputs:{statusChanged:"statusChanged"},features:[e.TTD],decls:5,vars:4,consts:[[4,"ngIf"],["class","mat-dialog-title",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[1,"page-subtitle"],[1,"mat-dialog-title"],[1,"mr-auto","ml-auto"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[1,"column-center"],["mat-row",""]],template:function(k,N){1&k&&(e.YNc(0,Be,5,3,"mat-card-header",0),e.YNc(1,E,3,3,"h1",1),e.TgZ(2,"mat-card-content"),e.YNc(3,z,1,0,"mat-spinner",2),e.YNc(4,Ke,9,4,"div",0),e.qZA()),2&k&&(e.Q6J("ngIf",!N.openedInDialog),e.xp6(1),e.Q6J("ngIf",N.openedInDialog),e.xp6(2),e.Q6J("ngIf",N.loading),e.xp6(1),e.Q6J("ngIf",!N.loading))},dependencies:[B.O5,f.BZ,f.fO,f.w1,f.Dz,f.nj,f.ge,f.ev,f.Gk,w.Ou,H.Hw,O.lW,J.dk,J.dn,J.n5,R.X$,ne.u,G.f,se.n,Oe.M,_e.r],styles:[".vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),oe})()},4811:($e,he,p)=>{"use strict";p.d(he,{m:()=>n});var e=p(21029),A=p(81591),C=p(9244),M=p(96308),f=p(56451),b=p(18505),D=p(61880),T=p(94650),R=p(65412),B=p(10036),w=p(36895),H=p(56709),O=p(30671),J=p(94364),ne=p(51572),G=p(98380),se=p(97392),Oe=p(10266),_e=p(18750),Be=p(34198),E=p(55660),z=p(89383),F=p(31359),V=p(69773),X=p(21757),q=p(12856),pe=p(20919),le=p(5865),ye=p(82514),Ve=p(96974),ve=p(38993),Ke=p(86349),Ue=p(9185),oe=p(8231),ce=p(14849);function k(o,s){1&o&&(T.TgZ(0,"div",20),T._UZ(1,"mat-spinner",21),T.qZA())}function N(o,s){if(1&o){const l=T.EpF();T.TgZ(0,"mat-checkbox",27),T.NdJ("change",function(c){T.CHM(l);const S=T.oxw(3);return T.KtG(c?S.masterToggle():null)}),T.ALo(1,"translate"),T.ALo(2,"masterCheckboxLabel"),T.qZA()}if(2&o){const l=T.oxw(2).ngIf,d=T.oxw();T.Q6J("aria-label",T.lcZ(1,3,T.lcZ(2,5,l.all)))("checked",d.selection.hasValue()&&l.all)("indeterminate",d.selection.hasValue()&&!l.all)}}function be(o,s){if(1&o&&(T.TgZ(0,"th",25),T.YNc(1,N,3,7,"mat-checkbox",26),T.qZA()),2&o){const l=T.oxw(2);T.xp6(1),T.Q6J("ngIf",l.selection.isMultipleSelection())}}const W=function(o){return{name:o}};function ue(o,s){if(1&o){const l=T.EpF();T.TgZ(0,"td",28)(1,"mat-checkbox",29),T.NdJ("change",function(c){const $=T.CHM(l).$implicit,ht=T.oxw(2);return T.KtG(c?ht.selection.toggle($):null)})("click",function(c){return c.stopPropagation()}),T.ALo(2,"translate"),T.ALo(3,"checkboxLabel"),T.ALo(4,"userFullName"),T.ALo(5,"lowercase"),T.ALo(6,"memberStatusDisabled"),T.ALo(7,"memberCheckboxLabel"),T.qZA()()}if(2&o){const l=s.$implicit,d=T.oxw(2);T.xp6(1),T.Q2q("data-cy","",T.lcZ(5,12,l.user.firstName),"-checkbox"),T.Q6J("aria-label",T.xi3(2,5,T.lcZ(3,8,d.selection.isSelected(l)),T.VKq(20,W,T.lcZ(4,10,l.user))))("checked",d.selection.isSelected(l))("disabled",T.xi3(6,14,l,d.groupId))("matTooltip",T.xi3(7,17,l,d.groupId))}}function Me(o,s){1&o&&(T.ynx(0,22),T.YNc(1,be,2,1,"th",23),T.YNc(2,ue,8,22,"td",24),T.BQk())}function ot(o,s){1&o&&(T.TgZ(0,"th",30),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&o&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.ID")))}function je(o,s){if(1&o&&(T.TgZ(0,"td",31),T._uU(1),T.qZA()),2&o){const l=s.$implicit;T.xp6(1),T.Oqu(l.id)}}function ut(o,s){1&o&&T._UZ(0,"th",30)}function tt(o,s){if(1&o){const l=T.EpF();T.TgZ(0,"mat-icon",34),T.NdJ("click",function(c){T.CHM(l);const S=T.oxw().$implicit,$=T.oxw();return T.KtG($.viewMemberGroupTree(c,S))}),T.ALo(1,"translate"),T._uU(2,"transfer_within_a_station"),T.qZA()}2&o&&T.Q6J("matTooltip",T.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function vt(o,s){if(1&o&&(T.TgZ(0,"td",32),T.YNc(1,tt,3,3,"mat-icon",33),T.qZA()),2&o){const l=s.$implicit;T.xp6(1),T.Q6J("ngIf","DIRECT"!==l.membershipType)}}function ee(o,s){1&o&&(T.TgZ(0,"th",30),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&o&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function nt(o,s){if(1&o&&(T.TgZ(0,"td",32),T.ALo(1,"lowercase"),T._uU(2),T.ALo(3,"userFullName"),T.qZA()),2&o){const l=s.$implicit;T.Q2q("data-cy","",T.lcZ(1,2,l.user.firstName),"-firstName-td"),T.xp6(2),T.hij(" ",T.lcZ(3,4,l.user)," ")}}function Ae(o,s){1&o&&(T.TgZ(0,"th",30),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&o&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function Ee(o,s){if(1&o){const l=T.EpF();T.TgZ(0,"td",32)(1,"i",35),T.NdJ("click",function(c){const $=T.CHM(l).$implicit,ht=T.oxw();return T.KtG(ht.openMembershipDialog(c,$))}),T.ALo(2,"memberStatusIconColor"),T.ALo(3,"memberStatusTooltip"),T.TgZ(4,"span"),T._uU(5),T.ALo(6,"memberStatusIcon"),T.qZA()()()}if(2&o){const l=s.$implicit,d=T.oxw();T.xp6(1),T.Gre("material-icons ",T.lcZ(2,7,l),""),T.ekj("cursor-default",!d.expireVoAuth),T.s9C("matTooltip",T.xi3(3,9,l,!1)),T.xp6(4),T.hij(" ",T.lcZ(6,12,l.status)," ")}}function ge(o,s){1&o&&(T.TgZ(0,"th",30),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&o&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function we(o,s){if(1&o){const l=T.EpF();T.TgZ(0,"td",32)(1,"i",35),T.NdJ("click",function(c){const $=T.CHM(l).$implicit,ht=T.oxw();return T.KtG(ht.openMembershipDialog(c,$,ht.groupId))}),T.ALo(2,"groupStatusIconColor"),T.ALo(3,"memberStatusTooltip"),T.TgZ(4,"span"),T._uU(5),T.ALo(6,"memberStatusIcon"),T.qZA()()()}if(2&o){const l=s.$implicit,d=T.oxw();T.xp6(1),T.Gre("material-icons ",T.Dn7(2,7,l.groupStatus,"INDIRECT"===l.membershipType,d.isMembersGroup),""),T.ekj("cursor-default",!d.expireGroupAuth),T.s9C("matTooltip",T.Dn7(3,11,l,!0,d.isMembersGroup)),T.xp6(4),T.hij(" ",T.lcZ(6,15,l.groupStatus)," ")}}function Ne(o,s){1&o&&(T.TgZ(0,"th",30),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&o&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function Ce(o,s){if(1&o&&(T.TgZ(0,"td",32),T._uU(1),T.ALo(2,"memberOrganization"),T.qZA()),2&o){const l=s.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,l))}}function fe(o,s){1&o&&(T.TgZ(0,"th",30),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&o&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function r(o,s){if(1&o&&(T.TgZ(0,"td",32),T._uU(1),T.ALo(2,"memberEmail"),T.qZA()),2&o){const l=s.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,l))}}function u(o,s){1&o&&(T.TgZ(0,"th",36),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&o&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function g(o,s){if(1&o&&(T.TgZ(0,"td",32),T._uU(1),T.ALo(2,"memberLogins"),T.qZA()),2&o){const l=s.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,l))}}function v(o,s){1&o&&T._UZ(0,"tr",37)}const h=function(o,s){return["/organizations",o,"members",s]};function a(o,s){if(1&o&&T._UZ(0,"tr",38),2&o){const l=s.$implicit,d=T.oxw();T.ekj("cursor-pointer",d.dataSource.routeAuth)("italic_font","INDIRECT"===l.membershipType)("disable-outline",d.disableRouting||!d.dataSource.routeAuth),T.Q6J("perunWebAppsMiddleClickRouterLink",d.disableRouting||!d.dataSource.routeAuth?null:T.WLB(8,h,l.voId,l.id))("routerLink",d.disableRouting||!d.dataSource.routeAuth?null:T.WLB(11,h,l.voId,l.id))}}function i(o,s){1&o&&(T.TgZ(0,"perun-web-apps-alert",39),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&o&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}const t=function(o){return{all:o}};let n=(()=>{class o{constructor(l,d,c,S,$,ht){this.dialog=l,this.authResolver=d,this.tableCheckbox=c,this.tableConfigService=S,this.dynamicPaginatingService=$,this.entityStorage=ht,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.disableRouting=!1,this.pageSizeOptions=C.f7,this.canBeSelected=ze=>!(0,C.im)(ze)}static getExportDataForColumn(l,d){switch(d){case"id":return l.id.toString();case"fullName":return l.user?(0,C.bD)(l.user):"";case"status":return l.status;case"groupStatus":return l.groupStatus;case"organization":return(0,C.Gw)(l);case"email":return(0,C.g$)(l);case"logins":return(0,C.lt)(l);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,f.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,b.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.expireGroupAuth=this.authResolver.isAuthorized("setMemberGroupStatus_Member_Group_MemberGroupStatus_policy",[this.entityStorage.getEntity()]),this.expireVoAuth=this.authResolver.isAuthorized("setStatus_Member_Status_policy",[this.entityStorage.getEntity()]),this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l)),this.dataSource=new A.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.tableConfigService.getTablePageSize(this.tableId),"NAME",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadMembersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(l=>{this.canBeSelected(l)&&this.selection.select(l)})}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().filter(c=>this.canBeSelected(c)).length}openMembershipDialog(l,d,c){l.stopPropagation();const S=(0,C.zr)(d);if(c){if(!this.expireGroupAuth||this.isMembersGroup||"INDIRECT"===S)return}else if(!this.expireVoAuth||"UNALTERABLE"===S)return;const $=(0,C.kZ)();$.minWidth="280px",$.data={member:d,voId:this.voId,groupId:c},this.dialog.open(D.z,$).afterClosed().subscribe(ze=>{ze||this.loadMembersPage()})}loadMembersPage(){const l="asc"===this.sort.direction?"ASCENDING":"DESCENDING",d=this.getSortColumn(this.sort.active);this.dataSource.loadMembers(this.voId,this.attrNames,l,this.child.paginator.pageIndex,this.child.paginator.pageSize,d,this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}exportDisplayedData(l){(0,C.O6)((0,C.Xn)(this.dataSource.getData(),this.displayedColumns,o.getExportDataForColumn),l)}exportAllData(l){const d="asc"===this.sort.direction?"ASCENDING":"DESCENDING",c=this.getSortColumn(this.sort.active),S=(0,C.kZ)();S.width="300px";const $=this.dialog.open(e.QQ,S);this.dataSource.getAllMembers(this.voId,this.attrNames,d,this.child.paginator.length,c,this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses).subscribe(ht=>{$.close(),(0,C.O6)((0,C.Xn)(ht,this.displayedColumns,o.getExportDataForColumn),l)})}viewMemberGroupTree(l,d){l.stopPropagation();const c=(0,C.kZ)();c.width="800px",c.data={member:d,groupId:this.groupId},this.dialog.open(e.jd,c)}getSortColumn(l){switch(l){case"fullName":return"NAME";case"organization":return"ORGANIZATION";case"email":return"EMAIL";case"status":return"STATUS";case"groupStatus":return"GROUP_STATUS";default:return"ID"}}}return o.\u0275fac=function(l){return new(l||o)(T.Y36(R.uw),T.Y36(A.x4),T.Y36(A.UA),T.Y36(B.dB),T.Y36(A.ly),T.Y36(A.fb))},o.\u0275cmp=T.Xpm({type:o,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(l,d){if(1&l&&(T.Gf(C.l9,7),T.Gf(M.YE,5)),2&l){let c;T.iGM(c=T.CRH())&&(d.child=c.first),T.iGM(c=T.CRH())&&(d.sort=c.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable",isMembersGroup:"isMembersGroup",disableRouting:"disableRouting"},features:[T.TTD],decls:36,vars:22,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","italic_font","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click",4,"ngIf"],[3,"matTooltip","click"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(l,d){1&l&&(T.TgZ(0,"div",0),T.ALo(1,"async"),T.TgZ(2,"perun-web-apps-table-wrapper",1),T.NdJ("exportDisplayedData",function(S){return d.exportDisplayedData(S)})("exportAllData",function(S){return d.exportAllData(S)}),T.YNc(3,k,2,0,"div",2),T.ALo(4,"async"),T.TgZ(5,"table",3),T.YNc(6,Me,3,0,"ng-container",4),T.ALo(7,"isAllSelected"),T.ynx(8,5),T.YNc(9,ot,3,3,"th",6),T.YNc(10,je,2,1,"td",7),T.BQk(),T.ynx(11,8),T.YNc(12,ut,1,0,"th",6),T.YNc(13,vt,2,1,"td",9),T.BQk(),T.ynx(14,10),T.YNc(15,ee,3,3,"th",6),T.YNc(16,nt,4,6,"td",9),T.BQk(),T.ynx(17,11),T.YNc(18,Ae,3,3,"th",6),T.YNc(19,Ee,7,14,"td",9),T.BQk(),T.ynx(20,12),T.YNc(21,ge,3,3,"th",6),T.YNc(22,we,7,17,"td",9),T.BQk(),T.ynx(23,13),T.YNc(24,Ne,3,3,"th",6),T.YNc(25,Ce,3,3,"td",9),T.BQk(),T.ynx(26,14),T.YNc(27,fe,3,3,"th",6),T.YNc(28,r,3,3,"td",9),T.BQk(),T.ynx(29,15),T.YNc(30,u,3,3,"th",16),T.YNc(31,g,3,3,"td",9),T.BQk(),T.YNc(32,v,1,0,"tr",17),T.YNc(33,a,1,14,"tr",18),T.qZA()()(),T.YNc(34,i,3,3,"perun-web-apps-alert",19),T.ALo(35,"async")),2&l&&(T.Q6J("hidden",0===d.dataSource.allObjectCount&&!1===T.lcZ(1,10,d.dataSource.loading$)),T.xp6(2),T.Q6J("tableId",d.tableId)("dataLength",d.dataSource.allObjectCount)("pageSizeOptions",d.pageSizeOptions),T.xp6(1),T.Q6J("ngIf",T.lcZ(4,12,d.dataSource.loading$)),T.xp6(2),T.Q6J("dataSource",d.dataSource),T.xp6(1),T.Q6J("ngIf",T.VKq(20,t,T.Dn7(7,14,d.dataSource,d.selection.selected.length,d.canBeSelected))),T.xp6(26),T.Q6J("matHeaderRowDef",d.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",d.displayedColumns),T.xp6(1),T.Q6J("ngIf",0===d.dataSource.allObjectCount&&!1===T.lcZ(35,18,d.dataSource.loading$)))},dependencies:[w.O5,H.oG,O.BZ,O.fO,O.as,O.w1,O.Dz,O.nj,O.ge,O.ev,O.XQ,O.Gk,J.rH,M.YE,M.nU,ne.Ou,G.w,se.Hw,Oe.gM,_e.l,Be.Y,E.Q,w.Ov,w.i8,z.X$,F.d,V.u,X.f,q.i,pe.D,le.p,ye.F,Ve.M,ve.n,Ke.A,Ue.I,oe.G,ce.r],styles:[".italic_font{font-style:italic}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.status-tooltip{white-space:pre-line}\n"],encapsulation:2}),o})()},38383:($e,he,p)=>{"use strict";p.d(he,{O:()=>o});var e=p(94650),A=p(96308),C=p(30671),M=p(95017),f=p(9244),b=p(21029),D=p(81591),T=p(65412),R=p(94364),B=p(36895),w=p(56709),H=p(98380),O=p(97392),J=p(10266),ne=p(18750),G=p(34198),se=p(55660),Oe=p(89383),_e=p(31359),Be=p(69773),E=p(21757),z=p(12856),F=p(20919),V=p(5865),X=p(82514),q=p(96974),pe=p(9185),le=p(8231),ye=p(14849);function Ve(s,l){if(1&s){const d=e.EpF();e.TgZ(0,"mat-checkbox",29),e.NdJ("change",function(S){e.CHM(d);const $=e.oxw(3);return e.KtG(S?$.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&s){const d=e.oxw(2).ngIf,c=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,d.all)))("checked",c.selection.hasValue()&&d.all)("indeterminate",c.selection.hasValue()&&!d.all)}}function ve(s,l){if(1&s&&(e.TgZ(0,"th",27),e.YNc(1,Ve,3,7,"mat-checkbox",28),e.qZA()),2&s){const d=e.oxw(2);e.xp6(1),e.Q6J("ngIf",d.selection.isMultipleSelection())}}const Ke=function(s){return{name:s}};function Ue(s,l){if(1&s){const d=e.EpF();e.TgZ(0,"td",30)(1,"mat-checkbox",31),e.NdJ("change",function(S){const ht=e.CHM(d).$implicit,ze=e.oxw(2);return e.KtG(S?ze.selection.toggle(ht):null)})("click",function(S){return S.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.ALo(4,"userFullName"),e.ALo(5,"translate"),e.qZA()()}if(2&s){const d=l.$implicit,c=e.oxw(2);e.xp6(1),e.Q2q("data-cy","",d.user.firstName,"-checkbox"),e.Q6J("aria-label",e.xi3(2,5,e.lcZ(3,8,c.selection.isSelected(d)),e.VKq(14,Ke,e.lcZ(4,10,d))))("checked",c.selection.isSelected(d))("disabled",c.allowCheckboxDisabled&&"DIRECT"!==d.membershipType)("matTooltip",c.allowCheckboxDisabled&&"DIRECT"!==d.membershipType?e.lcZ(5,12,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function oe(s,l){1&s&&(e.ynx(0,24),e.YNc(1,ve,2,1,"th",25),e.YNc(2,Ue,6,16,"td",26),e.BQk())}function ce(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.ID")))}function k(s,l){if(1&s&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(d.id)}}function N(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.VO_ID")," "))}function be(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(d.voId)}}function W(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.USER_ID")," "))}function ue(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(d.userId)}}function Me(s,l){1&s&&e._UZ(0,"th",32)}function ot(s,l){if(1&s){const d=e.EpF();e.TgZ(0,"mat-icon",36),e.NdJ("click",function(){e.CHM(d);const S=e.oxw().$implicit,$=e.oxw();return e.KtG($.viewMemberGroupTree(S))})("mouseenter",function(){e.CHM(d);const S=e.oxw(2);return e.KtG(S.disableRouting=!0)})("mouseleave",function(){e.CHM(d);const S=e.oxw(2);return e.KtG(S.disableRouting=S.disabledRouting)}),e.ALo(1,"translate"),e._uU(2,"transfer_within_a_station"),e.qZA()}2&s&&e.Q6J("matTooltip",e.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function je(s,l){if(1&s&&(e.TgZ(0,"td",34),e.YNc(1,ot,3,3,"mat-icon",35),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Q6J("ngIf","DIRECT"!==d.membershipType)}}function ut(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function tt(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d.user))}}function vt(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function ee(s,l){if(1&s){const d=e.EpF();e.TgZ(0,"td",34)(1,"i",37),e.NdJ("click",function(S){const ht=e.CHM(d).$implicit,ze=e.oxw();return e.KtG(ze.changeStatus(S,ht))}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&s){const d=l.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,d),""),e.s9C("matTooltip",e.xi3(3,7,d,!1)),e.xp6(4),e.hij(" ",e.lcZ(6,10,d.status)," ")}}function nt(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function Ae(s,l){if(1&s){const d=e.EpF();e.TgZ(0,"td",34)(1,"i",37),e.NdJ("click",function(S){const ht=e.CHM(d).$implicit,ze=e.oxw();return e.KtG(ze.changeStatus(S,ht))}),e.ALo(2,"groupStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&s){const d=l.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,d.groupStatus),""),e.s9C("matTooltip",e.xi3(3,7,d,!0)),e.xp6(4),e.hij(" ",e.lcZ(6,10,d.groupStatus)," ")}}function Ee(s,l){1&s&&(e.TgZ(0,"th",38),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")," "))}function ge(s,l){1&s&&(e.TgZ(0,"mat-icon"),e._uU(1,"check_circle_outline"),e.qZA())}function we(s,l){if(1&s&&(e.TgZ(0,"td",39),e.YNc(1,ge,2,0,"mat-icon",40),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Q6J("ngIf",d.sponsored)}}function Ne(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function Ce(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"memberOrganization"),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function fe(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function r(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"memberEmail"),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function u(s,l){1&s&&(e.TgZ(0,"th",41),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function g(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"memberLogins"),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function v(s,l){1&s&&e._UZ(0,"tr",42)}const h=function(s,l){return["/organizations",s,"members",l]};function a(s,l){if(1&s&&e._UZ(0,"tr",43),2&s){const d=l.$implicit,c=e.oxw();e.ekj("cursor-pointer",!c.disabledRouting)("disable-outline",c.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",c.disableRouting?null:e.WLB(6,h,d.voId,d.id))("routerLink",c.disableRouting?null:e.WLB(9,h,d.voId,d.id))}}function i(s,l){1&s&&(e.TgZ(0,"perun-web-apps-alert",44),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function t(s,l){1&s&&(e.TgZ(0,"perun-web-apps-alert",44),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}const n=function(s){return{all:s}};let o=(()=>{class s{constructor(d,c,S,$){this.dialog=d,this.authResolver=c,this.tableCheckbox=S,this.route=$,this.selection=new M.Ov,this.displayedColumns=["checkbox","id","voId","userId","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.disableStatusChange=!1,this.disableExpirationChange=!1,this.allowCheckboxDisabled=!0,this.disableRouting=!1,this.filter="",this.updateTable=new e.vpe,this.pageSizeOptions=f.f7,this.getExportDataForColumnFun=(ht,ze)=>s.getExportDataForColumn(ht,ze,this.showGroupStatuses),this.getSortDataForColumnFun=(ht,ze)=>s.getSortDataForColumn(ht,ze,this.showGroupStatuses),this.canBeSelected=ht=>"DIRECT"===ht.membershipType}set matSort(d){this.sort=d}static getFilterDataForColumn(d,c){switch(c){case"fullName":return d.user?(0,f.bD)(d.user):"";case"email":return(0,f.g$)(d);case"logins":return(0,f.lt)(d);default:return""}}static getExportDataForColumn(d,c,S){switch(c){case"id":return d.id.toString();case"fullName":return d.user?(0,f.bD)(d.user):"";case"status":return S?d.groupStatus:d.status;case"organization":return(0,f.Gw)(d);case"email":return(0,f.g$)(d);case"logins":return(0,f.lt)(d);default:return""}}static getSortDataForColumn(d,c,S){switch(c){case"id":return d.id.toString();case"fullName":return d.user?d.user.lastName?d.user.lastName:d.user.firstName??"":"";case"status":return S?d.groupStatus:d.status;case"organization":return(0,f.Gw)(d);case"email":return(0,f.g$)(d);default:return""}}exportDisplayedData(d){const c=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,S=c+this.dataSource.paginator.pageSize;(0,f.O6)((0,f.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(c,S),this.displayedColumns,this.getExportDataForColumnFun),d)}exportAllData(d){(0,f.O6)((0,f.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),d)}setDataSource(){this.dataSource||(this.dataSource=new C.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(d,c)=>(0,f.Sd)(d,c,this.displayedColumns,s.getFilterDataForColumn),this.dataSource.sortData=(d,c)=>(0,f.pR)(d,c,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.members}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(d=>"id"!==d))}ngOnChanges(){this.setDataSource(),this.disabledRouting=this.disableRouting,this.route.parent?.params.subscribe(d=>{d.groupId&&(this.groupId=Number(d.groupId))})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}changeStatus(d,c){if(d.stopPropagation(),!this.disableStatusChange){const S=(0,f.kZ)();S.width="500px",S.data={member:c,disableChangeExpiration:this.disableExpirationChange},this.dialog.open(b.pf,S).afterClosed().subscribe(ht=>{ht&&this.updateTable.emit(!0)})}}viewMemberGroupTree(d){const c=(0,f.kZ)();c.width="800px",c.data={member:d,groupId:this.groupId},this.dialog.open(b.jd,c)}}return s.\u0275fac=function(d){return new(d||s)(e.Y36(T.uw),e.Y36(D.x4),e.Y36(D.UA),e.Y36(R.gz))},s.\u0275cmp=e.Xpm({type:s,selectors:[["perun-web-apps-members-list"]],viewQuery:function(d,c){if(1&d&&(e.Gf(f.l9,7),e.Gf(A.YE,7)),2&d){let S;e.iGM(S=e.CRH())&&(c.child=S.first),e.iGM(S=e.CRH())&&(c.matSort=S.first)}},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",disableStatusChange:"disableStatusChange",disableExpirationChange:"disableExpirationChange",allowCheckboxDisabled:"allowCheckboxDisabled",tableId:"tableId",disableRouting:"disableRouting",filter:"filter"},outputs:{updateTable:"updateTable"},features:[e.TTD],decls:42,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["matColumnDef","type"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","sponsored"],["class","center new-line","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],[3,"matTooltip","click","mouseenter","mouseleave"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-cell","",1,"center","new-line"],["mat-cell","",1,"center"],[4,"ngIf"],["mat-header-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(d,c){1&d&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function($){return c.exportDisplayedData($)})("exportAllData",function($){return c.exportAllData($)}),e.TgZ(2,"table",2),e.YNc(3,oe,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,ce,3,3,"th",5),e.YNc(7,k,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,N,3,3,"th",5),e.YNc(10,be,2,1,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,W,3,3,"th",5),e.YNc(13,ue,2,1,"td",8),e.BQk(),e.ynx(14,10),e.YNc(15,Me,1,0,"th",5),e.YNc(16,je,2,1,"td",8),e.BQk(),e.ynx(17,11),e.YNc(18,ut,3,3,"th",5),e.YNc(19,tt,3,3,"td",8),e.BQk(),e.ynx(20,12),e.YNc(21,vt,3,3,"th",5),e.YNc(22,ee,7,12,"td",8),e.BQk(),e.ynx(23,13),e.YNc(24,nt,3,3,"th",5),e.YNc(25,Ae,7,12,"td",8),e.BQk(),e.ynx(26,14),e.YNc(27,Ee,3,3,"th",15),e.YNc(28,we,2,1,"td",16),e.BQk(),e.ynx(29,17),e.YNc(30,Ne,3,3,"th",5),e.YNc(31,Ce,3,3,"td",8),e.BQk(),e.ynx(32,18),e.YNc(33,fe,3,3,"th",5),e.YNc(34,r,3,3,"td",8),e.BQk(),e.ynx(35,19),e.YNc(36,u,3,3,"th",20),e.YNc(37,g,3,3,"td",8),e.BQk(),e.YNc(38,v,1,0,"tr",21),e.YNc(39,a,1,12,"tr",22),e.qZA()()(),e.YNc(40,i,3,3,"perun-web-apps-alert",23),e.YNc(41,t,3,3,"perun-web-apps-alert",23)),2&d&&(e.Q6J("hidden",0===c.members.length||!c.dataSource||0===c.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",c.dataSource.filteredData.length)("tableId",c.tableId)("pageSizeOptions",c.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",c.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(14,n,e.Dn7(4,10,c.dataSource,c.selection.selected.length,c.canBeSelected))),e.xp6(35),e.Q6J("matHeaderRowDef",c.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",c.displayedColumns),e.xp6(1),e.Q6J("ngIf",0!==c.members.length&&0===c.dataSource.filteredData.length),e.xp6(1),e.Q6J("ngIf",0===c.members.length))},dependencies:[B.O5,w.oG,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,R.rH,A.YE,A.nU,H.w,O.Hw,J.gM,ne.l,G.Y,se.Q,Oe.X$,_e.d,Be.u,E.f,z.i,F.D,V.p,X.F,q.M,pe.I,le.G,ye.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .status-tooltip{white-space:pre-line}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.center[_ngcontent-%COMP%]{text-align:center}.new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),s})()},22465:($e,he,p)=>{"use strict";p.d(he,{c:()=>w});var e=p(94650),A=p(81591),C=p(9244),M=p(21029),f=p(65412),b=p(36895),D=p(97392),T=p(89383);function R(H,O){if(1&H&&(e.TgZ(0,"div",5)(1,"mat-icon"),e._uU(2),e.qZA()()),2&H){const J=e.oxw();e.xp6(2),e.Oqu(J.data.icon)}}function B(H,O){if(1&H&&(e.TgZ(0,"div",6),e._uU(1),e.qZA()),2&H){const J=e.oxw();e.xp6(1),e.hij(" ",J.showTimestamp()," ")}}let w=(()=>{class H{constructor(J,ne){this.dialog=J,this.notificationStorageService=ne,this.newNotification=!1,this.closeNotification=new e.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const J=(0,C.kZ)();J.width="550px",J.data=this.data,J.autoFocus=!1,this.dialog.open(M.FM,J).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,C.ys)(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[J,ne]=this.data.timeStamp.split(":");return ne.length<2?J+":0"+ne:this.data.timeStamp}}return H.\u0275fac=function(J){return new(J||H)(e.Y36(f.uw),e.Y36(A.SZ))},H.\u0275cmp=e.Xpm({type:H,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(J,ne){1&J&&(e.TgZ(0,"div")(1,"div",0),e.NdJ("click",function(){return ne.alreadyClosed||ne.waiting?"":ne.closeSelf()}),e.YNc(2,R,3,1,"div",1),e.TgZ(3,"div",2),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.YNc(6,B,2,1,"div",3),e.TgZ(7,"div",4),e.NdJ("click",function(){return ne.waiting=!0,ne.doAction()}),e._uU(8),e.qZA()()()),2&J&&(e.Gre("notification ",ne.inDialog?"":"mat-elevation-z7",""),e.ekj("error","error"===ne.data.type)("success","success"===ne.data.type),e.xp6(2),e.Q6J("ngIf",null!==ne.data.icon),e.xp6(2),e.hij(" ",e.lcZ(5,12,ne.data.title)," "),e.xp6(2),e.Q6J("ngIf",ne.inDialog),e.xp6(1),e.Q6J("hidden",ne.alreadyPressed),e.xp6(1),e.hij(" ",ne.data.actionText," "))},dependencies:[b.O5,D.Hw,T.X$],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),H})()},53599:($e,he,p)=>{"use strict";p.d(he,{N:()=>pe});var e=p(94650),A=p(61744),C=p(81591),M=p(30671),f=p(9244),b=p(21029),D=p(40034),T=p(65412),R=p(94364),B=p(36895),w=p(96308),H=p(98380),O=p(4859),J=p(89383),ne=p(34447);function G(le,ye){1&le&&(e.TgZ(0,"perun-web-apps-alert"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&le&&(e.xp6(1),e.Oqu(e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function se(le,ye){1&le&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&le&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function Oe(le,ye){if(1&le&&(e.TgZ(0,"td",17),e._uU(1),e.qZA()),2&le){const Ve=ye.$implicit;e.xp6(1),e.Oqu(Ve.friendlyNameParameter)}}function _e(le,ye){1&le&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&le&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function Be(le,ye){if(1&le&&(e.TgZ(0,"td",18),e._uU(1),e.qZA()),2&le){const Ve=ye.$implicit;e.xp6(1),e.Oqu(Ve.value)}}function E(le,ye){1&le&&e._UZ(0,"th",16)}function z(le,ye){if(1&le){const Ve=e.EpF();e.TgZ(0,"td",19)(1,"button",20),e.NdJ("click",function(){const Ue=e.CHM(Ve).$implicit,oe=e.oxw();return e.KtG(oe.resetPassword(Ue.friendlyNameParameter))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&le){const Ve=ye.$implicit,ve=e.oxw();e.xp6(1),e.Q6J("disabled",!ve.logins.includes(Ve)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function F(le,ye){1&le&&e._UZ(0,"th",16)}function V(le,ye){if(1&le){const Ve=e.EpF();e.TgZ(0,"td",19)(1,"button",21),e.NdJ("click",function(){const Ue=e.CHM(Ve).$implicit,oe=e.oxw();return e.KtG(oe.changePassword(Ue))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&le){const Ve=ye.$implicit,ve=e.oxw();e.xp6(1),e.Q6J("disabled",!ve.logins.includes(Ve)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function X(le,ye){1&le&&e._UZ(0,"tr",22)}function q(le,ye){1&le&&e._UZ(0,"tr",23)}let pe=(()=>{class le{constructor(Ve,ve,Ke,Ue,oe,ce,k){this.attributesManagerService=Ve,this.store=ve,this.dialog=Ke,this.route=Ue,this.router=oe,this.otherApplicationService=ce,this.entityStorageService=k,this.authenticationPage=!1,this.filteredNamespaces=new e.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.getProperty("password_namespace_attributes").map(Ve=>{const ve=Ve.split(":");return ve[ve.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe(Ve=>{if(this.logins=Ve.filter(ve=>this.nameSpaces.includes(ve.friendlyNameParameter)),this.filteredNamespaces.emit(Ve.map(ve=>ve.friendlyNameParameter)),this.dataSource=new M.by(Ve),!this.authenticationPage){const Ke=this.route.snapshot.queryParamMap.get("namespace");if(Ke){const Ue=this.logins.find(oe=>oe.friendlyNameParameter===Ke);Ue&&this.changePassword(Ue)}}})}resetPassword(Ve){window.open(this.otherApplicationService.getUrlForOtherApplication(D.p.PwdReset,Ve),"_blank")}changePassword(Ve){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:Ve.friendlyNameParameter},queryParamsHandling:"merge"});const ve=(0,f.kZ)();ve.width="600px",ve.data={login:String(Ve.value),namespace:Ve.friendlyName.split(":")[1]},this.dialog.open(b.xF,ve).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return le.\u0275fac=function(Ve){return new(Ve||le)(e.Y36(A.H8),e.Y36(C.d6),e.Y36(T.uw),e.Y36(R.gz),e.Y36(R.F0),e.Y36(C.jq),e.Y36(C.fb))},le.\u0275cmp=e.Xpm({type:le,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(Ve,ve){1&Ve&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA(),e.YNc(4,G,4,5,"perun-web-apps-alert",1),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),e.ynx(9,6),e.YNc(10,se,4,5,"th",7),e.YNc(11,Oe,2,1,"td",8),e.BQk(),e.ynx(12,9),e.YNc(13,_e,4,5,"th",7),e.YNc(14,Be,2,1,"td",10),e.BQk(),e.ynx(15,11),e.YNc(16,E,1,0,"th",7),e.YNc(17,z,5,6,"td",12),e.BQk(),e.ynx(18,13),e.YNc(19,F,1,0,"th",7),e.YNc(20,V,5,6,"td",12),e.BQk(),e.YNc(21,X,1,0,"tr",14),e.YNc(22,q,1,0,"tr",15),e.qZA()()()()),2&Ve&&(e.xp6(1),e.hij(" ",ve.authenticationPage?"":e.lcZ(2,5,e.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),e.xp6(3),e.Q6J("ngIf",!ve.logins.length&&!ve.authenticationPage),e.xp6(4),e.Q6J("dataSource",ve.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",ve.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",ve.displayedColumns))},dependencies:[B.O5,M.BZ,M.fO,M.as,M.w1,M.Dz,M.nj,M.ge,M.ev,M.XQ,M.Gk,w.YE,H.w,O.lW,J.X$,ne.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),le})()},41619:($e,he,p)=>{"use strict";p.d(he,{$:()=>Ue});var e=p(81591),A=p(61744),C=p(94650),M=p(65412),f=p(89383),b=p(36895),D=p(24006),T=p(4859),R=p(59549),B=p(284);function w(oe,ce){1&oe&&(C.TgZ(0,"mat-error"),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&oe&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let H=(()=>{class oe{constructor(k,N,be,W,ue){this.dialogRef=k,this.translate=N,this.notificator=be,this.rtMessages=W,this.storeService=ue,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(k=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(k.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",p(4147).i8)}close(){this.dialogRef.close()}}return oe.\u0275fac=function(k){return new(k||oe)(C.Y36(M.so),C.Y36(f.sK),C.Y36(e.V6),C.Y36(A.Hr),C.Y36(e.d6))},oe.\u0275cmp=C.Xpm({type:oe,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(k,N){if(1&k&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),C._uU(6),C.ALo(7,"translate"),C.qZA(),C.TgZ(8,"input",2,3),C.NdJ("ngModelChange",function(W){return N.subject=W}),C.qZA(),C.YNc(10,w,3,3,"mat-error",4),C.qZA(),C.TgZ(11,"mat-form-field")(12,"mat-label"),C._uU(13),C.ALo(14,"translate"),C.qZA(),C.TgZ(15,"textarea",5),C.NdJ("ngModelChange",function(W){return N.message=W}),C.ALo(16,"translate"),C._uU(17," "),C.qZA(),C.TgZ(18,"mat-hint"),C._uU(19),C.ALo(20,"translate"),C.qZA()()(),C.TgZ(21,"div",6)(22,"div",7)(23,"button",8),C.NdJ("click",function(){return N.close()}),C._uU(24),C.ALo(25,"translate"),C.qZA(),C.TgZ(26,"button",9),C.NdJ("click",function(){return N.sendBugReport()}),C._uU(27),C.ALo(28,"translate"),C.qZA()()()),2&k){const be=C.MAs(9);C.xp6(1),C.Oqu(C.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),C.xp6(5),C.Oqu(C.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),C.xp6(2),C.Q6J("ngModel",N.subject),C.xp6(2),C.Q6J("ngIf",be.invalid),C.xp6(3),C.Oqu(C.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),C.xp6(2),C.s9C("placeholder",C.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),C.Q6J("ngModel",N.message),C.xp6(4),C.Oqu(C.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),C.xp6(5),C.hij(" ",C.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),C.xp6(2),C.Q6J("disabled",be.invalid),C.xp6(1),C.hij(" ",C.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[b.O5,D.Fj,D.JJ,D.Q7,D.On,T.lW,R.TO,R.KE,R.bx,R.hX,B.Nt,M.uh,M.xY,M.H8,f.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),oe})();var O=p(9244);let J=(()=>{class oe{transform(k,N,be){return k[`${be}_${N}`]}}return oe.\u0275fac=function(k){return new(k||oe)},oe.\u0275pipe=C.Yjl({name:"localisedText",type:oe,pure:!0}),oe})(),ne=(()=>{class oe{transform(k,N){return k["link_"+N]||k.link_en}}return oe.\u0275fac=function(k){return new(k||oe)},oe.\u0275pipe=C.Yjl({name:"localisedLink",type:oe,pure:!0}),oe})(),G=(()=>{class oe{transform(k){return k.includes("/")?k:"/assets/config/"+k}}return oe.\u0275fac=function(k){return new(k||oe)},oe.\u0275pipe=C.Yjl({name:"footerLogoPath",type:oe,pure:!0}),oe})();function se(oe,ce){if(1&oe&&(C.TgZ(0,"a",13),C.ALo(1,"localisedLink"),C._UZ(2,"img",14),C.ALo(3,"footerLogoPath"),C.qZA()),2&oe){const k=C.oxw().$implicit,N=C.oxw(3);C.Q6J("href",C.xi3(1,2,k,N.language),C.LSH),C.xp6(2),C.s9C("src",C.lcZ(3,5,k.logo),C.LSH)}}function Oe(oe,ce){if(1&oe&&(C.TgZ(0,"span"),C._UZ(1,"img",14),C.ALo(2,"footerLogoPath"),C.qZA()),2&oe){const k=C.oxw().$implicit;C.xp6(1),C.s9C("src",C.lcZ(2,1,k.logo),C.LSH)}}function _e(oe,ce){if(1&oe&&(C.TgZ(0,"div"),C.YNc(1,se,4,7,"a",11),C.ALo(2,"localisedLink"),C.YNc(3,Oe,3,3,"span",12),C.ALo(4,"localisedLink"),C.qZA()),2&oe){const k=ce.$implicit,N=C.oxw(3);C.xp6(1),C.Q6J("ngIf",C.xi3(2,2,k,N.language)),C.xp6(2),C.Q6J("ngIf",!C.xi3(4,5,k,N.language))}}const Be=function(oe){return{"min-height":oe}};function E(oe,ce){if(1&oe&&(C.TgZ(0,"div",10),C.YNc(1,_e,5,8,"div",5),C.qZA()),2&oe){const k=C.oxw().$implicit,N=C.oxw();C.Q6J("ngStyle",C.VKq(2,Be,N.columnContentHeight+"px")),C.xp6(1),C.Q6J("ngForOf",k.elements)}}const z=function(oe){return{color:oe}};function F(oe,ce){if(1&oe&&(C.TgZ(0,"i",20),C._uU(1),C.qZA()),2&oe){const k=C.oxw().$implicit,N=C.oxw(3);C.Q6J("ngStyle",C.VKq(2,z,N.linksTextColor)),C.xp6(1),C.hij(" ",k.icon," ")}}function V(oe,ce){if(1&oe){const k=C.EpF();C.TgZ(0,"span",21),C.NdJ("click",function(){C.CHM(k);const be=C.oxw().$implicit,W=C.oxw(3);return C.KtG(W.openDialog(be.dialog))}),C._uU(1),C.ALo(2,"localisedText"),C.qZA()}if(2&oe){const k=C.oxw().$implicit,N=C.oxw(3);C.Q6J("ngStyle",C.VKq(6,z,N.linksTextColor)),C.xp6(1),C.hij("",C.Dn7(2,2,k,N.language,"label")," ")}}function X(oe,ce){if(1&oe&&(C.TgZ(0,"a",22),C.ALo(1,"localisedLink"),C._uU(2),C.ALo(3,"localisedText"),C.qZA()),2&oe){const k=C.oxw().$implicit,N=C.oxw(3);C.Q6J("href",C.xi3(1,3,k,N.language),C.LSH)("ngStyle",C.VKq(10,z,N.linksTextColor)),C.xp6(2),C.Oqu(C.Dn7(3,6,k,N.language,"label"))}}function q(oe,ce){if(1&oe&&(C.TgZ(0,"span",10),C._uU(1),C.ALo(2,"localisedText"),C.qZA()),2&oe){const k=C.oxw().$implicit,N=C.oxw(3);C.Q6J("ngStyle",C.VKq(6,z,N.linksTextColor)),C.xp6(1),C.Oqu(C.Dn7(2,2,k,N.language,"label"))}}function pe(oe,ce){if(1&oe&&(C.TgZ(0,"div",16),C.YNc(1,F,2,4,"i",17),C.YNc(2,V,3,8,"span",18),C.YNc(3,X,4,12,"a",19),C.ALo(4,"localisedLink"),C.YNc(5,q,3,8,"span",9),C.ALo(6,"localisedLink"),C.qZA()),2&oe){const k=ce.$implicit,N=C.oxw(3);C.xp6(1),C.Q6J("ngIf",k.icon),C.xp6(1),C.Q6J("ngIf",k.dialog),C.xp6(1),C.Q6J("ngIf",C.xi3(4,4,k,N.language)&&!k.dialog),C.xp6(2),C.Q6J("ngIf",!C.xi3(6,7,k,N.language)&&!k.dialog)}}const le=function(oe){return{height:oe}};function ye(oe,ce){if(1&oe&&(C.TgZ(0,"div",10),C.YNc(1,pe,7,10,"div",15),C.qZA()),2&oe){const k=C.oxw().$implicit,N=C.oxw();C.Q6J("ngStyle",C.VKq(2,le,N.columnContentHeight+"px")),C.xp6(1),C.Q6J("ngForOf",k.elements)}}function Ve(oe,ce){if(1&oe&&(C.TgZ(0,"div",7)(1,"h6",8),C._uU(2),C.ALo(3,"localisedText"),C.qZA(),C.YNc(4,E,2,4,"div",9),C.YNc(5,ye,2,4,"div",9),C.qZA()),2&oe){const k=ce.$implicit,N=C.oxw();C.ekj("my-auto",N.containsLogos),C.xp6(1),C.Q6J("ngStyle",C.VKq(10,z,N.headersTextColor)),C.xp6(1),C.hij(" ",C.Dn7(3,6,k,N.language,"title")," "),C.xp6(2),C.Q6J("ngIf",k.logos),C.xp6(1),C.Q6J("ngIf",k.elements&&!k.logos)}}function ve(oe,ce){if(1&oe&&(C.TgZ(0,"span")(1,"a",6),C._uU(2),C.qZA()()),2&oe){const k=ce.$implicit,N=ce.index,be=C.oxw();C.xp6(1),C.Q6J("href",k.url,C.LSH)("ngStyle",C.VKq(3,z,be.copyrightTextColor)),C.xp6(1),C.Oqu(N?", "+k.name:k.name)}}const Ke=function(oe){return{background:oe}};let Ue=(()=>{class oe{constructor(k,N,be,W){this.storeService=k,this.translateService=N,this.utilsService=be,this.dialog=W,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="N/A",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(k=>{this.language=k.lang}),this.version=p(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=p(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(k=>{const N=k.match("\\bVersion:\\s*([^,\\s]+)");null!==N&&(this.backendVersion=N[1])}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const k of this.footerColumns)k.logos?this.containsLogos=!0:25*k.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*k.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(k){const N=(0,O.kZ)();"reportIssue"===k&&(N.width="550px",this.dialog.open(H,N))}}return oe.\u0275fac=function(k){return new(k||oe)(C.Y36(e.d6),C.Y36(f.sK),C.Y36(A.FW),C.Y36(M.uw))},oe.\u0275cmp=C.Xpm({type:oe,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(k,N){1&k&&(C.TgZ(0,"footer",0)(1,"div",1),C.YNc(2,Ve,6,12,"div",2),C.qZA(),C._UZ(3,"hr",3),C.TgZ(4,"div",4),C._uU(5),C.YNc(6,ve,3,5,"span",5),C._uU(7,", web application: "),C.TgZ(8,"a",6),C._uU(9),C.qZA(),C._uU(10,", server: "),C.TgZ(11,"a",6),C._uU(12),C.qZA()()()),2&k&&(C.Q6J("ngStyle",C.VKq(11,Ke,N.bgColor)),C.xp6(2),C.Q6J("ngForOf",N.footerColumns),C.xp6(2),C.Q6J("ngStyle",C.VKq(13,z,N.copyrightTextColor)),C.xp6(1),C.hij(" \xa9 ",N.currentYear," Copyright: "),C.xp6(1),C.Q6J("ngForOf",N.copyrightItems),C.xp6(2),C.Q6J("href",N.githubRepository,C.LSH)("ngStyle",C.VKq(15,z,N.copyrightTextColor)),C.xp6(1),C.Oqu(N.guiVersion),C.xp6(2),C.Q6J("href",N.githubBackendRepository,C.LSH)("ngStyle",C.VKq(17,z,N.copyrightTextColor)),C.xp6(1),C.Oqu(N.backendVersion))},dependencies:[b.sg,b.O5,b.PC,J,ne,G],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),oe})()},46453:($e,he,p)=>{"use strict";p.d(he,{Y:()=>pe});var e=p(94650),A=p(81591),C=p(9244),M=p(21029),f=p(40034),b=p(11481),D=p(89383),T=p(65412),R=p(94364),B=p(36895),w=p(97392),H=p(28255),O=p(4859),J=p(10266),ne=p(83683),G=p(42673),se=p(52314),Oe=p(55660);const _e=function(le){return{color:le}};function Be(le,ye){if(1&le){const Ve=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM(Ve);const Ke=e.oxw();return e.KtG(Ke.onToggleSidenav())}),e.TgZ(1,"mat-icon"),e._uU(2,"menu"),e.qZA()()}if(2&le){const Ve=e.oxw();e.Q6J("ngStyle",e.VKq(1,_e,Ve.iconColor))}}function E(le,ye){if(1&le){const Ve=e.EpF();e.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),e._uU(3," language "),e.qZA()(),e.TgZ(4,"mat-menu",null,13)(6,"button",14),e.NdJ("click",function(){e.CHM(Ve);const Ke=e.oxw();return e.KtG(Ke.changeLanguage())}),e._uU(7),e.ALo(8,"translate"),e.qZA()()()}if(2&le){const Ve=e.MAs(5),ve=e.oxw();e.Q6J("ngStyle",e.VKq(6,_e,ve.textColor)),e.xp6(1),e.Q6J("matMenuTriggerFor",Ve),e.xp6(1),e.Q6J("ngStyle",e.VKq(8,_e,ve.iconColor)),e.xp6(5),e.hij(" ",e.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function z(le,ye){if(1&le){const Ve=e.EpF();e.TgZ(0,"button",15),e.NdJ("click",function(){e.CHM(Ve);const Ke=e.oxw();return e.KtG(Ke.showNotificationHistory())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",16),e._uU(3),e.qZA()()}if(2&le){const Ve=e.oxw();e.Q6J("matTooltip",e.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),e.xp6(2),e.s9C("matBadge",Ve.getNewNotificationsCount()>5?"5+":Ve.getNewNotificationsCount()),e.Q6J("ngStyle",e.VKq(7,_e,Ve.iconColor))("matBadgeHidden",0===Ve.getNewNotificationsCount()),e.xp6(1),e.hij(" ",Ve.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function F(le,ye){if(1&le&&e._UZ(0,"perun-web-apps-header-menu",17),2&le){const Ve=e.oxw();e.Q6J("url",Ve.otherAppUrl)("label",Ve.otherAppLabel)("user",Ve.principal.user)("logoutEnabled",Ve.logoutEnabled)("iconColor",Ve.iconColor)("textColor",Ve.textColor)}}const V=function(le){return{background:le}},X=function(){return[]},q=function(){return["/"]};let pe=(()=>{class le{constructor(Ve,ve,Ke,Ue,oe,ce,k){this.storeService=Ve,this.sanitizer=ve,this.translateService=Ke,this.otherApplicationService=Ue,this.notificationStorageService=oe,this.dialog=ce,this.route=k,this.sidenavToggle=new e.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(Ve=>{this.label=this.storeService.getProperty("en"===Ve.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(Ve.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(Ve="en"){return this.storeService.getProperty(this.otherApp===f.p.Profile?"profile_label_en":"en"===Ve?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===f.p.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const Ve in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(Ve)&&(this.activeLink=!0)}(this.otherApp!==f.p.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const Ve=(0,C.kZ)();Ve.width="520px",this.dialog.open(M.Us,Ve)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return le.\u0275fac=function(Ve){return new(Ve||le)(e.Y36(A.d6),e.Y36(b.H7),e.Y36(D.sK),e.Y36(A.jq),e.Y36(A.SZ),e.Y36(T.uw),e.Y36(R.gz))},le.\u0275cmp=e.Xpm({type:le,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(Ve,ve){1&Ve&&(e.TgZ(0,"mat-toolbar",0)(1,"div",1),e.YNc(2,Be,3,3,"button",2),e._UZ(3,"a",3),e.TgZ(4,"p",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5),e.YNc(7,E,9,10,"div",6),e.YNc(8,z,4,9,"button",7),e.YNc(9,F,1,6,"perun-web-apps-header-menu",8),e.qZA()()),2&Ve&&(e.Q6J("ngStyle",e.VKq(11,V,ve.bgColor)),e.xp6(2),e.Q6J("ngIf",ve.showToggle),e.xp6(1),e.Q6J("innerHTML",ve.logo,e.oJD)("routerLink",ve.disableLogo?e.DdM(13,X):e.DdM(14,q))("queryParams",ve.route.snapshot.queryParams),e.xp6(1),e.Q6J("ngStyle",e.VKq(15,_e,ve.textColor)),e.xp6(1),e.hij(" ",ve.label," "),e.xp6(1),e.Q6J("ngStyle",e.VKq(17,_e,ve.navTextColor)),e.xp6(1),e.Q6J("ngIf",ve.showLanguageMenu),e.xp6(1),e.Q6J("ngIf",ve.showNotifications),e.xp6(1),e.Q6J("ngIf",ve.showHeaderMenu))},dependencies:[B.O5,B.PC,R.yS,w.Hw,H.VK,H.OP,H.p6,O.lW,J.gM,ne.Ye,G.k,se.X,Oe.Q,D.X$],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),le})()},10441:($e,he,p)=>{"use strict";p.d(he,{W:()=>D});var e=p(94650),A=p(36895),C=p(97392),M=p(10266),f=p(89383);function b(T,R){1&T&&(e.TgZ(0,"mat-icon",1),e.ALo(1,"translate"),e._uU(2," visibility\n"),e.qZA()),2&T&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let D=(()=>{class T{constructor(){this.recentIds=[]}}return T.\u0275fac=function(B){return new(B||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(B,w){1&B&&e.YNc(0,b,3,3,"mat-icon",0),2&B&&e.Q6J("ngIf",w.recentIds.indexOf(w.id)>-1)},dependencies:[A.O5,C.Hw,M.gM,f.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),T})()},96214:($e,he,p)=>{"use strict";p.d(he,{t:()=>b});var e=p(94650),A=p(97392),C=p(4859),M=p(10266),f=p(89383);let b=(()=>{class D{constructor(){this.refresh=new e.vpe}onClickbutton(R){this.refresh.emit(R)}}return D.\u0275fac=function(R){return new(R||D)},D.\u0275cmp=e.Xpm({type:D,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(R,B){1&R&&(e.TgZ(0,"button",0),e.NdJ("click",function(H){return B.onClickbutton(H)}),e.ALo(1,"translate"),e._UZ(2,"mat-icon",1),e.qZA()),2&R&&(e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),e.Q6J("disabled",B.disabled),e.xp6(2),e.s9C("svgIcon",B.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},dependencies:[A.Hw,C.lW,M.gM,f.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),D})()},45703:($e,he,p)=>{"use strict";p.d(he,{L:()=>f});var e=p(94650),A=p(9244),C=p(89593),M=p(89383);let f=(()=>{class b{constructor(){this.resource=null,this.displayStatus=!0,this.disableAutoSelect=!1,this.required=!1,this.resourceSelected=new e.vpe,this.nameFunction=T=>T.name,this.secondaryFunction=()=>null}ngOnInit(){this.resources=this.resources.sort(A.aC)}}return b.\u0275fac=function(T){return new(T||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resource:"resource",resources:"resources",displayStatus:"displayStatus",disableAutoSelect:"disableAutoSelect",required:"required"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:17,consts:[[3,"entity","entities","required","disableAutoSelect","displayStatus","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(T,R){1&T&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(w){return R.resourceSelected.emit(w)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&T&&e.Q6J("entity",R.resource)("entities",R.resources)("required",R.required)("disableAutoSelect",R.disableAutoSelect)("displayStatus",R.displayStatus)("searchFunction",R.nameFunction)("mainTextFunction",R.nameFunction)("secondaryTextFunction",R.secondaryFunction)("selectPlaceholder",e.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",e.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",e.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},dependencies:[C.i,M.X$]}),b})()},62109:($e,he,p)=>{"use strict";p.d(he,{C:()=>g});var e=p(94650),A=p(96308),C=p(30671),M=p(95017),f=p(9244),b=p(81591),D=p(36895),T=p(56709),R=p(94364),B=p(98380),w=p(97392),H=p(10266),O=p(18750),J=p(34198),ne=p(55660),G=p(10441),se=p(8223),Oe=p(89383);let _e=(()=>{class v{transform(a){if(null==a)return null;let t="";return a.forEach(function(n){t=t.concat(n.tagName)}),t}}return v.\u0275fac=function(a){return new(a||v)},v.\u0275pipe=e.Yjl({name:"resourceTagsToString",type:v,pure:!0}),v})();var Be=p(82895),E=p(9185),z=p(8231),F=p(14849);function V(v,h){if(1&v){const a=e.EpF();e.TgZ(0,"mat-checkbox",27),e.NdJ("change",function(t){e.CHM(a);const n=e.oxw(3);return e.KtG(t?n.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&v){const a=e.oxw(2).ngIf,i=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,a.all)))("checked",i.selection.hasValue()&&a.all)("indeterminate",i.selection.hasValue()&&!a.all)}}function X(v,h){if(1&v&&(e.TgZ(0,"th",25),e.YNc(1,V,3,7,"mat-checkbox",26),e.qZA()),2&v){const a=e.oxw(2);e.xp6(1),e.Q6J("ngIf",a.selection.isMultipleSelection())}}const q=function(v){return{name:v}};function pe(v,h){if(1&v){const a=e.EpF();e.TgZ(0,"td",28)(1,"span",29),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",30),e.NdJ("change",function(t){const o=e.CHM(a).$implicit,s=e.oxw(2);return e.KtG(t?s.itemSelectionToggle(o):null)})("click",function(t){return t.stopPropagation()}),e.ALo(4,"translate"),e.ALo(5,"checkboxLabel"),e.qZA()()()}if(2&v){const a=h.$implicit,i=e.oxw(2);e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!i.disableSelect(a)),e.xp6(2),e.Q2q("data-cy","",a.name,"-checkbox"),e.Q6J("aria-label",e.xi3(4,9,e.lcZ(5,12,i.selection.isSelected(a)),e.VKq(14,q,a.name)))("checked",i.selection.isSelected(a))("disabled",i.disableSelect(a))}}function le(v,h){1&v&&(e.ynx(0,22),e.YNc(1,X,2,1,"th",23),e.YNc(2,pe,6,16,"td",24),e.BQk())}function ye(v,h){1&v&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function Ve(v,h){if(1&v&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&v){const a=h.$implicit;e.xp6(1),e.Oqu(a.id)}}function ve(v,h){1&v&&e._UZ(0,"th",33)}function Ke(v,h){if(1&v&&(e.TgZ(0,"td",34),e._UZ(1,"perun-web-apps-recently-viewed-icon",35),e.qZA()),2&v){const a=h.$implicit,i=e.oxw();e.xp6(1),e.Q6J("recentIds",i.recentIds)("id",a.id)}}function Ue(v,h){1&v&&e._UZ(0,"th",33)}function oe(v,h){1&v&&(e.TgZ(0,"mat-icon",37),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&v&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function ce(v,h){if(1&v&&(e.TgZ(0,"td",34),e.YNc(1,oe,3,3,"mat-icon",36),e.qZA()),2&v){const a=h.$implicit;e.xp6(1),e.Q6J("ngIf",a.sourceGroupId)}}function k(v,h){1&v&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function N(v,h){if(1&v&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&v){const a=h.$implicit;e.uIk("data-cy",a.name),e.xp6(1),e.hij(" ",a.name," ")}}function be(v,h){1&v&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function W(v,h){if(1&v&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&v){const a=h.$implicit;e.xp6(1),e.Oqu(a.vo.name)}}function ue(v,h){1&v&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function Me(v,h){if(1&v&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&v){const a=h.$implicit;e.xp6(1),e.Oqu(a.voId)}}function ot(v,h){1&v&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function je(v,h){if(1&v){const a=e.EpF();e.TgZ(0,"td",34)(1,"perun-web-apps-group-resource-status",38),e.NdJ("mouseenter",function(){e.CHM(a);const t=e.oxw();return e.KtG(t.disabledRouting=!0)})("mouseleave",function(){e.CHM(a);const t=e.oxw();return e.KtG(t.disabledRouting=t.disableRouting)})("statusChange",function(){e.CHM(a);const t=e.oxw();return e.KtG(t.refreshTable.emit())}),e.qZA()()}if(2&v){const a=h.$implicit,i=e.oxw();e.xp6(1),e.Q6J("theme","group-theme")("resourceId",a.id)("groupId",i.groupId)("failureCause",a.failureCause)("status",a.status)}}function ut(v,h){1&v&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function tt(v,h){if(1&v&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&v){const a=h.$implicit;e.xp6(1),e.Oqu(a.facility.name)}}function vt(v,h){1&v&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function ee(v,h){if(1&v&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&v){const a=h.$implicit;e.xp6(1),e.Oqu(a.facilityId)}}function nt(v,h){1&v&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function Ae(v,h){if(1&v&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"resourceTagsToString"),e.qZA()),2&v){const a=h.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,a.resourceTags)," ")}}function Ee(v,h){1&v&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function ge(v,h){if(1&v&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&v){const a=h.$implicit;e.xp6(1),e.Oqu(a.description)}}function we(v,h){1&v&&e._UZ(0,"tr",39)}const Ne=function(v){return[v]};function Ce(v,h){if(1&v&&(e._UZ(0,"tr",40),e.ALo(1,"getResourceRoute"),e.ALo(2,"getResourceRoute")),2&v){const a=h.$implicit,i=e.oxw();e.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disabledRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(12,Ne,i.disabledRouting?null:e.xi3(1,6,a,i.routingVo)))("routerLink",i.disabledRouting?null:e.xi3(2,9,a,i.routingVo))}}function fe(v,h){1&v&&(e.TgZ(0,"perun-web-apps-alert",41),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function r(v,h){1&v&&(e.TgZ(0,"perun-web-apps-alert",41),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}const u=function(v){return{all:v}};let g=(()=>{class v{constructor(a,i){this.guiAuthResolver=a,this.tableCheckbox=i,this.resources=[],this.selection=new M.Ov(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=f.f7,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new e.vpe,this.allSelected=new e.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(t,n)=>v.getDataForColumn(t,n,this.recentIds),this.canBeSelected=t=>!this.disableSelect(t)}set matSort(a){this.sort=a}static getDataForColumn(a,i,t){switch(i){case"id":return a.id.toString();case"vo":return a.vo.name;case"name":return a.name;case"facility":return a.facility.name;case"description":return a.description;case"recent":return t&&t.includes(a.id)?"#".repeat(t.indexOf(a.id)):a.name;case"tags":{if(!a.resourceTags)return a[i];let o="";return a.resourceTags.forEach(function(s){o=o.concat(s.tagName)}),o}case"status":return a.status;case"uuid":return a.uuid;default:return a[i]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(a=>"id"!==a)),this.setDataSource(),this.setAuth()}exportAllData(a){(0,f.O6)((0,f.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),a)}exportDisplayedData(a){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,t=i+this.dataSource.paginator.pageSize;(0,f.O6)((0,f.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,t),this.displayedColumns,this.getDataForColumnFun),a)}setDataSource(){this.dataSource||(this.dataSource=new C.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(a,i)=>(0,f.Sd)(a,i,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(a,i)=>(0,f.pR)(a,i,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const a=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected);return this.allSelected.emit(a),a}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}setAuth(){const a=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((i,t)=>i&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",a.concat([t])),!0),this.addAuth=this.selection.selected.reduce((i,t)=>i&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",a.concat([t])),!0)}itemSelectionToggle(a){this.selection.toggle(a),this.setAuth()}disableSelect(a){return this.resourcesToDisableCheckbox.has(a.id)}}return v.\u0275fac=function(a){return new(a||v)(e.Y36(b.x4),e.Y36(b.UA))},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(a,i){if(1&a&&(e.Gf(f.l9,7),e.Gf(A.YE,7)),2&a){let t;e.iGM(t=e.CRH())&&(i.child=t.first),e.iGM(t=e.CRH())&&(i.matSort=t.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[e.TTD],decls:42,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(a,i){1&a&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(n){return i.exportDisplayedData(n)})("exportAllData",function(n){return i.exportAllData(n)}),e.TgZ(2,"table",2),e.YNc(3,le,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,ye,3,3,"th",5),e.YNc(7,Ve,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,ve,1,0,"th",8),e.YNc(10,Ke,2,2,"td",9),e.BQk(),e.ynx(11,10),e.YNc(12,Ue,1,0,"th",8),e.YNc(13,ce,2,1,"td",9),e.BQk(),e.ynx(14,11),e.YNc(15,k,3,3,"th",5),e.YNc(16,N,2,2,"td",9),e.BQk(),e.ynx(17,12),e.YNc(18,be,3,3,"th",5),e.YNc(19,W,2,1,"td",9),e.BQk(),e.ynx(20,13),e.YNc(21,ue,3,3,"th",5),e.YNc(22,Me,2,1,"td",9),e.BQk(),e.ynx(23,14),e.YNc(24,ot,3,3,"th",5),e.YNc(25,je,2,5,"td",9),e.BQk(),e.ynx(26,15),e.YNc(27,ut,3,3,"th",5),e.YNc(28,tt,2,1,"td",9),e.BQk(),e.ynx(29,16),e.YNc(30,vt,3,3,"th",5),e.YNc(31,ee,2,1,"td",9),e.BQk(),e.ynx(32,17),e.YNc(33,nt,3,3,"th",5),e.YNc(34,Ae,3,3,"td",9),e.BQk(),e.ynx(35,18),e.YNc(36,Ee,3,3,"th",5),e.YNc(37,ge,2,1,"td",9),e.BQk(),e.YNc(38,we,1,0,"tr",19),e.YNc(39,Ce,3,14,"tr",20),e.qZA()()(),e.YNc(40,fe,3,3,"perun-web-apps-alert",21),e.YNc(41,r,3,3,"perun-web-apps-alert",21)),2&a&&(e.Q6J("hidden",0===i.dataSource.filteredData.length||0===i.resources.length),e.xp6(1),e.Q6J("dataLength",i.dataSource.filteredData.length)("tableId",i.tableId)("pageSizeOptions",i.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",i.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(14,u,e.Dn7(4,10,i.dataSource,i.selection.selected.length,i.canBeSelected))),e.xp6(35),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.resources.length),e.xp6(1),e.Q6J("ngIf",0===i.resources.length))},dependencies:[D.O5,T.oG,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,R.rH,A.YE,A.nU,B.w,w.Hw,H.gM,O.l,J.Y,G.W,se.x,ne.Q,Oe.X$,_e,Be.r,E.I,z.G,F.r],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),v})()},52170:($e,he,p)=>{"use strict";p.d(he,{$x:()=>b,qG:()=>f});var e=p(94650),A=p(89383),C=p(89593);class M{constructor(T,R){this.value=R,this.displayName=T}}var f=(()=>{return(D=f||(f={}))[D.SOURCE=0]="SOURCE",D[D.DESTINATION=1]="DESTINATION",D[D.FEDERATION=2]="FEDERATION",f;var D})();let b=(()=>{class D{constructor(R){this.translateService=R,this.attributes=[],this.asGroup=!1,this.itemSelected=new e.vpe,this.items=[],this.nameFunction=B=>B.displayName,this.shortNameFunction=()=>null,this.searchFunction=B=>B.displayName}static getDefinition(R){const B=R.namespace.split(":");return null===B[4]?"null":B[4]}ngOnInit(){this.type===f.FEDERATION?(this.getFederationAttributes(),this.getFederationAttribute()):this.createSelectionItems(),this.sortAttributes(this.items)}createSelectionItems(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(R=>{const B=new M(R,"");this.items.push(B),this.item=B});for(const R of this.attributes){const B=new M(R.friendlyName+" ("+R.entity+" / "+D.getDefinition(R)+")",R.namespace+":"+R.friendlyName);B.value===this.selectedAttribute&&(this.item=B),("user"===R.entity.toLowerCase()||"member"===R.entity.toLowerCase()||"vo"===R.entity.toLowerCase()&&this.type===f.SOURCE||"group"===R.entity.toLowerCase()&&this.asGroup&&this.type===f.SOURCE)&&this.items.push(B)}}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(R=>{this.items.push(new M(R,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(B=>{this.items.push(new M(B,"custom")),this.items.push(new M("Display name","displayName")),this.items.push(new M("Common name","cn")),this.items.push(new M("Mail","mail")),this.items.push(new M("Organization","o")),this.items.push(new M("Level of Assurance (LoA)","loa")),this.items.push(new M("First name","givenName")),this.items.push(new M("Surname","sn")),this.items.push(new M("EPPN","eppn")),this.items.push(new M("IdP Category","md_entityCategory")),this.items.push(new M("IdP Affiliation","affiliation")),this.items.push(new M("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.items.push(new M("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.items.push(new M("schacHomeOrganization","schacHomeOrganization")),this.items.push(new M("Login","uid")),this.items.push(new M("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){for(const R of this.items)if(R.value===this.selectedAttribute)return void(this.item=R);this.item=this.items[1],this.item.value=this.selectedAttribute}sortAttributes(R){R.sort((B,w)=>""===B.value?-1:""===w.value?1:B.displayName.localeCompare(w.displayName))}}return D.\u0275fac=function(R){return new(R||D)(e.Y36(A.sK))},D.\u0275cmp=e.Xpm({type:D,selectors:[["perun-web-apps-selection-item-search-select"]],inputs:{attributes:"attributes",selectedAttribute:"selectedAttribute",type:"type",asGroup:"asGroup"},outputs:{itemSelected:"itemSelected"},decls:4,vars:14,consts:[[3,"entities","entity","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(R,B){1&R&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(H){return B.itemSelected.emit(H)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&R&&e.Q6J("entities",B.items)("entity",B.item)("searchFunction",B.searchFunction)("mainTextFunction",B.nameFunction)("secondaryTextFunction",B.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[C.i,A.X$]}),D})()},30540:($e,he,p)=>{"use strict";p.d(he,{J:()=>M});var e=p(94650),A=p(89593),C=p(89383);let M=(()=>{class f{constructor(){this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new e.vpe,this.nameFunction=D=>D.name,this.secondaryFunction=()=>"",this.searchFunction=D=>D.name}}return f.\u0275fac=function(D){return new(D||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["perun-web-apps-service-search-select"]],inputs:{service:"service",services:"services",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{serviceSelected:"serviceSelected"},decls:4,vars:17,consts:[[3,"entity","entities","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(D,T){1&D&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(B){return T.serviceSelected.emit(B)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&D&&e.Q6J("entity",T.service)("entities",T.services)("multiple",T.multiple)("disableAutoSelect",T.disableAutoSelect)("searchFunction",T.searchFunction)("mainTextFunction",T.nameFunction)("secondaryTextFunction",T.secondaryFunction)("selectPlaceholder",e.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.SELECT_SERVICE"))("findPlaceholder",e.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.FIND_SERVICE"))("noEntriesText",e.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.NO_SERVICE_FOUND"))("theme",T.theme)},dependencies:[A.i,C.X$]}),f})()},2541:($e,he,p)=>{"use strict";p.d(he,{m:()=>F});var e=p(81591),A=p(61744),C=p(21029),M=p(9244),f=p(94650),b=p(65412),D=p(36895),T=p(51572),R=p(98380),B=p(4859),w=p(37084),H=p(7434),O=p(89383),J=p(34447);function ne(V,X){1&V&&f._UZ(0,"mat-spinner",8)}function G(V,X){1&V&&(f.TgZ(0,"perun-web-apps-alert",9),f._uU(1),f.ALo(2,"translate"),f.ALo(3,"customTranslate"),f.qZA()),2&V&&(f.xp6(1),f.Oqu(f.lcZ(2,1,f.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))))}function se(V,X){if(1&V){const q=f.EpF();f.TgZ(0,"div")(1,"p")(2,"strong"),f._uU(3),f.ALo(4,"translate"),f.ALo(5,"customTranslate"),f.qZA(),f._uU(6),f.qZA(),f.TgZ(7,"p",10),f._uU(8),f.ALo(9,"translate"),f.ALo(10,"customTranslate"),f.qZA(),f.TgZ(11,"button",11),f.NdJ("click",function(){f.CHM(q);const le=f.oxw().$implicit,ye=f.oxw(3).$implicit,Ve=f.oxw();return f.KtG(Ve.requestChangeQuota(ye,le))}),f._uU(12),f.ALo(13,"translate"),f.ALo(14,"customTranslate"),f.qZA()()}if(2&V){const q=f.oxw(5);f.xp6(3),f.Oqu(f.lcZ(4,4,f.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA"))),f.xp6(3),f.hij(" ",q.quotasMarkup," "),f.xp6(2),f.hij(" ",f.lcZ(9,8,f.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA_INFO"))," "),f.xp6(4),f.hij(" ",f.lcZ(13,12,f.lcZ(14,14,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.CHANGE"))," ")}}function Oe(V,X){1&V&&(f.TgZ(0,"p"),f._uU(1),f.ALo(2,"translate"),f.ALo(3,"customTranslate"),f.qZA()),2&V&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,f.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))," "))}function _e(V,X){if(1&V){const q=f.EpF();f.TgZ(0,"mat-expansion-panel",3),f.NdJ("opened",function(){const ye=f.CHM(q).$implicit,Ve=f.oxw(4);return f.KtG(Ve.getResAttributes(ye.id))}),f.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),f._uU(3),f.qZA()(),f.YNc(4,se,15,16,"div",7),f.YNc(5,Oe,4,5,"p",7),f.qZA()}if(2&V){const q=X.$implicit,pe=f.oxw(4);f.xp6(3),f.hij(" ",q.name," "),f.xp6(1),f.Q6J("ngIf",pe.defaultQuota),f.xp6(1),f.Q6J("ngIf",!pe.defaultQuota)}}function Be(V,X){if(1&V&&(f.TgZ(0,"mat-accordion"),f.YNc(1,_e,6,3,"mat-expansion-panel",2),f.qZA()),2&V){const q=f.oxw(3);f.xp6(1),f.Q6J("ngForOf",q.resources)}}function E(V,X){if(1&V&&(f.YNc(0,ne,1,0,"mat-spinner",5),f.YNc(1,G,4,5,"perun-web-apps-alert",6),f.YNc(2,Be,2,1,"mat-accordion",7)),2&V){const q=f.oxw(2);f.Q6J("ngIf",q.loading),f.xp6(1),f.Q6J("ngIf",0===q.resources.length&&!q.loading),f.xp6(1),f.Q6J("ngIf",q.resources.length&&!q.loading)}}function z(V,X){if(1&V){const q=f.EpF();f.TgZ(0,"mat-expansion-panel",3),f.NdJ("opened",function(){const ye=f.CHM(q).$implicit,Ve=f.oxw();return f.KtG(Ve.getMembersResources(ye))}),f.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),f._uU(3),f.qZA()(),f.YNc(4,E,3,3,"ng-template",4),f.qZA()}if(2&V){const q=X.$implicit;f.xp6(3),f.hij(" ",q.name," ")}}let F=(()=>{class V{constructor(q,pe,le,ye,Ve,ve,Ke){this.store=q,this.usersManagerService=pe,this.membersService=le,this.resourcesManagerService=ye,this.attributesManagerService=Ve,this.dialog=ve,this.entityStorageService=Ke,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(q=>{this.vos=q,this.filteredVos=q})}getMembersResources(q){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(q.id,this.user.id).subscribe(pe=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(pe.id).subscribe(le=>{let ye=le.length;ye||(this.loading=!1),le.forEach(Ve=>{this.attributesManagerService.getResourceAttributes(Ve.id).subscribe(ve=>{ye--,ve.find(Ke=>"defaultDataQuotas"===Ke.friendlyName)&&this.resources.push(Ve),this.loading=0!==ye})})})})}getResAttributes(q){this.attributesManagerService.getResourceAttributes(q).subscribe(pe=>{let le=pe.find(ye=>"dataQuotas"===ye.friendlyName);if(le?.value){const ye=Object.entries(le.value).map(Ve=>String(Ve[1]));this.currentQuota=ye[0]}else this.currentQuota="";if(le=pe.find(ye=>"defaultDataQuotas"===ye.friendlyName),le?.value){const ye=Object.entries(le.value).map(Ve=>String(Ve[1]));this.defaultQuota=ye[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(q,pe){const le=(0,M.kZ)();le.width="400px",le.data={vo:q,resource:pe,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(C.h4,le)}applyFilter(q){this.filteredVos=this.vos.filter(pe=>pe.name.toLowerCase().includes(q.toLowerCase()))}parseMarkup(){let q="";q+=this.currentQuota,q+=` (default: ${this.defaultQuota})`,q=q.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=q}}return V.\u0275fac=function(q){return new(q||V)(f.Y36(e.d6),f.Y36(A.Fv),f.Y36(A.uq),f.Y36(A.xk),f.Y36(A.H8),f.Y36(b.uw),f.Y36(e.fb))},V.\u0275cmp=f.Xpm({type:V,selectors:[["perun-web-apps-data-quotas"]],inputs:{user:"user"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"color-gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(q,pe){1&q&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.ALo(3,"customTranslate"),f.qZA(),f.TgZ(4,"perun-web-apps-immediate-filter",1),f.NdJ("filter",function(ye){return pe.applyFilter(ye)}),f.ALo(5,"translate"),f.ALo(6,"customTranslate"),f.qZA(),f.TgZ(7,"mat-accordion"),f.YNc(8,z,5,1,"mat-expansion-panel",2),f.qZA()),2&q&&(f.xp6(1),f.hij(" ",f.lcZ(2,3,f.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.TITLE")),"\n"),f.xp6(3),f.Q6J("placeholder",f.lcZ(5,7,f.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.FILTER"))),f.xp6(4),f.Q6J("ngForOf",pe.filteredVos))},dependencies:[D.sg,D.O5,T.Ou,R.w,B.lW,w.pp,w.ib,w.yz,w.yK,w.HS,H.L,O.X$,J.a],styles:[".color-gray[_ngcontent-%COMP%]{color:gray}"]}),V})()},74006:($e,he,p)=>{"use strict";p.d(he,{E:()=>Be});var e=p(61744),A=p(81591),C=p(9244),M=p(94650),f=p(94364),b=p(89383),D=p(36895),T=p(56709),R=p(51572),B=p(98380),w=p(37084),H=p(7434),O=p(34447);function J(E,z){1&E&&M._UZ(0,"mat-spinner",8)}function ne(E,z){1&E&&(M.TgZ(0,"perun-web-apps-alert",9),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA()),2&E&&(M.xp6(1),M.Oqu(M.lcZ(2,1,M.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function G(E,z){if(1&E){const F=M.EpF();M.TgZ(0,"mat-expansion-panel",3),M.NdJ("closed",function(){M.CHM(F);const X=M.oxw(4);return M.KtG(X.deselectResource())})("afterExpand",function(){const q=M.CHM(F).$implicit,pe=M.oxw(4);return M.KtG(pe.changeSelectedResource(q))}),M.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),M._uU(3),M.qZA()(),M.TgZ(4,"div",10)(5,"mat-checkbox",11),M.NdJ("change",function(){M.CHM(F);const X=M.oxw(4);return M.KtG(X.setOptOut())}),M.qZA(),M.TgZ(6,"p"),M._uU(7),M.ALo(8,"translate"),M.ALo(9,"customTranslate"),M.qZA()()()}if(2&E){const F=z.$implicit,V=M.oxw(4);M.Q6J("expanded",F.name===V.selectedResource),M.xp6(3),M.hij(" ",F.name," "),M.xp6(2),M.Q6J("checked",V.optOutAttribute&&null!==V.optOutAttribute.value),M.xp6(2),M.hij(" ",M.lcZ(8,4,M.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))," ")}}function se(E,z){if(1&E&&(M.TgZ(0,"mat-accordion"),M.YNc(1,G,10,8,"mat-expansion-panel",2),M.qZA()),2&E){const F=M.oxw(3);M.xp6(1),M.Q6J("ngForOf",F.resources)}}function Oe(E,z){if(1&E&&(M.YNc(0,J,1,0,"mat-spinner",5),M.YNc(1,ne,4,5,"perun-web-apps-alert",6),M.YNc(2,se,2,1,"mat-accordion",7)),2&E){const F=M.oxw(2);M.Q6J("ngIf",F.loading),M.xp6(1),M.Q6J("ngIf",0===F.resources.length&&!F.loading),M.xp6(1),M.Q6J("ngIf",F.resources.length&&!F.loading)}}function _e(E,z){if(1&E){const F=M.EpF();M.TgZ(0,"mat-expansion-panel",3),M.NdJ("closed",function(){M.CHM(F);const X=M.oxw();return M.KtG(X.deselectVo())})("afterExpand",function(){const q=M.CHM(F).$implicit,pe=M.oxw();return M.KtG(pe.changeSelectedVo(q))}),M.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),M._uU(3),M.qZA()(),M.YNc(4,Oe,3,3,"ng-template",4),M.qZA()}if(2&E){const F=z.$implicit,V=M.oxw();M.Q6J("expanded",F.shortName===V.selectedVo),M.xp6(3),M.hij(" ",F.name," ")}}let Be=(()=>{class E{constructor(F,V,X,q,pe,le,ye,Ve,ve){this.store=F,this.usersManagerService=V,this.membersService=X,this.resourcesManagerService=q,this.attributesManagerService=pe,this.route=le,this.router=ye,this.notificator=Ve,this.translate=ve,this.vos=[],this.resources=[],this.optOuts=[],this.filteredVos=[],this.loading=!0,this.selectedVo=null,this.selectedResource=null}ngOnDestroy(){this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:null,resource:null},replaceUrl:!0,queryParamsHandling:"merge"})}ngOnInit(){this.route.queryParams.subscribe(F=>{this.selectedVo=String(F.vo),this.selectedResource=String(F.resource),this.changeOptOut=String(F.action),this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(V=>{if(this.vos=V.sort(C.aC),this.filteredVos=V,void 0!==this.selectedResource){const X=this.vos.find(q=>q.shortName===this.selectedVo);X&&this.getMailingLists(X)}else if(void 0!==this.selectedVo){const X=this.vos.find(q=>q.shortName===this.selectedVo);X&&(this.getMailingLists(X),this.changeSelectedVo(X))}})}).unsubscribe()}changeSelectedResource(F){this.selectedResource!==F.name&&this.getOptOutAttribute(F),this.isService||(this.changeOptOut&&("subscribe"===this.changeOptOut?this.subscribe():"unsubscribe"===this.changeOptOut&&this.unsubscribe(),this.changeOptOut=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource,action:null},queryParamsHandling:"merge"}))}changeSelectedVo(F){this.selectedVo!==F.shortName&&(this.getMailingLists(F),this.selectedResource=null),this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}getMailingLists(F){this.selectedVo=F.shortName,this.loading=!0,this.resources=[],this.membersService.getMemberByUser(F.id,this.user.id).subscribe(V=>{this.resourcesManagerService.getMailingServiceRichResourcesWithMember(V.id).subscribe(X=>{let q=X.length;q||(this.loading=!1),X.forEach(pe=>{this.attributesManagerService.getRequiredAttributesMemberResource(V.id,pe.id).subscribe(le=>{this.attributesManagerService.getResourceAttributeByName(pe.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(ye=>{q--;const Ve=le.find(ve=>"optOutMailingList"===ve.friendlyName);Ve&&"true"!==ye?.value&&(this.optOuts.push({resource:pe.id,member:V.id,attribute:Ve}),this.resources.push(pe),this.selectedResource===pe.name&&(this.getOptOutAttribute(pe),this.changeSelectedResource(pe))),this.loading=0!==q})})})}),this.resources.sort(C.aC)})}getOptOutAttribute(F){this.selectedResource=F.name,this.index=this.resources.indexOf(F),this.optOutAttribute=this.optOuts[this.index].attribute}unsubscribe(){const F=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value="true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.UNSUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=F})}subscribe(){const F=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value=null,this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.SUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=F})}setOptOut(){this.optOutAttribute.value?this.subscribe():this.unsubscribe()}applyFilter(F){this.filteredVos=this.vos.filter(V=>V.name.toLowerCase().includes(F.toLowerCase()))}deselectVo(){this.loading=!0,this.selectedVo=null,this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}deselectResource(){this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}}return E.\u0275fac=function(F){return new(F||E)(M.Y36(A.d6),M.Y36(e.Fv),M.Y36(e.uq),M.Y36(e.xk),M.Y36(e.H8),M.Y36(f.gz),M.Y36(f.F0),M.Y36(A.V6),M.Y36(b.sK))},E.\u0275cmp=M.Xpm({type:E,selectors:[["perun-web-apps-mailing-lists"]],inputs:{user:"user",isService:"isService"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"expanded","closed","afterExpand",4,"ngFor","ngForOf"],[3,"expanded","closed","afterExpand"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"row"],[1,"ml-3","mr-2",3,"checked","change"]],template:function(F,V){1&F&&(M.TgZ(0,"h1",0),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA(),M.TgZ(4,"perun-web-apps-immediate-filter",1),M.NdJ("filter",function(q){return V.applyFilter(q)}),M.ALo(5,"translate"),M.ALo(6,"customTranslate"),M.qZA(),M.TgZ(7,"mat-accordion"),M.YNc(8,_e,5,2,"mat-expansion-panel",2),M.qZA()),2&F&&(M.xp6(1),M.hij(" ",M.lcZ(2,3,M.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.TITLE")),"\n"),M.xp6(3),M.Q6J("placeholder",M.lcZ(5,7,M.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.FILTER"))),M.xp6(4),M.Q6J("ngForOf",V.filteredVos))},dependencies:[D.sg,D.O5,T.oG,R.Ou,B.w,w.pp,w.ib,w.yz,w.yK,w.HS,H.L,b.X$,O.a]}),E})()},80275:($e,he,p)=>{"use strict";p.d(he,{j:()=>N});var e=p(95017),A=p(96308),C=p(30671),M=p(81591),f=p(9244),b=p(94650),D=p(94364),T=p(36895),R=p(56709),B=p(98380),w=p(10266),H=p(18750),O=p(34198),J=p(55660),ne=p(89383);let G=(()=>{class be{transform(ue){return ue.find(ot=>"mail"===ot.friendlyName)?.value??""}}return be.\u0275fac=function(ue){return new(ue||be)},be.\u0275pipe=b.Yjl({name:"getMailFromAttributes",type:be,pure:!0}),be})();var se=p(34447),Oe=p(8231);function _e(be,W){1&be&&b._UZ(0,"th",18)}const Be=function(be){return{name:be}};function E(be,W){if(1&be){const ue=b.EpF();b.TgZ(0,"td",19)(1,"span",20),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.TgZ(4,"mat-checkbox",21),b.NdJ("change",function(ot){const ut=b.CHM(ue).$implicit,tt=b.oxw();return b.KtG(ot?tt.selection.toggle(ut):null)})("click",function(ot){return ot.stopPropagation()}),b.ALo(5,"translate"),b.ALo(6,"checkboxLabel"),b.qZA()()()}if(2&be){const ue=W.$implicit,Me=b.oxw();b.xp6(1),b.s9C("matTooltip",b.lcZ(2,6,b.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),b.Q6J("matTooltipPosition","above")("matTooltipDisabled",!ue.userExtSource.persistent),b.xp6(3),b.Q6J("aria-label",b.xi3(5,10,b.lcZ(6,13,Me.selection.isSelected(ue)),b.VKq(15,Be,ue.userExtSource.extSource.name)))("checked",Me.selection.isSelected(ue))("disabled",ue.userExtSource.persistent)}}function z(be,W){1&be&&(b.TgZ(0,"th",22),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function F(be,W){if(1&be&&(b.TgZ(0,"td",23),b._uU(1),b.qZA()),2&be){const ue=W.$implicit;b.xp6(1),b.hij(" ",ue.userExtSource.id," ")}}function V(be,W){1&be&&(b.TgZ(0,"th",24),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function X(be,W){if(1&be&&(b.TgZ(0,"td",23),b._uU(1),b.ALo(2,"getMailFromAttributes"),b.qZA()),2&be){const ue=W.$implicit;b.xp6(1),b.hij(" ",b.lcZ(2,1,ue.attributes)," ")}}function q(be,W){if(1&be&&(b.TgZ(0,"th",22),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be){const ue=b.oxw();b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,ue.extSourceNameHeader?ue.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function pe(be,W){if(1&be&&(b.TgZ(0,"td",23),b._uU(1),b.qZA()),2&be){const ue=W.$implicit;b.xp6(1),b.hij(" ",ue.userExtSource.extSource.name," ")}}function le(be,W){if(1&be&&(b.TgZ(0,"th",22),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be){const ue=b.oxw();b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,ue.loginHeader?ue.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function ye(be,W){if(1&be&&(b.TgZ(0,"td",23),b._uU(1),b.qZA()),2&be){const ue=W.$implicit;b.xp6(1),b.hij(" ",ue.userExtSource.login," ")}}function Ve(be,W){1&be&&(b.TgZ(0,"th",22),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function ve(be,W){if(1&be&&(b.TgZ(0,"td",25),b._uU(1),b.ALo(2,"date"),b.qZA()),2&be){const ue=W.$implicit;b.xp6(1),b.hij(" ",b.xi3(2,1,ue.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function Ke(be,W){1&be&&b._UZ(0,"tr",26)}const Ue=function(be,W){return["/admin","users",be,"identities",W]};function oe(be,W){if(1&be&&b._UZ(0,"tr",27),2&be){const ue=W.$implicit,Me=b.oxw();b.ekj("cursor-pointer",!Me.disableRouting)("disable-outline",Me.disableRouting),b.Q6J("perunWebAppsMiddleClickRouterLink",Me.disableRouting?null:b.WLB(6,Ue,Me.userId.toString(),ue.userExtSource.id.toString()))("routerLink",Me.disableRouting?null:b.WLB(9,Ue,Me.userId,ue.userExtSource.id))}}function ce(be,W){1&be&&(b.TgZ(0,"perun-web-apps-alert",28),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&be&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function k(be,W){1&be&&(b.TgZ(0,"perun-web-apps-alert",28),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let N=(()=>{class be{constructor(ue,Me){this.route=ue,this.authResolver=Me,this.selection=new e.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=f.f7}set matSort(ue){this.sort=ue,this.setDataSource()}static getDataForColumn(ue,Me){switch(Me){case"id":return ue.userExtSource.id.toString();case"mail":{const ot=ue.attributes.find(je=>"mail"===je.friendlyName);return ot?ot.value:"N/A"}case"extSourceName":return ue.userExtSource.extSource.name;case"login":return ue.userExtSource.login;case"lastAccess":return ue.userExtSource.lastAccess.split(".")[0];default:return ue[Me]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(ue=>{this.userId=Number(ue.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ue=>"id"!==ue)),this.dataSource=new C.by(this.userExtSources),this.setDataSource()}exportAllData(ue){(0,f.O6)((0,f.Xn)(this.dataSource.filteredData,this.displayedColumns,be.getDataForColumn),ue)}exportDisplayedData(ue){const Me=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,ot=Me+this.dataSource.paginator.pageSize;(0,f.O6)((0,f.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Me,ot),this.displayedColumns,be.getDataForColumn),ue)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(ue,Me)=>(0,f.Sd)(ue,Me,this.displayedColumns,be.getDataForColumn),this.dataSource.sortData=(ue,Me)=>(0,f.pR)(ue,Me,be.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}}return be.\u0275fac=function(ue){return new(ue||be)(b.Y36(D.gz),b.Y36(M.x4))},be.\u0275cmp=b.Xpm({type:be,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(ue,Me){if(1&ue&&(b.Gf(f.l9,7),b.Gf(A.YE,7)),2&ue){let ot;b.iGM(ot=b.CRH())&&(Me.child=ot.first),b.iGM(ot=b.CRH())&&(Me.matSort=ot.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[b.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(ue,Me){1&ue&&(b.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),b.NdJ("exportDisplayedData",function(je){return Me.exportDisplayedData(je)})("exportAllData",function(je){return Me.exportAllData(je)}),b.TgZ(2,"table",2),b.ynx(3,3),b.YNc(4,_e,1,0,"th",4),b.YNc(5,E,7,17,"td",5),b.BQk(),b.ynx(6,6),b.YNc(7,z,4,5,"th",7),b.YNc(8,F,2,1,"td",8),b.BQk(),b.ynx(9,9),b.YNc(10,V,4,5,"th",10),b.YNc(11,X,3,3,"td",8),b.BQk(),b.ynx(12,11),b.YNc(13,q,4,5,"th",7),b.YNc(14,pe,2,1,"td",8),b.BQk(),b.ynx(15,12),b.YNc(16,le,4,5,"th",7),b.YNc(17,ye,2,1,"td",8),b.BQk(),b.ynx(18,13),b.YNc(19,Ve,4,5,"th",7),b.YNc(20,ve,3,4,"td",14),b.BQk(),b.YNc(21,Ke,1,0,"tr",15),b.YNc(22,oe,1,12,"tr",16),b.qZA()()(),b.YNc(23,ce,3,3,"perun-web-apps-alert",17),b.YNc(24,k,4,5,"perun-web-apps-alert",17)),2&ue&&(b.Q6J("hidden",0===Me.userExtSources.length||0===Me.dataSource.filteredData.length),b.xp6(1),b.Q6J("tableId",Me.tableId)("dataLength",Me.dataSource.filteredData.length)("pageSizeOptions",Me.pageSizeOptions),b.xp6(1),b.Q6J("dataSource",Me.dataSource),b.xp6(19),b.Q6J("matHeaderRowDef",Me.displayedColumns),b.xp6(1),b.Q6J("matRowDefColumns",Me.displayedColumns),b.xp6(1),b.Q6J("ngIf",0===Me.dataSource.filteredData.length&&0!==Me.userExtSources.length),b.xp6(1),b.Q6J("ngIf",0===Me.userExtSources.length))},dependencies:[T.O5,R.oG,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,D.rH,A.YE,A.nU,B.w,w.gM,H.l,O.Y,J.Q,T.uU,ne.X$,G,se.a,Oe.G],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),be})()},74250:($e,he,p)=>{"use strict";p.d(he,{S:()=>f});var e=p(94650),A=p(9244),C=p(89593),M=p(89383);let f=(()=>{class b{constructor(){this.disableAutoSelect=!1,this.userSelected=new e.vpe,this.userFullNameFunction=A.bD}ngOnInit(){this.users=this.users.sort(A.fx)}}return b.\u0275fac=function(T){return new(T||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-user-search-select"]],inputs:{users:"users",disableAutoSelect:"disableAutoSelect"},outputs:{userSelected:"userSelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(T,R){1&T&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(w){return R.userSelected.emit(w)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&T&&e.Q6J("entities",R.users)("disableAutoSelect",R.disableAutoSelect)("searchFunction",R.userFullNameFunction)("mainTextFunction",R.userFullNameFunction)("selectPlaceholder",e.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",e.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",e.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},dependencies:[C.i,M.X$]}),b})()},11447:($e,he,p)=>{"use strict";p.d(he,{M:()=>o});var e=p(61744),A=p(95017),C=p(9244),M=p(96308),f=p(81591),b=p(56451),D=p(18505),T=p(21029),R=p(19516),B=p(94650),w=p(10036),H=p(65412),O=p(89383),J=p(36895),ne=p(56709),G=p(30671),se=p(94364),Oe=p(51572),_e=p(98380),Be=p(97392),E=p(10266),z=p(18750),F=p(34198),V=p(55660),X=p(34447);function q(s,l){1&s&&(B.TgZ(0,"span")(1,"mat-icon",1),B._uU(2,"priority_high"),B.qZA(),B.TgZ(3,"span"),B._uU(4),B.ALo(5,"translate"),B.ALo(6,"customTranslate"),B.qZA()()),2&s&&(B.xp6(4),B.hij(" ",B.lcZ(5,1,B.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function pe(s,l){1&s&&(B.TgZ(0,"span")(1,"mat-icon",1),B._uU(2,"close"),B.qZA(),B.TgZ(3,"span"),B._uU(4),B.ALo(5,"translate"),B.ALo(6,"customTranslate"),B.qZA()()),2&s&&(B.xp6(4),B.hij(" ",B.lcZ(5,1,B.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function le(s,l){1&s&&(B.TgZ(0,"span")(1,"mat-icon",2),B._uU(2,"check"),B.qZA(),B.TgZ(3,"span"),B._uU(4),B.ALo(5,"translate"),B.ALo(6,"customTranslate"),B.qZA()()),2&s&&(B.xp6(4),B.hij(" ",B.lcZ(5,1,B.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let ye=(()=>{class s{}return s.\u0275fac=function(d){return new(d||s)},s.\u0275cmp=B.Xpm({type:s,selectors:[["perun-web-apps-consent-status"]],inputs:{consentStatus:"consentStatus"},decls:3,vars:3,consts:[[4,"ngIf"],["color","warn"],["color","accent"]],template:function(d,c){1&d&&(B.YNc(0,q,7,5,"span",0),B.YNc(1,pe,7,5,"span",0),B.YNc(2,le,7,5,"span",0)),2&d&&(B.Q6J("ngIf","UNSIGNED"===c.consentStatus),B.xp6(1),B.Q6J("ngIf","REVOKED"===c.consentStatus),B.xp6(1),B.Q6J("ngIf","GRANTED"===c.consentStatus))},dependencies:[J.O5,Be.Hw,O.X$,X.a],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),s})();var Ve=p(31359),ve=p(16119),Ke=p(7598),Ue=p(9954),oe=p(9185),ce=p(8231),k=p(14849),N=p(10293);function be(s,l){1&s&&(B.TgZ(0,"div",19),B._UZ(1,"mat-spinner",20),B.qZA())}function W(s,l){if(1&s){const d=B.EpF();B.TgZ(0,"mat-checkbox",26),B.NdJ("change",function(S){B.CHM(d);const $=B.oxw(3);return B.KtG(S?$.masterToggle():null)}),B.ALo(1,"translate"),B.ALo(2,"masterCheckboxLabel"),B.qZA()}if(2&s){const d=B.oxw(2).ngIf,c=B.oxw();B.Q6J("aria-label",B.lcZ(1,3,B.lcZ(2,5,d.all)))("checked",c.selection.hasValue()&&d.all)("indeterminate",c.selection.hasValue()&&!d.all)}}function ue(s,l){if(1&s&&(B.TgZ(0,"th",24),B.YNc(1,W,3,7,"mat-checkbox",25),B.qZA()),2&s){const d=B.oxw(2);B.xp6(1),B.Q6J("ngIf",d.selection.isMultipleSelection())}}const Me=function(s){return{name:s}};function ot(s,l){if(1&s){const d=B.EpF();B.TgZ(0,"td",27)(1,"mat-checkbox",28),B.NdJ("change",function(S){const ht=B.CHM(d).$implicit,ze=B.oxw(2);return B.KtG(S?ze.selection.toggle(ht):null)})("click",function(S){return S.stopPropagation()}),B.ALo(2,"translate"),B.ALo(3,"checkboxLabel"),B.ALo(4,"userFullName"),B.qZA()()}if(2&s){const d=l.$implicit,c=B.oxw(2);B.xp6(1),B.Q6J("aria-label",B.xi3(2,2,B.lcZ(3,5,c.selection.isSelected(d)),B.VKq(9,Me,B.lcZ(4,7,d))))("checked",c.selection.isSelected(d))}}function je(s,l){1&s&&(B.ynx(0,21),B.YNc(1,ue,2,1,"th",22),B.YNc(2,ot,5,11,"td",23),B.BQk())}function ut(s,l){1&s&&B._UZ(0,"th",29)}function tt(s,l){1&s&&(B.TgZ(0,"mat-icon",33),B.ALo(1,"translate"),B._uU(2," account_circle "),B.qZA()),2&s&&B.s9C("matTooltip",B.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function vt(s,l){if(1&s&&(B._UZ(0,"mat-icon",34),B.ALo(1,"translate")),2&s){const d=B.oxw(2);B.s9C("matTooltip",B.lcZ(1,2,"MANAGERS_LIST.SERVICE")),B.Q6J("svgIcon",d.svgIcon)}}function ee(s,l){if(1&s&&(B.TgZ(0,"td",30),B.YNc(1,tt,3,3,"mat-icon",31),B.YNc(2,vt,2,4,"mat-icon",32),B.qZA()),2&s){const d=l.$implicit;B.xp6(1),B.Q6J("ngIf",!d.serviceUser),B.xp6(1),B.Q6J("ngIf",d.serviceUser)}}function nt(s,l){1&s&&(B.TgZ(0,"th",35),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.hij(" ",B.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function Ae(s,l){if(1&s&&(B.TgZ(0,"td",30),B._uU(1),B.qZA()),2&s){const d=l.$implicit;B.xp6(1),B.hij(" ",d.id," ")}}function Ee(s,l){1&s&&(B.TgZ(0,"th",35),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.hij(" ",B.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function ge(s,l){if(1&s&&(B.TgZ(0,"td",36),B.ALo(1,"lowercase"),B._uU(2),B.ALo(3,"userFullName"),B.qZA()),2&s){const d=l.$implicit;B.Q2q("data-cy","",B.lcZ(1,2,d.firstName),"-td"),B.xp6(2),B.hij(" ",B.lcZ(3,4,d)," ")}}function we(s,l){1&s&&(B.TgZ(0,"th",29),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.Oqu(B.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function Ne(s,l){if(1&s&&(B.TgZ(0,"td",36),B._uU(1),B.ALo(2,"userVo"),B.qZA()),2&s){const d=l.$implicit;B.xp6(1),B.Oqu(B.lcZ(2,1,d))}}function Ce(s,l){1&s&&(B.TgZ(0,"th",29),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.Oqu(B.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function fe(s,l){if(1&s&&(B.TgZ(0,"td",36),B._uU(1),B.ALo(2,"userEmail"),B.qZA()),2&s){const d=l.$implicit;B.xp6(1),B.Oqu(B.lcZ(2,1,d))}}function r(s,l){1&s&&(B.TgZ(0,"th",29),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.Oqu(B.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function u(s,l){if(1&s&&(B.TgZ(0,"td",36),B._uU(1),B.ALo(2,"userLogins"),B.qZA()),2&s){const d=l.$implicit;B.xp6(1),B.Oqu(B.lcZ(2,1,d))}}function g(s,l){1&s&&(B.TgZ(0,"th",29),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.hij(" ",B.lcZ(2,1,"CONSENTS.STATUS")," "))}function v(s,l){if(1&s&&(B.TgZ(0,"td",36),B._UZ(1,"perun-web-apps-consent-status",37),B.ALo(2,"consentStatusIcon"),B.qZA()),2&s){const d=l.$implicit,c=B.oxw();B.xp6(1),B.Q6J("consentStatus",B.xi3(2,1,d,c.consents))}}function h(s,l){1&s&&B._UZ(0,"tr",38)}const a=function(s){return["/admin/users",s]};function i(s,l){if(1&s&&B._UZ(0,"tr",39),2&s){const d=l.$implicit,c=B.oxw();B.ekj("cursor-pointer",!c.disableRouting),B.Q6J("routerLink",c.disableRouting?null:B.VKq(4,a,d.id))("perunWebAppsMiddleClickRouterLink",c.disableRouting?null:B.VKq(6,a,d.id))}}function t(s,l){1&s&&(B.TgZ(0,"perun-web-apps-alert",40),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.Q6J("alert_type","warn"),B.xp6(1),B.hij(" ",B.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}const n=function(s){return{all:s}};let o=(()=>{class s{constructor(d,c,S,$,ht,ze,et,te){this.authResolver=d,this.consentService=c,this.tableCheckbox=S,this.tableConfigService=$,this.dynamicPaginatingService=ht,this.dialog=ze,this.consentPipe=et,this.translate=te,this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.disableRouting=!1,this.searchString="",this.attrNames=[],this.includeConsents=!1,this.svgIcon="perun-service-identity-black",this.pageSizeOptions=C.f7}static getExportDataForColumn(d,c){switch(c){case"id":return d.id.toString();case"user":return d.serviceUser?"service-user":"user";case"name":return d?(0,C.bD)(d):"";case"organization":return(0,C.OV)(d);case"email":return(0,C.kN)(d);case"logins":return(0,C.lt)(d);case"consentStatus":return d.consent;default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,b.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,D.b)(()=>this.loadUsersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(d=>"id"!==d)),this.includeConsents&&this.displayedColumns.push("consentStatus"),this.dataSource=new f.Hy(this.dynamicPaginatingService,this.authResolver),this.loadConsents(),this.dataSource.loadUsers(this.attrNames,this.tableConfigService.getTablePageSize(this.tableId),0,"ASCENDING","NAME",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadUsersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(d=>this.selection.select(d))}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().length}loadUsersPage(){this.dataSource.loadUsers(this.attrNames,this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING","name"===this.sort.active?"NAME":"ID",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses)}loadConsents(){this.includeConsents&&this.consentService.getConsentHubByFacility(this.facilityId).subscribe(d=>this.consentService.getConsentsForConsentHub(d.id).subscribe(c=>this.consents=c))}exportDisplayedData(d){(0,C.O6)((0,C.Xn)(this.getConsentsForUsers(this.dataSource.getData()),this.displayedColumns,s.getExportDataForColumn),d)}exportAllData(d){const c="asc"===this.sort.direction?"ASCENDING":"DESCENDING",S="name"===this.sort.active?"NAME":"ID",$=(0,C.kZ)();$.width="300px";const ht=this.dialog.open(T.QQ,$);this.dataSource.getAllUsers(this.attrNames,c,this.child.paginator.length,S,this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses).subscribe(ze=>{ht.close(),(0,C.O6)((0,C.Xn)(this.getConsentsForUsers(ze),this.displayedColumns,s.getExportDataForColumn),d)})}getConsentsForUsers(d){const c=[];return this.includeConsents?(d.forEach(S=>{const $=S;$.consent=this.translate.instant("CONSENTS.STATUS_"+this.consentPipe.transform(S,this.consents)),c.push($)}),c):d}}return s.\u0275fac=function(d){return new(d||s)(B.Y36(f.x4),B.Y36(e.WY),B.Y36(f.UA),B.Y36(w.dB),B.Y36(f.ly),B.Y36(H.uw),B.Y36(R.m2),B.Y36(O.sK))},s.\u0275cmp=B.Xpm({type:s,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(d,c){if(1&d&&(B.Gf(C.l9,7),B.Gf(M.YE,5)),2&d){let S;B.iGM(S=B.CRH())&&(c.child=S.first),B.iGM(S=B.CRH())&&(c.sort=S.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",attrNames:"attrNames",withoutVo:"withoutVo",updateTable:"updateTable",facilityId:"facilityId",voId:"voId",resourceId:"resourceId",serviceId:"serviceId",onlyAllowed:"onlyAllowed",consentStatuses:"consentStatuses",includeConsents:"includeConsents"},features:[B._Bn([R.m2]),B.TTD],decls:33,vars:21,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["matColumnDef","consentStatus"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"matTooltip","svgIcon",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"matTooltip","svgIcon"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"consentStatus"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(d,c){1&d&&(B.TgZ(0,"div",0),B.ALo(1,"async"),B.TgZ(2,"perun-web-apps-table-wrapper",1),B.NdJ("exportDisplayedData",function($){return c.exportDisplayedData($)})("exportAllData",function($){return c.exportAllData($)}),B.YNc(3,be,2,0,"div",2),B.ALo(4,"async"),B.TgZ(5,"table",3),B.YNc(6,je,3,0,"ng-container",4),B.ALo(7,"isAllSelected"),B.ynx(8,5),B.YNc(9,ut,1,0,"th",6),B.YNc(10,ee,3,2,"td",7),B.BQk(),B.ynx(11,8),B.YNc(12,nt,3,3,"th",9),B.YNc(13,Ae,2,1,"td",7),B.BQk(),B.ynx(14,10),B.YNc(15,Ee,3,3,"th",9),B.YNc(16,ge,4,6,"td",11),B.BQk(),B.ynx(17,12),B.YNc(18,we,3,3,"th",6),B.YNc(19,Ne,3,3,"td",11),B.BQk(),B.ynx(20,13),B.YNc(21,Ce,3,3,"th",6),B.YNc(22,fe,3,3,"td",11),B.BQk(),B.ynx(23,14),B.YNc(24,r,3,3,"th",6),B.YNc(25,u,3,3,"td",11),B.BQk(),B.ynx(26,15),B.YNc(27,g,3,3,"th",6),B.YNc(28,v,3,4,"td",11),B.BQk(),B.YNc(29,h,1,0,"tr",16),B.YNc(30,i,1,8,"tr",17),B.qZA()()(),B.YNc(31,t,3,4,"perun-web-apps-alert",18),B.ALo(32,"async")),2&d&&(B.Q6J("hidden",0===c.dataSource.allObjectCount&&!1===B.lcZ(1,10,c.dataSource.loading$)),B.xp6(2),B.Q6J("tableId",c.tableId)("dataLength",c.dataSource.allObjectCount)("pageSizeOptions",c.pageSizeOptions),B.xp6(1),B.Q6J("ngIf",B.lcZ(4,12,c.dataSource.loading$)),B.xp6(2),B.Q6J("dataSource",c.dataSource),B.xp6(1),B.Q6J("ngIf",B.VKq(19,n,B.xi3(7,14,c.dataSource,c.selection.selected.length))),B.xp6(23),B.Q6J("matHeaderRowDef",c.displayedColumns),B.xp6(1),B.Q6J("matRowDefColumns",c.displayedColumns),B.xp6(1),B.Q6J("ngIf",0===c.dataSource.allObjectCount&&!1===B.lcZ(32,17,c.dataSource.loading$)))},dependencies:[J.O5,ne.oG,G.BZ,G.fO,G.as,G.w1,G.Dz,G.nj,G.ge,G.ev,G.XQ,G.Gk,se.rH,M.YE,M.nU,Oe.Ou,_e.w,Be.Hw,E.gM,z.l,F.Y,ye,V.Q,J.Ov,J.i8,O.X$,Ve.d,ve.S,Ke.g,Ue.Z,oe.I,ce.G,k.r,N.m],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),s})()},62707:($e,he,p)=>{"use strict";p.d(he,{M:()=>f});var e=p(94650),A=p(9244),C=p(89593),M=p(89383);let f=(()=>{class b{constructor(){this.disableAutoSelect=!1,this.voSelected=new e.vpe,this.nameFunction=T=>T.name,this.shortNameFunction=T=>T.shortName,this.searchFunction=T=>T.name+T.shortName+String(T.id)}ngOnChanges(){this.vos.sort(A.aC),!this.vo&&!this.disableAutoSelect&&(this.vo=this.vos[0])}}return b.\u0275fac=function(T){return new(T||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vo:"vo",vos:"vos",disableAutoSelect:"disableAutoSelect"},outputs:{voSelected:"voSelected"},features:[e.TTD],decls:4,vars:15,consts:[[3,"entity","entities","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(T,R){1&T&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(w){return R.voSelected.emit(w)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&T&&e.Q6J("entity",R.vo)("entities",R.vos)("disableAutoSelect",R.disableAutoSelect)("searchFunction",R.searchFunction)("mainTextFunction",R.nameFunction)("secondaryTextFunction",R.shortNameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},dependencies:[C.i,M.X$]}),b})()},87831:($e,he,p)=>{"use strict";p.d(he,{Z:()=>k});var e=p(96308),A=p(30671),C=p(9244),M=p(81591),f=p(94650),b=p(36895),D=p(56709),T=p(94364),R=p(98380),B=p(97392),w=p(18750),H=p(34198),O=p(55660),J=p(10441),ne=p(89383),G=p(8231);function se(N,be){1&N&&f._UZ(0,"th",19)}const Oe=function(N){return{name:N}};function _e(N,be){if(1&N){const W=f.EpF();f.TgZ(0,"td",20)(1,"mat-checkbox",21),f.NdJ("change",function(Me){const je=f.CHM(W).$implicit,ut=f.oxw();return f.KtG(Me?ut.selection.toggle(je):null)})("click",function(Me){return Me.stopPropagation()}),f.ALo(2,"translate"),f.ALo(3,"checkboxLabel"),f.qZA()()}if(2&N){const W=be.$implicit,ue=f.oxw();let Me;f.xp6(1),f.Q6J("aria-label",f.xi3(2,2,f.lcZ(3,5,ue.selection.isSelected(W)),f.VKq(7,Oe,null!==(Me=W.name)&&void 0!==Me?Me:W.vo.name)))("checked",ue.selection.isSelected(W))}}function Be(N,be){1&N&&(f.TgZ(0,"th",22),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&N&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")," "))}function E(N,be){if(1&N&&(f.TgZ(0,"td",23),f._uU(1),f.qZA()),2&N){const W=be.$implicit;let ue;f.xp6(1),f.Oqu(null!==(ue=W.id)&&void 0!==ue?ue:W.vo.id)}}function z(N,be){1&N&&f._UZ(0,"th",24)}function F(N,be){if(1&N&&(f.TgZ(0,"td",25),f._UZ(1,"perun-web-apps-recently-viewed-icon",26),f.qZA()),2&N){const W=be.$implicit,ue=f.oxw();let Me;f.xp6(1),f.Q6J("recentIds",ue.recentIds)("id",null!==(Me=W.id)&&void 0!==Me?Me:W.vo.id)}}function V(N,be){1&N&&f._UZ(0,"th",24)}function X(N,be){1&N&&f._UZ(0,"mat-icon",28),2&N&&f.Q6J("svgIcon","perun-hierarchical-vo")}function q(N,be){if(1&N&&(f.TgZ(0,"td",25),f.YNc(1,X,1,1,"mat-icon",27),f.qZA()),2&N){const W=be.$implicit;f.xp6(1),f.Q6J("ngIf",0!==(null==W||null==W.memberVos?null:W.memberVos.length))}}function pe(N,be){1&N&&(f.TgZ(0,"th",22),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&N&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")," "))}function le(N,be){if(1&N&&(f.TgZ(0,"td",25),f._uU(1),f.qZA()),2&N){const W=be.$implicit;let ue,Me;f.uIk("data-cy",null!==(ue=W.shortName)&&void 0!==ue?ue:W.vo.shortName),f.xp6(1),f.hij(" ",null!==(Me=W.shortName)&&void 0!==Me?Me:W.vo.shortName," ")}}function ye(N,be){1&N&&(f.TgZ(0,"th",22),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&N&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")," "))}function Ve(N,be){if(1&N&&(f.TgZ(0,"td",25),f._uU(1),f.qZA()),2&N){const W=be.$implicit;let ue;f.xp6(1),f.Oqu(null!==(ue=W.name)&&void 0!==ue?ue:W.vo.name)}}function ve(N,be){1&N&&f._UZ(0,"tr",29)}const Ke=function(N){return["/organizations",N]};function Ue(N,be){if(1&N&&f._UZ(0,"tr",30),2&N){const W=be.$implicit,ue=f.oxw();let Me,ot;f.ekj("disable-outline",ue.disableRouting)("cursor-pointer",!ue.disableRouting),f.Q6J("perunWebAppsMiddleClickRouterLink",ue.disableRouting?null:f.VKq(6,Ke,null!==(Me=W.id)&&void 0!==Me?Me:W.vo.id))("routerLink",ue.disableRouting?null:f.VKq(8,Ke,null!==(ot=W.id)&&void 0!==ot?ot:W.vo.id))}}function oe(N,be){1&N&&(f.TgZ(0,"perun-web-apps-alert",31),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&N&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ce(N,be){1&N&&(f.TgZ(0,"perun-web-apps-alert",32),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&N&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let k=(()=>{class N{constructor(W){this.authResolver=W,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=C.f7,this.getDataForColumnFun=(ue,Me)=>N.getDataForColumn(ue,Me,this.recentIds)}set matSort(W){this.sort=W}static getDataForColumn(W,ue,Me){switch(N.isEnrichedVo(W)&&(W=W.vo),ue){case"id":return W.id.toString();case"shortName":return W.shortName;case"name":return W.name;case"recent":return Me&&Me.includes(W.id)?"#".repeat(Me.indexOf(W.id)):W.name;default:return W[ue]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(W=>"id"!==W)),this.setDataSource()}exportAllData(W){(0,C.O6)((0,C.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),W)}exportDisplayedData(W){const ue=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Me=ue+this.dataSource.paginator.pageSize;(0,C.O6)((0,C.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ue,Me),this.displayedColumns,this.getDataForColumnFun),W)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(W,ue)=>(0,C.Sd)(W,ue,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(W,ue)=>(0,C.pR)(W,ue,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}}return N.isEnrichedVo=be=>void 0!==be.vo,N.\u0275fac=function(W){return new(W||N)(f.Y36(M.x4))},N.\u0275cmp=f.Xpm({type:N,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(W,ue){if(1&W&&(f.Gf(C.l9,7),f.Gf(e.YE,7)),2&W){let Me;f.iGM(Me=f.CRH())&&(ue.child=Me.first),f.iGM(Me=f.CRH())&&(ue.matSort=Me.first)}},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions",tableId:"tableId"},features:[f.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","hierarchy"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn","data-cy","no-filter-result",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],[3,"svgIcon",4,"ngIf"],[3,"svgIcon"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn","data-cy","no-filter-result"],["alert_type","warn"]],template:function(W,ue){1&W&&(f.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),f.NdJ("exportDisplayedData",function(ot){return ue.exportDisplayedData(ot)})("exportAllData",function(ot){return ue.exportAllData(ot)}),f.TgZ(2,"table",2),f.ynx(3,3),f.YNc(4,se,1,0,"th",4),f.YNc(5,_e,4,9,"td",5),f.BQk(),f.ynx(6,6),f.YNc(7,Be,3,3,"th",7),f.YNc(8,E,2,1,"td",8),f.BQk(),f.ynx(9,9),f.YNc(10,z,1,0,"th",10),f.YNc(11,F,2,2,"td",11),f.BQk(),f.ynx(12,12),f.YNc(13,V,1,0,"th",10),f.YNc(14,q,2,1,"td",11),f.BQk(),f.ynx(15,13),f.YNc(16,pe,3,3,"th",7),f.YNc(17,le,2,2,"td",11),f.BQk(),f.ynx(18,14),f.YNc(19,ye,3,3,"th",7),f.YNc(20,Ve,2,1,"td",11),f.BQk(),f.YNc(21,ve,1,0,"tr",15),f.YNc(22,Ue,1,10,"tr",16),f.qZA()()(),f.YNc(23,oe,3,3,"perun-web-apps-alert",17),f.YNc(24,ce,3,3,"perun-web-apps-alert",18)),2&W&&(f.Q6J("hidden",0===ue.dataSource.filteredData.length||0===ue.vos.length),f.xp6(1),f.Q6J("dataLength",ue.dataSource.filteredData.length)("tableId",ue.tableId)("pageSizeOptions",ue.pageSizeOptions),f.xp6(1),f.Q6J("dataSource",ue.dataSource),f.xp6(19),f.Q6J("matHeaderRowDef",ue.displayedColumns),f.xp6(1),f.Q6J("matRowDefColumns",ue.displayedColumns),f.xp6(1),f.Q6J("ngIf",0===ue.dataSource.filteredData.length&&0!==ue.vos.length),f.xp6(1),f.Q6J("ngIf",0===ue.vos.length))},dependencies:[b.O5,D.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,T.rH,e.YE,e.nU,R.w,B.Hw,w.l,H.Y,J.W,O.Q,ne.X$,G.G],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),N})()},21029:($e,he,p)=>{"use strict";p.d(he,{FJ:()=>Mt,GI:()=>Nr,Wr:()=>ze,r2:()=>ht,gr:()=>Ie,u3:()=>Vn,Qu:()=>Ei,pf:()=>Ue,xF:()=>Ln,hd:()=>Vi,kZ:()=>ci,wA:()=>$,rd:()=>je,Eg:()=>ot,QQ:()=>kr,Bp:()=>Ee,qD:()=>it,jd:()=>pt,FM:()=>r,jD:()=>z,eK:()=>Qn,Lc:()=>n,h4:()=>Pi,Us:()=>qi,iI:()=>hi,mk:()=>s,Ts:()=>an});var e=p(36895),A=p(89383),C=p(30671),M=p(65412),f=p(4859),b=p(59549),D=p(24006),T=p(284),R=p(51572),B=p(71948),w=p(99602),H=p(64425),O=p(97392),J=p(19516),ne=p(63189),G=p(94364),se=p(35423),Oe=p(84385),_e=p(28499),Be=p(60900),E=p(94650);let z=(()=>{class lt{}return lt.\u0275fac=function(Xe){return new(Xe||lt)},lt.\u0275mod=E.oAB({type:lt}),lt.\u0275inj=E.cJS({imports:[e.ez,A.aw,C.p0,M.Is,f.ot,b.lN,D.u5,T.c,R.Cq,B.Fk,w.FA,D.UX,H.Iq,O.Ps,J.d4,ne.r,G.Bz,se.dp,Oe.LD,_e.E3,Be.C]}),lt})();var F=p(61744),V=p(81591),X=p(3238),q=p(20551);function pe(lt,Vt){1<&&E._UZ(0,"mat-spinner",6)}function le(lt,Vt){if(1<&&(E.TgZ(0,"mat-option",17),E._uU(1),E.ALo(2,"memberStatus"),E.qZA()),2<){const Xe=Vt.$implicit;E.Q6J("value",Xe),E.xp6(1),E.Oqu(E.lcZ(2,2,Xe))}}function ye(lt,Vt){if(1<){const Xe=E.EpF();E.TgZ(0,"mat-form-field",14)(1,"mat-label"),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"mat-select",15),E.NdJ("selectionChange",function(Wt){E.CHM(Xe);const dn=E.oxw(3);return E.KtG(dn.changeStatus(Wt))}),E.YNc(5,le,3,4,"mat-option",16),E.qZA()()}if(2<){const Xe=E.oxw(3);E.xp6(2),E.Oqu(E.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),E.xp6(3),E.Q6J("ngForOf",Xe.allStatuses)}}function Ve(lt,Vt){if(1<&&(E.TgZ(0,"div",8),E._uU(1),E.ALo(2,"translate"),E.YNc(3,ye,6,4,"mat-form-field",13),E.qZA()),2<){const Xe=E.oxw(2);E.xp6(1),E.hij(" ",E.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),E.xp6(2),E.Q6J("ngIf",!Xe.loading)}}function ve(lt,Vt){if(1<&&(E.TgZ(0,"div",8),E._uU(1),E.ALo(2,"translate"),E.ALo(3,"memberStatus"),E.qZA()),2<){const Xe=E.oxw(2);E.xp6(1),E.AsE(" ",E.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," ",E.lcZ(3,4,Xe.allStatuses[0])," ")}}function Ke(lt,Vt){if(1<&&(E.TgZ(0,"div",7)(1,"div",8),E._uU(2),E.ALo(3,"translate"),E.ALo(4,"memberStatus"),E.qZA(),E.TgZ(5,"div",9),E._uU(6),E.qZA(),E.YNc(7,Ve,4,4,"div",10),E.YNc(8,ve,4,6,"div",10),E.TgZ(9,"div",11),E._UZ(10,"i",12),E.qZA()()),2<){const Xe=E.oxw();E.xp6(2),E.AsE(" ",E.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",E.lcZ(4,8,Xe.actualStatus)," "),E.xp6(4),E.Oqu(Xe.description),E.xp6(1),E.Q6J("ngIf",Xe.allStatuses.length>1),E.xp6(1),E.Q6J("ngIf",1===Xe.allStatuses.length),E.xp6(2),E.Q6J("innerHTML",Xe.changeMessage,E.oJD)}}let Ue=(()=>{class lt{constructor(Xe,yt,Wt,dn,An,Yn){this.dialogRef=Xe,this.data=yt,this.memberManager=Wt,this.groupsManager=dn,this.notificatorService=An,this.translate=Yn,this.loading=!1,this.allStatuses=["VALID","INVALID","EXPIRED","DISABLED"]}ngOnInit(){switch(this.data.groupId?(this.theme="group-theme",this.actualStatus=this.data.member.groupStatus):(this.theme="vo-theme",this.actualStatus=this.data.member.status),this.changeStatusButton=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_STATUS"),this.changeStatusWithExpButton=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_STATUS_WITH_EXPIRATION"),this.submitButtonText=this.changeStatusButton,this.cancelOrBackButton=this.translate.instant(this.data.backButton?"DIALOGS.CHANGE_STATUS.BACK":"DIALOGS.CHANGE_STATUS.CANCEL"),this.data.groupId?("VALID"===this.actualStatus?(this.allStatuses=["EXPIRED"],this.selectedStatus="EXPIRED"):(this.allStatuses=["VALID"],this.selectedStatus="VALID"),this.submitButtonText=this.changeStatusWithExpButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)):this.allStatuses="INVALID"===this.actualStatus?["VALID","EXPIRED"]:this.allStatuses.filter(Xe=>Xe!==this.actualStatus),this.actualStatus){case"VALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.VALID_DESCRIPTION");break;case"INVALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.INVALID_DESCRIPTION");break;case"EXPIRED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.EXPIRED_DESCRIPTION");break;case"DISABLED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.DISABLED_DESCRIPTION");break;default:this.description=""}}changeStatus(Xe){this.selectedStatus=Xe.value,this.submitButtonText=("VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus)&&!this.data.disableChangeExpiration?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe({next:Xe=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(yt=>{this.notificatorService.showSuccess(yt),this.dialogRef.close(Xe)})},error:()=>this.loading=!1}):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe({next:Xe=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(yt=>{this.notificatorService.showSuccess(yt),this.dialogRef.close(Xe)})},error:()=>this.loading=!1})}changeStatusMessage(Xe,yt){if("VALID"===Xe)switch(yt){case"INVALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_INVALID");break;case"EXPIRED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_EXPIRED");break;case"DISABLED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_DISABLED");break;default:this.changeMessage=""}else switch(yt){case"VALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_VALID");break;case"INVALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_INVALID");break;case"EXPIRED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_EXPIRED");break;case"DISABLED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_DISABLED");break;default:this.changeMessage=""}}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI),E.Y36(F.uq),E.Y36(F.ff),E.Y36(V.V6),E.Y36(V.Te))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-change-member-status-dialog"]],decls:11,vars:11,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-weight-bold","pb-1"],[1,"text-muted","pb-3"],["class","font-weight-bold pb-1",4,"ngIf"],[1,"text-muted","new-line"],[3,"innerHTML"],["class","mr-2 mt-2",4,"ngIf"],[1,"mr-2","mt-2"],[3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,pe,1,0,"mat-spinner",1),E.YNc(5,Ke,11,10,"div",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return yt.cancel()}),E._uU(8),E.qZA(),E.TgZ(9,"button",5),E.NdJ("click",function(){return yt.submit()}),E._uU(10),E.qZA()()()),2&Xe&&(E.Tol(yt.theme),E.xp6(2),E.Oqu(E.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),E.xp6(2),E.Q6J("ngIf",yt.loading),E.xp6(1),E.Q6J("ngIf",!yt.loading),E.xp6(3),E.hij(" ",yt.cancelOrBackButton," "),E.xp6(1),E.Q6J("disabled",yt.loading||!yt.selectedStatus),E.xp6(1),E.hij(" ",yt.submitButtonText," "))},dependencies:[e.sg,e.O5,M.uh,M.xY,M.H8,f.lW,b.KE,b.hX,R.Ou,Oe.gD,X.ey,A.X$,q.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),lt})();function oe(lt,Vt){1<&&(E.TgZ(0,"h1",7),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")," "))}function ce(lt,Vt){1<&&(E.TgZ(0,"h1",7),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")," "))}function k(lt,Vt){1<&&(E.TgZ(0,"h1",7),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")," "))}function N(lt,Vt){1<&&(E.TgZ(0,"h1",7),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")," "))}function be(lt,Vt){1<&&E._UZ(0,"mat-spinner",8)}function W(lt,Vt){if(1<&&(E.TgZ(0,"mat-form-field"),E._UZ(1,"input",13),E.ALo(2,"translate"),E.qZA()),2<){const Xe=E.oxw(2);E.xp6(1),E.MGl("placeholder","",E.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),E.Q6J("value",Xe.shortName)}}function ue(lt,Vt){if(1<&&(E.TgZ(0,"mat-form-field",14),E._UZ(1,"textarea",15),E.ALo(2,"translate"),E.qZA()),2<){const Xe=E.oxw(2);E.xp6(1),E.MGl("placeholder","",E.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),E.Q6J("formControl",Xe.descriptionCtrl)}}function Me(lt,Vt){if(1<&&(E.TgZ(0,"div",9),E.YNc(1,W,3,4,"mat-form-field",10),E.TgZ(2,"mat-form-field"),E._UZ(3,"input",11),E.ALo(4,"translate"),E.TgZ(5,"mat-error"),E._uU(6),E.ALo(7,"translate"),E.qZA()(),E.YNc(8,ue,3,4,"mat-form-field",12),E.qZA()),2<){const Xe=E.oxw();E.xp6(1),E.Q6J("ngIf",2===Xe.dialogType),E.xp6(2),E.MGl("placeholder","",E.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),E.Q6J("formControl",Xe.nameCtrl),E.xp6(3),E.hij(" ",Xe.invalidNameMessage.length?Xe.invalidNameMessage:E.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),E.xp6(2),E.Q6J("ngIf",2!==Xe.dialogType)}}var ot=(()=>{return(lt=ot||(ot={}))[lt.FACILITY=0]="FACILITY",lt[lt.RESOURCE=1]="RESOURCE",lt[lt.VO=2]="VO",lt[lt.GROUP=3]="GROUP",ot;var lt})();let je=(()=>{class lt{constructor(Xe,yt,Wt,dn,An,Yn,oi,bi,cr){this.dialogRef=Xe,this.data=yt,this.notificator=Wt,this.translateService=dn,this.facilitiesManager=An,this.resourcesManager=Yn,this.groupsManager=oi,this.vosManager=bi,this.store=cr,this.invalidNameMessage=this.data.dialogType===ot.GROUP?this.store.getProperty("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===ot.GROUP?this.store.getProperty("group_name_secondary_regex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case ot.FACILITY:this.nameCtrl=new D.p4(this.data.facility.name,[D.kI.required,D.kI.pattern(".*[\\S]+.*"),D.kI.maxLength(129)]),this.descriptionCtrl=new D.p4(this.data.facility.description);break;case ot.RESOURCE:this.nameCtrl=new D.p4(this.data.resource.name,[D.kI.required,D.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new D.p4(this.data.resource.description);break;case ot.GROUP:{const Xe=this.data.group.name.split(":");this.nameCtrl=new D.p4(Xe[Xe.length-1],[D.kI.required,D.kI.pattern(".*[\\S]+.*"),D.kI.pattern(this.secondaryRegex),D.kI.maxLength(129)]),this.descriptionCtrl=new D.p4(this.data.group.description);break}case ot.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new D.p4(this.data.vo.name,[D.kI.required,D.kI.pattern(".*[\\S]+.*"),D.kI.maxLength(129)]),this.descriptionCtrl=new D.p4}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case ot.FACILITY:this.editFacility();break;case ot.RESOURCE:this.editResource();break;case ot.GROUP:this.editGroup();break;case ot.VO:this.editVo()}}editResource(){this.data.resource.name=this.nameCtrl.value,this.data.resource.description=this.descriptionCtrl.value,this.resourcesManager.updateResource({resource:this.data.resource}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.RESOURCE_SUCCESS").subscribe(Xe=>{this.notificator.showSuccess(Xe),this.dialogRef.close(!0)})},()=>this.loading=!1)}editFacility(){this.data.facility.name=this.nameCtrl.value,this.data.facility.description=this.descriptionCtrl.value,this.facilitiesManager.updateFacility({facility:this.data.facility}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FACILITY_SUCCESS").subscribe(Xe=>{this.notificator.showSuccess(Xe),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(Xe=>{const yt=Xe;yt.name=this.nameCtrl.value,yt.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:yt}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(Wt=>{this.notificator.showSuccess(Wt),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}editVo(){this.data.vo.name=this.nameCtrl.value,this.vosManager.updateVo({vo:this.data.vo}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.VO_SUCCESS").subscribe(Xe=>{this.notificator.showSuccess(Xe),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI),E.Y36(V.V6),E.Y36(A.sK),E.Y36(F.IQ),E.Y36(F.xk),E.Y36(F.ff),E.Y36(F.YF),E.Y36(V.d6))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-edit-facility-resource-group-vo-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title","",4,"ngIf"],["mat-dialog-content",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl","placeholder"],["class","mt-3",4,"ngIf"],["disabled","","matInput","","required","",3,"value","placeholder"],[1,"mt-3"],["mat-autosize","","matInput","",1,"overflow-hidden",3,"formControl","placeholder"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"div"),E.YNc(1,oe,3,3,"h1",0),E.YNc(2,ce,3,3,"h1",0),E.YNc(3,k,3,3,"h1",0),E.YNc(4,N,3,3,"h1",0),E.TgZ(5,"div",1),E.YNc(6,be,1,0,"mat-spinner",2),E.YNc(7,Me,9,9,"div",3),E.qZA(),E.TgZ(8,"div",4)(9,"button",5),E.NdJ("click",function(){return yt.cancel()}),E._uU(10),E.ALo(11,"translate"),E.qZA(),E.TgZ(12,"button",6),E.NdJ("click",function(){return yt.submit()}),E._uU(13),E.ALo(14,"translate"),E.qZA()()()),2&Xe&&(E.Tol(yt.theme),E.xp6(1),E.Q6J("ngIf",0===yt.dialogType),E.xp6(1),E.Q6J("ngIf",1===yt.dialogType),E.xp6(1),E.Q6J("ngIf",2===yt.dialogType),E.xp6(1),E.Q6J("ngIf",3===yt.dialogType),E.xp6(2),E.Q6J("ngIf",yt.loading),E.xp6(1),E.Q6J("ngIf",!yt.loading),E.xp6(3),E.hij(" ",E.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),E.xp6(2),E.Q6J("disabled",yt.loading||yt.nameCtrl.invalid||yt.descriptionCtrl.invalid),E.xp6(1),E.hij(" ",E.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},dependencies:[e.O5,M.uh,M.xY,M.H8,f.lW,b.TO,b.KE,D.Fj,D.JJ,D.Q7,T.Nt,R.Ou,D.oH,A.X$]}),lt})();var ut=p(64080),tt=p(9244);function vt(lt,Vt){1<&&E._UZ(0,"mat-spinner",7)}const ee=function(lt){return{interval:lt}};function nt(lt,Vt){if(1<&&(E.TgZ(0,"div",8)(1,"mat-form-field"),E._UZ(2,"input",9),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"mat-form-field"),E._UZ(5,"input",9),E.ALo(6,"translate"),E.ALo(7,"translate"),E.qZA(),E.TgZ(8,"mat-form-field"),E._UZ(9,"input",9),E.ALo(10,"translate"),E.qZA(),E.TgZ(11,"mat-form-field"),E._UZ(12,"input",9),E.ALo(13,"translate"),E.ALo(14,"translate"),E.qZA(),E.TgZ(15,"mat-form-field"),E._UZ(16,"input",9),E.ALo(17,"translate"),E.ALo(18,"translate"),E.qZA()()),2<){const Xe=E.oxw();E.xp6(2),E.s9C("placeholder",E.lcZ(3,10,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")),E.Q6J("value",Xe.group.name),E.xp6(3),E.s9C("placeholder",E.lcZ(7,14,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")),E.Q6J("value",E.lcZ(6,12,Xe.syncType)),E.xp6(4),E.s9C("placeholder",E.lcZ(10,16,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")),E.Q6J("value",Xe.syncState),E.xp6(3),E.s9C("placeholder",E.lcZ(14,20,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")),E.Q6J("value",E.lcZ(13,18,Xe.syncTime)),E.xp6(4),E.s9C("placeholder",E.lcZ(18,25,"DIALOGS.GROUP_SYNC_DETAIL.SYNC_INTERVAL")),E.Q6J("value",E.xi3(17,22,"DIALOGS.GROUP_SYNC_DETAIL.SYNC_INTERVAL_MINUTES",E.VKq(27,ee,Xe.syncInterval)))}}function Ae(lt,Vt){if(1<){const Xe=E.EpF();E.TgZ(0,"button",10),E.NdJ("click",function(){E.CHM(Xe);const Wt=E.oxw();return E.KtG(Wt.onForce())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2<){const Xe=E.oxw();E.Q6J("disabled",Xe.loading),E.xp6(1),E.hij(" ",E.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let Ee=(()=>{class lt{constructor(Xe,yt,Wt,dn){this.dialogRef=Xe,this.data=yt,this.groupService=Wt,this.notificator=dn,this.loading=!0,this.syncInterval="",this.syncState="",this.syncTime="",this.syncType=""}ngOnInit(){this.theme=this.data.theme,this.loadGroup()}onCancel(){this.dialogRef.close(null)}onForce(){this.loading=!0,"BASIC"===this.type?this.groupService.forceGroupSynchronization(this.group.id).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},error:()=>this.loading=!1}):this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},error:()=>this.loading=!1})}refresh(){this.loadGroup()}loadGroup(){this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[ut.r.GROUP_SYNC_ENABLED,ut.r.GROUP_LAST_SYNC_STATE,ut.r.GROUP_LAST_SYNC_TIMESTAMP,ut.r.GROUP_STRUCTURE_SYNC_ENABLED,ut.r.GROUP_LAST_STRUCTURE_SYNC_STATE,ut.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,ut.r.GROUP_SYNC_INTERVAL]).subscribe(Xe=>{this.group=Xe;const yt=(0,tt.IL)(this.group.attributes,ut.r.GROUP_SYNC_ENABLED).value,Wt=(0,tt.IL)(this.group.attributes,ut.r.GROUP_LAST_SYNC_STATE).value,dn=(0,tt.IL)(this.group.attributes,ut.r.GROUP_LAST_SYNC_TIMESTAMP).value,An=(0,tt.IL)(this.group.attributes,ut.r.GROUP_STRUCTURE_SYNC_ENABLED).value,Yn=(0,tt.IL)(this.group.attributes,ut.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,oi=(0,tt.IL)(this.group.attributes,ut.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,bi=(0,tt.IL)(this.group.attributes,ut.r.GROUP_SYNC_INTERVAL).value;this.syncInterval=null===bi?"N/A":(5*+bi).toString(),null!==yt&&"true"===yt&&(this.type="BASIC",this.syncType="DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC",this.syncState=""!==Wt?Wt:"OK",this.syncTime=(0,e.p6)(dn,"YYYY-MM-dd H:mm:ss","en")),null!==An&&An&&(this.type="STRUCTURED",this.syncType="DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC",this.syncState=""!==Yn?Yn:"OK",this.syncTime=(0,e.p6)(oi,"YYYY-MM-dd H:mm:ss","en")),this.loading=!1})}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI),E.Y36(F.ff),E.Y36(V.V6))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-group-sync-detail-dialog"]],decls:12,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-flat-button","",1,"ml-2",3,"click"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","readonly","",3,"value","placeholder"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,vt,1,0,"mat-spinner",1),E.YNc(5,nt,19,29,"div",2),E.TgZ(6,"div",3)(7,"div",4)(8,"button",5),E.NdJ("click",function(){return yt.onCancel()}),E._uU(9),E.ALo(10,"translate"),E.qZA(),E.YNc(11,Ae,3,4,"button",6),E.qZA()()()),2&Xe&&(E.Tol(yt.theme),E.xp6(2),E.Oqu(E.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),E.xp6(2),E.Q6J("ngIf",yt.loading),E.xp6(1),E.Q6J("ngIf",!yt.loading),E.xp6(4),E.hij(" ",E.lcZ(10,10,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "),E.xp6(2),E.Q6J("ngIf","BASIC"===yt.type||"STRUCTURED"===yt.type))},dependencies:[e.O5,M.uh,M.xY,M.H8,f.lW,b.KE,T.Nt,R.Ou,A.X$]}),lt})();function ge(lt,Vt){1<&&E._UZ(0,"mat-spinner",7)}function we(lt,Vt){1<&&(E.TgZ(0,"mat-error"),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function Ne(lt,Vt){1<&&(E.TgZ(0,"mat-error"),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function Ce(lt,Vt){if(1<){const Xe=E.EpF();E.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),E._uU(3),E.ALo(4,"translate"),E.qZA(),E.TgZ(5,"input",9,10),E.NdJ("ngModelChange",function(Wt){E.CHM(Xe);const dn=E.oxw();return E.KtG(dn.subject=Wt)}),E.qZA(),E.YNc(7,we,3,3,"mat-error",11),E.qZA(),E.TgZ(8,"mat-form-field")(9,"mat-label"),E._uU(10),E.ALo(11,"translate"),E.qZA(),E.TgZ(12,"textarea",12,13),E.NdJ("ngModelChange",function(Wt){E.CHM(Xe);const dn=E.oxw();return E.KtG(dn.message=Wt)}),E.ALo(14,"translate"),E._uU(15," "),E.qZA(),E.YNc(16,Ne,3,3,"mat-error",11),E.qZA()()}if(2<){const Xe=E.MAs(6),yt=E.MAs(13),Wt=E.oxw();E.xp6(3),E.Oqu(E.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),E.xp6(2),E.Q6J("ngModel",Wt.subject),E.xp6(2),E.Q6J("ngIf",Xe.invalid),E.xp6(3),E.Oqu(E.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),E.xp6(2),E.s9C("placeholder",E.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),E.Q6J("ngModel",Wt.message),E.xp6(4),E.Q6J("ngIf",yt.invalid)}}let fe=(()=>{class lt{constructor(Xe,yt,Wt,dn,An,Yn){this.dialogRef=Xe,this.translate=yt,this.notificator=Wt,this.rtMessages=dn,this.data=An,this.storeService=Yn,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(Xe=>{this.dialogRef.afterClosed().subscribe(()=>{const yt="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),Xe.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(yt)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const Xe=this.storeService.getProperty("config");let yt=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(yt=yt.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),yt=yt.concat(this.data.error.message,"\n","Perun instance: ",Xe,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const Wt=/"password":".+?"/;let dn=JSON.stringify(this.data.error.payload);dn=dn.replace(Wt,'"password":"####"'),yt=yt.concat("Payload:\n"+dn+"\n\n")}return yt=yt.concat("Sent from new Perun Gui, version: ",p(4147).i8),yt.split("\n").join("\n ")}parseMethod(Xe){return Xe&&this.methodRegexp.exec(Xe)[1]}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(A.sK),E.Y36(V.V6),E.Y36(F.Hr),E.Y36(M.WI),E.Y36(V.d6))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.YNc(3,ge,1,0,"mat-spinner",1),E.YNc(4,Ce,17,13,"div",2),E.TgZ(5,"div",3)(6,"div",4)(7,"button",5),E.NdJ("click",function(){return yt.dialogRef.close()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",6),E.NdJ("click",function(){return yt.sendBugReport()}),E._uU(11),E.ALo(12,"translate"),E.qZA()()()),2&Xe&&(E.xp6(1),E.Oqu(E.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),E.xp6(2),E.Q6J("ngIf",yt.loading),E.xp6(1),E.Q6J("ngIf",!yt.loading),E.xp6(4),E.hij(" ",E.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),E.xp6(2),E.Q6J("disabled",""===yt.message||""===yt.subject||yt.loading),E.xp6(1),E.hij(" ",E.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[e.O5,M.uh,M.xY,M.H8,f.lW,b.TO,b.KE,b.hX,D.Fj,D.JJ,D.Q7,D.On,T.Nt,R.Ou,A.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),lt})(),r=(()=>{class lt{constructor(Xe,yt,Wt){this.dialogRef=Xe,this.dialog=yt,this.data=Wt}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const Xe=(0,tt.kZ)();Xe.width="550px",Xe.data={error:this.data.error},Xe.autoFocus=!1,this.dialog.open(fe,Xe)}),this.dialogRef.close()}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.uw),E.Y36(M.WI))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"h1",0),E._uU(1),E.qZA(),E.TgZ(2,"div",1),E._uU(3),E.qZA(),E.TgZ(4,"div",2)(5,"div",3)(6,"button",4),E.NdJ("click",function(){return yt.onBugReportClick()}),E._uU(7),E.ALo(8,"translate"),E.qZA(),E.TgZ(9,"button",5),E.NdJ("click",function(){return yt.onCloseClick()}),E._uU(10),E.ALo(11,"translate"),E.qZA()()()),2&Xe&&(E.xp6(1),E.Oqu(yt.data.title),E.xp6(2),E.hij(" ",yt.data.description,"\n"),E.xp6(3),E.Q6J("hidden","error"!==yt.data.type),E.xp6(1),E.hij(" ",E.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),E.xp6(3),E.hij(" ",E.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[M.uh,M.xY,M.H8,f.lW,A.X$]}),lt})();var u=p(34447);function g(lt,Vt){1<&&E._UZ(0,"mat-spinner",3)}function v(lt,Vt){1<&&E._UZ(0,"th",15)}function h(lt,Vt){if(1<&&(E.TgZ(0,"td",16),E._uU(1),E.qZA()),2<){const Xe=Vt.$implicit;E.xp6(1),E.hij(" ",Xe.userExtSource.extSource.name," ")}}function a(lt,Vt){1<&&E._UZ(0,"tr",17)}function i(lt,Vt){1<&&E._UZ(0,"tr",18)}function t(lt,Vt){if(1<){const Xe=E.EpF();E.TgZ(0,"div")(1,"div",4)(2,"p"),E._uU(3),E.ALo(4,"translate"),E.ALo(5,"customTranslate"),E.qZA(),E.TgZ(6,"div",5),E._uU(7),E.ALo(8,"translate"),E.ALo(9,"customTranslate"),E.qZA(),E.TgZ(10,"table",6),E.ynx(11,7),E.YNc(12,v,1,0,"th",8),E.YNc(13,h,2,1,"td",9),E.BQk(),E.YNc(14,a,1,0,"tr",10),E.YNc(15,i,1,0,"tr",11),E.qZA()(),E.TgZ(16,"div",12)(17,"button",13),E.NdJ("click",function(){E.CHM(Xe);const Wt=E.oxw();return E.KtG(Wt.onCancel())}),E._uU(18),E.ALo(19,"translate"),E.ALo(20,"customTranslate"),E.qZA(),E.TgZ(21,"button",14),E.NdJ("click",function(){E.CHM(Xe);const Wt=E.oxw();return E.KtG(Wt.onSubmit())}),E._uU(22),E.ALo(23,"translate"),E.ALo(24,"customTranslate"),E.qZA()()()}if(2<){const Xe=E.oxw();E.xp6(3),E.hij(" ",E.lcZ(4,7,E.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),E.xp6(4),E.hij(" ",E.lcZ(8,11,E.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),E.xp6(3),E.Q6J("dataSource",Xe.dataSource),E.xp6(4),E.Q6J("matHeaderRowDef",Xe.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",Xe.displayedColumns),E.xp6(3),E.hij(" ",E.lcZ(19,15,E.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),E.xp6(4),E.hij(" ",E.lcZ(23,19,E.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let n=(()=>{class lt{constructor(Xe,yt,Wt,dn,An){this.dialogRef=Xe,this.data=yt,this.usersManagerService=Wt,this.translate=dn,this.notificator=An,this.force=!1,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new C.by(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const Xe=this.data.extSources.map(yt=>yt.userExtSource.id);this.usersManagerService.removeUserExtSources(this.data.userId,Xe,this.force).subscribe({next:()=>{this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI),E.Y36(F.Fv),E.Y36(V.Te),E.Y36(V.V6))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.ALo(3,"customTranslate"),E.qZA(),E.TgZ(4,"div"),E.YNc(5,g,1,0,"mat-spinner",1),E.YNc(6,t,25,23,"div",2),E.qZA()),2&Xe&&(E.xp6(1),E.hij(" ",E.lcZ(2,6,E.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),E.xp6(3),E.Tol(yt.theme),E.xp6(1),E.Q6J("ngIf",yt.loading),E.xp6(1),E.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,M.uh,M.xY,M.H8,f.lW,R.Ou,A.X$,u.a]}),lt})();var o=p(39349);let s=(()=>{class lt{constructor(Xe,yt){this.dialogRef=Xe,this.data=yt}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"h1",0),E._uU(1),E.qZA(),E.TgZ(2,"div",1)(3,"textarea",2),E._uU(4),E.qZA()(),E.TgZ(5,"div",3)(6,"button",4),E.NdJ("click",function(){return yt.onCancel()}),E._uU(7),E.ALo(8,"translate"),E.qZA(),E.TgZ(9,"button",5),E._uU(10),E.ALo(11,"translate"),E.qZA()()),2&Xe&&(E.xp6(1),E.Oqu(yt.title),E.xp6(3),E.Oqu(yt.value),E.xp6(3),E.hij(" ",E.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),E.xp6(2),E.Q6J("cdkCopyToClipboard",yt.value),E.xp6(1),E.hij(" ",E.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},dependencies:[M.uh,M.xY,M.H8,f.lW,o.IC,T.Nt,H.i3,A.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),lt})();function l(lt,Vt){1<&&E._UZ(0,"th",12)}function d(lt,Vt){if(1<&&(E.TgZ(0,"td",13),E._uU(1),E.qZA()),2<){const Xe=Vt.$implicit;E.xp6(1),E.Oqu(Xe.displayName)}}function c(lt,Vt){1<&&E._UZ(0,"tr",14)}function S(lt,Vt){1<&&E._UZ(0,"tr",15)}let $=(()=>{class lt{constructor(Xe,yt,Wt,dn,An){this.dialogRef=Xe,this.data=yt,this.notificator=Wt,this.translate=dn,this.attributesManager=An,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new C.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){switch(this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()})}break;case"facility":"user"===this.data.secondEntity?this.attributesManager.setFacilityUserAttributes({facility:this.data.entityId,user:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"resource":switch(this.data.secondEntity){case"member":this.attributesManager.setMemberResourceAttributes({resource:this.data.entityId,member:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;case"group":this.attributesManager.setResourceGroupAttributes({resource:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess())}}}onSuccess(){this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe(Xe=>{this.notificator.showSuccess(Xe),this.dialogRef.close(!0)})}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI),E.Y36(V.V6),E.Y36(A.sK),E.Y36(F.H8))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-edit-attribute-dialog"]],decls:23,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"div",1)(4,"div"),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"div",2),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"table",3),E.ynx(11,4),E.YNc(12,l,1,0,"th",5),E.YNc(13,d,2,1,"td",6),E.BQk(),E.YNc(14,c,1,0,"tr",7),E.YNc(15,S,1,0,"tr",8),E.qZA()(),E.TgZ(16,"div",9)(17,"button",10),E.NdJ("click",function(){return yt.onCancel()}),E._uU(18),E.ALo(19,"translate"),E.qZA(),E.TgZ(20,"button",11),E.NdJ("click",function(){return yt.onSubmit()}),E._uU(21),E.ALo(22,"translate"),E.qZA()()),2&Xe&&(E.xp6(1),E.Oqu(E.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),E.xp6(4),E.hij(" ",E.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),E.xp6(3),E.hij(" ",E.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),E.xp6(2),E.Q6J("dataSource",yt.dataSource),E.xp6(4),E.Q6J("matHeaderRowDef",yt.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",yt.displayedColumns),E.xp6(3),E.hij(" ",E.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),E.xp6(3),E.hij(" ",E.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},dependencies:[C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,M.uh,M.xY,M.H8,f.lW,A.X$]}),lt})(),ht=(()=>{class lt{constructor(Xe,yt){this.dialogRef=Xe,this.data=yt,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"h5",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"div",1)(4,"mat-form-field")(5,"textarea",2),E.NdJ("ngModelChange",function(dn){return yt.attributeValue=dn}),E.qZA()()(),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return yt.cancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return yt.submit()}),E._uU(11),E.ALo(12,"translate"),E.qZA()()),2&Xe&&(E.xp6(1),E.hij(" ",E.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),E.xp6(4),E.Q6J("ngModel",yt.attributeValue),E.xp6(3),E.hij(" ",E.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),E.xp6(3),E.hij(" ",E.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[M.uh,M.xY,M.H8,f.lW,b.KE,D.Fj,D.JJ,D.On,o.IC,T.Nt,A.X$]}),lt})(),ze=(()=>{class lt{constructor(Xe,yt){this.dialogRef=Xe,this.data=yt}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"h5",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"div",1)(4,"div"),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"div",2),E._uU(8),E.qZA()(),E.TgZ(9,"div",3)(10,"button",4),E.NdJ("click",function(){return yt.cancel()}),E._uU(11),E.ALo(12,"translate"),E.qZA(),E.TgZ(13,"button",5),E.NdJ("click",function(){return yt.submit()}),E._uU(14),E.ALo(15,"translate"),E.qZA()()),2&Xe&&(E.xp6(1),E.hij(" ",E.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),E.xp6(4),E.hij(" ",E.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),E.xp6(3),E.hij(" ",yt.data.name," "),E.xp6(3),E.hij(" ",E.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),E.xp6(3),E.hij(" ",E.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[M.uh,M.xY,M.H8,f.lW,A.X$]}),lt})();var et=p(98380);function te(lt,Vt){if(1<&&(E.TgZ(0,"perun-web-apps-alert",9),E._uU(1),E.qZA()),2<){const Xe=E.oxw();E.xp6(1),E.Oqu(Xe.pendingEmailsMessage)}}function Le(lt,Vt){1<&&(E.TgZ(0,"mat-error"),E._uU(1),E.ALo(2,"translate"),E.ALo(3,"customTranslate"),E.qZA()),2<&&(E.xp6(1),E.Oqu(E.lcZ(2,1,E.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let Ie=(()=>{class lt{constructor(Xe,yt,Wt,dn,An,Yn){this.dialogRef=Xe,this.data=yt,this.translate=Wt,this.notificator=dn,this.usersManagerService=An,this.authService=Yn,this.pendingMails=[],Wt.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(oi=>this.successMessage=oi),Wt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(oi=>this.pendingEmailsMessageStart=oi),Wt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(oi=>this.pendingEmailsMessageEnd=oi)}ngOnInit(){this.emailControl=new D.p4(null,[D.kI.required,D.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(Xe=>{this.pendingMails=Xe.filter((Wt,dn,An)=>dn===An.indexOf(Wt));let yt="";this.pendingMails.forEach(Wt=>yt+=`${Wt===this.pendingMails[0]?"":", "}${Wt}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+yt+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const yt=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",yt[0]+"//"+yt[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI),E.Y36(A.sK),E.Y36(V.V6),E.Y36(F.Fv),E.Y36(V.e8))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.ALo(3,"customTranslate"),E.qZA(),E.TgZ(4,"div",1),E.YNc(5,te,2,1,"perun-web-apps-alert",2),E.TgZ(6,"mat-form-field",3)(7,"label",3),E._UZ(8,"input",4),E.ALo(9,"translate"),E.ALo(10,"customTranslate"),E.qZA(),E.YNc(11,Le,4,5,"mat-error",5),E.qZA()(),E.TgZ(12,"div",6)(13,"button",7),E.NdJ("click",function(){return yt.onCancel()}),E._uU(14),E.ALo(15,"translate"),E.ALo(16,"customTranslate"),E.qZA(),E.TgZ(17,"button",8),E.NdJ("click",function(){return yt.onSubmit()}),E._uU(18),E.ALo(19,"translate"),E.ALo(20,"customTranslate"),E.qZA()()),2&Xe&&(E.xp6(1),E.Oqu(E.lcZ(2,8,E.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),E.xp6(4),E.Q6J("ngIf",yt.pendingMails.length),E.xp6(3),E.s9C("placeholder",E.lcZ(9,12,E.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),E.Q6J("formControl",yt.emailControl),E.xp6(3),E.Q6J("ngIf",yt.emailControl.invalid),E.xp6(3),E.hij(" ",E.lcZ(15,16,E.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),E.xp6(3),E.Q6J("disabled",!yt.emailControl.valid),E.xp6(1),E.hij(" ",E.lcZ(19,20,E.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},dependencies:[e.O5,M.uh,M.xY,M.H8,f.lW,b.TO,b.KE,D.Fj,D.JJ,D.Q7,T.Nt,D.oH,et.w,A.X$,u.a]}),lt})();function De(lt,Vt){1<&&E._UZ(0,"mat-spinner",7)}function xe(lt,Vt){1<&&(E.TgZ(0,"div",12),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function ie(lt,Vt){1<&&E._UZ(0,"th",19)}function Te(lt,Vt){if(1<&&(E.TgZ(0,"td",20),E._uU(1),E.qZA()),2<){const Xe=Vt.$implicit;E.xp6(1),E.Oqu(Xe)}}function st(lt,Vt){1<&&E._UZ(0,"tr",21)}function Qe(lt,Vt){1<&&E._UZ(0,"tr",22)}function Et(lt,Vt){if(1<&&(E.TgZ(0,"table",13),E.ynx(1,14),E.YNc(2,ie,1,0,"th",15),E.YNc(3,Te,2,1,"td",16),E.BQk(),E.YNc(4,st,1,0,"tr",17),E.YNc(5,Qe,1,0,"tr",18),E.qZA()),2<){const Xe=E.oxw(2);E.Q6J("dataSource",Xe.dataSource),E.xp6(4),E.Q6J("matHeaderRowDef",Xe.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",Xe.displayedColumns)}}function ke(lt,Vt){if(1<&&(E.TgZ(0,"perun-web-apps-alert",23),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<){const Xe=E.oxw(2);E.Q6J("alert_type","warn"),E.xp6(1),E.hij(" ",E.lcZ(2,2,Xe.data.alert)," ")}}function at(lt,Vt){if(1<&&(E.TgZ(0,"div",8)(1,"p"),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,xe,3,3,"div",9),E.YNc(5,Et,6,3,"table",10),E.YNc(6,ke,3,4,"perun-web-apps-alert",11),E.qZA()),2<){const Xe=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,4,Xe.data.description)," "),E.xp6(2),E.Q6J("ngIf",Xe.data.showAsk),E.xp6(1),E.Q6J("ngIf",Xe.data.items.length),E.xp6(1),E.Q6J("ngIf",Xe.data.alert)}}function It(lt,Vt){if(1<){const Xe=E.EpF();E.TgZ(0,"button",24),E.NdJ("click",function(){E.CHM(Xe);const Wt=E.oxw();return E.KtG(Wt.onSubmit())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2<){const Xe=E.oxw();E.Q6J("disabled",Xe.loading),E.xp6(1),E.hij(" ",E.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function jt(lt,Vt){if(1<){const Xe=E.EpF();E.TgZ(0,"button",25),E.NdJ("click",function(){E.CHM(Xe);const Wt=E.oxw();return E.KtG(Wt.onSubmit())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2<){const Xe=E.oxw();E.Q6J("disabled",Xe.loading),E.xp6(1),E.hij(" ",E.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let an=(()=>{class lt{constructor(Xe,yt){this.dialogRef=Xe,this.data=yt,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new C.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-weight-bold",4,"ngIf"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,De,1,0,"mat-spinner",1),E.YNc(5,at,7,6,"div",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return yt.onCancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.YNc(10,It,3,4,"button",5),E.YNc(11,jt,3,4,"button",6),E.qZA()()),2&Xe&&(E.Tol(yt.theme),E.xp6(2),E.Oqu(E.lcZ(3,9,yt.data.title)),E.xp6(2),E.Q6J("ngIf",yt.loading),E.xp6(1),E.Q6J("ngIf",!yt.loading),E.xp6(3),E.hij(" ",E.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),E.xp6(2),E.Q6J("ngIf","remove"===yt.data.type),E.xp6(1),E.Q6J("ngIf","confirmation"===yt.data.type))},dependencies:[e.O5,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,M.uh,M.xY,M.H8,f.lW,R.Ou,et.w,A.X$]}),lt})();var Kt=p(57851);let on=(()=>{class lt{transform(Xe){const yt=Xe.split(":");return yt[yt.length-1]}}return lt.\u0275fac=function(Xe){return new(Xe||lt)},lt.\u0275pipe=E.Yjl({name:"parseGroupName",type:lt,pure:!0}),lt})();function bn(lt,Vt){1<&&E._UZ(0,"mat-spinner",7)}function Tt(lt,Vt){1<&&(E.TgZ(0,"perun-web-apps-alert"),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function Dt(lt,Vt){1<&&(E.TgZ(0,"span",23),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Ge(lt,Vt){1<&&(E.TgZ(0,"span",23),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const wt=function(lt){return{"min-width":lt}};function Ft(lt,Vt){if(1<){const Xe=E.EpF();E.TgZ(0,"mat-tree-node",16)(1,"li",17)(2,"div",18),E.NdJ("click",function(){const dn=E.CHM(Xe).$implicit,An=E.oxw(3);return E.KtG(An.navigate(dn.id,dn.include))}),E._UZ(3,"button",19),E.TgZ(4,"div",20)(5,"span"),E._uU(6),E.ALo(7,"parseGroupName"),E.qZA(),E.YNc(8,Dt,3,3,"span",21),E.YNc(9,Ge,3,3,"span",21),E.qZA(),E.TgZ(10,"span",22),E._uU(11),E.qZA()()()()}if(2<){const Xe=Vt.$implicit,yt=E.oxw(3);E.xp6(2),E.ekj("cursor-pointer",Xe.direct||Xe.include)("act-disabled",!Xe.direct&&!Xe.include),E.xp6(2),E.Q6J("ngStyle",E.VKq(11,wt,yt.getMinWidth(Xe.level))),E.xp6(2),E.Oqu(E.lcZ(7,9,Xe.name)),E.xp6(2),E.Q6J("ngIf",Xe.direct),E.xp6(1),E.Q6J("ngIf",Xe.include),E.xp6(2),E.Oqu(Xe.description)}}function ln(lt,Vt){1<&&(E.TgZ(0,"span",23),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Cn(lt,Vt){1<&&(E.TgZ(0,"span",23),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function gn(lt,Vt){if(1<){const Xe=E.EpF();E.TgZ(0,"mat-nested-tree-node")(1,"li")(2,"div",17)(3,"button",24)(4,"mat-icon",25),E._uU(5),E.qZA()(),E.TgZ(6,"div",18),E.NdJ("click",function(){const dn=E.CHM(Xe).$implicit,An=E.oxw(3);return E.KtG(An.navigate(dn.id,dn.include))}),E.TgZ(7,"div",20)(8,"span"),E._uU(9),E.ALo(10,"parseGroupName"),E.qZA(),E.YNc(11,ln,3,3,"span",21),E.YNc(12,Cn,3,3,"span",21),E.qZA(),E.TgZ(13,"span",22),E._uU(14),E.qZA()()(),E.TgZ(15,"ul"),E.GkF(16,26),E.qZA()()()}if(2<){const Xe=Vt.$implicit,yt=E.oxw(3);E.xp6(3),E.uIk("aria-label","Toggle "+Xe.name),E.xp6(2),E.hij(" ",yt.treeControl.isExpanded(Xe)?"expand_more":"chevron_right"," "),E.xp6(1),E.ekj("cursor-pointer",Xe.direct||Xe.include)("act-disabled",!Xe.direct&&!Xe.include),E.xp6(1),E.Q6J("ngStyle",E.VKq(15,wt,yt.getMinWidth(Xe.level))),E.xp6(2),E.Oqu(E.lcZ(10,13,Xe.name)),E.xp6(2),E.Q6J("ngIf",Xe.direct),E.xp6(1),E.Q6J("ngIf",Xe.include),E.xp6(2),E.Oqu(Xe.description),E.xp6(1),E.ekj("example-tree-invisible",!yt.treeControl.isExpanded(Xe))}}function zn(lt,Vt){if(1<&&(E.TgZ(0,"mat-tree",13),E.YNc(1,Ft,12,13,"mat-tree-node",14),E.YNc(2,gn,17,17,"mat-nested-tree-node",15),E.qZA()),2<){const Xe=E.oxw(2);E.Q6J("dataSource",Xe.dataSource)("treeControl",Xe.treeControl),E.xp6(2),E.Q6J("matTreeNodeDefWhen",Xe.hasChild)}}function bt(lt,Vt){if(1<&&(E.TgZ(0,"div",8)(1,"p"),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"mat-form-field",9),E._UZ(5,"input",10),E.ALo(6,"translate"),E.qZA(),E.YNc(7,Tt,3,3,"perun-web-apps-alert",11),E.YNc(8,zn,3,3,"mat-tree",12),E.qZA()),2<){const Xe=E.oxw();E.xp6(2),E.Oqu(E.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),E.xp6(3),E.s9C("placeholder",E.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),E.Q6J("formControl",Xe.formControl),E.xp6(2),E.Q6J("ngIf",!Xe.dataSource.data.length),E.xp6(1),E.Q6J("ngIf",Xe.dataSource.data.length)}}const Lt=function(lt){return{name:lt}};let pt=(()=>{class lt{constructor(Xe,yt,Wt){this.dialogRef=Xe,this.data=yt,this.groupsManagerService=Wt,this.treeControl=new Kt.VY(dn=>dn.children),this.dataSource=new se.WX,this.formControl=new D.p4(""),this.userName="",this.groupTree=[],this.paths=[],this.hasChild=(dn,An)=>!!An.children&&An.children.length>0}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe(Xe=>{this.paths=Xe,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe(Xe=>{const yt=Xe.trim().toLowerCase(),Wt=this.paths.filter(dn=>dn.filter(An=>An.name.includes(yt)).length);this.createGroupTree(Wt),this.dataSource.data=this.groupTree}),this.userName=(0,tt.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate(Xe,yt=!1){window.open(`/organizations/${this.data.member.voId}/groups/${Xe}${yt?"/settings/relations":""}`,"_blank")}getMinWidth(Xe){return String(400-40*Xe)+"px"}recursiveSearch(Xe,yt,Wt){for(const An of Xe)if(An.name===yt[Wt].name)return yt.length===Wt+1?(An.direct=!0,Xe):(An.children=yt[++Wt].name.includes(yt[Wt-1].name)?this.recursiveSearch(An.children,yt,Wt):[{name:yt[Wt].name,id:yt[Wt-1].id,description:yt[Wt].description,direct:!1,include:!0,level:Wt,children:[]}].concat(An.children),Xe);return Xe.push({name:yt[Wt].name,id:yt[Wt].id,description:yt[Wt].description,direct:!1,include:!1,level:Wt,children:[]}),this.recursiveSearch(Xe,yt,Wt)}createGroupTree(Xe){this.groupTree=[],Xe.forEach(yt=>{this.groupTree=this.recursiveSearch(this.groupTree,yt,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI),E.Y36(F.ff))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-member-tree-view-dialog"]],decls:11,vars:11,consts:[[1,"group-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","mr-0",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-flat-button","",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"mr-0"],[1,"filter-field","ml-2"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["class","example-tree",3,"dataSource","treeControl",4,"ngIf"],[1,"example-tree",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"mat-tree-node"],[1,"row","flex-nowrap",3,"click"],["mat-icon-button",""],[1,"mt-auto","mb-auto",3,"ngStyle"],["class","text-muted ml-2",4,"ngIf"],[1,"text-muted","ml-3"],[1,"text-muted","ml-2"],["mat-icon-button","","matTreeNodeToggle",""],[1,"mr-3"],["matTreeNodeOutlet",""]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"div",0)(1,"h1",1),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,bn,1,0,"mat-spinner",2),E.YNc(5,bt,9,9,"div",3),E.TgZ(6,"div",4)(7,"div",5)(8,"button",6),E.NdJ("click",function(){return yt.onCancel()}),E._uU(9),E.ALo(10,"translate"),E.qZA()()()()),2&Xe&&(E.xp6(2),E.hij(" ",E.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",E.VKq(9,Lt,yt.userName))," "),E.xp6(2),E.Q6J("ngIf",yt.loading),E.xp6(1),E.Q6J("ngIf",!yt.loading),E.xp6(4),E.hij(" ",E.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},dependencies:[e.O5,e.PC,M.uh,M.xY,M.H8,f.lW,b.KE,D.Fj,D.JJ,T.Nt,R.Ou,D.oH,O.Hw,et.w,se.GZ,se.fQ,se.eu,se.gi,se.uo,se.Ar,A.X$,on],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.act-disabled[_ngcontent-%COMP%]{pointer-events:none}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),lt})(),it=(()=>{class lt{constructor(Xe,yt){this.dialogRef=Xe,this.router=yt}onClose(){this.router.navigate([],{queryParamsHandling:"preserve"}),this.dialogRef.close()}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(G.F0))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),E._uU(5),E.ALo(6,"translate"),E.qZA()(),E.TgZ(7,"div",3)(8,"button",4),E.NdJ("click",function(){return yt.onClose()}),E._uU(9),E.ALo(10,"translate"),E.qZA()()),2&Xe&&(E.xp6(1),E.hij(" ",E.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),E.xp6(4),E.Oqu(E.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),E.xp6(4),E.hij(" ",E.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},dependencies:[M.uh,M.xY,M.H8,f.lW,et.w,A.X$]}),lt})();var St=p(62383);function j(lt,Vt){1<&&(E.TgZ(0,"mat-radio-button",16),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function He(lt,Vt){1<&&(E.TgZ(0,"mat-radio-button",17),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function mt(lt,Vt){1<&&(E.TgZ(0,"perun-web-apps-alert",18),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}let Rt=(()=>{class lt{constructor(Xe){this.dialogRef=Xe,this.canExtendMembership=!1,this.expirationChanged=new E.vpe,this.statusChange=new E.vpe,this.expirationControl=new D.p4(null)}ngOnInit(){const Xe=new Date;this.currentDate=(0,e.p6)(new Date(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}parseDate(Xe){return(0,e.p6)(Xe,"yyyy-MM-dd","en_US")}onChange(){"EXPIRED"===this.status&&("never"===this.newExpiration||this.parseDate(this.expirationControl.value)>this.currentDate)&&this.statusChange.emit(!0),this.expirationChanged.emit(this.newExpiration)}onCancel(){this.dialogRef.close({success:!1})}setExpiration(){this.newExpiration=(0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-change-expiration-dialog"]],inputs:{currentExpiration:"currentExpiration",newExpiration:"newExpiration",canExtendMembership:"canExtendMembership",minDate:"minDate",maxDate:"maxDate",mode:"mode",status:"status",backButton:"backButton"},outputs:{expirationChanged:"expirationChanged",statusChange:"statusChange"},decls:38,vars:39,consts:[[1,"member-theme"],["mat-dialog-content",""],[1,"d-flex","flex-column",3,"ngModel","ngModelChange"],[3,"value"],["color","primary",1,"cursor-pointer",3,"click"],["readonly","","matInput","",1,"disable",3,"min","max","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["class","bottom-padding","value","voRules",4,"ngIf"],["class","bottom-padding","value","groupRules",4,"ngIf"],["value","never"],["alert_type","info",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["value","voRules",1,"bottom-padding"],["value","groupRules",1,"bottom-padding"],["alert_type","info"]],template:function(Xe,yt){if(1&Xe){const Wt=E.EpF();E.TgZ(0,"div",0)(1,"div",1)(2,"p")(3,"strong"),E._uU(4),E.ALo(5,"translate"),E.qZA(),E._uU(6),E.ALo(7,"parseDate"),E.qZA(),E.TgZ(8,"p")(9,"strong"),E._uU(10),E.ALo(11,"translate"),E.qZA(),E._uU(12),E.ALo(13,"parseDate"),E.qZA(),E.TgZ(14,"mat-radio-group",2),E.NdJ("ngModelChange",function(An){return yt.newExpiration=An}),E.TgZ(15,"mat-radio-button",3)(16,"mat-form-field",4),E.NdJ("click",function(){E.CHM(Wt);const An=E.MAs(23);return E.KtG(An.open())}),E.TgZ(17,"mat-label"),E._uU(18),E.ALo(19,"translate"),E.qZA(),E.TgZ(20,"input",5),E.NdJ("dateChange",function(){return yt.setExpiration()}),E.qZA(),E._UZ(21,"mat-datepicker-toggle",6)(22,"mat-datepicker",7,8),E.qZA()(),E.YNc(24,j,3,3,"mat-radio-button",9),E.YNc(25,He,3,3,"mat-radio-button",10),E.TgZ(26,"mat-radio-button",11),E._uU(27),E.ALo(28,"translate"),E.qZA()(),E.YNc(29,mt,3,3,"perun-web-apps-alert",12),E.qZA(),E.TgZ(30,"div",13)(31,"button",14),E.NdJ("click",function(){return yt.onCancel()}),E._uU(32),E.ALo(33,"translate"),E.ALo(34,"translate"),E.qZA(),E.TgZ(35,"button",15),E.NdJ("click",function(){return yt.onChange()}),E._uU(36),E.ALo(37,"translate"),E.qZA()()()}if(2&Xe){const Wt=E.MAs(23);E.xp6(4),E.Oqu(E.lcZ(5,21,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),E.xp6(2),E.hij(" ",E.lcZ(7,23,yt.currentExpiration)," "),E.xp6(4),E.Oqu(E.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),E.xp6(2),E.hij(" ",yt.newExpiration?E.lcZ(13,27,yt.newExpiration):"never"," "),E.xp6(2),E.Q6J("ngModel",yt.newExpiration),E.xp6(1),E.s9C("value",yt.expirationControl.value),E.xp6(3),E.Oqu(E.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),E.xp6(2),E.Q6J("min",yt.minDate)("max",yt.maxDate)("formControl",yt.expirationControl)("matDatepicker",Wt),E.xp6(1),E.Q6J("for",Wt)("disabled",!1),E.xp6(1),E.Q6J("disabled",!1),E.xp6(2),E.Q6J("ngIf",yt.canExtendMembership&&"vo"===yt.mode),E.xp6(1),E.Q6J("ngIf",yt.canExtendMembership&&"group"===yt.mode),E.xp6(2),E.hij(" ",E.lcZ(28,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),E.xp6(2),E.Q6J("ngIf","EXPIRED"===yt.status&&("never"===yt.newExpiration||yt.parseDate(yt.expirationControl.value)>yt.currentDate)),E.xp6(3),E.hij(" ",yt.backButton?E.lcZ(33,33,"DIALOGS.CHANGE_EXPIRATION.BACK"):E.lcZ(34,35,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),E.xp6(3),E.Q6J("disabled",yt.expirationControl.invalid),E.xp6(1),E.hij(" ",E.lcZ(37,37,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},dependencies:[e.O5,M.xY,M.H8,f.lW,b.KE,b.hX,b.R9,D.Fj,D.JJ,D.On,T.Nt,B.VQ,B.U0,w.Mq,w.hl,w.nW,D.oH,et.w,A.X$,St.M],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bottom-padding[_ngcontent-%COMP%]{padding-bottom:20px} .mat-form-field.mat-focused .mat-form-field-underline{display:none}"]}),lt})();function Xt(lt,Vt){1<&&E._UZ(0,"mat-spinner",4)}function vn(lt,Vt){if(1<){const Xe=E.EpF();E.TgZ(0,"perun-web-apps-change-expiration-dialog",5),E.NdJ("statusChange",function(){E.CHM(Xe);const Wt=E.oxw();return E.KtG(Wt.changeStatus=!0)})("expirationChanged",function(Wt){E.CHM(Xe);const dn=E.oxw();return E.KtG(dn.onExpirationChanged(Wt))}),E.qZA()}if(2<){const Xe=E.oxw();E.Q6J("minDate",Xe.minDate)("maxDate",Xe.maxDate)("currentExpiration",Xe.currentExpiration)("newExpiration",Xe.newExpiration)("canExtendMembership",Xe.canExtendMembership)("mode","group")("status",Xe.status)("backButton",Xe.backButton)}}let Vn=(()=>{class lt{constructor(Xe,yt,Wt,dn,An,Yn,oi){this.dialogRef=Xe,this.data=yt,this.attributesManagerService=Wt,this.memberManager=dn,this.groupManager=An,this.translate=Yn,this.notificator=oi,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,Yn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(bi=>this.successMessage=bi)}ngOnInit(){this.status=this.data.status,this.backButton=this.data.backButton,this.loading=!0;const Xe=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()):this.minDate=new Date(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(Xe,"yyyy-MM-dd","en"),this.maxDate=Xe):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,ut.r.GROUP_DEF_EXPIRATION_RULES).subscribe({next:yt=>{null!==yt.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe({next:Wt=>{this.canExtendMembership=!!Wt,this.loading=!1},error:()=>this.loading=!1}):this.loading=!1},error:()=>this.loading=!1}):this.loading=!1}onExpirationChanged(Xe){this.loading=!0,"groupRules"===Xe?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},error:()=>this.loading=!1}):(this.expirationAttr.value="never"===Xe?null:Xe,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe({next:()=>{this.changeStatus&&"EXPIRED"===this.status?this.groupManager.setGroupsMemberStatus(this.data.memberId,this.data.groupId,"VALID").subscribe({next:yt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Wt=>{this.notificator.showSuccess(Wt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:yt})})},error:()=>this.loading=!1}):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},error:()=>this.loading=!1}))}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI),E.Y36(F.H8),E.Y36(F.uq),E.Y36(F.ff),E.Y36(A.sK),E.Y36(V.V6))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-change-group-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","backButton","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","backButton","statusChange","expirationChanged"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"div",0)(1,"h1",1),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,Xt,1,0,"mat-spinner",2),E.YNc(5,vn,1,8,"perun-web-apps-change-expiration-dialog",3),E.qZA()),2&Xe&&(E.xp6(2),E.Oqu(E.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),E.xp6(2),E.Q6J("ngIf",yt.loading),E.xp6(1),E.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,M.uh,R.Ou,Rt,A.X$]}),lt})();var In=p(13469);function Kn(lt,Vt){1<&&(E.TgZ(0,"mat-error"),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function ti(lt,Vt){if(1<){const Xe=E.EpF();E.TgZ(0,"form",5)(1,"div",6)(2,"mat-form-field")(3,"mat-label"),E._uU(4),E.ALo(5,"translate"),E.qZA(),E._UZ(6,"input",7),E.TgZ(7,"mat-icon",8),E.NdJ("click",function(){E.CHM(Xe);const Wt=E.oxw();return E.KtG(Wt.showOldPassword=!Wt.showOldPassword)}),E._uU(8),E.qZA(),E.YNc(9,Kn,3,3,"mat-error",9),E.qZA(),E._UZ(10,"perun-web-apps-password-form",10),E.qZA()()}if(2<){const Xe=E.oxw();E.Q6J("formGroup",Xe.formGroup),E.xp6(4),E.Oqu(E.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),E.xp6(2),E.Q6J("type",Xe.showOldPassword?"text":"password"),E.xp6(2),E.hij(" ",Xe.showOldPassword?"visibility_off":"visibility"," "),E.xp6(1),E.Q6J("ngIf",Xe.oldPwd.hasError("required")),E.xp6(1),E.Q6J("formGroup",Xe.formGroup)("namespace",Xe.data.namespace)}}function $n(lt,Vt){1<&&E._UZ(0,"mat-spinner",11)}function Jn(lt,Vt){if(1<){const Xe=E.EpF();E.TgZ(0,"div",12)(1,"div",13)(2,"button",14),E.NdJ("click",function(){E.CHM(Xe);const Wt=E.oxw();return E.KtG(Wt.close())}),E._uU(3),E.ALo(4,"translate"),E.qZA(),E.TgZ(5,"button",15),E.NdJ("click",function(){E.CHM(Xe);const Wt=E.oxw();return E.KtG(Wt.changePassword())}),E._uU(6),E.ALo(7,"translate"),E.qZA()()()}if(2<){const Xe=E.oxw();E.xp6(3),E.hij(" ",E.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),E.xp6(2),E.Q6J("disabled",Xe.formGroup.invalid||Xe.formGroup.pending),E.xp6(1),E.hij(" ",E.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let Ln=(()=>{class lt{constructor(Xe,yt,Wt,dn,An,Yn,oi){this.dialogRef=Xe,this.data=yt,this._formBuilder=Wt,this.usersManagerService=dn,this.apiRequestConfiguration=An,this.notificator=Yn,this.translate=oi,this.showOldPassword=!1,oi.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(bi=>this.successMessage=bi)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",D.kI.required],passwordCtrl:["",D.kI.required,[(0,_e.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:tt.dN.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI),E.Y36(D.QS),E.Y36(F.Fv),E.Y36(V.F5),E.Y36(V.V6),E.Y36(A.sK))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"div",1),E.YNc(4,ti,11,9,"form",2),E.YNc(5,$n,1,0,"mat-spinner",3),E.qZA(),E.YNc(6,Jn,8,7,"div",4)),2&Xe&&(E.xp6(1),E.Oqu(E.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),E.xp6(3),E.Q6J("ngIf",!yt.loading),E.xp6(1),E.Q6J("ngIf",yt.loading),E.xp6(1),E.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,M.uh,M.xY,M.H8,f.lW,b.TO,b.KE,b.hX,b.R9,D._Y,D.Fj,D.JJ,D.JL,D.Q7,T.Nt,R.Ou,D.sg,D.u,O.Hw,In.G,A.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),lt})();function zi(lt,Vt){1<&&E._UZ(0,"mat-spinner",4)}function qn(lt,Vt){if(1<){const Xe=E.EpF();E.TgZ(0,"perun-web-apps-change-expiration-dialog",5),E.NdJ("statusChange",function(){E.CHM(Xe);const Wt=E.oxw();return E.KtG(Wt.changeStatus=!0)})("expirationChanged",function(Wt){E.CHM(Xe);const dn=E.oxw();return E.KtG(dn.onExpirationChanged(Wt))}),E.qZA()}if(2<){const Xe=E.oxw();E.Q6J("minDate",Xe.minDate)("maxDate",Xe.maxDate)("currentExpiration",Xe.currentExpiration)("newExpiration",Xe.newExpiration)("canExtendMembership",Xe.canExtendMembership)("mode","vo")("status",Xe.status)("backButton",Xe.backButton)}}let ci=(()=>{class lt{constructor(Xe,yt,Wt,dn,An,Yn){this.dialogRef=Xe,this.data=yt,this.attributesManagerService=Wt,this.memberManager=dn,this.translate=An,this.notificator=Yn,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,An.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(oi=>this.successMessage=oi)}ngOnInit(){this.status=this.data.status,this.backButton=this.data.backButton,this.loading=!0;const Xe=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()):this.minDate=new Date(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(Xe,"yyyy-MM-dd","en"),this.maxDate=Xe):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,ut.r.VO_DEF_EXPIRATION_RULES).subscribe({next:yt=>{null!==yt.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe({next:Wt=>{this.canExtendMembership=!!Wt,this.loading=!1},error:()=>this.loading=!1}):this.loading=!1},error:()=>this.loading=!1}):this.loading=!1}onExpirationChanged(Xe){this.loading=!0,"voRules"===Xe?this.memberManager.extendMembership(this.data.memberId).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},error:()=>this.loading=!1}):(this.expirationAttr.value="never"===Xe?null:Xe,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe({next:()=>{this.changeStatus&&"EXPIRED"===this.status?this.memberManager.setStatus(this.data.memberId,"VALID").subscribe({next:yt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Wt=>{this.notificator.showSuccess(Wt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:yt})})},error:()=>this.loading=!1}):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},error:()=>this.loading=!1}))}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI),E.Y36(F.H8),E.Y36(F.uq),E.Y36(A.sK),E.Y36(V.V6))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-change-vo-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","backButton","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","backButton","statusChange","expirationChanged"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"div",0)(1,"h1",1),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,zi,1,0,"mat-spinner",2),E.YNc(5,qn,1,8,"perun-web-apps-change-expiration-dialog",3),E.qZA()),2&Xe&&(E.xp6(2),E.Oqu(E.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),E.xp6(2),E.Q6J("ngIf",yt.loading),E.xp6(1),E.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,M.uh,R.Ou,Rt,A.X$]}),lt})();function Yi(lt,Vt){1<&&E._UZ(0,"mat-spinner",4)}function tr(lt,Vt){if(1<){const Xe=E.EpF();E.TgZ(0,"perun-web-apps-change-expiration-dialog",5),E.NdJ("expirationChanged",function(Wt){E.CHM(Xe);const dn=E.oxw();return E.KtG(dn.onExpirationChanged(Wt))}),E.qZA()}if(2<){const Xe=E.oxw();E.Q6J("minDate",Xe.minDate)("currentExpiration",Xe.currentExpiration)("newExpiration",Xe.newExpiration)("mode","sponsor")}}let Vi=(()=>{class lt{constructor(Xe,yt,Wt,dn,An,Yn,oi){this.dialogRef=Xe,this.data=yt,this.attributesManagerService=Wt,this.memberManager=dn,this.groupManager=An,this.translate=Yn,this.notificator=oi,this.loading=!1,Yn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(bi=>this.successMessage=bi)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const Xe=new Date;this.minDate=new Date(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()),this.loading=!1}onExpirationChanged(Xe){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===Xe?null:Xe).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI),E.Y36(F.H8),E.Y36(F.uq),E.Y36(F.ff),E.Y36(A.sK),E.Y36(V.V6))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-change-sponsorship-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"div",0)(1,"h1",1),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,Yi,1,0,"mat-spinner",2),E.YNc(5,tr,1,4,"perun-web-apps-change-expiration-dialog",3),E.qZA()),2&Xe&&(E.xp6(2),E.Oqu(E.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),E.xp6(2),E.Q6J("ngIf",yt.loading),E.xp6(1),E.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,M.uh,R.Ou,Rt,A.X$]}),lt})();function di(lt,Vt){1<&&E._UZ(0,"mat-spinner",4)}function or(lt,Vt){1<&&(E.TgZ(0,"span",11),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function Ir(lt,Vt){1<&&(E.TgZ(0,"span",11),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function sr(lt,Vt){if(1<){const Xe=E.EpF();E.TgZ(0,"mat-radio-group",12),E.NdJ("ngModelChange",function(Wt){E.CHM(Xe);const dn=E.oxw(2);return E.KtG(dn.asyncValidation=Wt)}),E.TgZ(1,"span",13),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"mat-radio-button",14),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"mat-radio-button",14),E._uU(8),E.ALo(9,"translate"),E.qZA()()}if(2<){const Xe=E.oxw(2);E.Q6J("ngModel",Xe.asyncValidation),E.xp6(2),E.hij(" ",E.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),E.xp6(2),E.Q6J("value",!1),E.xp6(1),E.hij(" ",E.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),E.xp6(2),E.Q6J("value",!0),E.xp6(1),E.hij(" ",E.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function lr(lt,Vt){1<&&(E.TgZ(0,"span",11),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function Ci(lt,Vt){1<&&(E.TgZ(0,"span",11),E._uU(1),E.ALo(2,"translate"),E.qZA()),2<&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function Er(lt,Vt){if(1<&&(E.TgZ(0,"div",5)(1,"p",6),E._uU(2),E.TgZ(3,"span",7),E._uU(4),E.qZA(),E._uU(5),E.TgZ(6,"span",7),E._uU(7),E.qZA()(),E.TgZ(8,"p")(9,"strong",8),E._uU(10),E.ALo(11,"translate"),E.qZA(),E._uU(12),E.qZA(),E.TgZ(13,"p")(14,"strong",8),E._uU(15),E.ALo(16,"translate"),E.qZA(),E._uU(17),E.qZA(),E.YNc(18,or,3,3,"span",9),E.YNc(19,Ir,3,3,"span",9),E.YNc(20,sr,10,12,"mat-radio-group",10),E.YNc(21,lr,3,3,"span",9),E.YNc(22,Ci,3,3,"span",9),E.qZA()),2<){const Xe=E.oxw();E.xp6(2),E.hij(" ",Xe.group.name," "),E.xp6(2),E.hij("#",Xe.group.id,""),E.xp6(1),E.hij(" - ",Xe.resource.name," "),E.xp6(2),E.hij("#",Xe.resource.id,""),E.xp6(3),E.hij(" ",E.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),E.xp6(2),E.hij(" ",Xe.status," "),E.xp6(3),E.hij(" ",E.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),E.xp6(2),E.hij(" ",Xe.getReversedStatus()," "),E.xp6(1),E.Q6J("ngIf","INACTIVE"===Xe.status||"FAILED"===Xe.status),E.xp6(1),E.Q6J("ngIf","ACTIVE"===Xe.status),E.xp6(1),E.Q6J("ngIf","INACTIVE"===Xe.status||"FAILED"===Xe.status),E.xp6(1),E.Q6J("ngIf",("INACTIVE"===Xe.status||"FAILED"===Xe.status)&&!1===Xe.asyncValidation),E.xp6(1),E.Q6J("ngIf",("INACTIVE"===Xe.status||"FAILED"===Xe.status)&&!0===Xe.asyncValidation)}}function Ur(lt,Vt){if(1<){const Xe=E.EpF();E.TgZ(0,"div",15)(1,"button",16),E.NdJ("click",function(){E.CHM(Xe);const Wt=E.oxw();return E.KtG(Wt.onCancel())}),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"button",17),E.NdJ("click",function(){E.CHM(Xe);const Wt=E.oxw();return E.KtG(Wt.onSubmit())}),E._uU(5),E.ALo(6,"translate"),E.qZA()()}if(2<){const Xe=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),E.xp6(2),E.Q6J("disabled",Xe.loading),E.xp6(1),E.hij(" ",E.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===Xe.status?"DEACTIVATE":"ACTIVATE"))," ")}}let Ei=(()=>{class lt{constructor(Xe,yt,Wt,dn){this.dialogRef=Xe,this.data=yt,this.resourceService=Wt,this.groupService=dn,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(Xe=>{this.resource=Xe,this.groupService.getGroupById(this.data.groupId).subscribe(yt=>{this.group=yt,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI),E.Y36(F.xk),E.Y36(F.ff))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["data-cy","change-status-button","mat-flat-button","","color","accent",3,"disabled","click"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,di,1,0,"mat-spinner",1),E.YNc(5,Er,23,17,"div",2),E.YNc(6,Ur,7,7,"div",3),E.qZA()),2&Xe&&(E.Tol(yt.theme),E.xp6(2),E.hij(" ",E.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),E.xp6(2),E.Q6J("ngIf",yt.loading),E.xp6(1),E.Q6J("ngIf",!yt.loading),E.xp6(1),E.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,M.uh,M.xY,M.H8,f.lW,D.JJ,D.On,R.Ou,B.VQ,B.U0,A.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),lt})();var Or=p(90995);let Nr=(()=>{class lt{constructor(Xe,yt,Wt,dn,An){this.dialogRef=Xe,this.data=yt,this.notificator=Wt,this.usersService=dn,this.translate=An,this.force=!1,this.displayedColumns=["name"],this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new C.by([this.data.user]),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.VO_RELATION"))}onCancel(){this.dialogRef.close(!1)}anonymizeUser(){this.loading=!0,this.usersService.anonymizeUser(this.data.user.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ANONYMIZE_USER.SUCCESS_NOTIFICATION")),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(Xe){this.force=Xe.force,Xe.deleted?this.anonymizeUser():this.onCancel()}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI),E.Y36(V.V6),E.Y36(F.Fv),E.Y36(A.sK))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-anonymize-user-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","relations","loading","anonymize","deleted"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),E.NdJ("deleted",function(dn){return yt.onSubmit(dn)}),E.qZA()()),2&Xe&&(E.Tol(yt.theme),E.xp6(1),E.Q6J("entityNames",yt.dataSource)("entityType","user")("relations",yt.relations)("loading",yt.loading)("anonymize",!0))},dependencies:[Or.e]}),lt})(),kr=(()=>{class lt{constructor(Xe){this.dialogRef=Xe}close(){this.dialogRef.close()}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-export-data-dialog"]],decls:6,vars:4,consts:[[1,"loading-container"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"mr-auto","ml-auto",3,"diameter"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"div",0)(1,"h1",1),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"div",2),E._UZ(5,"mat-spinner",3),E.qZA()()),2&Xe&&(E.xp6(2),E.hij(" ",E.lcZ(3,2,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_LOADING")," "),E.xp6(3),E.Q6J("diameter",50))},dependencies:[M.uh,M.xY,R.Ou,A.X$],styles:[".loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}"]}),lt})();function Hr(lt,Vt){if(1<&&(E.TgZ(0,"mat-option",13),E._uU(1),E.qZA()),2<){const Xe=Vt.$implicit,yt=E.oxw();E.Q6J("value",yt.selectedUnit),E.xp6(1),E.hij(" ",Xe," ")}}let Pi=(()=>{class lt{constructor(Xe,yt,Wt,dn,An){this.dialogRef=Xe,this.data=yt,this.rtMessagesService=Wt,this.notificator=dn,this.translate=An,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",An.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(Yn=>this.successMessage=Yn)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new D.p4(null,[D.kI.required]),this.newValueControl=new D.p4(null,[D.kI.required,D.kI.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const Wt=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new J.dp).transform(this.data.user)} (user ID: ${this.data.user.id})\u21b5 VO: ${this.data.vo.shortName} / ${this.data.vo.name} (vo ID: ${this.data.vo.id})\u21b5 Resource: ${this.data.resource.name} (resource ID: ${this.data.resource.id})\u21b5 Data quota\u21b5 Requested quota: ${this.newValueControl.value}\u21b5 Reason: ${this.reasonControl.value}\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI`;this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",Wt).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI),E.Y36(F.Hr),E.Y36(V.V6),E.Y36(A.sK))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-request-change-data-quota-dialog"]],decls:42,vars:42,consts:[["mat-dialog-title","",1,"mb-3"],[1,"user-theme"],[1,"column-size"],["fxLayout","row","fxFlexAlign","center center"],[1,"label-width"],["matInput","","required","","type","number",3,"placeholder","formControl"],[1,"select-width","mt-auto","mb-auto","ml-2",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"form-width"],["matInput","","required","","rows","4",3,"placeholder","formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.ALo(3,"customTranslate"),E.qZA(),E.TgZ(4,"div",1)(5,"div")(6,"p",2),E._uU(7),E.ALo(8,"translate"),E.ALo(9,"customTranslate"),E.qZA(),E.TgZ(10,"p"),E._uU(11),E.qZA()(),E.TgZ(12,"div")(13,"p",2),E._uU(14),E.ALo(15,"translate"),E.ALo(16,"customTranslate"),E.qZA(),E.TgZ(17,"p"),E._uU(18),E.qZA()(),E.TgZ(19,"div",3)(20,"mat-form-field")(21,"label",4),E._UZ(22,"input",5),E.ALo(23,"translate"),E.ALo(24,"customTranslate"),E.qZA()(),E.TgZ(25,"mat-select",6),E.NdJ("valueChange",function(dn){return yt.selectedUnit=dn}),E.YNc(26,Hr,2,2,"mat-option",7),E.qZA()(),E.TgZ(27,"div")(28,"mat-form-field",8)(29,"label",4),E._UZ(30,"textarea",9),E.ALo(31,"translate"),E.ALo(32,"customTranslate"),E.qZA()()(),E.TgZ(33,"div",10)(34,"button",11),E.NdJ("click",function(){return yt.onCancel()}),E._uU(35),E.ALo(36,"translate"),E.ALo(37,"customTranslate"),E.qZA(),E.TgZ(38,"button",12),E.NdJ("click",function(){return yt.onSubmit()}),E._uU(39),E.ALo(40,"translate"),E.ALo(41,"customTranslate"),E.qZA()()()),2&Xe&&(E.xp6(1),E.hij(" ",E.lcZ(2,14,E.lcZ(3,16,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),E.xp6(6),E.hij(" ",E.lcZ(8,18,E.lcZ(9,20,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),E.xp6(4),E.Oqu(yt.resource),E.xp6(3),E.hij(" ",E.lcZ(15,22,E.lcZ(16,24,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),E.xp6(4),E.Oqu(yt.currentQuota),E.xp6(4),E.s9C("placeholder",E.lcZ(23,26,E.lcZ(24,28,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),E.Q6J("formControl",yt.newValueControl),E.xp6(3),E.Q6J("value",yt.selectedUnit),E.xp6(1),E.Q6J("ngForOf",yt.units),E.xp6(4),E.s9C("placeholder",E.lcZ(31,30,E.lcZ(32,32,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),E.Q6J("formControl",yt.reasonControl),E.xp6(5),E.hij(" ",E.lcZ(36,34,E.lcZ(37,36,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),E.xp6(3),E.Q6J("disabled",yt.reasonControl.invalid),E.xp6(1),E.hij(" ",E.lcZ(40,38,E.lcZ(41,40,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},dependencies:[e.sg,M.uh,M.H8,f.lW,b.KE,D.Fj,D.wV,D.JJ,D.Q7,T.Nt,D.oH,Oe.gD,X.ey,A.X$,u.a],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.form-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}.label-width[_ngcontent-%COMP%]{width:100%}.select-width[_ngcontent-%COMP%]{width:4rem}.mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%], .mat-input-ripple.mat-form-field-ripple[_ngcontent-%COMP%]{display:none}"]}),lt})();function Ii(lt,Vt){1<&&(E.TgZ(0,"mat-error",8),E._uU(1),E.ALo(2,"translate"),E.ALo(3,"customTranslate"),E.qZA()),2<&&(E.xp6(1),E.Oqu(E.lcZ(2,1,E.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Mt{constructor(Vt,Xe,yt){this.dialogRef=Vt,this.data=Xe,this.attributesManagerService=yt}ngOnInit(){this.sshControl=new D.p4(null,[D.kI.required,D.kI.pattern(Mt.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const Vt=this.data.attribute?.value??[],Xe=this.sshControl.value;Vt.includes(Xe)||Vt.push(Xe),this.data.attribute.value=Vt,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{Vt.pop()})}}function en(lt,Vt){1<&&E._UZ(0,"mat-spinner",4)}function ct(lt,Vt){1<&&E._UZ(0,"th",17)}function kt(lt,Vt){if(1<&&(E.TgZ(0,"td",18),E._uU(1),E.qZA()),2<){const Xe=Vt.$implicit;E.xp6(1),E.Oqu(Xe)}}function Zt(lt,Vt){1<&&E._UZ(0,"tr",19)}function rn(lt,Vt){1<&&E._UZ(0,"tr",20)}function On(lt,Vt){if(1<&&(E.TgZ(0,"table",11),E.ynx(1,12),E.YNc(2,ct,1,0,"th",13),E.YNc(3,kt,2,1,"td",14),E.BQk(),E.YNc(4,Zt,1,0,"tr",15),E.YNc(5,rn,1,0,"tr",16),E.qZA()),2<){const Xe=E.oxw(2);E.Q6J("dataSource",Xe.dataSource),E.xp6(4),E.Q6J("matHeaderRowDef",Xe.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",Xe.displayedColumns)}}function Bn(lt,Vt){if(1<){const Xe=E.EpF();E.TgZ(0,"div",1)(1,"div",5)(2,"p"),E._uU(3),E.qZA(),E.TgZ(4,"div",6),E._uU(5),E.ALo(6,"translate"),E.ALo(7,"customTranslate"),E.qZA(),E.YNc(8,On,6,3,"table",7),E.qZA(),E.TgZ(9,"div",8)(10,"button",9),E.NdJ("click",function(){E.CHM(Xe);const Wt=E.oxw();return E.KtG(Wt.onCancel())}),E._uU(11),E.ALo(12,"translate"),E.ALo(13,"customTranslate"),E.qZA(),E.TgZ(14,"button",10),E.NdJ("click",function(){E.CHM(Xe);const Wt=E.oxw();return E.KtG(Wt.onSubmit())}),E._uU(15),E.ALo(16,"translate"),E.ALo(17,"customTranslate"),E.qZA()()()}if(2<){const Xe=E.oxw();E.xp6(3),E.hij(" ",Xe.description," "),E.xp6(2),E.hij(" ",E.lcZ(6,5,E.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),E.xp6(3),E.Q6J("ngIf",Xe.dataSource.data.length),E.xp6(3),E.hij(" ",E.lcZ(12,9,E.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),E.xp6(4),E.hij(" ",E.lcZ(16,13,E.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}Mt.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],Mt.sshKeyPattern="^("+Mt.allowedSshKeys.join("|")+").+$",Mt.\u0275fac=function(Vt){return new(Vt||Mt)(E.Y36(M.so),E.Y36(M.WI),E.Y36(F.H8))},Mt.\u0275cmp=E.Xpm({type:Mt,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(Vt,Xe){1&Vt&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.ALo(3,"customTranslate"),E.qZA(),E.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),E._UZ(7,"textarea",3),E.ALo(8,"translate"),E.ALo(9,"customTranslate"),E.qZA(),E.YNc(10,Ii,4,5,"mat-error",4),E.qZA()(),E.TgZ(11,"div",5)(12,"button",6),E.NdJ("click",function(){return Xe.onCancel()}),E._uU(13),E.ALo(14,"translate"),E.ALo(15,"customTranslate"),E.qZA(),E.TgZ(16,"button",7),E.NdJ("click",function(){return Xe.onSubmit()}),E._uU(17),E.ALo(18,"translate"),E.ALo(19,"customTranslate"),E.qZA()()),2&Vt&&(E.xp6(1),E.Oqu(E.lcZ(2,7,E.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),E.xp6(6),E.s9C("placeholder",E.lcZ(8,11,E.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),E.Q6J("formControl",Xe.sshControl),E.xp6(3),E.Q6J("ngIf",Xe.sshControl.invalid&&Xe.sshControl.dirty),E.xp6(3),E.hij(" ",E.lcZ(14,15,E.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),E.xp6(3),E.Q6J("disabled",Xe.sshControl.invalid),E.xp6(1),E.hij(" ",E.lcZ(18,19,E.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[e.O5,D.Fj,D.JJ,D.Q7,f.lW,b.TO,b.KE,D.oH,o.IC,T.Nt,M.uh,M.xY,M.H8,A.X$,u.a],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let Qn=(()=>{class lt{constructor(Xe,yt,Wt){this.dialogRef=Xe,this.data=yt,this.attributesManagerService=Wt,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new C.by(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let Xe=this.data.attribute?.value??[];void 0!==this.data.valueIndex?Xe.splice(this.data.valueIndex,1):Xe=Xe.filter(yt=>!this.data.values.find(Wt=>Wt===yt)),this.data.attribute.value=Xe}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI),E.Y36(F.H8))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-remove-string-value-dialog"]],decls:5,vars:3,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","user-theme",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"h1",0),E._uU(1),E.qZA(),E.TgZ(2,"div",1),E.YNc(3,en,1,0,"mat-spinner",2),E.qZA(),E.YNc(4,Bn,18,17,"div",3)),2&Xe&&(E.xp6(1),E.Oqu(yt.title),E.xp6(2),E.Q6J("ngIf",yt.loading),E.xp6(1),E.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,R.Ou,f.lW,M.uh,M.xY,M.H8,A.X$,u.a]}),lt})(),hi=(()=>{class lt{constructor(Xe,yt){this.dialogRef=Xe,this.data=yt}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(M.WI))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-show-ssh-dialog"]],decls:8,vars:6,consts:[[1,"user-theme"],["matInput","","cdkTextareaAutosize","","readonly","",1,"w-100","display-fix"],["mat-flat-button","","color","warn",1,"ml-auto",3,"click"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"div",0)(1,"textarea",1),E._uU(2),E.qZA()(),E.TgZ(3,"mat-dialog-actions")(4,"button",2),E.NdJ("click",function(){return yt.onClose()}),E._uU(5),E.ALo(6,"translate"),E.ALo(7,"customTranslate"),E.qZA()()),2&Xe&&(E.xp6(2),E.Oqu(yt.sshKey),E.xp6(3),E.hij(" ",E.lcZ(6,2,E.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},dependencies:[f.lW,o.IC,T.Nt,M.H8,A.X$,u.a],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),lt})();function nr(lt,Vt){if(1<&&(E.TgZ(0,"div",9),E._UZ(1,"perun-web-apps-notification",10),E.qZA()),2<){const Xe=Vt.$implicit;E.xp6(1),E.Q6J("data",Xe)("inDialog",!0)}}function Oi(lt,Vt){if(1<&&(E.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),E.YNc(2,nr,2,2,"div",8),E.qZA()()),2<){const Xe=E.oxw();E.xp6(2),E.Q6J("cdkVirtualForOf",Xe.notifications)}}function xi(lt,Vt){1<&&(E.TgZ(0,"perun-web-apps-alert",11),E._uU(1),E.ALo(2,"translate"),E.ALo(3,"customTranslate"),E.qZA()),2<&&(E.xp6(1),E.Oqu(E.lcZ(2,1,E.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}let qi=(()=>{class lt{constructor(Xe,yt){this.dialogRef=Xe,this.notificationStorageService=yt}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return lt.\u0275fac=function(Xe){return new(Xe||lt)(E.Y36(M.so),E.Y36(V.SZ))},lt.\u0275cmp=E.Xpm({type:lt,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(Xe,yt){1&Xe&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.ALo(3,"customTranslate"),E.qZA(),E.YNc(4,Oi,3,1,"div",1),E.YNc(5,xi,4,5,"perun-web-apps-alert",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return yt.onClear()}),E._uU(8),E.ALo(9,"translate"),E.ALo(10,"customTranslate"),E.qZA(),E.TgZ(11,"button",5),E.NdJ("click",function(){return yt.onCancel()}),E._uU(12),E.ALo(13,"translate"),E.ALo(14,"customTranslate"),E.qZA()()),2&Xe&&(E.xp6(1),E.Oqu(E.lcZ(2,5,E.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),E.xp6(3),E.Q6J("ngIf",0!==yt.notifications.length),E.xp6(1),E.Q6J("ngIf",0===yt.notifications.length),E.xp6(3),E.hij(" ",E.lcZ(9,9,E.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),E.xp6(4),E.hij(" ",E.lcZ(13,13,E.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),lt})()},90995:($e,he,p)=>{"use strict";p.d(he,{e:()=>oe});var e=p(94650),A=p(24006),C=p(30671),M=p(36895),f=p(65412),b=p(4859),D=p(59549),T=p(284),R=p(51572),B=p(97392),w=p(98380),H=p(96338),O=p(89383),J=p(31359);let ne=(()=>{class ce{constructor(N){this.translate=N}transform(N){return this.translate.instant(N?"DIALOGS.DELETE_ENTITY.TYPE_ANONYMIZE":"DIALOGS.DELETE_ENTITY.TYPE_DELETE")}}return ce.\u0275fac=function(N){return new(N||ce)(e.Y36(O.sK,16))},ce.\u0275pipe=e.Yjl({name:"deleteDialogType",type:ce,pure:!0}),ce})();function G(ce,k){1&ce&&e._UZ(0,"mat-spinner",2)}const se=function(ce){return{action:ce}};function Oe(ce,k){if(1&ce&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.ALo(4,"translate"),e.TgZ(5,"span",17),e._uU(6),e.ALo(7,"translate"),e.qZA(),e._uU(8),e.ALo(9,"translate"),e.qZA()),2&ce){const N=e.oxw(2);e.xp6(1),e.lnq(" ",e.xi3(2,6,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(17,se,e.lcZ(3,9,N.anonymize)))," ",e.lcZ(4,11,"DIALOGS.DELETE_ENTITY.ONLY")," ",N.entityType," "),e.xp6(5),e.Oqu(e.lcZ(7,13,"DIALOGS.DELETE_ENTITY.OR")),e.xp6(2),e.AsE(" ",N.entityType," ",e.lcZ(9,15,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function _e(ce,k){if(1&ce&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.qZA()),2&ce){const N=e.oxw(2);e.xp6(1),e.AsE(" ",e.xi3(2,2,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(7,se,e.lcZ(3,5,N.anonymize)))," ",N.entityType," ? ")}}function Be(ce,k){1&ce&&e._UZ(0,"th",18)}function E(ce,k){if(1&ce&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&ce){const N=k.$implicit,be=e.oxw(2);e.xp6(1),e.hij(" ",be.anonymize?e.lcZ(2,1,N):N.name," ")}}function z(ce,k){1&ce&&e._UZ(0,"tr",20)}function F(ce,k){1&ce&&e._UZ(0,"tr",21)}function V(ce,k){if(1&ce){const N=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(N);const W=e.oxw(2);return e.KtG(W.force=!0)}),e.TgZ(1,"mat-icon"),e._uU(2,"warning"),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.ALo(5,"titlecase"),e.ALo(6,"deleteDialogType"),e.ALo(7,"translate"),e.qZA()}if(2&ce){const N=e.oxw(2);e.xp6(3),e.AsE(" ",e.xi3(4,2,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(11,se,e.lcZ(5,5,e.lcZ(6,7,N.anonymize))))," ",e.lcZ(7,9,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}const X=function(){return["name"]};function q(ce,k){if(1&ce){const N=e.EpF();e.TgZ(0,"div")(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.qZA(),e.TgZ(6,"div",4),e.YNc(7,Oe,10,19,"div",5),e.YNc(8,_e,4,9,"div",5),e.TgZ(9,"table",6),e.ynx(10,7),e.YNc(11,Be,1,0,"th",8),e.YNc(12,E,3,3,"td",9),e.BQk(),e.YNc(13,z,1,0,"tr",10),e.YNc(14,F,1,0,"tr",11),e.qZA()(),e.TgZ(15,"div",12)(16,"button",13),e.NdJ("click",function(){e.CHM(N);const W=e.oxw();return e.KtG(W.onCancel())}),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"button",14),e.NdJ("click",function(){e.CHM(N);const W=e.oxw();return e.KtG(W.onDelete())}),e._uU(20),e.ALo(21,"translate"),e.ALo(22,"titlecase"),e.ALo(23,"deleteDialogType"),e.qZA(),e.YNc(24,V,8,13,"button",15),e.qZA()()}if(2&ce){const N=e.oxw();e.xp6(2),e.AsE(" ",e.xi3(3,10,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(26,se,e.lcZ(4,13,e.lcZ(5,15,N.anonymize))))," ",N.entityType," "),e.xp6(5),e.Q6J("ngIf",!N.disableForce),e.xp6(1),e.Q6J("ngIf",N.disableForce),e.xp6(1),e.Q6J("dataSource",N.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(28,X)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(29,X)),e.xp6(3),e.hij(" ",e.lcZ(18,17,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.xi3(21,19,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(30,se,e.lcZ(22,22,e.lcZ(23,24,N.anonymize))))," "),e.xp6(4),e.Q6J("ngIf",!N.disableForce)}}function pe(ce,k){if(1&ce&&(e.TgZ(0,"mat-list-item")(1,"span")(2,"mat-icon",27),e._uU(3,"fiber_manual_record"),e.qZA(),e._uU(4),e.qZA()()),2&ce){const N=k.$implicit;e.xp6(4),e.hij(" ",N," ")}}function le(ce,k){if(1&ce&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&ce){const N=e.oxw(2);e.xp6(1),e.hij(" ",N.anotherMessage," ")}}function ye(ce,k){1&ce&&e._UZ(0,"th",18)}function Ve(ce,k){if(1&ce&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&ce){const N=k.$implicit,be=e.oxw(2);e.xp6(1),e.hij(" ",be.anonymize?e.lcZ(2,1,N):N.name," ")}}function ve(ce,k){1&ce&&e._UZ(0,"tr",20)}function Ke(ce,k){1&ce&&e._UZ(0,"tr",21)}function Ue(ce,k){if(1&ce){const N=e.EpF();e.TgZ(0,"div")(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div",4)(8,"div",16),e._uU(9),e.ALo(10,"translate"),e.TgZ(11,"mat-list"),e.YNc(12,pe,5,1,"mat-list-item",23),e.qZA(),e.YNc(13,le,2,1,"div",1),e.TgZ(14,"perun-web-apps-alert",24),e._uU(15),e.ALo(16,"translate"),e.ALo(17,"deleteDialogType"),e.qZA(),e.TgZ(18,"table",6),e.ynx(19,7),e.YNc(20,ye,1,0,"th",8),e.YNc(21,Ve,3,3,"td",9),e.BQk(),e.YNc(22,ve,1,0,"tr",10),e.YNc(23,Ke,1,0,"tr",11),e.qZA()(),e.TgZ(24,"mat-form-field"),e._UZ(25,"input",25),e.ALo(26,"translate"),e.ALo(27,"uppercase"),e.ALo(28,"deleteDialogType"),e.qZA()(),e.TgZ(29,"div",12)(30,"button",13),e.NdJ("click",function(){e.CHM(N);const W=e.oxw();return e.KtG(W.onCancel())}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.TgZ(33,"button",26),e.NdJ("click",function(){e.CHM(N);const W=e.oxw();return e.KtG(W.onDelete())}),e.TgZ(34,"mat-icon"),e._uU(35,"warning"),e.qZA(),e._uU(36),e.ALo(37,"translate"),e.ALo(38,"titlecase"),e.ALo(39,"deleteDialogType"),e.ALo(40,"translate"),e.qZA()()()}if(2&ce){const N=e.oxw();e.xp6(2),e.lnq(" ",e.xi3(3,17,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(51,se,e.lcZ(4,20,e.lcZ(5,22,N.anonymize))))," ",N.entityType," ",e.lcZ(6,24,"DIALOGS.DELETE_ENTITY.RELATIONS")," "),e.xp6(7),e.hij(" ",e.lcZ(10,26,"DIALOGS.DELETE_ENTITY.WARN"),": "),e.xp6(3),e.Q6J("ngForOf",N.relations),e.xp6(1),e.Q6J("ngIf",N.anotherMessage),e.xp6(2),e.AsE(" ",e.xi3(16,28,"DIALOGS.DELETE_ENTITY.ASK",e.VKq(53,se,e.lcZ(17,31,N.anonymize)))," ",N.entityType," ? "),e.xp6(3),e.Q6J("dataSource",N.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(55,X)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(56,X)),e.xp6(2),e.s9C("placeholder",e.xi3(26,33,"DIALOGS.DELETE_ENTITY.CONTROL",e.VKq(57,se,e.lcZ(27,36,e.lcZ(28,38,N.anonymize))))),e.Q6J("formControl",N.deleteControl),e.xp6(6),e.hij(" ",e.lcZ(32,40,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(2),e.Q6J("disabled",N.deleteControl.invalid),e.xp6(3),e.AsE(" ",e.xi3(37,42,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(59,se,e.lcZ(38,45,e.lcZ(39,47,N.anonymize))))," ",e.lcZ(40,49,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}let oe=(()=>{class ce{constructor(){this.entityNames=new C.by,this.relations=[],this.disableForce=!1,this.loading=!1,this.anonymize=!1,this.deleted=new e.vpe,this.force=!1}ngOnInit(){this.deleteReg=this.anonymize?/^ANONYMIZE$/:/^DELETE$/,this.deleteControl=new A.p4("",[A.kI.required,A.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return ce.\u0275fac=function(N){return new(N||ce)},ce.\u0275cmp=e.Xpm({type:ce,selectors:[["perun-web-apps-delete-entity-dialog"]],inputs:{title:"title",entityNames:"entityNames",entityType:"entityType",relations:"relations",anotherMessage:"anotherMessage",disableForce:"disableForce",loading:"loading",anonymize:"anonymize"},outputs:{deleted:"deleted"},decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["class","mb-4",4,"ngIf"],["mat-table","",1,"w-100","table-margin",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","delete-button-dialog","color","warn","mat-flat-button","",1,"ml-2",3,"click"],["class","ml-2","data-cy","force-delete","color","warn","mat-flat-button","",3,"click",4,"ngIf"],[1,"mb-4"],[1,"font-weight-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["data-cy","force-delete","color","warn","mat-flat-button","",1,"ml-2",3,"click"],[4,"ngFor","ngForOf"],["alert_type","warn"],["data-cy","force-delete-control","matInput","",3,"formControl","placeholder"],["data-cy","force-delete-button","color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"dot-icon"]],template:function(N,be){1&N&&(e.YNc(0,G,1,0,"mat-spinner",0),e.YNc(1,q,25,32,"div",1),e.YNc(2,Ue,41,61,"div",1)),2&N&&(e.Q6J("ngIf",be.loading),e.xp6(1),e.Q6J("ngIf",!be.force&&!be.loading),e.xp6(1),e.Q6J("ngIf",be.force&&!be.loading))},dependencies:[M.sg,M.O5,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,f.uh,f.xY,f.H8,b.lW,D.KE,A.Fj,A.JJ,T.Nt,R.Ou,A.oH,B.Hw,w.w,H.i$,H.Tg,M.gd,M.rS,O.X$,J.d,ne],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),ce})()},22308:($e,he,p)=>{"use strict";p.d(he,{h:()=>A});var e=p(94650);let A=(()=>{class C{constructor(f){this.elementRef=f}ngOnInit(){this.elementRef.nativeElement.focus()}}return C.\u0275fac=function(f){return new(f||C)(e.Y36(e.SBq))},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsAutoFocus",""]]}),C})()},73358:($e,he,p)=>{"use strict";p.d(he,{e:()=>A});var e=p(94650);let A=(()=>{class C{constructor(f,b){this.viewContainerRef=f,this.template=b,this.loading=!1,this.loadingIndicatorRef=null}ngOnInit(){this.viewContainerRef.createEmbeddedView(this.template)}ngOnChanges(){this.loading&&(this.loadingIndicatorRef=this.viewContainerRef.createEmbeddedView(this.loadingIndicator)),!this.loading&&this.loadingIndicatorRef&&this.loadingIndicatorRef.destroy()}}return C.\u0275fac=function(f){return new(f||C)(e.Y36(e.s_b),e.Y36(e.Rgc))},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsLoader",""]],inputs:{loading:["perunWebAppsLoader","loading"],loadingIndicator:["perunWebAppsLoaderIndicator","loadingIndicator"]},features:[e.TTD]}),C})()},34198:($e,he,p)=>{"use strict";p.d(he,{Y:()=>A});var e=p(94650);let A=(()=>{class C{onClick(f){if(1===f.button&&null!=this.perunWebAppsMiddleClickRouterLink){const b=this.perunWebAppsMiddleClickRouterLink.join("/"),D=location.search;window.open(b+D)}}}return C.\u0275fac=function(f){return new(f||C)},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(f,b){1&f&&e.NdJ("mouseup",function(T){return b.onClick(T)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),C})()},55660:($e,he,p)=>{"use strict";p.d(he,{Q:()=>C});var e=p(94364),A=p(94650);let C=(()=>{class M extends e.rH{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const b=Object.assign({},this.queryParams);delete b.applicationFormItems,this.queryParams=b}}}return M.\u0275fac=function(){let f;return function(D){return(f||(f=A.n5z(M)))(D||M)}}(),M.\u0275dir=A.lG2({type:M,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[A.qOj,A.TTD]}),M})()},40034:($e,he,p)=>{"use strict";p.d(he,{p:()=>e});var e=(()=>{return(A=e||(e={})).Admin="admin",A.Profile="profile",A.PwdReset="pwdReset",A.Consolidator="consolidator",A.Linker="linker",e;var A})()},91479:($e,he,p)=>{"use strict";p.d(he,{H:()=>D,o:()=>b});var e=p(61135),A=p(39841),C=p(39646),M=p(68675),f=p(63900);function b(T){return"_count"in T}class D{constructor(R,B,w,H){this.pageQuery$=new e.X({}),this.updateSubscription=null,this.data$=new e.X([]),this._filter=new e.X(""),this.data$.next(R),this._count=B,this._sort=w,this._paginator=H,this.update()}get data(){return this.data$.value}set data(R){this.data$.next(R)}get filteredData(){return this.data$.value}get count(){return this._count}set count(R){this._count=R}get sort(){return this._sort}set sort(R){this._sort=R,this.update()}get paginator(){return this._paginator}set paginator(R){this._paginator=R,this.update()}set filter(R){this._filter.next(R)}connect(){return this.data$.asObservable()}disconnect(){this.data$.complete(),this.updateSubscription?.unsubscribe()}sortData(R,B){return this.sort=B,R}update(){const R=this._sort.sortChange.pipe((0,M.O)({active:"NAME",direction:this._sort.direction})),B=this._paginator.page.pipe((0,M.O)({pageSize:5,pageIndex:this._paginator.pageIndex,length:this._paginator.length})),w=(0,A.a)([R,B,this._filter]).pipe((0,f.w)(([H,O,J])=>(0,C.of)({order:"asc"===H.direction?"ASCENDING":"DESCENDING",sortColumn:H.active.toUpperCase(),pageSize:O.pageSize,offset:O.pageIndex*O.pageSize,searchString:J})));this.updateSubscription?.unsubscribe(),this.updateSubscription=w.subscribe(H=>{this.pageQuery$.next(H)})}}},45323:($e,he,p)=>{"use strict";p.d(he,{u:()=>e});var e=(()=>{return(A=e||(e={})).PERUNADMIN="PERUNADMIN",A.PERUNOBSERVER="PERUNOBSERVER",A.VOADMIN="VOADMIN",A.GROUPADMIN="GROUPADMIN",A.GROUPOBSERVER="GROUPOBSERVER",A.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",A.SELF="SELF",A.FACILITYADMIN="FACILITYADMIN",A.FACILITIYOBSERVER="FACILITYOBSERVER",A.RESOURCEADMIN="RESOURCEADMIN",A.RESOURCESELFSERVICE="RESOURCESELFSERVICE",A.REGISTRAR="REGISTRAR",A.ENGINE="ENGINE",A.RPC="RPC",A.NOTIFICATIONS="NOTIFICATIONS",A.SERVICEUSER="SERVICEUSER",A.SPONSOR="SPONSOR",A.VOOBSERVER="VOOBSERVER",A.TOPGROUPCREATOR="TOPGROUPCREATOR",A.SECURITYADMIN="SECURITYADMIN",A.CABINETADMIN="CABINETADMIN",A.UNKNOWNROLENAME="UNKNOWNROLENAME",A.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",A.UNKNOWN="UNKNOWN",A.MEMBERSHIP="MEMBERSHIP",e;var A})()},28499:($e,he,p)=>{"use strict";p.d(he,{E3:()=>w,yT:()=>H.y});var e=p(36895),A=p(59549),C=p(10266),M=p(24006),f=p(284),b=p(89383),D=p(51572),T=p(97392),R=p(63189),B=p(94650);let w=(()=>{class J{}return J.\u0275fac=function(G){return new(G||J)},J.\u0275mod=B.oAB({type:J}),J.\u0275inj=B.cJS({imports:[e.ez,A.lN,C.AV,M.UX,f.c,b.aw,D.Cq,T.Ps,R.r]}),J})();var H=p(47549);p(13469)},13469:($e,he,p)=>{"use strict";p.d(he,{G:()=>Be});var e=p(47549),A=p(81591),C=p(61744),M=p(94650),f=p(89383),b=p(36895),D=p(59549),T=p(10266),R=p(24006),B=p(284),w=p(51572),H=p(97392),O=p(98380);function J(E,z){1&E&&M._UZ(0,"mat-spinner",12),2&E&&M.Q6J("diameter",18)}function ne(E,z){if(1&E&&(M.TgZ(0,"mat-icon",13),M._uU(1," error "),M.qZA()),2&E){const F=M.oxw();M.Q6J("matTooltip",F.getErrorTooltip())("matTooltipDisabled",!F.formGroup.get("passwordCtrl").hasError("backendError"))}}function G(E,z){1&E&&(M.TgZ(0,"mat-error"),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&E&&(M.xp6(1),M.Oqu(M.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function se(E,z){if(1&E&&(M.TgZ(0,"mat-error",14),M._uU(1),M.qZA()),2&E){const F=M.oxw();M.Q6J("matTooltip",F.getErrorTooltip()),M.xp6(1),M.Oqu(F.getErrorTooltip())}}function Oe(E,z){1&E&&(M.TgZ(0,"mat-error"),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&E&&(M.xp6(1),M.Oqu(M.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function _e(E,z){1&E&&(M.TgZ(0,"mat-error"),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&E&&(M.xp6(1),M.Oqu(M.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let Be=(()=>{class E{constructor(F,V,X){this.translator=F,this.usersManagerService=V,this.store=X,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new e.S,this.allPasswordRequirements=this.store.getProperty("password_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(F=>{const V=F.userAttributes.find(X=>"preferredLanguage"===X.friendlyName);this.language=V?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let F=this.formGroup.get("passwordCtrl").getError("backendError");return F&&(F=F.replace(":null","")),F}changeHelp(){this.passwordRequirement=this.allPasswordRequirements[this.namespace],this.passwordRequirement||(this.passwordRequirement=this.allPasswordRequirements.default)}}return E.\u0275fac=function(F){return new(F||E)(M.Y36(f.sK),M.Y36(C.Fv),M.Y36(A.d6))},E.\u0275cmp=M.Xpm({type:E,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",language:"language"},features:[M.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(F,V){1&F&&(M.TgZ(0,"div",0)(1,"mat-form-field",1),M._UZ(2,"input",2),M.ALo(3,"translate"),M.YNc(4,J,1,1,"mat-spinner",3),M.TgZ(5,"mat-icon",4),M.NdJ("click",function(){return V.showNewPassword=!V.showNewPassword}),M._uU(6),M.qZA(),M.YNc(7,ne,2,2,"mat-icon",5),M.YNc(8,G,3,3,"mat-error",6),M.YNc(9,se,2,2,"mat-error",7),M.qZA(),M.TgZ(10,"mat-form-field",8)(11,"mat-label"),M._uU(12),M.ALo(13,"translate"),M.qZA(),M._UZ(14,"input",9),M.TgZ(15,"mat-icon",4),M.NdJ("click",function(){return V.showPasswordConfirm=!V.showPasswordConfirm}),M._uU(16),M.qZA(),M.YNc(17,Oe,3,3,"mat-error",6),M.YNc(18,_e,3,3,"mat-error",6),M.qZA(),M.TgZ(19,"perun-web-apps-alert",10),M._UZ(20,"div",11),M.qZA()()),2&F&&(M.Q6J("formGroup",V.formGroup),M.xp6(1),M.Q6J("matTooltip",V.getPasswordDisabledTooltip())("matTooltipDisabled",V.formGroup.get("passwordCtrl").enabled||V.tooltipPwdDisabledForNamespace),M.xp6(1),M.s9C("placeholder",M.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),M.Q6J("type",V.showNewPassword?"text":"password")("required",V.passwordRequired)("errorStateMatcher",V.passwordStateMatcher),M.xp6(2),M.Q6J("ngIf",V.formGroup.get("passwordCtrl").pending),M.xp6(2),M.hij(" ",V.showNewPassword?"visibility_off":"visibility"," "),M.xp6(1),M.Q6J("ngIf",V.formGroup.get("passwordCtrl").dirty&&null!==V.formGroup.get("passwordCtrl").errors),M.xp6(1),M.Q6J("ngIf",V.formGroup.get("passwordCtrl").hasError("required")),M.xp6(1),M.Q6J("ngIf",V.formGroup.get("passwordCtrl").hasError("backendError")),M.xp6(3),M.Oqu(M.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),M.xp6(2),M.Q6J("type",V.showPasswordConfirm?"text":"password")("required",V.passwordRequired),M.xp6(2),M.hij(" ",V.showPasswordConfirm?"visibility_off":"visibility"," "),M.xp6(1),M.Q6J("ngIf",V.formGroup.get("passwordAgainCtrl").hasError("required")),M.xp6(1),M.Q6J("ngIf",V.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),M.xp6(2),M.Q6J("innerHTML",V.passwordRequirement,M.oJD))},dependencies:[b.O5,D.TO,D.KE,D.hX,D.R9,T.gM,R.Fj,R.JJ,R.JL,R.Q7,R.sg,R.u,B.Nt,w.Ou,H.Hw,O.w,f.X$],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),E})()},47549:($e,he,p)=>{"use strict";p.d(he,{S:()=>b,y:()=>D});var e=p(82805),A=p(39646),C=p(63900),M=p(54004),f=p(70262);class b{isErrorState(R){return!(!R?.invalid||!R?.dirty)}}const D=(T,R,B,w=!1,H=500)=>O=>(0,e.H)(H).pipe((0,C.w)(()=>(B.dontHandleErrorForNext(),T&&"No namespace"!==T?R.checkPasswordStrength({password:O.value,namespace:T},w):(0,A.of)(null))),(0,M.U)(()=>null),(0,f.K)(J=>{const ne={backendError:J.message.substring(J.message.indexOf(":")+1)};return(0,A.of)(ne)}))},61744:($e,he,p)=>{"use strict";p.d(he,{au:()=>Ne,sY:()=>Ke,oW:()=>Ue,H8:()=>D,jw:()=>T,Ct:()=>R,VK:()=>b,WY:()=>w,KG:()=>O,IQ:()=>J,ff:()=>ne,uq:()=>se,aC:()=>Oe,Hr:()=>_e,tk:()=>Be,xk:()=>E,t7:()=>z,KK:()=>F,Ob:()=>V,Dy:()=>Ae,Fv:()=>X,FW:()=>q,YF:()=>pe});var e=p(80529);class A{encodeKey(fe){return encodeURIComponent(fe)}encodeValue(fe){return encodeURIComponent(fe)}decodeKey(fe){return decodeURIComponent(fe)}decodeValue(fe){return decodeURIComponent(fe)}}var C=p(94650);const M=new C.OlP("basePath");class b{constructor(fe={}){this.apiKeys=fe.apiKeys,this.username=fe.username,this.password=fe.password,this.accessToken=fe.accessToken,this.basePath=fe.basePath,this.withCredentials=fe.withCredentials,this.encoder=fe.encoder,this.credentials=fe.credentials?fe.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(fe){if(0===fe.length)return;const r=fe.find(u=>this.isJsonMime(u));return void 0===r?fe[0]:r}selectHeaderAccept(fe){if(0===fe.length)return;const r=fe.find(u=>this.isJsonMime(u));return void 0===r?fe[0]:r}isJsonMime(fe){const r=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==fe&&(r.test(fe)||"application/json-patch+json"===fe.toLowerCase())}lookupCredential(fe){const r=this.credentials[fe];return"function"==typeof r?r():r}}let D=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}convertAttributeToNonunique(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}convertAttributeToUnique(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}createAttributeDefinition(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}deleteAttributeDefinition(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}deleteAttributeDefinitions(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"attributes[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllAttributeDefinitions(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getAttribute(r,u,g,v,h,a,i,t,n,o,s,l=!1,d="body",c=!1,S){let $=new e.LE({encoder:this.encoder});null!=r&&($=this.addToHttpParams($,r,"attributeName")),null!=u&&($=this.addToHttpParams($,u,"attributeId")),null!=g&&($=this.addToHttpParams($,g,"facility")),null!=v&&($=this.addToHttpParams($,v,"user")),null!=h&&($=this.addToHttpParams($,h,"vo")),null!=a&&($=this.addToHttpParams($,a,"resource")),null!=i&&($=this.addToHttpParams($,i,"member")),null!=t&&($=this.addToHttpParams($,t,"group")),null!=n&&($=this.addToHttpParams($,n,"host")),null!=o&&($=this.addToHttpParams($,o,"userExtSource")),null!=s&&($=this.addToHttpParams($,s,"key"));let ze,ht=this.defaultHeaders;ze=this.configuration.lookupCredential("BasicAuth"),ze&&(ht=ht.set("Authorization","Basic "+ze)),ze=this.configuration.lookupCredential("BearerAuth"),ze&&(ht=ht.set("Authorization","Bearer "+ze));let et=S&&S.httpHeaderAccept;void 0===et&&(et=this.configuration.selectHeaderAccept(["application/json"])),void 0!==et&&(ht=ht.set("Accept",et));let te=S&&S.context;void 0===te&&(te=new e.qT);let Le="json";et&&(Le=et.startsWith("text")?"text":this.configuration.isJsonMime(et)?"json":"blob");let Ie=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(l){let De=new URL(Ie),xe=De.pathname.split("/");xe[1]="non",De.pathname=xe.join("/"),Ie=De.toString()}return this.httpClient.get(Ie,{context:te,params:$,responseType:Le,withCredentials:this.configuration.withCredentials,headers:ht,observe:d,reportProgress:c})}getAttributeDefinitionById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAttributeDefinitionByName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAttributeDefinitionsByNamespace(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"namespace"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAttributeModulesDependenciesForAttributeGraphText(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==u)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"format")),null!=u&&(i=this.addToHttpParams(i,u,"attrName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getAttributeModulesDependenciesGraphText(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"format"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAttributePolicyCollections(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAttributeRights(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAttributeRules(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAttributesDefinitionWithRights(r,u,g,v,h,a,i,t,n=!1,o="body",s=!1,l){let d=new e.LE({encoder:this.encoder});null!=r&&(d=this.addToHttpParams(d,r,"member")),null!=u&&(d=this.addToHttpParams(d,u,"user")),null!=g&&(d=this.addToHttpParams(d,g,"vo")),null!=v&&(d=this.addToHttpParams(d,v,"group")),null!=h&&(d=this.addToHttpParams(d,h,"resource")),null!=a&&(d=this.addToHttpParams(d,a,"facility")),null!=i&&(d=this.addToHttpParams(d,i,"host")),null!=t&&(d=this.addToHttpParams(d,t,"userExtSource"));let S,c=this.defaultHeaders;S=this.configuration.lookupCredential("BasicAuth"),S&&(c=c.set("Authorization","Basic "+S)),S=this.configuration.lookupCredential("BearerAuth"),S&&(c=c.set("Authorization","Bearer "+S));let $=l&&l.httpHeaderAccept;void 0===$&&($=this.configuration.selectHeaderAccept(["application/json"])),void 0!==$&&(c=c.set("Accept",$));let ht=l&&l.context;void 0===ht&&(ht=new e.qT);let ze="json";$&&(ze=$.startsWith("text")?"text":this.configuration.isJsonMime($)?"json":"blob");let et=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(n){let te=new URL(et),Le=te.pathname.split("/");Le[1]="non",te.pathname=Le.join("/"),et=te.toString()}return this.httpClient.get(et,{context:ht,params:d,responseType:ze,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:s})}getEntitylessAttributeByName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"key")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getEntitylessAttributesByKey(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"key"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getEntitylessAttributesByName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attrName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getEntitylessAttributesWithKeys(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"attrName")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"keys[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getEntitylessKeys(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFacilityAttributeById(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getFacilityAttributeByName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getFacilityAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFacilityAttributesByNames(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getFacilityResourceUserMemberAttributes(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==g)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==v)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"resource")),null!=g&&(n=this.addToHttpParams(n,g,"user")),null!=v&&(n=this.addToHttpParams(n,v,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getFacilityUserAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==u)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getGroupAttributeById(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getGroupAttributeByName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getGroupAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getGroupAttributesByNames(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getGroupResourceAttributeById(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==g)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=g&&(t=this.addToHttpParams(t,g,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getGroupResourceAttributeByName(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==g)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=g&&(t=this.addToHttpParams(t,g,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getGroupResourceAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getHostAttributeById(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getHostAttributeByName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getHostAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"host"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getHostAttributesByNames(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getIdpAttributeDefinitions(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getLogins(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getLogins.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getMemberAndUserAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"workWithUserAttributes"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getMemberAndUserAttributesByNames(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==g)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")}),null!=g&&(t=this.addToHttpParams(t,g,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberAttributeById(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getMemberAttributeByName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getMemberAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getMemberAttributesByNames(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getMemberGroupAndUserAttributesByNames(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==g)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==v)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group")),g&&g.forEach($=>{n=this.addToHttpParams(n,$,"attrNames[]")}),null!=v&&(n=this.addToHttpParams(n,v,"workWithUserAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getMemberGroupAttributeById(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==g)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=g&&(t=this.addToHttpParams(t,g,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberGroupAttributeByName(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==g)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=g&&(t=this.addToHttpParams(t,g,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberGroupAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getMemberGroupAttributesByNames(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==g)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),g&&g.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberResourceAndUserFacilityAttributes(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==g)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=g&&(t=this.addToHttpParams(t,g,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberResourceAndUserFacilityAttributesByNames(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==g)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==v)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"resource")),g&&g.forEach($=>{n=this.addToHttpParams(n,$,"attrNames[]")}),null!=v&&(n=this.addToHttpParams(n,v,"workWithUserAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getMemberResourceAttributeById(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==g)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=g&&(t=this.addToHttpParams(t,g,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberResourceAttributeByName(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==g)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=g&&(t=this.addToHttpParams(t,g,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberResourceAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getRequiredAttributesDefinition(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getRequiredAttributesFacility(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getRequiredAttributesFacilityService(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getRequiredAttributesFacilityServices(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"services[]")}),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getRequiredAttributesGroupResourceService(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==g)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=g&&(t=this.addToHttpParams(t,g,"group"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getRequiredAttributesHostService(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==u)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"host"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getRequiredAttributesMember(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"workWithUserAttributes"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getRequiredAttributesMemberGroup(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=g&&(t=this.addToHttpParams(t,g,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getRequiredAttributesMemberGroupResourceService(r,u,g,v,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==g)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==v)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service")),null!=u&&(o=this.addToHttpParams(o,u,"resource")),null!=g&&(o=this.addToHttpParams(o,g,"group")),null!=v&&(o=this.addToHttpParams(o,v,"member")),null!=h&&(o=this.addToHttpParams(o,h,"workWithUserAttributes"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let $=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(a){let ht=new URL($),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),$=ht.toString()}return this.httpClient.get($,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}getRequiredAttributesMemberGroupService(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==g)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"group")),null!=g&&(n=this.addToHttpParams(n,g,"member")),null!=v&&(n=this.addToHttpParams(n,v,"workWithUserAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getRequiredAttributesMemberResource(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=g&&(t=this.addToHttpParams(t,g,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getRequiredAttributesMemberResourceService(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==g)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"resource")),null!=g&&(n=this.addToHttpParams(n,g,"member")),null!=v&&(n=this.addToHttpParams(n,v,"workWithUserAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getRequiredAttributesResource(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getRequiredAttributesResourceService(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getRequiredAttributesResourceServices(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"services[]")}),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getRequiredAttributesUser(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getRequiredAttributesUserFacility(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getRequiredAttributesVoService(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getResourceAttributeById(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getResourceAttributeByName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getResourceAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getResourceAttributesByNames(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getResourceGroupAndGroupAttributes(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==g)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"resource")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=g&&(t=this.addToHttpParams(t,g,"workWithGroupAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getResourceGroupAndGroupAttributesByNames(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==g)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==v)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"group")),g&&g.forEach($=>{n=this.addToHttpParams(n,$,"attrNames[]")}),null!=v&&(n=this.addToHttpParams(n,v,"workWithGroupAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getResourceGroupAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getResourceGroupMemberAttributesByNames(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==g)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==v)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"group")),null!=g&&(n=this.addToHttpParams(n,g,"member")),v&&v.forEach($=>{n=this.addToHttpParams(n,$,"attrNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getUserAttributeById(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getUserAttributeByName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getUserAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getUserAttributesByNames(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getUserExtSourceAttributeById(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getUserExtSourceAttributeByName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getUserExtSourceAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userExtSource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getUserExtSourceAttributesByNames(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getUserFacilityAttributeById(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==g)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=g&&(t=this.addToHttpParams(t,g,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getUserFacilityAttributeByName(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==g)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=g&&(t=this.addToHttpParams(t,g,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getUserFacilityAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getVoAttributeById(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getVoAttributeByName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getVoAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getVoAttributesByNames(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeAttributesForFacilityResourceGroupUserMember(r,u,g,v,h,a,i=!1,t="body",n=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==g)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==v)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==h)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,r,"facility")),null!=u&&(s=this.addToHttpParams(s,u,"resource")),null!=g&&(s=this.addToHttpParams(s,g,"group")),null!=v&&(s=this.addToHttpParams(s,v,"user")),null!=h&&(s=this.addToHttpParams(s,h,"member")),a&&a.forEach(ze=>{s=this.addToHttpParams(s,ze,"attributes[]")});let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=o&&o.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let S=o&&o.context;void 0===S&&(S=new e.qT);let $="json";c&&($=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let ht=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(i){let ze=new URL(ht),et=ze.pathname.split("/");et[1]="non",ze.pathname=et.join("/"),ht=ze.toString()}return this.httpClient.post(ht,null,{context:S,params:s,responseType:$,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:n})}removeAttributesForFacilityResourceUserMember(r,u,g,v,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==g)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==v)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==h)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility")),null!=u&&(o=this.addToHttpParams(o,u,"resource")),null!=g&&(o=this.addToHttpParams(o,g,"user")),null!=v&&(o=this.addToHttpParams(o,v,"member")),h&&h.forEach(ht=>{o=this.addToHttpParams(o,ht,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let $=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(a){let ht=new URL($),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),$=ht.toString()}return this.httpClient.post($,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}removeEntitylessAttribute(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"key")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeFacilityAttribute(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeFacilityAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeGroupAttribute(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeGroupAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeGroupResourceAttribute(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==g)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=g&&(t=this.addToHttpParams(t,g,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeGroupResourceAttributes(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==g)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),g&&g.forEach(S=>{t=this.addToHttpParams(t,S,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeGroupResourceAttributesWorkWithGroupAttributes(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==g)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==v)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"resource")),g&&g.forEach($=>{n=this.addToHttpParams(n,$,"attributes[]")}),null!=v&&(n=this.addToHttpParams(n,v,"workWithGroupAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}removeHostAttribute(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeHostAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeMemberAttribute(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeMemberAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeMemberAttributesWorkWithUserAttributes(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==g)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"attributes[]")}),null!=g&&(t=this.addToHttpParams(t,g,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeMemberGroupAttribute(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==g)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=g&&(t=this.addToHttpParams(t,g,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeMemberGroupAttributes(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==g)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),g&&g.forEach(S=>{t=this.addToHttpParams(t,S,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeMemberGroupAttributesWorkWithUserAttributes(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==g)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==v)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group")),g&&g.forEach($=>{n=this.addToHttpParams(n,$,"attributes[]")}),null!=v&&(n=this.addToHttpParams(n,v,"workWithUserAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}removeMemberResourceAttribute(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==g)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=g&&(t=this.addToHttpParams(t,g,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeMemberResourceAttributes(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==g)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),g&&g.forEach(S=>{t=this.addToHttpParams(t,S,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeResourceAttribute(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeResourceAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeUesAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeUserAttribute(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeUserAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeUserExtSourceAttribute(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeUserFacilityAttribute(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==g)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=g&&(t=this.addToHttpParams(t,g,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeUserFacilityAttributes(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==g)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),g&&g.forEach(S=>{t=this.addToHttpParams(t,S,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeVoAttribute(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeVoAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}setAttributeActionCriticality(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==u)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==g)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"attributeDefinition")),null!=u&&(t=this.addToHttpParams(t,u,"action")),null!=g&&(t=this.addToHttpParams(t,g,"critical"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}setAttributePolicyCollections(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setAttributeRights(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setEntitylessAttribute(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setFacilityAttribute(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setFacilityAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setFacilityResourceGroupUserMemberAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setFacilityResourceUserMemberAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setFacilityUserAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setGroupAttribute(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setGroupAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setGroupResourceAttribute(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setGroupResourceAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setHostAttribute(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setHostAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setMemberAttribute(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setMemberAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setMemberGroupAttribute(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setMemberGroupAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setMemberGroupWithUserAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setMemberResourceAndUserAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setMemberResourceAttribute(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setMemberResourceAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setMemberWithUserAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setResourceAttribute(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setResourceAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setResourceGroupAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setResourceGroupWithGroupAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setUserAttribute(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setUserAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setUserExtSourceAttribute(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setUserExtSourceAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setUserFacilityAttribute(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setUserFacilityAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setVoAttribute(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setVoAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}updateAttributeDefinition(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),T=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}auditMessagesManagerLog(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"msg"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}createAuditerConsumer(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consumerName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}findAllPossibleEvents(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/auditMessagesManager/findAllPossibleEvents`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getAllAuditerConsumers(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getAuditerMessagesCount(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getLastMessageId(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getMessages(r,u=!1,g="body",v=!1,h){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"count"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/auditMessagesManager/getMessages`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getMessagesByCount(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"count"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getMessagesByIdAndCount(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter id was null or undefined when calling getMessagesByIdAndCount.");if(null==u)throw new Error("Required parameter count was null or undefined when calling getMessagesByIdAndCount.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"id")),null!=u&&(i=this.addToHttpParams(i,u,"count"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByIdAndCount`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getMessagesPage(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputGetMessagesPage was null or undefined when calling getMessagesPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}pollConsumerMessages(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consumerName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}setLastProcessedId(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==u)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"consumerName")),null!=u&&(i=this.addToHttpParams(i,u,"lastProcessedId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),R=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}getAllPolicies(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getAllRolesManagementRules(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getAuthzAdminGroups(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==u)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==g)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"role")),null!=u&&(t=this.addToHttpParams(t,u,"complementaryObjectId")),null!=g&&(t=this.addToHttpParams(t,g,"complementaryObjectName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getAuthzRichAdmins(r,u,g,v,h,a,i=!1,t="body",n=!1,o){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==u)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==g)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==v)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,r,"role")),null!=u&&(s=this.addToHttpParams(s,u,"complementaryObjectId")),null!=g&&(s=this.addToHttpParams(s,g,"complementaryObjectName")),v&&v.forEach(ze=>{s=this.addToHttpParams(s,ze,"specificAttributes")}),null!=h&&(s=this.addToHttpParams(s,h,"allUserAttributes")),null!=a&&(s=this.addToHttpParams(s,a,"onlyDirectAdmins"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=o&&o.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let S=o&&o.context;void 0===S&&(S=new e.qT);let $="json";c&&($=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let ht=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(i){let ze=new URL(ht),et=ze.pathname.split("/");et[1]="non",ze.pathname=et.join("/"),ht=ze.toString()}return this.httpClient.get(ht,{context:S,params:s,responseType:$,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:n})}getFacilitiesWhereUserIsInRoles(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getGroupRoleNames(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getGroupRoles(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"groupId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getGroupsWhereUserIsInRoles(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getLoggedUser(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getMembersWhereUserIsInRoles(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getPerunPrincipal(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getPrincipalRoleNames(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getResourcesWhereUserIsInRoles(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getSecurityTeamsWhereUserIsInRoles(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getUserRoleNames(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getUserRoles(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getVosWhereUserIsInRoles(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}isFacilityAdmin(r,u=!1,g="body",v=!1,h){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}isGroupAdmin(r,u=!1,g="body",v=!1,h){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}isPerunAdmin(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}isVoAdmin(r,u=!1,g="body",v=!1,h){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}keepAlive(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}loadAuthorizationComponents(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}refreshMfa(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}setRoleForGroup(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setRoleForUser(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setRoleWithGroupComplementaryObject(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setRoleWithGroupComplementaryObjects(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setRoleWithUserComplementaryObject(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setRoleWithUserComplementaryObjects(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}unsetRoleForGroup(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}unsetRoleForUser(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}unsetRoleWithGroupComplementaryObject(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}unsetRoleWithGroupComplementaryObjects(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}unsetRoleWithUserComplementaryObject(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}unsetRoleWithUserComplementaryObjects(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),w=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}changeConsentStatus(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"consent")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}evaluateConsentsForConsentHub(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consentHub"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}evaluateConsentsForConsentHubs(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter consentHubs was null or undefined when calling evaluateConsentsForConsentHubs.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"consentHubs[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHubs`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}evaluateConsentsForService(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllConsentHubs(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getAllConsents(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/consentsManager/getAllConsents`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getConsentById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getConsentForUserAndConsentHub(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==u)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==g)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"consentHub")),null!=g&&(t=this.addToHttpParams(t,g,"status"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getConsentHubByFacility(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getConsentHubById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentHubById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getConsentHubByName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getConsentsForConsentHub(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consentHub"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getConsentsForConsentHubWithStatus(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"consentHub")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getConsentsForUser(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getConsentsForUserAndConsentHub(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==u)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"consentHub"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getConsentsForUserWithStatus(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}updateConsentHub(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/updateConsentHub`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),O=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}addExtSourceWithGroupSource(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addExtSourceWithVoSource(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addExtSourcesWithGroupSource(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling addExtSourcesWithGroupSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling addExtSourcesWithGroupSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"extSources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSources/g-s`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addExtSourcesWithVoSource(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addExtSourcesWithVoSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling addExtSourcesWithVoSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"extSources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSources/v-s`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}createExtSourceFromExtSourceObject(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter ExtSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}createExtSourceWithNameType(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==u)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"name")),null!=u&&(i=this.addToHttpParams(i,u,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}deleteExtSource(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getExtSourceById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getExtSourceByName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getExtSources(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/extSourcesManager/getExtSources`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getGroupExtSources(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getVoExtSources(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}loadExtSourcesDefinitions(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}removeExtSourceWithGroupSource(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeExtSourceWithVoSource(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeExtSourcesWithGroupSource(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeExtSourcesWithGroupSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling removeExtSourcesWithGroupSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"extSources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSources/g-s`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeExtSourcesWithVoSource(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeExtSourcesWithVoSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling removeExtSourcesWithVoSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"extSources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSources/v-s`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),J=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}addFacilityAdminGroup(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addFacilityAdminGroupByFacilityName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addFacilityAdminUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addFacilityAdminUserByFacilityName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addFacilityOwner(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addFacilityOwnerByFacilityName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addFacilityOwnerByFacilityNameOwnerName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addFacilityOwnerByOwnerName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addFacilityOwners(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwners.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling addFacilityOwners.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"owners[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addFacilityOwnersByFacilityName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnersByFacilityName.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling addFacilityOwnersByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"owners[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners/f-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addFacilityOwnersByFacilityNameOwnerName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnersByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling addFacilityOwnersByFacilityNameOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"ownerNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners/f-o-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addFacilityOwnersByOwnerName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnersByOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling addFacilityOwnersByOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"ownerNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners/o-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addHost(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==u)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"hostname"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addHostByFacilityName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==u)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"hostname"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addHosts(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==u)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"hostnames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addHostsByFacilityName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==u)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"hostnames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}assignSecurityTeam(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}assignSecurityTeamByFacilityName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyAttributesByDestinationName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyAttributesBySourceDestinationNames(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyAttributesBySourceName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyManagers(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyManagersByDestinationName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyManagersBySourceDestinationNames(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyManagersBySourceName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyOwners(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyOwnersByDestinationName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyOwnersBySourceDestinationNames(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyOwnersBySourceName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}createFacility(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"name")),null!=u&&(i=this.addToHttpParams(i,u,"description"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}deleteFacility(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}deleteFacilityByFacilityName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllFacilities(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/facilitiesManager/getFacilities`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getAllowedGroups(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=g&&(t=this.addToHttpParams(t,g,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getAllowedGroupsByFacilityName(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=g&&(t=this.addToHttpParams(t,g,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getAllowedRichGroupsWithAttributes(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach($=>{n=this.addToHttpParams(n,$,"attrNames[]")}),null!=g&&(n=this.addToHttpParams(n,g,"vo")),null!=v&&(n=this.addToHttpParams(n,v,"service"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getAllowedRichGroupsWithAttributesByFacilityName(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach($=>{n=this.addToHttpParams(n,$,"attrNames[]")}),null!=g&&(n=this.addToHttpParams(n,g,"vo")),null!=v&&(n=this.addToHttpParams(n,v,"service"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getAllowedUsersOfFacility(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=g&&(t=this.addToHttpParams(t,g,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getAllowedUsersOfFacilityByFacilityName(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=g&&(t=this.addToHttpParams(t,g,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getAllowedVos(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllowedVosByFacilityName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedFacilitiesByGroup(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedFacilitiesByMember(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedFacilitiesByService(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedFacilitiesByUser(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedResourcesByAssignedServiceForFacility(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==u)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getAssignedResourcesForFacility(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedResourcesForFacilityByFacilityName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedRichResourcesForFacility(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedRichResourcesForFacilityAndService(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-s`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getAssignedRichResourcesForFacilityByFacilityName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedSecurityTeams(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedSecurityTeamsByFacilityName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedUsers(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getAssignedUsersByFacilityName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getBansForFacility(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facilityId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getBansForUser(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getEnricheFacilitydBansForUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnricheFacilitydBansForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedBansForUser`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getEnrichedBansForFacility(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedBansForFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedBansForFacility`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getEnrichedFacilities(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getEnrichedHosts(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getFacilitiesByAttribute(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"attributeName")),null!=u&&(i=this.addToHttpParams(i,u,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getFacilitiesByAttributeWithAttributes(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttributeWithAttributes.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttributeWithAttributes.");if(null==g)throw new Error("Required parameter attrNames was null or undefined when calling getFacilitiesByAttributeWithAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"attributeName")),null!=u&&(t=this.addToHttpParams(t,u,"attributeValue")),g&&g.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttributeWithAttributes`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getFacilitiesByDestination(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFacilitiesByHostName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"hostname"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFacilitiesByIds(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFacilitiesCount(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getFacilitiesWhereUserIsAdmin(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFacilityAdminGroups(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFacilityAdminGroupsByFacilityName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFacilityAdminUsers(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAdmins`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getFacilityAdminUsersByFacilityName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getFacilityBan(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getBan`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getFacilityBanById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getBanById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFacilityById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFacilityByName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFacilityForHost(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"host"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFacilityOwners(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getOwners`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFacilityOwnersByFacilityName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getHostById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getHostById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHostById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getHosts(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHosts`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getHostsByFacilityName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getHostsByHostname(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"hostname"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getHostsCount(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getHostsCountByFacilityName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getOwnerFacilities(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"owner"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getRichFacilities(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}removeBanByUserIdFacilityId(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeFacilityAdminGroup(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeFacilityAdminGroupByFacilityName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeFacilityAdminUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeFacilityAdminUserByFacilityName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeFacilityBanById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}removeFacilityOwner(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeFacilityOwnerByFacilityName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeFacilityOwnerByFacilityNameOwnerName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeFacilityOwnerByOwnerName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeFacilityOwners(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwners.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling removeFacilityOwners.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"owners[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeFacilityOwnersByFacilityName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnersByFacilityName.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling removeFacilityOwnersByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"owners[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners/f-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeFacilityOwnersByFacilityNameOwnerName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnersByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling removeFacilityOwnersByFacilityNameOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"ownerNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners/f-o-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeFacilityOwnersByOwnerName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnersByOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling removeFacilityOwnersByOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"ownerNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners/o-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeHost(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHost.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"host"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}removeHostByHostname(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"hostname"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}removeHosts(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==u)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"hosts[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeHostsByFacilityName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==u)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"hosts[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeSecurityTeam(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeSecurityTeamByFacilityName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}setFacilityBan(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/setBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}updateFacility(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUpdateFacility was null or undefined when calling updateFacility.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/updateFacility`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}updateFacilityBan(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/updateBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),ne=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}addMember(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling addMember.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),null!=u&&(i=this.addToHttpParams(i,u,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addMembers(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==u)throw new Error("Required parameter members was null or undefined when calling addMembers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"members[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}allowGroupToHierarchicalVo(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}allowGroupsToHierarchicalVo(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling allowGroupsToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupsToHierarchicalVo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}canExtendMembershipInGroup(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyMembers(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter sourceGroup was null or undefined when calling copyMembers.");if(null==u)throw new Error("Required parameter destinationGroups was null or undefined when calling copyMembers.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"sourceGroup")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"destinationGroups")}),g&&g.forEach(S=>{t=this.addToHttpParams(t,S,"members")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/copyMembers`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}createGroupUnion(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==u)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resultGroup")),null!=u&&(i=this.addToHttpParams(i,u,"operandGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}createGroupWithParentGroupNameDescription(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==u)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==g)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"parentGroup")),null!=u&&(t=this.addToHttpParams(t,u,"name")),null!=g&&(t=this.addToHttpParams(t,g,"description"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}createGroupWithVoNameDescription(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==u)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==g)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"name")),null!=g&&(t=this.addToHttpParams(t,g,"description"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}deleteGroup(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}deleteGroups(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/deleteGroups`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}disallowGroupToHierarchicalVo(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}disallowGroupsToHierarchicalVo(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling disallowGroupsToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling disallowGroupsToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupsToHierarchicalVo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}extendMembershipInGroup(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}forceAllSubGroupsSynchronization(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}forceGroupStructureSynchronization(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}forceGroupSynchronization(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllAllowedGroupsToHierarchicalVo(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllGroups(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getAllGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllGroupsFromAllVos(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getAllMemberGroups(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllRichGroups(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"attrNames[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllRichGroupsWithAttributesByNames(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getAllRichSubGroupsWithGroupAttributesByNames(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getGroupById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getGroupByName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==u)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"name"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupByName`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getGroupDirectMembersCount(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupDirectMembersCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupDirectMembersCount`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getGroupMemberById(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getGroupMembers(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getGroupMembersCount(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getGroupMembersCountsByGroupStatus(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getGroupMembersCountsByVoStatus(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getGroupRichMembersByIds(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==u)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==g)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"members[]")}),g&&g.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getGroupUnions(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==u)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"reverseDirection"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupUnions`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getGroupsByIds(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getGroupsPage(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupsPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}getGroupsWhereMemberIsActive(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getIndirectMembershipPaths(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getMemberGroups(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getMemberGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getMemberRichGroupsWithAttributesByNames(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getParentGroup(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getParentGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getParentGroup`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getRichGroupByIdWithAttributesByNames(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"groupId")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getSubgroupsPage(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}getVoAllAllowedGroupsToHierarchicalVo(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==u)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}isAllowedGroupToHierarchicalVo(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}isGroupMember(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==u)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/isGroupMember`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}moveGroupWithDestinationGroupMovingGroup(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"destinationGroup")),null!=r&&(i=this.addToHttpParams(i,r,"movingGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeGroupUnion(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==u)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resultGroup")),null!=u&&(i=this.addToHttpParams(i,u,"operandGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeMember(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeMember.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),null!=u&&(i=this.addToHttpParams(i,u,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeMembers(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==u)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"members[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}setGroupsMemberStatus(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==u)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==g)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=g&&(t=this.addToHttpParams(t,g,"status"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}updateGroup(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/updateGroup`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),se=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}addMemberCandidates(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputAddMemberCandidates was null or undefined when calling addMemberCandidates.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/addMemberCandidates`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}canExtendMembership(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/canExtendMembership`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}createMemberForCandidate(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createMember/c`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}createMemberForUser(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createMember/u`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}createMemberFromExtSource(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createMember/extSource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}createSpecificMember(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createSpecificMember`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}createSponsoredMember(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}createSponsoredMembers(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}createSponsoredMembersFromCSV(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}deleteMember(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}deleteMembers(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"members[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}extendMembership(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}findCompleteRichMembersByAttributes(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(S=>{t=this.addToHttpParams(t,S,"attrsNames[]")}),null!=u&&(t=this.addToHttpParams(t,u,"searchString")),g&&g.forEach(S=>{t=this.addToHttpParams(t,S,"allowedStatuses[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}findCompleteRichMembersForGroup(r,u,g,v,h,a,i=!1,t="body",n=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==u)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==g)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==v)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,r,"group")),u&&u.forEach(ze=>{s=this.addToHttpParams(s,ze,"attrsNames[]")}),h&&h.forEach(ze=>{s=this.addToHttpParams(s,ze,"allowedStatuses[]")}),a&&a.forEach(ze=>{s=this.addToHttpParams(s,ze,"allowedGroupStatuses[]")}),null!=g&&(s=this.addToHttpParams(s,g,"searchString")),null!=v&&(s=this.addToHttpParams(s,v,"lookingInParentGroup"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=o&&o.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let S=o&&o.context;void 0===S&&(S=new e.qT);let $="json";c&&($=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let ht=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`;if(i){let ze=new URL(ht),et=ze.pathname.split("/");et[1]="non",ze.pathname=et.join("/"),ht=ze.toString()}return this.httpClient.get(ht,{context:S,params:s,responseType:$,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:n})}findCompleteRichMembersForVo(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==u)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==g)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach($=>{n=this.addToHttpParams(n,$,"attrsNames[]")}),v&&v.forEach($=>{n=this.addToHttpParams(n,$,"allowedStatuses[]")}),null!=g&&(n=this.addToHttpParams(n,g,"searchString"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}findMembersInVo(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"searchString"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/findMembersInVo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}findSponsoredCompleteRichMembersForVo(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==u)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==g)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==v)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach($=>{n=this.addToHttpParams(n,$,"attrsNames[]")}),null!=g&&(n=this.addToHttpParams(n,g,"searchString")),null!=v&&(n=this.addToHttpParams(n,v,"onlySponsored"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getAllMembers(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/membersManager/getAllMembers`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getAllNamespacesRules(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getAllSponsoredMembers(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllSponsoredMembersAndTheirSponsors(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getCompleteRichMembersForGroup(r,u,g,v,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==u)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group")),g&&g.forEach(ht=>{o=this.addToHttpParams(o,ht,"allowedStatuses[]")}),v&&v.forEach(ht=>{o=this.addToHttpParams(o,ht,"allowedGroupStatuses[]")}),null!=u&&(o=this.addToHttpParams(o,u,"lookingInParentGroup")),h&&h.forEach(ht=>{o=this.addToHttpParams(o,ht,"attrsNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let $=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`;if(a){let ht=new URL($),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),$=ht.toString()}return this.httpClient.get($,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}getCompleteRichMembersForGroupResource(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==g)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==v)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"resource")),g&&g.forEach($=>{n=this.addToHttpParams(n,$,"attrsNames[]")}),v&&v.forEach($=>{n=this.addToHttpParams(n,$,"allowedStatuses[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getCompleteRichMembersForVo(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"allowedStatuses[]")}),g&&g.forEach(S=>{t=this.addToHttpParams(t,S,"attrsNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberByExtSourceNameAndExtLogin(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==u)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==g)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"extLogin")),null!=g&&(t=this.addToHttpParams(t,g,"extSourceName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getMemberById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getMemberByUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMemberByUser`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getMembers(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMembers`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getMembersByIds(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getMembersByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getMembersByUser(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getMembersByUser`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getMembersCount(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getMembersCount`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getMembersPage(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMembersPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}getMembersWithStatusCount(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==u)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMembersCount/status`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getRichMember(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getRichMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getRichMemberWithAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getRichMembersByIds(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"ids[]")}),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getRichMembersNoUserAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getSponsoredMembers(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getSponsoredMembersAndTheirSponsors(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getSponsorsByMember(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getSponsors/member`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getSponsorsByVo(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==u)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==g)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"extSourceName")),null!=g&&(n=this.addToHttpParams(n,g,"extLogin")),v&&v.forEach($=>{n=this.addToHttpParams(n,$,"attrNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/membersManager/getSponsors/vo`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}moveMembership(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==u)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==g)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"sourceUser")),null!=g&&(t=this.addToHttpParams(t,g,"targetUser"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeSponsor(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"sponsor"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeSponsors(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeSponsors.");if(null==u)throw new Error("Required parameter sponsorIds was null or undefined when calling removeSponsors.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"sponsorIds")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsors`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}sendAccountActivationLinkEmail(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==g)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==v)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"namespace")),null!=g&&(n=this.addToHttpParams(n,g,"emailAttributeURN")),null!=v&&(n=this.addToHttpParams(n,v,"language"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}sendPasswordResetLinkEmail(r,u,g,v,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==g)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==v)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member")),null!=u&&(o=this.addToHttpParams(o,u,"namespace")),null!=g&&(o=this.addToHttpParams(o,g,"emailAttributeURN")),null!=v&&(o=this.addToHttpParams(o,v,"language")),null!=h&&(o=this.addToHttpParams(o,h,"baseUrl"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let $=`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`;if(a){let ht=new URL($),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),$=ht.toString()}return this.httpClient.post($,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}setSponsoredMember(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/setSponsoredMember`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setSponsorshipForMember(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"sponsoredMember")),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=g&&(t=this.addToHttpParams(t,g,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}setStatus(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling setStatus.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}sponsorMember(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=g&&(t=this.addToHttpParams(t,g,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}sponsorMembers(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter members was null or undefined when calling sponsorMembers.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMembers.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(S=>{t=this.addToHttpParams(t,S,"members[]")}),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=g&&(t=this.addToHttpParams(t,g,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMembers`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}updateSponsorshipValidity(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=g&&(t=this.addToHttpParams(t,g,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}validateMemberAsync(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),Oe=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}createOwner(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/ownersManager/createOwner`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}deleteOwner(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"owner")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}deleteOwners(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter owners was null or undefined when calling deleteOwners.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"owners[]")}),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwners`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getAllOwners(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/ownersManager/getOwners`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getOwnerById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/ownersManager/getOwnerById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getOwnerByName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"owner"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/ownersManager/getOwnerByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),_e=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}sentMessageToRTWithMemberQueue(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==u)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==g)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==v)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"memberId")),null!=u&&(n=this.addToHttpParams(n,u,"queue")),null!=g&&(n=this.addToHttpParams(n,g,"subject")),null!=v&&(n=this.addToHttpParams(n,v,"text"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}sentMessageToRTWithQueue(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==u)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==g)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"queue")),null!=u&&(t=this.addToHttpParams(t,u,"subject")),null!=g&&(t=this.addToHttpParams(t,g,"text"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}sentMessageToRTWithVo(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==u)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==g)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"voId")),null!=u&&(t=this.addToHttpParams(t,u,"subject")),null!=g&&(t=this.addToHttpParams(t,g,"text"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}sentMessageToRTWithVoQueue(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==u)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==g)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==v)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"voId")),null!=u&&(n=this.addToHttpParams(n,u,"queue")),null!=g&&(n=this.addToHttpParams(n,g,"subject")),null!=v&&(n=this.addToHttpParams(n,v,"text"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),Be=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}addApplicationMailForGroup(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}addApplicationMailForVo(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}addGroupsToAutoRegistration(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"groups[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}approveApplication(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}checkForSimilarRichIdentities(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.post(o,null,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}checkForSimilarUsersWithAuthInfo(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.post(o,null,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}consolidate(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/consolidate`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}consolidateIdentityUsingToken(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"token"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}copyFormFromGroupToGroup(r,u,g=!1,v="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=u&&(i=this.addToHttpParams(i,u,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyFormFromGroupToVo(r,u,g=!1,v="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=u&&(i=this.addToHttpParams(i,u,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyFormFromVoToGroup(r,u,g=!1,v="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=u&&(i=this.addToHttpParams(i,u,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyFormFromVoToVo(r,u,g=!1,v="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=u&&(i=this.addToHttpParams(i,u,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyMailsFromGroupToGroup(r,u,g=!1,v="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=u&&(i=this.addToHttpParams(i,u,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyMailsFromGroupToVo(r,u,g=!1,v="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=u&&(i=this.addToHttpParams(i,u,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyMailsFromVoToGroup(r,u,g=!1,v="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=u&&(i=this.addToHttpParams(i,u,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyMailsFromVoToVo(r,u,g=!1,v="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=u&&(i=this.addToHttpParams(i,u,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}createApplicationFormInGroup(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}createApplicationFormInVo(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}deleteApplication(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}deleteApplicationMailForGroup(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==u)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"id"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}deleteApplicationMailForVo(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==u)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"id"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}deleteGroupsFromAutoRegistration(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"groups[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getApplicationById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getApplicationDataById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getApplicationMailsForGroup(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getApplicationMailsForVo(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getApplicationsForGroup(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach($=>{n=this.addToHttpParams(n,$,"state[]")}),null!=g&&(n=this.addToHttpParams(n,g,"dateFrom")),null!=v&&(n=this.addToHttpParams(n,v,"dateTo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getApplicationsForMember(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getApplicationsForVo(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach($=>{n=this.addToHttpParams(n,$,"state[]")}),null!=g&&(n=this.addToHttpParams(n,g,"dateFrom")),null!=v&&(n=this.addToHttpParams(n,v,"dateTo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getApplicationsPage(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}getConsolidatorToken(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getFormItemsForGroup(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getFormItems/group`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFormItemsForGroupWithType(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getFormItemsForVo(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFormItemsForVoWithType(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getGroupApplicationForm(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getGroupsToAutoRegistration(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getVoApplicationForm(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}invitationFormExists(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling invitationFormExists.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/invitationFormExists`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}inviteMemberCandidates(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputInviteMemberCandidates was null or undefined when calling inviteMemberCandidates.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/inviteMemberCandidates`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}rejectApplication(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"id")),null!=u&&(i=this.addToHttpParams(i,u,"reason"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}sendInvitation(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==u)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let n=new e.LE({encoder:this.encoder});null!=g&&(n=this.addToHttpParams(n,g,"voId")),null!=v&&(n=this.addToHttpParams(n,v,"name")),null!=r&&(n=this.addToHttpParams(n,r,"email")),null!=u&&(n=this.addToHttpParams(n,u,"language"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}sendInvitationForGroup(r,u,g,v,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==u)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let o=new e.LE({encoder:this.encoder});null!=g&&(o=this.addToHttpParams(o,g,"voId")),null!=v&&(o=this.addToHttpParams(o,v,"groupId")),null!=h&&(o=this.addToHttpParams(o,h,"name")),null!=r&&(o=this.addToHttpParams(o,r,"email")),null!=u&&(o=this.addToHttpParams(o,u,"language"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let $=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`;if(a){let ht=new URL($),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),$=ht.toString()}return this.httpClient.post($,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}sendInvitationGroupToExistingUser(r,u,g,v=!1,h="body",a=!1,i){let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"userId")),null!=u&&(t=this.addToHttpParams(t,u,"voId")),null!=g&&(t=this.addToHttpParams(t,g,"groupId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}sendInvitationToExistingUser(r,u,g=!1,v="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userId")),null!=u&&(i=this.addToHttpParams(i,u,"voId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}sendInvitationsFromCsv(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}sendMessage(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/sendMessage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}setSendingEnabled(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}submitApplication(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/submitApplication`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}updateApplicationMail(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}updateForm(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateForm`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}updateFormItemData(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateFormItemData`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}updateFormItemsData(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}updateFormItemsForGroup(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}updateFormItemsForVo(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}verifyApplication(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),E=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}activateGroupResourceAssignment(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=g&&(t=this.addToHttpParams(t,g,"async"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}addAdminToGroup(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addAdminToUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addResourceSelfServiceGroup(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addResourceSelfServiceUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}allowGroupsToResources(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(S=>{t=this.addToHttpParams(t,S,"groups[]")}),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"resources[]")}),null!=g&&(t=this.addToHttpParams(t,g,"async"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}assignGroupToResource(r,u,g,v,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group")),null!=u&&(o=this.addToHttpParams(o,u,"resource")),null!=g&&(o=this.addToHttpParams(o,g,"async")),null!=v&&(o=this.addToHttpParams(o,v,"assignInactive")),null!=h&&(o=this.addToHttpParams(o,h,"autoAssignSubgroups"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let $=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`;if(a){let ht=new URL($),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),$=ht.toString()}return this.httpClient.post($,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}assignGroupToResources(r,u,g,v,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group")),u&&u.forEach(ht=>{o=this.addToHttpParams(o,ht,"resources[]")}),null!=g&&(o=this.addToHttpParams(o,g,"async")),null!=v&&(o=this.addToHttpParams(o,v,"assignInactive")),null!=h&&(o=this.addToHttpParams(o,h,"autoAssignSubgroups"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let $=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`;if(a){let ht=new URL($),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),$=ht.toString()}return this.httpClient.post($,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}assignGroupsToResource(r,u,g,v,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(ht=>{o=this.addToHttpParams(o,ht,"groups[]")}),null!=u&&(o=this.addToHttpParams(o,u,"resource")),null!=g&&(o=this.addToHttpParams(o,g,"async")),null!=v&&(o=this.addToHttpParams(o,v,"assignInactive")),null!=h&&(o=this.addToHttpParams(o,h,"autoAssignSubgroups"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let $=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`;if(a){let ht=new URL($),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),$=ht.toString()}return this.httpClient.post($,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}assignResourceTagToResource(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}assignResourceTagsToResource(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputAssignResourceTagsToResource was null or undefined when calling assignResourceTagsToResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/assignResourceTagsToResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}assignService(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling assignService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}assignServices(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==u)throw new Error("Required parameter services was null or undefined when calling assignServices.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"services[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}assignServicesPackage(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==u)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"servicesPackage"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}copyResource(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/copyResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}createResource(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==g)throw new Error("Required parameter name was null or undefined when calling createResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"facility")),null!=g&&(n=this.addToHttpParams(n,g,"name")),null!=v&&(n=this.addToHttpParams(n,v,"description"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}createResourceTagWithResourceTag(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}createResourceTagWithTagName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"tagName")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}deactivateGroupResourceAssignment(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}deleteAllResources(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}deleteAllResourcesTagsForVo(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}deleteResource(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}deleteResourceTag(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}getAdminGroups(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAdmins(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAdmins`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getAllResources(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/resourcesManager/getAllResources`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getAllResourcesByResourceTag(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}getAllResourcesTagsForResource(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllResourcesTagsForVo(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllResourcesWhereUserIsAdmin(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllowedMembers(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllowedResources(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllowedUsersOfResource(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedGroups(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getAssignedMembers(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedMembersWithStatus(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedResourcesWithGroup(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedResourcesWithMember(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedResourcesWithStatus(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedRichMembers(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedRichResourcesWithGroup(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedRichResourcesWithMember(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedRichResourcesWithMemberService(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getAssignedServicesToResource(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getBansForMember(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getBansForMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getBansForResource(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getBansForResource`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getEnrichedBansForResource(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getEnrichedBansForResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForResource`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getEnrichedBansForUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnrichedBansForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForUser`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getEnrichedResourceById(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"id")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getEnrichedResourcesForFacility(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getEnrichedResourcesForVo(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getFacility(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getGroupAssignments(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getMailingServiceRichResourcesWithMember(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getResourceAssignments(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getResourceBan(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getBan`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getResourceBanById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getBanById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getResourceById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResourceById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getResourceByName(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==g)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=g&&(t=this.addToHttpParams(t,g,"name"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getResourceByName`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getResources(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getResourcesByIds(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getResourcesCountForAll(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getResourcesCountForVo(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getResourcesFromVoWhereUserIsAdmin(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==u)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getResourcesWhereGroupIsAdmin(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==g)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=g&&(t=this.addToHttpParams(t,g,"group"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getResourcesWhereUserIsAdmin(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==g)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=g&&(t=this.addToHttpParams(t,g,"user"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getRichAdmins(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==u)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==g)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==v)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),u&&u.forEach($=>{n=this.addToHttpParams(n,$,"specificAttributes")}),null!=g&&(n=this.addToHttpParams(n,g,"allUserAttributes")),null!=v&&(n=this.addToHttpParams(n,v,"onlyDirectAdmins"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getRichResourceById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getRichResources(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getRichResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getRichResourcesByIds(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getVo(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getVo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}removeAllResourceTagsFromResource(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}removeBanByMemberAndResource(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeGroupAdminResource(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeGroupFromResource(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeGroupFromResources(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"resources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeGroupsFromResource(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeResourceBanById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}removeResourceSelfServiceGroup(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeResourceSelfServiceUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeResourceTagFromResource(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}removeResourceTagsFromResource(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputRemoveResourceTagsFromResource was null or undefined when calling removeResourceTagsFromResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/removeResourceTagsFromResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}removeService(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling removeService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeServiceForResources(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resources was null or undefined when calling removeServiceForResources.");if(null==u)throw new Error("Required parameter service was null or undefined when calling removeServiceForResources.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"resources[]")}),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService/forResources`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeServices(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==u)throw new Error("Required parameter services was null or undefined when calling removeServices.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"services[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeServicesPackage(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==u)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"servicesPackage"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeUserAdminResource(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}setResourceBan(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/setBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}unallowGroupsFromResources(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"resources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}updateResource(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/updateResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}updateResourceBan(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/updateBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}updateResourceTag(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),z=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}getAttributesMatchResources(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputGetMatchResources was null or undefined when calling getAttributesMatchResources.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getResources/attributes-match`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}getAttributesResources(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputGetResources was null or undefined when calling getAttributesResources.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getResources/attributes`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}getFacilities(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputGetFacilities was null or undefined when calling getFacilities.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getFacilities`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}getMembersByUserAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputGetMembersByUserAttributes was null or undefined when calling getMembersByUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getMembersByUserAttributes`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}getUsersSearcher(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputGetUsers was null or undefined when calling getUsersSearcher.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getUsers`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),F=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}addDestination(r,u,g,v,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==g)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==v)throw new Error("Required parameter type was null or undefined when calling addDestination.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service")),null!=u&&(o=this.addToHttpParams(o,u,"facility")),null!=g&&(o=this.addToHttpParams(o,g,"destination")),null!=v&&(o=this.addToHttpParams(o,v,"type")),null!=h&&(o=this.addToHttpParams(o,h,"propagationType"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let $=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`;if(a){let ht=new URL($),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),$=ht.toString()}return this.httpClient.post($,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}addDestinationToMultipleServices(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/addDestination`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}addDestinationsDefinedByHostsOnFacilityWithFacility(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addDestinationsForAllServicesOnFacility(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==g)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"destination")),null!=g&&(n=this.addToHttpParams(n,g,"type")),null!=v&&(n=this.addToHttpParams(n,v,"propagationType"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}addRequiredAttribute(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addRequiredAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addServiceToServicesPackage(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==u)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"servicesPackage")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}blockAllServicesOnDestinationById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}blockAllServicesOnDestinationByName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==u)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"destination")),null!=u&&(i=this.addToHttpParams(i,u,"destinationType"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}blockAllServicesOnFacility(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}blockServiceOnDestination(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}blockServiceOnDestinationWithNameAndType(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==g)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"destination")),null!=g&&(t=this.addToHttpParams(t,g,"destinationType"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}blockServiceOnDestinations(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinations.");if(null==u)throw new Error("Required parameter destinations was null or undefined when calling blockServiceOnDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"destinations[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestinations`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}blockServiceOnFacility(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}blockServicesOnDestinations(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputBlockServicesOnDestinations was null or undefined when calling blockServicesOnDestinations.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/blockServicesOnDestinations`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}createService(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==u)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==g)throw new Error("Required parameter script was null or undefined when calling createService.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"name")),null!=u&&(t=this.addToHttpParams(t,u,"description")),null!=g&&(t=this.addToHttpParams(t,g,"script"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}createServiceWithService(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputCreateService was null or undefined when calling createServiceWithService.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/createService`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}createServicesPackage(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputCreateServicesPackage was null or undefined when calling createServicesPackage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/createServicesPackage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}createServicesPackageByNameAndDescription(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==u)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"name")),null!=u&&(i=this.addToHttpParams(i,u,"description"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}deleteService(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling deleteService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}deleteServices(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter services was null or undefined when calling deleteServices.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"services[]")}),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServices`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}deleteServicesPackage(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"servicesPackage"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}forceServicePropagation(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getAllDestinations(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/servicesManager/getDestinations/all`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getAllRichDestinationsForFacility(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllRichDestinationsForService(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedResources(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedServices(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedServicesVo(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServicesVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getAssignedServicesVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f-v`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getDataWithGroups(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getDataWithVos(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getDataWithVos`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getDestinationById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getDestinationById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getDestinations(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getDestinationsCount(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getFacilitiesDestinations(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFacilityAssignedServicesForGUI(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFlatData(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getFlatData`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getHashedDataWithGroups(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=g&&(t=this.addToHttpParams(t,g,"consentEval"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getHashedHierarchicalData(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=g&&(t=this.addToHttpParams(t,g,"consentEval"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getHierarchicalData(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getRichDestinations(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getRichDestinations`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getServiceById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServiceById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getServiceByName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServiceByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getServices(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/servicesManager/getServices`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getServicesBlockedOnDestination(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getServicesBlockedOnFacility(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getServicesByAttributeDefinition(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getServicesFromServicesPackage(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"servicesPackage"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getServicesPackageById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"servicesPackage"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getServicesPackageByName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getServicesPackages(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/servicesManager/getServicesPackages`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}isServiceBlockedOnDestination(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}isServiceBlockedOnFacility(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}planServicePropagation(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeAllDestinations(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeAllRequiredAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}removeDestination(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==g)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==v)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility")),null!=g&&(n=this.addToHttpParams(n,g,"destination")),null!=v&&(n=this.addToHttpParams(n,v,"type"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}removeDestinations(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeDestinations.");if(null==g)throw new Error("Required parameter destinations was null or undefined when calling removeDestinations.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),g&&g.forEach(S=>{t=this.addToHttpParams(t,S,"destinations[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestinations`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeDestinationsByRichDestinations(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputRemoveRichDestinations was null or undefined when calling removeDestinationsByRichDestinations.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/removeDestinationsByRichDestinations`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}removeRequiredAttribute(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeRequiredAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeServiceFromServicesPackage(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==u)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"servicesPackage")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}unblockAllServicesOnDestinationById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}unblockAllServicesOnDestinationByName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==u)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"destination")),null!=u&&(i=this.addToHttpParams(i,u,"destinationType"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}unblockAllServicesOnFacility(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}unblockServiceOnDestinationById(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}unblockServiceOnDestinationByName(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==g)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"destination")),null!=g&&(t=this.addToHttpParams(t,g,"destinationType"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}unblockServiceOnDestinations(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinations.");if(null==u)throw new Error("Required parameter destinations was null or undefined when calling unblockServiceOnDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"destinations[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestinations`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}unblockServiceOnFacility(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}unblockServicesOnDestinations(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUnlockServicesOnDestinations was null or undefined when calling unblockServicesOnDestinations.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/unblockServicesOnDestinations`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}updateService(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUpdateService was null or undefined when calling updateService.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/updateService`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}updateServicesPackage(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),V=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}countTasks(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/tasksManager/countTasks`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}deleteTask(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter TaskIdObject was null or undefined when calling deleteTask.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/deleteTask`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}deleteTaskResultById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter TaskResultIdObject was null or undefined when calling deleteTaskResultById.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}deleteTaskResultsByIds(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter taskResultIds was null or undefined when calling deleteTaskResultsByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"taskResultIds")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/tasksManager/deleteTaskResultsByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}deleteTaskResultsIds(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter TaskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}deleteTaskResultsNames(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter TaskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}getAllFacilitiesStates(r,u=!1,g="body",v=!1,h){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAllResourcesState(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"voId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFacilityServicesState(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getFacilityState(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getFacilityState`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getTask(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getTask.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getTask`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getTaskById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getTaskResultById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"taskResult"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getTaskResults(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/tasksManager/getTaskResults`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getTaskResultsByTask(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"task"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getTaskResultsForDestinations(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"destinations[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getTaskResultsForGUIByTask(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"task"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getTaskResultsForGUIByTaskAndDestination(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"task")),null!=u&&(i=this.addToHttpParams(i,u,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getTaskResultsForGUIByTaskOnlyNewest(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"task"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}isThereSuchTask(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}listAllTasks(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/tasksManager/listAllTasks`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}listAllTasksForFacility(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}suspendTasksPropagation(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"suspend"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),X=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}addSpecificUserOwner(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==u)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"specificUser"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addUserExtSource(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}anonymizeUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}changeNonAuthzPasswordByToken(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}changePasswordForLogin(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}changePasswordForUser(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}checkPasswordResetRequestByTokenIsValid(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"token"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}checkPasswordStrength(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}createAlternativePassword(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}createServiceUser(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}deleteAlternativePassword(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==u)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==g)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"loginNamespace")),null!=g&&(t=this.addToHttpParams(t,g,"passwordId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}deletePasswordForLogin(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"login")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}deletePasswordForUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}deleteUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}findRichUsers(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"searchString"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}findRichUsersWithAttributes(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"searchString")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrsNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}findUsers(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"searchString"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/findUsers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}generateAccountForName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"namespace")),null!=u&&(i=this.addToHttpParams(i,u,"name"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getAllRichUsersWithAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"includedSpecificUsers"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getAssignedRichResourcesForUser(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getGroupsForFacilityWhereUserIsActive(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getGroupsForResourceWhereUserIsActive(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getGroupsInVoWhereUserIsAdmin(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getGroupsWhereUserIsAdmin(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getPendingPreferredEmailChanges(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getRichUserExtSources(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getRichUserWithAttributes(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getRichUsersByIds(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getRichUsersWithAttributesByIds(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getRichUsersWithoutVoWithAttributes(r,u=!1,g="body",v=!1,h){let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"attrsNames[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getSpecificUsersByUser(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getSponsorsForMember(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getSponsorsForMemberByVoAndLogin(r,u,g,v,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==u)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==g)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"extSourceName")),null!=g&&(n=this.addToHttpParams(n,g,"extLogin")),v&&v.forEach($=>{n=this.addToHttpParams(n,$,"attrNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(h){let $=new URL(S),ht=$.pathname.split("/");ht[1]="non",$.pathname=ht.join("/"),S=$.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getUserByExtSourceNameAndExtLogin(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==u)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"extLogin")),null!=u&&(i=this.addToHttpParams(i,u,"extSourceName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getUserById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getUserById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUserById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getUserExtSourceByExtLoginAndExtSourceName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==u)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"extSourceName")),null!=u&&(i=this.addToHttpParams(i,u,"extSourceLogin"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getUserExtSourceById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userExtSource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getUserExtSourceByUniqueAttributeValueAndAttributeId(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"attributeId")),null!=u&&(i=this.addToHttpParams(i,u,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getUserExtSourceByUniqueAttributeValueAndAttributeName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"attributeName")),null!=u&&(i=this.addToHttpParams(i,u,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getUserExtSources(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getUserExtSourcesByIds(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getUsers(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/usersManager/getUsers`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getUsersByIds(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getUsersBySpecificUser(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"specificUser"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getUsersPage(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}getVosWhereUserIsAdmin(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getVosWhereUserIsMember(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}isLoginAvailable(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==u)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"loginNamespace")),null!=u&&(i=this.addToHttpParams(i,u,"login"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}loginExist(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeSpecificUserOwner(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==u)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"specificUser"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeUserExtSource(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==u)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"userExtSource")),null!=g&&(t=this.addToHttpParams(t,g,"force"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeUserExtSources(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==u)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"userExtSources")}),null!=g&&(t=this.addToHttpParams(t,g,"force"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}requestPreferredEmailChange(r,u,g,v,h,a,i=!1,t="body",n=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==u)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,r,"user")),null!=u&&(s=this.addToHttpParams(s,u,"email")),null!=g&&(s=this.addToHttpParams(s,g,"lang")),null!=v&&(s=this.addToHttpParams(s,v,"linkPath")),null!=h&&(s=this.addToHttpParams(s,h,"customUrl")),null!=a&&(s=this.addToHttpParams(s,a,"idpFilter"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=o&&o.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let S=o&&o.context;void 0===S&&(S=new e.qT);let $="json";c&&($=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let ht=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(i){let ze=new URL(ht),et=ze.pathname.split("/");et[1]="non",ze.pathname=et.join("/"),ht=ze.toString()}return this.httpClient.post(ht,null,{context:S,params:s,responseType:$,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:n})}reservePasswordForLogin(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}reservePasswordForUser(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}reserveRandomPassword(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}setLogin(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==u)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==g)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"login")),null!=g&&(t=this.addToHttpParams(t,g,"namespace"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}updateUser(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/updateUser`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}updateUserExtSourceLastAccess(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userExtSource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}validatePasswordForLogin(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"login")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}validatePasswordForUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}validatePreferredEmailChangeWithToken(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==u)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"token")),null!=u&&(i=this.addToHttpParams(i,u,"u"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),q=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}getAppsConfig(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getGuiConfiguration(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getNewGuiAlert(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getPerunRPCVersion(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getPerunStatistics(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getPerunStatus(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getPerunSystemTimeInMillis(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),pe=(()=>{class Ce{constructor(r,u,g){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,g&&(this.configuration=g),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,g){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,g):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,g){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(v=>r=this.addToHttpParamsRecursive(r,v,g));else if(u instanceof Date){if(null==g)throw Error("key may not be null if value is Date");r=r.append(g,u.toISOString().substr(0,10))}else Object.keys(u).forEach(v=>r=this.addToHttpParamsRecursive(r,u[v],null!=g?`${g}.${v}`:v));else{if(null==g)throw Error("key may not be null if value is not object or array");r=r.append(g,u)}return r}addMemberVo(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==u)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addSponsorRoleToGroup(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addSponsorRoleToUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addVoAdminGroup(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}addVoAdminUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}createVoWithName(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==u)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"name")),null!=u&&(i=this.addToHttpParams(i,u,"shortName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}createVoWithVo(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/createVo/withVo`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}deleteVo(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}findCandidates(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"id")),null!=u&&(t=this.addToHttpParams(t,u,"searchString")),null!=g&&(t=this.addToHttpParams(t,g,"maxNumOfResults"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/findCandidates`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}findCandidatesForGroup(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"searchString"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getAllVos(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/vosManager/getAllVos`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getCompleteCandidatesForGroup(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==g)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")}),null!=g&&(t=this.addToHttpParams(t,g,"searchString"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getCompleteCandidatesForVo(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==g)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")}),null!=g&&(t=this.addToHttpParams(t,g,"searchString"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getEnrichedBansForVo(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getEnrichedBansForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getEnrichedBansForVo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getEnrichedVoBansForUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnrichedVoBansForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getEnrichedBansForUser`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getEnrichedVoById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getMemberVos(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getMemberVos`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getMyEnrichedVos(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/vosManager/getEnrichedVos`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getMyVos(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/vosManager/getVos`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}getParentVos(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getParentVos`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getRichAdminsForVo(r,u,g,v,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==u)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==g)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==v)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==h)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo")),null!=u&&(o=this.addToHttpParams(o,u,"role")),g&&g.forEach(ht=>{o=this.addToHttpParams(o,ht,"specificAttributes")}),null!=v&&(o=this.addToHttpParams(o,v,"allUserAttributes")),null!=h&&(o=this.addToHttpParams(o,h,"onlyDirectAdmins"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let $=`${this.configuration.basePath}/json/vosManager/getRichAdmins`;if(a){let ht=new URL($),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),$=ht.toString()}return this.httpClient.get($,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}getVoAdminGroups(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==u)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"role"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getAdminGroups`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}getVoAdminUsers(r,u,g,v=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==u)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==g)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"role")),null!=g&&(t=this.addToHttpParams(t,g,"onlyDirectAdmins"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/getAdmins`;if(v){let S=new URL(c),$=S.pathname.split("/");$[1]="non",S.pathname=$.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getVoBanById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getBanById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getVoBanForMember(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getBanForMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getVoBansForVo(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getBansForVo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getVoById(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getVoById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getVoById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getVoByShortName(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"shortName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getVoByShortName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getVoMembersCountsByStatus(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getVosByIds(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getVosByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}getVosCount(r=!1,u="body",g=!1,v){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=v&&v.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=v&&v.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/vosManager/getVosCount`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:g})}removeMemberVo(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==u)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeSponsorRoleFromGroup(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeSponsorRoleFromUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeVoAdminGroup(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeVoAdminUser(r,u,g=!1,v="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`;if(g){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:v,reportProgress:h})}removeVoBan(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}removeVoBanForMember(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:g,reportProgress:v})}setVoBan(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/setBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}updateVo(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/updateVo`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}updateVoBan(r,u=!1,g="body",v=!1,h){if(null==r)throw new Error("Required parameter InputUpdateBan1 was null or undefined when calling updateVoBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/updateBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:g,reportProgress:v})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})();const Ke={ID:"ID",DATE_CREATED:"DATE_CREATED",TYPE:"TYPE",STATE:"STATE",SUBMITTER:"SUBMITTER",GROUP_NAME:"GROUP_NAME",MODIFIED_BY:"MODIFIED_BY"},Ue={WRITE:"WRITE",READ:"READ"},Ae={HTML_COMMENT:"HTML_COMMENT",SUBMIT_BUTTON:"SUBMIT_BUTTON",AUTO_SUBMIT_BUTTON:"AUTO_SUBMIT_BUTTON",PASSWORD:"PASSWORD",VALIDATED_EMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDED_GROUP_APPLICATION:"EMBEDDED_GROUP_APPLICATION",LIST_INPUT_BOX:"LIST_INPUT_BOX",MAP_INPUT_BOX:"MAP_INPUT_BOX"};let Ne=(()=>{class Ce{constructor(r,u){if(r)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!u)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(r){return{ngModule:Ce,providers:[{provide:b,useFactory:r}]}}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(Ce,12),C.LFG(e.eN,8))},Ce.\u0275mod=C.oAB({type:Ce}),Ce.\u0275inj=C.cJS({}),Ce})()},19516:($e,he,p)=>{"use strict";p.d(he,{m2:()=>_e.m,yo:()=>Oe.y,bY:()=>se.b,i2:()=>Be.i,r5:()=>b.r,GY:()=>E.G,d4:()=>C,E7:()=>z.E,dp:()=>M.d});var e=p(36895),A=p(94650);let C=(()=>{class V{}return V.\u0275fac=function(q){return new(q||V)},V.\u0275mod=A.oAB({type:V}),V.\u0275inj=A.cJS({imports:[e.ez]}),V})();var M=p(31359),b=(p(34447),p(82895)),se=(p(69773),p(12856),p(20919),p(5865),p(38993),p(86349),p(53561),p(16119),p(7598),p(9954),p(4765)),Oe=p(22908),_e=p(10293),Be=p(23123),E=p(56575),z=p(48524);p(77749)},77749:($e,he,p)=>{"use strict";p.d(he,{K:()=>C});var e=p(81591),A=p(94650);let C=(()=>{class M{constructor(b){this.translate=b}transform(b){switch(b){case"createdAt":return this.translate.instant("APPLICATIONS_LIST.CREATED_DATE");case"createdBy":return this.translate.instant("APPLICATIONS_LIST.CREATED_BY");case"type":return this.translate.instant("APPLICATIONS_LIST.TYPE");case"state":return this.translate.instant("APPLICATIONS_LIST.STATE");case"modifiedBy":return this.translate.instant("APPLICATIONS_LIST.MODIFIED_BY");default:return b}}}return M.\u0275fac=function(b){return new(b||M)(A.Y36(e.Te,16))},M.\u0275pipe=A.Yjl({name:"applicationColumnSelectLabel",type:M,pure:!0}),M})()},8231:($e,he,p)=>{"use strict";p.d(he,{G:()=>A});var e=p(94650);let A=(()=>{class C{transform(f){const b="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return f?b+"DESELECT_ROW":b+"SELECT_ROW"}}return C.\u0275fac=function(f){return new(f||C)},C.\u0275pipe=e.Yjl({name:"checkboxLabel",type:C,pure:!0}),C})()},10293:($e,he,p)=>{"use strict";p.d(he,{m:()=>A});var e=p(94650);let A=(()=>{class C{transform(f,b){if(!b||0===b.length)return;const D=b.filter(T=>T.userId===f.id);return 0!==D.length?D.reduce((T,R)=>T.id>R.id?T:R).status:void 0}}return C.\u0275fac=function(f){return new(f||C)},C.\u0275pipe=e.Yjl({name:"consentStatusIcon",type:C,pure:!0}),C})()},34447:($e,he,p)=>{"use strict";p.d(he,{a:()=>M});var e=p(81591),A=p(94650),C=p(89383);let M=(()=>{class f{constructor(D,T){this.translate=D,this.storage=T}transform(D,T="en"){const R=this.storage.getProperty("custom_labels");if(R)for(const B of R)if(B.label===D)return B[T];return D}}return f.\u0275fac=function(D){return new(D||f)(A.Y36(C.sK,16),A.Y36(e.d6,16))},f.\u0275pipe=A.Yjl({name:"customTranslate",type:f,pure:!0}),f})()},22908:($e,he,p)=>{"use strict";p.d(he,{y:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b,D,T,R){return D&&"members"===b.name||T&&(R.has(b.id)||(0,e.bx)(b))}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"disableGroupSelect",type:M,pure:!0}),M})()},4765:($e,he,p)=>{"use strict";p.d(he,{b:()=>A});var e=p(94650);let A=(()=>{class C{transform(f){return f.namespace.includes("virt")||f.namespace.includes("core")||f.namespace.includes("entityless")}}return C.\u0275fac=function(f){return new(f||C)},C.\u0275pipe=e.Yjl({name:"disableUniqueAttribute",type:C,pure:!0}),C})()},23123:($e,he,p)=>{"use strict";p.d(he,{i:()=>C});var e=p(81591),A=p(94650);let C=(()=>{class M{constructor(b){this.translate=b,this.prefix="ROLES."}transform(b){return"displayName"in b&&b.displayName?b.displayName:this.translate.instant(this.prefix+b.roleName)}}return M.\u0275fac=function(b){return new(b||M)(A.Y36(e.Te,16))},M.\u0275pipe=A.Yjl({name:"displayedRole",type:M,pure:!0}),M})()},82895:($e,he,p)=>{"use strict";p.d(he,{r:()=>A});var e=p(94650);let A=(()=>{class C{transform(f,b){return b?`/organizations/${f.voId}/resources/${f.id}`:`/facilities/${f.facilityId}/resources/${f.id}`}}return C.\u0275fac=function(f){return new(f||C)},C.\u0275pipe=e.Yjl({name:"getResourceRoute",type:C,pure:!0}),C})()},82514:($e,he,p)=>{"use strict";p.d(he,{F:()=>A});var e=p(94650);let A=(()=>{class C{transform(f,b,D){let T;switch(f){case"VALID":T="green";break;case"INVALID":T="red";break;default:T=""}return`${T}${D||b?" cursor-default":""}`}}return C.\u0275fac=function(f){return new(f||C)},C.\u0275pipe=e.Yjl({name:"groupStatusIconColor",type:C,pure:!0}),C})()},28764:($e,he,p)=>{"use strict";p.d(he,{F:()=>M});var e=p(9244),A=p(64080),C=p(94650);let M=(()=>{class f{transform(D){if(null==D||null==D.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const T=(0,e.IL)(D.attributes,A.r.GROUP_SYNC_ENABLED),R=(0,e.IL)(D.attributes,A.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===T&&null===R)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const B=R.value;if("true"===T.value){const H=(0,e.IL)(D.attributes,A.r.GROUP_LAST_SYNC_STATE),O=(0,e.IL)(D.attributes,A.r.GROUP_LAST_SYNC_TIMESTAMP),J=H.value,ne=O.value;return null!=J&&J.trim().length>0?"red":null!==ne&&ne.trim().length>0?"green":""}if(B){const H=(0,e.IL)(D.attributes,A.r.GROUP_LAST_STRUCTURE_SYNC_STATE),O=(0,e.IL)(D.attributes,A.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),J=H.value,ne=O.value;return null!=J&&J.trim().length>0?"red":null!==ne&&ne.trim().length>0?"green":""}return""}}return f.\u0275fac=function(D){return new(D||f)},f.\u0275pipe=C.Yjl({name:"groupSyncIconColor",type:f,pure:!0}),f})()},29218:($e,he,p)=>{"use strict";p.d(he,{J:()=>M});var e=p(64080),A=p(9244),C=p(94650);let M=(()=>{class f{transform(D){if(null==D||null==D.attributes)return"";const T=(0,A.IL)(D.attributes,e.r.GROUP_SYNC_ENABLED),R=(0,A.IL)(D.attributes,e.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===T&&null===R)return"";const B=R.value;if("true"===T.value){const H=(0,A.IL)(D.attributes,e.r.GROUP_LAST_SYNC_STATE),O=(0,A.IL)(D.attributes,e.r.GROUP_LAST_SYNC_TIMESTAMP),J=H.value,ne=O.value;return null!=J&&J.trim().length>0?"sync_problem":(null!==ne&&ne.trim(),"sync")}if(B){const H=(0,A.IL)(D.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_STATE),O=(0,A.IL)(D.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),J=H.value,ne=O.value;return null!=J&&J.trim().length>0?"sync_problem":(null!==ne&&ne.trim(),"sync")}return"sync_disabled"}}return f.\u0275fac=function(D){return new(D||f)},f.\u0275pipe=C.Yjl({name:"groupSyncIcon",type:f,pure:!0}),f})()},45942:($e,he,p)=>{"use strict";p.d(he,{r:()=>M});var e=p(9244),A=p(64080),C=p(94650);let M=(()=>{class f{transform(D){if(null==D||null==D.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const T=(0,e.IL)(D.attributes,A.r.GROUP_SYNC_ENABLED),R=(0,e.IL)(D.attributes,A.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===T&&null===R)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const B=R.value;if("true"===T.value){const H=(0,e.IL)(D.attributes,A.r.GROUP_LAST_SYNC_STATE),O=(0,e.IL)(D.attributes,A.r.GROUP_LAST_SYNC_TIMESTAMP),J=H.value,ne=O.value;return null!=J&&J.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==ne&&ne.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(B){const H=(0,e.IL)(D.attributes,A.r.GROUP_LAST_STRUCTURE_SYNC_STATE),O=(0,e.IL)(D.attributes,A.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),J=H.value,ne=O.value;return null!=J&&J.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==ne&&ne.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return f.\u0275fac=function(D){return new(D||f)},f.\u0275pipe=C.Yjl({name:"groupSyncToolTip",type:f,pure:!0}),f})()},9185:($e,he,p)=>{"use strict";p.d(he,{I:()=>M});var e=p(81591),A=p(91479),C=p(94650);let M=(()=>{class f{constructor(D){this.tableCheckboxService=D}transform(D,T,R){return 0!==T&&((0,e.uI)(D)?T===D.getData().length:(0,A.o)(D)?this.tableCheckboxService.isAllSelectedPaginated(D,T,R):this.tableCheckboxService.isAllSelected(T,D,R))}}return f.\u0275fac=function(D){return new(D||f)(C.Y36(e.UA,16))},f.\u0275pipe=C.Yjl({name:"isAllSelected",type:f,pure:!0}),f})()},56575:($e,he,p)=>{"use strict";p.d(he,{G:()=>C});var e=p(81591),A=p(94650);let C=(()=>{class M{constructor(b){this.authResolver=b}transform(b,D){return b.filter(T=>this.canSetRoleForEntity(T,D))}canSetRoleForEntity(b,D){const T=new Map;return this.authResolver.setRolesAuthorization([D],b,T),T.get(D.roleName).manageAuth}}return M.\u0275fac=function(b){return new(b||M)(A.Y36(e.x4,16))},M.\u0275pipe=A.Yjl({name:"manageableEntities",type:M,pure:!0}),M})()},14849:($e,he,p)=>{"use strict";p.d(he,{r:()=>A});var e=p(94650);let A=(()=>{class C{transform(f){const b="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return f?b+"DESELECT_ALL":b+"SELECT_ALL"}}return C.\u0275fac=function(f){return new(f||C)},C.\u0275pipe=e.Yjl({name:"masterCheckboxLabel",type:C,pure:!0}),C})()},86349:($e,he,p)=>{"use strict";p.d(he,{A:()=>M});var e=p(9244),A=p(94650),C=p(89383);let M=(()=>{class f{constructor(D){this.translate=D}transform(D,T){const R=(0,e.zr)(D);return"INDIRECT"===R?this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT"):T||"UNALTERABLE"!==R?"":this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_UNALTERABLE")}}return f.\u0275fac=function(D){return new(D||f)(A.Y36(C.sK,16))},f.\u0275pipe=A.Yjl({name:"memberCheckboxLabel",type:f,pure:!0}),f})()},20919:($e,he,p)=>{"use strict";p.d(he,{D:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.g$)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"memberEmail",type:M,pure:!0}),M})()},5865:($e,he,p)=>{"use strict";p.d(he,{p:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.lt)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"memberLogins",type:M,pure:!0}),M})()},96974:($e,he,p)=>{"use strict";p.d(he,{M:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.Gw)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"memberOrganization",type:M,pure:!0}),M})()},38993:($e,he,p)=>{"use strict";p.d(he,{n:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b,D){const T=(0,e.zr)(b);return"INDIRECT"===T||!D&&"UNALTERABLE"===T}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"memberStatusDisabled",type:M,pure:!0}),M})()},69773:($e,he,p)=>{"use strict";p.d(he,{u:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){const D=(0,e.zr)(b);let T;switch(b.status){case"VALID":T="green";break;case"INVALID":T="red";break;case"DISABLED":T="black";break;default:return""}return`${T}${"UNALTERABLE"===D?" cursor-default":""}`}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"memberStatusIconColor",type:M,pure:!0}),M})()},21757:($e,he,p)=>{"use strict";p.d(he,{f:()=>A});var e=p(94650);let A=(()=>{class C{transform(f){switch(f){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return f}}}return C.\u0275fac=function(f){return new(f||C)},C.\u0275pipe=e.Yjl({name:"memberStatusIcon",type:C,pure:!0}),C})()},12856:($e,he,p)=>{"use strict";p.d(he,{i:()=>M});var e=p(9244),A=p(94650),C=p(89383);let M=(()=>{class f{constructor(D){this.translate=D}transform(D,T,R){let B=null,w=null;D.memberAttributes&&(B=D.memberAttributes.find(J=>"membershipExpiration"===J.friendlyName),w=D.memberAttributes.find(J=>"groupMembershipExpiration"===J.friendlyName));let H="";H=T?`\n Group status: ${(0,e.Oe)(D.groupStatus)}\n Expiration: ${w?.value??"never"}`:D.memberAttributes?`Status: ${(0,e.Oe)(D.status,D.groupStatus)}\n Vo status: ${(0,e.Oe)(D.status)}\n Expiration: ${B?.value??"never"}`:`Status: ${(0,e.Oe)(D.status,D.groupStatus)}\n Vo status: ${(0,e.Oe)(D.status)}`;const O=(0,e.zr)(D);return R?H=`${H}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_MEMBERS_GROUP")}`:"INDIRECT"===O&&T?H=`${H}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_GROUP_INDIRECT")}`:!T&&"UNALTERABLE"===O&&(H=`${H}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_INDIRECT")}`),H}}return f.\u0275fac=function(D){return new(D||f)(A.Y36(C.sK,16))},f.\u0275pipe=A.Yjl({name:"memberStatusTooltip",type:f,pure:!0}),f})()},20551:($e,he,p)=>{"use strict";p.d(he,{l:()=>A});var e=p(94650);let A=(()=>{class C{transform(f){return f.replace("VALID","ACTIVE")}}return C.\u0275fac=function(f){return new(f||C)},C.\u0275pipe=e.Yjl({name:"memberStatus",type:C,pure:!0}),C})()},64597:($e,he,p)=>{"use strict";p.d(he,{R:()=>A});var e=p(94650);let A=(()=>{class C{transform(f){return f.replace(/\s/g,"-").replace(/\./g,"-").toLowerCase()}}return C.\u0275fac=function(f){return new(f||C)},C.\u0275pipe=e.Yjl({name:"multiWordDataCy",type:C,pure:!0}),C})()},62383:($e,he,p)=>{"use strict";p.d(he,{M:()=>C});var e=p(36895),A=p(94650);let C=(()=>{class M{transform(b,D){return"voRules"===b?"Vo rules":"groupRules"===b?"Group rules":b&&"never"!==b.toLowerCase()?(0,e.p6)(b.replace(" ","T"),"d.M.yyyy "+(D?"H:mm:ss":""),"en"):"never"}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"parseDate",type:M,pure:!0}),M})()},30076:($e,he,p)=>{"use strict";p.d(he,{A:()=>C});var e=p(94650),A=p(11481);let C=(()=>{class M{constructor(b){this.sanitizer=b}transform(b){return this.sanitizer.bypassSecurityTrustHtml(b)}}return M.\u0275fac=function(b){return new(b||M)(e.Y36(A.H7,16))},M.\u0275pipe=e.Yjl({name:"sanitizeHtml",type:M,pure:!0}),M})()},53561:($e,he,p)=>{"use strict";p.d(he,{J:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.te)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"technicalOwners",type:M,pure:!0}),M})()},48524:($e,he,p)=>{"use strict";p.d(he,{E:()=>A});var e=p(94650);let A=(()=>{class C{transform(f){return f.map(b=>({facility:b}))}}return C.\u0275fac=function(f){return new(f||C)},C.\u0275pipe=e.Yjl({name:"toEnrichedFacility",type:C,pure:!0}),C})()},49206:($e,he,p)=>{"use strict";p.d(he,{r:()=>A});var e=p(94650);let A=(()=>{class C{transform(f,b){return"valid"!==f.toLowerCase()||b&&"valid"!==f.toLowerCase()?f:"ACTIVE"}}return C.\u0275fac=function(f){return new(f||C)},C.\u0275pipe=e.Yjl({name:"transformMemberStatus",type:C,pure:!0}),C})()},16119:($e,he,p)=>{"use strict";p.d(he,{S:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.kN)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"userEmail",type:M,pure:!0}),M})()},31359:($e,he,p)=>{"use strict";p.d(he,{d:()=>A});var e=p(94650);let A=(()=>{class C{transform(f){return[f.titleBefore,f.firstName,f.middleName,f.lastName,f.titleAfter].join(" ")}}return C.\u0275fac=function(f){return new(f||C)},C.\u0275pipe=e.Yjl({name:"userFullName",type:C,pure:!0}),C})()},7598:($e,he,p)=>{"use strict";p.d(he,{g:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.$0)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"userLogins",type:M,pure:!0}),M})()},9954:($e,he,p)=>{"use strict";p.d(he,{Z:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.OV)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"userVo",type:M,pure:!0}),M})()},81591:($e,he,p)=>{"use strict";p.d(he,{yC:()=>N,F5:()=>ce,sM:()=>W,eE:()=>v,e8:()=>O,EB:()=>pe,Be:()=>Ne,Hy:()=>vt,ly:()=>Me,fb:()=>Ce,Mf:()=>i,K1:()=>a,x4:()=>b,v0:()=>V,hy:()=>F,SZ:()=>be,V6:()=>k,jq:()=>ge,Te:()=>C,BN:()=>ee,Nj:()=>t,Ip:()=>r,HV:()=>Ee,d6:()=>B,UA:()=>ue,uI:()=>tt});var e=p(89383),A=p(94650);let C=(()=>{class n extends e.sK{instant(s,l){return String(super.instant(s,l))}}return n.\u0275fac=function(){let o;return function(l){return(o||(o=A.n5z(n)))(l||n)}}(),n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var M=p(61744),f=p(45323);let b=(()=>{class n{constructor(s){this.authzSevice=s,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(l,d)=>l.roleName>d.roleName?1:l.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(d=>{this.allRolesManagementRules=d,s()},d=>l(d))})}assignAvailableRoles(s,l){this.allRolesManagementRules.forEach(d=>{d.primaryObject===l&&s.push(d)}),s.sort(this.sortRoles),"Vo"===l&&this.voCustomSort(s)}isManagerPagePrivileged(s){const l=[];let d=s.beanName;d.startsWith("Rich")&&(d=d.substring(4)),this.assignAvailableRoles(l,d);const c=new Map;this.setRolesAuthorization(l,s,c);for(const S of c.values())if(S.readAuth||S.manageAuth)return!0;return!1}setRolesAuthorization(s,l,d){for(const c of s){let S=[],$=[],ht=[];for(const Ie of this.allRolesManagementRules)if(Ie.roleName===c.roleName){S=S.concat(Ie.privilegedRolesToRead),$=$.concat(Ie.privilegedRolesToManage);for(const De of Object.keys(Ie.entitiesToManage))ht="User"===De?[De].concat(ht):ht.concat(De);break}const ze=this.fetchAllRelatedObjects([l]),et=this.resolveAuthorization(S,ze),te=this.resolveAuthorization($,ze);d.set(c.roleName,{readAuth:et,manageAuth:te,modes:ht})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(s){for(const l of this.allRolesManagementRules)if(l.roleName===s)return l.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(s){return this.allRolesManagementRules.find(l=>l.roleName===s)}getAssignableRoleRules(s){const l=[],d=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(c=>{!d.includes(c.roleName)&&this.canManage(c)&&this.ruleHasMode(c,s)&&l.push(c)}),l.sort(this.sortRoles)}ruleHasMode(s,l){return Object.keys(s.entitiesToManage).map(d=>d.toUpperCase()).includes(l)}canManage(s){return s.privilegedRolesToManage.some(l=>this.principalRoles.has(Object.keys(l)[0]))}resolveAuthorization(s,l){for(const d of s){let c=!0;for(const S of Object.keys(d)){const $=d[S];if(null===$)this.principalRoles.has(S)||(c=!1);else if(l[$]){for(const ht of l[$])if(!this.principalHasRole(S,$,ht)){c=!1;break}}else c=!1;if(!c)break}if(c)return!0}return!1}getPerunPolicy(s){for(const l of this.perunPolicies)if(l.policyName===s)return l;return null}fetchAllRelatedObjects(s){const l={};for(const d of s){let c=d.beanName;switch(d.beanName.startsWith("Rich")&&(c=d.beanName.substring(4)),l[c]?l[c].push(d.id):l[c]=[d.id],c){case"Member":l.User?l.User.push(d.userId):l.User=[d.userId],l.Vo?l.Vo.push(d.voId):l.Vo=[d.voId];break;case"Group":case"ResourceTag":l.Vo?l.Vo.push(d.voId):l.Vo=[d.voId];break;case"Resource":l.Facility?l.Facility.push(d.facilityId):l.Facility=[d.facilityId],l.Vo?l.Vo.push(d.voId):l.Vo=[d.voId]}}return l}fetchPolicyWithAllIncludedPolicies(s){const l=new Map;let d=[];for(d.push(s);0!==d.length;){const S=d.shift();if(l.has(S))continue;const $=this.getPerunPolicy(S);if(!$)return[];l.set(S,$),d=d.concat($.includePolicies)}const c=[];for(const S of l.values())c.push(S);return c}voCustomSort(s){for(let l=0;l{class n{constructor(){this.branding=""}setInstanceConfig(s){this.instanceConfig=s}setDefaultConfig(s){this.defaultConfig=s}getAppsConfig(){return this.appsConfig}setAppsConfig(s){this.appsConfig=s}setPerunPrincipal(s){this.principal=s}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(s){this.initialPageId=s}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(s){this.branding=s}getProperty(s){if(!this.instanceConfig||!this.defaultConfig)return null;const l=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],d=this.defaultConfig[s];let c=null;for(const S of l)S&&null==c&&(c=S[s]);return null===c?d:this.addMissingValuesToProperty(c,d)}addMissingValuesToProperty(s,l){if(null==s)return l;if("object"==typeof s&&!Array.isArray(s))for(const d of Object.keys(l))s[d]=this.addMissingValuesToProperty(s[d],l[d]);return s}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var w=p(65412),H=p(51214);let O=(()=>{class n{constructor(s,l,d,c,S){this.injector=s,this.store=l,this.dialog=d,this.route=c,this.oauthService=S,setTimeout(()=>{this.router=this.injector.get(T.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe($=>{$.idpFilter&&(this.filterShortname=String($.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const s=this.setIdpFilter(),c=.5+.25*Math.random(),S=s?{acr_values:s}:{},$=this.store.getProperty("oidc_client");if($.oauth_scopes.split(" ").includes("offline_access")&&$.oauth_offline_access_consent_prompt&&(S.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(S.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(S.prompt?S.prompt+=" login":S.prompt="login",S.max_age="0"),"Linker"===this.store.getProperty("application")){S.prompt?S.prompt+=" login":S.prompt="login";const ht=(0,R.O5)("idphint",location.search.substring(1));ht&&(S.idphint=ht)}return{requestAccessToken:!0,issuer:$.oauth_authority,clientId:$.oauth_client_id,redirectUri:$.oauth_redirect_uri,postLogoutRedirectUri:$.oauth_post_logout_redirect_uri,responseType:$.oauth_response_type,scope:$.oauth_scopes,clockSkewInSec:1,timeoutFactor:c,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:S}}setIdpFilter(){const s=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const l=this.store.getProperty("oidc_client").filters;if(!l)return null;let d=null;return s.forEach(c=>{const S=c.split("=");"idpFilter"===S[0]&&l[S[1]]&&(this.filterShortname=S[1],d=l[S[1]])}),l.default&&!d?(this.filterShortname="default",l.default):d}startIdpFilterKeeper(){this.router.events.pipe((0,D.h)(s=>s instanceof T.m2)).subscribe(()=>{const s={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===s.idpFilter?{}:s,queryParamsHandling:"merge",replaceUrl:!0})})}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(A.zs3),A.LFG(B),A.LFG(w.uw),A.LFG(T.gz),A.LFG(H.Ct))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),J=(()=>{class n{constructor(s){this.dialogRef=s}}return n.\u0275fac=function(s){return new(s||n)(A.Y36(w.so))},n.\u0275cmp=A.Xpm({type:n,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(s,l){1&s&&(A.TgZ(0,"h2",0),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&s&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[w.xY,e.X$]}),n})();var ne=p(83905),G=p(69751),se=p(4859),Oe=p(98380);let _e=(()=>{class n{constructor(s,l){this.dialogRef=s,this.data=l}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(s){return new(s||n)(A.Y36(w.so),A.Y36(w.WI))},n.\u0275cmp=A.Xpm({type:n,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(s,l){1&s&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),A._uU(5),A.ALo(6,"translate"),A.ALo(7,"translate"),A.qZA()(),A.TgZ(8,"div",3)(9,"button",4),A.NdJ("click",function(){return l.cancel()}),A._uU(10),A.ALo(11,"translate"),A.qZA(),A.TgZ(12,"button",5),A.NdJ("click",function(){return l.submit()}),A._uU(13),A.ALo(14,"translate"),A.qZA()()),2&s&&(A.xp6(1),A.Oqu(A.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),A.xp6(4),A.hij(" ",l.data.mfaRoleException?A.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):A.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),A.xp6(4),A.Q6J("hidden",l.data.mfaRoleException),A.xp6(1),A.hij(" ",A.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),A.xp6(2),A.Tol(l.data.mfaRoleException?"ml-auto":"ml-2"),A.xp6(1),A.hij(" ",A.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[w.uh,w.xY,w.H8,se.lW,Oe.w,e.X$]}),n})();var Be=p(97392);let E=(()=>{class n{}return n.\u0275fac=function(s){return new(s||n)},n.\u0275cmp=A.Xpm({type:n,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(s,l){1&s&&(A.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),A._uU(3," info "),A.qZA(),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div"),A._uU(7),A.ALo(8,"translate"),A.qZA()()),2&s&&(A.xp6(4),A.hij(" ",A.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),A.xp6(3),A.hij(" ",A.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Be.Hw,e.X$],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),n})(),z=(()=>{class n{constructor(s,l){this.data=s,this.dialogRef=l}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return n.\u0275fac=function(s){return new(s||n)(A.Y36(w.WI),A.Y36(w.so))},n.\u0275cmp=A.Xpm({type:n,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(s,l){1&s&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),A._uU(5),A.ALo(6,"translate"),A.qZA()(),A.TgZ(7,"div",3)(8,"button",4),A.NdJ("click",function(){return l.cancel()}),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"button",5),A.NdJ("click",function(){return l.submit()}),A._uU(12),A.ALo(13,"translate"),A.qZA()()),2&s&&(A.xp6(1),A.Oqu(A.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),A.xp6(4),A.hij(" ",A.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),A.xp6(4),A.hij(" ",A.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),A.xp6(3),A.hij(" ",A.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[w.uh,w.xY,w.H8,se.lW,Oe.w,e.X$]}),n})(),F=(()=>{class n{constructor(s,l,d,c){this.dialog=s,this.oauthService=l,this.authService=d,this.store=c}openMfaWindow(s){let l=null,d=null;const c=(0,R.kZ)();c.width="450px",c.data={mfaRoleException:s};const S=this.dialog.open(_e,c);let $=!1;if(S.afterClosed().subscribe(ht=>{if(ht){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),l=this.setupMfaWindow(),l){const ze=(0,R.kZ)();ze.width="450px",ze.panelClass="noBorderDialog",d=this.dialog.open(E,ze)}}else $=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const ht=(0,R.kZ)();ht.width="450px",ht.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(z,ht)}return new G.y(ht=>{const ze=setInterval(()=>l?.closed?(clearInterval(ze),d.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),ht.next(!0)):$?(clearInterval(ze),ht.next(!1)):void 0,1e3)})}catchNoMfaTokenError(s){"unmet_authentication_requirements"===s&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const s=location.pathname+location.search,c=window.top;return window.open(s,"_blank",`width=600,height=600,top=${c.outerHeight/2+c.screenY-300}, left=${c.outerWidth/2+c.screenX-300}`)}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(w.uw),A.LFG(H.Ct),A.LFG(O),A.LFG(B))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),V=(()=>{class n{constructor(s,l,d,c,S,$,ht,ze){this.authService=s,this.oauthService=l,this.storeService=d,this.authResolver=c,this.authzService=S,this.dialog=$,this.router=ht,this.mfaHandlerService=ze,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const s=location.pathname,l=location.search.substring(1);return"/api-callback"===s?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",l),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(s)?(sessionStorage.setItem("auth:redirect",s),sessionStorage.setItem("auth:queryParams",l),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return(0,ne.z)(this.authzService.getPerunPrincipal()).then(s=>{if(null===s.user){const l=(0,R.kZ)();this.dialog.open(J,l)}else this.storeService.setPerunPrincipal(s),this.authResolver.init(s)})}simpleLoadPrincipal(){return(0,ne.z)(this.authzService.getPerunPrincipal()).then(s=>{this.storeService.setPerunPrincipal(s)})}checkRouteGuard(){const s=localStorage.getItem("routeAuthGuard");s&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([s],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const s=location.pathname,l=location.search.substring(1);sessionStorage.setItem("auth:redirect",s),sessionStorage.setItem("auth:queryParams",l);const d={};return l.split("&").forEach(c=>{const S=c.split("=");d[S[0]]=S[1]}),this.router.navigate(["service-access"],{queryParams:d,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const s=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",s),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(s){this.loginScreenShown=s}isPotentiallyValidPath(s){const l=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===s)return!0;for(const d of l)if(s.startsWith(d))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,D.h)(s=>"token_expires"===s.type&&"access_token"===s.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const s=sessionStorage.getItem("mfa_route");if(s)return this.router.navigate([s],{replaceUrl:!0,queryParamsHandling:"merge"});let l=sessionStorage.getItem("auth:redirect");(!l||"/login"===l)&&(l="/"),sessionStorage.removeItem("auth:redirect");const d=sessionStorage.getItem("auth:queryParams");let c=[];d&&(c=d.split("&"));const S={};return c.forEach($=>{const ht=$.split("=");S[ht[0]]=ht[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([l],{queryParams:S,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(O),A.LFG(H.Ct),A.LFG(B),A.LFG(b),A.LFG(M.Ct),A.LFG(w.uw),A.LFG(T.F0),A.LFG(F))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var X=p(11481);let pe=(()=>{class n{constructor(s,l){this.matIconRegistry=s,this.domSanitizer=l,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(s=>{this.matIconRegistry.addSvgIcon(s.name,this.domSanitizer.bypassSecurityTrustResourceUrl(s.url))})}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(Be.jv),A.LFG(X.H7))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac}),n})();var le=p(80529),ye=p(62843),Ve=p(28746),ve=p(18505),Ke=p(70262),Ue=p(63900);let oe=(()=>{class n{constructor(s){this.dialogRef=s}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(s){return new(s||n)(A.Y36(w.so))},n.\u0275cmp=A.Xpm({type:n,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(s,l){1&s&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div",2)(7,"div",3)(8,"button",4),A.NdJ("click",function(){return l.close()}),A._uU(9),A.ALo(10,"translate"),A.qZA()()()),2&s&&(A.xp6(1),A.Oqu(A.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),A.xp6(3),A.hij(" ",A.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),A.xp6(5),A.hij(" ",A.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[w.uh,w.xY,w.H8,se.lW,e.X$]}),n})(),ce=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const s=this.handleNextError;return this.handleNextError=!0,s}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),k=(()=>{class n{constructor(s){this.translate=s,this.addNotification=new A.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(s,l=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===s.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===s.name?l:l+"\n"+s.name,s,s.message)}showRouteError(){this.showInstantError("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR",null,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC")}showError(s,l,d,c,S){this.addNotification.emit({type:"error",error:l,description:d,title:s,actionText:void 0===c&&void 0!==d?this.getDefaultActionMessage():c,delay:this.defaultErrorDelayMs,icon:"error_outline",action:S,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showInstantError(s,l,d,c,S){const $=d?this.translate.instant(d):null,ht=c?this.translate.instant(c):null;ht?this.showError(this.translate.instant(s),l,$,ht,S):this.showError(this.translate.instant(s),l,$)}showSuccess(s,l,d,c){this.addNotification.emit({type:"success",description:l,title:s,actionText:void 0===d&&void 0!==l?this.getDefaultActionMessage():d,delay:this.defaultSuccessDelayMs,icon:"done",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showInstantSuccess(s,l,d,c){const S=l?this.translate.instant(l):null,$=d?this.translate.instant(d):null;$?this.showSuccess(this.translate.instant(s),S,$,c):this.showSuccess(this.translate.instant(s),S)}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(C))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),N=(()=>{class n{constructor(s,l,d,c,S,$,ht,ze){this.authService=s,this.apiRequestConfiguration=l,this.notificator=d,this.store=c,this.dialog=S,this.initAuthService=$,this.mfaHandlerService=ht,this.oauthService=ze}intercept(s,l){const d=this.store.getProperty("api_url");if(s.url.includes("i18n")&&(s=s.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==d&&this.isCallToPerunApi(s.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const c=(0,R.kZ)();c.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(oe,c),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{(0,Ve.x)(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?s=s.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(s.url)&&(s=s.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(s,l)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(s,l){const d=this.apiRequestConfiguration.shouldHandleError(),c="POST"===s.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(s.url);return l.handle(s).pipe((0,ve.b)(S=>{S instanceof le.Zn&&c&&this.initAuthService.loadPrincipal()}),(0,Ke.K)(S=>{const $=S.error;if("MfaPrivilegeException"===$.type||"MfaRolePrivilegeException"===$.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===$.type).pipe((0,Ue.w)(ht=>ht?("MfaRolePrivilegeException"===$.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(s),l)):(0,ye._)(()=>$)));{this.handleInvalidAccessTokenError(S);const ht=this.formatErrors(S,s);return void 0===ht?(0,ye._)(()=>S):(d&&this.notificator.showRPCError(ht),(0,ye._)(()=>ht))}}))}replaceAuthenticationToken(s){return s.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(s){return s.startsWith(this.store.getProperty("api_url"))}formatErrors(s,l){let d;console.error(s);const c=s.error;if(c.errorId&&(d=c),void 0!==d)return d.urlWithParams=l.urlWithParams,d.call=l.url,d.payload=l.body,d}isNotConsolidatorOrLinker(){const s=this.store.getProperty("application");return!("Linker"===s||"Consolidator"===s)}handleInvalidAccessTokenError(s){if(401===s.status){if(!this.isLoggedIn()||"invalid_token"===s.error.error||null!=this.dialogRefSessionExpiration)return;const l=(0,R.kZ)();this.dialogRefSessionExpiration=this.dialog.open(oe,l),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(O),A.LFG(ce),A.LFG(k),A.LFG(B),A.LFG(w.uw),A.LFG(V),A.LFG(F),A.LFG(H.Ct))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac}),n})(),be=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(s){this.newNotificationsCount++,this.notificationData.push(s)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),W=(()=>{class n{constructor(s,l,d,c){this.http=s,this.notificator=l,this.authService=d,this.storeService=c}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let s=new le.WM;return s=s.set("Authorization",this.authService.getAuthorizationHeaderValue()),s}get(s,l=!0){const d=`${this.getApiUrl()}${s}`;return this.http.get(d,{headers:this.getHeaders()}).pipe((0,Ke.K)(c=>this.formatErrors(c,d,null,l)))}put(s,l={},d=!0){const c=`${this.getApiUrl()}${s}`,S=JSON.stringify(l);return this.http.put(c,S,{headers:this.getHeaders()}).pipe((0,Ke.K)($=>this.formatErrors($,c,S,d)))}post(s,l={},d=!0){const c=`${this.getApiUrl()}${s}`,S=JSON.stringify(l);let $=this.getHeaders();return $=$.set("Content-Type","application/json; charset=utf-8"),this.http.post(c,S,{headers:$}).pipe((0,Ke.K)(ht=>this.formatErrors(ht,c,S,d)))}delete(s,l=!0){const d=`${this.getApiUrl()}${s}`;return this.http.delete(d,{headers:this.getHeaders()}).pipe((0,Ke.K)(c=>this.formatErrors(c,d,null,l)))}formatErrors(s,l,d,c){const S=s.error;return S.call=l,S.payload=d,c&&this.notificator.showRPCError(s.error),(0,ye._)(S)}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(le.eN),A.LFG(k),A.LFG(O),A.LFG(B))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ue=(()=>{class n{isAllSelected(s,l,d=(()=>!0)){const c=l.paginator.pageSize??0,S=l.paginator.pageIndex??0,$=l.paginator.hasNextPage(),ht=l.data.length===l.filteredData.length;this.numCanBeSelected=0,this.pageStart=S*c,this.pageEnd=this.pageStart+c,this.numSelected=s,this.dataLength=ht?l.data.length:l.filteredData.length;const ze=l.sort;return $||(this.modulo=this.dataLength%c,this.pageEnd=0===this.modulo?this.pageStart+c:this.pageStart+this.modulo),this.pageIterator=0,(ze?l.sortData(l.filteredData,ze):l.filteredData).forEach(te=>{this.pageStart<=this.pageIterator&&this.pageIterator{ze?et(te)&&this.pageStart<=this.pageIterator&&this.pageIterator!0)){return l===s.data.reduce((c,S)=>c+Number(d(S)),0)}masterTogglePaginated(s,l,d,c=(()=>!0)){l.clear(),d&&s.data.forEach(S=>{c(S)&&l.select(S)})}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Me=(()=>{class n{constructor(s,l,d,c){this.membersService=s,this.usersService=l,this.auditMessagesManagerService=d,this.registrarService=c}getMembers(s,l,d,c,S,$,ht,ze,et,te){return this.membersService.getMembersPage({vo:s,attrNames:l,query:{pageSize:S,offset:c*S,order:d,sortColumn:$,statuses:ht,searchString:ze,groupId:et,groupStatuses:te}})}getUsers(s,l,d,c,S,$,ht,ze,et,te,Le,Ie,De){return this.usersService.getUsersPage({attrNames:s,query:{offset:c*d,pageSize:c,order:l,sortColumn:S,searchString:$,withoutVo:ht,facilityId:ze,voId:et,resourceId:te,serviceId:Le,onlyAllowed:Ie,consentStatuses:De}})}getAuditMessages(s,l,d,c){return this.auditMessagesManagerService.getMessagesPage({query:{offset:d*l,pageSize:d,order:s,selectedEvents:c}})}getApplications(s,l,d,c,S,$,ht,ze,et,te,Le,Ie,De){return this.registrarService.getApplicationsPage({vo:Le,query:{pageSize:s,offset:l*s,order:d,sortColumn:c,searchString:$,includeGroupApplications:S,getDetails:De,states:ht,dateFrom:ze,dateTo:et,userId:te,groupId:Ie}})}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(M.uq),A.LFG(M.Fv),A.LFG(M.jw),A.LFG(M.tk))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var ot=p(61135),je=p(39646),ut=p(4128);function tt(n){return"allObjectCount"in n}class vt{constructor(o,s){this.dynamicPaginatingService=o,this.authzService=s,this.allObjectCount=0,this.routeAuth=!0,this.step=1e4,this.dataSubject=new ot.X([]),this.loadingSubject=new ot.X(!1),this.loading$=this.loadingSubject.asObservable()}loadMembers(o,s,l,d,c,S,$,ht,ze,et){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const te=this.latestQueryTime;this.dynamicPaginatingService.getMembers(o,s,l,d,c,S,$,ht,ze,et).pipe((0,Ke.K)(()=>(0,je.of)([])),(0,Ve.x)(()=>this.loadingSubject.next(!1))).subscribe(Le=>{if(this.latestQueryTime<=te){const Ie=Le.data;null!==Ie&&0!==Ie.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:o},Ie[0]])),this.allObjectCount=Le.totalCount,this.dataSubject.next(Ie)}})}getAllMembers(o,s,l,d,c,S,$,ht,ze){return new G.y(et=>{const te=[];for(let Le=0;Le{const Ie=[].concat(...Le.map(De=>De.data));et.next(Ie),et.complete()},error:Le=>et.error(Le)})})}loadUsers(o,s,l,d,c,S,$,ht,ze,et,te,Le,Ie){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const De=this.latestQueryTime;this.dynamicPaginatingService.getUsers(o,d,l,s,c,S,$,ht,ze,et,te,Le,Ie).pipe((0,Ke.K)(()=>(0,je.of)([])),(0,Ve.x)(()=>this.loadingSubject.next(!1))).subscribe(xe=>{if(this.latestQueryTime<=De){const ie=xe.data;this.allObjectCount=xe.totalCount,this.dataSubject.next(ie)}})}getAllUsers(o,s,l,d,c,S,$,ht,ze,et,te,Le){return new G.y(Ie=>{const De=[];for(let xe=0;xe{const ie=[].concat(...xe.map(Te=>Te.data));Ie.next(ie),Ie.complete()},error:xe=>Ie.error(xe)})})}loadAuditMessages(o,s,l,d){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const c=this.latestQueryTime;this.dynamicPaginatingService.getAuditMessages(l,s,o,d).pipe((0,Ke.K)(()=>(0,je.of)([])),(0,Ve.x)(()=>this.loadingSubject.next(!1))).subscribe(S=>{if(this.latestQueryTime<=c){const $=S.data;this.allObjectCount=S.totalCount,this.dataSubject.next($)}})}getAllAuditMessages(o,s,l){return new G.y(d=>{const c=[];for(let S=0;S{const $=[].concat(...S.map(ht=>ht.data));d.next($),d.complete()},error:S=>d.error(S)})})}loadApplications(o,s,l,d,c,S,$,ht,ze,et,te,Le,Ie){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const De=this.latestQueryTime;this.dynamicPaginatingService.getApplications(o,s,l,d,S,c,$,ht,ze,et,Le,te,Ie??!1).pipe((0,Ke.K)(()=>(0,je.of)([])),(0,Ve.x)(()=>this.loadingSubject.next(!1))).subscribe(xe=>{if(this.latestQueryTime<=De){const ie=xe.data;if(null!==ie&&0!==ie.length){const Te=ie;this.routeAuth=Te[0].group?this.authzService.isAuthorized("getApplicationsForGroup_Group_List_policy",[Te[0].group]):this.authzService.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[Te[0].vo])}this.allObjectCount=xe.totalCount,this.dataSubject.next(ie)}})}getAllApplications(o,s,l,d,c,S,$,ht,ze,et,te,Le){return new G.y(Ie=>{const De=[];for(let xe=0;xe{const ie=[].concat(...xe.map(Te=>Te.data));Ie.next(ie),Ie.complete()},error:xe=>Ie.error(xe)})})}connect(){return this.dataSubject.asObservable()}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete()}getData(){return this.dataSubject.value}}let ee=(()=>{class n{constructor(s,l){this.route=s,this.store=l}getPreferredLanguage(s){const l=this.store.getProperty("supported_languages"),d=navigator.languages.map($=>$.split("-")[0]),c=location.search.substring(1).split("&");let S=null;for(const $ of c){const ht=$.split("=");"lang"===ht[0]&&(S=ht[1])}return S&&l.includes(S)?S:s&&l.includes(s)?s:d&&l.includes(d[0])?d[0]:"en"}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(T.gz),A.LFG(B))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var nt=p(15861);let Ae=(()=>{class n{generatePdf(s){var l=this;return(0,nt.Z)(function*(){yield l.loadPdfMake(),l.pdfMake.createPdf(s).open()})()}loadPdfMake(){var s=this;return(0,nt.Z)(function*(){if(!s.pdfMake){const l=yield p.e(641).then(p.t.bind(p,54641,23)),d=yield p.e(493).then(p.t.bind(p,58493,19));s.pdfMake=l.default,s.pdfMake.vfs=d.default.pdfMake.vfs}})()}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ee=(()=>{class n{constructor(s){this.pdfService=s}static generateTableForUser(s){const l=s.name.replace(";"," ").split(";")[0];return"OK"!==s.status?this.generateErrorRowForUser(l,s.status):n.generateRowForUser(l,s.login,s.password)}static generateErrorRowForUser(s,l){return{table:{heights:[30,1,1],widths:[249,249],body:[[{text:s,colSpan:1,alignment:"center",bold:!0,fontSize:12,margin:[20,25],color:"red"},{text:l,alignment:"center",bold:!0,color:"red"}]]}}}static generateRowForUser(s,l,d){return{table:{heights:[30,0],widths:[120,120,120,120],body:[[n.generateNameCell(s),{},n.getPasswordLabelCell(),n.generatePasswordCell(d)],[n.getLoginLabelCell(),n.generateLoginCell(l),{},{}]]}}}static generateNameCell(s){return{text:s,colSpan:2,alignment:"center",border:[!0,!0,!0,!1],bold:!0,fontSize:12,margin:[10,10]}}static generatePasswordCell(s){return{text:s??"N/A",border:[!1,!0,!0,!0],bold:!0,margin:[0,25],rowSpan:2,alignment:"left"}}static generateLoginCell(s){return{text:s??"N/A",border:[!1,!1,!0,!0],bold:!0}}static getLoginLabelCell(){return{text:"Login:",border:[!0,!1,!1,!0],alignment:"right",margin:[0,0,0,10]}}static getPasswordLabelCell(){return{text:"Password:",border:[!0,!0,!1,!0],alignment:"right",margin:[0,25],rowSpan:2}}generate(s){var l=this;return(0,nt.Z)(function*(){const d=[];for(const S of s)d.push(n.generateTableForUser(S));return l.pdfService.generatePdf({content:d})})()}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(Ae))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ge=(()=>{class n{constructor(s){this.storeService=s}static getBrandContainingDomain(s,l){for(const c of s)if(c.newApps.admin===l||c.newApps.profile===l||c.newApps.pwdReset===l||c.newApps.consolidator===l||c.newApps.linker===l)return c;return s.filter(c=>"default"===c.name)[0]||s[0]}getUrlForOtherApplication(s,l){const c=window.location.href.split("/"),S=c[0]+"//"+c[2],$=n.getBrandContainingDomain(this.storeService.getAppsConfig().brands,S);let ht;if($.newApps[s])ht=$.newApps[s],"pwdReset"===s&&(ht+=`?login-namespace=${l}`);else switch(ht=$.oldGuiDomain+"/fed",s){case"admin":ht+="/gui/";break;case"profile":ht+="/profile/";break;case"pwdReset":ht+=`/pwd-reset/?login-namespace=${l}`}return ht}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(B))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var we=p(98739);let Ne=(()=>{class n extends we.ye{constructor(){super(...arguments),this.getRangeLabel=function(s,l,d){let c;const S=s*l+1,$=(s+1)*l,ht=$>d?d:$;return d<1e3?`${S} \u2013 ${ht} of ${String(d)}`:(c=d<1e4?"1 000":d<1e5?"10 000":"100 000",`${S} \u2013 ${ht} of ${c} +`)}}}return n.\u0275fac=function(){let o;return function(l){return(o||(o=A.n5z(n)))(l||n)}}(),n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac}),n})(),Ce=(()=>{class n{setEntity(s){this.entity=s}getEntity(){return this.entity}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var fe=p(64080);let r=(()=>{class n{constructor(s,l,d,c,S){this.authResolver=s,this.attributesManager=l,this.notificator=d,this.apiRequest=c,this.router=S,this.routePolicies=new Map([["organizations",$=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[$])],["organizations-members",$=>this.authResolver.isAuthorized("getMembersPage_Vo_MembersPageQuery_List_policy",[$])],["organizations-groups",$=>this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[$])],["organizations-resources",$=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[$])||this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[$])||this.authResolver.isAuthorized("getResourcesState_Vo_policy",[$])],["organizations-resources-preview",$=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[$])],["organizations-resources-tags",$=>this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[$])],["organizations-resources-states",$=>this.authResolver.isAuthorized("getResourcesState_Vo_policy",[$])],["organizations-applications",$=>this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[$])],["organizations-sponsoredMembers",$=>this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[$])],["organizations-serviceAccounts",$=>this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[$])],["organizations-attributes",$=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[$])],["organizations-statistics",$=>this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[$])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[$])],["organizations-settings",$=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[$])||this.authResolver.isManagerPagePrivileged($)||this.authResolver.isThisVoAdminOrObserver($.id)],["organizations-settings-expiration",$=>this.authResolver.isThisVoAdminOrObserver($.id)],["organizations-settings-managers",$=>this.authResolver.isManagerPagePrivileged($)],["organizations-settings-applicationForm",$=>this.authResolver.isThisVoAdminOrObserver($.id)],["organizations-settings-notifications",$=>this.authResolver.isThisVoAdminOrObserver($.id)],["organizations-settings-extsources",$=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[$])],["organizations-settings-memberOrganizations",()=>this.authResolver.isPerunAdmin()],["organizations-settings-hierarchicalInclusion",()=>this.authResolver.isPerunAdmin()],["organizations-settings-bans",$=>this.authResolver.isAuthorized("getBansForVo_int_policy",[$])],["members",$=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[$])],["members-groups",$=>this.authResolver.isAuthorized("getMemberGroups_Member_policy",[$])],["members-applications",$=>this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[$])],["members-resources",$=>this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[$])],["members-attributes",$=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[$])],["members-bans",$=>this.authResolver.isAuthorized("vo-getBanForMember_member_policy",[$])],["groups",$=>this.authResolver.isAuthorized("getGroupById_int_policy",[$])],["groups-members",$=>this.authResolver.isAuthorized("group-getMembersPage_Vo_MembersPageQuery_List_policy",[$])],["groups-subgroups",$=>this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[$])],["groups-resources",$=>this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[$])],["groups-applications",$=>this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[$])],["groups-attributes",$=>this.authResolver.isAuthorized("getGroupById_int_policy",[$])],["groups-statistics",$=>this.authResolver.isAuthorized("getGroupMembersCount_Group_policy",[$])&&this.authResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[$])&&this.authResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[$])],["groups-roles",$=>this.authResolver.isAuthorized("getGroupRoles_int_policy",[$])],["groups-settings",$=>this.authResolver.isManagerPagePrivileged($)||this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[$])||this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[$])||this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[$])],["groups-settings-managers",$=>this.authResolver.isManagerPagePrivileged($)],["groups-settings-applicationForm",$=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[$])],["groups-settings-notifications",$=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[$])],["groups-settings-relations",$=>this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[$])],["groups-settings-extsources",$=>this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[$])],["groups-settings-expiration",$=>(this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName($.id,fe.r.GROUP_DEF_EXPIRATION_RULES).subscribe({next:()=>{},error:()=>{this.notificator.showRouteError(),this.router.navigate(["/notAuthorized"],{queryParamsHandling:"preserve"})}}),!0)],["resources",$=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[$])],["resources-groups",$=>this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[$])],["resources-services",$=>this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[$])],["resources-members",$=>this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[$])],["resources-tags",$=>this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[$])],["resources-attributes",$=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[$])],["resources-settings",$=>this.authResolver.isManagerPagePrivileged($)],["resources-settings-managers",$=>this.authResolver.isManagerPagePrivileged($)],["resources-settings-bans",$=>this.authResolver.isAuthorized("getBansForResource_int_policy",[$])],["facilities",$=>this.authResolver.isAuthorized("getFacilityById_int_policy",[$])],["facilities-resources",$=>this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[$])],["facilities-allowed-users",$=>this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[$])],["facilities-allowed-groups",$=>this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[$])],["facilities-services-status",$=>this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[$])],["services-status",$=>this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[$])],["facilities-services-destinations",$=>this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[$])],["facilities-hosts",()=>this.authResolver.isFacilityAdmin()],["facilities-attributes",$=>this.authResolver.isAuthorized("getFacilityById_int_policy",[$])],["facilities-settings",$=>this.authResolver.isAuthorized("getOwners_Facility_policy",[$])||this.authResolver.isManagerPagePrivileged($)||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[$])||this.authResolver.isAuthorized("getBansForFacility_int_policy",[$])],["facilities-settings-owners",$=>this.authResolver.isAuthorized("getOwners_Facility_policy",[$])],["facilities-settings-managers",$=>this.authResolver.isManagerPagePrivileged($)],["facilities-settings-security-teams",$=>this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[$])],["facilities-settings-blacklist",$=>this.authResolver.isAuthorized("getBansForFacility_int_policy",[$])],["facilities-settings-bans",$=>this.authResolver.isAuthorized("getBansForUser_int_policy",[$])]])}canNavigate(s,l){if(s.startsWith("admin")||s.startsWith("identities"))return this.authResolver.isPerunAdminOrObserver();if("facilities"===s&&-1===l.id)return this.authResolver.canManageFacilities();const d=this.routePolicies.get(s);return!d||d(l)}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(b),A.LFG(M.H8),A.LFG(k),A.LFG(ce),A.LFG(T.F0))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var u=p(54004),g=p(4707);let v=(()=>{class n{constructor(s,l){this.attributesManager=s,this.authResolver=l,this.roleWithObjects$=new g.t(1),(0,je.of)(this.authResolver.getAllRules()).pipe((0,u.U)(d=>d.filter(c=>c.assignableToAttributes)),(0,Ue.w)(d=>{const c=new Map;return d.map(S=>c.set(S.roleName,["None",...Object.keys(S.assignedObjects)])),(0,je.of)(new Map([...c.entries()].sort()))})).subscribe(this.roleWithObjects$)}getRoles(){return(0,je.of)(this.authResolver.getAllRules().filter(s=>s.assignableToAttributes))}getObjects(s){return this.roleWithObjects$.pipe((0,Ue.w)(l=>(0,je.of)(l.get(s))))}filterNullInPolicy(){return function(s){return s.pipe((0,u.U)(l=>(l.forEach(d=>d.policies=d.policies.filter(c=>null!==c.role&&null!==c.object)),l)))}}updateAttributeAction(s,l,d,c){return void 0!==s&&s!==l?this.attributesManager.setAttributeActionCriticality(d,c,s):(0,je.of)(void 0)}addAttributeId(){return function(s){return s.pipe((0,u.U)(([l,d])=>(d.forEach(c=>c.attributeId=l),d)))}}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(M.H8),A.LFG(b))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var h=p(36895);let a=(()=>{class n{constructor(){this.getDataForColumn=(s,l,d)=>{switch(l){case"id":return s.id.toString();case"vo":return d.get(s.voId);case"name":return s.name;case"description":return s.description;case"expiration":{const c=(0,R.x2)(s);return(0,R.sG)(c)}case"recent":return"";case"status":return s.status;case"uuid":return s.uuid;default:return s[l]}},this.getSortDataForColumn=(s,l,d,c)=>{switch(l){case"id":return s.id.toString();case"vo":return d.get(s.voId);case"name":return s.name;case"description":return s.description;case"expiration":{const S=(0,R.x2)(s);return S&&"never"!==S.toLowerCase()?(0,h.p6)(S,"yyyy.MM.dd","en"):S}case"recent":return c&&c.includes(s.id)?"#".repeat(c.indexOf(s.id)):s.name;case"status":return s.status;default:return s[l]}}}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),i=(()=>{class n{constructor(s,l){this.guiAuthResolver=s,this.authzResolver=l}findSponsorsAuth(s){const l=[this.guiAuthResolver.getRuleForRole("SPONSOR")],d=new Map;return this.guiAuthResolver.setRolesAuthorization(l,s,d),d.get(l[0].roleName).readAuth}getSponsors(s){const l=[fe.r.USER_DEF_PREFERRED_MAIL];return new G.y(d=>{this.authzResolver.getAuthzRichAdmins(f.u.SPONSOR,s,"Vo",l,!1,!1).subscribe(c=>{d.next(c),d.complete()})})}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(b),A.LFG(M.Ct))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),t=(()=>{class n{prepareRoles(s,l){const d=new Map;return l.forEach(c=>{const S=new Map;Object.keys(s[c]).forEach(ht=>{S.set(ht,s[c][ht])}),d.set(c,S)}),d}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})()},64080:($e,he,p)=>{"use strict";p.d(he,{r:()=>e});let e=(()=>{class A{}return A.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",A.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",A.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",A.MEMBER_GROUP_STATUS_INDIRECT="urn:perun:member_group:attribute-def:virt:groupStatusIndirect",A.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",A.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",A.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",A.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",A.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",A.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",A.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",A.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",A.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",A.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",A.USER_DEF_CERTIFICATES="urn:perun:user:attribute-def:def:userCertificates",A.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",A.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",A.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",A.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",A.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",A.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",A.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",A.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",A.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",A.GROUP_SYNC_INTERVAL="urn:perun:group:attribute-def:def:synchronizationInterval",A.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",A.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",A.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",A.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",A.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",A})()},9244:($e,he,p)=>{"use strict";p.d(he,{dN:()=>w,Je:()=>T,f7:()=>R.f7,l9:()=>B.l,sF:()=>R.sF,XI:()=>R.XI,Xd:()=>R.Xd,aC:()=>R.aC,fx:()=>R.fx,dv:()=>R.dv,i5:()=>R.i5,Sd:()=>R.Sd,pR:()=>R.pR,ys:()=>R.ys,O6:()=>R.O6,B2:()=>R.B2,mH:()=>R.mH,MX:()=>R.MX,cT:()=>R.cT,oU:()=>R.oU,IL:()=>R.IL,Jc:()=>R.Jc,Xn:()=>R.Xn,kZ:()=>R.kZ,v$:()=>R.v$,x2:()=>R.x2,vL:()=>R.vL,j4:()=>R.j4,jh:()=>R.jh,bx:()=>R.bx,im:()=>R.im,zr:()=>R.zr,Hm:()=>R.Hm,Cz:()=>R.Cz,sG:()=>R.sG,g$:()=>R.g$,bD:()=>R.bD,lt:()=>R.lt,Oe:()=>R.Oe,hu:()=>R.hu,Gw:()=>R.Gw,O5:()=>R.O5,te:()=>R.te,kN:()=>R.kN,$0:()=>R.$0,OV:()=>R.OV});var e=p(98739),A=p(28255),C=p(97392),M=p(4859),f=p(89383),b=p(36895),D=p(94650);let T=(()=>{class H{}return H.\u0275fac=function(J){return new(J||H)},H.\u0275mod=D.oAB({type:H}),H.\u0275inj=D.cJS({imports:[e.TU,A.Tx,C.Ps,M.ot,f.aw,b.ez]}),H})();var R=p(17218),B=p(18750);class w{static passwordMatchValidator(O){const J=O.get("passwordCtrl").value,ne=O.get("passwordAgainCtrl").value;return O.get("passwordAgainCtrl").setErrors(J!==ne?{noPasswordMatch:!0}:null),null}static patternValidator(O){return J=>{if(!J.value)return null;let ne=0;for(const G of O)ne+=G.test(J.value)?1:0;return ne>=3?null:{isWeak:!0}}}}},17218:($e,he,p)=>{"use strict";p.d(he,{$0:()=>w,B2:()=>T,Cz:()=>G,Gw:()=>ot,Hm:()=>ue,IL:()=>ve,Jc:()=>Ke,MX:()=>ye,O5:()=>u,O6:()=>Ee,OV:()=>le,Oe:()=>Me,Sd:()=>ee,XI:()=>X,Xd:()=>we,Xn:()=>Ae,aC:()=>ge,bD:()=>J,bx:()=>r,cT:()=>nt,dv:()=>W,f7:()=>D,fx:()=>Ne,g$:()=>R,hu:()=>ne,i5:()=>N,im:()=>g,j4:()=>F,jh:()=>fe,kN:()=>B,kZ:()=>be,lt:()=>H,mH:()=>Ce,oU:()=>Ve,pR:()=>vt,sF:()=>V,sG:()=>ut,te:()=>Oe,v$:()=>Ue,vL:()=>z,x2:()=>je,ys:()=>_e,zr:()=>v});var e=p(15861),A=p(65412),C=p(36895),M=p(94327),b=p(64080);const D=[5,10,25,100],T=/^(([^<>+()[\]\\.,;:\s@"-#$%&=]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]+))$/;function R(h){let a="";return h?.userAttributes.forEach(i=>{"preferredMail"===i.friendlyName&&(a=i.value)}),a&&0===a.length&&null!==h.memberAttributes&&h.memberAttributes.forEach(i=>{"mail"===i.friendlyName&&null!==i.value&&(a=i.value)}),a}function B(h){let a="";return h&&h.userAttributes.forEach(i=>{"preferredMail"===i.friendlyName&&(a=i.value)}),a}function w(h){let a="";return!!h&&!!h.userAttributes&&h.userAttributes.filter(i=>"login-namespace"===i.baseFriendlyName).filter(i=>null!==i.value).forEach(i=>{a=a.concat(i.friendlyNameParameter,": ",i.value,", ")}),a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function H(h){let a="";return!!h&&!!h.userAttributes&&h.userAttributes.filter(i=>"login-namespace"===i.baseFriendlyName).filter(i=>null!==i.value).forEach(i=>{a=a.concat(i.friendlyNameParameter,": ",i.value,", ")}),a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function J(h){let a="";return null!==h.titleBefore&&(a+=h.titleBefore+" "),null!==h.firstName&&(a+=h.firstName+" "),null!==h.middleName&&(a+=h.middleName+" "),null!==h.lastName&&(a+=h.lastName+" "),null!==h.titleAfter&&(a+=h.titleAfter+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function ne(h){let a="";return null!==h.firstName&&(a+=h.firstName+" "),null!==h.middleName&&(a+=h.middleName+" "),null!==h.lastName&&(a+=h.lastName+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function G(h){let a="";return h.split(/(?=[A-Z])/g).forEach(t=>{a=a.concat(t.toLowerCase()),a=a.concat(" ")}),a=a.charAt(0).toUpperCase()+a.slice(1,a.length-1),a}function Oe(h){let a="";for(const i of h)"technical"===i.type&&(a+=i.name+", ");return a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function _e(h,a){return Be.apply(this,arguments)}function Be(){return(Be=(0,e.Z)(function*(h,a){yield E(h),a()})).apply(this,arguments)}function E(h){return new Promise(a=>setTimeout(a,h))}function z(h){return JSON.parse(localStorage.getItem(h))||[]}function F(h){return JSON.parse(localStorage.getItem(h))||[]}function V(h,a){if(null===localStorage.getItem(h)){const i=[];i.unshift(a.id),localStorage.setItem(h,JSON.stringify(i))}else{const i=JSON.parse(localStorage.getItem(h)),t=function pe(h,a){for(let i=0;i0&&i.splice(t,1),0!==t&&i.unshift(a.id),i.length>5&&i.pop(),localStorage.setItem(h,JSON.stringify(i))}}function X(h,a){if(null===localStorage.getItem("recent")){let i;i="Group"===h.beanName?[{id:h.id,name:h.shortName,fullName:h.name,type:h.beanName,voId:h.voId,voName:a}]:[{id:h.id,name:h.name,type:h.beanName,voId:h.voId}],localStorage.setItem("recent",JSON.stringify(i))}else{const i=JSON.parse(localStorage.getItem("recent"));let t;t="Group"===h.beanName?{id:h.id,name:h.shortName,fullName:h.name,type:h.beanName,voId:h.voId,voName:a}:{id:h.id,name:h.name,type:h.beanName,voId:h.voId};const n=function q(h,a){for(let i=0;i0&&i.splice(n,1),0!==n&&i.unshift(t),i.length>5&&i.pop(),localStorage.setItem("recent",JSON.stringify(i))}}function le(h){let a="";return h&&h.userAttributes.forEach(i=>{"organization"===i.friendlyName&&(a=i.value)}),a}function ye(h){return h.filter(a=>!a.namespace.includes("def:core"))}function Ve(h,a){const i=a.find(t=>t.id===h);return i?i.parentGroupId?Ve(i.parentGroupId,a).concat(i):[i]:[]}function ve(h,a){for(const i of h)if(i.namespace+":"+i.friendlyName===a)return i;return null}function Ke(h){return null!=h.attributes["urn:perun:member:attribute-def:def:mail"]?h.attributes["urn:perun:member:attribute-def:def:mail"]:null!=h.attributes["urn:perun:user:attribute-def:def:preferredMail"]?h.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function Ue(h){return h.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function oe(h){if(h.includes("/CN=")){const a=h.split("/");for(const i of a)if(i.startsWith("CN="))return ce(i.substring(3))}return h}(h.userExtSource.extSource.name):h.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function k(h){switch(h){case"https://idp.upce.cz/idp/shibboleth":return"University in Pardubice";case"https://idp.slu.cz/idp/shibboleth":return"University in Opava";case"https://login.feld.cvut.cz/idp/shibboleth":return"Faculty of Electrical Engineering, Czech Technical University In Prague";case"https://www.vutbr.cz/SSO/saml2/idp":return"Brno University of Technology";case"https://shibboleth.nkp.cz/idp/shibboleth":return"The National Library of the Czech Republic";case"https://idp2.civ.cvut.cz/idp/shibboleth":return"Czech Technical University In Prague";case"https://shibbo.tul.cz/idp/shibboleth":return"Technical University of Liberec";case"https://idp.mendelu.cz/idp/shibboleth":return"Mendel University in Brno";case"https://cas.cuni.cz/idp/shibboleth":return"Charles University in Prague";case"https://wsso.vscht.cz/idp/shibboleth":return"Institute of Chemical Technology Prague";case"https://idp.vsb.cz/idp/shibboleth":return"VSB \u2013 Technical University of Ostrava";case"https://whoami.cesnet.cz/idp/shibboleth":return"CESNET";case"https://helium.jcu.cz/idp/shibboleth":return"University of South Bohemia";case"https://idp.ujep.cz/idp/shibboleth":return"Jan Evangelista Purkyne University in Usti nad Labem";case"https://idp.amu.cz/idp/shibboleth":return"Academy of Performing Arts in Prague";case"https://idp.lib.cas.cz/idp/shibboleth":return"Academy of Sciences Library";case"https://shibboleth.mzk.cz/simplesaml/metadata.xml":return"Moravian Library";case"https://idp2.ics.muni.cz/idp/shibboleth":return"Masaryk University";case"https://idp.upol.cz/idp/shibboleth":return"Palacky University, Olomouc";case"https://idp.fnplzen.cz/idp/shibboleth":return"FN Plzen";case"https://id.vse.cz/idp/shibboleth":return"University of Economics, Prague";case"https://shib.zcu.cz/idp/shibboleth":return"University of West Bohemia";case"https://idptoo.osu.cz/simplesaml/saml2/idp/metadata.php":return"University of Ostrava";case"https://login.ics.muni.cz/idp/shibboleth":return"MetaCentrum";case"https://idp.hostel.eduid.cz/idp/shibboleth":return"eduID.cz Hostel";case"https://shibboleth.techlib.cz/idp/shibboleth":return"National Library of Technology";case"https://eduid.jamu.cz/idp/shibboleth":return"Janacek Academy of Music and Performing Arts in Brno";case"https://marisa.uochb.cas.cz/simplesaml/saml2/idp/metadata.php":return"Institute of Organic Chemistry and Biochemistry AS CR";case"https://shibboleth.utb.cz/idp/shibboleth":return"Tomas Bata University in Zlin";case"https://engine.elixir-czech.org/authentication/idp/metadata":case"@elixir-europe.org":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":case"@mojeid.extidp.cesnet.cz":return"MojeID";case"https://www.egi.eu/idp/shibboleth":return"EGI SSO";case"@google.extidp.cesnet.cz":return"Google";case"@facebook.extidp.cesnet.cz":return"Facebook";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return h}}(h.userExtSource.extSource.name):h.userExtSource.extSource.name}function ce(h){return decodeURIComponent(h.replace(/\\x/g,"%"))}function N(h=["en","cs"]){const a={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{},htmlMessage:{}};return h.forEach(i=>{a.message[i]={locale:i,htmlFormat:!1,subject:"",text:""},a.htmlMessage[i]={locale:i,htmlFormat:!0,subject:"",text:""}}),a}function be(){const h=new A.vA;return h.disableClose=!0,h.autoFocus=!1,h}function W(h){const a={applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null};for(const i of h)a.i18n[i]={locale:i,errorMessage:"",help:"",label:"",options:""};return a}function ue(h){return"virt"===h.namespace.split(":")[4]}function Me(h,a){return"valid"!==h.toLowerCase()||a&&"valid"!==h.toLowerCase()?h:"ACTIVE"}function ot(h){let a="";return h?.memberAttributes.forEach(i=>{"organization"===i.friendlyName&&null!==i.value&&(a=i.value)}),0===a.length&&h?.userAttributes.forEach(i=>{"organization"===i.friendlyName&&(a=i.value)}),a}function je(h){return h.attributes.find(i=>"groupMembershipExpiration"===i.baseFriendlyName)?.value??"Never"}function ut(h){return h&&"never"!==h.toLowerCase()?(0,C.p6)(h,"d.M.yyyy","en"):h}const tt=new Intl.Collator("cs",{numeric:!0});function vt(h,a,i){const t=a.active,n=a.direction;return t&&""!==n?h.sort((o,s)=>{const l=i(o,t),d=i(s,t);return tt.compare(l,d)*("asc"===n?1:-1)}):h}function ee(h,a,i,t,n){a=a.toLowerCase();let o="";return i.forEach(s=>{o+=";"+t(h,s)}),n&&(o+=";"+t(h,"uuid")),o.toLowerCase().includes(a)}function nt(h,a){let i="";return h?.forEach(t=>{t.friendlyName===a&&(i=t.value)}),i}function Ae(h,a,i){const t=[],n=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(o=>!n.includes(o)),h.forEach(o=>{const s={};a.forEach(l=>{s[l]=(i(o,l)??"").split('"').join("''").trim()}),t.push(s)}),t}function Ee(h,a="csv",i="export"){if("csv"===a){const t=(d,c)=>null===c?"":c,n=Object.keys(h[0]),o=h.map(d=>n.map(c=>JSON.stringify(d[c],t)).join(","));o.unshift(n.join(",").split(" ").join("_").split('"').join("''"));const s=o.join("\r\n"),l=new Blob([s],{type:"text/csv"});(0,M.saveAs)(l,`${i}.${a}`)}}function ge(h,a){return h.name.toLowerCase()>a.name.toLowerCase()?1:h.name.toLowerCase()===a.name.toLowerCase()?0:-1}function we(h,a){return h.displayName.toLowerCase()>a.displayName.toLowerCase()?1:h.displayName.toLowerCase()===a.displayName.toLowerCase()?0:-1}function Ne(h,a){let i,t;return h.user?(i=h.user.lastName?h.user.lastName:h.user.firstName??"",t=a.user.lastName?a.user.lastName:a.user.firstName??""):(i=h.lastName?h.lastName:h.firstName??"",t=a.lastName?a.lastName:a.firstName??""),i>t?1:i===t?0:-1}function Ce(h,a,i=[]){h.enable(),h.clearValidators(),h.clearAsyncValidators(),h.setValidators(a),h.setAsyncValidators(i),h.updateValueAndValidity()}function fe(h,a){return!!h&&h.some(i=>i.namespace+":"+i.friendlyName===a&&null!==i.value&&"true"===String(i.value))}function r(h){return fe(h.attributes,b.r.GROUP_SYNC_ENABLED)||fe(h.attributes,b.r.GROUP_STRUCTURE_SYNC_ENABLED)}function u(h,a){const i=a.split("&");for(const t of i){const[n,o]=t.split("=");if(n.includes(h))return o}return""}function g(h){if("INDIRECT"===h.membershipType)return!0;const a=h.memberAttributes?.find(i=>"isLifecycleAlterable"===i.friendlyName);return!!a&&!a.value}function v(h){if("INDIRECT"===h.membershipType)return"INDIRECT";const a=h.memberAttributes?.find(i=>"isLifecycleAlterable"===i.friendlyName);return a?a.value?"DIRECT":"UNALTERABLE":"UNKNOWN"}},18750:($e,he,p)=>{"use strict";p.d(he,{l:()=>G});var e=p(94650),A=p(98739),C=p(17218),M=p(10036),f=p(36895),b=p(28255),D=p(97392),T=p(4859),R=p(89383);function B(se,Oe){if(1&se){const _e=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(_e);const E=e.oxw();return e.KtG(E.exportAllData.emit("csv"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let w=(()=>{class se{constructor(){this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe}}return se.\u0275fac=function(_e){return new(_e||se)},se.\u0275cmp=e.Xpm({type:se,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(_e,Be){if(1&_e&&(e.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,2)(6,"button",3),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"mat-menu",null,4)(11,"button",3),e._uU(12,"Csv"),e.qZA()(),e.TgZ(13,"mat-menu",5,6)(15,"button",7),e.NdJ("click",function(){return Be.exportDisplayedData.emit("csv")}),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.YNc(18,B,3,3,"button",8),e.qZA()()),2&_e){const E=e.MAs(5),z=e.MAs(10),F=e.MAs(14);e.xp6(1),e.Q6J("matMenuTriggerFor",E),e.xp6(5),e.Q6J("matMenuTriggerFor",z),e.xp6(1),e.hij(" ",e.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),e.xp6(4),e.Q6J("matMenuTriggerFor",F),e.xp6(5),e.hij(" ",e.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),e.xp6(2),e.Q6J("ngIf",Be.allowExportAll)}},dependencies:[b.VK,b.OP,b.p6,D.Hw,T.lW,f.O5,R.X$]}),se})();const H=["topNav"];function O(se,Oe){if(1&se){const _e=e.EpF();e.TgZ(0,"perun-web-apps-table-options",7),e.NdJ("exportDisplayedData",function(E){e.CHM(_e);const z=e.oxw();return e.KtG(z.exportDisplayedData.emit(E))})("exportAllData",function(E){e.CHM(_e);const z=e.oxw();return e.KtG(z.exportAllData.emit(E))}),e.qZA()}if(2&se){const _e=e.oxw();e.Q6J("allowExportAll",_e.allowExportAll)}}function J(se,Oe){if(1&se){const _e=e.EpF();e.TgZ(0,"perun-web-apps-table-options",7),e.NdJ("exportDisplayedData",function(E){e.CHM(_e);const z=e.oxw();return e.KtG(z.exportDisplayedData.emit(E))})("exportAllData",function(E){e.CHM(_e);const z=e.oxw();return e.KtG(z.exportAllData.emit(E))}),e.qZA()}if(2&se){const _e=e.oxw();e.Q6J("allowExportAll",_e.allowExportAll)}}const ne=["*"];let G=(()=>{class se{constructor(_e){this.tableConfigService=_e,this.hideExport=!1,this.pageSizeOptions=C.f7,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe,this.pageSize=5}set matPaginator(_e){this.paginator=_e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5),this.paginator._changePageSize(this.pageSize)}pageChangedTop(_e){this.pageSize=_e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,_e.pageSize)}pageChangedBottom(_e){this.paginator.pageSize=_e.pageSize,this.paginator.pageIndex=_e.pageIndex,this.paginator.page.emit(_e),this.pageSize=_e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,_e.pageSize),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return se.\u0275fac=function(_e){return new(_e||se)(e.Y36(M.dB))},se.\u0275cmp=e.Xpm({type:se,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(_e,Be){if(1&_e&&(e.Gf(H,5),e.Gf(A.NW,7)),2&_e){let E;e.iGM(E=e.CRH())&&(Be.topNav=E.first),e.iGM(E=e.CRH())&&(Be.matPaginator=E.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:ne,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(_e,Be){1&_e&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),e.NdJ("page",function(z){return Be.pageChangedTop(z)}),e.qZA(),e.YNc(4,O,1,1,"perun-web-apps-table-options",4),e.qZA(),e.TgZ(5,"div",5),e.Hsn(6),e.qZA(),e.TgZ(7,"div",1)(8,"mat-paginator",6),e.NdJ("page",function(z){return Be.pageChangedBottom(z)}),e.qZA(),e.YNc(9,J,1,1,"perun-web-apps-table-options",4),e.qZA()()),2&_e&&(e.xp6(3),e.Q6J("length",Be.dataLength)("pageSizeOptions",Be.pageSizeOptions)("pageSize",Be.pageSize),e.xp6(1),e.Q6J("ngIf",!Be.hideExport),e.xp6(4),e.Q6J("length",Be.paginator.length)("pageIndex",Be.paginator.pageIndex)("pageSizeOptions",Be.paginator.pageSizeOptions)("pageSize",Be.paginator.pageSize),e.xp6(1),e.Q6J("ngIf",!Be.hideExport))},dependencies:[A.NW,f.O5,w]}),se})()},98380:($e,he,p)=>{"use strict";p.d(he,{w:()=>R});var e=p(94650),A=p(97392),C=p(36895);function M(B,w){1&B&&(e.TgZ(0,"mat-icon",2),e._uU(1," info "),e.qZA())}function f(B,w){1&B&&(e.TgZ(0,"mat-icon",2),e._uU(1," warning "),e.qZA())}function b(B,w){1&B&&(e.TgZ(0,"mat-icon",2),e._uU(1," dangerous "),e.qZA())}function D(B,w){1&B&&(e.TgZ(0,"mat-icon",2),e._uU(1," check_circle "),e.qZA())}const T=["*"];let R=(()=>{class B{}return B.\u0275fac=function(H){return new(H||B)},B.\u0275cmp=e.Xpm({type:B,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:T,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(H,O){1&H&&(e.F$t(),e.TgZ(0,"div",0),e.YNc(1,M,2,0,"mat-icon",1),e.YNc(2,f,2,0,"mat-icon",1),e.YNc(3,b,2,0,"mat-icon",1),e.YNc(4,D,2,0,"mat-icon",1),e.Hsn(5),e.qZA()),2&H&&(e.ekj("warn-alert","warn"===O.alert_type)("error-alert","error"===O.alert_type)("success-alert","success"===O.alert_type)("info-alert","info"===O.alert_type),e.xp6(1),e.Q6J("ngIf","info"===O.alert_type),e.xp6(1),e.Q6J("ngIf","warn"===O.alert_type),e.xp6(1),e.Q6J("ngIf","error"===O.alert_type),e.xp6(1),e.Q6J("ngIf","success"===O.alert_type))},dependencies:[A.Hw,C.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),B})()},63189:($e,he,p)=>{"use strict";p.d(he,{r:()=>M});var e=p(97392),A=p(36895),C=p(94650);let M=(()=>{class f{}return f.\u0275fac=function(D){return new(D||f)},f.\u0275mod=C.oAB({type:f}),f.\u0275inj=C.cJS({imports:[e.Ps,A.ez]}),f})()},60900:($e,he,p)=>{"use strict";p.d(he,{C:()=>Ne});var e=p(36895),A=p(4859),C=p(73546),M=p(56709),f=p(65412),b=p(44850),D=p(37084),T=p(59549),R=p(94650),B=p(3238);let Ke=(()=>{class Ce{}return Ce.\u0275fac=function(r){return new(r||Ce)},Ce.\u0275mod=R.oAB({type:Ce}),Ce.\u0275inj=R.cJS({imports:[B.uc,B.BQ,B.uc,B.BQ]}),Ce})();var oe=p(97392),ce=p(284),k=p(51572),N=p(86257),be=p(30671),W=p(67376),ue=p(24006),Me=p(99602),ot=p(23267),je=p(96338),ut=p(28255),tt=p(83683),vt=p(96308),ee=p(98739),nt=p(10266),Ae=p(84385),Ee=p(3848),ge=p(90455),we=p(77331);let Ne=(()=>{class Ce{}return Ce.\u0275fac=function(r){return new(r||Ce)},Ce.\u0275mod=R.oAB({type:Ce}),Ce.\u0275inj=R.cJS({imports:[e.ez,C.QW,b.t,D.To,A.ot,Ke,M.p9,oe.Ps,be.p0,f.Is,k.Cq,T.lN,ce.c,W.Cl,ue.u5,ue.UX,N.T5,Me.FA,B.XK,ot.SJ,je.ie,ut.Tx,tt.g0,vt.JX,ee.TU,nt.AV,Ae.LD,B.si,be.p0,ge.rP,we.Hi,C.QW,b.t,D.To,A.ot,Ke,M.p9,oe.Ps,be.p0,f.Is,k.Cq,T.lN,ce.c,W.Cl,ue.u5,ue.UX,N.T5,Me.FA,B.XK,ot.SJ,je.ie,ut.Tx,tt.g0,vt.JX,ee.TU,nt.AV,Ae.LD,B.si,Ee.Nh,ge.rP,we.Hi]}),Ce})()},71345:$e=>{var M=.1,f="function"==typeof Float32Array;function b(J,ne){return 1-3*ne+3*J}function D(J,ne){return 3*ne-6*J}function T(J){return 3*J}function R(J,ne,G){return((b(ne,G)*J+D(ne,G))*J+T(ne))*J}function B(J,ne,G){return 3*b(ne,G)*J*J+2*D(ne,G)*J+T(ne)}function O(J){return J}$e.exports=function(ne,G,se,Oe){if(!(0<=ne&&ne<=1&&0<=se&&se<=1))throw new Error("bezier x values must be in [0, 1] range");if(ne===G&&se===Oe)return O;for(var _e=f?new Float32Array(11):new Array(11),Be=0;Be<11;++Be)_e[Be]=R(Be*M,ne,se);return function(F){return 0===F?0:1===F?1:R(function E(z){for(var F=0,V=1;10!==V&&_e[V]<=z;++V)F+=M;--V;var pe=F+(z-_e[V])/(_e[V+1]-_e[V])*M,le=B(pe,ne,se);return le>=.001?function H(J,ne,G,se){for(var Oe=0;Oe<4;++Oe){var _e=B(ne,G,se);if(0===_e)return ne;ne-=(R(ne,G,se)-J)/_e}return ne}(z,pe,ne,se):0===le?pe:function w(J,ne,G,se,Oe){var _e,Be,E=0;do{(_e=R(Be=ne+(G-ne)/2,se,Oe)-J)>0?G=Be:ne=Be}while(Math.abs(_e)>1e-7&&++E<10);return Be}(z,F,F+M,ne,se)}(F),G,Oe)}}},1302:function($e,he,p){var e;!function(A,C){var M={};!function(A){"use strict";A.__esModule=!0,A.digestLength=32,A.blockSize=64;var C=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function M(O,J,ne,G,se){for(var Oe,_e,Be,E,z,F,V,X,q,pe,le,ye,Ve;se>=64;){for(Oe=J[0],_e=J[1],Be=J[2],E=J[3],z=J[4],F=J[5],V=J[6],X=J[7],pe=0;pe<16;pe++)O[pe]=(255&ne[le=G+4*pe])<<24|(255&ne[le+1])<<16|(255&ne[le+2])<<8|255&ne[le+3];for(pe=16;pe<64;pe++)O[pe]=((ye=((q=O[pe-2])>>>17|q<<15)^(q>>>19|q<<13)^q>>>10)+O[pe-7]|0)+((Ve=((q=O[pe-15])>>>7|q<<25)^(q>>>18|q<<14)^q>>>3)+O[pe-16]|0);for(pe=0;pe<64;pe++)ye=(((z>>>6|z<<26)^(z>>>11|z<<21)^(z>>>25|z<<7))+(z&F^~z&V)|0)+(X+(C[pe]+O[pe]|0)|0)|0,Ve=((Oe>>>2|Oe<<30)^(Oe>>>13|Oe<<19)^(Oe>>>22|Oe<<10))+(Oe&_e^Oe&Be^_e&Be)|0,X=V,V=F,F=z,z=E+ye|0,E=Be,Be=_e,_e=Oe,Oe=ye+Ve|0;J[0]+=Oe,J[1]+=_e,J[2]+=Be,J[3]+=E,J[4]+=z,J[5]+=F,J[6]+=V,J[7]+=X,G+=64,se-=64}return G}var f=function(){function O(){this.digestLength=A.digestLength,this.blockSize=A.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return O.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},O.prototype.clean=function(){for(var J=0;J0){for(;this.bufferLength<64&&ne>0;)this.buffer[this.bufferLength++]=J[G++],ne--;64===this.bufferLength&&(M(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ne>=64&&(G=M(this.temp,this.state,J,G,ne),ne%=64);ne>0;)this.buffer[this.bufferLength++]=J[G++],ne--;return this},O.prototype.finish=function(J){if(!this.finished){var ne=this.bytesHashed,G=this.bufferLength,se=ne/536870912|0,Oe=ne<<3,_e=ne%64<56?64:128;this.buffer[G]=128;for(var Be=G+1;Be<_e-8;Be++)this.buffer[Be]=0;this.buffer[_e-8]=se>>>24&255,this.buffer[_e-7]=se>>>16&255,this.buffer[_e-6]=se>>>8&255,this.buffer[_e-5]=se>>>0&255,this.buffer[_e-4]=Oe>>>24&255,this.buffer[_e-3]=Oe>>>16&255,this.buffer[_e-2]=Oe>>>8&255,this.buffer[_e-1]=Oe>>>0&255,M(this.temp,this.state,this.buffer,0,_e),this.finished=!0}for(Be=0;Be<8;Be++)J[4*Be+0]=this.state[Be]>>>24&255,J[4*Be+1]=this.state[Be]>>>16&255,J[4*Be+2]=this.state[Be]>>>8&255,J[4*Be+3]=this.state[Be]>>>0&255;return this},O.prototype.digest=function(){var J=new Uint8Array(this.digestLength);return this.finish(J),J},O.prototype._saveState=function(J){for(var ne=0;nethis.blockSize)(new f).update(J).finish(ne).clean();else for(var G=0;G1&&J.update(O),ne&&J.update(ne),J.update(G),J.finish(O),G[0]++}A.HMAC=b,A.hash=D,A.default=D,A.hmac=T;var B=new Uint8Array(A.digestLength);A.hkdf=function w(O,J,ne,G){void 0===J&&(J=B),void 0===G&&(G=32);for(var se=new Uint8Array([1]),Oe=T(J,O),_e=new b(Oe),Be=new Uint8Array(_e.digestLength),E=Be.length,z=new Uint8Array(G),F=0;F>>24&255,_e[1]=V>>>16&255,_e[2]=V>>>8&255,_e[3]=V>>>0&255,se.reset(),se.update(J),se.update(_e),se.finish(E);for(var X=0;X=w.status}function b(B){try{B.dispatchEvent(new MouseEvent("click"))}catch{var w=document.createEvent("MouseEvents");w.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),B.dispatchEvent(w)}}var D="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,T=D.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),R=D.saveAs||("object"!=typeof window||window!==D?function(){}:"download"in HTMLAnchorElement.prototype&&!T?function(B,w,H){var O=D.URL||D.webkitURL,J=document.createElement("a");J.download=w=w||B.name||"download",J.rel="noopener","string"==typeof B?(J.href=B,J.origin===location.origin?b(J):f(J.href)?M(B,w,H):b(J,J.target="_blank")):(J.href=O.createObjectURL(B),setTimeout(function(){O.revokeObjectURL(J.href)},4e4),setTimeout(function(){b(J)},0))}:"msSaveOrOpenBlob"in navigator?function(B,w,H){if(w=w||B.name||"download","string"!=typeof B)navigator.msSaveOrOpenBlob(function C(B,w){return typeof w>"u"?w={autoBom:!1}:"object"!=typeof w&&(console.warn("Deprecated: Expected third argument to be a object"),w={autoBom:!w}),w.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(B.type)?new Blob(["\ufeff",B],{type:B.type}):B}(B,H),w);else if(f(B))M(B,w,H);else{var O=document.createElement("a");O.href=B,O.target="_blank",setTimeout(function(){b(O)})}}:function(B,w,H,O){if((O=O||open("","_blank"))&&(O.document.title=O.document.body.innerText="downloading..."),"string"==typeof B)return M(B,w,H);var J="application/octet-stream"===B.type,ne=/constructor/i.test(D.HTMLElement)||D.safari,G=/CriOS\/[\d]+/.test(navigator.userAgent);if((G||J&&ne||T)&&typeof FileReader<"u"){var se=new FileReader;se.onloadend=function(){var Be=se.result;Be=G?Be:Be.replace(/^data:[^;]*;/,"data:attachment/file;"),O?O.location.href=Be:location=Be,O=null},se.readAsDataURL(B)}else{var Oe=D.URL||D.webkitURL,_e=Oe.createObjectURL(B);O?O.location=_e:location.href=_e,O=null,setTimeout(function(){Oe.revokeObjectURL(_e)},4e4)}});D.saveAs=R.saveAs=R,$e.exports=R}.apply(he,[]))&&($e.exports=A)},61135:($e,he,p)=>{"use strict";p.d(he,{X:()=>A});var e=p(77579);class A extends e.x{constructor(M){super(),this._value=M}get value(){return this.getValue()}_subscribe(M){const f=super._subscribe(M);return!f.closed&&M.next(this._value),f}getValue(){const{hasError:M,thrownError:f,_value:b}=this;if(M)throw f;return this._throwIfClosed(),b}next(M){super.next(this._value=M)}}},69751:($e,he,p)=>{"use strict";p.d(he,{y:()=>T});var e=p(70930),A=p(50727),C=p(48822),M=p(89635),f=p(42416),b=p(30576),D=p(72806);let T=(()=>{class H{constructor(J){J&&(this._subscribe=J)}lift(J){const ne=new H;return ne.source=this,ne.operator=J,ne}subscribe(J,ne,G){const se=function w(H){return H&&H instanceof e.Lv||function B(H){return H&&(0,b.m)(H.next)&&(0,b.m)(H.error)&&(0,b.m)(H.complete)}(H)&&(0,A.Nn)(H)}(J)?J:new e.Hp(J,ne,G);return(0,D.x)(()=>{const{operator:Oe,source:_e}=this;se.add(Oe?Oe.call(se,_e):_e?this._subscribe(se):this._trySubscribe(se))}),se}_trySubscribe(J){try{return this._subscribe(J)}catch(ne){J.error(ne)}}forEach(J,ne){return new(ne=R(ne))((G,se)=>{const Oe=new e.Hp({next:_e=>{try{J(_e)}catch(Be){se(Be),Oe.unsubscribe()}},error:se,complete:G});this.subscribe(Oe)})}_subscribe(J){var ne;return null===(ne=this.source)||void 0===ne?void 0:ne.subscribe(J)}[C.L](){return this}pipe(...J){return(0,M.U)(J)(this)}toPromise(J){return new(J=R(J))((ne,G)=>{let se;this.subscribe(Oe=>se=Oe,Oe=>G(Oe),()=>ne(se))})}}return H.create=O=>new H(O),H})();function R(H){var O;return null!==(O=H??f.v.Promise)&&void 0!==O?O:Promise}},4707:($e,he,p)=>{"use strict";p.d(he,{t:()=>C});var e=p(77579),A=p(26063);class C extends e.x{constructor(f=1/0,b=1/0,D=A.l){super(),this._bufferSize=f,this._windowTime=b,this._timestampProvider=D,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=b===1/0,this._bufferSize=Math.max(1,f),this._windowTime=Math.max(1,b)}next(f){const{isStopped:b,_buffer:D,_infiniteTimeWindow:T,_timestampProvider:R,_windowTime:B}=this;b||(D.push(f),!T&&D.push(R.now()+B)),this._trimBuffer(),super.next(f)}_subscribe(f){this._throwIfClosed(),this._trimBuffer();const b=this._innerSubscribe(f),{_infiniteTimeWindow:D,_buffer:T}=this,R=T.slice();for(let B=0;B{"use strict";p.d(he,{x:()=>D});var e=p(69751),A=p(50727);const M=(0,p(83888).d)(R=>function(){R(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var f=p(38737),b=p(72806);let D=(()=>{class R extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(w){const H=new T(this,this);return H.operator=w,H}_throwIfClosed(){if(this.closed)throw new M}next(w){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const H of this.currentObservers)H.next(w)}})}error(w){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=w;const{observers:H}=this;for(;H.length;)H.shift().error(w)}})}complete(){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:w}=this;for(;w.length;)w.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var w;return(null===(w=this.observers)||void 0===w?void 0:w.length)>0}_trySubscribe(w){return this._throwIfClosed(),super._trySubscribe(w)}_subscribe(w){return this._throwIfClosed(),this._checkFinalizedStatuses(w),this._innerSubscribe(w)}_innerSubscribe(w){const{hasError:H,isStopped:O,observers:J}=this;return H||O?A.Lc:(this.currentObservers=null,J.push(w),new A.w0(()=>{this.currentObservers=null,(0,f.P)(J,w)}))}_checkFinalizedStatuses(w){const{hasError:H,thrownError:O,isStopped:J}=this;H?w.error(O):J&&w.complete()}asObservable(){const w=new e.y;return w.source=this,w}}return R.create=(B,w)=>new T(B,w),R})();class T extends D{constructor(B,w){super(),this.destination=B,this.source=w}next(B){var w,H;null===(H=null===(w=this.destination)||void 0===w?void 0:w.next)||void 0===H||H.call(w,B)}error(B){var w,H;null===(H=null===(w=this.destination)||void 0===w?void 0:w.error)||void 0===H||H.call(w,B)}complete(){var B,w;null===(w=null===(B=this.destination)||void 0===B?void 0:B.complete)||void 0===w||w.call(B)}_subscribe(B){var w,H;return null!==(H=null===(w=this.source)||void 0===w?void 0:w.subscribe(B))&&void 0!==H?H:A.Lc}}},70930:($e,he,p)=>{"use strict";p.d(he,{Hp:()=>G,Lv:()=>H});var e=p(30576),A=p(50727),C=p(42416),M=p(87849),f=p(25032);const b=R("C",void 0,void 0);function R(E,z,F){return{kind:E,value:z,error:F}}var B=p(43410),w=p(72806);class H extends A.w0{constructor(z){super(),this.isStopped=!1,z?(this.destination=z,(0,A.Nn)(z)&&z.add(this)):this.destination=Be}static create(z,F,V){return new G(z,F,V)}next(z){this.isStopped?_e(function T(E){return R("N",E,void 0)}(z),this):this._next(z)}error(z){this.isStopped?_e(function D(E){return R("E",void 0,E)}(z),this):(this.isStopped=!0,this._error(z))}complete(){this.isStopped?_e(b,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(z){this.destination.next(z)}_error(z){try{this.destination.error(z)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const O=Function.prototype.bind;function J(E,z){return O.call(E,z)}class ne{constructor(z){this.partialObserver=z}next(z){const{partialObserver:F}=this;if(F.next)try{F.next(z)}catch(V){se(V)}}error(z){const{partialObserver:F}=this;if(F.error)try{F.error(z)}catch(V){se(V)}else se(z)}complete(){const{partialObserver:z}=this;if(z.complete)try{z.complete()}catch(F){se(F)}}}class G extends H{constructor(z,F,V){let X;if(super(),(0,e.m)(z)||!z)X={next:z??void 0,error:F??void 0,complete:V??void 0};else{let q;this&&C.v.useDeprecatedNextContext?(q=Object.create(z),q.unsubscribe=()=>this.unsubscribe(),X={next:z.next&&J(z.next,q),error:z.error&&J(z.error,q),complete:z.complete&&J(z.complete,q)}):X=z}this.destination=new ne(X)}}function se(E){C.v.useDeprecatedSynchronousErrorHandling?(0,w.O)(E):(0,M.h)(E)}function _e(E,z){const{onStoppedNotification:F}=C.v;F&&B.z.setTimeout(()=>F(E,z))}const Be={closed:!0,next:f.Z,error:function Oe(E){throw E},complete:f.Z}},50727:($e,he,p)=>{"use strict";p.d(he,{Lc:()=>b,w0:()=>f,Nn:()=>D});var e=p(30576);const C=(0,p(83888).d)(R=>function(w){R(this),this.message=w?`${w.length} errors occurred during unsubscription:\n${w.map((H,O)=>`${O+1}) ${H.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=w});var M=p(38737);class f{constructor(B){this.initialTeardown=B,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let B;if(!this.closed){this.closed=!0;const{_parentage:w}=this;if(w)if(this._parentage=null,Array.isArray(w))for(const J of w)J.remove(this);else w.remove(this);const{initialTeardown:H}=this;if((0,e.m)(H))try{H()}catch(J){B=J instanceof C?J.errors:[J]}const{_finalizers:O}=this;if(O){this._finalizers=null;for(const J of O)try{T(J)}catch(ne){B=B??[],ne instanceof C?B=[...B,...ne.errors]:B.push(ne)}}if(B)throw new C(B)}}add(B){var w;if(B&&B!==this)if(this.closed)T(B);else{if(B instanceof f){if(B.closed||B._hasParent(this))return;B._addParent(this)}(this._finalizers=null!==(w=this._finalizers)&&void 0!==w?w:[]).push(B)}}_hasParent(B){const{_parentage:w}=this;return w===B||Array.isArray(w)&&w.includes(B)}_addParent(B){const{_parentage:w}=this;this._parentage=Array.isArray(w)?(w.push(B),w):w?[w,B]:B}_removeParent(B){const{_parentage:w}=this;w===B?this._parentage=null:Array.isArray(w)&&(0,M.P)(w,B)}remove(B){const{_finalizers:w}=this;w&&(0,M.P)(w,B),B instanceof f&&B._removeParent(this)}}f.EMPTY=(()=>{const R=new f;return R.closed=!0,R})();const b=f.EMPTY;function D(R){return R instanceof f||R&&"closed"in R&&(0,e.m)(R.remove)&&(0,e.m)(R.add)&&(0,e.m)(R.unsubscribe)}function T(R){(0,e.m)(R)?R():R.unsubscribe()}},42416:($e,he,p)=>{"use strict";p.d(he,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},83905:($e,he,p)=>{"use strict";p.d(he,{z:()=>C});var e=p(86805),A=p(70930);function C(M,f){const b="object"==typeof f;return new Promise((D,T)=>{const R=new A.Hp({next:B=>{D(B),R.unsubscribe()},error:T,complete:()=>{b?D(f.defaultValue):T(new e.K)}});M.subscribe(R)})}},39841:($e,he,p)=>{"use strict";p.d(he,{a:()=>B});var e=p(69751),A=p(54742),C=p(32076),M=p(44671),f=p(83268),b=p(63269),D=p(31810),T=p(25403),R=p(39672);function B(...O){const J=(0,b.yG)(O),ne=(0,b.jO)(O),{args:G,keys:se}=(0,A.D)(O);if(0===G.length)return(0,C.D)([],J);const Oe=new e.y(function w(O,J,ne=M.y){return G=>{H(J,()=>{const{length:se}=O,Oe=new Array(se);let _e=se,Be=se;for(let E=0;E{const z=(0,C.D)(O[E],J);let F=!1;z.subscribe((0,T.x)(G,V=>{Oe[E]=V,F||(F=!0,Be--),Be||G.next(ne(Oe.slice()))},()=>{--_e||G.complete()}))},G)},G)}}(G,J,se?_e=>(0,D.n)(se,_e):M.y));return ne?Oe.pipe((0,f.Z)(ne)):Oe}function H(O,J,ne){O?(0,R.f)(ne,O,J):J()}},97272:($e,he,p)=>{"use strict";p.d(he,{z:()=>f});var e=p(8189),C=p(63269),M=p(32076);function f(...b){return function A(){return(0,e.J)(1)}()((0,M.D)(b,(0,C.yG)(b)))}},49770:($e,he,p)=>{"use strict";p.d(he,{P:()=>C});var e=p(69751),A=p(38421);function C(M){return new e.y(f=>{(0,A.Xf)(M()).subscribe(f)})}},60515:($e,he,p)=>{"use strict";p.d(he,{E:()=>A});const A=new(p(69751).y)(f=>f.complete())},4128:($e,he,p)=>{"use strict";p.d(he,{D:()=>T});var e=p(69751),A=p(54742),C=p(38421),M=p(63269),f=p(25403),b=p(83268),D=p(31810);function T(...R){const B=(0,M.jO)(R),{args:w,keys:H}=(0,A.D)(R),O=new e.y(J=>{const{length:ne}=w;if(!ne)return void J.complete();const G=new Array(ne);let se=ne,Oe=ne;for(let _e=0;_e{Be||(Be=!0,Oe--),G[_e]=E},()=>se--,void 0,()=>{(!se||!Be)&&(Oe||J.next(H?(0,D.n)(H,G):G),J.complete())}))}});return B?O.pipe((0,b.Z)(B)):O}},32076:($e,he,p)=>{"use strict";p.d(he,{D:()=>V});var e=p(38421),A=p(39672),C=p(54482),M=p(25403);function f(X,q=0){return(0,C.e)((pe,le)=>{pe.subscribe((0,M.x)(le,ye=>(0,A.f)(le,X,()=>le.next(ye),q),()=>(0,A.f)(le,X,()=>le.complete(),q),ye=>(0,A.f)(le,X,()=>le.error(ye),q)))})}function b(X,q=0){return(0,C.e)((pe,le)=>{le.add(X.schedule(()=>pe.subscribe(le),q))})}var R=p(69751),w=p(2202),H=p(30576);function J(X,q){if(!X)throw new Error("Iterable cannot be null");return new R.y(pe=>{(0,A.f)(pe,q,()=>{const le=X[Symbol.asyncIterator]();(0,A.f)(pe,q,()=>{le.next().then(ye=>{ye.done?pe.complete():pe.next(ye.value)})},0,!0)})})}var ne=p(93670),G=p(28239),se=p(81144),Oe=p(26495),_e=p(12206),Be=p(44532),E=p(53260);function V(X,q){return q?function F(X,q){if(null!=X){if((0,ne.c)(X))return function D(X,q){return(0,e.Xf)(X).pipe(b(q),f(q))}(X,q);if((0,se.z)(X))return function B(X,q){return new R.y(pe=>{let le=0;return q.schedule(function(){le===X.length?pe.complete():(pe.next(X[le++]),pe.closed||this.schedule())})})}(X,q);if((0,G.t)(X))return function T(X,q){return(0,e.Xf)(X).pipe(b(q),f(q))}(X,q);if((0,_e.D)(X))return J(X,q);if((0,Oe.T)(X))return function O(X,q){return new R.y(pe=>{let le;return(0,A.f)(pe,q,()=>{le=X[w.h](),(0,A.f)(pe,q,()=>{let ye,Ve;try{({value:ye,done:Ve}=le.next())}catch(ve){return void pe.error(ve)}Ve?pe.complete():pe.next(ye)},0,!0)}),()=>(0,H.m)(le?.return)&&le.return()})}(X,q);if((0,E.L)(X))return function z(X,q){return J((0,E.Q)(X),q)}(X,q)}throw(0,Be.z)(X)}(X,q):(0,e.Xf)(X)}},54968:($e,he,p)=>{"use strict";p.d(he,{R:()=>B});var e=p(38421),A=p(69751),C=p(86099),M=p(81144),f=p(30576),b=p(83268);const D=["addListener","removeListener"],T=["addEventListener","removeEventListener"],R=["on","off"];function B(ne,G,se,Oe){if((0,f.m)(se)&&(Oe=se,se=void 0),Oe)return B(ne,G,se).pipe((0,b.Z)(Oe));const[_e,Be]=function J(ne){return(0,f.m)(ne.addEventListener)&&(0,f.m)(ne.removeEventListener)}(ne)?T.map(E=>z=>ne[E](G,z,se)):function H(ne){return(0,f.m)(ne.addListener)&&(0,f.m)(ne.removeListener)}(ne)?D.map(w(ne,G)):function O(ne){return(0,f.m)(ne.on)&&(0,f.m)(ne.off)}(ne)?R.map(w(ne,G)):[];if(!_e&&(0,M.z)(ne))return(0,C.z)(E=>B(E,G,se))((0,e.Xf)(ne));if(!_e)throw new TypeError("Invalid event target");return new A.y(E=>{const z=(...F)=>E.next(1Be(z)})}function w(ne,G){return se=>Oe=>ne[se](G,Oe)}},48382:($e,he,p)=>{"use strict";p.d(he,{s:()=>A});var e=p(49770);function A(C,M,f){return(0,e.P)(()=>C()?M:f)}},38421:($e,he,p)=>{"use strict";p.d(he,{Xf:()=>O});var e=p(70655),A=p(81144),C=p(28239),M=p(69751),f=p(93670),b=p(12206),D=p(44532),T=p(26495),R=p(53260),B=p(30576),w=p(87849),H=p(48822);function O(E){if(E instanceof M.y)return E;if(null!=E){if((0,f.c)(E))return function J(E){return new M.y(z=>{const F=E[H.L]();if((0,B.m)(F.subscribe))return F.subscribe(z);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(E);if((0,A.z)(E))return function ne(E){return new M.y(z=>{for(let F=0;F{E.then(F=>{z.closed||(z.next(F),z.complete())},F=>z.error(F)).then(null,w.h)})}(E);if((0,b.D)(E))return Oe(E);if((0,T.T)(E))return function se(E){return new M.y(z=>{for(const F of E)if(z.next(F),z.closed)return;z.complete()})}(E);if((0,R.L)(E))return function _e(E){return Oe((0,R.Q)(E))}(E)}throw(0,D.z)(E)}function Oe(E){return new M.y(z=>{(function Be(E,z){var F,V,X,q;return(0,e.mG)(this,void 0,void 0,function*(){try{for(F=(0,e.KL)(E);!(V=yield F.next()).done;)if(z.next(V.value),z.closed)return}catch(pe){X={error:pe}}finally{try{V&&!V.done&&(q=F.return)&&(yield q.call(F))}finally{if(X)throw X.error}}z.complete()})})(E,z).catch(F=>z.error(F))})}},17445:($e,he,p)=>{"use strict";p.d(he,{F:()=>C});var e=p(34986),A=p(82805);function C(M=0,f=e.z){return M<0&&(M=0),(0,A.H)(M,M,f)}},56451:($e,he,p)=>{"use strict";p.d(he,{T:()=>b});var e=p(8189),A=p(38421),C=p(60515),M=p(63269),f=p(32076);function b(...D){const T=(0,M.yG)(D),R=(0,M._6)(D,1/0),B=D;return B.length?1===B.length?(0,A.Xf)(B[0]):(0,e.J)(R)((0,f.D)(B,T)):C.E}},39646:($e,he,p)=>{"use strict";p.d(he,{of:()=>C});var e=p(63269),A=p(32076);function C(...M){const f=(0,e.yG)(M);return(0,A.D)(M,f)}},54355:($e,he,p)=>{"use strict";p.d(he,{S:()=>f});var e=p(69751),A=p(38421),C=p(75797),M=p(25403);function f(...D){return 1===(D=(0,C.k)(D)).length?(0,A.Xf)(D[0]):new e.y(function b(D){return T=>{let R=[];for(let B=0;R&&!T.closed&&B{if(R){for(let H=0;H{"use strict";p.d(he,{_:()=>C});var e=p(69751),A=p(30576);function C(M,f){const b=(0,A.m)(M)?M:()=>M,D=T=>T.error(b());return new e.y(f?T=>f.schedule(D,0,T):D)}},82805:($e,he,p)=>{"use strict";p.d(he,{H:()=>f});var e=p(69751),A=p(34986),C=p(93532),M=p(51165);function f(b=0,D,T=A.P){let R=-1;return null!=D&&((0,C.K)(D)?T=D:R=D),new e.y(B=>{let w=(0,M.q)(b)?+b-T.now():b;w<0&&(w=0);let H=0;return T.schedule(function(){B.closed||(B.next(H++),0<=R?this.schedule(void 0,R):B.complete())},w)})}},25403:($e,he,p)=>{"use strict";p.d(he,{x:()=>A});var e=p(70930);function A(M,f,b,D,T){return new C(M,f,b,D,T)}class C extends e.Lv{constructor(f,b,D,T,R,B){super(f),this.onFinalize=R,this.shouldUnsubscribe=B,this._next=b?function(w){try{b(w)}catch(H){f.error(H)}}:super._next,this._error=T?function(w){try{T(w)}catch(H){f.error(H)}finally{this.unsubscribe()}}:super._error,this._complete=D?function(){try{D()}catch(w){f.error(w)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var f;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:b}=this;super.unsubscribe(),!b&&(null===(f=this.onFinalize)||void 0===f||f.call(this))}}}},23601:($e,he,p)=>{"use strict";p.d(he,{e:()=>D});var e=p(34986),A=p(54482),C=p(38421),M=p(25403),b=p(82805);function D(T,R=e.z){return function f(T){return(0,A.e)((R,B)=>{let w=!1,H=null,O=null,J=!1;const ne=()=>{if(O?.unsubscribe(),O=null,w){w=!1;const se=H;H=null,B.next(se)}J&&B.complete()},G=()=>{O=null,J&&B.complete()};R.subscribe((0,M.x)(B,se=>{w=!0,H=se,O||(0,C.Xf)(T(se)).subscribe(O=(0,M.x)(B,ne,G))},()=>{J=!0,(!w||!O||O.closed)&&B.complete()}))})}(()=>(0,b.H)(T,R))}},70262:($e,he,p)=>{"use strict";p.d(he,{K:()=>M});var e=p(38421),A=p(25403),C=p(54482);function M(f){return(0,C.e)((b,D)=>{let B,T=null,R=!1;T=b.subscribe((0,A.x)(D,void 0,void 0,w=>{B=(0,e.Xf)(f(w,M(f)(b))),T?(T.unsubscribe(),T=null,B.subscribe(D)):R=!0})),R&&(T.unsubscribe(),T=null,B.subscribe(D))})}},24351:($e,he,p)=>{"use strict";p.d(he,{b:()=>C});var e=p(86099),A=p(30576);function C(M,f){return(0,A.m)(f)?(0,e.z)(M,f,1):(0,e.z)(M,1)}},78372:($e,he,p)=>{"use strict";p.d(he,{b:()=>M});var e=p(34986),A=p(54482),C=p(25403);function M(f,b=e.z){return(0,A.e)((D,T)=>{let R=null,B=null,w=null;const H=()=>{if(R){R.unsubscribe(),R=null;const J=B;B=null,T.next(J)}};function O(){const J=w+f,ne=b.now();if(ne{B=J,w=b.now(),R||(R=b.schedule(O,f),T.add(R))},()=>{H(),T.complete()},void 0,()=>{B=R=null}))})}},46590:($e,he,p)=>{"use strict";p.d(he,{d:()=>C});var e=p(54482),A=p(25403);function C(M){return(0,e.e)((f,b)=>{let D=!1;f.subscribe((0,A.x)(b,T=>{D=!0,b.next(T)},()=>{D||b.next(M),b.complete()}))})}},91005:($e,he,p)=>{"use strict";p.d(he,{g:()=>H});var e=p(34986),A=p(97272),C=p(95698),M=p(54482),f=p(25403),b=p(25032),T=p(69718),R=p(86099);function B(O,J){return J?ne=>(0,A.z)(J.pipe((0,C.q)(1),function D(){return(0,M.e)((O,J)=>{O.subscribe((0,f.x)(J,b.Z))})}()),ne.pipe(B(O))):(0,R.z)((ne,G)=>O(ne,G).pipe((0,C.q)(1),(0,T.h)(ne)))}var w=p(82805);function H(O,J=e.z){const ne=(0,w.H)(O,J);return B(()=>ne)}},71884:($e,he,p)=>{"use strict";p.d(he,{x:()=>M});var e=p(44671),A=p(54482),C=p(25403);function M(b,D=e.y){return b=b??f,(0,A.e)((T,R)=>{let B,w=!0;T.subscribe((0,C.x)(R,H=>{const O=D(H);(w||!b(B,O))&&(w=!1,B=O,R.next(H))}))})}function f(b,D){return b===D}},39300:($e,he,p)=>{"use strict";p.d(he,{h:()=>C});var e=p(54482),A=p(25403);function C(M,f){return(0,e.e)((b,D)=>{let T=0;b.subscribe((0,A.x)(D,R=>M.call(f,R,T++)&&D.next(R)))})}},28746:($e,he,p)=>{"use strict";p.d(he,{x:()=>A});var e=p(54482);function A(C){return(0,e.e)((M,f)=>{try{M.subscribe(f)}finally{f.add(C)}})}},50590:($e,he,p)=>{"use strict";p.d(he,{P:()=>D});var e=p(86805),A=p(39300),C=p(95698),M=p(46590),f=p(18068),b=p(44671);function D(T,R){const B=arguments.length>=2;return w=>w.pipe(T?(0,A.h)((H,O)=>T(H,O,w)):b.y,(0,C.q)(1),B?(0,M.d)(R):(0,f.T)(()=>new e.K))}},54004:($e,he,p)=>{"use strict";p.d(he,{U:()=>C});var e=p(54482),A=p(25403);function C(M,f){return(0,e.e)((b,D)=>{let T=0;b.subscribe((0,A.x)(D,R=>{D.next(M.call(f,R,T++))}))})}},69718:($e,he,p)=>{"use strict";p.d(he,{h:()=>A});var e=p(54004);function A(C){return(0,e.U)(()=>C)}},8189:($e,he,p)=>{"use strict";p.d(he,{J:()=>C});var e=p(86099),A=p(44671);function C(M=1/0){return(0,e.z)(A.y,M)}},72733:($e,he,p)=>{"use strict";p.d(he,{p:()=>M});var e=p(38421),A=p(39672),C=p(25403);function M(f,b,D,T,R,B,w,H){const O=[];let J=0,ne=0,G=!1;const se=()=>{G&&!O.length&&!J&&b.complete()},Oe=Be=>J{B&&b.next(Be),J++;let E=!1;(0,e.Xf)(D(Be,ne++)).subscribe((0,C.x)(b,z=>{R?.(z),B?Oe(z):b.next(z)},()=>{E=!0},void 0,()=>{if(E)try{for(J--;O.length&&J_e(z)):_e(z)}se()}catch(z){b.error(z)}}))};return f.subscribe((0,C.x)(b,Oe,()=>{G=!0,se()})),()=>{H?.()}}},86099:($e,he,p)=>{"use strict";p.d(he,{z:()=>b});var e=p(54004),A=p(38421),C=p(54482),M=p(72733),f=p(30576);function b(D,T,R=1/0){return(0,f.m)(T)?b((B,w)=>(0,e.U)((H,O)=>T(B,H,w,O))((0,A.Xf)(D(B,w))),R):("number"==typeof T&&(R=T),(0,C.e)((B,w)=>(0,M.p)(B,w,D,R)))}},11520:($e,he,p)=>{"use strict";p.d(he,{G:()=>C});var e=p(54482),A=p(25403);function C(){return(0,e.e)((M,f)=>{let b,D=!1;M.subscribe((0,A.x)(f,T=>{const R=b;b=T,D&&f.next([R,T]),D=!0}))})}},57359:($e,he,p)=>{"use strict";p.d(he,{U:()=>A});var e=p(25403);function A(C,M,f,b,D){return(T,R)=>{let B=f,w=M,H=0;T.subscribe((0,e.x)(R,O=>{const J=H++;w=B?C(w,O,J):(B=!0,O),b&&R.next(w)},D&&(()=>{B&&R.next(w),R.complete()})))}}},13099:($e,he,p)=>{"use strict";p.d(he,{B:()=>f});var e=p(38421),A=p(77579),C=p(70930),M=p(54482);function f(D={}){const{connector:T=(()=>new A.x),resetOnError:R=!0,resetOnComplete:B=!0,resetOnRefCountZero:w=!0}=D;return H=>{let O,J,ne,G=0,se=!1,Oe=!1;const _e=()=>{J?.unsubscribe(),J=void 0},Be=()=>{_e(),O=ne=void 0,se=Oe=!1},E=()=>{const z=O;Be(),z?.unsubscribe()};return(0,M.e)((z,F)=>{G++,!Oe&&!se&&_e();const V=ne=ne??T();F.add(()=>{G--,0===G&&!Oe&&!se&&(J=b(E,w))}),V.subscribe(F),!O&&G>0&&(O=new C.Hp({next:X=>V.next(X),error:X=>{Oe=!0,_e(),J=b(Be,R,X),V.error(X)},complete:()=>{se=!0,_e(),J=b(Be,B),V.complete()}}),(0,e.Xf)(z).subscribe(O))})(H)}}function b(D,T,...R){if(!0===T)return void D();if(!1===T)return;const B=new C.Hp({next:()=>{B.unsubscribe(),D()}});return T(...R).subscribe(B)}},34782:($e,he,p)=>{"use strict";p.d(he,{d:()=>C});var e=p(4707),A=p(13099);function C(M,f,b){let D,T=!1;return M&&"object"==typeof M?({bufferSize:D=1/0,windowTime:f=1/0,refCount:T=!1,scheduler:b}=M):D=M??1/0,(0,A.B)({connector:()=>new e.t(D,f,b),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:T})}},35684:($e,he,p)=>{"use strict";p.d(he,{T:()=>A});var e=p(39300);function A(C){return(0,e.h)((M,f)=>C<=f)}},68675:($e,he,p)=>{"use strict";p.d(he,{O:()=>M});var e=p(97272),A=p(63269),C=p(54482);function M(...f){const b=(0,A.yG)(f);return(0,C.e)((D,T)=>{(b?(0,e.z)(f,D,b):(0,e.z)(f,D)).subscribe(T)})}},63900:($e,he,p)=>{"use strict";p.d(he,{w:()=>M});var e=p(38421),A=p(54482),C=p(25403);function M(f,b){return(0,A.e)((D,T)=>{let R=null,B=0,w=!1;const H=()=>w&&!R&&T.complete();D.subscribe((0,C.x)(T,O=>{R?.unsubscribe();let J=0;const ne=B++;(0,e.Xf)(f(O,ne)).subscribe(R=(0,C.x)(T,G=>T.next(b?b(O,G,ne,J++):G),()=>{R=null,H()}))},()=>{w=!0,H()}))})}},95698:($e,he,p)=>{"use strict";p.d(he,{q:()=>M});var e=p(60515),A=p(54482),C=p(25403);function M(f){return f<=0?()=>e.E:(0,A.e)((b,D)=>{let T=0;b.subscribe((0,C.x)(D,R=>{++T<=f&&(D.next(R),f<=T&&D.complete())}))})}},82722:($e,he,p)=>{"use strict";p.d(he,{R:()=>f});var e=p(54482),A=p(25403),C=p(38421),M=p(25032);function f(b){return(0,e.e)((D,T)=>{(0,C.Xf)(b).subscribe((0,A.x)(T,()=>T.complete(),M.Z)),!T.closed&&D.subscribe(T)})}},22529:($e,he,p)=>{"use strict";p.d(he,{o:()=>C});var e=p(54482),A=p(25403);function C(M,f=!1){return(0,e.e)((b,D)=>{let T=0;b.subscribe((0,A.x)(D,R=>{const B=M(R,T++);(B||f)&&D.next(R),!B&&D.complete()}))})}},18505:($e,he,p)=>{"use strict";p.d(he,{b:()=>f});var e=p(30576),A=p(54482),C=p(25403),M=p(44671);function f(b,D,T){const R=(0,e.m)(b)||D||T?{next:b,error:D,complete:T}:b;return R?(0,A.e)((B,w)=>{var H;null===(H=R.subscribe)||void 0===H||H.call(R);let O=!0;B.subscribe((0,C.x)(w,J=>{var ne;null===(ne=R.next)||void 0===ne||ne.call(R,J),w.next(J)},()=>{var J;O=!1,null===(J=R.complete)||void 0===J||J.call(R),w.complete()},J=>{var ne;O=!1,null===(ne=R.error)||void 0===ne||ne.call(R,J),w.error(J)},()=>{var J,ne;O&&(null===(J=R.unsubscribe)||void 0===J||J.call(R)),null===(ne=R.finalize)||void 0===ne||ne.call(R)}))}):M.y}},18068:($e,he,p)=>{"use strict";p.d(he,{T:()=>M});var e=p(86805),A=p(54482),C=p(25403);function M(b=f){return(0,A.e)((D,T)=>{let R=!1;D.subscribe((0,C.x)(T,B=>{R=!0,T.next(B)},()=>R?T.complete():T.error(b())))})}function f(){return new e.K}},17414:($e,he,p)=>{"use strict";p.d(he,{V:()=>R});var e=p(34986),A=p(51165),C=p(54482),M=p(38421),f=p(83888),b=p(25403),D=p(39672);const T=(0,f.d)(w=>function(O=null){w(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=O});function R(w,H){const{first:O,each:J,with:ne=B,scheduler:G=H??e.z,meta:se=null}=(0,A.q)(w)?{first:w}:"number"==typeof w?{each:w}:w;if(null==O&&null==J)throw new TypeError("No timeout provided.");return(0,C.e)((Oe,_e)=>{let Be,E,z=null,F=0;const V=X=>{E=(0,D.f)(_e,G,()=>{try{Be.unsubscribe(),(0,M.Xf)(ne({meta:se,lastValue:z,seen:F})).subscribe(_e)}catch(q){_e.error(q)}},X)};Be=Oe.subscribe((0,b.x)(_e,X=>{E?.unsubscribe(),F++,_e.next(z=X),J>0&&V(J)},void 0,void 0,()=>{E?.closed||E?.unsubscribe(),z=null})),!F&&V(null!=O?"number"==typeof O?O:+O-G.now():J)})}function B(w){throw new T(w)}},84408:($e,he,p)=>{"use strict";p.d(he,{o:()=>f});var e=p(50727);class A extends e.w0{constructor(D,T){super()}schedule(D,T=0){return this}}const C={setInterval(b,D,...T){const{delegate:R}=C;return R?.setInterval?R.setInterval(b,D,...T):setInterval(b,D,...T)},clearInterval(b){const{delegate:D}=C;return(D?.clearInterval||clearInterval)(b)},delegate:void 0};var M=p(38737);class f extends A{constructor(D,T){super(D,T),this.scheduler=D,this.work=T,this.pending=!1}schedule(D,T=0){if(this.closed)return this;this.state=D;const R=this.id,B=this.scheduler;return null!=R&&(this.id=this.recycleAsyncId(B,R,T)),this.pending=!0,this.delay=T,this.id=this.id||this.requestAsyncId(B,this.id,T),this}requestAsyncId(D,T,R=0){return C.setInterval(D.flush.bind(D,this),R)}recycleAsyncId(D,T,R=0){if(null!=R&&this.delay===R&&!1===this.pending)return T;C.clearInterval(T)}execute(D,T){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const R=this._execute(D,T);if(R)return R;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(D,T){let B,R=!1;try{this.work(D)}catch(w){R=!0,B=w||new Error("Scheduled action threw falsy error")}if(R)return this.unsubscribe(),B}unsubscribe(){if(!this.closed){const{id:D,scheduler:T}=this,{actions:R}=T;this.work=this.state=this.scheduler=null,this.pending=!1,(0,M.P)(R,this),null!=D&&(this.id=this.recycleAsyncId(T,D,null)),this.delay=null,super.unsubscribe()}}}},97565:($e,he,p)=>{"use strict";p.d(he,{v:()=>C});var e=p(26063);class A{constructor(f,b=A.now){this.schedulerActionCtor=f,this.now=b}schedule(f,b=0,D){return new this.schedulerActionCtor(this,f).schedule(D,b)}}A.now=e.l.now;class C extends A{constructor(f,b=A.now){super(f,b),this.actions=[],this._active=!1,this._scheduled=void 0}flush(f){const{actions:b}=this;if(this._active)return void b.push(f);let D;this._active=!0;do{if(D=f.execute(f.state,f.delay))break}while(f=b.shift());if(this._active=!1,D){for(;f=b.shift();)f.unsubscribe();throw D}}}},66406:($e,he,p)=>{"use strict";p.d(he,{Z:()=>D});var e=p(84408),A=p(50727);const C={schedule(R){let B=requestAnimationFrame,w=cancelAnimationFrame;const{delegate:H}=C;H&&(B=H.requestAnimationFrame,w=H.cancelAnimationFrame);const O=B(J=>{w=void 0,R(J)});return new A.w0(()=>w?.(O))},requestAnimationFrame(...R){const{delegate:B}=C;return(B?.requestAnimationFrame||requestAnimationFrame)(...R)},cancelAnimationFrame(...R){const{delegate:B}=C;return(B?.cancelAnimationFrame||cancelAnimationFrame)(...R)},delegate:void 0};var f=p(97565);const D=new class b extends f.v{flush(B){this._active=!0;const w=this._scheduled;this._scheduled=void 0;const{actions:H}=this;let O;B=B||H.shift();do{if(O=B.execute(B.state,B.delay))break}while((B=H[0])&&B.id===w&&H.shift());if(this._active=!1,O){for(;(B=H[0])&&B.id===w&&H.shift();)B.unsubscribe();throw O}}}(class M extends e.o{constructor(B,w){super(B,w),this.scheduler=B,this.work=w}requestAsyncId(B,w,H=0){return null!==H&&H>0?super.requestAsyncId(B,w,H):(B.actions.push(this),B._scheduled||(B._scheduled=C.requestAnimationFrame(()=>B.flush(void 0))))}recycleAsyncId(B,w,H=0){if(null!=H&&H>0||null==H&&this.delay>0)return super.recycleAsyncId(B,w,H);B.actions.some(O=>O.id===w)||(C.cancelAnimationFrame(w),B._scheduled=void 0)}})},53101:($e,he,p)=>{"use strict";p.d(he,{E:()=>J});var e=p(84408);let C,A=1;const M={};function f(G){return G in M&&(delete M[G],!0)}const b={setImmediate(G){const se=A++;return M[se]=!0,C||(C=Promise.resolve()),C.then(()=>f(se)&&G()),se},clearImmediate(G){f(G)}},{setImmediate:T,clearImmediate:R}=b,B={setImmediate(...G){const{delegate:se}=B;return(se?.setImmediate||T)(...G)},clearImmediate(G){const{delegate:se}=B;return(se?.clearImmediate||R)(G)},delegate:void 0};var H=p(97565);const J=new class O extends H.v{flush(se){this._active=!0;const Oe=this._scheduled;this._scheduled=void 0;const{actions:_e}=this;let Be;se=se||_e.shift();do{if(Be=se.execute(se.state,se.delay))break}while((se=_e[0])&&se.id===Oe&&_e.shift());if(this._active=!1,Be){for(;(se=_e[0])&&se.id===Oe&&_e.shift();)se.unsubscribe();throw Be}}}(class w extends e.o{constructor(se,Oe){super(se,Oe),this.scheduler=se,this.work=Oe}requestAsyncId(se,Oe,_e=0){return null!==_e&&_e>0?super.requestAsyncId(se,Oe,_e):(se.actions.push(this),se._scheduled||(se._scheduled=B.setImmediate(se.flush.bind(se,void 0))))}recycleAsyncId(se,Oe,_e=0){if(null!=_e&&_e>0||null==_e&&this.delay>0)return super.recycleAsyncId(se,Oe,_e);se.actions.some(Be=>Be.id===Oe)||(B.clearImmediate(Oe),se._scheduled=void 0)}})},34986:($e,he,p)=>{"use strict";p.d(he,{P:()=>M,z:()=>C});var e=p(84408);const C=new(p(97565).v)(e.o),M=C},26063:($e,he,p)=>{"use strict";p.d(he,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},43410:($e,he,p)=>{"use strict";p.d(he,{z:()=>e});const e={setTimeout(A,C,...M){const{delegate:f}=e;return f?.setTimeout?f.setTimeout(A,C,...M):setTimeout(A,C,...M)},clearTimeout(A){const{delegate:C}=e;return(C?.clearTimeout||clearTimeout)(A)},delegate:void 0}},2202:($e,he,p)=>{"use strict";p.d(he,{h:()=>A});const A=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},48822:($e,he,p)=>{"use strict";p.d(he,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},86805:($e,he,p)=>{"use strict";p.d(he,{K:()=>A});const A=(0,p(83888).d)(C=>function(){C(this),this.name="EmptyError",this.message="no elements in sequence"})},63269:($e,he,p)=>{"use strict";p.d(he,{_6:()=>b,jO:()=>M,yG:()=>f});var e=p(30576),A=p(93532);function C(D){return D[D.length-1]}function M(D){return(0,e.m)(C(D))?D.pop():void 0}function f(D){return(0,A.K)(C(D))?D.pop():void 0}function b(D,T){return"number"==typeof C(D)?D.pop():T}},54742:($e,he,p)=>{"use strict";p.d(he,{D:()=>f});const{isArray:e}=Array,{getPrototypeOf:A,prototype:C,keys:M}=Object;function f(D){if(1===D.length){const T=D[0];if(e(T))return{args:T,keys:null};if(function b(D){return D&&"object"==typeof D&&A(D)===C}(T)){const R=M(T);return{args:R.map(B=>T[B]),keys:R}}}return{args:D,keys:null}}},75797:($e,he,p)=>{"use strict";p.d(he,{k:()=>A});const{isArray:e}=Array;function A(C){return 1===C.length&&e(C[0])?C[0]:C}},38737:($e,he,p)=>{"use strict";function e(A,C){if(A){const M=A.indexOf(C);0<=M&&A.splice(M,1)}}p.d(he,{P:()=>e})},83888:($e,he,p)=>{"use strict";function e(A){const M=A(f=>{Error.call(f),f.stack=(new Error).stack});return M.prototype=Object.create(Error.prototype),M.prototype.constructor=M,M}p.d(he,{d:()=>e})},31810:($e,he,p)=>{"use strict";function e(A,C){return A.reduce((M,f,b)=>(M[f]=C[b],M),{})}p.d(he,{n:()=>e})},72806:($e,he,p)=>{"use strict";p.d(he,{O:()=>M,x:()=>C});var e=p(42416);let A=null;function C(f){if(e.v.useDeprecatedSynchronousErrorHandling){const b=!A;if(b&&(A={errorThrown:!1,error:null}),f(),b){const{errorThrown:D,error:T}=A;if(A=null,D)throw T}}else f()}function M(f){e.v.useDeprecatedSynchronousErrorHandling&&A&&(A.errorThrown=!0,A.error=f)}},39672:($e,he,p)=>{"use strict";function e(A,C,M,f=0,b=!1){const D=C.schedule(function(){M(),b?A.add(this.schedule(null,f)):this.unsubscribe()},f);if(A.add(D),!b)return D}p.d(he,{f:()=>e})},44671:($e,he,p)=>{"use strict";function e(A){return A}p.d(he,{y:()=>e})},81144:($e,he,p)=>{"use strict";p.d(he,{z:()=>e});const e=A=>A&&"number"==typeof A.length&&"function"!=typeof A},12206:($e,he,p)=>{"use strict";p.d(he,{D:()=>A});var e=p(30576);function A(C){return Symbol.asyncIterator&&(0,e.m)(C?.[Symbol.asyncIterator])}},51165:($e,he,p)=>{"use strict";function e(A){return A instanceof Date&&!isNaN(A)}p.d(he,{q:()=>e})},30576:($e,he,p)=>{"use strict";function e(A){return"function"==typeof A}p.d(he,{m:()=>e})},93670:($e,he,p)=>{"use strict";p.d(he,{c:()=>C});var e=p(48822),A=p(30576);function C(M){return(0,A.m)(M[e.L])}},26495:($e,he,p)=>{"use strict";p.d(he,{T:()=>C});var e=p(2202),A=p(30576);function C(M){return(0,A.m)(M?.[e.h])}},45191:($e,he,p)=>{"use strict";p.d(he,{b:()=>C});var e=p(69751),A=p(30576);function C(M){return!!M&&(M instanceof e.y||(0,A.m)(M.lift)&&(0,A.m)(M.subscribe))}},28239:($e,he,p)=>{"use strict";p.d(he,{t:()=>A});var e=p(30576);function A(C){return(0,e.m)(C?.then)}},53260:($e,he,p)=>{"use strict";p.d(he,{L:()=>M,Q:()=>C});var e=p(70655),A=p(30576);function C(f){return(0,e.FC)(this,arguments,function*(){const D=f.getReader();try{for(;;){const{value:T,done:R}=yield(0,e.qq)(D.read());if(R)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(T)}}finally{D.releaseLock()}})}function M(f){return(0,A.m)(f?.getReader)}},93532:($e,he,p)=>{"use strict";p.d(he,{K:()=>A});var e=p(30576);function A(C){return C&&(0,e.m)(C.schedule)}},54482:($e,he,p)=>{"use strict";p.d(he,{A:()=>A,e:()=>C});var e=p(30576);function A(M){return(0,e.m)(M?.lift)}function C(M){return f=>{if(A(f))return f.lift(function(b){try{return M(b,this)}catch(D){this.error(D)}});throw new TypeError("Unable to lift unknown Observable type")}}},83268:($e,he,p)=>{"use strict";p.d(he,{Z:()=>M});var e=p(54004);const{isArray:A}=Array;function M(f){return(0,e.U)(b=>function C(f,b){return A(b)?f(...b):f(b)}(f,b))}},25032:($e,he,p)=>{"use strict";function e(){}p.d(he,{Z:()=>e})},89635:($e,he,p)=>{"use strict";p.d(he,{U:()=>C,z:()=>A});var e=p(44671);function A(...M){return C(M)}function C(M){return 0===M.length?e.y:1===M.length?M[0]:function(b){return M.reduce((D,T)=>T(D),b)}}},87849:($e,he,p)=>{"use strict";p.d(he,{h:()=>C});var e=p(42416),A=p(43410);function C(M){A.z.setTimeout(()=>{const{onUnhandledError:f}=e.v;if(!f)throw M;f(M)})}},44532:($e,he,p)=>{"use strict";function e(A){return new TypeError(`You provided ${null!==A&&"object"==typeof A?"an invalid object":`'${A}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}p.d(he,{z:()=>e})},70655:($e,he,p)=>{"use strict";function f(le,ye,Ve,ve){var oe,Ke=arguments.length,Ue=Ke<3?ye:null===ve?ve=Object.getOwnPropertyDescriptor(ye,Ve):ve;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ue=Reflect.decorate(le,ye,Ve,ve);else for(var ce=le.length-1;ce>=0;ce--)(oe=le[ce])&&(Ue=(Ke<3?oe(Ue):Ke>3?oe(ye,Ve,Ue):oe(ye,Ve))||Ue);return Ke>3&&Ue&&Object.defineProperty(ye,Ve,Ue),Ue}function T(le,ye,Ve,ve){return new(Ve||(Ve=Promise))(function(Ue,oe){function ce(be){try{N(ve.next(be))}catch(W){oe(W)}}function k(be){try{N(ve.throw(be))}catch(W){oe(W)}}function N(be){be.done?Ue(be.value):function Ke(Ue){return Ue instanceof Ve?Ue:new Ve(function(oe){oe(Ue)})}(be.value).then(ce,k)}N((ve=ve.apply(le,ye||[])).next())})}function se(le){return this instanceof se?(this.v=le,this):new se(le)}function Oe(le,ye,Ve){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ke,ve=Ve.apply(le,ye||[]),Ue=[];return Ke={},oe("next"),oe("throw"),oe("return"),Ke[Symbol.asyncIterator]=function(){return this},Ke;function oe(ue){ve[ue]&&(Ke[ue]=function(Me){return new Promise(function(ot,je){Ue.push([ue,Me,ot,je])>1||ce(ue,Me)})})}function ce(ue,Me){try{!function k(ue){ue.value instanceof se?Promise.resolve(ue.value.v).then(N,be):W(Ue[0][2],ue)}(ve[ue](Me))}catch(ot){W(Ue[0][3],ot)}}function N(ue){ce("next",ue)}function be(ue){ce("throw",ue)}function W(ue,Me){ue(Me),Ue.shift(),Ue.length&&ce(Ue[0][0],Ue[0][1])}}function Be(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ve,ye=le[Symbol.asyncIterator];return ye?ye.call(le):(le=function H(le){var ye="function"==typeof Symbol&&Symbol.iterator,Ve=ye&&le[ye],ve=0;if(Ve)return Ve.call(le);if(le&&"number"==typeof le.length)return{next:function(){return le&&ve>=le.length&&(le=void 0),{value:le&&le[ve++],done:!le}}};throw new TypeError(ye?"Object is not iterable.":"Symbol.iterator is not defined.")}(le),Ve={},ve("next"),ve("throw"),ve("return"),Ve[Symbol.asyncIterator]=function(){return this},Ve);function ve(Ue){Ve[Ue]=le[Ue]&&function(oe){return new Promise(function(ce,k){!function Ke(Ue,oe,ce,k){Promise.resolve(k).then(function(N){Ue({value:N,done:ce})},oe)}(ce,k,(oe=le[Ue](oe)).done,oe.value)})}}}p.d(he,{FC:()=>Oe,KL:()=>Be,gn:()=>f,mG:()=>T,qq:()=>se})},37340:($e,he,p)=>{"use strict";p.d(he,{F4:()=>B,IO:()=>ne,LC:()=>A,SB:()=>R,X$:()=>M,ZE:()=>_e,ZN:()=>Oe,_j:()=>e,eR:()=>w,jt:()=>f,k1:()=>Be,l3:()=>C,oB:()=>T,pV:()=>O,ru:()=>b,vP:()=>D});class e{}class A{}const C="*";function M(E,z){return{type:7,name:E,definitions:z,options:{}}}function f(E,z=null){return{type:4,styles:z,timings:E}}function b(E,z=null){return{type:3,steps:E,options:z}}function D(E,z=null){return{type:2,steps:E,options:z}}function T(E){return{type:6,styles:E,offset:null}}function R(E,z,F){return{type:0,name:E,styles:z,options:F}}function B(E){return{type:5,steps:E}}function w(E,z,F=null){return{type:1,expr:E,animation:z,options:F}}function O(E=null){return{type:9,options:E}}function ne(E,z,F=null){return{type:11,selector:E,animation:z,options:F}}function se(E){Promise.resolve(null).then(E)}class Oe{constructor(z=0,F=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=z+F}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(z=>z()),this._onDoneFns=[])}onStart(z){this._originalOnStartFns.push(z),this._onStartFns.push(z)}onDone(z){this._originalOnDoneFns.push(z),this._onDoneFns.push(z)}onDestroy(z){this._onDestroyFns.push(z)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){se(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(z=>z()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(z=>z()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(z){this._position=this.totalTime?z*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(z){const F="start"==z?this._onStartFns:this._onDoneFns;F.forEach(V=>V()),F.length=0}}class _e{constructor(z){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=z;let F=0,V=0,X=0;const q=this.players.length;0==q?se(()=>this._onFinish()):this.players.forEach(pe=>{pe.onDone(()=>{++F==q&&this._onFinish()}),pe.onDestroy(()=>{++V==q&&this._onDestroy()}),pe.onStart(()=>{++X==q&&this._onStart()})}),this.totalTime=this.players.reduce((pe,le)=>Math.max(pe,le.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(z=>z()),this._onDoneFns=[])}init(){this.players.forEach(z=>z.init())}onStart(z){this._onStartFns.push(z)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(z=>z()),this._onStartFns=[])}onDone(z){this._onDoneFns.push(z)}onDestroy(z){this._onDestroyFns.push(z)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(z=>z.play())}pause(){this.players.forEach(z=>z.pause())}restart(){this.players.forEach(z=>z.restart())}finish(){this._onFinish(),this.players.forEach(z=>z.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(z=>z.destroy()),this._onDestroyFns.forEach(z=>z()),this._onDestroyFns=[])}reset(){this.players.forEach(z=>z.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(z){const F=z*this.totalTime;this.players.forEach(V=>{const X=V.totalTime?Math.min(1,F/V.totalTime):1;V.setPosition(X)})}getPosition(){const z=this.players.reduce((F,V)=>null===F||V.totalTime>F.totalTime?V:F,null);return null!=z?z.getPosition():0}beforeDestroy(){this.players.forEach(z=>{z.beforeDestroy&&z.beforeDestroy()})}triggerCallback(z){const F="start"==z?this._onStartFns:this._onDoneFns;F.forEach(V=>V()),F.length=0}}const Be="!"},12687:($e,he,p)=>{"use strict";p.d(he,{$s:()=>le,Em:()=>Ue,Kd:()=>s,X6:()=>r,ic:()=>ce,kH:()=>$,mK:()=>Ee,qV:()=>Ae,qm:()=>te,rt:()=>Le,s1:()=>Ke,tE:()=>S,yG:()=>u});var e=p(36895),A=p(94650),C=p(83353),M=p(77579),f=p(50727),b=p(61135),D=p(39646),T=p(29521),R=p(18505),B=p(78372),w=p(39300),H=p(54004),O=p(95698),J=p(35684),ne=p(71884),G=p(82722),se=p(21281),Oe=p(49643),_e=p(62289);function F(Ie,De){return(Ie.getAttribute(De)||"").match(/\S+/g)||[]}const X="cdk-describedby-message",q="cdk-describedby-host";let pe=0,le=(()=>{class Ie{constructor(xe,ie){this._platform=ie,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+pe++,this._document=xe,this._id=(0,A.f3M)(A.AFp)+"-"+pe++}describe(xe,ie,Te){if(!this._canBeDescribed(xe,ie))return;const st=ye(ie,Te);"string"!=typeof ie?(Ve(ie,this._id),this._messageRegistry.set(st,{messageElement:ie,referenceCount:0})):this._messageRegistry.has(st)||this._createMessageElement(ie,Te),this._isElementDescribedByMessage(xe,st)||this._addMessageReference(xe,st)}removeDescription(xe,ie,Te){var st;if(!ie||!this._isElementNode(xe))return;const Qe=ye(ie,Te);if(this._isElementDescribedByMessage(xe,Qe)&&this._removeMessageReference(xe,Qe),"string"==typeof ie){const Et=this._messageRegistry.get(Qe);Et&&0===Et.referenceCount&&this._deleteMessageElement(Qe)}0===(null===(st=this._messagesContainer)||void 0===st?void 0:st.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var xe;const ie=this._document.querySelectorAll(`[${q}="${this._id}"]`);for(let Te=0;Te0!=Te.indexOf(X));xe.setAttribute("aria-describedby",ie.join(" "))}_addMessageReference(xe,ie){const Te=this._messageRegistry.get(ie);(function E(Ie,De,xe){const ie=F(Ie,De);ie.some(Te=>Te.trim()==xe.trim())||(ie.push(xe.trim()),Ie.setAttribute(De,ie.join(" ")))})(xe,"aria-describedby",Te.messageElement.id),xe.setAttribute(q,this._id),Te.referenceCount++}_removeMessageReference(xe,ie){const Te=this._messageRegistry.get(ie);Te.referenceCount--,function z(Ie,De,xe){const Te=F(Ie,De).filter(st=>st!=xe.trim());Te.length?Ie.setAttribute(De,Te.join(" ")):Ie.removeAttribute(De)}(xe,"aria-describedby",Te.messageElement.id),xe.removeAttribute(q)}_isElementDescribedByMessage(xe,ie){const Te=F(xe,"aria-describedby"),st=this._messageRegistry.get(ie),Qe=st&&st.messageElement.id;return!!Qe&&-1!=Te.indexOf(Qe)}_canBeDescribed(xe,ie){if(!this._isElementNode(xe))return!1;if(ie&&"object"==typeof ie)return!0;const Te=null==ie?"":`${ie}`.trim(),st=xe.getAttribute("aria-label");return!(!Te||st&&st.trim()===Te)}_isElementNode(xe){return xe.nodeType===this._document.ELEMENT_NODE}}return Ie.\u0275fac=function(xe){return new(xe||Ie)(A.LFG(e.K0),A.LFG(C.t4))},Ie.\u0275prov=A.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})();function ye(Ie,De){return"string"==typeof Ie?`${De||""}/${Ie}`:Ie}function Ve(Ie,De){Ie.id||(Ie.id=`${X}-${De}-${pe++}`)}class ve{constructor(De){this._items=De,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new M.x,this._typeaheadSubscription=f.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=xe=>xe.disabled,this._pressedLetters=[],this.tabOut=new M.x,this.change=new M.x,De instanceof A.n_E&&De.changes.subscribe(xe=>{if(this._activeItem){const Te=xe.toArray().indexOf(this._activeItem);Te>-1&&Te!==this._activeItemIndex&&(this._activeItemIndex=Te)}})}skipPredicate(De){return this._skipPredicateFn=De,this}withWrap(De=!0){return this._wrap=De,this}withVerticalOrientation(De=!0){return this._vertical=De,this}withHorizontalOrientation(De){return this._horizontal=De,this}withAllowedModifierKeys(De){return this._allowedModifierKeys=De,this}withTypeAhead(De=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,R.b)(xe=>this._pressedLetters.push(xe)),(0,B.b)(De),(0,w.h)(()=>this._pressedLetters.length>0),(0,H.U)(()=>this._pressedLetters.join(""))).subscribe(xe=>{const ie=this._getItemsArray();for(let Te=1;Te!De[st]||this._allowedModifierKeys.indexOf(st)>-1);switch(xe){case T.Mf:return void this.tabOut.next();case T.JH:if(this._vertical&&Te){this.setNextItemActive();break}return;case T.LH:if(this._vertical&&Te){this.setPreviousItemActive();break}return;case T.SV:if(this._horizontal&&Te){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case T.oh:if(this._horizontal&&Te){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case T.Sd:if(this._homeAndEnd&&Te){this.setFirstItemActive();break}return;case T.uR:if(this._homeAndEnd&&Te){this.setLastItemActive();break}return;default:return void((Te||(0,T.Vb)(De,"shiftKey"))&&(De.key&&1===De.key.length?this._letterKeyStream.next(De.key.toLocaleUpperCase()):(xe>=T.A&&xe<=T.Z||xe>=T.xE&&xe<=T.aO)&&this._letterKeyStream.next(String.fromCharCode(xe))))}this._pressedLetters=[],De.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(De){const xe=this._getItemsArray(),ie="number"==typeof De?De:xe.indexOf(De);this._activeItem=xe[ie]??null,this._activeItemIndex=ie}_setActiveItemByDelta(De){this._wrap?this._setActiveInWrapMode(De):this._setActiveInDefaultMode(De)}_setActiveInWrapMode(De){const xe=this._getItemsArray();for(let ie=1;ie<=xe.length;ie++){const Te=(this._activeItemIndex+De*ie+xe.length)%xe.length;if(!this._skipPredicateFn(xe[Te]))return void this.setActiveItem(Te)}}_setActiveInDefaultMode(De){this._setActiveItemByIndex(this._activeItemIndex+De,De)}_setActiveItemByIndex(De,xe){const ie=this._getItemsArray();if(ie[De]){for(;this._skipPredicateFn(ie[De]);)if(!ie[De+=xe])return;this.setActiveItem(De)}}_getItemsArray(){return this._items instanceof A.n_E?this._items.toArray():this._items}}class Ke extends ve{setActiveItem(De){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(De),this.activeItem&&this.activeItem.setActiveStyles()}}class Ue extends ve{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(De){return this._origin=De,this}setActiveItem(De){super.setActiveItem(De),this.activeItem&&this.activeItem.focus(this._origin)}}let ce=(()=>{class Ie{constructor(xe){this._platform=xe}isDisabled(xe){return xe.hasAttribute("disabled")}isVisible(xe){return function N(Ie){return!!(Ie.offsetWidth||Ie.offsetHeight||"function"==typeof Ie.getClientRects&&Ie.getClientRects().length)}(xe)&&"visible"===getComputedStyle(xe).visibility}isTabbable(xe){if(!this._platform.isBrowser)return!1;const ie=function k(Ie){try{return Ie.frameElement}catch{return null}}(function ee(Ie){return Ie.ownerDocument&&Ie.ownerDocument.defaultView||window}(xe));if(ie&&(-1===ut(ie)||!this.isVisible(ie)))return!1;let Te=xe.nodeName.toLowerCase(),st=ut(xe);return xe.hasAttribute("contenteditable")?-1!==st:!("iframe"===Te||"object"===Te||this._platform.WEBKIT&&this._platform.IOS&&!function tt(Ie){let De=Ie.nodeName.toLowerCase(),xe="input"===De&&Ie.type;return"text"===xe||"password"===xe||"select"===De||"textarea"===De}(xe))&&("audio"===Te?!!xe.hasAttribute("controls")&&-1!==st:"video"===Te?-1!==st&&(null!==st||this._platform.FIREFOX||xe.hasAttribute("controls")):xe.tabIndex>=0)}isFocusable(xe,ie){return function vt(Ie){return!function W(Ie){return function Me(Ie){return"input"==Ie.nodeName.toLowerCase()}(Ie)&&"hidden"==Ie.type}(Ie)&&(function be(Ie){let De=Ie.nodeName.toLowerCase();return"input"===De||"select"===De||"button"===De||"textarea"===De}(Ie)||function ue(Ie){return function ot(Ie){return"a"==Ie.nodeName.toLowerCase()}(Ie)&&Ie.hasAttribute("href")}(Ie)||Ie.hasAttribute("contenteditable")||je(Ie))}(xe)&&!this.isDisabled(xe)&&(ie?.ignoreVisibility||this.isVisible(xe))}}return Ie.\u0275fac=function(xe){return new(xe||Ie)(A.LFG(C.t4))},Ie.\u0275prov=A.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})();function je(Ie){if(!Ie.hasAttribute("tabindex")||void 0===Ie.tabIndex)return!1;let De=Ie.getAttribute("tabindex");return!(!De||isNaN(parseInt(De,10)))}function ut(Ie){if(!je(Ie))return null;const De=parseInt(Ie.getAttribute("tabindex")||"",10);return isNaN(De)?-1:De}class nt{constructor(De,xe,ie,Te,st=!1){this._element=De,this._checker=xe,this._ngZone=ie,this._document=Te,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,st||this.attachAnchors()}get enabled(){return this._enabled}set enabled(De){this._enabled=De,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(De,this._startAnchor),this._toggleAnchorTabIndex(De,this._endAnchor))}destroy(){const De=this._startAnchor,xe=this._endAnchor;De&&(De.removeEventListener("focus",this.startAnchorListener),De.remove()),xe&&(xe.removeEventListener("focus",this.endAnchorListener),xe.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(De){return new Promise(xe=>{this._executeOnStable(()=>xe(this.focusInitialElement(De)))})}focusFirstTabbableElementWhenReady(De){return new Promise(xe=>{this._executeOnStable(()=>xe(this.focusFirstTabbableElement(De)))})}focusLastTabbableElementWhenReady(De){return new Promise(xe=>{this._executeOnStable(()=>xe(this.focusLastTabbableElement(De)))})}_getRegionBoundary(De){const xe=this._element.querySelectorAll(`[cdk-focus-region-${De}], [cdkFocusRegion${De}], [cdk-focus-${De}]`);return"start"==De?xe.length?xe[0]:this._getFirstTabbableElement(this._element):xe.length?xe[xe.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(De){const xe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(xe){if(!this._checker.isFocusable(xe)){const ie=this._getFirstTabbableElement(xe);return ie?.focus(De),!!ie}return xe.focus(De),!0}return this.focusFirstTabbableElement(De)}focusFirstTabbableElement(De){const xe=this._getRegionBoundary("start");return xe&&xe.focus(De),!!xe}focusLastTabbableElement(De){const xe=this._getRegionBoundary("end");return xe&&xe.focus(De),!!xe}hasAttached(){return this._hasAttached}_getFirstTabbableElement(De){if(this._checker.isFocusable(De)&&this._checker.isTabbable(De))return De;const xe=De.children;for(let ie=0;ie=0;ie--){const Te=xe[ie].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(xe[ie]):null;if(Te)return Te}return null}_createAnchor(){const De=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,De),De.classList.add("cdk-visually-hidden"),De.classList.add("cdk-focus-trap-anchor"),De.setAttribute("aria-hidden","true"),De}_toggleAnchorTabIndex(De,xe){De?xe.setAttribute("tabindex","0"):xe.removeAttribute("tabindex")}toggleAnchors(De){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(De,this._startAnchor),this._toggleAnchorTabIndex(De,this._endAnchor))}_executeOnStable(De){this._ngZone.isStable?De():this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(De)}}let Ae=(()=>{class Ie{constructor(xe,ie,Te){this._checker=xe,this._ngZone=ie,this._document=Te}create(xe,ie=!1){return new nt(xe,this._checker,this._ngZone,this._document,ie)}}return Ie.\u0275fac=function(xe){return new(xe||Ie)(A.LFG(ce),A.LFG(A.R0b),A.LFG(e.K0))},Ie.\u0275prov=A.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})(),Ee=(()=>{class Ie{constructor(xe,ie,Te){this._elementRef=xe,this._focusTrapFactory=ie,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(xe){this.focusTrap.enabled=(0,se.Ig)(xe)}get autoCapture(){return this._autoCapture}set autoCapture(xe){this._autoCapture=(0,se.Ig)(xe)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(xe){const ie=xe.autoCapture;ie&&!ie.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,C.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Ie.\u0275fac=function(xe){return new(xe||Ie)(A.Y36(A.SBq),A.Y36(Ae),A.Y36(e.K0))},Ie.\u0275dir=A.lG2({type:Ie,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[A.TTD]}),Ie})();function r(Ie){return 0===Ie.buttons||0===Ie.offsetX&&0===Ie.offsetY}function u(Ie){const De=Ie.touches&&Ie.touches[0]||Ie.changedTouches&&Ie.changedTouches[0];return!(!De||-1!==De.identifier||null!=De.radiusX&&1!==De.radiusX||null!=De.radiusY&&1!==De.radiusY)}const g=new A.OlP("cdk-input-modality-detector-options"),v={ignoreKeys:[T.zL,T.jx,T.b2,T.MW,T.JU]},a=(0,C.i$)({passive:!0,capture:!0});let i=(()=>{class Ie{constructor(xe,ie,Te,st){this._platform=xe,this._mostRecentTarget=null,this._modality=new b.X(null),this._lastTouchMs=0,this._onKeydown=Qe=>{var Et,ke;null!==(Et=this._options)&&void 0!==Et&&null!==(ke=Et.ignoreKeys)&&void 0!==ke&&ke.some(at=>at===Qe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,C.sA)(Qe))},this._onMousedown=Qe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(r(Qe)?"keyboard":"mouse"),this._mostRecentTarget=(0,C.sA)(Qe))},this._onTouchstart=Qe=>{u(Qe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,C.sA)(Qe))},this._options={...v,...st},this.modalityDetected=this._modality.pipe((0,J.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ne.x)()),xe.isBrowser&&ie.runOutsideAngular(()=>{Te.addEventListener("keydown",this._onKeydown,a),Te.addEventListener("mousedown",this._onMousedown,a),Te.addEventListener("touchstart",this._onTouchstart,a)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,a),document.removeEventListener("mousedown",this._onMousedown,a),document.removeEventListener("touchstart",this._onTouchstart,a))}}return Ie.\u0275fac=function(xe){return new(xe||Ie)(A.LFG(C.t4),A.LFG(A.R0b),A.LFG(e.K0),A.LFG(g,8))},Ie.\u0275prov=A.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})();const t=new A.OlP("liveAnnouncerElement",{providedIn:"root",factory:function n(){return null}}),o=new A.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let s=(()=>{class Ie{constructor(xe,ie,Te,st){this._ngZone=ie,this._defaultOptions=st,this._document=Te,this._liveElement=xe||this._createLiveElement()}announce(xe,...ie){const Te=this._defaultOptions;let st,Qe;return 1===ie.length&&"number"==typeof ie[0]?Qe=ie[0]:[st,Qe]=ie,this.clear(),clearTimeout(this._previousTimeout),st||(st=Te&&Te.politeness?Te.politeness:"polite"),null==Qe&&Te&&(Qe=Te.duration),this._liveElement.setAttribute("aria-live",st),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Et=>this._currentResolve=Et)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=xe,"number"==typeof Qe&&(this._previousTimeout=setTimeout(()=>this.clear(),Qe)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var xe,ie;clearTimeout(this._previousTimeout),null===(xe=this._liveElement)||void 0===xe||xe.remove(),this._liveElement=null,null===(ie=this._currentResolve)||void 0===ie||ie.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const xe="cdk-live-announcer-element",ie=this._document.getElementsByClassName(xe),Te=this._document.createElement("div");for(let st=0;st{class Ie{constructor(xe,ie,Te,st,Qe){this._ngZone=xe,this._platform=ie,this._inputModalityDetector=Te,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new M.x,this._rootNodeFocusAndBlurListener=Et=>{for(let at=(0,C.sA)(Et);at;at=at.parentElement)"focus"===Et.type?this._onFocus(Et,at):this._onBlur(Et,at)},this._document=st,this._detectionMode=Qe?.detectionMode||0}monitor(xe,ie=!1){const Te=(0,se.fI)(xe);if(!this._platform.isBrowser||1!==Te.nodeType)return(0,D.of)(null);const st=(0,C.kV)(Te)||this._getDocument(),Qe=this._elementInfo.get(Te);if(Qe)return ie&&(Qe.checkChildren=!0),Qe.subject;const Et={checkChildren:ie,subject:new M.x,rootNode:st};return this._elementInfo.set(Te,Et),this._registerGlobalListeners(Et),Et.subject}stopMonitoring(xe){const ie=(0,se.fI)(xe),Te=this._elementInfo.get(ie);Te&&(Te.subject.complete(),this._setClasses(ie),this._elementInfo.delete(ie),this._removeGlobalListeners(Te))}focusVia(xe,ie,Te){const st=(0,se.fI)(xe);st===this._getDocument().activeElement?this._getClosestElementsInfo(st).forEach(([Et,ke])=>this._originChanged(Et,ie,ke)):(this._setOrigin(ie),"function"==typeof st.focus&&st.focus(Te))}ngOnDestroy(){this._elementInfo.forEach((xe,ie)=>this.stopMonitoring(ie))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(xe){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(xe)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:xe&&this._isLastInteractionFromInputLabel(xe)?"mouse":"program"}_shouldBeAttributedToTouch(xe){return 1===this._detectionMode||!(null==xe||!xe.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(xe,ie){xe.classList.toggle("cdk-focused",!!ie),xe.classList.toggle("cdk-touch-focused","touch"===ie),xe.classList.toggle("cdk-keyboard-focused","keyboard"===ie),xe.classList.toggle("cdk-mouse-focused","mouse"===ie),xe.classList.toggle("cdk-program-focused","program"===ie)}_setOrigin(xe,ie=!1){this._ngZone.runOutsideAngular(()=>{this._origin=xe,this._originFromTouchInteraction="touch"===xe&&ie,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(xe,ie){const Te=this._elementInfo.get(ie),st=(0,C.sA)(xe);!Te||!Te.checkChildren&&ie!==st||this._originChanged(ie,this._getFocusOrigin(st),Te)}_onBlur(xe,ie){const Te=this._elementInfo.get(ie);!Te||Te.checkChildren&&xe.relatedTarget instanceof Node&&ie.contains(xe.relatedTarget)||(this._setClasses(ie),this._emitOrigin(Te,null))}_emitOrigin(xe,ie){xe.subject.observers.length&&this._ngZone.run(()=>xe.subject.next(ie))}_registerGlobalListeners(xe){if(!this._platform.isBrowser)return;const ie=xe.rootNode,Te=this._rootNodeFocusListenerCount.get(ie)||0;Te||this._ngZone.runOutsideAngular(()=>{ie.addEventListener("focus",this._rootNodeFocusAndBlurListener,c),ie.addEventListener("blur",this._rootNodeFocusAndBlurListener,c)}),this._rootNodeFocusListenerCount.set(ie,Te+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,G.R)(this._stopInputModalityDetector)).subscribe(st=>{this._setOrigin(st,!0)}))}_removeGlobalListeners(xe){const ie=xe.rootNode;if(this._rootNodeFocusListenerCount.has(ie)){const Te=this._rootNodeFocusListenerCount.get(ie);Te>1?this._rootNodeFocusListenerCount.set(ie,Te-1):(ie.removeEventListener("focus",this._rootNodeFocusAndBlurListener,c),ie.removeEventListener("blur",this._rootNodeFocusAndBlurListener,c),this._rootNodeFocusListenerCount.delete(ie))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(xe,ie,Te){this._setClasses(xe,ie),this._emitOrigin(Te,ie),this._lastFocusOrigin=ie}_getClosestElementsInfo(xe){const ie=[];return this._elementInfo.forEach((Te,st)=>{(st===xe||Te.checkChildren&&st.contains(xe))&&ie.push([st,Te])}),ie}_isLastInteractionFromInputLabel(xe){const{_mostRecentTarget:ie,mostRecentModality:Te}=this._inputModalityDetector;if("mouse"!==Te||!ie||ie===xe||"INPUT"!==xe.nodeName&&"TEXTAREA"!==xe.nodeName||xe.disabled)return!1;const st=xe.labels;if(st)for(let Qe=0;Qe{class Ie{constructor(xe,ie){this._elementRef=xe,this._focusMonitor=ie,this.cdkFocusChange=new A.vpe}ngAfterViewInit(){const xe=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(xe,1===xe.nodeType&&xe.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(ie=>this.cdkFocusChange.emit(ie))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Ie.\u0275fac=function(xe){return new(xe||Ie)(A.Y36(A.SBq),A.Y36(S))},Ie.\u0275dir=A.lG2({type:Ie,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Ie})();const ht="cdk-high-contrast-black-on-white",ze="cdk-high-contrast-white-on-black",et="cdk-high-contrast-active";let te=(()=>{class Ie{constructor(xe,ie){this._platform=xe,this._document=ie,this._breakpointSubscription=(0,A.f3M)(_e.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const xe=this._document.createElement("div");xe.style.backgroundColor="rgb(1,2,3)",xe.style.position="absolute",this._document.body.appendChild(xe);const ie=this._document.defaultView||window,Te=ie&&ie.getComputedStyle?ie.getComputedStyle(xe):null,st=(Te&&Te.backgroundColor||"").replace(/ /g,"");switch(xe.remove(),st){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const xe=this._document.body.classList;xe.remove(et,ht,ze),this._hasCheckedHighContrastMode=!0;const ie=this.getHighContrastMode();1===ie?xe.add(et,ht):2===ie&&xe.add(et,ze)}}}return Ie.\u0275fac=function(xe){return new(xe||Ie)(A.LFG(C.t4),A.LFG(e.K0))},Ie.\u0275prov=A.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})(),Le=(()=>{class Ie{constructor(xe){xe._applyBodyHighContrastModeCssClasses()}}return Ie.\u0275fac=function(xe){return new(xe||Ie)(A.LFG(te))},Ie.\u0275mod=A.oAB({type:Ie}),Ie.\u0275inj=A.cJS({imports:[Oe.Q8]}),Ie})()},40445:($e,he,p)=>{"use strict";p.d(he,{Is:()=>D,vT:()=>R});var e=p(94650),A=p(36895);const C=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function M(){return(0,e.f3M)(A.K0)}}),f=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let D=(()=>{class B{constructor(H){if(this.value="ltr",this.change=new e.vpe,H){const J=H.documentElement?H.documentElement.dir:null;this.value=function b(B){var w;const H=B?.toLowerCase()||"";return"auto"===H&&typeof navigator<"u"&&null!==(w=navigator)&&void 0!==w&&w.language?f.test(navigator.language)?"rtl":"ltr":"rtl"===H?"rtl":"ltr"}((H.body?H.body.dir:null)||J||"ltr")}}ngOnDestroy(){this.change.complete()}}return B.\u0275fac=function(H){return new(H||B)(e.LFG(C,8))},B.\u0275prov=e.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),R=(()=>{class B{}return B.\u0275fac=function(H){return new(H||B)},B.\u0275mod=e.oAB({type:B}),B.\u0275inj=e.cJS({}),B})()},64425:($e,he,p)=>{"use strict";p.d(he,{Iq:()=>D,TU:()=>M,i3:()=>b});var e=p(36895),A=p(94650);class C{constructor(R,B){this._document=B;const w=this._textarea=this._document.createElement("textarea"),H=w.style;H.position="fixed",H.top=H.opacity="0",H.left="-999em",w.setAttribute("aria-hidden","true"),w.value=R,w.readOnly=!0,this._document.body.appendChild(w)}copy(){const R=this._textarea;let B=!1;try{if(R){const w=this._document.activeElement;R.select(),R.setSelectionRange(0,R.value.length),B=this._document.execCommand("copy"),w&&w.focus()}}catch{}return B}destroy(){const R=this._textarea;R&&(R.remove(),this._textarea=void 0)}}let M=(()=>{class T{constructor(B){this._document=B}copy(B){const w=this.beginCopy(B),H=w.copy();return w.destroy(),H}beginCopy(B){return new C(B,this._document)}}return T.\u0275fac=function(B){return new(B||T)(A.LFG(e.K0))},T.\u0275prov=A.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})();const f=new A.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let b=(()=>{class T{constructor(B,w,H){this._clipboard=B,this._ngZone=w,this.text="",this.attempts=1,this.copied=new A.vpe,this._pending=new Set,H&&null!=H.attempts&&(this.attempts=H.attempts)}copy(B=this.attempts){if(B>1){let w=B;const H=this._clipboard.beginCopy(this.text);this._pending.add(H);const O=()=>{const J=H.copy();J||!--w||this._destroyed?(this._currentTimeout=null,this._pending.delete(H),H.destroy(),this.copied.emit(J)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(O,1))};O()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(B=>B.destroy()),this._pending.clear(),this._destroyed=!0}}return T.\u0275fac=function(B){return new(B||T)(A.Y36(M),A.Y36(A.R0b),A.Y36(f,8))},T.\u0275dir=A.lG2({type:T,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(B,w){1&B&&A.NdJ("click",function(){return w.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),T})(),D=(()=>{class T{}return T.\u0275fac=function(B){return new(B||T)},T.\u0275mod=A.oAB({type:T}),T.\u0275inj=A.cJS({}),T})()},21281:($e,he,p)=>{"use strict";p.d(he,{Eq:()=>f,HM:()=>b,Ig:()=>A,du:()=>T,fI:()=>D,su:()=>C,t6:()=>M});var e=p(94650);function A(R){return null!=R&&"false"!=`${R}`}function C(R,B=0){return M(R)?Number(R):B}function M(R){return!isNaN(parseFloat(R))&&!isNaN(Number(R))}function f(R){return Array.isArray(R)?R:[R]}function b(R){return null==R?"":"string"==typeof R?R:`${R}px`}function D(R){return R instanceof e.SBq?R.nativeElement:R}function T(R,B=/\s+/){const w=[];if(null!=R){const H=Array.isArray(R)?R:`${R}`.split(B);for(const O of H){const J=`${O}`.trim();J&&w.push(J)}}return w}},95017:($e,he,p)=>{"use strict";p.d(he,{A8:()=>H,Ov:()=>B,P3:()=>D,Z9:()=>b,eX:()=>R,k:()=>O,o2:()=>f,yy:()=>T});var e=p(45191),A=p(39646),C=p(77579),M=p(94650);class f{}function b(J){return J&&"function"==typeof J.connect}class D extends f{constructor(ne){super(),this._data=ne}connect(){return(0,e.b)(this._data)?this._data:(0,A.of)(this._data)}disconnect(){}}class T{applyChanges(ne,G,se,Oe,_e){ne.forEachOperation((Be,E,z)=>{let F,V;if(null==Be.previousIndex){const q=se(Be,E,z);F=G.createEmbeddedView(q.templateRef,q.context,q.index),V=1}else null==z?(G.remove(E),V=3):(F=G.get(E),G.move(F,z),V=2);var X;_e&&_e({context:null===(X=F)||void 0===X?void 0:X.context,operation:V,record:Be})})}detach(){}}class R{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(ne,G,se,Oe,_e){ne.forEachOperation((Be,E,z)=>{let F,V;var X;null==Be.previousIndex?(F=this._insertView(()=>se(Be,E,z),z,G,Oe(Be)),V=F?1:0):null==z?(this._detachAndCacheView(E,G),V=3):(F=this._moveView(E,z,G,Oe(Be)),V=2),_e&&_e({context:null===(X=F)||void 0===X?void 0:X.context,operation:V,record:Be})})}detach(){for(const ne of this._viewCache)ne.destroy();this._viewCache=[]}_insertView(ne,G,se,Oe){const _e=this._insertViewFromCache(G,se);if(_e)return void(_e.context.$implicit=Oe);const Be=ne();return se.createEmbeddedView(Be.templateRef,Be.context,Be.index)}_detachAndCacheView(ne,G){const se=G.detach(ne);this._maybeCacheView(se,G)}_moveView(ne,G,se,Oe){const _e=se.get(ne);return se.move(_e,G),_e.context.$implicit=Oe,_e}_maybeCacheView(ne,G){if(this._viewCache.lengththis._markSelected(_e)):this._markSelected(G[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...ne){this._verifyValueAssignment(ne),ne.forEach(se=>this._markSelected(se));const G=this._hasQueuedChanges();return this._emitChangeEvent(),G}deselect(...ne){this._verifyValueAssignment(ne),ne.forEach(se=>this._unmarkSelected(se));const G=this._hasQueuedChanges();return this._emitChangeEvent(),G}setSelection(...ne){this._verifyValueAssignment(ne);const G=this.selected,se=new Set(ne);ne.forEach(_e=>this._markSelected(_e)),G.filter(_e=>!se.has(_e)).forEach(_e=>this._unmarkSelected(_e));const Oe=this._hasQueuedChanges();return this._emitChangeEvent(),Oe}toggle(ne){return this.isSelected(ne)?this.deselect(ne):this.select(ne)}clear(ne=!0){this._unmarkAll();const G=this._hasQueuedChanges();return ne&&this._emitChangeEvent(),G}isSelected(ne){if(this.compareWith){for(const G of this._selection)if(this.compareWith(G,ne))return!0;return!1}return this._selection.has(ne)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(ne){this._multiple&&this.selected&&this._selected.sort(ne)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(ne){this.isSelected(ne)||(this._multiple||this._unmarkAll(),this.isSelected(ne)||this._selection.add(ne),this._emitChanges&&this._selectedToEmit.push(ne))}_unmarkSelected(ne){this.isSelected(ne)&&(this._selection.delete(ne),this._emitChanges&&this._deselectedToEmit.push(ne))}_unmarkAll(){this.isEmpty()||this._selection.forEach(ne=>this._unmarkSelected(ne))}_verifyValueAssignment(ne){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let H=(()=>{class J{constructor(){this._listeners=[]}notify(G,se){for(let Oe of this._listeners)Oe(G,se)}listen(G){return this._listeners.push(G),()=>{this._listeners=this._listeners.filter(se=>G!==se)}}ngOnDestroy(){this._listeners=[]}}return J.\u0275fac=function(G){return new(G||J)},J.\u0275prov=M.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();const O=new M.OlP("_ViewRepeater")},73555:($e,he,p)=>{"use strict";p.d(he,{Wj:()=>c,Zt:()=>Ie,_t:()=>De,bA:()=>ee});var e=p(94650),A=p(36895),C=p(67376),M=p(83353),f=p(21281),b=p(12687),D=p(77579),T=p(50727),R=p(17445),B=p(66406),w=p(69751),H=p(56451),O=p(82722),J=p(68675),ne=p(54004),G=p(95698),se=p(18505),Oe=p(63900),_e=p(40445);function Be(xe,ie,Te){for(let st in ie)if(ie.hasOwnProperty(st)){const Qe=ie[st];Qe?xe.setProperty(st,Qe,null!=Te&&Te.has(st)?"important":""):xe.removeProperty(st)}return xe}function E(xe,ie){const Te=ie?"":"none";Be(xe.style,{"touch-action":ie?"":"none","-webkit-user-drag":ie?"":"none","-webkit-tap-highlight-color":ie?"":"transparent","user-select":Te,"-ms-user-select":Te,"-webkit-user-select":Te,"-moz-user-select":Te})}function z(xe,ie,Te){Be(xe.style,{position:ie?"":"fixed",top:ie?"":"0",opacity:ie?"":"0",left:ie?"":"-999em"},Te)}function F(xe,ie){return ie&&"none"!=ie?xe+" "+ie:xe}function V(xe){const ie=xe.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(xe)*ie}function q(xe,ie){return xe.getPropertyValue(ie).split(",").map(st=>st.trim())}function pe(xe){const ie=xe.getBoundingClientRect();return{top:ie.top,right:ie.right,bottom:ie.bottom,left:ie.left,width:ie.width,height:ie.height,x:ie.x,y:ie.y}}function le(xe,ie,Te){const{top:st,bottom:Qe,left:Et,right:ke}=xe;return Te>=st&&Te<=Qe&&ie>=Et&&ie<=ke}function ye(xe,ie,Te){xe.top+=ie,xe.bottom=xe.top+xe.height,xe.left+=Te,xe.right=xe.left+xe.width}function Ve(xe,ie,Te,st){const{top:Qe,right:Et,bottom:ke,left:at,width:It,height:jt}=xe,an=It*ie,Kt=jt*ie;return st>Qe-Kt&&stat-an&&Te{this.positions.set(Te,{scrollPosition:{top:Te.scrollTop,left:Te.scrollLeft},clientRect:pe(Te)})})}handleScroll(ie){const Te=(0,M.sA)(ie),st=this.positions.get(Te);if(!st)return null;const Qe=st.scrollPosition;let Et,ke;if(Te===this._document){const jt=this.getViewportScrollPosition();Et=jt.top,ke=jt.left}else Et=Te.scrollTop,ke=Te.scrollLeft;const at=Qe.top-Et,It=Qe.left-ke;return this.positions.forEach((jt,an)=>{jt.clientRect&&Te!==an&&Te.contains(an)&&ye(jt.clientRect,at,It)}),Qe.top=Et,Qe.left=ke,{top:at,left:It}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Ke(xe){const ie=xe.cloneNode(!0),Te=ie.querySelectorAll("[id]"),st=xe.nodeName.toLowerCase();ie.removeAttribute("id");for(let Qe=0;Qe{if(this.beforeStarted.next(),this._handles.length){const It=this._getTargetHandle(at);It&&!this._disabledHandles.has(It)&&!this.disabled&&this._initializeDragSequence(It,at)}else this.disabled||this._initializeDragSequence(this._rootElement,at)},this._pointerMove=at=>{const It=this._getPointerPositionOnPage(at);if(!this._hasStartedDragging){if(Math.abs(It.x-this._pickupPositionOnPage.x)+Math.abs(It.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const bn=Date.now()>=this._dragStartTime+this._getDragStartDelay(at),Tt=this._dropContainer;if(!bn)return void this._endDragSequence(at);(!Tt||!Tt.isDragging()&&!Tt.isReceiving())&&(at.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(at)))}return}at.preventDefault();const jt=this._getConstrainedPointerPosition(It);if(this._hasMoved=!0,this._lastKnownPointerPosition=It,this._updatePointerDirectionDelta(jt),this._dropContainer)this._updateActiveDropContainer(jt,It);else{const an=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,Kt=this._activeTransform;Kt.x=jt.x-an.x+this._passiveTransform.x,Kt.y=jt.y-an.y+this._passiveTransform.y,this._applyRootElementTransform(Kt.x,Kt.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:jt,event:at,distance:this._getDragDistance(jt),delta:this._pointerDirectionDelta})})},this._pointerUp=at=>{this._endDragSequence(at)},this._nativeDragStart=at=>{if(this._handles.length){const It=this._getTargetHandle(at);It&&!this._disabledHandles.has(It)&&!this.disabled&&at.preventDefault()}else this.disabled||at.preventDefault()},this.withRootElement(ie).withParent(Te.parentDragRef||null),this._parentPositions=new ve(st),ke.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(ie){const Te=(0,f.Ig)(ie);Te!==this._disabled&&(this._disabled=Te,this._toggleNativeDragInteractions(),this._handles.forEach(st=>E(st,Te)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(ie){this._handles=ie.map(st=>(0,f.fI)(st)),this._handles.forEach(st=>E(st,this.disabled)),this._toggleNativeDragInteractions();const Te=new Set;return this._disabledHandles.forEach(st=>{this._handles.indexOf(st)>-1&&Te.add(st)}),this._disabledHandles=Te,this}withPreviewTemplate(ie){return this._previewTemplate=ie,this}withPlaceholderTemplate(ie){return this._placeholderTemplate=ie,this}withRootElement(ie){const Te=(0,f.fI)(ie);return Te!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{Te.addEventListener("mousedown",this._pointerDown,be),Te.addEventListener("touchstart",this._pointerDown,N),Te.addEventListener("dragstart",this._nativeDragStart,be)}),this._initialTransform=void 0,this._rootElement=Te),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(ie){return this._boundaryElement=ie?(0,f.fI)(ie):null,this._resizeSubscription.unsubscribe(),ie&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(ie){return this._parentDragRef=ie,this}dispose(){var ie,Te;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(Te=this._rootElement)||void 0===Te||Te.remove()),null===(ie=this._anchor)||void 0===ie||ie.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(ie){!this._disabledHandles.has(ie)&&this._handles.indexOf(ie)>-1&&(this._disabledHandles.add(ie),E(ie,!0))}enableHandle(ie){this._disabledHandles.has(ie)&&(this._disabledHandles.delete(ie),E(ie,this.disabled))}withDirection(ie){return this._direction=ie,this}_withDropContainer(ie){this._dropContainer=ie}getFreeDragPosition(){const ie=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:ie.x,y:ie.y}}setFreeDragPosition(ie){return this._activeTransform={x:0,y:0},this._passiveTransform.x=ie.x,this._passiveTransform.y=ie.y,this._dropContainer||this._applyRootElementTransform(ie.x,ie.y),this}withPreviewContainer(ie){return this._previewContainer=ie,this}_sortFromLastPointerPosition(){const ie=this._lastKnownPointerPosition;ie&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(ie),ie)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var ie,Te;null===(ie=this._preview)||void 0===ie||ie.remove(),null===(Te=this._previewRef)||void 0===Te||Te.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var ie,Te;null===(ie=this._placeholder)||void 0===ie||ie.remove(),null===(Te=this._placeholderRef)||void 0===Te||Te.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(ie){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:ie}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(ie),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const Te=this._getPointerPositionOnPage(ie);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(Te),dropPoint:Te,event:ie})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(ie){ut(ie)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const Te=this._dropContainer;if(Te){const st=this._rootElement,Qe=st.parentNode,Et=this._placeholder=this._createPlaceholderElement(),ke=this._anchor=this._anchor||this._document.createComment(""),at=this._getShadowRoot();Qe.insertBefore(ke,st),this._initialTransform=st.style.transform||"",this._preview=this._createPreviewElement(),z(st,!1,ue),this._document.body.appendChild(Qe.replaceChild(Et,st)),this._getPreviewInsertionPoint(Qe,at).appendChild(this._preview),this.started.next({source:this,event:ie}),Te.start(),this._initialContainer=Te,this._initialIndex=Te.getItemIndex(this)}else this.started.next({source:this,event:ie}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(Te?Te.getScrollableParents():[])}_initializeDragSequence(ie,Te){this._parentDragRef&&Te.stopPropagation();const st=this.isDragging(),Qe=ut(Te),Et=!Qe&&0!==Te.button,ke=this._rootElement,at=(0,M.sA)(Te),It=!Qe&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),jt=Qe?(0,b.yG)(Te):(0,b.X6)(Te);if(at&&at.draggable&&"mousedown"===Te.type&&Te.preventDefault(),st||Et||It||jt)return;if(this._handles.length){const on=ke.style;this._rootElementTapHighlight=on.webkitTapHighlightColor||"",on.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(on=>this._updateOnScroll(on)),this._boundaryElement&&(this._boundaryRect=pe(this._boundaryElement));const an=this._previewTemplate;this._pickupPositionInElement=an&&an.template&&!an.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,ie,Te);const Kt=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(Te);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Kt.x,y:Kt.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,Te)}_cleanupDragArtifacts(ie){z(this._rootElement,!0,ue),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const Te=this._dropContainer,st=Te.getItemIndex(this),Qe=this._getPointerPositionOnPage(ie),Et=this._getDragDistance(Qe),ke=Te._isOverContainer(Qe.x,Qe.y);this.ended.next({source:this,distance:Et,dropPoint:Qe,event:ie}),this.dropped.next({item:this,currentIndex:st,previousIndex:this._initialIndex,container:Te,previousContainer:this._initialContainer,isPointerOverContainer:ke,distance:Et,dropPoint:Qe,event:ie}),Te.drop(this,st,this._initialIndex,this._initialContainer,ke,Et,Qe),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:ie,y:Te},{x:st,y:Qe}){let Et=this._initialContainer._getSiblingContainerFromPosition(this,ie,Te);!Et&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(ie,Te)&&(Et=this._initialContainer),Et&&Et!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=Et,this._dropContainer.enter(this,ie,Te,Et===this._initialContainer&&Et.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:Et,currentIndex:Et.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(st,Qe),this._dropContainer._sortItem(this,ie,Te,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(ie,Te):this._applyPreviewTransform(ie-this._pickupPositionInElement.x,Te-this._pickupPositionInElement.y))}_createPreviewElement(){const ie=this._previewTemplate,Te=this.previewClass,st=ie?ie.template:null;let Qe;if(st&&ie){const Et=ie.matchSize?this._initialClientRect:null,ke=ie.viewContainer.createEmbeddedView(st,ie.context);ke.detectChanges(),Qe=tt(ke,this._document),this._previewRef=ke,ie.matchSize?vt(Qe,Et):Qe.style.transform=ot(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else Qe=Ke(this._rootElement),vt(Qe,this._initialClientRect),this._initialTransform&&(Qe.style.transform=this._initialTransform);return Be(Qe.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},ue),E(Qe,!1),Qe.classList.add("cdk-drag-preview"),Qe.setAttribute("dir",this._direction),Te&&(Array.isArray(Te)?Te.forEach(Et=>Qe.classList.add(Et)):Qe.classList.add(Te)),Qe}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const ie=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(ie.left,ie.top);const Te=function X(xe){const ie=getComputedStyle(xe),Te=q(ie,"transition-property"),st=Te.find(at=>"transform"===at||"all"===at);if(!st)return 0;const Qe=Te.indexOf(st),Et=q(ie,"transition-duration"),ke=q(ie,"transition-delay");return V(Et[Qe])+V(ke[Qe])}(this._preview);return 0===Te?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(st=>{const Qe=ke=>{var at;(!ke||(0,M.sA)(ke)===this._preview&&"transform"===ke.propertyName)&&(null===(at=this._preview)||void 0===at||at.removeEventListener("transitionend",Qe),st(),clearTimeout(Et))},Et=setTimeout(Qe,1.5*Te);this._preview.addEventListener("transitionend",Qe)}))}_createPlaceholderElement(){const ie=this._placeholderTemplate,Te=ie?ie.template:null;let st;return Te?(this._placeholderRef=ie.viewContainer.createEmbeddedView(Te,ie.context),this._placeholderRef.detectChanges(),st=tt(this._placeholderRef,this._document)):st=Ke(this._rootElement),st.style.pointerEvents="none",st.classList.add("cdk-drag-placeholder"),st}_getPointerPositionInElement(ie,Te,st){const Qe=Te===this._rootElement?null:Te,Et=Qe?Qe.getBoundingClientRect():ie,ke=ut(st)?st.targetTouches[0]:st,at=this._getViewportScrollPosition();return{x:Et.left-ie.left+(ke.pageX-Et.left-at.left),y:Et.top-ie.top+(ke.pageY-Et.top-at.top)}}_getPointerPositionOnPage(ie){const Te=this._getViewportScrollPosition(),st=ut(ie)?ie.touches[0]||ie.changedTouches[0]||{pageX:0,pageY:0}:ie,Qe=st.pageX-Te.left,Et=st.pageY-Te.top;if(this._ownerSVGElement){const ke=this._ownerSVGElement.getScreenCTM();if(ke){const at=this._ownerSVGElement.createSVGPoint();return at.x=Qe,at.y=Et,at.matrixTransform(ke.inverse())}}return{x:Qe,y:Et}}_getConstrainedPointerPosition(ie){const Te=this._dropContainer?this._dropContainer.lockAxis:null;let{x:st,y:Qe}=this.constrainPosition?this.constrainPosition(ie,this,this._initialClientRect,this._pickupPositionInElement):ie;if("x"===this.lockAxis||"x"===Te?Qe=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===Te)&&(st=this._pickupPositionOnPage.x),this._boundaryRect){const{x:Et,y:ke}=this._pickupPositionInElement,at=this._boundaryRect,{width:It,height:jt}=this._getPreviewRect(),an=at.top+ke,Kt=at.bottom-(jt-ke);st=je(st,at.left+Et,at.right-(It-Et)),Qe=je(Qe,an,Kt)}return{x:st,y:Qe}}_updatePointerDirectionDelta(ie){const{x:Te,y:st}=ie,Qe=this._pointerDirectionDelta,Et=this._pointerPositionAtLastDirectionChange,ke=Math.abs(Te-Et.x),at=Math.abs(st-Et.y);return ke>this._config.pointerDirectionChangeThreshold&&(Qe.x=Te>Et.x?1:-1,Et.x=Te),at>this._config.pointerDirectionChangeThreshold&&(Qe.y=st>Et.y?1:-1,Et.y=st),Qe}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const ie=this._handles.length>0||!this.isDragging();ie!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=ie,E(this._rootElement,ie))}_removeRootElementListeners(ie){ie.removeEventListener("mousedown",this._pointerDown,be),ie.removeEventListener("touchstart",this._pointerDown,N),ie.removeEventListener("dragstart",this._nativeDragStart,be)}_applyRootElementTransform(ie,Te){const st=ot(ie,Te),Qe=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=Qe.transform&&"none"!=Qe.transform?Qe.transform:""),Qe.transform=F(st,this._initialTransform)}_applyPreviewTransform(ie,Te){var st;const Qe=null!==(st=this._previewTemplate)&&void 0!==st&&st.template?void 0:this._initialTransform,Et=ot(ie,Te);this._preview.style.transform=F(Et,Qe)}_getDragDistance(ie){const Te=this._pickupPositionOnPage;return Te?{x:ie.x-Te.x,y:ie.y-Te.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:ie,y:Te}=this._passiveTransform;if(0===ie&&0===Te||this.isDragging()||!this._boundaryElement)return;const st=this._rootElement.getBoundingClientRect(),Qe=this._boundaryElement.getBoundingClientRect();if(0===Qe.width&&0===Qe.height||0===st.width&&0===st.height)return;const Et=Qe.left-st.left,ke=st.right-Qe.right,at=Qe.top-st.top,It=st.bottom-Qe.bottom;Qe.width>st.width?(Et>0&&(ie+=Et),ke>0&&(ie-=ke)):ie=0,Qe.height>st.height?(at>0&&(Te+=at),It>0&&(Te-=It)):Te=0,(ie!==this._passiveTransform.x||Te!==this._passiveTransform.y)&&this.setFreeDragPosition({y:Te,x:ie})}_getDragStartDelay(ie){const Te=this.dragStartDelay;return"number"==typeof Te?Te:ut(ie)?Te.touch:Te?Te.mouse:0}_updateOnScroll(ie){const Te=this._parentPositions.handleScroll(ie);if(Te){const st=(0,M.sA)(ie);this._boundaryRect&&st!==this._boundaryElement&&st.contains(this._boundaryElement)&&ye(this._boundaryRect,Te.top,Te.left),this._pickupPositionOnPage.x+=Te.left,this._pickupPositionOnPage.y+=Te.top,this._dropContainer||(this._activeTransform.x-=Te.left,this._activeTransform.y-=Te.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var ie;return(null===(ie=this._parentPositions.positions.get(this._document))||void 0===ie?void 0:ie.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,M.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(ie,Te){const st=this._previewContainer||"global";if("parent"===st)return ie;if("global"===st){const Qe=this._document;return Te||Qe.fullscreenElement||Qe.webkitFullscreenElement||Qe.mozFullScreenElement||Qe.msFullscreenElement||Qe.body}return(0,f.fI)(st)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(ie){return this._handles.find(Te=>ie.target&&(ie.target===Te||Te.contains(ie.target)))}}function ot(xe,ie){return`translate3d(${Math.round(xe)}px, ${Math.round(ie)}px, 0)`}function je(xe,ie,Te){return Math.max(ie,Math.min(Te,xe))}function ut(xe){return"t"===xe.type[0]}function tt(xe,ie){const Te=xe.rootNodes;if(1===Te.length&&Te[0].nodeType===ie.ELEMENT_NODE)return Te[0];const st=ie.createElement("div");return Te.forEach(Qe=>st.appendChild(Qe)),st}function vt(xe,ie){xe.style.width=`${ie.width}px`,xe.style.height=`${ie.height}px`,xe.style.transform=ot(ie.left,ie.top)}function ee(xe,ie,Te){const st=Ee(ie,xe.length-1),Qe=Ee(Te,xe.length-1);if(st===Qe)return;const Et=xe[st],ke=Qe0)return null;const at="horizontal"===this.orientation,It=Et.findIndex(Ge=>Ge.drag===ie),jt=Et[ke],Kt=jt.clientRect,on=It>ke?1:-1,bn=this._getItemOffsetPx(Et[It].clientRect,Kt,on),Tt=this._getSiblingOffsetPx(It,Et,on),Dt=Et.slice();return ee(Et,It,ke),Et.forEach((Ge,wt)=>{if(Dt[wt]===Ge)return;const Ft=Ge.drag===ie,ln=Ft?bn:Tt,Cn=Ft?ie.getPlaceholderElement():Ge.drag.getRootElement();Ge.offset+=ln,at?(Cn.style.transform=F(`translate3d(${Math.round(Ge.offset)}px, 0, 0)`,Ge.initialTransform),ye(Ge.clientRect,0,ln)):(Cn.style.transform=F(`translate3d(0, ${Math.round(Ge.offset)}px, 0)`,Ge.initialTransform),ye(Ge.clientRect,ln,0))}),this._previousSwap.overlaps=le(Kt,Te,st),this._previousSwap.drag=jt.drag,this._previousSwap.delta=at?Qe.x:Qe.y,{previousIndex:It,currentIndex:ke}}enter(ie,Te,st,Qe){const Et=null==Qe||Qe<0?this._getItemIndexFromPointerPosition(ie,Te,st):Qe,ke=this._activeDraggables,at=ke.indexOf(ie),It=ie.getPlaceholderElement();let jt=ke[Et];if(jt===ie&&(jt=ke[Et+1]),!jt&&(null==Et||-1===Et||Et-1&&ke.splice(at,1),jt&&!this._dragDropRegistry.isDragging(jt)){const an=jt.getRootElement();an.parentElement.insertBefore(It,an),ke.splice(Et,0,ie)}else(0,f.fI)(this._element).appendChild(It),ke.push(ie);It.style.transform="",this._cacheItemPositions()}withItems(ie){this._activeDraggables=ie.slice(),this._cacheItemPositions()}withSortPredicate(ie){this._sortPredicate=ie}reset(){this._activeDraggables.forEach(ie=>{const Te=ie.getRootElement();if(Te){var st;const Qe=null===(st=this._itemPositions.find(Et=>Et.drag===ie))||void 0===st?void 0:st.initialTransform;Te.style.transform=Qe||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(ie){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(st=>st.drag===ie)}updateOnScroll(ie,Te){this._itemPositions.forEach(({clientRect:st})=>{ye(st,ie,Te)}),this._itemPositions.forEach(({drag:st})=>{this._dragDropRegistry.isDragging(st)&&st._sortFromLastPointerPosition()})}_cacheItemPositions(){const ie="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(Te=>{const st=Te.getVisibleElement();return{drag:Te,offset:0,initialTransform:st.style.transform||"",clientRect:pe(st)}}).sort((Te,st)=>ie?Te.clientRect.left-st.clientRect.left:Te.clientRect.top-st.clientRect.top)}_getItemOffsetPx(ie,Te,st){const Qe="horizontal"===this.orientation;let Et=Qe?Te.left-ie.left:Te.top-ie.top;return-1===st&&(Et+=Qe?Te.width-ie.width:Te.height-ie.height),Et}_getSiblingOffsetPx(ie,Te,st){const Qe="horizontal"===this.orientation,Et=Te[ie].clientRect,ke=Te[ie+-1*st];let at=Et[Qe?"width":"height"]*st;if(ke){const It=Qe?"left":"top",jt=Qe?"right":"bottom";-1===st?at-=ke.clientRect[It]-Et[jt]:at+=Et[It]-ke.clientRect[jt]}return at}_shouldEnterAsFirstChild(ie,Te){if(!this._activeDraggables.length)return!1;const st=this._itemPositions,Qe="horizontal"===this.orientation;if(st[0].drag!==this._activeDraggables[0]){const ke=st[st.length-1].clientRect;return Qe?ie>=ke.right:Te>=ke.bottom}{const ke=st[0].clientRect;return Qe?ie<=ke.left:Te<=ke.top}}_getItemIndexFromPointerPosition(ie,Te,st,Qe){const Et="horizontal"===this.orientation,ke=this._itemPositions.findIndex(({drag:at,clientRect:It})=>{if(at===ie)return!1;if(Qe){const jt=Et?Qe.x:Qe.y;if(at===this._previousSwap.drag&&this._previousSwap.overlaps&&jt===this._previousSwap.delta)return!1}return Et?Te>=Math.floor(It.left)&&Te=Math.floor(It.top)&&st!0,this.sortPredicate=()=>!0,this.beforeStarted=new D.x,this.entered=new D.x,this.exited=new D.x,this.dropped=new D.x,this.sorted=new D.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=T.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new D.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,R.F)(0,B.Z).pipe((0,O.R)(this._stopScrollTimers)).subscribe(()=>{const ke=this._scrollNode,at=this.autoScrollStep;1===this._verticalScrollDirection?ke.scrollBy(0,-at):2===this._verticalScrollDirection&&ke.scrollBy(0,at),1===this._horizontalScrollDirection?ke.scrollBy(-at,0):2===this._horizontalScrollDirection&&ke.scrollBy(at,0)})},this.element=(0,f.fI)(ie),this._document=st,this.withScrollableParents([this.element]),Te.registerDropContainer(this),this._parentPositions=new ve(st),this._sortStrategy=new ge(this.element,Te),this._sortStrategy.withSortPredicate((ke,at)=>this.sortPredicate(ke,at,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(ie,Te,st,Qe){this._draggingStarted(),null==Qe&&this.sortingDisabled&&(Qe=this._draggables.indexOf(ie)),this._sortStrategy.enter(ie,Te,st,Qe),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:ie,container:this,currentIndex:this.getItemIndex(ie)})}exit(ie){this._reset(),this.exited.next({item:ie,container:this})}drop(ie,Te,st,Qe,Et,ke,at,It={}){this._reset(),this.dropped.next({item:ie,currentIndex:Te,previousIndex:st,container:this,previousContainer:Qe,isPointerOverContainer:Et,distance:ke,dropPoint:at,event:It})}withItems(ie){const Te=this._draggables;return this._draggables=ie,ie.forEach(st=>st._withDropContainer(this)),this.isDragging()&&(Te.filter(Qe=>Qe.isDragging()).every(Qe=>-1===ie.indexOf(Qe))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(ie){return this._sortStrategy.direction=ie,this}connectedTo(ie){return this._siblings=ie.slice(),this}withOrientation(ie){return this._sortStrategy.orientation=ie,this}withScrollableParents(ie){const Te=(0,f.fI)(this.element);return this._scrollableElements=-1===ie.indexOf(Te)?[Te,...ie]:ie.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(ie){return this._isDragging?this._sortStrategy.getItemIndex(ie):this._draggables.indexOf(ie)}isReceiving(){return this._activeSiblings.size>0}_sortItem(ie,Te,st,Qe){if(this.sortingDisabled||!this._clientRect||!Ve(this._clientRect,.05,Te,st))return;const Et=this._sortStrategy.sort(ie,Te,st,Qe);Et&&this.sorted.next({previousIndex:Et.previousIndex,currentIndex:Et.currentIndex,container:this,item:ie})}_startScrollingIfNecessary(ie,Te){if(this.autoScrollDisabled)return;let st,Qe=0,Et=0;if(this._parentPositions.positions.forEach((ke,at)=>{at===this._document||!ke.clientRect||st||Ve(ke.clientRect,.05,ie,Te)&&([Qe,Et]=function u(xe,ie,Te,st){const Qe=fe(ie,st),Et=r(ie,Te);let ke=0,at=0;if(Qe){const It=xe.scrollTop;1===Qe?It>0&&(ke=1):xe.scrollHeight-It>xe.clientHeight&&(ke=2)}if(Et){const It=xe.scrollLeft;1===Et?It>0&&(at=1):xe.scrollWidth-It>xe.clientWidth&&(at=2)}return[ke,at]}(at,ke.clientRect,ie,Te),(Qe||Et)&&(st=at))}),!Qe&&!Et){const{width:ke,height:at}=this._viewportRuler.getViewportSize(),It={width:ke,height:at,top:0,right:ke,bottom:at,left:0};Qe=fe(It,Te),Et=r(It,ie),st=window}st&&(Qe!==this._verticalScrollDirection||Et!==this._horizontalScrollDirection||st!==this._scrollNode)&&(this._verticalScrollDirection=Qe,this._horizontalScrollDirection=Et,this._scrollNode=st,(Qe||Et)&&st?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const ie=(0,f.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=ie.msScrollSnapType||ie.scrollSnapType||"",ie.scrollSnapType=ie.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const ie=(0,f.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(ie).clientRect}_reset(){this._isDragging=!1;const ie=(0,f.fI)(this.element).style;ie.scrollSnapType=ie.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(Te=>Te._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(ie,Te){return null!=this._clientRect&&le(this._clientRect,ie,Te)}_getSiblingContainerFromPosition(ie,Te,st){return this._siblings.find(Qe=>Qe._canReceive(ie,Te,st))}_canReceive(ie,Te,st){if(!this._clientRect||!le(this._clientRect,Te,st)||!this.enterPredicate(ie,this))return!1;const Qe=this._getShadowRoot().elementFromPoint(Te,st);if(!Qe)return!1;const Et=(0,f.fI)(this.element);return Qe===Et||Et.contains(Qe)}_startReceiving(ie,Te){const st=this._activeSiblings;!st.has(ie)&&Te.every(Qe=>this.enterPredicate(Qe,this)||this._draggables.indexOf(Qe)>-1)&&(st.add(ie),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(ie){this._activeSiblings.delete(ie),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(ie=>{if(this.isDragging()){const Te=this._parentPositions.handleScroll(ie);Te&&this._sortStrategy.updateOnScroll(Te.top,Te.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const ie=(0,M.kV)((0,f.fI)(this.element));this._cachedShadowRoot=ie||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const ie=this._sortStrategy.getActiveItemsSnapshot().filter(Te=>Te.isDragging());this._siblings.forEach(Te=>Te._startReceiving(this,ie))}}function fe(xe,ie){const{top:Te,bottom:st,height:Qe}=xe,Et=.05*Qe;return ie>=Te-Et&&ie<=Te+Et?1:ie>=st-Et&&ie<=st+Et?2:0}function r(xe,ie){const{left:Te,right:st,width:Qe}=xe,Et=.05*Qe;return ie>=Te-Et&&ie<=Te+Et?1:ie>=st-Et&&ie<=st+Et?2:0}const g=(0,M.i$)({passive:!1,capture:!0});let v=(()=>{class xe{constructor(Te,st){this._ngZone=Te,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=Qe=>Qe.isDragging(),this.pointerMove=new D.x,this.pointerUp=new D.x,this.scroll=new D.x,this._preventDefaultWhileDragging=Qe=>{this._activeDragInstances.length>0&&Qe.preventDefault()},this._persistentTouchmoveListener=Qe=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&Qe.preventDefault(),this.pointerMove.next(Qe))},this._document=st}registerDropContainer(Te){this._dropInstances.has(Te)||this._dropInstances.add(Te)}registerDragItem(Te){this._dragInstances.add(Te),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,g)})}removeDropContainer(Te){this._dropInstances.delete(Te)}removeDragItem(Te){this._dragInstances.delete(Te),this.stopDragging(Te),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,g)}startDragging(Te,st){if(!(this._activeDragInstances.indexOf(Te)>-1)&&(this._activeDragInstances.push(Te),1===this._activeDragInstances.length)){const Qe=st.type.startsWith("touch");this._globalListeners.set(Qe?"touchend":"mouseup",{handler:Et=>this.pointerUp.next(Et),options:!0}).set("scroll",{handler:Et=>this.scroll.next(Et),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:g}),Qe||this._globalListeners.set("mousemove",{handler:Et=>this.pointerMove.next(Et),options:g}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((Et,ke)=>{this._document.addEventListener(ke,Et.handler,Et.options)})})}}stopDragging(Te){const st=this._activeDragInstances.indexOf(Te);st>-1&&(this._activeDragInstances.splice(st,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(Te){return this._activeDragInstances.indexOf(Te)>-1}scrolled(Te){const st=[this.scroll];return Te&&Te!==this._document&&st.push(new w.y(Qe=>this._ngZone.runOutsideAngular(()=>{const ke=at=>{this._activeDragInstances.length&&Qe.next(at)};return Te.addEventListener("scroll",ke,!0),()=>{Te.removeEventListener("scroll",ke,!0)}}))),(0,H.T)(...st)}ngOnDestroy(){this._dragInstances.forEach(Te=>this.removeDragItem(Te)),this._dropInstances.forEach(Te=>this.removeDropContainer(Te)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((Te,st)=>{this._document.removeEventListener(st,Te.handler,Te.options)}),this._globalListeners.clear()}}return xe.\u0275fac=function(Te){return new(Te||xe)(e.LFG(e.R0b),e.LFG(A.K0))},xe.\u0275prov=e.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();const h={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let a=(()=>{class xe{constructor(Te,st,Qe,Et){this._document=Te,this._ngZone=st,this._viewportRuler=Qe,this._dragDropRegistry=Et}createDrag(Te,st=h){return new Me(Te,st,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(Te){return new Ce(Te,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return xe.\u0275fac=function(Te){return new(Te||xe)(e.LFG(A.K0),e.LFG(e.R0b),e.LFG(C.rL),e.LFG(v))},xe.\u0275prov=e.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();const i=new e.OlP("CDK_DRAG_PARENT"),t=new e.OlP("CdkDropListGroup"),o=new e.OlP("CDK_DRAG_CONFIG");let l=0;const d=new e.OlP("CdkDropList");let c=(()=>{class xe{constructor(Te,st,Qe,Et,ke,at,It){this.element=Te,this._changeDetectorRef=Qe,this._scrollDispatcher=Et,this._dir=ke,this._group=at,this._destroyed=new D.x,this.connectedTo=[],this.id="cdk-drop-list-"+l++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.sorted=new e.vpe,this._unsortedItems=new Set,this._dropListRef=st.createDropList(Te),this._dropListRef.data=this,It&&this._assignDefaults(It),this._dropListRef.enterPredicate=(jt,an)=>this.enterPredicate(jt.data,an.data),this._dropListRef.sortPredicate=(jt,an,Kt)=>this.sortPredicate(jt,an.data,Kt.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),xe._dropLists.push(this),at&&at._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(Te){this._dropListRef.disabled=this._disabled=(0,f.Ig)(Te)}addItem(Te){this._unsortedItems.add(Te),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(Te){this._unsortedItems.delete(Te),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((Te,st)=>Te._dragRef.getVisibleElement().compareDocumentPosition(st._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const Te=xe._dropLists.indexOf(this);Te>-1&&xe._dropLists.splice(Te,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(Te){this._dir&&this._dir.change.pipe((0,J.O)(this._dir.value),(0,O.R)(this._destroyed)).subscribe(st=>Te.withDirection(st)),Te.beforeStarted.subscribe(()=>{const st=(0,f.Eq)(this.connectedTo).map(Qe=>"string"==typeof Qe?xe._dropLists.find(ke=>ke.id===Qe):Qe);if(this._group&&this._group._items.forEach(Qe=>{-1===st.indexOf(Qe)&&st.push(Qe)}),!this._scrollableParentsResolved){const Qe=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(Et=>Et.getElementRef().nativeElement);this._dropListRef.withScrollableParents(Qe),this._scrollableParentsResolved=!0}Te.disabled=this.disabled,Te.lockAxis=this.lockAxis,Te.sortingDisabled=(0,f.Ig)(this.sortingDisabled),Te.autoScrollDisabled=(0,f.Ig)(this.autoScrollDisabled),Te.autoScrollStep=(0,f.su)(this.autoScrollStep,2),Te.connectedTo(st.filter(Qe=>Qe&&Qe!==this).map(Qe=>Qe._dropListRef)).withOrientation(this.orientation)})}_handleEvents(Te){Te.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),Te.entered.subscribe(st=>{this.entered.emit({container:this,item:st.item.data,currentIndex:st.currentIndex})}),Te.exited.subscribe(st=>{this.exited.emit({container:this,item:st.item.data}),this._changeDetectorRef.markForCheck()}),Te.sorted.subscribe(st=>{this.sorted.emit({previousIndex:st.previousIndex,currentIndex:st.currentIndex,container:this,item:st.item.data})}),Te.dropped.subscribe(st=>{this.dropped.emit({previousIndex:st.previousIndex,currentIndex:st.currentIndex,previousContainer:st.previousContainer.data,container:st.container.data,item:st.item.data,isPointerOverContainer:st.isPointerOverContainer,distance:st.distance,dropPoint:st.dropPoint,event:st.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(Te){const{lockAxis:st,draggingDisabled:Qe,sortingDisabled:Et,listAutoScrollDisabled:ke,listOrientation:at}=Te;this.disabled=Qe??!1,this.sortingDisabled=Et??!1,this.autoScrollDisabled=ke??!1,this.orientation=at||"vertical",st&&(this.lockAxis=st)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(Te=>Te._dragRef))}}return xe._dropLists=[],xe.\u0275fac=function(Te){return new(Te||xe)(e.Y36(e.SBq),e.Y36(a),e.Y36(e.sBO),e.Y36(C.mF),e.Y36(_e.Is,8),e.Y36(t,12),e.Y36(o,8))},xe.\u0275dir=e.lG2({type:xe,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(Te,st){2&Te&&(e.uIk("id",st.id),e.ekj("cdk-drop-list-disabled",st.disabled)("cdk-drop-list-dragging",st._dropListRef.isDragging())("cdk-drop-list-receiving",st._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[e._Bn([{provide:t,useValue:void 0},{provide:d,useExisting:xe}])]}),xe})();const S=new e.OlP("CdkDragHandle"),ht=new e.OlP("CdkDragPlaceholder"),et=new e.OlP("CdkDragPreview");let Ie=(()=>{class xe{constructor(Te,st,Qe,Et,ke,at,It,jt,an,Kt,on){this.element=Te,this.dropContainer=st,this._ngZone=Et,this._viewContainerRef=ke,this._dir=It,this._changeDetectorRef=an,this._selfHandle=Kt,this._parentDrag=on,this._destroyed=new D.x,this.started=new e.vpe,this.released=new e.vpe,this.ended=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.dropped=new e.vpe,this.moved=new w.y(bn=>{const Tt=this._dragRef.moved.pipe((0,ne.U)(Dt=>({source:this,pointerPosition:Dt.pointerPosition,event:Dt.event,delta:Dt.delta,distance:Dt.distance}))).subscribe(bn);return()=>{Tt.unsubscribe()}}),this._dragRef=jt.createDrag(Te,{dragStartThreshold:at&&null!=at.dragStartThreshold?at.dragStartThreshold:5,pointerDirectionChangeThreshold:at&&null!=at.pointerDirectionChangeThreshold?at.pointerDirectionChangeThreshold:5,zIndex:at?.zIndex}),this._dragRef.data=this,xe._dragInstances.push(this),at&&this._assignDefaults(at),st&&(this._dragRef._withDropContainer(st._dropListRef),st.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(Te){this._disabled=(0,f.Ig)(Te),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(Te){this._dragRef.setFreeDragPosition(Te)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,G.q)(1),(0,O.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(Te){const st=Te.rootElementSelector,Qe=Te.freeDragPosition;st&&!st.firstChange&&this._updateRootElement(),Qe&&!Qe.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const Te=xe._dragInstances.indexOf(this);Te>-1&&xe._dragInstances.splice(Te,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const Te=this.element.nativeElement;let st=Te;var Qe;this.rootElementSelector&&(st=void 0!==Te.closest?Te.closest(this.rootElementSelector):null===(Qe=Te.parentElement)||void 0===Qe?void 0:Qe.closest(this.rootElementSelector)),this._dragRef.withRootElement(st||Te)}_getBoundaryElement(){const Te=this.boundaryElement;return Te?"string"==typeof Te?this.element.nativeElement.closest(Te):(0,f.fI)(Te):null}_syncInputs(Te){Te.beforeStarted.subscribe(()=>{if(!Te.isDragging()){const st=this._dir,Qe=this.dragStartDelay,Et=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,ke=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;Te.disabled=this.disabled,Te.lockAxis=this.lockAxis,Te.dragStartDelay="object"==typeof Qe&&Qe?Qe:(0,f.su)(Qe),Te.constrainPosition=this.constrainPosition,Te.previewClass=this.previewClass,Te.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(Et).withPreviewTemplate(ke).withPreviewContainer(this.previewContainer||"global"),st&&Te.withDirection(st.value)}}),Te.beforeStarted.pipe((0,G.q)(1)).subscribe(()=>{if(this._parentDrag)return void Te.withParent(this._parentDrag._dragRef);let st=this.element.nativeElement.parentElement;for(;st;){if(st.classList.contains("cdk-drag")){var Qe;Te.withParent((null===(Qe=xe._dragInstances.find(Et=>Et.element.nativeElement===st))||void 0===Qe?void 0:Qe._dragRef)||null);break}st=st.parentElement}})}_handleEvents(Te){Te.started.subscribe(st=>{this.started.emit({source:this,event:st.event}),this._changeDetectorRef.markForCheck()}),Te.released.subscribe(st=>{this.released.emit({source:this,event:st.event})}),Te.ended.subscribe(st=>{this.ended.emit({source:this,distance:st.distance,dropPoint:st.dropPoint,event:st.event}),this._changeDetectorRef.markForCheck()}),Te.entered.subscribe(st=>{this.entered.emit({container:st.container.data,item:this,currentIndex:st.currentIndex})}),Te.exited.subscribe(st=>{this.exited.emit({container:st.container.data,item:this})}),Te.dropped.subscribe(st=>{this.dropped.emit({previousIndex:st.previousIndex,currentIndex:st.currentIndex,previousContainer:st.previousContainer.data,container:st.container.data,isPointerOverContainer:st.isPointerOverContainer,item:this,distance:st.distance,dropPoint:st.dropPoint,event:st.event})})}_assignDefaults(Te){const{lockAxis:st,dragStartDelay:Qe,constrainPosition:Et,previewClass:ke,boundaryElement:at,draggingDisabled:It,rootElementSelector:jt,previewContainer:an}=Te;this.disabled=It??!1,this.dragStartDelay=Qe||0,st&&(this.lockAxis=st),Et&&(this.constrainPosition=Et),ke&&(this.previewClass=ke),at&&(this.boundaryElement=at),jt&&(this.rootElementSelector=jt),an&&(this.previewContainer=an)}_setupHandlesListener(){this._handles.changes.pipe((0,J.O)(this._handles),(0,se.b)(Te=>{const st=Te.filter(Qe=>Qe._parentDrag===this).map(Qe=>Qe.element);this._selfHandle&&this.rootElementSelector&&st.push(this.element),this._dragRef.withHandles(st)}),(0,Oe.w)(Te=>(0,H.T)(...Te.map(st=>st._stateChanges.pipe((0,J.O)(st))))),(0,O.R)(this._destroyed)).subscribe(Te=>{const st=this._dragRef,Qe=Te.element.nativeElement;Te.disabled?st.disableHandle(Qe):st.enableHandle(Qe)})}}return xe._dragInstances=[],xe.\u0275fac=function(Te){return new(Te||xe)(e.Y36(e.SBq),e.Y36(d,12),e.Y36(A.K0),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(o,8),e.Y36(_e.Is,8),e.Y36(a),e.Y36(e.sBO),e.Y36(S,10),e.Y36(i,12))},xe.\u0275dir=e.lG2({type:xe,selectors:[["","cdkDrag",""]],contentQueries:function(Te,st,Qe){if(1&Te&&(e.Suo(Qe,et,5),e.Suo(Qe,ht,5),e.Suo(Qe,S,5)),2&Te){let Et;e.iGM(Et=e.CRH())&&(st._previewTemplate=Et.first),e.iGM(Et=e.CRH())&&(st._placeholderTemplate=Et.first),e.iGM(Et=e.CRH())&&(st._handles=Et)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(Te,st){2&Te&&e.ekj("cdk-drag-disabled",st.disabled)("cdk-drag-dragging",st._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[e._Bn([{provide:i,useExisting:xe}]),e.TTD]}),xe})(),De=(()=>{class xe{}return xe.\u0275fac=function(Te){return new(Te||xe)},xe.\u0275mod=e.oAB({type:xe}),xe.\u0275inj=e.cJS({providers:[a],imports:[C.ZD]}),xe})()},29521:($e,he,p)=>{"use strict";p.d(he,{A:()=>W,JH:()=>Be,JU:()=>b,K5:()=>f,Ku:()=>O,LH:()=>Oe,L_:()=>H,MW:()=>o,Mf:()=>C,OC:()=>mt,SV:()=>_e,Sd:()=>G,VM:()=>J,Vb:()=>zi,Z:()=>n,ZH:()=>A,aO:()=>oe,b2:()=>Ln,hY:()=>w,jx:()=>D,oh:()=>se,uR:()=>ne,xE:()=>X,yY:()=>V,zL:()=>T});const A=8,C=9,f=13,b=16,D=17,T=18,w=27,H=32,O=33,J=34,ne=35,G=36,se=37,Oe=38,_e=39,Be=40,V=46,X=48,oe=57,W=65,n=90,o=91,mt=188,Ln=224;function zi(qn,...ci){return ci.length?ci.some(Yi=>qn[Yi]):qn.altKey||qn.shiftKey||qn.ctrlKey||qn.metaKey}},62289:($e,he,p)=>{"use strict";p.d(he,{Yg:()=>Be,u3:()=>z});var e=p(94650),A=p(21281),C=p(77579),M=p(39841),f=p(97272),b=p(69751),D=p(95698),T=p(35684),R=p(78372),B=p(54004),w=p(68675),H=p(82722),O=p(83353);const ne=new Set;let G,se=(()=>{class F{constructor(X){this._platform=X,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):_e}matchMedia(X){return(this._platform.WEBKIT||this._platform.BLINK)&&function Oe(F){if(!ne.has(F))try{G||(G=document.createElement("style"),G.setAttribute("type","text/css"),document.head.appendChild(G)),G.sheet&&(G.sheet.insertRule(`@media ${F} {body{ }}`,0),ne.add(F))}catch(V){console.error(V)}}(X),this._matchMedia(X)}}return F.\u0275fac=function(X){return new(X||F)(e.LFG(O.t4))},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})();function _e(F){return{matches:"all"===F||""===F,media:F,addListener:()=>{},removeListener:()=>{}}}let Be=(()=>{class F{constructor(X,q){this._mediaMatcher=X,this._zone=q,this._queries=new Map,this._destroySubject=new C.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(X){return E((0,A.Eq)(X)).some(pe=>this._registerQuery(pe).mql.matches)}observe(X){const pe=E((0,A.Eq)(X)).map(ye=>this._registerQuery(ye).observable);let le=(0,M.a)(pe);return le=(0,f.z)(le.pipe((0,D.q)(1)),le.pipe((0,T.T)(1),(0,R.b)(0))),le.pipe((0,B.U)(ye=>{const Ve={matches:!1,breakpoints:{}};return ye.forEach(({matches:ve,query:Ke})=>{Ve.matches=Ve.matches||ve,Ve.breakpoints[Ke]=ve}),Ve}))}_registerQuery(X){if(this._queries.has(X))return this._queries.get(X);const q=this._mediaMatcher.matchMedia(X),le={observable:new b.y(ye=>{const Ve=ve=>this._zone.run(()=>ye.next(ve));return q.addListener(Ve),()=>{q.removeListener(Ve)}}).pipe((0,w.O)(q),(0,B.U)(({matches:ye})=>({query:X,matches:ye})),(0,H.R)(this._destroySubject)),mql:q};return this._queries.set(X,le),le}}return F.\u0275fac=function(X){return new(X||F)(e.LFG(se),e.LFG(e.R0b))},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})();function E(F){return F.map(V=>V.split(",")).reduce((V,X)=>V.concat(X)).map(V=>V.trim())}const z={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},49643:($e,he,p)=>{"use strict";p.d(he,{Q8:()=>R,wD:()=>T});var e=p(21281),A=p(94650),C=p(69751),M=p(77579),f=p(78372);let b=(()=>{class B{create(H){return typeof MutationObserver>"u"?null:new MutationObserver(H)}}return B.\u0275fac=function(H){return new(H||B)},B.\u0275prov=A.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),D=(()=>{class B{constructor(H){this._mutationObserverFactory=H,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((H,O)=>this._cleanupObserver(O))}observe(H){const O=(0,e.fI)(H);return new C.y(J=>{const G=this._observeElement(O).subscribe(J);return()=>{G.unsubscribe(),this._unobserveElement(O)}})}_observeElement(H){if(this._observedElements.has(H))this._observedElements.get(H).count++;else{const O=new M.x,J=this._mutationObserverFactory.create(ne=>O.next(ne));J&&J.observe(H,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(H,{observer:J,stream:O,count:1})}return this._observedElements.get(H).stream}_unobserveElement(H){this._observedElements.has(H)&&(this._observedElements.get(H).count--,this._observedElements.get(H).count||this._cleanupObserver(H))}_cleanupObserver(H){if(this._observedElements.has(H)){const{observer:O,stream:J}=this._observedElements.get(H);O&&O.disconnect(),J.complete(),this._observedElements.delete(H)}}}return B.\u0275fac=function(H){return new(H||B)(A.LFG(b))},B.\u0275prov=A.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),T=(()=>{class B{constructor(H,O,J){this._contentObserver=H,this._elementRef=O,this._ngZone=J,this.event=new A.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(H){this._disabled=(0,e.Ig)(H),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(H){this._debounce=(0,e.su)(H),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const H=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?H.pipe((0,f.b)(this.debounce)):H).subscribe(this.event)})}_unsubscribe(){var H;null===(H=this._currentSubscription)||void 0===H||H.unsubscribe()}}return B.\u0275fac=function(H){return new(H||B)(A.Y36(D),A.Y36(A.SBq),A.Y36(A.R0b))},B.\u0275dir=A.lG2({type:B,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),B})(),R=(()=>{class B{}return B.\u0275fac=function(H){return new(H||B)},B.\u0275mod=A.oAB({type:B}),B.\u0275inj=A.cJS({providers:[b]}),B})()},98184:($e,he,p)=>{"use strict";p.d(he,{Iu:()=>oe,U8:()=>Ce,X_:()=>V,Xj:()=>Ue,_G:()=>N,aV:()=>ee,pI:()=>ge,xu:()=>Ee});var e=p(67376),A=p(36895),C=p(94650),M=p(21281),f=p(83353),b=p(40445),D=p(84080),T=p(77579),R=p(50727),B=p(56451),w=p(95698),H=p(82722),O=p(22529),J=p(29521);const ne=(0,f.Mq)();class G{constructor(u,g){this._viewportRuler=u,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=g}attach(){}enable(){if(this._canBeEnabled()){const u=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=u.style.left||"",this._previousHTMLStyles.top=u.style.top||"",u.style.left=(0,M.HM)(-this._previousScrollPosition.left),u.style.top=(0,M.HM)(-this._previousScrollPosition.top),u.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const u=this._document.documentElement,v=u.style,h=this._document.body.style,a=v.scrollBehavior||"",i=h.scrollBehavior||"";this._isEnabled=!1,v.left=this._previousHTMLStyles.left,v.top=this._previousHTMLStyles.top,u.classList.remove("cdk-global-scrollblock"),ne&&(v.scrollBehavior=h.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ne&&(v.scrollBehavior=a,h.scrollBehavior=i)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const g=this._document.body,v=this._viewportRuler.getViewportSize();return g.scrollHeight>v.height||g.scrollWidth>v.width}}class Oe{constructor(u,g,v,h){this._scrollDispatcher=u,this._ngZone=g,this._viewportRuler=v,this._config=h,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(u){this._overlayRef=u}enable(){if(this._scrollSubscription)return;const u=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=u.subscribe(()=>{const g=this._viewportRuler.getViewportScrollPosition().top;Math.abs(g-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=u.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class _e{enable(){}disable(){}attach(){}}function Be(r,u){return u.some(g=>r.bottomg.bottom||r.rightg.right)}function E(r,u){return u.some(g=>r.topg.bottom||r.leftg.right)}class z{constructor(u,g,v,h){this._scrollDispatcher=u,this._viewportRuler=g,this._ngZone=v,this._config=h,this._scrollSubscription=null}attach(u){this._overlayRef=u}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const g=this._overlayRef.overlayElement.getBoundingClientRect(),{width:v,height:h}=this._viewportRuler.getViewportSize();Be(g,[{width:v,height:h,bottom:h,right:v,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let F=(()=>{class r{constructor(g,v,h,a){this._scrollDispatcher=g,this._viewportRuler=v,this._ngZone=h,this.noop=()=>new _e,this.close=i=>new Oe(this._scrollDispatcher,this._ngZone,this._viewportRuler,i),this.block=()=>new G(this._viewportRuler,this._document),this.reposition=i=>new z(this._scrollDispatcher,this._viewportRuler,this._ngZone,i),this._document=a}}return r.\u0275fac=function(g){return new(g||r)(C.LFG(e.mF),C.LFG(e.rL),C.LFG(C.R0b),C.LFG(A.K0))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class V{constructor(u){if(this.scrollStrategy=new _e,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,u){const g=Object.keys(u);for(const v of g)void 0!==u[v]&&(this[v]=u[v])}}}class pe{constructor(u,g){this.connectionPair=u,this.scrollableViewProperties=g}}let Ve=(()=>{class r{constructor(g){this._attachedOverlays=[],this._document=g}ngOnDestroy(){this.detach()}add(g){this.remove(g),this._attachedOverlays.push(g)}remove(g){const v=this._attachedOverlays.indexOf(g);v>-1&&this._attachedOverlays.splice(v,1),0===this._attachedOverlays.length&&this.detach()}}return r.\u0275fac=function(g){return new(g||r)(C.LFG(A.K0))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ve=(()=>{class r extends Ve{constructor(g,v){super(g),this._ngZone=v,this._keydownListener=h=>{const a=this._attachedOverlays;for(let i=a.length-1;i>-1;i--)if(a[i]._keydownEvents.observers.length>0){const t=a[i]._keydownEvents;this._ngZone?this._ngZone.run(()=>t.next(h)):t.next(h);break}}}add(g){super.add(g),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return r.\u0275fac=function(g){return new(g||r)(C.LFG(A.K0),C.LFG(C.R0b,8))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ke=(()=>{class r extends Ve{constructor(g,v,h){super(g),this._platform=v,this._ngZone=h,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=(0,f.sA)(a)},this._clickListener=a=>{const i=(0,f.sA)(a),t="click"===a.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let o=n.length-1;o>-1;o--){const s=n[o];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(s.overlayElement.contains(i)||s.overlayElement.contains(t))break;const l=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(a)):l.next(a)}}}add(g){if(super.add(g),!this._isAttached){const v=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(v)):this._addEventListeners(v),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=v.style.cursor,v.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const g=this._document.body;g.removeEventListener("pointerdown",this._pointerDownListener,!0),g.removeEventListener("click",this._clickListener,!0),g.removeEventListener("auxclick",this._clickListener,!0),g.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(g.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(g){g.addEventListener("pointerdown",this._pointerDownListener,!0),g.addEventListener("click",this._clickListener,!0),g.addEventListener("auxclick",this._clickListener,!0),g.addEventListener("contextmenu",this._clickListener,!0)}}return r.\u0275fac=function(g){return new(g||r)(C.LFG(A.K0),C.LFG(f.t4),C.LFG(C.R0b,8))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ue=(()=>{class r{constructor(g,v){this._platform=v,this._document=g}ngOnDestroy(){var g;null===(g=this._containerElement)||void 0===g||g.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const g="cdk-overlay-container";if(this._platform.isBrowser||(0,f.Oy)()){const h=this._document.querySelectorAll(`.${g}[platform="server"], .${g}[platform="test"]`);for(let a=0;athis._backdropClick.next(l),this._backdropTransitionendHandler=l=>{this._disposeBackdrop(l.target)},this._keydownEvents=new T.x,this._outsidePointerEvents=new T.x,h.scrollStrategy&&(this._scrollStrategy=h.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=h.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(u){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const g=this._portalOutlet.attach(u);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof g?.onDestroy&&g.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),g}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const u=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),u}dispose(){var u;const g=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(u=this._host)||void 0===u||u.remove(),this._previousHostParent=this._pane=this._host=null,g&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(u){u!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=u,this.hasAttached()&&(u.attach(this),this.updatePosition()))}updateSize(u){this._config={...this._config,...u},this._updateElementSize()}setDirection(u){this._config={...this._config,direction:u},this._updateElementDirection()}addPanelClass(u){this._pane&&this._toggleClasses(this._pane,u,!0)}removePanelClass(u){this._pane&&this._toggleClasses(this._pane,u,!1)}getDirection(){const u=this._config.direction;return u?"string"==typeof u?u:u.value:"ltr"}updateScrollStrategy(u){u!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=u,this.hasAttached()&&(u.attach(this),u.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const u=this._pane.style;u.width=(0,M.HM)(this._config.width),u.height=(0,M.HM)(this._config.height),u.minWidth=(0,M.HM)(this._config.minWidth),u.minHeight=(0,M.HM)(this._config.minHeight),u.maxWidth=(0,M.HM)(this._config.maxWidth),u.maxHeight=(0,M.HM)(this._config.maxHeight)}_togglePointerEvents(u){this._pane.style.pointerEvents=u?"":"none"}_attachBackdrop(){const u="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(u)})}):this._backdropElement.classList.add(u)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const u=this._backdropElement;if(u){if(this._animationsDisabled)return void this._disposeBackdrop(u);u.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{u.addEventListener("transitionend",this._backdropTransitionendHandler)}),u.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(u)},500))}}_toggleClasses(u,g,v){const h=(0,M.Eq)(g||[]).filter(a=>!!a);h.length&&(v?u.classList.add(...h):u.classList.remove(...h))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const u=this._ngZone.onStable.pipe((0,H.R)((0,B.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),u.unsubscribe())})})}_disposeScrollStrategy(){const u=this._scrollStrategy;u&&(u.disable(),u.detach&&u.detach())}_disposeBackdrop(u){u&&(u.removeEventListener("click",this._backdropClickHandler),u.removeEventListener("transitionend",this._backdropTransitionendHandler),u.remove(),this._backdropElement===u&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const ce="cdk-overlay-connected-position-bounding-box",k=/([A-Za-z%]+)$/;class N{constructor(u,g,v,h,a){this._viewportRuler=g,this._document=v,this._platform=h,this._overlayContainer=a,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new T.x,this._resizeSubscription=R.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(u)}get positions(){return this._preferredPositions}attach(u){this._validatePositions(),u.hostElement.classList.add(ce),this._overlayRef=u,this._boundingBox=u.hostElement,this._pane=u.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const u=this._originRect,g=this._overlayRect,v=this._viewportRect,h=this._containerRect,a=[];let i;for(let t of this._preferredPositions){let n=this._getOriginPoint(u,h,t),o=this._getOverlayPoint(n,g,t),s=this._getOverlayFit(o,g,v,t);if(s.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(t,n);this._canFitWithFlexibleDimensions(s,o,v)?a.push({position:t,origin:n,overlayRect:g,boundingBoxRect:this._calculateBoundingBoxRect(n,t)}):(!i||i.overlayFit.visibleArean&&(n=s,t=o)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&be(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ce),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const u=this._lastPosition;if(u){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const g=this._getOriginPoint(this._originRect,this._containerRect,u);this._applyPosition(u,g)}else this.apply()}withScrollableContainers(u){return this._scrollables=u,this}withPositions(u){return this._preferredPositions=u,-1===u.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(u){return this._viewportMargin=u,this}withFlexibleDimensions(u=!0){return this._hasFlexibleDimensions=u,this}withGrowAfterOpen(u=!0){return this._growAfterOpen=u,this}withPush(u=!0){return this._canPush=u,this}withLockedPosition(u=!0){return this._positionLocked=u,this}setOrigin(u){return this._origin=u,this}withDefaultOffsetX(u){return this._offsetX=u,this}withDefaultOffsetY(u){return this._offsetY=u,this}withTransformOriginOn(u){return this._transformOriginSelector=u,this}_getOriginPoint(u,g,v){let h,a;if("center"==v.originX)h=u.left+u.width/2;else{const i=this._isRtl()?u.right:u.left,t=this._isRtl()?u.left:u.right;h="start"==v.originX?i:t}return g.left<0&&(h-=g.left),a="center"==v.originY?u.top+u.height/2:"top"==v.originY?u.top:u.bottom,g.top<0&&(a-=g.top),{x:h,y:a}}_getOverlayPoint(u,g,v){let h,a;return h="center"==v.overlayX?-g.width/2:"start"===v.overlayX?this._isRtl()?-g.width:0:this._isRtl()?0:-g.width,a="center"==v.overlayY?-g.height/2:"top"==v.overlayY?0:-g.height,{x:u.x+h,y:u.y+a}}_getOverlayFit(u,g,v,h){const a=ue(g);let{x:i,y:t}=u,n=this._getOffset(h,"x"),o=this._getOffset(h,"y");n&&(i+=n),o&&(t+=o);let d=0-t,c=t+a.height-v.height,S=this._subtractOverflows(a.width,0-i,i+a.width-v.width),$=this._subtractOverflows(a.height,d,c),ht=S*$;return{visibleArea:ht,isCompletelyWithinViewport:a.width*a.height===ht,fitsInViewportVertically:$===a.height,fitsInViewportHorizontally:S==a.width}}_canFitWithFlexibleDimensions(u,g,v){if(this._hasFlexibleDimensions){const h=v.bottom-g.y,a=v.right-g.x,i=W(this._overlayRef.getConfig().minHeight),t=W(this._overlayRef.getConfig().minWidth),o=u.fitsInViewportHorizontally||null!=t&&t<=a;return(u.fitsInViewportVertically||null!=i&&i<=h)&&o}return!1}_pushOverlayOnScreen(u,g,v){if(this._previousPushAmount&&this._positionLocked)return{x:u.x+this._previousPushAmount.x,y:u.y+this._previousPushAmount.y};const h=ue(g),a=this._viewportRect,i=Math.max(u.x+h.width-a.width,0),t=Math.max(u.y+h.height-a.height,0),n=Math.max(a.top-v.top-u.y,0),o=Math.max(a.left-v.left-u.x,0);let s=0,l=0;return s=h.width<=a.width?o||-i:u.xS&&!this._isInitialRender&&!this._growAfterOpen&&(i=u.y-S/2)}if("end"===g.overlayX&&!h||"start"===g.overlayX&&h)d=v.width-u.x+this._viewportMargin,s=u.x-this._viewportMargin;else if("start"===g.overlayX&&!h||"end"===g.overlayX&&h)l=u.x,s=v.right-u.x;else{const c=Math.min(v.right-u.x+v.left,u.x),S=this._lastBoundingBoxSize.width;s=2*c,l=u.x-c,s>S&&!this._isInitialRender&&!this._growAfterOpen&&(l=u.x-S/2)}return{top:i,left:l,bottom:t,right:d,width:s,height:a}}_setBoundingBoxStyles(u,g){const v=this._calculateBoundingBoxRect(u,g);!this._isInitialRender&&!this._growAfterOpen&&(v.height=Math.min(v.height,this._lastBoundingBoxSize.height),v.width=Math.min(v.width,this._lastBoundingBoxSize.width));const h={};if(this._hasExactPosition())h.top=h.left="0",h.bottom=h.right=h.maxHeight=h.maxWidth="",h.width=h.height="100%";else{const a=this._overlayRef.getConfig().maxHeight,i=this._overlayRef.getConfig().maxWidth;h.height=(0,M.HM)(v.height),h.top=(0,M.HM)(v.top),h.bottom=(0,M.HM)(v.bottom),h.width=(0,M.HM)(v.width),h.left=(0,M.HM)(v.left),h.right=(0,M.HM)(v.right),h.alignItems="center"===g.overlayX?"center":"end"===g.overlayX?"flex-end":"flex-start",h.justifyContent="center"===g.overlayY?"center":"bottom"===g.overlayY?"flex-end":"flex-start",a&&(h.maxHeight=(0,M.HM)(a)),i&&(h.maxWidth=(0,M.HM)(i))}this._lastBoundingBoxSize=v,be(this._boundingBox.style,h)}_resetBoundingBoxStyles(){be(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){be(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(u,g){const v={},h=this._hasExactPosition(),a=this._hasFlexibleDimensions,i=this._overlayRef.getConfig();if(h){const s=this._viewportRuler.getViewportScrollPosition();be(v,this._getExactOverlayY(g,u,s)),be(v,this._getExactOverlayX(g,u,s))}else v.position="static";let t="",n=this._getOffset(g,"x"),o=this._getOffset(g,"y");n&&(t+=`translateX(${n}px) `),o&&(t+=`translateY(${o}px)`),v.transform=t.trim(),i.maxHeight&&(h?v.maxHeight=(0,M.HM)(i.maxHeight):a&&(v.maxHeight="")),i.maxWidth&&(h?v.maxWidth=(0,M.HM)(i.maxWidth):a&&(v.maxWidth="")),be(this._pane.style,v)}_getExactOverlayY(u,g,v){let h={top:"",bottom:""},a=this._getOverlayPoint(g,this._overlayRect,u);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,v)),"bottom"===u.overlayY?h.bottom=this._document.documentElement.clientHeight-(a.y+this._overlayRect.height)+"px":h.top=(0,M.HM)(a.y),h}_getExactOverlayX(u,g,v){let i,h={left:"",right:""},a=this._getOverlayPoint(g,this._overlayRect,u);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,v)),i=this._isRtl()?"end"===u.overlayX?"left":"right":"end"===u.overlayX?"right":"left","right"===i?h.right=this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)+"px":h.left=(0,M.HM)(a.x),h}_getScrollVisibility(){const u=this._getOriginRect(),g=this._pane.getBoundingClientRect(),v=this._scrollables.map(h=>h.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:E(u,v),isOriginOutsideView:Be(u,v),isOverlayClipped:E(g,v),isOverlayOutsideView:Be(g,v)}}_subtractOverflows(u,...g){return g.reduce((v,h)=>v-Math.max(h,0),u)}_getNarrowedViewportRect(){const u=this._document.documentElement.clientWidth,g=this._document.documentElement.clientHeight,v=this._viewportRuler.getViewportScrollPosition();return{top:v.top+this._viewportMargin,left:v.left+this._viewportMargin,right:v.left+u-this._viewportMargin,bottom:v.top+g-this._viewportMargin,width:u-2*this._viewportMargin,height:g-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(u,g){return"x"===g?u.offsetX??this._offsetX:u.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(u){this._pane&&(0,M.Eq)(u).forEach(g=>{""!==g&&-1===this._appliedPanelClasses.indexOf(g)&&(this._appliedPanelClasses.push(g),this._pane.classList.add(g))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(u=>{this._pane.classList.remove(u)}),this._appliedPanelClasses=[])}_getOriginRect(){const u=this._origin;if(u instanceof C.SBq)return u.nativeElement.getBoundingClientRect();if(u instanceof Element)return u.getBoundingClientRect();const g=u.width||0,v=u.height||0;return{top:u.y,bottom:u.y+v,left:u.x,right:u.x+g,height:v,width:g}}}function be(r,u){for(let g in u)u.hasOwnProperty(g)&&(r[g]=u[g]);return r}function W(r){if("number"!=typeof r&&null!=r){const[u,g]=r.split(k);return g&&"px"!==g?null:parseFloat(u)}return r||null}function ue(r){return{top:Math.floor(r.top),right:Math.floor(r.right),bottom:Math.floor(r.bottom),left:Math.floor(r.left),width:Math.floor(r.width),height:Math.floor(r.height)}}const je="cdk-global-overlay-wrapper";class ut{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(u){const g=u.getConfig();this._overlayRef=u,this._width&&!g.width&&u.updateSize({width:this._width}),this._height&&!g.height&&u.updateSize({height:this._height}),u.hostElement.classList.add(je),this._isDisposed=!1}top(u=""){return this._bottomOffset="",this._topOffset=u,this._alignItems="flex-start",this}left(u=""){return this._xOffset=u,this._xPosition="left",this}bottom(u=""){return this._topOffset="",this._bottomOffset=u,this._alignItems="flex-end",this}right(u=""){return this._xOffset=u,this._xPosition="right",this}start(u=""){return this._xOffset=u,this._xPosition="start",this}end(u=""){return this._xOffset=u,this._xPosition="end",this}width(u=""){return this._overlayRef?this._overlayRef.updateSize({width:u}):this._width=u,this}height(u=""){return this._overlayRef?this._overlayRef.updateSize({height:u}):this._height=u,this}centerHorizontally(u=""){return this.left(u),this._xPosition="center",this}centerVertically(u=""){return this.top(u),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const u=this._overlayRef.overlayElement.style,g=this._overlayRef.hostElement.style,v=this._overlayRef.getConfig(),{width:h,height:a,maxWidth:i,maxHeight:t}=v,n=!("100%"!==h&&"100vw"!==h||i&&"100%"!==i&&"100vw"!==i),o=!("100%"!==a&&"100vh"!==a||t&&"100%"!==t&&"100vh"!==t),s=this._xPosition,l=this._xOffset,d="rtl"===this._overlayRef.getConfig().direction;let c="",S="",$="";n?$="flex-start":"center"===s?($="center",d?S=l:c=l):d?"left"===s||"end"===s?($="flex-end",c=l):("right"===s||"start"===s)&&($="flex-start",S=l):"left"===s||"start"===s?($="flex-start",c=l):("right"===s||"end"===s)&&($="flex-end",S=l),u.position=this._cssPosition,u.marginLeft=n?"0":c,u.marginTop=o?"0":this._topOffset,u.marginBottom=this._bottomOffset,u.marginRight=n?"0":S,g.justifyContent=$,g.alignItems=o?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const u=this._overlayRef.overlayElement.style,g=this._overlayRef.hostElement,v=g.style;g.classList.remove(je),v.justifyContent=v.alignItems=u.marginTop=u.marginBottom=u.marginLeft=u.marginRight=u.position="",this._overlayRef=null,this._isDisposed=!0}}let tt=(()=>{class r{constructor(g,v,h,a){this._viewportRuler=g,this._document=v,this._platform=h,this._overlayContainer=a}global(){return new ut}flexibleConnectedTo(g){return new N(g,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return r.\u0275fac=function(g){return new(g||r)(C.LFG(e.rL),C.LFG(A.K0),C.LFG(f.t4),C.LFG(Ue))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),vt=0,ee=(()=>{class r{constructor(g,v,h,a,i,t,n,o,s,l,d,c){this.scrollStrategies=g,this._overlayContainer=v,this._componentFactoryResolver=h,this._positionBuilder=a,this._keyboardDispatcher=i,this._injector=t,this._ngZone=n,this._document=o,this._directionality=s,this._location=l,this._outsideClickDispatcher=d,this._animationsModuleType=c}create(g){const v=this._createHostElement(),h=this._createPaneElement(v),a=this._createPortalOutlet(h),i=new V(g);return i.direction=i.direction||this._directionality.value,new oe(a,v,h,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(g){const v=this._document.createElement("div");return v.id="cdk-overlay-"+vt++,v.classList.add("cdk-overlay-pane"),g.appendChild(v),v}_createHostElement(){const g=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(g),g}_createPortalOutlet(g){return this._appRef||(this._appRef=this._injector.get(C.z2F)),new D.u0(g,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return r.\u0275fac=function(g){return new(g||r)(C.LFG(F),C.LFG(Ue),C.LFG(C._Vd),C.LFG(tt),C.LFG(ve),C.LFG(C.zs3),C.LFG(C.R0b),C.LFG(A.K0),C.LFG(b.Is),C.LFG(A.Ye),C.LFG(Ke),C.LFG(C.QbO,8))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac}),r})();const nt=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ae=new C.OlP("cdk-connected-overlay-scroll-strategy");let Ee=(()=>{class r{constructor(g){this.elementRef=g}}return r.\u0275fac=function(g){return new(g||r)(C.Y36(C.SBq))},r.\u0275dir=C.lG2({type:r,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),r})(),ge=(()=>{class r{constructor(g,v,h,a,i){this._overlay=g,this._dir=i,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=R.w0.EMPTY,this._attachSubscription=R.w0.EMPTY,this._detachSubscription=R.w0.EMPTY,this._positionSubscription=R.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new C.vpe,this.positionChange=new C.vpe,this.attach=new C.vpe,this.detach=new C.vpe,this.overlayKeydown=new C.vpe,this.overlayOutsideClick=new C.vpe,this._templatePortal=new D.UE(v,h),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(g){this._offsetX=g,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(g){this._offsetY=g,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(g){this._hasBackdrop=(0,M.Ig)(g)}get lockPosition(){return this._lockPosition}set lockPosition(g){this._lockPosition=(0,M.Ig)(g)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(g){this._flexibleDimensions=(0,M.Ig)(g)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(g){this._growAfterOpen=(0,M.Ig)(g)}get push(){return this._push}set push(g){this._push=(0,M.Ig)(g)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(g){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),g.origin&&this.open&&this._position.apply()),g.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=nt);const g=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=g.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=g.detachments().subscribe(()=>this.detach.emit()),g.keydownEvents().subscribe(v=>{this.overlayKeydown.next(v),v.keyCode===J.hY&&!this.disableClose&&!(0,J.Vb)(v)&&(v.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(v=>{this.overlayOutsideClick.next(v)})}_buildConfig(){const g=this._position=this.positionStrategy||this._createPositionStrategy(),v=new V({direction:this._dir,positionStrategy:g,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(v.width=this.width),(this.height||0===this.height)&&(v.height=this.height),(this.minWidth||0===this.minWidth)&&(v.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(v.minHeight=this.minHeight),this.backdropClass&&(v.backdropClass=this.backdropClass),this.panelClass&&(v.panelClass=this.panelClass),v}_updatePositionStrategy(g){const v=this.positions.map(h=>({originX:h.originX,originY:h.originY,overlayX:h.overlayX,overlayY:h.overlayY,offsetX:h.offsetX||this.offsetX,offsetY:h.offsetY||this.offsetY,panelClass:h.panelClass||void 0}));return g.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(v).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const g=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(g),g}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Ee?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(g=>{this.backdropClick.emit(g)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,O.o)(()=>this.positionChange.observers.length>0)).subscribe(g=>{this.positionChange.emit(g),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return r.\u0275fac=function(g){return new(g||r)(C.Y36(ee),C.Y36(C.Rgc),C.Y36(C.s_b),C.Y36(Ae),C.Y36(b.Is,8))},r.\u0275dir=C.lG2({type:r,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[C.TTD]}),r})();const Ne={provide:Ae,deps:[ee],useFactory:function we(r){return()=>r.scrollStrategies.reposition()}};let Ce=(()=>{class r{}return r.\u0275fac=function(g){return new(g||r)},r.\u0275mod=C.oAB({type:r}),r.\u0275inj=C.cJS({providers:[ee,Ne],imports:[b.vT,D.eL,e.Cl,e.Cl]}),r})()},83353:($e,he,p)=>{"use strict";p.d(he,{Mq:()=>J,Oy:()=>E,_i:()=>ne,ht:()=>_e,i$:()=>w,kV:()=>Oe,qK:()=>T,sA:()=>Be,t4:()=>M,ud:()=>f});var e=p(94650),A=p(36895);let C;try{C=typeof Intl<"u"&&Intl.v8BreakIterator}catch{C=!1}let b,M=(()=>{class z{constructor(V){this._platformId=V,this.isBrowser=this._platformId?(0,A.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!C)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return z.\u0275fac=function(V){return new(V||z)(e.LFG(e.Lbi))},z.\u0275prov=e.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),f=(()=>{class z{}return z.\u0275fac=function(V){return new(V||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({}),z})();const D=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function T(){if(b)return b;if("object"!=typeof document||!document)return b=new Set(D),b;let z=document.createElement("input");return b=new Set(D.filter(F=>(z.setAttribute("type",F),z.type===F))),b}let R,H,O,G;function w(z){return function B(){if(null==R&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>R=!0}))}finally{R=R||!1}return R}()?z:!!z.capture}function J(){if(null==O){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return O=!1,O;if("scrollBehavior"in document.documentElement.style)O=!0;else{const z=Element.prototype.scrollTo;O=!!z&&!/\{\s*\[native code\]\s*\}/.test(z.toString())}}return O}function ne(){if("object"!=typeof document||!document)return 0;if(null==H){const z=document.createElement("div"),F=z.style;z.dir="rtl",F.width="1px",F.overflow="auto",F.visibility="hidden",F.pointerEvents="none",F.position="absolute";const V=document.createElement("div"),X=V.style;X.width="2px",X.height="1px",z.appendChild(V),document.body.appendChild(z),H=0,0===z.scrollLeft&&(z.scrollLeft=1,H=0===z.scrollLeft?1:2),z.remove()}return H}function Oe(z){if(function se(){if(null==G){const z=typeof document<"u"?document.head:null;G=!(!z||!z.createShadowRoot&&!z.attachShadow)}return G}()){const F=z.getRootNode?z.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&F instanceof ShadowRoot)return F}return null}function _e(){let z=typeof document<"u"&&document?document.activeElement:null;for(;z&&z.shadowRoot;){const F=z.shadowRoot.activeElement;if(F===z)break;z=F}return z}function Be(z){return z.composedPath?z.composedPath()[0]:z.target}function E(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:($e,he,p)=>{"use strict";p.d(he,{C5:()=>B,Pl:()=>_e,UE:()=>w,eL:()=>E,en:()=>O,ig:()=>se,u0:()=>ne});var e=p(94650),A=p(36895);class R{attach(V){return this._attachedHost=V,V.attach(this)}detach(){let V=this._attachedHost;null!=V&&(this._attachedHost=null,V.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(V){this._attachedHost=V}}class B extends R{constructor(V,X,q,pe){super(),this.component=V,this.viewContainerRef=X,this.injector=q,this.componentFactoryResolver=pe}}class w extends R{constructor(V,X,q,pe){super(),this.templateRef=V,this.viewContainerRef=X,this.context=q,this.injector=pe}get origin(){return this.templateRef.elementRef}attach(V,X=this.context){return this.context=X,super.attach(V)}detach(){return this.context=void 0,super.detach()}}class H extends R{constructor(V){super(),this.element=V instanceof e.SBq?V.nativeElement:V}}class O{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(V){return V instanceof B?(this._attachedPortal=V,this.attachComponentPortal(V)):V instanceof w?(this._attachedPortal=V,this.attachTemplatePortal(V)):this.attachDomPortal&&V instanceof H?(this._attachedPortal=V,this.attachDomPortal(V)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(V){this._disposeFn=V}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ne extends O{constructor(V,X,q,pe,le){super(),this.outletElement=V,this._componentFactoryResolver=X,this._appRef=q,this._defaultInjector=pe,this.attachDomPortal=ye=>{const Ve=ye.element,ve=this._document.createComment("dom-portal");Ve.parentNode.insertBefore(ve,Ve),this.outletElement.appendChild(Ve),this._attachedPortal=ye,super.setDisposeFn(()=>{ve.parentNode&&ve.parentNode.replaceChild(Ve,ve)})},this._document=le}attachComponentPortal(V){const q=(V.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(V.component);let pe;return V.viewContainerRef?(pe=V.viewContainerRef.createComponent(q,V.viewContainerRef.length,V.injector||V.viewContainerRef.injector),this.setDisposeFn(()=>pe.destroy())):(pe=q.create(V.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(pe.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(pe.hostView),pe.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(pe)),this._attachedPortal=V,pe}attachTemplatePortal(V){let X=V.viewContainerRef,q=X.createEmbeddedView(V.templateRef,V.context,{injector:V.injector});return q.rootNodes.forEach(pe=>this.outletElement.appendChild(pe)),q.detectChanges(),this.setDisposeFn(()=>{let pe=X.indexOf(q);-1!==pe&&X.remove(pe)}),this._attachedPortal=V,q}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(V){return V.hostView.rootNodes[0]}}let se=(()=>{class F extends w{constructor(X,q){super(X,q)}}return F.\u0275fac=function(X){return new(X||F)(e.Y36(e.Rgc),e.Y36(e.s_b))},F.\u0275dir=e.lG2({type:F,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),F})(),_e=(()=>{class F extends O{constructor(X,q,pe){super(),this._componentFactoryResolver=X,this._viewContainerRef=q,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=le=>{const ye=le.element,Ve=this._document.createComment("dom-portal");le.setAttachedHost(this),ye.parentNode.insertBefore(Ve,ye),this._getRootNode().appendChild(ye),this._attachedPortal=le,super.setDisposeFn(()=>{Ve.parentNode&&Ve.parentNode.replaceChild(ye,Ve)})},this._document=pe}get portal(){return this._attachedPortal}set portal(X){this.hasAttached()&&!X&&!this._isInitialized||(this.hasAttached()&&super.detach(),X&&super.attach(X),this._attachedPortal=X||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(X){X.setAttachedHost(this);const q=null!=X.viewContainerRef?X.viewContainerRef:this._viewContainerRef,le=(X.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(X.component),ye=q.createComponent(le,q.length,X.injector||q.injector);return q!==this._viewContainerRef&&this._getRootNode().appendChild(ye.hostView.rootNodes[0]),super.setDisposeFn(()=>ye.destroy()),this._attachedPortal=X,this._attachedRef=ye,this.attached.emit(ye),ye}attachTemplatePortal(X){X.setAttachedHost(this);const q=this._viewContainerRef.createEmbeddedView(X.templateRef,X.context,{injector:X.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=X,this._attachedRef=q,this.attached.emit(q),q}_getRootNode(){const X=this._viewContainerRef.element.nativeElement;return X.nodeType===X.ELEMENT_NODE?X:X.parentNode}}return F.\u0275fac=function(X){return new(X||F)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(A.K0))},F.\u0275dir=e.lG2({type:F,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),F})(),E=(()=>{class F{}return F.\u0275fac=function(X){return new(X||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({}),F})()},67376:($e,he,p)=>{"use strict";p.d(he,{Cl:()=>ut,N7:()=>be,PQ:()=>ve,ZD:()=>je,mF:()=>Ve,rL:()=>Ue,x0:()=>ue,xd:()=>le});var e=p(21281),A=p(94650),C=p(77579),M=p(39646),f=p(69751),b=p(54968),D=p(66406),T=p(53101),R=p(50727),B=p(45191),w=p(71884),H=p(23601),O=p(39300),J=p(82722),ne=p(68675),G=p(11520),se=p(63900),Oe=p(34782),_e=p(83353),Be=p(36895),E=p(40445),z=p(95017);const F=["contentWrapper"],V=["*"],X=new A.OlP("VIRTUAL_SCROLL_STRATEGY");class q{constructor(vt,ee,nt){this._scrolledIndexChange=new C.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,w.x)()),this._viewport=null,this._itemSize=vt,this._minBufferPx=ee,this._maxBufferPx=nt}attach(vt){this._viewport=vt,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(vt,ee,nt){this._itemSize=vt,this._minBufferPx=ee,this._maxBufferPx=nt,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(vt,ee){this._viewport&&this._viewport.scrollToOffset(vt*this._itemSize,ee)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const vt=this._viewport.getRenderedRange(),ee={start:vt.start,end:vt.end},nt=this._viewport.getViewportSize(),Ae=this._viewport.getDataLength();let Ee=this._viewport.measureScrollOffset(),ge=this._itemSize>0?Ee/this._itemSize:0;if(ee.end>Ae){const Ne=Math.ceil(nt/this._itemSize),Ce=Math.max(0,Math.min(ge,Ae-Ne));ge!=Ce&&(ge=Ce,Ee=Ce*this._itemSize,ee.start=Math.floor(ge)),ee.end=Math.max(0,Math.min(Ae,ee.start+Ne))}const we=Ee-ee.start*this._itemSize;if(we0&&(ee.end=Math.min(Ae,ee.end+Ce),ee.start=Math.max(0,Math.floor(ge-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(ee),this._viewport.setRenderedContentOffset(this._itemSize*ee.start),this._scrolledIndexChange.next(Math.floor(ge))}}function pe(tt){return tt._scrollStrategy}let le=(()=>{class tt{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new q(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(ee){this._itemSize=(0,e.su)(ee)}get minBufferPx(){return this._minBufferPx}set minBufferPx(ee){this._minBufferPx=(0,e.su)(ee)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(ee){this._maxBufferPx=(0,e.su)(ee)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return tt.\u0275fac=function(ee){return new(ee||tt)},tt.\u0275dir=A.lG2({type:tt,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[A._Bn([{provide:X,useFactory:pe,deps:[(0,A.Gpc)(()=>tt)]}]),A.TTD]}),tt})(),Ve=(()=>{class tt{constructor(ee,nt,Ae){this._ngZone=ee,this._platform=nt,this._scrolled=new C.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ae}register(ee){this.scrollContainers.has(ee)||this.scrollContainers.set(ee,ee.elementScrolled().subscribe(()=>this._scrolled.next(ee)))}deregister(ee){const nt=this.scrollContainers.get(ee);nt&&(nt.unsubscribe(),this.scrollContainers.delete(ee))}scrolled(ee=20){return this._platform.isBrowser?new f.y(nt=>{this._globalSubscription||this._addGlobalListener();const Ae=ee>0?this._scrolled.pipe((0,H.e)(ee)).subscribe(nt):this._scrolled.subscribe(nt);return this._scrolledCount++,()=>{Ae.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,M.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ee,nt)=>this.deregister(nt)),this._scrolled.complete()}ancestorScrolled(ee,nt){const Ae=this.getAncestorScrollContainers(ee);return this.scrolled(nt).pipe((0,O.h)(Ee=>!Ee||Ae.indexOf(Ee)>-1))}getAncestorScrollContainers(ee){const nt=[];return this.scrollContainers.forEach((Ae,Ee)=>{this._scrollableContainsElement(Ee,ee)&&nt.push(Ee)}),nt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ee,nt){let Ae=(0,e.fI)(nt),Ee=ee.getElementRef().nativeElement;do{if(Ae==Ee)return!0}while(Ae=Ae.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ee=this._getWindow();return(0,b.R)(ee.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return tt.\u0275fac=function(ee){return new(ee||tt)(A.LFG(A.R0b),A.LFG(_e.t4),A.LFG(Be.K0,8))},tt.\u0275prov=A.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),ve=(()=>{class tt{constructor(ee,nt,Ae,Ee){this.elementRef=ee,this.scrollDispatcher=nt,this.ngZone=Ae,this.dir=Ee,this._destroyed=new C.x,this._elementScrolled=new f.y(ge=>this.ngZone.runOutsideAngular(()=>(0,b.R)(this.elementRef.nativeElement,"scroll").pipe((0,J.R)(this._destroyed)).subscribe(ge)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(ee){const nt=this.elementRef.nativeElement,Ae=this.dir&&"rtl"==this.dir.value;null==ee.left&&(ee.left=Ae?ee.end:ee.start),null==ee.right&&(ee.right=Ae?ee.start:ee.end),null!=ee.bottom&&(ee.top=nt.scrollHeight-nt.clientHeight-ee.bottom),Ae&&0!=(0,_e._i)()?(null!=ee.left&&(ee.right=nt.scrollWidth-nt.clientWidth-ee.left),2==(0,_e._i)()?ee.left=ee.right:1==(0,_e._i)()&&(ee.left=ee.right?-ee.right:ee.right)):null!=ee.right&&(ee.left=nt.scrollWidth-nt.clientWidth-ee.right),this._applyScrollToOptions(ee)}_applyScrollToOptions(ee){const nt=this.elementRef.nativeElement;(0,_e.Mq)()?nt.scrollTo(ee):(null!=ee.top&&(nt.scrollTop=ee.top),null!=ee.left&&(nt.scrollLeft=ee.left))}measureScrollOffset(ee){const nt="left",Ee=this.elementRef.nativeElement;if("top"==ee)return Ee.scrollTop;if("bottom"==ee)return Ee.scrollHeight-Ee.clientHeight-Ee.scrollTop;const ge=this.dir&&"rtl"==this.dir.value;return"start"==ee?ee=ge?"right":nt:"end"==ee&&(ee=ge?nt:"right"),ge&&2==(0,_e._i)()?ee==nt?Ee.scrollWidth-Ee.clientWidth-Ee.scrollLeft:Ee.scrollLeft:ge&&1==(0,_e._i)()?ee==nt?Ee.scrollLeft+Ee.scrollWidth-Ee.clientWidth:-Ee.scrollLeft:ee==nt?Ee.scrollLeft:Ee.scrollWidth-Ee.clientWidth-Ee.scrollLeft}}return tt.\u0275fac=function(ee){return new(ee||tt)(A.Y36(A.SBq),A.Y36(Ve),A.Y36(A.R0b),A.Y36(E.Is,8))},tt.\u0275dir=A.lG2({type:tt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),tt})(),Ue=(()=>{class tt{constructor(ee,nt,Ae){this._platform=ee,this._change=new C.x,this._changeListener=Ee=>{this._change.next(Ee)},this._document=Ae,nt.runOutsideAngular(()=>{if(ee.isBrowser){const Ee=this._getWindow();Ee.addEventListener("resize",this._changeListener),Ee.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ee=this._getWindow();ee.removeEventListener("resize",this._changeListener),ee.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ee={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ee}getViewportRect(){const ee=this.getViewportScrollPosition(),{width:nt,height:Ae}=this.getViewportSize();return{top:ee.top,left:ee.left,bottom:ee.top+Ae,right:ee.left+nt,height:Ae,width:nt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ee=this._document,nt=this._getWindow(),Ae=ee.documentElement,Ee=Ae.getBoundingClientRect();return{top:-Ee.top||ee.body.scrollTop||nt.scrollY||Ae.scrollTop||0,left:-Ee.left||ee.body.scrollLeft||nt.scrollX||Ae.scrollLeft||0}}change(ee=20){return ee>0?this._change.pipe((0,H.e)(ee)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ee=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ee.innerWidth,height:ee.innerHeight}:{width:0,height:0}}}return tt.\u0275fac=function(ee){return new(ee||tt)(A.LFG(_e.t4),A.LFG(A.R0b),A.LFG(Be.K0,8))},tt.\u0275prov=A.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})();const oe=new A.OlP("VIRTUAL_SCROLLABLE");let ce=(()=>{class tt extends ve{constructor(ee,nt,Ae,Ee){super(ee,nt,Ae,Ee)}measureViewportSize(ee){const nt=this.elementRef.nativeElement;return"horizontal"===ee?nt.clientWidth:nt.clientHeight}}return tt.\u0275fac=function(ee){return new(ee||tt)(A.Y36(A.SBq),A.Y36(Ve),A.Y36(A.R0b),A.Y36(E.Is,8))},tt.\u0275dir=A.lG2({type:tt,features:[A.qOj]}),tt})();const N=typeof requestAnimationFrame<"u"?D.Z:T.E;let be=(()=>{class tt extends ce{constructor(ee,nt,Ae,Ee,ge,we,Ne,Ce){super(ee,we,Ae,ge),this.elementRef=ee,this._changeDetectorRef=nt,this._scrollStrategy=Ee,this.scrollable=Ce,this._detachedSubject=new C.x,this._renderedRangeSubject=new C.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new f.y(fe=>this._scrollStrategy.scrolledIndexChange.subscribe(r=>Promise.resolve().then(()=>this.ngZone.run(()=>fe.next(r))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=R.w0.EMPTY,this._viewportChanges=Ne.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(ee){this._orientation!==ee&&(this._orientation=ee,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(ee){this._appendOnly=(0,e.Ig)(ee)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,ne.O)(null),(0,H.e)(0,N)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(ee){this.ngZone.runOutsideAngular(()=>{this._forOf=ee,this._forOf.dataStream.pipe((0,J.R)(this._detachedSubject)).subscribe(nt=>{const Ae=nt.length;Ae!==this._dataLength&&(this._dataLength=Ae,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(ee){return this.getElementRef().nativeElement.getBoundingClientRect()[ee]}setTotalContentSize(ee){this._totalContentSize!==ee&&(this._totalContentSize=ee,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(ee){(function k(tt,vt){return tt.start==vt.start&&tt.end==vt.end})(this._renderedRange,ee)||(this.appendOnly&&(ee={start:0,end:Math.max(this._renderedRange.end,ee.end)}),this._renderedRangeSubject.next(this._renderedRange=ee),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(ee,nt="to-start"){ee=this.appendOnly&&"to-start"===nt?0:ee;const Ee="horizontal"==this.orientation,ge=Ee?"X":"Y";let Ne=`translate${ge}(${Number((Ee&&this.dir&&"rtl"==this.dir.value?-1:1)*ee)}px)`;this._renderedContentOffset=ee,"to-end"===nt&&(Ne+=` translate${ge}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Ne&&(this._renderedContentTransform=Ne,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(ee,nt="auto"){const Ae={behavior:nt};"horizontal"===this.orientation?Ae.start=ee:Ae.top=ee,this.scrollable.scrollTo(Ae)}scrollToIndex(ee,nt="auto"){this._scrollStrategy.scrollToIndex(ee,nt)}measureScrollOffset(ee){let nt;return nt=this.scrollable==this?Ae=>super.measureScrollOffset(Ae):Ae=>this.scrollable.measureScrollOffset(Ae),Math.max(0,nt(ee??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(ee){var nt;let Ae;const we="rtl"==(null===(nt=this.dir)||void 0===nt?void 0:nt.value);Ae="start"==ee?we?"right":"left":"end"==ee?we?"left":"right":ee||("horizontal"===this.orientation?"left":"top");const Ne=this.scrollable.measureBoundingClientRectWithScrollOffset(Ae);return this.elementRef.nativeElement.getBoundingClientRect()[Ae]-Ne}measureRenderedContentSize(){const ee=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?ee.offsetWidth:ee.offsetHeight}measureRangeSize(ee){return this._forOf?this._forOf.measureRangeSize(ee,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(ee){ee&&this._runAfterChangeDetection.push(ee),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const ee=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const nt of ee)nt()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return tt.\u0275fac=function(ee){return new(ee||tt)(A.Y36(A.SBq),A.Y36(A.sBO),A.Y36(A.R0b),A.Y36(X,8),A.Y36(E.Is,8),A.Y36(Ve),A.Y36(Ue),A.Y36(oe,8))},tt.\u0275cmp=A.Xpm({type:tt,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(ee,nt){if(1&ee&&A.Gf(F,7),2&ee){let Ae;A.iGM(Ae=A.CRH())&&(nt._contentWrapper=Ae.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(ee,nt){2&ee&&A.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===nt.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==nt.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[A._Bn([{provide:ve,useFactory:(vt,ee)=>vt||ee,deps:[ce,tt]}]),A.qOj],ngContentSelectors:V,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(ee,nt){1&ee&&(A.F$t(),A.TgZ(0,"div",0,1),A.Hsn(2),A.qZA(),A._UZ(3,"div",2)),2&ee&&(A.xp6(3),A.Udp("width",nt._totalContentWidth)("height",nt._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),tt})();function W(tt,vt,ee){if(!ee.getBoundingClientRect)return 0;const Ae=ee.getBoundingClientRect();return"horizontal"===tt?"start"===vt?Ae.left:Ae.right:"start"===vt?Ae.top:Ae.bottom}let ue=(()=>{class tt{constructor(ee,nt,Ae,Ee,ge,we){this._viewContainerRef=ee,this._template=nt,this._differs=Ae,this._viewRepeater=Ee,this._viewport=ge,this.viewChange=new C.x,this._dataSourceChanges=new C.x,this.dataStream=this._dataSourceChanges.pipe((0,ne.O)(null),(0,G.G)(),(0,se.w)(([Ne,Ce])=>this._changeDataSource(Ne,Ce)),(0,Oe.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new C.x,this.dataStream.subscribe(Ne=>{this._data=Ne,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,J.R)(this._destroyed)).subscribe(Ne=>{this._renderedRange=Ne,this.viewChange.observers.length&&we.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(ee){this._cdkVirtualForOf=ee,(0,z.Z9)(ee)?this._dataSourceChanges.next(ee):this._dataSourceChanges.next(new z.P3((0,B.b)(ee)?ee:Array.from(ee||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(ee){this._needsUpdate=!0,this._cdkVirtualForTrackBy=ee?(nt,Ae)=>ee(nt+(this._renderedRange?this._renderedRange.start:0),Ae):void 0}set cdkVirtualForTemplate(ee){ee&&(this._needsUpdate=!0,this._template=ee)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(ee){this._viewRepeater.viewCacheSize=(0,e.su)(ee)}measureRangeSize(ee,nt){if(ee.start>=ee.end)return 0;const Ae=ee.start-this._renderedRange.start,Ee=ee.end-ee.start;let ge,we;for(let Ne=0;Ne-1;Ne--){const Ce=this._viewContainerRef.get(Ne+Ae);if(Ce&&Ce.rootNodes.length){we=Ce.rootNodes[Ce.rootNodes.length-1];break}}return ge&&we?W(nt,"end",we)-W(nt,"start",ge):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const ee=this._differ.diff(this._renderedItems);ee?this._applyChanges(ee):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((ee,nt)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(ee,nt):nt)),this._needsUpdate=!0)}_changeDataSource(ee,nt){return ee&&ee.disconnect(this),this._needsUpdate=!0,nt?nt.connect(this):(0,M.of)()}_updateContext(){const ee=this._data.length;let nt=this._viewContainerRef.length;for(;nt--;){const Ae=this._viewContainerRef.get(nt);Ae.context.index=this._renderedRange.start+nt,Ae.context.count=ee,this._updateComputedContextProperties(Ae.context),Ae.detectChanges()}}_applyChanges(ee){this._viewRepeater.applyChanges(ee,this._viewContainerRef,(Ee,ge,we)=>this._getEmbeddedViewArgs(Ee,we),Ee=>Ee.item),ee.forEachIdentityChange(Ee=>{this._viewContainerRef.get(Ee.currentIndex).context.$implicit=Ee.item});const nt=this._data.length;let Ae=this._viewContainerRef.length;for(;Ae--;){const Ee=this._viewContainerRef.get(Ae);Ee.context.index=this._renderedRange.start+Ae,Ee.context.count=nt,this._updateComputedContextProperties(Ee.context)}}_updateComputedContextProperties(ee){ee.first=0===ee.index,ee.last=ee.index===ee.count-1,ee.even=ee.index%2==0,ee.odd=!ee.even}_getEmbeddedViewArgs(ee,nt){return{templateRef:this._template,context:{$implicit:ee.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:nt}}}return tt.\u0275fac=function(ee){return new(ee||tt)(A.Y36(A.s_b),A.Y36(A.Rgc),A.Y36(A.ZZ4),A.Y36(z.k),A.Y36(be,4),A.Y36(A.R0b))},tt.\u0275dir=A.lG2({type:tt,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[A._Bn([{provide:z.k,useClass:z.eX}])]}),tt})(),je=(()=>{class tt{}return tt.\u0275fac=function(ee){return new(ee||tt)},tt.\u0275mod=A.oAB({type:tt}),tt.\u0275inj=A.cJS({}),tt})(),ut=(()=>{class tt{}return tt.\u0275fac=function(ee){return new(ee||tt)},tt.\u0275mod=A.oAB({type:tt}),tt.\u0275inj=A.cJS({imports:[E.vT,je,E.vT,je]}),tt})()},39349:($e,he,p)=>{"use strict";p.d(he,{IC:()=>O,Ky:()=>J,Lq:()=>w});var e=p(83353),A=p(94650),C=p(21281),M=p(60515),f=p(77579),b=p(54968),D=p(23601),T=p(82722),R=p(36895);const B=(0,e.i$)({passive:!0});let w=(()=>{class ne{constructor(se,Oe){this._platform=se,this._ngZone=Oe,this._monitoredElements=new Map}monitor(se){if(!this._platform.isBrowser)return M.E;const Oe=(0,C.fI)(se),_e=this._monitoredElements.get(Oe);if(_e)return _e.subject;const Be=new f.x,E="cdk-text-field-autofilled",z=F=>{"cdk-text-field-autofill-start"!==F.animationName||Oe.classList.contains(E)?"cdk-text-field-autofill-end"===F.animationName&&Oe.classList.contains(E)&&(Oe.classList.remove(E),this._ngZone.run(()=>Be.next({target:F.target,isAutofilled:!1}))):(Oe.classList.add(E),this._ngZone.run(()=>Be.next({target:F.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Oe.addEventListener("animationstart",z,B),Oe.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Oe,{subject:Be,unlisten:()=>{Oe.removeEventListener("animationstart",z,B)}}),Be}stopMonitoring(se){const Oe=(0,C.fI)(se),_e=this._monitoredElements.get(Oe);_e&&(_e.unlisten(),_e.subject.complete(),Oe.classList.remove("cdk-text-field-autofill-monitored"),Oe.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Oe))}ngOnDestroy(){this._monitoredElements.forEach((se,Oe)=>this.stopMonitoring(Oe))}}return ne.\u0275fac=function(se){return new(se||ne)(A.LFG(e.t4),A.LFG(A.R0b))},ne.\u0275prov=A.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),O=(()=>{class ne{constructor(se,Oe,_e,Be){this._elementRef=se,this._platform=Oe,this._ngZone=_e,this._destroyed=new f.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=E=>{this._hasFocus="focus"===E.type},this._document=Be,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(se){this._minRows=(0,C.su)(se),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(se){this._maxRows=(0,C.su)(se),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(se){se=(0,C.Ig)(se),this._enabled!==se&&((this._enabled=se)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(se){this._cachedPlaceholderHeight=void 0,se?this._textareaElement.setAttribute("placeholder",se):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const se=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;se&&(this._textareaElement.style.minHeight=se)}_setMaxHeight(){const se=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;se&&(this._textareaElement.style.maxHeight=se)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const se=this._getWindow();(0,b.R)(se,"resize").pipe((0,D.e)(16),(0,T.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let se=this._textareaElement.cloneNode(!1);se.rows=1,se.style.position="absolute",se.style.visibility="hidden",se.style.border="none",se.style.padding="0",se.style.height="",se.style.minHeight="",se.style.maxHeight="",se.style.overflow="hidden",this._textareaElement.parentNode.appendChild(se),this._cachedLineHeight=se.clientHeight,se.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const se=this._textareaElement,Oe=se.style.marginBottom||"",_e=this._platform.FIREFOX,Be=_e&&this._hasFocus,E=_e?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Be&&(se.style.marginBottom=`${se.clientHeight}px`),se.classList.add(E);const z=se.scrollHeight-4;return se.classList.remove(E),Be&&(se.style.marginBottom=Oe),z}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const se=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=se}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(se=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const Oe=this._elementRef.nativeElement,_e=Oe.value;if(!se&&this._minRows===this._previousMinRows&&_e===this._previousValue)return;const Be=this._measureScrollHeight(),E=Math.max(Be,this._cachedPlaceholderHeight||0);Oe.style.height=`${E}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(Oe)):setTimeout(()=>this._scrollToCaretPosition(Oe))}),this._previousValue=_e,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(se){const{selectionStart:Oe,selectionEnd:_e}=se;!this._destroyed.isStopped&&this._hasFocus&&se.setSelectionRange(Oe,_e)}}return ne.\u0275fac=function(se){return new(se||ne)(A.Y36(A.SBq),A.Y36(e.t4),A.Y36(A.R0b),A.Y36(R.K0,8))},ne.\u0275dir=A.lG2({type:ne,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(se,Oe){1&se&&A.NdJ("input",function(){return Oe._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),ne})(),J=(()=>{class ne{}return ne.\u0275fac=function(se){return new(se||ne)},ne.\u0275mod=A.oAB({type:ne}),ne.\u0275inj=A.cJS({}),ne})()},57851:($e,he,p)=>{"use strict";p.d(he,{C2:()=>O,HI:()=>ne,Hs:()=>X,Ud:()=>ve,VY:()=>J,XJ:()=>Ve,Xx:()=>le,_0:()=>V,cu:()=>G,nZ:()=>Ue,rO:()=>Oe});var e=p(95017),A=p(45191),C=p(77579),M=p(61135),f=p(39646),b=p(95698),D=p(39300),T=p(82722),R=p(94650),B=p(21281),w=p(40445);class H{constructor(){this.expansionModel=new e.Ov(!0)}toggle(ce){this.expansionModel.toggle(this._trackByValue(ce))}expand(ce){this.expansionModel.select(this._trackByValue(ce))}collapse(ce){this.expansionModel.deselect(this._trackByValue(ce))}isExpanded(ce){return this.expansionModel.isSelected(this._trackByValue(ce))}toggleDescendants(ce){this.expansionModel.isSelected(this._trackByValue(ce))?this.collapseDescendants(ce):this.expandDescendants(ce)}collapseAll(){this.expansionModel.clear()}expandDescendants(ce){let k=[ce];k.push(...this.getDescendants(ce)),this.expansionModel.select(...k.map(N=>this._trackByValue(N)))}collapseDescendants(ce){let k=[ce];k.push(...this.getDescendants(ce)),this.expansionModel.deselect(...k.map(N=>this._trackByValue(N)))}_trackByValue(ce){return this.trackBy?this.trackBy(ce):ce}}class O extends H{constructor(ce,k,N){super(),this.getLevel=ce,this.isExpandable=k,this.options=N,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(ce){const N=[];for(let be=this.dataNodes.indexOf(ce)+1;bethis._trackByValue(ce)))}}class J extends H{constructor(ce,k){super(),this.getChildren=ce,this.options=k,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const ce=this.dataNodes.reduce((k,N)=>[...k,...this.getDescendants(N),N],[]);this.expansionModel.select(...ce.map(k=>this._trackByValue(k)))}getDescendants(ce){const k=[];return this._getDescendants(k,ce),k.splice(1)}_getDescendants(ce,k){ce.push(k);const N=this.getChildren(k);Array.isArray(N)?N.forEach(be=>this._getDescendants(ce,be)):(0,A.b)(N)&&N.pipe((0,b.q)(1),(0,D.h)(Boolean)).subscribe(be=>{for(const W of be)this._getDescendants(ce,W)})}}const ne=new R.OlP("CDK_TREE_NODE_OUTLET_NODE");let G=(()=>{class oe{constructor(k,N){this.viewContainer=k,this._node=N}}return oe.\u0275fac=function(k){return new(k||oe)(R.Y36(R.s_b),R.Y36(ne,8))},oe.\u0275dir=R.lG2({type:oe,selectors:[["","cdkTreeNodeOutlet",""]]}),oe})();class se{constructor(ce){this.$implicit=ce}}let Oe=(()=>{class oe{constructor(k){this.template=k}}return oe.\u0275fac=function(k){return new(k||oe)(R.Y36(R.Rgc))},oe.\u0275dir=R.lG2({type:oe,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),oe})(),V=(()=>{class oe{constructor(k,N){this._differs=k,this._changeDetectorRef=N,this._onDestroy=new C.x,this._levels=new Map,this.viewChange=new M.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(k){this._dataSource!==k&&this._switchDataSource(k)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const k=this._nodeDefs.filter(N=>!N.when);this._defaultNodeDef=k[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(k){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),k||this._nodeOutlet.viewContainer.clear(),this._dataSource=k,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let k;(0,e.Z9)(this._dataSource)?k=this._dataSource.connect(this):(0,A.b)(this._dataSource)?k=this._dataSource:Array.isArray(this._dataSource)&&(k=(0,f.of)(this._dataSource)),k&&(this._dataSubscription=k.pipe((0,T.R)(this._onDestroy)).subscribe(N=>this.renderNodeChanges(N)))}renderNodeChanges(k,N=this._dataDiffer,be=this._nodeOutlet.viewContainer,W){const ue=N.diff(k);!ue||(ue.forEachOperation((Me,ot,je)=>{if(null==Me.previousIndex)this.insertNode(k[je],je,be,W);else if(null==je)be.remove(ot),this._levels.delete(Me.item);else{const ut=be.get(ot);be.move(ut,je)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(k,N){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(W=>W.when&&W.when(N,k))||this._defaultNodeDef}insertNode(k,N,be,W){const ue=this._getNodeDef(k,N),Me=new se(k);Me.level=this.treeControl.getLevel?this.treeControl.getLevel(k):typeof W<"u"&&this._levels.has(W)?this._levels.get(W)+1:0,this._levels.set(k,Me.level),(be||this._nodeOutlet.viewContainer).createEmbeddedView(ue.template,Me,N),X.mostRecentTreeNode&&(X.mostRecentTreeNode.data=k)}}return oe.\u0275fac=function(k){return new(k||oe)(R.Y36(R.ZZ4),R.Y36(R.sBO))},oe.\u0275cmp=R.Xpm({type:oe,selectors:[["cdk-tree"]],contentQueries:function(k,N,be){if(1&k&&R.Suo(be,Oe,5),2&k){let W;R.iGM(W=R.CRH())&&(N._nodeDefs=W)}},viewQuery:function(k,N){if(1&k&&R.Gf(G,7),2&k){let be;R.iGM(be=R.CRH())&&(N._nodeOutlet=be.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(k,N){1&k&&R.GkF(0,0)},dependencies:[G],encapsulation:2}),oe})(),X=(()=>{class oe{constructor(k,N){this._elementRef=k,this._tree=N,this._destroyed=new C.x,this._dataChanges=new C.x,oe.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(k){this._elementRef.nativeElement.setAttribute("role",k)}get data(){return this._data}set data(k){k!==this._data&&(this._data=k,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function q(oe){let ce=oe.parentElement;for(;ce&&!pe(ce);)ce=ce.parentElement;return ce?ce.classList.contains("cdk-nested-tree-node")?(0,B.su)(ce.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){oe.mostRecentTreeNode===this&&(oe.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return oe.mostRecentTreeNode=null,oe.\u0275fac=function(k){return new(k||oe)(R.Y36(R.SBq),R.Y36(V))},oe.\u0275dir=R.lG2({type:oe,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(k,N){2&k&&R.uIk("aria-expanded",N.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),oe})();function pe(oe){const ce=oe.classList;return!!(null!=ce&&ce.contains("cdk-nested-tree-node")||null!=ce&&ce.contains("cdk-tree"))}let le=(()=>{class oe extends X{constructor(k,N,be){super(k,N),this._differs=be}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const k=this._tree.treeControl.getChildren(this.data);Array.isArray(k)?this.updateChildrenNodes(k):(0,A.b)(k)&&k.pipe((0,T.R)(this._destroyed)).subscribe(N=>this.updateChildrenNodes(N)),this.nodeOutlet.changes.pipe((0,T.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(k){const N=this._getNodeOutlet();k&&(this._children=k),N&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,N.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const k=this._getNodeOutlet();k&&(k.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const k=this.nodeOutlet;return k&&k.find(N=>!N._node||N._node===this)}}return oe.\u0275fac=function(k){return new(k||oe)(R.Y36(R.SBq),R.Y36(V),R.Y36(R.ZZ4))},oe.\u0275dir=R.lG2({type:oe,selectors:[["cdk-nested-tree-node"]],contentQueries:function(k,N,be){if(1&k&&R.Suo(be,G,5),2&k){let W;R.iGM(W=R.CRH())&&(N.nodeOutlet=W)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[R._Bn([{provide:X,useExisting:oe},{provide:ne,useExisting:oe}]),R.qOj]}),oe})();const ye=/([A-Za-z%]+)$/;let Ve=(()=>{class oe{constructor(k,N,be,W){this._treeNode=k,this._tree=N,this._element=be,this._dir=W,this._destroyed=new C.x,this.indentUnits="px",this._indent=40,this._setPadding(),W&&W.change.pipe((0,T.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),k._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(k){this._setLevelInput(k)}get indent(){return this._indent}set indent(k){this._setIndentInput(k)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const k=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,N=this._level??k;return"number"==typeof N?`${N*this._indent}${this.indentUnits}`:null}_setPadding(k=!1){const N=this._paddingIndent();if(N!==this._currentPadding||k){const be=this._element.nativeElement,W=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",ue="paddingLeft"===W?"paddingRight":"paddingLeft";be.style[W]=N||"",be.style[ue]="",this._currentPadding=N}}_setLevelInput(k){this._level=(0,B.su)(k,null),this._setPadding()}_setIndentInput(k){let N=k,be="px";if("string"==typeof k){const W=k.split(ye);N=W[0],be=W[1]||be}this.indentUnits=be,this._indent=(0,B.su)(N),this._setPadding()}}return oe.\u0275fac=function(k){return new(k||oe)(R.Y36(X),R.Y36(V),R.Y36(R.SBq),R.Y36(w.Is,8))},oe.\u0275dir=R.lG2({type:oe,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),oe})(),ve=(()=>{class oe{constructor(k,N){this._tree=k,this._treeNode=N,this._recursive=!1}get recursive(){return this._recursive}set recursive(k){this._recursive=(0,B.Ig)(k)}_toggle(k){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),k.stopPropagation()}}return oe.\u0275fac=function(k){return new(k||oe)(R.Y36(V),R.Y36(X))},oe.\u0275dir=R.lG2({type:oe,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(k,N){1&k&&R.NdJ("click",function(W){return N._toggle(W)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),oe})(),Ue=(()=>{class oe{}return oe.\u0275fac=function(k){return new(k||oe)},oe.\u0275mod=R.oAB({type:oe}),oe.\u0275inj=R.cJS({}),oe})()},36895:($e,he,p)=>{"use strict";p.d(he,{Do:()=>Be,ED:()=>or,EM:()=>Fi,HT:()=>f,JF:()=>gi,K0:()=>D,Mx:()=>vn,NF:()=>cr,O5:()=>qn,Ov:()=>Pi,PC:()=>Ci,PM:()=>Ji,RF:()=>Vi,S$:()=>se,V_:()=>B,Ye:()=>E,b0:()=>_e,bD:()=>An,ez:()=>dn,gd:()=>ct,i8:()=>Ii,mk:()=>Vn,n9:()=>di,p6:()=>o,q:()=>C,rS:()=>en,sg:()=>Jn,tP:()=>Er,uU:()=>Zt,w_:()=>b});var e=p(94650);let A=null;function C(){return A}function f(Ye){A||(A=Ye)}class b{}const D=new e.OlP("DocumentToken");let T=(()=>{class Ye{historyGo(qe){throw new Error("Not implemented")}}return Ye.\u0275fac=function(qe){return new(qe||Ye)},Ye.\u0275prov=e.Yz7({token:Ye,factory:function(){return function R(){return(0,e.LFG)(w)}()},providedIn:"platform"}),Ye})();const B=new e.OlP("Location Initialized");let w=(()=>{class Ye extends T{constructor(qe){super(),this._doc=qe,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return C().getBaseHref(this._doc)}onPopState(qe){const Ct=C().getGlobalEventTarget(this._doc,"window");return Ct.addEventListener("popstate",qe,!1),()=>Ct.removeEventListener("popstate",qe)}onHashChange(qe){const Ct=C().getGlobalEventTarget(this._doc,"window");return Ct.addEventListener("hashchange",qe,!1),()=>Ct.removeEventListener("hashchange",qe)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(qe){this.location.pathname=qe}pushState(qe,Ct,Bt){H()?this._history.pushState(qe,Ct,Bt):this.location.hash=Bt}replaceState(qe,Ct,Bt){H()?this._history.replaceState(qe,Ct,Bt):this.location.hash=Bt}forward(){this._history.forward()}back(){this._history.back()}historyGo(qe=0){this._history.go(qe)}getState(){return this._history.state}}return Ye.\u0275fac=function(qe){return new(qe||Ye)(e.LFG(D))},Ye.\u0275prov=e.Yz7({token:Ye,factory:function(){return function O(){return new w((0,e.LFG)(D))}()},providedIn:"platform"}),Ye})();function H(){return!!window.history.pushState}function J(Ye,_t){if(0==Ye.length)return _t;if(0==_t.length)return Ye;let qe=0;return Ye.endsWith("/")&&qe++,_t.startsWith("/")&&qe++,2==qe?Ye+_t.substring(1):1==qe?Ye+_t:Ye+"/"+_t}function ne(Ye){const _t=Ye.match(/#|\?|$/),qe=_t&&_t.index||Ye.length;return Ye.slice(0,qe-("/"===Ye[qe-1]?1:0))+Ye.slice(qe)}function G(Ye){return Ye&&"?"!==Ye[0]?"?"+Ye:Ye}let se=(()=>{class Ye{historyGo(qe){throw new Error("Not implemented")}}return Ye.\u0275fac=function(qe){return new(qe||Ye)},Ye.\u0275prov=e.Yz7({token:Ye,factory:function(){return(0,e.f3M)(_e)},providedIn:"root"}),Ye})();const Oe=new e.OlP("appBaseHref");let _e=(()=>{class Ye extends se{constructor(qe,Ct){var Bt,Qt,zt;super(),this._platformLocation=qe,this._removeListenerFns=[],this._baseHref=null!==(Bt=null!==(Qt=Ct??this._platformLocation.getBaseHrefFromDOM())&&void 0!==Qt?Qt:null===(zt=(0,e.f3M)(D).location)||void 0===zt?void 0:zt.origin)&&void 0!==Bt?Bt:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(qe){this._removeListenerFns.push(this._platformLocation.onPopState(qe),this._platformLocation.onHashChange(qe))}getBaseHref(){return this._baseHref}prepareExternalUrl(qe){return J(this._baseHref,qe)}path(qe=!1){const Ct=this._platformLocation.pathname+G(this._platformLocation.search),Bt=this._platformLocation.hash;return Bt&&qe?`${Ct}${Bt}`:Ct}pushState(qe,Ct,Bt,Qt){const zt=this.prepareExternalUrl(Bt+G(Qt));this._platformLocation.pushState(qe,Ct,zt)}replaceState(qe,Ct,Bt,Qt){const zt=this.prepareExternalUrl(Bt+G(Qt));this._platformLocation.replaceState(qe,Ct,zt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(qe=0){var Ct,Bt;null===(Ct=(Bt=this._platformLocation).historyGo)||void 0===Ct||Ct.call(Bt,qe)}}return Ye.\u0275fac=function(qe){return new(qe||Ye)(e.LFG(T),e.LFG(Oe,8))},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})(),Be=(()=>{class Ye extends se{constructor(qe,Ct){super(),this._platformLocation=qe,this._baseHref="",this._removeListenerFns=[],null!=Ct&&(this._baseHref=Ct)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(qe){this._removeListenerFns.push(this._platformLocation.onPopState(qe),this._platformLocation.onHashChange(qe))}getBaseHref(){return this._baseHref}path(qe=!1){let Ct=this._platformLocation.hash;return null==Ct&&(Ct="#"),Ct.length>0?Ct.substring(1):Ct}prepareExternalUrl(qe){const Ct=J(this._baseHref,qe);return Ct.length>0?"#"+Ct:Ct}pushState(qe,Ct,Bt,Qt){let zt=this.prepareExternalUrl(Bt+G(Qt));0==zt.length&&(zt=this._platformLocation.pathname),this._platformLocation.pushState(qe,Ct,zt)}replaceState(qe,Ct,Bt,Qt){let zt=this.prepareExternalUrl(Bt+G(Qt));0==zt.length&&(zt=this._platformLocation.pathname),this._platformLocation.replaceState(qe,Ct,zt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(qe=0){var Ct,Bt;null===(Ct=(Bt=this._platformLocation).historyGo)||void 0===Ct||Ct.call(Bt,qe)}}return Ye.\u0275fac=function(qe){return new(qe||Ye)(e.LFG(T),e.LFG(Oe,8))},Ye.\u0275prov=e.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})(),E=(()=>{class Ye{constructor(qe){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=qe;const Ct=this._locationStrategy.getBaseHref();this._baseHref=ne(V(Ct)),this._locationStrategy.onPopState(Bt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Bt.state,type:Bt.type})})}ngOnDestroy(){var qe;null===(qe=this._urlChangeSubscription)||void 0===qe||qe.unsubscribe(),this._urlChangeListeners=[]}path(qe=!1){return this.normalize(this._locationStrategy.path(qe))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(qe,Ct=""){return this.path()==this.normalize(qe+G(Ct))}normalize(qe){return Ye.stripTrailingSlash(function F(Ye,_t){return Ye&&_t.startsWith(Ye)?_t.substring(Ye.length):_t}(this._baseHref,V(qe)))}prepareExternalUrl(qe){return qe&&"/"!==qe[0]&&(qe="/"+qe),this._locationStrategy.prepareExternalUrl(qe)}go(qe,Ct="",Bt=null){this._locationStrategy.pushState(Bt,"",qe,Ct),this._notifyUrlChangeListeners(this.prepareExternalUrl(qe+G(Ct)),Bt)}replaceState(qe,Ct="",Bt=null){this._locationStrategy.replaceState(Bt,"",qe,Ct),this._notifyUrlChangeListeners(this.prepareExternalUrl(qe+G(Ct)),Bt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(qe=0){var Ct,Bt;null===(Ct=(Bt=this._locationStrategy).historyGo)||void 0===Ct||Ct.call(Bt,qe)}onUrlChange(qe){return this._urlChangeListeners.push(qe),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ct=>{this._notifyUrlChangeListeners(Ct.url,Ct.state)})),()=>{const Ct=this._urlChangeListeners.indexOf(qe);var Bt;this._urlChangeListeners.splice(Ct,1),0===this._urlChangeListeners.length&&(null===(Bt=this._urlChangeSubscription)||void 0===Bt||Bt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(qe="",Ct){this._urlChangeListeners.forEach(Bt=>Bt(qe,Ct))}subscribe(qe,Ct,Bt){return this._subject.subscribe({next:qe,error:Ct,complete:Bt})}}return Ye.normalizeQueryParams=G,Ye.joinWithSlash=J,Ye.stripTrailingSlash=ne,Ye.\u0275fac=function(qe){return new(qe||Ye)(e.LFG(se))},Ye.\u0275prov=e.Yz7({token:Ye,factory:function(){return function z(){return new E((0,e.LFG)(se))}()},providedIn:"root"}),Ye})();function V(Ye){return Ye.replace(/\/index.html$/,"")}var le=(()=>((le=le||{})[le.Format=0]="Format",le[le.Standalone=1]="Standalone",le))(),ye=(()=>((ye=ye||{})[ye.Narrow=0]="Narrow",ye[ye.Abbreviated=1]="Abbreviated",ye[ye.Wide=2]="Wide",ye[ye.Short=3]="Short",ye))(),Ve=(()=>((Ve=Ve||{})[Ve.Short=0]="Short",Ve[Ve.Medium=1]="Medium",Ve[Ve.Long=2]="Long",Ve[Ve.Full=3]="Full",Ve))(),ve=(()=>((ve=ve||{})[ve.Decimal=0]="Decimal",ve[ve.Group=1]="Group",ve[ve.List=2]="List",ve[ve.PercentSign=3]="PercentSign",ve[ve.PlusSign=4]="PlusSign",ve[ve.MinusSign=5]="MinusSign",ve[ve.Exponential=6]="Exponential",ve[ve.SuperscriptingExponent=7]="SuperscriptingExponent",ve[ve.PerMille=8]="PerMille",ve[ve.Infinity=9]="Infinity",ve[ve.NaN=10]="NaN",ve[ve.TimeSeparator=11]="TimeSeparator",ve[ve.CurrencyDecimal=12]="CurrencyDecimal",ve[ve.CurrencyGroup=13]="CurrencyGroup",ve))();function ue(Ye,_t){return Ce((0,e.cg1)(Ye)[e.wAp.DateFormat],_t)}function Me(Ye,_t){return Ce((0,e.cg1)(Ye)[e.wAp.TimeFormat],_t)}function ot(Ye,_t){return Ce((0,e.cg1)(Ye)[e.wAp.DateTimeFormat],_t)}function je(Ye,_t){const qe=(0,e.cg1)(Ye),Ct=qe[e.wAp.NumberSymbols][_t];if(typeof Ct>"u"){if(_t===ve.CurrencyDecimal)return qe[e.wAp.NumberSymbols][ve.Decimal];if(_t===ve.CurrencyGroup)return qe[e.wAp.NumberSymbols][ve.Group]}return Ct}function Ee(Ye){if(!Ye[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Ye[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ce(Ye,_t){for(let qe=_t;qe>-1;qe--)if(typeof Ye[qe]<"u")return Ye[qe];throw new Error("Locale data API: locale data undefined")}function fe(Ye){const[_t,qe]=Ye.split(":");return{hours:+_t,minutes:+qe}}const v=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,h={},a=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var i=(()=>((i=i||{})[i.Short=0]="Short",i[i.ShortGMT=1]="ShortGMT",i[i.Long=2]="Long",i[i.Extended=3]="Extended",i))(),t=(()=>((t=t||{})[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t))(),n=(()=>((n=n||{})[n.DayPeriods=0]="DayPeriods",n[n.Days=1]="Days",n[n.Months=2]="Months",n[n.Eras=3]="Eras",n))();function o(Ye,_t,qe,Ct){let Bt=function It(Ye){if(an(Ye))return Ye;if("number"==typeof Ye&&!isNaN(Ye))return new Date(Ye);if("string"==typeof Ye){if(Ye=Ye.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Ye)){const[Bt,Qt=1,zt=1]=Ye.split("-").map(En=>+En);return s(Bt,Qt-1,zt)}const qe=parseFloat(Ye);if(!isNaN(Ye-qe))return new Date(qe);let Ct;if(Ct=Ye.match(v))return function jt(Ye){const _t=new Date(0);let qe=0,Ct=0;const Bt=Ye[8]?_t.setUTCFullYear:_t.setFullYear,Qt=Ye[8]?_t.setUTCHours:_t.setHours;Ye[9]&&(qe=Number(Ye[9]+Ye[10]),Ct=Number(Ye[9]+Ye[11])),Bt.call(_t,Number(Ye[1]),Number(Ye[2])-1,Number(Ye[3]));const zt=Number(Ye[4]||0)-qe,En=Number(Ye[5]||0)-Ct,ri=Number(Ye[6]||0),Xn=Math.floor(1e3*parseFloat("0."+(Ye[7]||0)));return Qt.call(_t,zt,En,ri,Xn),_t}(Ct)}const _t=new Date(Ye);if(!an(_t))throw new Error(`Unable to convert "${Ye}" into a date`);return _t}(Ye);_t=l(qe,_t)||_t;let En,zt=[];for(;_t;){if(En=a.exec(_t),!En){zt.push(_t);break}{zt=zt.concat(En.slice(1));const ii=zt.pop();if(!ii)break;_t=ii}}let ri=Bt.getTimezoneOffset();Ct&&(ri=Et(Ct,ri),Bt=function at(Ye,_t,qe){const Ct=qe?-1:1,Bt=Ye.getTimezoneOffset();return function ke(Ye,_t){return(Ye=new Date(Ye.getTime())).setMinutes(Ye.getMinutes()+_t),Ye}(Ye,Ct*(Et(_t,Bt)-Bt))}(Bt,Ct,!0));let Xn="";return zt.forEach(ii=>{const Gn=function Qe(Ye){if(st[Ye])return st[Ye];let _t;switch(Ye){case"G":case"GG":case"GGG":_t=ze(n.Eras,ye.Abbreviated);break;case"GGGG":_t=ze(n.Eras,ye.Wide);break;case"GGGGG":_t=ze(n.Eras,ye.Narrow);break;case"y":_t=$(t.FullYear,1,0,!1,!0);break;case"yy":_t=$(t.FullYear,2,0,!0,!0);break;case"yyy":_t=$(t.FullYear,3,0,!1,!0);break;case"yyyy":_t=$(t.FullYear,4,0,!1,!0);break;case"Y":_t=Te(1);break;case"YY":_t=Te(2,!0);break;case"YYY":_t=Te(3);break;case"YYYY":_t=Te(4);break;case"M":case"L":_t=$(t.Month,1,1);break;case"MM":case"LL":_t=$(t.Month,2,1);break;case"MMM":_t=ze(n.Months,ye.Abbreviated);break;case"MMMM":_t=ze(n.Months,ye.Wide);break;case"MMMMM":_t=ze(n.Months,ye.Narrow);break;case"LLL":_t=ze(n.Months,ye.Abbreviated,le.Standalone);break;case"LLLL":_t=ze(n.Months,ye.Wide,le.Standalone);break;case"LLLLL":_t=ze(n.Months,ye.Narrow,le.Standalone);break;case"w":_t=ie(1);break;case"ww":_t=ie(2);break;case"W":_t=ie(1,!0);break;case"d":_t=$(t.Date,1);break;case"dd":_t=$(t.Date,2);break;case"c":case"cc":_t=$(t.Day,1);break;case"ccc":_t=ze(n.Days,ye.Abbreviated,le.Standalone);break;case"cccc":_t=ze(n.Days,ye.Wide,le.Standalone);break;case"ccccc":_t=ze(n.Days,ye.Narrow,le.Standalone);break;case"cccccc":_t=ze(n.Days,ye.Short,le.Standalone);break;case"E":case"EE":case"EEE":_t=ze(n.Days,ye.Abbreviated);break;case"EEEE":_t=ze(n.Days,ye.Wide);break;case"EEEEE":_t=ze(n.Days,ye.Narrow);break;case"EEEEEE":_t=ze(n.Days,ye.Short);break;case"a":case"aa":case"aaa":_t=ze(n.DayPeriods,ye.Abbreviated);break;case"aaaa":_t=ze(n.DayPeriods,ye.Wide);break;case"aaaaa":_t=ze(n.DayPeriods,ye.Narrow);break;case"b":case"bb":case"bbb":_t=ze(n.DayPeriods,ye.Abbreviated,le.Standalone,!0);break;case"bbbb":_t=ze(n.DayPeriods,ye.Wide,le.Standalone,!0);break;case"bbbbb":_t=ze(n.DayPeriods,ye.Narrow,le.Standalone,!0);break;case"B":case"BB":case"BBB":_t=ze(n.DayPeriods,ye.Abbreviated,le.Format,!0);break;case"BBBB":_t=ze(n.DayPeriods,ye.Wide,le.Format,!0);break;case"BBBBB":_t=ze(n.DayPeriods,ye.Narrow,le.Format,!0);break;case"h":_t=$(t.Hours,1,-12);break;case"hh":_t=$(t.Hours,2,-12);break;case"H":_t=$(t.Hours,1);break;case"HH":_t=$(t.Hours,2);break;case"m":_t=$(t.Minutes,1);break;case"mm":_t=$(t.Minutes,2);break;case"s":_t=$(t.Seconds,1);break;case"ss":_t=$(t.Seconds,2);break;case"S":_t=$(t.FractionalSeconds,1);break;case"SS":_t=$(t.FractionalSeconds,2);break;case"SSS":_t=$(t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":_t=te(i.Short);break;case"ZZZZZ":_t=te(i.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":_t=te(i.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":_t=te(i.Long);break;default:return null}return st[Ye]=_t,_t}(ii);Xn+=Gn?Gn(Bt,qe,ri):"''"===ii?"'":ii.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Xn}function s(Ye,_t,qe){const Ct=new Date(0);return Ct.setFullYear(Ye,_t,qe),Ct.setHours(0,0,0),Ct}function l(Ye,_t){const qe=function Ue(Ye){return(0,e.cg1)(Ye)[e.wAp.LocaleId]}(Ye);if(h[qe]=h[qe]||{},h[qe][_t])return h[qe][_t];let Ct="";switch(_t){case"shortDate":Ct=ue(Ye,Ve.Short);break;case"mediumDate":Ct=ue(Ye,Ve.Medium);break;case"longDate":Ct=ue(Ye,Ve.Long);break;case"fullDate":Ct=ue(Ye,Ve.Full);break;case"shortTime":Ct=Me(Ye,Ve.Short);break;case"mediumTime":Ct=Me(Ye,Ve.Medium);break;case"longTime":Ct=Me(Ye,Ve.Long);break;case"fullTime":Ct=Me(Ye,Ve.Full);break;case"short":const Bt=l(Ye,"shortTime"),Qt=l(Ye,"shortDate");Ct=d(ot(Ye,Ve.Short),[Bt,Qt]);break;case"medium":const zt=l(Ye,"mediumTime"),En=l(Ye,"mediumDate");Ct=d(ot(Ye,Ve.Medium),[zt,En]);break;case"long":const ri=l(Ye,"longTime"),Xn=l(Ye,"longDate");Ct=d(ot(Ye,Ve.Long),[ri,Xn]);break;case"full":const ii=l(Ye,"fullTime"),Gn=l(Ye,"fullDate");Ct=d(ot(Ye,Ve.Full),[ii,Gn])}return Ct&&(h[qe][_t]=Ct),Ct}function d(Ye,_t){return _t&&(Ye=Ye.replace(/\{([^}]+)}/g,function(qe,Ct){return null!=_t&&Ct in _t?_t[Ct]:qe})),Ye}function c(Ye,_t,qe="-",Ct,Bt){let Qt="";(Ye<0||Bt&&Ye<=0)&&(Bt?Ye=1-Ye:(Ye=-Ye,Qt=qe));let zt=String(Ye);for(;zt.length<_t;)zt="0"+zt;return Ct&&(zt=zt.slice(zt.length-_t)),Qt+zt}function $(Ye,_t,qe=0,Ct=!1,Bt=!1){return function(Qt,zt){let En=function ht(Ye,_t){switch(Ye){case t.FullYear:return _t.getFullYear();case t.Month:return _t.getMonth();case t.Date:return _t.getDate();case t.Hours:return _t.getHours();case t.Minutes:return _t.getMinutes();case t.Seconds:return _t.getSeconds();case t.FractionalSeconds:return _t.getMilliseconds();case t.Day:return _t.getDay();default:throw new Error(`Unknown DateType value "${Ye}".`)}}(Ye,Qt);if((qe>0||En>-qe)&&(En+=qe),Ye===t.Hours)0===En&&-12===qe&&(En=12);else if(Ye===t.FractionalSeconds)return function S(Ye,_t){return c(Ye,3).substring(0,_t)}(En,_t);const ri=je(zt,ve.MinusSign);return c(En,_t,ri,Ct,Bt)}}function ze(Ye,_t,qe=le.Format,Ct=!1){return function(Bt,Qt){return function et(Ye,_t,qe,Ct,Bt,Qt){switch(qe){case n.Months:return function k(Ye,_t,qe){const Ct=(0,e.cg1)(Ye),Qt=Ce([Ct[e.wAp.MonthsFormat],Ct[e.wAp.MonthsStandalone]],_t);return Ce(Qt,qe)}(_t,Bt,Ct)[Ye.getMonth()];case n.Days:return function ce(Ye,_t,qe){const Ct=(0,e.cg1)(Ye),Qt=Ce([Ct[e.wAp.DaysFormat],Ct[e.wAp.DaysStandalone]],_t);return Ce(Qt,qe)}(_t,Bt,Ct)[Ye.getDay()];case n.DayPeriods:const zt=Ye.getHours(),En=Ye.getMinutes();if(Qt){const Xn=function ge(Ye){const _t=(0,e.cg1)(Ye);return Ee(_t),(_t[e.wAp.ExtraData][2]||[]).map(Ct=>"string"==typeof Ct?fe(Ct):[fe(Ct[0]),fe(Ct[1])])}(_t),ii=function we(Ye,_t,qe){const Ct=(0,e.cg1)(Ye);Ee(Ct);const Qt=Ce([Ct[e.wAp.ExtraData][0],Ct[e.wAp.ExtraData][1]],_t)||[];return Ce(Qt,qe)||[]}(_t,Bt,Ct),Gn=Xn.findIndex(Ti=>{if(Array.isArray(Ti)){const[ei,vi]=Ti,nn=zt>=ei.hours&&En>=ei.minutes,Un=zt0?Math.floor(Bt/60):Math.ceil(Bt/60);switch(Ye){case i.Short:return(Bt>=0?"+":"")+c(zt,2,Qt)+c(Math.abs(Bt%60),2,Qt);case i.ShortGMT:return"GMT"+(Bt>=0?"+":"")+c(zt,1,Qt);case i.Long:return"GMT"+(Bt>=0?"+":"")+c(zt,2,Qt)+":"+c(Math.abs(Bt%60),2,Qt);case i.Extended:return 0===Ct?"Z":(Bt>=0?"+":"")+c(zt,2,Qt)+":"+c(Math.abs(Bt%60),2,Qt);default:throw new Error(`Unknown zone width "${Ye}"`)}}}function xe(Ye){return s(Ye.getFullYear(),Ye.getMonth(),Ye.getDate()+(4-Ye.getDay()))}function ie(Ye,_t=!1){return function(qe,Ct){let Bt;if(_t){const Qt=new Date(qe.getFullYear(),qe.getMonth(),1).getDay()-1,zt=qe.getDate();Bt=1+Math.floor((zt+Qt)/7)}else{const Qt=xe(qe),zt=function De(Ye){const _t=s(Ye,0,1).getDay();return s(Ye,0,1+(_t<=4?4:11)-_t)}(Qt.getFullYear()),En=Qt.getTime()-zt.getTime();Bt=1+Math.round(En/6048e5)}return c(Bt,Ye,je(Ct,ve.MinusSign))}}function Te(Ye,_t=!1){return function(qe,Ct){return c(xe(qe).getFullYear(),Ye,je(Ct,ve.MinusSign),_t)}}const st={};function Et(Ye,_t){Ye=Ye.replace(/:/g,"");const qe=Date.parse("Jan 01, 1970 00:00:00 "+Ye)/6e4;return isNaN(qe)?_t:qe}function an(Ye){return Ye instanceof Date&&!isNaN(Ye.valueOf())}function vn(Ye,_t){_t=encodeURIComponent(_t);for(const qe of Ye.split(";")){const Ct=qe.indexOf("="),[Bt,Qt]=-1==Ct?[qe,""]:[qe.slice(0,Ct),qe.slice(Ct+1)];if(Bt.trim()===_t)return decodeURIComponent(Qt)}return null}let Vn=(()=>{class Ye{constructor(qe,Ct,Bt,Qt){this._iterableDiffers=qe,this._keyValueDiffers=Ct,this._ngEl=Bt,this._renderer=Qt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(qe){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof qe?qe.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(qe){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof qe?qe.split(/\s+/):qe,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const qe=this._iterableDiffer.diff(this._rawClass);qe&&this._applyIterableChanges(qe)}else if(this._keyValueDiffer){const qe=this._keyValueDiffer.diff(this._rawClass);qe&&this._applyKeyValueChanges(qe)}}_applyKeyValueChanges(qe){qe.forEachAddedItem(Ct=>this._toggleClass(Ct.key,Ct.currentValue)),qe.forEachChangedItem(Ct=>this._toggleClass(Ct.key,Ct.currentValue)),qe.forEachRemovedItem(Ct=>{Ct.previousValue&&this._toggleClass(Ct.key,!1)})}_applyIterableChanges(qe){qe.forEachAddedItem(Ct=>{if("string"!=typeof Ct.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(Ct.item)}`);this._toggleClass(Ct.item,!0)}),qe.forEachRemovedItem(Ct=>this._toggleClass(Ct.item,!1))}_applyClasses(qe){qe&&(Array.isArray(qe)||qe instanceof Set?qe.forEach(Ct=>this._toggleClass(Ct,!0)):Object.keys(qe).forEach(Ct=>this._toggleClass(Ct,!!qe[Ct])))}_removeClasses(qe){qe&&(Array.isArray(qe)||qe instanceof Set?qe.forEach(Ct=>this._toggleClass(Ct,!1)):Object.keys(qe).forEach(Ct=>this._toggleClass(Ct,!1)))}_toggleClass(qe,Ct){(qe=qe.trim())&&qe.split(/\s+/g).forEach(Bt=>{Ct?this._renderer.addClass(this._ngEl.nativeElement,Bt):this._renderer.removeClass(this._ngEl.nativeElement,Bt)})}}return Ye.\u0275fac=function(qe){return new(qe||Ye)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Ye})();class $n{constructor(_t,qe,Ct,Bt){this.$implicit=_t,this.ngForOf=qe,this.index=Ct,this.count=Bt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Jn=(()=>{class Ye{constructor(qe,Ct,Bt){this._viewContainer=qe,this._template=Ct,this._differs=Bt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(qe){this._ngForOf=qe,this._ngForOfDirty=!0}set ngForTrackBy(qe){this._trackByFn=qe}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(qe){qe&&(this._template=qe)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const qe=this._ngForOf;!this._differ&&qe&&(this._differ=this._differs.find(qe).create(this.ngForTrackBy))}if(this._differ){const qe=this._differ.diff(this._ngForOf);qe&&this._applyChanges(qe)}}_applyChanges(qe){const Ct=this._viewContainer;qe.forEachOperation((Bt,Qt,zt)=>{if(null==Bt.previousIndex)Ct.createEmbeddedView(this._template,new $n(Bt.item,this._ngForOf,-1,-1),null===zt?void 0:zt);else if(null==zt)Ct.remove(null===Qt?void 0:Qt);else if(null!==Qt){const En=Ct.get(Qt);Ct.move(En,zt),Ln(En,Bt)}});for(let Bt=0,Qt=Ct.length;Bt{Ln(Ct.get(Bt.currentIndex),Bt)})}static ngTemplateContextGuard(qe,Ct){return!0}}return Ye.\u0275fac=function(qe){return new(qe||Ye)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Ye})();function Ln(Ye,_t){Ye.context.$implicit=_t.item}let qn=(()=>{class Ye{constructor(qe,Ct){this._viewContainer=qe,this._context=new ci,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ct}set ngIf(qe){this._context.$implicit=this._context.ngIf=qe,this._updateView()}set ngIfThen(qe){Yi("ngIfThen",qe),this._thenTemplateRef=qe,this._thenViewRef=null,this._updateView()}set ngIfElse(qe){Yi("ngIfElse",qe),this._elseTemplateRef=qe,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(qe,Ct){return!0}}return Ye.\u0275fac=function(qe){return new(qe||Ye)(e.Y36(e.s_b),e.Y36(e.Rgc))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Ye})();class ci{constructor(){this.$implicit=null,this.ngIf=null}}function Yi(Ye,_t){if(_t&&!_t.createEmbeddedView)throw new Error(`${Ye} must be a TemplateRef, but received '${(0,e.AaK)(_t)}'.`)}class tr{constructor(_t,qe){this._viewContainerRef=_t,this._templateRef=qe,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(_t){_t&&!this._created?this.create():!_t&&this._created&&this.destroy()}}let Vi=(()=>{class Ye{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(qe){this._ngSwitch=qe,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(qe){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(qe)}_matchCase(qe){const Ct=qe==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ct,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ct}_updateDefaultCases(qe){if(this._defaultViews&&qe!==this._defaultUsed){this._defaultUsed=qe;for(let Ct=0;Ct{class Ye{constructor(qe,Ct,Bt){this.ngSwitch=Bt,Bt._addCase(),this._view=new tr(qe,Ct)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Ye.\u0275fac=function(qe){return new(qe||Ye)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Vi,9))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Ye})(),or=(()=>{class Ye{constructor(qe,Ct,Bt){Bt._addDefault(new tr(qe,Ct))}}return Ye.\u0275fac=function(qe){return new(qe||Ye)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Vi,9))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Ye})(),Ci=(()=>{class Ye{constructor(qe,Ct,Bt){this._ngEl=qe,this._differs=Ct,this._renderer=Bt,this._ngStyle=null,this._differ=null}set ngStyle(qe){this._ngStyle=qe,!this._differ&&qe&&(this._differ=this._differs.find(qe).create())}ngDoCheck(){if(this._differ){const qe=this._differ.diff(this._ngStyle);qe&&this._applyChanges(qe)}}_setStyle(qe,Ct){const[Bt,Qt]=qe.split("."),zt=-1===Bt.indexOf("-")?void 0:e.JOm.DashCase;null!=Ct?this._renderer.setStyle(this._ngEl.nativeElement,Bt,Qt?`${Ct}${Qt}`:Ct,zt):this._renderer.removeStyle(this._ngEl.nativeElement,Bt,zt)}_applyChanges(qe){qe.forEachRemovedItem(Ct=>this._setStyle(Ct.key,null)),qe.forEachAddedItem(Ct=>this._setStyle(Ct.key,Ct.currentValue)),qe.forEachChangedItem(Ct=>this._setStyle(Ct.key,Ct.currentValue))}}return Ye.\u0275fac=function(qe){return new(qe||Ye)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Ye})(),Er=(()=>{class Ye{constructor(qe){this._viewContainerRef=qe,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(qe){if(qe.ngTemplateOutlet||qe.ngTemplateOutletInjector){const Ct=this._viewContainerRef;if(this._viewRef&&Ct.remove(Ct.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Bt,ngTemplateOutletContext:Qt,ngTemplateOutletInjector:zt}=this;this._viewRef=Ct.createEmbeddedView(Bt,Qt,zt?{injector:zt}:void 0)}else this._viewRef=null}else this._viewRef&&qe.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Ye.\u0275fac=function(qe){return new(qe||Ye)(e.Y36(e.s_b))},Ye.\u0275dir=e.lG2({type:Ye,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]}),Ye})();function Ei(Ye,_t){return new e.vHH(2100,!1)}class Or{createSubscription(_t,qe){return _t.subscribe({next:qe,error:Ct=>{throw Ct}})}dispose(_t){_t.unsubscribe()}}class Nr{createSubscription(_t,qe){return _t.then(qe,Ct=>{throw Ct})}dispose(_t){}}const kr=new Nr,Hr=new Or;let Pi=(()=>{class Ye{constructor(qe){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=qe}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(qe){return this._obj?qe!==this._obj?(this._dispose(),this.transform(qe)):this._latestValue:(qe&&this._subscribe(qe),this._latestValue)}_subscribe(qe){this._obj=qe,this._strategy=this._selectStrategy(qe),this._subscription=this._strategy.createSubscription(qe,Ct=>this._updateLatestValue(qe,Ct))}_selectStrategy(qe){if((0,e.QGY)(qe))return kr;if((0,e.F4k)(qe))return Hr;throw Ei()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(qe,Ct){qe===this._obj&&(this._latestValue=Ct,this._ref.markForCheck())}}return Ye.\u0275fac=function(qe){return new(qe||Ye)(e.Y36(e.sBO,16))},Ye.\u0275pipe=e.Yjl({name:"async",type:Ye,pure:!1,standalone:!0}),Ye})(),Ii=(()=>{class Ye{transform(qe){if(null==qe)return null;if("string"!=typeof qe)throw Ei();return qe.toLowerCase()}}return Ye.\u0275fac=function(qe){return new(qe||Ye)},Ye.\u0275pipe=e.Yjl({name:"lowercase",type:Ye,pure:!0,standalone:!0}),Ye})();const Mt=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let en=(()=>{class Ye{transform(qe){if(null==qe)return null;if("string"!=typeof qe)throw Ei();return qe.replace(Mt,Ct=>Ct[0].toUpperCase()+Ct.slice(1).toLowerCase())}}return Ye.\u0275fac=function(qe){return new(qe||Ye)},Ye.\u0275pipe=e.Yjl({name:"titlecase",type:Ye,pure:!0,standalone:!0}),Ye})(),ct=(()=>{class Ye{transform(qe){if(null==qe)return null;if("string"!=typeof qe)throw Ei();return qe.toUpperCase()}}return Ye.\u0275fac=function(qe){return new(qe||Ye)},Ye.\u0275pipe=e.Yjl({name:"uppercase",type:Ye,pure:!0,standalone:!0}),Ye})();const kt=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Zt=(()=>{class Ye{constructor(qe,Ct){this.locale=qe,this.defaultTimezone=Ct}transform(qe,Ct="mediumDate",Bt,Qt){if(null==qe||""===qe||qe!=qe)return null;try{var zt;return o(qe,Ct,Qt||this.locale,null!==(zt=Bt??this.defaultTimezone)&&void 0!==zt?zt:void 0)}catch(En){throw Ei()}}}return Ye.\u0275fac=function(qe){return new(qe||Ye)(e.Y36(e.soG,16),e.Y36(kt,24))},Ye.\u0275pipe=e.Yjl({name:"date",type:Ye,pure:!0,standalone:!0}),Ye})(),dn=(()=>{class Ye{}return Ye.\u0275fac=function(qe){return new(qe||Ye)},Ye.\u0275mod=e.oAB({type:Ye}),Ye.\u0275inj=e.cJS({}),Ye})();const An="browser";function cr(Ye){return Ye===An}function Ji(Ye){return"server"===Ye}let Fi=(()=>{class Ye{}return Ye.\u0275prov=(0,e.Yz7)({token:Ye,providedIn:"root",factory:()=>new Si((0,e.LFG)(D),window)}),Ye})();class Si{constructor(_t,qe){this.document=_t,this.window=qe,this.offset=()=>[0,0]}setOffset(_t){this.offset=Array.isArray(_t)?()=>_t:_t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(_t){this.supportsScrolling()&&this.window.scrollTo(_t[0],_t[1])}scrollToAnchor(_t){if(!this.supportsScrolling())return;const qe=function zr(Ye,_t){const qe=Ye.getElementById(_t)||Ye.getElementsByName(_t)[0];if(qe)return qe;if("function"==typeof Ye.createTreeWalker&&Ye.body&&(Ye.body.createShadowRoot||Ye.body.attachShadow)){const Ct=Ye.createTreeWalker(Ye.body,NodeFilter.SHOW_ELEMENT);let Bt=Ct.currentNode;for(;Bt;){const Qt=Bt.shadowRoot;if(Qt){const zt=Qt.getElementById(_t)||Qt.querySelector(`[name="${_t}"]`);if(zt)return zt}Bt=Ct.nextNode()}}return null}(this.document,_t);qe&&(this.scrollToElement(qe),qe.focus())}setHistoryScrollRestoration(_t){if(this.supportScrollRestoration()){const qe=this.window.history;qe&&qe.scrollRestoration&&(qe.scrollRestoration=_t)}}scrollToElement(_t){const qe=_t.getBoundingClientRect(),Ct=qe.left+this.window.pageXOffset,Bt=qe.top+this.window.pageYOffset,Qt=this.offset();this.window.scrollTo(Ct-Qt[0],Bt-Qt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const _t=Ua(this.window.history)||Ua(Object.getPrototypeOf(this.window.history));return!(!_t||!_t.writable&&!_t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Ua(Ye){return Object.getOwnPropertyDescriptor(Ye,"scrollRestoration")}class gi{}},80529:($e,he,p)=>{"use strict";p.d(he,{JF:()=>g,LE:()=>Oe,TP:()=>ce,WM:()=>B,Zn:()=>Ve,eN:()=>Ue,qT:()=>Be});var e=p(36895),A=p(94650),C=p(39646),M=p(69751),f=p(24351),b=p(39300),D=p(54004);class T{}class R{}class B{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?this.lazyInit="string"==typeof i?()=>{this.headers=new Map,i.split("\n").forEach(t=>{const n=t.indexOf(":");if(n>0){const o=t.slice(0,n),s=o.toLowerCase(),l=t.slice(n+1).trim();this.maybeSetNormalizedName(o,s),this.headers.has(s)?this.headers.get(s).push(l):this.headers.set(s,[l])}})}:()=>{this.headers=new Map,Object.keys(i).forEach(t=>{let n=i[t];const o=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(o,n),this.maybeSetNormalizedName(t,o))})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const t=this.headers.get(i.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,t){return this.clone({name:i,value:t,op:"a"})}set(i,t){return this.clone({name:i,value:t,op:"s"})}delete(i,t){return this.clone({name:i,value:t,op:"d"})}maybeSetNormalizedName(i,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,i)}init(){this.lazyInit&&(this.lazyInit instanceof B?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(t=>{this.headers.set(t,i.headers.get(t)),this.normalizedNames.set(t,i.normalizedNames.get(t))})}clone(i){const t=new B;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof B?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([i]),t}applyUpdate(i){const t=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,t);const o=("a"===i.op?this.headers.get(t):void 0)||[];o.push(...n),this.headers.set(t,o);break;case"d":const s=i.value;if(s){let l=this.headers.get(t);if(!l)return;l=l.filter(d=>-1===s.indexOf(d)),0===l.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,l)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>i(this.normalizedNames.get(t),this.headers.get(t)))}}class H{encodeKey(i){return G(i)}encodeValue(i){return G(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const J=/%(\d[a-f0-9])/gi,ne={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function G(a){return encodeURIComponent(a).replace(J,(i,t)=>{var n;return null!==(n=ne[t])&&void 0!==n?n:i})}function se(a){return`${a}`}class Oe{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new H,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function O(a,i){const t=new Map;return a.length>0&&a.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[l,d]=-1==s?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,s)),i.decodeValue(o.slice(s+1))],c=t.get(l)||[];c.push(d),t.set(l,c)}),t}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(t=>{const n=i.fromObject[t],o=Array.isArray(n)?n.map(se):[se(n)];this.map.set(t,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const t=this.map.get(i);return t?t[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,t){return this.clone({param:i,value:t,op:"a"})}appendAll(i){const t=[];return Object.keys(i).forEach(n=>{const o=i[n];Array.isArray(o)?o.forEach(s=>{t.push({param:n,value:s,op:"a"})}):t.push({param:n,value:o,op:"a"})}),this.clone(t)}set(i,t){return this.clone({param:i,value:t,op:"s"})}delete(i,t){return this.clone({param:i,value:t,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const t=this.encoder.encodeKey(i);return this.map.get(i).map(n=>t+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const t=new Oe({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(i),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const t=("a"===i.op?this.map.get(i.param):void 0)||[];t.push(se(i.value)),this.map.set(i.param,t);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const o=n.indexOf(se(i.value));-1!==o&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class Be{constructor(){this.map=new Map}set(i,t){return this.map.set(i,t),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function z(a){return typeof ArrayBuffer<"u"&&a instanceof ArrayBuffer}function F(a){return typeof Blob<"u"&&a instanceof Blob}function V(a){return typeof FormData<"u"&&a instanceof FormData}class q{constructor(i,t,n,o){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function E(a){switch(a){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==n?n:null,s=o):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new B),this.context||(this.context=new Be),this.params){const l=this.params.toString();if(0===l.length)this.urlWithParams=t;else{const d=t.indexOf("?");this.urlWithParams=t+(-1===d?"?":dze.set(et,i.setHeaders[et]),S)),i.setParams&&($=Object.keys(i.setParams).reduce((ze,et)=>ze.set(et,i.setParams[et]),$)),new q(n,o,l,{params:$,headers:S,context:ht,reportProgress:c,responseType:s,withCredentials:d})}}var pe=(()=>((pe=pe||{})[pe.Sent=0]="Sent",pe[pe.UploadProgress=1]="UploadProgress",pe[pe.ResponseHeader=2]="ResponseHeader",pe[pe.DownloadProgress=3]="DownloadProgress",pe[pe.Response=4]="Response",pe[pe.User=5]="User",pe))();class le{constructor(i,t=200,n="OK"){this.headers=i.headers||new B,this.status=void 0!==i.status?i.status:t,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class ye extends le{constructor(i={}){super(i),this.type=pe.ResponseHeader}clone(i={}){return new ye({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class Ve extends le{constructor(i={}){super(i),this.type=pe.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new Ve({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class ve extends le{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function Ke(a,i){return{body:i,headers:a.headers,context:a.context,observe:a.observe,params:a.params,reportProgress:a.reportProgress,responseType:a.responseType,withCredentials:a.withCredentials}}let Ue=(()=>{class a{constructor(t){this.handler=t}request(t,n,o={}){let s;if(t instanceof q)s=t;else{let c,S;c=o.headers instanceof B?o.headers:new B(o.headers),o.params&&(S=o.params instanceof Oe?o.params:new Oe({fromObject:o.params})),s=new q(t,n,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:S,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const l=(0,C.of)(s).pipe((0,f.b)(c=>this.handler.handle(c)));if(t instanceof q||"events"===o.observe)return l;const d=l.pipe((0,b.h)(c=>c instanceof Ve));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return d.pipe((0,D.U)(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return d.pipe((0,D.U)(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return d.pipe((0,D.U)(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return d.pipe((0,D.U)(c=>c.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,n={}){return this.request("DELETE",t,n)}get(t,n={}){return this.request("GET",t,n)}head(t,n={}){return this.request("HEAD",t,n)}jsonp(t,n){return this.request("JSONP",t,{params:(new Oe).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,n={}){return this.request("OPTIONS",t,n)}patch(t,n,o={}){return this.request("PATCH",t,Ke(o,n))}post(t,n,o={}){return this.request("POST",t,Ke(o,n))}put(t,n,o={}){return this.request("PUT",t,Ke(o,n))}}return a.\u0275fac=function(t){return new(t||a)(A.LFG(T))},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})();class oe{constructor(i,t){this.next=i,this.interceptor=t}handle(i){return this.interceptor.intercept(i,this.next)}}const ce=new A.OlP("HTTP_INTERCEPTORS");let k=(()=>{class a{intercept(t,n){return n.handle(t)}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})();const vt=/^\)\]\}',?\n/;let nt=(()=>{class a{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new M.y(n=>{const o=this.xhrFactory.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((et,te)=>o.setRequestHeader(et,te.join(","))),t.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const et=t.detectContentTypeHeader();null!==et&&o.setRequestHeader("Content-Type",et)}if(t.responseType){const et=t.responseType.toLowerCase();o.responseType="json"!==et?et:"text"}const s=t.serializeBody();let l=null;const d=()=>{if(null!==l)return l;const et=o.statusText||"OK",te=new B(o.getAllResponseHeaders()),Le=function ee(a){return"responseURL"in a&&a.responseURL?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):null}(o)||t.url;return l=new ye({headers:te,status:o.status,statusText:et,url:Le}),l},c=()=>{let{headers:et,status:te,statusText:Le,url:Ie}=d(),De=null;204!==te&&(De=typeof o.response>"u"?o.responseText:o.response),0===te&&(te=De?200:0);let xe=te>=200&&te<300;if("json"===t.responseType&&"string"==typeof De){const ie=De;De=De.replace(vt,"");try{De=""!==De?JSON.parse(De):null}catch(Te){De=ie,xe&&(xe=!1,De={error:Te,text:De})}}xe?(n.next(new Ve({body:De,headers:et,status:te,statusText:Le,url:Ie||void 0})),n.complete()):n.error(new ve({error:De,headers:et,status:te,statusText:Le,url:Ie||void 0}))},S=et=>{const{url:te}=d(),Le=new ve({error:et,status:o.status||0,statusText:o.statusText||"Unknown Error",url:te||void 0});n.error(Le)};let $=!1;const ht=et=>{$||(n.next(d()),$=!0);let te={type:pe.DownloadProgress,loaded:et.loaded};et.lengthComputable&&(te.total=et.total),"text"===t.responseType&&!!o.responseText&&(te.partialText=o.responseText),n.next(te)},ze=et=>{let te={type:pe.UploadProgress,loaded:et.loaded};et.lengthComputable&&(te.total=et.total),n.next(te)};return o.addEventListener("load",c),o.addEventListener("error",S),o.addEventListener("timeout",S),o.addEventListener("abort",S),t.reportProgress&&(o.addEventListener("progress",ht),null!==s&&o.upload&&o.upload.addEventListener("progress",ze)),o.send(s),n.next({type:pe.Sent}),()=>{o.removeEventListener("error",S),o.removeEventListener("abort",S),o.removeEventListener("load",c),o.removeEventListener("timeout",S),t.reportProgress&&(o.removeEventListener("progress",ht),null!==s&&o.upload&&o.upload.removeEventListener("progress",ze)),o.readyState!==o.DONE&&o.abort()}})}}return a.\u0275fac=function(t){return new(t||a)(A.LFG(e.JF))},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})();const Ae=new A.OlP("XSRF_COOKIE_NAME"),Ee=new A.OlP("XSRF_HEADER_NAME");class ge{}let we=(()=>{class a{constructor(t,n,o){this.doc=t,this.platform=n,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return a.\u0275fac=function(t){return new(t||a)(A.LFG(e.K0),A.LFG(A.Lbi),A.LFG(Ae))},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})(),Ne=(()=>{class a{constructor(t,n){this.tokenService=t,this.headerName=n}intercept(t,n){const o=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||o.startsWith("http://")||o.startsWith("https://"))return n.handle(t);const s=this.tokenService.getToken();return null!==s&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,s)})),n.handle(t)}}return a.\u0275fac=function(t){return new(t||a)(A.LFG(ge),A.LFG(Ee))},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})(),Ce=(()=>{class a{constructor(t,n){this.backend=t,this.injector=n,this.chain=null}handle(t){if(null===this.chain){const n=this.injector.get(ce,[]);this.chain=n.reduceRight((o,s)=>new oe(o,s),this.backend)}return this.chain.handle(t)}}return a.\u0275fac=function(t){return new(t||a)(A.LFG(R),A.LFG(A.zs3))},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})(),u=(()=>{class a{static disable(){return{ngModule:a,providers:[{provide:Ne,useClass:k}]}}static withOptions(t={}){return{ngModule:a,providers:[t.cookieName?{provide:Ae,useValue:t.cookieName}:[],t.headerName?{provide:Ee,useValue:t.headerName}:[]]}}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=A.oAB({type:a}),a.\u0275inj=A.cJS({providers:[Ne,{provide:ce,useExisting:Ne,multi:!0},{provide:ge,useClass:we},{provide:Ae,useValue:"XSRF-TOKEN"},{provide:Ee,useValue:"X-XSRF-TOKEN"}]}),a})(),g=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=A.oAB({type:a}),a.\u0275inj=A.cJS({providers:[Ue,{provide:T,useClass:Ce},nt,{provide:R,useExisting:nt}],imports:[u.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),a})()},94650:($e,he,p)=>{"use strict";p.d(he,{$8M:()=>ho,$Z:()=>kp,AFp:()=>Qg,ALo:()=>pg,AaK:()=>T,AsE:()=>Ou,B6R:()=>Ie,BQk:()=>wc,CHM:()=>Ki,CRH:()=>Sg,CZH:()=>Nc,CqO:()=>If,D6c:()=>jT,DdM:()=>rg,Dn7:()=>gg,EJc:()=>iT,EiD:()=>To,EpF:()=>Rf,F$t:()=>Uf,F4k:()=>Pf,FYo:()=>jh,FiY:()=>er,G48:()=>yT,Gf:()=>yg,GfV:()=>Zh,GkF:()=>Tu,Gpc:()=>w,Gre:()=>um,HOy:()=>Lu,Hsn:()=>Nf,Ikx:()=>Uu,JOm:()=>Ra,JVY:()=>dd,Jf7:()=>ep,KtG:()=>ji,L6k:()=>ud,LAX:()=>pd,LFG:()=>Bi,LSH:()=>Wn,Lbi:()=>XE,Lck:()=>Xv,MAs:()=>Df,MGl:()=>Sc,MMx:()=>Yu,NdJ:()=>wu,O4$:()=>qr,OlP:()=>si,Oqu:()=>Iu,PXZ:()=>AT,Q2q:()=>Cu,Q6J:()=>bu,QGY:()=>yu,QP$:()=>zs,QbO:()=>eT,Qsj:()=>j_,R0b:()=>Wr,RDi:()=>ml,Rgc:()=>Ll,SBq:()=>Al,Sil:()=>aT,Suo:()=>wg,TTD:()=>Oi,TgZ:()=>Ec,Tol:()=>Xf,Udp:()=>Du,VKq:()=>ag,W1O:()=>Rg,WFA:()=>Su,WLB:()=>og,XFs:()=>Ne,Xpm:()=>Le,Xts:()=>Cr,Y36:()=>xs,YKP:()=>Qm,YNc:()=>xf,Yjl:()=>Et,Yz7:()=>Me,ZZ4:()=>_h,_Bn:()=>Jm,_UZ:()=>Eu,_Vd:()=>_l,_c5:()=>VT,_uU:()=>om,aQg:()=>Ah,c2e:()=>tT,cJS:()=>je,cg1:()=>ku,d8E:()=>Nu,dDg:()=>fT,dqk:()=>n,eBb:()=>hd,eFA:()=>c_,ekj:()=>Ru,eoX:()=>o_,evT:()=>tp,f3M:()=>Yl,g9A:()=>$g,gM2:()=>_g,h0i:()=>Gs,hGG:()=>FT,hYB:()=>xu,hij:()=>xc,iGM:()=>Tg,ifc:()=>t,ip1:()=>Jg,kEZ:()=>sg,kL8:()=>vm,kcU:()=>Ks,lG2:()=>Qe,lcZ:()=>fg,lnq:()=>Hu,lqb:()=>Yo,lri:()=>r_,mCW:()=>Ht,n5z:()=>Bo,n_E:()=>Oc,oAB:()=>ie,oJD:()=>Sn,oxw:()=>Bf,pB0:()=>Ph,q3G:()=>pn,qLn:()=>Cl,qOj:()=>mu,qZA:()=>Tc,qzn:()=>bo,rWj:()=>a_,s9C:()=>Mu,sBO:()=>wT,sIi:()=>Sl,s_b:()=>Lc,soG:()=>kc,tb:()=>Xg,tp0:()=>go,uIk:()=>Au,vHH:()=>ne,vpe:()=>La,wAp:()=>Rn,xDo:()=>Bu,xi3:()=>mg,xp6:()=>Sp,ynx:()=>yc,z2F:()=>Vc,z3N:()=>ca,zSh:()=>gd,zs3:()=>Jo});var e=p(77579),A=p(50727),C=p(69751),M=p(56451),f=p(13099);function b(m){for(let _ in m)if(m[_]===b)return _;throw Error("Could not find renamed property on target object.")}function D(m,_){for(const y in _)_.hasOwnProperty(y)&&!m.hasOwnProperty(y)&&(m[y]=_[y])}function T(m){if("string"==typeof m)return m;if(Array.isArray(m))return"["+m.map(T).join(", ")+"]";if(null==m)return""+m;if(m.overriddenName)return`${m.overriddenName}`;if(m.name)return`${m.name}`;const _=m.toString();if(null==_)return""+_;const y=_.indexOf("\n");return-1===y?_:_.substring(0,y)}function R(m,_){return null==m||""===m?null===_?"":_:null==_||""===_?m:m+" "+_}const B=b({__forward_ref__:b});function w(m){return m.__forward_ref__=w,m.toString=function(){return T(this())},m}function H(m){return O(m)?m():m}function O(m){return"function"==typeof m&&m.hasOwnProperty(B)&&m.__forward_ref__===w}class ne extends Error{constructor(_,y){super(function G(m,_){return`NG0${Math.abs(m)}${_?": "+_.trim():""}`}(_,y)),this.code=_}}function se(m){return"string"==typeof m?m:null==m?"":String(m)}function z(m,_){throw new ne(-201,!1)}function k(m,_){null==m&&function N(m,_,y,x){throw new Error(`ASSERTION ERROR: ${m}`+(null==x?"":` [Expected=> ${y} ${x} ${_} <=Actual]`))}(_,m,null,"!=")}function Me(m){return{token:m.token,providedIn:m.providedIn||null,factory:m.factory,value:void 0}}function je(m){return{providers:m.providers||[],imports:m.imports||[]}}function ut(m){return tt(m,Ae)||tt(m,ge)}function tt(m,_){return m.hasOwnProperty(_)?m[_]:null}function nt(m){return m&&(m.hasOwnProperty(Ee)||m.hasOwnProperty(we))?m[Ee]:null}const Ae=b({\u0275prov:b}),Ee=b({\u0275inj:b}),ge=b({ngInjectableDef:b}),we=b({ngInjectorDef:b});var Ne=(()=>((Ne=Ne||{})[Ne.Default=0]="Default",Ne[Ne.Host=1]="Host",Ne[Ne.Self=2]="Self",Ne[Ne.SkipSelf=4]="SkipSelf",Ne[Ne.Optional=8]="Optional",Ne))();let Ce;function r(m){const _=Ce;return Ce=m,_}function u(m,_,y){const x=ut(m);return x&&"root"==x.providedIn?void 0===x.value?x.value=x.factory():x.value:y&Ne.Optional?null:void 0!==_?_:void z(T(m))}function v(m){return{toString:m}.toString()}var h=(()=>((h=h||{})[h.OnPush=0]="OnPush",h[h.Default=1]="Default",h))(),t=(()=>{return(m=t||(t={}))[m.Emulated=0]="Emulated",m[m.None=2]="None",m[m.ShadowDom=3]="ShadowDom",t;var m})();const n=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),l={},d=[],c=b({\u0275cmp:b}),S=b({\u0275dir:b}),$=b({\u0275pipe:b}),ht=b({\u0275mod:b}),ze=b({\u0275fac:b}),et=b({__NG_ELEMENT_ID__:b});let te=0;function Le(m){return v(()=>{const y=!0===m.standalone,x={},P={type:m.type,providersResolver:null,decls:m.decls,vars:m.vars,factory:null,template:m.template||null,consts:m.consts||null,ngContentSelectors:m.ngContentSelectors,hostBindings:m.hostBindings||null,hostVars:m.hostVars||0,hostAttrs:m.hostAttrs||null,contentQueries:m.contentQueries||null,declaredInputs:x,inputs:null,outputs:null,exportAs:m.exportAs||null,onPush:m.changeDetection===h.OnPush,directiveDefs:null,pipeDefs:null,standalone:y,dependencies:y&&m.dependencies||null,getStandaloneInjector:null,selectors:m.selectors||d,viewQuery:m.viewQuery||null,features:m.features||null,data:m.data||{},encapsulation:m.encapsulation||t.Emulated,id:"c"+te++,styles:m.styles||d,_:null,setInput:null,schemas:m.schemas||null,tView:null},L=m.dependencies,Z=m.features;return P.inputs=st(m.inputs,x),P.outputs=st(m.outputs),Z&&Z.forEach(me=>me(P)),P.directiveDefs=L?()=>("function"==typeof L?L():L).map(De).filter(xe):null,P.pipeDefs=L?()=>("function"==typeof L?L():L).map(It).filter(xe):null,P})}function Ie(m,_,y){const x=m.\u0275cmp;x.directiveDefs=()=>("function"==typeof _?_():_).map(De),x.pipeDefs=()=>("function"==typeof y?y():y).map(It)}function De(m){return ke(m)||at(m)}function xe(m){return null!==m}function ie(m){return v(()=>({type:m.type,bootstrap:m.bootstrap||d,declarations:m.declarations||d,imports:m.imports||d,exports:m.exports||d,transitiveCompileScopes:null,schemas:m.schemas||null,id:m.id||null}))}function st(m,_){if(null==m)return l;const y={};for(const x in m)if(m.hasOwnProperty(x)){let P=m[x],L=P;Array.isArray(P)&&(L=P[1],P=P[0]),y[P]=x,_&&(_[P]=L)}return y}const Qe=Le;function Et(m){return{type:m.type,name:m.name,factory:null,pure:!1!==m.pure,standalone:!0===m.standalone,onDestroy:m.type.prototype.ngOnDestroy||null}}function ke(m){return m[c]||null}function at(m){return m[S]||null}function It(m){return m[$]||null}function jt(m,_){const y=m[ht]||null;if(!y&&!0===_)throw new Error(`Type ${T(m)} does not have '\u0275mod' property.`);return y}const j=18;function qn(m){return Array.isArray(m)&&"object"==typeof m[1]}function ci(m){return Array.isArray(m)&&!0===m[1]}function Yi(m){return 0!=(8&m.flags)}function tr(m){return 2==(2&m.flags)}function Vi(m){return 1==(1&m.flags)}function di(m){return null!==m.template}function or(m){return 0!=(256&m[2])}function hi(m,_){return m.hasOwnProperty(ze)?m[ze]:null}class nr{constructor(_,y,x){this.previousValue=_,this.currentValue=y,this.firstChange=x}isFirstChange(){return this.firstChange}}function Oi(){return xi}function xi(m){return m.type.prototype.ngOnChanges&&(m.setInput=lt),qi}function qi(){const m=Xe(this),_=m?.current;if(_){const y=m.previous;if(y===l)m.previous=_;else for(let x in _)y[x]=_[x];m.current=null,this.ngOnChanges(_)}}function lt(m,_,y,x){const P=Xe(m)||function yt(m,_){return m[Vt]=_}(m,{previous:l,current:null}),L=P.current||(P.current={}),Z=P.previous,me=this.declaredInputs[y],Pe=Z[me];L[me]=new nr(Pe&&Pe.currentValue,_,Z===l),m[x]=_}Oi.ngInherit=!0;const Vt="__ngSimpleChanges__";function Xe(m){return m[Vt]||null}function ni(m){for(;Array.isArray(m);)m=m[0];return m}function Fi(m,_){return ni(_[m])}function Si(m,_){return ni(_[m.index])}function zr(m,_){return m.data[_]}function dr(m,_){return m[_]}function gi(m,_){const y=_[m];return qn(y)?y:y[0]}function Ye(m){return 4==(4&m[2])}function _t(m){return 64==(64&m[2])}function Ct(m,_){return null==_?null:m[_]}function Bt(m){m[j]=0}function Qt(m,_){m[5]+=_;let y=m,x=m[3];for(;null!==x&&(1===_&&1===y[5]||-1===_&&0===y[5]);)x[5]+=_,y=x,x=x[3]}const zt={lFrame:is(null),bindingsEnabled:!0};function Ti(){return zt.bindingsEnabled}function nn(){return zt.lFrame.lView}function Un(){return zt.lFrame.tView}function Ki(m){return zt.lFrame.contextLView=m,m[8]}function ji(m){return zt.lFrame.contextLView=null,m}function ui(){let m=Tr();for(;null!==m&&64===m.type;)m=m.parent;return m}function Tr(){return zt.lFrame.currentTNode}function Je(m,_){const y=zt.lFrame;y.currentTNode=m,y.isParent=_}function Fe(){return zt.lFrame.isParent}function Re(){zt.lFrame.isParent=!1}function ai(){const m=zt.lFrame;let _=m.bindingRootIndex;return-1===_&&(_=m.bindingRootIndex=m.tView.bindingStartIndex),_}function $i(){return zt.lFrame.bindingIndex}function ur(){return zt.lFrame.bindingIndex++}function yr(m){const _=zt.lFrame,y=_.bindingIndex;return _.bindingIndex=_.bindingIndex+m,y}function qs(m,_){const y=zt.lFrame;y.bindingIndex=y.bindingRootIndex=m,xo(_)}function xo(m){zt.lFrame.currentDirectiveIndex=m}function Xa(m){const _=zt.lFrame.currentDirectiveIndex;return-1===_?null:m[_]}function ts(){return zt.lFrame.currentQueryIndex}function ta(m){zt.lFrame.currentQueryIndex=m}function ns(m){const _=m[1];return 2===_.type?_.declTNode:1===_.type?m[6]:null}function na(m,_,y){if(y&Ne.SkipSelf){let P=_,L=m;for(;!(P=P.parent,null!==P||y&Ne.Host||(P=ns(L),null===P||(L=L[15],10&P.type))););if(null===P)return!1;_=P,m=L}const x=zt.lFrame=ka();return x.currentTNode=_,x.lView=m,!0}function Yr(m){const _=ka(),y=m[1];zt.lFrame=_,_.currentTNode=y.firstChild,_.lView=m,_.tView=y,_.contextLView=m,_.bindingIndex=y.bindingStartIndex,_.inI18n=!1}function ka(){const m=zt.lFrame,_=null===m?null:m.child;return null===_?is(m):_}function is(m){const _={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:m,child:null,inI18n:!1};return null!==m&&(m.child=_),_}function Do(){const m=zt.lFrame;return zt.lFrame=m.parent,m.currentTNode=null,m.lView=null,m}const rs=Do;function Va(){const m=Do();m.isParent=!0,m.tView=null,m.selectedIndex=-1,m.contextLView=null,m.elementDepthCount=0,m.currentDirectiveIndex=-1,m.currentNamespace=null,m.bindingRootIndex=-1,m.bindingIndex=-1,m.currentQueryIndex=0}function Hi(){return zt.lFrame.selectedIndex}function wr(m){zt.lFrame.selectedIndex=m}function _i(){const m=zt.lFrame;return zr(m.tView,m.selectedIndex)}function qr(){zt.lFrame.currentNamespace="svg"}function Ks(){!function $s(){zt.lFrame.currentNamespace=null}()}function to(m,_){for(let y=_.directiveStart,x=_.directiveEnd;y=x)break}else _[Pe]<0&&(m[j]+=65536),(me>11>16&&(3&m[2])===_){m[2]+=2048;try{L.call(me)}finally{}}}else try{L.call(me)}finally{}}class Fa{constructor(_,y,x){this.factory=_,this.resolving=!1,this.canSeeViewProviders=y,this.injectImpl=x}}function _a(m,_,y){let x=0;for(;x_){Z=L-1;break}}}for(;L>16}(m),x=_;for(;y>0;)x=x[15],y--;return x}let lo=!0;function Ca(m){const _=lo;return lo=m,_}let ba=0;const pr={};function Qr(m,_){const y=co(m,_);if(-1!==y)return y;const x=_[1];x.firstCreatePass&&(m.injectorIndex=_.length,Za(x.data,m),Za(_,null),Za(x.blueprint,null));const P=ra(m,_),L=m.injectorIndex;if(so(P)){const Z=Aa(P),me=Sr(P,_),Pe=me[1].data;for(let rt=0;rt<8;rt++)_[L+rt]=me[Z+rt]|Pe[Z+rt]}return _[L+8]=P,L}function Za(m,_){m.push(0,0,0,0,0,0,0,0,_)}function co(m,_){return-1===m.injectorIndex||m.parent&&m.parent.injectorIndex===m.injectorIndex||null===_[m.injectorIndex+8]?-1:m.injectorIndex}function ra(m,_){if(m.parent&&-1!==m.parent.injectorIndex)return m.parent.injectorIndex;let y=0,x=null,P=_;for(;null!==P;){if(x=Uo(P),null===x)return-1;if(y++,P=P[15],-1!==x.injectorIndex)return x.injectorIndex|y<<16}return-1}function aa(m,_,y){!function us(m,_,y){let x;"string"==typeof y?x=y.charCodeAt(0)||0:y.hasOwnProperty(et)&&(x=y[et]),null==x&&(x=y[et]=ba++);const P=255&x;_.data[m+(P>>5)]|=1<=0?255&_:ms:_}(y);if("function"==typeof L){if(!na(_,m,x))return x&Ne.Host?uo(P,0,x):hs(_,y,x,P);try{const Z=L(x);if(null!=Z||x&Ne.Optional)return Z;z()}finally{rs()}}else if("number"==typeof L){let Z=null,me=co(m,_),Pe=-1,rt=x&Ne.Host?_[16][6]:null;for((-1===me||x&Ne.SkipSelf)&&(Pe=-1===me?ra(m,_):_[me+8],-1!==Pe&&va(x,!1)?(Z=_[1],me=Aa(Pe),_=Sr(Pe,_)):me=-1);-1!==me;){const ft=_[1];if(Kr(L,me,ft.data)){const xt=fs(me,_,y,Z,x,rt);if(xt!==pr)return xt}Pe=_[me+8],-1!==Pe&&va(x,_[1].data[me+8]===rt)&&Kr(L,me,_)?(Z=ft,me=Aa(Pe),_=Sr(Pe,_)):me=-1}}return P}function fs(m,_,y,x,P,L){const Z=_[1],me=Z.data[m+8],ft=Di(me,Z,y,null==x?tr(me)&&lo:x!=Z&&0!=(3&me.type),P&Ne.Host&&L===me);return null!==ft?Ga(_,Z,ft,me):pr}function Di(m,_,y,x,P){const L=m.providerIndexes,Z=_.data,me=1048575&L,Pe=m.directiveStart,ft=L>>20,Nt=P?me+ft:m.directiveEnd;for(let Yt=x?me:me+ft;Yt=Pe&&tn.type===y)return Yt}if(P){const Yt=Z[Pe];if(Yt&&di(Yt)&&Yt.type===y)return Pe}return null}function Ga(m,_,y,x){let P=m[y];const L=_.data;if(function Po(m){return m instanceof Fa}(P)){const Z=P;Z.resolving&&function _e(m,_){const y=_?`. Dependency path: ${_.join(" > ")} > ${m}`:"";throw new ne(-200,`Circular dependency in DI detected for ${m}${y}`)}(function Oe(m){return"function"==typeof m?m.name||m.toString():"object"==typeof m&&null!=m&&"function"==typeof m.type?m.type.name||m.type.toString():se(m)}(L[y]));const me=Ca(Z.canSeeViewProviders);Z.resolving=!0;const Pe=Z.injectImpl?r(Z.injectImpl):null;na(m,x,Ne.Default);try{P=m[y]=Z.factory(void 0,L,m,x),_.firstCreatePass&&y>=x.directiveStart&&function el(m,_,y){const{ngOnChanges:x,ngOnInit:P,ngDoCheck:L}=_.type.prototype;if(x){const Z=xi(_);(y.preOrderHooks||(y.preOrderHooks=[])).push(m,Z),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(m,Z)}P&&(y.preOrderHooks||(y.preOrderHooks=[])).push(0-m,P),L&&((y.preOrderHooks||(y.preOrderHooks=[])).push(m,L),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(m,L))}(y,L[y],_)}finally{null!==Pe&&r(Pe),Ca(me),Z.resolving=!1,rs()}}return P}function Kr(m,_,y){return!!(y[_+(m>>5)]&1<{const _=m.prototype.constructor,y=_[ze]||gs(_),x=Object.prototype;let P=Object.getPrototypeOf(m.prototype).constructor;for(;P&&P!==x;){const L=P[ze]||gs(P);if(L&&L!==y)return L;P=Object.getPrototypeOf(P)}return L=>new L})}function gs(m){return O(m)?()=>{const _=gs(H(m));return _&&_()}:hi(m)}function Uo(m){const _=m[1],y=_.type;return 2===y?_.declTNode:1===y?m[6]:null}function ho(m){return function il(m,_){if("class"===_)return m.classes;if("style"===_)return m.styles;const y=m.attrs;if(y){const x=y.length;let P=0;for(;P{const x=function fo(m){return function(...y){if(m){const x=m(...y);for(const P in x)this[P]=x[P]}}}(_);function P(...L){if(this instanceof P)return x.apply(this,L),this;const Z=new P(...L);return me.annotation=Z,me;function me(Pe,rt,ft){const xt=Pe.hasOwnProperty(Xi)?Pe[Xi]:Object.defineProperty(Pe,Xi,{value:[]})[Xi];for(;xt.length<=ft;)xt.push(null);return(xt[ft]=xt[ft]||[]).push(Z),Pe}}return y&&(P.prototype=Object.create(y.prototype)),P.prototype.ngMetadataName=m,P.annotationCls=P,P})}class si{constructor(_,y){this._desc=_,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof y?this.__NG_ELEMENT_ID__=y:void 0!==y&&(this.\u0275prov=Me({token:this,providedIn:y.providedIn||"root",factory:y.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function fr(m,_){void 0===_&&(_=m);for(let y=0;yArray.isArray(y)?re(y,_):_(y))}function de(m,_,y){_>=m.length?m.push(y):m.splice(_,0,y)}function Y(m,_){return _>=m.length-1?m.pop():m.splice(_,1)[0]}function Se(m,_){const y=[];for(let x=0;x=0?m[1|x]=y:(x=~x,function Pt(m,_,y,x){let P=m.length;if(P==_)m.push(y,x);else if(1===P)m.push(x,m[0]),m[0]=y;else{for(P--,m.push(m[P-1],m[P]);P>_;)m[P]=m[P-2],P--;m[_]=y,m[_+1]=x}}(m,x,_,y)),x}function hn(m,_){const y=Dn(m,_);if(y>=0)return m[1|y]}function Dn(m,_){return function Li(m,_,y){let x=0,P=m.length>>y;for(;P!==x;){const L=x+(P-x>>1),Z=m[L<_?P=L:x=L+1}return~(P<m,createScript:m=>m,createScriptURL:m=>m})}catch{}return Ao}())||void 0===_?void 0:_.createHTML(m))||m}function tc(m){var _;return(null===(_=function gl(){if(void 0===Go&&(Go=null,n.trustedTypes))try{Go=n.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:m=>m,createScript:m=>m,createScriptURL:m=>m})}catch{}return Go}())||void 0===_?void 0:_.createHTML(m))||m}class Sa{constructor(_){this.changingThisBreaksApplicationSecurity=_}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class rd extends Sa{getTypeName(){return"HTML"}}class ad extends Sa{getTypeName(){return"Style"}}class od extends Sa{getTypeName(){return"Script"}}class sd extends Sa{getTypeName(){return"URL"}}class ld extends Sa{getTypeName(){return"ResourceURL"}}function ca(m){return m instanceof Sa?m.changingThisBreaksApplicationSecurity:m}function bo(m,_){const y=function cd(m){return m instanceof Sa&&m.getTypeName()||null}(m);if(null!=y&&y!==_){if("ResourceURL"===y&&"URL"===_)return!0;throw new Error(`Required a safe ${_}, got a ${y} (see https://g.co/ng/security#xss)`)}return y===_}function dd(m){return new rd(m)}function ud(m){return new ad(m)}function hd(m){return new od(m)}function pd(m){return new sd(m)}function Ph(m){return new ld(m)}class U{constructor(_){this.inertDocumentHelper=_}getInertBodyElement(_){_=""+_;try{const y=(new window.DOMParser).parseFromString(Co(_),"text/html").body;return null===y?this.inertDocumentHelper.getInertBodyElement(_):(y.removeChild(y.firstChild),y)}catch{return null}}}class I{constructor(_){if(this.defaultDoc=_,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const y=this.inertDocument.createElement("html");this.inertDocument.appendChild(y);const x=this.inertDocument.createElement("body");y.appendChild(x)}}getInertBodyElement(_){const y=this.inertDocument.createElement("template");if("content"in y)return y.innerHTML=Co(_),y;const x=this.inertDocument.createElement("body");return x.innerHTML=Co(_),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(x),x}stripCustomNsAttrs(_){const y=_.attributes;for(let P=y.length-1;0Ht(_.trim())).join(", ")),this.buf.push(" ",Z,'="',Eo(Pe),'"')}var m;return this.buf.push(">"),!0}endElement(_){const y=_.nodeName.toLowerCase();li.hasOwnProperty(y)&&!yn.hasOwnProperty(y)&&(this.buf.push(""))}chars(_){this.buf.push(Eo(_))}checkClobberedElement(_,y){if(y&&(_.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${_.outerHTML}`);return y}}const vs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jr=/([^\#-~ |!])/g;function Eo(m){return m.replace(/&/g,"&").replace(vs,function(_){return"&#"+(1024*(_.charCodeAt(0)-55296)+(_.charCodeAt(1)-56320)+65536)+";"}).replace(jr,function(_){return"&#"+_.charCodeAt(0)+";"}).replace(//g,">")}let Ma;function To(m,_){let y=null;try{Ma=Ma||function ae(m){const _=new I(m);return function Q(){try{return!!(new window.DOMParser).parseFromString(Co(""),"text/html")}catch{return!1}}()?new U(_):_}(m);let x=_?String(_):"";y=Ma.getInertBodyElement(x);let P=5,L=x;do{if(0===P)throw new Error("Failed to sanitize html because the input is unstable");P--,x=L,L=y.innerHTML,y=Ma.getInertBodyElement(x)}while(x!==L);return Co((new Br).sanitizeChildren(xa(y)||y))}finally{if(y){const x=xa(y)||y;for(;x.firstChild;)x.removeChild(x.firstChild)}}}function xa(m){return"content"in m&&function rc(m){return m.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===m.nodeName}(m)?m.content:null}var pn=(()=>((pn=pn||{})[pn.NONE=0]="NONE",pn[pn.HTML=1]="HTML",pn[pn.STYLE=2]="STYLE",pn[pn.SCRIPT=3]="SCRIPT",pn[pn.URL=4]="URL",pn[pn.RESOURCE_URL=5]="RESOURCE_URL",pn))();function Sn(m){const _=Zr();return _?tc(_.sanitize(pn.HTML,m)||""):bo(m,"HTML")?tc(ca(m)):To(function Cs(){return void 0!==fl?fl:typeof document<"u"?document:void 0}(),se(m))}function Wn(m){const _=Zr();return _?_.sanitize(pn.URL,m)||"":bo(m,"URL")?ca(m):Ht(se(m))}function Zr(){const m=nn();return m&&m[12]}const Cr=new si("ENVIRONMENT_INITIALIZER"),Wo=new si("INJECTOR",-1),Es=new si("INJECTOR_DEF_TYPES");class Oh{get(_,y=ya){if(y===ya){const x=new Error(`NullInjectorError: No provider for ${T(_)}!`);throw x.name="NullInjectorError",x}return y}}function M_(...m){return{\u0275providers:Hh(0,m)}}function Hh(m,..._){const y=[],x=new Set;let P;return re(_,L=>{const Z=L;fd(Z,y,[],x)&&(P||(P=[]),P.push(Z))}),void 0!==P&&Lh(P,y),y}function Lh(m,_){for(let y=0;y{_.push(L)})}}function fd(m,_,y,x){if(!(m=H(m)))return!1;let P=null,L=nt(m);const Z=!L&&ke(m);if(L||Z){if(Z&&!Z.standalone)return!1;P=m}else{const Pe=m.ngModule;if(L=nt(Pe),!L)return!1;P=Pe}const me=x.has(P);if(Z){if(me)return!1;if(x.add(P),Z.dependencies){const Pe="function"==typeof Z.dependencies?Z.dependencies():Z.dependencies;for(const rt of Pe)fd(rt,_,y,x)}}else{if(!L)return!1;{if(null!=L.imports&&!me){let rt;x.add(P);try{re(L.imports,ft=>{fd(ft,_,y,x)&&(rt||(rt=[]),rt.push(ft))})}finally{}void 0!==rt&&Lh(rt,_)}if(!me){const rt=hi(P)||(()=>new P);_.push({provide:P,useFactory:rt,deps:d},{provide:Es,useValue:P,multi:!0},{provide:Cr,useValue:()=>Bi(P),multi:!0})}const Pe=L.providers;null==Pe||me||re(Pe,ft=>{_.push(ft)})}}return P!==m&&void 0!==m.providers}const x_=b({provide:String,useValue:b});function md(m){return null!==m&&"object"==typeof m&&x_ in m}function zo(m){return"function"==typeof m}const gd=new si("Set Injector scope."),oc={},R_={};let _d;function sc(){return void 0===_d&&(_d=new Oh),_d}class Yo{}class Nh extends Yo{constructor(_,y,x,P){super(),this.parent=y,this.source=x,this.scopes=P,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Cd(_,Z=>this.processProvider(Z)),this.records.set(Wo,Ts(void 0,this)),P.has("environment")&&this.records.set(Yo,Ts(void 0,this));const L=this.records.get(gd);null!=L&&"string"==typeof L.value&&this.scopes.add(L.value),this.injectorDefTypes=new Set(this.get(Es.multi,d,Ne.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const _ of this._ngOnDestroyHooks)_.ngOnDestroy();for(const _ of this._onDestroyHooks)_()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(_){this._onDestroyHooks.push(_)}runInContext(_){this.assertNotDestroyed();const y=gr(this),x=r(void 0);try{return _()}finally{gr(y),r(x)}}get(_,y=ya,x=Ne.Default){this.assertNotDestroyed();const P=gr(this),L=r(void 0);try{if(!(x&Ne.SkipSelf)){let me=this.records.get(_);if(void 0===me){const Pe=function L_(m){return"function"==typeof m||"object"==typeof m&&m instanceof si}(_)&&ut(_);me=Pe&&this.injectableDefInScope(Pe)?Ts(Ad(_),oc):null,this.records.set(_,me)}if(null!=me)return this.hydrate(_,me)}return(x&Ne.Self?sc():this.parent).get(_,y=x&Ne.Optional&&y===ya?null:y)}catch(Z){if("NullInjectorError"===Z.name){if((Z[mo]=Z[mo]||[]).unshift(T(_)),P)throw Z;return function Qc(m,_,y,x){const P=m[mo];throw _[Wl]&&P.unshift(_[Wl]),m.message=function Kc(m,_,y,x=null){m=m&&"\n"===m.charAt(0)&&"\u0275"==m.charAt(1)?m.slice(2):m;let P=T(_);if(Array.isArray(_))P=_.map(T).join(" -> ");else if("object"==typeof _){let L=[];for(let Z in _)if(_.hasOwnProperty(Z)){let me=_[Z];L.push(Z+":"+("string"==typeof me?JSON.stringify(me):T(me)))}P=`{${L.join(", ")}}`}return`${y}${x?"("+x+")":""}[${P}]: ${m.replace(zc,"\n ")}`}("\n"+m.message,P,y,x),m.ngTokenPath=P,m[mo]=null,m}(Z,_,"R3InjectorError",this.source)}throw Z}finally{r(L),gr(P)}}resolveInjectorInitializers(){const _=gr(this),y=r(void 0);try{const x=this.get(Cr.multi,d,Ne.Self);for(const P of x)P()}finally{gr(_),r(y)}}toString(){const _=[],y=this.records;for(const x of y.keys())_.push(T(x));return`R3Injector[${_.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ne(205,!1)}processProvider(_){let y=zo(_=H(_))?_:H(_&&_.provide);const x=function I_(m){return md(m)?Ts(void 0,m.useValue):Ts(kh(m),oc)}(_);if(zo(_)||!0!==_.multi)this.records.get(y);else{let P=this.records.get(y);P||(P=Ts(void 0,oc,!0),P.factory=()=>ql(P.multi),this.records.set(y,P)),y=_,P.multi.push(_)}this.records.set(y,x)}hydrate(_,y){return y.value===oc&&(y.value=R_,y.value=y.factory()),"object"==typeof y.value&&y.value&&function H_(m){return null!==m&&"object"==typeof m&&"function"==typeof m.ngOnDestroy}(y.value)&&this._ngOnDestroyHooks.add(y.value),y.value}injectableDefInScope(_){if(!_.providedIn)return!1;const y=H(_.providedIn);return"string"==typeof y?"any"===y||this.scopes.has(y):this.injectorDefTypes.has(y)}}function Ad(m){const _=ut(m),y=null!==_?_.factory:hi(m);if(null!==y)return y;if(m instanceof si)throw new ne(204,!1);if(m instanceof Function)return function P_(m){const _=m.length;if(_>0)throw Se(_,"?"),new ne(204,!1);const y=function vt(m){const _=m&&(m[Ae]||m[ge]);if(_){const y=function ee(m){if(m.hasOwnProperty("name"))return m.name;const _=(""+m).match(/^function\s*([^\s(]+)/);return null===_?"":_[1]}(m);return console.warn(`DEPRECATED: DI is instantiating a token "${y}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${y}" class.`),_}return null}(m);return null!==y?()=>y.factory(m):()=>new m}(m);throw new ne(204,!1)}function kh(m,_,y){let x;if(zo(m)){const P=H(m);return hi(P)||Ad(P)}if(md(m))x=()=>H(m.useValue);else if(function Uh(m){return!(!m||!m.useFactory)}(m))x=()=>m.useFactory(...ql(m.deps||[]));else if(function Bh(m){return!(!m||!m.useExisting)}(m))x=()=>Bi(H(m.useExisting));else{const P=H(m&&(m.useClass||m.provide));if(!function O_(m){return!!m.deps}(m))return hi(P)||Ad(P);x=()=>new P(...ql(m.deps))}return x}function Ts(m,_,y=!1){return{factory:m,value:_,multi:y?[]:void 0}}function B_(m){return!!m.\u0275providers}function Cd(m,_){for(const y of m)Array.isArray(y)?Cd(y,_):B_(y)?Cd(y.\u0275providers,_):_(y)}class Vh{}class k_{resolveComponentFactory(_){throw function N_(m){const _=Error(`No component factory found for ${T(m)}. Did you add it to @NgModule.entryComponents?`);return _.ngComponent=m,_}(_)}}let _l=(()=>{class m{}return m.NULL=new k_,m})();function V_(){return ys(ui(),nn())}function ys(m,_){return new Al(Si(m,_))}let Al=(()=>{class m{constructor(y){this.nativeElement=y}}return m.__NG_ELEMENT_ID__=V_,m})();function F_(m){return m instanceof Al?m.nativeElement:m}class jh{}let j_=(()=>{class m{}return m.__NG_ELEMENT_ID__=()=>function Z_(){const m=nn(),y=gi(ui().index,m);return(qn(y)?y:m)[11]}(),m})(),G_=(()=>{class m{}return m.\u0275prov=Me({token:m,providedIn:"root",factory:()=>null}),m})();class Zh{constructor(_){this.full=_,this.major=_.split(".")[0],this.minor=_.split(".")[1],this.patch=_.split(".").slice(2).join(".")}}const W_=new Zh("14.1.2"),bd={};function wd(m){return m.ngOriginalError}class Cl{constructor(){this._console=console}handleError(_){const y=this._findOriginalError(_);this._console.error("ERROR",_),y&&this._console.error("ORIGINAL ERROR",y)}_findOriginalError(_){let y=_&&wd(_);for(;y&&wd(y);)y=wd(y);return y||null}}const Sd=new Map;let iA=0;const xd="__ngContext__";function br(m,_){qn(_)?(m[xd]=_[20],function aA(m){Sd.set(m[20],m)}(_)):m[xd]=_}function bl(m){const _=m[xd];return"number"==typeof _?function Jh(m){return Sd.get(m)||null}(_):_||null}function Dd(m){const _=bl(m);return _?qn(_)?_:_.lView:null}const fA=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(n))();function ep(m){return m.ownerDocument.defaultView}function tp(m){return m.ownerDocument}function Ja(m){return m instanceof Function?m():m}var Ra=(()=>((Ra=Ra||{})[Ra.Important=1]="Important",Ra[Ra.DashCase=2]="DashCase",Ra))();function Pd(m,_){return undefined(m,_)}function vl(m){const _=m[3];return ci(_)?_[3]:_}function Id(m){return ap(m[13])}function Od(m){return ap(m[4])}function ap(m){for(;null!==m&&!ci(m);)m=m[4];return m}function Ss(m,_,y,x,P){if(null!=x){let L,Z=!1;ci(x)?L=x:qn(x)&&(Z=!0,x=x[0]);const me=ni(x);0===m&&null!==y?null==P?up(_,y,me):qo(_,y,me,P||null,!0):1===m&&null!==y?qo(_,y,me,P||null,!0):2===m?function Ap(m,_,y){const x=lc(m,_);x&&function RA(m,_,y,x){m.removeChild(_,y,x)}(m,x,_,y)}(_,me,Z):3===m&&_.destroyNode(me),null!=L&&function OA(m,_,y,x,P){const L=y[7];L!==ni(y)&&Ss(_,m,x,L,P);for(let me=10;me0&&(m[y-1][4]=x[4]);const L=Y(m,10+_);!function EA(m,_){El(m,_,_[11],2,null,null),_[0]=null,_[6]=null}(x[1],x);const Z=L[19];null!==Z&&Z.detachView(L[1]),x[3]=null,x[4]=null,x[2]&=-65}return x}function lp(m,_){if(!(128&_[2])){const y=_[11];y.destroyNode&&El(m,_,y,3,null,null),function wA(m){let _=m[13];if(!_)return Ud(m[1],m);for(;_;){let y=null;if(qn(_))y=_[13];else{const x=_[10];x&&(y=x)}if(!y){for(;_&&!_[4]&&_!==m;)qn(_)&&Ud(_[1],_),_=_[3];null===_&&(_=m),qn(_)&&Ud(_[1],_),y=_&&_[4]}_=y}}(_)}}function Ud(m,_){if(!(128&_[2])){_[2]&=-65,_[2]|=128,function DA(m,_){let y;if(null!=m&&null!=(y=m.destroyHooks))for(let x=0;x=0?x[P=rt]():x[P=-rt].unsubscribe(),L+=2}else{const Z=x[P=y[L+1]];y[L].call(Z)}if(null!==x){for(let L=P+1;LL?"":P[xt+1].toLowerCase();const Yt=8&x?Nt:null;if(Yt&&-1!==vp(Yt,rt,0)||2&x&&rt!==Nt){if(ua(x))return!1;Z=!0}}}}else{if(!Z&&!ua(x)&&!ua(Pe))return!1;if(Z&&ua(Pe))continue;Z=!1,x=Pe|1&x}}return ua(x)||Z}function ua(m){return 0==(1&m)}function NA(m,_,y,x){if(null===_)return-1;let P=0;if(x||!y){let L=!1;for(;P<_.length;){const Z=_[P];if(Z===m)return P;if(3===Z||6===Z)L=!0;else{if(1===Z||2===Z){let me=_[++P];for(;"string"==typeof me;)me=_[++P];continue}if(4===Z)break;if(0===Z){P+=4;continue}}P+=L?1:2}return-1}return function FA(m,_){let y=m.indexOf(4);if(y>-1)for(y++;y0?'="'+me+'"':"")+"]"}else 8&x?P+="."+Z:4&x&&(P+=" "+Z);else""!==P&&!ua(Z)&&(_+=wp(L,P),P=""),x=Z,L=L||!ua(x);y++}return""!==P&&(_+=wp(L,P)),_}const Fn={};function Sp(m){Mp(Un(),nn(),Hi()+m,!1)}function Mp(m,_,y,x){if(!x)if(3==(3&_[2])){const L=m.preOrderCheckHooks;null!==L&&ia(_,L,y)}else{const L=m.preOrderHooks;null!==L&&no(_,L,0,y)}wr(y)}function Pp(m,_=null,y=null,x){const P=Ip(m,_,y,x);return P.resolveInjectorInitializers(),P}function Ip(m,_=null,y=null,x,P=new Set){const L=[y||d,M_(m)];return x=x||("object"==typeof m?void 0:T(m)),new Nh(L,_||sc(),x||null,P)}let Jo=(()=>{class m{static create(y,x){if(Array.isArray(y))return Pp({name:""},x,y,"");{var P;const L=null!==(P=y.name)&&void 0!==P?P:"";return Pp({name:L},y.parent,y.providers,L)}}}return m.THROW_IF_NOT_FOUND=ya,m.NULL=new Oh,m.\u0275prov=Me({token:m,providedIn:"any",factory:()=>Bi(Wo)}),m.__NG_ELEMENT_ID__=-1,m})();function xs(m,_=Ne.Default){const y=nn();return null===y?Bi(m,_):Ho(ui(),y,H(m),_)}function kp(){throw new Error("invalid")}function hc(m,_){return m<<17|_<<2}function ha(m){return m>>17&32767}function zd(m){return 2|m}function Qa(m){return(131068&m)>>2}function Yd(m,_){return-131069&m|_<<2}function qd(m){return 1|m}function Qp(m,_){const y=m.contentQueries;if(null!==y)for(let x=0;x22&&Mp(m,_,22,!1),y(x,P)}finally{wr(L)}}function $p(m,_,y){if(Yi(_)){const P=_.directiveEnd;for(let L=_.directiveStart;L0;){const y=m[--_];if("number"==typeof y&&y<0)return y}return 0})(me)!=Pe&&me.push(Pe),me.push(x,P,Z)}}function sf(m,_){null!==m.hostBindings&&m.hostBindings(1,_)}function lf(m,_){_.flags|=2,(m.components||(m.components=[])).push(_.index)}function LC(m,_,y){if(y){if(_.exportAs)for(let x=0;x<_.exportAs.length;x++)y[_.exportAs[x]]=m;di(_)&&(y[""]=m)}}function cf(m,_,y){m.flags|=1,m.directiveStart=_,m.directiveEnd=_+y,m.providerIndexes=_}function df(m,_,y,x,P){m.data[x]=P;const L=P.factory||(P.factory=hi(P.type)),Z=new Fa(L,di(P),xs);m.blueprint[x]=Z,y[x]=Z,af(m,_,0,x,Rs(m,y,P.hostVars,Fn),P)}function BC(m,_,y){const x=Si(_,m),P=Xp(y),L=m[10],Z=_c(m,mc(m,P,null,y.onPush?32:16,x,_,L,L.createRenderer(x,y),null,null,null));m[_.index]=Z}function Pa(m,_,y,x,P,L){const Z=Si(m,_);!function lu(m,_,y,x,P,L,Z){if(null==L)m.removeAttribute(_,P,y);else{const me=null==Z?se(L):Z(L,x||"",P);m.setAttribute(_,P,me,y)}}(_[11],Z,L,m.value,y,x,P)}function UC(m,_,y,x,P,L){const Z=L[_];if(null!==Z){const me=x.setInput;for(let Pe=0;Pe0&&cu(y)}}function cu(m){for(let x=Id(m);null!==x;x=Od(x))for(let P=10;P0&&cu(L)}const y=m[1].components;if(null!==y)for(let x=0;x0&&cu(P)}}function jC(m,_){const y=gi(_,m),x=y[1];(function ZC(m,_){for(let y=_.length;yPromise.resolve(null))();function ff(m){return m[7]||(m[7]=[])}function mf(m){return m.cleanup||(m.cleanup=[])}function gf(m,_,y){return(null===m||di(m))&&(y=function Ba(m){for(;Array.isArray(m);){if("object"==typeof m[1])return m;m=m[0]}return null}(y[_.index])),y[11]}function _f(m,_){const y=m[9],x=y?y.get(Cl,null):null;x&&x.handleError(_)}function pu(m,_,y,x,P){for(let L=0;L-1&&(Bd(_,x),Y(y,x))}this._attachedToViewContainer=!1}lp(this._lView[1],this._lView)}onDestroy(_){ef(this._lView[1],this._lView,null,_)}markForCheck(){du(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function uu(m,_,y){const x=_[10];x.begin&&x.begin();try{Tl(m,_,m.template,y)}catch(P){throw _f(_,P),P}finally{x.end&&x.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ne(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function yA(m,_){El(m,_,_[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(_){if(this._attachedToViewContainer)throw new ne(902,!1);this._appRef=_}}class zC extends yl{constructor(_){super(_),this._view=_}detectChanges(){pf(this._view)}checkNoChanges(){}get context(){return null}}class fu extends _l{constructor(_){super(),this.ngModule=_}resolveComponentFactory(_){const y=ke(_);return new wl(y,this.ngModule)}}function Af(m){const _=[];for(let y in m)m.hasOwnProperty(y)&&_.push({propName:m[y],templateName:y});return _}class qC{constructor(_,y){this.injector=_,this.parentInjector=y}get(_,y,x){const P=this.injector.get(_,bd,x);return P!==bd||y===bd?P:this.parentInjector.get(_,y,x)}}class wl extends Vh{constructor(_,y){super(),this.componentDef=_,this.ngModule=y,this.componentType=_.type,this.selector=function GA(m){return m.map(ZA).join(",")}(_.selectors),this.ngContentSelectors=_.ngContentSelectors?_.ngContentSelectors:[],this.isBoundToModule=!!y}get inputs(){return Af(this.componentDef.inputs)}get outputs(){return Af(this.componentDef.outputs)}create(_,y,x,P){var L;let Z=(P=P||this.ngModule)instanceof Yo?P:null===(L=P)||void 0===L?void 0:L.injector;Z&&null!==this.componentDef.getStandaloneInjector&&(Z=this.componentDef.getStandaloneInjector(Z)||Z);const me=Z?new qC(_,Z):_,Pe=me.get(jh,null);if(null===Pe)throw new ne(407,!1);const rt=me.get(G_,null),ft=Pe.createRenderer(null,this.componentDef),xt=this.componentDef.selectors[0][0]||"div",Nt=x?function wC(m,_,y){return m.selectRootElement(_,y===t.ShadowDom)}(ft,x,this.componentDef.encapsulation):Ld(Pe.createRenderer(null,this.componentDef),xt,function YC(m){const _=m.toLowerCase();return"svg"===_?"svg":"math"===_?"math":null}(xt)),Yt=this.componentDef.onPush?288:272,tn=function XC(m,_){return{components:[],scheduler:m||fA,clean:WC,playerHandler:_||null,flags:0}}(),cn=ou(0,null,null,1,0,null,null,null,null,null),mn=mc(null,cn,tn,Yt,null,null,Pe,ft,rt,me,null);let wn,Mn;Yr(mn);try{const sn=function KC(m,_,y,x,P,L){const Z=y[1];y[22]=m;const Pe=Ds(Z,22,2,"#host",null),rt=Pe.mergedAttrs=_.hostAttrs;null!==rt&&(Ac(Pe,rt,!0),null!==m&&(_a(P,m,rt),null!==Pe.classes&&Fd(P,m,Pe.classes),null!==Pe.styles&&bp(P,m,Pe.styles)));const ft=x.createRenderer(m,_),xt=mc(y,Xp(_),null,_.onPush?32:16,y[22],Pe,x,ft,L||null,null,null);return Z.firstCreatePass&&(aa(Qr(Pe,y),Z,_.type),lf(Z,Pe),cf(Pe,y.length,1)),_c(y,xt),y[22]=xt}(Nt,this.componentDef,mn,Pe,ft);if(Nt)if(x)_a(ft,Nt,["ng-version",W_.full]);else{const{attrs:Pn,classes:jn}=function WA(m){const _=[],y=[];let x=1,P=2;for(;x0&&Fd(ft,Nt,jn.join(" "))}if(Mn=zr(cn,22),void 0!==y){const Pn=Mn.projection=[];for(let jn=0;jn=0;x--){const P=m[x];P.hostVars=_+=P.hostVars,P.hostAttrs=oo(P.hostAttrs,y=oo(y,P.hostAttrs))}}(x)}function gu(m){return m===l?{}:m===d?[]:m}function nb(m,_){const y=m.viewQuery;m.viewQuery=y?(x,P)=>{_(x,P),y(x,P)}:_}function ib(m,_){const y=m.contentQueries;m.contentQueries=y?(x,P,L)=>{_(x,P,L),y(x,P,L)}:_}function rb(m,_){const y=m.hostBindings;m.hostBindings=y?(x,P)=>{_(x,P),y(x,P)}:_}let bc=null;function Qo(){if(!bc){const m=n.Symbol;if(m&&m.iterator)bc=m.iterator;else{const _=Object.getOwnPropertyNames(Map.prototype);for(let y=0;y<_.length;++y){const x=_[y];"entries"!==x&&"size"!==x&&Map.prototype[x]===Map.prototype.entries&&(bc=x)}}}return bc}function Sl(m){return!!_u(m)&&(Array.isArray(m)||!(m instanceof Map)&&Qo()in m)}function _u(m){return null!==m&&("function"==typeof m||"object"==typeof m)}function Ia(m,_,y){return m[_]=y}function vr(m,_,y){return!Object.is(m[_],y)&&(m[_]=y,!0)}function Ko(m,_,y,x){const P=vr(m,_,y);return vr(m,_+1,x)||P}function vc(m,_,y,x,P){const L=Ko(m,_,y,x);return vr(m,_+2,P)||L}function ea(m,_,y,x,P,L){const Z=Ko(m,_,y,x);return Ko(m,_+2,P,L)||Z}function Au(m,_,y,x){const P=nn();return vr(P,ur(),_)&&(Un(),Pa(_i(),P,m,_,y,x)),Au}function Is(m,_,y,x){return vr(m,ur(),y)?_+se(y)+x:Fn}function Os(m,_,y,x,P,L){const me=Ko(m,$i(),y,P);return yr(2),me?_+se(y)+x+se(P)+L:Fn}function Cu(m,_,y,x,P,L){const Z=nn(),me=Is(Z,_,y,x);return me!==Fn&&Pa(_i(),Z,m,me,P,L),Cu}function xf(m,_,y,x,P,L,Z,me){const Pe=nn(),rt=Un(),ft=m+22,xt=rt.firstCreatePass?function pb(m,_,y,x,P,L,Z,me,Pe){const rt=_.consts,ft=Ds(_,m,4,Z||null,Ct(rt,me));su(_,y,ft,Ct(rt,Pe)),to(_,ft);const xt=ft.tViews=ou(2,ft,x,P,L,_.directiveRegistry,_.pipeRegistry,null,_.schemas,rt);return null!==_.queries&&(_.queries.template(_,ft),xt.queries=_.queries.embeddedTView(ft)),ft}(ft,rt,Pe,_,y,x,P,L,Z):rt.data[ft];Je(xt,!1);const Nt=Pe[11].createComment("");cc(rt,Pe,Nt,xt),br(Nt,Pe),_c(Pe,Pe[ft]=uf(Nt,Pe,Nt,xt)),Vi(xt)&&ru(rt,Pe,xt),null!=Z&&au(Pe,xt,me)}function Df(m){return dr(function Jt(){return zt.lFrame.contextLView}(),22+m)}function bu(m,_,y){const x=nn();return vr(x,ur(),_)&&Gr(Un(),_i(),x,m,_,x[11],y,!1),bu}function vu(m,_,y,x,P){const Z=P?"class":"style";pu(m,y,_.inputs[Z],Z,x)}function Ec(m,_,y,x){const P=nn(),L=Un(),Z=22+m,me=P[11],Pe=P[Z]=Ld(me,_,function Xs(){return zt.lFrame.currentNamespace}()),rt=L.firstCreatePass?function mb(m,_,y,x,P,L,Z){const me=_.consts,rt=Ds(_,m,2,P,Ct(me,L));return su(_,y,rt,Ct(me,Z)),null!==rt.attrs&&Ac(rt,rt.attrs,!1),null!==rt.mergedAttrs&&Ac(rt,rt.mergedAttrs,!0),null!==_.queries&&_.queries.elementStart(_,rt),rt}(Z,L,P,0,_,y,x):L.data[Z];Je(rt,!0);const ft=rt.mergedAttrs;null!==ft&&_a(me,Pe,ft);const xt=rt.classes;null!==xt&&Fd(me,Pe,xt);const Nt=rt.styles;return null!==Nt&&bp(me,Pe,Nt),64!=(64&rt.flags)&&cc(L,P,Pe,rt),0===function Xn(){return zt.lFrame.elementDepthCount}()&&br(Pe,P),function ii(){zt.lFrame.elementDepthCount++}(),Vi(rt)&&(ru(L,P,rt),$p(L,rt,P)),null!==x&&au(P,rt),Ec}function Tc(){let m=ui();Fe()?Re():(m=m.parent,Je(m,!1));const _=m;!function Gn(){zt.lFrame.elementDepthCount--}();const y=Un();return y.firstCreatePass&&(to(y,m),Yi(m)&&y.queries.elementEnd(m)),null!=_.classesWithoutHost&&function ss(m){return 0!=(16&m.flags)}(_)&&vu(y,_,nn(),_.classesWithoutHost,!0),null!=_.stylesWithoutHost&&function Io(m){return 0!=(32&m.flags)}(_)&&vu(y,_,nn(),_.stylesWithoutHost,!1),Tc}function Eu(m,_,y,x){return Ec(m,_,y,x),Tc(),Eu}function yc(m,_,y){const x=nn(),P=Un(),L=m+22,Z=P.firstCreatePass?function gb(m,_,y,x,P){const L=_.consts,Z=Ct(L,x),me=Ds(_,m,8,"ng-container",Z);return null!==Z&&Ac(me,Z,!0),su(_,y,me,Ct(L,P)),null!==_.queries&&_.queries.elementStart(_,me),me}(L,P,x,_,y):P.data[L];Je(Z,!0);const me=x[L]=x[11].createComment("");return cc(P,x,me,Z),br(me,x),Vi(Z)&&(ru(P,x,Z),$p(P,Z,x)),null!=y&&au(x,Z),yc}function wc(){let m=ui();const _=Un();return Fe()?Re():(m=m.parent,Je(m,!1)),_.firstCreatePass&&(to(_,m),Yi(m)&&_.queries.elementEnd(m)),wc}function Tu(m,_,y){return yc(m,_,y),wc(),Tu}function Rf(){return nn()}function yu(m){return!!m&&"function"==typeof m.then}function Pf(m){return!!m&&"function"==typeof m.subscribe}const If=Pf;function wu(m,_,y,x){const P=nn(),L=Un(),Z=ui();return Of(L,P,P[11],Z,m,_,0,x),wu}function Su(m,_){const y=ui(),x=nn(),P=Un();return Of(P,x,gf(Xa(P.data),y,x),y,m,_),Su}function Of(m,_,y,x,P,L,Z,me){const Pe=Vi(x),ft=m.firstCreatePass&&mf(m),xt=_[8],Nt=ff(_);let Yt=!0;if(3&x.type||me){const mn=Si(x,_),wn=me?me(mn):mn,Mn=Nt.length,sn=me?jn=>me(ni(jn[x.index])):x.index;let Pn=null;if(!me&&Pe&&(Pn=function _b(m,_,y,x){const P=m.cleanup;if(null!=P)for(let L=0;LPe?me[Pe]:null}"string"==typeof Z&&(L+=2)}return null}(m,_,P,x.index)),null!==Pn)(Pn.__ngLastListenerFn__||Pn).__ngNextListenerFn__=L,Pn.__ngLastListenerFn__=L,Yt=!1;else{L=Lf(x,_,xt,L,!1);const jn=y.listen(wn,P,L);Nt.push(L,jn),ft&&ft.push(P,sn,Mn,Mn+1)}}else L=Lf(x,_,xt,L,!1);const tn=x.outputs;let cn;if(Yt&&null!==tn&&(cn=tn[P])){const mn=cn.length;if(mn)for(let wn=0;wn0;)_=_[15],m--;return _}(m,zt.lFrame.contextLView))[8]}(m)}function Ab(m,_){let y=null;const x=function kA(m){const _=m.attrs;if(null!=_){const y=_.indexOf(5);if(0==(1&y))return _[y+1]}return null}(m);for(let P=0;P<_.length;P++){const L=_[P];if("*"!==L){if(null===x?yp(m,L,!0):jA(x,L))return P}else y=P}return y}function Uf(m){const _=nn()[16][6];if(!_.projection){const x=_.projection=Se(m?m.length:1,null),P=x.slice();let L=_.child;for(;null!==L;){const Z=m?Ab(L,m):0;null!==Z&&(P[Z]?P[Z].projectionNext=L:x[Z]=L,P[Z]=L),L=L.next}}}function Nf(m,_=0,y){const x=nn(),P=Un(),L=Ds(P,22+m,16,null,y||null);null===L.projection&&(L.projection=_),Re(),64!=(64&L.flags)&&function IA(m,_,y){Cp(_[11],0,_,y,cp(m,y,_),pp(y.parent||_[6],y,_))}(P,x,L)}function Mu(m,_,y){return Sc(m,"",_,"",y),Mu}function Sc(m,_,y,x,P){const L=nn(),Z=Is(L,_,y,x);return Z!==Fn&&Gr(Un(),_i(),L,m,Z,L[11],P,!1),Sc}function xu(m,_,y,x,P,L,Z){const me=nn(),Pe=Os(me,_,y,x,P,L);return Pe!==Fn&&Gr(Un(),_i(),me,m,Pe,me[11],Z,!1),xu}function zf(m,_,y,x,P){const L=m[y+1],Z=null===_;let me=x?ha(L):Qa(L),Pe=!1;for(;0!==me&&(!1===Pe||Z);){const ft=m[me+1];vb(m[me],_)&&(Pe=!0,m[me+1]=x?qd(ft):zd(ft)),me=x?ha(ft):Qa(ft)}Pe&&(m[y+1]=x?zd(L):qd(L))}function vb(m,_){return null===m||null==_||(Array.isArray(m)?m[1]:m)===_||!(!Array.isArray(m)||"string"!=typeof _)&&Dn(m,_)>=0}const Wi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Yf(m){return m.substring(Wi.key,Wi.keyEnd)}function qf(m,_){const y=Wi.textEnd;return y===_?-1:(_=Wi.keyEnd=function wb(m,_,y){for(;_32;)_++;return _}(m,Wi.key=_,y),Vs(m,_,y))}function Vs(m,_,y){for(;_=0;y=qf(_,y))Tn(m,Yf(_),!0)}function pa(m,_,y,x){const P=nn(),L=Un(),Z=yr(2);L.firstUpdatePass&&tm(L,m,Z,x),_!==Fn&&vr(P,Z,_)&&im(L,L.data[Hi()],P,P[11],m,P[Z+1]=function Lb(m,_){return null==m||("string"==typeof _?m+=_:"object"==typeof m&&(m=T(ca(m)))),m}(_,y),x,Z)}function fa(m,_,y,x){const P=Un(),L=yr(2);P.firstUpdatePass&&tm(P,null,L,x);const Z=nn();if(y!==Fn&&vr(Z,L,y)){const me=P.data[Hi()];if(am(me,x)&&!em(P,L)){let Pe=x?me.classesWithoutHost:me.stylesWithoutHost;null!==Pe&&(y=R(Pe,y||"")),vu(P,me,Z,y,x)}else!function Hb(m,_,y,x,P,L,Z,me){P===Fn&&(P=d);let Pe=0,rt=0,ft=0=m.expandoStartIndex}function tm(m,_,y,x){const P=m.data;if(null===P[y+1]){const L=P[Hi()],Z=em(m,y);am(L,x)&&null===_&&!Z&&(_=!1),_=function Db(m,_,y,x){const P=Xa(m);let L=x?_.residualClasses:_.residualStyles;if(null===P)0===(x?_.classBindings:_.styleBindings)&&(y=xl(y=Pu(null,m,_,y,x),_.attrs,x),L=null);else{const Z=_.directiveStylingLast;if(-1===Z||m[Z]!==P)if(y=Pu(P,m,_,y,x),null===L){let Pe=function Rb(m,_,y){const x=y?_.classBindings:_.styleBindings;if(0!==Qa(x))return m[ha(x)]}(m,_,x);void 0!==Pe&&Array.isArray(Pe)&&(Pe=Pu(null,m,_,Pe[1],x),Pe=xl(Pe,_.attrs,x),function Pb(m,_,y,x){m[ha(y?_.classBindings:_.styleBindings)]=x}(m,_,x,Pe))}else L=function Ib(m,_,y){let x;const P=_.directiveEnd;for(let L=1+_.directiveStylingLast;L0)&&(rt=!0)}else ft=y;if(P)if(0!==Pe){const Nt=ha(m[me+1]);m[x+1]=hc(Nt,me),0!==Nt&&(m[Nt+1]=Yd(m[Nt+1],x)),m[me+1]=function dC(m,_){return 131071&m|_<<17}(m[me+1],x)}else m[x+1]=hc(me,0),0!==me&&(m[me+1]=Yd(m[me+1],x)),me=x;else m[x+1]=hc(Pe,0),0===me?me=x:m[Pe+1]=Yd(m[Pe+1],x),Pe=x;rt&&(m[x+1]=zd(m[x+1])),zf(m,ft,x,!0),zf(m,ft,x,!1),function bb(m,_,y,x,P){const L=P?m.residualClasses:m.residualStyles;null!=L&&"string"==typeof _&&Dn(L,_)>=0&&(y[x+1]=qd(y[x+1]))}(_,ft,m,x,L),Z=hc(me,Pe),L?_.classBindings=Z:_.styleBindings=Z}(P,L,_,y,Z,x)}}function Pu(m,_,y,x,P){let L=null;const Z=y.directiveEnd;let me=y.directiveStylingLast;for(-1===me?me=y.directiveStart:me++;me0;){const Pe=m[P],rt=Array.isArray(Pe),ft=rt?Pe[1]:Pe,xt=null===ft;let Nt=y[P+1];Nt===Fn&&(Nt=xt?d:void 0);let Yt=xt?hn(Nt,x):ft===x?Nt:void 0;if(rt&&!Mc(Yt)&&(Yt=hn(Pe,x)),Mc(Yt)&&(me=Yt,Z))return me;const tn=m[P+1];P=Z?ha(tn):Qa(tn)}if(null!==_){let Pe=L?_.residualClasses:_.residualStyles;null!=Pe&&(me=hn(Pe,x))}return me}function Mc(m){return void 0!==m}function am(m,_){return 0!=(m.flags&(_?16:32))}function om(m,_=""){const y=nn(),x=Un(),P=m+22,L=x.firstCreatePass?Ds(x,P,1,_,null):x.data[P],Z=y[P]=function Hd(m,_){return m.createText(_)}(y[11],_);cc(x,y,Z,L),Je(L,!1)}function Iu(m){return xc("",m,""),Iu}function xc(m,_,y){const x=nn(),P=Is(x,m,_,y);return P!==Fn&&Ka(x,Hi(),P),xc}function Ou(m,_,y,x,P){const L=nn(),Z=Os(L,m,_,y,x,P);return Z!==Fn&&Ka(L,Hi(),Z),Ou}function Hu(m,_,y,x,P,L,Z){const me=nn(),Pe=function Hs(m,_,y,x,P,L,Z,me){const rt=vc(m,$i(),y,P,Z);return yr(3),rt?_+se(y)+x+se(P)+L+se(Z)+me:Fn}(me,m,_,y,x,P,L,Z);return Pe!==Fn&&Ka(me,Hi(),Pe),Hu}function Lu(m,_,y,x,P,L,Z,me,Pe){const rt=nn(),ft=function Ls(m,_,y,x,P,L,Z,me,Pe,rt){const xt=ea(m,$i(),y,P,Z,Pe);return yr(4),xt?_+se(y)+x+se(P)+L+se(Z)+me+se(Pe)+rt:Fn}(rt,m,_,y,x,P,L,Z,me,Pe);return ft!==Fn&&Ka(rt,Hi(),ft),Lu}function Bu(m,_,y,x,P,L,Z,me,Pe,rt,ft){const xt=nn(),Nt=function Bs(m,_,y,x,P,L,Z,me,Pe,rt,ft,xt){const Nt=$i();let Yt=ea(m,Nt,y,P,Z,Pe);return Yt=vr(m,Nt+4,ft)||Yt,yr(5),Yt?_+se(y)+x+se(P)+L+se(Z)+me+se(Pe)+rt+se(ft)+xt:Fn}(xt,m,_,y,x,P,L,Z,me,Pe,rt,ft);return Nt!==Fn&&Ka(xt,Hi(),Nt),Bu}function um(m,_,y){fa(Tn,Ha,Is(nn(),m,_,y),!0)}function Uu(m,_,y){const x=nn();return vr(x,ur(),_)&&Gr(Un(),_i(),x,m,_,x[11],y,!0),Uu}function Nu(m,_,y){const x=nn();if(vr(x,ur(),_)){const L=Un(),Z=_i();Gr(L,Z,x,m,_,gf(Xa(L.data),Z,x),y,!0)}return Nu}const $o=void 0;var ev=["en",[["a","p"],["AM","PM"],$o],[["AM","PM"],$o,$o],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],$o,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],$o,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",$o,"{1} 'at' {0}",$o],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Xb(m){const y=Math.floor(Math.abs(m)),x=m.toString().replace(/^[^.]*\.?/,"").length;return 1===y&&0===x?1:5}];let Fs={};function ku(m){const _=function tv(m){return m.toLowerCase().replace(/_/g,"-")}(m);let y=Em(_);if(y)return y;const x=_.split("-")[0];if(y=Em(x),y)return y;if("en"===x)return ev;throw new ne(701,!1)}function vm(m){return ku(m)[Rn.PluralCase]}function Em(m){return m in Fs||(Fs[m]=n.ng&&n.ng.common&&n.ng.common.locales&&n.ng.common.locales[m]),Fs[m]}var Rn=(()=>((Rn=Rn||{})[Rn.LocaleId=0]="LocaleId",Rn[Rn.DayPeriodsFormat=1]="DayPeriodsFormat",Rn[Rn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Rn[Rn.DaysFormat=3]="DaysFormat",Rn[Rn.DaysStandalone=4]="DaysStandalone",Rn[Rn.MonthsFormat=5]="MonthsFormat",Rn[Rn.MonthsStandalone=6]="MonthsStandalone",Rn[Rn.Eras=7]="Eras",Rn[Rn.FirstDayOfWeek=8]="FirstDayOfWeek",Rn[Rn.WeekendRange=9]="WeekendRange",Rn[Rn.DateFormat=10]="DateFormat",Rn[Rn.TimeFormat=11]="TimeFormat",Rn[Rn.DateTimeFormat=12]="DateTimeFormat",Rn[Rn.NumberSymbols=13]="NumberSymbols",Rn[Rn.NumberFormats=14]="NumberFormats",Rn[Rn.CurrencyCode=15]="CurrencyCode",Rn[Rn.CurrencySymbol=16]="CurrencySymbol",Rn[Rn.CurrencyName=17]="CurrencyName",Rn[Rn.Currencies=18]="Currencies",Rn[Rn.Directionality=19]="Directionality",Rn[Rn.PluralCase=20]="PluralCase",Rn[Rn.ExtraData=21]="ExtraData",Rn))();const js="en-US";let Tm=js;function ju(m,_,y,x,P){if(m=H(m),Array.isArray(m))for(let L=0;L>20;if(zo(m)||!m.multi){const Yt=new Fa(Pe,P,xs),tn=Gu(me,_,P?ft:ft+Nt,xt);-1===tn?(aa(Qr(rt,Z),L,me),Zu(L,m,_.length),_.push(me),rt.directiveStart++,rt.directiveEnd++,P&&(rt.providerIndexes+=1048576),y.push(Yt),Z.push(Yt)):(y[tn]=Yt,Z[tn]=Yt)}else{const Yt=Gu(me,_,ft+Nt,xt),tn=Gu(me,_,ft,ft+Nt),cn=Yt>=0&&y[Yt],mn=tn>=0&&y[tn];if(P&&!mn||!P&&!cn){aa(Qr(rt,Z),L,me);const wn=function $v(m,_,y,x,P){const L=new Fa(m,y,xs);return L.multi=[],L.index=_,L.componentProviders=0,qm(L,P,x&&!y),L}(P?Kv:Qv,y.length,P,x,Pe);!P&&mn&&(y[tn].providerFactory=wn),Zu(L,m,_.length,0),_.push(me),rt.directiveStart++,rt.directiveEnd++,P&&(rt.providerIndexes+=1048576),y.push(wn),Z.push(wn)}else Zu(L,m,Yt>-1?Yt:tn,qm(y[P?tn:Yt],Pe,!P&&x));!P&&x&&mn&&y[tn].componentProviders++}}}function Zu(m,_,y,x){const P=zo(_),L=function D_(m){return!!m.useClass}(_);if(P||L){const Pe=(L?H(_.useClass):_).prototype.ngOnDestroy;if(Pe){const rt=m.destroyHooks||(m.destroyHooks=[]);if(!P&&_.multi){const ft=rt.indexOf(y);-1===ft?rt.push(y,[x,Pe]):rt[ft+1].push(x,Pe)}else rt.push(y,Pe)}}}function qm(m,_,y){return y&&m.componentProviders++,m.multi.push(_)-1}function Gu(m,_,y,x){for(let P=y;P{y.providersResolver=(x,P)=>function Jv(m,_,y){const x=Un();if(x.firstCreatePass){const P=di(m);ju(y,x.data,x.blueprint,P,!0),ju(_,x.data,x.blueprint,P,!1)}}(x,P?P(m):m,_)}}class Gs{}class Qm{}function Xv(m,_){return new Km(m,_??null)}class Km extends Gs{constructor(_,y){super(),this._parent=y,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new fu(this);const x=jt(_);this._bootstrapComponents=Ja(x.bootstrap),this._r3Injector=Ip(_,y,[{provide:Gs,useValue:this},{provide:_l,useValue:this.componentFactoryResolver}],T(_),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(_)}get injector(){return this._r3Injector}destroy(){const _=this._r3Injector;!_.destroyed&&_.destroy(),this.destroyCbs.forEach(y=>y()),this.destroyCbs=null}onDestroy(_){this.destroyCbs.push(_)}}class zu extends Qm{constructor(_){super(),this.moduleType=_}create(_){return new Km(this.moduleType,_)}}class eE extends Gs{constructor(_,y,x){super(),this.componentFactoryResolver=new fu(this),this.instance=null;const P=new Nh([..._,{provide:Gs,useValue:this},{provide:_l,useValue:this.componentFactoryResolver}],y||sc(),x,new Set(["environment"]));this.injector=P,P.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(_){this.injector.onDestroy(_)}}function Yu(m,_,y=null){return new eE(m,_,y).injector}function rg(m,_,y){const x=ai()+m,P=nn();return P[x]===Fn?Ia(P,x,y?_.call(y):_()):function Ml(m,_){return m[_]}(P,x)}function ag(m,_,y,x){return lg(nn(),ai(),m,_,y,x)}function og(m,_,y,x,P){return cg(nn(),ai(),m,_,y,x,P)}function sg(m,_,y,x,P,L){return dg(nn(),ai(),m,_,y,x,P,L)}function Ol(m,_){const y=m[_];return y===Fn?void 0:y}function lg(m,_,y,x,P,L){const Z=_+y;return vr(m,Z,P)?Ia(m,Z+1,L?x.call(L,P):x(P)):Ol(m,Z+1)}function cg(m,_,y,x,P,L,Z){const me=_+y;return Ko(m,me,P,L)?Ia(m,me+2,Z?x.call(Z,P,L):x(P,L)):Ol(m,me+2)}function dg(m,_,y,x,P,L,Z,me){const Pe=_+y;return vc(m,Pe,P,L,Z)?Ia(m,Pe+3,me?x.call(me,P,L,Z):x(P,L,Z)):Ol(m,Pe+3)}function pg(m,_){const y=Un();let x;const P=m+22;y.firstCreatePass?(x=function _E(m,_){if(_)for(let y=_.length-1;y>=0;y--){const x=_[y];if(m===x.name)return x}}(_,y.pipeRegistry),y.data[P]=x,x.onDestroy&&(y.destroyHooks||(y.destroyHooks=[])).push(P,x.onDestroy)):x=y.data[P];const L=x.factory||(x.factory=hi(x.type)),Z=r(xs);try{const me=Ca(!1),Pe=L();return Ca(me),function fb(m,_,y,x){y>=m.data.length&&(m.data[y]=null,m.blueprint[y]=null),_[y]=x}(y,nn(),P,Pe),Pe}finally{r(Z)}}function fg(m,_,y){const x=m+22,P=nn(),L=dr(P,x);return Hl(P,x)?lg(P,ai(),_,L.transform,y,L):L.transform(y)}function mg(m,_,y,x){const P=m+22,L=nn(),Z=dr(L,P);return Hl(L,P)?cg(L,ai(),_,Z.transform,y,x,Z):Z.transform(y,x)}function gg(m,_,y,x,P){const L=m+22,Z=nn(),me=dr(Z,L);return Hl(Z,L)?dg(Z,ai(),_,me.transform,y,x,P,me):me.transform(y,x,P)}function _g(m,_,y,x,P,L){const Z=m+22,me=nn(),Pe=dr(me,Z);return Hl(me,Z)?function ug(m,_,y,x,P,L,Z,me,Pe){const rt=_+y;return ea(m,rt,P,L,Z,me)?Ia(m,rt+4,Pe?x.call(Pe,P,L,Z,me):x(P,L,Z,me)):Ol(m,rt+4)}(me,ai(),_,Pe.transform,y,x,P,L,Pe):Pe.transform(y,x,P,L)}function Hl(m,_){return m[1].data[_].pure}function Ju(m){return _=>{setTimeout(m,void 0,_)}}const La=class CE extends e.x{constructor(_=!1){super(),this.__isAsync=_}emit(_){super.next(_)}subscribe(_,y,x){let P=_,L=y||(()=>null),Z=x;if(_&&"object"==typeof _){var me,Pe,rt;const xt=_;P=null===(me=xt.next)||void 0===me?void 0:me.bind(xt),L=null===(Pe=xt.error)||void 0===Pe?void 0:Pe.bind(xt),Z=null===(rt=xt.complete)||void 0===rt?void 0:rt.bind(xt)}this.__isAsync&&(L=Ju(L),P&&(P=Ju(P)),Z&&(Z=Ju(Z)));const ft=super.subscribe({next:P,error:L,complete:Z});return _ instanceof A.w0&&_.add(ft),ft}};function bE(){return this._results[Qo()]()}class Oc{constructor(_=!1){this._emitDistinctChangesOnly=_,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const y=Qo(),x=Oc.prototype;x[y]||(x[y]=bE)}get changes(){return this._changes||(this._changes=new La)}get(_){return this._results[_]}map(_){return this._results.map(_)}filter(_){return this._results.filter(_)}find(_){return this._results.find(_)}reduce(_,y){return this._results.reduce(_,y)}forEach(_){this._results.forEach(_)}some(_){return this._results.some(_)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(_,y){const x=this;x.dirty=!1;const P=fr(_);(this._changesDetected=!function ll(m,_,y){if(m.length!==_.length)return!1;for(let x=0;x{class m{}return m.__NG_ELEMENT_ID__=TE,m})();const vE=Ll,EE=class extends vE{constructor(_,y,x){super(),this._declarationLView=_,this._declarationTContainer=y,this.elementRef=x}createEmbeddedView(_,y){const x=this._declarationTContainer.tViews,P=mc(this._declarationLView,x,_,16,null,x.declTNode,null,null,null,null,y||null);P[17]=this._declarationLView[this._declarationTContainer.index];const Z=this._declarationLView[19];return null!==Z&&(P[19]=Z.createEmbeddedView(x)),gc(x,P,_),new yl(P)}};function TE(){return Hc(ui(),nn())}function Hc(m,_){return 4&m.type?new EE(_,m,ys(m,_)):null}let Lc=(()=>{class m{}return m.__NG_ELEMENT_ID__=yE,m})();function yE(){return bg(ui(),nn())}const wE=Lc,Ag=class extends wE{constructor(_,y,x){super(),this._lContainer=_,this._hostTNode=y,this._hostLView=x}get element(){return ys(this._hostTNode,this._hostLView)}get injector(){return new Ea(this._hostTNode,this._hostLView)}get parentInjector(){const _=ra(this._hostTNode,this._hostLView);if(so(_)){const y=Sr(_,this._hostLView),x=Aa(_);return new Ea(y[1].data[x+8],y)}return new Ea(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(_){const y=Cg(this._lContainer);return null!==y&&y[_]||null}get length(){return this._lContainer.length-10}createEmbeddedView(_,y,x){let P,L;"number"==typeof x?P=x:null!=x&&(P=x.index,L=x.injector);const Z=_.createEmbeddedView(y||{},L);return this.insert(Z,P),Z}createComponent(_,y,x,P,L){const Z=_&&!function qa(m){return"function"==typeof m}(_);let me;if(Z)me=y;else{const xt=y||{};me=xt.index,x=xt.injector,P=xt.projectableNodes,L=xt.environmentInjector||xt.ngModuleRef}const Pe=Z?_:new wl(ke(_)),rt=x||this.parentInjector;if(!L&&null==Pe.ngModule){const Nt=(Z?rt:this.parentInjector).get(Yo,null);Nt&&(L=Nt)}const ft=Pe.create(rt,P,void 0,L);return this.insert(ft.hostView,me),ft}insert(_,y){const x=_._lView,P=x[1];if(function qe(m){return ci(m[3])}(x)){const ft=this.indexOf(_);if(-1!==ft)this.detach(ft);else{const xt=x[3],Nt=new Ag(xt,xt[6],xt[3]);Nt.detach(Nt.indexOf(_))}}const L=this._adjustIndex(y),Z=this._lContainer;!function SA(m,_,y,x){const P=10+x,L=y.length;x>0&&(y[P-1][4]=_),x0)x.push(Z[me/2]);else{const rt=L[me+1],ft=_[-Pe];for(let xt=10;xt{class m{constructor(y){this.appInits=y,this.resolve=Uc,this.reject=Uc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((x,P)=>{this.resolve=x,this.reject=P})}runInitializers(){if(this.initialized)return;const y=[],x=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let P=0;P{L.subscribe({complete:me,error:Pe})});y.push(Z)}}Promise.all(y).then(()=>{x()}).catch(P=>{this.reject(P)}),0===y.length&&x(),this.initialized=!0}}return m.\u0275fac=function(y){return new(y||m)(Bi(Jg,8))},m.\u0275prov=Me({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();const Qg=new si("AppId",{providedIn:"root",factory:function Kg(){return`${oh()}${oh()}${oh()}`}});function oh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const $g=new si("Platform Initializer"),XE=new si("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Xg=new si("appBootstrapListener"),eT=new si("AnimationModuleType");let tT=(()=>{class m{log(y){console.log(y)}warn(y){console.warn(y)}}return m.\u0275fac=function(y){return new(y||m)},m.\u0275prov=Me({token:m,factory:m.\u0275fac,providedIn:"platform"}),m})();const kc=new si("LocaleId",{providedIn:"root",factory:()=>Yl(kc,Ne.Optional|Ne.SkipSelf)||function nT(){return typeof $localize<"u"&&$localize.locale||js}()}),iT=new si("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class rT{constructor(_,y){this.ngModuleFactory=_,this.componentFactories=y}}let aT=(()=>{class m{compileModuleSync(y){return new zu(y)}compileModuleAsync(y){return Promise.resolve(this.compileModuleSync(y))}compileModuleAndAllComponentsSync(y){const x=this.compileModuleSync(y),L=Ja(jt(y).declarations).reduce((Z,me)=>{const Pe=ke(me);return Pe&&Z.push(new wl(Pe)),Z},[]);return new rT(x,L)}compileModuleAndAllComponentsAsync(y){return Promise.resolve(this.compileModuleAndAllComponentsSync(y))}clearCache(){}clearCacheFor(y){}getModuleId(y){}}return m.\u0275fac=function(y){return new(y||m)},m.\u0275prov=Me({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();const lT=(()=>Promise.resolve(0))();function sh(m){typeof Zone>"u"?lT.then(()=>{m&&m.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",m)}class Wr{constructor({enableLongStackTrace:_=!1,shouldCoalesceEventChangeDetection:y=!1,shouldCoalesceRunChangeDetection:x=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new La(!1),this.onMicrotaskEmpty=new La(!1),this.onStable=new La(!1),this.onError=new La(!1),typeof Zone>"u")throw new ne(908,!1);Zone.assertZonePatched();const P=this;if(P._nesting=0,P._outer=P._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const L=Zone.AsyncStackTaggingZoneSpec;P._inner=P._inner.fork(new L("Angular"))}Zone.TaskTrackingZoneSpec&&(P._inner=P._inner.fork(new Zone.TaskTrackingZoneSpec)),_&&Zone.longStackTraceZoneSpec&&(P._inner=P._inner.fork(Zone.longStackTraceZoneSpec)),P.shouldCoalesceEventChangeDetection=!x&&y,P.shouldCoalesceRunChangeDetection=x,P.lastRequestAnimationFrameId=-1,P.nativeRequestAnimationFrame=function cT(){let m=n.requestAnimationFrame,_=n.cancelAnimationFrame;if(typeof Zone<"u"&&m&&_){const y=m[Zone.__symbol__("OriginalDelegate")];y&&(m=y);const x=_[Zone.__symbol__("OriginalDelegate")];x&&(_=x)}return{nativeRequestAnimationFrame:m,nativeCancelAnimationFrame:_}}().nativeRequestAnimationFrame,function hT(m){const _=()=>{!function uT(m){m.isCheckStableRunning||-1!==m.lastRequestAnimationFrameId||(m.lastRequestAnimationFrameId=m.nativeRequestAnimationFrame.call(n,()=>{m.fakeTopEventTask||(m.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{m.lastRequestAnimationFrameId=-1,ch(m),m.isCheckStableRunning=!0,lh(m),m.isCheckStableRunning=!1},void 0,()=>{},()=>{})),m.fakeTopEventTask.invoke()}),ch(m))}(m)};m._inner=m._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(y,x,P,L,Z,me)=>{try{return n_(m),y.invokeTask(P,L,Z,me)}finally{(m.shouldCoalesceEventChangeDetection&&"eventTask"===L.type||m.shouldCoalesceRunChangeDetection)&&_(),i_(m)}},onInvoke:(y,x,P,L,Z,me,Pe)=>{try{return n_(m),y.invoke(P,L,Z,me,Pe)}finally{m.shouldCoalesceRunChangeDetection&&_(),i_(m)}},onHasTask:(y,x,P,L)=>{y.hasTask(P,L),x===P&&("microTask"==L.change?(m._hasPendingMicrotasks=L.microTask,ch(m),lh(m)):"macroTask"==L.change&&(m.hasPendingMacrotasks=L.macroTask))},onHandleError:(y,x,P,L)=>(y.handleError(P,L),m.runOutsideAngular(()=>m.onError.emit(L)),!1)})}(P)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Wr.isInAngularZone())throw new ne(909,!1)}static assertNotInAngularZone(){if(Wr.isInAngularZone())throw new ne(909,!1)}run(_,y,x){return this._inner.run(_,y,x)}runTask(_,y,x,P){const L=this._inner,Z=L.scheduleEventTask("NgZoneEvent: "+P,_,dT,Uc,Uc);try{return L.runTask(Z,y,x)}finally{L.cancelTask(Z)}}runGuarded(_,y,x){return this._inner.runGuarded(_,y,x)}runOutsideAngular(_){return this._outer.run(_)}}const dT={};function lh(m){if(0==m._nesting&&!m.hasPendingMicrotasks&&!m.isStable)try{m._nesting++,m.onMicrotaskEmpty.emit(null)}finally{if(m._nesting--,!m.hasPendingMicrotasks)try{m.runOutsideAngular(()=>m.onStable.emit(null))}finally{m.isStable=!0}}}function ch(m){m.hasPendingMicrotasks=!!(m._hasPendingMicrotasks||(m.shouldCoalesceEventChangeDetection||m.shouldCoalesceRunChangeDetection)&&-1!==m.lastRequestAnimationFrameId)}function n_(m){m._nesting++,m.isStable&&(m.isStable=!1,m.onUnstable.emit(null))}function i_(m){m._nesting--,lh(m)}class pT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new La,this.onMicrotaskEmpty=new La,this.onStable=new La,this.onError=new La}run(_,y,x){return _.apply(y,x)}runGuarded(_,y,x){return _.apply(y,x)}runOutsideAngular(_){return _()}runTask(_,y,x,P){return _.apply(y,x)}}const r_=new si(""),a_=new si("");let dh,fT=(()=>{class m{constructor(y,x,P){this._ngZone=y,this.registry=x,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,dh||(function mT(m){dh=m}(P),P.addToWindow(x)),this._watchAngularEvents(),y.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Wr.assertNotInAngularZone(),sh(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())sh(()=>{for(;0!==this._callbacks.length;){let y=this._callbacks.pop();clearTimeout(y.timeoutId),y.doneCb(this._didWork)}this._didWork=!1});else{let y=this.getPendingTasks();this._callbacks=this._callbacks.filter(x=>!x.updateCb||!x.updateCb(y)||(clearTimeout(x.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(y=>({source:y.source,creationLocation:y.creationLocation,data:y.data})):[]}addCallback(y,x,P){let L=-1;x&&x>0&&(L=setTimeout(()=>{this._callbacks=this._callbacks.filter(Z=>Z.timeoutId!==L),y(this._didWork,this.getPendingTasks())},x)),this._callbacks.push({doneCb:y,timeoutId:L,updateCb:P})}whenStable(y,x,P){if(P&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(y,x,P),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(y){this.registry.registerApplication(y,this)}unregisterApplication(y){this.registry.unregisterApplication(y)}findProviders(y,x,P){return[]}}return m.\u0275fac=function(y){return new(y||m)(Bi(Wr),Bi(o_),Bi(a_))},m.\u0275prov=Me({token:m,factory:m.\u0275fac}),m})(),o_=(()=>{class m{constructor(){this._applications=new Map}registerApplication(y,x){this._applications.set(y,x)}unregisterApplication(y){this._applications.delete(y)}unregisterAllApplications(){this._applications.clear()}getTestability(y){return this._applications.get(y)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(y,x=!0){var P,L;return null!==(P=null===(L=dh)||void 0===L?void 0:L.findTestabilityInTree(this,y,x))&&void 0!==P?P:null}}return m.\u0275fac=function(y){return new(y||m)},m.\u0275prov=Me({token:m,factory:m.\u0275fac,providedIn:"platform"}),m})(),So=null;const s_=new si("AllowMultipleToken"),uh=new si("PlatformDestroyListeners");class AT{constructor(_,y){this.name=_,this.token=y}}function c_(m,_,y=[]){const x=`Platform: ${_}`,P=new si(x);return(L=[])=>{let Z=hh();if(!Z||Z.injector.get(s_,!1)){const me=[...y,...L,{provide:P,useValue:!0}];m?m(me):function CT(m){if(So&&!So.get(s_,!1))throw new ne(400,!1);So=m;const _=m.get(u_);(function l_(m){const _=m.get($g,null);_&&_.forEach(y=>y())})(m)}(function d_(m=[],_){return Jo.create({name:_,providers:[{provide:gd,useValue:"platform"},{provide:uh,useValue:new Set([()=>So=null])},...m]})}(me,x))}return function vT(m){const _=hh();if(!_)throw new ne(401,!1);return _}()}}function hh(){var m,_;return null!==(m=null===(_=So)||void 0===_?void 0:_.get(u_))&&void 0!==m?m:null}let u_=(()=>{class m{constructor(y){this._injector=y,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(y,x){const P=function ET(m,_){let y;return y="noop"===m?new pT:("zone.js"===m?void 0:m)||new Wr(_),y}(x?.ngZone,function h_(m){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!m||!m.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!m||!m.ngZoneRunCoalescing)||!1}}(x)),L=[{provide:Wr,useValue:P}];return P.run(()=>{const Z=Jo.create({providers:L,parent:this.injector,name:y.moduleType.name}),me=y.create(Z),Pe=me.injector.get(Cl,null);if(!Pe)throw new ne(402,!1);return P.runOutsideAngular(()=>{const rt=P.onError.subscribe({next:ft=>{Pe.handleError(ft)}});me.onDestroy(()=>{Fc(this._modules,me),rt.unsubscribe()})}),function p_(m,_,y){try{const x=y();return yu(x)?x.catch(P=>{throw _.runOutsideAngular(()=>m.handleError(P)),P}):x}catch(x){throw _.runOutsideAngular(()=>m.handleError(x)),x}}(Pe,P,()=>{const rt=me.injector.get(Nc);return rt.runInitializers(),rt.donePromise.then(()=>(function ym(m){k(m,"Expected localeId to be defined"),"string"==typeof m&&(Tm=m.toLowerCase().replace(/_/g,"-"))}(me.injector.get(kc,js)||js),this._moduleDoBootstrap(me),me))})})}bootstrapModule(y,x=[]){const P=f_({},x);return function gT(m,_,y){const x=new zu(y);return Promise.resolve(x)}(0,0,y).then(L=>this.bootstrapModuleFactory(L,P))}_moduleDoBootstrap(y){const x=y.injector.get(Vc);if(y._bootstrapComponents.length>0)y._bootstrapComponents.forEach(P=>x.bootstrap(P));else{if(!y.instance.ngDoBootstrap)throw new ne(403,!1);y.instance.ngDoBootstrap(x)}this._modules.push(y)}onDestroy(y){this._destroyListeners.push(y)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ne(404,!1);this._modules.slice().forEach(x=>x.destroy()),this._destroyListeners.forEach(x=>x());const y=this._injector.get(uh,null);y&&(y.forEach(x=>x()),y.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return m.\u0275fac=function(y){return new(y||m)(Bi(Jo))},m.\u0275prov=Me({token:m,factory:m.\u0275fac,providedIn:"platform"}),m})();function f_(m,_){return Array.isArray(_)?_.reduce(f_,m):{...m,..._}}let Vc=(()=>{class m{constructor(y,x,P){this._zone=y,this._injector=x,this._exceptionHandler=P,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const L=new C.y(me=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{me.next(this._stable),me.complete()})}),Z=new C.y(me=>{let Pe;this._zone.runOutsideAngular(()=>{Pe=this._zone.onStable.subscribe(()=>{Wr.assertNotInAngularZone(),sh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,me.next(!0))})})});const rt=this._zone.onUnstable.subscribe(()=>{Wr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{me.next(!1)}))});return()=>{Pe.unsubscribe(),rt.unsubscribe()}});this.isStable=(0,M.T)(L,Z.pipe((0,f.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(y,x){const P=y instanceof Vh;if(!this._injector.get(Nc).done)throw!P&&zs(y),new ne(405,false);let Z;Z=P?y:this._injector.get(_l).resolveComponentFactory(y),this.componentTypes.push(Z.componentType);const me=function _T(m){return m.isBoundToModule}(Z)?void 0:this._injector.get(Gs),rt=Z.create(Jo.NULL,[],x||Z.selector,me),ft=rt.location.nativeElement,xt=rt.injector.get(r_,null);return xt?.registerApplication(ft),rt.onDestroy(()=>{this.detachView(rt.hostView),Fc(this.components,rt),xt?.unregisterApplication(ft)}),this._loadComponent(rt),rt}tick(){if(this._runningTick)throw new ne(101,!1);try{this._runningTick=!0;for(let y of this._views)y.detectChanges()}catch(y){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(y))}finally{this._runningTick=!1}}attachView(y){const x=y;this._views.push(x),x.attachToAppRef(this)}detachView(y){const x=y;Fc(this._views,x),x.detachFromAppRef()}_loadComponent(y){this.attachView(y.hostView),this.tick(),this.components.push(y),this._injector.get(Xg,[]).concat(this._bootstrapListeners).forEach(P=>P(y))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(y=>y()),this._views.slice().forEach(y=>y.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(y){return this._destroyListeners.push(y),()=>Fc(this._destroyListeners,y)}destroy(){if(this._destroyed)throw new ne(406,!1);const y=this._injector;y.destroy&&!y.destroyed&&y.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return m.\u0275fac=function(y){return new(y||m)(Bi(Wr),Bi(Yo),Bi(Cl))},m.\u0275prov=Me({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();function Fc(m,_){const y=m.indexOf(_);y>-1&&m.splice(y,1)}let g_=!0;function yT(){g_=!1}let wT=(()=>{class m{}return m.__NG_ELEMENT_ID__=ST,m})();function ST(m){return function MT(m,_,y){if(tr(m)&&!y){const x=gi(m.index,_);return new yl(x,x)}return 47&m.type?new yl(_[16],_):null}(ui(),nn(),16==(16&m))}class v_{constructor(){}supports(_){return Sl(_)}create(_){return new OT(_)}}const IT=(m,_)=>_;class OT{constructor(_){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=_||IT}forEachItem(_){let y;for(y=this._itHead;null!==y;y=y._next)_(y)}forEachOperation(_){let y=this._itHead,x=this._removalsHead,P=0,L=null;for(;y||x;){const Z=!x||y&&y.currentIndex{Z=this._trackByFn(P,me),null!==y&&Object.is(y.trackById,Z)?(x&&(y=this._verifyReinsertion(y,me,Z,P)),Object.is(y.item,me)||this._addIdentityChange(y,me)):(y=this._mismatch(y,me,Z,P),x=!0),y=y._next,P++}),this.length=P;return this._truncate(y),this.collection=_,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let _;for(_=this._previousItHead=this._itHead;null!==_;_=_._next)_._nextPrevious=_._next;for(_=this._additionsHead;null!==_;_=_._nextAdded)_.previousIndex=_.currentIndex;for(this._additionsHead=this._additionsTail=null,_=this._movesHead;null!==_;_=_._nextMoved)_.previousIndex=_.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(_,y,x,P){let L;return null===_?L=this._itTail:(L=_._prev,this._remove(_)),null!==(_=null===this._unlinkedRecords?null:this._unlinkedRecords.get(x,null))?(Object.is(_.item,y)||this._addIdentityChange(_,y),this._reinsertAfter(_,L,P)):null!==(_=null===this._linkedRecords?null:this._linkedRecords.get(x,P))?(Object.is(_.item,y)||this._addIdentityChange(_,y),this._moveAfter(_,L,P)):_=this._addAfter(new HT(y,x),L,P),_}_verifyReinsertion(_,y,x,P){let L=null===this._unlinkedRecords?null:this._unlinkedRecords.get(x,null);return null!==L?_=this._reinsertAfter(L,_._prev,P):_.currentIndex!=P&&(_.currentIndex=P,this._addToMoves(_,P)),_}_truncate(_){for(;null!==_;){const y=_._next;this._addToRemovals(this._unlink(_)),_=y}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(_,y,x){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(_);const P=_._prevRemoved,L=_._nextRemoved;return null===P?this._removalsHead=L:P._nextRemoved=L,null===L?this._removalsTail=P:L._prevRemoved=P,this._insertAfter(_,y,x),this._addToMoves(_,x),_}_moveAfter(_,y,x){return this._unlink(_),this._insertAfter(_,y,x),this._addToMoves(_,x),_}_addAfter(_,y,x){return this._insertAfter(_,y,x),this._additionsTail=null===this._additionsTail?this._additionsHead=_:this._additionsTail._nextAdded=_,_}_insertAfter(_,y,x){const P=null===y?this._itHead:y._next;return _._next=P,_._prev=y,null===P?this._itTail=_:P._prev=_,null===y?this._itHead=_:y._next=_,null===this._linkedRecords&&(this._linkedRecords=new E_),this._linkedRecords.put(_),_.currentIndex=x,_}_remove(_){return this._addToRemovals(this._unlink(_))}_unlink(_){null!==this._linkedRecords&&this._linkedRecords.remove(_);const y=_._prev,x=_._next;return null===y?this._itHead=x:y._next=x,null===x?this._itTail=y:x._prev=y,_}_addToMoves(_,y){return _.previousIndex===y||(this._movesTail=null===this._movesTail?this._movesHead=_:this._movesTail._nextMoved=_),_}_addToRemovals(_){return null===this._unlinkedRecords&&(this._unlinkedRecords=new E_),this._unlinkedRecords.put(_),_.currentIndex=null,_._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=_,_._prevRemoved=null):(_._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=_),_}_addIdentityChange(_,y){return _.item=y,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=_:this._identityChangesTail._nextIdentityChange=_,_}}class HT{constructor(_,y){this.item=_,this.trackById=y,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class LT{constructor(){this._head=null,this._tail=null}add(_){null===this._head?(this._head=this._tail=_,_._nextDup=null,_._prevDup=null):(this._tail._nextDup=_,_._prevDup=this._tail,_._nextDup=null,this._tail=_)}get(_,y){let x;for(x=this._head;null!==x;x=x._nextDup)if((null===y||y<=x.currentIndex)&&Object.is(x.trackById,_))return x;return null}remove(_){const y=_._prevDup,x=_._nextDup;return null===y?this._head=x:y._nextDup=x,null===x?this._tail=y:x._prevDup=y,null===this._head}}class E_{constructor(){this.map=new Map}put(_){const y=_.trackById;let x=this.map.get(y);x||(x=new LT,this.map.set(y,x)),x.add(_)}get(_,y){const P=this.map.get(_);return P?P.get(_,y):null}remove(_){const y=_.trackById;return this.map.get(y).remove(_)&&this.map.delete(y),_}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function T_(m,_,y){const x=m.previousIndex;if(null===x)return x;let P=0;return y&&x{if(y&&y.key===P)this._maybeAddToChanges(y,x),this._appendAfter=y,y=y._next;else{const L=this._getOrCreateRecordForKey(P,x);y=this._insertBeforeOrAppend(y,L)}}),y){y._prev&&(y._prev._next=null),this._removalsHead=y;for(let x=y;null!==x;x=x._nextRemoved)x===this._mapHead&&(this._mapHead=null),this._records.delete(x.key),x._nextRemoved=x._next,x.previousValue=x.currentValue,x.currentValue=null,x._prev=null,x._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(_,y){if(_){const x=_._prev;return y._next=_,y._prev=x,_._prev=y,x&&(x._next=y),_===this._mapHead&&(this._mapHead=y),this._appendAfter=_,_}return this._appendAfter?(this._appendAfter._next=y,y._prev=this._appendAfter):this._mapHead=y,this._appendAfter=y,null}_getOrCreateRecordForKey(_,y){if(this._records.has(_)){const P=this._records.get(_);this._maybeAddToChanges(P,y);const L=P._prev,Z=P._next;return L&&(L._next=Z),Z&&(Z._prev=L),P._next=null,P._prev=null,P}const x=new UT(_);return this._records.set(_,x),x.currentValue=y,this._addToAdditions(x),x}_reset(){if(this.isDirty){let _;for(this._previousMapHead=this._mapHead,_=this._previousMapHead;null!==_;_=_._next)_._nextPrevious=_._next;for(_=this._changesHead;null!==_;_=_._nextChanged)_.previousValue=_.currentValue;for(_=this._additionsHead;null!=_;_=_._nextAdded)_.previousValue=_.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(_,y){Object.is(y,_.currentValue)||(_.previousValue=_.currentValue,_.currentValue=y,this._addToChanges(_))}_addToAdditions(_){null===this._additionsHead?this._additionsHead=this._additionsTail=_:(this._additionsTail._nextAdded=_,this._additionsTail=_)}_addToChanges(_){null===this._changesHead?this._changesHead=this._changesTail=_:(this._changesTail._nextChanged=_,this._changesTail=_)}_forEach(_,y){_ instanceof Map?_.forEach(y):Object.keys(_).forEach(x=>y(_[x],x))}}class UT{constructor(_){this.key=_,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function w_(){return new _h([new v_])}let _h=(()=>{class m{constructor(y){this.factories=y}static create(y,x){if(null!=x){const P=x.factories.slice();y=y.concat(P)}return new m(y)}static extend(y){return{provide:m,useFactory:x=>m.create(y,x||w_()),deps:[[m,new go,new er]]}}find(y){const x=this.factories.find(P=>P.supports(y));if(null!=x)return x;throw new ne(901,!1)}}return m.\u0275prov=Me({token:m,providedIn:"root",factory:w_}),m})();function S_(){return new Ah([new y_])}let Ah=(()=>{class m{constructor(y){this.factories=y}static create(y,x){if(x){const P=x.factories.slice();y=y.concat(P)}return new m(y)}static extend(y){return{provide:m,useFactory:x=>m.create(y,x||S_()),deps:[[m,new go,new er]]}}find(y){const x=this.factories.find(P=>P.supports(y));if(x)return x;throw new ne(901,!1)}}return m.\u0275prov=Me({token:m,providedIn:"root",factory:S_}),m})();const VT=c_(null,"core",[]);let FT=(()=>{class m{constructor(y){}}return m.\u0275fac=function(y){return new(y||m)(Bi(Vc))},m.\u0275mod=ie({type:m}),m.\u0275inj=je({}),m})();function jT(m){return"boolean"==typeof m?m:null!=m&&"false"!==m}},24006:($e,he,p)=>{"use strict";p.d(he,{Cf:()=>Oe,EJ:()=>Xe,F:()=>ti,Fj:()=>J,JJ:()=>Ce,JL:()=>fe,JU:()=>T,Kr:()=>bi,NI:()=>Ln,On:()=>Ci,Q7:()=>dr,QS:()=>Tr,UX:()=>ei,YN:()=>yt,Zs:()=>gi,_Y:()=>Er,a5:()=>Ee,c5:()=>En,gN:()=>Ae,kI:()=>E,oH:()=>kt,p4:()=>zi,sg:()=>rn,u:()=>xi,u5:()=>Ti,wV:()=>Ei});var e=p(94650),A=p(36895),C=p(32076),M=p(4128),f=p(54004);let b=(()=>{class Je{constructor(Re,At){this._renderer=Re,this._elementRef=At,this.onChange=Jt=>{},this.onTouched=()=>{}}setProperty(Re,At){this._renderer.setProperty(this._elementRef.nativeElement,Re,At)}registerOnTouched(Re){this.onTouched=Re}registerOnChange(Re){this.onChange=Re}setDisabledState(Re){this.setProperty("disabled",Re)}}return Je.\u0275fac=function(Re){return new(Re||Je)(e.Y36(e.Qsj),e.Y36(e.SBq))},Je.\u0275dir=e.lG2({type:Je}),Je})(),D=(()=>{class Je extends b{}return Je.\u0275fac=function(){let Fe;return function(At){return(Fe||(Fe=e.n5z(Je)))(At||Je)}}(),Je.\u0275dir=e.lG2({type:Je,features:[e.qOj]}),Je})();const T=new e.OlP("NgValueAccessor"),w={provide:T,useExisting:(0,e.Gpc)(()=>J),multi:!0},O=new e.OlP("CompositionEventMode");let J=(()=>{class Je extends b{constructor(Re,At,Jt){super(Re,At),this._compositionMode=Jt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function H(){const Je=(0,A.q)()?(0,A.q)().getUserAgent():"";return/android (\d+)/.test(Je.toLowerCase())}())}writeValue(Re){this.setProperty("value",Re??"")}_handleInput(Re){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Re)}_compositionStart(){this._composing=!0}_compositionEnd(Re){this._composing=!1,this._compositionMode&&this.onChange(Re)}}return Je.\u0275fac=function(Re){return new(Re||Je)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(O,8))},Je.\u0275dir=e.lG2({type:Je,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Re,At){1&Re&&e.NdJ("input",function(_n){return At._handleInput(_n.target.value)})("blur",function(){return At.onTouched()})("compositionstart",function(){return At._compositionStart()})("compositionend",function(_n){return At._compositionEnd(_n.target.value)})},features:[e._Bn([w]),e.qOj]}),Je})();function G(Je){return null==Je||("string"==typeof Je||Array.isArray(Je))&&0===Je.length}function se(Je){return null!=Je&&"number"==typeof Je.length}const Oe=new e.OlP("NgValidators"),_e=new e.OlP("NgAsyncValidators"),Be=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class E{static min(Fe){return function z(Je){return Fe=>{if(G(Fe.value)||G(Je))return null;const Re=parseFloat(Fe.value);return!isNaN(Re)&&Re{if(G(Fe.value)||G(Je))return null;const Re=parseFloat(Fe.value);return!isNaN(Re)&&Re>Je?{max:{max:Je,actual:Fe.value}}:null}}(Fe)}static required(Fe){return V(Fe)}static requiredTrue(Fe){return X(Fe)}static email(Fe){return function q(Je){return G(Je.value)||Be.test(Je.value)?null:{email:!0}}(Fe)}static minLength(Fe){return function pe(Je){return Fe=>G(Fe.value)||!se(Fe.value)?null:Fe.value.lengthse(Fe.value)&&Fe.value.length>Je?{maxlength:{requiredLength:Je,actualLength:Fe.value.length}}:null}(Fe)}static pattern(Fe){return ye(Fe)}static nullValidator(Fe){return null}static compose(Fe){return N(Fe)}static composeAsync(Fe){return W(Fe)}}function V(Je){return G(Je.value)?{required:!0}:null}function X(Je){return!0===Je.value?null:{required:!0}}function ye(Je){if(!Je)return Ve;let Fe,Re;return"string"==typeof Je?(Re="","^"!==Je.charAt(0)&&(Re+="^"),Re+=Je,"$"!==Je.charAt(Je.length-1)&&(Re+="$"),Fe=new RegExp(Re)):(Re=Je.toString(),Fe=Je),At=>{if(G(At.value))return null;const Jt=At.value;return Fe.test(Jt)?null:{pattern:{requiredPattern:Re,actualValue:Jt}}}}function Ve(Je){return null}function ve(Je){return null!=Je}function Ke(Je){return(0,e.QGY)(Je)?(0,C.D)(Je):Je}function Ue(Je){let Fe={};return Je.forEach(Re=>{Fe=null!=Re?{...Fe,...Re}:Fe}),0===Object.keys(Fe).length?null:Fe}function oe(Je,Fe){return Fe.map(Re=>Re(Je))}function k(Je){return Je.map(Fe=>function ce(Je){return!Je.validate}(Fe)?Fe:Re=>Fe.validate(Re))}function N(Je){if(!Je)return null;const Fe=Je.filter(ve);return 0==Fe.length?null:function(Re){return Ue(oe(Re,Fe))}}function be(Je){return null!=Je?N(k(Je)):null}function W(Je){if(!Je)return null;const Fe=Je.filter(ve);return 0==Fe.length?null:function(Re){const At=oe(Re,Fe).map(Ke);return(0,M.D)(At).pipe((0,f.U)(Ue))}}function ue(Je){return null!=Je?W(k(Je)):null}function Me(Je,Fe){return null===Je?[Fe]:Array.isArray(Je)?[...Je,Fe]:[Je,Fe]}function ot(Je){return Je._rawValidators}function je(Je){return Je._rawAsyncValidators}function ut(Je){return Je?Array.isArray(Je)?Je:[Je]:[]}function tt(Je,Fe){return Array.isArray(Je)?Je.includes(Fe):Je===Fe}function vt(Je,Fe){const Re=ut(Fe);return ut(Je).forEach(Jt=>{tt(Re,Jt)||Re.push(Jt)}),Re}function ee(Je,Fe){return ut(Fe).filter(Re=>!tt(Je,Re))}class nt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(Fe){this._rawValidators=Fe||[],this._composedValidatorFn=be(this._rawValidators)}_setAsyncValidators(Fe){this._rawAsyncValidators=Fe||[],this._composedAsyncValidatorFn=ue(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Fe){this._onDestroyCallbacks.push(Fe)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Fe=>Fe()),this._onDestroyCallbacks=[]}reset(Fe){this.control&&this.control.reset(Fe)}hasError(Fe,Re){return!!this.control&&this.control.hasError(Fe,Re)}getError(Fe,Re){return this.control?this.control.getError(Fe,Re):null}}class Ae extends nt{get formDirective(){return null}get path(){return null}}class Ee extends nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ge{constructor(Fe){this._cd=Fe}get isTouched(){var Fe,Re;return!(null===(Fe=this._cd)||void 0===Fe||null===(Re=Fe.control)||void 0===Re||!Re.touched)}get isUntouched(){var Fe,Re;return!(null===(Fe=this._cd)||void 0===Fe||null===(Re=Fe.control)||void 0===Re||!Re.untouched)}get isPristine(){var Fe,Re;return!(null===(Fe=this._cd)||void 0===Fe||null===(Re=Fe.control)||void 0===Re||!Re.pristine)}get isDirty(){var Fe,Re;return!(null===(Fe=this._cd)||void 0===Fe||null===(Re=Fe.control)||void 0===Re||!Re.dirty)}get isValid(){var Fe,Re;return!(null===(Fe=this._cd)||void 0===Fe||null===(Re=Fe.control)||void 0===Re||!Re.valid)}get isInvalid(){var Fe,Re;return!(null===(Fe=this._cd)||void 0===Fe||null===(Re=Fe.control)||void 0===Re||!Re.invalid)}get isPending(){var Fe,Re;return!(null===(Fe=this._cd)||void 0===Fe||null===(Re=Fe.control)||void 0===Re||!Re.pending)}get isSubmitted(){var Fe;return!(null===(Fe=this._cd)||void 0===Fe||!Fe.submitted)}}let Ce=(()=>{class Je extends ge{constructor(Re){super(Re)}}return Je.\u0275fac=function(Re){return new(Re||Je)(e.Y36(Ee,2))},Je.\u0275dir=e.lG2({type:Je,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Re,At){2&Re&&e.ekj("ng-untouched",At.isUntouched)("ng-touched",At.isTouched)("ng-pristine",At.isPristine)("ng-dirty",At.isDirty)("ng-valid",At.isValid)("ng-invalid",At.isInvalid)("ng-pending",At.isPending)},features:[e.qOj]}),Je})(),fe=(()=>{class Je extends ge{constructor(Re){super(Re)}}return Je.\u0275fac=function(Re){return new(Re||Je)(e.Y36(Ae,10))},Je.\u0275dir=e.lG2({type:Je,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Re,At){2&Re&&e.ekj("ng-untouched",At.isUntouched)("ng-touched",At.isTouched)("ng-pristine",At.isPristine)("ng-dirty",At.isDirty)("ng-valid",At.isValid)("ng-invalid",At.isInvalid)("ng-pending",At.isPending)("ng-submitted",At.isSubmitted)},features:[e.qOj]}),Je})();const et="VALID",te="INVALID",Le="PENDING",Ie="DISABLED";function De(Je){return(st(Je)?Je.validators:Je)||null}function xe(Je){return Array.isArray(Je)?be(Je):Je||null}function ie(Je,Fe){return(st(Fe)?Fe.asyncValidators:Je)||null}function Te(Je){return Array.isArray(Je)?ue(Je):Je||null}function st(Je){return null!=Je&&!Array.isArray(Je)&&"object"==typeof Je}function Qe(Je,Fe,Re){const At=Je.controls;if(!(Fe?Object.keys(At):At).length)throw new e.vHH(1e3,"");if(!At[Re])throw new e.vHH(1001,"")}function Et(Je,Fe,Re){Je._forEachChild((At,Jt)=>{if(void 0===Re[Jt])throw new e.vHH(1002,"")})}class ke{constructor(Fe,Re){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Fe,this._rawAsyncValidators=Re,this._composedValidatorFn=xe(this._rawValidators),this._composedAsyncValidatorFn=Te(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(Fe){this._rawValidators=this._composedValidatorFn=Fe}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Fe){this._rawAsyncValidators=this._composedAsyncValidatorFn=Fe}get parent(){return this._parent}get valid(){return this.status===et}get invalid(){return this.status===te}get pending(){return this.status==Le}get disabled(){return this.status===Ie}get enabled(){return this.status!==Ie}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Fe){this._rawValidators=Fe,this._composedValidatorFn=xe(Fe)}setAsyncValidators(Fe){this._rawAsyncValidators=Fe,this._composedAsyncValidatorFn=Te(Fe)}addValidators(Fe){this.setValidators(vt(Fe,this._rawValidators))}addAsyncValidators(Fe){this.setAsyncValidators(vt(Fe,this._rawAsyncValidators))}removeValidators(Fe){this.setValidators(ee(Fe,this._rawValidators))}removeAsyncValidators(Fe){this.setAsyncValidators(ee(Fe,this._rawAsyncValidators))}hasValidator(Fe){return tt(this._rawValidators,Fe)}hasAsyncValidator(Fe){return tt(this._rawAsyncValidators,Fe)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Fe={}){this.touched=!0,this._parent&&!Fe.onlySelf&&this._parent.markAsTouched(Fe)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Fe=>Fe.markAllAsTouched())}markAsUntouched(Fe={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Re=>{Re.markAsUntouched({onlySelf:!0})}),this._parent&&!Fe.onlySelf&&this._parent._updateTouched(Fe)}markAsDirty(Fe={}){this.pristine=!1,this._parent&&!Fe.onlySelf&&this._parent.markAsDirty(Fe)}markAsPristine(Fe={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Re=>{Re.markAsPristine({onlySelf:!0})}),this._parent&&!Fe.onlySelf&&this._parent._updatePristine(Fe)}markAsPending(Fe={}){this.status=Le,!1!==Fe.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Fe.onlySelf&&this._parent.markAsPending(Fe)}disable(Fe={}){const Re=this._parentMarkedDirty(Fe.onlySelf);this.status=Ie,this.errors=null,this._forEachChild(At=>{At.disable({...Fe,onlySelf:!0})}),this._updateValue(),!1!==Fe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Fe,skipPristineCheck:Re}),this._onDisabledChange.forEach(At=>At(!0))}enable(Fe={}){const Re=this._parentMarkedDirty(Fe.onlySelf);this.status=et,this._forEachChild(At=>{At.enable({...Fe,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Fe.emitEvent}),this._updateAncestors({...Fe,skipPristineCheck:Re}),this._onDisabledChange.forEach(At=>At(!1))}_updateAncestors(Fe){this._parent&&!Fe.onlySelf&&(this._parent.updateValueAndValidity(Fe),Fe.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Fe){this._parent=Fe}getRawValue(){return this.value}updateValueAndValidity(Fe={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===et||this.status===Le)&&this._runAsyncValidator(Fe.emitEvent)),!1!==Fe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Fe.onlySelf&&this._parent.updateValueAndValidity(Fe)}_updateTreeValidity(Fe={emitEvent:!0}){this._forEachChild(Re=>Re._updateTreeValidity(Fe)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Fe.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ie:et}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Fe){if(this.asyncValidator){this.status=Le,this._hasOwnPendingAsyncValidator=!0;const Re=Ke(this.asyncValidator(this));this._asyncValidationSubscription=Re.subscribe(At=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(At,{emitEvent:Fe})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Fe,Re={}){this.errors=Fe,this._updateControlsErrors(!1!==Re.emitEvent)}get(Fe){let Re=Fe;return null==Re||(Array.isArray(Re)||(Re=Re.split(".")),0===Re.length)?null:Re.reduce((At,Jt)=>At&&At._find(Jt),this)}getError(Fe,Re){const At=Re?this.get(Re):this;return At&&At.errors?At.errors[Fe]:null}hasError(Fe,Re){return!!this.getError(Fe,Re)}get root(){let Fe=this;for(;Fe._parent;)Fe=Fe._parent;return Fe}_updateControlsErrors(Fe){this.status=this._calculateStatus(),Fe&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Fe)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?Ie:this.errors?te:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Le)?Le:this._anyControlsHaveStatus(te)?te:et}_anyControlsHaveStatus(Fe){return this._anyControls(Re=>Re.status===Fe)}_anyControlsDirty(){return this._anyControls(Fe=>Fe.dirty)}_anyControlsTouched(){return this._anyControls(Fe=>Fe.touched)}_updatePristine(Fe={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Fe.onlySelf&&this._parent._updatePristine(Fe)}_updateTouched(Fe={}){this.touched=this._anyControlsTouched(),this._parent&&!Fe.onlySelf&&this._parent._updateTouched(Fe)}_registerOnCollectionChange(Fe){this._onCollectionChange=Fe}_setUpdateStrategy(Fe){st(Fe)&&null!=Fe.updateOn&&(this._updateOn=Fe.updateOn)}_parentMarkedDirty(Fe){return!Fe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Fe){return null}}class at extends ke{constructor(Fe,Re,At){super(De(Re),ie(At,Re)),this.controls=Fe,this._initObservables(),this._setUpdateStrategy(Re),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Fe,Re){return this.controls[Fe]?this.controls[Fe]:(this.controls[Fe]=Re,Re.setParent(this),Re._registerOnCollectionChange(this._onCollectionChange),Re)}addControl(Fe,Re,At={}){this.registerControl(Fe,Re),this.updateValueAndValidity({emitEvent:At.emitEvent}),this._onCollectionChange()}removeControl(Fe,Re={}){this.controls[Fe]&&this.controls[Fe]._registerOnCollectionChange(()=>{}),delete this.controls[Fe],this.updateValueAndValidity({emitEvent:Re.emitEvent}),this._onCollectionChange()}setControl(Fe,Re,At={}){this.controls[Fe]&&this.controls[Fe]._registerOnCollectionChange(()=>{}),delete this.controls[Fe],Re&&this.registerControl(Fe,Re),this.updateValueAndValidity({emitEvent:At.emitEvent}),this._onCollectionChange()}contains(Fe){return this.controls.hasOwnProperty(Fe)&&this.controls[Fe].enabled}setValue(Fe,Re={}){Et(this,0,Fe),Object.keys(Fe).forEach(At=>{Qe(this,!0,At),this.controls[At].setValue(Fe[At],{onlySelf:!0,emitEvent:Re.emitEvent})}),this.updateValueAndValidity(Re)}patchValue(Fe,Re={}){null!=Fe&&(Object.keys(Fe).forEach(At=>{const Jt=this.controls[At];Jt&&Jt.patchValue(Fe[At],{onlySelf:!0,emitEvent:Re.emitEvent})}),this.updateValueAndValidity(Re))}reset(Fe={},Re={}){this._forEachChild((At,Jt)=>{At.reset(Fe[Jt],{onlySelf:!0,emitEvent:Re.emitEvent})}),this._updatePristine(Re),this._updateTouched(Re),this.updateValueAndValidity(Re)}getRawValue(){return this._reduceChildren({},(Fe,Re,At)=>(Fe[At]=Re.getRawValue(),Fe))}_syncPendingControls(){let Fe=this._reduceChildren(!1,(Re,At)=>!!At._syncPendingControls()||Re);return Fe&&this.updateValueAndValidity({onlySelf:!0}),Fe}_forEachChild(Fe){Object.keys(this.controls).forEach(Re=>{const At=this.controls[Re];At&&Fe(At,Re)})}_setUpControls(){this._forEachChild(Fe=>{Fe.setParent(this),Fe._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Fe){for(const[Re,At]of Object.entries(this.controls))if(this.contains(Re)&&Fe(At))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Re,At,Jt)=>((At.enabled||this.disabled)&&(Re[Jt]=At.value),Re))}_reduceChildren(Fe,Re){let At=Fe;return this._forEachChild((Jt,_n)=>{At=Re(At,Jt,_n)}),At}_allControlsDisabled(){for(const Fe of Object.keys(this.controls))if(this.controls[Fe].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Fe){return this.controls.hasOwnProperty(Fe)?this.controls[Fe]:null}}function on(Je,Fe){return[...Fe.path,Je]}function bn(Je,Fe){var Re,At;wt(Je,Fe),Fe.valueAccessor.writeValue(Je.value),Je.disabled&&(null===(Re=(At=Fe.valueAccessor).setDisabledState)||void 0===Re||Re.call(At,!0)),function ln(Je,Fe){Fe.valueAccessor.registerOnChange(Re=>{Je._pendingValue=Re,Je._pendingChange=!0,Je._pendingDirty=!0,"change"===Je.updateOn&&gn(Je,Fe)})}(Je,Fe),function zn(Je,Fe){const Re=(At,Jt)=>{Fe.valueAccessor.writeValue(At),Jt&&Fe.viewToModelUpdate(At)};Je.registerOnChange(Re),Fe._registerOnDestroy(()=>{Je._unregisterOnChange(Re)})}(Je,Fe),function Cn(Je,Fe){Fe.valueAccessor.registerOnTouched(()=>{Je._pendingTouched=!0,"blur"===Je.updateOn&&Je._pendingChange&&gn(Je,Fe),"submit"!==Je.updateOn&&Je.markAsTouched()})}(Je,Fe),function Ge(Je,Fe){if(Fe.valueAccessor.setDisabledState){const Re=At=>{Fe.valueAccessor.setDisabledState(At)};Je.registerOnDisabledChange(Re),Fe._registerOnDestroy(()=>{Je._unregisterOnDisabledChange(Re)})}}(Je,Fe)}function Tt(Je,Fe,Re=!0){const At=()=>{};Fe.valueAccessor&&(Fe.valueAccessor.registerOnChange(At),Fe.valueAccessor.registerOnTouched(At)),Ft(Je,Fe),Je&&(Fe._invokeOnDestroyCallbacks(),Je._registerOnCollectionChange(()=>{}))}function Dt(Je,Fe){Je.forEach(Re=>{Re.registerOnValidatorChange&&Re.registerOnValidatorChange(Fe)})}function wt(Je,Fe){const Re=ot(Je);null!==Fe.validator?Je.setValidators(Me(Re,Fe.validator)):"function"==typeof Re&&Je.setValidators([Re]);const At=je(Je);null!==Fe.asyncValidator?Je.setAsyncValidators(Me(At,Fe.asyncValidator)):"function"==typeof At&&Je.setAsyncValidators([At]);const Jt=()=>Je.updateValueAndValidity();Dt(Fe._rawValidators,Jt),Dt(Fe._rawAsyncValidators,Jt)}function Ft(Je,Fe){let Re=!1;if(null!==Je){if(null!==Fe.validator){const Jt=ot(Je);if(Array.isArray(Jt)&&Jt.length>0){const _n=Jt.filter(pi=>pi!==Fe.validator);_n.length!==Jt.length&&(Re=!0,Je.setValidators(_n))}}if(null!==Fe.asyncValidator){const Jt=je(Je);if(Array.isArray(Jt)&&Jt.length>0){const _n=Jt.filter(pi=>pi!==Fe.asyncValidator);_n.length!==Jt.length&&(Re=!0,Je.setAsyncValidators(_n))}}}const At=()=>{};return Dt(Fe._rawValidators,At),Dt(Fe._rawAsyncValidators,At),Re}function gn(Je,Fe){Je._pendingDirty&&Je.markAsDirty(),Je.setValue(Je._pendingValue,{emitModelToViewChange:!1}),Fe.viewToModelUpdate(Je._pendingValue),Je._pendingChange=!1}function bt(Je,Fe){wt(Je,Fe)}function He(Je,Fe){if(!Je.hasOwnProperty("model"))return!1;const Re=Je.model;return!!Re.isFirstChange()||!Object.is(Fe,Re.currentValue)}function Rt(Je,Fe){Je._syncPendingControls(),Fe.forEach(Re=>{const At=Re.control;"submit"===At.updateOn&&At._pendingChange&&(Re.viewToModelUpdate(At._pendingValue),At._pendingChange=!1)})}function Xt(Je,Fe){if(!Fe)return null;let Re,At,Jt;return Array.isArray(Fe),Fe.forEach(_n=>{_n.constructor===J?Re=_n:function mt(Je){return Object.getPrototypeOf(Je.constructor)===D}(_n)?At=_n:Jt=_n}),Jt||At||Re||null}const In={provide:Ae,useExisting:(0,e.Gpc)(()=>ti)},Kn=(()=>Promise.resolve(null))();let ti=(()=>{class Je extends Ae{constructor(Re,At){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new at({},be(Re),ue(At))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Re){Kn.then(()=>{const At=this._findContainer(Re.path);Re.control=At.registerControl(Re.name,Re.control),bn(Re.control,Re),Re.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Re)})}getControl(Re){return this.form.get(Re.path)}removeControl(Re){Kn.then(()=>{const At=this._findContainer(Re.path);At&&At.removeControl(Re.name),this._directives.delete(Re)})}addFormGroup(Re){Kn.then(()=>{const At=this._findContainer(Re.path),Jt=new at({});bt(Jt,Re),At.registerControl(Re.name,Jt),Jt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Re){Kn.then(()=>{const At=this._findContainer(Re.path);At&&At.removeControl(Re.name)})}getFormGroup(Re){return this.form.get(Re.path)}updateModel(Re,At){Kn.then(()=>{this.form.get(Re.path).setValue(At)})}setValue(Re){this.control.setValue(Re)}onSubmit(Re){return this.submitted=!0,Rt(this.form,this._directives),this.ngSubmit.emit(Re),!1}onReset(){this.resetForm()}resetForm(Re){this.form.reset(Re),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Re){return Re.pop(),Re.length?this.form.get(Re):this.form}}return Je.\u0275fac=function(Re){return new(Re||Je)(e.Y36(Oe,10),e.Y36(_e,10))},Je.\u0275dir=e.lG2({type:Je,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Re,At){1&Re&&e.NdJ("submit",function(_n){return At.onSubmit(_n)})("reset",function(){return At.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([In]),e.qOj]}),Je})();function $n(Je,Fe){const Re=Je.indexOf(Fe);Re>-1&&Je.splice(Re,1)}function Jn(Je){return"object"==typeof Je&&null!==Je&&2===Object.keys(Je).length&&"value"in Je&&"disabled"in Je}const Ln=class extends ke{constructor(Fe=null,Re,At){super(De(Re),ie(At,Re)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Fe),this._setUpdateStrategy(Re),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),st(Re)&&(Re.nonNullable||Re.initialValueIsDefault)&&(this.defaultValue=Jn(Fe)?Fe.value:Fe)}setValue(Fe,Re={}){this.value=this._pendingValue=Fe,this._onChange.length&&!1!==Re.emitModelToViewChange&&this._onChange.forEach(At=>At(this.value,!1!==Re.emitViewToModelChange)),this.updateValueAndValidity(Re)}patchValue(Fe,Re={}){this.setValue(Fe,Re)}reset(Fe=this.defaultValue,Re={}){this._applyFormState(Fe),this.markAsPristine(Re),this.markAsUntouched(Re),this.setValue(this.value,Re),this._pendingChange=!1}_updateValue(){}_anyControls(Fe){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Fe){this._onChange.push(Fe)}_unregisterOnChange(Fe){$n(this._onChange,Fe)}registerOnDisabledChange(Fe){this._onDisabledChange.push(Fe)}_unregisterOnDisabledChange(Fe){$n(this._onDisabledChange,Fe)}_forEachChild(Fe){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Fe){Jn(Fe)?(this.value=this._pendingValue=Fe.value,Fe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Fe}},zi=Ln,sr={provide:Ee,useExisting:(0,e.Gpc)(()=>Ci)},lr=(()=>Promise.resolve(null))();let Ci=(()=>{class Je extends Ee{constructor(Re,At,Jt,_n,pi){super(),this._changeDetectorRef=pi,this.control=new Ln,this._registered=!1,this.update=new e.vpe,this._parent=Re,this._setValidators(At),this._setAsyncValidators(Jt),this.valueAccessor=Xt(0,_n)}ngOnChanges(Re){if(this._checkForErrors(),!this._registered||"name"in Re){if(this._registered&&(this._checkName(),this.formDirective)){const At=Re.name.previousValue;this.formDirective.removeControl({name:At,path:this._getPath(At)})}this._setUpControl()}"isDisabled"in Re&&this._updateDisabled(Re),He(Re,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Re){this.viewModel=Re,this.update.emit(Re)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){bn(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Re){lr.then(()=>{var At;this.control.setValue(Re,{emitViewToModelChange:!1}),null===(At=this._changeDetectorRef)||void 0===At||At.markForCheck()})}_updateDisabled(Re){const At=Re.isDisabled.currentValue,Jt=0!==At&&(0,e.D6c)(At);lr.then(()=>{var _n;Jt&&!this.control.disabled?this.control.disable():!Jt&&this.control.disabled&&this.control.enable(),null===(_n=this._changeDetectorRef)||void 0===_n||_n.markForCheck()})}_getPath(Re){return this._parent?on(Re,this._parent):[Re]}}return Je.\u0275fac=function(Re){return new(Re||Je)(e.Y36(Ae,9),e.Y36(Oe,10),e.Y36(_e,10),e.Y36(T,10),e.Y36(e.sBO,8))},Je.\u0275dir=e.lG2({type:Je,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([sr]),e.qOj,e.TTD]}),Je})(),Er=(()=>{class Je{}return Je.\u0275fac=function(Re){return new(Re||Je)},Je.\u0275dir=e.lG2({type:Je,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Je})();const Ur={provide:T,useExisting:(0,e.Gpc)(()=>Ei),multi:!0};let Ei=(()=>{class Je extends D{writeValue(Re){this.setProperty("value",Re??"")}registerOnChange(Re){this.onChange=At=>{Re(""==At?null:parseFloat(At))}}}return Je.\u0275fac=function(){let Fe;return function(At){return(Fe||(Fe=e.n5z(Je)))(At||Je)}}(),Je.\u0275dir=e.lG2({type:Je,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Re,At){1&Re&&e.NdJ("input",function(_n){return At.onChange(_n.target.value)})("blur",function(){return At.onTouched()})},features:[e._Bn([Ur]),e.qOj]}),Je})(),kr=(()=>{class Je{}return Je.\u0275fac=function(Re){return new(Re||Je)},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({}),Je})();const en=new e.OlP("NgModelWithFormControlWarning"),ct={provide:Ee,useExisting:(0,e.Gpc)(()=>kt)};let kt=(()=>{class Je extends Ee{constructor(Re,At,Jt,_n){super(),this._ngModelWarningConfig=_n,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(Re),this._setAsyncValidators(At),this.valueAccessor=Xt(0,Jt)}set isDisabled(Re){}ngOnChanges(Re){if(this._isControlChanged(Re)){const At=Re.form.previousValue;At&&Tt(At,this,!1),bn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}He(Re,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Tt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Re){this.viewModel=Re,this.update.emit(Re)}_isControlChanged(Re){return Re.hasOwnProperty("form")}}return Je._ngModelWarningSentOnce=!1,Je.\u0275fac=function(Re){return new(Re||Je)(e.Y36(Oe,10),e.Y36(_e,10),e.Y36(T,10),e.Y36(en,8))},Je.\u0275dir=e.lG2({type:Je,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([ct]),e.qOj,e.TTD]}),Je})();const Zt={provide:Ae,useExisting:(0,e.Gpc)(()=>rn)};let rn=(()=>{class Je extends Ae{constructor(Re,At){super(),this.validators=Re,this.asyncValidators=At,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(Re),this._setAsyncValidators(At)}ngOnChanges(Re){this._checkFormPresent(),Re.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ft(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Re){const At=this.form.get(Re.path);return bn(At,Re),At.updateValueAndValidity({emitEvent:!1}),this.directives.push(Re),At}getControl(Re){return this.form.get(Re.path)}removeControl(Re){Tt(Re.control||null,Re,!1),function vn(Je,Fe){const Re=Je.indexOf(Fe);Re>-1&&Je.splice(Re,1)}(this.directives,Re)}addFormGroup(Re){this._setUpFormContainer(Re)}removeFormGroup(Re){this._cleanUpFormContainer(Re)}getFormGroup(Re){return this.form.get(Re.path)}addFormArray(Re){this._setUpFormContainer(Re)}removeFormArray(Re){this._cleanUpFormContainer(Re)}getFormArray(Re){return this.form.get(Re.path)}updateModel(Re,At){this.form.get(Re.path).setValue(At)}onSubmit(Re){return this.submitted=!0,Rt(this.form,this.directives),this.ngSubmit.emit(Re),!1}onReset(){this.resetForm()}resetForm(Re){this.form.reset(Re),this.submitted=!1}_updateDomValue(){this.directives.forEach(Re=>{const At=Re.control,Jt=this.form.get(Re.path);At!==Jt&&(Tt(At||null,Re),(Je=>Je instanceof Ln)(Jt)&&(bn(Jt,Re),Re.control=Jt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Re){const At=this.form.get(Re.path);bt(At,Re),At.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Re){if(this.form){const At=this.form.get(Re.path);At&&function Lt(Je,Fe){return Ft(Je,Fe)}(At,Re)&&At.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){wt(this.form,this),this._oldForm&&Ft(this._oldForm,this)}_checkFormPresent(){}}return Je.\u0275fac=function(Re){return new(Re||Je)(e.Y36(Oe,10),e.Y36(_e,10))},Je.\u0275dir=e.lG2({type:Je,selectors:[["","formGroup",""]],hostBindings:function(Re,At){1&Re&&e.NdJ("submit",function(_n){return At.onSubmit(_n)})("reset",function(){return At.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Zt]),e.qOj,e.TTD]}),Je})();const Oi={provide:Ee,useExisting:(0,e.Gpc)(()=>xi)};let xi=(()=>{class Je extends Ee{constructor(Re,At,Jt,_n,pi){super(),this._ngModelWarningConfig=pi,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=Re,this._setValidators(At),this._setAsyncValidators(Jt),this.valueAccessor=Xt(0,_n)}set isDisabled(Re){}ngOnChanges(Re){this._added||this._setUpControl(),He(Re,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Re){this.viewModel=Re,this.update.emit(Re)}get path(){return on(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return Je._ngModelWarningSentOnce=!1,Je.\u0275fac=function(Re){return new(Re||Je)(e.Y36(Ae,13),e.Y36(Oe,10),e.Y36(_e,10),e.Y36(T,10),e.Y36(en,8))},Je.\u0275dir=e.lG2({type:Je,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([Oi]),e.qOj,e.TTD]}),Je})();const qi={provide:T,useExisting:(0,e.Gpc)(()=>Xe),multi:!0};function lt(Je,Fe){return null==Je?`${Fe}`:(Fe&&"object"==typeof Fe&&(Fe="Object"),`${Je}: ${Fe}`.slice(0,50))}let Xe=(()=>{class Je extends D{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Re){this._compareWith=Re}writeValue(Re){this.value=Re;const Jt=lt(this._getOptionId(Re),Re);this.setProperty("value",Jt)}registerOnChange(Re){this.onChange=At=>{this.value=this._getOptionValue(At),Re(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(Re){for(const At of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(At),Re))return At;return null}_getOptionValue(Re){const At=function Vt(Je){return Je.split(":")[0]}(Re);return this._optionMap.has(At)?this._optionMap.get(At):Re}}return Je.\u0275fac=function(){let Fe;return function(At){return(Fe||(Fe=e.n5z(Je)))(At||Je)}}(),Je.\u0275dir=e.lG2({type:Je,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Re,At){1&Re&&e.NdJ("change",function(_n){return At.onChange(_n.target.value)})("blur",function(){return At.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([qi]),e.qOj]}),Je})(),yt=(()=>{class Je{constructor(Re,At,Jt){this._element=Re,this._renderer=At,this._select=Jt,this._select&&(this.id=this._select._registerOption())}set ngValue(Re){null!=this._select&&(this._select._optionMap.set(this.id,Re),this._setElementValue(lt(this.id,Re)),this._select.writeValue(this._select.value))}set value(Re){this._setElementValue(Re),this._select&&this._select.writeValue(this._select.value)}_setElementValue(Re){this._renderer.setProperty(this._element.nativeElement,"value",Re)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Je.\u0275fac=function(Re){return new(Re||Je)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Xe,9))},Je.\u0275dir=e.lG2({type:Je,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Je})();const Wt={provide:T,useExisting:(0,e.Gpc)(()=>oi),multi:!0};function dn(Je,Fe){return null==Je?`${Fe}`:("string"==typeof Fe&&(Fe=`'${Fe}'`),Fe&&"object"==typeof Fe&&(Fe="Object"),`${Je}: ${Fe}`.slice(0,50))}let oi=(()=>{class Je extends D{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Re){this._compareWith=Re}writeValue(Re){let At;if(this.value=Re,Array.isArray(Re)){const Jt=Re.map(_n=>this._getOptionId(_n));At=(_n,pi)=>{_n._setSelected(Jt.indexOf(pi.toString())>-1)}}else At=(Jt,_n)=>{Jt._setSelected(!1)};this._optionMap.forEach(At)}registerOnChange(Re){this.onChange=At=>{const Jt=[],_n=At.selectedOptions;if(void 0!==_n){const pi=_n;for(let ai=0;ai{class Je{constructor(Re,At,Jt){this._element=Re,this._renderer=At,this._select=Jt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(Re){null!=this._select&&(this._value=Re,this._setElementValue(dn(this.id,Re)),this._select.writeValue(this._select.value))}set value(Re){this._select?(this._value=Re,this._setElementValue(dn(this.id,Re)),this._select.writeValue(this._select.value)):this._setElementValue(Re)}_setElementValue(Re){this._renderer.setProperty(this._element.nativeElement,"value",Re)}_setSelected(Re){this._renderer.setProperty(this._element.nativeElement,"selected",Re)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Je.\u0275fac=function(Re){return new(Re||Je)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(oi,9))},Je.\u0275dir=e.lG2({type:Je,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Je})(),ni=(()=>{class Je{constructor(){this._validator=Ve}ngOnChanges(Re){if(this.inputName in Re){const At=this.normalizeInput(Re[this.inputName].currentValue);this._enabled=this.enabled(At),this._validator=this._enabled?this.createValidator(At):Ve,this._onChange&&this._onChange()}}validate(Re){return this._validator(Re)}registerOnValidatorChange(Re){this._onChange=Re}enabled(Re){return null!=Re}}return Je.\u0275fac=function(Re){return new(Re||Je)},Je.\u0275dir=e.lG2({type:Je,features:[e.TTD]}),Je})();const Ua={provide:Oe,useExisting:(0,e.Gpc)(()=>dr),multi:!0},zr={provide:Oe,useExisting:(0,e.Gpc)(()=>gi),multi:!0};let dr=(()=>{class Je extends ni{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.D6c,this.createValidator=Re=>V}enabled(Re){return Re}}return Je.\u0275fac=function(){let Fe;return function(At){return(Fe||(Fe=e.n5z(Je)))(At||Je)}}(),Je.\u0275dir=e.lG2({type:Je,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Re,At){2&Re&&e.uIk("required",At._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([Ua]),e.qOj]}),Je})(),gi=(()=>{class Je extends dr{constructor(){super(...arguments),this.createValidator=Re=>X}}return Je.\u0275fac=function(){let Fe;return function(At){return(Fe||(Fe=e.n5z(Je)))(At||Je)}}(),Je.\u0275dir=e.lG2({type:Je,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Re,At){2&Re&&e.uIk("required",At._enabled?"":null)},features:[e._Bn([zr]),e.qOj]}),Je})();const zt={provide:Oe,useExisting:(0,e.Gpc)(()=>En),multi:!0};let En=(()=>{class Je extends ni{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=Re=>Re,this.createValidator=Re=>ye(Re)}}return Je.\u0275fac=function(){let Fe;return function(At){return(Fe||(Fe=e.n5z(Je)))(At||Je)}}(),Je.\u0275dir=e.lG2({type:Je,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Re,At){2&Re&&e.uIk("pattern",At._enabled?At.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([zt]),e.qOj]}),Je})(),Gn=(()=>{class Je{}return Je.\u0275fac=function(Re){return new(Re||Je)},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({imports:[kr]}),Je})(),Ti=(()=>{class Je{}return Je.\u0275fac=function(Re){return new(Re||Je)},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({imports:[Gn]}),Je})(),ei=(()=>{class Je{static withConfig(Re){return{ngModule:Je,providers:[{provide:en,useValue:Re.warnOnNgModelWithFormControl}]}}}return Je.\u0275fac=function(Re){return new(Re||Je)},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({imports:[Gn]}),Je})();class vi extends ke{constructor(Fe,Re,At){super(De(Re),ie(At,Re)),this.controls=Fe,this._initObservables(),this._setUpdateStrategy(Re),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Fe){return this.controls[this._adjustIndex(Fe)]}push(Fe,Re={}){this.controls.push(Fe),this._registerControl(Fe),this.updateValueAndValidity({emitEvent:Re.emitEvent}),this._onCollectionChange()}insert(Fe,Re,At={}){this.controls.splice(Fe,0,Re),this._registerControl(Re),this.updateValueAndValidity({emitEvent:At.emitEvent})}removeAt(Fe,Re={}){let At=this._adjustIndex(Fe);At<0&&(At=0),this.controls[At]&&this.controls[At]._registerOnCollectionChange(()=>{}),this.controls.splice(At,1),this.updateValueAndValidity({emitEvent:Re.emitEvent})}setControl(Fe,Re,At={}){let Jt=this._adjustIndex(Fe);Jt<0&&(Jt=0),this.controls[Jt]&&this.controls[Jt]._registerOnCollectionChange(()=>{}),this.controls.splice(Jt,1),Re&&(this.controls.splice(Jt,0,Re),this._registerControl(Re)),this.updateValueAndValidity({emitEvent:At.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Fe,Re={}){Et(this,0,Fe),Fe.forEach((At,Jt)=>{Qe(this,!1,Jt),this.at(Jt).setValue(At,{onlySelf:!0,emitEvent:Re.emitEvent})}),this.updateValueAndValidity(Re)}patchValue(Fe,Re={}){null!=Fe&&(Fe.forEach((At,Jt)=>{this.at(Jt)&&this.at(Jt).patchValue(At,{onlySelf:!0,emitEvent:Re.emitEvent})}),this.updateValueAndValidity(Re))}reset(Fe=[],Re={}){this._forEachChild((At,Jt)=>{At.reset(Fe[Jt],{onlySelf:!0,emitEvent:Re.emitEvent})}),this._updatePristine(Re),this._updateTouched(Re),this.updateValueAndValidity(Re)}getRawValue(){return this.controls.map(Fe=>Fe.getRawValue())}clear(Fe={}){this.controls.length<1||(this._forEachChild(Re=>Re._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Fe.emitEvent}))}_adjustIndex(Fe){return Fe<0?Fe+this.length:Fe}_syncPendingControls(){let Fe=this.controls.reduce((Re,At)=>!!At._syncPendingControls()||Re,!1);return Fe&&this.updateValueAndValidity({onlySelf:!0}),Fe}_forEachChild(Fe){this.controls.forEach((Re,At)=>{Fe(Re,At)})}_updateValue(){this.value=this.controls.filter(Fe=>Fe.enabled||this.disabled).map(Fe=>Fe.value)}_anyControls(Fe){return this.controls.some(Re=>Re.enabled&&Fe(Re))}_setUpControls(){this._forEachChild(Fe=>this._registerControl(Fe))}_allControlsDisabled(){for(const Fe of this.controls)if(Fe.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Fe){Fe.setParent(this),Fe._registerOnCollectionChange(this._onCollectionChange)}_find(Fe){var Re;return null!==(Re=this.at(Fe))&&void 0!==Re?Re:null}}function Ki(Je){return!!Je&&(void 0!==Je.asyncValidators||void 0!==Je.validators||void 0!==Je.updateOn)}let ji=(()=>{class Je{constructor(){this.useNonNullable=!1}get nonNullable(){const Re=new Je;return Re.useNonNullable=!0,Re}group(Re,At=null){const Jt=this._reduceControls(Re);let _n={};return Ki(At)?_n=At:null!==At&&(_n.validators=At.validator,_n.asyncValidators=At.asyncValidator),new at(Jt,_n)}control(Re,At,Jt){let _n={};return this.useNonNullable?(Ki(At)?_n=At:(_n.validators=At,_n.asyncValidators=Jt),new Ln(Re,{..._n,nonNullable:!0})):new Ln(Re,At,Jt)}array(Re,At,Jt){const _n=Re.map(pi=>this._createControl(pi));return new vi(_n,At,Jt)}_reduceControls(Re){const At={};return Object.keys(Re).forEach(Jt=>{At[Jt]=this._createControl(Re[Jt])}),At}_createControl(Re){return Re instanceof Ln||Re instanceof ke?Re:Array.isArray(Re)?this.control(Re[0],Re.length>1?Re[1]:null,Re.length>2?Re[2]:null):this.control(Re)}}return Je.\u0275fac=function(Re){return new(Re||Je)},Je.\u0275prov=e.Yz7({token:Je,factory:Je.\u0275fac,providedIn:ei}),Je})(),Tr=(()=>{class Je extends ji{group(Re,At=null){return super.group(Re,At)}control(Re,At,Jt){return super.control(Re,At,Jt)}array(Re,At,Jt){return super.array(Re,At,Jt)}}return Je.\u0275fac=function(){let Fe;return function(At){return(Fe||(Fe=e.n5z(Je)))(At||Je)}}(),Je.\u0275prov=e.Yz7({token:Je,factory:Je.\u0275fac,providedIn:ei}),Je})()},47957:($e,he,p)=>{"use strict";p.d(he,{Bb:()=>vt,XC:()=>k,ZL:()=>tt});var e=p(12687),A=p(21281),C=p(83353),M=p(94650),f=p(3238),b=p(50727),D=p(77579),T=p(49770),R=p(56451),B=p(39646),w=p(54968),H=p(36895),O=p(98184),J=p(67376),ne=p(40445),G=p(29521),se=p(84080),Oe=p(24006),_e=p(59549),Be=p(68675),E=p(63900),z=p(95698),F=p(39300),V=p(54004),X=p(18505),q=p(91005);const pe=["panel"];function le(ee,nt){if(1&ee&&(M.TgZ(0,"div",0,1),M.Hsn(2),M.qZA()),2&ee){const Ae=nt.id,Ee=M.oxw();M.Q6J("id",Ee.id)("ngClass",Ee._classList),M.uIk("aria-label",Ee.ariaLabel||null)("aria-labelledby",Ee._getPanelAriaLabelledby(Ae))}}const ye=["*"];let Ve=0;class ve{constructor(nt,Ae){this.source=nt,this.option=Ae}}const Ke=(0,f.Kr)(class{}),Ue=new M.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function oe(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let ce=(()=>{class ee extends Ke{constructor(Ae,Ee,ge,we){super(),this._changeDetectorRef=Ae,this._elementRef=Ee,this._activeOptionChanges=b.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new M.vpe,this.opened=new M.vpe,this.closed=new M.vpe,this.optionActivated=new M.vpe,this._classList={},this.id="mat-autocomplete-"+Ve++,this.inertGroups=we?.SAFARI||!1,this._autoActiveFirstOption=!!ge.autoActiveFirstOption,this._autoSelectActiveOption=!!ge.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Ae){this._autoActiveFirstOption=(0,A.Ig)(Ae)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Ae){this._autoSelectActiveOption=(0,A.Ig)(Ae)}set classList(Ae){this._classList=Ae&&Ae.length?(0,A.du)(Ae).reduce((Ee,ge)=>(Ee[ge]=!0,Ee),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Ae=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Ae]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(Ae){this.panel&&(this.panel.nativeElement.scrollTop=Ae)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Ae){const Ee=new ve(this,Ae);this.optionSelected.emit(Ee)}_getPanelAriaLabelledby(Ae){return this.ariaLabel?null:this.ariaLabelledby?(Ae?Ae+" ":"")+this.ariaLabelledby:Ae}_setVisibilityClasses(Ae){Ae[this._visibleClass]=this.showPanel,Ae[this._hiddenClass]=!this.showPanel}}return ee.\u0275fac=function(Ae){return new(Ae||ee)(M.Y36(M.sBO),M.Y36(M.SBq),M.Y36(Ue),M.Y36(C.t4))},ee.\u0275dir=M.lG2({type:ee,viewQuery:function(Ae,Ee){if(1&Ae&&(M.Gf(M.Rgc,7),M.Gf(pe,5)),2&Ae){let ge;M.iGM(ge=M.CRH())&&(Ee.template=ge.first),M.iGM(ge=M.CRH())&&(Ee.panel=ge.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[M.qOj]}),ee})(),k=(()=>{class ee extends ce{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return ee.\u0275fac=function(){let nt;return function(Ee){return(nt||(nt=M.n5z(ee)))(Ee||ee)}}(),ee.\u0275cmp=M.Xpm({type:ee,selectors:[["mat-autocomplete"]],contentQueries:function(Ae,Ee,ge){if(1&Ae&&(M.Suo(ge,f.K7,5),M.Suo(ge,f.ey,5)),2&Ae){let we;M.iGM(we=M.CRH())&&(Ee.optionGroups=we),M.iGM(we=M.CRH())&&(Ee.options=we)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[M._Bn([{provide:f.HF,useExisting:ee}]),M.qOj],ngContentSelectors:ye,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(Ae,Ee){1&Ae&&(M.F$t(),M.YNc(0,le,3,4,"ng-template"))},dependencies:[H.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),ee})();const W=new M.OlP("mat-autocomplete-scroll-strategy"),Me={provide:W,deps:[O.aV],useFactory:function ue(ee){return()=>ee.scrollStrategies.reposition()}},ot={provide:Oe.JU,useExisting:(0,M.Gpc)(()=>tt),multi:!0};let ut=(()=>{class ee{constructor(Ae,Ee,ge,we,Ne,Ce,fe,r,u,g,v){this._element=Ae,this._overlay=Ee,this._viewContainerRef=ge,this._zone=we,this._changeDetectorRef=Ne,this._dir=fe,this._formField=r,this._document=u,this._viewportRuler=g,this._defaults=v,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=b.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new D.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,T.P)(()=>{const h=this.autocomplete?this.autocomplete.options:null;return h?h.changes.pipe((0,Be.O)(h),(0,E.w)(()=>(0,R.T)(...h.map(a=>a.onSelectionChange)))):this._zone.onStable.pipe((0,z.q)(1),(0,E.w)(()=>this.optionSelections))}),this._scrollStrategy=Ce}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Ae){this._autocompleteDisabled=(0,A.Ig)(Ae)}ngAfterViewInit(){const Ae=this._getWindow();typeof Ae<"u"&&this._zone.runOutsideAngular(()=>Ae.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Ae){Ae.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Ae=this._getWindow();typeof Ae<"u"&&Ae.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,R.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,F.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,F.h)(()=>this._overlayAttached)):(0,B.of)()).pipe((0,V.U)(Ae=>Ae instanceof f.rN?Ae:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,R.T)((0,w.R)(this._document,"click"),(0,w.R)(this._document,"auxclick"),(0,w.R)(this._document,"touchend")).pipe((0,F.h)(Ae=>{const Ee=(0,C.sA)(Ae),ge=this._formField?this._formField._elementRef.nativeElement:null,we=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&Ee!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!ge||!ge.contains(Ee))&&(!we||!we.contains(Ee))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(Ee)}))}writeValue(Ae){Promise.resolve(null).then(()=>this._assignOptionValue(Ae))}registerOnChange(Ae){this._onChange=Ae}registerOnTouched(Ae){this._onTouched=Ae}setDisabledState(Ae){this._element.nativeElement.disabled=Ae}_handleKeydown(Ae){const Ee=Ae.keyCode,ge=(0,G.Vb)(Ae);if(Ee===G.hY&&!ge&&Ae.preventDefault(),this.activeOption&&Ee===G.K5&&this.panelOpen&&!ge)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Ae.preventDefault();else if(this.autocomplete){const we=this.autocomplete._keyManager.activeItem,Ne=Ee===G.LH||Ee===G.JH;Ee===G.Mf||Ne&&!ge&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Ae):Ne&&this._canOpen()&&this.openPanel(),(Ne||this.autocomplete._keyManager.activeItem!==we)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(Ae){let Ee=Ae.target,ge=Ee.value;"number"===Ee.type&&(ge=""==ge?null:parseFloat(ge)),this._previousValue!==ge&&(this._previousValue=ge,this._pendingAutoselectedOption=null,this._onChange(ge),this._canOpen()&&this._document.activeElement===Ae.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(Ae=!1){this._formField&&"auto"===this._formField.floatLabel&&(Ae?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Ae=this._zone.onStable.pipe((0,z.q)(1)),Ee=this.autocomplete.options.changes.pipe((0,X.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,q.g)(0));return(0,R.T)(Ae,Ee).pipe((0,E.w)(()=>(this._zone.run(()=>{const ge=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),ge!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,z.q)(1)).subscribe(ge=>this._setValueAndClose(ge))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Ae){const Ee=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Ae):Ae;this._updateNativeInputValue(Ee??"")}_updateNativeInputValue(Ae){this._formField?this._formField._control.value=Ae:this._element.nativeElement.value=Ae,this._previousValue=Ae}_setValueAndClose(Ae){const Ee=Ae?Ae.source:this._pendingAutoselectedOption;Ee&&(this._clearPreviousSelectedOption(Ee),this._assignOptionValue(Ee.value),this._onChange(Ee.value),this.autocomplete._emitSelectEvent(Ee),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Ae){this.autocomplete.options.forEach(Ee=>{Ee!==Ae&&Ee.selected&&Ee.deselect()})}_attachOverlay(){let Ae=this._overlayRef;var Ee;Ae?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ae.updateSize({width:this._getPanelWidth()})):(this._portal=new se.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(Ee=this._formField)||void 0===Ee?void 0:Ee.getLabelId()}),Ae=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ae,this._handleOverlayEvents(Ae),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ae&&Ae.updateSize({width:this._getPanelWidth()})})),Ae&&!Ae.hasAttached()&&(Ae.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const ge=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&ge!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var Ae;return new O.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(Ae=this._defaults)||void 0===Ae?void 0:Ae.overlayPanelClass})}_getOverlayPosition(){const Ae=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Ae),this._positionStrategy=Ae,Ae}_setStrategyPositions(Ae){const Ee=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ge=this._aboveClass,we=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:ge},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:ge}];let Ne;Ne="above"===this.position?we:"below"===this.position?Ee:[...Ee,...we],Ae.withPositions(Ne)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const Ae=this.autocomplete;Ae.autoActiveFirstOption?Ae._keyManager.setFirstItemActive():Ae._keyManager.setActiveItem(-1)}_canOpen(){const Ae=this._element.nativeElement;return!Ae.readOnly&&!Ae.disabled&&!this._autocompleteDisabled}_getWindow(){var Ae;return(null===(Ae=this._document)||void 0===Ae?void 0:Ae.defaultView)||window}_scrollToOption(Ae){const Ee=this.autocomplete,ge=(0,f.CB)(Ae,Ee.options,Ee.optionGroups);if(0===Ae&&1===ge)Ee._setScrollTop(0);else if(Ee.panel){const we=Ee.options.toArray()[Ae];if(we){const Ne=we._getHostElement(),Ce=(0,f.jH)(Ne.offsetTop,Ne.offsetHeight,Ee._getScrollTop(),Ee.panel.nativeElement.offsetHeight);Ee._setScrollTop(Ce)}}}_handleOverlayEvents(Ae){Ae.keydownEvents().subscribe(Ee=>{var ge;(Ee.keyCode===G.hY&&!(0,G.Vb)(Ee)||Ee.keyCode===G.LH&&(0,G.Vb)(Ee,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(null!==(ge=this._valueBeforeAutoSelection)&&void 0!==ge?ge:""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),Ee.stopPropagation(),Ee.preventDefault())}),Ae.outsidePointerEvents().subscribe()}}return ee.\u0275fac=function(Ae){return new(Ae||ee)(M.Y36(M.SBq),M.Y36(O.aV),M.Y36(M.s_b),M.Y36(M.R0b),M.Y36(M.sBO),M.Y36(W),M.Y36(ne.Is,8),M.Y36(_e.G_,9),M.Y36(H.K0,8),M.Y36(J.rL),M.Y36(Ue,8))},ee.\u0275dir=M.lG2({type:ee,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[M.TTD]}),ee})(),tt=(()=>{class ee extends ut{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return ee.\u0275fac=function(){let nt;return function(Ee){return(nt||(nt=M.n5z(ee)))(Ee||ee)}}(),ee.\u0275dir=M.lG2({type:ee,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(Ae,Ee){1&Ae&&M.NdJ("focusin",function(){return Ee._handleFocus()})("blur",function(){return Ee._onTouched()})("input",function(we){return Ee._handleInput(we)})("keydown",function(we){return Ee._handleKeydown(we)})("click",function(){return Ee._handleClick()}),2&Ae&&M.uIk("autocomplete",Ee.autocompleteAttribute)("role",Ee.autocompleteDisabled?null:"combobox")("aria-autocomplete",Ee.autocompleteDisabled?null:"list")("aria-activedescendant",Ee.panelOpen&&Ee.activeOption?Ee.activeOption.id:null)("aria-expanded",Ee.autocompleteDisabled?null:Ee.panelOpen.toString())("aria-owns",Ee.autocompleteDisabled||!Ee.panelOpen||null==Ee.autocomplete?null:Ee.autocomplete.id)("aria-haspopup",Ee.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[M._Bn([ot]),M.qOj]}),ee})(),vt=(()=>{class ee{}return ee.\u0275fac=function(Ae){return new(Ae||ee)},ee.\u0275mod=M.oAB({type:ee}),ee.\u0275inj=M.cJS({providers:[Me],imports:[O.U8,f.Ng,f.BQ,H.ez,J.ZD,f.Ng,f.BQ]}),ee})()},42673:($e,he,p)=>{"use strict";p.d(he,{g:()=>R,k:()=>T});var e=p(94650),A=p(3238),C=p(12687),M=p(21281);let f=0;const b=(0,A.Id)(class{}),D="mat-badge-content";let T=(()=>{class B extends b{constructor(H,O,J,ne,G){super(),this._ngZone=H,this._elementRef=O,this._ariaDescriber=J,this._renderer=ne,this._animationMode=G,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=f++,this._isInitialized=!1}get color(){return this._color}set color(H){this._setColor(H),this._color=H}get overlap(){return this._overlap}set overlap(H){this._overlap=(0,M.Ig)(H)}get content(){return this._content}set content(H){this._updateRenderedContent(H)}get description(){return this._description}set description(H){this._updateHostAriaDescription(H)}get hidden(){return this._hidden}set hidden(H){this._hidden=(0,M.Ig)(H)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const H=this._renderer.createElement("span"),O="mat-badge-active";return H.setAttribute("id",`mat-badge-content-${this._id}`),H.setAttribute("aria-hidden","true"),H.classList.add(D),"NoopAnimations"===this._animationMode&&H.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(H),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{H.classList.add(O)})}):H.classList.add(O),H}_updateRenderedContent(H){const O=`${H??""}`.trim();this._isInitialized&&O&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=O),this._content=O}_updateHostAriaDescription(H){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),H&&this._ariaDescriber.describe(this._elementRef.nativeElement,H),this._description=H}_setColor(H){const O=this._elementRef.nativeElement.classList;O.remove(`mat-badge-${this._color}`),H&&O.add(`mat-badge-${H}`)}_clearExistingBadges(){const H=this._elementRef.nativeElement.querySelectorAll(`:scope > .${D}`);for(const O of Array.from(H))O!==this._badgeElement&&O.remove()}}return B.\u0275fac=function(H){return new(H||B)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(C.$s),e.Y36(e.Qsj),e.Y36(e.QbO,8))},B.\u0275dir=e.lG2({type:B,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(H,O){2&H&&e.ekj("mat-badge-overlap",O.overlap)("mat-badge-above",O.isAbove())("mat-badge-below",!O.isAbove())("mat-badge-before",!O.isAfter())("mat-badge-after",O.isAfter())("mat-badge-small","small"===O.size)("mat-badge-medium","medium"===O.size)("mat-badge-large","large"===O.size)("mat-badge-hidden",O.hidden||!O.content)("mat-badge-disabled",O.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]}),B})(),R=(()=>{class B{}return B.\u0275fac=function(H){return new(H||B)},B.\u0275mod=e.oAB({type:B}),B.\u0275inj=e.cJS({imports:[C.rt,A.BQ,A.BQ]}),B})()},4859:($e,he,p)=>{"use strict";p.d(he,{lW:()=>B,ot:()=>H});var e=p(94650),A=p(3238),C=p(12687);const M=["mat-button",""],f=["*"],T=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],R=(0,A.pj)((0,A.Id)((0,A.Kr)(class{constructor(O){this._elementRef=O}})));let B=(()=>{class O extends R{constructor(ne,G,se){super(ne),this._focusMonitor=G,this._animationMode=se,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Oe of T)this._hasHostAttributes(Oe)&&this._getHostElement().classList.add(Oe);ne.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(ne,G){ne?this._focusMonitor.focusVia(this._getHostElement(),ne,G):this._getHostElement().focus(G)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...ne){return ne.some(G=>this._getHostElement().hasAttribute(G))}}return O.\u0275fac=function(ne){return new(ne||O)(e.Y36(e.SBq),e.Y36(C.tE),e.Y36(e.QbO,8))},O.\u0275cmp=e.Xpm({type:O,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(ne,G){if(1&ne&&e.Gf(A.wG,5),2&ne){let se;e.iGM(se=e.CRH())&&(G.ripple=se.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(ne,G){2&ne&&(e.uIk("disabled",G.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===G._animationMode)("mat-button-disabled",G.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:M,ngContentSelectors:f,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(ne,G){1&ne&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1)(3,"span",2)),2&ne&&(e.xp6(2),e.ekj("mat-button-ripple-round",G.isRoundButton||G.isIconButton),e.Q6J("matRippleDisabled",G._isRippleDisabled())("matRippleCentered",G.isIconButton)("matRippleTrigger",G._getHostElement()))},dependencies:[A.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),O})(),H=(()=>{class O{}return O.\u0275fac=function(ne){return new(ne||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({imports:[A.si,A.BQ,A.BQ]}),O})()},73546:($e,he,p)=>{"use strict";p.d(he,{$j:()=>w,QW:()=>F,a8:()=>Be,dk:()=>E,dn:()=>R,kc:()=>_e,n5:()=>B});var e=p(94650),A=p(3238);const C=["*",[["mat-card-footer"]]],M=["*","mat-card-footer"],f=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],b=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let R=(()=>{class V{}return V.\u0275fac=function(q){return new(q||V)},V.\u0275dir=e.lG2({type:V,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),V})(),B=(()=>{class V{}return V.\u0275fac=function(q){return new(q||V)},V.\u0275dir=e.lG2({type:V,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),V})(),w=(()=>{class V{}return V.\u0275fac=function(q){return new(q||V)},V.\u0275dir=e.lG2({type:V,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),V})(),_e=(()=>{class V{}return V.\u0275fac=function(q){return new(q||V)},V.\u0275dir=e.lG2({type:V,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),V})(),Be=(()=>{class V{constructor(q){this._animationMode=q}}return V.\u0275fac=function(q){return new(q||V)(e.Y36(e.QbO,8))},V.\u0275cmp=e.Xpm({type:V,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(q,pe){2&q&&e.ekj("_mat-animation-noopable","NoopAnimations"===pe._animationMode)},exportAs:["matCard"],ngContentSelectors:M,decls:2,vars:0,template:function(q,pe){1&q&&(e.F$t(C),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),V})(),E=(()=>{class V{}return V.\u0275fac=function(q){return new(q||V)},V.\u0275cmp=e.Xpm({type:V,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:b,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(q,pe){1&q&&(e.F$t(f),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),V})(),F=(()=>{class V{}return V.\u0275fac=function(q){return new(q||V)},V.\u0275mod=e.oAB({type:V}),V.\u0275inj=e.cJS({imports:[A.BQ,A.BQ]}),V})()},56709:($e,he,p)=>{"use strict";p.d(he,{oG:()=>_e,p9:()=>F});var e=p(12687),A=p(21281),C=p(94650),M=p(24006),f=p(3238),b=p(49643);const D=["input"],T=["label"],R=function(V){return{enterDuration:V}},B=["*"],w=new C.OlP("mat-checkbox-default-options",{providedIn:"root",factory:H});function H(){return{color:"accent",clickAction:"check-indeterminate"}}let O=0;const J=H(),ne={provide:M.JU,useExisting:(0,C.Gpc)(()=>_e),multi:!0};class G{}const se=(0,f.sb)((0,f.pj)((0,f.Kr)((0,f.Id)(class{constructor(V){this._elementRef=V}}))));let Oe=(()=>{class V extends se{constructor(q,pe,le,ye,Ve,ve,Ke){super(pe),this._changeDetectorRef=le,this._ngZone=ye,this._animationMode=ve,this._options=Ke,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new C.vpe,this.indeterminateChange=new C.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||J,this.color=this.defaultColor=this._options.color||J.color,this.tabIndex=parseInt(Ve)||0,this.id=this._uniqueId=`${q}${++O}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(q){this._required=(0,A.Ig)(q)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(q){const pe=(0,A.Ig)(q);pe!=this.checked&&(this._checked=pe,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(q){const pe=(0,A.Ig)(q);pe!==this.disabled&&(this._disabled=pe,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(q){const pe=q!=this._indeterminate;this._indeterminate=(0,A.Ig)(q),pe&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(q){this.checked=!!q}registerOnChange(q){this._controlValueAccessorChangeFn=q}registerOnTouched(q){this._onTouched=q}setDisabledState(q){this.disabled=q}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(q){let pe=this._currentCheckState,le=this._getAnimationTargetElement();if(pe!==q&&le&&(this._currentAnimationClass&&le.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(pe,q),this._currentCheckState=q,this._currentAnimationClass.length>0)){le.classList.add(this._currentAnimationClass);const ye=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{le.classList.remove(ye)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){var q;const pe=null===(q=this._options)||void 0===q?void 0:q.clickAction;this.disabled||"noop"===pe?!this.disabled&&"noop"===pe&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==pe&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(q){q.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(q,pe){if("NoopAnimations"===this._animationMode)return"";switch(q){case 0:if(1===pe)return this._animationClasses.uncheckedToChecked;if(3==pe)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===pe?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===pe?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===pe?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(q){const pe=this._inputElement;pe&&(pe.nativeElement.indeterminate=q)}}return V.\u0275fac=function(q){C.$Z()},V.\u0275dir=C.lG2({type:V,viewQuery:function(q,pe){if(1&q&&(C.Gf(D,5),C.Gf(T,5),C.Gf(f.wG,5)),2&q){let le;C.iGM(le=C.CRH())&&(pe._inputElement=le.first),C.iGM(le=C.CRH())&&(pe._labelElement=le.first),C.iGM(le=C.CRH())&&(pe.ripple=le.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[C.qOj]}),V})(),_e=(()=>{class V extends Oe{constructor(q,pe,le,ye,Ve,ve,Ke){super("mat-checkbox-",q,pe,ye,Ve,ve,Ke),this._focusMonitor=le,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(q){const pe=new G;return pe.source=this,pe.checked=q,pe}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(q=>{q||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(q){q.stopPropagation(),super._handleInputClick()}focus(q,pe){q?this._focusMonitor.focusVia(this._inputElement,q,pe):this._inputElement.nativeElement.focus(pe)}}return V.\u0275fac=function(q){return new(q||V)(C.Y36(C.SBq),C.Y36(C.sBO),C.Y36(e.tE),C.Y36(C.R0b),C.$8M("tabindex"),C.Y36(C.QbO,8),C.Y36(w,8))},V.\u0275cmp=C.Xpm({type:V,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(q,pe){2&q&&(C.Ikx("id",pe.id),C.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),C.ekj("mat-checkbox-indeterminate",pe.indeterminate)("mat-checkbox-checked",pe.checked)("mat-checkbox-disabled",pe.disabled)("mat-checkbox-label-before","before"==pe.labelPosition)("_mat-animation-noopable","NoopAnimations"===pe._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[C._Bn([ne]),C.qOj],ngContentSelectors:B,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(q,pe){if(1&q&&(C.F$t(),C.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),C.NdJ("change",function(ye){return pe._onInteractionEvent(ye)})("click",function(ye){return pe._onInputClick(ye)}),C.qZA(),C.TgZ(5,"span",5),C._UZ(6,"span",6),C.qZA(),C._UZ(7,"span",7),C.TgZ(8,"span",8),C.O4$(),C.TgZ(9,"svg",9),C._UZ(10,"path",10),C.qZA(),C.kcU(),C._UZ(11,"span",11),C.qZA()(),C.TgZ(12,"span",12,13),C.NdJ("cdkObserveContent",function(){return pe._onLabelTextChange()}),C.TgZ(14,"span",14),C._uU(15,"\xa0"),C.qZA(),C.Hsn(16),C.qZA()()),2&q){const le=C.MAs(1),ye=C.MAs(13);C.uIk("for",pe.inputId),C.xp6(2),C.ekj("mat-checkbox-inner-container-no-side-margin",!ye.textContent||!ye.textContent.trim()),C.xp6(1),C.Q6J("id",pe.inputId)("required",pe.required)("checked",pe.checked)("disabled",pe.disabled)("tabIndex",pe.tabIndex),C.uIk("value",pe.value)("name",pe.name)("aria-label",pe.ariaLabel||null)("aria-labelledby",pe.ariaLabelledby)("aria-checked",pe._getAriaChecked())("aria-describedby",pe.ariaDescribedby),C.xp6(2),C.Q6J("matRippleTrigger",le)("matRippleDisabled",pe._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",C.VKq(19,R,"NoopAnimations"===pe._animationMode?0:150))}},dependencies:[f.wG,b.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),V})(),z=(()=>{class V{}return V.\u0275fac=function(q){return new(q||V)},V.\u0275mod=C.oAB({type:V}),V.\u0275inj=C.cJS({}),V})(),F=(()=>{class V{}return V.\u0275fac=function(q){return new(q||V)},V.\u0275mod=C.oAB({type:V}),V.\u0275inj=C.cJS({imports:[f.si,f.BQ,b.Q8,z,f.BQ,z]}),V})()},77331:($e,he,p)=>{"use strict";p.d(he,{HS:()=>q,Hi:()=>k,oH:()=>oe,qn:()=>Ke});var e=p(29521),A=p(94650),C=p(3238),M=p(21281),f=p(83353),b=p(36895),D=p(77579),T=p(56451),R=p(95698),B=p(82722),w=p(68675),H=p(12687),O=p(40445),J=p(95017),ne=p(24006),G=p(59549);const se=["*"],_e=new A.OlP("MatChipRemove"),Be=new A.OlP("MatChipAvatar"),E=new A.OlP("MatChipTrailingIcon");class z{constructor(be){this._elementRef=be}}const F=(0,C.sb)((0,C.pj)((0,C.Kr)(z),"primary"),-1);let q=(()=>{class N extends F{constructor(W,ue,Me,ot,je,ut,tt,vt){super(W),this._ngZone=ue,this._changeDetectorRef=je,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new D.x,this._onBlur=new D.x,this.selectionChange=new A.vpe,this.destroyed=new A.vpe,this.removed=new A.vpe,this._addHostClassName(),this._chipRippleTarget=ut.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new C.IR(this,ue,this._chipRippleTarget,Me),this._chipRipple.setupTriggerEvents(W),this.rippleConfig=ot||{},this._animationsDisabled="NoopAnimations"===tt,this.tabIndex=null!=vt&&parseInt(vt)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(W){const ue=(0,M.Ig)(W);ue!==this._selected&&(this._selected=ue,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(W){this._value=W}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(W){this._selectable=(0,M.Ig)(W)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(W){this._disabled=(0,M.Ig)(W)}get removable(){return this._removable}set removable(W){this._removable=(0,M.Ig)(W)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const W="mat-basic-chip",ue=this._elementRef.nativeElement;ue.hasAttribute(W)||ue.tagName.toLowerCase()===W?ue.classList.add(W):ue.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(W=!1){return this._selected=!this.selected,this._dispatchSelectionChange(W),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(W){this.disabled&&W.preventDefault()}_handleKeydown(W){if(!this.disabled)switch(W.keyCode){case e.yY:case e.ZH:this.remove(),W.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),W.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(W=!1){this.selectionChange.emit({source:this,isUserInput:W,selected:this._selected})}}return N.\u0275fac=function(W){return new(W||N)(A.Y36(A.SBq),A.Y36(A.R0b),A.Y36(f.t4),A.Y36(C.Y2,8),A.Y36(A.sBO),A.Y36(b.K0),A.Y36(A.QbO,8),A.$8M("tabindex"))},N.\u0275dir=A.lG2({type:N,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(W,ue,Me){if(1&W&&(A.Suo(Me,Be,5),A.Suo(Me,E,5),A.Suo(Me,_e,5)),2&W){let ot;A.iGM(ot=A.CRH())&&(ue.avatar=ot.first),A.iGM(ot=A.CRH())&&(ue.trailingIcon=ot.first),A.iGM(ot=A.CRH())&&(ue.removeIcon=ot.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(W,ue){1&W&&A.NdJ("click",function(ot){return ue._handleClick(ot)})("keydown",function(ot){return ue._handleKeydown(ot)})("focus",function(){return ue.focus()})("blur",function(){return ue._blur()}),2&W&&(A.uIk("tabindex",ue.disabled?null:ue.tabIndex)("role",ue.role)("disabled",ue.disabled||null)("aria-disabled",ue.disabled.toString())("aria-selected",ue.ariaSelected),A.ekj("mat-chip-selected",ue.selected)("mat-chip-with-avatar",ue.avatar)("mat-chip-with-trailing-icon",ue.trailingIcon||ue.removeIcon)("mat-chip-disabled",ue.disabled)("_mat-animation-noopable",ue._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[A.qOj]}),N})();const le=new A.OlP("mat-chips-default-options"),ye=(0,C.FD)(class{constructor(N,be,W,ue){this._defaultErrorStateMatcher=N,this._parentForm=be,this._parentFormGroup=W,this.ngControl=ue,this.stateChanges=new D.x}});let Ve=0;class ve{constructor(be,W){this.source=be,this.value=W}}let Ke=(()=>{class N extends ye{constructor(W,ue,Me,ot,je,ut,tt){super(ut,ot,je,tt),this._elementRef=W,this._changeDetectorRef=ue,this._dir=Me,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new D.x,this._uid="mat-chip-list-"+Ve++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(vt,ee)=>vt===ee,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new A.vpe,this.valueChange=new A.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var W,ue;return this.multiple?(null===(W=this._selectionModel)||void 0===W?void 0:W.selected)||[]:null===(ue=this._selectionModel)||void 0===ue?void 0:ue.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(W){this._explicitRole=W}get multiple(){return this._multiple}set multiple(W){this._multiple=(0,M.Ig)(W),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(W){this._compareWith=W,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(W){this.writeValue(W),this._value=W}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var W,ue,Me,ot;return null!==(W=null!==(ue=this._required)&&void 0!==ue?ue:null===(Me=this.ngControl)||void 0===Me||null===(ot=Me.control)||void 0===ot?void 0:ot.hasValidator(ne.kI.required))&&void 0!==W&&W}set required(W){this._required=(0,M.Ig)(W),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(W){this._placeholder=W,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(W){this._disabled=(0,M.Ig)(W),this._syncChipsState()}get selectable(){return this._selectable}set selectable(W){this._selectable=(0,M.Ig)(W),this.chips&&this.chips.forEach(ue=>ue.chipListSelectable=this._selectable)}set tabIndex(W){this._userTabIndex=W,this._tabIndex=W}get chipSelectionChanges(){return(0,T.T)(...this.chips.map(W=>W.selectionChange))}get chipFocusChanges(){return(0,T.T)(...this.chips.map(W=>W._onFocus))}get chipBlurChanges(){return(0,T.T)(...this.chips.map(W=>W._onBlur))}get chipRemoveChanges(){return(0,T.T)(...this.chips.map(W=>W.destroyed))}ngAfterContentInit(){this._keyManager=new H.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,B.R)(this._destroyed)).subscribe(W=>this._keyManager.withHorizontalOrientation(W)),this._keyManager.tabOut.pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,w.O)(null),(0,B.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new J.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(W){this._chipInput=W,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",W.id)}setDescribedByIds(W){W.length?this._elementRef.nativeElement.setAttribute("aria-describedby",W.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(W){this.chips&&this._setSelectionByValue(W,!1)}registerOnChange(W){this._onChange=W}registerOnTouched(W){this._onTouched=W}setDisabledState(W){this.disabled=W,this.stateChanges.next()}onContainerClick(W){this._originatesFromChip(W)||this.focus()}focus(W){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(W),this.stateChanges.next()))}_focusInput(W){this._chipInput&&this._chipInput.focus(W)}_keydown(W){const ue=W.target;ue&&ue.classList.contains("mat-chip")&&(this._keyManager.onKeydown(W),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const W=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(W)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(W){return W>=0&&WMe.deselect()),Array.isArray(W))W.forEach(Me=>this._selectValue(Me,ue)),this._sortValues();else{const Me=this._selectValue(W,ue);Me&&ue&&this._keyManager.setActiveItem(Me)}}_selectValue(W,ue=!0){const Me=this.chips.find(ot=>null!=ot.value&&this._compareWith(ot.value,W));return Me&&(ue?Me.selectViaInteraction():Me.select(),this._selectionModel.select(Me)),Me}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(W){this._selectionModel.clear(),this.chips.forEach(ue=>{ue!==W&&ue.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(W=>{W.selected&&this._selectionModel.select(W)}),this.stateChanges.next())}_propagateChanges(W){let ue=null;ue=Array.isArray(this.selected)?this.selected.map(Me=>Me.value):this.selected?this.selected.value:W,this._value=ue,this.change.emit(new ve(this,ue)),this.valueChange.emit(ue),this._onChange(ue),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(W=>{W.source.selected?this._selectionModel.select(W.source):this._selectionModel.deselect(W.source),this.multiple||this.chips.forEach(ue=>{!this._selectionModel.isSelected(ue)&&ue.selected&&ue.deselect()}),W.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(W=>{let ue=this.chips.toArray().indexOf(W.chip);this._isValidIndex(ue)&&this._keyManager.updateActiveItem(ue),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(W=>{const ue=W.chip,Me=this.chips.toArray().indexOf(W.chip);this._isValidIndex(Me)&&ue._hasFocus&&(this._lastDestroyedChipIndex=Me)})}_originatesFromChip(W){let ue=W.target;for(;ue&&ue!==this._elementRef.nativeElement;){if(ue.classList.contains("mat-chip"))return!0;ue=ue.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(W=>W._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(W=>{W._chipListDisabled=this._disabled,W._chipListMultiple=this.multiple})}}return N.\u0275fac=function(W){return new(W||N)(A.Y36(A.SBq),A.Y36(A.sBO),A.Y36(O.Is,8),A.Y36(ne.F,8),A.Y36(ne.sg,8),A.Y36(C.rD),A.Y36(ne.a5,10))},N.\u0275cmp=A.Xpm({type:N,selectors:[["mat-chip-list"]],contentQueries:function(W,ue,Me){if(1&W&&A.Suo(Me,q,5),2&W){let ot;A.iGM(ot=A.CRH())&&(ue.chips=ot)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(W,ue){1&W&&A.NdJ("focus",function(){return ue.focus()})("blur",function(){return ue._blur()})("keydown",function(ot){return ue._keydown(ot)}),2&W&&(A.Ikx("id",ue._uid),A.uIk("tabindex",ue.disabled?null:ue._tabIndex)("aria-required",ue.role?ue.required:null)("aria-disabled",ue.disabled.toString())("aria-invalid",ue.errorState)("aria-multiselectable",ue.multiple)("role",ue.role)("aria-orientation",ue.ariaOrientation),A.ekj("mat-chip-list-disabled",ue.disabled)("mat-chip-list-invalid",ue.errorState)("mat-chip-list-required",ue.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[A._Bn([{provide:G.Eo,useExisting:N}]),A.qOj],ngContentSelectors:se,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(W,ue){1&W&&(A.F$t(),A.TgZ(0,"div",0),A.Hsn(1),A.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),N})(),Ue=0,oe=(()=>{class N{constructor(W,ue){this._elementRef=W,this._defaultOptions=ue,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new A.vpe,this.placeholder="",this.id="mat-chip-list-input-"+Ue++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(W){W&&(this._chipList=W,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(W){this._addOnBlur=(0,M.Ig)(W)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(W){this._disabled=(0,M.Ig)(W)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(W){if(W){if(W.keyCode===e.Mf&&!(0,e.Vb)(W,"shiftKey")&&this._chipList._allowFocusEscape(),W.keyCode===e.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void W.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(W)}_keyup(W){!this._focusLastChipOnBackspace&&W.keyCode===e.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,W.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(W){!this.inputElement.value&&!!W&&this._chipList._keydown(W),(!W||this._isSeparatorKey(W))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),W?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(W){this.inputElement.focus(W)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(W){return!(0,e.Vb)(W)&&new Set(this.separatorKeyCodes).has(W.keyCode)}}return N.\u0275fac=function(W){return new(W||N)(A.Y36(A.SBq),A.Y36(le))},N.\u0275dir=A.lG2({type:N,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(W,ue){1&W&&A.NdJ("keydown",function(ot){return ue._keydown(ot)})("keyup",function(ot){return ue._keyup(ot)})("blur",function(){return ue._blur()})("focus",function(){return ue._focus()})("input",function(){return ue._onInput()}),2&W&&(A.Ikx("id",ue.id),A.uIk("disabled",ue.disabled||null)("placeholder",ue.placeholder||null)("aria-invalid",ue._chipList&&ue._chipList.ngControl?ue._chipList.ngControl.invalid:null)("aria-required",ue._chipList&&ue._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[A.TTD]}),N})(),k=(()=>{class N{}return N.\u0275fac=function(W){return new(W||N)},N.\u0275mod=A.oAB({type:N}),N.\u0275inj=A.cJS({providers:[C.rD,{provide:le,useValue:{separatorKeyCodes:[e.K5]}}],imports:[C.BQ]}),N})()},3238:($e,he,p)=>{"use strict";p.d(he,{yN:()=>Oe,mZ:()=>_e,_A:()=>oe,rD:()=>je,sG:()=>ce,K7:()=>o,HF:()=>a,Y2:()=>r,BQ:()=>z,X2:()=>ut,uc:()=>ee,XK:()=>Me,ey:()=>S,Ng:()=>ze,rN:()=>d,nP:()=>v,us:()=>h,wG:()=>u,si:()=>g,LF:()=>be,IR:()=>Ce,CB:()=>$,jH:()=>ht,pj:()=>pe,Kr:()=>le,Id:()=>q,FD:()=>Ve,dB:()=>ve,sb:()=>ye,E0:()=>tt});var e=p(94650),A=p(12687),C=p(40445),f=p(36895),b=p(83353),D=p(21281),T=p(69751),R=p(77579),B=p(68675),w=p(29521);function J(et,te){if(1&et&&e._UZ(0,"mat-pseudo-checkbox",4),2&et){const Le=e.oxw();e.Q6J("state",Le.selected?"checked":"unchecked")("disabled",Le.disabled)}}function ne(et,te){if(1&et&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&et){const Le=e.oxw();e.xp6(1),e.hij("(",Le.group.label,")")}}const G=["*"];let Oe=(()=>{class et{}return et.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",et.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",et.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",et.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",et})(),_e=(()=>{class et{}return et.COMPLEX="375ms",et.ENTERING="225ms",et.EXITING="195ms",et})();const E=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function Be(){return!0}});let z=(()=>{class et{constructor(Le,Ie,De){this._sanityChecks=Ie,this._document=De,this._hasDoneGlobalChecks=!1,Le._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Le){return!(0,b.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Le])}}return et.\u0275fac=function(Le){return new(Le||et)(e.LFG(A.qm),e.LFG(E,8),e.LFG(f.K0))},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({imports:[C.vT,C.vT]}),et})();function q(et){return class extends et{constructor(...te){super(...te),this._disabled=!1}get disabled(){return this._disabled}set disabled(te){this._disabled=(0,D.Ig)(te)}}}function pe(et,te){return class extends et{constructor(...Le){super(...Le),this.defaultColor=te,this.color=te}get color(){return this._color}set color(Le){const Ie=Le||this.defaultColor;Ie!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Ie&&this._elementRef.nativeElement.classList.add(`mat-${Ie}`),this._color=Ie)}}}function le(et){return class extends et{constructor(...te){super(...te),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(te){this._disableRipple=(0,D.Ig)(te)}}}function ye(et,te=0){return class extends et{constructor(...Le){super(...Le),this._tabIndex=te,this.defaultTabIndex=te}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Le){this._tabIndex=null!=Le?(0,D.su)(Le):this.defaultTabIndex}}}function Ve(et){return class extends et{constructor(...te){super(...te),this.errorState=!1}updateErrorState(){const te=this.errorState,xe=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);xe!==te&&(this.errorState=xe,this.stateChanges.next())}}}function ve(et){return class extends et{constructor(...te){super(...te),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new T.y(Le=>{this._isInitialized?this._notifySubscriber(Le):this._pendingSubscribers.push(Le)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(te){te.next(),te.complete()}}}const Ke=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Ue(){return(0,e.f3M)(e.soG)}});class oe{constructor(){this._localeChanges=new R.x,this.localeChanges=this._localeChanges}getValidDateOrNull(te){return this.isDateInstance(te)&&this.isValid(te)?te:null}deserialize(te){return null==te||this.isDateInstance(te)&&this.isValid(te)?te:this.invalid()}setLocale(te){this.locale=te,this._localeChanges.next()}compareDate(te,Le){return this.getYear(te)-this.getYear(Le)||this.getMonth(te)-this.getMonth(Le)||this.getDate(te)-this.getDate(Le)}sameDate(te,Le){if(te&&Le){let Ie=this.isValid(te),De=this.isValid(Le);return Ie&&De?!this.compareDate(te,Le):Ie==De}return te==Le}clampDate(te,Le,Ie){return Le&&this.compareDate(te,Le)<0?Le:Ie&&this.compareDate(te,Ie)>0?Ie:te}}const ce=new e.OlP("mat-date-formats"),k=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function N(et,te){const Le=Array(et);for(let Ie=0;Ie{class et extends oe{constructor(Le,Ie){super(),this.useUtcForDisplay=!1,super.setLocale(Le)}getYear(Le){return Le.getFullYear()}getMonth(Le){return Le.getMonth()}getDate(Le){return Le.getDate()}getDayOfWeek(Le){return Le.getDay()}getMonthNames(Le){const Ie=new Intl.DateTimeFormat(this.locale,{month:Le,timeZone:"utc"});return N(12,De=>this._format(Ie,new Date(2017,De,1)))}getDateNames(){const Le=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return N(31,Ie=>this._format(Le,new Date(2017,0,Ie+1)))}getDayOfWeekNames(Le){const Ie=new Intl.DateTimeFormat(this.locale,{weekday:Le,timeZone:"utc"});return N(7,De=>this._format(Ie,new Date(2017,0,De+1)))}getYearName(Le){const Ie=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Ie,Le)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Le){return this.getDate(this._createDateWithOverflow(this.getYear(Le),this.getMonth(Le)+1,0))}clone(Le){return new Date(Le.getTime())}createDate(Le,Ie,De){let xe=this._createDateWithOverflow(Le,Ie,De);return xe.getMonth(),xe}today(){return new Date}parse(Le,Ie){return"number"==typeof Le?new Date(Le):Le?new Date(Date.parse(Le)):null}format(Le,Ie){if(!this.isValid(Le))throw Error("NativeDateAdapter: Cannot format invalid date.");const De=new Intl.DateTimeFormat(this.locale,{...Ie,timeZone:"utc"});return this._format(De,Le)}addCalendarYears(Le,Ie){return this.addCalendarMonths(Le,12*Ie)}addCalendarMonths(Le,Ie){let De=this._createDateWithOverflow(this.getYear(Le),this.getMonth(Le)+Ie,this.getDate(Le));return this.getMonth(De)!=((this.getMonth(Le)+Ie)%12+12)%12&&(De=this._createDateWithOverflow(this.getYear(De),this.getMonth(De),0)),De}addCalendarDays(Le,Ie){return this._createDateWithOverflow(this.getYear(Le),this.getMonth(Le),this.getDate(Le)+Ie)}toIso8601(Le){return[Le.getUTCFullYear(),this._2digit(Le.getUTCMonth()+1),this._2digit(Le.getUTCDate())].join("-")}deserialize(Le){if("string"==typeof Le){if(!Le)return null;if(k.test(Le)){let Ie=new Date(Le);if(this.isValid(Ie))return Ie}}return super.deserialize(Le)}isDateInstance(Le){return Le instanceof Date}isValid(Le){return!isNaN(Le.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Le,Ie,De){const xe=new Date;return xe.setFullYear(Le,Ie,De),xe.setHours(0,0,0,0),xe}_2digit(Le){return("00"+Le).slice(-2)}_format(Le,Ie){const De=new Date;return De.setUTCFullYear(Ie.getFullYear(),Ie.getMonth(),Ie.getDate()),De.setUTCHours(Ie.getHours(),Ie.getMinutes(),Ie.getSeconds(),Ie.getMilliseconds()),Le.format(De)}}return et.\u0275fac=function(Le){return new(Le||et)(e.LFG(Ke,8),e.LFG(b.t4))},et.\u0275prov=e.Yz7({token:et,factory:et.\u0275fac}),et})();const W={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let ue=(()=>{class et{}return et.\u0275fac=function(Le){return new(Le||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({providers:[{provide:oe,useClass:be}]}),et})(),Me=(()=>{class et{}return et.\u0275fac=function(Le){return new(Le||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({providers:[{provide:ce,useValue:W}],imports:[ue]}),et})(),je=(()=>{class et{isErrorState(Le,Ie){return!!(Le&&Le.invalid&&(Le.touched||Ie&&Ie.submitted))}}return et.\u0275fac=function(Le){return new(Le||et)},et.\u0275prov=e.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})(),ut=(()=>{class et{}return et.\u0275fac=function(Le){return new(Le||et)},et.\u0275dir=e.lG2({type:et,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),et})();function tt(et,te,Le="mat"){et.changes.pipe((0,B.O)(et)).subscribe(({length:Ie})=>{vt(te,`${Le}-2-line`,!1),vt(te,`${Le}-3-line`,!1),vt(te,`${Le}-multi-line`,!1),2===Ie||3===Ie?vt(te,`${Le}-${Ie}-line`,!0):Ie>3&&vt(te,`${Le}-multi-line`,!0)})}function vt(et,te,Le){et.nativeElement.classList.toggle(te,Le)}let ee=(()=>{class et{}return et.\u0275fac=function(Le){return new(Le||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({imports:[z,z]}),et})();class nt{constructor(te,Le,Ie,De=!1){this._renderer=te,this.element=Le,this.config=Ie,this._animationForciblyDisabledThroughCss=De,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ae={enterDuration:225,exitDuration:150},ge=(0,b.i$)({passive:!0}),we=["mousedown","touchstart"],Ne=["mouseup","mouseleave","touchend","touchcancel"];class Ce{constructor(te,Le,Ie,De){this._target=te,this._ngZone=Le,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,De.isBrowser&&(this._containerElement=(0,D.fI)(Ie))}fadeInRipple(te,Le,Ie={}){const De=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),xe={...Ae,...Ie.animation};Ie.centered&&(te=De.left+De.width/2,Le=De.top+De.height/2);const ie=Ie.radius||function fe(et,te,Le){const Ie=Math.max(Math.abs(et-Le.left),Math.abs(et-Le.right)),De=Math.max(Math.abs(te-Le.top),Math.abs(te-Le.bottom));return Math.sqrt(Ie*Ie+De*De)}(te,Le,De),Te=te-De.left,st=Le-De.top,Qe=xe.enterDuration,Et=document.createElement("div");Et.classList.add("mat-ripple-element"),Et.style.left=Te-ie+"px",Et.style.top=st-ie+"px",Et.style.height=2*ie+"px",Et.style.width=2*ie+"px",null!=Ie.color&&(Et.style.backgroundColor=Ie.color),Et.style.transitionDuration=`${Qe}ms`,this._containerElement.appendChild(Et);const ke=window.getComputedStyle(Et),It=ke.transitionDuration,jt="none"===ke.transitionProperty||"0s"===It||"0s, 0s"===It,an=new nt(this,Et,Ie,jt);Et.style.transform="scale3d(1, 1, 1)",an.state=0,Ie.persistent||(this._mostRecentTransientRipple=an);let Kt=null;return!jt&&(Qe||xe.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const on=()=>this._finishRippleTransition(an),bn=()=>this._destroyRipple(an);Et.addEventListener("transitionend",on),Et.addEventListener("transitioncancel",bn),Kt={onTransitionEnd:on,onTransitionCancel:bn}}),this._activeRipples.set(an,Kt),(jt||!Qe)&&this._finishRippleTransition(an),an}fadeOutRipple(te){if(2===te.state||3===te.state)return;const Le=te.element,Ie={...Ae,...te.config.animation};Le.style.transitionDuration=`${Ie.exitDuration}ms`,Le.style.opacity="0",te.state=2,(te._animationForciblyDisabledThroughCss||!Ie.exitDuration)&&this._finishRippleTransition(te)}fadeOutAll(){this._getActiveRipples().forEach(te=>te.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(te=>{te.config.persistent||te.fadeOut()})}setupTriggerEvents(te){const Le=(0,D.fI)(te);!Le||Le===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Le,this._registerEvents(we))}handleEvent(te){"mousedown"===te.type?this._onMousedown(te):"touchstart"===te.type?this._onTouchStart(te):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ne),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(te){0===te.state?this._startFadeOutTransition(te):2===te.state&&this._destroyRipple(te)}_startFadeOutTransition(te){const Le=te===this._mostRecentTransientRipple,{persistent:Ie}=te.config;te.state=1,!Ie&&(!Le||!this._isPointerDown)&&te.fadeOut()}_destroyRipple(te){var Le;const Ie=null!==(Le=this._activeRipples.get(te))&&void 0!==Le?Le:null;this._activeRipples.delete(te),this._activeRipples.size||(this._containerRect=null),te===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),te.state=3,null!==Ie&&(te.element.removeEventListener("transitionend",Ie.onTransitionEnd),te.element.removeEventListener("transitioncancel",Ie.onTransitionCancel)),te.element.remove()}_onMousedown(te){const Le=(0,A.X6)(te),Ie=this._lastTouchStartEvent&&Date.now(){!te.config.persistent&&(1===te.state||te.config.terminateOnPointerUp&&0===te.state)&&te.fadeOut()}))}_registerEvents(te){this._ngZone.runOutsideAngular(()=>{te.forEach(Le=>{this._triggerElement.addEventListener(Le,this,ge)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(we.forEach(te=>{this._triggerElement.removeEventListener(te,this,ge)}),this._pointerUpEventsRegistered&&Ne.forEach(te=>{this._triggerElement.removeEventListener(te,this,ge)}))}}const r=new e.OlP("mat-ripple-global-options");let u=(()=>{class et{constructor(Le,Ie,De,xe,ie){this._elementRef=Le,this._animationMode=ie,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=xe||{},this._rippleRenderer=new Ce(this,Ie,Le,De)}get disabled(){return this._disabled}set disabled(Le){Le&&this.fadeOutAllNonPersistent(),this._disabled=Le,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Le){this._trigger=Le,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Le,Ie=0,De){return"number"==typeof Le?this._rippleRenderer.fadeInRipple(Le,Ie,{...this.rippleConfig,...De}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Le})}}return et.\u0275fac=function(Le){return new(Le||et)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(b.t4),e.Y36(r,8),e.Y36(e.QbO,8))},et.\u0275dir=e.lG2({type:et,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Le,Ie){2&Le&&e.ekj("mat-ripple-unbounded",Ie.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),et})(),g=(()=>{class et{}return et.\u0275fac=function(Le){return new(Le||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({imports:[z,z]}),et})(),v=(()=>{class et{constructor(Le){this._animationMode=Le,this.state="unchecked",this.disabled=!1}}return et.\u0275fac=function(Le){return new(Le||et)(e.Y36(e.QbO,8))},et.\u0275cmp=e.Xpm({type:et,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Le,Ie){2&Le&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Ie.state)("mat-pseudo-checkbox-checked","checked"===Ie.state)("mat-pseudo-checkbox-disabled",Ie.disabled)("_mat-animation-noopable","NoopAnimations"===Ie._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Le,Ie){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),et})(),h=(()=>{class et{}return et.\u0275fac=function(Le){return new(Le||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({imports:[z]}),et})();const a=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),o=new e.OlP("MatOptgroup");let l=0;class d{constructor(te,Le=!1){this.source=te,this.isUserInput=Le}}let c=(()=>{class et{constructor(Le,Ie,De,xe){this._element=Le,this._changeDetectorRef=Ie,this._parent=De,this.group=xe,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+l++,this.onSelectionChange=new e.vpe,this._stateChanges=new R.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Le){this._disabled=(0,D.Ig)(Le)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(Le,Ie){const De=this._getHostElement();"function"==typeof De.focus&&De.focus(Ie)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Le){(Le.keyCode===w.K5||Le.keyCode===w.L_)&&!(0,w.Vb)(Le)&&(this._selectViaInteraction(),Le.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const Le=this.viewValue;Le!==this._mostRecentViewValue&&(this._mostRecentViewValue=Le,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Le=!1){this.onSelectionChange.emit(new d(this,Le))}}return et.\u0275fac=function(Le){e.$Z()},et.\u0275dir=e.lG2({type:et,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),et})(),S=(()=>{class et extends c{constructor(Le,Ie,De,xe){super(Le,Ie,De,xe)}}return et.\u0275fac=function(Le){return new(Le||et)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(a,8),e.Y36(o,8))},et.\u0275cmp=e.Xpm({type:et,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Le,Ie){1&Le&&e.NdJ("click",function(){return Ie._selectViaInteraction()})("keydown",function(xe){return Ie._handleKeydown(xe)}),2&Le&&(e.Ikx("id",Ie.id),e.uIk("tabindex",Ie._getTabIndex())("aria-selected",Ie._getAriaSelected())("aria-disabled",Ie.disabled.toString()),e.ekj("mat-selected",Ie.selected)("mat-option-multiple",Ie.multiple)("mat-active",Ie.active)("mat-option-disabled",Ie.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:G,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(Le,Ie){1&Le&&(e.F$t(),e.YNc(0,J,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,ne,2,1,"span",2),e._UZ(4,"div",3)),2&Le&&(e.Q6J("ngIf",Ie.multiple),e.xp6(3),e.Q6J("ngIf",Ie.group&&Ie.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",Ie._getHostElement())("matRippleDisabled",Ie.disabled||Ie.disableRipple))},dependencies:[u,f.O5,v],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),et})();function $(et,te,Le){if(Le.length){let Ie=te.toArray(),De=Le.toArray(),xe=0;for(let ie=0;ieLe+Ie?Math.max(0,et-Ie+te):Le}let ze=(()=>{class et{}return et.\u0275fac=function(Le){return new(Le||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({imports:[g,f.ez,z,h]}),et})()},99602:($e,he,p)=>{"use strict";p.d(he,{By:()=>Ft,FA:()=>pt,Mq:()=>Et,_g:()=>gn,hl:()=>Kt,nW:()=>bn,wx:()=>Cn,zY:()=>wt});var e=p(12687),A=p(98184),C=p(84080),M=p(36895),f=p(94650),b=p(4859),D=p(67376),T=p(3238),R=p(77579),B=p(50727),w=p(56451),H=p(39646),O=p(29521),J=p(40445),ne=p(95698),G=p(68675),se=p(39300),Oe=p(21281),_e=p(83353),Be=p(37340),E=p(24006),z=p(59549),F=p(284);const V=["mat-calendar-body",""];function X(it,St){if(1&it&&(f.TgZ(0,"tr",2)(1,"td",3),f._uU(2),f.qZA()()),2&it){const j=f.oxw();f.xp6(1),f.Udp("padding-top",j._cellPadding)("padding-bottom",j._cellPadding),f.uIk("colspan",j.numCols),f.xp6(1),f.hij(" ",j.label," ")}}function q(it,St){if(1&it&&(f.TgZ(0,"td",3),f._uU(1),f.qZA()),2&it){const j=f.oxw(2);f.Udp("padding-top",j._cellPadding)("padding-bottom",j._cellPadding),f.uIk("colspan",j._firstRowOffset),f.xp6(1),f.hij(" ",j._firstRowOffset>=j.labelMinRequiredCells?j.label:""," ")}}function pe(it,St){if(1&it){const j=f.EpF();f.TgZ(0,"td",7)(1,"button",8),f.NdJ("click",function(mt){const Xt=f.CHM(j).$implicit,vn=f.oxw(2);return f.KtG(vn._cellClicked(Xt,mt))})("focus",function(mt){const Xt=f.CHM(j).$implicit,vn=f.oxw(2);return f.KtG(vn._emitActiveDateChange(Xt,mt))}),f.TgZ(2,"div",9),f._uU(3),f.qZA(),f._UZ(4,"div",10),f.qZA()()}if(2&it){const j=St.$implicit,He=St.index,mt=f.oxw().index,Rt=f.oxw();f.Udp("width",Rt._cellWidth)("padding-top",Rt._cellPadding)("padding-bottom",Rt._cellPadding),f.uIk("data-mat-row",mt)("data-mat-col",He),f.xp6(1),f.ekj("mat-calendar-body-disabled",!j.enabled)("mat-calendar-body-active",Rt._isActiveCell(mt,He))("mat-calendar-body-range-start",Rt._isRangeStart(j.compareValue))("mat-calendar-body-range-end",Rt._isRangeEnd(j.compareValue))("mat-calendar-body-in-range",Rt._isInRange(j.compareValue))("mat-calendar-body-comparison-bridge-start",Rt._isComparisonBridgeStart(j.compareValue,mt,He))("mat-calendar-body-comparison-bridge-end",Rt._isComparisonBridgeEnd(j.compareValue,mt,He))("mat-calendar-body-comparison-start",Rt._isComparisonStart(j.compareValue))("mat-calendar-body-comparison-end",Rt._isComparisonEnd(j.compareValue))("mat-calendar-body-in-comparison-range",Rt._isInComparisonRange(j.compareValue))("mat-calendar-body-preview-start",Rt._isPreviewStart(j.compareValue))("mat-calendar-body-preview-end",Rt._isPreviewEnd(j.compareValue))("mat-calendar-body-in-preview",Rt._isInPreview(j.compareValue)),f.Q6J("ngClass",j.cssClasses)("tabindex",Rt._isActiveCell(mt,He)?0:-1),f.uIk("aria-label",j.ariaLabel)("aria-disabled",!j.enabled||null)("aria-pressed",Rt._isSelected(j.compareValue))("aria-current",Rt.todayValue===j.compareValue?"date":null),f.xp6(1),f.ekj("mat-calendar-body-selected",Rt._isSelected(j.compareValue))("mat-calendar-body-comparison-identical",Rt._isComparisonIdentical(j.compareValue))("mat-calendar-body-today",Rt.todayValue===j.compareValue),f.xp6(1),f.hij(" ",j.displayValue," ")}}function le(it,St){if(1&it&&(f.TgZ(0,"tr",4),f.YNc(1,q,2,6,"td",5),f.YNc(2,pe,5,47,"td",6),f.qZA()),2&it){const j=St.$implicit,He=St.index,mt=f.oxw();f.xp6(1),f.Q6J("ngIf",0===He&&mt._firstRowOffset),f.xp6(1),f.Q6J("ngForOf",j)}}function ye(it,St){if(1&it&&(f.TgZ(0,"th",5)(1,"span",6),f._uU(2),f.qZA(),f.TgZ(3,"span",7),f._uU(4),f.qZA()()),2&it){const j=St.$implicit;f.xp6(2),f.Oqu(j.long),f.xp6(2),f.Oqu(j.narrow)}}const Ve=["*"];function ve(it,St){}function Ke(it,St){if(1&it){const j=f.EpF();f.TgZ(0,"mat-month-view",5),f.NdJ("activeDateChange",function(mt){f.CHM(j);const Rt=f.oxw();return f.KtG(Rt.activeDate=mt)})("_userSelection",function(mt){f.CHM(j);const Rt=f.oxw();return f.KtG(Rt._dateSelected(mt))}),f.qZA()}if(2&it){const j=f.oxw();f.Q6J("activeDate",j.activeDate)("selected",j.selected)("dateFilter",j.dateFilter)("maxDate",j.maxDate)("minDate",j.minDate)("dateClass",j.dateClass)("comparisonStart",j.comparisonStart)("comparisonEnd",j.comparisonEnd)}}function Ue(it,St){if(1&it){const j=f.EpF();f.TgZ(0,"mat-year-view",6),f.NdJ("activeDateChange",function(mt){f.CHM(j);const Rt=f.oxw();return f.KtG(Rt.activeDate=mt)})("monthSelected",function(mt){f.CHM(j);const Rt=f.oxw();return f.KtG(Rt._monthSelectedInYearView(mt))})("selectedChange",function(mt){f.CHM(j);const Rt=f.oxw();return f.KtG(Rt._goToDateInView(mt,"month"))}),f.qZA()}if(2&it){const j=f.oxw();f.Q6J("activeDate",j.activeDate)("selected",j.selected)("dateFilter",j.dateFilter)("maxDate",j.maxDate)("minDate",j.minDate)("dateClass",j.dateClass)}}function oe(it,St){if(1&it){const j=f.EpF();f.TgZ(0,"mat-multi-year-view",7),f.NdJ("activeDateChange",function(mt){f.CHM(j);const Rt=f.oxw();return f.KtG(Rt.activeDate=mt)})("yearSelected",function(mt){f.CHM(j);const Rt=f.oxw();return f.KtG(Rt._yearSelectedInMultiYearView(mt))})("selectedChange",function(mt){f.CHM(j);const Rt=f.oxw();return f.KtG(Rt._goToDateInView(mt,"year"))}),f.qZA()}if(2&it){const j=f.oxw();f.Q6J("activeDate",j.activeDate)("selected",j.selected)("dateFilter",j.dateFilter)("maxDate",j.maxDate)("minDate",j.minDate)("dateClass",j.dateClass)}}function ce(it,St){}const k=["button"];function N(it,St){1&it&&(f.O4$(),f.TgZ(0,"svg",3),f._UZ(1,"path",4),f.qZA())}const be=[[["","matDatepickerToggleIcon",""]]],W=["[matDatepickerToggleIcon]"],ue=[[["input","matStartDate",""]],[["input","matEndDate",""]]],Me=["input[matStartDate]","input[matEndDate]"];let ut=(()=>{class it{constructor(){this.changes=new R.x,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(j,He){return`${j} \u2013 ${He}`}formatYearRangeLabel(j,He){return`${j} to ${He}`}}return it.\u0275fac=function(j){return new(j||it)},it.\u0275prov=f.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();class tt{constructor(St,j,He,mt,Rt={},Xt=St,vn){this.value=St,this.displayValue=j,this.ariaLabel=He,this.enabled=mt,this.cssClasses=Rt,this.compareValue=Xt,this.rawValue=vn}}let vt=(()=>{class it{constructor(j,He){this._elementRef=j,this._ngZone=He,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new f.vpe,this.previewChange=new f.vpe,this.activeDateChange=new f.vpe,this._enterHandler=mt=>{if(this._skipNextFocus&&"focus"===mt.type)this._skipNextFocus=!1;else if(mt.target&&this.isRange){const Rt=this._getCellFromElement(mt.target);Rt&&this._ngZone.run(()=>this.previewChange.emit({value:Rt.enabled?Rt:null,event:mt}))}},this._leaveHandler=mt=>{null!==this.previewEnd&&this.isRange&&mt.target&&this._getCellFromElement(mt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:mt}))},He.runOutsideAngular(()=>{const mt=j.nativeElement;mt.addEventListener("mouseenter",this._enterHandler,!0),mt.addEventListener("focus",this._enterHandler,!0),mt.addEventListener("mouseleave",this._leaveHandler,!0),mt.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(j,He){j.enabled&&this.selectedValueChange.emit({value:j.value,event:He})}_emitActiveDateChange(j,He){j.enabled&&this.activeDateChange.emit({value:j.value,event:He})}_isSelected(j){return this.startValue===j||this.endValue===j}ngOnChanges(j){const He=j.numCols,{rows:mt,numCols:Rt}=this;(j.rows||He)&&(this._firstRowOffset=mt&&mt.length&&mt[0].length?Rt-mt[0].length:0),(j.cellAspectRatio||He||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Rt+"%"),(He||!this._cellWidth)&&(this._cellWidth=100/Rt+"%")}ngOnDestroy(){const j=this._elementRef.nativeElement;j.removeEventListener("mouseenter",this._enterHandler,!0),j.removeEventListener("focus",this._enterHandler,!0),j.removeEventListener("mouseleave",this._leaveHandler,!0),j.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(j,He){let mt=j*this.numCols+He;return j&&(mt-=this._firstRowOffset),mt==this.activeCell}_focusActiveCell(j=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ne.q)(1)).subscribe(()=>{setTimeout(()=>{const He=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");He&&(j||(this._skipNextFocus=!0),He.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(j){return nt(j,this.startValue,this.endValue)}_isRangeEnd(j){return Ae(j,this.startValue,this.endValue)}_isInRange(j){return Ee(j,this.startValue,this.endValue,this.isRange)}_isComparisonStart(j){return nt(j,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(j,He,mt){if(!this._isComparisonStart(j)||this._isRangeStart(j)||!this._isInRange(j))return!1;let Rt=this.rows[He][mt-1];if(!Rt){const Xt=this.rows[He-1];Rt=Xt&&Xt[Xt.length-1]}return Rt&&!this._isRangeEnd(Rt.compareValue)}_isComparisonBridgeEnd(j,He,mt){if(!this._isComparisonEnd(j)||this._isRangeEnd(j)||!this._isInRange(j))return!1;let Rt=this.rows[He][mt+1];if(!Rt){const Xt=this.rows[He+1];Rt=Xt&&Xt[0]}return Rt&&!this._isRangeStart(Rt.compareValue)}_isComparisonEnd(j){return Ae(j,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(j){return Ee(j,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(j){return this.comparisonStart===this.comparisonEnd&&j===this.comparisonStart}_isPreviewStart(j){return nt(j,this.previewStart,this.previewEnd)}_isPreviewEnd(j){return Ae(j,this.previewStart,this.previewEnd)}_isInPreview(j){return Ee(j,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(j){let He;if(ee(j)?He=j:ee(j.parentNode)&&(He=j.parentNode),He){const mt=He.getAttribute("data-mat-row"),Rt=He.getAttribute("data-mat-col");if(mt&&Rt)return this.rows[parseInt(mt)][parseInt(Rt)]}return null}}return it.\u0275fac=function(j){return new(j||it)(f.Y36(f.SBq),f.Y36(f.R0b))},it.\u0275cmp=f.Xpm({type:it,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"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[f.TTD],attrs:V,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(j,He){1&j&&(f.YNc(0,X,3,6,"tr",0),f.YNc(1,le,3,2,"tr",1)),2&j&&(f.Q6J("ngIf",He._firstRowOffset=St&&it===j}function Ee(it,St,j,He){return He&&null!==St&&null!==j&&St!==j&&it>=St&&it<=j}class ge{constructor(St,j){this.start=St,this.end=j}}let we=(()=>{class it{constructor(j,He){this.selection=j,this._adapter=He,this._selectionChanged=new R.x,this.selectionChanged=this._selectionChanged,this.selection=j}updateSelection(j,He){const mt=this.selection;this.selection=j,this._selectionChanged.next({selection:j,source:He,oldValue:mt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(j){return this._adapter.isDateInstance(j)&&this._adapter.isValid(j)}}return it.\u0275fac=function(j){f.$Z()},it.\u0275prov=f.Yz7({token:it,factory:it.\u0275fac}),it})(),Ne=(()=>{class it extends we{constructor(j){super(null,j)}add(j){super.updateSelection(j,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const j=new it(this._adapter);return j.updateSelection(this.selection,this),j}}return it.\u0275fac=function(j){return new(j||it)(f.LFG(T._A))},it.\u0275prov=f.Yz7({token:it,factory:it.\u0275fac}),it})(),Ce=(()=>{class it extends we{constructor(j){super(new ge(null,null),j)}add(j){let{start:He,end:mt}=this.selection;null==He?He=j:null==mt?mt=j:(He=j,mt=null),super.updateSelection(new ge(He,mt),this)}isValid(){const{start:j,end:He}=this.selection;return null==j&&null==He||(null!=j&&null!=He?this._isValidDateInstance(j)&&this._isValidDateInstance(He)&&this._adapter.compareDate(j,He)<=0:(null==j||this._isValidDateInstance(j))&&(null==He||this._isValidDateInstance(He)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const j=new it(this._adapter);return j.updateSelection(this.selection,this),j}}return it.\u0275fac=function(j){return new(j||it)(f.LFG(T._A))},it.\u0275prov=f.Yz7({token:it,factory:it.\u0275fac}),it})();const r={provide:we,deps:[[new f.FiY,new f.tp0,we],T._A],useFactory:function fe(it,St){return it||new Ne(St)}},g={provide:we,deps:[[new f.FiY,new f.tp0,we],T._A],useFactory:function u(it,St){return it||new Ce(St)}},v=new f.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let h=(()=>{class it{constructor(j){this._dateAdapter=j}selectionFinished(j,He){let{start:mt,end:Rt}=He;return null==mt?mt=j:null==Rt&&j&&this._dateAdapter.compareDate(j,mt)>=0?Rt=j:(mt=j,Rt=null),new ge(mt,Rt)}createPreview(j,He){let mt=null,Rt=null;return He.start&&!He.end&&j&&(mt=He.start,Rt=j),new ge(mt,Rt)}}return it.\u0275fac=function(j){return new(j||it)(f.LFG(T._A))},it.\u0275prov=f.Yz7({token:it,factory:it.\u0275fac}),it})();const i={provide:v,deps:[[new f.FiY,new f.tp0,v],T._A],useFactory:function a(it,St){return it||new h(St)}};let n=(()=>{class it{constructor(j,He,mt,Rt,Xt){this._changeDetectorRef=j,this._dateFormats=He,this._dateAdapter=mt,this._dir=Rt,this._rangeStrategy=Xt,this._rerenderSubscription=B.w0.EMPTY,this.selectedChange=new f.vpe,this._userSelection=new f.vpe,this.activeDateChange=new f.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(j){const He=this._activeDate,mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(mt,this.minDate,this.maxDate),this._hasSameMonthAndYear(He,this._activeDate)||this._init()}get selected(){return this._selected}set selected(j){this._selected=j instanceof ge?j:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(j){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get maxDate(){return this._maxDate}set maxDate(j){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,G.O)(null)).subscribe(()=>this._init())}ngOnChanges(j){const He=j.comparisonStart||j.comparisonEnd;He&&!He.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(j){const He=j.value,mt=this._getDateFromDayOfMonth(He);let Rt,Xt;this._selected instanceof ge?(Rt=this._getDateInCurrentMonth(this._selected.start),Xt=this._getDateInCurrentMonth(this._selected.end)):Rt=Xt=this._getDateInCurrentMonth(this._selected),(Rt!==He||Xt!==He)&&this.selectedChange.emit(mt),this._userSelection.emit({value:mt,event:j.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(j){const mt=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(j.value),this._dateAdapter.compareDate(mt,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(j){const He=this._activeDate,mt=this._isRtl();switch(j.keyCode){case O.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,mt?1:-1);break;case O.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,mt?-1:1);break;case O.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case O.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case O.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case O.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case O.Ku:this.activeDate=j.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case O.VM:this.activeDate=j.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case O.K5:case O.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&j.preventDefault());case O.hY:return void(null!=this._previewEnd&&!(0,O.Vb)(j)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:j}),j.preventDefault(),j.stopPropagation()));default:return}this._dateAdapter.compareDate(He,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),j.preventDefault()}_handleCalendarBodyKeyup(j){(j.keyCode===O.L_||j.keyCode===O.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:j}),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 j=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(j)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(j){this._matCalendarBody._focusActiveCell(j)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:j,value:He}){if(this._rangeStrategy){const Rt=this._rangeStrategy.createPreview(He?He.rawValue:null,this.selected,j);this._previewStart=this._getCellCompareValue(Rt.start),this._previewEnd=this._getCellCompareValue(Rt.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(j){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),j)}_initWeekdays(){const j=this._dateAdapter.getFirstDayOfWeek(),He=this._dateAdapter.getDayOfWeekNames("narrow");let Rt=this._dateAdapter.getDayOfWeekNames("long").map((Xt,vn)=>({long:Xt,narrow:He[vn]}));this._weekdays=Rt.slice(j).concat(Rt.slice(0,j))}_createWeekCells(){const j=this._dateAdapter.getNumDaysInMonth(this.activeDate),He=this._dateAdapter.getDateNames();this._weeks=[[]];for(let mt=0,Rt=this._firstWeekOffset;mt=0)&&(!this.maxDate||this._dateAdapter.compareDate(j,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(j))}_getDateInCurrentMonth(j){return j&&this._hasSameMonthAndYear(j,this.activeDate)?this._dateAdapter.getDate(j):null}_hasSameMonthAndYear(j,He){return!(!j||!He||this._dateAdapter.getMonth(j)!=this._dateAdapter.getMonth(He)||this._dateAdapter.getYear(j)!=this._dateAdapter.getYear(He))}_getCellCompareValue(j){if(j){const He=this._dateAdapter.getYear(j),mt=this._dateAdapter.getMonth(j),Rt=this._dateAdapter.getDate(j);return new Date(He,mt,Rt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(j){j instanceof ge?(this._rangeStart=this._getCellCompareValue(j.start),this._rangeEnd=this._getCellCompareValue(j.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(j),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(j){return!this.dateFilter||this.dateFilter(j)}}return it.\u0275fac=function(j){return new(j||it)(f.Y36(f.sBO),f.Y36(T.sG,8),f.Y36(T._A,8),f.Y36(J.Is,8),f.Y36(v,8))},it.\u0275cmp=f.Xpm({type:it,selectors:[["mat-month-view"]],viewQuery:function(j,He){if(1&j&&f.Gf(vt,5),2&j){let mt;f.iGM(mt=f.CRH())&&(He._matCalendarBody=mt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[f.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(j,He){1&j&&(f.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),f.YNc(3,ye,5,2,"th",2),f.qZA(),f.TgZ(4,"tr"),f._UZ(5,"th",3),f.qZA()(),f.TgZ(6,"tbody",4),f.NdJ("selectedValueChange",function(Rt){return He._dateSelected(Rt)})("activeDateChange",function(Rt){return He._updateActiveDate(Rt)})("previewChange",function(Rt){return He._previewChanged(Rt)})("keyup",function(Rt){return He._handleCalendarBodyKeyup(Rt)})("keydown",function(Rt){return He._handleCalendarBodyKeydown(Rt)}),f.qZA()()),2&j&&(f.xp6(3),f.Q6J("ngForOf",He._weekdays),f.xp6(3),f.Q6J("label",He._monthLabel)("rows",He._weeks)("todayValue",He._todayDate)("startValue",He._rangeStart)("endValue",He._rangeEnd)("comparisonStart",He._comparisonRangeStart)("comparisonEnd",He._comparisonRangeEnd)("previewStart",He._previewStart)("previewEnd",He._previewEnd)("isRange",He._isRange)("labelMinRequiredCells",3)("activeCell",He._dateAdapter.getDate(He.activeDate)-1))},dependencies:[M.sg,vt],encapsulation:2,changeDetection:0}),it})();const o=24;let l=(()=>{class it{constructor(j,He,mt){this._changeDetectorRef=j,this._dateAdapter=He,this._dir=mt,this._rerenderSubscription=B.w0.EMPTY,this.selectedChange=new f.vpe,this.yearSelected=new f.vpe,this.activeDateChange=new f.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(j){let He=this._activeDate;const mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(mt,this.minDate,this.maxDate),d(this._dateAdapter,He,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(j){this._selected=j instanceof ge?j:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j)),this._setSelectedYear(j)}get minDate(){return this._minDate}set minDate(j){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get maxDate(){return this._maxDate}set maxDate(j){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,G.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const He=this._dateAdapter.getYear(this._activeDate)-c(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let mt=0,Rt=[];mtthis._createCellForYear(Xt))),Rt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(j){const He=j.value,mt=this._dateAdapter.createDate(He,0,1),Rt=this._getDateFromYear(He);this.yearSelected.emit(mt),this.selectedChange.emit(Rt)}_updateActiveDate(j){const mt=this._activeDate;this.activeDate=this._getDateFromYear(j.value),this._dateAdapter.compareDate(mt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(j){const He=this._activeDate,mt=this._isRtl();switch(j.keyCode){case O.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,mt?1:-1);break;case O.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,mt?-1:1);break;case O.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case O.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case O.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-c(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case O.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o-c(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case O.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,j.altKey?-240:-o);break;case O.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,j.altKey?240:o);break;case O.K5:case O.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(He,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),j.preventDefault()}_handleCalendarBodyKeyup(j){(j.keyCode===O.L_||j.keyCode===O.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:j}),this._selectionKeyPressed=!1)}_getActiveCell(){return c(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(j){const He=this._dateAdapter.getMonth(this.activeDate),mt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(j,He,1));return this._dateAdapter.createDate(j,He,Math.min(this._dateAdapter.getDate(this.activeDate),mt))}_createCellForYear(j){const He=this._dateAdapter.createDate(j,0,1),mt=this._dateAdapter.getYearName(He),Rt=this.dateClass?this.dateClass(He,"multi-year"):void 0;return new tt(j,mt,mt,this._shouldEnableYear(j),Rt)}_shouldEnableYear(j){if(null==j||this.maxDate&&j>this._dateAdapter.getYear(this.maxDate)||this.minDate&&j{class it{constructor(j,He,mt,Rt){this._changeDetectorRef=j,this._dateFormats=He,this._dateAdapter=mt,this._dir=Rt,this._rerenderSubscription=B.w0.EMPTY,this.selectedChange=new f.vpe,this.monthSelected=new f.vpe,this.activeDateChange=new f.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(j){let He=this._activeDate;const mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(mt,this.minDate,this.maxDate),this._dateAdapter.getYear(He)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(j){this._selected=j instanceof ge?j:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j)),this._setSelectedMonth(j)}get minDate(){return this._minDate}set minDate(j){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get maxDate(){return this._maxDate}set maxDate(j){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,G.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(j){const He=j.value,mt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),He,1);this.monthSelected.emit(mt);const Rt=this._getDateFromMonth(He);this.selectedChange.emit(Rt)}_updateActiveDate(j){const mt=this._activeDate;this.activeDate=this._getDateFromMonth(j.value),this._dateAdapter.compareDate(mt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(j){const He=this._activeDate,mt=this._isRtl();switch(j.keyCode){case O.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,mt?1:-1);break;case O.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,mt?-1:1);break;case O.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case O.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case O.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case O.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case O.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,j.altKey?-10:-1);break;case O.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,j.altKey?10:1);break;case O.K5:case O.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(He,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),j.preventDefault()}_handleCalendarBodyKeyup(j){(j.keyCode===O.L_||j.keyCode===O.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:j}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let j=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(He=>He.map(mt=>this._createCellForMonth(mt,j[mt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(j){return j&&this._dateAdapter.getYear(j)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(j):null}_getDateFromMonth(j){const He=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),j,1),mt=this._dateAdapter.getNumDaysInMonth(He);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),j,Math.min(this._dateAdapter.getDate(this.activeDate),mt))}_createCellForMonth(j,He){const mt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),j,1),Rt=this._dateAdapter.format(mt,this._dateFormats.display.monthYearA11yLabel),Xt=this.dateClass?this.dateClass(mt,"year"):void 0;return new tt(j,He.toLocaleUpperCase(),Rt,this._shouldEnableMonth(j),Xt)}_shouldEnableMonth(j){const He=this._dateAdapter.getYear(this.activeDate);if(null==j||this._isYearAndMonthAfterMaxDate(He,j)||this._isYearAndMonthBeforeMinDate(He,j))return!1;if(!this.dateFilter)return!0;for(let Rt=this._dateAdapter.createDate(He,j,1);this._dateAdapter.getMonth(Rt)==j;Rt=this._dateAdapter.addCalendarDays(Rt,1))if(this.dateFilter(Rt))return!0;return!1}_isYearAndMonthAfterMaxDate(j,He){if(this.maxDate){const mt=this._dateAdapter.getYear(this.maxDate),Rt=this._dateAdapter.getMonth(this.maxDate);return j>mt||j===mt&&He>Rt}return!1}_isYearAndMonthBeforeMinDate(j,He){if(this.minDate){const mt=this._dateAdapter.getYear(this.minDate),Rt=this._dateAdapter.getMonth(this.minDate);return j{class it{constructor(j,He,mt,Rt,Xt){this._intl=j,this.calendar=He,this._dateAdapter=mt,this._dateFormats=Rt,this._buttonDescriptionId="mat-calendar-button-"+ze++,this.calendar.stateChanges.subscribe(()=>Xt.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const He=this._dateAdapter.getYear(this.calendar.activeDate)-c(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),mt=He+o-1,Rt=this._dateAdapter.getYearName(this._dateAdapter.createDate(He,0,1)),Xt=this._dateAdapter.getYearName(this._dateAdapter.createDate(mt,0,1));return this._intl.formatYearRange(Rt,Xt)}get periodButtonLabel(){return"month"==this.calendar.currentView?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="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-o)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:o)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(j,He){return"month"==this.calendar.currentView?this._dateAdapter.getYear(j)==this._dateAdapter.getYear(He)&&this._dateAdapter.getMonth(j)==this._dateAdapter.getMonth(He):"year"==this.calendar.currentView?this._dateAdapter.getYear(j)==this._dateAdapter.getYear(He):d(this._dateAdapter,j,He,this.calendar.minDate,this.calendar.maxDate)}}return it.\u0275fac=function(j){return new(j||it)(f.Y36(ut),f.Y36((0,f.Gpc)(()=>te)),f.Y36(T._A,8),f.Y36(T.sG,8),f.Y36(f.sBO))},it.\u0275cmp=f.Xpm({type:it,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Ve,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",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,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(j,He){1&j&&(f.F$t(),f.TgZ(0,"div",0)(1,"div",1)(2,"button",2),f.NdJ("click",function(){return He.currentPeriodClicked()}),f.TgZ(3,"span"),f._uU(4),f.qZA(),f.O4$(),f.TgZ(5,"svg",3),f._UZ(6,"polygon",4),f.qZA()(),f.kcU(),f._UZ(7,"div",5),f.Hsn(8),f.TgZ(9,"button",6),f.NdJ("click",function(){return He.previousClicked()}),f.qZA(),f.TgZ(10,"button",7),f.NdJ("click",function(){return He.nextClicked()}),f.qZA()()()),2&j&&(f.xp6(2),f.uIk("aria-label",He.periodButtonLabel)("aria-describedby",He._buttonDescriptionId),f.xp6(1),f.uIk("id",He._buttonDescriptionId),f.xp6(1),f.Oqu(He.periodButtonText),f.xp6(1),f.ekj("mat-calendar-invert","month"!==He.calendar.currentView),f.xp6(4),f.Q6J("disabled",!He.previousEnabled()),f.uIk("aria-label",He.prevButtonLabel),f.xp6(1),f.Q6J("disabled",!He.nextEnabled()),f.uIk("aria-label",He.nextButtonLabel))},dependencies:[b.lW],encapsulation:2,changeDetection:0}),it})(),te=(()=>{class it{constructor(j,He,mt,Rt){this._dateAdapter=He,this._dateFormats=mt,this._changeDetectorRef=Rt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new f.vpe,this.yearSelected=new f.vpe,this.monthSelected=new f.vpe,this.viewChanged=new f.vpe(!0),this._userSelection=new f.vpe,this.stateChanges=new R.x,this._intlChanges=j.changes.subscribe(()=>{Rt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(j){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get selected(){return this._selected}set selected(j){this._selected=j instanceof ge?j:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get minDate(){return this._minDate}set minDate(j){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get maxDate(){return this._maxDate}set maxDate(j){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get activeDate(){return this._clampedActiveDate}set activeDate(j){this._clampedActiveDate=this._dateAdapter.clampDate(j,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(j){const He=this._currentView!==j?j:null;this._currentView=j,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),He&&this.viewChanged.emit(He)}ngAfterContentInit(){this._calendarHeaderPortal=new C.C5(this.headerComponent||et),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(j){const He=j.minDate&&!this._dateAdapter.sameDate(j.minDate.previousValue,j.minDate.currentValue)?j.minDate:void 0,mt=j.maxDate&&!this._dateAdapter.sameDate(j.maxDate.previousValue,j.maxDate.currentValue)?j.maxDate:void 0,Rt=He||mt||j.dateFilter;if(Rt&&!Rt.firstChange){const Xt=this._getCurrentViewComponent();Xt&&(this._changeDetectorRef.detectChanges(),Xt._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(j){const He=j.value;(this.selected instanceof ge||He&&!this._dateAdapter.sameDate(He,this.selected))&&this.selectedChange.emit(He),this._userSelection.emit(j)}_yearSelectedInMultiYearView(j){this.yearSelected.emit(j)}_monthSelectedInYearView(j){this.monthSelected.emit(j)}_goToDateInView(j,He){this.activeDate=j,this.currentView=He}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return it.\u0275fac=function(j){return new(j||it)(f.Y36(ut),f.Y36(T._A,8),f.Y36(T.sG,8),f.Y36(f.sBO))},it.\u0275cmp=f.Xpm({type:it,selectors:[["mat-calendar"]],viewQuery:function(j,He){if(1&j&&(f.Gf(n,5),f.Gf(ht,5),f.Gf(l,5)),2&j){let mt;f.iGM(mt=f.CRH())&&(He.monthView=mt.first),f.iGM(mt=f.CRH())&&(He.yearView=mt.first),f.iGM(mt=f.CRH())&&(He.multiYearView=mt.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"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[f._Bn([r]),f.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(j,He){1&j&&(f.YNc(0,ve,0,0,"ng-template",0),f.TgZ(1,"div",1),f.YNc(2,Ke,1,8,"mat-month-view",2),f.YNc(3,Ue,1,6,"mat-year-view",3),f.YNc(4,oe,1,6,"mat-multi-year-view",4),f.qZA()),2&j&&(f.Q6J("cdkPortalOutlet",He._calendarHeaderPortal),f.xp6(1),f.Q6J("ngSwitch",He.currentView),f.xp6(1),f.Q6J("ngSwitchCase","month"),f.xp6(1),f.Q6J("ngSwitchCase","year"),f.xp6(1),f.Q6J("ngSwitchCase","multi-year"))},dependencies:[M.RF,M.n9,e.kH,C.Pl,n,ht,l],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.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-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}.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}.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}),it})();const Le={transformPanel:(0,Be.X$)("transformPanel",[(0,Be.eR)("void => enter-dropdown",(0,Be.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Be.F4)([(0,Be.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Be.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Be.eR)("void => enter-dialog",(0,Be.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Be.F4)([(0,Be.oB)({opacity:0,transform:"scale(0.7)"}),(0,Be.oB)({transform:"none",opacity:1})]))),(0,Be.eR)("* => void",(0,Be.jt)("100ms linear",(0,Be.oB)({opacity:0})))]),fadeInCalendar:(0,Be.X$)("fadeInCalendar",[(0,Be.SB)("void",(0,Be.oB)({opacity:0})),(0,Be.SB)("enter",(0,Be.oB)({opacity:1})),(0,Be.eR)("void => *",(0,Be.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ie=0;const De=new f.OlP("mat-datepicker-scroll-strategy"),ie={provide:De,deps:[A.aV],useFactory:function xe(it){return()=>it.scrollStrategies.reposition()}},Te=(0,T.pj)(class{constructor(it){this._elementRef=it}});let st=(()=>{class it extends Te{constructor(j,He,mt,Rt,Xt,vn){super(j),this._changeDetectorRef=He,this._globalModel=mt,this._dateAdapter=Rt,this._rangeSelectionStrategy=Xt,this._subscriptions=new B.w0,this._animationDone=new R.x,this._actionsPortal=null,this._closeButtonText=vn.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(j){const He=this._model.selection,mt=j.value,Rt=He instanceof ge;if(Rt&&this._rangeSelectionStrategy){const Xt=this._rangeSelectionStrategy.selectionFinished(mt,He,j.event);this._model.updateSelection(Xt,this)}else mt&&(Rt||!this._dateAdapter.sameDate(mt,He))&&this._model.add(mt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(j,He){this._model=j?this._globalModel.clone():this._globalModel,this._actionsPortal=j,He&&this._changeDetectorRef.detectChanges()}}return it.\u0275fac=function(j){return new(j||it)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(we),f.Y36(T._A),f.Y36(v,8),f.Y36(ut))},it.\u0275cmp=f.Xpm({type:it,selectors:[["mat-datepicker-content"]],viewQuery:function(j,He){if(1&j&&f.Gf(te,5),2&j){let mt;f.iGM(mt=f.CRH())&&(He._calendar=mt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(j,He){1&j&&f.WFA("@transformPanel.done",function(){return He._animationDone.next()}),2&j&&(f.d8E("@transformPanel",He._animationState),f.ekj("mat-datepicker-content-touch",He.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[f.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(j,He){if(1&j&&(f.TgZ(0,"div",0)(1,"mat-calendar",1),f.NdJ("yearSelected",function(Rt){return He.datepicker._selectYear(Rt)})("monthSelected",function(Rt){return He.datepicker._selectMonth(Rt)})("viewChanged",function(Rt){return He.datepicker._viewChanged(Rt)})("_userSelection",function(Rt){return He._handleUserSelection(Rt)}),f.qZA(),f.YNc(2,ce,0,0,"ng-template",2),f.TgZ(3,"button",3),f.NdJ("focus",function(){return He._closeButtonFocused=!0})("blur",function(){return He._closeButtonFocused=!1})("click",function(){return He.datepicker.close()}),f._uU(4),f.qZA()()),2&j){let mt;f.ekj("mat-datepicker-content-container-with-custom-header",He.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",He._actionsPortal),f.uIk("aria-modal",!0)("aria-labelledby",null!==(mt=He._dialogLabelId)&&void 0!==mt?mt:void 0),f.xp6(1),f.Q6J("id",He.datepicker.id)("ngClass",He.datepicker.panelClass)("startAt",He.datepicker.startAt)("startView",He.datepicker.startView)("minDate",He.datepicker._getMinDate())("maxDate",He.datepicker._getMaxDate())("dateFilter",He.datepicker._getDateFilter())("headerComponent",He.datepicker.calendarHeaderComponent)("selected",He._getSelected())("dateClass",He.datepicker.dateClass)("comparisonStart",He.comparisonStart)("comparisonEnd",He.comparisonEnd)("@fadeInCalendar","enter"),f.xp6(1),f.Q6J("cdkPortalOutlet",He._actionsPortal),f.xp6(1),f.ekj("cdk-visually-hidden",!He._closeButtonFocused),f.Q6J("color",He.color||"primary"),f.xp6(1),f.Oqu(He._closeButtonText)}},dependencies:[M.mk,b.lW,e.mK,C.Pl,te],styles:[".mat-datepicker-content{display:block;border-radius:4px}.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;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:[Le.transformPanel,Le.fadeInCalendar]},changeDetection:0}),it})(),Qe=(()=>{class it{constructor(j,He,mt,Rt,Xt,vn,Vn){this._overlay=j,this._ngZone=He,this._viewContainerRef=mt,this._dateAdapter=Xt,this._dir=vn,this._model=Vn,this._inputStateChanges=B.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new f.vpe,this.monthSelected=new f.vpe,this.viewChanged=new f.vpe(!0),this.openedStream=new f.vpe,this.closedStream=new f.vpe,this._opened=!1,this.id="mat-datepicker-"+Ie++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new R.x,this._scrollStrategy=Rt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(j){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(j){this._color=j}get touchUi(){return this._touchUi}set touchUi(j){this._touchUi=(0,Oe.Ig)(j)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(j){const He=(0,Oe.Ig)(j);He!==this._disabled&&(this._disabled=He,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(j){this._restoreFocus=(0,Oe.Ig)(j)}get panelClass(){return this._panelClass}set panelClass(j){this._panelClass=(0,Oe.du)(j)}get opened(){return this._opened}set opened(j){(0,Oe.Ig)(j)?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}ngOnChanges(j){const He=j.xPosition||j.yPosition;if(He&&!He.firstChange&&this._overlayRef){const mt=this._overlayRef.getConfig().positionStrategy;mt instanceof A._G&&(this._setConnectedPositions(mt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(j){this._model.add(j)}_selectYear(j){this.yearSelected.emit(j)}_selectMonth(j){this.monthSelected.emit(j)}_viewChanged(j){this.viewChanged.emit(j)}registerInput(j){return this._inputStateChanges.unsubscribe(),this.datepickerInput=j,this._inputStateChanges=j.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(j){var He;this._actionsPortal=j,null===(He=this._componentRef)||void 0===He||He.instance._assignActions(j,!0)}removeActions(j){var He;j===this._actionsPortal&&(this._actionsPortal=null,null===(He=this._componentRef)||void 0===He||He.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,_e.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const He=this._componentRef.instance;He._startExitAnimation(),He._animationDone.pipe((0,ne.q)(1)).subscribe(()=>this._destroyOverlay())}const j=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(j)):j()}_applyPendingSelection(){var j,He;null===(j=this._componentRef)||void 0===j||null===(He=j.instance)||void 0===He||He._applyPendingSelection()}_forwardContentValues(j){j.datepicker=this,j.color=this.color,j._dialogLabelId=this.datepickerInput.getOverlayLabelId(),j._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const j=this.touchUi,He=new C.C5(st,this._viewContainerRef),mt=this._overlayRef=this._overlay.create(new A.X_({positionStrategy:j?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[j?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:j?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(j?"dialog":"popup")}));this._getCloseStream(mt).subscribe(Rt=>{Rt&&Rt.preventDefault(),this.close()}),mt.keydownEvents().subscribe(Rt=>{const Xt=Rt.keyCode;(Xt===O.LH||Xt===O.JH||Xt===O.oh||Xt===O.SV||Xt===O.Ku||Xt===O.VM)&&Rt.preventDefault()}),this._componentRef=mt.attach(He),this._forwardContentValues(this._componentRef.instance),j||this._ngZone.onStable.pipe((0,ne.q)(1)).subscribe(()=>mt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const j=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(j)}_setConnectedPositions(j){const He="end"===this.xPosition?"end":"start",mt="start"===He?"end":"start",Rt="above"===this.yPosition?"bottom":"top",Xt="top"===Rt?"bottom":"top";return j.withPositions([{originX:He,originY:Xt,overlayX:He,overlayY:Rt},{originX:He,originY:Rt,overlayX:He,overlayY:Xt},{originX:mt,originY:Xt,overlayX:mt,overlayY:Rt},{originX:mt,originY:Rt,overlayX:mt,overlayY:Xt}])}_getCloseStream(j){return(0,w.T)(j.backdropClick(),j.detachments(),j.keydownEvents().pipe((0,se.h)(He=>He.keyCode===O.hY&&!(0,O.Vb)(He)||this.datepickerInput&&(0,O.Vb)(He,"altKey")&&He.keyCode===O.LH)))}}return it.\u0275fac=function(j){return new(j||it)(f.Y36(A.aV),f.Y36(f.R0b),f.Y36(f.s_b),f.Y36(De),f.Y36(T._A,8),f.Y36(J.Is,8),f.Y36(we))},it.\u0275dir=f.lG2({type:it,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[f.TTD]}),it})(),Et=(()=>{class it extends Qe{}return it.\u0275fac=function(){let St;return function(He){return(St||(St=f.n5z(it)))(He||it)}}(),it.\u0275cmp=f.Xpm({type:it,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[f._Bn([r,{provide:Qe,useExisting:it}]),f.qOj],decls:0,vars:0,template:function(j,He){},encapsulation:2,changeDetection:0}),it})();class ke{constructor(St,j){this.target=St,this.targetElement=j,this.value=this.target.value}}let at=(()=>{class it{constructor(j,He,mt){this._elementRef=j,this._dateAdapter=He,this._dateFormats=mt,this.dateChange=new f.vpe,this.dateInput=new f.vpe,this.stateChanges=new R.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=B.w0.EMPTY,this._localeSubscription=B.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Rt=>{const Xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Rt.value));return!Xt||this._matchesFilter(Xt)?null:{matDatepickerFilter:!0}},this._minValidator=Rt=>{const Xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Rt.value)),vn=this._getMinDate();return!vn||!Xt||this._dateAdapter.compareDate(vn,Xt)<=0?null:{matDatepickerMin:{min:vn,actual:Xt}}},this._maxValidator=Rt=>{const Xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Rt.value)),vn=this._getMaxDate();return!vn||!Xt||this._dateAdapter.compareDate(vn,Xt)>=0?null:{matDatepickerMax:{max:vn,actual:Xt}}},this._lastValueValid=!1,this._localeSubscription=He.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(j){this._assignValueProgrammatically(j)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(j){const He=(0,Oe.Ig)(j),mt=this._elementRef.nativeElement;this._disabled!==He&&(this._disabled=He,this.stateChanges.next(void 0)),He&&this._isInitialized&&mt.blur&&mt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(j){this._model=j,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(He=>{if(this._shouldHandleChangeEvent(He)){const mt=this._getValueFromModel(He.selection);this._lastValueValid=this._isValidValue(mt),this._cvaOnChange(mt),this._onTouched(),this._formatValue(mt),this.dateInput.emit(new ke(this,this._elementRef.nativeElement)),this.dateChange.emit(new ke(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(j){It(j,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(j){this._validatorOnChange=j}validate(j){return this._validator?this._validator(j):null}writeValue(j){this._assignValueProgrammatically(j)}registerOnChange(j){this._cvaOnChange=j}registerOnTouched(j){this._onTouched=j}setDisabledState(j){this.disabled=j}_onKeydown(j){j.altKey&&j.keyCode===O.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),j.preventDefault())}_onInput(j){const He=this._lastValueValid;let mt=this._dateAdapter.parse(j,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(mt),mt=this._dateAdapter.getValidDateOrNull(mt);const Rt=!this._dateAdapter.sameDate(mt,this.value);!mt||Rt?this._cvaOnChange(mt):(j&&!this.value&&this._cvaOnChange(mt),He!==this._lastValueValid&&this._validatorOnChange()),Rt&&(this._assignValue(mt),this.dateInput.emit(new ke(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new ke(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(j){this._elementRef.nativeElement.value=null!=j?this._dateAdapter.format(j,this._dateFormats.display.dateInput):""}_assignValue(j){this._model?(this._assignValueToModel(j),this._pendingValue=null):this._pendingValue=j}_isValidValue(j){return!j||this._dateAdapter.isValid(j)}_parentDisabled(){return!1}_assignValueProgrammatically(j){j=this._dateAdapter.deserialize(j),this._lastValueValid=this._isValidValue(j),j=this._dateAdapter.getValidDateOrNull(j),this._assignValue(j),this._formatValue(j)}_matchesFilter(j){const He=this._getDateFilter();return!He||He(j)}}return it.\u0275fac=function(j){return new(j||it)(f.Y36(f.SBq),f.Y36(T._A,8),f.Y36(T.sG,8))},it.\u0275dir=f.lG2({type:it,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[f.TTD]}),it})();function It(it,St){const j=Object.keys(it);for(let He of j){const{previousValue:mt,currentValue:Rt}=it[He];if(!St.isDateInstance(mt)||!St.isDateInstance(Rt))return!0;if(!St.sameDate(mt,Rt))return!0}return!1}const jt={provide:E.JU,useExisting:(0,f.Gpc)(()=>Kt),multi:!0},an={provide:E.Cf,useExisting:(0,f.Gpc)(()=>Kt),multi:!0};let Kt=(()=>{class it extends at{constructor(j,He,mt,Rt){super(j,He,mt),this._formField=Rt,this._closedSubscription=B.w0.EMPTY,this._validator=E.kI.compose(super._getValidators())}set matDatepicker(j){j&&(this._datepicker=j,this._closedSubscription=j.closedStream.subscribe(()=>this._onTouched()),this._registerModel(j.registerInput(this)))}get min(){return this._min}set min(j){const He=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j));this._dateAdapter.sameDate(He,this._min)||(this._min=He,this._validatorOnChange())}get max(){return this._max}set max(j){const He=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j));this._dateAdapter.sameDate(He,this._max)||(this._max=He,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(j){const He=this._matchesFilter(this.value);this._dateFilter=j,this._matchesFilter(this.value)!==He&&this._validatorOnChange()}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()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(j){return j}_assignValueToModel(j){this._model&&this._model.updateSelection(j,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(j){return j.source!==this}}return it.\u0275fac=function(j){return new(j||it)(f.Y36(f.SBq),f.Y36(T._A,8),f.Y36(T.sG,8),f.Y36(z.G_,8))},it.\u0275dir=f.lG2({type:it,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(j,He){1&j&&f.NdJ("input",function(Rt){return He._onInput(Rt.target.value)})("change",function(){return He._onChange()})("blur",function(){return He._onBlur()})("keydown",function(Rt){return He._onKeydown(Rt)}),2&j&&(f.Ikx("disabled",He.disabled),f.uIk("aria-haspopup",He._datepicker?"dialog":null)("aria-owns",(null==He._datepicker?null:He._datepicker.opened)&&He._datepicker.id||null)("min",He.min?He._dateAdapter.toIso8601(He.min):null)("max",He.max?He._dateAdapter.toIso8601(He.max):null)("data-mat-calendar",He._datepicker?He._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[f._Bn([jt,an,{provide:F.Jk,useExisting:it}]),f.qOj]}),it})(),on=(()=>{class it{}return it.\u0275fac=function(j){return new(j||it)},it.\u0275dir=f.lG2({type:it,selectors:[["","matDatepickerToggleIcon",""]]}),it})(),bn=(()=>{class it{constructor(j,He,mt){this._intl=j,this._changeDetectorRef=He,this._stateChanges=B.w0.EMPTY;const Rt=Number(mt);this.tabIndex=Rt||0===Rt?Rt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(j){this._disabled=(0,Oe.Ig)(j)}ngOnChanges(j){j.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(j){this.datepicker&&!this.disabled&&(this.datepicker.open(),j.stopPropagation())}_watchStateChanges(){const j=this.datepicker?this.datepicker.stateChanges:(0,H.of)(),He=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,H.of)(),mt=this.datepicker?(0,w.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,H.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,w.T)(this._intl.changes,j,He,mt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return it.\u0275fac=function(j){return new(j||it)(f.Y36(ut),f.Y36(f.sBO),f.$8M("tabindex"))},it.\u0275cmp=f.Xpm({type:it,selectors:[["mat-datepicker-toggle"]],contentQueries:function(j,He,mt){if(1&j&&f.Suo(mt,on,5),2&j){let Rt;f.iGM(Rt=f.CRH())&&(He._customIcon=Rt.first)}},viewQuery:function(j,He){if(1&j&&f.Gf(k,5),2&j){let mt;f.iGM(mt=f.CRH())&&(He._button=mt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(j,He){1&j&&f.NdJ("click",function(Rt){return He._open(Rt)}),2&j&&(f.uIk("tabindex",null)("data-mat-calendar",He.datepicker?He.datepicker.id:null),f.ekj("mat-datepicker-toggle-active",He.datepicker&&He.datepicker.opened)("mat-accent",He.datepicker&&"accent"===He.datepicker.color)("mat-warn",He.datepicker&&"warn"===He.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[f.TTD],ngContentSelectors:W,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",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(j,He){1&j&&(f.F$t(be),f.TgZ(0,"button",0,1),f.YNc(2,N,2,0,"svg",2),f.Hsn(3),f.qZA()),2&j&&(f.Q6J("disabled",He.disabled)("disableRipple",He.disableRipple),f.uIk("aria-haspopup",He.datepicker?"dialog":null)("aria-label",He.ariaLabel||He._intl.openCalendarLabel)("tabindex",He.disabled?-1:He.tabIndex),f.xp6(2),f.Q6J("ngIf",!He._customIcon))},dependencies:[M.O5,b.lW],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),it})();const Tt=new f.OlP("MAT_DATE_RANGE_INPUT_PARENT"),Ge=(0,T.FD)((()=>{class it extends at{constructor(j,He,mt,Rt,Xt,vn,Vn,In){super(He,Vn,In),this._rangeInput=j,this._defaultErrorStateMatcher=mt,this._injector=Rt,this._parentForm=Xt,this._parentFormGroup=vn}ngOnInit(){const j=this._injector.get(E.a5,null,f.XFs.Self|f.XFs.Optional);j&&(this.ngControl=j)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}_onInput(j){super._onInput(j),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:j}){return j!==this._rangeInput._startInput&&j!==this._rangeInput._endInput}_assignValueProgrammatically(j){super._assignValueProgrammatically(j),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}}return it.\u0275fac=function(j){return new(j||it)(f.Y36(Tt),f.Y36(f.SBq),f.Y36(T.rD),f.Y36(f.zs3),f.Y36(E.F,8),f.Y36(E.sg,8),f.Y36(T._A,8),f.Y36(T.sG,8))},it.\u0275dir=f.lG2({type:it,features:[f.qOj]}),it})());let wt=(()=>{class it extends Ge{constructor(j,He,mt,Rt,Xt,vn,Vn,In){super(j,He,mt,Rt,Xt,vn,Vn,In),this._startValidator=Kn=>{const ti=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Kn.value)),$n=this._model?this._model.selection.end:null;return!ti||!$n||this._dateAdapter.compareDate(ti,$n)<=0?null:{matStartDateInvalid:{end:$n,actual:ti}}},this._validator=E.kI.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(j){return j.start}_shouldHandleChangeEvent(j){var He;return!(!super._shouldHandleChangeEvent(j)||(null!==(He=j.oldValue)&&void 0!==He&&He.start?j.selection.start&&!this._dateAdapter.compareDate(j.oldValue.start,j.selection.start):!j.selection.start))}_assignValueToModel(j){if(this._model){const He=new ge(j,this._model.selection.end);this._model.updateSelection(He,this)}}_formatValue(j){super._formatValue(j),this._rangeInput._handleChildValueChange()}getMirrorValue(){const j=this._elementRef.nativeElement,He=j.value;return He.length>0?He:j.placeholder}}return it.\u0275fac=function(j){return new(j||it)(f.Y36(Tt),f.Y36(f.SBq),f.Y36(T.rD),f.Y36(f.zs3),f.Y36(E.F,8),f.Y36(E.sg,8),f.Y36(T._A,8),f.Y36(T.sG,8))},it.\u0275dir=f.lG2({type:it,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:6,hostBindings:function(j,He){1&j&&f.NdJ("input",function(Rt){return He._onInput(Rt.target.value)})("change",function(){return He._onChange()})("keydown",function(Rt){return He._onKeydown(Rt)})("blur",function(){return He._onBlur()}),2&j&&(f.Ikx("disabled",He.disabled),f.uIk("id",He._rangeInput.id)("aria-haspopup",He._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==He._rangeInput.rangePicker?null:He._rangeInput.rangePicker.opened)&&He._rangeInput.rangePicker.id||null)("min",He._getMinDate()?He._dateAdapter.toIso8601(He._getMinDate()):null)("max",He._getMaxDate()?He._dateAdapter.toIso8601(He._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[f._Bn([{provide:E.JU,useExisting:it,multi:!0},{provide:E.Cf,useExisting:it,multi:!0}]),f.qOj]}),it})(),Ft=(()=>{class it extends Ge{constructor(j,He,mt,Rt,Xt,vn,Vn,In){super(j,He,mt,Rt,Xt,vn,Vn,In),this._endValidator=Kn=>{const ti=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Kn.value)),$n=this._model?this._model.selection.start:null;return!ti||!$n||this._dateAdapter.compareDate(ti,$n)>=0?null:{matEndDateInvalid:{start:$n,actual:ti}}},this._validator=E.kI.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(j){return j.end}_shouldHandleChangeEvent(j){var He;return!(!super._shouldHandleChangeEvent(j)||(null!==(He=j.oldValue)&&void 0!==He&&He.end?j.selection.end&&!this._dateAdapter.compareDate(j.oldValue.end,j.selection.end):!j.selection.end))}_assignValueToModel(j){if(this._model){const He=new ge(this._model.selection.start,j);this._model.updateSelection(He,this)}}_onKeydown(j){j.keyCode===O.ZH&&!this._elementRef.nativeElement.value&&this._rangeInput._startInput.focus(),super._onKeydown(j)}}return it.\u0275fac=function(j){return new(j||it)(f.Y36(Tt),f.Y36(f.SBq),f.Y36(T.rD),f.Y36(f.zs3),f.Y36(E.F,8),f.Y36(E.sg,8),f.Y36(T._A,8),f.Y36(T.sG,8))},it.\u0275dir=f.lG2({type:it,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(j,He){1&j&&f.NdJ("input",function(Rt){return He._onInput(Rt.target.value)})("change",function(){return He._onChange()})("keydown",function(Rt){return He._onKeydown(Rt)})("blur",function(){return He._onBlur()}),2&j&&(f.Ikx("disabled",He.disabled),f.uIk("aria-haspopup",He._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==He._rangeInput.rangePicker?null:He._rangeInput.rangePicker.opened)&&He._rangeInput.rangePicker.id||null)("min",He._getMinDate()?He._dateAdapter.toIso8601(He._getMinDate()):null)("max",He._getMaxDate()?He._dateAdapter.toIso8601(He._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[f._Bn([{provide:E.JU,useExisting:it,multi:!0},{provide:E.Cf,useExisting:it,multi:!0}]),f.qOj]}),it})(),ln=0,Cn=(()=>{class it{constructor(j,He,mt,Rt,Xt){if(this._changeDetectorRef=j,this._elementRef=He,this._dateAdapter=Rt,this._formField=Xt,this._closedSubscription=B.w0.EMPTY,this.id="mat-date-range-input-"+ln++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new R.x,null!=Xt&&Xt._elementRef.nativeElement.classList.contains("mat-mdc-form-field")){const vn=He.nativeElement.classList;vn.add("mat-mdc-input-element"),vn.add("mat-mdc-form-field-input-control")}this.ngControl=mt}get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){var j,He;const mt=(null===(j=this._startInput)||void 0===j?void 0:j._getPlaceholder())||"",Rt=(null===(He=this._endInput)||void 0===He?void 0:He._getPlaceholder())||"";return mt||Rt?`${mt} ${this.separator} ${Rt}`:""}get rangePicker(){return this._rangePicker}set rangePicker(j){j&&(this._model=j.registerInput(this),this._rangePicker=j,this._closedSubscription.unsubscribe(),this._closedSubscription=j.closedStream.subscribe(()=>{var He,mt;null===(He=this._startInput)||void 0===He||He._onTouched(),null===(mt=this._endInput)||void 0===mt||mt._onTouched()}),this._registerModel(this._model))}get required(){return!!this._required}set required(j){this._required=(0,Oe.Ig)(j)}get dateFilter(){return this._dateFilter}set dateFilter(j){const He=this._startInput,mt=this._endInput,Rt=He&&He._matchesFilter(He.value),Xt=mt&&mt._matchesFilter(He.value);this._dateFilter=j,He&&He._matchesFilter(He.value)!==Rt&&He._validatorOnChange(),mt&&mt._matchesFilter(mt.value)!==Xt&&mt._validatorOnChange()}get min(){return this._min}set min(j){const He=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j));this._dateAdapter.sameDate(He,this._min)||(this._min=He,this._revalidate())}get max(){return this._max}set max(j){const He=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(j));this._dateAdapter.sameDate(He,this._max)||(this._max=He,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(j){const He=(0,Oe.Ig)(j);He!==this._groupDisabled&&(this._groupDisabled=He,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const j=!!this._startInput&&this._startInput.isEmpty(),He=!!this._endInput&&this._endInput.isEmpty();return j&&He}setDescribedByIds(j){this._ariaDescribedBy=j.length?j.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),(0,w.T)(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(j){It(j,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(){return this._startInput?this._startInput.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const j=this._formField;return j&&j._hasFloatingLabel()?j._labelId:null}_updateFocus(j){this.focused=null!==j,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(j){this._startInput&&this._startInput._registerModel(j),this._endInput&&this._endInput._registerModel(j)}}return it.\u0275fac=function(j){return new(j||it)(f.Y36(f.sBO),f.Y36(f.SBq),f.Y36(E.gN,10),f.Y36(T._A,8),f.Y36(z.G_,8))},it.\u0275cmp=f.Xpm({type:it,selectors:[["mat-date-range-input"]],contentQueries:function(j,He,mt){if(1&j&&(f.Suo(mt,wt,5),f.Suo(mt,Ft,5)),2&j){let Rt;f.iGM(Rt=f.CRH())&&(He._startInput=Rt.first),f.iGM(Rt=f.CRH())&&(He._endInput=Rt.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(j,He){2&j&&(f.uIk("id",null)("aria-labelledby",He._getAriaLabelledby())("aria-describedby",He._ariaDescribedBy)("data-mat-calendar",He.rangePicker?He.rangePicker.id:null),f.ekj("mat-date-range-input-hide-placeholders",He._shouldHidePlaceholders())("mat-date-range-input-required",He.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[f._Bn([{provide:z.Eo,useExisting:it},{provide:Tt,useExisting:it}]),f.TTD],ngContentSelectors:Me,decls:9,vars:4,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-start-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-end-wrapper"]],template:function(j,He){1&j&&(f.F$t(ue),f.TgZ(0,"div",0),f.NdJ("cdkFocusChange",function(Rt){return He._updateFocus(Rt)}),f.TgZ(1,"div",1),f.Hsn(2),f.TgZ(3,"span",2),f._uU(4),f.qZA()(),f.TgZ(5,"span",3),f._uU(6),f.qZA(),f.TgZ(7,"div",4),f.Hsn(8,1),f.qZA()()),2&j&&(f.xp6(4),f.Oqu(He._getInputMirrorValue()),f.xp6(1),f.ekj("mat-date-range-input-separator-hidden",He._shouldHideSeparator()),f.xp6(1),f.Oqu(He.separator))},dependencies:[e.kH],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0}),it})(),gn=(()=>{class it extends Qe{_forwardContentValues(j){super._forwardContentValues(j);const He=this.datepickerInput;He&&(j.comparisonStart=He.comparisonStart,j.comparisonEnd=He.comparisonEnd)}}return it.\u0275fac=function(){let St;return function(He){return(St||(St=f.n5z(it)))(He||it)}}(),it.\u0275cmp=f.Xpm({type:it,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[f._Bn([g,i,{provide:Qe,useExisting:it}]),f.qOj],decls:0,vars:0,template:function(j,He){},encapsulation:2,changeDetection:0}),it})(),pt=(()=>{class it{}return it.\u0275fac=function(j){return new(j||it)},it.\u0275mod=f.oAB({type:it}),it.\u0275inj=f.cJS({providers:[ut,ie],imports:[M.ez,b.ot,A.U8,e.rt,C.eL,T.BQ,D.ZD]}),it})()},65412:($e,he,p)=>{"use strict";p.d(he,{WI:()=>ue,uw:()=>nt,H8:()=>Ne,vA:()=>ce,xY:()=>we,Is:()=>fe,so:()=>be,uh:()=>ge});var e=p(12687),A=p(98184),C=p(83353),M=p(84080),f=p(36895),b=p(94650),D=p(29521),T=p(77579),R=p(49770),B=p(39646),w=p(40445),H=p(68675);function O(r,u){}class J{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let G=(()=>{class r extends M.en{constructor(g,v,h,a,i,t,n,o){super(),this._elementRef=g,this._focusTrapFactory=v,this._config=a,this._interactivityChecker=i,this._ngZone=t,this._overlayRef=n,this._focusMonitor=o,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=s=>{this._portalOutlet.hasAttached();const l=this._portalOutlet.attachDomPortal(s);return this._contentAttached(),l},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=h}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(g){this._portalOutlet.hasAttached();const v=this._portalOutlet.attachComponentPortal(g);return this._contentAttached(),v}attachTemplatePortal(g){this._portalOutlet.hasAttached();const v=this._portalOutlet.attachTemplatePortal(g);return this._contentAttached(),v}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(g,v){this._interactivityChecker.isFocusable(g)||(g.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const h=()=>{g.removeEventListener("blur",h),g.removeEventListener("mousedown",h),g.removeAttribute("tabindex")};g.addEventListener("blur",h),g.addEventListener("mousedown",h)})),g.focus(v)}_focusByCssSelector(g,v){let h=this._elementRef.nativeElement.querySelector(g);h&&this._forceFocus(h,v)}_trapFocus(){const g=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||g.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(v=>{v||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const g=this._config.restoreFocus;let v=null;if("string"==typeof g?v=this._document.querySelector(g):"boolean"==typeof g?v=g?this._elementFocusedBeforeDialogWasOpened:null:g&&(v=g),this._config.restoreFocus&&v&&"function"==typeof v.focus){const h=(0,C.ht)(),a=this._elementRef.nativeElement;(!h||h===this._document.body||h===a||a.contains(h))&&(this._focusMonitor?(this._focusMonitor.focusVia(v,this._closeInteractionType),this._closeInteractionType=null):v.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const g=this._elementRef.nativeElement,v=(0,C.ht)();return g===v||g.contains(v)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,C.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return r.\u0275fac=function(g){return new(g||r)(b.Y36(b.SBq),b.Y36(e.qV),b.Y36(f.K0,8),b.Y36(J),b.Y36(e.ic),b.Y36(b.R0b),b.Y36(A.Iu),b.Y36(e.tE))},r.\u0275cmp=b.Xpm({type:r,selectors:[["cdk-dialog-container"]],viewQuery:function(g,v){if(1&g&&b.Gf(M.Pl,7),2&g){let h;b.iGM(h=b.CRH())&&(v._portalOutlet=h.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(g,v){2&g&&b.uIk("id",v._config.id||null)("role",v._config.role)("aria-modal",v._config.ariaModal)("aria-labelledby",v._config.ariaLabel?null:v._ariaLabelledBy)("aria-label",v._config.ariaLabel)("aria-describedby",v._config.ariaDescribedBy||null)},features:[b.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(g,v){1&g&&b.YNc(0,O,0,0,"ng-template",0)},dependencies:[M.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),r})();class se{constructor(u,g){this.overlayRef=u,this.config=g,this.closed=new T.x,this.disableClose=g.disableClose,this.backdropClick=u.backdropClick(),this.keydownEvents=u.keydownEvents(),this.outsidePointerEvents=u.outsidePointerEvents(),this.id=g.id,this.keydownEvents.subscribe(v=>{v.keyCode===D.hY&&!this.disableClose&&!(0,D.Vb)(v)&&(v.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(u,g){if(this.containerInstance){const v=this.closed;this.containerInstance._closeInteractionType=g?.focusOrigin||"program",this.overlayRef.dispose(),v.next(u),v.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(u="",g=""){return this.overlayRef.updateSize({width:u,height:g}),this}addPanelClass(u){return this.overlayRef.addPanelClass(u),this}removePanelClass(u){return this.overlayRef.removePanelClass(u),this}}const Oe=new b.OlP("DialogScrollStrategy"),_e=new b.OlP("DialogData"),Be=new b.OlP("DefaultDialogConfig"),z={provide:Oe,deps:[A.aV],useFactory:function E(r){return()=>r.scrollStrategies.block()}};let F=0,V=(()=>{class r{constructor(g,v,h,a,i,t){this._overlay=g,this._injector=v,this._defaultOptions=h,this._parentDialog=a,this._overlayContainer=i,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new T.x,this._afterOpenedAtThisLevel=new T.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,R.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,H.O)(void 0))),this._scrollStrategy=t}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(g,v){(v={...this._defaultOptions||new J,...v}).id=v.id||"cdk-dialog-"+F++,v.id&&this.getDialogById(v.id);const a=this._getOverlayConfig(v),i=this._overlay.create(a),t=new se(i,v),n=this._attachContainer(i,t,v);return t.containerInstance=n,this._attachDialogContent(g,t,n,v),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(t),t.closed.subscribe(()=>this._removeOpenDialog(t,!0)),this.afterOpened.next(t),t}closeAll(){X(this.openDialogs,g=>g.close())}getDialogById(g){return this.openDialogs.find(v=>v.id===g)}ngOnDestroy(){X(this._openDialogsAtThisLevel,g=>{!1===g.config.closeOnDestroy&&this._removeOpenDialog(g,!1)}),X(this._openDialogsAtThisLevel,g=>g.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(g){const v=new A.X_({positionStrategy:g.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:g.scrollStrategy||this._scrollStrategy(),panelClass:g.panelClass,hasBackdrop:g.hasBackdrop,direction:g.direction,minWidth:g.minWidth,minHeight:g.minHeight,maxWidth:g.maxWidth,maxHeight:g.maxHeight,width:g.width,height:g.height,disposeOnNavigation:g.closeOnNavigation});return g.backdropClass&&(v.backdropClass=g.backdropClass),v}_attachContainer(g,v,h){var a,i;const t=null!==(a=h.injector)&&void 0!==a?a:null===(i=h.viewContainerRef)||void 0===i?void 0:i.injector,n=[{provide:J,useValue:h},{provide:se,useValue:v},{provide:A.Iu,useValue:g}];let o;h.container?"function"==typeof h.container?o=h.container:(o=h.container.type,n.push(...h.container.providers(h))):o=G;const s=new M.C5(o,h.viewContainerRef,b.zs3.create({parent:t||this._injector,providers:n}),h.componentFactoryResolver);return g.attach(s).instance}_attachDialogContent(g,v,h,a){const i=this._createInjector(a,v,h);if(g instanceof b.Rgc){let t={$implicit:a.data,dialogRef:v};a.templateContext&&(t={...t,..."function"==typeof a.templateContext?a.templateContext():a.templateContext}),h.attachTemplatePortal(new M.UE(g,null,t,i))}else{const t=h.attachComponentPortal(new M.C5(g,a.viewContainerRef,i,a.componentFactoryResolver));v.componentInstance=t.instance}}_createInjector(g,v,h){const a=g&&g.viewContainerRef&&g.viewContainerRef.injector,i=[{provide:_e,useValue:g.data},{provide:se,useValue:v}];return g.providers&&("function"==typeof g.providers?i.push(...g.providers(v,g,h)):i.push(...g.providers)),g.direction&&(!a||!a.get(w.Is,null,b.XFs.Optional))&&i.push({provide:w.Is,useValue:{value:g.direction,change:(0,B.of)()}}),b.zs3.create({parent:g.injector||a||this._injector,providers:i})}_removeOpenDialog(g,v){const h=this.openDialogs.indexOf(g);h>-1&&(this.openDialogs.splice(h,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,i)=>{a?i.setAttribute("aria-hidden",a):i.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),v&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const g=this._overlayContainer.getContainerElement();if(g.parentElement){const v=g.parentElement.children;for(let h=v.length-1;h>-1;h--){const a=v[h];a!==g&&"SCRIPT"!==a.nodeName&&"STYLE"!==a.nodeName&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const g=this._parentDialog;return g?g._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return r.\u0275fac=function(g){return new(g||r)(b.LFG(A.aV),b.LFG(b.zs3),b.LFG(Be,8),b.LFG(r,12),b.LFG(A.Xj),b.LFG(Oe))},r.\u0275prov=b.Yz7({token:r,factory:r.\u0275fac}),r})();function X(r,u){let g=r.length;for(;g--;)u(r[g])}let q=(()=>{class r{}return r.\u0275fac=function(g){return new(g||r)},r.\u0275mod=b.oAB({type:r}),r.\u0275inj=b.cJS({providers:[V,z],imports:[A.U8,M.eL,e.rt,M.eL]}),r})();var pe=p(3238),le=p(56451),ye=p(39300),Ve=p(95698),ve=p(37340);function Ke(r,u){}const Ue={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},oe={dialogContainer:(0,ve.X$)("dialogContainer",[(0,ve.SB)("void, exit",(0,ve.oB)({opacity:0,transform:"scale(0.7)"})),(0,ve.SB)("enter",(0,ve.oB)({transform:"none"})),(0,ve.eR)("* => enter",(0,ve.ru)([(0,ve.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,ve.oB)({transform:"none",opacity:1})),(0,ve.IO)("@*",(0,ve.pV)(),{optional:!0})]),Ue),(0,ve.eR)("* => void, * => exit",(0,ve.ru)([(0,ve.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,ve.oB)({opacity:0})),(0,ve.IO)("@*",(0,ve.pV)(),{optional:!0})]),Ue)])};class ce{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Ue.params.enterAnimationDuration,this.exitAnimationDuration=Ue.params.exitAnimationDuration}}let k=(()=>{class r extends G{constructor(g,v,h,a,i,t,n,o){super(g,v,h,a,i,t,n,o),this._animationStateChanged=new b.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(g){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:g})}}return r.\u0275fac=function(g){return new(g||r)(b.Y36(b.SBq),b.Y36(e.qV),b.Y36(f.K0,8),b.Y36(ce),b.Y36(e.ic),b.Y36(b.R0b),b.Y36(A.Iu),b.Y36(e.tE))},r.\u0275cmp=b.Xpm({type:r,selectors:[["ng-component"]],features:[b.qOj],decls:0,vars:0,template:function(g,v){},encapsulation:2}),r})(),N=(()=>{class r extends k{constructor(g,v,h,a,i,t,n,o,s){super(g,v,h,a,i,t,n,s),this._changeDetectorRef=o,this._state="enter"}_onAnimationDone({toState:g,totalTime:v}){"enter"===g?this._openAnimationDone(v):"exit"===g&&this._animationStateChanged.next({state:"closed",totalTime:v})}_onAnimationStart({toState:g,totalTime:v}){"enter"===g?this._animationStateChanged.next({state:"opening",totalTime:v}):("exit"===g||"void"===g)&&this._animationStateChanged.next({state:"closing",totalTime:v})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Ue.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Ue.params.exitAnimationDuration}}}}return r.\u0275fac=function(g){return new(g||r)(b.Y36(b.SBq),b.Y36(e.qV),b.Y36(f.K0,8),b.Y36(ce),b.Y36(e.ic),b.Y36(b.R0b),b.Y36(A.Iu),b.Y36(b.sBO),b.Y36(e.tE))},r.\u0275cmp=b.Xpm({type:r,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(g,v){1&g&&b.WFA("@dialogContainer.start",function(a){return v._onAnimationStart(a)})("@dialogContainer.done",function(a){return v._onAnimationDone(a)}),2&g&&(b.Ikx("id",v._config.id),b.uIk("aria-modal",v._config.ariaModal)("role",v._config.role)("aria-labelledby",v._config.ariaLabel?null:v._ariaLabelledBy)("aria-label",v._config.ariaLabel)("aria-describedby",v._config.ariaDescribedBy||null),b.d8E("@dialogContainer",v._getAnimationState()))},features:[b.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(g,v){1&g&&b.YNc(0,Ke,0,0,"ng-template",0)},dependencies:[M.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[oe.dialogContainer]}}),r})();class be{constructor(u,g,v){this._ref=u,this._containerInstance=v,this._afterOpened=new T.x,this._beforeClosed=new T.x,this._state=0,this.disableClose=g.disableClose,this.id=u.id,v._animationStateChanged.pipe((0,ye.h)(h=>"opened"===h.state),(0,Ve.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),v._animationStateChanged.pipe((0,ye.h)(h=>"closed"===h.state),(0,Ve.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),u.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,le.T)(this.backdropClick(),this.keydownEvents().pipe((0,ye.h)(h=>h.keyCode===D.hY&&!this.disableClose&&!(0,D.Vb)(h)))).subscribe(h=>{this.disableClose||(h.preventDefault(),function W(r,u,g){r._closeInteractionType=u,r.close(g)}(this,"keydown"===h.type?"keyboard":"mouse"))})}close(u){this._result=u,this._containerInstance._animationStateChanged.pipe((0,ye.h)(g=>"closing"===g.state),(0,Ve.q)(1)).subscribe(g=>{this._beforeClosed.next(u),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),g.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(u){let g=this._ref.config.positionStrategy;return u&&(u.left||u.right)?u.left?g.left(u.left):g.right(u.right):g.centerHorizontally(),u&&(u.top||u.bottom)?u.top?g.top(u.top):g.bottom(u.bottom):g.centerVertically(),this._ref.updatePosition(),this}updateSize(u="",g=""){return this._ref.updateSize(u,g),this}addPanelClass(u){return this._ref.addPanelClass(u),this}removePanelClass(u){return this._ref.removePanelClass(u),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const ue=new b.OlP("MatDialogData"),Me=new b.OlP("mat-dialog-default-options"),ot=new b.OlP("mat-dialog-scroll-strategy"),tt={provide:ot,deps:[A.aV],useFactory:function ut(r){return()=>r.scrollStrategies.block()}};let vt=0,ee=(()=>{class r{constructor(g,v,h,a,i,t,n,o,s,l){this._overlay=g,this._defaultOptions=h,this._parentDialog=a,this._dialogRefConstructor=n,this._dialogContainerType=o,this._dialogDataToken=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new T.x,this._afterOpenedAtThisLevel=new T.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,R.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,H.O)(void 0))),this._scrollStrategy=t,this._dialog=v.get(V)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const g=this._parentDialog;return g?g._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(g,v){let h;(v={...this._defaultOptions||new ce,...v}).id=v.id||`${this._idPrefix}${vt++}`,v.scrollStrategy=v.scrollStrategy||this._scrollStrategy();const a=this._dialog.open(g,{...v,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:ce,useValue:v},{provide:J,useValue:v}]},templateContext:()=>({dialogRef:h}),providers:(i,t,n)=>{var o;return h=new this._dialogRefConstructor(i,v,n),h.updatePosition(null===(o=v)||void 0===o?void 0:o.position),[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:h}]}});return h.componentInstance=a.componentInstance,this.openDialogs.push(h),this.afterOpened.next(h),h.afterClosed().subscribe(()=>{const i=this.openDialogs.indexOf(h);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||this._getAfterAllClosed().next())}),h}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(g){return this.openDialogs.find(v=>v.id===g)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(g){let v=g.length;for(;v--;)g[v].close()}}return r.\u0275fac=function(g){b.$Z()},r.\u0275prov=b.Yz7({token:r,factory:r.\u0275fac}),r})(),nt=(()=>{class r extends ee{constructor(g,v,h,a,i,t,n,o){super(g,v,a,t,n,i,be,N,ue,o)}}return r.\u0275fac=function(g){return new(g||r)(b.LFG(A.aV),b.LFG(b.zs3),b.LFG(f.Ye,8),b.LFG(Me,8),b.LFG(ot),b.LFG(r,12),b.LFG(A.Xj),b.LFG(b.QbO,8))},r.\u0275prov=b.Yz7({token:r,factory:r.\u0275fac}),r})(),Ae=0,ge=(()=>{class r{constructor(g,v,h){this._dialogRef=g,this._elementRef=v,this._dialog=h,this.id="mat-dialog-title-"+Ae++}ngOnInit(){this._dialogRef||(this._dialogRef=function Ce(r,u){let g=r.nativeElement.parentElement;for(;g&&!g.classList.contains("mat-dialog-container");)g=g.parentElement;return g?u.find(v=>v.id===g.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const g=this._dialogRef._containerInstance;g&&!g._ariaLabelledBy&&(g._ariaLabelledBy=this.id)})}}return r.\u0275fac=function(g){return new(g||r)(b.Y36(be,8),b.Y36(b.SBq),b.Y36(nt))},r.\u0275dir=b.lG2({type:r,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(g,v){2&g&&b.Ikx("id",v.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),r})(),we=(()=>{class r{}return r.\u0275fac=function(g){return new(g||r)},r.\u0275dir=b.lG2({type:r,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),r})(),Ne=(()=>{class r{constructor(){this.align="start"}}return r.\u0275fac=function(g){return new(g||r)},r.\u0275dir=b.lG2({type:r,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(g,v){2&g&&b.ekj("mat-dialog-actions-align-center","center"===v.align)("mat-dialog-actions-align-end","end"===v.align)},inputs:{align:"align"}}),r})(),fe=(()=>{class r{}return r.\u0275fac=function(g){return new(g||r)},r.\u0275mod=b.oAB({type:r}),r.\u0275inj=b.cJS({providers:[nt,tt],imports:[q,A.U8,M.eL,pe.BQ,pe.BQ]}),r})()},44850:($e,he,p)=>{"use strict";p.d(he,{d:()=>M,t:()=>f});var e=p(94650),A=p(21281),C=p(3238);let M=(()=>{class b{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(T){this._vertical=(0,A.Ig)(T)}get inset(){return this._inset}set inset(T){this._inset=(0,A.Ig)(T)}}return b.\u0275fac=function(T){return new(T||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(T,R){2&T&&(e.uIk("aria-orientation",R.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",R.vertical)("mat-divider-horizontal",!R.vertical)("mat-divider-inset",R.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(T,R){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),b})(),f=(()=>{class b{}return b.\u0275fac=function(T){return new(T||b)},b.\u0275mod=e.oAB({type:b}),b.\u0275inj=e.cJS({imports:[C.BQ,C.BQ]}),b})()},37084:($e,he,p)=>{"use strict";p.d(he,{pp:()=>tt,To:()=>vt,ib:()=>be,HS:()=>ce,u4:()=>je,yz:()=>ot,yK:()=>ut});var e=p(94650),A=p(95017),C=p(21281),M=p(77579),f=p(50727);let b=0;const D=new e.OlP("CdkAccordion");let T=(()=>{class ee{constructor(){this._stateChanges=new M.x,this._openCloseAllActions=new M.x,this.id="cdk-accordion-"+b++,this._multi=!1}get multi(){return this._multi}set multi(Ae){this._multi=(0,C.Ig)(Ae)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Ae){this._stateChanges.next(Ae)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return ee.\u0275fac=function(Ae){return new(Ae||ee)},ee.\u0275dir=e.lG2({type:ee,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:D,useExisting:ee}]),e.TTD]}),ee})(),R=0,B=(()=>{class ee{constructor(Ae,Ee,ge){this.accordion=Ae,this._changeDetectorRef=Ee,this._expansionDispatcher=ge,this._openCloseAllSubscription=f.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+R++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=ge.listen((we,Ne)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ne&&this.id!==we&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(Ae){Ae=(0,C.Ig)(Ae),this._expanded!==Ae&&(this._expanded=Ae,this.expandedChange.emit(Ae),Ae?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Ae){this._disabled=(0,C.Ig)(Ae)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(Ae=>{this.disabled||(this.expanded=Ae)})}}return ee.\u0275fac=function(Ae){return new(Ae||ee)(e.Y36(D,12),e.Y36(e.sBO),e.Y36(A.A8))},ee.\u0275dir=e.lG2({type:ee,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:D,useValue:void 0}])]}),ee})(),w=(()=>{class ee{}return ee.\u0275fac=function(Ae){return new(Ae||ee)},ee.\u0275mod=e.oAB({type:ee}),ee.\u0275inj=e.cJS({}),ee})();var H=p(84080),O=p(36895),J=p(3238),ne=p(12687),G=p(71884),se=p(68675),Oe=p(39300),_e=p(95698),Be=p(29521),E=p(60515),z=p(56451),F=p(37340);const V=["body"];function X(ee,nt){}const q=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],pe=["mat-expansion-panel-header","*","mat-action-row"];function le(ee,nt){if(1&ee&&e._UZ(0,"span",2),2&ee){const Ae=e.oxw();e.Q6J("@indicatorRotate",Ae._getExpandedState())}}const ye=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Ve=["mat-panel-title","mat-panel-description","*"],ve=new e.OlP("MAT_ACCORDION"),Ke="225ms cubic-bezier(0.4,0.0,0.2,1)",Ue={indicatorRotate:(0,F.X$)("indicatorRotate",[(0,F.SB)("collapsed, void",(0,F.oB)({transform:"rotate(0deg)"})),(0,F.SB)("expanded",(0,F.oB)({transform:"rotate(180deg)"})),(0,F.eR)("expanded <=> collapsed, void => collapsed",(0,F.jt)(Ke))]),bodyExpansion:(0,F.X$)("bodyExpansion",[(0,F.SB)("collapsed, void",(0,F.oB)({height:"0px",visibility:"hidden"})),(0,F.SB)("expanded",(0,F.oB)({height:"*",visibility:"visible"})),(0,F.eR)("expanded <=> collapsed, void => collapsed",(0,F.jt)(Ke))])},oe=new e.OlP("MAT_EXPANSION_PANEL");let ce=(()=>{class ee{constructor(Ae,Ee){this._template=Ae,this._expansionPanel=Ee}}return ee.\u0275fac=function(Ae){return new(Ae||ee)(e.Y36(e.Rgc),e.Y36(oe,8))},ee.\u0275dir=e.lG2({type:ee,selectors:[["ng-template","matExpansionPanelContent",""]]}),ee})(),k=0;const N=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let be=(()=>{class ee extends B{constructor(Ae,Ee,ge,we,Ne,Ce,fe){super(Ae,Ee,ge),this._viewContainerRef=we,this._animationMode=Ce,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new M.x,this._headerId="mat-expansion-panel-header-"+k++,this._bodyAnimationDone=new M.x,this.accordion=Ae,this._document=Ne,this._bodyAnimationDone.pipe((0,G.x)((r,u)=>r.fromState===u.fromState&&r.toState===u.toState)).subscribe(r=>{"void"!==r.fromState&&("expanded"===r.toState?this.afterExpand.emit():"collapsed"===r.toState&&this.afterCollapse.emit())}),fe&&(this.hideToggle=fe.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Ae){this._hideToggle=(0,C.Ig)(Ae)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Ae){this._togglePosition=Ae}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,se.O)(null),(0,Oe.h)(()=>this.expanded&&!this._portal),(0,_e.q)(1)).subscribe(()=>{this._portal=new H.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Ae){this._inputChanges.next(Ae)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Ae=this._document.activeElement,Ee=this._body.nativeElement;return Ae===Ee||Ee.contains(Ae)}return!1}}return ee.\u0275fac=function(Ae){return new(Ae||ee)(e.Y36(ve,12),e.Y36(e.sBO),e.Y36(A.A8),e.Y36(e.s_b),e.Y36(O.K0),e.Y36(e.QbO,8),e.Y36(N,8))},ee.\u0275cmp=e.Xpm({type:ee,selectors:[["mat-expansion-panel"]],contentQueries:function(Ae,Ee,ge){if(1&Ae&&e.Suo(ge,ce,5),2&Ae){let we;e.iGM(we=e.CRH())&&(Ee._lazyContent=we.first)}},viewQuery:function(Ae,Ee){if(1&Ae&&e.Gf(V,5),2&Ae){let ge;e.iGM(ge=e.CRH())&&(Ee._body=ge.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Ae,Ee){2&Ae&&e.ekj("mat-expanded",Ee.expanded)("_mat-animation-noopable","NoopAnimations"===Ee._animationMode)("mat-expansion-panel-spacing",Ee._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:ve,useValue:void 0},{provide:oe,useExisting:ee}]),e.qOj,e.TTD],ngContentSelectors:pe,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Ae,Ee){1&Ae&&(e.F$t(q),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(we){return Ee._bodyAnimationDone.next(we)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,X,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&Ae&&(e.xp6(1),e.Q6J("@bodyExpansion",Ee._getExpandedState())("id",Ee.id),e.uIk("aria-labelledby",Ee._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",Ee._portal))},dependencies:[H.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[Ue.bodyExpansion]},changeDetection:0}),ee})();class ue{}const Me=(0,J.sb)(ue);let ot=(()=>{class ee extends Me{constructor(Ae,Ee,ge,we,Ne,Ce,fe){super(),this.panel=Ae,this._element=Ee,this._focusMonitor=ge,this._changeDetectorRef=we,this._animationMode=Ce,this._parentChangeSubscription=f.w0.EMPTY;const r=Ae.accordion?Ae.accordion._stateChanges.pipe((0,Oe.h)(u=>!(!u.hideToggle&&!u.togglePosition))):E.E;this.tabIndex=parseInt(fe||"")||0,this._parentChangeSubscription=(0,z.T)(Ae.opened,Ae.closed,r,Ae._inputChanges.pipe((0,Oe.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Ae.closed.pipe((0,Oe.h)(()=>Ae._containsFocus())).subscribe(()=>ge.focusVia(Ee,"program")),Ne&&(this.expandedHeight=Ne.expandedHeight,this.collapsedHeight=Ne.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const Ae=this._isExpanded();return Ae&&this.expandedHeight?this.expandedHeight:!Ae&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Ae){switch(Ae.keyCode){case Be.L_:case Be.K5:(0,Be.Vb)(Ae)||(Ae.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Ae))}}focus(Ae,Ee){Ae?this._focusMonitor.focusVia(this._element,Ae,Ee):this._element.nativeElement.focus(Ee)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Ae=>{Ae&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return ee.\u0275fac=function(Ae){return new(Ae||ee)(e.Y36(be,1),e.Y36(e.SBq),e.Y36(ne.tE),e.Y36(e.sBO),e.Y36(N,8),e.Y36(e.QbO,8),e.$8M("tabindex"))},ee.\u0275cmp=e.Xpm({type:ee,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Ae,Ee){1&Ae&&e.NdJ("click",function(){return Ee._toggle()})("keydown",function(we){return Ee._keydown(we)}),2&Ae&&(e.uIk("id",Ee.panel._headerId)("tabindex",Ee.tabIndex)("aria-controls",Ee._getPanelId())("aria-expanded",Ee._isExpanded())("aria-disabled",Ee.panel.disabled),e.Udp("height",Ee._getHeaderHeight()),e.ekj("mat-expanded",Ee._isExpanded())("mat-expansion-toggle-indicator-after","after"===Ee._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Ee._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Ee._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:Ve,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Ae,Ee){1&Ae&&(e.F$t(ye),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,le,1,1,"span",1)),2&Ae&&(e.xp6(4),e.Q6J("ngIf",Ee._showToggle()))},dependencies:[O.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[Ue.indicatorRotate]},changeDetection:0}),ee})(),je=(()=>{class ee{}return ee.\u0275fac=function(Ae){return new(Ae||ee)},ee.\u0275dir=e.lG2({type:ee,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),ee})(),ut=(()=>{class ee{}return ee.\u0275fac=function(Ae){return new(Ae||ee)},ee.\u0275dir=e.lG2({type:ee,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),ee})(),tt=(()=>{class ee extends T{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(Ae){this._hideToggle=(0,C.Ig)(Ae)}ngAfterContentInit(){this._headers.changes.pipe((0,se.O)(this._headers)).subscribe(Ae=>{this._ownHeaders.reset(Ae.filter(Ee=>Ee.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ne.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Ae){this._keyManager.onKeydown(Ae)}_handleHeaderFocus(Ae){this._keyManager.updateActiveItem(Ae)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return ee.\u0275fac=function(){let nt;return function(Ee){return(nt||(nt=e.n5z(ee)))(Ee||ee)}}(),ee.\u0275dir=e.lG2({type:ee,selectors:[["mat-accordion"]],contentQueries:function(Ae,Ee,ge){if(1&Ae&&e.Suo(ge,ot,5),2&Ae){let we;e.iGM(we=e.CRH())&&(Ee._headers=we)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Ae,Ee){2&Ae&&e.ekj("mat-accordion-multi",Ee.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:ve,useExisting:ee}]),e.qOj]}),ee})(),vt=(()=>{class ee{}return ee.\u0275fac=function(Ae){return new(Ae||ee)},ee.\u0275mod=e.oAB({type:ee}),ee.\u0275inj=e.cJS({imports:[O.ez,J.BQ,w,H.eL]}),ee})()},59549:($e,he,p)=>{"use strict";p.d(he,{Eo:()=>ce,G_:()=>Ne,KE:()=>Ce,R9:()=>ee,TO:()=>Ue,UY:()=>je,bx:()=>Me,hX:()=>ot,lN:()=>fe});var e=p(49643),A=p(36895),C=p(94650),M=p(3238),f=p(40445),b=p(21281),D=p(77579),T=p(56451),R=p(54968),B=p(68675),w=p(82722),H=p(95698),O=p(37340),J=p(83353);const ne=["connectionContainer"],G=["inputContainer"],se=["label"];function Oe(r,u){1&r&&(C.ynx(0),C.TgZ(1,"div",14),C._UZ(2,"div",15)(3,"div",16)(4,"div",17),C.qZA(),C.TgZ(5,"div",18),C._UZ(6,"div",15)(7,"div",16)(8,"div",17),C.qZA(),C.BQk())}function _e(r,u){if(1&r){const g=C.EpF();C.TgZ(0,"div",19),C.NdJ("cdkObserveContent",function(){C.CHM(g);const h=C.oxw();return C.KtG(h.updateOutlineGap())}),C.Hsn(1,1),C.qZA()}if(2&r){const g=C.oxw();C.Q6J("cdkObserveContentDisabled","outline"!=g.appearance)}}function Be(r,u){if(1&r&&(C.ynx(0),C.Hsn(1,2),C.TgZ(2,"span"),C._uU(3),C.qZA(),C.BQk()),2&r){const g=C.oxw(2);C.xp6(3),C.Oqu(g._control.placeholder)}}function E(r,u){1&r&&C.Hsn(0,3,["*ngSwitchCase","true"])}function z(r,u){1&r&&(C.TgZ(0,"span",23),C._uU(1," *"),C.qZA())}function F(r,u){if(1&r){const g=C.EpF();C.TgZ(0,"label",20,21),C.NdJ("cdkObserveContent",function(){C.CHM(g);const h=C.oxw();return C.KtG(h.updateOutlineGap())}),C.YNc(2,Be,4,1,"ng-container",12),C.YNc(3,E,1,0,"ng-content",12),C.YNc(4,z,2,0,"span",22),C.qZA()}if(2&r){const g=C.oxw();C.ekj("mat-empty",g._control.empty&&!g._shouldAlwaysFloat())("mat-form-field-empty",g._control.empty&&!g._shouldAlwaysFloat())("mat-accent","accent"==g.color)("mat-warn","warn"==g.color),C.Q6J("cdkObserveContentDisabled","outline"!=g.appearance)("id",g._labelId)("ngSwitch",g._hasLabel()),C.uIk("for",g._control.id)("aria-owns",g._control.id),C.xp6(2),C.Q6J("ngSwitchCase",!1),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(1),C.Q6J("ngIf",!g.hideRequiredMarker&&g._control.required&&!g._control.disabled)}}function V(r,u){1&r&&(C.TgZ(0,"div",24),C.Hsn(1,4),C.qZA())}function X(r,u){if(1&r&&(C.TgZ(0,"div",25),C._UZ(1,"span",26),C.qZA()),2&r){const g=C.oxw();C.xp6(1),C.ekj("mat-accent","accent"==g.color)("mat-warn","warn"==g.color)}}function q(r,u){if(1&r&&(C.TgZ(0,"div"),C.Hsn(1,5),C.qZA()),2&r){const g=C.oxw();C.Q6J("@transitionMessages",g._subscriptAnimationState)}}function pe(r,u){if(1&r&&(C.TgZ(0,"div",30),C._uU(1),C.qZA()),2&r){const g=C.oxw(2);C.Q6J("id",g._hintLabelId),C.xp6(1),C.Oqu(g.hintLabel)}}function le(r,u){if(1&r&&(C.TgZ(0,"div",27),C.YNc(1,pe,2,2,"div",28),C.Hsn(2,6),C._UZ(3,"div",29),C.Hsn(4,7),C.qZA()),2&r){const g=C.oxw();C.Q6J("@transitionMessages",g._subscriptAnimationState),C.xp6(1),C.Q6J("ngIf",g.hintLabel)}}const ye=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ve=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let ve=0;const Ke=new C.OlP("MatError");let Ue=(()=>{class r{constructor(g,v){this.id="mat-error-"+ve++,g||v.nativeElement.setAttribute("aria-live","polite")}}return r.\u0275fac=function(g){return new(g||r)(C.$8M("aria-live"),C.Y36(C.SBq))},r.\u0275dir=C.lG2({type:r,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(g,v){2&g&&C.uIk("id",v.id)},inputs:{id:"id"},features:[C._Bn([{provide:Ke,useExisting:r}])]}),r})();const oe={transitionMessages:(0,O.X$)("transitionMessages",[(0,O.SB)("enter",(0,O.oB)({opacity:1,transform:"translateY(0%)"})),(0,O.eR)("void => enter",[(0,O.oB)({opacity:0,transform:"translateY(-5px)"}),(0,O.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ce=(()=>{class r{}return r.\u0275fac=function(g){return new(g||r)},r.\u0275dir=C.lG2({type:r}),r})(),W=0;const ue=new C.OlP("MatHint");let Me=(()=>{class r{constructor(){this.align="start",this.id="mat-hint-"+W++}}return r.\u0275fac=function(g){return new(g||r)},r.\u0275dir=C.lG2({type:r,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(g,v){2&g&&(C.uIk("id",v.id)("align",null),C.ekj("mat-form-field-hint-end","end"===v.align))},inputs:{align:"align",id:"id"},features:[C._Bn([{provide:ue,useExisting:r}])]}),r})(),ot=(()=>{class r{}return r.\u0275fac=function(g){return new(g||r)},r.\u0275dir=C.lG2({type:r,selectors:[["mat-label"]]}),r})(),je=(()=>{class r{}return r.\u0275fac=function(g){return new(g||r)},r.\u0275dir=C.lG2({type:r,selectors:[["mat-placeholder"]]}),r})();const ut=new C.OlP("MatPrefix"),vt=new C.OlP("MatSuffix");let ee=(()=>{class r{}return r.\u0275fac=function(g){return new(g||r)},r.\u0275dir=C.lG2({type:r,selectors:[["","matSuffix",""]],features:[C._Bn([{provide:vt,useExisting:r}])]}),r})(),nt=0;const ge=(0,M.pj)(class{constructor(r){this._elementRef=r}},"primary"),we=new C.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ne=new C.OlP("MatFormField");let Ce=(()=>{class r extends ge{constructor(g,v,h,a,i,t,n){super(g),this._changeDetectorRef=v,this._dir=h,this._defaults=a,this._platform=i,this._ngZone=t,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new D.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+nt++,this._labelId="mat-form-field-label-"+nt++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==n,this.appearance=a?.appearance||"legacy",a&&(this._hideRequiredMarker=Boolean(a.hideRequiredMarker),a.color&&(this.color=this.defaultColor=a.color))}get appearance(){return this._appearance}set appearance(g){var v;const h=this._appearance;this._appearance=g||(null===(v=this._defaults)||void 0===v?void 0:v.appearance)||"legacy","outline"===this._appearance&&h!==g&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(g){this._hideRequiredMarker=(0,b.Ig)(g)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(g){this._hintLabel=g,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(g){g!==this._floatLabel&&(this._floatLabel=g||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(g){this._explicitFormFieldControl=g}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const g=this._control;g.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${g.controlType}`),g.stateChanges.pipe((0,B.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),g.ngControl&&g.ngControl.valueChanges&&g.ngControl.valueChanges.pipe((0,w.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,T.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,B.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,B.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(g){const v=this._control?this._control.ngControl:null;return v&&v[g]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,R.R)(this._label.nativeElement,"transitionend").pipe((0,H.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let g=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&g.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const v=this._hintChildren?this._hintChildren.find(a=>"start"===a.align):null,h=this._hintChildren?this._hintChildren.find(a=>"end"===a.align):null;v?g.push(v.id):this._hintLabel&&g.push(this._hintLabelId),h&&g.push(h.id)}else this._errorChildren&&g.push(...this._errorChildren.map(v=>v.id));this._control.setDescribedByIds(g)}}_validateControlChild(){}updateOutlineGap(){const g=this._label?this._label.nativeElement:null,v=this._connectionContainerRef.nativeElement,h=".mat-form-field-outline-start",a=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!g||!g.children.length||!g.textContent.trim()){const s=v.querySelectorAll(`${h}, ${a}`);for(let l=0;l0?.75*S+10:0}for(let s=0;s{class r{}return r.\u0275fac=function(g){return new(g||r)},r.\u0275mod=C.oAB({type:r}),r.\u0275inj=C.cJS({imports:[A.ez,M.BQ,e.Q8,M.BQ]}),r})()},97392:($e,he,p)=>{"use strict";p.d(he,{Hw:()=>W,Ps:()=>ue,jv:()=>q});var e=p(94650),A=p(3238),C=p(21281),M=p(36895),f=p(39646),b=p(62843),D=p(4128),T=p(50727),R=p(18505),B=p(54004),w=p(70262),H=p(28746),O=p(13099),J=p(95698),ne=p(80529),G=p(11481);const se=["*"];let Oe;function Be(Me){var ot;return(null===(ot=function _e(){if(void 0===Oe&&(Oe=null,typeof window<"u")){const Me=window;void 0!==Me.trustedTypes&&(Oe=Me.trustedTypes.createPolicy("angular#components",{createHTML:ot=>ot}))}return Oe}())||void 0===ot?void 0:ot.createHTML(Me))||Me}function E(Me){return Error(`Unable to find icon with the name "${Me}"`)}function F(Me){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Me}".`)}function V(Me){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Me}".`)}class X{constructor(ot,je,ut){this.url=ot,this.svgText=je,this.options=ut}}let q=(()=>{class Me{constructor(je,ut,tt,vt){this._httpClient=je,this._sanitizer=ut,this._errorHandler=vt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=tt}addSvgIcon(je,ut,tt){return this.addSvgIconInNamespace("",je,ut,tt)}addSvgIconLiteral(je,ut,tt){return this.addSvgIconLiteralInNamespace("",je,ut,tt)}addSvgIconInNamespace(je,ut,tt,vt){return this._addSvgIconConfig(je,ut,new X(tt,null,vt))}addSvgIconResolver(je){return this._resolvers.push(je),this}addSvgIconLiteralInNamespace(je,ut,tt,vt){const ee=this._sanitizer.sanitize(e.q3G.HTML,tt);if(!ee)throw V(tt);const nt=Be(ee);return this._addSvgIconConfig(je,ut,new X("",nt,vt))}addSvgIconSet(je,ut){return this.addSvgIconSetInNamespace("",je,ut)}addSvgIconSetLiteral(je,ut){return this.addSvgIconSetLiteralInNamespace("",je,ut)}addSvgIconSetInNamespace(je,ut,tt){return this._addSvgIconSetConfig(je,new X(ut,null,tt))}addSvgIconSetLiteralInNamespace(je,ut,tt){const vt=this._sanitizer.sanitize(e.q3G.HTML,ut);if(!vt)throw V(ut);const ee=Be(vt);return this._addSvgIconSetConfig(je,new X("",ee,tt))}registerFontClassAlias(je,ut=je){return this._fontCssClassesByAlias.set(je,ut),this}classNameForFontAlias(je){return this._fontCssClassesByAlias.get(je)||je}setDefaultFontSetClass(...je){return this._defaultFontSetClass=je,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(je){const ut=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,je);if(!ut)throw F(je);const tt=this._cachedIconsByUrl.get(ut);return tt?(0,f.of)(ye(tt)):this._loadSvgIconFromConfig(new X(je,null)).pipe((0,R.b)(vt=>this._cachedIconsByUrl.set(ut,vt)),(0,B.U)(vt=>ye(vt)))}getNamedSvgIcon(je,ut=""){const tt=Ve(ut,je);let vt=this._svgIconConfigs.get(tt);if(vt)return this._getSvgFromConfig(vt);if(vt=this._getIconConfigFromResolvers(ut,je),vt)return this._svgIconConfigs.set(tt,vt),this._getSvgFromConfig(vt);const ee=this._iconSetConfigs.get(ut);return ee?this._getSvgFromIconSetConfigs(je,ee):(0,b._)(E(tt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(je){return je.svgText?(0,f.of)(ye(this._svgElementFromConfig(je))):this._loadSvgIconFromConfig(je).pipe((0,B.U)(ut=>ye(ut)))}_getSvgFromIconSetConfigs(je,ut){const tt=this._extractIconWithNameFromAnySet(je,ut);if(tt)return(0,f.of)(tt);const vt=ut.filter(ee=>!ee.svgText).map(ee=>this._loadSvgIconSetFromConfig(ee).pipe((0,w.K)(nt=>{const Ee=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,ee.url)} failed: ${nt.message}`;return this._errorHandler.handleError(new Error(Ee)),(0,f.of)(null)})));return(0,D.D)(vt).pipe((0,B.U)(()=>{const ee=this._extractIconWithNameFromAnySet(je,ut);if(!ee)throw E(je);return ee}))}_extractIconWithNameFromAnySet(je,ut){for(let tt=ut.length-1;tt>=0;tt--){const vt=ut[tt];if(vt.svgText&&vt.svgText.toString().indexOf(je)>-1){const ee=this._svgElementFromConfig(vt),nt=this._extractSvgIconFromSet(ee,je,vt.options);if(nt)return nt}}return null}_loadSvgIconFromConfig(je){return this._fetchIcon(je).pipe((0,R.b)(ut=>je.svgText=ut),(0,B.U)(()=>this._svgElementFromConfig(je)))}_loadSvgIconSetFromConfig(je){return je.svgText?(0,f.of)(null):this._fetchIcon(je).pipe((0,R.b)(ut=>je.svgText=ut))}_extractSvgIconFromSet(je,ut,tt){const vt=je.querySelector(`[id="${ut}"]`);if(!vt)return null;const ee=vt.cloneNode(!0);if(ee.removeAttribute("id"),"svg"===ee.nodeName.toLowerCase())return this._setSvgAttributes(ee,tt);if("symbol"===ee.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ee),tt);const nt=this._svgElementFromString(Be(""));return nt.appendChild(ee),this._setSvgAttributes(nt,tt)}_svgElementFromString(je){const ut=this._document.createElement("DIV");ut.innerHTML=je;const tt=ut.querySelector("svg");if(!tt)throw Error(" tag not found");return tt}_toSvgElement(je){const ut=this._svgElementFromString(Be("")),tt=je.attributes;for(let vt=0;vtBe(ge)),(0,H.x)(()=>this._inProgressUrlFetches.delete(nt)),(0,O.B)());return this._inProgressUrlFetches.set(nt,Ee),Ee}_addSvgIconConfig(je,ut,tt){return this._svgIconConfigs.set(Ve(je,ut),tt),this}_addSvgIconSetConfig(je,ut){const tt=this._iconSetConfigs.get(je);return tt?tt.push(ut):this._iconSetConfigs.set(je,[ut]),this}_svgElementFromConfig(je){if(!je.svgElement){const ut=this._svgElementFromString(je.svgText);this._setSvgAttributes(ut,je.options),je.svgElement=ut}return je.svgElement}_getIconConfigFromResolvers(je,ut){for(let tt=0;ttot?ot.pathname+ot.search:""}}}),k=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],N=k.map(Me=>`[${Me}]`).join(", "),be=/^url\(['"]?#(.*?)['"]?\)$/;let W=(()=>{class Me extends Ke{constructor(je,ut,tt,vt,ee,nt){super(je),this._iconRegistry=ut,this._location=vt,this._errorHandler=ee,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=T.w0.EMPTY,nt&&(nt.color&&(this.color=this.defaultColor=nt.color),nt.fontSet&&(this.fontSet=nt.fontSet)),tt||je.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(je){this._inline=(0,C.Ig)(je)}get svgIcon(){return this._svgIcon}set svgIcon(je){je!==this._svgIcon&&(je?this._updateSvgIcon(je):this._svgIcon&&this._clearSvgElement(),this._svgIcon=je)}get fontSet(){return this._fontSet}set fontSet(je){const ut=this._cleanupFontValue(je);ut!==this._fontSet&&(this._fontSet=ut,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(je){const ut=this._cleanupFontValue(je);ut!==this._fontIcon&&(this._fontIcon=ut,this._updateFontIconClasses())}_splitIconName(je){if(!je)return["",""];const ut=je.split(":");switch(ut.length){case 1:return["",ut[0]];case 2:return ut;default:throw Error(`Invalid icon name: "${je}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const je=this._elementsWithExternalReferences;if(je&&je.size){const ut=this._location.getPathname();ut!==this._previousPath&&(this._previousPath=ut,this._prependPathToReferences(ut))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(je){this._clearSvgElement();const ut=this._location.getPathname();this._previousPath=ut,this._cacheChildrenWithExternalReferences(je),this._prependPathToReferences(ut),this._elementRef.nativeElement.appendChild(je)}_clearSvgElement(){const je=this._elementRef.nativeElement;let ut=je.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();ut--;){const tt=je.childNodes[ut];(1!==tt.nodeType||"svg"===tt.nodeName.toLowerCase())&&tt.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const je=this._elementRef.nativeElement,ut=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(tt=>tt.length>0);this._previousFontSetClass.forEach(tt=>je.classList.remove(tt)),ut.forEach(tt=>je.classList.add(tt)),this._previousFontSetClass=ut,this.fontIcon!==this._previousFontIconClass&&!ut.includes("mat-ligature-font")&&(this._previousFontIconClass&&je.classList.remove(this._previousFontIconClass),this.fontIcon&&je.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(je){return"string"==typeof je?je.trim().split(" ")[0]:je}_prependPathToReferences(je){const ut=this._elementsWithExternalReferences;ut&&ut.forEach((tt,vt)=>{tt.forEach(ee=>{vt.setAttribute(ee.name,`url('${je}#${ee.value}')`)})})}_cacheChildrenWithExternalReferences(je){const ut=je.querySelectorAll(N),tt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let vt=0;vt{const nt=ut[vt],Ae=nt.getAttribute(ee),Ee=Ae?Ae.match(be):null;if(Ee){let ge=tt.get(nt);ge||(ge=[],tt.set(nt,ge)),ge.push({name:ee,value:Ee[1]})}})}_updateSvgIcon(je){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),je){const[ut,tt]=this._splitIconName(je);ut&&(this._svgNamespace=ut),tt&&(this._svgName=tt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(tt,ut).pipe((0,J.q)(1)).subscribe(vt=>this._setSvgElement(vt),vt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${ut}:${tt}! ${vt.message}`))})}}}return Me.\u0275fac=function(je){return new(je||Me)(e.Y36(e.SBq),e.Y36(q),e.$8M("aria-hidden"),e.Y36(oe),e.Y36(e.qLn),e.Y36(Ue,8))},Me.\u0275cmp=e.Xpm({type:Me,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(je,ut){2&je&&(e.uIk("data-mat-icon-type",ut._usingFontIcon()?"font":"svg")("data-mat-icon-name",ut._svgName||ut.fontIcon)("data-mat-icon-namespace",ut._svgNamespace||ut.fontSet),e.ekj("mat-icon-inline",ut.inline)("mat-icon-no-color","primary"!==ut.color&&"accent"!==ut.color&&"warn"!==ut.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:se,decls:1,vars:0,template:function(je,ut){1&je&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),Me})(),ue=(()=>{class Me{}return Me.\u0275fac=function(je){return new(je||Me)},Me.\u0275mod=e.oAB({type:Me}),Me.\u0275inj=e.cJS({imports:[A.BQ,A.BQ]}),Me})()},284:($e,he,p)=>{"use strict";p.d(he,{Jk:()=>B,Nt:()=>J,c:()=>ne});var e=p(21281),A=p(83353),C=p(39349),M=p(94650),f=p(24006),b=p(3238),D=p(59549),T=p(77579);const B=new M.OlP("MAT_INPUT_VALUE_ACCESSOR"),w=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let H=0;const O=(0,b.FD)(class{constructor(G,se,Oe,_e){this._defaultErrorStateMatcher=G,this._parentForm=se,this._parentFormGroup=Oe,this.ngControl=_e,this.stateChanges=new T.x}});let J=(()=>{class G extends O{constructor(Oe,_e,Be,E,z,F,V,X,q,pe){super(F,E,z,Be),this._elementRef=Oe,this._platform=_e,this._autofillMonitor=X,this._formField=pe,this._uid="mat-input-"+H++,this.focused=!1,this.stateChanges=new T.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Ve=>(0,A.qK)().has(Ve)),this._iOSKeyupListener=Ve=>{const ve=Ve.target;!ve.value&&0===ve.selectionStart&&0===ve.selectionEnd&&(ve.setSelectionRange(1,1),ve.setSelectionRange(0,0))};const le=this._elementRef.nativeElement,ye=le.nodeName.toLowerCase();this._inputValueAccessor=V||le,this._previousNativeValue=this.value,this.id=this.id,_e.IOS&&q.runOutsideAngular(()=>{Oe.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ye,this._isTextarea="textarea"===ye,this._isInFormField=!!pe,this._isNativeSelect&&(this.controlType=le.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Oe){this._disabled=(0,e.Ig)(Oe),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(Oe){this._id=Oe||this._uid}get required(){var Oe,_e,Be,E;return null!==(Oe=null!==(_e=this._required)&&void 0!==_e?_e:null===(Be=this.ngControl)||void 0===Be||null===(E=Be.control)||void 0===E?void 0:E.hasValidator(f.kI.required))&&void 0!==Oe&&Oe}set required(Oe){this._required=(0,e.Ig)(Oe)}get type(){return this._type}set type(Oe){this._type=Oe||"text",this._validateType(),!this._isTextarea&&(0,A.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(Oe){Oe!==this.value&&(this._inputValueAccessor.value=Oe,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Oe){this._readonly=(0,e.Ig)(Oe)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(Oe=>{this.autofilled=Oe.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(Oe){this._elementRef.nativeElement.focus(Oe)}_focusChanged(Oe){Oe!==this.focused&&(this.focused=Oe,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var Oe;const _e=this._formField,Be=!_e||"legacy"!==_e.appearance||null!==(Oe=_e._hasLabel)&&void 0!==Oe&&Oe.call(_e)?this.placeholder:null;if(Be!==this._previousPlaceholder){const E=this._elementRef.nativeElement;this._previousPlaceholder=Be,Be?E.setAttribute("placeholder",Be):E.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const Oe=this._elementRef.nativeElement.value;this._previousNativeValue!==Oe&&(this._previousNativeValue=Oe,this.stateChanges.next())}_validateType(){w.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let Oe=this._elementRef.nativeElement.validity;return Oe&&Oe.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const Oe=this._elementRef.nativeElement,_e=Oe.options[0];return this.focused||Oe.multiple||!this.empty||!!(Oe.selectedIndex>-1&&_e&&_e.label)}return this.focused||!this.empty}setDescribedByIds(Oe){Oe.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Oe.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Oe=this._elementRef.nativeElement;return this._isNativeSelect&&(Oe.multiple||Oe.size>1)}}return G.\u0275fac=function(Oe){return new(Oe||G)(M.Y36(M.SBq),M.Y36(A.t4),M.Y36(f.a5,10),M.Y36(f.F,8),M.Y36(f.sg,8),M.Y36(b.rD),M.Y36(B,10),M.Y36(C.Lq),M.Y36(M.R0b),M.Y36(D.G_,8))},G.\u0275dir=M.lG2({type:G,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(Oe,_e){1&Oe&&M.NdJ("focus",function(){return _e._focusChanged(!0)})("blur",function(){return _e._focusChanged(!1)})("input",function(){return _e._onInput()}),2&Oe&&(M.Ikx("disabled",_e.disabled)("required",_e.required),M.uIk("id",_e.id)("data-placeholder",_e.placeholder)("name",_e.name||null)("readonly",_e.readonly&&!_e._isNativeSelect||null)("aria-invalid",_e.empty&&_e.required?null:_e.errorState)("aria-required",_e.required),M.ekj("mat-input-server",_e._isServer)("mat-native-select-inline",_e._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[M._Bn([{provide:D.Eo,useExisting:G}]),M.qOj,M.TTD]}),G})(),ne=(()=>{class G{}return G.\u0275fac=function(Oe){return new(Oe||G)},G.\u0275mod=M.oAB({type:G}),G.\u0275inj=M.cJS({providers:[b.rD],imports:[C.Ky,D.lN,b.BQ,C.Ky,D.lN]}),G})()},96338:($e,he,p)=>{"use strict";p.d(he,{Tg:()=>Ve,i$:()=>q,ie:()=>N});var e=p(36895),A=p(94650),C=p(3238),M=p(21281),f=p(77579),b=p(82722),H=(p(68675),p(12687),p(95017),p(29521),p(24006),p(44850));const O=["*"],ne=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],G=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],E=(0,C.Id)((0,C.Kr)(class{})),z=(0,C.Kr)(class{}),F=new A.OlP("MatList"),V=new A.OlP("MatNavList");let q=(()=>{class be extends E{constructor(ue){super(),this._elementRef=ue,this._stateChanges=new f.x,"action-list"===this._getListType()&&ue.nativeElement.classList.add("mat-action-list")}_getListType(){const ue=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===ue?"list":"mat-action-list"===ue?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return be.\u0275fac=function(ue){return new(ue||be)(A.Y36(A.SBq))},be.\u0275cmp=A.Xpm({type:be,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[A._Bn([{provide:F,useExisting:be}]),A.qOj,A.TTD],ngContentSelectors:O,decls:1,vars:0,template:function(ue,Me){1&ue&&(A.F$t(),A.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),be})(),pe=(()=>{class be{}return be.\u0275fac=function(ue){return new(ue||be)},be.\u0275dir=A.lG2({type:be,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),be})(),le=(()=>{class be{}return be.\u0275fac=function(ue){return new(ue||be)},be.\u0275dir=A.lG2({type:be,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),be})(),Ve=(()=>{class be extends z{constructor(ue,Me,ot,je){super(),this._element=ue,this._isInteractiveList=!1,this._destroyed=new f.x,this._disabled=!1,this._isInteractiveList=!!(ot||je&&"action-list"===je._getListType()),this._list=ot||je;const ut=this._getHostElement();"button"===ut.nodeName.toLowerCase()&&!ut.hasAttribute("type")&&ut.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,b.R)(this._destroyed)).subscribe(()=>{Me.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(ue){this._disabled=(0,M.Ig)(ue)}ngAfterContentInit(){(0,C.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return be.\u0275fac=function(ue){return new(ue||be)(A.Y36(A.SBq),A.Y36(A.sBO),A.Y36(V,8),A.Y36(F,8))},be.\u0275cmp=A.Xpm({type:be,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(ue,Me,ot){if(1&ue&&(A.Suo(ot,pe,5),A.Suo(ot,le,5),A.Suo(ot,C.X2,5)),2&ue){let je;A.iGM(je=A.CRH())&&(Me._avatar=je.first),A.iGM(je=A.CRH())&&(Me._icon=je.first),A.iGM(je=A.CRH())&&(Me._lines=je)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(ue,Me){2&ue&&A.ekj("mat-list-item-disabled",Me.disabled)("mat-list-item-with-avatar",Me._avatar||Me._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[A.qOj],ngContentSelectors:G,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(ue,Me){1&ue&&(A.F$t(ne),A.TgZ(0,"span",0),A._UZ(1,"span",1),A.Hsn(2),A.TgZ(3,"span",2),A.Hsn(4,1),A.qZA(),A.Hsn(5,2),A.qZA()),2&ue&&(A.xp6(1),A.Q6J("matRippleTrigger",Me._getHostElement())("matRippleDisabled",Me._isRippleDisabled()))},dependencies:[C.wG],encapsulation:2,changeDetection:0}),be})(),N=(()=>{class be{}return be.\u0275fac=function(ue){return new(ue||be)},be.\u0275mod=A.oAB({type:be}),be.\u0275inj=A.cJS({imports:[C.uc,C.si,C.BQ,C.us,e.ez,C.uc,C.BQ,C.us,H.t]}),be})()},28255:($e,he,p)=>{"use strict";p.d(he,{OP:()=>W,Tx:()=>we,VK:()=>ut,p6:()=>ge});var e=p(12687),A=p(21281),C=p(29521),M=p(94650),f=p(77579),b=p(50727),D=p(56451),T=p(39646),R=p(53101),B=p(68675),w=p(63900),H=p(95698),O=p(82722),J=p(39300),ne=p(91005),G=p(37340),se=p(84080),Oe=p(36895),_e=p(3238),Be=p(40445),E=p(98184),z=p(83353),F=p(67376);const V=["mat-menu-item",""];function X(Ne,Ce){1&Ne&&(M.O4$(),M.TgZ(0,"svg",2),M._UZ(1,"polygon",3),M.qZA())}const q=["*"];function pe(Ne,Ce){if(1&Ne){const fe=M.EpF();M.TgZ(0,"div",0),M.NdJ("keydown",function(u){M.CHM(fe);const g=M.oxw();return M.KtG(g._handleKeydown(u))})("click",function(){M.CHM(fe);const u=M.oxw();return M.KtG(u.closed.emit("click"))})("@transformMenu.start",function(u){M.CHM(fe);const g=M.oxw();return M.KtG(g._onAnimationStart(u))})("@transformMenu.done",function(u){M.CHM(fe);const g=M.oxw();return M.KtG(g._onAnimationDone(u))}),M.TgZ(1,"div",1),M.Hsn(2),M.qZA()()}if(2&Ne){const fe=M.oxw();M.Q6J("id",fe.panelId)("ngClass",fe._classList)("@transformMenu",fe._panelAnimationState),M.uIk("aria-label",fe.ariaLabel||null)("aria-labelledby",fe.ariaLabelledby||null)("aria-describedby",fe.ariaDescribedby||null)}}const le={transformMenu:(0,G.X$)("transformMenu",[(0,G.SB)("void",(0,G.oB)({opacity:0,transform:"scale(0.8)"})),(0,G.eR)("void => enter",(0,G.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,G.oB)({opacity:1,transform:"scale(1)"}))),(0,G.eR)("* => void",(0,G.jt)("100ms 25ms linear",(0,G.oB)({opacity:0})))]),fadeInItems:(0,G.X$)("fadeInItems",[(0,G.SB)("showing",(0,G.oB)({opacity:1})),(0,G.eR)("void => *",[(0,G.oB)({opacity:0}),(0,G.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},ve=new M.OlP("MatMenuContent"),N=new M.OlP("MAT_MENU_PANEL"),be=(0,_e.Kr)((0,_e.Id)(class{}));let W=(()=>{class Ne extends be{constructor(fe,r,u,g,v){var h;super(),this._elementRef=fe,this._document=r,this._focusMonitor=u,this._parentMenu=g,this._changeDetectorRef=v,this.role="menuitem",this._hovered=new f.x,this._focused=new f.x,this._highlighted=!1,this._triggersSubmenu=!1,null==g||null===(h=g.addItem)||void 0===h||h.call(g,this)}focus(fe,r){this._focusMonitor&&fe?this._focusMonitor.focusVia(this._getHostElement(),fe,r):this._getHostElement().focus(r),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(fe){this.disabled&&(fe.preventDefault(),fe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var fe;const r=this._elementRef.nativeElement.cloneNode(!0),u=r.querySelectorAll("mat-icon, .material-icons");for(let g=0;g{class Ne{constructor(fe,r,u,g){this._elementRef=fe,this._ngZone=r,this._defaultOptions=u,this._changeDetectorRef=g,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new M.n_E,this._tabSubscription=b.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new f.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new M.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+ot++}get xPosition(){return this._xPosition}set xPosition(fe){this._xPosition=fe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(fe){this._yPosition=fe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(fe){this._overlapTrigger=(0,A.Ig)(fe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(fe){this._hasBackdrop=(0,A.Ig)(fe)}set panelClass(fe){const r=this._previousPanelClass;r&&r.length&&r.split(" ").forEach(u=>{this._classList[u]=!1}),this._previousPanelClass=fe,fe&&fe.length&&(fe.split(" ").forEach(u=>{this._classList[u]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(fe){this.panelClass=fe}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,B.O)(this._directDescendantItems),(0,w.w)(fe=>(0,D.T)(...fe.map(r=>r._focused)))).subscribe(fe=>this._keyManager.updateActiveItem(fe)),this._directDescendantItems.changes.subscribe(fe=>{var r;const u=this._keyManager;if("enter"===this._panelAnimationState&&null!==(r=u.activeItem)&&void 0!==r&&r._hasFocus()){const g=fe.toArray(),v=Math.max(0,Math.min(g.length-1,u.activeItemIndex||0));g[v]&&!g[v].disabled?u.setActiveItem(v):u.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,B.O)(this._directDescendantItems),(0,w.w)(r=>(0,D.T)(...r.map(u=>u._hovered))))}addItem(fe){}removeItem(fe){}_handleKeydown(fe){const r=fe.keyCode,u=this._keyManager;switch(r){case C.hY:(0,C.Vb)(fe)||(fe.preventDefault(),this.closed.emit("keydown"));break;case C.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case C.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(r===C.LH||r===C.JH)&&u.setFocusOrigin("keyboard"),void u.onKeydown(fe)}fe.stopPropagation()}focusFirstItem(fe="program"){this._ngZone.onStable.pipe((0,H.q)(1)).subscribe(()=>{let r=null;if(this._directDescendantItems.length&&(r=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!r||!r.contains(document.activeElement)){const u=this._keyManager;u.setFocusOrigin(fe).setFirstItemActive(),!u.activeItem&&r&&r.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(fe){const r=Math.min(this._baseElevation+fe,24),u=`${this._elevationPrefix}${r}`,g=Object.keys(this._classList).find(v=>v.startsWith(this._elevationPrefix));(!g||g===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[u]=!0,this._previousElevation=u)}setPositionClasses(fe=this.xPosition,r=this.yPosition){var u;const g=this._classList;g["mat-menu-before"]="before"===fe,g["mat-menu-after"]="after"===fe,g["mat-menu-above"]="above"===r,g["mat-menu-below"]="below"===r,null===(u=this._changeDetectorRef)||void 0===u||u.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(fe){this._animationDone.next(fe),this._isAnimating=!1}_onAnimationStart(fe){this._isAnimating=!0,"enter"===fe.toState&&0===this._keyManager.activeItemIndex&&(fe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,B.O)(this._allItems)).subscribe(fe=>{this._directDescendantItems.reset(fe.filter(r=>r._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Ne.\u0275fac=function(fe){return new(fe||Ne)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(ue),M.Y36(M.sBO))},Ne.\u0275dir=M.lG2({type:Ne,contentQueries:function(fe,r,u){if(1&fe&&(M.Suo(u,ve,5),M.Suo(u,W,5),M.Suo(u,W,4)),2&fe){let g;M.iGM(g=M.CRH())&&(r.lazyContent=g.first),M.iGM(g=M.CRH())&&(r._allItems=g),M.iGM(g=M.CRH())&&(r.items=g)}},viewQuery:function(fe,r){if(1&fe&&M.Gf(M.Rgc,5),2&fe){let u;M.iGM(u=M.CRH())&&(r.templateRef=u.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),Ne})(),ut=(()=>{class Ne extends je{constructor(fe,r,u,g){super(fe,r,u,g),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return Ne.\u0275fac=function(fe){return new(fe||Ne)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(ue),M.Y36(M.sBO))},Ne.\u0275cmp=M.Xpm({type:Ne,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(fe,r){2&fe&&M.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[M._Bn([{provide:N,useExisting:Ne}]),M.qOj],ngContentSelectors:q,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(fe,r){1&fe&&(M.F$t(),M.YNc(0,pe,3,6,"ng-template"))},dependencies:[Oe.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[le.transformMenu,le.fadeInItems]},changeDetection:0}),Ne})();const tt=new M.OlP("mat-menu-scroll-strategy"),ee={provide:tt,deps:[E.aV],useFactory:function vt(Ne){return()=>Ne.scrollStrategies.reposition()}},Ae=(0,z.i$)({passive:!0});let Ee=(()=>{class Ne{constructor(fe,r,u,g,v,h,a,i,t){this._overlay=fe,this._element=r,this._viewContainerRef=u,this._menuItemInstance=h,this._dir=a,this._focusMonitor=i,this._ngZone=t,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=b.w0.EMPTY,this._hoverSubscription=b.w0.EMPTY,this._menuCloseSubscription=b.w0.EMPTY,this._handleTouchStart=n=>{(0,e.yG)(n)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new M.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new M.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=g,this._parentMaterialMenu=v instanceof je?v:void 0,r.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ae),h&&(h._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(fe){this.menu=fe}get menu(){return this._menu}set menu(fe){fe!==this._menu&&(this._menu=fe,this._menuCloseSubscription.unsubscribe(),fe&&(this._menuCloseSubscription=fe.close.subscribe(r=>{this._destroyMenu(r),("click"===r||"tab"===r)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(r)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ae),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const fe=this.menu;if(this._menuOpen||!fe)return;const r=this._createOverlay(fe),u=r.getConfig(),g=u.positionStrategy;this._setPosition(fe,g),u.hasBackdrop=fe.hasBackdrop??!this.triggersSubmenu(),r.attach(this._getPortal(fe)),fe.lazyContent&&fe.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(fe),fe instanceof je&&(fe._startAnimation(),fe._directDescendantItems.changes.pipe((0,O.R)(fe.close)).subscribe(()=>{g.withLockedPosition(!1).reapplyLastPosition(),g.withLockedPosition(!0)}))}closeMenu(){var fe;null===(fe=this.menu)||void 0===fe||fe.close.emit()}focus(fe,r){this._focusMonitor&&fe?this._focusMonitor.focusVia(this._element,fe,r):this._element.nativeElement.focus(r)}updatePosition(){var fe;null===(fe=this._overlayRef)||void 0===fe||fe.updatePosition()}_destroyMenu(fe){if(!this._overlayRef||!this.menuOpen)return;const r=this.menu;var u;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===fe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,r instanceof je?(r._resetAnimation(),r.lazyContent?r._animationDone.pipe((0,J.h)(g=>"void"===g.toState),(0,H.q)(1),(0,O.R)(r.lazyContent._attached)).subscribe({next:()=>r.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==r||null===(u=r.lazyContent)||void 0===u||u.detach())}_initMenu(fe){fe.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,fe.direction=this.dir,this._setMenuElevation(fe),fe.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(fe){if(fe.setElevation){let r=0,u=fe.parentMenu;for(;u;)r++,u=u.parentMenu;fe.setElevation(r)}}_setIsMenuOpen(fe){this._menuOpen=fe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(fe)}_createOverlay(fe){if(!this._overlayRef){const r=this._getOverlayConfig(fe);this._subscribeToPositions(fe,r.positionStrategy),this._overlayRef=this._overlay.create(r),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(fe){return new E.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:fe.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:fe.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(fe,r){fe.setPositionClasses&&r.positionChanges.subscribe(u=>{const g="start"===u.connectionPair.overlayX?"after":"before",v="top"===u.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>fe.setPositionClasses(g,v)):fe.setPositionClasses(g,v)})}_setPosition(fe,r){let[u,g]="before"===fe.xPosition?["end","start"]:["start","end"],[v,h]="above"===fe.yPosition?["bottom","top"]:["top","bottom"],[a,i]=[v,h],[t,n]=[u,g],o=0;if(this.triggersSubmenu()){if(n=u="before"===fe.xPosition?"start":"end",g=t="end"===u?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const s=this._parentMaterialMenu.items.first;this._parentInnerPadding=s?s._getHostElement().offsetTop:0}o="bottom"===v?this._parentInnerPadding:-this._parentInnerPadding}}else fe.overlapTrigger||(a="top"===v?"bottom":"top",i="top"===h?"bottom":"top");r.withPositions([{originX:u,originY:a,overlayX:t,overlayY:v,offsetY:o},{originX:g,originY:a,overlayX:n,overlayY:v,offsetY:o},{originX:u,originY:i,overlayX:t,overlayY:h,offsetY:-o},{originX:g,originY:i,overlayX:n,overlayY:h,offsetY:-o}])}_menuClosingActions(){const fe=this._overlayRef.backdropClick(),r=this._overlayRef.detachments(),u=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,T.of)(),g=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,J.h)(v=>v!==this._menuItemInstance),(0,J.h)(()=>this._menuOpen)):(0,T.of)();return(0,D.T)(fe,u,g,r)}_handleMousedown(fe){(0,e.X6)(fe)||(this._openedBy=0===fe.button?"mouse":void 0,this.triggersSubmenu()&&fe.preventDefault())}_handleKeydown(fe){const r=fe.keyCode;(r===C.K5||r===C.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(r===C.SV&&"ltr"===this.dir||r===C.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(fe){this.triggersSubmenu()?(fe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,J.h)(fe=>fe===this._menuItemInstance&&!fe.disabled),(0,ne.g)(0,R.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof je&&this.menu._isAnimating?this.menu._animationDone.pipe((0,H.q)(1),(0,ne.g)(0,R.E),(0,O.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(fe){return(!this._portal||this._portal.templateRef!==fe.templateRef)&&(this._portal=new se.UE(fe.templateRef,this._viewContainerRef)),this._portal}}return Ne.\u0275fac=function(fe){return new(fe||Ne)(M.Y36(E.aV),M.Y36(M.SBq),M.Y36(M.s_b),M.Y36(tt),M.Y36(N,8),M.Y36(W,10),M.Y36(Be.Is,8),M.Y36(e.tE),M.Y36(M.R0b))},Ne.\u0275dir=M.lG2({type:Ne,hostVars:3,hostBindings:function(fe,r){1&fe&&M.NdJ("click",function(g){return r._handleClick(g)})("mousedown",function(g){return r._handleMousedown(g)})("keydown",function(g){return r._handleKeydown(g)}),2&fe&&M.uIk("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen||null)("aria-controls",r.menuOpen?r.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),Ne})(),ge=(()=>{class Ne extends Ee{}return Ne.\u0275fac=function(){let Ce;return function(r){return(Ce||(Ce=M.n5z(Ne)))(r||Ne)}}(),Ne.\u0275dir=M.lG2({type:Ne,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[M.qOj]}),Ne})(),we=(()=>{class Ne{}return Ne.\u0275fac=function(fe){return new(fe||Ne)},Ne.\u0275mod=M.oAB({type:Ne}),Ne.\u0275inj=M.cJS({providers:[ee],imports:[Oe.ez,_e.BQ,_e.si,E.U8,F.ZD,_e.BQ]}),Ne})()},98739:($e,he,p)=>{"use strict";p.d(he,{NW:()=>V,TU:()=>X,ye:()=>G});var e=p(36895),A=p(94650),C=p(3238),M=p(4859),f=p(84385),b=p(10266),D=p(21281),T=p(77579),R=p(59549);function B(q,pe){if(1&q&&(A.TgZ(0,"mat-option",19),A._uU(1),A.qZA()),2&q){const le=pe.$implicit;A.Q6J("value",le),A.xp6(1),A.hij(" ",le," ")}}function w(q,pe){if(1&q){const le=A.EpF();A.TgZ(0,"mat-form-field",16)(1,"mat-select",17),A.NdJ("selectionChange",function(Ve){A.CHM(le);const ve=A.oxw(2);return A.KtG(ve._changePageSize(Ve.value))}),A.YNc(2,B,2,2,"mat-option",18),A.qZA()()}if(2&q){const le=A.oxw(2);A.Q6J("appearance",le._formFieldAppearance)("color",le.color),A.xp6(1),A.Q6J("value",le.pageSize)("disabled",le.disabled)("panelClass",le.selectConfig.panelClass||"")("disableOptionCentering",le.selectConfig.disableOptionCentering)("aria-label",le._intl.itemsPerPageLabel),A.xp6(1),A.Q6J("ngForOf",le._displayedPageSizeOptions)}}function H(q,pe){if(1&q&&(A.TgZ(0,"div",20),A._uU(1),A.qZA()),2&q){const le=A.oxw(2);A.xp6(1),A.Oqu(le.pageSize)}}function O(q,pe){if(1&q&&(A.TgZ(0,"div",12)(1,"div",13),A._uU(2),A.qZA(),A.YNc(3,w,3,8,"mat-form-field",14),A.YNc(4,H,2,1,"div",15),A.qZA()),2&q){const le=A.oxw();A.xp6(2),A.hij(" ",le._intl.itemsPerPageLabel," "),A.xp6(1),A.Q6J("ngIf",le._displayedPageSizeOptions.length>1),A.xp6(1),A.Q6J("ngIf",le._displayedPageSizeOptions.length<=1)}}function J(q,pe){if(1&q){const le=A.EpF();A.TgZ(0,"button",21),A.NdJ("click",function(){A.CHM(le);const Ve=A.oxw();return A.KtG(Ve.firstPage())}),A.O4$(),A.TgZ(1,"svg",7),A._UZ(2,"path",22),A.qZA()()}if(2&q){const le=A.oxw();A.Q6J("matTooltip",le._intl.firstPageLabel)("matTooltipDisabled",le._previousButtonsDisabled())("matTooltipPosition","above")("disabled",le._previousButtonsDisabled()),A.uIk("aria-label",le._intl.firstPageLabel)}}function ne(q,pe){if(1&q){const le=A.EpF();A.O4$(),A.kcU(),A.TgZ(0,"button",23),A.NdJ("click",function(){A.CHM(le);const Ve=A.oxw();return A.KtG(Ve.lastPage())}),A.O4$(),A.TgZ(1,"svg",7),A._UZ(2,"path",24),A.qZA()()}if(2&q){const le=A.oxw();A.Q6J("matTooltip",le._intl.lastPageLabel)("matTooltipDisabled",le._nextButtonsDisabled())("matTooltipPosition","above")("disabled",le._nextButtonsDisabled()),A.uIk("aria-label",le._intl.lastPageLabel)}}let G=(()=>{class q{constructor(){this.changes=new T.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(le,ye,Ve)=>{if(0==Ve||0==ye)return`0 of ${Ve}`;const ve=le*ye;return`${ve+1} \u2013 ${ve<(Ve=Math.max(Ve,0))?Math.min(ve+ye,Ve):ve+ye} of ${Ve}`}}}return q.\u0275fac=function(le){return new(le||q)},q.\u0275prov=A.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"}),q})();const Oe={provide:G,deps:[[new A.FiY,new A.tp0,G]],useFactory:function se(q){return q||new G}},E=new A.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),z=(0,C.Id)((0,C.dB)(class{}));let F=(()=>{class q extends z{constructor(le,ye,Ve){if(super(),this._intl=le,this._changeDetectorRef=ye,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new A.vpe,this._intlChanges=le.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Ve){const{pageSize:ve,pageSizeOptions:Ke,hidePageSize:Ue,showFirstLastButtons:oe}=Ve;null!=ve&&(this._pageSize=ve),null!=Ke&&(this._pageSizeOptions=Ke),null!=Ue&&(this._hidePageSize=Ue),null!=oe&&(this._showFirstLastButtons=oe)}}get pageIndex(){return this._pageIndex}set pageIndex(le){this._pageIndex=Math.max((0,D.su)(le),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(le){this._length=(0,D.su)(le),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(le){this._pageSize=Math.max((0,D.su)(le),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(le){this._pageSizeOptions=(le||[]).map(ye=>(0,D.su)(ye)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(le){this._hidePageSize=(0,D.Ig)(le)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(le){this._showFirstLastButtons=(0,D.Ig)(le)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const le=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(le)}previousPage(){if(!this.hasPreviousPage())return;const le=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(le)}firstPage(){if(!this.hasPreviousPage())return;const le=this.pageIndex;this.pageIndex=0,this._emitPageEvent(le)}lastPage(){if(!this.hasNextPage())return;const le=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(le)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const le=this.getNumberOfPages()-1;return this.pageIndexle-ye),this._changeDetectorRef.markForCheck())}_emitPageEvent(le){this.page.emit({previousPageIndex:le,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return q.\u0275fac=function(le){A.$Z()},q.\u0275dir=A.lG2({type:q,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[A.qOj]}),q})(),V=(()=>{class q extends F{constructor(le,ye,Ve){super(le,ye,Ve),Ve&&null!=Ve.formFieldAppearance&&(this._formFieldAppearance=Ve.formFieldAppearance)}}return q.\u0275fac=function(le){return new(le||q)(A.Y36(G),A.Y36(A.sBO),A.Y36(E,8))},q.\u0275cmp=A.Xpm({type:q,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[A.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(le,ye){1&le&&(A.TgZ(0,"div",0)(1,"div",1),A.YNc(2,O,5,3,"div",2),A.TgZ(3,"div",3)(4,"div",4),A._uU(5),A.qZA(),A.YNc(6,J,3,5,"button",5),A.TgZ(7,"button",6),A.NdJ("click",function(){return ye.previousPage()}),A.O4$(),A.TgZ(8,"svg",7),A._UZ(9,"path",8),A.qZA()(),A.kcU(),A.TgZ(10,"button",9),A.NdJ("click",function(){return ye.nextPage()}),A.O4$(),A.TgZ(11,"svg",7),A._UZ(12,"path",10),A.qZA()(),A.YNc(13,ne,3,5,"button",11),A.qZA()()()),2&le&&(A.xp6(2),A.Q6J("ngIf",!ye.hidePageSize),A.xp6(3),A.hij(" ",ye._intl.getRangeLabel(ye.pageIndex,ye.pageSize,ye.length)," "),A.xp6(1),A.Q6J("ngIf",ye.showFirstLastButtons),A.xp6(1),A.Q6J("matTooltip",ye._intl.previousPageLabel)("matTooltipDisabled",ye._previousButtonsDisabled())("matTooltipPosition","above")("disabled",ye._previousButtonsDisabled()),A.uIk("aria-label",ye._intl.previousPageLabel),A.xp6(3),A.Q6J("matTooltip",ye._intl.nextPageLabel)("matTooltipDisabled",ye._nextButtonsDisabled())("matTooltipPosition","above")("disabled",ye._nextButtonsDisabled()),A.uIk("aria-label",ye._intl.nextPageLabel),A.xp6(3),A.Q6J("ngIf",ye.showFirstLastButtons))},dependencies:[e.sg,e.O5,M.lW,R.KE,f.gD,C.ey,b.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),q})(),X=(()=>{class q{}return q.\u0275fac=function(le){return new(le||q)},q.\u0275mod=A.oAB({type:q}),q.\u0275inj=A.cJS({providers:[Oe],imports:[e.ez,M.ot,f.LD,b.AV,C.BQ]}),q})()},73162:($e,he,p)=>{"use strict";p.d(he,{Cv:()=>H});var e=p(94650),A=p(36895),C=p(3238);let H=(()=>{class O{}return O.\u0275fac=function(ne){return new(ne||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({imports:[A.ez,C.BQ,C.BQ]}),O})()},51572:($e,he,p)=>{"use strict";p.d(he,{Cq:()=>se,Ou:()=>G});var e=p(21281),A=p(83353),C=p(67376),M=p(36895),f=p(94650),b=p(3238),D=p(50727);function T(_e,Be){if(1&_e&&(f.O4$(),f._UZ(0,"circle",4)),2&_e){const E=f.oxw(),z=f.MAs(1);f.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+E._spinnerAnimationLabel)("stroke-dashoffset",E._getStrokeDashOffset(),"px")("stroke-dasharray",E._getStrokeCircumference(),"px")("stroke-width",E._getCircleStrokeWidth(),"%")("transform-origin",E._getCircleTransformOrigin(z)),f.uIk("r",E._getCircleRadius())}}function R(_e,Be){if(1&_e&&(f.O4$(),f._UZ(0,"circle",4)),2&_e){const E=f.oxw(),z=f.MAs(1);f.Udp("stroke-dashoffset",E._getStrokeDashOffset(),"px")("stroke-dasharray",E._getStrokeCircumference(),"px")("stroke-width",E._getCircleStrokeWidth(),"%")("transform-origin",E._getCircleTransformOrigin(z)),f.uIk("r",E._getCircleRadius())}}const H=(0,b.pj)(class{constructor(_e){this._elementRef=_e}},"primary"),O=new f.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function J(){return{diameter:100}}});class G extends H{constructor(Be,E,z,F,V,X,q,pe){super(Be),this._document=z,this._diameter=100,this._value=0,this._resizeSubscription=D.w0.EMPTY,this.mode="determinate";const le=G._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),le.has(z.head)||le.set(z.head,new Set([100])),this._noopAnimations="NoopAnimations"===F&&!!V&&!V._forceAnimations,"mat-spinner"===Be.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),V&&(V.color&&(this.color=this.defaultColor=V.color),V.diameter&&(this.diameter=V.diameter),V.strokeWidth&&(this.strokeWidth=V.strokeWidth)),E.isBrowser&&E.SAFARI&&q&&X&&pe&&(this._resizeSubscription=q.change(150).subscribe(()=>{"indeterminate"===this.mode&&pe.run(()=>X.markForCheck())}))}get diameter(){return this._diameter}set diameter(Be){this._diameter=(0,e.su)(Be),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(Be){this._strokeWidth=(0,e.su)(Be)}get value(){return"determinate"===this.mode?this._value:0}set value(Be){this._value=Math.max(0,Math.min(100,(0,e.su)(Be)))}ngOnInit(){const Be=this._elementRef.nativeElement;this._styleRoot=(0,A.kV)(Be)||this._document.head,this._attachStyleNode(),Be.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const Be=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${Be} ${Be}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(Be){var E;const z=50*(null!==(E=Be.currentScale)&&void 0!==E?E:1);return`${z}% ${z}%`}_attachStyleNode(){const Be=this._styleRoot,E=this._diameter,z=G._diameters;let F=z.get(Be);if(!F||!F.has(E)){const V=this._document.createElement("style");V.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),V.textContent=this._getAnimationText(),Be.appendChild(V),F||(F=new Set,z.set(Be,F)),F.add(E)}}_getAnimationText(){const Be=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*Be).replace(/END_VALUE/g,""+.2*Be).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}G._diameters=new WeakMap,G.\u0275fac=function(Be){return new(Be||G)(f.Y36(f.SBq),f.Y36(A.t4),f.Y36(M.K0,8),f.Y36(f.QbO,8),f.Y36(O),f.Y36(f.sBO),f.Y36(C.rL),f.Y36(f.R0b))},G.\u0275cmp=f.Xpm({type:G,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(Be,E){2&Be&&(f.uIk("aria-valuemin","determinate"===E.mode?0:null)("aria-valuemax","determinate"===E.mode?100:null)("aria-valuenow","determinate"===E.mode?E.value:null)("mode",E.mode),f.Udp("width",E.diameter,"px")("height",E.diameter,"px"),f.ekj("_mat-animation-noopable",E._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[f.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(Be,E){1&Be&&(f.O4$(),f.TgZ(0,"svg",0,1),f.YNc(2,T,1,11,"circle",2),f.YNc(3,R,1,9,"circle",3),f.qZA()),2&Be&&(f.Udp("width",E.diameter,"px")("height",E.diameter,"px"),f.Q6J("ngSwitch","indeterminate"===E.mode),f.uIk("viewBox",E._getViewBox()),f.xp6(2),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngSwitchCase",!1))},dependencies:[M.RF,M.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let se=(()=>{class _e{}return _e.\u0275fac=function(E){return new(E||_e)},_e.\u0275mod=f.oAB({type:_e}),_e.\u0275inj=f.cJS({imports:[b.BQ,M.ez,b.BQ]}),_e})()},71948:($e,he,p)=>{"use strict";p.d(he,{Fk:()=>z,U0:()=>E,VQ:()=>se});var e=p(94650),A=p(3238),C=p(12687),M=p(21281),f=p(95017),b=p(24006);const D=["input"],T=function(F){return{enterDuration:F}},R=["*"],B=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function w(){return{color:"accent"}}});let H=0;const O={provide:b.JU,useExisting:(0,e.Gpc)(()=>se),multi:!0};class J{constructor(V,X){this.source=V,this.value=X}}const ne=new e.OlP("MatRadioGroup");let G=(()=>{class F{constructor(X){this._changeDetector=X,this._value=null,this._name="mat-radio-group-"+H++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(X){this._name=X,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(X){this._labelPosition="before"===X?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(X){this._value!==X&&(this._value=X,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(X){this._selected=X,this.value=X?X.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(X){this._disabled=(0,M.Ig)(X),this._markRadiosForCheck()}get required(){return this._required}set required(X){this._required=(0,M.Ig)(X),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(X=>{X.name=this.name,X._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(q=>{q.checked=this.value===q.value,q.checked&&(this._selected=q)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new J(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(X=>X._markForCheck())}writeValue(X){this.value=X,this._changeDetector.markForCheck()}registerOnChange(X){this._controlValueAccessorChangeFn=X}registerOnTouched(X){this.onTouched=X}setDisabledState(X){this.disabled=X,this._changeDetector.markForCheck()}}return F.\u0275fac=function(X){return new(X||F)(e.Y36(e.sBO))},F.\u0275dir=e.lG2({type:F,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),F})(),se=(()=>{class F extends G{}return F.\u0275fac=function(){let V;return function(q){return(V||(V=e.n5z(F)))(q||F)}}(),F.\u0275dir=e.lG2({type:F,selectors:[["mat-radio-group"]],contentQueries:function(X,q,pe){if(1&X&&e.Suo(pe,E,5),2&X){let le;e.iGM(le=e.CRH())&&(q._radios=le)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([O,{provide:ne,useExisting:F}]),e.qOj]}),F})();class Oe{constructor(V){this._elementRef=V}}const _e=(0,A.Kr)((0,A.sb)(Oe));let Be=(()=>{class F extends _e{constructor(X,q,pe,le,ye,Ve,ve,Ke){super(q),this._changeDetector=pe,this._focusMonitor=le,this._radioDispatcher=ye,this._providerOverride=ve,this._uniqueId="mat-radio-"+ ++H,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=X,this._noopAnimations="NoopAnimations"===Ve,Ke&&(this.tabIndex=(0,M.su)(Ke,0)),this._removeUniqueSelectionListener=ye.listen((Ue,oe)=>{Ue!==this.id&&oe===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(X){const q=(0,M.Ig)(X);this._checked!==q&&(this._checked=q,q&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!q&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),q&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(X){this._value!==X&&(this._value=X,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===X),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(X){this._labelPosition=X}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(X){this._setDisabled((0,M.Ig)(X))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(X){this._required=(0,M.Ig)(X)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(X){this._color=X}get inputId(){return`${this.id||this._uniqueId}-input`}focus(X,q){q?this._focusMonitor.focusVia(this._inputElement,q,X):this._inputElement.nativeElement.focus(X)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(X=>{!X&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new J(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(X){X.stopPropagation()}_onInputInteraction(X){if(X.stopPropagation(),!this.checked&&!this.disabled){const q=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),q&&this.radioGroup._emitChangeEvent())}}_setDisabled(X){this._disabled!==X&&(this._disabled=X,this._changeDetector.markForCheck())}_updateTabIndex(){const X=this.radioGroup;let q;if(q=X&&X.selected&&!this.disabled?X.selected===this?this.tabIndex:-1:this.tabIndex,q!==this._previousTabIndex){var pe;const le=null===(pe=this._inputElement)||void 0===pe?void 0:pe.nativeElement;le&&(le.setAttribute("tabindex",q+""),this._previousTabIndex=q)}}}return F.\u0275fac=function(X){e.$Z()},F.\u0275dir=e.lG2({type:F,viewQuery:function(X,q){if(1&X&&e.Gf(D,5),2&X){let pe;e.iGM(pe=e.CRH())&&(q._inputElement=pe.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.qOj]}),F})(),E=(()=>{class F extends Be{constructor(X,q,pe,le,ye,Ve,ve,Ke){super(X,q,pe,le,ye,Ve,ve,Ke)}}return F.\u0275fac=function(X){return new(X||F)(e.Y36(ne,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(C.tE),e.Y36(f.A8),e.Y36(e.QbO,8),e.Y36(B,8),e.$8M("tabindex"))},F.\u0275cmp=e.Xpm({type:F,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(X,q){1&X&&e.NdJ("focus",function(){return q._inputElement.nativeElement.focus()}),2&X&&(e.uIk("tabindex",null)("id",q.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",q.checked)("mat-radio-disabled",q.disabled)("_mat-animation-noopable",q._noopAnimations)("mat-primary","primary"===q.color)("mat-accent","accent"===q.color)("mat-warn","warn"===q.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:R,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(X,q){if(1&X&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2),e._UZ(3,"span",3)(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(le){return q._onInputInteraction(le)})("click",function(le){return q._onInputClick(le)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA()(),e.TgZ(9,"span",9)(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA()()),2&X){const pe=e.MAs(1);e.uIk("for",q.inputId),e.xp6(5),e.Q6J("id",q.inputId)("checked",q.checked)("disabled",q.disabled)("required",q.required),e.uIk("name",q.name)("value",q.value)("aria-label",q.ariaLabel)("aria-labelledby",q.ariaLabelledby)("aria-describedby",q.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",pe)("matRippleDisabled",q._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(17,T,q._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==q.labelPosition)}},dependencies:[A.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),F})(),z=(()=>{class F{}return F.\u0275fac=function(X){return new(X||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({imports:[A.si,A.BQ,A.BQ]}),F})()},84385:($e,he,p)=>{"use strict";p.d(he,{$L:()=>ge,LD:()=>Ce,gD:()=>Ne});var e=p(98184),A=p(36895),C=p(94650),M=p(3238),f=p(59549),b=p(67376),D=p(12687),T=p(40445),R=p(21281),B=p(95017),w=p(29521),H=p(24006),O=p(77579),J=p(49770),ne=p(56451),G=p(68675),se=p(63900),Oe=p(95698),_e=p(39300),Be=p(54004),E=p(71884),z=p(82722),F=p(37340);const V=["trigger"],X=["panel"];function q(fe,r){if(1&fe&&(C.TgZ(0,"span",8),C._uU(1),C.qZA()),2&fe){const u=C.oxw();C.xp6(1),C.Oqu(u.placeholder)}}function pe(fe,r){if(1&fe&&(C.TgZ(0,"span",12),C._uU(1),C.qZA()),2&fe){const u=C.oxw(2);C.xp6(1),C.Oqu(u.triggerValue)}}function le(fe,r){1&fe&&C.Hsn(0,0,["*ngSwitchCase","true"])}function ye(fe,r){if(1&fe&&(C.TgZ(0,"span",9),C.YNc(1,pe,2,1,"span",10),C.YNc(2,le,1,0,"ng-content",11),C.qZA()),2&fe){const u=C.oxw();C.Q6J("ngSwitch",!!u.customTrigger),C.xp6(2),C.Q6J("ngSwitchCase",!0)}}function Ve(fe,r){if(1&fe){const u=C.EpF();C.TgZ(0,"div",13)(1,"div",14,15),C.NdJ("@transformPanel.done",function(v){C.CHM(u);const h=C.oxw();return C.KtG(h._panelDoneAnimatingStream.next(v.toState))})("keydown",function(v){C.CHM(u);const h=C.oxw();return C.KtG(h._handleKeydown(v))}),C.Hsn(3,1),C.qZA()()}if(2&fe){const u=C.oxw();C.Q6J("@transformPanelWrap",void 0),C.xp6(1),C.Gre("mat-select-panel ",u._getPanelTheme(),""),C.Udp("transform-origin",u._transformOrigin)("font-size",u._triggerFontSize,"px"),C.Q6J("ngClass",u.panelClass)("@transformPanel",u.multiple?"showing-multiple":"showing"),C.uIk("id",u.id+"-panel")("aria-multiselectable",u.multiple)("aria-label",u.ariaLabel||null)("aria-labelledby",u._getPanelAriaLabelledby())}}const ve=[[["mat-select-trigger"]],"*"],Ke=["mat-select-trigger","*"],Ue={transformPanelWrap:(0,F.X$)("transformPanelWrap",[(0,F.eR)("* => void",(0,F.IO)("@transformPanel",[(0,F.pV)()],{optional:!0}))]),transformPanel:(0,F.X$)("transformPanel",[(0,F.SB)("void",(0,F.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,F.SB)("showing",(0,F.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,F.SB)("showing-multiple",(0,F.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,F.eR)("void => *",(0,F.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,F.eR)("* => void",(0,F.jt)("100ms 25ms linear",(0,F.oB)({opacity:0})))])};let N=0;const ut=new C.OlP("mat-select-scroll-strategy"),vt=new C.OlP("MAT_SELECT_CONFIG"),ee={provide:ut,deps:[e.aV],useFactory:function tt(fe){return()=>fe.scrollStrategies.reposition()}};class nt{constructor(r,u){this.source=r,this.value=u}}const Ae=(0,M.Kr)((0,M.sb)((0,M.Id)((0,M.FD)(class{constructor(fe,r,u,g,v){this._elementRef=fe,this._defaultErrorStateMatcher=r,this._parentForm=u,this._parentFormGroup=g,this.ngControl=v,this.stateChanges=new O.x}})))),Ee=new C.OlP("MatSelectTrigger");let ge=(()=>{class fe{}return fe.\u0275fac=function(u){return new(u||fe)},fe.\u0275dir=C.lG2({type:fe,selectors:[["mat-select-trigger"]],features:[C._Bn([{provide:Ee,useExisting:fe}])]}),fe})(),we=(()=>{class fe extends Ae{constructor(u,g,v,h,a,i,t,n,o,s,l,d,c,S){var $,ht,ze;super(a,h,t,n,s),this._viewportRuler=u,this._changeDetectorRef=g,this._ngZone=v,this._dir=i,this._parentFormField=o,this._liveAnnouncer=c,this._defaultOptions=S,this._panelOpen=!1,this._compareWith=(et,te)=>et===te,this._uid="mat-select-"+N++,this._triggerAriaLabelledBy=null,this._destroy=new O.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+N++,this._panelDoneAnimatingStream=new O.x,this._overlayPanelClass=(null===($=this._defaultOptions)||void 0===$?void 0:$.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(ht=null===(ze=this._defaultOptions)||void 0===ze?void 0:ze.disableOptionCentering)&&void 0!==ht&&ht,this.ariaLabel="",this.optionSelectionChanges=(0,J.P)(()=>{const et=this.options;return et?et.changes.pipe((0,G.O)(et),(0,se.w)(()=>(0,ne.T)(...et.map(te=>te.onSelectionChange)))):this._ngZone.onStable.pipe((0,Oe.q)(1),(0,se.w)(()=>this.optionSelectionChanges))}),this.openedChange=new C.vpe,this._openedStream=this.openedChange.pipe((0,_e.h)(et=>et),(0,Be.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,_e.h)(et=>!et),(0,Be.U)(()=>{})),this.selectionChange=new C.vpe,this.valueChange=new C.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=S?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=S.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(l)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(u){this._placeholder=u,this.stateChanges.next()}get required(){var u,g,v,h;return null!==(u=null!==(g=this._required)&&void 0!==g?g:null===(v=this.ngControl)||void 0===v||null===(h=v.control)||void 0===h?void 0:h.hasValidator(H.kI.required))&&void 0!==u&&u}set required(u){this._required=(0,R.Ig)(u),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(u){this._multiple=(0,R.Ig)(u)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(u){this._disableOptionCentering=(0,R.Ig)(u)}get compareWith(){return this._compareWith}set compareWith(u){this._compareWith=u,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(u){this._assignValue(u)&&this._onChange(u)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(u){this._typeaheadDebounceInterval=(0,R.su)(u)}get id(){return this._id}set id(u){this._id=u||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new B.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,E.x)(),(0,z.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,z.R)(this._destroy)).subscribe(u=>{u.added.forEach(g=>g.select()),u.removed.forEach(g=>g.deselect())}),this.options.changes.pipe((0,G.O)(null),(0,z.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const u=this._getTriggerAriaLabelledby(),g=this.ngControl;if(u!==this._triggerAriaLabelledBy){const v=this._elementRef.nativeElement;this._triggerAriaLabelledBy=u,u?v.setAttribute("aria-labelledby",u):v.removeAttribute("aria-labelledby")}g&&(this._previousControl!==g.control&&(void 0!==this._previousControl&&null!==g.disabled&&g.disabled!==this.disabled&&(this.disabled=g.disabled),this._previousControl=g.control),this.updateErrorState())}ngOnChanges(u){(u.disabled||u.userAriaDescribedBy)&&this.stateChanges.next(),u.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(u){this._assignValue(u)}registerOnChange(u){this._onChange=u}registerOnTouched(u){this._onTouched=u}setDisabledState(u){this.disabled=u,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var u,g;return this.multiple?(null===(u=this._selectionModel)||void 0===u?void 0:u.selected)||[]:null===(g=this._selectionModel)||void 0===g?void 0:g.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const u=this._selectionModel.selected.map(g=>g.viewValue);return this._isRtl()&&u.reverse(),u.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(u){this.disabled||(this.panelOpen?this._handleOpenKeydown(u):this._handleClosedKeydown(u))}_handleClosedKeydown(u){const g=u.keyCode,v=g===w.JH||g===w.LH||g===w.oh||g===w.SV,h=g===w.K5||g===w.L_,a=this._keyManager;if(!a.isTyping()&&h&&!(0,w.Vb)(u)||(this.multiple||u.altKey)&&v)u.preventDefault(),this.open();else if(!this.multiple){const i=this.selected;a.onKeydown(u);const t=this.selected;t&&i!==t&&this._liveAnnouncer.announce(t.viewValue,1e4)}}_handleOpenKeydown(u){const g=this._keyManager,v=u.keyCode,h=v===w.JH||v===w.LH,a=g.isTyping();if(h&&u.altKey)u.preventDefault(),this.close();else if(a||v!==w.K5&&v!==w.L_||!g.activeItem||(0,w.Vb)(u))if(!a&&this._multiple&&v===w.A&&u.ctrlKey){u.preventDefault();const i=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(i?t.select():t.deselect())})}else{const i=g.activeItemIndex;g.onKeydown(u),this._multiple&&h&&u.shiftKey&&g.activeItem&&g.activeItemIndex!==i&&g.activeItem._selectViaInteraction()}else u.preventDefault(),g.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Oe.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(u){if(this._selectionModel.selected.forEach(g=>g.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&u)Array.isArray(u),u.forEach(g=>this._selectOptionByValue(g)),this._sortValues();else{const g=this._selectOptionByValue(u);g?this._keyManager.updateActiveItem(g):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(u){const g=this.options.find(v=>{if(this._selectionModel.isSelected(v))return!1;try{return null!=v.value&&this._compareWith(v.value,u)}catch{return!1}});return g&&this._selectionModel.select(g),g}_assignValue(u){return!!(u!==this._value||this._multiple&&Array.isArray(u))&&(this.options&&this._setSelectionByValue(u),this._value=u,!0)}_initKeyManager(){this._keyManager=new D.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,z.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,z.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const u=(0,ne.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,z.R)(u)).subscribe(g=>{this._onSelect(g.source,g.isUserInput),g.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ne.T)(...this.options.map(g=>g._stateChanges)).pipe((0,z.R)(u)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(u,g){const v=this._selectionModel.isSelected(u);null!=u.value||this._multiple?(v!==u.selected&&(u.selected?this._selectionModel.select(u):this._selectionModel.deselect(u)),g&&this._keyManager.setActiveItem(u),this.multiple&&(this._sortValues(),g&&this.focus())):(u.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(u.value)),v!==this._selectionModel.isSelected(u)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const u=this.options.toArray();this._selectionModel.sort((g,v)=>this.sortComparator?this.sortComparator(g,v,u):u.indexOf(g)-u.indexOf(v)),this.stateChanges.next()}}_propagateChanges(u){let g=null;g=this.multiple?this.selected.map(v=>v.value):this.selected?this.selected.value:u,this._value=g,this.valueChange.emit(g),this._onChange(g),this.selectionChange.emit(this._getChangeEvent(g)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var u;return!this._panelOpen&&!this.disabled&&(null===(u=this.options)||void 0===u?void 0:u.length)>0}focus(u){this._elementRef.nativeElement.focus(u)}_getPanelAriaLabelledby(){var u;if(this.ariaLabel)return null;const g=null===(u=this._parentFormField)||void 0===u?void 0:u.getLabelId();return this.ariaLabelledby?(g?g+" ":"")+this.ariaLabelledby:g}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var u;if(this.ariaLabel)return null;const g=null===(u=this._parentFormField)||void 0===u?void 0:u.getLabelId();let v=(g?g+" ":"")+this._valueId;return this.ariaLabelledby&&(v+=" "+this.ariaLabelledby),v}_panelDoneAnimating(u){this.openedChange.emit(u)}setDescribedByIds(u){u.length?this._elementRef.nativeElement.setAttribute("aria-describedby",u.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return fe.\u0275fac=function(u){return new(u||fe)(C.Y36(b.rL),C.Y36(C.sBO),C.Y36(C.R0b),C.Y36(M.rD),C.Y36(C.SBq),C.Y36(T.Is,8),C.Y36(H.F,8),C.Y36(H.sg,8),C.Y36(f.G_,8),C.Y36(H.a5,10),C.$8M("tabindex"),C.Y36(ut),C.Y36(D.Kd),C.Y36(vt,8))},fe.\u0275dir=C.lG2({type:fe,viewQuery:function(u,g){if(1&u&&(C.Gf(V,5),C.Gf(X,5),C.Gf(e.pI,5)),2&u){let v;C.iGM(v=C.CRH())&&(g.trigger=v.first),C.iGM(v=C.CRH())&&(g.panel=v.first),C.iGM(v=C.CRH())&&(g._overlayDir=v.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[C.qOj,C.TTD]}),fe})(),Ne=(()=>{class fe extends we{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(u,g,v){const h=this._getItemHeight();return Math.min(Math.max(0,h*u-g+h/2),v)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,z.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Oe.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(u){const g=(0,M.CB)(u,this.options,this.optionGroups),v=this._getItemHeight();this.panel.nativeElement.scrollTop=0===u&&1===g?0:(0,M.jH)((u+g)*v,v,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(u){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(u)}_getChangeEvent(u){return new nt(this,u)}_calculateOverlayOffsetX(){const u=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),g=this._viewportRuler.getViewportSize(),v=this._isRtl(),h=this.multiple?56:32;let a;if(this.multiple)a=40;else if(this.disableOptionCentering)a=16;else{let n=this._selectionModel.selected[0]||this.options.first;a=n&&n.group?32:16}v||(a*=-1);const i=0-(u.left+a-(v?h:0)),t=u.right+a-g.width+(v?0:h);i>0?a+=i+8:t>0&&(a-=t+8),this._overlayDir.offsetX=Math.round(a),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(u,g,v){const h=this._getItemHeight(),a=(h-this._triggerRect.height)/2,i=Math.floor(256/h);let t;return this.disableOptionCentering?0:(t=0===this._scrollTop?u*h:this._scrollTop===v?(u-(this._getItemCount()-i))*h+(h-(this._getItemCount()*h-256)%h):g-h/2,Math.round(-1*t-a))}_checkOverlayWithinViewport(u){const g=this._getItemHeight(),v=this._viewportRuler.getViewportSize(),h=this._triggerRect.top-8,a=v.height-this._triggerRect.bottom-8,i=Math.abs(this._offsetY),n=Math.min(this._getItemCount()*g,256)-i-this._triggerRect.height;n>a?this._adjustPanelUp(n,a):i>h?this._adjustPanelDown(i,h,u):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(u,g){const v=Math.round(u-g);this._scrollTop-=v,this._offsetY-=v,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(u,g,v){const h=Math.round(u-g);if(this._scrollTop+=h,this._offsetY+=h,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=v)return this._scrollTop=v,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const u=this._getItemHeight(),g=this._getItemCount(),v=Math.min(g*u,256),a=g*u-v;let i;i=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),i+=(0,M.CB)(i,this.options,this.optionGroups);const t=v/2;this._scrollTop=this._calculateOverlayScroll(i,t,a),this._offsetY=this._calculateOverlayOffsetY(i,t,a),this._checkOverlayWithinViewport(a)}_getOriginBasedOnOption(){const u=this._getItemHeight(),g=(u-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-g+u/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return fe.\u0275fac=function(){let r;return function(g){return(r||(r=C.n5z(fe)))(g||fe)}}(),fe.\u0275cmp=C.Xpm({type:fe,selectors:[["mat-select"]],contentQueries:function(u,g,v){if(1&u&&(C.Suo(v,Ee,5),C.Suo(v,M.ey,5),C.Suo(v,M.K7,5)),2&u){let h;C.iGM(h=C.CRH())&&(g.customTrigger=h.first),C.iGM(h=C.CRH())&&(g.options=h),C.iGM(h=C.CRH())&&(g.optionGroups=h)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(u,g){1&u&&C.NdJ("keydown",function(h){return g._handleKeydown(h)})("focus",function(){return g._onFocus()})("blur",function(){return g._onBlur()}),2&u&&(C.uIk("id",g.id)("tabindex",g.tabIndex)("aria-controls",g.panelOpen?g.id+"-panel":null)("aria-expanded",g.panelOpen)("aria-label",g.ariaLabel||null)("aria-required",g.required.toString())("aria-disabled",g.disabled.toString())("aria-invalid",g.errorState)("aria-activedescendant",g._getAriaActiveDescendant()),C.ekj("mat-select-disabled",g.disabled)("mat-select-invalid",g.errorState)("mat-select-required",g.required)("mat-select-empty",g.empty)("mat-select-multiple",g.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[C._Bn([{provide:f.Eo,useExisting:fe},{provide:M.HF,useExisting:fe}]),C.qOj],ngContentSelectors:Ke,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(u,g){if(1&u&&(C.F$t(ve),C.TgZ(0,"div",0,1),C.NdJ("click",function(){return g.toggle()}),C.TgZ(3,"div",2),C.YNc(4,q,2,1,"span",3),C.YNc(5,ye,3,2,"span",4),C.qZA(),C.TgZ(6,"div",5),C._UZ(7,"div",6),C.qZA()(),C.YNc(8,Ve,4,14,"ng-template",7),C.NdJ("backdropClick",function(){return g.close()})("attach",function(){return g._onAttached()})("detach",function(){return g.close()})),2&u){const v=C.MAs(1);C.uIk("aria-owns",g.panelOpen?g.id+"-panel":null),C.xp6(3),C.Q6J("ngSwitch",g.empty),C.uIk("id",g._valueId),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(1),C.Q6J("ngSwitchCase",!1),C.xp6(3),C.Q6J("cdkConnectedOverlayPanelClass",g._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",g._scrollStrategy)("cdkConnectedOverlayOrigin",v)("cdkConnectedOverlayOpen",g.panelOpen)("cdkConnectedOverlayPositions",g._positions)("cdkConnectedOverlayMinWidth",null==g._triggerRect?null:g._triggerRect.width)("cdkConnectedOverlayOffsetY",g._offsetY)}},dependencies:[A.mk,A.RF,A.n9,A.ED,e.pI,e.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Ue.transformPanelWrap,Ue.transformPanel]},changeDetection:0}),fe})(),Ce=(()=>{class fe{}return fe.\u0275fac=function(u){return new(u||fe)},fe.\u0275mod=C.oAB({type:fe}),fe.\u0275inj=C.cJS({providers:[ee],imports:[A.ez,e.U8,M.Ng,M.BQ,b.ZD,f.lN,M.Ng,M.BQ]}),fe})()},23267:($e,he,p)=>{"use strict";p.d(he,{JX:()=>ot,Rh:()=>Me,SJ:()=>ut,TM:()=>je});var e=p(67376),A=p(36895),C=p(94650),M=p(3238),f=p(12687),b=p(40445),D=p(21281),T=p(29521),R=p(83353),B=p(77579),w=p(54968),H=p(56451),O=p(39300),J=p(54004),ne=p(69718),G=p(82722),se=p(71884),Oe=p(95698),_e=p(68675),Be=p(78372),E=p(37340);const z=["*"],F=["content"];function V(tt,vt){if(1&tt){const ee=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){C.CHM(ee);const Ae=C.oxw();return C.KtG(Ae._onBackdropClicked())}),C.qZA()}if(2&tt){const ee=C.oxw();C.ekj("mat-drawer-shown",ee._isShowingBackdrop())}}function X(tt,vt){1&tt&&(C.TgZ(0,"mat-drawer-content"),C.Hsn(1,2),C.qZA())}const q=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],pe=["mat-drawer","mat-drawer-content","*"];function le(tt,vt){if(1&tt){const ee=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){C.CHM(ee);const Ae=C.oxw();return C.KtG(Ae._onBackdropClicked())}),C.qZA()}if(2&tt){const ee=C.oxw();C.ekj("mat-drawer-shown",ee._isShowingBackdrop())}}function ye(tt,vt){1&tt&&(C.TgZ(0,"mat-sidenav-content"),C.Hsn(1,2),C.qZA())}const Ve=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],ve=["mat-sidenav","mat-sidenav-content","*"],Ue={transformDrawer:(0,E.X$)("transform",[(0,E.SB)("open, open-instant",(0,E.oB)({transform:"none",visibility:"visible"})),(0,E.SB)("void",(0,E.oB)({"box-shadow":"none",visibility:"hidden"})),(0,E.eR)("void => open-instant",(0,E.jt)("0ms")),(0,E.eR)("void <=> open, open-instant => void",(0,E.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},ce=new C.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function N(){return!1}}),k=new C.OlP("MAT_DRAWER_CONTAINER");let be=(()=>{class tt extends e.PQ{constructor(ee,nt,Ae,Ee,ge){super(Ae,Ee,ge),this._changeDetectorRef=ee,this._container=nt}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return tt.\u0275fac=function(ee){return new(ee||tt)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>ue)),C.Y36(C.SBq),C.Y36(e.mF),C.Y36(C.R0b))},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(ee,nt){2&ee&&C.Udp("margin-left",nt._container._contentMargins.left,"px")("margin-right",nt._container._contentMargins.right,"px")},features:[C._Bn([{provide:e.PQ,useExisting:tt}]),C.qOj],ngContentSelectors:z,decls:1,vars:0,template:function(ee,nt){1&ee&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),tt})(),W=(()=>{class tt{constructor(ee,nt,Ae,Ee,ge,we,Ne,Ce){this._elementRef=ee,this._focusTrapFactory=nt,this._focusMonitor=Ae,this._platform=Ee,this._ngZone=ge,this._interactivityChecker=we,this._doc=Ne,this._container=Ce,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new B.x,this._animationEnd=new B.x,this._animationState="void",this.openedChange=new C.vpe(!0),this._openedStream=this.openedChange.pipe((0,O.h)(fe=>fe),(0,J.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,O.h)(fe=>fe.fromState!==fe.toState&&0===fe.toState.indexOf("open")),(0,ne.h)(void 0)),this._closedStream=this.openedChange.pipe((0,O.h)(fe=>!fe),(0,J.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,O.h)(fe=>fe.fromState!==fe.toState&&"void"===fe.toState),(0,ne.h)(void 0)),this._destroyed=new B.x,this.onPositionChanged=new C.vpe,this._modeChanged=new B.x,this.openedChange.subscribe(fe=>{fe?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,w.R)(this._elementRef.nativeElement,"keydown").pipe((0,O.h)(fe=>fe.keyCode===T.hY&&!this.disableClose&&!(0,T.Vb)(fe)),(0,G.R)(this._destroyed)).subscribe(fe=>this._ngZone.run(()=>{this.close(),fe.stopPropagation(),fe.preventDefault()}))}),this._animationEnd.pipe((0,se.x)((fe,r)=>fe.fromState===r.fromState&&fe.toState===r.toState)).subscribe(fe=>{const{fromState:r,toState:u}=fe;(0===u.indexOf("open")&&"void"===r||"void"===u&&0===r.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(ee){(ee="end"===ee?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(ee),this._position=ee,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(ee){this._mode=ee,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(ee){this._disableClose=(0,D.Ig)(ee)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(ee){("true"===ee||"false"===ee||null==ee)&&(ee=(0,D.Ig)(ee)),this._autoFocus=ee}get opened(){return this._opened}set opened(ee){this.toggle((0,D.Ig)(ee))}_forceFocus(ee,nt){this._interactivityChecker.isFocusable(ee)||(ee.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ae=()=>{ee.removeEventListener("blur",Ae),ee.removeEventListener("mousedown",Ae),ee.removeAttribute("tabindex")};ee.addEventListener("blur",Ae),ee.addEventListener("mousedown",Ae)})),ee.focus(nt)}_focusByCssSelector(ee,nt){let Ae=this._elementRef.nativeElement.querySelector(ee);Ae&&this._forceFocus(Ae,nt)}_takeFocus(){if(!this._focusTrap)return;const ee=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(nt=>{!nt&&"function"==typeof this._elementRef.nativeElement.focus&&ee.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(ee){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,ee):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const ee=this._doc.activeElement;return!!ee&&this._elementRef.nativeElement.contains(ee)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var ee;this._focusTrap&&this._focusTrap.destroy(),null===(ee=this._anchor)||void 0===ee||ee.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(ee){return this.toggle(!0,ee)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(ee=!this.opened,nt){ee&&nt&&(this._openedVia=nt);const Ae=this._setOpen(ee,!ee&&this._isFocusWithinDrawer(),this._openedVia||"program");return ee||(this._openedVia=null),Ae}_setOpen(ee,nt,Ae){return this._opened=ee,ee?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",nt&&this._restoreFocus(Ae)),this._updateFocusTrapState(),new Promise(Ee=>{this.openedChange.pipe((0,Oe.q)(1)).subscribe(ge=>Ee(ge?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(ee){const nt=this._elementRef.nativeElement,Ae=nt.parentNode;"end"===ee?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Ae.insertBefore(this._anchor,nt)),Ae.appendChild(nt)):this._anchor&&this._anchor.parentNode.insertBefore(nt,this._anchor)}}return tt.\u0275fac=function(ee){return new(ee||tt)(C.Y36(C.SBq),C.Y36(f.qV),C.Y36(f.tE),C.Y36(R.t4),C.Y36(C.R0b),C.Y36(f.ic),C.Y36(A.K0,8),C.Y36(k,8))},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-drawer"]],viewQuery:function(ee,nt){if(1&ee&&C.Gf(F,5),2&ee){let Ae;C.iGM(Ae=C.CRH())&&(nt._content=Ae.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(ee,nt){1&ee&&C.WFA("@transform.start",function(Ee){return nt._animationStarted.next(Ee)})("@transform.done",function(Ee){return nt._animationEnd.next(Ee)}),2&ee&&(C.uIk("align",null),C.d8E("@transform",nt._animationState),C.ekj("mat-drawer-end","end"===nt.position)("mat-drawer-over","over"===nt.mode)("mat-drawer-push","push"===nt.mode)("mat-drawer-side","side"===nt.mode)("mat-drawer-opened",nt.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:z,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(ee,nt){1&ee&&(C.F$t(),C.TgZ(0,"div",0,1),C.Hsn(2),C.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[Ue.transformDrawer]},changeDetection:0}),tt})(),ue=(()=>{class tt{constructor(ee,nt,Ae,Ee,ge,we=!1,Ne){this._dir=ee,this._element=nt,this._ngZone=Ae,this._changeDetectorRef=Ee,this._animationMode=Ne,this._drawers=new C.n_E,this.backdropClick=new C.vpe,this._destroyed=new B.x,this._doCheckSubject=new B.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new B.x,ee&&ee.change.pipe((0,G.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),ge.change().pipe((0,G.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=we}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(ee){this._autosize=(0,D.Ig)(ee)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(ee){this._backdropOverride=null==ee?null:(0,D.Ig)(ee)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,_e.O)(this._allDrawers),(0,G.R)(this._destroyed)).subscribe(ee=>{this._drawers.reset(ee.filter(nt=>!nt._container||nt._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,_e.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(ee=>{this._watchDrawerToggle(ee),this._watchDrawerPosition(ee),this._watchDrawerMode(ee)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Be.b)(10),(0,G.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(ee=>ee.open())}close(){this._drawers.forEach(ee=>ee.close())}updateContentMargins(){let ee=0,nt=0;if(this._left&&this._left.opened)if("side"==this._left.mode)ee+=this._left._getWidth();else if("push"==this._left.mode){const Ae=this._left._getWidth();ee+=Ae,nt-=Ae}if(this._right&&this._right.opened)if("side"==this._right.mode)nt+=this._right._getWidth();else if("push"==this._right.mode){const Ae=this._right._getWidth();nt+=Ae,ee-=Ae}ee=ee||null,nt=nt||null,(ee!==this._contentMargins.left||nt!==this._contentMargins.right)&&(this._contentMargins={left:ee,right:nt},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(ee){ee._animationStarted.pipe((0,O.h)(nt=>nt.fromState!==nt.toState),(0,G.R)(this._drawers.changes)).subscribe(nt=>{"open-instant"!==nt.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==ee.mode&&ee.openedChange.pipe((0,G.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(ee.opened))}_watchDrawerPosition(ee){!ee||ee.onPositionChanged.pipe((0,G.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Oe.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(ee){ee&&ee._modeChanged.pipe((0,G.R)((0,H.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(ee){const nt=this._element.nativeElement.classList,Ae="mat-drawer-container-has-open";ee?nt.add(Ae):nt.remove(Ae)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(ee=>{"end"==ee.position?this._end=ee:this._start=ee}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(ee=>ee&&!ee.disableClose&&this._canHaveBackdrop(ee)).forEach(ee=>ee._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(ee){return"side"!==ee.mode||!!this._backdropOverride}_isDrawerOpen(ee){return null!=ee&&ee.opened}}return tt.\u0275fac=function(ee){return new(ee||tt)(C.Y36(b.Is,8),C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(C.sBO),C.Y36(e.rL),C.Y36(ce),C.Y36(C.QbO,8))},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-drawer-container"]],contentQueries:function(ee,nt,Ae){if(1&ee&&(C.Suo(Ae,be,5),C.Suo(Ae,W,5)),2&ee){let Ee;C.iGM(Ee=C.CRH())&&(nt._content=Ee.first),C.iGM(Ee=C.CRH())&&(nt._allDrawers=Ee)}},viewQuery:function(ee,nt){if(1&ee&&C.Gf(be,5),2&ee){let Ae;C.iGM(Ae=C.CRH())&&(nt._userContent=Ae.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(ee,nt){2&ee&&C.ekj("mat-drawer-container-explicit-backdrop",nt._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[C._Bn([{provide:k,useExisting:tt}])],ngContentSelectors:pe,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(ee,nt){1&ee&&(C.F$t(q),C.YNc(0,V,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,X,2,0,"mat-drawer-content",1)),2&ee&&(C.Q6J("ngIf",nt.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!nt._content))},dependencies:[A.O5,be],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),tt})(),Me=(()=>{class tt extends be{constructor(ee,nt,Ae,Ee,ge){super(ee,nt,Ae,Ee,ge)}}return tt.\u0275fac=function(ee){return new(ee||tt)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>je)),C.Y36(C.SBq),C.Y36(e.mF),C.Y36(C.R0b))},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(ee,nt){2&ee&&C.Udp("margin-left",nt._container._contentMargins.left,"px")("margin-right",nt._container._contentMargins.right,"px")},features:[C._Bn([{provide:e.PQ,useExisting:tt}]),C.qOj],ngContentSelectors:z,decls:1,vars:0,template:function(ee,nt){1&ee&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),tt})(),ot=(()=>{class tt extends W{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(ee){this._fixedInViewport=(0,D.Ig)(ee)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(ee){this._fixedTopGap=(0,D.su)(ee)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(ee){this._fixedBottomGap=(0,D.su)(ee)}}return tt.\u0275fac=function(){let vt;return function(nt){return(vt||(vt=C.n5z(tt)))(nt||tt)}}(),tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(ee,nt){2&ee&&(C.uIk("align",null),C.Udp("top",nt.fixedInViewport?nt.fixedTopGap:null,"px")("bottom",nt.fixedInViewport?nt.fixedBottomGap:null,"px"),C.ekj("mat-drawer-end","end"===nt.position)("mat-drawer-over","over"===nt.mode)("mat-drawer-push","push"===nt.mode)("mat-drawer-side","side"===nt.mode)("mat-drawer-opened",nt.opened)("mat-sidenav-fixed",nt.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[C.qOj],ngContentSelectors:z,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(ee,nt){1&ee&&(C.F$t(),C.TgZ(0,"div",0,1),C.Hsn(2),C.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[Ue.transformDrawer]},changeDetection:0}),tt})(),je=(()=>{class tt extends ue{}return tt.\u0275fac=function(){let vt;return function(nt){return(vt||(vt=C.n5z(tt)))(nt||tt)}}(),tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-sidenav-container"]],contentQueries:function(ee,nt,Ae){if(1&ee&&(C.Suo(Ae,Me,5),C.Suo(Ae,ot,5)),2&ee){let Ee;C.iGM(Ee=C.CRH())&&(nt._content=Ee.first),C.iGM(Ee=C.CRH())&&(nt._allDrawers=Ee)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(ee,nt){2&ee&&C.ekj("mat-drawer-container-explicit-backdrop",nt._backdropOverride)},exportAs:["matSidenavContainer"],features:[C._Bn([{provide:k,useExisting:tt}]),C.qOj],ngContentSelectors:ve,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(ee,nt){1&ee&&(C.F$t(Ve),C.YNc(0,le,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,ye,2,0,"mat-sidenav-content",1)),2&ee&&(C.Q6J("ngIf",nt.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!nt._content))},dependencies:[A.O5,Me],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),tt})(),ut=(()=>{class tt{}return tt.\u0275fac=function(ee){return new(ee||tt)},tt.\u0275mod=C.oAB({type:tt}),tt.\u0275inj=C.cJS({imports:[A.ez,M.BQ,e.ZD,e.ZD,M.BQ]}),tt})()},90455:($e,he,p)=>{"use strict";p.d(he,{Rr:()=>G,rP:()=>Be});var e=p(49643),A=p(94650),C=p(3238),M=p(12687),f=p(21281),b=p(24006);const D=["input"],T=function(E){return{enterDuration:E}},R=["*"],B=new A.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let w=0;const H={provide:b.JU,useExisting:(0,A.Gpc)(()=>G),multi:!0};class O{constructor(z,F){this.source=z,this.checked=F}}const J=(0,C.sb)((0,C.pj)((0,C.Kr)((0,C.Id)(class{constructor(E){this._elementRef=E}}))));let ne=(()=>{class E extends J{constructor(F,V,X,q,pe,le,ye){super(F),this._focusMonitor=V,this._changeDetectorRef=X,this.defaults=pe,this._onChange=Ve=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new A.vpe,this.toggleChange=new A.vpe,this.tabIndex=parseInt(q)||0,this.color=this.defaultColor=pe.color||"accent",this._noopAnimations="NoopAnimations"===le,this.id=this._uniqueId=`${ye}${++w}`}get required(){return this._required}set required(F){this._required=(0,f.Ig)(F)}get checked(){return this._checked}set checked(F){this._checked=(0,f.Ig)(F),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(F=>{"keyboard"===F||"program"===F?this._focused=!0:F||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(F){this.checked=!!F}registerOnChange(F){this._onChange=F}registerOnTouched(F){this._onTouched=F}setDisabledState(F){this.disabled=F,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return E.\u0275fac=function(F){A.$Z()},E.\u0275dir=A.lG2({type:E,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[A.qOj]}),E})(),G=(()=>{class E extends ne{constructor(F,V,X,q,pe,le){super(F,V,X,q,pe,le,"mat-slide-toggle-")}_createChangeEvent(F){return new O(this,F)}_onChangeEvent(F){F.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(F){F.stopPropagation()}focus(F,V){V?this._focusMonitor.focusVia(this._inputElement,V,F):this._inputElement.nativeElement.focus(F)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return E.\u0275fac=function(F){return new(F||E)(A.Y36(A.SBq),A.Y36(M.tE),A.Y36(A.sBO),A.$8M("tabindex"),A.Y36(B),A.Y36(A.QbO,8))},E.\u0275cmp=A.Xpm({type:E,selectors:[["mat-slide-toggle"]],viewQuery:function(F,V){if(1&F&&A.Gf(D,5),2&F){let X;A.iGM(X=A.CRH())&&(V._inputElement=X.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(F,V){2&F&&(A.Ikx("id",V.id),A.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),A.ekj("mat-checked",V.checked)("mat-disabled",V.disabled)("mat-slide-toggle-label-before","before"==V.labelPosition)("_mat-animation-noopable",V._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[A._Bn([H]),A.qOj],ngContentSelectors:R,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(F,V){if(1&F&&(A.F$t(),A.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),A.NdJ("change",function(q){return V._onChangeEvent(q)})("click",function(q){return V._onInputClick(q)}),A.qZA(),A.TgZ(5,"span",5),A._UZ(6,"span",6),A.TgZ(7,"span",7),A._UZ(8,"span",8),A.qZA()()(),A.TgZ(9,"span",9,10),A.NdJ("cdkObserveContent",function(){return V._onLabelTextChange()}),A.TgZ(11,"span",11),A._uU(12,"\xa0"),A.qZA(),A.Hsn(13),A.qZA()()),2&F){const X=A.MAs(1),q=A.MAs(10);A.uIk("for",V.inputId),A.xp6(2),A.ekj("mat-slide-toggle-bar-no-side-margin",!q.textContent||!q.textContent.trim()),A.xp6(1),A.Q6J("id",V.inputId)("required",V.required)("tabIndex",V.tabIndex)("checked",V.checked)("disabled",V.disabled),A.uIk("name",V.name)("aria-checked",V.checked)("aria-label",V.ariaLabel)("aria-labelledby",V.ariaLabelledby)("aria-describedby",V.ariaDescribedby),A.xp6(4),A.Q6J("matRippleTrigger",X)("matRippleDisabled",V.disableRipple||V.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",A.VKq(18,T,V._noopAnimations?0:150))}},dependencies:[C.wG,e.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),E})(),_e=(()=>{class E{}return E.\u0275fac=function(F){return new(F||E)},E.\u0275mod=A.oAB({type:E}),E.\u0275inj=A.cJS({}),E})(),Be=(()=>{class E{}return E.\u0275fac=function(F){return new(F||E)},E.\u0275mod=A.oAB({type:E}),E.\u0275inj=A.cJS({imports:[_e,C.si,C.BQ,e.Q8,_e,C.BQ]}),E})()},17009:($e,he,p)=>{"use strict";p.d(he,{ZX:()=>Oe});var e=p(98184),A=p(84080),C=p(36895),M=p(94650),f=p(3238),b=p(4859);p(37340);let Oe=(()=>{class F{}return F.\u0275fac=function(X){return new(X||F)},F.\u0275mod=M.oAB({type:F}),F.\u0275inj=M.cJS({imports:[e.U8,A.eL,C.ez,b.ot,f.BQ,f.BQ]}),F})()},96308:($e,he,p)=>{"use strict";p.d(he,{JX:()=>le,YE:()=>_e,nU:()=>pe});var e=p(94650),A=p(12687),C=p(21281),M=p(29521),f=p(3238),b=p(77579),D=p(56451),T=p(37340),R=p(36895);const B=["mat-sort-header",""];function w(ye,Ve){if(1&ye){const ve=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){e.CHM(ve);const Ue=e.oxw();return e.KtG(Ue._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){e.CHM(ve);const Ue=e.oxw();return e.KtG(Ue._disableViewStateAnimation=!1)}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6)(4,"div",7)(5,"div",8),e.qZA()()}if(2&ye){const ve=e.oxw();e.Q6J("@arrowOpacity",ve._getArrowViewState())("@arrowPosition",ve._getArrowViewState())("@allowChildren",ve._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",ve._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",ve._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",ve._getArrowDirectionState())}}const H=["*"],se=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),Oe=(0,f.dB)((0,f.Id)(class{}));let _e=(()=>{class ye extends Oe{constructor(ve){super(),this._defaultOptions=ve,this.sortables=new Map,this._stateChanges=new b.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(ve){this._direction=ve}get disableClear(){return this._disableClear}set disableClear(ve){this._disableClear=(0,C.Ig)(ve)}register(ve){this.sortables.set(ve.id,ve)}deregister(ve){this.sortables.delete(ve.id)}sort(ve){this.active!=ve.id?(this.active=ve.id,this.direction=ve.start?ve.start:this.start):this.direction=this.getNextSortDirection(ve),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(ve){var Ke,Ue,oe;if(!ve)return"";const ce=null!==(Ke=null!==(Ue=ve?.disableClear)&&void 0!==Ue?Ue:this.disableClear)&&void 0!==Ke?Ke:!(null===(oe=this._defaultOptions)||void 0===oe||!oe.disableClear);let k=function Be(ye,Ve){let ve=["asc","desc"];return"desc"==ye&&ve.reverse(),Ve||ve.push(""),ve}(ve.start||this.start,ce),N=k.indexOf(this.direction)+1;return N>=k.length&&(N=0),k[N]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return ye.\u0275fac=function(ve){return new(ve||ye)(e.Y36(se,8))},ye.\u0275dir=e.lG2({type:ye,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),ye})();const E=f.mZ.ENTERING+" "+f.yN.STANDARD_CURVE,z={indicator:(0,T.X$)("indicator",[(0,T.SB)("active-asc, asc",(0,T.oB)({transform:"translateY(0px)"})),(0,T.SB)("active-desc, desc",(0,T.oB)({transform:"translateY(10px)"})),(0,T.eR)("active-asc <=> active-desc",(0,T.jt)(E))]),leftPointer:(0,T.X$)("leftPointer",[(0,T.SB)("active-asc, asc",(0,T.oB)({transform:"rotate(-45deg)"})),(0,T.SB)("active-desc, desc",(0,T.oB)({transform:"rotate(45deg)"})),(0,T.eR)("active-asc <=> active-desc",(0,T.jt)(E))]),rightPointer:(0,T.X$)("rightPointer",[(0,T.SB)("active-asc, asc",(0,T.oB)({transform:"rotate(45deg)"})),(0,T.SB)("active-desc, desc",(0,T.oB)({transform:"rotate(-45deg)"})),(0,T.eR)("active-asc <=> active-desc",(0,T.jt)(E))]),arrowOpacity:(0,T.X$)("arrowOpacity",[(0,T.SB)("desc-to-active, asc-to-active, active",(0,T.oB)({opacity:1})),(0,T.SB)("desc-to-hint, asc-to-hint, hint",(0,T.oB)({opacity:.54})),(0,T.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,T.oB)({opacity:0})),(0,T.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,T.jt)("0ms")),(0,T.eR)("* <=> *",(0,T.jt)(E))]),arrowPosition:(0,T.X$)("arrowPosition",[(0,T.eR)("* => desc-to-hint, * => desc-to-active",(0,T.jt)(E,(0,T.F4)([(0,T.oB)({transform:"translateY(-25%)"}),(0,T.oB)({transform:"translateY(0)"})]))),(0,T.eR)("* => hint-to-desc, * => active-to-desc",(0,T.jt)(E,(0,T.F4)([(0,T.oB)({transform:"translateY(0)"}),(0,T.oB)({transform:"translateY(25%)"})]))),(0,T.eR)("* => asc-to-hint, * => asc-to-active",(0,T.jt)(E,(0,T.F4)([(0,T.oB)({transform:"translateY(25%)"}),(0,T.oB)({transform:"translateY(0)"})]))),(0,T.eR)("* => hint-to-asc, * => active-to-asc",(0,T.jt)(E,(0,T.F4)([(0,T.oB)({transform:"translateY(0)"}),(0,T.oB)({transform:"translateY(-25%)"})]))),(0,T.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,T.oB)({transform:"translateY(0)"})),(0,T.SB)("hint-to-desc, active-to-desc, desc",(0,T.oB)({transform:"translateY(-25%)"})),(0,T.SB)("hint-to-asc, active-to-asc, asc",(0,T.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,T.X$)("allowChildren",[(0,T.eR)("* <=> *",[(0,T.IO)("@*",(0,T.pV)(),{optional:!0})])])};let F=(()=>{class ye{constructor(){this.changes=new b.x}}return ye.\u0275fac=function(ve){return new(ve||ye)},ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();const X={provide:F,deps:[[new e.FiY,new e.tp0,F]],useFactory:function V(ye){return ye||new F}},q=(0,f.Id)(class{});let pe=(()=>{class ye extends q{constructor(ve,Ke,Ue,oe,ce,k,N,be){super(),this._intl=ve,this._changeDetectorRef=Ke,this._sort=Ue,this._columnDef=oe,this._focusMonitor=ce,this._elementRef=k,this._ariaDescriber=N,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=be&&be.arrowPosition&&(this.arrowPosition=be?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(ve){this._updateSortActionDescription(ve)}get disableClear(){return this._disableClear}set disableClear(ve){this._disableClear=(0,C.Ig)(ve)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ve=>{const Ke=!!ve;Ke!==this._showIndicatorHint&&(this._setIndicatorHintVisible(Ke),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(ve){this._isDisabled()&&ve||(this._showIndicatorHint=ve,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(ve){this._viewState=ve||{},this._disableViewStateAnimation&&(this._viewState={toState:ve.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(ve){!this._isDisabled()&&(ve.keyCode===M.L_||ve.keyCode===M.K5)&&(ve.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const ve=this._viewState.fromState;return(ve?`${ve}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(ve){var Ke,Ue;this._sortButton&&(null===(Ke=this._ariaDescriber)||void 0===Ke||Ke.removeDescription(this._sortButton,this._sortActionDescription),null===(Ue=this._ariaDescriber)||void 0===Ue||Ue.describe(this._sortButton,ve)),this._sortActionDescription=ve}_handleStateChanges(){this._rerenderSubscription=(0,D.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return ye.\u0275fac=function(ve){return new(ve||ye)(e.Y36(F),e.Y36(e.sBO),e.Y36(_e,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(A.tE),e.Y36(e.SBq),e.Y36(A.$s,8),e.Y36(se,8))},ye.\u0275cmp=e.Xpm({type:ye,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(ve,Ke){1&ve&&e.NdJ("click",function(){return Ke._handleClick()})("keydown",function(oe){return Ke._handleKeydown(oe)})("mouseenter",function(){return Ke._setIndicatorHintVisible(!0)})("mouseleave",function(){return Ke._setIndicatorHintVisible(!1)}),2&ve&&(e.uIk("aria-sort",Ke._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",Ke._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:B,ngContentSelectors:H,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(ve,Ke){1&ve&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,w,6,6,"div",2),e.qZA()),2&ve&&(e.ekj("mat-sort-header-sorted",Ke._isSorted())("mat-sort-header-position-before","before"===Ke.arrowPosition),e.uIk("tabindex",Ke._isDisabled()?null:0)("role",Ke._isDisabled()?null:"button"),e.xp6(3),e.Q6J("ngIf",Ke._renderArrow()))},dependencies:[R.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[z.indicator,z.leftPointer,z.rightPointer,z.arrowOpacity,z.arrowPosition,z.allowChildren]},changeDetection:0}),ye})(),le=(()=>{class ye{}return ye.\u0275fac=function(ve){return new(ve||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({providers:[X],imports:[R.ez,f.BQ]}),ye})()},86257:($e,he,p)=>{"use strict";p.d(he,{C0:()=>d,BY:()=>l,VY:()=>u,Vq:()=>c,T5:()=>ht,fd:()=>$});var e=p(84080),A=p(12687),C=p(40445),M=p(21281),f=p(29521),b=p(94650),D=p(83353),T=p(77579),R=p(39646),B=p(68675),w=p(82722);function H(ze,et){1&ze&&b.Hsn(0)}const O=["*"];let J=(()=>{class ze{constructor(te){this._elementRef=te}focus(){this._elementRef.nativeElement.focus()}}return ze.\u0275fac=function(te){return new(te||ze)(b.Y36(b.SBq))},ze.\u0275dir=b.lG2({type:ze,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),ze})(),ne=(()=>{class ze{constructor(te){this.template=te}}return ze.\u0275fac=function(te){return new(te||ze)(b.Y36(b.Rgc))},ze.\u0275dir=b.lG2({type:ze,selectors:[["","cdkStepLabel",""]]}),ze})(),G=0;const _e=new b.OlP("STEPPER_GLOBAL_OPTIONS");let Be=(()=>{class ze{constructor(te,Le){this._stepper=te,this.interacted=!1,this.interactedStream=new b.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Le||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(te){this._editable=(0,M.Ig)(te)}get optional(){return this._optional}set optional(te){this._optional=(0,M.Ig)(te)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(te){this._completedOverride=(0,M.Ig)(te)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(te){this._customError=(0,M.Ig)(te)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var te;return null!==(te=this._stepperOptions.showError)&&void 0!==te?te:null!=this._customError}}return ze.\u0275fac=function(te){return new(te||ze)(b.Y36((0,b.Gpc)(()=>E)),b.Y36(_e,8))},ze.\u0275cmp=b.Xpm({type:ze,selectors:[["cdk-step"]],contentQueries:function(te,Le,Ie){if(1&te&&b.Suo(Ie,ne,5),2&te){let De;b.iGM(De=b.CRH())&&(Le.stepLabel=De.first)}},viewQuery:function(te,Le){if(1&te&&b.Gf(b.Rgc,7),2&te){let Ie;b.iGM(Ie=b.CRH())&&(Le.content=Ie.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[b.TTD],ngContentSelectors:O,decls:1,vars:0,template:function(te,Le){1&te&&(b.F$t(),b.YNc(0,H,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),ze})(),E=(()=>{class ze{constructor(te,Le,Ie){this._dir=te,this._changeDetectorRef=Le,this._elementRef=Ie,this._destroyed=new T.x,this.steps=new b.n_E,this._sortedHeaders=new b.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new b.vpe,this._orientation="horizontal",this._groupId=G++}get linear(){return this._linear}set linear(te){this._linear=(0,M.Ig)(te)}get selectedIndex(){return this._selectedIndex}set selectedIndex(te){const Le=(0,M.su)(te);var Ie;this.steps&&this._steps?(this._isValidIndex(Le),null===(Ie=this.selected)||void 0===Ie||Ie._markAsInteracted(),this._selectedIndex!==Le&&!this._anyControlsInvalidOrPending(Le)&&(Le>=this._selectedIndex||this.steps.toArray()[Le].editable)&&this._updateSelectedItemIndex(Le)):this._selectedIndex=Le}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(te){this.selectedIndex=te&&this.steps?this.steps.toArray().indexOf(te):-1}get orientation(){return this._orientation}set orientation(te){this._orientation=te,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===te)}ngAfterContentInit(){this._steps.changes.pipe((0,B.O)(this._steps),(0,w.R)(this._destroyed)).subscribe(te=>{this.steps.reset(te.filter(Le=>Le._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,B.O)(this._stepHeader),(0,w.R)(this._destroyed)).subscribe(te=>{this._sortedHeaders.reset(te.toArray().sort((Le,Ie)=>Le._elementRef.nativeElement.compareDocumentPosition(Ie._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new A.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,R.of)()).pipe((0,B.O)(this._layoutDirection()),(0,w.R)(this._destroyed)).subscribe(te=>this._keyManager.withHorizontalOrientation(te)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(te=>te.reset()),this._stateChanged()}_getStepLabelId(te){return`cdk-step-label-${this._groupId}-${te}`}_getStepContentId(te){return`cdk-step-content-${this._groupId}-${te}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(te){const Le=te-this._selectedIndex;return Le<0?"rtl"===this._layoutDirection()?"next":"previous":Le>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(te,Le="number"){const Ie=this.steps.toArray()[te],De=this._isCurrentStep(te);return Ie._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Ie,De):this._getGuidelineLogic(Ie,De,Le)}_getDefaultIndicatorLogic(te,Le){return te._showError()&&te.hasError&&!Le?"error":!te.completed||Le?"number":te.editable?"edit":"done"}_getGuidelineLogic(te,Le,Ie="number"){return te._showError()&&te.hasError&&!Le?"error":te.completed&&!Le?"done":te.completed&&Le?Ie:te.editable&&Le?"edit":Ie}_isCurrentStep(te){return this._selectedIndex===te}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(te){const Le=this.steps.toArray();this.selectionChange.emit({selectedIndex:te,previouslySelectedIndex:this._selectedIndex,selectedStep:Le[te],previouslySelectedStep:Le[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(te):this._keyManager.updateActiveItem(te),this._selectedIndex=te,this._stateChanged()}_onKeydown(te){const Le=(0,f.Vb)(te),Ie=te.keyCode,De=this._keyManager;null==De.activeItemIndex||Le||Ie!==f.L_&&Ie!==f.K5?De.onKeydown(te):(this.selectedIndex=De.activeItemIndex,te.preventDefault())}_anyControlsInvalidOrPending(te){return!!(this._linear&&te>=0)&&this.steps.toArray().slice(0,te).some(Le=>{const Ie=Le.stepControl;return(Ie?Ie.invalid||Ie.pending||!Le.interacted:!Le.completed)&&!Le.optional&&!Le._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const te=this._elementRef.nativeElement,Le=(0,D.ht)();return te===Le||te.contains(Le)}_isValidIndex(te){return te>-1&&(!this.steps||te{class ze{constructor(te){this._stepper=te,this.type="button"}}return ze.\u0275fac=function(te){return new(te||ze)(b.Y36(E))},ze.\u0275dir=b.lG2({type:ze,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(te,Le){1&te&&b.NdJ("click",function(){return Le._stepper.previous()}),2&te&&b.Ikx("type",Le.type)},inputs:{type:"type"}}),ze})(),V=(()=>{class ze{}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275mod=b.oAB({type:ze}),ze.\u0275inj=b.cJS({imports:[C.vT]}),ze})();var X=p(36895),q=p(4859),pe=p(3238),le=p(97392),ye=p(50727),Ve=p(63900),ve=p(54004),Ke=p(71884),Ue=p(37340);function oe(ze,et){if(1&ze&&b.GkF(0,8),2&ze){const te=b.oxw();b.Q6J("ngTemplateOutlet",te.iconOverrides[te.state])("ngTemplateOutletContext",te._getIconContext())}}function ce(ze,et){if(1&ze&&(b.TgZ(0,"span",13),b._uU(1),b.qZA()),2&ze){const te=b.oxw(2);b.xp6(1),b.Oqu(te._getDefaultTextForState(te.state))}}function k(ze,et){if(1&ze&&(b.TgZ(0,"span",14),b._uU(1),b.qZA()),2&ze){const te=b.oxw(2);b.xp6(1),b.Oqu(te._intl.completedLabel)}}function N(ze,et){if(1&ze&&(b.TgZ(0,"span",14),b._uU(1),b.qZA()),2&ze){const te=b.oxw(2);b.xp6(1),b.Oqu(te._intl.editableLabel)}}function be(ze,et){if(1&ze&&(b.TgZ(0,"mat-icon",13),b._uU(1),b.qZA()),2&ze){const te=b.oxw(2);b.xp6(1),b.Oqu(te._getDefaultTextForState(te.state))}}function W(ze,et){if(1&ze&&(b.ynx(0,9),b.YNc(1,ce,2,1,"span",10),b.YNc(2,k,2,1,"span",11),b.YNc(3,N,2,1,"span",11),b.YNc(4,be,2,1,"mat-icon",12),b.BQk()),2&ze){const te=b.oxw();b.Q6J("ngSwitch",te.state),b.xp6(1),b.Q6J("ngSwitchCase","number"),b.xp6(1),b.Q6J("ngIf","done"===te.state),b.xp6(1),b.Q6J("ngIf","edit"===te.state)}}function ue(ze,et){if(1&ze&&(b.TgZ(0,"div",15),b.GkF(1,16),b.qZA()),2&ze){const te=b.oxw();b.xp6(1),b.Q6J("ngTemplateOutlet",te._templateLabel().template)}}function Me(ze,et){if(1&ze&&(b.TgZ(0,"div",15),b._uU(1),b.qZA()),2&ze){const te=b.oxw();b.xp6(1),b.Oqu(te.label)}}function ot(ze,et){if(1&ze&&(b.TgZ(0,"div",17),b._uU(1),b.qZA()),2&ze){const te=b.oxw();b.xp6(1),b.Oqu(te._intl.optionalLabel)}}function je(ze,et){if(1&ze&&(b.TgZ(0,"div",18),b._uU(1),b.qZA()),2&ze){const te=b.oxw();b.xp6(1),b.Oqu(te.errorMessage)}}function ut(ze,et){}function tt(ze,et){if(1&ze&&(b.Hsn(0),b.YNc(1,ut,0,0,"ng-template",0)),2&ze){const te=b.oxw();b.xp6(1),b.Q6J("cdkPortalOutlet",te._portal)}}const vt=["*"];function ee(ze,et){1&ze&&b._UZ(0,"div",11)}const nt=function(ze,et){return{step:ze,i:et}};function Ae(ze,et){if(1&ze&&(b.ynx(0),b.GkF(1,9),b.YNc(2,ee,1,0,"div",10),b.BQk()),2&ze){const te=et.$implicit,Le=et.index,Ie=et.last;b.oxw(2);const De=b.MAs(4);b.xp6(1),b.Q6J("ngTemplateOutlet",De)("ngTemplateOutletContext",b.WLB(3,nt,te,Le)),b.xp6(1),b.Q6J("ngIf",!Ie)}}const Ee=function(ze){return{animationDuration:ze}},ge=function(ze,et){return{value:ze,params:et}};function we(ze,et){if(1&ze){const te=b.EpF();b.TgZ(0,"div",12),b.NdJ("@horizontalStepTransition.done",function(Ie){b.CHM(te);const De=b.oxw(2);return b.KtG(De._animationDone.next(Ie))}),b.GkF(1,13),b.qZA()}if(2&ze){const te=et.$implicit,Le=et.index,Ie=b.oxw(2);b.Q6J("@horizontalStepTransition",b.WLB(7,ge,Ie._getAnimationDirection(Le),b.VKq(5,Ee,Ie._getAnimationDuration())))("id",Ie._getStepContentId(Le)),b.uIk("aria-labelledby",Ie._getStepLabelId(Le))("aria-expanded",Ie.selectedIndex===Le),b.xp6(1),b.Q6J("ngTemplateOutlet",te.content)}}function Ne(ze,et){if(1&ze&&(b.TgZ(0,"div",4)(1,"div",5),b.YNc(2,Ae,3,6,"ng-container",6),b.qZA(),b.TgZ(3,"div",7),b.YNc(4,we,2,10,"div",8),b.qZA()()),2&ze){const te=b.oxw();b.xp6(2),b.Q6J("ngForOf",te.steps),b.xp6(2),b.Q6J("ngForOf",te.steps)}}function Ce(ze,et){if(1&ze){const te=b.EpF();b.TgZ(0,"div",15),b.GkF(1,9),b.TgZ(2,"div",16)(3,"div",17),b.NdJ("@verticalStepTransition.done",function(Ie){b.CHM(te);const De=b.oxw(2);return b.KtG(De._animationDone.next(Ie))}),b.TgZ(4,"div",18),b.GkF(5,13),b.qZA()()()()}if(2&ze){const te=et.$implicit,Le=et.index,Ie=et.last,De=b.oxw(2),xe=b.MAs(4);b.xp6(1),b.Q6J("ngTemplateOutlet",xe)("ngTemplateOutletContext",b.WLB(9,nt,te,Le)),b.xp6(1),b.ekj("mat-stepper-vertical-line",!Ie),b.xp6(1),b.Q6J("@verticalStepTransition",b.WLB(14,ge,De._getAnimationDirection(Le),b.VKq(12,Ee,De._getAnimationDuration())))("id",De._getStepContentId(Le)),b.uIk("aria-labelledby",De._getStepLabelId(Le))("aria-expanded",De.selectedIndex===Le),b.xp6(2),b.Q6J("ngTemplateOutlet",te.content)}}function fe(ze,et){if(1&ze&&(b.ynx(0),b.YNc(1,Ce,6,17,"div",14),b.BQk()),2&ze){const te=b.oxw();b.xp6(1),b.Q6J("ngForOf",te.steps)}}function r(ze,et){if(1&ze){const te=b.EpF();b.TgZ(0,"mat-step-header",19),b.NdJ("click",function(){const De=b.CHM(te).step;return b.KtG(De.select())})("keydown",function(Ie){b.CHM(te);const De=b.oxw();return b.KtG(De._onKeydown(Ie))}),b.qZA()}if(2&ze){const te=et.step,Le=et.i,Ie=b.oxw();b.ekj("mat-horizontal-stepper-header","horizontal"===Ie.orientation)("mat-vertical-stepper-header","vertical"===Ie.orientation),b.Q6J("tabIndex",Ie._getFocusIndex()===Le?0:-1)("id",Ie._getStepLabelId(Le))("index",Le)("state",Ie._getIndicatorType(Le,te.state))("label",te.stepLabel||te.label)("selected",Ie.selectedIndex===Le)("active",Ie._stepIsNavigable(Le,te))("optional",te.optional)("errorMessage",te.errorMessage)("iconOverrides",Ie._iconOverrides)("disableRipple",Ie.disableRipple||!Ie._stepIsNavigable(Le,te))("color",te.color||Ie.color),b.uIk("aria-posinset",Le+1)("aria-setsize",Ie.steps.length)("aria-controls",Ie._getStepContentId(Le))("aria-selected",Ie.selectedIndex==Le)("aria-label",te.ariaLabel||null)("aria-labelledby",!te.ariaLabel&&te.ariaLabelledby?te.ariaLabelledby:null)("aria-disabled",!Ie._stepIsNavigable(Le,te)||null)}}let u=(()=>{class ze extends ne{}return ze.\u0275fac=function(){let et;return function(Le){return(et||(et=b.n5z(ze)))(Le||ze)}}(),ze.\u0275dir=b.lG2({type:ze,selectors:[["","matStepLabel",""]],features:[b.qOj]}),ze})(),g=(()=>{class ze{constructor(){this.changes=new T.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275prov=b.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();const h={provide:g,deps:[[new b.FiY,new b.tp0,g]],useFactory:function v(ze){return ze||new g}},a=(0,pe.pj)(class extends J{constructor(et){super(et)}},"primary");let i=(()=>{class ze extends a{constructor(te,Le,Ie,De){super(Ie),this._intl=te,this._focusMonitor=Le,this._intlSubscription=te.changes.subscribe(()=>De.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(te,Le){te?this._focusMonitor.focusVia(this._elementRef,te,Le):this._elementRef.nativeElement.focus(Le)}_stringLabel(){return this.label instanceof u?null:this.label}_templateLabel(){return this.label instanceof u?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(te){return"number"==te?`${this.index+1}`:"edit"==te?"create":"error"==te?"warning":te}}return ze.\u0275fac=function(te){return new(te||ze)(b.Y36(g),b.Y36(A.tE),b.Y36(b.SBq),b.Y36(b.sBO))},ze.\u0275cmp=b.Xpm({type:ze,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[b.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(te,Le){1&te&&(b._UZ(0,"div",0),b.TgZ(1,"div")(2,"div",1),b.YNc(3,oe,1,2,"ng-container",2),b.YNc(4,W,5,4,"ng-container",3),b.qZA()(),b.TgZ(5,"div",4),b.YNc(6,ue,2,1,"div",5),b.YNc(7,Me,2,1,"div",5),b.YNc(8,ot,2,1,"div",6),b.YNc(9,je,2,1,"div",7),b.qZA()),2&te&&(b.Q6J("matRippleTrigger",Le._getHostElement())("matRippleDisabled",Le.disableRipple),b.xp6(1),b.Gre("mat-step-icon-state-",Le.state," mat-step-icon"),b.ekj("mat-step-icon-selected",Le.selected),b.xp6(1),b.Q6J("ngSwitch",!(!Le.iconOverrides||!Le.iconOverrides[Le.state])),b.xp6(1),b.Q6J("ngSwitchCase",!0),b.xp6(2),b.ekj("mat-step-label-active",Le.active)("mat-step-label-selected",Le.selected)("mat-step-label-error","error"==Le.state),b.xp6(1),b.Q6J("ngIf",Le._templateLabel()),b.xp6(1),b.Q6J("ngIf",Le._stringLabel()),b.xp6(1),b.Q6J("ngIf",Le.optional&&"error"!=Le.state),b.xp6(1),b.Q6J("ngIf","error"==Le.state))},dependencies:[X.O5,X.tP,X.RF,X.n9,X.ED,le.Hw,pe.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),ze})();const t="500ms",n="225ms",o={horizontalStepTransition:(0,Ue.X$)("horizontalStepTransition",[(0,Ue.SB)("previous",(0,Ue.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Ue.SB)("current",(0,Ue.oB)({transform:"none",visibility:"inherit"})),(0,Ue.SB)("next",(0,Ue.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Ue.eR)("* => *",(0,Ue.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:t}})]),verticalStepTransition:(0,Ue.X$)("verticalStepTransition",[(0,Ue.SB)("previous",(0,Ue.oB)({height:"0px",visibility:"hidden"})),(0,Ue.SB)("next",(0,Ue.oB)({height:"0px",visibility:"hidden"})),(0,Ue.SB)("current",(0,Ue.oB)({height:"*",visibility:"inherit"})),(0,Ue.eR)("* <=> current",(0,Ue.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:n}})])};let s=(()=>{class ze{constructor(te){this.templateRef=te}}return ze.\u0275fac=function(te){return new(te||ze)(b.Y36(b.Rgc))},ze.\u0275dir=b.lG2({type:ze,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ze})(),l=(()=>{class ze{constructor(te){this._template=te}}return ze.\u0275fac=function(te){return new(te||ze)(b.Y36(b.Rgc))},ze.\u0275dir=b.lG2({type:ze,selectors:[["ng-template","matStepContent",""]]}),ze})(),d=(()=>{class ze extends Be{constructor(te,Le,Ie,De){super(te,De),this._errorStateMatcher=Le,this._viewContainerRef=Ie,this._isSelected=ye.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,Ve.w)(()=>this._stepper.selectionChange.pipe((0,ve.U)(te=>te.selectedStep===this),(0,B.O)(this._stepper.selected===this)))).subscribe(te=>{te&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(te,Le){return this._errorStateMatcher.isErrorState(te,Le)||!!(te&&te.invalid&&this.interacted)}}return ze.\u0275fac=function(te){return new(te||ze)(b.Y36((0,b.Gpc)(()=>c)),b.Y36(pe.rD,4),b.Y36(b.s_b),b.Y36(_e,8))},ze.\u0275cmp=b.Xpm({type:ze,selectors:[["mat-step"]],contentQueries:function(te,Le,Ie){if(1&te&&(b.Suo(Ie,u,5),b.Suo(Ie,l,5)),2&te){let De;b.iGM(De=b.CRH())&&(Le.stepLabel=De.first),b.iGM(De=b.CRH())&&(Le._lazyContent=De.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[b._Bn([{provide:pe.rD,useExisting:ze},{provide:Be,useExisting:ze}]),b.qOj],ngContentSelectors:vt,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(te,Le){1&te&&(b.F$t(),b.YNc(0,tt,2,1,"ng-template"))},dependencies:[e.Pl],encapsulation:2,changeDetection:0}),ze})(),c=(()=>{class ze extends E{constructor(te,Le,Ie){super(te,Le,Ie),this.steps=new b.n_E,this.animationDone=new b.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new T.x,this._animationDuration="";const De=Ie.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===De?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(te){this._animationDuration=/^\d+$/.test(te)?te+"ms":te}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:te,templateRef:Le})=>this._iconOverrides[te]=Le),this.steps.changes.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,Ke.x)((te,Le)=>te.fromState===Le.fromState&&te.toState===Le.toState),(0,w.R)(this._destroyed)).subscribe(te=>{"current"===te.toState&&this.animationDone.emit()})}_stepIsNavigable(te,Le){return Le.completed||this.selectedIndex===te||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?t:n}}return ze.\u0275fac=function(te){return new(te||ze)(b.Y36(C.Is,8),b.Y36(b.sBO),b.Y36(b.SBq))},ze.\u0275cmp=b.Xpm({type:ze,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(te,Le,Ie){if(1&te&&(b.Suo(Ie,d,5),b.Suo(Ie,s,5)),2&te){let De;b.iGM(De=b.CRH())&&(Le._steps=De),b.iGM(De=b.CRH())&&(Le._icons=De)}},viewQuery:function(te,Le){if(1&te&&b.Gf(i,5),2&te){let Ie;b.iGM(Ie=b.CRH())&&(Le._stepHeader=Ie)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(te,Le){2&te&&(b.uIk("aria-orientation",Le.orientation),b.ekj("mat-stepper-horizontal","horizontal"===Le.orientation)("mat-stepper-vertical","vertical"===Le.orientation)("mat-stepper-label-position-end","horizontal"===Le.orientation&&"end"==Le.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Le.orientation&&"bottom"==Le.labelPosition)("mat-stepper-header-position-bottom","bottom"===Le.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[b._Bn([{provide:E,useExisting:ze}]),b.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(te,Le){1&te&&(b.ynx(0,0),b.YNc(1,Ne,5,2,"div",1),b.YNc(2,fe,2,1,"ng-container",2),b.BQk(),b.YNc(3,r,1,23,"ng-template",null,3,b.W1O)),2&te&&(b.Q6J("ngSwitch",Le.orientation),b.xp6(1),b.Q6J("ngSwitchCase","horizontal"),b.xp6(1),b.Q6J("ngSwitchCase","vertical"))},dependencies:[X.sg,X.O5,X.tP,X.RF,X.n9,i],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[o.horizontalStepTransition,o.verticalStepTransition]},changeDetection:0}),ze})(),$=(()=>{class ze extends F{}return ze.\u0275fac=function(){let et;return function(Le){return(et||(et=b.n5z(ze)))(Le||ze)}}(),ze.\u0275dir=b.lG2({type:ze,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(te,Le){2&te&&b.Ikx("type",Le.type)},inputs:{type:"type"},features:[b.qOj]}),ze})(),ht=(()=>{class ze{}return ze.\u0275fac=function(te){return new(te||ze)},ze.\u0275mod=b.oAB({type:ze}),ze.\u0275inj=b.cJS({providers:[h,pe.rD],imports:[pe.BQ,X.ez,e.eL,q.ot,V,le.Ps,pe.si,pe.BQ]}),ze})()},30671:($e,he,p)=>{"use strict";p.d(he,{ev:()=>jt,Dz:()=>st,w1:()=>ke,ge:()=>at,fO:()=>Qe,XQ:()=>bn,as:()=>an,Gk:()=>Dt,nj:()=>on,BZ:()=>Te,by:()=>zn,p0:()=>ln});var e=p(94650),A=p(40445),C=p(21281),M=p(95017),f=p(83353),b=p(67376),D=p(36895),T=p(77579),R=p(32076),B=p(61135),w=p(45191),H=p(39646),O=p(82722),J=p(95698);const ne=[[["caption"]],[["colgroup"],["col"]]],G=["caption","colgroup, col"];function _e(bt){return class extends bt{constructor(...Lt){super(...Lt),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Lt){const pt=this._sticky;this._sticky=(0,C.Ig)(Lt),this._hasStickyChanged=pt!==this._sticky}hasStickyChanged(){const Lt=this._hasStickyChanged;return this._hasStickyChanged=!1,Lt}resetStickyChanged(){this._hasStickyChanged=!1}}}const Be=new e.OlP("CDK_TABLE");let z=(()=>{class bt{constructor(pt){this.template=pt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkCellDef",""]]}),bt})(),F=(()=>{class bt{constructor(pt){this.template=pt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkHeaderCellDef",""]]}),bt})(),V=(()=>{class bt{constructor(pt){this.template=pt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkFooterCellDef",""]]}),bt})();class X{}const q=_e(X);let pe=(()=>{class bt extends q{constructor(pt){super(),this._table=pt,this._stickyEnd=!1}get name(){return this._name}set name(pt){this._setNameInput(pt)}get stickyEnd(){return this._stickyEnd}set stickyEnd(pt){const it=this._stickyEnd;this._stickyEnd=(0,C.Ig)(pt),this._hasStickyChanged=it!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(pt){pt&&(this._name=pt,this.cssClassFriendlyName=pt.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(Be,8))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkColumnDef",""]],contentQueries:function(pt,it,St){if(1&pt&&(e.Suo(St,z,5),e.Suo(St,F,5),e.Suo(St,V,5)),2&pt){let j;e.iGM(j=e.CRH())&&(it.cell=j.first),e.iGM(j=e.CRH())&&(it.headerCell=j.first),e.iGM(j=e.CRH())&&(it.footerCell=j.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:bt}]),e.qOj]}),bt})();class le{constructor(Lt,pt){pt.nativeElement.classList.add(...Lt._columnCssClassName)}}let ye=(()=>{class bt extends le{constructor(pt,it){super(pt,it)}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(pe),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),bt})(),ve=(()=>{class bt extends le{constructor(pt,it){var St;if(super(pt,it),1===(null===(St=pt._table)||void 0===St?void 0:St._elementRef.nativeElement.nodeType)){const j=pt._table._elementRef.nativeElement.getAttribute("role");it.nativeElement.setAttribute("role","grid"===j||"treegrid"===j?"gridcell":"cell")}}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(pe),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),bt})();class Ke{constructor(){this.tasks=[],this.endTasks=[]}}const Ue=new e.OlP("_COALESCED_STYLE_SCHEDULER");let oe=(()=>{class bt{constructor(pt){this._ngZone=pt,this._currentSchedule=null,this._destroyed=new T.x}schedule(pt){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(pt)}scheduleEnd(pt){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(pt)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Ke,this._getScheduleObservable().pipe((0,O.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const pt=this._currentSchedule;this._currentSchedule=new Ke;for(const it of pt.tasks)it();for(const it of pt.endTasks)it()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,R.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,J.q)(1))}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.LFG(e.R0b))},bt.\u0275prov=e.Yz7({token:bt,factory:bt.\u0275fac}),bt})(),k=(()=>{class bt{constructor(pt,it){this.template=pt,this._differs=it}ngOnChanges(pt){if(!this._columnsDiffer){const it=pt.columns&&pt.columns.currentValue||[];this._columnsDiffer=this._differs.find(it).create(),this._columnsDiffer.diff(it)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(pt){return this instanceof W?pt.headerCell.template:this instanceof ot?pt.footerCell.template:pt.cell.template}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},bt.\u0275dir=e.lG2({type:bt,features:[e.TTD]}),bt})();class N extends k{}const be=_e(N);let W=(()=>{class bt extends be{constructor(pt,it,St){super(pt,it),this._table=St}ngOnChanges(pt){super.ngOnChanges(pt)}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Be,8))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),bt})();class ue extends k{}const Me=_e(ue);let ot=(()=>{class bt extends Me{constructor(pt,it,St){super(pt,it),this._table=St}ngOnChanges(pt){super.ngOnChanges(pt)}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Be,8))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),bt})(),je=(()=>{class bt extends k{constructor(pt,it,St){super(pt,it),this._table=St}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Be,8))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),bt})(),ut=(()=>{class bt{constructor(pt){this._viewContainer=pt,bt.mostRecentCellOutlet=this}ngOnDestroy(){bt.mostRecentCellOutlet===this&&(bt.mostRecentCellOutlet=null)}}return bt.mostRecentCellOutlet=null,bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.s_b))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkCellOutlet",""]]}),bt})(),tt=(()=>{class bt{}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275cmp=e.Xpm({type:bt,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},dependencies:[ut],encapsulation:2}),bt})(),ee=(()=>{class bt{}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275cmp=e.Xpm({type:bt,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},dependencies:[ut],encapsulation:2}),bt})(),nt=(()=>{class bt{constructor(pt){this.templateRef=pt,this._contentClassName="cdk-no-data-row"}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc))},bt.\u0275dir=e.lG2({type:bt,selectors:[["ng-template","cdkNoDataRow",""]]}),bt})();const Ae=["top","bottom","left","right"];class Ee{constructor(Lt,pt,it,St,j=!0,He=!0,mt){this._isNativeHtmlTable=Lt,this._stickCellCss=pt,this.direction=it,this._coalescedStyleScheduler=St,this._isBrowser=j,this._needsPositionStickyOnElement=He,this._positionListener=mt,this._cachedCellWidths=[],this._borderCellCss={top:`${pt}-border-elem-top`,bottom:`${pt}-border-elem-bottom`,left:`${pt}-border-elem-left`,right:`${pt}-border-elem-right`}}clearStickyPositioning(Lt,pt){const it=[];for(const St of Lt)if(St.nodeType===St.ELEMENT_NODE){it.push(St);for(let j=0;j{for(const St of it)this._removeStickyStyle(St,pt)})}updateStickyColumns(Lt,pt,it,St=!0){if(!Lt.length||!this._isBrowser||!pt.some(In=>In)&&!it.some(In=>In))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const j=Lt[0],He=j.children.length,mt=this._getCellWidths(j,St),Rt=this._getStickyStartColumnPositions(mt,pt),Xt=this._getStickyEndColumnPositions(mt,it),vn=pt.lastIndexOf(!0),Vn=it.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const In="rtl"===this.direction,Kn=In?"right":"left",ti=In?"left":"right";for(const $n of Lt)for(let Jn=0;Jnpt[Jn]?$n:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Vn?[]:mt.slice(Vn).map(($n,Jn)=>it[Jn+Vn]?$n:null).reverse()}))})}stickRows(Lt,pt,it){if(!this._isBrowser)return;const St="bottom"===it?Lt.slice().reverse():Lt,j="bottom"===it?pt.slice().reverse():pt,He=[],mt=[],Rt=[];for(let vn=0,Vn=0;vn{for(let In=0;In{pt.some(St=>!St)?this._removeStickyStyle(it,["bottom"]):this._addStickyStyle(it,"bottom",0,!1)})}_removeStickyStyle(Lt,pt){for(const St of pt)Lt.style[St]="",Lt.classList.remove(this._borderCellCss[St]);Ae.some(St=>-1===pt.indexOf(St)&&Lt.style[St])?Lt.style.zIndex=this._getCalculatedZIndex(Lt):(Lt.style.zIndex="",this._needsPositionStickyOnElement&&(Lt.style.position=""),Lt.classList.remove(this._stickCellCss))}_addStickyStyle(Lt,pt,it,St){Lt.classList.add(this._stickCellCss),St&&Lt.classList.add(this._borderCellCss[pt]),Lt.style[pt]=`${it}px`,Lt.style.zIndex=this._getCalculatedZIndex(Lt),this._needsPositionStickyOnElement&&(Lt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Lt){const pt={top:100,bottom:10,left:1,right:1};let it=0;for(const St of Ae)Lt.style[St]&&(it+=pt[St]);return it?`${it}`:""}_getCellWidths(Lt,pt=!0){if(!pt&&this._cachedCellWidths.length)return this._cachedCellWidths;const it=[],St=Lt.children;for(let j=0;j0;j--)pt[j]&&(it[j]=St,St+=Lt[j]);return it}}const v=new e.OlP("CDK_SPL");let a=(()=>{class bt{constructor(pt,it){this.viewContainer=pt,this.elementRef=it}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.s_b),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","rowOutlet",""]]}),bt})(),i=(()=>{class bt{constructor(pt,it){this.viewContainer=pt,this.elementRef=it}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.s_b),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","headerRowOutlet",""]]}),bt})(),t=(()=>{class bt{constructor(pt,it){this.viewContainer=pt,this.elementRef=it}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.s_b),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","footerRowOutlet",""]]}),bt})(),n=(()=>{class bt{constructor(pt,it){this.viewContainer=pt,this.elementRef=it}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.s_b),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","noDataRowOutlet",""]]}),bt})(),l=(()=>{class bt{constructor(pt,it,St,j,He,mt,Rt,Xt,vn,Vn,In,Kn){this._differs=pt,this._changeDetectorRef=it,this._elementRef=St,this._dir=He,this._platform=Rt,this._viewRepeater=Xt,this._coalescedStyleScheduler=vn,this._viewportRuler=Vn,this._stickyPositioningListener=In,this._ngZone=Kn,this._onDestroy=new T.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new B.X({start:0,end:Number.MAX_VALUE}),j||this._elementRef.nativeElement.setAttribute("role","table"),this._document=mt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(pt){this._trackByFn=pt}get dataSource(){return this._dataSource}set dataSource(pt){this._dataSource!==pt&&this._switchDataSource(pt)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(pt){this._multiTemplateDataRows=(0,C.Ig)(pt),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(pt){this._fixedLayout=(0,C.Ig)(pt),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((pt,it)=>this.trackBy?this.trackBy(it.dataIndex,it.data):it),this._viewportRuler.change().pipe((0,O.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const it=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||it,this._forceRecalculateCellWidths=it,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(pt=>{pt.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,M.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const pt=this._dataDiffer.diff(this._renderRows);if(!pt)return this._updateNoDataRow(),void this.contentChanged.next();const it=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(pt,it,(St,j,He)=>this._getEmbeddedViewArgs(St.item,He),St=>St.item.data,St=>{1===St.operation&&St.context&&this._renderCellTemplateForItem(St.record.item.rowDef,St.context)}),this._updateRowIndexContext(),pt.forEachIdentityChange(St=>{it.get(St.currentIndex).context.$implicit=St.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,J.q)(1),(0,O.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(pt){this._customColumnDefs.add(pt)}removeColumnDef(pt){this._customColumnDefs.delete(pt)}addRowDef(pt){this._customRowDefs.add(pt)}removeRowDef(pt){this._customRowDefs.delete(pt)}addHeaderRowDef(pt){this._customHeaderRowDefs.add(pt),this._headerRowDefChanged=!0}removeHeaderRowDef(pt){this._customHeaderRowDefs.delete(pt),this._headerRowDefChanged=!0}addFooterRowDef(pt){this._customFooterRowDefs.add(pt),this._footerRowDefChanged=!0}removeFooterRowDef(pt){this._customFooterRowDefs.delete(pt),this._footerRowDefChanged=!0}setNoDataRow(pt){this._customNoDataRow=pt}updateStickyHeaderRowStyles(){const pt=this._getRenderedRows(this._headerRowOutlet),St=this._elementRef.nativeElement.querySelector("thead");St&&(St.style.display=pt.length?"":"none");const j=this._headerRowDefs.map(He=>He.sticky);this._stickyStyler.clearStickyPositioning(pt,["top"]),this._stickyStyler.stickRows(pt,j,"top"),this._headerRowDefs.forEach(He=>He.resetStickyChanged())}updateStickyFooterRowStyles(){const pt=this._getRenderedRows(this._footerRowOutlet),St=this._elementRef.nativeElement.querySelector("tfoot");St&&(St.style.display=pt.length?"":"none");const j=this._footerRowDefs.map(He=>He.sticky);this._stickyStyler.clearStickyPositioning(pt,["bottom"]),this._stickyStyler.stickRows(pt,j,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,j),this._footerRowDefs.forEach(He=>He.resetStickyChanged())}updateStickyColumnStyles(){const pt=this._getRenderedRows(this._headerRowOutlet),it=this._getRenderedRows(this._rowOutlet),St=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...pt,...it,...St],["left","right"]),this._stickyColumnStylesNeedReset=!1),pt.forEach((j,He)=>{this._addStickyColumnStyles([j],this._headerRowDefs[He])}),this._rowDefs.forEach(j=>{const He=[];for(let mt=0;mt{this._addStickyColumnStyles([j],this._footerRowDefs[He])}),Array.from(this._columnDefsByName.values()).forEach(j=>j.resetStickyChanged())}_getAllRenderRows(){const pt=[],it=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let St=0;St{const mt=St&&St.has(He)?St.get(He):[];if(mt.length){const Rt=mt.shift();return Rt.dataIndex=it,Rt}return{data:pt,rowDef:He,dataIndex:it}})}_cacheColumnDefs(){this._columnDefsByName.clear(),d(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(it=>{this._columnDefsByName.has(it.name),this._columnDefsByName.set(it.name,it)})}_cacheRowDefs(){this._headerRowDefs=d(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=d(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=d(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const pt=this._rowDefs.filter(it=>!it.when);this._defaultRowDef=pt[0]}_renderUpdatedColumns(){const pt=(He,mt)=>He||!!mt.getColumnsDiff(),it=this._rowDefs.reduce(pt,!1);it&&this._forceRenderDataRows();const St=this._headerRowDefs.reduce(pt,!1);St&&this._forceRenderHeaderRows();const j=this._footerRowDefs.reduce(pt,!1);return j&&this._forceRenderFooterRows(),it||St||j}_switchDataSource(pt){this._data=[],(0,M.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),pt||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=pt}_observeRenderChanges(){if(!this.dataSource)return;let pt;(0,M.Z9)(this.dataSource)?pt=this.dataSource.connect(this):(0,w.b)(this.dataSource)?pt=this.dataSource:Array.isArray(this.dataSource)&&(pt=(0,H.of)(this.dataSource)),this._renderChangeSubscription=pt.pipe((0,O.R)(this._onDestroy)).subscribe(it=>{this._data=it||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((pt,it)=>this._renderRow(this._headerRowOutlet,pt,it)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((pt,it)=>this._renderRow(this._footerRowOutlet,pt,it)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(pt,it){const St=Array.from(it.columns||[]).map(mt=>this._columnDefsByName.get(mt)),j=St.map(mt=>mt.sticky),He=St.map(mt=>mt.stickyEnd);this._stickyStyler.updateStickyColumns(pt,j,He,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(pt){const it=[];for(let St=0;St!j.when||j.when(it,pt));else{let j=this._rowDefs.find(He=>He.when&&He.when(it,pt))||this._defaultRowDef;j&&St.push(j)}return St}_getEmbeddedViewArgs(pt,it){return{templateRef:pt.rowDef.template,context:{$implicit:pt.data},index:it}}_renderRow(pt,it,St,j={}){const He=pt.viewContainer.createEmbeddedView(it.template,j,St);return this._renderCellTemplateForItem(it,j),He}_renderCellTemplateForItem(pt,it){for(let St of this._getCellTemplates(pt))ut.mostRecentCellOutlet&&ut.mostRecentCellOutlet._viewContainer.createEmbeddedView(St,it);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const pt=this._rowOutlet.viewContainer;for(let it=0,St=pt.length;it{const St=this._columnDefsByName.get(it);return pt.extractCellTemplate(St)}):[]}_applyNativeTableSections(){const pt=this._document.createDocumentFragment(),it=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const St of it){const j=this._document.createElement(St.tag);j.setAttribute("role","rowgroup");for(const He of St.outlets)j.appendChild(He.elementRef.nativeElement);pt.appendChild(j)}this._elementRef.nativeElement.appendChild(pt)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const pt=(it,St)=>it||St.hasStickyChanged();this._headerRowDefs.reduce(pt,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(pt,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(pt,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ee(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,H.of)()).pipe((0,O.R)(this._onDestroy)).subscribe(it=>{this._stickyStyler.direction=it,this.updateStickyColumnStyles()})}_getOwnDefs(pt){return pt.filter(it=>!it._table||it._table===this)}_updateNoDataRow(){const pt=this._customNoDataRow||this._noDataRow;if(!pt)return;const it=0===this._rowOutlet.viewContainer.length;if(it===this._isShowingNoDataRow)return;const St=this._noDataRowOutlet.viewContainer;if(it){const j=St.createEmbeddedView(pt.templateRef),He=j.rootNodes[0];1===j.rootNodes.length&&He?.nodeType===this._document.ELEMENT_NODE&&(He.setAttribute("role","row"),He.classList.add(pt._contentClassName))}else St.clear();this._isShowingNoDataRow=it}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(A.Is,8),e.Y36(D.K0),e.Y36(f.t4),e.Y36(M.k),e.Y36(Ue),e.Y36(b.rL),e.Y36(v,12),e.Y36(e.R0b,8))},bt.\u0275cmp=e.Xpm({type:bt,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(pt,it,St){if(1&pt&&(e.Suo(St,nt,5),e.Suo(St,pe,5),e.Suo(St,je,5),e.Suo(St,W,5),e.Suo(St,ot,5)),2&pt){let j;e.iGM(j=e.CRH())&&(it._noDataRow=j.first),e.iGM(j=e.CRH())&&(it._contentColumnDefs=j),e.iGM(j=e.CRH())&&(it._contentRowDefs=j),e.iGM(j=e.CRH())&&(it._contentHeaderRowDefs=j),e.iGM(j=e.CRH())&&(it._contentFooterRowDefs=j)}},viewQuery:function(pt,it){if(1&pt&&(e.Gf(a,7),e.Gf(i,7),e.Gf(t,7),e.Gf(n,7)),2&pt){let St;e.iGM(St=e.CRH())&&(it._rowOutlet=St.first),e.iGM(St=e.CRH())&&(it._headerRowOutlet=St.first),e.iGM(St=e.CRH())&&(it._footerRowOutlet=St.first),e.iGM(St=e.CRH())&&(it._noDataRowOutlet=St.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(pt,it){2&pt&&e.ekj("cdk-table-fixed-layout",it.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:Be,useExisting:bt},{provide:M.k,useClass:M.yy},{provide:Ue,useClass:oe},{provide:v,useValue:null}])],ngContentSelectors:G,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(pt,it){1&pt&&(e.F$t(ne),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[a,i,t,n],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),bt})();function d(bt,Lt){return bt.concat(Array.from(Lt))}let $=(()=>{class bt{}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275mod=e.oAB({type:bt}),bt.\u0275inj=e.cJS({imports:[b.Cl]}),bt})();var ht=p(3238),ze=p(56451),et=p(39841),te=p(54004);const Le=[[["caption"]],[["colgroup"],["col"]]],Ie=["caption","colgroup, col"];let Te=(()=>{class bt extends l{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return bt.\u0275fac=function(){let Lt;return function(it){return(Lt||(Lt=e.n5z(bt)))(it||bt)}}(),bt.\u0275cmp=e.Xpm({type:bt,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(pt,it){2&pt&&e.ekj("mat-table-fixed-layout",it.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:M.k,useClass:M.yy},{provide:l,useExisting:bt},{provide:Be,useExisting:bt},{provide:Ue,useClass:oe},{provide:v,useValue:null}]),e.qOj],ngContentSelectors:Ie,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(pt,it){1&pt&&(e.F$t(Le),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[a,i,t,n],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),bt})(),st=(()=>{class bt extends z{}return bt.\u0275fac=function(){let Lt;return function(it){return(Lt||(Lt=e.n5z(bt)))(it||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:z,useExisting:bt}]),e.qOj]}),bt})(),Qe=(()=>{class bt extends F{}return bt.\u0275fac=function(){let Lt;return function(it){return(Lt||(Lt=e.n5z(bt)))(it||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:F,useExisting:bt}]),e.qOj]}),bt})(),ke=(()=>{class bt extends pe{get name(){return this._name}set name(pt){this._setNameInput(pt)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return bt.\u0275fac=function(){let Lt;return function(it){return(Lt||(Lt=e.n5z(bt)))(it||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:pe,useExisting:bt},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:bt}]),e.qOj]}),bt})(),at=(()=>{class bt extends ye{}return bt.\u0275fac=function(){let Lt;return function(it){return(Lt||(Lt=e.n5z(bt)))(it||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),bt})(),jt=(()=>{class bt extends ve{}return bt.\u0275fac=function(){let Lt;return function(it){return(Lt||(Lt=e.n5z(bt)))(it||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),bt})(),an=(()=>{class bt extends W{}return bt.\u0275fac=function(){let Lt;return function(it){return(Lt||(Lt=e.n5z(bt)))(it||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:W,useExisting:bt}]),e.qOj]}),bt})(),on=(()=>{class bt extends je{}return bt.\u0275fac=function(){let Lt;return function(it){return(Lt||(Lt=e.n5z(bt)))(it||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:je,useExisting:bt}]),e.qOj]}),bt})(),bn=(()=>{class bt extends tt{}return bt.\u0275fac=function(){let Lt;return function(it){return(Lt||(Lt=e.n5z(bt)))(it||bt)}}(),bt.\u0275cmp=e.Xpm({type:bt,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:tt,useExisting:bt}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},dependencies:[ut],encapsulation:2}),bt})(),Dt=(()=>{class bt extends ee{}return bt.\u0275fac=function(){let Lt;return function(it){return(Lt||(Lt=e.n5z(bt)))(it||bt)}}(),bt.\u0275cmp=e.Xpm({type:bt,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:ee,useExisting:bt}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},dependencies:[ut],encapsulation:2}),bt})(),ln=(()=>{class bt{}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275mod=e.oAB({type:bt}),bt.\u0275inj=e.cJS({imports:[$,ht.BQ,ht.BQ]}),bt})();class gn extends M.o2{constructor(Lt=[]){super(),this._renderData=new B.X([]),this._filter=new B.X(""),this._internalPageChanges=new T.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(pt,it)=>{const St=pt[it];if((0,C.t6)(St)){const j=Number(St);return j<9007199254740991?j:St}return St},this.sortData=(pt,it)=>{const St=it.active,j=it.direction;return St&&""!=j?pt.sort((He,mt)=>{let Rt=this.sortingDataAccessor(He,St),Xt=this.sortingDataAccessor(mt,St);const vn=typeof Rt,Vn=typeof Xt;vn!==Vn&&("number"===vn&&(Rt+=""),"number"===Vn&&(Xt+=""));let In=0;return null!=Rt&&null!=Xt?Rt>Xt?In=1:Rt{const St=Object.keys(pt).reduce((He,mt)=>He+pt[mt]+"\u25ec","").toLowerCase(),j=it.trim().toLowerCase();return-1!=St.indexOf(j)},this._data=new B.X(Lt),this._updateChangeSubscription()}get data(){return this._data.value}set data(Lt){Lt=Array.isArray(Lt)?Lt:[],this._data.next(Lt),this._renderChangesSubscription||this._filterData(Lt)}get filter(){return this._filter.value}set filter(Lt){this._filter.next(Lt),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Lt){this._sort=Lt,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Lt){this._paginator=Lt,this._updateChangeSubscription()}_updateChangeSubscription(){var Lt;const pt=this._sort?(0,ze.T)(this._sort.sortChange,this._sort.initialized):(0,H.of)(null),it=this._paginator?(0,ze.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,H.of)(null),j=(0,et.a)([this._data,this._filter]).pipe((0,te.U)(([Rt])=>this._filterData(Rt))),He=(0,et.a)([j,pt]).pipe((0,te.U)(([Rt])=>this._orderData(Rt))),mt=(0,et.a)([He,it]).pipe((0,te.U)(([Rt])=>this._pageData(Rt)));null===(Lt=this._renderChangesSubscription)||void 0===Lt||Lt.unsubscribe(),this._renderChangesSubscription=mt.subscribe(Rt=>this._renderData.next(Rt))}_filterData(Lt){return this.filteredData=null==this.filter||""===this.filter?Lt:Lt.filter(pt=>this.filterPredicate(pt,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Lt){return this.sort?this.sortData(Lt.slice(),this.sort):Lt}_pageData(Lt){if(!this.paginator)return Lt;const pt=this.paginator.pageIndex*this.paginator.pageSize;return Lt.slice(pt,pt+this.paginator.pageSize)}_updatePaginator(Lt){Promise.resolve().then(()=>{const pt=this.paginator;if(pt&&(pt.length=Lt,pt.pageIndex>0)){const it=Math.ceil(pt.length/pt.pageSize)-1||0,St=Math.min(pt.pageIndex,it);St!==pt.pageIndex&&(pt.pageIndex=St,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Lt;null===(Lt=this._renderChangesSubscription)||void 0===Lt||Lt.unsubscribe(),this._renderChangesSubscription=null}}class zn extends gn{}},3848:($e,he,p)=>{"use strict";p.d(he,{Nh:()=>st,SP:()=>et,Vc:()=>Ae,uD:()=>we,uX:()=>fe});var e=p(12687),A=p(49643),C=p(84080),M=p(36895),f=p(94650),b=p(3238),D=p(95698),T=p(68675),R=p(71884),B=p(82722),w=p(63900),H=p(35684),O=p(77579),J=p(50727),ne=p(54968),G=p(39646),se=p(56451),Oe=p(60515),_e=p(69751),Be=p(82805),E=p(40445),z=p(37340),F=p(21281),V=p(67376),X=p(83353),q=p(29521);function pe(Qe,Et){1&Qe&&f.Hsn(0)}const le=["*"];function ye(Qe,Et){}const Ve=function(Qe){return{animationDuration:Qe}},ve=function(Qe,Et){return{value:Qe,params:Et}},Ke=["tabListContainer"],Ue=["tabList"],oe=["tabListInner"],ce=["nextPaginator"],k=["previousPaginator"],N=["tabBodyWrapper"],be=["tabHeader"];function W(Qe,Et){}function ue(Qe,Et){if(1&Qe&&f.YNc(0,W,0,0,"ng-template",10),2&Qe){const ke=f.oxw().$implicit;f.Q6J("cdkPortalOutlet",ke.templateLabel)}}function Me(Qe,Et){if(1&Qe&&f._uU(0),2&Qe){const ke=f.oxw().$implicit;f.Oqu(ke.textLabel)}}function ot(Qe,Et){if(1&Qe){const ke=f.EpF();f.TgZ(0,"div",6),f.NdJ("click",function(){const It=f.CHM(ke),jt=It.$implicit,an=It.index,Kt=f.oxw(),on=f.MAs(1);return f.KtG(Kt._handleClick(jt,on,an))})("cdkFocusChange",function(It){const an=f.CHM(ke).index,Kt=f.oxw();return f.KtG(Kt._tabFocusChanged(It,an))}),f.TgZ(1,"div",7),f.YNc(2,ue,1,1,"ng-template",8),f.YNc(3,Me,1,1,"ng-template",null,9,f.W1O),f.qZA()()}if(2&Qe){const ke=Et.$implicit,at=Et.index,It=f.MAs(4),jt=f.oxw();f.ekj("mat-tab-label-active",jt.selectedIndex===at),f.Q6J("id",jt._getTabLabelId(at))("ngClass",ke.labelClass)("disabled",ke.disabled)("matRippleDisabled",ke.disabled||jt.disableRipple),f.uIk("tabIndex",jt._getTabIndex(ke,at))("aria-posinset",at+1)("aria-setsize",jt._tabs.length)("aria-controls",jt._getTabContentId(at))("aria-selected",jt.selectedIndex===at)("aria-label",ke.ariaLabel||null)("aria-labelledby",!ke.ariaLabel&&ke.ariaLabelledby?ke.ariaLabelledby:null),f.xp6(2),f.Q6J("ngIf",ke.templateLabel)("ngIfElse",It)}}function je(Qe,Et){if(1&Qe){const ke=f.EpF();f.TgZ(0,"mat-tab-body",11),f.NdJ("_onCentered",function(){f.CHM(ke);const It=f.oxw();return f.KtG(It._removeTabBodyWrapperHeight())})("_onCentering",function(It){f.CHM(ke);const jt=f.oxw();return f.KtG(jt._setTabBodyWrapperHeight(It))}),f.qZA()}if(2&Qe){const ke=Et.$implicit,at=Et.index,It=f.oxw();f.ekj("mat-tab-body-active",It.selectedIndex===at),f.Q6J("id",It._getTabContentId(at))("ngClass",ke.bodyClass)("content",ke.content)("position",ke.position)("origin",ke.origin)("animationDuration",It.animationDuration)("preserveContent",It.preserveContent),f.uIk("tabindex",null!=It.contentTabIndex&&It.selectedIndex===at?It.contentTabIndex:null)("aria-labelledby",It._getTabLabelId(at))}}const tt=new f.OlP("MatInkBarPositioner",{providedIn:"root",factory:function vt(){return Et=>({left:Et?(Et.offsetLeft||0)+"px":"0",width:Et?(Et.offsetWidth||0)+"px":"0"})}});let ee=(()=>{class Qe{constructor(ke,at,It,jt){this._elementRef=ke,this._ngZone=at,this._inkBarPositioner=It,this._animationMode=jt}alignToElement(ke){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(()=>{const at=this._inkBarPositioner(ke),It=this._elementRef.nativeElement;It.style.left=at.left,It.style.width=at.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Qe.\u0275fac=function(ke){return new(ke||Qe)(f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(tt),f.Y36(f.QbO,8))},Qe.\u0275dir=f.lG2({type:Qe,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(ke,at){2&ke&&f.ekj("_mat-animation-noopable","NoopAnimations"===at._animationMode)}}),Qe})();const nt=new f.OlP("MatTabContent");let Ae=(()=>{class Qe{constructor(ke){this.template=ke}}return Qe.\u0275fac=function(ke){return new(ke||Qe)(f.Y36(f.Rgc))},Qe.\u0275dir=f.lG2({type:Qe,selectors:[["","matTabContent",""]],features:[f._Bn([{provide:nt,useExisting:Qe}])]}),Qe})();const Ee=new f.OlP("MatTabLabel"),ge=new f.OlP("MAT_TAB");let we=(()=>{class Qe extends C.ig{constructor(ke,at,It){super(ke,at),this._closestTab=It}}return Qe.\u0275fac=function(ke){return new(ke||Qe)(f.Y36(f.Rgc),f.Y36(f.s_b),f.Y36(ge,8))},Qe.\u0275dir=f.lG2({type:Qe,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[f._Bn([{provide:Ee,useExisting:Qe}]),f.qOj]}),Qe})();const Ne=(0,b.Id)(class{}),Ce=new f.OlP("MAT_TAB_GROUP");let fe=(()=>{class Qe extends Ne{constructor(ke,at){super(),this._viewContainerRef=ke,this._closestTabGroup=at,this.textLabel="",this._contentPortal=null,this._stateChanges=new O.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(ke){this._setTemplateLabelInput(ke)}get content(){return this._contentPortal}ngOnChanges(ke){(ke.hasOwnProperty("textLabel")||ke.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new C.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(ke){ke&&ke._closestTab===this&&(this._templateLabel=ke)}}return Qe.\u0275fac=function(ke){return new(ke||Qe)(f.Y36(f.s_b),f.Y36(Ce,8))},Qe.\u0275cmp=f.Xpm({type:Qe,selectors:[["mat-tab"]],contentQueries:function(ke,at,It){if(1&ke&&(f.Suo(It,Ee,5),f.Suo(It,nt,7,f.Rgc)),2&ke){let jt;f.iGM(jt=f.CRH())&&(at.templateLabel=jt.first),f.iGM(jt=f.CRH())&&(at._explicitContent=jt.first)}},viewQuery:function(ke,at){if(1&ke&&f.Gf(f.Rgc,7),2&ke){let It;f.iGM(It=f.CRH())&&(at._implicitContent=It.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[f._Bn([{provide:ge,useExisting:Qe}]),f.qOj,f.TTD],ngContentSelectors:le,decls:1,vars:0,template:function(ke,at){1&ke&&(f.F$t(),f.YNc(0,pe,1,0,"ng-template"))},encapsulation:2}),Qe})();const r={translateTab:(0,z.X$)("translateTab",[(0,z.SB)("center, void, left-origin-center, right-origin-center",(0,z.oB)({transform:"none"})),(0,z.SB)("left",(0,z.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,z.SB)("right",(0,z.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,z.eR)("* => left, * => right, left => center, right => center",(0,z.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,z.eR)("void => left-origin-center",[(0,z.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,z.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,z.eR)("void => right-origin-center",[(0,z.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,z.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let u=(()=>{class Qe extends C.Pl{constructor(ke,at,It,jt){super(ke,at,jt),this._host=It,this._centeringSub=J.w0.EMPTY,this._leavingSub=J.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,T.O)(this._host._isCenterPosition(this._host._position))).subscribe(ke=>{ke&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Qe.\u0275fac=function(ke){return new(ke||Qe)(f.Y36(f._Vd),f.Y36(f.s_b),f.Y36((0,f.Gpc)(()=>v)),f.Y36(M.K0))},Qe.\u0275dir=f.lG2({type:Qe,selectors:[["","matTabBodyHost",""]],features:[f.qOj]}),Qe})(),g=(()=>{class Qe{constructor(ke,at,It){this._elementRef=ke,this._dir=at,this._dirChangeSubscription=J.w0.EMPTY,this._translateTabComplete=new O.x,this._onCentering=new f.vpe,this._beforeCentering=new f.vpe,this._afterLeavingCenter=new f.vpe,this._onCentered=new f.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,at&&(this._dirChangeSubscription=at.change.subscribe(jt=>{this._computePositionAnimationState(jt),It.markForCheck()})),this._translateTabComplete.pipe((0,R.x)((jt,an)=>jt.fromState===an.fromState&&jt.toState===an.toState)).subscribe(jt=>{this._isCenterPosition(jt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(jt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(ke){this._positionIndex=ke,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(ke){const at=this._isCenterPosition(ke.toState);this._beforeCentering.emit(at),at&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(ke){return"center"==ke||"left-origin-center"==ke||"right-origin-center"==ke}_computePositionAnimationState(ke=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==ke?"left":"right":this._positionIndex>0?"ltr"==ke?"right":"left":"center"}_computePositionFromOrigin(ke){const at=this._getLayoutDirection();return"ltr"==at&&ke<=0||"rtl"==at&&ke>0?"left-origin-center":"right-origin-center"}}return Qe.\u0275fac=function(ke){return new(ke||Qe)(f.Y36(f.SBq),f.Y36(E.Is,8),f.Y36(f.sBO))},Qe.\u0275dir=f.lG2({type:Qe,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Qe})(),v=(()=>{class Qe extends g{constructor(ke,at,It){super(ke,at,It)}}return Qe.\u0275fac=function(ke){return new(ke||Qe)(f.Y36(f.SBq),f.Y36(E.Is,8),f.Y36(f.sBO))},Qe.\u0275cmp=f.Xpm({type:Qe,selectors:[["mat-tab-body"]],viewQuery:function(ke,at){if(1&ke&&f.Gf(C.Pl,5),2&ke){let It;f.iGM(It=f.CRH())&&(at._portalHost=It.first)}},hostAttrs:[1,"mat-tab-body"],features:[f.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(ke,at){1&ke&&(f.TgZ(0,"div",0,1),f.NdJ("@translateTab.start",function(jt){return at._onTranslateTabStarted(jt)})("@translateTab.done",function(jt){return at._translateTabComplete.next(jt)}),f.YNc(2,ye,0,0,"ng-template",2),f.qZA()),2&ke&&f.Q6J("@translateTab",f.WLB(3,ve,at._position,f.VKq(1,Ve,at.animationDuration)))},dependencies:[u],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[r.translateTab]}}),Qe})();const h=new f.OlP("MAT_TABS_CONFIG"),a=(0,b.Id)(class{});let i=(()=>{class Qe extends a{constructor(ke){super(),this.elementRef=ke}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Qe.\u0275fac=function(ke){return new(ke||Qe)(f.Y36(f.SBq))},Qe.\u0275dir=f.lG2({type:Qe,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(ke,at){2&ke&&(f.uIk("aria-disabled",!!at.disabled),f.ekj("mat-tab-disabled",at.disabled))},inputs:{disabled:"disabled"},features:[f.qOj]}),Qe})();const t=(0,X.i$)({passive:!0});let l=(()=>{class Qe{constructor(ke,at,It,jt,an,Kt,on){this._elementRef=ke,this._changeDetectorRef=at,this._viewportRuler=It,this._dir=jt,this._ngZone=an,this._platform=Kt,this._animationMode=on,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new O.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new O.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new f.vpe,this.indexFocused=new f.vpe,an.runOutsideAngular(()=>{(0,ne.R)(ke.nativeElement,"mouseleave").pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(ke){this._disablePagination=(0,F.Ig)(ke)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ke){ke=(0,F.su)(ke),this._selectedIndex!=ke&&(this._selectedIndexChanged=!0,this._selectedIndex=ke,this._keyManager&&this._keyManager.updateActiveItem(ke))}ngAfterViewInit(){(0,ne.R)(this._previousPaginator.nativeElement,"touchstart",t).pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,ne.R)(this._nextPaginator.nativeElement,"touchstart",t).pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const ke=this._dir?this._dir.change:(0,G.of)("ltr"),at=this._viewportRuler.change(150),It=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(It),(0,se.T)(ke,at,this._items.changes,this._itemsResized()).pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),It()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,B.R)(this._destroyed)).subscribe(jt=>{this.indexFocused.emit(jt),this._setTabFocus(jt)})}_itemsResized(){return"function"!=typeof ResizeObserver?Oe.E:this._items.changes.pipe((0,T.O)(this._items),(0,w.w)(ke=>new _e.y(at=>this._ngZone.runOutsideAngular(()=>{const It=new ResizeObserver(()=>{at.next()});return ke.forEach(jt=>{It.observe(jt.elementRef.nativeElement)}),()=>{It.disconnect()}}))),(0,H.T)(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(ke){if(!(0,q.Vb)(ke))switch(ke.keyCode){case q.K5:case q.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(ke));break;default:this._keyManager.onKeydown(ke)}}_onContentChanges(){const ke=this._elementRef.nativeElement.textContent;ke!==this._currentTextContent&&(this._currentTextContent=ke||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(ke){!this._isValidIndex(ke)||this.focusIndex===ke||!this._keyManager||this._keyManager.setActiveItem(ke)}_isValidIndex(ke){if(!this._items)return!0;const at=this._items?this._items.toArray()[ke]:null;return!!at&&!at.disabled}_setTabFocus(ke){if(this._showPaginationControls&&this._scrollToLabel(ke),this._items&&this._items.length){this._items.toArray()[ke].focus();const at=this._tabListContainer.nativeElement;at.scrollLeft="ltr"==this._getLayoutDirection()?0:at.scrollWidth-at.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const ke=this.scrollDistance,at="ltr"===this._getLayoutDirection()?-ke:ke;this._tabList.nativeElement.style.transform=`translateX(${Math.round(at)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(ke){this._scrollTo(ke)}_scrollHeader(ke){return this._scrollTo(this._scrollDistance+("before"==ke?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(ke){this._stopInterval(),this._scrollHeader(ke)}_scrollToLabel(ke){if(this.disablePagination)return;const at=this._items?this._items.toArray()[ke]:null;if(!at)return;const It=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:jt,offsetWidth:an}=at.elementRef.nativeElement;let Kt,on;"ltr"==this._getLayoutDirection()?(Kt=jt,on=Kt+an):(on=this._tabListInner.nativeElement.offsetWidth-jt,Kt=on-an);const bn=this.scrollDistance,Tt=this.scrollDistance+It;KtTt&&(this.scrollDistance+=on-Tt+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const ke=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;ke||(this.scrollDistance=0),ke!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=ke}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const ke=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,at=ke?ke.elementRef.nativeElement:null;at?this._inkBar.alignToElement(at):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(ke,at){at&&null!=at.button&&0!==at.button||(this._stopInterval(),(0,Be.H)(650,100).pipe((0,B.R)((0,se.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:It,distance:jt}=this._scrollHeader(ke);(0===jt||jt>=It)&&this._stopInterval()}))}_scrollTo(ke){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const at=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(at,ke)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:at,distance:this._scrollDistance}}}return Qe.\u0275fac=function(ke){return new(ke||Qe)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(V.rL),f.Y36(E.Is,8),f.Y36(f.R0b),f.Y36(X.t4),f.Y36(f.QbO,8))},Qe.\u0275dir=f.lG2({type:Qe,inputs:{disablePagination:"disablePagination"}}),Qe})(),d=(()=>{class Qe extends l{constructor(ke,at,It,jt,an,Kt,on){super(ke,at,It,jt,an,Kt,on),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ke){this._disableRipple=(0,F.Ig)(ke)}_itemSelected(ke){ke.preventDefault()}}return Qe.\u0275fac=function(ke){return new(ke||Qe)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(V.rL),f.Y36(E.Is,8),f.Y36(f.R0b),f.Y36(X.t4),f.Y36(f.QbO,8))},Qe.\u0275dir=f.lG2({type:Qe,inputs:{disableRipple:"disableRipple"},features:[f.qOj]}),Qe})(),c=(()=>{class Qe extends d{constructor(ke,at,It,jt,an,Kt,on){super(ke,at,It,jt,an,Kt,on)}}return Qe.\u0275fac=function(ke){return new(ke||Qe)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(V.rL),f.Y36(E.Is,8),f.Y36(f.R0b),f.Y36(X.t4),f.Y36(f.QbO,8))},Qe.\u0275cmp=f.Xpm({type:Qe,selectors:[["mat-tab-header"]],contentQueries:function(ke,at,It){if(1&ke&&f.Suo(It,i,4),2&ke){let jt;f.iGM(jt=f.CRH())&&(at._items=jt)}},viewQuery:function(ke,at){if(1&ke&&(f.Gf(ee,7),f.Gf(Ke,7),f.Gf(Ue,7),f.Gf(oe,7),f.Gf(ce,5),f.Gf(k,5)),2&ke){let It;f.iGM(It=f.CRH())&&(at._inkBar=It.first),f.iGM(It=f.CRH())&&(at._tabListContainer=It.first),f.iGM(It=f.CRH())&&(at._tabList=It.first),f.iGM(It=f.CRH())&&(at._tabListInner=It.first),f.iGM(It=f.CRH())&&(at._nextPaginator=It.first),f.iGM(It=f.CRH())&&(at._previousPaginator=It.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(ke,at){2&ke&&f.ekj("mat-tab-header-pagination-controls-enabled",at._showPaginationControls)("mat-tab-header-rtl","rtl"==at._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[f.qOj],ngContentSelectors:le,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ke,at){1&ke&&(f.F$t(),f.TgZ(0,"button",0,1),f.NdJ("click",function(){return at._handlePaginatorClick("before")})("mousedown",function(jt){return at._handlePaginatorPress("before",jt)})("touchend",function(){return at._stopInterval()}),f._UZ(2,"div",2),f.qZA(),f.TgZ(3,"div",3,4),f.NdJ("keydown",function(jt){return at._handleKeydown(jt)}),f.TgZ(5,"div",5,6),f.NdJ("cdkObserveContent",function(){return at._onContentChanges()}),f.TgZ(7,"div",7,8),f.Hsn(9),f.qZA(),f._UZ(10,"mat-ink-bar"),f.qZA()(),f.TgZ(11,"button",9,10),f.NdJ("mousedown",function(jt){return at._handlePaginatorPress("after",jt)})("click",function(){return at._handlePaginatorClick("after")})("touchend",function(){return at._stopInterval()}),f._UZ(13,"div",2),f.qZA()),2&ke&&(f.ekj("mat-tab-header-pagination-disabled",at._disableScrollBefore),f.Q6J("matRippleDisabled",at._disableScrollBefore||at.disableRipple)("disabled",at._disableScrollBefore||null),f.xp6(5),f.ekj("_mat-animation-noopable","NoopAnimations"===at._animationMode),f.xp6(6),f.ekj("mat-tab-header-pagination-disabled",at._disableScrollAfter),f.Q6J("matRippleDisabled",at._disableScrollAfter||at.disableRipple)("disabled",at._disableScrollAfter||null))},dependencies:[b.wG,A.wD,ee],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),Qe})(),S=0;class ${}const ht=(0,b.pj)((0,b.Kr)(class{constructor(Qe){this._elementRef=Qe}}),"primary");let ze=(()=>{class Qe extends ht{constructor(ke,at,It,jt){var an;super(ke),this._changeDetectorRef=at,this._animationMode=jt,this._tabs=new f.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=J.w0.EMPTY,this._tabLabelSubscription=J.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new f.vpe,this.focusChange=new f.vpe,this.animationDone=new f.vpe,this.selectedTabChange=new f.vpe(!0),this._groupId=S++,this.animationDuration=It&&It.animationDuration?It.animationDuration:"500ms",this.disablePagination=!(!It||null==It.disablePagination)&&It.disablePagination,this.dynamicHeight=!(!It||null==It.dynamicHeight)&&It.dynamicHeight,this.contentTabIndex=null!==(an=It?.contentTabIndex)&&void 0!==an?an:null,this.preserveContent=!(null==It||!It.preserveContent)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(ke){this._dynamicHeight=(0,F.Ig)(ke)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ke){this._indexToSelect=(0,F.su)(ke,null)}get animationDuration(){return this._animationDuration}set animationDuration(ke){this._animationDuration=/^\d+$/.test(ke+"")?ke+"ms":ke}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(ke){this._contentTabIndex=(0,F.su)(ke,null)}get disablePagination(){return this._disablePagination}set disablePagination(ke){this._disablePagination=(0,F.Ig)(ke)}get preserveContent(){return this._preserveContent}set preserveContent(ke){this._preserveContent=(0,F.Ig)(ke)}get backgroundColor(){return this._backgroundColor}set backgroundColor(ke){const at=this._elementRef.nativeElement;at.classList.remove(`mat-background-${this.backgroundColor}`),ke&&at.classList.add(`mat-background-${ke}`),this._backgroundColor=ke}ngAfterContentChecked(){const ke=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=ke){const at=null==this._selectedIndex;if(!at){this.selectedTabChange.emit(this._createChangeEvent(ke));const It=this._tabBodyWrapper.nativeElement;It.style.minHeight=It.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((It,jt)=>It.isActive=jt===ke),at||(this.selectedIndexChange.emit(ke),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((at,It)=>{at.position=It-ke,null!=this._selectedIndex&&0==at.position&&!at.origin&&(at.origin=ke-this._selectedIndex)}),this._selectedIndex!==ke&&(this._selectedIndex=ke,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const ke=this._clampTabIndex(this._indexToSelect);if(ke===this._selectedIndex){const at=this._tabs.toArray();let It;for(let jt=0;jt{at[ke].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(ke))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,T.O)(this._allTabs)).subscribe(ke=>{this._tabs.reset(ke.filter(at=>at._closestTabGroup===this||!at._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(ke){const at=this._tabHeader;at&&(at.focusIndex=ke)}_focusChanged(ke){this._lastFocusedTabIndex=ke,this.focusChange.emit(this._createChangeEvent(ke))}_createChangeEvent(ke){const at=new $;return at.index=ke,this._tabs&&this._tabs.length&&(at.tab=this._tabs.toArray()[ke]),at}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,se.T)(...this._tabs.map(ke=>ke._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(ke){return Math.min(this._tabs.length-1,Math.max(ke||0,0))}_getTabLabelId(ke){return`mat-tab-label-${this._groupId}-${ke}`}_getTabContentId(ke){return`mat-tab-content-${this._groupId}-${ke}`}_setTabBodyWrapperHeight(ke){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const at=this._tabBodyWrapper.nativeElement;at.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(at.style.height=ke+"px")}_removeTabBodyWrapperHeight(){const ke=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=ke.clientHeight,ke.style.height="",this.animationDone.emit()}_handleClick(ke,at,It){ke.disabled||(this.selectedIndex=at.focusIndex=It)}_getTabIndex(ke,at){var It;return ke.disabled?null:at===(null!==(It=this._lastFocusedTabIndex)&&void 0!==It?It:this.selectedIndex)?0:-1}_tabFocusChanged(ke,at){ke&&"mouse"!==ke&&"touch"!==ke&&(this._tabHeader.focusIndex=at)}}return Qe.\u0275fac=function(ke){return new(ke||Qe)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(h,8),f.Y36(f.QbO,8))},Qe.\u0275dir=f.lG2({type:Qe,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[f.qOj]}),Qe})(),et=(()=>{class Qe extends ze{constructor(ke,at,It,jt){super(ke,at,It,jt)}}return Qe.\u0275fac=function(ke){return new(ke||Qe)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(h,8),f.Y36(f.QbO,8))},Qe.\u0275cmp=f.Xpm({type:Qe,selectors:[["mat-tab-group"]],contentQueries:function(ke,at,It){if(1&ke&&f.Suo(It,fe,5),2&ke){let jt;f.iGM(jt=f.CRH())&&(at._allTabs=jt)}},viewQuery:function(ke,at){if(1&ke&&(f.Gf(N,5),f.Gf(be,5)),2&ke){let It;f.iGM(It=f.CRH())&&(at._tabBodyWrapper=It.first),f.iGM(It=f.CRH())&&(at._tabHeader=It.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(ke,at){2&ke&&f.ekj("mat-tab-group-dynamic-height",at.dynamicHeight)("mat-tab-group-inverted-header","below"===at.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[f._Bn([{provide:Ce,useExisting:Qe}]),f.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(ke,at){1&ke&&(f.TgZ(0,"mat-tab-header",0,1),f.NdJ("indexFocused",function(jt){return at._focusChanged(jt)})("selectFocusedIndex",function(jt){return at.selectedIndex=jt}),f.YNc(2,ot,5,15,"div",2),f.qZA(),f.TgZ(3,"div",3,4),f.YNc(5,je,1,11,"mat-tab-body",5),f.qZA()),2&ke&&(f.Q6J("selectedIndex",at.selectedIndex||0)("disableRipple",at.disableRipple)("disablePagination",at.disablePagination),f.xp6(2),f.Q6J("ngForOf",at._tabs),f.xp6(1),f.ekj("_mat-animation-noopable","NoopAnimations"===at._animationMode),f.xp6(2),f.Q6J("ngForOf",at._tabs))},dependencies:[M.mk,M.sg,M.O5,C.Pl,b.wG,e.kH,i,v,c],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),Qe})(),st=(()=>{class Qe{}return Qe.\u0275fac=function(ke){return new(ke||Qe)},Qe.\u0275mod=f.oAB({type:Qe}),Qe.\u0275inj=f.cJS({imports:[M.ez,b.BQ,C.eL,b.si,A.Q8,e.rt,b.BQ]}),Qe})()},83683:($e,he,p)=>{"use strict";p.d(he,{Ye:()=>R,g0:()=>w});var e=p(94650),A=p(3238),C=p(83353),M=p(36895);const f=["*",[["mat-toolbar-row"]]],b=["*","mat-toolbar-row"],D=(0,A.pj)(class{constructor(H){this._elementRef=H}});let T=(()=>{class H{}return H.\u0275fac=function(J){return new(J||H)},H.\u0275dir=e.lG2({type:H,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),H})(),R=(()=>{class H extends D{constructor(J,ne,G){super(J),this._platform=ne,this._document=G}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return H.\u0275fac=function(J){return new(J||H)(e.Y36(e.SBq),e.Y36(C.t4),e.Y36(M.K0))},H.\u0275cmp=e.Xpm({type:H,selectors:[["mat-toolbar"]],contentQueries:function(J,ne,G){if(1&J&&e.Suo(G,T,5),2&J){let se;e.iGM(se=e.CRH())&&(ne._toolbarRows=se)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(J,ne){2&J&&e.ekj("mat-toolbar-multiple-rows",ne._toolbarRows.length>0)("mat-toolbar-single-row",0===ne._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:b,decls:2,vars:0,template:function(J,ne){1&J&&(e.F$t(f),e.Hsn(0),e.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),H})(),w=(()=>{class H{}return H.\u0275fac=function(J){return new(J||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[A.BQ,A.BQ]}),H})()},10266:($e,he,p)=>{"use strict";p.d(he,{AV:()=>Ue,gM:()=>Ve});var e=p(98184),A=p(12687),C=p(36895),M=p(94650),f=p(3238),b=p(67376),D=p(40445),T=p(21281),R=p(29521),B=p(62289),w=p(83353),H=p(84080),O=p(77579),J=p(82722),ne=p(95698);p(37340);const se=["tooltip"],Be="tooltip-panel",E=(0,w.i$)({passive:!0}),V=new M.OlP("mat-tooltip-scroll-strategy"),q={provide:V,deps:[e.aV],useFactory:function X(ce){return()=>ce.scrollStrategies.reposition({scrollThrottle:20})}},pe=new M.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function le(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let ye=(()=>{class ce{constructor(N,be,W,ue,Me,ot,je,ut,tt,vt,ee,nt){this._overlay=N,this._elementRef=be,this._scrollDispatcher=W,this._viewContainerRef=ue,this._ngZone=Me,this._platform=ot,this._ariaDescriber=je,this._focusMonitor=ut,this._dir=vt,this._defaultOptions=ee,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new O.x,this._scrollStrategy=tt,this._document=nt,ee&&(ee.position&&(this.position=ee.position),ee.touchGestures&&(this.touchGestures=ee.touchGestures)),vt.change.pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(N){var be;N!==this._position&&(this._position=N,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(be=this._tooltipInstance)||void 0===be||be.show(0),this._overlayRef.updatePosition())}get disabled(){return this._disabled}set disabled(N){this._disabled=(0,T.Ig)(N),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(N){this._showDelay=(0,T.su)(N)}get hideDelay(){return this._hideDelay}set hideDelay(N){this._hideDelay=(0,T.su)(N),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(N){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=N?String(N).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(N){this._tooltipClass=N,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,J.R)(this._destroyed)).subscribe(N=>{N?"keyboard"===N&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const N=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([be,W])=>{N.removeEventListener(be,W,E)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(N,this.message,"tooltip"),this._focusMonitor.stopMonitoring(N)}show(N=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const be=this._createOverlay();this._detach(),this._portal=this._portal||new H.C5(this._tooltipComponent,this._viewContainerRef);const W=this._tooltipInstance=be.attach(this._portal).instance;W._triggerElement=this._elementRef.nativeElement,W._mouseLeaveHideDelay=this._hideDelay,W.afterHidden().pipe((0,J.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),W.show(N)}hide(N=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(N)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var N;if(this._overlayRef)return this._overlayRef;const be=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),W=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(be);return W.positionChanges.pipe((0,J.R)(this._destroyed)).subscribe(ue=>{this._updateCurrentPositionClass(ue.connectionPair),this._tooltipInstance&&ue.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:W,panelClass:`${this._cssClassPrefix}-${Be}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,J.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,J.R)(this._destroyed)).subscribe(()=>{var ue;return null===(ue=this._tooltipInstance)||void 0===ue?void 0:ue._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,J.R)(this._destroyed)).subscribe(ue=>{this._isTooltipVisible()&&ue.keyCode===R.hY&&!(0,R.Vb)(ue)&&(ue.preventDefault(),ue.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(N=this._defaultOptions)&&void 0!==N&&N.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(N){const be=N.getConfig().positionStrategy,W=this._getOrigin(),ue=this._getOverlayPosition();be.withPositions([this._addOffset({...W.main,...ue.main}),this._addOffset({...W.fallback,...ue.fallback})])}_addOffset(N){return N}_getOrigin(){const N=!this._dir||"ltr"==this._dir.value,be=this.position;let W;"above"==be||"below"==be?W={originX:"center",originY:"above"==be?"top":"bottom"}:"before"==be||"left"==be&&N||"right"==be&&!N?W={originX:"start",originY:"center"}:("after"==be||"right"==be&&N||"left"==be&&!N)&&(W={originX:"end",originY:"center"});const{x:ue,y:Me}=this._invertPosition(W.originX,W.originY);return{main:W,fallback:{originX:ue,originY:Me}}}_getOverlayPosition(){const N=!this._dir||"ltr"==this._dir.value,be=this.position;let W;"above"==be?W={overlayX:"center",overlayY:"bottom"}:"below"==be?W={overlayX:"center",overlayY:"top"}:"before"==be||"left"==be&&N||"right"==be&&!N?W={overlayX:"end",overlayY:"center"}:("after"==be||"right"==be&&N||"left"==be&&!N)&&(W={overlayX:"start",overlayY:"center"});const{x:ue,y:Me}=this._invertPosition(W.overlayX,W.overlayY);return{main:W,fallback:{overlayX:ue,overlayY:Me}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,ne.q)(1),(0,J.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(N){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=N,this._tooltipInstance._markForCheck())}_invertPosition(N,be){return"above"===this.position||"below"===this.position?"top"===be?be="bottom":"bottom"===be&&(be="top"):"end"===N?N="start":"start"===N&&(N="end"),{x:N,y:be}}_updateCurrentPositionClass(N){const{overlayY:be,originX:W,originY:ue}=N;let Me;if(Me="center"===be?this._dir&&"rtl"===this._dir.value?"end"===W?"left":"right":"start"===W?"left":"right":"bottom"===be&&"top"===ue?"above":"below",Me!==this._currentPosition){const ot=this._overlayRef;if(ot){const je=`${this._cssClassPrefix}-${Be}-`;ot.removePanelClass(je+this._currentPosition),ot.addPanelClass(je+Me)}this._currentPosition=Me}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const N=[];if(this._platformSupportsMouseEvents())N.push(["mouseleave",be=>{var W;const ue=be.relatedTarget;(!ue||null===(W=this._overlayRef)||void 0===W||!W.overlayElement.contains(ue))&&this.hide()}],["wheel",be=>this._wheelListener(be)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const be=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};N.push(["touchend",be],["touchcancel",be])}this._addListeners(N),this._passiveListeners.push(...N)}_addListeners(N){N.forEach(([be,W])=>{this._elementRef.nativeElement.addEventListener(be,W,E)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(N){if(this._isTooltipVisible()){const be=this._document.elementFromPoint(N.clientX,N.clientY),W=this._elementRef.nativeElement;be!==W&&!W.contains(be)&&this.hide()}}_disableNativeGesturesIfNecessary(){const N=this.touchGestures;if("off"!==N){const be=this._elementRef.nativeElement,W=be.style;("on"===N||"INPUT"!==be.nodeName&&"TEXTAREA"!==be.nodeName)&&(W.userSelect=W.msUserSelect=W.webkitUserSelect=W.MozUserSelect="none"),("on"===N||!be.draggable)&&(W.webkitUserDrag="none"),W.touchAction="none",W.webkitTapHighlightColor="transparent"}}}return ce.\u0275fac=function(N){M.$Z()},ce.\u0275dir=M.lG2({type:ce,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),ce})(),Ve=(()=>{class ce extends ye{constructor(N,be,W,ue,Me,ot,je,ut,tt,vt,ee,nt){super(N,be,W,ue,Me,ot,je,ut,tt,vt,ee,nt),this._tooltipComponent=Ke}}return ce.\u0275fac=function(N){return new(N||ce)(M.Y36(e.aV),M.Y36(M.SBq),M.Y36(b.mF),M.Y36(M.s_b),M.Y36(M.R0b),M.Y36(w.t4),M.Y36(A.$s),M.Y36(A.tE),M.Y36(V),M.Y36(D.Is,8),M.Y36(pe,8),M.Y36(C.K0))},ce.\u0275dir=M.lG2({type:ce,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[M.qOj]}),ce})(),ve=(()=>{class ce{constructor(N,be){this._changeDetectorRef=N,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new O.x,this._animationsDisabled="NoopAnimations"===be}show(N){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},N)}hide(N){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},N)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:N}){(!N||!this._triggerElement.contains(N))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:N}){(N===this._showAnimation||N===this._hideAnimation)&&this._finalizeAnimation(N===this._showAnimation)}_finalizeAnimation(N){N?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(N){const be=this._tooltip.nativeElement,W=this._showAnimation,ue=this._hideAnimation;if(be.classList.remove(N?ue:W),be.classList.add(N?W:ue),this._isVisible=N,N&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Me=getComputedStyle(be);("0s"===Me.getPropertyValue("animation-duration")||"none"===Me.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}N&&this._onShow(),this._animationsDisabled&&(be.classList.add("_mat-animation-noopable"),this._finalizeAnimation(N))}}return ce.\u0275fac=function(N){return new(N||ce)(M.Y36(M.sBO),M.Y36(M.QbO,8))},ce.\u0275dir=M.lG2({type:ce}),ce})(),Ke=(()=>{class ce extends ve{constructor(N,be,W){super(N,W),this._breakpointObserver=be,this._isHandset=this._breakpointObserver.observe(B.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return ce.\u0275fac=function(N){return new(N||ce)(M.Y36(M.sBO),M.Y36(B.Yg),M.Y36(M.QbO,8))},ce.\u0275cmp=M.Xpm({type:ce,selectors:[["mat-tooltip-component"]],viewQuery:function(N,be){if(1&N&&M.Gf(se,7),2&N){let W;M.iGM(W=M.CRH())&&(be._tooltip=W.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(N,be){1&N&&M.NdJ("mouseleave",function(ue){return be._handleMouseLeave(ue)}),2&N&&M.Udp("zoom",be.isVisible()?1:null)},features:[M.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(N,be){if(1&N&&(M.TgZ(0,"div",0,1),M.NdJ("animationend",function(ue){return be._handleAnimationEnd(ue)}),M.ALo(2,"async"),M._uU(3),M.qZA()),2&N){let W;M.ekj("mat-tooltip-handset",null==(W=M.lcZ(2,4,be._isHandset))?null:W.matches),M.Q6J("ngClass",be.tooltipClass),M.xp6(3),M.Oqu(be.message)}},dependencies:[C.mk,C.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),ce})(),Ue=(()=>{class ce{}return ce.\u0275fac=function(N){return new(N||ce)},ce.\u0275mod=M.oAB({type:ce}),ce.\u0275inj=M.cJS({providers:[q],imports:[A.rt,C.ez,e.U8,f.BQ,f.BQ,b.ZD]}),ce})()},35423:($e,he,p)=>{"use strict";p.d(he,{Ar:()=>ne,GZ:()=>O,JZ:()=>Be,WX:()=>z,dp:()=>_e,eu:()=>se,fQ:()=>H,gi:()=>G,kc:()=>E,uo:()=>w});var e=p(57851),A=p(94650),C=p(3238),M=p(21281),f=p(95017),b=p(61135),D=p(56451),T=p(95698),R=p(54004);const B=(0,C.sb)((0,C.Id)(e.Hs));let w=(()=>{class F extends B{constructor(X,q,pe){super(X,q),this.tabIndex=Number(pe)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return F.\u0275fac=function(X){return new(X||F)(A.Y36(A.SBq),A.Y36(e._0),A.$8M("tabindex"))},F.\u0275dir=A.lG2({type:F,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[A._Bn([{provide:e.Hs,useExisting:F}]),A.qOj]}),F})(),H=(()=>{class F extends e.rO{}return F.\u0275fac=function(){let V;return function(q){return(V||(V=A.n5z(F)))(q||F)}}(),F.\u0275dir=A.lG2({type:F,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[A._Bn([{provide:e.rO,useExisting:F}]),A.qOj]}),F})(),O=(()=>{class F extends e.Xx{constructor(X,q,pe,le){super(X,q,pe),this._disabled=!1,this.tabIndex=Number(le)||0}get disabled(){return this._disabled}set disabled(X){this._disabled=(0,M.Ig)(X)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(X){this._tabIndex=X??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return F.\u0275fac=function(X){return new(X||F)(A.Y36(A.SBq),A.Y36(e._0),A.Y36(A.ZZ4),A.$8M("tabindex"))},F.\u0275dir=A.lG2({type:F,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[A._Bn([{provide:e.Xx,useExisting:F},{provide:e.Hs,useExisting:F},{provide:e.HI,useExisting:F}]),A.qOj]}),F})(),ne=(()=>{class F{constructor(X,q){this.viewContainer=X,this._node=q}}return F.\u0275fac=function(X){return new(X||F)(A.Y36(A.s_b),A.Y36(e.HI,8))},F.\u0275dir=A.lG2({type:F,selectors:[["","matTreeNodeOutlet",""]],features:[A._Bn([{provide:e.cu,useExisting:F}])]}),F})(),G=(()=>{class F extends e._0{}return F.\u0275fac=function(){let V;return function(q){return(V||(V=A.n5z(F)))(q||F)}}(),F.\u0275cmp=A.Xpm({type:F,selectors:[["mat-tree"]],viewQuery:function(X,q){if(1&X&&A.Gf(ne,7),2&X){let pe;A.iGM(pe=A.CRH())&&(q._nodeOutlet=pe.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[A._Bn([{provide:e._0,useExisting:F}]),A.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(X,q){1&X&&A.GkF(0,0)},dependencies:[ne],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),F})(),se=(()=>{class F extends e.Ud{}return F.\u0275fac=function(){let V;return function(q){return(V||(V=A.n5z(F)))(q||F)}}(),F.\u0275dir=A.lG2({type:F,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[A._Bn([{provide:e.Ud,useExisting:F}]),A.qOj]}),F})(),_e=(()=>{class F{}return F.\u0275fac=function(X){return new(X||F)},F.\u0275mod=A.oAB({type:F}),F.\u0275inj=A.cJS({imports:[e.nZ,C.BQ,C.BQ]}),F})();class Be{constructor(V,X,q,pe){this.transformFunction=V,this.getLevel=X,this.isExpandable=q,this.getChildren=pe}_flattenNode(V,X,q,pe){const le=this.transformFunction(V,X);if(q.push(le),this.isExpandable(le)){const ye=this.getChildren(V);ye&&(Array.isArray(ye)?this._flattenChildren(ye,X,q,pe):ye.pipe((0,T.q)(1)).subscribe(Ve=>{this._flattenChildren(Ve,X,q,pe)}))}return q}_flattenChildren(V,X,q,pe){V.forEach((le,ye)=>{let Ve=pe.slice();Ve.push(ye!=V.length-1),this._flattenNode(le,X+1,q,Ve)})}flattenNodes(V){let X=[];return V.forEach(q=>this._flattenNode(q,0,X,[])),X}expandFlattenedNodes(V,X){let q=[],pe=[];return pe[0]=!0,V.forEach(le=>{let ye=!0;for(let Ve=0;Ve<=this.getLevel(le);Ve++)ye=ye&&pe[Ve];ye&&q.push(le),this.isExpandable(le)&&(pe[this.getLevel(le)+1]=X.isExpanded(le))}),q}}class E extends f.o2{constructor(V,X,q){super(),this._treeControl=V,this._treeFlattener=X,this._flattenedData=new b.X([]),this._expandedData=new b.X([]),this._data=new b.X([]),q&&(this.data=q)}get data(){return this._data.value}set data(V){this._data.next(V),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(V){return(0,D.T)(V.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,R.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class z extends f.o2{constructor(){super(...arguments),this._data=new b.X([])}get data(){return this._data.value}set data(V){this._data.next(V)}connect(V){return(0,D.T)(V.viewChange,this._data).pipe((0,R.U)(()=>this.data))}disconnect(){}}},11481:($e,he,p)=>{"use strict";p.d(he,{Dx:()=>i,H7:()=>an,b2:()=>u,q6:()=>Ne,se:()=>ve});var e=p(36895),A=p(94650);class C extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M extends C{static makeCurrent(){(0,e.HT)(new M)}onAndCancel(Dt,Ge,wt){return Dt.addEventListener(Ge,wt,!1),()=>{Dt.removeEventListener(Ge,wt,!1)}}dispatchEvent(Dt,Ge){Dt.dispatchEvent(Ge)}remove(Dt){Dt.parentNode&&Dt.parentNode.removeChild(Dt)}createElement(Dt,Ge){return(Ge=Ge||this.getDefaultDocument()).createElement(Dt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Dt){return Dt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Dt){return Dt instanceof DocumentFragment}getGlobalEventTarget(Dt,Ge){return"window"===Ge?window:"document"===Ge?Dt:"body"===Ge?Dt.body:null}getBaseHref(Dt){const Ge=function b(){return f=f||document.querySelector("base"),f?f.getAttribute("href"):null}();return null==Ge?null:function T(Tt){D=D||document.createElement("a"),D.setAttribute("href",Tt);const Dt=D.pathname;return"/"===Dt.charAt(0)?Dt:`/${Dt}`}(Ge)}resetBaseElement(){f=null}getUserAgent(){return window.navigator.userAgent}getCookie(Dt){return(0,e.Mx)(document.cookie,Dt)}}let D,f=null;const R=new A.OlP("TRANSITION_ID"),w=[{provide:A.ip1,useFactory:function B(Tt,Dt,Ge){return()=>{Ge.get(A.CZH).donePromise.then(()=>{const wt=(0,e.q)(),Ft=Dt.querySelectorAll(`style[ng-transition="${Tt}"]`);for(let ln=0;ln{class Tt{build(){return new XMLHttpRequest}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();const J=new A.OlP("EventManagerPlugins");let ne=(()=>{class Tt{constructor(Ge,wt){this._zone=wt,this._eventNameToPlugin=new Map,Ge.forEach(Ft=>Ft.manager=this),this._plugins=Ge.slice().reverse()}addEventListener(Ge,wt,Ft){return this._findPluginFor(wt).addEventListener(Ge,wt,Ft)}addGlobalEventListener(Ge,wt,Ft){return this._findPluginFor(wt).addGlobalEventListener(Ge,wt,Ft)}getZone(){return this._zone}_findPluginFor(Ge){const wt=this._eventNameToPlugin.get(Ge);if(wt)return wt;const Ft=this._plugins;for(let ln=0;ln{class Tt{constructor(){this._stylesSet=new Set}addStyles(Ge){const wt=new Set;Ge.forEach(Ft=>{this._stylesSet.has(Ft)||(this._stylesSet.add(Ft),wt.add(Ft))}),this.onStylesAdded(wt)}onStylesAdded(Ge){}getAllStyles(){return Array.from(this._stylesSet)}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})(),Oe=(()=>{class Tt extends se{constructor(Ge){super(),this._doc=Ge,this._hostNodes=new Map,this._hostNodes.set(Ge.head,[])}_addStylesToHost(Ge,wt,Ft){Ge.forEach(ln=>{const Cn=this._doc.createElement("style");Cn.textContent=ln,Ft.push(wt.appendChild(Cn))})}addHost(Ge){const wt=[];this._addStylesToHost(this._stylesSet,Ge,wt),this._hostNodes.set(Ge,wt)}removeHost(Ge){const wt=this._hostNodes.get(Ge);wt&&wt.forEach(_e),this._hostNodes.delete(Ge)}onStylesAdded(Ge){this._hostNodes.forEach((wt,Ft)=>{this._addStylesToHost(Ge,Ft,wt)})}ngOnDestroy(){this._hostNodes.forEach(Ge=>Ge.forEach(_e))}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)(A.LFG(e.K0))},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();function _e(Tt){(0,e.q)().remove(Tt)}const Be={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},E=/%COMP%/g,F="%COMP%",V=`_nghost-${F}`,X=`_ngcontent-${F}`;function le(Tt,Dt,Ge){for(let wt=0;wt{if("__ngUnwrap__"===Dt)return Tt;!1===Tt(Dt)&&(Dt.preventDefault(),Dt.returnValue=!1)}}let ve=(()=>{class Tt{constructor(Ge,wt,Ft){this.eventManager=Ge,this.sharedStylesHost=wt,this.appId=Ft,this.rendererByCompId=new Map,this.defaultRenderer=new Ke(Ge)}createRenderer(Ge,wt){if(!Ge||!wt)return this.defaultRenderer;switch(wt.encapsulation){case A.ifc.Emulated:{let Ft=this.rendererByCompId.get(wt.id);return Ft||(Ft=new k(this.eventManager,this.sharedStylesHost,wt,this.appId),this.rendererByCompId.set(wt.id,Ft)),Ft.applyToHost(Ge),Ft}case 1:case A.ifc.ShadowDom:return new N(this.eventManager,this.sharedStylesHost,Ge,wt);default:if(!this.rendererByCompId.has(wt.id)){const Ft=le(wt.id,wt.styles,[]);this.sharedStylesHost.addStyles(Ft),this.rendererByCompId.set(wt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)(A.LFG(ne),A.LFG(Oe),A.LFG(A.AFp))},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();class Ke{constructor(Dt){this.eventManager=Dt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Dt,Ge){return Ge?document.createElementNS(Be[Ge]||Ge,Dt):document.createElement(Dt)}createComment(Dt){return document.createComment(Dt)}createText(Dt){return document.createTextNode(Dt)}appendChild(Dt,Ge){(ce(Dt)?Dt.content:Dt).appendChild(Ge)}insertBefore(Dt,Ge,wt){Dt&&(ce(Dt)?Dt.content:Dt).insertBefore(Ge,wt)}removeChild(Dt,Ge){Dt&&Dt.removeChild(Ge)}selectRootElement(Dt,Ge){let wt="string"==typeof Dt?document.querySelector(Dt):Dt;if(!wt)throw new Error(`The selector "${Dt}" did not match any elements`);return Ge||(wt.textContent=""),wt}parentNode(Dt){return Dt.parentNode}nextSibling(Dt){return Dt.nextSibling}setAttribute(Dt,Ge,wt,Ft){if(Ft){Ge=Ft+":"+Ge;const ln=Be[Ft];ln?Dt.setAttributeNS(ln,Ge,wt):Dt.setAttribute(Ge,wt)}else Dt.setAttribute(Ge,wt)}removeAttribute(Dt,Ge,wt){if(wt){const Ft=Be[wt];Ft?Dt.removeAttributeNS(Ft,Ge):Dt.removeAttribute(`${wt}:${Ge}`)}else Dt.removeAttribute(Ge)}addClass(Dt,Ge){Dt.classList.add(Ge)}removeClass(Dt,Ge){Dt.classList.remove(Ge)}setStyle(Dt,Ge,wt,Ft){Ft&(A.JOm.DashCase|A.JOm.Important)?Dt.style.setProperty(Ge,wt,Ft&A.JOm.Important?"important":""):Dt.style[Ge]=wt}removeStyle(Dt,Ge,wt){wt&A.JOm.DashCase?Dt.style.removeProperty(Ge):Dt.style[Ge]=""}setProperty(Dt,Ge,wt){Dt[Ge]=wt}setValue(Dt,Ge){Dt.nodeValue=Ge}listen(Dt,Ge,wt){return"string"==typeof Dt?this.eventManager.addGlobalEventListener(Dt,Ge,ye(wt)):this.eventManager.addEventListener(Dt,Ge,ye(wt))}}function ce(Tt){return"TEMPLATE"===Tt.tagName&&void 0!==Tt.content}class k extends Ke{constructor(Dt,Ge,wt,Ft){super(Dt),this.component=wt;const ln=le(Ft+"-"+wt.id,wt.styles,[]);Ge.addStyles(ln),this.contentAttr=function q(Tt){return X.replace(E,Tt)}(Ft+"-"+wt.id),this.hostAttr=function pe(Tt){return V.replace(E,Tt)}(Ft+"-"+wt.id)}applyToHost(Dt){super.setAttribute(Dt,this.hostAttr,"")}createElement(Dt,Ge){const wt=super.createElement(Dt,Ge);return super.setAttribute(wt,this.contentAttr,""),wt}}class N extends Ke{constructor(Dt,Ge,wt,Ft){super(Dt),this.sharedStylesHost=Ge,this.hostEl=wt,this.shadowRoot=wt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ln=le(Ft.id,Ft.styles,[]);for(let Cn=0;Cn{class Tt extends G{constructor(Ge){super(Ge)}supports(Ge){return!0}addEventListener(Ge,wt,Ft){return Ge.addEventListener(wt,Ft,!1),()=>this.removeEventListener(Ge,wt,Ft)}removeEventListener(Ge,wt,Ft){return Ge.removeEventListener(wt,Ft)}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)(A.LFG(e.K0))},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();const W=["alt","control","meta","shift"],Me={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ot={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},je={alt:Tt=>Tt.altKey,control:Tt=>Tt.ctrlKey,meta:Tt=>Tt.metaKey,shift:Tt=>Tt.shiftKey};let ut=(()=>{class Tt extends G{constructor(Ge){super(Ge)}supports(Ge){return null!=Tt.parseEventName(Ge)}addEventListener(Ge,wt,Ft){const ln=Tt.parseEventName(wt),Cn=Tt.eventCallback(ln.fullKey,Ft,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(Ge,ln.domEventName,Cn))}static parseEventName(Ge){const wt=Ge.toLowerCase().split("."),Ft=wt.shift();if(0===wt.length||"keydown"!==Ft&&"keyup"!==Ft)return null;const ln=Tt._normalizeKey(wt.pop());let Cn="";if(W.forEach(zn=>{const bt=wt.indexOf(zn);bt>-1&&(wt.splice(bt,1),Cn+=zn+".")}),Cn+=ln,0!=wt.length||0===ln.length)return null;const gn={};return gn.domEventName=Ft,gn.fullKey=Cn,gn}static getEventFullKey(Ge){let wt="",Ft=function tt(Tt){let Dt=Tt.key;if(null==Dt){if(Dt=Tt.keyIdentifier,null==Dt)return"Unidentified";Dt.startsWith("U+")&&(Dt=String.fromCharCode(parseInt(Dt.substring(2),16)),3===Tt.location&&ot.hasOwnProperty(Dt)&&(Dt=ot[Dt]))}return Me[Dt]||Dt}(Ge);return Ft=Ft.toLowerCase()," "===Ft?Ft="space":"."===Ft&&(Ft="dot"),W.forEach(ln=>{ln!=Ft&&(0,je[ln])(Ge)&&(wt+=ln+".")}),wt+=Ft,wt}static eventCallback(Ge,wt,Ft){return ln=>{Tt.getEventFullKey(ln)===Ge&&Ft.runGuarded(()=>wt(ln))}}static _normalizeKey(Ge){return"esc"===Ge?"escape":Ge}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)(A.LFG(e.K0))},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();const Ne=(0,A.eFA)(A._c5,"browser",[{provide:A.Lbi,useValue:e.bD},{provide:A.g9A,useValue:function Ae(){M.makeCurrent()},multi:!0},{provide:e.K0,useFactory:function ge(){return(0,A.RDi)(document),document},deps:[]}]),Ce=new A.OlP(""),fe=[{provide:A.rWj,useClass:class H{addToWindow(Dt){A.dqk.getAngularTestability=(wt,Ft=!0)=>{const ln=Dt.findTestabilityInTree(wt,Ft);if(null==ln)throw new Error("Could not find testability for element.");return ln},A.dqk.getAllAngularTestabilities=()=>Dt.getAllTestabilities(),A.dqk.getAllAngularRootElements=()=>Dt.getAllRootElements(),A.dqk.frameworkStabilizers||(A.dqk.frameworkStabilizers=[]),A.dqk.frameworkStabilizers.push(wt=>{const Ft=A.dqk.getAllAngularTestabilities();let ln=Ft.length,Cn=!1;const gn=function(zn){Cn=Cn||zn,ln--,0==ln&&wt(Cn)};Ft.forEach(function(zn){zn.whenStable(gn)})})}findTestabilityInTree(Dt,Ge,wt){return null==Ge?null:Dt.getTestability(Ge)??(wt?(0,e.q)().isShadowRoot(Ge)?this.findTestabilityInTree(Dt,Ge.host,!0):this.findTestabilityInTree(Dt,Ge.parentElement,!0):null)}},deps:[]},{provide:A.lri,useClass:A.dDg,deps:[A.R0b,A.eoX,A.rWj]},{provide:A.dDg,useClass:A.dDg,deps:[A.R0b,A.eoX,A.rWj]}],r=[{provide:A.zSh,useValue:"root"},{provide:A.qLn,useFactory:function Ee(){return new A.qLn},deps:[]},{provide:J,useClass:be,multi:!0,deps:[e.K0,A.R0b,A.Lbi]},{provide:J,useClass:ut,multi:!0,deps:[e.K0]},{provide:ve,useClass:ve,deps:[ne,Oe,A.AFp]},{provide:A.FYo,useExisting:ve},{provide:se,useExisting:Oe},{provide:Oe,useClass:Oe,deps:[e.K0]},{provide:ne,useClass:ne,deps:[J,A.R0b]},{provide:e.JF,useClass:O,deps:[]},[]];let u=(()=>{class Tt{constructor(Ge){}static withServerTransition(Ge){return{ngModule:Tt,providers:[{provide:A.AFp,useValue:Ge.appId},{provide:R,useExisting:A.AFp},w]}}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)(A.LFG(Ce,12))},Tt.\u0275mod=A.oAB({type:Tt}),Tt.\u0275inj=A.cJS({providers:[...r,...fe],imports:[e.ez,A.hGG]}),Tt})(),i=(()=>{class Tt{constructor(Ge){this._doc=Ge}getTitle(){return this._doc.title}setTitle(Ge){this._doc.title=Ge||""}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)(A.LFG(e.K0))},Tt.\u0275prov=A.Yz7({token:Tt,factory:function(Ge){let wt=null;return wt=Ge?new Ge:function a(){return new i((0,A.LFG)(e.K0))}(),wt},providedIn:"root"}),Tt})();typeof window<"u"&&window;let an=(()=>{class Tt{}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)},Tt.\u0275prov=A.Yz7({token:Tt,factory:function(Ge){let wt=null;return wt=Ge?new(Ge||Tt):A.LFG(on),wt},providedIn:"root"}),Tt})(),on=(()=>{class Tt extends an{constructor(Ge){super(),this._doc=Ge}sanitize(Ge,wt){if(null==wt)return null;switch(Ge){case A.q3G.NONE:return wt;case A.q3G.HTML:return(0,A.qzn)(wt,"HTML")?(0,A.z3N)(wt):(0,A.EiD)(this._doc,String(wt)).toString();case A.q3G.STYLE:return(0,A.qzn)(wt,"Style")?(0,A.z3N)(wt):wt;case A.q3G.SCRIPT:if((0,A.qzn)(wt,"Script"))return(0,A.z3N)(wt);throw new Error("unsafe value used in a script context");case A.q3G.URL:return(0,A.qzn)(wt,"URL")?(0,A.z3N)(wt):(0,A.mCW)(String(wt));case A.q3G.RESOURCE_URL:if((0,A.qzn)(wt,"ResourceURL"))return(0,A.z3N)(wt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${Ge} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(Ge){return(0,A.JVY)(Ge)}bypassSecurityTrustStyle(Ge){return(0,A.L6k)(Ge)}bypassSecurityTrustScript(Ge){return(0,A.eBb)(Ge)}bypassSecurityTrustUrl(Ge){return(0,A.LAX)(Ge)}bypassSecurityTrustResourceUrl(Ge){return(0,A.pB0)(Ge)}}return Tt.\u0275fac=function(Ge){return new(Ge||Tt)(A.LFG(e.K0))},Tt.\u0275prov=A.Yz7({token:Tt,factory:function(Ge){let wt=null;return wt=Ge?new Ge:function Kt(Tt){return new on(Tt.get(e.K0))}(A.LFG(A.zs3)),wt},providedIn:"root"}),Tt})()},94364:($e,he,p)=>{"use strict";p.d(he,{gz:()=>Zt,m2:()=>qn,OD:()=>zi,GZ:()=>rl,wN:()=>ds,F0:()=>Di,rH:()=>Kr,yS:()=>va,Bz:()=>si,lC:()=>Ji});var e=p(94650),A=p(69751),C=p(50727),M=p(54482),f=p(25403);function b(){return(0,M.e)((re,de)=>{let Y=null;re._refCount++;const Se=(0,f.x)(de,void 0,void 0,void 0,()=>{if(!re||re._refCount<=0||0<--re._refCount)return void(Y=null);const We=re._connection,gt=Y;Y=null,We&&(!gt||We===gt)&&We.unsubscribe(),de.unsubscribe()});re.subscribe(Se),Se.closed||(Y=re.connect())})}class D extends A.y{constructor(de,Y){super(),this.source=de,this.subjectFactory=Y,this._subject=null,this._refCount=0,this._connection=null,(0,M.A)(de)&&(this.lift=de.lift)}_subscribe(de){return this.getSubject().subscribe(de)}getSubject(){const de=this._subject;return(!de||de.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:de}=this;this._subject=this._connection=null,de?.unsubscribe()}connect(){let de=this._connection;if(!de){de=this._connection=new C.w0;const Y=this.getSubject();de.add(this.source.subscribe((0,f.x)(Y,void 0,()=>{this._teardown(),Y.complete()},Se=>{this._teardown(),Y.error(Se)},()=>this._teardown()))),de.closed&&(this._connection=null,de=C.w0.EMPTY)}return de}refCount(){return b()(this)}}var T=p(32076),R=p(39646),B=p(61135),w=p(86805),H=p(39841),O=p(97272),J=p(49770),ne=p(89635),G=p(62843),se=p(60515),Oe=p(77579),_e=p(36895),Be=p(57359);function E(re,de){return(0,M.e)((0,Be.U)(re,de,arguments.length>=2,!0))}var z=p(39300);function F(re){return re<=0?()=>se.E:(0,M.e)((de,Y)=>{let Se=[];de.subscribe((0,f.x)(Y,We=>{Se.push(We),re{for(const We of Se)Y.next(We);Y.complete()},void 0,()=>{Se=null}))})}var V=p(18068),X=p(46590),q=p(44671);function pe(re,de){const Y=arguments.length>=2;return Se=>Se.pipe(re?(0,z.h)((We,gt)=>re(We,gt,Se)):q.y,F(1),Y?(0,X.d)(de):(0,V.T)(()=>new w.K))}var le=p(54004),ye=p(63900),Ve=p(95698),ve=p(68675),Ke=p(86099),Ue=p(50590),oe=p(24351),ce=p(18505),k=p(70262),N=p(22529),be=p(69718),W=p(28746),ue=p(8189),Me=p(11481);const ot="primary";class je{constructor(de){this.params=de||{}}has(de){return Object.prototype.hasOwnProperty.call(this.params,de)}get(de){if(this.has(de)){const Y=this.params[de];return Array.isArray(Y)?Y[0]:Y}return null}getAll(de){if(this.has(de)){const Y=this.params[de];return Array.isArray(Y)?Y:[Y]}return[]}get keys(){return Object.keys(this.params)}}function ut(re){return new je(re)}function tt(re,de,Y){const Se=Y.path.split("/");if(Se.length>re.length||"full"===Y.pathMatch&&(de.hasChildren()||Se.lengthSe[gt]===We)}return re===de}function Ae(re){return Array.prototype.concat.apply([],re)}function Ee(re){return re.length>0?re[re.length-1]:null}function we(re,de){for(const Y in re)re.hasOwnProperty(Y)&&de(re[Y],Y)}function Ne(re){return(0,e.CqO)(re)?re:(0,e.QGY)(re)?(0,T.D)(Promise.resolve(re)):(0,R.of)(re)}const r={exact:function h(re,de,Y){if(!c(re.segments,de.segments)||!n(re.segments,de.segments,Y)||re.numberOfChildren!==de.numberOfChildren)return!1;for(const Se in de.children)if(!re.children[Se]||!h(re.children[Se],de.children[Se],Y))return!1;return!0},subset:i},u={exact:function v(re,de){return ee(re,de)},subset:function a(re,de){return Object.keys(de).length<=Object.keys(re).length&&Object.keys(de).every(Y=>nt(re[Y],de[Y]))},ignored:()=>!0};function g(re,de,Y){return r[Y.paths](re.root,de.root,Y.matrixParams)&&u[Y.queryParams](re.queryParams,de.queryParams)&&!("exact"===Y.fragment&&re.fragment!==de.fragment)}function i(re,de,Y){return t(re,de,de.segments,Y)}function t(re,de,Y,Se){if(re.segments.length>Y.length){const We=re.segments.slice(0,Y.length);return!(!c(We,Y)||de.hasChildren()||!n(We,Y,Se))}if(re.segments.length===Y.length){if(!c(re.segments,Y)||!n(re.segments,Y,Se))return!1;for(const We in de.children)if(!re.children[We]||!i(re.children[We],de.children[We],Se))return!1;return!0}{const We=Y.slice(0,re.segments.length),gt=Y.slice(re.segments.length);return!!(c(re.segments,We)&&n(re.segments,We,Se)&&re.children[ot])&&t(re.children[ot],de,gt,Se)}}function n(re,de,Y){return de.every((Se,We)=>u[Y](re[We].parameters,Se.parameters))}class o{constructor(de,Y,Se){this.root=de,this.queryParams=Y,this.fragment=Se}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ut(this.queryParams)),this._queryParamMap}toString(){return ze.serialize(this)}}class s{constructor(de,Y){this.segments=de,this.children=Y,this.parent=null,we(Y,(Se,We)=>Se.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return et(this)}}class l{constructor(de,Y){this.path=de,this.parameters=Y}get parameterMap(){return this._parameterMap||(this._parameterMap=ut(this.parameters)),this._parameterMap}toString(){return st(this)}}function c(re,de){return re.length===de.length&&re.every((Y,Se)=>Y.path===de[Se].path)}let $=(()=>{class re{}return re.\u0275fac=function(Y){return new(Y||re)},re.\u0275prov=e.Yz7({token:re,factory:function(){return new ht},providedIn:"root"}),re})();class ht{parse(de){const Y=new on(de);return new o(Y.parseRootSegment(),Y.parseQueryParams(),Y.parseFragment())}serialize(de){const Y=`/${te(de.root,!0)}`,Se=function Et(re){const de=Object.keys(re).map(Y=>{const Se=re[Y];return Array.isArray(Se)?Se.map(We=>`${Ie(Y)}=${Ie(We)}`).join("&"):`${Ie(Y)}=${Ie(Se)}`}).filter(Y=>!!Y);return de.length?`?${de.join("&")}`:""}(de.queryParams);return`${Y}${Se}${"string"==typeof de.fragment?`#${function De(re){return encodeURI(re)}(de.fragment)}`:""}`}}const ze=new ht;function et(re){return re.segments.map(de=>st(de)).join("/")}function te(re,de){if(!re.hasChildren())return et(re);if(de){const Y=re.children[ot]?te(re.children[ot],!1):"",Se=[];return we(re.children,(We,gt)=>{gt!==ot&&Se.push(`${gt}:${te(We,!1)}`)}),Se.length>0?`${Y}(${Se.join("//")})`:Y}{const Y=function S(re,de){let Y=[];return we(re.children,(Se,We)=>{We===ot&&(Y=Y.concat(de(Se,We)))}),we(re.children,(Se,We)=>{We!==ot&&(Y=Y.concat(de(Se,We)))}),Y}(re,(Se,We)=>We===ot?[te(re.children[ot],!1)]:[`${We}:${te(Se,!1)}`]);return 1===Object.keys(re.children).length&&null!=re.children[ot]?`${et(re)}/${Y[0]}`:`${et(re)}/(${Y.join("//")})`}}function Le(re){return encodeURIComponent(re).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ie(re){return Le(re).replace(/%3B/gi,";")}function xe(re){return Le(re).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ie(re){return decodeURIComponent(re)}function Te(re){return ie(re.replace(/\+/g,"%20"))}function st(re){return`${xe(re.path)}${function Qe(re){return Object.keys(re).map(de=>`;${xe(de)}=${xe(re[de])}`).join("")}(re.parameters)}`}const ke=/^[^\/()?;=#]+/;function at(re){const de=re.match(ke);return de?de[0]:""}const It=/^[^=?&#]+/,an=/^[^&#]+/;class on{constructor(de){this.url=de,this.remaining=de}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new s([],{}):new s([],this.parseChildren())}parseQueryParams(){const de={};if(this.consumeOptional("?"))do{this.parseQueryParam(de)}while(this.consumeOptional("&"));return de}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const de=[];for(this.peekStartsWith("(")||de.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),de.push(this.parseSegment());let Y={};this.peekStartsWith("/(")&&(this.capture("/"),Y=this.parseParens(!0));let Se={};return this.peekStartsWith("(")&&(Se=this.parseParens(!1)),(de.length>0||Object.keys(Y).length>0)&&(Se[ot]=new s(de,Y)),Se}parseSegment(){const de=at(this.remaining);if(""===de&&this.peekStartsWith(";"))throw new e.vHH(4009,!1);return this.capture(de),new l(ie(de),this.parseMatrixParams())}parseMatrixParams(){const de={};for(;this.consumeOptional(";");)this.parseParam(de);return de}parseParam(de){const Y=at(this.remaining);if(!Y)return;this.capture(Y);let Se="";if(this.consumeOptional("=")){const We=at(this.remaining);We&&(Se=We,this.capture(Se))}de[ie(Y)]=ie(Se)}parseQueryParam(de){const Y=function jt(re){const de=re.match(It);return de?de[0]:""}(this.remaining);if(!Y)return;this.capture(Y);let Se="";if(this.consumeOptional("=")){const Pt=function Kt(re){const de=re.match(an);return de?de[0]:""}(this.remaining);Pt&&(Se=Pt,this.capture(Se))}const We=Te(Y),gt=Te(Se);if(de.hasOwnProperty(We)){let Pt=de[We];Array.isArray(Pt)||(Pt=[Pt],de[We]=Pt),Pt.push(gt)}else de[We]=gt}parseParens(de){const Y={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Se=at(this.remaining),We=this.remaining[Se.length];if("/"!==We&&")"!==We&&";"!==We)throw new e.vHH(4010,!1);let gt;Se.indexOf(":")>-1?(gt=Se.slice(0,Se.indexOf(":")),this.capture(gt),this.capture(":")):de&&(gt=ot);const Pt=this.parseChildren();Y[gt]=1===Object.keys(Pt).length?Pt[ot]:new s([],Pt),this.consumeOptional("//")}return Y}peekStartsWith(de){return this.remaining.startsWith(de)}consumeOptional(de){return!!this.peekStartsWith(de)&&(this.remaining=this.remaining.substring(de.length),!0)}capture(de){if(!this.consumeOptional(de))throw new e.vHH(4011,!1)}}function bn(re){return re.segments.length>0?new s([],{[ot]:re}):re}function Tt(re){const de={};for(const Se of Object.keys(re.children)){const gt=Tt(re.children[Se]);(gt.segments.length>0||gt.hasChildren())&&(de[Se]=gt)}return function Dt(re){if(1===re.numberOfChildren&&re.children[ot]){const de=re.children[ot];return new s(re.segments.concat(de.segments),de.children)}return re}(new s(re.segments,de))}function Ge(re){return re instanceof o}function gn(re,de,Y,Se,We){var gt;if(0===Y.length)return Lt(de.root,de.root,de.root,Se,We);const Pt=function St(re){if("string"==typeof re[0]&&1===re.length&&"/"===re[0])return new it(!0,0,re);let de=0,Y=!1;const Se=re.reduce((We,gt,Pt)=>{if("object"==typeof gt&&null!=gt){if(gt.outlets){const Ut={};return we(gt.outlets,(qt,un)=>{Ut[un]="string"==typeof qt?qt.split("/"):qt}),[...We,{outlets:Ut}]}if(gt.segmentPath)return[...We,gt.segmentPath]}return"string"!=typeof gt?[...We,gt]:0===Pt?(gt.split("/").forEach((Ut,qt)=>{0==qt&&"."===Ut||(0==qt&&""===Ut?Y=!0:".."===Ut?de++:""!=Ut&&We.push(Ut))}),We):[...We,gt]},[]);return new it(Y,de,Se)}(Y);if(Pt.toRoot())return Lt(de.root,de.root,new s([],{}),Se,We);const qt=function Ut(Tn){var hn;const Dn=function mt(re,de,Y,Se){if(re.isAbsolute)return new j(de.root,!0,0);if(-1===Se)return new j(Y,Y===de.root,0);return function Rt(re,de,Y){let Se=re,We=de,gt=Y;for(;gt>We;){if(gt-=We,Se=Se.parent,!Se)throw new e.vHH(4005,!1);We=Se.segments.length}return new j(Se,!1,We-gt)}(Y,Se+(zn(re.commands[0])?0:1),re.numberOfDoubleDots)}(Pt,de,null===(hn=re.snapshot)||void 0===hn?void 0:hn._urlSegment,Tn),fi=Dn.processChildren?Vn(Dn.segmentGroup,Dn.index,Pt.commands):vn(Dn.segmentGroup,Dn.index,Pt.commands);return Lt(de.root,Dn.segmentGroup,fi,Se,We)}(null===(gt=re.snapshot)||void 0===gt?void 0:gt._lastPathIndex);return qt}function zn(re){return"object"==typeof re&&null!=re&&!re.outlets&&!re.segmentPath}function bt(re){return"object"==typeof re&&null!=re&&re.outlets}function Lt(re,de,Y,Se,We){let Pt,gt={};Se&&we(Se,(qt,un)=>{gt[un]=Array.isArray(qt)?qt.map(Tn=>`${Tn}`):`${qt}`}),Pt=re===de?Y:pt(re,de,Y);const Ut=bn(Tt(Pt));return new o(Ut,gt,We)}function pt(re,de,Y){const Se={};return we(re.children,(We,gt)=>{Se[gt]=We===de?Y:pt(We,de,Y)}),new s(re.segments,Se)}class it{constructor(de,Y,Se){if(this.isAbsolute=de,this.numberOfDoubleDots=Y,this.commands=Se,de&&Se.length>0&&zn(Se[0]))throw new e.vHH(4003,!1);const We=Se.find(bt);if(We&&We!==Ee(Se))throw new e.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class j{constructor(de,Y,Se){this.segmentGroup=de,this.processChildren=Y,this.index=Se}}function vn(re,de,Y){if(re||(re=new s([],{})),0===re.segments.length&&re.hasChildren())return Vn(re,de,Y);const Se=function In(re,de,Y){let Se=0,We=de;const gt={match:!1,pathIndex:0,commandIndex:0};for(;We=Y.length)return gt;const Pt=re.segments[We],Ut=Y[Se];if(bt(Ut))break;const qt=`${Ut}`,un=Se0&&void 0===qt)break;if(qt&&un&&"object"==typeof un&&void 0===un.outlets){if(!Jn(qt,un,Pt))return gt;Se+=2}else{if(!Jn(qt,{},Pt))return gt;Se++}We++}return{match:!0,pathIndex:We,commandIndex:Se}}(re,de,Y),We=Y.slice(Se.commandIndex);if(Se.match&&Se.pathIndex{"string"==typeof gt&&(gt=[gt]),null!==gt&&(We[Pt]=vn(re.children[Pt],de,gt))}),we(re.children,(gt,Pt)=>{void 0===Se[Pt]&&(We[Pt]=gt)}),new s(re.segments,We)}}function Kn(re,de,Y){const Se=re.segments.slice(0,de);let We=0;for(;We{"string"==typeof Y&&(Y=[Y]),null!==Y&&(de[Se]=Kn(new s([],{}),0,Y))}),de}function $n(re){const de={};return we(re,(Y,Se)=>de[Se]=`${Y}`),de}function Jn(re,de,Y){return re==Y.path&&ee(de,Y.parameters)}class Ln{constructor(de,Y){this.id=de,this.url=Y}}class zi extends Ln{constructor(de,Y,Se="imperative",We=null){super(de,Y),this.type=0,this.navigationTrigger=Se,this.restoredState=We}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class qn extends Ln{constructor(de,Y,Se){super(de,Y),this.urlAfterRedirects=Se,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ci extends Ln{constructor(de,Y,Se,We){super(de,Y),this.reason=Se,this.code=We,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Yi extends Ln{constructor(de,Y,Se,We){super(de,Y),this.error=Se,this.target=We,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class tr extends Ln{constructor(de,Y,Se,We){super(de,Y),this.urlAfterRedirects=Se,this.state=We,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Vi extends Ln{constructor(de,Y,Se,We){super(de,Y),this.urlAfterRedirects=Se,this.state=We,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class di extends Ln{constructor(de,Y,Se,We,gt){super(de,Y),this.urlAfterRedirects=Se,this.state=We,this.shouldActivate=gt,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class or extends Ln{constructor(de,Y,Se,We){super(de,Y),this.urlAfterRedirects=Se,this.state=We,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ir extends Ln{constructor(de,Y,Se,We){super(de,Y),this.urlAfterRedirects=Se,this.state=We,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sr{constructor(de){this.route=de,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class lr{constructor(de){this.route=de,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ci{constructor(de){this.snapshot=de,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Er{constructor(de){this.snapshot=de,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ur{constructor(de){this.snapshot=de,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ei{constructor(de){this.snapshot=de,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Or{constructor(de,Y,Se){this.routerEvent=de,this.position=Y,this.anchor=Se,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class kr{constructor(de){this._root=de}get root(){return this._root.value}parent(de){const Y=this.pathFromRoot(de);return Y.length>1?Y[Y.length-2]:null}children(de){const Y=Hr(de,this._root);return Y?Y.children.map(Se=>Se.value):[]}firstChild(de){const Y=Hr(de,this._root);return Y&&Y.children.length>0?Y.children[0].value:null}siblings(de){const Y=Pi(de,this._root);return Y.length<2?[]:Y[Y.length-2].children.map(We=>We.value).filter(We=>We!==de)}pathFromRoot(de){return Pi(de,this._root).map(Y=>Y.value)}}function Hr(re,de){if(re===de.value)return de;for(const Y of de.children){const Se=Hr(re,Y);if(Se)return Se}return null}function Pi(re,de){if(re===de.value)return[de];for(const Y of de.children){const Se=Pi(re,Y);if(Se.length)return Se.unshift(de),Se}return[]}class Ii{constructor(de,Y){this.value=de,this.children=Y}toString(){return`TreeNode(${this.value})`}}function Mt(re){const de={};return re&&re.children.forEach(Y=>de[Y.value.outlet]=Y),de}class en extends kr{constructor(de,Y){super(de),this.snapshot=Y,hi(this,de)}toString(){return this.snapshot.toString()}}function ct(re,de){const Y=function kt(re,de){const Pt=new Bn([],{},{},"",{},ot,de,null,re.root,-1,{});return new Qn("",new Ii(Pt,[]))}(re,de),Se=new B.X([new l("",{})]),We=new B.X({}),gt=new B.X({}),Pt=new B.X({}),Ut=new B.X(""),qt=new Zt(Se,We,Pt,Ut,gt,ot,de,Y.root);return qt.snapshot=Y.root,new en(new Ii(qt,[]),Y)}class Zt{constructor(de,Y,Se,We,gt,Pt,Ut,qt){this.url=de,this.params=Y,this.queryParams=Se,this.fragment=We,this.data=gt,this.outlet=Pt,this.component=Ut,this._futureSnapshot=qt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,le.U)(de=>ut(de)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,le.U)(de=>ut(de)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function rn(re,de="emptyOnly"){const Y=re.pathFromRoot;let Se=0;if("always"!==de)for(Se=Y.length-1;Se>=1;){const We=Y[Se],gt=Y[Se-1];if(We.routeConfig&&""===We.routeConfig.path)Se--;else{if(gt.component)break;Se--}}return function On(re){return re.reduce((de,Y)=>{var Se;return{params:{...de.params,...Y.params},data:{...de.data,...Y.data},resolve:{...Y.data,...de.resolve,...null===(Se=Y.routeConfig)||void 0===Se?void 0:Se.data,...Y._resolvedData}}},{params:{},data:{},resolve:{}})}(Y.slice(Se))}class Bn{constructor(de,Y,Se,We,gt,Pt,Ut,qt,un,Tn,hn,Dn){this.url=de,this.params=Y,this.queryParams=Se,this.fragment=We,this.data=gt,this.outlet=Pt,this.component=Ut,this.routeConfig=qt,this._urlSegment=un,this._lastPathIndex=Tn,this._correctedLastPathIndex=Dn??Tn,this._resolve=hn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ut(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ut(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Se=>Se.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Qn extends kr{constructor(de,Y){super(Y),this.url=de,hi(this,Y)}toString(){return nr(this._root)}}function hi(re,de){de.value._routerState=re,de.children.forEach(Y=>hi(re,Y))}function nr(re){const de=re.children.length>0?` { ${re.children.map(nr).join(", ")} } `:"";return`${re.value}${de}`}function Oi(re){if(re.snapshot){const de=re.snapshot,Y=re._futureSnapshot;re.snapshot=Y,ee(de.queryParams,Y.queryParams)||re.queryParams.next(Y.queryParams),de.fragment!==Y.fragment&&re.fragment.next(Y.fragment),ee(de.params,Y.params)||re.params.next(Y.params),function vt(re,de){if(re.length!==de.length)return!1;for(let Y=0;Yee(Y.parameters,de[Se].parameters))}(re.url,de.url);return Y&&!(!re.parent!=!de.parent)&&(!re.parent||xi(re.parent,de.parent))}function lt(re,de,Y){if(Y&&re.shouldReuseRoute(de.value,Y.value.snapshot)){const Se=Y.value;Se._futureSnapshot=de.value;const We=function Vt(re,de,Y){return de.children.map(Se=>{for(const We of Y.children)if(re.shouldReuseRoute(Se.value,We.value.snapshot))return lt(re,Se,We);return lt(re,Se)})}(re,de,Y);return new Ii(Se,We)}{if(re.shouldAttach(de.value)){const gt=re.retrieve(de.value);if(null!==gt){const Pt=gt.route;return Pt.value._futureSnapshot=de.value,Pt.children=de.children.map(Ut=>lt(re,Ut)),Pt}}const Se=function Xe(re){return new Zt(new B.X(re.url),new B.X(re.params),new B.X(re.queryParams),new B.X(re.fragment),new B.X(re.data),re.outlet,re.component,re)}(de.value),We=de.children.map(gt=>lt(re,gt));return new Ii(Se,We)}}const yt="ngNavigationCancelingError";function Wt(re,de){const{redirectTo:Y,navigationBehaviorOptions:Se}=Ge(de)?{redirectTo:de,navigationBehaviorOptions:void 0}:de,We=dn(!1,0,de);return We.url=Y,We.navigationBehaviorOptions=Se,We}function dn(re,de,Y){const Se=new Error("NavigationCancelingError: "+(re||""));return Se[yt]=!0,Se.cancellationCode=de,Y&&(Se.url=Y),Se}function An(re){return Yn(re)&&Ge(re.url)}function Yn(re){return re&&re[yt]}class oi{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new bi,this.attachRef=null}}let bi=(()=>{class re{constructor(){this.contexts=new Map}onChildOutletCreated(Y,Se){const We=this.getOrCreateContext(Y);We.outlet=Se,this.contexts.set(Y,We)}onChildOutletDestroyed(Y){const Se=this.getContext(Y);Se&&(Se.outlet=null,Se.attachRef=null)}onOutletDeactivated(){const Y=this.contexts;return this.contexts=new Map,Y}onOutletReAttached(Y){this.contexts=Y}getOrCreateContext(Y){let Se=this.getContext(Y);return Se||(Se=new oi,this.contexts.set(Y,Se)),Se}getContext(Y){return this.contexts.get(Y)||null}}return re.\u0275fac=function(Y){return new(Y||re)},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();const cr=!1;let Ji=(()=>{class re{constructor(Y,Se,We,gt,Pt){this.parentContexts=Y,this.location=Se,this.changeDetector=gt,this.environmentInjector=Pt,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=We||ot,Y.onChildOutletCreated(this.name,this)}ngOnDestroy(){var Y;(null===(Y=this.parentContexts.getContext(this.name))||void 0===Y?void 0:Y.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const Y=this.parentContexts.getContext(this.name);Y&&Y.route&&(Y.attachRef?this.attach(Y.attachRef,Y.route):this.activateWith(Y.route,Y.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,cr);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,cr);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,cr);this.location.detach();const Y=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(Y.instance),Y}attach(Y,Se){this.activated=Y,this._activatedRoute=Se,this.location.insert(Y.hostView),this.attachEvents.emit(Y.instance)}deactivate(){if(this.activated){const Y=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Y)}}activateWith(Y,Se){if(this.isActivated)throw new e.vHH(4013,cr);this._activatedRoute=Y;const We=this.location,Pt=Y._futureSnapshot.component,Ut=this.parentContexts.getOrCreateContext(this.name).children,qt=new ni(Y,Ut,We.injector);if(Se&&function Ba(re){return!!re.resolveComponentFactory}(Se)){const un=Se.resolveComponentFactory(Pt);this.activated=We.createComponent(un,We.length,qt)}else this.activated=We.createComponent(Pt,{index:We.length,injector:qt,environmentInjector:Se??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return re.\u0275fac=function(Y){return new(Y||re)(e.Y36(bi),e.Y36(e.s_b),e.$8M("name"),e.Y36(e.sBO),e.Y36(e.lqb))},re.\u0275dir=e.lG2({type:re,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),re})();class ni{constructor(de,Y,Se){this.route=de,this.childContexts=Y,this.parent=Se}get(de,Y){return de===Zt?this.route:de===bi?this.childContexts:this.parent.get(de,Y)}}let Qi=(()=>{class re{}return re.\u0275fac=function(Y){return new(Y||re)},re.\u0275cmp=e.Xpm({type:re,selectors:[["ng-component"]],decls:1,vars:0,template:function(Y,Se){1&Y&&e._UZ(0,"router-outlet")},dependencies:[Ji],encapsulation:2}),re})();function Fi(re,de){var Y;return re.providers&&!re._injector&&(re._injector=(0,e.MMx)(re.providers,de,`Route: ${re.path}`)),null!==(Y=re._injector)&&void 0!==Y?Y:de}function Ct(re){const de=re.children&&re.children.map(Ct),Y=de?{...re,children:de}:{...re};return!Y.component&&!Y.loadComponent&&(de||Y.loadChildren)&&Y.outlet&&Y.outlet!==ot&&(Y.component=Qi),Y}function Bt(re){return re.outlet||ot}function Qt(re,de){const Y=re.filter(Se=>Bt(Se)===de);return Y.push(...re.filter(Se=>Bt(Se)!==de)),Y}function zt(re){var de;if(!re)return null;if(null!==(de=re.routeConfig)&&void 0!==de&&de._injector)return re.routeConfig._injector;for(let Y=re.parent;Y;Y=Y.parent){const Se=Y.routeConfig;if(null!=Se&&Se._loadedInjector)return Se._loadedInjector;if(null!=Se&&Se._injector)return Se._injector}return null}class ri{constructor(de,Y,Se,We){this.routeReuseStrategy=de,this.futureState=Y,this.currState=Se,this.forwardEvent=We}activate(de){const Y=this.futureState._root,Se=this.currState?this.currState._root:null;this.deactivateChildRoutes(Y,Se,de),Oi(this.futureState.root),this.activateChildRoutes(Y,Se,de)}deactivateChildRoutes(de,Y,Se){const We=Mt(Y);de.children.forEach(gt=>{const Pt=gt.value.outlet;this.deactivateRoutes(gt,We[Pt],Se),delete We[Pt]}),we(We,(gt,Pt)=>{this.deactivateRouteAndItsChildren(gt,Se)})}deactivateRoutes(de,Y,Se){const We=de.value,gt=Y?Y.value:null;if(We===gt)if(We.component){const Pt=Se.getContext(We.outlet);Pt&&this.deactivateChildRoutes(de,Y,Pt.children)}else this.deactivateChildRoutes(de,Y,Se);else gt&&this.deactivateRouteAndItsChildren(Y,Se)}deactivateRouteAndItsChildren(de,Y){de.value.component&&this.routeReuseStrategy.shouldDetach(de.value.snapshot)?this.detachAndStoreRouteSubtree(de,Y):this.deactivateRouteAndOutlet(de,Y)}detachAndStoreRouteSubtree(de,Y){const Se=Y.getContext(de.value.outlet),We=Se&&de.value.component?Se.children:Y,gt=Mt(de);for(const Pt of Object.keys(gt))this.deactivateRouteAndItsChildren(gt[Pt],We);if(Se&&Se.outlet){const Pt=Se.outlet.detach(),Ut=Se.children.onOutletDeactivated();this.routeReuseStrategy.store(de.value.snapshot,{componentRef:Pt,route:de,contexts:Ut})}}deactivateRouteAndOutlet(de,Y){const Se=Y.getContext(de.value.outlet),We=Se&&de.value.component?Se.children:Y,gt=Mt(de);for(const Pt of Object.keys(gt))this.deactivateRouteAndItsChildren(gt[Pt],We);Se&&Se.outlet&&(Se.outlet.deactivate(),Se.children.onOutletDeactivated(),Se.attachRef=null,Se.resolver=null,Se.route=null)}activateChildRoutes(de,Y,Se){const We=Mt(Y);de.children.forEach(gt=>{this.activateRoutes(gt,We[gt.value.outlet],Se),this.forwardEvent(new Ei(gt.value.snapshot))}),de.children.length&&this.forwardEvent(new Er(de.value.snapshot))}activateRoutes(de,Y,Se){const We=de.value,gt=Y?Y.value:null;if(Oi(We),We===gt)if(We.component){const Ut=Se.getOrCreateContext(We.outlet);this.activateChildRoutes(de,Y,Ut.children)}else this.activateChildRoutes(de,Y,Se);else if(We.component){const Ut=Se.getOrCreateContext(We.outlet);if(this.routeReuseStrategy.shouldAttach(We.snapshot)){const qt=this.routeReuseStrategy.retrieve(We.snapshot);this.routeReuseStrategy.store(We.snapshot,null),Ut.children.onOutletReAttached(qt.contexts),Ut.attachRef=qt.componentRef,Ut.route=qt.route.value,Ut.outlet&&Ut.outlet.attach(qt.componentRef,qt.route.value),Oi(qt.route.value),this.activateChildRoutes(de,null,Ut.children)}else{var Pt;const qt=zt(We.snapshot),un=null!==(Pt=qt?.get(e._Vd))&&void 0!==Pt?Pt:null;Ut.attachRef=null,Ut.route=We,Ut.resolver=un,Ut.injector=qt,Ut.outlet&&Ut.outlet.activateWith(We,Ut.injector),this.activateChildRoutes(de,null,Ut.children)}}else this.activateChildRoutes(de,null,Se)}}class Xn{constructor(de){this.path=de,this.route=this.path[this.path.length-1]}}class ii{constructor(de,Y){this.component=de,this.route=Y}}function Gn(re,de,Y){const Se=re._root;return vi(Se,de?de._root:null,Y,[Se.value])}function ei(re,de,Y){return(zt(de)??Y).get(re)}function vi(re,de,Y,Se,We={canDeactivateChecks:[],canActivateChecks:[]}){const gt=Mt(de);return re.children.forEach(Pt=>{(function nn(re,de,Y,Se,We={canDeactivateChecks:[],canActivateChecks:[]}){const gt=re.value,Pt=de?de.value:null,Ut=Y?Y.getContext(re.value.outlet):null;if(Pt&>.routeConfig===Pt.routeConfig){const qt=function Un(re,de,Y){if("function"==typeof Y)return Y(re,de);switch(Y){case"pathParamsChange":return!c(re.url,de.url);case"pathParamsOrQueryParamsChange":return!c(re.url,de.url)||!ee(re.queryParams,de.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xi(re,de)||!ee(re.queryParams,de.queryParams);default:return!xi(re,de)}}(Pt,gt,gt.routeConfig.runGuardsAndResolvers);qt?We.canActivateChecks.push(new Xn(Se)):(gt.data=Pt.data,gt._resolvedData=Pt._resolvedData),vi(re,de,gt.component?Ut?Ut.children:null:Y,Se,We),qt&&Ut&&Ut.outlet&&Ut.outlet.isActivated&&We.canDeactivateChecks.push(new ii(Ut.outlet.component,Pt))}else Pt&&Ki(de,Ut,We),We.canActivateChecks.push(new Xn(Se)),vi(re,null,gt.component?Ut?Ut.children:null:Y,Se,We)})(Pt,gt[Pt.value.outlet],Y,Se.concat([Pt.value]),We),delete gt[Pt.value.outlet]}),we(gt,(Pt,Ut)=>Ki(Pt,Y.getContext(Ut),We)),We}function Ki(re,de,Y){const Se=Mt(re),We=re.value;we(Se,(gt,Pt)=>{Ki(gt,We.component?de?de.children.getContext(Pt):null:de,Y)}),Y.canDeactivateChecks.push(new ii(We.component&&de&&de.outlet&&de.outlet.isActivated?de.outlet.component:null,We))}function ji(re){return"function"==typeof re}function _n(re){return re instanceof w.K||"EmptyError"===re?.name}const pi=Symbol("INITIAL_VALUE");function ai(){return(0,ye.w)(re=>(0,H.a)(re.map(de=>de.pipe((0,Ve.q)(1),(0,ve.O)(pi)))).pipe((0,le.U)(de=>{for(const Y of de)if(!0!==Y){if(Y===pi)return pi;if(!1===Y||Y instanceof o)return Y}return!0}),(0,z.h)(de=>de!==pi),(0,Ve.q)(1)))}function Xa(re){return(0,ne.z)((0,ce.b)(de=>{if(Ge(de))throw Wt(0,de)}),(0,le.U)(de=>!0===de))}const ta={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ns(re,de,Y,Se,We){const gt=na(re,de,Y);return gt.matched?function ts(re,de,Y,Se){const We=de.canMatch;if(!We||0===We.length)return(0,R.of)(!0);const gt=We.map(Pt=>{const Ut=re.get(Pt),qt=function Re(re){return re&&ji(re.canMatch)}(Ut)?Ut.canMatch(de,Y):Ut(de,Y);return Ne(qt)});return(0,R.of)(gt).pipe(ai(),Xa())}(Se=Fi(de,Se),de,Y).pipe((0,le.U)(Pt=>!0===Pt?gt:{...ta})):(0,R.of)(gt)}function na(re,de,Y){var Se;if(""===de.path)return"full"===de.pathMatch&&(re.hasChildren()||Y.length>0)?{...ta}:{matched:!0,consumedSegments:[],remainingSegments:Y,parameters:{},positionalParamSegments:{}};const gt=(de.matcher||tt)(Y,re,de);if(!gt)return{...ta};const Pt={};we(gt.posParams,(qt,un)=>{Pt[un]=qt.path});const Ut=gt.consumed.length>0?{...Pt,...gt.consumed[gt.consumed.length-1].parameters}:Pt;return{matched:!0,consumedSegments:gt.consumed,remainingSegments:Y.slice(gt.consumed.length),parameters:Ut,positionalParamSegments:null!==(Se=gt.posParams)&&void 0!==Se?Se:{}}}function Yr(re,de,Y,Se,We="corrected"){if(Y.length>0&&function Do(re,de,Y){return Y.some(Se=>Va(re,de,Se)&&Bt(Se)!==ot)}(re,Y,Se)){const Pt=new s(de,function is(re,de,Y,Se){const We={};We[ot]=Se,Se._sourceSegment=re,Se._segmentIndexShift=de.length;for(const gt of Y)if(""===gt.path&&Bt(gt)!==ot){const Pt=new s([],{});Pt._sourceSegment=re,Pt._segmentIndexShift=de.length,We[Bt(gt)]=Pt}return We}(re,de,Se,new s(Y,re.children)));return Pt._sourceSegment=re,Pt._segmentIndexShift=de.length,{segmentGroup:Pt,slicedSegments:[]}}if(0===Y.length&&function rs(re,de,Y){return Y.some(Se=>Va(re,de,Se))}(re,Y,Se)){const Pt=new s(re.segments,function ka(re,de,Y,Se,We,gt){const Pt={};for(const Ut of Se)if(Va(re,Y,Ut)&&!We[Bt(Ut)]){const qt=new s([],{});qt._sourceSegment=re,qt._segmentIndexShift="legacy"===gt?re.segments.length:de.length,Pt[Bt(Ut)]=qt}return{...We,...Pt}}(re,de,Y,Se,re.children,We));return Pt._sourceSegment=re,Pt._segmentIndexShift=de.length,{segmentGroup:Pt,slicedSegments:Y}}const gt=new s(re.segments,re.children);return gt._sourceSegment=re,gt._segmentIndexShift=de.length,{segmentGroup:gt,slicedSegments:Y}}function Va(re,de,Y){return(!(re.hasChildren()||de.length>0)||"full"!==Y.pathMatch)&&""===Y.path}function eo(re,de,Y,Se){return!!(Bt(re)===Se||Se!==ot&&Va(de,Y,re))&&("**"===re.path||na(de,re,Y).matched)}function Qs(re,de,Y){return 0===de.length&&!re.children[Y]}const Hi=!1;class wr{constructor(de){this.segmentGroup=de||null}}class _i{constructor(de){this.urlTree=de}}function qr(re){return(0,G._)(new wr(re))}function Ro(re){return(0,G._)(new _i(re))}class el{constructor(de,Y,Se,We,gt){this.injector=de,this.configLoader=Y,this.urlSerializer=Se,this.urlTree=We,this.config=gt,this.allowRedirects=!0}apply(){const de=Yr(this.urlTree.root,[],[],this.config).segmentGroup,Y=new s(de.segments,de.children);return this.expandSegmentGroup(this.injector,this.config,Y,ot).pipe((0,le.U)(gt=>this.createUrlTree(Tt(gt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,k.K)(gt=>{if(gt instanceof _i)return this.allowRedirects=!1,this.match(gt.urlTree);throw gt instanceof wr?this.noMatchError(gt):gt}))}match(de){return this.expandSegmentGroup(this.injector,this.config,de.root,ot).pipe((0,le.U)(We=>this.createUrlTree(Tt(We),de.queryParams,de.fragment))).pipe((0,k.K)(We=>{throw We instanceof wr?this.noMatchError(We):We}))}noMatchError(de){return new e.vHH(4002,Hi)}createUrlTree(de,Y,Se){const We=bn(de);return new o(We,Y,Se)}expandSegmentGroup(de,Y,Se,We){return 0===Se.segments.length&&Se.hasChildren()?this.expandChildren(de,Y,Se).pipe((0,le.U)(gt=>new s([],gt))):this.expandSegment(de,Se,Y,Se.segments,We,!0)}expandChildren(de,Y,Se){const We=[];for(const gt of Object.keys(Se.children))"primary"===gt?We.unshift(gt):We.push(gt);return(0,T.D)(We).pipe((0,oe.b)(gt=>{const Pt=Se.children[gt],Ut=Qt(Y,gt);return this.expandSegmentGroup(de,Ut,Pt,gt).pipe((0,le.U)(qt=>({segment:qt,outlet:gt})))}),E((gt,Pt)=>(gt[Pt.outlet]=Pt.segment,gt),{}),pe())}expandSegment(de,Y,Se,We,gt,Pt){return(0,T.D)(Se).pipe((0,oe.b)(Ut=>this.expandSegmentAgainstRoute(de,Y,Se,Ut,We,gt,Pt).pipe((0,k.K)(un=>{if(un instanceof wr)return(0,R.of)(null);throw un}))),(0,Ue.P)(Ut=>!!Ut),(0,k.K)((Ut,qt)=>{if(_n(Ut))return Qs(Y,We,gt)?(0,R.of)(new s([],{})):qr(Y);throw Ut}))}expandSegmentAgainstRoute(de,Y,Se,We,gt,Pt,Ut){return eo(We,Y,gt,Pt)?void 0===We.redirectTo?this.matchSegmentAgainstRoute(de,Y,We,gt,Pt):Ut&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(de,Y,Se,We,gt,Pt):qr(Y):qr(Y)}expandSegmentAgainstRouteUsingRedirect(de,Y,Se,We,gt,Pt){return"**"===We.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(de,Se,We,Pt):this.expandRegularSegmentAgainstRouteUsingRedirect(de,Y,Se,We,gt,Pt)}expandWildCardWithParamsAgainstRouteUsingRedirect(de,Y,Se,We){const gt=this.applyRedirectCommands([],Se.redirectTo,{});return Se.redirectTo.startsWith("/")?Ro(gt):this.lineralizeSegments(Se,gt).pipe((0,Ke.z)(Pt=>{const Ut=new s(Pt,{});return this.expandSegment(de,Ut,Y,Pt,We,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(de,Y,Se,We,gt,Pt){const{matched:Ut,consumedSegments:qt,remainingSegments:un,positionalParamSegments:Tn}=na(Y,We,gt);if(!Ut)return qr(Y);const hn=this.applyRedirectCommands(qt,We.redirectTo,Tn);return We.redirectTo.startsWith("/")?Ro(hn):this.lineralizeSegments(We,hn).pipe((0,Ke.z)(Dn=>this.expandSegment(de,Y,Se,Dn.concat(un),Pt,!1)))}matchSegmentAgainstRoute(de,Y,Se,We,gt){return"**"===Se.path?(de=Fi(Se,de),Se.loadChildren?(Se._loadedRoutes?(0,R.of)({routes:Se._loadedRoutes,injector:Se._loadedInjector}):this.configLoader.loadChildren(de,Se)).pipe((0,le.U)(Ut=>(Se._loadedRoutes=Ut.routes,Se._loadedInjector=Ut.injector,new s(We,{})))):(0,R.of)(new s(We,{}))):ns(Y,Se,We,de).pipe((0,ye.w)(({matched:Pt,consumedSegments:Ut,remainingSegments:qt})=>{var un;return Pt?(de=null!==(un=Se._injector)&&void 0!==un?un:de,this.getChildConfig(de,Se,We).pipe((0,Ke.z)(hn=>{var Dn;const fi=null!==(Dn=hn.injector)&&void 0!==Dn?Dn:de,Li=hn.routes,{segmentGroup:rr,slicedSegments:Mr}=Yr(Y,Ut,qt,Li),xr=new s(rr.segments,rr.children);if(0===Mr.length&&xr.hasChildren())return this.expandChildren(fi,Li,xr).pipe((0,le.U)($r=>new s(Ut,$r)));if(0===Li.length&&0===Mr.length)return(0,R.of)(new s(Ut,{}));const sa=Bt(Se)===gt;return this.expandSegment(fi,xr,Li,Mr,sa?ot:gt,!0).pipe((0,le.U)(Mi=>new s(Ut.concat(Mi.segments),Mi.children)))}))):qr(Y)}))}getChildConfig(de,Y,Se){return Y.children?(0,R.of)({routes:Y.children,injector:de}):Y.loadChildren?void 0!==Y._loadedRoutes?(0,R.of)({routes:Y._loadedRoutes,injector:Y._loadedInjector}):function xo(re,de,Y,Se){const We=de.canLoad;if(void 0===We||0===We.length)return(0,R.of)(!0);const gt=We.map(Pt=>{const Ut=re.get(Pt),qt=function Tr(re){return re&&ji(re.canLoad)}(Ut)?Ut.canLoad(de,Y):Ut(de,Y);return Ne(qt)});return(0,R.of)(gt).pipe(ai(),Xa())}(de,Y,Se).pipe((0,Ke.z)(We=>We?this.configLoader.loadChildren(de,Y).pipe((0,ce.b)(gt=>{Y._loadedRoutes=gt.routes,Y._loadedInjector=gt.injector})):function $s(re){return(0,G._)(dn(Hi,3))}())):(0,R.of)({routes:[],injector:de})}lineralizeSegments(de,Y){let Se=[],We=Y.root;for(;;){if(Se=Se.concat(We.segments),0===We.numberOfChildren)return(0,R.of)(Se);if(We.numberOfChildren>1||!We.children[ot])return(0,G._)(new e.vHH(4e3,Hi));We=We.children[ot]}}applyRedirectCommands(de,Y,Se){return this.applyRedirectCreateUrlTree(Y,this.urlSerializer.parse(Y),de,Se)}applyRedirectCreateUrlTree(de,Y,Se,We){const gt=this.createSegmentGroup(de,Y.root,Se,We);return new o(gt,this.createQueryParams(Y.queryParams,this.urlTree.queryParams),Y.fragment)}createQueryParams(de,Y){const Se={};return we(de,(We,gt)=>{if("string"==typeof We&&We.startsWith(":")){const Ut=We.substring(1);Se[gt]=Y[Ut]}else Se[gt]=We}),Se}createSegmentGroup(de,Y,Se,We){const gt=this.createSegments(de,Y.segments,Se,We);let Pt={};return we(Y.children,(Ut,qt)=>{Pt[qt]=this.createSegmentGroup(de,Ut,Se,We)}),new s(gt,Pt)}createSegments(de,Y,Se,We){return Y.map(gt=>gt.path.startsWith(":")?this.findPosParam(de,gt,We):this.findOrReturn(gt,Se))}findPosParam(de,Y,Se){const We=Se[Y.path.substring(1)];if(!We)throw new e.vHH(4001,Hi);return We}findOrReturn(de,Y){let Se=0;for(const We of Y){if(We.path===de.path)return Y.splice(Se),We;Se++}return de}}class no{}class tl{constructor(de,Y,Se,We,gt,Pt,Ut,qt){this.injector=de,this.rootComponentType=Y,this.config=Se,this.urlTree=We,this.url=gt,this.paramsInheritanceStrategy=Pt,this.relativeLinkResolution=Ut,this.urlSerializer=qt}recognize(){const de=Yr(this.urlTree.root,[],[],this.config.filter(Y=>void 0===Y.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,de,ot).pipe((0,le.U)(Y=>{if(null===Y)return null;const Se=new Bn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ot,this.rootComponentType,null,this.urlTree.root,-1,{}),We=new Ii(Se,Y),gt=new Qn(this.url,We);return this.inheritParamsAndData(gt._root),gt}))}inheritParamsAndData(de){const Y=de.value,Se=rn(Y,this.paramsInheritanceStrategy);Y.params=Object.freeze(Se.params),Y.data=Object.freeze(Se.data),de.children.forEach(We=>this.inheritParamsAndData(We))}processSegmentGroup(de,Y,Se,We){return 0===Se.segments.length&&Se.hasChildren()?this.processChildren(de,Y,Se):this.processSegment(de,Y,Se,Se.segments,We)}processChildren(de,Y,Se){return(0,T.D)(Object.keys(Se.children)).pipe((0,oe.b)(We=>{const gt=Se.children[We],Pt=Qt(Y,We);return this.processSegmentGroup(de,Pt,gt,We)}),E((We,gt)=>We&>?(We.push(...gt),We):null),(0,N.o)(We=>null!==We),(0,X.d)(null),pe(),(0,le.U)(We=>{if(null===We)return null;const gt=os(We);return function Vr(re){re.sort((de,Y)=>de.value.outlet===ot?-1:Y.value.outlet===ot?1:de.value.outlet.localeCompare(Y.value.outlet))}(gt),gt}))}processSegment(de,Y,Se,We,gt){return(0,T.D)(Y).pipe((0,oe.b)(Pt=>{var Ut;return this.processSegmentAgainstRoute(null!==(Ut=Pt._injector)&&void 0!==Ut?Ut:de,Pt,Se,We,gt)}),(0,Ue.P)(Pt=>!!Pt),(0,k.K)(Pt=>{if(_n(Pt))return Qs(Se,We,gt)?(0,R.of)([]):(0,R.of)(null);throw Pt}))}processSegmentAgainstRoute(de,Y,Se,We,gt){if(Y.redirectTo||!eo(Y,Se,We,gt))return(0,R.of)(null);let Pt;if("**"===Y.path){var Ut,qt;const un=We.length>0?Ee(We).parameters:{},Tn=ss(Se)+We.length,hn=new Bn(We,un,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,nl(Y),Bt(Y),null!==(Ut=null!==(qt=Y.component)&&void 0!==qt?qt:Y._loadedComponent)&&void 0!==Ut?Ut:null,Y,ro(Se),Tn,hr(Y),Tn);Pt=(0,R.of)({snapshot:hn,consumedSegments:[],remainingSegments:[]})}else Pt=ns(Se,Y,We,de).pipe((0,le.U)(({matched:un,consumedSegments:Tn,remainingSegments:hn,parameters:Dn})=>{var fi,Li;if(!un)return null;const rr=ss(Se)+Tn.length;return{snapshot:new Bn(Tn,Dn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,nl(Y),Bt(Y),null!==(fi=null!==(Li=Y.component)&&void 0!==Li?Li:Y._loadedComponent)&&void 0!==fi?fi:null,Y,ro(Se),rr,hr(Y),rr),consumedSegments:Tn,remainingSegments:hn}}));return Pt.pipe((0,ye.w)(un=>{var Tn,hn;if(null===un)return(0,R.of)(null);const{snapshot:Dn,consumedSegments:fi,remainingSegments:Li}=un;de=null!==(Tn=Y._injector)&&void 0!==Tn?Tn:de;const rr=null!==(hn=Y._loadedInjector)&&void 0!==hn?hn:de,Mr=function Fa(re){return re.children?re.children:re.loadChildren?re._loadedRoutes:[]}(Y),{segmentGroup:xr,slicedSegments:sa}=Yr(Se,fi,Li,Mr.filter(Mi=>void 0===Mi.redirectTo),this.relativeLinkResolution);if(0===sa.length&&xr.hasChildren())return this.processChildren(rr,Mr,xr).pipe((0,le.U)(Mi=>null===Mi?null:[new Ii(Dn,Mi)]));if(0===Mr.length&&0===sa.length)return(0,R.of)([new Ii(Dn,[])]);const Fr=Bt(Y)===gt;return this.processSegment(rr,Mr,xr,sa,Fr?ot:gt).pipe((0,le.U)(Mi=>null===Mi?null:[new Ii(Dn,Mi)]))}))}}function Po(re){const de=re.value.routeConfig;return de&&""===de.path&&void 0===de.redirectTo}function os(re){const de=[],Y=new Set;for(const Se of re){if(!Po(Se)){de.push(Se);continue}const We=de.find(gt=>Se.value.routeConfig===gt.value.routeConfig);void 0!==We?(We.children.push(...Se.children),Y.add(We)):de.push(Se)}for(const Se of Y){const We=os(Se.children);de.push(new Ii(Se.value,We))}return de.filter(Se=>!Y.has(Se))}function ro(re){let de=re;for(;de._sourceSegment;)de=de._sourceSegment;return de}function ss(re){var de;let Y=re,Se=null!==(de=Y._segmentIndexShift)&&void 0!==de?de:0;for(;Y._sourceSegment;){var We;Y=Y._sourceSegment,Se+=null!==(We=Y._segmentIndexShift)&&void 0!==We?We:0}return Se-1}function nl(re){return re.data||{}}function hr(re){return re.resolve||{}}const Jr=Symbol("RouteTitle");function cs(re){return"string"==typeof re.title||null===re.title}function Sr(re){return(0,ye.w)(de=>{const Y=re(de);return Y?(0,T.D)(Y).pipe((0,le.U)(()=>de)):(0,R.of)(de)})}let lo=(()=>{class re{buildTitle(Y){let Se,We=Y.root;for(;void 0!==We;){var gt;Se=null!==(gt=this.getResolvedTitleForRoute(We))&&void 0!==gt?gt:Se,We=We.children.find(Pt=>Pt.outlet===ot)}return Se}getResolvedTitleForRoute(Y){return Y.data[Jr]}}return re.\u0275fac=function(Y){return new(Y||re)},re.\u0275prov=e.Yz7({token:re,factory:function(){return(0,e.f3M)(Ca)},providedIn:"root"}),re})(),Ca=(()=>{class re extends lo{constructor(Y){super(),this.title=Y}updateTitle(Y){const Se=this.buildTitle(Y);void 0!==Se&&this.title.setTitle(Se)}}return re.\u0275fac=function(Y){return new(Y||re)(e.LFG(Me.Dx))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();class ds{}class ir extends class Oo{shouldDetach(de){return!1}store(de,Y){}shouldAttach(de){return!1}retrieve(de){return null}shouldReuseRoute(de,Y){return de.routeConfig===Y.routeConfig}}{}const pr=new e.OlP("",{providedIn:"root",factory:()=>({})}),Qr=new e.OlP("ROUTES");let Za=(()=>{class re{constructor(Y,Se){this.injector=Y,this.compiler=Se,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(Y){if(this.componentLoaders.get(Y))return this.componentLoaders.get(Y);if(Y._loadedComponent)return(0,R.of)(Y._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(Y);const Se=Ne(Y.loadComponent()).pipe((0,ce.b)(gt=>{this.onLoadEndListener&&this.onLoadEndListener(Y),Y._loadedComponent=gt}),(0,W.x)(()=>{this.componentLoaders.delete(Y)})),We=new D(Se,()=>new Oe.x).pipe(b());return this.componentLoaders.set(Y,We),We}loadChildren(Y,Se){if(this.childrenLoaders.get(Se))return this.childrenLoaders.get(Se);if(Se._loadedRoutes)return(0,R.of)({routes:Se._loadedRoutes,injector:Se._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Se);const gt=this.loadModuleFactoryOrRoutes(Se.loadChildren).pipe((0,le.U)(Ut=>{this.onLoadEndListener&&this.onLoadEndListener(Se);let qt,un,Tn=!1;Array.isArray(Ut)?un=Ut:(qt=Ut.create(Y).injector,un=Ae(qt.get(Qr,[],e.XFs.Self|e.XFs.Optional)));return{routes:un.map(Ct),injector:qt}}),(0,W.x)(()=>{this.childrenLoaders.delete(Se)})),Pt=new D(gt,()=>new Oe.x).pipe(b());return this.childrenLoaders.set(Se,Pt),Pt}loadModuleFactoryOrRoutes(Y){return Ne(Y()).pipe((0,Ke.z)(Se=>Se instanceof e.YKP||Array.isArray(Se)?(0,R.of)(Se):(0,T.D)(this.compiler.compileModuleAsync(Se))))}}return re.\u0275fac=function(Y){return new(Y||re)(e.LFG(e.zs3),e.LFG(e.Sil))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();class co{}class ra{shouldProcessUrl(de){return!0}extract(de){return de}merge(de,Y){return de}}function il(re){throw re}function uo(re,de,Y){return de.parse("/")}const hs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ho={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function fs(){var re,de;const Y=(0,e.f3M)($),Se=(0,e.f3M)(bi),We=(0,e.f3M)(_e.Ye),gt=(0,e.f3M)(e.zs3),Pt=(0,e.f3M)(e.Sil),Ut=null!==(re=(0,e.f3M)(Qr,{optional:!0}))&&void 0!==re?re:[],qt=null!==(de=(0,e.f3M)(pr,{optional:!0}))&&void 0!==de?de:{},un=(0,e.f3M)(Ca),Tn=(0,e.f3M)(lo,{optional:!0}),hn=(0,e.f3M)(co,{optional:!0}),Dn=(0,e.f3M)(ds,{optional:!0}),fi=new Di(null,Y,Se,We,gt,Pt,Ae(Ut));return hn&&(fi.urlHandlingStrategy=hn),Dn&&(fi.routeReuseStrategy=Dn),fi.titleStrategy=Tn??un,function ps(re,de){re.errorHandler&&(de.errorHandler=re.errorHandler),re.malformedUriErrorHandler&&(de.malformedUriErrorHandler=re.malformedUriErrorHandler),re.onSameUrlNavigation&&(de.onSameUrlNavigation=re.onSameUrlNavigation),re.paramsInheritanceStrategy&&(de.paramsInheritanceStrategy=re.paramsInheritanceStrategy),re.relativeLinkResolution&&(de.relativeLinkResolution=re.relativeLinkResolution),re.urlUpdateStrategy&&(de.urlUpdateStrategy=re.urlUpdateStrategy),re.canceledNavigationResolution&&(de.canceledNavigationResolution=re.canceledNavigationResolution)}(qt,fi),fi}let Di=(()=>{class re{constructor(Y,Se,We,gt,Pt,Ut,qt){this.rootComponentType=Y,this.urlSerializer=Se,this.rootContexts=We,this.location=gt,this.config=qt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Oe.x,this.errorHandler=il,this.malformedUriErrorHandler=uo,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,R.of)(void 0),this.urlHandlingStrategy=new ra,this.routeReuseStrategy=new ir,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=Pt.get(Za),this.configLoader.onLoadEndListener=Dn=>this.triggerEvent(new lr(Dn)),this.configLoader.onLoadStartListener=Dn=>this.triggerEvent(new sr(Dn)),this.ngModule=Pt.get(e.h0i),this.console=Pt.get(e.c2e);const hn=Pt.get(e.R0b);this.isNgZoneEnabled=hn instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(qt),this.currentUrlTree=function fe(){return new o(new s([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ct(this.currentUrlTree,this.rootComponentType),this.transitions=new B.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var Y;return null===(Y=this.location.getState())||void 0===Y?void 0:Y.\u0275routerPageId}setupNavigations(Y){const Se=this.events;return Y.pipe((0,z.h)(We=>0!==We.id),(0,le.U)(We=>({...We,extractedUrl:this.urlHandlingStrategy.extract(We.rawUrl)})),(0,ye.w)(We=>{let gt=!1,Pt=!1;return(0,R.of)(We).pipe((0,ce.b)(Ut=>{this.currentNavigation={id:Ut.id,initialUrl:Ut.rawUrl,extractedUrl:Ut.extractedUrl,trigger:Ut.source,extras:Ut.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ye.w)(Ut=>{const qt=this.browserUrlTree.toString(),un=!this.navigated||Ut.extractedUrl.toString()!==qt||qt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||un)&&this.urlHandlingStrategy.shouldProcessUrl(Ut.rawUrl))return Lo(Ut.source)&&(this.browserUrlTree=Ut.extractedUrl),(0,R.of)(Ut).pipe((0,ye.w)(hn=>{const Dn=this.transitions.getValue();return Se.next(new zi(hn.id,this.serializeUrl(hn.extractedUrl),hn.source,hn.restoredState)),Dn!==this.transitions.getValue()?se.E:Promise.resolve(hn)}),function to(re,de,Y,Se){return(0,ye.w)(We=>function Xs(re,de,Y,Se,We){return new el(re,de,Y,Se,We).apply()}(re,de,Y,We.extractedUrl,Se).pipe((0,le.U)(gt=>({...We,urlAfterRedirects:gt}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,ce.b)(hn=>{this.currentNavigation={...this.currentNavigation,finalUrl:hn.urlAfterRedirects},We.urlAfterRedirects=hn.urlAfterRedirects}),function _a(re,de,Y,Se,We,gt){return(0,Ke.z)(Pt=>function as(re,de,Y,Se,We,gt,Pt="emptyOnly",Ut="legacy"){return new tl(re,de,Y,Se,We,Pt,Ut,gt).recognize().pipe((0,ye.w)(qt=>null===qt?function io(re){return new A.y(de=>de.error(re))}(new no):(0,R.of)(qt)))}(re,de,Y,Pt.urlAfterRedirects,Se.serialize(Pt.urlAfterRedirects),Se,We,gt).pipe((0,le.U)(Ut=>({...Pt,targetSnapshot:Ut}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,ce.b)(hn=>{if(We.targetSnapshot=hn.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!hn.extras.skipLocationChange){const fi=this.urlHandlingStrategy.merge(hn.urlAfterRedirects,hn.rawUrl);this.setBrowserUrl(fi,hn)}this.browserUrlTree=hn.urlAfterRedirects}const Dn=new tr(hn.id,this.serializeUrl(hn.extractedUrl),this.serializeUrl(hn.urlAfterRedirects),hn.targetSnapshot);Se.next(Dn)}));if(un&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Dn,extractedUrl:fi,source:Li,restoredState:rr,extras:Mr}=Ut,xr=new zi(Dn,this.serializeUrl(fi),Li,rr);Se.next(xr);const sa=ct(fi,this.rootComponentType).snapshot;return We={...Ut,targetSnapshot:sa,urlAfterRedirects:fi,extras:{...Mr,skipLocationChange:!1,replaceUrl:!1}},(0,R.of)(We)}return this.rawUrlTree=Ut.rawUrl,Ut.resolve(null),se.E}),(0,ce.b)(Ut=>{const qt=new Vi(Ut.id,this.serializeUrl(Ut.extractedUrl),this.serializeUrl(Ut.urlAfterRedirects),Ut.targetSnapshot);this.triggerEvent(qt)}),(0,le.U)(Ut=>We={...Ut,guards:Gn(Ut.targetSnapshot,Ut.currentSnapshot,this.rootContexts)}),function $i(re,de){return(0,Ke.z)(Y=>{const{targetSnapshot:Se,currentSnapshot:We,guards:{canActivateChecks:gt,canDeactivateChecks:Pt}}=Y;return 0===Pt.length&&0===gt.length?(0,R.of)({...Y,guardsResult:!0}):function ga(re,de,Y,Se){return(0,T.D)(re).pipe((0,Ke.z)(We=>function Js(re,de,Y,Se,We){const gt=de&&de.routeConfig?de.routeConfig.canDeactivate:null;if(!gt||0===gt.length)return(0,R.of)(!0);const Pt=gt.map(Ut=>{const qt=ei(Ut,de,We);return Ne(function Fe(re){return re&&ji(re.canDeactivate)}(qt)?qt.canDeactivate(re,de,Y,Se):qt(re,de,Y,Se)).pipe((0,Ue.P)())});return(0,R.of)(Pt).pipe(ai())}(We.component,We.route,Y,de,Se)),(0,Ue.P)(We=>!0!==We,!0))}(Pt,Se,We,re).pipe((0,Ke.z)(Ut=>Ut&&function ui(re){return"boolean"==typeof re}(Ut)?function ur(re,de,Y,Se){return(0,T.D)(de).pipe((0,oe.b)(We=>(0,O.z)(function Mo(re,de){return null!==re&&de&&de(new Ci(re)),(0,R.of)(!0)}(We.route.parent,Se),function yr(re,de){return null!==re&&de&&de(new Ur(re)),(0,R.of)(!0)}(We.route,Se),function qs(re,de,Y){const Se=de[de.length-1],gt=de.slice(0,de.length-1).reverse().map(Pt=>function Ti(re){const de=re.routeConfig?re.routeConfig.canActivateChild:null;return de&&0!==de.length?{node:re,guards:de}:null}(Pt)).filter(Pt=>null!==Pt).map(Pt=>(0,J.P)(()=>{const Ut=Pt.guards.map(qt=>{const un=ei(qt,Pt.node,Y);return Ne(function Je(re){return re&&ji(re.canActivateChild)}(un)?un.canActivateChild(Se,re):un(Se,re)).pipe((0,Ue.P)())});return(0,R.of)(Ut).pipe(ai())}));return(0,R.of)(gt).pipe(ai())}(re,We.path,Y),function Na(re,de,Y){const Se=de.routeConfig?de.routeConfig.canActivate:null;if(!Se||0===Se.length)return(0,R.of)(!0);const We=Se.map(gt=>(0,J.P)(()=>{const Pt=ei(gt,de,Y);return Ne(function Lr(re){return re&&ji(re.canActivate)}(Pt)?Pt.canActivate(de,re):Pt(de,re)).pipe((0,Ue.P)())}));return(0,R.of)(We).pipe(ai())}(re,We.route,Y))),(0,Ue.P)(We=>!0!==We,!0))}(Se,gt,re,de):(0,R.of)(Ut)),(0,le.U)(Ut=>({...Y,guardsResult:Ut})))})}(this.ngModule.injector,Ut=>this.triggerEvent(Ut)),(0,ce.b)(Ut=>{if(We.guardsResult=Ut.guardsResult,Ge(Ut.guardsResult))throw Wt(0,Ut.guardsResult);const qt=new di(Ut.id,this.serializeUrl(Ut.extractedUrl),this.serializeUrl(Ut.urlAfterRedirects),Ut.targetSnapshot,!!Ut.guardsResult);this.triggerEvent(qt)}),(0,z.h)(Ut=>!!Ut.guardsResult||(this.restoreHistory(Ut),this.cancelNavigationTransition(Ut,"",3),!1)),Sr(Ut=>{if(Ut.guards.canActivateChecks.length)return(0,R.of)(Ut).pipe((0,ce.b)(qt=>{const un=new or(qt.id,this.serializeUrl(qt.extractedUrl),this.serializeUrl(qt.urlAfterRedirects),qt.targetSnapshot);this.triggerEvent(un)}),(0,ye.w)(qt=>{let un=!1;return(0,R.of)(qt).pipe(function ao(re,de){return(0,Ke.z)(Y=>{const{targetSnapshot:Se,guards:{canActivateChecks:We}}=Y;if(!We.length)return(0,R.of)(Y);let gt=0;return(0,T.D)(We).pipe((0,oe.b)(Pt=>function oo(re,de,Y,Se){const We=re.routeConfig,gt=re._resolve;return void 0!==We?.title&&!cs(We)&&(gt[Jr]=We.title),function ls(re,de,Y,Se){const We=function so(re){return[...Object.keys(re),...Object.getOwnPropertySymbols(re)]}(re);if(0===We.length)return(0,R.of)({});const gt={};return(0,T.D)(We).pipe((0,Ke.z)(Pt=>function Aa(re,de,Y,Se){const We=ei(re,de,Se);return Ne(We.resolve?We.resolve(de,Y):We(de,Y))}(re[Pt],de,Y,Se).pipe((0,Ue.P)(),(0,ce.b)(Ut=>{gt[Pt]=Ut}))),F(1),(0,be.h)(gt),(0,k.K)(Pt=>_n(Pt)?se.E:(0,G._)(Pt)))}(gt,re,de,Se).pipe((0,le.U)(Pt=>(re._resolvedData=Pt,re.data=rn(re,Y).resolve,We&&cs(We)&&(re.data[Jr]=We.title),null)))}(Pt.route,Se,re,de)),(0,ce.b)(()=>gt++),F(1),(0,Ke.z)(Pt=>gt===We.length?(0,R.of)(Y):se.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,ce.b)({next:()=>un=!0,complete:()=>{un||(this.restoreHistory(qt),this.cancelNavigationTransition(qt,"",2))}}))}),(0,ce.b)(qt=>{const un=new Ir(qt.id,this.serializeUrl(qt.extractedUrl),this.serializeUrl(qt.urlAfterRedirects),qt.targetSnapshot);this.triggerEvent(un)}))}),Sr(Ut=>{const qt=un=>{var Tn;const hn=[];null!==(Tn=un.routeConfig)&&void 0!==Tn&&Tn.loadComponent&&!un.routeConfig._loadedComponent&&hn.push(this.configLoader.loadComponent(un.routeConfig).pipe((0,ce.b)(Dn=>{un.component=Dn}),(0,le.U)(()=>{})));for(const Dn of un.children)hn.push(...qt(Dn));return hn};return(0,H.a)(qt(Ut.targetSnapshot.root)).pipe((0,X.d)(),(0,Ve.q)(1))}),Sr(()=>this.afterPreactivation()),(0,le.U)(Ut=>{const qt=function qi(re,de,Y){const Se=lt(re,de._root,Y?Y._root:void 0);return new en(Se,de)}(this.routeReuseStrategy,Ut.targetSnapshot,Ut.currentRouterState);return We={...Ut,targetRouterState:qt}}),(0,ce.b)(Ut=>{this.currentUrlTree=Ut.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Ut.urlAfterRedirects,Ut.rawUrl),this.routerState=Ut.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Ut.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Ut),this.browserUrlTree=Ut.urlAfterRedirects)}),((re,de,Y)=>(0,le.U)(Se=>(new ri(de,Se.targetRouterState,Se.currentRouterState,Y).activate(re),Se)))(this.rootContexts,this.routeReuseStrategy,Ut=>this.triggerEvent(Ut)),(0,ce.b)({next(){gt=!0},complete(){gt=!0}}),(0,W.x)(()=>{var Ut;gt||Pt||this.cancelNavigationTransition(We,"",1),(null===(Ut=this.currentNavigation)||void 0===Ut?void 0:Ut.id)===We.id&&(this.currentNavigation=null)}),(0,k.K)(Ut=>{if(Pt=!0,Yn(Ut)){An(Ut)||(this.navigated=!0,this.restoreHistory(We,!0));const un=new ci(We.id,this.serializeUrl(We.extractedUrl),Ut.message,Ut.cancellationCode);if(Se.next(un),An(Ut)){const Tn=this.urlHandlingStrategy.merge(Ut.url,this.rawUrlTree),hn={skipLocationChange:We.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Lo(We.source)};this.scheduleNavigation(Tn,"imperative",null,hn,{resolve:We.resolve,reject:We.reject,promise:We.promise})}else We.resolve(!1)}else{var qt;this.restoreHistory(We,!0);const un=new Yi(We.id,this.serializeUrl(We.extractedUrl),Ut,null!==(qt=We.targetSnapshot)&&void 0!==qt?qt:void 0);Se.next(un);try{We.resolve(this.errorHandler(Ut))}catch(Tn){We.reject(Tn)}}return se.E}))}))}resetRootComponentType(Y){this.rootComponentType=Y,this.routerState.root.component=this.rootComponentType}setTransition(Y){this.transitions.next({...this.transitions.value,...Y})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(Y=>{const Se="popstate"===Y.type?"popstate":"hashchange";"popstate"===Se&&setTimeout(()=>{var We;const gt={replaceUrl:!0},Pt=null!==(We=Y.state)&&void 0!==We&&We.navigationId?Y.state:null;if(Pt){const qt={...Pt};delete qt.navigationId,delete qt.\u0275routerPageId,0!==Object.keys(qt).length&&(gt.state=qt)}const Ut=this.parseUrl(Y.url);this.scheduleNavigation(Ut,Se,Pt,gt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(Y){this.events.next(Y)}resetConfig(Y){this.config=Y.map(Ct),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(Y,Se={}){const{relativeTo:We,queryParams:gt,fragment:Pt,queryParamsHandling:Ut,preserveFragment:qt}=Se,un=We||this.routerState.root,Tn=qt?this.currentUrlTree.fragment:Pt;let hn=null;switch(Ut){case"merge":hn={...this.currentUrlTree.queryParams,...gt};break;case"preserve":hn=this.currentUrlTree.queryParams;break;default:hn=gt||null}return null!==hn&&(hn=this.removeEmptyProps(hn)),gn(un,this.currentUrlTree,Y,hn,Tn??null)}navigateByUrl(Y,Se={skipLocationChange:!1}){const We=Ge(Y)?Y:this.parseUrl(Y),gt=this.urlHandlingStrategy.merge(We,this.rawUrlTree);return this.scheduleNavigation(gt,"imperative",null,Se)}navigate(Y,Se={skipLocationChange:!1}){return function Ga(re){for(let de=0;de{const gt=Y[We];return null!=gt&&(Se[We]=gt),Se},{})}processNavigations(){this.navigations.subscribe(Y=>{var Se;this.navigated=!0,this.lastSuccessfulId=Y.id,this.currentPageId=Y.targetPageId,this.events.next(new qn(Y.id,this.serializeUrl(Y.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(Se=this.titleStrategy)||void 0===Se||Se.updateTitle(this.routerState.snapshot),Y.resolve(!0)},Y=>{this.console.warn(`Unhandled Navigation Error: ${Y}`)})}scheduleNavigation(Y,Se,We,gt,Pt){if(this.disposed)return Promise.resolve(!1);let Ut,qt,un;Pt?(Ut=Pt.resolve,qt=Pt.reject,un=Pt.promise):un=new Promise((Li,rr)=>{Ut=Li,qt=rr});const Tn=++this.navigationId;let hn;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(We=this.location.getState()),We&&We.\u0275routerPageId)hn=We.\u0275routerPageId;else if(gt.replaceUrl||gt.skipLocationChange){var Dn;hn=null!==(Dn=this.browserPageId)&&void 0!==Dn?Dn:0}else{var fi;hn=(null!==(fi=this.browserPageId)&&void 0!==fi?fi:0)+1}else hn=0;return this.setTransition({id:Tn,targetPageId:hn,source:Se,restoredState:We,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:Y,extras:gt,resolve:Ut,reject:qt,promise:un,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),un.catch(Li=>Promise.reject(Li))}setBrowserUrl(Y,Se){const We=this.urlSerializer.serialize(Y),gt={...Se.extras.state,...this.generateNgRouterState(Se.id,Se.targetPageId)};this.location.isCurrentPathEqualTo(We)||Se.extras.replaceUrl?this.location.replaceState(We,"",gt):this.location.go(We,"",gt)}restoreHistory(Y,Se=!1){if("computed"===this.canceledNavigationResolution){var We,gt;const Pt=this.currentPageId-Y.targetPageId;"popstate"!==Y.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(We=this.currentNavigation)||void 0===We?void 0:We.finalUrl)||0===Pt?this.currentUrlTree===(null===(gt=this.currentNavigation)||void 0===gt?void 0:gt.finalUrl)&&0===Pt&&(this.resetState(Y),this.browserUrlTree=Y.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Pt)}else"replace"===this.canceledNavigationResolution&&(Se&&this.resetState(Y),this.resetUrlToCurrentUrlTree())}resetState(Y){this.routerState=Y.currentRouterState,this.currentUrlTree=Y.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,Y.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(Y,Se,We){const gt=new ci(Y.id,this.serializeUrl(Y.extractedUrl),Se,We);this.triggerEvent(gt),Y.resolve(!1)}generateNgRouterState(Y,Se){return"computed"===this.canceledNavigationResolution?{navigationId:Y,\u0275routerPageId:Se}:{navigationId:Y}}}return re.\u0275fac=function(Y){e.$Z()},re.\u0275prov=e.Yz7({token:re,factory:function(){return fs()},providedIn:"root"}),re})();function Lo(re){return"imperative"!==re}let Kr=(()=>{class re{constructor(Y,Se,We,gt,Pt){this.router=Y,this.route=Se,this.tabIndexAttribute=We,this.renderer=gt,this.el=Pt,this.commands=null,this.onChanges=new Oe.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(Y){if(null!=this.tabIndexAttribute)return;const Se=this.renderer,We=this.el.nativeElement;null!==Y?Se.setAttribute(We,"tabindex",Y):Se.removeAttribute(We,"tabindex")}ngOnChanges(Y){this.onChanges.next(this)}set routerLink(Y){null!=Y?(this.commands=Array.isArray(Y)?Y:[Y],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const Y={skipLocationChange:(0,e.D6c)(this.skipLocationChange),replaceUrl:(0,e.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Y),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,e.D6c)(this.preserveFragment)})}}return re.\u0275fac=function(Y){return new(Y||re)(e.Y36(Di),e.Y36(Zt),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},re.\u0275dir=e.lG2({type:re,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(Y,Se){1&Y&&e.NdJ("click",function(){return Se.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),re})(),va=(()=>{class re{constructor(Y,Se,We){this.router=Y,this.route=Se,this.locationStrategy=We,this.commands=null,this.href=null,this.onChanges=new Oe.x,this.subscription=Y.events.subscribe(gt=>{gt instanceof qn&&this.updateTargetUrlAndHref()})}set routerLink(Y){this.commands=null!=Y?Array.isArray(Y)?Y:[Y]:null}ngOnChanges(Y){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(Y,Se,We,gt,Pt){if(0!==Y||Se||We||gt||Pt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Ut={skipLocationChange:(0,e.D6c)(this.skipLocationChange),replaceUrl:(0,e.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Ut),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,e.D6c)(this.preserveFragment)})}}return re.\u0275fac=function(Y){return new(Y||re)(e.Y36(Di),e.Y36(Zt),e.Y36(_e.S$))},re.\u0275dir=e.lG2({type:re,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(Y,Se){1&Y&&e.NdJ("click",function(gt){return Se.onClick(gt.button,gt.ctrlKey,gt.shiftKey,gt.altKey,gt.metaKey)}),2&Y&&e.uIk("target",Se.target)("href",Se.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),re})();class Bo{}let rl=(()=>{class re{preload(Y,Se){return(0,R.of)(null)}}return re.\u0275fac=function(Y){return new(Y||re)},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})(),Uo=(()=>{class re{constructor(Y,Se,We,gt,Pt){this.router=Y,this.injector=We,this.preloadingStrategy=gt,this.loader=Pt}setUpPreloading(){this.subscription=this.router.events.pipe((0,z.h)(Y=>Y instanceof qn),(0,oe.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(Y,Se){const We=[];for(const qt of Se){var gt,Pt;qt.providers&&!qt._injector&&(qt._injector=(0,e.MMx)(qt.providers,Y,`Route: ${qt.path}`));const un=null!==(gt=qt._injector)&&void 0!==gt?gt:Y,Tn=null!==(Pt=qt._loadedInjector)&&void 0!==Pt?Pt:un;if(qt.loadChildren&&!qt._loadedRoutes&&void 0===qt.canLoad||qt.loadComponent&&!qt._loadedComponent)We.push(this.preloadConfig(un,qt));else if(qt.children||qt._loadedRoutes){var Ut;We.push(this.processRoutes(Tn,null!==(Ut=qt.children)&&void 0!==Ut?Ut:qt._loadedRoutes))}}return(0,T.D)(We).pipe((0,ue.J)())}preloadConfig(Y,Se){return this.preloadingStrategy.preload(Se,()=>{let We;We=Se.loadChildren&&void 0===Se.canLoad?this.loader.loadChildren(Y,Se):(0,R.of)(null);const gt=We.pipe((0,Ke.z)(Pt=>{var Ut;return null===Pt?(0,R.of)(void 0):(Se._loadedRoutes=Pt.routes,Se._loadedInjector=Pt.injector,this.processRoutes(null!==(Ut=Pt.injector)&&void 0!==Ut?Ut:Y,Pt.routes))}));if(Se.loadComponent&&!Se._loadedComponent){const Pt=this.loader.loadComponent(Se);return(0,T.D)([gt,Pt]).pipe((0,ue.J)())}return gt})}}return re.\u0275fac=function(Y){return new(Y||re)(e.LFG(Di),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(Bo),e.LFG(Za))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac}),re})();const ho=new e.OlP("");let Ta=(()=>{class re{constructor(Y,Se,We={}){this.router=Y,this.viewportScroller=Se,this.options=We,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},We.scrollPositionRestoration=We.scrollPositionRestoration||"disabled",We.anchorScrolling=We.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(Y=>{Y instanceof zi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=Y.navigationTrigger,this.restoredId=Y.restoredState?Y.restoredState.navigationId:0):Y instanceof qn&&(this.lastId=Y.id,this.scheduleScrollEvent(Y,this.router.parseUrl(Y.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(Y=>{Y instanceof Or&&(Y.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(Y.position):Y.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(Y.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(Y,Se){this.router.triggerEvent(new Or(Y,"popstate"===this.lastSource?this.store[this.restoredId]:null,Se))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return re.\u0275fac=function(Y){e.$Z()},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac}),re})();const po=new e.OlP("ROUTER_FORROOT_GUARD"),fo=new e.OlP(""),Wa=[_e.Ye,{provide:$,useClass:ht},{provide:Di,useFactory:fs},bi,{provide:Zt,useFactory:function Gc(re){return re.routerState.root},deps:[Di]},Za];function Ul(){return new e.PXZ("Router",Di)}let si=(()=>{class re{constructor(Y){}static forRoot(Y,Se){return{ngModule:re,providers:[Wa,[],al(Y),{provide:po,useFactory:Fl,deps:[[Di,new e.FiY,new e.tp0]]},{provide:pr,useValue:Se||{}},null!=Se&&Se.useHash?{provide:_e.S$,useClass:_e.Do}:{provide:_e.S$,useClass:_e.b0},{provide:ho,useFactory:()=>{const re=(0,e.f3M)(Di),de=(0,e.f3M)(_e.EM),Y=(0,e.f3M)(pr);return Y.scrollOffset&&de.setOffset(Y.scrollOffset),new Ta(re,de,Y)}},null!=Se&&Se.preloadingStrategy?ll(Se.preloadingStrategy):[],{provide:e.PXZ,multi:!0,useFactory:Ul},null!=Se&&Se.initialNavigation?za(Se):[],[{provide:ol,useFactory:jl},{provide:e.tb,multi:!0,useExisting:ol}]]}}static forChild(Y){return{ngModule:re,providers:[al(Y)]}}}return re.\u0275fac=function(Y){return new(Y||re)(e.LFG(po,8))},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})();function Fl(re){return"guarded"}function al(re){return[{provide:Qr,multi:!0,useValue:re}]}function jl(){const re=(0,e.f3M)(e.zs3);return de=>{var Y,Se;const We=re.get(e.z2F);if(de!==We.components[0])return;const gt=re.get(Di),Pt=re.get(sl);1===re.get(Ya)&>.initialNavigation(),null===(Y=re.get(fo,null,e.XFs.Optional))||void 0===Y||Y.setUpPreloading(),null===(Se=re.get(ho,null,e.XFs.Optional))||void 0===Se||Se.init(),gt.resetRootComponentType(We.componentTypes[0]),Pt.next(),Pt.complete()}}const ol=new e.OlP("");function za(re){return["disabled"===re.initialNavigation?[{provide:e.ip1,multi:!0,useFactory:()=>{const re=(0,e.f3M)(Di);return()=>{re.setUpLocationChangeListener()}}},{provide:Ya,useValue:2}]:[],"enabledBlocking"===re.initialNavigation?[{provide:Ya,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:re=>{const de=re.get(_e.V_,Promise.resolve(null));let Y=!1;return()=>de.then(()=>new Promise(We=>{const gt=re.get(Di),Pt=re.get(sl);(function Se(We){re.get(Di).events.pipe((0,z.h)(Pt=>Pt instanceof qn||Pt instanceof ci||Pt instanceof Yi),(0,le.U)(Pt=>Pt instanceof qn||Pt instanceof ci&&(0===Pt.code||1===Pt.code)&&null),(0,z.h)(Pt=>null!==Pt),(0,Ve.q)(1)).subscribe(()=>{We()})})(()=>{We(!0),Y=!0}),gt.afterPreactivation=()=>(We(!0),Y||Pt.closed?(0,R.of)(void 0):Pt),gt.initialNavigation()}))}}]:[]]}const sl=new e.OlP("",{factory:()=>new Oe.x}),Ya=new e.OlP("",{providedIn:"root",factory:()=>1});function ll(re){return[Uo,{provide:fo,useExisting:Uo},{provide:Bo,useExisting:re}]}},89383:($e,he,p)=>{"use strict";p.d(he,{X$:()=>ve,Zw:()=>H,aw:()=>Ke,sK:()=>ye});var e=p(94650),A=p(39646),C=p(45191),M=p(4128),f=p(97272),b=p(49770),D=p(95698),T=p(34782),R=p(54004),B=p(24351),w=p(63900);class H{}let O=(()=>{class Ue extends H{getTranslation(ce){return(0,A.of)({})}}return Ue.\u0275fac=function(){let oe;return function(k){return(oe||(oe=e.n5z(Ue)))(k||Ue)}}(),Ue.\u0275prov=e.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})();class J{}let ne=(()=>{class Ue{handle(ce){return ce.key}}return Ue.\u0275fac=function(ce){return new(ce||Ue)},Ue.\u0275prov=e.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})();function G(Ue,oe){if(Ue===oe)return!0;if(null===Ue||null===oe)return!1;if(Ue!=Ue&&oe!=oe)return!0;let N,be,W,ce=typeof Ue;if(ce==typeof oe&&"object"==ce){if(!Array.isArray(Ue)){if(Array.isArray(oe))return!1;for(be in W=Object.create(null),Ue){if(!G(Ue[be],oe[be]))return!1;W[be]=!0}for(be in oe)if(!(be in W)&&typeof oe[be]<"u")return!1;return!0}if(!Array.isArray(oe))return!1;if((N=Ue.length)==oe.length){for(be=0;be{Oe(oe[k])?k in Ue?ce[k]=_e(Ue[k],oe[k]):Object.assign(ce,{[k]:oe[k]}):Object.assign(ce,{[k]:oe[k]})}),ce}class Be{}let E=(()=>{class Ue extends Be{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(ce,k){let N;return N="string"==typeof ce?this.interpolateString(ce,k):"function"==typeof ce?this.interpolateFunction(ce,k):ce,N}getValue(ce,k){let N="string"==typeof k?k.split("."):[k];k="";do{k+=N.shift(),!se(ce)||!se(ce[k])||"object"!=typeof ce[k]&&N.length?N.length?k+=".":ce=void 0:(ce=ce[k],k="")}while(N.length);return ce}interpolateFunction(ce,k){return ce(k)}interpolateString(ce,k){return k?ce.replace(this.templateMatcher,(N,be)=>{let W=this.getValue(k,be);return se(W)?W:N}):ce}}return Ue.\u0275fac=function(){let oe;return function(k){return(oe||(oe=e.n5z(Ue)))(k||Ue)}}(),Ue.\u0275prov=e.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})();class z{}let F=(()=>{class Ue extends z{compile(ce,k){return ce}compileTranslations(ce,k){return ce}}return Ue.\u0275fac=function(){let oe;return function(k){return(oe||(oe=e.n5z(Ue)))(k||Ue)}}(),Ue.\u0275prov=e.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})();class V{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new e.vpe,this.onLangChange=new e.vpe,this.onDefaultLangChange=new e.vpe}}const X=new e.OlP("USE_STORE"),q=new e.OlP("USE_DEFAULT_LANG"),pe=new e.OlP("DEFAULT_LANGUAGE"),le=new e.OlP("USE_EXTEND");let ye=(()=>{class Ue{constructor(ce,k,N,be,W,ue=!0,Me=!1,ot=!1,je){this.store=ce,this.currentLoader=k,this.compiler=N,this.parser=be,this.missingTranslationHandler=W,this.useDefaultLang=ue,this.isolate=Me,this.extend=ot,this.pending=!1,this._onTranslationChange=new e.vpe,this._onLangChange=new e.vpe,this._onDefaultLangChange=new e.vpe,this._langs=[],this._translations={},this._translationRequests={},je&&this.setDefaultLang(je)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(ce){this.isolate?this._defaultLang=ce:this.store.defaultLang=ce}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(ce){this.isolate?this._currentLang=ce:this.store.currentLang=ce}get langs(){return this.isolate?this._langs:this.store.langs}set langs(ce){this.isolate?this._langs=ce:this.store.langs=ce}get translations(){return this.isolate?this._translations:this.store.translations}set translations(ce){this.isolate?this._translations=ce:this.store.translations=ce}setDefaultLang(ce){if(ce===this.defaultLang)return;let k=this.retrieveTranslations(ce);typeof k<"u"?(null==this.defaultLang&&(this.defaultLang=ce),k.pipe((0,D.q)(1)).subscribe(N=>{this.changeDefaultLang(ce)})):this.changeDefaultLang(ce)}getDefaultLang(){return this.defaultLang}use(ce){if(ce===this.currentLang)return(0,A.of)(this.translations[ce]);let k=this.retrieveTranslations(ce);return typeof k<"u"?(this.currentLang||(this.currentLang=ce),k.pipe((0,D.q)(1)).subscribe(N=>{this.changeLang(ce)}),k):(this.changeLang(ce),(0,A.of)(this.translations[ce]))}retrieveTranslations(ce){let k;return(typeof this.translations[ce]>"u"||this.extend)&&(this._translationRequests[ce]=this._translationRequests[ce]||this.getTranslation(ce),k=this._translationRequests[ce]),k}getTranslation(ce){this.pending=!0;const k=this.currentLoader.getTranslation(ce).pipe((0,T.d)(1),(0,D.q)(1));return this.loadingTranslations=k.pipe((0,R.U)(N=>this.compiler.compileTranslations(N,ce)),(0,T.d)(1),(0,D.q)(1)),this.loadingTranslations.subscribe({next:N=>{this.translations[ce]=this.extend&&this.translations[ce]?{...N,...this.translations[ce]}:N,this.updateLangs(),this.pending=!1},error:N=>{this.pending=!1}}),k}setTranslation(ce,k,N=!1){k=this.compiler.compileTranslations(k,ce),this.translations[ce]=(N||this.extend)&&this.translations[ce]?_e(this.translations[ce],k):k,this.updateLangs(),this.onTranslationChange.emit({lang:ce,translations:this.translations[ce]})}getLangs(){return this.langs}addLangs(ce){ce.forEach(k=>{-1===this.langs.indexOf(k)&&this.langs.push(k)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(ce,k,N){let be;if(k instanceof Array){let W={},ue=!1;for(let Me of k)W[Me]=this.getParsedResult(ce,Me,N),(0,C.b)(W[Me])&&(ue=!0);if(ue){const Me=k.map(ot=>(0,C.b)(W[ot])?W[ot]:(0,A.of)(W[ot]));return(0,M.D)(Me).pipe((0,R.U)(ot=>{let je={};return ot.forEach((ut,tt)=>{je[k[tt]]=ut}),je}))}return W}if(ce&&(be=this.parser.interpolate(this.parser.getValue(ce,k),N)),typeof be>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(be=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],k),N)),typeof be>"u"){let W={key:k,translateService:this};typeof N<"u"&&(W.interpolateParams=N),be=this.missingTranslationHandler.handle(W)}return typeof be<"u"?be:k}get(ce,k){if(!se(ce)||!ce.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,B.b)(N=>(N=this.getParsedResult(N,ce,k),(0,C.b)(N)?N:(0,A.of)(N))));{let N=this.getParsedResult(this.translations[this.currentLang],ce,k);return(0,C.b)(N)?N:(0,A.of)(N)}}getStreamOnTranslationChange(ce,k){if(!se(ce)||!ce.length)throw new Error('Parameter "key" required');return(0,f.z)((0,b.P)(()=>this.get(ce,k)),this.onTranslationChange.pipe((0,w.w)(N=>{const be=this.getParsedResult(N.translations,ce,k);return"function"==typeof be.subscribe?be:(0,A.of)(be)})))}stream(ce,k){if(!se(ce)||!ce.length)throw new Error('Parameter "key" required');return(0,f.z)((0,b.P)(()=>this.get(ce,k)),this.onLangChange.pipe((0,w.w)(N=>{const be=this.getParsedResult(N.translations,ce,k);return(0,C.b)(be)?be:(0,A.of)(be)})))}instant(ce,k){if(!se(ce)||!ce.length)throw new Error('Parameter "key" required');let N=this.getParsedResult(this.translations[this.currentLang],ce,k);if((0,C.b)(N)){if(ce instanceof Array){let be={};return ce.forEach((W,ue)=>{be[ce[ue]]=ce[ue]}),be}return ce}return N}set(ce,k,N=this.currentLang){this.translations[N][ce]=this.compiler.compile(k,N),this.updateLangs(),this.onTranslationChange.emit({lang:N,translations:this.translations[N]})}changeLang(ce){this.currentLang=ce,this.onLangChange.emit({lang:ce,translations:this.translations[ce]}),null==this.defaultLang&&this.changeDefaultLang(ce)}changeDefaultLang(ce){this.defaultLang=ce,this.onDefaultLangChange.emit({lang:ce,translations:this.translations[ce]})}reloadLang(ce){return this.resetLang(ce),this.getTranslation(ce)}resetLang(ce){this._translationRequests[ce]=void 0,this.translations[ce]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let ce=window.navigator.languages?window.navigator.languages[0]:null;return ce=ce||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof ce>"u"?void 0:(-1!==ce.indexOf("-")&&(ce=ce.split("-")[0]),-1!==ce.indexOf("_")&&(ce=ce.split("_")[0]),ce)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let ce=window.navigator.languages?window.navigator.languages[0]:null;return ce=ce||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,ce}}return Ue.\u0275fac=function(ce){return new(ce||Ue)(e.LFG(V),e.LFG(H),e.LFG(z),e.LFG(Be),e.LFG(J),e.LFG(q),e.LFG(X),e.LFG(le),e.LFG(pe))},Ue.\u0275prov=e.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})(),ve=(()=>{class Ue{constructor(ce,k){this.translate=ce,this._ref=k,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(ce,k,N){let be=W=>{this.value=void 0!==W?W:ce,this.lastKey=ce,this._ref.markForCheck()};if(N){let W=this.translate.getParsedResult(N,ce,k);(0,C.b)(W.subscribe)?W.subscribe(be):be(W)}this.translate.get(ce,k).subscribe(be)}transform(ce,...k){if(!ce||!ce.length)return ce;if(G(ce,this.lastKey)&&G(k,this.lastParams))return this.value;let N;if(se(k[0])&&k.length)if("string"==typeof k[0]&&k[0].length){let be=k[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{N=JSON.parse(be)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${k[0]}`)}}else"object"==typeof k[0]&&!Array.isArray(k[0])&&(N=k[0]);return this.lastKey=ce,this.lastParams=k,this.updateValue(ce,N),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(be=>{this.lastKey&&be.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(ce,N,be.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(be=>{this.lastKey&&(this.lastKey=null,this.updateValue(ce,N,be.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(ce,N))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return Ue.\u0275fac=function(ce){return new(ce||Ue)(e.Y36(ye,16),e.Y36(e.sBO,16))},Ue.\u0275pipe=e.Yjl({name:"translate",type:Ue,pure:!1}),Ue.\u0275prov=e.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})(),Ke=(()=>{class Ue{static forRoot(ce={}){return{ngModule:Ue,providers:[ce.loader||{provide:H,useClass:O},ce.compiler||{provide:z,useClass:F},ce.parser||{provide:Be,useClass:E},ce.missingTranslationHandler||{provide:J,useClass:ne},V,{provide:X,useValue:ce.isolate},{provide:q,useValue:ce.useDefaultLang},{provide:le,useValue:ce.extend},{provide:pe,useValue:ce.defaultLanguage},ye]}}static forChild(ce={}){return{ngModule:Ue,providers:[ce.loader||{provide:H,useClass:O},ce.compiler||{provide:z,useClass:F},ce.parser||{provide:Be,useClass:E},ce.missingTranslationHandler||{provide:J,useClass:ne},{provide:X,useValue:ce.isolate},{provide:q,useValue:ce.useDefaultLang},{provide:le,useValue:ce.extend},{provide:pe,useValue:ce.defaultLanguage},ye]}}}return Ue.\u0275fac=function(ce){return new(ce||Ue)},Ue.\u0275mod=e.oAB({type:Ue}),Ue.\u0275inj=e.cJS({}),Ue})()},51214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(15861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(94650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(36895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(80529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(77579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(39646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(32076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(54355),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(62843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(39841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(56451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(39300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(18505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(78372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(91005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(63900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(54004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(50590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(70262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(17414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(95698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(86099),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class $e extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return $e.\u0275fac=function(){let he;return function(e){return(he||(he=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z($e)))(e||$e)}}(),$e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:$e,factory:$e.\u0275fac}),$e})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class $e{constructor(){this.data=new Map}getItem(p){return this.data.get(p)}removeItem(p){this.data.delete(p)}setItem(p,e){this.data.set(p,e)}}return $e.\u0275fac=function(p){return new(p||$e)},$e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:$e,factory:$e.\u0275fac}),$e})();class ReceivedTokens{}class OAuthEvent{constructor(he){this.type=he}}class OAuthSuccessEvent extends OAuthEvent{constructor(he,p=null){super(he),this.info=p}}class OAuthInfoEvent extends OAuthEvent{constructor(he,p=null){super(he),this.info=p}}class OAuthErrorEvent extends OAuthEvent{constructor(he,p,e=null){super(he),this.reason=p,this.params=e}}function b64DecodeUnicode($e){const he=$e.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(he).split("").map(function(p){return"%"+("00"+p.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode($e){return btoa($e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(he){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=p=>{location.href=p},he&&Object.assign(this,he)}}class WebHttpUrlEncodingCodec{encodeKey(he){return encodeURIComponent(he)}encodeValue(he){return encodeURIComponent(he)}decodeKey(he){return decodeURIComponent(he)}decodeValue(he){return decodeURIComponent(he)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(he){var p=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let e=p.inferHashAlgorithm(he.idTokenHeader),A=yield p.calcHash(he.accessToken,e),M=base64UrlEncode(A.substr(0,A.length/2)),f=he.idTokenClaims.at_hash.replace(/=/g,"");return M!==f&&(console.error("exptected at_hash: "+M),console.error("actual at_hash: "+f)),M===f})()}inferHashAlgorithm(he){let p=he.alg;if(!p.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+p);return"sha-"+p.substr(2)}}let UrlHelperService=(()=>{class $e{getHashFragmentParams(p){let e=p||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const A=e.indexOf("?");return e=e.substr(A>-1?A+1:1),this.parseQueryString(e)}parseQueryString(p){const e={};let A,C,M,f,b,D,T;if(null===p)return e;A=p.split("&");for(let R=0;R>6,C[f++]=128|63&b):b<55296||b>=57344?(C[f++]=224|b>>12,C[f++]=128|b>>6&63,C[f++]=128|63&b):(b=65536+((1023&b)<<10|1023&$e.charCodeAt(++e)),C[f++]=240|b>>18,C[f++]=128|b>>12&63,C[f++]=128|b>>6&63,C[f++]=128|63&b);$e=C}else{if("object"!==A)throw new Error(ERROR);if(null===$e)throw new Error(ERROR);if(ARRAY_BUFFER&&$e.constructor===ArrayBuffer)$e=new Uint8Array($e);else if(!(Array.isArray($e)||ARRAY_BUFFER&&ArrayBuffer.isView($e)))throw new Error(ERROR)}$e.length>64&&($e=new Sha256(he,!0).update($e).array());var D=[],T=[];for(e=0;e<64;++e){var R=$e[e]||0;D[e]=92^R,T[e]=54^R}Sha256.call(this,he,p),this.update(T),this.oKeyPad=D,this.inner=!0,this.sharedMemory=p}Sha256.prototype.update=function($e){if(!this.finalized){var he,p=typeof $e;if("string"!==p){if("object"!==p)throw new Error(ERROR);if(null===$e)throw new Error(ERROR);if(ARRAY_BUFFER&&$e.constructor===ArrayBuffer)$e=new Uint8Array($e);else if(!(Array.isArray($e)||ARRAY_BUFFER&&ArrayBuffer.isView($e)))throw new Error(ERROR);he=!0}for(var e,C,A=0,M=$e.length,f=this.blocks;A>2]|=$e[A]<>2]|=e<>2]|=(192|e>>6)<>2]|=(128|63&e)<=57344?(f[C>>2]|=(224|e>>12)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<>2]|=(240|e>>18)<>2]|=(128|e>>12&63)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<=64?(this.block=f[16],this.start=C-64,this.hash(),this.hashed=!0):this.start=C}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var $e=this.blocks,he=this.lastByteIndex;$e[16]=this.block,$e[he>>2]|=EXTRA[3&he],this.block=$e[16],he>=56&&(this.hashed||this.hash(),$e[0]=this.block,$e[16]=$e[1]=$e[2]=$e[3]=$e[4]=$e[5]=$e[6]=$e[7]=$e[8]=$e[9]=$e[10]=$e[11]=$e[12]=$e[13]=$e[14]=$e[15]=0),$e[14]=this.hBytes<<3|this.bytes>>>29,$e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var D,w,J,ne,G,se,$e=this.h0,he=this.h1,p=this.h2,e=this.h3,A=this.h4,C=this.h5,M=this.h6,f=this.h7,b=this.blocks;for(D=16;D<64;++D)b[D]=b[D-16]+(((w=b[D-15])>>>7|w<<25)^(w>>>18|w<<14)^w>>>3)+b[D-7]+(((w=b[D-2])>>>17|w<<15)^(w>>>19|w<<13)^w>>>10)<<0;for(se=he&p,D=0;D<64;D+=4)this.first?(this.is224?(J=300032,f=(w=b[0]-1413257819)-150054599<<0,e=w+24177077<<0):(J=704751109,f=(w=b[0]-210244248)-1521486534<<0,e=w+143694565<<0),this.first=!1):(f=e+(w=f+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&C^~A&M)+K[D]+b[D])<<0,e=w+((($e>>>2|$e<<30)^($e>>>13|$e<<19)^($e>>>22|$e<<10))+((J=$e&he)^$e&p^se))<<0),M=p+(w=M+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&A^~f&C)+K[D+1]+b[D+1])<<0,p=w+(((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+((ne=e&$e)^e&he^J))<<0,C=he+(w=C+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&f^~M&A)+K[D+2]+b[D+2])<<0,he=w+(((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+((G=p&e)^p&$e^ne))<<0,A=$e+(w=A+((C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7))+(C&M^~C&f)+K[D+3]+b[D+3])<<0,$e=w+(((he>>>2|he<<30)^(he>>>13|he<<19)^(he>>>22|he<<10))+((se=he&p)^he&e^G))<<0;this.h0=this.h0+$e<<0,this.h1=this.h1+he<<0,this.h2=this.h2+p<<0,this.h3=this.h3+e<<0,this.h4=this.h4+A<<0,this.h5=this.h5+C<<0,this.h6=this.h6+M<<0,this.h7=this.h7+f<<0},Sha256.prototype.hex=function(){this.finalize();var $e=this.h0,he=this.h1,p=this.h2,e=this.h3,A=this.h4,C=this.h5,M=this.h6,f=this.h7,b=HEX_CHARS[$e>>28&15]+HEX_CHARS[$e>>24&15]+HEX_CHARS[$e>>20&15]+HEX_CHARS[$e>>16&15]+HEX_CHARS[$e>>12&15]+HEX_CHARS[$e>>8&15]+HEX_CHARS[$e>>4&15]+HEX_CHARS[15&$e]+HEX_CHARS[he>>28&15]+HEX_CHARS[he>>24&15]+HEX_CHARS[he>>20&15]+HEX_CHARS[he>>16&15]+HEX_CHARS[he>>12&15]+HEX_CHARS[he>>8&15]+HEX_CHARS[he>>4&15]+HEX_CHARS[15&he]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[15&p]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[A>>28&15]+HEX_CHARS[A>>24&15]+HEX_CHARS[A>>20&15]+HEX_CHARS[A>>16&15]+HEX_CHARS[A>>12&15]+HEX_CHARS[A>>8&15]+HEX_CHARS[A>>4&15]+HEX_CHARS[15&A]+HEX_CHARS[C>>28&15]+HEX_CHARS[C>>24&15]+HEX_CHARS[C>>20&15]+HEX_CHARS[C>>16&15]+HEX_CHARS[C>>12&15]+HEX_CHARS[C>>8&15]+HEX_CHARS[C>>4&15]+HEX_CHARS[15&C]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M];return this.is224||(b+=HEX_CHARS[f>>28&15]+HEX_CHARS[f>>24&15]+HEX_CHARS[f>>20&15]+HEX_CHARS[f>>16&15]+HEX_CHARS[f>>12&15]+HEX_CHARS[f>>8&15]+HEX_CHARS[f>>4&15]+HEX_CHARS[15&f]),b},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var $e=this.h0,he=this.h1,p=this.h2,e=this.h3,A=this.h4,C=this.h5,M=this.h6,f=this.h7,b=[$e>>24&255,$e>>16&255,$e>>8&255,255&$e,he>>24&255,he>>16&255,he>>8&255,255&he,p>>24&255,p>>16&255,p>>8&255,255&p,e>>24&255,e>>16&255,e>>8&255,255&e,A>>24&255,A>>16&255,A>>8&255,255&A,C>>24&255,C>>16&255,C>>8&255,255&C,M>>24&255,M>>16&255,M>>8&255,255&M];return this.is224||b.push(f>>24&255,f>>16&255,f>>8&255,255&f),b},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var $e=new ArrayBuffer(this.is224?28:32),he=new DataView($e);return he.setUint32(0,this.h0),he.setUint32(4,this.h1),he.setUint32(8,this.h2),he.setUint32(12,this.h3),he.setUint32(16,this.h4),he.setUint32(20,this.h5),he.setUint32(24,this.h6),this.is224||he.setUint32(28,this.h7),$e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var $e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update($e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8($e){if("string"!=typeof $e)throw new TypeError("expected string");var he,p=$e,e=new Uint8Array(p.length);for(he=0;he{class $e{calcHash(p,e){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(p)))})()}toHashString2(p){let e="";for(let A of p)e+=String.fromCharCode(A);return e}toHashString(p){const e=new Uint8Array(p);let A="";for(let C of e)A+=String.fromCharCode(C);return A}}return $e.\u0275fac=function(p){return new(p||$e)},$e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:$e,factory:$e.\u0275fac}),$e})(),OAuthService=(()=>{class $e extends AuthConfig{constructor(p,e,A,C,M,f,b,D,T,R){super(),this.ngZone=p,this.http=e,this.config=M,this.urlHelper=f,this.logger=b,this.crypto=D,this.dateTimeService=R,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=T,M||(M={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),C&&(this.tokenValidationHandler=C),M&&this.configure(M);try{A?this.setStorage(A):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(H){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",H)}if(this.checkLocalStorageAccessable()){var B,w;const H=null===(B=window)||void 0===B||null===(w=B.navigator)||void 0===w?void 0:w.userAgent;(H?.includes("MSIE ")||H?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const p="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(p,p),localStorage.removeItem(p),0))}catch{return!1}}configure(p){Object.assign(this,new AuthConfig,p),this.config=Object.assign({},new AuthConfig,p),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(p={},e,A=!0){let C=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(M=>{"token_received"===M.type?C=!0:"logout"===M.type&&(C=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_expires"===M.type&&(null==e||"any"===e||M.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(M=>{C&&this.refreshInternal(p,A).catch(f=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(p,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(p,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(p=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(p))}loadDiscoveryDocumentAndLogin(p=null){return this.loadDiscoveryDocumentAndTryLogin(p=p||{}).then(e=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof p.state?p.state:""),!1))}debug(...p){this.showDebugInformation&&this.logger.debug.apply(this.logger,p)}validateUrlFromDiscoveryDocument(p){const e=[],A=this.validateUrlForHttps(p),C=this.validateUrlAgainstIssuer(p);return A||e.push("https for all urls required. Also for urls received by discovery."),C||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(p){if(!p)return!0;const e=p.toLowerCase();return!(!1!==this.requireHttps&&(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(p,e){if(!p)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(p))throw new Error(`'${e}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(p){return!this.strictDiscoveryDocumentValidation||!p||p.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const p=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),A=this.calcTimeout(e,p);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(A)).subscribe(C=>{this.ngZone.run(()=>{this.eventsSubject.next(C)})})})}setupIdTokenTimer(){const p=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),A=this.calcTimeout(e,p);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(A)).subscribe(C=>{this.ngZone.run(()=>{this.eventsSubject.next(C)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(p,e){const A=this.dateTimeService.now();return Math.max(0,(e-p)*this.timeoutFactor-(A-p))}setStorage(p){this._storage=p,this.configChanged()}loadDiscoveryDocument(p=null){return new Promise((e,A)=>{p||((p=this.issuer||"").endsWith("/")||(p+="/"),p+=".well-known/openid-configuration"),this.validateUrlForHttps(p)?this.http.get(p).subscribe(C=>{if(!this.validateDiscoveryDocument(C))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void A("discovery_document_validation_error");this.loginUrl=C.authorization_endpoint,this.logoutUrl=C.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=C.grant_types_supported,this.issuer=C.issuer,this.tokenEndpoint=C.token_endpoint,this.userinfoEndpoint=C.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=C.jwks_uri,this.sessionCheckIFrameUrl=C.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(C),this.revocationEndpoint=C.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(M=>{const b=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:C,jwks:M});this.eventsSubject.next(b),e(b)}).catch(M=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",M)),A(M)})},C=>{this.logger.error("error loading discovery document",C),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",C)),A(C)}):A("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((p,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(A=>{this.jwks=A,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),p(A)},A=>{this.logger.error("error loading jwks",A),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",A)),e(A)}):p(null)})}validateDiscoveryDocument(p){let e;return this.skipIssuerCheck||p.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(p.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(p.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(p.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!1):(this.sessionChecksEnabled&&!p.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+p.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(p,e,A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(p,e,A).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((p,e)=>{const A=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:A,observe:"response",responseType:"text"}).subscribe(C=>{if(this.debug("userinfo received",JSON.stringify(C)),C.headers.get("content-type").startsWith("application/json")){let M=JSON.parse(C.body);const f=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!f.sub||M.sub!==f.sub))return void e("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");M=Object.assign({},f,M),this._storage.setItem("id_token_claims_obj",JSON.stringify(M)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p({info:M})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p(JSON.parse(C.body))},C=>{this.logger.error("error loading user info",C),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",C)),e(C)})})}fetchTokenUsingPasswordFlow(p,e,A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:p,password:e},A)}fetchTokenUsingGrant(p,e,A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let C=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",p).set("scope",this.scope);if(this.useHttpBasicAuth){const M=btoa(`${this.clientId}:${this.dummyClientSecret}`);A=A.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(C=C.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(C=C.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))C=C.set(M,this.customQueryParams[M]);for(const M of Object.keys(e))C=C.set(M,e[M]);return A=A.set("Content-Type","application/x-www-form-urlencoded"),new Promise((M,f)=>{this.http.post(this.tokenEndpoint,C,{headers:A}).subscribe(b=>{this.debug("tokenResponse",b),this.storeAccessTokenResponse(b.access_token,b.refresh_token,b.expires_in||this.fallbackAccessTokenExpirationTimeInSec,b.scope,this.extractRecognizedCustomParameters(b)),this.oidc&&b.id_token&&this.processIdToken(b.id_token,b.access_token).then(D=>{this.storeIdToken(D),M(b)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),M(b)},b=>{this.logger.error("Error performing ${grantType} flow",b),this.eventsSubject.next(new OAuthErrorEvent("token_error",b)),f(b)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((p,e)=>{let A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),C=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const M=btoa(`${this.clientId}:${this.dummyClientSecret}`);C=C.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(A=A.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(A=A.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))A=A.set(M,this.customQueryParams[M]);this.http.post(this.tokenEndpoint,A,{headers:C}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(M=>M.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(M.id_token,M.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(f=>this.storeIdToken(f)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(f=>M)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(M))).subscribe(M=>{this.debug("refresh tokenResponse",M),this.storeAccessTokenResponse(M.access_token,M.refresh_token,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,M.scope,this.extractRecognizedCustomParameters(M)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),p(M)},M=>{this.logger.error("Error refreshing token",M),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",M)),e(M)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=p=>{const e=this.processMessageEventMessage(p);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(A=>this.debug("tryLogin during silent refresh failed",A))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(p={},e=!0){const A=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(p.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const C=this.document.getElementById(this.silentRefreshIFrameName);C&&this.document.body.removeChild(C),this.silentRefreshSubject=A.sub;const M=this.document.createElement("iframe");M.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,p).then(R=>{M.setAttribute("src",R),this.silentRefreshShowIFrame||(M.style.display="none"),this.document.body.appendChild(M)});const b=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(R=>R instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),D=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(R=>"token_received"===R.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),T=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([b,D,T]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(R=>{if(R instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===R.type||(R=new OAuthErrorEvent("silent_refresh_error",R)),this.eventsSubject.next(R),R;return"token_received"===R.type&&(R=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(R)),R})).toPromise()}initImplicitFlowInPopup(p){return this.initLoginFlowInPopup(p)}initLoginFlowInPopup(p){return p=p||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((A,C)=>{let b,f=null;p.windowRef?p.windowRef&&!p.windowRef.closed&&(f=p.windowRef,f.location.href=e):f=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(p));const D=H=>{this.tryLogin({customHashFragment:H,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{R(),A(!0)},O=>{R(),C(O)})};f?b=window.setInterval(()=>{(!f||f.closed)&&(R(),C(new OAuthErrorEvent("popup_closed",{})))},500):C(new OAuthErrorEvent("popup_blocked",{}));const R=()=>{window.clearInterval(b),window.removeEventListener("storage",w),window.removeEventListener("message",B),null!==f&&f.close(),f=null},B=H=>{const O=this.processMessageEventMessage(H);O&&null!==O?(window.removeEventListener("storage",w),D(O)):console.log("false event firing")},w=H=>{"auth_hash"===H.key&&(window.removeEventListener("message",B),D(H.newValue))};window.addEventListener("message",B),window.addEventListener("storage",w)}))}calculatePopupFeatures(p){const e=p.height||470,A=p.width||500,C=window.screenLeft+(window.outerWidth-A)/2;return`location=no,toolbar=no,width=${A},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${C}`}processMessageEventMessage(p){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!p||!p.data||"string"!=typeof p.data)return;const A=p.data;return A.startsWith(e)?"#"+A.substr(e.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=p=>{const e=p.origin.toLowerCase(),A=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),A.startsWith(e)){switch(p.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",p)}else this.debug("sessionCheckEventListener","wrong origin",e,"expected",A,"event",p)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(p=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(p=>{this.debug("token refresh after session change worked")}).catch(p=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"silently_refreshed"===p.type||"silent_refresh_timeout"===p.type||"silent_refresh_error"===p.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(p=>{"silently_refreshed"!==p.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const p=this.document.getElementById(this.sessionCheckIFrameName);p&&this.document.body.removeChild(p);const e=this.document.createElement("iframe");e.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),e.setAttribute("src",this.sessionCheckIFrameUrl),e.style.display="none",this.document.body.appendChild(e),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const p=this.document.getElementById(this.sessionCheckIFrameName);p||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),p.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(p="",e="",A="",C=!1,M={}){var f=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const b=f;let D;D=A||f.redirectUri;const T=yield f.createAndSaveNonce();if(p=p?T+f.config.nonceStateSeparator+encodeURIComponent(p):T,!f.requestAccessToken&&!f.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");f.responseType=f.config.responseType?f.config.responseType:f.oidc&&f.requestAccessToken?"id_token token":f.oidc&&!f.requestAccessToken?"id_token":"token";const R=b.loginUrl.indexOf("?")>-1?"&":"?";let B=b.scope;f.oidc&&!B.match(/(^|\s)openid($|\s)/)&&(B="openid "+B);let w=b.loginUrl+R+"response_type="+encodeURIComponent(b.responseType)+"&client_id="+encodeURIComponent(b.clientId)+"&state="+encodeURIComponent(p)+"&redirect_uri="+encodeURIComponent(D)+"&scope="+encodeURIComponent(B);if(f.responseType.includes("code")&&!f.disablePKCE){const[H,O]=yield f.createChallangeVerifierPairForPKCE();f.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",O):f._storage.setItem("PKCE_verifier",O),w+="&code_challenge="+H,w+="&code_challenge_method=S256"}e&&(w+="&login_hint="+encodeURIComponent(e)),b.resource&&(w+="&resource="+encodeURIComponent(b.resource)),b.oidc&&(w+="&nonce="+encodeURIComponent(T)),C&&(w+="&prompt=none");for(const H of Object.keys(M))w+="&"+encodeURIComponent(H)+"="+encodeURIComponent(M[H]);if(f.customQueryParams)for(const H of Object.getOwnPropertyNames(f.customQueryParams))w+="&"+H+"="+encodeURIComponent(f.customQueryParams[H]);return w})()}initImplicitFlowInternal(p="",e=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let A={},C=null;"string"==typeof e?C=e:"object"==typeof e&&(A=e),this.createLoginUrl(p,C,null,!1,A).then(this.config.openUri).catch(M=>{console.error("Error in initImplicitFlow",M),this.inImplicitFlow=!1})}initImplicitFlow(p="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(p,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(A=>"discovery_document_loaded"===A.type)).subscribe(A=>this.initImplicitFlowInternal(p,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(p){const e=this;if(p.onTokenReceived){const A={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};p.onTokenReceived(A)}}storeAccessTokenResponse(p,e,A,C,M){if(this._storage.setItem("access_token",p),C&&!Array.isArray(C)?this._storage.setItem("granted_scopes",JSON.stringify(C.split(" "))):C&&Array.isArray(C)&&this._storage.setItem("granted_scopes",JSON.stringify(C)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),A){const f=1e3*A,D=this.dateTimeService.new().getTime()+f;this._storage.setItem("expires_at",""+D)}e&&this._storage.setItem("refresh_token",e),M&&M.forEach((f,b)=>{this._storage.setItem(b,f)})}tryLogin(p=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(p).then(e=>!0):this.tryLoginImplicitFlow(p)}parseQueryString(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):{}}tryLoginCodeFlow(p=null){var e=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const A=(p=p||{}).customHashFragment?p.customHashFragment.substring(1):window.location.search,C=e.getCodePartsFromUrl(A),M=C.code,f=C.state,b=C.session_state;if(!p.preventClearHashAfterLogin){const R=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,R)}let[D,T]=e.parseState(f);if(e.state=T,C.error){e.debug("error trying to login"),e.handleLoginError(p,C);const R=new OAuthErrorEvent("code_error",{},C);return e.eventsSubject.next(R),Promise.reject(R)}if(!p.disableNonceCheck){if(!D)return e.saveRequestedRoute(),Promise.resolve();if(!p.disableOAuth2StateCheck&&!e.validateNonce(D)){const B=new OAuthErrorEvent("invalid_nonce_in_state",null);return e.eventsSubject.next(B),Promise.reject(B)}return e.storeSessionState(b),M&&(yield e.getTokenFromCode(M,p),e.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const p=this._storage.getItem("requested_route");p&&history.replaceState(null,"",window.location.origin+p)}getCodePartsFromUrl(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(p,e){let A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",p).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let C;C=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),C?A=A.set("code_verifier",C):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(A,e)}fetchAndProcessToken(p,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let A=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const C=btoa(`${this.clientId}:${this.dummyClientSecret}`);A=A.set("Authorization","Basic "+C)}return this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),new Promise((C,M)=>{if(this.customQueryParams)for(let f of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(f,this.customQueryParams[f]);this.http.post(this.tokenEndpoint,p,{headers:A}).subscribe(f=>{this.debug("refresh tokenResponse",f),this.storeAccessTokenResponse(f.access_token,f.refresh_token,f.expires_in||this.fallbackAccessTokenExpirationTimeInSec,f.scope,this.extractRecognizedCustomParameters(f)),this.oidc&&f.id_token?this.processIdToken(f.id_token,f.access_token,e.disableNonceCheck).then(b=>{this.storeIdToken(b),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),C(f)}).catch(b=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",b)),console.error("Error validating tokens"),console.error(b),M(b)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),C(f))},f=>{console.error("Error getting token",f),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",f)),M(f)})})}tryLoginImplicitFlow(p=null){let e;e=(p=p||{}).customHashFragment?this.urlHelper.getHashFragmentParams(p.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const A=e.state;let[C,M]=this.parseState(A);if(this.state=M,e.error){this.debug("error trying to login"),this.handleLoginError(p,e);const R=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(R),Promise.reject(R)}const f=e.access_token,b=e.id_token,D=e.session_state,T=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!f||this.requestAccessToken&&!p.disableOAuth2StateCheck&&!A||this.oidc&&!b)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!D&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!p.disableNonceCheck&&!this.validateNonce(C)){const B=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(B),Promise.reject(B)}return this.requestAccessToken&&this.storeAccessTokenResponse(f,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,T),this.oidc?this.processIdToken(b,f,p.disableNonceCheck).then(R=>p.validationHandler?p.validationHandler({accessToken:f,idClaims:R.idTokenClaims,idToken:R.idToken,state:A}).then(B=>R):R).then(R=>(this.storeIdToken(R),this.storeSessionState(D),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(p),this.inImplicitFlow=!1,!0)).catch(R=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",R)),this.logger.error("Error validating tokens"),this.logger.error(R),Promise.reject(R))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(p),Promise.resolve(!0))}parseState(p){let e=p,A="";if(p){const C=p.indexOf(this.config.nonceStateSeparator);C>-1&&(e=p.substr(0,C),A=p.substr(C+this.config.nonceStateSeparator.length))}return[e,A]}validateNonce(p){let e;return e=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===p||(console.error("Validating access_token failed, wrong state/nonce.",e,p),!1)}storeIdToken(p){this._storage.setItem("id_token",p.idToken),this._storage.setItem("id_token_claims_obj",p.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+p.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(p){this._storage.setItem("session_state",p)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(p,e){p.onLoginError&&p.onLoginError(e),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(p=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:p}processIdToken(p,e,A=!1){const C=p.split("."),f=b64DecodeUnicode(this.padBase64(C[0])),b=JSON.parse(f),T=b64DecodeUnicode(this.padBase64(C[1])),R=JSON.parse(T);let B;if(B=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(R.aud)){if(R.aud.every(G=>G!==this.clientId)){const G="Wrong audience: "+R.aud.join(",");return this.logger.warn(G),Promise.reject(G)}}else if(R.aud!==this.clientId){const G="Wrong audience: "+R.aud;return this.logger.warn(G),Promise.reject(G)}if(!R.sub){const G="No sub claim in id_token";return this.logger.warn(G),Promise.reject(G)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==R.sub){const G=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${R.sub}`;return this.logger.warn(G),Promise.reject(G)}if(!R.iat){const G="No iat claim in id_token";return this.logger.warn(G),Promise.reject(G)}if(!this.skipIssuerCheck&&R.iss!==this.issuer){const G="Wrong issuer: "+R.iss;return this.logger.warn(G),Promise.reject(G)}if(!A&&R.nonce!==B){const G="Wrong nonce: "+R.nonce;return this.logger.warn(G),Promise.reject(G)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!R.at_hash){const G="An at_hash is needed!";return this.logger.warn(G),Promise.reject(G)}const w=this.dateTimeService.now(),H=1e3*R.iat,O=1e3*R.exp,J=this.getClockSkewInMsec();if(H-J>=w||O+J<=w){const G="Token has expired";return console.error(G),console.error({now:w,issuedAtMSec:H,expiresAtMSec:O}),Promise.reject(G)}const ne={accessToken:e,idToken:p,jwks:this.jwks,idTokenClaims:R,idTokenHeader:b,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ne).then(G=>({idToken:p,idTokenClaims:R,idTokenClaimsJson:T,idTokenHeader:b,idTokenHeaderJson:f,idTokenExpiresAt:O})):this.checkAtHash(ne).then(G=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!G){const se="Wrong at_hash";return this.logger.warn(se),Promise.reject(se)}return this.checkSignature(ne).then(se=>{const _e={idToken:p,idTokenClaims:R,idTokenClaimsJson:T,idTokenHeader:b,idTokenHeaderJson:f,idTokenExpiresAt:O};return this.disableAtHashCheck?_e:this.checkAtHash(ne).then(Be=>{if(this.requestAccessToken&&!Be){const E="Wrong at_hash";return this.logger.warn(E),Promise.reject(E)}return _e})})})}getIdentityClaims(){const p=this._storage.getItem("id_token_claims_obj");return p?JSON.parse(p):null}getGrantedScopes(){const p=this._storage.getItem("granted_scopes");return p?JSON.parse(p):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(p){for(;p.length%4!=0;)p+="=";return p}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const p=this._storage.getItem("expires_at"),e=this.dateTimeService.new();return!(p&&parseInt(p,10)=0&&null!==this._storage.getItem(p)?JSON.parse(this._storage.getItem(p)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(p={},e=""){let A=!1;"boolean"==typeof p&&(A=p,p={});const C=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(f=>this._storage.removeItem(f)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||A||!C&&!this.postLogoutRedirectUri)return;let M;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)M=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(C)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});C&&(f=f.set("id_token_hint",C));const b=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";b&&(f=f.set("post_logout_redirect_uri",b),e&&(f=f.set("state",e)));for(let D in p)f=f.set(D,p[D]);M=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+f.toString()}this.config.openUri(M)}createAndSaveNonce(){const p=this;return this.createNonce().then(function(e){return p.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",e):p._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const p=this.document.getElementById(this.silentRefreshIFrameName);p&&p.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(p=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let A=45,C="";const M=typeof self>"u"?null:self.crypto||self.msCrypto;if(M){let f=new Uint8Array(A);M.getRandomValues(f),f.map||(f.map=Array.prototype.map),f=f.map(b=>e.charCodeAt(b%e.length)),C=String.fromCharCode.apply(null,f)}else for(;0"discovery_document_loaded"===A.type)).subscribe(A=>this.initCodeFlowInternal(p,e))}initCodeFlowInternal(p="",e={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let A={},C=null;"string"==typeof e?C=e:"object"==typeof e&&(A=e),this.createLoginUrl(p,C,null,!1,A).then(this.config.openUri).catch(M=>{console.error("Error in initAuthorizationCodeFlow"),console.error(M)})}createChallangeVerifierPairForPKCE(){var p=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!p.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const e=yield p.createNonce();return[base64UrlEncode(yield p.crypto.calcHash(e,"sha-256")),e]})()}extractRecognizedCustomParameters(p){let e=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(A=>{p[A]&&e.set(A,JSON.stringify(p[A]))}),e}revokeTokenAndLogout(p={},e=!1){let A=this.revocationEndpoint,C=this.getAccessToken(),M=this.getRefreshToken();if(!C)return;let f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),b=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);b=b.set("Authorization","Basic "+D)}if(this.useHttpBasicAuth||(f=f.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(f=f.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const D of Object.getOwnPropertyNames(this.customQueryParams))f=f.set(D,this.customQueryParams[D]);return new Promise((D,T)=>{let R,B;if(C){let w=f.set("token",C).set("token_type_hint","access_token");R=this.http.post(A,w,{headers:b})}else R=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(M){let w=f.set("token",M).set("token_type_hint","refresh_token");B=this.http.post(A,w,{headers:b})}else B=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);e&&(R=R.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>0===w.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(w))),B=B.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>0===w.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(w)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([R,B]).subscribe(w=>{this.logOut(p),D(w),this.logger.info("Token successfully revoked")},w=>{this.logger.error("Error revoking token",w),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",w)),T(w)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return $e.\u0275fac=function(p){return new(p||$e)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},$e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:$e,factory:$e.\u0275fac}),$e})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(he){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(he)}}let DefaultOAuthInterceptor=(()=>{class $e{constructor(p,e,A){this.oAuthService=p,this.errorHandler=e,this.moduleConfig=A}checkUrl(p){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(p):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>p.toLowerCase().startsWith(e.toLowerCase()))}intercept(p,e){const A=p.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(A)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>!!M)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_received"===M.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(M=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(M=>{if(M){const b=p.headers.set("Authorization","Bearer "+M);p=p.clone({headers:b})}return e.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(f=>this.errorHandler.handleError(f)))})):e.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>this.errorHandler.handleError(M))):e.handle(p)}}return $e.\u0275fac=function(p){return new(p||$e)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},$e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:$e,factory:$e.\u0275fac}),$e})();class NullValidationHandler{validateSignature(he){return Promise.resolve(null)}validateAtHash(he){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class $e{static forRoot(p=null,e=NullValidationHandler){return{ngModule:$e,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:e},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:p},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return $e.\u0275fac=function(p){return new(p||$e)},$e.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:$e}),$e.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),$e})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},33231:($e,he,p)=>{"use strict";p.d(he,{Co:()=>Ae,nu:()=>ee});var e=p(29521),A=p(94650),C=p(24006),M=p(3238),f=p(59549),b=p(84385),D=p(61135),T=p(39646),R=p(39841),B=p(77579),w=p(63900),H=p(54004),O=p(68675),J=p(91005),ne=p(82722),G=p(95698),se=p(39300),Oe=p(18505),_e=p(67376),Be=p(12687),E=p(56709),z=p(51572),F=p(4859),V=p(97392),X=p(36895),q=p(10266);const pe=["searchSelectInput"],le=["innerSelectSearch"];function ye(Ee,ge){if(1&Ee){const we=A.EpF();A.TgZ(0,"mat-checkbox",9),A.NdJ("change",function(Ce){A.CHM(we);const fe=A.oxw();return A.KtG(fe._emitSelectAllBooleanToParent(Ce.checked))}),A.qZA()}if(2&Ee){const we=A.oxw();A.Q6J("color",null==we.matFormField?null:we.matFormField.color)("checked",we.toggleAllCheckboxChecked)("indeterminate",we.toggleAllCheckboxIndeterminate)("matTooltip",we.toggleAllCheckboxTooltipMessage)("matTooltipPosition",we.toogleAllCheckboxTooltipPosition)}}function Ve(Ee,ge){1&Ee&&A._UZ(0,"mat-spinner",10)}function ve(Ee,ge){1&Ee&&A.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Ke(Ee,ge){if(1&Ee&&(A.TgZ(0,"mat-icon",14),A._uU(1),A.qZA()),2&Ee){const we=A.oxw(2);A.Q6J("svgIcon",we.closeSvgIcon),A.xp6(1),A.hij(" ",we.closeSvgIcon?null:we.closeIcon," ")}}function Ue(Ee,ge){if(1&Ee){const we=A.EpF();A.TgZ(0,"button",11),A.NdJ("click",function(){A.CHM(we);const Ce=A.oxw();return A.KtG(Ce._reset(!0))}),A.YNc(1,ve,1,0,"ng-content",12),A.YNc(2,Ke,2,2,"ng-template",null,13,A.W1O),A.qZA()}if(2&Ee){const we=A.MAs(3),Ne=A.oxw();A.xp6(1),A.Q6J("ngIf",Ne.clearIcon)("ngIfElse",we)}}function oe(Ee,ge){1&Ee&&A.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function ce(Ee,ge){if(1&Ee&&A._uU(0),2&Ee){const we=A.oxw(2);A.Oqu(we.noEntriesFoundLabel)}}function k(Ee,ge){if(1&Ee&&(A.TgZ(0,"div",15),A.YNc(1,oe,1,0,"ng-content",12),A.YNc(2,ce,1,1,"ng-template",null,16,A.W1O),A.qZA()),2&Ee){const we=A.MAs(3),Ne=A.oxw();A.xp6(1),A.Q6J("ngIf",Ne.noEntriesFound)("ngIfElse",we)}}const N=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],be=function(Ee,ge){return{"mat-select-search-inner-multiple":Ee,"mat-select-search-inner-toggle-all":ge}},W=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let ue=(()=>{class Ee{}return Ee.\u0275fac=function(we){return new(we||Ee)},Ee.\u0275dir=A.lG2({type:Ee,selectors:[["","ngxMatSelectSearchClear",""]]}),Ee})();const Me=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","indexAndLengthScreenReaderText","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],ot=new A.OlP("mat-selectsearch-default-options");let tt=(()=>{class Ee{}return Ee.\u0275fac=function(we){return new(we||Ee)},Ee.\u0275dir=A.lG2({type:Ee,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),Ee})(),ee=(()=>{class Ee{constructor(we,Ne,Ce,fe=null,r,u=null,g){this.matSelect=we,this.changeDetectorRef=Ne,this._viewportRuler=Ce,this.matOption=fe,this.liveAnnouncer=r,this.matFormField=u,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new A.vpe,this.onTouched=v=>{},this._options$=new D.X(null),this.optionsList$=this._options$.pipe((0,w.w)(v=>v?v.changes.pipe((0,H.U)(h=>h.toArray()),(0,O.O)(v.toArray())):(0,T.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,H.U)(v=>v?v.length:0)),this._formControl=new C.NI(""),this._showNoEntriesFound$=(0,R.a)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,H.U)(([v,h])=>this.noEntriesFoundLabel&&v&&h===this.getOptionsLengthOffset())),this._onDestroy=new B.x,this.applyDefaultOptions(g)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(we){this._options$.next(we)}get _options(){return this._options$.getValue()}applyDefaultOptions(we){if(we)for(const Ne of Me)we.hasOwnProperty(Ne)&&(this[Ne]=we[Ne])}ngOnInit(){const we="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(we):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,we]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[we]=!0):this.matSelect.panelClass=we,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,J.g)(1),(0,ne.R)(this._onDestroy)).subscribe(Ne=>{Ne?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,G.q)(1)).pipe((0,ne.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,ne.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let Ne=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,ne.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const Ce=this._options.toArray(),fe=Ce[this.getOptionsLengthOffset()],r=this.matSelect._keyManager;r&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(Ne,fe)||!r.activeItem||!Ce.find(g=>this.matSelect.compareWith(g,r.activeItem)))&&r.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),Ne=fe})})}),this._showNoEntriesFound$.pipe((0,ne.R)(this._onDestroy)).subscribe(Ne=>{this.matOption&&(Ne?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,ne.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,ne.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(we){this.toggleAll.emit(we)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(we){(we.key&&1===we.key.length||we.keyCode>=e.A&&we.keyCode<=e.Z||we.keyCode>=e.xE&&we.keyCode<=e.aO||we.keyCode===e.L_||this.preventHomeEndKeyPropagation&&(we.keyCode===e.Sd||we.keyCode===e.uR))&&we.stopPropagation(),this.matSelect.multiple&&we.key&&we.keyCode===e.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&we.keyCode===e.hY&&this.value&&(this._reset(!0),we.stopPropagation())}_handleKeyup(we){if(we.keyCode===e.LH||we.keyCode===e.JH){const Ne=this.matSelect._getAriaActiveDescendant(),Ce=this._options.toArray().findIndex(fe=>fe.id===Ne);if(-1!==Ce){const fe=this._options.toArray()[Ce];this.liveAnnouncer.announce(fe.viewValue+" "+this.getAriaIndex(Ce)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(we){return 0===this.getOptionsLengthOffset()?we+1:we}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(we){this._lastExternalInputValue=we,this._formControl.setValue(we),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(we){this._formControl.valueChanges.pipe((0,se.h)(Ne=>Ne!==this._lastExternalInputValue),(0,Oe.b)(()=>this._lastExternalInputValue=void 0),(0,ne.R)(this._onDestroy)).subscribe(we)}registerOnTouched(we){this.onTouched=we}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const we=this.matSelect.panel.nativeElement,Ne=we.scrollTop;this.searchSelectInput.nativeElement.focus(),we.scrollTop=Ne}_reset(we){this._formControl.setValue(""),we&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,ne.R)(this._onDestroy)).subscribe(we=>{let Ne=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!we||!Array.isArray(we))&&(we=[]);const Ce=this.matSelect.options.map(fe=>fe.value);this.previousSelectedValues.forEach(fe=>{!we.some(r=>this.matSelect.compareWith(r,fe))&&!Ce.some(r=>this.matSelect.compareWith(r,fe))&&(we.push(fe),Ne=!0)})}this.previousSelectedValues=we,Ne&&this.matSelect._onChange(we)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const we=this.getMatOptionHeight(),Ne=this.matSelect._keyManager.activeItemIndex||0,Ce=(0,M.CB)(Ne,this.matSelect.options,this.matSelect.optionGroups),fe=(this.matOption?-1:0)+Ce+Ne,r=this.matSelect.panel.nativeElement.scrollTop,u=this.innerSelectSearch.nativeElement.offsetHeight,g=Math.floor((256-u)/we),v=Math.round((r+u)/we)-1;v>=fe?this.matSelect.panel.nativeElement.scrollTop=fe*we:v+g<=fe&&(this.matSelect.panel.nativeElement.scrollTop=(fe+1)*we-(256-u))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let Ne,we=this.innerSelectSearch.nativeElement;for(;we=we.parentElement;)if(we.classList.contains("mat-select-panel")){Ne=we;break}Ne&&(this.innerSelectSearch.nativeElement.style.width=Ne.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return Ee.\u0275fac=function(we){return new(we||Ee)(A.Y36(b.gD),A.Y36(A.sBO),A.Y36(_e.rL),A.Y36(M.ey,8),A.Y36(Be.Kd),A.Y36(f.KE,8),A.Y36(ot,8))},Ee.\u0275cmp=A.Xpm({type:Ee,selectors:[["ngx-mat-select-search"]],contentQueries:function(we,Ne,Ce){if(1&we&&(A.Suo(Ce,ue,5),A.Suo(Ce,tt,5)),2&we){let fe;A.iGM(fe=A.CRH())&&(Ne.clearIcon=fe.first),A.iGM(fe=A.CRH())&&(Ne.noEntriesFound=fe.first)}},viewQuery:function(we,Ne){if(1&we&&(A.Gf(pe,7,A.SBq),A.Gf(le,7,A.SBq)),2&we){let Ce;A.iGM(Ce=A.CRH())&&(Ne.searchSelectInput=Ce.first),A.iGM(Ce=A.CRH())&&(Ne.innerSelectSearch=Ce.first)}},hostVars:2,hostBindings:function(we,Ne){2&we&&A.ekj("mat-select-search-inside-mat-option",Ne.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[A._Bn([{provide:C.JU,useExisting:(0,A.Gpc)(()=>Ee),multi:!0}])],ngContentSelectors:W,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(we,Ne){1&we&&(A.F$t(N),A._UZ(0,"input",0),A.TgZ(1,"div",1,2),A.YNc(3,ye,1,5,"mat-checkbox",3),A.TgZ(4,"input",4,5),A.NdJ("keydown",function(fe){return Ne._handleKeydown(fe)})("keyup",function(fe){return Ne._handleKeyup(fe)})("blur",function(){return Ne.onBlur()}),A.qZA(),A.YNc(6,Ve,1,0,"mat-spinner",6),A.YNc(7,Ue,4,2,"button",7),A.Hsn(8),A.qZA(),A.YNc(9,k,4,2,"div",8),A.ALo(10,"async")),2&we&&(A.xp6(1),A.Q6J("ngClass",A.WLB(11,be,Ne.matSelect.multiple,Ne._isToggleAllCheckboxVisible())),A.xp6(2),A.Q6J("ngIf",Ne._isToggleAllCheckboxVisible()),A.xp6(1),A.Q6J("type",Ne.type)("formControl",Ne._formControl)("placeholder",Ne.placeholderLabel),A.uIk("aria-label",Ne.ariaLabel),A.xp6(2),A.Q6J("ngIf",Ne.searching),A.xp6(1),A.Q6J("ngIf",!Ne.hideClearSearchButton&&Ne.value&&!Ne.searching),A.xp6(2),A.Q6J("ngIf",A.lcZ(10,9,Ne._showNoEntriesFound$)))},dependencies:[E.oG,z.Ou,F.lW,V.Hw,X.mk,X.O5,q.gM,C.Fj,C.JJ,C.oH,X.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),Ee})(),Ae=(()=>{class Ee{}return Ee.\u0275fac=function(we){return new(we||Ee)},Ee.\u0275mod=A.oAB({type:Ee}),Ee.\u0275inj=A.cJS({imports:[[X.ez,C.UX,F.ot,E.p9,V.Ps,z.Cq,q.AV]]}),Ee})()},15861:($e,he,p)=>{"use strict";function e(C,M,f,b,D,T,R){try{var B=C[T](R),w=B.value}catch(H){return void f(H)}B.done?M(w):Promise.resolve(w).then(b,D)}function A(C){return function(){var M=this,f=arguments;return new Promise(function(b,D){var T=C.apply(M,f);function R(w){e(T,b,D,R,B,"next",w)}function B(w){e(T,b,D,R,B,"throw",w)}R(void 0)})}}p.d(he,{Z:()=>A})},4147:$e=>{"use strict";$e.exports={i8:"10.5.0"}}},$e=>{$e($e.s=92013)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/main.9694654c1539d260.js b/dist/apps/admin-gui/main.9694654c1539d260.js deleted file mode 100644 index 63db3e902..000000000 --- a/dist/apps/admin-gui/main.9694654c1539d260.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[179],{57788:(Xe,ue,p)=>{"use strict";p.d(ue,{g:()=>ut});var e=p(61744),A=p(10036),C=p(94650),M=p(36895),m=p(3848),b=p(51572),D=p(64877),v=p(62109),R=p(62707),B=p(38383),w=p(74010),L=p(9244),O=p(97392),q=p(4859),ee=p(10266),z=p(89593),ie=p(64901),Te=p(89383);function pe(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"div",6)(1,"div",7)(2,"perun-web-apps-entity-search-select",8),C.NdJ("entitySelected",function(Ae){const _e=C.CHM(X).$implicit;return C.KtG(_e[0]=Ae.namespace+":"+Ae.friendlyName)}),C.ALo(3,"translate"),C.ALo(4,"translate"),C.ALo(5,"translate"),C.qZA()(),C.TgZ(6,"div",9)(7,"perun-web-apps-debounce-filter",10),C.NdJ("filter",function(Ae){const _e=C.CHM(X).$implicit;return C.KtG(_e[1]=Ae)}),C.qZA()(),C.TgZ(8,"div",11)(9,"button",12),C.NdJ("click",function(){const ye=C.CHM(X).$implicit,_e=C.oxw(2);return C.KtG(_e.removeOption(ye))}),C.ALo(10,"translate"),C.TgZ(11,"mat-icon"),C._uU(12,"clear"),C.qZA()()()()}if(2&tt){const X=C.oxw(2);C.xp6(2),C.Q6J("entities",X.availableAttrDefs)("searchFunction",X.nameFunction)("mainTextFunction",X.nameFunction)("secondaryTextFunction",X.secondaryTextFunction)("selectPlaceholder",C.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SELECT_ATTR_DEF"))("findPlaceholder",C.lcZ(4,12,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.FIND_ATTR_DEF"))("noEntriesText",C.lcZ(5,14,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.NO_ATTR_DEF_FOUND")),C.xp6(5),C.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_PLACEHOLDER"),C.xp6(2),C.s9C("matTooltip",C.lcZ(10,16,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.REMOVE_PARAMETER")),C.Q6J("disabled",1===X.options.length)}}function Le(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"div",1),C.YNc(1,pe,13,18,"div",2),C.TgZ(2,"button",3),C.NdJ("click",function(){C.CHM(X);const Ae=C.oxw();return C.KtG(Ae.addOption())}),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.TgZ(5,"span",4),C.ALo(6,"translate"),C.TgZ(7,"button",5),C.NdJ("click",function(){C.CHM(X);const Ae=C.oxw();return C.KtG(Ae.searchEntities())}),C.TgZ(8,"mat-icon"),C._uU(9,"search"),C.qZA(),C._uU(10),C.ALo(11,"translate"),C.qZA()()()}if(2&tt){const X=C.oxw();C.xp6(1),C.Q6J("ngForOf",X.options),C.xp6(2),C.hij(" ",C.lcZ(4,6,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.ADD_PARAMETER")," "),C.xp6(2),C.s9C("matTooltip",C.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON_TOOLTIP")),C.Q6J("matTooltipDisabled",!X.emptySearchString()),C.xp6(2),C.Q6J("disabled",X.emptySearchString()),C.xp6(3),C.hij(" ",C.lcZ(11,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON")," ")}}let T=(()=>{class tt{constructor(){this.attributeSelected=new C.vpe,this.search=new C.vpe,this.availableAttrDefs=[],this.options=[],this.nameFunction=X=>X.displayName,this.secondaryTextFunction=X=>"#"+String(X.id)}ngOnInit(){this.availableAttrDefs=this.attributes.filter(X=>X.entity===this.attributesForEntity).sort(L.Xd)}ngOnChanges(){this.options=[],this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}removeOption(X){this.options=this.options.filter(nt=>nt!==X)}addOption(){this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}emptySearchString(){return this.options.some(X=>0===X[1].length)}searchEntities(){const X={};this.options.forEach(nt=>{X[nt[0]]=nt[1]}),this.search.emit(X)}}return tt.\u0275fac=function(X){return new(X||tt)},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["perun-web-apps-attribute-search-select"]],inputs:{attributes:"attributes",attributesForEntity:"attributesForEntity"},outputs:{attributeSelected:"attributeSelected",search:"search"},features:[C.TTD],decls:1,vars:1,consts:[["class","container ml-0 mr-0 pl-0 pr-0 mt-3",4,"ngIf"],[1,"container","ml-0","mr-0","pl-0","pr-0","mt-3"],["class","row",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["matTooltipPosition","below",3,"matTooltip","matTooltipDisabled"],["data-cy","searcher-search-button","mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"row"],[1,"col-7"],[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"],[1,"col-4","pr-0"],[3,"placeholder","filter"],[1,"col-1"],["mat-icon-button","","color","warn",1,"mt-2",3,"matTooltip","disabled","click"]],template:function(X,nt){1&X&&C.YNc(0,Le,12,12,"div",0),2&X&&C.Q6J("ngIf",void 0!==nt.options)},dependencies:[M.sg,M.O5,O.Hw,q.lW,ee.gM,z.i,ie.P,Te.X$]}),tt})();function W(tt,vt){1&tt&&(C._uU(0),C.ALo(1,"translate")),2&tt&&C.hij(" ",C.lcZ(1,1,"ADMIN.SEARCHER.TAB_USERS")," ")}function F(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"perun-web-apps-attribute-search-select",8),C.NdJ("search",function(Ae){C.CHM(X);const ye=C.oxw(2);return C.KtG(ye.searchEntities(Ae,"user"))}),C.qZA()}if(2&tt){const X=C.oxw(2);C.Q6J("attributes",X.allAttrDefinitions)("attributesForEntity","user")}}const V=function(){return["user","id","name"]};function te(tt,vt){if(1&tt&&C._UZ(0,"app-users-list",9),2&tt){const X=C.oxw(2);C.Q6J("tableId",X.tableId)("displayedColumns",C.DdM(3,V))("users",X.entities)}}function Q(tt,vt){if(1&tt&&(C.YNc(0,F,1,2,"perun-web-apps-attribute-search-select",6),C.YNc(1,te,1,4,"app-users-list",7)),2&tt){const X=C.oxw();C.Q6J("ngIf",!X.loading),C.xp6(1),C.Q6J("ngIf",!X.loadingEntityData)}}function Ee(tt,vt){1&tt&&(C._uU(0),C.ALo(1,"translate")),2&tt&&C.hij(" ",C.lcZ(1,1,"ADMIN.SEARCHER.TAB_MEMBERS")," ")}function ge(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"perun-web-apps-vo-search-select",13),C.NdJ("voSelected",function(Ae){C.CHM(X);const ye=C.oxw(2);return C.KtG(ye.voSelected(Ae))}),C.qZA()}if(2&tt){const X=C.oxw(2);C.Q6J("vos",X.vos)}}function ve(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"perun-web-apps-attribute-search-select",8),C.NdJ("search",function(Ae){C.CHM(X);const ye=C.oxw(2);return C.KtG(ye.searchEntities(Ae,"member"))}),C.qZA()}if(2&tt){const X=C.oxw(2);C.Q6J("attributes",X.allAttrDefinitions)("attributesForEntity","user")}}const De=function(){return["id","voId","userId","status"]};function he(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"perun-web-apps-members-list",14),C.NdJ("updateTable",function(){C.CHM(X);const Ae=C.oxw(2);return C.KtG(Ae.searchEntities(Ae.searchInput,"member"))}),C.qZA()}if(2&tt){const X=C.oxw(2);C.Q6J("tableId",X.tableId)("displayedColumns",C.DdM(5,De))("disableStatusChange",!0)("disableExpirationChange",!0)("members",X.entities)}}function Ye(tt,vt){if(1&tt&&(C.TgZ(0,"div",10),C.YNc(1,ge,1,1,"perun-web-apps-vo-search-select",11),C.qZA(),C.YNc(2,ve,1,2,"perun-web-apps-attribute-search-select",6),C.YNc(3,he,1,6,"perun-web-apps-members-list",12)),2&tt){const X=C.oxw();C.xp6(1),C.Q6J("ngIf",X.vos.length>0),C.xp6(1),C.Q6J("ngIf",!X.loading),C.xp6(1),C.Q6J("ngIf",!X.loadingEntityData)}}function Be(tt,vt){1&tt&&(C._uU(0),C.ALo(1,"translate")),2&tt&&C.hij(" ",C.lcZ(1,1,"ADMIN.SEARCHER.TAB_FACILITIES")," ")}function se(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"perun-web-apps-attribute-search-select",8),C.NdJ("search",function(Ae){C.CHM(X);const ye=C.oxw(2);return C.KtG(ye.searchEntities(Ae,"facility"))}),C.qZA()}if(2&tt){const X=C.oxw(2);C.Q6J("attributes",X.allAttrDefinitions)("attributesForEntity","facility")}}const le=function(){return["id","name","description"]};function k(tt,vt){if(1&tt&&C._UZ(0,"perun-web-apps-facilities-list",16),2&tt){const X=C.oxw(2);C.Q6J("tableId",X.tableId)("displayedColumns",C.DdM(3,le))("facilities",X.entities)}}function N(tt,vt){if(1&tt&&(C.YNc(0,se,1,2,"perun-web-apps-attribute-search-select",6),C.YNc(1,k,1,4,"perun-web-apps-facilities-list",15)),2&tt){const X=C.oxw();C.Q6J("ngIf",!X.loading),C.xp6(1),C.Q6J("ngIf",!X.loadingEntityData)}}function be(tt,vt){1&tt&&(C._uU(0),C.ALo(1,"translate")),2&tt&&C.hij(" ",C.lcZ(1,1,"ADMIN.SEARCHER.TAB_RESOURCES")," ")}function Z(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"perun-web-apps-attribute-search-select",8),C.NdJ("search",function(Ae){C.CHM(X);const ye=C.oxw(2);return C.KtG(ye.searchEntities(Ae,"resource"))}),C.qZA()}if(2&tt){const X=C.oxw(2);C.Q6J("attributes",X.allAttrDefinitions)("attributesForEntity","resource")}}const de=function(){return["id","name","description","voId","facilityId"]};function xe(tt,vt){if(1&tt&&C._UZ(0,"perun-web-apps-resources-list",18),2&tt){const X=C.oxw(2);C.Q6J("tableId",X.tableId)("displayedColumns",C.DdM(3,de))("resources",X.entities)}}function ot(tt,vt){if(1&tt&&(C.YNc(0,Z,1,2,"perun-web-apps-attribute-search-select",6),C.YNc(1,xe,1,4,"perun-web-apps-resources-list",17)),2&tt){const X=C.oxw();C.Q6J("ngIf",!X.loading),C.xp6(1),C.Q6J("ngIf",!X.loadingEntityData)}}function Fe(tt,vt){1&tt&&C._UZ(0,"mat-spinner",19)}let ut=(()=>{class tt{constructor(X,nt,Ae){this.attributesManager=X,this.searcher=nt,this.voService=Ae,this.loadingEntityData=!1,this.allAttrDefinitions=[],this.tableId=A.ee,this.entities=[],this.vos=[]}ngOnInit(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(X=>{this.allAttrDefinitions=X,this.loading=!1})}tabChanged(X){switch(this.entities=[],X){case 0:this.tableId=A.ee;break;case 1:this.loadingEntityData=!0,this.loadAllVos(),this.tableId=A.FF;break;case 2:this.tableId=A.$I;break;case 3:this.tableId=A.XH}}loadAllVos(){this.loadingEntityData=!0,this.voService.getAllVos().subscribe(X=>{this.vos=X,this.selectedVo=X[0],this.loadingEntityData=!1})}voSelected(X){void 0!==X&&(this.selectedVo=X)}searchEntities(X,nt){switch(this.searchInput=X,this.loadingEntityData=!0,nt){case"user":this.getUsers();break;case"member":this.getMembers();break;case"facility":this.getFacilities();break;case"resource":this.getResources()}}getUsers(){this.searcher.getUsersSearcher({attributesWithSearchingValues:this.searchInput}).subscribe(X=>{this.entities=X,this.loadingEntityData=!1})}getMembers(){this.searcher.getMembersByUserAttributes({vo:this.selectedVo.id,userAttributesWithSearchingValues:this.searchInput}).subscribe(X=>{this.entities=X,this.loadingEntityData=!1})}getFacilities(){this.searcher.getFacilities({attributesWithSearchingValues:this.searchInput}).subscribe(X=>{this.entities=X.map(nt=>({facility:nt})),this.loadingEntityData=!1})}getResources(){this.searcher.getAttributesResources({attributesWithSearchingValues:this.searchInput}).subscribe(X=>{this.entities=X,this.loadingEntityData=!1})}}return tt.id="AdminSearcherComponent",tt.\u0275fac=function(X){return new(X||tt)(C.Y36(e.H8),C.Y36(e.t7),C.Y36(e.YF))},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["app-admin-searcher"]],hostVars:2,hostBindings:function(X,nt){2&X&&C.ekj("router-component",nt.true)},decls:17,vars:4,consts:[[1,"page-subtitle"],[3,"selectedIndexChange"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","attributesForEntity","search",4,"ngIf"],[3,"tableId","displayedColumns","users",4,"ngIf"],[3,"attributes","attributesForEntity","search"],[3,"tableId","displayedColumns","users"],[1,"mt-3"],[3,"vos","voSelected",4,"ngIf"],[3,"tableId","displayedColumns","disableStatusChange","disableExpirationChange","members","updateTable",4,"ngIf"],[3,"vos","voSelected"],[3,"tableId","displayedColumns","disableStatusChange","disableExpirationChange","members","updateTable"],[3,"tableId","displayedColumns","facilities",4,"ngIf"],[3,"tableId","displayedColumns","facilities"],[3,"tableId","displayedColumns","resources",4,"ngIf"],[3,"tableId","displayedColumns","resources"],[1,"ml-auto","mr-auto"]],template:function(X,nt){1&X&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"mat-tab-group",1),C.NdJ("selectedIndexChange",function(ye){return nt.tabChanged(ye)}),C.TgZ(4,"mat-tab",2),C.YNc(5,W,2,3,"ng-template",3),C.YNc(6,Q,2,2,"ng-template",4),C.qZA(),C.TgZ(7,"mat-tab"),C.YNc(8,Ee,2,3,"ng-template",3),C.YNc(9,Ye,4,3,"ng-template",4),C.qZA(),C.TgZ(10,"mat-tab"),C.YNc(11,Be,2,3,"ng-template",3),C.YNc(12,N,2,2,"ng-template",4),C.qZA(),C.TgZ(13,"mat-tab"),C.YNc(14,be,2,3,"ng-template",3),C.YNc(15,ot,2,2,"ng-template",4),C.qZA()(),C.YNc(16,Fe,1,0,"mat-spinner",5)),2&X&&(C.xp6(1),C.Oqu(C.lcZ(2,2,"ADMIN.SEARCHER.TITLE")),C.xp6(15),C.Q6J("ngIf",nt.loading||nt.loadingEntityData))},dependencies:[M.O5,m.SP,m.uD,m.uX,m.Vc,b.Ou,D.C,v.C,R.M,B.O,w.X,T,Te.X$]}),tt})()},80774:(Xe,ue,p)=>{"use strict";p.d(ue,{F:()=>T});var e=p(95017),A=p(61744),C=p(10036),M=p(9244),m=p(40009),b=p(90719),D=p(81591),v=p(94650),R=p(65412),B=p(36895),w=p(4859),L=p(51572),O=p(60205),q=p(96214),ee=p(7434),z=p(89383);function ie(W,F){if(1&W){const V=v.EpF();v.TgZ(0,"button",7),v.NdJ("click",function(){v.CHM(V);const Q=v.oxw();return v.KtG(Q.createService())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&W&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"ADMIN.SERVICES.CREATE")," "))}function Te(W,F){if(1&W){const V=v.EpF();v.TgZ(0,"button",8),v.NdJ("click",function(){v.CHM(V);const Q=v.oxw();return v.KtG(Q.deleteService())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&W){const V=v.oxw();v.Q6J("disabled",0===V.selection.selected.length),v.xp6(1),v.hij(" ",v.lcZ(2,2,"ADMIN.SERVICES.DELETE")," ")}}function pe(W,F){1&W&&v._UZ(0,"mat-spinner",9)}function Le(W,F){if(1&W&&v._UZ(0,"app-services-list",10),2&W){const V=v.oxw();v.Q6J("filterValue",V.filterValue)("selection",V.selection)("services",V.services)("tableId",V.tableId)}}let T=(()=>{class W{constructor(V,te,Q){this.serviceManager=V,this.dialog=te,this.authResolver=Q,this.selection=new e.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=C.NL}ngOnInit(){this.serviceManager.getServices().subscribe(V=>{this.services=V,this.refreshTable()})}createService(){const V=(0,M.kZ)();V.width="600px",V.data={theme:"admin-theme"},this.dialog.open(m.R,V).afterClosed().subscribe(Q=>{Q&&this.refreshTable()})}deleteService(){const V=(0,M.kZ)();V.width="600px",V.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(b.m,V).afterClosed().subscribe(Q=>{Q&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(V=>{this.services=V,this.selection.clear(),this.loading=!1})}applyFilter(V){this.filterValue=V}}return W.id="AdminServicesComponent",W.\u0275fac=function(V){return new(V||W)(v.Y36(A.KK),v.Y36(R.uw),v.Y36(D.x4))},W.\u0275cmp=v.Xpm({type:W,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button mr-2","data-cy","service-create-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","data-cy","service-delete-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"filterValue","selection","services","tableId",4,"ngIf"],["color","accent","data-cy","service-create-button","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","data-cy","service-delete-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"filterValue","selection","services","tableId"]],template:function(V,te){1&V&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return te.refreshTable()}),v.qZA(),v.YNc(5,ie,3,3,"button",2),v.YNc(6,Te,3,4,"button",3),v.TgZ(7,"perun-web-apps-immediate-filter",4),v.NdJ("filter",function(Ee){return te.applyFilter(Ee)}),v.qZA(),v.YNc(8,pe,1,0,"mat-spinner",5),v.YNc(9,Le,1,4,"app-services-list",6),v.qZA()),2&V&&(v.xp6(2),v.Oqu(v.lcZ(3,6,"ADMIN.SERVICES.TITLE")),v.xp6(3),v.Q6J("ngIf",te.authResolver.isPerunAdmin()),v.xp6(1),v.Q6J("ngIf",te.authResolver.isPerunAdmin()),v.xp6(1),v.Q6J("placeholder","ADMIN.SERVICES.FILTER"),v.xp6(1),v.Q6J("ngIf",te.loading),v.xp6(1),v.Q6J("ngIf",!te.loading))},dependencies:[B.O5,w.lW,L.Ou,O.Q,q.t,ee.L,z.X$]}),W})()},25828:(Xe,ue,p)=>{"use strict";p.d(ue,{t:()=>w});var e=p(10036),A=p(64080),C=p(81591),M=p(94650),m=p(56709),b=p(96214),D=p(64901),v=p(11447),R=p(89383);const B=function(){return["user","id","name","email","logins","organization"]};let w=(()=>{class L{constructor(q){this.storeService=q,this.usersWithoutVo=!1,this.tableId=e.xx,this.attributes=[],this.update=!1}ngOnInit(){this.attributes=[A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(q){this.searchString=q}findUsersWithoutVO(){this.usersWithoutVo=!this.usersWithoutVo}refresh(){this.update=!this.update}}return L.id="AdminUsersComponent",L.\u0275fac=function(q){return new(q||L)(M.Y36(C.d6))},L.\u0275cmp=M.Xpm({type:L,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(q,ee){2&q&&M.ekj("router-component",ee.true)},decls:9,vars:17,consts:[[1,"page-subtitle"],[3,"click"],[1,"mt-2","search-field",3,"autoFocus","placeholder","filter"],["color","primary",3,"checked","change"],[3,"disableRouting","searchString","attrNames","displayedColumns","tableId","withoutVo","updateTable"]],template:function(q,ee){1&q&&(M.TgZ(0,"h1",0),M._uU(1),M.ALo(2,"translate"),M.qZA(),M.TgZ(3,"perun-web-apps-refresh-button",1),M.NdJ("click",function(){return ee.refresh()}),M.qZA(),M.TgZ(4,"perun-web-apps-debounce-filter",2),M.NdJ("filter",function(ie){return ee.onSearchByString(ie)}),M.qZA(),M.TgZ(5,"mat-checkbox",3),M.NdJ("change",function(){return ee.findUsersWithoutVO()}),M._uU(6),M.ALo(7,"translate"),M.qZA(),M._UZ(8,"perun-web-apps-users-dynamic-list",4)),2&q&&(M.xp6(1),M.Oqu(M.lcZ(2,12,"ADMIN.USERS.TITLE")),M.xp6(3),M.Q6J("autoFocus",!0)("placeholder","ADMIN.USERS.SEARCH_PLACEHOLDER"),M.xp6(1),M.Q6J("checked",ee.usersWithoutVo),M.xp6(1),M.hij(" ",M.lcZ(7,14,"ADMIN.USERS.USERS_WITHOUT_VO"),"\n"),M.xp6(2),M.Q6J("disableRouting",!1)("searchString",ee.searchString)("attrNames",ee.attributes)("displayedColumns",M.DdM(16,B))("tableId",ee.tableId)("withoutVo",ee.usersWithoutVo)("updateTable",ee.update))},dependencies:[m.oG,b.t,D.P,v.M,R.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),L})()},72077:(Xe,ue,p)=>{"use strict";p.d(ue,{y:()=>F});var e=p(81591),A=p(17445),C=p(80529),M=p(9244),m=p(94650),b=p(65412),D=p(4859),v=p(89383);let R=(()=>{class V{constructor(Q){this.dialogRef=Q}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return V.\u0275fac=function(Q){return new(Q||V)(m.Y36(b.so))},V.\u0275cmp=m.Xpm({type:V,selectors:[["app-new-version-dialog"]],decls:15,vars:12,consts:[["mat-dialog-title",""],[1,"user-theme"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(Q,Ee){1&Q&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div",1)(4,"div",2)(5,"p"),m._uU(6),m.ALo(7,"translate"),m.qZA()(),m.TgZ(8,"div",3)(9,"button",4),m.NdJ("click",function(){return Ee.onClose()}),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.TgZ(12,"button",5),m.NdJ("click",function(){return Ee.onReload()}),m._uU(13),m.ALo(14,"translate"),m.qZA()()()),2&Q&&(m.xp6(1),m.Oqu(m.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),m.xp6(5),m.hij(" ",m.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),m.xp6(4),m.hij(" ",m.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),m.xp6(3),m.hij(" ",m.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},dependencies:[D.lW,b.uh,b.xY,b.H8,v.X$]}),V})();var B=p(94364),w=p(39300),L=p(40034);let O=(()=>{class V{constructor(Q,Ee){this.router=Q,this.routeReuseStrategy=Ee;const ge=Ee;Q.events.subscribe(ve=>{ve instanceof B.OD&&ge.setLastNavigationType("popstate"===ve.navigationTrigger?"back":"direct")})}init(){}}return V.\u0275fac=function(Q){return new(Q||V)(m.LFG(B.F0),m.LFG(B.wN))},V.\u0275prov=m.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const q=["footer"];function ee(V,te){if(1&V&&(m.TgZ(0,"div",3)(1,"mat-icon"),m._uU(2,"alert"),m.qZA(),m._uU(3),m.qZA()),2&V){const Q=m.oxw();m.xp6(3),m.hij(" ",Q.warningMessage,"\n")}}const z=function(V,te){return{top:V,background:te}},ie=function(V,te){return{"margin-top":V,"min-height":te}},Te=function(V,te){return{"border-color":V,background:te}},pe=function(V){return{"background-color":V}},Le=function(V){return{"min-height":V}};function T(V,te){if(1&V){const Q=m.EpF();m.TgZ(0,"perun-web-apps-header",4),m.NdJ("sidenavToggle",function(){m.CHM(Q);const ge=m.MAs(3);return m.KtG(ge.toggle())}),m.qZA(),m.TgZ(1,"mat-sidenav-container",5)(2,"mat-sidenav",6,7)(4,"ng-scrollbar"),m._UZ(5,"app-side-menu",8),m.qZA()(),m.TgZ(6,"mat-sidenav-content",9)(7,"div",10),m._UZ(8,"router-outlet"),m.qZA(),m.TgZ(9,"div",null,11),m._UZ(11,"perun-web-apps-footer"),m.qZA()()()}if(2&V){const Q=m.MAs(3),Ee=m.oxw();m.Q6J("ngStyle",m.WLB(12,z,Ee.getNavMenuTop(),Ee.navBackgroundColor))("otherApp",Ee.otherApp)("showNotifications",!0),m.xp6(1),m.Q6J("ngStyle",m.WLB(15,ie,Ee.getSideNavMarginTop(),Ee.getSideNavMinHeight())),m.xp6(1),m.Q6J("fixedInViewport",!0)("mode",Ee.sidebarMode)("fixedTopGap",Ee.getTopGap())("ngStyle",m.WLB(18,Te,Ee.sideBarBorderColor,Ee.sideMenubackgroundColor))("opened",!Ee.isMobile()),m.xp6(3),m.Q6J("sideNav",Q),m.xp6(1),m.Q6J("ngStyle",m.VKq(21,pe,Ee.contentBackgroundColor)),m.xp6(1),m.Q6J("ngStyle",m.VKq(23,Le,Ee.contentInnerMinHeight))}}function W(V,te){1&V&&m._UZ(0,"perun-web-apps-login-screen-base",12),2&V&&m.Q6J("application","admin-gui")}let F=(()=>{class V{constructor(Q,Ee,ge,ve,De,he,Ye,Be){this.cache=Q,this.store=Ee,this.http=ge,this.dialog=ve,this.router=De,this.initAuth=he,this.authService=Ye,this.cd=Be,this.otherApp=L.p.Profile,this.sidebarMode="side",this.theme=this.store.getProperty("theme"),this.navBackgroundColor=this.theme.nav_bg_color,this.sideBarBorderColor=this.theme.sidemenu_border_color,this.contentBackgroundColor=this.theme.content_bg_color,this.sideMenubackgroundColor=this.theme.sidemenu_bg_color,this.displayWarning=this.store.getProperty("display_warning"),this.warningMessage=this.store.getProperty("warning_message"),this.version=p(4147).i8,this.contentInnerMinHeight=this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)",this.cache.init(),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side",this.lastScreenWidth=window.innerWidth}isLoggedIn(){return!this.authService.isLoggedIn()&&!this.initAuth.isServiceAccess()}isMobile(){return window.innerWidth<=V.minWidth}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),null===sessionStorage.getItem("initPage")&&(sessionStorage.setItem("initPage",location.pathname),sessionStorage.setItem("onInitPage","true")),this.store.setInitialPageId(1),this.principal=this.store.getPerunPrincipal(),this.loadAppVersion(),(0,A.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,w.h)(Q=>Q instanceof B.OD)).subscribe(Q=>{this.updateInitAccessedPage(Q)})}getTopGap(){return this.displayWarning?112:64}getSideNavMarginTop(){return this.displayWarning?"112px":"64px"}getSideNavMinHeight(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}getNavMenuTop(){return this.displayWarning?"48px":"0"}ngAfterViewInit(){const Q=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentInnerMinHeight=this.displayWarning?"calc(100vh - "+Q+"px - 112px)":"calc(100vh - "+Q+"px - 64px)",this.cd.detectChanges()}updateInitAccessedPage(Q){Q.url===sessionStorage.getItem("initPage")?("imperative"===Q.navigationTrigger&&Q.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===Q.navigationTrigger&&(Q.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(Q.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const Q=new C.WM({"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"});this.http.get("/assets/config/version.json",{headers:Q}).subscribe(Ee=>{const ge=Ee.version;if(ge)if(this.version&&"SNAPSHOT"!==ge&&this.version!==ge){const ve=(0,M.kZ)();this.dialog.open(R,ve)}else this.version=ge})}}return V.minWidth=992,V.\u0275fac=function(Q){return new(Q||V)(m.Y36(O),m.Y36(e.d6),m.Y36(C.eN),m.Y36(b.uw),m.Y36(B.F0),m.Y36(e.v0),m.Y36(e.e8),m.Y36(m.sBO))},V.\u0275cmp=m.Xpm({type:V,selectors:[["app-root"]],viewQuery:function(Q,Ee){if(1&Q&&m.Gf(q,5),2&Q){let ge;m.iGM(ge=m.CRH())&&(Ee.footer=ge.first)}},hostBindings:function(Q,Ee){1&Q&&m.NdJ("resize",function(ve){return Ee.getScreenSize(ve)},!1,m.Jf7)},decls:4,vars:4,consts:[["class","beta-warning",4,"ngIf"],[3,"displayWarning"],[3,"ngIf"],[1,"beta-warning"],["id","nav-menu",1,"mat-elevation-z3",3,"ngStyle","otherApp","showNotifications","sidenavToggle"],["autosize","true",3,"ngStyle"],[3,"fixedInViewport","mode","fixedTopGap","ngStyle","opened"],["sidenav",""],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application"]],template:function(Q,Ee){1&Q&&(m.YNc(0,ee,4,1,"div",0),m._UZ(1,"perun-web-apps-notificator",1),m.YNc(2,T,12,25,"ng-template",2),m.YNc(3,W,1,1,"ng-template",2)),2&Q&&(m.Q6J("ngIf",Ee.displayWarning),m.xp6(1),m.Q6J("displayWarning",Ee.displayWarning),m.xp6(1),m.Q6J("ngIf",!Ee.isLoginScreenShow&&!Ee.isServiceAccess&&!Ee.isLoggedIn()),m.xp6(1),m.Q6J("ngIf",Ee.isLoginScreenShow||Ee.isServiceAccess||Ee.isLoggedIn()))},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px}.beta-warning[_ngcontent-%COMP%]{overflow:hidden;height:48px;position:fixed;z-index:999;top:0;background-color:#ffbfc5;width:100%;color:#d32f2f;text-align:center;font-weight:500;padding:6px;line-height:36px;font-size:1rem}ng-scrollbar[_ngcontent-%COMP%]{--scrollbar-thumb-color: #6a6a6a;--scrollbar-thumb-hover-color: lightgrey}"]}),V})()},77968:(Xe,ue,p)=>{"use strict";p.d(ue,{D:()=>A});var e=p(94650);let A=(()=>{class C{constructor(){this.accessItemsChange=new e.vpe,this.facilityItemsChange=new e.vpe,this.adminItemsChange=new e.vpe,this.userItemsChange=new e.vpe,this.resetChange=new e.vpe,this.homeItemsChange=new e.vpe}setHomeItems(m){this.homeItemsChange.emit(m)}setAccessMenuItems(m){this.accessItemsChange.emit(m)}setFacilityMenuItems(m){this.facilityItemsChange.emit(m)}setAdminItems(m){this.adminItemsChange.emit(m)}setUserItems(m){this.userItemsChange.emit(m)}reset(){this.resetChange.emit()}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275prov=e.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})()},37380:(Xe,ue,p)=>{"use strict";p.d(ue,{o:()=>Te});var e=p(61744),A=p(10036),C=p(81591),M=p(94650),m=p(36895),b=p(3238),D=p(59549),v=p(84385),R=p(51572),B=p(25788),w=p(96214),L=p(7434),O=p(89383);function q(pe,Le){if(1&pe&&(M.TgZ(0,"mat-option",9),M._uU(1),M.qZA()),2&pe){const T=Le.$implicit;M.Q6J("value",T.id),M.xp6(1),M.hij(" ",T.name," ")}}function ee(pe,Le){1&pe&&M._UZ(0,"mat-spinner",10)}const z=function(){return["id","vo","name","description"]};function ie(pe,Le){if(1&pe&&M._UZ(0,"perun-web-apps-groups-list",11),2&pe){const T=M.oxw();M.Q6J("displayedColumns",M.DdM(6,z))("groups",T.groupsToShow)("disableMembers",!1)("filter",T.filterValue)("groupsToDisableRouting",T.groupsWithoutRouteAuth)("tableId",T.tableId)}}let Te=(()=>{class pe{constructor(T,W,F){this.facilityManager=T,this.authResolver=W,this.entityStorageService=F,this.groups=[],this.filterValue="",this.selected="all",this.groupsToShow=this.groups,this.tableId=A.Aj,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.facilityManager.getAllowedVos(this.facility.id).subscribe(T=>{this.vos=T,this.refreshTable()})}showGroup(){this.groupsToShow="all"!==this.selected?this.groups.filter(T=>T.voId===parseInt(this.selected,10)):this.groups}refreshTable(){this.loading=!0,this.groups=[],this.facilityManager.getAllowedGroups(this.facility.id).subscribe(T=>{this.groups=this.groups.concat(T),this.groupsToShow=this.groups,this.setAuthRights(T),this.loading=!1}),0===this.vos.length&&(this.loading=!1)}setAuthRights(T){T.forEach(W=>{this.authResolver.isAuthorized("getGroupById_int_policy",[W])||this.groupsWithoutRouteAuth.add(W.id)})}applyFilter(T){this.filterValue=T}}return pe.id="FacilityAllowedGroupsComponent",pe.\u0275fac=function(T){return new(T||pe)(M.Y36(e.IQ),M.Y36(C.x4),M.Y36(C.fb))},pe.\u0275cmp=M.Xpm({type:pe,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(T,W){2&T&&M.ekj("router-component",W.true)},inputs:{groups:"groups"},decls:17,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],[1,"mr-2"],[3,"value","selectionChange","valueChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId",4,"ngIf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId"]],template:function(T,W){1&T&&(M.TgZ(0,"div")(1,"h1",0),M._uU(2),M.ALo(3,"translate"),M.qZA(),M.TgZ(4,"perun-web-apps-refresh-button",1),M.NdJ("refresh",function(){return W.refreshTable()}),M.qZA(),M.TgZ(5,"mat-form-field",2)(6,"mat-label"),M._uU(7),M.ALo(8,"translate"),M.qZA(),M.TgZ(9,"mat-select",3),M.NdJ("selectionChange",function(){return W.showGroup()})("valueChange",function(V){return W.selected=V}),M.TgZ(10,"mat-option",4),M._uU(11),M.ALo(12,"translate"),M.qZA(),M.YNc(13,q,2,2,"mat-option",5),M.qZA()(),M.TgZ(14,"perun-web-apps-immediate-filter",6),M.NdJ("filter",function(V){return W.applyFilter(V)}),M.qZA(),M.YNc(15,ee,1,0,"mat-spinner",7),M.YNc(16,ie,1,7,"perun-web-apps-groups-list",8),M.qZA()),2&T&&(M.xp6(2),M.Oqu(M.lcZ(3,8,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),M.xp6(5),M.Oqu(M.lcZ(8,10,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),M.xp6(2),M.Q6J("value",W.selected),M.xp6(2),M.Oqu(M.lcZ(12,12,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),M.xp6(2),M.Q6J("ngForOf",W.vos),M.xp6(1),M.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),M.xp6(1),M.Q6J("ngIf",W.loading),M.xp6(1),M.Q6J("ngIf",!W.loading))},dependencies:[m.sg,m.O5,b.ey,D.KE,D.hX,v.gD,R.Ou,B.W,w.t,L.L,O.X$]}),pe})()},25610:(Xe,ue,p)=>{"use strict";p.d(ue,{_:()=>ve});var e=p(10036),A=p(61744),C=p(81591),M=p(64080),m=p(24006),b=p(94650),D=p(36895),v=p(3238),R=p(59549),B=p(84385),w=p(51572),L=p(90455),O=p(96214),q=p(62707),ee=p(45703),z=p(64901),ie=p(11447),Te=p(30540),pe=p(97392),Le=p(4859),T=p(89383);let W=(()=>{class De{constructor(){this.changeAdvancedFilter=new b.vpe,this.clearFilters=new b.vpe}ngOnInit(){this.changeAdvancedFilter.emit(this.advancedFilter)}toggleAdvancedFilter(){this.advancedFilter=!this.advancedFilter,this.changeAdvancedFilter.emit(this.advancedFilter)}}return De.\u0275fac=function(Ye){return new(Ye||De)},De.\u0275cmp=b.Xpm({type:De,selectors:[["perun-web-apps-advanced-filter"]],inputs:{filtersCount:"filtersCount",advancedFilter:"advancedFilter"},outputs:{changeAdvancedFilter:"changeAdvancedFilter",clearFilters:"clearFilters"},decls:12,vars:11,consts:[["mat-stroked-button","",3,"click"]],template:function(Ye,Be){1&Ye&&(b.TgZ(0,"button",0),b.NdJ("click",function(){return Be.toggleAdvancedFilter()}),b.TgZ(1,"mat-icon"),b._uU(2,"filter_list"),b.qZA(),b._uU(3),b.ALo(4,"translate"),b.TgZ(5,"mat-icon"),b._uU(6),b.qZA()(),b.TgZ(7,"button",0),b.NdJ("click",function(){return Be.clearFilters.emit()}),b.TgZ(8,"mat-icon"),b._uU(9,"filter_list_off"),b.qZA(),b._uU(10),b.ALo(11,"translate"),b.qZA()),2&Ye&&(b.Gre("mr-2 ",Be.filtersCount?"grey":"no-color",""),b.xp6(3),b.AsE(" ",b.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",Be.filtersCount?"("+Be.filtersCount+")":null," "),b.xp6(3),b.Oqu(Be.advancedFilter?"arrow_drop_up":"arrow_drop_down"),b.xp6(4),b.hij(" ",b.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},dependencies:[pe.Hw,Le.lW,T.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:gray}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),De})();function F(De,he){if(1&De&&(b.TgZ(0,"mat-option",19),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&De){const Ye=he.$implicit;b.Q6J("value",Ye),b.xp6(1),b.Oqu(b.lcZ(2,2,"CONSENTS.STATUS_"+Ye))}}function V(De,he){if(1&De){const Ye=b.EpF();b.TgZ(0,"mat-form-field",16)(1,"mat-label"),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"mat-select",17),b.NdJ("closed",function(){b.CHM(Ye);const se=b.oxw(2);return b.KtG(se.consentStatusSelected())}),b.TgZ(5,"mat-select-trigger"),b._uU(6),b.qZA(),b.YNc(7,F,3,4,"mat-option",18),b.qZA()()}if(2&De){const Ye=b.oxw(2);b.xp6(2),b.Oqu(b.lcZ(3,4,"CONSENTS.STATUS")),b.xp6(2),b.Q6J("formControl",Ye.statuses),b.xp6(2),b.hij(" ",Ye.displaySelectedStatuses()," "),b.xp6(1),b.Q6J("ngForOf",Ye.consentStatusesList)}}function te(De,he){if(1&De){const Ye=b.EpF();b.TgZ(0,"div",8)(1,"div",9)(2,"mat-slide-toggle",10),b.NdJ("ngModelChange",function(se){b.CHM(Ye);const le=b.oxw();return b.KtG(le.allowed=se)})("change",function(){b.CHM(Ye);const se=b.oxw();return b.KtG(se.changeFilter())}),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.TgZ(5,"span",11),b._uU(6),b.ALo(7,"translate"),b.qZA()(),b.TgZ(8,"div",1)(9,"perun-web-apps-vo-search-select",12),b.NdJ("voSelected",function(se){b.CHM(Ye);const le=b.oxw();return b.KtG(le.voSelected(se))}),b.qZA(),b.TgZ(10,"perun-web-apps-resource-search-select",13),b.NdJ("resourceSelected",function(se){b.CHM(Ye);const le=b.oxw();return b.KtG(le.resourceSelected(se))}),b.qZA(),b.TgZ(11,"perun-web-apps-service-search-select",14),b.NdJ("serviceSelected",function(se){b.CHM(Ye);const le=b.oxw();return b.KtG(le.serviceSelected(se))}),b.qZA(),b.YNc(12,V,8,6,"mat-form-field",15),b.qZA()()}if(2&De){const Ye=b.oxw();b.xp6(2),b.Q6J("ngModel",Ye.allowed),b.xp6(1),b.hij(" ",b.lcZ(4,11,"FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED")," "),b.xp6(3),b.Oqu(b.lcZ(7,13,Ye.toggle_messages[Ye.allowed?1:0])),b.xp6(3),b.Q6J("vos",Ye.vos)("vo",Ye.selectedVo),b.xp6(1),b.Q6J("resources",Ye.filteredResources)("displayStatus",!1)("resource",Ye.selectedResource),b.xp6(1),b.Q6J("services",Ye.filteredServices)("service",Ye.selectedService),b.xp6(1),b.Q6J("ngIf",Ye.globalForceConsents&&Ye.facilityForceConsents)}}function Q(De,he){1&De&&b._UZ(0,"mat-spinner",20)}const Ee=function(){return["id","name","email","logins","organization"]};function ge(De,he){if(1&De&&b._UZ(0,"perun-web-apps-users-dynamic-list",21),2&De){const Ye=b.oxw();b.Q6J("attrNames",Ye.attributes)("disableRouting",!Ye.routeAuth)("displayedColumns",b.DdM(12,Ee))("onlyAllowed",Ye.allowed)("facilityId",Ye.facility.id)("searchString",Ye.filterValue)("resourceId",-1===Ye.selectedResource.id?null:Ye.selectedResource.id)("serviceId",-1===Ye.selectedService.id?null:Ye.selectedService.id)("tableId",Ye.tableId)("voId",-1===Ye.selectedVo.id?null:Ye.selectedVo.id)("consentStatuses",Ye.selectedConsentStatuses)("includeConsents",Ye.globalForceConsents&&Ye.facilityForceConsents)}}let ve=(()=>{class De{constructor(Ye,Be,se,le,k,N,be,Z){this.facilityService=Ye,this.serviceService=Be,this.resourceService=se,this.authResolver=le,this.storeService=k,this.entityStorageService=N,this.consentService=be,this.translate=Z,this.loading=!1,this.filterValue="",this.attributes=[],this.allowed=!0,this.emptyResource={id:-1,beanName:"Resource",name:"No filter"},this.resources=[this.emptyResource],this.filteredResources=[this.emptyResource],this.selectedResource=this.emptyResource,this.emptyVo={id:-1,beanName:"Vo",name:"No filter"},this.vos=[this.emptyVo],this.selectedVo=this.emptyVo,this.emptyService={id:-1,beanName:"Service",name:"No filter"},this.services=[this.emptyService],this.filteredServices=[this.emptyService],this.selectedService=this.emptyService,this.consentStatusesList=["UNSIGNED","GRANTED","REVOKED"],this.selectedConsentStatuses=[],this.resourceAssignedServices=new Map,this.tableId=e.z6,this.toggle_messages=["FACILITY_DETAIL.ALLOWED_USERS.FILTER_ASSIGNED_MSG","FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED_MSG"],this.advancedFilter=!1}ngOnInit(){this.loading=!0,this.statuses=new m.NI(this.selectedConsentStatuses),this.attributes=[M.r.USER_DEF_ORGANIZATION,M.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames()),this.facility=this.entityStorageService.getEntity(),this.globalForceConsents=this.storeService.getProperty("enforce_consents"),this.consentService.getConsentHubByFacility(this.facility.id).subscribe(Ye=>{this.facilityForceConsents=Ye.enforceConsents}),this.routeAuth=this.authResolver.isPerunAdminOrObserver(),this.changeFilter(),this.refreshPage()}changeFilter(){this.filtersCount=this.allowed?1:0,-1!==this.selectedVo.id&&(this.filtersCount+=1),-1!==this.selectedResource.id&&(this.filtersCount+=1),-1!==this.selectedService.id&&(this.filtersCount+=1),this.selectedConsentStatuses.length>0&&(this.filtersCount+=1)}clearFilters(){this.allowed=!1,this.selectedVo=this.emptyVo,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,this.selectedConsentStatuses=[],this.statuses.setValue(this.selectedConsentStatuses),this.filtersCount=0}refreshPage(){this.loading=!0,this.facilityService.getAssignedResourcesForFacility(this.facility.id).subscribe(Ye=>{this.resources=[this.emptyResource].concat(Ye),this.filteredResources=this.resources,this.facilityService.getAllowedVos(this.facility.id).subscribe(Be=>{this.vos=[this.emptyVo].concat(Be),this.serviceService.getAssignedServices(this.facility.id).subscribe(se=>{this.services=[this.emptyService].concat(se),this.filteredServices=this.services,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(Ye){this.filterValue=Ye}voSelected(Ye){this.selectedVo.id!==Ye.id&&(this.selectedVo=Ye,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,-1===Ye.id?(this.filteredResources=this.resources,this.filteredServices=this.services):(this.filteredResources=this.resources.filter(Be=>Be.voId===Ye.id),this.serviceService.getAssignedServicesVo(this.facility.id,Ye.id).subscribe(Be=>{this.filteredServices=[this.emptyService].concat(Be),this.loading=!1},()=>this.loading=!1),this.filteredResources=[this.emptyResource].concat(this.filteredResources)),this.changeFilter())}resourceSelected(Ye){this.selectedResource.id!==Ye.id&&(this.selectedResource=Ye,this.selectedService=this.emptyService,-1===Ye.id?this.filteredServices=this.services:this.resourceService.getAssignedServicesToResource(Ye.id).subscribe(Be=>{this.filteredServices=[this.emptyService].concat(Be),this.loading=!1},()=>this.loading=!1),this.changeFilter())}serviceSelected(Ye){this.selectedService=Ye,this.changeFilter()}consentStatusSelected(){this.selectedConsentStatuses=this.statuses.value,this.changeFilter()}displaySelectedStatuses(){if(this.selectedConsentStatuses.length===this.consentStatusesList.length)return"ALL";const Ye=this.statuses.value;return Ye?`${this.translate.instant("CONSENTS.STATUS_"+Ye[0])} ${Ye.length>1?"(+"+(Ye.length-1).toString()+" "+(2===Ye.length?"other)":"others)"):""}`:""}}return De.id="FacilityAllowedUsersComponent",De.\u0275fac=function(Ye){return new(Ye||De)(b.Y36(A.IQ),b.Y36(A.KK),b.Y36(A.xk),b.Y36(C.x4),b.Y36(C.d6),b.Y36(C.fb),b.Y36(A.WY),b.Y36(C.Te))},De.\u0275cmp=b.Xpm({type:De,selectors:[["app-facility-allowed-users"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[1,"filters"],[1,"mr-2",3,"refresh"],[1,"mr-2","filter",3,"placeholder","filter"],[3,"advancedFilter","filtersCount","changeAdvancedFilter","clearFilters"],["class","advanced-filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId","consentStatuses","includeConsents",4,"ngIf"],[1,"advanced-filter"],[1,"toggle","filters"],["labelPosition","before",1,"mr-2",3,"ngModel","ngModelChange","change"],[1,"text-muted"],[1,"search-select",3,"vos","vo","voSelected"],[1,"search-select",3,"resources","displayStatus","resource","resourceSelected"],[1,"search-select",3,"services","service","serviceSelected"],["class","search-select",4,"ngIf"],[1,"search-select"],["multiple","",3,"formControl","closed"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId","consentStatuses","includeConsents"]],template:function(Ye,Be){1&Ye&&(b.TgZ(0,"div")(1,"h1",0),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),b.NdJ("refresh",function(){return Be.refreshPage()}),b.qZA(),b.TgZ(6,"perun-web-apps-debounce-filter",3),b.NdJ("filter",function(le){return Be.applyFilter(le)}),b.qZA(),b.TgZ(7,"perun-web-apps-advanced-filter",4),b.NdJ("changeAdvancedFilter",function(le){return Be.advancedFilter=le})("clearFilters",function(){return Be.clearFilters()}),b.qZA()(),b.YNc(8,te,13,15,"div",5),b.YNc(9,Q,1,0,"mat-spinner",6),b.YNc(10,ge,1,13,"perun-web-apps-users-dynamic-list",7),b.qZA()),2&Ye&&(b.xp6(2),b.Oqu(b.lcZ(3,7,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),b.xp6(4),b.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),b.xp6(1),b.Q6J("advancedFilter",Be.advancedFilter)("filtersCount",Be.filtersCount),b.xp6(1),b.Q6J("ngIf",Be.advancedFilter),b.xp6(1),b.Q6J("ngIf",Be.loading),b.xp6(1),b.Q6J("ngIf",!Be.loading))},dependencies:[D.sg,D.O5,v.ey,R.KE,R.hX,m.JJ,m.oH,m.On,B.gD,B.$L,w.Ou,L.Rr,O.t,q.M,ee.L,z.P,ie.M,Te.J,W,T.X$],styles:[".filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.filter[_ngcontent-%COMP%]{min-width:350px}.search-select[_ngcontent-%COMP%]{width:32%;margin-right:20px;margin-top:30px}.toggle[_ngcontent-%COMP%]{display:flex;flex-direction:column}.advanced-filter[_ngcontent-%COMP%]{border:1px solid lightgray;padding:15px}"]}),De})()},34904:(Xe,ue,p)=>{"use strict";p.d(ue,{f:()=>ge});var e=p(95017),A=p(533),C=p(61744),M=p(24006),m=p(65412),b=p(81591),D=p(94650),v=p(89383),R=p(36895),B=p(59549),w=p(284),L=p(4859),O=p(51572),q=p(62707);function ee(ve,De){1&ve&&D._UZ(0,"mat-spinner",5)}function z(ve,De){if(1&ve){const he=D.EpF();D.TgZ(0,"div",6)(1,"perun-web-apps-vo-search-select",7),D.NdJ("voSelected",function(Be){D.CHM(he);const se=D.oxw();return D.KtG(se.selectedVo=Be)}),D.qZA(),D.TgZ(2,"mat-form-field"),D._UZ(3,"input",8),D.ALo(4,"translate"),D.TgZ(5,"mat-error"),D._uU(6),D.ALo(7,"translate"),D.qZA()(),D.TgZ(8,"mat-form-field"),D._UZ(9,"input",9),D.ALo(10,"translate"),D.TgZ(11,"mat-error"),D._uU(12),D.ALo(13,"translate"),D.qZA()()()}if(2&ve){const he=D.oxw();D.xp6(1),D.Q6J("vos",he.vos),D.xp6(2),D.s9C("placeholder",D.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),D.Q6J("formControl",he.nameCtrl),D.xp6(3),D.hij(" ",D.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),D.xp6(3),D.s9C("placeholder",D.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),D.Q6J("formControl",he.descriptionCtrl),D.xp6(3),D.hij(" ",D.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let ie=(()=>{class ve{constructor(he,Ye,Be,se,le,k){this.dialogRef=he,this.data=Ye,this.notificator=Be,this.voService=se,this.translate=le,this.resourcesManager=k,this.vos=[],this.selectedVo=null,le.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(N=>this.successMessage=N)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(he=>{this.vos=he,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new M.p4(null,[M.kI.required,M.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new M.p4("")}onSubmit(){this.loading=!0,this.resourcesManager.createResource(this.selectedVo.id,this.data.facilityId,this.nameCtrl.value,this.descriptionCtrl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return ve.\u0275fac=function(he){return new(he||ve)(D.Y36(m.so),D.Y36(m.WI),D.Y36(b.V6),D.Y36(C.YF),D.Y36(v.sK),D.Y36(C.xk))},ve.\u0275cmp=D.Xpm({type:ve,selectors:[["app-create-resource-dialog"]],decls:10,vars:12,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","create-resource-dialog-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["data-cy","create-resource-select-vo",3,"vos","voSelected"],["matInput","","data-cy","create-resource-name-input","required","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(he,Ye){1&he&&(D.TgZ(0,"div"),D.YNc(1,ee,1,0,"mat-spinner",0),D.YNc(2,z,14,15,"div",1),D.TgZ(3,"div",2)(4,"button",3),D.NdJ("click",function(){return Ye.onCancel()}),D._uU(5),D.ALo(6,"translate"),D.qZA(),D.TgZ(7,"button",4),D.NdJ("click",function(){return Ye.onSubmit()}),D._uU(8),D.ALo(9,"translate"),D.qZA()()()),2&he&&(D.Tol(Ye.theme),D.xp6(1),D.Q6J("ngIf",Ye.loading),D.xp6(1),D.Q6J("ngIf",!Ye.loading),D.xp6(3),D.hij(" ",D.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")," "),D.xp6(2),D.Q6J("disabled",Ye.nameCtrl.invalid||Ye.descriptionCtrl.invalid||null===Ye.selectedVo||Ye.loading),D.xp6(1),D.hij(" ",D.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")," "))},dependencies:[R.O5,B.TO,B.KE,w.Nt,M.Fj,M.JJ,M.Q7,M.oH,L.lW,m.xY,m.H8,O.Ou,q.M,v.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),ve})();var Te=p(10036),pe=p(9244),Le=p(96214),T=p(7434),W=p(62109),F=p(30540);function V(ve,De){if(1&ve){const he=D.EpF();D.TgZ(0,"button",9),D.NdJ("click",function(){D.CHM(he);const Be=D.oxw();return D.KtG(Be.createResource())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}2&ve&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function te(ve,De){if(1&ve){const he=D.EpF();D.TgZ(0,"button",10),D.NdJ("click",function(){D.CHM(he);const Be=D.oxw();return D.KtG(Be.removeResource())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&ve){const he=D.oxw();D.Q6J("disabled",0===he.selected.selected.length),D.xp6(1),D.hij(" ",D.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function Q(ve,De){1&ve&&D._UZ(0,"mat-spinner",11)}function Ee(ve,De){if(1&ve&&D._UZ(0,"perun-web-apps-resources-list",12),2&ve){const he=D.oxw();D.Q6J("tableId",he.tableId)("filterValue",he.filterValue)("resources",he.resources)("selection",he.selected)("disableRouting",!he.routeAuth)("displayedColumns",he.displayedColumns)}}let ge=(()=>{class ve{constructor(he,Ye,Be,se,le,k){this.dialog=he,this.facilitiesManager=Ye,this.servicesManager=Be,this.authResolver=se,this.entityStorageService=le,this.cd=k,this.resources=[],this.selected=new e.Ov(!0,[]),this.emptyService={id:-1,beanName:"Service",name:"All"},this.services=[this.emptyService],this.selectedService=this.emptyService,this.filterValue="",this.tableId=Te.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.servicesManager.getAssignedServices(this.facility.id).subscribe(he=>{this.services=[this.emptyService].concat(he)}),this.loadResourcesForFacility()}ngAfterViewInit(){this.cd.detectChanges()}removeResource(){const he=(0,pe.kZ)();he.width="450px",he.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(A.f,he).afterClosed().subscribe(Be=>{Be&&this.refreshTable()})}refreshTable(){this.loading=!0,-1===this.selectedService.id?this.loadResourcesForFacility():this.facilitiesManager.getAssignedRichResourcesForFacilityAndService(this.facility.id,this.selectedService.id).subscribe(he=>{this.resources=he,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("createResource_Resource_Vo_Facility_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","vo","description"]:["id","name","vo","description"],0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getRichResourceById_int_policy",[this.facility,this.resources[0]]))}applyFilter(he){this.filterValue=he}createResource(){const he=(0,pe.kZ)();he.width="1350px",he.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(ie,he).afterClosed().subscribe(Be=>{Be&&this.refreshTable()})}serviceSelected(he){this.selectedService=he,this.refreshTable()}loadResourcesForFacility(){this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(he=>{this.resources=he,this.selected.clear(),this.setAuthRights(),this.loading=!1})}}return ve.id="FacilityResourcesComponent",ve.\u0275fac=function(he){return new(he||ve)(D.Y36(m.uw),D.Y36(C.IQ),D.Y36(C.KK),D.Y36(b.x4),D.Y36(b.fb),D.Y36(D.sBO))},ve.\u0275cmp=D.Xpm({type:ve,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(he,Ye){2&he&&D.ekj("router-component",Ye.true)},decls:12,vars:10,consts:[[1,"page-subtitle"],[1,"align-elements"],[3,"refresh"],["mat-flat-button","","color","accent","data-cy","create-resource-button","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2","data-cy","delete-resource-button",3,"disabled","click",4,"ngIf"],[1,"search-select","mr-2",3,"services","service","serviceSelected"],[1,"filter-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","create-resource-button",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","delete-resource-button",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns"]],template:function(he,Ye){1&he&&(D.TgZ(0,"div")(1,"h1",0),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),D.NdJ("refresh",function(){return Ye.refreshTable()}),D.qZA(),D.YNc(6,V,3,3,"button",3),D.YNc(7,te,3,4,"button",4),D.TgZ(8,"perun-web-apps-service-search-select",5),D.NdJ("serviceSelected",function(se){return Ye.serviceSelected(se)}),D.qZA(),D.TgZ(9,"perun-web-apps-immediate-filter",6),D.NdJ("filter",function(se){return Ye.applyFilter(se)}),D.qZA()(),D.YNc(10,Q,1,0,"mat-spinner",7),D.YNc(11,Ee,1,6,"perun-web-apps-resources-list",8),D.qZA()),2&he&&(D.xp6(2),D.Oqu(D.lcZ(3,8,"FACILITY_DETAIL.RESOURCES.TITLE")),D.xp6(4),D.Q6J("ngIf",Ye.addAuth),D.xp6(1),D.Q6J("ngIf",Ye.removeAuth),D.xp6(1),D.Q6J("services",Ye.services)("service",Ye.selectedService),D.xp6(1),D.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),D.xp6(1),D.Q6J("ngIf",Ye.loading),D.xp6(1),D.Q6J("ngIf",!Ye.loading))},dependencies:[R.O5,L.lW,O.Ou,Le.t,T.L,W.C,F.J,v.X$],styles:[".search-select[_ngcontent-%COMP%]{min-width:325px}.filter-field[_ngcontent-%COMP%]{min-width:250px}.align-elements[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}"]}),ve})()},86353:(Xe,ue,p)=>{"use strict";p.d(ue,{P:()=>Be});var e=p(61744),A=p(9244),C=p(10036),M=p(95017),m=p(65412),b=p(81591),D=p(24006),v=p(94650),R=p(89383),B=p(94364),w=p(36895),L=p(3238),O=p(59549),q=p(284),ee=p(4859),z=p(84385),ie=p(51572),Te=p(98380);function pe(se,le){1&se&&v._UZ(0,"mat-spinner",7)}function Le(se,le){if(1&se){const k=v.EpF();v.TgZ(0,"mat-option",16),v.NdJ("click",function(){const Z=v.CHM(k).$implicit,de=v.oxw(2);return v.KtG(de.srcFacility=Z)}),v._uU(1),v.qZA()}if(2&se){const k=le.$implicit;v.Q6J("value",k),v.xp6(1),v.hij(" ",k.name," ")}}function T(se,le){if(1&se){const k=v.EpF();v.TgZ(0,"div",8)(1,"mat-form-field"),v._UZ(2,"input",9),v.ALo(3,"translate"),v.TgZ(4,"mat-error"),v._uU(5),v.ALo(6,"translate"),v.qZA()(),v.TgZ(7,"mat-form-field"),v._UZ(8,"input",10),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"mat-form-field")(11,"mat-select",11),v.ALo(12,"translate"),v.TgZ(13,"mat-option",12),v.NdJ("click",function(){v.CHM(k);const be=v.oxw();return v.KtG(be.srcFacility=null)}),v._uU(14),v.ALo(15,"translate"),v.qZA(),v.YNc(16,Le,2,2,"mat-option",13),v.qZA()(),v.TgZ(17,"perun-web-apps-alert",14),v._UZ(18,"i",15),v.ALo(19,"translate"),v.qZA()()}if(2&se){const k=v.oxw();v.xp6(2),v.s9C("placeholder",v.lcZ(3,9,"DIALOGS.CREATE_FACILITY.NAME")),v.Q6J("formControl",k.nameControl),v.xp6(3),v.Oqu(v.lcZ(6,11,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),v.xp6(3),v.s9C("placeholder",v.lcZ(9,13,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),v.Q6J("formControl",k.descControl),v.xp6(3),v.s9C("placeholder",v.lcZ(12,15,"DIALOGS.CREATE_FACILITY.AS_COPY")),v.xp6(3),v.hij(" ",v.lcZ(15,17,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),v.xp6(2),v.Q6J("ngForOf",k.facilities),v.xp6(2),v.Q6J("innerHTML",v.lcZ(19,19,"DIALOGS.CREATE_FACILITY.HINT"),v.oJD)}}let W=(()=>{class se{constructor(k,N,be,Z,de,xe,ot){this.dialogRef=k,this.data=N,this.facilitiesManager=be,this.notificator=Z,this.translate=de,this.router=xe,this.entityStorageService=ot,this.nameControl=new D.p4("",[D.kI.required]),this.descControl=new D.p4(""),this.srcFacility=null,this.loading=!1,this.configure=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(k=>{this.facilities=k,this.loading=!1},()=>this.loading=!1)}onCreate(k){this.loading=!0,this.configure=k,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe({next:N=>{this.entityStorageService.setEntity({id:N.id,beanName:N.beanName}),sessionStorage.setItem("newFacilityId",String(N.id)),null!==this.srcFacility?this.copyFacilitySettings(N.id):this.handleSuccess(N.id)},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}copyFacilitySettings(k){this.facilitiesManager.copyAttributes(this.srcFacility.id,k).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,k).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,k).subscribe(()=>{this.handleSuccess(k)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}handleSuccess(k){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.configure&&this.router.navigate(["facilities",k.toString(),"configuration"],{queryParamsHandling:"preserve"}),this.dialogRef.close(!0)}}return se.\u0275fac=function(k){return new(k||se)(v.Y36(m.so),v.Y36(m.WI),v.Y36(e.IQ),v.Y36(b.V6),v.Y36(R.sK),v.Y36(B.F0),v.Y36(b.fb))},se.\u0275cmp=v.Xpm({type:se,selectors:[["app-create-facility-dialog"]],decls:16,vars:19,consts:[[1,"mat-dialog-title"],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","create-facility-button","color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","data-cy","facility-name-input",3,"formControl","placeholder"],["matInput","","data-cy","facility-description-input",3,"formControl","placeholder"],["disableOptionCentering","true",3,"placeholder"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],[3,"value","click"]],template:function(k,N){1&k&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,pe,1,0,"mat-spinner",1),v.YNc(5,T,20,21,"div",2),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return N.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return N.onCreate(!1)}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.TgZ(13,"button",6),v.NdJ("click",function(){return N.onCreate(!0)}),v._uU(14),v.ALo(15,"translate"),v.qZA()()()),2&k&&(v.Tol(N.theme),v.xp6(2),v.Oqu(v.lcZ(3,11,"DIALOGS.CREATE_FACILITY.TITLE")),v.xp6(2),v.Q6J("ngIf",N.loading),v.xp6(1),v.Q6J("ngIf",!N.loading),v.xp6(3),v.hij(" ",v.lcZ(9,13,"DIALOGS.CREATE_FACILITY.CANCEL")," "),v.xp6(2),v.Q6J("disabled",0===N.nameControl.value.trim().length||N.loading),v.xp6(1),v.hij(" ",v.lcZ(12,15,"DIALOGS.CREATE_FACILITY.CREATE")," "),v.xp6(2),v.Q6J("disabled",0===N.nameControl.value.trim().length||!!N.srcFacility||N.loading),v.xp6(1),v.hij(" ",v.lcZ(15,17,"DIALOGS.CREATE_FACILITY.CREATE_AND_CONFIGURE")," "))},dependencies:[w.sg,w.O5,L.ey,O.TO,O.KE,q.Nt,D.Fj,D.JJ,D.Q7,D.oH,ee.lW,m.xY,m.H8,z.gD,ie.Ou,Te.w,R.X$]}),se})();var F=p(54037),V=p(77968),te=p(97392),Q=p(96214),Ee=p(4235),ge=p(7434),ve=p(74010);function De(se,le){1&se&&v._UZ(0,"mat-spinner",9)}function he(se,le){if(1&se&&v._UZ(0,"perun-web-apps-facilities-list",10),2&se){const k=v.oxw();v.Q6J("tableId",k.tableId)("selection",k.selection)("filterValue",k.filterValue)("facilities",k.facilities)("recentIds",k.recentIds)}}const Ye=function(){return{color:"black"}};let Be=(()=>{class se{constructor(k,N,be){this.facilityManager=k,this.sideMenuService=N,this.dialog=be,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=C.xt,this.selection=new M.Ov(!1,[])}ngOnInit(){this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(k=>{this.selection.clear(),this.facilities=k,this.recentIds=(0,A.vL)("facilities"),this.loading=!1})}onCreate(){const k=(0,A.kZ)();k.width="800px",k.data={theme:"facility-theme"},this.dialog.open(W,k).afterClosed().subscribe(be=>{be&&(this.loading=!0,this.refreshTable())})}onDelete(){const k=(0,A.kZ)();k.width="500px",k.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(F.Y,k).afterClosed().subscribe(be=>{be&&this.refreshTable()})}applyFilter(k){this.filterValue=k}}return se.id="FacilitySelectPageComponent",se.\u0275fac=function(k){return new(k||se)(v.Y36(e.IQ),v.Y36(V.D),v.Y36(m.uw))},se.\u0275cmp=v.Xpm({type:se,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(k,N){2&k&&v.ekj("router-component",N.true)},decls:16,vars:16,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","facility-theme"],[1,"page-title","d-flex"],["svgIcon","perun-facility-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["mat-flat-button","","data-cy","new-facility-button","color","accent",1,"action-button","mr-2",3,"click"],["mat-flat-button","","data-cy","delete-facility-button","color","warn",1,"mr-2",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","selection","filterValue","facilities","recentIds",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","selection","filterValue","facilities","recentIds"]],template:function(k,N){1&k&&(v.TgZ(0,"div",0),v._UZ(1,"perun-web-apps-back-button"),v.TgZ(2,"h1",1),v._UZ(3,"mat-icon",2),v._uU(4),v.ALo(5,"translate"),v.qZA(),v.TgZ(6,"perun-web-apps-refresh-button",3),v.NdJ("refresh",function(){return N.refreshTable()}),v.qZA(),v.TgZ(7,"button",4),v.NdJ("click",function(){return N.onCreate()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return N.onDelete()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.TgZ(13,"perun-web-apps-immediate-filter",6),v.NdJ("filter",function(Z){return N.applyFilter(Z)}),v.qZA(),v.YNc(14,De,1,0,"mat-spinner",7),v.YNc(15,he,1,5,"perun-web-apps-facilities-list",8),v.qZA()),2&k&&(v.xp6(3),v.Q6J("ngStyle",v.DdM(15,Ye)),v.xp6(1),v.hij(" ",v.lcZ(5,9,"FACILITY_MANAGEMENT.TITLE")," "),v.xp6(4),v.hij(" ",v.lcZ(9,11,"FACILITY_MANAGEMENT.CREATE")," "),v.xp6(2),v.Q6J("disabled",0===N.selection.selected.length),v.xp6(1),v.hij(" ",v.lcZ(12,13,"FACILITY_MANAGEMENT.DELETE")," "),v.xp6(2),v.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER"),v.xp6(1),v.Q6J("ngIf",N.loading),v.xp6(1),v.Q6J("ngIf",!N.loading))},dependencies:[w.O5,w.PC,te.Hw,ee.lW,ie.Ou,Q.t,Ee.W,ge.L,ve.X,R.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),se})()},39158:(Xe,ue,p)=>{"use strict";p.d(ue,{l:()=>w});var e=p(94650),A=p(45323),C=p(81591),M=p(36895),m=p(24006),b=p(10266),D=p(71948),v=p(74250),R=p(89383);function B(L,O){if(1&L){const q=e.EpF();e.TgZ(0,"div")(1,"perun-web-apps-user-search-select",6),e.NdJ("userSelected",function(z){e.CHM(q);const ie=e.oxw();return e.KtG(ie.selectSponsor(z))}),e.qZA()()}if(2&L){const q=e.oxw();e.xp6(1),e.Q6J("disableAutoSelect",!0)("users",q.voSponsors)}}let w=(()=>{class L{constructor(q){this.guiAuthResolver=q,this.voSponsors=[],this.sponsorTypeSelected=new e.vpe,this.sponsorSelected=new e.vpe,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.selectedSponsor=null}ngOnInit(){this.isSponsor=this.guiAuthResolver.principalHasRole(A.u.SPONSOR,"Vo",this.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.emitSponsorType()}emitSponsorType(){"self"===this.sponsorType&&this.selectSponsor(null),this.sponsorTypeSelected.emit(this.sponsorType)}selectSponsor(q){this.selectedSponsor=q,this.sponsorSelected.emit(q)}}return L.\u0275fac=function(q){return new(q||L)(e.Y36(C.x4))},L.\u0275cmp=e.Xpm({type:L,selectors:[["app-choose-sponsor"]],inputs:{voId:"voId",voSponsors:"voSponsors"},outputs:{sponsorTypeSelected:"sponsorTypeSelected",sponsorSelected:"sponsorSelected"},decls:16,vars:21,consts:[[1,"mt-4"],[1,"dialog-container",3,"ngModel","ngModelChange"],["matTooltipPosition","before",3,"matTooltip","matTooltipDisabled"],["value","self",3,"disabled","click"],["value","other",3,"disabled"],[4,"ngIf"],[3,"disableAutoSelect","users","userSelected"]],template:function(q,ee){1&q&&(e.TgZ(0,"div",0)(1,"h6"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-radio-group",1),e.NdJ("ngModelChange",function(ie){return ee.sponsorType=ie})("ngModelChange",function(){return ee.emitSponsorType()}),e.TgZ(5,"span",2),e.ALo(6,"translate"),e.TgZ(7,"mat-radio-button",3),e.NdJ("click",function(){return ee.selectedSponsor=null}),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"span",2),e.ALo(11,"translate"),e.TgZ(12,"mat-radio-button",4),e._uU(13),e.ALo(14,"translate"),e.qZA()()(),e.YNc(15,B,2,2,"div",5),e.qZA()),2&q&&(e.xp6(2),e.Oqu(e.lcZ(3,11,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),e.xp6(2),e.Q6J("ngModel",ee.sponsorType),e.xp6(1),e.s9C("matTooltip",e.lcZ(6,13,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),e.Q6J("matTooltipDisabled",ee.isSponsor),e.xp6(2),e.Q6J("disabled",!ee.isSponsor),e.xp6(1),e.hij(" ",e.lcZ(9,15,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),e.xp6(2),e.s9C("matTooltip",e.lcZ(11,17,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),e.Q6J("matTooltipDisabled",ee.isPerunAdmin),e.xp6(2),e.Q6J("disabled",!ee.isPerunAdmin),e.xp6(1),e.hij(" ",e.lcZ(14,19,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),e.xp6(2),e.Q6J("ngIf","other"===ee.sponsorType))},dependencies:[M.O5,m.JJ,m.On,b.gM,D.VQ,D.U0,v.S,R.X$]}),L})()},93657:(Xe,ue,p)=>{"use strict";p.d(ue,{J:()=>Te});var e=p(65412),A=p(81591),C=p(61744),M=p(9244),m=p(24006),b=p(94650),D=p(89383),v=p(36895),R=p(3238),B=p(59549),w=p(284),L=p(4859),O=p(84385),q=p(57706);function ee(pe,Le){if(1&pe&&(b.TgZ(0,"mat-option",9),b._uU(1),b.ALo(2,"applicationFormItemType"),b.qZA()),2&pe){const T=Le.$implicit;b.Q6J("value",T),b.xp6(1),b.hij(" ",b.lcZ(2,2,T)," ")}}function z(pe,Le){if(1&pe&&(b.TgZ(0,"mat-option",9),b._uU(1),b.qZA()),2&pe){const T=Le.$implicit;b.Q6J("value",T),b.xp6(1),b.hij(" ",T," ")}}const ie=function(pe){return{"height.rem":pe}};let Te=(()=>{class pe{constructor(T,W,F,V){this.dialogRef=T,this.data=W,this.translateService=F,this.store=V,this.languages=this.store.getProperty("supported_languages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","HTML_COMMENT","TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]}ngOnInit(){this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(T=>{this.nameCtrl=new m.p4("",[m.kI.required,m.kI.pattern(".*[\\S]+.*"),m.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(T);for(const W of this.data.applicationFormItems)this.items.push(W.shortname),W.type===C.Dy.EMBEDDED_GROUP_APPLICATION&&(this.widgets=this.widgets.filter(F=>F!==C.Dy.EMBEDDED_GROUP_APPLICATION));this.selectedItem=T})}setInputWidgetHeight(T){return Math.ceil(T/80)+2.5}cancel(){this.dialogRef.close(void 0)}submit(){const T=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,T])}createApplicationItem(){const T=(0,M.dv)(this.languages);T.id=this.data.fakeId,T.shortname=this.nameCtrl.value,T.type=this.selectedWidget;for(let W=0;W{"use strict";p.d(ue,{W:()=>L});var e=p(65412),A=p(61744),C=p(81591),M=p(94650),m=p(89383),b=p(36895),D=p(4859),v=p(51572),R=p(62707),B=p(82322);function w(O,q){1&O&&M._UZ(0,"mat-spinner",9)}let L=(()=>{class O{constructor(ee,z,ie,Te,pe,Le,T,W,F){this.dialogRef=ee,this.voService=z,this.groupService=ie,this.translateService=Te,this.registrarManager=pe,this.notificatorService=Le,this.apiRequest=T,this.cd=W,this.data=F,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=V=>V.name,Te.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(V=>this.successMessage=V),Te.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(V=>this.privilegeMessage=V),Te.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(V=>this.noFormMessage=V)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.translateService.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_GROUP_SELECTED").subscribe(()=>{this.voService.getMyVos().subscribe(ee=>{this.vos=ee,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.apiRequest.dontHandleErrorForNext(),this.loading=!0,this.data.groupId?null===this.selectedGroup?this.registrarManager.copyFormFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ee=>{"FormNotExistsException"===ee.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ee.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ee=>{"FormNotExistsException"===ee.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ee.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):null===this.selectedGroup?this.registrarManager.copyFormFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ee=>{"FormNotExistsException"===ee.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ee.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ee=>{"FormNotExistsException"===ee.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ee.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(ee){this.selectedVo=ee,this.cd.detectChanges(),this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(ee=>{this.groups=ee}):this.groups=[],this.selectedGroup=null}}return O.\u0275fac=function(ee){return new(ee||O)(M.Y36(e.so),M.Y36(A.YF),M.Y36(A.ff),M.Y36(m.sK),M.Y36(A.tk),M.Y36(C.V6),M.Y36(C.F5),M.Y36(M.sBO),M.Y36(e.WI))},O.\u0275cmp=M.Xpm({type:O,selectors:[["app-application-form-copy-items-dialog"]],decls:22,vars:27,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container",3,"hidden"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(ee,z){1&ee&&(M.TgZ(0,"div")(1,"h1",0),M._uU(2),M.ALo(3,"translate"),M.qZA(),M.YNc(4,w,1,0,"mat-spinner",1),M.TgZ(5,"div",2)(6,"div",3),M._uU(7),M.ALo(8,"translate"),M.qZA(),M._uU(9),M.ALo(10,"translate"),M.TgZ(11,"perun-web-apps-vo-search-select",4),M.NdJ("voSelected",function(Te){return z.voSelected(Te)}),M.qZA(),M._uU(12),M.ALo(13,"translate"),M.TgZ(14,"perun-web-apps-group-search-select",5),M.NdJ("groupSelected",function(Te){return z.selectedGroup=Te}),M.qZA()(),M.TgZ(15,"div",6)(16,"button",7),M.NdJ("click",function(){return z.cancel()}),M._uU(17),M.ALo(18,"translate"),M.qZA(),M.TgZ(19,"button",8),M.NdJ("click",function(){return z.submit()}),M._uU(20),M.ALo(21,"translate"),M.qZA()()()),2&ee&&(M.Tol(z.theme),M.xp6(2),M.Oqu(M.lcZ(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),M.xp6(2),M.Q6J("ngIf",z.loading),M.xp6(1),M.Q6J("hidden",z.loading),M.xp6(2),M.hij(" ",M.lcZ(8,17,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")," "),M.xp6(2),M.hij(" ",M.lcZ(10,19,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),M.xp6(2),M.Q6J("vos",z.vos),M.xp6(1),M.hij(" ",M.lcZ(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),M.xp6(2),M.Q6J("groups",z.groups)("disableAutoSelect",!0),M.xp6(3),M.hij(" ",M.lcZ(18,23,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),M.xp6(2),M.Q6J("disabled",!z.selectedVo&&!z.selectedGroup||z.loading),M.xp6(1),M.hij(" ",M.lcZ(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},dependencies:[b.O5,D.lW,e.uh,e.xY,e.H8,v.Ou,R.M,B.h,m.X$]}),O})()},23325:(Xe,ue,p)=>{"use strict";p.d(ue,{a:()=>Te});var e=p(61744),A=p(65412),C=p(81591),M=p(24006),m=p(94650),b=p(36895),D=p(3238),v=p(59549),R=p(4859),B=p(84385),w=p(51572),L=p(98380),O=p(89383),q=p(77749);function ee(pe,Le){1&pe&&m._UZ(0,"mat-spinner",7)}function z(pe,Le){if(1&pe&&(m.TgZ(0,"mat-option",14),m._uU(1),m.ALo(2,"applicationColumnSelectLabel"),m.qZA()),2&pe){const T=Le.$implicit,W=m.oxw(2);m.Tol(W.theme),m.Q6J("value",T),m.xp6(1),m.hij(" ",m.lcZ(2,5,T)," ")}}function ie(pe,Le){if(1&pe){const T=m.EpF();m.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"mat-form-field",10)(5,"mat-label"),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"mat-select",11),m.NdJ("closed",function(){m.CHM(T);const F=m.oxw();return m.KtG(F.attribute.value=F.selectedColumns.value)}),m.YNc(9,z,3,7,"mat-option",12),m.qZA()(),m.TgZ(10,"perun-web-apps-alert",13),m._uU(11),m.ALo(12,"translate"),m.qZA()()}if(2&pe){const T=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,5,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.WARN")," "),m.xp6(4),m.Oqu(m.lcZ(7,7,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.FILTER_COLUMNS")),m.xp6(2),m.Q6J("formControl",T.selectedColumns),m.xp6(1),m.Q6J("ngForOf",T.columnOptions),m.xp6(2),m.hij(" ",m.lcZ(12,9,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.DEFAULT_TEXT")," ")}}let Te=(()=>{class pe{constructor(T,W,F,V,te){this.dialogRef=T,this.attributesManager=W,this.data=F,this.translate=V,this.notificator=te,this.loading=!1,this.simpleColumns=["createdAt","type","state","createdBy","modifiedBy"],this.columnOptions=["createdAt","type","state","createdBy","modifiedBy"],this.selectedColumns=new M.NI([])}ngOnInit(){this.theme=this.data.theme,this.data.groupId?this.attributesManager.getIdpAttributeDefinitions().subscribe(T=>{T.forEach(W=>{this.columnOptions.push(W.friendlyName)}),this.attributesManager.getGroupAttributeByName(this.data.groupId,"urn:perun:group:attribute-def:def:applicationViewPreferences").subscribe(W=>{this.attribute=W;const F=W.value;this.selectedColumns.setValue(null!==F&&F.length>0?F:this.simpleColumns)})}):this.attributesManager.getIdpAttributeDefinitions().subscribe(T=>{T.forEach(W=>{this.columnOptions.push(W.friendlyName)}),this.attributesManager.getVoAttributeByName(this.data.voId,"urn:perun:vo:attribute-def:def:applicationViewPreferences").subscribe(W=>{this.attribute=W;const F=W.value;this.selectedColumns.setValue(null!==F&&F.length>0?F:this.simpleColumns)})})}confirm(){this.data.groupId?this.changeGroupAttribute():this.changeVoAttribute()}cancel(){this.dialogRef.close(!1)}default(){this.attribute.value=[],this.confirm()}changeVoAttribute(){this.loading=!0,this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.attribute}).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.SUCCESS"))},error:()=>{this.loading=!1}})}changeGroupAttribute(){this.loading=!0,this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.attribute}).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.SUCCESS"))},error:()=>{this.loading=!1}})}}return pe.\u0275fac=function(T){return new(T||pe)(m.Y36(A.so),m.Y36(e.H8),m.Y36(A.WI),m.Y36(C.Te),m.Y36(C.V6))},pe.\u0275cmp=m.Xpm({type:pe,selectors:[["app-applications-list-columns-change-dialog"]],decls:16,vars:18,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["alert_type","warn"],[1,"w-100"],["multiple","",3,"formControl","closed"],[3,"class","value",4,"ngFor","ngForOf"],["alert_type","info"],[3,"value"]],template:function(T,W){1&T&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div"),m.YNc(4,ee,1,0,"mat-spinner",1),m.YNc(5,ie,13,11,"div",2),m.TgZ(6,"div",3)(7,"button",4),m.NdJ("click",function(){return W.cancel()}),m._uU(8),m.ALo(9,"translate"),m.qZA(),m.TgZ(10,"button",5),m.NdJ("click",function(){return W.default()}),m._uU(11),m.ALo(12,"translate"),m.qZA(),m.TgZ(13,"button",6),m.NdJ("click",function(){return W.confirm()}),m._uU(14),m.ALo(15,"translate"),m.qZA()()()),2&T&&(m.xp6(1),m.Oqu(m.lcZ(2,10,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.TITLE")),m.xp6(2),m.Tol(W.theme),m.xp6(1),m.Q6J("ngIf",W.loading),m.xp6(1),m.Q6J("ngIf",!W.loading),m.xp6(3),m.hij(" ",m.lcZ(9,12,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.CANCEL")," "),m.xp6(3),m.hij(" ",m.lcZ(12,14,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.DEFAULT")," "),m.xp6(2),m.Q6J("disabled",W.loading),m.xp6(1),m.hij(" ",m.lcZ(15,16,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.CONFIRM")," "))},dependencies:[b.sg,b.O5,D.ey,v.KE,v.hX,M.JJ,M.oH,R.lW,A.uh,A.xY,A.H8,B.gD,w.Ou,L.w,O.X$,q.K]}),pe})()},94742:(Xe,ue,p)=>{"use strict";p.d(ue,{F:()=>De});var e=p(24006),A=p(9244),C=p(65412),M=p(81591),m=p(61744),b=p(94650),D=p(36895),v=p(3238),R=p(59549),B=p(284),w=p(4859),L=p(84385),O=p(51572),q=p(98380),ee=p(89383);function z(he,Ye){1&he&&b._UZ(0,"mat-spinner",7)}function ie(he,Ye){1&he&&(b.TgZ(0,"div",16),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&he&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.DESCRIPTION_VO")," "))}function Te(he,Ye){1&he&&(b.TgZ(0,"div",16),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&he&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.DESCRIPTION_GROUP")," "))}function pe(he,Ye){if(1&he&&(b.TgZ(0,"mat-option",17),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"uppercase"),b.qZA()),2&he){const Be=Ye.$implicit;b.s9C("value",Be),b.xp6(1),b.hij(" ",b.lcZ(2,2,b.lcZ(3,4,"SHARED_LIB.LANGUAGES."+Be))," ")}}function Le(he,Ye){1&he&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&he&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.NAMES_ERROR")," "))}function T(he,Ye){if(1&he&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&he){const Be=b.oxw(3);b.xp6(1),b.AsE(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.ERROR_FORMAT"),": ",Be.invitedMembers.getError("invalidFormat").value," ")}}function W(he,Ye){if(1&he&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&he){const Be=b.oxw(3);b.xp6(1),b.AsE(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.ERROR_EMAIL"),": ",Be.invitedMembers.getError("invalidEmail").value," ")}}function F(he,Ye){if(1&he){const Be=b.EpF();b.TgZ(0,"div"),b.YNc(1,ie,3,3,"div",9),b.YNc(2,Te,3,3,"div",9),b.TgZ(3,"mat-form-field",10)(4,"mat-label"),b._uU(5),b.ALo(6,"translate"),b.qZA(),b.TgZ(7,"mat-select",11),b.NdJ("valueChange",function(le){b.CHM(Be);const k=b.oxw(2);return b.KtG(k.currentLanguage=le)}),b.YNc(8,pe,4,6,"mat-option",12),b.qZA()(),b._UZ(9,"p",13),b.ALo(10,"translate"),b.TgZ(11,"mat-form-field",14)(12,"mat-label"),b._uU(13),b.ALo(14,"translate"),b.qZA(),b.TgZ(15,"textarea",15),b.ALo(16,"translate"),b._uU(17," "),b.qZA(),b.YNc(18,Le,3,3,"mat-error",3),b.YNc(19,T,3,4,"mat-error",3),b.YNc(20,W,3,4,"mat-error",3),b.qZA()()}if(2&he){const Be=b.oxw(2);b.xp6(1),b.Q6J("ngIf",!Be.data.groupId),b.xp6(1),b.Q6J("ngIf",Be.data.groupId),b.xp6(3),b.Oqu(b.lcZ(6,12,"DIALOGS.BULK_INVITE_MEMBERS.LANGUAGE")),b.xp6(2),b.Q6J("value",Be.currentLanguage),b.xp6(1),b.Q6J("ngForOf",Be.languages),b.xp6(1),b.Q6J("innerHTML",b.lcZ(10,14,"DIALOGS.BULK_INVITE_MEMBERS.HINT"),b.oJD),b.xp6(4),b.Oqu(b.lcZ(14,16,"DIALOGS.BULK_INVITE_MEMBERS.INSERT_HERE")),b.xp6(2),b.s9C("placeholder",b.lcZ(16,18,"DIALOGS.BULK_INVITE_MEMBERS.PLACEHOLDER")),b.Q6J("formControl",Be.invitedMembers),b.xp6(3),b.Q6J("ngIf",Be.invitedMembers.hasError("required")),b.xp6(1),b.Q6J("ngIf",Be.invitedMembers.hasError("invalidFormat")),b.xp6(1),b.Q6J("ngIf",Be.invitedMembers.hasError("invalidEmail"))}}function V(he,Ye){if(1&he&&(b.TgZ(0,"div",8),b.YNc(1,F,21,20,"div",3),b.qZA()),2&he){const Be=b.oxw();b.xp6(1),b.Q6J("ngIf","input"===Be.state)}}function te(he,Ye){1&he&&(b.TgZ(0,"perun-web-apps-alert",19),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&he&&(b.Q6J("alert_type","success"),b.xp6(1),b.hij(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.SUCCESS")," "))}function Q(he,Ye){1&he&&(b.TgZ(0,"perun-web-apps-alert",19),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&he&&(b.Q6J("alert_type","warn"),b.xp6(1),b.hij(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.FINISHED_WITH_ERRORS")," "))}function Ee(he,Ye){if(1&he&&(b.TgZ(0,"div"),b.YNc(1,te,3,4,"perun-web-apps-alert",18),b.YNc(2,Q,3,4,"perun-web-apps-alert",18),b.qZA()),2&he){const Be=b.oxw();b.xp6(1),b.Q6J("ngIf",!Be.finishedWithErrors),b.xp6(1),b.Q6J("ngIf",Be.finishedWithErrors)}}function ge(he,Ye){if(1&he){const Be=b.EpF();b.TgZ(0,"button",20),b.NdJ("click",function(){b.CHM(Be);const le=b.oxw();return b.KtG(le.onSubmit())}),b._uU(1),b.ALo(2,"translate"),b.qZA()}if(2&he){const Be=b.oxw();b.Q6J("disabled",Be.loading||Be.invitedMembers.invalid),b.xp6(1),b.hij(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.INVITE")," ")}}function ve(he,Ye){if(1&he){const Be=b.EpF();b.TgZ(0,"button",20),b.NdJ("click",function(){b.CHM(Be);const le=b.oxw();return b.KtG(le.downloadCsv())}),b._uU(1),b.ALo(2,"translate"),b.qZA()}if(2&he){const Be=b.oxw();b.Q6J("disabled",!Be.resultData),b.xp6(1),b.hij(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.DOWNLOAD_CSV")," ")}}let De=(()=>{class he{constructor(Be,se,le,k){this.dialogRef=Be,this.data=se,this.store=le,this.registrarManager=k,this.invitedMembers=new e.NI("",[e.kI.required,this.userInputValidator()]),this.languages=this.store.getProperty("supported_languages"),this.currentLanguage="en",this.loading=!1,this.state="input"}static didSomeInviteFail(Be){for(const se in Be)if("OK"!==Be[se])return!0;return!1}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const Be=this.invitedMembers.value.split("\n"),se=[];for(const k of Be)se.push(this.parseMemberLine(k));const le={invitationData:se,voId:this.data.voId,language:this.currentLanguage};void 0!==this.data.groupId&&(le.groupId=this.data.groupId),this.registrarManager.sendInvitationsFromCsv(le).subscribe({next:k=>{this.state="results",this.finishedWithErrors=he.didSomeInviteFail(k),this.resultData=k,this.loading=!1},error:()=>{this.loading=!1}})}downloadCsv(){(0,A.O6)(this.generateOutputData(this.resultData),"csv","member-invites")}generateOutputData(Be){const se=[];for(const le in Be)se.push({email:le,status:Be[le]});return se}parseMemberLine(Be){const se=Be.trim();if(""===se)return"";const le=se.split(";");if(le.length>2||0===le.length)return"format";if(!le[0].trim().match(A.B2))return"email";let k="";for(const N of le)k+=N.trim()+";";return k.slice(0,-1)}userInputValidator(){return Be=>{const se=Be.value.split("\n");for(const le of se){const k=this.parseMemberLine(le);let N=le;if(le.length>25&&(N=le.substring(0,25)+"..."),"format"===k)return{invalidFormat:{value:N}};if("email"===k)return{invalidEmail:{value:N}}}return null}}}return he.\u0275fac=function(Be){return new(Be||he)(b.Y36(C.so),b.Y36(C.WI),b.Y36(M.d6),b.Y36(m.tk))},he.\u0275cmp=b.Xpm({type:he,selectors:[["app-bulk-invite-members-dialog"]],decls:13,vars:14,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["class","font-italic",4,"ngIf"],[1,"w-100","pt-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML"],[1,"pt-2","flex-container"],["cols","50","required","","matInput","","rows","8",1,"md-textarea","form-control",3,"formControl","placeholder"],[1,"font-italic"],[3,"value"],[3,"alert_type",4,"ngIf"],[3,"alert_type"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Be,se){1&Be&&(b.TgZ(0,"div")(1,"h1",0),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.YNc(4,z,1,0,"mat-spinner",1),b.YNc(5,V,2,1,"div",2),b.YNc(6,Ee,3,2,"div",3),b.TgZ(7,"div",4)(8,"button",5),b.NdJ("click",function(){return se.onCancel()}),b._uU(9),b.ALo(10,"translate"),b.qZA(),b.YNc(11,ge,3,4,"button",6),b.YNc(12,ve,3,4,"button",6),b.qZA()()),2&Be&&(b.Tol(se.data.theme),b.xp6(2),b.Oqu(b.lcZ(3,10,"DIALOGS.BULK_INVITE_MEMBERS.TITLE")),b.xp6(2),b.Q6J("ngIf",se.loading),b.xp6(1),b.Q6J("ngIf",!se.loading),b.xp6(1),b.Q6J("ngIf","results"===se.state),b.xp6(3),b.hij(" ",b.lcZ(10,12,"DIALOGS.BULK_INVITE_MEMBERS.CANCEL")," "),b.xp6(2),b.Q6J("ngIf","input"===se.state),b.xp6(1),b.Q6J("ngIf","results"===se.state))},dependencies:[D.sg,D.O5,v.ey,R.TO,R.KE,R.hX,B.Nt,e.Fj,e.JJ,e.Q7,e.oH,w.lW,C.uh,C.xY,C.H8,L.gD,O.Ou,q.w,D.gd,ee.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),he})()},40009:(Xe,ue,p)=>{"use strict";p.d(ue,{R:()=>z});var e=p(65412),A=p(81591),C=p(24006),M=p(61744),m=p(94650),b=p(89383),D=p(36895),v=p(59549),R=p(284),B=p(4859),w=p(56709),L=p(51572);function O(ie,Te){1&ie&&m._UZ(0,"mat-spinner",4)}function q(ie,Te){if(1&ie){const pe=m.EpF();m.TgZ(0,"div",5)(1,"mat-form-field")(2,"input",6),m.NdJ("change",function(){m.CHM(pe);const T=m.oxw();return m.KtG(T.makePath())}),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"mat-error"),m._uU(5),m.ALo(6,"translate"),m.qZA()(),m.TgZ(7,"mat-form-field")(8,"input",7),m.NdJ("ngModelChange",function(T){m.CHM(pe);const W=m.oxw();return m.KtG(W.description=T)}),m.ALo(9,"translate"),m.qZA()(),m.TgZ(10,"mat-form-field"),m._UZ(11,"input",8),m.ALo(12,"translate"),m.TgZ(13,"mat-error"),m._uU(14),m.ALo(15,"translate"),m.qZA()(),m.TgZ(16,"mat-form-field"),m._UZ(17,"input",9),m.ALo(18,"translate"),m.TgZ(19,"mat-error"),m._uU(20),m.ALo(21,"translate"),m.qZA()(),m.TgZ(22,"mat-form-field"),m._UZ(23,"input",8),m.ALo(24,"translate"),m.TgZ(25,"mat-error"),m._uU(26),m.ALo(27,"translate"),m.qZA()(),m.TgZ(28,"span",10),m._uU(29),m.ALo(30,"translate"),m.TgZ(31,"mat-checkbox",11),m.NdJ("ngModelChange",function(T){m.CHM(pe);const W=m.oxw();return m.KtG(W.status=T)}),m._uU(32),m.ALo(33,"translate"),m.qZA()(),m.TgZ(34,"span",10),m._uU(35),m.ALo(36,"translate"),m.TgZ(37,"mat-checkbox",11),m.NdJ("ngModelChange",function(T){m.CHM(pe);const W=m.oxw();return m.KtG(W.propagateExpiredMembers=T)}),m._uU(38),m.ALo(39,"translate"),m.qZA()()()}if(2&ie){const pe=m.oxw();m.xp6(2),m.s9C("placeholder",m.lcZ(3,20,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),m.Q6J("formControl",pe.nameControl),m.xp6(3),m.Oqu(m.lcZ(6,22,"DIALOGS.CREATE_EDIT_SERVICE.RESTRICTION_NAME")),m.xp6(3),m.s9C("placeholder",m.lcZ(9,24,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),m.Q6J("ngModel",pe.description),m.xp6(3),m.s9C("placeholder",m.lcZ(12,26,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),m.Q6J("formControl",pe.delayControl),m.xp6(3),m.Oqu(m.lcZ(15,28,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),m.xp6(3),m.s9C("placeholder",m.lcZ(18,30,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),m.Q6J("formControl",pe.recurrenceControl),m.xp6(3),m.Oqu(m.lcZ(21,32,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),m.xp6(3),m.s9C("placeholder",m.lcZ(24,34,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),m.Q6J("formControl",pe.pathControl),m.xp6(3),m.Oqu(m.lcZ(27,36,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),m.xp6(3),m.hij("",m.lcZ(30,38,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")," "),m.xp6(2),m.Q6J("ngModel",pe.status),m.xp6(1),m.Oqu(m.lcZ(33,40,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT")),m.xp6(3),m.hij("",m.lcZ(36,42,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS")," "),m.xp6(2),m.Q6J("ngModel",pe.propagateExpiredMembers),m.xp6(1),m.Oqu(m.lcZ(39,44,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS_HINT"))}}function ee(ie,Te){if(1&ie){const pe=m.EpF();m.TgZ(0,"div",12)(1,"button",13),m.NdJ("click",function(){m.CHM(pe);const T=m.oxw();return m.KtG(T.onCancel())}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"button",14),m.NdJ("click",function(){m.CHM(pe);const T=m.oxw();return m.KtG(T.asEdit?T.onEdit():T.onCreate())}),m._uU(5),m.qZA()()}if(2&ie){const pe=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),m.xp6(2),m.Q6J("disabled",pe.nameControl.invalid||pe.delayControl.invalid||pe.recurrenceControl.invalid||pe.pathControl.invalid),m.xp6(1),m.hij(" ",pe.buttonText," ")}}let z=(()=>{class ie{constructor(pe,Le,T,W,F){this.dialogRef=pe,this.data=Le,this.serviceManager=T,this.notificator=W,this.translate=F,this.loading=!1,this.status=!0,this.propagateExpiredMembers=!0,this.nameControl=new C.p4("",[C.kI.required,C.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new C.p4(10,[C.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new C.p4(2,[C.kI.pattern("^[0-9]*$")]),this.pathControl=new C.p4("",[C.kI.required]),this.asEdit=!1}ngOnInit(){this.theme=this.data.theme,this.asEdit=void 0!==this.data.service,this.asEdit?(this.nameControl.setValue(this.data.service.name),this.description=this.data.service.description,this.delayControl.setValue(this.data.service.delay),this.recurrenceControl.setValue(this.data.service.recurrence),this.pathControl.setValue(this.data.service.script),this.status=this.data.service.enabled,this.propagateExpiredMembers=this.data.service.useExpiredMembers,this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT")):(this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE"))}onCreate(){this.loading=!0,this.serviceManager.createServiceWithService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:0,beanName:""}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onEdit(){this.loading=!0,this.serviceManager.updateService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:this.data.service.id,beanName:this.data.service.beanName}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}makePath(){const pe="./".concat(this.nameControl.value);this.pathControl.setValue(pe)}}return ie.\u0275fac=function(pe){return new(pe||ie)(m.Y36(e.so),m.Y36(e.WI),m.Y36(M.KK),m.Y36(A.V6),m.Y36(b.sK))},ie.\u0275cmp=m.Xpm({type:ie,selectors:[["app-create-service-dialog"]],decls:6,vars:7,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","service-name-input","required","",3,"placeholder","formControl","change"],["matInput","","data-cy","service-description-input",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","",3,"placeholder","formControl"],[1,"d-flex"],[1,"ml-3",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","service-create-edit-dialog-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(pe,Le){1&pe&&(m.TgZ(0,"div")(1,"h1",0),m._uU(2),m.qZA(),m.YNc(3,O,1,0,"mat-spinner",1),m.YNc(4,q,40,46,"div",2),m.YNc(5,ee,6,5,"div",3),m.qZA()),2&pe&&(m.Tol(Le.theme),m.xp6(2),m.Oqu(Le.title),m.xp6(1),m.Q6J("ngIf",Le.loading),m.xp6(1),m.Q6J("ngIf",!Le.loading),m.xp6(1),m.Q6J("ngIf",!Le.loading))},dependencies:[D.O5,v.TO,v.KE,R.Nt,C.Fj,C.JJ,C.Q7,C.oH,C.On,B.lW,w.oG,e.uh,e.xY,e.H8,L.Ou,b.X$]}),ie})()},81889:(Xe,ue,p)=>{"use strict";p.d(ue,{y:()=>Te});var e=p(65412),A=p(81591),C=p(61744),M=p(24006),m=p(94650),b=p(89383),D=p(36895),v=p(59549),R=p(284),B=p(4859),w=p(56709),L=p(51572),O=p(82322);function q(pe,Le){1&pe&&m._UZ(0,"mat-spinner",3)}function ee(pe,Le){if(1&pe){const T=m.EpF();m.TgZ(0,"mat-checkbox",14),m.NdJ("ngModelChange",function(F){m.CHM(T);const V=m.oxw(2);return m.KtG(V.asSubgroup=F)})("click",function(){m.CHM(T);const F=m.oxw(2);return m.KtG(F.loadVoGroups())}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&pe){const T=m.oxw(2);m.Q6J("ngModel",T.asSubgroup)("labelPosition","before"),m.xp6(1),m.hij(" ",m.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function z(pe,Le){if(1&pe){const T=m.EpF();m.TgZ(0,"perun-web-apps-group-search-select",15),m.NdJ("groupSelected",function(F){m.CHM(T);const V=m.oxw(2);return m.KtG(V.selectedParent=F)}),m.qZA()}if(2&pe){const T=m.oxw(2);m.Q6J("disableAutoSelect",!0)("groups",T.voGroups)}}function ie(pe,Le){if(1&pe){const T=m.EpF();m.TgZ(0,"div")(1,"div",4)(2,"mat-form-field")(3,"label",5),m._UZ(4,"input",6),m.ALo(5,"translate"),m.qZA(),m.TgZ(6,"mat-error"),m._uU(7),m.ALo(8,"translate"),m.qZA()(),m.TgZ(9,"mat-form-field",7)(10,"label",5)(11,"textarea",8),m.ALo(12,"translate"),m._uU(13," "),m.qZA()()(),m.YNc(14,ee,3,5,"mat-checkbox",9),m.YNc(15,z,1,2,"perun-web-apps-group-search-select",10),m.qZA(),m.TgZ(16,"div",11)(17,"button",12),m.NdJ("click",function(){m.CHM(T);const F=m.oxw();return m.KtG(F.onCancel())}),m._uU(18),m.ALo(19,"translate"),m.qZA(),m.TgZ(20,"button",13),m.NdJ("click",function(){m.CHM(T);const F=m.oxw();return m.KtG(F.onSubmit())}),m._uU(21),m.ALo(22,"translate"),m.qZA()()()}if(2&pe){const T=m.oxw();m.xp6(4),m.s9C("placeholder",m.lcZ(5,10,"DIALOGS.CREATE_GROUP.NAME")),m.Q6J("formControl",T.nameControl),m.xp6(3),m.hij(" ",T.invalidNameMessage.length?T.invalidNameMessage:m.lcZ(8,12,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),m.xp6(4),m.s9C("placeholder",m.lcZ(12,14,"DIALOGS.CREATE_GROUP.DESCRIPTION")),m.Q6J("formControl",T.descriptionControl),m.xp6(3),m.Q6J("ngIf",T.isNotSubGroup),m.xp6(1),m.Q6J("ngIf",T.asSubgroup),m.xp6(3),m.hij(" ",m.lcZ(19,16,"DIALOGS.CREATE_GROUP.CANCEL")," "),m.xp6(2),m.Q6J("disabled",T.nameControl.invalid||T.descriptionControl.invalid||T.asSubgroup&&null===T.selectedParent||T.loading),m.xp6(1),m.hij(" ",m.lcZ(22,18,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let Te=(()=>{class pe{constructor(T,W,F,V,te,Q){this.dialogRef=T,this.data=W,this.groupService=F,this.translate=V,this.notificator=te,this.store=Q,this.asSubgroup=!1,this.invalidNameMessage=this.store.getProperty("group_name_error_message"),this.voGroups=[],this.secondaryRegex=this.store.getProperty("group_name_secondary_regex"),this.nameFunction=Ee=>Ee.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?V.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(Ee=>this.title=Ee):V.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(Ee=>{this.title=Ee+this.data.parentGroup.name}),V.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(Ee=>this.successMessage=Ee),V.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(Ee=>this.successSubGroupMessage=Ee)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new M.p4("",[M.kI.required,M.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),M.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new M.p4(""),this.selectedParent=null}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.isNotSubGroup&&!this.asSubgroup?this.groupService.createGroupWithVoNameDescription(this.data.voId,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1):this.groupService.createGroupWithParentGroupNameDescription(this.asSubgroup?this.selectedParent.id:this.data.parentGroup.id,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successSubGroupMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}loadVoGroups(){this.groupService.getAllGroups(this.data.voId).subscribe(T=>{this.voGroups=T.filter(W=>"members"!==W.name)})}}return pe.\u0275fac=function(T){return new(T||pe)(m.Y36(e.so),m.Y36(e.WI),m.Y36(C.ff),m.Y36(b.sK),m.Y36(A.V6),m.Y36(A.d6))},pe.\u0275cmp=m.Xpm({type:pe,selectors:[["app-create-group-dialog"]],decls:5,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","","data-cy","group-name","required","",3,"formControl","placeholder"],[1,"mt-4"],["mat-autosize","","matInput","","data-cy","group-description",3,"formControl","placeholder"],[3,"ngModel","labelPosition","ngModelChange","click",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","create-group-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"ngModel","labelPosition","ngModelChange","click"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(T,W){1&T&&(m.TgZ(0,"h1",0),m._uU(1),m.qZA(),m.TgZ(2,"div"),m.YNc(3,q,1,0,"mat-spinner",1),m.YNc(4,ie,23,20,"div",2),m.qZA()),2&T&&(m.xp6(1),m.Oqu(W.title),m.xp6(1),m.Tol(W.theme),m.xp6(1),m.Q6J("ngIf",W.loading),m.xp6(1),m.Q6J("ngIf",!W.loading))},dependencies:[D.O5,v.TO,v.KE,R.Nt,M.Fj,M.JJ,M.Q7,M.oH,M.On,B.lW,w.oG,e.uh,e.xY,e.H8,L.Ou,O.h,b.X$]}),pe})()},54037:(Xe,ue,p)=>{"use strict";p.d(ue,{Y:()=>v});var e=p(61744),A=p(65412),C=p(81591),M=p(30671),m=p(94650),b=p(89383),D=p(90995);let v=(()=>{class R{constructor(w,L,O,q,ee){this.dialogRef=w,this.data=L,this.facilitiesManager=O,this.notificator=q,this.translate=ee,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.facility=this.data.facility,this.dataSource=new M.by([this.facility]),this.relations.push(this.translate.instant("DIALOGS.DELETE_FACILITY.RESOURCE_RELATION"))}onConfirm(){this.loading=!0,this.facilitiesManager.deleteFacility(this.facility.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_FACILITY.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(w){this.force=w.force,w.deleted?this.onConfirm():this.onCancel()}}return R.\u0275fac=function(w){return new(w||R)(m.Y36(A.so),m.Y36(A.WI),m.Y36(e.IQ),m.Y36(C.V6),m.Y36(b.sK))},R.\u0275cmp=m.Xpm({type:R,selectors:[["app-delete-facility-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(w,L){1&w&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(q){return L.onSubmit(q)}),m.qZA()()),2&w&&(m.Tol(L.theme),m.xp6(1),m.Q6J("entityNames",L.dataSource)("entityType","facilities")("loading",L.loading)("relations",L.relations))},dependencies:[D.e]}),R})()},41656:(Xe,ue,p)=>{"use strict";p.d(ue,{P:()=>v});var e=p(65412),A=p(30671),C=p(81591),M=p(61744),m=p(94650),b=p(89383),D=p(90995);let v=(()=>{class R{constructor(w,L,O,q,ee){this.dialogRef=w,this.data=L,this.notificator=O,this.translate=q,this.groupService=ee,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.groups),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.SUBGROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.MEMBER_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0;const w=this.data.groups.map(L=>L.id);this.groupService.deleteGroups({groups:w,forceDelete:this.force}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(L=>{this.notificator.showSuccess(L),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(w){this.force=w.force,w.deleted?this.onDelete():this.onCancel()}}return R.\u0275fac=function(w){return new(w||R)(m.Y36(e.so),m.Y36(e.WI),m.Y36(C.V6),m.Y36(b.sK),m.Y36(M.ff))},R.\u0275cmp=m.Xpm({type:R,selectors:[["app-delete-group-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(w,L){1&w&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(q){return L.onSubmit(q)}),m.qZA()()),2&w&&(m.Tol(L.theme),m.xp6(1),m.Q6J("entityNames",L.dataSource)("entityType","groups")("loading",L.loading)("relations",L.relations))},dependencies:[D.e]}),R})()},90719:(Xe,ue,p)=>{"use strict";p.d(ue,{m:()=>D});var e=p(61744),A=p(65412),C=p(81591),M=p(30671),m=p(94650),b=p(90995);let D=(()=>{class v{constructor(B,w,L,O,q){this.dialogRef=B,this.data=w,this.serviceManager=L,this.notificator=O,this.translate=q,this.dataSource=new M.by(this.data.services),this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.services=this.data.services,this.relations.push(this.translate.instant("DIALOGS.DELETE_SERVICE.DESTINATION_RELATION")),this.anotherMessage=this.translate.instant("DIALOGS.DELETE_SERVICE.MORE_INFORMATION")}onConfirm(){this.loading=!0;const B=this.services.map(w=>w.id);this.serviceManager.deleteServices(B,this.force).subscribe({next:()=>{this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_SERVICE.SUCCESS")),this.loading=!1},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(B){this.force=B.force,B.deleted?this.onConfirm():this.onCancel()}}return v.\u0275fac=function(B){return new(B||v)(m.Y36(A.so),m.Y36(A.WI),m.Y36(e.KK),m.Y36(C.V6),m.Y36(C.Te))},v.\u0275cmp=m.Xpm({type:v,selectors:[["app-delete-service-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","anotherMessage","loading","relations","deleted"]],template:function(B,w){1&B&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(O){return w.onSubmit(O)}),m.qZA()()),2&B&&(m.Tol(w.theme),m.xp6(1),m.Q6J("entityNames",w.dataSource)("entityType","services")("anotherMessage",w.anotherMessage)("loading",w.loading)("relations",w.relations))},dependencies:[b.e]}),v})()},83491:(Xe,ue,p)=>{"use strict";p.d(ue,{_:()=>_e});var e=p(65412),A=p(61744),C=p(9244),M=p(37433),m=p(81591),b=p(94650),D=p(89383),v=p(36895),R=p(3238),B=p(39349),w=p(59549),L=p(284),O=p(24006),q=p(97392),ee=p(4859),z=p(3848),ie=p(56709),Te=p(84385),pe=p(51572),Le=p(10266),T=p(63312),W=p(52170);const F=["*"];let V=(()=>{class Se{}return Se.\u0275fac=function(Ce){return new(Ce||Se)},Se.\u0275cmp=b.Xpm({type:Se,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:F,decls:9,vars:2,consts:[[1,"d-flex"],[1,"w-25","m-auto","font-weight-bold"],[1,"w-75"],[1,"d-flex","mb-3"],[1,"w-25"],[1,"w-75","font-italic","text-muted"]],template:function(Ce,fe){1&Ce&&(b.F$t(),b.TgZ(0,"div",0)(1,"span",1),b._uU(2),b.qZA(),b.TgZ(3,"div",2),b.Hsn(4),b.qZA()(),b.TgZ(5,"div",3),b._UZ(6,"span",4),b.TgZ(7,"div",5),b._uU(8),b.qZA()()),2&Ce&&(b.xp6(2),b.hij("",fe.label,":"),b.xp6(6),b.hij(" ",fe.description," "))}}),Se})();var te=p(57706);let Q=(()=>{class Se{constructor(Ce){this.translateService=Ce}transform(Ce){switch(Ce){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+Ce);default:return Ce}}}return Se.\u0275fac=function(Ce){return new(Ce||Se)(b.Y36(D.sK,16))},Se.\u0275pipe=b.Yjl({name:"applicationFormItemDisabled",type:Se,pure:!0}),Se})(),Ee=(()=>{class Se{constructor(Ce){this.translateService=Ce}transform(Ce){switch(Ce){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+Ce);default:return Ce}}}return Se.\u0275fac=function(Ce){return new(Ce||Se)(b.Y36(D.sK,16))},Se.\u0275pipe=b.Yjl({name:"applicationFormItemHidden",type:Se,pure:!0}),Se})();function ge(Se,Ne){1&Se&&b._UZ(0,"mat-spinner",8)}function ve(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"section")(5,"mat-checkbox",22),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw(3);return b.KtG(u.applicationFormItem.updatable=r)}),b.qZA()()()()}if(2&Se){const Ce=b.oxw(3);b.xp6(1),b.Q6J("description",b.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION"))("label",b.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE")),b.xp6(4),b.Q6J("ngModel",Ce.applicationFormItem.updatable)}}function De(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div",13)(1,"mat-form-field",13)(2,"input",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw(3);return b.KtG(u.applicationFormItem.federationAttribute=r)}),b.qZA()()()}if(2&Se){const Ce=b.oxw(3);b.xp6(2),b.Q6J("ngModel",Ce.applicationFormItem.federationAttribute)}}function he(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"section")(5,"mat-checkbox",22),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.applicationFormItem.required=r)}),b.qZA()()(),b.YNc(6,ve,6,7,"div",17),b.TgZ(7,"app-edit-application-form-item-line",12),b.ALo(8,"translate"),b.ALo(9,"translate"),b.TgZ(10,"div",13)(11,"perun-web-apps-selection-item-search-select",23),b.NdJ("itemSelected",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.applicationFormItem.perunSourceAttribute=r.value)}),b.qZA()()(),b.TgZ(12,"app-edit-application-form-item-line",12),b.ALo(13,"translate"),b.ALo(14,"translate"),b.TgZ(15,"div",13)(16,"perun-web-apps-selection-item-search-select",23),b.NdJ("itemSelected",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.applicationFormItem.perunDestinationAttribute=r.value)}),b.qZA()()(),b.TgZ(17,"app-edit-application-form-item-line",12),b.ALo(18,"translate"),b.ALo(19,"translate"),b.TgZ(20,"div",13)(21,"perun-web-apps-selection-item-search-select",24),b.NdJ("itemSelected",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.changeFederationAttribute(r))}),b.qZA()(),b.YNc(22,De,3,1,"div",25),b.qZA()()}if(2&Se){const Ce=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,22,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION"))("label",b.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED")),b.xp6(4),b.Q6J("ngModel",Ce.applicationFormItem.required),b.xp6(1),b.Q6J("ngIf",Ce.typesWithUpdatable.indexOf(Ce.applicationFormItem.type)>-1),b.xp6(1),b.Q6J("description",b.lcZ(8,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION"))("label",b.lcZ(9,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE")),b.xp6(4),b.Q6J("attributes",Ce.sourceAttributes)("selectedAttribute",Ce.applicationFormItem.perunSourceAttribute)("asGroup",!!Ce.data.group)("type",Ce.itemType.SOURCE),b.xp6(1),b.Q6J("description",b.lcZ(13,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION"))("label",b.lcZ(14,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE")),b.xp6(4),b.Q6J("attributes",Ce.destinationAttributes)("selectedAttribute",Ce.applicationFormItem.perunDestinationAttribute)("asGroup",!!Ce.data.group)("type",Ce.itemType.DESTINATION),b.xp6(1),b.Q6J("description",b.lcZ(18,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION"))("label",b.lcZ(19,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE")),b.xp6(4),b.Q6J("selectedAttribute",Ce.applicationFormItem.federationAttribute)("asGroup",!!Ce.data.group)("type",Ce.itemType.FEDERATION),b.xp6(1),b.Q6J("ngIf"," -- custom value -- "===Ce.federationAttributeDN)}}function Ye(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"input",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.applicationFormItem.regex=r)}),b.qZA()()()()}if(2&Se){const Ce=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION"))("label",b.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX")),b.xp6(4),b.Q6J("ngModel",Ce.applicationFormItem.regex)}}function Be(Se,Ne){if(1&Se&&(b.TgZ(0,"mat-option",26),b._uU(1),b.ALo(2,"applicationFormItemDisabled"),b.qZA()),2&Se){const Ce=Ne.$implicit;b.Q6J("value",Ce),b.xp6(1),b.hij(" ",b.lcZ(2,2,Ce)," ")}}function se(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"perun-web-apps-app-form-item-search-select",27),b.NdJ("itemSelected",function(r){b.CHM(Ce);const u=b.oxw(3);return b.KtG(u.disabledDependencyItem=r)}),b.qZA()}if(2&Se){const Ce=b.oxw(3);b.Q6J("item",Ce.disabledDependencyItem)("items",Ce.possibleDependencyItems)}}function le(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"mat-select",18),b.NdJ("valueChange",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.applicationFormItem.disabled=r)}),b.YNc(6,Be,3,4,"mat-option",19),b.qZA()()(),b.TgZ(7,"app-edit-application-form-item-line",12),b.ALo(8,"translate"),b.ALo(9,"translate"),b.TgZ(10,"div",13),b.YNc(11,se,1,2,"perun-web-apps-app-form-item-search-select",20),b.qZA()()()}if(2&Se){const Ce=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION"))("label",b.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED")),b.xp6(4),b.Q6J("value",Ce.applicationFormItem.disabled),b.xp6(1),b.Q6J("ngForOf",Ce.disabledValues),b.xp6(1),b.Q6J("description",b.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION"))("label",b.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY")),b.xp6(4),b.Q6J("ngIf",null!==Ce.disabledDependencyItem)}}function k(Se,Ne){if(1&Se&&(b.TgZ(0,"mat-option",26),b._uU(1),b.ALo(2,"applicationFormItemHidden"),b.qZA()),2&Se){const Ce=Ne.$implicit;b.Q6J("value",Ce),b.xp6(1),b.hij(" ",b.lcZ(2,2,Ce)," ")}}function N(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"perun-web-apps-app-form-item-search-select",27),b.NdJ("itemSelected",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.hiddenDependencyItem=r)}),b.qZA()}if(2&Se){const Ce=b.oxw(2);b.Q6J("item",Ce.hiddenDependencyItem)("items",Ce.possibleDependencyItems)}}function be(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"textarea",28),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw().$implicit,_=b.oxw(2);return b.KtG(_.applicationFormItem.i18n[u].label=r)}),b.qZA()()()()}if(2&Se){const Ce=b.oxw().$implicit,fe=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION"))("label",b.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT")),b.xp6(4),b.Q6J("cdkTextareaAutosize",!0)("ngModel",fe.applicationFormItem.i18n[Ce].label)}}function Z(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"textarea",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw().$implicit,_=b.oxw(2);return b.KtG(_.applicationFormItem.i18n[u].label=r)}),b.qZA()()(),b.TgZ(6,"app-edit-application-form-item-line",12),b.ALo(7,"translate"),b.ALo(8,"translate"),b.TgZ(9,"mat-form-field",13)(10,"textarea",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw().$implicit,_=b.oxw(2);return b.KtG(_.applicationFormItem.i18n[u].help=r)}),b.qZA()()(),b.TgZ(11,"app-edit-application-form-item-line",12),b.ALo(12,"translate"),b.ALo(13,"translate"),b.TgZ(14,"mat-form-field",13)(15,"textarea",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw().$implicit,_=b.oxw(2);return b.KtG(_.applicationFormItem.i18n[u].errorMessage=r)}),b.qZA()()()()}if(2&Se){const Ce=b.oxw().$implicit,fe=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION"))("label",b.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),b.xp6(4),b.Q6J("ngModel",fe.applicationFormItem.i18n[Ce].label),b.xp6(1),b.Q6J("description",b.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION"))("label",b.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP")),b.xp6(4),b.Q6J("ngModel",fe.applicationFormItem.i18n[Ce].help),b.xp6(1),b.Q6J("description",b.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION"))("label",b.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR")),b.xp6(4),b.Q6J("ngModel",fe.applicationFormItem.i18n[Ce].errorMessage)}}function de(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"textarea",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw().$implicit,_=b.oxw(2);return b.KtG(_.applicationFormItem.i18n[u].label=r)}),b.qZA()()()()}if(2&Se){const Ce=b.oxw().$implicit,fe=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION"))("label",b.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),b.xp6(4),b.Q6J("ngModel",fe.applicationFormItem.i18n[Ce].label)}}function xe(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div"),b._uU(1),b.ALo(2,"translate"),b.TgZ(3,"mat-form-field")(4,"input",14),b.NdJ("ngModelChange",function(r){const _=b.CHM(Ce).$implicit;return b.KtG(_[0]=r)}),b.qZA()(),b._uU(5),b.ALo(6,"translate"),b.TgZ(7,"mat-form-field")(8,"input",14),b.NdJ("ngModelChange",function(r){const _=b.CHM(Ce).$implicit;return b.KtG(_[1]=r)}),b.qZA()(),b.TgZ(9,"button",37),b.NdJ("click",function(){const u=b.CHM(Ce).$implicit,_=b.oxw(2).$implicit,E=b.oxw(2);return b.KtG(E.removeOption(u,_))}),b.ALo(10,"translate"),b.TgZ(11,"mat-icon"),b._uU(12,"clear"),b.qZA()()()}if(2&Se){const Ce=Ne.$implicit;b.xp6(1),b.hij(" ",b.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),b.xp6(3),b.Q6J("ngModel",Ce[0]),b.xp6(1),b.hij(" ",b.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),b.xp6(3),b.Q6J("ngModel",Ce[1]),b.xp6(1),b.s9C("matTooltip",b.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function ot(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div")(1,"div",29),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"div",30),b._uU(5),b.ALo(6,"translate"),b.qZA(),b.TgZ(7,"div",31)(8,"button",32),b.NdJ("click",function(){b.CHM(Ce);const r=b.oxw().$implicit,u=b.oxw(2);return b.KtG(u.sortOptionsAZ(r))}),b.TgZ(9,"i",33),b._uU(10,"arrow_downward"),b.qZA(),b._uU(11),b.ALo(12,"translate"),b.qZA(),b.TgZ(13,"button",34),b.NdJ("click",function(){b.CHM(Ce);const r=b.oxw().$implicit,u=b.oxw(2);return b.KtG(u.sortOptionsZA(r))}),b.TgZ(14,"i",33),b._uU(15,"arrow_upward"),b.qZA(),b._uU(16),b.ALo(17,"translate"),b.qZA()(),b.YNc(18,xe,13,11,"div",35),b.TgZ(19,"button",36),b.NdJ("click",function(){b.CHM(Ce);const r=b.oxw().$implicit,u=b.oxw(2);return b.KtG(u.addOption(r))}),b._uU(20),b.ALo(21,"translate"),b.qZA()()}if(2&Se){const Ce=b.oxw().$implicit,fe=b.oxw(2);b.xp6(2),b.hij(" ",b.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),": "),b.xp6(3),b.hij(" ",b.lcZ(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),b.xp6(6),b.hij(" ",b.lcZ(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),b.xp6(5),b.hij(" ",b.lcZ(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),b.xp6(2),b.Q6J("ngForOf",fe.options[Ce]),b.xp6(2),b.hij(" ",b.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const Fe=function(){return["HEADING","HTML_COMMENT"]},ut=function(){return["TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]},tt=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},vt=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function X(Se,Ne){if(1&Se&&(b.TgZ(0,"mat-tab",11),b.ALo(1,"translate"),b.ALo(2,"uppercase"),b.YNc(3,be,6,8,"div",17),b.YNc(4,Z,16,21,"div",17),b.YNc(5,de,6,7,"div",17),b.YNc(6,ot,22,16,"div",17),b.qZA()),2&Se){const Ce=Ne.$implicit,fe=b.oxw(2);b.s9C("label",b.lcZ(1,5,b.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+Ce))),b.xp6(3),b.Q6J("ngIf",fe.isApplicationFormItemOfType(b.DdM(9,Fe))),b.xp6(1),b.Q6J("ngIf",fe.isApplicationFormItemOfType(b.DdM(10,ut))),b.xp6(1),b.Q6J("ngIf",fe.isApplicationFormItemOfType(b.DdM(11,tt))),b.xp6(1),b.Q6J("ngIf",fe.isApplicationFormItemOfType(b.DdM(12,vt)))}}const nt=function(){return["TEXTFIELD","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]},Ae=function(){return["TEXTFIELD","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]};function ye(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div",9)(1,"mat-tab-group",10)(2,"mat-tab",11),b.ALo(3,"translate"),b.TgZ(4,"app-edit-application-form-item-line",12),b.ALo(5,"translate"),b.ALo(6,"translate"),b.TgZ(7,"mat-form-field",13)(8,"input",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw();return b.KtG(u.applicationFormItem.shortname=r)}),b.qZA()()(),b.TgZ(9,"app-edit-application-form-item-line",12),b.ALo(10,"translate"),b.ALo(11,"translate"),b._uU(12),b.ALo(13,"applicationFormItemType"),b.qZA(),b.TgZ(14,"app-edit-application-form-item-line",12),b.ALo(15,"translate"),b.ALo(16,"translate"),b.TgZ(17,"section")(18,"mat-checkbox",15),b.NdJ("change",function(){b.CHM(Ce);const r=b.oxw();return b.KtG(r.onChangingType("INITIAL"))}),b._uU(19),b.ALo(20,"translate"),b.qZA(),b.TgZ(21,"mat-checkbox",16),b.NdJ("change",function(){b.CHM(Ce);const r=b.oxw();return b.KtG(r.onChangingType("EXTENSION"))}),b._uU(22),b.ALo(23,"translate"),b.qZA()()(),b.YNc(24,he,23,38,"div",17),b.YNc(25,Ye,6,7,"div",17),b.YNc(26,le,12,15,"div",17),b.TgZ(27,"app-edit-application-form-item-line",12),b.ALo(28,"translate"),b.ALo(29,"translate"),b.TgZ(30,"mat-form-field",13)(31,"mat-select",18),b.NdJ("valueChange",function(r){b.CHM(Ce);const u=b.oxw();return b.KtG(u.applicationFormItem.hidden=r)}),b.YNc(32,k,3,4,"mat-option",19),b.qZA()()(),b.TgZ(33,"app-edit-application-form-item-line",12),b.ALo(34,"translate"),b.ALo(35,"translate"),b.TgZ(36,"div",13),b.YNc(37,N,1,2,"perun-web-apps-app-form-item-search-select",20),b.qZA()()(),b.YNc(38,X,7,13,"mat-tab",21),b.qZA()()}if(2&Se){const Ce=b.oxw();b.xp6(2),b.s9C("label",b.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),b.xp6(2),b.Q6J("description",b.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION"))("label",b.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME")),b.xp6(4),b.Q6J("ngModel",Ce.applicationFormItem.shortname),b.xp6(1),b.Q6J("description",b.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION"))("label",b.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET")),b.xp6(3),b.hij(" ",b.lcZ(13,34,Ce.applicationFormItem.type)," "),b.xp6(2),b.Q6J("description",b.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION"))("label",b.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION")),b.xp6(4),b.Q6J("ngModel",Ce.applicationFormItem.applicationTypes.includes("INITIAL")),b.xp6(1),b.hij(" ",b.lcZ(20,40,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),b.xp6(2),b.Q6J("ngModel",Ce.applicationFormItem.applicationTypes.includes("EXTENSION")),b.xp6(1),b.hij(" ",b.lcZ(23,42,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),b.xp6(2),b.Q6J("ngIf",Ce.isApplicationFormItemOfType(b.DdM(52,nt))),b.xp6(1),b.Q6J("ngIf",Ce.isApplicationFormItemOfType(b.DdM(53,Ae))),b.xp6(1),b.Q6J("ngIf",Ce.typesWithDisabled.indexOf(Ce.applicationFormItem.type)>-1),b.xp6(1),b.Q6J("description",b.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION"))("label",b.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN")),b.xp6(4),b.Q6J("value",Ce.applicationFormItem.hidden),b.xp6(1),b.Q6J("ngForOf",Ce.hiddenValues),b.xp6(1),b.Q6J("description",b.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION"))("label",b.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY")),b.xp6(4),b.Q6J("ngIf",null!==Ce.hiddenDependencyItem),b.xp6(1),b.Q6J("ngForOf",Ce.languages)}}let _e=(()=>{class Se{constructor(Ce,fe,r,u,_,E){this.dialogRef=Ce,this.data=fe,this.attributesManager=r,this.translateService=u,this.store=_,this.cd=E,this.federationAttributeDN="",this.itemType=M.qG,this.loading=!1,this.hiddenValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.disabledValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.possibleDependencyItems=[],this.typesWithUpdatable=["VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","TIMEZONE"],this.typesWithDisabled=["USERNAME","PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.languages=["en"],this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"]}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(Ce=>Ce.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=M.Sx),this.disabledDependencyItem=this.data.allItems.find(Ce=>Ce.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=M.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,C.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(Ce=>{const fe=this.filterAttributesForWidget(Ce);this.sourceAttributes=fe.concat(this.findAttribute(Ce,this.applicationFormItem.perunSourceAttribute)),this.destinationAttributes=fe.concat(this.findAttribute(Ce,this.applicationFormItem.perunDestinationAttribute)),this.loading=!1},()=>this.loading=!1),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}cancel(){this.dialogRef.close()}submit(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===M.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===M.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(Ce){if(this.applicationFormItem.applicationTypes.includes(Ce)){const fe=this.applicationFormItem.applicationTypes.indexOf(Ce);this.applicationFormItem.applicationTypes.splice(fe,1)}else this.applicationFormItem.applicationTypes.push(Ce)}addOption(Ce){this.options[Ce].push(["",""])}removeOption(Ce,fe){this.options[fe]=this.options[fe].filter(r=>!(r[0]===Ce[0]&&r[1]===Ce[1]))}sortOptionsAZ(Ce){this.options[Ce]=this.options[Ce].sort((fe,r)=>fe[1]>r[1]?1:fe[1]fe[1]>r[1]?-1:fe[1]this.dependencyTypes.includes(Ce.type)).filter(Ce=>Ce.id!==this.data.applicationFormItem.id))}updateOption(Ce){let fe="";if(this.options[Ce])for(const r of this.options[Ce])""!==r[0]&&""!==r[1]&&(fe=""===fe?r[0]+"#"+r[1]:fe+"|"+r[0]+"#"+r[1]);this.applicationFormItem.i18n[Ce].options=fe}updateOptions(){for(const Ce of this.languages)this.updateOption(Ce)}findAttribute(Ce,fe){return Ce.find(r=>fe.includes(r.friendlyName))}filterAttributesForWidget(Ce){return Ce.filter("MAP_INPUT_BOX"===this.applicationFormItem.type?fe=>fe.type.includes("LinkedHashMap"):"LIST_INPUT_BOX"===this.applicationFormItem.type?fe=>fe.type.includes("ArrayList"):fe=>!fe.type.includes("ArrayList")&&!fe.type.includes("LinkedHashMap"))}}return Se.\u0275fac=function(Ce){return new(Ce||Se)(b.Y36(e.so),b.Y36(e.WI),b.Y36(A.H8),b.Y36(D.sK),b.Y36(m.d6),b.Y36(b.sBO))},Se.\u0275cmp=b.Xpm({type:Se,selectors:[["app-edit-application-form-item-dialog"]],decls:16,vars:20,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","accent","data-cy","edit-form-item-button-dialog",1,"ml-2","mt-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["color","primary"],[3,"label"],[3,"description","label"],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"],[1,"mr-2",3,"ngModel","change"],[3,"ngModel","change"],[4,"ngIf"],["disableOptionCentering","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"item","items","itemSelected",4,"ngIf"],[3,"label",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"attributes","selectedAttribute","asGroup","type","itemSelected"],[3,"selectedAttribute","asGroup","type","itemSelected"],["class","w-100",4,"ngIf"],[3,"value"],[3,"item","items","itemSelected"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"font-weight-bold"],[1,"text-muted","font-italic"],[1,"d-flex","mt-2","mb-2"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],[1,"material-icons"],["mat-flat-button","",1,"mr-auto",3,"click"],[4,"ngFor","ngForOf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-icon-button","",3,"matTooltip","click"]],template:function(Ce,fe){1&Ce&&(b.TgZ(0,"div")(1,"div",0)(2,"h1",1),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.YNc(5,ge,1,0,"mat-spinner",2),b.YNc(6,ye,39,54,"div",3),b.TgZ(7,"div",4)(8,"button",5),b.NdJ("click",function(){return fe.cancel()}),b._uU(9),b.ALo(10,"translate"),b.qZA(),b.TgZ(11,"div",6),b.ALo(12,"translate"),b.TgZ(13,"button",7),b.NdJ("click",function(){return fe.submit()}),b._uU(14),b.ALo(15,"translate"),b.qZA()()()()()),2&Ce&&(b.Gre("",fe.theme," h-100"),b.xp6(3),b.AsE(" ",b.lcZ(4,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",fe.applicationFormItem.shortname," "),b.xp6(2),b.Q6J("ngIf",fe.loading),b.xp6(1),b.Q6J("ngIf",!fe.loading),b.xp6(3),b.hij(" ",b.lcZ(10,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),b.xp6(2),b.s9C("matTooltip",b.lcZ(12,16,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON_DISABLED_TOOLTIP")),b.Q6J("matTooltipDisabled",!fe.applicationFormItem.required||""!==fe.applicationFormItem.perunSourceAttribute||""!==fe.applicationFormItem.federationAttribute||"ALWAYS"!==fe.applicationFormItem.disabled&&"ALWAYS"!==fe.applicationFormItem.hidden),b.xp6(2),b.Q6J("disabled",fe.loading||fe.applicationFormItem.required&&""===fe.applicationFormItem.perunSourceAttribute&&""===fe.applicationFormItem.federationAttribute&&("ALWAYS"===fe.applicationFormItem.disabled||"ALWAYS"===fe.applicationFormItem.hidden)),b.xp6(1),b.hij(" ",b.lcZ(15,18,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},dependencies:[v.sg,v.O5,R.ey,B.IC,w.KE,L.Nt,O.Fj,O.JJ,O.On,q.Hw,ee.lW,z.SP,z.uX,ie.oG,e.uh,e.xY,e.H8,Te.gD,pe.Ou,Le.gM,T.Y,W.$x,V,v.gd,D.X$,te.c,Q,Ee]}),Se})()},19352:(Xe,ue,p)=>{"use strict";p.d(ue,{H:()=>De});var e=p(61744),A=p(65412),C=p(81591),M=p(30671),m=p(9244),b=p(21029),D=p(36895),v=p(94650),R=p(97392),B=p(4859),w=p(51572),L=p(10266),O=p(89383),q=p(31359);function ee(he,Ye){1&he&&v._UZ(0,"mat-spinner",6)}function z(he,Ye){1&he&&(v.TgZ(0,"th",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&he&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")," "))}function ie(he,Ye){if(1&he&&(v.TgZ(0,"td",18),v._uU(1),v.qZA()),2&he){const Be=Ye.$implicit;v.xp6(1),v.Oqu(Be.user.id)}}function Te(he,Ye){1&he&&(v.TgZ(0,"th",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&he&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")," "))}function pe(he,Ye){if(1&he&&(v.TgZ(0,"td",18),v._uU(1),v.ALo(2,"userFullName"),v.qZA()),2&he){const Be=Ye.$implicit;v.xp6(1),v.Oqu(v.lcZ(2,1,Be.user))}}function Le(he,Ye){1&he&&(v.TgZ(0,"th",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&he&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")," "))}function T(he,Ye){if(1&he){const Be=v.EpF();v.TgZ(0,"button",20),v.NdJ("click",function(){v.CHM(Be);const le=v.oxw().$implicit,k=v.oxw(2);return v.KtG(k.changeExpiration(le))}),v.TgZ(1,"mat-icon"),v._uU(2," today "),v.qZA()()}}function W(he,Ye){if(1&he&&(v.TgZ(0,"td",18)(1,"span"),v._uU(2),v.qZA(),v.YNc(3,T,3,0,"button",19),v.qZA()),2&he){const Be=Ye.$implicit,se=v.oxw(2);v.xp6(2),v.Oqu(se.parseDate(Be.validityTo)),v.xp6(1),v.Q6J("ngIf",se.isExpirationAuthorized(Be))}}function F(he,Ye){1&he&&v._UZ(0,"th",17)}function V(he,Ye){1&he&&(v.TgZ(0,"mat-icon",25),v._uU(1,"clear"),v.qZA())}function te(he,Ye){1&he&&(v.TgZ(0,"mat-icon"),v._uU(1,"settings_backup_restore"),v.qZA())}function Q(he,Ye){if(1&he){const Be=v.EpF();v.TgZ(0,"td",18)(1,"div",21),v.ALo(2,"translate"),v.TgZ(3,"button",22),v.NdJ("click",function(){const k=v.CHM(Be).$implicit,N=v.oxw(2);return v.KtG(N.markSponsor(k))}),v.YNc(4,V,2,0,"mat-icon",23),v.YNc(5,te,2,0,"mat-icon",24),v.qZA()()()}if(2&he){const Be=Ye.$implicit,se=v.oxw(2);v.xp6(1),v.s9C("matTooltip",v.lcZ(2,7,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),v.Q6J("matTooltipDisabled",se.isRemoveAuthorized(Be))("matTooltipPosition","above"),v.xp6(2),v.Q2q("data-cy","",Be.user.firstName,"-unsponsor-mark-button"),v.Q6J("disabled",!se.isRemoveAuthorized(Be)),v.xp6(1),v.Q6J("ngIf",!se.sponsorsToRemove.has(Be.user.id)),v.xp6(1),v.Q6J("ngIf",se.sponsorsToRemove.has(Be.user.id))}}function Ee(he,Ye){1&he&&v._UZ(0,"tr",26)}function ge(he,Ye){if(1&he&&v._UZ(0,"tr",27),2&he){const Be=Ye.$implicit,se=v.oxw(2);v.ekj("make-red",se.sponsorsToRemove.has(Be.user.id))}}function ve(he,Ye){if(1&he&&(v.TgZ(0,"div",7)(1,"table",8),v.ynx(2,9),v.YNc(3,z,3,3,"th",10),v.YNc(4,ie,2,1,"td",11),v.BQk(),v.ynx(5,12),v.YNc(6,Te,3,3,"th",10),v.YNc(7,pe,3,3,"td",11),v.BQk(),v.ynx(8,13),v.YNc(9,Le,3,3,"th",10),v.YNc(10,W,4,2,"td",11),v.BQk(),v.ynx(11,14),v.YNc(12,F,1,0,"th",10),v.YNc(13,Q,6,9,"td",11),v.BQk(),v.YNc(14,Ee,1,0,"tr",15),v.YNc(15,ge,1,2,"tr",16),v.qZA()()),2&he){const Be=v.oxw();v.xp6(1),v.Q6J("dataSource",Be.dataSource),v.xp6(13),v.Q6J("matHeaderRowDef",Be.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",Be.displayedColumns)}}let De=(()=>{class he{constructor(Be,se,le,k,N,be,Z,de){this.dialogRef=Be,this.data=se,this.memberService=le,this.userService=k,this.notificator=N,this.authResolver=be,this.translate=Z,this.dialog=de,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.sponsorsToRemove=new Set,this.expirationChanged=!1}ngOnInit(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new M.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(Be){this.sponsorsToRemove.has(Be.user.id)?this.sponsorsToRemove.delete(Be.user.id):this.sponsorsToRemove.add(Be.user.id)}onSubmit(){this.loading=!0;const Be=Array.from(this.sponsorsToRemove);this.removeSponsors(Be)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(Be){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[Be.user])}isExpirationAuthorized(Be){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[Be.user,this.vo])}parseDate(Be){return null===Be?"Never expire":(0,D.p6)(Be,"d.M.y","en")}changeExpiration(Be){const se=(0,m.kZ)();se.width="400px",se.data={memberId:this.data.member.id,sponsor:Be},this.dialog.open(b.hd,se).afterClosed().subscribe(k=>{k&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(N=>{this.sponsors=N,this.dataSource=new M.by(this.sponsors),this.loading=!1}))})}removeSponsors(Be){this.memberService.removeSponsors(this.data.member.id,Be).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return he.\u0275fac=function(Be){return new(Be||he)(v.Y36(A.so),v.Y36(A.WI),v.Y36(e.uq),v.Y36(e.Fv),v.Y36(C.V6),v.Y36(C.x4),v.Y36(C.Te),v.Y36(A.uw))},he.\u0275cmp=v.Xpm({type:he,selectors:[["app-edit-member-sponsors-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","unsponsor-confirm-button","color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expiration"],["matColumnDef","remove"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"make-red",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-icon-button","",1,"btn-delete",3,"disabled","click"],["class","icn-delete","color","warn",4,"ngIf"],[4,"ngIf"],["color","warn",1,"icn-delete"],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Be,se){1&Be&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div"),v.YNc(4,ee,1,0,"mat-spinner",1),v.YNc(5,ve,16,3,"div",2),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return se.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return se.onSubmit()}),v._uU(11),v.ALo(12,"translate"),v.qZA()()()),2&Be&&(v.xp6(1),v.Oqu(v.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),v.xp6(2),v.Tol(se.theme),v.xp6(1),v.Q6J("ngIf",se.loading),v.xp6(1),v.Q6J("ngIf",!se.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL")," "),v.xp6(2),v.Q6J("disabled",se.loading||0===se.sponsorsToRemove.size),v.xp6(1),v.hij(" ",v.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT")," "))},dependencies:[D.O5,R.Hw,B.lW,M.BZ,M.fO,M.as,M.w1,M.Dz,M.nj,M.ge,M.ev,M.XQ,M.Gk,A.uh,A.xY,A.H8,w.Ou,L.gM,O.X$,q.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:gray}"]}),he})()},74414:(Xe,ue,p)=>{"use strict";p.d(ue,{R:()=>T});var e=p(65412),A=p(24006),C=p(61744),M=p(81591),m=p(94650),b=p(89383),D=p(36895),v=p(3238),R=p(59549),B=p(284),w=p(4859),L=p(84385),O=p(51572);function q(W,F){1&W&&m._UZ(0,"mat-spinner",6)}function ee(W,F){1&W&&(m.TgZ(0,"div",14),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&W&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function z(W,F){1&W&&(m.TgZ(0,"div",14),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&W&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function ie(W,F){1&W&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&W&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function Te(W,F){1&W&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&W&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function pe(W,F){if(1&W&&(m.TgZ(0,"mat-option",15),m._uU(1),m.ALo(2,"translate"),m.ALo(3,"uppercase"),m.qZA()),2&W){const V=F.$implicit;m.s9C("value",V),m.xp6(1),m.Oqu(m.lcZ(2,2,m.lcZ(3,4,"SHARED_LIB.LANGUAGES."+V)))}}function Le(W,F){if(1&W){const V=m.EpF();m.TgZ(0,"div",7),m.YNc(1,ee,3,3,"div",8),m.YNc(2,z,3,3,"div",8),m.TgZ(3,"mat-form-field",9),m._UZ(4,"input",10),m.ALo(5,"translate"),m.YNc(6,ie,3,3,"mat-error",11),m.qZA(),m.TgZ(7,"mat-form-field",9),m._UZ(8,"textarea",10),m.ALo(9,"translate"),m.YNc(10,Te,3,3,"mat-error",11),m.qZA(),m.TgZ(11,"mat-form-field",9)(12,"mat-label"),m._uU(13),m.ALo(14,"translate"),m.qZA(),m.TgZ(15,"mat-select",12),m.NdJ("valueChange",function(Q){m.CHM(V);const Ee=m.oxw();return m.KtG(Ee.currentLanguage=Q)}),m.YNc(16,pe,4,6,"mat-option",13),m.qZA()()()}if(2&W){const V=m.oxw();m.xp6(1),m.Q6J("ngIf",!V.data.groupId),m.xp6(1),m.Q6J("ngIf",V.data.groupId),m.xp6(2),m.s9C("placeholder",m.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),m.Q6J("formControl",V.name),m.xp6(2),m.Q6J("ngIf",V.name.invalid),m.xp6(2),m.s9C("placeholder",m.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),m.Q6J("formControl",V.emailForm),m.xp6(2),m.Q6J("ngIf",V.emailForm.invalid),m.xp6(3),m.Oqu(m.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),m.xp6(2),m.Q6J("value",V.currentLanguage),m.xp6(1),m.Q6J("ngForOf",V.languages)}}let T=(()=>{class W{constructor(V,te,Q,Ee,ge,ve){this.dialogRef=V,this.data=te,this.registrarManager=Q,this.notificator=Ee,this.translate=ge,this.store=ve,this.emailForm=new A.p4("",[A.kI.required,A.kI.email.bind(this)]),this.languages=["en"],this.currentLanguage="en",this.name=new A.p4("",A.kI.required),this.loading=!1}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.emailForm.invalid||this.name.invalid||(this.data.voId&&!this.data.groupId?(this.loading=!0,this.registrarManager.sendInvitation(this.emailForm.value,this.currentLanguage,this.data.voId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(V=>{this.notificator.showSuccess(V),this.dialogRef.close(!0)})},()=>this.loading=!1)):(this.loading=!0,this.registrarManager.sendInvitationForGroup(this.emailForm.value,this.currentLanguage,this.data.voId,this.data.groupId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(V=>{this.notificator.showSuccess(V),this.dialogRef.close(!0)})},()=>this.loading=!1)))}}return W.\u0275fac=function(V){return new(V||W)(m.Y36(e.so),m.Y36(e.WI),m.Y36(C.tk),m.Y36(M.V6),m.Y36(b.sK),m.Y36(M.d6))},W.\u0275cmp=m.Xpm({type:W,selectors:[["app-invite-member-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-italic",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"font-italic"],[3,"value"]],template:function(V,te){1&V&&(m.TgZ(0,"div")(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,q,1,0,"mat-spinner",1),m.YNc(5,Le,17,17,"div",2),m.TgZ(6,"div",3)(7,"button",4),m.NdJ("click",function(){return te.onCancel()}),m._uU(8),m.ALo(9,"translate"),m.qZA(),m.TgZ(10,"button",5),m.NdJ("click",function(){return te.onSubmit()}),m._uU(11),m.ALo(12,"translate"),m.qZA()()()),2&V&&(m.Tol(te.theme),m.xp6(2),m.Oqu(m.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),m.xp6(2),m.Q6J("ngIf",te.loading),m.xp6(1),m.Q6J("ngIf",!te.loading),m.xp6(3),m.hij(" ",m.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),m.xp6(2),m.Q6J("disabled",te.emailForm.invalid||te.name.invalid||te.loading),m.xp6(1),m.hij(" ",m.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},dependencies:[D.sg,D.O5,v.ey,R.TO,R.KE,R.hX,B.Nt,A.Fj,A.JJ,A.Q7,A.oH,w.lW,e.uh,e.xY,e.H8,L.gD,O.Ou,D.gd,b.X$]}),W})()},87842:(Xe,ue,p)=>{"use strict";p.d(ue,{c:()=>Q});var e=p(65412),A=p(24006),C=p(68675),M=p(54004),m=p(36769),b=p(81591),D=p(61744),v=p(94650),R=p(89383),B=p(36895),w=p(47957),L=p(3238),O=p(59549),q=p(284),ee=p(4859),z=p(51572),ie=p(10266),Te=p(71948),pe=p(98380);function Le(Ee,ge){1&Ee&&(v.TgZ(0,"mat-radio-button",12),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Ee&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function T(Ee,ge){1&Ee&&(v.TgZ(0,"mat-radio-button",13),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Ee&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function W(Ee,ge){1&Ee&&(v.TgZ(0,"perun-web-apps-alert",14),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Ee&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function F(Ee,ge){if(1&Ee){const ve=v.EpF();v.TgZ(0,"mat-option",20),v.NdJ("click",function(){const Ye=v.CHM(ve).$implicit,Be=v.oxw(2);return v.KtG(Be.selectedGroup=Ye)}),v.TgZ(1,"span"),v._uU(2),v.qZA()()}if(2&Ee){const ve=ge.$implicit;v.Q6J("value",ve),v.xp6(2),v.Oqu(ve.name)}}function V(Ee,ge){if(1&Ee){const ve=v.EpF();v.TgZ(0,"mat-form-field",15)(1,"input",16),v.NdJ("change",function(){v.CHM(ve);const he=v.oxw();return v.KtG(he.selectedGroup=null)}),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"mat-autocomplete",17,18),v.YNc(5,F,3,2,"mat-option",19),v.ALo(6,"async"),v.qZA()()}if(2&Ee){const ve=v.MAs(4),De=v.oxw();v.Q6J("@openClose","toGroup"===De.moveOption?"open":"closed"),v.xp6(1),v.s9C("placeholder",v.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),v.Q6J("formControl",De.otherGroupsCtrl)("matAutocomplete",ve),v.xp6(2),v.Q6J("displayWith",De.displayFn),v.xp6(2),v.Q6J("ngForOf",v.lcZ(6,8,De.filteredGroups))}}function te(Ee,ge){1&Ee&&v._UZ(0,"mat-spinner",21)}let Q=(()=>{class Ee{constructor(ve,De,he,Ye,Be,se,le){this.dialogRef=ve,this.data=De,this.groupService=he,this.notificator=Ye,this.translate=Be,this.apiRequest=se,this.authResolver=le,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new A.p4(null,[A.kI.required.bind(this)]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(k=>this.successMessage=k),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(k=>this.errorMessage=k)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(ve=>{this.otherGroups=ve.filter(De=>De.id!==this.data.group.id&&"members"!==De.name&&this.canMove(De)),0===this.otherGroups.length&&(this.toGroupOptionDisabled=!0),(null===this.data.group.parentGroupId||!this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.data.group]))&&(this.toRootOptionDisabled=!0,this.moveOption="toGroup"),this.filteredGroups=this.otherGroupsCtrl.valueChanges.pipe((0,C.O)(""),(0,M.U)(De=>De?this._filterGroups(De):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(ve){return ve&&ve.name}canMove(ve){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[ve,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,ve])}close(){this.dialogRef.close()}confirm(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.groupService.moveGroupWithDestinationGroupMovingGroup(this.data.group.id,this.otherGroupsCtrl.value?this.otherGroupsCtrl.value.id:void 0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},ve=>{this.notificator.showRPCError(ve,this.errorMessage),this.dialogRef.close(!1)})}_filterGroups(ve){if("object"==typeof ve)return[];const De=ve.toLowerCase();return ve?this.otherGroups.filter(he=>he.name.toLowerCase().includes(De)):this.otherGroups}}return Ee.\u0275fac=function(ve){return new(ve||Ee)(v.Y36(e.so),v.Y36(e.WI),v.Y36(D.ff),v.Y36(b.V6),v.Y36(R.sK),v.Y36(b.F5),v.Y36(b.x4))},Ee.\u0275cmp=v.Xpm({type:Ee,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","class","move-options","value","toRoot",4,"ngIf"],["color","primary","value","toGroup",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","w-100 mt-2",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["color","primary","value","toGroup"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","formControl","matAutocomplete","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(ve,De){1&ve&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",1)(5,"p"),v._uU(6),v.ALo(7,"translate"),v.qZA(),v.TgZ(8,"mat-radio-group",2),v.NdJ("ngModelChange",function(Ye){return De.moveOption=Ye}),v.YNc(9,Le,3,3,"mat-radio-button",3),v.YNc(10,T,3,3,"mat-radio-button",4),v.qZA(),v.YNc(11,W,3,3,"perun-web-apps-alert",5),v.YNc(12,V,7,10,"mat-form-field",6),v.qZA(),v.YNc(13,te,1,0,"mat-spinner",7),v.TgZ(14,"div",8)(15,"button",9),v.NdJ("click",function(){return De.close()}),v._uU(16),v.ALo(17,"translate"),v.qZA(),v.TgZ(18,"span",10),v.ALo(19,"translate"),v.TgZ(20,"button",11),v.NdJ("click",function(){return De.confirm()}),v._uU(21),v.ALo(22,"translate"),v.qZA()()()()),2&ve&&(v.Tol(De.data.theme),v.xp6(2),v.AsE("",v.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",De.data.group.name,""),v.xp6(4),v.hij(" ",v.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),v.xp6(2),v.Q6J("ngModel",De.moveOption),v.xp6(1),v.Q6J("ngIf",!De.toRootOptionDisabled),v.xp6(1),v.Q6J("ngIf",!De.toGroupOptionDisabled),v.xp6(1),v.Q6J("ngIf",De.toRootOptionDisabled&&De.toGroupOptionDisabled),v.xp6(1),v.Q6J("ngIf",!De.toGroupOptionDisabled),v.xp6(1),v.Q6J("ngIf",De.loading),v.xp6(3),v.hij(" ",v.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),v.xp6(2),v.s9C("matTooltip",v.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),v.Q6J("matTooltipDisabled",null!==De.selectedGroup||"toRoot"===De.moveOption)("matTooltipPosition","above"),v.xp6(2),v.Q6J("disabled",(De.otherGroupsCtrl.invalid||null===De.selectedGroup)&&"toRoot"!==De.moveOption||De.loading),v.xp6(1),v.hij(" ",v.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},dependencies:[B.sg,B.O5,w.XC,w.ZL,L.ey,O.KE,q.Nt,A.Fj,A.JJ,A.Q7,A.oH,A.On,ee.lW,e.uh,e.xY,e.H8,z.Ou,ie.gM,Te.VQ,Te.U0,pe.w,B.Ov,R.X$],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[m.BQ]}}),Ee})()},58964:(Xe,ue,p)=>{"use strict";p.d(ue,{m:()=>ie});var e=p(65412),A=p(61744),C=p(81591),M=p(94650),m=p(89383),b=p(36895),D=p(3238),v=p(59549),R=p(4859),B=p(84385),w=p(51572);function L(Te,pe){1&Te&&M._UZ(0,"mat-spinner",7)}function O(Te,pe){if(1&Te&&(M.TgZ(0,"mat-option",13),M._uU(1),M.qZA()),2&Te){const Le=pe.$implicit;M.Q6J("value",Le),M.xp6(1),M.hij(" ",Le.friendlyNameParameter," ")}}function q(Te,pe){if(1&Te&&(M.TgZ(0,"mat-option",13),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"uppercase"),M.qZA()),2&Te){const Le=pe.$implicit;M.Q6J("value",Le),M.xp6(1),M.hij(" ",M.lcZ(2,2,M.lcZ(3,4,"SHARED_LIB.LANGUAGES."+Le))," ")}}function ee(Te,pe){if(1&Te&&(M.TgZ(0,"mat-option",13),M._uU(1),M.qZA()),2&Te){const Le=pe.$implicit;M.Q6J("value",Le),M.xp6(1),M.hij(" ",Le," ")}}function z(Te,pe){if(1&Te){const Le=M.EpF();M.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),M._uU(3),M.ALo(4,"translate"),M.qZA(),M.TgZ(5,"mat-select",9),M.NdJ("valueChange",function(W){M.CHM(Le);const F=M.oxw();return M.KtG(F.selectedLogin=W)}),M.YNc(6,O,2,2,"mat-option",10),M.qZA()(),M.TgZ(7,"mat-form-field")(8,"mat-label"),M._uU(9),M.ALo(10,"translate"),M.qZA(),M.TgZ(11,"mat-select",9),M.NdJ("valueChange",function(W){M.CHM(Le);const F=M.oxw();return M.KtG(F.selectedLang=W)}),M.YNc(12,q,4,6,"mat-option",10),M.qZA()(),M.TgZ(13,"mat-form-field")(14,"mat-label"),M._uU(15),M.ALo(16,"translate"),M.qZA(),M.TgZ(17,"mat-select",9),M.NdJ("valueChange",function(W){M.CHM(Le);const F=M.oxw();return M.KtG(F.selectedMail=W)}),M.YNc(18,ee,2,2,"mat-option",10),M.qZA()(),M.TgZ(19,"div",11)(20,"p",12),M._uU(21),M.ALo(22,"translate"),M.qZA(),M.TgZ(23,"p"),M._uU(24),M.qZA()()()}if(2&Te){const Le=M.oxw();M.xp6(3),M.Oqu(M.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),M.xp6(2),M.Q6J("value",Le.selectedLogin),M.xp6(1),M.Q6J("ngForOf",Le.logins),M.xp6(3),M.Oqu(M.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),M.xp6(2),M.Q6J("value",Le.selectedLang),M.xp6(1),M.Q6J("ngForOf",Le.languages),M.xp6(3),M.Oqu(M.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),M.xp6(2),M.Q6J("value",Le.selectedMail),M.xp6(1),M.Q6J("ngForOf",Le.mails),M.xp6(3),M.Oqu(M.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),M.xp6(3),M.Oqu(Le.selectedLogin.value)}}let ie=(()=>{class Te{constructor(Le,T,W,F,V,te,Q){this.dialogRef=Le,this.data=T,this.membersManagerService=W,this.attributesManagerService=F,this.store=V,this.translate=te,this.notificator=Q,this.languages=this.store.getProperty("supported_languages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],te.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(Ee=>this.successMessage=Ee)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const Le=this.selectedLogin.friendlyNameParameter,W=window.location.href.split("/"),F=W[0]+"//"+W[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,Le,this.pwdMails.get(this.selectedMail),this.selectedLang,F).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>this.loading=!1)}getMailAttributes(){this.pwdMails.set("user:preferredMail","urn:perun:user:attribute-def:def:preferredMail"),this.pwdMails.set("member:mail","urn:perun:member:attribute-def:def:mail"),this.mails=Array.from(this.pwdMails.keys()),this.selectedMail="user:preferredMail"}}return Te.\u0275fac=function(Le){return new(Le||Te)(M.Y36(e.so),M.Y36(e.WI),M.Y36(A.uq),M.Y36(A.H8),M.Y36(C.d6),M.Y36(m.sK),M.Y36(C.V6))},Te.\u0275cmp=M.Xpm({type:Te,selectors:[["app-password-reset-request-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],[1,"member-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container member-theme","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","reset-passwd-confirm-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","member-theme"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"column-size","ml-3"],[3,"value"]],template:function(Le,T){1&Le&&(M.TgZ(0,"h1",0),M._uU(1),M.ALo(2,"translate"),M.qZA(),M.TgZ(3,"div",1),M.YNc(4,L,1,0,"mat-spinner",2),M.qZA(),M.YNc(5,z,25,19,"div",3),M.TgZ(6,"div",4)(7,"button",5),M.NdJ("click",function(){return T.onCancel()}),M._uU(8),M.ALo(9,"translate"),M.qZA(),M.TgZ(10,"button",6),M.NdJ("click",function(){return T.onSubmit()}),M._uU(11),M.ALo(12,"translate"),M.qZA()()),2&Le&&(M.xp6(1),M.Oqu(M.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),M.xp6(3),M.Q6J("ngIf",T.loading),M.xp6(1),M.Q6J("ngIf",!T.loading),M.xp6(3),M.hij(" ",M.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),M.xp6(2),M.Q6J("disabled",T.loading),M.xp6(1),M.hij(" ",M.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},dependencies:[b.sg,b.O5,D.ey,v.KE,v.hX,R.lW,e.uh,e.xY,e.H8,B.gD,w.Ou,b.gd,m.X$],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),Te})()},53455:(Xe,ue,p)=>{"use strict";p.d(ue,{X:()=>Le});var e=p(65412),A=p(30671),C=p(81591),M=p(61744),m=p(94650),b=p(89383),D=p(36895),v=p(4859),R=p(51572),B=p(31359);function w(T,W){1&T&&m._UZ(0,"th",13)}function L(T,W){if(1&T&&(m.TgZ(0,"td",14),m._uU(1),m.qZA()),2&T){const F=W.$implicit;m.xp6(1),m.Oqu(F.id)}}function O(T,W){1&T&&m._UZ(0,"th",13)}function q(T,W){if(1&T&&(m.TgZ(0,"td",14),m._uU(1),m.ALo(2,"userFullName"),m.qZA()),2&T){const F=W.$implicit;m.xp6(1),m.Oqu(m.lcZ(2,1,F.user))}}function ee(T,W){1&T&&m._UZ(0,"tr",15)}function z(T,W){1&T&&m._UZ(0,"tr",16)}function ie(T,W){if(1&T&&(m.TgZ(0,"div",4)(1,"p"),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",5),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.TgZ(7,"table",6),m.ynx(8,7),m.YNc(9,w,1,0,"th",8),m.YNc(10,L,2,1,"td",9),m.BQk(),m.ynx(11,10),m.YNc(12,O,1,0,"th",8),m.YNc(13,q,3,3,"td",9),m.BQk(),m.YNc(14,ee,1,0,"tr",11),m.YNc(15,z,1,0,"tr",12),m.qZA()()),2&T){const F=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,5,F.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),m.xp6(3),m.hij(" ",m.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),m.xp6(2),m.Q6J("dataSource",F.dataSource),m.xp6(7),m.Q6J("matHeaderRowDef",F.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",F.displayedColumns)}}function Te(T,W){1&T&&m._UZ(0,"mat-spinner",17)}function pe(T,W){if(1&T){const F=m.EpF();m.TgZ(0,"div",18)(1,"button",19),m.NdJ("click",function(){m.CHM(F);const te=m.oxw();return m.KtG(te.onCancel())}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"button",20),m.NdJ("click",function(){m.CHM(F);const te=m.oxw();return m.KtG(te.onSubmit())}),m._uU(5),m.ALo(6,"translate"),m.qZA()()}if(2&T){const F=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),m.xp6(3),m.hij(" ",m.lcZ(6,4,F.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let Le=(()=>{class T{constructor(F,V,te,Q,Ee,ge){this.dialogRef=F,this.data=V,this.membersService=te,this.groupService=Q,this.notificator=Ee,this.translate=ge,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.members)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.groupId?this.groupService.removeMembers(this.data.groupId,this.data.members.map(F=>F.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(F=>F.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const F=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(F),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return T.\u0275fac=function(F){return new(F||T)(m.Y36(e.so),m.Y36(e.WI),m.Y36(M.uq),m.Y36(M.ff),m.Y36(C.V6),m.Y36(b.sK))},T.\u0275cmp=m.Xpm({type:T,selectors:[["app-remove-members-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","remove-members-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(F,V){1&F&&(m.TgZ(0,"div")(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,ie,16,9,"div",1),m.YNc(5,Te,1,0,"mat-spinner",2),m.YNc(6,pe,7,6,"div",3),m.qZA()),2&F&&(m.Tol(V.theme),m.xp6(2),m.Oqu(m.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),m.xp6(2),m.Q6J("ngIf",!V.loading),m.xp6(1),m.Q6J("ngIf",V.loading),m.xp6(1),m.Q6J("ngIf",!V.loading))},dependencies:[D.O5,v.lW,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,e.uh,e.xY,e.H8,R.Ou,b.X$,B.d]}),T})()},533:(Xe,ue,p)=>{"use strict";p.d(ue,{f:()=>v});var e=p(65412),A=p(30671),C=p(81591),M=p(61744),m=p(94650),b=p(89383),D=p(90995);let v=(()=>{class R{constructor(w,L,O,q,ee){this.dialogRef=w,this.data=L,this.notificator=O,this.translate=q,this.resourcesManager=ee,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,0===this.data.resources.length?this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(w=>{this.loading=!1,this.notificator.showSuccess(w),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(w){w.deleted?this.onDelete():this.onCancel()}}return R.\u0275fac=function(w){return new(w||R)(m.Y36(e.so),m.Y36(e.WI),m.Y36(C.V6),m.Y36(b.sK),m.Y36(M.xk))},R.\u0275cmp=m.Xpm({type:R,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(w,L){1&w&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(q){return L.onSubmit(q)}),m.qZA()()),2&w&&(m.Tol(L.theme),m.xp6(1),m.Q6J("entityNames",L.dataSource)("entityType","resources")("disableForce",!0)("loading",L.loading))},dependencies:[D.e]}),R})()},11717:(Xe,ue,p)=>{"use strict";p.d(ue,{o:()=>v});var e=p(65412),A=p(30671),C=p(81591),M=p(61744),m=p(94650),b=p(89383),D=p(90995);let v=(()=>{class R{constructor(w,L,O,q,ee){this.dialogRef=w,this.data=L,this.notificator=O,this.voService=q,this.translate=ee,this.force=!1,this.displayedColumns=["name"],this.relations=[],ee.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(z=>this.successMessage=z)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.vos),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.MEMBER_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.RESOURCE_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.voService.deleteVo(this.data.vos[0].id,this.force).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(w){this.force=w.force,w.deleted?this.onDelete():this.onCancel()}}return R.\u0275fac=function(w){return new(w||R)(m.Y36(e.so),m.Y36(e.WI),m.Y36(C.V6),m.Y36(M.YF),m.Y36(b.sK))},R.\u0275cmp=m.Xpm({type:R,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(w,L){1&w&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(q){return L.onSubmit(q)}),m.qZA()()),2&w&&(m.Tol(L.theme),m.xp6(1),m.Q6J("entityNames",L.dataSource)("entityType","organizations")("loading",L.loading)("relations",L.relations))},dependencies:[D.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),R})()},91828:(Xe,ue,p)=>{"use strict";p.d(ue,{b:()=>V});var e=p(65412),A=p(81591),C=p(61744),M=p(36895),m=p(24006),b=p(95017),D=p(64080),v=p(10036),R=p(94650),B=p(59549),w=p(284),L=p(4859),O=p(51572),q=p(98380),ee=p(38383),z=p(87488),ie=p(39158),Te=p(89383);function pe(te,Q){if(1&te){const Ee=R.EpF();R.TgZ(0,"mat-form-field",12)(1,"label")(2,"input",13),R.NdJ("keyup.enter",function(){R.CHM(Ee);const ve=R.oxw();return R.KtG(ve.onSearchByString())}),R.ALo(3,"translate"),R.qZA()(),R.TgZ(4,"mat-error"),R._uU(5),R.ALo(6,"translate"),R.qZA()()}if(2&te){const Ee=R.oxw();R.xp6(2),R.s9C("placeholder",R.lcZ(3,3,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),R.Q6J("formControl",Ee.searchCtrl),R.xp6(3),R.hij(" ",R.lcZ(6,5,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," ")}}function Le(te,Q){if(1&te){const Ee=R.EpF();R.TgZ(0,"button",14),R.NdJ("click",function(){R.CHM(Ee);const ve=R.oxw();return R.KtG(ve.onSearchByString())}),R._uU(1),R.ALo(2,"translate"),R.qZA()}if(2&te){const Ee=R.oxw();R.Q6J("disabled",Ee.loading),R.xp6(1),R.hij(" ",R.lcZ(2,2,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," ")}}function T(te,Q){1&te&&R._UZ(0,"mat-spinner",15)}function W(te,Q){if(1&te&&R._UZ(0,"perun-web-apps-members-list",16),2&te){const Ee=R.oxw();R.Q6J("disableRouting",!0)("hidden",Ee.loading)("disableStatusChange",!0)("members",Ee.members)("selection",Ee.selection)("displayedColumns",Ee.displayedColumns)("tableId",Ee.tableId)}}function F(te,Q){1&te&&(R.TgZ(0,"perun-web-apps-alert",17),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&te&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let V=(()=>{class te{constructor(Ee,ge,ve,De,he,Ye){this.dialogRef=Ee,this.data=ge,this.store=ve,this.membersService=De,this.notificator=he,this.translate=Ye,this.loading=!1,this.tableId=v.US,this.expiration="never",this.searchCtrl=new m.p4("",[m.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new b.Ov(!0,[]),this.selectedSponsor=null,this.sponsorType="self"}ngOnInit(){this.theme=this.data.theme,this.serviceMemberId=this.data.serviceMemberId,this.displayedColumns=this.serviceMemberId?["checkbox","id","fullName","sponsored","email"]:["checkbox","id","fullName","status","sponsored","email"],this.serviceMemberId&&(this.searchCtrl.setValue(this.serviceMemberId),this.onSearchByString())}onCancel(){this.dialogRef.close(!1)}sponsor(Ee){this.loading=!0;const ge="self"===this.sponsorType?this.store.getPerunPrincipal().user:this.selectedSponsor,ve=Ee.map(De=>De.id);this.membersService.sponsorMembers(ve,ge.id,this.expiration).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}onSubmit(){this.loading=!0;const Ee=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(Ee)}setExpiration(Ee){this.expiration="never"===Ee?"never":(0,M.p6)(Ee,"yyyy-MM-dd","en-GB")}onSearchByString(){this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.firstSearchDone=!0,this.loading=!0,this.selection.clear(),this.membersService.findCompleteRichMembersForVo(this.data.voId,[D.r.MEMBER_DEF_EXPIRATION,D.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe({next:ge=>{this.members=ge,this.serviceMemberId&&this.selection.toggle(ge[0]),this.loading=!1},error:()=>this.loading=!1}))}}return te.\u0275fac=function(Ee){return new(Ee||te)(R.Y36(e.so),R.Y36(e.WI),R.Y36(A.d6),R.Y36(C.uq),R.Y36(A.V6),R.Y36(A.Te))},te.\u0275cmp=R.Xpm({type:te,selectors:[["app-sponsor-existing-member-dialog"]],decls:24,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["class","mr-2 search-field adjust-width",4,"ngIf"],["data-cy","sponsor-search-button","class","ml-auto","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"voId","voSponsors","sponsorTypeSelected","sponsorSelected"],[3,"datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","sponsor-member-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-2","search-field","adjust-width"],["data-cy","sponsor-search-input","autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["data-cy","sponsor-search-button","color","accent","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId"],["alert_type","info"]],template:function(Ee,ge){1&Ee&&(R.TgZ(0,"div")(1,"h1",0),R._uU(2),R.ALo(3,"translate"),R.qZA(),R.TgZ(4,"div",1),R.YNc(5,pe,7,7,"mat-form-field",2),R.YNc(6,Le,3,4,"button",3),R.YNc(7,T,1,0,"mat-spinner",4),R.YNc(8,W,1,7,"perun-web-apps-members-list",5),R.YNc(9,F,3,3,"perun-web-apps-alert",6),R.TgZ(10,"app-choose-sponsor",7),R.NdJ("sponsorTypeSelected",function(De){return ge.sponsorType=De})("sponsorSelected",function(De){return ge.selectedSponsor=De}),R.qZA(),R.TgZ(11,"div"),R._UZ(12,"br"),R.TgZ(13,"h6"),R._uU(14),R.ALo(15,"translate"),R.qZA(),R.TgZ(16,"perun-web-apps-expiration-select",8),R.NdJ("datePicker",function(De){return ge.setExpiration(De)}),R.qZA()()(),R.TgZ(17,"div",9)(18,"button",10),R.NdJ("click",function(){return ge.onCancel()}),R._uU(19),R.ALo(20,"translate"),R.qZA(),R.TgZ(21,"button",11),R.NdJ("click",function(){return ge.onSubmit()}),R._uU(22),R.ALo(23,"translate"),R.qZA()()()),2&Ee&&(R.Tol(ge.theme),R.xp6(2),R.Oqu(R.lcZ(3,15,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),R.xp6(3),R.Q6J("ngIf",!ge.serviceMemberId),R.xp6(1),R.Q6J("ngIf",!ge.serviceMemberId),R.xp6(1),R.Q6J("ngIf",ge.loading),R.xp6(1),R.Q6J("ngIf",ge.firstSearchDone),R.xp6(1),R.Q6J("ngIf",!ge.firstSearchDone),R.xp6(1),R.Q6J("voId",ge.data.voId)("voSponsors",ge.data.voSponsors),R.xp6(4),R.Oqu(R.lcZ(15,17,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),R.xp6(5),R.hij(" ",R.lcZ(20,19,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),R.xp6(2),R.Q6J("disabled",ge.loading||0===ge.selection.selected.length||"other"===ge.sponsorType&&!ge.selectedSponsor),R.xp6(1),R.hij(" ",R.lcZ(23,21,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},dependencies:[M.O5,B.TO,B.KE,w.Nt,m.Fj,m.JJ,m.oH,L.lW,e.uh,e.xY,e.H8,O.Ou,q.w,ee.O,z.c,ie.l,Te.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),te})()},1186:(Xe,ue,p)=>{"use strict";p.d(ue,{E:()=>z});var e=p(65412),A=p(61744),C=p(94650),M=p(36895),m=p(3238),b=p(59549),D=p(284),v=p(24006),R=p(4859),B=p(84385),w=p(51572),L=p(89383);function O(ie,Te){1&ie&&C._UZ(0,"mat-spinner",6)}function q(ie,Te){if(1&ie){const pe=C.EpF();C.TgZ(0,"div")(1,"mat-form-field",9)(2,"mat-select",10),C.NdJ("valueChange",function(T){C.CHM(pe);const W=C.oxw(2);return C.KtG(W.embeddedState=T)}),C.ALo(3,"translate"),C.TgZ(4,"mat-option",11),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.TgZ(7,"mat-option",12),C._uU(8),C.ALo(9,"translate"),C.qZA()()()()}if(2&ie){const pe=C.oxw(2);C.xp6(2),C.MGl("placeholder","",C.lcZ(3,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),C.Q6J("value",pe.embeddedState),C.xp6(3),C.Oqu(C.lcZ(6,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),C.xp6(3),C.Oqu(C.lcZ(9,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function ee(ie,Te){if(1&ie){const pe=C.EpF();C.TgZ(0,"div",7)(1,"mat-form-field")(2,"input",8),C.NdJ("ngModelChange",function(T){C.CHM(pe);const W=C.oxw();return C.KtG(W.moduleName=T)}),C.ALo(3,"translate"),C.qZA()(),C.TgZ(4,"mat-form-field",9)(5,"mat-select",10),C.NdJ("valueChange",function(T){C.CHM(pe);const W=C.oxw();return C.KtG(W.initialState=T)}),C.ALo(6,"translate"),C.TgZ(7,"mat-option",11),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"mat-option",12),C._uU(11),C.ALo(12,"translate"),C.qZA()()(),C.TgZ(13,"mat-form-field",9)(14,"mat-select",10),C.NdJ("valueChange",function(T){C.CHM(pe);const W=C.oxw();return C.KtG(W.extensionState=T)}),C.ALo(15,"translate"),C.TgZ(16,"mat-option",11),C._uU(17),C.ALo(18,"translate"),C.qZA(),C.TgZ(19,"mat-option",12),C._uU(20),C.ALo(21,"translate"),C.qZA()()(),C.YNc(22,q,10,10,"div",13),C.qZA()}if(2&ie){const pe=C.oxw();C.xp6(2),C.s9C("placeholder",C.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),C.Q6J("ngModel",pe.moduleName),C.xp6(3),C.MGl("placeholder","",C.lcZ(6,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),C.Q6J("value",pe.initialState),C.xp6(3),C.Oqu(C.lcZ(9,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),C.xp6(3),C.Oqu(C.lcZ(12,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),C.xp6(3),C.MGl("placeholder","",C.lcZ(15,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),C.Q6J("value",pe.extensionState),C.xp6(3),C.Oqu(C.lcZ(18,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),C.xp6(3),C.Oqu(C.lcZ(21,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),C.xp6(2),C.Q6J("ngIf","group"===pe.entity&&pe.autoRegistrationEnabled)}}let z=(()=>{class ie{constructor(pe,Le,T){this.dialogRef=pe,this.data=Le,this.registrarManager=T,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.applicationForm=this.data.applicationForm,this.moduleName=this.applicationForm.moduleClassName,this.initialState=this.applicationForm.automaticApproval?"auto":"manual",this.extensionState=this.applicationForm.automaticApprovalExtension?"auto":"manual",this.embeddedState=this.applicationForm.automaticApprovalEmbedded?"auto":"manual",this.entity=this.data.entity,this.autoRegistrationEnabled=this.data.autoRegistrationEnabled}onCancel(){this.dialogRef.close()}submit(){this.loading=!0,this.applicationForm.moduleClassName=this.moduleName,this.applicationForm.automaticApproval="auto"===this.initialState,this.applicationForm.automaticApprovalExtension="auto"===this.extensionState,this.applicationForm.automaticApprovalEmbedded="auto"===this.embeddedState,this.registrarManager.updateForm({form:this.applicationForm}).subscribe(pe=>{this.dialogRef.close(pe)},()=>this.loading=!1)}}return ie.\u0275fac=function(pe){return new(pe||ie)(C.Y36(e.so),C.Y36(e.WI),C.Y36(A.tk))},ie.\u0275cmp=C.Xpm({type:ie,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","placeholder","ngModelChange"],[1,"w-100"],["disableOptionCentering","",3,"value","placeholder","valueChange"],["value","auto"],["value","manual"],[4,"ngIf"]],template:function(pe,Le){1&pe&&(C.TgZ(0,"div")(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,O,1,0,"mat-spinner",1),C.YNc(5,ee,23,25,"div",2),C.TgZ(6,"div",3)(7,"button",4),C.NdJ("click",function(){return Le.onCancel()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return Le.submit()}),C._uU(11),C.ALo(12,"translate"),C.qZA()()()),2&pe&&(C.Tol(Le.theme),C.xp6(2),C.Oqu(C.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),C.xp6(2),C.Q6J("ngIf",Le.loading),C.xp6(1),C.Q6J("ngIf",!Le.loading),C.xp6(3),C.hij(" ",C.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),C.xp6(2),C.Q6J("disabled",Le.loading),C.xp6(1),C.hij(" ",C.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},dependencies:[M.O5,m.ey,b.KE,D.Nt,v.Fj,v.JJ,v.On,R.lW,e.uh,e.xY,e.H8,B.gD,w.Ou,L.X$]}),ie})()},90820:(Xe,ue,p)=>{"use strict";p.d(ue,{_:()=>Cn});var e=p(94650),A=p(61744),C=p(9244),M=p(65412),m=p(81591),b=p(95017),D=p(19516),v=p(37433),R=p(36895),B=p(4859),w=p(51572),L=p(87831),O=p(25788),q=p(7434),ee=p(62109),z=p(74010),ie=p(89593),Te=p(89383);let pe=(()=>{class Tt{constructor(){this.role=null,this.disableAutoSelect=!1,this.roleSelected=new e.vpe,this.nameFunction=Ze=>Ze.displayName,this.secondaryTextFunction=()=>null}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275cmp=e.Xpm({type:Tt,selectors:[["perun-web-apps-role-search-select"]],inputs:{role:"role",roles:"roles",disableAutoSelect:"disableAutoSelect"},outputs:{roleSelected:"roleSelected"},decls:4,vars:15,consts:[[3,"entity","entities","disableAutoSelect","mainTextFunction","searchFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(Ze,wt){1&Ze&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(ln){return wt.roleSelected.emit(ln)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&Ze&&e.Q6J("entity",wt.role)("entities",wt.roles)("disableAutoSelect",wt.disableAutoSelect)("mainTextFunction",wt.nameFunction)("searchFunction",wt.nameFunction)("secondaryTextFunction",wt.secondaryTextFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.SELECT_ROLE"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.FIND_ROLE"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.NO_ROLE_FOUND"))},dependencies:[ie.i,Te.X$]}),Tt})();var Le=p(56575);let T=(()=>{class Tt{transform(Ze,wt,Ft){return Ze.filter(ln=>!wt.get(Ft.roleName)?.get(Ft.primaryObject)?.includes(ln.id))}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275pipe=e.Yjl({name:"unassignedRole",type:Tt,pure:!0}),Tt})(),W=(()=>{class Tt{transform(Ze){return Ze.map(wt=>wt.facility)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275pipe=e.Yjl({name:"extractFacility",type:Tt,pure:!0}),Tt})();var F=p(48524);function V(Tt,Dt){1&Tt&&e._UZ(0,"mat-spinner",5)}function te(Tt,Dt){1&Tt&&e._UZ(0,"mat-spinner",14)}function Q(Tt,Dt){if(1&Tt){const Ze=e.EpF();e.TgZ(0,"perun-web-apps-immediate-filter",15),e.NdJ("filter",function(Ft){e.CHM(Ze);const ln=e.oxw(2);return e.KtG(ln.filterValue=Ft)}),e.qZA()}2&Tt&&e.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_OBJECTS_LIST.FILTER")}const Ee=function(){return["checkbox","id","shortName","name"]};function ge(Tt,Dt){if(1&Tt&&(e._UZ(0,"perun-web-apps-vos-list",16),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities")),2&Tt){const Ze=e.oxw(2);e.Q6J("filterValue",Ze.filterValue)("vos",e.Dn7(1,5,e.xi3(2,9,Ze.vos,Ze.selectedRule),Ze.roles,Ze.selectedRule))("displayedColumns",e.DdM(12,Ee))("selection",Ze.selected)("disableRouting",!0)}}const ve=function(){return["select","id","vo","name","description"]};function De(Tt,Dt){if(1&Tt&&(e._UZ(0,"perun-web-apps-groups-list",17),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities")),2&Tt){const Ze=e.oxw(2);e.Q6J("groups",e.Dn7(1,5,e.xi3(2,9,Ze.groups,Ze.selectedRule),Ze.roles,Ze.selectedRule))("displayedColumns",e.DdM(12,ve))("selection",Ze.selected)("filter",Ze.filterValue)("disableRouting",!0)}}const he=function(){return["select","id","name","description"]};function Ye(Tt,Dt){if(1&Tt&&(e._UZ(0,"perun-web-apps-facilities-list",18),e.ALo(1,"toEnrichedFacility"),e.ALo(2,"unassignedRole"),e.ALo(3,"manageableEntities"),e.ALo(4,"extractFacility")),2&Tt){const Ze=e.oxw(2);e.Q6J("filterValue",Ze.filterValue)("facilities",e.lcZ(1,5,e.Dn7(2,7,e.xi3(3,11,e.lcZ(4,14,Ze.facilities),Ze.selectedRule),Ze.roles,Ze.selectedRule)))("displayedColumns",e.DdM(16,he))("selection",Ze.selectedFacilities)("disableRouting",!0)}}const Be=function(){return["select","id","name"]};function se(Tt,Dt){if(1&Tt&&(e._UZ(0,"perun-web-apps-resources-list",19),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities")),2&Tt){const Ze=e.oxw(2);e.Q6J("filterValue",Ze.filterValue)("resources",e.Dn7(1,5,e.xi3(2,9,Ze.resources,Ze.selectedRule),Ze.roles,Ze.selectedRule))("displayedColumns",e.DdM(12,Be))("selection",Ze.selected)("disableRouting",!0)}}function le(Tt,Dt){if(1&Tt){const Ze=e.EpF();e.TgZ(0,"div",6),e.YNc(1,te,1,0,"mat-spinner",7),e.TgZ(2,"perun-web-apps-role-search-select",8),e.NdJ("roleSelected",function(Ft){e.CHM(Ze);const ln=e.oxw();return e.KtG(ln.resetSelection(Ft))}),e.qZA(),e.YNc(3,Q,1,1,"perun-web-apps-immediate-filter",9),e.YNc(4,ge,3,13,"perun-web-apps-vos-list",10),e.YNc(5,De,3,13,"perun-web-apps-groups-list",11),e.YNc(6,Ye,5,17,"perun-web-apps-facilities-list",12),e.YNc(7,se,3,13,"perun-web-apps-resources-list",13),e.qZA()}if(2&Tt){const Ze=e.oxw();e.xp6(1),e.Q6J("ngIf",Ze.loading),e.xp6(1),e.Q6J("roles",Ze.rules),e.xp6(1),e.Q6J("ngIf",null==Ze.selectedRule?null:Ze.selectedRule.primaryObject),e.xp6(1),e.Q6J("ngIf",!Ze.loading&&"Vo"===(null==Ze.selectedRule?null:Ze.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf",!Ze.loading&&"Group"===(null==Ze.selectedRule?null:Ze.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf",!Ze.loading&&"Facility"===(null==Ze.selectedRule?null:Ze.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf",!Ze.loading&&"Resource"===(null==Ze.selectedRule?null:Ze.selectedRule.primaryObject))}}function k(Tt,Dt){if(1&Tt){const Ze=e.EpF();e.TgZ(0,"div",20)(1,"button",21),e.NdJ("click",function(){e.CHM(Ze);const Ft=e.oxw();return e.KtG(Ft.cancel())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",22),e.NdJ("click",function(){e.CHM(Ze);const Ft=e.oxw();return e.KtG(Ft.addRole())}),e._uU(5),e.ALo(6,"translate"),e.qZA()()}if(2&Tt){const Ze=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,3,"DIALOGS.ADD_ROLE.CANCEL")," "),e.xp6(2),e.Q6J("disabled",null===Ze.selectedRule||"Facility"===Ze.selectedRule.primaryObject&&Ze.selectedFacilities.isEmpty()||Ze.selectedRule.primaryObject&&"Facility"!==Ze.selectedRule.primaryObject&&Ze.selected.isEmpty()),e.xp6(1),e.hij(" ",e.lcZ(6,5,"DIALOGS.ADD_ROLE.ADD")," ")}}function N(Tt,Dt){1&Tt&&(e.TgZ(0,"div",23),e._UZ(1,"mat-spinner"),e.qZA())}let be=(()=>{class Tt{constructor(Ze,wt,Ft,ln,bn){this.dialogRef=Ze,this.voService=wt,this.groupService=Ft,this.facilityService=ln,this.resourceService=bn,this.loading=!1,this.submitForm=new e.vpe,this.selected=new b.Ov(!0,[]),this.selectedFacilities=new b.Ov(!0,[]),this.filterValue="",this.vos=[],this.groups=[],this.facilities=[],this.resources=[]}ngOnInit(){this.selectedRule=this.rules[0],this.loadObjects()}loadObjects(){this.rules.some(Ze=>"Facility"===Ze.primaryObject)&&this.facilityService.getAllFacilities().subscribe({next:Ze=>this.facilities=(new D.E7).transform(Ze)}),this.rules.some(Ze=>"Vo"===Ze.primaryObject)&&this.voService.getMyVos().subscribe({next:Ze=>this.vos=Ze}),this.groupService.getAllGroupsFromAllVos().subscribe({next:Ze=>this.groups=Ze}),this.resourceService.getAllResources().subscribe({next:Ze=>this.resources=Ze})}cancel(){this.dialogRef.close(!1)}addRole(){this.submitForm.emit("Facility"===this.selectedRule.primaryObject?{role:this.selectedRule,entities:this.selectedFacilities.selected.map(Ze=>Ze.facility)}:{role:this.selectedRule,entities:this.selected.selected})}resetSelection(Ze){this.selectedRule=Ze,this.selected.clear(),this.selectedFacilities.clear(),this.filterValue="",this.loadObjects(),this.filterComponent&&this.filterComponent.formControl.setValue("")}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.Y36(M.so),e.Y36(A.YF),e.Y36(A.ff),e.Y36(A.IQ),e.Y36(A.xk))},Tt.\u0275cmp=e.Xpm({type:Tt,selectors:[["app-add-role-dialog"]],viewQuery:function(Ze,wt){if(1&Ze&&e.Gf(v.Ld,5),2&Ze){let Ft;e.iGM(Ft=e.CRH())&&(wt.filterComponent=Ft.first)}},inputs:{loading:"loading",rules:"rules",roles:"roles",theme:"theme"},outputs:{submitForm:"submitForm"},decls:10,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["spinner",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["class","ml-auto mr-auto",4,"ngIf"],[3,"roles","roleSelected"],["class","font-size-1rem",3,"placeholder","filter",4,"ngIf"],[3,"filterValue","vos","displayedColumns","selection","disableRouting",4,"ngIf"],[3,"groups","displayedColumns","selection","filter","disableRouting",4,"ngIf"],[3,"filterValue","facilities","displayedColumns","selection","disableRouting",4,"ngIf"],[3,"filterValue","resources","displayedColumns","selection","disableRouting",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"font-size-1rem",3,"placeholder","filter"],[3,"filterValue","vos","displayedColumns","selection","disableRouting"],[3,"groups","displayedColumns","selection","filter","disableRouting"],[3,"filterValue","facilities","displayedColumns","selection","disableRouting"],[3,"filterValue","resources","displayedColumns","selection","disableRouting"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"spinner-container"]],template:function(Ze,wt){1&Ze&&(e.TgZ(0,"div")(1,"div",0)(2,"h1",0),e._uU(3),e.ALo(4,"translate"),e.qZA()(),e.YNc(5,V,1,0,"mat-spinner",1),e.YNc(6,le,8,7,"div",2),e.YNc(7,k,7,7,"div",3),e.qZA(),e.YNc(8,N,2,0,"ng-template",null,4,e.W1O)),2&Ze&&(e.Tol(wt.theme),e.xp6(3),e.Oqu(e.lcZ(4,7,"DIALOGS.ADD_ROLE.TITLE")),e.xp6(2),e.Q6J("ngIf",wt.loading),e.xp6(1),e.Q6J("ngIf",!wt.loading),e.xp6(1),e.Q6J("ngIf",!wt.loading))},dependencies:[R.O5,B.lW,M.uh,M.xY,M.H8,w.Ou,L.Z,O.W,q.L,ee.C,z.X,pe,Te.X$,Le.G,T,W,F.E]}),Tt})(),Z=(()=>{class Tt{constructor(Ze,wt,Ft,ln,bn,gn){this.dialogRef=Ze,this.data=wt,this.authResolver=Ft,this.authzService=ln,this.notificator=bn,this.translate=gn,this.loading=!1,this.rules=this.authResolver.getAssignableRoleRules("GROUP")}addRole(Ze){this.loading=!0,Ze.entities&&0!==Ze.entities.length?this.authzService.setRoleWithGroupComplementaryObjects({role:Ze.role.roleName,authorizedGroup:this.data.entityId,complementaryObjects:Ze.entities}).subscribe({next:()=>{this.showSuccess(Ze.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}}):this.authzService.setRoleForGroup({role:Ze.role.roleName,authorizedGroup:this.data.entityId}).subscribe({next:()=>{this.showSuccess(Ze.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}showSuccess(Ze){this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_ROLE.SUCCESS",{role:Ze}))}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.Y36(M.so),e.Y36(M.WI),e.Y36(m.x4),e.Y36(A.Ct),e.Y36(m.V6),e.Y36(m.Te))},Tt.\u0275cmp=e.Xpm({type:Tt,selectors:[["app-add-group-role-dialog"]],decls:1,vars:4,consts:[[3,"loading","rules","roles","theme","submitForm"]],template:function(Ze,wt){1&Ze&&(e.TgZ(0,"app-add-role-dialog",0),e.NdJ("submitForm",function(ln){return wt.addRole(ln)}),e.qZA()),2&Ze&&e.Q6J("loading",wt.loading)("rules",wt.rules)("roles",wt.data.roles)("theme","group-theme")},dependencies:[be]}),Tt})(),de=(()=>{class Tt{constructor(Ze,wt,Ft,ln,bn,gn,zn){this.dialogRef=Ze,this.data=wt,this.authResolver=Ft,this.authzService=ln,this.notificator=bn,this.translate=gn,this.displayedRole=zn,this.loading=!1,this.rules=this.authResolver.getAssignableRoleRules("USER")}addRole(Ze){this.loading=!0,Ze.entities&&0!==Ze.entities.length?this.authzService.setRoleWithUserComplementaryObjects({role:Ze.role.roleName,user:this.data.entityId,complementaryObjects:Ze.entities}).subscribe({next:()=>{this.showSuccess(Ze.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}}):this.authzService.setRoleForUser({role:Ze.role.roleName,user:this.data.entityId}).subscribe({next:()=>{this.showSuccess(Ze.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}showSuccess(Ze){this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_ROLE.SUCCESS",{role:Ze}))}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.Y36(M.so),e.Y36(M.WI),e.Y36(m.x4),e.Y36(A.Ct),e.Y36(m.V6),e.Y36(m.Te),e.Y36(D.i2))},Tt.\u0275cmp=e.Xpm({type:Tt,selectors:[["app-add-user-role-dialog"]],features:[e._Bn([D.i2])],decls:1,vars:4,consts:[[3,"loading","rules","theme","roles","submitForm"]],template:function(Ze,wt){1&Ze&&(e.TgZ(0,"app-add-role-dialog",0),e.NdJ("submitForm",function(ln){return wt.addRole(ln)}),e.qZA()),2&Ze&&e.Q6J("loading",wt.loading)("rules",wt.rules)("theme","user-theme")("roles",wt.data.roles)},dependencies:[be]}),Tt})();var xe=p(21029),ot=p(61135),Fe=p(39646),ut=p(86099),tt=p(48382),vt=p(63900),X=p(18505),nt=p(68675),Ae=p(54004),ye=p(97392),_e=p(37084),Se=p(10266),Ne=p(73546),Ce=p(98380),fe=p(38383),r=p(73358),u=p(64877),_=p(23123);function E(Tt,Dt){if(1&Tt){const Ze=e.EpF();e.TgZ(0,"button",6),e.NdJ("click",function(){e.CHM(Ze);const Ft=e.oxw();return e.KtG(Ft.addRole())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&Tt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.ADD"),"\n"))}function h(Tt,Dt){1&Tt&&e._UZ(0,"mat-spinner",7)}const a=function(){return["Vo","Group","Resource"]};function i(Tt,Dt){if(1&Tt){const Ze=e.EpF();e.TgZ(0,"span",16),e.ALo(1,"translate"),e.TgZ(2,"button",17),e.NdJ("click",function(){e.CHM(Ze);const Ft=e.oxw(2).$implicit,ln=e.oxw(2);return e.KtG(ln.openConfirmDialog(Ft))}),e._uU(3),e.ALo(4,"translate"),e.qZA()()}if(2&Tt){const Ze=e.oxw(2).$implicit,wt=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,4,"ROLES.REMOVE_DISABLED_TOOLTIP")),e.Q6J("matTooltipDisabled",0===wt.selection.selected.length&&0===wt.selectedFacilities.selected.length||!wt.disableRemove),e.xp6(2),e.Q6J("disabled","Facility"===Ze.primaryObject&&(0===wt.selectedFacilities.selected.length||wt.disableRemove)||e.DdM(8,a).includes(Ze.primaryObject)&&(0===wt.selection.selected.length||wt.disableRemove)),e.xp6(1),e.hij(" ",e.lcZ(4,6,"ROLES.REMOVE")," ")}}function t(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ze=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ze.roleName+"_VOS_"+wt.entityType)," ")}}const n=function(){return["id","name","shortName"]},o=function(){return["checkbox","id","name","shortName"]};function s(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,t,3,3,"div",3),e._UZ(2,"perun-web-apps-vos-list",22),e.ALo(3,"async"),e.qZA()),2&Tt){const Ze=e.oxw(4).$implicit,wt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",wt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===Ze.roleName?e.DdM(6,n):e.DdM(7,o))("vos",e.lcZ(3,4,wt.vos))("selection",wt.selection)}}function l(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ze=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ze.roleName+"_GROUPS_"+wt.entityType)," ")}}const d=function(){return["id","vo","name","description"]},c=function(){return["select","id","vo","name","description"]};function S(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,l,3,3,"div",3),e._UZ(2,"perun-web-apps-groups-list",23),e.ALo(3,"async"),e.qZA()),2&Tt){const Ze=e.oxw(4).$implicit,wt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",wt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===Ze.roleName?e.DdM(6,d):e.DdM(7,c))("groups",e.lcZ(3,4,wt.groups))("selection",wt.selection)}}function J(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ze=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ze.roleName+"_RESOURCES_"+wt.entityType)," ")}}const ht=function(){return["id","name","vo","facility","description"]},We=function(){return["select","id","name","vo","facility","description"]};function et(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,J,3,3,"div",3),e._UZ(2,"perun-web-apps-resources-list",24),e.ALo(3,"async"),e.qZA()),2&Tt){const Ze=e.oxw(4).$implicit,wt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",wt.showDescription),e.xp6(1),e.Q6J("resources",e.lcZ(3,5,wt.resources))("displayedColumns","MEMBERSHIP"===Ze.roleName?e.DdM(7,ht):e.DdM(8,We))("routingVo",!0)("selection",wt.selection)}}function ne(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ze=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ze.roleName+"_FACILITIES_"+wt.entityType)," ")}}const Ue=function(){return["id","name","description"]},He=function(){return["select","id","name","description"]};function Oe(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,ne,3,3,"div",3),e._UZ(2,"perun-web-apps-facilities-list",25),e.ALo(3,"async"),e.qZA()),2&Tt){const Ze=e.oxw(4).$implicit,wt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",wt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===Ze.roleName?e.DdM(6,Ue):e.DdM(7,He))("facilities",e.lcZ(3,4,wt.facilities))("selection",wt.selectedFacilities)}}function Re(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ze=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ze.roleName+"_MEMBERS_"+wt.entityType)," ")}}const re=function(){return["id","fullName","sponsored"]};function we(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,Re,3,3,"div",3),e._UZ(2,"perun-web-apps-members-list",26),e.ALo(3,"async"),e.qZA()),2&Tt){const Ze=e.oxw(6);e.xp6(1),e.Q6J("ngIf",Ze.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(5,re))("members",e.lcZ(3,3,Ze.members))}}function st(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ze=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ze.roleName+"_USERS_"+wt.entityType)," ")}}const Ke=function(){return["user","id","name"]};function Et(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,st,3,3,"div",3),e._UZ(2,"app-users-list",27),e.ALo(3,"async"),e.qZA()),2&Tt){const Ze=e.oxw(6);e.xp6(1),e.Q6J("ngIf",Ze.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(6,Ke))("disableRouting",!0)("users",e.lcZ(3,4,Ze.users))}}function ke(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e.YNc(1,s,4,8,"div",20),e.YNc(2,S,4,8,"div",20),e.YNc(3,et,4,9,"div",20),e.YNc(4,Oe,4,8,"div",20),e.YNc(5,we,4,6,"div",20),e.YNc(6,Et,4,7,"div",20),e.qZA()),2&Tt){const Ze=e.oxw(3).$implicit;e.xp6(1),e.Q6J("ngIf","Vo"===Ze.primaryObject||"MEMBERSHIP"===Ze.roleName),e.xp6(1),e.Q6J("ngIf","Group"===Ze.primaryObject||"MEMBERSHIP"===Ze.roleName),e.xp6(1),e.Q6J("ngIf","Resource"===Ze.primaryObject||"MEMBERSHIP"===Ze.roleName),e.xp6(1),e.Q6J("ngIf","Facility"===Ze.primaryObject||"MEMBERSHIP"===Ze.roleName),e.xp6(1),e.Q6J("ngIf","SPONSORSHIP"===Ze.roleName),e.xp6(1),e.Q6J("ngIf","SELF"===Ze.roleName)}}function at(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",18),e.YNc(1,ke,7,6,"div",19),e.qZA()),2&Tt){const Ze=e.oxw(4),wt=e.MAs(8);e.xp6(1),e.Q6J("perunWebAppsLoader",Ze.loading)("perunWebAppsLoaderIndicator",wt)}}function It(Tt,Dt){if(1&Tt&&(e.YNc(0,i,5,9,"span",14),e.YNc(1,at,2,2,"div",15)),2&Tt){const Ze=e.oxw().$implicit,wt=e.MAs(1);e.Q6J("ngIf","SELF"!==Ze.roleName&&"MEMBERSHIP"!==Ze.roleName&&"SPONSORSHIP"!==Ze.roleName),e.xp6(1),e.Q6J("ngIf",wt.expanded)}}function jt(Tt,Dt){if(1&Tt){const Ze=e.EpF();e.TgZ(0,"mat-expansion-panel",9,10),e.NdJ("opened",function(){const ln=e.CHM(Ze).$implicit,bn=e.oxw(2);return e.KtG(bn.selectedRole.next(ln))})("closed",function(){e.CHM(Ze);const Ft=e.oxw(2);return e.KtG(Ft.selection.clear())}),e.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title"),e._UZ(4,"mat-icon",11),e.TgZ(5,"p",12),e._uU(6),e.ALo(7,"displayedRole"),e.qZA()()(),e.YNc(8,It,2,2,"ng-template",13),e.qZA()}if(2&Tt){const Ze=Dt.$implicit;e.xp6(6),e.Oqu(e.lcZ(7,1,Ze))}}function an(Tt,Dt){if(1&Tt&&(e.TgZ(0,"mat-accordion"),e.YNc(1,jt,9,3,"mat-expansion-panel",8),e.qZA()),2&Tt){const Ze=e.oxw();e.xp6(1),e.Q6J("ngForOf",Ze.allRules)}}function Kt(Tt,Dt){1&Tt&&(e.TgZ(0,"perun-web-apps-alert",28),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.NO_ROLES"),"\n"))}function on(Tt,Dt){1&Tt&&(e.TgZ(0,"div",29),e._UZ(1,"mat-spinner"),e.qZA())}let Cn=(()=>{class Tt{constructor(Ze,wt,Ft,ln,bn,gn,zn,bt,Lt,pt,rt,St,$){this.authzResolverService=Ze,this.usersService=wt,this.vosService=Ft,this.facilitiesService=ln,this.resourcesService=bn,this.groupsService=gn,this.membersService=zn,this.dialog=bt,this.notification=Lt,this.translate=pt,this.rolePipe=rt,this.guiAuthResolver=St,this.manageableEntities=$,this.reload=new e.vpe,this.startLoading=new e.vpe,this.selection=new b.Ov(!0,[]),this.selectedFacilities=new b.Ov(!0,[]),this.assignableRules=[],this.allRules=[],this.disableRemove=!1,this.selectedRole=new ot.X(null),this.groups=this.selectedRole.pipe((0,vt.w)(ze=>{this.loading=!0;const At=this.roles.get(ze.roleName).get("Group");return At?.length?this.groupsService.getGroupsByIds(At):(0,Fe.of)([])}),(0,X.b)(()=>this.loading=!1),(0,nt.O)([])),this.vos=this.selectedRole.pipe((0,vt.w)(ze=>{this.loading=!0;const At=this.roles.get(ze.roleName).get("Vo");return At?.length?this.vosService.getVosByIds(At):(0,Fe.of)([])}),(0,X.b)(()=>this.loading=!1),(0,nt.O)([])),this.facilities=this.selectedRole.pipe((0,vt.w)(ze=>{this.loading=!0;const At=this.roles.get(ze.roleName).get("Facility");return At?.length?this.facilitiesService.getFacilitiesByIds(At):(0,Fe.of)([])}),(0,Ae.U)(ze=>ze.map(At=>({facility:At}))),(0,X.b)(()=>this.loading=!1),(0,nt.O)([])),this.resources=this.selectedRole.pipe((0,vt.w)(ze=>{this.loading=!0;const At=this.roles.get(ze.roleName).get("Resource");return At?.length?this.resourcesService.getRichResourcesByIds(At):(0,Fe.of)([])}),(0,X.b)(()=>this.loading=!1),(0,nt.O)([])),this.members=this.selectedRole.pipe((0,vt.w)(ze=>this.membersService.getRichMembersByIds(this.roles.get(ze.roleName).get("Member"))),(0,X.b)(()=>this.loading=!1),(0,nt.O)([])),this.users=this.selectedRole.pipe((0,vt.w)(ze=>this.usersService.getRichUsersByIds([this.entityId].concat(this.roles.get(ze.roleName).get("User")))),(0,X.b)(()=>this.loading=!1),(0,nt.O)([])),this._roles=new Map}get roles(){return this._roles}set roles(Ze){this._roles=Ze,this.allRules=this.guiAuthResolver.getAllRules().filter(wt=>this._roles.has(wt.roleName))}ngOnInit(){this.assignableRules=this.guiAuthResolver.getAssignableRoleRules("GROUP"===this.entityType?"GROUP":"USER"),this.selection.changed.subscribe(Ze=>{const wt=Ze.source.selected.map(ln=>{if("beanName"in ln)return ln}),Ft=this.manageableEntities.transform(wt,this.selectedRole.getValue()).length;this.disableRemove=Ze.source.selected.length!==Ft}),this.selectedFacilities.changed.subscribe(Ze=>{const wt=Ze.source.selected.map(ln=>{if("facility"in ln)return ln.facility}),Ft=this.manageableEntities.transform(wt,this.selectedRole.getValue()).length;this.disableRemove=Ze.source.selected.length!==Ft})}addRole(){const Ze=(0,C.kZ)();let wt;Ze.width="650px",Ze.data={entityId:this.entityId,roles:this.roles},wt=this.dialog.open("GROUP"===this.entityType?Z:de,Ze),wt.afterClosed().subscribe({next:Ft=>{Ft&&(this.startLoading.emit(),this.refresh())}})}openConfirmDialog(Ze){const wt=(0,C.kZ)(),Ft=this.getItems();wt.width="550px",wt.data={theme:"GROUP"===this.entityType?"group-theme":"user-theme",title:"ROLES.REMOVE",description:this.selectedRole.getValue().primaryObject?this.translate.instant("ROLES.REMOVE_DESC_WITH_OBJECTS",{role:this.rolePipe.transform(Ze),count:Ft.length}):this.translate.instant("ROLES.REMOVE_DESC",{role:this.rolePipe.transform(Ze)}),items:Ft,alert:!1,type:"remove",showAsk:!0},this.dialog.open(xe.Ts,wt).afterClosed().subscribe({next:bn=>{bn&&(this.startLoading.emit(),Ze.primaryObject?this.removeRoleWithComplementaryObject(Ze):this.removeRole(Ze))}})}getItems(){return this.selectedRole.getValue().primaryObject?"Facility"===this.selectedRole.getValue().primaryObject?this.selectedFacilities.selected.map(Ze=>Ze.facility.name):this.selection.selected.map(Ze=>Ze.name):[]}removeRole(Ze){(0,Fe.of)(this.entityType).pipe((0,ut.z)(wt=>(0,tt.s)(()=>"GROUP"===wt,this.authzResolverService.unsetRoleForGroup({role:Ze.roleName,authorizedGroup:this.entityId}),this.authzResolverService.unsetRoleForUser({role:Ze.roleName,user:this.entityId})))).subscribe({next:()=>{this.showSuccess(Ze),this.refresh()},error:()=>{this.selection.clear(),this.outerLoading=!1}})}removeRoleWithComplementaryObject(Ze){let wt;0!==this.selection.selected.length&&"beanName"in this.selection.selected[0]?(wt=this.selection.selected,"RichResource"===wt[0].beanName&&(wt=wt.map(Ft=>this.parseResource(Ft)))):0!==this.selectedFacilities.selected.length&&"facility"in this.selectedFacilities.selected[0]&&(wt=this.selectedFacilities.selected.map(Ft=>this.parseFacility(Ft))),(0,Fe.of)(this.entityType).pipe((0,ut.z)(Ft=>(0,tt.s)(()=>"GROUP"===Ft,this.authzResolverService.unsetRoleWithGroupComplementaryObjects({role:Ze.roleName,complementaryObjects:wt,authorizedGroup:this.entityId}),this.authzResolverService.unsetRoleWithUserComplementaryObjects({role:Ze.roleName,complementaryObjects:wt,user:this.entityId})))).subscribe({next:()=>{this.showSuccess(Ze),this.refresh()},error:()=>{this.selection.clear(),this.outerLoading=!1}})}showSuccess(Ze){this.notification.showSuccess(this.translate.instant("ROLES.REMOVE_SUCCESS",{role:this.rolePipe.transform(Ze)}))}refresh(){this.selection.clear(),setTimeout(()=>{this.reload.emit(),this.outerLoading=!1},500)}parseFacility(Ze){return Ze.facility}parseResource(Ze){return{beanName:"Resource",id:Ze.id,description:Ze.description,createdByUid:Ze.createdByUid,createdAt:Ze.createdAt,facilityId:Ze.facilityId,createdBy:Ze.createdBy,modifiedAt:Ze.modifiedAt,modifiedBy:Ze.modifiedBy,name:Ze.name,uuid:Ze.uuid,voId:Ze.voId,modifiedByUid:Ze.modifiedByUid}}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.Y36(A.Ct),e.Y36(A.Fv),e.Y36(A.YF),e.Y36(A.IQ),e.Y36(A.xk),e.Y36(A.ff),e.Y36(A.uq),e.Y36(M.uw),e.Y36(m.V6),e.Y36(m.Te),e.Y36(D.i2),e.Y36(m.x4),e.Y36(D.GY))},Tt.\u0275cmp=e.Xpm({type:Tt,selectors:[["app-perun-web-apps-roles-page"]],inputs:{outerLoading:"outerLoading",showDescription:"showDescription",entityId:"entityId",entityType:"entityType",roles:"roles"},outputs:{reload:"reload",startLoading:"startLoading"},features:[e._Bn([D.i2,D.GY])],decls:9,vars:7,consts:[[1,"page-subtitle","d-flex"],["mat-flat-button","","color","accent","class","mb-3 mr-2",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],["spinner",""],["mat-flat-button","","color","accent",1,"mb-3","mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"opened","closed",4,"ngFor","ngForOf"],[3,"opened","closed"],["panel",""],["mat-card-avatar","","svgIcon","perun-user-dark",1,"mr-2"],[1,"mt-auto","mb-auto"],["matExpansionPanelContent",""],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled",4,"ngIf"],["class","position-relative",4,"ngIf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[1,"position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["class","mb-3",4,"ngIf"],[1,"mb-3"],[3,"displayedColumns","vos","selection"],[3,"displayedColumns","groups","selection"],[3,"resources","displayedColumns","routingVo","selection"],[3,"displayedColumns","facilities","selection"],[3,"displayedColumns","members"],[3,"displayedColumns","disableRouting","users"],["alert_type","warn"],[1,"spinner-container"]],template:function(Ze,wt){1&Ze&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,E,3,3,"button",1),e.YNc(4,h,1,0,"mat-spinner",2),e.YNc(5,an,2,1,"mat-accordion",3),e.YNc(6,Kt,3,3,"perun-web-apps-alert",4),e.YNc(7,on,2,0,"ng-template",null,5,e.W1O)),2&Ze&&(e.xp6(1),e.Oqu(e.lcZ(2,5,"ROLES.TITLE")),e.xp6(2),e.Q6J("ngIf",0!==wt.assignableRules.length),e.xp6(1),e.Q6J("ngIf",wt.outerLoading),e.xp6(1),e.Q6J("ngIf",!wt.outerLoading&&wt.roles.size>0),e.xp6(1),e.Q6J("ngIf",!wt.outerLoading&&0===wt.roles.size))},dependencies:[R.sg,R.O5,ye.Hw,_e.pp,_e.ib,_e.yz,_e.yK,_e.HS,B.lW,w.Ou,Se.gM,Ne.kc,Ce.w,L.Z,O.W,ee.C,fe.O,z.X,r.e,u.C,R.Ov,Te.X$,_.i],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"],changeDetection:0}),Tt})()},60205:(Xe,ue,p)=>{"use strict";p.d(ue,{Q:()=>ot});var e=p(94650),A=p(96308),C=p(30671),M=p(95017),m=p(9244),b=p(81591),D=p(36895),v=p(94364),R=p(97392),B=p(56709),w=p(10266),L=p(98380),O=p(34198),q=p(55660),ee=p(18750),z=p(89383),ie=p(9185),Te=p(8231),pe=p(14849);function Le(Fe,ut){if(1&Fe){const tt=e.EpF();e.TgZ(0,"th",19)(1,"mat-checkbox",20),e.NdJ("change",function(X){e.CHM(tt);const nt=e.oxw(2);return e.KtG(X?nt.masterToggle():null)}),e.ALo(2,"translate"),e.ALo(3,"masterCheckboxLabel"),e.qZA()()}if(2&Fe){const tt=e.oxw().ngIf,vt=e.oxw();e.xp6(1),e.Q6J("aria-label",e.lcZ(2,3,e.lcZ(3,5,tt.all)))("checked",vt.selection.hasValue()&&tt.all)("indeterminate",vt.selection.hasValue()&&!tt.all)}}const T=function(Fe){return{name:Fe}};function W(Fe,ut){if(1&Fe){const tt=e.EpF();e.TgZ(0,"td",21)(1,"mat-checkbox",22),e.NdJ("change",function(X){const Ae=e.CHM(tt).$implicit,ye=e.oxw(2);return e.KtG(X?ye.selection.toggle(Ae):null)})("click",function(X){return X.stopPropagation()}),e.ALo(2,"lowercase"),e.ALo(3,"translate"),e.ALo(4,"checkboxLabel"),e.qZA()()}if(2&Fe){const tt=ut.$implicit,vt=e.oxw(2);e.xp6(1),e.Q2q("data-cy","",e.lcZ(2,3,tt.name),"-checkbox"),e.Q6J("aria-label",e.xi3(3,5,e.lcZ(4,8,vt.selection.isSelected(tt)),e.VKq(10,T,tt.name)))("checked",vt.selection.isSelected(tt))}}function F(Fe,ut){1&Fe&&(e.ynx(0,16),e.YNc(1,Le,4,7,"th",17),e.YNc(2,W,5,12,"td",18),e.BQk())}function V(Fe,ut){1&Fe&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Fe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")," "))}function te(Fe,ut){if(1&Fe&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&Fe){const tt=ut.$implicit;e.xp6(1),e.Oqu(tt.id)}}function Q(Fe,ut){1&Fe&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Fe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")," "))}function Ee(Fe,ut){if(1&Fe&&(e.TgZ(0,"td",25),e.ALo(1,"lowercase"),e._uU(2),e.qZA()),2&Fe){const tt=ut.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,tt.name),"-name-td"),e.xp6(2),e.hij(" ",tt.name," ")}}function ge(Fe,ut){1&Fe&&e._UZ(0,"th",26)}function ve(Fe,ut){1&Fe&&(e.TgZ(0,"mat-icon",29),e.ALo(1,"translate"),e._uU(2," check_circle_outline "),e.qZA()),2&Fe&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function De(Fe,ut){1&Fe&&(e.TgZ(0,"mat-icon",30),e.ALo(1,"translate"),e._uU(2," block "),e.qZA()),2&Fe&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function he(Fe,ut){if(1&Fe&&(e.TgZ(0,"td",25),e.YNc(1,ve,3,3,"mat-icon",27),e.YNc(2,De,3,3,"mat-icon",28),e.qZA()),2&Fe){const tt=ut.$implicit;e.xp6(1),e.Q6J("ngIf",tt.enabled),e.xp6(1),e.Q6J("ngIf",!tt.enabled)}}function Ye(Fe,ut){1&Fe&&(e.TgZ(0,"th",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Fe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")," "))}function Be(Fe,ut){if(1&Fe&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&Fe){const tt=ut.$implicit;e.xp6(1),e.Oqu(tt.script)}}function se(Fe,ut){1&Fe&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Fe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")," "))}function le(Fe,ut){if(1&Fe&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&Fe){const tt=ut.$implicit;e.xp6(1),e.Oqu(tt.description)}}function k(Fe,ut){1&Fe&&e._UZ(0,"tr",31)}const N=function(Fe){return["/admin/services",Fe]};function be(Fe,ut){if(1&Fe&&e._UZ(0,"tr",32),2&Fe){const tt=ut.$implicit,vt=e.oxw();e.ekj("cursor-pointer",!vt.disableRouting)("disable-outline",vt.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",vt.disableRouting?null:e.VKq(6,N,tt.id))("routerLink",vt.disableRouting?null:e.VKq(8,N,tt.id))}}function Z(Fe,ut){1&Fe&&(e.TgZ(0,"perun-web-apps-alert",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Fe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function de(Fe,ut){1&Fe&&(e.TgZ(0,"perun-web-apps-alert",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Fe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}const xe=function(Fe){return{all:Fe}};let ot=(()=>{class Fe{constructor(tt,vt){this.authResolver=tt,this.tableCheckbox=vt,this.services=[],this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new M.Ov(!0,[]),this.disableRouting=!1,this.selectionChanged=new e.vpe,this.pageSizeOptions=m.f7}set matSort(tt){this.sort=tt,this.setDataSource()}static getDataForColumn(tt,vt){switch(vt){case"id":return tt.id.toString();case"name":return tt.name;case"enabled":return tt.enabled?"true":"false";case"script":return tt.script;case"description":return tt.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(tt=>"id"!==tt)),this.dataSource=new C.by(this.services),this.setDataSource(),this.selection.changed.subscribe(()=>{this.selectionChanged.emit()})}exportAllData(tt){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,Fe.getDataForColumn),tt)}exportDisplayedData(tt){const vt=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,X=vt+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(vt,X),this.displayedColumns,Fe.getDataForColumn),tt)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(tt,vt)=>(0,m.Sd)(tt,vt,this.displayedColumns,Fe.getDataForColumn),this.dataSource.sortData=(tt,vt)=>(0,m.pR)(tt,vt,Fe.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return Fe.\u0275fac=function(tt){return new(tt||Fe)(e.Y36(b.x4),e.Y36(b.UA))},Fe.\u0275cmp=e.Xpm({type:Fe,selectors:[["app-services-list"]],viewQuery:function(tt,vt){if(1&tt&&(e.Gf(m.l9,7),e.Gf(A.YE,7)),2&tt){let X;e.iGM(X=e.CRH())&&(vt.child=X.first),e.iGM(X=e.CRH())&&(vt.matSort=X.first)}},inputs:{services:"services",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{selectionChanged:"selectionChanged"},features:[e.TTD],decls:24,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enabled"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","script"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","align-bottom green",3,"matTooltip",4,"ngIf"],["class","align-bottom red",3,"matTooltip",4,"ngIf"],[1,"align-bottom","green",3,"matTooltip"],[1,"align-bottom","red",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(tt,vt){1&tt&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(nt){return vt.exportDisplayedData(nt)})("exportAllData",function(nt){return vt.exportAllData(nt)}),e.TgZ(2,"table",2),e.YNc(3,F,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,V,3,3,"th",5),e.YNc(7,te,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,Q,3,3,"th",5),e.YNc(10,Ee,3,4,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,ge,1,0,"th",10),e.YNc(13,he,3,2,"td",8),e.BQk(),e.ynx(14,11),e.YNc(15,Ye,3,3,"th",10),e.YNc(16,Be,2,1,"td",8),e.BQk(),e.ynx(17,12),e.YNc(18,se,3,3,"th",5),e.YNc(19,le,2,1,"td",8),e.BQk(),e.YNc(20,k,1,0,"tr",13),e.YNc(21,be,1,10,"tr",14),e.qZA()()(),e.YNc(22,Z,3,3,"perun-web-apps-alert",15),e.YNc(23,de,3,3,"perun-web-apps-alert",15)),2&tt&&(e.Q6J("hidden",void 0===vt.services||0===vt.services.length||0===vt.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",vt.pageSizeOptions)("dataLength",vt.dataSource.filteredData.length)("tableId",vt.tableId),e.xp6(1),e.Q6J("dataSource",vt.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,xe,e.xi3(4,10,vt.dataSource,vt.selection.selected.length))),e.xp6(17),e.Q6J("matHeaderRowDef",vt.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",vt.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===vt.dataSource.filteredData.length&&void 0!==vt.services&&0!==vt.services.length),e.xp6(1),e.Q6J("ngIf",void 0===vt.services||0===vt.services.length))},dependencies:[D.O5,v.rH,R.Hw,A.YE,A.nU,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,B.oG,w.gM,L.w,O.Y,q.Q,ee.l,D.i8,z.X$,ie.I,Te.G,pe.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.green[_ngcontent-%COMP%]{color:green}.red[_ngcontent-%COMP%]{color:red}"]}),Fe})()},64877:(Xe,ue,p)=>{"use strict";p.d(ue,{C:()=>ye});var e=p(96308),A=p(30671),C=p(95017),M=p(9244),m=p(81591),b=p(94650),D=p(36895),v=p(94364),R=p(97392),B=p(56709),w=p(10266),L=p(98380),O=p(34198),q=p(55660),ee=p(18750),z=p(89383),ie=p(31359),Te=p(16119),pe=p(7598),Le=p(9954),T=p(9185),W=p(8231),F=p(14849);function V(_e,Se){if(1&_e){const Ne=b.EpF();b.TgZ(0,"mat-checkbox",22),b.NdJ("change",function(fe){b.CHM(Ne);const r=b.oxw(3);return b.KtG(fe?r.masterToggle():null)}),b.ALo(1,"translate"),b.ALo(2,"masterCheckboxLabel"),b.qZA()}if(2&_e){const Ne=b.oxw(2).ngIf,Ce=b.oxw();b.Q6J("aria-label",b.lcZ(1,3,b.lcZ(2,5,Ne.all)))("checked",Ce.selection.hasValue()&&Ne.all)("indeterminate",Ce.selection.hasValue()&&!Ne.all)}}function te(_e,Se){if(1&_e&&(b.TgZ(0,"th",20),b.YNc(1,V,3,7,"mat-checkbox",21),b.qZA()),2&_e){const Ne=b.oxw(2);b.xp6(1),b.Q6J("ngIf",Ne.selection.isMultipleSelection())}}const Q=function(_e){return{name:_e}};function Ee(_e,Se){if(1&_e){const Ne=b.EpF();b.TgZ(0,"td",23)(1,"mat-checkbox",24),b.NdJ("change",function(fe){const u=b.CHM(Ne).$implicit,_=b.oxw(2);return b.KtG(fe?_.selection.toggle(u):null)})("click",function(fe){return fe.stopPropagation()}),b.ALo(2,"translate"),b.ALo(3,"checkboxLabel"),b.ALo(4,"userFullName"),b.ALo(5,"lowercase"),b.qZA()()}if(2&_e){const Ne=Se.$implicit,Ce=b.oxw(2);b.xp6(1),b.Q2q("data-cy","",b.lcZ(5,11,Ne.firstName),"-checkbox"),b.Q6J("aria-label",b.xi3(2,4,b.lcZ(3,7,Ce.selection.isSelected(Ne)),b.VKq(13,Q,b.lcZ(4,9,Ne))))("checked",Ce.selection.isSelected(Ne))("disabled",Ce.disableSelf&&Ne.id===Ce.principalId&&!Ce.authResolver.isPerunAdmin())}}function ge(_e,Se){1&_e&&(b.ynx(0,17),b.YNc(1,te,2,1,"th",18),b.YNc(2,Ee,6,15,"td",19),b.BQk())}function ve(_e,Se){1&_e&&b._UZ(0,"th",25)}function De(_e,Se){1&_e&&(b.TgZ(0,"mat-icon",29),b.ALo(1,"translate"),b._uU(2," account_circle "),b.qZA()),2&_e&&b.s9C("matTooltip",b.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function he(_e,Se){if(1&_e&&(b._UZ(0,"mat-icon",30),b.ALo(1,"translate")),2&_e){const Ne=b.oxw(2);b.s9C("matTooltip",b.lcZ(1,2,"MANAGERS_LIST.SERVICE")),b.Q6J("svgIcon",Ne.svgIcon)}}function Ye(_e,Se){if(1&_e&&(b.TgZ(0,"td",26),b.YNc(1,De,3,3,"mat-icon",27),b.YNc(2,he,2,4,"mat-icon",28),b.qZA()),2&_e){const Ne=Se.$implicit;b.xp6(1),b.Q6J("ngIf",!Ne.serviceUser),b.xp6(1),b.Q6J("ngIf",Ne.serviceUser)}}function Be(_e,Se){1&_e&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&_e&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function se(_e,Se){if(1&_e&&(b.TgZ(0,"td",26),b._uU(1),b.qZA()),2&_e){const Ne=Se.$implicit;b.xp6(1),b.hij(" ",Ne.id," ")}}function le(_e,Se){1&_e&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&_e&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function k(_e,Se){if(1&_e&&(b.TgZ(0,"td",32),b.ALo(1,"lowercase"),b._uU(2),b.ALo(3,"userFullName"),b.qZA()),2&_e){const Ne=Se.$implicit;b.Q2q("data-cy","",b.lcZ(1,2,Ne.firstName),"-firstName-td"),b.xp6(2),b.hij(" ",b.lcZ(3,4,Ne)," ")}}function N(_e,Se){1&_e&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&_e&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")," "))}function be(_e,Se){if(1&_e&&(b.TgZ(0,"td",32),b._uU(1),b.ALo(2,"userVo"),b.qZA()),2&_e){const Ne=Se.$implicit;b.xp6(1),b.Oqu(b.lcZ(2,1,Ne))}}function Z(_e,Se){1&_e&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&_e&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.EMAIL")," "))}function de(_e,Se){if(1&_e&&(b.TgZ(0,"td",32),b._uU(1),b.ALo(2,"userEmail"),b.qZA()),2&_e){const Ne=Se.$implicit;b.xp6(1),b.Oqu(b.lcZ(2,1,Ne))}}function xe(_e,Se){1&_e&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&_e&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.LOGINS")," "))}function ot(_e,Se){if(1&_e&&(b.TgZ(0,"td",32),b._uU(1),b.ALo(2,"userLogins"),b.qZA()),2&_e){const Ne=Se.$implicit;b.xp6(1),b.Oqu(b.lcZ(2,1,Ne))}}function Fe(_e,Se){1&_e&&b._UZ(0,"tr",33)}const ut=function(_e){return["/admin/users",_e]},tt=function(_e){return["/myProfile/service-identities",_e]};function vt(_e,Se){if(1&_e&&b._UZ(0,"tr",34),2&_e){const Ne=Se.$implicit,Ce=b.oxw();b.ekj("cursor-pointer",!Ce.disableRouting),b.Q6J("routerLink",Ce.disableRouting?null:Ce.routeToAdmin?b.VKq(4,ut,Ne.id):b.VKq(6,tt,Ne.id))("perunWebAppsMiddleClickRouterLink",Ce.disableRouting?null:Ce.routeToAdmin?b.VKq(8,ut,Ne.id):b.VKq(10,tt,Ne.id))}}function X(_e,Se){if(1&_e&&(b.TgZ(0,"perun-web-apps-alert",35),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&_e){const Ne=b.oxw();b.xp6(1),b.hij(" ",Ne.noUsersFoundLabel?Ne.noUsersFoundLabel:b.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n")}}function nt(_e,Se){1&_e&&(b.TgZ(0,"perun-web-apps-alert",35),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&_e&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const Ae=function(_e){return{all:_e}};let ye=(()=>{class _e{constructor(Ne,Ce,fe){this.authResolver=Ne,this.tableCheckbox=Ce,this.storeService=fe,this.selection=new C.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.routeToAdmin=!0,this.disableRouting=!1,this.filter="",this.disableSelf=!1,this.svgIcon="perun-service-identity-black",this.pageSizeOptions=M.f7}set matSort(Ne){this.sort=Ne}static getDataForColumn(Ne,Ce){switch(Ce){case"id":return Ne.id.toString();case"user":return Ne.serviceUser?"true":"false";case"name":return Ne?Ne.lastName?Ne.lastName:Ne.firstName??"":"";case"organization":return(0,M.OV)(Ne);case"email":return(0,M.kN)(Ne);case"logins":return(0,M.lt)(Ne);default:return""}}static getExportDataForColumn(Ne,Ce){switch(Ce){case"id":return Ne.id.toString();case"user":return Ne.serviceUser?"service-user":"user";case"name":return Ne?(0,M.bD)(Ne):"";case"organization":return(0,M.OV)(Ne);case"email":return(0,M.kN)(Ne);case"logins":return(0,M.lt)(Ne);default:return""}}exportAllData(Ne){(0,M.O6)((0,M.Xn)(this.dataSource.filteredData,this.displayedColumns,_e.getExportDataForColumn),Ne)}exportDisplayedData(Ne){const Ce=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,fe=Ce+this.dataSource.paginator.pageSize;(0,M.O6)((0,M.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ce,fe),this.displayedColumns,_e.getExportDataForColumn),Ne)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Ne,Ce)=>(0,M.Sd)(Ne,Ce,this.displayedColumns,_e.getDataForColumn),this.dataSource.sortData=(Ne,Ce)=>(0,M.pR)(Ne,Ce,_e.getDataForColumn)),this.dataSource.filter=this.filter,this.dataSource.data=this.users}ngOnChanges(){this.principalId=this.storeService.getPerunPrincipal().userId,this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Ne=>"id"!==Ne)),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return _e.\u0275fac=function(Ne){return new(Ne||_e)(b.Y36(m.x4),b.Y36(m.UA),b.Y36(m.d6))},_e.\u0275cmp=b.Xpm({type:_e,selectors:[["app-users-list"]],viewQuery:function(Ne,Ce){if(1&Ne&&(b.Gf(M.l9,7),b.Gf(e.YE,7)),2&Ne){let fe;b.iGM(fe=b.CRH())&&(Ce.child=fe.first),b.iGM(fe=b.CRH())&&(Ce.matSort=fe.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",routeToAdmin:"routeToAdmin",disableRouting:"disableRouting",filter:"filter",tableId:"tableId",noUsersFoundLabel:"noUsersFoundLabel",disableSelf:"disableSelf"},features:[b.TTD],decls:27,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"svgIcon","matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"svgIcon","matTooltip"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(Ne,Ce){1&Ne&&(b.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),b.NdJ("exportDisplayedData",function(r){return Ce.exportDisplayedData(r)})("exportAllData",function(r){return Ce.exportAllData(r)}),b.TgZ(2,"table",2),b.YNc(3,ge,3,0,"ng-container",3),b.ALo(4,"isAllSelected"),b.ynx(5,4),b.YNc(6,ve,1,0,"th",5),b.YNc(7,Ye,3,2,"td",6),b.BQk(),b.ynx(8,7),b.YNc(9,Be,3,3,"th",8),b.YNc(10,se,2,1,"td",6),b.BQk(),b.ynx(11,9),b.YNc(12,le,3,3,"th",8),b.YNc(13,k,4,6,"td",10),b.BQk(),b.ynx(14,11),b.YNc(15,N,3,3,"th",8),b.YNc(16,be,3,3,"td",10),b.BQk(),b.ynx(17,12),b.YNc(18,Z,3,3,"th",8),b.YNc(19,de,3,3,"td",10),b.BQk(),b.ynx(20,13),b.YNc(21,xe,3,3,"th",8),b.YNc(22,ot,3,3,"td",10),b.BQk(),b.YNc(23,Fe,1,0,"tr",14),b.YNc(24,vt,1,12,"tr",15),b.qZA()()(),b.YNc(25,X,3,3,"perun-web-apps-alert",16),b.YNc(26,nt,3,3,"perun-web-apps-alert",16)),2&Ne&&(b.Q6J("hidden",0===Ce.users.length||!Ce.dataSource||0===Ce.dataSource.filteredData.length),b.xp6(1),b.Q6J("dataLength",Ce.dataSource.filteredData.length)("pageSizeOptions",Ce.pageSizeOptions)("tableId",Ce.tableId),b.xp6(1),b.Q6J("dataSource",Ce.dataSource),b.xp6(1),b.Q6J("ngIf",b.VKq(13,Ae,b.xi3(4,10,Ce.dataSource,Ce.selection.selected.length))),b.xp6(20),b.Q6J("matHeaderRowDef",Ce.displayedColumns),b.xp6(1),b.Q6J("matRowDefColumns",Ce.displayedColumns),b.xp6(1),b.Q6J("ngIf",0===Ce.users.length),b.xp6(1),b.Q6J("ngIf",0===Ce.dataSource.filteredData.length&&0!==Ce.users.length))},dependencies:[D.O5,v.rH,R.Hw,e.YE,e.nU,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,B.oG,w.gM,L.w,O.Y,q.Q,ee.l,D.i8,z.X$,ie.d,Te.S,pe.g,Le.Z,T.I,W.G,F.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),_e})()},57706:(Xe,ue,p)=>{"use strict";p.d(ue,{c:()=>C});var e=p(94650),A=p(89383);let C=(()=>{class M{constructor(b){this.translateService=b,this.returnData=""}transform(b){return this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES."+b).subscribe(D=>{this.returnData=D}),this.returnData}}return M.\u0275fac=function(b){return new(b||M)(e.Y36(A.sK,16))},M.\u0275pipe=e.Yjl({name:"applicationFormItemType",type:M,pure:!0}),M})()},43157:(Xe,ue,p)=>{"use strict";p.d(ue,{h:()=>C});var e=p(94650),A=p(89383);let C=(()=>{class M{constructor(b){this.translate=b,this.returnData=""}transform(b){switch(b){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(D=>{this.returnData=`done${D}`});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(D=>{this.returnData=`clear${D}`});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(D=>{this.returnData=`contact_mail ${D}`});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(D=>{this.returnData=`gavel${D}`});break;default:this.returnData=b}return this.returnData}}return M.\u0275fac=function(b){return new(b||M)(e.Y36(A.sK,16))},M.\u0275pipe=e.Yjl({name:"applicationState",type:M,pure:!1}),M})()},70844:(Xe,ue,p)=>{"use strict";p.d(ue,{u:()=>C});var e=p(81591),A=p(94650);let C=(()=>{class M{constructor(b){this.storeService=b,this.USER_CONSENT_RELATED_ATT_NAMESPACE=["urn:perun:user_facility:attribute-def","urn:perun:user:attribute-def","urn:perun:member:attribute-def","urn:perun:member_group:attribute-def","urn:perun:member_resource:attribute-def","urn:perun:ues:attribute-def"]}transform(b,D,v){return!!(this.storeService.getProperty("enforce_consents")&&v&&D)&&this.USER_CONSENT_RELATED_ATT_NAMESPACE.reduce((B,w)=>B||b.startsWith(w),!1)}}return M.\u0275fac=function(b){return new(b||M)(A.Y36(e.d6,16))},M.\u0275pipe=A.Yjl({name:"consentRelatedAttribute",type:M,pure:!0}),M})()},37677:(Xe,ue,p)=>{"use strict";p.d(ue,{A:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){return m.substring(40)}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"extSourceType",type:C,pure:!0}),C})()},32597:(Xe,ue,p)=>{"use strict";p.d(ue,{g:()=>M});var e=p(95698),A=p(94650),C=p(94364);let M=(()=>{class m{constructor(D,v){this.router=D,this.route=v}navigate(D,v=null){this.route.queryParams.pipe((0,e.q)(1)).subscribe(R=>{let B="merge";const w=Object.assign({},R);location.pathname.endsWith("applicationForm/preview")&&(B="",delete w.applicationFormItems),this.router.navigate(D,{relativeTo:v,queryParams:w,queryParamsHandling:B})})}}return m.\u0275fac=function(D){return new(D||m)(A.LFG(C.F0),A.LFG(C.gz))},m.\u0275prov=A.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},14264:(Xe,ue,p)=>{"use strict";p.d(ue,{m:()=>st});var e=p(36895),A=p(94364),C=p(47957),M=p(4859),m=p(56709),b=p(3238),D=p(99602),v=p(65412),R=p(44850),B=p(37084),w=p(59549),L=p(97392),O=p(284),q=p(98739),ee=p(73162),z=p(51572),ie=p(71948),Te=p(84385),pe=p(23267),Le=p(90455),T=p(17009),W=p(96308),F=p(30671),V=p(3848),te=p(10266),Q=p(35423),Ee=p(73546),ge=p(42673),ve=p(77331),De=p(28255),he=p(86257),Ye=p(24006),Be=p(73228),se=p(36769),le=p(81591),k=p(94650),N=p(32597),be=p(34198),Z=p(89383);const de=["collapse"],xe=function(){return{color:"linkTextColor"}};function ot(Ke,Et){1&Ke&&(k.TgZ(0,"mat-icon",14),k._uU(1,"keyboard_arrow_right"),k.qZA()),2&Ke&&k.Q6J("ngStyle",k.DdM(1,xe))}function Fe(Ke,Et){1&Ke&&(k.TgZ(0,"mat-icon",14),k._uU(1,"keyboard_arrow_down"),k.qZA()),2&Ke&&k.Q6J("ngStyle",k.DdM(1,xe))}function ut(Ke,Et){if(1&Ke&&(k.TgZ(0,"span",12),k.YNc(1,ot,2,2,"mat-icon",13),k.YNc(2,Fe,2,2,"mat-icon",13),k.qZA()),2&Ke){const ke=k.oxw().$implicit,at=k.oxw(2);k.xp6(1),k.Q6J("ngIf",!at.isActive(at.currentUrl,ke.showChildrenRegex)),k.xp6(1),k.Q6J("ngIf",at.isActive(at.currentUrl,ke.showChildrenRegex))}}const tt=function(Ke,Et){return{color:Ke,"border-color":Et}};function vt(Ke,Et){if(1&Ke){const ke=k.EpF();k.TgZ(0,"a",17),k.NdJ("click",function(){const jt=k.CHM(ke).$implicit,an=k.oxw(4);return k.KtG(an.navigate(jt.url))}),k._uU(1),k.ALo(2,"translate"),k.qZA()}if(2&Ke){const ke=Et.$implicit,at=k.oxw(4);k.ekj("activated",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0===at.item.activatedClass),k.Q6J("perunWebAppsMiddleClickRouterLink",ke.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0!==at.item.activatedClass?at.item.activatedClass:"")("ngStyle",k.WLB(9,tt,at.linkTextColor,at.linkTextColor)),k.xp6(1),k.hij(" ",k.lcZ(2,7,ke.label)," ")}}function X(Ke,Et){if(1&Ke&&(k.TgZ(0,"div",15),k.YNc(1,vt,3,12,"a",16),k.qZA()),2&Ke){const ke=k.oxw().$implicit;k.Q6J("@rollInOut",void 0),k.xp6(1),k.Q6J("ngForOf",null==ke?null:ke.children)}}function nt(Ke,Et){if(1&Ke){const ke=k.EpF();k.TgZ(0,"div")(1,"a",9),k.NdJ("click",function(){const jt=k.CHM(ke).$implicit,an=k.oxw(2);return k.KtG(an.navigate(jt.url))}),k._uU(2),k.ALo(3,"translate"),k.YNc(4,ut,3,2,"span",10),k.qZA(),k.YNc(5,X,2,2,"div",11),k.qZA()}if(2&Ke){const ke=Et.$implicit,at=k.oxw(2);k.xp6(1),k.ekj("activated",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0===at.item.activatedClass),k.Q6J("perunWebAppsMiddleClickRouterLink",ke.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0!==at.item.activatedClass?at.item.activatedClass:"")("ngStyle",k.WLB(11,tt,at.linkTextColor,at.linkTextColor)),k.xp6(1),k.hij(" ",k.lcZ(3,9,ke.label)," "),k.xp6(2),k.Q6J("ngIf",ke.children),k.xp6(1),k.Q6J("ngIf",at.isActive(at.currentUrl,ke.showChildrenRegex))}}function Ae(Ke,Et){if(1&Ke&&(k.TgZ(0,"div"),k.YNc(1,nt,6,14,"div",8),k.qZA()),2&Ke){const ke=k.oxw();k.Q6J("@rollInOut",void 0),k.xp6(1),k.Q6J("ngForOf",ke.item.links)}}const ye=function(Ke,Et){return{background:Ke,"border-top":Et}},_e=function(Ke){return{color:Ke}},Se=function(){return{color:"currentColor"}},Ne=function(Ke){return{background:Ke}};let Ce=(()=>{class Ke{constructor(ke,at,It){this.router=ke,this.store=at,this.queryParamsRouter=It,this.expanded=!0,this.linkBgColor=this.store.getProperty("theme").sidemenu_submenu_bg_color,this.linkTextColor=this.store.getProperty("theme").sidemenu_submenu_text_color,this.dividerStyle="1px solid "+this.store.getProperty("theme").sidemenu_divider_color,this.currentUrl=ke.url,ke.events.subscribe(jt=>{jt instanceof A.m2&&(this.currentUrl=jt.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(ke,at){return new RegExp(at).test(ke.split("?")[0])}navigate(ke){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.queryParamsRouter.navigate(ke)):this.queryParamsRouter.navigate(ke)}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(k.Y36(A.F0),k.Y36(le.d6),k.Y36(N.g))},Ke.\u0275cmp=k.Xpm({type:Ke,selectors:[["app-side-menu-item"]],viewQuery:function(ke,at){if(1&ke&&k.Gf(de,5),2&ke){let It;k.iGM(It=k.CRH())&&(at.collapseDiv=It.first)}},inputs:{item:"item",index:"index",showLinks:"showLinks",sideNav:"sideNav"},decls:12,vars:26,consts:[[1,"entity-menu-item"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","click"],["matRipple","",3,"perunWebAppsMiddleClickRouterLink"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ml-3"],[3,"ngStyle"],[4,"ngIf"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ml-auto",4,"ngIf"],["class","entity-menu-item-sub-menu",4,"ngIf"],[1,"ml-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],[1,"entity-menu-item-sub-menu"],["class","entity-menu-item-sub-menu-item clickable","matRipple","",3,"perunWebAppsMiddleClickRouterLink","activated","matRippleColor","ngClass","ngStyle","click",4,"ngFor","ngForOf"],["matRipple","",1,"entity-menu-item-sub-menu-item","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"]],template:function(ke,at){1&ke&&(k.TgZ(0,"div",0)(1,"div",1),k.NdJ("click",function(){return at.toggle()}),k.TgZ(2,"div",2)(3,"a",3)(4,"div"),k._UZ(5,"mat-icon",4),k.qZA(),k.TgZ(6,"div",5),k._uU(7),k.ALo(8,"translate"),k.qZA()()()(),k.TgZ(9,"div")(10,"div",6),k.YNc(11,Ae,2,2,"div",7),k.qZA()()()),2&ke&&(k.xp6(1),k.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",k.WLB(18,ye,at.item.backgroundColorCss,at.index?at.dividerStyle:"none")),k.xp6(1),k.Gre("entity-menu-item-link ",at.item.labelClass,""),k.Q6J("perunWebAppsMiddleClickRouterLink",at.item.baseLink),k.xp6(1),k.Q6J("ngStyle",k.VKq(21,_e,at.item.textColorCss)),k.xp6(2),k.Q6J("ngStyle",k.DdM(23,Se))("svgIcon",at.item.icon),k.xp6(2),k.Oqu(k.lcZ(8,16,at.item.label)),k.xp6(2),k.Q6J("@openClose",at.expanded?"open":"closed"),k.xp6(1),k.Gre("side-entity-menu ",at.item.linksClass,""),k.Q6J("ngStyle",k.VKq(24,Ne,at.linkBgColor)),k.xp6(1),k.Q6J("ngIf",at.showLinks))},dependencies:[e.mk,e.sg,e.O5,e.PC,L.Hw,b.wG,be.Y,Z.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important;color:var(--side-link-text-hover)!important}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 40px;text-decoration:none;color:#fff;font-size:1rem;display:block}.activated[_ngcontent-%COMP%]{color:#313131!important;border-right:5px solid #313131}.entity-menu-item-header[_ngcontent-%COMP%]{padding:8px 5px 8px 25px;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;word-break:break-word}.entity-menu-item-label[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-item-sub-menu[_ngcontent-%COMP%]{overflow:hidden}.entity-menu-item-sub-menu-item[_ngcontent-%COMP%]{padding-left:4rem!important}"],data:{animation:[se.BQ,se.Ly]}}),Ke})(),fe=(()=>{class Ke{transform(ke){if(void 0===ke.value)return"";switch(ke.type){case"java.lang.String":return ke.value;case"java.lang.Integer":case"java.lang.Boolean":default:return String(ke.value);case"java.util.ArrayList":return this.whenValueIsArray(ke.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(ke.value)}}whenValueIsArray(ke){let at="";return ke.forEach(function(It){at=at.concat(It+", ")}),at}whenValueIsMap(ke){let at="";return ke.forEach((It,jt)=>{at=at.concat(jt+": "+It+", ")}),at}}return Ke.\u0275fac=function(ke){return new(ke||Ke)},Ke.\u0275pipe=k.Yjl({name:"anyToString",type:Ke,pure:!0}),Ke})();const r=["collapse"],u=function(){return{color:"linkTextColor"}};function _(Ke,Et){1&Ke&&(k.TgZ(0,"mat-icon",12),k._uU(1,"keyboard_arrow_right"),k.qZA()),2&Ke&&k.Q6J("ngStyle",k.DdM(1,u))}function E(Ke,Et){1&Ke&&(k.TgZ(0,"mat-icon",12),k._uU(1,"keyboard_arrow_down"),k.qZA()),2&Ke&&k.Q6J("ngStyle",k.DdM(1,u))}function h(Ke,Et){if(1&Ke&&(k.TgZ(0,"span",10),k.YNc(1,_,2,2,"mat-icon",11),k.YNc(2,E,2,2,"mat-icon",11),k.qZA()),2&Ke){const ke=k.oxw().$implicit,at=k.oxw();k.xp6(1),k.Q6J("ngIf",!at.isActive(at.currentUrl,ke.showChildrenRegex)),k.xp6(1),k.Q6J("ngIf",at.isActive(at.currentUrl,ke.showChildrenRegex))}}const a=function(Ke,Et){return{color:Ke,"border-color":Et}};function i(Ke,Et){if(1&Ke){const ke=k.EpF();k.TgZ(0,"a",14),k.NdJ("click",function(){const jt=k.CHM(ke).$implicit,an=k.oxw(3);return k.KtG(an.navigate(jt.url))}),k._uU(1),k.ALo(2,"translate"),k.qZA()}if(2&Ke){const ke=Et.$implicit,at=k.oxw(3);k.ekj("activated",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0===at.item.activatedClass),k.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",k.WLB(9,a,at.linkTextColor,at.linkTextColor))("ngClass",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0!==at.item.activatedClass?at.item.activatedClass:"")("perunWebAppsMiddleClickRouterLink",ke.url),k.xp6(1),k.hij(" ",k.lcZ(2,7,ke.label)," ")}}function t(Ke,Et){if(1&Ke&&(k.TgZ(0,"div"),k.YNc(1,i,3,12,"a",13),k.qZA()),2&Ke){const ke=k.oxw().$implicit;k.Q6J("@rollInOut",void 0),k.xp6(1),k.Q6J("ngForOf",null==ke?null:ke.children)}}function n(Ke,Et){if(1&Ke){const ke=k.EpF();k.TgZ(0,"div")(1,"a",7),k.NdJ("click",function(){const jt=k.CHM(ke).$implicit,an=k.oxw();return k.KtG(an.navigate(jt.url))}),k._uU(2),k.ALo(3,"translate"),k.YNc(4,h,3,2,"span",8),k.qZA(),k.YNc(5,t,2,2,"div",9),k.qZA()}if(2&Ke){const ke=Et.$implicit,at=k.oxw();k.xp6(1),k.ekj("activated",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0===at.item.activatedClass),k.Q6J("perunWebAppsMiddleClickRouterLink",ke.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0!==at.item.activatedClass?at.item.activatedClass:"")("ngStyle",k.WLB(11,a,at.linkTextColor,at.linkTextColor)),k.xp6(1),k.hij(" ",k.lcZ(3,9,ke.label)," "),k.xp6(2),k.Q6J("ngIf",ke.children),k.xp6(1),k.Q6J("ngIf",at.isActive(at.currentUrl,ke.showChildrenRegex))}}const o=function(Ke){return{background:Ke}},s=function(Ke){return{color:Ke}},l=function(){return{color:"currentColor"}};let d=(()=>{class Ke{constructor(ke,at,It){this.router=ke,this.store=at,this.queryParamsRouter=It,this.id="",this.expanded=!1,this.linkBgColor=this.store.getProperty("theme").sidemenu_submenu_bg_color,this.linkTextColor=this.store.getProperty("theme").sidemenu_submenu_text_color,this.currentUrl=ke.url,ke.events.subscribe(jt=>{jt instanceof A.m2&&(this.currentUrl=jt.url)})}ngOnInit(){this.expanded=this.showOpen}ngOnChanges(){this.expanded=this.showOpen}toggle(){void 0!==this.item.baseLink?this.navigate(this.item.baseLink):this.expanded=!this.expanded}isActive(ke,at){return new RegExp(at).test(ke)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(ke){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.queryParamsRouter.navigate(ke)):this.queryParamsRouter.navigate(ke)}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(k.Y36(A.F0),k.Y36(le.d6),k.Y36(N.g))},Ke.\u0275cmp=k.Xpm({type:Ke,selectors:[["app-side-menu-root-item"]],viewQuery:function(ke,at){if(1&ke&&k.Gf(r,5),2&ke){let It;k.iGM(It=k.CRH())&&(at.collapseDiv=It.first)}},inputs:{item:"item",index:"index",showOpen:"showOpen",id:"id",sideNav:"sideNav"},features:[k.TTD],decls:12,vars:28,consts:[[1,"entity-menu-item",3,"id"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","perunWebAppsMiddleClickRouterLink","click"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ml-3"],[3,"ngStyle"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ml-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],["class","pl-5 clickable","matRipple","",3,"activated","matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click"]],template:function(ke,at){1&ke&&(k.TgZ(0,"div",0)(1,"div",1),k.NdJ("click",function(){return at.toggle()}),k.TgZ(2,"div")(3,"a",2)(4,"div"),k._UZ(5,"mat-icon",3),k.qZA(),k.TgZ(6,"div",4),k._uU(7),k.ALo(8,"translate"),k.qZA()()()(),k.TgZ(9,"div")(10,"div",5),k.YNc(11,n,6,14,"div",6),k.qZA()()()),2&ke&&(k.s9C("id",at.id),k.xp6(1),k.ekj("root-header-activated",at.isActive(at.currentUrl,at.item.baseColorClassRegex)),k.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",k.VKq(21,o,at.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",at.item.baseLink),k.xp6(1),k.Gre("entity-menu-item-link ",at.item.labelClass,""),k.xp6(1),k.Q6J("ngStyle",k.VKq(23,s,at.item.textColorCss)),k.xp6(2),k.Q6J("ngStyle",k.DdM(25,l))("svgIcon",at.item.icon),k.xp6(2),k.Oqu(k.lcZ(8,19,at.item.label)),k.xp6(2),k.Q6J("@openClose",at.expanded?"open":"closed"),k.xp6(1),k.Gre("side-entity-menu ",at.item.linksClass,""),k.Q6J("ngStyle",k.VKq(26,o,at.linkBgColor)),k.xp6(1),k.Q6J("ngForOf",at.item.links))},dependencies:[e.mk,e.sg,e.O5,e.PC,L.Hw,b.wG,be.Y,Z.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 32px;text-decoration:none;font-size:1rem;color:#fff;display:block}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important;color:var(--side-link-text-hover)!important}.root-header-activated[_ngcontent-%COMP%]{background:var(--side-root-item-active)!important;color:var(--side-root-item-text-active)!important}.entity-menu-item-header[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 1rem;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-header[_ngcontent-%COMP%]:hover{background:var(--side-root-item-hover)!important;color:var(--side-root-item-text-hover)!important}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;color:#fff}.entity-menu-item-label[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}"],data:{animation:[se.BQ,se.Ly]}}),Ke})();var c=p(73555),S=p(67376),J=p(63189),ht=p(37677),We=p(37433),et=p(11243),ne=p(19516),Ue=p(33231),He=p(96338),Oe=p(9244),Re=p(28499),re=p(70844),we=p(21029);let st=(()=>{class Ke{constructor(ke){this.translate=ke,ke.addLangs(["en","cs"])}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(k.LFG(Z.sK))},Ke.\u0275mod=k.oAB({type:Ke}),Ke.\u0275inj=k.cJS({providers:[fe,ht.A,re.u],imports:[e.ez,A.Bz,C.Bb,O.c,w.lN,Ye.UX,Ye.u5,L.Ps,pe.SJ,B.To,Z.aw.forChild({}),M.ot,W.JX,F.p0,V.Nh,Q.dp,M.ot,m.p9,v.Is,Te.LD,T.ZX,z.Cq,ee.Cv,te.AV,Le.rP,D.FA,b.XK,ie.Fk,R.t,b.si,q.TU,Ee.QW,he.T5,c._t,Ee.QW,ve.Hi,De.Tx,S.Cl,J.r,ge.g,We.ez,et.r,ne.d4,Ue.Co,He.ie,Oe.Je,Re.E3,we.jD,Ue.Co,C.Bb,O.c,A.Bz,Ye.UX,Ye.u5,L.Ps,pe.SJ,Z.aw,W.JX,F.p0,V.Nh,Q.dp,M.ot,m.p9,v.Is,Te.LD,T.ZX,z.Cq,ee.Cv,te.AV,Le.rP,D.FA,b.XK,ie.Fk,R.t,Ee.QW,he.T5,b.si,q.TU,c._t,ve.Hi,ve.Hi,B.To,De.Tx,S.Cl,S.Cl,S.Cl,et.r]}),Ke})();k.B6R(Be.V,function(){return[e.sg,e.O5,Ce,d]},[])},69024:(Xe,ue,p)=>{"use strict";p.d(ue,{V:()=>v});var e=p(81591),A=p(61744),C=p(9244),M=p(19516),m=p(64080),b=p(94650),D=p(89383);let v=(()=>{class R{constructor(w,L,O,q,ee,z,ie,Te){this.translate=w,this.authResolver=L,this.store=O,this.apiRequest=q,this.attributesManager=ee,this.notificator=z,this.guiAuthResolver=ie,this.routePolicyService=Te,this.theme=this.store.getProperty("theme")}getFacilitiesManagementItem(){return{label:"MAIN_MENU.FACILITIES",colorClass:"base-item-color-activated",icon:"perun-facility-white",baseLink:["/facilities"],links:[],baseColorClass:"base-item-color",baseColorClassRegex:"^/facilities$",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color}}getAccessManagementItem(){return{label:"MAIN_MENU.ACCESS",colorClass:"base-item-color-activated",icon:"perun-vo",links:[],baseLink:["/organizations"],baseColorClass:"base-item-color",baseColorClassRegex:"^/organizations$",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color}}getHomeItem(){return{baseLink:["/home"],label:"MAIN_MENU.HOME",colorClass:"base-item-color-activated",icon:"perun-home-white",baseColorClass:"base-item-color",baseColorClassRegex:"^/home$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[]}}getUserItem(){return{baseLink:["/myProfile"],expandable:!1,label:"MAIN_MENU.MY_PROFILE",colorClass:"base-item-color-activated",icon:"perun-user",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:["/myProfile"],activatedRegex:"^/myProfile$"},{label:"MENU_ITEMS.USER.ORGANIZATIONS",url:["/myProfile/organizations"],activatedRegex:"^/myProfile/organizations$"},{label:"MENU_ITEMS.USER.GROUPS",url:["/myProfile/groups"],activatedRegex:"^/myProfile/groups$"},{label:"MENU_ITEMS.USER.ATTRIBUTES",url:["/myProfile/attributes"],activatedRegex:"^/myProfile/attributes$"},{label:"MENU_ITEMS.USER.ROLES",url:["/myProfile/roles"],activatedRegex:"/myProfile/roles"},{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:["/myProfile/service-identities"],activatedRegex:"^/myProfile/service-identities"},{label:"MENU_ITEMS.USER.BANS",url:["/myProfile/bans"],activatedRegex:"^/myProfile/bans"},{label:"MENU_ITEMS.USER.SETTINGS",url:["/myProfile/settings"],activatedRegex:"^/myProfile/settings$",children:[{label:"MENU_ITEMS.USER.PASSWORD_RESET",url:["/myProfile/settings/passwordReset"],activatedRegex:"^/myProfile/settings/passwordReset"},{label:"MENU_ITEMS.USER.GUI_CONFIG",url:["/myProfile/settings/guiConfig"],activatedRegex:"/myProfile/settings/guiConfig"}],showChildrenRegex:"/myProfile/settings"}]}}getAdminItem(){return{baseLink:["/admin"],expandable:!1,label:"MAIN_MENU.ADMIN",colorClass:"base-item-color-activated",icon:"perun-perun-admin",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[{label:"MENU_ITEMS.ADMIN.OVERVIEW",url:["/admin"],activatedRegex:"^/admin$"},{label:"MENU_ITEMS.ADMIN.ATTRIBUTES",url:["/admin/attributes"],activatedRegex:"^/admin/attributes$"},{label:"MENU_ITEMS.ADMIN.USERS",url:["/admin/users"],activatedRegex:"^/admin/users$"},{label:"MENU_ITEMS.ADMIN.OWNERS",url:["/admin/owners"],activatedRegex:"^/admin/owners$"},{label:"MENU_ITEMS.ADMIN.SERVICES",url:["/admin/services"],activatedRegex:"^/admin/services$"},{label:"MENU_ITEMS.ADMIN.VISUALIZER",url:["/admin/visualizer"],activatedRegex:"^/admin/visualizer$",children:[{label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",url:["/admin/visualizer/attrDependencies"],activatedRegex:"^/admin/visualizer/attrDependencies"},{label:this.translate.instant("MENU_ITEMS.VISUALIZER.USER_DESTINATION"),url:["/admin/visualizer/userDestinationRelationship"],activatedRegex:"^/admin/visualizer/userDestinationRelationship"}],showChildrenRegex:"/admin/visualizer"},{label:"MENU_ITEMS.ADMIN.EXT_SOURCES",url:["/admin/ext_sources"],activatedRegex:"^/admin/ext_sources$"},{label:"MENU_ITEMS.ADMIN.AUDIT_LOG",url:["/admin/audit_log"],activatedRegex:"^/admin/audit_log$"},{label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",url:["/admin/consent_hubs"],activatedRegex:"^/admin/consent_hubs$"},{label:"MENU_ITEMS.ADMIN.SEARCHER",url:["/admin/searcher"],activatedRegex:"^/admin/searcher"}]}}parseFacility(w){return{label:w.name,baseLink:[`/facilities/${w.id}`],backgroundColorCss:this.theme.sidemenu_facility_bg_color,textColorCss:this.theme.sidemenu_facility_text_color,links:this.getFacilityLinks(w),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(w,L){const O=(new M.r5).transform(w,L);return{label:w.name,baseLink:[O],backgroundColorCss:this.theme.sidemenu_resource_bg_color,textColorCss:this.theme.sidemenu_resource_text_color,links:this.getResourceLinks(O,L?"/organizations":"/facilities",w),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseGroup(w){return{label:w.name,baseLink:[`/organizations/${w.voId}/groups/${w.id}`],backgroundColorCss:this.theme.sidemenu_group_bg_color,textColorCss:this.theme.sidemenu_group_text_color,links:this.getGroupLinks(w),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(w,L=!1,O=!1){return{label:w.name,baseLink:[`/organizations/${w.id}`],links:this.getVoLinks(w,O),colorClass:"vo-item",icon:L?"perun-hierarchical-vo":"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_vo_bg_color,textColorCss:this.theme.sidemenu_vo_text_color}}parseMember(w){return{label:(0,C.bD)(w.user),baseLink:[`/organizations/${w.voId}/members/${w.id}`],backgroundColorCss:this.theme.sidemenu_member_bg_color,textColorCss:this.theme.sidemenu_member_text_color,links:this.getMemberLinks(w),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(w,L,O){return{label:(0,C.bD)(w),baseLink:[L],backgroundColorCss:this.theme.sidemenu_user_bg_color,textColorCss:this.theme.sidemenu_user_text_color,links:this.getUserLinks(w,L,O),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseServiceIdentity(w){return{label:(0,C.bD)(w),baseLink:[`/myProfile/service-identities/${w.id}`],backgroundColorCss:this.theme.sidemenu_user_bg_color,textColorCss:this.theme.sidemenu_user_text_color,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:[`/myProfile/service-identities/${w.id}`],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`/myProfile/service-identities/${w.id}/associated-users`],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"},{label:"MENU_ITEMS.USER.MAILING_LISTS",url:[`/myProfile/service-identities/${w.id}/mailing-lists`],activatedRegex:"/myProfile/service-identities/\\d+/mailing-lists"},{label:"MENU_ITEMS.USER.DATA_QUOTAS",url:[`/myProfile/service-identities/${w.id}/data-quotas`],activatedRegex:"/myProfile/service-identities/\\d+/data-quotas"},{label:"MENU_ITEMS.USER.AUTHENTICATION",url:[`/myProfile/service-identities/${w.id}/authentication`],activatedRegex:"/myProfile/service-identities/\\d+/authentication$",children:[{label:"MENU_ITEMS.USER.LOGINS",url:[`/myProfile/service-identities/${w.id}/authentication/logins`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/logins"},{label:"MENU_ITEMS.USER.CERTIFICATES",url:[`/myProfile/service-identities/${w.id}/authentication/certificates`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/certificates"},{label:"MENU_ITEMS.USER.SSH_KEYS",url:[`/myProfile/service-identities/${w.id}/authentication/ssh-keys`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/ssh-keys"}],showChildrenRegex:"/myProfile/service-identities/\\d+/authentication"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(w){return{label:w.name,baseLink:[`/admin/services/${w.id}`],backgroundColorCss:this.theme.sidemenu_service_bg_color,textColorCss:this.theme.sidemenu_service_text_color,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${w.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${w.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${w.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(w,L){const O=[];if(O.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${w.id}`],activatedRegex:"/organizations/\\d+$"}),this.routePolicyService.canNavigate("organizations-members",w)&&O.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${w.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.routePolicyService.canNavigate("organizations-groups",w)&&O.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${w.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.routePolicyService.canNavigate("organizations-resources",w)){const q=[];this.routePolicyService.canNavigate("organizations-resources-preview",w)&&q.push({label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${w.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}),this.routePolicyService.canNavigate("organizations-resources-tags",w)&&q.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${w.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.routePolicyService.canNavigate("organizations-resources-states",w)&&q.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${w.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),O.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${w.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:q,showChildrenRegex:"/organizations/\\d+/resources"})}if(this.routePolicyService.canNavigate("organizations-applications",w)&&O.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${w.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",w)&&O.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${w.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",w)&&O.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${w.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),this.routePolicyService.canNavigate("organizations-attributes",w)&&O.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${w.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.routePolicyService.canNavigate("organizations-statistics",w)&&O.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${w.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"}),this.routePolicyService.canNavigate("organizations-settings",w)){const q=[];this.routePolicyService.canNavigate("organizations-settings-expiration",w)&&q.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${w.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),this.routePolicyService.canNavigate("organizations-settings-managers",w)&&q.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${w.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",w)&&q.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${w.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("organizations-settings-notifications",w)&&q.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${w.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("organizations-settings-extsources",w)&&q.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${w.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",w)&&q.push({label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",url:[`/organizations/${w.id}/settings/memberOrganizations`],activatedRegex:"/organizations/\\d+/settings/memberOrganizations"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",w)&&L&&q.push({label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",url:[`/organizations/${w.id}/settings/hierarchicalInclusion`],activatedRegex:"/organizations/\\d+/settings/hierarchicalInclusion"}),this.routePolicyService.canNavigate("organizations-settings-bans",w)&&q.push({label:"MENU_ITEMS.VO.BANS",url:[`/organizations/${w.id}/settings/bans`],activatedRegex:"/organizations/\\d+/settings/bans"}),O.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${w.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:q,showChildrenRegex:"/organizations/\\d+/settings"})}return O}getUserLinks(w,L,O){const q=[];return q.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[L],activatedRegex:`${O}$`}),q.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${L}/organizations`],activatedRegex:`${O}/organizations`}),q.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${L}/groups`],activatedRegex:`${O}/groups`}),q.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${L}/accounts`],activatedRegex:`${O}/accounts`}),q.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${L}/identities`],activatedRegex:`${O}/identities`}),q.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${L}/facilities`],activatedRegex:`${O}/facilities`}),q.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${L}/resources`],activatedRegex:`${O}/resources`}),q.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${L}/attributes`],activatedRegex:`${O}/attributes`}),q.push({label:"MENU_ITEMS.USER.ROLES",url:[`${L}/roles`],activatedRegex:`^${L}/roles`}),q.push(w.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${L}/associated-users`],activatedRegex:`^${L}/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${L}/service-identities`],activatedRegex:`^${L}/service-identities`}),q.push({label:"MENU_ITEMS.USER.BANS",url:[`${L}/bans`],activatedRegex:`^${L}/bans`}),q}getMemberLinks(w){const L=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${w.voId}/members/${w.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.routePolicyService.canNavigate("members-groups",w)&&L.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`/organizations/${w.voId}/members/${w.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.routePolicyService.canNavigate("members-applications",w)&&L.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`/organizations/${w.voId}/members/${w.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.routePolicyService.canNavigate("members-resources",w)&&L.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${w.voId}/members/${w.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),this.routePolicyService.canNavigate("members-attributes",w)&&L.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${w.voId}/members/${w.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),this.routePolicyService.canNavigate("members-bans",w)&&L.push({label:"MENU_ITEMS.MEMBER.BANS",url:[`/organizations/${w.voId}/members/${w.id}/bans`],activatedRegex:"/organizations/\\d+/members/\\d+/bans"}),L}getFacilityLinks(w){const L=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${w.id}`],activatedRegex:"/facilities/\\d+$"}];if(this.routePolicyService.canNavigate("facilities-resources",w)&&L.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${w.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.routePolicyService.canNavigate("facilities-allowed-users",w)&&L.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${w.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.routePolicyService.canNavigate("facilities-allowed-groups",w)&&L.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${w.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.routePolicyService.canNavigate("facilities-services-status",w)&&L.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${w.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.routePolicyService.canNavigate("facilities-services-destinations",w)&&L.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${w.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.routePolicyService.canNavigate("facilities-hosts",w)&&L.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${w.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),this.routePolicyService.canNavigate("facilities-attributes",w)&&L.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",w.id.toString(),"attributes"],activatedRegex:"/facilities/\\d+/attributes$"}),this.routePolicyService.canNavigate("facilities-settings",w)){const O=[];this.routePolicyService.canNavigate("facilities-settings-owners",w)&&O.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",w.id.toString(),"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),this.routePolicyService.canNavigate("facilities-settings-managers",w)&&O.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",w.id.toString(),"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",w)&&O.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${w.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",w)&&O.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",w.id.toString(),"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),this.routePolicyService.canNavigate("facilities-settings-bans",w)&&O.push({label:"MENU_ITEMS.FACILITY.BANS",url:[`/facilities/${w.id}/settings/bans`],activatedRegex:"/facilities/\\d+/settings/bans"}),L.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",w.id.toString(),"settings"],activatedRegex:"/facilities/\\d+/settings$",children:O,showChildrenRegex:"/facilities/\\d+/settings"})}return L}getGroupLinks(w){const L=[],O=[];return L.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${w.voId}/groups/${w.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.routePolicyService.canNavigate("groups-members",w)&&L.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${w.voId}/groups/${w.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.routePolicyService.canNavigate("groups-subgroups",w)&&"members"!==w.name&&L.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${w.voId}/groups/${w.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.routePolicyService.canNavigate("groups-resources",w)&&L.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${w.voId}/groups/${w.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),"members"!==w.name&&this.routePolicyService.canNavigate("groups-applications",w)&&L.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${w.voId}/groups/${w.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),this.routePolicyService.canNavigate("groups-attributes",w)&&L.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${w.voId}/groups/${w.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"}),this.routePolicyService.canNavigate("groups-statistics",w)&&L.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${w.voId}/groups/${w.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.routePolicyService.canNavigate("groups-roles",w)&&L.push({label:"MENU_ITEMS.GROUP.ROLES",url:[`/organizations/${w.voId}/groups/${w.id}/roles`],activatedRegex:"/organizations/\\d+/groups/\\d+/roles"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(w.id,m.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{O.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${w.voId}/groups/${w.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},q=>{"PrivilegeException"!==q.name&&this.notificator.showRPCError(q)}),this.routePolicyService.canNavigate("groups-settings-managers",w)&&O.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${w.voId}/groups/${w.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),"members"!==w.name&&this.routePolicyService.canNavigate("groups-settings-applicationForm",w)&&O.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${w.voId}/groups/${w.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("groups-settings-notifications",w)&&O.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${w.voId}/groups/${w.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("groups-settings-relations",w)&&O.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${w.voId}/groups/${w.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.routePolicyService.canNavigate("groups-settings-extsources",w)&&O.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${w.voId}/groups/${w.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==O.length&&L.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${w.voId}/groups/${w.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:O,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),L}getResourceLinks(w,L,O){const q=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[w],activatedRegex:`${L}/\\d+/resources/\\d+$`}];if(this.routePolicyService.canNavigate("resources-groups",O)&&q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[w,"groups"],activatedRegex:`${L}/\\d+/resources/\\d+/groups$`}),this.routePolicyService.canNavigate("resources-services",O)&&q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[w,"services"],activatedRegex:`${L}/\\d+/resources/\\d+/services$`}),this.routePolicyService.canNavigate("resources-members",O)&&q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[w,"members"],activatedRegex:`${L}/\\d+/resources/\\d+/members$`}),this.routePolicyService.canNavigate("resources-tags",O)&&q.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[w,"tags"],activatedRegex:`${L}/\\d+/resources/\\d+/tags$`}),this.routePolicyService.canNavigate("resources-attributes",O)&&q.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[w,"attributes"],activatedRegex:`${L}/\\d+/resources/\\d+/attributes$`}),this.routePolicyService.canNavigate("resources-settings",O)){const ee=[];this.routePolicyService.canNavigate("resources-settings-managers",O)&&ee.push({label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[w,"settings","managers"],activatedRegex:`${L}/\\d+/resources/\\d+/settings/managers$`}),this.routePolicyService.canNavigate("resources-settings-bans",O)&&ee.push({label:"MENU_ITEMS.RESOURCE.BANS",url:[w,"settings","bans"],activatedRegex:`${L}/\\d+/resources/\\d+/settings/bans`}),q.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[w,"settings"],activatedRegex:`${L}/\\d+/resources/\\d+/settings$`,children:ee,showChildrenRegex:`${L}/\\d+/resources/\\d+/settings`})}return q}}return R.\u0275fac=function(w){return new(w||R)(b.LFG(D.sK),b.LFG(e.x4),b.LFG(e.d6),b.LFG(e.F5),b.LFG(A.H8),b.LFG(e.V6),b.LFG(e.x4),b.LFG(e.Ip))},R.\u0275prov=b.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})()},73228:(Xe,ue,p)=>{"use strict";p.d(ue,{V:()=>z});var e=p(72077),A=p(69024),C=p(81591),M=p(36769),m=p(94650),b=p(77968);function D(ie,Te){if(1&ie&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",10),m.qZA()),2&ie){const pe=Te.$implicit,Le=Te.index,T=m.oxw();m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",Le)("item",pe)("sideNav",T.sideNav)}}function v(ie,Te){if(1&ie&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",11),m.qZA()),2&ie){const pe=Te.$implicit,Le=Te.index,T=m.oxw();m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",Le)("item",pe)("showLinks",Le===T.accessItems.length-1)("sideNav",T.sideNav)}}function R(ie,Te){if(1&ie&&m._UZ(0,"app-side-menu-root-item",12),2&ie){const pe=m.oxw();m.Q6J("id","facilities-item-btn")("item",pe.facilityItem)("sideNav",pe.sideNav)}}function B(ie,Te){if(1&ie&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",11),m.qZA()),2&ie){const pe=Te.$implicit,Le=Te.index,T=m.oxw(2);m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",Le)("item",pe)("showLinks",Le===T.facilityItems.length-1)("sideNav",T.sideNav)}}function w(ie,Te){if(1&ie&&(m.TgZ(0,"div"),m.YNc(1,B,2,5,"div",3),m.qZA()),2&ie){const pe=m.oxw();m.xp6(1),m.Q6J("ngForOf",pe.facilityItems)}}function L(ie,Te){if(1&ie&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",11),m.qZA()),2&ie){const pe=Te.$implicit,Le=Te.index,T=m.oxw();m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",Le)("item",pe)("showLinks",Le===T.userItems.length-1)("sideNav",T.sideNav)}}function O(ie,Te){if(1&ie&&m._UZ(0,"app-side-menu-root-item",13),2&ie){const pe=m.oxw();m.Q6J("id","admin-item-btn")("item",pe.adminItem)("showOpen",pe.adminItemOpened)("sideNav",pe.sideNav)}}function q(ie,Te){if(1&ie&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",11),m.qZA()),2&ie){const pe=Te.$implicit,Le=Te.index,T=m.oxw(2);m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",Le)("item",pe)("showLinks",!0)("sideNav",T.sideNav)}}function ee(ie,Te){if(1&ie&&(m.TgZ(0,"div"),m.YNc(1,q,2,5,"div",3),m.qZA()),2&ie){const pe=m.oxw();m.xp6(1),m.Q6J("ngForOf",pe.adminItems)}}let z=(()=>{class ie{constructor(pe,Le,T){this.sideMenuService=pe,this.sideMenuItemService=Le,this.authResolver=T,this.accessItems=[],this.facilityItems=[],this.adminItems=[],this.homeItems=[],this.userItems=[],this.accessItem=this.sideMenuItemService.getAccessManagementItem(),this.adminItem=this.sideMenuItemService.getAdminItem(),this.facilityItem=this.sideMenuItemService.getFacilitiesManagementItem(),this.homeItem=this.sideMenuItemService.getHomeItem(),this.userItem=this.sideMenuItemService.getUserItem(),this.mobileView=!0,this.adminItemOpened=!1,this.userItemOpened=!1}static areSameItems(pe,Le){return pe.label===Le.label&&pe.labelClass===Le.labelClass}static areSameLinks(pe,Le){if(pe.links.length!==Le.links.length)return!1;for(let T=0;TLe.length?pe.length:Le.length;for(let W=0;Wpe.length-1)pe.push(Le[W]);else{if(W>Le.length-1){const F=pe.length;for(let V=0;V{this.setFacilityItems(pe)}),this.sideMenuService.accessItemsChange.subscribe(pe=>{this.setAccessItems(pe)}),this.sideMenuService.adminItemsChange.subscribe(pe=>{this.setAdminItems(pe)}),this.sideMenuService.userItemsChange.subscribe(pe=>{this.setUserItems(pe)}),this.sideMenuService.homeItemsChange.subscribe(pe=>{this.setHomeItems(pe)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,ie.setNewItems(this.homeItems,[]),ie.setNewItems(this.adminItems,[]),ie.setNewItems(this.accessItems,[]),ie.setNewItems(this.facilityItems,[]),ie.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,ie.setNewItems(this.adminItems,[]),ie.setNewItems(this.accessItems,[]),ie.setNewItems(this.facilityItems,[]),ie.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,ie.setNewItems(this.homeItems,[]),ie.setNewItems(this.adminItems,[]),ie.setNewItems(this.accessItems,[]),ie.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,ie.setNewItems(this.homeItems,[]),ie.setNewItems(this.adminItems,[]),ie.setNewItems(this.facilityItems,[]),ie.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,ie.setNewItems(this.homeItems,[]),ie.setNewItems(this.accessItems,[]),ie.setNewItems(this.facilityItems,[]),ie.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,ie.setNewItems(this.accessItems,[]),ie.setNewItems(this.facilityItems,[]),ie.setNewItems(this.adminItems,[])}setHomeItems(pe){this.resetExceptHome(),ie.setNewItems(this.homeItems,pe)}setFacilityItems(pe){this.resetExceptFacility(),ie.setNewItems(this.facilityItems,pe)}setAccessItems(pe){this.resetExceptAccess(),ie.setNewItems(this.accessItems,pe)}setUserItems(pe){this.userItemOpened=0===pe.length,this.resetExceptUser(),ie.setNewItems(this.userItems,pe)}setAdminItems(pe){this.adminItemOpened=0===pe.length,this.resetExceptAdmin(),ie.setNewItems(this.adminItems,pe)}}return ie.\u0275fac=function(pe){return new(pe||ie)(m.Y36(b.D),m.Y36(A.V),m.Y36(C.x4))},ie.\u0275cmp=m.Xpm({type:ie,selectors:[["app-side-menu"]],inputs:{sideNav:"sideNav"},decls:13,vars:17,consts:[["id","sideMenuSpacer"],["id","sideMenuAccordion",1,"accordion","entity-menu-accordion"],[3,"id","item","sideNav"],["class","overflow-hidden",4,"ngFor","ngForOf"],["data-cy","access-item-button",3,"item","id","sideNav"],["data-cy","facilities-button",3,"id","item","sideNav",4,"ngIf"],[4,"ngIf"],[3,"id","item","showOpen","sideNav"],["data-cy","admin-button",3,"id","item","showOpen","sideNav",4,"ngIf"],[1,"overflow-hidden"],[3,"index","item","sideNav"],[3,"index","item","showLinks","sideNav"],["data-cy","facilities-button",3,"id","item","sideNav"],["data-cy","admin-button",3,"id","item","showOpen","sideNav"]],template:function(pe,Le){1&pe&&(m.TgZ(0,"div",0)(1,"div",1),m._UZ(2,"app-side-menu-root-item",2),m.YNc(3,D,2,4,"div",3),m._UZ(4,"app-side-menu-root-item",4),m.TgZ(5,"div"),m.YNc(6,v,2,5,"div",3),m.qZA(),m.YNc(7,R,1,3,"app-side-menu-root-item",5),m.YNc(8,w,2,1,"div",6),m._UZ(9,"app-side-menu-root-item",7),m.YNc(10,L,2,5,"div",3),m.YNc(11,O,1,4,"app-side-menu-root-item",8),m.YNc(12,ee,2,1,"div",6),m.qZA()()),2&pe&&(m.xp6(2),m.Q6J("id","home-item-btn")("item",Le.homeItem)("sideNav",Le.sideNav),m.xp6(1),m.Q6J("ngForOf",Le.homeItems),m.xp6(1),m.Q6J("item",Le.accessItem)("id","access-item-btn")("sideNav",Le.sideNav),m.xp6(2),m.Q6J("ngForOf",Le.accessItems),m.xp6(1),m.Q6J("ngIf",Le.authResolver.canManageFacilities()),m.xp6(1),m.Q6J("ngIf",Le.authResolver.canManageFacilities()),m.xp6(1),m.Q6J("id","profile-item-btn")("item",Le.userItem)("showOpen",Le.userItemOpened)("sideNav",Le.sideNav),m.xp6(1),m.Q6J("ngForOf",Le.userItems),m.xp6(1),m.Q6J("ngIf",Le.authResolver.isPerunAdminOrObserver()),m.xp6(1),m.Q6J("ngIf",Le.authResolver.isPerunAdminOrObserver()))},styles:[".entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-accordion[_ngcontent-%COMP%]{background-color:#f4f4f4}#sideMenuAccordion[_ngcontent-%COMP%]{width:300px}#sideMenuSpacer[_ngcontent-%COMP%]{height:100%}"],data:{animation:[M.Ly]}}),ie})()},86511:(Xe,ue,p)=>{"use strict";p.d(ue,{A:()=>M});var e=p(81591),A=p(94650),C=p(89383);let M=(()=>{class m{constructor(D,v){this.notificator=D,this.translate=v}setDialogRef(D){this.dialogRef=D}setType(D){this.entityType=D}getType(){return this.entityType}createCandidate(D){return{userExtSource:D.userExtSource,additionalUserExtSources:D.additionalUserExtSources,attributes:D.attributes,firstName:D.firstName,lastName:D.lastName,middleName:D.middleName,titleBefore:D.titleBefore,titleAfter:D.titleAfter,id:D.id}}getFormattedGroup(D){return{id:D.id,beanName:D.beanName,name:D.name,voId:D.voId}}success(D){this.notificator.showSuccess(this.translate.instant(D)),this.dialogRef.close(!0)}getCandidateWithError(D,v){if("MfaPrivilegeException"===String(v.type))return null;{const R=v.message.split(":").splice(1).join();return{candidate:D,errorName:v.name,errorMsg:R}}}}return m.\u0275fac=function(D){return new(D||m)(A.LFG(e.V6),A.LFG(C.sK))},m.\u0275prov=A.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},157:(Xe,ue,p)=>{"use strict";p.d(ue,{b:()=>He});var e=p(94650),A=p(73555),C=p(65412),M=p(4859),m=p(89383);let b=(()=>{class Oe{constructor(re){this.dialogRef=re}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return Oe.\u0275fac=function(re){return new(re||Oe)(e.Y36(C.so))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["app-delete-application-form-item-dialog"]],decls:20,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"pb-2","font-weight-bold"],[1,"pb-4","pt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-application-form-item-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(re,we){1&re&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"div",2),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"div",3),e._uU(11),e.ALo(12,"translate"),e.qZA()(),e.TgZ(13,"div",4)(14,"button",5),e.NdJ("click",function(){return we.onCancel()}),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"button",6),e.NdJ("click",function(){return we.submit()}),e._uU(18),e.ALo(19,"translate"),e.qZA()()),2&re&&(e.xp6(1),e.Oqu(e.lcZ(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")," "),e.xp6(3),e.Oqu(e.lcZ(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),e.xp6(3),e.Oqu(e.lcZ(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),e.xp6(4),e.hij(" ",e.lcZ(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),e.xp6(3),e.hij(" ",e.lcZ(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},dependencies:[M.lW,C.uh,C.xY,C.H8,m.X$]}),Oe})();var D=p(81591),v=p(83491),R=p(9244),B=p(94364),w=p(36895),L=p(24006),O=p(97392),q=p(30671),ee=p(51572),z=p(10266),ie=p(98380),Te=p(21963),pe=p(28820),Le=p(57706),T=p(30076),W=p(64597);const F=["table"];function V(Oe,Re){1&Oe&&e._UZ(0,"mat-spinner",3)}function te(Oe,Re){1&Oe&&e._UZ(0,"th",24)}function Q(Oe,Re){if(1&Oe){const re=e.EpF();e.TgZ(0,"td",25)(1,"button",26),e.NdJ("mousedown",function(){e.CHM(re);const st=e.oxw(2);return e.KtG(st.dragDisabled=!1)}),e.TgZ(2,"mat-icon"),e._uU(3,"drag_indicator"),e.qZA()()()}}function Ee(Oe,Re){1&Oe&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")," "))}function ge(Oe,Re){if(1&Oe&&(e.TgZ(0,"td",25),e.ALo(1,"multiWordDataCy"),e._uU(2),e.qZA()),2&Oe){const re=Re.$implicit;e.Q2q("data-cy","",e.lcZ(1,3,re.shortname),"-shortname-td"),e.xp6(2),e.AsE(" ",re.shortname,"",re.required?"*":""," ")}}function ve(Oe,Re){1&Oe&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")," "))}function De(Oe,Re){if(1&Oe&&(e.TgZ(0,"td",25),e._uU(1),e.ALo(2,"applicationFormItemType"),e.qZA()),2&Oe){const re=Re.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,re.type)," ")}}function he(Oe,Re){1&Oe&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")," "))}function Ye(Oe,Re){if(1&Oe&&(e.TgZ(0,"div")(1,"mat-icon",30),e._uU(2,"lock "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Oe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",we.disabledTooltip(re)),e.xp6(3),e.hij(" ",we.disabledHiddenDependency(re,re.disabled,re.disabledDependencyItemId)," ")}}function Be(Oe,Re){if(1&Oe&&(e.TgZ(0,"td",28),e.YNc(1,Ye,5,2,"div",29),e.qZA()),2&Oe){const re=Re.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==re.disabled)}}function se(Oe,Re){1&Oe&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")," "))}function le(Oe,Re){if(1&Oe&&(e.TgZ(0,"div")(1,"mat-icon",30),e._uU(2,"visibility_off "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Oe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",we.hiddenTooltip(re)),e.xp6(3),e.hij(" ",we.disabledHiddenDependency(re,re.hidden,re.hiddenDependencyItemId)," ")}}function k(Oe,Re){if(1&Oe&&(e.TgZ(0,"td",28),e.YNc(1,le,5,2,"div",29),e.qZA()),2&Oe){const re=Re.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==re.hidden)}}function N(Oe,Re){1&Oe&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")," "))}function be(Oe,Re){1&Oe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",31),e.qZA()())}function Z(Oe,Re){1&Oe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",32)(3,"br")(4,"input",31),e.qZA()())}function de(Oe,Re){if(1&Oe&&(e.TgZ(0,"div"),e._UZ(1,"input",35),e._uU(2),e._UZ(3,"br"),e.qZA()),2&Oe){const re=Re.$implicit;e.xp6(2),e.hij(" ",re,"")}}function xe(Oe,Re){if(1&Oe&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,de,4,1,"div",33),e._UZ(3,"input",34),e.ALo(4,"translate"),e.qZA()()),2&Oe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",we.getLocalizedOptions(re)),e.xp6(1),e.s9C("value",e.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function ot(Oe,Re){if(1&Oe&&(e.TgZ(0,"div"),e._UZ(1,"span",36),e.qZA()),2&Oe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",we.getLocalizedLabel(re),e.oJD)}}function Fe(Oe,Re){if(1&Oe&&(e.TgZ(0,"div"),e._UZ(1,"span",36),e.ALo(2,"sanitizeHtml"),e.qZA()),2&Oe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",e.lcZ(2,1,we.getLocalizedLabel(re)),e.oJD)}}function ut(Oe,Re){if(1&Oe&&(e.TgZ(0,"option"),e._uU(1),e.qZA()),2&Oe){const re=Re.$implicit;e.xp6(1),e.hij(" ",re," ")}}function tt(Oe,Re){if(1&Oe&&(e.TgZ(0,"div")(1,"select"),e.YNc(2,ut,2,1,"option",33),e.qZA()()),2&Oe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",we.getLocalizedOptions(re))}}function vt(Oe,Re){1&Oe&&(e.TgZ(0,"div"),e._UZ(1,"textarea"),e.qZA())}function X(Oe,Re){if(1&Oe&&(e.TgZ(0,"option",40),e._uU(1),e.qZA()),2&Oe){const re=Re.$implicit;e.xp6(1),e.hij(" ",re," ")}}function nt(Oe,Re){1&Oe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",31),e.qZA()())}function Ae(Oe,Re){if(1&Oe){const re=e.EpF();e.TgZ(0,"div")(1,"select",37),e.NdJ("ngModelChange",function(st){e.CHM(re);const Ke=e.oxw().$implicit,Et=e.oxw(2);return e.KtG(Et.mapForCombobox[Ke.id]=st)}),e.YNc(2,X,2,1,"option",38),e.TgZ(3,"option",39),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.YNc(6,nt,3,0,"div",29),e.qZA()}if(2&Oe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(1),e.Q6J("ngModel",we.mapForCombobox[re.id]),e.xp6(1),e.Q6J("ngForOf",we.getLocalizedOptions(re)),e.xp6(2),e.hij(" ",e.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),e.xp6(2),e.Q6J("ngIf","true"===we.mapForCombobox[re.id])}}function ye(Oe,Re){if(1&Oe&&(e.TgZ(0,"div"),e._UZ(1,"input",41),e._uU(2),e.qZA()),2&Oe){const re=Re.$implicit;e.xp6(2),e.hij(" ",re," ")}}function _e(Oe,Re){if(1&Oe&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,ye,3,1,"div",33),e.qZA()()),2&Oe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",we.getLocalizedOptions(re))}}function Se(Oe,Re){if(1&Oe&&(e.TgZ(0,"div")(1,"button",42),e._uU(2),e.qZA()()),2&Oe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(2),e.hij(" ",we.getLocalizedLabel(re)," ")}}function Ne(Oe,Re){1&Oe&&(e.TgZ(0,"div")(1,"select",43)(2,"option",44),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"option",45),e._uU(6,"(GMT -12:00) Eniwetok, Kwajalein"),e.qZA(),e.TgZ(7,"option",46),e._uU(8,"(GMT -11:00) Midway Island, Samoa"),e.qZA(),e.TgZ(9,"option",47),e._uU(10,"(GMT -10:00) Hawaii"),e.qZA(),e.TgZ(11,"option",48),e._uU(12,"(GMT -9:30) Taiohae"),e.qZA(),e.TgZ(13,"option",49),e._uU(14,"(GMT -9:00) Alaska"),e.qZA(),e.TgZ(15,"option",50),e._uU(16,"(GMT -8:00) Pacific Time (US & Canada)"),e.qZA(),e.TgZ(17,"option",51),e._uU(18,"(GMT -7:00) Mountain Time (US & Canada)"),e.qZA(),e.TgZ(19,"option",52),e._uU(20," (GMT -6:00) Central Time (US & Canada), Mexico City "),e.qZA(),e.TgZ(21,"option",53),e._uU(22," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),e.qZA(),e.TgZ(23,"option",54),e._uU(24,"(GMT -4:30) Caracas"),e.qZA(),e.TgZ(25,"option",55),e._uU(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),e.qZA(),e.TgZ(27,"option",56),e._uU(28,"(GMT -3:30) Newfoundland"),e.qZA(),e.TgZ(29,"option",57),e._uU(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),e.qZA(),e.TgZ(31,"option",58),e._uU(32,"(GMT -2:00) Mid-Atlantic"),e.qZA(),e.TgZ(33,"option",59),e._uU(34,"(GMT -1:00) Azores, Cape Verde Islands"),e.qZA(),e.TgZ(35,"option",60),e._uU(36," (GMT) Western Europe Time, London, Lisbon, Casablanca "),e.qZA(),e.TgZ(37,"option",61),e._uU(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),e.qZA(),e.TgZ(39,"option",62),e._uU(40,"(GMT +2:00) Kaliningrad, South Africa"),e.qZA(),e.TgZ(41,"option",63),e._uU(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),e.qZA(),e.TgZ(43,"option",64),e._uU(44,"(GMT +3:30) Tehran"),e.qZA(),e.TgZ(45,"option",65),e._uU(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),e.qZA(),e.TgZ(47,"option",66),e._uU(48,"(GMT +4:30) Kabul"),e.qZA(),e.TgZ(49,"option",67),e._uU(50," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),e.qZA(),e.TgZ(51,"option",68),e._uU(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),e.qZA(),e.TgZ(53,"option",69),e._uU(54,"(GMT +5:45) Kathmandu, Pokhara"),e.qZA(),e.TgZ(55,"option",70),e._uU(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),e.qZA(),e.TgZ(57,"option",71),e._uU(58,"(GMT +6:30) Yangon, Mandalay"),e.qZA(),e.TgZ(59,"option",72),e._uU(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),e.qZA(),e.TgZ(61,"option",73),e._uU(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),e.qZA(),e.TgZ(63,"option",74),e._uU(64,"(GMT +8:45) Eucla"),e.qZA(),e.TgZ(65,"option",75),e._uU(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),e.qZA(),e.TgZ(67,"option",76),e._uU(68,"(GMT +9:30) Adelaide, Darwin"),e.qZA(),e.TgZ(69,"option",77),e._uU(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),e.qZA(),e.TgZ(71,"option",78),e._uU(72,"(GMT +10:30) Lord Howe Island"),e.qZA(),e.TgZ(73,"option",79),e._uU(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),e.qZA(),e.TgZ(75,"option",80),e._uU(76,"(GMT +11:30) Norfolk Island"),e.qZA(),e.TgZ(77,"option",81),e._uU(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),e.qZA(),e.TgZ(79,"option",82),e._uU(80,"(GMT +12:45) Chatham Islands"),e.qZA(),e.TgZ(81,"option",83),e._uU(82,"(GMT +13:00) Apia, Nukualofa"),e.qZA(),e.TgZ(83,"option",84),e._uU(84,"(GMT +14:00) Line Islands, Tokelau"),e.qZA()()()),2&Oe&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "))}function Ce(Oe,Re){if(1&Oe&&(e.TgZ(0,"div")(1,"button",42),e._uU(2),e.qZA()()),2&Oe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(2),e.hij(" ",we.getLocalizedLabel(re)," ")}}function fe(Oe,Re){1&Oe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",41),e._uU(3," example group1 "),e._UZ(4,"br")(5,"input",41),e._uU(6," example group2 "),e._UZ(7,"br")(8,"input",41),e._uU(9," example group3 "),e.qZA()())}const r=function(){return["Example 1","Example 2"]},u=function(Oe){return{id:0,beanName:"Attribute",namespace:"",value:Oe}};function _(Oe,Re){1&Oe&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-list",85),e.qZA()),2&Oe&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,u,e.DdM(1,r))))}const E=function(){return{key1:"value 1",key2:"value 2"}};function h(Oe,Re){1&Oe&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-map",85),e.qZA()),2&Oe&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,u,e.DdM(1,E))))}function a(Oe,Re){if(1&Oe&&(e.TgZ(0,"td",25),e.YNc(1,be,3,0,"div",29),e.YNc(2,Z,5,0,"div",29),e.YNc(3,xe,5,4,"div",29),e.YNc(4,ot,2,1,"div",29),e.YNc(5,Fe,3,3,"div",29),e.YNc(6,tt,3,1,"div",29),e.YNc(7,vt,2,0,"div",29),e.YNc(8,Ae,7,6,"div",29),e.YNc(9,_e,3,1,"div",29),e.YNc(10,Se,3,1,"div",29),e.YNc(11,Ne,85,3,"div",29),e.YNc(12,Ce,3,1,"div",29),e.YNc(13,fe,10,0,"div",29),e.YNc(14,_,2,4,"div",29),e.YNc(15,h,2,4,"div",29),e.qZA()),2&Oe){const re=Re.$implicit;e.xp6(1),e.Q6J("ngIf","TEXTFIELD"===re.type||"VALIDATED_EMAIL"===re.type||"USERNAME"===re.type),e.xp6(1),e.Q6J("ngIf","PASSWORD"===re.type),e.xp6(1),e.Q6J("ngIf","RADIO"===re.type),e.xp6(1),e.Q6J("ngIf","HEADING"===re.type),e.xp6(1),e.Q6J("ngIf","HTML_COMMENT"===re.type),e.xp6(1),e.Q6J("ngIf","SELECTIONBOX"===re.type),e.xp6(1),e.Q6J("ngIf","TEXTAREA"===re.type),e.xp6(1),e.Q6J("ngIf","COMBOBOX"===re.type),e.xp6(1),e.Q6J("ngIf","CHECKBOX"===re.type),e.xp6(1),e.Q6J("ngIf","SUBMIT_BUTTON"===re.type),e.xp6(1),e.Q6J("ngIf","TIMEZONE"===re.type),e.xp6(1),e.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===re.type),e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===re.type),e.xp6(1),e.Q6J("ngIf","LIST_INPUT_BOX"===re.type),e.xp6(1),e.Q6J("ngIf","MAP_INPUT_BOX"===re.type)}}function i(Oe,Re){1&Oe&&e._UZ(0,"th",24)}function t(Oe,Re){if(1&Oe){const re=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(re);const st=e.oxw(3);return e.KtG(st.openManagingGroups())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"supervised_user_circle"),e.qZA()()}2&Oe&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function n(Oe,Re){if(1&Oe&&(e.TgZ(0,"td",25),e.YNc(1,t,4,3,"button",86),e.qZA()),2&Oe){const re=Re.$implicit;e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===re.type&&!re.forDelete)}}function o(Oe,Re){1&Oe&&e._UZ(0,"th",24)}function s(Oe,Re){if(1&Oe){const re=e.EpF();e.TgZ(0,"button",90),e.NdJ("click",function(){e.CHM(re);const st=e.oxw().$implicit,Ke=e.oxw(2);return e.KtG(Ke.edit(st))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"edit"),e.qZA()()}2&Oe&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function l(Oe,Re){1&Oe&&(e.TgZ(0,"div",91),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function d(Oe,Re){if(1&Oe&&(e.TgZ(0,"td",25),e.YNc(1,s,4,3,"button",88),e.YNc(2,l,3,3,"div",89),e.qZA()),2&Oe){const re=Re.$implicit;e.xp6(1),e.Q6J("ngIf",!re.forDelete),e.xp6(1),e.Q6J("ngIf",re.forDelete)}}function c(Oe,Re){1&Oe&&e._UZ(0,"th",24)}function S(Oe,Re){if(1&Oe){const re=e.EpF();e.TgZ(0,"button",93),e.NdJ("click",function(){e.CHM(re);const st=e.oxw().$implicit,Ke=e.oxw(2);return e.KtG(Ke.delete(st))}),e.ALo(1,"multiWordDataCy"),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4,"delete"),e.qZA()()}if(2&Oe){const re=e.oxw().$implicit;e.Q2q("data-cy","",e.lcZ(1,2,re.shortname),"-delete"),e.s9C("matTooltip",e.lcZ(2,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}}function J(Oe,Re){if(1&Oe){const re=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(re);const st=e.oxw().$implicit,Ke=e.oxw(2);return e.KtG(Ke.restore(st))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"settings_backup_restore"),e.qZA()()}2&Oe&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function ht(Oe,Re){if(1&Oe&&(e.TgZ(0,"td",25),e.YNc(1,S,5,6,"button",92),e.YNc(2,J,4,3,"button",86),e.qZA()),2&Oe){const re=Re.$implicit;e.xp6(1),e.Q6J("ngIf",!re.forDelete),e.xp6(1),e.Q6J("ngIf",re.forDelete)}}function We(Oe,Re){1&Oe&&e._UZ(0,"tr",94)}function et(Oe,Re){if(1&Oe&&e._UZ(0,"tr",95),2&Oe){const re=Re.$implicit,we=e.oxw(2);e.ekj("make-green",re.id<=0)("make-red",re.forDelete)("make-yellow",-1!==we.itemsChanged.indexOf(re.id)&&!re.forDelete&&re.id>0),e.Q6J("cdkDragData",re)}}function ne(Oe,Re){if(1&Oe){const re=e.EpF();e.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"table",7,8),e.NdJ("cdkDropListDropped",function(st){e.CHM(re);const Ke=e.oxw();return e.KtG(Ke.drop(st))}),e.ynx(5,9),e.YNc(6,te,1,0,"th",10),e.YNc(7,Q,4,0,"td",11),e.BQk(),e.ynx(8,12),e.YNc(9,Ee,3,3,"th",10),e.YNc(10,ge,3,5,"td",11),e.BQk(),e.ynx(11,13),e.YNc(12,ve,3,3,"th",10),e.YNc(13,De,3,3,"td",11),e.BQk(),e.ynx(14,14),e.YNc(15,he,3,3,"th",15),e.YNc(16,Be,2,1,"td",16),e.BQk(),e.ynx(17,17),e.YNc(18,se,3,3,"th",15),e.YNc(19,k,2,1,"td",16),e.BQk(),e.ynx(20,18),e.YNc(21,N,3,3,"th",10),e.YNc(22,a,16,15,"td",11),e.BQk(),e.ynx(23,19),e.YNc(24,i,1,0,"th",10),e.YNc(25,n,2,1,"td",11),e.BQk(),e.ynx(26,20),e.YNc(27,o,1,0,"th",10),e.YNc(28,d,3,2,"td",11),e.BQk(),e.ynx(29,21),e.YNc(30,c,1,0,"th",10),e.YNc(31,ht,3,2,"td",11),e.BQk(),e.YNc(32,We,1,0,"tr",22),e.YNc(33,et,1,7,"tr",23),e.qZA()()()()}if(2&Oe){const re=e.oxw();e.xp6(3),e.Q6J("cdkDropListDisabled",re.dragDisabled)("dataSource",re.dataSource),e.xp6(29),e.Q6J("matHeaderRowDef",re.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",re.displayedColumns)}}function Ue(Oe,Re){1&Oe&&(e.TgZ(0,"perun-web-apps-alert",96),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let He=(()=>{class Oe{constructor(re,we,st,Ke){this.dialog=re,this.notificator=we,this.router=st,this.translate=Ke,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new e.vpe,this.itemsChanged=[],this.dataSource=this.applicationFormItems,this.mapForCombobox=new Map,this.dragDisabled=!0}ngOnInit(){this.ifEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_EMPTY"),this.ifPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_PREFILLED"),this.alwaysDisabled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED_HINT"),this.alwaysHidden=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN_HINT"),this.isDisabledIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.DISABLED_IF_HINT"),this.isHiddenIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.HIDDEN_IF_HINT"),this.isEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_EMPTY_HINT"),this.isPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_PREFILLED_HINT")}ngOnChanges(){this.dataSource=this.applicationFormItems,this.refreshApplicationForm&&(this.itemsChanged=[])}disabledHiddenDependency(re,we,st){let Ke="";if("IF_EMPTY"===we||"IF_PREFILLED"===we){const Et=null===st?"":this.applicationFormItems.find(ke=>ke.id===st).shortname;Ke="IF_EMPTY"===we?`(${this.ifEmpty} ${Et})`:`(${this.ifPrefilled} ${Et})`}return Ke}disabledTooltip(re){let we;switch(re.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return we=null===re.disabledDependencyItemId?"":this.applicationFormItems.find(st=>st.id===re.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${we} ${this.isEmpty}`;case"IF_PREFILLED":return we=null===re.disabledDependencyItemId?"":this.applicationFormItems.find(st=>st.id===re.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${we} ${this.isPrefilled}`}}hiddenTooltip(re){let we;switch(re.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return we=null===re.hiddenDependencyItemId?"":this.applicationFormItems.find(st=>st.id===re.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${we} ${this.isEmpty}`;case"IF_PREFILLED":return we=null===re.hiddenDependencyItemId?"":this.applicationFormItems.find(st=>st.id===re.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${we} ${this.isPrefilled}`}}edit(re){const we=(0,R.kZ)();we.width="600px",we.height="600px",we.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:re,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(v._,we).afterClosed().subscribe(Ke=>{Ke&&(this.itemsChanged.push(re.id),this.applicationFormItemsChange.emit())})}delete(re){const we=(0,R.kZ)();we.width="500px",this.dialog.open(b,we).afterClosed().subscribe(Ke=>{Ke&&(re.forDelete=!0,0===re.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(re),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(re){this.dragDisabled=!0;const we=this.applicationFormItems.indexOf(re.item.data);(0,A.bA)(this.applicationFormItems,we,re.currentIndex),this.itemsChanged.push(this.applicationFormItems[re.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(re){if(re.i18n[this.translate.getDefaultLang()]){const we=re.i18n[this.translate.getDefaultLang()].options;if(null!==we&&""!==we){const st=[];for(const Ke of we.split("|"))st.push(Ke.split("#")[1]);return st}}return[]}getLocalizedLabel(re){return re.i18n[this.translate.getDefaultLang()]?re.i18n[this.translate.getDefaultLang()].label:re.shortname}restore(re){re.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"],{queryParamsHandling:"preserve"})}}return Oe.\u0275fac=function(re){return new(re||Oe)(e.Y36(C.uw),e.Y36(D.V6),e.Y36(B.F0),e.Y36(m.sK))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["app-application-form-list"]],viewQuery:function(re,we){if(1&re&&e.Gf(F,5),2&re){let st;e.iGM(st=e.CRH())&&(we.table=st.first)}},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns",refreshApplicationForm:"refreshApplicationForm"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[e.TTD],decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"card","mt-2"],[1,"card-body","table-theme"],[1,"overflow-auto"],["cdkDropList","","cdkDropListData","dataSource","mat-table","",1,"w-100",3,"cdkDropListDisabled","dataSource","cdkDropListDropped"],["table",""],["matColumnDef","drag"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortname"],["matColumnDef","type"],["matColumnDef","disabled"],["class","center","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","hidden"],["matColumnDef","preview"],["matColumnDef","managegroups"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["cdkDrag","","mat-row","",3,"cdkDragData","make-green","make-red","make-yellow",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"mousedown"],["mat-header-cell","",1,"center"],["mat-cell","",1,"center"],[4,"ngIf"],[1,"pointer",3,"matTooltip"],["type","text"],["type","text",1,"mb-1"],[4,"ngFor","ngForOf"],["type","reset",3,"value"],["name","temp","type","radio"],[3,"innerHTML"],[3,"ngModel","ngModelChange"],["selected","","value","false",4,"ngFor","ngForOf"],["value","true"],["selected","","value","false"],["type","checkbox"],["color","accent","mat-flat-button",""],["id","timezone-offset","name","timezone_offset",1,"span5"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["class","ml-auto","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["class","font-weight-bold",4,"ngIf"],["mat-icon-button","",1,"ml-auto",3,"matTooltip","click"],[1,"font-weight-bold"],["color","warn","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["color","warn","mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["cdkDrag","","mat-row","",3,"cdkDragData"],["alert_type","warn"]],template:function(re,we){1&re&&(e.YNc(0,V,1,0,"mat-spinner",0),e.YNc(1,ne,34,4,"div",1),e.YNc(2,Ue,3,3,"perun-web-apps-alert",2)),2&re&&(e.Q6J("ngIf",we.loading),e.xp6(1),e.Q6J("ngIf",0!==we.applicationFormItems.length&&!we.loading),e.xp6(1),e.Q6J("ngIf",0===we.applicationFormItems.length&&!we.loading))},dependencies:[w.sg,w.O5,L._Y,L.YN,L.Kr,L.EJ,L.JJ,L.JL,L.On,L.F,O.Hw,q.BZ,q.fO,q.as,q.w1,q.Dz,q.nj,q.ge,q.ev,q.XQ,q.Gk,M.lW,ee.Ou,z.gM,A.Wj,A.Zt,ie.w,Te.H,pe.$,m.X$,Le.c,T.A,W.R],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.movable-row[_ngcontent-%COMP%]{cursor:move}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.make-green[_ngcontent-%COMP%]{background-color:#c8e6c9}.make-yellow[_ngcontent-%COMP%]{background-color:#fff9c4}.center[_ngcontent-%COMP%]{text-align:center}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Oe})()},99168:(Xe,ue,p)=>{"use strict";p.d(ue,{S:()=>ht});var e=p(61744),A=p(9244),C=p(96308),M=p(81591),m=p(56451),b=p(18505),D=p(36895),v=p(21029),R=p(94650),B=p(10036),w=p(65412),L=p(94364),O=p(30671),q=p(51572),ee=p(98380),z=p(34198),ie=p(55660),Te=p(18750),pe=p(97392),Le=p(10266);function T(We,et){1&We&&(R.TgZ(0,"div")(1,"mat-icon",1),R._uU(2,"arrow_right_alt"),R.qZA()())}function W(We,et){1&We&&(R.TgZ(0,"div")(1,"mat-icon",2),R._uU(2,"restore"),R.qZA()())}function F(We,et){1&We&&(R.TgZ(0,"div")(1,"mat-icon",3),R._uU(2,"nat"),R.qZA()())}let V=(()=>{class We{}return We.\u0275fac=function(ne){return new(ne||We)},We.\u0275cmp=R.Xpm({type:We,selectors:[["app-application-type-icon"]],inputs:{applicationType:"applicationType"},decls:4,vars:3,consts:[[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"]],template:function(ne,Ue){1&ne&&(R.TgZ(0,"div"),R.YNc(1,T,3,0,"div",0),R.YNc(2,W,3,0,"div",0),R.YNc(3,F,3,0,"div",0),R.qZA()),2&ne&&(R.xp6(1),R.Q6J("ngIf","INITIAL"===Ue.applicationType),R.xp6(1),R.Q6J("ngIf","EXTENSION"===Ue.applicationType),R.xp6(1),R.Q6J("ngIf","EMBEDDED"===Ue.applicationType))},dependencies:[D.O5,pe.Hw,Le.gM]}),We})();var te=p(89383),Q=p(43157),Ee=p(31359),ge=p(64597);let ve=(()=>{class We{transform(ne,Ue,He,Oe){return Ue?null:He?["/organizations",String(ne.vo.id),"groups",String(He.id),"applications",String(ne.id)]:Oe?["/organizations",String(ne.vo.id),"members",String(Oe.id),"applications",String(ne.id)]:["/organizations",String(ne.vo.id),"applications",String(ne.id)]}}return We.\u0275fac=function(ne){return new(ne||We)},We.\u0275pipe=R.Yjl({name:"selectApplicationLink",type:We,pure:!0}),We})();function De(We,et){1&We&&(R.TgZ(0,"div",26),R._UZ(1,"mat-spinner",27),R.qZA())}function he(We,et){1&We&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&We&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.ID")," "))}function Ye(We,et){if(1&We&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&We){const ne=et.$implicit;R.xp6(1),R.Oqu(ne.id)}}function Be(We,et){1&We&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&We&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.CREATED_DATE")," "))}function se(We,et){if(1&We&&(R.TgZ(0,"td",29),R._uU(1),R.ALo(2,"date"),R.qZA()),2&We){const ne=et.$implicit;R.xp6(1),R.Oqu(R.xi3(2,1,ne.createdAt,"d.M.y"))}}function le(We,et){1&We&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&We&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.VO_ID")))}function k(We,et){if(1&We&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&We){const ne=et.$implicit;R.xp6(1),R.Oqu(ne.vo.id)}}function N(We,et){1&We&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&We&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.VO_NAME")))}function be(We,et){if(1&We&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&We){const ne=et.$implicit;R.xp6(1),R.Oqu(ne.vo.name)}}function Z(We,et){1&We&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&We&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.GROUP_ID")))}function de(We,et){if(1&We&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&We){const ne=et.$implicit;R.xp6(1),R.hij(" ",ne.group?ne.group.id:""," ")}}function xe(We,et){1&We&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&We&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.GROUP_NAME")))}function ot(We,et){if(1&We&&(R.TgZ(0,"td",29),R.ALo(1,"multiWordDataCy"),R._uU(2),R.qZA()),2&We){const ne=et.$implicit;R.Q2q("data-cy","",ne.group?ne.group.name:R.lcZ(1,2,"no-group"),"-groupname-td"),R.xp6(2),R.hij(" ",ne.group?ne.group.name:""," ")}}function Fe(We,et){1&We&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&We&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.TYPE")," "))}function ut(We,et){if(1&We&&(R.TgZ(0,"td",29),R._UZ(1,"app-application-type-icon",31),R.qZA()),2&We){const ne=et.$implicit;R.xp6(1),R.Q6J("applicationType",ne.type)}}function tt(We,et){1&We&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&We&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.STATE")," "))}function vt(We,et){if(1&We&&(R.TgZ(0,"td",29),R._UZ(1,"span",32),R.ALo(2,"applicationState"),R.qZA()),2&We){const ne=et.$implicit;R.xp6(1),R.Q6J("outerHTML",R.lcZ(2,1,ne.state),R.oJD)}}function X(We,et){1&We&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&We&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCENAME")))}function nt(We,et){if(1&We&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&We){const ne=et.$implicit;R.xp6(1),R.Oqu(ne.extSourceName)}}function Ae(We,et){1&We&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&We&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCETYPE")))}function ye(We,et){if(1&We&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&We){const ne=et.$implicit;R.xp6(1),R.Oqu(ne.extSourceType)}}function _e(We,et){1&We&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&We&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.USER")," "))}function Se(We,et){if(1&We&&(R.TgZ(0,"div"),R._uU(1),R.qZA()),2&We){const ne=R.oxw().$implicit;R.xp6(1),R.hij(" ",ne.createdBy.slice(ne.createdBy.lastIndexOf("=")+1,ne.createdBy.length)," ")}}function Ne(We,et){if(1&We&&(R._uU(0),R.ALo(1,"userFullName")),2&We){const ne=R.oxw().$implicit;R.hij(" ",R.lcZ(1,1,ne.user)," ")}}function Ce(We,et){if(1&We&&(R.TgZ(0,"td",29),R.YNc(1,Se,2,1,"div",33),R.YNc(2,Ne,2,3,"ng-template",null,34,R.W1O),R.qZA()),2&We){const ne=et.$implicit,Ue=R.MAs(3);R.xp6(1),R.Q6J("ngIf",null===ne.user)("ngIfElse",Ue)}}function fe(We,et){1&We&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&We&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.CREATED_BY")))}function r(We,et){if(1&We&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&We){const ne=et.$implicit;R.Q2q("data-cy","",ne.createdBy,"-createdBy"),R.xp6(1),R.hij(" ",ne.createdBy.slice(ne.createdBy.lastIndexOf("=")+1,ne.createdBy.length)," ")}}function u(We,et){1&We&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&We&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_BY")," "))}function _(We,et){if(1&We&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&We){const ne=et.$implicit,Ue=R.oxw();R.xp6(1),R.Oqu(Ue.getFriendlyName(ne.modifiedBy))}}function E(We,et){1&We&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&We&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_AT")))}function h(We,et){if(1&We&&(R.TgZ(0,"td",29),R._uU(1),R.ALo(2,"date"),R.qZA()),2&We){const ne=et.$implicit;R.xp6(1),R.Oqu(R.xi3(2,1,ne.modifiedAt,"d.M.y"))}}function a(We,et){1&We&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&We&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.FEDINFO")))}function i(We,et){if(1&We&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&We){const ne=et.$implicit;R.xp6(1),R.Oqu(ne.fedInfo)}}function t(We,et){if(1&We&&(R.TgZ(0,"th",30),R._uU(1),R.qZA()),2&We){const ne=R.oxw().$implicit;R.xp6(1),R.Oqu(ne)}}function n(We,et){if(1&We&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&We){const ne=et.$implicit,Ue=R.oxw().$implicit,He=R.oxw();R.xp6(1),R.hij(" ",He.getFedValue(ne.fedInfo,Ue)," ")}}function o(We,et){1&We&&(R.ynx(0,35),R.YNc(1,t,2,1,"th",9),R.YNc(2,n,2,1,"td",6),R.BQk()),2&We&&R.s9C("matColumnDef",et.$implicit)}function s(We,et){if(1&We&&(R.TgZ(0,"th",30),R._uU(1),R.qZA()),2&We){const ne=R.oxw().$implicit;R.xp6(1),R.Oqu(ne)}}function l(We,et){if(1&We&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&We){const ne=et.$implicit,Ue=R.oxw().$implicit,He=R.oxw();R.xp6(1),R.hij(" ",He.getValue(ne.formData,Ue)," ")}}function d(We,et){1&We&&(R.ynx(0,35),R.YNc(1,s,2,1,"th",9),R.YNc(2,l,2,1,"td",6),R.BQk()),2&We&&R.s9C("matColumnDef",et.$implicit)}function c(We,et){1&We&&R._UZ(0,"tr",36)}function S(We,et){if(1&We&&(R._UZ(0,"tr",37),R.ALo(1,"selectApplicationLink"),R.ALo(2,"selectApplicationLink")),2&We){const ne=et.$implicit,Ue=R.oxw();R.ekj("cursor-pointer",!Ue.disableRouting),R.Q6J("perunWebAppsMiddleClickRouterLink",R.gM2(1,4,ne,Ue.disableRouting,Ue.group,Ue.member))("routerLink",R.gM2(2,9,ne,Ue.disableRouting,Ue.group,Ue.member))}}function J(We,et){1&We&&(R.TgZ(0,"perun-web-apps-alert",38),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&We&&(R.Q6J("alert_type","warn"),R.xp6(1),R.hij(" ",R.lcZ(2,2,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}let ht=(()=>{class We{constructor(ne,Ue,He,Oe,Re){this.authResolver=ne,this.tableConfigService=Ue,this.dynamicPaginatingService=He,this.attributesManagerService=Oe,this.dialog=Re,this.displayedColumns=[],this.fedColumns=[],this.disableRouting=!1,this.searchString="",this.dateTo=new Date,this.dateFrom=this.yearAgo(),this.fedAttrNames=[],this.refreshTable=!1,this.parsedColumns=[],this.pageSizeOptions=A.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,m.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,b.b)(()=>this.loadApplicationsPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ne=>"id"!==ne)),this.dataSource=new M.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadApplications(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId()),this.dataSource.loading$.subscribe(ne=>{if(ne||!this.displayedColumns.includes("fedInfo"))return;this.displayedColumns=this.displayedColumns.filter(He=>!this.parsedColumns.includes(He)),this.parsedColumns=[];const Ue=this.dataSource.getData()[0];Ue&&this.parseColumns(Ue.formData)})}ngOnChanges(){this.refreshTable=!1,this.dataSource&&(this.child.paginator.pageIndex=0,this.loadApplicationsPage())}loadApplicationsPage(){this.dataSource.loadApplications(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0)}exportDisplayedData(ne){(0,A.O6)((0,A.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn.bind(this)),ne)}exportAllData(ne){const Ue="asc"===this.sort.direction?"ASCENDING":"DESCENDING",He=(0,A.kZ)();He.width="300px";const Oe=this.dialog.open(v.QQ,He);this.dataSource.getAllApplications(this.child.paginator.length,Ue,this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0).subscribe(Re=>{Oe.close(),(0,A.O6)((0,A.Xn)(Re,this.displayedColumns,this.getExportDataForColumn.bind(this)),ne)})}getExportDataForColumn(ne,Ue){switch(Ue){case"id":return ne.id.toString();case"voId":return ne.vo.id.toString();case"voName":return ne.vo.name;case"groupId":return ne.group?.id.toString()??"";case"groupName":return ne.group?.name??"";case"type":return ne.type;case"fedInfo":return ne.fedInfo;case"formData":return this.stringify(ne.formData);case"state":return ne.state;case"extSourceName":return ne.extSourceName;case"extSourceType":return ne.extSourceType;case"user":return ne.user?(0,A.bD)(ne.user):"";case"createdBy":return ne.createdBy;case"createdAt":return ne.createdAt;case"modifiedBy":return ne.modifiedBy;case"modifiedAt":return ne.modifiedAt;default:return ne[Ue]}}getSortDataColumn(){if(!this.sort)return e.sY.DATE_CREATED;switch(this.sort.active){case"id":return e.sY.ID;case"createdAt":default:return e.sY.DATE_CREATED;case"type":return e.sY.TYPE;case"state":return e.sY.STATE;case"user":return e.sY.SUBMITTER;case"groupName":return e.sY.GROUP_NAME;case"modifiedBy":return e.sY.MODIFIED_BY}}getFriendlyName(ne){const Ue=ne.lastIndexOf("/CN=");if(-1!==Ue){const He=ne.slice(Ue+4,ne.length).replace("/unstructuredName="," ");return-1!==He.lastIndexOf("\\")?ne.slice(ne.lastIndexOf("=")+1,ne.length):He}return ne}yearAgo(){const ne=new Date;return ne.setDate(ne.getDate()-365),ne}dateToString(ne){return(0,D.p6)(ne,"yyyy-MM-dd","en-GB")}getVoId(){return this.vo?this.vo.id:this.group?this.group.voId:this.member?this.member.voId:void 0}stringify(ne){const Ue=Oe=>Object.entries(Oe).reduce((Re,[re,we])=>Re[re]instanceof Object?Re[re]=Ue(Re[re]):(null==we||"null"===we||0===we.length||(Re[re]=we),Re),{});let He=JSON.stringify(Ue(ne));return He=He.replace("{","["),He=He.replace("}","]"),He}getFormDataString(ne){return this.stringify(ne.formItem)}parseColumns(ne){ne.forEach(Ue=>{this.displayedColumns.includes(Ue.shortname)||this.displayedColumns.push(Ue.shortname),this.parsedColumns.includes(Ue.shortname)||this.parsedColumns.push(Ue.shortname)})}getValue(ne,Ue){const He=ne.filter(Oe=>Oe.shortname===Ue);return 0===He.length?"":He[0].value??He[0].prefilledValue}getFedValue(ne,Ue){const He=new RegExp(this.fedAttrNames.map(Re=>","+Re+":").join("|"));if(null===ne||0===ne.length)return"";let Oe=[];return Oe=ne.startsWith(Ue+":")?ne.split(Ue+":"):ne.split(","+Ue+":"),Oe.length<2?"":(Oe=Oe[1].split(He),Oe[0].endsWith(",")?Oe[0].slice(0,-1):Oe[0])}}return We.\u0275fac=function(ne){return new(ne||We)(R.Y36(M.x4),R.Y36(B.dB),R.Y36(M.ly),R.Y36(e.H8),R.Y36(w.uw))},We.\u0275cmp=R.Xpm({type:We,selectors:[["app-applications-dynamic-list"]],viewQuery:function(ne,Ue){if(1&ne&&(R.Gf(A.l9,7),R.Gf(C.YE,5)),2&ne){let He;R.iGM(He=R.CRH())&&(Ue.child=He.first),R.iGM(He=R.CRH())&&(Ue.sort=He.first)}},inputs:{displayedColumns:"displayedColumns",fedColumns:"fedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",group:"group",member:"member",vo:"vo",includeGroupApps:"includeGroupApps",states:"states",dateTo:"dateTo",dateFrom:"dateFrom",fedAttrNames:"fedAttrNames",refreshTable:"refreshTable"},features:[R.TTD],decls:56,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","createdAt","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdAt"],["matColumnDef","voId"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],["matColumnDef","fedInfo"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"applicationType"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(ne,Ue){1&ne&&(R.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),R.NdJ("exportDisplayedData",function(Oe){return Ue.exportDisplayedData(Oe)})("exportAllData",function(Oe){return Ue.exportAllData(Oe)}),R.YNc(2,De,2,0,"div",2),R.ALo(3,"async"),R.TgZ(4,"table",3),R.ynx(5,4),R.YNc(6,he,3,3,"th",5),R.YNc(7,Ye,2,1,"td",6),R.BQk(),R.ynx(8,7),R.YNc(9,Be,3,3,"th",5),R.YNc(10,se,3,4,"td",6),R.BQk(),R.ynx(11,8),R.YNc(12,le,3,3,"th",9),R.YNc(13,k,2,1,"td",6),R.BQk(),R.ynx(14,10),R.YNc(15,N,3,3,"th",9),R.YNc(16,be,2,1,"td",6),R.BQk(),R.ynx(17,11),R.YNc(18,Z,3,3,"th",9),R.YNc(19,de,2,1,"td",6),R.BQk(),R.ynx(20,12),R.YNc(21,xe,3,3,"th",9),R.YNc(22,ot,3,4,"td",6),R.BQk(),R.ynx(23,13),R.YNc(24,Fe,3,3,"th",5),R.YNc(25,ut,2,1,"td",6),R.BQk(),R.ynx(26,14),R.YNc(27,tt,3,3,"th",5),R.YNc(28,vt,3,3,"td",6),R.BQk(),R.ynx(29,15),R.YNc(30,X,3,3,"th",9),R.YNc(31,nt,2,1,"td",6),R.BQk(),R.ynx(32,16),R.YNc(33,Ae,3,3,"th",9),R.YNc(34,ye,2,1,"td",6),R.BQk(),R.ynx(35,17),R.YNc(36,_e,3,3,"th",5),R.YNc(37,Ce,4,2,"td",6),R.BQk(),R.ynx(38,18),R.YNc(39,fe,3,3,"th",9),R.YNc(40,r,2,2,"td",6),R.BQk(),R.ynx(41,19),R.YNc(42,u,3,3,"th",5),R.YNc(43,_,2,1,"td",6),R.BQk(),R.ynx(44,20),R.YNc(45,E,3,3,"th",9),R.YNc(46,h,3,4,"td",6),R.BQk(),R.ynx(47,21),R.YNc(48,a,3,3,"th",9),R.YNc(49,i,2,1,"td",6),R.BQk(),R.YNc(50,o,3,1,"ng-container",22),R.YNc(51,d,3,1,"ng-container",22),R.YNc(52,c,1,0,"tr",23),R.YNc(53,S,3,14,"tr",24),R.qZA()()(),R.YNc(54,J,3,4,"perun-web-apps-alert",25),R.ALo(55,"async")),2&ne&&(R.Q6J("hidden",0===Ue.dataSource.allObjectCount),R.xp6(1),R.Q6J("dataLength",Ue.dataSource.allObjectCount)("pageSizeOptions",Ue.pageSizeOptions)("tableId",Ue.tableId),R.xp6(1),R.Q6J("ngIf",R.lcZ(3,11,Ue.dataSource.loading$)),R.xp6(2),R.Q6J("dataSource",Ue.dataSource),R.xp6(46),R.Q6J("ngForOf",Ue.fedColumns),R.xp6(1),R.Q6J("ngForOf",Ue.parsedColumns),R.xp6(1),R.Q6J("matHeaderRowDef",Ue.displayedColumns),R.xp6(1),R.Q6J("matRowDefColumns",Ue.displayedColumns),R.xp6(1),R.Q6J("ngIf",0===Ue.dataSource.allObjectCount&&!1===R.lcZ(55,13,Ue.dataSource.loading$)))},dependencies:[D.sg,D.O5,L.rH,C.YE,C.nU,O.BZ,O.fO,O.as,O.w1,O.Dz,O.nj,O.ge,O.ev,O.XQ,O.Gk,q.Ou,ee.w,z.Y,ie.Q,Te.l,V,D.Ov,D.uU,te.X$,Q.h,Ee.d,ge.R,ve],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),We})()},45256:(Xe,ue,p)=>{"use strict";p.d(ue,{k:()=>q});var e=p(95017),A=p(61744),C=p(64080),M=p(65412),m=p(81591),b=p(9244),D=p(86511),v=p(77579),R=p(56451),B=p(39646),w=p(63900),L=p(68675),O=p(94650);let q=(()=>{class ee{constructor(ie,Te,pe,Le,T,W,F,V,te,Q){this.data=ie,this.dialogRef=Te,this.membersManagerService=pe,this.voService=Le,this.registrarManager=T,this.groupService=W,this.store=F,this.guiAuthResolver=V,this.requestService=te,this.addMemberService=Q,this.loading=!1,this.searcher=new v.x,this.members=this.searcher.pipe((0,w.w)(Ee=>(0,R.T)((0,B.of)(null),this.voService.getCompleteCandidatesForGroup(this.data.group.id,this.attrNames,Ee))),(0,L.O)(void 0)),this.failed=[],this.selection=new e.Ov(!0,[]),this.attrNames=[C.r.USER_DEF_ORGANIZATION,C.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.getProperty("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("group")}ngOnInit(){this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group]),this.selection.changed.subscribe(ie=>{this.addAuth=!!ie.source.selected.every(Te=>Te.member)||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.data.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.data.group])})}add(){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?(this.failed=this.failed.filter(Te=>null!==Te),this.selection.clear(),this.loading=!1):this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const ie=this.selection.selected.pop();ie.member?this.addMember(ie):ie.richUser?this.addUser(ie):ie.candidate&&this.addCandidate(ie)}invite(ie){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?(this.failed=this.failed.filter(pe=>null!==pe),this.selection.clear(),this.loading=!1):this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const Te=this.selection.selected.pop();Te.richUser?this.inviteUser(Te,ie):this.inviteCandidate(Te,ie)}cancel(ie){this.dialogRef.close(ie)}addCandidate(ie){this.membersManagerService.createMemberForCandidate({vo:this.data.group.voId,candidate:this.addMemberService.createCandidate(ie.candidate),groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe({next:Te=>{this.membersManagerService.validateMemberAsync(Te.id).subscribe(),this.add()},error:Te=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,Te)),this.add()}})}addMember(ie){this.groupService.addMembers(this.data.group.id,[ie.member.id]).subscribe({next:()=>{this.add()},error:Te=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,Te)),this.add()}})}addUser(ie){this.membersManagerService.createMemberForUser({vo:this.data.group.voId,user:ie.richUser.id,groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe({next:Te=>{this.membersManagerService.validateMemberAsync(Te.id).subscribe(),this.add()},error:Te=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,Te)),this.add()}})}inviteCandidate(ie,Te){this.registrarManager.sendInvitationForGroup((0,b.Jc)(ie.candidate),Te,this.data.group.voId,this.data.group.id).subscribe({next:()=>{this.invite(Te)},error:pe=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,pe)),this.invite(Te)}})}inviteUser(ie,Te){this.registrarManager.sendInvitationGroupToExistingUser(ie.richUser.id,this.data.group.voId,this.data.group.id).subscribe({next:()=>{this.invite(Te)},error:pe=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,pe)),this.invite(Te)}})}}return ee.\u0275fac=function(ie){return new(ie||ee)(O.Y36(M.WI),O.Y36(M.so),O.Y36(A.uq),O.Y36(A.YF),O.Y36(A.tk),O.Y36(A.ff),O.Y36(m.d6),O.Y36(m.x4),O.Y36(m.F5),O.Y36(D.A))},ee.\u0275cmp=O.Xpm({type:ee,selectors:[["app-group-add-member-dialog"]],decls:2,vars:11,consts:[[3,"loading","languages","manualAddingBlocked","addAuth","inviteAuth","failed","members","selection","theme","add","cancel","invite","search"]],template:function(ie,Te){1&ie&&(O.TgZ(0,"app-add-member-dialog",0),O.NdJ("add",function(){return Te.add()})("cancel",function(Le){return Te.cancel(Le)})("invite",function(Le){return Te.invite(Le)})("search",function(Le){return Te.searcher.next(Le)}),O.ALo(1,"async"),O.qZA()),2&ie&&O.Q6J("loading",Te.loading)("languages",Te.languages)("manualAddingBlocked",Te.data.manualAddingBlocked)("addAuth",Te.addAuth)("inviteAuth",Te.inviteAuth)("failed",Te.failed)("members",O.lcZ(1,9,Te.members))("selection",Te.selection)("theme","group-theme")}}),ee})()},51525:(Xe,ue,p)=>{"use strict";p.d(ue,{H:()=>q});var e=p(65412),A=p(61744),C=p(81591),M=p(95017),m=p(9244),b=p(64080),D=p(86511),v=p(77579),R=p(56451),B=p(39646),w=p(63900),L=p(68675),O=p(94650);let q=(()=>{class ee{constructor(ie,Te,pe,Le,T,W,F,V){this.data=ie,this.dialogRef=Te,this.membersManagerService=pe,this.voService=Le,this.registrarManager=T,this.store=W,this.requestService=F,this.addMemberService=V,this.loading=!1,this.searcher=new v.x,this.members=this.searcher.pipe((0,w.w)(te=>(0,R.T)((0,B.of)(null),this.voService.getCompleteCandidatesForVo(this.data.voId,this.attrNames,te))),(0,L.O)(void 0)),this.failed=[],this.selection=new M.Ov(!0,[]),this.attrNames=[b.r.USER_DEF_ORGANIZATION,b.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.getProperty("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("vo")}add(){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?(this.failed=this.failed.filter(Te=>null!==Te),this.selection.clear(),this.loading=!1):this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const ie=this.selection.selected.pop();ie.richUser?this.addUser(ie):this.addCandidate(ie)}invite(ie){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?(this.failed=this.failed.filter(pe=>null!==pe),this.selection.clear(),this.loading=!1):this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const Te=this.selection.selected.pop();Te.richUser?this.inviteUser(Te,ie):this.inviteCandidate(Te,ie)}cancel(ie){this.dialogRef.close(ie)}addCandidate(ie){this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.addMemberService.createCandidate(ie.candidate)}).subscribe({next:Te=>{this.membersManagerService.validateMemberAsync(Te.id).subscribe(),this.add()},error:Te=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,Te)),this.add()}})}addUser(ie){this.membersManagerService.createMemberForUser({vo:this.data.voId,user:ie.richUser.id}).subscribe({next:Te=>{this.membersManagerService.validateMemberAsync(Te.id).subscribe(),this.add()},error:Te=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,Te)),this.add()}})}inviteCandidate(ie,Te){this.registrarManager.sendInvitation((0,m.Jc)(ie.candidate),Te,this.data.voId).subscribe({next:()=>{this.invite(Te)},error:pe=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,pe)),this.invite(Te)}})}inviteUser(ie,Te){this.registrarManager.sendInvitationToExistingUser(ie.richUser.id,this.data.voId).subscribe({next:()=>{this.invite(Te)},error:pe=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,pe)),this.invite(Te)}})}}return ee.\u0275fac=function(ie){return new(ie||ee)(O.Y36(e.WI),O.Y36(e.so),O.Y36(A.uq),O.Y36(A.YF),O.Y36(A.tk),O.Y36(C.d6),O.Y36(C.F5),O.Y36(D.A))},ee.\u0275cmp=O.Xpm({type:ee,selectors:[["app-vo-add-member-dialog"]],decls:2,vars:8,consts:[[3,"loading","languages","failed","members","selection","theme","add","cancel","invite","search"]],template:function(ie,Te){1&ie&&(O.TgZ(0,"app-add-member-dialog",0),O.NdJ("add",function(){return Te.add()})("cancel",function(Le){return Te.cancel(Le)})("invite",function(Le){return Te.invite(Le)})("search",function(Le){return Te.searcher.next(Le)}),O.ALo(1,"async"),O.qZA()),2&ie&&O.Q6J("loading",Te.loading)("languages",Te.languages)("failed",Te.failed)("members",O.lcZ(1,6,Te.members))("selection",Te.selection)("theme","vo-theme")}}),ee})()},55857:(Xe,ue,p)=>{"use strict";p.d(ue,{W:()=>Q});var e=p(61744),A=p(10036),C=p(81591),M=p(24006),m=p(36895),b=p(9244),D=p(23325),v=p(94650),R=p(65412),B=p(3238),w=p(59549),L=p(4859),O=p(84385),q=p(51572),ee=p(10266),z=p(96214),ie=p(39798),Te=p(64901),pe=p(99168),Le=p(89383);function T(Ee,ge){if(1&Ee){const ve=v.EpF();v.TgZ(0,"button",17),v.NdJ("click",function(){v.CHM(ve);const he=v.oxw();return v.KtG(he.showDetails(!0))}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&Ee&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function W(Ee,ge){if(1&Ee){const ve=v.EpF();v.TgZ(0,"button",17),v.NdJ("click",function(){v.CHM(ve);const he=v.oxw();return v.KtG(he.showDetails(!1))}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&Ee&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function F(Ee,ge){if(1&Ee){const ve=v.EpF();v.TgZ(0,"button",18),v.NdJ("click",function(){v.CHM(ve);const he=v.oxw();return v.KtG(he.setColumns())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&Ee){const ve=v.oxw();v.Q6J("disabled",ve.showAllDetails),v.xp6(1),v.hij(" ",v.lcZ(2,2,"VO_DETAIL.APPLICATION.SET_COLUMN_SETTINGS")," ")}}function V(Ee,ge){1&Ee&&v._UZ(0,"mat-spinner",19)}function te(Ee,ge){if(1&Ee&&(v.TgZ(0,"div"),v._UZ(1,"app-applications-dynamic-list",20),v.qZA()),2&Ee){const ve=v.oxw();v.xp6(1),v.Q6J("tableId",ve.showAllDetails?ve.detailTableId:ve.tableId)("searchString",ve.filterValue)("displayedColumns",ve.currentColumns)("fedColumns",ve.configuredFedColumns)("fedAttrNames",ve.fedAttrNames)("states",ve.currentStates)("dateFrom",ve.startDate.value)("dateTo",ve.endDate.value)("refreshTable",ve.refresh)("group",ve.group)}}let Q=(()=>{class Ee{constructor(ve,De,he,Ye,Be){this.registrarManager=ve,this.guiAuthResolver=De,this.entityStorageService=he,this.attributeManager=Ye,this.dialog=Be,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.simpleColumns=["createdAt","type","state","createdBy","modifiedBy"],this.detailedColumns=["createdAt","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=A.Af,this.tableId=A.gB,this.refresh=!1,this.fedAttrNames=[],this.currentColumns=[],this.configuredColumns=[],this.configuredFedColumns=[],this.columnsAuth=!1,this.loading=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.startDate=new M.p4((0,m.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new M.p4((0,m.p6)(new Date,"yyyy-MM-dd","en-GB")),this.attributeManager.getIdpAttributeDefinitions().subscribe(ve=>{ve.forEach(De=>{this.fedAttrNames.includes(De.friendlyName)||this.fedAttrNames.push(De.friendlyName)})}),this.loadViewConfiguration()}select(){switch(this.state){case"approved":this.currentStates=["APPROVED"];break;case"rejected":this.currentStates=["REJECTED"];break;case"wfmv":this.currentStates=["NEW"];break;case"submited":this.currentStates=["VERIFIED"];break;case"pending":this.currentStates=["NEW","VERIFIED"];break;case"all":this.currentStates=null}}yearAgo(){const ve=new Date;return ve.setDate(ve.getDate()-365),ve}applyFilter(ve){this.filterValue=ve}showDetails(ve){this.loading=!0,this.showAllDetails=ve,this.loadViewConfiguration()}refreshColumns(){return["id"].concat(this.showAllDetails?this.detailedColumns:this.configuredColumns.length>0?this.configuredColumns:this.simpleColumns)}loadViewConfiguration(){this.attributeManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:def:applicationViewPreferences").subscribe(ve=>{null!=ve?.value&&ve?.value.length>0?(this.configuredColumns=ve.value,this.configuredFedColumns=this.configuredColumns.filter(De=>this.fedAttrNames.includes(De))):(this.configuredColumns=[],this.configuredFedColumns=[]),this.columnsAuth=ve.writable,this.currentColumns=this.refreshColumns(),this.loading=!1})}setColumns(){const ve=(0,b.kZ)();ve.width="650px",ve.data={columns:[],groupId:this.group.id,theme:"group-theme"},this.dialog.open(D.a,ve).afterClosed().subscribe(he=>{he&&this.loadViewConfiguration()})}}return Ee.id="GroupApplicationsComponent",Ee.\u0275fac=function(ve){return new(ve||Ee)(v.Y36(e.tk),v.Y36(C.x4),v.Y36(C.fb),v.Y36(e.H8),v.Y36(R.uw))},Ee.\u0275cmp=v.Xpm({type:Ee,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(ve,De){2&ve&&v.ekj("router-component",De.true)},decls:37,vars:37,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[1,"w-25","mr-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","pending"],["value","wfmv"],["value","submited"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],["matTooltipPosition","above",3,"matTooltipDisabled","matTooltip"],["mat-stroked-button","",3,"disabled","click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],["mat-stroked-button","",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","displayedColumns","fedColumns","fedAttrNames","states","dateFrom","dateTo","refreshTable","group"]],template:function(ve,De){1&ve&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return De.refresh=!De.refresh}),v.qZA(),v.YNc(5,T,3,3,"button",2),v.YNc(6,W,3,3,"button",2),v.TgZ(7,"mat-form-field",3)(8,"mat-label"),v._uU(9),v.ALo(10,"translate"),v.qZA(),v.TgZ(11,"mat-select",4),v.NdJ("selectionChange",function(){return De.select()})("valueChange",function(Ye){return De.state=Ye}),v.TgZ(12,"mat-option",5),v._uU(13),v.ALo(14,"translate"),v.qZA(),v.TgZ(15,"mat-option",6),v._uU(16),v.ALo(17,"translate"),v.qZA(),v.TgZ(18,"mat-option",7),v._uU(19),v.ALo(20,"translate"),v.qZA(),v.TgZ(21,"mat-option",8),v._uU(22),v.ALo(23,"translate"),v.qZA(),v.TgZ(24,"mat-option",9),v._uU(25),v.ALo(26,"translate"),v.qZA(),v.TgZ(27,"mat-option",10),v._uU(28),v.ALo(29,"translate"),v.qZA()()(),v.TgZ(30,"perun-web-apps-debounce-filter",11),v.NdJ("filter",function(Ye){return De.applyFilter(Ye)}),v.qZA(),v.TgZ(31,"perun-web-apps-date-range",12),v.NdJ("datePicker",function(){return De.select()}),v.qZA(),v.TgZ(32,"span",13),v.ALo(33,"translate"),v.YNc(34,F,3,4,"button",14),v.qZA()(),v.YNc(35,V,1,0,"mat-spinner",15),v.YNc(36,te,2,10,"div",16)),2&ve&&(v.xp6(1),v.Oqu(v.lcZ(2,19,"VO_DETAIL.APPLICATION.TITLE")),v.xp6(4),v.Q6J("ngIf",!De.showAllDetails),v.xp6(1),v.Q6J("ngIf",De.showAllDetails),v.xp6(3),v.Oqu(v.lcZ(10,21,"APPLICATIONS_LIST.STATE")),v.xp6(2),v.Q6J("value",De.state),v.xp6(2),v.Oqu(v.lcZ(14,23,"VO_DETAIL.APPLICATION.SELECTION_ALL")),v.xp6(3),v.Oqu(v.lcZ(17,25,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),v.xp6(3),v.Oqu(v.lcZ(20,27,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),v.xp6(3),v.Oqu(v.lcZ(23,29,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),v.xp6(3),v.Oqu(v.lcZ(26,31,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),v.xp6(3),v.Oqu(v.lcZ(29,33,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),v.xp6(2),v.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),v.xp6(1),v.Q6J("endDate",De.endDate)("startDate",De.startDate),v.xp6(1),v.s9C("matTooltip",v.lcZ(33,35,"VO_DETAIL.APPLICATION.COLUMNS_TOOLTIP")),v.Q6J("matTooltipDisabled",!De.showAllDetails),v.xp6(2),v.Q6J("ngIf",De.columnsAuth),v.xp6(1),v.Q6J("ngIf",De.loading),v.xp6(1),v.Q6J("ngIf",!De.loading))},dependencies:[m.O5,B.ey,w.KE,w.hX,L.lW,O.gD,q.Ou,ee.gM,z.t,ie.S,Te.P,pe.S,Le.X$]}),Ee})()},13600:(Xe,ue,p)=>{"use strict";p.d(ue,{y:()=>nt});var e=p(95017),A=p(81591),C=p(64080),M=p(53455),m=p(61744),b=p(10036),D=p(9244),v=p(74414),R=p(24006),B=p(45256),w=p(94742),L=p(65412),O=p(94650),q=p(36895),ee=p(4859),z=p(51572),ie=p(10266),Te=p(71948),pe=p(98380),Le=p(25788),T=p(7434),W=p(89383);function F(Ae,ye){1&Ae&&O._UZ(0,"mat-spinner",6)}const V=function(){return["select","id","name","description"]};function te(Ae,ye){if(1&Ae){const _e=O.EpF();O.TgZ(0,"div",7)(1,"mat-radio-group",8),O.NdJ("ngModelChange",function(Ne){O.CHM(_e);const Ce=O.oxw();return O.KtG(Ce.copyType=Ne)}),O.TgZ(2,"span",9),O.ALo(3,"translate"),O.TgZ(4,"mat-radio-button",10),O._uU(5),O.ALo(6,"translate"),O.qZA()(),O.TgZ(7,"mat-radio-button",11),O._uU(8),O.ALo(9,"translate"),O.qZA()(),O.TgZ(10,"perun-web-apps-alert",12),O._uU(11),O.ALo(12,"translate"),O.qZA(),O.TgZ(13,"h5",13),O._uU(14),O.ALo(15,"translate"),O.qZA(),O.TgZ(16,"perun-web-apps-immediate-filter",14),O.NdJ("filter",function(Ne){O.CHM(_e);const Ce=O.oxw();return O.KtG(Ce.applyFilter(Ne))}),O.qZA(),O._UZ(17,"perun-web-apps-groups-list",15),O.qZA()}if(2&Ae){const _e=O.oxw();O.xp6(1),O.Q6J("ngModel",_e.copyType),O.xp6(1),O.s9C("matTooltip",O.lcZ(3,15,"DIALOGS.COPY_MEMBERS.DISABLED_COPY_SELECTION")),O.Q6J("matTooltipDisabled",_e.data.members.length>0),O.xp6(2),O.Q6J("disabled",0===_e.data.members.length),O.xp6(1),O.hij(" ",O.lcZ(6,17,"DIALOGS.COPY_MEMBERS.COPY_SELECTION")," "),O.xp6(3),O.hij(" ",O.lcZ(9,19,"DIALOGS.COPY_MEMBERS.COPY_ALL")," "),O.xp6(3),O.hij(" ",O.lcZ(12,21,"DIALOGS.COPY_MEMBERS.ATTRIBUTES_WARN")," "),O.xp6(3),O.Oqu(O.lcZ(15,23,"DIALOGS.COPY_MEMBERS.SELECT_GROUPS")),O.xp6(2),O.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),O.xp6(1),O.Q6J("groups",_e.assignableGroups)("selection",_e.selection)("disableRouting",!0)("displayedColumns",O.DdM(25,V))("filter",_e.filterValue)("tableId",_e.tableId)}}let Q=(()=>{class Ae{constructor(_e,Se,Ne,Ce,fe,r){this.dialogRef=_e,this.data=Se,this.groupsService=Ne,this.guiAuthResolver=Ce,this.translate=fe,this.notificator=r,this.loading=!1,this.copyType="all",this.filterValue="",this.tableId=b.rc,this.assignableGroups=[],this.selection=new e.Ov(!0,[]),this.groupAttrNames=[C.r.GROUP_SYNC_ENABLED,C.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.loading=!0,this.data.members.length>0&&(this.copyType="selection"),this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(_e=>{this.assignableGroups=this.filterAssignableGroups(_e),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const _e="selection"===this.copyType?this.data.members.map(Se=>Se.id):[];this.groupsService.copyMembers(this.data.groupId,this.selection.selected.map(Se=>Se.id),_e).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.COPY_MEMBERS.SUCCESS")),this.dialogRef.close(!0)},error:()=>{this.notificator.showError(this.translate.instant("DIALOGS.COPY_MEMBERS.ERROR")),this.loading=!1}})}applyFilter(_e){this.filterValue=_e}filterAssignableGroups(_e){const Se=[];for(const Ne of _e)"members"!==Ne.name&&Ne.id!==this.data.groupId&&!(0,D.bx)(Ne)&&!(0,D.jh)(Ne.attributes,C.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("dest-copyMembers_Group_List_List_boolean_policy",[Ne])&&Se.push(Ne);return Se}}return Ae.\u0275fac=function(_e){return new(_e||Ae)(O.Y36(L.so),O.Y36(L.WI),O.Y36(m.ff),O.Y36(A.x4),O.Y36(A.Te),O.Y36(A.V6))},Ae.\u0275cmp=O.Xpm({type:Ae,selectors:[["app-copy-members-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"flex-container",3,"ngModel","ngModelChange"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","selection",3,"disabled"],["value","all"],["alert_type","warn",1,"mt-4"],[1,"mt-4"],[3,"placeholder","filter"],[3,"groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(_e,Se){1&_e&&(O.TgZ(0,"div")(1,"h1",0),O._uU(2),O.ALo(3,"translate"),O.qZA(),O.YNc(4,F,1,0,"mat-spinner",1),O.YNc(5,te,18,26,"div",2),O.TgZ(6,"div",3)(7,"button",4),O.NdJ("click",function(){return Se.onCancel()}),O._uU(8),O.ALo(9,"translate"),O.qZA(),O.TgZ(10,"button",5),O.NdJ("click",function(){return Se.onSubmit()}),O._uU(11),O.ALo(12,"translate"),O.qZA()()()),2&_e&&(O.Tol(Se.data.theme),O.xp6(2),O.Oqu(O.lcZ(3,9,"DIALOGS.COPY_MEMBERS.TITLE")),O.xp6(2),O.Q6J("ngIf",Se.loading),O.xp6(1),O.Q6J("ngIf",!Se.loading),O.xp6(3),O.hij(" ",O.lcZ(9,11,"DIALOGS.COPY_MEMBERS.CANCEL")," "),O.xp6(2),O.Q6J("disabled",Se.loading||Se.selection.isEmpty()),O.xp6(1),O.hij(" ",O.lcZ(12,13,"DIALOGS.COPY_MEMBERS.COPY")," "))},dependencies:[q.O5,R.JJ,R.On,ee.lW,L.uh,L.xY,L.H8,z.Ou,ie.gM,Te.VQ,Te.U0,pe.w,Le.W,T.L,W.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Ae})();var Ee=p(3238),ge=p(59549),ve=p(84385),De=p(28255),he=p(96214),Ye=p(64901),Be=p(4811),se=p(20551);let le=(()=>{class Ae{transform(_e,Se){return!!("members"===_e.name||(0,D.bx)(_e)||"add"===Se&&(0,D.jh)(_e.attributes,C.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING))}}return Ae.\u0275fac=function(_e){return new(_e||Ae)},Ae.\u0275pipe=O.Yjl({name:"groupMembersActionButtonDisabled",type:Ae,pure:!0}),Ae})(),k=(()=>{class Ae{transform(_e,Se){return"members"===_e.name?"GROUP_DETAIL.MEMBERS.BUTTON_DISABLED_MEMBERS_GROUP":(0,D.bx)(_e)?"GROUP_DETAIL.MEMBERS.SYNCHRONIZED":"add"===Se&&(0,D.jh)(_e.attributes,C.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)?"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED":""}}return Ae.\u0275fac=function(_e){return new(_e||Ae)},Ae.\u0275pipe=O.Yjl({name:"groupMembersActionButtonDisabledTooltip",type:Ae,pure:!0}),Ae})();function N(Ae,ye){1&Ae&&(O.TgZ(0,"perun-web-apps-alert",17),O._uU(1),O.ALo(2,"translate"),O.qZA()),2&Ae&&(O.xp6(1),O.hij(" ",O.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function be(Ae,ye){if(1&Ae){const _e=O.EpF();O.TgZ(0,"button",18),O.NdJ("click",function(){O.CHM(_e);const Ne=O.oxw();return O.KtG(Ne.onAddMember())}),O.ALo(1,"groupMembersActionButtonDisabled"),O._uU(2),O.ALo(3,"translate"),O.qZA()}if(2&Ae){const _e=O.oxw();O.Q6J("disabled",O.xi3(1,2,_e.group,"add")),O.xp6(2),O.hij(" ",O.lcZ(3,5,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function Z(Ae,ye){if(1&Ae&&(O.TgZ(0,"button",19),O.ALo(1,"groupMembersActionButtonDisabled"),O._uU(2),O.ALo(3,"translate"),O.qZA()),2&Ae){const _e=O.oxw(),Se=O.MAs(17);O.Q6J("disabled",O.lcZ(1,3,_e.group))("matMenuTriggerFor",Se),O.xp6(2),O.hij(" ",O.lcZ(3,5,"GROUP_DETAIL.MEMBERS.INVITE")," ")}}function de(Ae,ye){if(1&Ae){const _e=O.EpF();O.TgZ(0,"button",20),O.NdJ("click",function(){O.CHM(_e);const Ne=O.oxw();return O.KtG(Ne.onInviteMember())}),O.ALo(1,"groupMembersActionButtonDisabled"),O._uU(2),O.ALo(3,"translate"),O.qZA()}if(2&Ae){const _e=O.oxw();O.Q6J("disabled",O.lcZ(1,2,_e.group)),O.xp6(2),O.hij(" ",O.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_ONE")," ")}}function xe(Ae,ye){if(1&Ae){const _e=O.EpF();O.TgZ(0,"button",20),O.NdJ("click",function(){O.CHM(_e);const Ne=O.oxw();return O.KtG(Ne.onBulkInvite())}),O.ALo(1,"groupMembersActionButtonDisabled"),O._uU(2),O.ALo(3,"translate"),O.qZA()}if(2&Ae){const _e=O.oxw();O.Q6J("disabled",O.lcZ(1,2,_e.group)),O.xp6(2),O.hij(" ",O.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_BULK")," ")}}function ot(Ae,ye){if(1&Ae){const _e=O.EpF();O.TgZ(0,"button",21),O.NdJ("click",function(){O.CHM(_e);const Ne=O.oxw();return O.KtG(Ne.onCopyMembers())}),O._uU(1),O.ALo(2,"translate"),O.qZA()}if(2&Ae){const _e=O.oxw();O.Q6J("disabled",_e.copyDisabled),O.xp6(1),O.hij(" ",O.lcZ(2,2,"GROUP_DETAIL.MEMBERS.COPY_MEMBERS")," ")}}function Fe(Ae,ye){if(1&Ae){const _e=O.EpF();O.TgZ(0,"button",22),O.NdJ("click",function(){O.CHM(_e);const Ne=O.oxw();return O.KtG(Ne.onRemoveMembers())}),O.ALo(1,"groupMembersActionButtonDisabled"),O._uU(2),O.ALo(3,"translate"),O.qZA()}if(2&Ae){const _e=O.oxw();O.Q6J("disabled",_e.selection.isEmpty()||O.lcZ(1,2,_e.group)),O.xp6(2),O.hij(" ",O.lcZ(3,4,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function ut(Ae,ye){if(1&Ae&&(O.TgZ(0,"mat-option",23),O._uU(1),O.ALo(2,"memberStatus"),O.qZA()),2&Ae){const _e=ye.$implicit;O.Q6J("value",_e),O.xp6(1),O.Oqu(O.lcZ(2,2,_e))}}function tt(Ae,ye){if(1&Ae&&(O.TgZ(0,"mat-option",23),O._uU(1),O.ALo(2,"memberStatus"),O.qZA()),2&Ae){const _e=ye.$implicit;O.Q6J("value",_e),O.xp6(1),O.Oqu(O.lcZ(2,2,_e))}}function vt(Ae,ye){1&Ae&&O._UZ(0,"mat-spinner",24)}function X(Ae,ye){if(1&Ae&&O._UZ(0,"perun-web-apps-members-dynamic-list",25),2&Ae){const _e=O.oxw();O.Q6J("attrNames",_e.memberAttrNames)("groupId",_e.group.id)("tableId",_e.tableId)("displayedColumns",_e.displayedColumns)("searchString",_e.searchString)("updateTable",_e.updateTable)("selectedGroupStatuses",_e.selectedGroupStatuses)("selectedStatuses",_e.selectedStatuses)("selection",_e.selection)("voId",_e.group.voId)("isMembersGroup","members"===_e.group.name)}}let nt=(()=>{class Ae{constructor(_e,Se,Ne,Ce,fe,r,u,_){this.groupService=_e,this.dialog=Se,this.guiAuthResolver=Ne,this.storeService=Ce,this.attributesManager=fe,this.apiRequest=r,this.notificator=u,this.entityStorageService=_,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=b.dI,this.memberAttrNames=[C.r.MEMBER_DEF_ORGANIZATION,C.r.MEMBER_DEF_MAIL,C.r.USER_DEF_ORGANIZATION,C.r.USER_DEF_PREFERRED_MAIL,C.r.MEMBER_DEF_EXPIRATION,C.r.MEMBER_DEF_GROUP_EXPIRATION,C.r.MEMBER_LIFECYCLE_ALTERABLE],this.copyDisabled=!1,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new R.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new R.p4,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"],this.groupAttrNames=[C.r.GROUP_SYNC_ENABLED,C.r.GROUP_LAST_SYNC_STATE,C.r.GROUP_LAST_SYNC_TIMESTAMP,C.r.GROUP_STRUCTURE_SYNC_ENABLED,C.r.GROUP_LAST_STRUCTURE_SYNC_STATE,C.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,C.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.loading=!0,this.selection=new e.Ov(!0,[]),this.statuses.setValue(this.selectedStatuses),this.groupStatuses.setValue(this.selectedGroupStatuses),this.memberAttrNames=this.memberAttrNames.concat(this.storeService.getLoginAttributeNames()),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.group.voId).then(()=>this.loadPage(this.group.id)),this.isCopyMembersDisabled()}loadPage(_e){this.groupService.getRichGroupByIdWithAttributesByNames(_e,this.groupAttrNames).subscribe(Se=>{this.group=Se,this.synchEnabled=(0,D.bx)(this.group),this.loading=!1})}setAuthRights(){this.addAuth=this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("removeMembers_Group_List_policy",[this.group]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","type","fullName","status","groupStatus","organization","email","logins"],this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_String_String_String_policy",[this.group]),this.copyAuth=this.guiAuthResolver.isAuthorized("source-copyMembers_Group_List_List_boolean_policy",[this.group])}onSearchByString(_e){this.searchString=_e,this.selection.clear()}onAddMember(){const _e=(0,D.kZ)();_e.width="1000px",_e.data={group:this.group,manualAddingBlocked:this.blockManualMemberAdding},this.dialog.open(B.k,_e).afterClosed().subscribe(Ne=>{Ne&&(this.selection.clear(),this.updateTable=!this.updateTable,this.isCopyMembersDisabled())})}onRemoveMembers(){const _e=(0,D.kZ)();_e.width="450px",_e.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(M.X,_e).afterClosed().subscribe(Ne=>{Ne&&(this.selection.clear(),this.updateTable=!this.updateTable,this.isCopyMembersDisabled())})}onInviteMember(){const _e=(0,D.kZ)();_e.width="650px",_e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(v.R,_e)}onBulkInvite(){const _e=(0,D.kZ)();_e.width="650px",_e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.F,_e)}onCopyMembers(){const _e=(0,D.kZ)();_e.width="650px",_e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme",members:this.selection.selected},this.dialog.open(Q,_e).afterClosed().subscribe(Ne=>{Ne&&this.selection.clear()})}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const _e=this.statuses.value;return _e?`${_e[0]} ${_e.length>1?"(+"+(_e.length-1).toString()+" "+(2===_e.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked(_e){return new Promise(Se=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(_e,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe({next:Ne=>{this.blockManualMemberAdding=null!==Ne.value,Se()},error:Ne=>{"PrivilegeException"!==Ne.name&&this.notificator.showError(Ne.name),Se()}})})}isCopyMembersDisabled(){this.copyDisabled=!1,this.groupService.getGroupDirectMembersCount(this.group.id).subscribe({next:_e=>{this.copyDisabled=0===_e},error:()=>{this.copyDisabled=!0}})}changeVoStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}changeGroupStatuses(){this.selection.clear(),this.selectedGroupStatuses=this.groupStatuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable,this.isCopyMembersDisabled()}}return Ae.id="GroupMembersComponent",Ae.\u0275fac=function(_e){return new(_e||Ae)(O.Y36(m.ff),O.Y36(L.uw),O.Y36(A.x4),O.Y36(A.d6),O.Y36(m.H8),O.Y36(A.F5),O.Y36(A.V6),O.Y36(A.fb))},Ae.\u0275cmp=O.Xpm({type:Ae,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(_e,Se){2&_e&&O.ekj("router-component",Se.true)},decls:49,vars:63,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["class","mr-2 action-button","color","accent","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["class","action-button","mat-menu-item","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","data-cy","remove-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","fix-select"],["multiple","",3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId","isMembersGroup",4,"ngIf"],["alert_type","warn"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"group-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId","isMembersGroup"]],template:function(_e,Se){1&_e&&(O.TgZ(0,"h1",0),O._uU(1),O.ALo(2,"translate"),O.qZA(),O.YNc(3,N,3,3,"perun-web-apps-alert",1),O.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),O.NdJ("click",function(){return Se.refreshTable()}),O.qZA(),O.TgZ(6,"span",4),O.ALo(7,"groupMembersActionButtonDisabled"),O.ALo(8,"translate"),O.ALo(9,"groupMembersActionButtonDisabledTooltip"),O.YNc(10,be,4,7,"button",5),O.qZA(),O.TgZ(11,"span",4),O.ALo(12,"groupMembersActionButtonDisabled"),O.ALo(13,"translate"),O.ALo(14,"groupMembersActionButtonDisabledTooltip"),O.YNc(15,Z,4,7,"button",6),O.TgZ(16,"mat-menu",null,7),O.YNc(18,de,4,6,"button",8),O.YNc(19,xe,4,6,"button",8),O.qZA()(),O.TgZ(20,"span",4),O.ALo(21,"translate"),O.YNc(22,ot,3,4,"button",9),O.qZA(),O.TgZ(23,"span",4),O.ALo(24,"groupMembersActionButtonDisabled"),O.ALo(25,"translate"),O.ALo(26,"groupMembersActionButtonDisabledTooltip"),O.YNc(27,Fe,4,6,"button",10),O.qZA(),O.TgZ(28,"mat-form-field",11)(29,"mat-label"),O._uU(30),O.ALo(31,"translate"),O.qZA(),O.TgZ(32,"mat-select",12),O.NdJ("closed",function(){return Se.changeVoStatuses()}),O.TgZ(33,"mat-select-trigger"),O._uU(34),O.ALo(35,"memberStatus"),O.qZA(),O.YNc(36,ut,3,4,"mat-option",13),O.qZA()(),O.TgZ(37,"mat-form-field",11)(38,"mat-label"),O._uU(39),O.ALo(40,"translate"),O.qZA(),O.TgZ(41,"mat-select",12),O.NdJ("closed",function(){return Se.changeGroupStatuses()}),O.TgZ(42,"mat-select-trigger"),O._uU(43),O.ALo(44,"memberStatus"),O.qZA(),O.YNc(45,tt,3,4,"mat-option",13),O.qZA()(),O.TgZ(46,"perun-web-apps-debounce-filter",14),O.NdJ("filter",function(Ce){return Se.onSearchByString(Ce)}),O.qZA()(),O.YNc(47,vt,1,0,"mat-spinner",15),O.YNc(48,X,1,11,"perun-web-apps-members-dynamic-list",16)),2&_e&&(O.xp6(1),O.Oqu(O.lcZ(2,31,"GROUP_DETAIL.MEMBERS.TITLE")),O.xp6(2),O.Q6J("ngIf",Se.synchEnabled),O.xp6(3),O.s9C("matTooltip",O.lcZ(8,36,O.xi3(9,38,Se.group,"add"))),O.Q6J("matTooltipDisabled",!O.xi3(7,33,Se.group,"add"))("matTooltipPosition","above"),O.xp6(4),O.Q6J("ngIf",Se.addAuth),O.xp6(1),O.s9C("matTooltip",O.lcZ(13,43,O.lcZ(14,45,Se.group))),O.Q6J("matTooltipDisabled",!O.lcZ(12,41,Se.group))("matTooltipPosition","above"),O.xp6(4),O.Q6J("ngIf",Se.inviteAuth),O.xp6(3),O.Q6J("ngIf",Se.inviteAuth),O.xp6(1),O.Q6J("ngIf",Se.inviteAuth),O.xp6(1),O.s9C("matTooltip",O.lcZ(21,47,"GROUP_DETAIL.MEMBERS.COPY_MEMBERS_DISABLED")),O.Q6J("matTooltipDisabled",!Se.copyDisabled)("matTooltipPosition","above"),O.xp6(2),O.Q6J("ngIf",Se.copyAuth),O.xp6(1),O.s9C("matTooltip",O.lcZ(25,51,O.lcZ(26,53,Se.group))),O.Q6J("matTooltipDisabled",!O.lcZ(24,49,Se.group))("matTooltipPosition","above"),O.xp6(4),O.Q6J("ngIf",Se.removeAuth),O.xp6(3),O.Oqu(O.lcZ(31,55,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),O.xp6(2),O.Q6J("formControl",Se.statuses),O.xp6(2),O.hij(" ",O.lcZ(35,57,Se.displaySelectedStatuses())," "),O.xp6(2),O.Q6J("ngForOf",Se.statusList),O.xp6(3),O.Oqu(O.lcZ(40,59,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),O.xp6(2),O.Q6J("formControl",Se.groupStatuses),O.xp6(2),O.hij(" ",O.lcZ(44,61,Se.displaySelectedGroupStatuses())," "),O.xp6(2),O.Q6J("ngForOf",Se.groupStatusList),O.xp6(1),O.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),O.xp6(1),O.Q6J("ngIf",Se.loading),O.xp6(1),O.Q6J("ngIf",!Se.loading))},dependencies:[q.sg,q.O5,Ee.ey,ge.KE,ge.hX,R.JJ,R.oH,ee.lW,ve.gD,ve.$L,z.Ou,ie.gM,De.VK,De.OP,De.p6,pe.w,he.t,Ye.P,Be.m,W.X$,se.l,le,k],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),Ae})()},37240:(Xe,ue,p)=>{"use strict";p.d(ue,{q:()=>X});var e=p(95017),A=p(61744),C=p(10036),M=p(65412),m=p(81591),D=(p(37433),p(94650)),v=p(89383),R=p(36895),B=p(24006),w=p(4859),L=p(51572),O=p(10266),q=p(90455),ee=p(86257),z=p(62109),ie=p(64901);const Te=["list"],pe=["stepper"];function Le(nt,Ae){1&nt&&D._UZ(0,"mat-spinner",4)}function T(nt,Ae){1&nt&&(D._uU(0),D.ALo(1,"translate")),2&nt&&D.Oqu(D.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function W(nt,Ae){1&nt&&(D._uU(0),D.ALo(1,"translate")),2&nt&&D.Oqu(D.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}const F=function(){return["select","id","name","facility","tags","description"]};function V(nt,Ae){if(1&nt){const ye=D.EpF();D.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),D.YNc(4,T,2,3,"ng-template",9),D.TgZ(5,"perun-web-apps-debounce-filter",10),D.NdJ("filter",function(Se){D.CHM(ye);const Ne=D.oxw();return D.KtG(Ne.applyFilter(Se))}),D.ALo(6,"translate"),D.qZA(),D._UZ(7,"perun-web-apps-resources-list",11,12),D.qZA(),D.TgZ(9,"mat-step"),D.YNc(10,W,2,3,"ng-template",9),D.TgZ(11,"mat-slide-toggle",13),D.NdJ("toggleChange",function(){D.CHM(ye);const Se=D.oxw();return D.KtG(Se.changeSubgroupsMessage())})("ngModelChange",function(Se){D.CHM(ye);const Ne=D.oxw();return D.KtG(Ne.autoAssignSubgroups=Se)}),D._uU(12),D.ALo(13,"translate"),D.qZA(),D.TgZ(14,"div",14),D._UZ(15,"i",15),D.qZA(),D.TgZ(16,"mat-slide-toggle",13),D.NdJ("toggleChange",function(){D.CHM(ye);const Se=D.oxw();return D.KtG(Se.changeInactiveMessage())})("ngModelChange",function(Se){D.CHM(ye);const Ne=D.oxw();return D.KtG(Ne.asActive=Se)}),D._uU(17),D.ALo(18,"translate"),D.qZA(),D.TgZ(19,"div",14),D._uU(20),D.qZA(),D.TgZ(21,"mat-slide-toggle",13),D.NdJ("toggleChange",function(){D.CHM(ye);const Se=D.oxw();return D.KtG(Se.changeAsyncMessage())})("ngModelChange",function(Se){D.CHM(ye);const Ne=D.oxw();return D.KtG(Ne.async=Se)}),D._uU(22),D.ALo(23,"translate"),D.qZA(),D.TgZ(24,"div",14),D._uU(25),D.qZA()()()()}if(2&nt){const ye=D.MAs(8),_e=D.oxw();D.xp6(1),D.Q6J("linear",!0),D.xp6(2),D.Q6J("completed",0!==_e.selection.selected.length&&void 0!==ye&&ye.addAuth),D.xp6(2),D.s9C("placeholder",D.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),D.xp6(2),D.Q6J("filterValue",_e.filterValue)("groupToResource",_e.data.group)("disableRouting",!0)("resources",_e.resources)("selection",_e.selection)("displayedColumns",D.DdM(27,F))("tableId",_e.tableId),D.xp6(4),D.Q6J("ngModel",_e.autoAssignSubgroups),D.xp6(1),D.hij(" ",D.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),D.xp6(3),D.Q6J("innerHTML",_e.autoAssignHint,D.oJD),D.xp6(1),D.Q6J("ngModel",_e.asActive),D.xp6(1),D.hij(" ",D.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),D.xp6(3),D.hij(" ",_e.asActiveHint," "),D.xp6(1),D.Q6J("ngModel",_e.async),D.xp6(1),D.hij(" ",D.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),D.xp6(3),D.hij(" ",_e.asyncHint," ")}}function te(nt,Ae){if(1&nt){const ye=D.EpF();D.TgZ(0,"button",22),D.NdJ("click",function(){D.CHM(ye);const Se=D.oxw(2);return D.KtG(Se.stepperPrevious())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}2&nt&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function Q(nt,Ae){if(1&nt){const ye=D.EpF();D.TgZ(0,"button",23),D.NdJ("click",function(){D.CHM(ye);const Se=D.oxw(2);return D.KtG(Se.stepperNext())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&nt){const ye=D.oxw(2);D.ekj("ml-2",void 0!==ye.stepper&&0!==ye.stepper.selectedIndex)("ml-auto",!(void 0!==ye.stepper&&0!==ye.stepper.selectedIndex)),D.Q6J("disabled",0===ye.selection.selected.length||void 0!==ye.list&&!ye.list.addAuth),D.xp6(1),D.hij(" ",D.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function Ee(nt,Ae){if(1&nt){const ye=D.EpF();D.TgZ(0,"button",24),D.NdJ("click",function(){D.CHM(ye);const Se=D.oxw(2);return D.KtG(Se.onSubmit())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&nt){const ye=D.oxw(2);D.Q6J("disabled",0===ye.selection.selected.length||ye.loading),D.xp6(1),D.hij(" ",D.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function ge(nt,Ae){if(1&nt){const ye=D.EpF();D.TgZ(0,"div",16)(1,"button",17),D.NdJ("click",function(){D.CHM(ye);const Se=D.oxw();return D.KtG(Se.onCancel())}),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.YNc(4,te,3,3,"button",18),D.YNc(5,Q,3,8,"button",19),D.TgZ(6,"span",20),D.ALo(7,"translate"),D.YNc(8,Ee,3,4,"button",21),D.qZA()()}if(2&nt){const ye=D.oxw();D.xp6(2),D.hij(" ",D.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),D.xp6(2),D.Q6J("ngIf",void 0!==ye.stepper&&0!==ye.stepper.selectedIndex),D.xp6(1),D.Q6J("ngIf",void 0!==ye.stepper&&ye.stepper.selectedIndex!==ye.stepper._steps.length-1),D.xp6(1),D.s9C("matTooltip",D.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),D.Q6J("matTooltipDisabled",void 0===ye.list||ye.list.addAuth),D.xp6(2),D.Q6J("ngIf",void 0!==ye.stepper&&ye.stepper.selectedIndex===ye.stepper._steps.length-1)}}let ve=(()=>{class nt{constructor(ye,_e,Se,Ne,Ce,fe,r){this.dialogRef=ye,this.data=_e,this.notificator=Se,this.translate=Ne,this.resourcesManager=Ce,this.guiAuthResolver=fe,this.cd=r,this.filterValue="",this.resources=[],this.selection=new e.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=C.dK}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.autoAssignHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT"),this.resourcesManager.getRichResources(this.data.group.voId).subscribe(ye=>{this.resourcesManager.getAssignedResourcesWithGroup(this.data.group.id).subscribe(_e=>{for(const Se of ye)-1===_e.findIndex(Ne=>Ne.id===Se.id)&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[this.data.group,Se])&&this.resources.push(Se);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(ye){this.filterValue=ye}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const ye=this.selection.selected.map(_e=>_e.id);this.resourcesManager.assignGroupToResources(this.data.group.id,ye,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(_e=>{this.notificator.showSuccess(_e),this.dialogRef.close(!0)})},()=>this.loading=!1)}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return nt.\u0275fac=function(ye){return new(ye||nt)(D.Y36(M.so),D.Y36(M.WI),D.Y36(m.V6),D.Y36(v.sK),D.Y36(A.xk),D.Y36(m.x4),D.Y36(D.sBO))},nt.\u0275cmp=D.Xpm({type:nt,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(ye,_e){if(1&ye&&(D.Gf(Te,5),D.Gf(pe,5)),2&ye){let Se;D.iGM(Se=D.CRH())&&(_e.list=Se.first),D.iGM(Se=D.CRH())&&(_e.stepper=Se.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"filterValue","groupToResource","disableRouting","resources","selection","displayedColumns","tableId"],["list",""],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["class","ml-auto","color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button",1,"ml-auto",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(ye,_e){1&ye&&(D.TgZ(0,"div")(1,"h1",0),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.YNc(4,Le,1,0,"mat-spinner",1),D.YNc(5,V,26,28,"div",2),D.YNc(6,ge,9,10,"div",3),D.qZA()),2&ye&&(D.Tol(_e.theme),D.xp6(2),D.Oqu(D.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),D.xp6(2),D.Q6J("ngIf",_e.loading),D.xp6(1),D.Q6J("ngIf",!_e.loading),D.xp6(1),D.Q6J("ngIf",!_e.loading&&void 0!==_e.stepper))},dependencies:[R.O5,B.JJ,B.On,w.lW,M.uh,M.xY,M.H8,L.Ou,O.gM,q.Rr,ee.C0,ee.VY,ee.Vq,z.C,ie.P,v.X$]}),nt})();var De=p(30671);function he(nt,Ae){1&nt&&D._UZ(0,"mat-spinner",4)}function Ye(nt,Ae){1&nt&&D._UZ(0,"th",13)}function Be(nt,Ae){if(1&nt&&(D.TgZ(0,"td",14),D._uU(1),D.qZA()),2&nt){const ye=Ae.$implicit;D.xp6(1),D.Oqu(ye.name)}}function se(nt,Ae){1&nt&&D._UZ(0,"tr",15)}function le(nt,Ae){1&nt&&D._UZ(0,"tr",16)}function k(nt,Ae){if(1&nt&&(D.TgZ(0,"div",5)(1,"p"),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"div",6),D._uU(5),D.ALo(6,"translate"),D.qZA(),D.TgZ(7,"table",7),D.ynx(8,8),D.YNc(9,Ye,1,0,"th",9),D.YNc(10,Be,2,1,"td",10),D.BQk(),D.YNc(11,se,1,0,"tr",11),D.YNc(12,le,1,0,"tr",12),D.qZA()()),2&nt){const ye=D.oxw();D.xp6(2),D.hij(" ",D.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),D.xp6(3),D.hij(" ",D.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),D.xp6(2),D.Q6J("dataSource",ye.dataSource),D.xp6(4),D.Q6J("matHeaderRowDef",ye.displayedColumns),D.xp6(1),D.Q6J("matRowDefColumns",ye.displayedColumns)}}function N(nt,Ae){if(1&nt){const ye=D.EpF();D.TgZ(0,"div",17)(1,"button",18),D.NdJ("click",function(){D.CHM(ye);const Se=D.oxw();return D.KtG(Se.onCancel())}),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"button",19),D.NdJ("click",function(){D.CHM(ye);const Se=D.oxw();return D.KtG(Se.onSubmit())}),D._uU(5),D.ALo(6,"translate"),D.qZA()()}if(2&nt){const ye=D.oxw();D.xp6(2),D.hij(" ",D.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),D.xp6(2),D.Q6J("disabled",ye.loading),D.xp6(1),D.hij(" ",D.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let be=(()=>{class nt{constructor(ye,_e,Se,Ne,Ce){this.dialogRef=ye,this.data=_e,this.notificator=Se,this.translate=Ne,this.resourcesManager=Ce,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new De.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const ye=this.data.resources.map(_e=>_e.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,ye).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(_e=>{this.loading=!1,this.notificator.showSuccess(_e),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return nt.\u0275fac=function(ye){return new(ye||nt)(D.Y36(M.so),D.Y36(M.WI),D.Y36(m.V6),D.Y36(v.sK),D.Y36(A.xk))},nt.\u0275cmp=D.Xpm({type:nt,selectors:[["app-remove-group-resource-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(ye,_e){1&ye&&(D.TgZ(0,"div")(1,"h1",0),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.YNc(4,he,1,0,"mat-spinner",1),D.YNc(5,k,13,9,"div",2),D.YNc(6,N,7,7,"div",3),D.qZA()),2&ye&&(D.Tol(_e.data.theme),D.xp6(2),D.Oqu(D.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),D.xp6(2),D.Q6J("ngIf",_e.loading),D.xp6(1),D.Q6J("ngIf",!_e.loading),D.xp6(1),D.Q6J("ngIf",!_e.loading))},dependencies:[R.O5,w.lW,De.BZ,De.fO,De.as,De.w1,De.Dz,De.nj,De.ge,De.ev,De.XQ,De.Gk,M.uh,M.xY,M.H8,L.Ou,v.X$]}),nt})();var Z=p(9244),de=p(96214),xe=p(7434);const ot=["list"];function Fe(nt,Ae){if(1&nt){const ye=D.EpF();D.TgZ(0,"button",8),D.NdJ("click",function(){D.CHM(ye);const Se=D.oxw();return D.KtG(Se.addResource())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}2&nt&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function ut(nt,Ae){1&nt&&D._UZ(0,"mat-spinner",9)}const tt=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function vt(nt,Ae){if(1&nt){const ye=D.EpF();D.TgZ(0,"perun-web-apps-resources-list",10,11),D.NdJ("refreshTable",function(){D.CHM(ye);const Se=D.oxw();return D.KtG(Se.refreshTable())}),D.qZA()}if(2&nt){const ye=D.oxw();D.Q6J("disableRouting",!ye.routingAuth)("filterValue",ye.filterValue)("resources",ye.resources)("routingVo",!0)("displayedColumns",D.DdM(10,tt))("selection",ye.selected)("groupId",ye.group.id)("groupToResource",ye.group)("resourcesToDisableCheckbox",ye.resourcesToDisable)("tableId",ye.tableId)}}let X=(()=>{class nt{constructor(ye,_e,Se,Ne,Ce){this.resourcesManager=ye,this.groupService=_e,this.dialog=Se,this.guiAuthResolver=Ne,this.entityStorageService=Ce,this.resources=null,this.selected=new e.Ov(!0,[]),this.filterValue="",this.tableId=C.v1,this.addAuth=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthorization(),this.refreshTable()}setAuthorization(){null!==this.resources&&0!==this.resources.length&&(this.routingAuth=this.guiAuthResolver.isAuthorized("getResourceById_int_policy",[this.resources[0]])),this.addAuth=this.guiAuthResolver.isAuthorized("getResources_Vo_policy",[this.group])}refreshTable(){this.loading=!0,this.resourcesManager.getResourceAssignments(this.group.id).subscribe(ye=>{this.resources=ye.map(_e=>{const Se=_e.enrichedResource.resource;return Se.facility=_e.facility,Se.status=_e.status,Se.resourceTags=_e.resourceTags,Se.failureCause=_e.failureCause,Se.sourceGroupId=_e.sourceGroupId,Se}),this.selected.clear(),this.resourcesToDisable=new Set(this.resources.filter(_e=>null!==_e.sourceGroupId).map(_e=>_e.id)),this.setAuthorization(),this.loading=!1})}applyFilter(ye){this.filterValue=ye}addResource(){const ye=(0,Z.kZ)();ye.width="1000px",ye.data={theme:"group-theme",group:this.group},this.dialog.open(ve,ye).afterClosed().subscribe(Se=>{Se&&this.refreshTable()})}removeResource(){const ye=(0,Z.kZ)();ye.width="450px",ye.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(be,ye).afterClosed().subscribe(Se=>{Se&&(this.selected.clear(),this.refreshTable())})}}return nt.id="GroupResourcesComponent",nt.\u0275fac=function(ye){return new(ye||nt)(D.Y36(A.xk),D.Y36(A.ff),D.Y36(M.uw),D.Y36(m.x4),D.Y36(m.fb))},nt.\u0275cmp=D.Xpm({type:nt,selectors:[["app-group-resources"]],viewQuery:function(ye,_e){if(1&ye&&D.Gf(ot,5),2&ye){let Se;D.iGM(Se=D.CRH())&&(_e.list=Se.first)}},hostVars:2,hostBindings:function(ye,_e){2&ye&&D.ekj("router-component",_e.true)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable"],["list",""]],template:function(ye,_e){1&ye&&(D.TgZ(0,"div")(1,"h1",0),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"perun-web-apps-refresh-button",1),D.NdJ("refresh",function(){return _e.refreshTable()}),D.qZA(),D.YNc(5,Fe,3,3,"button",2),D.TgZ(6,"span",3),D.ALo(7,"translate"),D.TgZ(8,"button",4),D.NdJ("click",function(){return _e.removeResource()}),D._uU(9),D.ALo(10,"translate"),D.qZA()(),D.TgZ(11,"perun-web-apps-immediate-filter",5),D.NdJ("filter",function(Ne){return _e.applyFilter(Ne)}),D.qZA(),D.YNc(12,ut,1,0,"mat-spinner",6),D.YNc(13,vt,2,11,"perun-web-apps-resources-list",7),D.qZA()),2&ye&&(D.xp6(2),D.Oqu(D.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),D.xp6(3),D.Q6J("ngIf",_e.addAuth),D.xp6(1),D.s9C("matTooltip",D.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),D.Q6J("matTooltipDisabled",0===_e.selected.selected.length||void 0!==_e.list&&_e.list.removeAuth),D.xp6(2),D.Q6J("disabled",0===_e.selected.selected.length||void 0!==_e.list&&!_e.list.removeAuth),D.xp6(1),D.hij(" ",D.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),D.xp6(2),D.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),D.xp6(1),D.Q6J("ngIf",_e.loading),D.xp6(1),D.Q6J("ngIf",_e.resources&&!_e.loading))},dependencies:[R.O5,w.lW,L.Ou,O.gM,de.t,xe.L,z.C,v.X$]}),nt})()},61639:(Xe,ue,p)=>{"use strict";p.d(ue,{C:()=>m});var e=p(61744),A=p(81591),C=p(94650),M=p(90820);let m=(()=>{class b{constructor(v,R,B){this.authzResolverService=v,this.entityStorageService=R,this.roleService=B,this.roles=new Map}ngOnInit(){this.groupId=this.entityStorageService.getEntity().id,this.getData()}getData(){this.outerLoading=!0,this.roles.clear(),this.authzResolverService.getGroupRoles(this.groupId).subscribe(v=>{const R=Object.keys(v).map(B=>B.toUpperCase());this.roles=this.roleService.prepareRoles(v,R),this.outerLoading=!1})}}return b.id="GroupRolesComponent",b.\u0275fac=function(v){return new(v||b)(C.Y36(e.Ct),C.Y36(A.fb),C.Y36(A.Nj))},b.\u0275cmp=C.Xpm({type:b,selectors:[["app-group-roles"]],hostVars:2,hostBindings:function(v,R){2&v&&C.ekj("router-component",R.true)},decls:1,vars:5,consts:[[3,"outerLoading","roles","entityId","entityType","showDescription","reload","startLoading"]],template:function(v,R){1&v&&(C.TgZ(0,"app-perun-web-apps-roles-page",0),C.NdJ("reload",function(){return R.getData()})("startLoading",function(){return R.outerLoading=!0}),C.qZA()),2&v&&C.Q6J("outerLoading",R.outerLoading)("roles",R.roles)("entityId",R.groupId)("entityType","GROUP")("showDescription",!0)},dependencies:[M._]}),b})()},14336:(Xe,ue,p)=>{"use strict";p.d(ue,{Z:()=>be});var e=p(81591),A=p(93657),C=p(83491),M=p(95502),m=p(1186),b=p(61744),D=p(9244),v=p(94650),R=p(65412),B=p(89383),w=p(94364),L=p(36895),O=p(24006),q=p(97392),ee=p(4859),z=p(51572),ie=p(10266),Te=p(90455),pe=p(44850),Le=p(98380),T=p(96214),W=p(157);const F=["autoRegToggle"];function V(Z,de){1&Z&&v._UZ(0,"mat-spinner",3)}function te(Z,de){if(1&Z&&(v.TgZ(0,"span"),v._uU(1," , "),v.TgZ(2,"mat-icon",22),v._uU(3,"nat"),v.qZA(),v._uU(4),v.ALo(5,"translate"),v.ALo(6,"translate"),v.qZA()),2&Z){const xe=v.oxw(3);v.xp6(4),v.hij(" ",xe.applicationForm.automaticApprovalEmbedded?v.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):v.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function Q(Z,de){if(1&Z){const xe=v.EpF();v.TgZ(0,"div")(1,"mat-slide-toggle",23,24),v.NdJ("change",function(){v.CHM(xe);const Fe=v.oxw(3);return v.KtG(Fe.updateAutoRegistration())}),v._uU(3),v.ALo(4,"translate"),v.qZA()()}if(2&Z){const xe=v.oxw(3);v.xp6(1),v.Q6J("disabled",!xe.changeAutoRegistration)("ngModel",xe.autoRegistrationEnabled),v.xp6(2),v.hij(" ",v.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function Ee(Z,de){if(1&Z){const xe=v.EpF();v.TgZ(0,"button",25),v.NdJ("click",function(){v.CHM(xe);const Fe=v.oxw(3);return v.KtG(Fe.settings())}),v.TgZ(1,"i",12),v._uU(2,"edit"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}2&Z&&(v.xp6(3),v.hij(" ",v.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function ge(Z,de){if(1&Z&&(v.TgZ(0,"div",15)(1,"div",16)(2,"div",17),v._uU(3),v.ALo(4,"translate"),v.qZA(),v.TgZ(5,"div")(6,"span",17),v._uU(7),v.ALo(8,"translate"),v.qZA(),v._uU(9,": "),v.TgZ(10,"mat-icon",18),v._uU(11,"arrow_right_alt"),v.qZA(),v._uU(12),v.ALo(13,"translate"),v.ALo(14,"translate"),v.TgZ(15,"mat-icon",19),v._uU(16,"restore"),v.qZA(),v._uU(17),v.ALo(18,"translate"),v.ALo(19,"translate"),v.YNc(20,te,7,5,"span",2),v.qZA(),v.YNc(21,Q,5,5,"div",2),v.qZA(),v.TgZ(22,"div",20),v.YNc(23,Ee,5,3,"button",21),v.qZA()()),2&Z){const xe=v.oxw(2);v.xp6(1),v.Q6J("ngClass",xe.autoRegistrationEnabled?"w-75":"w-50"),v.xp6(2),v.AsE(" ",v.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",xe.applicationForm.moduleClassName," "),v.xp6(4),v.Oqu(v.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),v.xp6(5),v.hij(" ",xe.applicationForm.automaticApproval?v.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):v.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),v.xp6(5),v.hij(" ",xe.applicationForm.automaticApprovalExtension?v.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):v.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),v.xp6(3),v.Q6J("ngIf",xe.autoRegistrationEnabled),v.xp6(1),v.Q6J("ngIf",xe.voHasEmbeddedGroupApplication),v.xp6(2),v.Q6J("ngIf",xe.editAuth)}}function ve(Z,de){if(1&Z){const xe=v.EpF();v.TgZ(0,"button",26),v.NdJ("click",function(){v.CHM(xe);const Fe=v.oxw(2);return v.KtG(Fe.add())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&Z&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function De(Z,de){if(1&Z){const xe=v.EpF();v.TgZ(0,"button",27),v.NdJ("click",function(){v.CHM(xe);const Fe=v.oxw(2);return v.KtG(Fe.save())}),v.TgZ(1,"i",12),v._uU(2,"save"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}if(2&Z){const xe=v.oxw(2);v.Q6J("disabled",!xe.itemsChanged),v.xp6(3),v.hij(" ",v.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function he(Z,de){if(1&Z){const xe=v.EpF();v.TgZ(0,"button",28),v.NdJ("click",function(){v.CHM(xe);const Fe=v.oxw(2);return v.KtG(Fe.copy())}),v.TgZ(1,"i",12),v._uU(2,"file_copy"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}2&Z&&(v.xp6(3),v.hij(" ",v.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function Ye(Z,de){1&Z&&(v.TgZ(0,"perun-web-apps-alert",29),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Z&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const Be=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},se=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function le(Z,de){if(1&Z){const xe=v.EpF();v.TgZ(0,"div"),v.YNc(1,ge,24,21,"div",4),v._UZ(2,"mat-divider",5),v.TgZ(3,"div",6)(4,"perun-web-apps-refresh-button",7),v.NdJ("refresh",function(){v.CHM(xe);const Fe=v.oxw();return v.KtG(Fe.updateFormItems())}),v.qZA(),v.YNc(5,ve,3,3,"button",8),v.YNc(6,De,5,4,"button",9),v.YNc(7,he,5,3,"button",10),v.TgZ(8,"button",11),v.NdJ("click",function(){v.CHM(xe);const Fe=v.oxw();return v.KtG(Fe.preview())}),v.TgZ(9,"i",12),v._uU(10,"search"),v.qZA(),v._uU(11),v.ALo(12,"translate"),v.qZA()(),v.YNc(13,Ye,3,3,"perun-web-apps-alert",13),v.TgZ(14,"app-application-form-list",14),v.NdJ("applicationFormItemsChange",function(){v.CHM(xe);const Fe=v.oxw();return v.KtG(Fe.changeItems())}),v.qZA()()}if(2&Z){const xe=v.oxw();v.xp6(1),v.Q6J("ngIf",!xe.loading),v.xp6(4),v.Q6J("ngIf",xe.editAuth),v.xp6(1),v.Q6J("ngIf",xe.editAuth),v.xp6(1),v.Q6J("ngIf",xe.editAuth),v.xp6(4),v.hij(" ",v.lcZ(12,12,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),v.xp6(2),v.Q6J("ngIf",xe.editAuth),v.xp6(1),v.Q6J("applicationForm",xe.applicationForm)("applicationFormItems",xe.applicationFormItems)("loading",xe.loading)("displayedColumns",xe.editAuth?v.DdM(14,Be):v.DdM(15,se))("refreshApplicationForm",xe.refreshApplicationForm)("theme","group-theme")}}function k(Z,de){if(1&Z){const xe=v.EpF();v.TgZ(0,"button",32),v.NdJ("click",function(){v.CHM(xe);const Fe=v.oxw(2);return v.KtG(Fe.createEmptyApplicationForm())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&Z&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function N(Z,de){if(1&Z&&(v.TgZ(0,"div")(1,"perun-web-apps-alert",30),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,k,3,3,"button",31),v.qZA()),2&Z){const xe=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),v.xp6(2),v.Q6J("ngIf",xe.createEmptyForm)}}let be=(()=>{class Z{constructor(xe,ot,Fe,ut,tt,vt,X,nt,Ae){this.registrarManager=xe,this.dialog=ot,this.notificator=Fe,this.translate=ut,this.apiRequest=tt,this.router=vt,this.guiAuthResolver=X,this.attributesManager=nt,this.entityStorageService=Ae,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuth(),this.apiRequest.dontHandleErrorForNext(),this.registrarManager.getGroupApplicationForm(this.group.id).subscribe(xe=>{this.applicationForm=xe,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(ot=>{this.applicationFormItems=ot,this.attributesManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(Fe=>{this.voHasEmbeddedGroupApplication=null!==Fe.value,this.autoRegistrationEnabled=!!Fe.value,this.loading=!1})},()=>this.loading=!1)},xe=>{"FormNotExistsException"===xe.name?(this.noApplicationForm=!0,this.loading=!1):this.notificator.showRPCError(xe)})}setAuth(){this.editAuth=this.guiAuthResolver.isAuthorized("group-updateFormItems_ApplicationForm_List_policy",[this.group]),this.createEmptyForm=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.changeAutoRegistration=this.guiAuthResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[this.group])}add(){let xe=(0,D.kZ)();xe.width="500px",xe.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(A.J,xe).afterClosed().subscribe(Fe=>{Fe&&(this.applicationFormItems=Object.assign([],Fe[0]),xe=(0,D.kZ)(),xe.width="600px",xe.height="600px",xe.data={voId:this.group.voId,groupId:this.group.id,applicationFormItem:Fe[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(C._,xe),this.itemsChanged=!0)})}copy(){const xe=(0,D.kZ)();xe.width="500px",xe.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(M.W,xe).afterClosed().subscribe(Fe=>{Fe&&this.updateFormItems()})}settings(){const xe=(0,D.kZ)();xe.width="400px",xe.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(m.E,xe).afterClosed().subscribe(Fe=>{Fe&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(ut=>{this.notificator.showSuccess(ut)}),this.applicationForm=Fe)})}preview(){this.router.navigate(["/organizations",this.group.voId,"groups",this.group.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)},queryParamsHandling:"merge"})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe({next:xe=>{this.applicationFormItems=xe,this.itemsChanged=!1,this.refreshApplicationForm=!1,this.loading=!1},error:()=>this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let xe=0;for(const ot of this.applicationFormItems)ot.ordnum=xe,ot.forDelete||xe++;this.registrarManager.updateFormItemsForGroup({group:this.group.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(ot=>{this.notificator.showSuccess(ot)}),this.updateFormItems()})}clear(){this.applicationFormItems=[],this.itemsChanged=!0}updateAutoRegistration(){this.autoRegToggle.setDisabledState(!0),this.autoRegistrationEnabled?this.registrarManager.deleteGroupsFromAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(xe=>{this.notificator.showSuccess(xe)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1)):this.registrarManager.addGroupsToAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(xe=>{this.notificator.showSuccess(xe)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return Z.id="GroupSettingsApplicationFormComponent",Z.\u0275fac=function(xe){return new(xe||Z)(v.Y36(b.tk),v.Y36(R.uw),v.Y36(e.V6),v.Y36(B.sK),v.Y36(e.F5),v.Y36(w.F0),v.Y36(e.x4),v.Y36(b.H8),v.Y36(e.fb))},Z.\u0275cmp=v.Xpm({type:Z,selectors:[["app-group-settings-application-form"]],viewQuery:function(xe,ot){if(1&xe&&v.Gf(F,5),2&xe){let Fe;v.iGM(Fe=v.CRH())&&(ot.autoRegToggle=Fe.first)}},hostVars:2,hostBindings:function(xe,ot){2&xe&&v.ekj("router-component",ot.true)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","class","mr-2","data-cy","save-application-form","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"applicationForm","applicationFormItems","loading","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],[1,"d-flex","w-50"],[3,"ngClass"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-bottom"],["matTooltip","Extension",1,"align-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["matTooltip","Embedded",1,"align-bottom"],["color","primary",3,"disabled","ngModel","change"],["autoRegToggle",""],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"],["alert_type","warn"],["data-cy","create-empty-form","mat-stroked-button","",3,"click",4,"ngIf"],["data-cy","create-empty-form","mat-stroked-button","",3,"click"]],template:function(xe,ot){1&xe&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.YNc(3,V,1,0,"mat-spinner",1),v.YNc(4,le,15,16,"div",2),v.YNc(5,N,5,4,"div",2)),2&xe&&(v.xp6(1),v.hij(" ",v.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),v.xp6(2),v.Q6J("ngIf",ot.loading),v.xp6(1),v.Q6J("ngIf",!ot.noApplicationForm),v.xp6(1),v.Q6J("ngIf",!ot.loading&&ot.noApplicationForm))},dependencies:[L.mk,L.O5,O.JJ,O.On,q.Hw,ee.lW,z.Ou,ie.gM,Te.Rr,pe.d,Le.w,T.t,W.b,B.X$]}),Z})()},15592:(Xe,ue,p)=>{"use strict";p.d(ue,{u:()=>k});var e=p(81889),A=p(95017),C=p(41656),M=p(9244),m=p(61744),b=p(64080),D=p(10036),v=p(87842),R=p(81591),B=p(54004),w=p(68675),L=p(94650),O=p(65412),q=p(36895),ee=p(24006),z=p(4859),ie=p(51572),Te=p(10266),pe=p(90455),Le=p(25788),T=p(96214),W=p(58956),F=p(64901),V=p(89383);const te=["toggle"];function Q(N,be){if(1&N){const Z=L.EpF();L.TgZ(0,"button",9),L.NdJ("click",function(){L.CHM(Z);const xe=L.oxw();return L.KtG(xe.onCreateGroup())}),L._uU(1),L.ALo(2,"translate"),L.qZA()}2&N&&(L.xp6(1),L.hij(" ",L.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function Ee(N,be){if(1&N){const Z=L.EpF();L.TgZ(0,"button",12),L.NdJ("click",function(){L.CHM(Z);const xe=L.oxw(2);return L.KtG(xe.deleteGroup())}),L._uU(1),L.ALo(2,"translate"),L.qZA()}if(2&N){const Z=L.oxw().ngIf,de=L.oxw();L.Q6J("disabled",0===de.selected.selected.length||!Z.removeAuth),L.xp6(1),L.hij(" ",L.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function ge(N,be){if(1&N&&(L.TgZ(0,"span",10),L.ALo(1,"translate"),L.YNc(2,Ee,3,4,"button",11),L.qZA()),2&N){const Z=be.ngIf,de=L.oxw();L.s9C("matTooltip",L.lcZ(1,3,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),L.Q6J("matTooltipDisabled",0===de.selected.selected.length||Z.removeAuth),L.xp6(2),L.Q6J("ngIf",de.deleteAuth)}}function ve(N,be){1&N&&L._UZ(0,"mat-spinner",13)}function De(N,be){if(1&N){const Z=L.EpF();L.TgZ(0,"perun-web-apps-groups-tree",17),L.NdJ("moveGroup",function(xe){L.CHM(Z);const ot=L.oxw(2);return L.KtG(ot.onMoveGroup(xe))})("refreshTable",function(){L.CHM(Z);const xe=L.oxw(2);return L.KtG(xe.refreshTable())}),L.qZA()}if(2&N){const Z=L.oxw(2);L.Q6J("disableRouting",!Z.routeAuth)("expandAll",Z.filtering)("groups",Z.groups)("hideCheckbox",!Z.deleteAuth)("filterValue",Z.filterValue)("selection",Z.selected)}}const he=function(){return["select","id","name","description","menu"]},Ye=function(){return["id","name","description","menu"]};function Be(N,be){if(1&N){const Z=L.EpF();L.TgZ(0,"perun-web-apps-groups-list",18),L.NdJ("groupMoved",function(xe){L.CHM(Z);const ot=L.oxw(2);return L.KtG(ot.onMoveGroup(xe))})("refreshTable",function(){L.CHM(Z);const xe=L.oxw(2);return L.KtG(xe.refreshTable())}),L.qZA()}if(2&N){const Z=L.oxw(2);L.Q6J("disableMembers",!0)("disableRouting",!Z.routeAuth)("displayedColumns",Z.deleteAuth?L.DdM(7,he):L.DdM(8,Ye))("groups",Z.groups)("selection",Z.selected)("filter",Z.filterValue)("tableId",Z.tableId)}}function se(N,be){if(1&N&&(L.TgZ(0,"div",14),L.YNc(1,De,1,6,"perun-web-apps-groups-tree",15),L.YNc(2,Be,1,9,"perun-web-apps-groups-list",16),L.qZA()),2&N){const Z=L.oxw();L.xp6(1),L.Q6J("ngIf",!Z.showGroupList),L.xp6(1),L.Q6J("ngIf",Z.showGroupList)}}const le=function(N){return{removeAuth:N}};let k=(()=>{class N{constructor(Z,de,xe,ot){this.dialog=Z,this.groupService=de,this.guiAuthResolver=xe,this.entityStorageService=ot,this.groups=[],this.selected=new A.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=D.bf,this.filterValue="",this.removeAuth$=this.selected.changed.pipe((0,B.U)(Fe=>Fe.source.selected.reduce((ut,tt)=>ut&&this.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[tt]),!0)),(0,w.O)(!0))}onCreateGroup(){const Z=(0,M.kZ)();Z.width="450px",Z.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(e.y,Z).afterClosed().subscribe(xe=>{xe&&(this.loading=!0,this.refreshTable())})}ngOnInit(){"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree")}),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.createAuth=this.guiAuthResolver.isAuthorized("createGroup_Group_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.group]),0!==this.groups.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.groups[0]]))}deleteGroup(){const Z=(0,M.kZ)();Z.width="450px",Z.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(C.P,Z).afterClosed().subscribe(xe=>{xe&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[b.r.GROUP_DEF_MAIL_FOOTER,b.r.GROUP_SYNC_ENABLED,b.r.GROUP_LAST_SYNC_STATE,b.r.GROUP_LAST_SYNC_TIMESTAMP,b.r.GROUP_STRUCTURE_SYNC_ENABLED,b.r.GROUP_LAST_STRUCTURE_SYNC_STATE,b.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(Z=>{this.groups=Z,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(Z){this.filterValue=Z,this.filtering=""!==Z}onMoveGroup(Z){const de=(0,M.kZ)();de.width="550px",de.data={group:Z,theme:"group-theme"},this.dialog.open(v.c,de).afterClosed().subscribe(ot=>{ot&&this.refreshTable()})}}return N.id="GroupSubgroupsComponent",N.\u0275fac=function(Z){return new(Z||N)(L.Y36(O.uw),L.Y36(m.ff),L.Y36(R.x4),L.Y36(R.fb))},N.\u0275cmp=L.Xpm({type:N,selectors:[["app-group-subgroups"]],viewQuery:function(Z,de){if(1&Z&&L.Gf(te,7),2&Z){let xe;L.iGM(xe=L.CRH())&&(de.toggle=xe.first)}},hostVars:2,hostBindings:function(Z,de){2&Z&&L.ekj("router-component",de.true)},decls:18,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","data-cy","new-subgroup-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["color","accent","data-cy","new-subgroup-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","class","mr-2","data-cy","delete-group-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable",4,"ngIf"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","groupMoved","refreshTable",4,"ngIf"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","groupMoved","refreshTable"]],template:function(Z,de){if(1&Z&&(L.TgZ(0,"div")(1,"h1",0),L._uU(2),L.ALo(3,"translate"),L.qZA(),L.TgZ(4,"perun-web-apps-refresh-button",1),L.NdJ("refresh",function(){return de.refreshTable()}),L.qZA(),L.YNc(5,Q,3,3,"button",2),L.YNc(6,ge,3,5,"span",3),L.ALo(7,"async"),L.TgZ(8,"perun-web-apps-debounce-filter",4),L.NdJ("filter",function(ot){return de.applyFilter(ot)}),L.qZA(),L.TgZ(9,"mat-slide-toggle",5,6),L.NdJ("change",function(){return de.selected.clear()})("ngModelChange",function(ot){return de.showGroupList=ot}),L._uU(11),L.ALo(12,"translate"),L.qZA(),L.TgZ(13,"label"),L._uU(14),L.ALo(15,"translate"),L.qZA(),L.YNc(16,ve,1,0,"mat-spinner",7),L.YNc(17,se,3,2,"div",8),L.qZA()),2&Z){const xe=L.MAs(10);L.xp6(2),L.Oqu(L.lcZ(3,10,"GROUP_DETAIL.SUBGROUPS.TITLE")),L.xp6(3),L.Q6J("ngIf",de.createAuth),L.xp6(1),L.Q6J("ngIf",L.VKq(18,le,L.lcZ(7,12,de.removeAuth$))),L.xp6(2),L.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),L.xp6(1),L.Q6J("ngModel",de.showGroupList),L.xp6(2),L.Oqu(L.lcZ(12,14,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),L.xp6(2),L.uIk("for",xe.inputId),L.xp6(1),L.Oqu(L.lcZ(15,16,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),L.xp6(2),L.Q6J("ngIf",de.loading),L.xp6(1),L.Q6J("ngIf",!de.loading)}},dependencies:[q.O5,ee.JJ,ee.On,z.lW,ie.Ou,Te.gM,pe.Rr,Le.W,T.t,W.I,F.P,q.Ov,V.X$]}),N})()},85243:(Xe,ue,p)=>{"use strict";p.d(ue,{j:()=>de});var e=p(61744),A=p(10036),C=p(95017),M=p(9244),m=p(65412),b=p(81591),D=p(64080),v=p(94650),R=p(89383),B=p(36895),w=p(4859),L=p(51572),O=p(25788),q=p(7434);function ee(xe,ot){1&xe&&v._UZ(0,"mat-spinner",6)}function z(xe,ot){if(1&xe){const Fe=v.EpF();v.TgZ(0,"perun-web-apps-immediate-filter",7),v.NdJ("filter",function(tt){v.CHM(Fe);const vt=v.oxw();return v.KtG(vt.applyFilter(tt))}),v.qZA()}2&xe&&v.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}const ie=function(){return["select","id","name","description"]};function Te(xe,ot){if(1&xe&&v._UZ(0,"perun-web-apps-groups-list",8),2&xe){const Fe=v.oxw();v.Q6J("disableGroups",!0)("disableMembers",!0)("displayedColumns",v.DdM(8,ie))("groupsToDisableCheckbox",Fe.membersGroups)("disableRouting",!0)("groups",Fe.groups)("filter",Fe.filterValue)("selection",Fe.selection)}}function pe(xe,ot){if(1&xe){const Fe=v.EpF();v.TgZ(0,"div",9)(1,"button",10),v.NdJ("click",function(){v.CHM(Fe);const tt=v.oxw();return v.KtG(tt.onCancel())}),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"button",11),v.NdJ("click",function(){v.CHM(Fe);const tt=v.oxw();return v.KtG(tt.onAdd())}),v._uU(5),v.ALo(6,"translate"),v.qZA()()}if(2&xe){const Fe=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),v.xp6(2),v.Q6J("disabled",0===Fe.selection.selected.length),v.xp6(1),v.hij(" ",v.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let Le=(()=>{class xe{constructor(Fe,ut,tt,vt,X,nt,Ae){this.dialogRef=Fe,this.data=ut,this.groupManager=tt,this.memberManager=vt,this.notificator=X,this.translate=nt,this.authResolver=Ae,this.loading=!1,this.groups=[],this.selection=new C.Ov(!0,[]),this.attrNames=[D.r.GROUP_SYNC_ENABLED,D.r.GROUP_LAST_SYNC_STATE,D.r.GROUP_LAST_SYNC_TIMESTAMP,D.r.GROUP_STRUCTURE_SYNC_ENABLED,D.r.GROUP_LAST_STRUCTURE_SYNC_STATE,D.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.filterValue=""}ngOnInit(){this.theme=this.data.theme,this.membersGroups=this.data.membersGroups,this.loading=!0,this.memberManager.getMemberById(this.data.memberId).subscribe(Fe=>{this.member=Fe,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(ut=>{this.groups=ut.filter(tt=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[tt])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const Fe=this.selection.selected.map(ut=>ut.id);this.loading=!0,this.groupManager.addMember(Fe,this.member.id).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(Fe){this.filterValue=Fe}}return xe.\u0275fac=function(Fe){return new(Fe||xe)(v.Y36(m.so),v.Y36(m.WI),v.Y36(e.ff),v.Y36(e.uq),v.Y36(b.V6),v.Y36(R.sK),v.Y36(b.x4))},xe.\u0275cmp=v.Xpm({type:xe,selectors:[["app-add-member-group-dialog"]],decls:9,vars:10,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter",4,"ngIf"],[3,"disableGroups","disableMembers","displayedColumns","groupsToDisableCheckbox","disableRouting","groups","filter","selection",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"disableGroups","disableMembers","displayedColumns","groupsToDisableCheckbox","disableRouting","groups","filter","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Fe,ut){1&Fe&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,ee,1,0,"mat-spinner",1),v.TgZ(5,"div",2),v.YNc(6,z,1,1,"perun-web-apps-immediate-filter",3),v.YNc(7,Te,1,9,"perun-web-apps-groups-list",4),v.qZA(),v.YNc(8,pe,7,7,"div",5),v.qZA()),2&Fe&&(v.Tol(ut.theme),v.xp6(2),v.Oqu(v.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),v.xp6(2),v.Q6J("ngIf",ut.loading),v.xp6(2),v.Q6J("ngIf",!ut.loading),v.xp6(1),v.Q6J("ngIf",!ut.loading),v.xp6(1),v.Q6J("ngIf",!ut.loading))},dependencies:[B.O5,w.lW,m.uh,m.xY,m.H8,L.Ou,O.W,q.L,R.X$]}),xe})();var T=p(30671);function W(xe,ot){1&xe&&v._UZ(0,"mat-spinner",6)}function F(xe,ot){1&xe&&v._UZ(0,"th",15)}function V(xe,ot){if(1&xe&&(v.TgZ(0,"td",16),v._uU(1),v.qZA()),2&xe){const Fe=ot.$implicit;v.xp6(1),v.Oqu(Fe.name)}}function te(xe,ot){1&xe&&v._UZ(0,"tr",17)}function Q(xe,ot){1&xe&&v._UZ(0,"tr",18)}function Ee(xe,ot){if(1&xe&&(v.TgZ(0,"div",7)(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",8),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"table",9),v.ynx(8,10),v.YNc(9,F,1,0,"th",11),v.YNc(10,V,2,1,"td",12),v.BQk(),v.YNc(11,te,1,0,"tr",13),v.YNc(12,Q,1,0,"tr",14),v.qZA()()),2&xe){const Fe=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),v.xp6(3),v.hij(" ",v.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),v.xp6(2),v.Q6J("dataSource",Fe.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",Fe.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",Fe.displayedColumns)}}let ge=(()=>{class xe{constructor(Fe,ut,tt,vt,X){this.dialogRef=Fe,this.data=ut,this.groupManager=tt,this.notificator=vt,this.translate=X,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new T.by(this.data.groups)}onRemove(){this.loading=!0;const Fe=this.dataSource.data.map(ut=>ut.id);this.groupManager.removeMember(Fe,this.data.memberId).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return xe.\u0275fac=function(Fe){return new(Fe||xe)(v.Y36(m.so),v.Y36(m.WI),v.Y36(e.ff),v.Y36(b.V6),v.Y36(R.sK))},xe.\u0275cmp=v.Xpm({type:xe,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Fe,ut){1&Fe&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,W,1,0,"mat-spinner",1),v.YNc(5,Ee,13,9,"div",2),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return ut.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return ut.onRemove()}),v._uU(11),v.ALo(12,"translate"),v.qZA()()()),2&Fe&&(v.Tol(ut.theme),v.xp6(2),v.Oqu(v.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),v.xp6(2),v.Q6J("ngIf",ut.loading),v.xp6(1),v.Q6J("ngIf",!ut.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),v.xp6(2),v.Q6J("disabled",ut.loading),v.xp6(1),v.hij(" ",v.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},dependencies:[B.O5,w.lW,T.BZ,T.fO,T.as,T.w1,T.Dz,T.nj,T.ge,T.ev,T.XQ,T.Gk,m.uh,m.xY,m.H8,L.Ou,R.X$]}),xe})();var ve=p(54004),De=p(68675),he=p(94364),Ye=p(10266),Be=p(96214);function se(xe,ot){if(1&xe){const Fe=v.EpF();v.TgZ(0,"button",7),v.NdJ("click",function(){v.CHM(Fe);const tt=v.oxw();return v.KtG(tt.addGroup())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&xe&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function le(xe,ot){if(1&xe){const Fe=v.EpF();v.TgZ(0,"span",8),v.ALo(1,"translate"),v.TgZ(2,"button",9),v.NdJ("click",function(){v.CHM(Fe);const tt=v.oxw();return v.KtG(tt.removeGroup())}),v._uU(3),v.ALo(4,"translate"),v.qZA()()}if(2&xe){const Fe=ot.ngIf,ut=v.oxw();v.s9C("matTooltip",v.lcZ(1,4,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),v.Q6J("matTooltipDisabled",Fe.removeAuth),v.xp6(2),v.Q6J("disabled",0===ut.selection.selected.length||!Fe.removeAuth),v.xp6(1),v.hij(" ",v.lcZ(4,6,"MEMBER_DETAIL.GROUPS.REMOVE")," ")}}function k(xe,ot){1&xe&&v._UZ(0,"mat-spinner",10)}const N=function(){return["select","id","name","description","expiration","groupStatus"]};function be(xe,ot){if(1&xe){const Fe=v.EpF();v.TgZ(0,"perun-web-apps-groups-list",11),v.NdJ("refreshTable",function(){v.CHM(Fe);const tt=v.oxw();return v.KtG(tt.refreshTable())}),v.qZA()}if(2&xe){const Fe=v.oxw();v.Q6J("displayedColumns",v.DdM(8,N))("memberId",Fe.memberId)("disableRouting",!Fe.routeAuth)("groups",Fe.groups)("filter",Fe.filterValue)("memberGroupStatus",Fe.member.groupStatus)("selection",Fe.selection)("tableId",Fe.tableId)}}const Z=function(xe){return{removeAuth:xe}};let de=(()=>{class xe{constructor(Fe,ut,tt,vt,X){this.groupsService=Fe,this.route=ut,this.dialog=tt,this.authResolver=vt,this.memberService=X,this.filterValue="",this.tableId=A.W1,this.selection=new C.Ov(!0,[]),this.removeAuth$=this.selection.changed.pipe((0,ve.U)(nt=>nt.source.selected.reduce((Ae,ye)=>Ae&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[ye]),!0)),(0,De.O)(!0))}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(Fe=>{this.memberId=Number(Fe.memberId),this.memberService.getMemberById(this.memberId).subscribe(ut=>{this.member=ut,this.groupsService.getAllGroups(this.member.voId).subscribe(tt=>{this.allGroups=tt,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,[D.r.MEMBER_DEF_GROUP_EXPIRATION,D.r.MEMBER_GROUP_STATUS,D.r.MEMBER_GROUP_STATUS_INDIRECT]).subscribe(Fe=>{this.selection.clear(),this.groups=Fe,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const Fe={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((ut,tt)=>ut||this.authResolver.isAuthorized("addMember_Group_Member_policy",[tt]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[Fe,this.groups[0]]))}addGroup(){const Fe=(0,M.kZ)();Fe.width="850px",Fe.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(tt=>tt.id)),theme:"member-theme"},this.dialog.open(Le,Fe).afterClosed().subscribe(tt=>{tt&&this.refreshTable()})}removeGroup(){const Fe=(0,M.kZ)();Fe.width="650px",Fe.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(ge,Fe).afterClosed().subscribe(tt=>{tt&&this.refreshTable()})}applyFilter(Fe){this.filterValue=Fe}}return xe.id="MemberGroupsComponent",xe.\u0275fac=function(Fe){return new(Fe||xe)(v.Y36(e.ff),v.Y36(he.gz),v.Y36(m.uw),v.Y36(b.x4),v.Y36(e.uq))},xe.\u0275cmp=v.Xpm({type:xe,selectors:[["app-member-groups"]],hostVars:2,hostBindings:function(Fe,ut){2&Fe&&v.ekj("router-component",ut.true)},decls:10,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","memberId","disableRouting","groups","filter","memberGroupStatus","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","memberId","disableRouting","groups","filter","memberGroupStatus","selection","tableId","refreshTable"]],template:function(Fe,ut){1&Fe&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return ut.refreshTable()}),v.qZA(),v.YNc(4,se,3,3,"button",2),v.YNc(5,le,5,8,"span",3),v.ALo(6,"async"),v.TgZ(7,"perun-web-apps-immediate-filter",4),v.NdJ("filter",function(vt){return ut.applyFilter(vt)}),v.qZA(),v.YNc(8,k,1,0,"mat-spinner",5),v.YNc(9,be,1,9,"perun-web-apps-groups-list",6)),2&Fe&&(v.xp6(1),v.Oqu(v.lcZ(2,6,"MEMBER_DETAIL.GROUPS.TITLE")),v.xp6(3),v.Q6J("ngIf",ut.addAuth),v.xp6(1),v.Q6J("ngIf",v.VKq(10,Z,v.lcZ(6,8,ut.removeAuth$))),v.xp6(2),v.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),v.xp6(1),v.Q6J("ngIf",ut.loading),v.xp6(1),v.Q6J("ngIf",!ut.loading))},dependencies:[B.O5,w.lW,L.Ou,Ye.gM,O.W,Be.t,q.L,B.Ov,R.X$]}),xe})()},94856:(Xe,ue,p)=>{"use strict";p.d(ue,{c:()=>Ee});var e=p(61744),A=p(10036),C=p(24006),M=p(36895),m=p(81591),b=p(9244),D=p(23325),v=p(94650),R=p(65412),B=p(3238),w=p(59549),L=p(4859),O=p(56709),q=p(84385),ee=p(51572),z=p(10266),ie=p(96214),Te=p(39798),pe=p(64901),Le=p(99168),T=p(89383);function W(ge,ve){if(1&ge){const De=v.EpF();v.TgZ(0,"button",18),v.NdJ("click",function(){v.CHM(De);const Ye=v.oxw();return v.KtG(Ye.showDetails(!0))}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&ge&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function F(ge,ve){if(1&ge){const De=v.EpF();v.TgZ(0,"button",18),v.NdJ("click",function(){v.CHM(De);const Ye=v.oxw();return v.KtG(Ye.showDetails(!1))}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&ge&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function V(ge,ve){if(1&ge){const De=v.EpF();v.TgZ(0,"button",19),v.NdJ("click",function(){v.CHM(De);const Ye=v.oxw();return v.KtG(Ye.setColumns())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&ge){const De=v.oxw();v.Q6J("disabled",De.showAllDetails),v.xp6(1),v.hij(" ",v.lcZ(2,2,"VO_DETAIL.APPLICATION.SET_COLUMN_SETTINGS")," ")}}function te(ge,ve){1&ge&&v._UZ(0,"mat-spinner",20)}function Q(ge,ve){if(1&ge&&(v.TgZ(0,"div"),v._UZ(1,"app-applications-dynamic-list",21),v.qZA()),2&ge){const De=v.oxw();v.xp6(1),v.Q6J("tableId",De.showAllDetails?De.detailTableId:De.tableId)("searchString",De.filterValue)("displayedColumns",De.currentColumns)("fedColumns",De.configuredFedColumns)("fedAttrNames",De.fedAttrNames)("states",De.currentStates)("dateFrom",De.startDate.value)("dateTo",De.endDate.value)("includeGroupApps",De.showGroupApps)("refreshTable",De.refresh)("vo",De.vo)}}let Ee=(()=>{class ge{constructor(De,he,Ye,Be){this.registrarManager=De,this.entityStorageService=he,this.attributeManager=Ye,this.dialog=Be,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.simplePrependColumns=["id"],this.groupPrependColumns=["id","groupId","groupName"],this.simpleColumns=["createdAt","type","state","createdBy","modifiedBy"],this.detailedColumns=["createdAt","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.configuredColumns=[],this.configuredFedColumns=[],this.currentColumns=[],this.columnsAuth=!1,this.filterValue="",this.showAllDetails=!1,this.detailTableId=A.Jf,this.tableId=A.Hi,this.showGroupApps=!1,this.refresh=!1,this.loading=!0,this.fedAttrNames=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.startDate=new C.p4((0,M.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new C.p4((0,M.p6)(new Date,"yyyy-MM-dd","en-GB")),this.attributeManager.getIdpAttributeDefinitions().subscribe(De=>{De.forEach(he=>{this.fedAttrNames.includes(he.friendlyName)||this.fedAttrNames.push(he.friendlyName)})}),this.loadViewConfiguration()}select(){switch(this.state){case"approved":this.currentStates=["APPROVED"];break;case"rejected":this.currentStates=["REJECTED"];break;case"wfmv":this.currentStates=["NEW"];break;case"submited":this.currentStates=["VERIFIED"];break;case"pending":this.currentStates=["NEW","VERIFIED"];break;case"all":this.currentStates=null}}yearAgo(){const De=new Date;return De.setDate(De.getDate()-365),De}showGroupApplications(De){this.showGroupApps=De.checked,this.currentColumns=this.refreshColumns()}showDetails(De){this.loading=!0,this.showAllDetails=De,this.loadViewConfiguration()}applyFilter(De){this.filterValue=De}refreshColumns(){return this.showAllDetails?this.showGroupApps?this.groupPrependColumns.concat(this.detailedColumns):this.simplePrependColumns.concat(this.detailedColumns):this.configuredColumns.length>0?this.showGroupApps?this.groupPrependColumns.concat(this.configuredColumns):this.simplePrependColumns.concat(this.configuredColumns):this.showGroupApps?this.groupPrependColumns.concat(this.simpleColumns):this.simplePrependColumns.concat(this.simpleColumns)}loadViewConfiguration(){this.attributeManager.getVoAttributeByName(this.vo.id,"urn:perun:vo:attribute-def:def:applicationViewPreferences").subscribe(De=>{null!=De?.value&&De?.value.length>0?(this.configuredColumns=De.value,this.configuredFedColumns=this.configuredColumns.filter(he=>this.fedAttrNames.includes(he))):(this.configuredColumns=[],this.configuredFedColumns=[]),this.columnsAuth=De.writable,this.currentColumns=this.refreshColumns(),this.loading=!1})}setColumns(){const De=(0,b.kZ)();De.width="650px",De.data={columns:[],voId:this.vo.id,theme:"vo-theme"},this.dialog.open(D.a,De).afterClosed().subscribe(Ye=>{Ye&&this.loadViewConfiguration()})}}return ge.id="VoApplicationsComponent",ge.\u0275fac=function(De){return new(De||ge)(v.Y36(e.tk),v.Y36(m.fb),v.Y36(e.H8),v.Y36(R.uw))},ge.\u0275cmp=v.Xpm({type:ge,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(De,he){2&De&&v.ekj("router-component",he.true)},decls:41,vars:41,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],[1,"input-width-250","mr-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","pending"],["value","wfmv"],["value","submited"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],["color","primary",3,"checked","change"],["matTooltipPosition","above",3,"matTooltipDisabled","matTooltip"],["mat-stroked-button","","class","ml-2",3,"disabled","click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],["mat-stroked-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","displayedColumns","fedColumns","fedAttrNames","states","dateFrom","dateTo","includeGroupApps","refreshTable","vo"]],template:function(De,he){1&De&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return he.refresh=!he.refresh}),v.qZA(),v.YNc(5,W,3,3,"button",2),v.YNc(6,F,3,3,"button",2),v.TgZ(7,"mat-form-field",3)(8,"mat-label"),v._uU(9),v.ALo(10,"translate"),v.qZA(),v.TgZ(11,"mat-select",4),v.NdJ("selectionChange",function(){return he.select()})("valueChange",function(Be){return he.state=Be}),v.TgZ(12,"mat-option",5),v._uU(13),v.ALo(14,"translate"),v.qZA(),v.TgZ(15,"mat-option",6),v._uU(16),v.ALo(17,"translate"),v.qZA(),v.TgZ(18,"mat-option",7),v._uU(19),v.ALo(20,"translate"),v.qZA(),v.TgZ(21,"mat-option",8),v._uU(22),v.ALo(23,"translate"),v.qZA(),v.TgZ(24,"mat-option",9),v._uU(25),v.ALo(26,"translate"),v.qZA(),v.TgZ(27,"mat-option",10),v._uU(28),v.ALo(29,"translate"),v.qZA()()(),v.TgZ(30,"perun-web-apps-debounce-filter",11),v.NdJ("filter",function(Be){return he.applyFilter(Be)}),v.qZA(),v.TgZ(31,"perun-web-apps-date-range",12),v.NdJ("datePicker",function(){return he.select()}),v.qZA(),v.TgZ(32,"div")(33,"mat-checkbox",13),v.NdJ("change",function(Be){return he.showGroupApplications(Be)}),v._uU(34),v.ALo(35,"translate"),v.qZA(),v.TgZ(36,"span",14),v.ALo(37,"translate"),v.YNc(38,V,3,4,"button",15),v.qZA()()(),v.YNc(39,te,1,0,"mat-spinner",16),v.YNc(40,Q,2,11,"div",17)),2&De&&(v.xp6(1),v.Oqu(v.lcZ(2,21,"VO_DETAIL.APPLICATION.TITLE")),v.xp6(4),v.Q6J("ngIf",!he.showAllDetails),v.xp6(1),v.Q6J("ngIf",he.showAllDetails),v.xp6(3),v.Oqu(v.lcZ(10,23,"APPLICATIONS_LIST.STATE")),v.xp6(2),v.Q6J("value",he.state),v.xp6(2),v.Oqu(v.lcZ(14,25,"VO_DETAIL.APPLICATION.SELECTION_ALL")),v.xp6(3),v.Oqu(v.lcZ(17,27,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),v.xp6(3),v.Oqu(v.lcZ(20,29,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),v.xp6(3),v.Oqu(v.lcZ(23,31,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),v.xp6(3),v.Oqu(v.lcZ(26,33,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),v.xp6(3),v.Oqu(v.lcZ(29,35,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),v.xp6(2),v.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),v.xp6(1),v.Q6J("endDate",he.endDate)("startDate",he.startDate),v.xp6(2),v.Q6J("checked",he.showGroupApps),v.xp6(1),v.hij(" ",v.lcZ(35,37,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),v.xp6(2),v.s9C("matTooltip",v.lcZ(37,39,"VO_DETAIL.APPLICATION.COLUMNS_TOOLTIP")),v.Q6J("matTooltipDisabled",!he.showAllDetails),v.xp6(2),v.Q6J("ngIf",he.columnsAuth),v.xp6(1),v.Q6J("ngIf",he.loading),v.xp6(1),v.Q6J("ngIf",!he.loading))},dependencies:[M.O5,B.ey,w.KE,w.hX,L.lW,O.oG,q.gD,ee.Ou,z.gM,ie.t,Te.S,pe.P,Le.S,T.X$]}),ge})()},4732:(Xe,ue,p)=>{"use strict";p.d(ue,{G:()=>Z});var e=p(81889),A=p(41656),C=p(95017),M=p(87842),m=p(9244),b=p(61744),D=p(10036),v=p(64080),R=p(81591),B=p(61135),w=p(56451),L=p(63900),O=p(18505),q=p(68675),ee=p(54004),z=p(94650),ie=p(65412),Te=p(36895),pe=p(24006),Le=p(4859),T=p(51572),W=p(10266),F=p(90455),V=p(25788),te=p(96214),Q=p(58956),Ee=p(64901),ge=p(73358),ve=p(89383);const De=["toggle"];function he(de,xe){if(1&de){const ot=z.EpF();z.TgZ(0,"button",10),z.NdJ("click",function(){z.CHM(ot);const ut=z.oxw();return z.KtG(ut.onCreateGroup())}),z._uU(1),z.ALo(2,"translate"),z.qZA()}2&de&&(z.xp6(1),z.hij(" ",z.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function Ye(de,xe){if(1&de){const ot=z.EpF();z.TgZ(0,"span",11),z.ALo(1,"translate"),z.TgZ(2,"button",12),z.NdJ("click",function(){z.CHM(ot);const ut=z.oxw();return z.KtG(ut.deleteGroup())}),z._uU(3),z.ALo(4,"translate"),z.qZA()()}if(2&de){const ot=xe.ngIf,Fe=z.oxw();z.s9C("matTooltip",z.lcZ(1,4,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),z.Q6J("matTooltipDisabled",ot.removeAuth),z.xp6(2),z.Q6J("disabled",0===Fe.selected.selected.length||!ot.removeAuth),z.xp6(1),z.hij(" ",z.lcZ(4,6,"VO_DETAIL.GROUPS.DELETE_GROUP")," ")}}function Be(de,xe){if(1&de){const ot=z.EpF();z.TgZ(0,"perun-web-apps-groups-tree",14),z.NdJ("moveGroup",function(ut){z.CHM(ot);const tt=z.oxw(2);return z.KtG(tt.onMoveGroup(ut))})("refreshTable",function(){z.CHM(ot);const ut=z.oxw(2);return z.KtG(ut.refresh())}),z.qZA()}if(2&de){const ot=z.oxw(2);z.Q6J("expandAll",ot.filtering)("disableRouting",!ot.routeAuth)("groups",ot.groups)("selection",ot.selected)("filterValue",ot.filterValue)("vo",ot.vo)}}function se(de,xe){if(1&de&&(z.TgZ(0,"div"),z.YNc(1,Be,1,6,"perun-web-apps-groups-tree",13),z.ALo(2,"async"),z.qZA()),2&de){const ot=z.oxw(),Fe=z.MAs(20);z.xp6(1),z.Q6J("perunWebAppsLoader",z.lcZ(2,2,ot.loading$))("perunWebAppsLoaderIndicator",Fe)}}function le(de,xe){if(1&de){const ot=z.EpF();z.TgZ(0,"perun-web-apps-groups-list",16),z.NdJ("groupMoved",function(ut){z.CHM(ot);const tt=z.oxw(2);return z.KtG(tt.onMoveGroup(ut))})("queryChanged",function(ut){z.CHM(ot);const tt=z.oxw(2);return z.KtG(tt.nextPage.next(ut))})("refreshTable",function(){z.CHM(ot);const ut=z.oxw(2);return z.KtG(ut.refresh())})("downloadAll",function(ut){z.CHM(ot);const tt=z.oxw(2);return z.KtG(tt.downloadAll(ut))}),z.ALo(1,"async"),z.qZA()}if(2&de){const ot=z.oxw(2);z.Q6J("disableMembers",!0)("displayedColumns",ot.displayedColumns)("disableRouting",!ot.routeAuth)("groups",z.lcZ(1,7,ot.groupPage$))("selection",ot.selected)("filter",ot.filterValue)("tableId",ot.tableId)}}function k(de,xe){if(1&de&&(z.TgZ(0,"div"),z.YNc(1,le,2,9,"perun-web-apps-groups-list",15),z.ALo(2,"async"),z.qZA()),2&de){const ot=z.oxw(),Fe=z.MAs(20);z.xp6(1),z.Q6J("perunWebAppsLoader",z.lcZ(2,2,ot.loading$))("perunWebAppsLoaderIndicator",Fe)}}function N(de,xe){1&de&&(z.TgZ(0,"div",17),z._UZ(1,"mat-spinner"),z.qZA())}const be=function(de){return{removeAuth:de}};let Z=(()=>{class de{constructor(ot,Fe,ut,tt,vt){this.dialog=ot,this.groupService=Fe,this.authResolver=ut,this.entityStorageService=tt,this.groupUtils=vt,this.groups=[],this.nextPage=new B.X({}),this.groupPage$=this.nextPage.pipe((0,L.w)(X=>this.groupService.getGroupsPage({vo:this.vo.id,attrNames:this.attrNames,query:{order:X.order,pageSize:X.pageSize,offset:X.offset,searchString:X.searchString,sortColumn:X.sortColumn}})),(0,O.b)(X=>{this.groups=X.data,this.setAuthRights(),this.selected.clear(),setTimeout(()=>this.loadingSubject$.next(!1),200)}),(0,q.O)({data:[],totalCount:0,offset:0,pageSize:0})),this.showGroupList=!1,this.selected=new C.Ov(!0,[]),this.loadingSubject$=new B.X(!1),this.loading$=(0,w.T)(this.loadingSubject$,this.nextPage.pipe((0,ee.U)(()=>!0))),this.filtering=!1,this.filterValue="",this.tableId=D.rc,this.displayedColumns=["select","id","name","description","menu"],this.removeAuth$=this.selected.changed.pipe((0,ee.U)(X=>X.source.selected.reduce((nt,Ae)=>nt&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,Ae]),!0)),(0,q.O)(!0)),this.attrNames=[v.r.GROUP_SYNC_ENABLED,v.r.GROUP_LAST_SYNC_STATE,v.r.GROUP_LAST_SYNC_TIMESTAMP,v.r.GROUP_STRUCTURE_SYNC_ENABLED,v.r.GROUP_LAST_STRUCTURE_SYNC_STATE,v.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}onCreateGroup(){const ot=(0,m.kZ)();ot.width="450px",ot.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(e.y,ot).afterClosed().subscribe(ut=>{ut&&this.refresh()})}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),"list"===localStorage.getItem("preferedValue")?(this.toggle.toggle(),this.showGroupList=!0):this.refresh(),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree"),this.refresh()})}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createGroup_Vo_Group_policy",[this.vo]),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[this.vo,this.groups[0]]))}deleteGroup(){const ot=(0,m.kZ)();ot.width="450px",ot.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(A.P,ot).afterClosed().subscribe(ut=>{ut&&this.refresh()})}removeAllGroups(){this.selected.clear()}onMoveGroup(ot){const Fe=(0,m.kZ)();Fe.width="550px",Fe.data={group:ot,theme:"vo-theme"},this.dialog.open(M.c,Fe).afterClosed().subscribe(tt=>{tt&&this.refresh()})}loadAllGroups(){this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,this.attrNames).subscribe(ot=>{this.groups=ot,this.selected.clear(),this.setAuthRights(),this.loadingSubject$.next(!1)})}applyFilter(ot){this.filterValue=ot,this.filtering=""!==ot}refresh(){this.loadingSubject$.next(!0),this.showGroupList?this.nextPage.next(this.nextPage.value):this.loadAllGroups()}downloadAll(ot){const Fe=this.nextPage.getValue(),ut=(tt,vt)=>this.groupUtils.getDataForColumn(tt,vt);this.groupService.getGroupsPage({vo:this.vo.id,attrNames:this.attrNames,query:{order:Fe.order,pageSize:ot.length,offset:0,searchString:Fe.searchString,sortColumn:Fe.sortColumn}}).subscribe({next:tt=>{(0,m.O6)((0,m.Xn)(tt.data,this.displayedColumns,ut),ot.format)}})}}return de.id="VoGroupsComponent",de.\u0275fac=function(ot){return new(ot||de)(z.Y36(ie.uw),z.Y36(b.ff),z.Y36(R.x4),z.Y36(R.fb),z.Y36(R.K1))},de.\u0275cmp=z.Xpm({type:de,selectors:[["app-vo-groups"]],viewQuery:function(ot,Fe){if(1&ot&&z.Gf(De,7),2&ot){let ut;z.iGM(ut=z.CRH())&&(Fe.toggle=ut.first)}},hostVars:2,hostBindings:function(ot,Fe){2&ot&&z.ekj("router-component",Fe.true)},decls:21,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","create-group-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],[1,"mt-3","position-relative"],[4,"ngIf"],["spinner",""],["color","accent","data-cy","create-group-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable"],["theme","vo-theme",3,"disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","groupMoved","queryChanged","refreshTable","downloadAll",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["theme","vo-theme",3,"disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","groupMoved","queryChanged","refreshTable","downloadAll"],[1,"spinner-container"]],template:function(ot,Fe){if(1&ot&&(z.TgZ(0,"div")(1,"h1",0),z._uU(2),z.ALo(3,"translate"),z.qZA(),z.TgZ(4,"perun-web-apps-refresh-button",1),z.NdJ("refresh",function(){return Fe.refresh()}),z.qZA(),z.YNc(5,he,3,3,"button",2),z.YNc(6,Ye,5,8,"span",3),z.ALo(7,"async"),z.TgZ(8,"perun-web-apps-debounce-filter",4),z.NdJ("filter",function(tt){return Fe.applyFilter(tt)}),z.qZA(),z.TgZ(9,"mat-slide-toggle",5,6),z.NdJ("change",function(){return Fe.removeAllGroups()})("ngModelChange",function(tt){return Fe.showGroupList=tt}),z._uU(11),z.ALo(12,"translate"),z.qZA(),z.TgZ(13,"label"),z._uU(14),z.ALo(15,"translate"),z.qZA(),z.TgZ(16,"div",7),z.YNc(17,se,3,4,"div",8),z.YNc(18,k,3,4,"div",8),z.qZA()(),z.YNc(19,N,2,0,"ng-template",null,9,z.W1O)),2&ot){const ut=z.MAs(10);z.xp6(2),z.Oqu(z.lcZ(3,10,"VO_DETAIL.GROUPS.TITLE")),z.xp6(3),z.Q6J("ngIf",Fe.createAuth),z.xp6(1),z.Q6J("ngIf",z.VKq(18,be,z.lcZ(7,12,Fe.removeAuth$))),z.xp6(2),z.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),z.xp6(1),z.Q6J("ngModel",Fe.showGroupList),z.xp6(2),z.hij(" ",z.lcZ(12,14,"VO_DETAIL.GROUPS.TREE_VIEW"),""),z.xp6(2),z.uIk("for",ut.inputId),z.xp6(1),z.Oqu(z.lcZ(15,16,"VO_DETAIL.GROUPS.LIST_VIEW")),z.xp6(3),z.Q6J("ngIf",!Fe.showGroupList),z.xp6(1),z.Q6J("ngIf",Fe.showGroupList)}},dependencies:[Te.O5,pe.JJ,pe.On,Le.lW,T.Ou,W.gM,F.Rr,V.W,te.t,Q.I,Ee.P,ge.e,Te.Ov,ve.X$],changeDetection:0}),de})()},81847:(Xe,ue,p)=>{"use strict";p.d(ue,{y:()=>le});var e=p(95017),A=p(81591),C=p(53455),M=p(61744),m=p(64080),b=p(24006),D=p(10036),v=p(9244),R=p(74414),B=p(51525),w=p(94742),L=p(94650),O=p(65412),q=p(36895),ee=p(3238),z=p(59549),ie=p(4859),Te=p(84385),pe=p(51572),Le=p(10266),T=p(28255),W=p(96214),F=p(64901),V=p(4811),te=p(89383),Q=p(20551);function Ee(k,N){if(1&k){const be=L.EpF();L.TgZ(0,"button",16),L.NdJ("click",function(){L.CHM(be);const de=L.oxw();return L.KtG(de.onAddMember())}),L._uU(1),L.ALo(2,"translate"),L.qZA()}if(2&k){const be=L.oxw();L.Q6J("disabled",be.blockManualMemberAdding),L.xp6(1),L.hij(" ",L.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function ge(k,N){if(1&k&&(L.TgZ(0,"button",17),L._uU(1),L.ALo(2,"translate"),L.qZA()),2&k){const be=L.oxw(),Z=L.MAs(11);L.Q6J("disabled",be.blockManualMemberAdding)("matMenuTriggerFor",Z),L.xp6(1),L.hij(" ",L.lcZ(2,3,"VO_DETAIL.MEMBERS.INVITE")," ")}}function ve(k,N){if(1&k){const be=L.EpF();L.TgZ(0,"button",18),L.NdJ("click",function(){L.CHM(be);const de=L.oxw();return L.KtG(de.onInviteMember())}),L._uU(1),L.ALo(2,"translate"),L.qZA()}2&k&&(L.xp6(1),L.hij(" ",L.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE_ONE")," "))}function De(k,N){if(1&k){const be=L.EpF();L.TgZ(0,"button",18),L.NdJ("click",function(){L.CHM(be);const de=L.oxw();return L.KtG(de.onBulkInvite())}),L._uU(1),L.ALo(2,"translate"),L.qZA()}2&k&&(L.xp6(1),L.hij(" ",L.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE_BULK")," "))}function he(k,N){if(1&k){const be=L.EpF();L.TgZ(0,"button",19),L.NdJ("click",function(){L.CHM(be);const de=L.oxw();return L.KtG(de.onRemoveMembers())}),L._uU(1),L.ALo(2,"translate"),L.qZA()}if(2&k){const be=L.oxw();L.Q6J("disabled",be.selection.isEmpty()),L.xp6(1),L.hij(" ",L.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function Ye(k,N){if(1&k&&(L.TgZ(0,"mat-option",20),L._uU(1),L.ALo(2,"memberStatus"),L.qZA()),2&k){const be=N.$implicit;L.Q6J("value",be),L.xp6(1),L.Oqu(L.lcZ(2,2,be))}}function Be(k,N){1&k&&L._UZ(0,"mat-spinner",21)}function se(k,N){if(1&k&&L._UZ(0,"perun-web-apps-members-dynamic-list",22),2&k){const be=L.oxw();L.Q6J("attrNames",be.attrNames)("selection",be.selection)("tableId",be.tableId)("displayedColumns",be.displayedColumns)("updateTable",be.updateTable)("searchString",be.searchString)("selectedStatuses",be.selectedStatuses)("voId",be.vo.id)("isMembersGroup",!1)}}let le=(()=>{class k{constructor(be,Z,de,xe,ot,Fe,ut){this.notificator=be,this.dialog=Z,this.authzService=de,this.storeService=xe,this.attributesManager=ot,this.apiRequest=Fe,this.entityStorageService=ut,this.members=null,this.selection=new e.Ov(!0,[]),this.loading=!1,this.attrNames=[m.r.MEMBER_DEF_ORGANIZATION,m.r.MEMBER_DEF_MAIL,m.r.USER_DEF_ORGANIZATION,m.r.USER_DEF_PREFERRED_MAIL,m.r.MEMBER_DEF_EXPIRATION,m.r.MEMBER_LIFECYCLE_ALTERABLE],this.statuses=new b.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=D.j1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.updateTable=!1}ngOnInit(){this.loading=!0,this.statuses.setValue(this.selectedStatuses),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.vo.id).then(()=>this.loading=!1)}setAuthRights(){this.addAuth=this.authzService.isAuthorized("createMember_Vo_User_List_policy",[this.vo])&&this.authzService.isAuthorized("createMember_Vo_Candidate_List_policy",[this.vo]),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","fullName","status","organization","email","logins"],null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0]])),this.inviteAuth=this.authzService.isAuthorized("vo-sendInvitation_Vo_Group_String_String_String_policy",[this.vo])}onSearchByString(be){this.searchString=be,this.selection.clear()}onAddMember(){const be=(0,v.kZ)();be.width="1000px",be.data={voId:this.vo.id},this.dialog.open(B.H,be).afterClosed().subscribe(de=>{de&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const be=(0,v.kZ)();be.width="450px",be.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(C.X,be).afterClosed().subscribe(de=>{de&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const be=(0,v.kZ)();be.width="650px",be.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(R.R,be)}onBulkInvite(){const be=(0,v.kZ)();be.width="650px",be.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(w.F,be)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const be=this.statuses.value;return be?`${be[0]} ${be.length>1?"(+"+(be.length-1).toString()+" "+(2===be.length?"other)":"others)"):""}`:""}isManualAddingBlocked(be){return new Promise(Z=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(be,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe({next:de=>{this.blockManualMemberAdding=null!==de.value,Z()},error:de=>{"PrivilegeException"!==de.name&&this.notificator.showError(de.name),Z()}})})}changeStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return k.id="VoMembersComponent",k.\u0275fac=function(be){return new(be||k)(L.Y36(A.V6),L.Y36(O.uw),L.Y36(A.x4),L.Y36(A.d6),L.Y36(M.H8),L.Y36(A.F5),L.Y36(A.fb))},k.\u0275cmp=L.Xpm({type:k,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(be,Z){2&be&&L.ekj("router-component",Z.true)},decls:27,vars:23,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","mr-2 action-button","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-members","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","fix-select"],["multiple","",3,"formControl","closed"],["class","vo-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup",4,"ngIf"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup"]],template:function(be,Z){1&be&&(L.TgZ(0,"div",0)(1,"h1",1),L._uU(2),L.ALo(3,"translate"),L.qZA(),L.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),L.NdJ("click",function(){return Z.refreshTable()}),L.qZA(),L.TgZ(6,"div",4),L.ALo(7,"translate"),L.YNc(8,Ee,3,4,"button",5),L.qZA(),L.YNc(9,ge,3,5,"button",6),L.TgZ(10,"mat-menu",null,7),L.YNc(12,ve,3,3,"button",8),L.YNc(13,De,3,3,"button",8),L.qZA(),L.YNc(14,he,3,4,"button",9),L.TgZ(15,"mat-form-field",10)(16,"mat-label"),L._uU(17),L.ALo(18,"translate"),L.qZA(),L.TgZ(19,"mat-select",11),L.NdJ("closed",function(){return Z.changeStatuses()}),L.TgZ(20,"mat-select-trigger"),L._uU(21),L.ALo(22,"memberStatus"),L.qZA(),L.YNc(23,Ye,3,4,"mat-option",12),L.qZA()(),L.TgZ(24,"perun-web-apps-debounce-filter",13),L.NdJ("filter",function(xe){return Z.onSearchByString(xe)}),L.qZA()(),L.YNc(25,Be,1,0,"mat-spinner",14),L.YNc(26,se,1,9,"perun-web-apps-members-dynamic-list",15),L.qZA()),2&be&&(L.xp6(2),L.Oqu(L.lcZ(3,15,"VO_DETAIL.MEMBERS.TITLE")),L.xp6(4),L.s9C("matTooltip",L.lcZ(7,17,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),L.Q6J("matTooltipDisabled",!Z.blockManualMemberAdding),L.xp6(2),L.Q6J("ngIf",Z.addAuth),L.xp6(1),L.Q6J("ngIf",Z.inviteAuth),L.xp6(3),L.Q6J("ngIf",Z.inviteAuth),L.xp6(1),L.Q6J("ngIf",Z.inviteAuth),L.xp6(1),L.Q6J("ngIf",Z.removeAuth),L.xp6(3),L.Oqu(L.lcZ(18,19,"VO_DETAIL.MEMBERS.FILTER_STATUS")),L.xp6(2),L.Q6J("formControl",Z.statuses),L.xp6(2),L.hij(" ",L.lcZ(22,21,Z.displaySelectedStatuses())," "),L.xp6(2),L.Q6J("ngForOf",Z.statusList),L.xp6(1),L.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),L.xp6(1),L.Q6J("ngIf",Z.loading),L.xp6(1),L.Q6J("ngIf",!Z.loading))},dependencies:[q.sg,q.O5,ee.ey,z.KE,z.hX,b.JJ,b.oH,ie.lW,Te.gD,Te.$L,pe.Ou,Le.gM,T.VK,T.OP,T.p6,W.t,F.P,V.m,te.X$,Q.l],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),k})()},68056:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>pe});var e=p(95017),A=p(61744),C=p(533),M=p(10036),m=p(9244),b=p(81591),D=p(94650),v=p(65412),R=p(36895),B=p(4859),w=p(51572),L=p(96214),O=p(7434),q=p(62109),ee=p(89383);function z(Le,T){if(1&Le){const W=D.EpF();D.TgZ(0,"button",6),D.NdJ("click",function(){D.CHM(W);const V=D.oxw();return D.KtG(V.deleteSelectedResources())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&Le){const W=D.oxw();D.Q6J("disabled",0===W.selected.selected.length),D.xp6(1),D.hij(" ",D.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function ie(Le,T){1&Le&&D._UZ(0,"mat-spinner",7)}function Te(Le,T){if(1&Le&&D._UZ(0,"perun-web-apps-resources-list",8),2&Le){const W=D.oxw();D.Q6J("disableRouting",!W.routeAuth)("filterValue",W.filterValue)("resources",W.resources)("routingVo",!0)("displayedColumns",W.displayedColumns)("selection",W.selected)("tableId",W.tableId)}}let pe=(()=>{class Le{constructor(W,F,V,te){this.resourcesManager=W,this.dialog=F,this.authResolver=V,this.entityStorageService=te,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=M.nT,this.routeAuth=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.vo]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[this.vo,this.resources[0]])),this.displayedColumns=this.removeAuth?["select","id","name","facility","tags","description"]:["id","name","facility","tags","description"]}refreshTable(){this.loading=!0,this.resourcesManager.getRichResources(this.vo.id).subscribe(W=>{this.resources=W,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(W){this.filterValue=W}deleteSelectedResources(){const W=(0,m.kZ)();W.width="450px",W.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(C.f,W).afterClosed().subscribe(V=>{V&&this.refreshTable()})}}return Le.id="VoResourcesPreviewComponent",Le.\u0275fac=function(W){return new(W||Le)(D.Y36(A.xk),D.Y36(v.uw),D.Y36(b.x4),D.Y36(b.fb))},Le.\u0275cmp=D.Xpm({type:Le,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(W,F){2&W&&D.ekj("router-component",F.true)},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId"]],template:function(W,F){1&W&&(D.TgZ(0,"div")(1,"h1",0),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"perun-web-apps-refresh-button",1),D.NdJ("refresh",function(){return F.refreshTable()}),D.qZA(),D.YNc(5,z,3,4,"button",2),D.TgZ(6,"perun-web-apps-immediate-filter",3),D.NdJ("filter",function(te){return F.applyFilter(te)}),D.qZA(),D.YNc(7,ie,1,0,"mat-spinner",4),D.YNc(8,Te,1,7,"perun-web-apps-resources-list",5),D.qZA()),2&W&&(D.xp6(2),D.Oqu(D.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),D.xp6(3),D.Q6J("ngIf",F.removeAuth),D.xp6(1),D.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),D.xp6(1),D.Q6J("ngIf",F.loading),D.xp6(1),D.Q6J("ngIf",!F.loading))},dependencies:[R.O5,B.lW,w.Ou,L.t,O.L,q.C,ee.X$]}),Le})()},24219:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>nt});var e=p(81591),A=p(61744),C=p(94650),M=p(36895),m=p(3848),b=p(98380),D=p(96214),v=p(30671),R=p(51572),B=p(44850),w=p(37084),L=p(89383);function O(Ae,ye){1&Ae&&C._UZ(0,"mat-spinner",2)}function q(Ae,ye){if(1&Ae&&(C.TgZ(0,"mat-panel-description")(1,"div")(2,"i",10),C._uU(3," error "),C.qZA(),C._uU(4),C.ALo(5,"translate"),C.ALo(6,"translate"),C.qZA()()),2&Ae){const _e=C.oxw().$implicit,Se=C.oxw(2);C.xp6(4),C.HOy(" ",Se.getErrorCountStates(_e)," ",C.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",_e.taskList.length," ",C.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function ee(Ae,ye){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")," "))}function z(Ae,ye){if(1&Ae&&(C.TgZ(0,"td",24),C._uU(1),C.qZA()),2&Ae){const _e=ye.$implicit;C.xp6(1),C.Oqu(_e.id)}}function ie(Ae,ye){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")," "))}function Te(Ae,ye){if(1&Ae&&(C.TgZ(0,"td",24),C._uU(1),C.qZA()),2&Ae){const _e=ye.$implicit;C.xp6(1),C.Oqu(_e.service.name)}}function pe(Ae,ye){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")," "))}function Le(Ae,ye){if(1&Ae&&(C.TgZ(0,"td",24),C._uU(1),C.qZA()),2&Ae){const _e=ye.$implicit;C.xp6(1),C.Oqu(_e.status)}}function T(Ae,ye){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")," "))}function W(Ae,ye){if(1&Ae&&(C.TgZ(0,"div"),C._uU(1),C.ALo(2,"date"),C.qZA()),2&Ae){const _e=C.oxw().$implicit;C.xp6(1),C.hij(" ",C.xi3(2,1,_e.schedule,"d.M.y H:mm:ss")," ")}}function F(Ae,ye){1&Ae&&(C._uU(0),C.ALo(1,"translate")),2&Ae&&C.hij(" ",C.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function V(Ae,ye){if(1&Ae&&(C.TgZ(0,"td",24),C.YNc(1,W,3,4,"div",25),C.YNc(2,F,2,3,"ng-template",26,27,C.W1O),C.qZA()),2&Ae){const _e=ye.$implicit,Se=C.MAs(3);C.xp6(1),C.Q6J("ngIf",_e.schedule)("ngIfElse",Se)}}function te(Ae,ye){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")," "))}function Q(Ae,ye){if(1&Ae&&(C.TgZ(0,"div"),C._uU(1),C.ALo(2,"date"),C.qZA()),2&Ae){const _e=C.oxw().$implicit;C.xp6(1),C.hij(" ",C.xi3(2,1,_e.schedule,"d.M.y H:mm:ss")," ")}}function Ee(Ae,ye){1&Ae&&(C._uU(0),C.ALo(1,"translate")),2&Ae&&C.hij(" ",C.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function ge(Ae,ye){if(1&Ae&&(C.TgZ(0,"td",24),C.YNc(1,Q,3,4,"div",25),C.YNc(2,Ee,2,3,"ng-template",26,27,C.W1O),C.qZA()),2&Ae){const _e=ye.$implicit,Se=C.MAs(3);C.xp6(1),C.Q6J("ngIf",_e.startTime)("ngIfElse",Se)}}function ve(Ae,ye){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")," "))}function De(Ae,ye){if(1&Ae&&(C.TgZ(0,"div"),C._uU(1),C.ALo(2,"date"),C.qZA()),2&Ae){const _e=C.oxw().$implicit;C.xp6(1),C.hij(" ",C.xi3(2,1,_e.schedule,"d.M.y H:mm:ss")," ")}}function he(Ae,ye){1&Ae&&(C._uU(0),C.ALo(1,"translate")),2&Ae&&C.hij(" ",C.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Ye(Ae,ye){if(1&Ae&&(C.TgZ(0,"td",24),C.YNc(1,De,3,4,"div",25),C.YNc(2,he,2,3,"ng-template",26,27,C.W1O),C.qZA()),2&Ae){const _e=ye.$implicit,Se=C.MAs(3);C.xp6(1),C.Q6J("ngIf",_e.endTime)("ngIfElse",Se)}}function Be(Ae,ye){1&Ae&&C._UZ(0,"tr",28)}const se=function(Ae,ye,_e){return{redTableItem:Ae,greenTableItem:ye,yellowTableItem:_e}};function le(Ae,ye){if(1&Ae&&C._UZ(0,"tr",29),2&Ae){const _e=ye.$implicit;C.Q6J("ngClass",C.kEZ(1,se,"ERROR"===_e.status||"SENDERROR"===_e.status||"GENERROR"===_e.status,"DONE"===_e.status,"WARNING"===_e.status))}}function k(Ae,ye){if(1&Ae&&(C.TgZ(0,"table",12),C.ynx(1,13),C.YNc(2,ee,3,3,"th",14),C.YNc(3,z,2,1,"td",15),C.BQk(),C.ynx(4,16),C.YNc(5,ie,3,3,"th",14),C.YNc(6,Te,2,1,"td",15),C.BQk(),C.ynx(7,17),C.YNc(8,pe,3,3,"th",14),C.YNc(9,Le,2,1,"td",15),C.BQk(),C.ynx(10,18),C.YNc(11,T,3,3,"th",14),C.YNc(12,V,4,2,"td",15),C.BQk(),C.ynx(13,19),C.YNc(14,te,3,3,"th",14),C.YNc(15,ge,4,2,"td",15),C.BQk(),C.ynx(16,20),C.YNc(17,ve,3,3,"th",14),C.YNc(18,Ye,4,2,"td",15),C.BQk(),C.YNc(19,Be,1,0,"tr",21),C.YNc(20,le,1,5,"tr",22),C.qZA()),2&Ae){const _e=C.oxw(2).$implicit,Se=C.oxw(2);C.Q6J("dataSource",Se.datasources[Se.propagation.indexOf(_e)]),C.xp6(19),C.Q6J("matHeaderRowDef",Se.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",Se.displayedColumns)}}function N(Ae,ye){1&Ae&&(C.TgZ(0,"div"),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function be(Ae,ye){if(1&Ae&&(C._UZ(0,"mat-divider"),C.YNc(1,k,21,3,"table",11),C.YNc(2,N,3,3,"div",8)),2&Ae){const _e=C.oxw().$implicit;C.xp6(1),C.Q6J("ngIf",0!==_e.taskList.length),C.xp6(1),C.Q6J("ngIf",0===_e.taskList.length)}}function Z(Ae,ye){if(1&Ae&&(C.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),C._UZ(3,"img",6),C.TgZ(4,"div",7),C._uU(5),C.qZA()(),C.YNc(6,q,7,8,"mat-panel-description",8),C.qZA(),C.YNc(7,be,3,2,"ng-template",9),C.qZA()),2&Ae){const _e=ye.$implicit,Se=C.oxw(2);C.xp6(5),C.hij(" ",_e.resource.name," "),C.xp6(1),C.Q6J("ngIf",0!==Se.getErrorCountStates(_e))}}function de(Ae,ye){if(1&Ae&&(C.TgZ(0,"div",3)(1,"mat-accordion",4),C.YNc(2,Z,8,2,"mat-expansion-panel",5),C.qZA()()),2&Ae){const _e=C.oxw();C.xp6(2),C.Q6J("ngForOf",_e.propagation)}}let xe=(()=>{class Ae{constructor(){this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}getErrorCountStates(_e){let Se=0;for(const Ne of _e.taskList)("ERROR"===Ne.status||"GENERROR"===Ne.status||"SENDERROR"===Ne.status)&&Se++;return Se}getDataSource(){this.datasources=[];for(const _e of this.propagation)this.datasources.push(new v.by(_e.taskList))}ngOnChanges(){this.getDataSource()}}return Ae.\u0275fac=function(_e){return new(_e||Ae)},Ae.\u0275cmp=C.Xpm({type:Ae,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[C.TTD],decls:2,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","p-2",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"p-2"],["multi","true","togglePosition","before",1,"headers-align"],[4,"ngFor","ngForOf"],["height","28","src","assets/img/PerunWebImages/resource-black.svg","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","scheduled"],["matColumnDef","started"],["matColumnDef","ended"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["class","font-italic"],["notYet",""],["mat-header-row",""],["mat-row","",3,"ngClass"]],template:function(_e,Se){1&_e&&(C.YNc(0,O,1,0,"mat-spinner",0),C.YNc(1,de,3,1,"div",1)),2&_e&&(C.Q6J("ngIf",Se.loading),C.xp6(1),C.Q6J("ngIf",!Se.loading))},dependencies:[M.mk,M.sg,M.O5,v.BZ,v.fO,v.as,v.w1,v.Dz,v.nj,v.ge,v.ev,v.XQ,v.Gk,R.Ou,B.d,w.pp,w.ib,w.yz,w.yK,w.u4,w.HS,M.uU,L.X$],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{margin-left:15%;justify-content:space-between;align-items:center}"]}),Ae})();function ot(Ae,ye){if(1&Ae&&(C._uU(0),C.ALo(1,"translate"),C.TgZ(2,"span",5),C._uU(3),C.qZA()),2&Ae){const _e=C.oxw();C.hij(" ",C.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),C.xp6(3),C.Oqu(_e.errorPropagation.length)}}function Fe(Ae,ye){1&Ae&&(C.TgZ(0,"perun-web-apps-alert",8),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function ut(Ae,ye){if(1&Ae&&(C.YNc(0,Fe,3,3,"perun-web-apps-alert",6),C._UZ(1,"app-state-tab",7)),2&Ae){const _e=C.oxw();C.Q6J("ngIf",!_e.loading&&0===_e.errorPropagation.length),C.xp6(1),C.Q6J("loading",_e.loading)("propagation",_e.errorPropagation)}}function tt(Ae,ye){if(1&Ae&&(C._uU(0),C.ALo(1,"translate"),C.TgZ(2,"span",9),C._uU(3),C.qZA()),2&Ae){const _e=C.oxw();C.hij(" ",C.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),C.xp6(3),C.Oqu(_e.okPropagation.length)}}function vt(Ae,ye){1&Ae&&(C.TgZ(0,"perun-web-apps-alert",8),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function X(Ae,ye){if(1&Ae&&(C.YNc(0,vt,3,3,"perun-web-apps-alert",6),C._UZ(1,"app-state-tab",7)),2&Ae){const _e=C.oxw();C.Q6J("ngIf",!_e.loading&&0===_e.okPropagation.length),C.xp6(1),C.Q6J("loading",_e.loading)("propagation",_e.okPropagation)}}let nt=(()=>{class Ae{constructor(_e,Se){this.taskService=_e,this.entityStorageService=Se,this.loading=!1,this.okPropagation=[],this.errorPropagation=[],this.resourceStates=[],this.selectedIndex=0}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.taskService.getAllResourcesState(this.vo.id).subscribe(_e=>{this.resourceStates=_e,this.okPropagation=[],this.errorPropagation=[];for(const Se of _e){let Ne=!0;for(const Ce of Se.taskList)if("ERROR"===Ce.status||"GENERROR"===Ce.status||"SENDERROR"===Ce.status){Ne=!1;break}Ne?this.okPropagation.push(Se):this.errorPropagation.push(Se)}this.loading=!1},()=>this.loading=!1)}}return Ae.id="VoResourcesStatesComponent",Ae.\u0275fac=function(_e){return new(_e||Ae)(C.Y36(A.Ob),C.Y36(e.fb))},Ae.\u0275cmp=C.Xpm({type:Ae,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(_e,Se){2&_e&&C.ekj("router-component",Se.true)},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"refresh"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["matTabContent",""],[1,"badge","badge-danger","ml-1"],["alert_type","warn",4,"ngIf"],[3,"loading","propagation"],["alert_type","warn"],[1,"badge","badge-success","ml-1"]],template:function(_e,Se){1&_e&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"perun-web-apps-refresh-button",1),C.NdJ("refresh",function(){return Se.refreshTable()}),C.qZA(),C.TgZ(4,"mat-tab-group",2),C.NdJ("selectedIndexChange",function(Ce){return Se.selectedIndex=Ce}),C.TgZ(5,"mat-tab"),C.YNc(6,ot,4,4,"ng-template",3),C.YNc(7,ut,2,3,"ng-template",4),C.qZA(),C.TgZ(8,"mat-tab"),C.YNc(9,tt,4,4,"ng-template",3),C.YNc(10,X,2,3,"ng-template",4),C.qZA()()),2&_e&&(C.xp6(1),C.Oqu(C.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),C.xp6(3),C.Q6J("selectedIndex",Se.selectedIndex))},dependencies:[M.O5,m.SP,m.uD,m.uX,m.Vc,b.w,D.t,xe,L.X$]}),Ae})()},10369:(Xe,ue,p)=>{"use strict";p.d(ue,{w:()=>ge});var e=p(1186),A=p(81591),C=p(95502),M=p(93657),m=p(83491),b=p(61744),D=p(9244),v=p(94650),R=p(65412),B=p(89383),w=p(94364),L=p(36895),O=p(97392),q=p(4859),ee=p(51572),z=p(10266),ie=p(44850),Te=p(98380),pe=p(96214),Le=p(157);function T(ve,De){1&ve&&v._UZ(0,"mat-spinner",13)}function W(ve,De){if(1&ve){const he=v.EpF();v.TgZ(0,"button",21),v.NdJ("click",function(){v.CHM(he);const Be=v.oxw(2);return v.KtG(Be.settings())}),v.TgZ(1,"i",10),v._uU(2,"edit"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}2&ve&&(v.xp6(3),v.hij(" ",v.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function F(ve,De){if(1&ve&&(v.TgZ(0,"div",14)(1,"div",15)(2,"div",16),v._uU(3),v.ALo(4,"translate"),v.qZA(),v.TgZ(5,"div")(6,"span",16),v._uU(7),v.ALo(8,"translate"),v.qZA(),v._uU(9,": "),v.TgZ(10,"mat-icon",17),v._uU(11,"arrow_right_alt"),v.qZA(),v._uU(12),v.ALo(13,"translate"),v.ALo(14,"translate"),v.TgZ(15,"mat-icon",18),v._uU(16,"restore"),v.qZA(),v._uU(17),v.ALo(18,"translate"),v.ALo(19,"translate"),v.qZA()(),v.TgZ(20,"div",19),v.YNc(21,W,5,3,"button",20),v.qZA()()),2&ve){const he=v.oxw();v.xp6(3),v.AsE(" ",v.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",he.applicationForm.moduleClassName," "),v.xp6(4),v.Oqu(v.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),v.xp6(5),v.hij(" ",he.applicationForm.automaticApproval?v.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):v.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),v.xp6(5),v.hij(" ",he.applicationForm.automaticApprovalExtension?v.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):v.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),v.xp6(4),v.Q6J("ngIf",he.editAuth)}}function V(ve,De){if(1&ve){const he=v.EpF();v.TgZ(0,"button",22),v.NdJ("click",function(){v.CHM(he);const Be=v.oxw();return v.KtG(Be.add())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&ve&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function te(ve,De){if(1&ve){const he=v.EpF();v.TgZ(0,"button",23),v.NdJ("click",function(){v.CHM(he);const Be=v.oxw();return v.KtG(Be.save())}),v.TgZ(1,"i",10),v._uU(2,"save"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}if(2&ve){const he=v.oxw();v.Q6J("disabled",!he.itemsChanged),v.xp6(3),v.hij(" ",v.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function Q(ve,De){if(1&ve){const he=v.EpF();v.TgZ(0,"button",24),v.NdJ("click",function(){v.CHM(he);const Be=v.oxw();return v.KtG(Be.copy())}),v.TgZ(1,"i",10),v._uU(2,"file_copy"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}2&ve&&(v.xp6(3),v.hij(" ",v.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function Ee(ve,De){1&ve&&(v.TgZ(0,"perun-web-apps-alert",25),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ve&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}let ge=(()=>{class ve{constructor(he,Ye,Be,se,le,k,N,be){this.registrarManager=he,this.dialog=Ye,this.notificator=Be,this.translate=se,this.router=le,this.authResolver=k,this.voService=N,this.entityStorageService=be,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarManager.getVoApplicationForm(this.vo.id).subscribe(he=>{this.applicationForm=he,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(Ye=>{this.applicationFormItems=Ye,this.loading=!1})})}add(){let he=(0,D.kZ)();he.width="500px",he.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(M.J,he).afterClosed().subscribe(Be=>{Be&&(this.applicationFormItems=Object.assign([],Be[0]),he=(0,D.kZ)(),he.width="600px",he.height="600px",he.data={voId:this.vo.id,applicationFormItem:Be[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(m._,he),this.itemsChanged=!0)})}copy(){const he=(0,D.kZ)();he.width="500px",he.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(C.W,he).afterClosed().subscribe(Be=>{Be&&this.updateFormItems()})}settings(){const he=(0,D.kZ)();he.width="400px",he.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(e.E,he).afterClosed().subscribe(Be=>{Be&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(se=>{this.notificator.showSuccess(se)}),this.applicationForm=Be)})}preview(){this.router.navigate(["/organizations",this.vo.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)},queryParamsHandling:"merge"})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(he=>{this.applicationFormItems=he,this.itemsChanged=!1,this.setAuthRights(),this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let he=0;for(const Ye of this.applicationFormItems)Ye.ordnum=he,Ye.forDelete||he++;this.registrarManager.updateFormItemsForVo({vo:this.vo.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(Ye=>{this.notificator.showSuccess(Ye)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(he=>he.forDelete=!0),this.itemsChanged=!0}setAuthRights(){this.editAuth=this.authResolver.isAuthorized("vo-updateFormItems_ApplicationForm_List_policy",[this.vo]),this.displayedColumns=this.editAuth?["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]:["shortname","type","disabled","hidden","preview","managegroups"]}}return ve.id="VoSettingsApplicationFormComponent",ve.\u0275fac=function(he){return new(he||ve)(v.Y36(b.tk),v.Y36(R.uw),v.Y36(A.V6),v.Y36(B.sK),v.Y36(w.F0),v.Y36(A.x4),v.Y36(b.YF),v.Y36(A.fb))},ve.\u0275cmp=v.Xpm({type:ve,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(he,Ye){2&he&&v.ekj("router-component",Ye.true)},decls:19,vars:18,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","data-cy","save-application-form","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"applicationForm","applicationFormItems","loading","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],[1,"ml-auto","mr-auto"],[1,"d-flex","w-50"],[1,"w-50"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-bottom"],["matTooltip","Extension",1,"align-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"]],template:function(he,Ye){1&he&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.YNc(3,T,1,0,"mat-spinner",1),v.TgZ(4,"div"),v.YNc(5,F,22,18,"div",2),v._UZ(6,"mat-divider",3),v.TgZ(7,"div",4)(8,"perun-web-apps-refresh-button",5),v.NdJ("refresh",function(){return Ye.updateFormItems()}),v.qZA(),v.YNc(9,V,3,3,"button",6),v.YNc(10,te,5,4,"button",7),v.YNc(11,Q,5,3,"button",8),v.TgZ(12,"button",9),v.NdJ("click",function(){return Ye.preview()}),v.TgZ(13,"i",10),v._uU(14,"search"),v.qZA(),v._uU(15),v.ALo(16,"translate"),v.qZA()(),v.YNc(17,Ee,3,3,"perun-web-apps-alert",11),v.TgZ(18,"app-application-form-list",12),v.NdJ("applicationFormItemsChange",function(){return Ye.changeItems()}),v.qZA()()),2&he&&(v.xp6(1),v.hij(" ",v.lcZ(2,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),v.xp6(2),v.Q6J("ngIf",Ye.loading),v.xp6(2),v.Q6J("ngIf",!Ye.loading),v.xp6(4),v.Q6J("ngIf",Ye.editAuth),v.xp6(1),v.Q6J("ngIf",Ye.editAuth),v.xp6(1),v.Q6J("ngIf",Ye.editAuth),v.xp6(4),v.hij(" ",v.lcZ(16,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),v.xp6(2),v.Q6J("ngIf",Ye.editAuth),v.xp6(1),v.Q6J("applicationForm",Ye.applicationForm)("applicationFormItems",Ye.applicationFormItems)("loading",Ye.loading)("displayedColumns",Ye.displayedColumns)("refreshApplicationForm",Ye.refreshApplicationForm)("theme","vo-theme"))},dependencies:[L.O5,O.Hw,q.lW,ee.Ou,z.gM,ie.d,Te.w,pe.t,Le.b,B.X$]}),ve})()},11042:(Xe,ue,p)=>{"use strict";p.d(ue,{T:()=>Ii});var e=p(61744),A=p(95017),C=p(10036),M=p(9244),m=p(65412),b=p(81591),D=p(24006),v=p(36895),R=p(28499),B=p(77579),w=p(94650),L=p(89383),O=p(3238),q=p(59549),ee=p(284),z=p(97392),ie=p(4859),Te=p(56709),pe=p(84385),Le=p(51572),T=p(10266),W=p(86257),F=p(98380),V=p(87488),te=p(13469),Q=p(64080),Ee=p(71948),ge=p(25788),ve=p(7434),De=p(61150);function he(Mt,en){1&Mt&&w._UZ(0,"mat-spinner",2)}function Ye(Mt,en){1&Mt&&(w.TgZ(0,"div")(1,"perun-web-apps-alert",10),w._uU(2),w.ALo(3,"translate"),w.qZA()()),2&Mt&&(w.xp6(2),w.Oqu(w.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function Be(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div")(1,"h5",11),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-create-group-form",12),w.NdJ("asSubgroupChanged",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.onAsSubgroupChange(Zt))})("nameChanged",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.onNameChange(Zt))})("descriptionChanged",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.onDescriptionChange(Zt))})("parentGroupChanged",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.onParentChange(Zt))}),w.qZA()()}if(2&Mt){const ct=w.oxw(2);w.xp6(2),w.Oqu(w.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")),w.xp6(2),w.Q6J("voGroups",ct.allVoGroups)}}const se=function(){return["select","id","name","description"]};function le(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div")(1,"h5",11),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-immediate-filter",13),w.NdJ("filter",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.applyFilter(Zt))}),w.qZA(),w._UZ(5,"perun-web-apps-groups-list",14),w.qZA()}if(2&Mt){const ct=w.oxw(2);w.xp6(2),w.hij(" ",w.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")," "),w.xp6(2),w.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),w.xp6(1),w.Q6J("groups",ct.assignableGroups)("selection",ct.selection)("disableRouting",!0)("displayedColumns",w.DdM(10,se))("filter",ct.filterValue)("tableId",ct.tableId)}}function k(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div")(1,"div",3)(2,"h5",4),w._uU(3),w.ALo(4,"translate"),w.qZA(),w.TgZ(5,"mat-radio-group",5),w.NdJ("change",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.groupAssigmentChanged())})("ngModelChange",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.groupAssignment=Zt)}),w.TgZ(6,"mat-radio-button",6),w._uU(7),w.ALo(8,"translate"),w.qZA(),w.TgZ(9,"span",7),w.ALo(10,"translate"),w.TgZ(11,"mat-radio-button",8),w._uU(12),w.ALo(13,"translate"),w.qZA()(),w.TgZ(14,"span",7),w.ALo(15,"translate"),w.TgZ(16,"mat-radio-button",9),w._uU(17),w.ALo(18,"translate"),w.qZA()()()(),w.YNc(19,Ye,4,3,"div",1),w.YNc(20,Be,5,4,"div",1),w.YNc(21,le,6,11,"div",1),w.qZA()}if(2&Mt){const ct=w.oxw();w.xp6(3),w.Oqu(w.lcZ(4,14,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),w.xp6(2),w.Q6J("ngModel",ct.groupAssignment),w.xp6(2),w.hij(" ",w.lcZ(8,16,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),w.xp6(2),w.s9C("matTooltip",w.lcZ(10,18,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),w.Q6J("matTooltipDisabled",!ct.manualMemberAddingBlocked&&ct.createGroupAuth),w.xp6(2),w.Q6J("disabled",ct.manualMemberAddingBlocked||!ct.createGroupAuth),w.xp6(1),w.hij(" ",w.lcZ(13,20,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),w.xp6(2),w.s9C("matTooltip",w.lcZ(15,22,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),w.Q6J("matTooltipDisabled",!ct.manualMemberAddingBlocked&&0!==ct.assignableGroups.length),w.xp6(2),w.Q6J("disabled",ct.manualMemberAddingBlocked||0===ct.assignableGroups.length),w.xp6(1),w.hij(" ",w.lcZ(18,24,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),w.xp6(2),w.Q6J("ngIf","none"===ct.groupAssignment),w.xp6(1),w.Q6J("ngIf","new"===ct.groupAssignment),w.xp6(1),w.Q6J("ngIf","existing"===ct.groupAssignment)}}let N=(()=>{class Mt{constructor(ct,kt,Zt){this.groupsService=ct,this.guiAuthResolver=kt,this.attributesService=Zt,this.groupsToAdd=new w.vpe,this.submitAllowed=new w.vpe,this.loading=!1,this.assignableGroups=[],this.allVoGroups=[],this.manualMemberAddingBlocked=!1,this.groupAssignment="none",this.selection=new A.Ov(!0,[]),this.name="",this.description="",this.asSubgroup=!1,this.parentGroup=null,this.filterValue="",this.tableId=C.rc,this.groupToCreate={id:0,beanName:"Group"},this.groupIds=[],this.groupAttrNames=[Q.r.GROUP_SYNC_ENABLED,Q.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.onSubmit=this.submit.subscribe(()=>this.handleGroups()),this.selection.changed.subscribe(()=>this.isSubmitAllowed()),this.createGroupAuth=this.guiAuthResolver.isAuthorized("createGroup_Vo_Group_policy",[{id:this.voId,beanName:"Vo"}]),this.attributesService.getVoAttributes(this.voId).subscribe(ct=>{this.manualMemberAddingBlocked=(0,M.jh)(ct,Q.r.VO_BLOCK_MANUAL_MEMBER_ADDING),this.groupsService.getAllRichGroupsWithAttributesByNames(this.voId,this.groupAttrNames).subscribe(kt=>{this.allVoGroups=kt.filter(Zt=>"members"!==Zt.name),this.assignableGroups=this.filterAssignableGroups(kt),this.isSubmitAllowed()})})}ngOnDestroy(){void 0!==this.onSubmit&&this.onSubmit.unsubscribe()}groupAssigmentChanged(){this.selection.clear(),this.groupToCreate.name="",this.groupToCreate.description="",this.asSubgroup=!1,this.groupToCreate.parentGroupId=null,this.isSubmitAllowed()}applyFilter(ct){this.filterValue=ct}onNameChange(ct){this.groupToCreate.name=ct,this.isSubmitAllowed()}onParentChange(ct){this.groupToCreate.parentGroupId=null===ct?null:ct.id,this.isSubmitAllowed()}onAsSubgroupChange(ct){this.asSubgroup=ct,this.isSubmitAllowed()}onDescriptionChange(ct){this.groupToCreate.description=ct,this.isSubmitAllowed()}isSubmitAllowed(){this.submitAllowed.emit(!(null===this.groupAssignment||"existing"===this.groupAssignment&&0===this.selection.selected.length||"new"===this.groupAssignment&&(0===this.groupToCreate.name.length||0===this.groupToCreate.description.length)||this.asSubgroup&&null===this.groupToCreate.parentGroupId))}handleGroups(){this.loading=!0,"new"===this.groupAssignment?this.asSubgroup?this.groupsService.createGroupWithParentGroupNameDescription(this.groupToCreate.parentGroupId,this.groupToCreate.name,this.groupToCreate.description).subscribe({next:ct=>{this.groupIds.push(ct.id),this.groupsToAdd.emit(this.groupIds)},error:()=>this.loading=!1}):this.groupsService.createGroupWithVoNameDescription(this.voId,this.groupToCreate.name,this.groupToCreate.description).subscribe({next:ct=>{this.groupIds.push(ct.id),this.groupsToAdd.emit(this.groupIds)},error:()=>this.loading=!1}):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(ct=>ct.id)),this.groupsToAdd.emit(this.groupIds))}filterAssignableGroups(ct){const kt=[];for(const Zt of ct)!(0,M.bx)(Zt)&&!(0,M.jh)(Zt.attributes,Q.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[Zt])&&kt.push(Zt);return kt}}return Mt.\u0275fac=function(ct){return new(ct||Mt)(w.Y36(e.ff),w.Y36(b.x4),w.Y36(e.H8))},Mt.\u0275cmp=w.Xpm({type:Mt,selectors:[["app-assign-groups-sponsored-members-component"]],inputs:{submit:"submit",voId:"voId"},outputs:{groupsToAdd:"groupsToAdd",submitAllowed:"submitAllowed"},decls:2,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"mt-2"],[1,"mb-4"],[1,"flex-container",3,"ngModel","change","ngModelChange"],["value","none","data-cy","no-assign-button"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","new",3,"disabled"],["value","existing",3,"disabled"],["alert_type","info",1,"mt-4"],[1,"mt-4"],[3,"voGroups","asSubgroupChanged","nameChanged","descriptionChanged","parentGroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(ct,kt){1&ct&&(w.YNc(0,he,1,0,"mat-spinner",0),w.YNc(1,k,22,26,"div",1)),2&ct&&(w.Q6J("ngIf",kt.loading),w.xp6(1),w.Q6J("ngIf",!kt.loading))},dependencies:[v.O5,D.JJ,D.On,Le.Ou,T.gM,Ee.VQ,Ee.U0,F.w,ge.W,ve.L,De.r,L.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Mt})();var be=p(39158),Z=p(31359);const de=["stepper"];function xe(Mt,en){1&Mt&&(w.TgZ(0,"h1",4),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")," "))}function ot(Mt,en){1&Mt&&w._UZ(0,"mat-spinner",5)}function Fe(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function ut(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",33),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function tt(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function vt(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function X(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function nt(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-option",34),w._uU(1),w.qZA()),2&Mt){const ct=en.$implicit;w.Q6J("value",ct),w.uIk("data-cy",ct),w.xp6(1),w.hij(" ",ct," ")}}function Ae(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function ye(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function _e(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function Se(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-option",34),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"uppercase"),w.qZA()),2&Mt){const ct=en.$implicit;w.s9C("value",ct),w.xp6(1),w.hij(" ",w.lcZ(2,2,w.lcZ(3,4,"SHARED_LIB.LANGUAGES."+ct))," ")}}function Ne(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"mat-form-field")(1,"mat-label"),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"mat-select",35),w.NdJ("valueChange",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.currentLanguage=Zt)}),w.YNc(5,Se,4,6,"mat-option",23),w.qZA()()}if(2&Mt){const ct=w.oxw(2);w.xp6(2),w.Oqu(w.lcZ(3,3,"DIALOGS.INVITE_MEMBER.LANGUAGE")),w.xp6(2),w.Q6J("value",ct.currentLanguage),w.xp6(1),w.Q6J("ngForOf",ct.languages)}}function Ce(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function fe(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function r(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div",6)(1,"mat-stepper",7,8)(3,"mat-step",9),w.YNc(4,Fe,2,3,"ng-template",10),w.YNc(5,ut,3,3,"perun-web-apps-alert",11),w.TgZ(6,"form",12)(7,"h5",13),w._uU(8),w.ALo(9,"translate"),w.qZA(),w.TgZ(10,"mat-form-field",14),w._UZ(11,"input",15),w.ALo(12,"translate"),w.YNc(13,tt,3,3,"mat-error",16),w.qZA(),w.TgZ(14,"mat-form-field"),w._UZ(15,"input",17),w.ALo(16,"translate"),w.YNc(17,vt,3,3,"mat-error",16),w.qZA(),w.TgZ(18,"mat-form-field"),w._UZ(19,"input",18),w.ALo(20,"translate"),w.qZA(),w.TgZ(21,"mat-form-field"),w._UZ(22,"input",19),w.ALo(23,"translate"),w.qZA()()(),w.TgZ(24,"mat-step",9),w.YNc(25,X,2,3,"ng-template",10),w.TgZ(26,"h5",13),w._uU(27),w.ALo(28,"translate"),w.qZA(),w.TgZ(29,"form",20)(30,"mat-form-field",21)(31,"mat-select",22),w.NdJ("valueChange",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.onNamespaceChanged(Zt))}),w.ALo(32,"translate"),w.YNc(33,nt,2,3,"mat-option",23),w.qZA(),w.YNc(34,Ae,3,3,"mat-error",16),w.qZA(),w.TgZ(35,"mat-form-field",24),w.ALo(36,"translate"),w._UZ(37,"input",25),w.ALo(38,"translate"),w.YNc(39,ye,3,3,"mat-error",16),w.qZA(),w.TgZ(40,"mat-form-field"),w._UZ(41,"input",26),w.ALo(42,"translate"),w.YNc(43,_e,3,3,"mat-error",16),w.qZA(),w.TgZ(44,"span",24),w.ALo(45,"translate"),w.TgZ(46,"mat-checkbox",27),w.NdJ("change",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.passwordResetChange())}),w._uU(47),w.ALo(48,"translate"),w.qZA()(),w.YNc(49,Ne,6,5,"mat-form-field",16),w._UZ(50,"perun-web-apps-password-form",28),w.qZA()(),w.TgZ(51,"mat-step"),w.YNc(52,Ce,2,3,"ng-template",10),w.TgZ(53,"div",29)(54,"h5",13),w._uU(55),w.ALo(56,"translate"),w.qZA(),w.TgZ(57,"app-choose-sponsor",30),w.NdJ("sponsorTypeSelected",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.sponsorType=Zt)})("sponsorSelected",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.selectedSponsor=Zt)}),w.qZA(),w.TgZ(58,"h6",14),w._uU(59),w.ALo(60,"translate"),w.qZA(),w.TgZ(61,"perun-web-apps-expiration-select",31),w.NdJ("datePicker",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.setExpiration(Zt))}),w.qZA()()(),w.TgZ(62,"mat-step"),w.YNc(63,fe,2,3,"ng-template",10),w.TgZ(64,"app-assign-groups-sponsored-members-component",32),w.NdJ("groupsToAdd",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.createMember(Zt))})("submitAllowed",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.submitAllowed=Zt)}),w.qZA()()()()}if(2&Mt){const ct=w.oxw();w.xp6(1),w.Q6J("linear",!0),w.xp6(2),w.Q6J("stepControl",ct.userControl),w.xp6(2),w.Q6J("ngIf",ct.functionalityNotSupported),w.xp6(1),w.Q6J("formGroup",ct.userControl),w.xp6(2),w.hij(" ",w.lcZ(9,36,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),w.xp6(3),w.s9C("placeholder",w.lcZ(12,38,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),w.xp6(2),w.Q6J("ngIf",ct.userControl.hasError("required","firstName")),w.xp6(2),w.s9C("placeholder",w.lcZ(16,40,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),w.xp6(2),w.Q6J("ngIf",ct.userControl.hasError("required","lastName")),w.xp6(2),w.s9C("placeholder",w.lcZ(20,42,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),w.xp6(3),w.s9C("placeholder",w.lcZ(23,44,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),w.xp6(2),w.Q6J("stepControl",ct.namespaceControl),w.xp6(3),w.Oqu(w.lcZ(28,46,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),w.xp6(2),w.Q6J("formGroup",ct.namespaceControl),w.xp6(2),w.s9C("placeholder",w.lcZ(32,48,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),w.xp6(2),w.Q6J("ngForOf",ct.namespaceOptions),w.xp6(1),w.Q6J("ngIf",ct.namespaceControl.hasError("required","namespace")),w.xp6(1),w.s9C("matTooltip",w.lcZ(36,50,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),w.Q6J("matTooltipDisabled",ct.namespaceControl.get("login").enabled),w.xp6(2),w.s9C("placeholder",w.lcZ(38,52,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),w.xp6(2),w.Q6J("ngIf",ct.namespaceControl.hasError("required","login")),w.xp6(2),w.s9C("placeholder",w.lcZ(42,54,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),w.xp6(2),w.Q6J("ngIf",ct.namespaceControl.hasError("required","email")||ct.namespaceControl.hasError("pattern","email")),w.xp6(1),w.s9C("matTooltip",w.lcZ(45,56,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),w.Q6J("matTooltipDisabled",ct.namespaceControl.get("passwordReset").enabled),w.xp6(3),w.hij("",w.lcZ(48,58,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),w.xp6(2),w.Q6J("ngIf",ct.namespaceControl.get("passwordReset").value),w.xp6(1),w.Q6J("formGroup",ct.namespaceControl)("namespace",ct.selectedNamespace)("tooltipPwdViaEmail",ct.namespaceControl.get("passwordReset").value),w.xp6(5),w.Oqu(w.lcZ(56,60,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),w.xp6(2),w.Q6J("voId",ct.data.voId)("voSponsors",ct.data.sponsors),w.xp6(2),w.Oqu(w.lcZ(60,62,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION")),w.xp6(5),w.Q6J("voId",ct.data.voId)("submit",ct.groupsToAssign.asObservable())}}function u(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",33),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.WITH_ERRORS")))}function _(Mt,en){if(1&Mt&&(w.TgZ(0,"div",6)(1,"div",36)(2,"mat-icon",37),w._uU(3,"done"),w.qZA(),w._uU(4),w.ALo(5,"translate"),w.TgZ(6,"i"),w._uU(7),w.ALo(8,"userFullName"),w.qZA(),w._uU(9),w.ALo(10,"translate"),w.qZA(),w.TgZ(11,"div"),w._uU(12),w.ALo(13,"translate"),w.qZA(),w.TgZ(14,"div"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"perun-web-apps-alert",38),w._uU(18),w.ALo(19,"translate"),w.qZA(),w.YNc(20,u,3,3,"perun-web-apps-alert",11),w.qZA()),2&Mt){const ct=w.oxw();w.xp6(4),w.hij(" ",w.lcZ(5,9,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),w.xp6(3),w.Oqu(w.lcZ(8,11,ct.createdMember.user)),w.xp6(2),w.hij(" ",w.lcZ(10,13,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),w.xp6(3),w.AsE("",w.lcZ(13,15,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",ct.loginThatWasSet,""),w.xp6(3),w.AsE(" ",w.lcZ(16,17,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",ct.namespaceControl.get("passwordCtrl").value," "),w.xp6(3),w.Oqu(w.lcZ(19,19,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION")),w.xp6(2),w.Q6J("ngIf",ct.finishedWithErrors)}}function E(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div",39)(1,"button",40),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onCancel())}),w._uU(2),w.ALo(3,"translate"),w.qZA()()}2&Mt&&(w.xp6(2),w.hij(" ",w.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function h(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",45),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.stepperPrevious())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function a(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",46),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.stepperNext())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&Mt){const ct=w.oxw(2);w.ekj("ml-2",void 0!==ct.stepper&&0!==ct.stepper.selectedIndex)("ml-auto",!(void 0!==ct.stepper&&0!==ct.stepper.selectedIndex)),w.Q6J("disabled",ct.getStepperNextConditions()),w.xp6(1),w.hij(" ",w.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function i(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",47),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.onConfirm())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&Mt){const ct=w.oxw(2);w.Q6J("disabled",!ct.submitAllowed),w.xp6(1),w.hij(" ",w.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function t(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div",39)(1,"button",41),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onCancel())}),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,h,3,3,"button",42),w.YNc(5,a,3,8,"button",43),w.YNc(6,i,3,4,"button",44),w.qZA()}if(2&Mt){const ct=w.oxw();w.xp6(2),w.hij(" ",w.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),w.xp6(2),w.Q6J("ngIf",void 0!==ct.stepper&&0!==ct.stepper.selectedIndex),w.xp6(1),w.Q6J("ngIf",void 0!==ct.stepper&&ct.stepper.selectedIndex!==ct.stepper._steps.length-1),w.xp6(1),w.Q6J("ngIf",void 0!==ct.stepper&&ct.stepper.selectedIndex===ct.stepper._steps.length-1)}}let n=(()=>{class Mt{constructor(ct,kt,Zt,rn,In,Bn,Qn,ui,nr,Oi,xi,qi){this.dialogRef=ct,this.data=kt,this.membersService=Zt,this.apiRequestConfiguration=rn,this.usersService=In,this.store=Bn,this.translator=Qn,this.authzService=ui,this.guiAuthResolver=nr,this.formBuilder=Oi,this.cd=xi,this.groupsService=qi,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.selectedNamespace=null,this.userControl=null,this.namespaceControl=null,this.selectedSponsor=null,this.sponsorType="self",this.languages=["en"],this.currentLanguage="en",this.finishedWithErrors=!1,this.submitAllowed=!1,this.groupsToAssign=new B.x,this.namespaceRules=[],this.parsedRules=new Map,this.expiration="never"}static parseAttributes(ct,kt,Zt){for(const rn of kt)switch(rn){case"login":ct.login=Zt;break;case"password":ct.password=Zt}}onConfirm(){this.groupsToAssign.next()}createMember(ct){this.loading=!0;const kt={vo:this.data.voId,userData:{firstName:this.userControl.get("firstName").value,lastName:this.userControl.get("lastName").value,titleAfter:this.userControl.get("titleAfter").value,titleBefore:this.userControl.get("titleBefore").value,email:this.namespaceControl.get("email").value},sponsor:"other"===this.sponsorType?this.selectedSponsor.id:this.store.getPerunPrincipal().userId},Zt=this.namespaceControl.get("namespace").value,rn=this.parsedRules.get(Zt);"No namespace"!==Zt&&(kt.userData.namespace=Zt),"disabled"!==rn.login&&(kt.userData.login=this.namespaceControl.get("login").value),"disabled"!==rn.password&&(kt.sendActivationLink=this.namespaceControl.get("passwordReset").value,kt.language=this.currentLanguage,kt.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(kt.validityTo=this.expiration),this.membersService.createSponsoredMember(kt).subscribe(In=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=In,!!In&&!!In.userAttributes&&In.userAttributes.filter(Bn=>"login-namespace"===Bn.baseFriendlyName).filter(Bn=>Bn.friendlyNameParameter===Zt).filter(Bn=>null!==Bn.value).forEach(Bn=>{this.loginThatWasSet=Bn.value}),ct.length>0&&this.groupsService.addMember(ct,In.id).subscribe({next:()=>this.loading=!1,error:()=>{this.finishedWithErrors=!0,this.loading=!1}}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(ct){this.selectedNamespace=ct;const kt=this.parsedRules.get(ct),Zt=this.namespaceControl.get("login"),rn=this.namespaceControl.get("passwordCtrl"),In=this.namespaceControl.get("passwordAgainCtrl"),Bn=this.namespaceControl.get("passwordReset");"disabled"!==kt.login?(0,M.mH)(Zt,"optional"===kt.login?[]:[D.kI.required]):(Zt.disable(),Zt.setValue("")),"disabled"!==kt.password?((0,M.mH)(rn,"optional"===kt.password?[]:[D.kI.required],[(0,R.yT)(ct,this.usersService,this.apiRequestConfiguration)]),(0,M.mH)(In,[]),(0,M.mH)(Bn,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(rn.disable(),rn.setValue(""),In.disable(),In.setValue(""),Bn.disable(),Bn.setValue(!1))}passwordResetChange(){const ct=this.namespaceControl.get("passwordCtrl"),kt=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(ct.disable(),ct.setValue(""),kt.disable(),kt.setValue("")):(ct.enable(),kt.enable())}setExpiration(ct){this.expiration="never"===ct?"never":(0,v.p6)(ct,"yyyy-MM-dd","en-GB")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.userControl.invalid;case 1:return this.namespaceControl.invalid||this.namespaceControl.get("passwordCtrl").pending;case 2:return null===this.sponsorType||"other"===this.sponsorType&&null===this.selectedSponsor;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.userControl=this.formBuilder.group({firstName:["",D.kI.required],lastName:["",D.kI.required],titleBefore:[""],titleAfter:[""]}),this.languages=this.store.getProperty("supported_languages"),this.namespaceControl=this.formBuilder.group({namespace:["",D.kI.required],login:["",[D.kI.required]],passwordCtrl:["",D.kI.required,[(0,R.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[D.kI.required,D.kI.pattern(M.B2)]]},{validators:M.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(ct=>{this.store.getProperty("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(ct),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1,this.cd.detectChanges()})}parseNamespaceRules(){for(const ct of this.namespaceRules){this.namespaceOptions.push(ct.namespaceName);const kt={login:"disabled",password:"disabled"};Mt.parseAttributes(kt,ct.requiredAttributes,"required"),Mt.parseAttributes(kt,ct.optionalAttributes,"optional"),this.parsedRules.set(ct.namespaceName,kt)}}}return Mt.\u0275fac=function(ct){return new(ct||Mt)(w.Y36(m.so),w.Y36(m.WI),w.Y36(e.uq),w.Y36(b.F5),w.Y36(e.Fv),w.Y36(b.d6),w.Y36(L.sK),w.Y36(e.Ct),w.Y36(b.x4),w.Y36(D.QS),w.Y36(w.sBO),w.Y36(e.ff))},Mt.\u0275cmp=w.Xpm({type:Mt,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(ct,kt){if(1&ct&&w.Gf(de,5),2&ct){let Zt;w.iGM(Zt=w.CRH())&&(kt.stepper=Zt.first)}},decls:7,vars:9,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"dialog-container",3,"formGroup"],[1,"mt-2"],[1,"mt-4"],["data-cy","first-name-input","matInput","","formControlName","firstName","required","",3,"placeholder"],[4,"ngIf"],["data-cy","last-name-input","matInput","","formControlName","lastName","required","",3,"placeholder"],["matInput","","formControlName","titleBefore",3,"placeholder"],["matInput","","formControlName","titleAfter",3,"placeholder"],[1,"dialog-container","mt-4",3,"formGroup"],["data-cy","namespace-filter"],["formControlName","namespace","required","",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["data-cy","login-input","matInput","","formControlName","login","required","",3,"placeholder"],["data-cy","email-input","matInput","","formControlName","email","required","",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","namespace","tooltipPwdViaEmail"],[1,"dialog-container"],[3,"voId","voSponsors","sponsorTypeSelected","sponsorSelected"],[1,"mt-2",3,"datePicker"],[3,"voId","submit","groupsToAdd","submitAllowed"],["alert_type","error"],[3,"value"],[3,"value","valueChange"],[1,"bigger-font","mb-2"],[1,"mr-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","","data-cy","ok-button",1,"ml-auto",3,"click"],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["data-cy","next-button","color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["data-cy","confirm-button","class","ml-2","color","accent","mat-flat-button","","type","button",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","next-button","color","accent","mat-flat-button","","type","button",3,"disabled","click"],["data-cy","confirm-button","color","accent","mat-flat-button","","type","button",1,"ml-2",3,"disabled","click"]],template:function(ct,kt){1&ct&&(w.TgZ(0,"div"),w.YNc(1,xe,3,3,"h1",0),w.YNc(2,ot,1,0,"mat-spinner",1),w.YNc(3,r,65,64,"div",2),w.YNc(4,_,21,21,"div",2),w.YNc(5,E,4,3,"div",3),w.YNc(6,t,7,6,"div",3),w.qZA()),2&ct&&(w.Tol(kt.theme),w.xp6(1),w.Q6J("ngIf",!kt.successfullyCreated),w.xp6(1),w.Q6J("ngIf",kt.loading),w.xp6(1),w.Q6J("ngIf",!kt.loading&&!kt.successfullyCreated),w.xp6(1),w.Q6J("ngIf",!kt.loading&&kt.successfullyCreated),w.xp6(1),w.Q6J("ngIf",kt.successfullyCreated),w.xp6(1),w.Q6J("ngIf",!kt.loading&&!kt.successfullyCreated))},dependencies:[v.sg,v.O5,O.ey,q.TO,q.KE,q.hX,ee.Nt,D._Y,D.Fj,D.JJ,D.JL,D.Q7,D.sg,D.u,z.Hw,ie.lW,Te.oG,m.uh,m.xY,m.H8,pe.gD,Le.Ou,T.gM,W.C0,W.VY,W.Vq,F.w,V.c,te.G,N,be.l,v.gd,L.X$,Z.d],styles:[".bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:8px}mat-icon[_ngcontent-%COMP%]{color:#28a745;font-size:36px;vertical-align:bottom}"]}),Mt})();var o=p(28255);const s=["stepper"];function l(Mt,en){1&Mt&&w._UZ(0,"mat-spinner",4)}function d(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function c(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",26),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function S(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-option",27),w._uU(1),w.qZA()),2&Mt){const ct=en.$implicit;w.Q6J("value",ct),w.uIk("data-cy",ct),w.xp6(1),w.hij(" ",ct," ")}}function J(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function ht(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function We(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt){const ct=w.oxw(3);w.xp6(1),w.AsE(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",ct.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function et(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt){const ct=w.oxw(3);w.xp6(1),w.AsE(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",ct.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function ne(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt){const ct=w.oxw(3);w.xp6(1),w.AsE(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",ct.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function Ue(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function He(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",28),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function Oe(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"mat-radio-group",29),w.NdJ("ngModelChange",function(Zt){w.CHM(ct);const rn=w.oxw(3);return w.KtG(rn.passwordReset=Zt)}),w.TgZ(1,"mat-radio-button",30),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"mat-radio-button",31),w._uU(5),w.ALo(6,"translate"),w.qZA()()}if(2&Mt){const ct=w.oxw(3);w.Q6J("ngModel",ct.passwordReset),w.xp6(2),w.hij(" ",w.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),w.xp6(3),w.hij(" ",w.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function Re(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-option",27),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"uppercase"),w.qZA()),2&Mt){const ct=en.$implicit;w.s9C("value",ct),w.xp6(1),w.hij(" ",w.lcZ(2,2,w.lcZ(3,4,"SHARED_LIB.LANGUAGES."+ct))," ")}}function re(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"mat-form-field",32)(1,"mat-label"),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"mat-select",33),w.NdJ("valueChange",function(Zt){w.CHM(ct);const rn=w.oxw(3);return w.KtG(rn.currentLanguage=Zt)}),w.YNc(5,Re,4,6,"mat-option",16),w.qZA()()}if(2&Mt){const ct=w.oxw(3);w.xp6(2),w.Oqu(w.lcZ(3,3,"DIALOGS.INVITE_MEMBER.LANGUAGE")),w.xp6(2),w.Q6J("value",ct.currentLanguage),w.xp6(1),w.Q6J("ngForOf",ct.languages)}}function we(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function st(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function Ke(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"mat-stepper",8,9)(2,"mat-step",10),w.YNc(3,d,2,3,"ng-template",11),w.YNc(4,c,3,3,"perun-web-apps-alert",12),w.TgZ(5,"h5",13),w._uU(6),w.ALo(7,"translate"),w.qZA(),w.TgZ(8,"form",14)(9,"mat-form-field")(10,"mat-select",15),w.ALo(11,"translate"),w.YNc(12,S,2,3,"mat-option",16),w.qZA(),w.YNc(13,J,3,3,"mat-error",7),w.qZA(),w.TgZ(14,"div"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"div",17),w._uU(18),w.qZA(),w.TgZ(19,"mat-form-field",18)(20,"mat-label"),w._uU(21),w.ALo(22,"translate"),w.qZA(),w.TgZ(23,"textarea",19),w._uU(24," "),w.qZA(),w.YNc(25,ht,3,3,"mat-error",7),w.YNc(26,We,3,4,"mat-error",7),w.YNc(27,et,3,4,"mat-error",7),w.YNc(28,ne,3,4,"mat-error",7),w.qZA()()(),w.TgZ(29,"mat-step"),w.YNc(30,Ue,2,3,"ng-template",11),w.TgZ(31,"div",13)(32,"h5",20),w._uU(33),w.ALo(34,"translate"),w.qZA(),w.YNc(35,He,3,3,"perun-web-apps-alert",21),w.YNc(36,Oe,7,7,"mat-radio-group",22),w.YNc(37,re,6,5,"mat-form-field",23),w.qZA()(),w.TgZ(38,"mat-step"),w.YNc(39,we,2,3,"ng-template",11),w.TgZ(40,"div",13)(41,"h5",20),w._uU(42),w.ALo(43,"translate"),w.qZA(),w.TgZ(44,"perun-web-apps-expiration-select",24),w.NdJ("datePicker",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.setExpiration(Zt))}),w.qZA()()(),w.TgZ(45,"mat-step"),w.YNc(46,st,2,3,"ng-template",11),w.TgZ(47,"app-assign-groups-sponsored-members-component",25),w.NdJ("groupsToAdd",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.onGenerate(Zt))})("submitAllowed",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.submitAllowed=Zt)}),w.qZA()()()}if(2&Mt){const ct=w.oxw(2);w.Q6J("linear",!0),w.xp6(2),w.Q6J("stepControl",ct.usersInfoFormGroup),w.xp6(2),w.Q6J("ngIf",ct.functionalityNotSupported),w.xp6(2),w.Oqu(w.lcZ(7,24,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),w.xp6(2),w.Q6J("formGroup",ct.usersInfoFormGroup),w.xp6(2),w.s9C("placeholder",w.lcZ(11,26,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),w.xp6(2),w.Q6J("ngForOf",ct.namespaceOptions),w.xp6(1),w.Q6J("ngIf",ct.usersInfoFormGroup.hasError("required","namespace")),w.xp6(2),w.Oqu(w.lcZ(16,28,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),w.xp6(3),w.hij(" ",ct.getSelectedNamespaceRules().csvGenHeaderDescription," "),w.xp6(3),w.Oqu(w.lcZ(22,30,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),w.xp6(2),w.s9C("placeholder",ct.getSelectedNamespaceRules().csvGenPlaceholder),w.xp6(2),w.Q6J("ngIf",ct.usersInfoFormGroup.hasError("required","sponsoredMembers")),w.xp6(1),w.Q6J("ngIf",ct.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),w.xp6(1),w.Q6J("ngIf",ct.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),w.xp6(1),w.Q6J("ngIf",ct.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),w.xp6(5),w.hij(" ",w.lcZ(34,32,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")," "),w.xp6(2),w.Q6J("ngIf","No namespace"===ct.getSelectedNamespaceRules().namespaceName),w.xp6(1),w.Q6J("ngIf","No namespace"!==ct.getSelectedNamespaceRules().namespaceName),w.xp6(1),w.Q6J("ngIf","reset"===ct.passwordReset),w.xp6(5),w.Oqu(w.lcZ(43,34,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),w.xp6(2),w.Q6J("expiration",ct.expiration),w.xp6(3),w.Q6J("voId",ct.data.voId)("submit",ct.groupsToAssign.asObservable())}}function Et(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",35),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.Q6J("alert_type","success"),w.xp6(1),w.hij(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function ke(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",35),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.Q6J("alert_type","warn"),w.xp6(1),w.hij(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function at(Mt,en){if(1&Mt&&(w.TgZ(0,"div"),w.YNc(1,Et,3,4,"perun-web-apps-alert",34),w.YNc(2,ke,3,4,"perun-web-apps-alert",34),w.qZA()),2&Mt){const ct=w.oxw(2);w.xp6(1),w.Q6J("ngIf",!1===ct.finishedWithErrors),w.xp6(1),w.Q6J("ngIf",ct.finishedWithErrors)}}function It(Mt,en){if(1&Mt&&(w.TgZ(0,"div",5),w.YNc(1,Ke,48,36,"mat-stepper",6),w.YNc(2,at,3,2,"div",7),w.qZA()),2&Mt){const ct=w.oxw();w.xp6(1),w.Q6J("ngIf","user-input"===ct.state),w.xp6(1),w.Q6J("ngIf","results"===ct.state)}}function jt(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",41),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.stepperPrevious())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function an(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",42),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.stepperNext())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&Mt){const ct=w.oxw(2);w.ekj("ml-2",void 0!==ct.stepper&&0!==ct.stepper.selectedIndex)("ml-auto",!(void 0!==ct.stepper&&0!==ct.stepper.selectedIndex)),w.Q6J("disabled",ct.getStepperNextConditions()),w.xp6(1),w.hij(" ",w.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function Kt(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",43),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.onSubmit())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&Mt){const ct=w.oxw(2);w.Q6J("disabled",!ct.submitAllowed),w.xp6(1),w.hij(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function on(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div",36)(1,"button",37),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onCancel())}),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,jt,3,3,"button",38),w.YNc(5,an,3,8,"button",39),w.YNc(6,Kt,3,4,"button",40),w.qZA()}if(2&Mt){const ct=w.oxw();w.xp6(2),w.hij(" ",w.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),w.xp6(2),w.Q6J("ngIf",void 0!==ct.stepper&&0!==ct.stepper.selectedIndex),w.xp6(1),w.Q6J("ngIf",void 0!==ct.stepper&&ct.stepper.selectedIndex!==ct.stepper._steps.length-1),w.xp6(1),w.Q6J("ngIf",void 0!==ct.stepper&&ct.stepper.selectedIndex===ct.stepper._steps.length-1)}}function Cn(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div",36)(1,"button",44),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onClose())}),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"button",45),w._uU(5),w.ALo(6,"translate"),w.qZA(),w.TgZ(7,"mat-menu",null,46)(9,"button",47),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.generatePdf())}),w._uU(10),w.ALo(11,"translate"),w.qZA(),w.TgZ(12,"button",47),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.downloadCsv())}),w._uU(13),w.ALo(14,"translate"),w.qZA()()()}if(2&Mt){const ct=w.MAs(8);w.xp6(2),w.hij(" ",w.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),w.xp6(2),w.Q6J("matMenuTriggerFor",ct),w.xp6(1),w.hij(" ",w.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),w.xp6(5),w.hij(" ",w.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),w.xp6(3),w.hij(" ",w.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}let Tt=(()=>{class Mt{constructor(ct,kt,Zt,rn,In,Bn,Qn,ui,nr,Oi,xi,qi){this.dialogRef=ct,this.data=kt,this.store=Zt,this.membersService=rn,this.notificator=In,this.translate=Bn,this.guiAuthResolver=Qn,this.groupsService=ui,this.attributesService=nr,this.formBuilder=Oi,this.sponsoredMembersPDFService=xi,this.cd=qi,this.loading=!1,this.functionalityNotSupported=!1,this.namespaceOptions=[],this.state="user-input",this.passwordReset="generate",this.expiration="never",this.finishedWithErrors=!1,this.submitAllowed=!1,this.groupsToAssign=new B.x,this.languages=["en"],this.currentLanguage="en",this.namespaceRules=[],this.resultData=[]}static didSomeGenerationFailed(ct){return ct.forEach(kt=>{if("OK"!==kt.status)return!0}),!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.languages=this.store.getProperty("supported_languages"),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",D.kI.required],sponsoredMembers:["",[D.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.membersService.getAllNamespacesRules().subscribe(ct=>{this.store.getProperty("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",csvGenHeader:"firstname;lastname;urn:perun:user:attribute-def:def:preferredMail",csvGenPlaceholder:"John;Doe;john@mail.cz",csvGenHeaderDescription:"First name;Last name;Email"}),this.namespaceRules=this.namespaceRules.concat(ct),this.namespaceRules.forEach(kt=>this.namespaceOptions.push(kt.namespaceName)),0===this.namespaceOptions.length?this.functionalityNotSupported=!0:this.usersInfoFormGroup.setValue({namespace:this.namespaceOptions[0],sponsoredMembers:""}),this.loading=!1,this.cd.detectChanges()})}onCancel(){this.dialogRef.close(!1)}onClose(){this.dialogRef.close(!0)}setExpiration(ct){this.expiration="never"===ct?"never":(0,v.p6)(ct,"yyyy-MM-dd","en-GB")}onSubmit(){this.groupsToAssign.next()}getSelectedNamespaceRules(){return this.namespaceRules.find(ct=>ct.namespaceName===this.usersInfoFormGroup.get("namespace").value)}generatePdf(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");this.loading=!0,this.sponsoredMembersPDFService.generate(this.resultData).then(()=>this.loading=!1)}downloadCsv(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");(0,M.O6)(this.createOutputObjects(this.resultData),"csv","member-logins")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.usersInfoFormGroup.invalid;case 1:return null===this.passwordReset;case 2:return null===this.expiration;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}onGenerate(ct){this.loading=!0;const kt=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),Zt=this.getSelectedNamespaceRules().csvGenHeader,rn=[];for(const Bn of kt){const Qn=this.parseMemberLine(Bn);if("format"===Qn||"email"===Qn)return void(this.loading=!1);""!==Qn&&rn.push(Qn)}const In={data:rn,header:Zt,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset,language:this.currentLanguage};ct.length>0&&(In.groups=ct),"never"!==this.expiration&&(In.validityTo=(0,v.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(In.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(In).subscribe(Bn=>{this.state="results",this.finishedWithErrors=Mt.didSomeGenerationFailed(Bn),this.loading=!1,this.resultData=Bn},()=>this.loading=!1)}createOutputObjects(ct){let kt="",Zt="",rn="",In="";const Bn=[];return ct.forEach(Qn=>{kt=Qn.name.replace(";"," ").split(";")[0],Zt=Qn.status,rn=Qn.login?Qn.login:rn,In=Qn.password?Qn.password:In;const ui={name:kt,status:Zt,login:rn,password:In};Qn.note&&(ui.note=Qn.note),Bn.push(ui)}),Bn}parseMemberLine(ct){const kt=ct.trim();if(""===kt)return"";const Zt=kt.split(";"),rn=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(Zt.length!==rn.length)return"format";if("mail"===rn[2].slice(rn[2].length-4).toLowerCase()&&!Zt[2].trim().match(M.B2))return"email";if("login"===rn[3]&&""===Zt[3].trim())return"login";let In="";for(const Bn of Zt)In+=Bn.trim()+";";return In.slice(0,-1)}userInputValidator(){return ct=>{const kt=ct.value.split("\n");for(const Zt of kt){const rn=this.parseMemberLine(Zt);if("format"===rn)return{invalidFormat:{value:Zt}};if("email"===rn)return{invalidEmail:{value:Zt}};if("login"===rn)return{invalidLogin:{value:Zt}}}return null}}}return Mt.\u0275fac=function(ct){return new(ct||Mt)(w.Y36(m.so),w.Y36(m.WI),w.Y36(b.d6),w.Y36(e.uq),w.Y36(b.V6),w.Y36(L.sK),w.Y36(b.x4),w.Y36(e.ff),w.Y36(e.H8),w.Y36(D.QS),w.Y36(b.HV),w.Y36(w.sBO))},Mt.\u0275cmp=w.Xpm({type:Mt,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(ct,kt){if(1&ct&&w.Gf(s,5),2&ct){let Zt;w.iGM(Zt=w.CRH())&&(kt.stepper=Zt.first)}},decls:8,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear",4,"ngIf"],[4,"ngIf"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"mt-2"],[1,"flex-container","mt-2",3,"formGroup"],["data-cy","namespace-filter","formControlName","namespace","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"pt-2"],["data-cy","csv-input","cols","50","id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","formControlName","sponsoredMembers","matInput","","rows","8",1,"md-textarea","form-control",3,"placeholder"],[1,"mb-4"],["alert_type","info",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["class","w-100",4,"ngIf"],[3,"expiration","datePicker"],[3,"voId","submit","groupsToAdd","submitAllowed"],["alert_type","error"],[3,"value"],["alert_type","info"],[3,"ngModel","ngModelChange"],["value","generate"],["value","reset"],[1,"w-100"],[3,"value","valueChange"],[3,"alert_type",4,"ngIf"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["data-cy","next-button","color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["data-cy","submit-button","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","next-button","color","accent","mat-flat-button","",3,"disabled","click"],["data-cy","submit-button","color","accent","mat-flat-button","",3,"disabled","click"],["mat-flat-button","","data-cy","close-button",3,"click"],["color","accent","mat-flat-button","",1,"ml-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(ct,kt){1&ct&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,l,1,0,"mat-spinner",1),w.YNc(5,It,3,2,"div",2),w.YNc(6,on,7,6,"div",3),w.YNc(7,Cn,15,13,"div",3),w.qZA()),2&ct&&(w.Tol(kt.theme),w.xp6(2),w.Oqu(w.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),w.xp6(2),w.Q6J("ngIf",kt.loading),w.xp6(1),w.Q6J("ngIf",!kt.loading),w.xp6(1),w.Q6J("ngIf",!kt.loading&&void 0!==kt.stepper&&"results"!==kt.state),w.xp6(1),w.Q6J("ngIf","results"===kt.state))},dependencies:[v.sg,v.O5,O.ey,q.TO,q.KE,q.hX,ee.Nt,D._Y,D.Fj,D.JJ,D.JL,D.Q7,D.sg,D.u,D.On,ie.lW,m.uh,m.xY,m.H8,pe.gD,Le.Ou,Ee.VQ,Ee.U0,W.C0,W.VY,W.Vq,o.VK,o.OP,o.p6,F.w,V.c,N,v.gd,L.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Mt})();var Dt=p(91828),Ze=p(96308),wt=p(30671),Ft=p(19352),ln=p(58964),bn=p(94364),gn=p(34198),zn=p(55660),bt=p(18750),Lt=p(20919),pt=p(5865),rt=p(9185),St=p(8231),$=p(14849);function ze(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"th",20)(1,"mat-checkbox",21),w.NdJ("change",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(Zt?rn.masterToggle():null)}),w.ALo(2,"translate"),w.ALo(3,"masterCheckboxLabel"),w.qZA()()}if(2&Mt){const ct=w.oxw().ngIf,kt=w.oxw();w.xp6(1),w.Q6J("aria-label",w.lcZ(2,3,w.lcZ(3,5,ct.all)))("checked",kt.selection.hasValue()&&ct.all)("indeterminate",kt.selection.hasValue()&&!ct.all)}}const At=function(Mt){return{name:Mt}};function Pt(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"td",22)(1,"mat-checkbox",23),w.NdJ("change",function(Zt){const In=w.CHM(ct).$implicit,Bn=w.oxw(2);return w.KtG(Zt?Bn.selection.toggle(In):null)})("click",function(Zt){return Zt.stopPropagation()}),w.ALo(2,"translate"),w.ALo(3,"checkboxLabel"),w.ALo(4,"userFullName"),w.qZA()()}if(2&Mt){const ct=en.$implicit,kt=w.oxw(2);w.xp6(1),w.Q6J("aria-label",w.xi3(2,2,w.lcZ(3,5,kt.selection.isSelected(ct)),w.VKq(9,At,w.lcZ(4,7,ct.member.user))))("checked",kt.selection.isSelected(ct))}}function Xt(Mt,en){1&Mt&&(w.ynx(0,17),w.YNc(1,ze,4,7,"th",18),w.YNc(2,Pt,5,11,"td",19),w.BQk())}function yn(Mt,en){1&Mt&&(w.TgZ(0,"th",24),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")," "))}function Zn(Mt,en){if(1&Mt&&(w.TgZ(0,"td",25),w._uU(1),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.hij(" ",ct.member.id," ")}}function Hn(Mt,en){1&Mt&&(w.TgZ(0,"th",24),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")," "))}function Xn(Mt,en){if(1&Mt&&(w.TgZ(0,"td",26),w._uU(1),w.ALo(2,"userFullName"),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.hij(" ",w.lcZ(2,1,ct.member.user)," ")}}function mi(Mt,en){1&Mt&&(w.TgZ(0,"th",27),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.EMAIL")," "))}function di(Mt,en){if(1&Mt&&(w.TgZ(0,"td",26),w._uU(1),w.ALo(2,"memberEmail"),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.Oqu(w.lcZ(2,1,ct.member))}}function Jn(Mt,en){1&Mt&&(w.TgZ(0,"th",27),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.LOGIN")," "))}function Ln(Mt,en){if(1&Mt&&(w.TgZ(0,"td",26),w._uU(1),w.ALo(2,"memberLogins"),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.hij(" ",w.lcZ(2,1,ct.member)," ")}}function zi(Mt,en){1&Mt&&(w.TgZ(0,"th",24),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")," "))}function qn(Mt,en){if(1&Mt&&(w.TgZ(0,"span"),w._uU(1),w.ALo(2,"userFullName"),w._UZ(3,"br"),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.hij(" ",w.lcZ(2,1,ct.user),"")}}function si(Mt,en){if(1&Mt&&(w.TgZ(0,"td",26),w.YNc(1,qn,4,3,"span",28),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.Q6J("ngForOf",ct.sponsors)}}function Yi(Mt,en){1&Mt&&w._UZ(0,"th",24)}function tr(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"span",31),w.ALo(1,"translate"),w.TgZ(2,"button",32),w.NdJ("mouseenter",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.disableRouting=!0)})("mouseleave",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.disableRouting=Zt.routingStrategy)})("click",function(){w.CHM(ct);const Zt=w.oxw().$implicit,rn=w.oxw();return w.KtG(rn.resetPassword(Zt))}),w.TgZ(3,"mat-icon"),w._uU(4,"vpn_key"),w.qZA()()()}if(2&Mt){const ct=w.oxw().$implicit,kt=w.oxw();w.Q6J("matTooltipPosition","above")("matTooltip",w.lcZ(1,4,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),w.xp6(2),w.Q2q("data-cy","",ct.member.user.firstName,"-reset-passwd-button"),w.Q6J("disabled",kt.loading)}}function Vi(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"td",26)(1,"button",29),w.NdJ("click",function(){const rn=w.CHM(ct).$implicit,In=w.oxw();return w.KtG(In.showSponsors(rn))})("mouseenter",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.disableRouting=!0)})("mouseleave",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.disableRouting=Zt.routingStrategy)}),w.TgZ(2,"mat-icon"),w._uU(3,"edit"),w.qZA()(),w.YNc(4,tr,5,6,"span",30),w.qZA()}if(2&Mt){const ct=en.$implicit,kt=w.oxw();w.xp6(1),w.Q2q("data-cy","",ct.member.user.firstName,"-edit-sponsors-button"),w.xp6(3),w.Q6J("ngIf",kt.passwdResetAuth(ct))}}function li(Mt,en){1&Mt&&w._UZ(0,"tr",33)}const or=function(Mt,en){return["/organizations",Mt,"members",en]};function Ir(Mt,en){if(1&Mt&&w._UZ(0,"tr",34),2&Mt){const ct=en.$implicit,kt=w.oxw();w.ekj("cursor-pointer",!kt.disableRouting)("disable-outline",kt.disableRouting),w.Q2q("data-cy","",ct.member.user.firstName,"-name"),w.Q6J("perunWebAppsMiddleClickRouterLink",kt.disableRouting?null:w.WLB(7,or,ct.member.voId,ct.member.id))("routerLink",kt.disableRouting?null:w.WLB(10,or,ct.member.voId,ct.member.id))}}function sr(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",35),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function lr(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",35),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}const Ci=function(Mt){return{all:Mt}};let Er=(()=>{class Mt{constructor(ct,kt,Zt,rn,In){this.dialog=ct,this.authResolver=kt,this.storeService=Zt,this.attributesManager=rn,this.tableCheckbox=In,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","email","logins","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new w.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=M.f7}set matSort(ct){this.sort=ct}static getSortDataForColumn(ct,kt){switch(kt){case"id":return ct.member.id.toString();case"name":return ct.member.user?ct.member.user.lastName?ct.member.user.lastName:ct.member.user.firstName??"":"";case"sponsors":return ct.sponsors.length.toString();default:return""}}static getDataForColumn(ct,kt){switch(kt){case"id":return ct.member.id.toString();case"name":return ct.member.user?(0,M.bD)(ct.member.user):"";case"sponsors":return ct.sponsors.map(Zt=>(0,M.bD)(Zt.user)).join();default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ct=>"id"!==ct)),this.setDataSource(),this.routingStrategy=this.disableRouting}exportAllData(ct){(0,M.O6)((0,M.Xn)(this.dataSource.filteredData,this.displayedColumns,Mt.getDataForColumn),ct)}exportDisplayedData(ct){const kt=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Zt=kt+this.dataSource.paginator.pageSize;(0,M.O6)((0,M.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(kt,Zt),this.displayedColumns,Mt.getDataForColumn),ct)}setDataSource(){this.dataSource||(this.dataSource=new wt.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(ct,kt)=>(0,M.Sd)(ct,kt,this.displayedColumns,Mt.getDataForColumn),this.dataSource.sortData=(ct,kt)=>(0,M.pR)(ct,kt,Mt.getSortDataForColumn)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(ct){const kt=(0,M.kZ)();kt.width="650px",kt.data={sponsors:ct.sponsors,member:ct.member,theme:"vo-theme"},this.dialog.open(Ft.H,kt).afterClosed().subscribe(rn=>{rn&&this.refreshTable.emit()})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}resetPassword(ct){this.loading=!0;const kt=this.storeService.getProperty("password_namespace_attributes").map(Zt=>{const rn=Zt.split(":");return rn[rn.length-1]});this.attributesManager.getLogins(ct.member.userId).subscribe(Zt=>{const rn=Zt.filter(Qn=>kt.includes(Qn.friendlyNameParameter)),In=(0,M.kZ)();In.width="400px",In.data={userId:ct.member.userId,memberId:ct.member.id,logins:rn},this.dialog.open(ln.m,In).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(ct){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:ct.member.voId,beanName:"Vo"},ct.member])}}return Mt.\u0275fac=function(ct){return new(ct||Mt)(w.Y36(m.uw),w.Y36(b.x4),w.Y36(b.d6),w.Y36(e.H8),w.Y36(b.UA))},Mt.\u0275cmp=w.Xpm({type:Mt,selectors:[["app-sponsored-members-list"]],viewQuery:function(ct,kt){if(1&ct&&(w.Gf(M.l9,7),w.Gf(Ze.YE,7)),2&ct){let Zt;w.iGM(Zt=w.CRH())&&(kt.child=Zt.first),w.iGM(Zt=w.CRH())&&(kt.matSort=Zt.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[w.TTD],decls:27,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","email"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","logins"],["matColumnDef","sponsors"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],[4,"ngFor","ngForOf"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"click","mouseenter","mouseleave"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"disabled","mouseenter","mouseleave","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(ct,kt){1&ct&&(w.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),w.NdJ("exportDisplayedData",function(rn){return kt.exportDisplayedData(rn)})("exportAllData",function(rn){return kt.exportAllData(rn)}),w.TgZ(2,"table",2),w.YNc(3,Xt,3,0,"ng-container",3),w.ALo(4,"isAllSelected"),w.ynx(5,4),w.YNc(6,yn,3,3,"th",5),w.YNc(7,Zn,2,1,"td",6),w.BQk(),w.ynx(8,7),w.YNc(9,Hn,3,3,"th",5),w.YNc(10,Xn,3,3,"td",8),w.BQk(),w.ynx(11,9),w.YNc(12,mi,3,3,"th",10),w.YNc(13,di,3,3,"td",8),w.BQk(),w.ynx(14,11),w.YNc(15,Jn,3,3,"th",10),w.YNc(16,Ln,3,3,"td",8),w.BQk(),w.ynx(17,12),w.YNc(18,zi,3,3,"th",5),w.YNc(19,si,2,1,"td",8),w.BQk(),w.ynx(20,13),w.YNc(21,Yi,1,0,"th",5),w.YNc(22,Vi,5,2,"td",8),w.BQk(),w.YNc(23,li,1,0,"tr",14),w.YNc(24,Ir,1,13,"tr",15),w.qZA()()(),w.YNc(25,sr,3,3,"perun-web-apps-alert",16),w.YNc(26,lr,3,3,"perun-web-apps-alert",16)),2&ct&&(w.Q6J("hidden",0===kt.dataSource.filteredData.length||0===kt.sponsoredMembers.length),w.xp6(1),w.Q6J("pageSizeOptions",kt.pageSizeOptions)("dataLength",kt.dataSource.filteredData.length)("tableId",kt.tableId),w.xp6(1),w.Q6J("dataSource",kt.dataSource),w.xp6(1),w.Q6J("ngIf",w.VKq(13,Ci,w.xi3(4,10,kt.dataSource,kt.selection.selected.length))),w.xp6(20),w.Q6J("matHeaderRowDef",kt.displayedColumns),w.xp6(1),w.Q6J("matRowDefColumns",kt.displayedColumns),w.xp6(1),w.Q6J("ngIf",0===kt.dataSource.filteredData.length&&0!==kt.sponsoredMembers.length),w.xp6(1),w.Q6J("ngIf",0===kt.sponsoredMembers.length))},dependencies:[v.sg,v.O5,bn.rH,z.Hw,ie.lW,Ze.YE,Ze.nU,wt.BZ,wt.fO,wt.as,wt.w1,wt.Dz,wt.nj,wt.ge,wt.ev,wt.XQ,wt.Gk,Te.oG,T.gM,F.w,gn.Y,zn.Q,bt.l,L.X$,Z.d,Lt.D,pt.p,rt.I,St.G,$.r],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Mt})();var Ur=p(96214);function Ei(Mt,en){if(1&Mt&&(w.TgZ(0,"button",11),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt){const ct=w.oxw(),kt=w.MAs(9);w.Q6J("disabled",ct.findSponsorsAuth&&0===ct.voSponsors.length)("matMenuTriggerFor",kt),w.xp6(1),w.hij(" ",w.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function Or(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",12),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onCreate())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function Nr(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",13),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onGenerate())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function kr(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",14),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onSponsorExistingMember())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function Hr(Mt,en){1&Mt&&w._UZ(0,"mat-spinner",15)}function Pi(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"app-sponsored-members-list",16),w.NdJ("refreshTable",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.refresh())}),w.qZA()}if(2&Mt){const ct=w.oxw();w.Q6J("disableRouting",!ct.routeAuth)("selection",ct.selection)("filterValue",ct.searchString)("sponsoredMembers",ct.members)("tableId",ct.tableId)}}let Ii=(()=>{class Mt{constructor(ct,kt,Zt,rn,In,Bn,Qn){this.membersManager=ct,this.dialog=kt,this.authResolver=Zt,this.storeService=rn,this.authzResolver=In,this.entityStorageService=Bn,this.findSponsors=Qn,this.members=[],this.voSponsors=[],this.selection=new A.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=C.Bf,this.attrNames=[Q.r.USER_DEF_PREFERRED_MAIL]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.setAuthRights(),this.findSponsorsAuth=this.findSponsors.findSponsorsAuth(this.vo),this.findSponsorsAuth?this.findSponsors.getSponsors(this.vo.id).subscribe(ct=>{this.voSponsors=ct,this.refresh()}):this.refresh()}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createSponsoredMember_Vo_String_Map_String_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.generateAuth=this.authResolver.isAuthorized("createSponsoredMembers_Vo_String_List_User_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.setSponsorshipAuth=this.authResolver.isAuthorized("setSponsorshipForMember_Member_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0].member]))}onCreate(){const ct=(0,M.kZ)();ct.width="750px",ct.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(n,ct).afterClosed().subscribe(Zt=>{Zt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(rn=>{this.storeService.setPerunPrincipal(rn),this.refresh()}))})}onGenerate(){const ct=(0,M.kZ)();ct.width="750px",ct.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Tt,ct).afterClosed().subscribe(Zt=>{Zt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(rn=>{this.storeService.setPerunPrincipal(rn),this.refresh()}))})}onSponsorExistingMember(){const ct=(0,M.kZ)();ct.width="650px",ct.data={voId:this.vo.id,theme:"vo-theme",voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth},this.dialog.open(Dt.b,ct).afterClosed().subscribe(Zt=>{Zt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(rn=>{this.storeService.setPerunPrincipal(rn),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(ct=>{this.selection.clear(),this.members=ct,this.setAuthRights(),this.loading=!1})}applyFilter(ct){this.searchString=ct}}return Mt.id="VoSponsoredMembersComponent",Mt.\u0275fac=function(ct){return new(ct||Mt)(w.Y36(e.uq),w.Y36(m.uw),w.Y36(b.x4),w.Y36(b.d6),w.Y36(e.Ct),w.Y36(b.fb),w.Y36(b.Mf))},Mt.\u0275cmp=w.Xpm({type:Mt,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(ct,kt){2&ct&&w.ekj("router-component",kt.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["data-cy","sponsor-dropdown-button","class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["data-cy","sponsor-new-button","class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["data-cy","sponsor-csv-button","class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["data-cy","sponsor-existing-button","color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable",4,"ngIf"],["data-cy","sponsor-dropdown-button","color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["data-cy","sponsor-new-button","mat-menu-item","",1,"action-button",3,"click"],["data-cy","sponsor-csv-button","mat-menu-item","",1,"action-button",3,"click"],["data-cy","sponsor-existing-button","color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable"]],template:function(ct,kt){1&ct&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-refresh-button",1),w.NdJ("refresh",function(){return kt.refresh()}),w.qZA(),w.TgZ(5,"span",2),w.ALo(6,"translate"),w.YNc(7,Ei,3,5,"button",3),w.qZA(),w.TgZ(8,"mat-menu",null,4),w.YNc(10,Or,3,3,"button",5),w.YNc(11,Nr,3,3,"button",6),w.qZA(),w.YNc(12,kr,3,3,"button",7),w.TgZ(13,"perun-web-apps-immediate-filter",8),w.NdJ("filter",function(rn){return kt.applyFilter(rn)}),w.qZA(),w.YNc(14,Hr,1,0,"mat-spinner",9),w.YNc(15,Pi,1,5,"app-sponsored-members-list",10),w.qZA()),2&ct&&(w.xp6(2),w.Oqu(w.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),w.xp6(3),w.s9C("matTooltip",w.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),w.Q6J("matTooltipDisabled",!(kt.findSponsorsAuth&&0===kt.voSponsors.length)),w.xp6(2),w.Q6J("ngIf",kt.createAuth||kt.generateAuth),w.xp6(3),w.Q6J("ngIf",kt.createAuth),w.xp6(1),w.Q6J("ngIf",kt.generateAuth),w.xp6(1),w.Q6J("ngIf",kt.setSponsorshipAuth),w.xp6(1),w.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),w.xp6(1),w.Q6J("ngIf",kt.loading),w.xp6(1),w.Q6J("ngIf",!kt.loading))},dependencies:[v.O5,ie.lW,Le.Ou,T.gM,o.VK,o.OP,o.p6,Er,Ur.t,ve.L,L.X$]}),Mt})()},25309:(Xe,ue,p)=>{"use strict";p.d(ue,{Y:()=>Ye});var e=p(61744),A=p(9244),C=p(81591),M=p(11717),m=p(95017),b=p(65412),D=p(24006),v=p(94650),R=p(89383),B=p(94364),w=p(36895),L=p(59549),O=p(284),q=p(4859),ee=p(51572),z=p(10266);function ie(Be,se){1&Be&&v._UZ(0,"mat-spinner",3)}function Te(Be,se){if(1&Be){const le=v.EpF();v.TgZ(0,"div")(1,"div",4)(2,"mat-form-field"),v._UZ(3,"input",5),v.ALo(4,"translate"),v.TgZ(5,"mat-error"),v._uU(6),v.ALo(7,"translate"),v.qZA()(),v.TgZ(8,"mat-form-field"),v._UZ(9,"input",6),v.ALo(10,"translate"),v.TgZ(11,"mat-error"),v._uU(12),v.ALo(13,"translate"),v.qZA()()(),v.TgZ(14,"div",7)(15,"button",8),v.NdJ("click",function(){v.CHM(le);const N=v.oxw();return v.KtG(N.onCancel())}),v._uU(16),v.ALo(17,"translate"),v.qZA(),v.TgZ(18,"div",9),v.ALo(19,"translate"),v.TgZ(20,"button",10),v.NdJ("click",function(){v.CHM(le);const N=v.oxw();return v.KtG(N.onSubmit())}),v._uU(21),v.ALo(22,"translate"),v.qZA()()()()}if(2&Be){const le=v.oxw();v.xp6(3),v.s9C("placeholder",v.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),v.Q6J("formControl",le.fullNameCtrl),v.xp6(3),v.hij(" ",v.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),v.xp6(3),v.s9C("placeholder",v.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),v.Q6J("formControl",le.shortNameCtrl),v.xp6(3),v.hij(" ",v.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),v.xp6(4),v.hij(" ",v.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),v.xp6(2),v.s9C("matTooltip",v.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),v.Q6J("matTooltipDisabled",le.shortNameCtrl.valid&&le.fullNameCtrl.valid),v.xp6(2),v.Q6J("disabled",le.shortNameCtrl.invalid||le.fullNameCtrl.invalid),v.xp6(1),v.hij(" ",v.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let pe=(()=>{class Be{constructor(le,k,N,be,Z,de){this.dialogRef=le,this.data=k,this.notificator=N,this.voService=be,this.translate=Z,this.router=de,Z.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(xe=>this.successMessage=xe)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new D.p4(null,[D.kI.required,D.kI.pattern("^[\\w.-]+$"),D.kI.maxLength(33)]),this.fullNameCtrl=new D.p4(null,[D.kI.required,D.kI.pattern(".*[\\S]+.*"),D.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe({next:le=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.router.navigate(["/organizations",le.id],{queryParamsHandling:"preserve"}),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return Be.\u0275fac=function(le){return new(le||Be)(v.Y36(b.so),v.Y36(b.WI),v.Y36(C.V6),v.Y36(e.YF),v.Y36(R.sK),v.Y36(B.F0))},Be.\u0275cmp=v.Xpm({type:Be,selectors:[["app-create-vo-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","vo-name-input","required","",3,"formControl","placeholder"],["matInput","","data-cy","vo-shortname-input","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","data-cy","create-vo-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(le,k){1&le&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,ie,1,0,"mat-spinner",1),v.YNc(5,Te,23,25,"div",2),v.qZA()),2&le&&(v.Tol(k.theme),v.xp6(2),v.Oqu(v.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),v.xp6(2),v.Q6J("ngIf",k.loading),v.xp6(1),v.Q6J("ngIf",!k.loading))},dependencies:[w.O5,L.TO,L.KE,O.Nt,D.Fj,D.JJ,D.Q7,D.oH,q.lW,b.uh,b.xY,b.H8,ee.Ou,z.gM,R.X$],styles:[".mat-dialog-content[_ngcontent-%COMP%]{height:auto}@media (min-width: 421px) and (max-width: 755px){.mat-dialog-content[_ngcontent-%COMP%]{height:150px}}@media (max-width: 420px){.mat-dialog-content[_ngcontent-%COMP%]{height:175px}}"]}),Be})();var Le=p(10036),T=p(77968),W=p(97392),F=p(87831),V=p(96214),te=p(4235),Q=p(7434);function Ee(Be,se){if(1&Be){const le=v.EpF();v.TgZ(0,"button",9),v.NdJ("click",function(){v.CHM(le);const N=v.oxw();return v.KtG(N.onCreateVo())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&Be&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function ge(Be,se){if(1&Be){const le=v.EpF();v.TgZ(0,"button",10),v.NdJ("click",function(){v.CHM(le);const N=v.oxw();return v.KtG(N.onRemoveVo())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&Be){const le=v.oxw();v.Q6J("disabled",0===le.selection.selected.length),v.xp6(1),v.hij(" ",v.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function ve(Be,se){1&Be&&v._UZ(0,"mat-spinner",11)}function De(Be,se){if(1&Be&&v._UZ(0,"perun-web-apps-vos-list",12),2&Be){const le=v.oxw();v.Q6J("tableId",le.tableId)("displayedColumns",le.displayedColumns)("filterValue",le.filterValue)("recentIds",le.recentIds)("selection",le.selection)("vos",le.vos)}}const he=function(){return{color:"black"}};let Ye=(()=>{class Be{constructor(le,k,N,be,Z,de){this.sideMenuService=le,this.voService=k,this.guiAuthResolver=N,this.dialog=be,this.notificator=Z,this.apiRequest=de,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=Le.tw}ngOnInit(){this.loading=!0,this.selection=new m.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","hierarchy","recent","shortName","name"]:["id","recent","hierarchy","shortName","name"],this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setAccessMenuItems([])}refreshTable(){this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyEnrichedVos().subscribe({next:le=>{this.vos=le,this.recentIds=(0,A.vL)("vos"),this.loading=!1},error:le=>{"PrivilegeException"===le.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(le)}})}applyFilter(le){this.filterValue=le}onCreateVo(){const le=(0,A.kZ)();le.width="610px",le.data={theme:"vo-theme"},this.dialog.open(pe,le).afterClosed().subscribe(N=>{N&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const le=(0,A.kZ)();le.width="500px",le.data={theme:"vo-theme",vos:[this.selection.selected[0].vo]},this.dialog.open(M.o,le).afterClosed().subscribe(N=>{N&&this.refreshTable()})}}return Be.id="VoSelectPageComponent",Be.\u0275fac=function(le){return new(le||Be)(v.Y36(T.D),v.Y36(e.YF),v.Y36(C.x4),v.Y36(b.uw),v.Y36(C.V6),v.Y36(C.F5))},Be.\u0275cmp=v.Xpm({type:Be,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(le,k){2&le&&v.ekj("router-component",k.true)},decls:12,vars:11,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","vo-theme"],[1,"page-title","d-flex"],["svgIcon","perun-vo-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["class","mr-2 action-button","data-cy","new-vo-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos",4,"ngIf"],["data-cy","new-vo-button","color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos"]],template:function(le,k){1&le&&(v.TgZ(0,"div",0),v._UZ(1,"perun-web-apps-back-button"),v.TgZ(2,"h1",1),v._UZ(3,"mat-icon",2),v._uU(4),v.ALo(5,"translate"),v.qZA(),v.TgZ(6,"perun-web-apps-refresh-button",3),v.NdJ("refresh",function(){return k.refreshTable()}),v.qZA(),v.YNc(7,Ee,3,3,"button",4),v.YNc(8,ge,3,4,"button",5),v.TgZ(9,"perun-web-apps-immediate-filter",6),v.NdJ("filter",function(be){return k.applyFilter(be)}),v.qZA(),v.YNc(10,ve,1,0,"mat-spinner",7),v.YNc(11,De,1,6,"perun-web-apps-vos-list",8),v.qZA()),2&le&&(v.xp6(3),v.Q6J("ngStyle",v.DdM(10,he)),v.xp6(1),v.hij(" ",v.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),v.xp6(3),v.Q6J("ngIf",k.createAuth),v.xp6(1),v.Q6J("ngIf",k.deleteAuth),v.xp6(1),v.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),v.xp6(1),v.Q6J("ngIf",k.loading),v.xp6(1),v.Q6J("ngIf",!k.loading))},dependencies:[w.O5,w.PC,W.Hw,q.lW,ee.Ou,F.Z,V.t,te.W,Q.L,R.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),Be})()},92013:(Xe,ue,p)=>{"use strict";var e=p(11481),A=p(94650),C=p(94364);let M=(()=>{class oe{}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(I,Y){}}),oe})();var m=p(61744),b=p(81591),D=p(9244),v=p(21029),R=p(40034),B=p(77968),w=p(89383),L=p(65412),O=p(36895),q=p(24006),ee=p(97392),z=p(23267),ie=p(4859),Te=p(56709),pe=p(51572),Le=p(10266),T=p(87831),W=p(25788),F=p(62109),V=p(74010);function te(oe,U){1&oe&&A._UZ(0,"mat-spinner",7)}const Q=function(){return["id","recent","shortName","name"]};function Ee(oe,U){if(1&oe&&(A.TgZ(0,"span"),A._UZ(1,"perun-web-apps-vos-list",8),A.qZA()),2&oe){const I=A.oxw(2);A.xp6(1),A.Q6J("pageSizeOptions",null)("displayedColumns",A.DdM(4,Q))("recentIds",I.recentIds)("vos",I.objects)}}const ge=function(){return["id","recent","vo","name","description"]};function ve(oe,U){if(1&oe&&(A.TgZ(0,"span"),A._UZ(1,"perun-web-apps-groups-list",9),A.qZA()),2&oe){const I=A.oxw(2);A.xp6(1),A.Q6J("pageSizeOptions",null)("displayedColumns",A.DdM(4,ge))("groups",I.objects)("recentIds",I.recentIds)}}const De=function(){return["id","recent","name","vo","facility"]};function he(oe,U){if(1&oe&&(A.TgZ(0,"span"),A._UZ(1,"perun-web-apps-resources-list",10),A.qZA()),2&oe){const I=A.oxw(2);A.xp6(1),A.Q6J("pageSizeOptions",null)("displayedColumns",A.DdM(5,De))("resources",I.objects)("recentIds",I.recentIds)("routingVo",!0)}}const Ye=function(){return["id","recent","name","description"]};function Be(oe,U){if(1&oe&&(A.TgZ(0,"span"),A._UZ(1,"perun-web-apps-facilities-list",11),A.qZA()),2&oe){const I=A.oxw(2);A.xp6(1),A.Q6J("displayedColumns",A.DdM(4,Ye))("facilities",I.objects)("pageSizeOptions",null)("recentIds",I.recentIds)}}function se(oe,U){if(1&oe&&(A.TgZ(0,"div"),A.YNc(1,Ee,2,5,"span",6),A.YNc(2,ve,2,5,"span",6),A.YNc(3,he,2,6,"span",6),A.YNc(4,Be,2,5,"span",6),A.qZA()),2&oe){const I=A.oxw();A.xp6(1),A.Q6J("ngIf","Vo"===I.primaryObject),A.xp6(1),A.Q6J("ngIf","Group"===I.primaryObject),A.xp6(1),A.Q6J("ngIf","Resource"===I.primaryObject),A.xp6(1),A.Q6J("ngIf","Facility"===I.primaryObject)}}let le=(()=>{class oe{constructor(I,Y,je){this.authzResolver=I,this.guiAuthResolver=Y,this.resourceService=je,this.loading=!1,this.recentIds=[]}ngOnInit(){this.loading=!0,this.primaryObject=this.guiAuthResolver.getPrimaryObjectOfRole(this.roleName),this.svgIcon="perun-"+this.primaryObject.toLowerCase()+"-black",this.title="USER_DETAIL.DASHBOARD.CARD_TITLE_"+this.roleName,this.roleTooltipInfo="USER_DETAIL.DASHBOARD.ROLE_INFO_"+this.roleName,this.getObjects()}getObjects(){switch(this.primaryObject){case"Vo":this.authzResolver.getVosWhereUserIsInRoles([this.roleName]).subscribe(I=>{this.objects=I,this.recentIds=(0,D.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(I=>{this.objects=I,this.recentIds=(0,D.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(I=>{this.objects=I,this.recentIds=(0,D.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(I=>{this.objects=I.map(Y=>({facility:Y})),this.recentIds=(0,D.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(m.Ct),A.Y36(b.x4),A.Y36(m.xk))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["app-perun-web-apps-dashboard-card"]],inputs:{role:"role",roleName:"roleName"},decls:11,vars:9,consts:[[1,"card","p-3"],[1,"flex-column","card-title"],[1,"cover-image",3,"svgIcon"],["matTooltipPosition","above",3,"matTooltip"],[1,"dashboard-icon"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSizeOptions","displayedColumns","recentIds","vos"],[3,"pageSizeOptions","displayedColumns","groups","recentIds"],[3,"pageSizeOptions","displayedColumns","resources","recentIds","routingVo"],[3,"displayedColumns","facilities","pageSizeOptions","recentIds"]],template:function(I,Y){1&I&&(A.TgZ(0,"div",0)(1,"div",1),A._UZ(2,"mat-icon",2),A._uU(3),A.ALo(4,"translate"),A.TgZ(5,"span",3),A.ALo(6,"translate"),A.TgZ(7,"mat-icon",4),A._uU(8,"info_outline"),A.qZA()()(),A.YNc(9,te,1,0,"mat-spinner",5),A.YNc(10,se,5,4,"div",6),A.qZA()),2&I&&(A.xp6(2),A.Q6J("svgIcon",Y.svgIcon),A.xp6(1),A.hij(" ",A.lcZ(4,5,Y.title)," "),A.xp6(2),A.s9C("matTooltip",A.lcZ(6,7,Y.roleTooltipInfo)),A.xp6(4),A.Q6J("ngIf",Y.loading),A.xp6(1),A.Q6J("ngIf",!Y.loading))},dependencies:[O.O5,ee.Hw,pe.Ou,Le.gM,T.Z,W.W,F.C,V.X,w.X$],styles:[".dashboard-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}.card-title[_ngcontent-%COMP%]{font-size:1.4rem;flex-wrap:wrap}.cover-image[_ngcontent-%COMP%]{transform:scale(1.8);margin-left:.9rem;margin-right:.7rem}"]}),oe})();var k=p(3238),N=p(98380),be=p(34198),Z=p(55660);function de(oe,U){1&oe&&A._UZ(0,"mat-spinner",3)}function xe(oe,U){1&oe&&(A.TgZ(0,"perun-web-apps-alert",4),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}const ot=function(oe){return[oe]};function Fe(oe,U){if(1&oe&&(A.TgZ(0,"div",7)(1,"a",8),A.NdJ("auxclick",function(Y){return Y.preventDefault()}),A.TgZ(2,"span",9),A._uU(3),A.qZA(),A._UZ(4,"mat-icon",10),A.TgZ(5,"p",11),A._uU(6),A.qZA()()()),2&oe){const I=U.$implicit;A.xp6(1),A.Gre("",I.style," item-itself"),A.s9C("matTooltip",I.tooltip),A.Q6J("perunWebAppsMiddleClickRouterLink",A.VKq(9,ot,I.url))("routerLink",I.url),A.xp6(2),A.Oqu(I.type),A.xp6(1),A.Q6J("svgIcon",I.cssIcon),A.xp6(2),A.Oqu(I.label)}}function ut(oe,U){if(1&oe&&(A.TgZ(0,"div",5),A.YNc(1,Fe,7,11,"div",6),A.qZA()),2&oe){const I=A.oxw();A.xp6(1),A.Q6J("ngForOf",I.items)}}let tt=(()=>{class oe{constructor(I,Y,je,dt){this.vosManager=I,this.groupsManager=Y,this.authResolver=je,this.facilitiesManager=dt,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}ngOnInit(){this.loading=!0,this.recentItems=(0,D.j4)("recent");for(const I of this.recentItems)switch(I.type){case"Vo":this.vosIds.push(I.id);break;case"Group":this.groupsIds.push(I.id);break;case"Facility":this.facilitiesIds.push(I.id)}0===this.vosIds.length&&this.vosIds.push(-1),0===this.groupsIds.length&&this.groupsIds.push(-1),0===this.facilitiesIds.length&&this.facilitiesIds.push(-1),this.getVos()}getVos(){this.authResolver.isAuthorized("getVosByIds_List_policy",[])?this.vosManager.getVosByIds(this.vosIds).subscribe(I=>{this.vos=I,this.getGroups()}):this.getGroups()}getGroups(){this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(I=>{this.groups=I,this.getFacilities()}):this.getFacilities()}getFacilities(){this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(I=>{this.facilities=I,this.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}addRecentlyViewedToDashboard(){for(const I of this.recentItems)switch(I.type){case"Vo":{const Y=this.vos.filter(je=>je.id===I.id)[0];Y&&this.items.push({cssIcon:"perun-vo",url:`/organizations/${Y.id}`,label:Y.name,tooltip:Y.name,style:"vo-btn",type:"Organization"});break}case"Group":{const Y=this.groups.filter(je=>je.id===I.id)[0];Y&&this.items.push({cssIcon:"perun-group",url:`/organizations/${Y.voId}/groups/${Y.id}`,label:Y.shortName,tooltip:`${I.voName} : ${Y.name.replace(/:/g," : ")}`,style:"group-btn",type:"Group"});break}case"Facility":{const Y=this.facilities.filter(je=>je.id===I.id)[0];Y&&this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${Y.id}`,label:Y.name,tooltip:Y.name,style:"facility-btn",type:"Facility"});break}}this.loading=!1}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(m.YF),A.Y36(m.ff),A.Y36(b.x4),A.Y36(m.IQ))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["app-perun-web-apps-dashboard-recently-viewed-button-field"]],decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],["alert_type","info",4,"ngIf"],["class","items-container",4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","info"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],[3,"perunWebAppsMiddleClickRouterLink","routerLink","matTooltip","auxclick"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"],[1,"truncate"]],template:function(I,Y){1&I&&(A.YNc(0,de,1,0,"mat-spinner",0),A.YNc(1,xe,3,3,"perun-web-apps-alert",1),A.YNc(2,ut,2,1,"div",2)),2&I&&(A.Q6J("ngIf",Y.loading),A.xp6(1),A.Q6J("ngIf",0===Y.items.length&&!Y.loading),A.xp6(1),A.Q6J("ngIf",Y.items.length>0))},dependencies:[O.sg,O.O5,C.yS,ee.Hw,pe.Ou,Le.gM,k.wG,N.w,be.Y,Z.Q,w.X$],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px;align-self:center}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;font-size:1.25rem;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}.item-type[_ngcontent-%COMP%]{font-size:.75rem}.truncate[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}"]}),oe})();var vt=p(31359);function X(oe,U){if(1&oe){const I=A.EpF();A.TgZ(0,"div")(1,"mat-checkbox",8),A.NdJ("change",function(je){const Ot=A.CHM(I).$implicit,Ht=A.oxw();return A.KtG(je?Ht.changeRoleView(Ot):null)}),A._uU(2),A.ALo(3,"translate"),A.qZA()()}if(2&oe){const I=U.$implicit,Y=A.oxw();A.xp6(1),A.Q6J("checked",Y.isRoleShowed(I)),A.xp6(1),A.Oqu(A.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+I))}}function nt(oe,U){if(1&oe){const I=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){A.CHM(I);const je=A.oxw(2);return A.KtG(je.rightSettingOpened=!0)}),A.TgZ(1,"mat-icon"),A._uU(2,"settings"),A.qZA()()}}function Ae(oe,U){1&oe&&(A.TgZ(0,"span"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function ye(oe,U){1&oe&&(A.TgZ(0,"span"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function _e(oe,U){if(1&oe){const I=A.EpF();A.TgZ(0,"button",23),A.NdJ("click",function(){A.CHM(I);const je=A.oxw(3);return A.KtG(je.goToUserProfile())}),A.TgZ(1,"mat-icon",24),A._uU(2,"exit_to_app"),A.qZA(),A._uU(3),A.ALo(4,"translate"),A.qZA()}if(2&oe){const I=A.oxw(3);A.xp6(3),A.AsE("",A.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",I.userProfileName," ")}}const Se=function(){return["/myProfile"]};function Ne(oe,U){if(1&oe&&(A.TgZ(0,"div")(1,"div",16)(2,"div",17),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.TgZ(5,"div",18),A.YNc(6,Ae,3,3,"span",14),A.YNc(7,ye,3,3,"span",14),A.qZA(),A.TgZ(8,"div",19)(9,"button",20),A._UZ(10,"mat-icon",21),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.YNc(13,_e,5,4,"button",22),A.qZA()()()),2&oe){const I=A.oxw(2);A.xp6(3),A.hij(" ",A.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),A.xp6(3),A.Q6J("ngIf",!I.userProfileUrl),A.xp6(1),A.Q6J("ngIf",I.userProfileUrl),A.xp6(2),A.Q6J("routerLink",A.DdM(10,Se)),A.xp6(2),A.hij(" ",A.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),A.xp6(2),A.Q6J("ngIf",I.userProfileUrl)}}function Ce(oe,U){1&oe&&(A.TgZ(0,"span")(1,"div",3),A._uU(2),A.ALo(3,"translate"),A.qZA(),A._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),A.qZA()),2&oe&&(A.xp6(2),A.hij(" ",A.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function fe(oe,U){1&oe&&(A.TgZ(0,"div",27),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function r(oe,U){if(1&oe&&A._UZ(0,"app-perun-web-apps-dashboard-card",30),2&oe){const I=A.oxw().$implicit,Y=A.oxw(3);A.Q6J("roleName",I)("role",Y.roles[I])}}function u(oe,U){if(1&oe&&(A.TgZ(0,"div",28),A.YNc(1,r,1,2,"app-perun-web-apps-dashboard-card",29),A.qZA()),2&oe){const I=U.$implicit,Y=A.oxw(3);A.xp6(1),A.Q6J("ngIf",Y.isRoleShowed(I))}}function _(oe,U){if(1&oe&&(A.TgZ(0,"div"),A.YNc(1,Ce,5,3,"span",14),A.YNc(2,fe,3,3,"div",25),A.TgZ(3,"div"),A.YNc(4,u,2,1,"div",26),A.qZA()()),2&oe){const I=A.oxw(2);A.xp6(1),A.Q6J("ngIf",I.recentlyViewedShow),A.xp6(1),A.Q6J("ngIf",I.rolesToHide.toString()!==I.roleNames.toString()),A.xp6(2),A.Q6J("ngForOf",I.roleNames)}}function E(oe,U){if(1&oe&&(A.TgZ(0,"div",9)(1,"h1",10),A._UZ(2,"mat-icon",11),A.TgZ(3,"span",12),A._uU(4),A.ALo(5,"translate"),A.ALo(6,"userFullName"),A.qZA(),A.YNc(7,nt,3,0,"button",13),A.qZA(),A.YNc(8,Ne,14,11,"div",14),A.YNc(9,_,5,3,"div",14),A.qZA()),2&oe){const I=A.oxw();A.xp6(4),A.AsE("",A.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",A.lcZ(6,7,I.user),""),A.xp6(3),A.Q6J("ngIf",!I.isOnlySelfRole),A.xp6(1),A.Q6J("ngIf",I.isOnlySelfRole),A.xp6(1),A.Q6J("ngIf",!I.isOnlySelfRole)}}let h=(()=>{class oe{constructor(I,Y,je,dt,Ot,Ht,Gt,$t,fn,Tn){this.userManager=I,this.storeService=Y,this.sideMenuService=je,this.route=dt,this.router=Ot,this.notificator=Ht,this.translateService=Gt,this.dialog=$t,this.apiRequestConfiguration=fn,this.otherApplicationService=Tn,this.roles={},this.userProfileUrl="",this.isOnlySelfRole=!1,this.rightSettingOpened=!1,this.recentlyViewedShow=!0,this.rolesToHide=[],this.allowedRoles=["VOADMIN","GROUPADMIN","FACILITYADMIN","SPONSOR","RESOURCEADMIN","TOPGROUPCREATOR","VOOBSERVER","GROUPOBSERVER","GROUPMEMBERSHIPMANAGER","FACILITYOBSERVER","RESOURCEOBSERVER"],Gt.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(kn=>this.mailSuccessMessage=kn)}ngOnInit(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const I=Object.keys(this.roles);this.isOnlySelfRole=I.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(Y=>I.includes(Y)),this.getDashboardSettings()}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}changeRoleView(I){if(this.isRoleShowed(I)){const Y=[];for(const je of this.roleNames)this.isRoleShowed(je)||Y.push(je),je===I&&Y.push(je);this.rolesToHide=Y}else this.rolesToHide=this.rolesToHide.filter(Y=>Y!==I);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(I){return!this.rolesToHide.includes(I)}validatePreferredMailChange(){const I=this.route.snapshot.queryParamMap,Y=I.get("token"),je=I.get("u");Y&&je&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(Y,Number.parseInt(je,10)).subscribe({next:()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0,queryParamsHandling:"preserve"})},error:()=>{const dt=(0,D.kZ)();dt.width="600px",this.dialog.open(v.qD,dt).afterClosed().subscribe(()=>{this.getDashboardSettings()})}}))}getDashboardSettings(){const I=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===I||I;const Y=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===Y?[]:Y}getUserProfile(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication(R.p.Profile),this.userProfileName=this.storeService.getProperty("profile_label_en")}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(m.Fv),A.Y36(b.d6),A.Y36(B.D),A.Y36(C.gz),A.Y36(C.F0),A.Y36(b.V6),A.Y36(w.sK),A.Y36(L.uw),A.Y36(b.F5),A.Y36(b.jq))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(I,Y){2&I&&A.ekj("router-component",Y.true)},decls:16,vars:13,consts:[["hasBackdrop","true",1,"dashboard"],["mode","over","position","end",3,"opened","openedChange"],[1,"m-4","user-theme"],[1,"page-subtitle"],[3,"ngModel","ngModelChange","change"],[1,"text-bigger","mt-1","mb-1"],[4,"ngFor","ngForOf"],["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[3,"checked","change"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"page-title","d-flex"],["svgIcon","perun-home-white",1,"home-image","perun-icon"],["data-cy","dashboard-welcome",1,"pt-1"],["class","ml-auto text-bigger","mat-stroked-button","",3,"click",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"ml-auto","text-bigger",3,"click"],[1,"card","m-3","p-5"],[1,"text-align"],[1,"text-align","pt-3"],[1,"mx-auto","pt-3"],["queryParamsHandling","merge","mat-stroked-button","",1,"text-bigger",3,"routerLink"],["svgIcon","perun-user-dark",1,"mr-1","user-icon","perun-icon"],["class","text-bigger ml-2 mt-2","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"text-bigger","ml-2","mt-2",3,"click"],[1,"mr-1"],["class","page-subtitle mt-4",4,"ngIf"],["class","mb-3",4,"ngFor","ngForOf"],[1,"page-subtitle","mt-4"],[1,"mb-3"],[3,"roleName","role",4,"ngIf"],[3,"roleName","role"]],template:function(I,Y){1&I&&(A.TgZ(0,"mat-sidenav-container",0)(1,"mat-sidenav",1),A.NdJ("openedChange",function(dt){return Y.rightSettingOpened=dt}),A.TgZ(2,"div",2)(3,"div",3),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div")(7,"mat-checkbox",4),A.NdJ("ngModelChange",function(dt){return Y.recentlyViewedShow=dt})("change",function(dt){return dt?Y.recentlyViewedChanged():null}),A._uU(8),A.ALo(9,"translate"),A.qZA()(),A.TgZ(10,"div",5),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.YNc(13,X,4,4,"div",6),A.qZA()(),A.TgZ(14,"mat-sidenav-content"),A.YNc(15,E,10,9,"div",7),A.qZA()()),2&I&&(A.xp6(1),A.Q6J("opened",Y.rightSettingOpened),A.xp6(3),A.Oqu(A.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),A.xp6(3),A.Q6J("ngModel",Y.recentlyViewedShow),A.xp6(1),A.Oqu(A.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),A.xp6(3),A.Oqu(A.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),A.xp6(2),A.Q6J("ngForOf",Y.roleNames),A.xp6(2),A.Q6J("ngIf",void 0!==Y.user))},dependencies:[O.sg,O.O5,C.rH,q.JJ,q.On,ee.Hw,z.JX,z.TM,z.Rh,ie.lW,Te.oG,le,tt,w.X$,vt.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;-moz-column-gap:1rem;column-gap:1rem;margin:0}.dashboard-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:0 1rem 1rem 0;display:inline-block;min-width:300px;width:100%}.home-image[_ngcontent-%COMP%]{transform:scale(1.4);margin-right:.7rem;margin-left:.6rem}.text-align[_ngcontent-%COMP%]{text-align:center;font-size:1.25rem}.text-bigger[_ngcontent-%COMP%]{font-size:1.1rem}.user-icon[_ngcontent-%COMP%]{vertical-align:top}.dashboard[_ngcontent-%COMP%]{position:relative;min-height:calc(100vh - 234px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),oe})();var a=p(4235);let i=(()=>{class oe{}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["app-perun-web-apps-not-found-page"]],decls:5,vars:3,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5"],[1,"page-title"]],template:function(I,Y){1&I&&(A.TgZ(0,"div",0),A._UZ(1,"perun-web-apps-back-button"),A.TgZ(2,"h1",1),A._uU(3),A.ALo(4,"translate"),A.qZA()()),2&I&&(A.xp6(3),A.Oqu(A.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},dependencies:[a.W,w.X$]}),oe})();var t=p(37433),n=p(59549),o=p(284),s=p(63189);let l=(()=>{class oe{}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275mod=A.oAB({type:oe}),oe.\u0275inj=A.cJS({imports:[O.ez,ie.ot,ee.Ps,C.Bz,t.ez,w.aw,n.lN,q.UX,o.c,s.r]}),oe})(),d=(()=>{class oe{constructor(I,Y){this.auth=I,this.router=Y}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(b.e8),A.Y36(C.F0))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(I,Y){1&I&&(A.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"button",4),A.NdJ("click",function(){return Y.startAuth()}),A._uU(7),A.ALo(8,"translate"),A.TgZ(9,"mat-icon"),A._uU(10," login "),A.qZA()()()()()),2&I&&(A.xp6(4),A.hij(" ",A.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),A.xp6(3),A.hij(" ",A.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[ie.lW,ee.Hw,w.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),oe})();var c=p(41619);function S(oe,U){if(1&oe&&(A.TgZ(0,"div",8),A._UZ(1,"div",9),A.qZA()),2&oe){const I=A.oxw();A.xp6(1),A.Q6J("innerHTML",I.logo,A.oJD)}}function J(oe,U){if(1&oe&&(A.TgZ(0,"div",10),A._UZ(1,"div",11)(2,"mat-icon",12),A.qZA()),2&oe){const I=A.oxw();A.xp6(1),A.Q6J("innerHTML",I.logo,A.oJD)}}const ht=function(oe){return{color:oe}};function We(oe,U){if(1&oe&&(A.TgZ(0,"p",13),A._uU(1),A.qZA()),2&oe){const I=A.oxw();A.Q6J("ngStyle",A.VKq(2,ht,I.textColor)),A.xp6(1),A.hij(" ",I.headerTitle," ")}}const et=function(oe,U){return{background:oe,color:U}},ne=function(oe,U){return{"min-height":oe,"background-color":U}};let Ue=(()=>{class oe{constructor(I,Y,je,dt){this.storeService=I,this.sanitizer=Y,this.preferredLangService=je,this.translateService=dt,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const I=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(I)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(b.d6),A.Y36(e.H7),A.Y36(b.BN),A.Y36(w.sK))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(I,Y){1&I&&(A.TgZ(0,"div",0),A.YNc(1,S,2,1,"div",1),A.YNc(2,J,3,1,"div",2),A.YNc(3,We,2,4,"p",3),A.qZA(),A.TgZ(4,"div",4)(5,"div",5)(6,"div",6),A._UZ(7,"router-outlet"),A.qZA(),A.TgZ(8,"div",7),A._UZ(9,"perun-web-apps-footer"),A.qZA()()()),2&I&&(A.Q6J("ngStyle",A.WLB(5,et,Y.headerBackgroundColor,Y.headerTextColor)),A.xp6(1),A.Q6J("ngIf","admin-gui"===Y.application||"user-profile"===Y.application||"consolidator"===Y.application),A.xp6(1),A.Q6J("ngIf","publications"===Y.application),A.xp6(1),A.Q6J("ngIf",!!Y.headerTitle),A.xp6(2),A.Q6J("ngStyle",A.WLB(8,ne,Y.getContentInnerMinHeight(),Y.contentBackgroundColor)))},dependencies:[O.O5,O.PC,ee.Hw,C.lC,c.$],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),oe})();function He(oe,U){1&oe&&(A.TgZ(0,"perun-web-apps-alert",8),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const Re=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"api-callback",component:M},{path:"login",component:d},{path:"service-access",component:(()=>{class oe{constructor(I,Y,je){this.authzService=I,this.auth=Y,this.router=je,this.usernameCtrl=new q.NI(null,[q.kI.required]),this.passwordCtrl=new q.NI(null,[q.kI.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:I=>{sessionStorage.setItem("baPrincipal",JSON.stringify(I)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(m.Ct),A.Y36(b.e8),A.Y36(C.F0))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl","keyup.enter"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(I,Y){1&I&&(A.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.YNc(6,He,3,3,"perun-web-apps-alert",3),A.TgZ(7,"mat-form-field",4)(8,"mat-label"),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"input",5),A.NdJ("keyup.enter",function(){return Y.startAuth()}),A.qZA(),A.TgZ(12,"mat-error"),A._uU(13),A.ALo(14,"translate"),A.qZA()(),A.TgZ(15,"mat-form-field",4)(16,"mat-label"),A._uU(17),A.ALo(18,"translate"),A.qZA(),A.TgZ(19,"input",6),A.NdJ("keyup.enter",function(){return Y.startAuth()}),A.qZA(),A.TgZ(20,"mat-error"),A._uU(21),A.ALo(22,"translate"),A.qZA()(),A.TgZ(23,"button",7),A.NdJ("click",function(){return Y.startAuth()}),A._uU(24),A.ALo(25,"translate"),A.TgZ(26,"mat-icon"),A._uU(27," login "),A.qZA()()()()()),2&I&&(A.xp6(4),A.Oqu(A.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),A.xp6(2),A.Q6J("ngIf",Y.wrongUsernameOrPassword),A.xp6(3),A.Oqu(A.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),A.xp6(2),A.Q6J("formControl",Y.usernameCtrl),A.xp6(2),A.hij(" ",A.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),A.xp6(4),A.Oqu(A.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),A.xp6(2),A.Q6J("formControl",Y.passwordCtrl)("type","password"),A.xp6(2),A.hij(" ",A.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),A.xp6(2),A.Q6J("disabled",Y.usernameCtrl.invalid||Y.passwordCtrl.invalid),A.xp6(1),A.hij(" ",A.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[O.O5,ie.lW,ee.Hw,n.TO,n.KE,n.hX,q.Fj,q.JJ,q.Q7,q.oH,o.Nt,N.w,w.X$],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),oe})()},{path:"organizations",loadChildren:()=>Promise.all([p.e(839),p.e(109),p.e(907),p.e(254)]).then(p.bind(p,74254)).then(oe=>oe.VosModule)},{path:"admin",loadChildren:()=>Promise.all([p.e(839),p.e(338),p.e(109),p.e(705)]).then(p.bind(p,72705)).then(oe=>oe.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([p.e(839),p.e(338),p.e(109),p.e(705),p.e(907),p.e(775)]).then(p.bind(p,27775)).then(oe=>oe.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([p.e(839),p.e(338)]).then(p.bind(p,38338)).then(oe=>oe.UsersModule)},{path:"home",component:h},{path:"notAuthorized",component:t.y9},{path:"**",component:i}];let re=(()=>{class oe{}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275mod=A.oAB({type:oe}),oe.\u0275inj=A.cJS({imports:[C.Bz.forRoot(Re,{preloadingStrategy:C.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),C.Bz]}),oe})();var we=p(72077),st=p(14264);class Ke{constructor(U,I="/assets/i18n/",Y=".json"){this.http=U,this.prefix=I,this.suffix=Y}getTranslation(U){return this.http.get(`${this.prefix}${U}${this.suffix}`)}}var Et=p(80529),ke=p(37340);function It(oe){return new A.vHH(3e3,!1)}function tr(){return typeof window<"u"&&typeof window.document<"u"}function Vi(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function li(oe){switch(oe.length){case 0:return new ke.ZN;case 1:return oe[0];default:return new ke.ZE(oe)}}function or(oe,U,I,Y,je=new Map,dt=new Map){const Ot=[],Ht=[];let Gt=-1,$t=null;if(Y.forEach(fn=>{const Tn=fn.get("offset"),kn=Tn==Gt,jn=kn&&$t||new Map;fn.forEach((On,Nn)=>{let fi=Nn,oi=On;if("offset"!==Nn)switch(fi=U.normalizePropertyName(fi,Ot),oi){case ke.k1:oi=je.get(Nn);break;case ke.l3:oi=dt.get(Nn);break;default:oi=U.normalizeStyleValue(Nn,fi,oi,Ot)}jn.set(fi,oi)}),kn||Ht.push(jn),$t=jn,Gt=Tn}),Ot.length)throw function Xt(oe){return new A.vHH(3502,!1)}();return Ht}function Ir(oe,U,I,Y){switch(U){case"start":oe.onStart(()=>Y(I&&sr(I,"start",oe)));break;case"done":oe.onDone(()=>Y(I&&sr(I,"done",oe)));break;case"destroy":oe.onDestroy(()=>Y(I&&sr(I,"destroy",oe)))}}function sr(oe,U,I){const dt=lr(oe.element,oe.triggerName,oe.fromState,oe.toState,U||oe.phaseName,I.totalTime??oe.totalTime,!!I.disabled),Ot=oe._data;return null!=Ot&&(dt._data=Ot),dt}function lr(oe,U,I,Y,je="",dt=0,Ot){return{element:oe,triggerName:U,fromState:I,toState:Y,phaseName:je,totalTime:dt,disabled:!!Ot}}function Ci(oe,U,I){let Y=oe.get(U);return Y||oe.set(U,Y=I),Y}function Er(oe){const U=oe.indexOf(":");return[oe.substring(1,U),oe.slice(U+1)]}let Ur=(oe,U)=>!1,Ei=(oe,U,I)=>[],Or=null;function Nr(oe){const U=oe.parentNode||oe.host;return U===Or?null:U}(Vi()||typeof Element<"u")&&(tr()?(Or=(()=>document.documentElement)(),Ur=(oe,U)=>{for(;U;){if(U===oe)return!0;U=Nr(U)}return!1}):Ur=(oe,U)=>oe.contains(U),Ei=(oe,U,I)=>{if(I)return Array.from(oe.querySelectorAll(U));const Y=oe.querySelector(U);return Y?[Y]:[]});let Pi=null,Ii=!1;const kt=Ur,Zt=Ei;let In=(()=>{class oe{validateStyleProperty(I){return function Mt(oe){Pi||(Pi=function ct(){return typeof document<"u"?document.body:null}()||{},Ii=!!Pi.style&&"WebkitAppearance"in Pi.style);let U=!0;return Pi.style&&!function Hr(oe){return"ebkit"==oe.substring(1,6)}(oe)&&(U=oe in Pi.style,!U&&Ii&&(U="Webkit"+oe.charAt(0).toUpperCase()+oe.slice(1)in Pi.style)),U}(I)}matchesElement(I,Y){return!1}containsElement(I,Y){return kt(I,Y)}getParentElement(I){return Nr(I)}query(I,Y,je){return Zt(I,Y,je)}computeStyle(I,Y,je){return je||""}animate(I,Y,je,dt,Ot,Ht=[],Gt){return new ke.ZN(je,dt)}}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac}),oe})(),Bn=(()=>{class oe{}return oe.NOOP=new In,oe})();const Oi="ng-enter",xi="ng-leave",qi="ng-trigger",lt=".ng-trigger",Vt="ng-animating",$e=".ng-animating";function yt(oe){if("number"==typeof oe)return oe;const U=oe.match(/^(-?[\.\d]+)(m?s)/);return!U||U.length<2?0:Wt(parseFloat(U[1]),U[2])}function Wt(oe,U){return"s"===U?1e3*oe:oe}function dn(oe,U,I){return oe.hasOwnProperty("duration")?oe:function An(oe,U,I){let je,dt=0,Ot="";if("string"==typeof oe){const Ht=oe.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ht)return U.push(It()),{duration:0,delay:0,easing:""};je=Wt(parseFloat(Ht[1]),Ht[2]);const Gt=Ht[3];null!=Gt&&(dt=Wt(parseFloat(Gt),Ht[4]));const $t=Ht[5];$t&&(Ot=$t)}else je=oe;if(!I){let Ht=!1,Gt=U.length;je<0&&(U.push(function jt(){return new A.vHH(3100,!1)}()),Ht=!0),dt<0&&(U.push(function an(){return new A.vHH(3101,!1)}()),Ht=!0),Ht&&U.splice(Gt,0,It())}return{duration:je,delay:dt,easing:Ot}}(oe,U,I)}function Yn(oe,U={}){return Object.keys(oe).forEach(I=>{U[I]=oe[I]}),U}function ri(oe){const U=new Map;return Object.keys(oe).forEach(I=>{U.set(I,oe[I])}),U}function Ji(oe,U=new Map,I){if(I)for(let[Y,je]of I)U.set(Y,je);for(let[Y,je]of oe)U.set(Y,je);return U}function ei(oe,U,I){return I?U+":"+I+";":""}function Ba(oe){let U="";for(let I=0;I{const dt=Je(je);I&&!I.has(je)&&I.set(je,oe.style[dt]),oe.style[dt]=Y}),Vi()&&Ba(oe))}function Fi(oe,U){oe.style&&(U.forEach((I,Y)=>{const je=Je(Y);oe.style[je]=""}),Vi()&&Ba(oe))}function Si(oe){return Array.isArray(oe)?1==oe.length?oe[0]:(0,ke.vP)(oe):oe}const zr=new RegExp("{{\\s*(.+?)\\s*}}","g");function dr(oe){let U=[];if("string"==typeof oe){let I;for(;I=zr.exec(oe);)U.push(I[1]);zr.lastIndex=0}return U}function gi(oe,U,I){const Y=oe.toString(),je=Y.replace(zr,(dt,Ot)=>{let Ht=U[Ot];return null==Ht&&(I.push(function on(oe){return new A.vHH(3003,!1)}()),Ht=""),Ht.toString()});return je==Y?oe:je}function qe(oe){const U=[];let I=oe.next();for(;!I.done;)U.push(I.value),I=oe.next();return U}const gt=/-+([a-z0-9])/g;function Je(oe){return oe.replace(gt,(...U)=>U[1].toUpperCase())}function Ct(oe){return oe.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function zt(oe,U,I){switch(U.type){case 7:return oe.visitTrigger(U,I);case 0:return oe.visitState(U,I);case 1:return oe.visitTransition(U,I);case 2:return oe.visitSequence(U,I);case 3:return oe.visitGroup(U,I);case 4:return oe.visitAnimate(U,I);case 5:return oe.visitKeyframes(U,I);case 6:return oe.visitStyle(U,I);case 8:return oe.visitReference(U,I);case 9:return oe.visitAnimateChild(U,I);case 10:return oe.visitAnimateRef(U,I);case 11:return oe.visitQuery(U,I);case 12:return oe.visitStagger(U,I);default:throw function Cn(oe){return new A.vHH(3004,!1)}()}}function vn(oe,U){return window.getComputedStyle(oe)[U]}function Un(oe,U){const I=[];return"string"==typeof oe?oe.split(/\s*,\s*/).forEach(Y=>function Ki(oe,U,I){if(":"==oe[0]){const Gt=function ji(oe,U){switch(oe){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(I,Y)=>parseFloat(Y)>parseFloat(I);case":decrement":return(I,Y)=>parseFloat(Y) *"}}(oe,I);if("function"==typeof Gt)return void U.push(Gt);oe=Gt}const Y=oe.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Y||Y.length<4)return I.push(function St(oe){return new A.vHH(3015,!1)}()),U;const je=Y[1],dt=Y[2],Ot=Y[3];U.push(Lr(je,Ot));"<"==dt[0]&&!("*"==je&&"*"==Ot)&&U.push(Lr(Ot,je))}(Y,I,U)):I.push(oe),I}const ci=new Set(["true","1"]),Tr=new Set(["false","0"]);function Lr(oe,U){const I=ci.has(oe)||Tr.has(oe),Y=ci.has(U)||Tr.has(U);return(je,dt)=>{let Ot="*"==oe||oe==je,Ht="*"==U||U==dt;return!Ot&&I&&"boolean"==typeof je&&(Ot=je?ci.has(oe):Tr.has(oe)),!Ht&&Y&&"boolean"==typeof dt&&(Ht=dt?ci.has(U):Tr.has(U)),Ot&&Ht}}const Ve=new RegExp("s*:selfs*,?","g");function Pe(oe,U,I,Y){return new Jt(oe).build(U,I,Y)}class Jt{constructor(U){this._driver=U}build(U,I,Y){const je=new ii(I);return this._resetContextStyleTimingState(je),zt(this,Si(U),je)}_resetContextStyleTimingState(U){U.currentQuerySelector="",U.collectedStyles=new Map,U.collectedStyles.set("",new Map),U.currentTime=0}visitTrigger(U,I){let Y=I.queryCount=0,je=I.depCount=0;const dt=[],Ot=[];return"@"==U.name.charAt(0)&&I.errors.push(function Dt(){return new A.vHH(3006,!1)}()),U.definitions.forEach(Ht=>{if(this._resetContextStyleTimingState(I),0==Ht.type){const Gt=Ht,$t=Gt.name;$t.toString().split(/\s*,\s*/).forEach(fn=>{Gt.name=fn,dt.push(this.visitState(Gt,I))}),Gt.name=$t}else if(1==Ht.type){const Gt=this.visitTransition(Ht,I);Y+=Gt.queryCount,je+=Gt.depCount,Ot.push(Gt)}else I.errors.push(function Ze(){return new A.vHH(3007,!1)}())}),{type:7,name:U.name,states:dt,transitions:Ot,queryCount:Y,depCount:je,options:null}}visitState(U,I){const Y=this.visitStyle(U.styles,I),je=U.options&&U.options.params||null;if(Y.containsDynamicStyles){const dt=new Set,Ot=je||{};Y.styles.forEach(Ht=>{Ht instanceof Map&&Ht.forEach(Gt=>{dr(Gt).forEach($t=>{Ot.hasOwnProperty($t)||dt.add($t)})})}),dt.size&&(qe(dt.values()),I.errors.push(function wt(oe,U){return new A.vHH(3008,!1)}()))}return{type:0,name:U.name,style:Y,options:je?{params:je}:null}}visitTransition(U,I){I.queryCount=0,I.depCount=0;const Y=zt(this,Si(U.animation),I);return{type:1,matchers:Un(U.expr,I.errors),animation:Y,queryCount:I.queryCount,depCount:I.depCount,options:ur(U.options)}}visitSequence(U,I){return{type:2,steps:U.steps.map(Y=>zt(this,Y,I)),options:ur(U.options)}}visitGroup(U,I){const Y=I.currentTime;let je=0;const dt=U.steps.map(Ot=>{I.currentTime=Y;const Ht=zt(this,Ot,I);return je=Math.max(je,I.currentTime),Ht});return I.currentTime=je,{type:3,steps:dt,options:ur(U.options)}}visitAnimate(U,I){const Y=function ga(oe,U){if(oe.hasOwnProperty("duration"))return oe;if("number"==typeof oe)return yr(dn(oe,U).duration,0,"");const I=oe;if(I.split(/\s+/).some(dt=>"{"==dt.charAt(0)&&"{"==dt.charAt(1))){const dt=yr(0,0,"");return dt.dynamic=!0,dt.strValue=I,dt}const je=dn(I,U);return yr(je.duration,je.delay,je.easing)}(U.timings,I.errors);I.currentAnimateTimings=Y;let je,dt=U.styles?U.styles:(0,ke.oB)({});if(5==dt.type)je=this.visitKeyframes(dt,I);else{let Ot=U.styles,Ht=!1;if(!Ot){Ht=!0;const $t={};Y.easing&&($t.easing=Y.easing),Ot=(0,ke.oB)($t)}I.currentTime+=Y.duration+Y.delay;const Gt=this.visitStyle(Ot,I);Gt.isEmptyStep=Ht,je=Gt}return I.currentAnimateTimings=null,{type:4,timings:Y,style:je,options:null}}visitStyle(U,I){const Y=this._makeStyleAst(U,I);return this._validateStyleAst(Y,I),Y}_makeStyleAst(U,I){const Y=[],je=Array.isArray(U.styles)?U.styles:[U.styles];for(let Ht of je)"string"==typeof Ht?Ht===ke.l3?Y.push(Ht):I.errors.push(new A.vHH(3002,!1)):Y.push(ri(Ht));let dt=!1,Ot=null;return Y.forEach(Ht=>{if(Ht instanceof Map&&(Ht.has("easing")&&(Ot=Ht.get("easing"),Ht.delete("easing")),!dt))for(let Gt of Ht.values())if(Gt.toString().indexOf("{{")>=0){dt=!0;break}}),{type:6,styles:Y,easing:Ot,offset:U.offset,containsDynamicStyles:dt,options:null}}_validateStyleAst(U,I){const Y=I.currentAnimateTimings;let je=I.currentTime,dt=I.currentTime;Y&&dt>0&&(dt-=Y.duration+Y.delay),U.styles.forEach(Ot=>{"string"!=typeof Ot&&Ot.forEach((Ht,Gt)=>{const $t=I.collectedStyles.get(I.currentQuerySelector),fn=$t.get(Gt);let Tn=!0;fn&&(dt!=je&&dt>=fn.startTime&&je<=fn.endTime&&(I.errors.push(function bn(oe,U,I,Y,je){return new A.vHH(3010,!1)}()),Tn=!1),dt=fn.startTime),Tn&&$t.set(Gt,{startTime:dt,endTime:je}),I.options&&function Ua(oe,U,I){const Y=U.params||{},je=dr(oe);je.length&&je.forEach(dt=>{Y.hasOwnProperty(dt)||I.push(function Kt(oe){return new A.vHH(3001,!1)}())})}(Ht,I.options,I.errors)})})}visitKeyframes(U,I){const Y={type:5,styles:[],options:null};if(!I.currentAnimateTimings)return I.errors.push(function gn(){return new A.vHH(3011,!1)}()),Y;let dt=0;const Ot=[];let Ht=!1,Gt=!1,$t=0;const fn=U.steps.map(oi=>{const ki=this._makeStyleAst(oi,I);let Zi=null!=ki.offset?ki.offset:function $i(oe){if("string"==typeof oe)return null;let U=null;if(Array.isArray(oe))oe.forEach(I=>{if(I instanceof Map&&I.has("offset")){const Y=I;U=parseFloat(Y.get("offset")),Y.delete("offset")}});else if(oe instanceof Map&&oe.has("offset")){const I=oe;U=parseFloat(I.get("offset")),I.delete("offset")}return U}(ki.styles),Gi=0;return null!=Zi&&(dt++,Gi=ki.offset=Zi),Gt=Gt||Gi<0||Gi>1,Ht=Ht||Gi<$t,$t=Gi,Ot.push(Gi),ki});Gt&&I.errors.push(function zn(){return new A.vHH(3012,!1)}()),Ht&&I.errors.push(function bt(){return new A.vHH(3200,!1)}());const Tn=U.steps.length;let kn=0;dt>0&&dt{const Zi=kn>0?ki==jn?1:kn*ki:Ot[ki],Gi=Zi*fi;I.currentTime=On+Nn.delay+Gi,Nn.duration=Gi,this._validateStyleAst(oi,I),oi.offset=Zi,Y.styles.push(oi)}),Y}visitReference(U,I){return{type:8,animation:zt(this,Si(U.animation),I),options:ur(U.options)}}visitAnimateChild(U,I){return I.depCount++,{type:9,options:ur(U.options)}}visitAnimateRef(U,I){return{type:10,animation:this.visitReference(U.animation,I),options:ur(U.options)}}visitQuery(U,I){const Y=I.currentQuerySelector,je=U.options||{};I.queryCount++,I.currentQuery=U;const[dt,Ot]=function _n(oe){const U=!!oe.split(/\s*,\s*/).find(I=>":self"==I);return U&&(oe=oe.replace(Ve,"")),oe=oe.replace(/@\*/g,lt).replace(/@\w+/g,I=>lt+"-"+I.slice(1)).replace(/:animating/g,$e),[oe,U]}(U.selector);I.currentQuerySelector=Y.length?Y+" "+dt:dt,Ci(I.collectedStyles,I.currentQuerySelector,new Map);const Ht=zt(this,Si(U.animation),I);return I.currentQuery=null,I.currentQuerySelector=Y,{type:11,selector:dt,limit:je.limit||0,optional:!!je.optional,includeSelf:Ot,animation:Ht,originalSelector:U.selector,options:ur(U.options)}}visitStagger(U,I){I.currentQuery||I.errors.push(function pt(){return new A.vHH(3013,!1)}());const Y="full"===U.timings?{duration:0,delay:0,easing:"full"}:dn(U.timings,I.errors,!0);return{type:12,animation:zt(this,Si(U.animation),I),timings:Y,options:null}}}class ii{constructor(U){this.errors=U,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 ur(oe){return oe?(oe=Yn(oe)).params&&(oe.params=function hi(oe){return oe?Yn(oe):null}(oe.params)):oe={},oe}function yr(oe,U,I){return{duration:oe,delay:U,easing:I}}function Mo(oe,U,I,Y,je,dt,Ot=null,Ht=!1){return{type:1,element:oe,keyframes:U,preStyleProps:I,postStyleProps:Y,duration:je,delay:dt,totalTime:je+dt,easing:Ot,subTimeline:Ht}}class Na{constructor(){this._map=new Map}get(U){return this._map.get(U)||[]}append(U,I){let Y=this._map.get(U);Y||this._map.set(U,Y=[]),Y.push(...I)}has(U){return this._map.has(U)}clear(){this._map.clear()}}const xo=new RegExp(":enter","g"),ts=new RegExp(":leave","g");function ta(oe,U,I,Y,je,dt=new Map,Ot=new Map,Ht,Gt,$t=[]){return(new ns).buildKeyframes(oe,U,I,Y,je,dt,Ot,Ht,Gt,$t)}class ns{buildKeyframes(U,I,Y,je,dt,Ot,Ht,Gt,$t,fn=[]){$t=$t||new Na;const Tn=new Yr(U,I,$t,je,dt,fn,[]);Tn.options=Gt;const kn=Gt.delay?yt(Gt.delay):0;Tn.currentTimeline.delayNextStep(kn),Tn.currentTimeline.setStyles([Ot],null,Tn.errors,Gt),zt(this,Y,Tn);const jn=Tn.timelines.filter(On=>On.containsAnimation());if(jn.length&&Ht.size){let On;for(let Nn=jn.length-1;Nn>=0;Nn--){const fi=jn[Nn];if(fi.element===I){On=fi;break}}On&&!On.allowOnlyTimelineStyles()&&On.setStyles([Ht],null,Tn.errors,Gt)}return jn.length?jn.map(On=>On.buildKeyframes()):[Mo(I,[],[],[],0,kn,"",!1)]}visitTrigger(U,I){}visitState(U,I){}visitTransition(U,I){}visitAnimateChild(U,I){const Y=I.subInstructions.get(I.element);if(Y){const je=I.createSubContext(U.options),dt=I.currentTimeline.currentTime,Ot=this._visitSubInstructions(Y,je,je.options);dt!=Ot&&I.transformIntoNewTimeline(Ot)}I.previousNode=U}visitAnimateRef(U,I){const Y=I.createSubContext(U.options);Y.transformIntoNewTimeline(),this.visitReference(U.animation,Y),I.transformIntoNewTimeline(Y.currentTimeline.currentTime),I.previousNode=U}_visitSubInstructions(U,I,Y){let dt=I.currentTimeline.currentTime;const Ot=null!=Y.duration?yt(Y.duration):null,Ht=null!=Y.delay?yt(Y.delay):null;return 0!==Ot&&U.forEach(Gt=>{const $t=I.appendInstructionToTimeline(Gt,Ot,Ht);dt=Math.max(dt,$t.duration+$t.delay)}),dt}visitReference(U,I){I.updateOptions(U.options,!0),zt(this,U.animation,I),I.previousNode=U}visitSequence(U,I){const Y=I.subContextCount;let je=I;const dt=U.options;if(dt&&(dt.params||dt.delay)&&(je=I.createSubContext(dt),je.transformIntoNewTimeline(),null!=dt.delay)){6==je.previousNode.type&&(je.currentTimeline.snapshotCurrentStyles(),je.previousNode=na);const Ot=yt(dt.delay);je.delayNextStep(Ot)}U.steps.length&&(U.steps.forEach(Ot=>zt(this,Ot,je)),je.currentTimeline.applyStylesToKeyframe(),je.subContextCount>Y&&je.transformIntoNewTimeline()),I.previousNode=U}visitGroup(U,I){const Y=[];let je=I.currentTimeline.currentTime;const dt=U.options&&U.options.delay?yt(U.options.delay):0;U.steps.forEach(Ot=>{const Ht=I.createSubContext(U.options);dt&&Ht.delayNextStep(dt),zt(this,Ot,Ht),je=Math.max(je,Ht.currentTimeline.currentTime),Y.push(Ht.currentTimeline)}),Y.forEach(Ot=>I.currentTimeline.mergeTimelineCollectedStyles(Ot)),I.transformIntoNewTimeline(je),I.previousNode=U}_visitTiming(U,I){if(U.dynamic){const Y=U.strValue;return dn(I.params?gi(Y,I.params,I.errors):Y,I.errors)}return{duration:U.duration,delay:U.delay,easing:U.easing}}visitAnimate(U,I){const Y=I.currentAnimateTimings=this._visitTiming(U.timings,I),je=I.currentTimeline;Y.delay&&(I.incrementTime(Y.delay),je.snapshotCurrentStyles());const dt=U.style;5==dt.type?this.visitKeyframes(dt,I):(I.incrementTime(Y.duration),this.visitStyle(dt,I),je.applyStylesToKeyframe()),I.currentAnimateTimings=null,I.previousNode=U}visitStyle(U,I){const Y=I.currentTimeline,je=I.currentAnimateTimings;!je&&Y.hasCurrentStyleProperties()&&Y.forwardFrame();const dt=je&&je.easing||U.easing;U.isEmptyStep?Y.applyEmptyStep(dt):Y.setStyles(U.styles,dt,I.errors,I.options),I.previousNode=U}visitKeyframes(U,I){const Y=I.currentAnimateTimings,je=I.currentTimeline.duration,dt=Y.duration,Ht=I.createSubContext().currentTimeline;Ht.easing=Y.easing,U.styles.forEach(Gt=>{Ht.forwardTime((Gt.offset||0)*dt),Ht.setStyles(Gt.styles,Gt.easing,I.errors,I.options),Ht.applyStylesToKeyframe()}),I.currentTimeline.mergeTimelineCollectedStyles(Ht),I.transformIntoNewTimeline(je+dt),I.previousNode=U}visitQuery(U,I){const Y=I.currentTimeline.currentTime,je=U.options||{},dt=je.delay?yt(je.delay):0;dt&&(6===I.previousNode.type||0==Y&&I.currentTimeline.hasCurrentStyleProperties())&&(I.currentTimeline.snapshotCurrentStyles(),I.previousNode=na);let Ot=Y;const Ht=I.invokeQuery(U.selector,U.originalSelector,U.limit,U.includeSelf,!!je.optional,I.errors);I.currentQueryTotal=Ht.length;let Gt=null;Ht.forEach(($t,fn)=>{I.currentQueryIndex=fn;const Tn=I.createSubContext(U.options,$t);dt&&Tn.delayNextStep(dt),$t===I.element&&(Gt=Tn.currentTimeline),zt(this,U.animation,Tn),Tn.currentTimeline.applyStylesToKeyframe(),Ot=Math.max(Ot,Tn.currentTimeline.currentTime)}),I.currentQueryIndex=0,I.currentQueryTotal=0,I.transformIntoNewTimeline(Ot),Gt&&(I.currentTimeline.mergeTimelineCollectedStyles(Gt),I.currentTimeline.snapshotCurrentStyles()),I.previousNode=U}visitStagger(U,I){const Y=I.parentContext,je=I.currentTimeline,dt=U.timings,Ot=Math.abs(dt.duration),Ht=Ot*(I.currentQueryTotal-1);let Gt=Ot*I.currentQueryIndex;switch(dt.duration<0?"reverse":dt.easing){case"reverse":Gt=Ht-Gt;break;case"full":Gt=Y.currentStaggerTime}const fn=I.currentTimeline;Gt&&fn.delayNextStep(Gt);const Tn=fn.currentTime;zt(this,U.animation,I),I.previousNode=U,Y.currentStaggerTime=je.currentTime-Tn+(je.startTime-Y.currentTimeline.startTime)}}const na={};class Yr{constructor(U,I,Y,je,dt,Ot,Ht,Gt){this._driver=U,this.element=I,this.subInstructions=Y,this._enterClassName=je,this._leaveClassName=dt,this.errors=Ot,this.timelines=Ht,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=na,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Gt||new ka(this._driver,I,0),Ht.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(U,I){if(!U)return;const Y=U;let je=this.options;null!=Y.duration&&(je.duration=yt(Y.duration)),null!=Y.delay&&(je.delay=yt(Y.delay));const dt=Y.params;if(dt){let Ot=je.params;Ot||(Ot=this.options.params={}),Object.keys(dt).forEach(Ht=>{(!I||!Ot.hasOwnProperty(Ht))&&(Ot[Ht]=gi(dt[Ht],Ot,this.errors))})}}_copyOptions(){const U={};if(this.options){const I=this.options.params;if(I){const Y=U.params={};Object.keys(I).forEach(je=>{Y[je]=I[je]})}}return U}createSubContext(U=null,I,Y){const je=I||this.element,dt=new Yr(this._driver,je,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(je,Y||0));return dt.previousNode=this.previousNode,dt.currentAnimateTimings=this.currentAnimateTimings,dt.options=this._copyOptions(),dt.updateOptions(U),dt.currentQueryIndex=this.currentQueryIndex,dt.currentQueryTotal=this.currentQueryTotal,dt.parentContext=this,this.subContextCount++,dt}transformIntoNewTimeline(U){return this.previousNode=na,this.currentTimeline=this.currentTimeline.fork(this.element,U),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(U,I,Y){const je={duration:I??U.duration,delay:this.currentTimeline.currentTime+(Y??0)+U.delay,easing:""},dt=new is(this._driver,U.element,U.keyframes,U.preStyleProps,U.postStyleProps,je,U.stretchStartingKeyframe);return this.timelines.push(dt),je}incrementTime(U){this.currentTimeline.forwardTime(this.currentTimeline.duration+U)}delayNextStep(U){U>0&&this.currentTimeline.delayNextStep(U)}invokeQuery(U,I,Y,je,dt,Ot){let Ht=[];if(je&&Ht.push(this.element),U.length>0){U=(U=U.replace(xo,"."+this._enterClassName)).replace(ts,"."+this._leaveClassName);let $t=this._driver.query(this.element,U,1!=Y);0!==Y&&($t=Y<0?$t.slice($t.length+Y,$t.length):$t.slice(0,Y)),Ht.push(...$t)}return!dt&&0==Ht.length&&Ot.push(function rt(oe){return new A.vHH(3014,!1)}()),Ht}}class ka{constructor(U,I,Y,je){this._driver=U,this.element=I,this.startTime=Y,this._elementTimelineStylesLookup=je,this.duration=0,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(I),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(I,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(U){const I=1===this._keyframes.size&&this._pendingStyles.size;this.duration||I?(this.forwardTime(this.currentTime+U),I&&this.snapshotCurrentStyles()):this.startTime+=U}fork(U,I){return this.applyStylesToKeyframe(),new ka(this._driver,U,I||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+=1,this._loadKeyframe()}forwardTime(U){this.applyStylesToKeyframe(),this.duration=U,this._loadKeyframe()}_updateStyle(U,I){this._localTimelineStyles.set(U,I),this._globalTimelineStyles.set(U,I),this._styleSummary.set(U,{time:this.currentTime,value:I})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(U){U&&this._previousKeyframe.set("easing",U);for(let[I,Y]of this._globalTimelineStyles)this._backFill.set(I,Y||ke.l3),this._currentKeyframe.set(I,ke.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(U,I,Y,je){I&&this._previousKeyframe.set("easing",I);const dt=je&&je.params||{},Ot=function rs(oe,U){const I=new Map;let Y;return oe.forEach(je=>{if("*"===je){Y=Y||U.keys();for(let dt of Y)I.set(dt,ke.l3)}else Ji(je,I)}),I}(U,this._globalTimelineStyles);for(let[Gt,$t]of Ot){const fn=gi($t,dt,Y);var Ht;this._pendingStyles.set(Gt,fn),this._localTimelineStyles.has(Gt)||this._backFill.set(Gt,null!==(Ht=this._globalTimelineStyles.get(Gt))&&void 0!==Ht?Ht:ke.l3),this._updateStyle(Gt,fn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((U,I)=>{this._currentKeyframe.set(I,U)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((U,I)=>{this._currentKeyframe.has(I)||this._currentKeyframe.set(I,U)}))}snapshotCurrentStyles(){for(let[U,I]of this._localTimelineStyles)this._pendingStyles.set(U,I),this._updateStyle(U,I)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const U=[];for(let I in this._currentKeyframe)U.push(I);return U}mergeTimelineCollectedStyles(U){U._styleSummary.forEach((I,Y)=>{const je=this._styleSummary.get(Y);(!je||I.time>je.time)&&this._updateStyle(Y,I.value)})}buildKeyframes(){this.applyStylesToKeyframe();const U=new Set,I=new Set,Y=1===this._keyframes.size&&0===this.duration;let je=[];this._keyframes.forEach((Ht,Gt)=>{const $t=Ji(Ht,new Map,this._backFill);$t.forEach((fn,Tn)=>{fn===ke.k1?U.add(Tn):fn===ke.l3&&I.add(Tn)}),Y||$t.set("offset",Gt/this.duration),je.push($t)});const dt=U.size?qe(U.values()):[],Ot=I.size?qe(I.values()):[];if(Y){const Ht=je[0],Gt=new Map(Ht);Ht.set("offset",0),Gt.set("offset",1),je=[Ht,Gt]}return Mo(this.element,je,dt,Ot,this.duration,this.startTime,this.easing,!1)}}class is extends ka{constructor(U,I,Y,je,dt,Ot,Ht=!1){super(U,I,Ot.delay),this.keyframes=Y,this.preStyleProps=je,this.postStyleProps=dt,this._stretchStartingKeyframe=Ht,this.timings={duration:Ot.duration,delay:Ot.delay,easing:Ot.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let U=this.keyframes,{delay:I,duration:Y,easing:je}=this.timings;if(this._stretchStartingKeyframe&&I){const dt=[],Ot=Y+I,Ht=I/Ot,Gt=Ji(U[0]);Gt.set("offset",0),dt.push(Gt);const $t=Ji(U[0]);$t.set("offset",Do(Ht)),dt.push($t);const fn=U.length-1;for(let Tn=1;Tn<=fn;Tn++){let kn=Ji(U[Tn]);const jn=kn.get("offset");kn.set("offset",Do((I+jn*Y)/Ot)),dt.push(kn)}Y=Ot,I=0,je="",U=dt}return Mo(this.element,U,this.preStyleProps,this.postStyleProps,Y,I,je,!0)}}function Do(oe,U=3){const I=Math.pow(10,U-1);return Math.round(oe*I)/I}class eo{}const Hi=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"]);class wr extends eo{normalizePropertyName(U,I){return Je(U)}normalizeStyleValue(U,I,Y,je){let dt="";const Ot=Y.toString().trim();if(Hi.has(I)&&0!==Y&&"0"!==Y)if("number"==typeof Y)dt="px";else{const Ht=Y.match(/^[+-]?[\d\.]+([a-z]*)$/);Ht&&0==Ht[1].length&&je.push(function Tt(oe,U){return new A.vHH(3005,!1)}())}return Ot+dt}}function _i(oe,U,I,Y,je,dt,Ot,Ht,Gt,$t,fn,Tn,kn){return{type:0,element:oe,triggerName:U,isRemovalTransition:je,fromState:I,fromStyles:dt,toState:Y,toStyles:Ot,timelines:Ht,queriedElements:Gt,preStyleProps:$t,postStyleProps:fn,totalTime:Tn,errors:kn}}const qr={};class Ro{constructor(U,I,Y){this._triggerName=U,this.ast=I,this._stateStyles=Y}match(U,I,Y,je){return function $s(oe,U,I,Y,je){return oe.some(dt=>dt(U,I,Y,je))}(this.ast.matchers,U,I,Y,je)}buildStyles(U,I,Y){let je=this._stateStyles.get("*");return void 0!==U&&(je=this._stateStyles.get(U?.toString())||je),je?je.buildStyles(I,Y):new Map}build(U,I,Y,je,dt,Ot,Ht,Gt,$t,fn){var Tn;const kn=[],jn=this.ast.options&&this.ast.options.params||qr,Nn=this.buildStyles(Y,Ht&&Ht.params||qr,kn),fi=Gt&&Gt.params||qr,oi=this.buildStyles(je,fi,kn),ki=new Set,Zi=new Map,Gi=new Map,vo="void"===je,da={params:Xs(fi,jn),delay:null===(Tn=this.ast.options)||void 0===Tn?void 0:Tn.delay},Ar=fn?[]:ta(U,I,this.ast.animation,dt,Ot,Nn,oi,da,$t,kn);let Br=0;if(Ar.forEach(jr=>{Br=Math.max(jr.duration+jr.delay,Br)}),kn.length)return _i(I,this._triggerName,Y,je,vo,Nn,oi,[],[],Zi,Gi,Br,kn);Ar.forEach(jr=>{const Eo=jr.element,Ma=Ci(Zi,Eo,new Set);jr.preStyleProps.forEach(xa=>Ma.add(xa));const To=Ci(Gi,Eo,new Set);jr.postStyleProps.forEach(xa=>To.add(xa)),Eo!==I&&ki.add(Eo)});const vs=qe(ki.values());return _i(I,this._triggerName,Y,je,vo,Nn,oi,Ar,vs,Zi,Gi,Br)}}function Xs(oe,U){const I=Yn(U);for(const Y in oe)oe.hasOwnProperty(Y)&&null!=oe[Y]&&(I[Y]=oe[Y]);return I}class el{constructor(U,I,Y){this.styles=U,this.defaultParams=I,this.normalizer=Y}buildStyles(U,I){const Y=new Map,je=Yn(this.defaultParams);return Object.keys(U).forEach(dt=>{const Ot=U[dt];null!==Ot&&(je[dt]=Ot)}),this.styles.styles.forEach(dt=>{"string"!=typeof dt&&dt.forEach((Ot,Ht)=>{Ot&&(Ot=gi(Ot,je,I));const Gt=this.normalizer.normalizePropertyName(Ht,I);Ot=this.normalizer.normalizeStyleValue(Ht,Gt,Ot,I),Y.set(Gt,Ot)})}),Y}}class ia{constructor(U,I,Y){this.name=U,this.ast=I,this._normalizer=Y,this.transitionFactories=[],this.states=new Map,I.states.forEach(je=>{this.states.set(je.name,new el(je.style,je.options&&je.options.params||{},Y))}),io(this.states,"true","1"),io(this.states,"false","0"),I.transitions.forEach(je=>{this.transitionFactories.push(new Ro(U,je,this.states))}),this.fallbackTransition=function no(oe,U,I){return new Ro(oe,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ot,Ht)=>!0],options:null,queryCount:0,depCount:0},U)}(U,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(U,I,Y,je){return this.transitionFactories.find(Ot=>Ot.match(U,I,Y,je))||null}matchStyles(U,I,Y){return this.fallbackTransition.buildStyles(U,I,Y)}}function io(oe,U,I){oe.has(U)?oe.has(I)||oe.set(I,oe.get(U)):oe.has(I)&&oe.set(U,oe.get(I))}const as=new Na;class tl{constructor(U,I,Y){this.bodyNode=U,this._driver=I,this._normalizer=Y,this._animations=new Map,this._playersById=new Map,this.players=[]}register(U,I){const Y=[],dt=Pe(this._driver,I,Y,[]);if(Y.length)throw function yn(oe){return new A.vHH(3503,!1)}();this._animations.set(U,dt)}_buildPlayer(U,I,Y){const je=U.element,dt=or(0,this._normalizer,0,U.keyframes,I,Y);return this._driver.animate(je,dt,U.duration,U.delay,U.easing,[],!0)}create(U,I,Y={}){const je=[],dt=this._animations.get(U);let Ot;const Ht=new Map;if(dt?(Ot=ta(this._driver,I,dt,Oi,xi,new Map,new Map,Y,as,je),Ot.forEach(fn=>{const Tn=Ci(Ht,fn.element,new Map);fn.postStyleProps.forEach(kn=>Tn.set(kn,null))})):(je.push(function Zn(){return new A.vHH(3300,!1)}()),Ot=[]),je.length)throw function Hn(oe){return new A.vHH(3504,!1)}();Ht.forEach((fn,Tn)=>{fn.forEach((kn,jn)=>{fn.set(jn,this._driver.computeStyle(Tn,jn,ke.l3))})});const $t=li(Ot.map(fn=>{const Tn=Ht.get(fn.element);return this._buildPlayer(fn,new Map,Tn)}));return this._playersById.set(U,$t),$t.onDestroy(()=>this.destroy(U)),this.players.push($t),$t}destroy(U){const I=this._getPlayer(U);I.destroy(),this._playersById.delete(U);const Y=this.players.indexOf(I);Y>=0&&this.players.splice(Y,1)}_getPlayer(U){const I=this._playersById.get(U);if(!I)throw function Xn(oe){return new A.vHH(3301,!1)}();return I}listen(U,I,Y,je){const dt=lr(I,"","","");return Ir(this._getPlayer(U),Y,dt,je),()=>{}}command(U,I,Y,je){if("register"==Y)return void this.register(U,je[0]);if("create"==Y)return void this.create(U,I,je[0]||{});const dt=this._getPlayer(U);switch(Y){case"play":dt.play();break;case"pause":dt.pause();break;case"reset":dt.reset();break;case"restart":dt.restart();break;case"finish":dt.finish();break;case"init":dt.init();break;case"setPosition":dt.setPosition(parseFloat(je[0]));break;case"destroy":this.destroy(U)}}}const Vr="ng-animate-queued",Po="ng-animate-disabled",ss=[],Io={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},nl={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},hr="__ng_removed";class _a{constructor(U,I=""){this.namespaceId=I;const Y=U&&U.hasOwnProperty("value");if(this.value=function cs(oe){return oe??null}(Y?U.value:U),Y){const dt=Yn(U);delete dt.value,this.options=dt}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(U){const I=U.params;if(I){const Y=this.options.params;Object.keys(I).forEach(je=>{null==Y[je]&&(Y[je]=I[je])})}}}const Jr="void",ao=new _a(Jr);class oo{constructor(U,I,Y){this.id=U,this.hostElement=I,this._engine=Y,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+U,ir(I,this._hostClassName)}listen(U,I,Y,je){if(!this._triggers.has(I))throw function mi(oe,U){return new A.vHH(3302,!1)}();if(null==Y||0==Y.length)throw function di(oe){return new A.vHH(3303,!1)}();if(!function lo(oe){return"start"==oe||"done"==oe}(Y))throw function Jn(oe,U){return new A.vHH(3400,!1)}();const dt=Ci(this._elementListeners,U,[]),Ot={name:I,phase:Y,callback:je};dt.push(Ot);const Ht=Ci(this._engine.statesByElement,U,new Map);return Ht.has(I)||(ir(U,qi),ir(U,qi+"-"+I),Ht.set(I,ao)),()=>{this._engine.afterFlush(()=>{const Gt=dt.indexOf(Ot);Gt>=0&&dt.splice(Gt,1),this._triggers.has(I)||Ht.delete(I)})}}register(U,I){return!this._triggers.has(U)&&(this._triggers.set(U,I),!0)}_getTrigger(U){const I=this._triggers.get(U);if(!I)throw function Ln(oe){return new A.vHH(3401,!1)}();return I}trigger(U,I,Y,je=!0){const dt=this._getTrigger(I),Ot=new so(this.id,I,U);let Ht=this._engine.statesByElement.get(U);Ht||(ir(U,qi),ir(U,qi+"-"+I),this._engine.statesByElement.set(U,Ht=new Map));let Gt=Ht.get(I);const $t=new _a(Y,this.id);if(!(Y&&Y.hasOwnProperty("value"))&&Gt&&$t.absorbOptions(Gt.options),Ht.set(I,$t),Gt||(Gt=ao),$t.value!==Jr&&Gt.value===$t.value){if(!function Za(oe,U){const I=Object.keys(oe),Y=Object.keys(U);if(I.length!=Y.length)return!1;for(let je=0;je{Fi(U,fi),Qi(U,oi)})}return}const kn=Ci(this._engine.playersByElement,U,[]);kn.forEach(Nn=>{Nn.namespaceId==this.id&&Nn.triggerName==I&&Nn.queued&&Nn.destroy()});let jn=dt.matchTransition(Gt.value,$t.value,U,$t.params),On=!1;if(!jn){if(!je)return;jn=dt.fallbackTransition,On=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:U,triggerName:I,transition:jn,fromState:Gt,toState:$t,player:Ot,isFallbackTransition:On}),On||(ir(U,Vr),Ot.onStart(()=>{ba(U,Vr)})),Ot.onDone(()=>{let Nn=this.players.indexOf(Ot);Nn>=0&&this.players.splice(Nn,1);const fi=this._engine.playersByElement.get(U);if(fi){let oi=fi.indexOf(Ot);oi>=0&&fi.splice(oi,1)}}),this.players.push(Ot),kn.push(Ot),Ot}deregister(U){this._triggers.delete(U),this._engine.statesByElement.forEach(I=>I.delete(U)),this._elementListeners.forEach((I,Y)=>{this._elementListeners.set(Y,I.filter(je=>je.name!=U))})}clearElementCache(U){this._engine.statesByElement.delete(U),this._elementListeners.delete(U);const I=this._engine.playersByElement.get(U);I&&(I.forEach(Y=>Y.destroy()),this._engine.playersByElement.delete(U))}_signalRemovalForInnerTriggers(U,I){const Y=this._engine.driver.query(U,lt,!0);Y.forEach(je=>{if(je[hr])return;const dt=this._engine.fetchNamespacesByElement(je);dt.size?dt.forEach(Ot=>Ot.triggerLeaveAnimation(je,I,!1,!0)):this.clearElementCache(je)}),this._engine.afterFlushAnimationsDone(()=>Y.forEach(je=>this.clearElementCache(je)))}triggerLeaveAnimation(U,I,Y,je){const dt=this._engine.statesByElement.get(U),Ot=new Map;if(dt){const Ht=[];if(dt.forEach((Gt,$t)=>{if(Ot.set($t,Gt.value),this._triggers.has($t)){const fn=this.trigger(U,$t,Jr,je);fn&&Ht.push(fn)}}),Ht.length)return this._engine.markElementAsRemoved(this.id,U,!0,I,Ot),Y&&li(Ht).onDone(()=>this._engine.processLeaveNode(U)),!0}return!1}prepareLeaveAnimationListeners(U){const I=this._elementListeners.get(U),Y=this._engine.statesByElement.get(U);if(I&&Y){const je=new Set;I.forEach(dt=>{const Ot=dt.name;if(je.has(Ot))return;je.add(Ot);const Gt=this._triggers.get(Ot).fallbackTransition,$t=Y.get(Ot)||ao,fn=new _a(Jr),Tn=new so(this.id,Ot,U);this._engine.totalQueuedPlayers++,this._queue.push({element:U,triggerName:Ot,transition:Gt,fromState:$t,toState:fn,player:Tn,isFallbackTransition:!0})})}}removeNode(U,I){const Y=this._engine;if(U.childElementCount&&this._signalRemovalForInnerTriggers(U,I),this.triggerLeaveAnimation(U,I,!0))return;let je=!1;if(Y.totalAnimations){const dt=Y.players.length?Y.playersByQueriedElement.get(U):[];if(dt&&dt.length)je=!0;else{let Ot=U;for(;Ot=Ot.parentNode;)if(Y.statesByElement.get(Ot)){je=!0;break}}}if(this.prepareLeaveAnimationListeners(U),je)Y.markElementAsRemoved(this.id,U,!1,I);else{const dt=U[hr];(!dt||dt===Io)&&(Y.afterFlush(()=>this.clearElementCache(U)),Y.destroyInnerAnimations(U),Y._onRemovalComplete(U,I))}}insertNode(U,I){ir(U,this._hostClassName)}drainQueuedTransitions(U){const I=[];return this._queue.forEach(Y=>{const je=Y.player;if(je.destroyed)return;const dt=Y.element,Ot=this._elementListeners.get(dt);Ot&&Ot.forEach(Ht=>{if(Ht.name==Y.triggerName){const Gt=lr(dt,Y.triggerName,Y.fromState.value,Y.toState.value);Gt._data=U,Ir(Y.player,Ht.phase,Gt,Ht.callback)}}),je.markedForDestroy?this._engine.afterFlush(()=>{je.destroy()}):I.push(Y)}),this._queue=[],I.sort((Y,je)=>{const dt=Y.transition.ast.depCount,Ot=je.transition.ast.depCount;return 0==dt||0==Ot?dt-Ot:this._engine.driver.containsElement(Y.element,je.element)?1:-1})}destroy(U){this.players.forEach(I=>I.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,U)}elementContainsData(U){let I=!1;return this._elementListeners.has(U)&&(I=!0),I=!!this._queue.find(Y=>Y.element===U)||I,I}}class ls{constructor(U,I,Y){this.bodyNode=U,this.driver=I,this._normalizer=Y,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=(je,dt)=>{}}_onRemovalComplete(U,I){this.onRemovalComplete(U,I)}get queuedPlayers(){const U=[];return this._namespaceList.forEach(I=>{I.players.forEach(Y=>{Y.queued&&U.push(Y)})}),U}createNamespace(U,I){const Y=new oo(U,I,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,I)?this._balanceNamespaceList(Y,I):(this.newHostElements.set(I,Y),this.collectEnterElement(I)),this._namespaceLookup[U]=Y}_balanceNamespaceList(U,I){const Y=this._namespaceList,je=this.namespacesByHostElement;if(Y.length-1>=0){let Ot=!1,Ht=this.driver.getParentElement(I);for(;Ht;){const Gt=je.get(Ht);if(Gt){const $t=Y.indexOf(Gt);Y.splice($t+1,0,U),Ot=!0;break}Ht=this.driver.getParentElement(Ht)}Ot||Y.unshift(U)}else Y.push(U);return je.set(I,U),U}register(U,I){let Y=this._namespaceLookup[U];return Y||(Y=this.createNamespace(U,I)),Y}registerTrigger(U,I,Y){let je=this._namespaceLookup[U];je&&je.register(I,Y)&&this.totalAnimations++}destroy(U,I){if(!U)return;const Y=this._fetchNamespace(U);this.afterFlush(()=>{this.namespacesByHostElement.delete(Y.hostElement),delete this._namespaceLookup[U];const je=this._namespaceList.indexOf(Y);je>=0&&this._namespaceList.splice(je,1)}),this.afterFlushAnimationsDone(()=>Y.destroy(I))}_fetchNamespace(U){return this._namespaceLookup[U]}fetchNamespacesByElement(U){const I=new Set,Y=this.statesByElement.get(U);if(Y)for(let je of Y.values())if(je.namespaceId){const dt=this._fetchNamespace(je.namespaceId);dt&&I.add(dt)}return I}trigger(U,I,Y,je){if(Sr(I)){const dt=this._fetchNamespace(U);if(dt)return dt.trigger(I,Y,je),!0}return!1}insertNode(U,I,Y,je){if(!Sr(I))return;const dt=I[hr];if(dt&&dt.setForRemoval){dt.setForRemoval=!1,dt.setForMove=!0;const Ot=this.collectedLeaveElements.indexOf(I);Ot>=0&&this.collectedLeaveElements.splice(Ot,1)}if(U){const Ot=this._fetchNamespace(U);Ot&&Ot.insertNode(I,Y)}je&&this.collectEnterElement(I)}collectEnterElement(U){this.collectedEnterElements.push(U)}markElementAsDisabled(U,I){I?this.disabledNodes.has(U)||(this.disabledNodes.add(U),ir(U,Po)):this.disabledNodes.has(U)&&(this.disabledNodes.delete(U),ba(U,Po))}removeNode(U,I,Y,je){if(Sr(I)){const dt=U?this._fetchNamespace(U):null;if(dt?dt.removeNode(I,je):this.markElementAsRemoved(U,I,!1,je),Y){const Ot=this.namespacesByHostElement.get(I);Ot&&Ot.id!==U&&Ot.removeNode(I,je)}}else this._onRemovalComplete(I,je)}markElementAsRemoved(U,I,Y,je,dt){this.collectedLeaveElements.push(I),I[hr]={namespaceId:U,setForRemoval:je,hasAnimation:Y,removedBeforeQueried:!1,previousTriggersValues:dt}}listen(U,I,Y,je,dt){return Sr(I)?this._fetchNamespace(U).listen(I,Y,je,dt):()=>{}}_buildInstruction(U,I,Y,je,dt){return U.transition.build(this.driver,U.element,U.fromState.value,U.toState.value,Y,je,U.fromState.options,U.toState.options,I,dt)}destroyInnerAnimations(U){let I=this.driver.query(U,lt,!0);I.forEach(Y=>this.destroyActiveAnimationsForElement(Y)),0!=this.playersByQueriedElement.size&&(I=this.driver.query(U,$e,!0),I.forEach(Y=>this.finishActiveQueriedAnimationOnElement(Y)))}destroyActiveAnimationsForElement(U){const I=this.playersByElement.get(U);I&&I.forEach(Y=>{Y.queued?Y.markedForDestroy=!0:Y.destroy()})}finishActiveQueriedAnimationOnElement(U){const I=this.playersByQueriedElement.get(U);I&&I.forEach(Y=>Y.finish())}whenRenderingDone(){return new Promise(U=>{if(this.players.length)return li(this.players).onDone(()=>U());U()})}processLeaveNode(U){var I;const Y=U[hr];if(Y&&Y.setForRemoval){if(U[hr]=Io,Y.namespaceId){this.destroyInnerAnimations(U);const je=this._fetchNamespace(Y.namespaceId);je&&je.clearElementCache(U)}this._onRemovalComplete(U,Y.setForRemoval)}null!==(I=U.classList)&&void 0!==I&&I.contains(Po)&&this.markElementAsDisabled(U,!1),this.driver.query(U,".ng-animate-disabled",!0).forEach(je=>{this.markElementAsDisabled(je,!1)})}flush(U=-1){let I=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Y,je)=>this._balanceNamespaceList(Y,je)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Y=0;YY()),this._flushFns=[],this._whenQuietFns.length){const Y=this._whenQuietFns;this._whenQuietFns=[],I.length?li(I).onDone(()=>{Y.forEach(je=>je())}):Y.forEach(je=>je())}}reportError(U){throw function zi(oe){return new A.vHH(3402,!1)}()}_flushAnimations(U,I){const Y=new Na,je=[],dt=new Map,Ot=[],Ht=new Map,Gt=new Map,$t=new Map,fn=new Set;this.disabledNodes.forEach(pn=>{fn.add(pn);const Sn=this.driver.query(pn,".ng-animate-queued",!0);for(let xn=0;xn{const xn=Oi+Nn++;On.set(Sn,xn),pn.forEach(Wn=>ir(Wn,xn))});const fi=[],oi=new Set,ki=new Set;for(let pn=0;pnoi.add(Wn)):ki.add(Sn))}const Zi=new Map,Gi=Oo(kn,Array.from(oi));Gi.forEach((pn,Sn)=>{const xn=xi+Nn++;Zi.set(Sn,xn),pn.forEach(Wn=>ir(Wn,xn))}),U.push(()=>{jn.forEach((pn,Sn)=>{const xn=On.get(Sn);pn.forEach(Wn=>ba(Wn,xn))}),Gi.forEach((pn,Sn)=>{const xn=Zi.get(Sn);pn.forEach(Wn=>ba(Wn,xn))}),fi.forEach(pn=>{this.processLeaveNode(pn)})});const vo=[],da=[];for(let pn=this._namespaceList.length-1;pn>=0;pn--)this._namespaceList[pn].drainQueuedTransitions(I).forEach(xn=>{const Wn=xn.player,yi=xn.element;if(vo.push(Wn),this.collectedEnterElements.length){const ar=yi[hr];if(ar&&ar.setForMove){if(ar.previousTriggersValues&&ar.previousTriggersValues.has(xn.triggerName)){const Zr=ar.previousTriggersValues.get(xn.triggerName),Cr=this.statesByElement.get(xn.element);if(Cr&&Cr.has(xn.triggerName)){const Wo=Cr.get(xn.triggerName);Wo.value=Zr,Cr.set(xn.triggerName,Wo)}}return void Wn.destroy()}}const Xr=!Tn||!this.driver.containsElement(Tn,yi),Dr=Zi.get(yi),Da=On.get(yi),wi=this._buildInstruction(xn,Y,Da,Dr,Xr);if(wi.errors&&wi.errors.length)return void da.push(wi);if(Xr)return Wn.onStart(()=>Fi(yi,wi.fromStyles)),Wn.onDestroy(()=>Qi(yi,wi.toStyles)),void je.push(Wn);if(xn.isFallbackTransition)return Wn.onStart(()=>Fi(yi,wi.fromStyles)),Wn.onDestroy(()=>Qi(yi,wi.toStyles)),void je.push(Wn);const ac=[];wi.timelines.forEach(ar=>{ar.stretchStartingKeyframe=!0,this.disabledNodes.has(ar.element)||ac.push(ar)}),wi.timelines=ac,Y.append(yi,wi.timelines),Ot.push({instruction:wi,player:Wn,element:yi}),wi.queriedElements.forEach(ar=>Ci(Ht,ar,[]).push(Wn)),wi.preStyleProps.forEach((ar,Zr)=>{if(ar.size){let Cr=Gt.get(Zr);Cr||Gt.set(Zr,Cr=new Set),ar.forEach((Wo,Es)=>Cr.add(Es))}}),wi.postStyleProps.forEach((ar,Zr)=>{let Cr=$t.get(Zr);Cr||$t.set(Zr,Cr=new Set),ar.forEach((Wo,Es)=>Cr.add(Es))})});if(da.length){const pn=[];da.forEach(Sn=>{pn.push(function si(oe,U){return new A.vHH(3505,!1)}())}),vo.forEach(Sn=>Sn.destroy()),this.reportError(pn)}const Ar=new Map,Br=new Map;Ot.forEach(pn=>{const Sn=pn.element;Y.has(Sn)&&(Br.set(Sn,Sn),this._beforeAnimationBuild(pn.player.namespaceId,pn.instruction,Ar))}),je.forEach(pn=>{const Sn=pn.element;this._getPreviousPlayers(Sn,!1,pn.namespaceId,pn.triggerName,null).forEach(Wn=>{Ci(Ar,Sn,[]).push(Wn),Wn.destroy()})});const vs=fi.filter(pn=>co(pn,Gt,$t)),jr=new Map;ds(jr,this.driver,ki,$t,ke.l3).forEach(pn=>{co(pn,Gt,$t)&&vs.push(pn)});const Ma=new Map;jn.forEach((pn,Sn)=>{ds(Ma,this.driver,new Set(pn),Gt,ke.k1)}),vs.forEach(pn=>{var Sn,xn;const Wn=jr.get(pn),yi=Ma.get(pn);jr.set(pn,new Map([...Array.from(null!==(Sn=Wn?.entries())&&void 0!==Sn?Sn:[]),...Array.from(null!==(xn=yi?.entries())&&void 0!==xn?xn:[])]))});const To=[],xa=[],rc={};Ot.forEach(pn=>{const{element:Sn,player:xn,instruction:Wn}=pn;if(Y.has(Sn)){if(fn.has(Sn))return xn.onDestroy(()=>Qi(Sn,Wn.toStyles)),xn.disabled=!0,xn.overrideTotalTime(Wn.totalTime),void je.push(xn);let yi=rc;if(Br.size>1){let Dr=Sn;const Da=[];for(;Dr=Dr.parentNode;){const wi=Br.get(Dr);if(wi){yi=wi;break}Da.push(Dr)}Da.forEach(wi=>Br.set(wi,yi))}const Xr=this._buildAnimation(xn.namespaceId,Wn,Ar,dt,Ma,jr);if(xn.setRealPlayer(Xr),yi===rc)To.push(xn);else{const Dr=this.playersByElement.get(yi);Dr&&Dr.length&&(xn.parentPlayer=li(Dr)),je.push(xn)}}else Fi(Sn,Wn.fromStyles),xn.onDestroy(()=>Qi(Sn,Wn.toStyles)),xa.push(xn),fn.has(Sn)&&je.push(xn)}),xa.forEach(pn=>{const Sn=dt.get(pn.element);if(Sn&&Sn.length){const xn=li(Sn);pn.setRealPlayer(xn)}}),je.forEach(pn=>{pn.parentPlayer?pn.syncPlayerEvents(pn.parentPlayer):pn.destroy()});for(let pn=0;pn!Xr.destroyed);yi.length?pr(this,Sn,yi):this.processLeaveNode(Sn)}return fi.length=0,To.forEach(pn=>{this.players.push(pn),pn.onDone(()=>{pn.destroy();const Sn=this.players.indexOf(pn);this.players.splice(Sn,1)}),pn.play()}),To}elementContainsData(U,I){let Y=!1;const je=I[hr];return je&&je.setForRemoval&&(Y=!0),this.playersByElement.has(I)&&(Y=!0),this.playersByQueriedElement.has(I)&&(Y=!0),this.statesByElement.has(I)&&(Y=!0),this._fetchNamespace(U).elementContainsData(I)||Y}afterFlush(U){this._flushFns.push(U)}afterFlushAnimationsDone(U){this._whenQuietFns.push(U)}_getPreviousPlayers(U,I,Y,je,dt){let Ot=[];if(I){const Ht=this.playersByQueriedElement.get(U);Ht&&(Ot=Ht)}else{const Ht=this.playersByElement.get(U);if(Ht){const Gt=!dt||dt==Jr;Ht.forEach($t=>{$t.queued||!Gt&&$t.triggerName!=je||Ot.push($t)})}}return(Y||je)&&(Ot=Ot.filter(Ht=>!(Y&&Y!=Ht.namespaceId||je&&je!=Ht.triggerName))),Ot}_beforeAnimationBuild(U,I,Y){const dt=I.element,Ot=I.isRemovalTransition?void 0:U,Ht=I.isRemovalTransition?void 0:I.triggerName;for(const Gt of I.timelines){const $t=Gt.element,fn=$t!==dt,Tn=Ci(Y,$t,[]);this._getPreviousPlayers($t,fn,Ot,Ht,I.toState).forEach(jn=>{const On=jn.getRealPlayer();On.beforeDestroy&&On.beforeDestroy(),jn.destroy(),Tn.push(jn)})}Fi(dt,I.fromStyles)}_buildAnimation(U,I,Y,je,dt,Ot){const Ht=I.triggerName,Gt=I.element,$t=[],fn=new Set,Tn=new Set,kn=I.timelines.map(On=>{const Nn=On.element;fn.add(Nn);const fi=Nn[hr];if(fi&&fi.removedBeforeQueried)return new ke.ZN(On.duration,On.delay);const oi=Nn!==Gt,ki=function us(oe){const U=[];return Qr(oe,U),U}((Y.get(Nn)||ss).map(Ar=>Ar.getRealPlayer())).filter(Ar=>!!Ar.element&&Ar.element===Nn),Zi=dt.get(Nn),Gi=Ot.get(Nn),vo=or(0,this._normalizer,0,On.keyframes,Zi,Gi),da=this._buildPlayer(On,vo,ki);if(On.subTimeline&&je&&Tn.add(Nn),oi){const Ar=new so(U,Ht,Nn);Ar.setRealPlayer(da),$t.push(Ar)}return da});$t.forEach(On=>{Ci(this.playersByQueriedElement,On.element,[]).push(On),On.onDone(()=>function Aa(oe,U,I){let Y=oe.get(U);if(Y){if(Y.length){const je=Y.indexOf(I);Y.splice(je,1)}0==Y.length&&oe.delete(U)}return Y}(this.playersByQueriedElement,On.element,On))}),fn.forEach(On=>ir(On,Vt));const jn=li(kn);return jn.onDestroy(()=>{fn.forEach(On=>ba(On,Vt)),Qi(Gt,I.toStyles)}),Tn.forEach(On=>{Ci(je,On,[]).push(jn)}),jn}_buildPlayer(U,I,Y){return I.length>0?this.driver.animate(U.element,I,U.duration,U.delay,U.easing,Y):new ke.ZN(U.duration,U.delay)}}class so{constructor(U,I,Y){this.namespaceId=U,this.triggerName=I,this.element=Y,this._player=new ke.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(U){this._containsRealPlayer||(this._player=U,this._queuedCallbacks.forEach((I,Y)=>{I.forEach(je=>Ir(U,Y,void 0,je))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(U.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(U){this.totalTime=U}syncPlayerEvents(U){const I=this._player;I.triggerCallback&&U.onStart(()=>I.triggerCallback("start")),U.onDone(()=>this.finish()),U.onDestroy(()=>this.destroy())}_queueEvent(U,I){Ci(this._queuedCallbacks,U,[]).push(I)}onDone(U){this.queued&&this._queueEvent("done",U),this._player.onDone(U)}onStart(U){this.queued&&this._queueEvent("start",U),this._player.onStart(U)}onDestroy(U){this.queued&&this._queueEvent("destroy",U),this._player.onDestroy(U)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(U){this.queued||this._player.setPosition(U)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(U){const I=this._player;I.triggerCallback&&I.triggerCallback(U)}}function Sr(oe){return oe&&1===oe.nodeType}function Ca(oe,U){const I=oe.style.display;return oe.style.display=U??"none",I}function ds(oe,U,I,Y,je){const dt=[];I.forEach(Gt=>dt.push(Ca(Gt)));const Ot=[];Y.forEach((Gt,$t)=>{const fn=new Map;Gt.forEach(Tn=>{const kn=U.computeStyle($t,Tn,je);fn.set(Tn,kn),(!kn||0==kn.length)&&($t[hr]=nl,Ot.push($t))}),oe.set($t,fn)});let Ht=0;return I.forEach(Gt=>Ca(Gt,dt[Ht++])),Ot}function Oo(oe,U){const I=new Map;if(oe.forEach(Ht=>I.set(Ht,[])),0==U.length)return I;const je=new Set(U),dt=new Map;function Ot(Ht){if(!Ht)return 1;let Gt=dt.get(Ht);if(Gt)return Gt;const $t=Ht.parentNode;return Gt=I.has($t)?$t:je.has($t)?1:Ot($t),dt.set(Ht,Gt),Gt}return U.forEach(Ht=>{const Gt=Ot(Ht);1!==Gt&&I.get(Gt).push(Ht)}),I}function ir(oe,U){var I;null===(I=oe.classList)||void 0===I||I.add(U)}function ba(oe,U){var I;null===(I=oe.classList)||void 0===I||I.remove(U)}function pr(oe,U,I){li(I).onDone(()=>oe.processLeaveNode(U))}function Qr(oe,U){for(let I=0;Ije.add(dt)):U.set(oe,Y),I.delete(oe),!0}class ra{constructor(U,I,Y){this.bodyNode=U,this._driver=I,this._normalizer=Y,this._triggerCache={},this.onRemovalComplete=(je,dt)=>{},this._transitionEngine=new ls(U,I,Y),this._timelineEngine=new tl(U,I,Y),this._transitionEngine.onRemovalComplete=(je,dt)=>this.onRemovalComplete(je,dt)}registerTrigger(U,I,Y,je,dt){const Ot=U+"-"+je;let Ht=this._triggerCache[Ot];if(!Ht){const Gt=[],fn=Pe(this._driver,dt,Gt,[]);if(Gt.length)throw function Pt(oe,U){return new A.vHH(3404,!1)}();Ht=function to(oe,U,I){return new ia(oe,U,I)}(je,fn,this._normalizer),this._triggerCache[Ot]=Ht}this._transitionEngine.registerTrigger(I,je,Ht)}register(U,I){this._transitionEngine.register(U,I)}destroy(U,I){this._transitionEngine.destroy(U,I)}onInsert(U,I,Y,je){this._transitionEngine.insertNode(U,I,Y,je)}onRemove(U,I,Y,je){this._transitionEngine.removeNode(U,I,je||!1,Y)}disableAnimations(U,I){this._transitionEngine.markElementAsDisabled(U,I)}process(U,I,Y,je){if("@"==Y.charAt(0)){const[dt,Ot]=Er(Y);this._timelineEngine.command(dt,I,Ot,je)}else this._transitionEngine.trigger(U,I,Y,je)}listen(U,I,Y,je,dt){if("@"==Y.charAt(0)){const[Ot,Ht]=Er(Y);return this._timelineEngine.listen(Ot,I,Ht,dt)}return this._transitionEngine.listen(U,I,Y,je,dt)}flush(U=-1){this._transitionEngine.flush(U)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let il=(()=>{class oe{constructor(I,Y,je){this._element=I,this._startStyles=Y,this._endStyles=je,this._state=0;let dt=oe.initialStylesByElement.get(I);dt||oe.initialStylesByElement.set(I,dt=new Map),this._initialStyles=dt}start(){this._state<1&&(this._startStyles&&Qi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Qi(this._element,this._initialStyles),this._endStyles&&(Qi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(oe.initialStylesByElement.delete(this._element),this._startStyles&&(Fi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Fi(this._element,this._endStyles),this._endStyles=null),Qi(this._element,this._initialStyles),this._state=3)}}return oe.initialStylesByElement=new WeakMap,oe})();function uo(oe){let U=null;return oe.forEach((I,Y)=>{(function hs(oe){return"display"===oe||"position"===oe})(Y)&&(U=U||new Map,U.set(Y,I))}),U}class Ho{constructor(U,I,Y,je){this.element=U,this.keyframes=I,this.options=Y,this._specialStyles=je,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=Y.duration,this._delay=Y.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(U=>U()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const U=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,U,this.options),this._finalKeyframe=U.length?U[U.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(U){const I=[];return U.forEach(Y=>{I.push(Object.fromEntries(Y))}),I}_triggerWebAnimation(U,I,Y){return U.animate(this._convertKeyframesToObject(I),Y)}onStart(U){this._originalOnStartFns.push(U),this._onStartFns.push(U)}onDone(U){this._originalOnDoneFns.push(U),this._onDoneFns.push(U)}onDestroy(U){this._onDestroyFns.push(U)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(U=>U()),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(U=>U()),this._onDestroyFns=[])}setPosition(U){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=U*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const U=new Map;this.hasStarted()&&this._finalKeyframe.forEach((Y,je)=>{"offset"!==je&&U.set(je,this._finished?Y:vn(this.element,je))}),this.currentSnapshot=U}triggerCallback(U){const I="start"===U?this._onStartFns:this._onDoneFns;I.forEach(Y=>Y()),I.length=0}}class ps{validateStyleProperty(U){return!0}validateAnimatableStyleProperty(U){return!0}matchesElement(U,I){return!1}containsElement(U,I){return kt(U,I)}getParentElement(U){return Nr(U)}query(U,I,Y){return Zt(U,I,Y)}computeStyle(U,I,Y){return window.getComputedStyle(U)[I]}animate(U,I,Y,je,dt,Ot=[]){const Gt={duration:Y,delay:je,fill:0==je?"both":"forwards"};dt&&(Gt.easing=dt);const $t=new Map,fn=Ot.filter(jn=>jn instanceof Ho);(function Bt(oe,U){return 0===oe||0===U})(Y,je)&&fn.forEach(jn=>{jn.currentSnapshot.forEach((On,Nn)=>$t.set(Nn,On))});let Tn=function bi(oe){return oe.length?oe[0]instanceof Map?oe:oe.map(U=>ri(U)):[]}(I).map(jn=>Ji(jn));Tn=function Qt(oe,U,I){if(I.size&&U.length){let Y=U[0],je=[];if(I.forEach((dt,Ot)=>{Y.has(Ot)||je.push(Ot),Y.set(Ot,dt)}),je.length)for(let dt=1;dtOt.set(Ht,vn(oe,Ht)))}}return U}(U,Tn,$t);const kn=function aa(oe,U){let I=null,Y=null;return Array.isArray(U)&&U.length?(I=uo(U[0]),U.length>1&&(Y=uo(U[U.length-1]))):U instanceof Map&&(I=uo(U)),I||Y?new il(oe,I,Y):null}(U,Tn);return new Ho(U,Tn,Gt,kn)}}let fs=(()=>{class oe extends ke._j{constructor(I,Y){super(),this._nextAnimationId=0,this._renderer=I.createRenderer(Y.body,{id:"0",encapsulation:A.ifc.None,styles:[],data:{animation:[]}})}build(I){const Y=this._nextAnimationId.toString();this._nextAnimationId++;const je=Array.isArray(I)?(0,ke.vP)(I):I;return Lo(this._renderer,null,Y,"register",[je]),new Di(Y,this._renderer)}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(A.FYo),A.LFG(O.K0))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac}),oe})();class Di extends ke.LC{constructor(U,I){super(),this._id=U,this._renderer=I}create(U,I){return new Ga(this._id,U,I||{},this._renderer)}}class Ga{constructor(U,I,Y,je){this.id=U,this.element=I,this._renderer=je,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Y)}_listen(U,I){return this._renderer.listen(this.element,`@@${this.id}:${U}`,I)}_command(U,...I){return Lo(this._renderer,this.element,this.id,U,I)}onDone(U){this._listen("done",U)}onStart(U){this._listen("start",U)}onDestroy(U){this._listen("destroy",U)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(U){this._command("setPosition",U)}getPosition(){var U,I;return null!==(U=null===(I=this._renderer.engine.players[+this.id])||void 0===I?void 0:I.getPosition())&&void 0!==U?U:0}}function Lo(oe,U,I,Y,je){return oe.setProperty(U,`@@${I}:${Y}`,je)}const va="@.disabled";let Ea=(()=>{class oe{constructor(I,Y,je){this.delegate=I,this.engine=Y,this._zone=je,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Y.onRemovalComplete=(dt,Ot)=>{const Ht=Ot?.parentNode(dt);Ht&&Ot.removeChild(Ht,dt)}}createRenderer(I,Y){const dt=this.delegate.createRenderer(I,Y);if(!(I&&Y&&Y.data&&Y.data.animation)){let fn=this._rendererCache.get(dt);return fn||(fn=new ms("",dt,this.engine),this._rendererCache.set(dt,fn)),fn}const Ot=Y.id,Ht=Y.id+"-"+this._currentId;this._currentId++,this.engine.register(Ht,I);const Gt=fn=>{Array.isArray(fn)?fn.forEach(Gt):this.engine.registerTrigger(Ot,Ht,I,fn.name,fn)};return Y.data.animation.forEach(Gt),new Bo(this,Ht,dt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(I,Y,je){I>=0&&IY(je)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(dt=>{const[Ot,Ht]=dt;Ot(Ht)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Y,je]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(A.FYo),A.LFG(ra),A.LFG(A.R0b))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac}),oe})();class ms{constructor(U,I,Y){this.namespaceId=U,this.delegate=I,this.engine=Y,this.destroyNode=this.delegate.destroyNode?je=>I.destroyNode(je):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(U,I){return this.delegate.createElement(U,I)}createComment(U){return this.delegate.createComment(U)}createText(U){return this.delegate.createText(U)}appendChild(U,I){this.delegate.appendChild(U,I),this.engine.onInsert(this.namespaceId,I,U,!1)}insertBefore(U,I,Y,je=!0){this.delegate.insertBefore(U,I,Y),this.engine.onInsert(this.namespaceId,I,U,je)}removeChild(U,I,Y){this.engine.onRemove(this.namespaceId,I,this.delegate,Y)}selectRootElement(U,I){return this.delegate.selectRootElement(U,I)}parentNode(U){return this.delegate.parentNode(U)}nextSibling(U){return this.delegate.nextSibling(U)}setAttribute(U,I,Y,je){this.delegate.setAttribute(U,I,Y,je)}removeAttribute(U,I,Y){this.delegate.removeAttribute(U,I,Y)}addClass(U,I){this.delegate.addClass(U,I)}removeClass(U,I){this.delegate.removeClass(U,I)}setStyle(U,I,Y,je){this.delegate.setStyle(U,I,Y,je)}removeStyle(U,I,Y){this.delegate.removeStyle(U,I,Y)}setProperty(U,I,Y){"@"==I.charAt(0)&&I==va?this.disableAnimations(U,!!Y):this.delegate.setProperty(U,I,Y)}setValue(U,I){this.delegate.setValue(U,I)}listen(U,I,Y){return this.delegate.listen(U,I,Y)}disableAnimations(U,I){this.engine.disableAnimations(U,I)}}class Bo extends ms{constructor(U,I,Y,je){super(I,Y,je),this.factory=U,this.namespaceId=I}setProperty(U,I,Y){"@"==I.charAt(0)?"."==I.charAt(1)&&I==va?this.disableAnimations(U,Y=void 0===Y||!!Y):this.engine.process(this.namespaceId,U,I.slice(1),Y):this.delegate.setProperty(U,I,Y)}listen(U,I,Y){if("@"==I.charAt(0)){const je=function gs(oe){switch(oe){case"body":return document.body;case"document":return document;case"window":return window;default:return oe}}(U);let dt=I.slice(1),Ot="";return"@"!=dt.charAt(0)&&([dt,Ot]=function rl(oe){const U=oe.indexOf(".");return[oe.substring(0,U),oe.slice(U+1)]}(dt)),this.engine.listen(this.namespaceId,je,dt,Ot,Ht=>{this.factory.scheduleListenerCallback(Ht._data||-1,Y,Ht)})}return this.delegate.listen(U,I,Y)}}const Xi=[{provide:ke._j,useClass:fs},{provide:eo,useFactory:function ho(){return new wr}},{provide:ra,useClass:(()=>{class oe extends ra{constructor(I,Y,je,dt){super(I.body,Y,je)}ngOnDestroy(){this.flush()}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(O.K0),A.LFG(Bn),A.LFG(eo),A.LFG(A.z2F))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac}),oe})()},{provide:A.FYo,useFactory:function Ta(oe,U,I){return new Ea(oe,U,I)},deps:[e.se,ra,A.R0b]}],oa=[{provide:Bn,useFactory:()=>new ps},{provide:A.QbO,useValue:"BrowserAnimations"},...Xi],po=[{provide:Bn,useClass:In},{provide:A.QbO,useValue:"NoopAnimations"},...Xi];let fo=(()=>{class oe{static withConfig(I){return{ngModule:oe,providers:I.disableAnimations?po:oa}}}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275mod=A.oAB({type:oe}),oe.\u0275inj=A.cJS({providers:oa,imports:[e.b2]}),oe})(),ai=(()=>{class oe{}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275mod=A.oAB({type:oe}),oe.\u0275inj=A.cJS({providers:[b.e8],imports:[O.ez]}),oe})();var Nl=p(81847),kl=p(4732),Vl=p(94856),Fl=p(55857),al=p(37240),jl=p(15592),ol=p(13600),za=p(37380),Zl=p(34904),sl=p(85243),Ri=p(68056),Ya=p(24219),qa=p(25828),Gl=p(10369),ll=p(14336),fr=p(25309),ae=p(86353),ce=p(11042),G=p(57788),Me=p(80774),Ge=p(25610),mt=p(61639);let Ut=(()=>{class oe{constructor(){this.handlers=new Map,this.cachedComponents=new Set([Nl.y.id,kl.G.id,Vl.c.id,Ri.z.id,Ya.z.id,Gl.w.id,ce.T.id,ol.y.id,jl.u.id,al.q.id,mt.C.id,Fl.W.id,ll.Z.id,za.o.id,Zl.f.id,Ge._.id,sl.j.id,qa.t.id,G.g.id,Me.F.id,fr.Y.id,ae.P.id]),this.cacheTimeMs=3e5,this.isUserNavigatingBack=!1}shouldReuseRoute(I,Y){return I.routeConfig===Y.routeConfig}retrieve(I){const Y=this.getKey(I);return this.handlers.has(Y)?this.handlers.get(Y).routeHandle:null}shouldAttach(I){if(!this.isUserNavigatingBack||!I.component)return!1;const Y=this.handlers.get(this.getKey(I));return Y&&this.getCurrentTimestamp()-Y.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();this.handlers.set(this.getKey(I),{routeHandle:Y,saveTimeStamp:this.getCurrentTimestamp()})}setLastNavigationType(I){this.isUserNavigatingBack="back"===I}getComponentId(I){return I.id}getKey(I){return I.pathFromRoot.map(Y=>Y.url.map(je=>je.toString())).join("/")}getCurrentTimestamp(){return+Date.now()}}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac}),oe})();const qt=new A.OlP("perun-api-service");let un=(()=>{class oe{constructor(I,Y,je,dt,Ot){this.http=I,this.storeService=Y,this.authzSevice=je,this.titleService=dt,this.utilsService=Ot}initializeColors(I,Y){return new Promise(je=>{Y.forEach(dt=>{const Ot=this.storeService.getProperty("theme")[dt.configValue];document.documentElement.style.setProperty(dt.cssVariable,Ot)}),I.forEach(dt=>{const Ot=this.storeService.getProperty("theme")[dt.configValue];document.documentElement.style.setProperty(dt.cssVariable,Ot),this.setEntityTheme(dt.entity,Ot)}),je()})}setEntityTheme(I,Y){const je=function En(oe){return[hn(tinycolor(oe).lighten(52),"50"),hn(tinycolor(oe).lighten(37),"100"),hn(tinycolor(oe).lighten(26),"200"),hn(tinycolor(oe).lighten(12),"300"),hn(tinycolor(oe).lighten(6),"400"),hn(tinycolor(oe),"500"),hn(tinycolor(oe).darken(6),"600"),hn(tinycolor(oe).darken(12),"700"),hn(tinycolor(oe).darken(18),"800"),hn(tinycolor(oe).darken(24),"900"),hn(tinycolor(oe).lighten(50).saturate(30),"A100"),hn(tinycolor(oe).lighten(30).saturate(30),"A200"),hn(tinycolor(oe).lighten(10).saturate(15),"A400"),hn(tinycolor(oe).lighten(5).saturate(5),"A700")]}(Y);for(const dt of je){const Gt=`--${I}-theme-primary-contrast-${dt.name}`,$t=dt.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${I}-theme-primary-${dt.name}`,`${dt.red},${dt.green},${dt.blue}`),document.documentElement.style.setProperty(Gt,$t)}}loadAppDefaultConfig(){return new Promise(I=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(Y=>{this.storeService.setDefaultConfig(Y),I()})})}loadAppInstanceConfig(){return new Promise(I=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(Y=>{this.storeService.setInstanceConfig(Y);const je=document.location.hostname;Y?.brandings?.[je]&&this.storeService.setBanding(je),I()},()=>{I()})})}getNoCacheHeaders(){return new Et.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(I=>{const Y=document.querySelector("link[rel*='icon']")||document.createElement("link");Y.type="image/x-icon",Y.rel="shortcut icon",Y.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(Y),I()})}setApiUrl(){return new Promise(I=>{let Y=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(Y=Y.replace("oauth","ba")),this.authzSevice.configuration.basePath=Y,this.titleService.setTitle(this.storeService.getProperty("document_title").en),I()})}loadAppsConfig(){return new Promise((I,Y)=>{this.utilsService.getAppsConfig().subscribe(je=>{this.storeService.setAppsConfig(je),I()},je=>Y(je))})}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(Et.eN),A.LFG(b.d6),A.LFG(m.Ct),A.LFG(e.Dx),A.LFG(m.FW))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})();function hn(oe,U){const I=tinycolor(oe),Y=I.toRgb();return{name:U,hex:I.toHexString(),darkContrast:I.isLight(),red:Y.r,green:Y.g,blue:Y.b}}let Dn=(()=>{class oe{constructor(I,Y){this.data=I,this.location=Y}redirect(){this.location.go("/"),location.reload()}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(L.WI),A.Y36(O.Ye))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(I,Y){1&I&&(A.TgZ(0,"h2"),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"p"),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div")(7,"button",0),A.NdJ("click",function(){return Y.redirect()}),A._uU(8),A.ALo(9,"translate"),A.qZA()()),2&I&&(A.xp6(1),A.hij(" ",A.lcZ(2,3,Y.data.title),"\n"),A.xp6(3),A.hij(" ",A.lcZ(5,5,Y.data.message),"\n"),A.xp6(4),A.hij(" ",A.lcZ(9,7,Y.data.action)," "))},dependencies:[w.X$]}),oe})(),pi=(()=>{class oe{constructor(I,Y){this.dialogRef=I,this.data=Y}refresh(){location.reload()}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(L.so),A.Y36(L.WI))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(I,Y){1&I&&(A.TgZ(0,"h2"),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"p"),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div")(7,"button",0),A.NdJ("click",function(){return Y.refresh()}),A._uU(8),A.ALo(9,"translate"),A.qZA()()),2&I&&(A.xp6(1),A.hij(" ",A.lcZ(2,3,Y.data.title),"\n"),A.xp6(3),A.hij(" ",A.lcZ(5,5,Y.data.message),"\n"),A.xp6(4),A.hij(" ",A.lcZ(9,7,Y.data.action)," "))},dependencies:[w.X$]}),oe})();var Li=p(83905);let rr=(()=>{class oe{constructor(I,Y,je,dt,Ot,Ht,Gt){this.initAuthService=I,this.appConfigService=Y,this.authzSevice=je,this.dialog=dt,this.location=Ot,this.guiAuthResolver=Ht,this.mfaHandlerService=Gt,this.entityColorConfigs=[{entity:"vo",configValue:"vo_color",cssVariable:"--vo-color"},{entity:"group",configValue:"group_color",cssVariable:"--group-color"},{entity:"user",configValue:"user_color",cssVariable:"--user-color"},{entity:"member",configValue:"member_color",cssVariable:"--member-color"},{entity:"facility",configValue:"facility_color",cssVariable:"--facility-color"},{entity:"resource",configValue:"resource_color",cssVariable:"--resource-color"},{entity:"admin",configValue:"admin_color",cssVariable:"--admin-color"},{entity:"service",configValue:"service_color",cssVariable:"--service-color"}],this.colorConfigs=[{configValue:"sidemenu_hover_color",cssVariable:"--side-root-item-hover"},{configValue:"sidemenu_active_color",cssVariable:"--side-root-item-active"},{configValue:"sidemenu_submenu_active_color",cssVariable:"--side-link-active"},{configValue:"sidemenu_submenu_hover_color",cssVariable:"--side-link-hover"},{configValue:"sidemenu_hover_text_color",cssVariable:"--side-root-item-text-hover"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-root-item-text-active"},{configValue:"sidemenu_submenu_active_text_color",cssVariable:"--side-link-text-active"},{configValue:"sidemenu_submenu_hover_text_color",cssVariable:"--side-link-text-hover"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(I=>{if("Invalid path"!==I)throw this.mfaHandlerService.catchNoMfaTokenError(I?.params?.error),console.error(I),this.location.go("/"),location.reload(),I;this.handleErr(I)}).then(I=>I?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().catch(Y=>this.handleErr(Y)).then(()=>this.loadPolicies()).then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.guiAuthResolver.loadRolesManagementRules()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}handleErr(I){const Y=(0,D.kZ)();throw"Invalid path"===I?(Y.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(Dn,Y)):401!==I.status&&(Y.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===I.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":I.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(pi,Y)),console.error(I),I}loadPolicies(){return(0,Li.z)(this.authzSevice.getAllPolicies()).then(I=>this.guiAuthResolver.setPerunPolicies(I))}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(b.v0),A.LFG(un),A.LFG(m.Ct),A.LFG(L.uw),A.LFG(O.Ye),A.LFG(b.x4),A.LFG(b.hy))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),Mr=(()=>{class oe{}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275mod=A.oAB({type:oe}),oe.\u0275inj=A.cJS({imports:[O.ez,L.Is,ie.ot,w.aw]}),oe})();var xr=p(40445),sa=p(84080),Fr=p(83353),Mi=p(21281),$r=p(77579),la=p(56451),mr=p(54968),ya=p(69751),_s=p(66406),mo=p(39646),Wc=p(95698),zc=p(54482),Yc=p(72733),No=p(22529),gr=p(82722),qc=p(28746),Bi=p(71345);const zl=new A.OlP("SMOOTH_SCROLL_OPTIONS");let Yl=(()=>{class oe{constructor(I,Y,je){this._document=I,this._platform=Y,this._onGoingScrolls=new Map,this._defaultOptions={duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1},...je}}get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}_scrollElement(I,Y,je){I.scrollLeft=Y,I.scrollTop=je}_getElement(I,Y){return"string"==typeof I?(Y||this._document).querySelector(I):(0,Mi.fI)(I)}_initSmoothScroll(I){return this._onGoingScrolls.has(I)&&this._onGoingScrolls.get(I).next(),this._onGoingScrolls.set(I,new $r.x).get(I)}_isFinished(I,Y,je){return I.currentX!==I.x||I.currentY!==I.y||(Y.next(),je(),!1)}_interrupted(I,Y){return(0,la.T)((0,mr.R)(I,"wheel",{passive:!0,capture:!0}),(0,mr.R)(I,"touchmove",{passive:!0,capture:!0}),Y).pipe((0,Wc.q)(1))}_destroy(I,Y){Y.complete(),this._onGoingScrolls.delete(I)}_step(I){return new ya.y(Y=>{let je=(this._now()-I.startTime)/I.duration;je=je>1?1:je;const dt=I.easing(je);I.currentX=I.startX+(I.x-I.startX)*dt,I.currentY=I.startY+(I.y-I.startY)*dt,this._scrollElement(I.scrollable,I.currentX,I.currentY),_s.Z.schedule(()=>Y.next(I))})}_applyScrollToOptions(I,Y){if(!Y.duration)return this._scrollElement(I,Y.left,Y.top),Promise.resolve();const je=this._initSmoothScroll(I),dt={scrollable:I,startTime:this._now(),startX:I.scrollLeft,startY:I.scrollTop,x:null==Y.left?I.scrollLeft:~~Y.left,y:null==Y.top?I.scrollTop:~~Y.top,duration:Y.duration,easing:Bi(Y.easing.x1,Y.easing.y1,Y.easing.x2,Y.easing.y2)};return new Promise(Ot=>{(0,mo.of)(null).pipe(function Wl(oe,U=1/0,I){return U=(U||0)<1?1/0:U,(0,zc.e)((Y,je)=>(0,Yc.p)(Y,je,oe,U,void 0,!0,I))}(()=>this._step(dt).pipe((0,No.o)(Ht=>this._isFinished(Ht,je,Ot)))),(0,gr.R)(this._interrupted(I,je)),(0,qc.x)(()=>this._destroy(I,je))).subscribe()})}scrollTo(I,Y){if((0,O.NF)(this._platform)){const je=this._getElement(I),dt="rtl"===getComputedStyle(je).direction,Ot=(0,Fr._i)(),Ht={...this._defaultOptions,...Y,left:Y.left??(dt?Y.end:Y.start),right:Y.right??(dt?Y.start:Y.end)};return null!=Ht.bottom&&(Ht.top=je.scrollHeight-je.clientHeight-Ht.bottom),dt&&0!==Ot?(null!=Ht.left&&(Ht.right=je.scrollWidth-je.clientWidth-Ht.left),2===Ot?Ht.left=Ht.right:1===Ot&&(Ht.left=Ht.right?-Ht.right:Ht.right)):null!=Ht.right&&(Ht.left=je.scrollWidth-je.clientWidth-Ht.right),this._applyScrollToOptions(je,Ht)}return Promise.resolve()}scrollToElement(I,Y,je={}){const dt=this._getElement(I),Ot=this._getElement(Y,dt),Ht={...je,left:Ot.offsetLeft+(je.left||0),top:Ot.offsetTop+(je.top||0)};return Ot?this.scrollTo(dt,Ht):Promise.resolve()}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(O.K0),A.LFG(A.Lbi),A.LFG(zl,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),ko=(()=>{class oe{}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275mod=A.oAB({type:oe}),oe.\u0275inj=A.cJS({}),oe})();var Jc=p(61135),Qc=p(50727),Kc=p(60515),Ni=p(18505),er=p(54004),Vo=p(63900),go=p(78372),cl=p(71884);function Fo(...oe){const U=oe.length;if(0===U)throw new Error("list of properties cannot be empty.");return(0,er.U)(I=>{let Y=I;for(let je=0;je{oe.onselectstart=()=>!1})}function td(oe){return(0,Ni.b)(()=>{oe.onselectstart=null})}function wa(){return(0,Ni.b)(oe=>oe.stopPropagation())}function dl(oe,U){return oe.clientX>=U.left&&oe.clientX<=U.left+U.width&&oe.clientY>=U.top&&oe.clientY<=U.top+U.height}let ul=(()=>{class oe{constructor(I){this.viewPort=I,this.nativeElement=I.nativeElement}get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){var I;return(null===(I=this.contentWrapperElement)||void 0===I?void 0:I.clientHeight)||0}get contentWidth(){var I;return(null===(I=this.contentWrapperElement)||void 0===I?void 0:I.clientWidth)||0}activatePointerEvents(I,Y){this.hovered=new ya.y(je=>{const dt=(0,mr.R)(this.nativeElement,"mousemove",{passive:!0}),Ot=I?dt:dt.pipe(wa()),Ht=(0,mr.R)(this.nativeElement,"mouseleave",{passive:!0}).pipe((0,er.U)(()=>!1));(0,la.T)(Ot,Ht).pipe((0,Ni.b)(Gt=>je.next(Gt)),(0,gr.R)(Y)).subscribe()}),this.clicked=new ya.y(je=>{const dt=(0,mr.R)(this.nativeElement,"mousedown",{passive:!0}).pipe((0,Ni.b)(Ht=>je.next(Ht))),Ot=(0,mr.R)(this.nativeElement,"mouseup",{passive:!0}).pipe((0,Ni.b)(()=>je.next(!1)));dt.pipe((0,Vo.w)(()=>Ot),(0,gr.R)(Y)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(I){this.nativeElement.className=`ng-native-scrollbar-hider ng-scroll-viewport ${I}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(I){this.nativeElement.scrollTop=I}scrollXTo(I){this.nativeElement.scrollLeft=I}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(A.SBq))},oe.\u0275dir=A.lG2({type:oe,selectors:[["","scrollViewport",""]]}),oe})(),_r=(()=>{class oe{}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275dir=A.lG2({type:oe}),oe})();const hl=new A.OlP("NG_SCROLLBAR_OPTIONS"),$l={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0,autoHeightDisabled:!0,autoWidthDisabled:!0,sensorDisabled:!1,pointerEventsDisabled:!1};let pl=(()=>{class oe{constructor(I){this.globalOptions=I?{...$l,...I}:$l,this.rtlScrollAxisType=(0,Fr._i)()}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(hl,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),Dh=(()=>{class oe{constructor(I,Y,je){this.document=I,this.manager=Y,this.platform=je,this._scrollbarSize=new Jc.X(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),je.isBrowser&&(0,mr.R)(this.document.defaultView,"resize",{passive:!0}).pipe((0,go.b)(this.manager.globalOptions.windowResizeDebounce),(0,er.U)(()=>this.getNativeScrollbarSize()),(0,cl.x)(),(0,Ni.b)(dt=>this._scrollbarSize.next(dt))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;const I=this.document.createElement("div");I.className="ng-scrollbar-measure",I.style.left="0px",I.style.overflow="scroll",I.style.position="fixed",I.style.top="-9999px",this.document.body.appendChild(I);const Y=I.getBoundingClientRect().right;return this.document.body.removeChild(I),Y}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(O.K0),A.LFG(pl),A.LFG(Fr.t4))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),Xl=(()=>{class oe{constructor(I,Y,je){this.renderer=Y,this.hideNativeScrollbar=je,this._subscriber=Qc.w0.EMPTY,this._subscriber=je.scrollbarSize.subscribe(dt=>{this.renderer.setStyle(I.nativeElement,"--native-scrollbar-size",`-${dt}px`,A.JOm.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(A.SBq),A.Y36(A.Qsj),A.Y36(Dh))},oe.\u0275dir=A.lG2({type:oe,selectors:[["","hideNativeScrollbar",""]]}),oe})(),Rh=(()=>{class oe{constructor(I){this.el=I}set ngAttr(I){for(const[Y,je]of Object.entries(I))this.el.nativeElement.setAttribute(Y,je)}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(A.SBq))},oe.\u0275dir=A.lG2({type:oe,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}}),oe})(),fl=(()=>{class oe{constructor(I,Y,je){if(this.zone=I,this.platform=Y,this.scrollbar=je,this._disabled=!1,this._currentSubscription=null,this.event=new A.vpe,!je)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}get debounce(){return this._debounce}set debounce(I){this._debounce=(0,Mi.su)(I),this._subscribe()}get disabled(){return this._disabled}set disabled(I){this._disabled=(0,Mi.Ig)(I),this._disabled?this._unsubscribe():this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){const I=new ya.y(Y=>{this._resizeObserver=new ResizeObserver(je=>Y.next(je)),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)});this.zone.runOutsideAngular(()=>{this._currentSubscription=(this._debounce?I.pipe((0,go.b)(this._debounce)):I).subscribe(this.event)})}}_unsubscribe(){var I,Y;null===(I=this._resizeObserver)||void 0===I||I.disconnect(),null===(Y=this._currentSubscription)||void 0===Y||Y.unsubscribe()}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(A.R0b),A.Y36(Fr.t4),A.Y36(_r))},oe.\u0275dir=A.lG2({type:oe,selectors:[["","resizeSensor",""]],inputs:{debounce:["sensorDebounce","debounce"],disabled:["sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}}),oe})(),ml=(()=>{class oe{constructor(I,Y,je){this.cmp=I,this.trackElement=Y,this.document=je}get clicked(){const I=(0,mr.R)(this.trackElement,"mousedown",{passive:!0}).pipe(wa(),Kl(this.document)),Y=(0,mr.R)(this.document,"mouseup",{passive:!0}).pipe(wa(),td(this.document),(0,Vo.w)(()=>Kc.E));return(0,la.T)(I,Y)}get clientRect(){return this.trackElement.getBoundingClientRect()}onTrackClicked(I,Y,je){return(0,mo.of)(I).pipe(Fo(this.pageProperty),(0,er.U)(dt=>(dt-this.offset-Y/2)/this.size*je),(0,Ni.b)(dt=>{this.cmp.scrollTo({...this.mapToScrollToOption(dt),duration:(0,Mi.su)(this.cmp.trackClickScrollDuration)})}))}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(_r),A.Y36(HTMLElement),A.Y36(Document))},oe.\u0275dir=A.lG2({type:oe}),oe})(),Cs=(()=>{class oe extends ml{constructor(I,Y,je){super(I,Y.nativeElement,je),this.cmp=I,this.document=je}get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}mapToScrollToOption(I){return{left:I}}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(_r),A.Y36(A.SBq),A.Y36(O.K0))},oe.\u0275dir=A.lG2({type:oe,selectors:[["","scrollbarTrackX",""]],features:[A.qOj]}),oe})(),Ao=(()=>{class oe extends ml{constructor(I,Y,je){super(I,Y.nativeElement,je),this.cmp=I,this.document=je}get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}mapToScrollToOption(I){return{top:I}}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(_r),A.Y36(A.SBq),A.Y36(O.K0))},oe.\u0275dir=A.lG2({type:oe,selectors:[["","scrollbarTrackY",""]],features:[A.qOj]}),oe})(),bs=(()=>{class oe{constructor(I,Y,je,dt){this.cmp=I,this.track=Y,this.thumbElement=je,this.document=dt,this._dragging=new $r.x,this.dragging=this._dragging.pipe((0,cl.x)())}get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return(0,mr.R)(this.thumbElement,"mousedown",{passive:!0}).pipe(wa())}update(){const I=function Co(oe,U,I){return Math.max(~~(oe/U*oe),I)}(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),Y=function nd(oe,U,I){return oe*I/U}(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);_s.Z.schedule(()=>this.updateStyles(this.handleDirection(Y,this.trackMax),I))}dragged(I){let Y,je;const dt=(0,mo.of)(I).pipe(Kl(this.document),(0,Ni.b)(()=>{Y=this.trackMax,je=this.viewportScrollMax,this.setDragging(!0)})),Ot=(0,mr.R)(this.document,"mousemove",{capture:!0,passive:!0}).pipe(wa()),Ht=(0,mr.R)(this.document,"mouseup",{capture:!0}).pipe(wa(),td(this.document),(0,Ni.b)(()=>this.setDragging(!1)));return dt.pipe(Fo(this.pageProperty),(0,er.U)(Gt=>Gt-this.dragStartOffset),(0,jo.z)(Gt=>Ot.pipe(Fo(this.clientProperty),(0,er.U)($t=>$t-this.track.offset),(0,er.U)($t=>je*($t-Gt)/Y),(0,er.U)($t=>this.handleDrag($t,je)),(0,Ni.b)($t=>this.scrollTo($t)),(0,gr.R)(Ht))))}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(_r),A.Y36(ml),A.Y36(HTMLElement),A.Y36(Document))},oe.\u0275dir=A.lG2({type:oe,outputs:{dragging:"dragging"}}),oe})(),ec=(()=>{class oe extends bs{constructor(I,Y,je,dt,Ot){super(I,Y,je.nativeElement,dt),this.cmp=I,this.track=Y,this.element=je,this.document=dt,this.dir=Ot}get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}updateStyles(I,Y){this.thumbElement.style.width=`${Y}px`,this.thumbElement.style.transform=`translate3d(${I}px, 0, 0)`}handleDrag(I,Y){if("rtl"===this.dir.value){if(1===this.cmp.manager.rtlScrollAxisType)return I-Y;if(2===this.cmp.manager.rtlScrollAxisType)return Y-I}return I}handleDirection(I,Y){if("rtl"===this.dir.value){if(2===this.cmp.manager.rtlScrollAxisType)return-I;if(0===this.cmp.manager.rtlScrollAxisType)return I-Y}return I}setDragging(I){this.cmp.setDragging({horizontalDragging:I})}scrollTo(I){this.cmp.viewport.scrollXTo(I)}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(_r),A.Y36(Cs),A.Y36(A.SBq),A.Y36(O.K0),A.Y36(xr.Is))},oe.\u0275dir=A.lG2({type:oe,selectors:[["","scrollbarThumbX",""]],features:[A.qOj]}),oe})(),id=(()=>{class oe extends bs{constructor(I,Y,je,dt){super(I,Y,je.nativeElement,dt),this.cmp=I,this.track=Y,this.element=je,this.document=dt}get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}updateStyles(I,Y){this.thumbElement.style.height=`${Y}px`,this.thumbElement.style.transform=`translate3d(0px, ${I}px, 0)`}handleDrag(I){return I}handleDirection(I){return I}setDragging(I){this.cmp.setDragging({verticalDragging:I})}scrollTo(I){this.cmp.viewport.scrollYTo(I)}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(_r),A.Y36(Ao),A.Y36(A.SBq),A.Y36(O.K0))},oe.\u0275dir=A.lG2({type:oe,selectors:[["","scrollbarThumbY",""]],features:[A.qOj]}),oe})(),Go=(()=>{class oe{constructor(I,Y,je,dt,Ot){this.el=I,this.cmp=Y,this.platform=je,this.document=dt,this.zone=Ot,this.destroyed=new $r.x}activatePointerEvents(){let I,Y,je;return"viewport"===this.cmp.pointerEventsMethod?(this.viewportTrackClicked=new $r.x,this.viewportThumbClicked=new $r.x,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),I=this.viewportThumbClicked,Y=this.viewportTrackClicked,je=this.cmp.viewport.hovered.pipe((0,er.U)(dt=>!!dt&&dl(dt,this.el.getBoundingClientRect())),(0,cl.x)(),(0,Ni.b)(dt=>this.document.onselectstart=dt?()=>!1:null)),this.cmp.viewport.clicked.pipe((0,Ni.b)(dt=>{dt?dl(dt,this.thumb.clientRect)?this.viewportThumbClicked.next(dt):dl(dt,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(dt)):this.cmp.setClicked(!1)}),(0,gr.R)(this.destroyed)).subscribe()):(I=this.thumb.clicked,Y=this.track.clicked,je=this.hovered),(0,la.T)(je.pipe((0,Ni.b)(dt=>this.setHovered(dt))),I.pipe((0,Vo.w)(dt=>this.thumb.dragged(dt))),Y.pipe((0,Vo.w)(dt=>this.track.onTrackClicked(dt,this.thumb.size,this.viewportScrollSize))))}get hovered(){const I=(0,mr.R)(this.el,"mouseenter",{passive:!0}).pipe(wa(),(0,er.U)(()=>!0)),Y=(0,mr.R)(this.el,"mouseleave",{passive:!0}).pipe(wa(),(0,er.U)(()=>!1));return(0,la.T)(I,Y)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe((0,gr.R)(this.destroyed)).subscribe(),(0,la.T)(this.cmp.scrolled,this.cmp.updated).pipe((0,Ni.b)(()=>{var I;return null===(I=this.thumb)||void 0===I?void 0:I.update()}),(0,gr.R)(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(HTMLElement),A.Y36(_r),A.Y36(Fr.t4),A.Y36(Document),A.Y36(A.R0b))},oe.\u0275dir=A.lG2({type:oe}),oe})(),gl=(()=>{class oe extends Go{constructor(I,Y,je,dt,Ot){super(I.nativeElement,Y,je,dt,Ot),this.cmp=Y,this.platform=je,this.document=dt,this.zone=Ot}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}setHovered(I){this.cmp.setHovered({verticalHovered:I})}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(A.SBq),A.Y36(_r),A.Y36(Fr.t4),A.Y36(O.K0),A.Y36(A.R0b))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["scrollbar-y"]],viewQuery:function(I,Y){if(1&I&&(A.Gf(Ao,7),A.Gf(id,7)),2&I){let je;A.iGM(je=A.CRH())&&(Y.track=je.first),A.iGM(je=A.CRH())&&(Y.thumb=je.first)}},hostVars:2,hostBindings:function(I,Y){2&I&&A.ekj("scrollbar-control",!0)},features:[A.qOj],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(I,Y){1&I&&(A.TgZ(0,"div",0),A._UZ(1,"div",1),A.qZA()),2&I&&(A.Gre("ng-scrollbar-track ",Y.cmp.trackClass,""),A.xp6(1),A.Gre("ng-scrollbar-thumb ",Y.cmp.thumbClass,""))},dependencies:[id,Ao],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{width:var(--vertical-scrollbar-size);height:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%} .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{top:0;bottom:0} .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{right:0;left:initial} .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control{left:0;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control{left:initial;right:0} .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0} .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true]{top:var(--scrollbar-total-size);bottom:0}"],changeDetection:0}),oe})(),tc=(()=>{class oe extends Go{constructor(I,Y,je,dt,Ot){super(I.nativeElement,Y,je,dt,Ot),this.cmp=Y,this.platform=je,this.document=dt,this.zone=Ot}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}setHovered(I){this.cmp.setHovered({horizontalHovered:I})}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(A.SBq),A.Y36(_r),A.Y36(Fr.t4),A.Y36(O.K0),A.Y36(A.R0b))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["scrollbar-x"]],viewQuery:function(I,Y){if(1&I&&(A.Gf(Cs,7),A.Gf(ec,7)),2&I){let je;A.iGM(je=A.CRH())&&(Y.track=je.first),A.iGM(je=A.CRH())&&(Y.thumb=je.first)}},hostVars:2,hostBindings:function(I,Y){2&I&&A.ekj("scrollbar-control",!0)},features:[A.qOj],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(I,Y){1&I&&(A.TgZ(0,"div",0),A._UZ(1,"div",1),A.qZA()),2&I&&(A.Gre("ng-scrollbar-track ",Y.cmp.trackClass,""),A.xp6(1),A.Gre("ng-scrollbar-thumb ",Y.cmp.thumbClass,""))},dependencies:[ec,Cs],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{width:0;height:100%} .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:initial} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{left:0;right:0;bottom:0;top:initial} .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:initial} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}"],changeDetection:0}),oe})(),nc=(()=>{class oe{constructor(I,Y,je,dt,Ot,Ht){this.el=I,this.zone=Y,this.changeDetectorRef=je,this.dir=dt,this.smoothScroll=Ot,this.manager=Ht,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new A.vpe,this.state={},this.destroyed=new $r.x}get disabled(){return this._disabled}set disabled(I){this._disabled=(0,Mi.Ig)(I)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(I){this._sensorDisabled=(0,Mi.Ig)(I)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(I){this._pointerEventsDisabled=(0,Mi.Ig)(I)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(I){this._viewportPropagateMouseMove=(0,Mi.Ig)(I)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(I){this._autoHeightDisabled=(0,Mi.Ig)(I)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(I){this._autoWidthDisabled=(0,Mi.Ig)(I)}get nativeElement(){return this.el.nativeElement}updateState(){let I=!1,Y=!1,je=!1,dt=!1;("all"===this.track||"vertical"===this.track)&&(je=this.viewport.scrollHeight>this.viewport.clientHeight,I="always"===this.visibility||je),("all"===this.track||"horizontal"===this.track)&&(dt=this.viewport.scrollWidth>this.viewport.clientWidth,Y="always"===this.visibility||dt),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:I,horizontalUsed:Y,isVerticallyScrollable:je,isHorizontallyScrollable:dt})}setState(I){this.state={...this.state,...I},this.changeDetectorRef.detectChanges()}getScrolledByDirection(I){let Y;return this.scrolled.pipe((0,Ni.b)(je=>Y=je),Fo("target",I),(0,As.G)(),(0,Jl.h)(([je,dt])=>je!==dt),(0,er.U)(()=>Y))}setHovered(I){this.zone.run(()=>this.setState({...I}))}setDragging(I){this.zone.run(()=>this.setState({...I}))}setClicked(I){this.zone.run(()=>this.setState({scrollbarClicked:I}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let I=(0,mr.R)(this.viewport.nativeElement,"scroll",{passive:!0});I=this.scrollAuditTime?I.pipe((0,$c.e)(this.scrollAuditTime)):I,this.scrolled=I.pipe((0,gr.R)(this.destroyed)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngOnChanges(I){this.viewport&&this.update()}ngAfterViewInit(){this.update(),this.dir.change.pipe((0,Ni.b)(()=>this.update()),(0,gr.R)(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(I){return this.smoothScroll.scrollTo(this.viewport.nativeElement,I)}scrollToElement(I,Y){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,I,Y)}updateHeight(){this.nativeElement.style.height="standard"===this.appearance&&this.scrollbarX?`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:`${this.viewport.contentHeight}px`}updateWidth(){this.nativeElement.style.width="standard"===this.appearance&&this.scrollbarY?`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:`${this.viewport.contentWidth}px`}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(A.SBq),A.Y36(A.R0b),A.Y36(A.sBO),A.Y36(xr.Is),A.Y36(Yl),A.Y36(pl))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["ng-scrollbar"]],contentQueries:function(I,Y,je){if(1&I&&A.Suo(je,ul,7),2&I){let dt;A.iGM(dt=A.CRH())&&(Y.customViewPort=dt.first)}},viewQuery:function(I,Y){if(1&I&&(A.Gf(Xc,5,A.SBq),A.Gf(_o,5,A.SBq),A.Gf(ul,7)),2&I){let je;A.iGM(je=A.CRH())&&(Y.scrollbarY=je.first),A.iGM(je=A.CRH())&&(Y.scrollbarX=je.first),A.iGM(je=A.CRH())&&(Y.defaultViewPort=je.first)}},hostVars:2,hostBindings:function(I,Y){2&I&&A.ekj("ng-scrollbar",!0)},inputs:{disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled",viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],features:[A._Bn([{provide:_r,useExisting:oe}]),A.TTD],ngContentSelectors:Ql,decls:6,vars:4,consts:[[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"sensorDebounce","sensorDisabled","resizeSensor"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"],["scrollbarX",""],["scrollbarY",""]],template:function(I,Y){1&I&&(A.F$t(),A.TgZ(0,"div",0)(1,"div",1),A.NdJ("resizeSensor",function(){return Y.update()}),A.TgZ(2,"div",2)(3,"div"),A.Hsn(4),A.qZA()()(),A.YNc(5,xh,3,2,"ng-container",3),A.qZA()),2&I&&(A.Q6J("ngAttr",Y.state),A.xp6(1),A.Q6J("sensorDebounce",Y.sensorDebounce)("sensorDisabled",Y.sensorDisabled),A.xp6(4),A.Q6J("ngIf",!Y.disabled))},dependencies:[O.O5,ul,Xl,Rh,fl,gl,tc],styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none} .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius: 7px;--scrollbar-padding: 4px;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgba(0, 0, 0, .2);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-size: 5px;--scrollbar-hover-size: var(--scrollbar-size);--scrollbar-overscroll-behavior: initial;--scrollbar-transition-duration: .4s;--scrollbar-transition-delay: .8s;--scrollbar-thumb-transition: height ease-out .15s, width ease-out .15s;--scrollbar-track-transition: height ease-out .15s, width ease-out .15s;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size: calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size: var(--scrollbar-size);--horizontal-scrollbar-size: var(--scrollbar-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%]{--vertical-scrollbar-size: var(--scrollbar-hover-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size: var(--scrollbar-hover-size);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)} .ng-scroll-content{position:relative!important;display:inline-block;min-width:100%}.ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scroll-layer[_ngcontent-%COMP%], .ng-scroll-viewport{position:absolute;left:0;right:0;top:0;bottom:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none} .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none} .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)} .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none} .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default} .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0}),oe})(),ic=(()=>{class oe{static withConfig(I){return{ngModule:oe,providers:[{provide:hl,useValue:I}]}}}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275mod=A.oAB({type:oe}),oe.\u0275inj=A.cJS({imports:[O.ez,xr.vT,sa.eL,Fr.ud,ko]}),oe})();var Sa=p(51214),rd=p(73228),ad=p(36769),od=p(22465);function sd(oe,U){if(1&oe){const I=A.EpF();A.TgZ(0,"div")(1,"perun-web-apps-notification",2),A.NdJ("closeNotification",function(){const dt=A.CHM(I).index,Ot=A.oxw();return A.KtG(Ot.removeNotification(dt))}),A.qZA()()}if(2&oe){const I=U.$implicit;A.Q6J("@flyInOut",void 0),A.xp6(1),A.Q6J("data",I)("newNotification",!0)}}const ld=function(oe){return{top:oe}};let ca=(()=>{class oe{constructor(I,Y){this.notificator=I,this.notificationStorageService=Y,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(je=>{this.processNotification(je)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(I){this.notifications.splice(I,1)}processNotification(I){this.notifications.push(I),this.notificationStorageService.storeNotification(I)}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(b.V6),A.Y36(b.SZ))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["perun-web-apps-notificator"]],hostBindings:function(I,Y){1&I&&A.NdJ("resize",function(dt){return Y.getScreenSize(dt)},!1,A.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(I,Y){1&I&&(A.TgZ(0,"div",0),A.YNc(1,sd,2,3,"div",1),A.qZA()),2&I&&(A.Q6J("ngStyle",A.VKq(2,ld,Y.getNotificatorTop())),A.xp6(1),A.Q6J("ngForOf",Y.notifications))},dependencies:[O.sg,O.PC,od.c],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;top:initial;bottom:0}}"],data:{animation:[ad.Pd]}}),oe})();var bo=p(46453);const cd={provide:Et.TP,useExisting:(0,A.Gpc)(()=>b.yC),multi:!0};function dd(oe){return new Ke(oe,"./assets/i18n/",".json")}function ud(oe){const U={basePath:oe.getProperty("api_url")};return new m.VK(U)}const hd=oe=>()=>oe.initialize();let pd=(()=>{class oe{constructor(I,Y){this.customIconService=I,this.translate=Y,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(b.EB),A.LFG(w.sK))},oe.\u0275mod=A.oAB({type:oe,bootstrap:[we.y]}),oe.\u0275inj=A.cJS({providers:[rr,{provide:A.ip1,useFactory:hd,multi:!0,deps:[rr]},{provide:m.VK,useFactory:ud,deps:[b.d6]},{provide:C.wN,useClass:Ut},b.EB,{provide:qt,useClass:b.sM},b.yC,cd,{provide:Sa.Hy,useFactory:()=>localStorage}],imports:[fo,e.b2,Et.JF,st.m,ai,re,ee.Ps,Mr,w.aw.forRoot({loader:{provide:w.Zw,useFactory:dd,deps:[Et.eN]}}),m.au,t.ez,l,ic.withConfig({autoWidthDisabled:!1,visibility:"hover"}),Sa.zr.forRoot()]}),oe})();A.B6R(we.y,function(){return[O.O5,O.PC,C.lC,ee.Hw,rd.V,z.JX,z.TM,z.Rh,c.$,ca,bo.Y,Ue,nc]},[]),(0,A.G48)(),e.q6().bootstrapModule(pd).catch(oe=>console.error(oe))},11243:(Xe,ue,p)=>{"use strict";p.d(ue,{r:()=>C});var e=p(36895),A=p(94650);let C=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=A.oAB({type:M}),M.\u0275inj=A.cJS({imports:[e.ez]}),M})()},6335:(Xe,ue,p)=>{"use strict";p.d(ue,{Ng:()=>M,Rc:()=>A,pI:()=>C});var e=p(94650);const A="GUI_CONFIG.PREF_PAGE_SIZE",C="GUI_CONFIG.PREF_PAGE_SIZE.";let M=(()=>{class m{getString(D){return localStorage.getItem(D)}getNumber(D){return parseInt(localStorage.getItem(D),10)}setNumber(D,v){localStorage.setItem(D,v.toString())}}return m.\u0275fac=function(D){return new(D||m)},m.\u0275prov=e.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},10036:(Xe,ue,p)=>{"use strict";p.d(ue,{$I:()=>jt,$V:()=>c,$t:()=>Kt,AA:()=>B,Ad:()=>he,Af:()=>F,Aj:()=>De,BV:()=>Le,Bf:()=>t,CE:()=>ne,CP:()=>M,Cf:()=>xe,DR:()=>Ce,FF:()=>It,H2:()=>q,HC:()=>le,HE:()=>Et,Hi:()=>Q,Is:()=>Ue,It:()=>E,Iz:()=>_,JO:()=>r,Jf:()=>Ee,KE:()=>k,M8:()=>Re,NG:()=>X,NL:()=>_e,O7:()=>V,O9:()=>nt,RS:()=>se,S7:()=>S,Sb:()=>N,US:()=>l,VR:()=>w,W1:()=>ge,Wv:()=>Te,XH:()=>an,YF:()=>D,_7:()=>be,_c:()=>we,aL:()=>Ne,bf:()=>Z,bj:()=>Cn,cL:()=>Be,d7:()=>Ae,dB:()=>C,dI:()=>z,dK:()=>st,e5:()=>i,ee:()=>at,eq:()=>vt,g:()=>re,gB:()=>te,gG:()=>d,gc:()=>v,iQ:()=>a,j1:()=>ie,kO:()=>Se,kZ:()=>Ye,nT:()=>b,oK:()=>u,qV:()=>T,qy:()=>pe,rF:()=>ve,rc:()=>de,tY:()=>W,tw:()=>m,uC:()=>fe,uI:()=>on,uM:()=>L,v1:()=>R,vq:()=>ye,xt:()=>ee,xx:()=>O,yW:()=>Ke,z6:()=>h,zW:()=>We,zp:()=>s});var e=p(6335),A=p(94650);let C=(()=>{class Tt{constructor(Ze){this.guiConfigService=Ze,this.defaultTableSizes=new Map,this.defaultTableSizes.set(ve,25),this.defaultTableSizes.set(L,25)}getTablePageSize(Ze){const wt=this.guiConfigService.getNumber(e.pI+Ze);if(!isNaN(wt))return wt;const Ft=this.guiConfigService.getNumber(e.Rc);return isNaN(Ft)?this.defaultTableSizes.get(Ze)??10:Ft}setTablePageSize(Ze,wt){this.guiConfigService.setNumber(e.pI+Ze,wt)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(A.LFG(e.Ng))},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac,providedIn:"root"}),Tt})();const M="0",m="1",b="2",D="3",v="4",R="5",B="6",w="7",L="8",O="9",q="10",ee="11",z="12",ie="13",Te="14",pe="15",Le="16",T="17",W="18",F="19",V="20",te="21",Q="22",Ee="23",ge="24",ve="25",De="26",he="27",Ye="28",Be="29",se="30",le="31",k="32",N="33",be="34",Z="35",de="36",xe="37",vt="42",X="43",nt="44",Ae="45",ye="46",_e="47",Se="48",Ne="49",Ce="50",fe="51",r="52",u="53",_="54",E="55",h="56",a="57",i="58",t="59",s="62",l="63",d="64",c="65",S="66",We="69",ne="71",Ue="72",Re="75",re="76",we="77",st="78",Ke="79",Et="80",at="82",It="83",jt="84",an="85",Kt="86",on="87",Cn="88"},36769:(Xe,ue,p)=>{"use strict";p.d(ue,{Ji:()=>m,Pd:()=>C,BQ:()=>A,Ly:()=>M,GH:()=>v,Ls:()=>R,SG:()=>D,es:()=>b});var e=p(37340);const A=(0,e.X$)("openClose",[(0,e.SB)("open",(0,e.oB)({overflow:"hidden"})),(0,e.SB)("closed",(0,e.oB)({height:"0px",overflow:"hidden"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),C=(0,e.X$)("flyInOut",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".5s",(0,e.oB)({transform:"translateX(100%)"}))])]),M=(0,e.X$)("rollInOut",[(0,e.eR)(":enter",[(0,e.oB)({height:"0px"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".25s",(0,e.oB)({height:"0px"}))])]),m=(0,e.X$)("routeAnimations",[(0,e.eR)("* => *",[(0,e.oB)({position:"relative"}),(0,e.IO)(":enter",[(0,e.oB)({width:"100%",opacity:0})],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({position:"absolute",width:"100%",opacity:1}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,e.IO)(":enter",[(0,e.oB)({position:"absolute",width:"100%",opacity:0}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),b=(0,e.X$)("tagsOpenClose",[(0,e.SB)("open",(0,e.oB)({})),(0,e.SB)("closed",(0,e.oB)({width:"0px",height:"0px"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),D=(0,e.X$)("switchAnimations",[(0,e.eR)("true => false",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(-100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,e.eR)("false => true",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),v=(0,e.X$)("slideInOutLeft",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(-100%)"}))])]),R=(0,e.X$)("slideInOutRight",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)",position:"fixed"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(100%)"}))])])},37433:(Xe,ue,p)=>{"use strict";p.d(ue,{Mw:()=>xe.M,CZ:()=>l.C,Ld:()=>J.L,qG:()=>fe.qG,Sx:()=>Ne.S,y9:()=>r,Nj:()=>nt.N,ez:()=>Z,N7:()=>o});var e=p(36895),A=p(56709),C=p(30671),M=p(89383),m=p(94364),b=p(96308),D=p(98739),v=p(51572),R=p(63189),B=p(97392),w=p(28255),L=p(4859),O=p(10266),q=p(59549),ee=p(24006),z=p(284),ie=p(77331),Te=p(73555),pe=p(3238),Le=p(19516),T=p(22465),W=p(64425),F=p(35423),V=p(99602),te=p(71948),Q=p(84385),Ee=p(33231),ge=p(67376),ve=p(65412),De=p(9244),he=p(60900),Ye=p(42673),Be=p(21029),se=p(94650),le=p(98380),k=p(34447);let N=(()=>{class ht extends pe.LF{format(et,ne){return"input"===ne?`${et.getDate().toString()}.${(et.getMonth()+1).toString()}.${et.getFullYear()}`:et.toDateString()}}return ht.\u0275fac=function(){let We;return function(ne){return(We||(We=se.n5z(ht)))(ne||ht)}}(),ht.\u0275prov=se.Yz7({token:ht,factory:ht.\u0275fac}),ht})();const be={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Z=(()=>{class ht{}return ht.\u0275fac=function(et){return new(et||ht)},ht.\u0275mod=se.oAB({type:ht}),ht.\u0275inj=se.cJS({providers:[{provide:pe._A,useClass:N},{provide:pe.sG,useValue:be}],imports:[e.ez,A.p9,C.p0,ee.u5,ie.Hi,Te._t,M.aw,m.Bz,b.JX,D.TU,v.Cq,R.r,B.Ps,w.Tx,L.ot,O.AV,q.lN,ee.UX,z.c,pe.si,Le.d4,W.Iq,F.dp,V.FA,te.Fk,pe.Ng,Q.LD,Ee.Co,ge.Cl,ve.Is,De.Je,he.C,Ye.g]}),ht})();se.B6R(Be.Us,[e.O5,le.w,L.lW,ge.xd,ge.x0,ge.N7,ve.uh,ve.H8,T.c],[M.X$,k.a]),p(53984);var xe=p(43532),nt=(p(38719),p(21963),p(28820),p(63167),p(62109),p(80275),p(53599)),Ne=(p(25788),p(58956),p(41619),p(61150),p(63312)),fe=(p(52314),p(52170));let r=(()=>{class ht{constructor(et){this.router=et}redirectToHome(){this.router.navigate(["/home"],{queryParamsHandling:"merge"})}}return ht.\u0275fac=function(et){return new(et||ht)(se.Y36(m.F0))},ht.\u0275cmp=se.Xpm({type:ht,selectors:[["perun-web-apps-not-authorized-page"]],decls:10,vars:9,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5"],[1,"page-title"],["mat-stroked-button","",1,"mt-2",3,"click"]],template:function(et,ne){1&et&&(se.TgZ(0,"div",0)(1,"h1",1),se._uU(2),se.ALo(3,"translate"),se.qZA(),se.TgZ(4,"div"),se._uU(5),se.ALo(6,"translate"),se.qZA(),se.TgZ(7,"button",2),se.NdJ("click",function(){return ne.redirectToHome()}),se._uU(8),se.ALo(9,"translate"),se.qZA()()),2&et&&(se.xp6(2),se.Oqu(se.lcZ(3,3,"GENERAL.NOT_AUTHORIZED_PAGE.TITLE")),se.xp6(3),se.Oqu(se.lcZ(6,5,"GENERAL.NOT_AUTHORIZED_PAGE.DESC")),se.xp6(3),se.hij(" ",se.lcZ(9,7,"GENERAL.NOT_AUTHORIZED_PAGE.REDIRECT")," "))},dependencies:[L.lW,M.X$]}),ht})();p(2541),p(74006);var E=p(81591),h=p(61744),a=p(95017),i=p(96338);function t(ht,We){if(1&ht){const et=se.EpF();se.TgZ(0,"mat-list-item",4)(1,"p",5),se.NdJ("click",function(){const He=se.CHM(et).$implicit,Oe=se.oxw();return se.KtG(Oe.showWholeKey(He))}),se._uU(2),se.qZA(),se.TgZ(3,"button",6),se.ALo(4,"translate"),se.ALo(5,"customTranslate"),se.TgZ(6,"mat-icon"),se._uU(7," file_copy "),se.qZA()(),se.TgZ(8,"button",7),se.NdJ("click",function(){const He=se.CHM(et).$implicit,Oe=se.oxw();return se.KtG(Oe.removeKey(He,!1))}),se.ALo(9,"translate"),se.ALo(10,"customTranslate"),se.TgZ(11,"mat-icon"),se._uU(12," delete "),se.qZA()()()}if(2&ht){const et=We.$implicit;se.xp6(2),se.Oqu(et),se.xp6(1),se.s9C("matTooltip",se.lcZ(4,4,se.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.COPY_TOOLTIP"))),se.Q6J("cdkCopyToClipboard",et),se.xp6(5),se.s9C("matTooltip",se.lcZ(9,8,se.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_TOOLTIP")))}}function n(ht,We){if(1&ht){const et=se.EpF();se.TgZ(0,"mat-list-item",4)(1,"label",8),se.NdJ("click",function(){const He=se.CHM(et).$implicit,Oe=se.oxw();return se.KtG(Oe.showWholeKey(He))}),se._uU(2),se.qZA(),se.TgZ(3,"button",9)(4,"mat-icon"),se._uU(5," file_copy "),se.qZA()(),se.TgZ(6,"button",10),se.NdJ("click",function(){const He=se.CHM(et).$implicit,Oe=se.oxw();return se.KtG(Oe.removeKey(He,!0))}),se.TgZ(7,"mat-icon"),se._uU(8," delete "),se.qZA()()()}if(2&ht){const et=We.$implicit;se.xp6(2),se.Oqu(et),se.xp6(1),se.Q6J("cdkCopyToClipboard",et)}}let o=(()=>{class ht{constructor(et,ne,Ue,He,Oe){this.store=et,this.attributesManagerService=ne,this.dialog=Ue,this.translateService=He,this.entityStorageService=Oe,this.adminKeys=[],this.userKeys=[],this.userUrn="urn:perun:user:attribute-def:def:sshPublicKey",this.adminUrn="urn:perun:user:attribute-def:def:sshPublicAdminKey",this.selection=new a.Ov(!1,[]),this.selectionAdmin=new a.Ov(!1,[]),He.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(Re=>this.removeDialogDescription=Re),He.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(Re=>this.removeDialogTitle=Re),He.get("ALERTS.NO_ALT_PASSWORDS").subscribe(Re=>this.alertText=Re),He.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(Re=>this.headerColumnText=Re)}ngOnInit(){this.userId=window.location.pathname.startsWith("/myProfile")?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(et=>this.removeDialogDescription=et),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(et=>this.removeDialogTitle=et),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(et=>this.alertText=et),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(et=>this.headerColumnText=et)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(et){const ne=(0,De.kZ)();ne.width="850px",ne.data={attribute:et?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Be.FJ,ne).afterClosed().subscribe(He=>{He&&(et?this.getAdminSSH():this.getUserSSH())})}removeKey(et,ne){const Ue=(0,De.kZ)();Ue.width="600px",Ue.data={values:[et],attribute:ne?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(Be.eK,Ue).afterClosed().subscribe(Oe=>{Oe&&(this.loading=!0,ne?(this.getAdminSSH(),this.selectionAdmin.clear()):(this.getUserSSH(),this.selection.clear()))})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(et=>{this.userKeyAttribute=et,this.userKeys=et.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(et=>{this.adminKeyAttribute=et,this.adminKeys=et.value,this.loading=!1})}showWholeKey(et){const ne=(0,De.kZ)();ne.width="600px",ne.data={value:et},this.dialog.open(Be.iI,ne)}}return ht.\u0275fac=function(et){return new(et||ht)(se.Y36(E.d6),se.Y36(h.H8),se.Y36(ve.uw),se.Y36(M.sK),se.Y36(E.fb))},ht.\u0275cmp=se.Xpm({type:ht,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:28,vars:32,consts:[[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["class","dark-hover-list-item w-auto","matRipple","",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item","w-auto"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ml-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ml-2","center-content",3,"matTooltip","click"],[1,"truncate","center-content",3,"click"],["mat-icon-button","","color","accent",1,"ml-auto","center-content",3,"cdkCopyToClipboard"],["mat-icon-button","","color","warn",1,"ml-2","center-content",3,"click"]],template:function(et,ne){1&et&&(se.TgZ(0,"h1",0),se._uU(1),se.ALo(2,"translate"),se.ALo(3,"customTranslate"),se.qZA(),se.TgZ(4,"p"),se._uU(5),se.ALo(6,"translate"),se.ALo(7,"customTranslate"),se.qZA(),se.TgZ(8,"button",1),se.NdJ("click",function(){return ne.addKey(!1)}),se._uU(9),se.ALo(10,"translate"),se.ALo(11,"customTranslate"),se.qZA(),se.TgZ(12,"mat-list"),se.YNc(13,t,13,12,"mat-list-item",2),se.qZA(),se.TgZ(14,"h1",3),se._uU(15),se.ALo(16,"translate"),se.ALo(17,"customTranslate"),se.qZA(),se.TgZ(18,"p"),se._uU(19),se.ALo(20,"translate"),se.ALo(21,"customTranslate"),se.qZA(),se.TgZ(22,"button",1),se.NdJ("click",function(){return ne.addKey(!0)}),se._uU(23),se.ALo(24,"translate"),se.ALo(25,"customTranslate"),se.qZA(),se.TgZ(26,"mat-list"),se.YNc(27,n,9,2,"mat-list-item",2),se.qZA()),2&et&&(se.xp6(1),se.hij(" ",se.lcZ(2,8,se.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_TITLE")),"\n"),se.xp6(4),se.Oqu(se.lcZ(6,12,se.lcZ(7,14,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_DESCRIPTION"))),se.xp6(4),se.hij(" ",se.lcZ(10,16,se.lcZ(11,18,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),se.xp6(4),se.Q6J("ngForOf",ne.userKeys),se.xp6(2),se.hij(" ",se.lcZ(16,20,se.lcZ(17,22,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.ADMIN_SSH_KEYS_TITLE")),"\n"),se.xp6(4),se.hij(" ",se.lcZ(20,24,se.lcZ(21,26,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION")),"\n"),se.xp6(4),se.hij(" ",se.lcZ(24,28,se.lcZ(25,30,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),se.xp6(4),se.Q6J("ngForOf",ne.adminKeys))},dependencies:[e.sg,B.Hw,L.lW,O.gM,pe.wG,W.i3,i.i$,i.Tg,M.X$,k.a],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}label[_ngcontent-%COMP%]:hover, .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),ht})();p(46453);var l=p(29926),J=(p(91880),p(61880),p(12488),p(7434))},63312:(Xe,ue,p)=>{"use strict";p.d(ue,{S:()=>m,Y:()=>b});var e=p(94650),C=(p(61744),p(89383)),M=p(89593);const m={};let b=(()=>{class D{constructor(R){this.translate=R,this.item=null,this.itemSelected=new e.vpe,this.nameFunction=B=>B===m?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):B.shortname,this.secondaryFunction=B=>B===m?"":B.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+String(B.id),this.searchFunction=B=>B===m?"":B.shortname+String(B.id)}}return D.\u0275fac=function(R){return new(R||D)(e.Y36(C.sK))},D.\u0275cmp=e.Xpm({type:D,selectors:[["perun-web-apps-app-form-item-search-select"]],inputs:{items:"items",item:"item"},outputs:{itemSelected:"itemSelected"},decls:4,vars:15,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","entity","disableAutoSelect","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(R,B){1&R&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(L){return B.itemSelected.emit(L)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&R&&e.Q6J("entities",B.items)("searchFunction",B.searchFunction)("mainTextFunction",B.nameFunction)("secondaryTextFunction",B.secondaryFunction)("entity",B.item)("disableAutoSelect",!0)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[M.i,C.X$]}),D})()},38719:(Xe,ue,p)=>{"use strict";p.d(ue,{u:()=>B});var e=p(94650),A=p(9244),C=p(36895),M=p(56709),m=p(24006),b=p(59549),D=p(64597);function v(w,L){if(1&w){const O=e.EpF();e.TgZ(0,"mat-checkbox",2),e.NdJ("change",function(){e.CHM(O);const ee=e.oxw();return e.KtG(ee._sendEventToParent())})("ngModelChange",function(ee){e.CHM(O);const z=e.oxw();return e.KtG(z.attribute.value=ee)}),e.ALo(1,"multiWordDataCy"),e.qZA()}if(2&w){const O=e.oxw();e.Q2q("data-cy","",e.lcZ(1,2,O.attribute.displayName),"-value"),e.Q6J("ngModel",O.attribute.value)}}function R(w,L){if(1&w&&(e.TgZ(0,"mat-label"),e._uU(1),e.qZA()),2&w){const O=e.oxw();e.xp6(1),e.Oqu(O.attribute.value)}}let B=(()=>{class w{constructor(){this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,A.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return w.\u0275fac=function(O){return new(O||w)},w.\u0275cmp=e.Xpm({type:w,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(O,q){1&O&&(e.TgZ(0,"div"),e.YNc(1,v,2,4,"mat-checkbox",0),e.YNc(2,R,2,1,"mat-label",1),e.qZA()),2&O&&(e.xp6(1),e.Q6J("ngIf",!q.readonly),e.xp6(1),e.Q6J("ngIf",q.readonly))},dependencies:[C.O5,M.oG,m.JJ,m.On,b.hX,D.R]}),w})()},21963:(Xe,ue,p)=>{"use strict";p.d(ue,{H:()=>W});var e=p(94650),A=p(29521),C=p(73555),M=p(21029),m=p(9244),b=p(65412),D=p(36895),v=p(77331),R=p(97392),B=p(4859),w=p(10266),L=p(59549),O=p(284);function q(F,V){if(1&F){const te=e.EpF();e.TgZ(0,"mat-icon",9),e.NdJ("mousedown",function(){e.CHM(te);const Ee=e.oxw(2);return e.KtG(Ee.dragDisabled=!1)}),e._uU(1,"drag_indicator"),e.qZA()}}function ee(F,V){if(1&F){const te=e.EpF();e.TgZ(0,"mat-icon",10),e.NdJ("click",function(){e.CHM(te);const Ee=e.oxw().$implicit,ge=e.oxw();return e.KtG(ge.edit(Ee))}),e._uU(1,"edit"),e.qZA()}}function z(F,V){if(1&F){const te=e.EpF();e.TgZ(0,"mat-icon",11),e.NdJ("click",function(){e.CHM(te);const Ee=e.oxw().$implicit,ge=e.oxw();return e.KtG(ge.remove(Ee))}),e._uU(1,"cancel"),e.qZA()}}function ie(F,V){if(1&F){const te=e.EpF();e.TgZ(0,"mat-chip",4),e.NdJ("removed",function(){const ge=e.CHM(te).$implicit,ve=e.oxw();return ve.remove(ge),e.KtG(ve._sendEventToParent())}),e.YNc(1,q,2,0,"mat-icon",5),e.TgZ(2,"div",6),e.NdJ("click",function(){const ge=e.CHM(te).$implicit,ve=e.oxw();return e.KtG(ve.readonly&&void 0!==ve.attribute.displayName&&ve.showValue(ge,ve.attribute.displayName))}),e._uU(3),e.qZA(),e.YNc(4,ee,2,0,"mat-icon",7),e.YNc(5,z,2,0,"mat-icon",8),e.qZA()}if(2&F){const te=V.$implicit,Q=e.oxw();e.Q6J("selectable",Q.selectable)("cdkDragData",te)("removable",Q.removable),e.xp6(1),e.Q6J("ngIf",Q.removable),e.xp6(1),e.ekj("cursor-pointer",Q.readonly&&void 0!==Q.attribute.displayName),e.xp6(1),e.hij(" ",te," "),e.xp6(1),e.Q6J("ngIf",Q.removable),e.xp6(1),e.Q6J("ngIf",Q.removable)}}function Te(F,V){1&F&&(e.TgZ(0,"mat-icon"),e._uU(1,"more_horiz"),e.qZA())}function pe(F,V){1&F&&(e.TgZ(0,"mat-icon"),e._uU(1,"keyboard_arrow_up"),e.qZA())}function Le(F,V){if(1&F){const te=e.EpF();e.TgZ(0,"div",12)(1,"span",13)(2,"button",14),e.NdJ("click",function(){e.CHM(te);const Ee=e.oxw();return e.KtG(Ee.onShowChange())}),e.YNc(3,Te,2,0,"mat-icon",15),e.YNc(4,pe,2,0,"mat-icon",15),e.qZA()()()}if(2&F){const te=e.oxw();e.xp6(1),e.Q6J("matTooltip",te.showMore?"Show less":"Show more")("matTooltipPosition","above"),e.xp6(2),e.Q6J("ngIf",!te.showMore),e.xp6(1),e.Q6J("ngIf",te.showMore)}}function T(F,V){if(1&F){const te=e.EpF();e.TgZ(0,"mat-form-field",12)(1,"input",16),e.NdJ("matChipInputTokenEnd",function(Ee){e.CHM(te);const ge=e.oxw();return e.KtG(ge.add(Ee))})("change",function(){e.CHM(te);const Ee=e.oxw();return e.KtG(Ee._sendEventToParent())}),e.qZA()()}if(2&F){const te=e.oxw(),Q=e.MAs(2);e.xp6(1),e.Q6J("matChipInputFor",Q)("matChipInputSeparatorKeyCodes",te.separatorKeysCodes)("matChipInputAddOnBlur",te.addOnBlur)}}let W=(()=>{class F{constructor(te,Q){this.dialog=te,this.changeDetector=Q,this.readonly=!1,this.sendEventToParent=new e.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[A.K5,A.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!(0,m.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,m.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(te){const Q=te.input,Ee=te.value;(Ee||"").trim()&&(this.attribute.value.push(Ee.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),Q&&(Q.value=""),this.sendEventToParent.emit()}remove(te){const Q=(0,m.kZ)();Q.width="400px",Q.data={name:te},this.dialog.open(M.Wr,Q).afterClosed().subscribe(ge=>{if(ge){const ve=this.attribute.value.indexOf(te);this.attribute.value.splice(ve,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(te){this.dragDisabled=!0,(0,C.bA)(this.attribute.value,te.previousIndex,te.currentIndex),this.values=this.attribute.value}edit(te){const Q=this.attribute.value.indexOf(te),Ee=(0,m.kZ)();Ee.width="600px",Ee.data={attribute:this.attribute,index:Q},this.dialog.open(M.r2,Ee).afterClosed().subscribe(ve=>{ve&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(te,Q){const Ee=(0,m.kZ)();Ee.width="350px",Ee.data={value:te,title:Q},this.dialog.open(M.mk,Ee)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return F.\u0275fac=function(te){return new(te||F)(e.Y36(b.uw),e.Y36(e.sBO))},F.\u0275cmp=e.Xpm({type:F,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:6,vars:4,consts:[["cdkDropList","","cdkDropListOrientation","vertical",1,"mat-chip-list-stacked",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],["class","chip-word-break","cdkDrag","",3,"selectable","cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["cdkDrag","",1,"chip-word-break",3,"selectable","cdkDragData","removable","removed"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text","overflow-ellipsis",3,"click"],["class","edit-delete-icon ml-2",3,"click",4,"ngIf"],["class","edit-delete-icon",3,"click",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ml-2",3,"click"],[1,"edit-delete-icon",3,"click"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ml-auto",3,"click"],[4,"ngIf"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(te,Q){1&te&&(e.TgZ(0,"div")(1,"mat-chip-list",0,1),e.NdJ("cdkDropListDropped",function(ge){return Q.drop(ge),Q._sendEventToParent()}),e.YNc(3,ie,6,9,"mat-chip",2),e.YNc(4,Le,5,4,"div",3),e.YNc(5,T,2,3,"mat-form-field",3),e.qZA()()),2&te&&(e.xp6(1),e.Q6J("cdkDropListDisabled",Q.dragDisabled),e.xp6(2),e.Q6J("ngForOf",Q.values.slice(0,Q.itemsShown)),e.xp6(1),e.Q6J("ngIf",Q.values.length>Q.defaultItemsShown),e.xp6(1),e.Q6J("ngIf",!Q.readonly))},dependencies:[D.sg,D.O5,v.qn,v.HS,v.oH,C.Wj,C.Zt,R.Hw,B.lW,w.gM,L.KE,O.Nt],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),F})()},28820:(Xe,ue,p)=>{"use strict";p.d(ue,{$:()=>Te});var e=p(21029),A=p(9244),C=p(94650),M=p(65412),m=p(36895),b=p(24006),D=p(97392),v=p(4859),R=p(10266),B=p(59549),w=p(284);function L(pe,Le){if(1&pe){const T=C.EpF();C.TgZ(0,"button",15),C.NdJ("click",function(){C.CHM(T);const F=C.oxw().index,V=C.oxw();return C.KtG(V.removeValue(F))}),C.TgZ(1,"mat-icon"),C._uU(2," indeterminate_check_box "),C.qZA()()}}function O(pe,Le){if(1&pe){const T=C.EpF();C.TgZ(0,"div",9)(1,"mat-form-field",10),C._UZ(2,"label",11),C.TgZ(3,"input",12),C.NdJ("click",function(){const V=C.CHM(T).index,te=C.oxw();return C.KtG(te.readonly&&te.attribute.displayName&&te.showValue(te.keys[V],te.attribute.displayName))})("ngModelChange",function(F){const te=C.CHM(T).index,Q=C.oxw();return C.KtG(Q.keys[te]=F)}),C.qZA()(),C.TgZ(4,"mat-form-field",10),C._UZ(5,"label",11),C.TgZ(6,"input",13),C.NdJ("click",function(){const V=C.CHM(T).$implicit,te=C.oxw();return C.KtG(te.readonly&&void 0!==te.attribute.displayName&&te.showValue(V,te.attribute.displayName))})("ngModelChange",function(F){const te=C.CHM(T).index,Q=C.oxw();return C.KtG(Q.values[te]=F)}),C.qZA()(),C.YNc(7,L,3,0,"button",14),C.qZA()}if(2&pe){const T=Le.index,W=C.oxw();C.xp6(1),C.s9C("appearance",W.readonly?"none":"standard"),C.xp6(1),C.hYB("for","",W.attribute.id,"-key-",T,""),C.xp6(1),C.ekj("cursor-pointer",W.readonly&&void 0!==W.attribute.displayName),C.hYB("id","",W.attribute.id,"-key-",T,""),C.MGl("name","key-",T,""),C.Q6J("ngModel",W.keys[T])("readonly",W.readonly),C.xp6(1),C.s9C("appearance",W.readonly?"none":"standard"),C.xp6(1),C.hYB("for","",W.attribute.id,"-value-",T,""),C.xp6(1),C.ekj("cursor-pointer",W.readonly&&void 0!==W.attribute.displayName),C.MGl("name","value-",T,""),C.hYB("id","",W.attribute.id,"-value-",T,""),C.Q6J("readonly",W.readonly)("ngModel",W.values[T]),C.xp6(1),C.Q6J("ngIf",!W.readonly)}}function q(pe,Le){1&pe&&(C.TgZ(0,"mat-icon"),C._uU(1,"more_horiz"),C.qZA())}function ee(pe,Le){1&pe&&(C.TgZ(0,"mat-icon"),C._uU(1,"keyboard_arrow_up"),C.qZA())}function z(pe,Le){if(1&pe){const T=C.EpF();C.TgZ(0,"button",16),C.NdJ("click",function(){C.CHM(T);const F=C.oxw();return C.KtG(F.onShowChange())}),C.YNc(1,q,2,0,"mat-icon",17),C.YNc(2,ee,2,0,"mat-icon",17),C.qZA()}if(2&pe){const T=C.oxw();C.xp6(1),C.Q6J("ngIf",!T.showMore),C.xp6(1),C.Q6J("ngIf",T.showMore)}}function ie(pe,Le){if(1&pe){const T=C.EpF();C.TgZ(0,"button",18),C.NdJ("click",function(){C.CHM(T);const F=C.oxw();return C.KtG(F.addValue())}),C.TgZ(1,"mat-icon"),C._uU(2," add_box "),C.qZA()()}}let Te=(()=>{class pe{constructor(T){this.dialog=T,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const T=new Map(Object.entries(this.attribute.value));for(const[W,F]of T.entries())this.keys.push(W),this.values.push(F)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,A.Hm)(this.attribute))}customTrackBy(T){return T}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(T){this.keys.splice(T,1),this.values.splice(T,1)}updateAttribute(){const T={};for(let W=0;WW.defaultItemsShown),C.xp6(1),C.Q6J("ngIf",!W.readonly))},dependencies:[m.sg,m.O5,b._Y,b.Fj,b.JJ,b.JL,b.Q7,b.On,b.F,D.Hw,v.lW,R.gM,B.KE,w.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),pe})()},63167:(Xe,ue,p)=>{"use strict";p.d(ue,{_:()=>R});var e=p(94650),A=p(9244),C=p(21029),M=p(65412),m=p(24006),b=p(59549),D=p(284),v=p(64597);let R=(()=>{class B{constructor(L){this.dialog=L,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,A.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(L,O){const q=(0,A.kZ)();q.width="350px",q.data={value:L,title:O},this.dialog.open(C.mk,q)}}return B.\u0275fac=function(L){return new(L||B)(e.Y36(M.uw))},B.\u0275cmp=e.Xpm({type:B,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(L,O){1&L&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return O.readonly&&void 0!==O.value&&O.showValue(O.value,O.attribute.displayName)})("ngModelChange",function(ee){return O.attribute.value=ee})("keydown",function(){return O._sendEventToParent()}),e.ALo(2,"multiWordDataCy"),e.qZA()()),2&L&&(e.s9C("appearance",O.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",O.readonly&&void 0!==O.value),e.Q2q("data-cy","",e.lcZ(2,6,O.attribute.displayName),"-value"),e.Q6J("readonly",O.readonly)("ngModel",O.attribute.value))},dependencies:[m.Fj,m.JJ,m.On,b.KE,D.Nt,v.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),B})()},43532:(Xe,ue,p)=>{"use strict";p.d(ue,{M:()=>Le});var e=p(94650),A=p(28820),C=p(36895),M=p(38719),m=p(21963),b=p(63167),D=p(9244),v=p(21029),R=p(65412),B=p(24006),w=p(59549),L=p(284);let O=(()=>{class T{constructor(F){this.dialog=F,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,D.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(F){const V=(0,D.kZ)();V.width="350px",V.data={value:F.value,title:F.displayName},this.dialog.open(v.mk,V)}}return T.\u0275fac=function(F){return new(F||T)(e.Y36(R.uw))},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(F,V){1&F&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return V.readonly&&void 0!==V.attribute.value&&V.showValue(V.attribute)})("ngModelChange",function(Q){return V.attribute.value=Q})("keydown",function(){return V._sendEventToParent()}),e.qZA()()),2&F&&(e.s9C("appearance",V.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",V.readonly&&void 0!==V.attribute.value),e.Q6J("readonly",V.readonly)("ngModel",V.attribute.value))},dependencies:[B.Fj,B.wV,B.JJ,B.On,w.KE,L.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),T})();const q=["map"];function ee(T,W){if(1&T){const F=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-boolean",3),e.NdJ("sendEventToParent",function(){e.CHM(F);const te=e.oxw();return e.KtG(te._sendEventToParent2())}),e.qZA()}if(2&T){const F=e.oxw();e.Q6J("attribute",F.attribute)("readonly",F.readonly)}}function z(T,W){if(1&T){const F=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-list",3),e.NdJ("sendEventToParent",function(){e.CHM(F);const te=e.oxw();return e.KtG(te._sendEventToParent2())}),e.qZA()}if(2&T){const F=e.oxw();e.Q6J("attribute",F.attribute)("readonly",F.readonly)}}function ie(T,W){if(1&T&&e._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&T){const F=e.oxw();e.Q6J("attribute",F.attribute)("readonly",F.readonly)}}function Te(T,W){if(1&T){const F=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-string",3),e.NdJ("sendEventToParent",function(){e.CHM(F);const te=e.oxw();return e.KtG(te._sendEventToParent2())}),e.qZA()}if(2&T){const F=e.oxw();e.Q6J("attribute",F.attribute)("readonly",F.readonly)}}function pe(T,W){if(1&T){const F=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-integer",3),e.NdJ("sendEventToParent",function(){e.CHM(F);const te=e.oxw();return e.KtG(te._sendEventToParent2())}),e.qZA()}if(2&T){const F=e.oxw();e.Q6J("attribute",F.attribute)("readonly",F.readonly)}}let Le=(()=>{class T{constructor(){this.readonly=!1,this.sendEventToParent2=new e.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return T.\u0275fac=function(F){return new(F||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(F,V){if(1&F&&e.Gf(q,5),2&F){let te;e.iGM(te=e.CRH())&&(V.mapComponent=te.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(F,V){1&F&&(e.TgZ(0,"div"),e.YNc(1,ee,1,2,"perun-web-apps-attribute-value-boolean",0),e.YNc(2,z,1,2,"perun-web-apps-attribute-value-list",0),e.TgZ(3,"div",1),e.NdJ("click",function(){return V._sendEventToParent2()}),e.YNc(4,ie,2,2,"perun-web-apps-attribute-value-map",2),e.qZA(),e.YNc(5,Te,1,2,"perun-web-apps-attribute-value-string",0),e.YNc(6,pe,1,2,"perun-web-apps-attribute-value-integer",0),e.qZA()),2&F&&(e.xp6(1),e.Q6J("ngIf","java.lang.Boolean"===V.attribute.type),e.xp6(1),e.Q6J("ngIf","java.util.ArrayList"===V.attribute.type),e.xp6(2),e.Q6J("ngIf","java.util.LinkedHashMap"===V.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.String"===V.attribute.type||"java.lang.LargeString"===V.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.Integer"===V.attribute.type))},dependencies:[C.O5,M.u,m.H,A.$,b._,O]}),T})()},53984:(Xe,ue,p)=>{"use strict";p.d(ue,{p:()=>k});var e=p(96308),A=p(30671),C=p(95017),M=p(43532),m=p(9244),b=p(81591),D=p(94650),v=p(36895),R=p(56709),B=p(98380),w=p(10266),L=p(18750),O=p(89383);let q=(()=>{class N{transform(Z){return"virt"===Z.namespace.split(":")[4]}}return N.\u0275fac=function(Z){return new(Z||N)},N.\u0275pipe=D.Yjl({name:"isVirtualAttribute",type:N,pure:!0}),N})();var ee=p(64597),z=p(9185),ie=p(8231),Te=p(14849);function pe(N,be){if(1&N){const Z=D.EpF();D.TgZ(0,"th",18)(1,"mat-checkbox",19),D.NdJ("change",function(xe){D.CHM(Z);const ot=D.oxw(2);return D.KtG(xe?ot.masterToggle():null)}),D.ALo(2,"translate"),D.ALo(3,"masterCheckboxLabel"),D.qZA()()}if(2&N){const Z=D.oxw().ngIf,de=D.oxw();D.xp6(1),D.Q6J("checked",de.selection.hasValue()&&Z.all)("indeterminate",de.selection.hasValue()&&!Z.all)("aria-label",D.lcZ(2,3,D.lcZ(3,5,Z.all)))}}const Le=function(N){return{name:N}};function T(N,be){if(1&N){const Z=D.EpF();D.TgZ(0,"td",20)(1,"mat-checkbox",21),D.NdJ("click",function(xe){return xe.stopPropagation()})("change",function(xe){const Fe=D.CHM(Z).$implicit,ut=D.oxw(2);return D.KtG(xe?ut.selection.toggle(Fe):null)}),D.ALo(2,"multiWordDataCy"),D.ALo(3,"isVirtualAttribute"),D.ALo(4,"translate"),D.ALo(5,"checkboxLabel"),D.qZA()()}if(2&N){const Z=be.$implicit,de=D.oxw(2);D.xp6(1),D.Q2q("data-cy","",D.lcZ(2,4,Z.displayName),"-checkbox"),D.Q6J("checked",de.selection.isSelected(Z))("disabled",D.lcZ(3,6,Z)||!Z.writable)("aria-label",D.xi3(4,8,D.lcZ(5,11,de.selection.isSelected(Z)),D.VKq(13,Le,Z.displayName)))}}function W(N,be){1&N&&(D.ynx(0,15),D.YNc(1,pe,4,7,"th",16),D.YNc(2,T,6,15,"td",17),D.BQk())}function F(N,be){1&N&&(D.TgZ(0,"th",22),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&N&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function V(N,be){if(1&N&&(D.TgZ(0,"td",23),D._uU(1),D.qZA()),2&N){const Z=be.$implicit;D.xp6(1),D.Oqu(Z.id)}}function te(N,be){1&N&&(D.TgZ(0,"th",22),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&N&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function Q(N,be){if(1&N&&(D.TgZ(0,"td",24),D.ALo(1,"multiWordDataCy"),D.TgZ(2,"div",25),D._uU(3),D.qZA()()),2&N){const Z=be.$implicit,de=D.oxw();D.Q2q("data-cy","",D.lcZ(1,3,Z.friendlyName),"-friendlyName"),D.xp6(2),D.s9C("matTooltip",de.getAttributeFullName(Z)),D.xp6(1),D.hij(" ",Z.displayName," ")}}function Ee(N,be){1&N&&(D.TgZ(0,"th",26),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&N&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function ge(N,be){if(1&N){const Z=D.EpF();D.TgZ(0,"td",24)(1,"perun-web-apps-attribute-value",27),D.NdJ("sendEventToParent2",function(){const ot=D.CHM(Z).$implicit,Fe=D.oxw();return D.KtG(Fe.onValueChange(ot))}),D.qZA()()}if(2&N){const Z=be.$implicit,de=D.oxw();D.xp6(1),D.Q6J("attribute",Z)("readonly",de.readonly||!Z.writable)}}function ve(N,be){1&N&&(D.TgZ(0,"th",22),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&N&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function De(N,be){if(1&N&&(D.TgZ(0,"td",24),D._uU(1),D.qZA()),2&N){const Z=be.$implicit;D.xp6(1),D.Oqu(Z.description)}}function he(N,be){1&N&&D._UZ(0,"tr",28)}function Ye(N,be){if(1&N&&(D._UZ(0,"tr",29),D.ALo(1,"translate")),2&N){const Z=be.$implicit,de=D.oxw();D.s9C("matTooltip",D.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),D.Q6J("matTooltipPosition","before")("matTooltipDisabled",Z.writable||de.readonly)}}function Be(N,be){1&N&&(D.TgZ(0,"perun-web-apps-alert",30),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&N&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function se(N,be){if(1&N&&(D.TgZ(0,"perun-web-apps-alert",30),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&N){const Z=D.oxw();D.xp6(1),D.hij(" ",D.lcZ(2,1,Z.emptyListText),"\n")}}const le=function(N){return{all:N}};let k=(()=>{class N{constructor(Z,de){this.authResolver=Z,this.tableCheckbox=de,this.attributes=[],this.selection=new C.Ov(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=m.f7}set matSort(Z){this.sort=Z,this.setDataSource()}static canBeSelected(Z){return!(0,m.Hm)(Z)&&Z.writable}static getDataForColumn(Z,de){switch(de){case"id":return Z.id.toString();case"displayName":return Z.displayName;case"description":return Z.description;case"value":return JSON.stringify(Z.value);case"urn":return Z.namespace+":"+Z.baseFriendlyName;default:return""}}canBeSelected(Z){return!(0,m.Hm)(Z)&&Z.writable}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Z=>"id"!==Z)),this.dataSource=new A.by((0,m.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(Z){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,N.getDataForColumn),Z)}exportDisplayedData(Z){const de=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,xe=de+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(de,xe),this.displayedColumns,N.getDataForColumn),Z)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(Z=>!this.hiddenColumns.includes(Z)),this.dataSource&&(this.dataSource.filterPredicate=(Z,de)=>(0,m.Sd)(Z,de,this.displayedColumns.concat("urn"),N.getDataForColumn),this.dataSource.sortData=(Z,de)=>(0,m.pR)(Z,de,N.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,N.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,N.canBeSelected)}updateMapAttributes(){for(const Z of this.items.toArray())"java.util.LinkedHashMap"===Z.attribute.type&&Z.updateMapAttribute()}onValueChange(Z){N.canBeSelected(Z)&&this.selection.select(Z)}getAttributeFullName(Z){return`${Z.namespace}:${Z.friendlyName}`}}return N.\u0275fac=function(Z){return new(Z||N)(D.Y36(b.x4),D.Y36(b.UA))},N.\u0275cmp=D.Xpm({type:N,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(Z,de){if(1&Z&&(D.Gf(m.l9,7),D.Gf(e.YE,7),D.Gf(M.M,5)),2&Z){let xe;D.iGM(xe=D.CRH())&&(de.child=xe.first),D.iGM(xe=D.CRH())&&(de.matSort=xe.first),D.iGM(xe=D.CRH())&&(de.items=xe)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[D.TTD],decls:21,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","displayName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(Z,de){1&Z&&(D.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),D.NdJ("exportDisplayedData",function(ot){return de.exportDisplayedData(ot)})("exportAllData",function(ot){return de.exportAllData(ot)}),D.TgZ(2,"table",2),D.YNc(3,W,3,0,"ng-container",3),D.ALo(4,"isAllSelected"),D.ynx(5,4),D.YNc(6,F,3,3,"th",5),D.YNc(7,V,2,1,"td",6),D.BQk(),D.ynx(8,7),D.YNc(9,te,3,3,"th",5),D.YNc(10,Q,4,5,"td",8),D.BQk(),D.ynx(11,9),D.YNc(12,Ee,3,3,"th",10),D.YNc(13,ge,2,2,"td",8),D.BQk(),D.ynx(14,11),D.YNc(15,ve,3,3,"th",5),D.YNc(16,De,2,1,"td",8),D.BQk(),D.YNc(17,he,1,0,"tr",12),D.YNc(18,Ye,2,5,"tr",13),D.qZA()()(),D.YNc(19,Be,3,3,"perun-web-apps-alert",14),D.YNc(20,se,3,3,"perun-web-apps-alert",14)),2&Z&&(D.Q6J("hidden",0===de.dataSource.filteredData.length),D.xp6(1),D.Q6J("tableId",de.tableId)("dataLength",de.dataSource.filteredData.length)("pageSizeOptions",de.pageSizeOptions),D.xp6(1),D.Q6J("dataSource",de.dataSource),D.xp6(1),D.Q6J("ngIf",D.VKq(14,le,D.Dn7(4,10,de.dataSource,de.selection.selected.length,de.canBeSelected))),D.xp6(14),D.Q6J("matHeaderRowDef",de.displayedColumns),D.xp6(1),D.Q6J("matRowDefColumns",de.displayedColumns),D.xp6(1),D.Q6J("ngIf",0===de.dataSource.filteredData.length&&0!==de.dataSource.data.length),D.xp6(1),D.Q6J("ngIf",0===de.dataSource.data.length))},dependencies:[v.O5,R.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,e.YE,e.nU,B.w,w.gM,L.l,M.M,O.X$,q,ee.R,z.I,ie.G,Te.r],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),N})()},4235:(Xe,ue,p)=>{"use strict";p.d(ue,{W:()=>R});var e=p(81591),A=p(94650),C=p(36895),M=p(97392),m=p(4859),b=p(10266),D=p(89383);const v=function(B){return{color:B}};let R=(()=>{class B{constructor(L,O){this.location=L,this.storeService=O}ngOnInit(){this.backButtonColor=this.storeService.getProperty("theme").back_button_color}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return B.\u0275fac=function(L){return new(L||B)(A.Y36(C.Ye),A.Y36(e.d6))},B.\u0275cmp=A.Xpm({type:B,selectors:[["perun-web-apps-back-button"]],decls:4,vars:6,consts:[["mat-stroked-button","",1,"mb-2","mt-2",3,"ngStyle","matTooltip","click"],[1,"rotate"]],template:function(L,O){1&L&&(A.TgZ(0,"button",0),A.NdJ("click",function(){return O.goBack()}),A.ALo(1,"translate"),A.TgZ(2,"mat-icon",1),A._uU(3,"arrow_right_alt"),A.qZA()()),2&L&&(A.s9C("matTooltip",A.lcZ(1,2,"Back")),A.Q6J("ngStyle",A.VKq(4,v,O.backButtonColor)))},dependencies:[C.PC,M.Hw,m.lW,b.gM,D.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),B})()},91880:(Xe,ue,p)=>{"use strict";p.d(ue,{s:()=>Ae});var e=p(94650),A=p(9244),C=p(95017),M=p(81591),m=p(30671),b=p(96308),D=p(19516),v=p(36895),R=p(29926),B=p(56709),w=p(98380),L=p(97392),O=p(4859),q=p(18750),ee=p(89383),z=p(31359),ie=p(9185),Te=p(8231),pe=p(14849);let Le=(()=>{class ye{constructor(Se){this.authResolver=Se}transform(Se,Ne){return this.authResolver.isAuthorized(Ne,[Se])}}return ye.\u0275fac=function(Se){return new(Se||ye)(e.Y36(M.x4,16))},ye.\u0275pipe=e.Yjl({name:"isAuthorized",type:ye,pure:!0}),ye})();function T(ye,_e){if(1&ye){const Se=e.EpF();e.TgZ(0,"mat-checkbox",24),e.NdJ("change",function(Ce){e.CHM(Se);const fe=e.oxw(2).ngIf,r=e.oxw();return e.KtG(Ce?r.masterToggle(fe.all):null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&ye){const Se=e.oxw(2).ngIf,Ne=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,Se.all)))("checked",Ne.selection.hasValue()&&Se.all)("indeterminate",Ne.selection.hasValue()&&!Se.all)}}function W(ye,_e){if(1&ye&&(e.TgZ(0,"th",22),e.YNc(1,T,3,7,"mat-checkbox",23),e.qZA()),2&ye){const Se=e.oxw(2);e.xp6(1),e.Q6J("ngIf",Se.selection.isMultipleSelection())}}const F=function(ye){return{name:ye}};function V(ye,_e){if(1&ye){const Se=e.EpF();e.TgZ(0,"td",25)(1,"mat-checkbox",26),e.NdJ("change",function(){const fe=e.CHM(Se).$implicit,r=e.oxw(2);return e.KtG(r.toggle(fe))})("click",function(Ce){return Ce.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.qZA()()}if(2&ye){const Se=_e.$implicit,Ne=e.oxw(2);e.xp6(1),e.Q6J("aria-label",e.xi3(2,2,e.lcZ(3,5,Ne.selection.isSelected(Se)),e.VKq(7,F,Se.name)))("checked",Ne.selection.isSelected(Se))}}function te(ye,_e){1&ye&&(e.ynx(0,19),e.YNc(1,W,2,1,"th",20),e.YNc(2,V,4,9,"td",21),e.BQk())}function Q(ye,_e){1&ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.BAN_ID_HEADER")," "))}function Ee(ye,_e){if(1&ye&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&ye){const Se=_e.$implicit;e.xp6(1),e.Oqu(Se.ban.id)}}const ge=function(ye){return{target:ye}};function ve(ye,_e){if(1&ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye){const Se=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.TARGET_ID_HEADER",e.VKq(4,ge,Se.target))," ")}}function De(ye,_e){if(1&ye&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&ye){const Se=_e.$implicit;e.xp6(1),e.Oqu(Se.ban.targetId)}}function he(ye,_e){if(1&ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye){const Se=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.TARGET_NAME_HEADER",e.VKq(4,ge,Se.target))," ")}}function Ye(ye,_e){if(1&ye&&(e.TgZ(0,"td",29),e._uU(1),e.qZA()),2&ye){const Se=_e.$implicit;let Ne;e.xp6(1),e.hij(" ",null!==(Ne=null!==(Ne=null==Se||null==Se.vo?null:Se.vo.name)&&void 0!==Ne?Ne:null==Se||null==Se.facility?null:Se.facility.name)&&void 0!==Ne?Ne:null==Se||null==Se.resource?null:Se.resource.name," ")}}const Be=function(ye){return{subject:ye}};function se(ye,_e){if(1&ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye){const Se=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.SUBJECT_ID_HEADER",e.VKq(4,Be,Se.subject))," ")}}function le(ye,_e){if(1&ye&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&ye){const Se=_e.$implicit;e.xp6(1),e.Oqu(Se.ban.subjectId)}}function k(ye,_e){if(1&ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye){const Se=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.SUBJECT_NAME_HEADER",e.VKq(4,Be,Se.subject))," ")}}function N(ye,_e){if(1&ye&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&ye){const Se=_e.$implicit;let Ne;e.xp6(1),e.hij(" ",e.lcZ(2,1,null!==(Ne=Se.user)&&void 0!==Ne?Ne:Se.member.user)," ")}}function be(ye,_e){1&ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.DESCRIPTION_HEADER")," "))}function Z(ye,_e){if(1&ye&&(e.TgZ(0,"td",29),e._uU(1),e.qZA()),2&ye){const Se=_e.$implicit;e.xp6(1),e.Oqu(Se.ban.description)}}function de(ye,_e){1&ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.EXPIRATION_HEADER")," "))}function xe(ye,_e){if(1&ye&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"date"),e.qZA()),2&ye){const Se=_e.$implicit,Ne=e.oxw();e.xp6(1),e.hij(" ",Se.ban.validityTo===Ne.EXPIRE_NEVER?"never":e.xi3(2,1,Se.ban.validityTo,"dd-MM-yyyy")," ")}}function ot(ye,_e){1&ye&&e._UZ(0,"th",30)}function Fe(ye,_e){if(1&ye){const Se=e.EpF();e.TgZ(0,"button",32),e.NdJ("click",function(){e.CHM(Se);const Ce=e.oxw().$implicit,fe=e.oxw();return e.KtG(fe.updateBan.emit(Ce))}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function ut(ye,_e){if(1&ye&&(e.TgZ(0,"td",29),e.YNc(1,Fe,3,0,"button",31),e.ALo(2,"isAuthorized"),e.qZA()),2&ye){const Se=_e.$implicit,Ne=e.oxw();let Ce;e.xp6(1),e.Q6J("ngIf",e.xi3(2,1,null!==(Ce=null!==(Ce=Se.vo)&&void 0!==Ce?Ce:Se.resource)&&void 0!==Ce?Ce:Se.facility,Ne.updatePolicy))}}function tt(ye,_e){1&ye&&e._UZ(0,"tr",33)}function vt(ye,_e){1&ye&&e._UZ(0,"tr",34)}function X(ye,_e){1&ye&&(e.TgZ(0,"perun-web-apps-alert",35),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.NO_BANS"),"\n"))}const nt=function(ye){return{all:ye}};let Ae=(()=>{class ye{constructor(Se,Ne,Ce){this.tableCheckbox=Se,this.authResolver=Ne,this.userName=Ce,this.selection=new C.Ov(!1,[]),this.pageSizeOptions=A.f7,this.columns=["select","banId","targetId","targetName","subjectId","subjectName","description","expiration","edit"],this.updateBan=new e.vpe,this.EXPIRE_NEVER=R.R,this.getDataForColumn=(fe,r)=>{const u=this.isFacilityBan(fe)?fe.facility:this.isResourceBan(fe)?fe.resource:fe.vo,_=this.isFacilityBan(fe)?fe.user:fe.member,E=this.isFacilityBan(fe)?fe.user:fe.member.user;switch(r){case"banId":return String(fe.ban.id);case"targetId":return String(u.id);case"targetName":return u.name;case"subjectId":return String(_.id);case"subjectName":return this.userName.transform(E);case"description":return fe.ban.description;case"expiration":return Number(fe.ban.validityTo)===this.EXPIRE_NEVER?"never":(0,v.p6)(fe.ban.validityTo,"dd-MM-yyy","en");default:return""}}}set bans(Se){this.dataSource||this.dataSourceInit(Se),0!==Se.length&&this.setHeaderLabels(Se[0]),this.dataSource.data=Se}set filter(Se){this.dataSource.filter=Se}set displayedColumns(Se){this.authResolver.isPerunAdminOrObserver()||(Se=Se.filter(Ne=>!Ne.endsWith("Id"))),this.columns=Se}exportAllData(Se){(0,A.O6)((0,A.Xn)(this.dataSource.filteredData,this.columns,this.getDataForColumn),Se)}exportDisplayedData(Se){const Ne=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Ce=Ne+this.dataSource.paginator.pageSize;(0,A.O6)((0,A.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ne,Ce),this.columns,this.getDataForColumn),Se)}toggle(Se){this.selection.toggle(Se)}masterToggle(Se){this.tableCheckbox.masterToggle(Se,this.selection,this.dataSource.filter,this.dataSource,this.dataSource.sort,this.dataSource.paginator.pageSize,this.dataSource.paginator.pageIndex,!1)}dataSourceInit(Se){this.dataSource=new m.by(Se),this.dataSource.sort=this.sort,this.dataSource.paginator=this.tableWrapper.paginator,this.dataSource.filterPredicate=(Ne,Ce)=>(0,A.Sd)(Ne,Ce,this.columns,this.getDataForColumn,!0),this.dataSource.sortData=(Ne,Ce)=>(0,A.pR)(Ne,Ce,this.getDataForColumn)}isFacilityBan(Se){return"facility"in Se}isResourceBan(Se){return"resource"in Se}setHeaderLabels(Se){this.isFacilityBan(Se)?(this.target="Facility",this.subject="User"):this.isResourceBan(Se)?(this.target="Resource",this.subject="Member"):(this.target="Organization",this.subject="Member")}}return ye.\u0275fac=function(Se){return new(Se||ye)(e.Y36(M.UA),e.Y36(M.x4),e.Y36(D.dp))},ye.\u0275cmp=e.Xpm({type:ye,selectors:[["perun-web-apps-ban-on-entity-list"]],viewQuery:function(Se,Ne){if(1&Se&&(e.Gf(A.l9,7),e.Gf(b.YE,7)),2&Se){let Ce;e.iGM(Ce=e.CRH())&&(Ne.tableWrapper=Ce.first),e.iGM(Ce=e.CRH())&&(Ne.sort=Ce.first)}},inputs:{selection:"selection",tableId:"tableId",updatePolicy:"updatePolicy",pageSizeOptions:"pageSizeOptions",columns:"columns",bans:"bans",filter:"filter",displayedColumns:"displayedColumns"},outputs:{updateBan:"updateBan"},features:[e._Bn([D.dp])],decls:32,vars:14,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","banId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","targetId"],["matColumnDef","targetName"],["mat-cell","",4,"matCellDef"],["matColumnDef","subjectId"],["matColumnDef","subjectName"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","edit"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(Se,Ne){1&Se&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(fe){return Ne.exportDisplayedData(fe)})("exportAllData",function(fe){return Ne.exportAllData(fe)}),e.TgZ(2,"table",2),e.YNc(3,te,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,Q,3,3,"th",5),e.YNc(7,Ee,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,ve,3,6,"th",5),e.YNc(10,De,2,1,"td",6),e.BQk(),e.ynx(11,8),e.YNc(12,he,3,6,"th",5),e.YNc(13,Ye,2,1,"td",9),e.BQk(),e.ynx(14,10),e.YNc(15,se,3,6,"th",5),e.YNc(16,le,2,1,"td",6),e.BQk(),e.ynx(17,11),e.YNc(18,k,3,6,"th",5),e.YNc(19,N,3,3,"td",9),e.BQk(),e.ynx(20,12),e.YNc(21,be,3,3,"th",5),e.YNc(22,Z,2,1,"td",9),e.BQk(),e.ynx(23,13),e.YNc(24,de,3,3,"th",5),e.YNc(25,xe,3,4,"td",9),e.BQk(),e.ynx(26,14),e.YNc(27,ot,1,0,"th",15),e.YNc(28,ut,3,4,"td",9),e.BQk(),e.YNc(29,tt,1,0,"tr",16),e.YNc(30,vt,1,0,"tr",17),e.qZA()()(),e.YNc(31,X,3,3,"perun-web-apps-alert",18)),2&Se&&(e.Q6J("hidden",0===Ne.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",Ne.dataSource.filteredData.length)("tableId",Ne.tableId)("pageSizeOptions",Ne.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",Ne.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(12,nt,e.xi3(4,9,Ne.dataSource,Ne.selection.selected.length))),e.xp6(26),e.Q6J("matHeaderRowDef",Ne.columns),e.xp6(1),e.Q6J("matRowDefColumns",Ne.columns),e.xp6(1),e.Q6J("ngIf",0===Ne.dataSource.filteredData.length))},dependencies:[v.O5,B.oG,m.BZ,m.fO,m.as,m.w1,m.Dz,m.nj,m.ge,m.ev,m.XQ,m.Gk,b.YE,b.nU,w.w,L.Hw,O.lW,q.l,v.uU,ee.X$,z.d,ie.I,Te.G,pe.r,Le]}),ye})()},29926:(Xe,ue,p)=>{"use strict";p.d(ue,{C:()=>B,R:()=>R});var e=p(24006),A=p(36895),C=p(94650),M=p(59549),m=p(284),b=p(99602),D=p(71948),v=p(89383);const R=new Date(324721404e5).valueOf();let B=(()=>{class w{constructor(){this.minDate=new Date,this.validityControl=new e.NI(null),this.descriptionControl=new e.NI("")}set validity(O){this.newValidity=O&&Number(new Date(O))!==R?this.parseDate(O):"never",this.validityControl.setValue("never"!==this.newValidity?this.newValidity:this.parseDate(new Date))}set description(O){this.descriptionControl.setValue(O)}getDescription(){return this.descriptionControl.value}getValidity(){return"never"!==this.newValidity&&this.validityControl.value?this.parseDate(this.validityControl.value):null}parseDate(O){return(0,A.p6)(O,"yyyy-MM-dd","en")}}return w.\u0275fac=function(O){return new(O||w)},w.\u0275cmp=C.Xpm({type:w,selectors:[["perun-web-apps-ban-specification"]],inputs:{validity:"validity",description:"description"},decls:18,vars:18,consts:[[1,"d-flex","flex-column",3,"ngModel","ngModelChange"],[3,"value"],["color","primary",1,"cursor-pointer","mt-2",3,"click"],["readonly","","matInput","",1,"disabl",3,"formControl","min","matDatepicker"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["value","never"],[1,"mt-3"],[1,"w-100","mt-2"],["matInput","","rows","5",3,"formControl","placeholder"]],template:function(O,q){if(1&O){const ee=C.EpF();C.TgZ(0,"div")(1,"mat-radio-group",0),C.NdJ("ngModelChange",function(ie){return q.newValidity=ie}),C.TgZ(2,"mat-radio-button",1)(3,"mat-form-field",2),C.NdJ("click",function(){C.CHM(ee);const ie=C.MAs(10);return C.KtG(ie.open())}),C.TgZ(4,"mat-label"),C._uU(5),C.ALo(6,"translate"),C.qZA(),C._UZ(7,"input",3)(8,"mat-datepicker-toggle",4)(9,"mat-datepicker",5,6),C.qZA()(),C.TgZ(11,"mat-radio-button",7),C._uU(12),C.ALo(13,"translate"),C.qZA()()(),C.TgZ(14,"div",8)(15,"mat-form-field",9),C._UZ(16,"textarea",10),C.ALo(17,"translate"),C.qZA()()}if(2&O){const ee=C.MAs(10);C.xp6(1),C.Q6J("ngModel",q.newValidity),C.xp6(1),C.s9C("value",q.validityControl.value),C.xp6(3),C.hij(" ",C.lcZ(6,12,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.VALIDITY")," "),C.xp6(2),C.Q6J("formControl",q.validityControl)("min",q.minDate)("matDatepicker",ee),C.xp6(1),C.Q6J("for",ee)("disabled",!1),C.xp6(1),C.Q6J("disabled",!1),C.xp6(3),C.hij(" ",C.lcZ(13,14,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.NEVER")," "),C.xp6(4),C.s9C("placeholder",C.lcZ(17,16,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.DESCRIPTION")),C.Q6J("formControl",q.descriptionControl)}},dependencies:[e.Fj,e.JJ,e.On,M.KE,M.hX,M.R9,e.oH,m.Nt,b.Mq,b.hl,b.nW,D.VQ,D.U0,v.X$]}),w})()},61880:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>B});var e=p(65412),A=p(94650),C=p(36895),M=p(4859),m=p(12488),b=p(93057),D=p(89383);function v(w,L){if(1&w){const O=A.EpF();A.TgZ(0,"perun-web-apps-member-overview-membership",4),A.NdJ("statusChanged",function(ee){A.CHM(O);const z=A.oxw();return A.KtG(z.statusChanged=ee)}),A.qZA()}if(2&w){const O=A.oxw();A.Q6J("member",O.member)("voId",O.voId)("openedInDialog",!0)}}function R(w,L){if(1&w){const O=A.EpF();A.TgZ(0,"perun-web-apps-member-overview-groups",4),A.NdJ("statusChanged",function(ee){A.CHM(O);const z=A.oxw();return A.KtG(z.statusChanged=ee)}),A.qZA()}if(2&w){const O=A.oxw();A.Q6J("member",O.member)("voId",O.voId)("openedInDialog",!0)}}let B=(()=>{class w{constructor(O,q){this.dialogRef=O,this.data=q,this.statusChanged=!1}ngOnInit(){this.theme=this.data.groupId?"group-theme":"vo-theme",this.voId=this.data.voId,this.groupId=this.data.groupId,this.member=this.data.member}cancel(){this.statusChanged?this.dialogRef.close():this.dialogRef.close("closedWithoutChange")}}return w.\u0275fac=function(O){return new(O||w)(A.Y36(e.so),A.Y36(e.WI))},w.\u0275cmp=A.Xpm({type:w,selectors:[["perun-web-apps-change-member-status-or-expiration-dialog"]],decls:8,vars:8,consts:[["mat-dialog-content","",1,"dialog-container"],[3,"member","voId","openedInDialog","statusChanged",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"member","voId","openedInDialog","statusChanged"]],template:function(O,q){1&O&&(A.TgZ(0,"div")(1,"div",0),A.YNc(2,v,1,3,"perun-web-apps-member-overview-membership",1),A.YNc(3,R,1,3,"perun-web-apps-member-overview-groups",1),A.qZA(),A.TgZ(4,"div",2)(5,"button",3),A.NdJ("click",function(){return q.cancel()}),A._uU(6),A.ALo(7,"translate"),A.qZA()()()),2&O&&(A.Tol(q.theme),A.xp6(2),A.Q6J("ngIf",!q.groupId),A.xp6(1),A.Q6J("ngIf",q.groupId),A.xp6(3),A.hij(" ",A.lcZ(7,6,"DIALOGS.CHANGE_STATUS.CANCEL")," "))},dependencies:[C.O5,M.lW,e.xY,e.H8,m.b,b.z,D.X$]}),w})()},61150:(Xe,ue,p)=>{"use strict";p.d(ue,{r:()=>L});var e=p(94650),A=p(24006),C=p(81591),M=p(36895),m=p(56709),b=p(59549),D=p(284),v=p(82322),R=p(89383);function B(O,q){if(1&O){const ee=e.EpF();e.TgZ(0,"mat-checkbox",7),e.NdJ("change",function(){e.CHM(ee);const ie=e.oxw();return e.KtG(ie.emitAsSubGroup())})("ngModelChange",function(ie){e.CHM(ee);const Te=e.oxw();return e.KtG(Te.asSubgroup=ie)}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&O){const ee=e.oxw();e.Q6J("labelPosition","before")("ngModel",ee.asSubgroup),e.xp6(1),e.hij(" ",e.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function w(O,q){if(1&O){const ee=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(ie){e.CHM(ee);const Te=e.oxw();return e.KtG(Te.emitParentGroup(ie))}),e.qZA()}if(2&O){const ee=e.oxw();e.Q6J("disableAutoSelect",!0)("groups",ee.voGroups)}}let L=(()=>{class O{constructor(ee){this.store=ee,this.parentGroup=null,this.voGroups=[],this.nameChanged=new e.vpe,this.descriptionChanged=new e.vpe,this.parentGroupChanged=new e.vpe,this.asSubgroupChanged=new e.vpe,this.asSubgroup=!1,this.invalidNameMessage=this.store.getProperty("group_name_error_message"),this.secondaryRegex=this.store.getProperty("group_name_secondary_regex")}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new A.p4("",[A.kI.required,A.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),A.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new A.p4("",[A.kI.required,A.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(ee=>"members"!==ee.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(ee){this.selectedParent=ee,this.parentGroupChanged.emit(ee)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return O.\u0275fac=function(ee){return new(ee||O)(e.Y36(C.d6))},O.\u0275cmp=e.Xpm({type:O,selectors:[["perun-web-apps-create-group-form"]],inputs:{parentGroup:"parentGroup",voGroups:"voGroups"},outputs:{nameChanged:"nameChanged",descriptionChanged:"descriptionChanged",parentGroupChanged:"parentGroupChanged",asSubgroupChanged:"asSubgroupChanged"},decls:17,vars:16,consts:[[1,"dialog-container"],[3,"keyup"],[1,"w-100"],["matInput","","required","",3,"formControl","placeholder"],[1,"mt-4",3,"keyup"],[3,"labelPosition","ngModel","change","ngModelChange",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],[3,"labelPosition","ngModel","change","ngModelChange"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(ee,z){1&ee&&(e.TgZ(0,"div",0)(1,"mat-form-field",1),e.NdJ("keyup",function(){return z.emitName()}),e.TgZ(2,"label",2),e._UZ(3,"input",3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-error"),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"mat-form-field",4),e.NdJ("keyup",function(){return z.emitDescription()}),e.TgZ(9,"label",2),e._UZ(10,"textarea",3),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"mat-error"),e._uU(13),e.ALo(14,"translate"),e.qZA()(),e.YNc(15,B,3,5,"mat-checkbox",5),e.YNc(16,w,1,2,"perun-web-apps-group-search-select",6),e.qZA()),2&ee&&(e.xp6(3),e.s9C("placeholder",e.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),e.Q6J("formControl",z.nameControl),e.xp6(3),e.hij(" ",z.invalidNameMessage.length?z.invalidNameMessage:e.lcZ(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),e.xp6(4),e.s9C("placeholder",e.lcZ(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),e.Q6J("formControl",z.descriptionControl),e.xp6(3),e.hij(" ",e.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),e.xp6(2),e.Q6J("ngIf",z.isNotSubGroup),e.xp6(1),e.Q6J("ngIf",z.asSubgroup))},dependencies:[M.O5,m.oG,A.Fj,A.JJ,A.Q7,A.On,b.TO,b.KE,A.oH,D.Nt,v.h,R.X$]}),O})()},39798:(Xe,ue,p)=>{"use strict";p.d(ue,{S:()=>D});var e=p(94650),A=p(24006),C=p(59549),M=p(284),m=p(99602),b=p(89383);let D=(()=>{class v{constructor(){this.datePicker=new e.vpe}ngOnInit(){this.startMinDate=new Date(2e3,0,1),this.endMaxDate=new Date,this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}dateChange(){this.datePicker.emit(),this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}}return v.\u0275fac=function(B){return new(B||v)},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},outputs:{datePicker:"datePicker"},decls:16,vars:16,consts:[["appearance","standard",1,"mr-2",3,"click"],["matInput","","readonly","",3,"matDatepicker","min","max","formControl","dateChange"],["matSuffix","",3,"for"],["datePickerStart",""],["appearance","standard",3,"click"],["datePickerEnd",""]],template:function(B,w){if(1&B){const L=e.EpF();e.TgZ(0,"mat-form-field",0),e.NdJ("click",function(){e.CHM(L);const q=e.MAs(7);return e.KtG(q.open())}),e.TgZ(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"input",1),e.NdJ("dateChange",function(){return w.dateChange()}),e.qZA(),e._UZ(5,"mat-datepicker-toggle",2)(6,"mat-datepicker",null,3),e.qZA(),e.TgZ(8,"mat-form-field",4),e.NdJ("click",function(){e.CHM(L);const q=e.MAs(15);return e.KtG(q.open())}),e.TgZ(9,"mat-label"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"input",1),e.NdJ("dateChange",function(){return w.dateChange()}),e.qZA(),e._UZ(13,"mat-datepicker-toggle",2)(14,"mat-datepicker",null,5),e.qZA()}if(2&B){const L=e.MAs(7),O=e.MAs(15);e.xp6(2),e.Oqu(e.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),e.xp6(2),e.Q6J("matDatepicker",L)("min",w.startMinDate)("max",w.startMaxDate)("formControl",w.startDate),e.xp6(1),e.Q6J("for",L),e.xp6(5),e.Oqu(e.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),e.xp6(2),e.Q6J("matDatepicker",O)("min",w.endMinDate)("max",w.endMaxDate)("formControl",w.endDate),e.xp6(1),e.Q6J("for",O)}},dependencies:[A.Fj,A.JJ,C.KE,C.hX,C.R9,A.oH,M.Nt,m.Mq,m.hl,m.nW,b.X$]}),v})()},64901:(Xe,ue,p)=>{"use strict";p.d(ue,{P:()=>w});var e=p(94650),A=p(54968),C=p(54004),M=p(78372),m=p(71884),b=p(24006),D=p(59549),v=p(284),R=p(89383);const B=["input"];let w=(()=>{class L{constructor(){this.autoFocus=!1,this.control=new b.p4,this.filter=new e.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),(0,A.R)(this.input.nativeElement,"keyup").pipe((0,C.U)(q=>q.target.value),(0,M.b)(500),(0,m.x)()).subscribe(q=>{this.control.invalid||this.filter.emit(q)})}}return L.\u0275fac=function(q){return new(q||L)},L.\u0275cmp=e.Xpm({type:L,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(q,ee){if(1&q&&e.Gf(B,7),2&q){let z;e.iGM(z=e.CRH())&&(ee.input=z.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","","data-cy","filter-input",3,"placeholder","formControl"],["input",""]],template:function(q,ee){1&q&&(e.TgZ(0,"mat-form-field",0),e._UZ(1,"input",1,2),e.ALo(3,"translate"),e.TgZ(4,"mat-error"),e._uU(5),e.qZA()()),2&q&&(e.xp6(1),e.s9C("placeholder",e.lcZ(3,3,ee.placeholder)),e.Q6J("formControl",ee.control),e.xp6(4),e.hij(" ",ee.error," "))},dependencies:[b.Fj,b.JJ,D.TO,D.KE,b.oH,v.Nt,R.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),L})()},89593:(Xe,ue,p)=>{"use strict";p.d(ue,{i:()=>F});var e=p(94650),A=p(24006),C=p(4707),M=p(77579),m=p(82722),b=p(36895),D=p(59549),v=p(3238),R=p(84385),B=p(33231),w=p(67376),L=p(97392),O=p(4859),q=p(89383);let ee=(()=>{class V{constructor(){this.deselect=new e.vpe}onClickButton(Q){this.deselect.emit(Q)}}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275cmp=e.Xpm({type:V,selectors:[["perun-web-apps-deselect-button"]],outputs:{deselect:"deselect"},decls:5,vars:3,consts:[["mat-stroked-button","","data-cy","deselect-button",1,"mr-2","button-main",3,"click"]],template:function(Q,Ee){1&Q&&(e.TgZ(0,"button",0),e.NdJ("click",function(ve){return Ee.onClickButton(ve)}),e.TgZ(1,"mat-icon"),e._uU(2,"filter_list_off"),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.qZA()),2&Q&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},dependencies:[L.Hw,O.lW,q.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),V})();const z=["scrollViewport"];function ie(V,te){if(1&V&&(e.TgZ(0,"mat-select-trigger"),e._uU(1),e.qZA()),2&V){const Q=e.oxw();e.xp6(1),e.hij(" ",Q.multipleSelectedText()," ")}}function Te(V,te){if(1&V&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&V){const Q=e.oxw(2);e.Tol(Q.colorByStatus(null==Q.entitiesCtrl?null:Q.entitiesCtrl.value)),e.xp6(1),e.hij(" ",Q.statusTextFunction(null==Q.entitiesCtrl?null:Q.entitiesCtrl.value)?"("+Q.statusTextFunction(null==Q.entitiesCtrl?null:Q.entitiesCtrl.value)+")":""," ")}}function pe(V,te){if(1&V){const Q=e.EpF();e.TgZ(0,"mat-option",10),e.NdJ("onSelectionChange",function(ge){e.CHM(Q);const ve=e.oxw();return e.KtG(ve.onChange(ge))}),e._uU(1),e.TgZ(2,"span",11),e._uU(3),e.qZA(),e.YNc(4,Te,2,4,"span",12),e.qZA()}if(2&V){const Q=e.oxw();e.Q6J("value",null==Q.entitiesCtrl?null:Q.entitiesCtrl.value),e.xp6(1),e.hij(" ",Q.mainTextFunction(null==Q.entitiesCtrl?null:Q.entitiesCtrl.value)," "),e.xp6(2),e.Oqu(Q.secondaryTextFunction(null==Q.entitiesCtrl?null:Q.entitiesCtrl.value)),e.xp6(1),e.Q6J("ngIf",Q.displayStatus)}}function Le(V,te){if(1&V&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&V){const Q=e.oxw().$implicit,Ee=e.oxw();e.Tol(Ee.colorByStatus(Q)),e.xp6(1),e.hij(" ",Ee.statusTextFunction(Q)?"("+Ee.statusTextFunction(Q)+")":""," ")}}function T(V,te){if(1&V){const Q=e.EpF();e.TgZ(0,"mat-option",13),e.NdJ("onSelectionChange",function(ge){e.CHM(Q);const ve=e.oxw();return e.KtG(ve.onChange(ge))}),e._uU(1),e.TgZ(2,"span",11),e._uU(3),e.qZA(),e.YNc(4,Le,2,4,"span",12),e.qZA()}if(2&V){const Q=te.$implicit,Ee=e.oxw();e.Tol(Ee.theme),e.Q6J("value",Q),e.xp6(1),e.hij(" ",Ee.mainTextFunction(Q)," "),e.xp6(2),e.Oqu(Ee.secondaryTextFunction(Q)),e.xp6(1),e.Q6J("ngIf",Ee.displayStatus)}}function W(V,te){if(1&V){const Q=e.EpF();e.TgZ(0,"perun-web-apps-deselect-button",14),e.NdJ("deselect",function(){e.CHM(Q);const ge=e.oxw();return e.KtG(ge.deselectEvent())}),e.qZA()}}let F=(()=>{class V{constructor(Q){this.cd=Q,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.displayStatus=!1,this.multiple=!1,this.theme="",this.shouldRefresh=!1,this.entitySelected=new e.vpe,this.selectClosed=new e.vpe,this.visibleDeselectButton=!1,this.selectedEntities=[],this.entitiesCtrl=new A.p4,this.entityFilterCtrl=new A.p4,this.filteredEntities=new C.t(1),this._onDestroy=new M.x,this.entitiesLen=0,this.mainTextFunction=Ee=>JSON.stringify(Ee),this.secondaryTextFunction=Ee=>"#".concat(String(Ee.id),Ee.description?" ".concat(Ee.description):""),this.statusTextFunction=Ee=>Ee.status}ngOnInit(){!this.disableAutoSelect&&null===this.entity&&this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(Q=>this.entitiesLen=Q.length),this.entityFilterCtrl.valueChanges.pipe((0,m.R)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}colorByStatus(Q){switch(Q.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}ngOnChanges(Q){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),Q.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}normalize(Q){return Q.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}onChange(Q){if(Q.isUserInput){const Ee=Q.source.value;if(this.multiple){if(this.selectedEntities.includes(Ee)){const ge=this.selectedEntities.indexOf(Ee);this.selectedEntities.splice(ge,1)}else this.selectedEntities.push(Ee);this.entitiesCtrl.setValue(this.selectedEntities),this.entitySelected.emit(this.selectedEntities)}else this.entitySelected.emit(Ee)}this.visibleDeselectButton=0!==this.selectedEntities.length}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}closeChange(){this.selectClosed.emit(!0)}getViewportHeight(){let Q=48*this.entitiesLen;return Q>192&&(Q=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),Q}multipleSelectedText(){const Q=this.entitiesCtrl.value;if(Q&&0!==Q.length)return Q.length===this.entities.length?"ALL":Q.length>1?this.mainTextFunction(Q[0])+` + ${Q.length-1} other(s)`:this.mainTextFunction(Q[0])+" "+this.secondaryTextFunction(Q[0])}filterEntites(){if(!this.entities)return;let Q=this.entityFilterCtrl.value;if(!Q)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();Q=this.normalize(Q),this.filteredEntities.next(this.entities.filter(Ee=>this.normalize(this.searchFunction(Ee)).includes(Q))),this.cd.detectChanges()}deselectEvent(){this.visibleDeselectButton=!1,this.selectedEntities=[],this.entitiesCtrl.setValue([]),this.entitySelected.emit([]),this.selectClosed.emit(!0)}}return V.\u0275fac=function(Q){return new(Q||V)(e.Y36(e.sBO))},V.\u0275cmp=e.Xpm({type:V,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(Q,Ee){if(1&Q&&e.Gf(z,5),2&Q){let ge;e.iGM(ge=e.CRH())&&(Ee.scrollViewport=ge.first)}},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",displayStatus:"displayStatus",multiple:"multiple",theme:"theme",shouldRefresh:"shouldRefresh",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected",selectClosed:"selectClosed"},features:[e.TTD],decls:12,vars:17,consts:[[1,"d-flex","flex-row","align-items-center","gap-4"],[1,"w-100","pb-0"],["data-cy","search-select-input",3,"placeholder","formControl","multiple","openedChange","closed"],[4,"ngIf"],["data-cy","find-input",3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value","onSelectionChange",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"class","value","onSelectionChange",4,"cdkVirtualFor","cdkVirtualForOf"],["class","ml-2",3,"deselect",4,"ngIf"],[1,"selected-options-bottom",3,"value","onSelectionChange"],[1,"text-muted"],[3,"class",4,"ngIf"],[3,"value","onSelectionChange"],[1,"ml-2",3,"deselect"]],template:function(Q,Ee){1&Q&&(e.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-select",2),e.NdJ("openedChange",function(){return Ee.openChange()})("closed",function(){return Ee.closeChange()}),e.YNc(3,ie,2,1,"mat-select-trigger",3),e.TgZ(4,"mat-option"),e._UZ(5,"ngx-mat-select-search",4),e.qZA(),e.YNc(6,pe,5,4,"mat-option",5),e.TgZ(7,"cdk-virtual-scroll-viewport",6,7),e.YNc(9,T,5,7,"mat-option",8),e.ALo(10,"async"),e.qZA()()(),e.YNc(11,W,1,0,"perun-web-apps-deselect-button",9),e.qZA()),2&Q&&(e.xp6(2),e.s9C("placeholder",Ee.selectPlaceholder),e.Q6J("formControl",Ee.entitiesCtrl)("multiple",Ee.multiple),e.xp6(1),e.Q6J("ngIf",Ee.multiple),e.xp6(2),e.s9C("placeholderLabel",Ee.findPlaceholder),e.s9C("noEntriesFoundLabel",Ee.noEntriesText),e.Q6J("clearSearchInput",!1)("formControl",Ee.entityFilterCtrl),e.xp6(1),e.Q6J("ngIf",null==Ee.entitiesCtrl?null:Ee.entitiesCtrl.value),e.xp6(1),e.Udp("height",Ee.getViewportHeight(),"px"),e.Q6J("minBufferPx",240)("maxBufferPx",480),e.xp6(2),e.Q6J("cdkVirtualForOf",e.lcZ(10,15,Ee.filteredEntities)),e.xp6(2),e.Q6J("ngIf",Ee.visibleDeselectButton))},dependencies:[b.O5,A.JJ,D.KE,A.oH,v.ey,R.gD,R.$L,B.nu,w.xd,w.x0,w.N7,ee,b.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}.green[_ngcontent-%COMP%]{color:green}.grey[_ngcontent-%COMP%]{color:gray}.red[_ngcontent-%COMP%]{color:red}.black[_ngcontent-%COMP%]{color:#000}"]}),V})()},87488:(Xe,ue,p)=>{"use strict";p.d(ue,{c:()=>R});var e=p(94650),A=p(24006),C=p(36895),M=p(59549),m=p(284),b=p(99602),D=p(71948),v=p(89383);let R=(()=>{class B{constructor(){this.expiration="never",this.datePicker=new e.vpe,this.expirationControl=new A.p4(null)}ngOnInit(){const L=new Date;this.minDate=new Date(L.getFullYear(),L.getMonth(),L.getDate()),this.expirationControl.setValue((0,C.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}setExpiration(){this.expiration=(0,C.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,C.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return B.\u0275fac=function(L){return new(L||B)},B.\u0275cmp=e.Xpm({type:B,selectors:[["perun-web-apps-expiration-select"]],inputs:{expiration:"expiration"},outputs:{datePicker:"datePicker"},decls:13,vars:14,consts:[[1,"d-flex","flex-column",3,"ngModel","ngModelChange","change"],["value","never"],[3,"value"],["color","primary",1,"cursor-pointer","mr-3",3,"click"],["readonly","","matInput","",1,"disable",3,"min","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""]],template:function(L,O){if(1&L){const q=e.EpF();e.TgZ(0,"mat-radio-group",0),e.NdJ("ngModelChange",function(z){return O.expiration=z})("change",function(){return O.emitDate()}),e.TgZ(1,"mat-radio-button",1),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-radio-button",2)(5,"mat-form-field",3),e.NdJ("click",function(){e.CHM(q);const z=e.MAs(12);return e.KtG(z.open())}),e.TgZ(6,"mat-label"),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"input",4),e.NdJ("dateChange",function(){return O.setExpiration()}),e.qZA(),e._UZ(10,"mat-datepicker-toggle",5)(11,"mat-datepicker",6,7),e.qZA()()()}if(2&L){const q=e.MAs(12);e.Q6J("ngModel",O.expiration),e.xp6(2),e.hij(" ",e.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),e.xp6(2),e.s9C("value",O.expirationControl.value),e.xp6(3),e.Oqu(e.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),e.xp6(2),e.Q6J("min",O.minDate)("formControl",O.expirationControl)("matDatepicker",q),e.xp6(1),e.Q6J("for",q)("disabled",!1),e.xp6(1),e.Q6J("disabled",!1)}},dependencies:[A.Fj,A.JJ,A.On,M.KE,M.hX,M.R9,A.oH,m.Nt,b.Mq,b.hl,b.nW,D.VQ,D.U0,v.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),B})()},74010:(Xe,ue,p)=>{"use strict";p.d(ue,{X:()=>ye});var e=p(96308),A=p(30671),C=p(9244),M=p(81591),m=p(94650),b=p(36895),D=p(56709),v=p(94364),R=p(98380),B=p(18750),w=p(34198),L=p(55660),O=p(10441),q=p(24006),ee=p(97392),z=p(4859),ie=p(10266);function Te(_e,Se){if(1&_e&&(m.TgZ(0,"div",6),m._uU(1),m.qZA()),2&_e){const Ne=Se.$implicit,Ce=m.oxw();m.xp6(1),m.hij(" ",Ne[Ce.paramName]," ")}}function pe(_e,Se){1&_e&&(m.TgZ(0,"mat-icon"),m._uU(1,"more_horiz"),m.qZA())}function Le(_e,Se){1&_e&&(m.TgZ(0,"mat-icon"),m._uU(1,"keyboard_arrow_up"),m.qZA())}function T(_e,Se){if(1&_e){const Ne=m.EpF();m.TgZ(0,"button",7),m.NdJ("click",function(){m.CHM(Ne);const fe=m.oxw();return m.KtG(fe.onShowChange())}),m.YNc(1,pe,2,0,"mat-icon",8),m.YNc(2,Le,2,0,"mat-icon",8),m.qZA()}if(2&_e){const Ne=m.oxw();m.xp6(1),m.Q6J("ngIf",!Ne.showMore),m.xp6(1),m.Q6J("ngIf",Ne.showMore)}}let W=(()=>{class _e{constructor(){this.objects=[],this.filterValue="",this.paramName="",this.showMore=!1,this.defaultItemsShown=3}ngOnInit(){this.itemsShown=this.defaultItemsShown}ngOnChanges(){this.itemsShown=this.defaultItemsShown,this.showMore=!1}onShowChange(){this.showMore=!this.showMore,this.itemsShown=this.showMore?this.objects.length:this.defaultItemsShown}}return _e.\u0275fac=function(Ne){return new(Ne||_e)},_e.\u0275cmp=m.Xpm({type:_e,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[m.TTD],decls:7,vars:4,consts:[[1,"d-flex","w-100"],[1,"w-100"],[1,"mr-5"],["class","d-flex mb-1",4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"d-flex","mb-1"],["mat-icon-button","",3,"click"],[4,"ngIf"]],template:function(Ne,Ce){1&Ne&&(m.TgZ(0,"form",0)(1,"div",1)(2,"div",2),m.YNc(3,Te,2,1,"div",3),m.qZA(),m.TgZ(4,"div")(5,"span",4),m.YNc(6,T,3,2,"button",5),m.qZA()()()()),2&Ne&&(m.xp6(3),m.Q6J("ngForOf",Ce.objects.slice(0,Ce.itemsShown)),m.xp6(2),m.Q6J("matTooltip",Ce.showMore?"Show less":"Show more")("matTooltipPosition","above"),m.xp6(1),m.Q6J("ngIf",Ce.objects.length>Ce.defaultItemsShown))},dependencies:[b.sg,b.O5,q._Y,q.JL,q.F,ee.Hw,z.lW,ie.gM]}),_e})();var F=p(89383),V=p(53561);let te=(()=>{class _e{transform(Ne,Ce,fe){return Ne.filter(r=>r[fe].includes(Ce)).filter((r,u,_)=>_.findIndex(E=>E[fe]===r[fe])===u)}}return _e.\u0275fac=function(Ne){return new(Ne||_e)},_e.\u0275pipe=m.Yjl({name:"filterUniqueObjects",type:_e,pure:!0}),_e})();var Q=p(8231);function Ee(_e,Se){1&_e&&m._UZ(0,"th",20)}const ge=function(_e){return{name:_e}};function ve(_e,Se){if(1&_e){const Ne=m.EpF();m.TgZ(0,"td",21)(1,"mat-checkbox",22),m.NdJ("change",function(fe){const u=m.CHM(Ne).$implicit,_=m.oxw();return m.KtG(fe?_.selection.toggle(u):null)})("click",function(fe){return fe.stopPropagation()}),m.ALo(2,"translate"),m.ALo(3,"checkboxLabel"),m.qZA()()}if(2&_e){const Ne=Se.$implicit,Ce=m.oxw();m.xp6(1),m.Q2q("data-cy","",Ne.facility.name,"-checkbox"),m.Q6J("aria-label",m.xi3(2,3,m.lcZ(3,6,Ce.selection.isSelected(Ne)),m.VKq(8,ge,Ne.facility.name)))("checked",Ce.selection.isSelected(Ne))}}function De(_e,Se){1&_e&&(m.TgZ(0,"th",23),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&_e&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")," "))}function he(_e,Se){if(1&_e&&(m.TgZ(0,"td",24),m._uU(1),m.qZA()),2&_e){const Ne=Se.$implicit;m.xp6(1),m.hij(" ",Ne.facility.id," ")}}function Ye(_e,Se){1&_e&&m._UZ(0,"th",25)}function Be(_e,Se){if(1&_e&&(m.TgZ(0,"td",26),m._UZ(1,"perun-web-apps-recently-viewed-icon",27),m.qZA()),2&_e){const Ne=Se.$implicit,Ce=m.oxw();m.xp6(1),m.Q6J("id",Ne.facility.id)("recentIds",Ce.recentIds)}}function se(_e,Se){1&_e&&(m.TgZ(0,"th",23),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&_e&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")," "))}function le(_e,Se){if(1&_e&&(m.TgZ(0,"td",26),m._uU(1),m.qZA()),2&_e){const Ne=Se.$implicit;m.uIk("data-cy",Ne.facility.name),m.xp6(1),m.hij(" ",Ne.facility.name," ")}}function k(_e,Se){1&_e&&(m.TgZ(0,"th",25),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&_e&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")," "))}function N(_e,Se){if(1&_e&&(m.TgZ(0,"td",26),m._uU(1),m.qZA()),2&_e){const Ne=Se.$implicit;m.xp6(1),m.Oqu(Ne.facility.description)}}function be(_e,Se){1&_e&&(m.TgZ(0,"th",25),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&_e&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")," "))}function Z(_e,Se){if(1&_e&&(m.TgZ(0,"td",26),m._uU(1),m.ALo(2,"technicalOwners"),m.qZA()),2&_e){const Ne=Se.$implicit;m.xp6(1),m.Oqu(m.lcZ(2,1,Ne.owners))}}function de(_e,Se){1&_e&&(m.TgZ(0,"th",25),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&_e&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")," "))}function xe(_e,Se){if(1&_e){const Ne=m.EpF();m.TgZ(0,"td",26)(1,"perun-web-apps-object-list-values",28),m.NdJ("mouseenter",function(){m.CHM(Ne);const fe=m.oxw();return m.KtG(fe.localDisableRouting=!0)})("mouseleave",function(){m.CHM(Ne);const fe=m.oxw();return m.KtG(fe.localDisableRouting=!1)}),m.ALo(2,"filterUniqueObjects"),m.qZA()()}if(2&_e){const Ne=Se.$implicit,Ce=m.oxw();m.xp6(1),m.Q6J("objects",m.Dn7(2,2,Ne.destinations,Ce.filterValue,"destination"))("paramName","destination")}}function ot(_e,Se){1&_e&&(m.TgZ(0,"th",25),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&_e&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")," "))}function Fe(_e,Se){if(1&_e){const Ne=m.EpF();m.TgZ(0,"td",26)(1,"perun-web-apps-object-list-values",28),m.NdJ("mouseenter",function(){m.CHM(Ne);const fe=m.oxw();return m.KtG(fe.localDisableRouting=!0)})("mouseleave",function(){m.CHM(Ne);const fe=m.oxw();return m.KtG(fe.localDisableRouting=!1)}),m.ALo(2,"filterUniqueObjects"),m.qZA()()}if(2&_e){const Ne=Se.$implicit,Ce=m.oxw();m.xp6(1),m.Q6J("objects",m.Dn7(2,2,Ne.hosts,Ce.filterValue,"hostname"))("paramName","hostname")}}function ut(_e,Se){1&_e&&m._UZ(0,"tr",29)}const tt=function(_e){return["/facilities",_e]},vt=function(){return[]};function X(_e,Se){if(1&_e&&m._UZ(0,"tr",30),2&_e){const Ne=Se.$implicit,Ce=m.oxw();m.ekj("cursor-pointer",!Ce.disableRouting)("disable-outline",Ce.disableRouting),m.Q6J("perunWebAppsMiddleClickRouterLink",m.VKq(6,tt,Ne.facility.id))("routerLink",Ce.disableRouting||Ce.localDisableRouting?m.DdM(8,vt):m.VKq(9,tt,Ne.facility.id))}}function nt(_e,Se){1&_e&&(m.TgZ(0,"perun-web-apps-alert",31),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&_e&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ae(_e,Se){1&_e&&(m.TgZ(0,"perun-web-apps-alert",31),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&_e&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let ye=(()=>{class _e{constructor(Ne){this.authResolver=Ne,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=C.f7,this.disableRouting=!1,this.getDataForColumnFun=(Ce,fe)=>_e.getDataForColumn(Ce,fe,this.recentIds)}set matSort(Ne){this.sort=Ne}static getDataForColumn(Ne,Ce,fe){switch(Ce){case"id":return Ne.facility.id.toString();case"name":return Ne.facility.name;case"description":return Ne.facility.description;case"technicalOwners":return(0,C.te)(Ne.owners);case"recent":return fe&&fe.includes(Ne.facility.id)?"#".repeat(fe.indexOf(Ne.facility.id)):Ne.name;case"destinations":return Ne.destinations.map(r=>r.destination).join(" ; ");case"hosts":return Ne.hosts.map(r=>r.hostname).join(" ; ");default:return Ne[Ce]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Ne=>"id"!==Ne)),this.setDataSource()}exportAllData(Ne){(0,C.O6)((0,C.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),Ne)}exportDisplayedData(Ne){const Ce=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,fe=Ce+this.dataSource.paginator.pageSize;(0,C.O6)((0,C.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ce,fe),this.displayedColumns,this.getDataForColumnFun),Ne)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Ne,Ce)=>(0,C.Sd)(Ne,Ce,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(Ne,Ce)=>(0,C.pR)(Ne,Ce,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.facilities}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(Ne=>this.selection.select(Ne))}}return _e.\u0275fac=function(Ne){return new(Ne||_e)(m.Y36(M.x4))},_e.\u0275cmp=m.Xpm({type:_e,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(Ne,Ce){if(1&Ne&&(m.Gf(C.l9,7),m.Gf(e.YE,7)),2&Ne){let fe;m.iGM(fe=m.CRH())&&(Ce.child=fe.first),m.iGM(fe=m.CRH())&&(Ce.matSort=fe.first)}},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions",disableRouting:"disableRouting"},features:[m.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","technicalOwners"],["matColumnDef","destinations"],["matColumnDef","hosts"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"id","recentIds"],[3,"objects","paramName","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(Ne,Ce){1&Ne&&(m.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),m.NdJ("exportDisplayedData",function(r){return Ce.exportDisplayedData(r)})("exportAllData",function(r){return Ce.exportAllData(r)}),m.TgZ(2,"table",2),m.ynx(3,3),m.YNc(4,Ee,1,0,"th",4),m.YNc(5,ve,4,10,"td",5),m.BQk(),m.ynx(6,6),m.YNc(7,De,3,3,"th",7),m.YNc(8,he,2,1,"td",8),m.BQk(),m.ynx(9,9),m.YNc(10,Ye,1,0,"th",10),m.YNc(11,Be,2,2,"td",11),m.BQk(),m.ynx(12,12),m.YNc(13,se,3,3,"th",7),m.YNc(14,le,2,2,"td",11),m.BQk(),m.ynx(15,13),m.YNc(16,k,3,3,"th",10),m.YNc(17,N,2,1,"td",11),m.BQk(),m.ynx(18,14),m.YNc(19,be,3,3,"th",10),m.YNc(20,Z,3,3,"td",11),m.BQk(),m.ynx(21,15),m.YNc(22,de,3,3,"th",10),m.YNc(23,xe,3,6,"td",11),m.BQk(),m.ynx(24,16),m.YNc(25,ot,3,3,"th",10),m.YNc(26,Fe,3,6,"td",11),m.BQk(),m.YNc(27,ut,1,0,"tr",17),m.YNc(28,X,1,11,"tr",18),m.qZA()()(),m.YNc(29,nt,3,3,"perun-web-apps-alert",19),m.YNc(30,Ae,3,3,"perun-web-apps-alert",19)),2&Ne&&(m.Q6J("hidden",!Ce.dataSource||0===Ce.dataSource.filteredData.length||0===Ce.facilities.length),m.xp6(1),m.Q6J("tableId",Ce.tableId)("dataLength",Ce.dataSource.filteredData.length)("pageSizeOptions",Ce.pageSizeOptions),m.xp6(1),m.Q6J("dataSource",Ce.dataSource),m.xp6(25),m.Q6J("matHeaderRowDef",Ce.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",Ce.displayedColumns),m.xp6(1),m.Q6J("ngIf",0===Ce.dataSource.filteredData.length&&0!==Ce.facilities.length),m.xp6(1),m.Q6J("ngIf",0===Ce.facilities.length))},dependencies:[b.O5,D.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,v.rH,e.YE,e.nU,R.w,B.l,w.Y,O.W,W,L.Q,F.X$,V.J,te,Q.G],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),_e})()},13449:(Xe,ue,p)=>{"use strict";p.d(ue,{i:()=>T});var e=p(94650),A=p(81591),C=p(36895),M=p(97392),m=p(28255),b=p(4859),D=p(10266),v=p(64425),R=p(89383),B=p(29218),w=p(45942),L=p(28764);function O(W,F){if(1&W){const V=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.ALo(2,"groupSyncToolTip"),e.TgZ(3,"button",6),e.NdJ("click",function(){e.CHM(V);const Q=e.oxw(2);return e.KtG(Q.onSyncDetail())}),e.ALo(4,"groupSyncIcon"),e.TgZ(5,"mat-icon"),e.ALo(6,"groupSyncIconColor"),e._uU(7),e.ALo(8,"groupSyncIcon"),e.qZA()()()}if(2&W){const V=e.oxw(2);e.Q6J("matTooltipPosition","above")("matTooltip",e.lcZ(1,7,e.lcZ(2,9,V.group))),e.xp6(3),e.Q6J("disabled","sync_disabled"===e.lcZ(4,11,V.group)),e.xp6(2),e.Tol(e.lcZ(6,13,V.group)),e.xp6(2),e.hij(" ",e.lcZ(8,15,V.group)," ")}}function q(W,F){if(1&W){const V=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(V);const Q=e.oxw(2);return e.KtG(Q.onMoveGroup())}),e.TgZ(3,"mat-icon"),e._uU(4,"arrow_right_alt"),e.qZA()()()}if(2&W){const V=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",V.disabled)}}function ee(W,F){if(1&W){const V=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(V);const Q=e.oxw(2);return e.KtG(Q.onChangeNameDescription())}),e.TgZ(3,"mat-icon"),e._uU(4,"text_format"),e.qZA()()()}if(2&W){const V=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",V.disabled)}}function z(W,F){if(1&W&&(e.TgZ(0,"div",2)(1,"button",3),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4," file_copy "),e.qZA()(),e.YNc(5,O,9,17,"span",4),e.YNc(6,q,5,5,"span",4),e.YNc(7,ee,5,5,"span",4),e.qZA()),2&W){const V=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.Q6J("cdkCopyToClipboard",V.group.name)("matTooltipPosition","above"),e.xp6(4),e.Q6J("ngIf",V.syncAuth),e.xp6(1),e.Q6J("ngIf",V.moveAuth),e.xp6(1),e.Q6J("ngIf",V.editAuth)}}function ie(W,F){if(1&W){const V=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(V);const Q=e.oxw(2);return e.KtG(Q.onSyncDetail())}),e.ALo(1,"groupSyncIcon"),e.TgZ(2,"mat-icon"),e.ALo(3,"groupSyncIconColor"),e._uU(4),e.ALo(5,"groupSyncIcon"),e.qZA(),e.TgZ(6,"span"),e._uU(7),e.ALo(8,"translate"),e.ALo(9,"groupSyncToolTip"),e.qZA()()}if(2&W){const V=e.oxw(2);e.Q6J("disabled","sync_disabled"===e.lcZ(1,6,V.group)),e.xp6(2),e.Tol(e.lcZ(3,8,V.group)),e.xp6(2),e.hij(" ",e.lcZ(5,10,V.group)," "),e.xp6(3),e.Oqu(e.lcZ(8,12,e.lcZ(9,14,V.group)))}}function Te(W,F){if(1&W){const V=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(V);const Q=e.oxw(2);return e.KtG(Q.onMoveGroup())}),e.TgZ(1,"mat-icon"),e._uU(2,"arrow_right_alt"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&W){const V=e.oxw(2);e.Q6J("disabled",V.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function pe(W,F){if(1&W){const V=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(V);const Q=e.oxw(2);return e.KtG(Q.onChangeNameDescription())}),e.TgZ(1,"mat-icon"),e._uU(2,"text_format"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&W){const V=e.oxw(2);e.Q6J("disabled",V.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function Le(W,F){if(1&W&&(e.TgZ(0,"div")(1,"button",7)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,8)(6,"button",9)(7,"mat-icon"),e._uU(8," file_copy "),e.qZA(),e.TgZ(9,"span"),e._uU(10),e.ALo(11,"translate"),e.qZA()(),e.YNc(12,ie,10,16,"button",10),e.YNc(13,Te,6,4,"button",10),e.YNc(14,pe,6,4,"button",10),e.qZA()()),2&W){const V=e.MAs(5),te=e.oxw();e.xp6(1),e.Q6J("mat-menu-trigger-for",V),e.xp6(5),e.Q6J("cdkCopyToClipboard",te.group.name),e.xp6(4),e.Oqu(e.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.xp6(2),e.Q6J("ngIf",te.syncAuth),e.xp6(1),e.Q6J("ngIf",te.moveAuth),e.xp6(1),e.Q6J("ngIf",te.editAuth)}}let T=(()=>{class W{constructor(V){this.authResolver=V,this.disabled=!1,this.moveGroup=new e.vpe,this.syncGroup=new e.vpe,this.changeNameDescription=new e.vpe}ngOnInit(){this.syncAuth=this.authResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group]),this.editAuth=this.authResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.moveAuth=this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.group])||this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.group])}onMoveGroup(){this.moveGroup.emit()}onSyncDetail(){this.syncGroup.emit()}onChangeNameDescription(){this.changeNameDescription.emit()}}return W.\u0275fac=function(V){return new(V||W)(e.Y36(A.x4))},W.\u0275cmp=e.Xpm({type:W,selectors:[["perun-web-apps-group-menu"]],inputs:{group:"group",disabled:"disabled",displayButtons:"displayButtons"},outputs:{moveGroup:"moveGroup",syncGroup:"syncGroup",changeNameDescription:"changeNameDescription"},decls:2,vars:2,consts:[["class","buttons-container",4,"ngIf"],[4,"ngIf"],[1,"buttons-container"],["mat-icon-button","",1,"ml-auto","horiz_right",3,"cdkCopyToClipboard","matTooltipPosition","matTooltip"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click"],["mat-icon-button","",3,"mat-menu-trigger-for"],["groupMenu","matMenu"],["mat-menu-item","",3,"cdkCopyToClipboard"],["mat-menu-item","",3,"disabled","click",4,"ngIf"],["mat-menu-item","",3,"disabled","click"]],template:function(V,te){1&V&&(e.YNc(0,z,8,8,"div",0),e.YNc(1,Le,15,8,"div",1)),2&V&&(e.Q6J("ngIf",te.displayButtons),e.xp6(1),e.Q6J("ngIf",!te.displayButtons))},dependencies:[C.O5,M.Hw,m.VK,m.OP,m.p6,b.lW,D.gM,v.i3,R.X$,B.J,w.r,L.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),W})()},8223:(Xe,ue,p)=>{"use strict";p.d(ue,{x:()=>O});var e=p(94650),A=p(9244),C=p(21029),M=p(65412),m=p(36895),b=p(97392),D=p(10266),v=p(89383);function R(q,ee){if(1&q){const z=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(z);const Te=e.oxw();return e.KtG(Te.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",4),e._uU(3,"check_circle_outline"),e.qZA()()}if(2&q){const z=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE")),e.Q2q("data-cy","",z.groupName,"-active")}}function B(q,ee){if(1&q){const z=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(z);const Te=e.oxw();return e.KtG(Te.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",5),e._uU(3,"block"),e.qZA()()}if(2&q){const z=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE")),e.Q2q("data-cy","",z.groupName,"-inactive")}}function w(q,ee){if(1&q){const z=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(z);const Te=e.oxw();return e.KtG(Te.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",6),e._uU(3,"report"),e.qZA()()}if(2&q){const z=e.oxw();e.hYB("matTooltip","",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",z.failureCause,"")}}function L(q,ee){1&q&&(e.TgZ(0,"span",7),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",8),e._uU(3,"autorenew"),e.qZA()()),2&q&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let O=(()=>{class q{constructor(z){this.dialog=z,this.status="",this.groupName="",this.statusChange=new e.vpe}changeStatus(){const z=(0,A.kZ)();z.width="500px",z.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(C.Qu,z).afterClosed().subscribe(Te=>{Te&&this.statusChange.emit()})}}return q.\u0275fac=function(z){return new(z||q)(e.Y36(M.uw))},q.\u0275cmp=e.Xpm({type:q,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",groupName:"groupName",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(z,ie){1&z&&(e.TgZ(0,"div",0),e.YNc(1,R,4,4,"span",1),e.YNc(2,B,4,4,"span",1),e.YNc(3,w,4,4,"span",1),e.YNc(4,L,4,3,"span",2),e.qZA()),2&z&&(e.xp6(1),e.Q6J("ngIf","ACTIVE"===ie.status),e.xp6(1),e.Q6J("ngIf","INACTIVE"===ie.status),e.xp6(1),e.Q6J("ngIf","FAILED"===ie.status),e.xp6(1),e.Q6J("ngIf","PROCESSING"===ie.status))},dependencies:[m.O5,b.Hw,D.gM,v.X$]}),q})()},82322:(Xe,ue,p)=>{"use strict";p.d(ue,{h:()=>m});var e=p(94650),A=p(9244),C=p(89593),M=p(89383);let m=(()=>{class b{constructor(){this.disableAutoSelect=!1,this.displayStatus=!1,this.groupSelected=new e.vpe,this.nameFunction=v=>v.name}ngOnInit(){this.groups=this.groups.sort(A.aC)}}return b.\u0275fac=function(v){return new(v||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect",firstSelectedGroup:"firstSelectedGroup",displayStatus:"displayStatus"},outputs:{groupSelected:"groupSelected"},decls:4,vars:15,consts:[[1,"long-input",3,"entities","entity","displayStatus","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(v,R){if(1&v&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(w){return R.groupSelected.emit(w)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&v){let B;e.Q6J("entities",R.groups)("entity",null!==(B=R.firstSelectedGroup)&&void 0!==B?B:null)("displayStatus",R.displayStatus)("disableAutoSelect",R.disableAutoSelect)("mainTextFunction",R.nameFunction)("searchFunction",R.nameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))}},dependencies:[C.i,M.X$]}),b})()},25788:(Xe,ue,p)=>{"use strict";p.d(ue,{W:()=>et});var e=p(94650),A=p(21029),C=p(61744),M=p(81591),m=p(9244),b=p(91479),D=p(96308),v=p(30671),R=p(95017),B=p(19516),w=p(65412),L=p(36895),O=p(56709),q=p(94364),ee=p(98380),z=p(97392),ie=p(4859),Te=p(10266),pe=p(18750),Le=p(13449),T=p(34198),W=p(55660),F=p(10441),V=p(8223),te=p(89383),Q=p(21757);let Ee=(()=>{class ne{transform(He){return He.attributes.find(Re=>"groupMembershipExpiration"===Re.baseFriendlyName)?.value??"Never"}}return ne.\u0275fac=function(He){return new(He||ne)},ne.\u0275pipe=e.Yjl({name:"groupExpiration",type:ne,pure:!0}),ne})();var ge=p(82514),ve=p(62383),De=p(9185);let he=(()=>{class ne{transform(He,Oe){return(0,m.cT)(He,Oe)}}return ne.\u0275fac=function(He){return new(He||ne)},ne.\u0275pipe=e.Yjl({name:"findAttribute",type:ne,pure:!0}),ne})(),Ye=(()=>{class ne{constructor(He){this.authResolver=He}transform(He){return this.authResolver.isThisGroupAdmin(He.id)||this.authResolver.isThisVoAdmin(He.voId)}}return ne.\u0275fac=function(He){return new(He||ne)(e.Y36(M.x4,16))},ne.\u0275pipe=e.Yjl({name:"canManageGroup",type:ne,pure:!0}),ne})();var Be=p(22908);let se=(()=>{class ne{transform(He,Oe,Re){return Oe?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":(0,m.bx)(He)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":He.sourceGroupId?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP":"members"===He.name?"":Re?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP":"MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT"}}return ne.\u0275fac=function(He){return new(He||ne)},ne.\u0275pipe=e.Yjl({name:"groupCheckboxTooltip",type:ne,pure:!0}),ne})();var le=p(8231),k=p(14849);function N(ne,Ue){if(1&ne){const He=e.EpF();e.TgZ(0,"mat-checkbox",27),e.NdJ("change",function(Re){e.CHM(He);const re=e.oxw(3);return e.KtG(Re?re.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&ne){const He=e.oxw(2).ngIf,Oe=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,He.all)))("checked",Oe.selection.hasValue()&&He.all)("indeterminate",Oe.selection.hasValue()&&!He.all)}}function be(ne,Ue){if(1&ne&&(e.TgZ(0,"th",25),e.YNc(1,N,3,7,"mat-checkbox",26),e.qZA()),2&ne){const He=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!He.disableHeadCheckbox&&He.selection.isMultipleSelection())}}const Z=function(ne){return{name:ne}};function de(ne,Ue){if(1&ne){const He=e.EpF();e.TgZ(0,"span",30),e.ALo(1,"translate"),e.ALo(2,"groupCheckboxTooltip"),e.TgZ(3,"mat-checkbox",31),e.NdJ("change",function(Re){e.CHM(He);const re=e.oxw().$implicit,we=e.oxw(2);return e.KtG(Re?we.itemSelectionToggle(re):null)})("click",function(Re){return Re.stopPropagation()}),e.ALo(4,"translate"),e.ALo(5,"checkboxLabel"),e.qZA()()}if(2&ne){const He=Ue.ngIf,Oe=e.oxw().$implicit,Re=e.oxw(2);e.Q6J("matTooltip",e.lcZ(1,7,e.Dn7(2,9,Oe,!1,Re.canBeSelected(Oe))))("matTooltipPosition","above")("matTooltipDisabled",!He.disable&&Re.canBeSelected(Oe)),e.xp6(3),e.Q2q("data-cy","",Oe.name,"-checkbox"),e.Q6J("aria-label",e.xi3(4,13,e.lcZ(5,16,Re.selection.isSelected(Oe)),e.VKq(18,Z,Oe.name)))("checked",Re.selection.isSelected(Oe))("disabled",He.disable||!Re.canBeSelected(Oe))}}const xe=function(ne){return{disable:ne}};function ot(ne,Ue){if(1&ne&&(e.TgZ(0,"td",28),e.YNc(1,de,6,20,"span",29),e.ALo(2,"disableGroupSelect"),e.qZA()),2&ne){const He=Ue.$implicit,Oe=e.oxw(2);e.xp6(1),e.Q6J("ngIf",e.VKq(6,xe,e.gM2(2,1,He,Oe.disableMembers,Oe.disableGroups,Oe.groupsToDisableCheckbox)))}}function Fe(ne,Ue){1&ne&&(e.ynx(0,22),e.YNc(1,be,2,1,"th",23),e.YNc(2,ot,3,8,"td",24),e.BQk())}function ut(ne,Ue){1&ne&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")," "))}function tt(ne,Ue){if(1&ne&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&ne){const He=Ue.$implicit;e.xp6(1),e.Oqu(He.id)}}function vt(ne,Ue){1&ne&&e._UZ(0,"th",34)}function X(ne,Ue){if(1&ne&&(e.TgZ(0,"td",35),e._UZ(1,"perun-web-apps-recently-viewed-icon",36),e.qZA()),2&ne){const He=Ue.$implicit,Oe=e.oxw();e.xp6(1),e.Q6J("recentIds",Oe.recentIds)("id",He.id)}}function nt(ne,Ue){1&ne&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")," "))}function Ae(ne,Ue){if(1&ne&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&ne){const He=Ue.$implicit,Oe=e.oxw();e.xp6(1),e.hij(" ",Oe.voNames.get(He.voId)," ")}}function ye(ne,Ue){1&ne&&e._UZ(0,"th",34)}function _e(ne,Ue){1&ne&&(e.TgZ(0,"mat-icon",38),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&ne&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function Se(ne,Ue){1&ne&&(e.TgZ(0,"mat-icon",38),e.ALo(1,"translate"),e._uU(2,"alt_route"),e.qZA()),2&ne&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function Ne(ne,Ue){if(1&ne&&(e.TgZ(0,"td",35),e.YNc(1,_e,3,3,"mat-icon",37),e.YNc(2,Se,3,3,"mat-icon",37),e.qZA()),2&ne){const He=Ue.$implicit;e.xp6(1),e.Q6J("ngIf",He.sourceGroupId&&!He.moreTypesOfAssignment),e.xp6(1),e.Q6J("ngIf",He.moreTypesOfAssignment)}}function Ce(ne,Ue){1&ne&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")," "))}function fe(ne,Ue){if(1&ne&&(e.TgZ(0,"td",35),e._uU(1),e.qZA()),2&ne){const He=Ue.$implicit;e.uIk("data-cy",He.name),e.xp6(1),e.hij(" ",He.name," ")}}function r(ne,Ue){1&ne&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function u(ne,Ue){if(1&ne){const He=e.EpF();e.TgZ(0,"td",39)(1,"perun-web-apps-group-resource-status",40),e.NdJ("mouseenter",function(){e.CHM(He);const Re=e.oxw();return e.KtG(Re.disabledRouting=!0)})("mouseleave",function(){e.CHM(He);const Re=e.oxw();return e.KtG(Re.disabledRouting=Re.disableRouting)})("statusChange",function(){e.CHM(He);const Re=e.oxw();return e.KtG(Re.refreshTable.emit())}),e.qZA()()}if(2&ne){const He=Ue.$implicit,Oe=e.oxw();e.xp6(1),e.Q6J("theme","resource-theme")("groupId",He.id)("groupName",He.name)("resourceId",Oe.resourceId)("failureCause",He.failureCause)("status",He.status)}}function _(ne,Ue){1&ne&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function E(ne,Ue){if(1&ne&&(e.TgZ(0,"i",42),e.NdJ("click",function(Oe){return Oe.stopPropagation()}),e.ALo(1,"groupStatusIconColor"),e.TgZ(2,"span"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA()()),2&ne){const He=Ue.ngIf;e.Gre("material-icons ",e.lcZ(1,5,He.status)," cursor-default"),e.s9C("matTooltip",He.status),e.xp6(3),e.hij(" ",e.lcZ(4,7,He.status)," ")}}const h=function(ne){return{status:ne}};function a(ne,Ue){if(1&ne&&(e.TgZ(0,"td",35),e.YNc(1,E,5,9,"i",41),e.ALo(2,"findAttribute"),e.qZA()),2&ne){const He=Ue.$implicit;e.xp6(1),e.Q6J("ngIf",e.VKq(4,h,e.xi3(2,1,He.attributes,"groupStatus")))}}function i(ne,Ue){1&ne&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")," "))}function t(ne,Ue){if(1&ne&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&ne){const He=Ue.$implicit;e.xp6(1),e.Oqu(He.description)}}function n(ne,Ue){1&ne&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")," "))}function o(ne,Ue){if(1&ne){const He=e.EpF();e.TgZ(0,"button",44),e.NdJ("click",function(){e.CHM(He);const Re=e.oxw().$implicit,re=e.oxw();return e.KtG(re.changeExpiration(Re))})("mouseenter",function(){e.CHM(He);const Re=e.oxw(2);return e.KtG(Re.disabledRouting=!0)})("mouseleave",function(){e.CHM(He);const Re=e.oxw(2);return e.KtG(Re.disabledRouting=Re.disableRouting)}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function s(ne,Ue){if(1&ne&&(e.TgZ(0,"td",39),e._uU(1),e.ALo(2,"parseDate"),e.ALo(3,"groupExpiration"),e.YNc(4,o,3,0,"button",43),e.ALo(5,"canManageGroup"),e.qZA()),2&ne){const He=Ue.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,2,e.lcZ(3,4,He))," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(5,6,He))}}function l(ne,Ue){1&ne&&e._UZ(0,"th",34)}function d(ne,Ue){if(1&ne){const He=e.EpF();e.TgZ(0,"td",35)(1,"perun-web-apps-group-menu",45),e.NdJ("mouseenter",function(){e.CHM(He);const Re=e.oxw();return e.KtG(Re.disabledRouting=!0)})("mouseleave",function(){e.CHM(He);const Re=e.oxw();return e.KtG(Re.disabledRouting=Re.disableRouting)})("moveGroup",function(){const re=e.CHM(He).$implicit,we=e.oxw();return e.KtG(we.moveGroup(re))})("changeNameDescription",function(){const re=e.CHM(He).$implicit,we=e.oxw();return e.KtG(we.editGroup(re))})("syncGroup",function(){const re=e.CHM(He).$implicit,we=e.oxw();return e.KtG(we.openSyncDetail(re))}),e.qZA()()}if(2&ne){const He=Ue.$implicit,Oe=e.oxw();e.xp6(1),e.Q6J("disabled","members"===He.name)("displayButtons",Oe.displayButtons)("group",He)}}function c(ne,Ue){1&ne&&e._UZ(0,"tr",46)}const S=function(ne,Ue){return["/organizations",ne,"groups",Ue]};function J(ne,Ue){if(1&ne&&e._UZ(0,"tr",47),2&ne){const He=Ue.$implicit,Oe=e.oxw();e.ekj("cursor-pointer",!Oe.disableRouting&&!Oe.groupsToDisableRouting.has(He.id))("disable-outline",Oe.disableRouting||Oe.disabledRouting||Oe.groupsToDisableRouting.has(He.id)),e.Q6J("perunWebAppsMiddleClickRouterLink",Oe.disableRouting||Oe.disabledRouting||Oe.groupsToDisableRouting.has(He.id)?null:e.WLB(6,S,He.voId,He.id))("routerLink",Oe.disableRouting||Oe.disabledRouting||Oe.groupsToDisableRouting.has(He.id)?null:e.WLB(9,S,He.voId,He.id))}}function ht(ne,Ue){if(1&ne&&(e.TgZ(0,"perun-web-apps-alert",48),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne){const He=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,He.noGroupsAlert),"\n")}}const We=function(ne){return{all:ne}};let et=(()=>{class ne{constructor(He,Oe,Re,re,we,st){this.dialog=He,this.authResolver=Oe,this.voService=Re,this.tableCheckbox=re,this.disableGroupSelect=we,this.groupUtils=st,this.theme="group-theme",this.selection=new R.Ov(!0,[]),this.groupsToDisableCheckbox=new Set,this.groupsToDisableRouting=new Set,this.disableRouting=!1,this.pageSizeOptions=m.f7,this.recentIds=[],this.resourceId=null,this.relation=!1,this.noGroupsAlert="SHARED_LIB.UI.ALERTS.NO_GROUPS",this.groupMoved=new e.vpe,this.refreshTable=new e.vpe,this.queryChanged=new e.vpe,this.downloadAll=new e.vpe,this.displayButtons=window.innerWidth>800,this.disabledRouting=!1,this.voNames=new Map,this.columns=["select","id","recent","vo","indirectGroupAssigment","name","status","groupStatus","description","expiration","menu"],this.getDataForColumnFun=(Ke,Et)=>this.groupUtils.getDataForColumn(Ke,Et,this.voNames),this.getSortDataForColumnFun=(Ke,Et)=>this.groupUtils.getSortDataForColumn(Ke,Et,this.voNames,this.recentIds),this.canBeSelected=Ke=>{const Et=Ke.attributes?.find(ke=>"groupStatusIndirect"===ke.friendlyName);return Et?.value?!Et.value:!this.disableGroupSelect.transform(Ke,this.disableMembers,this.disableGroups,this.groupsToDisableCheckbox)}}set groups(He){this.dataSource||this.dataSourceInit(He);const Oe=this.isPaginated(He);(0,b.o)(this.dataSource)&&Oe?(this.dataSource.data=He.data,this.dataSource.count=He.totalCount):!(0,b.o)(this.dataSource)&&!Oe&&(this.dataSource.data=He),this.updateVoNames()}set filter(He){this.dataSource.filter=He}set displayedColumns(He){this.authResolver.isPerunAdminOrObserver()||(He=He.filter(Oe=>"id"!==Oe)),this.columns=He}shouldHideButtons(){this.displayButtons=window.innerWidth>800}isPaginated(He){return"data"in He}exportAllData(He){(0,b.o)(this.dataSource)?this.downloadAll.emit({format:He,length:this.dataSource.paginator.length}):(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.columns,this.getDataForColumnFun),He)}exportDisplayedData(He){if((0,b.o)(this.dataSource))(0,m.O6)((0,m.Xn)(this.dataSource.data,this.columns,this.getDataForColumnFun),He);else{const Oe=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Re=Oe+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Oe,Re),this.columns,this.getDataForColumnFun),He)}}isAllSelected(){return(0,b.o)(this.dataSource)?this.tableCheckbox.isAllSelectedPaginated(this.dataSource,this.selection.selected.length,this.canBeSelected):this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){(0,b.o)(this.dataSource)?this.tableCheckbox.masterTogglePaginated(this.dataSource,this.selection,!this.isAllSelected(),this.canBeSelected):this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.dataSource.filter,this.dataSource,this.dataSource.sort,this.dataSource.paginator.pageSize,this.dataSource.paginator.pageIndex,!0,this.canBeSelected)}moveGroup(He){this.groupMoved.emit(He)}openSyncDetail(He){const Oe=(0,m.kZ)();Oe.width="450px",Oe.data={groupId:He.id,theme:this.theme},this.dialog.open(A.Bp,Oe)}editGroup(He){const Oe=(0,m.kZ)();Oe.data={theme:"group-theme",group:He,dialogType:A.Eg.GROUP},this.dialog.open(A.rd,Oe).afterClosed().subscribe(re=>{re&&this.refreshTable.emit()})}changeExpiration(He){const Oe=He.attributes.find(we=>"groupMembershipExpiration"===we.baseFriendlyName),Re=(0,m.kZ)();Re.width="400px",Re.data={memberId:this.memberId,groupId:He.id,expirationAttr:Oe,status:(0,m.cT)(He.attributes,"groupStatus")},this.dialog.open(A.u3,Re).afterClosed().subscribe(we=>{we.success&&this.refreshTable.emit()})}itemSelectionToggle(He){this.selection.toggle(He)}dataSourceInit(He){const Oe=this.isPaginated(He);this.dataSource=Oe?new b.H(He.data,He.totalCount,this.sort,this.tableWrapper.paginator):new v.by(He),(0,b.o)(this.dataSource)?this.dataSource.pageQuery$.subscribe(Re=>this.queryChanged.emit(Re)):(this.dataSource.sort=this.sort,this.dataSource.paginator=this.tableWrapper.paginator,this.dataSource.filterPredicate=(Re,re)=>(0,m.Sd)(Re,re,this.columns,this.getDataForColumnFun,!0),this.dataSource.sortData=(Re,re)=>(0,m.pR)(Re,re,this.getSortDataForColumnFun))}updateVoNames(){if(this.columns.includes("vo")){const He=new Set;this.dataSource.filteredData.forEach(Oe=>{!He.has(Oe.voId)&&!this.voNames.has(Oe.voId)&&He.add(Oe.voId)}),He.size>0&&this.voService.getVosByIds([...He]).subscribe(Oe=>{Oe.forEach(Re=>{this.voNames.set(Re.id,Re.name)})})}}}return ne.\u0275fac=function(He){return new(He||ne)(e.Y36(w.uw),e.Y36(M.x4),e.Y36(C.YF),e.Y36(M.UA),e.Y36(B.yo),e.Y36(M.K1))},ne.\u0275cmp=e.Xpm({type:ne,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(He,Oe){if(1&He&&(e.Gf(m.l9,7),e.Gf(D.YE,7)),2&He){let Re;e.iGM(Re=e.CRH())&&(Oe.tableWrapper=Re.first),e.iGM(Re=e.CRH())&&(Oe.sort=Re.first)}},hostBindings:function(He,Oe){1&He&&e.NdJ("resize",function(re){return Oe.shouldHideButtons(re)},!1,e.Jf7)},inputs:{theme:"theme",selection:"selection",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisableCheckbox:"groupsToDisableCheckbox",groupsToDisableRouting:"groupsToDisableRouting",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",memberId:"memberId",memberGroupStatus:"memberGroupStatus",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",resourceId:"resourceId",tableId:"tableId",relation:"relation",noGroupsAlert:"noGroupsAlert",groups:"groups",filter:"filter",displayedColumns:"displayedColumns"},outputs:{groupMoved:"groupMoved",refreshTable:"refreshTable",queryChanged:"queryChanged",downloadAll:"downloadAll"},features:[e._Bn([B.yo])],decls:38,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","indirectGroupAssigment"],["matColumnDef","name"],["matColumnDef","status"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","groupStatus"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"ngIf"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","groupName","resourceId","failureCause","status","mouseenter","mouseleave","statusChange"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"class","matTooltip","click",4,"ngIf"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-icon-button","",3,"click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"click","mouseenter","mouseleave"],[3,"disabled","displayButtons","group","mouseenter","mouseleave","moveGroup","changeNameDescription","syncGroup"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(He,Oe){if(1&He&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(re){return Oe.exportDisplayedData(re)})("exportAllData",function(re){return Oe.exportAllData(re)}),e.TgZ(2,"table",2),e.YNc(3,Fe,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,ut,3,3,"th",5),e.YNc(7,tt,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,vt,1,0,"th",8),e.YNc(10,X,2,2,"td",9),e.BQk(),e.ynx(11,10),e.YNc(12,nt,3,3,"th",5),e.YNc(13,Ae,2,1,"td",6),e.BQk(),e.ynx(14,11),e.YNc(15,ye,1,0,"th",8),e.YNc(16,Ne,3,2,"td",9),e.BQk(),e.ynx(17,12),e.YNc(18,Ce,3,3,"th",5),e.YNc(19,fe,2,2,"td",9),e.BQk(),e.ynx(20,13),e.YNc(21,r,3,3,"th",5),e.YNc(22,u,2,6,"td",14),e.BQk(),e.ynx(23,15),e.YNc(24,_,3,3,"th",5),e.YNc(25,a,3,6,"td",9),e.BQk(),e.ynx(26,16),e.YNc(27,i,3,3,"th",5),e.YNc(28,t,2,1,"td",14),e.BQk(),e.ynx(29,17),e.YNc(30,n,3,3,"th",5),e.YNc(31,s,6,8,"td",14),e.BQk(),e.ynx(32,18),e.YNc(33,l,1,0,"th",8),e.YNc(34,d,2,3,"td",9),e.BQk(),e.YNc(35,c,1,0,"tr",19),e.YNc(36,J,1,12,"tr",20),e.qZA()()(),e.YNc(37,ht,3,3,"perun-web-apps-alert",21)),2&He){let Re;e.Q6J("hidden",0===Oe.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",null!==(Re=Oe.dataSource.count)&&void 0!==Re?Re:Oe.dataSource.filteredData.length)("pageSizeOptions",Oe.pageSizeOptions)("tableId",Oe.tableId),e.xp6(1),e.Q6J("dataSource",Oe.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,We,e.Dn7(4,9,Oe.dataSource,Oe.selection.selected.length,Oe.canBeSelected))),e.xp6(32),e.Q6J("matHeaderRowDef",Oe.columns),e.xp6(1),e.Q6J("matRowDefColumns",Oe.columns),e.xp6(1),e.Q6J("ngIf",0===Oe.dataSource.filteredData.length)}},dependencies:[L.O5,O.oG,v.BZ,v.fO,v.as,v.w1,v.Dz,v.nj,v.ge,v.ev,v.XQ,v.Gk,q.rH,D.YE,D.nU,ee.w,z.Hw,ie.lW,Te.gM,pe.l,Le.i,T.Y,F.W,V.x,W.Q,te.X$,Q.f,Ee,ge.F,ve.M,De.I,he,Ye,Be.y,se,le.G,k.r],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.cursor-default[_ngcontent-%COMP%]{cursor:default}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),ne})()},58956:(Xe,ue,p)=>{"use strict";p.d(ue,{I:()=>he});var e=p(94650),A=p(35423),C=p(57851),M=p(95017);class m{constructor(Be){this.id=Be.id,this.name=Be.name,this.parentGroupId=Be.parentGroupId,this.voId=Be.voId,this.shortName=Be.shortName,this.description=Be.description,this.attributes=Be.attributes,this.beanName=Be.beanName}addChild(Be){null==this.children?this.children=[Be]:this.children.push(Be)}}var b=p(9244),D=p(21029),v=p(81591),R=p(65412),B=p(36895),w=p(56709),L=p(94364),O=p(98380),q=p(97392),ee=p(4859),z=p(10266),ie=p(67376),Te=p(13449),pe=p(34198),Le=p(55660),T=p(89383);const W=["scrollViewport"];function F(Ye,Be){if(1&Ye){const se=e.EpF();e.TgZ(0,"mat-checkbox",19),e.NdJ("change",function(){e.CHM(se);const k=e.oxw().$implicit,N=e.oxw(2);return e.KtG(N.itemSelectionToggle(k))}),e.qZA()}if(2&Ye){const se=e.oxw().$implicit,le=e.oxw(2);e.Q2q("data-cy","",se.name,"-checkbox"),e.Q6J("disabled","members"===se.fullName)("checked",le.selection.isSelected(se))("indeterminate",le.descendantsPartiallySelected(se))}}function V(Ye,Be){if(1&Ye&&(e.TgZ(0,"mat-icon",20),e._uU(1),e.qZA()),2&Ye){const se=e.oxw().$implicit,le=e.oxw(2);e.xp6(1),e.hij(" ",le.treeControl.isExpanded(se)?"expand_more":"chevron_right"," ")}}function te(Ye,Be){if(1&Ye&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&Ye){const se=e.oxw().$implicit;e.xp6(1),e.hij(" #",se.id," ")}}const Q=function(Ye,Be){return["/organizations",Ye,"groups",Be]};function Ee(Ye,Be){if(1&Ye){const se=e.EpF();e.ynx(0),e.TgZ(1,"div",6),e.YNc(2,F,1,4,"mat-checkbox",7),e.TgZ(3,"a",8),e.NdJ("auxclick",function(k){return k.preventDefault()}),e.TgZ(4,"button",9),e.NdJ("mouseenter",function(){e.CHM(se);const k=e.oxw(2);return e.KtG(k.disableRouting=!0)})("mouseleave",function(){e.CHM(se);const k=e.oxw(2);return e.KtG(k.disableRouting=!1)})("click",function(){const N=e.CHM(se).$implicit,be=e.oxw(2);return e.KtG(be.treeControl.toggle(N))}),e.YNc(5,V,2,1,"mat-icon",10),e.qZA(),e.TgZ(6,"div",11)(7,"span",12),e._uU(8),e.qZA(),e.YNc(9,te,2,1,"span",13),e.qZA(),e.TgZ(10,"div",14,15)(12,"span",16),e._uU(13),e.qZA()()(),e.TgZ(14,"div",17)(15,"perun-web-apps-group-menu",18),e.NdJ("moveGroup",function(){const N=e.CHM(se).$implicit,be=e.oxw(2);return e.KtG(be.onMoveGroup(N))})("syncGroup",function(){const N=e.CHM(se).$implicit,be=e.oxw(2);return e.KtG(be.onSyncDetail(N))})("changeNameDescription",function(){const N=e.CHM(se).$implicit,be=e.oxw(2);return e.KtG(be.onChangeNameDescription(N))}),e.qZA()()(),e.BQk()}if(2&Ye){const se=Be.$implicit,le=e.oxw(2);e.xp6(1),e.Udp("padding-left",24*se.level+"px"),e.xp6(1),e.Q6J("ngIf",!le.hideCheckbox),e.xp6(1),e.Q6J("perunWebAppsMiddleClickRouterLink",le.disableRouting?null:e.WLB(16,Q,se.voId.toString(),se.id.toString()))("routerLink",le.disableRouting?null:e.WLB(19,Q,se.voId,se.id)),e.xp6(1),e.Q6J("disabled",!se.expandable),e.uIk("aria-label","toggle "+se.name),e.xp6(1),e.Q6J("ngIf",se.expandable),e.xp6(2),e.uIk("data-cy",se.name),e.xp6(1),e.hij(" ",se.name," "),e.xp6(1),e.Q6J("ngIf",le.authResolver.isPerunAdminOrObserver()),e.xp6(3),e.s9C("matTooltip",se.description),e.xp6(1),e.hij(" ",se.description," "),e.xp6(2),e.Q6J("disabled","members"===se.fullName)("displayButtons",le.displayButtons)("group",se)}}const ge=function(Ye){return{height:Ye}};function ve(Ye,Be){if(1&Ye&&(e.TgZ(0,"div",2)(1,"cdk-virtual-scroll-viewport",3,4),e.YNc(3,Ee,16,22,"ng-container",5),e.qZA()()),2&Ye){const se=e.oxw();e.xp6(1),e.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",e.VKq(4,ge,se.getTreeViewHeight())),e.xp6(2),e.Q6J("cdkVirtualForOf",se.dataSource)}}function De(Ye,Be){1&Ye&&(e.TgZ(0,"perun-web-apps-alert",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let he=(()=>{class Ye{constructor(se,le,k){this.cd=se,this.dialog=le,this.authResolver=k,this.theme="group-theme",this.moveGroup=new e.vpe,this.refreshTable=new e.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new M.Ov(!0,[]),this.hideCheckbox=!1,this.displayButtons=window.innerWidth>600,this.treeControl=new C.C2(N=>N.level,N=>N.expandable),this.hasChild=(N,be)=>be.expandable,this.getLevel=N=>N.level,this.transformer=(N,be)=>({expandable:!!N.children&&N.children.length>0,name:N.shortName,fullName:N.name,parentGroupId:N.parentGroupId,level:be,id:N.id,voId:N.voId,attributes:N.attributes,beanName:N.beanName,description:N.description}),this.treeFlattener=new A.JZ(this.transformer,N=>N.level,N=>N.expandable,N=>N.children),this.dataSource=new A.kc(this.treeControl,this.treeFlattener)}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(se=>se.name?.toLowerCase().includes(this.filterValue.toLowerCase())||se.description?.toLowerCase().includes(this.filterValue.toLowerCase())||se.id.toString().includes(this.filterValue.toLowerCase())||se.uuid.toLowerCase().includes(this.filterValue.toLowerCase()));for(const se of this.filteredGroups)se.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,b.oU)(se.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(se){const le=(0,b.kZ)();le.width="450px",le.data={groupId:se.id,theme:this.theme},this.dialog.open(D.Bp,le)}onChangeNameDescription(se){const le=(0,b.kZ)();le.data={theme:"group-theme",group:se,dialogType:D.Eg.GROUP},this.dialog.open(D.rd,le).afterClosed().subscribe(N=>{N&&this.refreshTable.emit()})}createGroupTrees(se){const le=new Map;for(const be of se)le.set(be.id,new m(be));const k=new Set;le.forEach((be,Z,de)=>{const xe=de.get(be.parentGroupId);void 0!==xe&&(xe.addChild(be),de.set(be.parentGroupId,xe)),null!==be.parentGroupId&&void 0===xe&&k.add(be.id)});const N=[];le.forEach(be=>{(null===be.parentGroupId||k.has(be.id))&&N.push(be)}),this.dataSource.data=N,this.cd.detectChanges()}getParentNode(se){const le=this.getLevel(se);if(le<1)return null;for(let N=this.treeControl.dataNodes.indexOf(se)-1;N>=0;N--){const be=this.treeControl.dataNodes[N];if(this.getLevel(be)this.selection.isSelected(be));le&&!N&&this.selection.deselect(se)}checkAllParentsSelection(se){let le=this.getParentNode(se);for(;le;)this.checkRootNodeSelection(le),le=this.getParentNode(le);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(se){return this.treeControl.getDescendants(se).some(N=>this.selection.isSelected(N))&&!this.selection.isSelected(se)}itemSelectionToggle(se){this.selection.toggle(se);const le=this.treeControl.getDescendants(se);this.selection.isSelected(se)?this.selection.select(...le):this.selection.deselect(...le),le.every(k=>this.selection.isSelected(k)),this.checkAllParentsSelection(se)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(se,le)=>se&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,le]):(se,le)=>se&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[le]),!0)}onMoveGroup(se){this.moveGroup.emit(se)}getTreeViewHeight(){let se=0;this.scrollViewport&&(se=this.scrollViewport.getDataLength());let le=48*se;return le>672&&(le=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),String(le)+"px"}}return Ye.\u0275fac=function(se){return new(se||Ye)(e.Y36(e.sBO),e.Y36(R.uw),e.Y36(v.x4))},Ye.\u0275cmp=e.Xpm({type:Ye,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(se,le){if(1&se&&e.Gf(W,5),2&se){let k;e.iGM(k=e.CRH())&&(le.scrollViewport=k.first)}},hostBindings:function(se,le){1&se&&e.NdJ("resize",function(N){return le.shouldHideButtons(N)},!1,e.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[e.TTD],decls:2,vars:2,consts:[["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"card","mt-2"],["itemSize","48",1,"virtual-scroll-container",3,"minBufferPx","maxBufferPx","ngStyle"],["scrollViewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"node"],["color","primary","class","no-label-margin-bottom ml-4",3,"disabled","checked","indeterminate","change",4,"ngIf"],[1,"group-item-content","text-format",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],["mat-icon-button","",3,"disabled","mouseenter","mouseleave","click"],["class","mat-icon-rtl-mirror",4,"ngIf"],[1,"w-50"],[1,"mr-2"],["class","text-muted",4,"ngIf"],[1,"w-50","text-muted","description-text"],["rootDescription",""],["matTooltipPosition","before",3,"matTooltip"],[1,"group-buttons"],[3,"disabled","displayButtons","group","moveGroup","syncGroup","changeNameDescription"],["color","primary",1,"no-label-margin-bottom","ml-4",3,"disabled","checked","indeterminate","change"],[1,"mat-icon-rtl-mirror"],[1,"text-muted"],["alert_type","warn"]],template:function(se,le){1&se&&(e.YNc(0,ve,4,6,"div",0),e.YNc(1,De,3,3,"perun-web-apps-alert",1)),2&se&&(e.Q6J("ngIf",0!==le.filteredGroups.length),e.xp6(1),e.Q6J("ngIf",0===le.filteredGroups.length))},dependencies:[B.O5,B.PC,w.oG,L.yS,O.w,q.Hw,ee.lW,z.gM,ie.xd,ie.x0,ie.N7,Te.i,pe.Y,Le.Q,T.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.group-item-content[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;overflow:hidden;word-wrap:break-word}mat-tree-node[_ngcontent-%COMP%]{cursor:pointer}.description-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.virtual-scroll-container[_ngcontent-%COMP%]{overflow:auto}cdk-tree-node[_ngcontent-%COMP%]{display:block}.node[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;word-wrap:break-word;cursor:pointer}.node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),Ye})()},52314:(Xe,ue,p)=>{"use strict";p.d(ue,{X:()=>O});var e=p(81591),A=p(94650),C=p(36895),M=p(97392),m=p(28255),b=p(4859),D=p(10266),v=p(89383);const R=function(q){return{color:q}};function B(q,ee){if(1&q&&(A.TgZ(0,"button",8),A.ALo(1,"translate"),A.TgZ(2,"mat-icon",4),A._uU(3," apps "),A.qZA()()),2&q){const z=A.oxw(),ie=A.MAs(2);A.Q6J("matMenuTriggerFor",ie)("matTooltip",A.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),A.xp6(2),A.Q6J("ngStyle",A.VKq(5,R,z.iconColor))}}function w(q,ee){if(1&q&&(A.TgZ(0,"span",9),A._uU(1),A.qZA()),2&q){const z=A.oxw();A.Q6J("ngStyle",A.VKq(6,R,z.textColor)),A.xp6(1),A.xDo(" ",z.user.titleBefore," ",z.user.firstName," ",z.user.middleName," ",z.user.lastName," ",z.user.titleAfter," ")}}function L(q,ee){if(1&q){const z=A.EpF();A.TgZ(0,"button",10),A.NdJ("click",function(){A.CHM(z);const Te=A.oxw();return A.KtG(Te.onLogOut())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&q&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"NAV.LOGOUT")," "))}let O=(()=>{class q{constructor(z){this.authService=z}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return q.\u0275fac=function(z){return new(z||q)(A.Y36(e.e8))},q.\u0275cmp=A.Xpm({type:q,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(z,ie){if(1&z&&(A.YNc(0,B,4,7,"button",0),A.TgZ(1,"mat-menu",null,1)(3,"button",2),A.NdJ("click",function(){return ie.redirectToUrl()})("auxclick",function(){return ie.redirectToUrl()}),A.TgZ(4,"span"),A._uU(5),A.qZA()()(),A.TgZ(6,"button",3)(7,"mat-icon",4),A._uU(8," person "),A.qZA(),A.YNc(9,w,2,8,"span",5),A.qZA(),A.TgZ(10,"mat-menu",null,6),A.YNc(12,L,3,3,"button",7),A.qZA()),2&z){const Te=A.MAs(11);A.Q6J("ngIf",ie.url),A.xp6(5),A.Oqu(ie.label),A.xp6(1),A.Q6J("matMenuTriggerFor",Te),A.xp6(1),A.Q6J("ngStyle",A.VKq(6,R,ie.iconColor)),A.xp6(2),A.Q6J("ngIf",null!==ie.user),A.xp6(3),A.Q6J("ngIf",ie.logoutEnabled)}},dependencies:[C.O5,C.PC,M.Hw,m.VK,m.OP,m.p6,b.lW,D.gM,v.X$],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),q})()},7434:(Xe,ue,p)=>{"use strict";p.d(ue,{L:()=>B});var e=p(94650),A=p(24006),C=p(36895),M=p(59549),m=p(284),b=p(22308),D=p(89383);function v(w,L){if(1&w&&(e._UZ(0,"input",3),e.ALo(1,"translate")),2&w){const O=e.oxw();e.s9C("placeholder",e.lcZ(1,2,O.placeholder)),e.Q6J("formControl",O.formControl)}}function R(w,L){if(1&w&&(e._UZ(0,"input",4),e.ALo(1,"translate")),2&w){const O=e.oxw();e.s9C("placeholder",e.lcZ(1,2,O.placeholder)),e.Q6J("formControl",O.formControl)}}let B=(()=>{class w{constructor(){this.filter=new e.vpe,this.autoFocus=!1,this.formControl=new A.p4}ngOnInit(){this.formControl.valueChanges.subscribe(O=>{let q=O.trim();q=q.toLowerCase(),this.filter.emit(q)})}}return w.\u0275fac=function(O){return new(O||w)},w.\u0275cmp=e.Xpm({type:w,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(O,q){1&O&&(e.TgZ(0,"mat-form-field",0),e.YNc(1,v,2,4,"input",1),e.YNc(2,R,2,4,"input",2),e.qZA()),2&O&&(e.xp6(1),e.Q6J("ngIf",q.autoFocus),e.xp6(1),e.Q6J("ngIf",!q.autoFocus))},dependencies:[C.O5,A.Fj,A.JJ,M.KE,A.oH,m.Nt,b.h,D.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),w})()},93057:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>k});var e=p(94650),A=p(61744),C=p(9244),M=p(64080),m=p(30671),b=p(81591),D=p(21029),v=p(89383),R=p(65412),B=p(36895),w=p(51572),L=p(98380),O=p(97392),q=p(4859),ee=p(73546),z=p(82322),ie=p(21757),Te=p(82514),pe=p(62383),Le=p(49206);function T(N,be){1&N&&(e.TgZ(0,"mat-card-header")(1,"mat-card-title")(2,"h1",6),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&N&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")))}function W(N,be){1&N&&(e.TgZ(0,"h1",7),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&N&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP"),"\n"))}function F(N,be){if(1&N){const Z=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(xe){e.CHM(Z);const ot=e.oxw();return e.KtG(ot.groupIsSelected(xe))}),e.qZA()}if(2&N){const Z=e.oxw();e.Q6J("firstSelectedGroup",Z.selectedGroup)("groups",Z.groups)}}function V(N,be){1&N&&e._UZ(0,"mat-spinner",9)}function te(N,be){1&N&&(e.TgZ(0,"perun-web-apps-alert",10),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&N&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function Q(N,be){1&N&&e._UZ(0,"th",18)}function Ee(N,be){if(1&N&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&N){const Z=be.$implicit;e.xp6(1),e.hij("",Z,":")}}function ge(N,be){1&N&&e._UZ(0,"th",18)}function ve(N,be){if(1&N){const Z=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(Z);const xe=e.oxw(4);return e.KtG(xe.changeStatus())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function De(N,be){if(1&N&&(e.TgZ(0,"div")(1,"i"),e.ALo(2,"groupStatusIconColor"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA(),e.TgZ(5,"b",21),e._uU(6),e.ALo(7,"transformMemberStatus"),e.qZA(),e.YNc(8,ve,3,0,"button",22),e.qZA()),2&N){const Z=e.oxw(3);e.xp6(1),e.Gre("material-icons vert-center mr-1 ",e.lcZ(2,6,Z.selectedMember.groupStatus),""),e.xp6(2),e.hij(" ",e.lcZ(4,8,Z.selectedMember.groupStatus)," "),e.xp6(3),e.hij(" ",e.lcZ(7,10,Z.selectedMember.groupStatus)," "),e.xp6(2),e.Q6J("ngIf",Z.authResolver.isThisVoAdmin(Z.voId)||Z.authResolver.isThisGroupAdmin(Z.selectedGroup.id))}}function he(N,be){if(1&N){const Z=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(Z);const xe=e.oxw(4);return e.KtG(xe.changeExpiration())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function Ye(N,be){if(1&N&&(e.TgZ(0,"div")(1,"i",2),e._uU(2),e.ALo(3,"parseDate"),e.qZA(),e.YNc(4,he,3,0,"button",22),e.qZA()),2&N){const Z=e.oxw(3);e.xp6(2),e.hij(" ",e.lcZ(3,2,Z.expiration)," "),e.xp6(2),e.Q6J("ngIf",Z.authResolver.isThisVoAdmin(Z.voId)||Z.authResolver.isThisGroupAdmin(Z.selectedGroup.id))}}function Be(N,be){if(1&N&&(e.TgZ(0,"td",20),e.YNc(1,De,9,12,"div",0),e.YNc(2,Ye,5,4,"div",0),e.qZA()),2&N){const Z=be.$implicit;e.xp6(1),e.Q6J("ngIf","Status"===Z),e.xp6(1),e.Q6J("ngIf","Expiration"===Z)}}function se(N,be){1&N&&e._UZ(0,"tr",24)}function le(N,be){if(1&N&&(e.TgZ(0,"div")(1,"table",11),e.ynx(2,12),e.YNc(3,Q,1,0,"th",13),e.YNc(4,Ee,2,1,"td",14),e.BQk(),e.ynx(5,15),e.YNc(6,ge,1,0,"th",13),e.YNc(7,Be,3,2,"td",16),e.BQk(),e.YNc(8,se,1,0,"tr",17),e.qZA()()),2&N){const Z=e.oxw();e.xp6(1),e.Tol(Z.openedInDialog?"mr-auto":"ml-auto mr-auto"),e.Q6J("dataSource",Z.groupMembershipDataSource),e.xp6(7),e.Q6J("matRowDefColumns",Z.displayedColumns)}}let k=(()=>{class N{constructor(Z,de,xe,ot){this.groupsManager=Z,this.authResolver=de,this.translate=xe,this.dialog=ot,this.openedInDialog=!1,this.statusChanged=new e.vpe,this.noGroups=!1,this.groupMembershipDataSource=new m.by,this.expiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new m.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(Z=>{if(this.groups=Z,0===this.groups.length)return void(this.noGroups=!0);const de=this.findInitiallySelectedGroupId();this.groupIsSelected(de),this.initLoading=!1})}findInitiallySelectedGroupId(){if(this.recentIds=(0,C.vL)("groups"),this.recentIds){const Z=this.groups.find(de=>de.id===this.recentIds[0]);if(Z)return Z}return this.groups[0]}groupIsSelected(Z){this.loading=!0,this.selectedGroup=Z,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[M.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(de=>{this.selectedMember=de[0],this.expirationAtt=this.selectedMember.memberAttributes.find(xe=>"groupMembershipExpiration"===xe.baseFriendlyName),this.expirationAtt?(this.groupMembershipDataSource=new m.by(["Status","Expiration"]),this.expiration=this.expirationAtt.value?this.expirationAtt.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):this.groupMembershipDataSource=new m.by(["Status"]),this.loading=!1})}changeExpiration(Z=!1){const de=(0,C.kZ)();de.width="400px",de.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:Z,backButton:this.openedInDialog},this.dialog.open(D.u3,de).afterClosed().subscribe(ot=>{ot.success?(this.groupIsSelected(this.selectedGroup),this.dialog.closeAll()):Z&&this.statusChanged.emit(Z)})}changeStatus(){const Z=(0,C.kZ)();Z.width="600px",Z.data={member:this.selectedMember,voId:this.voId,groupId:this.selectedGroup.id,backButton:this.openedInDialog},this.dialog.open(D.pf,Z).afterClosed().subscribe(xe=>{xe&&(this.selectedMember=xe,this.changeExpiration(!0))})}}return N.\u0275fac=function(Z){return new(Z||N)(e.Y36(A.ff),e.Y36(b.x4),e.Y36(v.sK),e.Y36(R.uw))},N.\u0275cmp=e.Xpm({type:N,selectors:[["perun-web-apps-member-overview-groups"]],inputs:{voId:"voId",member:"member",openedInDialog:"openedInDialog"},outputs:{statusChanged:"statusChanged"},features:[e.TTD],decls:7,vars:6,consts:[[4,"ngIf"],["class","mat-dialog-title",4,"ngIf"],[1,"column-center"],[3,"firstSelectedGroup","groups","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"page-subtitle"],[1,"mat-dialog-title"],[3,"firstSelectedGroup","groups","groupSelected"],[1,"mr-auto","ml-auto"],["alert_type","warn"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-row",""]],template:function(Z,de){1&Z&&(e.YNc(0,T,5,3,"mat-card-header",0),e.YNc(1,W,3,3,"h1",1),e.TgZ(2,"mat-card-content",2),e.YNc(3,F,1,2,"perun-web-apps-group-search-select",3),e.YNc(4,V,1,0,"mat-spinner",4),e.YNc(5,te,3,3,"perun-web-apps-alert",5),e.YNc(6,le,9,4,"div",0),e.qZA()),2&Z&&(e.Q6J("ngIf",!de.openedInDialog),e.xp6(1),e.Q6J("ngIf",de.openedInDialog),e.xp6(2),e.Q6J("ngIf",!de.initLoading&&!de.openedInDialog),e.xp6(1),e.Q6J("ngIf",(de.loading||de.initLoading)&&!de.noGroups),e.xp6(1),e.Q6J("ngIf",de.noGroups),e.xp6(1),e.Q6J("ngIf",!de.loading))},dependencies:[B.O5,m.BZ,m.fO,m.w1,m.Dz,m.nj,m.ge,m.ev,m.Gk,w.Ou,L.w,O.Hw,q.lW,ee.dk,ee.dn,ee.n5,z.h,v.X$,ie.f,Te.F,pe.M,Le.r],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),N})()},12488:(Xe,ue,p)=>{"use strict";p.d(ue,{b:()=>Be});var e=p(94650),A=p(61744),C=p(9244),M=p(21029),m=p(30671),b=p(81591),D=p(64080),v=p(65412),R=p(89383),B=p(36895),w=p(51572),L=p(97392),O=p(4859),q=p(73546),ee=p(69773),z=p(21757),ie=p(38993),Te=p(62383),pe=p(49206);function Le(se,le){1&se&&(e.TgZ(0,"mat-card-header")(1,"mat-card-title")(2,"h1",3),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&se&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")," "))}function T(se,le){1&se&&(e.TgZ(0,"h1",4),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP"),"\n"))}function W(se,le){1&se&&e._UZ(0,"mat-spinner",5)}function F(se,le){1&se&&e._UZ(0,"th",13)}function V(se,le){if(1&se&&(e.TgZ(0,"td",14),e._uU(1),e.qZA()),2&se){const k=le.$implicit;e.xp6(1),e.hij("",k,":")}}function te(se,le){1&se&&e._UZ(0,"th",13)}function Q(se,le){if(1&se){const k=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){e.CHM(k);const be=e.oxw(4);return e.KtG(be.changeStatus())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function Ee(se,le){if(1&se&&(e.TgZ(0,"div")(1,"i"),e.ALo(2,"memberStatusIconColor"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA(),e.TgZ(5,"b",16),e._uU(6),e.ALo(7,"transformMemberStatus"),e.qZA(),e.YNc(8,Q,3,0,"button",17),e.ALo(9,"memberStatusDisabled"),e.qZA()),2&se){const k=e.oxw(3);e.xp6(1),e.Gre("material-icons vert-center mr-1 ",e.lcZ(2,6,k.member),""),e.xp6(2),e.hij(" ",e.lcZ(4,8,k.member.status)," "),e.xp6(3),e.hij(" ",e.lcZ(7,10,k.member.status)," "),e.xp6(2),e.Q6J("ngIf",k.authResolver.isThisVoAdmin(k.voId)&&!e.lcZ(9,12,k.member))}}function ge(se,le){if(1&se){const k=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){e.CHM(k);const be=e.oxw(4);return e.KtG(be.changeVoExpiration(!1))}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function ve(se,le){if(1&se&&(e.TgZ(0,"div")(1,"i",19),e._uU(2),e.ALo(3,"parseDate"),e.qZA(),e.YNc(4,ge,3,0,"button",17),e.ALo(5,"memberStatusDisabled"),e.qZA()),2&se){const k=e.oxw(3);e.xp6(2),e.hij(" ",e.lcZ(3,2,k.voExpiration)," "),e.xp6(2),e.Q6J("ngIf",k.authResolver.isThisVoAdmin(k.voId)&&!e.lcZ(5,4,k.member))}}function De(se,le){if(1&se&&(e.TgZ(0,"td",15),e.YNc(1,Ee,10,14,"div",0),e.YNc(2,ve,6,6,"div",0),e.qZA()),2&se){const k=le.$implicit;e.xp6(1),e.Q6J("ngIf","Status"===k),e.xp6(1),e.Q6J("ngIf","Expiration"===k)}}function he(se,le){1&se&&e._UZ(0,"tr",20)}function Ye(se,le){if(1&se&&(e.TgZ(0,"div")(1,"table",6),e.ynx(2,7),e.YNc(3,F,1,0,"th",8),e.YNc(4,V,2,1,"td",9),e.BQk(),e.ynx(5,10),e.YNc(6,te,1,0,"th",8),e.YNc(7,De,3,2,"td",11),e.BQk(),e.YNc(8,he,1,0,"tr",12),e.qZA()()),2&se){const k=e.oxw();e.xp6(1),e.Tol(k.openedInDialog?"mr-auto":"ml-auto mr-auto"),e.Q6J("dataSource",k.voMembershipDataSource),e.xp6(7),e.Q6J("matRowDefColumns",k.displayedColumns)}}let Be=(()=>{class se{constructor(k,N,be,Z,de,xe){this.dialog=k,this.authResolver=N,this.apiRequest=be,this.attributesManager=Z,this.translate=de,this.notificator=xe,this.openedInDialog=!1,this.statusChanged=new e.vpe,this.voMembershipDataSource=new m.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new m.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const k=(0,C.kZ)();k.width="600px",k.data={member:this.member,voId:this.voId,backButton:this.openedInDialog};const N=this.member.status;this.dialog.open(M.pf,k).afterClosed().subscribe(Z=>{Z&&(this.member=Z,"VALID"===N&&("EXPIRED"===Z.status||"DISABLED"===Z.status)||"VALID"===Z.status?this.changeVoExpiration(!0):this.dialog.closeAll())})}changeVoExpiration(k){const N=(0,C.kZ)();N.width="400px",N.data={voId:this.voId,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:k,backButton:this.openedInDialog},this.dialog.open(M.kZ,N).afterClosed().subscribe(Z=>{Z.success?(Z.member&&(this.member=Z.member),this.refreshVoExpiration(),this.dialog.closeAll()):k&&this.statusChanged.emit(k)})}refreshVoExpiration(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,D.r.MEMBER_DEF_EXPIRATION).subscribe({next:k=>{this.voExpirationAtt=k,this.voExpiration=k.value?k.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},error:k=>{"PrivilegeException"!==k.name?this.notificator.showError(k.name):this.voMembershipDataSource=new m.by(["Status"]),this.loading=!1}})}}return se.\u0275fac=function(k){return new(k||se)(e.Y36(v.uw),e.Y36(b.x4),e.Y36(b.F5),e.Y36(A.H8),e.Y36(R.sK),e.Y36(b.V6))},se.\u0275cmp=e.Xpm({type:se,selectors:[["perun-web-apps-member-overview-membership"]],inputs:{member:"member",voId:"voId",openedInDialog:"openedInDialog"},outputs:{statusChanged:"statusChanged"},features:[e.TTD],decls:5,vars:4,consts:[[4,"ngIf"],["class","mat-dialog-title",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[1,"page-subtitle"],[1,"mat-dialog-title"],[1,"mr-auto","ml-auto"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[1,"column-center"],["mat-row",""]],template:function(k,N){1&k&&(e.YNc(0,Le,5,3,"mat-card-header",0),e.YNc(1,T,3,3,"h1",1),e.TgZ(2,"mat-card-content"),e.YNc(3,W,1,0,"mat-spinner",2),e.YNc(4,Ye,9,4,"div",0),e.qZA()),2&k&&(e.Q6J("ngIf",!N.openedInDialog),e.xp6(1),e.Q6J("ngIf",N.openedInDialog),e.xp6(2),e.Q6J("ngIf",N.loading),e.xp6(1),e.Q6J("ngIf",!N.loading))},dependencies:[B.O5,m.BZ,m.fO,m.w1,m.Dz,m.nj,m.ge,m.ev,m.Gk,w.Ou,L.Hw,O.lW,q.dk,q.dn,q.n5,R.X$,ee.u,z.f,ie.n,Te.M,pe.r],styles:[".vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),se})()},4811:(Xe,ue,p)=>{"use strict";p.d(ue,{m:()=>n});var e=p(21029),A=p(81591),C=p(9244),M=p(96308),m=p(56451),b=p(18505),D=p(61880),v=p(94650),R=p(65412),B=p(10036),w=p(36895),L=p(56709),O=p(30671),q=p(94364),ee=p(51572),z=p(98380),ie=p(97392),Te=p(10266),pe=p(18750),Le=p(34198),T=p(55660),W=p(89383),F=p(31359),V=p(69773),te=p(21757),Q=p(12856),Ee=p(20919),ge=p(5865),ve=p(82514),De=p(96974),he=p(38993),Ye=p(86349),Be=p(9185),se=p(8231),le=p(14849);function k(o,s){1&o&&(v.TgZ(0,"div",20),v._UZ(1,"mat-spinner",21),v.qZA())}function N(o,s){if(1&o){const l=v.EpF();v.TgZ(0,"mat-checkbox",27),v.NdJ("change",function(c){v.CHM(l);const S=v.oxw(3);return v.KtG(c?S.masterToggle():null)}),v.ALo(1,"translate"),v.ALo(2,"masterCheckboxLabel"),v.qZA()}if(2&o){const l=v.oxw(2).ngIf,d=v.oxw();v.Q6J("aria-label",v.lcZ(1,3,v.lcZ(2,5,l.all)))("checked",d.selection.hasValue()&&l.all)("indeterminate",d.selection.hasValue()&&!l.all)}}function be(o,s){if(1&o&&(v.TgZ(0,"th",25),v.YNc(1,N,3,7,"mat-checkbox",26),v.qZA()),2&o){const l=v.oxw(2);v.xp6(1),v.Q6J("ngIf",l.selection.isMultipleSelection())}}const Z=function(o){return{name:o}};function de(o,s){if(1&o){const l=v.EpF();v.TgZ(0,"td",28)(1,"mat-checkbox",29),v.NdJ("change",function(c){const J=v.CHM(l).$implicit,ht=v.oxw(2);return v.KtG(c?ht.selection.toggle(J):null)})("click",function(c){return c.stopPropagation()}),v.ALo(2,"translate"),v.ALo(3,"checkboxLabel"),v.ALo(4,"userFullName"),v.ALo(5,"lowercase"),v.ALo(6,"memberStatusDisabled"),v.ALo(7,"memberCheckboxLabel"),v.qZA()()}if(2&o){const l=s.$implicit,d=v.oxw(2);v.xp6(1),v.Q2q("data-cy","",v.lcZ(5,12,l.user.firstName),"-checkbox"),v.Q6J("aria-label",v.xi3(2,5,v.lcZ(3,8,d.selection.isSelected(l)),v.VKq(20,Z,v.lcZ(4,10,l.user))))("checked",d.selection.isSelected(l))("disabled",v.xi3(6,14,l,d.groupId))("matTooltip",v.xi3(7,17,l,d.groupId))}}function xe(o,s){1&o&&(v.ynx(0,22),v.YNc(1,be,2,1,"th",23),v.YNc(2,de,8,22,"td",24),v.BQk())}function ot(o,s){1&o&&(v.TgZ(0,"th",30),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&o&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"MEMBERS_LIST.ID")))}function Fe(o,s){if(1&o&&(v.TgZ(0,"td",31),v._uU(1),v.qZA()),2&o){const l=s.$implicit;v.xp6(1),v.Oqu(l.id)}}function ut(o,s){1&o&&v._UZ(0,"th",30)}function tt(o,s){if(1&o){const l=v.EpF();v.TgZ(0,"mat-icon",34),v.NdJ("click",function(c){v.CHM(l);const S=v.oxw().$implicit,J=v.oxw();return v.KtG(J.viewMemberGroupTree(c,S))}),v.ALo(1,"translate"),v._uU(2,"transfer_within_a_station"),v.qZA()}2&o&&v.Q6J("matTooltip",v.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function vt(o,s){if(1&o&&(v.TgZ(0,"td",32),v.YNc(1,tt,3,3,"mat-icon",33),v.qZA()),2&o){const l=s.$implicit;v.xp6(1),v.Q6J("ngIf","DIRECT"!==l.membershipType)}}function X(o,s){1&o&&(v.TgZ(0,"th",30),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&o&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function nt(o,s){if(1&o&&(v.TgZ(0,"td",32),v.ALo(1,"lowercase"),v._uU(2),v.ALo(3,"userFullName"),v.qZA()),2&o){const l=s.$implicit;v.Q2q("data-cy","",v.lcZ(1,2,l.user.firstName),"-firstName-td"),v.xp6(2),v.hij(" ",v.lcZ(3,4,l.user)," ")}}function Ae(o,s){1&o&&(v.TgZ(0,"th",35),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&o&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function ye(o,s){if(1&o){const l=v.EpF();v.TgZ(0,"td",32)(1,"i",36),v.NdJ("click",function(c){const J=v.CHM(l).$implicit,ht=v.oxw();return v.KtG(ht.openMembershipDialog(c,J))}),v.ALo(2,"memberStatusIconColor"),v.ALo(3,"memberStatusTooltip"),v.TgZ(4,"span"),v._uU(5),v.ALo(6,"memberStatusIcon"),v.qZA()()()}if(2&o){const l=s.$implicit,d=v.oxw();v.xp6(1),v.Gre("material-icons ",v.lcZ(2,7,l),""),v.ekj("cursor-default",!d.expireVoAuth),v.s9C("matTooltip",v.xi3(3,9,l,!1)),v.xp6(4),v.hij(" ",v.lcZ(6,12,l.status)," ")}}function _e(o,s){1&o&&(v.TgZ(0,"th",35),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&o&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function Se(o,s){if(1&o){const l=v.EpF();v.TgZ(0,"td",32)(1,"i",36),v.NdJ("click",function(c){const J=v.CHM(l).$implicit,ht=v.oxw();return v.KtG(ht.openMembershipDialog(c,J,ht.groupId))}),v.ALo(2,"groupStatusIconColor"),v.ALo(3,"memberStatusTooltip"),v.TgZ(4,"span"),v._uU(5),v.ALo(6,"memberStatusIcon"),v.qZA()()()}if(2&o){const l=s.$implicit,d=v.oxw();v.xp6(1),v.Gre("material-icons ",v.Dn7(2,7,l.groupStatus,"INDIRECT"===l.membershipType,d.isMembersGroup),""),v.ekj("cursor-default",!d.expireGroupAuth),v.s9C("matTooltip",v.Dn7(3,11,l,!0,d.isMembersGroup)),v.xp6(4),v.hij(" ",v.lcZ(6,15,l.groupStatus)," ")}}function Ne(o,s){1&o&&(v.TgZ(0,"th",35),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&o&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function Ce(o,s){if(1&o&&(v.TgZ(0,"td",32),v._uU(1),v.ALo(2,"memberOrganization"),v.qZA()),2&o){const l=s.$implicit;v.xp6(1),v.Oqu(v.lcZ(2,1,l))}}function fe(o,s){1&o&&(v.TgZ(0,"th",35),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&o&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function r(o,s){if(1&o&&(v.TgZ(0,"td",32),v._uU(1),v.ALo(2,"memberEmail"),v.qZA()),2&o){const l=s.$implicit;v.xp6(1),v.Oqu(v.lcZ(2,1,l))}}function u(o,s){1&o&&(v.TgZ(0,"th",35),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&o&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function _(o,s){if(1&o&&(v.TgZ(0,"td",32),v._uU(1),v.ALo(2,"memberLogins"),v.qZA()),2&o){const l=s.$implicit;v.xp6(1),v.Oqu(v.lcZ(2,1,l))}}function E(o,s){1&o&&v._UZ(0,"tr",37)}const h=function(o,s){return["/organizations",o,"members",s]};function a(o,s){if(1&o&&v._UZ(0,"tr",38),2&o){const l=s.$implicit,d=v.oxw();v.ekj("cursor-pointer",d.dataSource.routeAuth)("italic_font","INDIRECT"===l.membershipType)("disable-outline",d.disableRouting||!d.dataSource.routeAuth),v.Q6J("perunWebAppsMiddleClickRouterLink",d.disableRouting||!d.dataSource.routeAuth?null:v.WLB(8,h,l.voId,l.id))("routerLink",d.disableRouting||!d.dataSource.routeAuth?null:v.WLB(11,h,l.voId,l.id))}}function i(o,s){1&o&&(v.TgZ(0,"perun-web-apps-alert",39),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&o&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}const t=function(o){return{all:o}};let n=(()=>{class o{constructor(l,d,c,S,J,ht){this.dialog=l,this.authResolver=d,this.tableCheckbox=c,this.tableConfigService=S,this.dynamicPaginatingService=J,this.entityStorage=ht,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.disableRouting=!1,this.pageSizeOptions=C.f7,this.canBeSelected=We=>!(0,C.im)(We)}static getExportDataForColumn(l,d){switch(d){case"id":return l.id.toString();case"fullName":return l.user?(0,C.bD)(l.user):"";case"status":return l.status;case"groupStatus":return l.groupStatus;case"organization":return(0,C.Gw)(l);case"email":return(0,C.g$)(l);case"logins":return(0,C.lt)(l);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,m.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,b.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.expireGroupAuth=this.authResolver.isAuthorized("setMemberGroupStatus_Member_Group_MemberGroupStatus_policy",[this.entityStorage.getEntity()]),this.expireVoAuth=this.authResolver.isAuthorized("setStatus_Member_Status_policy",[this.entityStorage.getEntity()]),this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l)),this.dataSource=new A.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.tableConfigService.getTablePageSize(this.tableId),"NAME",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadMembersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(l=>{this.canBeSelected(l)&&this.selection.select(l)})}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().filter(c=>this.canBeSelected(c)).length}openMembershipDialog(l,d,c){l.stopPropagation();const S=(0,C.zr)(d);if(c){if(!this.expireGroupAuth||this.isMembersGroup||"INDIRECT"===S)return}else if(!this.expireVoAuth||"UNALTERABLE"===S)return;const J=(0,C.kZ)();J.minWidth="280px",J.data={member:d,voId:this.voId,groupId:c},this.dialog.open(D.z,J).afterClosed().subscribe(We=>{We||this.loadMembersPage()})}loadMembersPage(){this.dataSource.loadMembers(this.voId,this.attrNames,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.child.paginator.pageIndex,this.child.paginator.pageSize,"fullName"===this.sort.active?"NAME":"ID",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}exportDisplayedData(l){(0,C.O6)((0,C.Xn)(this.dataSource.getData(),this.displayedColumns,o.getExportDataForColumn),l)}exportAllData(l){const d="asc"===this.sort.direction?"ASCENDING":"DESCENDING",c="fullName"===this.sort.active?"NAME":"ID",S=(0,C.kZ)();S.width="300px";const J=this.dialog.open(e.QQ,S);this.dataSource.getAllMembers(this.voId,this.attrNames,d,this.child.paginator.length,c,this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses).subscribe(ht=>{J.close(),(0,C.O6)((0,C.Xn)(ht,this.displayedColumns,o.getExportDataForColumn),l)})}viewMemberGroupTree(l,d){l.stopPropagation();const c=(0,C.kZ)();c.width="800px",c.data={member:d,groupId:this.groupId},this.dialog.open(e.jd,c)}}return o.\u0275fac=function(l){return new(l||o)(v.Y36(R.uw),v.Y36(A.x4),v.Y36(A.UA),v.Y36(B.dB),v.Y36(A.ly),v.Y36(A.fb))},o.\u0275cmp=v.Xpm({type:o,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(l,d){if(1&l&&(v.Gf(C.l9,7),v.Gf(M.YE,5)),2&l){let c;v.iGM(c=v.CRH())&&(d.child=c.first),v.iGM(c=v.CRH())&&(d.sort=c.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable",isMembersGroup:"isMembersGroup",disableRouting:"disableRouting"},features:[v.TTD],decls:36,vars:22,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","groupStatus"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","italic_font","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click",4,"ngIf"],[3,"matTooltip","click"],["mat-header-cell",""],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(l,d){1&l&&(v.TgZ(0,"div",0),v.ALo(1,"async"),v.TgZ(2,"perun-web-apps-table-wrapper",1),v.NdJ("exportDisplayedData",function(S){return d.exportDisplayedData(S)})("exportAllData",function(S){return d.exportAllData(S)}),v.YNc(3,k,2,0,"div",2),v.ALo(4,"async"),v.TgZ(5,"table",3),v.YNc(6,xe,3,0,"ng-container",4),v.ALo(7,"isAllSelected"),v.ynx(8,5),v.YNc(9,ot,3,3,"th",6),v.YNc(10,Fe,2,1,"td",7),v.BQk(),v.ynx(11,8),v.YNc(12,ut,1,0,"th",6),v.YNc(13,vt,2,1,"td",9),v.BQk(),v.ynx(14,10),v.YNc(15,X,3,3,"th",6),v.YNc(16,nt,4,6,"td",9),v.BQk(),v.ynx(17,11),v.YNc(18,Ae,3,3,"th",12),v.YNc(19,ye,7,14,"td",9),v.BQk(),v.ynx(20,13),v.YNc(21,_e,3,3,"th",12),v.YNc(22,Se,7,17,"td",9),v.BQk(),v.ynx(23,14),v.YNc(24,Ne,3,3,"th",12),v.YNc(25,Ce,3,3,"td",9),v.BQk(),v.ynx(26,15),v.YNc(27,fe,3,3,"th",12),v.YNc(28,r,3,3,"td",9),v.BQk(),v.ynx(29,16),v.YNc(30,u,3,3,"th",12),v.YNc(31,_,3,3,"td",9),v.BQk(),v.YNc(32,E,1,0,"tr",17),v.YNc(33,a,1,14,"tr",18),v.qZA()()(),v.YNc(34,i,3,3,"perun-web-apps-alert",19),v.ALo(35,"async")),2&l&&(v.Q6J("hidden",0===d.dataSource.allObjectCount&&!1===v.lcZ(1,10,d.dataSource.loading$)),v.xp6(2),v.Q6J("tableId",d.tableId)("dataLength",d.dataSource.allObjectCount)("pageSizeOptions",d.pageSizeOptions),v.xp6(1),v.Q6J("ngIf",v.lcZ(4,12,d.dataSource.loading$)),v.xp6(2),v.Q6J("dataSource",d.dataSource),v.xp6(1),v.Q6J("ngIf",v.VKq(20,t,v.Dn7(7,14,d.dataSource,d.selection.selected.length,d.canBeSelected))),v.xp6(26),v.Q6J("matHeaderRowDef",d.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",d.displayedColumns),v.xp6(1),v.Q6J("ngIf",0===d.dataSource.allObjectCount&&!1===v.lcZ(35,18,d.dataSource.loading$)))},dependencies:[w.O5,L.oG,O.BZ,O.fO,O.as,O.w1,O.Dz,O.nj,O.ge,O.ev,O.XQ,O.Gk,q.rH,M.YE,M.nU,ee.Ou,z.w,ie.Hw,Te.gM,pe.l,Le.Y,T.Q,w.Ov,w.i8,W.X$,F.d,V.u,te.f,Q.i,Ee.D,ge.p,ve.F,De.M,he.n,Ye.A,Be.I,se.G,le.r],styles:[".italic_font{font-style:italic}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.status-tooltip{white-space:pre-line}\n"],encapsulation:2}),o})()},38383:(Xe,ue,p)=>{"use strict";p.d(ue,{O:()=>o});var e=p(94650),A=p(96308),C=p(30671),M=p(95017),m=p(9244),b=p(21029),D=p(81591),v=p(65412),R=p(94364),B=p(36895),w=p(56709),L=p(98380),O=p(97392),q=p(10266),ee=p(18750),z=p(34198),ie=p(55660),Te=p(89383),pe=p(31359),Le=p(69773),T=p(21757),W=p(12856),F=p(20919),V=p(5865),te=p(82514),Q=p(96974),Ee=p(9185),ge=p(8231),ve=p(14849);function De(s,l){if(1&s){const d=e.EpF();e.TgZ(0,"mat-checkbox",29),e.NdJ("change",function(S){e.CHM(d);const J=e.oxw(3);return e.KtG(S?J.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&s){const d=e.oxw(2).ngIf,c=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,d.all)))("checked",c.selection.hasValue()&&d.all)("indeterminate",c.selection.hasValue()&&!d.all)}}function he(s,l){if(1&s&&(e.TgZ(0,"th",27),e.YNc(1,De,3,7,"mat-checkbox",28),e.qZA()),2&s){const d=e.oxw(2);e.xp6(1),e.Q6J("ngIf",d.selection.isMultipleSelection())}}const Ye=function(s){return{name:s}};function Be(s,l){if(1&s){const d=e.EpF();e.TgZ(0,"td",30)(1,"mat-checkbox",31),e.NdJ("change",function(S){const ht=e.CHM(d).$implicit,We=e.oxw(2);return e.KtG(S?We.selection.toggle(ht):null)})("click",function(S){return S.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.ALo(4,"userFullName"),e.ALo(5,"translate"),e.qZA()()}if(2&s){const d=l.$implicit,c=e.oxw(2);e.xp6(1),e.Q2q("data-cy","",d.user.firstName,"-checkbox"),e.Q6J("aria-label",e.xi3(2,5,e.lcZ(3,8,c.selection.isSelected(d)),e.VKq(14,Ye,e.lcZ(4,10,d))))("checked",c.selection.isSelected(d))("disabled",c.allowCheckboxDisabled&&"DIRECT"!==d.membershipType)("matTooltip",c.allowCheckboxDisabled&&"DIRECT"!==d.membershipType?e.lcZ(5,12,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function se(s,l){1&s&&(e.ynx(0,24),e.YNc(1,he,2,1,"th",25),e.YNc(2,Be,6,16,"td",26),e.BQk())}function le(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.ID")))}function k(s,l){if(1&s&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(d.id)}}function N(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.VO_ID")," "))}function be(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(d.voId)}}function Z(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.USER_ID")," "))}function de(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(d.userId)}}function xe(s,l){1&s&&e._UZ(0,"th",32)}function ot(s,l){if(1&s){const d=e.EpF();e.TgZ(0,"mat-icon",36),e.NdJ("click",function(){e.CHM(d);const S=e.oxw().$implicit,J=e.oxw();return e.KtG(J.viewMemberGroupTree(S))})("mouseenter",function(){e.CHM(d);const S=e.oxw(2);return e.KtG(S.disableRouting=!0)})("mouseleave",function(){e.CHM(d);const S=e.oxw(2);return e.KtG(S.disableRouting=S.disabledRouting)}),e.ALo(1,"translate"),e._uU(2,"transfer_within_a_station"),e.qZA()}2&s&&e.Q6J("matTooltip",e.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function Fe(s,l){if(1&s&&(e.TgZ(0,"td",34),e.YNc(1,ot,3,3,"mat-icon",35),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Q6J("ngIf","DIRECT"!==d.membershipType)}}function ut(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function tt(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d.user))}}function vt(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function X(s,l){if(1&s){const d=e.EpF();e.TgZ(0,"td",34)(1,"i",37),e.NdJ("click",function(S){const ht=e.CHM(d).$implicit,We=e.oxw();return e.KtG(We.changeStatus(S,ht))}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&s){const d=l.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,d),""),e.s9C("matTooltip",e.xi3(3,7,d,!1)),e.xp6(4),e.hij(" ",e.lcZ(6,10,d.status)," ")}}function nt(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function Ae(s,l){if(1&s){const d=e.EpF();e.TgZ(0,"td",34)(1,"i",37),e.NdJ("click",function(S){const ht=e.CHM(d).$implicit,We=e.oxw();return e.KtG(We.changeStatus(S,ht))}),e.ALo(2,"groupStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&s){const d=l.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,d.groupStatus),""),e.s9C("matTooltip",e.xi3(3,7,d,!0)),e.xp6(4),e.hij(" ",e.lcZ(6,10,d.groupStatus)," ")}}function ye(s,l){1&s&&(e.TgZ(0,"th",38),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")," "))}function _e(s,l){1&s&&(e.TgZ(0,"mat-icon"),e._uU(1,"check_circle_outline"),e.qZA())}function Se(s,l){if(1&s&&(e.TgZ(0,"td",39),e.YNc(1,_e,2,0,"mat-icon",40),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Q6J("ngIf",d.sponsored)}}function Ne(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function Ce(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"memberOrganization"),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function fe(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function r(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"memberEmail"),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function u(s,l){1&s&&(e.TgZ(0,"th",41),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function _(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"memberLogins"),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function E(s,l){1&s&&e._UZ(0,"tr",42)}const h=function(s,l){return["/organizations",s,"members",l]};function a(s,l){if(1&s&&e._UZ(0,"tr",43),2&s){const d=l.$implicit,c=e.oxw();e.ekj("cursor-pointer",!c.disabledRouting)("disable-outline",c.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",c.disableRouting?null:e.WLB(6,h,d.voId,d.id))("routerLink",c.disableRouting?null:e.WLB(9,h,d.voId,d.id))}}function i(s,l){1&s&&(e.TgZ(0,"perun-web-apps-alert",44),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function t(s,l){1&s&&(e.TgZ(0,"perun-web-apps-alert",44),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}const n=function(s){return{all:s}};let o=(()=>{class s{constructor(d,c,S,J){this.dialog=d,this.authResolver=c,this.tableCheckbox=S,this.route=J,this.selection=new M.Ov,this.displayedColumns=["checkbox","id","voId","userId","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.disableStatusChange=!1,this.disableExpirationChange=!1,this.allowCheckboxDisabled=!0,this.disableRouting=!1,this.filter="",this.updateTable=new e.vpe,this.pageSizeOptions=m.f7,this.getExportDataForColumnFun=(ht,We)=>s.getExportDataForColumn(ht,We,this.showGroupStatuses),this.getSortDataForColumnFun=(ht,We)=>s.getSortDataForColumn(ht,We,this.showGroupStatuses),this.canBeSelected=ht=>"DIRECT"===ht.membershipType}set matSort(d){this.sort=d}static getFilterDataForColumn(d,c){switch(c){case"fullName":return d.user?(0,m.bD)(d.user):"";case"email":return(0,m.g$)(d);case"logins":return(0,m.lt)(d);default:return""}}static getExportDataForColumn(d,c,S){switch(c){case"id":return d.id.toString();case"fullName":return d.user?(0,m.bD)(d.user):"";case"status":return S?d.groupStatus:d.status;case"organization":return(0,m.Gw)(d);case"email":return(0,m.g$)(d);case"logins":return(0,m.lt)(d);default:return""}}static getSortDataForColumn(d,c,S){switch(c){case"id":return d.id.toString();case"fullName":return d.user?d.user.lastName?d.user.lastName:d.user.firstName??"":"";case"status":return S?d.groupStatus:d.status;case"organization":return(0,m.Gw)(d);case"email":return(0,m.g$)(d);default:return""}}exportDisplayedData(d){const c=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,S=c+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(c,S),this.displayedColumns,this.getExportDataForColumnFun),d)}exportAllData(d){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),d)}setDataSource(){this.dataSource||(this.dataSource=new C.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(d,c)=>(0,m.Sd)(d,c,this.displayedColumns,s.getFilterDataForColumn),this.dataSource.sortData=(d,c)=>(0,m.pR)(d,c,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.members}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(d=>"id"!==d))}ngOnChanges(){this.setDataSource(),this.disabledRouting=this.disableRouting,this.route.parent?.params.subscribe(d=>{d.groupId&&(this.groupId=Number(d.groupId))})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}changeStatus(d,c){if(d.stopPropagation(),!this.disableStatusChange){const S=(0,m.kZ)();S.width="500px",S.data={member:c,disableChangeExpiration:this.disableExpirationChange},this.dialog.open(b.pf,S).afterClosed().subscribe(ht=>{ht&&this.updateTable.emit(!0)})}}viewMemberGroupTree(d){const c=(0,m.kZ)();c.width="800px",c.data={member:d,groupId:this.groupId},this.dialog.open(b.jd,c)}}return s.\u0275fac=function(d){return new(d||s)(e.Y36(v.uw),e.Y36(D.x4),e.Y36(D.UA),e.Y36(R.gz))},s.\u0275cmp=e.Xpm({type:s,selectors:[["perun-web-apps-members-list"]],viewQuery:function(d,c){if(1&d&&(e.Gf(m.l9,7),e.Gf(A.YE,7)),2&d){let S;e.iGM(S=e.CRH())&&(c.child=S.first),e.iGM(S=e.CRH())&&(c.matSort=S.first)}},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",disableStatusChange:"disableStatusChange",disableExpirationChange:"disableExpirationChange",allowCheckboxDisabled:"allowCheckboxDisabled",tableId:"tableId",disableRouting:"disableRouting",filter:"filter"},outputs:{updateTable:"updateTable"},features:[e.TTD],decls:42,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["matColumnDef","type"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","sponsored"],["class","center new-line","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],[3,"matTooltip","click","mouseenter","mouseleave"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-cell","",1,"center","new-line"],["mat-cell","",1,"center"],[4,"ngIf"],["mat-header-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(d,c){1&d&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(J){return c.exportDisplayedData(J)})("exportAllData",function(J){return c.exportAllData(J)}),e.TgZ(2,"table",2),e.YNc(3,se,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,le,3,3,"th",5),e.YNc(7,k,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,N,3,3,"th",5),e.YNc(10,be,2,1,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,Z,3,3,"th",5),e.YNc(13,de,2,1,"td",8),e.BQk(),e.ynx(14,10),e.YNc(15,xe,1,0,"th",5),e.YNc(16,Fe,2,1,"td",8),e.BQk(),e.ynx(17,11),e.YNc(18,ut,3,3,"th",5),e.YNc(19,tt,3,3,"td",8),e.BQk(),e.ynx(20,12),e.YNc(21,vt,3,3,"th",5),e.YNc(22,X,7,12,"td",8),e.BQk(),e.ynx(23,13),e.YNc(24,nt,3,3,"th",5),e.YNc(25,Ae,7,12,"td",8),e.BQk(),e.ynx(26,14),e.YNc(27,ye,3,3,"th",15),e.YNc(28,Se,2,1,"td",16),e.BQk(),e.ynx(29,17),e.YNc(30,Ne,3,3,"th",5),e.YNc(31,Ce,3,3,"td",8),e.BQk(),e.ynx(32,18),e.YNc(33,fe,3,3,"th",5),e.YNc(34,r,3,3,"td",8),e.BQk(),e.ynx(35,19),e.YNc(36,u,3,3,"th",20),e.YNc(37,_,3,3,"td",8),e.BQk(),e.YNc(38,E,1,0,"tr",21),e.YNc(39,a,1,12,"tr",22),e.qZA()()(),e.YNc(40,i,3,3,"perun-web-apps-alert",23),e.YNc(41,t,3,3,"perun-web-apps-alert",23)),2&d&&(e.Q6J("hidden",0===c.members.length||!c.dataSource||0===c.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",c.dataSource.filteredData.length)("tableId",c.tableId)("pageSizeOptions",c.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",c.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(14,n,e.Dn7(4,10,c.dataSource,c.selection.selected.length,c.canBeSelected))),e.xp6(35),e.Q6J("matHeaderRowDef",c.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",c.displayedColumns),e.xp6(1),e.Q6J("ngIf",0!==c.members.length&&0===c.dataSource.filteredData.length),e.xp6(1),e.Q6J("ngIf",0===c.members.length))},dependencies:[B.O5,w.oG,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,R.rH,A.YE,A.nU,L.w,O.Hw,q.gM,ee.l,z.Y,ie.Q,Te.X$,pe.d,Le.u,T.f,W.i,F.D,V.p,te.F,Q.M,Ee.I,ge.G,ve.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .status-tooltip{white-space:pre-line}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.center[_ngcontent-%COMP%]{text-align:center}.new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),s})()},22465:(Xe,ue,p)=>{"use strict";p.d(ue,{c:()=>w});var e=p(94650),A=p(81591),C=p(9244),M=p(21029),m=p(65412),b=p(36895),D=p(97392),v=p(89383);function R(L,O){if(1&L&&(e.TgZ(0,"div",5)(1,"mat-icon"),e._uU(2),e.qZA()()),2&L){const q=e.oxw();e.xp6(2),e.Oqu(q.data.icon)}}function B(L,O){if(1&L&&(e.TgZ(0,"div",6),e._uU(1),e.qZA()),2&L){const q=e.oxw();e.xp6(1),e.hij(" ",q.showTimestamp()," ")}}let w=(()=>{class L{constructor(q,ee){this.dialog=q,this.notificationStorageService=ee,this.newNotification=!1,this.closeNotification=new e.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const q=(0,C.kZ)();q.width="550px",q.data=this.data,q.autoFocus=!1,this.dialog.open(M.FM,q).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,C.ys)(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[q,ee]=this.data.timeStamp.split(":");return ee.length<2?q+":0"+ee:this.data.timeStamp}}return L.\u0275fac=function(q){return new(q||L)(e.Y36(m.uw),e.Y36(A.SZ))},L.\u0275cmp=e.Xpm({type:L,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(q,ee){1&q&&(e.TgZ(0,"div")(1,"div",0),e.NdJ("click",function(){return ee.alreadyClosed||ee.waiting?"":ee.closeSelf()}),e.YNc(2,R,3,1,"div",1),e.TgZ(3,"div",2),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.YNc(6,B,2,1,"div",3),e.TgZ(7,"div",4),e.NdJ("click",function(){return ee.waiting=!0,ee.doAction()}),e._uU(8),e.qZA()()()),2&q&&(e.Gre("notification ",ee.inDialog?"":"mat-elevation-z7",""),e.ekj("error","error"===ee.data.type)("success","success"===ee.data.type),e.xp6(2),e.Q6J("ngIf",null!==ee.data.icon),e.xp6(2),e.hij(" ",e.lcZ(5,12,ee.data.title)," "),e.xp6(2),e.Q6J("ngIf",ee.inDialog),e.xp6(1),e.Q6J("hidden",ee.alreadyPressed),e.xp6(1),e.hij(" ",ee.data.actionText," "))},dependencies:[b.O5,D.Hw,v.X$],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),L})()},53599:(Xe,ue,p)=>{"use strict";p.d(ue,{N:()=>Ee});var e=p(94650),A=p(61744),C=p(81591),M=p(30671),m=p(9244),b=p(21029),D=p(40034),v=p(65412),R=p(94364),B=p(36895),w=p(96308),L=p(98380),O=p(4859),q=p(89383),ee=p(34447);function z(ge,ve){1&ge&&(e.TgZ(0,"perun-web-apps-alert"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ge&&(e.xp6(1),e.Oqu(e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function ie(ge,ve){1&ge&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ge&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function Te(ge,ve){if(1&ge&&(e.TgZ(0,"td",17),e._uU(1),e.qZA()),2&ge){const De=ve.$implicit;e.xp6(1),e.Oqu(De.friendlyNameParameter)}}function pe(ge,ve){1&ge&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ge&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function Le(ge,ve){if(1&ge&&(e.TgZ(0,"td",18),e._uU(1),e.qZA()),2&ge){const De=ve.$implicit;e.xp6(1),e.Oqu(De.value)}}function T(ge,ve){1&ge&&e._UZ(0,"th",16)}function W(ge,ve){if(1&ge){const De=e.EpF();e.TgZ(0,"td",19)(1,"button",20),e.NdJ("click",function(){const Be=e.CHM(De).$implicit,se=e.oxw();return e.KtG(se.resetPassword(Be.friendlyNameParameter))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&ge){const De=ve.$implicit,he=e.oxw();e.xp6(1),e.Q6J("disabled",!he.logins.includes(De)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function F(ge,ve){1&ge&&e._UZ(0,"th",16)}function V(ge,ve){if(1&ge){const De=e.EpF();e.TgZ(0,"td",19)(1,"button",21),e.NdJ("click",function(){const Be=e.CHM(De).$implicit,se=e.oxw();return e.KtG(se.changePassword(Be))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&ge){const De=ve.$implicit,he=e.oxw();e.xp6(1),e.Q6J("disabled",!he.logins.includes(De)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function te(ge,ve){1&ge&&e._UZ(0,"tr",22)}function Q(ge,ve){1&ge&&e._UZ(0,"tr",23)}let Ee=(()=>{class ge{constructor(De,he,Ye,Be,se,le,k){this.attributesManagerService=De,this.store=he,this.dialog=Ye,this.route=Be,this.router=se,this.otherApplicationService=le,this.entityStorageService=k,this.authenticationPage=!1,this.filteredNamespaces=new e.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.getProperty("password_namespace_attributes").map(De=>{const he=De.split(":");return he[he.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe(De=>{if(this.logins=De.filter(he=>this.nameSpaces.includes(he.friendlyNameParameter)),this.filteredNamespaces.emit(De.map(he=>he.friendlyNameParameter)),this.dataSource=new M.by(De),!this.authenticationPage){const Ye=this.route.snapshot.queryParamMap.get("namespace");if(Ye){const Be=this.logins.find(se=>se.friendlyNameParameter===Ye);Be&&this.changePassword(Be)}}})}resetPassword(De){window.open(this.otherApplicationService.getUrlForOtherApplication(D.p.PwdReset,De),"_blank")}changePassword(De){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:De.friendlyNameParameter},queryParamsHandling:"merge"});const he=(0,m.kZ)();he.width="600px",he.data={login:String(De.value),namespace:De.friendlyName.split(":")[1]},this.dialog.open(b.xF,he).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return ge.\u0275fac=function(De){return new(De||ge)(e.Y36(A.H8),e.Y36(C.d6),e.Y36(v.uw),e.Y36(R.gz),e.Y36(R.F0),e.Y36(C.jq),e.Y36(C.fb))},ge.\u0275cmp=e.Xpm({type:ge,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(De,he){1&De&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA(),e.YNc(4,z,4,5,"perun-web-apps-alert",1),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),e.ynx(9,6),e.YNc(10,ie,4,5,"th",7),e.YNc(11,Te,2,1,"td",8),e.BQk(),e.ynx(12,9),e.YNc(13,pe,4,5,"th",7),e.YNc(14,Le,2,1,"td",10),e.BQk(),e.ynx(15,11),e.YNc(16,T,1,0,"th",7),e.YNc(17,W,5,6,"td",12),e.BQk(),e.ynx(18,13),e.YNc(19,F,1,0,"th",7),e.YNc(20,V,5,6,"td",12),e.BQk(),e.YNc(21,te,1,0,"tr",14),e.YNc(22,Q,1,0,"tr",15),e.qZA()()()()),2&De&&(e.xp6(1),e.hij(" ",he.authenticationPage?"":e.lcZ(2,5,e.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),e.xp6(3),e.Q6J("ngIf",!he.logins.length&&!he.authenticationPage),e.xp6(4),e.Q6J("dataSource",he.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",he.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",he.displayedColumns))},dependencies:[B.O5,M.BZ,M.fO,M.as,M.w1,M.Dz,M.nj,M.ge,M.ev,M.XQ,M.Gk,w.YE,L.w,O.lW,q.X$,ee.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),ge})()},41619:(Xe,ue,p)=>{"use strict";p.d(ue,{$:()=>Be});var e=p(81591),A=p(61744),C=p(94650),M=p(65412),m=p(89383),b=p(36895),D=p(24006),v=p(4859),R=p(59549),B=p(284);function w(se,le){1&se&&(C.TgZ(0,"mat-error"),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&se&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let L=(()=>{class se{constructor(k,N,be,Z,de){this.dialogRef=k,this.translate=N,this.notificator=be,this.rtMessages=Z,this.storeService=de,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(k=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(k.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",p(4147).i8)}close(){this.dialogRef.close()}}return se.\u0275fac=function(k){return new(k||se)(C.Y36(M.so),C.Y36(m.sK),C.Y36(e.V6),C.Y36(A.Hr),C.Y36(e.d6))},se.\u0275cmp=C.Xpm({type:se,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(k,N){if(1&k&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),C._uU(6),C.ALo(7,"translate"),C.qZA(),C.TgZ(8,"input",2,3),C.NdJ("ngModelChange",function(Z){return N.subject=Z}),C.qZA(),C.YNc(10,w,3,3,"mat-error",4),C.qZA(),C.TgZ(11,"mat-form-field")(12,"mat-label"),C._uU(13),C.ALo(14,"translate"),C.qZA(),C.TgZ(15,"textarea",5),C.NdJ("ngModelChange",function(Z){return N.message=Z}),C.ALo(16,"translate"),C._uU(17," "),C.qZA(),C.TgZ(18,"mat-hint"),C._uU(19),C.ALo(20,"translate"),C.qZA()()(),C.TgZ(21,"div",6)(22,"div",7)(23,"button",8),C.NdJ("click",function(){return N.close()}),C._uU(24),C.ALo(25,"translate"),C.qZA(),C.TgZ(26,"button",9),C.NdJ("click",function(){return N.sendBugReport()}),C._uU(27),C.ALo(28,"translate"),C.qZA()()()),2&k){const be=C.MAs(9);C.xp6(1),C.Oqu(C.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),C.xp6(5),C.Oqu(C.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),C.xp6(2),C.Q6J("ngModel",N.subject),C.xp6(2),C.Q6J("ngIf",be.invalid),C.xp6(3),C.Oqu(C.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),C.xp6(2),C.s9C("placeholder",C.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),C.Q6J("ngModel",N.message),C.xp6(4),C.Oqu(C.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),C.xp6(5),C.hij(" ",C.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),C.xp6(2),C.Q6J("disabled",be.invalid),C.xp6(1),C.hij(" ",C.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[b.O5,D.Fj,D.JJ,D.Q7,D.On,v.lW,R.TO,R.KE,R.bx,R.hX,B.Nt,M.uh,M.xY,M.H8,m.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),se})();var O=p(9244);let q=(()=>{class se{transform(k,N,be){return k[`${be}_${N}`]}}return se.\u0275fac=function(k){return new(k||se)},se.\u0275pipe=C.Yjl({name:"localisedText",type:se,pure:!0}),se})(),ee=(()=>{class se{transform(k,N){return k["link_"+N]||k.link_en}}return se.\u0275fac=function(k){return new(k||se)},se.\u0275pipe=C.Yjl({name:"localisedLink",type:se,pure:!0}),se})(),z=(()=>{class se{transform(k){return k.includes("/")?k:"/assets/config/"+k}}return se.\u0275fac=function(k){return new(k||se)},se.\u0275pipe=C.Yjl({name:"footerLogoPath",type:se,pure:!0}),se})();function ie(se,le){if(1&se&&(C.TgZ(0,"a",13),C.ALo(1,"localisedLink"),C._UZ(2,"img",14),C.ALo(3,"footerLogoPath"),C.qZA()),2&se){const k=C.oxw().$implicit,N=C.oxw(3);C.Q6J("href",C.xi3(1,2,k,N.language),C.LSH),C.xp6(2),C.s9C("src",C.lcZ(3,5,k.logo),C.LSH)}}function Te(se,le){if(1&se&&(C.TgZ(0,"span"),C._UZ(1,"img",14),C.ALo(2,"footerLogoPath"),C.qZA()),2&se){const k=C.oxw().$implicit;C.xp6(1),C.s9C("src",C.lcZ(2,1,k.logo),C.LSH)}}function pe(se,le){if(1&se&&(C.TgZ(0,"div"),C.YNc(1,ie,4,7,"a",11),C.ALo(2,"localisedLink"),C.YNc(3,Te,3,3,"span",12),C.ALo(4,"localisedLink"),C.qZA()),2&se){const k=le.$implicit,N=C.oxw(3);C.xp6(1),C.Q6J("ngIf",C.xi3(2,2,k,N.language)),C.xp6(2),C.Q6J("ngIf",!C.xi3(4,5,k,N.language))}}const Le=function(se){return{"min-height":se}};function T(se,le){if(1&se&&(C.TgZ(0,"div",10),C.YNc(1,pe,5,8,"div",5),C.qZA()),2&se){const k=C.oxw().$implicit,N=C.oxw();C.Q6J("ngStyle",C.VKq(2,Le,N.columnContentHeight+"px")),C.xp6(1),C.Q6J("ngForOf",k.elements)}}const W=function(se){return{color:se}};function F(se,le){if(1&se&&(C.TgZ(0,"i",20),C._uU(1),C.qZA()),2&se){const k=C.oxw().$implicit,N=C.oxw(3);C.Q6J("ngStyle",C.VKq(2,W,N.linksTextColor)),C.xp6(1),C.hij(" ",k.icon," ")}}function V(se,le){if(1&se){const k=C.EpF();C.TgZ(0,"span",21),C.NdJ("click",function(){C.CHM(k);const be=C.oxw().$implicit,Z=C.oxw(3);return C.KtG(Z.openDialog(be.dialog))}),C._uU(1),C.ALo(2,"localisedText"),C.qZA()}if(2&se){const k=C.oxw().$implicit,N=C.oxw(3);C.Q6J("ngStyle",C.VKq(6,W,N.linksTextColor)),C.xp6(1),C.hij("",C.Dn7(2,2,k,N.language,"label")," ")}}function te(se,le){if(1&se&&(C.TgZ(0,"a",22),C.ALo(1,"localisedLink"),C._uU(2),C.ALo(3,"localisedText"),C.qZA()),2&se){const k=C.oxw().$implicit,N=C.oxw(3);C.Q6J("href",C.xi3(1,3,k,N.language),C.LSH)("ngStyle",C.VKq(10,W,N.linksTextColor)),C.xp6(2),C.Oqu(C.Dn7(3,6,k,N.language,"label"))}}function Q(se,le){if(1&se&&(C.TgZ(0,"span",10),C._uU(1),C.ALo(2,"localisedText"),C.qZA()),2&se){const k=C.oxw().$implicit,N=C.oxw(3);C.Q6J("ngStyle",C.VKq(6,W,N.linksTextColor)),C.xp6(1),C.Oqu(C.Dn7(2,2,k,N.language,"label"))}}function Ee(se,le){if(1&se&&(C.TgZ(0,"div",16),C.YNc(1,F,2,4,"i",17),C.YNc(2,V,3,8,"span",18),C.YNc(3,te,4,12,"a",19),C.ALo(4,"localisedLink"),C.YNc(5,Q,3,8,"span",9),C.ALo(6,"localisedLink"),C.qZA()),2&se){const k=le.$implicit,N=C.oxw(3);C.xp6(1),C.Q6J("ngIf",k.icon),C.xp6(1),C.Q6J("ngIf",k.dialog),C.xp6(1),C.Q6J("ngIf",C.xi3(4,4,k,N.language)&&!k.dialog),C.xp6(2),C.Q6J("ngIf",!C.xi3(6,7,k,N.language)&&!k.dialog)}}const ge=function(se){return{height:se}};function ve(se,le){if(1&se&&(C.TgZ(0,"div",10),C.YNc(1,Ee,7,10,"div",15),C.qZA()),2&se){const k=C.oxw().$implicit,N=C.oxw();C.Q6J("ngStyle",C.VKq(2,ge,N.columnContentHeight+"px")),C.xp6(1),C.Q6J("ngForOf",k.elements)}}function De(se,le){if(1&se&&(C.TgZ(0,"div",7)(1,"h6",8),C._uU(2),C.ALo(3,"localisedText"),C.qZA(),C.YNc(4,T,2,4,"div",9),C.YNc(5,ve,2,4,"div",9),C.qZA()),2&se){const k=le.$implicit,N=C.oxw();C.ekj("my-auto",N.containsLogos),C.xp6(1),C.Q6J("ngStyle",C.VKq(10,W,N.headersTextColor)),C.xp6(1),C.hij(" ",C.Dn7(3,6,k,N.language,"title")," "),C.xp6(2),C.Q6J("ngIf",k.logos),C.xp6(1),C.Q6J("ngIf",k.elements&&!k.logos)}}function he(se,le){if(1&se&&(C.TgZ(0,"span")(1,"a",6),C._uU(2),C.qZA()()),2&se){const k=le.$implicit,N=le.index,be=C.oxw();C.xp6(1),C.Q6J("href",k.url,C.LSH)("ngStyle",C.VKq(3,W,be.copyrightTextColor)),C.xp6(1),C.Oqu(N?", "+k.name:k.name)}}const Ye=function(se){return{background:se}};let Be=(()=>{class se{constructor(k,N,be,Z){this.storeService=k,this.translateService=N,this.utilsService=be,this.dialog=Z,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="N/A",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(k=>{this.language=k.lang}),this.version=p(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=p(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(k=>{const N=k.match("\\bVersion:\\s*([^,\\s]+)");null!==N&&(this.backendVersion=N[1])}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const k of this.footerColumns)k.logos?this.containsLogos=!0:25*k.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*k.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(k){const N=(0,O.kZ)();"reportIssue"===k&&(N.width="550px",this.dialog.open(L,N))}}return se.\u0275fac=function(k){return new(k||se)(C.Y36(e.d6),C.Y36(m.sK),C.Y36(A.FW),C.Y36(M.uw))},se.\u0275cmp=C.Xpm({type:se,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(k,N){1&k&&(C.TgZ(0,"footer",0)(1,"div",1),C.YNc(2,De,6,12,"div",2),C.qZA(),C._UZ(3,"hr",3),C.TgZ(4,"div",4),C._uU(5),C.YNc(6,he,3,5,"span",5),C._uU(7,", web application: "),C.TgZ(8,"a",6),C._uU(9),C.qZA(),C._uU(10,", server: "),C.TgZ(11,"a",6),C._uU(12),C.qZA()()()),2&k&&(C.Q6J("ngStyle",C.VKq(11,Ye,N.bgColor)),C.xp6(2),C.Q6J("ngForOf",N.footerColumns),C.xp6(2),C.Q6J("ngStyle",C.VKq(13,W,N.copyrightTextColor)),C.xp6(1),C.hij(" \xa9 ",N.currentYear," Copyright: "),C.xp6(1),C.Q6J("ngForOf",N.copyrightItems),C.xp6(2),C.Q6J("href",N.githubRepository,C.LSH)("ngStyle",C.VKq(15,W,N.copyrightTextColor)),C.xp6(1),C.Oqu(N.guiVersion),C.xp6(2),C.Q6J("href",N.githubBackendRepository,C.LSH)("ngStyle",C.VKq(17,W,N.copyrightTextColor)),C.xp6(1),C.Oqu(N.backendVersion))},dependencies:[b.sg,b.O5,b.PC,q,ee,z],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),se})()},46453:(Xe,ue,p)=>{"use strict";p.d(ue,{Y:()=>Ee});var e=p(94650),A=p(81591),C=p(9244),M=p(21029),m=p(40034),b=p(11481),D=p(89383),v=p(65412),R=p(94364),B=p(36895),w=p(97392),L=p(28255),O=p(4859),q=p(10266),ee=p(83683),z=p(42673),ie=p(52314),Te=p(55660);const pe=function(ge){return{color:ge}};function Le(ge,ve){if(1&ge){const De=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM(De);const Ye=e.oxw();return e.KtG(Ye.onToggleSidenav())}),e.TgZ(1,"mat-icon"),e._uU(2,"menu"),e.qZA()()}if(2&ge){const De=e.oxw();e.Q6J("ngStyle",e.VKq(1,pe,De.iconColor))}}function T(ge,ve){if(1&ge){const De=e.EpF();e.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),e._uU(3," language "),e.qZA()(),e.TgZ(4,"mat-menu",null,13)(6,"button",14),e.NdJ("click",function(){e.CHM(De);const Ye=e.oxw();return e.KtG(Ye.changeLanguage())}),e._uU(7),e.ALo(8,"translate"),e.qZA()()()}if(2&ge){const De=e.MAs(5),he=e.oxw();e.Q6J("ngStyle",e.VKq(6,pe,he.textColor)),e.xp6(1),e.Q6J("matMenuTriggerFor",De),e.xp6(1),e.Q6J("ngStyle",e.VKq(8,pe,he.iconColor)),e.xp6(5),e.hij(" ",e.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function W(ge,ve){if(1&ge){const De=e.EpF();e.TgZ(0,"button",15),e.NdJ("click",function(){e.CHM(De);const Ye=e.oxw();return e.KtG(Ye.showNotificationHistory())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",16),e._uU(3),e.qZA()()}if(2&ge){const De=e.oxw();e.Q6J("matTooltip",e.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),e.xp6(2),e.s9C("matBadge",De.getNewNotificationsCount()>5?"5+":De.getNewNotificationsCount()),e.Q6J("ngStyle",e.VKq(7,pe,De.iconColor))("matBadgeHidden",0===De.getNewNotificationsCount()),e.xp6(1),e.hij(" ",De.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function F(ge,ve){if(1&ge&&e._UZ(0,"perun-web-apps-header-menu",17),2&ge){const De=e.oxw();e.Q6J("url",De.otherAppUrl)("label",De.otherAppLabel)("user",De.principal.user)("logoutEnabled",De.logoutEnabled)("iconColor",De.iconColor)("textColor",De.textColor)}}const V=function(ge){return{background:ge}},te=function(){return[]},Q=function(){return["/"]};let Ee=(()=>{class ge{constructor(De,he,Ye,Be,se,le,k){this.storeService=De,this.sanitizer=he,this.translateService=Ye,this.otherApplicationService=Be,this.notificationStorageService=se,this.dialog=le,this.route=k,this.sidenavToggle=new e.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(De=>{this.label=this.storeService.getProperty("en"===De.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(De.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(De="en"){return this.storeService.getProperty(this.otherApp===m.p.Profile?"profile_label_en":"en"===De?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===m.p.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const De in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(De)&&(this.activeLink=!0)}(this.otherApp!==m.p.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const De=(0,C.kZ)();De.width="520px",this.dialog.open(M.Us,De)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return ge.\u0275fac=function(De){return new(De||ge)(e.Y36(A.d6),e.Y36(b.H7),e.Y36(D.sK),e.Y36(A.jq),e.Y36(A.SZ),e.Y36(v.uw),e.Y36(R.gz))},ge.\u0275cmp=e.Xpm({type:ge,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(De,he){1&De&&(e.TgZ(0,"mat-toolbar",0)(1,"div",1),e.YNc(2,Le,3,3,"button",2),e._UZ(3,"a",3),e.TgZ(4,"p",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5),e.YNc(7,T,9,10,"div",6),e.YNc(8,W,4,9,"button",7),e.YNc(9,F,1,6,"perun-web-apps-header-menu",8),e.qZA()()),2&De&&(e.Q6J("ngStyle",e.VKq(11,V,he.bgColor)),e.xp6(2),e.Q6J("ngIf",he.showToggle),e.xp6(1),e.Q6J("innerHTML",he.logo,e.oJD)("routerLink",he.disableLogo?e.DdM(13,te):e.DdM(14,Q))("queryParams",he.route.snapshot.queryParams),e.xp6(1),e.Q6J("ngStyle",e.VKq(15,pe,he.textColor)),e.xp6(1),e.hij(" ",he.label," "),e.xp6(1),e.Q6J("ngStyle",e.VKq(17,pe,he.navTextColor)),e.xp6(1),e.Q6J("ngIf",he.showLanguageMenu),e.xp6(1),e.Q6J("ngIf",he.showNotifications),e.xp6(1),e.Q6J("ngIf",he.showHeaderMenu))},dependencies:[B.O5,B.PC,R.yS,w.Hw,L.VK,L.OP,L.p6,O.lW,q.gM,ee.Ye,z.k,ie.X,Te.Q,D.X$],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),ge})()},10441:(Xe,ue,p)=>{"use strict";p.d(ue,{W:()=>D});var e=p(94650),A=p(36895),C=p(97392),M=p(10266),m=p(89383);function b(v,R){1&v&&(e.TgZ(0,"mat-icon",1),e.ALo(1,"translate"),e._uU(2," visibility\n"),e.qZA()),2&v&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let D=(()=>{class v{constructor(){this.recentIds=[]}}return v.\u0275fac=function(B){return new(B||v)},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(B,w){1&B&&e.YNc(0,b,3,3,"mat-icon",0),2&B&&e.Q6J("ngIf",w.recentIds.indexOf(w.id)>-1)},dependencies:[A.O5,C.Hw,M.gM,m.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),v})()},96214:(Xe,ue,p)=>{"use strict";p.d(ue,{t:()=>b});var e=p(94650),A=p(97392),C=p(4859),M=p(10266),m=p(89383);let b=(()=>{class D{constructor(){this.refresh=new e.vpe}onClickbutton(R){this.refresh.emit(R)}}return D.\u0275fac=function(R){return new(R||D)},D.\u0275cmp=e.Xpm({type:D,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(R,B){1&R&&(e.TgZ(0,"button",0),e.NdJ("click",function(L){return B.onClickbutton(L)}),e.ALo(1,"translate"),e._UZ(2,"mat-icon",1),e.qZA()),2&R&&(e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),e.Q6J("disabled",B.disabled),e.xp6(2),e.s9C("svgIcon",B.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},dependencies:[A.Hw,C.lW,M.gM,m.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),D})()},45703:(Xe,ue,p)=>{"use strict";p.d(ue,{L:()=>m});var e=p(94650),A=p(9244),C=p(89593),M=p(89383);let m=(()=>{class b{constructor(){this.resource=null,this.displayStatus=!0,this.disableAutoSelect=!1,this.resourceSelected=new e.vpe,this.nameFunction=v=>v.name,this.secondaryFunction=()=>null}ngOnInit(){this.resources=this.resources.sort(A.aC)}}return b.\u0275fac=function(v){return new(v||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resource:"resource",resources:"resources",displayStatus:"displayStatus",disableAutoSelect:"disableAutoSelect"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:16,consts:[[3,"entity","entities","disableAutoSelect","displayStatus","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(v,R){1&v&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(w){return R.resourceSelected.emit(w)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&v&&e.Q6J("entity",R.resource)("entities",R.resources)("disableAutoSelect",R.disableAutoSelect)("displayStatus",R.displayStatus)("searchFunction",R.nameFunction)("mainTextFunction",R.nameFunction)("secondaryTextFunction",R.secondaryFunction)("selectPlaceholder",e.lcZ(1,10,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",e.lcZ(2,12,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",e.lcZ(3,14,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},dependencies:[C.i,M.X$]}),b})()},62109:(Xe,ue,p)=>{"use strict";p.d(ue,{C:()=>_});var e=p(94650),A=p(96308),C=p(30671),M=p(95017),m=p(9244),b=p(81591),D=p(36895),v=p(56709),R=p(94364),B=p(98380),w=p(97392),L=p(10266),O=p(18750),q=p(34198),ee=p(55660),z=p(10441),ie=p(8223),Te=p(89383);let pe=(()=>{class E{transform(a){if(null==a)return null;let t="";return a.forEach(function(n){t=t.concat(n.tagName)}),t}}return E.\u0275fac=function(a){return new(a||E)},E.\u0275pipe=e.Yjl({name:"resourceTagsToString",type:E,pure:!0}),E})();var Le=p(82895),T=p(9185),W=p(8231),F=p(14849);function V(E,h){if(1&E){const a=e.EpF();e.TgZ(0,"mat-checkbox",27),e.NdJ("change",function(t){e.CHM(a);const n=e.oxw(3);return e.KtG(t?n.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&E){const a=e.oxw(2).ngIf,i=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,a.all)))("checked",i.selection.hasValue()&&a.all)("indeterminate",i.selection.hasValue()&&!a.all)}}function te(E,h){if(1&E&&(e.TgZ(0,"th",25),e.YNc(1,V,3,7,"mat-checkbox",26),e.qZA()),2&E){const a=e.oxw(2);e.xp6(1),e.Q6J("ngIf",a.selection.isMultipleSelection())}}const Q=function(E){return{name:E}};function Ee(E,h){if(1&E){const a=e.EpF();e.TgZ(0,"td",28)(1,"span",29),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",30),e.NdJ("change",function(t){const o=e.CHM(a).$implicit,s=e.oxw(2);return e.KtG(t?s.itemSelectionToggle(o):null)})("click",function(t){return t.stopPropagation()}),e.ALo(4,"translate"),e.ALo(5,"checkboxLabel"),e.qZA()()()}if(2&E){const a=h.$implicit,i=e.oxw(2);e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!i.disableSelect(a)),e.xp6(2),e.Q2q("data-cy","",a.name,"-checkbox"),e.Q6J("aria-label",e.xi3(4,9,e.lcZ(5,12,i.selection.isSelected(a)),e.VKq(14,Q,a.name)))("checked",i.selection.isSelected(a))("disabled",i.disableSelect(a))}}function ge(E,h){1&E&&(e.ynx(0,22),e.YNc(1,te,2,1,"th",23),e.YNc(2,Ee,6,16,"td",24),e.BQk())}function ve(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function De(E,h){if(1&E&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&E){const a=h.$implicit;e.xp6(1),e.Oqu(a.id)}}function he(E,h){1&E&&e._UZ(0,"th",33)}function Ye(E,h){if(1&E&&(e.TgZ(0,"td",34),e._UZ(1,"perun-web-apps-recently-viewed-icon",35),e.qZA()),2&E){const a=h.$implicit,i=e.oxw();e.xp6(1),e.Q6J("recentIds",i.recentIds)("id",a.id)}}function Be(E,h){1&E&&e._UZ(0,"th",33)}function se(E,h){1&E&&(e.TgZ(0,"mat-icon",37),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&E&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function le(E,h){if(1&E&&(e.TgZ(0,"td",34),e.YNc(1,se,3,3,"mat-icon",36),e.qZA()),2&E){const a=h.$implicit;e.xp6(1),e.Q6J("ngIf",a.sourceGroupId)}}function k(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function N(E,h){if(1&E&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&E){const a=h.$implicit;e.uIk("data-cy",a.name),e.xp6(1),e.hij(" ",a.name," ")}}function be(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function Z(E,h){if(1&E&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&E){const a=h.$implicit;e.xp6(1),e.Oqu(a.vo.name)}}function de(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function xe(E,h){if(1&E&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&E){const a=h.$implicit;e.xp6(1),e.Oqu(a.voId)}}function ot(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function Fe(E,h){if(1&E){const a=e.EpF();e.TgZ(0,"td",34)(1,"perun-web-apps-group-resource-status",38),e.NdJ("mouseenter",function(){e.CHM(a);const t=e.oxw();return e.KtG(t.disabledRouting=!0)})("mouseleave",function(){e.CHM(a);const t=e.oxw();return e.KtG(t.disabledRouting=t.disableRouting)})("statusChange",function(){e.CHM(a);const t=e.oxw();return e.KtG(t.refreshTable.emit())}),e.qZA()()}if(2&E){const a=h.$implicit,i=e.oxw();e.xp6(1),e.Q6J("theme","group-theme")("resourceId",a.id)("groupId",i.groupId)("failureCause",a.failureCause)("status",a.status)}}function ut(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function tt(E,h){if(1&E&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&E){const a=h.$implicit;e.xp6(1),e.Oqu(a.facility.name)}}function vt(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function X(E,h){if(1&E&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&E){const a=h.$implicit;e.xp6(1),e.Oqu(a.facilityId)}}function nt(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function Ae(E,h){if(1&E&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"resourceTagsToString"),e.qZA()),2&E){const a=h.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,a.resourceTags)," ")}}function ye(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function _e(E,h){if(1&E&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&E){const a=h.$implicit;e.xp6(1),e.Oqu(a.description)}}function Se(E,h){1&E&&e._UZ(0,"tr",39)}const Ne=function(E){return[E]};function Ce(E,h){if(1&E&&(e._UZ(0,"tr",40),e.ALo(1,"getResourceRoute"),e.ALo(2,"getResourceRoute")),2&E){const a=h.$implicit,i=e.oxw();e.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disabledRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(12,Ne,i.disabledRouting?null:e.xi3(1,6,a,i.routingVo)))("routerLink",i.disabledRouting?null:e.xi3(2,9,a,i.routingVo))}}function fe(E,h){1&E&&(e.TgZ(0,"perun-web-apps-alert",41),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function r(E,h){1&E&&(e.TgZ(0,"perun-web-apps-alert",41),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}const u=function(E){return{all:E}};let _=(()=>{class E{constructor(a,i){this.guiAuthResolver=a,this.tableCheckbox=i,this.resources=[],this.selection=new M.Ov(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=m.f7,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new e.vpe,this.allSelected=new e.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(t,n)=>E.getDataForColumn(t,n,this.recentIds),this.canBeSelected=t=>!this.disableSelect(t)}set matSort(a){this.sort=a}static getDataForColumn(a,i,t){switch(i){case"id":return a.id.toString();case"vo":return a.vo.name;case"name":return a.name;case"facility":return a.facility.name;case"description":return a.description;case"recent":return t&&t.includes(a.id)?"#".repeat(t.indexOf(a.id)):a.name;case"tags":{if(!a.resourceTags)return a[i];let o="";return a.resourceTags.forEach(function(s){o=o.concat(s.tagName)}),o}case"status":return a.status;case"uuid":return a.uuid;default:return a[i]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(a=>"id"!==a)),this.setDataSource(),this.setAuth()}exportAllData(a){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),a)}exportDisplayedData(a){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,t=i+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,t),this.displayedColumns,this.getDataForColumnFun),a)}setDataSource(){this.dataSource||(this.dataSource=new C.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(a,i)=>(0,m.Sd)(a,i,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(a,i)=>(0,m.pR)(a,i,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const a=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected);return this.allSelected.emit(a),a}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}setAuth(){const a=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((i,t)=>i&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",a.concat([t])),!0),this.addAuth=this.selection.selected.reduce((i,t)=>i&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",a.concat([t])),!0)}itemSelectionToggle(a){this.selection.toggle(a),this.setAuth()}disableSelect(a){return this.resourcesToDisableCheckbox.has(a.id)}}return E.\u0275fac=function(a){return new(a||E)(e.Y36(b.x4),e.Y36(b.UA))},E.\u0275cmp=e.Xpm({type:E,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(a,i){if(1&a&&(e.Gf(m.l9,7),e.Gf(A.YE,7)),2&a){let t;e.iGM(t=e.CRH())&&(i.child=t.first),e.iGM(t=e.CRH())&&(i.matSort=t.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[e.TTD],decls:42,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(a,i){1&a&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(n){return i.exportDisplayedData(n)})("exportAllData",function(n){return i.exportAllData(n)}),e.TgZ(2,"table",2),e.YNc(3,ge,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,ve,3,3,"th",5),e.YNc(7,De,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,he,1,0,"th",8),e.YNc(10,Ye,2,2,"td",9),e.BQk(),e.ynx(11,10),e.YNc(12,Be,1,0,"th",8),e.YNc(13,le,2,1,"td",9),e.BQk(),e.ynx(14,11),e.YNc(15,k,3,3,"th",5),e.YNc(16,N,2,2,"td",9),e.BQk(),e.ynx(17,12),e.YNc(18,be,3,3,"th",5),e.YNc(19,Z,2,1,"td",9),e.BQk(),e.ynx(20,13),e.YNc(21,de,3,3,"th",5),e.YNc(22,xe,2,1,"td",9),e.BQk(),e.ynx(23,14),e.YNc(24,ot,3,3,"th",5),e.YNc(25,Fe,2,5,"td",9),e.BQk(),e.ynx(26,15),e.YNc(27,ut,3,3,"th",5),e.YNc(28,tt,2,1,"td",9),e.BQk(),e.ynx(29,16),e.YNc(30,vt,3,3,"th",5),e.YNc(31,X,2,1,"td",9),e.BQk(),e.ynx(32,17),e.YNc(33,nt,3,3,"th",5),e.YNc(34,Ae,3,3,"td",9),e.BQk(),e.ynx(35,18),e.YNc(36,ye,3,3,"th",5),e.YNc(37,_e,2,1,"td",9),e.BQk(),e.YNc(38,Se,1,0,"tr",19),e.YNc(39,Ce,3,14,"tr",20),e.qZA()()(),e.YNc(40,fe,3,3,"perun-web-apps-alert",21),e.YNc(41,r,3,3,"perun-web-apps-alert",21)),2&a&&(e.Q6J("hidden",0===i.dataSource.filteredData.length||0===i.resources.length),e.xp6(1),e.Q6J("dataLength",i.dataSource.filteredData.length)("tableId",i.tableId)("pageSizeOptions",i.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",i.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(14,u,e.Dn7(4,10,i.dataSource,i.selection.selected.length,i.canBeSelected))),e.xp6(35),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.resources.length),e.xp6(1),e.Q6J("ngIf",0===i.resources.length))},dependencies:[D.O5,v.oG,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,R.rH,A.YE,A.nU,B.w,w.Hw,L.gM,O.l,q.Y,z.W,ie.x,ee.Q,Te.X$,pe,Le.r,T.I,W.G,F.r],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),E})()},52170:(Xe,ue,p)=>{"use strict";p.d(ue,{$x:()=>b,qG:()=>m});var e=p(94650),A=p(89383),C=p(89593);class M{constructor(v,R){this.value=R,this.displayName=v}}var m=(()=>{return(D=m||(m={}))[D.SOURCE=0]="SOURCE",D[D.DESTINATION=1]="DESTINATION",D[D.FEDERATION=2]="FEDERATION",m;var D})();let b=(()=>{class D{constructor(R){this.translateService=R,this.attributes=[],this.asGroup=!1,this.itemSelected=new e.vpe,this.items=[],this.nameFunction=B=>B.displayName,this.shortNameFunction=()=>null,this.searchFunction=B=>B.displayName}static getDefinition(R){const B=R.namespace.split(":");return null===B[4]?"null":B[4]}ngOnInit(){this.type===m.FEDERATION?(this.getFederationAttributes(),this.getFederationAttribute()):this.createSelectionItems(),this.sortAttributes(this.items)}createSelectionItems(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(R=>{const B=new M(R,"");this.items.push(B),this.item=B});for(const R of this.attributes){const B=new M(R.friendlyName+" ("+R.entity+" / "+D.getDefinition(R)+")",R.namespace+":"+R.friendlyName);B.value===this.selectedAttribute&&(this.item=B),("user"===R.entity.toLowerCase()||"member"===R.entity.toLowerCase()||"vo"===R.entity.toLowerCase()&&this.type===m.SOURCE||"group"===R.entity.toLowerCase()&&this.asGroup&&this.type===m.SOURCE)&&this.items.push(B)}}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(R=>{this.items.push(new M(R,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(B=>{this.items.push(new M(B,"custom")),this.items.push(new M("Display name","displayName")),this.items.push(new M("Common name","cn")),this.items.push(new M("Mail","mail")),this.items.push(new M("Organization","o")),this.items.push(new M("Level of Assurance (LoA)","loa")),this.items.push(new M("First name","givenName")),this.items.push(new M("Surname","sn")),this.items.push(new M("EPPN","eppn")),this.items.push(new M("IdP Category","md_entityCategory")),this.items.push(new M("IdP Affiliation","affiliation")),this.items.push(new M("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.items.push(new M("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.items.push(new M("schacHomeOrganization","schacHomeOrganization")),this.items.push(new M("Login","uid")),this.items.push(new M("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){for(const R of this.items)if(R.value===this.selectedAttribute)return void(this.item=R);this.item=this.items[1],this.item.value=this.selectedAttribute}sortAttributes(R){R.sort((B,w)=>""===B.value?-1:""===w.value?1:B.displayName.localeCompare(w.displayName))}}return D.\u0275fac=function(R){return new(R||D)(e.Y36(A.sK))},D.\u0275cmp=e.Xpm({type:D,selectors:[["perun-web-apps-selection-item-search-select"]],inputs:{attributes:"attributes",selectedAttribute:"selectedAttribute",type:"type",asGroup:"asGroup"},outputs:{itemSelected:"itemSelected"},decls:4,vars:14,consts:[[3,"entities","entity","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(R,B){1&R&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(L){return B.itemSelected.emit(L)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&R&&e.Q6J("entities",B.items)("entity",B.item)("searchFunction",B.searchFunction)("mainTextFunction",B.nameFunction)("secondaryTextFunction",B.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[C.i,A.X$]}),D})()},30540:(Xe,ue,p)=>{"use strict";p.d(ue,{J:()=>M});var e=p(94650),A=p(89593),C=p(89383);let M=(()=>{class m{constructor(){this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new e.vpe,this.nameFunction=D=>D.name,this.secondaryFunction=()=>"",this.searchFunction=D=>D.name}}return m.\u0275fac=function(D){return new(D||m)},m.\u0275cmp=e.Xpm({type:m,selectors:[["perun-web-apps-service-search-select"]],inputs:{service:"service",services:"services",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{serviceSelected:"serviceSelected"},decls:4,vars:17,consts:[[3,"entity","entities","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(D,v){1&D&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(B){return v.serviceSelected.emit(B)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&D&&e.Q6J("entity",v.service)("entities",v.services)("multiple",v.multiple)("disableAutoSelect",v.disableAutoSelect)("searchFunction",v.searchFunction)("mainTextFunction",v.nameFunction)("secondaryTextFunction",v.secondaryFunction)("selectPlaceholder",e.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.SELECT_SERVICE"))("findPlaceholder",e.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.FIND_SERVICE"))("noEntriesText",e.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.NO_SERVICE_FOUND"))("theme",v.theme)},dependencies:[A.i,C.X$]}),m})()},2541:(Xe,ue,p)=>{"use strict";p.d(ue,{m:()=>F});var e=p(81591),A=p(61744),C=p(21029),M=p(9244),m=p(94650),b=p(65412),D=p(36895),v=p(51572),R=p(98380),B=p(4859),w=p(37084),L=p(7434),O=p(89383),q=p(34447);function ee(V,te){1&V&&m._UZ(0,"mat-spinner",8)}function z(V,te){1&V&&(m.TgZ(0,"perun-web-apps-alert",9),m._uU(1),m.ALo(2,"translate"),m.ALo(3,"customTranslate"),m.qZA()),2&V&&(m.xp6(1),m.Oqu(m.lcZ(2,1,m.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))))}function ie(V,te){if(1&V){const Q=m.EpF();m.TgZ(0,"div")(1,"p")(2,"strong"),m._uU(3),m.ALo(4,"translate"),m.ALo(5,"customTranslate"),m.qZA(),m._uU(6),m.qZA(),m.TgZ(7,"p",10),m._uU(8),m.ALo(9,"translate"),m.ALo(10,"customTranslate"),m.qZA(),m.TgZ(11,"button",11),m.NdJ("click",function(){m.CHM(Q);const ge=m.oxw().$implicit,ve=m.oxw(3).$implicit,De=m.oxw();return m.KtG(De.requestChangeQuota(ve,ge))}),m._uU(12),m.ALo(13,"translate"),m.ALo(14,"customTranslate"),m.qZA()()}if(2&V){const Q=m.oxw(5);m.xp6(3),m.Oqu(m.lcZ(4,4,m.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA"))),m.xp6(3),m.hij(" ",Q.quotasMarkup," "),m.xp6(2),m.hij(" ",m.lcZ(9,8,m.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA_INFO"))," "),m.xp6(4),m.hij(" ",m.lcZ(13,12,m.lcZ(14,14,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.CHANGE"))," ")}}function Te(V,te){1&V&&(m.TgZ(0,"p"),m._uU(1),m.ALo(2,"translate"),m.ALo(3,"customTranslate"),m.qZA()),2&V&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,m.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))," "))}function pe(V,te){if(1&V){const Q=m.EpF();m.TgZ(0,"mat-expansion-panel",3),m.NdJ("opened",function(){const ve=m.CHM(Q).$implicit,De=m.oxw(4);return m.KtG(De.getResAttributes(ve.id))}),m.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),m._uU(3),m.qZA()(),m.YNc(4,ie,15,16,"div",7),m.YNc(5,Te,4,5,"p",7),m.qZA()}if(2&V){const Q=te.$implicit,Ee=m.oxw(4);m.xp6(3),m.hij(" ",Q.name," "),m.xp6(1),m.Q6J("ngIf",Ee.defaultQuota),m.xp6(1),m.Q6J("ngIf",!Ee.defaultQuota)}}function Le(V,te){if(1&V&&(m.TgZ(0,"mat-accordion"),m.YNc(1,pe,6,3,"mat-expansion-panel",2),m.qZA()),2&V){const Q=m.oxw(3);m.xp6(1),m.Q6J("ngForOf",Q.resources)}}function T(V,te){if(1&V&&(m.YNc(0,ee,1,0,"mat-spinner",5),m.YNc(1,z,4,5,"perun-web-apps-alert",6),m.YNc(2,Le,2,1,"mat-accordion",7)),2&V){const Q=m.oxw(2);m.Q6J("ngIf",Q.loading),m.xp6(1),m.Q6J("ngIf",0===Q.resources.length&&!Q.loading),m.xp6(1),m.Q6J("ngIf",Q.resources.length&&!Q.loading)}}function W(V,te){if(1&V){const Q=m.EpF();m.TgZ(0,"mat-expansion-panel",3),m.NdJ("opened",function(){const ve=m.CHM(Q).$implicit,De=m.oxw();return m.KtG(De.getMembersResources(ve))}),m.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),m._uU(3),m.qZA()(),m.YNc(4,T,3,3,"ng-template",4),m.qZA()}if(2&V){const Q=te.$implicit;m.xp6(3),m.hij(" ",Q.name," ")}}let F=(()=>{class V{constructor(Q,Ee,ge,ve,De,he,Ye){this.store=Q,this.usersManagerService=Ee,this.membersService=ge,this.resourcesManagerService=ve,this.attributesManagerService=De,this.dialog=he,this.entityStorageService=Ye,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(Q=>{this.vos=Q,this.filteredVos=Q})}getMembersResources(Q){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(Q.id,this.user.id).subscribe(Ee=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(Ee.id).subscribe(ge=>{let ve=ge.length;ve||(this.loading=!1),ge.forEach(De=>{this.attributesManagerService.getResourceAttributes(De.id).subscribe(he=>{ve--,he.find(Ye=>"defaultDataQuotas"===Ye.friendlyName)&&this.resources.push(De),this.loading=0!==ve})})})})}getResAttributes(Q){this.attributesManagerService.getResourceAttributes(Q).subscribe(Ee=>{let ge=Ee.find(ve=>"dataQuotas"===ve.friendlyName);if(ge?.value){const ve=Object.entries(ge.value).map(De=>String(De[1]));this.currentQuota=ve[0]}else this.currentQuota="";if(ge=Ee.find(ve=>"defaultDataQuotas"===ve.friendlyName),ge?.value){const ve=Object.entries(ge.value).map(De=>String(De[1]));this.defaultQuota=ve[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(Q,Ee){const ge=(0,M.kZ)();ge.width="400px",ge.data={vo:Q,resource:Ee,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(C.h4,ge)}applyFilter(Q){this.filteredVos=this.vos.filter(Ee=>Ee.name.toLowerCase().includes(Q.toLowerCase()))}parseMarkup(){let Q="";Q+=this.currentQuota,Q+=` (default: ${this.defaultQuota})`,Q=Q.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=Q}}return V.\u0275fac=function(Q){return new(Q||V)(m.Y36(e.d6),m.Y36(A.Fv),m.Y36(A.uq),m.Y36(A.xk),m.Y36(A.H8),m.Y36(b.uw),m.Y36(e.fb))},V.\u0275cmp=m.Xpm({type:V,selectors:[["perun-web-apps-data-quotas"]],inputs:{user:"user"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"color-gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(Q,Ee){1&Q&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.ALo(3,"customTranslate"),m.qZA(),m.TgZ(4,"perun-web-apps-immediate-filter",1),m.NdJ("filter",function(ve){return Ee.applyFilter(ve)}),m.ALo(5,"translate"),m.ALo(6,"customTranslate"),m.qZA(),m.TgZ(7,"mat-accordion"),m.YNc(8,W,5,1,"mat-expansion-panel",2),m.qZA()),2&Q&&(m.xp6(1),m.hij(" ",m.lcZ(2,3,m.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.TITLE")),"\n"),m.xp6(3),m.Q6J("placeholder",m.lcZ(5,7,m.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.FILTER"))),m.xp6(4),m.Q6J("ngForOf",Ee.filteredVos))},dependencies:[D.sg,D.O5,v.Ou,R.w,B.lW,w.pp,w.ib,w.yz,w.yK,w.HS,L.L,O.X$,q.a],styles:[".color-gray[_ngcontent-%COMP%]{color:gray}"]}),V})()},74006:(Xe,ue,p)=>{"use strict";p.d(ue,{E:()=>Le});var e=p(61744),A=p(81591),C=p(9244),M=p(94650),m=p(94364),b=p(89383),D=p(36895),v=p(56709),R=p(51572),B=p(98380),w=p(37084),L=p(7434),O=p(34447);function q(T,W){1&T&&M._UZ(0,"mat-spinner",8)}function ee(T,W){1&T&&(M.TgZ(0,"perun-web-apps-alert",9),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA()),2&T&&(M.xp6(1),M.Oqu(M.lcZ(2,1,M.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function z(T,W){if(1&T){const F=M.EpF();M.TgZ(0,"mat-expansion-panel",3),M.NdJ("closed",function(){M.CHM(F);const te=M.oxw(4);return M.KtG(te.deselectResource())})("afterExpand",function(){const Q=M.CHM(F).$implicit,Ee=M.oxw(4);return M.KtG(Ee.changeSelectedResource(Q))}),M.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),M._uU(3),M.qZA()(),M.TgZ(4,"div",10)(5,"mat-checkbox",11),M.NdJ("change",function(){M.CHM(F);const te=M.oxw(4);return M.KtG(te.setOptOut())}),M.qZA(),M.TgZ(6,"p"),M._uU(7),M.ALo(8,"translate"),M.ALo(9,"customTranslate"),M.qZA()()()}if(2&T){const F=W.$implicit,V=M.oxw(4);M.Q6J("expanded",F.name===V.selectedResource),M.xp6(3),M.hij(" ",F.name," "),M.xp6(2),M.Q6J("checked",V.optOutAttribute&&null!==V.optOutAttribute.value),M.xp6(2),M.hij(" ",M.lcZ(8,4,M.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))," ")}}function ie(T,W){if(1&T&&(M.TgZ(0,"mat-accordion"),M.YNc(1,z,10,8,"mat-expansion-panel",2),M.qZA()),2&T){const F=M.oxw(3);M.xp6(1),M.Q6J("ngForOf",F.resources)}}function Te(T,W){if(1&T&&(M.YNc(0,q,1,0,"mat-spinner",5),M.YNc(1,ee,4,5,"perun-web-apps-alert",6),M.YNc(2,ie,2,1,"mat-accordion",7)),2&T){const F=M.oxw(2);M.Q6J("ngIf",F.loading),M.xp6(1),M.Q6J("ngIf",0===F.resources.length&&!F.loading),M.xp6(1),M.Q6J("ngIf",F.resources.length&&!F.loading)}}function pe(T,W){if(1&T){const F=M.EpF();M.TgZ(0,"mat-expansion-panel",3),M.NdJ("closed",function(){M.CHM(F);const te=M.oxw();return M.KtG(te.deselectVo())})("afterExpand",function(){const Q=M.CHM(F).$implicit,Ee=M.oxw();return M.KtG(Ee.changeSelectedVo(Q))}),M.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),M._uU(3),M.qZA()(),M.YNc(4,Te,3,3,"ng-template",4),M.qZA()}if(2&T){const F=W.$implicit,V=M.oxw();M.Q6J("expanded",F.shortName===V.selectedVo),M.xp6(3),M.hij(" ",F.name," ")}}let Le=(()=>{class T{constructor(F,V,te,Q,Ee,ge,ve,De,he){this.store=F,this.usersManagerService=V,this.membersService=te,this.resourcesManagerService=Q,this.attributesManagerService=Ee,this.route=ge,this.router=ve,this.notificator=De,this.translate=he,this.vos=[],this.resources=[],this.optOuts=[],this.filteredVos=[],this.loading=!0,this.selectedVo=null,this.selectedResource=null}ngOnDestroy(){this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:null,resource:null},replaceUrl:!0,queryParamsHandling:"merge"})}ngOnInit(){this.route.queryParams.subscribe(F=>{this.selectedVo=String(F.vo),this.selectedResource=String(F.resource),this.changeOptOut=String(F.action),this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(V=>{if(this.vos=V.sort(C.aC),this.filteredVos=V,void 0!==this.selectedResource){const te=this.vos.find(Q=>Q.shortName===this.selectedVo);te&&this.getMailingLists(te)}else if(void 0!==this.selectedVo){const te=this.vos.find(Q=>Q.shortName===this.selectedVo);te&&(this.getMailingLists(te),this.changeSelectedVo(te))}})}).unsubscribe()}changeSelectedResource(F){this.selectedResource!==F.name&&this.getOptOutAttribute(F),this.isService||(this.changeOptOut&&("subscribe"===this.changeOptOut?this.subscribe():"unsubscribe"===this.changeOptOut&&this.unsubscribe(),this.changeOptOut=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource,action:null},queryParamsHandling:"merge"}))}changeSelectedVo(F){this.selectedVo!==F.shortName&&(this.getMailingLists(F),this.selectedResource=null),this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}getMailingLists(F){this.selectedVo=F.shortName,this.loading=!0,this.resources=[],this.membersService.getMemberByUser(F.id,this.user.id).subscribe(V=>{this.resourcesManagerService.getMailingServiceRichResourcesWithMember(V.id).subscribe(te=>{let Q=te.length;Q||(this.loading=!1),te.forEach(Ee=>{this.attributesManagerService.getRequiredAttributesMemberResource(V.id,Ee.id).subscribe(ge=>{this.attributesManagerService.getResourceAttributeByName(Ee.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(ve=>{Q--;const De=ge.find(he=>"optOutMailingList"===he.friendlyName);De&&"true"!==ve?.value&&(this.optOuts.push({resource:Ee.id,member:V.id,attribute:De}),this.resources.push(Ee),this.selectedResource===Ee.name&&(this.getOptOutAttribute(Ee),this.changeSelectedResource(Ee))),this.loading=0!==Q})})})}),this.resources.sort(C.aC)})}getOptOutAttribute(F){this.selectedResource=F.name,this.index=this.resources.indexOf(F),this.optOutAttribute=this.optOuts[this.index].attribute}unsubscribe(){const F=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value="true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.UNSUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=F})}subscribe(){const F=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value=null,this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.SUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=F})}setOptOut(){this.optOutAttribute.value?this.subscribe():this.unsubscribe()}applyFilter(F){this.filteredVos=this.vos.filter(V=>V.name.toLowerCase().includes(F.toLowerCase()))}deselectVo(){this.loading=!0,this.selectedVo=null,this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}deselectResource(){this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}}return T.\u0275fac=function(F){return new(F||T)(M.Y36(A.d6),M.Y36(e.Fv),M.Y36(e.uq),M.Y36(e.xk),M.Y36(e.H8),M.Y36(m.gz),M.Y36(m.F0),M.Y36(A.V6),M.Y36(b.sK))},T.\u0275cmp=M.Xpm({type:T,selectors:[["perun-web-apps-mailing-lists"]],inputs:{user:"user",isService:"isService"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"expanded","closed","afterExpand",4,"ngFor","ngForOf"],[3,"expanded","closed","afterExpand"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"row"],[1,"ml-3","mr-2",3,"checked","change"]],template:function(F,V){1&F&&(M.TgZ(0,"h1",0),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA(),M.TgZ(4,"perun-web-apps-immediate-filter",1),M.NdJ("filter",function(Q){return V.applyFilter(Q)}),M.ALo(5,"translate"),M.ALo(6,"customTranslate"),M.qZA(),M.TgZ(7,"mat-accordion"),M.YNc(8,pe,5,2,"mat-expansion-panel",2),M.qZA()),2&F&&(M.xp6(1),M.hij(" ",M.lcZ(2,3,M.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.TITLE")),"\n"),M.xp6(3),M.Q6J("placeholder",M.lcZ(5,7,M.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.FILTER"))),M.xp6(4),M.Q6J("ngForOf",V.filteredVos))},dependencies:[D.sg,D.O5,v.oG,R.Ou,B.w,w.pp,w.ib,w.yz,w.yK,w.HS,L.L,b.X$,O.a]}),T})()},80275:(Xe,ue,p)=>{"use strict";p.d(ue,{j:()=>N});var e=p(95017),A=p(96308),C=p(30671),M=p(81591),m=p(9244),b=p(94650),D=p(94364),v=p(36895),R=p(56709),B=p(98380),w=p(10266),L=p(18750),O=p(34198),q=p(55660),ee=p(89383);let z=(()=>{class be{transform(de){return de.find(ot=>"mail"===ot.friendlyName)?.value??""}}return be.\u0275fac=function(de){return new(de||be)},be.\u0275pipe=b.Yjl({name:"getMailFromAttributes",type:be,pure:!0}),be})();var ie=p(34447),Te=p(8231);function pe(be,Z){1&be&&b._UZ(0,"th",18)}const Le=function(be){return{name:be}};function T(be,Z){if(1&be){const de=b.EpF();b.TgZ(0,"td",19)(1,"span",20),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.TgZ(4,"mat-checkbox",21),b.NdJ("change",function(ot){const ut=b.CHM(de).$implicit,tt=b.oxw();return b.KtG(ot?tt.selection.toggle(ut):null)})("click",function(ot){return ot.stopPropagation()}),b.ALo(5,"translate"),b.ALo(6,"checkboxLabel"),b.qZA()()()}if(2&be){const de=Z.$implicit,xe=b.oxw();b.xp6(1),b.s9C("matTooltip",b.lcZ(2,6,b.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),b.Q6J("matTooltipPosition","above")("matTooltipDisabled",!de.userExtSource.persistent),b.xp6(3),b.Q6J("aria-label",b.xi3(5,10,b.lcZ(6,13,xe.selection.isSelected(de)),b.VKq(15,Le,de.userExtSource.extSource.name)))("checked",xe.selection.isSelected(de))("disabled",de.userExtSource.persistent)}}function W(be,Z){1&be&&(b.TgZ(0,"th",22),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function F(be,Z){if(1&be&&(b.TgZ(0,"td",23),b._uU(1),b.qZA()),2&be){const de=Z.$implicit;b.xp6(1),b.hij(" ",de.userExtSource.id," ")}}function V(be,Z){1&be&&(b.TgZ(0,"th",24),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function te(be,Z){if(1&be&&(b.TgZ(0,"td",23),b._uU(1),b.ALo(2,"getMailFromAttributes"),b.qZA()),2&be){const de=Z.$implicit;b.xp6(1),b.hij(" ",b.lcZ(2,1,de.attributes)," ")}}function Q(be,Z){if(1&be&&(b.TgZ(0,"th",22),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be){const de=b.oxw();b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,de.extSourceNameHeader?de.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function Ee(be,Z){if(1&be&&(b.TgZ(0,"td",23),b._uU(1),b.qZA()),2&be){const de=Z.$implicit;b.xp6(1),b.hij(" ",de.userExtSource.extSource.name," ")}}function ge(be,Z){if(1&be&&(b.TgZ(0,"th",22),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be){const de=b.oxw();b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,de.loginHeader?de.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function ve(be,Z){if(1&be&&(b.TgZ(0,"td",23),b._uU(1),b.qZA()),2&be){const de=Z.$implicit;b.xp6(1),b.hij(" ",de.userExtSource.login," ")}}function De(be,Z){1&be&&(b.TgZ(0,"th",22),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function he(be,Z){if(1&be&&(b.TgZ(0,"td",25),b._uU(1),b.ALo(2,"date"),b.qZA()),2&be){const de=Z.$implicit;b.xp6(1),b.hij(" ",b.xi3(2,1,de.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function Ye(be,Z){1&be&&b._UZ(0,"tr",26)}const Be=function(be,Z){return["/admin","users",be,"identities",Z]};function se(be,Z){if(1&be&&b._UZ(0,"tr",27),2&be){const de=Z.$implicit,xe=b.oxw();b.ekj("cursor-pointer",!xe.disableRouting)("disable-outline",xe.disableRouting),b.Q6J("perunWebAppsMiddleClickRouterLink",xe.disableRouting?null:b.WLB(6,Be,xe.userId.toString(),de.userExtSource.id.toString()))("routerLink",xe.disableRouting?null:b.WLB(9,Be,xe.userId,de.userExtSource.id))}}function le(be,Z){1&be&&(b.TgZ(0,"perun-web-apps-alert",28),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&be&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function k(be,Z){1&be&&(b.TgZ(0,"perun-web-apps-alert",28),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let N=(()=>{class be{constructor(de,xe){this.route=de,this.authResolver=xe,this.selection=new e.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=m.f7}set matSort(de){this.sort=de,this.setDataSource()}static getDataForColumn(de,xe){switch(xe){case"id":return de.userExtSource.id.toString();case"mail":{const ot=de.attributes.find(Fe=>"mail"===Fe.friendlyName);return ot?ot.value:"N/A"}case"extSourceName":return de.userExtSource.extSource.name;case"login":return de.userExtSource.login;case"lastAccess":return de.userExtSource.lastAccess.split(".")[0];default:return de[xe]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(de=>{this.userId=Number(de.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(de=>"id"!==de)),this.dataSource=new C.by(this.userExtSources),this.setDataSource()}exportAllData(de){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,be.getDataForColumn),de)}exportDisplayedData(de){const xe=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,ot=xe+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(xe,ot),this.displayedColumns,be.getDataForColumn),de)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(de,xe)=>(0,m.Sd)(de,xe,this.displayedColumns,be.getDataForColumn),this.dataSource.sortData=(de,xe)=>(0,m.pR)(de,xe,be.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}}return be.\u0275fac=function(de){return new(de||be)(b.Y36(D.gz),b.Y36(M.x4))},be.\u0275cmp=b.Xpm({type:be,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(de,xe){if(1&de&&(b.Gf(m.l9,7),b.Gf(A.YE,7)),2&de){let ot;b.iGM(ot=b.CRH())&&(xe.child=ot.first),b.iGM(ot=b.CRH())&&(xe.matSort=ot.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[b.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(de,xe){1&de&&(b.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),b.NdJ("exportDisplayedData",function(Fe){return xe.exportDisplayedData(Fe)})("exportAllData",function(Fe){return xe.exportAllData(Fe)}),b.TgZ(2,"table",2),b.ynx(3,3),b.YNc(4,pe,1,0,"th",4),b.YNc(5,T,7,17,"td",5),b.BQk(),b.ynx(6,6),b.YNc(7,W,4,5,"th",7),b.YNc(8,F,2,1,"td",8),b.BQk(),b.ynx(9,9),b.YNc(10,V,4,5,"th",10),b.YNc(11,te,3,3,"td",8),b.BQk(),b.ynx(12,11),b.YNc(13,Q,4,5,"th",7),b.YNc(14,Ee,2,1,"td",8),b.BQk(),b.ynx(15,12),b.YNc(16,ge,4,5,"th",7),b.YNc(17,ve,2,1,"td",8),b.BQk(),b.ynx(18,13),b.YNc(19,De,4,5,"th",7),b.YNc(20,he,3,4,"td",14),b.BQk(),b.YNc(21,Ye,1,0,"tr",15),b.YNc(22,se,1,12,"tr",16),b.qZA()()(),b.YNc(23,le,3,3,"perun-web-apps-alert",17),b.YNc(24,k,4,5,"perun-web-apps-alert",17)),2&de&&(b.Q6J("hidden",0===xe.userExtSources.length||0===xe.dataSource.filteredData.length),b.xp6(1),b.Q6J("tableId",xe.tableId)("dataLength",xe.dataSource.filteredData.length)("pageSizeOptions",xe.pageSizeOptions),b.xp6(1),b.Q6J("dataSource",xe.dataSource),b.xp6(19),b.Q6J("matHeaderRowDef",xe.displayedColumns),b.xp6(1),b.Q6J("matRowDefColumns",xe.displayedColumns),b.xp6(1),b.Q6J("ngIf",0===xe.dataSource.filteredData.length&&0!==xe.userExtSources.length),b.xp6(1),b.Q6J("ngIf",0===xe.userExtSources.length))},dependencies:[v.O5,R.oG,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,D.rH,A.YE,A.nU,B.w,w.gM,L.l,O.Y,q.Q,v.uU,ee.X$,z,ie.a,Te.G],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),be})()},74250:(Xe,ue,p)=>{"use strict";p.d(ue,{S:()=>m});var e=p(94650),A=p(9244),C=p(89593),M=p(89383);let m=(()=>{class b{constructor(){this.disableAutoSelect=!1,this.userSelected=new e.vpe,this.userFullNameFunction=A.bD}ngOnInit(){this.users=this.users.sort(A.fx)}}return b.\u0275fac=function(v){return new(v||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-user-search-select"]],inputs:{users:"users",disableAutoSelect:"disableAutoSelect"},outputs:{userSelected:"userSelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(v,R){1&v&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(w){return R.userSelected.emit(w)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&v&&e.Q6J("entities",R.users)("disableAutoSelect",R.disableAutoSelect)("searchFunction",R.userFullNameFunction)("mainTextFunction",R.userFullNameFunction)("selectPlaceholder",e.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",e.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",e.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},dependencies:[C.i,M.X$]}),b})()},11447:(Xe,ue,p)=>{"use strict";p.d(ue,{M:()=>o});var e=p(61744),A=p(95017),C=p(9244),M=p(96308),m=p(81591),b=p(56451),D=p(18505),v=p(21029),R=p(19516),B=p(94650),w=p(10036),L=p(65412),O=p(89383),q=p(36895),ee=p(56709),z=p(30671),ie=p(94364),Te=p(51572),pe=p(98380),Le=p(97392),T=p(10266),W=p(18750),F=p(34198),V=p(55660),te=p(34447);function Q(s,l){1&s&&(B.TgZ(0,"span")(1,"mat-icon",1),B._uU(2,"priority_high"),B.qZA(),B.TgZ(3,"span"),B._uU(4),B.ALo(5,"translate"),B.ALo(6,"customTranslate"),B.qZA()()),2&s&&(B.xp6(4),B.hij(" ",B.lcZ(5,1,B.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function Ee(s,l){1&s&&(B.TgZ(0,"span")(1,"mat-icon",1),B._uU(2,"close"),B.qZA(),B.TgZ(3,"span"),B._uU(4),B.ALo(5,"translate"),B.ALo(6,"customTranslate"),B.qZA()()),2&s&&(B.xp6(4),B.hij(" ",B.lcZ(5,1,B.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function ge(s,l){1&s&&(B.TgZ(0,"span")(1,"mat-icon",2),B._uU(2,"check"),B.qZA(),B.TgZ(3,"span"),B._uU(4),B.ALo(5,"translate"),B.ALo(6,"customTranslate"),B.qZA()()),2&s&&(B.xp6(4),B.hij(" ",B.lcZ(5,1,B.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let ve=(()=>{class s{}return s.\u0275fac=function(d){return new(d||s)},s.\u0275cmp=B.Xpm({type:s,selectors:[["perun-web-apps-consent-status"]],inputs:{consentStatus:"consentStatus"},decls:3,vars:3,consts:[[4,"ngIf"],["color","warn"],["color","accent"]],template:function(d,c){1&d&&(B.YNc(0,Q,7,5,"span",0),B.YNc(1,Ee,7,5,"span",0),B.YNc(2,ge,7,5,"span",0)),2&d&&(B.Q6J("ngIf","UNSIGNED"===c.consentStatus),B.xp6(1),B.Q6J("ngIf","REVOKED"===c.consentStatus),B.xp6(1),B.Q6J("ngIf","GRANTED"===c.consentStatus))},dependencies:[q.O5,Le.Hw,O.X$,te.a],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),s})();var De=p(31359),he=p(16119),Ye=p(7598),Be=p(9954),se=p(9185),le=p(8231),k=p(14849),N=p(10293);function be(s,l){1&s&&(B.TgZ(0,"div",19),B._UZ(1,"mat-spinner",20),B.qZA())}function Z(s,l){if(1&s){const d=B.EpF();B.TgZ(0,"mat-checkbox",26),B.NdJ("change",function(S){B.CHM(d);const J=B.oxw(3);return B.KtG(S?J.masterToggle():null)}),B.ALo(1,"translate"),B.ALo(2,"masterCheckboxLabel"),B.qZA()}if(2&s){const d=B.oxw(2).ngIf,c=B.oxw();B.Q6J("aria-label",B.lcZ(1,3,B.lcZ(2,5,d.all)))("checked",c.selection.hasValue()&&d.all)("indeterminate",c.selection.hasValue()&&!d.all)}}function de(s,l){if(1&s&&(B.TgZ(0,"th",24),B.YNc(1,Z,3,7,"mat-checkbox",25),B.qZA()),2&s){const d=B.oxw(2);B.xp6(1),B.Q6J("ngIf",d.selection.isMultipleSelection())}}const xe=function(s){return{name:s}};function ot(s,l){if(1&s){const d=B.EpF();B.TgZ(0,"td",27)(1,"mat-checkbox",28),B.NdJ("change",function(S){const ht=B.CHM(d).$implicit,We=B.oxw(2);return B.KtG(S?We.selection.toggle(ht):null)})("click",function(S){return S.stopPropagation()}),B.ALo(2,"translate"),B.ALo(3,"checkboxLabel"),B.ALo(4,"userFullName"),B.qZA()()}if(2&s){const d=l.$implicit,c=B.oxw(2);B.xp6(1),B.Q6J("aria-label",B.xi3(2,2,B.lcZ(3,5,c.selection.isSelected(d)),B.VKq(9,xe,B.lcZ(4,7,d))))("checked",c.selection.isSelected(d))}}function Fe(s,l){1&s&&(B.ynx(0,21),B.YNc(1,de,2,1,"th",22),B.YNc(2,ot,5,11,"td",23),B.BQk())}function ut(s,l){1&s&&B._UZ(0,"th",29)}function tt(s,l){1&s&&(B.TgZ(0,"mat-icon",33),B.ALo(1,"translate"),B._uU(2," account_circle "),B.qZA()),2&s&&B.s9C("matTooltip",B.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function vt(s,l){if(1&s&&(B._UZ(0,"mat-icon",34),B.ALo(1,"translate")),2&s){const d=B.oxw(2);B.s9C("matTooltip",B.lcZ(1,2,"MANAGERS_LIST.SERVICE")),B.Q6J("svgIcon",d.svgIcon)}}function X(s,l){if(1&s&&(B.TgZ(0,"td",30),B.YNc(1,tt,3,3,"mat-icon",31),B.YNc(2,vt,2,4,"mat-icon",32),B.qZA()),2&s){const d=l.$implicit;B.xp6(1),B.Q6J("ngIf",!d.serviceUser),B.xp6(1),B.Q6J("ngIf",d.serviceUser)}}function nt(s,l){1&s&&(B.TgZ(0,"th",35),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.hij(" ",B.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function Ae(s,l){if(1&s&&(B.TgZ(0,"td",30),B._uU(1),B.qZA()),2&s){const d=l.$implicit;B.xp6(1),B.hij(" ",d.id," ")}}function ye(s,l){1&s&&(B.TgZ(0,"th",35),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.hij(" ",B.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function _e(s,l){if(1&s&&(B.TgZ(0,"td",36),B.ALo(1,"lowercase"),B._uU(2),B.ALo(3,"userFullName"),B.qZA()),2&s){const d=l.$implicit;B.Q2q("data-cy","",B.lcZ(1,2,d.firstName),"-td"),B.xp6(2),B.hij(" ",B.lcZ(3,4,d)," ")}}function Se(s,l){1&s&&(B.TgZ(0,"th",29),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.Oqu(B.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function Ne(s,l){if(1&s&&(B.TgZ(0,"td",36),B._uU(1),B.ALo(2,"userVo"),B.qZA()),2&s){const d=l.$implicit;B.xp6(1),B.Oqu(B.lcZ(2,1,d))}}function Ce(s,l){1&s&&(B.TgZ(0,"th",29),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.Oqu(B.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function fe(s,l){if(1&s&&(B.TgZ(0,"td",36),B._uU(1),B.ALo(2,"userEmail"),B.qZA()),2&s){const d=l.$implicit;B.xp6(1),B.Oqu(B.lcZ(2,1,d))}}function r(s,l){1&s&&(B.TgZ(0,"th",29),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.Oqu(B.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function u(s,l){if(1&s&&(B.TgZ(0,"td",36),B._uU(1),B.ALo(2,"userLogins"),B.qZA()),2&s){const d=l.$implicit;B.xp6(1),B.Oqu(B.lcZ(2,1,d))}}function _(s,l){1&s&&(B.TgZ(0,"th",29),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.hij(" ",B.lcZ(2,1,"CONSENTS.STATUS")," "))}function E(s,l){if(1&s&&(B.TgZ(0,"td",36),B._UZ(1,"perun-web-apps-consent-status",37),B.ALo(2,"consentStatusIcon"),B.qZA()),2&s){const d=l.$implicit,c=B.oxw();B.xp6(1),B.Q6J("consentStatus",B.xi3(2,1,d,c.consents))}}function h(s,l){1&s&&B._UZ(0,"tr",38)}const a=function(s){return["/admin/users",s]};function i(s,l){if(1&s&&B._UZ(0,"tr",39),2&s){const d=l.$implicit,c=B.oxw();B.ekj("cursor-pointer",!c.disableRouting),B.Q6J("routerLink",c.disableRouting?null:B.VKq(4,a,d.id))("perunWebAppsMiddleClickRouterLink",c.disableRouting?null:B.VKq(6,a,d.id))}}function t(s,l){1&s&&(B.TgZ(0,"perun-web-apps-alert",40),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.Q6J("alert_type","warn"),B.xp6(1),B.hij(" ",B.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}const n=function(s){return{all:s}};let o=(()=>{class s{constructor(d,c,S,J,ht,We,et,ne){this.authResolver=d,this.consentService=c,this.tableCheckbox=S,this.tableConfigService=J,this.dynamicPaginatingService=ht,this.dialog=We,this.consentPipe=et,this.translate=ne,this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.disableRouting=!1,this.searchString="",this.attrNames=[],this.includeConsents=!1,this.svgIcon="perun-service-identity-black",this.pageSizeOptions=C.f7}static getExportDataForColumn(d,c){switch(c){case"id":return d.id.toString();case"user":return d.serviceUser?"service-user":"user";case"name":return d?(0,C.bD)(d):"";case"organization":return(0,C.OV)(d);case"email":return(0,C.kN)(d);case"logins":return(0,C.lt)(d);case"consentStatus":return d.consent;default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,b.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,D.b)(()=>this.loadUsersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(d=>"id"!==d)),this.includeConsents&&this.displayedColumns.push("consentStatus"),this.dataSource=new m.Hy(this.dynamicPaginatingService,this.authResolver),this.loadConsents(),this.dataSource.loadUsers(this.attrNames,this.tableConfigService.getTablePageSize(this.tableId),0,"ASCENDING","NAME",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadUsersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(d=>this.selection.select(d))}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().length}loadUsersPage(){this.dataSource.loadUsers(this.attrNames,this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING","name"===this.sort.active?"NAME":"ID",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses)}loadConsents(){this.includeConsents&&this.consentService.getConsentHubByFacility(this.facilityId).subscribe(d=>this.consentService.getConsentsForConsentHub(d.id).subscribe(c=>this.consents=c))}exportDisplayedData(d){(0,C.O6)((0,C.Xn)(this.getConsentsForUsers(this.dataSource.getData()),this.displayedColumns,s.getExportDataForColumn),d)}exportAllData(d){const c="asc"===this.sort.direction?"ASCENDING":"DESCENDING",S="name"===this.sort.active?"NAME":"ID",J=(0,C.kZ)();J.width="300px";const ht=this.dialog.open(v.QQ,J);this.dataSource.getAllUsers(this.attrNames,c,this.child.paginator.length,S,this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses).subscribe(We=>{ht.close(),(0,C.O6)((0,C.Xn)(this.getConsentsForUsers(We),this.displayedColumns,s.getExportDataForColumn),d)})}getConsentsForUsers(d){const c=[];return this.includeConsents?(d.forEach(S=>{const J=S;J.consent=this.translate.instant("CONSENTS.STATUS_"+this.consentPipe.transform(S,this.consents)),c.push(J)}),c):d}}return s.\u0275fac=function(d){return new(d||s)(B.Y36(m.x4),B.Y36(e.WY),B.Y36(m.UA),B.Y36(w.dB),B.Y36(m.ly),B.Y36(L.uw),B.Y36(R.m2),B.Y36(O.sK))},s.\u0275cmp=B.Xpm({type:s,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(d,c){if(1&d&&(B.Gf(C.l9,7),B.Gf(M.YE,5)),2&d){let S;B.iGM(S=B.CRH())&&(c.child=S.first),B.iGM(S=B.CRH())&&(c.sort=S.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",attrNames:"attrNames",withoutVo:"withoutVo",updateTable:"updateTable",facilityId:"facilityId",voId:"voId",resourceId:"resourceId",serviceId:"serviceId",onlyAllowed:"onlyAllowed",consentStatuses:"consentStatuses",includeConsents:"includeConsents"},features:[B._Bn([R.m2]),B.TTD],decls:33,vars:21,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["matColumnDef","consentStatus"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"matTooltip","svgIcon",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"matTooltip","svgIcon"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"consentStatus"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(d,c){1&d&&(B.TgZ(0,"div",0),B.ALo(1,"async"),B.TgZ(2,"perun-web-apps-table-wrapper",1),B.NdJ("exportDisplayedData",function(J){return c.exportDisplayedData(J)})("exportAllData",function(J){return c.exportAllData(J)}),B.YNc(3,be,2,0,"div",2),B.ALo(4,"async"),B.TgZ(5,"table",3),B.YNc(6,Fe,3,0,"ng-container",4),B.ALo(7,"isAllSelected"),B.ynx(8,5),B.YNc(9,ut,1,0,"th",6),B.YNc(10,X,3,2,"td",7),B.BQk(),B.ynx(11,8),B.YNc(12,nt,3,3,"th",9),B.YNc(13,Ae,2,1,"td",7),B.BQk(),B.ynx(14,10),B.YNc(15,ye,3,3,"th",9),B.YNc(16,_e,4,6,"td",11),B.BQk(),B.ynx(17,12),B.YNc(18,Se,3,3,"th",6),B.YNc(19,Ne,3,3,"td",11),B.BQk(),B.ynx(20,13),B.YNc(21,Ce,3,3,"th",6),B.YNc(22,fe,3,3,"td",11),B.BQk(),B.ynx(23,14),B.YNc(24,r,3,3,"th",6),B.YNc(25,u,3,3,"td",11),B.BQk(),B.ynx(26,15),B.YNc(27,_,3,3,"th",6),B.YNc(28,E,3,4,"td",11),B.BQk(),B.YNc(29,h,1,0,"tr",16),B.YNc(30,i,1,8,"tr",17),B.qZA()()(),B.YNc(31,t,3,4,"perun-web-apps-alert",18),B.ALo(32,"async")),2&d&&(B.Q6J("hidden",0===c.dataSource.allObjectCount&&!1===B.lcZ(1,10,c.dataSource.loading$)),B.xp6(2),B.Q6J("tableId",c.tableId)("dataLength",c.dataSource.allObjectCount)("pageSizeOptions",c.pageSizeOptions),B.xp6(1),B.Q6J("ngIf",B.lcZ(4,12,c.dataSource.loading$)),B.xp6(2),B.Q6J("dataSource",c.dataSource),B.xp6(1),B.Q6J("ngIf",B.VKq(19,n,B.xi3(7,14,c.dataSource,c.selection.selected.length))),B.xp6(23),B.Q6J("matHeaderRowDef",c.displayedColumns),B.xp6(1),B.Q6J("matRowDefColumns",c.displayedColumns),B.xp6(1),B.Q6J("ngIf",0===c.dataSource.allObjectCount&&!1===B.lcZ(32,17,c.dataSource.loading$)))},dependencies:[q.O5,ee.oG,z.BZ,z.fO,z.as,z.w1,z.Dz,z.nj,z.ge,z.ev,z.XQ,z.Gk,ie.rH,M.YE,M.nU,Te.Ou,pe.w,Le.Hw,T.gM,W.l,F.Y,ve,V.Q,q.Ov,q.i8,O.X$,De.d,he.S,Ye.g,Be.Z,se.I,le.G,k.r,N.m],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),s})()},62707:(Xe,ue,p)=>{"use strict";p.d(ue,{M:()=>m});var e=p(94650),A=p(9244),C=p(89593),M=p(89383);let m=(()=>{class b{constructor(){this.disableAutoSelect=!1,this.voSelected=new e.vpe,this.nameFunction=v=>v.name,this.shortNameFunction=v=>v.shortName,this.searchFunction=v=>v.name+v.shortName+String(v.id)}ngOnChanges(){this.vos.sort(A.aC),!this.vo&&!this.disableAutoSelect&&(this.vo=this.vos[0])}}return b.\u0275fac=function(v){return new(v||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vo:"vo",vos:"vos",disableAutoSelect:"disableAutoSelect"},outputs:{voSelected:"voSelected"},features:[e.TTD],decls:4,vars:15,consts:[[3,"entity","entities","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(v,R){1&v&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(w){return R.voSelected.emit(w)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&v&&e.Q6J("entity",R.vo)("entities",R.vos)("disableAutoSelect",R.disableAutoSelect)("searchFunction",R.searchFunction)("mainTextFunction",R.nameFunction)("secondaryTextFunction",R.shortNameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},dependencies:[C.i,M.X$]}),b})()},87831:(Xe,ue,p)=>{"use strict";p.d(ue,{Z:()=>k});var e=p(96308),A=p(30671),C=p(9244),M=p(81591),m=p(94650),b=p(36895),D=p(56709),v=p(94364),R=p(98380),B=p(97392),w=p(18750),L=p(34198),O=p(55660),q=p(10441),ee=p(89383),z=p(8231);function ie(N,be){1&N&&m._UZ(0,"th",19)}const Te=function(N){return{name:N}};function pe(N,be){if(1&N){const Z=m.EpF();m.TgZ(0,"td",20)(1,"mat-checkbox",21),m.NdJ("change",function(xe){const Fe=m.CHM(Z).$implicit,ut=m.oxw();return m.KtG(xe?ut.selection.toggle(Fe):null)})("click",function(xe){return xe.stopPropagation()}),m.ALo(2,"translate"),m.ALo(3,"checkboxLabel"),m.qZA()()}if(2&N){const Z=be.$implicit,de=m.oxw();let xe;m.xp6(1),m.Q6J("aria-label",m.xi3(2,2,m.lcZ(3,5,de.selection.isSelected(Z)),m.VKq(7,Te,null!==(xe=Z.name)&&void 0!==xe?xe:Z.vo.name)))("checked",de.selection.isSelected(Z))}}function Le(N,be){1&N&&(m.TgZ(0,"th",22),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&N&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")," "))}function T(N,be){if(1&N&&(m.TgZ(0,"td",23),m._uU(1),m.qZA()),2&N){const Z=be.$implicit;let de;m.xp6(1),m.Oqu(null!==(de=Z.id)&&void 0!==de?de:Z.vo.id)}}function W(N,be){1&N&&m._UZ(0,"th",24)}function F(N,be){if(1&N&&(m.TgZ(0,"td",25),m._UZ(1,"perun-web-apps-recently-viewed-icon",26),m.qZA()),2&N){const Z=be.$implicit,de=m.oxw();let xe;m.xp6(1),m.Q6J("recentIds",de.recentIds)("id",null!==(xe=Z.id)&&void 0!==xe?xe:Z.vo.id)}}function V(N,be){1&N&&m._UZ(0,"th",24)}function te(N,be){1&N&&m._UZ(0,"mat-icon",28),2&N&&m.Q6J("svgIcon","perun-hierarchical-vo")}function Q(N,be){if(1&N&&(m.TgZ(0,"td",25),m.YNc(1,te,1,1,"mat-icon",27),m.qZA()),2&N){const Z=be.$implicit;m.xp6(1),m.Q6J("ngIf",0!==(null==Z||null==Z.memberVos?null:Z.memberVos.length))}}function Ee(N,be){1&N&&(m.TgZ(0,"th",22),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&N&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")," "))}function ge(N,be){if(1&N&&(m.TgZ(0,"td",25),m._uU(1),m.qZA()),2&N){const Z=be.$implicit;let de,xe;m.uIk("data-cy",null!==(de=Z.shortName)&&void 0!==de?de:Z.vo.shortName),m.xp6(1),m.hij(" ",null!==(xe=Z.shortName)&&void 0!==xe?xe:Z.vo.shortName," ")}}function ve(N,be){1&N&&(m.TgZ(0,"th",22),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&N&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")," "))}function De(N,be){if(1&N&&(m.TgZ(0,"td",25),m._uU(1),m.qZA()),2&N){const Z=be.$implicit;let de;m.xp6(1),m.Oqu(null!==(de=Z.name)&&void 0!==de?de:Z.vo.name)}}function he(N,be){1&N&&m._UZ(0,"tr",29)}const Ye=function(N){return["/organizations",N]};function Be(N,be){if(1&N&&m._UZ(0,"tr",30),2&N){const Z=be.$implicit,de=m.oxw();let xe,ot;m.ekj("disable-outline",de.disableRouting)("cursor-pointer",!de.disableRouting),m.Q6J("perunWebAppsMiddleClickRouterLink",de.disableRouting?null:m.VKq(6,Ye,null!==(xe=Z.id)&&void 0!==xe?xe:Z.vo.id))("routerLink",de.disableRouting?null:m.VKq(8,Ye,null!==(ot=Z.id)&&void 0!==ot?ot:Z.vo.id))}}function se(N,be){1&N&&(m.TgZ(0,"perun-web-apps-alert",31),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&N&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function le(N,be){1&N&&(m.TgZ(0,"perun-web-apps-alert",32),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&N&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let k=(()=>{class N{constructor(Z){this.authResolver=Z,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=C.f7,this.getDataForColumnFun=(de,xe)=>N.getDataForColumn(de,xe,this.recentIds)}set matSort(Z){this.sort=Z}static getDataForColumn(Z,de,xe){switch(N.isEnrichedVo(Z)&&(Z=Z.vo),de){case"id":return Z.id.toString();case"shortName":return Z.shortName;case"name":return Z.name;case"recent":return xe&&xe.includes(Z.id)?"#".repeat(xe.indexOf(Z.id)):Z.name;default:return Z[de]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Z=>"id"!==Z)),this.setDataSource()}exportAllData(Z){(0,C.O6)((0,C.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),Z)}exportDisplayedData(Z){const de=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,xe=de+this.dataSource.paginator.pageSize;(0,C.O6)((0,C.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(de,xe),this.displayedColumns,this.getDataForColumnFun),Z)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Z,de)=>(0,C.Sd)(Z,de,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(Z,de)=>(0,C.pR)(Z,de,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}}return N.isEnrichedVo=be=>void 0!==be.vo,N.\u0275fac=function(Z){return new(Z||N)(m.Y36(M.x4))},N.\u0275cmp=m.Xpm({type:N,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(Z,de){if(1&Z&&(m.Gf(C.l9,7),m.Gf(e.YE,7)),2&Z){let xe;m.iGM(xe=m.CRH())&&(de.child=xe.first),m.iGM(xe=m.CRH())&&(de.matSort=xe.first)}},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions",tableId:"tableId"},features:[m.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","hierarchy"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn","data-cy","no-filter-result",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],[3,"svgIcon",4,"ngIf"],[3,"svgIcon"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn","data-cy","no-filter-result"],["alert_type","warn"]],template:function(Z,de){1&Z&&(m.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),m.NdJ("exportDisplayedData",function(ot){return de.exportDisplayedData(ot)})("exportAllData",function(ot){return de.exportAllData(ot)}),m.TgZ(2,"table",2),m.ynx(3,3),m.YNc(4,ie,1,0,"th",4),m.YNc(5,pe,4,9,"td",5),m.BQk(),m.ynx(6,6),m.YNc(7,Le,3,3,"th",7),m.YNc(8,T,2,1,"td",8),m.BQk(),m.ynx(9,9),m.YNc(10,W,1,0,"th",10),m.YNc(11,F,2,2,"td",11),m.BQk(),m.ynx(12,12),m.YNc(13,V,1,0,"th",10),m.YNc(14,Q,2,1,"td",11),m.BQk(),m.ynx(15,13),m.YNc(16,Ee,3,3,"th",7),m.YNc(17,ge,2,2,"td",11),m.BQk(),m.ynx(18,14),m.YNc(19,ve,3,3,"th",7),m.YNc(20,De,2,1,"td",11),m.BQk(),m.YNc(21,he,1,0,"tr",15),m.YNc(22,Be,1,10,"tr",16),m.qZA()()(),m.YNc(23,se,3,3,"perun-web-apps-alert",17),m.YNc(24,le,3,3,"perun-web-apps-alert",18)),2&Z&&(m.Q6J("hidden",0===de.dataSource.filteredData.length||0===de.vos.length),m.xp6(1),m.Q6J("dataLength",de.dataSource.filteredData.length)("tableId",de.tableId)("pageSizeOptions",de.pageSizeOptions),m.xp6(1),m.Q6J("dataSource",de.dataSource),m.xp6(19),m.Q6J("matHeaderRowDef",de.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",de.displayedColumns),m.xp6(1),m.Q6J("ngIf",0===de.dataSource.filteredData.length&&0!==de.vos.length),m.xp6(1),m.Q6J("ngIf",0===de.vos.length))},dependencies:[b.O5,D.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,v.rH,e.YE,e.nU,R.w,B.Hw,w.l,L.Y,q.W,O.Q,ee.X$,z.G],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),N})()},21029:(Xe,ue,p)=>{"use strict";p.d(ue,{FJ:()=>Mt,GI:()=>Nr,Wr:()=>We,r2:()=>ht,gr:()=>He,u3:()=>Zn,Qu:()=>Ei,pf:()=>Be,xF:()=>Ln,hd:()=>Vi,kZ:()=>si,wA:()=>J,rd:()=>Fe,Eg:()=>ot,QQ:()=>kr,Bp:()=>ye,qD:()=>rt,jd:()=>pt,FM:()=>r,jD:()=>W,eK:()=>Qn,Lc:()=>n,h4:()=>Pi,Us:()=>qi,iI:()=>ui,mk:()=>s,Ts:()=>an});var e=p(36895),A=p(89383),C=p(30671),M=p(65412),m=p(4859),b=p(59549),D=p(24006),v=p(284),R=p(51572),B=p(71948),w=p(99602),L=p(64425),O=p(97392),q=p(19516),ee=p(63189),z=p(94364),ie=p(35423),Te=p(84385),pe=p(28499),Le=p(60900),T=p(94650);let W=(()=>{class lt{}return lt.\u0275fac=function($e){return new($e||lt)},lt.\u0275mod=T.oAB({type:lt}),lt.\u0275inj=T.cJS({imports:[e.ez,A.aw,C.p0,M.Is,m.ot,b.lN,D.u5,v.c,R.Cq,B.Fk,w.FA,D.UX,L.Iq,O.Ps,q.d4,ee.r,z.Bz,ie.dp,Te.LD,pe.E3,Le.C]}),lt})();var F=p(61744),V=p(81591),te=p(3238),Q=p(20551);function Ee(lt,Vt){1<&&T._UZ(0,"mat-spinner",6)}function ge(lt,Vt){if(1<&&(T.TgZ(0,"mat-option",17),T._uU(1),T.ALo(2,"memberStatus"),T.qZA()),2<){const $e=Vt.$implicit;T.Q6J("value",$e),T.xp6(1),T.Oqu(T.lcZ(2,2,$e))}}function ve(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"mat-form-field",14)(1,"mat-label"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-select",15),T.NdJ("selectionChange",function(Wt){T.CHM($e);const dn=T.oxw(3);return T.KtG(dn.changeStatus(Wt))}),T.YNc(5,ge,3,4,"mat-option",16),T.qZA()()}if(2<){const $e=T.oxw(3);T.xp6(2),T.Oqu(T.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),T.xp6(3),T.Q6J("ngForOf",$e.allStatuses)}}function De(lt,Vt){if(1<&&(T.TgZ(0,"div",8),T._uU(1),T.ALo(2,"translate"),T.YNc(3,ve,6,4,"mat-form-field",13),T.qZA()),2<){const $e=T.oxw(2);T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),T.xp6(2),T.Q6J("ngIf",!$e.loading)}}function he(lt,Vt){if(1<&&(T.TgZ(0,"div",8),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"memberStatus"),T.qZA()),2<){const $e=T.oxw(2);T.xp6(1),T.AsE(" ",T.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," ",T.lcZ(3,4,$e.allStatuses[0])," ")}}function Ye(lt,Vt){if(1<&&(T.TgZ(0,"div",7)(1,"div",8),T._uU(2),T.ALo(3,"translate"),T.ALo(4,"memberStatus"),T.qZA(),T.TgZ(5,"div",9),T._uU(6),T.qZA(),T.YNc(7,De,4,4,"div",10),T.YNc(8,he,4,6,"div",10),T.TgZ(9,"div",11),T._UZ(10,"i",12),T.qZA()()),2<){const $e=T.oxw();T.xp6(2),T.AsE(" ",T.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",T.lcZ(4,8,$e.actualStatus)," "),T.xp6(4),T.Oqu($e.description),T.xp6(1),T.Q6J("ngIf",$e.allStatuses.length>1),T.xp6(1),T.Q6J("ngIf",1===$e.allStatuses.length),T.xp6(2),T.Q6J("innerHTML",$e.changeMessage,T.oJD)}}let Be=(()=>{class lt{constructor($e,yt,Wt,dn,An,Yn){this.dialogRef=$e,this.data=yt,this.memberManager=Wt,this.groupsManager=dn,this.notificatorService=An,this.translate=Yn,this.loading=!1,this.allStatuses=["VALID","INVALID","EXPIRED","DISABLED"]}ngOnInit(){switch(this.data.groupId?(this.theme="group-theme",this.actualStatus=this.data.member.groupStatus):(this.theme="vo-theme",this.actualStatus=this.data.member.status),this.changeStatusButton=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_STATUS"),this.changeStatusWithExpButton=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_STATUS_WITH_EXPIRATION"),this.submitButtonText=this.changeStatusButton,this.cancelOrBackButton=this.translate.instant(this.data.backButton?"DIALOGS.CHANGE_STATUS.BACK":"DIALOGS.CHANGE_STATUS.CANCEL"),this.data.groupId?("VALID"===this.actualStatus?(this.allStatuses=["EXPIRED"],this.selectedStatus="EXPIRED"):(this.allStatuses=["VALID"],this.selectedStatus="VALID"),this.submitButtonText=this.changeStatusWithExpButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)):this.allStatuses="INVALID"===this.actualStatus?["VALID","EXPIRED"]:this.allStatuses.filter($e=>$e!==this.actualStatus),this.actualStatus){case"VALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.VALID_DESCRIPTION");break;case"INVALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.INVALID_DESCRIPTION");break;case"EXPIRED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.EXPIRED_DESCRIPTION");break;case"DISABLED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.DISABLED_DESCRIPTION");break;default:this.description=""}}changeStatus($e){this.selectedStatus=$e.value,this.submitButtonText=("VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus)&&!this.data.disableChangeExpiration?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe({next:$e=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(yt=>{this.notificatorService.showSuccess(yt),this.dialogRef.close($e)})},error:()=>this.loading=!1}):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe({next:$e=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(yt=>{this.notificatorService.showSuccess(yt),this.dialogRef.close($e)})},error:()=>this.loading=!1})}changeStatusMessage($e,yt){if("VALID"===$e)switch(yt){case"INVALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_INVALID");break;case"EXPIRED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_EXPIRED");break;case"DISABLED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_DISABLED");break;default:this.changeMessage=""}else switch(yt){case"VALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_VALID");break;case"INVALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_INVALID");break;case"EXPIRED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_EXPIRED");break;case"DISABLED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_DISABLED");break;default:this.changeMessage=""}}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.uq),T.Y36(F.ff),T.Y36(V.V6),T.Y36(V.Te))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-change-member-status-dialog"]],decls:11,vars:11,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-weight-bold","pb-1"],[1,"text-muted","pb-3"],["class","font-weight-bold pb-1",4,"ngIf"],[1,"text-muted","new-line"],[3,"innerHTML"],["class","mr-2 mt-2",4,"ngIf"],[1,"mr-2","mt-2"],[3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Ee,1,0,"mat-spinner",1),T.YNc(5,Ye,11,10,"div",2),T.TgZ(6,"div",3)(7,"button",4),T.NdJ("click",function(){return yt.cancel()}),T._uU(8),T.qZA(),T.TgZ(9,"button",5),T.NdJ("click",function(){return yt.submit()}),T._uU(10),T.qZA()()()),2&$e&&(T.Tol(yt.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading),T.xp6(3),T.hij(" ",yt.cancelOrBackButton," "),T.xp6(1),T.Q6J("disabled",yt.loading||!yt.selectedStatus),T.xp6(1),T.hij(" ",yt.submitButtonText," "))},dependencies:[e.sg,e.O5,M.uh,M.xY,M.H8,m.lW,b.KE,b.hX,R.Ou,Te.gD,te.ey,A.X$,Q.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),lt})();function se(lt,Vt){1<&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")," "))}function le(lt,Vt){1<&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")," "))}function k(lt,Vt){1<&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")," "))}function N(lt,Vt){1<&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")," "))}function be(lt,Vt){1<&&T._UZ(0,"mat-spinner",8)}function Z(lt,Vt){if(1<&&(T.TgZ(0,"mat-form-field"),T._UZ(1,"input",13),T.ALo(2,"translate"),T.qZA()),2<){const $e=T.oxw(2);T.xp6(1),T.MGl("placeholder","",T.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),T.Q6J("value",$e.shortName)}}function de(lt,Vt){if(1<&&(T.TgZ(0,"mat-form-field",14),T._UZ(1,"textarea",15),T.ALo(2,"translate"),T.qZA()),2<){const $e=T.oxw(2);T.xp6(1),T.MGl("placeholder","",T.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),T.Q6J("formControl",$e.descriptionCtrl)}}function xe(lt,Vt){if(1<&&(T.TgZ(0,"div",9),T.YNc(1,Z,3,4,"mat-form-field",10),T.TgZ(2,"mat-form-field"),T._UZ(3,"input",11),T.ALo(4,"translate"),T.TgZ(5,"mat-error"),T._uU(6),T.ALo(7,"translate"),T.qZA()(),T.YNc(8,de,3,4,"mat-form-field",12),T.qZA()),2<){const $e=T.oxw();T.xp6(1),T.Q6J("ngIf",2===$e.dialogType),T.xp6(2),T.MGl("placeholder","",T.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),T.Q6J("formControl",$e.nameCtrl),T.xp6(3),T.hij(" ",$e.invalidNameMessage.length?$e.invalidNameMessage:T.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),T.xp6(2),T.Q6J("ngIf",2!==$e.dialogType)}}var ot=(()=>{return(lt=ot||(ot={}))[lt.FACILITY=0]="FACILITY",lt[lt.RESOURCE=1]="RESOURCE",lt[lt.VO=2]="VO",lt[lt.GROUP=3]="GROUP",ot;var lt})();let Fe=(()=>{class lt{constructor($e,yt,Wt,dn,An,Yn,ri,bi,cr){this.dialogRef=$e,this.data=yt,this.notificator=Wt,this.translateService=dn,this.facilitiesManager=An,this.resourcesManager=Yn,this.groupsManager=ri,this.vosManager=bi,this.store=cr,this.invalidNameMessage=this.data.dialogType===ot.GROUP?this.store.getProperty("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===ot.GROUP?this.store.getProperty("group_name_secondary_regex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case ot.FACILITY:this.nameCtrl=new D.p4(this.data.facility.name,[D.kI.required,D.kI.pattern(".*[\\S]+.*"),D.kI.maxLength(129)]),this.descriptionCtrl=new D.p4(this.data.facility.description);break;case ot.RESOURCE:this.nameCtrl=new D.p4(this.data.resource.name,[D.kI.required,D.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new D.p4(this.data.resource.description);break;case ot.GROUP:{const $e=this.data.group.name.split(":");this.nameCtrl=new D.p4($e[$e.length-1],[D.kI.required,D.kI.pattern(".*[\\S]+.*"),D.kI.pattern(this.secondaryRegex),D.kI.maxLength(129)]),this.descriptionCtrl=new D.p4(this.data.group.description);break}case ot.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new D.p4(this.data.vo.name,[D.kI.required,D.kI.pattern(".*[\\S]+.*"),D.kI.maxLength(129)]),this.descriptionCtrl=new D.p4}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case ot.FACILITY:this.editFacility();break;case ot.RESOURCE:this.editResource();break;case ot.GROUP:this.editGroup();break;case ot.VO:this.editVo()}}editResource(){this.data.resource.name=this.nameCtrl.value,this.data.resource.description=this.descriptionCtrl.value,this.resourcesManager.updateResource({resource:this.data.resource}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.RESOURCE_SUCCESS").subscribe($e=>{this.notificator.showSuccess($e),this.dialogRef.close(!0)})},()=>this.loading=!1)}editFacility(){this.data.facility.name=this.nameCtrl.value,this.data.facility.description=this.descriptionCtrl.value,this.facilitiesManager.updateFacility({facility:this.data.facility}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FACILITY_SUCCESS").subscribe($e=>{this.notificator.showSuccess($e),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe($e=>{const yt=$e;yt.name=this.nameCtrl.value,yt.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:yt}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(Wt=>{this.notificator.showSuccess(Wt),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}editVo(){this.data.vo.name=this.nameCtrl.value,this.vosManager.updateVo({vo:this.data.vo}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.VO_SUCCESS").subscribe($e=>{this.notificator.showSuccess($e),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(V.V6),T.Y36(A.sK),T.Y36(F.IQ),T.Y36(F.xk),T.Y36(F.ff),T.Y36(F.YF),T.Y36(V.d6))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-edit-facility-resource-group-vo-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title","",4,"ngIf"],["mat-dialog-content",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl","placeholder"],["class","mt-3",4,"ngIf"],["disabled","","matInput","","required","",3,"value","placeholder"],[1,"mt-3"],["mat-autosize","","matInput","",1,"overflow-hidden",3,"formControl","placeholder"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div"),T.YNc(1,se,3,3,"h1",0),T.YNc(2,le,3,3,"h1",0),T.YNc(3,k,3,3,"h1",0),T.YNc(4,N,3,3,"h1",0),T.TgZ(5,"div",1),T.YNc(6,be,1,0,"mat-spinner",2),T.YNc(7,xe,9,9,"div",3),T.qZA(),T.TgZ(8,"div",4)(9,"button",5),T.NdJ("click",function(){return yt.cancel()}),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.TgZ(12,"button",6),T.NdJ("click",function(){return yt.submit()}),T._uU(13),T.ALo(14,"translate"),T.qZA()()()),2&$e&&(T.Tol(yt.theme),T.xp6(1),T.Q6J("ngIf",0===yt.dialogType),T.xp6(1),T.Q6J("ngIf",1===yt.dialogType),T.xp6(1),T.Q6J("ngIf",2===yt.dialogType),T.xp6(1),T.Q6J("ngIf",3===yt.dialogType),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading),T.xp6(3),T.hij(" ",T.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),T.xp6(2),T.Q6J("disabled",yt.loading||yt.nameCtrl.invalid||yt.descriptionCtrl.invalid),T.xp6(1),T.hij(" ",T.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},dependencies:[e.O5,M.uh,M.xY,M.H8,m.lW,b.TO,b.KE,D.Fj,D.JJ,D.Q7,v.Nt,R.Ou,D.oH,A.X$]}),lt})();var ut=p(64080),tt=p(9244);function vt(lt,Vt){1<&&T._UZ(0,"mat-spinner",7)}const X=function(lt){return{interval:lt}};function nt(lt,Vt){if(1<&&(T.TgZ(0,"div",8)(1,"mat-form-field"),T._UZ(2,"input",9),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-form-field"),T._UZ(5,"input",9),T.ALo(6,"translate"),T.ALo(7,"translate"),T.qZA(),T.TgZ(8,"mat-form-field"),T._UZ(9,"input",9),T.ALo(10,"translate"),T.qZA(),T.TgZ(11,"mat-form-field"),T._UZ(12,"input",9),T.ALo(13,"translate"),T.ALo(14,"translate"),T.qZA(),T.TgZ(15,"mat-form-field"),T._UZ(16,"input",9),T.ALo(17,"translate"),T.ALo(18,"translate"),T.qZA()()),2<){const $e=T.oxw();T.xp6(2),T.s9C("placeholder",T.lcZ(3,10,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")),T.Q6J("value",$e.group.name),T.xp6(3),T.s9C("placeholder",T.lcZ(7,14,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")),T.Q6J("value",T.lcZ(6,12,$e.syncType)),T.xp6(4),T.s9C("placeholder",T.lcZ(10,16,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")),T.Q6J("value",$e.syncState),T.xp6(3),T.s9C("placeholder",T.lcZ(14,20,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")),T.Q6J("value",T.lcZ(13,18,$e.syncTime)),T.xp6(4),T.s9C("placeholder",T.lcZ(18,25,"DIALOGS.GROUP_SYNC_DETAIL.SYNC_INTERVAL")),T.Q6J("value",T.xi3(17,22,"DIALOGS.GROUP_SYNC_DETAIL.SYNC_INTERVAL_MINUTES",T.VKq(27,X,$e.syncInterval)))}}function Ae(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onForce())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2<){const $e=T.oxw();T.Q6J("disabled",$e.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let ye=(()=>{class lt{constructor($e,yt,Wt,dn){this.dialogRef=$e,this.data=yt,this.groupService=Wt,this.notificator=dn,this.loading=!0,this.syncInterval="",this.syncState="",this.syncTime="",this.syncType=""}ngOnInit(){this.theme=this.data.theme,this.loadGroup()}onCancel(){this.dialogRef.close(null)}onForce(){this.loading=!0,"BASIC"===this.type?this.groupService.forceGroupSynchronization(this.group.id).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},error:()=>this.loading=!1}):this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},error:()=>this.loading=!1})}refresh(){this.loadGroup()}loadGroup(){this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[ut.r.GROUP_SYNC_ENABLED,ut.r.GROUP_LAST_SYNC_STATE,ut.r.GROUP_LAST_SYNC_TIMESTAMP,ut.r.GROUP_STRUCTURE_SYNC_ENABLED,ut.r.GROUP_LAST_STRUCTURE_SYNC_STATE,ut.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,ut.r.GROUP_SYNC_INTERVAL]).subscribe($e=>{this.group=$e;const yt=(0,tt.IL)(this.group.attributes,ut.r.GROUP_SYNC_ENABLED).value,Wt=(0,tt.IL)(this.group.attributes,ut.r.GROUP_LAST_SYNC_STATE).value,dn=(0,tt.IL)(this.group.attributes,ut.r.GROUP_LAST_SYNC_TIMESTAMP).value,An=(0,tt.IL)(this.group.attributes,ut.r.GROUP_STRUCTURE_SYNC_ENABLED).value,Yn=(0,tt.IL)(this.group.attributes,ut.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,ri=(0,tt.IL)(this.group.attributes,ut.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,bi=(0,tt.IL)(this.group.attributes,ut.r.GROUP_SYNC_INTERVAL).value;this.syncInterval=null===bi?"N/A":(5*+bi).toString(),null!==yt&&"true"===yt&&(this.type="BASIC",this.syncType="DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC",this.syncState=""!==Wt?Wt:"OK",this.syncTime=(0,e.p6)(dn,"YYYY-MM-dd H:mm:ss","en")),null!==An&&An&&(this.type="STRUCTURED",this.syncType="DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC",this.syncState=""!==Yn?Yn:"OK",this.syncTime=(0,e.p6)(ri,"YYYY-MM-dd H:mm:ss","en")),this.loading=!1})}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.ff),T.Y36(V.V6))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-group-sync-detail-dialog"]],decls:12,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-flat-button","",1,"ml-2",3,"click"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","readonly","",3,"value","placeholder"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,vt,1,0,"mat-spinner",1),T.YNc(5,nt,19,29,"div",2),T.TgZ(6,"div",3)(7,"div",4)(8,"button",5),T.NdJ("click",function(){return yt.onCancel()}),T._uU(9),T.ALo(10,"translate"),T.qZA(),T.YNc(11,Ae,3,4,"button",6),T.qZA()()()),2&$e&&(T.Tol(yt.theme),T.xp6(2),T.Oqu(T.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading),T.xp6(4),T.hij(" ",T.lcZ(10,10,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "),T.xp6(2),T.Q6J("ngIf","BASIC"===yt.type||"STRUCTURED"===yt.type))},dependencies:[e.O5,M.uh,M.xY,M.H8,m.lW,b.KE,v.Nt,R.Ou,A.X$]}),lt})();function _e(lt,Vt){1<&&T._UZ(0,"mat-spinner",7)}function Se(lt,Vt){1<&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function Ne(lt,Vt){1<&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function Ce(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),T._uU(3),T.ALo(4,"translate"),T.qZA(),T.TgZ(5,"input",9,10),T.NdJ("ngModelChange",function(Wt){T.CHM($e);const dn=T.oxw();return T.KtG(dn.subject=Wt)}),T.qZA(),T.YNc(7,Se,3,3,"mat-error",11),T.qZA(),T.TgZ(8,"mat-form-field")(9,"mat-label"),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.TgZ(12,"textarea",12,13),T.NdJ("ngModelChange",function(Wt){T.CHM($e);const dn=T.oxw();return T.KtG(dn.message=Wt)}),T.ALo(14,"translate"),T._uU(15," "),T.qZA(),T.YNc(16,Ne,3,3,"mat-error",11),T.qZA()()}if(2<){const $e=T.MAs(6),yt=T.MAs(13),Wt=T.oxw();T.xp6(3),T.Oqu(T.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),T.xp6(2),T.Q6J("ngModel",Wt.subject),T.xp6(2),T.Q6J("ngIf",$e.invalid),T.xp6(3),T.Oqu(T.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),T.xp6(2),T.s9C("placeholder",T.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),T.Q6J("ngModel",Wt.message),T.xp6(4),T.Q6J("ngIf",yt.invalid)}}let fe=(()=>{class lt{constructor($e,yt,Wt,dn,An,Yn){this.dialogRef=$e,this.translate=yt,this.notificator=Wt,this.rtMessages=dn,this.data=An,this.storeService=Yn,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe($e=>{this.dialogRef.afterClosed().subscribe(()=>{const yt="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),$e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(yt)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const $e=this.storeService.getProperty("config");let yt=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(yt=yt.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),yt=yt.concat(this.data.error.message,"\n","Perun instance: ",$e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const Wt=/"password":".+?"/;let dn=JSON.stringify(this.data.error.payload);dn=dn.replace(Wt,'"password":"####"'),yt=yt.concat("Payload:\n"+dn+"\n\n")}return yt=yt.concat("Sent from new Perun Gui, version: ",p(4147).i8),yt.split("\n").join("\n ")}parseMethod($e){return $e&&this.methodRegexp.exec($e)[1]}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(A.sK),T.Y36(V.V6),T.Y36(F.Hr),T.Y36(M.WI),T.Y36(V.d6))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.YNc(3,_e,1,0,"mat-spinner",1),T.YNc(4,Ce,17,13,"div",2),T.TgZ(5,"div",3)(6,"div",4)(7,"button",5),T.NdJ("click",function(){return yt.dialogRef.close()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",6),T.NdJ("click",function(){return yt.sendBugReport()}),T._uU(11),T.ALo(12,"translate"),T.qZA()()()),2&$e&&(T.xp6(1),T.Oqu(T.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading),T.xp6(4),T.hij(" ",T.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),T.xp6(2),T.Q6J("disabled",""===yt.message||""===yt.subject||yt.loading),T.xp6(1),T.hij(" ",T.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[e.O5,M.uh,M.xY,M.H8,m.lW,b.TO,b.KE,b.hX,D.Fj,D.JJ,D.Q7,D.On,v.Nt,R.Ou,A.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),lt})(),r=(()=>{class lt{constructor($e,yt,Wt){this.dialogRef=$e,this.dialog=yt,this.data=Wt}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const $e=(0,tt.kZ)();$e.width="550px",$e.data={error:this.data.error},$e.autoFocus=!1,this.dialog.open(fe,$e)}),this.dialogRef.close()}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.uw),T.Y36(M.WI))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.qZA(),T.TgZ(2,"div",1),T._uU(3),T.qZA(),T.TgZ(4,"div",2)(5,"div",3)(6,"button",4),T.NdJ("click",function(){return yt.onBugReportClick()}),T._uU(7),T.ALo(8,"translate"),T.qZA(),T.TgZ(9,"button",5),T.NdJ("click",function(){return yt.onCloseClick()}),T._uU(10),T.ALo(11,"translate"),T.qZA()()()),2&$e&&(T.xp6(1),T.Oqu(yt.data.title),T.xp6(2),T.hij(" ",yt.data.description,"\n"),T.xp6(3),T.Q6J("hidden","error"!==yt.data.type),T.xp6(1),T.hij(" ",T.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),T.xp6(3),T.hij(" ",T.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[M.uh,M.xY,M.H8,m.lW,A.X$]}),lt})();var u=p(34447);function _(lt,Vt){1<&&T._UZ(0,"mat-spinner",3)}function E(lt,Vt){1<&&T._UZ(0,"th",15)}function h(lt,Vt){if(1<&&(T.TgZ(0,"td",16),T._uU(1),T.qZA()),2<){const $e=Vt.$implicit;T.xp6(1),T.hij(" ",$e.userExtSource.extSource.name," ")}}function a(lt,Vt){1<&&T._UZ(0,"tr",17)}function i(lt,Vt){1<&&T._UZ(0,"tr",18)}function t(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"div")(1,"div",4)(2,"p"),T._uU(3),T.ALo(4,"translate"),T.ALo(5,"customTranslate"),T.qZA(),T.TgZ(6,"div",5),T._uU(7),T.ALo(8,"translate"),T.ALo(9,"customTranslate"),T.qZA(),T.TgZ(10,"table",6),T.ynx(11,7),T.YNc(12,E,1,0,"th",8),T.YNc(13,h,2,1,"td",9),T.BQk(),T.YNc(14,a,1,0,"tr",10),T.YNc(15,i,1,0,"tr",11),T.qZA()(),T.TgZ(16,"div",12)(17,"button",13),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onCancel())}),T._uU(18),T.ALo(19,"translate"),T.ALo(20,"customTranslate"),T.qZA(),T.TgZ(21,"button",14),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onSubmit())}),T._uU(22),T.ALo(23,"translate"),T.ALo(24,"customTranslate"),T.qZA()()()}if(2<){const $e=T.oxw();T.xp6(3),T.hij(" ",T.lcZ(4,7,T.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),T.xp6(4),T.hij(" ",T.lcZ(8,11,T.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),T.xp6(3),T.Q6J("dataSource",$e.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",$e.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",$e.displayedColumns),T.xp6(3),T.hij(" ",T.lcZ(19,15,T.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),T.xp6(4),T.hij(" ",T.lcZ(23,19,T.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let n=(()=>{class lt{constructor($e,yt,Wt,dn,An){this.dialogRef=$e,this.data=yt,this.usersManagerService=Wt,this.translate=dn,this.notificator=An,this.force=!1,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new C.by(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const $e=this.data.extSources.map(yt=>yt.userExtSource.id);this.usersManagerService.removeUserExtSources(this.data.userId,$e,this.force).subscribe({next:()=>{this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.Fv),T.Y36(V.Te),T.Y36(V.V6))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA(),T.TgZ(4,"div"),T.YNc(5,_,1,0,"mat-spinner",1),T.YNc(6,t,25,23,"div",2),T.qZA()),2&$e&&(T.xp6(1),T.hij(" ",T.lcZ(2,6,T.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),T.xp6(3),T.Tol(yt.theme),T.xp6(1),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,M.uh,M.xY,M.H8,m.lW,R.Ou,A.X$,u.a]}),lt})();var o=p(39349);let s=(()=>{class lt{constructor($e,yt){this.dialogRef=$e,this.data=yt}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.qZA(),T.TgZ(2,"div",1)(3,"textarea",2),T._uU(4),T.qZA()(),T.TgZ(5,"div",3)(6,"button",4),T.NdJ("click",function(){return yt.onCancel()}),T._uU(7),T.ALo(8,"translate"),T.qZA(),T.TgZ(9,"button",5),T._uU(10),T.ALo(11,"translate"),T.qZA()()),2&$e&&(T.xp6(1),T.Oqu(yt.title),T.xp6(3),T.Oqu(yt.value),T.xp6(3),T.hij(" ",T.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),T.xp6(2),T.Q6J("cdkCopyToClipboard",yt.value),T.xp6(1),T.hij(" ",T.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},dependencies:[M.uh,M.xY,M.H8,m.lW,o.IC,v.Nt,L.i3,A.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),lt})();function l(lt,Vt){1<&&T._UZ(0,"th",12)}function d(lt,Vt){if(1<&&(T.TgZ(0,"td",13),T._uU(1),T.qZA()),2<){const $e=Vt.$implicit;T.xp6(1),T.Oqu($e.displayName)}}function c(lt,Vt){1<&&T._UZ(0,"tr",14)}function S(lt,Vt){1<&&T._UZ(0,"tr",15)}let J=(()=>{class lt{constructor($e,yt,Wt,dn,An){this.dialogRef=$e,this.data=yt,this.notificator=Wt,this.translate=dn,this.attributesManager=An,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new C.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){switch(this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()})}break;case"facility":"user"===this.data.secondEntity?this.attributesManager.setFacilityUserAttributes({facility:this.data.entityId,user:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"resource":switch(this.data.secondEntity){case"member":this.attributesManager.setMemberResourceAttributes({resource:this.data.entityId,member:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;case"group":this.attributesManager.setResourceGroupAttributes({resource:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess())}}}onSuccess(){this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe($e=>{this.notificator.showSuccess($e),this.dialogRef.close(!0)})}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(V.V6),T.Y36(A.sK),T.Y36(F.H8))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-edit-attribute-dialog"]],decls:23,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1)(4,"div"),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"div",2),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"table",3),T.ynx(11,4),T.YNc(12,l,1,0,"th",5),T.YNc(13,d,2,1,"td",6),T.BQk(),T.YNc(14,c,1,0,"tr",7),T.YNc(15,S,1,0,"tr",8),T.qZA()(),T.TgZ(16,"div",9)(17,"button",10),T.NdJ("click",function(){return yt.onCancel()}),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.TgZ(20,"button",11),T.NdJ("click",function(){return yt.onSubmit()}),T._uU(21),T.ALo(22,"translate"),T.qZA()()),2&$e&&(T.xp6(1),T.Oqu(T.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),T.xp6(4),T.hij(" ",T.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),T.xp6(3),T.hij(" ",T.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),T.xp6(2),T.Q6J("dataSource",yt.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",yt.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",yt.displayedColumns),T.xp6(3),T.hij(" ",T.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),T.xp6(3),T.hij(" ",T.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},dependencies:[C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,M.uh,M.xY,M.H8,m.lW,A.X$]}),lt})(),ht=(()=>{class lt{constructor($e,yt){this.dialogRef=$e,this.data=yt,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h5",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1)(4,"mat-form-field")(5,"textarea",2),T.NdJ("ngModelChange",function(dn){return yt.attributeValue=dn}),T.qZA()()(),T.TgZ(6,"div",3)(7,"button",4),T.NdJ("click",function(){return yt.cancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return yt.submit()}),T._uU(11),T.ALo(12,"translate"),T.qZA()()),2&$e&&(T.xp6(1),T.hij(" ",T.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),T.xp6(4),T.Q6J("ngModel",yt.attributeValue),T.xp6(3),T.hij(" ",T.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),T.xp6(3),T.hij(" ",T.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[M.uh,M.xY,M.H8,m.lW,b.KE,D.Fj,D.JJ,D.On,o.IC,v.Nt,A.X$]}),lt})(),We=(()=>{class lt{constructor($e,yt){this.dialogRef=$e,this.data=yt}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h5",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1)(4,"div"),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"div",2),T._uU(8),T.qZA()(),T.TgZ(9,"div",3)(10,"button",4),T.NdJ("click",function(){return yt.cancel()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.TgZ(13,"button",5),T.NdJ("click",function(){return yt.submit()}),T._uU(14),T.ALo(15,"translate"),T.qZA()()),2&$e&&(T.xp6(1),T.hij(" ",T.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),T.xp6(4),T.hij(" ",T.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),T.xp6(3),T.hij(" ",yt.data.name," "),T.xp6(3),T.hij(" ",T.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),T.xp6(3),T.hij(" ",T.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[M.uh,M.xY,M.H8,m.lW,A.X$]}),lt})();var et=p(98380);function ne(lt,Vt){if(1<&&(T.TgZ(0,"perun-web-apps-alert",9),T._uU(1),T.qZA()),2<){const $e=T.oxw();T.xp6(1),T.Oqu($e.pendingEmailsMessage)}}function Ue(lt,Vt){1<&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,T.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let He=(()=>{class lt{constructor($e,yt,Wt,dn,An,Yn){this.dialogRef=$e,this.data=yt,this.translate=Wt,this.notificator=dn,this.usersManagerService=An,this.authService=Yn,this.pendingMails=[],Wt.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(ri=>this.successMessage=ri),Wt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(ri=>this.pendingEmailsMessageStart=ri),Wt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(ri=>this.pendingEmailsMessageEnd=ri)}ngOnInit(){this.emailControl=new D.p4(null,[D.kI.required,D.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe($e=>{this.pendingMails=$e.filter((Wt,dn,An)=>dn===An.indexOf(Wt));let yt="";this.pendingMails.forEach(Wt=>yt+=`${Wt===this.pendingMails[0]?"":", "}${Wt}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+yt+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const yt=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",yt[0]+"//"+yt[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(A.sK),T.Y36(V.V6),T.Y36(F.Fv),T.Y36(V.e8))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA(),T.TgZ(4,"div",1),T.YNc(5,ne,2,1,"perun-web-apps-alert",2),T.TgZ(6,"mat-form-field",3)(7,"label",3),T._UZ(8,"input",4),T.ALo(9,"translate"),T.ALo(10,"customTranslate"),T.qZA(),T.YNc(11,Ue,4,5,"mat-error",5),T.qZA()(),T.TgZ(12,"div",6)(13,"button",7),T.NdJ("click",function(){return yt.onCancel()}),T._uU(14),T.ALo(15,"translate"),T.ALo(16,"customTranslate"),T.qZA(),T.TgZ(17,"button",8),T.NdJ("click",function(){return yt.onSubmit()}),T._uU(18),T.ALo(19,"translate"),T.ALo(20,"customTranslate"),T.qZA()()),2&$e&&(T.xp6(1),T.Oqu(T.lcZ(2,8,T.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),T.xp6(4),T.Q6J("ngIf",yt.pendingMails.length),T.xp6(3),T.s9C("placeholder",T.lcZ(9,12,T.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),T.Q6J("formControl",yt.emailControl),T.xp6(3),T.Q6J("ngIf",yt.emailControl.invalid),T.xp6(3),T.hij(" ",T.lcZ(15,16,T.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),T.xp6(3),T.Q6J("disabled",!yt.emailControl.valid),T.xp6(1),T.hij(" ",T.lcZ(19,20,T.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},dependencies:[e.O5,M.uh,M.xY,M.H8,m.lW,b.TO,b.KE,D.Fj,D.JJ,D.Q7,v.Nt,D.oH,et.w,A.X$,u.a]}),lt})();function Oe(lt,Vt){1<&&T._UZ(0,"mat-spinner",7)}function Re(lt,Vt){1<&&(T.TgZ(0,"div",12),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function re(lt,Vt){1<&&T._UZ(0,"th",19)}function we(lt,Vt){if(1<&&(T.TgZ(0,"td",20),T._uU(1),T.qZA()),2<){const $e=Vt.$implicit;T.xp6(1),T.Oqu($e)}}function st(lt,Vt){1<&&T._UZ(0,"tr",21)}function Ke(lt,Vt){1<&&T._UZ(0,"tr",22)}function Et(lt,Vt){if(1<&&(T.TgZ(0,"table",13),T.ynx(1,14),T.YNc(2,re,1,0,"th",15),T.YNc(3,we,2,1,"td",16),T.BQk(),T.YNc(4,st,1,0,"tr",17),T.YNc(5,Ke,1,0,"tr",18),T.qZA()),2<){const $e=T.oxw(2);T.Q6J("dataSource",$e.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",$e.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",$e.displayedColumns)}}function ke(lt,Vt){if(1<&&(T.TgZ(0,"perun-web-apps-alert",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<){const $e=T.oxw(2);T.Q6J("alert_type","warn"),T.xp6(1),T.hij(" ",T.lcZ(2,2,$e.data.alert)," ")}}function at(lt,Vt){if(1<&&(T.TgZ(0,"div",8)(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Re,3,3,"div",9),T.YNc(5,Et,6,3,"table",10),T.YNc(6,ke,3,4,"perun-web-apps-alert",11),T.qZA()),2<){const $e=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,4,$e.data.description)," "),T.xp6(2),T.Q6J("ngIf",$e.data.showAsk),T.xp6(1),T.Q6J("ngIf",$e.data.items.length),T.xp6(1),T.Q6J("ngIf",$e.data.alert)}}function It(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"button",24),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onSubmit())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2<){const $e=T.oxw();T.Q6J("disabled",$e.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function jt(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"button",25),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onSubmit())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2<){const $e=T.oxw();T.Q6J("disabled",$e.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let an=(()=>{class lt{constructor($e,yt){this.dialogRef=$e,this.data=yt,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new C.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-weight-bold",4,"ngIf"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Oe,1,0,"mat-spinner",1),T.YNc(5,at,7,6,"div",2),T.TgZ(6,"div",3)(7,"button",4),T.NdJ("click",function(){return yt.onCancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.YNc(10,It,3,4,"button",5),T.YNc(11,jt,3,4,"button",6),T.qZA()()),2&$e&&(T.Tol(yt.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,yt.data.title)),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading),T.xp6(3),T.hij(" ",T.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),T.xp6(2),T.Q6J("ngIf","remove"===yt.data.type),T.xp6(1),T.Q6J("ngIf","confirmation"===yt.data.type))},dependencies:[e.O5,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,M.uh,M.xY,M.H8,m.lW,R.Ou,et.w,A.X$]}),lt})();var Kt=p(57851);let on=(()=>{class lt{transform($e){const yt=$e.split(":");return yt[yt.length-1]}}return lt.\u0275fac=function($e){return new($e||lt)},lt.\u0275pipe=T.Yjl({name:"parseGroupName",type:lt,pure:!0}),lt})();function Cn(lt,Vt){1<&&T._UZ(0,"mat-spinner",7)}function Tt(lt,Vt){1<&&(T.TgZ(0,"perun-web-apps-alert"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function Dt(lt,Vt){1<&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Ze(lt,Vt){1<&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const wt=function(lt){return{"min-width":lt}};function Ft(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"mat-tree-node",16)(1,"li",17)(2,"div",18),T.NdJ("click",function(){const dn=T.CHM($e).$implicit,An=T.oxw(3);return T.KtG(An.navigate(dn.id,dn.include))}),T._UZ(3,"button",19),T.TgZ(4,"div",20)(5,"span"),T._uU(6),T.ALo(7,"parseGroupName"),T.qZA(),T.YNc(8,Dt,3,3,"span",21),T.YNc(9,Ze,3,3,"span",21),T.qZA(),T.TgZ(10,"span",22),T._uU(11),T.qZA()()()()}if(2<){const $e=Vt.$implicit,yt=T.oxw(3);T.xp6(2),T.ekj("cursor-pointer",$e.direct||$e.include)("act-disabled",!$e.direct&&!$e.include),T.xp6(2),T.Q6J("ngStyle",T.VKq(11,wt,yt.getMinWidth($e.level))),T.xp6(2),T.Oqu(T.lcZ(7,9,$e.name)),T.xp6(2),T.Q6J("ngIf",$e.direct),T.xp6(1),T.Q6J("ngIf",$e.include),T.xp6(2),T.Oqu($e.description)}}function ln(lt,Vt){1<&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function bn(lt,Vt){1<&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function gn(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"mat-nested-tree-node")(1,"li")(2,"div",17)(3,"button",24)(4,"mat-icon",25),T._uU(5),T.qZA()(),T.TgZ(6,"div",18),T.NdJ("click",function(){const dn=T.CHM($e).$implicit,An=T.oxw(3);return T.KtG(An.navigate(dn.id,dn.include))}),T.TgZ(7,"div",20)(8,"span"),T._uU(9),T.ALo(10,"parseGroupName"),T.qZA(),T.YNc(11,ln,3,3,"span",21),T.YNc(12,bn,3,3,"span",21),T.qZA(),T.TgZ(13,"span",22),T._uU(14),T.qZA()()(),T.TgZ(15,"ul"),T.GkF(16,26),T.qZA()()()}if(2<){const $e=Vt.$implicit,yt=T.oxw(3);T.xp6(3),T.uIk("aria-label","Toggle "+$e.name),T.xp6(2),T.hij(" ",yt.treeControl.isExpanded($e)?"expand_more":"chevron_right"," "),T.xp6(1),T.ekj("cursor-pointer",$e.direct||$e.include)("act-disabled",!$e.direct&&!$e.include),T.xp6(1),T.Q6J("ngStyle",T.VKq(15,wt,yt.getMinWidth($e.level))),T.xp6(2),T.Oqu(T.lcZ(10,13,$e.name)),T.xp6(2),T.Q6J("ngIf",$e.direct),T.xp6(1),T.Q6J("ngIf",$e.include),T.xp6(2),T.Oqu($e.description),T.xp6(1),T.ekj("example-tree-invisible",!yt.treeControl.isExpanded($e))}}function zn(lt,Vt){if(1<&&(T.TgZ(0,"mat-tree",13),T.YNc(1,Ft,12,13,"mat-tree-node",14),T.YNc(2,gn,17,17,"mat-nested-tree-node",15),T.qZA()),2<){const $e=T.oxw(2);T.Q6J("dataSource",$e.dataSource)("treeControl",$e.treeControl),T.xp6(2),T.Q6J("matTreeNodeDefWhen",$e.hasChild)}}function bt(lt,Vt){if(1<&&(T.TgZ(0,"div",8)(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-form-field",9),T._UZ(5,"input",10),T.ALo(6,"translate"),T.qZA(),T.YNc(7,Tt,3,3,"perun-web-apps-alert",11),T.YNc(8,zn,3,3,"mat-tree",12),T.qZA()),2<){const $e=T.oxw();T.xp6(2),T.Oqu(T.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),T.xp6(3),T.s9C("placeholder",T.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),T.Q6J("formControl",$e.formControl),T.xp6(2),T.Q6J("ngIf",!$e.dataSource.data.length),T.xp6(1),T.Q6J("ngIf",$e.dataSource.data.length)}}const Lt=function(lt){return{name:lt}};let pt=(()=>{class lt{constructor($e,yt,Wt){this.dialogRef=$e,this.data=yt,this.groupsManagerService=Wt,this.treeControl=new Kt.VY(dn=>dn.children),this.dataSource=new ie.WX,this.formControl=new D.p4(""),this.userName="",this.groupTree=[],this.paths=[],this.hasChild=(dn,An)=>!!An.children&&An.children.length>0}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe($e=>{this.paths=$e,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe($e=>{const yt=$e.trim().toLowerCase(),Wt=this.paths.filter(dn=>dn.filter(An=>An.name.includes(yt)).length);this.createGroupTree(Wt),this.dataSource.data=this.groupTree}),this.userName=(0,tt.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate($e,yt=!1){window.open(`/organizations/${this.data.member.voId}/groups/${$e}${yt?"/settings/relations":""}`,"_blank")}getMinWidth($e){return String(400-40*$e)+"px"}recursiveSearch($e,yt,Wt){for(const An of $e)if(An.name===yt[Wt].name)return yt.length===Wt+1?(An.direct=!0,$e):(An.children=yt[++Wt].name.includes(yt[Wt-1].name)?this.recursiveSearch(An.children,yt,Wt):[{name:yt[Wt].name,id:yt[Wt-1].id,description:yt[Wt].description,direct:!1,include:!0,level:Wt,children:[]}].concat(An.children),$e);return $e.push({name:yt[Wt].name,id:yt[Wt].id,description:yt[Wt].description,direct:!1,include:!1,level:Wt,children:[]}),this.recursiveSearch($e,yt,Wt)}createGroupTree($e){this.groupTree=[],$e.forEach(yt=>{this.groupTree=this.recursiveSearch(this.groupTree,yt,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.ff))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-member-tree-view-dialog"]],decls:11,vars:11,consts:[[1,"group-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","mr-0",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-flat-button","",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"mr-0"],[1,"filter-field","ml-2"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["class","example-tree",3,"dataSource","treeControl",4,"ngIf"],[1,"example-tree",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"mat-tree-node"],[1,"row","flex-nowrap",3,"click"],["mat-icon-button",""],[1,"mt-auto","mb-auto",3,"ngStyle"],["class","text-muted ml-2",4,"ngIf"],[1,"text-muted","ml-3"],[1,"text-muted","ml-2"],["mat-icon-button","","matTreeNodeToggle",""],[1,"mr-3"],["matTreeNodeOutlet",""]],template:function($e,yt){1&$e&&(T.TgZ(0,"div",0)(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Cn,1,0,"mat-spinner",2),T.YNc(5,bt,9,9,"div",3),T.TgZ(6,"div",4)(7,"div",5)(8,"button",6),T.NdJ("click",function(){return yt.onCancel()}),T._uU(9),T.ALo(10,"translate"),T.qZA()()()()),2&$e&&(T.xp6(2),T.hij(" ",T.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",T.VKq(9,Lt,yt.userName))," "),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading),T.xp6(4),T.hij(" ",T.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},dependencies:[e.O5,e.PC,M.uh,M.xY,M.H8,m.lW,b.KE,D.Fj,D.JJ,v.Nt,R.Ou,D.oH,O.Hw,et.w,ie.GZ,ie.fQ,ie.eu,ie.gi,ie.uo,ie.Ar,A.X$,on],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.act-disabled[_ngcontent-%COMP%]{pointer-events:none}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),lt})(),rt=(()=>{class lt{constructor($e,yt){this.dialogRef=$e,this.router=yt}onClose(){this.router.navigate([],{queryParamsHandling:"preserve"}),this.dialogRef.close()}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(z.F0))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),T._uU(5),T.ALo(6,"translate"),T.qZA()(),T.TgZ(7,"div",3)(8,"button",4),T.NdJ("click",function(){return yt.onClose()}),T._uU(9),T.ALo(10,"translate"),T.qZA()()),2&$e&&(T.xp6(1),T.hij(" ",T.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),T.xp6(4),T.Oqu(T.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),T.xp6(4),T.hij(" ",T.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},dependencies:[M.uh,M.xY,M.H8,m.lW,et.w,A.X$]}),lt})();var St=p(62383);function $(lt,Vt){1<&&(T.TgZ(0,"mat-radio-button",16),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function ze(lt,Vt){1<&&(T.TgZ(0,"mat-radio-button",17),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function At(lt,Vt){1<&&(T.TgZ(0,"perun-web-apps-alert",18),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}let Pt=(()=>{class lt{constructor($e){this.dialogRef=$e,this.canExtendMembership=!1,this.expirationChanged=new T.vpe,this.statusChange=new T.vpe,this.expirationControl=new D.p4(null)}ngOnInit(){const $e=new Date;this.currentDate=(0,e.p6)(new Date($e.getFullYear(),$e.getMonth(),$e.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}parseDate($e){return(0,e.p6)($e,"yyyy-MM-dd","en_US")}onChange(){"EXPIRED"===this.status&&("never"===this.newExpiration||this.parseDate(this.expirationControl.value)>this.currentDate)&&this.statusChange.emit(!0),this.expirationChanged.emit(this.newExpiration)}onCancel(){this.dialogRef.close({success:!1})}setExpiration(){this.newExpiration=(0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-change-expiration-dialog"]],inputs:{currentExpiration:"currentExpiration",newExpiration:"newExpiration",canExtendMembership:"canExtendMembership",minDate:"minDate",maxDate:"maxDate",mode:"mode",status:"status",backButton:"backButton"},outputs:{expirationChanged:"expirationChanged",statusChange:"statusChange"},decls:38,vars:39,consts:[[1,"member-theme"],["mat-dialog-content",""],[1,"d-flex","flex-column",3,"ngModel","ngModelChange"],[3,"value"],["color","primary",1,"cursor-pointer",3,"click"],["readonly","","matInput","",1,"disable",3,"min","max","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["class","bottom-padding","value","voRules",4,"ngIf"],["class","bottom-padding","value","groupRules",4,"ngIf"],["value","never"],["alert_type","info",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["value","voRules",1,"bottom-padding"],["value","groupRules",1,"bottom-padding"],["alert_type","info"]],template:function($e,yt){if(1&$e){const Wt=T.EpF();T.TgZ(0,"div",0)(1,"div",1)(2,"p")(3,"strong"),T._uU(4),T.ALo(5,"translate"),T.qZA(),T._uU(6),T.ALo(7,"parseDate"),T.qZA(),T.TgZ(8,"p")(9,"strong"),T._uU(10),T.ALo(11,"translate"),T.qZA(),T._uU(12),T.ALo(13,"parseDate"),T.qZA(),T.TgZ(14,"mat-radio-group",2),T.NdJ("ngModelChange",function(An){return yt.newExpiration=An}),T.TgZ(15,"mat-radio-button",3)(16,"mat-form-field",4),T.NdJ("click",function(){T.CHM(Wt);const An=T.MAs(23);return T.KtG(An.open())}),T.TgZ(17,"mat-label"),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.TgZ(20,"input",5),T.NdJ("dateChange",function(){return yt.setExpiration()}),T.qZA(),T._UZ(21,"mat-datepicker-toggle",6)(22,"mat-datepicker",7,8),T.qZA()(),T.YNc(24,$,3,3,"mat-radio-button",9),T.YNc(25,ze,3,3,"mat-radio-button",10),T.TgZ(26,"mat-radio-button",11),T._uU(27),T.ALo(28,"translate"),T.qZA()(),T.YNc(29,At,3,3,"perun-web-apps-alert",12),T.qZA(),T.TgZ(30,"div",13)(31,"button",14),T.NdJ("click",function(){return yt.onCancel()}),T._uU(32),T.ALo(33,"translate"),T.ALo(34,"translate"),T.qZA(),T.TgZ(35,"button",15),T.NdJ("click",function(){return yt.onChange()}),T._uU(36),T.ALo(37,"translate"),T.qZA()()()}if(2&$e){const Wt=T.MAs(23);T.xp6(4),T.Oqu(T.lcZ(5,21,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),T.xp6(2),T.hij(" ",T.lcZ(7,23,yt.currentExpiration)," "),T.xp6(4),T.Oqu(T.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),T.xp6(2),T.hij(" ",yt.newExpiration?T.lcZ(13,27,yt.newExpiration):"never"," "),T.xp6(2),T.Q6J("ngModel",yt.newExpiration),T.xp6(1),T.s9C("value",yt.expirationControl.value),T.xp6(3),T.Oqu(T.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),T.xp6(2),T.Q6J("min",yt.minDate)("max",yt.maxDate)("formControl",yt.expirationControl)("matDatepicker",Wt),T.xp6(1),T.Q6J("for",Wt)("disabled",!1),T.xp6(1),T.Q6J("disabled",!1),T.xp6(2),T.Q6J("ngIf",yt.canExtendMembership&&"vo"===yt.mode),T.xp6(1),T.Q6J("ngIf",yt.canExtendMembership&&"group"===yt.mode),T.xp6(2),T.hij(" ",T.lcZ(28,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),T.xp6(2),T.Q6J("ngIf","EXPIRED"===yt.status&&("never"===yt.newExpiration||yt.parseDate(yt.expirationControl.value)>yt.currentDate)),T.xp6(3),T.hij(" ",yt.backButton?T.lcZ(33,33,"DIALOGS.CHANGE_EXPIRATION.BACK"):T.lcZ(34,35,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),T.xp6(3),T.Q6J("disabled",yt.expirationControl.invalid),T.xp6(1),T.hij(" ",T.lcZ(37,37,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},dependencies:[e.O5,M.xY,M.H8,m.lW,b.KE,b.hX,b.R9,D.Fj,D.JJ,D.On,v.Nt,B.VQ,B.U0,w.Mq,w.hl,w.nW,D.oH,et.w,A.X$,St.M],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bottom-padding[_ngcontent-%COMP%]{padding-bottom:20px} .mat-form-field.mat-focused .mat-form-field-underline{display:none}"]}),lt})();function Xt(lt,Vt){1<&&T._UZ(0,"mat-spinner",4)}function yn(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("statusChange",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.changeStatus=!0)})("expirationChanged",function(Wt){T.CHM($e);const dn=T.oxw();return T.KtG(dn.onExpirationChanged(Wt))}),T.qZA()}if(2<){const $e=T.oxw();T.Q6J("minDate",$e.minDate)("maxDate",$e.maxDate)("currentExpiration",$e.currentExpiration)("newExpiration",$e.newExpiration)("canExtendMembership",$e.canExtendMembership)("mode","group")("status",$e.status)("backButton",$e.backButton)}}let Zn=(()=>{class lt{constructor($e,yt,Wt,dn,An,Yn,ri){this.dialogRef=$e,this.data=yt,this.attributesManagerService=Wt,this.memberManager=dn,this.groupManager=An,this.translate=Yn,this.notificator=ri,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,Yn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(bi=>this.successMessage=bi)}ngOnInit(){this.status=this.data.status,this.backButton=this.data.backButton,this.loading=!0;const $e=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date($e.getFullYear(),$e.getMonth(),$e.getDate()):this.minDate=new Date($e.getFullYear(),$e.getMonth(),$e.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)($e,"yyyy-MM-dd","en"),this.maxDate=$e):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,ut.r.GROUP_DEF_EXPIRATION_RULES).subscribe({next:yt=>{null!==yt.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe({next:Wt=>{this.canExtendMembership=!!Wt,this.loading=!1},error:()=>this.loading=!1}):this.loading=!1},error:()=>this.loading=!1}):this.loading=!1}onExpirationChanged($e){this.loading=!0,"groupRules"===$e?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},error:()=>this.loading=!1}):(this.expirationAttr.value="never"===$e?null:$e,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe({next:()=>{this.changeStatus&&"EXPIRED"===this.status?this.groupManager.setGroupsMemberStatus(this.data.memberId,this.data.groupId,"VALID").subscribe({next:yt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Wt=>{this.notificator.showSuccess(Wt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:yt})})},error:()=>this.loading=!1}):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},error:()=>this.loading=!1}))}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.H8),T.Y36(F.uq),T.Y36(F.ff),T.Y36(A.sK),T.Y36(V.V6))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-change-group-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","backButton","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","backButton","statusChange","expirationChanged"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div",0)(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Xt,1,0,"mat-spinner",2),T.YNc(5,yn,1,8,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&$e&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,M.uh,R.Ou,Pt,A.X$]}),lt})();var Hn=p(13469);function Xn(lt,Vt){1<&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function mi(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"form",5)(1,"div",6)(2,"mat-form-field")(3,"mat-label"),T._uU(4),T.ALo(5,"translate"),T.qZA(),T._UZ(6,"input",7),T.TgZ(7,"mat-icon",8),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.showOldPassword=!Wt.showOldPassword)}),T._uU(8),T.qZA(),T.YNc(9,Xn,3,3,"mat-error",9),T.qZA(),T._UZ(10,"perun-web-apps-password-form",10),T.qZA()()}if(2<){const $e=T.oxw();T.Q6J("formGroup",$e.formGroup),T.xp6(4),T.Oqu(T.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),T.xp6(2),T.Q6J("type",$e.showOldPassword?"text":"password"),T.xp6(2),T.hij(" ",$e.showOldPassword?"visibility_off":"visibility"," "),T.xp6(1),T.Q6J("ngIf",$e.oldPwd.hasError("required")),T.xp6(1),T.Q6J("formGroup",$e.formGroup)("namespace",$e.data.namespace)}}function di(lt,Vt){1<&&T._UZ(0,"mat-spinner",11)}function Jn(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"div",12)(1,"div",13)(2,"button",14),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.close())}),T._uU(3),T.ALo(4,"translate"),T.qZA(),T.TgZ(5,"button",15),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.changePassword())}),T._uU(6),T.ALo(7,"translate"),T.qZA()()()}if(2<){const $e=T.oxw();T.xp6(3),T.hij(" ",T.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),T.xp6(2),T.Q6J("disabled",$e.formGroup.invalid||$e.formGroup.pending),T.xp6(1),T.hij(" ",T.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let Ln=(()=>{class lt{constructor($e,yt,Wt,dn,An,Yn,ri){this.dialogRef=$e,this.data=yt,this._formBuilder=Wt,this.usersManagerService=dn,this.apiRequestConfiguration=An,this.notificator=Yn,this.translate=ri,this.showOldPassword=!1,ri.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(bi=>this.successMessage=bi)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",D.kI.required],passwordCtrl:["",D.kI.required,[(0,pe.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:tt.dN.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(D.QS),T.Y36(F.Fv),T.Y36(V.F5),T.Y36(V.V6),T.Y36(A.sK))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.YNc(4,mi,11,9,"form",2),T.YNc(5,di,1,0,"mat-spinner",3),T.qZA(),T.YNc(6,Jn,8,7,"div",4)),2&$e&&(T.xp6(1),T.Oqu(T.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),T.xp6(3),T.Q6J("ngIf",!yt.loading),T.xp6(1),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,M.uh,M.xY,M.H8,m.lW,b.TO,b.KE,b.hX,b.R9,D._Y,D.Fj,D.JJ,D.JL,D.Q7,v.Nt,R.Ou,D.sg,D.u,O.Hw,Hn.G,A.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),lt})();function zi(lt,Vt){1<&&T._UZ(0,"mat-spinner",4)}function qn(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("statusChange",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.changeStatus=!0)})("expirationChanged",function(Wt){T.CHM($e);const dn=T.oxw();return T.KtG(dn.onExpirationChanged(Wt))}),T.qZA()}if(2<){const $e=T.oxw();T.Q6J("minDate",$e.minDate)("maxDate",$e.maxDate)("currentExpiration",$e.currentExpiration)("newExpiration",$e.newExpiration)("canExtendMembership",$e.canExtendMembership)("mode","vo")("status",$e.status)("backButton",$e.backButton)}}let si=(()=>{class lt{constructor($e,yt,Wt,dn,An,Yn){this.dialogRef=$e,this.data=yt,this.attributesManagerService=Wt,this.memberManager=dn,this.translate=An,this.notificator=Yn,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,An.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(ri=>this.successMessage=ri)}ngOnInit(){this.status=this.data.status,this.backButton=this.data.backButton,this.loading=!0;const $e=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date($e.getFullYear(),$e.getMonth(),$e.getDate()):this.minDate=new Date($e.getFullYear(),$e.getMonth(),$e.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)($e,"yyyy-MM-dd","en"),this.maxDate=$e):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,ut.r.VO_DEF_EXPIRATION_RULES).subscribe({next:yt=>{null!==yt.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe({next:Wt=>{this.canExtendMembership=!!Wt,this.loading=!1},error:()=>this.loading=!1}):this.loading=!1},error:()=>this.loading=!1}):this.loading=!1}onExpirationChanged($e){this.loading=!0,"voRules"===$e?this.memberManager.extendMembership(this.data.memberId).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},error:()=>this.loading=!1}):(this.expirationAttr.value="never"===$e?null:$e,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe({next:()=>{this.changeStatus&&"EXPIRED"===this.status?this.memberManager.setStatus(this.data.memberId,"VALID").subscribe({next:yt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Wt=>{this.notificator.showSuccess(Wt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:yt})})},error:()=>this.loading=!1}):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},error:()=>this.loading=!1}))}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.H8),T.Y36(F.uq),T.Y36(A.sK),T.Y36(V.V6))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-change-vo-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","backButton","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","backButton","statusChange","expirationChanged"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div",0)(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,zi,1,0,"mat-spinner",2),T.YNc(5,qn,1,8,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&$e&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,M.uh,R.Ou,Pt,A.X$]}),lt})();function Yi(lt,Vt){1<&&T._UZ(0,"mat-spinner",4)}function tr(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("expirationChanged",function(Wt){T.CHM($e);const dn=T.oxw();return T.KtG(dn.onExpirationChanged(Wt))}),T.qZA()}if(2<){const $e=T.oxw();T.Q6J("minDate",$e.minDate)("currentExpiration",$e.currentExpiration)("newExpiration",$e.newExpiration)("mode","sponsor")}}let Vi=(()=>{class lt{constructor($e,yt,Wt,dn,An,Yn,ri){this.dialogRef=$e,this.data=yt,this.attributesManagerService=Wt,this.memberManager=dn,this.groupManager=An,this.translate=Yn,this.notificator=ri,this.loading=!1,Yn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(bi=>this.successMessage=bi)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const $e=new Date;this.minDate=new Date($e.getFullYear(),$e.getMonth(),$e.getDate()),this.loading=!1}onExpirationChanged($e){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===$e?null:$e).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.H8),T.Y36(F.uq),T.Y36(F.ff),T.Y36(A.sK),T.Y36(V.V6))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-change-sponsorship-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div",0)(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Yi,1,0,"mat-spinner",2),T.YNc(5,tr,1,4,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&$e&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,M.uh,R.Ou,Pt,A.X$]}),lt})();function li(lt,Vt){1<&&T._UZ(0,"mat-spinner",4)}function or(lt,Vt){1<&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function Ir(lt,Vt){1<&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function sr(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"mat-radio-group",12),T.NdJ("ngModelChange",function(Wt){T.CHM($e);const dn=T.oxw(2);return T.KtG(dn.asyncValidation=Wt)}),T.TgZ(1,"span",13),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-radio-button",14),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"mat-radio-button",14),T._uU(8),T.ALo(9,"translate"),T.qZA()()}if(2<){const $e=T.oxw(2);T.Q6J("ngModel",$e.asyncValidation),T.xp6(2),T.hij(" ",T.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),T.xp6(2),T.Q6J("value",!1),T.xp6(1),T.hij(" ",T.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),T.xp6(2),T.Q6J("value",!0),T.xp6(1),T.hij(" ",T.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function lr(lt,Vt){1<&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function Ci(lt,Vt){1<&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function Er(lt,Vt){if(1<&&(T.TgZ(0,"div",5)(1,"p",6),T._uU(2),T.TgZ(3,"span",7),T._uU(4),T.qZA(),T._uU(5),T.TgZ(6,"span",7),T._uU(7),T.qZA()(),T.TgZ(8,"p")(9,"strong",8),T._uU(10),T.ALo(11,"translate"),T.qZA(),T._uU(12),T.qZA(),T.TgZ(13,"p")(14,"strong",8),T._uU(15),T.ALo(16,"translate"),T.qZA(),T._uU(17),T.qZA(),T.YNc(18,or,3,3,"span",9),T.YNc(19,Ir,3,3,"span",9),T.YNc(20,sr,10,12,"mat-radio-group",10),T.YNc(21,lr,3,3,"span",9),T.YNc(22,Ci,3,3,"span",9),T.qZA()),2<){const $e=T.oxw();T.xp6(2),T.hij(" ",$e.group.name," "),T.xp6(2),T.hij("#",$e.group.id,""),T.xp6(1),T.hij(" - ",$e.resource.name," "),T.xp6(2),T.hij("#",$e.resource.id,""),T.xp6(3),T.hij(" ",T.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),T.xp6(2),T.hij(" ",$e.status," "),T.xp6(3),T.hij(" ",T.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),T.xp6(2),T.hij(" ",$e.getReversedStatus()," "),T.xp6(1),T.Q6J("ngIf","INACTIVE"===$e.status||"FAILED"===$e.status),T.xp6(1),T.Q6J("ngIf","ACTIVE"===$e.status),T.xp6(1),T.Q6J("ngIf","INACTIVE"===$e.status||"FAILED"===$e.status),T.xp6(1),T.Q6J("ngIf",("INACTIVE"===$e.status||"FAILED"===$e.status)&&!1===$e.asyncValidation),T.xp6(1),T.Q6J("ngIf",("INACTIVE"===$e.status||"FAILED"===$e.status)&&!0===$e.asyncValidation)}}function Ur(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"div",15)(1,"button",16),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"button",17),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onSubmit())}),T._uU(5),T.ALo(6,"translate"),T.qZA()()}if(2<){const $e=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),T.xp6(2),T.Q6J("disabled",$e.loading),T.xp6(1),T.hij(" ",T.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===$e.status?"DEACTIVATE":"ACTIVATE"))," ")}}let Ei=(()=>{class lt{constructor($e,yt,Wt,dn){this.dialogRef=$e,this.data=yt,this.resourceService=Wt,this.groupService=dn,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe($e=>{this.resource=$e,this.groupService.getGroupById(this.data.groupId).subscribe(yt=>{this.group=yt,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.xk),T.Y36(F.ff))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["data-cy","change-status-button","mat-flat-button","","color","accent",3,"disabled","click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,li,1,0,"mat-spinner",1),T.YNc(5,Er,23,17,"div",2),T.YNc(6,Ur,7,7,"div",3),T.qZA()),2&$e&&(T.Tol(yt.theme),T.xp6(2),T.hij(" ",T.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,M.uh,M.xY,M.H8,m.lW,D.JJ,D.On,R.Ou,B.VQ,B.U0,A.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),lt})();var Or=p(90995);let Nr=(()=>{class lt{constructor($e,yt,Wt,dn,An){this.dialogRef=$e,this.data=yt,this.notificator=Wt,this.usersService=dn,this.translate=An,this.force=!1,this.displayedColumns=["name"],this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new C.by([this.data.user]),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.VO_RELATION"))}onCancel(){this.dialogRef.close(!1)}anonymizeUser(){this.loading=!0,this.usersService.anonymizeUser(this.data.user.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ANONYMIZE_USER.SUCCESS_NOTIFICATION")),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit($e){this.force=$e.force,$e.deleted?this.anonymizeUser():this.onCancel()}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(V.V6),T.Y36(F.Fv),T.Y36(A.sK))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-anonymize-user-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","relations","loading","anonymize","deleted"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),T.NdJ("deleted",function(dn){return yt.onSubmit(dn)}),T.qZA()()),2&$e&&(T.Tol(yt.theme),T.xp6(1),T.Q6J("entityNames",yt.dataSource)("entityType","user")("relations",yt.relations)("loading",yt.loading)("anonymize",!0))},dependencies:[Or.e]}),lt})(),kr=(()=>{class lt{constructor($e){this.dialogRef=$e}close(){this.dialogRef.close()}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-export-data-dialog"]],decls:6,vars:4,consts:[[1,"loading-container"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"mr-auto","ml-auto",3,"diameter"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div",0)(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",2),T._UZ(5,"mat-spinner",3),T.qZA()()),2&$e&&(T.xp6(2),T.hij(" ",T.lcZ(3,2,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_LOADING")," "),T.xp6(3),T.Q6J("diameter",50))},dependencies:[M.uh,M.xY,R.Ou,A.X$],styles:[".loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}"]}),lt})();function Hr(lt,Vt){if(1<&&(T.TgZ(0,"mat-option",13),T._uU(1),T.qZA()),2<){const $e=Vt.$implicit,yt=T.oxw();T.Q6J("value",yt.selectedUnit),T.xp6(1),T.hij(" ",$e," ")}}let Pi=(()=>{class lt{constructor($e,yt,Wt,dn,An){this.dialogRef=$e,this.data=yt,this.rtMessagesService=Wt,this.notificator=dn,this.translate=An,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",An.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(Yn=>this.successMessage=Yn)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new D.p4(null,[D.kI.required]),this.newValueControl=new D.p4(null,[D.kI.required,D.kI.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const Wt=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new q.dp).transform(this.data.user)} (user ID: ${this.data.user.id})\u21b5 VO: ${this.data.vo.shortName} / ${this.data.vo.name} (vo ID: ${this.data.vo.id})\u21b5 Resource: ${this.data.resource.name} (resource ID: ${this.data.resource.id})\u21b5 Data quota\u21b5 Requested quota: ${this.newValueControl.value}\u21b5 Reason: ${this.reasonControl.value}\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI`;this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",Wt).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.Hr),T.Y36(V.V6),T.Y36(A.sK))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-request-change-data-quota-dialog"]],decls:42,vars:42,consts:[["mat-dialog-title","",1,"mb-3"],[1,"user-theme"],[1,"column-size"],["fxLayout","row","fxFlexAlign","center center"],[1,"label-width"],["matInput","","required","","type","number",3,"placeholder","formControl"],[1,"select-width","mt-auto","mb-auto","ml-2",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"form-width"],["matInput","","required","","rows","4",3,"placeholder","formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA(),T.TgZ(4,"div",1)(5,"div")(6,"p",2),T._uU(7),T.ALo(8,"translate"),T.ALo(9,"customTranslate"),T.qZA(),T.TgZ(10,"p"),T._uU(11),T.qZA()(),T.TgZ(12,"div")(13,"p",2),T._uU(14),T.ALo(15,"translate"),T.ALo(16,"customTranslate"),T.qZA(),T.TgZ(17,"p"),T._uU(18),T.qZA()(),T.TgZ(19,"div",3)(20,"mat-form-field")(21,"label",4),T._UZ(22,"input",5),T.ALo(23,"translate"),T.ALo(24,"customTranslate"),T.qZA()(),T.TgZ(25,"mat-select",6),T.NdJ("valueChange",function(dn){return yt.selectedUnit=dn}),T.YNc(26,Hr,2,2,"mat-option",7),T.qZA()(),T.TgZ(27,"div")(28,"mat-form-field",8)(29,"label",4),T._UZ(30,"textarea",9),T.ALo(31,"translate"),T.ALo(32,"customTranslate"),T.qZA()()(),T.TgZ(33,"div",10)(34,"button",11),T.NdJ("click",function(){return yt.onCancel()}),T._uU(35),T.ALo(36,"translate"),T.ALo(37,"customTranslate"),T.qZA(),T.TgZ(38,"button",12),T.NdJ("click",function(){return yt.onSubmit()}),T._uU(39),T.ALo(40,"translate"),T.ALo(41,"customTranslate"),T.qZA()()()),2&$e&&(T.xp6(1),T.hij(" ",T.lcZ(2,14,T.lcZ(3,16,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),T.xp6(6),T.hij(" ",T.lcZ(8,18,T.lcZ(9,20,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),T.xp6(4),T.Oqu(yt.resource),T.xp6(3),T.hij(" ",T.lcZ(15,22,T.lcZ(16,24,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),T.xp6(4),T.Oqu(yt.currentQuota),T.xp6(4),T.s9C("placeholder",T.lcZ(23,26,T.lcZ(24,28,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),T.Q6J("formControl",yt.newValueControl),T.xp6(3),T.Q6J("value",yt.selectedUnit),T.xp6(1),T.Q6J("ngForOf",yt.units),T.xp6(4),T.s9C("placeholder",T.lcZ(31,30,T.lcZ(32,32,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),T.Q6J("formControl",yt.reasonControl),T.xp6(5),T.hij(" ",T.lcZ(36,34,T.lcZ(37,36,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),T.xp6(3),T.Q6J("disabled",yt.reasonControl.invalid),T.xp6(1),T.hij(" ",T.lcZ(40,38,T.lcZ(41,40,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},dependencies:[e.sg,M.uh,M.H8,m.lW,b.KE,D.Fj,D.wV,D.JJ,D.Q7,v.Nt,D.oH,Te.gD,te.ey,A.X$,u.a],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.form-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}.label-width[_ngcontent-%COMP%]{width:100%}.select-width[_ngcontent-%COMP%]{width:4rem}.mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%], .mat-input-ripple.mat-form-field-ripple[_ngcontent-%COMP%]{display:none}"]}),lt})();function Ii(lt,Vt){1<&&(T.TgZ(0,"mat-error",8),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,T.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Mt{constructor(Vt,$e,yt){this.dialogRef=Vt,this.data=$e,this.attributesManagerService=yt}ngOnInit(){this.sshControl=new D.p4(null,[D.kI.required,D.kI.pattern(Mt.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const Vt=this.data.attribute?.value??[],$e=this.sshControl.value;Vt.includes($e)||Vt.push($e),this.data.attribute.value=Vt,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{Vt.pop()})}}function en(lt,Vt){1<&&T._UZ(0,"mat-spinner",4)}function ct(lt,Vt){1<&&T._UZ(0,"th",17)}function kt(lt,Vt){if(1<&&(T.TgZ(0,"td",18),T._uU(1),T.qZA()),2<){const $e=Vt.$implicit;T.xp6(1),T.Oqu($e)}}function Zt(lt,Vt){1<&&T._UZ(0,"tr",19)}function rn(lt,Vt){1<&&T._UZ(0,"tr",20)}function In(lt,Vt){if(1<&&(T.TgZ(0,"table",11),T.ynx(1,12),T.YNc(2,ct,1,0,"th",13),T.YNc(3,kt,2,1,"td",14),T.BQk(),T.YNc(4,Zt,1,0,"tr",15),T.YNc(5,rn,1,0,"tr",16),T.qZA()),2<){const $e=T.oxw(2);T.Q6J("dataSource",$e.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",$e.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",$e.displayedColumns)}}function Bn(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"div",1)(1,"div",5)(2,"p"),T._uU(3),T.qZA(),T.TgZ(4,"div",6),T._uU(5),T.ALo(6,"translate"),T.ALo(7,"customTranslate"),T.qZA(),T.YNc(8,In,6,3,"table",7),T.qZA(),T.TgZ(9,"div",8)(10,"button",9),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onCancel())}),T._uU(11),T.ALo(12,"translate"),T.ALo(13,"customTranslate"),T.qZA(),T.TgZ(14,"button",10),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onSubmit())}),T._uU(15),T.ALo(16,"translate"),T.ALo(17,"customTranslate"),T.qZA()()()}if(2<){const $e=T.oxw();T.xp6(3),T.hij(" ",$e.description," "),T.xp6(2),T.hij(" ",T.lcZ(6,5,T.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),T.xp6(3),T.Q6J("ngIf",$e.dataSource.data.length),T.xp6(3),T.hij(" ",T.lcZ(12,9,T.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),T.xp6(4),T.hij(" ",T.lcZ(16,13,T.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}Mt.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],Mt.sshKeyPattern="^("+Mt.allowedSshKeys.join("|")+").+$",Mt.\u0275fac=function(Vt){return new(Vt||Mt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.H8))},Mt.\u0275cmp=T.Xpm({type:Mt,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(Vt,$e){1&Vt&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA(),T.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),T._UZ(7,"textarea",3),T.ALo(8,"translate"),T.ALo(9,"customTranslate"),T.qZA(),T.YNc(10,Ii,4,5,"mat-error",4),T.qZA()(),T.TgZ(11,"div",5)(12,"button",6),T.NdJ("click",function(){return $e.onCancel()}),T._uU(13),T.ALo(14,"translate"),T.ALo(15,"customTranslate"),T.qZA(),T.TgZ(16,"button",7),T.NdJ("click",function(){return $e.onSubmit()}),T._uU(17),T.ALo(18,"translate"),T.ALo(19,"customTranslate"),T.qZA()()),2&Vt&&(T.xp6(1),T.Oqu(T.lcZ(2,7,T.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),T.xp6(6),T.s9C("placeholder",T.lcZ(8,11,T.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),T.Q6J("formControl",$e.sshControl),T.xp6(3),T.Q6J("ngIf",$e.sshControl.invalid&&$e.sshControl.dirty),T.xp6(3),T.hij(" ",T.lcZ(14,15,T.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),T.xp6(3),T.Q6J("disabled",$e.sshControl.invalid),T.xp6(1),T.hij(" ",T.lcZ(18,19,T.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[e.O5,D.Fj,D.JJ,D.Q7,m.lW,b.TO,b.KE,D.oH,o.IC,v.Nt,M.uh,M.xY,M.H8,A.X$,u.a],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let Qn=(()=>{class lt{constructor($e,yt,Wt){this.dialogRef=$e,this.data=yt,this.attributesManagerService=Wt,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new C.by(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let $e=this.data.attribute?.value??[];void 0!==this.data.valueIndex?$e.splice(this.data.valueIndex,1):$e=$e.filter(yt=>!this.data.values.find(Wt=>Wt===yt)),this.data.attribute.value=$e}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.H8))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-remove-string-value-dialog"]],decls:5,vars:3,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","user-theme",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.qZA(),T.TgZ(2,"div",1),T.YNc(3,en,1,0,"mat-spinner",2),T.qZA(),T.YNc(4,Bn,18,17,"div",3)),2&$e&&(T.xp6(1),T.Oqu(yt.title),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,R.Ou,m.lW,M.uh,M.xY,M.H8,A.X$,u.a]}),lt})(),ui=(()=>{class lt{constructor($e,yt){this.dialogRef=$e,this.data=yt}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-show-ssh-dialog"]],decls:8,vars:6,consts:[[1,"user-theme"],["matInput","","cdkTextareaAutosize","","readonly","",1,"w-100","display-fix"],["mat-flat-button","","color","warn",1,"ml-auto",3,"click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div",0)(1,"textarea",1),T._uU(2),T.qZA()(),T.TgZ(3,"mat-dialog-actions")(4,"button",2),T.NdJ("click",function(){return yt.onClose()}),T._uU(5),T.ALo(6,"translate"),T.ALo(7,"customTranslate"),T.qZA()()),2&$e&&(T.xp6(2),T.Oqu(yt.sshKey),T.xp6(3),T.hij(" ",T.lcZ(6,2,T.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},dependencies:[m.lW,o.IC,v.Nt,M.H8,A.X$,u.a],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),lt})();function nr(lt,Vt){if(1<&&(T.TgZ(0,"div",9),T._UZ(1,"perun-web-apps-notification",10),T.qZA()),2<){const $e=Vt.$implicit;T.xp6(1),T.Q6J("data",$e)("inDialog",!0)}}function Oi(lt,Vt){if(1<&&(T.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),T.YNc(2,nr,2,2,"div",8),T.qZA()()),2<){const $e=T.oxw();T.xp6(2),T.Q6J("cdkVirtualForOf",$e.notifications)}}function xi(lt,Vt){1<&&(T.TgZ(0,"perun-web-apps-alert",11),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,T.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}let qi=(()=>{class lt{constructor($e,yt){this.dialogRef=$e,this.notificationStorageService=yt}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(V.SZ))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA(),T.YNc(4,Oi,3,1,"div",1),T.YNc(5,xi,4,5,"perun-web-apps-alert",2),T.TgZ(6,"div",3)(7,"button",4),T.NdJ("click",function(){return yt.onClear()}),T._uU(8),T.ALo(9,"translate"),T.ALo(10,"customTranslate"),T.qZA(),T.TgZ(11,"button",5),T.NdJ("click",function(){return yt.onCancel()}),T._uU(12),T.ALo(13,"translate"),T.ALo(14,"customTranslate"),T.qZA()()),2&$e&&(T.xp6(1),T.Oqu(T.lcZ(2,5,T.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),T.xp6(3),T.Q6J("ngIf",0!==yt.notifications.length),T.xp6(1),T.Q6J("ngIf",0===yt.notifications.length),T.xp6(3),T.hij(" ",T.lcZ(9,9,T.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),T.xp6(4),T.hij(" ",T.lcZ(13,13,T.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),lt})()},90995:(Xe,ue,p)=>{"use strict";p.d(ue,{e:()=>se});var e=p(94650),A=p(24006),C=p(30671),M=p(36895),m=p(65412),b=p(4859),D=p(59549),v=p(284),R=p(51572),B=p(97392),w=p(98380),L=p(96338),O=p(89383),q=p(31359);let ee=(()=>{class le{constructor(N){this.translate=N}transform(N){return this.translate.instant(N?"DIALOGS.DELETE_ENTITY.TYPE_ANONYMIZE":"DIALOGS.DELETE_ENTITY.TYPE_DELETE")}}return le.\u0275fac=function(N){return new(N||le)(e.Y36(O.sK,16))},le.\u0275pipe=e.Yjl({name:"deleteDialogType",type:le,pure:!0}),le})();function z(le,k){1&le&&e._UZ(0,"mat-spinner",2)}const ie=function(le){return{action:le}};function Te(le,k){if(1&le&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.ALo(4,"translate"),e.TgZ(5,"span",17),e._uU(6),e.ALo(7,"translate"),e.qZA(),e._uU(8),e.ALo(9,"translate"),e.qZA()),2&le){const N=e.oxw(2);e.xp6(1),e.lnq(" ",e.xi3(2,6,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(17,ie,e.lcZ(3,9,N.anonymize)))," ",e.lcZ(4,11,"DIALOGS.DELETE_ENTITY.ONLY")," ",N.entityType," "),e.xp6(5),e.Oqu(e.lcZ(7,13,"DIALOGS.DELETE_ENTITY.OR")),e.xp6(2),e.AsE(" ",N.entityType," ",e.lcZ(9,15,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function pe(le,k){if(1&le&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.qZA()),2&le){const N=e.oxw(2);e.xp6(1),e.AsE(" ",e.xi3(2,2,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(7,ie,e.lcZ(3,5,N.anonymize)))," ",N.entityType," ? ")}}function Le(le,k){1&le&&e._UZ(0,"th",18)}function T(le,k){if(1&le&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&le){const N=k.$implicit,be=e.oxw(2);e.xp6(1),e.hij(" ",be.anonymize?e.lcZ(2,1,N):N.name," ")}}function W(le,k){1&le&&e._UZ(0,"tr",20)}function F(le,k){1&le&&e._UZ(0,"tr",21)}function V(le,k){if(1&le){const N=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(N);const Z=e.oxw(2);return e.KtG(Z.force=!0)}),e.TgZ(1,"mat-icon"),e._uU(2,"warning"),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.ALo(5,"titlecase"),e.ALo(6,"deleteDialogType"),e.ALo(7,"translate"),e.qZA()}if(2&le){const N=e.oxw(2);e.xp6(3),e.AsE(" ",e.xi3(4,2,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(11,ie,e.lcZ(5,5,e.lcZ(6,7,N.anonymize))))," ",e.lcZ(7,9,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}const te=function(){return["name"]};function Q(le,k){if(1&le){const N=e.EpF();e.TgZ(0,"div")(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.qZA(),e.TgZ(6,"div",4),e.YNc(7,Te,10,19,"div",5),e.YNc(8,pe,4,9,"div",5),e.TgZ(9,"table",6),e.ynx(10,7),e.YNc(11,Le,1,0,"th",8),e.YNc(12,T,3,3,"td",9),e.BQk(),e.YNc(13,W,1,0,"tr",10),e.YNc(14,F,1,0,"tr",11),e.qZA()(),e.TgZ(15,"div",12)(16,"button",13),e.NdJ("click",function(){e.CHM(N);const Z=e.oxw();return e.KtG(Z.onCancel())}),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"button",14),e.NdJ("click",function(){e.CHM(N);const Z=e.oxw();return e.KtG(Z.onDelete())}),e._uU(20),e.ALo(21,"translate"),e.ALo(22,"titlecase"),e.ALo(23,"deleteDialogType"),e.qZA(),e.YNc(24,V,8,13,"button",15),e.qZA()()}if(2&le){const N=e.oxw();e.xp6(2),e.AsE(" ",e.xi3(3,10,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(26,ie,e.lcZ(4,13,e.lcZ(5,15,N.anonymize))))," ",N.entityType," "),e.xp6(5),e.Q6J("ngIf",!N.disableForce),e.xp6(1),e.Q6J("ngIf",N.disableForce),e.xp6(1),e.Q6J("dataSource",N.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(28,te)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(29,te)),e.xp6(3),e.hij(" ",e.lcZ(18,17,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.xi3(21,19,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(30,ie,e.lcZ(22,22,e.lcZ(23,24,N.anonymize))))," "),e.xp6(4),e.Q6J("ngIf",!N.disableForce)}}function Ee(le,k){if(1&le&&(e.TgZ(0,"mat-list-item")(1,"span")(2,"mat-icon",27),e._uU(3,"fiber_manual_record"),e.qZA(),e._uU(4),e.qZA()()),2&le){const N=k.$implicit;e.xp6(4),e.hij(" ",N," ")}}function ge(le,k){if(1&le&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&le){const N=e.oxw(2);e.xp6(1),e.hij(" ",N.anotherMessage," ")}}function ve(le,k){1&le&&e._UZ(0,"th",18)}function De(le,k){if(1&le&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&le){const N=k.$implicit,be=e.oxw(2);e.xp6(1),e.hij(" ",be.anonymize?e.lcZ(2,1,N):N.name," ")}}function he(le,k){1&le&&e._UZ(0,"tr",20)}function Ye(le,k){1&le&&e._UZ(0,"tr",21)}function Be(le,k){if(1&le){const N=e.EpF();e.TgZ(0,"div")(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div",4)(8,"div",16),e._uU(9),e.ALo(10,"translate"),e.TgZ(11,"mat-list"),e.YNc(12,Ee,5,1,"mat-list-item",23),e.qZA(),e.YNc(13,ge,2,1,"div",1),e.TgZ(14,"perun-web-apps-alert",24),e._uU(15),e.ALo(16,"translate"),e.ALo(17,"deleteDialogType"),e.qZA(),e.TgZ(18,"table",6),e.ynx(19,7),e.YNc(20,ve,1,0,"th",8),e.YNc(21,De,3,3,"td",9),e.BQk(),e.YNc(22,he,1,0,"tr",10),e.YNc(23,Ye,1,0,"tr",11),e.qZA()(),e.TgZ(24,"mat-form-field"),e._UZ(25,"input",25),e.ALo(26,"translate"),e.ALo(27,"uppercase"),e.ALo(28,"deleteDialogType"),e.qZA()(),e.TgZ(29,"div",12)(30,"button",13),e.NdJ("click",function(){e.CHM(N);const Z=e.oxw();return e.KtG(Z.onCancel())}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.TgZ(33,"button",26),e.NdJ("click",function(){e.CHM(N);const Z=e.oxw();return e.KtG(Z.onDelete())}),e.TgZ(34,"mat-icon"),e._uU(35,"warning"),e.qZA(),e._uU(36),e.ALo(37,"translate"),e.ALo(38,"titlecase"),e.ALo(39,"deleteDialogType"),e.ALo(40,"translate"),e.qZA()()()}if(2&le){const N=e.oxw();e.xp6(2),e.lnq(" ",e.xi3(3,17,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(51,ie,e.lcZ(4,20,e.lcZ(5,22,N.anonymize))))," ",N.entityType," ",e.lcZ(6,24,"DIALOGS.DELETE_ENTITY.RELATIONS")," "),e.xp6(7),e.hij(" ",e.lcZ(10,26,"DIALOGS.DELETE_ENTITY.WARN"),": "),e.xp6(3),e.Q6J("ngForOf",N.relations),e.xp6(1),e.Q6J("ngIf",N.anotherMessage),e.xp6(2),e.AsE(" ",e.xi3(16,28,"DIALOGS.DELETE_ENTITY.ASK",e.VKq(53,ie,e.lcZ(17,31,N.anonymize)))," ",N.entityType," ? "),e.xp6(3),e.Q6J("dataSource",N.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(55,te)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(56,te)),e.xp6(2),e.s9C("placeholder",e.xi3(26,33,"DIALOGS.DELETE_ENTITY.CONTROL",e.VKq(57,ie,e.lcZ(27,36,e.lcZ(28,38,N.anonymize))))),e.Q6J("formControl",N.deleteControl),e.xp6(6),e.hij(" ",e.lcZ(32,40,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(2),e.Q6J("disabled",N.deleteControl.invalid),e.xp6(3),e.AsE(" ",e.xi3(37,42,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(59,ie,e.lcZ(38,45,e.lcZ(39,47,N.anonymize))))," ",e.lcZ(40,49,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}let se=(()=>{class le{constructor(){this.entityNames=new C.by,this.relations=[],this.disableForce=!1,this.loading=!1,this.anonymize=!1,this.deleted=new e.vpe,this.force=!1}ngOnInit(){this.deleteReg=this.anonymize?/^ANONYMIZE$/:/^DELETE$/,this.deleteControl=new A.p4("",[A.kI.required,A.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return le.\u0275fac=function(N){return new(N||le)},le.\u0275cmp=e.Xpm({type:le,selectors:[["perun-web-apps-delete-entity-dialog"]],inputs:{title:"title",entityNames:"entityNames",entityType:"entityType",relations:"relations",anotherMessage:"anotherMessage",disableForce:"disableForce",loading:"loading",anonymize:"anonymize"},outputs:{deleted:"deleted"},decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["class","mb-4",4,"ngIf"],["mat-table","",1,"w-100","table-margin",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","delete-button-dialog","color","warn","mat-flat-button","",1,"ml-2",3,"click"],["class","ml-2","data-cy","force-delete","color","warn","mat-flat-button","",3,"click",4,"ngIf"],[1,"mb-4"],[1,"font-weight-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["data-cy","force-delete","color","warn","mat-flat-button","",1,"ml-2",3,"click"],[4,"ngFor","ngForOf"],["alert_type","warn"],["data-cy","force-delete-control","matInput","",3,"formControl","placeholder"],["data-cy","force-delete-button","color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"dot-icon"]],template:function(N,be){1&N&&(e.YNc(0,z,1,0,"mat-spinner",0),e.YNc(1,Q,25,32,"div",1),e.YNc(2,Be,41,61,"div",1)),2&N&&(e.Q6J("ngIf",be.loading),e.xp6(1),e.Q6J("ngIf",!be.force&&!be.loading),e.xp6(1),e.Q6J("ngIf",be.force&&!be.loading))},dependencies:[M.sg,M.O5,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,m.uh,m.xY,m.H8,b.lW,D.KE,A.Fj,A.JJ,v.Nt,R.Ou,A.oH,B.Hw,w.w,L.i$,L.Tg,M.gd,M.rS,O.X$,q.d,ee],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),le})()},22308:(Xe,ue,p)=>{"use strict";p.d(ue,{h:()=>A});var e=p(94650);let A=(()=>{class C{constructor(m){this.elementRef=m}ngOnInit(){this.elementRef.nativeElement.focus()}}return C.\u0275fac=function(m){return new(m||C)(e.Y36(e.SBq))},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsAutoFocus",""]]}),C})()},73358:(Xe,ue,p)=>{"use strict";p.d(ue,{e:()=>A});var e=p(94650);let A=(()=>{class C{constructor(m,b){this.viewContainerRef=m,this.template=b,this.loading=!1,this.loadingIndicatorRef=null}ngOnInit(){this.viewContainerRef.createEmbeddedView(this.template)}ngOnChanges(){this.loading&&(this.loadingIndicatorRef=this.viewContainerRef.createEmbeddedView(this.loadingIndicator)),!this.loading&&this.loadingIndicatorRef&&this.loadingIndicatorRef.destroy()}}return C.\u0275fac=function(m){return new(m||C)(e.Y36(e.s_b),e.Y36(e.Rgc))},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsLoader",""]],inputs:{loading:["perunWebAppsLoader","loading"],loadingIndicator:["perunWebAppsLoaderIndicator","loadingIndicator"]},features:[e.TTD]}),C})()},34198:(Xe,ue,p)=>{"use strict";p.d(ue,{Y:()=>A});var e=p(94650);let A=(()=>{class C{onClick(m){if(1===m.button&&null!=this.perunWebAppsMiddleClickRouterLink){const b=this.perunWebAppsMiddleClickRouterLink.join("/"),D=location.search;window.open(b+D)}}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(m,b){1&m&&e.NdJ("mouseup",function(v){return b.onClick(v)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),C})()},55660:(Xe,ue,p)=>{"use strict";p.d(ue,{Q:()=>C});var e=p(94364),A=p(94650);let C=(()=>{class M extends e.rH{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const b=Object.assign({},this.queryParams);delete b.applicationFormItems,this.queryParams=b}}}return M.\u0275fac=function(){let m;return function(D){return(m||(m=A.n5z(M)))(D||M)}}(),M.\u0275dir=A.lG2({type:M,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[A.qOj,A.TTD]}),M})()},40034:(Xe,ue,p)=>{"use strict";p.d(ue,{p:()=>e});var e=(()=>{return(A=e||(e={})).Admin="admin",A.Profile="profile",A.PwdReset="pwdReset",A.Consolidator="consolidator",A.Linker="linker",e;var A})()},91479:(Xe,ue,p)=>{"use strict";p.d(ue,{H:()=>D,o:()=>b});var e=p(61135),A=p(39841),C=p(39646),M=p(68675),m=p(63900);function b(v){return"_count"in v}class D{constructor(R,B,w,L){this.pageQuery$=new e.X({}),this.updateSubscription=null,this.data$=new e.X([]),this._filter=new e.X(""),this.data$.next(R),this._count=B,this._sort=w,this._paginator=L,this.update()}get data(){return this.data$.value}set data(R){this.data$.next(R)}get filteredData(){return this.data$.value}get count(){return this._count}set count(R){this._count=R}get sort(){return this._sort}set sort(R){this._sort=R,this.update()}get paginator(){return this._paginator}set paginator(R){this._paginator=R,this.update()}set filter(R){this._filter.next(R)}connect(){return this.data$.asObservable()}disconnect(){this.data$.complete(),this.updateSubscription?.unsubscribe()}sortData(R,B){return this.sort=B,R}update(){const R=this._sort.sortChange.pipe((0,M.O)({active:"NAME",direction:this._sort.direction})),B=this._paginator.page.pipe((0,M.O)({pageSize:5,pageIndex:this._paginator.pageIndex,length:this._paginator.length})),w=(0,A.a)([R,B,this._filter]).pipe((0,m.w)(([L,O,q])=>(0,C.of)({order:"asc"===L.direction?"ASCENDING":"DESCENDING",sortColumn:L.active.toUpperCase(),pageSize:O.pageSize,offset:O.pageIndex*O.pageSize,searchString:q})));this.updateSubscription?.unsubscribe(),this.updateSubscription=w.subscribe(L=>{this.pageQuery$.next(L)})}}},45323:(Xe,ue,p)=>{"use strict";p.d(ue,{u:()=>e});var e=(()=>{return(A=e||(e={})).PERUNADMIN="PERUNADMIN",A.PERUNOBSERVER="PERUNOBSERVER",A.VOADMIN="VOADMIN",A.GROUPADMIN="GROUPADMIN",A.GROUPOBSERVER="GROUPOBSERVER",A.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",A.SELF="SELF",A.FACILITYADMIN="FACILITYADMIN",A.FACILITIYOBSERVER="FACILITYOBSERVER",A.RESOURCEADMIN="RESOURCEADMIN",A.RESOURCESELFSERVICE="RESOURCESELFSERVICE",A.REGISTRAR="REGISTRAR",A.ENGINE="ENGINE",A.RPC="RPC",A.NOTIFICATIONS="NOTIFICATIONS",A.SERVICEUSER="SERVICEUSER",A.SPONSOR="SPONSOR",A.VOOBSERVER="VOOBSERVER",A.TOPGROUPCREATOR="TOPGROUPCREATOR",A.SECURITYADMIN="SECURITYADMIN",A.CABINETADMIN="CABINETADMIN",A.UNKNOWNROLENAME="UNKNOWNROLENAME",A.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",A.UNKNOWN="UNKNOWN",A.MEMBERSHIP="MEMBERSHIP",e;var A})()},28499:(Xe,ue,p)=>{"use strict";p.d(ue,{E3:()=>w,yT:()=>L.y});var e=p(36895),A=p(59549),C=p(10266),M=p(24006),m=p(284),b=p(89383),D=p(51572),v=p(97392),R=p(63189),B=p(94650);let w=(()=>{class q{}return q.\u0275fac=function(z){return new(z||q)},q.\u0275mod=B.oAB({type:q}),q.\u0275inj=B.cJS({imports:[e.ez,A.lN,C.AV,M.UX,m.c,b.aw,D.Cq,v.Ps,R.r]}),q})();var L=p(47549);p(13469)},13469:(Xe,ue,p)=>{"use strict";p.d(ue,{G:()=>Le});var e=p(47549),A=p(81591),C=p(61744),M=p(94650),m=p(89383),b=p(36895),D=p(59549),v=p(10266),R=p(24006),B=p(284),w=p(51572),L=p(97392),O=p(98380);function q(T,W){1&T&&M._UZ(0,"mat-spinner",12),2&T&&M.Q6J("diameter",18)}function ee(T,W){if(1&T&&(M.TgZ(0,"mat-icon",13),M._uU(1," error "),M.qZA()),2&T){const F=M.oxw();M.Q6J("matTooltip",F.getErrorTooltip())("matTooltipDisabled",!F.formGroup.get("passwordCtrl").hasError("backendError"))}}function z(T,W){1&T&&(M.TgZ(0,"mat-error"),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&T&&(M.xp6(1),M.Oqu(M.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function ie(T,W){if(1&T&&(M.TgZ(0,"mat-error",14),M._uU(1),M.qZA()),2&T){const F=M.oxw();M.Q6J("matTooltip",F.getErrorTooltip()),M.xp6(1),M.Oqu(F.getErrorTooltip())}}function Te(T,W){1&T&&(M.TgZ(0,"mat-error"),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&T&&(M.xp6(1),M.Oqu(M.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function pe(T,W){1&T&&(M.TgZ(0,"mat-error"),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&T&&(M.xp6(1),M.Oqu(M.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let Le=(()=>{class T{constructor(F,V,te){this.translator=F,this.usersManagerService=V,this.store=te,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new e.S,this.allPasswordRequirements=this.store.getProperty("password_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(F=>{const V=F.userAttributes.find(te=>"preferredLanguage"===te.friendlyName);this.language=V?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let F=this.formGroup.get("passwordCtrl").getError("backendError");return F&&(F=F.replace(":null","")),F}changeHelp(){this.passwordRequirement=this.allPasswordRequirements[this.namespace],this.passwordRequirement||(this.passwordRequirement=this.allPasswordRequirements.default)}}return T.\u0275fac=function(F){return new(F||T)(M.Y36(m.sK),M.Y36(C.Fv),M.Y36(A.d6))},T.\u0275cmp=M.Xpm({type:T,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",language:"language"},features:[M.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(F,V){1&F&&(M.TgZ(0,"div",0)(1,"mat-form-field",1),M._UZ(2,"input",2),M.ALo(3,"translate"),M.YNc(4,q,1,1,"mat-spinner",3),M.TgZ(5,"mat-icon",4),M.NdJ("click",function(){return V.showNewPassword=!V.showNewPassword}),M._uU(6),M.qZA(),M.YNc(7,ee,2,2,"mat-icon",5),M.YNc(8,z,3,3,"mat-error",6),M.YNc(9,ie,2,2,"mat-error",7),M.qZA(),M.TgZ(10,"mat-form-field",8)(11,"mat-label"),M._uU(12),M.ALo(13,"translate"),M.qZA(),M._UZ(14,"input",9),M.TgZ(15,"mat-icon",4),M.NdJ("click",function(){return V.showPasswordConfirm=!V.showPasswordConfirm}),M._uU(16),M.qZA(),M.YNc(17,Te,3,3,"mat-error",6),M.YNc(18,pe,3,3,"mat-error",6),M.qZA(),M.TgZ(19,"perun-web-apps-alert",10),M._UZ(20,"div",11),M.qZA()()),2&F&&(M.Q6J("formGroup",V.formGroup),M.xp6(1),M.Q6J("matTooltip",V.getPasswordDisabledTooltip())("matTooltipDisabled",V.formGroup.get("passwordCtrl").enabled||V.tooltipPwdDisabledForNamespace),M.xp6(1),M.s9C("placeholder",M.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),M.Q6J("type",V.showNewPassword?"text":"password")("required",V.passwordRequired)("errorStateMatcher",V.passwordStateMatcher),M.xp6(2),M.Q6J("ngIf",V.formGroup.get("passwordCtrl").pending),M.xp6(2),M.hij(" ",V.showNewPassword?"visibility_off":"visibility"," "),M.xp6(1),M.Q6J("ngIf",V.formGroup.get("passwordCtrl").dirty&&null!==V.formGroup.get("passwordCtrl").errors),M.xp6(1),M.Q6J("ngIf",V.formGroup.get("passwordCtrl").hasError("required")),M.xp6(1),M.Q6J("ngIf",V.formGroup.get("passwordCtrl").hasError("backendError")),M.xp6(3),M.Oqu(M.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),M.xp6(2),M.Q6J("type",V.showPasswordConfirm?"text":"password")("required",V.passwordRequired),M.xp6(2),M.hij(" ",V.showPasswordConfirm?"visibility_off":"visibility"," "),M.xp6(1),M.Q6J("ngIf",V.formGroup.get("passwordAgainCtrl").hasError("required")),M.xp6(1),M.Q6J("ngIf",V.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),M.xp6(2),M.Q6J("innerHTML",V.passwordRequirement,M.oJD))},dependencies:[b.O5,D.TO,D.KE,D.hX,D.R9,v.gM,R.Fj,R.JJ,R.JL,R.Q7,R.sg,R.u,B.Nt,w.Ou,L.Hw,O.w,m.X$],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),T})()},47549:(Xe,ue,p)=>{"use strict";p.d(ue,{S:()=>b,y:()=>D});var e=p(82805),A=p(39646),C=p(63900),M=p(54004),m=p(70262);class b{isErrorState(R){return!(!R?.invalid||!R?.dirty)}}const D=(v,R,B,w=!1,L=500)=>O=>(0,e.H)(L).pipe((0,C.w)(()=>(B.dontHandleErrorForNext(),v&&"No namespace"!==v?R.checkPasswordStrength({password:O.value,namespace:v},w):(0,A.of)(null))),(0,M.U)(()=>null),(0,m.K)(q=>{const ee={backendError:q.message.substring(q.message.indexOf(":")+1)};return(0,A.of)(ee)}))},61744:(Xe,ue,p)=>{"use strict";p.d(ue,{au:()=>Ne,sY:()=>Ye,oW:()=>Be,H8:()=>D,jw:()=>v,Ct:()=>R,VK:()=>b,WY:()=>w,KG:()=>O,IQ:()=>q,ff:()=>ee,uq:()=>ie,aC:()=>Te,Hr:()=>pe,tk:()=>Le,xk:()=>T,t7:()=>W,KK:()=>F,Ob:()=>V,Dy:()=>Ae,Fv:()=>te,FW:()=>Q,YF:()=>Ee});var e=p(80529);class A{encodeKey(fe){return encodeURIComponent(fe)}encodeValue(fe){return encodeURIComponent(fe)}decodeKey(fe){return decodeURIComponent(fe)}decodeValue(fe){return decodeURIComponent(fe)}}var C=p(94650);const M=new C.OlP("basePath");class b{constructor(fe={}){this.apiKeys=fe.apiKeys,this.username=fe.username,this.password=fe.password,this.accessToken=fe.accessToken,this.basePath=fe.basePath,this.withCredentials=fe.withCredentials,this.encoder=fe.encoder,this.credentials=fe.credentials?fe.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(fe){if(0===fe.length)return;const r=fe.find(u=>this.isJsonMime(u));return void 0===r?fe[0]:r}selectHeaderAccept(fe){if(0===fe.length)return;const r=fe.find(u=>this.isJsonMime(u));return void 0===r?fe[0]:r}isJsonMime(fe){const r=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==fe&&(r.test(fe)||"application/json-patch+json"===fe.toLowerCase())}lookupCredential(fe){const r=this.credentials[fe];return"function"==typeof r?r():r}}let D=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}convertAttributeToNonunique(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}convertAttributeToUnique(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}createAttributeDefinition(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}deleteAttributeDefinition(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}deleteAttributeDefinitions(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"attributes[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllAttributeDefinitions(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAttribute(r,u,_,E,h,a,i,t,n,o,s,l=!1,d="body",c=!1,S){let J=new e.LE({encoder:this.encoder});null!=r&&(J=this.addToHttpParams(J,r,"attributeName")),null!=u&&(J=this.addToHttpParams(J,u,"attributeId")),null!=_&&(J=this.addToHttpParams(J,_,"facility")),null!=E&&(J=this.addToHttpParams(J,E,"user")),null!=h&&(J=this.addToHttpParams(J,h,"vo")),null!=a&&(J=this.addToHttpParams(J,a,"resource")),null!=i&&(J=this.addToHttpParams(J,i,"member")),null!=t&&(J=this.addToHttpParams(J,t,"group")),null!=n&&(J=this.addToHttpParams(J,n,"host")),null!=o&&(J=this.addToHttpParams(J,o,"userExtSource")),null!=s&&(J=this.addToHttpParams(J,s,"key"));let We,ht=this.defaultHeaders;We=this.configuration.lookupCredential("BasicAuth"),We&&(ht=ht.set("Authorization","Basic "+We)),We=this.configuration.lookupCredential("BearerAuth"),We&&(ht=ht.set("Authorization","Bearer "+We));let et=S&&S.httpHeaderAccept;void 0===et&&(et=this.configuration.selectHeaderAccept(["application/json"])),void 0!==et&&(ht=ht.set("Accept",et));let ne=S&&S.context;void 0===ne&&(ne=new e.qT);let Ue="json";et&&(Ue=et.startsWith("text")?"text":this.configuration.isJsonMime(et)?"json":"blob");let He=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(l){let Oe=new URL(He),Re=Oe.pathname.split("/");Re[1]="non",Oe.pathname=Re.join("/"),He=Oe.toString()}return this.httpClient.get(He,{context:ne,params:J,responseType:Ue,withCredentials:this.configuration.withCredentials,headers:ht,observe:d,reportProgress:c})}getAttributeDefinitionById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAttributeDefinitionByName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAttributeDefinitionsByNamespace(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"namespace"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAttributeModulesDependenciesForAttributeGraphText(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==u)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"format")),null!=u&&(i=this.addToHttpParams(i,u,"attrName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAttributeModulesDependenciesGraphText(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"format"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAttributePolicyCollections(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAttributeRights(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAttributeRules(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAttributesDefinitionWithRights(r,u,_,E,h,a,i,t,n=!1,o="body",s=!1,l){let d=new e.LE({encoder:this.encoder});null!=r&&(d=this.addToHttpParams(d,r,"member")),null!=u&&(d=this.addToHttpParams(d,u,"user")),null!=_&&(d=this.addToHttpParams(d,_,"vo")),null!=E&&(d=this.addToHttpParams(d,E,"group")),null!=h&&(d=this.addToHttpParams(d,h,"resource")),null!=a&&(d=this.addToHttpParams(d,a,"facility")),null!=i&&(d=this.addToHttpParams(d,i,"host")),null!=t&&(d=this.addToHttpParams(d,t,"userExtSource"));let S,c=this.defaultHeaders;S=this.configuration.lookupCredential("BasicAuth"),S&&(c=c.set("Authorization","Basic "+S)),S=this.configuration.lookupCredential("BearerAuth"),S&&(c=c.set("Authorization","Bearer "+S));let J=l&&l.httpHeaderAccept;void 0===J&&(J=this.configuration.selectHeaderAccept(["application/json"])),void 0!==J&&(c=c.set("Accept",J));let ht=l&&l.context;void 0===ht&&(ht=new e.qT);let We="json";J&&(We=J.startsWith("text")?"text":this.configuration.isJsonMime(J)?"json":"blob");let et=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(n){let ne=new URL(et),Ue=ne.pathname.split("/");Ue[1]="non",ne.pathname=Ue.join("/"),et=ne.toString()}return this.httpClient.get(et,{context:ht,params:d,responseType:We,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:s})}getEntitylessAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"key")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEntitylessAttributesByKey(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"key"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getEntitylessAttributesByName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attrName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getEntitylessAttributesWithKeys(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"attrName")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"keys[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEntitylessKeys(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityAttributeById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacilityAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacilityAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacilityResourceUserMemberAttributes(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==_)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==E)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"resource")),null!=_&&(n=this.addToHttpParams(n,_,"user")),null!=E&&(n=this.addToHttpParams(n,E,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getFacilityUserAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==u)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupAttributeById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupResourceAttributeById(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getGroupResourceAttributeByName(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getGroupResourceAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getHostAttributeById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getHostAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getHostAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"host"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getHostAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getIdpAttributeDefinitions(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getLogins(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getLogins.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMemberAndUserAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"workWithUserAttributes"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMemberAndUserAttributesByNames(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==_)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")}),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberAttributeById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMemberAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMemberAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMemberAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMemberGroupAndUserAttributesByNames(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==E)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group")),_&&_.forEach(J=>{n=this.addToHttpParams(n,J,"attrNames[]")}),null!=E&&(n=this.addToHttpParams(n,E,"workWithUserAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getMemberGroupAttributeById(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberGroupAttributeByName(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberGroupAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMemberGroupAttributesByNames(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberResourceAndUserFacilityAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==_)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberResourceAndUserFacilityAttributesByNames(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==E)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"resource")),_&&_.forEach(J=>{n=this.addToHttpParams(n,J,"attrNames[]")}),null!=E&&(n=this.addToHttpParams(n,E,"workWithUserAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getMemberResourceAttributeById(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberResourceAttributeByName(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberResourceAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRequiredAttributesDefinition(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRequiredAttributesFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRequiredAttributesFacilityService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRequiredAttributesFacilityServices(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"services[]")}),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRequiredAttributesGroupResourceService(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==_)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"group"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getRequiredAttributesHostService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==u)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"host"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRequiredAttributesMember(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"workWithUserAttributes"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRequiredAttributesMemberGroup(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getRequiredAttributesMemberGroupResourceService(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==_)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==E)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service")),null!=u&&(o=this.addToHttpParams(o,u,"resource")),null!=_&&(o=this.addToHttpParams(o,_,"group")),null!=E&&(o=this.addToHttpParams(o,E,"member")),null!=h&&(o=this.addToHttpParams(o,h,"workWithUserAttributes"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(a){let ht=new URL(J),We=ht.pathname.split("/");We[1]="non",ht.pathname=We.join("/"),J=ht.toString()}return this.httpClient.get(J,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}getRequiredAttributesMemberGroupService(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==_)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"group")),null!=_&&(n=this.addToHttpParams(n,_,"member")),null!=E&&(n=this.addToHttpParams(n,E,"workWithUserAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getRequiredAttributesMemberResource(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getRequiredAttributesMemberResourceService(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==_)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"resource")),null!=_&&(n=this.addToHttpParams(n,_,"member")),null!=E&&(n=this.addToHttpParams(n,E,"workWithUserAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getRequiredAttributesResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRequiredAttributesResourceService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRequiredAttributesResourceServices(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"services[]")}),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRequiredAttributesUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRequiredAttributesUserFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRequiredAttributesVoService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getResourceAttributeById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getResourceAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getResourceAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getResourceAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getResourceGroupAndGroupAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==_)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"resource")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"workWithGroupAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getResourceGroupAndGroupAttributesByNames(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==E)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"group")),_&&_.forEach(J=>{n=this.addToHttpParams(n,J,"attrNames[]")}),null!=E&&(n=this.addToHttpParams(n,E,"workWithGroupAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getResourceGroupAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getResourceGroupMemberAttributesByNames(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==_)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==E)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"group")),null!=_&&(n=this.addToHttpParams(n,_,"member")),E&&E.forEach(J=>{n=this.addToHttpParams(n,J,"attrNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getUserAttributeById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUserAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserExtSourceAttributeById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserExtSourceAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserExtSourceAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userExtSource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUserExtSourceAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserFacilityAttributeById(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getUserFacilityAttributeByName(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getUserFacilityAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getVoAttributeById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getVoAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getVoAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVoAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeAttributesForFacilityResourceGroupUserMember(r,u,_,E,h,a,i=!1,t="body",n=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==_)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==E)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==h)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,r,"facility")),null!=u&&(s=this.addToHttpParams(s,u,"resource")),null!=_&&(s=this.addToHttpParams(s,_,"group")),null!=E&&(s=this.addToHttpParams(s,E,"user")),null!=h&&(s=this.addToHttpParams(s,h,"member")),a&&a.forEach(We=>{s=this.addToHttpParams(s,We,"attributes[]")});let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=o&&o.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let S=o&&o.context;void 0===S&&(S=new e.qT);let J="json";c&&(J=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let ht=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(i){let We=new URL(ht),et=We.pathname.split("/");et[1]="non",We.pathname=et.join("/"),ht=We.toString()}return this.httpClient.post(ht,null,{context:S,params:s,responseType:J,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:n})}removeAttributesForFacilityResourceUserMember(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==_)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==E)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==h)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility")),null!=u&&(o=this.addToHttpParams(o,u,"resource")),null!=_&&(o=this.addToHttpParams(o,_,"user")),null!=E&&(o=this.addToHttpParams(o,E,"member")),h&&h.forEach(ht=>{o=this.addToHttpParams(o,ht,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(a){let ht=new URL(J),We=ht.pathname.split("/");We[1]="non",ht.pathname=We.join("/"),J=ht.toString()}return this.httpClient.post(J,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}removeEntitylessAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"key")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeGroupAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeGroupAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeGroupResourceAttribute(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeGroupResourceAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeGroupResourceAttributesWorkWithGroupAttributes(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==E)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"resource")),_&&_.forEach(J=>{n=this.addToHttpParams(n,J,"attributes[]")}),null!=E&&(n=this.addToHttpParams(n,E,"workWithGroupAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}removeHostAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeHostAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeMemberAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeMemberAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeMemberAttributesWorkWithUserAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==_)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"attributes[]")}),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeMemberGroupAttribute(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeMemberGroupAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeMemberGroupAttributesWorkWithUserAttributes(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==E)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group")),_&&_.forEach(J=>{n=this.addToHttpParams(n,J,"attributes[]")}),null!=E&&(n=this.addToHttpParams(n,E,"workWithUserAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}removeMemberResourceAttribute(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeMemberResourceAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeResourceAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeResourceAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeUesAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeUserAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeUserAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeUserExtSourceAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeUserFacilityAttribute(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeUserFacilityAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeVoAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeVoAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}setAttributeActionCriticality(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==u)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==_)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"attributeDefinition")),null!=u&&(t=this.addToHttpParams(t,u,"action")),null!=_&&(t=this.addToHttpParams(t,_,"critical"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}setAttributePolicyCollections(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setAttributeRights(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setEntitylessAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setFacilityAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setFacilityAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setFacilityResourceGroupUserMemberAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setFacilityResourceUserMemberAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setFacilityUserAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setGroupAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setGroupAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setGroupResourceAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setGroupResourceAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setHostAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setHostAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberGroupAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberGroupAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberGroupWithUserAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberResourceAndUserAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberResourceAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberResourceAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberWithUserAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setResourceAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setResourceAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setResourceGroupAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setResourceGroupWithGroupAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setUserAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setUserAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setUserExtSourceAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setUserExtSourceAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setUserFacilityAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setUserFacilityAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setVoAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setVoAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateAttributeDefinition(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),v=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}auditMessagesManagerLog(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"msg"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}createAuditerConsumer(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consumerName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}findAllPossibleEvents(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/auditMessagesManager/findAllPossibleEvents`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllAuditerConsumers(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAuditerMessagesCount(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getLastMessageId(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getMessages(r,u=!1,_="body",E=!1,h){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"count"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/auditMessagesManager/getMessages`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMessagesByCount(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"count"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMessagesByIdAndCount(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter id was null or undefined when calling getMessagesByIdAndCount.");if(null==u)throw new Error("Required parameter count was null or undefined when calling getMessagesByIdAndCount.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"id")),null!=u&&(i=this.addToHttpParams(i,u,"count"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByIdAndCount`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMessagesPage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetMessagesPage was null or undefined when calling getMessagesPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}pollConsumerMessages(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consumerName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}setLastProcessedId(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==u)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"consumerName")),null!=u&&(i=this.addToHttpParams(i,u,"lastProcessedId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),R=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}getAllPolicies(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllRolesManagementRules(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAuthzAdminGroups(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==u)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==_)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"role")),null!=u&&(t=this.addToHttpParams(t,u,"complementaryObjectId")),null!=_&&(t=this.addToHttpParams(t,_,"complementaryObjectName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getAuthzRichAdmins(r,u,_,E,h,a,i=!1,t="body",n=!1,o){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==u)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==_)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==E)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,r,"role")),null!=u&&(s=this.addToHttpParams(s,u,"complementaryObjectId")),null!=_&&(s=this.addToHttpParams(s,_,"complementaryObjectName")),E&&E.forEach(We=>{s=this.addToHttpParams(s,We,"specificAttributes")}),null!=h&&(s=this.addToHttpParams(s,h,"allUserAttributes")),null!=a&&(s=this.addToHttpParams(s,a,"onlyDirectAdmins"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=o&&o.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let S=o&&o.context;void 0===S&&(S=new e.qT);let J="json";c&&(J=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let ht=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(i){let We=new URL(ht),et=We.pathname.split("/");et[1]="non",We.pathname=et.join("/"),ht=We.toString()}return this.httpClient.get(ht,{context:S,params:s,responseType:J,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:n})}getFacilitiesWhereUserIsInRoles(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupRoleNames(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupRoles(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"groupId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupsWhereUserIsInRoles(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getLoggedUser(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getMembersWhereUserIsInRoles(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getPerunPrincipal(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPrincipalRoleNames(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getResourcesWhereUserIsInRoles(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getSecurityTeamsWhereUserIsInRoles(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserRoleNames(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUserRoles(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVosWhereUserIsInRoles(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}isFacilityAdmin(r,u=!1,_="body",E=!1,h){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}isGroupAdmin(r,u=!1,_="body",E=!1,h){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}isPerunAdmin(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}isVoAdmin(r,u=!1,_="body",E=!1,h){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}keepAlive(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}loadAuthorizationComponents(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}refreshMfa(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}setRoleForGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setRoleForUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setRoleWithGroupComplementaryObject(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setRoleWithGroupComplementaryObjects(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setRoleWithUserComplementaryObject(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setRoleWithUserComplementaryObjects(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}unsetRoleForGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}unsetRoleForUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}unsetRoleWithGroupComplementaryObject(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}unsetRoleWithGroupComplementaryObjects(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}unsetRoleWithUserComplementaryObject(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}unsetRoleWithUserComplementaryObjects(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),w=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}changeConsentStatus(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"consent")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}evaluateConsentsForConsentHub(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consentHub"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}evaluateConsentsForConsentHubs(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter consentHubs was null or undefined when calling evaluateConsentsForConsentHubs.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"consentHubs[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHubs`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}evaluateConsentsForService(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllConsentHubs(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllConsents(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/consentsManager/getAllConsents`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getConsentById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getConsentForUserAndConsentHub(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==u)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==_)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"consentHub")),null!=_&&(t=this.addToHttpParams(t,_,"status"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getConsentHubByFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getConsentHubById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentHubById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getConsentHubByName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getConsentsForConsentHub(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consentHub"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getConsentsForConsentHubWithStatus(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"consentHub")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getConsentsForUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getConsentsForUserAndConsentHub(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==u)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"consentHub"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getConsentsForUserWithStatus(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}updateConsentHub(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/updateConsentHub`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),O=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addExtSourceWithGroupSource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addExtSourceWithVoSource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addExtSourcesWithGroupSource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling addExtSourcesWithGroupSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling addExtSourcesWithGroupSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"extSources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSources/g-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addExtSourcesWithVoSource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addExtSourcesWithVoSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling addExtSourcesWithVoSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"extSources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSources/v-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}createExtSourceFromExtSourceObject(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ExtSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createExtSourceWithNameType(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==u)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"name")),null!=u&&(i=this.addToHttpParams(i,u,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteExtSource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getExtSourceById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getExtSourceByName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getExtSources(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/extSourcesManager/getExtSources`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getGroupExtSources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVoExtSources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}loadExtSourcesDefinitions(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}removeExtSourceWithGroupSource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeExtSourceWithVoSource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeExtSourcesWithGroupSource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeExtSourcesWithGroupSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling removeExtSourcesWithGroupSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"extSources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSources/g-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeExtSourcesWithVoSource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeExtSourcesWithVoSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling removeExtSourcesWithVoSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"extSources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSources/v-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),q=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addFacilityAdminGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityAdminGroupByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityAdminUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityAdminUserByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityOwner(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityOwnerByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityOwnerByFacilityNameOwnerName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityOwnerByOwnerName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityOwners(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwners.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling addFacilityOwners.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"owners[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityOwnersByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnersByFacilityName.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling addFacilityOwnersByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"owners[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityOwnersByFacilityNameOwnerName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnersByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling addFacilityOwnersByFacilityNameOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"ownerNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners/f-o-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityOwnersByOwnerName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnersByOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling addFacilityOwnersByOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"ownerNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners/o-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addHost(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==u)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"hostname"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addHostByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==u)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"hostname"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addHosts(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==u)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"hostnames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addHostsByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==u)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"hostnames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}assignSecurityTeam(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}assignSecurityTeamByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyAttributesByDestinationName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyAttributesBySourceDestinationNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyAttributesBySourceName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyManagers(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyManagersByDestinationName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyManagersBySourceDestinationNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyManagersBySourceName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyOwners(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyOwnersByDestinationName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyOwnersBySourceDestinationNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyOwnersBySourceName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}createFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"name")),null!=u&&(i=this.addToHttpParams(i,u,"description"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteFacilityByFacilityName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllFacilities(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/facilitiesManager/getFacilities`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllowedGroups(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getAllowedGroupsByFacilityName(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getAllowedRichGroupsWithAttributes(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(J=>{n=this.addToHttpParams(n,J,"attrNames[]")}),null!=_&&(n=this.addToHttpParams(n,_,"vo")),null!=E&&(n=this.addToHttpParams(n,E,"service"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getAllowedRichGroupsWithAttributesByFacilityName(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(J=>{n=this.addToHttpParams(n,J,"attrNames[]")}),null!=_&&(n=this.addToHttpParams(n,_,"vo")),null!=E&&(n=this.addToHttpParams(n,E,"service"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getAllowedUsersOfFacility(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getAllowedUsersOfFacilityByFacilityName(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getAllowedVos(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllowedVosByFacilityName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedFacilitiesByGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedFacilitiesByMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedFacilitiesByService(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedFacilitiesByUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedResourcesByAssignedServiceForFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==u)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAssignedResourcesForFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedResourcesForFacilityByFacilityName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedRichResourcesForFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedRichResourcesForFacilityAndService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAssignedRichResourcesForFacilityByFacilityName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedSecurityTeams(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedSecurityTeamsByFacilityName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedUsers(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAssignedUsersByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getBansForFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facilityId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getBansForUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getEnricheFacilitydBansForUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnricheFacilitydBansForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedBansForUser`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEnrichedBansForFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedBansForFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedBansForFacility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEnrichedFacilities(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getEnrichedHosts(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacilitiesByAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"attributeName")),null!=u&&(i=this.addToHttpParams(i,u,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacilitiesByAttributeWithAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttributeWithAttributes.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttributeWithAttributes.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getFacilitiesByAttributeWithAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"attributeName")),null!=u&&(t=this.addToHttpParams(t,u,"attributeValue")),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttributeWithAttributes`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getFacilitiesByDestination(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilitiesByHostName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"hostname"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilitiesByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilitiesCount(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getFacilitiesWhereUserIsAdmin(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityAdminGroups(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityAdminUsers(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAdmins`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacilityAdminUsersByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacilityBan(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getBan`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacilityBanById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getBanById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityByName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityForHost(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"host"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityOwners(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getOwners`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityOwnersByFacilityName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getHostById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getHostById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHostById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getHosts(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHosts`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getHostsByFacilityName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getHostsByHostname(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"hostname"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getHostsCount(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getHostsCountByFacilityName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getOwnerFacilities(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"owner"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichFacilities(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}removeBanByUserIdFacilityId(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityAdminGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityAdminGroupByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityAdminUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityAdminUserByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityBanById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}removeFacilityOwner(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityOwnerByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityOwnerByFacilityNameOwnerName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityOwnerByOwnerName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityOwners(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwners.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling removeFacilityOwners.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"owners[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityOwnersByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnersByFacilityName.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling removeFacilityOwnersByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"owners[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityOwnersByFacilityNameOwnerName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnersByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling removeFacilityOwnersByFacilityNameOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"ownerNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners/f-o-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityOwnersByOwnerName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnersByOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling removeFacilityOwnersByOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"ownerNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners/o-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeHost(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHost.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"host"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}removeHostByHostname(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"hostname"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}removeHosts(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==u)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"hosts[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeHostsByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==u)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"hosts[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeSecurityTeam(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeSecurityTeamByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}setFacilityBan(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/setBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateFacility was null or undefined when calling updateFacility.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/updateFacility`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateFacilityBan(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/updateBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),ee=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addMember(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling addMember.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),null!=u&&(i=this.addToHttpParams(i,u,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addMembers(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==u)throw new Error("Required parameter members was null or undefined when calling addMembers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"members[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}allowGroupToHierarchicalVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}allowGroupsToHierarchicalVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling allowGroupsToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupsToHierarchicalVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}canExtendMembershipInGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyMembers(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter sourceGroup was null or undefined when calling copyMembers.");if(null==u)throw new Error("Required parameter destinationGroups was null or undefined when calling copyMembers.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"sourceGroup")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"destinationGroups")}),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"members")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/copyMembers`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}createGroupUnion(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==u)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resultGroup")),null!=u&&(i=this.addToHttpParams(i,u,"operandGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}createGroupWithParentGroupNameDescription(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==u)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==_)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"parentGroup")),null!=u&&(t=this.addToHttpParams(t,u,"name")),null!=_&&(t=this.addToHttpParams(t,_,"description"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}createGroupWithVoNameDescription(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==u)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==_)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"name")),null!=_&&(t=this.addToHttpParams(t,_,"description"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}deleteGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteGroups(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/deleteGroups`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}disallowGroupToHierarchicalVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}disallowGroupsToHierarchicalVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling disallowGroupsToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling disallowGroupsToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupsToHierarchicalVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}extendMembershipInGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}forceAllSubGroupsSynchronization(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}forceGroupStructureSynchronization(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}forceGroupSynchronization(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllAllowedGroupsToHierarchicalVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllGroups(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getAllGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllGroupsFromAllVos(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllMemberGroups(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllRichGroups(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"attrNames[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllRichGroupsWithAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAllRichSubGroupsWithGroupAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==u)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"name"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupByName`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupDirectMembersCount(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupDirectMembersCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupDirectMembersCount`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupMemberById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupMembers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupMembersCount(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupMembersCountsByGroupStatus(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupMembersCountsByVoStatus(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupRichMembersByIds(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==u)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"members[]")}),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getGroupUnions(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==u)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"reverseDirection"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupUnions`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupsByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupsPage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupsPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getGroupsWhereMemberIsActive(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getIndirectMembershipPaths(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMemberGroups(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getMemberGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMemberRichGroupsWithAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getParentGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getParentGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getParentGroup`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichGroupByIdWithAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"groupId")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getSubgroupsPage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getVoAllAllowedGroupsToHierarchicalVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==u)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}isAllowedGroupToHierarchicalVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}isGroupMember(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==u)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/isGroupMember`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}moveGroupWithDestinationGroupMovingGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"destinationGroup")),null!=r&&(i=this.addToHttpParams(i,r,"movingGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeGroupUnion(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==u)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resultGroup")),null!=u&&(i=this.addToHttpParams(i,u,"operandGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeMember(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeMember.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),null!=u&&(i=this.addToHttpParams(i,u,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeMembers(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==u)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"members[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}setGroupsMemberStatus(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==u)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==_)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"status"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}updateGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/updateGroup`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),ie=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}canExtendMembership(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/canExtendMembership`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}createMemberForCandidate(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createMember/c`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createMemberForUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createMember/u`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createMemberFromExtSource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createMember/extSource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createSpecificMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createSpecificMember`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createSponsoredMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createSponsoredMembers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createSponsoredMembersFromCSV(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}deleteMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}deleteMembers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"members[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}extendMembership(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}findCompleteRichMembersByAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(S=>{t=this.addToHttpParams(t,S,"attrsNames[]")}),null!=u&&(t=this.addToHttpParams(t,u,"searchString")),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"allowedStatuses[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}findCompleteRichMembersForGroup(r,u,_,E,h,a,i=!1,t="body",n=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==u)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==E)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,r,"group")),u&&u.forEach(We=>{s=this.addToHttpParams(s,We,"attrsNames[]")}),h&&h.forEach(We=>{s=this.addToHttpParams(s,We,"allowedStatuses[]")}),a&&a.forEach(We=>{s=this.addToHttpParams(s,We,"allowedGroupStatuses[]")}),null!=_&&(s=this.addToHttpParams(s,_,"searchString")),null!=E&&(s=this.addToHttpParams(s,E,"lookingInParentGroup"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=o&&o.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let S=o&&o.context;void 0===S&&(S=new e.qT);let J="json";c&&(J=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let ht=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`;if(i){let We=new URL(ht),et=We.pathname.split("/");et[1]="non",We.pathname=et.join("/"),ht=We.toString()}return this.httpClient.get(ht,{context:S,params:s,responseType:J,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:n})}findCompleteRichMembersForVo(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==u)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(J=>{n=this.addToHttpParams(n,J,"attrsNames[]")}),E&&E.forEach(J=>{n=this.addToHttpParams(n,J,"allowedStatuses[]")}),null!=_&&(n=this.addToHttpParams(n,_,"searchString"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}findMembersInVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"searchString"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/findMembersInVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}findSponsoredCompleteRichMembersForVo(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==u)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==E)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(J=>{n=this.addToHttpParams(n,J,"attrsNames[]")}),null!=_&&(n=this.addToHttpParams(n,_,"searchString")),null!=E&&(n=this.addToHttpParams(n,E,"onlySponsored"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getAllMembers(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/membersManager/getAllMembers`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllNamespacesRules(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllSponsoredMembers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllSponsoredMembersAndTheirSponsors(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getCompleteRichMembersForGroup(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==u)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group")),_&&_.forEach(ht=>{o=this.addToHttpParams(o,ht,"allowedStatuses[]")}),E&&E.forEach(ht=>{o=this.addToHttpParams(o,ht,"allowedGroupStatuses[]")}),null!=u&&(o=this.addToHttpParams(o,u,"lookingInParentGroup")),h&&h.forEach(ht=>{o=this.addToHttpParams(o,ht,"attrsNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`;if(a){let ht=new URL(J),We=ht.pathname.split("/");We[1]="non",ht.pathname=We.join("/"),J=ht.toString()}return this.httpClient.get(J,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}getCompleteRichMembersForGroupResource(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==_)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==E)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"resource")),_&&_.forEach(J=>{n=this.addToHttpParams(n,J,"attrsNames[]")}),E&&E.forEach(J=>{n=this.addToHttpParams(n,J,"allowedStatuses[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getCompleteRichMembersForVo(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"allowedStatuses[]")}),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"attrsNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberByExtSourceNameAndExtLogin(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==u)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==_)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"extLogin")),null!=_&&(t=this.addToHttpParams(t,_,"extSourceName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getMemberById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMemberByUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMemberByUser`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMembers(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMembers`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMembersByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getMembersByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMembersByUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getMembersByUser`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMembersCount(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getMembersCount`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMembersPage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMembersPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getMembersWithStatusCount(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==u)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMembersCount/status`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRichMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getRichMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichMemberWithAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichMembersByIds(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"ids[]")}),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRichMembersNoUserAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getSponsoredMembers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getSponsoredMembersAndTheirSponsors(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getSponsorsByMember(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getSponsors/member`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getSponsorsByVo(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==u)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==_)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"extSourceName")),null!=_&&(n=this.addToHttpParams(n,_,"extLogin")),E&&E.forEach(J=>{n=this.addToHttpParams(n,J,"attrNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/membersManager/getSponsors/vo`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}moveMembership(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==u)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==_)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"sourceUser")),null!=_&&(t=this.addToHttpParams(t,_,"targetUser"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeSponsor(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"sponsor"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeSponsors(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeSponsors.");if(null==u)throw new Error("Required parameter sponsorIds was null or undefined when calling removeSponsors.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"sponsorIds")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsors`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}sendAccountActivationLinkEmail(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==_)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==E)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"namespace")),null!=_&&(n=this.addToHttpParams(n,_,"emailAttributeURN")),null!=E&&(n=this.addToHttpParams(n,E,"language"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}sendPasswordResetLinkEmail(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==_)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==E)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member")),null!=u&&(o=this.addToHttpParams(o,u,"namespace")),null!=_&&(o=this.addToHttpParams(o,_,"emailAttributeURN")),null!=E&&(o=this.addToHttpParams(o,E,"language")),null!=h&&(o=this.addToHttpParams(o,h,"baseUrl"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`;if(a){let ht=new URL(J),We=ht.pathname.split("/");We[1]="non",ht.pathname=We.join("/"),J=ht.toString()}return this.httpClient.post(J,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}setSponsoredMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/setSponsoredMember`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setSponsorshipForMember(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"sponsoredMember")),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}setStatus(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling setStatus.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}sponsorMember(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}sponsorMembers(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter members was null or undefined when calling sponsorMembers.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMembers.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(S=>{t=this.addToHttpParams(t,S,"members[]")}),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMembers`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}updateSponsorshipValidity(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}validateMemberAsync(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),Te=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}createOwner(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/ownersManager/createOwner`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}deleteOwner(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"owner")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteOwners(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter owners was null or undefined when calling deleteOwners.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"owners[]")}),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwners`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAllOwners(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/ownersManager/getOwners`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getOwnerById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/ownersManager/getOwnerById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getOwnerByName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"owner"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/ownersManager/getOwnerByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),pe=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}sentMessageToRTWithMemberQueue(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==u)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==_)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==E)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"memberId")),null!=u&&(n=this.addToHttpParams(n,u,"queue")),null!=_&&(n=this.addToHttpParams(n,_,"subject")),null!=E&&(n=this.addToHttpParams(n,E,"text"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}sentMessageToRTWithQueue(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==u)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==_)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"queue")),null!=u&&(t=this.addToHttpParams(t,u,"subject")),null!=_&&(t=this.addToHttpParams(t,_,"text"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}sentMessageToRTWithVo(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==u)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==_)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"voId")),null!=u&&(t=this.addToHttpParams(t,u,"subject")),null!=_&&(t=this.addToHttpParams(t,_,"text"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}sentMessageToRTWithVoQueue(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==u)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==_)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==E)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"voId")),null!=u&&(n=this.addToHttpParams(n,u,"queue")),null!=_&&(n=this.addToHttpParams(n,_,"subject")),null!=E&&(n=this.addToHttpParams(n,E,"text"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),Le=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addApplicationMailForGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}addApplicationMailForVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}addGroupsToAutoRegistration(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"groups[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}approveApplication(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}checkForSimilarRichIdentities(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.post(o,null,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}checkForSimilarUsersWithAuthInfo(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.post(o,null,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}consolidate(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/consolidate`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}consolidateIdentityUsingToken(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"token"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}copyFormFromGroupToGroup(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=u&&(i=this.addToHttpParams(i,u,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyFormFromGroupToVo(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=u&&(i=this.addToHttpParams(i,u,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyFormFromVoToGroup(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=u&&(i=this.addToHttpParams(i,u,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyFormFromVoToVo(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=u&&(i=this.addToHttpParams(i,u,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyMailsFromGroupToGroup(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=u&&(i=this.addToHttpParams(i,u,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyMailsFromGroupToVo(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=u&&(i=this.addToHttpParams(i,u,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyMailsFromVoToGroup(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=u&&(i=this.addToHttpParams(i,u,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyMailsFromVoToVo(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=u&&(i=this.addToHttpParams(i,u,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}createApplicationFormInGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}createApplicationFormInVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}deleteApplication(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}deleteApplicationMailForGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==u)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"id"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteApplicationMailForVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==u)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"id"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteGroupsFromAutoRegistration(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"groups[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getApplicationById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getApplicationDataById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getApplicationMailsForGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getApplicationMailsForVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getApplicationsForGroup(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(J=>{n=this.addToHttpParams(n,J,"state[]")}),null!=_&&(n=this.addToHttpParams(n,_,"dateFrom")),null!=E&&(n=this.addToHttpParams(n,E,"dateTo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getApplicationsForMember(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getApplicationsForVo(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(J=>{n=this.addToHttpParams(n,J,"state[]")}),null!=_&&(n=this.addToHttpParams(n,_,"dateFrom")),null!=E&&(n=this.addToHttpParams(n,E,"dateTo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getApplicationsPage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getConsolidatorToken(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getFormItemsForGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getFormItems/group`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFormItemsForGroupWithType(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFormItemsForVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFormItemsForVoWithType(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupApplicationForm(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupsToAutoRegistration(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVoApplicationForm(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}rejectApplication(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"id")),null!=u&&(i=this.addToHttpParams(i,u,"reason"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}sendInvitation(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==u)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let n=new e.LE({encoder:this.encoder});null!=_&&(n=this.addToHttpParams(n,_,"voId")),null!=E&&(n=this.addToHttpParams(n,E,"name")),null!=r&&(n=this.addToHttpParams(n,r,"email")),null!=u&&(n=this.addToHttpParams(n,u,"language"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}sendInvitationForGroup(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==u)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let o=new e.LE({encoder:this.encoder});null!=_&&(o=this.addToHttpParams(o,_,"voId")),null!=E&&(o=this.addToHttpParams(o,E,"groupId")),null!=h&&(o=this.addToHttpParams(o,h,"name")),null!=r&&(o=this.addToHttpParams(o,r,"email")),null!=u&&(o=this.addToHttpParams(o,u,"language"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`;if(a){let ht=new URL(J),We=ht.pathname.split("/");We[1]="non",ht.pathname=We.join("/"),J=ht.toString()}return this.httpClient.post(J,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}sendInvitationGroupToExistingUser(r,u,_,E=!1,h="body",a=!1,i){let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"userId")),null!=u&&(t=this.addToHttpParams(t,u,"voId")),null!=_&&(t=this.addToHttpParams(t,_,"groupId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}sendInvitationToExistingUser(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userId")),null!=u&&(i=this.addToHttpParams(i,u,"voId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}sendInvitationsFromCsv(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}sendMessage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/sendMessage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setSendingEnabled(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}submitApplication(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/submitApplication`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateApplicationMail(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateForm(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateForm`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateFormItemData(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateFormItemData`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateFormItemsData(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateFormItemsForGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateFormItemsForVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}verifyApplication(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),T=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}activateGroupResourceAssignment(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"async"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}addAdminToGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addAdminToUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addResourceSelfServiceGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addResourceSelfServiceUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}allowGroupsToResources(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(S=>{t=this.addToHttpParams(t,S,"groups[]")}),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"resources[]")}),null!=_&&(t=this.addToHttpParams(t,_,"async"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}assignGroupToResource(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group")),null!=u&&(o=this.addToHttpParams(o,u,"resource")),null!=_&&(o=this.addToHttpParams(o,_,"async")),null!=E&&(o=this.addToHttpParams(o,E,"assignInactive")),null!=h&&(o=this.addToHttpParams(o,h,"autoAssignSubgroups"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`;if(a){let ht=new URL(J),We=ht.pathname.split("/");We[1]="non",ht.pathname=We.join("/"),J=ht.toString()}return this.httpClient.post(J,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}assignGroupToResources(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group")),u&&u.forEach(ht=>{o=this.addToHttpParams(o,ht,"resources[]")}),null!=_&&(o=this.addToHttpParams(o,_,"async")),null!=E&&(o=this.addToHttpParams(o,E,"assignInactive")),null!=h&&(o=this.addToHttpParams(o,h,"autoAssignSubgroups"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`;if(a){let ht=new URL(J),We=ht.pathname.split("/");We[1]="non",ht.pathname=We.join("/"),J=ht.toString()}return this.httpClient.post(J,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}assignGroupsToResource(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(ht=>{o=this.addToHttpParams(o,ht,"groups[]")}),null!=u&&(o=this.addToHttpParams(o,u,"resource")),null!=_&&(o=this.addToHttpParams(o,_,"async")),null!=E&&(o=this.addToHttpParams(o,E,"assignInactive")),null!=h&&(o=this.addToHttpParams(o,h,"autoAssignSubgroups"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`;if(a){let ht=new URL(J),We=ht.pathname.split("/");We[1]="non",ht.pathname=We.join("/"),J=ht.toString()}return this.httpClient.post(J,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}assignResourceTagToResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}assignResourceTagsToResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAssignResourceTagsToResource was null or undefined when calling assignResourceTagsToResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/assignResourceTagsToResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}assignService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling assignService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}assignServices(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==u)throw new Error("Required parameter services was null or undefined when calling assignServices.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"services[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}assignServicesPackage(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==u)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"servicesPackage"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/copyResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createResource(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==_)throw new Error("Required parameter name was null or undefined when calling createResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"facility")),null!=_&&(n=this.addToHttpParams(n,_,"name")),null!=E&&(n=this.addToHttpParams(n,E,"description"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}createResourceTagWithResourceTag(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createResourceTagWithTagName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"tagName")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deactivateGroupResourceAssignment(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteAllResources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}deleteAllResourcesTagsForVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}deleteResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}deleteResourceTag(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getAdminGroups(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAdmins(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAdmins`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAllResources(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/resourcesManager/getAllResources`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllResourcesByResourceTag(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getAllResourcesTagsForResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllResourcesTagsForVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllResourcesWhereUserIsAdmin(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllowedMembers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllowedResources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllowedUsersOfResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedGroups(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAssignedMembers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedMembersWithStatus(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedResourcesWithGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedResourcesWithMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedResourcesWithStatus(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedRichMembers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedRichResourcesWithGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedRichResourcesWithMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedRichResourcesWithMemberService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAssignedServicesToResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getBansForMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getBansForMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getBansForResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getBansForResource`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getEnrichedBansForResource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getEnrichedBansForResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForResource`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEnrichedBansForUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnrichedBansForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForUser`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEnrichedResourceById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"id")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEnrichedResourcesForFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEnrichedResourcesForVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupAssignments(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMailingServiceRichResourcesWithMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getResourceAssignments(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getResourceBan(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getBan`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getResourceBanById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getBanById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getResourceById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResourceById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getResourceByName(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==_)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"name"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getResourceByName`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getResources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getResourcesByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getResourcesCountForAll(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getResourcesCountForVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getResourcesFromVoWhereUserIsAdmin(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==u)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getResourcesWhereGroupIsAdmin(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==_)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"group"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getResourcesWhereUserIsAdmin(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==_)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"user"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getRichAdmins(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==u)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==_)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==E)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),u&&u.forEach(J=>{n=this.addToHttpParams(n,J,"specificAttributes")}),null!=_&&(n=this.addToHttpParams(n,_,"allUserAttributes")),null!=E&&(n=this.addToHttpParams(n,E,"onlyDirectAdmins"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getRichResourceById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichResources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getRichResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichResourcesByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getVo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}removeAllResourceTagsFromResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}removeBanByMemberAndResource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeGroupAdminResource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeGroupFromResource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeGroupFromResources(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"resources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeGroupsFromResource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeResourceBanById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}removeResourceSelfServiceGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeResourceSelfServiceUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeResourceTagFromResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}removeResourceTagsFromResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputRemoveResourceTagsFromResource was null or undefined when calling removeResourceTagsFromResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/removeResourceTagsFromResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}removeService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling removeService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeServiceForResources(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resources was null or undefined when calling removeServiceForResources.");if(null==u)throw new Error("Required parameter service was null or undefined when calling removeServiceForResources.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"resources[]")}),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService/forResources`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeServices(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==u)throw new Error("Required parameter services was null or undefined when calling removeServices.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"services[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeServicesPackage(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==u)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"servicesPackage"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeUserAdminResource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}setResourceBan(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/setBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}unallowGroupsFromResources(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"resources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}updateResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/updateResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateResourceBan(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/updateBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateResourceTag(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),W=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}getAttributesMatchResources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetMatchResources was null or undefined when calling getAttributesMatchResources.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getResources/attributes-match`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getAttributesResources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetResources was null or undefined when calling getAttributesResources.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getResources/attributes`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getFacilities(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetFacilities was null or undefined when calling getFacilities.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getFacilities`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getMembersByUserAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetMembersByUserAttributes was null or undefined when calling getMembersByUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getMembersByUserAttributes`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getUsersSearcher(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetUsers was null or undefined when calling getUsersSearcher.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getUsers`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),F=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addDestination(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==_)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==E)throw new Error("Required parameter type was null or undefined when calling addDestination.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service")),null!=u&&(o=this.addToHttpParams(o,u,"facility")),null!=_&&(o=this.addToHttpParams(o,_,"destination")),null!=E&&(o=this.addToHttpParams(o,E,"type")),null!=h&&(o=this.addToHttpParams(o,h,"propagationType"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`;if(a){let ht=new URL(J),We=ht.pathname.split("/");We[1]="non",ht.pathname=We.join("/"),J=ht.toString()}return this.httpClient.post(J,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}addDestinationToMultipleServices(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/addDestination`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}addDestinationsDefinedByHostsOnFacilityWithFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addDestinationsForAllServicesOnFacility(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==_)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"destination")),null!=_&&(n=this.addToHttpParams(n,_,"type")),null!=E&&(n=this.addToHttpParams(n,E,"propagationType"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}addRequiredAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addRequiredAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addServiceToServicesPackage(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==u)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"servicesPackage")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}blockAllServicesOnDestinationById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}blockAllServicesOnDestinationByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==u)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"destination")),null!=u&&(i=this.addToHttpParams(i,u,"destinationType"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}blockAllServicesOnFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}blockServiceOnDestination(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}blockServiceOnDestinationWithNameAndType(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==_)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"destination")),null!=_&&(t=this.addToHttpParams(t,_,"destinationType"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}blockServiceOnDestinations(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinations.");if(null==u)throw new Error("Required parameter destinations was null or undefined when calling blockServiceOnDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"destinations[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestinations`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}blockServiceOnFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}blockServicesOnDestinations(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputBlockServicesOnDestinations was null or undefined when calling blockServicesOnDestinations.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/blockServicesOnDestinations`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createService(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==u)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==_)throw new Error("Required parameter script was null or undefined when calling createService.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"name")),null!=u&&(t=this.addToHttpParams(t,u,"description")),null!=_&&(t=this.addToHttpParams(t,_,"script"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}createServiceWithService(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateService was null or undefined when calling createServiceWithService.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/createService`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createServicesPackage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateServicesPackage was null or undefined when calling createServicesPackage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/createServicesPackage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createServicesPackageByNameAndDescription(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==u)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"name")),null!=u&&(i=this.addToHttpParams(i,u,"description"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling deleteService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteServices(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter services was null or undefined when calling deleteServices.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"services[]")}),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServices`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteServicesPackage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"servicesPackage"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}forceServicePropagation(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAllDestinations(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/servicesManager/getDestinations/all`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllRichDestinationsForFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllRichDestinationsForService(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedResources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedServices(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedServicesVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServicesVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getAssignedServicesVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f-v`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getDataWithGroups(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getDataWithVos(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getDataWithVos`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getDestinationById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getDestinationById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getDestinations(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getDestinationsCount(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getFacilitiesDestinations(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityAssignedServicesForGUI(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFlatData(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getFlatData`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getHashedDataWithGroups(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"consentEval"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getHashedHierarchicalData(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"consentEval"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getHierarchicalData(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRichDestinations(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getRichDestinations`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getServiceById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServiceById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getServiceByName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServiceByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getServices(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/servicesManager/getServices`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getServicesBlockedOnDestination(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getServicesBlockedOnFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getServicesByAttributeDefinition(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getServicesFromServicesPackage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"servicesPackage"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getServicesPackageById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"servicesPackage"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getServicesPackageByName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getServicesPackages(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/servicesManager/getServicesPackages`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}isServiceBlockedOnDestination(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}isServiceBlockedOnFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}planServicePropagation(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeAllDestinations(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeAllRequiredAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}removeDestination(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==_)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==E)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility")),null!=_&&(n=this.addToHttpParams(n,_,"destination")),null!=E&&(n=this.addToHttpParams(n,E,"type"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}removeDestinations(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeDestinations.");if(null==_)throw new Error("Required parameter destinations was null or undefined when calling removeDestinations.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"destinations[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestinations`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeDestinationsByRichDestinations(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputRemoveRichDestinations was null or undefined when calling removeDestinationsByRichDestinations.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/removeDestinationsByRichDestinations`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}removeRequiredAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeRequiredAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeServiceFromServicesPackage(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==u)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"servicesPackage")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}unblockAllServicesOnDestinationById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}unblockAllServicesOnDestinationByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==u)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"destination")),null!=u&&(i=this.addToHttpParams(i,u,"destinationType"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}unblockAllServicesOnFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}unblockServiceOnDestinationById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}unblockServiceOnDestinationByName(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==_)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"destination")),null!=_&&(t=this.addToHttpParams(t,_,"destinationType"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}unblockServiceOnDestinations(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinations.");if(null==u)throw new Error("Required parameter destinations was null or undefined when calling unblockServiceOnDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"destinations[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestinations`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}unblockServiceOnFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}unblockServicesOnDestinations(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUnlockServicesOnDestinations was null or undefined when calling unblockServicesOnDestinations.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/unblockServicesOnDestinations`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateService(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateService was null or undefined when calling updateService.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/updateService`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateServicesPackage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),V=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}countTasks(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/tasksManager/countTasks`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}deleteTask(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter TaskIdObject was null or undefined when calling deleteTask.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/deleteTask`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}deleteTaskResultById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter TaskResultIdObject was null or undefined when calling deleteTaskResultById.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}deleteTaskResultsByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter taskResultIds was null or undefined when calling deleteTaskResultsByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"taskResultIds")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/tasksManager/deleteTaskResultsByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}deleteTaskResultsIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter TaskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}deleteTaskResultsNames(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter TaskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getAllFacilitiesStates(r,u=!1,_="body",E=!1,h){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllResourcesState(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"voId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityServicesState(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityState(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getFacilityState`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getTask(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getTask.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getTask`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getTaskById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getTaskResultById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"taskResult"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getTaskResults(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/tasksManager/getTaskResults`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getTaskResultsByTask(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"task"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getTaskResultsForDestinations(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"destinations[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getTaskResultsForGUIByTask(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"task"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getTaskResultsForGUIByTaskAndDestination(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"task")),null!=u&&(i=this.addToHttpParams(i,u,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getTaskResultsForGUIByTaskOnlyNewest(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"task"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}isThereSuchTask(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}listAllTasks(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/tasksManager/listAllTasks`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}listAllTasksForFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}suspendTasksPropagation(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"suspend"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),te=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addSpecificUserOwner(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==u)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"specificUser"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addUserExtSource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}anonymizeUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}changeNonAuthzPasswordByToken(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}changePasswordForLogin(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}changePasswordForUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}checkPasswordResetRequestByTokenIsValid(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"token"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}checkPasswordStrength(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createAlternativePassword(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createServiceUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}deleteAlternativePassword(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==u)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==_)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"loginNamespace")),null!=_&&(t=this.addToHttpParams(t,_,"passwordId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}deletePasswordForLogin(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"login")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deletePasswordForUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}findRichUsers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"searchString"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}findRichUsersWithAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"searchString")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrsNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}findUsers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"searchString"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/findUsers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}generateAccountForName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"namespace")),null!=u&&(i=this.addToHttpParams(i,u,"name"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAllRichUsersWithAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"includedSpecificUsers"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedRichResourcesForUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupsForFacilityWhereUserIsActive(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupsForResourceWhereUserIsActive(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupsInVoWhereUserIsAdmin(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupsWhereUserIsAdmin(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getPendingPreferredEmailChanges(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichUserExtSources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichUserWithAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichUsersByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichUsersWithAttributesByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichUsersWithoutVoWithAttributes(r,u=!1,_="body",E=!1,h){let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"attrsNames[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getSpecificUsersByUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getSponsorsForMember(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getSponsorsForMemberByVoAndLogin(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==u)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==_)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"extSourceName")),null!=_&&(n=this.addToHttpParams(n,_,"extLogin")),E&&E.forEach(J=>{n=this.addToHttpParams(n,J,"attrNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getUserByExtSourceNameAndExtLogin(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==u)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"extLogin")),null!=u&&(i=this.addToHttpParams(i,u,"extSourceName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getUserById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUserById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUserExtSourceByExtLoginAndExtSourceName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==u)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"extSourceName")),null!=u&&(i=this.addToHttpParams(i,u,"extSourceLogin"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserExtSourceById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userExtSource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUserExtSourceByUniqueAttributeValueAndAttributeId(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"attributeId")),null!=u&&(i=this.addToHttpParams(i,u,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserExtSourceByUniqueAttributeValueAndAttributeName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"attributeName")),null!=u&&(i=this.addToHttpParams(i,u,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserExtSources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUserExtSourcesByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUsers(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/usersManager/getUsers`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getUsersByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUsersBySpecificUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"specificUser"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUsersPage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getVosWhereUserIsAdmin(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVosWhereUserIsMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}isLoginAvailable(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==u)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"loginNamespace")),null!=u&&(i=this.addToHttpParams(i,u,"login"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}loginExist(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeSpecificUserOwner(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==u)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"specificUser"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeUserExtSource(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==u)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"userExtSource")),null!=_&&(t=this.addToHttpParams(t,_,"force"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeUserExtSources(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==u)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"userExtSources")}),null!=_&&(t=this.addToHttpParams(t,_,"force"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}requestPreferredEmailChange(r,u,_,E,h,a,i=!1,t="body",n=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==u)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,r,"user")),null!=u&&(s=this.addToHttpParams(s,u,"email")),null!=_&&(s=this.addToHttpParams(s,_,"lang")),null!=E&&(s=this.addToHttpParams(s,E,"linkPath")),null!=h&&(s=this.addToHttpParams(s,h,"customUrl")),null!=a&&(s=this.addToHttpParams(s,a,"idpFilter"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=o&&o.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let S=o&&o.context;void 0===S&&(S=new e.qT);let J="json";c&&(J=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let ht=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(i){let We=new URL(ht),et=We.pathname.split("/");et[1]="non",We.pathname=et.join("/"),ht=We.toString()}return this.httpClient.post(ht,null,{context:S,params:s,responseType:J,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:n})}reservePasswordForLogin(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}reservePasswordForUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}reserveRandomPassword(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}setLogin(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==u)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==_)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"login")),null!=_&&(t=this.addToHttpParams(t,_,"namespace"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}updateUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/updateUser`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateUserExtSourceLastAccess(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userExtSource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}validatePasswordForLogin(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"login")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}validatePasswordForUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}validatePreferredEmailChangeWithToken(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==u)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"token")),null!=u&&(i=this.addToHttpParams(i,u,"u"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),Q=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}getAppsConfig(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getGuiConfiguration(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getNewGuiAlert(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPerunRPCVersion(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPerunStatistics(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPerunStatus(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPerunSystemTimeInMillis(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),Ee=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addMemberVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==u)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addSponsorRoleToGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addSponsorRoleToUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addVoAdminGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addVoAdminUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}createVoWithName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==u)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"name")),null!=u&&(i=this.addToHttpParams(i,u,"shortName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}createVoWithVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/createVo/withVo`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}deleteVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}findCandidates(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"id")),null!=u&&(t=this.addToHttpParams(t,u,"searchString")),null!=_&&(t=this.addToHttpParams(t,_,"maxNumOfResults"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/findCandidates`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}findCandidatesForGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"searchString"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAllVos(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/vosManager/getAllVos`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getCompleteCandidatesForGroup(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")}),null!=_&&(t=this.addToHttpParams(t,_,"searchString"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getCompleteCandidatesForVo(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")}),null!=_&&(t=this.addToHttpParams(t,_,"searchString"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getEnrichedBansForVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getEnrichedBansForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getEnrichedBansForVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEnrichedVoBansForUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnrichedVoBansForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getEnrichedBansForUser`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEnrichedVoById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMemberVos(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getMemberVos`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMyEnrichedVos(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/vosManager/getEnrichedVos`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getMyVos(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/vosManager/getVos`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getParentVos(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getParentVos`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichAdminsForVo(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==u)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==_)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==E)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==h)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo")),null!=u&&(o=this.addToHttpParams(o,u,"role")),_&&_.forEach(ht=>{o=this.addToHttpParams(o,ht,"specificAttributes")}),null!=E&&(o=this.addToHttpParams(o,E,"allUserAttributes")),null!=h&&(o=this.addToHttpParams(o,h,"onlyDirectAdmins"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/json/vosManager/getRichAdmins`;if(a){let ht=new URL(J),We=ht.pathname.split("/");We[1]="non",ht.pathname=We.join("/"),J=ht.toString()}return this.httpClient.get(J,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}getVoAdminGroups(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==u)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"role"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getAdminGroups`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getVoAdminUsers(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==u)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==_)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"role")),null!=_&&(t=this.addToHttpParams(t,_,"onlyDirectAdmins"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/getAdmins`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getVoBanById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getBanById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVoBanForMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getBanForMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVoBansForVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getBansForVo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVoById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getVoById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getVoById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVoByShortName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"shortName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getVoByShortName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVoMembersCountsByStatus(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVosByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getVosByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVosCount(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/vosManager/getVosCount`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}removeMemberVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==u)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeSponsorRoleFromGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeSponsorRoleFromUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeVoAdminGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeVoAdminUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeVoBan(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}removeVoBanForMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}setVoBan(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/setBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/updateVo`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateVoBan(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateBan1 was null or undefined when calling updateVoBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/updateBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})();const Ye={ID:"ID",DATE_CREATED:"DATE_CREATED",TYPE:"TYPE",STATE:"STATE",SUBMITTER:"SUBMITTER",GROUP_NAME:"GROUP_NAME",MODIFIED_BY:"MODIFIED_BY"},Be={WRITE:"WRITE",READ:"READ"},Ae={HTML_COMMENT:"HTML_COMMENT",SUBMIT_BUTTON:"SUBMIT_BUTTON",AUTO_SUBMIT_BUTTON:"AUTO_SUBMIT_BUTTON",PASSWORD:"PASSWORD",VALIDATED_EMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDED_GROUP_APPLICATION:"EMBEDDED_GROUP_APPLICATION",LIST_INPUT_BOX:"LIST_INPUT_BOX",MAP_INPUT_BOX:"MAP_INPUT_BOX"};let Ne=(()=>{class Ce{constructor(r,u){if(r)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!u)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(r){return{ngModule:Ce,providers:[{provide:b,useFactory:r}]}}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(Ce,12),C.LFG(e.eN,8))},Ce.\u0275mod=C.oAB({type:Ce}),Ce.\u0275inj=C.cJS({}),Ce})()},19516:(Xe,ue,p)=>{"use strict";p.d(ue,{m2:()=>pe.m,yo:()=>Te.y,bY:()=>ie.b,i2:()=>Le.i,r5:()=>b.r,GY:()=>T.G,d4:()=>C,E7:()=>W.E,dp:()=>M.d});var e=p(36895),A=p(94650);let C=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275mod=A.oAB({type:V}),V.\u0275inj=A.cJS({imports:[e.ez]}),V})();var M=p(31359),b=(p(34447),p(82895)),ie=(p(69773),p(12856),p(20919),p(5865),p(38993),p(86349),p(53561),p(16119),p(7598),p(9954),p(4765)),Te=p(22908),pe=p(10293),Le=p(23123),T=p(56575),W=p(48524);p(77749)},77749:(Xe,ue,p)=>{"use strict";p.d(ue,{K:()=>C});var e=p(81591),A=p(94650);let C=(()=>{class M{constructor(b){this.translate=b}transform(b){switch(b){case"createdAt":return this.translate.instant("APPLICATIONS_LIST.CREATED_DATE");case"createdBy":return this.translate.instant("APPLICATIONS_LIST.CREATED_BY");case"type":return this.translate.instant("APPLICATIONS_LIST.TYPE");case"state":return this.translate.instant("APPLICATIONS_LIST.STATE");case"modifiedBy":return this.translate.instant("APPLICATIONS_LIST.MODIFIED_BY");default:return b}}}return M.\u0275fac=function(b){return new(b||M)(A.Y36(e.Te,16))},M.\u0275pipe=A.Yjl({name:"applicationColumnSelectLabel",type:M,pure:!0}),M})()},8231:(Xe,ue,p)=>{"use strict";p.d(ue,{G:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){const b="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return m?b+"DESELECT_ROW":b+"SELECT_ROW"}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"checkboxLabel",type:C,pure:!0}),C})()},10293:(Xe,ue,p)=>{"use strict";p.d(ue,{m:()=>A});var e=p(94650);let A=(()=>{class C{transform(m,b){if(!b||0===b.length)return;const D=b.filter(v=>v.userId===m.id);return 0!==D.length?D.reduce((v,R)=>v.id>R.id?v:R).status:void 0}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"consentStatusIcon",type:C,pure:!0}),C})()},34447:(Xe,ue,p)=>{"use strict";p.d(ue,{a:()=>M});var e=p(81591),A=p(94650),C=p(89383);let M=(()=>{class m{constructor(D,v){this.translate=D,this.storage=v}transform(D,v="en"){const R=this.storage.getProperty("custom_labels");if(R)for(const B of R)if(B.label===D)return B[v];return D}}return m.\u0275fac=function(D){return new(D||m)(A.Y36(C.sK,16),A.Y36(e.d6,16))},m.\u0275pipe=A.Yjl({name:"customTranslate",type:m,pure:!0}),m})()},22908:(Xe,ue,p)=>{"use strict";p.d(ue,{y:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b,D,v,R){return D&&"members"===b.name||v&&(R.has(b.id)||(0,e.bx)(b))}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"disableGroupSelect",type:M,pure:!0}),M})()},4765:(Xe,ue,p)=>{"use strict";p.d(ue,{b:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){return m.namespace.includes("virt")||m.namespace.includes("core")||m.namespace.includes("entityless")}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"disableUniqueAttribute",type:C,pure:!0}),C})()},23123:(Xe,ue,p)=>{"use strict";p.d(ue,{i:()=>C});var e=p(81591),A=p(94650);let C=(()=>{class M{constructor(b){this.translate=b,this.prefix="ROLES."}transform(b){return"displayName"in b&&b.displayName?b.displayName:this.translate.instant(this.prefix+b.roleName)}}return M.\u0275fac=function(b){return new(b||M)(A.Y36(e.Te,16))},M.\u0275pipe=A.Yjl({name:"displayedRole",type:M,pure:!0}),M})()},82895:(Xe,ue,p)=>{"use strict";p.d(ue,{r:()=>A});var e=p(94650);let A=(()=>{class C{transform(m,b){return b?`/organizations/${m.voId}/resources/${m.id}`:`/facilities/${m.facilityId}/resources/${m.id}`}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"getResourceRoute",type:C,pure:!0}),C})()},82514:(Xe,ue,p)=>{"use strict";p.d(ue,{F:()=>A});var e=p(94650);let A=(()=>{class C{transform(m,b,D){let v;switch(m){case"VALID":v="green";break;case"INVALID":v="red";break;default:v=""}return`${v}${D||b?" cursor-default":""}`}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"groupStatusIconColor",type:C,pure:!0}),C})()},28764:(Xe,ue,p)=>{"use strict";p.d(ue,{F:()=>M});var e=p(9244),A=p(64080),C=p(94650);let M=(()=>{class m{transform(D){if(null==D||null==D.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const v=(0,e.IL)(D.attributes,A.r.GROUP_SYNC_ENABLED),R=(0,e.IL)(D.attributes,A.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===v&&null===R)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const B=R.value;if("true"===v.value){const L=(0,e.IL)(D.attributes,A.r.GROUP_LAST_SYNC_STATE),O=(0,e.IL)(D.attributes,A.r.GROUP_LAST_SYNC_TIMESTAMP),q=L.value,ee=O.value;return null!=q&&q.trim().length>0?"red":null!==ee&&ee.trim().length>0?"green":""}if(B){const L=(0,e.IL)(D.attributes,A.r.GROUP_LAST_STRUCTURE_SYNC_STATE),O=(0,e.IL)(D.attributes,A.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),q=L.value,ee=O.value;return null!=q&&q.trim().length>0?"red":null!==ee&&ee.trim().length>0?"green":""}return""}}return m.\u0275fac=function(D){return new(D||m)},m.\u0275pipe=C.Yjl({name:"groupSyncIconColor",type:m,pure:!0}),m})()},29218:(Xe,ue,p)=>{"use strict";p.d(ue,{J:()=>M});var e=p(64080),A=p(9244),C=p(94650);let M=(()=>{class m{transform(D){if(null==D||null==D.attributes)return"";const v=(0,A.IL)(D.attributes,e.r.GROUP_SYNC_ENABLED),R=(0,A.IL)(D.attributes,e.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===v&&null===R)return"";const B=R.value;if("true"===v.value){const L=(0,A.IL)(D.attributes,e.r.GROUP_LAST_SYNC_STATE),O=(0,A.IL)(D.attributes,e.r.GROUP_LAST_SYNC_TIMESTAMP),q=L.value,ee=O.value;return null!=q&&q.trim().length>0?"sync_problem":(null!==ee&&ee.trim(),"sync")}if(B){const L=(0,A.IL)(D.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_STATE),O=(0,A.IL)(D.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),q=L.value,ee=O.value;return null!=q&&q.trim().length>0?"sync_problem":(null!==ee&&ee.trim(),"sync")}return"sync_disabled"}}return m.\u0275fac=function(D){return new(D||m)},m.\u0275pipe=C.Yjl({name:"groupSyncIcon",type:m,pure:!0}),m})()},45942:(Xe,ue,p)=>{"use strict";p.d(ue,{r:()=>M});var e=p(9244),A=p(64080),C=p(94650);let M=(()=>{class m{transform(D){if(null==D||null==D.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const v=(0,e.IL)(D.attributes,A.r.GROUP_SYNC_ENABLED),R=(0,e.IL)(D.attributes,A.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===v&&null===R)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const B=R.value;if("true"===v.value){const L=(0,e.IL)(D.attributes,A.r.GROUP_LAST_SYNC_STATE),O=(0,e.IL)(D.attributes,A.r.GROUP_LAST_SYNC_TIMESTAMP),q=L.value,ee=O.value;return null!=q&&q.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==ee&&ee.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(B){const L=(0,e.IL)(D.attributes,A.r.GROUP_LAST_STRUCTURE_SYNC_STATE),O=(0,e.IL)(D.attributes,A.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),q=L.value,ee=O.value;return null!=q&&q.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==ee&&ee.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return m.\u0275fac=function(D){return new(D||m)},m.\u0275pipe=C.Yjl({name:"groupSyncToolTip",type:m,pure:!0}),m})()},9185:(Xe,ue,p)=>{"use strict";p.d(ue,{I:()=>M});var e=p(81591),A=p(91479),C=p(94650);let M=(()=>{class m{constructor(D){this.tableCheckboxService=D}transform(D,v,R){return 0!==v&&((0,e.uI)(D)?v===D.getData().length:(0,A.o)(D)?this.tableCheckboxService.isAllSelectedPaginated(D,v,R):this.tableCheckboxService.isAllSelected(v,D,R))}}return m.\u0275fac=function(D){return new(D||m)(C.Y36(e.UA,16))},m.\u0275pipe=C.Yjl({name:"isAllSelected",type:m,pure:!0}),m})()},56575:(Xe,ue,p)=>{"use strict";p.d(ue,{G:()=>C});var e=p(81591),A=p(94650);let C=(()=>{class M{constructor(b){this.authResolver=b}transform(b,D){return b.filter(v=>this.canSetRoleForEntity(v,D))}canSetRoleForEntity(b,D){const v=new Map;return this.authResolver.setRolesAuthorization([D],b,v),v.get(D.roleName).manageAuth}}return M.\u0275fac=function(b){return new(b||M)(A.Y36(e.x4,16))},M.\u0275pipe=A.Yjl({name:"manageableEntities",type:M,pure:!0}),M})()},14849:(Xe,ue,p)=>{"use strict";p.d(ue,{r:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){const b="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return m?b+"DESELECT_ALL":b+"SELECT_ALL"}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"masterCheckboxLabel",type:C,pure:!0}),C})()},86349:(Xe,ue,p)=>{"use strict";p.d(ue,{A:()=>M});var e=p(9244),A=p(94650),C=p(89383);let M=(()=>{class m{constructor(D){this.translate=D}transform(D,v){const R=(0,e.zr)(D);return"INDIRECT"===R?this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT"):v||"UNALTERABLE"!==R?"":this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_UNALTERABLE")}}return m.\u0275fac=function(D){return new(D||m)(A.Y36(C.sK,16))},m.\u0275pipe=A.Yjl({name:"memberCheckboxLabel",type:m,pure:!0}),m})()},20919:(Xe,ue,p)=>{"use strict";p.d(ue,{D:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.g$)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"memberEmail",type:M,pure:!0}),M})()},5865:(Xe,ue,p)=>{"use strict";p.d(ue,{p:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.lt)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"memberLogins",type:M,pure:!0}),M})()},96974:(Xe,ue,p)=>{"use strict";p.d(ue,{M:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.Gw)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"memberOrganization",type:M,pure:!0}),M})()},38993:(Xe,ue,p)=>{"use strict";p.d(ue,{n:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b,D){const v=(0,e.zr)(b);return"INDIRECT"===v||!D&&"UNALTERABLE"===v}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"memberStatusDisabled",type:M,pure:!0}),M})()},69773:(Xe,ue,p)=>{"use strict";p.d(ue,{u:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){const D=(0,e.zr)(b);let v;switch(b.status){case"VALID":v="green";break;case"INVALID":v="red";break;case"DISABLED":v="black";break;default:return""}return`${v}${"UNALTERABLE"===D?" cursor-default":""}`}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"memberStatusIconColor",type:M,pure:!0}),M})()},21757:(Xe,ue,p)=>{"use strict";p.d(ue,{f:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){switch(m){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return m}}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"memberStatusIcon",type:C,pure:!0}),C})()},12856:(Xe,ue,p)=>{"use strict";p.d(ue,{i:()=>M});var e=p(9244),A=p(94650),C=p(89383);let M=(()=>{class m{constructor(D){this.translate=D}transform(D,v,R){let B=null,w=null;D.memberAttributes&&(B=D.memberAttributes.find(q=>"membershipExpiration"===q.friendlyName),w=D.memberAttributes.find(q=>"groupMembershipExpiration"===q.friendlyName));let L="";L=v?`\n Group status: ${(0,e.Oe)(D.groupStatus)}\n Expiration: ${w?.value??"never"}`:D.memberAttributes?`Status: ${(0,e.Oe)(D.status,D.groupStatus)}\n Vo status: ${(0,e.Oe)(D.status)}\n Expiration: ${B?.value??"never"}`:`Status: ${(0,e.Oe)(D.status,D.groupStatus)}\n Vo status: ${(0,e.Oe)(D.status)}`;const O=(0,e.zr)(D);return R?L=`${L}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_MEMBERS_GROUP")}`:"INDIRECT"===O&&v?L=`${L}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_GROUP_INDIRECT")}`:!v&&"UNALTERABLE"===O&&(L=`${L}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_INDIRECT")}`),L}}return m.\u0275fac=function(D){return new(D||m)(A.Y36(C.sK,16))},m.\u0275pipe=A.Yjl({name:"memberStatusTooltip",type:m,pure:!0}),m})()},20551:(Xe,ue,p)=>{"use strict";p.d(ue,{l:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){return m.replace("VALID","ACTIVE")}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"memberStatus",type:C,pure:!0}),C})()},64597:(Xe,ue,p)=>{"use strict";p.d(ue,{R:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){return m.replace(/\s/g,"-").replace(/\./g,"-").toLowerCase()}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"multiWordDataCy",type:C,pure:!0}),C})()},62383:(Xe,ue,p)=>{"use strict";p.d(ue,{M:()=>C});var e=p(36895),A=p(94650);let C=(()=>{class M{transform(b,D){return"voRules"===b?"Vo rules":"groupRules"===b?"Group rules":b&&"never"!==b.toLowerCase()?(0,e.p6)(b.replace(" ","T"),"d.M.yyyy "+(D?"H:mm:ss":""),"en"):"never"}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"parseDate",type:M,pure:!0}),M})()},30076:(Xe,ue,p)=>{"use strict";p.d(ue,{A:()=>C});var e=p(94650),A=p(11481);let C=(()=>{class M{constructor(b){this.sanitizer=b}transform(b){return this.sanitizer.bypassSecurityTrustHtml(b)}}return M.\u0275fac=function(b){return new(b||M)(e.Y36(A.H7,16))},M.\u0275pipe=e.Yjl({name:"sanitizeHtml",type:M,pure:!0}),M})()},53561:(Xe,ue,p)=>{"use strict";p.d(ue,{J:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.te)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"technicalOwners",type:M,pure:!0}),M})()},48524:(Xe,ue,p)=>{"use strict";p.d(ue,{E:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){return m.map(b=>({facility:b}))}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"toEnrichedFacility",type:C,pure:!0}),C})()},49206:(Xe,ue,p)=>{"use strict";p.d(ue,{r:()=>A});var e=p(94650);let A=(()=>{class C{transform(m,b){return"valid"!==m.toLowerCase()||b&&"valid"!==m.toLowerCase()?m:"ACTIVE"}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"transformMemberStatus",type:C,pure:!0}),C})()},16119:(Xe,ue,p)=>{"use strict";p.d(ue,{S:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.kN)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"userEmail",type:M,pure:!0}),M})()},31359:(Xe,ue,p)=>{"use strict";p.d(ue,{d:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){return[m.titleBefore,m.firstName,m.middleName,m.lastName,m.titleAfter].join(" ")}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"userFullName",type:C,pure:!0}),C})()},7598:(Xe,ue,p)=>{"use strict";p.d(ue,{g:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.$0)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"userLogins",type:M,pure:!0}),M})()},9954:(Xe,ue,p)=>{"use strict";p.d(ue,{Z:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.OV)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"userVo",type:M,pure:!0}),M})()},81591:(Xe,ue,p)=>{"use strict";p.d(ue,{yC:()=>N,F5:()=>le,sM:()=>Z,eE:()=>E,e8:()=>O,EB:()=>Ee,Be:()=>Ne,Hy:()=>vt,ly:()=>xe,fb:()=>Ce,Mf:()=>i,K1:()=>a,x4:()=>b,v0:()=>V,hy:()=>F,SZ:()=>be,V6:()=>k,jq:()=>_e,Te:()=>C,BN:()=>X,Nj:()=>t,Ip:()=>r,HV:()=>ye,d6:()=>B,UA:()=>de,uI:()=>tt});var e=p(89383),A=p(94650);let C=(()=>{class n extends e.sK{instant(s,l){return String(super.instant(s,l))}}return n.\u0275fac=function(){let o;return function(l){return(o||(o=A.n5z(n)))(l||n)}}(),n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var M=p(61744),m=p(45323);let b=(()=>{class n{constructor(s){this.authzSevice=s,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(l,d)=>l.roleName>d.roleName?1:l.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(d=>{this.allRolesManagementRules=d,s()},d=>l(d))})}assignAvailableRoles(s,l){this.allRolesManagementRules.forEach(d=>{d.primaryObject===l&&s.push(d)}),s.sort(this.sortRoles),"Vo"===l&&this.voCustomSort(s)}isManagerPagePrivileged(s){const l=[];let d=s.beanName;d.startsWith("Rich")&&(d=d.substring(4)),this.assignAvailableRoles(l,d);const c=new Map;this.setRolesAuthorization(l,s,c);for(const S of c.values())if(S.readAuth||S.manageAuth)return!0;return!1}setRolesAuthorization(s,l,d){for(const c of s){let S=[],J=[],ht=[];for(const He of this.allRolesManagementRules)if(He.roleName===c.roleName){S=S.concat(He.privilegedRolesToRead),J=J.concat(He.privilegedRolesToManage);for(const Oe of Object.keys(He.entitiesToManage))ht="User"===Oe?[Oe].concat(ht):ht.concat(Oe);break}const We=this.fetchAllRelatedObjects([l]),et=this.resolveAuthorization(S,We),ne=this.resolveAuthorization(J,We);d.set(c.roleName,{readAuth:et,manageAuth:ne,modes:ht})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(s){for(const l of this.allRolesManagementRules)if(l.roleName===s)return l.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(s){return this.allRolesManagementRules.find(l=>l.roleName===s)}getAssignableRoleRules(s){const l=[],d=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(c=>{!d.includes(c.roleName)&&this.canManage(c)&&this.ruleHasMode(c,s)&&l.push(c)}),l.sort(this.sortRoles)}ruleHasMode(s,l){return Object.keys(s.entitiesToManage).map(d=>d.toUpperCase()).includes(l)}canManage(s){return s.privilegedRolesToManage.some(l=>this.principalRoles.has(Object.keys(l)[0]))}resolveAuthorization(s,l){for(const d of s){let c=!0;for(const S of Object.keys(d)){const J=d[S];if(null===J)this.principalRoles.has(S)||(c=!1);else if(l[J]){for(const ht of l[J])if(!this.principalHasRole(S,J,ht)){c=!1;break}}else c=!1;if(!c)break}if(c)return!0}return!1}getPerunPolicy(s){for(const l of this.perunPolicies)if(l.policyName===s)return l;return null}fetchAllRelatedObjects(s){const l={};for(const d of s){let c=d.beanName;switch(d.beanName.startsWith("Rich")&&(c=d.beanName.substring(4)),l[c]?l[c].push(d.id):l[c]=[d.id],c){case"Member":l.User?l.User.push(d.userId):l.User=[d.userId],l.Vo?l.Vo.push(d.voId):l.Vo=[d.voId];break;case"Group":case"ResourceTag":l.Vo?l.Vo.push(d.voId):l.Vo=[d.voId];break;case"Resource":l.Facility?l.Facility.push(d.facilityId):l.Facility=[d.facilityId],l.Vo?l.Vo.push(d.voId):l.Vo=[d.voId]}}return l}fetchPolicyWithAllIncludedPolicies(s){const l=new Map;let d=[];for(d.push(s);0!==d.length;){const S=d.shift();if(l.has(S))continue;const J=this.getPerunPolicy(S);if(!J)return[];l.set(S,J),d=d.concat(J.includePolicies)}const c=[];for(const S of l.values())c.push(S);return c}voCustomSort(s){for(let l=0;l{class n{constructor(){this.branding=""}setInstanceConfig(s){this.instanceConfig=s}setDefaultConfig(s){this.defaultConfig=s}getAppsConfig(){return this.appsConfig}setAppsConfig(s){this.appsConfig=s}setPerunPrincipal(s){this.principal=s}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(s){this.initialPageId=s}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(s){this.branding=s}getProperty(s){if(!this.instanceConfig||!this.defaultConfig)return null;const l=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],d=this.defaultConfig[s];let c=null;for(const S of l)S&&null==c&&(c=S[s]);return null===c?d:this.addMissingValuesToProperty(c,d)}addMissingValuesToProperty(s,l){if(null==s)return l;if("object"==typeof s&&!Array.isArray(s))for(const d of Object.keys(l))s[d]=this.addMissingValuesToProperty(s[d],l[d]);return s}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var w=p(65412),L=p(51214);let O=(()=>{class n{constructor(s,l,d,c,S){this.injector=s,this.store=l,this.dialog=d,this.route=c,this.oauthService=S,setTimeout(()=>{this.router=this.injector.get(v.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(J=>{J.idpFilter&&(this.filterShortname=String(J.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const s=this.setIdpFilter(),c=.5+.25*Math.random(),S=s?{acr_values:s}:{},J=this.store.getProperty("oidc_client");if(J.oauth_scopes.split(" ").includes("offline_access")&&J.oauth_offline_access_consent_prompt&&(S.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(S.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(S.prompt?S.prompt+=" login":S.prompt="login",S.max_age="0"),"Linker"===this.store.getProperty("application")){S.prompt?S.prompt+=" login":S.prompt="login";const ht=(0,R.O5)("idphint",location.search.substring(1));ht&&(S.idphint=ht)}return{requestAccessToken:!0,issuer:J.oauth_authority,clientId:J.oauth_client_id,redirectUri:J.oauth_redirect_uri,postLogoutRedirectUri:J.oauth_post_logout_redirect_uri,responseType:J.oauth_response_type,scope:J.oauth_scopes,clockSkewInSec:1,timeoutFactor:c,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:S}}setIdpFilter(){const s=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const l=this.store.getProperty("oidc_client").filters;if(!l)return null;let d=null;return s.forEach(c=>{const S=c.split("=");"idpFilter"===S[0]&&l[S[1]]&&(this.filterShortname=S[1],d=l[S[1]])}),l.default&&!d?(this.filterShortname="default",l.default):d}startIdpFilterKeeper(){this.router.events.pipe((0,D.h)(s=>s instanceof v.m2)).subscribe(()=>{const s={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===s.idpFilter?{}:s,queryParamsHandling:"merge",replaceUrl:!0})})}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(A.zs3),A.LFG(B),A.LFG(w.uw),A.LFG(v.gz),A.LFG(L.Ct))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),q=(()=>{class n{constructor(s){this.dialogRef=s}}return n.\u0275fac=function(s){return new(s||n)(A.Y36(w.so))},n.\u0275cmp=A.Xpm({type:n,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(s,l){1&s&&(A.TgZ(0,"h2",0),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&s&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[w.xY,e.X$]}),n})();var ee=p(83905),z=p(69751),ie=p(4859),Te=p(98380);let pe=(()=>{class n{constructor(s,l){this.dialogRef=s,this.data=l}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(s){return new(s||n)(A.Y36(w.so),A.Y36(w.WI))},n.\u0275cmp=A.Xpm({type:n,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(s,l){1&s&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),A._uU(5),A.ALo(6,"translate"),A.ALo(7,"translate"),A.qZA()(),A.TgZ(8,"div",3)(9,"button",4),A.NdJ("click",function(){return l.cancel()}),A._uU(10),A.ALo(11,"translate"),A.qZA(),A.TgZ(12,"button",5),A.NdJ("click",function(){return l.submit()}),A._uU(13),A.ALo(14,"translate"),A.qZA()()),2&s&&(A.xp6(1),A.Oqu(A.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),A.xp6(4),A.hij(" ",l.data.mfaRoleException?A.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):A.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),A.xp6(4),A.Q6J("hidden",l.data.mfaRoleException),A.xp6(1),A.hij(" ",A.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),A.xp6(2),A.Tol(l.data.mfaRoleException?"ml-auto":"ml-2"),A.xp6(1),A.hij(" ",A.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[w.uh,w.xY,w.H8,ie.lW,Te.w,e.X$]}),n})();var Le=p(97392);let T=(()=>{class n{}return n.\u0275fac=function(s){return new(s||n)},n.\u0275cmp=A.Xpm({type:n,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(s,l){1&s&&(A.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),A._uU(3," info "),A.qZA(),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div"),A._uU(7),A.ALo(8,"translate"),A.qZA()()),2&s&&(A.xp6(4),A.hij(" ",A.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),A.xp6(3),A.hij(" ",A.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Le.Hw,e.X$],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),n})(),W=(()=>{class n{constructor(s,l){this.data=s,this.dialogRef=l}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return n.\u0275fac=function(s){return new(s||n)(A.Y36(w.WI),A.Y36(w.so))},n.\u0275cmp=A.Xpm({type:n,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(s,l){1&s&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),A._uU(5),A.ALo(6,"translate"),A.qZA()(),A.TgZ(7,"div",3)(8,"button",4),A.NdJ("click",function(){return l.cancel()}),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"button",5),A.NdJ("click",function(){return l.submit()}),A._uU(12),A.ALo(13,"translate"),A.qZA()()),2&s&&(A.xp6(1),A.Oqu(A.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),A.xp6(4),A.hij(" ",A.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),A.xp6(4),A.hij(" ",A.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),A.xp6(3),A.hij(" ",A.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[w.uh,w.xY,w.H8,ie.lW,Te.w,e.X$]}),n})(),F=(()=>{class n{constructor(s,l,d,c){this.dialog=s,this.oauthService=l,this.authService=d,this.store=c}openMfaWindow(s){let l=null,d=null;const c=(0,R.kZ)();c.width="450px",c.data={mfaRoleException:s};const S=this.dialog.open(pe,c);let J=!1;if(S.afterClosed().subscribe(ht=>{if(ht){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),l=this.setupMfaWindow(),l){const We=(0,R.kZ)();We.width="450px",We.panelClass="noBorderDialog",d=this.dialog.open(T,We)}}else J=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const ht=(0,R.kZ)();ht.width="450px",ht.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(W,ht)}return new z.y(ht=>{const We=setInterval(()=>l?.closed?(clearInterval(We),d.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),ht.next(!0)):J?(clearInterval(We),ht.next(!1)):void 0,1e3)})}catchNoMfaTokenError(s){"unmet_authentication_requirements"===s&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const s=location.pathname+location.search,c=window.top;return window.open(s,"_blank",`width=600,height=600,top=${c.outerHeight/2+c.screenY-300}, left=${c.outerWidth/2+c.screenX-300}`)}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(w.uw),A.LFG(L.Ct),A.LFG(O),A.LFG(B))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),V=(()=>{class n{constructor(s,l,d,c,S,J,ht,We){this.authService=s,this.oauthService=l,this.storeService=d,this.authResolver=c,this.authzService=S,this.dialog=J,this.router=ht,this.mfaHandlerService=We,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const s=location.pathname,l=location.search.substring(1);return"/api-callback"===s?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",l),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(s)?(sessionStorage.setItem("auth:redirect",s),sessionStorage.setItem("auth:queryParams",l),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return(0,ee.z)(this.authzService.getPerunPrincipal()).then(s=>{if(null===s.user){const l=(0,R.kZ)();this.dialog.open(q,l)}else this.storeService.setPerunPrincipal(s),this.authResolver.init(s)})}simpleLoadPrincipal(){return(0,ee.z)(this.authzService.getPerunPrincipal()).then(s=>{this.storeService.setPerunPrincipal(s)})}checkRouteGuard(){const s=localStorage.getItem("routeAuthGuard");s&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([s],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const s=location.pathname,l=location.search.substring(1);sessionStorage.setItem("auth:redirect",s),sessionStorage.setItem("auth:queryParams",l);const d={};return l.split("&").forEach(c=>{const S=c.split("=");d[S[0]]=S[1]}),this.router.navigate(["service-access"],{queryParams:d,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const s=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",s),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(s){this.loginScreenShown=s}isPotentiallyValidPath(s){const l=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===s)return!0;for(const d of l)if(s.startsWith(d))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,D.h)(s=>"token_expires"===s.type&&"access_token"===s.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const s=sessionStorage.getItem("mfa_route");if(s)return this.router.navigate([s],{replaceUrl:!0,queryParamsHandling:"merge"});let l=sessionStorage.getItem("auth:redirect");(!l||"/login"===l)&&(l="/"),sessionStorage.removeItem("auth:redirect");const d=sessionStorage.getItem("auth:queryParams");let c=[];d&&(c=d.split("&"));const S={};return c.forEach(J=>{const ht=J.split("=");S[ht[0]]=ht[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([l],{queryParams:S,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(O),A.LFG(L.Ct),A.LFG(B),A.LFG(b),A.LFG(M.Ct),A.LFG(w.uw),A.LFG(v.F0),A.LFG(F))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var te=p(11481);let Ee=(()=>{class n{constructor(s,l){this.matIconRegistry=s,this.domSanitizer=l,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(s=>{this.matIconRegistry.addSvgIcon(s.name,this.domSanitizer.bypassSecurityTrustResourceUrl(s.url))})}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(Le.jv),A.LFG(te.H7))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac}),n})();var ge=p(80529),ve=p(62843),De=p(28746),he=p(18505),Ye=p(70262),Be=p(63900);let se=(()=>{class n{constructor(s){this.dialogRef=s}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(s){return new(s||n)(A.Y36(w.so))},n.\u0275cmp=A.Xpm({type:n,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(s,l){1&s&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div",2)(7,"div",3)(8,"button",4),A.NdJ("click",function(){return l.close()}),A._uU(9),A.ALo(10,"translate"),A.qZA()()()),2&s&&(A.xp6(1),A.Oqu(A.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),A.xp6(3),A.hij(" ",A.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),A.xp6(5),A.hij(" ",A.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[w.uh,w.xY,w.H8,ie.lW,e.X$]}),n})(),le=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const s=this.handleNextError;return this.handleNextError=!0,s}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),k=(()=>{class n{constructor(s){this.translate=s,this.addNotification=new A.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(s,l=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===s.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===s.name?l:l+"\n"+s.name,s,s.message)}showRouteError(){const s=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),l=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(s,null,l)}showError(s,l,d,c,S){this.addNotification.emit({type:"error",error:l,description:d,title:s,actionText:void 0===c&&void 0!==d?this.getDefaultActionMessage():c,delay:this.defaultErrorDelayMs,icon:"error_outline",action:S,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(s,l,d,c){this.addNotification.emit({type:"success",description:l,title:s,actionText:void 0===d&&void 0!==l?this.getDefaultActionMessage():d,delay:this.defaultSuccessDelayMs,icon:"done",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(e.sK))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),N=(()=>{class n{constructor(s,l,d,c,S,J,ht,We){this.authService=s,this.apiRequestConfiguration=l,this.notificator=d,this.store=c,this.dialog=S,this.initAuthService=J,this.mfaHandlerService=ht,this.oauthService=We}intercept(s,l){const d=this.store.getProperty("api_url");if(s.url.includes("i18n")&&(s=s.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==d&&this.isCallToPerunApi(s.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const c=(0,R.kZ)();c.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(se,c),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{(0,De.x)(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?s=s.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(s.url)&&(s=s.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(s,l)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(s,l){const d=this.apiRequestConfiguration.shouldHandleError(),c="POST"===s.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(s.url);return l.handle(s).pipe((0,he.b)(S=>{S instanceof ge.Zn&&c&&this.initAuthService.loadPrincipal()}),(0,Ye.K)(S=>{const J=S.error;if("MfaPrivilegeException"===J.type||"MfaRolePrivilegeException"===J.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===J.type).pipe((0,Be.w)(ht=>ht?("MfaRolePrivilegeException"===J.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(s),l)):(0,ve._)(()=>J)));{this.handleInvalidAccessTokenError(S);const ht=this.formatErrors(S,s);return void 0===ht?(0,ve._)(()=>S):(d&&this.notificator.showRPCError(ht),(0,ve._)(()=>ht))}}))}replaceAuthenticationToken(s){return s.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(s){return s.startsWith(this.store.getProperty("api_url"))}formatErrors(s,l){let d;console.error(s);const c=s.error;if(c.errorId&&(d=c),void 0!==d)return d.urlWithParams=l.urlWithParams,d.call=l.url,d.payload=l.body,d}isNotConsolidatorOrLinker(){const s=this.store.getProperty("application");return!("Linker"===s||"Consolidator"===s)}handleInvalidAccessTokenError(s){if(401===s.status){if(!this.isLoggedIn()||"invalid_token"===s.error.error||null!=this.dialogRefSessionExpiration)return;const l=(0,R.kZ)();this.dialogRefSessionExpiration=this.dialog.open(se,l),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(O),A.LFG(le),A.LFG(k),A.LFG(B),A.LFG(w.uw),A.LFG(V),A.LFG(F),A.LFG(L.Ct))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac}),n})(),be=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(s){this.newNotificationsCount++,this.notificationData.push(s)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Z=(()=>{class n{constructor(s,l,d,c){this.http=s,this.notificator=l,this.authService=d,this.storeService=c}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let s=new ge.WM;return s=s.set("Authorization",this.authService.getAuthorizationHeaderValue()),s}get(s,l=!0){const d=`${this.getApiUrl()}${s}`;return this.http.get(d,{headers:this.getHeaders()}).pipe((0,Ye.K)(c=>this.formatErrors(c,d,null,l)))}put(s,l={},d=!0){const c=`${this.getApiUrl()}${s}`,S=JSON.stringify(l);return this.http.put(c,S,{headers:this.getHeaders()}).pipe((0,Ye.K)(J=>this.formatErrors(J,c,S,d)))}post(s,l={},d=!0){const c=`${this.getApiUrl()}${s}`,S=JSON.stringify(l);let J=this.getHeaders();return J=J.set("Content-Type","application/json; charset=utf-8"),this.http.post(c,S,{headers:J}).pipe((0,Ye.K)(ht=>this.formatErrors(ht,c,S,d)))}delete(s,l=!0){const d=`${this.getApiUrl()}${s}`;return this.http.delete(d,{headers:this.getHeaders()}).pipe((0,Ye.K)(c=>this.formatErrors(c,d,null,l)))}formatErrors(s,l,d,c){const S=s.error;return S.call=l,S.payload=d,c&&this.notificator.showRPCError(s.error),(0,ve._)(S)}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(ge.eN),A.LFG(k),A.LFG(O),A.LFG(B))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),de=(()=>{class n{isAllSelected(s,l,d=(()=>!0)){const c=l.paginator.pageSize??0,S=l.paginator.pageIndex??0,J=l.paginator.hasNextPage(),ht=l.data.length===l.filteredData.length;this.numCanBeSelected=0,this.pageStart=S*c,this.pageEnd=this.pageStart+c,this.numSelected=s,this.dataLength=ht?l.data.length:l.filteredData.length;const We=l.sort;return J||(this.modulo=this.dataLength%c,this.pageEnd=0===this.modulo?this.pageStart+c:this.pageStart+this.modulo),this.pageIterator=0,(We?l.sortData(l.filteredData,We):l.filteredData).forEach(ne=>{this.pageStart<=this.pageIterator&&this.pageIterator{We?et(ne)&&this.pageStart<=this.pageIterator&&this.pageIterator!0)){return l===s.data.reduce((c,S)=>c+Number(d(S)),0)}masterTogglePaginated(s,l,d,c=(()=>!0)){l.clear(),d&&s.data.forEach(S=>{c(S)&&l.select(S)})}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xe=(()=>{class n{constructor(s,l,d,c){this.membersService=s,this.usersService=l,this.auditMessagesManagerService=d,this.registrarService=c}getMembers(s,l,d,c,S,J,ht,We,et,ne){return this.membersService.getMembersPage({vo:s,attrNames:l,query:{pageSize:S,offset:c*S,order:d,sortColumn:J,statuses:ht,searchString:We,groupId:et,groupStatuses:ne}})}getUsers(s,l,d,c,S,J,ht,We,et,ne,Ue,He,Oe){return this.usersService.getUsersPage({attrNames:s,query:{offset:c*d,pageSize:c,order:l,sortColumn:S,searchString:J,withoutVo:ht,facilityId:We,voId:et,resourceId:ne,serviceId:Ue,onlyAllowed:He,consentStatuses:Oe}})}getAuditMessages(s,l,d,c){return this.auditMessagesManagerService.getMessagesPage({query:{offset:d*l,pageSize:d,order:s,selectedEvents:c}})}getApplications(s,l,d,c,S,J,ht,We,et,ne,Ue,He,Oe){return this.registrarService.getApplicationsPage({vo:Ue,query:{pageSize:s,offset:l*s,order:d,sortColumn:c,searchString:J,includeGroupApplications:S,getDetails:Oe,states:ht,dateFrom:We,dateTo:et,userId:ne,groupId:He}})}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(M.uq),A.LFG(M.Fv),A.LFG(M.jw),A.LFG(M.tk))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var ot=p(61135),Fe=p(39646),ut=p(4128);function tt(n){return"allObjectCount"in n}class vt{constructor(o,s){this.dynamicPaginatingService=o,this.authzService=s,this.allObjectCount=0,this.routeAuth=!0,this.step=1e4,this.dataSubject=new ot.X([]),this.loadingSubject=new ot.X(!1),this.loading$=this.loadingSubject.asObservable()}loadMembers(o,s,l,d,c,S,J,ht,We,et){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const ne=this.latestQueryTime;this.dynamicPaginatingService.getMembers(o,s,l,d,c,S,J,ht,We,et).pipe((0,Ye.K)(()=>(0,Fe.of)([])),(0,De.x)(()=>this.loadingSubject.next(!1))).subscribe(Ue=>{if(this.latestQueryTime<=ne){const He=Ue.data;null!==He&&0!==He.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:o},He[0]])),this.allObjectCount=Ue.totalCount,this.dataSubject.next(He)}})}getAllMembers(o,s,l,d,c,S,J,ht,We){return new z.y(et=>{const ne=[];for(let Ue=0;Ue{const He=[].concat(...Ue.map(Oe=>Oe.data));et.next(He),et.complete()},error:Ue=>et.error(Ue)})})}loadUsers(o,s,l,d,c,S,J,ht,We,et,ne,Ue,He){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const Oe=this.latestQueryTime;this.dynamicPaginatingService.getUsers(o,d,l,s,c,S,J,ht,We,et,ne,Ue,He).pipe((0,Ye.K)(()=>(0,Fe.of)([])),(0,De.x)(()=>this.loadingSubject.next(!1))).subscribe(Re=>{if(this.latestQueryTime<=Oe){const re=Re.data;this.allObjectCount=Re.totalCount,this.dataSubject.next(re)}})}getAllUsers(o,s,l,d,c,S,J,ht,We,et,ne,Ue){return new z.y(He=>{const Oe=[];for(let Re=0;Re{const re=[].concat(...Re.map(we=>we.data));He.next(re),He.complete()},error:Re=>He.error(Re)})})}loadAuditMessages(o,s,l,d){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const c=this.latestQueryTime;this.dynamicPaginatingService.getAuditMessages(l,s,o,d).pipe((0,Ye.K)(()=>(0,Fe.of)([])),(0,De.x)(()=>this.loadingSubject.next(!1))).subscribe(S=>{if(this.latestQueryTime<=c){const J=S.data;this.allObjectCount=S.totalCount,this.dataSubject.next(J)}})}getAllAuditMessages(o,s,l){return new z.y(d=>{const c=[];for(let S=0;S{const J=[].concat(...S.map(ht=>ht.data));d.next(J),d.complete()},error:S=>d.error(S)})})}loadApplications(o,s,l,d,c,S,J,ht,We,et,ne,Ue,He){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const Oe=this.latestQueryTime;this.dynamicPaginatingService.getApplications(o,s,l,d,S,c,J,ht,We,et,Ue,ne,He??!1).pipe((0,Ye.K)(()=>(0,Fe.of)([])),(0,De.x)(()=>this.loadingSubject.next(!1))).subscribe(Re=>{if(this.latestQueryTime<=Oe){const re=Re.data;if(null!==re&&0!==re.length){const we=re;this.routeAuth=we[0].group?this.authzService.isAuthorized("getApplicationsForGroup_Group_List_policy",[we[0].group]):this.authzService.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[we[0].vo])}this.allObjectCount=Re.totalCount,this.dataSubject.next(re)}})}getAllApplications(o,s,l,d,c,S,J,ht,We,et,ne,Ue){return new z.y(He=>{const Oe=[];for(let Re=0;Re{const re=[].concat(...Re.map(we=>we.data));He.next(re),He.complete()},error:Re=>He.error(Re)})})}connect(){return this.dataSubject.asObservable()}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete()}getData(){return this.dataSubject.value}}let X=(()=>{class n{constructor(s,l){this.route=s,this.store=l}getPreferredLanguage(s){const l=this.store.getProperty("supported_languages"),d=navigator.languages.map(J=>J.split("-")[0]),c=location.search.substring(1).split("&");let S=null;for(const J of c){const ht=J.split("=");"lang"===ht[0]&&(S=ht[1])}return S&&l.includes(S)?S:s&&l.includes(s)?s:d&&l.includes(d[0])?d[0]:"en"}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(v.gz),A.LFG(B))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var nt=p(15861);let Ae=(()=>{class n{generatePdf(s){var l=this;return(0,nt.Z)(function*(){yield l.loadPdfMake(),l.pdfMake.createPdf(s).open()})()}loadPdfMake(){var s=this;return(0,nt.Z)(function*(){if(!s.pdfMake){const l=yield p.e(641).then(p.t.bind(p,54641,23)),d=yield p.e(493).then(p.t.bind(p,58493,19));s.pdfMake=l.default,s.pdfMake.vfs=d.default.pdfMake.vfs}})()}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ye=(()=>{class n{constructor(s){this.pdfService=s}static generateTableForUser(s){const l=s.name.replace(";"," ").split(";")[0];return"OK"!==s.status?this.generateErrorRowForUser(l,s.status):n.generateRowForUser(l,s.login,s.password)}static generateErrorRowForUser(s,l){return{table:{heights:[30,1,1],widths:[249,249],body:[[{text:s,colSpan:1,alignment:"center",bold:!0,fontSize:12,margin:[20,25],color:"red"},{text:l,alignment:"center",bold:!0,color:"red"}]]}}}static generateRowForUser(s,l,d){return{table:{heights:[30,0],widths:[120,120,120,120],body:[[n.generateNameCell(s),{},n.getPasswordLabelCell(),n.generatePasswordCell(d)],[n.getLoginLabelCell(),n.generateLoginCell(l),{},{}]]}}}static generateNameCell(s){return{text:s,colSpan:2,alignment:"center",border:[!0,!0,!0,!1],bold:!0,fontSize:12,margin:[10,10]}}static generatePasswordCell(s){return{text:s??"N/A",border:[!1,!0,!0,!0],bold:!0,margin:[0,25],rowSpan:2,alignment:"left"}}static generateLoginCell(s){return{text:s??"N/A",border:[!1,!1,!0,!0],bold:!0}}static getLoginLabelCell(){return{text:"Login:",border:[!0,!1,!1,!0],alignment:"right",margin:[0,0,0,10]}}static getPasswordLabelCell(){return{text:"Password:",border:[!0,!0,!1,!0],alignment:"right",margin:[0,25],rowSpan:2}}generate(s){var l=this;return(0,nt.Z)(function*(){const d=[];for(const S of s)d.push(n.generateTableForUser(S));return l.pdfService.generatePdf({content:d})})()}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(Ae))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_e=(()=>{class n{constructor(s){this.storeService=s}static getBrandContainingDomain(s,l){for(const c of s)if(c.newApps.admin===l||c.newApps.profile===l||c.newApps.pwdReset===l||c.newApps.consolidator===l||c.newApps.linker===l)return c;return s.filter(c=>"default"===c.name)[0]||s[0]}getUrlForOtherApplication(s,l){const c=window.location.href.split("/"),S=c[0]+"//"+c[2],J=n.getBrandContainingDomain(this.storeService.getAppsConfig().brands,S);let ht;if(J.newApps[s])ht=J.newApps[s],"pwdReset"===s&&(ht+=`?login-namespace=${l}`);else switch(ht=J.oldGuiDomain+"/fed",s){case"admin":ht+="/gui/";break;case"profile":ht+="/profile/";break;case"pwdReset":ht+=`/pwd-reset/?login-namespace=${l}`}return ht}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(B))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Se=p(98739);let Ne=(()=>{class n extends Se.ye{constructor(){super(...arguments),this.getRangeLabel=function(s,l,d){let c;const S=s*l+1,J=(s+1)*l,ht=J>d?d:J;return d<1e3?`${S} \u2013 ${ht} of ${String(d)}`:(c=d<1e4?"1 000":d<1e5?"10 000":"100 000",`${S} \u2013 ${ht} of ${c} +`)}}}return n.\u0275fac=function(){let o;return function(l){return(o||(o=A.n5z(n)))(l||n)}}(),n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac}),n})(),Ce=(()=>{class n{setEntity(s){this.entity=s}getEntity(){return this.entity}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var fe=p(64080);let r=(()=>{class n{constructor(s,l,d,c,S){this.authResolver=s,this.attributesManager=l,this.notificator=d,this.apiRequest=c,this.router=S,this.routePolicies=new Map([["organizations",J=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[J])],["organizations-members",J=>this.authResolver.isAuthorized("getMembersPage_Vo_MembersPageQuery_List_policy",[J])],["organizations-groups",J=>this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[J])],["organizations-resources",J=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[J])||this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[J])||this.authResolver.isAuthorized("getResourcesState_Vo_policy",[J])],["organizations-resources-preview",J=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[J])],["organizations-resources-tags",J=>this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[J])],["organizations-resources-states",J=>this.authResolver.isAuthorized("getResourcesState_Vo_policy",[J])],["organizations-applications",J=>this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[J])],["organizations-sponsoredMembers",J=>this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[J])],["organizations-serviceAccounts",J=>this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[J])],["organizations-attributes",J=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[J])],["organizations-statistics",J=>this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[J])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[J])],["organizations-settings",J=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[J])||this.authResolver.isManagerPagePrivileged(J)||this.authResolver.isThisVoAdminOrObserver(J.id)],["organizations-settings-expiration",J=>this.authResolver.isThisVoAdminOrObserver(J.id)],["organizations-settings-managers",J=>this.authResolver.isManagerPagePrivileged(J)],["organizations-settings-applicationForm",J=>this.authResolver.isThisVoAdminOrObserver(J.id)],["organizations-settings-notifications",J=>this.authResolver.isThisVoAdminOrObserver(J.id)],["organizations-settings-extsources",J=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[J])],["organizations-settings-memberOrganizations",()=>this.authResolver.isPerunAdmin()],["organizations-settings-hierarchicalInclusion",()=>this.authResolver.isPerunAdmin()],["organizations-settings-bans",J=>this.authResolver.isAuthorized("getBansForVo_int_policy",[J])],["members",J=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[J])],["members-groups",J=>this.authResolver.isAuthorized("getMemberGroups_Member_policy",[J])],["members-applications",J=>this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[J])],["members-resources",J=>this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[J])],["members-attributes",J=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[J])],["members-bans",J=>this.authResolver.isAuthorized("vo-getBanForMember_member_policy",[J])],["groups",J=>this.authResolver.isAuthorized("getGroupById_int_policy",[J])],["groups-members",J=>this.authResolver.isAuthorized("group-getMembersPage_Vo_MembersPageQuery_List_policy",[J])],["groups-subgroups",J=>this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[J])],["groups-resources",J=>this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[J])],["groups-applications",J=>this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[J])],["groups-attributes",J=>this.authResolver.isAuthorized("getGroupById_int_policy",[J])],["groups-statistics",J=>this.authResolver.isAuthorized("getGroupMembersCount_Group_policy",[J])&&this.authResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[J])&&this.authResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[J])],["groups-roles",J=>this.authResolver.isAuthorized("getGroupRoles_int_policy",[J])],["groups-settings",J=>this.authResolver.isManagerPagePrivileged(J)||this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[J])||this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[J])||this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[J])],["groups-settings-managers",J=>this.authResolver.isManagerPagePrivileged(J)],["groups-settings-applicationForm",J=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[J])],["groups-settings-notifications",J=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[J])],["groups-settings-relations",J=>this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[J])],["groups-settings-extsources",J=>this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[J])],["groups-settings-expiration",J=>(this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(J.id,fe.r.GROUP_DEF_EXPIRATION_RULES).subscribe({next:()=>{},error:()=>{this.notificator.showRouteError(),this.router.navigate(["/notAuthorized"],{queryParamsHandling:"preserve"})}}),!0)],["resources",J=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[J])],["resources-groups",J=>this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[J])],["resources-services",J=>this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[J])],["resources-members",J=>this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[J])],["resources-tags",J=>this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[J])],["resources-attributes",J=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[J])],["resources-settings",J=>this.authResolver.isManagerPagePrivileged(J)],["resources-settings-managers",J=>this.authResolver.isManagerPagePrivileged(J)],["resources-settings-bans",J=>this.authResolver.isAuthorized("getBansForResource_int_policy",[J])],["facilities",J=>this.authResolver.isAuthorized("getFacilityById_int_policy",[J])],["facilities-resources",J=>this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[J])],["facilities-allowed-users",J=>this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[J])],["facilities-allowed-groups",J=>this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[J])],["facilities-services-status",J=>this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[J])],["services-status",J=>this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[J])],["facilities-services-destinations",J=>this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[J])],["facilities-hosts",()=>this.authResolver.isFacilityAdmin()],["facilities-attributes",J=>this.authResolver.isAuthorized("getFacilityById_int_policy",[J])],["facilities-settings",J=>this.authResolver.isAuthorized("getOwners_Facility_policy",[J])||this.authResolver.isManagerPagePrivileged(J)||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[J])||this.authResolver.isAuthorized("getBansForFacility_int_policy",[J])],["facilities-settings-owners",J=>this.authResolver.isAuthorized("getOwners_Facility_policy",[J])],["facilities-settings-managers",J=>this.authResolver.isManagerPagePrivileged(J)],["facilities-settings-security-teams",J=>this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[J])],["facilities-settings-blacklist",J=>this.authResolver.isAuthorized("getBansForFacility_int_policy",[J])],["facilities-settings-bans",J=>this.authResolver.isAuthorized("getBansForUser_int_policy",[J])]])}canNavigate(s,l){if(s.startsWith("admin")||s.startsWith("identities"))return this.authResolver.isPerunAdminOrObserver();if("facilities"===s&&-1===l.id)return this.authResolver.canManageFacilities();const d=this.routePolicies.get(s);return!d||d(l)}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(b),A.LFG(M.H8),A.LFG(k),A.LFG(le),A.LFG(v.F0))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var u=p(54004),_=p(4707);let E=(()=>{class n{constructor(s,l){this.attributesManager=s,this.authResolver=l,this.roleWithObjects$=new _.t(1),(0,Fe.of)(this.authResolver.getAllRules()).pipe((0,u.U)(d=>d.filter(c=>c.assignableToAttributes)),(0,Be.w)(d=>{const c=new Map;return d.map(S=>c.set(S.roleName,["None",...Object.keys(S.assignedObjects)])),(0,Fe.of)(new Map([...c.entries()].sort()))})).subscribe(this.roleWithObjects$)}getRoles(){return(0,Fe.of)(this.authResolver.getAllRules().filter(s=>s.assignableToAttributes))}getObjects(s){return this.roleWithObjects$.pipe((0,Be.w)(l=>(0,Fe.of)(l.get(s))))}filterNullInPolicy(){return function(s){return s.pipe((0,u.U)(l=>(l.forEach(d=>d.policies=d.policies.filter(c=>null!==c.role&&null!==c.object)),l)))}}updateAttributeAction(s,l,d,c){return void 0!==s&&s!==l?this.attributesManager.setAttributeActionCriticality(d,c,s):(0,Fe.of)(void 0)}addAttributeId(){return function(s){return s.pipe((0,u.U)(([l,d])=>(d.forEach(c=>c.attributeId=l),d)))}}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(M.H8),A.LFG(b))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var h=p(36895);let a=(()=>{class n{constructor(){this.getDataForColumn=(s,l,d)=>{switch(l){case"id":return s.id.toString();case"vo":return d.get(s.voId);case"name":return s.name;case"description":return s.description;case"expiration":{const c=(0,R.x2)(s);return(0,R.sG)(c)}case"recent":return"";case"status":return s.status;case"uuid":return s.uuid;default:return s[l]}},this.getSortDataForColumn=(s,l,d,c)=>{switch(l){case"id":return s.id.toString();case"vo":return d.get(s.voId);case"name":return s.name;case"description":return s.description;case"expiration":{const S=(0,R.x2)(s);return S&&"never"!==S.toLowerCase()?(0,h.p6)(S,"yyyy.MM.dd","en"):S}case"recent":return c&&c.includes(s.id)?"#".repeat(c.indexOf(s.id)):s.name;case"status":return s.status;default:return s[l]}}}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),i=(()=>{class n{constructor(s,l){this.guiAuthResolver=s,this.authzResolver=l}findSponsorsAuth(s){const l=[this.guiAuthResolver.getRuleForRole("SPONSOR")],d=new Map;return this.guiAuthResolver.setRolesAuthorization(l,s,d),d.get(l[0].roleName).readAuth}getSponsors(s){const l=[fe.r.USER_DEF_PREFERRED_MAIL];return new z.y(d=>{this.authzResolver.getAuthzRichAdmins(m.u.SPONSOR,s,"Vo",l,!1,!1).subscribe(c=>{d.next(c),d.complete()})})}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(b),A.LFG(M.Ct))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),t=(()=>{class n{prepareRoles(s,l){const d=new Map;return l.forEach(c=>{const S=new Map;Object.keys(s[c]).forEach(ht=>{S.set(ht,s[c][ht])}),d.set(c,S)}),d}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})()},64080:(Xe,ue,p)=>{"use strict";p.d(ue,{r:()=>e});let e=(()=>{class A{}return A.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",A.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",A.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",A.MEMBER_GROUP_STATUS_INDIRECT="urn:perun:member_group:attribute-def:virt:groupStatusIndirect",A.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",A.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",A.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",A.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",A.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",A.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",A.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",A.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",A.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",A.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",A.USER_DEF_CERTIFICATES="urn:perun:user:attribute-def:def:userCertificates",A.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",A.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",A.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",A.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",A.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",A.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",A.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",A.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",A.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",A.GROUP_SYNC_INTERVAL="urn:perun:group:attribute-def:def:synchronizationInterval",A.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",A.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",A.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",A.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",A.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",A})()},9244:(Xe,ue,p)=>{"use strict";p.d(ue,{dN:()=>w,Je:()=>v,f7:()=>R.f7,l9:()=>B.l,sF:()=>R.sF,XI:()=>R.XI,Xd:()=>R.Xd,aC:()=>R.aC,fx:()=>R.fx,dv:()=>R.dv,i5:()=>R.i5,Sd:()=>R.Sd,pR:()=>R.pR,ys:()=>R.ys,O6:()=>R.O6,B2:()=>R.B2,mH:()=>R.mH,MX:()=>R.MX,cT:()=>R.cT,oU:()=>R.oU,IL:()=>R.IL,Jc:()=>R.Jc,Xn:()=>R.Xn,kZ:()=>R.kZ,v$:()=>R.v$,x2:()=>R.x2,vL:()=>R.vL,j4:()=>R.j4,jh:()=>R.jh,bx:()=>R.bx,im:()=>R.im,zr:()=>R.zr,Hm:()=>R.Hm,Cz:()=>R.Cz,sG:()=>R.sG,g$:()=>R.g$,bD:()=>R.bD,lt:()=>R.lt,Oe:()=>R.Oe,hu:()=>R.hu,Gw:()=>R.Gw,O5:()=>R.O5,te:()=>R.te,kN:()=>R.kN,$0:()=>R.$0,OV:()=>R.OV});var e=p(98739),A=p(28255),C=p(97392),M=p(4859),m=p(89383),b=p(36895),D=p(94650);let v=(()=>{class L{}return L.\u0275fac=function(q){return new(q||L)},L.\u0275mod=D.oAB({type:L}),L.\u0275inj=D.cJS({imports:[e.TU,A.Tx,C.Ps,M.ot,m.aw,b.ez]}),L})();var R=p(17218),B=p(18750);class w{static passwordMatchValidator(O){const q=O.get("passwordCtrl").value,ee=O.get("passwordAgainCtrl").value;return O.get("passwordAgainCtrl").setErrors(q!==ee?{noPasswordMatch:!0}:null),null}static patternValidator(O){return q=>{if(!q.value)return null;let ee=0;for(const z of O)ee+=z.test(q.value)?1:0;return ee>=3?null:{isWeak:!0}}}}},17218:(Xe,ue,p)=>{"use strict";p.d(ue,{$0:()=>w,B2:()=>v,Cz:()=>z,Gw:()=>ot,Hm:()=>de,IL:()=>he,Jc:()=>Ye,MX:()=>ve,O5:()=>u,O6:()=>ye,OV:()=>ge,Oe:()=>xe,Sd:()=>X,XI:()=>te,Xd:()=>Se,Xn:()=>Ae,aC:()=>_e,bD:()=>q,bx:()=>r,cT:()=>nt,dv:()=>Z,f7:()=>D,fx:()=>Ne,g$:()=>R,hu:()=>ee,i5:()=>N,im:()=>_,j4:()=>F,jh:()=>fe,kN:()=>B,kZ:()=>be,lt:()=>L,mH:()=>Ce,oU:()=>De,pR:()=>vt,sF:()=>V,sG:()=>ut,te:()=>Te,v$:()=>Be,vL:()=>W,x2:()=>Fe,ys:()=>pe,zr:()=>E});var e=p(15861),A=p(65412),C=p(36895),M=p(94327),b=p(64080);const D=[5,10,25,100],v=/^(([^<>+()[\]\\.,;:\s@"-#$%&=]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]+))$/;function R(h){let a="";return h?.userAttributes.forEach(i=>{"preferredMail"===i.friendlyName&&(a=i.value)}),a&&0===a.length&&null!==h.memberAttributes&&h.memberAttributes.forEach(i=>{"mail"===i.friendlyName&&null!==i.value&&(a=i.value)}),a}function B(h){let a="";return h&&h.userAttributes.forEach(i=>{"preferredMail"===i.friendlyName&&(a=i.value)}),a}function w(h){let a="";return!!h&&!!h.userAttributes&&h.userAttributes.filter(i=>"login-namespace"===i.baseFriendlyName).filter(i=>null!==i.value).forEach(i=>{a=a.concat(i.friendlyNameParameter,": ",i.value,", ")}),a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function L(h){let a="";return!!h&&!!h.userAttributes&&h.userAttributes.filter(i=>"login-namespace"===i.baseFriendlyName).filter(i=>null!==i.value).forEach(i=>{a=a.concat(i.friendlyNameParameter,": ",i.value,", ")}),a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function q(h){let a="";return null!==h.titleBefore&&(a+=h.titleBefore+" "),null!==h.firstName&&(a+=h.firstName+" "),null!==h.middleName&&(a+=h.middleName+" "),null!==h.lastName&&(a+=h.lastName+" "),null!==h.titleAfter&&(a+=h.titleAfter+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function ee(h){let a="";return null!==h.firstName&&(a+=h.firstName+" "),null!==h.middleName&&(a+=h.middleName+" "),null!==h.lastName&&(a+=h.lastName+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function z(h){let a="";return h.split(/(?=[A-Z])/g).forEach(t=>{a=a.concat(t.toLowerCase()),a=a.concat(" ")}),a=a.charAt(0).toUpperCase()+a.slice(1,a.length-1),a}function Te(h){let a="";for(const i of h)"technical"===i.type&&(a+=i.name+", ");return a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function pe(h,a){return Le.apply(this,arguments)}function Le(){return(Le=(0,e.Z)(function*(h,a){yield T(h),a()})).apply(this,arguments)}function T(h){return new Promise(a=>setTimeout(a,h))}function W(h){return JSON.parse(localStorage.getItem(h))||[]}function F(h){return JSON.parse(localStorage.getItem(h))||[]}function V(h,a){if(null===localStorage.getItem(h)){const i=[];i.unshift(a.id),localStorage.setItem(h,JSON.stringify(i))}else{const i=JSON.parse(localStorage.getItem(h)),t=function Ee(h,a){for(let i=0;i0&&i.splice(t,1),0!==t&&i.unshift(a.id),i.length>5&&i.pop(),localStorage.setItem(h,JSON.stringify(i))}}function te(h,a){if(null===localStorage.getItem("recent")){let i;i="Group"===h.beanName?[{id:h.id,name:h.shortName,fullName:h.name,type:h.beanName,voId:h.voId,voName:a}]:[{id:h.id,name:h.name,type:h.beanName,voId:h.voId}],localStorage.setItem("recent",JSON.stringify(i))}else{const i=JSON.parse(localStorage.getItem("recent"));let t;t="Group"===h.beanName?{id:h.id,name:h.shortName,fullName:h.name,type:h.beanName,voId:h.voId,voName:a}:{id:h.id,name:h.name,type:h.beanName,voId:h.voId};const n=function Q(h,a){for(let i=0;i0&&i.splice(n,1),0!==n&&i.unshift(t),i.length>5&&i.pop(),localStorage.setItem("recent",JSON.stringify(i))}}function ge(h){let a="";return h&&h.userAttributes.forEach(i=>{"organization"===i.friendlyName&&(a=i.value)}),a}function ve(h){return h.filter(a=>!a.namespace.includes("def:core"))}function De(h,a){const i=a.find(t=>t.id===h);return i?i.parentGroupId?De(i.parentGroupId,a).concat(i):[i]:[]}function he(h,a){for(const i of h)if(i.namespace+":"+i.friendlyName===a)return i;return null}function Ye(h){return null!=h.attributes["urn:perun:member:attribute-def:def:mail"]?h.attributes["urn:perun:member:attribute-def:def:mail"]:null!=h.attributes["urn:perun:user:attribute-def:def:preferredMail"]?h.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function Be(h){return h.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function se(h){if(h.includes("/CN=")){const a=h.split("/");for(const i of a)if(i.startsWith("CN="))return le(i.substring(3))}return h}(h.userExtSource.extSource.name):h.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function k(h){switch(h){case"https://idp.upce.cz/idp/shibboleth":return"University in Pardubice";case"https://idp.slu.cz/idp/shibboleth":return"University in Opava";case"https://login.feld.cvut.cz/idp/shibboleth":return"Faculty of Electrical Engineering, Czech Technical University In Prague";case"https://www.vutbr.cz/SSO/saml2/idp":return"Brno University of Technology";case"https://shibboleth.nkp.cz/idp/shibboleth":return"The National Library of the Czech Republic";case"https://idp2.civ.cvut.cz/idp/shibboleth":return"Czech Technical University In Prague";case"https://shibbo.tul.cz/idp/shibboleth":return"Technical University of Liberec";case"https://idp.mendelu.cz/idp/shibboleth":return"Mendel University in Brno";case"https://cas.cuni.cz/idp/shibboleth":return"Charles University in Prague";case"https://wsso.vscht.cz/idp/shibboleth":return"Institute of Chemical Technology Prague";case"https://idp.vsb.cz/idp/shibboleth":return"VSB \u2013 Technical University of Ostrava";case"https://whoami.cesnet.cz/idp/shibboleth":return"CESNET";case"https://helium.jcu.cz/idp/shibboleth":return"University of South Bohemia";case"https://idp.ujep.cz/idp/shibboleth":return"Jan Evangelista Purkyne University in Usti nad Labem";case"https://idp.amu.cz/idp/shibboleth":return"Academy of Performing Arts in Prague";case"https://idp.lib.cas.cz/idp/shibboleth":return"Academy of Sciences Library";case"https://shibboleth.mzk.cz/simplesaml/metadata.xml":return"Moravian Library";case"https://idp2.ics.muni.cz/idp/shibboleth":return"Masaryk University";case"https://idp.upol.cz/idp/shibboleth":return"Palacky University, Olomouc";case"https://idp.fnplzen.cz/idp/shibboleth":return"FN Plzen";case"https://id.vse.cz/idp/shibboleth":return"University of Economics, Prague";case"https://shib.zcu.cz/idp/shibboleth":return"University of West Bohemia";case"https://idptoo.osu.cz/simplesaml/saml2/idp/metadata.php":return"University of Ostrava";case"https://login.ics.muni.cz/idp/shibboleth":return"MetaCentrum";case"https://idp.hostel.eduid.cz/idp/shibboleth":return"eduID.cz Hostel";case"https://shibboleth.techlib.cz/idp/shibboleth":return"National Library of Technology";case"https://eduid.jamu.cz/idp/shibboleth":return"Janacek Academy of Music and Performing Arts in Brno";case"https://marisa.uochb.cas.cz/simplesaml/saml2/idp/metadata.php":return"Institute of Organic Chemistry and Biochemistry AS CR";case"https://shibboleth.utb.cz/idp/shibboleth":return"Tomas Bata University in Zlin";case"https://engine.elixir-czech.org/authentication/idp/metadata":case"@elixir-europe.org":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":case"@mojeid.extidp.cesnet.cz":return"MojeID";case"https://www.egi.eu/idp/shibboleth":return"EGI SSO";case"@google.extidp.cesnet.cz":return"Google";case"@facebook.extidp.cesnet.cz":return"Facebook";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return h}}(h.userExtSource.extSource.name):h.userExtSource.extSource.name}function le(h){return decodeURIComponent(h.replace(/\\x/g,"%"))}function N(h=["en","cs"]){const a={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{},htmlMessage:{}};return h.forEach(i=>{a.message[i]={locale:i,htmlFormat:!1,subject:"",text:""},a.htmlMessage[i]={locale:i,htmlFormat:!0,subject:"",text:""}}),a}function be(){const h=new A.vA;return h.disableClose=!0,h.autoFocus=!1,h}function Z(h){const a={applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null};for(const i of h)a.i18n[i]={locale:i,errorMessage:"",help:"",label:"",options:""};return a}function de(h){return"virt"===h.namespace.split(":")[4]}function xe(h,a){return"valid"!==h.toLowerCase()||a&&"valid"!==h.toLowerCase()?h:"ACTIVE"}function ot(h){let a="";return h?.memberAttributes.forEach(i=>{"organization"===i.friendlyName&&null!==i.value&&(a=i.value)}),0===a.length&&h?.userAttributes.forEach(i=>{"organization"===i.friendlyName&&(a=i.value)}),a}function Fe(h){return h.attributes.find(i=>"groupMembershipExpiration"===i.baseFriendlyName)?.value??"Never"}function ut(h){return h&&"never"!==h.toLowerCase()?(0,C.p6)(h,"d.M.yyyy","en"):h}const tt=new Intl.Collator("cs",{numeric:!0});function vt(h,a,i){const t=a.active,n=a.direction;return t&&""!==n?h.sort((o,s)=>{const l=i(o,t),d=i(s,t);return tt.compare(l,d)*("asc"===n?1:-1)}):h}function X(h,a,i,t,n){a=a.toLowerCase();let o="";return i.forEach(s=>{o+=";"+t(h,s)}),n&&(o+=";"+t(h,"uuid")),o.toLowerCase().includes(a)}function nt(h,a){let i="";return h?.forEach(t=>{t.friendlyName===a&&(i=t.value)}),i}function Ae(h,a,i){const t=[],n=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(o=>!n.includes(o)),h.forEach(o=>{const s={};a.forEach(l=>{s[l]=(i(o,l)??"").split('"').join("''").trim()}),t.push(s)}),t}function ye(h,a="csv",i="export"){if("csv"===a){const t=(d,c)=>null===c?"":c,n=Object.keys(h[0]),o=h.map(d=>n.map(c=>JSON.stringify(d[c],t)).join(","));o.unshift(n.join(",").split(" ").join("_").split('"').join("''"));const s=o.join("\r\n"),l=new Blob([s],{type:"text/csv"});(0,M.saveAs)(l,`${i}.${a}`)}}function _e(h,a){return h.name.toLowerCase()>a.name.toLowerCase()?1:h.name.toLowerCase()===a.name.toLowerCase()?0:-1}function Se(h,a){return h.displayName.toLowerCase()>a.displayName.toLowerCase()?1:h.displayName.toLowerCase()===a.displayName.toLowerCase()?0:-1}function Ne(h,a){let i,t;return h.user?(i=h.user.lastName?h.user.lastName:h.user.firstName??"",t=a.user.lastName?a.user.lastName:a.user.firstName??""):(i=h.lastName?h.lastName:h.firstName??"",t=a.lastName?a.lastName:a.firstName??""),i>t?1:i===t?0:-1}function Ce(h,a,i=[]){h.enable(),h.clearValidators(),h.clearAsyncValidators(),h.setValidators(a),h.setAsyncValidators(i),h.updateValueAndValidity()}function fe(h,a){return!!h&&h.some(i=>i.namespace+":"+i.friendlyName===a&&null!==i.value&&"true"===String(i.value))}function r(h){return fe(h.attributes,b.r.GROUP_SYNC_ENABLED)||fe(h.attributes,b.r.GROUP_STRUCTURE_SYNC_ENABLED)}function u(h,a){const i=a.split("&");for(const t of i){const[n,o]=t.split("=");if(n.includes(h))return o}return""}function _(h){if("INDIRECT"===h.membershipType)return!0;const a=h.memberAttributes?.find(i=>"isLifecycleAlterable"===i.friendlyName);return!!a&&!a.value}function E(h){if("INDIRECT"===h.membershipType)return"INDIRECT";const a=h.memberAttributes?.find(i=>"isLifecycleAlterable"===i.friendlyName);return a?a.value?"DIRECT":"UNALTERABLE":"UNKNOWN"}},18750:(Xe,ue,p)=>{"use strict";p.d(ue,{l:()=>z});var e=p(94650),A=p(98739),C=p(17218),M=p(10036),m=p(36895),b=p(28255),D=p(97392),v=p(4859),R=p(89383);function B(ie,Te){if(1&ie){const pe=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(pe);const T=e.oxw();return e.KtG(T.exportAllData.emit("csv"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&ie&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let w=(()=>{class ie{constructor(){this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe}}return ie.\u0275fac=function(pe){return new(pe||ie)},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(pe,Le){if(1&pe&&(e.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,2)(6,"button",3),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"mat-menu",null,4)(11,"button",3),e._uU(12,"Csv"),e.qZA()(),e.TgZ(13,"mat-menu",5,6)(15,"button",7),e.NdJ("click",function(){return Le.exportDisplayedData.emit("csv")}),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.YNc(18,B,3,3,"button",8),e.qZA()()),2&pe){const T=e.MAs(5),W=e.MAs(10),F=e.MAs(14);e.xp6(1),e.Q6J("matMenuTriggerFor",T),e.xp6(5),e.Q6J("matMenuTriggerFor",W),e.xp6(1),e.hij(" ",e.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),e.xp6(4),e.Q6J("matMenuTriggerFor",F),e.xp6(5),e.hij(" ",e.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),e.xp6(2),e.Q6J("ngIf",Le.allowExportAll)}},dependencies:[b.VK,b.OP,b.p6,D.Hw,v.lW,m.O5,R.X$]}),ie})();const L=["topNav"];function O(ie,Te){if(1&ie){const pe=e.EpF();e.TgZ(0,"perun-web-apps-table-options",7),e.NdJ("exportDisplayedData",function(T){e.CHM(pe);const W=e.oxw();return e.KtG(W.exportDisplayedData.emit(T))})("exportAllData",function(T){e.CHM(pe);const W=e.oxw();return e.KtG(W.exportAllData.emit(T))}),e.qZA()}if(2&ie){const pe=e.oxw();e.Q6J("allowExportAll",pe.allowExportAll)}}function q(ie,Te){if(1&ie){const pe=e.EpF();e.TgZ(0,"perun-web-apps-table-options",7),e.NdJ("exportDisplayedData",function(T){e.CHM(pe);const W=e.oxw();return e.KtG(W.exportDisplayedData.emit(T))})("exportAllData",function(T){e.CHM(pe);const W=e.oxw();return e.KtG(W.exportAllData.emit(T))}),e.qZA()}if(2&ie){const pe=e.oxw();e.Q6J("allowExportAll",pe.allowExportAll)}}const ee=["*"];let z=(()=>{class ie{constructor(pe){this.tableConfigService=pe,this.hideExport=!1,this.pageSizeOptions=C.f7,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe,this.pageSize=5}set matPaginator(pe){this.paginator=pe}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5),this.paginator._changePageSize(this.pageSize)}pageChangedTop(pe){this.pageSize=pe.pageSize,this.tableConfigService.setTablePageSize(this.tableId,pe.pageSize)}pageChangedBottom(pe){this.paginator.pageSize=pe.pageSize,this.paginator.pageIndex=pe.pageIndex,this.paginator.page.emit(pe),this.pageSize=pe.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,pe.pageSize),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return ie.\u0275fac=function(pe){return new(pe||ie)(e.Y36(M.dB))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(pe,Le){if(1&pe&&(e.Gf(L,5),e.Gf(A.NW,7)),2&pe){let T;e.iGM(T=e.CRH())&&(Le.topNav=T.first),e.iGM(T=e.CRH())&&(Le.matPaginator=T.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:ee,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(pe,Le){1&pe&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),e.NdJ("page",function(W){return Le.pageChangedTop(W)}),e.qZA(),e.YNc(4,O,1,1,"perun-web-apps-table-options",4),e.qZA(),e.TgZ(5,"div",5),e.Hsn(6),e.qZA(),e.TgZ(7,"div",1)(8,"mat-paginator",6),e.NdJ("page",function(W){return Le.pageChangedBottom(W)}),e.qZA(),e.YNc(9,q,1,1,"perun-web-apps-table-options",4),e.qZA()()),2&pe&&(e.xp6(3),e.Q6J("length",Le.dataLength)("pageSizeOptions",Le.pageSizeOptions)("pageSize",Le.pageSize),e.xp6(1),e.Q6J("ngIf",!Le.hideExport),e.xp6(4),e.Q6J("length",Le.paginator.length)("pageIndex",Le.paginator.pageIndex)("pageSizeOptions",Le.paginator.pageSizeOptions)("pageSize",Le.paginator.pageSize),e.xp6(1),e.Q6J("ngIf",!Le.hideExport))},dependencies:[A.NW,m.O5,w]}),ie})()},98380:(Xe,ue,p)=>{"use strict";p.d(ue,{w:()=>R});var e=p(94650),A=p(97392),C=p(36895);function M(B,w){1&B&&(e.TgZ(0,"mat-icon",2),e._uU(1," info "),e.qZA())}function m(B,w){1&B&&(e.TgZ(0,"mat-icon",2),e._uU(1," warning "),e.qZA())}function b(B,w){1&B&&(e.TgZ(0,"mat-icon",2),e._uU(1," dangerous "),e.qZA())}function D(B,w){1&B&&(e.TgZ(0,"mat-icon",2),e._uU(1," check_circle "),e.qZA())}const v=["*"];let R=(()=>{class B{}return B.\u0275fac=function(L){return new(L||B)},B.\u0275cmp=e.Xpm({type:B,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:v,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(L,O){1&L&&(e.F$t(),e.TgZ(0,"div",0),e.YNc(1,M,2,0,"mat-icon",1),e.YNc(2,m,2,0,"mat-icon",1),e.YNc(3,b,2,0,"mat-icon",1),e.YNc(4,D,2,0,"mat-icon",1),e.Hsn(5),e.qZA()),2&L&&(e.ekj("warn-alert","warn"===O.alert_type)("error-alert","error"===O.alert_type)("success-alert","success"===O.alert_type)("info-alert","info"===O.alert_type),e.xp6(1),e.Q6J("ngIf","info"===O.alert_type),e.xp6(1),e.Q6J("ngIf","warn"===O.alert_type),e.xp6(1),e.Q6J("ngIf","error"===O.alert_type),e.xp6(1),e.Q6J("ngIf","success"===O.alert_type))},dependencies:[A.Hw,C.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),B})()},63189:(Xe,ue,p)=>{"use strict";p.d(ue,{r:()=>M});var e=p(97392),A=p(36895),C=p(94650);let M=(()=>{class m{}return m.\u0275fac=function(D){return new(D||m)},m.\u0275mod=C.oAB({type:m}),m.\u0275inj=C.cJS({imports:[e.Ps,A.ez]}),m})()},60900:(Xe,ue,p)=>{"use strict";p.d(ue,{C:()=>Ne});var e=p(36895),A=p(4859),C=p(73546),M=p(56709),m=p(65412),b=p(44850),D=p(37084),v=p(59549),R=p(94650),B=p(3238);let Ye=(()=>{class Ce{}return Ce.\u0275fac=function(r){return new(r||Ce)},Ce.\u0275mod=R.oAB({type:Ce}),Ce.\u0275inj=R.cJS({imports:[B.uc,B.BQ,B.uc,B.BQ]}),Ce})();var se=p(97392),le=p(284),k=p(51572),N=p(86257),be=p(30671),Z=p(67376),de=p(24006),xe=p(99602),ot=p(23267),Fe=p(96338),ut=p(28255),tt=p(83683),vt=p(96308),X=p(98739),nt=p(10266),Ae=p(84385),ye=p(3848),_e=p(90455),Se=p(77331);let Ne=(()=>{class Ce{}return Ce.\u0275fac=function(r){return new(r||Ce)},Ce.\u0275mod=R.oAB({type:Ce}),Ce.\u0275inj=R.cJS({imports:[e.ez,C.QW,b.t,D.To,A.ot,Ye,M.p9,se.Ps,be.p0,m.Is,k.Cq,v.lN,le.c,Z.Cl,de.u5,de.UX,N.T5,xe.FA,B.XK,ot.SJ,Fe.ie,ut.Tx,tt.g0,vt.JX,X.TU,nt.AV,Ae.LD,B.si,be.p0,_e.rP,Se.Hi,C.QW,b.t,D.To,A.ot,Ye,M.p9,se.Ps,be.p0,m.Is,k.Cq,v.lN,le.c,Z.Cl,de.u5,de.UX,N.T5,xe.FA,B.XK,ot.SJ,Fe.ie,ut.Tx,tt.g0,vt.JX,X.TU,nt.AV,Ae.LD,B.si,ye.Nh,_e.rP,Se.Hi]}),Ce})()},71345:Xe=>{var M=.1,m="function"==typeof Float32Array;function b(q,ee){return 1-3*ee+3*q}function D(q,ee){return 3*ee-6*q}function v(q){return 3*q}function R(q,ee,z){return((b(ee,z)*q+D(ee,z))*q+v(ee))*q}function B(q,ee,z){return 3*b(ee,z)*q*q+2*D(ee,z)*q+v(ee)}function O(q){return q}Xe.exports=function(ee,z,ie,Te){if(!(0<=ee&&ee<=1&&0<=ie&&ie<=1))throw new Error("bezier x values must be in [0, 1] range");if(ee===z&&ie===Te)return O;for(var pe=m?new Float32Array(11):new Array(11),Le=0;Le<11;++Le)pe[Le]=R(Le*M,ee,ie);return function(F){return 0===F?0:1===F?1:R(function T(W){for(var F=0,V=1;10!==V&&pe[V]<=W;++V)F+=M;--V;var Ee=F+(W-pe[V])/(pe[V+1]-pe[V])*M,ge=B(Ee,ee,ie);return ge>=.001?function L(q,ee,z,ie){for(var Te=0;Te<4;++Te){var pe=B(ee,z,ie);if(0===pe)return ee;ee-=(R(ee,z,ie)-q)/pe}return ee}(W,Ee,ee,ie):0===ge?Ee:function w(q,ee,z,ie,Te){var pe,Le,T=0;do{(pe=R(Le=ee+(z-ee)/2,ie,Te)-q)>0?z=Le:ee=Le}while(Math.abs(pe)>1e-7&&++T<10);return Le}(W,F,F+M,ee,ie)}(F),z,Te)}}},1302:function(Xe,ue,p){var e;!function(A,C){var M={};!function(A){"use strict";A.__esModule=!0,A.digestLength=32,A.blockSize=64;var C=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function M(O,q,ee,z,ie){for(var Te,pe,Le,T,W,F,V,te,Q,Ee,ge,ve,De;ie>=64;){for(Te=q[0],pe=q[1],Le=q[2],T=q[3],W=q[4],F=q[5],V=q[6],te=q[7],Ee=0;Ee<16;Ee++)O[Ee]=(255&ee[ge=z+4*Ee])<<24|(255&ee[ge+1])<<16|(255&ee[ge+2])<<8|255&ee[ge+3];for(Ee=16;Ee<64;Ee++)O[Ee]=((ve=((Q=O[Ee-2])>>>17|Q<<15)^(Q>>>19|Q<<13)^Q>>>10)+O[Ee-7]|0)+((De=((Q=O[Ee-15])>>>7|Q<<25)^(Q>>>18|Q<<14)^Q>>>3)+O[Ee-16]|0);for(Ee=0;Ee<64;Ee++)ve=(((W>>>6|W<<26)^(W>>>11|W<<21)^(W>>>25|W<<7))+(W&F^~W&V)|0)+(te+(C[Ee]+O[Ee]|0)|0)|0,De=((Te>>>2|Te<<30)^(Te>>>13|Te<<19)^(Te>>>22|Te<<10))+(Te&pe^Te&Le^pe&Le)|0,te=V,V=F,F=W,W=T+ve|0,T=Le,Le=pe,pe=Te,Te=ve+De|0;q[0]+=Te,q[1]+=pe,q[2]+=Le,q[3]+=T,q[4]+=W,q[5]+=F,q[6]+=V,q[7]+=te,z+=64,ie-=64}return z}var m=function(){function O(){this.digestLength=A.digestLength,this.blockSize=A.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return O.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},O.prototype.clean=function(){for(var q=0;q0){for(;this.bufferLength<64&&ee>0;)this.buffer[this.bufferLength++]=q[z++],ee--;64===this.bufferLength&&(M(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ee>=64&&(z=M(this.temp,this.state,q,z,ee),ee%=64);ee>0;)this.buffer[this.bufferLength++]=q[z++],ee--;return this},O.prototype.finish=function(q){if(!this.finished){var ee=this.bytesHashed,z=this.bufferLength,ie=ee/536870912|0,Te=ee<<3,pe=ee%64<56?64:128;this.buffer[z]=128;for(var Le=z+1;Le>>24&255,this.buffer[pe-7]=ie>>>16&255,this.buffer[pe-6]=ie>>>8&255,this.buffer[pe-5]=ie>>>0&255,this.buffer[pe-4]=Te>>>24&255,this.buffer[pe-3]=Te>>>16&255,this.buffer[pe-2]=Te>>>8&255,this.buffer[pe-1]=Te>>>0&255,M(this.temp,this.state,this.buffer,0,pe),this.finished=!0}for(Le=0;Le<8;Le++)q[4*Le+0]=this.state[Le]>>>24&255,q[4*Le+1]=this.state[Le]>>>16&255,q[4*Le+2]=this.state[Le]>>>8&255,q[4*Le+3]=this.state[Le]>>>0&255;return this},O.prototype.digest=function(){var q=new Uint8Array(this.digestLength);return this.finish(q),q},O.prototype._saveState=function(q){for(var ee=0;eethis.blockSize)(new m).update(q).finish(ee).clean();else for(var z=0;z1&&q.update(O),ee&&q.update(ee),q.update(z),q.finish(O),z[0]++}A.HMAC=b,A.hash=D,A.default=D,A.hmac=v;var B=new Uint8Array(A.digestLength);A.hkdf=function w(O,q,ee,z){void 0===q&&(q=B),void 0===z&&(z=32);for(var ie=new Uint8Array([1]),Te=v(q,O),pe=new b(Te),Le=new Uint8Array(pe.digestLength),T=Le.length,W=new Uint8Array(z),F=0;F>>24&255,pe[1]=V>>>16&255,pe[2]=V>>>8&255,pe[3]=V>>>0&255,ie.reset(),ie.update(q),ie.update(pe),ie.finish(T);for(var te=0;te=w.status}function b(B){try{B.dispatchEvent(new MouseEvent("click"))}catch{var w=document.createEvent("MouseEvents");w.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),B.dispatchEvent(w)}}var D="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,v=D.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),R=D.saveAs||("object"!=typeof window||window!==D?function(){}:"download"in HTMLAnchorElement.prototype&&!v?function(B,w,L){var O=D.URL||D.webkitURL,q=document.createElement("a");q.download=w=w||B.name||"download",q.rel="noopener","string"==typeof B?(q.href=B,q.origin===location.origin?b(q):m(q.href)?M(B,w,L):b(q,q.target="_blank")):(q.href=O.createObjectURL(B),setTimeout(function(){O.revokeObjectURL(q.href)},4e4),setTimeout(function(){b(q)},0))}:"msSaveOrOpenBlob"in navigator?function(B,w,L){if(w=w||B.name||"download","string"!=typeof B)navigator.msSaveOrOpenBlob(function C(B,w){return typeof w>"u"?w={autoBom:!1}:"object"!=typeof w&&(console.warn("Deprecated: Expected third argument to be a object"),w={autoBom:!w}),w.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(B.type)?new Blob(["\ufeff",B],{type:B.type}):B}(B,L),w);else if(m(B))M(B,w,L);else{var O=document.createElement("a");O.href=B,O.target="_blank",setTimeout(function(){b(O)})}}:function(B,w,L,O){if((O=O||open("","_blank"))&&(O.document.title=O.document.body.innerText="downloading..."),"string"==typeof B)return M(B,w,L);var q="application/octet-stream"===B.type,ee=/constructor/i.test(D.HTMLElement)||D.safari,z=/CriOS\/[\d]+/.test(navigator.userAgent);if((z||q&&ee||v)&&typeof FileReader<"u"){var ie=new FileReader;ie.onloadend=function(){var Le=ie.result;Le=z?Le:Le.replace(/^data:[^;]*;/,"data:attachment/file;"),O?O.location.href=Le:location=Le,O=null},ie.readAsDataURL(B)}else{var Te=D.URL||D.webkitURL,pe=Te.createObjectURL(B);O?O.location=pe:location.href=pe,O=null,setTimeout(function(){Te.revokeObjectURL(pe)},4e4)}});D.saveAs=R.saveAs=R,Xe.exports=R}.apply(ue,[]))&&(Xe.exports=A)},61135:(Xe,ue,p)=>{"use strict";p.d(ue,{X:()=>A});var e=p(77579);class A extends e.x{constructor(M){super(),this._value=M}get value(){return this.getValue()}_subscribe(M){const m=super._subscribe(M);return!m.closed&&M.next(this._value),m}getValue(){const{hasError:M,thrownError:m,_value:b}=this;if(M)throw m;return this._throwIfClosed(),b}next(M){super.next(this._value=M)}}},69751:(Xe,ue,p)=>{"use strict";p.d(ue,{y:()=>v});var e=p(70930),A=p(50727),C=p(48822),M=p(89635),m=p(42416),b=p(30576),D=p(72806);let v=(()=>{class L{constructor(q){q&&(this._subscribe=q)}lift(q){const ee=new L;return ee.source=this,ee.operator=q,ee}subscribe(q,ee,z){const ie=function w(L){return L&&L instanceof e.Lv||function B(L){return L&&(0,b.m)(L.next)&&(0,b.m)(L.error)&&(0,b.m)(L.complete)}(L)&&(0,A.Nn)(L)}(q)?q:new e.Hp(q,ee,z);return(0,D.x)(()=>{const{operator:Te,source:pe}=this;ie.add(Te?Te.call(ie,pe):pe?this._subscribe(ie):this._trySubscribe(ie))}),ie}_trySubscribe(q){try{return this._subscribe(q)}catch(ee){q.error(ee)}}forEach(q,ee){return new(ee=R(ee))((z,ie)=>{const Te=new e.Hp({next:pe=>{try{q(pe)}catch(Le){ie(Le),Te.unsubscribe()}},error:ie,complete:z});this.subscribe(Te)})}_subscribe(q){var ee;return null===(ee=this.source)||void 0===ee?void 0:ee.subscribe(q)}[C.L](){return this}pipe(...q){return(0,M.U)(q)(this)}toPromise(q){return new(q=R(q))((ee,z)=>{let ie;this.subscribe(Te=>ie=Te,Te=>z(Te),()=>ee(ie))})}}return L.create=O=>new L(O),L})();function R(L){var O;return null!==(O=L??m.v.Promise)&&void 0!==O?O:Promise}},4707:(Xe,ue,p)=>{"use strict";p.d(ue,{t:()=>C});var e=p(77579),A=p(26063);class C extends e.x{constructor(m=1/0,b=1/0,D=A.l){super(),this._bufferSize=m,this._windowTime=b,this._timestampProvider=D,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=b===1/0,this._bufferSize=Math.max(1,m),this._windowTime=Math.max(1,b)}next(m){const{isStopped:b,_buffer:D,_infiniteTimeWindow:v,_timestampProvider:R,_windowTime:B}=this;b||(D.push(m),!v&&D.push(R.now()+B)),this._trimBuffer(),super.next(m)}_subscribe(m){this._throwIfClosed(),this._trimBuffer();const b=this._innerSubscribe(m),{_infiniteTimeWindow:D,_buffer:v}=this,R=v.slice();for(let B=0;B{"use strict";p.d(ue,{x:()=>D});var e=p(69751),A=p(50727);const M=(0,p(83888).d)(R=>function(){R(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var m=p(38737),b=p(72806);let D=(()=>{class R extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(w){const L=new v(this,this);return L.operator=w,L}_throwIfClosed(){if(this.closed)throw new M}next(w){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const L of this.currentObservers)L.next(w)}})}error(w){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=w;const{observers:L}=this;for(;L.length;)L.shift().error(w)}})}complete(){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:w}=this;for(;w.length;)w.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var w;return(null===(w=this.observers)||void 0===w?void 0:w.length)>0}_trySubscribe(w){return this._throwIfClosed(),super._trySubscribe(w)}_subscribe(w){return this._throwIfClosed(),this._checkFinalizedStatuses(w),this._innerSubscribe(w)}_innerSubscribe(w){const{hasError:L,isStopped:O,observers:q}=this;return L||O?A.Lc:(this.currentObservers=null,q.push(w),new A.w0(()=>{this.currentObservers=null,(0,m.P)(q,w)}))}_checkFinalizedStatuses(w){const{hasError:L,thrownError:O,isStopped:q}=this;L?w.error(O):q&&w.complete()}asObservable(){const w=new e.y;return w.source=this,w}}return R.create=(B,w)=>new v(B,w),R})();class v extends D{constructor(B,w){super(),this.destination=B,this.source=w}next(B){var w,L;null===(L=null===(w=this.destination)||void 0===w?void 0:w.next)||void 0===L||L.call(w,B)}error(B){var w,L;null===(L=null===(w=this.destination)||void 0===w?void 0:w.error)||void 0===L||L.call(w,B)}complete(){var B,w;null===(w=null===(B=this.destination)||void 0===B?void 0:B.complete)||void 0===w||w.call(B)}_subscribe(B){var w,L;return null!==(L=null===(w=this.source)||void 0===w?void 0:w.subscribe(B))&&void 0!==L?L:A.Lc}}},70930:(Xe,ue,p)=>{"use strict";p.d(ue,{Hp:()=>z,Lv:()=>L});var e=p(30576),A=p(50727),C=p(42416),M=p(87849),m=p(25032);const b=R("C",void 0,void 0);function R(T,W,F){return{kind:T,value:W,error:F}}var B=p(43410),w=p(72806);class L extends A.w0{constructor(W){super(),this.isStopped=!1,W?(this.destination=W,(0,A.Nn)(W)&&W.add(this)):this.destination=Le}static create(W,F,V){return new z(W,F,V)}next(W){this.isStopped?pe(function v(T){return R("N",T,void 0)}(W),this):this._next(W)}error(W){this.isStopped?pe(function D(T){return R("E",void 0,T)}(W),this):(this.isStopped=!0,this._error(W))}complete(){this.isStopped?pe(b,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(W){this.destination.next(W)}_error(W){try{this.destination.error(W)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const O=Function.prototype.bind;function q(T,W){return O.call(T,W)}class ee{constructor(W){this.partialObserver=W}next(W){const{partialObserver:F}=this;if(F.next)try{F.next(W)}catch(V){ie(V)}}error(W){const{partialObserver:F}=this;if(F.error)try{F.error(W)}catch(V){ie(V)}else ie(W)}complete(){const{partialObserver:W}=this;if(W.complete)try{W.complete()}catch(F){ie(F)}}}class z extends L{constructor(W,F,V){let te;if(super(),(0,e.m)(W)||!W)te={next:W??void 0,error:F??void 0,complete:V??void 0};else{let Q;this&&C.v.useDeprecatedNextContext?(Q=Object.create(W),Q.unsubscribe=()=>this.unsubscribe(),te={next:W.next&&q(W.next,Q),error:W.error&&q(W.error,Q),complete:W.complete&&q(W.complete,Q)}):te=W}this.destination=new ee(te)}}function ie(T){C.v.useDeprecatedSynchronousErrorHandling?(0,w.O)(T):(0,M.h)(T)}function pe(T,W){const{onStoppedNotification:F}=C.v;F&&B.z.setTimeout(()=>F(T,W))}const Le={closed:!0,next:m.Z,error:function Te(T){throw T},complete:m.Z}},50727:(Xe,ue,p)=>{"use strict";p.d(ue,{Lc:()=>b,w0:()=>m,Nn:()=>D});var e=p(30576);const C=(0,p(83888).d)(R=>function(w){R(this),this.message=w?`${w.length} errors occurred during unsubscription:\n${w.map((L,O)=>`${O+1}) ${L.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=w});var M=p(38737);class m{constructor(B){this.initialTeardown=B,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let B;if(!this.closed){this.closed=!0;const{_parentage:w}=this;if(w)if(this._parentage=null,Array.isArray(w))for(const q of w)q.remove(this);else w.remove(this);const{initialTeardown:L}=this;if((0,e.m)(L))try{L()}catch(q){B=q instanceof C?q.errors:[q]}const{_finalizers:O}=this;if(O){this._finalizers=null;for(const q of O)try{v(q)}catch(ee){B=B??[],ee instanceof C?B=[...B,...ee.errors]:B.push(ee)}}if(B)throw new C(B)}}add(B){var w;if(B&&B!==this)if(this.closed)v(B);else{if(B instanceof m){if(B.closed||B._hasParent(this))return;B._addParent(this)}(this._finalizers=null!==(w=this._finalizers)&&void 0!==w?w:[]).push(B)}}_hasParent(B){const{_parentage:w}=this;return w===B||Array.isArray(w)&&w.includes(B)}_addParent(B){const{_parentage:w}=this;this._parentage=Array.isArray(w)?(w.push(B),w):w?[w,B]:B}_removeParent(B){const{_parentage:w}=this;w===B?this._parentage=null:Array.isArray(w)&&(0,M.P)(w,B)}remove(B){const{_finalizers:w}=this;w&&(0,M.P)(w,B),B instanceof m&&B._removeParent(this)}}m.EMPTY=(()=>{const R=new m;return R.closed=!0,R})();const b=m.EMPTY;function D(R){return R instanceof m||R&&"closed"in R&&(0,e.m)(R.remove)&&(0,e.m)(R.add)&&(0,e.m)(R.unsubscribe)}function v(R){(0,e.m)(R)?R():R.unsubscribe()}},42416:(Xe,ue,p)=>{"use strict";p.d(ue,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},83905:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>C});var e=p(86805),A=p(70930);function C(M,m){const b="object"==typeof m;return new Promise((D,v)=>{const R=new A.Hp({next:B=>{D(B),R.unsubscribe()},error:v,complete:()=>{b?D(m.defaultValue):v(new e.K)}});M.subscribe(R)})}},39841:(Xe,ue,p)=>{"use strict";p.d(ue,{a:()=>B});var e=p(69751),A=p(54742),C=p(32076),M=p(44671),m=p(83268),b=p(63269),D=p(31810),v=p(25403),R=p(39672);function B(...O){const q=(0,b.yG)(O),ee=(0,b.jO)(O),{args:z,keys:ie}=(0,A.D)(O);if(0===z.length)return(0,C.D)([],q);const Te=new e.y(function w(O,q,ee=M.y){return z=>{L(q,()=>{const{length:ie}=O,Te=new Array(ie);let pe=ie,Le=ie;for(let T=0;T{const W=(0,C.D)(O[T],q);let F=!1;W.subscribe((0,v.x)(z,V=>{Te[T]=V,F||(F=!0,Le--),Le||z.next(ee(Te.slice()))},()=>{--pe||z.complete()}))},z)},z)}}(z,q,ie?pe=>(0,D.n)(ie,pe):M.y));return ee?Te.pipe((0,m.Z)(ee)):Te}function L(O,q,ee){O?(0,R.f)(ee,O,q):q()}},97272:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>m});var e=p(8189),C=p(63269),M=p(32076);function m(...b){return function A(){return(0,e.J)(1)}()((0,M.D)(b,(0,C.yG)(b)))}},49770:(Xe,ue,p)=>{"use strict";p.d(ue,{P:()=>C});var e=p(69751),A=p(38421);function C(M){return new e.y(m=>{(0,A.Xf)(M()).subscribe(m)})}},60515:(Xe,ue,p)=>{"use strict";p.d(ue,{E:()=>A});const A=new(p(69751).y)(m=>m.complete())},4128:(Xe,ue,p)=>{"use strict";p.d(ue,{D:()=>v});var e=p(69751),A=p(54742),C=p(38421),M=p(63269),m=p(25403),b=p(83268),D=p(31810);function v(...R){const B=(0,M.jO)(R),{args:w,keys:L}=(0,A.D)(R),O=new e.y(q=>{const{length:ee}=w;if(!ee)return void q.complete();const z=new Array(ee);let ie=ee,Te=ee;for(let pe=0;pe{Le||(Le=!0,Te--),z[pe]=T},()=>ie--,void 0,()=>{(!ie||!Le)&&(Te||q.next(L?(0,D.n)(L,z):z),q.complete())}))}});return B?O.pipe((0,b.Z)(B)):O}},32076:(Xe,ue,p)=>{"use strict";p.d(ue,{D:()=>V});var e=p(38421),A=p(39672),C=p(54482),M=p(25403);function m(te,Q=0){return(0,C.e)((Ee,ge)=>{Ee.subscribe((0,M.x)(ge,ve=>(0,A.f)(ge,te,()=>ge.next(ve),Q),()=>(0,A.f)(ge,te,()=>ge.complete(),Q),ve=>(0,A.f)(ge,te,()=>ge.error(ve),Q)))})}function b(te,Q=0){return(0,C.e)((Ee,ge)=>{ge.add(te.schedule(()=>Ee.subscribe(ge),Q))})}var R=p(69751),w=p(2202),L=p(30576);function q(te,Q){if(!te)throw new Error("Iterable cannot be null");return new R.y(Ee=>{(0,A.f)(Ee,Q,()=>{const ge=te[Symbol.asyncIterator]();(0,A.f)(Ee,Q,()=>{ge.next().then(ve=>{ve.done?Ee.complete():Ee.next(ve.value)})},0,!0)})})}var ee=p(93670),z=p(28239),ie=p(81144),Te=p(26495),pe=p(12206),Le=p(44532),T=p(53260);function V(te,Q){return Q?function F(te,Q){if(null!=te){if((0,ee.c)(te))return function D(te,Q){return(0,e.Xf)(te).pipe(b(Q),m(Q))}(te,Q);if((0,ie.z)(te))return function B(te,Q){return new R.y(Ee=>{let ge=0;return Q.schedule(function(){ge===te.length?Ee.complete():(Ee.next(te[ge++]),Ee.closed||this.schedule())})})}(te,Q);if((0,z.t)(te))return function v(te,Q){return(0,e.Xf)(te).pipe(b(Q),m(Q))}(te,Q);if((0,pe.D)(te))return q(te,Q);if((0,Te.T)(te))return function O(te,Q){return new R.y(Ee=>{let ge;return(0,A.f)(Ee,Q,()=>{ge=te[w.h](),(0,A.f)(Ee,Q,()=>{let ve,De;try{({value:ve,done:De}=ge.next())}catch(he){return void Ee.error(he)}De?Ee.complete():Ee.next(ve)},0,!0)}),()=>(0,L.m)(ge?.return)&&ge.return()})}(te,Q);if((0,T.L)(te))return function W(te,Q){return q((0,T.Q)(te),Q)}(te,Q)}throw(0,Le.z)(te)}(te,Q):(0,e.Xf)(te)}},54968:(Xe,ue,p)=>{"use strict";p.d(ue,{R:()=>B});var e=p(38421),A=p(69751),C=p(86099),M=p(81144),m=p(30576),b=p(83268);const D=["addListener","removeListener"],v=["addEventListener","removeEventListener"],R=["on","off"];function B(ee,z,ie,Te){if((0,m.m)(ie)&&(Te=ie,ie=void 0),Te)return B(ee,z,ie).pipe((0,b.Z)(Te));const[pe,Le]=function q(ee){return(0,m.m)(ee.addEventListener)&&(0,m.m)(ee.removeEventListener)}(ee)?v.map(T=>W=>ee[T](z,W,ie)):function L(ee){return(0,m.m)(ee.addListener)&&(0,m.m)(ee.removeListener)}(ee)?D.map(w(ee,z)):function O(ee){return(0,m.m)(ee.on)&&(0,m.m)(ee.off)}(ee)?R.map(w(ee,z)):[];if(!pe&&(0,M.z)(ee))return(0,C.z)(T=>B(T,z,ie))((0,e.Xf)(ee));if(!pe)throw new TypeError("Invalid event target");return new A.y(T=>{const W=(...F)=>T.next(1Le(W)})}function w(ee,z){return ie=>Te=>ee[ie](z,Te)}},48382:(Xe,ue,p)=>{"use strict";p.d(ue,{s:()=>A});var e=p(49770);function A(C,M,m){return(0,e.P)(()=>C()?M:m)}},38421:(Xe,ue,p)=>{"use strict";p.d(ue,{Xf:()=>O});var e=p(70655),A=p(81144),C=p(28239),M=p(69751),m=p(93670),b=p(12206),D=p(44532),v=p(26495),R=p(53260),B=p(30576),w=p(87849),L=p(48822);function O(T){if(T instanceof M.y)return T;if(null!=T){if((0,m.c)(T))return function q(T){return new M.y(W=>{const F=T[L.L]();if((0,B.m)(F.subscribe))return F.subscribe(W);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(T);if((0,A.z)(T))return function ee(T){return new M.y(W=>{for(let F=0;F{T.then(F=>{W.closed||(W.next(F),W.complete())},F=>W.error(F)).then(null,w.h)})}(T);if((0,b.D)(T))return Te(T);if((0,v.T)(T))return function ie(T){return new M.y(W=>{for(const F of T)if(W.next(F),W.closed)return;W.complete()})}(T);if((0,R.L)(T))return function pe(T){return Te((0,R.Q)(T))}(T)}throw(0,D.z)(T)}function Te(T){return new M.y(W=>{(function Le(T,W){var F,V,te,Q;return(0,e.mG)(this,void 0,void 0,function*(){try{for(F=(0,e.KL)(T);!(V=yield F.next()).done;)if(W.next(V.value),W.closed)return}catch(Ee){te={error:Ee}}finally{try{V&&!V.done&&(Q=F.return)&&(yield Q.call(F))}finally{if(te)throw te.error}}W.complete()})})(T,W).catch(F=>W.error(F))})}},17445:(Xe,ue,p)=>{"use strict";p.d(ue,{F:()=>C});var e=p(34986),A=p(82805);function C(M=0,m=e.z){return M<0&&(M=0),(0,A.H)(M,M,m)}},56451:(Xe,ue,p)=>{"use strict";p.d(ue,{T:()=>b});var e=p(8189),A=p(38421),C=p(60515),M=p(63269),m=p(32076);function b(...D){const v=(0,M.yG)(D),R=(0,M._6)(D,1/0),B=D;return B.length?1===B.length?(0,A.Xf)(B[0]):(0,e.J)(R)((0,m.D)(B,v)):C.E}},39646:(Xe,ue,p)=>{"use strict";p.d(ue,{of:()=>C});var e=p(63269),A=p(32076);function C(...M){const m=(0,e.yG)(M);return(0,A.D)(M,m)}},54355:(Xe,ue,p)=>{"use strict";p.d(ue,{S:()=>m});var e=p(69751),A=p(38421),C=p(75797),M=p(25403);function m(...D){return 1===(D=(0,C.k)(D)).length?(0,A.Xf)(D[0]):new e.y(function b(D){return v=>{let R=[];for(let B=0;R&&!v.closed&&B{if(R){for(let L=0;L{"use strict";p.d(ue,{_:()=>C});var e=p(69751),A=p(30576);function C(M,m){const b=(0,A.m)(M)?M:()=>M,D=v=>v.error(b());return new e.y(m?v=>m.schedule(D,0,v):D)}},82805:(Xe,ue,p)=>{"use strict";p.d(ue,{H:()=>m});var e=p(69751),A=p(34986),C=p(93532),M=p(51165);function m(b=0,D,v=A.P){let R=-1;return null!=D&&((0,C.K)(D)?v=D:R=D),new e.y(B=>{let w=(0,M.q)(b)?+b-v.now():b;w<0&&(w=0);let L=0;return v.schedule(function(){B.closed||(B.next(L++),0<=R?this.schedule(void 0,R):B.complete())},w)})}},25403:(Xe,ue,p)=>{"use strict";p.d(ue,{x:()=>A});var e=p(70930);function A(M,m,b,D,v){return new C(M,m,b,D,v)}class C extends e.Lv{constructor(m,b,D,v,R,B){super(m),this.onFinalize=R,this.shouldUnsubscribe=B,this._next=b?function(w){try{b(w)}catch(L){m.error(L)}}:super._next,this._error=v?function(w){try{v(w)}catch(L){m.error(L)}finally{this.unsubscribe()}}:super._error,this._complete=D?function(){try{D()}catch(w){m.error(w)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var m;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:b}=this;super.unsubscribe(),!b&&(null===(m=this.onFinalize)||void 0===m||m.call(this))}}}},23601:(Xe,ue,p)=>{"use strict";p.d(ue,{e:()=>D});var e=p(34986),A=p(54482),C=p(38421),M=p(25403),b=p(82805);function D(v,R=e.z){return function m(v){return(0,A.e)((R,B)=>{let w=!1,L=null,O=null,q=!1;const ee=()=>{if(O?.unsubscribe(),O=null,w){w=!1;const ie=L;L=null,B.next(ie)}q&&B.complete()},z=()=>{O=null,q&&B.complete()};R.subscribe((0,M.x)(B,ie=>{w=!0,L=ie,O||(0,C.Xf)(v(ie)).subscribe(O=(0,M.x)(B,ee,z))},()=>{q=!0,(!w||!O||O.closed)&&B.complete()}))})}(()=>(0,b.H)(v,R))}},70262:(Xe,ue,p)=>{"use strict";p.d(ue,{K:()=>M});var e=p(38421),A=p(25403),C=p(54482);function M(m){return(0,C.e)((b,D)=>{let B,v=null,R=!1;v=b.subscribe((0,A.x)(D,void 0,void 0,w=>{B=(0,e.Xf)(m(w,M(m)(b))),v?(v.unsubscribe(),v=null,B.subscribe(D)):R=!0})),R&&(v.unsubscribe(),v=null,B.subscribe(D))})}},24351:(Xe,ue,p)=>{"use strict";p.d(ue,{b:()=>C});var e=p(86099),A=p(30576);function C(M,m){return(0,A.m)(m)?(0,e.z)(M,m,1):(0,e.z)(M,1)}},78372:(Xe,ue,p)=>{"use strict";p.d(ue,{b:()=>M});var e=p(34986),A=p(54482),C=p(25403);function M(m,b=e.z){return(0,A.e)((D,v)=>{let R=null,B=null,w=null;const L=()=>{if(R){R.unsubscribe(),R=null;const q=B;B=null,v.next(q)}};function O(){const q=w+m,ee=b.now();if(ee{B=q,w=b.now(),R||(R=b.schedule(O,m),v.add(R))},()=>{L(),v.complete()},void 0,()=>{B=R=null}))})}},46590:(Xe,ue,p)=>{"use strict";p.d(ue,{d:()=>C});var e=p(54482),A=p(25403);function C(M){return(0,e.e)((m,b)=>{let D=!1;m.subscribe((0,A.x)(b,v=>{D=!0,b.next(v)},()=>{D||b.next(M),b.complete()}))})}},91005:(Xe,ue,p)=>{"use strict";p.d(ue,{g:()=>L});var e=p(34986),A=p(97272),C=p(95698),M=p(54482),m=p(25403),b=p(25032),v=p(69718),R=p(86099);function B(O,q){return q?ee=>(0,A.z)(q.pipe((0,C.q)(1),function D(){return(0,M.e)((O,q)=>{O.subscribe((0,m.x)(q,b.Z))})}()),ee.pipe(B(O))):(0,R.z)((ee,z)=>O(ee,z).pipe((0,C.q)(1),(0,v.h)(ee)))}var w=p(82805);function L(O,q=e.z){const ee=(0,w.H)(O,q);return B(()=>ee)}},71884:(Xe,ue,p)=>{"use strict";p.d(ue,{x:()=>M});var e=p(44671),A=p(54482),C=p(25403);function M(b,D=e.y){return b=b??m,(0,A.e)((v,R)=>{let B,w=!0;v.subscribe((0,C.x)(R,L=>{const O=D(L);(w||!b(B,O))&&(w=!1,B=O,R.next(L))}))})}function m(b,D){return b===D}},39300:(Xe,ue,p)=>{"use strict";p.d(ue,{h:()=>C});var e=p(54482),A=p(25403);function C(M,m){return(0,e.e)((b,D)=>{let v=0;b.subscribe((0,A.x)(D,R=>M.call(m,R,v++)&&D.next(R)))})}},28746:(Xe,ue,p)=>{"use strict";p.d(ue,{x:()=>A});var e=p(54482);function A(C){return(0,e.e)((M,m)=>{try{M.subscribe(m)}finally{m.add(C)}})}},50590:(Xe,ue,p)=>{"use strict";p.d(ue,{P:()=>D});var e=p(86805),A=p(39300),C=p(95698),M=p(46590),m=p(18068),b=p(44671);function D(v,R){const B=arguments.length>=2;return w=>w.pipe(v?(0,A.h)((L,O)=>v(L,O,w)):b.y,(0,C.q)(1),B?(0,M.d)(R):(0,m.T)(()=>new e.K))}},54004:(Xe,ue,p)=>{"use strict";p.d(ue,{U:()=>C});var e=p(54482),A=p(25403);function C(M,m){return(0,e.e)((b,D)=>{let v=0;b.subscribe((0,A.x)(D,R=>{D.next(M.call(m,R,v++))}))})}},69718:(Xe,ue,p)=>{"use strict";p.d(ue,{h:()=>A});var e=p(54004);function A(C){return(0,e.U)(()=>C)}},8189:(Xe,ue,p)=>{"use strict";p.d(ue,{J:()=>C});var e=p(86099),A=p(44671);function C(M=1/0){return(0,e.z)(A.y,M)}},72733:(Xe,ue,p)=>{"use strict";p.d(ue,{p:()=>M});var e=p(38421),A=p(39672),C=p(25403);function M(m,b,D,v,R,B,w,L){const O=[];let q=0,ee=0,z=!1;const ie=()=>{z&&!O.length&&!q&&b.complete()},Te=Le=>q{B&&b.next(Le),q++;let T=!1;(0,e.Xf)(D(Le,ee++)).subscribe((0,C.x)(b,W=>{R?.(W),B?Te(W):b.next(W)},()=>{T=!0},void 0,()=>{if(T)try{for(q--;O.length&&qpe(W)):pe(W)}ie()}catch(W){b.error(W)}}))};return m.subscribe((0,C.x)(b,Te,()=>{z=!0,ie()})),()=>{L?.()}}},86099:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>b});var e=p(54004),A=p(38421),C=p(54482),M=p(72733),m=p(30576);function b(D,v,R=1/0){return(0,m.m)(v)?b((B,w)=>(0,e.U)((L,O)=>v(B,L,w,O))((0,A.Xf)(D(B,w))),R):("number"==typeof v&&(R=v),(0,C.e)((B,w)=>(0,M.p)(B,w,D,R)))}},11520:(Xe,ue,p)=>{"use strict";p.d(ue,{G:()=>C});var e=p(54482),A=p(25403);function C(){return(0,e.e)((M,m)=>{let b,D=!1;M.subscribe((0,A.x)(m,v=>{const R=b;b=v,D&&m.next([R,v]),D=!0}))})}},57359:(Xe,ue,p)=>{"use strict";p.d(ue,{U:()=>A});var e=p(25403);function A(C,M,m,b,D){return(v,R)=>{let B=m,w=M,L=0;v.subscribe((0,e.x)(R,O=>{const q=L++;w=B?C(w,O,q):(B=!0,O),b&&R.next(w)},D&&(()=>{B&&R.next(w),R.complete()})))}}},13099:(Xe,ue,p)=>{"use strict";p.d(ue,{B:()=>m});var e=p(38421),A=p(77579),C=p(70930),M=p(54482);function m(D={}){const{connector:v=(()=>new A.x),resetOnError:R=!0,resetOnComplete:B=!0,resetOnRefCountZero:w=!0}=D;return L=>{let O,q,ee,z=0,ie=!1,Te=!1;const pe=()=>{q?.unsubscribe(),q=void 0},Le=()=>{pe(),O=ee=void 0,ie=Te=!1},T=()=>{const W=O;Le(),W?.unsubscribe()};return(0,M.e)((W,F)=>{z++,!Te&&!ie&&pe();const V=ee=ee??v();F.add(()=>{z--,0===z&&!Te&&!ie&&(q=b(T,w))}),V.subscribe(F),!O&&z>0&&(O=new C.Hp({next:te=>V.next(te),error:te=>{Te=!0,pe(),q=b(Le,R,te),V.error(te)},complete:()=>{ie=!0,pe(),q=b(Le,B),V.complete()}}),(0,e.Xf)(W).subscribe(O))})(L)}}function b(D,v,...R){if(!0===v)return void D();if(!1===v)return;const B=new C.Hp({next:()=>{B.unsubscribe(),D()}});return v(...R).subscribe(B)}},34782:(Xe,ue,p)=>{"use strict";p.d(ue,{d:()=>C});var e=p(4707),A=p(13099);function C(M,m,b){let D,v=!1;return M&&"object"==typeof M?({bufferSize:D=1/0,windowTime:m=1/0,refCount:v=!1,scheduler:b}=M):D=M??1/0,(0,A.B)({connector:()=>new e.t(D,m,b),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:v})}},35684:(Xe,ue,p)=>{"use strict";p.d(ue,{T:()=>A});var e=p(39300);function A(C){return(0,e.h)((M,m)=>C<=m)}},68675:(Xe,ue,p)=>{"use strict";p.d(ue,{O:()=>M});var e=p(97272),A=p(63269),C=p(54482);function M(...m){const b=(0,A.yG)(m);return(0,C.e)((D,v)=>{(b?(0,e.z)(m,D,b):(0,e.z)(m,D)).subscribe(v)})}},63900:(Xe,ue,p)=>{"use strict";p.d(ue,{w:()=>M});var e=p(38421),A=p(54482),C=p(25403);function M(m,b){return(0,A.e)((D,v)=>{let R=null,B=0,w=!1;const L=()=>w&&!R&&v.complete();D.subscribe((0,C.x)(v,O=>{R?.unsubscribe();let q=0;const ee=B++;(0,e.Xf)(m(O,ee)).subscribe(R=(0,C.x)(v,z=>v.next(b?b(O,z,ee,q++):z),()=>{R=null,L()}))},()=>{w=!0,L()}))})}},95698:(Xe,ue,p)=>{"use strict";p.d(ue,{q:()=>M});var e=p(60515),A=p(54482),C=p(25403);function M(m){return m<=0?()=>e.E:(0,A.e)((b,D)=>{let v=0;b.subscribe((0,C.x)(D,R=>{++v<=m&&(D.next(R),m<=v&&D.complete())}))})}},82722:(Xe,ue,p)=>{"use strict";p.d(ue,{R:()=>m});var e=p(54482),A=p(25403),C=p(38421),M=p(25032);function m(b){return(0,e.e)((D,v)=>{(0,C.Xf)(b).subscribe((0,A.x)(v,()=>v.complete(),M.Z)),!v.closed&&D.subscribe(v)})}},22529:(Xe,ue,p)=>{"use strict";p.d(ue,{o:()=>C});var e=p(54482),A=p(25403);function C(M,m=!1){return(0,e.e)((b,D)=>{let v=0;b.subscribe((0,A.x)(D,R=>{const B=M(R,v++);(B||m)&&D.next(R),!B&&D.complete()}))})}},18505:(Xe,ue,p)=>{"use strict";p.d(ue,{b:()=>m});var e=p(30576),A=p(54482),C=p(25403),M=p(44671);function m(b,D,v){const R=(0,e.m)(b)||D||v?{next:b,error:D,complete:v}:b;return R?(0,A.e)((B,w)=>{var L;null===(L=R.subscribe)||void 0===L||L.call(R);let O=!0;B.subscribe((0,C.x)(w,q=>{var ee;null===(ee=R.next)||void 0===ee||ee.call(R,q),w.next(q)},()=>{var q;O=!1,null===(q=R.complete)||void 0===q||q.call(R),w.complete()},q=>{var ee;O=!1,null===(ee=R.error)||void 0===ee||ee.call(R,q),w.error(q)},()=>{var q,ee;O&&(null===(q=R.unsubscribe)||void 0===q||q.call(R)),null===(ee=R.finalize)||void 0===ee||ee.call(R)}))}):M.y}},18068:(Xe,ue,p)=>{"use strict";p.d(ue,{T:()=>M});var e=p(86805),A=p(54482),C=p(25403);function M(b=m){return(0,A.e)((D,v)=>{let R=!1;D.subscribe((0,C.x)(v,B=>{R=!0,v.next(B)},()=>R?v.complete():v.error(b())))})}function m(){return new e.K}},17414:(Xe,ue,p)=>{"use strict";p.d(ue,{V:()=>R});var e=p(34986),A=p(51165),C=p(54482),M=p(38421),m=p(83888),b=p(25403),D=p(39672);const v=(0,m.d)(w=>function(O=null){w(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=O});function R(w,L){const{first:O,each:q,with:ee=B,scheduler:z=L??e.z,meta:ie=null}=(0,A.q)(w)?{first:w}:"number"==typeof w?{each:w}:w;if(null==O&&null==q)throw new TypeError("No timeout provided.");return(0,C.e)((Te,pe)=>{let Le,T,W=null,F=0;const V=te=>{T=(0,D.f)(pe,z,()=>{try{Le.unsubscribe(),(0,M.Xf)(ee({meta:ie,lastValue:W,seen:F})).subscribe(pe)}catch(Q){pe.error(Q)}},te)};Le=Te.subscribe((0,b.x)(pe,te=>{T?.unsubscribe(),F++,pe.next(W=te),q>0&&V(q)},void 0,void 0,()=>{T?.closed||T?.unsubscribe(),W=null})),!F&&V(null!=O?"number"==typeof O?O:+O-z.now():q)})}function B(w){throw new v(w)}},84408:(Xe,ue,p)=>{"use strict";p.d(ue,{o:()=>m});var e=p(50727);class A extends e.w0{constructor(D,v){super()}schedule(D,v=0){return this}}const C={setInterval(b,D,...v){const{delegate:R}=C;return R?.setInterval?R.setInterval(b,D,...v):setInterval(b,D,...v)},clearInterval(b){const{delegate:D}=C;return(D?.clearInterval||clearInterval)(b)},delegate:void 0};var M=p(38737);class m extends A{constructor(D,v){super(D,v),this.scheduler=D,this.work=v,this.pending=!1}schedule(D,v=0){if(this.closed)return this;this.state=D;const R=this.id,B=this.scheduler;return null!=R&&(this.id=this.recycleAsyncId(B,R,v)),this.pending=!0,this.delay=v,this.id=this.id||this.requestAsyncId(B,this.id,v),this}requestAsyncId(D,v,R=0){return C.setInterval(D.flush.bind(D,this),R)}recycleAsyncId(D,v,R=0){if(null!=R&&this.delay===R&&!1===this.pending)return v;C.clearInterval(v)}execute(D,v){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const R=this._execute(D,v);if(R)return R;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(D,v){let B,R=!1;try{this.work(D)}catch(w){R=!0,B=w||new Error("Scheduled action threw falsy error")}if(R)return this.unsubscribe(),B}unsubscribe(){if(!this.closed){const{id:D,scheduler:v}=this,{actions:R}=v;this.work=this.state=this.scheduler=null,this.pending=!1,(0,M.P)(R,this),null!=D&&(this.id=this.recycleAsyncId(v,D,null)),this.delay=null,super.unsubscribe()}}}},97565:(Xe,ue,p)=>{"use strict";p.d(ue,{v:()=>C});var e=p(26063);class A{constructor(m,b=A.now){this.schedulerActionCtor=m,this.now=b}schedule(m,b=0,D){return new this.schedulerActionCtor(this,m).schedule(D,b)}}A.now=e.l.now;class C extends A{constructor(m,b=A.now){super(m,b),this.actions=[],this._active=!1,this._scheduled=void 0}flush(m){const{actions:b}=this;if(this._active)return void b.push(m);let D;this._active=!0;do{if(D=m.execute(m.state,m.delay))break}while(m=b.shift());if(this._active=!1,D){for(;m=b.shift();)m.unsubscribe();throw D}}}},66406:(Xe,ue,p)=>{"use strict";p.d(ue,{Z:()=>D});var e=p(84408),A=p(50727);const C={schedule(R){let B=requestAnimationFrame,w=cancelAnimationFrame;const{delegate:L}=C;L&&(B=L.requestAnimationFrame,w=L.cancelAnimationFrame);const O=B(q=>{w=void 0,R(q)});return new A.w0(()=>w?.(O))},requestAnimationFrame(...R){const{delegate:B}=C;return(B?.requestAnimationFrame||requestAnimationFrame)(...R)},cancelAnimationFrame(...R){const{delegate:B}=C;return(B?.cancelAnimationFrame||cancelAnimationFrame)(...R)},delegate:void 0};var m=p(97565);const D=new class b extends m.v{flush(B){this._active=!0;const w=this._scheduled;this._scheduled=void 0;const{actions:L}=this;let O;B=B||L.shift();do{if(O=B.execute(B.state,B.delay))break}while((B=L[0])&&B.id===w&&L.shift());if(this._active=!1,O){for(;(B=L[0])&&B.id===w&&L.shift();)B.unsubscribe();throw O}}}(class M extends e.o{constructor(B,w){super(B,w),this.scheduler=B,this.work=w}requestAsyncId(B,w,L=0){return null!==L&&L>0?super.requestAsyncId(B,w,L):(B.actions.push(this),B._scheduled||(B._scheduled=C.requestAnimationFrame(()=>B.flush(void 0))))}recycleAsyncId(B,w,L=0){if(null!=L&&L>0||null==L&&this.delay>0)return super.recycleAsyncId(B,w,L);B.actions.some(O=>O.id===w)||(C.cancelAnimationFrame(w),B._scheduled=void 0)}})},53101:(Xe,ue,p)=>{"use strict";p.d(ue,{E:()=>q});var e=p(84408);let C,A=1;const M={};function m(z){return z in M&&(delete M[z],!0)}const b={setImmediate(z){const ie=A++;return M[ie]=!0,C||(C=Promise.resolve()),C.then(()=>m(ie)&&z()),ie},clearImmediate(z){m(z)}},{setImmediate:v,clearImmediate:R}=b,B={setImmediate(...z){const{delegate:ie}=B;return(ie?.setImmediate||v)(...z)},clearImmediate(z){const{delegate:ie}=B;return(ie?.clearImmediate||R)(z)},delegate:void 0};var L=p(97565);const q=new class O extends L.v{flush(ie){this._active=!0;const Te=this._scheduled;this._scheduled=void 0;const{actions:pe}=this;let Le;ie=ie||pe.shift();do{if(Le=ie.execute(ie.state,ie.delay))break}while((ie=pe[0])&&ie.id===Te&&pe.shift());if(this._active=!1,Le){for(;(ie=pe[0])&&ie.id===Te&&pe.shift();)ie.unsubscribe();throw Le}}}(class w extends e.o{constructor(ie,Te){super(ie,Te),this.scheduler=ie,this.work=Te}requestAsyncId(ie,Te,pe=0){return null!==pe&&pe>0?super.requestAsyncId(ie,Te,pe):(ie.actions.push(this),ie._scheduled||(ie._scheduled=B.setImmediate(ie.flush.bind(ie,void 0))))}recycleAsyncId(ie,Te,pe=0){if(null!=pe&&pe>0||null==pe&&this.delay>0)return super.recycleAsyncId(ie,Te,pe);ie.actions.some(Le=>Le.id===Te)||(B.clearImmediate(Te),ie._scheduled=void 0)}})},34986:(Xe,ue,p)=>{"use strict";p.d(ue,{P:()=>M,z:()=>C});var e=p(84408);const C=new(p(97565).v)(e.o),M=C},26063:(Xe,ue,p)=>{"use strict";p.d(ue,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},43410:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>e});const e={setTimeout(A,C,...M){const{delegate:m}=e;return m?.setTimeout?m.setTimeout(A,C,...M):setTimeout(A,C,...M)},clearTimeout(A){const{delegate:C}=e;return(C?.clearTimeout||clearTimeout)(A)},delegate:void 0}},2202:(Xe,ue,p)=>{"use strict";p.d(ue,{h:()=>A});const A=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},48822:(Xe,ue,p)=>{"use strict";p.d(ue,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},86805:(Xe,ue,p)=>{"use strict";p.d(ue,{K:()=>A});const A=(0,p(83888).d)(C=>function(){C(this),this.name="EmptyError",this.message="no elements in sequence"})},63269:(Xe,ue,p)=>{"use strict";p.d(ue,{_6:()=>b,jO:()=>M,yG:()=>m});var e=p(30576),A=p(93532);function C(D){return D[D.length-1]}function M(D){return(0,e.m)(C(D))?D.pop():void 0}function m(D){return(0,A.K)(C(D))?D.pop():void 0}function b(D,v){return"number"==typeof C(D)?D.pop():v}},54742:(Xe,ue,p)=>{"use strict";p.d(ue,{D:()=>m});const{isArray:e}=Array,{getPrototypeOf:A,prototype:C,keys:M}=Object;function m(D){if(1===D.length){const v=D[0];if(e(v))return{args:v,keys:null};if(function b(D){return D&&"object"==typeof D&&A(D)===C}(v)){const R=M(v);return{args:R.map(B=>v[B]),keys:R}}}return{args:D,keys:null}}},75797:(Xe,ue,p)=>{"use strict";p.d(ue,{k:()=>A});const{isArray:e}=Array;function A(C){return 1===C.length&&e(C[0])?C[0]:C}},38737:(Xe,ue,p)=>{"use strict";function e(A,C){if(A){const M=A.indexOf(C);0<=M&&A.splice(M,1)}}p.d(ue,{P:()=>e})},83888:(Xe,ue,p)=>{"use strict";function e(A){const M=A(m=>{Error.call(m),m.stack=(new Error).stack});return M.prototype=Object.create(Error.prototype),M.prototype.constructor=M,M}p.d(ue,{d:()=>e})},31810:(Xe,ue,p)=>{"use strict";function e(A,C){return A.reduce((M,m,b)=>(M[m]=C[b],M),{})}p.d(ue,{n:()=>e})},72806:(Xe,ue,p)=>{"use strict";p.d(ue,{O:()=>M,x:()=>C});var e=p(42416);let A=null;function C(m){if(e.v.useDeprecatedSynchronousErrorHandling){const b=!A;if(b&&(A={errorThrown:!1,error:null}),m(),b){const{errorThrown:D,error:v}=A;if(A=null,D)throw v}}else m()}function M(m){e.v.useDeprecatedSynchronousErrorHandling&&A&&(A.errorThrown=!0,A.error=m)}},39672:(Xe,ue,p)=>{"use strict";function e(A,C,M,m=0,b=!1){const D=C.schedule(function(){M(),b?A.add(this.schedule(null,m)):this.unsubscribe()},m);if(A.add(D),!b)return D}p.d(ue,{f:()=>e})},44671:(Xe,ue,p)=>{"use strict";function e(A){return A}p.d(ue,{y:()=>e})},81144:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>e});const e=A=>A&&"number"==typeof A.length&&"function"!=typeof A},12206:(Xe,ue,p)=>{"use strict";p.d(ue,{D:()=>A});var e=p(30576);function A(C){return Symbol.asyncIterator&&(0,e.m)(C?.[Symbol.asyncIterator])}},51165:(Xe,ue,p)=>{"use strict";function e(A){return A instanceof Date&&!isNaN(A)}p.d(ue,{q:()=>e})},30576:(Xe,ue,p)=>{"use strict";function e(A){return"function"==typeof A}p.d(ue,{m:()=>e})},93670:(Xe,ue,p)=>{"use strict";p.d(ue,{c:()=>C});var e=p(48822),A=p(30576);function C(M){return(0,A.m)(M[e.L])}},26495:(Xe,ue,p)=>{"use strict";p.d(ue,{T:()=>C});var e=p(2202),A=p(30576);function C(M){return(0,A.m)(M?.[e.h])}},45191:(Xe,ue,p)=>{"use strict";p.d(ue,{b:()=>C});var e=p(69751),A=p(30576);function C(M){return!!M&&(M instanceof e.y||(0,A.m)(M.lift)&&(0,A.m)(M.subscribe))}},28239:(Xe,ue,p)=>{"use strict";p.d(ue,{t:()=>A});var e=p(30576);function A(C){return(0,e.m)(C?.then)}},53260:(Xe,ue,p)=>{"use strict";p.d(ue,{L:()=>M,Q:()=>C});var e=p(70655),A=p(30576);function C(m){return(0,e.FC)(this,arguments,function*(){const D=m.getReader();try{for(;;){const{value:v,done:R}=yield(0,e.qq)(D.read());if(R)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(v)}}finally{D.releaseLock()}})}function M(m){return(0,A.m)(m?.getReader)}},93532:(Xe,ue,p)=>{"use strict";p.d(ue,{K:()=>A});var e=p(30576);function A(C){return C&&(0,e.m)(C.schedule)}},54482:(Xe,ue,p)=>{"use strict";p.d(ue,{A:()=>A,e:()=>C});var e=p(30576);function A(M){return(0,e.m)(M?.lift)}function C(M){return m=>{if(A(m))return m.lift(function(b){try{return M(b,this)}catch(D){this.error(D)}});throw new TypeError("Unable to lift unknown Observable type")}}},83268:(Xe,ue,p)=>{"use strict";p.d(ue,{Z:()=>M});var e=p(54004);const{isArray:A}=Array;function M(m){return(0,e.U)(b=>function C(m,b){return A(b)?m(...b):m(b)}(m,b))}},25032:(Xe,ue,p)=>{"use strict";function e(){}p.d(ue,{Z:()=>e})},89635:(Xe,ue,p)=>{"use strict";p.d(ue,{U:()=>C,z:()=>A});var e=p(44671);function A(...M){return C(M)}function C(M){return 0===M.length?e.y:1===M.length?M[0]:function(b){return M.reduce((D,v)=>v(D),b)}}},87849:(Xe,ue,p)=>{"use strict";p.d(ue,{h:()=>C});var e=p(42416),A=p(43410);function C(M){A.z.setTimeout(()=>{const{onUnhandledError:m}=e.v;if(!m)throw M;m(M)})}},44532:(Xe,ue,p)=>{"use strict";function e(A){return new TypeError(`You provided ${null!==A&&"object"==typeof A?"an invalid object":`'${A}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}p.d(ue,{z:()=>e})},70655:(Xe,ue,p)=>{"use strict";function m(ge,ve,De,he){var se,Ye=arguments.length,Be=Ye<3?ve:null===he?he=Object.getOwnPropertyDescriptor(ve,De):he;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Be=Reflect.decorate(ge,ve,De,he);else for(var le=ge.length-1;le>=0;le--)(se=ge[le])&&(Be=(Ye<3?se(Be):Ye>3?se(ve,De,Be):se(ve,De))||Be);return Ye>3&&Be&&Object.defineProperty(ve,De,Be),Be}function v(ge,ve,De,he){return new(De||(De=Promise))(function(Be,se){function le(be){try{N(he.next(be))}catch(Z){se(Z)}}function k(be){try{N(he.throw(be))}catch(Z){se(Z)}}function N(be){be.done?Be(be.value):function Ye(Be){return Be instanceof De?Be:new De(function(se){se(Be)})}(be.value).then(le,k)}N((he=he.apply(ge,ve||[])).next())})}function ie(ge){return this instanceof ie?(this.v=ge,this):new ie(ge)}function Te(ge,ve,De){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ye,he=De.apply(ge,ve||[]),Be=[];return Ye={},se("next"),se("throw"),se("return"),Ye[Symbol.asyncIterator]=function(){return this},Ye;function se(de){he[de]&&(Ye[de]=function(xe){return new Promise(function(ot,Fe){Be.push([de,xe,ot,Fe])>1||le(de,xe)})})}function le(de,xe){try{!function k(de){de.value instanceof ie?Promise.resolve(de.value.v).then(N,be):Z(Be[0][2],de)}(he[de](xe))}catch(ot){Z(Be[0][3],ot)}}function N(de){le("next",de)}function be(de){le("throw",de)}function Z(de,xe){de(xe),Be.shift(),Be.length&&le(Be[0][0],Be[0][1])}}function Le(ge){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var De,ve=ge[Symbol.asyncIterator];return ve?ve.call(ge):(ge=function L(ge){var ve="function"==typeof Symbol&&Symbol.iterator,De=ve&&ge[ve],he=0;if(De)return De.call(ge);if(ge&&"number"==typeof ge.length)return{next:function(){return ge&&he>=ge.length&&(ge=void 0),{value:ge&&ge[he++],done:!ge}}};throw new TypeError(ve?"Object is not iterable.":"Symbol.iterator is not defined.")}(ge),De={},he("next"),he("throw"),he("return"),De[Symbol.asyncIterator]=function(){return this},De);function he(Be){De[Be]=ge[Be]&&function(se){return new Promise(function(le,k){!function Ye(Be,se,le,k){Promise.resolve(k).then(function(N){Be({value:N,done:le})},se)}(le,k,(se=ge[Be](se)).done,se.value)})}}}p.d(ue,{FC:()=>Te,KL:()=>Le,gn:()=>m,mG:()=>v,qq:()=>ie})},37340:(Xe,ue,p)=>{"use strict";p.d(ue,{F4:()=>B,IO:()=>ee,LC:()=>A,SB:()=>R,X$:()=>M,ZE:()=>pe,ZN:()=>Te,_j:()=>e,eR:()=>w,jt:()=>m,k1:()=>Le,l3:()=>C,oB:()=>v,pV:()=>O,ru:()=>b,vP:()=>D});class e{}class A{}const C="*";function M(T,W){return{type:7,name:T,definitions:W,options:{}}}function m(T,W=null){return{type:4,styles:W,timings:T}}function b(T,W=null){return{type:3,steps:T,options:W}}function D(T,W=null){return{type:2,steps:T,options:W}}function v(T){return{type:6,styles:T,offset:null}}function R(T,W,F){return{type:0,name:T,styles:W,options:F}}function B(T){return{type:5,steps:T}}function w(T,W,F=null){return{type:1,expr:T,animation:W,options:F}}function O(T=null){return{type:9,options:T}}function ee(T,W,F=null){return{type:11,selector:T,animation:W,options:F}}function ie(T){Promise.resolve(null).then(T)}class Te{constructor(W=0,F=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=W+F}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(W=>W()),this._onDoneFns=[])}onStart(W){this._originalOnStartFns.push(W),this._onStartFns.push(W)}onDone(W){this._originalOnDoneFns.push(W),this._onDoneFns.push(W)}onDestroy(W){this._onDestroyFns.push(W)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ie(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(W=>W()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(W=>W()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(W){this._position=this.totalTime?W*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(W){const F="start"==W?this._onStartFns:this._onDoneFns;F.forEach(V=>V()),F.length=0}}class pe{constructor(W){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=W;let F=0,V=0,te=0;const Q=this.players.length;0==Q?ie(()=>this._onFinish()):this.players.forEach(Ee=>{Ee.onDone(()=>{++F==Q&&this._onFinish()}),Ee.onDestroy(()=>{++V==Q&&this._onDestroy()}),Ee.onStart(()=>{++te==Q&&this._onStart()})}),this.totalTime=this.players.reduce((Ee,ge)=>Math.max(Ee,ge.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(W=>W()),this._onDoneFns=[])}init(){this.players.forEach(W=>W.init())}onStart(W){this._onStartFns.push(W)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(W=>W()),this._onStartFns=[])}onDone(W){this._onDoneFns.push(W)}onDestroy(W){this._onDestroyFns.push(W)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(W=>W.play())}pause(){this.players.forEach(W=>W.pause())}restart(){this.players.forEach(W=>W.restart())}finish(){this._onFinish(),this.players.forEach(W=>W.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(W=>W.destroy()),this._onDestroyFns.forEach(W=>W()),this._onDestroyFns=[])}reset(){this.players.forEach(W=>W.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(W){const F=W*this.totalTime;this.players.forEach(V=>{const te=V.totalTime?Math.min(1,F/V.totalTime):1;V.setPosition(te)})}getPosition(){const W=this.players.reduce((F,V)=>null===F||V.totalTime>F.totalTime?V:F,null);return null!=W?W.getPosition():0}beforeDestroy(){this.players.forEach(W=>{W.beforeDestroy&&W.beforeDestroy()})}triggerCallback(W){const F="start"==W?this._onStartFns:this._onDoneFns;F.forEach(V=>V()),F.length=0}}const Le="!"},12687:(Xe,ue,p)=>{"use strict";p.d(ue,{$s:()=>ge,Em:()=>Be,Kd:()=>s,X6:()=>r,ic:()=>le,kH:()=>J,mK:()=>ye,qV:()=>Ae,qm:()=>ne,rt:()=>Ue,s1:()=>Ye,tE:()=>S,yG:()=>u});var e=p(36895),A=p(94650),C=p(83353),M=p(77579),m=p(50727),b=p(61135),D=p(39646),v=p(29521),R=p(18505),B=p(78372),w=p(39300),L=p(54004),O=p(95698),q=p(35684),ee=p(71884),z=p(82722),ie=p(21281),Te=p(49643),pe=p(62289);function F(He,Oe){return(He.getAttribute(Oe)||"").match(/\S+/g)||[]}const te="cdk-describedby-message",Q="cdk-describedby-host";let Ee=0,ge=(()=>{class He{constructor(Re,re){this._platform=re,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Ee++,this._document=Re,this._id=(0,A.f3M)(A.AFp)+"-"+Ee++}describe(Re,re,we){if(!this._canBeDescribed(Re,re))return;const st=ve(re,we);"string"!=typeof re?(De(re,this._id),this._messageRegistry.set(st,{messageElement:re,referenceCount:0})):this._messageRegistry.has(st)||this._createMessageElement(re,we),this._isElementDescribedByMessage(Re,st)||this._addMessageReference(Re,st)}removeDescription(Re,re,we){var st;if(!re||!this._isElementNode(Re))return;const Ke=ve(re,we);if(this._isElementDescribedByMessage(Re,Ke)&&this._removeMessageReference(Re,Ke),"string"==typeof re){const Et=this._messageRegistry.get(Ke);Et&&0===Et.referenceCount&&this._deleteMessageElement(Ke)}0===(null===(st=this._messagesContainer)||void 0===st?void 0:st.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var Re;const re=this._document.querySelectorAll(`[${Q}="${this._id}"]`);for(let we=0;we0!=we.indexOf(te));Re.setAttribute("aria-describedby",re.join(" "))}_addMessageReference(Re,re){const we=this._messageRegistry.get(re);(function T(He,Oe,Re){const re=F(He,Oe);re.some(we=>we.trim()==Re.trim())||(re.push(Re.trim()),He.setAttribute(Oe,re.join(" ")))})(Re,"aria-describedby",we.messageElement.id),Re.setAttribute(Q,this._id),we.referenceCount++}_removeMessageReference(Re,re){const we=this._messageRegistry.get(re);we.referenceCount--,function W(He,Oe,Re){const we=F(He,Oe).filter(st=>st!=Re.trim());we.length?He.setAttribute(Oe,we.join(" ")):He.removeAttribute(Oe)}(Re,"aria-describedby",we.messageElement.id),Re.removeAttribute(Q)}_isElementDescribedByMessage(Re,re){const we=F(Re,"aria-describedby"),st=this._messageRegistry.get(re),Ke=st&&st.messageElement.id;return!!Ke&&-1!=we.indexOf(Ke)}_canBeDescribed(Re,re){if(!this._isElementNode(Re))return!1;if(re&&"object"==typeof re)return!0;const we=null==re?"":`${re}`.trim(),st=Re.getAttribute("aria-label");return!(!we||st&&st.trim()===we)}_isElementNode(Re){return Re.nodeType===this._document.ELEMENT_NODE}}return He.\u0275fac=function(Re){return new(Re||He)(A.LFG(e.K0),A.LFG(C.t4))},He.\u0275prov=A.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})();function ve(He,Oe){return"string"==typeof He?`${Oe||""}/${He}`:He}function De(He,Oe){He.id||(He.id=`${te}-${Oe}-${Ee++}`)}class he{constructor(Oe){this._items=Oe,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new M.x,this._typeaheadSubscription=m.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=Re=>Re.disabled,this._pressedLetters=[],this.tabOut=new M.x,this.change=new M.x,Oe instanceof A.n_E&&Oe.changes.subscribe(Re=>{if(this._activeItem){const we=Re.toArray().indexOf(this._activeItem);we>-1&&we!==this._activeItemIndex&&(this._activeItemIndex=we)}})}skipPredicate(Oe){return this._skipPredicateFn=Oe,this}withWrap(Oe=!0){return this._wrap=Oe,this}withVerticalOrientation(Oe=!0){return this._vertical=Oe,this}withHorizontalOrientation(Oe){return this._horizontal=Oe,this}withAllowedModifierKeys(Oe){return this._allowedModifierKeys=Oe,this}withTypeAhead(Oe=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,R.b)(Re=>this._pressedLetters.push(Re)),(0,B.b)(Oe),(0,w.h)(()=>this._pressedLetters.length>0),(0,L.U)(()=>this._pressedLetters.join(""))).subscribe(Re=>{const re=this._getItemsArray();for(let we=1;we!Oe[st]||this._allowedModifierKeys.indexOf(st)>-1);switch(Re){case v.Mf:return void this.tabOut.next();case v.JH:if(this._vertical&&we){this.setNextItemActive();break}return;case v.LH:if(this._vertical&&we){this.setPreviousItemActive();break}return;case v.SV:if(this._horizontal&&we){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case v.oh:if(this._horizontal&&we){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case v.Sd:if(this._homeAndEnd&&we){this.setFirstItemActive();break}return;case v.uR:if(this._homeAndEnd&&we){this.setLastItemActive();break}return;default:return void((we||(0,v.Vb)(Oe,"shiftKey"))&&(Oe.key&&1===Oe.key.length?this._letterKeyStream.next(Oe.key.toLocaleUpperCase()):(Re>=v.A&&Re<=v.Z||Re>=v.xE&&Re<=v.aO)&&this._letterKeyStream.next(String.fromCharCode(Re))))}this._pressedLetters=[],Oe.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Oe){const Re=this._getItemsArray(),re="number"==typeof Oe?Oe:Re.indexOf(Oe);this._activeItem=Re[re]??null,this._activeItemIndex=re}_setActiveItemByDelta(Oe){this._wrap?this._setActiveInWrapMode(Oe):this._setActiveInDefaultMode(Oe)}_setActiveInWrapMode(Oe){const Re=this._getItemsArray();for(let re=1;re<=Re.length;re++){const we=(this._activeItemIndex+Oe*re+Re.length)%Re.length;if(!this._skipPredicateFn(Re[we]))return void this.setActiveItem(we)}}_setActiveInDefaultMode(Oe){this._setActiveItemByIndex(this._activeItemIndex+Oe,Oe)}_setActiveItemByIndex(Oe,Re){const re=this._getItemsArray();if(re[Oe]){for(;this._skipPredicateFn(re[Oe]);)if(!re[Oe+=Re])return;this.setActiveItem(Oe)}}_getItemsArray(){return this._items instanceof A.n_E?this._items.toArray():this._items}}class Ye extends he{setActiveItem(Oe){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Oe),this.activeItem&&this.activeItem.setActiveStyles()}}class Be extends he{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Oe){return this._origin=Oe,this}setActiveItem(Oe){super.setActiveItem(Oe),this.activeItem&&this.activeItem.focus(this._origin)}}let le=(()=>{class He{constructor(Re){this._platform=Re}isDisabled(Re){return Re.hasAttribute("disabled")}isVisible(Re){return function N(He){return!!(He.offsetWidth||He.offsetHeight||"function"==typeof He.getClientRects&&He.getClientRects().length)}(Re)&&"visible"===getComputedStyle(Re).visibility}isTabbable(Re){if(!this._platform.isBrowser)return!1;const re=function k(He){try{return He.frameElement}catch{return null}}(function X(He){return He.ownerDocument&&He.ownerDocument.defaultView||window}(Re));if(re&&(-1===ut(re)||!this.isVisible(re)))return!1;let we=Re.nodeName.toLowerCase(),st=ut(Re);return Re.hasAttribute("contenteditable")?-1!==st:!("iframe"===we||"object"===we||this._platform.WEBKIT&&this._platform.IOS&&!function tt(He){let Oe=He.nodeName.toLowerCase(),Re="input"===Oe&&He.type;return"text"===Re||"password"===Re||"select"===Oe||"textarea"===Oe}(Re))&&("audio"===we?!!Re.hasAttribute("controls")&&-1!==st:"video"===we?-1!==st&&(null!==st||this._platform.FIREFOX||Re.hasAttribute("controls")):Re.tabIndex>=0)}isFocusable(Re,re){return function vt(He){return!function Z(He){return function xe(He){return"input"==He.nodeName.toLowerCase()}(He)&&"hidden"==He.type}(He)&&(function be(He){let Oe=He.nodeName.toLowerCase();return"input"===Oe||"select"===Oe||"button"===Oe||"textarea"===Oe}(He)||function de(He){return function ot(He){return"a"==He.nodeName.toLowerCase()}(He)&&He.hasAttribute("href")}(He)||He.hasAttribute("contenteditable")||Fe(He))}(Re)&&!this.isDisabled(Re)&&(re?.ignoreVisibility||this.isVisible(Re))}}return He.\u0275fac=function(Re){return new(Re||He)(A.LFG(C.t4))},He.\u0275prov=A.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})();function Fe(He){if(!He.hasAttribute("tabindex")||void 0===He.tabIndex)return!1;let Oe=He.getAttribute("tabindex");return!(!Oe||isNaN(parseInt(Oe,10)))}function ut(He){if(!Fe(He))return null;const Oe=parseInt(He.getAttribute("tabindex")||"",10);return isNaN(Oe)?-1:Oe}class nt{constructor(Oe,Re,re,we,st=!1){this._element=Oe,this._checker=Re,this._ngZone=re,this._document=we,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,st||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Oe){this._enabled=Oe,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Oe,this._startAnchor),this._toggleAnchorTabIndex(Oe,this._endAnchor))}destroy(){const Oe=this._startAnchor,Re=this._endAnchor;Oe&&(Oe.removeEventListener("focus",this.startAnchorListener),Oe.remove()),Re&&(Re.removeEventListener("focus",this.endAnchorListener),Re.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Oe){return new Promise(Re=>{this._executeOnStable(()=>Re(this.focusInitialElement(Oe)))})}focusFirstTabbableElementWhenReady(Oe){return new Promise(Re=>{this._executeOnStable(()=>Re(this.focusFirstTabbableElement(Oe)))})}focusLastTabbableElementWhenReady(Oe){return new Promise(Re=>{this._executeOnStable(()=>Re(this.focusLastTabbableElement(Oe)))})}_getRegionBoundary(Oe){const Re=this._element.querySelectorAll(`[cdk-focus-region-${Oe}], [cdkFocusRegion${Oe}], [cdk-focus-${Oe}]`);return"start"==Oe?Re.length?Re[0]:this._getFirstTabbableElement(this._element):Re.length?Re[Re.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Oe){const Re=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Re){if(!this._checker.isFocusable(Re)){const re=this._getFirstTabbableElement(Re);return re?.focus(Oe),!!re}return Re.focus(Oe),!0}return this.focusFirstTabbableElement(Oe)}focusFirstTabbableElement(Oe){const Re=this._getRegionBoundary("start");return Re&&Re.focus(Oe),!!Re}focusLastTabbableElement(Oe){const Re=this._getRegionBoundary("end");return Re&&Re.focus(Oe),!!Re}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Oe){if(this._checker.isFocusable(Oe)&&this._checker.isTabbable(Oe))return Oe;const Re=Oe.children;for(let re=0;re=0;re--){const we=Re[re].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Re[re]):null;if(we)return we}return null}_createAnchor(){const Oe=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Oe),Oe.classList.add("cdk-visually-hidden"),Oe.classList.add("cdk-focus-trap-anchor"),Oe.setAttribute("aria-hidden","true"),Oe}_toggleAnchorTabIndex(Oe,Re){Oe?Re.setAttribute("tabindex","0"):Re.removeAttribute("tabindex")}toggleAnchors(Oe){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Oe,this._startAnchor),this._toggleAnchorTabIndex(Oe,this._endAnchor))}_executeOnStable(Oe){this._ngZone.isStable?Oe():this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(Oe)}}let Ae=(()=>{class He{constructor(Re,re,we){this._checker=Re,this._ngZone=re,this._document=we}create(Re,re=!1){return new nt(Re,this._checker,this._ngZone,this._document,re)}}return He.\u0275fac=function(Re){return new(Re||He)(A.LFG(le),A.LFG(A.R0b),A.LFG(e.K0))},He.\u0275prov=A.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})(),ye=(()=>{class He{constructor(Re,re,we){this._elementRef=Re,this._focusTrapFactory=re,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(Re){this.focusTrap.enabled=(0,ie.Ig)(Re)}get autoCapture(){return this._autoCapture}set autoCapture(Re){this._autoCapture=(0,ie.Ig)(Re)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(Re){const re=Re.autoCapture;re&&!re.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,C.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return He.\u0275fac=function(Re){return new(Re||He)(A.Y36(A.SBq),A.Y36(Ae),A.Y36(e.K0))},He.\u0275dir=A.lG2({type:He,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[A.TTD]}),He})();function r(He){return 0===He.buttons||0===He.offsetX&&0===He.offsetY}function u(He){const Oe=He.touches&&He.touches[0]||He.changedTouches&&He.changedTouches[0];return!(!Oe||-1!==Oe.identifier||null!=Oe.radiusX&&1!==Oe.radiusX||null!=Oe.radiusY&&1!==Oe.radiusY)}const _=new A.OlP("cdk-input-modality-detector-options"),E={ignoreKeys:[v.zL,v.jx,v.b2,v.MW,v.JU]},a=(0,C.i$)({passive:!0,capture:!0});let i=(()=>{class He{constructor(Re,re,we,st){this._platform=Re,this._mostRecentTarget=null,this._modality=new b.X(null),this._lastTouchMs=0,this._onKeydown=Ke=>{var Et,ke;null!==(Et=this._options)&&void 0!==Et&&null!==(ke=Et.ignoreKeys)&&void 0!==ke&&ke.some(at=>at===Ke.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,C.sA)(Ke))},this._onMousedown=Ke=>{Date.now()-this._lastTouchMs<650||(this._modality.next(r(Ke)?"keyboard":"mouse"),this._mostRecentTarget=(0,C.sA)(Ke))},this._onTouchstart=Ke=>{u(Ke)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,C.sA)(Ke))},this._options={...E,...st},this.modalityDetected=this._modality.pipe((0,q.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ee.x)()),Re.isBrowser&&re.runOutsideAngular(()=>{we.addEventListener("keydown",this._onKeydown,a),we.addEventListener("mousedown",this._onMousedown,a),we.addEventListener("touchstart",this._onTouchstart,a)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,a),document.removeEventListener("mousedown",this._onMousedown,a),document.removeEventListener("touchstart",this._onTouchstart,a))}}return He.\u0275fac=function(Re){return new(Re||He)(A.LFG(C.t4),A.LFG(A.R0b),A.LFG(e.K0),A.LFG(_,8))},He.\u0275prov=A.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})();const t=new A.OlP("liveAnnouncerElement",{providedIn:"root",factory:function n(){return null}}),o=new A.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let s=(()=>{class He{constructor(Re,re,we,st){this._ngZone=re,this._defaultOptions=st,this._document=we,this._liveElement=Re||this._createLiveElement()}announce(Re,...re){const we=this._defaultOptions;let st,Ke;return 1===re.length&&"number"==typeof re[0]?Ke=re[0]:[st,Ke]=re,this.clear(),clearTimeout(this._previousTimeout),st||(st=we&&we.politeness?we.politeness:"polite"),null==Ke&&we&&(Ke=we.duration),this._liveElement.setAttribute("aria-live",st),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Et=>this._currentResolve=Et)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Re,"number"==typeof Ke&&(this._previousTimeout=setTimeout(()=>this.clear(),Ke)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var Re,re;clearTimeout(this._previousTimeout),null===(Re=this._liveElement)||void 0===Re||Re.remove(),this._liveElement=null,null===(re=this._currentResolve)||void 0===re||re.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Re="cdk-live-announcer-element",re=this._document.getElementsByClassName(Re),we=this._document.createElement("div");for(let st=0;st{class He{constructor(Re,re,we,st,Ke){this._ngZone=Re,this._platform=re,this._inputModalityDetector=we,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new M.x,this._rootNodeFocusAndBlurListener=Et=>{for(let at=(0,C.sA)(Et);at;at=at.parentElement)"focus"===Et.type?this._onFocus(Et,at):this._onBlur(Et,at)},this._document=st,this._detectionMode=Ke?.detectionMode||0}monitor(Re,re=!1){const we=(0,ie.fI)(Re);if(!this._platform.isBrowser||1!==we.nodeType)return(0,D.of)(null);const st=(0,C.kV)(we)||this._getDocument(),Ke=this._elementInfo.get(we);if(Ke)return re&&(Ke.checkChildren=!0),Ke.subject;const Et={checkChildren:re,subject:new M.x,rootNode:st};return this._elementInfo.set(we,Et),this._registerGlobalListeners(Et),Et.subject}stopMonitoring(Re){const re=(0,ie.fI)(Re),we=this._elementInfo.get(re);we&&(we.subject.complete(),this._setClasses(re),this._elementInfo.delete(re),this._removeGlobalListeners(we))}focusVia(Re,re,we){const st=(0,ie.fI)(Re);st===this._getDocument().activeElement?this._getClosestElementsInfo(st).forEach(([Et,ke])=>this._originChanged(Et,re,ke)):(this._setOrigin(re),"function"==typeof st.focus&&st.focus(we))}ngOnDestroy(){this._elementInfo.forEach((Re,re)=>this.stopMonitoring(re))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Re){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Re)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Re&&this._isLastInteractionFromInputLabel(Re)?"mouse":"program"}_shouldBeAttributedToTouch(Re){return 1===this._detectionMode||!(null==Re||!Re.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(Re,re){Re.classList.toggle("cdk-focused",!!re),Re.classList.toggle("cdk-touch-focused","touch"===re),Re.classList.toggle("cdk-keyboard-focused","keyboard"===re),Re.classList.toggle("cdk-mouse-focused","mouse"===re),Re.classList.toggle("cdk-program-focused","program"===re)}_setOrigin(Re,re=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Re,this._originFromTouchInteraction="touch"===Re&&re,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Re,re){const we=this._elementInfo.get(re),st=(0,C.sA)(Re);!we||!we.checkChildren&&re!==st||this._originChanged(re,this._getFocusOrigin(st),we)}_onBlur(Re,re){const we=this._elementInfo.get(re);!we||we.checkChildren&&Re.relatedTarget instanceof Node&&re.contains(Re.relatedTarget)||(this._setClasses(re),this._emitOrigin(we,null))}_emitOrigin(Re,re){Re.subject.observers.length&&this._ngZone.run(()=>Re.subject.next(re))}_registerGlobalListeners(Re){if(!this._platform.isBrowser)return;const re=Re.rootNode,we=this._rootNodeFocusListenerCount.get(re)||0;we||this._ngZone.runOutsideAngular(()=>{re.addEventListener("focus",this._rootNodeFocusAndBlurListener,c),re.addEventListener("blur",this._rootNodeFocusAndBlurListener,c)}),this._rootNodeFocusListenerCount.set(re,we+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,z.R)(this._stopInputModalityDetector)).subscribe(st=>{this._setOrigin(st,!0)}))}_removeGlobalListeners(Re){const re=Re.rootNode;if(this._rootNodeFocusListenerCount.has(re)){const we=this._rootNodeFocusListenerCount.get(re);we>1?this._rootNodeFocusListenerCount.set(re,we-1):(re.removeEventListener("focus",this._rootNodeFocusAndBlurListener,c),re.removeEventListener("blur",this._rootNodeFocusAndBlurListener,c),this._rootNodeFocusListenerCount.delete(re))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Re,re,we){this._setClasses(Re,re),this._emitOrigin(we,re),this._lastFocusOrigin=re}_getClosestElementsInfo(Re){const re=[];return this._elementInfo.forEach((we,st)=>{(st===Re||we.checkChildren&&st.contains(Re))&&re.push([st,we])}),re}_isLastInteractionFromInputLabel(Re){const{_mostRecentTarget:re,mostRecentModality:we}=this._inputModalityDetector;if("mouse"!==we||!re||re===Re||"INPUT"!==Re.nodeName&&"TEXTAREA"!==Re.nodeName||Re.disabled)return!1;const st=Re.labels;if(st)for(let Ke=0;Ke{class He{constructor(Re,re){this._elementRef=Re,this._focusMonitor=re,this.cdkFocusChange=new A.vpe}ngAfterViewInit(){const Re=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Re,1===Re.nodeType&&Re.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(re=>this.cdkFocusChange.emit(re))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return He.\u0275fac=function(Re){return new(Re||He)(A.Y36(A.SBq),A.Y36(S))},He.\u0275dir=A.lG2({type:He,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),He})();const ht="cdk-high-contrast-black-on-white",We="cdk-high-contrast-white-on-black",et="cdk-high-contrast-active";let ne=(()=>{class He{constructor(Re,re){this._platform=Re,this._document=re,this._breakpointSubscription=(0,A.f3M)(pe.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Re=this._document.createElement("div");Re.style.backgroundColor="rgb(1,2,3)",Re.style.position="absolute",this._document.body.appendChild(Re);const re=this._document.defaultView||window,we=re&&re.getComputedStyle?re.getComputedStyle(Re):null,st=(we&&we.backgroundColor||"").replace(/ /g,"");switch(Re.remove(),st){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Re=this._document.body.classList;Re.remove(et,ht,We),this._hasCheckedHighContrastMode=!0;const re=this.getHighContrastMode();1===re?Re.add(et,ht):2===re&&Re.add(et,We)}}}return He.\u0275fac=function(Re){return new(Re||He)(A.LFG(C.t4),A.LFG(e.K0))},He.\u0275prov=A.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})(),Ue=(()=>{class He{constructor(Re){Re._applyBodyHighContrastModeCssClasses()}}return He.\u0275fac=function(Re){return new(Re||He)(A.LFG(ne))},He.\u0275mod=A.oAB({type:He}),He.\u0275inj=A.cJS({imports:[Te.Q8]}),He})()},40445:(Xe,ue,p)=>{"use strict";p.d(ue,{Is:()=>D,vT:()=>R});var e=p(94650),A=p(36895);const C=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function M(){return(0,e.f3M)(A.K0)}}),m=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let D=(()=>{class B{constructor(L){if(this.value="ltr",this.change=new e.vpe,L){const q=L.documentElement?L.documentElement.dir:null;this.value=function b(B){var w;const L=B?.toLowerCase()||"";return"auto"===L&&typeof navigator<"u"&&null!==(w=navigator)&&void 0!==w&&w.language?m.test(navigator.language)?"rtl":"ltr":"rtl"===L?"rtl":"ltr"}((L.body?L.body.dir:null)||q||"ltr")}}ngOnDestroy(){this.change.complete()}}return B.\u0275fac=function(L){return new(L||B)(e.LFG(C,8))},B.\u0275prov=e.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),R=(()=>{class B{}return B.\u0275fac=function(L){return new(L||B)},B.\u0275mod=e.oAB({type:B}),B.\u0275inj=e.cJS({}),B})()},64425:(Xe,ue,p)=>{"use strict";p.d(ue,{Iq:()=>D,TU:()=>M,i3:()=>b});var e=p(36895),A=p(94650);class C{constructor(R,B){this._document=B;const w=this._textarea=this._document.createElement("textarea"),L=w.style;L.position="fixed",L.top=L.opacity="0",L.left="-999em",w.setAttribute("aria-hidden","true"),w.value=R,w.readOnly=!0,this._document.body.appendChild(w)}copy(){const R=this._textarea;let B=!1;try{if(R){const w=this._document.activeElement;R.select(),R.setSelectionRange(0,R.value.length),B=this._document.execCommand("copy"),w&&w.focus()}}catch{}return B}destroy(){const R=this._textarea;R&&(R.remove(),this._textarea=void 0)}}let M=(()=>{class v{constructor(B){this._document=B}copy(B){const w=this.beginCopy(B),L=w.copy();return w.destroy(),L}beginCopy(B){return new C(B,this._document)}}return v.\u0275fac=function(B){return new(B||v)(A.LFG(e.K0))},v.\u0275prov=A.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})();const m=new A.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let b=(()=>{class v{constructor(B,w,L){this._clipboard=B,this._ngZone=w,this.text="",this.attempts=1,this.copied=new A.vpe,this._pending=new Set,L&&null!=L.attempts&&(this.attempts=L.attempts)}copy(B=this.attempts){if(B>1){let w=B;const L=this._clipboard.beginCopy(this.text);this._pending.add(L);const O=()=>{const q=L.copy();q||!--w||this._destroyed?(this._currentTimeout=null,this._pending.delete(L),L.destroy(),this.copied.emit(q)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(O,1))};O()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(B=>B.destroy()),this._pending.clear(),this._destroyed=!0}}return v.\u0275fac=function(B){return new(B||v)(A.Y36(M),A.Y36(A.R0b),A.Y36(m,8))},v.\u0275dir=A.lG2({type:v,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(B,w){1&B&&A.NdJ("click",function(){return w.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),v})(),D=(()=>{class v{}return v.\u0275fac=function(B){return new(B||v)},v.\u0275mod=A.oAB({type:v}),v.\u0275inj=A.cJS({}),v})()},21281:(Xe,ue,p)=>{"use strict";p.d(ue,{Eq:()=>m,HM:()=>b,Ig:()=>A,du:()=>v,fI:()=>D,su:()=>C,t6:()=>M});var e=p(94650);function A(R){return null!=R&&"false"!=`${R}`}function C(R,B=0){return M(R)?Number(R):B}function M(R){return!isNaN(parseFloat(R))&&!isNaN(Number(R))}function m(R){return Array.isArray(R)?R:[R]}function b(R){return null==R?"":"string"==typeof R?R:`${R}px`}function D(R){return R instanceof e.SBq?R.nativeElement:R}function v(R,B=/\s+/){const w=[];if(null!=R){const L=Array.isArray(R)?R:`${R}`.split(B);for(const O of L){const q=`${O}`.trim();q&&w.push(q)}}return w}},95017:(Xe,ue,p)=>{"use strict";p.d(ue,{A8:()=>L,Ov:()=>B,P3:()=>D,Z9:()=>b,eX:()=>R,k:()=>O,o2:()=>m,yy:()=>v});var e=p(45191),A=p(39646),C=p(77579),M=p(94650);class m{}function b(q){return q&&"function"==typeof q.connect}class D extends m{constructor(ee){super(),this._data=ee}connect(){return(0,e.b)(this._data)?this._data:(0,A.of)(this._data)}disconnect(){}}class v{applyChanges(ee,z,ie,Te,pe){ee.forEachOperation((Le,T,W)=>{let F,V;if(null==Le.previousIndex){const Q=ie(Le,T,W);F=z.createEmbeddedView(Q.templateRef,Q.context,Q.index),V=1}else null==W?(z.remove(T),V=3):(F=z.get(T),z.move(F,W),V=2);var te;pe&&pe({context:null===(te=F)||void 0===te?void 0:te.context,operation:V,record:Le})})}detach(){}}class R{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(ee,z,ie,Te,pe){ee.forEachOperation((Le,T,W)=>{let F,V;var te;null==Le.previousIndex?(F=this._insertView(()=>ie(Le,T,W),W,z,Te(Le)),V=F?1:0):null==W?(this._detachAndCacheView(T,z),V=3):(F=this._moveView(T,W,z,Te(Le)),V=2),pe&&pe({context:null===(te=F)||void 0===te?void 0:te.context,operation:V,record:Le})})}detach(){for(const ee of this._viewCache)ee.destroy();this._viewCache=[]}_insertView(ee,z,ie,Te){const pe=this._insertViewFromCache(z,ie);if(pe)return void(pe.context.$implicit=Te);const Le=ee();return ie.createEmbeddedView(Le.templateRef,Le.context,Le.index)}_detachAndCacheView(ee,z){const ie=z.detach(ee);this._maybeCacheView(ie,z)}_moveView(ee,z,ie,Te){const pe=ie.get(ee);return ie.move(pe,z),pe.context.$implicit=Te,pe}_maybeCacheView(ee,z){if(this._viewCache.lengththis._markSelected(pe)):this._markSelected(z[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...ee){this._verifyValueAssignment(ee),ee.forEach(ie=>this._markSelected(ie));const z=this._hasQueuedChanges();return this._emitChangeEvent(),z}deselect(...ee){this._verifyValueAssignment(ee),ee.forEach(ie=>this._unmarkSelected(ie));const z=this._hasQueuedChanges();return this._emitChangeEvent(),z}setSelection(...ee){this._verifyValueAssignment(ee);const z=this.selected,ie=new Set(ee);ee.forEach(pe=>this._markSelected(pe)),z.filter(pe=>!ie.has(pe)).forEach(pe=>this._unmarkSelected(pe));const Te=this._hasQueuedChanges();return this._emitChangeEvent(),Te}toggle(ee){return this.isSelected(ee)?this.deselect(ee):this.select(ee)}clear(ee=!0){this._unmarkAll();const z=this._hasQueuedChanges();return ee&&this._emitChangeEvent(),z}isSelected(ee){if(this.compareWith){for(const z of this._selection)if(this.compareWith(z,ee))return!0;return!1}return this._selection.has(ee)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(ee){this._multiple&&this.selected&&this._selected.sort(ee)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(ee){this.isSelected(ee)||(this._multiple||this._unmarkAll(),this.isSelected(ee)||this._selection.add(ee),this._emitChanges&&this._selectedToEmit.push(ee))}_unmarkSelected(ee){this.isSelected(ee)&&(this._selection.delete(ee),this._emitChanges&&this._deselectedToEmit.push(ee))}_unmarkAll(){this.isEmpty()||this._selection.forEach(ee=>this._unmarkSelected(ee))}_verifyValueAssignment(ee){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let L=(()=>{class q{constructor(){this._listeners=[]}notify(z,ie){for(let Te of this._listeners)Te(z,ie)}listen(z){return this._listeners.push(z),()=>{this._listeners=this._listeners.filter(ie=>z!==ie)}}ngOnDestroy(){this._listeners=[]}}return q.\u0275fac=function(z){return new(z||q)},q.\u0275prov=M.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"}),q})();const O=new M.OlP("_ViewRepeater")},73555:(Xe,ue,p)=>{"use strict";p.d(ue,{Wj:()=>c,Zt:()=>He,_t:()=>Oe,bA:()=>X});var e=p(94650),A=p(36895),C=p(67376),M=p(83353),m=p(21281),b=p(12687),D=p(77579),v=p(50727),R=p(17445),B=p(66406),w=p(69751),L=p(56451),O=p(82722),q=p(68675),ee=p(54004),z=p(95698),ie=p(18505),Te=p(63900),pe=p(40445);function Le(Re,re,we){for(let st in re)if(re.hasOwnProperty(st)){const Ke=re[st];Ke?Re.setProperty(st,Ke,null!=we&&we.has(st)?"important":""):Re.removeProperty(st)}return Re}function T(Re,re){const we=re?"":"none";Le(Re.style,{"touch-action":re?"":"none","-webkit-user-drag":re?"":"none","-webkit-tap-highlight-color":re?"":"transparent","user-select":we,"-ms-user-select":we,"-webkit-user-select":we,"-moz-user-select":we})}function W(Re,re,we){Le(Re.style,{position:re?"":"fixed",top:re?"":"0",opacity:re?"":"0",left:re?"":"-999em"},we)}function F(Re,re){return re&&"none"!=re?Re+" "+re:Re}function V(Re){const re=Re.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Re)*re}function Q(Re,re){return Re.getPropertyValue(re).split(",").map(st=>st.trim())}function Ee(Re){const re=Re.getBoundingClientRect();return{top:re.top,right:re.right,bottom:re.bottom,left:re.left,width:re.width,height:re.height,x:re.x,y:re.y}}function ge(Re,re,we){const{top:st,bottom:Ke,left:Et,right:ke}=Re;return we>=st&&we<=Ke&&re>=Et&&re<=ke}function ve(Re,re,we){Re.top+=re,Re.bottom=Re.top+Re.height,Re.left+=we,Re.right=Re.left+Re.width}function De(Re,re,we,st){const{top:Ke,right:Et,bottom:ke,left:at,width:It,height:jt}=Re,an=It*re,Kt=jt*re;return st>Ke-Kt&&stat-an&&we{this.positions.set(we,{scrollPosition:{top:we.scrollTop,left:we.scrollLeft},clientRect:Ee(we)})})}handleScroll(re){const we=(0,M.sA)(re),st=this.positions.get(we);if(!st)return null;const Ke=st.scrollPosition;let Et,ke;if(we===this._document){const jt=this.getViewportScrollPosition();Et=jt.top,ke=jt.left}else Et=we.scrollTop,ke=we.scrollLeft;const at=Ke.top-Et,It=Ke.left-ke;return this.positions.forEach((jt,an)=>{jt.clientRect&&we!==an&&we.contains(an)&&ve(jt.clientRect,at,It)}),Ke.top=Et,Ke.left=ke,{top:at,left:It}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Ye(Re){const re=Re.cloneNode(!0),we=re.querySelectorAll("[id]"),st=Re.nodeName.toLowerCase();re.removeAttribute("id");for(let Ke=0;Ke{if(this.beforeStarted.next(),this._handles.length){const It=this._getTargetHandle(at);It&&!this._disabledHandles.has(It)&&!this.disabled&&this._initializeDragSequence(It,at)}else this.disabled||this._initializeDragSequence(this._rootElement,at)},this._pointerMove=at=>{const It=this._getPointerPositionOnPage(at);if(!this._hasStartedDragging){if(Math.abs(It.x-this._pickupPositionOnPage.x)+Math.abs(It.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const Cn=Date.now()>=this._dragStartTime+this._getDragStartDelay(at),Tt=this._dropContainer;if(!Cn)return void this._endDragSequence(at);(!Tt||!Tt.isDragging()&&!Tt.isReceiving())&&(at.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(at)))}return}at.preventDefault();const jt=this._getConstrainedPointerPosition(It);if(this._hasMoved=!0,this._lastKnownPointerPosition=It,this._updatePointerDirectionDelta(jt),this._dropContainer)this._updateActiveDropContainer(jt,It);else{const an=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,Kt=this._activeTransform;Kt.x=jt.x-an.x+this._passiveTransform.x,Kt.y=jt.y-an.y+this._passiveTransform.y,this._applyRootElementTransform(Kt.x,Kt.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:jt,event:at,distance:this._getDragDistance(jt),delta:this._pointerDirectionDelta})})},this._pointerUp=at=>{this._endDragSequence(at)},this._nativeDragStart=at=>{if(this._handles.length){const It=this._getTargetHandle(at);It&&!this._disabledHandles.has(It)&&!this.disabled&&at.preventDefault()}else this.disabled||at.preventDefault()},this.withRootElement(re).withParent(we.parentDragRef||null),this._parentPositions=new he(st),ke.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(re){const we=(0,m.Ig)(re);we!==this._disabled&&(this._disabled=we,this._toggleNativeDragInteractions(),this._handles.forEach(st=>T(st,we)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(re){this._handles=re.map(st=>(0,m.fI)(st)),this._handles.forEach(st=>T(st,this.disabled)),this._toggleNativeDragInteractions();const we=new Set;return this._disabledHandles.forEach(st=>{this._handles.indexOf(st)>-1&&we.add(st)}),this._disabledHandles=we,this}withPreviewTemplate(re){return this._previewTemplate=re,this}withPlaceholderTemplate(re){return this._placeholderTemplate=re,this}withRootElement(re){const we=(0,m.fI)(re);return we!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{we.addEventListener("mousedown",this._pointerDown,be),we.addEventListener("touchstart",this._pointerDown,N),we.addEventListener("dragstart",this._nativeDragStart,be)}),this._initialTransform=void 0,this._rootElement=we),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(re){return this._boundaryElement=re?(0,m.fI)(re):null,this._resizeSubscription.unsubscribe(),re&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(re){return this._parentDragRef=re,this}dispose(){var re,we;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(we=this._rootElement)||void 0===we||we.remove()),null===(re=this._anchor)||void 0===re||re.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(re){!this._disabledHandles.has(re)&&this._handles.indexOf(re)>-1&&(this._disabledHandles.add(re),T(re,!0))}enableHandle(re){this._disabledHandles.has(re)&&(this._disabledHandles.delete(re),T(re,this.disabled))}withDirection(re){return this._direction=re,this}_withDropContainer(re){this._dropContainer=re}getFreeDragPosition(){const re=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:re.x,y:re.y}}setFreeDragPosition(re){return this._activeTransform={x:0,y:0},this._passiveTransform.x=re.x,this._passiveTransform.y=re.y,this._dropContainer||this._applyRootElementTransform(re.x,re.y),this}withPreviewContainer(re){return this._previewContainer=re,this}_sortFromLastPointerPosition(){const re=this._lastKnownPointerPosition;re&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(re),re)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var re,we;null===(re=this._preview)||void 0===re||re.remove(),null===(we=this._previewRef)||void 0===we||we.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var re,we;null===(re=this._placeholder)||void 0===re||re.remove(),null===(we=this._placeholderRef)||void 0===we||we.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(re){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:re}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(re),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const we=this._getPointerPositionOnPage(re);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(we),dropPoint:we,event:re})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(re){ut(re)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const we=this._dropContainer;if(we){const st=this._rootElement,Ke=st.parentNode,Et=this._placeholder=this._createPlaceholderElement(),ke=this._anchor=this._anchor||this._document.createComment(""),at=this._getShadowRoot();Ke.insertBefore(ke,st),this._initialTransform=st.style.transform||"",this._preview=this._createPreviewElement(),W(st,!1,de),this._document.body.appendChild(Ke.replaceChild(Et,st)),this._getPreviewInsertionPoint(Ke,at).appendChild(this._preview),this.started.next({source:this,event:re}),we.start(),this._initialContainer=we,this._initialIndex=we.getItemIndex(this)}else this.started.next({source:this,event:re}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(we?we.getScrollableParents():[])}_initializeDragSequence(re,we){this._parentDragRef&&we.stopPropagation();const st=this.isDragging(),Ke=ut(we),Et=!Ke&&0!==we.button,ke=this._rootElement,at=(0,M.sA)(we),It=!Ke&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),jt=Ke?(0,b.yG)(we):(0,b.X6)(we);if(at&&at.draggable&&"mousedown"===we.type&&we.preventDefault(),st||Et||It||jt)return;if(this._handles.length){const on=ke.style;this._rootElementTapHighlight=on.webkitTapHighlightColor||"",on.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(on=>this._updateOnScroll(on)),this._boundaryElement&&(this._boundaryRect=Ee(this._boundaryElement));const an=this._previewTemplate;this._pickupPositionInElement=an&&an.template&&!an.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,re,we);const Kt=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(we);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Kt.x,y:Kt.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,we)}_cleanupDragArtifacts(re){W(this._rootElement,!0,de),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const we=this._dropContainer,st=we.getItemIndex(this),Ke=this._getPointerPositionOnPage(re),Et=this._getDragDistance(Ke),ke=we._isOverContainer(Ke.x,Ke.y);this.ended.next({source:this,distance:Et,dropPoint:Ke,event:re}),this.dropped.next({item:this,currentIndex:st,previousIndex:this._initialIndex,container:we,previousContainer:this._initialContainer,isPointerOverContainer:ke,distance:Et,dropPoint:Ke,event:re}),we.drop(this,st,this._initialIndex,this._initialContainer,ke,Et,Ke),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:re,y:we},{x:st,y:Ke}){let Et=this._initialContainer._getSiblingContainerFromPosition(this,re,we);!Et&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(re,we)&&(Et=this._initialContainer),Et&&Et!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=Et,this._dropContainer.enter(this,re,we,Et===this._initialContainer&&Et.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:Et,currentIndex:Et.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(st,Ke),this._dropContainer._sortItem(this,re,we,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(re,we):this._applyPreviewTransform(re-this._pickupPositionInElement.x,we-this._pickupPositionInElement.y))}_createPreviewElement(){const re=this._previewTemplate,we=this.previewClass,st=re?re.template:null;let Ke;if(st&&re){const Et=re.matchSize?this._initialClientRect:null,ke=re.viewContainer.createEmbeddedView(st,re.context);ke.detectChanges(),Ke=tt(ke,this._document),this._previewRef=ke,re.matchSize?vt(Ke,Et):Ke.style.transform=ot(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else Ke=Ye(this._rootElement),vt(Ke,this._initialClientRect),this._initialTransform&&(Ke.style.transform=this._initialTransform);return Le(Ke.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},de),T(Ke,!1),Ke.classList.add("cdk-drag-preview"),Ke.setAttribute("dir",this._direction),we&&(Array.isArray(we)?we.forEach(Et=>Ke.classList.add(Et)):Ke.classList.add(we)),Ke}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const re=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(re.left,re.top);const we=function te(Re){const re=getComputedStyle(Re),we=Q(re,"transition-property"),st=we.find(at=>"transform"===at||"all"===at);if(!st)return 0;const Ke=we.indexOf(st),Et=Q(re,"transition-duration"),ke=Q(re,"transition-delay");return V(Et[Ke])+V(ke[Ke])}(this._preview);return 0===we?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(st=>{const Ke=ke=>{var at;(!ke||(0,M.sA)(ke)===this._preview&&"transform"===ke.propertyName)&&(null===(at=this._preview)||void 0===at||at.removeEventListener("transitionend",Ke),st(),clearTimeout(Et))},Et=setTimeout(Ke,1.5*we);this._preview.addEventListener("transitionend",Ke)}))}_createPlaceholderElement(){const re=this._placeholderTemplate,we=re?re.template:null;let st;return we?(this._placeholderRef=re.viewContainer.createEmbeddedView(we,re.context),this._placeholderRef.detectChanges(),st=tt(this._placeholderRef,this._document)):st=Ye(this._rootElement),st.style.pointerEvents="none",st.classList.add("cdk-drag-placeholder"),st}_getPointerPositionInElement(re,we,st){const Ke=we===this._rootElement?null:we,Et=Ke?Ke.getBoundingClientRect():re,ke=ut(st)?st.targetTouches[0]:st,at=this._getViewportScrollPosition();return{x:Et.left-re.left+(ke.pageX-Et.left-at.left),y:Et.top-re.top+(ke.pageY-Et.top-at.top)}}_getPointerPositionOnPage(re){const we=this._getViewportScrollPosition(),st=ut(re)?re.touches[0]||re.changedTouches[0]||{pageX:0,pageY:0}:re,Ke=st.pageX-we.left,Et=st.pageY-we.top;if(this._ownerSVGElement){const ke=this._ownerSVGElement.getScreenCTM();if(ke){const at=this._ownerSVGElement.createSVGPoint();return at.x=Ke,at.y=Et,at.matrixTransform(ke.inverse())}}return{x:Ke,y:Et}}_getConstrainedPointerPosition(re){const we=this._dropContainer?this._dropContainer.lockAxis:null;let{x:st,y:Ke}=this.constrainPosition?this.constrainPosition(re,this,this._initialClientRect,this._pickupPositionInElement):re;if("x"===this.lockAxis||"x"===we?Ke=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===we)&&(st=this._pickupPositionOnPage.x),this._boundaryRect){const{x:Et,y:ke}=this._pickupPositionInElement,at=this._boundaryRect,{width:It,height:jt}=this._getPreviewRect(),an=at.top+ke,Kt=at.bottom-(jt-ke);st=Fe(st,at.left+Et,at.right-(It-Et)),Ke=Fe(Ke,an,Kt)}return{x:st,y:Ke}}_updatePointerDirectionDelta(re){const{x:we,y:st}=re,Ke=this._pointerDirectionDelta,Et=this._pointerPositionAtLastDirectionChange,ke=Math.abs(we-Et.x),at=Math.abs(st-Et.y);return ke>this._config.pointerDirectionChangeThreshold&&(Ke.x=we>Et.x?1:-1,Et.x=we),at>this._config.pointerDirectionChangeThreshold&&(Ke.y=st>Et.y?1:-1,Et.y=st),Ke}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const re=this._handles.length>0||!this.isDragging();re!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=re,T(this._rootElement,re))}_removeRootElementListeners(re){re.removeEventListener("mousedown",this._pointerDown,be),re.removeEventListener("touchstart",this._pointerDown,N),re.removeEventListener("dragstart",this._nativeDragStart,be)}_applyRootElementTransform(re,we){const st=ot(re,we),Ke=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=Ke.transform&&"none"!=Ke.transform?Ke.transform:""),Ke.transform=F(st,this._initialTransform)}_applyPreviewTransform(re,we){var st;const Ke=null!==(st=this._previewTemplate)&&void 0!==st&&st.template?void 0:this._initialTransform,Et=ot(re,we);this._preview.style.transform=F(Et,Ke)}_getDragDistance(re){const we=this._pickupPositionOnPage;return we?{x:re.x-we.x,y:re.y-we.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:re,y:we}=this._passiveTransform;if(0===re&&0===we||this.isDragging()||!this._boundaryElement)return;const st=this._rootElement.getBoundingClientRect(),Ke=this._boundaryElement.getBoundingClientRect();if(0===Ke.width&&0===Ke.height||0===st.width&&0===st.height)return;const Et=Ke.left-st.left,ke=st.right-Ke.right,at=Ke.top-st.top,It=st.bottom-Ke.bottom;Ke.width>st.width?(Et>0&&(re+=Et),ke>0&&(re-=ke)):re=0,Ke.height>st.height?(at>0&&(we+=at),It>0&&(we-=It)):we=0,(re!==this._passiveTransform.x||we!==this._passiveTransform.y)&&this.setFreeDragPosition({y:we,x:re})}_getDragStartDelay(re){const we=this.dragStartDelay;return"number"==typeof we?we:ut(re)?we.touch:we?we.mouse:0}_updateOnScroll(re){const we=this._parentPositions.handleScroll(re);if(we){const st=(0,M.sA)(re);this._boundaryRect&&st!==this._boundaryElement&&st.contains(this._boundaryElement)&&ve(this._boundaryRect,we.top,we.left),this._pickupPositionOnPage.x+=we.left,this._pickupPositionOnPage.y+=we.top,this._dropContainer||(this._activeTransform.x-=we.left,this._activeTransform.y-=we.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var re;return(null===(re=this._parentPositions.positions.get(this._document))||void 0===re?void 0:re.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,M.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(re,we){const st=this._previewContainer||"global";if("parent"===st)return re;if("global"===st){const Ke=this._document;return we||Ke.fullscreenElement||Ke.webkitFullscreenElement||Ke.mozFullScreenElement||Ke.msFullscreenElement||Ke.body}return(0,m.fI)(st)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(re){return this._handles.find(we=>re.target&&(re.target===we||we.contains(re.target)))}}function ot(Re,re){return`translate3d(${Math.round(Re)}px, ${Math.round(re)}px, 0)`}function Fe(Re,re,we){return Math.max(re,Math.min(we,Re))}function ut(Re){return"t"===Re.type[0]}function tt(Re,re){const we=Re.rootNodes;if(1===we.length&&we[0].nodeType===re.ELEMENT_NODE)return we[0];const st=re.createElement("div");return we.forEach(Ke=>st.appendChild(Ke)),st}function vt(Re,re){Re.style.width=`${re.width}px`,Re.style.height=`${re.height}px`,Re.style.transform=ot(re.left,re.top)}function X(Re,re,we){const st=ye(re,Re.length-1),Ke=ye(we,Re.length-1);if(st===Ke)return;const Et=Re[st],ke=Ke0)return null;const at="horizontal"===this.orientation,It=Et.findIndex(Ze=>Ze.drag===re),jt=Et[ke],Kt=jt.clientRect,on=It>ke?1:-1,Cn=this._getItemOffsetPx(Et[It].clientRect,Kt,on),Tt=this._getSiblingOffsetPx(It,Et,on),Dt=Et.slice();return X(Et,It,ke),Et.forEach((Ze,wt)=>{if(Dt[wt]===Ze)return;const Ft=Ze.drag===re,ln=Ft?Cn:Tt,bn=Ft?re.getPlaceholderElement():Ze.drag.getRootElement();Ze.offset+=ln,at?(bn.style.transform=F(`translate3d(${Math.round(Ze.offset)}px, 0, 0)`,Ze.initialTransform),ve(Ze.clientRect,0,ln)):(bn.style.transform=F(`translate3d(0, ${Math.round(Ze.offset)}px, 0)`,Ze.initialTransform),ve(Ze.clientRect,ln,0))}),this._previousSwap.overlaps=ge(Kt,we,st),this._previousSwap.drag=jt.drag,this._previousSwap.delta=at?Ke.x:Ke.y,{previousIndex:It,currentIndex:ke}}enter(re,we,st,Ke){const Et=null==Ke||Ke<0?this._getItemIndexFromPointerPosition(re,we,st):Ke,ke=this._activeDraggables,at=ke.indexOf(re),It=re.getPlaceholderElement();let jt=ke[Et];if(jt===re&&(jt=ke[Et+1]),!jt&&(null==Et||-1===Et||Et-1&&ke.splice(at,1),jt&&!this._dragDropRegistry.isDragging(jt)){const an=jt.getRootElement();an.parentElement.insertBefore(It,an),ke.splice(Et,0,re)}else(0,m.fI)(this._element).appendChild(It),ke.push(re);It.style.transform="",this._cacheItemPositions()}withItems(re){this._activeDraggables=re.slice(),this._cacheItemPositions()}withSortPredicate(re){this._sortPredicate=re}reset(){this._activeDraggables.forEach(re=>{const we=re.getRootElement();if(we){var st;const Ke=null===(st=this._itemPositions.find(Et=>Et.drag===re))||void 0===st?void 0:st.initialTransform;we.style.transform=Ke||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(re){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(st=>st.drag===re)}updateOnScroll(re,we){this._itemPositions.forEach(({clientRect:st})=>{ve(st,re,we)}),this._itemPositions.forEach(({drag:st})=>{this._dragDropRegistry.isDragging(st)&&st._sortFromLastPointerPosition()})}_cacheItemPositions(){const re="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(we=>{const st=we.getVisibleElement();return{drag:we,offset:0,initialTransform:st.style.transform||"",clientRect:Ee(st)}}).sort((we,st)=>re?we.clientRect.left-st.clientRect.left:we.clientRect.top-st.clientRect.top)}_getItemOffsetPx(re,we,st){const Ke="horizontal"===this.orientation;let Et=Ke?we.left-re.left:we.top-re.top;return-1===st&&(Et+=Ke?we.width-re.width:we.height-re.height),Et}_getSiblingOffsetPx(re,we,st){const Ke="horizontal"===this.orientation,Et=we[re].clientRect,ke=we[re+-1*st];let at=Et[Ke?"width":"height"]*st;if(ke){const It=Ke?"left":"top",jt=Ke?"right":"bottom";-1===st?at-=ke.clientRect[It]-Et[jt]:at+=Et[It]-ke.clientRect[jt]}return at}_shouldEnterAsFirstChild(re,we){if(!this._activeDraggables.length)return!1;const st=this._itemPositions,Ke="horizontal"===this.orientation;if(st[0].drag!==this._activeDraggables[0]){const ke=st[st.length-1].clientRect;return Ke?re>=ke.right:we>=ke.bottom}{const ke=st[0].clientRect;return Ke?re<=ke.left:we<=ke.top}}_getItemIndexFromPointerPosition(re,we,st,Ke){const Et="horizontal"===this.orientation,ke=this._itemPositions.findIndex(({drag:at,clientRect:It})=>{if(at===re)return!1;if(Ke){const jt=Et?Ke.x:Ke.y;if(at===this._previousSwap.drag&&this._previousSwap.overlaps&&jt===this._previousSwap.delta)return!1}return Et?we>=Math.floor(It.left)&&we=Math.floor(It.top)&&st!0,this.sortPredicate=()=>!0,this.beforeStarted=new D.x,this.entered=new D.x,this.exited=new D.x,this.dropped=new D.x,this.sorted=new D.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=v.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new D.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,R.F)(0,B.Z).pipe((0,O.R)(this._stopScrollTimers)).subscribe(()=>{const ke=this._scrollNode,at=this.autoScrollStep;1===this._verticalScrollDirection?ke.scrollBy(0,-at):2===this._verticalScrollDirection&&ke.scrollBy(0,at),1===this._horizontalScrollDirection?ke.scrollBy(-at,0):2===this._horizontalScrollDirection&&ke.scrollBy(at,0)})},this.element=(0,m.fI)(re),this._document=st,this.withScrollableParents([this.element]),we.registerDropContainer(this),this._parentPositions=new he(st),this._sortStrategy=new _e(this.element,we),this._sortStrategy.withSortPredicate((ke,at)=>this.sortPredicate(ke,at,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(re,we,st,Ke){this._draggingStarted(),null==Ke&&this.sortingDisabled&&(Ke=this._draggables.indexOf(re)),this._sortStrategy.enter(re,we,st,Ke),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:re,container:this,currentIndex:this.getItemIndex(re)})}exit(re){this._reset(),this.exited.next({item:re,container:this})}drop(re,we,st,Ke,Et,ke,at,It={}){this._reset(),this.dropped.next({item:re,currentIndex:we,previousIndex:st,container:this,previousContainer:Ke,isPointerOverContainer:Et,distance:ke,dropPoint:at,event:It})}withItems(re){const we=this._draggables;return this._draggables=re,re.forEach(st=>st._withDropContainer(this)),this.isDragging()&&(we.filter(Ke=>Ke.isDragging()).every(Ke=>-1===re.indexOf(Ke))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(re){return this._sortStrategy.direction=re,this}connectedTo(re){return this._siblings=re.slice(),this}withOrientation(re){return this._sortStrategy.orientation=re,this}withScrollableParents(re){const we=(0,m.fI)(this.element);return this._scrollableElements=-1===re.indexOf(we)?[we,...re]:re.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(re){return this._isDragging?this._sortStrategy.getItemIndex(re):this._draggables.indexOf(re)}isReceiving(){return this._activeSiblings.size>0}_sortItem(re,we,st,Ke){if(this.sortingDisabled||!this._clientRect||!De(this._clientRect,.05,we,st))return;const Et=this._sortStrategy.sort(re,we,st,Ke);Et&&this.sorted.next({previousIndex:Et.previousIndex,currentIndex:Et.currentIndex,container:this,item:re})}_startScrollingIfNecessary(re,we){if(this.autoScrollDisabled)return;let st,Ke=0,Et=0;if(this._parentPositions.positions.forEach((ke,at)=>{at===this._document||!ke.clientRect||st||De(ke.clientRect,.05,re,we)&&([Ke,Et]=function u(Re,re,we,st){const Ke=fe(re,st),Et=r(re,we);let ke=0,at=0;if(Ke){const It=Re.scrollTop;1===Ke?It>0&&(ke=1):Re.scrollHeight-It>Re.clientHeight&&(ke=2)}if(Et){const It=Re.scrollLeft;1===Et?It>0&&(at=1):Re.scrollWidth-It>Re.clientWidth&&(at=2)}return[ke,at]}(at,ke.clientRect,re,we),(Ke||Et)&&(st=at))}),!Ke&&!Et){const{width:ke,height:at}=this._viewportRuler.getViewportSize(),It={width:ke,height:at,top:0,right:ke,bottom:at,left:0};Ke=fe(It,we),Et=r(It,re),st=window}st&&(Ke!==this._verticalScrollDirection||Et!==this._horizontalScrollDirection||st!==this._scrollNode)&&(this._verticalScrollDirection=Ke,this._horizontalScrollDirection=Et,this._scrollNode=st,(Ke||Et)&&st?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const re=(0,m.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=re.msScrollSnapType||re.scrollSnapType||"",re.scrollSnapType=re.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const re=(0,m.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(re).clientRect}_reset(){this._isDragging=!1;const re=(0,m.fI)(this.element).style;re.scrollSnapType=re.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(we=>we._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(re,we){return null!=this._clientRect&&ge(this._clientRect,re,we)}_getSiblingContainerFromPosition(re,we,st){return this._siblings.find(Ke=>Ke._canReceive(re,we,st))}_canReceive(re,we,st){if(!this._clientRect||!ge(this._clientRect,we,st)||!this.enterPredicate(re,this))return!1;const Ke=this._getShadowRoot().elementFromPoint(we,st);if(!Ke)return!1;const Et=(0,m.fI)(this.element);return Ke===Et||Et.contains(Ke)}_startReceiving(re,we){const st=this._activeSiblings;!st.has(re)&&we.every(Ke=>this.enterPredicate(Ke,this)||this._draggables.indexOf(Ke)>-1)&&(st.add(re),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(re){this._activeSiblings.delete(re),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(re=>{if(this.isDragging()){const we=this._parentPositions.handleScroll(re);we&&this._sortStrategy.updateOnScroll(we.top,we.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const re=(0,M.kV)((0,m.fI)(this.element));this._cachedShadowRoot=re||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const re=this._sortStrategy.getActiveItemsSnapshot().filter(we=>we.isDragging());this._siblings.forEach(we=>we._startReceiving(this,re))}}function fe(Re,re){const{top:we,bottom:st,height:Ke}=Re,Et=.05*Ke;return re>=we-Et&&re<=we+Et?1:re>=st-Et&&re<=st+Et?2:0}function r(Re,re){const{left:we,right:st,width:Ke}=Re,Et=.05*Ke;return re>=we-Et&&re<=we+Et?1:re>=st-Et&&re<=st+Et?2:0}const _=(0,M.i$)({passive:!1,capture:!0});let E=(()=>{class Re{constructor(we,st){this._ngZone=we,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=Ke=>Ke.isDragging(),this.pointerMove=new D.x,this.pointerUp=new D.x,this.scroll=new D.x,this._preventDefaultWhileDragging=Ke=>{this._activeDragInstances.length>0&&Ke.preventDefault()},this._persistentTouchmoveListener=Ke=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&Ke.preventDefault(),this.pointerMove.next(Ke))},this._document=st}registerDropContainer(we){this._dropInstances.has(we)||this._dropInstances.add(we)}registerDragItem(we){this._dragInstances.add(we),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,_)})}removeDropContainer(we){this._dropInstances.delete(we)}removeDragItem(we){this._dragInstances.delete(we),this.stopDragging(we),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,_)}startDragging(we,st){if(!(this._activeDragInstances.indexOf(we)>-1)&&(this._activeDragInstances.push(we),1===this._activeDragInstances.length)){const Ke=st.type.startsWith("touch");this._globalListeners.set(Ke?"touchend":"mouseup",{handler:Et=>this.pointerUp.next(Et),options:!0}).set("scroll",{handler:Et=>this.scroll.next(Et),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:_}),Ke||this._globalListeners.set("mousemove",{handler:Et=>this.pointerMove.next(Et),options:_}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((Et,ke)=>{this._document.addEventListener(ke,Et.handler,Et.options)})})}}stopDragging(we){const st=this._activeDragInstances.indexOf(we);st>-1&&(this._activeDragInstances.splice(st,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(we){return this._activeDragInstances.indexOf(we)>-1}scrolled(we){const st=[this.scroll];return we&&we!==this._document&&st.push(new w.y(Ke=>this._ngZone.runOutsideAngular(()=>{const ke=at=>{this._activeDragInstances.length&&Ke.next(at)};return we.addEventListener("scroll",ke,!0),()=>{we.removeEventListener("scroll",ke,!0)}}))),(0,L.T)(...st)}ngOnDestroy(){this._dragInstances.forEach(we=>this.removeDragItem(we)),this._dropInstances.forEach(we=>this.removeDropContainer(we)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((we,st)=>{this._document.removeEventListener(st,we.handler,we.options)}),this._globalListeners.clear()}}return Re.\u0275fac=function(we){return new(we||Re)(e.LFG(e.R0b),e.LFG(A.K0))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();const h={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let a=(()=>{class Re{constructor(we,st,Ke,Et){this._document=we,this._ngZone=st,this._viewportRuler=Ke,this._dragDropRegistry=Et}createDrag(we,st=h){return new xe(we,st,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(we){return new Ce(we,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return Re.\u0275fac=function(we){return new(we||Re)(e.LFG(A.K0),e.LFG(e.R0b),e.LFG(C.rL),e.LFG(E))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();const i=new e.OlP("CDK_DRAG_PARENT"),t=new e.OlP("CdkDropListGroup"),o=new e.OlP("CDK_DRAG_CONFIG");let l=0;const d=new e.OlP("CdkDropList");let c=(()=>{class Re{constructor(we,st,Ke,Et,ke,at,It){this.element=we,this._changeDetectorRef=Ke,this._scrollDispatcher=Et,this._dir=ke,this._group=at,this._destroyed=new D.x,this.connectedTo=[],this.id="cdk-drop-list-"+l++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.sorted=new e.vpe,this._unsortedItems=new Set,this._dropListRef=st.createDropList(we),this._dropListRef.data=this,It&&this._assignDefaults(It),this._dropListRef.enterPredicate=(jt,an)=>this.enterPredicate(jt.data,an.data),this._dropListRef.sortPredicate=(jt,an,Kt)=>this.sortPredicate(jt,an.data,Kt.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),Re._dropLists.push(this),at&&at._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(we){this._dropListRef.disabled=this._disabled=(0,m.Ig)(we)}addItem(we){this._unsortedItems.add(we),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(we){this._unsortedItems.delete(we),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((we,st)=>we._dragRef.getVisibleElement().compareDocumentPosition(st._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const we=Re._dropLists.indexOf(this);we>-1&&Re._dropLists.splice(we,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(we){this._dir&&this._dir.change.pipe((0,q.O)(this._dir.value),(0,O.R)(this._destroyed)).subscribe(st=>we.withDirection(st)),we.beforeStarted.subscribe(()=>{const st=(0,m.Eq)(this.connectedTo).map(Ke=>"string"==typeof Ke?Re._dropLists.find(ke=>ke.id===Ke):Ke);if(this._group&&this._group._items.forEach(Ke=>{-1===st.indexOf(Ke)&&st.push(Ke)}),!this._scrollableParentsResolved){const Ke=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(Et=>Et.getElementRef().nativeElement);this._dropListRef.withScrollableParents(Ke),this._scrollableParentsResolved=!0}we.disabled=this.disabled,we.lockAxis=this.lockAxis,we.sortingDisabled=(0,m.Ig)(this.sortingDisabled),we.autoScrollDisabled=(0,m.Ig)(this.autoScrollDisabled),we.autoScrollStep=(0,m.su)(this.autoScrollStep,2),we.connectedTo(st.filter(Ke=>Ke&&Ke!==this).map(Ke=>Ke._dropListRef)).withOrientation(this.orientation)})}_handleEvents(we){we.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),we.entered.subscribe(st=>{this.entered.emit({container:this,item:st.item.data,currentIndex:st.currentIndex})}),we.exited.subscribe(st=>{this.exited.emit({container:this,item:st.item.data}),this._changeDetectorRef.markForCheck()}),we.sorted.subscribe(st=>{this.sorted.emit({previousIndex:st.previousIndex,currentIndex:st.currentIndex,container:this,item:st.item.data})}),we.dropped.subscribe(st=>{this.dropped.emit({previousIndex:st.previousIndex,currentIndex:st.currentIndex,previousContainer:st.previousContainer.data,container:st.container.data,item:st.item.data,isPointerOverContainer:st.isPointerOverContainer,distance:st.distance,dropPoint:st.dropPoint,event:st.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(we){const{lockAxis:st,draggingDisabled:Ke,sortingDisabled:Et,listAutoScrollDisabled:ke,listOrientation:at}=we;this.disabled=Ke??!1,this.sortingDisabled=Et??!1,this.autoScrollDisabled=ke??!1,this.orientation=at||"vertical",st&&(this.lockAxis=st)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(we=>we._dragRef))}}return Re._dropLists=[],Re.\u0275fac=function(we){return new(we||Re)(e.Y36(e.SBq),e.Y36(a),e.Y36(e.sBO),e.Y36(C.mF),e.Y36(pe.Is,8),e.Y36(t,12),e.Y36(o,8))},Re.\u0275dir=e.lG2({type:Re,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(we,st){2&we&&(e.uIk("id",st.id),e.ekj("cdk-drop-list-disabled",st.disabled)("cdk-drop-list-dragging",st._dropListRef.isDragging())("cdk-drop-list-receiving",st._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[e._Bn([{provide:t,useValue:void 0},{provide:d,useExisting:Re}])]}),Re})();const S=new e.OlP("CdkDragHandle"),ht=new e.OlP("CdkDragPlaceholder"),et=new e.OlP("CdkDragPreview");let He=(()=>{class Re{constructor(we,st,Ke,Et,ke,at,It,jt,an,Kt,on){this.element=we,this.dropContainer=st,this._ngZone=Et,this._viewContainerRef=ke,this._dir=It,this._changeDetectorRef=an,this._selfHandle=Kt,this._parentDrag=on,this._destroyed=new D.x,this.started=new e.vpe,this.released=new e.vpe,this.ended=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.dropped=new e.vpe,this.moved=new w.y(Cn=>{const Tt=this._dragRef.moved.pipe((0,ee.U)(Dt=>({source:this,pointerPosition:Dt.pointerPosition,event:Dt.event,delta:Dt.delta,distance:Dt.distance}))).subscribe(Cn);return()=>{Tt.unsubscribe()}}),this._dragRef=jt.createDrag(we,{dragStartThreshold:at&&null!=at.dragStartThreshold?at.dragStartThreshold:5,pointerDirectionChangeThreshold:at&&null!=at.pointerDirectionChangeThreshold?at.pointerDirectionChangeThreshold:5,zIndex:at?.zIndex}),this._dragRef.data=this,Re._dragInstances.push(this),at&&this._assignDefaults(at),st&&(this._dragRef._withDropContainer(st._dropListRef),st.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(we){this._disabled=(0,m.Ig)(we),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(we){this._dragRef.setFreeDragPosition(we)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,z.q)(1),(0,O.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(we){const st=we.rootElementSelector,Ke=we.freeDragPosition;st&&!st.firstChange&&this._updateRootElement(),Ke&&!Ke.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const we=Re._dragInstances.indexOf(this);we>-1&&Re._dragInstances.splice(we,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const we=this.element.nativeElement;let st=we;var Ke;this.rootElementSelector&&(st=void 0!==we.closest?we.closest(this.rootElementSelector):null===(Ke=we.parentElement)||void 0===Ke?void 0:Ke.closest(this.rootElementSelector)),this._dragRef.withRootElement(st||we)}_getBoundaryElement(){const we=this.boundaryElement;return we?"string"==typeof we?this.element.nativeElement.closest(we):(0,m.fI)(we):null}_syncInputs(we){we.beforeStarted.subscribe(()=>{if(!we.isDragging()){const st=this._dir,Ke=this.dragStartDelay,Et=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,ke=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;we.disabled=this.disabled,we.lockAxis=this.lockAxis,we.dragStartDelay="object"==typeof Ke&&Ke?Ke:(0,m.su)(Ke),we.constrainPosition=this.constrainPosition,we.previewClass=this.previewClass,we.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(Et).withPreviewTemplate(ke).withPreviewContainer(this.previewContainer||"global"),st&&we.withDirection(st.value)}}),we.beforeStarted.pipe((0,z.q)(1)).subscribe(()=>{if(this._parentDrag)return void we.withParent(this._parentDrag._dragRef);let st=this.element.nativeElement.parentElement;for(;st;){if(st.classList.contains("cdk-drag")){var Ke;we.withParent((null===(Ke=Re._dragInstances.find(Et=>Et.element.nativeElement===st))||void 0===Ke?void 0:Ke._dragRef)||null);break}st=st.parentElement}})}_handleEvents(we){we.started.subscribe(st=>{this.started.emit({source:this,event:st.event}),this._changeDetectorRef.markForCheck()}),we.released.subscribe(st=>{this.released.emit({source:this,event:st.event})}),we.ended.subscribe(st=>{this.ended.emit({source:this,distance:st.distance,dropPoint:st.dropPoint,event:st.event}),this._changeDetectorRef.markForCheck()}),we.entered.subscribe(st=>{this.entered.emit({container:st.container.data,item:this,currentIndex:st.currentIndex})}),we.exited.subscribe(st=>{this.exited.emit({container:st.container.data,item:this})}),we.dropped.subscribe(st=>{this.dropped.emit({previousIndex:st.previousIndex,currentIndex:st.currentIndex,previousContainer:st.previousContainer.data,container:st.container.data,isPointerOverContainer:st.isPointerOverContainer,item:this,distance:st.distance,dropPoint:st.dropPoint,event:st.event})})}_assignDefaults(we){const{lockAxis:st,dragStartDelay:Ke,constrainPosition:Et,previewClass:ke,boundaryElement:at,draggingDisabled:It,rootElementSelector:jt,previewContainer:an}=we;this.disabled=It??!1,this.dragStartDelay=Ke||0,st&&(this.lockAxis=st),Et&&(this.constrainPosition=Et),ke&&(this.previewClass=ke),at&&(this.boundaryElement=at),jt&&(this.rootElementSelector=jt),an&&(this.previewContainer=an)}_setupHandlesListener(){this._handles.changes.pipe((0,q.O)(this._handles),(0,ie.b)(we=>{const st=we.filter(Ke=>Ke._parentDrag===this).map(Ke=>Ke.element);this._selfHandle&&this.rootElementSelector&&st.push(this.element),this._dragRef.withHandles(st)}),(0,Te.w)(we=>(0,L.T)(...we.map(st=>st._stateChanges.pipe((0,q.O)(st))))),(0,O.R)(this._destroyed)).subscribe(we=>{const st=this._dragRef,Ke=we.element.nativeElement;we.disabled?st.disableHandle(Ke):st.enableHandle(Ke)})}}return Re._dragInstances=[],Re.\u0275fac=function(we){return new(we||Re)(e.Y36(e.SBq),e.Y36(d,12),e.Y36(A.K0),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(o,8),e.Y36(pe.Is,8),e.Y36(a),e.Y36(e.sBO),e.Y36(S,10),e.Y36(i,12))},Re.\u0275dir=e.lG2({type:Re,selectors:[["","cdkDrag",""]],contentQueries:function(we,st,Ke){if(1&we&&(e.Suo(Ke,et,5),e.Suo(Ke,ht,5),e.Suo(Ke,S,5)),2&we){let Et;e.iGM(Et=e.CRH())&&(st._previewTemplate=Et.first),e.iGM(Et=e.CRH())&&(st._placeholderTemplate=Et.first),e.iGM(Et=e.CRH())&&(st._handles=Et)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(we,st){2&we&&e.ekj("cdk-drag-disabled",st.disabled)("cdk-drag-dragging",st._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[e._Bn([{provide:i,useExisting:Re}]),e.TTD]}),Re})(),Oe=(()=>{class Re{}return Re.\u0275fac=function(we){return new(we||Re)},Re.\u0275mod=e.oAB({type:Re}),Re.\u0275inj=e.cJS({providers:[a],imports:[C.ZD]}),Re})()},29521:(Xe,ue,p)=>{"use strict";p.d(ue,{A:()=>Z,JH:()=>Le,JU:()=>b,K5:()=>m,Ku:()=>O,LH:()=>Te,L_:()=>L,MW:()=>o,Mf:()=>C,OC:()=>At,SV:()=>pe,Sd:()=>z,VM:()=>q,Vb:()=>zi,Z:()=>n,ZH:()=>A,aO:()=>se,b2:()=>Ln,hY:()=>w,jx:()=>D,oh:()=>ie,uR:()=>ee,xE:()=>te,yY:()=>V,zL:()=>v});const A=8,C=9,m=13,b=16,D=17,v=18,w=27,L=32,O=33,q=34,ee=35,z=36,ie=37,Te=38,pe=39,Le=40,V=46,te=48,se=57,Z=65,n=90,o=91,At=188,Ln=224;function zi(qn,...si){return si.length?si.some(Yi=>qn[Yi]):qn.altKey||qn.shiftKey||qn.ctrlKey||qn.metaKey}},62289:(Xe,ue,p)=>{"use strict";p.d(ue,{Yg:()=>Le,u3:()=>W});var e=p(94650),A=p(21281),C=p(77579),M=p(39841),m=p(97272),b=p(69751),D=p(95698),v=p(35684),R=p(78372),B=p(54004),w=p(68675),L=p(82722),O=p(83353);const ee=new Set;let z,ie=(()=>{class F{constructor(te){this._platform=te,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):pe}matchMedia(te){return(this._platform.WEBKIT||this._platform.BLINK)&&function Te(F){if(!ee.has(F))try{z||(z=document.createElement("style"),z.setAttribute("type","text/css"),document.head.appendChild(z)),z.sheet&&(z.sheet.insertRule(`@media ${F} {body{ }}`,0),ee.add(F))}catch(V){console.error(V)}}(te),this._matchMedia(te)}}return F.\u0275fac=function(te){return new(te||F)(e.LFG(O.t4))},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})();function pe(F){return{matches:"all"===F||""===F,media:F,addListener:()=>{},removeListener:()=>{}}}let Le=(()=>{class F{constructor(te,Q){this._mediaMatcher=te,this._zone=Q,this._queries=new Map,this._destroySubject=new C.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(te){return T((0,A.Eq)(te)).some(Ee=>this._registerQuery(Ee).mql.matches)}observe(te){const Ee=T((0,A.Eq)(te)).map(ve=>this._registerQuery(ve).observable);let ge=(0,M.a)(Ee);return ge=(0,m.z)(ge.pipe((0,D.q)(1)),ge.pipe((0,v.T)(1),(0,R.b)(0))),ge.pipe((0,B.U)(ve=>{const De={matches:!1,breakpoints:{}};return ve.forEach(({matches:he,query:Ye})=>{De.matches=De.matches||he,De.breakpoints[Ye]=he}),De}))}_registerQuery(te){if(this._queries.has(te))return this._queries.get(te);const Q=this._mediaMatcher.matchMedia(te),ge={observable:new b.y(ve=>{const De=he=>this._zone.run(()=>ve.next(he));return Q.addListener(De),()=>{Q.removeListener(De)}}).pipe((0,w.O)(Q),(0,B.U)(({matches:ve})=>({query:te,matches:ve})),(0,L.R)(this._destroySubject)),mql:Q};return this._queries.set(te,ge),ge}}return F.\u0275fac=function(te){return new(te||F)(e.LFG(ie),e.LFG(e.R0b))},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})();function T(F){return F.map(V=>V.split(",")).reduce((V,te)=>V.concat(te)).map(V=>V.trim())}const W={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},49643:(Xe,ue,p)=>{"use strict";p.d(ue,{Q8:()=>R,wD:()=>v});var e=p(21281),A=p(94650),C=p(69751),M=p(77579),m=p(78372);let b=(()=>{class B{create(L){return typeof MutationObserver>"u"?null:new MutationObserver(L)}}return B.\u0275fac=function(L){return new(L||B)},B.\u0275prov=A.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),D=(()=>{class B{constructor(L){this._mutationObserverFactory=L,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((L,O)=>this._cleanupObserver(O))}observe(L){const O=(0,e.fI)(L);return new C.y(q=>{const z=this._observeElement(O).subscribe(q);return()=>{z.unsubscribe(),this._unobserveElement(O)}})}_observeElement(L){if(this._observedElements.has(L))this._observedElements.get(L).count++;else{const O=new M.x,q=this._mutationObserverFactory.create(ee=>O.next(ee));q&&q.observe(L,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(L,{observer:q,stream:O,count:1})}return this._observedElements.get(L).stream}_unobserveElement(L){this._observedElements.has(L)&&(this._observedElements.get(L).count--,this._observedElements.get(L).count||this._cleanupObserver(L))}_cleanupObserver(L){if(this._observedElements.has(L)){const{observer:O,stream:q}=this._observedElements.get(L);O&&O.disconnect(),q.complete(),this._observedElements.delete(L)}}}return B.\u0275fac=function(L){return new(L||B)(A.LFG(b))},B.\u0275prov=A.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),v=(()=>{class B{constructor(L,O,q){this._contentObserver=L,this._elementRef=O,this._ngZone=q,this.event=new A.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(L){this._disabled=(0,e.Ig)(L),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(L){this._debounce=(0,e.su)(L),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const L=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?L.pipe((0,m.b)(this.debounce)):L).subscribe(this.event)})}_unsubscribe(){var L;null===(L=this._currentSubscription)||void 0===L||L.unsubscribe()}}return B.\u0275fac=function(L){return new(L||B)(A.Y36(D),A.Y36(A.SBq),A.Y36(A.R0b))},B.\u0275dir=A.lG2({type:B,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),B})(),R=(()=>{class B{}return B.\u0275fac=function(L){return new(L||B)},B.\u0275mod=A.oAB({type:B}),B.\u0275inj=A.cJS({providers:[b]}),B})()},98184:(Xe,ue,p)=>{"use strict";p.d(ue,{Iu:()=>se,U8:()=>Ce,X_:()=>V,Xj:()=>Be,_G:()=>N,aV:()=>X,pI:()=>_e,xu:()=>ye});var e=p(67376),A=p(36895),C=p(94650),M=p(21281),m=p(83353),b=p(40445),D=p(84080),v=p(77579),R=p(50727),B=p(56451),w=p(95698),L=p(82722),O=p(22529),q=p(29521);const ee=(0,m.Mq)();class z{constructor(u,_){this._viewportRuler=u,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=_}attach(){}enable(){if(this._canBeEnabled()){const u=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=u.style.left||"",this._previousHTMLStyles.top=u.style.top||"",u.style.left=(0,M.HM)(-this._previousScrollPosition.left),u.style.top=(0,M.HM)(-this._previousScrollPosition.top),u.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const u=this._document.documentElement,E=u.style,h=this._document.body.style,a=E.scrollBehavior||"",i=h.scrollBehavior||"";this._isEnabled=!1,E.left=this._previousHTMLStyles.left,E.top=this._previousHTMLStyles.top,u.classList.remove("cdk-global-scrollblock"),ee&&(E.scrollBehavior=h.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ee&&(E.scrollBehavior=a,h.scrollBehavior=i)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const _=this._document.body,E=this._viewportRuler.getViewportSize();return _.scrollHeight>E.height||_.scrollWidth>E.width}}class Te{constructor(u,_,E,h){this._scrollDispatcher=u,this._ngZone=_,this._viewportRuler=E,this._config=h,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(u){this._overlayRef=u}enable(){if(this._scrollSubscription)return;const u=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=u.subscribe(()=>{const _=this._viewportRuler.getViewportScrollPosition().top;Math.abs(_-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=u.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class pe{enable(){}disable(){}attach(){}}function Le(r,u){return u.some(_=>r.bottom<_.top||r.top>_.bottom||r.right<_.left||r.left>_.right)}function T(r,u){return u.some(_=>r.top<_.top||r.bottom>_.bottom||r.left<_.left||r.right>_.right)}class W{constructor(u,_,E,h){this._scrollDispatcher=u,this._viewportRuler=_,this._ngZone=E,this._config=h,this._scrollSubscription=null}attach(u){this._overlayRef=u}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const _=this._overlayRef.overlayElement.getBoundingClientRect(),{width:E,height:h}=this._viewportRuler.getViewportSize();Le(_,[{width:E,height:h,bottom:h,right:E,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let F=(()=>{class r{constructor(_,E,h,a){this._scrollDispatcher=_,this._viewportRuler=E,this._ngZone=h,this.noop=()=>new pe,this.close=i=>new Te(this._scrollDispatcher,this._ngZone,this._viewportRuler,i),this.block=()=>new z(this._viewportRuler,this._document),this.reposition=i=>new W(this._scrollDispatcher,this._viewportRuler,this._ngZone,i),this._document=a}}return r.\u0275fac=function(_){return new(_||r)(C.LFG(e.mF),C.LFG(e.rL),C.LFG(C.R0b),C.LFG(A.K0))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class V{constructor(u){if(this.scrollStrategy=new pe,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,u){const _=Object.keys(u);for(const E of _)void 0!==u[E]&&(this[E]=u[E])}}}class Ee{constructor(u,_){this.connectionPair=u,this.scrollableViewProperties=_}}let De=(()=>{class r{constructor(_){this._attachedOverlays=[],this._document=_}ngOnDestroy(){this.detach()}add(_){this.remove(_),this._attachedOverlays.push(_)}remove(_){const E=this._attachedOverlays.indexOf(_);E>-1&&this._attachedOverlays.splice(E,1),0===this._attachedOverlays.length&&this.detach()}}return r.\u0275fac=function(_){return new(_||r)(C.LFG(A.K0))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),he=(()=>{class r extends De{constructor(_,E){super(_),this._ngZone=E,this._keydownListener=h=>{const a=this._attachedOverlays;for(let i=a.length-1;i>-1;i--)if(a[i]._keydownEvents.observers.length>0){const t=a[i]._keydownEvents;this._ngZone?this._ngZone.run(()=>t.next(h)):t.next(h);break}}}add(_){super.add(_),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return r.\u0275fac=function(_){return new(_||r)(C.LFG(A.K0),C.LFG(C.R0b,8))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ye=(()=>{class r extends De{constructor(_,E,h){super(_),this._platform=E,this._ngZone=h,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=(0,m.sA)(a)},this._clickListener=a=>{const i=(0,m.sA)(a),t="click"===a.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let o=n.length-1;o>-1;o--){const s=n[o];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(s.overlayElement.contains(i)||s.overlayElement.contains(t))break;const l=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(a)):l.next(a)}}}add(_){if(super.add(_),!this._isAttached){const E=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(E)):this._addEventListeners(E),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=E.style.cursor,E.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const _=this._document.body;_.removeEventListener("pointerdown",this._pointerDownListener,!0),_.removeEventListener("click",this._clickListener,!0),_.removeEventListener("auxclick",this._clickListener,!0),_.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(_.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(_){_.addEventListener("pointerdown",this._pointerDownListener,!0),_.addEventListener("click",this._clickListener,!0),_.addEventListener("auxclick",this._clickListener,!0),_.addEventListener("contextmenu",this._clickListener,!0)}}return r.\u0275fac=function(_){return new(_||r)(C.LFG(A.K0),C.LFG(m.t4),C.LFG(C.R0b,8))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Be=(()=>{class r{constructor(_,E){this._platform=E,this._document=_}ngOnDestroy(){var _;null===(_=this._containerElement)||void 0===_||_.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const _="cdk-overlay-container";if(this._platform.isBrowser||(0,m.Oy)()){const h=this._document.querySelectorAll(`.${_}[platform="server"], .${_}[platform="test"]`);for(let a=0;athis._backdropClick.next(l),this._backdropTransitionendHandler=l=>{this._disposeBackdrop(l.target)},this._keydownEvents=new v.x,this._outsidePointerEvents=new v.x,h.scrollStrategy&&(this._scrollStrategy=h.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=h.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(u){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const _=this._portalOutlet.attach(u);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof _?.onDestroy&&_.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),_}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const u=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),u}dispose(){var u;const _=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(u=this._host)||void 0===u||u.remove(),this._previousHostParent=this._pane=this._host=null,_&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(u){u!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=u,this.hasAttached()&&(u.attach(this),this.updatePosition()))}updateSize(u){this._config={...this._config,...u},this._updateElementSize()}setDirection(u){this._config={...this._config,direction:u},this._updateElementDirection()}addPanelClass(u){this._pane&&this._toggleClasses(this._pane,u,!0)}removePanelClass(u){this._pane&&this._toggleClasses(this._pane,u,!1)}getDirection(){const u=this._config.direction;return u?"string"==typeof u?u:u.value:"ltr"}updateScrollStrategy(u){u!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=u,this.hasAttached()&&(u.attach(this),u.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const u=this._pane.style;u.width=(0,M.HM)(this._config.width),u.height=(0,M.HM)(this._config.height),u.minWidth=(0,M.HM)(this._config.minWidth),u.minHeight=(0,M.HM)(this._config.minHeight),u.maxWidth=(0,M.HM)(this._config.maxWidth),u.maxHeight=(0,M.HM)(this._config.maxHeight)}_togglePointerEvents(u){this._pane.style.pointerEvents=u?"":"none"}_attachBackdrop(){const u="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(u)})}):this._backdropElement.classList.add(u)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const u=this._backdropElement;if(u){if(this._animationsDisabled)return void this._disposeBackdrop(u);u.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{u.addEventListener("transitionend",this._backdropTransitionendHandler)}),u.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(u)},500))}}_toggleClasses(u,_,E){const h=(0,M.Eq)(_||[]).filter(a=>!!a);h.length&&(E?u.classList.add(...h):u.classList.remove(...h))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const u=this._ngZone.onStable.pipe((0,L.R)((0,B.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),u.unsubscribe())})})}_disposeScrollStrategy(){const u=this._scrollStrategy;u&&(u.disable(),u.detach&&u.detach())}_disposeBackdrop(u){u&&(u.removeEventListener("click",this._backdropClickHandler),u.removeEventListener("transitionend",this._backdropTransitionendHandler),u.remove(),this._backdropElement===u&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const le="cdk-overlay-connected-position-bounding-box",k=/([A-Za-z%]+)$/;class N{constructor(u,_,E,h,a){this._viewportRuler=_,this._document=E,this._platform=h,this._overlayContainer=a,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new v.x,this._resizeSubscription=R.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(u)}get positions(){return this._preferredPositions}attach(u){this._validatePositions(),u.hostElement.classList.add(le),this._overlayRef=u,this._boundingBox=u.hostElement,this._pane=u.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const u=this._originRect,_=this._overlayRect,E=this._viewportRect,h=this._containerRect,a=[];let i;for(let t of this._preferredPositions){let n=this._getOriginPoint(u,h,t),o=this._getOverlayPoint(n,_,t),s=this._getOverlayFit(o,_,E,t);if(s.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(t,n);this._canFitWithFlexibleDimensions(s,o,E)?a.push({position:t,origin:n,overlayRect:_,boundingBoxRect:this._calculateBoundingBoxRect(n,t)}):(!i||i.overlayFit.visibleArean&&(n=s,t=o)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&be(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(le),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const u=this._lastPosition;if(u){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const _=this._getOriginPoint(this._originRect,this._containerRect,u);this._applyPosition(u,_)}else this.apply()}withScrollableContainers(u){return this._scrollables=u,this}withPositions(u){return this._preferredPositions=u,-1===u.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(u){return this._viewportMargin=u,this}withFlexibleDimensions(u=!0){return this._hasFlexibleDimensions=u,this}withGrowAfterOpen(u=!0){return this._growAfterOpen=u,this}withPush(u=!0){return this._canPush=u,this}withLockedPosition(u=!0){return this._positionLocked=u,this}setOrigin(u){return this._origin=u,this}withDefaultOffsetX(u){return this._offsetX=u,this}withDefaultOffsetY(u){return this._offsetY=u,this}withTransformOriginOn(u){return this._transformOriginSelector=u,this}_getOriginPoint(u,_,E){let h,a;if("center"==E.originX)h=u.left+u.width/2;else{const i=this._isRtl()?u.right:u.left,t=this._isRtl()?u.left:u.right;h="start"==E.originX?i:t}return _.left<0&&(h-=_.left),a="center"==E.originY?u.top+u.height/2:"top"==E.originY?u.top:u.bottom,_.top<0&&(a-=_.top),{x:h,y:a}}_getOverlayPoint(u,_,E){let h,a;return h="center"==E.overlayX?-_.width/2:"start"===E.overlayX?this._isRtl()?-_.width:0:this._isRtl()?0:-_.width,a="center"==E.overlayY?-_.height/2:"top"==E.overlayY?0:-_.height,{x:u.x+h,y:u.y+a}}_getOverlayFit(u,_,E,h){const a=de(_);let{x:i,y:t}=u,n=this._getOffset(h,"x"),o=this._getOffset(h,"y");n&&(i+=n),o&&(t+=o);let d=0-t,c=t+a.height-E.height,S=this._subtractOverflows(a.width,0-i,i+a.width-E.width),J=this._subtractOverflows(a.height,d,c),ht=S*J;return{visibleArea:ht,isCompletelyWithinViewport:a.width*a.height===ht,fitsInViewportVertically:J===a.height,fitsInViewportHorizontally:S==a.width}}_canFitWithFlexibleDimensions(u,_,E){if(this._hasFlexibleDimensions){const h=E.bottom-_.y,a=E.right-_.x,i=Z(this._overlayRef.getConfig().minHeight),t=Z(this._overlayRef.getConfig().minWidth),o=u.fitsInViewportHorizontally||null!=t&&t<=a;return(u.fitsInViewportVertically||null!=i&&i<=h)&&o}return!1}_pushOverlayOnScreen(u,_,E){if(this._previousPushAmount&&this._positionLocked)return{x:u.x+this._previousPushAmount.x,y:u.y+this._previousPushAmount.y};const h=de(_),a=this._viewportRect,i=Math.max(u.x+h.width-a.width,0),t=Math.max(u.y+h.height-a.height,0),n=Math.max(a.top-E.top-u.y,0),o=Math.max(a.left-E.left-u.x,0);let s=0,l=0;return s=h.width<=a.width?o||-i:u.xS&&!this._isInitialRender&&!this._growAfterOpen&&(i=u.y-S/2)}if("end"===_.overlayX&&!h||"start"===_.overlayX&&h)d=E.width-u.x+this._viewportMargin,s=u.x-this._viewportMargin;else if("start"===_.overlayX&&!h||"end"===_.overlayX&&h)l=u.x,s=E.right-u.x;else{const c=Math.min(E.right-u.x+E.left,u.x),S=this._lastBoundingBoxSize.width;s=2*c,l=u.x-c,s>S&&!this._isInitialRender&&!this._growAfterOpen&&(l=u.x-S/2)}return{top:i,left:l,bottom:t,right:d,width:s,height:a}}_setBoundingBoxStyles(u,_){const E=this._calculateBoundingBoxRect(u,_);!this._isInitialRender&&!this._growAfterOpen&&(E.height=Math.min(E.height,this._lastBoundingBoxSize.height),E.width=Math.min(E.width,this._lastBoundingBoxSize.width));const h={};if(this._hasExactPosition())h.top=h.left="0",h.bottom=h.right=h.maxHeight=h.maxWidth="",h.width=h.height="100%";else{const a=this._overlayRef.getConfig().maxHeight,i=this._overlayRef.getConfig().maxWidth;h.height=(0,M.HM)(E.height),h.top=(0,M.HM)(E.top),h.bottom=(0,M.HM)(E.bottom),h.width=(0,M.HM)(E.width),h.left=(0,M.HM)(E.left),h.right=(0,M.HM)(E.right),h.alignItems="center"===_.overlayX?"center":"end"===_.overlayX?"flex-end":"flex-start",h.justifyContent="center"===_.overlayY?"center":"bottom"===_.overlayY?"flex-end":"flex-start",a&&(h.maxHeight=(0,M.HM)(a)),i&&(h.maxWidth=(0,M.HM)(i))}this._lastBoundingBoxSize=E,be(this._boundingBox.style,h)}_resetBoundingBoxStyles(){be(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){be(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(u,_){const E={},h=this._hasExactPosition(),a=this._hasFlexibleDimensions,i=this._overlayRef.getConfig();if(h){const s=this._viewportRuler.getViewportScrollPosition();be(E,this._getExactOverlayY(_,u,s)),be(E,this._getExactOverlayX(_,u,s))}else E.position="static";let t="",n=this._getOffset(_,"x"),o=this._getOffset(_,"y");n&&(t+=`translateX(${n}px) `),o&&(t+=`translateY(${o}px)`),E.transform=t.trim(),i.maxHeight&&(h?E.maxHeight=(0,M.HM)(i.maxHeight):a&&(E.maxHeight="")),i.maxWidth&&(h?E.maxWidth=(0,M.HM)(i.maxWidth):a&&(E.maxWidth="")),be(this._pane.style,E)}_getExactOverlayY(u,_,E){let h={top:"",bottom:""},a=this._getOverlayPoint(_,this._overlayRect,u);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,E)),"bottom"===u.overlayY?h.bottom=this._document.documentElement.clientHeight-(a.y+this._overlayRect.height)+"px":h.top=(0,M.HM)(a.y),h}_getExactOverlayX(u,_,E){let i,h={left:"",right:""},a=this._getOverlayPoint(_,this._overlayRect,u);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,E)),i=this._isRtl()?"end"===u.overlayX?"left":"right":"end"===u.overlayX?"right":"left","right"===i?h.right=this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)+"px":h.left=(0,M.HM)(a.x),h}_getScrollVisibility(){const u=this._getOriginRect(),_=this._pane.getBoundingClientRect(),E=this._scrollables.map(h=>h.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:T(u,E),isOriginOutsideView:Le(u,E),isOverlayClipped:T(_,E),isOverlayOutsideView:Le(_,E)}}_subtractOverflows(u,..._){return _.reduce((E,h)=>E-Math.max(h,0),u)}_getNarrowedViewportRect(){const u=this._document.documentElement.clientWidth,_=this._document.documentElement.clientHeight,E=this._viewportRuler.getViewportScrollPosition();return{top:E.top+this._viewportMargin,left:E.left+this._viewportMargin,right:E.left+u-this._viewportMargin,bottom:E.top+_-this._viewportMargin,width:u-2*this._viewportMargin,height:_-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(u,_){return"x"===_?u.offsetX??this._offsetX:u.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(u){this._pane&&(0,M.Eq)(u).forEach(_=>{""!==_&&-1===this._appliedPanelClasses.indexOf(_)&&(this._appliedPanelClasses.push(_),this._pane.classList.add(_))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(u=>{this._pane.classList.remove(u)}),this._appliedPanelClasses=[])}_getOriginRect(){const u=this._origin;if(u instanceof C.SBq)return u.nativeElement.getBoundingClientRect();if(u instanceof Element)return u.getBoundingClientRect();const _=u.width||0,E=u.height||0;return{top:u.y,bottom:u.y+E,left:u.x,right:u.x+_,height:E,width:_}}}function be(r,u){for(let _ in u)u.hasOwnProperty(_)&&(r[_]=u[_]);return r}function Z(r){if("number"!=typeof r&&null!=r){const[u,_]=r.split(k);return _&&"px"!==_?null:parseFloat(u)}return r||null}function de(r){return{top:Math.floor(r.top),right:Math.floor(r.right),bottom:Math.floor(r.bottom),left:Math.floor(r.left),width:Math.floor(r.width),height:Math.floor(r.height)}}const Fe="cdk-global-overlay-wrapper";class ut{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(u){const _=u.getConfig();this._overlayRef=u,this._width&&!_.width&&u.updateSize({width:this._width}),this._height&&!_.height&&u.updateSize({height:this._height}),u.hostElement.classList.add(Fe),this._isDisposed=!1}top(u=""){return this._bottomOffset="",this._topOffset=u,this._alignItems="flex-start",this}left(u=""){return this._xOffset=u,this._xPosition="left",this}bottom(u=""){return this._topOffset="",this._bottomOffset=u,this._alignItems="flex-end",this}right(u=""){return this._xOffset=u,this._xPosition="right",this}start(u=""){return this._xOffset=u,this._xPosition="start",this}end(u=""){return this._xOffset=u,this._xPosition="end",this}width(u=""){return this._overlayRef?this._overlayRef.updateSize({width:u}):this._width=u,this}height(u=""){return this._overlayRef?this._overlayRef.updateSize({height:u}):this._height=u,this}centerHorizontally(u=""){return this.left(u),this._xPosition="center",this}centerVertically(u=""){return this.top(u),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const u=this._overlayRef.overlayElement.style,_=this._overlayRef.hostElement.style,E=this._overlayRef.getConfig(),{width:h,height:a,maxWidth:i,maxHeight:t}=E,n=!("100%"!==h&&"100vw"!==h||i&&"100%"!==i&&"100vw"!==i),o=!("100%"!==a&&"100vh"!==a||t&&"100%"!==t&&"100vh"!==t),s=this._xPosition,l=this._xOffset,d="rtl"===this._overlayRef.getConfig().direction;let c="",S="",J="";n?J="flex-start":"center"===s?(J="center",d?S=l:c=l):d?"left"===s||"end"===s?(J="flex-end",c=l):("right"===s||"start"===s)&&(J="flex-start",S=l):"left"===s||"start"===s?(J="flex-start",c=l):("right"===s||"end"===s)&&(J="flex-end",S=l),u.position=this._cssPosition,u.marginLeft=n?"0":c,u.marginTop=o?"0":this._topOffset,u.marginBottom=this._bottomOffset,u.marginRight=n?"0":S,_.justifyContent=J,_.alignItems=o?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const u=this._overlayRef.overlayElement.style,_=this._overlayRef.hostElement,E=_.style;_.classList.remove(Fe),E.justifyContent=E.alignItems=u.marginTop=u.marginBottom=u.marginLeft=u.marginRight=u.position="",this._overlayRef=null,this._isDisposed=!0}}let tt=(()=>{class r{constructor(_,E,h,a){this._viewportRuler=_,this._document=E,this._platform=h,this._overlayContainer=a}global(){return new ut}flexibleConnectedTo(_){return new N(_,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return r.\u0275fac=function(_){return new(_||r)(C.LFG(e.rL),C.LFG(A.K0),C.LFG(m.t4),C.LFG(Be))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),vt=0,X=(()=>{class r{constructor(_,E,h,a,i,t,n,o,s,l,d,c){this.scrollStrategies=_,this._overlayContainer=E,this._componentFactoryResolver=h,this._positionBuilder=a,this._keyboardDispatcher=i,this._injector=t,this._ngZone=n,this._document=o,this._directionality=s,this._location=l,this._outsideClickDispatcher=d,this._animationsModuleType=c}create(_){const E=this._createHostElement(),h=this._createPaneElement(E),a=this._createPortalOutlet(h),i=new V(_);return i.direction=i.direction||this._directionality.value,new se(a,E,h,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(_){const E=this._document.createElement("div");return E.id="cdk-overlay-"+vt++,E.classList.add("cdk-overlay-pane"),_.appendChild(E),E}_createHostElement(){const _=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(_),_}_createPortalOutlet(_){return this._appRef||(this._appRef=this._injector.get(C.z2F)),new D.u0(_,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return r.\u0275fac=function(_){return new(_||r)(C.LFG(F),C.LFG(Be),C.LFG(C._Vd),C.LFG(tt),C.LFG(he),C.LFG(C.zs3),C.LFG(C.R0b),C.LFG(A.K0),C.LFG(b.Is),C.LFG(A.Ye),C.LFG(Ye),C.LFG(C.QbO,8))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac}),r})();const nt=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ae=new C.OlP("cdk-connected-overlay-scroll-strategy");let ye=(()=>{class r{constructor(_){this.elementRef=_}}return r.\u0275fac=function(_){return new(_||r)(C.Y36(C.SBq))},r.\u0275dir=C.lG2({type:r,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),r})(),_e=(()=>{class r{constructor(_,E,h,a,i){this._overlay=_,this._dir=i,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=R.w0.EMPTY,this._attachSubscription=R.w0.EMPTY,this._detachSubscription=R.w0.EMPTY,this._positionSubscription=R.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new C.vpe,this.positionChange=new C.vpe,this.attach=new C.vpe,this.detach=new C.vpe,this.overlayKeydown=new C.vpe,this.overlayOutsideClick=new C.vpe,this._templatePortal=new D.UE(E,h),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(_){this._offsetX=_,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(_){this._offsetY=_,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(_){this._hasBackdrop=(0,M.Ig)(_)}get lockPosition(){return this._lockPosition}set lockPosition(_){this._lockPosition=(0,M.Ig)(_)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(_){this._flexibleDimensions=(0,M.Ig)(_)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(_){this._growAfterOpen=(0,M.Ig)(_)}get push(){return this._push}set push(_){this._push=(0,M.Ig)(_)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(_){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),_.origin&&this.open&&this._position.apply()),_.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=nt);const _=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=_.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=_.detachments().subscribe(()=>this.detach.emit()),_.keydownEvents().subscribe(E=>{this.overlayKeydown.next(E),E.keyCode===q.hY&&!this.disableClose&&!(0,q.Vb)(E)&&(E.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(E=>{this.overlayOutsideClick.next(E)})}_buildConfig(){const _=this._position=this.positionStrategy||this._createPositionStrategy(),E=new V({direction:this._dir,positionStrategy:_,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(E.width=this.width),(this.height||0===this.height)&&(E.height=this.height),(this.minWidth||0===this.minWidth)&&(E.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(E.minHeight=this.minHeight),this.backdropClass&&(E.backdropClass=this.backdropClass),this.panelClass&&(E.panelClass=this.panelClass),E}_updatePositionStrategy(_){const E=this.positions.map(h=>({originX:h.originX,originY:h.originY,overlayX:h.overlayX,overlayY:h.overlayY,offsetX:h.offsetX||this.offsetX,offsetY:h.offsetY||this.offsetY,panelClass:h.panelClass||void 0}));return _.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(E).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const _=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(_),_}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof ye?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(_=>{this.backdropClick.emit(_)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,O.o)(()=>this.positionChange.observers.length>0)).subscribe(_=>{this.positionChange.emit(_),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return r.\u0275fac=function(_){return new(_||r)(C.Y36(X),C.Y36(C.Rgc),C.Y36(C.s_b),C.Y36(Ae),C.Y36(b.Is,8))},r.\u0275dir=C.lG2({type:r,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[C.TTD]}),r})();const Ne={provide:Ae,deps:[X],useFactory:function Se(r){return()=>r.scrollStrategies.reposition()}};let Ce=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275mod=C.oAB({type:r}),r.\u0275inj=C.cJS({providers:[X,Ne],imports:[b.vT,D.eL,e.Cl,e.Cl]}),r})()},83353:(Xe,ue,p)=>{"use strict";p.d(ue,{Mq:()=>q,Oy:()=>T,_i:()=>ee,ht:()=>pe,i$:()=>w,kV:()=>Te,qK:()=>v,sA:()=>Le,t4:()=>M,ud:()=>m});var e=p(94650),A=p(36895);let C;try{C=typeof Intl<"u"&&Intl.v8BreakIterator}catch{C=!1}let b,M=(()=>{class W{constructor(V){this._platformId=V,this.isBrowser=this._platformId?(0,A.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!C)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return W.\u0275fac=function(V){return new(V||W)(e.LFG(e.Lbi))},W.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),W})(),m=(()=>{class W{}return W.\u0275fac=function(V){return new(V||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({}),W})();const D=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function v(){if(b)return b;if("object"!=typeof document||!document)return b=new Set(D),b;let W=document.createElement("input");return b=new Set(D.filter(F=>(W.setAttribute("type",F),W.type===F))),b}let R,L,O,z;function w(W){return function B(){if(null==R&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>R=!0}))}finally{R=R||!1}return R}()?W:!!W.capture}function q(){if(null==O){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return O=!1,O;if("scrollBehavior"in document.documentElement.style)O=!0;else{const W=Element.prototype.scrollTo;O=!!W&&!/\{\s*\[native code\]\s*\}/.test(W.toString())}}return O}function ee(){if("object"!=typeof document||!document)return 0;if(null==L){const W=document.createElement("div"),F=W.style;W.dir="rtl",F.width="1px",F.overflow="auto",F.visibility="hidden",F.pointerEvents="none",F.position="absolute";const V=document.createElement("div"),te=V.style;te.width="2px",te.height="1px",W.appendChild(V),document.body.appendChild(W),L=0,0===W.scrollLeft&&(W.scrollLeft=1,L=0===W.scrollLeft?1:2),W.remove()}return L}function Te(W){if(function ie(){if(null==z){const W=typeof document<"u"?document.head:null;z=!(!W||!W.createShadowRoot&&!W.attachShadow)}return z}()){const F=W.getRootNode?W.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&F instanceof ShadowRoot)return F}return null}function pe(){let W=typeof document<"u"&&document?document.activeElement:null;for(;W&&W.shadowRoot;){const F=W.shadowRoot.activeElement;if(F===W)break;W=F}return W}function Le(W){return W.composedPath?W.composedPath()[0]:W.target}function T(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(Xe,ue,p)=>{"use strict";p.d(ue,{C5:()=>B,Pl:()=>pe,UE:()=>w,eL:()=>T,en:()=>O,ig:()=>ie,u0:()=>ee});var e=p(94650),A=p(36895);class R{attach(V){return this._attachedHost=V,V.attach(this)}detach(){let V=this._attachedHost;null!=V&&(this._attachedHost=null,V.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(V){this._attachedHost=V}}class B extends R{constructor(V,te,Q,Ee){super(),this.component=V,this.viewContainerRef=te,this.injector=Q,this.componentFactoryResolver=Ee}}class w extends R{constructor(V,te,Q,Ee){super(),this.templateRef=V,this.viewContainerRef=te,this.context=Q,this.injector=Ee}get origin(){return this.templateRef.elementRef}attach(V,te=this.context){return this.context=te,super.attach(V)}detach(){return this.context=void 0,super.detach()}}class L extends R{constructor(V){super(),this.element=V instanceof e.SBq?V.nativeElement:V}}class O{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(V){return V instanceof B?(this._attachedPortal=V,this.attachComponentPortal(V)):V instanceof w?(this._attachedPortal=V,this.attachTemplatePortal(V)):this.attachDomPortal&&V instanceof L?(this._attachedPortal=V,this.attachDomPortal(V)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(V){this._disposeFn=V}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ee extends O{constructor(V,te,Q,Ee,ge){super(),this.outletElement=V,this._componentFactoryResolver=te,this._appRef=Q,this._defaultInjector=Ee,this.attachDomPortal=ve=>{const De=ve.element,he=this._document.createComment("dom-portal");De.parentNode.insertBefore(he,De),this.outletElement.appendChild(De),this._attachedPortal=ve,super.setDisposeFn(()=>{he.parentNode&&he.parentNode.replaceChild(De,he)})},this._document=ge}attachComponentPortal(V){const Q=(V.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(V.component);let Ee;return V.viewContainerRef?(Ee=V.viewContainerRef.createComponent(Q,V.viewContainerRef.length,V.injector||V.viewContainerRef.injector),this.setDisposeFn(()=>Ee.destroy())):(Ee=Q.create(V.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(Ee.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Ee.hostView),Ee.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Ee)),this._attachedPortal=V,Ee}attachTemplatePortal(V){let te=V.viewContainerRef,Q=te.createEmbeddedView(V.templateRef,V.context,{injector:V.injector});return Q.rootNodes.forEach(Ee=>this.outletElement.appendChild(Ee)),Q.detectChanges(),this.setDisposeFn(()=>{let Ee=te.indexOf(Q);-1!==Ee&&te.remove(Ee)}),this._attachedPortal=V,Q}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(V){return V.hostView.rootNodes[0]}}let ie=(()=>{class F extends w{constructor(te,Q){super(te,Q)}}return F.\u0275fac=function(te){return new(te||F)(e.Y36(e.Rgc),e.Y36(e.s_b))},F.\u0275dir=e.lG2({type:F,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),F})(),pe=(()=>{class F extends O{constructor(te,Q,Ee){super(),this._componentFactoryResolver=te,this._viewContainerRef=Q,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=ge=>{const ve=ge.element,De=this._document.createComment("dom-portal");ge.setAttachedHost(this),ve.parentNode.insertBefore(De,ve),this._getRootNode().appendChild(ve),this._attachedPortal=ge,super.setDisposeFn(()=>{De.parentNode&&De.parentNode.replaceChild(ve,De)})},this._document=Ee}get portal(){return this._attachedPortal}set portal(te){this.hasAttached()&&!te&&!this._isInitialized||(this.hasAttached()&&super.detach(),te&&super.attach(te),this._attachedPortal=te||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(te){te.setAttachedHost(this);const Q=null!=te.viewContainerRef?te.viewContainerRef:this._viewContainerRef,ge=(te.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(te.component),ve=Q.createComponent(ge,Q.length,te.injector||Q.injector);return Q!==this._viewContainerRef&&this._getRootNode().appendChild(ve.hostView.rootNodes[0]),super.setDisposeFn(()=>ve.destroy()),this._attachedPortal=te,this._attachedRef=ve,this.attached.emit(ve),ve}attachTemplatePortal(te){te.setAttachedHost(this);const Q=this._viewContainerRef.createEmbeddedView(te.templateRef,te.context,{injector:te.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=te,this._attachedRef=Q,this.attached.emit(Q),Q}_getRootNode(){const te=this._viewContainerRef.element.nativeElement;return te.nodeType===te.ELEMENT_NODE?te:te.parentNode}}return F.\u0275fac=function(te){return new(te||F)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(A.K0))},F.\u0275dir=e.lG2({type:F,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),F})(),T=(()=>{class F{}return F.\u0275fac=function(te){return new(te||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({}),F})()},67376:(Xe,ue,p)=>{"use strict";p.d(ue,{Cl:()=>ut,N7:()=>be,PQ:()=>he,ZD:()=>Fe,mF:()=>De,rL:()=>Be,x0:()=>de,xd:()=>ge});var e=p(21281),A=p(94650),C=p(77579),M=p(39646),m=p(69751),b=p(54968),D=p(66406),v=p(53101),R=p(50727),B=p(45191),w=p(71884),L=p(23601),O=p(39300),q=p(82722),ee=p(68675),z=p(11520),ie=p(63900),Te=p(34782),pe=p(83353),Le=p(36895),T=p(40445),W=p(95017);const F=["contentWrapper"],V=["*"],te=new A.OlP("VIRTUAL_SCROLL_STRATEGY");class Q{constructor(vt,X,nt){this._scrolledIndexChange=new C.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,w.x)()),this._viewport=null,this._itemSize=vt,this._minBufferPx=X,this._maxBufferPx=nt}attach(vt){this._viewport=vt,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(vt,X,nt){this._itemSize=vt,this._minBufferPx=X,this._maxBufferPx=nt,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(vt,X){this._viewport&&this._viewport.scrollToOffset(vt*this._itemSize,X)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const vt=this._viewport.getRenderedRange(),X={start:vt.start,end:vt.end},nt=this._viewport.getViewportSize(),Ae=this._viewport.getDataLength();let ye=this._viewport.measureScrollOffset(),_e=this._itemSize>0?ye/this._itemSize:0;if(X.end>Ae){const Ne=Math.ceil(nt/this._itemSize),Ce=Math.max(0,Math.min(_e,Ae-Ne));_e!=Ce&&(_e=Ce,ye=Ce*this._itemSize,X.start=Math.floor(_e)),X.end=Math.max(0,Math.min(Ae,X.start+Ne))}const Se=ye-X.start*this._itemSize;if(Se0&&(X.end=Math.min(Ae,X.end+Ce),X.start=Math.max(0,Math.floor(_e-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(X),this._viewport.setRenderedContentOffset(this._itemSize*X.start),this._scrolledIndexChange.next(Math.floor(_e))}}function Ee(tt){return tt._scrollStrategy}let ge=(()=>{class tt{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Q(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(X){this._itemSize=(0,e.su)(X)}get minBufferPx(){return this._minBufferPx}set minBufferPx(X){this._minBufferPx=(0,e.su)(X)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(X){this._maxBufferPx=(0,e.su)(X)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return tt.\u0275fac=function(X){return new(X||tt)},tt.\u0275dir=A.lG2({type:tt,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[A._Bn([{provide:te,useFactory:Ee,deps:[(0,A.Gpc)(()=>tt)]}]),A.TTD]}),tt})(),De=(()=>{class tt{constructor(X,nt,Ae){this._ngZone=X,this._platform=nt,this._scrolled=new C.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ae}register(X){this.scrollContainers.has(X)||this.scrollContainers.set(X,X.elementScrolled().subscribe(()=>this._scrolled.next(X)))}deregister(X){const nt=this.scrollContainers.get(X);nt&&(nt.unsubscribe(),this.scrollContainers.delete(X))}scrolled(X=20){return this._platform.isBrowser?new m.y(nt=>{this._globalSubscription||this._addGlobalListener();const Ae=X>0?this._scrolled.pipe((0,L.e)(X)).subscribe(nt):this._scrolled.subscribe(nt);return this._scrolledCount++,()=>{Ae.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,M.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((X,nt)=>this.deregister(nt)),this._scrolled.complete()}ancestorScrolled(X,nt){const Ae=this.getAncestorScrollContainers(X);return this.scrolled(nt).pipe((0,O.h)(ye=>!ye||Ae.indexOf(ye)>-1))}getAncestorScrollContainers(X){const nt=[];return this.scrollContainers.forEach((Ae,ye)=>{this._scrollableContainsElement(ye,X)&&nt.push(ye)}),nt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(X,nt){let Ae=(0,e.fI)(nt),ye=X.getElementRef().nativeElement;do{if(Ae==ye)return!0}while(Ae=Ae.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const X=this._getWindow();return(0,b.R)(X.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return tt.\u0275fac=function(X){return new(X||tt)(A.LFG(A.R0b),A.LFG(pe.t4),A.LFG(Le.K0,8))},tt.\u0275prov=A.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),he=(()=>{class tt{constructor(X,nt,Ae,ye){this.elementRef=X,this.scrollDispatcher=nt,this.ngZone=Ae,this.dir=ye,this._destroyed=new C.x,this._elementScrolled=new m.y(_e=>this.ngZone.runOutsideAngular(()=>(0,b.R)(this.elementRef.nativeElement,"scroll").pipe((0,q.R)(this._destroyed)).subscribe(_e)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(X){const nt=this.elementRef.nativeElement,Ae=this.dir&&"rtl"==this.dir.value;null==X.left&&(X.left=Ae?X.end:X.start),null==X.right&&(X.right=Ae?X.start:X.end),null!=X.bottom&&(X.top=nt.scrollHeight-nt.clientHeight-X.bottom),Ae&&0!=(0,pe._i)()?(null!=X.left&&(X.right=nt.scrollWidth-nt.clientWidth-X.left),2==(0,pe._i)()?X.left=X.right:1==(0,pe._i)()&&(X.left=X.right?-X.right:X.right)):null!=X.right&&(X.left=nt.scrollWidth-nt.clientWidth-X.right),this._applyScrollToOptions(X)}_applyScrollToOptions(X){const nt=this.elementRef.nativeElement;(0,pe.Mq)()?nt.scrollTo(X):(null!=X.top&&(nt.scrollTop=X.top),null!=X.left&&(nt.scrollLeft=X.left))}measureScrollOffset(X){const nt="left",ye=this.elementRef.nativeElement;if("top"==X)return ye.scrollTop;if("bottom"==X)return ye.scrollHeight-ye.clientHeight-ye.scrollTop;const _e=this.dir&&"rtl"==this.dir.value;return"start"==X?X=_e?"right":nt:"end"==X&&(X=_e?nt:"right"),_e&&2==(0,pe._i)()?X==nt?ye.scrollWidth-ye.clientWidth-ye.scrollLeft:ye.scrollLeft:_e&&1==(0,pe._i)()?X==nt?ye.scrollLeft+ye.scrollWidth-ye.clientWidth:-ye.scrollLeft:X==nt?ye.scrollLeft:ye.scrollWidth-ye.clientWidth-ye.scrollLeft}}return tt.\u0275fac=function(X){return new(X||tt)(A.Y36(A.SBq),A.Y36(De),A.Y36(A.R0b),A.Y36(T.Is,8))},tt.\u0275dir=A.lG2({type:tt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),tt})(),Be=(()=>{class tt{constructor(X,nt,Ae){this._platform=X,this._change=new C.x,this._changeListener=ye=>{this._change.next(ye)},this._document=Ae,nt.runOutsideAngular(()=>{if(X.isBrowser){const ye=this._getWindow();ye.addEventListener("resize",this._changeListener),ye.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const X=this._getWindow();X.removeEventListener("resize",this._changeListener),X.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const X={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),X}getViewportRect(){const X=this.getViewportScrollPosition(),{width:nt,height:Ae}=this.getViewportSize();return{top:X.top,left:X.left,bottom:X.top+Ae,right:X.left+nt,height:Ae,width:nt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const X=this._document,nt=this._getWindow(),Ae=X.documentElement,ye=Ae.getBoundingClientRect();return{top:-ye.top||X.body.scrollTop||nt.scrollY||Ae.scrollTop||0,left:-ye.left||X.body.scrollLeft||nt.scrollX||Ae.scrollLeft||0}}change(X=20){return X>0?this._change.pipe((0,L.e)(X)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const X=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:X.innerWidth,height:X.innerHeight}:{width:0,height:0}}}return tt.\u0275fac=function(X){return new(X||tt)(A.LFG(pe.t4),A.LFG(A.R0b),A.LFG(Le.K0,8))},tt.\u0275prov=A.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})();const se=new A.OlP("VIRTUAL_SCROLLABLE");let le=(()=>{class tt extends he{constructor(X,nt,Ae,ye){super(X,nt,Ae,ye)}measureViewportSize(X){const nt=this.elementRef.nativeElement;return"horizontal"===X?nt.clientWidth:nt.clientHeight}}return tt.\u0275fac=function(X){return new(X||tt)(A.Y36(A.SBq),A.Y36(De),A.Y36(A.R0b),A.Y36(T.Is,8))},tt.\u0275dir=A.lG2({type:tt,features:[A.qOj]}),tt})();const N=typeof requestAnimationFrame<"u"?D.Z:v.E;let be=(()=>{class tt extends le{constructor(X,nt,Ae,ye,_e,Se,Ne,Ce){super(X,Se,Ae,_e),this.elementRef=X,this._changeDetectorRef=nt,this._scrollStrategy=ye,this.scrollable=Ce,this._detachedSubject=new C.x,this._renderedRangeSubject=new C.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new m.y(fe=>this._scrollStrategy.scrolledIndexChange.subscribe(r=>Promise.resolve().then(()=>this.ngZone.run(()=>fe.next(r))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=R.w0.EMPTY,this._viewportChanges=Ne.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(X){this._orientation!==X&&(this._orientation=X,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(X){this._appendOnly=(0,e.Ig)(X)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,ee.O)(null),(0,L.e)(0,N)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(X){this.ngZone.runOutsideAngular(()=>{this._forOf=X,this._forOf.dataStream.pipe((0,q.R)(this._detachedSubject)).subscribe(nt=>{const Ae=nt.length;Ae!==this._dataLength&&(this._dataLength=Ae,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(X){return this.getElementRef().nativeElement.getBoundingClientRect()[X]}setTotalContentSize(X){this._totalContentSize!==X&&(this._totalContentSize=X,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(X){(function k(tt,vt){return tt.start==vt.start&&tt.end==vt.end})(this._renderedRange,X)||(this.appendOnly&&(X={start:0,end:Math.max(this._renderedRange.end,X.end)}),this._renderedRangeSubject.next(this._renderedRange=X),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(X,nt="to-start"){X=this.appendOnly&&"to-start"===nt?0:X;const ye="horizontal"==this.orientation,_e=ye?"X":"Y";let Ne=`translate${_e}(${Number((ye&&this.dir&&"rtl"==this.dir.value?-1:1)*X)}px)`;this._renderedContentOffset=X,"to-end"===nt&&(Ne+=` translate${_e}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Ne&&(this._renderedContentTransform=Ne,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(X,nt="auto"){const Ae={behavior:nt};"horizontal"===this.orientation?Ae.start=X:Ae.top=X,this.scrollable.scrollTo(Ae)}scrollToIndex(X,nt="auto"){this._scrollStrategy.scrollToIndex(X,nt)}measureScrollOffset(X){let nt;return nt=this.scrollable==this?Ae=>super.measureScrollOffset(Ae):Ae=>this.scrollable.measureScrollOffset(Ae),Math.max(0,nt(X??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(X){var nt;let Ae;const Se="rtl"==(null===(nt=this.dir)||void 0===nt?void 0:nt.value);Ae="start"==X?Se?"right":"left":"end"==X?Se?"left":"right":X||("horizontal"===this.orientation?"left":"top");const Ne=this.scrollable.measureBoundingClientRectWithScrollOffset(Ae);return this.elementRef.nativeElement.getBoundingClientRect()[Ae]-Ne}measureRenderedContentSize(){const X=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?X.offsetWidth:X.offsetHeight}measureRangeSize(X){return this._forOf?this._forOf.measureRangeSize(X,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(X){X&&this._runAfterChangeDetection.push(X),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const X=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const nt of X)nt()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return tt.\u0275fac=function(X){return new(X||tt)(A.Y36(A.SBq),A.Y36(A.sBO),A.Y36(A.R0b),A.Y36(te,8),A.Y36(T.Is,8),A.Y36(De),A.Y36(Be),A.Y36(se,8))},tt.\u0275cmp=A.Xpm({type:tt,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(X,nt){if(1&X&&A.Gf(F,7),2&X){let Ae;A.iGM(Ae=A.CRH())&&(nt._contentWrapper=Ae.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(X,nt){2&X&&A.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===nt.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==nt.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[A._Bn([{provide:he,useFactory:(vt,X)=>vt||X,deps:[le,tt]}]),A.qOj],ngContentSelectors:V,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(X,nt){1&X&&(A.F$t(),A.TgZ(0,"div",0,1),A.Hsn(2),A.qZA(),A._UZ(3,"div",2)),2&X&&(A.xp6(3),A.Udp("width",nt._totalContentWidth)("height",nt._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),tt})();function Z(tt,vt,X){if(!X.getBoundingClientRect)return 0;const Ae=X.getBoundingClientRect();return"horizontal"===tt?"start"===vt?Ae.left:Ae.right:"start"===vt?Ae.top:Ae.bottom}let de=(()=>{class tt{constructor(X,nt,Ae,ye,_e,Se){this._viewContainerRef=X,this._template=nt,this._differs=Ae,this._viewRepeater=ye,this._viewport=_e,this.viewChange=new C.x,this._dataSourceChanges=new C.x,this.dataStream=this._dataSourceChanges.pipe((0,ee.O)(null),(0,z.G)(),(0,ie.w)(([Ne,Ce])=>this._changeDataSource(Ne,Ce)),(0,Te.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new C.x,this.dataStream.subscribe(Ne=>{this._data=Ne,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,q.R)(this._destroyed)).subscribe(Ne=>{this._renderedRange=Ne,this.viewChange.observers.length&&Se.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(X){this._cdkVirtualForOf=X,(0,W.Z9)(X)?this._dataSourceChanges.next(X):this._dataSourceChanges.next(new W.P3((0,B.b)(X)?X:Array.from(X||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(X){this._needsUpdate=!0,this._cdkVirtualForTrackBy=X?(nt,Ae)=>X(nt+(this._renderedRange?this._renderedRange.start:0),Ae):void 0}set cdkVirtualForTemplate(X){X&&(this._needsUpdate=!0,this._template=X)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(X){this._viewRepeater.viewCacheSize=(0,e.su)(X)}measureRangeSize(X,nt){if(X.start>=X.end)return 0;const Ae=X.start-this._renderedRange.start,ye=X.end-X.start;let _e,Se;for(let Ne=0;Ne-1;Ne--){const Ce=this._viewContainerRef.get(Ne+Ae);if(Ce&&Ce.rootNodes.length){Se=Ce.rootNodes[Ce.rootNodes.length-1];break}}return _e&&Se?Z(nt,"end",Se)-Z(nt,"start",_e):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const X=this._differ.diff(this._renderedItems);X?this._applyChanges(X):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((X,nt)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(X,nt):nt)),this._needsUpdate=!0)}_changeDataSource(X,nt){return X&&X.disconnect(this),this._needsUpdate=!0,nt?nt.connect(this):(0,M.of)()}_updateContext(){const X=this._data.length;let nt=this._viewContainerRef.length;for(;nt--;){const Ae=this._viewContainerRef.get(nt);Ae.context.index=this._renderedRange.start+nt,Ae.context.count=X,this._updateComputedContextProperties(Ae.context),Ae.detectChanges()}}_applyChanges(X){this._viewRepeater.applyChanges(X,this._viewContainerRef,(ye,_e,Se)=>this._getEmbeddedViewArgs(ye,Se),ye=>ye.item),X.forEachIdentityChange(ye=>{this._viewContainerRef.get(ye.currentIndex).context.$implicit=ye.item});const nt=this._data.length;let Ae=this._viewContainerRef.length;for(;Ae--;){const ye=this._viewContainerRef.get(Ae);ye.context.index=this._renderedRange.start+Ae,ye.context.count=nt,this._updateComputedContextProperties(ye.context)}}_updateComputedContextProperties(X){X.first=0===X.index,X.last=X.index===X.count-1,X.even=X.index%2==0,X.odd=!X.even}_getEmbeddedViewArgs(X,nt){return{templateRef:this._template,context:{$implicit:X.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:nt}}}return tt.\u0275fac=function(X){return new(X||tt)(A.Y36(A.s_b),A.Y36(A.Rgc),A.Y36(A.ZZ4),A.Y36(W.k),A.Y36(be,4),A.Y36(A.R0b))},tt.\u0275dir=A.lG2({type:tt,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[A._Bn([{provide:W.k,useClass:W.eX}])]}),tt})(),Fe=(()=>{class tt{}return tt.\u0275fac=function(X){return new(X||tt)},tt.\u0275mod=A.oAB({type:tt}),tt.\u0275inj=A.cJS({}),tt})(),ut=(()=>{class tt{}return tt.\u0275fac=function(X){return new(X||tt)},tt.\u0275mod=A.oAB({type:tt}),tt.\u0275inj=A.cJS({imports:[T.vT,Fe,T.vT,Fe]}),tt})()},39349:(Xe,ue,p)=>{"use strict";p.d(ue,{IC:()=>O,Ky:()=>q,Lq:()=>w});var e=p(83353),A=p(94650),C=p(21281),M=p(60515),m=p(77579),b=p(54968),D=p(23601),v=p(82722),R=p(36895);const B=(0,e.i$)({passive:!0});let w=(()=>{class ee{constructor(ie,Te){this._platform=ie,this._ngZone=Te,this._monitoredElements=new Map}monitor(ie){if(!this._platform.isBrowser)return M.E;const Te=(0,C.fI)(ie),pe=this._monitoredElements.get(Te);if(pe)return pe.subject;const Le=new m.x,T="cdk-text-field-autofilled",W=F=>{"cdk-text-field-autofill-start"!==F.animationName||Te.classList.contains(T)?"cdk-text-field-autofill-end"===F.animationName&&Te.classList.contains(T)&&(Te.classList.remove(T),this._ngZone.run(()=>Le.next({target:F.target,isAutofilled:!1}))):(Te.classList.add(T),this._ngZone.run(()=>Le.next({target:F.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Te.addEventListener("animationstart",W,B),Te.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Te,{subject:Le,unlisten:()=>{Te.removeEventListener("animationstart",W,B)}}),Le}stopMonitoring(ie){const Te=(0,C.fI)(ie),pe=this._monitoredElements.get(Te);pe&&(pe.unlisten(),pe.subject.complete(),Te.classList.remove("cdk-text-field-autofill-monitored"),Te.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Te))}ngOnDestroy(){this._monitoredElements.forEach((ie,Te)=>this.stopMonitoring(Te))}}return ee.\u0275fac=function(ie){return new(ie||ee)(A.LFG(e.t4),A.LFG(A.R0b))},ee.\u0275prov=A.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),O=(()=>{class ee{constructor(ie,Te,pe,Le){this._elementRef=ie,this._platform=Te,this._ngZone=pe,this._destroyed=new m.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=T=>{this._hasFocus="focus"===T.type},this._document=Le,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(ie){this._minRows=(0,C.su)(ie),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(ie){this._maxRows=(0,C.su)(ie),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(ie){ie=(0,C.Ig)(ie),this._enabled!==ie&&((this._enabled=ie)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(ie){this._cachedPlaceholderHeight=void 0,ie?this._textareaElement.setAttribute("placeholder",ie):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const ie=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;ie&&(this._textareaElement.style.minHeight=ie)}_setMaxHeight(){const ie=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;ie&&(this._textareaElement.style.maxHeight=ie)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const ie=this._getWindow();(0,b.R)(ie,"resize").pipe((0,D.e)(16),(0,v.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let ie=this._textareaElement.cloneNode(!1);ie.rows=1,ie.style.position="absolute",ie.style.visibility="hidden",ie.style.border="none",ie.style.padding="0",ie.style.height="",ie.style.minHeight="",ie.style.maxHeight="",ie.style.overflow="hidden",this._textareaElement.parentNode.appendChild(ie),this._cachedLineHeight=ie.clientHeight,ie.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const ie=this._textareaElement,Te=ie.style.marginBottom||"",pe=this._platform.FIREFOX,Le=pe&&this._hasFocus,T=pe?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Le&&(ie.style.marginBottom=`${ie.clientHeight}px`),ie.classList.add(T);const W=ie.scrollHeight-4;return ie.classList.remove(T),Le&&(ie.style.marginBottom=Te),W}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const ie=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=ie}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(ie=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const Te=this._elementRef.nativeElement,pe=Te.value;if(!ie&&this._minRows===this._previousMinRows&&pe===this._previousValue)return;const Le=this._measureScrollHeight(),T=Math.max(Le,this._cachedPlaceholderHeight||0);Te.style.height=`${T}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(Te)):setTimeout(()=>this._scrollToCaretPosition(Te))}),this._previousValue=pe,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(ie){const{selectionStart:Te,selectionEnd:pe}=ie;!this._destroyed.isStopped&&this._hasFocus&&ie.setSelectionRange(Te,pe)}}return ee.\u0275fac=function(ie){return new(ie||ee)(A.Y36(A.SBq),A.Y36(e.t4),A.Y36(A.R0b),A.Y36(R.K0,8))},ee.\u0275dir=A.lG2({type:ee,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(ie,Te){1&ie&&A.NdJ("input",function(){return Te._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),ee})(),q=(()=>{class ee{}return ee.\u0275fac=function(ie){return new(ie||ee)},ee.\u0275mod=A.oAB({type:ee}),ee.\u0275inj=A.cJS({}),ee})()},57851:(Xe,ue,p)=>{"use strict";p.d(ue,{C2:()=>O,HI:()=>ee,Hs:()=>te,Ud:()=>he,VY:()=>q,XJ:()=>De,Xx:()=>ge,_0:()=>V,cu:()=>z,nZ:()=>Be,rO:()=>Te});var e=p(95017),A=p(45191),C=p(77579),M=p(61135),m=p(39646),b=p(95698),D=p(39300),v=p(82722),R=p(94650),B=p(21281),w=p(40445);class L{constructor(){this.expansionModel=new e.Ov(!0)}toggle(le){this.expansionModel.toggle(this._trackByValue(le))}expand(le){this.expansionModel.select(this._trackByValue(le))}collapse(le){this.expansionModel.deselect(this._trackByValue(le))}isExpanded(le){return this.expansionModel.isSelected(this._trackByValue(le))}toggleDescendants(le){this.expansionModel.isSelected(this._trackByValue(le))?this.collapseDescendants(le):this.expandDescendants(le)}collapseAll(){this.expansionModel.clear()}expandDescendants(le){let k=[le];k.push(...this.getDescendants(le)),this.expansionModel.select(...k.map(N=>this._trackByValue(N)))}collapseDescendants(le){let k=[le];k.push(...this.getDescendants(le)),this.expansionModel.deselect(...k.map(N=>this._trackByValue(N)))}_trackByValue(le){return this.trackBy?this.trackBy(le):le}}class O extends L{constructor(le,k,N){super(),this.getLevel=le,this.isExpandable=k,this.options=N,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(le){const N=[];for(let be=this.dataNodes.indexOf(le)+1;bethis._trackByValue(le)))}}class q extends L{constructor(le,k){super(),this.getChildren=le,this.options=k,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const le=this.dataNodes.reduce((k,N)=>[...k,...this.getDescendants(N),N],[]);this.expansionModel.select(...le.map(k=>this._trackByValue(k)))}getDescendants(le){const k=[];return this._getDescendants(k,le),k.splice(1)}_getDescendants(le,k){le.push(k);const N=this.getChildren(k);Array.isArray(N)?N.forEach(be=>this._getDescendants(le,be)):(0,A.b)(N)&&N.pipe((0,b.q)(1),(0,D.h)(Boolean)).subscribe(be=>{for(const Z of be)this._getDescendants(le,Z)})}}const ee=new R.OlP("CDK_TREE_NODE_OUTLET_NODE");let z=(()=>{class se{constructor(k,N){this.viewContainer=k,this._node=N}}return se.\u0275fac=function(k){return new(k||se)(R.Y36(R.s_b),R.Y36(ee,8))},se.\u0275dir=R.lG2({type:se,selectors:[["","cdkTreeNodeOutlet",""]]}),se})();class ie{constructor(le){this.$implicit=le}}let Te=(()=>{class se{constructor(k){this.template=k}}return se.\u0275fac=function(k){return new(k||se)(R.Y36(R.Rgc))},se.\u0275dir=R.lG2({type:se,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),se})(),V=(()=>{class se{constructor(k,N){this._differs=k,this._changeDetectorRef=N,this._onDestroy=new C.x,this._levels=new Map,this.viewChange=new M.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(k){this._dataSource!==k&&this._switchDataSource(k)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const k=this._nodeDefs.filter(N=>!N.when);this._defaultNodeDef=k[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(k){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),k||this._nodeOutlet.viewContainer.clear(),this._dataSource=k,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let k;(0,e.Z9)(this._dataSource)?k=this._dataSource.connect(this):(0,A.b)(this._dataSource)?k=this._dataSource:Array.isArray(this._dataSource)&&(k=(0,m.of)(this._dataSource)),k&&(this._dataSubscription=k.pipe((0,v.R)(this._onDestroy)).subscribe(N=>this.renderNodeChanges(N)))}renderNodeChanges(k,N=this._dataDiffer,be=this._nodeOutlet.viewContainer,Z){const de=N.diff(k);!de||(de.forEachOperation((xe,ot,Fe)=>{if(null==xe.previousIndex)this.insertNode(k[Fe],Fe,be,Z);else if(null==Fe)be.remove(ot),this._levels.delete(xe.item);else{const ut=be.get(ot);be.move(ut,Fe)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(k,N){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(Z=>Z.when&&Z.when(N,k))||this._defaultNodeDef}insertNode(k,N,be,Z){const de=this._getNodeDef(k,N),xe=new ie(k);xe.level=this.treeControl.getLevel?this.treeControl.getLevel(k):typeof Z<"u"&&this._levels.has(Z)?this._levels.get(Z)+1:0,this._levels.set(k,xe.level),(be||this._nodeOutlet.viewContainer).createEmbeddedView(de.template,xe,N),te.mostRecentTreeNode&&(te.mostRecentTreeNode.data=k)}}return se.\u0275fac=function(k){return new(k||se)(R.Y36(R.ZZ4),R.Y36(R.sBO))},se.\u0275cmp=R.Xpm({type:se,selectors:[["cdk-tree"]],contentQueries:function(k,N,be){if(1&k&&R.Suo(be,Te,5),2&k){let Z;R.iGM(Z=R.CRH())&&(N._nodeDefs=Z)}},viewQuery:function(k,N){if(1&k&&R.Gf(z,7),2&k){let be;R.iGM(be=R.CRH())&&(N._nodeOutlet=be.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(k,N){1&k&&R.GkF(0,0)},dependencies:[z],encapsulation:2}),se})(),te=(()=>{class se{constructor(k,N){this._elementRef=k,this._tree=N,this._destroyed=new C.x,this._dataChanges=new C.x,se.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(k){this._elementRef.nativeElement.setAttribute("role",k)}get data(){return this._data}set data(k){k!==this._data&&(this._data=k,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function Q(se){let le=se.parentElement;for(;le&&!Ee(le);)le=le.parentElement;return le?le.classList.contains("cdk-nested-tree-node")?(0,B.su)(le.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){se.mostRecentTreeNode===this&&(se.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return se.mostRecentTreeNode=null,se.\u0275fac=function(k){return new(k||se)(R.Y36(R.SBq),R.Y36(V))},se.\u0275dir=R.lG2({type:se,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(k,N){2&k&&R.uIk("aria-expanded",N.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),se})();function Ee(se){const le=se.classList;return!!(null!=le&&le.contains("cdk-nested-tree-node")||null!=le&&le.contains("cdk-tree"))}let ge=(()=>{class se extends te{constructor(k,N,be){super(k,N),this._differs=be}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const k=this._tree.treeControl.getChildren(this.data);Array.isArray(k)?this.updateChildrenNodes(k):(0,A.b)(k)&&k.pipe((0,v.R)(this._destroyed)).subscribe(N=>this.updateChildrenNodes(N)),this.nodeOutlet.changes.pipe((0,v.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(k){const N=this._getNodeOutlet();k&&(this._children=k),N&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,N.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const k=this._getNodeOutlet();k&&(k.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const k=this.nodeOutlet;return k&&k.find(N=>!N._node||N._node===this)}}return se.\u0275fac=function(k){return new(k||se)(R.Y36(R.SBq),R.Y36(V),R.Y36(R.ZZ4))},se.\u0275dir=R.lG2({type:se,selectors:[["cdk-nested-tree-node"]],contentQueries:function(k,N,be){if(1&k&&R.Suo(be,z,5),2&k){let Z;R.iGM(Z=R.CRH())&&(N.nodeOutlet=Z)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[R._Bn([{provide:te,useExisting:se},{provide:ee,useExisting:se}]),R.qOj]}),se})();const ve=/([A-Za-z%]+)$/;let De=(()=>{class se{constructor(k,N,be,Z){this._treeNode=k,this._tree=N,this._element=be,this._dir=Z,this._destroyed=new C.x,this.indentUnits="px",this._indent=40,this._setPadding(),Z&&Z.change.pipe((0,v.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),k._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(k){this._setLevelInput(k)}get indent(){return this._indent}set indent(k){this._setIndentInput(k)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const k=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,N=this._level??k;return"number"==typeof N?`${N*this._indent}${this.indentUnits}`:null}_setPadding(k=!1){const N=this._paddingIndent();if(N!==this._currentPadding||k){const be=this._element.nativeElement,Z=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",de="paddingLeft"===Z?"paddingRight":"paddingLeft";be.style[Z]=N||"",be.style[de]="",this._currentPadding=N}}_setLevelInput(k){this._level=(0,B.su)(k,null),this._setPadding()}_setIndentInput(k){let N=k,be="px";if("string"==typeof k){const Z=k.split(ve);N=Z[0],be=Z[1]||be}this.indentUnits=be,this._indent=(0,B.su)(N),this._setPadding()}}return se.\u0275fac=function(k){return new(k||se)(R.Y36(te),R.Y36(V),R.Y36(R.SBq),R.Y36(w.Is,8))},se.\u0275dir=R.lG2({type:se,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),se})(),he=(()=>{class se{constructor(k,N){this._tree=k,this._treeNode=N,this._recursive=!1}get recursive(){return this._recursive}set recursive(k){this._recursive=(0,B.Ig)(k)}_toggle(k){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),k.stopPropagation()}}return se.\u0275fac=function(k){return new(k||se)(R.Y36(V),R.Y36(te))},se.\u0275dir=R.lG2({type:se,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(k,N){1&k&&R.NdJ("click",function(Z){return N._toggle(Z)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),se})(),Be=(()=>{class se{}return se.\u0275fac=function(k){return new(k||se)},se.\u0275mod=R.oAB({type:se}),se.\u0275inj=R.cJS({}),se})()},36895:(Xe,ue,p)=>{"use strict";p.d(ue,{Do:()=>Le,ED:()=>or,EM:()=>Fi,HT:()=>m,JF:()=>gi,K0:()=>D,Mx:()=>yn,NF:()=>cr,O5:()=>qn,Ov:()=>Pi,PC:()=>Ci,PM:()=>Ji,RF:()=>Vi,S$:()=>ie,V_:()=>B,Ye:()=>T,b0:()=>pe,bD:()=>An,ez:()=>dn,gd:()=>ct,i8:()=>Ii,mk:()=>Zn,n9:()=>li,p6:()=>o,q:()=>C,rS:()=>en,sg:()=>Jn,tP:()=>Er,uU:()=>Zt,w_:()=>b});var e=p(94650);let A=null;function C(){return A}function m(qe){A||(A=qe)}class b{}const D=new e.OlP("DocumentToken");let v=(()=>{class qe{historyGo(Je){throw new Error("Not implemented")}}return qe.\u0275fac=function(Je){return new(Je||qe)},qe.\u0275prov=e.Yz7({token:qe,factory:function(){return function R(){return(0,e.LFG)(w)}()},providedIn:"platform"}),qe})();const B=new e.OlP("Location Initialized");let w=(()=>{class qe extends v{constructor(Je){super(),this._doc=Je,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return C().getBaseHref(this._doc)}onPopState(Je){const Ct=C().getGlobalEventTarget(this._doc,"window");return Ct.addEventListener("popstate",Je,!1),()=>Ct.removeEventListener("popstate",Je)}onHashChange(Je){const Ct=C().getGlobalEventTarget(this._doc,"window");return Ct.addEventListener("hashchange",Je,!1),()=>Ct.removeEventListener("hashchange",Je)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(Je){this.location.pathname=Je}pushState(Je,Ct,Bt){L()?this._history.pushState(Je,Ct,Bt):this.location.hash=Bt}replaceState(Je,Ct,Bt){L()?this._history.replaceState(Je,Ct,Bt):this.location.hash=Bt}forward(){this._history.forward()}back(){this._history.back()}historyGo(Je=0){this._history.go(Je)}getState(){return this._history.state}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.LFG(D))},qe.\u0275prov=e.Yz7({token:qe,factory:function(){return function O(){return new w((0,e.LFG)(D))}()},providedIn:"platform"}),qe})();function L(){return!!window.history.pushState}function q(qe,gt){if(0==qe.length)return gt;if(0==gt.length)return qe;let Je=0;return qe.endsWith("/")&&Je++,gt.startsWith("/")&&Je++,2==Je?qe+gt.substring(1):1==Je?qe+gt:qe+"/"+gt}function ee(qe){const gt=qe.match(/#|\?|$/),Je=gt&>.index||qe.length;return qe.slice(0,Je-("/"===qe[Je-1]?1:0))+qe.slice(Je)}function z(qe){return qe&&"?"!==qe[0]?"?"+qe:qe}let ie=(()=>{class qe{historyGo(Je){throw new Error("Not implemented")}}return qe.\u0275fac=function(Je){return new(Je||qe)},qe.\u0275prov=e.Yz7({token:qe,factory:function(){return(0,e.f3M)(pe)},providedIn:"root"}),qe})();const Te=new e.OlP("appBaseHref");let pe=(()=>{class qe extends ie{constructor(Je,Ct){var Bt,Qt,zt;super(),this._platformLocation=Je,this._removeListenerFns=[],this._baseHref=null!==(Bt=null!==(Qt=Ct??this._platformLocation.getBaseHrefFromDOM())&&void 0!==Qt?Qt:null===(zt=(0,e.f3M)(D).location)||void 0===zt?void 0:zt.origin)&&void 0!==Bt?Bt:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Je){this._removeListenerFns.push(this._platformLocation.onPopState(Je),this._platformLocation.onHashChange(Je))}getBaseHref(){return this._baseHref}prepareExternalUrl(Je){return q(this._baseHref,Je)}path(Je=!1){const Ct=this._platformLocation.pathname+z(this._platformLocation.search),Bt=this._platformLocation.hash;return Bt&&Je?`${Ct}${Bt}`:Ct}pushState(Je,Ct,Bt,Qt){const zt=this.prepareExternalUrl(Bt+z(Qt));this._platformLocation.pushState(Je,Ct,zt)}replaceState(Je,Ct,Bt,Qt){const zt=this.prepareExternalUrl(Bt+z(Qt));this._platformLocation.replaceState(Je,Ct,zt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Je=0){var Ct,Bt;null===(Ct=(Bt=this._platformLocation).historyGo)||void 0===Ct||Ct.call(Bt,Je)}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.LFG(v),e.LFG(Te,8))},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),Le=(()=>{class qe extends ie{constructor(Je,Ct){super(),this._platformLocation=Je,this._baseHref="",this._removeListenerFns=[],null!=Ct&&(this._baseHref=Ct)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Je){this._removeListenerFns.push(this._platformLocation.onPopState(Je),this._platformLocation.onHashChange(Je))}getBaseHref(){return this._baseHref}path(Je=!1){let Ct=this._platformLocation.hash;return null==Ct&&(Ct="#"),Ct.length>0?Ct.substring(1):Ct}prepareExternalUrl(Je){const Ct=q(this._baseHref,Je);return Ct.length>0?"#"+Ct:Ct}pushState(Je,Ct,Bt,Qt){let zt=this.prepareExternalUrl(Bt+z(Qt));0==zt.length&&(zt=this._platformLocation.pathname),this._platformLocation.pushState(Je,Ct,zt)}replaceState(Je,Ct,Bt,Qt){let zt=this.prepareExternalUrl(Bt+z(Qt));0==zt.length&&(zt=this._platformLocation.pathname),this._platformLocation.replaceState(Je,Ct,zt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Je=0){var Ct,Bt;null===(Ct=(Bt=this._platformLocation).historyGo)||void 0===Ct||Ct.call(Bt,Je)}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.LFG(v),e.LFG(Te,8))},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac}),qe})(),T=(()=>{class qe{constructor(Je){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Je;const Ct=this._locationStrategy.getBaseHref();this._baseHref=ee(V(Ct)),this._locationStrategy.onPopState(Bt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Bt.state,type:Bt.type})})}ngOnDestroy(){var Je;null===(Je=this._urlChangeSubscription)||void 0===Je||Je.unsubscribe(),this._urlChangeListeners=[]}path(Je=!1){return this.normalize(this._locationStrategy.path(Je))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Je,Ct=""){return this.path()==this.normalize(Je+z(Ct))}normalize(Je){return qe.stripTrailingSlash(function F(qe,gt){return qe&>.startsWith(qe)?gt.substring(qe.length):gt}(this._baseHref,V(Je)))}prepareExternalUrl(Je){return Je&&"/"!==Je[0]&&(Je="/"+Je),this._locationStrategy.prepareExternalUrl(Je)}go(Je,Ct="",Bt=null){this._locationStrategy.pushState(Bt,"",Je,Ct),this._notifyUrlChangeListeners(this.prepareExternalUrl(Je+z(Ct)),Bt)}replaceState(Je,Ct="",Bt=null){this._locationStrategy.replaceState(Bt,"",Je,Ct),this._notifyUrlChangeListeners(this.prepareExternalUrl(Je+z(Ct)),Bt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Je=0){var Ct,Bt;null===(Ct=(Bt=this._locationStrategy).historyGo)||void 0===Ct||Ct.call(Bt,Je)}onUrlChange(Je){return this._urlChangeListeners.push(Je),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ct=>{this._notifyUrlChangeListeners(Ct.url,Ct.state)})),()=>{const Ct=this._urlChangeListeners.indexOf(Je);var Bt;this._urlChangeListeners.splice(Ct,1),0===this._urlChangeListeners.length&&(null===(Bt=this._urlChangeSubscription)||void 0===Bt||Bt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Je="",Ct){this._urlChangeListeners.forEach(Bt=>Bt(Je,Ct))}subscribe(Je,Ct,Bt){return this._subject.subscribe({next:Je,error:Ct,complete:Bt})}}return qe.normalizeQueryParams=z,qe.joinWithSlash=q,qe.stripTrailingSlash=ee,qe.\u0275fac=function(Je){return new(Je||qe)(e.LFG(ie))},qe.\u0275prov=e.Yz7({token:qe,factory:function(){return function W(){return new T((0,e.LFG)(ie))}()},providedIn:"root"}),qe})();function V(qe){return qe.replace(/\/index.html$/,"")}var ge=(()=>((ge=ge||{})[ge.Format=0]="Format",ge[ge.Standalone=1]="Standalone",ge))(),ve=(()=>((ve=ve||{})[ve.Narrow=0]="Narrow",ve[ve.Abbreviated=1]="Abbreviated",ve[ve.Wide=2]="Wide",ve[ve.Short=3]="Short",ve))(),De=(()=>((De=De||{})[De.Short=0]="Short",De[De.Medium=1]="Medium",De[De.Long=2]="Long",De[De.Full=3]="Full",De))(),he=(()=>((he=he||{})[he.Decimal=0]="Decimal",he[he.Group=1]="Group",he[he.List=2]="List",he[he.PercentSign=3]="PercentSign",he[he.PlusSign=4]="PlusSign",he[he.MinusSign=5]="MinusSign",he[he.Exponential=6]="Exponential",he[he.SuperscriptingExponent=7]="SuperscriptingExponent",he[he.PerMille=8]="PerMille",he[he.Infinity=9]="Infinity",he[he.NaN=10]="NaN",he[he.TimeSeparator=11]="TimeSeparator",he[he.CurrencyDecimal=12]="CurrencyDecimal",he[he.CurrencyGroup=13]="CurrencyGroup",he))();function de(qe,gt){return Ce((0,e.cg1)(qe)[e.wAp.DateFormat],gt)}function xe(qe,gt){return Ce((0,e.cg1)(qe)[e.wAp.TimeFormat],gt)}function ot(qe,gt){return Ce((0,e.cg1)(qe)[e.wAp.DateTimeFormat],gt)}function Fe(qe,gt){const Je=(0,e.cg1)(qe),Ct=Je[e.wAp.NumberSymbols][gt];if(typeof Ct>"u"){if(gt===he.CurrencyDecimal)return Je[e.wAp.NumberSymbols][he.Decimal];if(gt===he.CurrencyGroup)return Je[e.wAp.NumberSymbols][he.Group]}return Ct}function ye(qe){if(!qe[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${qe[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ce(qe,gt){for(let Je=gt;Je>-1;Je--)if(typeof qe[Je]<"u")return qe[Je];throw new Error("Locale data API: locale data undefined")}function fe(qe){const[gt,Je]=qe.split(":");return{hours:+gt,minutes:+Je}}const E=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,h={},a=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var i=(()=>((i=i||{})[i.Short=0]="Short",i[i.ShortGMT=1]="ShortGMT",i[i.Long=2]="Long",i[i.Extended=3]="Extended",i))(),t=(()=>((t=t||{})[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t))(),n=(()=>((n=n||{})[n.DayPeriods=0]="DayPeriods",n[n.Days=1]="Days",n[n.Months=2]="Months",n[n.Eras=3]="Eras",n))();function o(qe,gt,Je,Ct){let Bt=function It(qe){if(an(qe))return qe;if("number"==typeof qe&&!isNaN(qe))return new Date(qe);if("string"==typeof qe){if(qe=qe.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(qe)){const[Bt,Qt=1,zt=1]=qe.split("-").map(vn=>+vn);return s(Bt,Qt-1,zt)}const Je=parseFloat(qe);if(!isNaN(qe-Je))return new Date(Je);let Ct;if(Ct=qe.match(E))return function jt(qe){const gt=new Date(0);let Je=0,Ct=0;const Bt=qe[8]?gt.setUTCFullYear:gt.setFullYear,Qt=qe[8]?gt.setUTCHours:gt.setHours;qe[9]&&(Je=Number(qe[9]+qe[10]),Ct=Number(qe[9]+qe[11])),Bt.call(gt,Number(qe[1]),Number(qe[2])-1,Number(qe[3]));const zt=Number(qe[4]||0)-Je,vn=Number(qe[5]||0)-Ct,ni=Number(qe[6]||0),Kn=Math.floor(1e3*parseFloat("0."+(qe[7]||0)));return Qt.call(gt,zt,vn,ni,Kn),gt}(Ct)}const gt=new Date(qe);if(!an(gt))throw new Error(`Unable to convert "${qe}" into a date`);return gt}(qe);gt=l(Je,gt)||gt;let vn,zt=[];for(;gt;){if(vn=a.exec(gt),!vn){zt.push(gt);break}{zt=zt.concat(vn.slice(1));const ti=zt.pop();if(!ti)break;gt=ti}}let ni=Bt.getTimezoneOffset();Ct&&(ni=Et(Ct,ni),Bt=function at(qe,gt,Je){const Ct=Je?-1:1,Bt=qe.getTimezoneOffset();return function ke(qe,gt){return(qe=new Date(qe.getTime())).setMinutes(qe.getMinutes()+gt),qe}(qe,Ct*(Et(gt,Bt)-Bt))}(Bt,Ct,!0));let Kn="";return zt.forEach(ti=>{const Gn=function Ke(qe){if(st[qe])return st[qe];let gt;switch(qe){case"G":case"GG":case"GGG":gt=We(n.Eras,ve.Abbreviated);break;case"GGGG":gt=We(n.Eras,ve.Wide);break;case"GGGGG":gt=We(n.Eras,ve.Narrow);break;case"y":gt=J(t.FullYear,1,0,!1,!0);break;case"yy":gt=J(t.FullYear,2,0,!0,!0);break;case"yyy":gt=J(t.FullYear,3,0,!1,!0);break;case"yyyy":gt=J(t.FullYear,4,0,!1,!0);break;case"Y":gt=we(1);break;case"YY":gt=we(2,!0);break;case"YYY":gt=we(3);break;case"YYYY":gt=we(4);break;case"M":case"L":gt=J(t.Month,1,1);break;case"MM":case"LL":gt=J(t.Month,2,1);break;case"MMM":gt=We(n.Months,ve.Abbreviated);break;case"MMMM":gt=We(n.Months,ve.Wide);break;case"MMMMM":gt=We(n.Months,ve.Narrow);break;case"LLL":gt=We(n.Months,ve.Abbreviated,ge.Standalone);break;case"LLLL":gt=We(n.Months,ve.Wide,ge.Standalone);break;case"LLLLL":gt=We(n.Months,ve.Narrow,ge.Standalone);break;case"w":gt=re(1);break;case"ww":gt=re(2);break;case"W":gt=re(1,!0);break;case"d":gt=J(t.Date,1);break;case"dd":gt=J(t.Date,2);break;case"c":case"cc":gt=J(t.Day,1);break;case"ccc":gt=We(n.Days,ve.Abbreviated,ge.Standalone);break;case"cccc":gt=We(n.Days,ve.Wide,ge.Standalone);break;case"ccccc":gt=We(n.Days,ve.Narrow,ge.Standalone);break;case"cccccc":gt=We(n.Days,ve.Short,ge.Standalone);break;case"E":case"EE":case"EEE":gt=We(n.Days,ve.Abbreviated);break;case"EEEE":gt=We(n.Days,ve.Wide);break;case"EEEEE":gt=We(n.Days,ve.Narrow);break;case"EEEEEE":gt=We(n.Days,ve.Short);break;case"a":case"aa":case"aaa":gt=We(n.DayPeriods,ve.Abbreviated);break;case"aaaa":gt=We(n.DayPeriods,ve.Wide);break;case"aaaaa":gt=We(n.DayPeriods,ve.Narrow);break;case"b":case"bb":case"bbb":gt=We(n.DayPeriods,ve.Abbreviated,ge.Standalone,!0);break;case"bbbb":gt=We(n.DayPeriods,ve.Wide,ge.Standalone,!0);break;case"bbbbb":gt=We(n.DayPeriods,ve.Narrow,ge.Standalone,!0);break;case"B":case"BB":case"BBB":gt=We(n.DayPeriods,ve.Abbreviated,ge.Format,!0);break;case"BBBB":gt=We(n.DayPeriods,ve.Wide,ge.Format,!0);break;case"BBBBB":gt=We(n.DayPeriods,ve.Narrow,ge.Format,!0);break;case"h":gt=J(t.Hours,1,-12);break;case"hh":gt=J(t.Hours,2,-12);break;case"H":gt=J(t.Hours,1);break;case"HH":gt=J(t.Hours,2);break;case"m":gt=J(t.Minutes,1);break;case"mm":gt=J(t.Minutes,2);break;case"s":gt=J(t.Seconds,1);break;case"ss":gt=J(t.Seconds,2);break;case"S":gt=J(t.FractionalSeconds,1);break;case"SS":gt=J(t.FractionalSeconds,2);break;case"SSS":gt=J(t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":gt=ne(i.Short);break;case"ZZZZZ":gt=ne(i.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":gt=ne(i.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":gt=ne(i.Long);break;default:return null}return st[qe]=gt,gt}(ti);Kn+=Gn?Gn(Bt,Je,ni):"''"===ti?"'":ti.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Kn}function s(qe,gt,Je){const Ct=new Date(0);return Ct.setFullYear(qe,gt,Je),Ct.setHours(0,0,0),Ct}function l(qe,gt){const Je=function Be(qe){return(0,e.cg1)(qe)[e.wAp.LocaleId]}(qe);if(h[Je]=h[Je]||{},h[Je][gt])return h[Je][gt];let Ct="";switch(gt){case"shortDate":Ct=de(qe,De.Short);break;case"mediumDate":Ct=de(qe,De.Medium);break;case"longDate":Ct=de(qe,De.Long);break;case"fullDate":Ct=de(qe,De.Full);break;case"shortTime":Ct=xe(qe,De.Short);break;case"mediumTime":Ct=xe(qe,De.Medium);break;case"longTime":Ct=xe(qe,De.Long);break;case"fullTime":Ct=xe(qe,De.Full);break;case"short":const Bt=l(qe,"shortTime"),Qt=l(qe,"shortDate");Ct=d(ot(qe,De.Short),[Bt,Qt]);break;case"medium":const zt=l(qe,"mediumTime"),vn=l(qe,"mediumDate");Ct=d(ot(qe,De.Medium),[zt,vn]);break;case"long":const ni=l(qe,"longTime"),Kn=l(qe,"longDate");Ct=d(ot(qe,De.Long),[ni,Kn]);break;case"full":const ti=l(qe,"fullTime"),Gn=l(qe,"fullDate");Ct=d(ot(qe,De.Full),[ti,Gn])}return Ct&&(h[Je][gt]=Ct),Ct}function d(qe,gt){return gt&&(qe=qe.replace(/\{([^}]+)}/g,function(Je,Ct){return null!=gt&&Ct in gt?gt[Ct]:Je})),qe}function c(qe,gt,Je="-",Ct,Bt){let Qt="";(qe<0||Bt&&qe<=0)&&(Bt?qe=1-qe:(qe=-qe,Qt=Je));let zt=String(qe);for(;zt.length0||vn>-Je)&&(vn+=Je),qe===t.Hours)0===vn&&-12===Je&&(vn=12);else if(qe===t.FractionalSeconds)return function S(qe,gt){return c(qe,3).substring(0,gt)}(vn,gt);const ni=Fe(zt,he.MinusSign);return c(vn,gt,ni,Ct,Bt)}}function We(qe,gt,Je=ge.Format,Ct=!1){return function(Bt,Qt){return function et(qe,gt,Je,Ct,Bt,Qt){switch(Je){case n.Months:return function k(qe,gt,Je){const Ct=(0,e.cg1)(qe),Qt=Ce([Ct[e.wAp.MonthsFormat],Ct[e.wAp.MonthsStandalone]],gt);return Ce(Qt,Je)}(gt,Bt,Ct)[qe.getMonth()];case n.Days:return function le(qe,gt,Je){const Ct=(0,e.cg1)(qe),Qt=Ce([Ct[e.wAp.DaysFormat],Ct[e.wAp.DaysStandalone]],gt);return Ce(Qt,Je)}(gt,Bt,Ct)[qe.getDay()];case n.DayPeriods:const zt=qe.getHours(),vn=qe.getMinutes();if(Qt){const Kn=function _e(qe){const gt=(0,e.cg1)(qe);return ye(gt),(gt[e.wAp.ExtraData][2]||[]).map(Ct=>"string"==typeof Ct?fe(Ct):[fe(Ct[0]),fe(Ct[1])])}(gt),ti=function Se(qe,gt,Je){const Ct=(0,e.cg1)(qe);ye(Ct);const Qt=Ce([Ct[e.wAp.ExtraData][0],Ct[e.wAp.ExtraData][1]],gt)||[];return Ce(Qt,Je)||[]}(gt,Bt,Ct),Gn=Kn.findIndex(Ti=>{if(Array.isArray(Ti)){const[$n,vi]=Ti,nn=zt>=$n.hours&&vn>=$n.minutes,Un=zt0?Math.floor(Bt/60):Math.ceil(Bt/60);switch(qe){case i.Short:return(Bt>=0?"+":"")+c(zt,2,Qt)+c(Math.abs(Bt%60),2,Qt);case i.ShortGMT:return"GMT"+(Bt>=0?"+":"")+c(zt,1,Qt);case i.Long:return"GMT"+(Bt>=0?"+":"")+c(zt,2,Qt)+":"+c(Math.abs(Bt%60),2,Qt);case i.Extended:return 0===Ct?"Z":(Bt>=0?"+":"")+c(zt,2,Qt)+":"+c(Math.abs(Bt%60),2,Qt);default:throw new Error(`Unknown zone width "${qe}"`)}}}function Re(qe){return s(qe.getFullYear(),qe.getMonth(),qe.getDate()+(4-qe.getDay()))}function re(qe,gt=!1){return function(Je,Ct){let Bt;if(gt){const Qt=new Date(Je.getFullYear(),Je.getMonth(),1).getDay()-1,zt=Je.getDate();Bt=1+Math.floor((zt+Qt)/7)}else{const Qt=Re(Je),zt=function Oe(qe){const gt=s(qe,0,1).getDay();return s(qe,0,1+(gt<=4?4:11)-gt)}(Qt.getFullYear()),vn=Qt.getTime()-zt.getTime();Bt=1+Math.round(vn/6048e5)}return c(Bt,qe,Fe(Ct,he.MinusSign))}}function we(qe,gt=!1){return function(Je,Ct){return c(Re(Je).getFullYear(),qe,Fe(Ct,he.MinusSign),gt)}}const st={};function Et(qe,gt){qe=qe.replace(/:/g,"");const Je=Date.parse("Jan 01, 1970 00:00:00 "+qe)/6e4;return isNaN(Je)?gt:Je}function an(qe){return qe instanceof Date&&!isNaN(qe.valueOf())}function yn(qe,gt){gt=encodeURIComponent(gt);for(const Je of qe.split(";")){const Ct=Je.indexOf("="),[Bt,Qt]=-1==Ct?[Je,""]:[Je.slice(0,Ct),Je.slice(Ct+1)];if(Bt.trim()===gt)return decodeURIComponent(Qt)}return null}let Zn=(()=>{class qe{constructor(Je,Ct,Bt,Qt){this._iterableDiffers=Je,this._keyValueDiffers=Ct,this._ngEl=Bt,this._renderer=Qt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Je){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Je?Je.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Je){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Je?Je.split(/\s+/):Je,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Je=this._iterableDiffer.diff(this._rawClass);Je&&this._applyIterableChanges(Je)}else if(this._keyValueDiffer){const Je=this._keyValueDiffer.diff(this._rawClass);Je&&this._applyKeyValueChanges(Je)}}_applyKeyValueChanges(Je){Je.forEachAddedItem(Ct=>this._toggleClass(Ct.key,Ct.currentValue)),Je.forEachChangedItem(Ct=>this._toggleClass(Ct.key,Ct.currentValue)),Je.forEachRemovedItem(Ct=>{Ct.previousValue&&this._toggleClass(Ct.key,!1)})}_applyIterableChanges(Je){Je.forEachAddedItem(Ct=>{if("string"!=typeof Ct.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(Ct.item)}`);this._toggleClass(Ct.item,!0)}),Je.forEachRemovedItem(Ct=>this._toggleClass(Ct.item,!1))}_applyClasses(Je){Je&&(Array.isArray(Je)||Je instanceof Set?Je.forEach(Ct=>this._toggleClass(Ct,!0)):Object.keys(Je).forEach(Ct=>this._toggleClass(Ct,!!Je[Ct])))}_removeClasses(Je){Je&&(Array.isArray(Je)||Je instanceof Set?Je.forEach(Ct=>this._toggleClass(Ct,!1)):Object.keys(Je).forEach(Ct=>this._toggleClass(Ct,!1)))}_toggleClass(Je,Ct){(Je=Je.trim())&&Je.split(/\s+/g).forEach(Bt=>{Ct?this._renderer.addClass(this._ngEl.nativeElement,Bt):this._renderer.removeClass(this._ngEl.nativeElement,Bt)})}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},qe.\u0275dir=e.lG2({type:qe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),qe})();class di{constructor(gt,Je,Ct,Bt){this.$implicit=gt,this.ngForOf=Je,this.index=Ct,this.count=Bt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Jn=(()=>{class qe{constructor(Je,Ct,Bt){this._viewContainer=Je,this._template=Ct,this._differs=Bt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Je){this._ngForOf=Je,this._ngForOfDirty=!0}set ngForTrackBy(Je){this._trackByFn=Je}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Je){Je&&(this._template=Je)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Je=this._ngForOf;!this._differ&&Je&&(this._differ=this._differs.find(Je).create(this.ngForTrackBy))}if(this._differ){const Je=this._differ.diff(this._ngForOf);Je&&this._applyChanges(Je)}}_applyChanges(Je){const Ct=this._viewContainer;Je.forEachOperation((Bt,Qt,zt)=>{if(null==Bt.previousIndex)Ct.createEmbeddedView(this._template,new di(Bt.item,this._ngForOf,-1,-1),null===zt?void 0:zt);else if(null==zt)Ct.remove(null===Qt?void 0:Qt);else if(null!==Qt){const vn=Ct.get(Qt);Ct.move(vn,zt),Ln(vn,Bt)}});for(let Bt=0,Qt=Ct.length;Bt{Ln(Ct.get(Bt.currentIndex),Bt)})}static ngTemplateContextGuard(Je,Ct){return!0}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},qe.\u0275dir=e.lG2({type:qe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),qe})();function Ln(qe,gt){qe.context.$implicit=gt.item}let qn=(()=>{class qe{constructor(Je,Ct){this._viewContainer=Je,this._context=new si,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ct}set ngIf(Je){this._context.$implicit=this._context.ngIf=Je,this._updateView()}set ngIfThen(Je){Yi("ngIfThen",Je),this._thenTemplateRef=Je,this._thenViewRef=null,this._updateView()}set ngIfElse(Je){Yi("ngIfElse",Je),this._elseTemplateRef=Je,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Je,Ct){return!0}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.s_b),e.Y36(e.Rgc))},qe.\u0275dir=e.lG2({type:qe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),qe})();class si{constructor(){this.$implicit=null,this.ngIf=null}}function Yi(qe,gt){if(gt&&!gt.createEmbeddedView)throw new Error(`${qe} must be a TemplateRef, but received '${(0,e.AaK)(gt)}'.`)}class tr{constructor(gt,Je){this._viewContainerRef=gt,this._templateRef=Je,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(gt){gt&&!this._created?this.create():!gt&&this._created&&this.destroy()}}let Vi=(()=>{class qe{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Je){this._ngSwitch=Je,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Je){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Je)}_matchCase(Je){const Ct=Je==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ct,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ct}_updateDefaultCases(Je){if(this._defaultViews&&Je!==this._defaultUsed){this._defaultUsed=Je;for(let Ct=0;Ct{class qe{constructor(Je,Ct,Bt){this.ngSwitch=Bt,Bt._addCase(),this._view=new tr(Je,Ct)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Vi,9))},qe.\u0275dir=e.lG2({type:qe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),qe})(),or=(()=>{class qe{constructor(Je,Ct,Bt){Bt._addDefault(new tr(Je,Ct))}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Vi,9))},qe.\u0275dir=e.lG2({type:qe,selectors:[["","ngSwitchDefault",""]],standalone:!0}),qe})(),Ci=(()=>{class qe{constructor(Je,Ct,Bt){this._ngEl=Je,this._differs=Ct,this._renderer=Bt,this._ngStyle=null,this._differ=null}set ngStyle(Je){this._ngStyle=Je,!this._differ&&Je&&(this._differ=this._differs.find(Je).create())}ngDoCheck(){if(this._differ){const Je=this._differ.diff(this._ngStyle);Je&&this._applyChanges(Je)}}_setStyle(Je,Ct){const[Bt,Qt]=Je.split("."),zt=-1===Bt.indexOf("-")?void 0:e.JOm.DashCase;null!=Ct?this._renderer.setStyle(this._ngEl.nativeElement,Bt,Qt?`${Ct}${Qt}`:Ct,zt):this._renderer.removeStyle(this._ngEl.nativeElement,Bt,zt)}_applyChanges(Je){Je.forEachRemovedItem(Ct=>this._setStyle(Ct.key,null)),Je.forEachAddedItem(Ct=>this._setStyle(Ct.key,Ct.currentValue)),Je.forEachChangedItem(Ct=>this._setStyle(Ct.key,Ct.currentValue))}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},qe.\u0275dir=e.lG2({type:qe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),qe})(),Er=(()=>{class qe{constructor(Je){this._viewContainerRef=Je,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Je){if(Je.ngTemplateOutlet||Je.ngTemplateOutletInjector){const Ct=this._viewContainerRef;if(this._viewRef&&Ct.remove(Ct.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Bt,ngTemplateOutletContext:Qt,ngTemplateOutletInjector:zt}=this;this._viewRef=Ct.createEmbeddedView(Bt,Qt,zt?{injector:zt}:void 0)}else this._viewRef=null}else this._viewRef&&Je.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.s_b))},qe.\u0275dir=e.lG2({type:qe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]}),qe})();function Ei(qe,gt){return new e.vHH(2100,!1)}class Or{createSubscription(gt,Je){return gt.subscribe({next:Je,error:Ct=>{throw Ct}})}dispose(gt){gt.unsubscribe()}}class Nr{createSubscription(gt,Je){return gt.then(Je,Ct=>{throw Ct})}dispose(gt){}}const kr=new Nr,Hr=new Or;let Pi=(()=>{class qe{constructor(Je){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Je}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Je){return this._obj?Je!==this._obj?(this._dispose(),this.transform(Je)):this._latestValue:(Je&&this._subscribe(Je),this._latestValue)}_subscribe(Je){this._obj=Je,this._strategy=this._selectStrategy(Je),this._subscription=this._strategy.createSubscription(Je,Ct=>this._updateLatestValue(Je,Ct))}_selectStrategy(Je){if((0,e.QGY)(Je))return kr;if((0,e.F4k)(Je))return Hr;throw Ei()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Je,Ct){Je===this._obj&&(this._latestValue=Ct,this._ref.markForCheck())}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.sBO,16))},qe.\u0275pipe=e.Yjl({name:"async",type:qe,pure:!1,standalone:!0}),qe})(),Ii=(()=>{class qe{transform(Je){if(null==Je)return null;if("string"!=typeof Je)throw Ei();return Je.toLowerCase()}}return qe.\u0275fac=function(Je){return new(Je||qe)},qe.\u0275pipe=e.Yjl({name:"lowercase",type:qe,pure:!0,standalone:!0}),qe})();const Mt=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let en=(()=>{class qe{transform(Je){if(null==Je)return null;if("string"!=typeof Je)throw Ei();return Je.replace(Mt,Ct=>Ct[0].toUpperCase()+Ct.slice(1).toLowerCase())}}return qe.\u0275fac=function(Je){return new(Je||qe)},qe.\u0275pipe=e.Yjl({name:"titlecase",type:qe,pure:!0,standalone:!0}),qe})(),ct=(()=>{class qe{transform(Je){if(null==Je)return null;if("string"!=typeof Je)throw Ei();return Je.toUpperCase()}}return qe.\u0275fac=function(Je){return new(Je||qe)},qe.\u0275pipe=e.Yjl({name:"uppercase",type:qe,pure:!0,standalone:!0}),qe})();const kt=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Zt=(()=>{class qe{constructor(Je,Ct){this.locale=Je,this.defaultTimezone=Ct}transform(Je,Ct="mediumDate",Bt,Qt){if(null==Je||""===Je||Je!=Je)return null;try{var zt;return o(Je,Ct,Qt||this.locale,null!==(zt=Bt??this.defaultTimezone)&&void 0!==zt?zt:void 0)}catch(vn){throw Ei()}}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.soG,16),e.Y36(kt,24))},qe.\u0275pipe=e.Yjl({name:"date",type:qe,pure:!0,standalone:!0}),qe})(),dn=(()=>{class qe{}return qe.\u0275fac=function(Je){return new(Je||qe)},qe.\u0275mod=e.oAB({type:qe}),qe.\u0275inj=e.cJS({}),qe})();const An="browser";function cr(qe){return qe===An}function Ji(qe){return"server"===qe}let Fi=(()=>{class qe{}return qe.\u0275prov=(0,e.Yz7)({token:qe,providedIn:"root",factory:()=>new Si((0,e.LFG)(D),window)}),qe})();class Si{constructor(gt,Je){this.document=gt,this.window=Je,this.offset=()=>[0,0]}setOffset(gt){this.offset=Array.isArray(gt)?()=>gt:gt}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(gt){this.supportsScrolling()&&this.window.scrollTo(gt[0],gt[1])}scrollToAnchor(gt){if(!this.supportsScrolling())return;const Je=function zr(qe,gt){const Je=qe.getElementById(gt)||qe.getElementsByName(gt)[0];if(Je)return Je;if("function"==typeof qe.createTreeWalker&&qe.body&&(qe.body.createShadowRoot||qe.body.attachShadow)){const Ct=qe.createTreeWalker(qe.body,NodeFilter.SHOW_ELEMENT);let Bt=Ct.currentNode;for(;Bt;){const Qt=Bt.shadowRoot;if(Qt){const zt=Qt.getElementById(gt)||Qt.querySelector(`[name="${gt}"]`);if(zt)return zt}Bt=Ct.nextNode()}}return null}(this.document,gt);Je&&(this.scrollToElement(Je),Je.focus())}setHistoryScrollRestoration(gt){if(this.supportScrollRestoration()){const Je=this.window.history;Je&&Je.scrollRestoration&&(Je.scrollRestoration=gt)}}scrollToElement(gt){const Je=gt.getBoundingClientRect(),Ct=Je.left+this.window.pageXOffset,Bt=Je.top+this.window.pageYOffset,Qt=this.offset();this.window.scrollTo(Ct-Qt[0],Bt-Qt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const gt=Ua(this.window.history)||Ua(Object.getPrototypeOf(this.window.history));return!(!gt||!gt.writable&&!gt.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Ua(qe){return Object.getOwnPropertyDescriptor(qe,"scrollRestoration")}class gi{}},80529:(Xe,ue,p)=>{"use strict";p.d(ue,{JF:()=>_,LE:()=>Te,TP:()=>le,WM:()=>B,Zn:()=>De,eN:()=>Be,qT:()=>Le});var e=p(36895),A=p(94650),C=p(39646),M=p(69751),m=p(24351),b=p(39300),D=p(54004);class v{}class R{}class B{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?this.lazyInit="string"==typeof i?()=>{this.headers=new Map,i.split("\n").forEach(t=>{const n=t.indexOf(":");if(n>0){const o=t.slice(0,n),s=o.toLowerCase(),l=t.slice(n+1).trim();this.maybeSetNormalizedName(o,s),this.headers.has(s)?this.headers.get(s).push(l):this.headers.set(s,[l])}})}:()=>{this.headers=new Map,Object.keys(i).forEach(t=>{let n=i[t];const o=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(o,n),this.maybeSetNormalizedName(t,o))})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const t=this.headers.get(i.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,t){return this.clone({name:i,value:t,op:"a"})}set(i,t){return this.clone({name:i,value:t,op:"s"})}delete(i,t){return this.clone({name:i,value:t,op:"d"})}maybeSetNormalizedName(i,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,i)}init(){this.lazyInit&&(this.lazyInit instanceof B?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(t=>{this.headers.set(t,i.headers.get(t)),this.normalizedNames.set(t,i.normalizedNames.get(t))})}clone(i){const t=new B;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof B?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([i]),t}applyUpdate(i){const t=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,t);const o=("a"===i.op?this.headers.get(t):void 0)||[];o.push(...n),this.headers.set(t,o);break;case"d":const s=i.value;if(s){let l=this.headers.get(t);if(!l)return;l=l.filter(d=>-1===s.indexOf(d)),0===l.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,l)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>i(this.normalizedNames.get(t),this.headers.get(t)))}}class L{encodeKey(i){return z(i)}encodeValue(i){return z(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const q=/%(\d[a-f0-9])/gi,ee={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function z(a){return encodeURIComponent(a).replace(q,(i,t)=>{var n;return null!==(n=ee[t])&&void 0!==n?n:i})}function ie(a){return`${a}`}class Te{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new L,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function O(a,i){const t=new Map;return a.length>0&&a.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[l,d]=-1==s?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,s)),i.decodeValue(o.slice(s+1))],c=t.get(l)||[];c.push(d),t.set(l,c)}),t}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(t=>{const n=i.fromObject[t],o=Array.isArray(n)?n.map(ie):[ie(n)];this.map.set(t,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const t=this.map.get(i);return t?t[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,t){return this.clone({param:i,value:t,op:"a"})}appendAll(i){const t=[];return Object.keys(i).forEach(n=>{const o=i[n];Array.isArray(o)?o.forEach(s=>{t.push({param:n,value:s,op:"a"})}):t.push({param:n,value:o,op:"a"})}),this.clone(t)}set(i,t){return this.clone({param:i,value:t,op:"s"})}delete(i,t){return this.clone({param:i,value:t,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const t=this.encoder.encodeKey(i);return this.map.get(i).map(n=>t+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const t=new Te({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(i),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const t=("a"===i.op?this.map.get(i.param):void 0)||[];t.push(ie(i.value)),this.map.set(i.param,t);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const o=n.indexOf(ie(i.value));-1!==o&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class Le{constructor(){this.map=new Map}set(i,t){return this.map.set(i,t),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function W(a){return typeof ArrayBuffer<"u"&&a instanceof ArrayBuffer}function F(a){return typeof Blob<"u"&&a instanceof Blob}function V(a){return typeof FormData<"u"&&a instanceof FormData}class Q{constructor(i,t,n,o){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function T(a){switch(a){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==n?n:null,s=o):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new B),this.context||(this.context=new Le),this.params){const l=this.params.toString();if(0===l.length)this.urlWithParams=t;else{const d=t.indexOf("?");this.urlWithParams=t+(-1===d?"?":dWe.set(et,i.setHeaders[et]),S)),i.setParams&&(J=Object.keys(i.setParams).reduce((We,et)=>We.set(et,i.setParams[et]),J)),new Q(n,o,l,{params:J,headers:S,context:ht,reportProgress:c,responseType:s,withCredentials:d})}}var Ee=(()=>((Ee=Ee||{})[Ee.Sent=0]="Sent",Ee[Ee.UploadProgress=1]="UploadProgress",Ee[Ee.ResponseHeader=2]="ResponseHeader",Ee[Ee.DownloadProgress=3]="DownloadProgress",Ee[Ee.Response=4]="Response",Ee[Ee.User=5]="User",Ee))();class ge{constructor(i,t=200,n="OK"){this.headers=i.headers||new B,this.status=void 0!==i.status?i.status:t,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class ve extends ge{constructor(i={}){super(i),this.type=Ee.ResponseHeader}clone(i={}){return new ve({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class De extends ge{constructor(i={}){super(i),this.type=Ee.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new De({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class he extends ge{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function Ye(a,i){return{body:i,headers:a.headers,context:a.context,observe:a.observe,params:a.params,reportProgress:a.reportProgress,responseType:a.responseType,withCredentials:a.withCredentials}}let Be=(()=>{class a{constructor(t){this.handler=t}request(t,n,o={}){let s;if(t instanceof Q)s=t;else{let c,S;c=o.headers instanceof B?o.headers:new B(o.headers),o.params&&(S=o.params instanceof Te?o.params:new Te({fromObject:o.params})),s=new Q(t,n,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:S,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const l=(0,C.of)(s).pipe((0,m.b)(c=>this.handler.handle(c)));if(t instanceof Q||"events"===o.observe)return l;const d=l.pipe((0,b.h)(c=>c instanceof De));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return d.pipe((0,D.U)(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return d.pipe((0,D.U)(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return d.pipe((0,D.U)(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return d.pipe((0,D.U)(c=>c.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,n={}){return this.request("DELETE",t,n)}get(t,n={}){return this.request("GET",t,n)}head(t,n={}){return this.request("HEAD",t,n)}jsonp(t,n){return this.request("JSONP",t,{params:(new Te).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,n={}){return this.request("OPTIONS",t,n)}patch(t,n,o={}){return this.request("PATCH",t,Ye(o,n))}post(t,n,o={}){return this.request("POST",t,Ye(o,n))}put(t,n,o={}){return this.request("PUT",t,Ye(o,n))}}return a.\u0275fac=function(t){return new(t||a)(A.LFG(v))},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})();class se{constructor(i,t){this.next=i,this.interceptor=t}handle(i){return this.interceptor.intercept(i,this.next)}}const le=new A.OlP("HTTP_INTERCEPTORS");let k=(()=>{class a{intercept(t,n){return n.handle(t)}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})();const vt=/^\)\]\}',?\n/;let nt=(()=>{class a{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new M.y(n=>{const o=this.xhrFactory.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((et,ne)=>o.setRequestHeader(et,ne.join(","))),t.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const et=t.detectContentTypeHeader();null!==et&&o.setRequestHeader("Content-Type",et)}if(t.responseType){const et=t.responseType.toLowerCase();o.responseType="json"!==et?et:"text"}const s=t.serializeBody();let l=null;const d=()=>{if(null!==l)return l;const et=o.statusText||"OK",ne=new B(o.getAllResponseHeaders()),Ue=function X(a){return"responseURL"in a&&a.responseURL?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):null}(o)||t.url;return l=new ve({headers:ne,status:o.status,statusText:et,url:Ue}),l},c=()=>{let{headers:et,status:ne,statusText:Ue,url:He}=d(),Oe=null;204!==ne&&(Oe=typeof o.response>"u"?o.responseText:o.response),0===ne&&(ne=Oe?200:0);let Re=ne>=200&&ne<300;if("json"===t.responseType&&"string"==typeof Oe){const re=Oe;Oe=Oe.replace(vt,"");try{Oe=""!==Oe?JSON.parse(Oe):null}catch(we){Oe=re,Re&&(Re=!1,Oe={error:we,text:Oe})}}Re?(n.next(new De({body:Oe,headers:et,status:ne,statusText:Ue,url:He||void 0})),n.complete()):n.error(new he({error:Oe,headers:et,status:ne,statusText:Ue,url:He||void 0}))},S=et=>{const{url:ne}=d(),Ue=new he({error:et,status:o.status||0,statusText:o.statusText||"Unknown Error",url:ne||void 0});n.error(Ue)};let J=!1;const ht=et=>{J||(n.next(d()),J=!0);let ne={type:Ee.DownloadProgress,loaded:et.loaded};et.lengthComputable&&(ne.total=et.total),"text"===t.responseType&&!!o.responseText&&(ne.partialText=o.responseText),n.next(ne)},We=et=>{let ne={type:Ee.UploadProgress,loaded:et.loaded};et.lengthComputable&&(ne.total=et.total),n.next(ne)};return o.addEventListener("load",c),o.addEventListener("error",S),o.addEventListener("timeout",S),o.addEventListener("abort",S),t.reportProgress&&(o.addEventListener("progress",ht),null!==s&&o.upload&&o.upload.addEventListener("progress",We)),o.send(s),n.next({type:Ee.Sent}),()=>{o.removeEventListener("error",S),o.removeEventListener("abort",S),o.removeEventListener("load",c),o.removeEventListener("timeout",S),t.reportProgress&&(o.removeEventListener("progress",ht),null!==s&&o.upload&&o.upload.removeEventListener("progress",We)),o.readyState!==o.DONE&&o.abort()}})}}return a.\u0275fac=function(t){return new(t||a)(A.LFG(e.JF))},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})();const Ae=new A.OlP("XSRF_COOKIE_NAME"),ye=new A.OlP("XSRF_HEADER_NAME");class _e{}let Se=(()=>{class a{constructor(t,n,o){this.doc=t,this.platform=n,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return a.\u0275fac=function(t){return new(t||a)(A.LFG(e.K0),A.LFG(A.Lbi),A.LFG(Ae))},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})(),Ne=(()=>{class a{constructor(t,n){this.tokenService=t,this.headerName=n}intercept(t,n){const o=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||o.startsWith("http://")||o.startsWith("https://"))return n.handle(t);const s=this.tokenService.getToken();return null!==s&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,s)})),n.handle(t)}}return a.\u0275fac=function(t){return new(t||a)(A.LFG(_e),A.LFG(ye))},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})(),Ce=(()=>{class a{constructor(t,n){this.backend=t,this.injector=n,this.chain=null}handle(t){if(null===this.chain){const n=this.injector.get(le,[]);this.chain=n.reduceRight((o,s)=>new se(o,s),this.backend)}return this.chain.handle(t)}}return a.\u0275fac=function(t){return new(t||a)(A.LFG(R),A.LFG(A.zs3))},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})(),u=(()=>{class a{static disable(){return{ngModule:a,providers:[{provide:Ne,useClass:k}]}}static withOptions(t={}){return{ngModule:a,providers:[t.cookieName?{provide:Ae,useValue:t.cookieName}:[],t.headerName?{provide:ye,useValue:t.headerName}:[]]}}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=A.oAB({type:a}),a.\u0275inj=A.cJS({providers:[Ne,{provide:le,useExisting:Ne,multi:!0},{provide:_e,useClass:Se},{provide:Ae,useValue:"XSRF-TOKEN"},{provide:ye,useValue:"X-XSRF-TOKEN"}]}),a})(),_=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=A.oAB({type:a}),a.\u0275inj=A.cJS({providers:[Be,{provide:v,useClass:Ce},nt,{provide:R,useExisting:nt}],imports:[u.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),a})()},94650:(Xe,ue,p)=>{"use strict";p.d(ue,{$8M:()=>ho,$Z:()=>kp,AFp:()=>Qg,ALo:()=>pg,AaK:()=>v,AsE:()=>Ou,B6R:()=>He,BQk:()=>wc,CHM:()=>Ki,CRH:()=>Sg,CZH:()=>Nc,CqO:()=>If,D6c:()=>jT,DdM:()=>rg,Dn7:()=>gg,EJc:()=>iT,EiD:()=>To,EpF:()=>Rf,F$t:()=>Uf,F4k:()=>Pf,FYo:()=>jh,FiY:()=>er,G48:()=>yT,Gf:()=>yg,GfV:()=>Zh,GkF:()=>Tu,Gpc:()=>w,Gre:()=>um,HOy:()=>Lu,Hsn:()=>Nf,Ikx:()=>Uu,JOm:()=>Ra,JVY:()=>dd,Jf7:()=>ep,KtG:()=>ji,L6k:()=>ud,LAX:()=>pd,LFG:()=>Bi,LSH:()=>Wn,Lbi:()=>XE,Lck:()=>Xv,MAs:()=>Df,MGl:()=>Sc,MMx:()=>Yu,NdJ:()=>wu,O4$:()=>qr,OlP:()=>ai,Oqu:()=>Iu,PXZ:()=>AT,Q2q:()=>Cu,Q6J:()=>bu,QGY:()=>yu,QP$:()=>zs,QbO:()=>eT,Qsj:()=>j_,R0b:()=>Wr,RDi:()=>ml,Rgc:()=>Ll,SBq:()=>Al,Sil:()=>aT,Suo:()=>wg,TTD:()=>Oi,TgZ:()=>Ec,Tol:()=>Xf,Udp:()=>Du,VKq:()=>ag,W1O:()=>Rg,WFA:()=>Su,WLB:()=>og,XFs:()=>Ne,Xpm:()=>Ue,Xts:()=>Cr,Y36:()=>xs,YKP:()=>Qm,YNc:()=>xf,Yjl:()=>Et,Yz7:()=>xe,ZZ4:()=>_h,_Bn:()=>Jm,_UZ:()=>Eu,_Vd:()=>_l,_c5:()=>VT,_uU:()=>om,aQg:()=>Ah,c2e:()=>tT,cJS:()=>Fe,cg1:()=>ku,d8E:()=>Nu,dDg:()=>fT,dqk:()=>n,eBb:()=>hd,eFA:()=>c_,ekj:()=>Ru,eoX:()=>o_,evT:()=>tp,f3M:()=>Yl,g9A:()=>$g,gM2:()=>_g,h0i:()=>Gs,hGG:()=>FT,hYB:()=>xu,hij:()=>xc,iGM:()=>Tg,ifc:()=>t,ip1:()=>Jg,kEZ:()=>sg,kL8:()=>vm,kcU:()=>Ks,lG2:()=>Ke,lcZ:()=>fg,lnq:()=>Hu,lqb:()=>Yo,lri:()=>r_,mCW:()=>Ht,n5z:()=>Bo,n_E:()=>Oc,oAB:()=>re,oJD:()=>Sn,oxw:()=>Bf,pB0:()=>Ph,q3G:()=>pn,qLn:()=>Cl,qOj:()=>mu,qZA:()=>Tc,qzn:()=>bo,rWj:()=>a_,s9C:()=>Mu,sBO:()=>wT,sIi:()=>Sl,s_b:()=>Lc,soG:()=>kc,tb:()=>Xg,tp0:()=>go,uIk:()=>Au,vHH:()=>ee,vpe:()=>La,wAp:()=>Rn,xDo:()=>Bu,xi3:()=>mg,xp6:()=>Sp,ynx:()=>yc,z2F:()=>Vc,z3N:()=>ca,zSh:()=>gd,zs3:()=>Jo});var e=p(77579),A=p(50727),C=p(69751),M=p(56451),m=p(13099);function b(f){for(let g in f)if(f[g]===b)return g;throw Error("Could not find renamed property on target object.")}function D(f,g){for(const y in g)g.hasOwnProperty(y)&&!f.hasOwnProperty(y)&&(f[y]=g[y])}function v(f){if("string"==typeof f)return f;if(Array.isArray(f))return"["+f.map(v).join(", ")+"]";if(null==f)return""+f;if(f.overriddenName)return`${f.overriddenName}`;if(f.name)return`${f.name}`;const g=f.toString();if(null==g)return""+g;const y=g.indexOf("\n");return-1===y?g:g.substring(0,y)}function R(f,g){return null==f||""===f?null===g?"":g:null==g||""===g?f:f+" "+g}const B=b({__forward_ref__:b});function w(f){return f.__forward_ref__=w,f.toString=function(){return v(this())},f}function L(f){return O(f)?f():f}function O(f){return"function"==typeof f&&f.hasOwnProperty(B)&&f.__forward_ref__===w}class ee extends Error{constructor(g,y){super(function z(f,g){return`NG0${Math.abs(f)}${g?": "+g.trim():""}`}(g,y)),this.code=g}}function ie(f){return"string"==typeof f?f:null==f?"":String(f)}function W(f,g){throw new ee(-201,!1)}function k(f,g){null==f&&function N(f,g,y,x){throw new Error(`ASSERTION ERROR: ${f}`+(null==x?"":` [Expected=> ${y} ${x} ${g} <=Actual]`))}(g,f,null,"!=")}function xe(f){return{token:f.token,providedIn:f.providedIn||null,factory:f.factory,value:void 0}}function Fe(f){return{providers:f.providers||[],imports:f.imports||[]}}function ut(f){return tt(f,Ae)||tt(f,_e)}function tt(f,g){return f.hasOwnProperty(g)?f[g]:null}function nt(f){return f&&(f.hasOwnProperty(ye)||f.hasOwnProperty(Se))?f[ye]:null}const Ae=b({\u0275prov:b}),ye=b({\u0275inj:b}),_e=b({ngInjectableDef:b}),Se=b({ngInjectorDef:b});var Ne=(()=>((Ne=Ne||{})[Ne.Default=0]="Default",Ne[Ne.Host=1]="Host",Ne[Ne.Self=2]="Self",Ne[Ne.SkipSelf=4]="SkipSelf",Ne[Ne.Optional=8]="Optional",Ne))();let Ce;function r(f){const g=Ce;return Ce=f,g}function u(f,g,y){const x=ut(f);return x&&"root"==x.providedIn?void 0===x.value?x.value=x.factory():x.value:y&Ne.Optional?null:void 0!==g?g:void W(v(f))}function E(f){return{toString:f}.toString()}var h=(()=>((h=h||{})[h.OnPush=0]="OnPush",h[h.Default=1]="Default",h))(),t=(()=>{return(f=t||(t={}))[f.Emulated=0]="Emulated",f[f.None=2]="None",f[f.ShadowDom=3]="ShadowDom",t;var f})();const n=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),l={},d=[],c=b({\u0275cmp:b}),S=b({\u0275dir:b}),J=b({\u0275pipe:b}),ht=b({\u0275mod:b}),We=b({\u0275fac:b}),et=b({__NG_ELEMENT_ID__:b});let ne=0;function Ue(f){return E(()=>{const y=!0===f.standalone,x={},P={type:f.type,providersResolver:null,decls:f.decls,vars:f.vars,factory:null,template:f.template||null,consts:f.consts||null,ngContentSelectors:f.ngContentSelectors,hostBindings:f.hostBindings||null,hostVars:f.hostVars||0,hostAttrs:f.hostAttrs||null,contentQueries:f.contentQueries||null,declaredInputs:x,inputs:null,outputs:null,exportAs:f.exportAs||null,onPush:f.changeDetection===h.OnPush,directiveDefs:null,pipeDefs:null,standalone:y,dependencies:y&&f.dependencies||null,getStandaloneInjector:null,selectors:f.selectors||d,viewQuery:f.viewQuery||null,features:f.features||null,data:f.data||{},encapsulation:f.encapsulation||t.Emulated,id:"c"+ne++,styles:f.styles||d,_:null,setInput:null,schemas:f.schemas||null,tView:null},H=f.dependencies,j=f.features;return P.inputs=st(f.inputs,x),P.outputs=st(f.outputs),j&&j.forEach(me=>me(P)),P.directiveDefs=H?()=>("function"==typeof H?H():H).map(Oe).filter(Re):null,P.pipeDefs=H?()=>("function"==typeof H?H():H).map(It).filter(Re):null,P})}function He(f,g,y){const x=f.\u0275cmp;x.directiveDefs=()=>("function"==typeof g?g():g).map(Oe),x.pipeDefs=()=>("function"==typeof y?y():y).map(It)}function Oe(f){return ke(f)||at(f)}function Re(f){return null!==f}function re(f){return E(()=>({type:f.type,bootstrap:f.bootstrap||d,declarations:f.declarations||d,imports:f.imports||d,exports:f.exports||d,transitiveCompileScopes:null,schemas:f.schemas||null,id:f.id||null}))}function st(f,g){if(null==f)return l;const y={};for(const x in f)if(f.hasOwnProperty(x)){let P=f[x],H=P;Array.isArray(P)&&(H=P[1],P=P[0]),y[P]=x,g&&(g[P]=H)}return y}const Ke=Ue;function Et(f){return{type:f.type,name:f.name,factory:null,pure:!1!==f.pure,standalone:!0===f.standalone,onDestroy:f.type.prototype.ngOnDestroy||null}}function ke(f){return f[c]||null}function at(f){return f[S]||null}function It(f){return f[J]||null}function jt(f,g){const y=f[ht]||null;if(!y&&!0===g)throw new Error(`Type ${v(f)} does not have '\u0275mod' property.`);return y}const $=18;function qn(f){return Array.isArray(f)&&"object"==typeof f[1]}function si(f){return Array.isArray(f)&&!0===f[1]}function Yi(f){return 0!=(8&f.flags)}function tr(f){return 2==(2&f.flags)}function Vi(f){return 1==(1&f.flags)}function li(f){return null!==f.template}function or(f){return 0!=(256&f[2])}function ui(f,g){return f.hasOwnProperty(We)?f[We]:null}class nr{constructor(g,y,x){this.previousValue=g,this.currentValue=y,this.firstChange=x}isFirstChange(){return this.firstChange}}function Oi(){return xi}function xi(f){return f.type.prototype.ngOnChanges&&(f.setInput=lt),qi}function qi(){const f=$e(this),g=f?.current;if(g){const y=f.previous;if(y===l)f.previous=g;else for(let x in g)y[x]=g[x];f.current=null,this.ngOnChanges(g)}}function lt(f,g,y,x){const P=$e(f)||function yt(f,g){return f[Vt]=g}(f,{previous:l,current:null}),H=P.current||(P.current={}),j=P.previous,me=this.declaredInputs[y],Ie=j[me];H[me]=new nr(Ie&&Ie.currentValue,g,j===l),f[x]=g}Oi.ngInherit=!0;const Vt="__ngSimpleChanges__";function $e(f){return f[Vt]||null}function ei(f){for(;Array.isArray(f);)f=f[0];return f}function Fi(f,g){return ei(g[f])}function Si(f,g){return ei(g[f.index])}function zr(f,g){return f.data[g]}function dr(f,g){return f[g]}function gi(f,g){const y=g[f];return qn(y)?y:y[0]}function qe(f){return 4==(4&f[2])}function gt(f){return 64==(64&f[2])}function Ct(f,g){return null==g?null:f[g]}function Bt(f){f[$]=0}function Qt(f,g){f[5]+=g;let y=f,x=f[3];for(;null!==x&&(1===g&&1===y[5]||-1===g&&0===y[5]);)x[5]+=g,y=x,x=x[3]}const zt={lFrame:is(null),bindingsEnabled:!0};function Ti(){return zt.bindingsEnabled}function nn(){return zt.lFrame.lView}function Un(){return zt.lFrame.tView}function Ki(f){return zt.lFrame.contextLView=f,f[8]}function ji(f){return zt.lFrame.contextLView=null,f}function ci(){let f=Tr();for(;null!==f&&64===f.type;)f=f.parent;return f}function Tr(){return zt.lFrame.currentTNode}function Qe(f,g){const y=zt.lFrame;y.currentTNode=f,y.isParent=g}function Ve(){return zt.lFrame.isParent}function Pe(){zt.lFrame.isParent=!1}function ii(){const f=zt.lFrame;let g=f.bindingRootIndex;return-1===g&&(g=f.bindingRootIndex=f.tView.bindingStartIndex),g}function $i(){return zt.lFrame.bindingIndex}function ur(){return zt.lFrame.bindingIndex++}function yr(f){const g=zt.lFrame,y=g.bindingIndex;return g.bindingIndex=g.bindingIndex+f,y}function qs(f,g){const y=zt.lFrame;y.bindingIndex=y.bindingRootIndex=f,xo(g)}function xo(f){zt.lFrame.currentDirectiveIndex=f}function Xa(f){const g=zt.lFrame.currentDirectiveIndex;return-1===g?null:f[g]}function ts(){return zt.lFrame.currentQueryIndex}function ta(f){zt.lFrame.currentQueryIndex=f}function ns(f){const g=f[1];return 2===g.type?g.declTNode:1===g.type?f[6]:null}function na(f,g,y){if(y&Ne.SkipSelf){let P=g,H=f;for(;!(P=P.parent,null!==P||y&Ne.Host||(P=ns(H),null===P||(H=H[15],10&P.type))););if(null===P)return!1;g=P,f=H}const x=zt.lFrame=ka();return x.currentTNode=g,x.lView=f,!0}function Yr(f){const g=ka(),y=f[1];zt.lFrame=g,g.currentTNode=y.firstChild,g.lView=f,g.tView=y,g.contextLView=f,g.bindingIndex=y.bindingStartIndex,g.inI18n=!1}function ka(){const f=zt.lFrame,g=null===f?null:f.child;return null===g?is(f):g}function is(f){const g={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:f,child:null,inI18n:!1};return null!==f&&(f.child=g),g}function Do(){const f=zt.lFrame;return zt.lFrame=f.parent,f.currentTNode=null,f.lView=null,f}const rs=Do;function Va(){const f=Do();f.isParent=!0,f.tView=null,f.selectedIndex=-1,f.contextLView=null,f.elementDepthCount=0,f.currentDirectiveIndex=-1,f.currentNamespace=null,f.bindingRootIndex=-1,f.bindingIndex=-1,f.currentQueryIndex=0}function Hi(){return zt.lFrame.selectedIndex}function wr(f){zt.lFrame.selectedIndex=f}function _i(){const f=zt.lFrame;return zr(f.tView,f.selectedIndex)}function qr(){zt.lFrame.currentNamespace="svg"}function Ks(){!function $s(){zt.lFrame.currentNamespace=null}()}function to(f,g){for(let y=g.directiveStart,x=g.directiveEnd;y=x)break}else g[Ie]<0&&(f[$]+=65536),(me>11>16&&(3&f[2])===g){f[2]+=2048;try{H.call(me)}finally{}}}else try{H.call(me)}finally{}}class Fa{constructor(g,y,x){this.factory=g,this.resolving=!1,this.canSeeViewProviders=y,this.injectImpl=x}}function _a(f,g,y){let x=0;for(;xg){j=H-1;break}}}for(;H>16}(f),x=g;for(;y>0;)x=x[15],y--;return x}let lo=!0;function Ca(f){const g=lo;return lo=f,g}let ba=0;const pr={};function Qr(f,g){const y=co(f,g);if(-1!==y)return y;const x=g[1];x.firstCreatePass&&(f.injectorIndex=g.length,Za(x.data,f),Za(g,null),Za(x.blueprint,null));const P=ra(f,g),H=f.injectorIndex;if(so(P)){const j=Aa(P),me=Sr(P,g),Ie=me[1].data;for(let it=0;it<8;it++)g[H+it]=me[j+it]|Ie[j+it]}return g[H+8]=P,H}function Za(f,g){f.push(0,0,0,0,0,0,0,0,g)}function co(f,g){return-1===f.injectorIndex||f.parent&&f.parent.injectorIndex===f.injectorIndex||null===g[f.injectorIndex+8]?-1:f.injectorIndex}function ra(f,g){if(f.parent&&-1!==f.parent.injectorIndex)return f.parent.injectorIndex;let y=0,x=null,P=g;for(;null!==P;){if(x=Uo(P),null===x)return-1;if(y++,P=P[15],-1!==x.injectorIndex)return x.injectorIndex|y<<16}return-1}function aa(f,g,y){!function us(f,g,y){let x;"string"==typeof y?x=y.charCodeAt(0)||0:y.hasOwnProperty(et)&&(x=y[et]),null==x&&(x=y[et]=ba++);const P=255&x;g.data[f+(P>>5)]|=1<=0?255&g:ms:g}(y);if("function"==typeof H){if(!na(g,f,x))return x&Ne.Host?uo(P,0,x):hs(g,y,x,P);try{const j=H(x);if(null!=j||x&Ne.Optional)return j;W()}finally{rs()}}else if("number"==typeof H){let j=null,me=co(f,g),Ie=-1,it=x&Ne.Host?g[16][6]:null;for((-1===me||x&Ne.SkipSelf)&&(Ie=-1===me?ra(f,g):g[me+8],-1!==Ie&&va(x,!1)?(j=g[1],me=Aa(Ie),g=Sr(Ie,g)):me=-1);-1!==me;){const ft=g[1];if(Kr(H,me,ft.data)){const xt=fs(me,g,y,j,x,it);if(xt!==pr)return xt}Ie=g[me+8],-1!==Ie&&va(x,g[1].data[me+8]===it)&&Kr(H,me,g)?(j=ft,me=Aa(Ie),g=Sr(Ie,g)):me=-1}}return P}function fs(f,g,y,x,P,H){const j=g[1],me=j.data[f+8],ft=Di(me,j,y,null==x?tr(me)&&lo:x!=j&&0!=(3&me.type),P&Ne.Host&&H===me);return null!==ft?Ga(g,j,ft,me):pr}function Di(f,g,y,x,P){const H=f.providerIndexes,j=g.data,me=1048575&H,Ie=f.directiveStart,ft=H>>20,Nt=P?me+ft:f.directiveEnd;for(let Yt=x?me:me+ft;Yt=Ie&&tn.type===y)return Yt}if(P){const Yt=j[Ie];if(Yt&&li(Yt)&&Yt.type===y)return Ie}return null}function Ga(f,g,y,x){let P=f[y];const H=g.data;if(function Po(f){return f instanceof Fa}(P)){const j=P;j.resolving&&function pe(f,g){const y=g?`. Dependency path: ${g.join(" > ")} > ${f}`:"";throw new ee(-200,`Circular dependency in DI detected for ${f}${y}`)}(function Te(f){return"function"==typeof f?f.name||f.toString():"object"==typeof f&&null!=f&&"function"==typeof f.type?f.type.name||f.type.toString():ie(f)}(H[y]));const me=Ca(j.canSeeViewProviders);j.resolving=!0;const Ie=j.injectImpl?r(j.injectImpl):null;na(f,x,Ne.Default);try{P=f[y]=j.factory(void 0,H,f,x),g.firstCreatePass&&y>=x.directiveStart&&function el(f,g,y){const{ngOnChanges:x,ngOnInit:P,ngDoCheck:H}=g.type.prototype;if(x){const j=xi(g);(y.preOrderHooks||(y.preOrderHooks=[])).push(f,j),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(f,j)}P&&(y.preOrderHooks||(y.preOrderHooks=[])).push(0-f,P),H&&((y.preOrderHooks||(y.preOrderHooks=[])).push(f,H),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(f,H))}(y,H[y],g)}finally{null!==Ie&&r(Ie),Ca(me),j.resolving=!1,rs()}}return P}function Kr(f,g,y){return!!(y[g+(f>>5)]&1<{const g=f.prototype.constructor,y=g[We]||gs(g),x=Object.prototype;let P=Object.getPrototypeOf(f.prototype).constructor;for(;P&&P!==x;){const H=P[We]||gs(P);if(H&&H!==y)return H;P=Object.getPrototypeOf(P)}return H=>new H})}function gs(f){return O(f)?()=>{const g=gs(L(f));return g&&g()}:ui(f)}function Uo(f){const g=f[1],y=g.type;return 2===y?g.declTNode:1===y?f[6]:null}function ho(f){return function il(f,g){if("class"===g)return f.classes;if("style"===g)return f.styles;const y=f.attrs;if(y){const x=y.length;let P=0;for(;P{const x=function fo(f){return function(...y){if(f){const x=f(...y);for(const P in x)this[P]=x[P]}}}(g);function P(...H){if(this instanceof P)return x.apply(this,H),this;const j=new P(...H);return me.annotation=j,me;function me(Ie,it,ft){const xt=Ie.hasOwnProperty(Xi)?Ie[Xi]:Object.defineProperty(Ie,Xi,{value:[]})[Xi];for(;xt.length<=ft;)xt.push(null);return(xt[ft]=xt[ft]||[]).push(j),Ie}}return y&&(P.prototype=Object.create(y.prototype)),P.prototype.ngMetadataName=f,P.annotationCls=P,P})}class ai{constructor(g,y){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof y?this.__NG_ELEMENT_ID__=y:void 0!==y&&(this.\u0275prov=xe({token:this,providedIn:y.providedIn||"root",factory:y.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function fr(f,g){void 0===g&&(g=f);for(let y=0;yArray.isArray(y)?ae(y,g):g(y))}function ce(f,g,y){g>=f.length?f.push(y):f.splice(g,0,y)}function G(f,g){return g>=f.length-1?f.pop():f.splice(g,1)[0]}function Me(f,g){const y=[];for(let x=0;x=0?f[1|x]=y:(x=~x,function Rt(f,g,y,x){let P=f.length;if(P==g)f.push(y,x);else if(1===P)f.push(x,f[0]),f[0]=y;else{for(P--,f.push(f[P-1],f[P]);P>g;)f[P]=f[P-2],P--;f[g]=y,f[g+1]=x}}(f,x,g,y)),x}function hn(f,g){const y=Dn(f,g);if(y>=0)return f[1|y]}function Dn(f,g){return function Li(f,g,y){let x=0,P=f.length>>y;for(;P!==x;){const H=x+(P-x>>1),j=f[H<g?P=H:x=H+1}return~(P<f,createScript:f=>f,createScriptURL:f=>f})}catch{}return Ao}())||void 0===g?void 0:g.createHTML(f))||f}function tc(f){var g;return(null===(g=function gl(){if(void 0===Go&&(Go=null,n.trustedTypes))try{Go=n.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:f=>f,createScript:f=>f,createScriptURL:f=>f})}catch{}return Go}())||void 0===g?void 0:g.createHTML(f))||f}class Sa{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class rd extends Sa{getTypeName(){return"HTML"}}class ad extends Sa{getTypeName(){return"Style"}}class od extends Sa{getTypeName(){return"Script"}}class sd extends Sa{getTypeName(){return"URL"}}class ld extends Sa{getTypeName(){return"ResourceURL"}}function ca(f){return f instanceof Sa?f.changingThisBreaksApplicationSecurity:f}function bo(f,g){const y=function cd(f){return f instanceof Sa&&f.getTypeName()||null}(f);if(null!=y&&y!==g){if("ResourceURL"===y&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${y} (see https://g.co/ng/security#xss)`)}return y===g}function dd(f){return new rd(f)}function ud(f){return new ad(f)}function hd(f){return new od(f)}function pd(f){return new sd(f)}function Ph(f){return new ld(f)}class U{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const y=(new window.DOMParser).parseFromString(Co(g),"text/html").body;return null===y?this.inertDocumentHelper.getInertBodyElement(g):(y.removeChild(y.firstChild),y)}catch{return null}}}class I{constructor(g){if(this.defaultDoc=g,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const y=this.inertDocument.createElement("html");this.inertDocument.appendChild(y);const x=this.inertDocument.createElement("body");y.appendChild(x)}}getInertBodyElement(g){const y=this.inertDocument.createElement("template");if("content"in y)return y.innerHTML=Co(g),y;const x=this.inertDocument.createElement("body");return x.innerHTML=Co(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(x),x}stripCustomNsAttrs(g){const y=g.attributes;for(let P=y.length-1;0Ht(g.trim())).join(", ")),this.buf.push(" ",j,'="',Eo(Ie),'"')}var f;return this.buf.push(">"),!0}endElement(g){const y=g.nodeName.toLowerCase();oi.hasOwnProperty(y)&&!Tn.hasOwnProperty(y)&&(this.buf.push(""))}chars(g){this.buf.push(Eo(g))}checkClobberedElement(g,y){if(y&&(g.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return y}}const vs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jr=/([^\#-~ |!])/g;function Eo(f){return f.replace(/&/g,"&").replace(vs,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(jr,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let Ma;function To(f,g){let y=null;try{Ma=Ma||function oe(f){const g=new I(f);return function Y(){try{return!!(new window.DOMParser).parseFromString(Co(""),"text/html")}catch{return!1}}()?new U(g):g}(f);let x=g?String(g):"";y=Ma.getInertBodyElement(x);let P=5,H=x;do{if(0===P)throw new Error("Failed to sanitize html because the input is unstable");P--,x=H,H=y.innerHTML,y=Ma.getInertBodyElement(x)}while(x!==H);return Co((new Br).sanitizeChildren(xa(y)||y))}finally{if(y){const x=xa(y)||y;for(;x.firstChild;)x.removeChild(x.firstChild)}}}function xa(f){return"content"in f&&function rc(f){return f.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===f.nodeName}(f)?f.content:null}var pn=(()=>((pn=pn||{})[pn.NONE=0]="NONE",pn[pn.HTML=1]="HTML",pn[pn.STYLE=2]="STYLE",pn[pn.SCRIPT=3]="SCRIPT",pn[pn.URL=4]="URL",pn[pn.RESOURCE_URL=5]="RESOURCE_URL",pn))();function Sn(f){const g=Zr();return g?tc(g.sanitize(pn.HTML,f)||""):bo(f,"HTML")?tc(ca(f)):To(function Cs(){return void 0!==fl?fl:typeof document<"u"?document:void 0}(),ie(f))}function Wn(f){const g=Zr();return g?g.sanitize(pn.URL,f)||"":bo(f,"URL")?ca(f):Ht(ie(f))}function Zr(){const f=nn();return f&&f[12]}const Cr=new ai("ENVIRONMENT_INITIALIZER"),Wo=new ai("INJECTOR",-1),Es=new ai("INJECTOR_DEF_TYPES");class Oh{get(g,y=ya){if(y===ya){const x=new Error(`NullInjectorError: No provider for ${v(g)}!`);throw x.name="NullInjectorError",x}return y}}function M_(...f){return{\u0275providers:Hh(0,f)}}function Hh(f,...g){const y=[],x=new Set;let P;return ae(g,H=>{const j=H;fd(j,y,[],x)&&(P||(P=[]),P.push(j))}),void 0!==P&&Lh(P,y),y}function Lh(f,g){for(let y=0;y{g.push(H)})}}function fd(f,g,y,x){if(!(f=L(f)))return!1;let P=null,H=nt(f);const j=!H&&ke(f);if(H||j){if(j&&!j.standalone)return!1;P=f}else{const Ie=f.ngModule;if(H=nt(Ie),!H)return!1;P=Ie}const me=x.has(P);if(j){if(me)return!1;if(x.add(P),j.dependencies){const Ie="function"==typeof j.dependencies?j.dependencies():j.dependencies;for(const it of Ie)fd(it,g,y,x)}}else{if(!H)return!1;{if(null!=H.imports&&!me){let it;x.add(P);try{ae(H.imports,ft=>{fd(ft,g,y,x)&&(it||(it=[]),it.push(ft))})}finally{}void 0!==it&&Lh(it,g)}if(!me){const it=ui(P)||(()=>new P);g.push({provide:P,useFactory:it,deps:d},{provide:Es,useValue:P,multi:!0},{provide:Cr,useValue:()=>Bi(P),multi:!0})}const Ie=H.providers;null==Ie||me||ae(Ie,ft=>{g.push(ft)})}}return P!==f&&void 0!==f.providers}const x_=b({provide:String,useValue:b});function md(f){return null!==f&&"object"==typeof f&&x_ in f}function zo(f){return"function"==typeof f}const gd=new ai("Set Injector scope."),oc={},R_={};let _d;function sc(){return void 0===_d&&(_d=new Oh),_d}class Yo{}class Nh extends Yo{constructor(g,y,x,P){super(),this.parent=y,this.source=x,this.scopes=P,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Cd(g,j=>this.processProvider(j)),this.records.set(Wo,Ts(void 0,this)),P.has("environment")&&this.records.set(Yo,Ts(void 0,this));const H=this.records.get(gd);null!=H&&"string"==typeof H.value&&this.scopes.add(H.value),this.injectorDefTypes=new Set(this.get(Es.multi,d,Ne.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const y=gr(this),x=r(void 0);try{return g()}finally{gr(y),r(x)}}get(g,y=ya,x=Ne.Default){this.assertNotDestroyed();const P=gr(this),H=r(void 0);try{if(!(x&Ne.SkipSelf)){let me=this.records.get(g);if(void 0===me){const Ie=function L_(f){return"function"==typeof f||"object"==typeof f&&f instanceof ai}(g)&&ut(g);me=Ie&&this.injectableDefInScope(Ie)?Ts(Ad(g),oc):null,this.records.set(g,me)}if(null!=me)return this.hydrate(g,me)}return(x&Ne.Self?sc():this.parent).get(g,y=x&Ne.Optional&&y===ya?null:y)}catch(j){if("NullInjectorError"===j.name){if((j[mo]=j[mo]||[]).unshift(v(g)),P)throw j;return function Qc(f,g,y,x){const P=f[mo];throw g[Wl]&&P.unshift(g[Wl]),f.message=function Kc(f,g,y,x=null){f=f&&"\n"===f.charAt(0)&&"\u0275"==f.charAt(1)?f.slice(2):f;let P=v(g);if(Array.isArray(g))P=g.map(v).join(" -> ");else if("object"==typeof g){let H=[];for(let j in g)if(g.hasOwnProperty(j)){let me=g[j];H.push(j+":"+("string"==typeof me?JSON.stringify(me):v(me)))}P=`{${H.join(", ")}}`}return`${y}${x?"("+x+")":""}[${P}]: ${f.replace(zc,"\n ")}`}("\n"+f.message,P,y,x),f.ngTokenPath=P,f[mo]=null,f}(j,g,"R3InjectorError",this.source)}throw j}finally{r(H),gr(P)}}resolveInjectorInitializers(){const g=gr(this),y=r(void 0);try{const x=this.get(Cr.multi,d,Ne.Self);for(const P of x)P()}finally{gr(g),r(y)}}toString(){const g=[],y=this.records;for(const x of y.keys())g.push(v(x));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ee(205,!1)}processProvider(g){let y=zo(g=L(g))?g:L(g&&g.provide);const x=function I_(f){return md(f)?Ts(void 0,f.useValue):Ts(kh(f),oc)}(g);if(zo(g)||!0!==g.multi)this.records.get(y);else{let P=this.records.get(y);P||(P=Ts(void 0,oc,!0),P.factory=()=>ql(P.multi),this.records.set(y,P)),y=g,P.multi.push(g)}this.records.set(y,x)}hydrate(g,y){return y.value===oc&&(y.value=R_,y.value=y.factory()),"object"==typeof y.value&&y.value&&function H_(f){return null!==f&&"object"==typeof f&&"function"==typeof f.ngOnDestroy}(y.value)&&this._ngOnDestroyHooks.add(y.value),y.value}injectableDefInScope(g){if(!g.providedIn)return!1;const y=L(g.providedIn);return"string"==typeof y?"any"===y||this.scopes.has(y):this.injectorDefTypes.has(y)}}function Ad(f){const g=ut(f),y=null!==g?g.factory:ui(f);if(null!==y)return y;if(f instanceof ai)throw new ee(204,!1);if(f instanceof Function)return function P_(f){const g=f.length;if(g>0)throw Me(g,"?"),new ee(204,!1);const y=function vt(f){const g=f&&(f[Ae]||f[_e]);if(g){const y=function X(f){if(f.hasOwnProperty("name"))return f.name;const g=(""+f).match(/^function\s*([^\s(]+)/);return null===g?"":g[1]}(f);return console.warn(`DEPRECATED: DI is instantiating a token "${y}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${y}" class.`),g}return null}(f);return null!==y?()=>y.factory(f):()=>new f}(f);throw new ee(204,!1)}function kh(f,g,y){let x;if(zo(f)){const P=L(f);return ui(P)||Ad(P)}if(md(f))x=()=>L(f.useValue);else if(function Uh(f){return!(!f||!f.useFactory)}(f))x=()=>f.useFactory(...ql(f.deps||[]));else if(function Bh(f){return!(!f||!f.useExisting)}(f))x=()=>Bi(L(f.useExisting));else{const P=L(f&&(f.useClass||f.provide));if(!function O_(f){return!!f.deps}(f))return ui(P)||Ad(P);x=()=>new P(...ql(f.deps))}return x}function Ts(f,g,y=!1){return{factory:f,value:g,multi:y?[]:void 0}}function B_(f){return!!f.\u0275providers}function Cd(f,g){for(const y of f)Array.isArray(y)?Cd(y,g):B_(y)?Cd(y.\u0275providers,g):g(y)}class Vh{}class k_{resolveComponentFactory(g){throw function N_(f){const g=Error(`No component factory found for ${v(f)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=f,g}(g)}}let _l=(()=>{class f{}return f.NULL=new k_,f})();function V_(){return ys(ci(),nn())}function ys(f,g){return new Al(Si(f,g))}let Al=(()=>{class f{constructor(y){this.nativeElement=y}}return f.__NG_ELEMENT_ID__=V_,f})();function F_(f){return f instanceof Al?f.nativeElement:f}class jh{}let j_=(()=>{class f{}return f.__NG_ELEMENT_ID__=()=>function Z_(){const f=nn(),y=gi(ci().index,f);return(qn(y)?y:f)[11]}(),f})(),G_=(()=>{class f{}return f.\u0275prov=xe({token:f,providedIn:"root",factory:()=>null}),f})();class Zh{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const W_=new Zh("14.1.2"),bd={};function wd(f){return f.ngOriginalError}class Cl{constructor(){this._console=console}handleError(g){const y=this._findOriginalError(g);this._console.error("ERROR",g),y&&this._console.error("ORIGINAL ERROR",y)}_findOriginalError(g){let y=g&&wd(g);for(;y&&wd(y);)y=wd(y);return y||null}}const Sd=new Map;let iA=0;const xd="__ngContext__";function br(f,g){qn(g)?(f[xd]=g[20],function aA(f){Sd.set(f[20],f)}(g)):f[xd]=g}function bl(f){const g=f[xd];return"number"==typeof g?function Jh(f){return Sd.get(f)||null}(g):g||null}function Dd(f){const g=bl(f);return g?qn(g)?g:g.lView:null}const fA=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(n))();function ep(f){return f.ownerDocument.defaultView}function tp(f){return f.ownerDocument}function Ja(f){return f instanceof Function?f():f}var Ra=(()=>((Ra=Ra||{})[Ra.Important=1]="Important",Ra[Ra.DashCase=2]="DashCase",Ra))();function Pd(f,g){return undefined(f,g)}function vl(f){const g=f[3];return si(g)?g[3]:g}function Id(f){return ap(f[13])}function Od(f){return ap(f[4])}function ap(f){for(;null!==f&&!si(f);)f=f[4];return f}function Ss(f,g,y,x,P){if(null!=x){let H,j=!1;si(x)?H=x:qn(x)&&(j=!0,x=x[0]);const me=ei(x);0===f&&null!==y?null==P?up(g,y,me):qo(g,y,me,P||null,!0):1===f&&null!==y?qo(g,y,me,P||null,!0):2===f?function Ap(f,g,y){const x=lc(f,g);x&&function RA(f,g,y,x){f.removeChild(g,y,x)}(f,x,g,y)}(g,me,j):3===f&&g.destroyNode(me),null!=H&&function OA(f,g,y,x,P){const H=y[7];H!==ei(y)&&Ss(g,f,x,H,P);for(let me=10;me0&&(f[y-1][4]=x[4]);const H=G(f,10+g);!function EA(f,g){El(f,g,g[11],2,null,null),g[0]=null,g[6]=null}(x[1],x);const j=H[19];null!==j&&j.detachView(H[1]),x[3]=null,x[4]=null,x[2]&=-65}return x}function lp(f,g){if(!(128&g[2])){const y=g[11];y.destroyNode&&El(f,g,y,3,null,null),function wA(f){let g=f[13];if(!g)return Ud(f[1],f);for(;g;){let y=null;if(qn(g))y=g[13];else{const x=g[10];x&&(y=x)}if(!y){for(;g&&!g[4]&&g!==f;)qn(g)&&Ud(g[1],g),g=g[3];null===g&&(g=f),qn(g)&&Ud(g[1],g),y=g&&g[4]}g=y}}(g)}}function Ud(f,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function DA(f,g){let y;if(null!=f&&null!=(y=f.destroyHooks))for(let x=0;x=0?x[P=it]():x[P=-it].unsubscribe(),H+=2}else{const j=x[P=y[H+1]];y[H].call(j)}if(null!==x){for(let H=P+1;HH?"":P[xt+1].toLowerCase();const Yt=8&x?Nt:null;if(Yt&&-1!==vp(Yt,it,0)||2&x&&it!==Nt){if(ua(x))return!1;j=!0}}}}else{if(!j&&!ua(x)&&!ua(Ie))return!1;if(j&&ua(Ie))continue;j=!1,x=Ie|1&x}}return ua(x)||j}function ua(f){return 0==(1&f)}function NA(f,g,y,x){if(null===g)return-1;let P=0;if(x||!y){let H=!1;for(;P-1)for(y++;y0?'="'+me+'"':"")+"]"}else 8&x?P+="."+j:4&x&&(P+=" "+j);else""!==P&&!ua(j)&&(g+=wp(H,P),P=""),x=j,H=H||!ua(x);y++}return""!==P&&(g+=wp(H,P)),g}const Vn={};function Sp(f){Mp(Un(),nn(),Hi()+f,!1)}function Mp(f,g,y,x){if(!x)if(3==(3&g[2])){const H=f.preOrderCheckHooks;null!==H&&ia(g,H,y)}else{const H=f.preOrderHooks;null!==H&&no(g,H,0,y)}wr(y)}function Pp(f,g=null,y=null,x){const P=Ip(f,g,y,x);return P.resolveInjectorInitializers(),P}function Ip(f,g=null,y=null,x,P=new Set){const H=[y||d,M_(f)];return x=x||("object"==typeof f?void 0:v(f)),new Nh(H,g||sc(),x||null,P)}let Jo=(()=>{class f{static create(y,x){if(Array.isArray(y))return Pp({name:""},x,y,"");{var P;const H=null!==(P=y.name)&&void 0!==P?P:"";return Pp({name:H},y.parent,y.providers,H)}}}return f.THROW_IF_NOT_FOUND=ya,f.NULL=new Oh,f.\u0275prov=xe({token:f,providedIn:"any",factory:()=>Bi(Wo)}),f.__NG_ELEMENT_ID__=-1,f})();function xs(f,g=Ne.Default){const y=nn();return null===y?Bi(f,g):Ho(ci(),y,L(f),g)}function kp(){throw new Error("invalid")}function hc(f,g){return f<<17|g<<2}function ha(f){return f>>17&32767}function zd(f){return 2|f}function Qa(f){return(131068&f)>>2}function Yd(f,g){return-131069&f|g<<2}function qd(f){return 1|f}function Qp(f,g){const y=f.contentQueries;if(null!==y)for(let x=0;x22&&Mp(f,g,22,!1),y(x,P)}finally{wr(H)}}function $p(f,g,y){if(Yi(g)){const P=g.directiveEnd;for(let H=g.directiveStart;H0;){const y=f[--g];if("number"==typeof y&&y<0)return y}return 0})(me)!=Ie&&me.push(Ie),me.push(x,P,j)}}function sf(f,g){null!==f.hostBindings&&f.hostBindings(1,g)}function lf(f,g){g.flags|=2,(f.components||(f.components=[])).push(g.index)}function LC(f,g,y){if(y){if(g.exportAs)for(let x=0;x0&&cu(y)}}function cu(f){for(let x=Id(f);null!==x;x=Od(x))for(let P=10;P0&&cu(H)}const y=f[1].components;if(null!==y)for(let x=0;x0&&cu(P)}}function jC(f,g){const y=gi(g,f),x=y[1];(function ZC(f,g){for(let y=g.length;yPromise.resolve(null))();function ff(f){return f[7]||(f[7]=[])}function mf(f){return f.cleanup||(f.cleanup=[])}function gf(f,g,y){return(null===f||li(f))&&(y=function Ba(f){for(;Array.isArray(f);){if("object"==typeof f[1])return f;f=f[0]}return null}(y[g.index])),y[11]}function _f(f,g){const y=f[9],x=y?y.get(Cl,null):null;x&&x.handleError(g)}function pu(f,g,y,x,P){for(let H=0;H-1&&(Bd(g,x),G(y,x))}this._attachedToViewContainer=!1}lp(this._lView[1],this._lView)}onDestroy(g){ef(this._lView[1],this._lView,null,g)}markForCheck(){du(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function uu(f,g,y){const x=g[10];x.begin&&x.begin();try{Tl(f,g,f.template,y)}catch(P){throw _f(g,P),P}finally{x.end&&x.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ee(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function yA(f,g){El(f,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new ee(902,!1);this._appRef=g}}class zC extends yl{constructor(g){super(g),this._view=g}detectChanges(){pf(this._view)}checkNoChanges(){}get context(){return null}}class fu extends _l{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const y=ke(g);return new wl(y,this.ngModule)}}function Af(f){const g=[];for(let y in f)f.hasOwnProperty(y)&&g.push({propName:f[y],templateName:y});return g}class qC{constructor(g,y){this.injector=g,this.parentInjector=y}get(g,y,x){const P=this.injector.get(g,bd,x);return P!==bd||y===bd?P:this.parentInjector.get(g,y,x)}}class wl extends Vh{constructor(g,y){super(),this.componentDef=g,this.ngModule=y,this.componentType=g.type,this.selector=function GA(f){return f.map(ZA).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!y}get inputs(){return Af(this.componentDef.inputs)}get outputs(){return Af(this.componentDef.outputs)}create(g,y,x,P){var H;let j=(P=P||this.ngModule)instanceof Yo?P:null===(H=P)||void 0===H?void 0:H.injector;j&&null!==this.componentDef.getStandaloneInjector&&(j=this.componentDef.getStandaloneInjector(j)||j);const me=j?new qC(g,j):g,Ie=me.get(jh,null);if(null===Ie)throw new ee(407,!1);const it=me.get(G_,null),ft=Ie.createRenderer(null,this.componentDef),xt=this.componentDef.selectors[0][0]||"div",Nt=x?function wC(f,g,y){return f.selectRootElement(g,y===t.ShadowDom)}(ft,x,this.componentDef.encapsulation):Ld(Ie.createRenderer(null,this.componentDef),xt,function YC(f){const g=f.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(xt)),Yt=this.componentDef.onPush?288:272,tn=function XC(f,g){return{components:[],scheduler:f||fA,clean:WC,playerHandler:g||null,flags:0}}(),cn=ou(0,null,null,1,0,null,null,null,null,null),mn=mc(null,cn,tn,Yt,null,null,Ie,ft,it,me,null);let wn,Mn;Yr(mn);try{const sn=function KC(f,g,y,x,P,H){const j=y[1];y[22]=f;const Ie=Ds(j,22,2,"#host",null),it=Ie.mergedAttrs=g.hostAttrs;null!==it&&(Ac(Ie,it,!0),null!==f&&(_a(P,f,it),null!==Ie.classes&&Fd(P,f,Ie.classes),null!==Ie.styles&&bp(P,f,Ie.styles)));const ft=x.createRenderer(f,g),xt=mc(y,Xp(g),null,g.onPush?32:16,y[22],Ie,x,ft,H||null,null,null);return j.firstCreatePass&&(aa(Qr(Ie,y),j,g.type),lf(j,Ie),cf(Ie,y.length,1)),_c(y,xt),y[22]=xt}(Nt,this.componentDef,mn,Ie,ft);if(Nt)if(x)_a(ft,Nt,["ng-version",W_.full]);else{const{attrs:Pn,classes:Fn}=function WA(f){const g=[],y=[];let x=1,P=2;for(;x0&&Fd(ft,Nt,Fn.join(" "))}if(Mn=zr(cn,22),void 0!==y){const Pn=Mn.projection=[];for(let Fn=0;Fn=0;x--){const P=f[x];P.hostVars=g+=P.hostVars,P.hostAttrs=oo(P.hostAttrs,y=oo(y,P.hostAttrs))}}(x)}function gu(f){return f===l?{}:f===d?[]:f}function nb(f,g){const y=f.viewQuery;f.viewQuery=y?(x,P)=>{g(x,P),y(x,P)}:g}function ib(f,g){const y=f.contentQueries;f.contentQueries=y?(x,P,H)=>{g(x,P,H),y(x,P,H)}:g}function rb(f,g){const y=f.hostBindings;f.hostBindings=y?(x,P)=>{g(x,P),y(x,P)}:g}let bc=null;function Qo(){if(!bc){const f=n.Symbol;if(f&&f.iterator)bc=f.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let y=0;yme(ei(Fn[x.index])):x.index;let Pn=null;if(!me&&Ie&&(Pn=function _b(f,g,y,x){const P=f.cleanup;if(null!=P)for(let H=0;HIe?me[Ie]:null}"string"==typeof j&&(H+=2)}return null}(f,g,P,x.index)),null!==Pn)(Pn.__ngLastListenerFn__||Pn).__ngNextListenerFn__=H,Pn.__ngLastListenerFn__=H,Yt=!1;else{H=Lf(x,g,xt,H,!1);const Fn=y.listen(wn,P,H);Nt.push(H,Fn),ft&&ft.push(P,sn,Mn,Mn+1)}}else H=Lf(x,g,xt,H,!1);const tn=x.outputs;let cn;if(Yt&&null!==tn&&(cn=tn[P])){const mn=cn.length;if(mn)for(let wn=0;wn0;)g=g[15],f--;return g}(f,zt.lFrame.contextLView))[8]}(f)}function Ab(f,g){let y=null;const x=function kA(f){const g=f.attrs;if(null!=g){const y=g.indexOf(5);if(0==(1&y))return g[y+1]}return null}(f);for(let P=0;P=0}const Wi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Yf(f){return f.substring(Wi.key,Wi.keyEnd)}function qf(f,g){const y=Wi.textEnd;return y===g?-1:(g=Wi.keyEnd=function wb(f,g,y){for(;g32;)g++;return g}(f,Wi.key=g,y),Vs(f,g,y))}function Vs(f,g,y){for(;g=0;y=qf(g,y))En(f,Yf(g),!0)}function pa(f,g,y,x){const P=nn(),H=Un(),j=yr(2);H.firstUpdatePass&&tm(H,f,j,x),g!==Vn&&vr(P,j,g)&&im(H,H.data[Hi()],P,P[11],f,P[j+1]=function Lb(f,g){return null==f||("string"==typeof g?f+=g:"object"==typeof f&&(f=v(ca(f)))),f}(g,y),x,j)}function fa(f,g,y,x){const P=Un(),H=yr(2);P.firstUpdatePass&&tm(P,null,H,x);const j=nn();if(y!==Vn&&vr(j,H,y)){const me=P.data[Hi()];if(am(me,x)&&!em(P,H)){let Ie=x?me.classesWithoutHost:me.stylesWithoutHost;null!==Ie&&(y=R(Ie,y||"")),vu(P,me,j,y,x)}else!function Hb(f,g,y,x,P,H,j,me){P===Vn&&(P=d);let Ie=0,it=0,ft=0=f.expandoStartIndex}function tm(f,g,y,x){const P=f.data;if(null===P[y+1]){const H=P[Hi()],j=em(f,y);am(H,x)&&null===g&&!j&&(g=!1),g=function Db(f,g,y,x){const P=Xa(f);let H=x?g.residualClasses:g.residualStyles;if(null===P)0===(x?g.classBindings:g.styleBindings)&&(y=xl(y=Pu(null,f,g,y,x),g.attrs,x),H=null);else{const j=g.directiveStylingLast;if(-1===j||f[j]!==P)if(y=Pu(P,f,g,y,x),null===H){let Ie=function Rb(f,g,y){const x=y?g.classBindings:g.styleBindings;if(0!==Qa(x))return f[ha(x)]}(f,g,x);void 0!==Ie&&Array.isArray(Ie)&&(Ie=Pu(null,f,g,Ie[1],x),Ie=xl(Ie,g.attrs,x),function Pb(f,g,y,x){f[ha(y?g.classBindings:g.styleBindings)]=x}(f,g,x,Ie))}else H=function Ib(f,g,y){let x;const P=g.directiveEnd;for(let H=1+g.directiveStylingLast;H0)&&(it=!0)}else ft=y;if(P)if(0!==Ie){const Nt=ha(f[me+1]);f[x+1]=hc(Nt,me),0!==Nt&&(f[Nt+1]=Yd(f[Nt+1],x)),f[me+1]=function dC(f,g){return 131071&f|g<<17}(f[me+1],x)}else f[x+1]=hc(me,0),0!==me&&(f[me+1]=Yd(f[me+1],x)),me=x;else f[x+1]=hc(Ie,0),0===me?me=x:f[Ie+1]=Yd(f[Ie+1],x),Ie=x;it&&(f[x+1]=zd(f[x+1])),zf(f,ft,x,!0),zf(f,ft,x,!1),function bb(f,g,y,x,P){const H=P?f.residualClasses:f.residualStyles;null!=H&&"string"==typeof g&&Dn(H,g)>=0&&(y[x+1]=qd(y[x+1]))}(g,ft,f,x,H),j=hc(me,Ie),H?g.classBindings=j:g.styleBindings=j}(P,H,g,y,j,x)}}function Pu(f,g,y,x,P){let H=null;const j=y.directiveEnd;let me=y.directiveStylingLast;for(-1===me?me=y.directiveStart:me++;me0;){const Ie=f[P],it=Array.isArray(Ie),ft=it?Ie[1]:Ie,xt=null===ft;let Nt=y[P+1];Nt===Vn&&(Nt=xt?d:void 0);let Yt=xt?hn(Nt,x):ft===x?Nt:void 0;if(it&&!Mc(Yt)&&(Yt=hn(Ie,x)),Mc(Yt)&&(me=Yt,j))return me;const tn=f[P+1];P=j?ha(tn):Qa(tn)}if(null!==g){let Ie=H?g.residualClasses:g.residualStyles;null!=Ie&&(me=hn(Ie,x))}return me}function Mc(f){return void 0!==f}function am(f,g){return 0!=(f.flags&(g?16:32))}function om(f,g=""){const y=nn(),x=Un(),P=f+22,H=x.firstCreatePass?Ds(x,P,1,g,null):x.data[P],j=y[P]=function Hd(f,g){return f.createText(g)}(y[11],g);cc(x,y,j,H),Qe(H,!1)}function Iu(f){return xc("",f,""),Iu}function xc(f,g,y){const x=nn(),P=Is(x,f,g,y);return P!==Vn&&Ka(x,Hi(),P),xc}function Ou(f,g,y,x,P){const H=nn(),j=Os(H,f,g,y,x,P);return j!==Vn&&Ka(H,Hi(),j),Ou}function Hu(f,g,y,x,P,H,j){const me=nn(),Ie=function Hs(f,g,y,x,P,H,j,me){const it=vc(f,$i(),y,P,j);return yr(3),it?g+ie(y)+x+ie(P)+H+ie(j)+me:Vn}(me,f,g,y,x,P,H,j);return Ie!==Vn&&Ka(me,Hi(),Ie),Hu}function Lu(f,g,y,x,P,H,j,me,Ie){const it=nn(),ft=function Ls(f,g,y,x,P,H,j,me,Ie,it){const xt=ea(f,$i(),y,P,j,Ie);return yr(4),xt?g+ie(y)+x+ie(P)+H+ie(j)+me+ie(Ie)+it:Vn}(it,f,g,y,x,P,H,j,me,Ie);return ft!==Vn&&Ka(it,Hi(),ft),Lu}function Bu(f,g,y,x,P,H,j,me,Ie,it,ft){const xt=nn(),Nt=function Bs(f,g,y,x,P,H,j,me,Ie,it,ft,xt){const Nt=$i();let Yt=ea(f,Nt,y,P,j,Ie);return Yt=vr(f,Nt+4,ft)||Yt,yr(5),Yt?g+ie(y)+x+ie(P)+H+ie(j)+me+ie(Ie)+it+ie(ft)+xt:Vn}(xt,f,g,y,x,P,H,j,me,Ie,it,ft);return Nt!==Vn&&Ka(xt,Hi(),Nt),Bu}function um(f,g,y){fa(En,Ha,Is(nn(),f,g,y),!0)}function Uu(f,g,y){const x=nn();return vr(x,ur(),g)&&Gr(Un(),_i(),x,f,g,x[11],y,!0),Uu}function Nu(f,g,y){const x=nn();if(vr(x,ur(),g)){const H=Un(),j=_i();Gr(H,j,x,f,g,gf(Xa(H.data),j,x),y,!0)}return Nu}const $o=void 0;var ev=["en",[["a","p"],["AM","PM"],$o],[["AM","PM"],$o,$o],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],$o,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],$o,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",$o,"{1} 'at' {0}",$o],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Xb(f){const y=Math.floor(Math.abs(f)),x=f.toString().replace(/^[^.]*\.?/,"").length;return 1===y&&0===x?1:5}];let Fs={};function ku(f){const g=function tv(f){return f.toLowerCase().replace(/_/g,"-")}(f);let y=Em(g);if(y)return y;const x=g.split("-")[0];if(y=Em(x),y)return y;if("en"===x)return ev;throw new ee(701,!1)}function vm(f){return ku(f)[Rn.PluralCase]}function Em(f){return f in Fs||(Fs[f]=n.ng&&n.ng.common&&n.ng.common.locales&&n.ng.common.locales[f]),Fs[f]}var Rn=(()=>((Rn=Rn||{})[Rn.LocaleId=0]="LocaleId",Rn[Rn.DayPeriodsFormat=1]="DayPeriodsFormat",Rn[Rn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Rn[Rn.DaysFormat=3]="DaysFormat",Rn[Rn.DaysStandalone=4]="DaysStandalone",Rn[Rn.MonthsFormat=5]="MonthsFormat",Rn[Rn.MonthsStandalone=6]="MonthsStandalone",Rn[Rn.Eras=7]="Eras",Rn[Rn.FirstDayOfWeek=8]="FirstDayOfWeek",Rn[Rn.WeekendRange=9]="WeekendRange",Rn[Rn.DateFormat=10]="DateFormat",Rn[Rn.TimeFormat=11]="TimeFormat",Rn[Rn.DateTimeFormat=12]="DateTimeFormat",Rn[Rn.NumberSymbols=13]="NumberSymbols",Rn[Rn.NumberFormats=14]="NumberFormats",Rn[Rn.CurrencyCode=15]="CurrencyCode",Rn[Rn.CurrencySymbol=16]="CurrencySymbol",Rn[Rn.CurrencyName=17]="CurrencyName",Rn[Rn.Currencies=18]="Currencies",Rn[Rn.Directionality=19]="Directionality",Rn[Rn.PluralCase=20]="PluralCase",Rn[Rn.ExtraData=21]="ExtraData",Rn))();const js="en-US";let Tm=js;function ju(f,g,y,x,P){if(f=L(f),Array.isArray(f))for(let H=0;H>20;if(zo(f)||!f.multi){const Yt=new Fa(Ie,P,xs),tn=Gu(me,g,P?ft:ft+Nt,xt);-1===tn?(aa(Qr(it,j),H,me),Zu(H,f,g.length),g.push(me),it.directiveStart++,it.directiveEnd++,P&&(it.providerIndexes+=1048576),y.push(Yt),j.push(Yt)):(y[tn]=Yt,j[tn]=Yt)}else{const Yt=Gu(me,g,ft+Nt,xt),tn=Gu(me,g,ft,ft+Nt),cn=Yt>=0&&y[Yt],mn=tn>=0&&y[tn];if(P&&!mn||!P&&!cn){aa(Qr(it,j),H,me);const wn=function $v(f,g,y,x,P){const H=new Fa(f,y,xs);return H.multi=[],H.index=g,H.componentProviders=0,qm(H,P,x&&!y),H}(P?Kv:Qv,y.length,P,x,Ie);!P&&mn&&(y[tn].providerFactory=wn),Zu(H,f,g.length,0),g.push(me),it.directiveStart++,it.directiveEnd++,P&&(it.providerIndexes+=1048576),y.push(wn),j.push(wn)}else Zu(H,f,Yt>-1?Yt:tn,qm(y[P?tn:Yt],Ie,!P&&x));!P&&x&&mn&&y[tn].componentProviders++}}}function Zu(f,g,y,x){const P=zo(g),H=function D_(f){return!!f.useClass}(g);if(P||H){const Ie=(H?L(g.useClass):g).prototype.ngOnDestroy;if(Ie){const it=f.destroyHooks||(f.destroyHooks=[]);if(!P&&g.multi){const ft=it.indexOf(y);-1===ft?it.push(y,[x,Ie]):it[ft+1].push(x,Ie)}else it.push(y,Ie)}}}function qm(f,g,y){return y&&f.componentProviders++,f.multi.push(g)-1}function Gu(f,g,y,x){for(let P=y;P{y.providersResolver=(x,P)=>function Jv(f,g,y){const x=Un();if(x.firstCreatePass){const P=li(f);ju(y,x.data,x.blueprint,P,!0),ju(g,x.data,x.blueprint,P,!1)}}(x,P?P(f):f,g)}}class Gs{}class Qm{}function Xv(f,g){return new Km(f,g??null)}class Km extends Gs{constructor(g,y){super(),this._parent=y,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new fu(this);const x=jt(g);this._bootstrapComponents=Ja(x.bootstrap),this._r3Injector=Ip(g,y,[{provide:Gs,useValue:this},{provide:_l,useValue:this.componentFactoryResolver}],v(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(y=>y()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class zu extends Qm{constructor(g){super(),this.moduleType=g}create(g){return new Km(this.moduleType,g)}}class eE extends Gs{constructor(g,y,x){super(),this.componentFactoryResolver=new fu(this),this.instance=null;const P=new Nh([...g,{provide:Gs,useValue:this},{provide:_l,useValue:this.componentFactoryResolver}],y||sc(),x,new Set(["environment"]));this.injector=P,P.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function Yu(f,g,y=null){return new eE(f,g,y).injector}function rg(f,g,y){const x=ii()+f,P=nn();return P[x]===Vn?Ia(P,x,y?g.call(y):g()):function Ml(f,g){return f[g]}(P,x)}function ag(f,g,y,x){return lg(nn(),ii(),f,g,y,x)}function og(f,g,y,x,P){return cg(nn(),ii(),f,g,y,x,P)}function sg(f,g,y,x,P,H){return dg(nn(),ii(),f,g,y,x,P,H)}function Ol(f,g){const y=f[g];return y===Vn?void 0:y}function lg(f,g,y,x,P,H){const j=g+y;return vr(f,j,P)?Ia(f,j+1,H?x.call(H,P):x(P)):Ol(f,j+1)}function cg(f,g,y,x,P,H,j){const me=g+y;return Ko(f,me,P,H)?Ia(f,me+2,j?x.call(j,P,H):x(P,H)):Ol(f,me+2)}function dg(f,g,y,x,P,H,j,me){const Ie=g+y;return vc(f,Ie,P,H,j)?Ia(f,Ie+3,me?x.call(me,P,H,j):x(P,H,j)):Ol(f,Ie+3)}function pg(f,g){const y=Un();let x;const P=f+22;y.firstCreatePass?(x=function _E(f,g){if(g)for(let y=g.length-1;y>=0;y--){const x=g[y];if(f===x.name)return x}}(g,y.pipeRegistry),y.data[P]=x,x.onDestroy&&(y.destroyHooks||(y.destroyHooks=[])).push(P,x.onDestroy)):x=y.data[P];const H=x.factory||(x.factory=ui(x.type)),j=r(xs);try{const me=Ca(!1),Ie=H();return Ca(me),function fb(f,g,y,x){y>=f.data.length&&(f.data[y]=null,f.blueprint[y]=null),g[y]=x}(y,nn(),P,Ie),Ie}finally{r(j)}}function fg(f,g,y){const x=f+22,P=nn(),H=dr(P,x);return Hl(P,x)?lg(P,ii(),g,H.transform,y,H):H.transform(y)}function mg(f,g,y,x){const P=f+22,H=nn(),j=dr(H,P);return Hl(H,P)?cg(H,ii(),g,j.transform,y,x,j):j.transform(y,x)}function gg(f,g,y,x,P){const H=f+22,j=nn(),me=dr(j,H);return Hl(j,H)?dg(j,ii(),g,me.transform,y,x,P,me):me.transform(y,x,P)}function _g(f,g,y,x,P,H){const j=f+22,me=nn(),Ie=dr(me,j);return Hl(me,j)?function ug(f,g,y,x,P,H,j,me,Ie){const it=g+y;return ea(f,it,P,H,j,me)?Ia(f,it+4,Ie?x.call(Ie,P,H,j,me):x(P,H,j,me)):Ol(f,it+4)}(me,ii(),g,Ie.transform,y,x,P,H,Ie):Ie.transform(y,x,P,H)}function Hl(f,g){return f[1].data[g].pure}function Ju(f){return g=>{setTimeout(f,void 0,g)}}const La=class CE extends e.x{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,y,x){let P=g,H=y||(()=>null),j=x;if(g&&"object"==typeof g){var me,Ie,it;const xt=g;P=null===(me=xt.next)||void 0===me?void 0:me.bind(xt),H=null===(Ie=xt.error)||void 0===Ie?void 0:Ie.bind(xt),j=null===(it=xt.complete)||void 0===it?void 0:it.bind(xt)}this.__isAsync&&(H=Ju(H),P&&(P=Ju(P)),j&&(j=Ju(j)));const ft=super.subscribe({next:P,error:H,complete:j});return g instanceof A.w0&&g.add(ft),ft}};function bE(){return this._results[Qo()]()}class Oc{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const y=Qo(),x=Oc.prototype;x[y]||(x[y]=bE)}get changes(){return this._changes||(this._changes=new La)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,y){return this._results.reduce(g,y)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,y){const x=this;x.dirty=!1;const P=fr(g);(this._changesDetected=!function ll(f,g,y){if(f.length!==g.length)return!1;for(let x=0;x{class f{}return f.__NG_ELEMENT_ID__=TE,f})();const vE=Ll,EE=class extends vE{constructor(g,y,x){super(),this._declarationLView=g,this._declarationTContainer=y,this.elementRef=x}createEmbeddedView(g,y){const x=this._declarationTContainer.tViews,P=mc(this._declarationLView,x,g,16,null,x.declTNode,null,null,null,null,y||null);P[17]=this._declarationLView[this._declarationTContainer.index];const j=this._declarationLView[19];return null!==j&&(P[19]=j.createEmbeddedView(x)),gc(x,P,g),new yl(P)}};function TE(){return Hc(ci(),nn())}function Hc(f,g){return 4&f.type?new EE(g,f,ys(f,g)):null}let Lc=(()=>{class f{}return f.__NG_ELEMENT_ID__=yE,f})();function yE(){return bg(ci(),nn())}const wE=Lc,Ag=class extends wE{constructor(g,y,x){super(),this._lContainer=g,this._hostTNode=y,this._hostLView=x}get element(){return ys(this._hostTNode,this._hostLView)}get injector(){return new Ea(this._hostTNode,this._hostLView)}get parentInjector(){const g=ra(this._hostTNode,this._hostLView);if(so(g)){const y=Sr(g,this._hostLView),x=Aa(g);return new Ea(y[1].data[x+8],y)}return new Ea(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const y=Cg(this._lContainer);return null!==y&&y[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,y,x){let P,H;"number"==typeof x?P=x:null!=x&&(P=x.index,H=x.injector);const j=g.createEmbeddedView(y||{},H);return this.insert(j,P),j}createComponent(g,y,x,P,H){const j=g&&!function qa(f){return"function"==typeof f}(g);let me;if(j)me=y;else{const xt=y||{};me=xt.index,x=xt.injector,P=xt.projectableNodes,H=xt.environmentInjector||xt.ngModuleRef}const Ie=j?g:new wl(ke(g)),it=x||this.parentInjector;if(!H&&null==Ie.ngModule){const Nt=(j?it:this.parentInjector).get(Yo,null);Nt&&(H=Nt)}const ft=Ie.create(it,P,void 0,H);return this.insert(ft.hostView,me),ft}insert(g,y){const x=g._lView,P=x[1];if(function Je(f){return si(f[3])}(x)){const ft=this.indexOf(g);if(-1!==ft)this.detach(ft);else{const xt=x[3],Nt=new Ag(xt,xt[6],xt[3]);Nt.detach(Nt.indexOf(g))}}const H=this._adjustIndex(y),j=this._lContainer;!function SA(f,g,y,x){const P=10+x,H=y.length;x>0&&(y[P-1][4]=g),x0)x.push(j[me/2]);else{const it=H[me+1],ft=g[-Ie];for(let xt=10;xt{class f{constructor(y){this.appInits=y,this.resolve=Uc,this.reject=Uc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((x,P)=>{this.resolve=x,this.reject=P})}runInitializers(){if(this.initialized)return;const y=[],x=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let P=0;P{H.subscribe({complete:me,error:Ie})});y.push(j)}}Promise.all(y).then(()=>{x()}).catch(P=>{this.reject(P)}),0===y.length&&x(),this.initialized=!0}}return f.\u0275fac=function(y){return new(y||f)(Bi(Jg,8))},f.\u0275prov=xe({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();const Qg=new ai("AppId",{providedIn:"root",factory:function Kg(){return`${oh()}${oh()}${oh()}`}});function oh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const $g=new ai("Platform Initializer"),XE=new ai("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Xg=new ai("appBootstrapListener"),eT=new ai("AnimationModuleType");let tT=(()=>{class f{log(y){console.log(y)}warn(y){console.warn(y)}}return f.\u0275fac=function(y){return new(y||f)},f.\u0275prov=xe({token:f,factory:f.\u0275fac,providedIn:"platform"}),f})();const kc=new ai("LocaleId",{providedIn:"root",factory:()=>Yl(kc,Ne.Optional|Ne.SkipSelf)||function nT(){return typeof $localize<"u"&&$localize.locale||js}()}),iT=new ai("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class rT{constructor(g,y){this.ngModuleFactory=g,this.componentFactories=y}}let aT=(()=>{class f{compileModuleSync(y){return new zu(y)}compileModuleAsync(y){return Promise.resolve(this.compileModuleSync(y))}compileModuleAndAllComponentsSync(y){const x=this.compileModuleSync(y),H=Ja(jt(y).declarations).reduce((j,me)=>{const Ie=ke(me);return Ie&&j.push(new wl(Ie)),j},[]);return new rT(x,H)}compileModuleAndAllComponentsAsync(y){return Promise.resolve(this.compileModuleAndAllComponentsSync(y))}clearCache(){}clearCacheFor(y){}getModuleId(y){}}return f.\u0275fac=function(y){return new(y||f)},f.\u0275prov=xe({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();const lT=(()=>Promise.resolve(0))();function sh(f){typeof Zone>"u"?lT.then(()=>{f&&f.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",f)}class Wr{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:y=!1,shouldCoalesceRunChangeDetection:x=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new La(!1),this.onMicrotaskEmpty=new La(!1),this.onStable=new La(!1),this.onError=new La(!1),typeof Zone>"u")throw new ee(908,!1);Zone.assertZonePatched();const P=this;if(P._nesting=0,P._outer=P._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const H=Zone.AsyncStackTaggingZoneSpec;P._inner=P._inner.fork(new H("Angular"))}Zone.TaskTrackingZoneSpec&&(P._inner=P._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(P._inner=P._inner.fork(Zone.longStackTraceZoneSpec)),P.shouldCoalesceEventChangeDetection=!x&&y,P.shouldCoalesceRunChangeDetection=x,P.lastRequestAnimationFrameId=-1,P.nativeRequestAnimationFrame=function cT(){let f=n.requestAnimationFrame,g=n.cancelAnimationFrame;if(typeof Zone<"u"&&f&&g){const y=f[Zone.__symbol__("OriginalDelegate")];y&&(f=y);const x=g[Zone.__symbol__("OriginalDelegate")];x&&(g=x)}return{nativeRequestAnimationFrame:f,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function hT(f){const g=()=>{!function uT(f){f.isCheckStableRunning||-1!==f.lastRequestAnimationFrameId||(f.lastRequestAnimationFrameId=f.nativeRequestAnimationFrame.call(n,()=>{f.fakeTopEventTask||(f.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{f.lastRequestAnimationFrameId=-1,ch(f),f.isCheckStableRunning=!0,lh(f),f.isCheckStableRunning=!1},void 0,()=>{},()=>{})),f.fakeTopEventTask.invoke()}),ch(f))}(f)};f._inner=f._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(y,x,P,H,j,me)=>{try{return n_(f),y.invokeTask(P,H,j,me)}finally{(f.shouldCoalesceEventChangeDetection&&"eventTask"===H.type||f.shouldCoalesceRunChangeDetection)&&g(),i_(f)}},onInvoke:(y,x,P,H,j,me,Ie)=>{try{return n_(f),y.invoke(P,H,j,me,Ie)}finally{f.shouldCoalesceRunChangeDetection&&g(),i_(f)}},onHasTask:(y,x,P,H)=>{y.hasTask(P,H),x===P&&("microTask"==H.change?(f._hasPendingMicrotasks=H.microTask,ch(f),lh(f)):"macroTask"==H.change&&(f.hasPendingMacrotasks=H.macroTask))},onHandleError:(y,x,P,H)=>(y.handleError(P,H),f.runOutsideAngular(()=>f.onError.emit(H)),!1)})}(P)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Wr.isInAngularZone())throw new ee(909,!1)}static assertNotInAngularZone(){if(Wr.isInAngularZone())throw new ee(909,!1)}run(g,y,x){return this._inner.run(g,y,x)}runTask(g,y,x,P){const H=this._inner,j=H.scheduleEventTask("NgZoneEvent: "+P,g,dT,Uc,Uc);try{return H.runTask(j,y,x)}finally{H.cancelTask(j)}}runGuarded(g,y,x){return this._inner.runGuarded(g,y,x)}runOutsideAngular(g){return this._outer.run(g)}}const dT={};function lh(f){if(0==f._nesting&&!f.hasPendingMicrotasks&&!f.isStable)try{f._nesting++,f.onMicrotaskEmpty.emit(null)}finally{if(f._nesting--,!f.hasPendingMicrotasks)try{f.runOutsideAngular(()=>f.onStable.emit(null))}finally{f.isStable=!0}}}function ch(f){f.hasPendingMicrotasks=!!(f._hasPendingMicrotasks||(f.shouldCoalesceEventChangeDetection||f.shouldCoalesceRunChangeDetection)&&-1!==f.lastRequestAnimationFrameId)}function n_(f){f._nesting++,f.isStable&&(f.isStable=!1,f.onUnstable.emit(null))}function i_(f){f._nesting--,lh(f)}class pT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new La,this.onMicrotaskEmpty=new La,this.onStable=new La,this.onError=new La}run(g,y,x){return g.apply(y,x)}runGuarded(g,y,x){return g.apply(y,x)}runOutsideAngular(g){return g()}runTask(g,y,x,P){return g.apply(y,x)}}const r_=new ai(""),a_=new ai("");let dh,fT=(()=>{class f{constructor(y,x,P){this._ngZone=y,this.registry=x,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,dh||(function mT(f){dh=f}(P),P.addToWindow(x)),this._watchAngularEvents(),y.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Wr.assertNotInAngularZone(),sh(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())sh(()=>{for(;0!==this._callbacks.length;){let y=this._callbacks.pop();clearTimeout(y.timeoutId),y.doneCb(this._didWork)}this._didWork=!1});else{let y=this.getPendingTasks();this._callbacks=this._callbacks.filter(x=>!x.updateCb||!x.updateCb(y)||(clearTimeout(x.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(y=>({source:y.source,creationLocation:y.creationLocation,data:y.data})):[]}addCallback(y,x,P){let H=-1;x&&x>0&&(H=setTimeout(()=>{this._callbacks=this._callbacks.filter(j=>j.timeoutId!==H),y(this._didWork,this.getPendingTasks())},x)),this._callbacks.push({doneCb:y,timeoutId:H,updateCb:P})}whenStable(y,x,P){if(P&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(y,x,P),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(y){this.registry.registerApplication(y,this)}unregisterApplication(y){this.registry.unregisterApplication(y)}findProviders(y,x,P){return[]}}return f.\u0275fac=function(y){return new(y||f)(Bi(Wr),Bi(o_),Bi(a_))},f.\u0275prov=xe({token:f,factory:f.\u0275fac}),f})(),o_=(()=>{class f{constructor(){this._applications=new Map}registerApplication(y,x){this._applications.set(y,x)}unregisterApplication(y){this._applications.delete(y)}unregisterAllApplications(){this._applications.clear()}getTestability(y){return this._applications.get(y)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(y,x=!0){var P,H;return null!==(P=null===(H=dh)||void 0===H?void 0:H.findTestabilityInTree(this,y,x))&&void 0!==P?P:null}}return f.\u0275fac=function(y){return new(y||f)},f.\u0275prov=xe({token:f,factory:f.\u0275fac,providedIn:"platform"}),f})(),So=null;const s_=new ai("AllowMultipleToken"),uh=new ai("PlatformDestroyListeners");class AT{constructor(g,y){this.name=g,this.token=y}}function c_(f,g,y=[]){const x=`Platform: ${g}`,P=new ai(x);return(H=[])=>{let j=hh();if(!j||j.injector.get(s_,!1)){const me=[...y,...H,{provide:P,useValue:!0}];f?f(me):function CT(f){if(So&&!So.get(s_,!1))throw new ee(400,!1);So=f;const g=f.get(u_);(function l_(f){const g=f.get($g,null);g&&g.forEach(y=>y())})(f)}(function d_(f=[],g){return Jo.create({name:g,providers:[{provide:gd,useValue:"platform"},{provide:uh,useValue:new Set([()=>So=null])},...f]})}(me,x))}return function vT(f){const g=hh();if(!g)throw new ee(401,!1);return g}()}}function hh(){var f,g;return null!==(f=null===(g=So)||void 0===g?void 0:g.get(u_))&&void 0!==f?f:null}let u_=(()=>{class f{constructor(y){this._injector=y,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(y,x){const P=function ET(f,g){let y;return y="noop"===f?new pT:("zone.js"===f?void 0:f)||new Wr(g),y}(x?.ngZone,function h_(f){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!f||!f.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!f||!f.ngZoneRunCoalescing)||!1}}(x)),H=[{provide:Wr,useValue:P}];return P.run(()=>{const j=Jo.create({providers:H,parent:this.injector,name:y.moduleType.name}),me=y.create(j),Ie=me.injector.get(Cl,null);if(!Ie)throw new ee(402,!1);return P.runOutsideAngular(()=>{const it=P.onError.subscribe({next:ft=>{Ie.handleError(ft)}});me.onDestroy(()=>{Fc(this._modules,me),it.unsubscribe()})}),function p_(f,g,y){try{const x=y();return yu(x)?x.catch(P=>{throw g.runOutsideAngular(()=>f.handleError(P)),P}):x}catch(x){throw g.runOutsideAngular(()=>f.handleError(x)),x}}(Ie,P,()=>{const it=me.injector.get(Nc);return it.runInitializers(),it.donePromise.then(()=>(function ym(f){k(f,"Expected localeId to be defined"),"string"==typeof f&&(Tm=f.toLowerCase().replace(/_/g,"-"))}(me.injector.get(kc,js)||js),this._moduleDoBootstrap(me),me))})})}bootstrapModule(y,x=[]){const P=f_({},x);return function gT(f,g,y){const x=new zu(y);return Promise.resolve(x)}(0,0,y).then(H=>this.bootstrapModuleFactory(H,P))}_moduleDoBootstrap(y){const x=y.injector.get(Vc);if(y._bootstrapComponents.length>0)y._bootstrapComponents.forEach(P=>x.bootstrap(P));else{if(!y.instance.ngDoBootstrap)throw new ee(403,!1);y.instance.ngDoBootstrap(x)}this._modules.push(y)}onDestroy(y){this._destroyListeners.push(y)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ee(404,!1);this._modules.slice().forEach(x=>x.destroy()),this._destroyListeners.forEach(x=>x());const y=this._injector.get(uh,null);y&&(y.forEach(x=>x()),y.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return f.\u0275fac=function(y){return new(y||f)(Bi(Jo))},f.\u0275prov=xe({token:f,factory:f.\u0275fac,providedIn:"platform"}),f})();function f_(f,g){return Array.isArray(g)?g.reduce(f_,f):{...f,...g}}let Vc=(()=>{class f{constructor(y,x,P){this._zone=y,this._injector=x,this._exceptionHandler=P,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const H=new C.y(me=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{me.next(this._stable),me.complete()})}),j=new C.y(me=>{let Ie;this._zone.runOutsideAngular(()=>{Ie=this._zone.onStable.subscribe(()=>{Wr.assertNotInAngularZone(),sh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,me.next(!0))})})});const it=this._zone.onUnstable.subscribe(()=>{Wr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{me.next(!1)}))});return()=>{Ie.unsubscribe(),it.unsubscribe()}});this.isStable=(0,M.T)(H,j.pipe((0,m.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(y,x){const P=y instanceof Vh;if(!this._injector.get(Nc).done)throw!P&&zs(y),new ee(405,false);let j;j=P?y:this._injector.get(_l).resolveComponentFactory(y),this.componentTypes.push(j.componentType);const me=function _T(f){return f.isBoundToModule}(j)?void 0:this._injector.get(Gs),it=j.create(Jo.NULL,[],x||j.selector,me),ft=it.location.nativeElement,xt=it.injector.get(r_,null);return xt?.registerApplication(ft),it.onDestroy(()=>{this.detachView(it.hostView),Fc(this.components,it),xt?.unregisterApplication(ft)}),this._loadComponent(it),it}tick(){if(this._runningTick)throw new ee(101,!1);try{this._runningTick=!0;for(let y of this._views)y.detectChanges()}catch(y){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(y))}finally{this._runningTick=!1}}attachView(y){const x=y;this._views.push(x),x.attachToAppRef(this)}detachView(y){const x=y;Fc(this._views,x),x.detachFromAppRef()}_loadComponent(y){this.attachView(y.hostView),this.tick(),this.components.push(y),this._injector.get(Xg,[]).concat(this._bootstrapListeners).forEach(P=>P(y))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(y=>y()),this._views.slice().forEach(y=>y.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(y){return this._destroyListeners.push(y),()=>Fc(this._destroyListeners,y)}destroy(){if(this._destroyed)throw new ee(406,!1);const y=this._injector;y.destroy&&!y.destroyed&&y.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return f.\u0275fac=function(y){return new(y||f)(Bi(Wr),Bi(Yo),Bi(Cl))},f.\u0275prov=xe({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();function Fc(f,g){const y=f.indexOf(g);y>-1&&f.splice(y,1)}let g_=!0;function yT(){g_=!1}let wT=(()=>{class f{}return f.__NG_ELEMENT_ID__=ST,f})();function ST(f){return function MT(f,g,y){if(tr(f)&&!y){const x=gi(f.index,g);return new yl(x,x)}return 47&f.type?new yl(g[16],g):null}(ci(),nn(),16==(16&f))}class v_{constructor(){}supports(g){return Sl(g)}create(g){return new OT(g)}}const IT=(f,g)=>g;class OT{constructor(g){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=g||IT}forEachItem(g){let y;for(y=this._itHead;null!==y;y=y._next)g(y)}forEachOperation(g){let y=this._itHead,x=this._removalsHead,P=0,H=null;for(;y||x;){const j=!x||y&&y.currentIndex{j=this._trackByFn(P,me),null!==y&&Object.is(y.trackById,j)?(x&&(y=this._verifyReinsertion(y,me,j,P)),Object.is(y.item,me)||this._addIdentityChange(y,me)):(y=this._mismatch(y,me,j,P),x=!0),y=y._next,P++}),this.length=P;return this._truncate(y),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,y,x,P){let H;return null===g?H=this._itTail:(H=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(x,null))?(Object.is(g.item,y)||this._addIdentityChange(g,y),this._reinsertAfter(g,H,P)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(x,P))?(Object.is(g.item,y)||this._addIdentityChange(g,y),this._moveAfter(g,H,P)):g=this._addAfter(new HT(y,x),H,P),g}_verifyReinsertion(g,y,x,P){let H=null===this._unlinkedRecords?null:this._unlinkedRecords.get(x,null);return null!==H?g=this._reinsertAfter(H,g._prev,P):g.currentIndex!=P&&(g.currentIndex=P,this._addToMoves(g,P)),g}_truncate(g){for(;null!==g;){const y=g._next;this._addToRemovals(this._unlink(g)),g=y}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(g,y,x){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const P=g._prevRemoved,H=g._nextRemoved;return null===P?this._removalsHead=H:P._nextRemoved=H,null===H?this._removalsTail=P:H._prevRemoved=P,this._insertAfter(g,y,x),this._addToMoves(g,x),g}_moveAfter(g,y,x){return this._unlink(g),this._insertAfter(g,y,x),this._addToMoves(g,x),g}_addAfter(g,y,x){return this._insertAfter(g,y,x),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,y,x){const P=null===y?this._itHead:y._next;return g._next=P,g._prev=y,null===P?this._itTail=g:P._prev=g,null===y?this._itHead=g:y._next=g,null===this._linkedRecords&&(this._linkedRecords=new E_),this._linkedRecords.put(g),g.currentIndex=x,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const y=g._prev,x=g._next;return null===y?this._itHead=x:y._next=x,null===x?this._itTail=y:x._prev=y,g}_addToMoves(g,y){return g.previousIndex===y||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new E_),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,y){return g.item=y,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class HT{constructor(g,y){this.item=g,this.trackById=y,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class LT{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,y){let x;for(x=this._head;null!==x;x=x._nextDup)if((null===y||y<=x.currentIndex)&&Object.is(x.trackById,g))return x;return null}remove(g){const y=g._prevDup,x=g._nextDup;return null===y?this._head=x:y._nextDup=x,null===x?this._tail=y:x._prevDup=y,null===this._head}}class E_{constructor(){this.map=new Map}put(g){const y=g.trackById;let x=this.map.get(y);x||(x=new LT,this.map.set(y,x)),x.add(g)}get(g,y){const P=this.map.get(g);return P?P.get(g,y):null}remove(g){const y=g.trackById;return this.map.get(y).remove(g)&&this.map.delete(y),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function T_(f,g,y){const x=f.previousIndex;if(null===x)return x;let P=0;return y&&x{if(y&&y.key===P)this._maybeAddToChanges(y,x),this._appendAfter=y,y=y._next;else{const H=this._getOrCreateRecordForKey(P,x);y=this._insertBeforeOrAppend(y,H)}}),y){y._prev&&(y._prev._next=null),this._removalsHead=y;for(let x=y;null!==x;x=x._nextRemoved)x===this._mapHead&&(this._mapHead=null),this._records.delete(x.key),x._nextRemoved=x._next,x.previousValue=x.currentValue,x.currentValue=null,x._prev=null,x._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(g,y){if(g){const x=g._prev;return y._next=g,y._prev=x,g._prev=y,x&&(x._next=y),g===this._mapHead&&(this._mapHead=y),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=y,y._prev=this._appendAfter):this._mapHead=y,this._appendAfter=y,null}_getOrCreateRecordForKey(g,y){if(this._records.has(g)){const P=this._records.get(g);this._maybeAddToChanges(P,y);const H=P._prev,j=P._next;return H&&(H._next=j),j&&(j._prev=H),P._next=null,P._prev=null,P}const x=new UT(g);return this._records.set(g,x),x.currentValue=y,this._addToAdditions(x),x}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,y){Object.is(y,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=y,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,y){g instanceof Map?g.forEach(y):Object.keys(g).forEach(x=>y(g[x],x))}}class UT{constructor(g){this.key=g,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function w_(){return new _h([new v_])}let _h=(()=>{class f{constructor(y){this.factories=y}static create(y,x){if(null!=x){const P=x.factories.slice();y=y.concat(P)}return new f(y)}static extend(y){return{provide:f,useFactory:x=>f.create(y,x||w_()),deps:[[f,new go,new er]]}}find(y){const x=this.factories.find(P=>P.supports(y));if(null!=x)return x;throw new ee(901,!1)}}return f.\u0275prov=xe({token:f,providedIn:"root",factory:w_}),f})();function S_(){return new Ah([new y_])}let Ah=(()=>{class f{constructor(y){this.factories=y}static create(y,x){if(x){const P=x.factories.slice();y=y.concat(P)}return new f(y)}static extend(y){return{provide:f,useFactory:x=>f.create(y,x||S_()),deps:[[f,new go,new er]]}}find(y){const x=this.factories.find(P=>P.supports(y));if(x)return x;throw new ee(901,!1)}}return f.\u0275prov=xe({token:f,providedIn:"root",factory:S_}),f})();const VT=c_(null,"core",[]);let FT=(()=>{class f{constructor(y){}}return f.\u0275fac=function(y){return new(y||f)(Bi(Vc))},f.\u0275mod=re({type:f}),f.\u0275inj=Fe({}),f})();function jT(f){return"boolean"==typeof f?f:null!=f&&"false"!==f}},24006:(Xe,ue,p)=>{"use strict";p.d(ue,{Cf:()=>Te,EJ:()=>$e,F:()=>mi,Fj:()=>q,JJ:()=>Ce,JL:()=>fe,JU:()=>v,Kr:()=>bi,NI:()=>Ln,On:()=>Ci,Q7:()=>dr,QS:()=>Tr,UX:()=>$n,YN:()=>yt,Zs:()=>gi,_Y:()=>Er,a5:()=>ye,c5:()=>vn,kI:()=>T,oH:()=>kt,p4:()=>zi,sg:()=>rn,u:()=>xi,u5:()=>Ti,wV:()=>Ei});var e=p(94650),A=p(36895),C=p(32076),M=p(4128),m=p(54004);let b=(()=>{class Qe{constructor(Pe,_t){this._renderer=Pe,this._elementRef=_t,this.onChange=Jt=>{},this.onTouched=()=>{}}setProperty(Pe,_t){this._renderer.setProperty(this._elementRef.nativeElement,Pe,_t)}registerOnTouched(Pe){this.onTouched=Pe}registerOnChange(Pe){this.onChange=Pe}setDisabledState(Pe){this.setProperty("disabled",Pe)}}return Qe.\u0275fac=function(Pe){return new(Pe||Qe)(e.Y36(e.Qsj),e.Y36(e.SBq))},Qe.\u0275dir=e.lG2({type:Qe}),Qe})(),D=(()=>{class Qe extends b{}return Qe.\u0275fac=function(){let Ve;return function(_t){return(Ve||(Ve=e.n5z(Qe)))(_t||Qe)}}(),Qe.\u0275dir=e.lG2({type:Qe,features:[e.qOj]}),Qe})();const v=new e.OlP("NgValueAccessor"),w={provide:v,useExisting:(0,e.Gpc)(()=>q),multi:!0},O=new e.OlP("CompositionEventMode");let q=(()=>{class Qe extends b{constructor(Pe,_t,Jt){super(Pe,_t),this._compositionMode=Jt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function L(){const Qe=(0,A.q)()?(0,A.q)().getUserAgent():"";return/android (\d+)/.test(Qe.toLowerCase())}())}writeValue(Pe){this.setProperty("value",Pe??"")}_handleInput(Pe){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Pe)}_compositionStart(){this._composing=!0}_compositionEnd(Pe){this._composing=!1,this._compositionMode&&this.onChange(Pe)}}return Qe.\u0275fac=function(Pe){return new(Pe||Qe)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(O,8))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Pe,_t){1&Pe&&e.NdJ("input",function(_n){return _t._handleInput(_n.target.value)})("blur",function(){return _t.onTouched()})("compositionstart",function(){return _t._compositionStart()})("compositionend",function(_n){return _t._compositionEnd(_n.target.value)})},features:[e._Bn([w]),e.qOj]}),Qe})();function z(Qe){return null==Qe||("string"==typeof Qe||Array.isArray(Qe))&&0===Qe.length}function ie(Qe){return null!=Qe&&"number"==typeof Qe.length}const Te=new e.OlP("NgValidators"),pe=new e.OlP("NgAsyncValidators"),Le=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class T{static min(Ve){return function W(Qe){return Ve=>{if(z(Ve.value)||z(Qe))return null;const Pe=parseFloat(Ve.value);return!isNaN(Pe)&&Pe{if(z(Ve.value)||z(Qe))return null;const Pe=parseFloat(Ve.value);return!isNaN(Pe)&&Pe>Qe?{max:{max:Qe,actual:Ve.value}}:null}}(Ve)}static required(Ve){return V(Ve)}static requiredTrue(Ve){return te(Ve)}static email(Ve){return function Q(Qe){return z(Qe.value)||Le.test(Qe.value)?null:{email:!0}}(Ve)}static minLength(Ve){return function Ee(Qe){return Ve=>z(Ve.value)||!ie(Ve.value)?null:Ve.value.lengthie(Ve.value)&&Ve.value.length>Qe?{maxlength:{requiredLength:Qe,actualLength:Ve.value.length}}:null}(Ve)}static pattern(Ve){return ve(Ve)}static nullValidator(Ve){return null}static compose(Ve){return N(Ve)}static composeAsync(Ve){return Z(Ve)}}function V(Qe){return z(Qe.value)?{required:!0}:null}function te(Qe){return!0===Qe.value?null:{required:!0}}function ve(Qe){if(!Qe)return De;let Ve,Pe;return"string"==typeof Qe?(Pe="","^"!==Qe.charAt(0)&&(Pe+="^"),Pe+=Qe,"$"!==Qe.charAt(Qe.length-1)&&(Pe+="$"),Ve=new RegExp(Pe)):(Pe=Qe.toString(),Ve=Qe),_t=>{if(z(_t.value))return null;const Jt=_t.value;return Ve.test(Jt)?null:{pattern:{requiredPattern:Pe,actualValue:Jt}}}}function De(Qe){return null}function he(Qe){return null!=Qe}function Ye(Qe){return(0,e.QGY)(Qe)?(0,C.D)(Qe):Qe}function Be(Qe){let Ve={};return Qe.forEach(Pe=>{Ve=null!=Pe?{...Ve,...Pe}:Ve}),0===Object.keys(Ve).length?null:Ve}function se(Qe,Ve){return Ve.map(Pe=>Pe(Qe))}function k(Qe){return Qe.map(Ve=>function le(Qe){return!Qe.validate}(Ve)?Ve:Pe=>Ve.validate(Pe))}function N(Qe){if(!Qe)return null;const Ve=Qe.filter(he);return 0==Ve.length?null:function(Pe){return Be(se(Pe,Ve))}}function be(Qe){return null!=Qe?N(k(Qe)):null}function Z(Qe){if(!Qe)return null;const Ve=Qe.filter(he);return 0==Ve.length?null:function(Pe){const _t=se(Pe,Ve).map(Ye);return(0,M.D)(_t).pipe((0,m.U)(Be))}}function de(Qe){return null!=Qe?Z(k(Qe)):null}function xe(Qe,Ve){return null===Qe?[Ve]:Array.isArray(Qe)?[...Qe,Ve]:[Qe,Ve]}function ot(Qe){return Qe._rawValidators}function Fe(Qe){return Qe._rawAsyncValidators}function ut(Qe){return Qe?Array.isArray(Qe)?Qe:[Qe]:[]}function tt(Qe,Ve){return Array.isArray(Qe)?Qe.includes(Ve):Qe===Ve}function vt(Qe,Ve){const Pe=ut(Ve);return ut(Qe).forEach(Jt=>{tt(Pe,Jt)||Pe.push(Jt)}),Pe}function X(Qe,Ve){return ut(Ve).filter(Pe=>!tt(Qe,Pe))}class nt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(Ve){this._rawValidators=Ve||[],this._composedValidatorFn=be(this._rawValidators)}_setAsyncValidators(Ve){this._rawAsyncValidators=Ve||[],this._composedAsyncValidatorFn=de(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Ve){this._onDestroyCallbacks.push(Ve)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Ve=>Ve()),this._onDestroyCallbacks=[]}reset(Ve){this.control&&this.control.reset(Ve)}hasError(Ve,Pe){return!!this.control&&this.control.hasError(Ve,Pe)}getError(Ve,Pe){return this.control?this.control.getError(Ve,Pe):null}}class Ae extends nt{get formDirective(){return null}get path(){return null}}class ye extends nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _e{constructor(Ve){this._cd=Ve}get isTouched(){var Ve,Pe;return!(null===(Ve=this._cd)||void 0===Ve||null===(Pe=Ve.control)||void 0===Pe||!Pe.touched)}get isUntouched(){var Ve,Pe;return!(null===(Ve=this._cd)||void 0===Ve||null===(Pe=Ve.control)||void 0===Pe||!Pe.untouched)}get isPristine(){var Ve,Pe;return!(null===(Ve=this._cd)||void 0===Ve||null===(Pe=Ve.control)||void 0===Pe||!Pe.pristine)}get isDirty(){var Ve,Pe;return!(null===(Ve=this._cd)||void 0===Ve||null===(Pe=Ve.control)||void 0===Pe||!Pe.dirty)}get isValid(){var Ve,Pe;return!(null===(Ve=this._cd)||void 0===Ve||null===(Pe=Ve.control)||void 0===Pe||!Pe.valid)}get isInvalid(){var Ve,Pe;return!(null===(Ve=this._cd)||void 0===Ve||null===(Pe=Ve.control)||void 0===Pe||!Pe.invalid)}get isPending(){var Ve,Pe;return!(null===(Ve=this._cd)||void 0===Ve||null===(Pe=Ve.control)||void 0===Pe||!Pe.pending)}get isSubmitted(){var Ve;return!(null===(Ve=this._cd)||void 0===Ve||!Ve.submitted)}}let Ce=(()=>{class Qe extends _e{constructor(Pe){super(Pe)}}return Qe.\u0275fac=function(Pe){return new(Pe||Qe)(e.Y36(ye,2))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Pe,_t){2&Pe&&e.ekj("ng-untouched",_t.isUntouched)("ng-touched",_t.isTouched)("ng-pristine",_t.isPristine)("ng-dirty",_t.isDirty)("ng-valid",_t.isValid)("ng-invalid",_t.isInvalid)("ng-pending",_t.isPending)},features:[e.qOj]}),Qe})(),fe=(()=>{class Qe extends _e{constructor(Pe){super(Pe)}}return Qe.\u0275fac=function(Pe){return new(Pe||Qe)(e.Y36(Ae,10))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Pe,_t){2&Pe&&e.ekj("ng-untouched",_t.isUntouched)("ng-touched",_t.isTouched)("ng-pristine",_t.isPristine)("ng-dirty",_t.isDirty)("ng-valid",_t.isValid)("ng-invalid",_t.isInvalid)("ng-pending",_t.isPending)("ng-submitted",_t.isSubmitted)},features:[e.qOj]}),Qe})();const et="VALID",ne="INVALID",Ue="PENDING",He="DISABLED";function Oe(Qe){return(st(Qe)?Qe.validators:Qe)||null}function Re(Qe){return Array.isArray(Qe)?be(Qe):Qe||null}function re(Qe,Ve){return(st(Ve)?Ve.asyncValidators:Qe)||null}function we(Qe){return Array.isArray(Qe)?de(Qe):Qe||null}function st(Qe){return null!=Qe&&!Array.isArray(Qe)&&"object"==typeof Qe}function Ke(Qe,Ve,Pe){const _t=Qe.controls;if(!(Ve?Object.keys(_t):_t).length)throw new e.vHH(1e3,"");if(!_t[Pe])throw new e.vHH(1001,"")}function Et(Qe,Ve,Pe){Qe._forEachChild((_t,Jt)=>{if(void 0===Pe[Jt])throw new e.vHH(1002,"")})}class ke{constructor(Ve,Pe){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Ve,this._rawAsyncValidators=Pe,this._composedValidatorFn=Re(this._rawValidators),this._composedAsyncValidatorFn=we(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(Ve){this._rawValidators=this._composedValidatorFn=Ve}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Ve){this._rawAsyncValidators=this._composedAsyncValidatorFn=Ve}get parent(){return this._parent}get valid(){return this.status===et}get invalid(){return this.status===ne}get pending(){return this.status==Ue}get disabled(){return this.status===He}get enabled(){return this.status!==He}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Ve){this._rawValidators=Ve,this._composedValidatorFn=Re(Ve)}setAsyncValidators(Ve){this._rawAsyncValidators=Ve,this._composedAsyncValidatorFn=we(Ve)}addValidators(Ve){this.setValidators(vt(Ve,this._rawValidators))}addAsyncValidators(Ve){this.setAsyncValidators(vt(Ve,this._rawAsyncValidators))}removeValidators(Ve){this.setValidators(X(Ve,this._rawValidators))}removeAsyncValidators(Ve){this.setAsyncValidators(X(Ve,this._rawAsyncValidators))}hasValidator(Ve){return tt(this._rawValidators,Ve)}hasAsyncValidator(Ve){return tt(this._rawAsyncValidators,Ve)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Ve={}){this.touched=!0,this._parent&&!Ve.onlySelf&&this._parent.markAsTouched(Ve)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Ve=>Ve.markAllAsTouched())}markAsUntouched(Ve={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Pe=>{Pe.markAsUntouched({onlySelf:!0})}),this._parent&&!Ve.onlySelf&&this._parent._updateTouched(Ve)}markAsDirty(Ve={}){this.pristine=!1,this._parent&&!Ve.onlySelf&&this._parent.markAsDirty(Ve)}markAsPristine(Ve={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Pe=>{Pe.markAsPristine({onlySelf:!0})}),this._parent&&!Ve.onlySelf&&this._parent._updatePristine(Ve)}markAsPending(Ve={}){this.status=Ue,!1!==Ve.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Ve.onlySelf&&this._parent.markAsPending(Ve)}disable(Ve={}){const Pe=this._parentMarkedDirty(Ve.onlySelf);this.status=He,this.errors=null,this._forEachChild(_t=>{_t.disable({...Ve,onlySelf:!0})}),this._updateValue(),!1!==Ve.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Ve,skipPristineCheck:Pe}),this._onDisabledChange.forEach(_t=>_t(!0))}enable(Ve={}){const Pe=this._parentMarkedDirty(Ve.onlySelf);this.status=et,this._forEachChild(_t=>{_t.enable({...Ve,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ve.emitEvent}),this._updateAncestors({...Ve,skipPristineCheck:Pe}),this._onDisabledChange.forEach(_t=>_t(!1))}_updateAncestors(Ve){this._parent&&!Ve.onlySelf&&(this._parent.updateValueAndValidity(Ve),Ve.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Ve){this._parent=Ve}getRawValue(){return this.value}updateValueAndValidity(Ve={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===et||this.status===Ue)&&this._runAsyncValidator(Ve.emitEvent)),!1!==Ve.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Ve.onlySelf&&this._parent.updateValueAndValidity(Ve)}_updateTreeValidity(Ve={emitEvent:!0}){this._forEachChild(Pe=>Pe._updateTreeValidity(Ve)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ve.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?He:et}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Ve){if(this.asyncValidator){this.status=Ue,this._hasOwnPendingAsyncValidator=!0;const Pe=Ye(this.asyncValidator(this));this._asyncValidationSubscription=Pe.subscribe(_t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(_t,{emitEvent:Ve})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Ve,Pe={}){this.errors=Ve,this._updateControlsErrors(!1!==Pe.emitEvent)}get(Ve){let Pe=Ve;return null==Pe||(Array.isArray(Pe)||(Pe=Pe.split(".")),0===Pe.length)?null:Pe.reduce((_t,Jt)=>_t&&_t._find(Jt),this)}getError(Ve,Pe){const _t=Pe?this.get(Pe):this;return _t&&_t.errors?_t.errors[Ve]:null}hasError(Ve,Pe){return!!this.getError(Ve,Pe)}get root(){let Ve=this;for(;Ve._parent;)Ve=Ve._parent;return Ve}_updateControlsErrors(Ve){this.status=this._calculateStatus(),Ve&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Ve)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?He:this.errors?ne:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ue)?Ue:this._anyControlsHaveStatus(ne)?ne:et}_anyControlsHaveStatus(Ve){return this._anyControls(Pe=>Pe.status===Ve)}_anyControlsDirty(){return this._anyControls(Ve=>Ve.dirty)}_anyControlsTouched(){return this._anyControls(Ve=>Ve.touched)}_updatePristine(Ve={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Ve.onlySelf&&this._parent._updatePristine(Ve)}_updateTouched(Ve={}){this.touched=this._anyControlsTouched(),this._parent&&!Ve.onlySelf&&this._parent._updateTouched(Ve)}_registerOnCollectionChange(Ve){this._onCollectionChange=Ve}_setUpdateStrategy(Ve){st(Ve)&&null!=Ve.updateOn&&(this._updateOn=Ve.updateOn)}_parentMarkedDirty(Ve){return!Ve&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Ve){return null}}class at extends ke{constructor(Ve,Pe,_t){super(Oe(Pe),re(_t,Pe)),this.controls=Ve,this._initObservables(),this._setUpdateStrategy(Pe),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Ve,Pe){return this.controls[Ve]?this.controls[Ve]:(this.controls[Ve]=Pe,Pe.setParent(this),Pe._registerOnCollectionChange(this._onCollectionChange),Pe)}addControl(Ve,Pe,_t={}){this.registerControl(Ve,Pe),this.updateValueAndValidity({emitEvent:_t.emitEvent}),this._onCollectionChange()}removeControl(Ve,Pe={}){this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(()=>{}),delete this.controls[Ve],this.updateValueAndValidity({emitEvent:Pe.emitEvent}),this._onCollectionChange()}setControl(Ve,Pe,_t={}){this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(()=>{}),delete this.controls[Ve],Pe&&this.registerControl(Ve,Pe),this.updateValueAndValidity({emitEvent:_t.emitEvent}),this._onCollectionChange()}contains(Ve){return this.controls.hasOwnProperty(Ve)&&this.controls[Ve].enabled}setValue(Ve,Pe={}){Et(this,0,Ve),Object.keys(Ve).forEach(_t=>{Ke(this,!0,_t),this.controls[_t].setValue(Ve[_t],{onlySelf:!0,emitEvent:Pe.emitEvent})}),this.updateValueAndValidity(Pe)}patchValue(Ve,Pe={}){null!=Ve&&(Object.keys(Ve).forEach(_t=>{const Jt=this.controls[_t];Jt&&Jt.patchValue(Ve[_t],{onlySelf:!0,emitEvent:Pe.emitEvent})}),this.updateValueAndValidity(Pe))}reset(Ve={},Pe={}){this._forEachChild((_t,Jt)=>{_t.reset(Ve[Jt],{onlySelf:!0,emitEvent:Pe.emitEvent})}),this._updatePristine(Pe),this._updateTouched(Pe),this.updateValueAndValidity(Pe)}getRawValue(){return this._reduceChildren({},(Ve,Pe,_t)=>(Ve[_t]=Pe.getRawValue(),Ve))}_syncPendingControls(){let Ve=this._reduceChildren(!1,(Pe,_t)=>!!_t._syncPendingControls()||Pe);return Ve&&this.updateValueAndValidity({onlySelf:!0}),Ve}_forEachChild(Ve){Object.keys(this.controls).forEach(Pe=>{const _t=this.controls[Pe];_t&&Ve(_t,Pe)})}_setUpControls(){this._forEachChild(Ve=>{Ve.setParent(this),Ve._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Ve){for(const[Pe,_t]of Object.entries(this.controls))if(this.contains(Pe)&&Ve(_t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Pe,_t,Jt)=>((_t.enabled||this.disabled)&&(Pe[Jt]=_t.value),Pe))}_reduceChildren(Ve,Pe){let _t=Ve;return this._forEachChild((Jt,_n)=>{_t=Pe(_t,Jt,_n)}),_t}_allControlsDisabled(){for(const Ve of Object.keys(this.controls))if(this.controls[Ve].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Ve){return this.controls.hasOwnProperty(Ve)?this.controls[Ve]:null}}function on(Qe,Ve){return[...Ve.path,Qe]}function Cn(Qe,Ve){var Pe,_t;wt(Qe,Ve),Ve.valueAccessor.writeValue(Qe.value),Qe.disabled&&(null===(Pe=(_t=Ve.valueAccessor).setDisabledState)||void 0===Pe||Pe.call(_t,!0)),function ln(Qe,Ve){Ve.valueAccessor.registerOnChange(Pe=>{Qe._pendingValue=Pe,Qe._pendingChange=!0,Qe._pendingDirty=!0,"change"===Qe.updateOn&&gn(Qe,Ve)})}(Qe,Ve),function zn(Qe,Ve){const Pe=(_t,Jt)=>{Ve.valueAccessor.writeValue(_t),Jt&&Ve.viewToModelUpdate(_t)};Qe.registerOnChange(Pe),Ve._registerOnDestroy(()=>{Qe._unregisterOnChange(Pe)})}(Qe,Ve),function bn(Qe,Ve){Ve.valueAccessor.registerOnTouched(()=>{Qe._pendingTouched=!0,"blur"===Qe.updateOn&&Qe._pendingChange&&gn(Qe,Ve),"submit"!==Qe.updateOn&&Qe.markAsTouched()})}(Qe,Ve),function Ze(Qe,Ve){if(Ve.valueAccessor.setDisabledState){const Pe=_t=>{Ve.valueAccessor.setDisabledState(_t)};Qe.registerOnDisabledChange(Pe),Ve._registerOnDestroy(()=>{Qe._unregisterOnDisabledChange(Pe)})}}(Qe,Ve)}function Tt(Qe,Ve,Pe=!0){const _t=()=>{};Ve.valueAccessor&&(Ve.valueAccessor.registerOnChange(_t),Ve.valueAccessor.registerOnTouched(_t)),Ft(Qe,Ve),Qe&&(Ve._invokeOnDestroyCallbacks(),Qe._registerOnCollectionChange(()=>{}))}function Dt(Qe,Ve){Qe.forEach(Pe=>{Pe.registerOnValidatorChange&&Pe.registerOnValidatorChange(Ve)})}function wt(Qe,Ve){const Pe=ot(Qe);null!==Ve.validator?Qe.setValidators(xe(Pe,Ve.validator)):"function"==typeof Pe&&Qe.setValidators([Pe]);const _t=Fe(Qe);null!==Ve.asyncValidator?Qe.setAsyncValidators(xe(_t,Ve.asyncValidator)):"function"==typeof _t&&Qe.setAsyncValidators([_t]);const Jt=()=>Qe.updateValueAndValidity();Dt(Ve._rawValidators,Jt),Dt(Ve._rawAsyncValidators,Jt)}function Ft(Qe,Ve){let Pe=!1;if(null!==Qe){if(null!==Ve.validator){const Jt=ot(Qe);if(Array.isArray(Jt)&&Jt.length>0){const _n=Jt.filter(hi=>hi!==Ve.validator);_n.length!==Jt.length&&(Pe=!0,Qe.setValidators(_n))}}if(null!==Ve.asyncValidator){const Jt=Fe(Qe);if(Array.isArray(Jt)&&Jt.length>0){const _n=Jt.filter(hi=>hi!==Ve.asyncValidator);_n.length!==Jt.length&&(Pe=!0,Qe.setAsyncValidators(_n))}}}const _t=()=>{};return Dt(Ve._rawValidators,_t),Dt(Ve._rawAsyncValidators,_t),Pe}function gn(Qe,Ve){Qe._pendingDirty&&Qe.markAsDirty(),Qe.setValue(Qe._pendingValue,{emitModelToViewChange:!1}),Ve.viewToModelUpdate(Qe._pendingValue),Qe._pendingChange=!1}function bt(Qe,Ve){wt(Qe,Ve)}function ze(Qe,Ve){if(!Qe.hasOwnProperty("model"))return!1;const Pe=Qe.model;return!!Pe.isFirstChange()||!Object.is(Ve,Pe.currentValue)}function Pt(Qe,Ve){Qe._syncPendingControls(),Ve.forEach(Pe=>{const _t=Pe.control;"submit"===_t.updateOn&&_t._pendingChange&&(Pe.viewToModelUpdate(_t._pendingValue),_t._pendingChange=!1)})}function Xt(Qe,Ve){if(!Ve)return null;let Pe,_t,Jt;return Array.isArray(Ve),Ve.forEach(_n=>{_n.constructor===q?Pe=_n:function At(Qe){return Object.getPrototypeOf(Qe.constructor)===D}(_n)?_t=_n:Jt=_n}),Jt||_t||Pe||null}const Hn={provide:Ae,useExisting:(0,e.Gpc)(()=>mi)},Xn=(()=>Promise.resolve(null))();let mi=(()=>{class Qe extends Ae{constructor(Pe,_t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new at({},be(Pe),de(_t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Pe){Xn.then(()=>{const _t=this._findContainer(Pe.path);Pe.control=_t.registerControl(Pe.name,Pe.control),Cn(Pe.control,Pe),Pe.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Pe)})}getControl(Pe){return this.form.get(Pe.path)}removeControl(Pe){Xn.then(()=>{const _t=this._findContainer(Pe.path);_t&&_t.removeControl(Pe.name),this._directives.delete(Pe)})}addFormGroup(Pe){Xn.then(()=>{const _t=this._findContainer(Pe.path),Jt=new at({});bt(Jt,Pe),_t.registerControl(Pe.name,Jt),Jt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Pe){Xn.then(()=>{const _t=this._findContainer(Pe.path);_t&&_t.removeControl(Pe.name)})}getFormGroup(Pe){return this.form.get(Pe.path)}updateModel(Pe,_t){Xn.then(()=>{this.form.get(Pe.path).setValue(_t)})}setValue(Pe){this.control.setValue(Pe)}onSubmit(Pe){return this.submitted=!0,Pt(this.form,this._directives),this.ngSubmit.emit(Pe),!1}onReset(){this.resetForm()}resetForm(Pe){this.form.reset(Pe),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Pe){return Pe.pop(),Pe.length?this.form.get(Pe):this.form}}return Qe.\u0275fac=function(Pe){return new(Pe||Qe)(e.Y36(Te,10),e.Y36(pe,10))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Pe,_t){1&Pe&&e.NdJ("submit",function(_n){return _t.onSubmit(_n)})("reset",function(){return _t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Hn]),e.qOj]}),Qe})();function di(Qe,Ve){const Pe=Qe.indexOf(Ve);Pe>-1&&Qe.splice(Pe,1)}function Jn(Qe){return"object"==typeof Qe&&null!==Qe&&2===Object.keys(Qe).length&&"value"in Qe&&"disabled"in Qe}const Ln=class extends ke{constructor(Ve=null,Pe,_t){super(Oe(Pe),re(_t,Pe)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Ve),this._setUpdateStrategy(Pe),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),st(Pe)&&(Pe.nonNullable||Pe.initialValueIsDefault)&&(this.defaultValue=Jn(Ve)?Ve.value:Ve)}setValue(Ve,Pe={}){this.value=this._pendingValue=Ve,this._onChange.length&&!1!==Pe.emitModelToViewChange&&this._onChange.forEach(_t=>_t(this.value,!1!==Pe.emitViewToModelChange)),this.updateValueAndValidity(Pe)}patchValue(Ve,Pe={}){this.setValue(Ve,Pe)}reset(Ve=this.defaultValue,Pe={}){this._applyFormState(Ve),this.markAsPristine(Pe),this.markAsUntouched(Pe),this.setValue(this.value,Pe),this._pendingChange=!1}_updateValue(){}_anyControls(Ve){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Ve){this._onChange.push(Ve)}_unregisterOnChange(Ve){di(this._onChange,Ve)}registerOnDisabledChange(Ve){this._onDisabledChange.push(Ve)}_unregisterOnDisabledChange(Ve){di(this._onDisabledChange,Ve)}_forEachChild(Ve){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Ve){Jn(Ve)?(this.value=this._pendingValue=Ve.value,Ve.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Ve}},zi=Ln,sr={provide:ye,useExisting:(0,e.Gpc)(()=>Ci)},lr=(()=>Promise.resolve(null))();let Ci=(()=>{class Qe extends ye{constructor(Pe,_t,Jt,_n,hi){super(),this._changeDetectorRef=hi,this.control=new Ln,this._registered=!1,this.update=new e.vpe,this._parent=Pe,this._setValidators(_t),this._setAsyncValidators(Jt),this.valueAccessor=Xt(0,_n)}ngOnChanges(Pe){if(this._checkForErrors(),!this._registered||"name"in Pe){if(this._registered&&(this._checkName(),this.formDirective)){const _t=Pe.name.previousValue;this.formDirective.removeControl({name:_t,path:this._getPath(_t)})}this._setUpControl()}"isDisabled"in Pe&&this._updateDisabled(Pe),ze(Pe,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Pe){this.viewModel=Pe,this.update.emit(Pe)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Cn(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Pe){lr.then(()=>{var _t;this.control.setValue(Pe,{emitViewToModelChange:!1}),null===(_t=this._changeDetectorRef)||void 0===_t||_t.markForCheck()})}_updateDisabled(Pe){const _t=Pe.isDisabled.currentValue,Jt=0!==_t&&(0,e.D6c)(_t);lr.then(()=>{var _n;Jt&&!this.control.disabled?this.control.disable():!Jt&&this.control.disabled&&this.control.enable(),null===(_n=this._changeDetectorRef)||void 0===_n||_n.markForCheck()})}_getPath(Pe){return this._parent?on(Pe,this._parent):[Pe]}}return Qe.\u0275fac=function(Pe){return new(Pe||Qe)(e.Y36(Ae,9),e.Y36(Te,10),e.Y36(pe,10),e.Y36(v,10),e.Y36(e.sBO,8))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([sr]),e.qOj,e.TTD]}),Qe})(),Er=(()=>{class Qe{}return Qe.\u0275fac=function(Pe){return new(Pe||Qe)},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Qe})();const Ur={provide:v,useExisting:(0,e.Gpc)(()=>Ei),multi:!0};let Ei=(()=>{class Qe extends D{writeValue(Pe){this.setProperty("value",Pe??"")}registerOnChange(Pe){this.onChange=_t=>{Pe(""==_t?null:parseFloat(_t))}}}return Qe.\u0275fac=function(){let Ve;return function(_t){return(Ve||(Ve=e.n5z(Qe)))(_t||Qe)}}(),Qe.\u0275dir=e.lG2({type:Qe,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Pe,_t){1&Pe&&e.NdJ("input",function(_n){return _t.onChange(_n.target.value)})("blur",function(){return _t.onTouched()})},features:[e._Bn([Ur]),e.qOj]}),Qe})(),kr=(()=>{class Qe{}return Qe.\u0275fac=function(Pe){return new(Pe||Qe)},Qe.\u0275mod=e.oAB({type:Qe}),Qe.\u0275inj=e.cJS({}),Qe})();const en=new e.OlP("NgModelWithFormControlWarning"),ct={provide:ye,useExisting:(0,e.Gpc)(()=>kt)};let kt=(()=>{class Qe extends ye{constructor(Pe,_t,Jt,_n){super(),this._ngModelWarningConfig=_n,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(Pe),this._setAsyncValidators(_t),this.valueAccessor=Xt(0,Jt)}set isDisabled(Pe){}ngOnChanges(Pe){if(this._isControlChanged(Pe)){const _t=Pe.form.previousValue;_t&&Tt(_t,this,!1),Cn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}ze(Pe,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Tt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Pe){this.viewModel=Pe,this.update.emit(Pe)}_isControlChanged(Pe){return Pe.hasOwnProperty("form")}}return Qe._ngModelWarningSentOnce=!1,Qe.\u0275fac=function(Pe){return new(Pe||Qe)(e.Y36(Te,10),e.Y36(pe,10),e.Y36(v,10),e.Y36(en,8))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([ct]),e.qOj,e.TTD]}),Qe})();const Zt={provide:Ae,useExisting:(0,e.Gpc)(()=>rn)};let rn=(()=>{class Qe extends Ae{constructor(Pe,_t){super(),this.validators=Pe,this.asyncValidators=_t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(Pe),this._setAsyncValidators(_t)}ngOnChanges(Pe){this._checkFormPresent(),Pe.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ft(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Pe){const _t=this.form.get(Pe.path);return Cn(_t,Pe),_t.updateValueAndValidity({emitEvent:!1}),this.directives.push(Pe),_t}getControl(Pe){return this.form.get(Pe.path)}removeControl(Pe){Tt(Pe.control||null,Pe,!1),function yn(Qe,Ve){const Pe=Qe.indexOf(Ve);Pe>-1&&Qe.splice(Pe,1)}(this.directives,Pe)}addFormGroup(Pe){this._setUpFormContainer(Pe)}removeFormGroup(Pe){this._cleanUpFormContainer(Pe)}getFormGroup(Pe){return this.form.get(Pe.path)}addFormArray(Pe){this._setUpFormContainer(Pe)}removeFormArray(Pe){this._cleanUpFormContainer(Pe)}getFormArray(Pe){return this.form.get(Pe.path)}updateModel(Pe,_t){this.form.get(Pe.path).setValue(_t)}onSubmit(Pe){return this.submitted=!0,Pt(this.form,this.directives),this.ngSubmit.emit(Pe),!1}onReset(){this.resetForm()}resetForm(Pe){this.form.reset(Pe),this.submitted=!1}_updateDomValue(){this.directives.forEach(Pe=>{const _t=Pe.control,Jt=this.form.get(Pe.path);_t!==Jt&&(Tt(_t||null,Pe),(Qe=>Qe instanceof Ln)(Jt)&&(Cn(Jt,Pe),Pe.control=Jt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Pe){const _t=this.form.get(Pe.path);bt(_t,Pe),_t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Pe){if(this.form){const _t=this.form.get(Pe.path);_t&&function Lt(Qe,Ve){return Ft(Qe,Ve)}(_t,Pe)&&_t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){wt(this.form,this),this._oldForm&&Ft(this._oldForm,this)}_checkFormPresent(){}}return Qe.\u0275fac=function(Pe){return new(Pe||Qe)(e.Y36(Te,10),e.Y36(pe,10))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["","formGroup",""]],hostBindings:function(Pe,_t){1&Pe&&e.NdJ("submit",function(_n){return _t.onSubmit(_n)})("reset",function(){return _t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Zt]),e.qOj,e.TTD]}),Qe})();const Oi={provide:ye,useExisting:(0,e.Gpc)(()=>xi)};let xi=(()=>{class Qe extends ye{constructor(Pe,_t,Jt,_n,hi){super(),this._ngModelWarningConfig=hi,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=Pe,this._setValidators(_t),this._setAsyncValidators(Jt),this.valueAccessor=Xt(0,_n)}set isDisabled(Pe){}ngOnChanges(Pe){this._added||this._setUpControl(),ze(Pe,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Pe){this.viewModel=Pe,this.update.emit(Pe)}get path(){return on(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return Qe._ngModelWarningSentOnce=!1,Qe.\u0275fac=function(Pe){return new(Pe||Qe)(e.Y36(Ae,13),e.Y36(Te,10),e.Y36(pe,10),e.Y36(v,10),e.Y36(en,8))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([Oi]),e.qOj,e.TTD]}),Qe})();const qi={provide:v,useExisting:(0,e.Gpc)(()=>$e),multi:!0};function lt(Qe,Ve){return null==Qe?`${Ve}`:(Ve&&"object"==typeof Ve&&(Ve="Object"),`${Qe}: ${Ve}`.slice(0,50))}let $e=(()=>{class Qe extends D{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Pe){this._compareWith=Pe}writeValue(Pe){this.value=Pe;const Jt=lt(this._getOptionId(Pe),Pe);this.setProperty("value",Jt)}registerOnChange(Pe){this.onChange=_t=>{this.value=this._getOptionValue(_t),Pe(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(Pe){for(const _t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(_t),Pe))return _t;return null}_getOptionValue(Pe){const _t=function Vt(Qe){return Qe.split(":")[0]}(Pe);return this._optionMap.has(_t)?this._optionMap.get(_t):Pe}}return Qe.\u0275fac=function(){let Ve;return function(_t){return(Ve||(Ve=e.n5z(Qe)))(_t||Qe)}}(),Qe.\u0275dir=e.lG2({type:Qe,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Pe,_t){1&Pe&&e.NdJ("change",function(_n){return _t.onChange(_n.target.value)})("blur",function(){return _t.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([qi]),e.qOj]}),Qe})(),yt=(()=>{class Qe{constructor(Pe,_t,Jt){this._element=Pe,this._renderer=_t,this._select=Jt,this._select&&(this.id=this._select._registerOption())}set ngValue(Pe){null!=this._select&&(this._select._optionMap.set(this.id,Pe),this._setElementValue(lt(this.id,Pe)),this._select.writeValue(this._select.value))}set value(Pe){this._setElementValue(Pe),this._select&&this._select.writeValue(this._select.value)}_setElementValue(Pe){this._renderer.setProperty(this._element.nativeElement,"value",Pe)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Qe.\u0275fac=function(Pe){return new(Pe||Qe)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36($e,9))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Qe})();const Wt={provide:v,useExisting:(0,e.Gpc)(()=>ri),multi:!0};function dn(Qe,Ve){return null==Qe?`${Ve}`:("string"==typeof Ve&&(Ve=`'${Ve}'`),Ve&&"object"==typeof Ve&&(Ve="Object"),`${Qe}: ${Ve}`.slice(0,50))}let ri=(()=>{class Qe extends D{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Pe){this._compareWith=Pe}writeValue(Pe){let _t;if(this.value=Pe,Array.isArray(Pe)){const Jt=Pe.map(_n=>this._getOptionId(_n));_t=(_n,hi)=>{_n._setSelected(Jt.indexOf(hi.toString())>-1)}}else _t=(Jt,_n)=>{Jt._setSelected(!1)};this._optionMap.forEach(_t)}registerOnChange(Pe){this.onChange=_t=>{const Jt=[],_n=_t.selectedOptions;if(void 0!==_n){const hi=_n;for(let ii=0;ii{class Qe{constructor(Pe,_t,Jt){this._element=Pe,this._renderer=_t,this._select=Jt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(Pe){null!=this._select&&(this._value=Pe,this._setElementValue(dn(this.id,Pe)),this._select.writeValue(this._select.value))}set value(Pe){this._select?(this._value=Pe,this._setElementValue(dn(this.id,Pe)),this._select.writeValue(this._select.value)):this._setElementValue(Pe)}_setElementValue(Pe){this._renderer.setProperty(this._element.nativeElement,"value",Pe)}_setSelected(Pe){this._renderer.setProperty(this._element.nativeElement,"selected",Pe)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Qe.\u0275fac=function(Pe){return new(Pe||Qe)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ri,9))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Qe})(),ei=(()=>{class Qe{constructor(){this._validator=De}ngOnChanges(Pe){if(this.inputName in Pe){const _t=this.normalizeInput(Pe[this.inputName].currentValue);this._enabled=this.enabled(_t),this._validator=this._enabled?this.createValidator(_t):De,this._onChange&&this._onChange()}}validate(Pe){return this._validator(Pe)}registerOnValidatorChange(Pe){this._onChange=Pe}enabled(Pe){return null!=Pe}}return Qe.\u0275fac=function(Pe){return new(Pe||Qe)},Qe.\u0275dir=e.lG2({type:Qe,features:[e.TTD]}),Qe})();const Ua={provide:Te,useExisting:(0,e.Gpc)(()=>dr),multi:!0},zr={provide:Te,useExisting:(0,e.Gpc)(()=>gi),multi:!0};let dr=(()=>{class Qe extends ei{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.D6c,this.createValidator=Pe=>V}enabled(Pe){return Pe}}return Qe.\u0275fac=function(){let Ve;return function(_t){return(Ve||(Ve=e.n5z(Qe)))(_t||Qe)}}(),Qe.\u0275dir=e.lG2({type:Qe,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Pe,_t){2&Pe&&e.uIk("required",_t._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([Ua]),e.qOj]}),Qe})(),gi=(()=>{class Qe extends dr{constructor(){super(...arguments),this.createValidator=Pe=>te}}return Qe.\u0275fac=function(){let Ve;return function(_t){return(Ve||(Ve=e.n5z(Qe)))(_t||Qe)}}(),Qe.\u0275dir=e.lG2({type:Qe,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Pe,_t){2&Pe&&e.uIk("required",_t._enabled?"":null)},features:[e._Bn([zr]),e.qOj]}),Qe})();const zt={provide:Te,useExisting:(0,e.Gpc)(()=>vn),multi:!0};let vn=(()=>{class Qe extends ei{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=Pe=>Pe,this.createValidator=Pe=>ve(Pe)}}return Qe.\u0275fac=function(){let Ve;return function(_t){return(Ve||(Ve=e.n5z(Qe)))(_t||Qe)}}(),Qe.\u0275dir=e.lG2({type:Qe,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Pe,_t){2&Pe&&e.uIk("pattern",_t._enabled?_t.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([zt]),e.qOj]}),Qe})(),Gn=(()=>{class Qe{}return Qe.\u0275fac=function(Pe){return new(Pe||Qe)},Qe.\u0275mod=e.oAB({type:Qe}),Qe.\u0275inj=e.cJS({imports:[kr]}),Qe})(),Ti=(()=>{class Qe{}return Qe.\u0275fac=function(Pe){return new(Pe||Qe)},Qe.\u0275mod=e.oAB({type:Qe}),Qe.\u0275inj=e.cJS({imports:[Gn]}),Qe})(),$n=(()=>{class Qe{static withConfig(Pe){return{ngModule:Qe,providers:[{provide:en,useValue:Pe.warnOnNgModelWithFormControl}]}}}return Qe.\u0275fac=function(Pe){return new(Pe||Qe)},Qe.\u0275mod=e.oAB({type:Qe}),Qe.\u0275inj=e.cJS({imports:[Gn]}),Qe})();class vi extends ke{constructor(Ve,Pe,_t){super(Oe(Pe),re(_t,Pe)),this.controls=Ve,this._initObservables(),this._setUpdateStrategy(Pe),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Ve){return this.controls[this._adjustIndex(Ve)]}push(Ve,Pe={}){this.controls.push(Ve),this._registerControl(Ve),this.updateValueAndValidity({emitEvent:Pe.emitEvent}),this._onCollectionChange()}insert(Ve,Pe,_t={}){this.controls.splice(Ve,0,Pe),this._registerControl(Pe),this.updateValueAndValidity({emitEvent:_t.emitEvent})}removeAt(Ve,Pe={}){let _t=this._adjustIndex(Ve);_t<0&&(_t=0),this.controls[_t]&&this.controls[_t]._registerOnCollectionChange(()=>{}),this.controls.splice(_t,1),this.updateValueAndValidity({emitEvent:Pe.emitEvent})}setControl(Ve,Pe,_t={}){let Jt=this._adjustIndex(Ve);Jt<0&&(Jt=0),this.controls[Jt]&&this.controls[Jt]._registerOnCollectionChange(()=>{}),this.controls.splice(Jt,1),Pe&&(this.controls.splice(Jt,0,Pe),this._registerControl(Pe)),this.updateValueAndValidity({emitEvent:_t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Ve,Pe={}){Et(this,0,Ve),Ve.forEach((_t,Jt)=>{Ke(this,!1,Jt),this.at(Jt).setValue(_t,{onlySelf:!0,emitEvent:Pe.emitEvent})}),this.updateValueAndValidity(Pe)}patchValue(Ve,Pe={}){null!=Ve&&(Ve.forEach((_t,Jt)=>{this.at(Jt)&&this.at(Jt).patchValue(_t,{onlySelf:!0,emitEvent:Pe.emitEvent})}),this.updateValueAndValidity(Pe))}reset(Ve=[],Pe={}){this._forEachChild((_t,Jt)=>{_t.reset(Ve[Jt],{onlySelf:!0,emitEvent:Pe.emitEvent})}),this._updatePristine(Pe),this._updateTouched(Pe),this.updateValueAndValidity(Pe)}getRawValue(){return this.controls.map(Ve=>Ve.getRawValue())}clear(Ve={}){this.controls.length<1||(this._forEachChild(Pe=>Pe._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Ve.emitEvent}))}_adjustIndex(Ve){return Ve<0?Ve+this.length:Ve}_syncPendingControls(){let Ve=this.controls.reduce((Pe,_t)=>!!_t._syncPendingControls()||Pe,!1);return Ve&&this.updateValueAndValidity({onlySelf:!0}),Ve}_forEachChild(Ve){this.controls.forEach((Pe,_t)=>{Ve(Pe,_t)})}_updateValue(){this.value=this.controls.filter(Ve=>Ve.enabled||this.disabled).map(Ve=>Ve.value)}_anyControls(Ve){return this.controls.some(Pe=>Pe.enabled&&Ve(Pe))}_setUpControls(){this._forEachChild(Ve=>this._registerControl(Ve))}_allControlsDisabled(){for(const Ve of this.controls)if(Ve.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Ve){Ve.setParent(this),Ve._registerOnCollectionChange(this._onCollectionChange)}_find(Ve){var Pe;return null!==(Pe=this.at(Ve))&&void 0!==Pe?Pe:null}}function Ki(Qe){return!!Qe&&(void 0!==Qe.asyncValidators||void 0!==Qe.validators||void 0!==Qe.updateOn)}let ji=(()=>{class Qe{constructor(){this.useNonNullable=!1}get nonNullable(){const Pe=new Qe;return Pe.useNonNullable=!0,Pe}group(Pe,_t=null){const Jt=this._reduceControls(Pe);let _n={};return Ki(_t)?_n=_t:null!==_t&&(_n.validators=_t.validator,_n.asyncValidators=_t.asyncValidator),new at(Jt,_n)}control(Pe,_t,Jt){let _n={};return this.useNonNullable?(Ki(_t)?_n=_t:(_n.validators=_t,_n.asyncValidators=Jt),new Ln(Pe,{..._n,nonNullable:!0})):new Ln(Pe,_t,Jt)}array(Pe,_t,Jt){const _n=Pe.map(hi=>this._createControl(hi));return new vi(_n,_t,Jt)}_reduceControls(Pe){const _t={};return Object.keys(Pe).forEach(Jt=>{_t[Jt]=this._createControl(Pe[Jt])}),_t}_createControl(Pe){return Pe instanceof Ln||Pe instanceof ke?Pe:Array.isArray(Pe)?this.control(Pe[0],Pe.length>1?Pe[1]:null,Pe.length>2?Pe[2]:null):this.control(Pe)}}return Qe.\u0275fac=function(Pe){return new(Pe||Qe)},Qe.\u0275prov=e.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:$n}),Qe})(),Tr=(()=>{class Qe extends ji{group(Pe,_t=null){return super.group(Pe,_t)}control(Pe,_t,Jt){return super.control(Pe,_t,Jt)}array(Pe,_t,Jt){return super.array(Pe,_t,Jt)}}return Qe.\u0275fac=function(){let Ve;return function(_t){return(Ve||(Ve=e.n5z(Qe)))(_t||Qe)}}(),Qe.\u0275prov=e.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:$n}),Qe})()},47957:(Xe,ue,p)=>{"use strict";p.d(ue,{Bb:()=>vt,XC:()=>k,ZL:()=>tt});var e=p(12687),A=p(21281),C=p(83353),M=p(94650),m=p(3238),b=p(50727),D=p(77579),v=p(49770),R=p(56451),B=p(39646),w=p(54968),L=p(36895),O=p(98184),q=p(67376),ee=p(40445),z=p(29521),ie=p(84080),Te=p(24006),pe=p(59549),Le=p(68675),T=p(63900),W=p(95698),F=p(39300),V=p(54004),te=p(18505),Q=p(91005);const Ee=["panel"];function ge(X,nt){if(1&X&&(M.TgZ(0,"div",0,1),M.Hsn(2),M.qZA()),2&X){const Ae=nt.id,ye=M.oxw();M.Q6J("id",ye.id)("ngClass",ye._classList),M.uIk("aria-label",ye.ariaLabel||null)("aria-labelledby",ye._getPanelAriaLabelledby(Ae))}}const ve=["*"];let De=0;class he{constructor(nt,Ae){this.source=nt,this.option=Ae}}const Ye=(0,m.Kr)(class{}),Be=new M.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function se(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let le=(()=>{class X extends Ye{constructor(Ae,ye,_e,Se){super(),this._changeDetectorRef=Ae,this._elementRef=ye,this._activeOptionChanges=b.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new M.vpe,this.opened=new M.vpe,this.closed=new M.vpe,this.optionActivated=new M.vpe,this._classList={},this.id="mat-autocomplete-"+De++,this.inertGroups=Se?.SAFARI||!1,this._autoActiveFirstOption=!!_e.autoActiveFirstOption,this._autoSelectActiveOption=!!_e.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Ae){this._autoActiveFirstOption=(0,A.Ig)(Ae)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Ae){this._autoSelectActiveOption=(0,A.Ig)(Ae)}set classList(Ae){this._classList=Ae&&Ae.length?(0,A.du)(Ae).reduce((ye,_e)=>(ye[_e]=!0,ye),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Ae=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Ae]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(Ae){this.panel&&(this.panel.nativeElement.scrollTop=Ae)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Ae){const ye=new he(this,Ae);this.optionSelected.emit(ye)}_getPanelAriaLabelledby(Ae){return this.ariaLabel?null:this.ariaLabelledby?(Ae?Ae+" ":"")+this.ariaLabelledby:Ae}_setVisibilityClasses(Ae){Ae[this._visibleClass]=this.showPanel,Ae[this._hiddenClass]=!this.showPanel}}return X.\u0275fac=function(Ae){return new(Ae||X)(M.Y36(M.sBO),M.Y36(M.SBq),M.Y36(Be),M.Y36(C.t4))},X.\u0275dir=M.lG2({type:X,viewQuery:function(Ae,ye){if(1&Ae&&(M.Gf(M.Rgc,7),M.Gf(Ee,5)),2&Ae){let _e;M.iGM(_e=M.CRH())&&(ye.template=_e.first),M.iGM(_e=M.CRH())&&(ye.panel=_e.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[M.qOj]}),X})(),k=(()=>{class X extends le{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return X.\u0275fac=function(){let nt;return function(ye){return(nt||(nt=M.n5z(X)))(ye||X)}}(),X.\u0275cmp=M.Xpm({type:X,selectors:[["mat-autocomplete"]],contentQueries:function(Ae,ye,_e){if(1&Ae&&(M.Suo(_e,m.K7,5),M.Suo(_e,m.ey,5)),2&Ae){let Se;M.iGM(Se=M.CRH())&&(ye.optionGroups=Se),M.iGM(Se=M.CRH())&&(ye.options=Se)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[M._Bn([{provide:m.HF,useExisting:X}]),M.qOj],ngContentSelectors:ve,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(Ae,ye){1&Ae&&(M.F$t(),M.YNc(0,ge,3,4,"ng-template"))},dependencies:[L.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),X})();const Z=new M.OlP("mat-autocomplete-scroll-strategy"),xe={provide:Z,deps:[O.aV],useFactory:function de(X){return()=>X.scrollStrategies.reposition()}},ot={provide:Te.JU,useExisting:(0,M.Gpc)(()=>tt),multi:!0};let ut=(()=>{class X{constructor(Ae,ye,_e,Se,Ne,Ce,fe,r,u,_,E){this._element=Ae,this._overlay=ye,this._viewContainerRef=_e,this._zone=Se,this._changeDetectorRef=Ne,this._dir=fe,this._formField=r,this._document=u,this._viewportRuler=_,this._defaults=E,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=b.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new D.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,v.P)(()=>{const h=this.autocomplete?this.autocomplete.options:null;return h?h.changes.pipe((0,Le.O)(h),(0,T.w)(()=>(0,R.T)(...h.map(a=>a.onSelectionChange)))):this._zone.onStable.pipe((0,W.q)(1),(0,T.w)(()=>this.optionSelections))}),this._scrollStrategy=Ce}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Ae){this._autocompleteDisabled=(0,A.Ig)(Ae)}ngAfterViewInit(){const Ae=this._getWindow();typeof Ae<"u"&&this._zone.runOutsideAngular(()=>Ae.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Ae){Ae.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Ae=this._getWindow();typeof Ae<"u"&&Ae.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,R.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,F.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,F.h)(()=>this._overlayAttached)):(0,B.of)()).pipe((0,V.U)(Ae=>Ae instanceof m.rN?Ae:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,R.T)((0,w.R)(this._document,"click"),(0,w.R)(this._document,"auxclick"),(0,w.R)(this._document,"touchend")).pipe((0,F.h)(Ae=>{const ye=(0,C.sA)(Ae),_e=this._formField?this._formField._elementRef.nativeElement:null,Se=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&ye!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!_e||!_e.contains(ye))&&(!Se||!Se.contains(ye))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(ye)}))}writeValue(Ae){Promise.resolve(null).then(()=>this._assignOptionValue(Ae))}registerOnChange(Ae){this._onChange=Ae}registerOnTouched(Ae){this._onTouched=Ae}setDisabledState(Ae){this._element.nativeElement.disabled=Ae}_handleKeydown(Ae){const ye=Ae.keyCode,_e=(0,z.Vb)(Ae);if(ye===z.hY&&!_e&&Ae.preventDefault(),this.activeOption&&ye===z.K5&&this.panelOpen&&!_e)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Ae.preventDefault();else if(this.autocomplete){const Se=this.autocomplete._keyManager.activeItem,Ne=ye===z.LH||ye===z.JH;ye===z.Mf||Ne&&!_e&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Ae):Ne&&this._canOpen()&&this.openPanel(),(Ne||this.autocomplete._keyManager.activeItem!==Se)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(Ae){let ye=Ae.target,_e=ye.value;"number"===ye.type&&(_e=""==_e?null:parseFloat(_e)),this._previousValue!==_e&&(this._previousValue=_e,this._pendingAutoselectedOption=null,this._onChange(_e),this._canOpen()&&this._document.activeElement===Ae.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(Ae=!1){this._formField&&"auto"===this._formField.floatLabel&&(Ae?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Ae=this._zone.onStable.pipe((0,W.q)(1)),ye=this.autocomplete.options.changes.pipe((0,te.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Q.g)(0));return(0,R.T)(Ae,ye).pipe((0,T.w)(()=>(this._zone.run(()=>{const _e=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),_e!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,W.q)(1)).subscribe(_e=>this._setValueAndClose(_e))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Ae){const ye=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Ae):Ae;this._updateNativeInputValue(ye??"")}_updateNativeInputValue(Ae){this._formField?this._formField._control.value=Ae:this._element.nativeElement.value=Ae,this._previousValue=Ae}_setValueAndClose(Ae){const ye=Ae?Ae.source:this._pendingAutoselectedOption;ye&&(this._clearPreviousSelectedOption(ye),this._assignOptionValue(ye.value),this._onChange(ye.value),this.autocomplete._emitSelectEvent(ye),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Ae){this.autocomplete.options.forEach(ye=>{ye!==Ae&&ye.selected&&ye.deselect()})}_attachOverlay(){let Ae=this._overlayRef;var ye;Ae?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ae.updateSize({width:this._getPanelWidth()})):(this._portal=new ie.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(ye=this._formField)||void 0===ye?void 0:ye.getLabelId()}),Ae=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ae,this._handleOverlayEvents(Ae),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ae&&Ae.updateSize({width:this._getPanelWidth()})})),Ae&&!Ae.hasAttached()&&(Ae.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const _e=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&_e!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var Ae;return new O.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(Ae=this._defaults)||void 0===Ae?void 0:Ae.overlayPanelClass})}_getOverlayPosition(){const Ae=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Ae),this._positionStrategy=Ae,Ae}_setStrategyPositions(Ae){const ye=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],_e=this._aboveClass,Se=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:_e},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:_e}];let Ne;Ne="above"===this.position?Se:"below"===this.position?ye:[...ye,...Se],Ae.withPositions(Ne)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const Ae=this.autocomplete;Ae.autoActiveFirstOption?Ae._keyManager.setFirstItemActive():Ae._keyManager.setActiveItem(-1)}_canOpen(){const Ae=this._element.nativeElement;return!Ae.readOnly&&!Ae.disabled&&!this._autocompleteDisabled}_getWindow(){var Ae;return(null===(Ae=this._document)||void 0===Ae?void 0:Ae.defaultView)||window}_scrollToOption(Ae){const ye=this.autocomplete,_e=(0,m.CB)(Ae,ye.options,ye.optionGroups);if(0===Ae&&1===_e)ye._setScrollTop(0);else if(ye.panel){const Se=ye.options.toArray()[Ae];if(Se){const Ne=Se._getHostElement(),Ce=(0,m.jH)(Ne.offsetTop,Ne.offsetHeight,ye._getScrollTop(),ye.panel.nativeElement.offsetHeight);ye._setScrollTop(Ce)}}}_handleOverlayEvents(Ae){Ae.keydownEvents().subscribe(ye=>{var _e;(ye.keyCode===z.hY&&!(0,z.Vb)(ye)||ye.keyCode===z.LH&&(0,z.Vb)(ye,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(null!==(_e=this._valueBeforeAutoSelection)&&void 0!==_e?_e:""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),ye.stopPropagation(),ye.preventDefault())}),Ae.outsidePointerEvents().subscribe()}}return X.\u0275fac=function(Ae){return new(Ae||X)(M.Y36(M.SBq),M.Y36(O.aV),M.Y36(M.s_b),M.Y36(M.R0b),M.Y36(M.sBO),M.Y36(Z),M.Y36(ee.Is,8),M.Y36(pe.G_,9),M.Y36(L.K0,8),M.Y36(q.rL),M.Y36(Be,8))},X.\u0275dir=M.lG2({type:X,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[M.TTD]}),X})(),tt=(()=>{class X extends ut{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return X.\u0275fac=function(){let nt;return function(ye){return(nt||(nt=M.n5z(X)))(ye||X)}}(),X.\u0275dir=M.lG2({type:X,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(Ae,ye){1&Ae&&M.NdJ("focusin",function(){return ye._handleFocus()})("blur",function(){return ye._onTouched()})("input",function(Se){return ye._handleInput(Se)})("keydown",function(Se){return ye._handleKeydown(Se)})("click",function(){return ye._handleClick()}),2&Ae&&M.uIk("autocomplete",ye.autocompleteAttribute)("role",ye.autocompleteDisabled?null:"combobox")("aria-autocomplete",ye.autocompleteDisabled?null:"list")("aria-activedescendant",ye.panelOpen&&ye.activeOption?ye.activeOption.id:null)("aria-expanded",ye.autocompleteDisabled?null:ye.panelOpen.toString())("aria-owns",ye.autocompleteDisabled||!ye.panelOpen||null==ye.autocomplete?null:ye.autocomplete.id)("aria-haspopup",ye.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[M._Bn([ot]),M.qOj]}),X})(),vt=(()=>{class X{}return X.\u0275fac=function(Ae){return new(Ae||X)},X.\u0275mod=M.oAB({type:X}),X.\u0275inj=M.cJS({providers:[xe],imports:[O.U8,m.Ng,m.BQ,L.ez,q.ZD,m.Ng,m.BQ]}),X})()},42673:(Xe,ue,p)=>{"use strict";p.d(ue,{g:()=>R,k:()=>v});var e=p(94650),A=p(3238),C=p(12687),M=p(21281);let m=0;const b=(0,A.Id)(class{}),D="mat-badge-content";let v=(()=>{class B extends b{constructor(L,O,q,ee,z){super(),this._ngZone=L,this._elementRef=O,this._ariaDescriber=q,this._renderer=ee,this._animationMode=z,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=m++,this._isInitialized=!1}get color(){return this._color}set color(L){this._setColor(L),this._color=L}get overlap(){return this._overlap}set overlap(L){this._overlap=(0,M.Ig)(L)}get content(){return this._content}set content(L){this._updateRenderedContent(L)}get description(){return this._description}set description(L){this._updateHostAriaDescription(L)}get hidden(){return this._hidden}set hidden(L){this._hidden=(0,M.Ig)(L)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const L=this._renderer.createElement("span"),O="mat-badge-active";return L.setAttribute("id",`mat-badge-content-${this._id}`),L.setAttribute("aria-hidden","true"),L.classList.add(D),"NoopAnimations"===this._animationMode&&L.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(L),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{L.classList.add(O)})}):L.classList.add(O),L}_updateRenderedContent(L){const O=`${L??""}`.trim();this._isInitialized&&O&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=O),this._content=O}_updateHostAriaDescription(L){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),L&&this._ariaDescriber.describe(this._elementRef.nativeElement,L),this._description=L}_setColor(L){const O=this._elementRef.nativeElement.classList;O.remove(`mat-badge-${this._color}`),L&&O.add(`mat-badge-${L}`)}_clearExistingBadges(){const L=this._elementRef.nativeElement.querySelectorAll(`:scope > .${D}`);for(const O of Array.from(L))O!==this._badgeElement&&O.remove()}}return B.\u0275fac=function(L){return new(L||B)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(C.$s),e.Y36(e.Qsj),e.Y36(e.QbO,8))},B.\u0275dir=e.lG2({type:B,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(L,O){2&L&&e.ekj("mat-badge-overlap",O.overlap)("mat-badge-above",O.isAbove())("mat-badge-below",!O.isAbove())("mat-badge-before",!O.isAfter())("mat-badge-after",O.isAfter())("mat-badge-small","small"===O.size)("mat-badge-medium","medium"===O.size)("mat-badge-large","large"===O.size)("mat-badge-hidden",O.hidden||!O.content)("mat-badge-disabled",O.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]}),B})(),R=(()=>{class B{}return B.\u0275fac=function(L){return new(L||B)},B.\u0275mod=e.oAB({type:B}),B.\u0275inj=e.cJS({imports:[C.rt,A.BQ,A.BQ]}),B})()},4859:(Xe,ue,p)=>{"use strict";p.d(ue,{lW:()=>B,ot:()=>L});var e=p(94650),A=p(3238),C=p(12687);const M=["mat-button",""],m=["*"],v=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],R=(0,A.pj)((0,A.Id)((0,A.Kr)(class{constructor(O){this._elementRef=O}})));let B=(()=>{class O extends R{constructor(ee,z,ie){super(ee),this._focusMonitor=z,this._animationMode=ie,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Te of v)this._hasHostAttributes(Te)&&this._getHostElement().classList.add(Te);ee.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(ee,z){ee?this._focusMonitor.focusVia(this._getHostElement(),ee,z):this._getHostElement().focus(z)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...ee){return ee.some(z=>this._getHostElement().hasAttribute(z))}}return O.\u0275fac=function(ee){return new(ee||O)(e.Y36(e.SBq),e.Y36(C.tE),e.Y36(e.QbO,8))},O.\u0275cmp=e.Xpm({type:O,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(ee,z){if(1&ee&&e.Gf(A.wG,5),2&ee){let ie;e.iGM(ie=e.CRH())&&(z.ripple=ie.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(ee,z){2&ee&&(e.uIk("disabled",z.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===z._animationMode)("mat-button-disabled",z.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:M,ngContentSelectors:m,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(ee,z){1&ee&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1)(3,"span",2)),2&ee&&(e.xp6(2),e.ekj("mat-button-ripple-round",z.isRoundButton||z.isIconButton),e.Q6J("matRippleDisabled",z._isRippleDisabled())("matRippleCentered",z.isIconButton)("matRippleTrigger",z._getHostElement()))},dependencies:[A.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),O})(),L=(()=>{class O{}return O.\u0275fac=function(ee){return new(ee||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({imports:[A.si,A.BQ,A.BQ]}),O})()},73546:(Xe,ue,p)=>{"use strict";p.d(ue,{$j:()=>w,QW:()=>F,a8:()=>Le,dk:()=>T,dn:()=>R,kc:()=>pe,n5:()=>B});var e=p(94650),A=p(3238);const C=["*",[["mat-card-footer"]]],M=["*","mat-card-footer"],m=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],b=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let R=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275dir=e.lG2({type:V,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),V})(),B=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275dir=e.lG2({type:V,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),V})(),w=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275dir=e.lG2({type:V,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),V})(),pe=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275dir=e.lG2({type:V,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),V})(),Le=(()=>{class V{constructor(Q){this._animationMode=Q}}return V.\u0275fac=function(Q){return new(Q||V)(e.Y36(e.QbO,8))},V.\u0275cmp=e.Xpm({type:V,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(Q,Ee){2&Q&&e.ekj("_mat-animation-noopable","NoopAnimations"===Ee._animationMode)},exportAs:["matCard"],ngContentSelectors:M,decls:2,vars:0,template:function(Q,Ee){1&Q&&(e.F$t(C),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),V})(),T=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275cmp=e.Xpm({type:V,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:b,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(Q,Ee){1&Q&&(e.F$t(m),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),V})(),F=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275mod=e.oAB({type:V}),V.\u0275inj=e.cJS({imports:[A.BQ,A.BQ]}),V})()},56709:(Xe,ue,p)=>{"use strict";p.d(ue,{oG:()=>pe,p9:()=>F});var e=p(12687),A=p(21281),C=p(94650),M=p(24006),m=p(3238),b=p(49643);const D=["input"],v=["label"],R=function(V){return{enterDuration:V}},B=["*"],w=new C.OlP("mat-checkbox-default-options",{providedIn:"root",factory:L});function L(){return{color:"accent",clickAction:"check-indeterminate"}}let O=0;const q=L(),ee={provide:M.JU,useExisting:(0,C.Gpc)(()=>pe),multi:!0};class z{}const ie=(0,m.sb)((0,m.pj)((0,m.Kr)((0,m.Id)(class{constructor(V){this._elementRef=V}}))));let Te=(()=>{class V extends ie{constructor(Q,Ee,ge,ve,De,he,Ye){super(Ee),this._changeDetectorRef=ge,this._ngZone=ve,this._animationMode=he,this._options=Ye,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new C.vpe,this.indeterminateChange=new C.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||q,this.color=this.defaultColor=this._options.color||q.color,this.tabIndex=parseInt(De)||0,this.id=this._uniqueId=`${Q}${++O}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(Q){this._required=(0,A.Ig)(Q)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(Q){const Ee=(0,A.Ig)(Q);Ee!=this.checked&&(this._checked=Ee,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Q){const Ee=(0,A.Ig)(Q);Ee!==this.disabled&&(this._disabled=Ee,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(Q){const Ee=Q!=this._indeterminate;this._indeterminate=(0,A.Ig)(Q),Ee&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(Q){this.checked=!!Q}registerOnChange(Q){this._controlValueAccessorChangeFn=Q}registerOnTouched(Q){this._onTouched=Q}setDisabledState(Q){this.disabled=Q}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(Q){let Ee=this._currentCheckState,ge=this._getAnimationTargetElement();if(Ee!==Q&&ge&&(this._currentAnimationClass&&ge.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(Ee,Q),this._currentCheckState=Q,this._currentAnimationClass.length>0)){ge.classList.add(this._currentAnimationClass);const ve=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{ge.classList.remove(ve)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){var Q;const Ee=null===(Q=this._options)||void 0===Q?void 0:Q.clickAction;this.disabled||"noop"===Ee?!this.disabled&&"noop"===Ee&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==Ee&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(Q){Q.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(Q,Ee){if("NoopAnimations"===this._animationMode)return"";switch(Q){case 0:if(1===Ee)return this._animationClasses.uncheckedToChecked;if(3==Ee)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===Ee?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===Ee?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===Ee?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(Q){const Ee=this._inputElement;Ee&&(Ee.nativeElement.indeterminate=Q)}}return V.\u0275fac=function(Q){C.$Z()},V.\u0275dir=C.lG2({type:V,viewQuery:function(Q,Ee){if(1&Q&&(C.Gf(D,5),C.Gf(v,5),C.Gf(m.wG,5)),2&Q){let ge;C.iGM(ge=C.CRH())&&(Ee._inputElement=ge.first),C.iGM(ge=C.CRH())&&(Ee._labelElement=ge.first),C.iGM(ge=C.CRH())&&(Ee.ripple=ge.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[C.qOj]}),V})(),pe=(()=>{class V extends Te{constructor(Q,Ee,ge,ve,De,he,Ye){super("mat-checkbox-",Q,Ee,ve,De,he,Ye),this._focusMonitor=ge,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(Q){const Ee=new z;return Ee.source=this,Ee.checked=Q,Ee}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(Q=>{Q||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(Q){Q.stopPropagation(),super._handleInputClick()}focus(Q,Ee){Q?this._focusMonitor.focusVia(this._inputElement,Q,Ee):this._inputElement.nativeElement.focus(Ee)}}return V.\u0275fac=function(Q){return new(Q||V)(C.Y36(C.SBq),C.Y36(C.sBO),C.Y36(e.tE),C.Y36(C.R0b),C.$8M("tabindex"),C.Y36(C.QbO,8),C.Y36(w,8))},V.\u0275cmp=C.Xpm({type:V,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(Q,Ee){2&Q&&(C.Ikx("id",Ee.id),C.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),C.ekj("mat-checkbox-indeterminate",Ee.indeterminate)("mat-checkbox-checked",Ee.checked)("mat-checkbox-disabled",Ee.disabled)("mat-checkbox-label-before","before"==Ee.labelPosition)("_mat-animation-noopable","NoopAnimations"===Ee._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[C._Bn([ee]),C.qOj],ngContentSelectors:B,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(Q,Ee){if(1&Q&&(C.F$t(),C.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),C.NdJ("change",function(ve){return Ee._onInteractionEvent(ve)})("click",function(ve){return Ee._onInputClick(ve)}),C.qZA(),C.TgZ(5,"span",5),C._UZ(6,"span",6),C.qZA(),C._UZ(7,"span",7),C.TgZ(8,"span",8),C.O4$(),C.TgZ(9,"svg",9),C._UZ(10,"path",10),C.qZA(),C.kcU(),C._UZ(11,"span",11),C.qZA()(),C.TgZ(12,"span",12,13),C.NdJ("cdkObserveContent",function(){return Ee._onLabelTextChange()}),C.TgZ(14,"span",14),C._uU(15,"\xa0"),C.qZA(),C.Hsn(16),C.qZA()()),2&Q){const ge=C.MAs(1),ve=C.MAs(13);C.uIk("for",Ee.inputId),C.xp6(2),C.ekj("mat-checkbox-inner-container-no-side-margin",!ve.textContent||!ve.textContent.trim()),C.xp6(1),C.Q6J("id",Ee.inputId)("required",Ee.required)("checked",Ee.checked)("disabled",Ee.disabled)("tabIndex",Ee.tabIndex),C.uIk("value",Ee.value)("name",Ee.name)("aria-label",Ee.ariaLabel||null)("aria-labelledby",Ee.ariaLabelledby)("aria-checked",Ee._getAriaChecked())("aria-describedby",Ee.ariaDescribedby),C.xp6(2),C.Q6J("matRippleTrigger",ge)("matRippleDisabled",Ee._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",C.VKq(19,R,"NoopAnimations"===Ee._animationMode?0:150))}},dependencies:[m.wG,b.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),V})(),W=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275mod=C.oAB({type:V}),V.\u0275inj=C.cJS({}),V})(),F=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275mod=C.oAB({type:V}),V.\u0275inj=C.cJS({imports:[m.si,m.BQ,b.Q8,W,m.BQ,W]}),V})()},77331:(Xe,ue,p)=>{"use strict";p.d(ue,{HS:()=>Q,Hi:()=>k,oH:()=>se,qn:()=>Ye});var e=p(29521),A=p(94650),C=p(3238),M=p(21281),m=p(83353),b=p(36895),D=p(77579),v=p(56451),R=p(95698),B=p(82722),w=p(68675),L=p(12687),O=p(40445),q=p(95017),ee=p(24006),z=p(59549);const ie=["*"],pe=new A.OlP("MatChipRemove"),Le=new A.OlP("MatChipAvatar"),T=new A.OlP("MatChipTrailingIcon");class W{constructor(be){this._elementRef=be}}const F=(0,C.sb)((0,C.pj)((0,C.Kr)(W),"primary"),-1);let Q=(()=>{class N extends F{constructor(Z,de,xe,ot,Fe,ut,tt,vt){super(Z),this._ngZone=de,this._changeDetectorRef=Fe,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new D.x,this._onBlur=new D.x,this.selectionChange=new A.vpe,this.destroyed=new A.vpe,this.removed=new A.vpe,this._addHostClassName(),this._chipRippleTarget=ut.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new C.IR(this,de,this._chipRippleTarget,xe),this._chipRipple.setupTriggerEvents(Z),this.rippleConfig=ot||{},this._animationsDisabled="NoopAnimations"===tt,this.tabIndex=null!=vt&&parseInt(vt)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(Z){const de=(0,M.Ig)(Z);de!==this._selected&&(this._selected=de,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(Z){this._value=Z}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(Z){this._selectable=(0,M.Ig)(Z)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(Z){this._disabled=(0,M.Ig)(Z)}get removable(){return this._removable}set removable(Z){this._removable=(0,M.Ig)(Z)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const Z="mat-basic-chip",de=this._elementRef.nativeElement;de.hasAttribute(Z)||de.tagName.toLowerCase()===Z?de.classList.add(Z):de.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(Z=!1){return this._selected=!this.selected,this._dispatchSelectionChange(Z),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(Z){this.disabled&&Z.preventDefault()}_handleKeydown(Z){if(!this.disabled)switch(Z.keyCode){case e.yY:case e.ZH:this.remove(),Z.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),Z.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(Z=!1){this.selectionChange.emit({source:this,isUserInput:Z,selected:this._selected})}}return N.\u0275fac=function(Z){return new(Z||N)(A.Y36(A.SBq),A.Y36(A.R0b),A.Y36(m.t4),A.Y36(C.Y2,8),A.Y36(A.sBO),A.Y36(b.K0),A.Y36(A.QbO,8),A.$8M("tabindex"))},N.\u0275dir=A.lG2({type:N,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(Z,de,xe){if(1&Z&&(A.Suo(xe,Le,5),A.Suo(xe,T,5),A.Suo(xe,pe,5)),2&Z){let ot;A.iGM(ot=A.CRH())&&(de.avatar=ot.first),A.iGM(ot=A.CRH())&&(de.trailingIcon=ot.first),A.iGM(ot=A.CRH())&&(de.removeIcon=ot.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(Z,de){1&Z&&A.NdJ("click",function(ot){return de._handleClick(ot)})("keydown",function(ot){return de._handleKeydown(ot)})("focus",function(){return de.focus()})("blur",function(){return de._blur()}),2&Z&&(A.uIk("tabindex",de.disabled?null:de.tabIndex)("role",de.role)("disabled",de.disabled||null)("aria-disabled",de.disabled.toString())("aria-selected",de.ariaSelected),A.ekj("mat-chip-selected",de.selected)("mat-chip-with-avatar",de.avatar)("mat-chip-with-trailing-icon",de.trailingIcon||de.removeIcon)("mat-chip-disabled",de.disabled)("_mat-animation-noopable",de._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[A.qOj]}),N})();const ge=new A.OlP("mat-chips-default-options"),ve=(0,C.FD)(class{constructor(N,be,Z,de){this._defaultErrorStateMatcher=N,this._parentForm=be,this._parentFormGroup=Z,this.ngControl=de,this.stateChanges=new D.x}});let De=0;class he{constructor(be,Z){this.source=be,this.value=Z}}let Ye=(()=>{class N extends ve{constructor(Z,de,xe,ot,Fe,ut,tt){super(ut,ot,Fe,tt),this._elementRef=Z,this._changeDetectorRef=de,this._dir=xe,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new D.x,this._uid="mat-chip-list-"+De++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(vt,X)=>vt===X,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new A.vpe,this.valueChange=new A.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var Z,de;return this.multiple?(null===(Z=this._selectionModel)||void 0===Z?void 0:Z.selected)||[]:null===(de=this._selectionModel)||void 0===de?void 0:de.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(Z){this._explicitRole=Z}get multiple(){return this._multiple}set multiple(Z){this._multiple=(0,M.Ig)(Z),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(Z){this._compareWith=Z,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Z){this.writeValue(Z),this._value=Z}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var Z,de,xe,ot;return null!==(Z=null!==(de=this._required)&&void 0!==de?de:null===(xe=this.ngControl)||void 0===xe||null===(ot=xe.control)||void 0===ot?void 0:ot.hasValidator(ee.kI.required))&&void 0!==Z&&Z}set required(Z){this._required=(0,M.Ig)(Z),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(Z){this._placeholder=Z,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(Z){this._disabled=(0,M.Ig)(Z),this._syncChipsState()}get selectable(){return this._selectable}set selectable(Z){this._selectable=(0,M.Ig)(Z),this.chips&&this.chips.forEach(de=>de.chipListSelectable=this._selectable)}set tabIndex(Z){this._userTabIndex=Z,this._tabIndex=Z}get chipSelectionChanges(){return(0,v.T)(...this.chips.map(Z=>Z.selectionChange))}get chipFocusChanges(){return(0,v.T)(...this.chips.map(Z=>Z._onFocus))}get chipBlurChanges(){return(0,v.T)(...this.chips.map(Z=>Z._onBlur))}get chipRemoveChanges(){return(0,v.T)(...this.chips.map(Z=>Z.destroyed))}ngAfterContentInit(){this._keyManager=new L.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,B.R)(this._destroyed)).subscribe(Z=>this._keyManager.withHorizontalOrientation(Z)),this._keyManager.tabOut.pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,w.O)(null),(0,B.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new q.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(Z){this._chipInput=Z,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",Z.id)}setDescribedByIds(Z){Z.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Z.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(Z){this.chips&&this._setSelectionByValue(Z,!1)}registerOnChange(Z){this._onChange=Z}registerOnTouched(Z){this._onTouched=Z}setDisabledState(Z){this.disabled=Z,this.stateChanges.next()}onContainerClick(Z){this._originatesFromChip(Z)||this.focus()}focus(Z){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(Z),this.stateChanges.next()))}_focusInput(Z){this._chipInput&&this._chipInput.focus(Z)}_keydown(Z){const de=Z.target;de&&de.classList.contains("mat-chip")&&(this._keyManager.onKeydown(Z),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const Z=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(Z)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(Z){return Z>=0&&Zxe.deselect()),Array.isArray(Z))Z.forEach(xe=>this._selectValue(xe,de)),this._sortValues();else{const xe=this._selectValue(Z,de);xe&&de&&this._keyManager.setActiveItem(xe)}}_selectValue(Z,de=!0){const xe=this.chips.find(ot=>null!=ot.value&&this._compareWith(ot.value,Z));return xe&&(de?xe.selectViaInteraction():xe.select(),this._selectionModel.select(xe)),xe}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(Z){this._selectionModel.clear(),this.chips.forEach(de=>{de!==Z&&de.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(Z=>{Z.selected&&this._selectionModel.select(Z)}),this.stateChanges.next())}_propagateChanges(Z){let de=null;de=Array.isArray(this.selected)?this.selected.map(xe=>xe.value):this.selected?this.selected.value:Z,this._value=de,this.change.emit(new he(this,de)),this.valueChange.emit(de),this._onChange(de),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(Z=>{Z.source.selected?this._selectionModel.select(Z.source):this._selectionModel.deselect(Z.source),this.multiple||this.chips.forEach(de=>{!this._selectionModel.isSelected(de)&&de.selected&&de.deselect()}),Z.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(Z=>{let de=this.chips.toArray().indexOf(Z.chip);this._isValidIndex(de)&&this._keyManager.updateActiveItem(de),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(Z=>{const de=Z.chip,xe=this.chips.toArray().indexOf(Z.chip);this._isValidIndex(xe)&&de._hasFocus&&(this._lastDestroyedChipIndex=xe)})}_originatesFromChip(Z){let de=Z.target;for(;de&&de!==this._elementRef.nativeElement;){if(de.classList.contains("mat-chip"))return!0;de=de.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(Z=>Z._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(Z=>{Z._chipListDisabled=this._disabled,Z._chipListMultiple=this.multiple})}}return N.\u0275fac=function(Z){return new(Z||N)(A.Y36(A.SBq),A.Y36(A.sBO),A.Y36(O.Is,8),A.Y36(ee.F,8),A.Y36(ee.sg,8),A.Y36(C.rD),A.Y36(ee.a5,10))},N.\u0275cmp=A.Xpm({type:N,selectors:[["mat-chip-list"]],contentQueries:function(Z,de,xe){if(1&Z&&A.Suo(xe,Q,5),2&Z){let ot;A.iGM(ot=A.CRH())&&(de.chips=ot)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(Z,de){1&Z&&A.NdJ("focus",function(){return de.focus()})("blur",function(){return de._blur()})("keydown",function(ot){return de._keydown(ot)}),2&Z&&(A.Ikx("id",de._uid),A.uIk("tabindex",de.disabled?null:de._tabIndex)("aria-required",de.role?de.required:null)("aria-disabled",de.disabled.toString())("aria-invalid",de.errorState)("aria-multiselectable",de.multiple)("role",de.role)("aria-orientation",de.ariaOrientation),A.ekj("mat-chip-list-disabled",de.disabled)("mat-chip-list-invalid",de.errorState)("mat-chip-list-required",de.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[A._Bn([{provide:z.Eo,useExisting:N}]),A.qOj],ngContentSelectors:ie,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(Z,de){1&Z&&(A.F$t(),A.TgZ(0,"div",0),A.Hsn(1),A.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),N})(),Be=0,se=(()=>{class N{constructor(Z,de){this._elementRef=Z,this._defaultOptions=de,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new A.vpe,this.placeholder="",this.id="mat-chip-list-input-"+Be++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(Z){Z&&(this._chipList=Z,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(Z){this._addOnBlur=(0,M.Ig)(Z)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(Z){this._disabled=(0,M.Ig)(Z)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(Z){if(Z){if(Z.keyCode===e.Mf&&!(0,e.Vb)(Z,"shiftKey")&&this._chipList._allowFocusEscape(),Z.keyCode===e.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void Z.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(Z)}_keyup(Z){!this._focusLastChipOnBackspace&&Z.keyCode===e.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,Z.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(Z){!this.inputElement.value&&!!Z&&this._chipList._keydown(Z),(!Z||this._isSeparatorKey(Z))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),Z?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(Z){this.inputElement.focus(Z)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(Z){return!(0,e.Vb)(Z)&&new Set(this.separatorKeyCodes).has(Z.keyCode)}}return N.\u0275fac=function(Z){return new(Z||N)(A.Y36(A.SBq),A.Y36(ge))},N.\u0275dir=A.lG2({type:N,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(Z,de){1&Z&&A.NdJ("keydown",function(ot){return de._keydown(ot)})("keyup",function(ot){return de._keyup(ot)})("blur",function(){return de._blur()})("focus",function(){return de._focus()})("input",function(){return de._onInput()}),2&Z&&(A.Ikx("id",de.id),A.uIk("disabled",de.disabled||null)("placeholder",de.placeholder||null)("aria-invalid",de._chipList&&de._chipList.ngControl?de._chipList.ngControl.invalid:null)("aria-required",de._chipList&&de._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[A.TTD]}),N})(),k=(()=>{class N{}return N.\u0275fac=function(Z){return new(Z||N)},N.\u0275mod=A.oAB({type:N}),N.\u0275inj=A.cJS({providers:[C.rD,{provide:ge,useValue:{separatorKeyCodes:[e.K5]}}],imports:[C.BQ]}),N})()},3238:(Xe,ue,p)=>{"use strict";p.d(ue,{yN:()=>Te,mZ:()=>pe,_A:()=>se,rD:()=>Fe,sG:()=>le,K7:()=>o,HF:()=>a,Y2:()=>r,BQ:()=>W,X2:()=>ut,uc:()=>X,XK:()=>xe,ey:()=>S,Ng:()=>We,rN:()=>d,nP:()=>E,us:()=>h,wG:()=>u,si:()=>_,LF:()=>be,IR:()=>Ce,CB:()=>J,jH:()=>ht,pj:()=>Ee,Kr:()=>ge,Id:()=>Q,FD:()=>De,dB:()=>he,sb:()=>ve,E0:()=>tt});var e=p(94650),A=p(12687),C=p(40445),m=p(36895),b=p(83353),D=p(21281),v=p(69751),R=p(77579),B=p(68675),w=p(29521);function q(et,ne){if(1&et&&e._UZ(0,"mat-pseudo-checkbox",4),2&et){const Ue=e.oxw();e.Q6J("state",Ue.selected?"checked":"unchecked")("disabled",Ue.disabled)}}function ee(et,ne){if(1&et&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&et){const Ue=e.oxw();e.xp6(1),e.hij("(",Ue.group.label,")")}}const z=["*"];let Te=(()=>{class et{}return et.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",et.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",et.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",et.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",et})(),pe=(()=>{class et{}return et.COMPLEX="375ms",et.ENTERING="225ms",et.EXITING="195ms",et})();const T=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function Le(){return!0}});let W=(()=>{class et{constructor(Ue,He,Oe){this._sanityChecks=He,this._document=Oe,this._hasDoneGlobalChecks=!1,Ue._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Ue){return!(0,b.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Ue])}}return et.\u0275fac=function(Ue){return new(Ue||et)(e.LFG(A.qm),e.LFG(T,8),e.LFG(m.K0))},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({imports:[C.vT,C.vT]}),et})();function Q(et){return class extends et{constructor(...ne){super(...ne),this._disabled=!1}get disabled(){return this._disabled}set disabled(ne){this._disabled=(0,D.Ig)(ne)}}}function Ee(et,ne){return class extends et{constructor(...Ue){super(...Ue),this.defaultColor=ne,this.color=ne}get color(){return this._color}set color(Ue){const He=Ue||this.defaultColor;He!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),He&&this._elementRef.nativeElement.classList.add(`mat-${He}`),this._color=He)}}}function ge(et){return class extends et{constructor(...ne){super(...ne),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ne){this._disableRipple=(0,D.Ig)(ne)}}}function ve(et,ne=0){return class extends et{constructor(...Ue){super(...Ue),this._tabIndex=ne,this.defaultTabIndex=ne}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Ue){this._tabIndex=null!=Ue?(0,D.su)(Ue):this.defaultTabIndex}}}function De(et){return class extends et{constructor(...ne){super(...ne),this.errorState=!1}updateErrorState(){const ne=this.errorState,Re=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Re!==ne&&(this.errorState=Re,this.stateChanges.next())}}}function he(et){return class extends et{constructor(...ne){super(...ne),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new v.y(Ue=>{this._isInitialized?this._notifySubscriber(Ue):this._pendingSubscribers.push(Ue)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(ne){ne.next(),ne.complete()}}}const Ye=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Be(){return(0,e.f3M)(e.soG)}});class se{constructor(){this._localeChanges=new R.x,this.localeChanges=this._localeChanges}getValidDateOrNull(ne){return this.isDateInstance(ne)&&this.isValid(ne)?ne:null}deserialize(ne){return null==ne||this.isDateInstance(ne)&&this.isValid(ne)?ne:this.invalid()}setLocale(ne){this.locale=ne,this._localeChanges.next()}compareDate(ne,Ue){return this.getYear(ne)-this.getYear(Ue)||this.getMonth(ne)-this.getMonth(Ue)||this.getDate(ne)-this.getDate(Ue)}sameDate(ne,Ue){if(ne&&Ue){let He=this.isValid(ne),Oe=this.isValid(Ue);return He&&Oe?!this.compareDate(ne,Ue):He==Oe}return ne==Ue}clampDate(ne,Ue,He){return Ue&&this.compareDate(ne,Ue)<0?Ue:He&&this.compareDate(ne,He)>0?He:ne}}const le=new e.OlP("mat-date-formats"),k=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function N(et,ne){const Ue=Array(et);for(let He=0;He{class et extends se{constructor(Ue,He){super(),this.useUtcForDisplay=!1,super.setLocale(Ue)}getYear(Ue){return Ue.getFullYear()}getMonth(Ue){return Ue.getMonth()}getDate(Ue){return Ue.getDate()}getDayOfWeek(Ue){return Ue.getDay()}getMonthNames(Ue){const He=new Intl.DateTimeFormat(this.locale,{month:Ue,timeZone:"utc"});return N(12,Oe=>this._format(He,new Date(2017,Oe,1)))}getDateNames(){const Ue=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return N(31,He=>this._format(Ue,new Date(2017,0,He+1)))}getDayOfWeekNames(Ue){const He=new Intl.DateTimeFormat(this.locale,{weekday:Ue,timeZone:"utc"});return N(7,Oe=>this._format(He,new Date(2017,0,Oe+1)))}getYearName(Ue){const He=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(He,Ue)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Ue){return this.getDate(this._createDateWithOverflow(this.getYear(Ue),this.getMonth(Ue)+1,0))}clone(Ue){return new Date(Ue.getTime())}createDate(Ue,He,Oe){let Re=this._createDateWithOverflow(Ue,He,Oe);return Re.getMonth(),Re}today(){return new Date}parse(Ue,He){return"number"==typeof Ue?new Date(Ue):Ue?new Date(Date.parse(Ue)):null}format(Ue,He){if(!this.isValid(Ue))throw Error("NativeDateAdapter: Cannot format invalid date.");const Oe=new Intl.DateTimeFormat(this.locale,{...He,timeZone:"utc"});return this._format(Oe,Ue)}addCalendarYears(Ue,He){return this.addCalendarMonths(Ue,12*He)}addCalendarMonths(Ue,He){let Oe=this._createDateWithOverflow(this.getYear(Ue),this.getMonth(Ue)+He,this.getDate(Ue));return this.getMonth(Oe)!=((this.getMonth(Ue)+He)%12+12)%12&&(Oe=this._createDateWithOverflow(this.getYear(Oe),this.getMonth(Oe),0)),Oe}addCalendarDays(Ue,He){return this._createDateWithOverflow(this.getYear(Ue),this.getMonth(Ue),this.getDate(Ue)+He)}toIso8601(Ue){return[Ue.getUTCFullYear(),this._2digit(Ue.getUTCMonth()+1),this._2digit(Ue.getUTCDate())].join("-")}deserialize(Ue){if("string"==typeof Ue){if(!Ue)return null;if(k.test(Ue)){let He=new Date(Ue);if(this.isValid(He))return He}}return super.deserialize(Ue)}isDateInstance(Ue){return Ue instanceof Date}isValid(Ue){return!isNaN(Ue.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Ue,He,Oe){const Re=new Date;return Re.setFullYear(Ue,He,Oe),Re.setHours(0,0,0,0),Re}_2digit(Ue){return("00"+Ue).slice(-2)}_format(Ue,He){const Oe=new Date;return Oe.setUTCFullYear(He.getFullYear(),He.getMonth(),He.getDate()),Oe.setUTCHours(He.getHours(),He.getMinutes(),He.getSeconds(),He.getMilliseconds()),Ue.format(Oe)}}return et.\u0275fac=function(Ue){return new(Ue||et)(e.LFG(Ye,8),e.LFG(b.t4))},et.\u0275prov=e.Yz7({token:et,factory:et.\u0275fac}),et})();const Z={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let de=(()=>{class et{}return et.\u0275fac=function(Ue){return new(Ue||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({providers:[{provide:se,useClass:be}]}),et})(),xe=(()=>{class et{}return et.\u0275fac=function(Ue){return new(Ue||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({providers:[{provide:le,useValue:Z}],imports:[de]}),et})(),Fe=(()=>{class et{isErrorState(Ue,He){return!!(Ue&&Ue.invalid&&(Ue.touched||He&&He.submitted))}}return et.\u0275fac=function(Ue){return new(Ue||et)},et.\u0275prov=e.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})(),ut=(()=>{class et{}return et.\u0275fac=function(Ue){return new(Ue||et)},et.\u0275dir=e.lG2({type:et,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),et})();function tt(et,ne,Ue="mat"){et.changes.pipe((0,B.O)(et)).subscribe(({length:He})=>{vt(ne,`${Ue}-2-line`,!1),vt(ne,`${Ue}-3-line`,!1),vt(ne,`${Ue}-multi-line`,!1),2===He||3===He?vt(ne,`${Ue}-${He}-line`,!0):He>3&&vt(ne,`${Ue}-multi-line`,!0)})}function vt(et,ne,Ue){et.nativeElement.classList.toggle(ne,Ue)}let X=(()=>{class et{}return et.\u0275fac=function(Ue){return new(Ue||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({imports:[W,W]}),et})();class nt{constructor(ne,Ue,He,Oe=!1){this._renderer=ne,this.element=Ue,this.config=He,this._animationForciblyDisabledThroughCss=Oe,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ae={enterDuration:225,exitDuration:150},_e=(0,b.i$)({passive:!0}),Se=["mousedown","touchstart"],Ne=["mouseup","mouseleave","touchend","touchcancel"];class Ce{constructor(ne,Ue,He,Oe){this._target=ne,this._ngZone=Ue,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Oe.isBrowser&&(this._containerElement=(0,D.fI)(He))}fadeInRipple(ne,Ue,He={}){const Oe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Re={...Ae,...He.animation};He.centered&&(ne=Oe.left+Oe.width/2,Ue=Oe.top+Oe.height/2);const re=He.radius||function fe(et,ne,Ue){const He=Math.max(Math.abs(et-Ue.left),Math.abs(et-Ue.right)),Oe=Math.max(Math.abs(ne-Ue.top),Math.abs(ne-Ue.bottom));return Math.sqrt(He*He+Oe*Oe)}(ne,Ue,Oe),we=ne-Oe.left,st=Ue-Oe.top,Ke=Re.enterDuration,Et=document.createElement("div");Et.classList.add("mat-ripple-element"),Et.style.left=we-re+"px",Et.style.top=st-re+"px",Et.style.height=2*re+"px",Et.style.width=2*re+"px",null!=He.color&&(Et.style.backgroundColor=He.color),Et.style.transitionDuration=`${Ke}ms`,this._containerElement.appendChild(Et);const ke=window.getComputedStyle(Et),It=ke.transitionDuration,jt="none"===ke.transitionProperty||"0s"===It||"0s, 0s"===It,an=new nt(this,Et,He,jt);Et.style.transform="scale3d(1, 1, 1)",an.state=0,He.persistent||(this._mostRecentTransientRipple=an);let Kt=null;return!jt&&(Ke||Re.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const on=()=>this._finishRippleTransition(an),Cn=()=>this._destroyRipple(an);Et.addEventListener("transitionend",on),Et.addEventListener("transitioncancel",Cn),Kt={onTransitionEnd:on,onTransitionCancel:Cn}}),this._activeRipples.set(an,Kt),(jt||!Ke)&&this._finishRippleTransition(an),an}fadeOutRipple(ne){if(2===ne.state||3===ne.state)return;const Ue=ne.element,He={...Ae,...ne.config.animation};Ue.style.transitionDuration=`${He.exitDuration}ms`,Ue.style.opacity="0",ne.state=2,(ne._animationForciblyDisabledThroughCss||!He.exitDuration)&&this._finishRippleTransition(ne)}fadeOutAll(){this._getActiveRipples().forEach(ne=>ne.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(ne=>{ne.config.persistent||ne.fadeOut()})}setupTriggerEvents(ne){const Ue=(0,D.fI)(ne);!Ue||Ue===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ue,this._registerEvents(Se))}handleEvent(ne){"mousedown"===ne.type?this._onMousedown(ne):"touchstart"===ne.type?this._onTouchStart(ne):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ne),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(ne){0===ne.state?this._startFadeOutTransition(ne):2===ne.state&&this._destroyRipple(ne)}_startFadeOutTransition(ne){const Ue=ne===this._mostRecentTransientRipple,{persistent:He}=ne.config;ne.state=1,!He&&(!Ue||!this._isPointerDown)&&ne.fadeOut()}_destroyRipple(ne){var Ue;const He=null!==(Ue=this._activeRipples.get(ne))&&void 0!==Ue?Ue:null;this._activeRipples.delete(ne),this._activeRipples.size||(this._containerRect=null),ne===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),ne.state=3,null!==He&&(ne.element.removeEventListener("transitionend",He.onTransitionEnd),ne.element.removeEventListener("transitioncancel",He.onTransitionCancel)),ne.element.remove()}_onMousedown(ne){const Ue=(0,A.X6)(ne),He=this._lastTouchStartEvent&&Date.now(){!ne.config.persistent&&(1===ne.state||ne.config.terminateOnPointerUp&&0===ne.state)&&ne.fadeOut()}))}_registerEvents(ne){this._ngZone.runOutsideAngular(()=>{ne.forEach(Ue=>{this._triggerElement.addEventListener(Ue,this,_e)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Se.forEach(ne=>{this._triggerElement.removeEventListener(ne,this,_e)}),this._pointerUpEventsRegistered&&Ne.forEach(ne=>{this._triggerElement.removeEventListener(ne,this,_e)}))}}const r=new e.OlP("mat-ripple-global-options");let u=(()=>{class et{constructor(Ue,He,Oe,Re,re){this._elementRef=Ue,this._animationMode=re,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Re||{},this._rippleRenderer=new Ce(this,He,Ue,Oe)}get disabled(){return this._disabled}set disabled(Ue){Ue&&this.fadeOutAllNonPersistent(),this._disabled=Ue,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Ue){this._trigger=Ue,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Ue,He=0,Oe){return"number"==typeof Ue?this._rippleRenderer.fadeInRipple(Ue,He,{...this.rippleConfig,...Oe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Ue})}}return et.\u0275fac=function(Ue){return new(Ue||et)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(b.t4),e.Y36(r,8),e.Y36(e.QbO,8))},et.\u0275dir=e.lG2({type:et,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Ue,He){2&Ue&&e.ekj("mat-ripple-unbounded",He.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),et})(),_=(()=>{class et{}return et.\u0275fac=function(Ue){return new(Ue||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({imports:[W,W]}),et})(),E=(()=>{class et{constructor(Ue){this._animationMode=Ue,this.state="unchecked",this.disabled=!1}}return et.\u0275fac=function(Ue){return new(Ue||et)(e.Y36(e.QbO,8))},et.\u0275cmp=e.Xpm({type:et,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Ue,He){2&Ue&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===He.state)("mat-pseudo-checkbox-checked","checked"===He.state)("mat-pseudo-checkbox-disabled",He.disabled)("_mat-animation-noopable","NoopAnimations"===He._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Ue,He){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),et})(),h=(()=>{class et{}return et.\u0275fac=function(Ue){return new(Ue||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({imports:[W]}),et})();const a=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),o=new e.OlP("MatOptgroup");let l=0;class d{constructor(ne,Ue=!1){this.source=ne,this.isUserInput=Ue}}let c=(()=>{class et{constructor(Ue,He,Oe,Re){this._element=Ue,this._changeDetectorRef=He,this._parent=Oe,this.group=Re,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+l++,this.onSelectionChange=new e.vpe,this._stateChanges=new R.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Ue){this._disabled=(0,D.Ig)(Ue)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(Ue,He){const Oe=this._getHostElement();"function"==typeof Oe.focus&&Oe.focus(He)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Ue){(Ue.keyCode===w.K5||Ue.keyCode===w.L_)&&!(0,w.Vb)(Ue)&&(this._selectViaInteraction(),Ue.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const Ue=this.viewValue;Ue!==this._mostRecentViewValue&&(this._mostRecentViewValue=Ue,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Ue=!1){this.onSelectionChange.emit(new d(this,Ue))}}return et.\u0275fac=function(Ue){e.$Z()},et.\u0275dir=e.lG2({type:et,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),et})(),S=(()=>{class et extends c{constructor(Ue,He,Oe,Re){super(Ue,He,Oe,Re)}}return et.\u0275fac=function(Ue){return new(Ue||et)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(a,8),e.Y36(o,8))},et.\u0275cmp=e.Xpm({type:et,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Ue,He){1&Ue&&e.NdJ("click",function(){return He._selectViaInteraction()})("keydown",function(Re){return He._handleKeydown(Re)}),2&Ue&&(e.Ikx("id",He.id),e.uIk("tabindex",He._getTabIndex())("aria-selected",He._getAriaSelected())("aria-disabled",He.disabled.toString()),e.ekj("mat-selected",He.selected)("mat-option-multiple",He.multiple)("mat-active",He.active)("mat-option-disabled",He.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:z,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(Ue,He){1&Ue&&(e.F$t(),e.YNc(0,q,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,ee,2,1,"span",2),e._UZ(4,"div",3)),2&Ue&&(e.Q6J("ngIf",He.multiple),e.xp6(3),e.Q6J("ngIf",He.group&&He.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",He._getHostElement())("matRippleDisabled",He.disabled||He.disableRipple))},dependencies:[u,m.O5,E],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),et})();function J(et,ne,Ue){if(Ue.length){let He=ne.toArray(),Oe=Ue.toArray(),Re=0;for(let re=0;reUe+He?Math.max(0,et-He+ne):Ue}let We=(()=>{class et{}return et.\u0275fac=function(Ue){return new(Ue||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({imports:[_,m.ez,W,h]}),et})()},99602:(Xe,ue,p)=>{"use strict";p.d(ue,{FA:()=>pt,Mq:()=>Et,hl:()=>Kt,nW:()=>Cn});var e=p(12687),A=p(98184),C=p(84080),M=p(36895),m=p(94650),b=p(4859),D=p(67376),v=p(3238),R=p(77579),B=p(50727),w=p(56451),L=p(39646),O=p(29521),q=p(40445),ee=p(95698),z=p(68675),ie=p(39300),Te=p(21281),pe=p(83353),Le=p(37340),T=p(24006),W=p(59549),F=p(284);const V=["mat-calendar-body",""];function te(rt,St){if(1&rt&&(m.TgZ(0,"tr",2)(1,"td",3),m._uU(2),m.qZA()()),2&rt){const $=m.oxw();m.xp6(1),m.Udp("padding-top",$._cellPadding)("padding-bottom",$._cellPadding),m.uIk("colspan",$.numCols),m.xp6(1),m.hij(" ",$.label," ")}}function Q(rt,St){if(1&rt&&(m.TgZ(0,"td",3),m._uU(1),m.qZA()),2&rt){const $=m.oxw(2);m.Udp("padding-top",$._cellPadding)("padding-bottom",$._cellPadding),m.uIk("colspan",$._firstRowOffset),m.xp6(1),m.hij(" ",$._firstRowOffset>=$.labelMinRequiredCells?$.label:""," ")}}function Ee(rt,St){if(1&rt){const $=m.EpF();m.TgZ(0,"td",7)(1,"button",8),m.NdJ("click",function(At){const Xt=m.CHM($).$implicit,yn=m.oxw(2);return m.KtG(yn._cellClicked(Xt,At))})("focus",function(At){const Xt=m.CHM($).$implicit,yn=m.oxw(2);return m.KtG(yn._emitActiveDateChange(Xt,At))}),m.TgZ(2,"div",9),m._uU(3),m.qZA(),m._UZ(4,"div",10),m.qZA()()}if(2&rt){const $=St.$implicit,ze=St.index,At=m.oxw().index,Pt=m.oxw();m.Udp("width",Pt._cellWidth)("padding-top",Pt._cellPadding)("padding-bottom",Pt._cellPadding),m.uIk("data-mat-row",At)("data-mat-col",ze),m.xp6(1),m.ekj("mat-calendar-body-disabled",!$.enabled)("mat-calendar-body-active",Pt._isActiveCell(At,ze))("mat-calendar-body-range-start",Pt._isRangeStart($.compareValue))("mat-calendar-body-range-end",Pt._isRangeEnd($.compareValue))("mat-calendar-body-in-range",Pt._isInRange($.compareValue))("mat-calendar-body-comparison-bridge-start",Pt._isComparisonBridgeStart($.compareValue,At,ze))("mat-calendar-body-comparison-bridge-end",Pt._isComparisonBridgeEnd($.compareValue,At,ze))("mat-calendar-body-comparison-start",Pt._isComparisonStart($.compareValue))("mat-calendar-body-comparison-end",Pt._isComparisonEnd($.compareValue))("mat-calendar-body-in-comparison-range",Pt._isInComparisonRange($.compareValue))("mat-calendar-body-preview-start",Pt._isPreviewStart($.compareValue))("mat-calendar-body-preview-end",Pt._isPreviewEnd($.compareValue))("mat-calendar-body-in-preview",Pt._isInPreview($.compareValue)),m.Q6J("ngClass",$.cssClasses)("tabindex",Pt._isActiveCell(At,ze)?0:-1),m.uIk("aria-label",$.ariaLabel)("aria-disabled",!$.enabled||null)("aria-pressed",Pt._isSelected($.compareValue))("aria-current",Pt.todayValue===$.compareValue?"date":null),m.xp6(1),m.ekj("mat-calendar-body-selected",Pt._isSelected($.compareValue))("mat-calendar-body-comparison-identical",Pt._isComparisonIdentical($.compareValue))("mat-calendar-body-today",Pt.todayValue===$.compareValue),m.xp6(1),m.hij(" ",$.displayValue," ")}}function ge(rt,St){if(1&rt&&(m.TgZ(0,"tr",4),m.YNc(1,Q,2,6,"td",5),m.YNc(2,Ee,5,47,"td",6),m.qZA()),2&rt){const $=St.$implicit,ze=St.index,At=m.oxw();m.xp6(1),m.Q6J("ngIf",0===ze&&At._firstRowOffset),m.xp6(1),m.Q6J("ngForOf",$)}}function ve(rt,St){if(1&rt&&(m.TgZ(0,"th",5)(1,"span",6),m._uU(2),m.qZA(),m.TgZ(3,"span",7),m._uU(4),m.qZA()()),2&rt){const $=St.$implicit;m.xp6(2),m.Oqu($.long),m.xp6(2),m.Oqu($.narrow)}}const De=["*"];function he(rt,St){}function Ye(rt,St){if(1&rt){const $=m.EpF();m.TgZ(0,"mat-month-view",5),m.NdJ("activeDateChange",function(At){m.CHM($);const Pt=m.oxw();return m.KtG(Pt.activeDate=At)})("_userSelection",function(At){m.CHM($);const Pt=m.oxw();return m.KtG(Pt._dateSelected(At))}),m.qZA()}if(2&rt){const $=m.oxw();m.Q6J("activeDate",$.activeDate)("selected",$.selected)("dateFilter",$.dateFilter)("maxDate",$.maxDate)("minDate",$.minDate)("dateClass",$.dateClass)("comparisonStart",$.comparisonStart)("comparisonEnd",$.comparisonEnd)}}function Be(rt,St){if(1&rt){const $=m.EpF();m.TgZ(0,"mat-year-view",6),m.NdJ("activeDateChange",function(At){m.CHM($);const Pt=m.oxw();return m.KtG(Pt.activeDate=At)})("monthSelected",function(At){m.CHM($);const Pt=m.oxw();return m.KtG(Pt._monthSelectedInYearView(At))})("selectedChange",function(At){m.CHM($);const Pt=m.oxw();return m.KtG(Pt._goToDateInView(At,"month"))}),m.qZA()}if(2&rt){const $=m.oxw();m.Q6J("activeDate",$.activeDate)("selected",$.selected)("dateFilter",$.dateFilter)("maxDate",$.maxDate)("minDate",$.minDate)("dateClass",$.dateClass)}}function se(rt,St){if(1&rt){const $=m.EpF();m.TgZ(0,"mat-multi-year-view",7),m.NdJ("activeDateChange",function(At){m.CHM($);const Pt=m.oxw();return m.KtG(Pt.activeDate=At)})("yearSelected",function(At){m.CHM($);const Pt=m.oxw();return m.KtG(Pt._yearSelectedInMultiYearView(At))})("selectedChange",function(At){m.CHM($);const Pt=m.oxw();return m.KtG(Pt._goToDateInView(At,"year"))}),m.qZA()}if(2&rt){const $=m.oxw();m.Q6J("activeDate",$.activeDate)("selected",$.selected)("dateFilter",$.dateFilter)("maxDate",$.maxDate)("minDate",$.minDate)("dateClass",$.dateClass)}}function le(rt,St){}const k=["button"];function N(rt,St){1&rt&&(m.O4$(),m.TgZ(0,"svg",3),m._UZ(1,"path",4),m.qZA())}const be=[[["","matDatepickerToggleIcon",""]]],Z=["[matDatepickerToggleIcon]"];let ut=(()=>{class rt{constructor(){this.changes=new R.x,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($,ze){return`${$} \u2013 ${ze}`}formatYearRangeLabel($,ze){return`${$} to ${ze}`}}return rt.\u0275fac=function($){return new($||rt)},rt.\u0275prov=m.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"}),rt})();class tt{constructor(St,$,ze,At,Pt={},Xt=St,yn){this.value=St,this.displayValue=$,this.ariaLabel=ze,this.enabled=At,this.cssClasses=Pt,this.compareValue=Xt,this.rawValue=yn}}let vt=(()=>{class rt{constructor($,ze){this._elementRef=$,this._ngZone=ze,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new m.vpe,this.previewChange=new m.vpe,this.activeDateChange=new m.vpe,this._enterHandler=At=>{if(this._skipNextFocus&&"focus"===At.type)this._skipNextFocus=!1;else if(At.target&&this.isRange){const Pt=this._getCellFromElement(At.target);Pt&&this._ngZone.run(()=>this.previewChange.emit({value:Pt.enabled?Pt:null,event:At}))}},this._leaveHandler=At=>{null!==this.previewEnd&&this.isRange&&At.target&&this._getCellFromElement(At.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:At}))},ze.runOutsideAngular(()=>{const At=$.nativeElement;At.addEventListener("mouseenter",this._enterHandler,!0),At.addEventListener("focus",this._enterHandler,!0),At.addEventListener("mouseleave",this._leaveHandler,!0),At.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked($,ze){$.enabled&&this.selectedValueChange.emit({value:$.value,event:ze})}_emitActiveDateChange($,ze){$.enabled&&this.activeDateChange.emit({value:$.value,event:ze})}_isSelected($){return this.startValue===$||this.endValue===$}ngOnChanges($){const ze=$.numCols,{rows:At,numCols:Pt}=this;($.rows||ze)&&(this._firstRowOffset=At&&At.length&&At[0].length?Pt-At[0].length:0),($.cellAspectRatio||ze||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Pt+"%"),(ze||!this._cellWidth)&&(this._cellWidth=100/Pt+"%")}ngOnDestroy(){const $=this._elementRef.nativeElement;$.removeEventListener("mouseenter",this._enterHandler,!0),$.removeEventListener("focus",this._enterHandler,!0),$.removeEventListener("mouseleave",this._leaveHandler,!0),$.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell($,ze){let At=$*this.numCols+ze;return $&&(At-=this._firstRowOffset),At==this.activeCell}_focusActiveCell($=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ee.q)(1)).subscribe(()=>{setTimeout(()=>{const ze=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");ze&&($||(this._skipNextFocus=!0),ze.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart($){return nt($,this.startValue,this.endValue)}_isRangeEnd($){return Ae($,this.startValue,this.endValue)}_isInRange($){return ye($,this.startValue,this.endValue,this.isRange)}_isComparisonStart($){return nt($,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart($,ze,At){if(!this._isComparisonStart($)||this._isRangeStart($)||!this._isInRange($))return!1;let Pt=this.rows[ze][At-1];if(!Pt){const Xt=this.rows[ze-1];Pt=Xt&&Xt[Xt.length-1]}return Pt&&!this._isRangeEnd(Pt.compareValue)}_isComparisonBridgeEnd($,ze,At){if(!this._isComparisonEnd($)||this._isRangeEnd($)||!this._isInRange($))return!1;let Pt=this.rows[ze][At+1];if(!Pt){const Xt=this.rows[ze+1];Pt=Xt&&Xt[0]}return Pt&&!this._isRangeStart(Pt.compareValue)}_isComparisonEnd($){return Ae($,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange($){return ye($,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical($){return this.comparisonStart===this.comparisonEnd&&$===this.comparisonStart}_isPreviewStart($){return nt($,this.previewStart,this.previewEnd)}_isPreviewEnd($){return Ae($,this.previewStart,this.previewEnd)}_isInPreview($){return ye($,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement($){let ze;if(X($)?ze=$:X($.parentNode)&&(ze=$.parentNode),ze){const At=ze.getAttribute("data-mat-row"),Pt=ze.getAttribute("data-mat-col");if(At&&Pt)return this.rows[parseInt(At)][parseInt(Pt)]}return null}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(m.SBq),m.Y36(m.R0b))},rt.\u0275cmp=m.Xpm({type:rt,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"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[m.TTD],attrs:V,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function($,ze){1&$&&(m.YNc(0,te,3,6,"tr",0),m.YNc(1,ge,3,2,"tr",1)),2&$&&(m.Q6J("ngIf",ze._firstRowOffset=St&&rt===$}function ye(rt,St,$,ze){return ze&&null!==St&&null!==$&&St!==$&&rt>=St&&rt<=$}class _e{constructor(St,$){this.start=St,this.end=$}}let Se=(()=>{class rt{constructor($,ze){this.selection=$,this._adapter=ze,this._selectionChanged=new R.x,this.selectionChanged=this._selectionChanged,this.selection=$}updateSelection($,ze){const At=this.selection;this.selection=$,this._selectionChanged.next({selection:$,source:ze,oldValue:At})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance($){return this._adapter.isDateInstance($)&&this._adapter.isValid($)}}return rt.\u0275fac=function($){m.$Z()},rt.\u0275prov=m.Yz7({token:rt,factory:rt.\u0275fac}),rt})(),Ne=(()=>{class rt extends Se{constructor($){super(null,$)}add($){super.updateSelection($,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const $=new rt(this._adapter);return $.updateSelection(this.selection,this),$}}return rt.\u0275fac=function($){return new($||rt)(m.LFG(v._A))},rt.\u0275prov=m.Yz7({token:rt,factory:rt.\u0275fac}),rt})();const r={provide:Se,deps:[[new m.FiY,new m.tp0,Se],v._A],useFactory:function fe(rt,St){return rt||new Ne(St)}},E=new m.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let n=(()=>{class rt{constructor($,ze,At,Pt,Xt){this._changeDetectorRef=$,this._dateFormats=ze,this._dateAdapter=At,this._dir=Pt,this._rangeStrategy=Xt,this._rerenderSubscription=B.w0.EMPTY,this.selectedChange=new m.vpe,this._userSelection=new m.vpe,this.activeDateChange=new m.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate($){const ze=this._activeDate,At=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(At,this.minDate,this.maxDate),this._hasSameMonthAndYear(ze,this._activeDate)||this._init()}get selected(){return this._selected}set selected($){this._selected=$ instanceof _e?$:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate($){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}get maxDate(){return this._maxDate}set maxDate($){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,z.O)(null)).subscribe(()=>this._init())}ngOnChanges($){const ze=$.comparisonStart||$.comparisonEnd;ze&&!ze.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected($){const ze=$.value,At=this._getDateFromDayOfMonth(ze);let Pt,Xt;this._selected instanceof _e?(Pt=this._getDateInCurrentMonth(this._selected.start),Xt=this._getDateInCurrentMonth(this._selected.end)):Pt=Xt=this._getDateInCurrentMonth(this._selected),(Pt!==ze||Xt!==ze)&&this.selectedChange.emit(At),this._userSelection.emit({value:At,event:$.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate($){const At=this._activeDate;this.activeDate=this._getDateFromDayOfMonth($.value),this._dateAdapter.compareDate(At,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown($){const ze=this._activeDate,At=this._isRtl();switch($.keyCode){case O.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,At?1:-1);break;case O.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,At?-1:1);break;case O.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case O.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case O.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case O.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case O.Ku:this.activeDate=$.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case O.VM:this.activeDate=$.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case O.K5:case O.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&$.preventDefault());case O.hY:return void(null!=this._previewEnd&&!(0,O.Vb)($)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:$}),$.preventDefault(),$.stopPropagation()));default:return}this._dateAdapter.compareDate(ze,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),$.preventDefault()}_handleCalendarBodyKeyup($){($.keyCode===O.L_||$.keyCode===O.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:$}),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 $=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek($)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell($){this._matCalendarBody._focusActiveCell($)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:$,value:ze}){if(this._rangeStrategy){const Pt=this._rangeStrategy.createPreview(ze?ze.rawValue:null,this.selected,$);this._previewStart=this._getCellCompareValue(Pt.start),this._previewEnd=this._getCellCompareValue(Pt.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth($){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),$)}_initWeekdays(){const $=this._dateAdapter.getFirstDayOfWeek(),ze=this._dateAdapter.getDayOfWeekNames("narrow");let Pt=this._dateAdapter.getDayOfWeekNames("long").map((Xt,yn)=>({long:Xt,narrow:ze[yn]}));this._weekdays=Pt.slice($).concat(Pt.slice(0,$))}_createWeekCells(){const $=this._dateAdapter.getNumDaysInMonth(this.activeDate),ze=this._dateAdapter.getDateNames();this._weeks=[[]];for(let At=0,Pt=this._firstWeekOffset;At<$;At++,Pt++){7==Pt&&(this._weeks.push([]),Pt=0);const Xt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),At+1),yn=this._shouldEnableDate(Xt),Zn=this._dateAdapter.format(Xt,this._dateFormats.display.dateA11yLabel),Hn=this.dateClass?this.dateClass(Xt,"month"):void 0;this._weeks[this._weeks.length-1].push(new tt(At+1,ze[At],Zn,yn,Hn,this._getCellCompareValue(Xt),Xt))}}_shouldEnableDate($){return!!$&&(!this.minDate||this._dateAdapter.compareDate($,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate($,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter($))}_getDateInCurrentMonth($){return $&&this._hasSameMonthAndYear($,this.activeDate)?this._dateAdapter.getDate($):null}_hasSameMonthAndYear($,ze){return!(!$||!ze||this._dateAdapter.getMonth($)!=this._dateAdapter.getMonth(ze)||this._dateAdapter.getYear($)!=this._dateAdapter.getYear(ze))}_getCellCompareValue($){if($){const ze=this._dateAdapter.getYear($),At=this._dateAdapter.getMonth($),Pt=this._dateAdapter.getDate($);return new Date(ze,At,Pt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges($){$ instanceof _e?(this._rangeStart=this._getCellCompareValue($.start),this._rangeEnd=this._getCellCompareValue($.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue($),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect($){return!this.dateFilter||this.dateFilter($)}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(m.sBO),m.Y36(v.sG,8),m.Y36(v._A,8),m.Y36(q.Is,8),m.Y36(E,8))},rt.\u0275cmp=m.Xpm({type:rt,selectors:[["mat-month-view"]],viewQuery:function($,ze){if(1&$&&m.Gf(vt,5),2&$){let At;m.iGM(At=m.CRH())&&(ze._matCalendarBody=At.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[m.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function($,ze){1&$&&(m.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),m.YNc(3,ve,5,2,"th",2),m.qZA(),m.TgZ(4,"tr"),m._UZ(5,"th",3),m.qZA()(),m.TgZ(6,"tbody",4),m.NdJ("selectedValueChange",function(Pt){return ze._dateSelected(Pt)})("activeDateChange",function(Pt){return ze._updateActiveDate(Pt)})("previewChange",function(Pt){return ze._previewChanged(Pt)})("keyup",function(Pt){return ze._handleCalendarBodyKeyup(Pt)})("keydown",function(Pt){return ze._handleCalendarBodyKeydown(Pt)}),m.qZA()()),2&$&&(m.xp6(3),m.Q6J("ngForOf",ze._weekdays),m.xp6(3),m.Q6J("label",ze._monthLabel)("rows",ze._weeks)("todayValue",ze._todayDate)("startValue",ze._rangeStart)("endValue",ze._rangeEnd)("comparisonStart",ze._comparisonRangeStart)("comparisonEnd",ze._comparisonRangeEnd)("previewStart",ze._previewStart)("previewEnd",ze._previewEnd)("isRange",ze._isRange)("labelMinRequiredCells",3)("activeCell",ze._dateAdapter.getDate(ze.activeDate)-1))},dependencies:[M.sg,vt],encapsulation:2,changeDetection:0}),rt})();const o=24;let l=(()=>{class rt{constructor($,ze,At){this._changeDetectorRef=$,this._dateAdapter=ze,this._dir=At,this._rerenderSubscription=B.w0.EMPTY,this.selectedChange=new m.vpe,this.yearSelected=new m.vpe,this.activeDateChange=new m.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate($){let ze=this._activeDate;const At=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(At,this.minDate,this.maxDate),d(this._dateAdapter,ze,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected($){this._selected=$ instanceof _e?$:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($)),this._setSelectedYear($)}get minDate(){return this._minDate}set minDate($){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}get maxDate(){return this._maxDate}set maxDate($){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,z.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const ze=this._dateAdapter.getYear(this._activeDate)-c(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let At=0,Pt=[];Atthis._createCellForYear(Xt))),Pt=[]);this._changeDetectorRef.markForCheck()}_yearSelected($){const ze=$.value,At=this._dateAdapter.createDate(ze,0,1),Pt=this._getDateFromYear(ze);this.yearSelected.emit(At),this.selectedChange.emit(Pt)}_updateActiveDate($){const At=this._activeDate;this.activeDate=this._getDateFromYear($.value),this._dateAdapter.compareDate(At,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown($){const ze=this._activeDate,At=this._isRtl();switch($.keyCode){case O.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,At?1:-1);break;case O.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,At?-1:1);break;case O.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case O.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case O.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-c(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case O.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o-c(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case O.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,$.altKey?-240:-o);break;case O.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,$.altKey?240:o);break;case O.K5:case O.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(ze,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),$.preventDefault()}_handleCalendarBodyKeyup($){($.keyCode===O.L_||$.keyCode===O.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:$}),this._selectionKeyPressed=!1)}_getActiveCell(){return c(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear($){const ze=this._dateAdapter.getMonth(this.activeDate),At=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate($,ze,1));return this._dateAdapter.createDate($,ze,Math.min(this._dateAdapter.getDate(this.activeDate),At))}_createCellForYear($){const ze=this._dateAdapter.createDate($,0,1),At=this._dateAdapter.getYearName(ze),Pt=this.dateClass?this.dateClass(ze,"multi-year"):void 0;return new tt($,At,At,this._shouldEnableYear($),Pt)}_shouldEnableYear($){if(null==$||this.maxDate&&$>this._dateAdapter.getYear(this.maxDate)||this.minDate&&${class rt{constructor($,ze,At,Pt){this._changeDetectorRef=$,this._dateFormats=ze,this._dateAdapter=At,this._dir=Pt,this._rerenderSubscription=B.w0.EMPTY,this.selectedChange=new m.vpe,this.monthSelected=new m.vpe,this.activeDateChange=new m.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate($){let ze=this._activeDate;const At=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(At,this.minDate,this.maxDate),this._dateAdapter.getYear(ze)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected($){this._selected=$ instanceof _e?$:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($)),this._setSelectedMonth($)}get minDate(){return this._minDate}set minDate($){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}get maxDate(){return this._maxDate}set maxDate($){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,z.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected($){const ze=$.value,At=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),ze,1);this.monthSelected.emit(At);const Pt=this._getDateFromMonth(ze);this.selectedChange.emit(Pt)}_updateActiveDate($){const At=this._activeDate;this.activeDate=this._getDateFromMonth($.value),this._dateAdapter.compareDate(At,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown($){const ze=this._activeDate,At=this._isRtl();switch($.keyCode){case O.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,At?1:-1);break;case O.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,At?-1:1);break;case O.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case O.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case O.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case O.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case O.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,$.altKey?-10:-1);break;case O.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,$.altKey?10:1);break;case O.K5:case O.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(ze,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),$.preventDefault()}_handleCalendarBodyKeyup($){($.keyCode===O.L_||$.keyCode===O.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:$}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let $=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(ze=>ze.map(At=>this._createCellForMonth(At,$[At]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear($){return $&&this._dateAdapter.getYear($)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth($):null}_getDateFromMonth($){const ze=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),$,1),At=this._dateAdapter.getNumDaysInMonth(ze);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),$,Math.min(this._dateAdapter.getDate(this.activeDate),At))}_createCellForMonth($,ze){const At=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),$,1),Pt=this._dateAdapter.format(At,this._dateFormats.display.monthYearA11yLabel),Xt=this.dateClass?this.dateClass(At,"year"):void 0;return new tt($,ze.toLocaleUpperCase(),Pt,this._shouldEnableMonth($),Xt)}_shouldEnableMonth($){const ze=this._dateAdapter.getYear(this.activeDate);if(null==$||this._isYearAndMonthAfterMaxDate(ze,$)||this._isYearAndMonthBeforeMinDate(ze,$))return!1;if(!this.dateFilter)return!0;for(let Pt=this._dateAdapter.createDate(ze,$,1);this._dateAdapter.getMonth(Pt)==$;Pt=this._dateAdapter.addCalendarDays(Pt,1))if(this.dateFilter(Pt))return!0;return!1}_isYearAndMonthAfterMaxDate($,ze){if(this.maxDate){const At=this._dateAdapter.getYear(this.maxDate),Pt=this._dateAdapter.getMonth(this.maxDate);return $>At||$===At&&ze>Pt}return!1}_isYearAndMonthBeforeMinDate($,ze){if(this.minDate){const At=this._dateAdapter.getYear(this.minDate),Pt=this._dateAdapter.getMonth(this.minDate);return ${class rt{constructor($,ze,At,Pt,Xt){this._intl=$,this.calendar=ze,this._dateAdapter=At,this._dateFormats=Pt,this._buttonDescriptionId="mat-calendar-button-"+We++,this.calendar.stateChanges.subscribe(()=>Xt.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const ze=this._dateAdapter.getYear(this.calendar.activeDate)-c(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),At=ze+o-1,Pt=this._dateAdapter.getYearName(this._dateAdapter.createDate(ze,0,1)),Xt=this._dateAdapter.getYearName(this._dateAdapter.createDate(At,0,1));return this._intl.formatYearRange(Pt,Xt)}get periodButtonLabel(){return"month"==this.calendar.currentView?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="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-o)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:o)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView($,ze){return"month"==this.calendar.currentView?this._dateAdapter.getYear($)==this._dateAdapter.getYear(ze)&&this._dateAdapter.getMonth($)==this._dateAdapter.getMonth(ze):"year"==this.calendar.currentView?this._dateAdapter.getYear($)==this._dateAdapter.getYear(ze):d(this._dateAdapter,$,ze,this.calendar.minDate,this.calendar.maxDate)}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(ut),m.Y36((0,m.Gpc)(()=>ne)),m.Y36(v._A,8),m.Y36(v.sG,8),m.Y36(m.sBO))},rt.\u0275cmp=m.Xpm({type:rt,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:De,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",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,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function($,ze){1&$&&(m.F$t(),m.TgZ(0,"div",0)(1,"div",1)(2,"button",2),m.NdJ("click",function(){return ze.currentPeriodClicked()}),m.TgZ(3,"span"),m._uU(4),m.qZA(),m.O4$(),m.TgZ(5,"svg",3),m._UZ(6,"polygon",4),m.qZA()(),m.kcU(),m._UZ(7,"div",5),m.Hsn(8),m.TgZ(9,"button",6),m.NdJ("click",function(){return ze.previousClicked()}),m.qZA(),m.TgZ(10,"button",7),m.NdJ("click",function(){return ze.nextClicked()}),m.qZA()()()),2&$&&(m.xp6(2),m.uIk("aria-label",ze.periodButtonLabel)("aria-describedby",ze._buttonDescriptionId),m.xp6(1),m.uIk("id",ze._buttonDescriptionId),m.xp6(1),m.Oqu(ze.periodButtonText),m.xp6(1),m.ekj("mat-calendar-invert","month"!==ze.calendar.currentView),m.xp6(4),m.Q6J("disabled",!ze.previousEnabled()),m.uIk("aria-label",ze.prevButtonLabel),m.xp6(1),m.Q6J("disabled",!ze.nextEnabled()),m.uIk("aria-label",ze.nextButtonLabel))},dependencies:[b.lW],encapsulation:2,changeDetection:0}),rt})(),ne=(()=>{class rt{constructor($,ze,At,Pt){this._dateAdapter=ze,this._dateFormats=At,this._changeDetectorRef=Pt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new m.vpe,this.yearSelected=new m.vpe,this.monthSelected=new m.vpe,this.viewChanged=new m.vpe(!0),this._userSelection=new m.vpe,this.stateChanges=new R.x,this._intlChanges=$.changes.subscribe(()=>{Pt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt($){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}get selected(){return this._selected}set selected($){this._selected=$ instanceof _e?$:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}get minDate(){return this._minDate}set minDate($){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}get maxDate(){return this._maxDate}set maxDate($){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}get activeDate(){return this._clampedActiveDate}set activeDate($){this._clampedActiveDate=this._dateAdapter.clampDate($,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView($){const ze=this._currentView!==$?$:null;this._currentView=$,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),ze&&this.viewChanged.emit(ze)}ngAfterContentInit(){this._calendarHeaderPortal=new C.C5(this.headerComponent||et),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($){const ze=$.minDate&&!this._dateAdapter.sameDate($.minDate.previousValue,$.minDate.currentValue)?$.minDate:void 0,At=$.maxDate&&!this._dateAdapter.sameDate($.maxDate.previousValue,$.maxDate.currentValue)?$.maxDate:void 0,Pt=ze||At||$.dateFilter;if(Pt&&!Pt.firstChange){const Xt=this._getCurrentViewComponent();Xt&&(this._changeDetectorRef.detectChanges(),Xt._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected($){const ze=$.value;(this.selected instanceof _e||ze&&!this._dateAdapter.sameDate(ze,this.selected))&&this.selectedChange.emit(ze),this._userSelection.emit($)}_yearSelectedInMultiYearView($){this.yearSelected.emit($)}_monthSelectedInYearView($){this.monthSelected.emit($)}_goToDateInView($,ze){this.activeDate=$,this.currentView=ze}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(ut),m.Y36(v._A,8),m.Y36(v.sG,8),m.Y36(m.sBO))},rt.\u0275cmp=m.Xpm({type:rt,selectors:[["mat-calendar"]],viewQuery:function($,ze){if(1&$&&(m.Gf(n,5),m.Gf(ht,5),m.Gf(l,5)),2&$){let At;m.iGM(At=m.CRH())&&(ze.monthView=At.first),m.iGM(At=m.CRH())&&(ze.yearView=At.first),m.iGM(At=m.CRH())&&(ze.multiYearView=At.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"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[m._Bn([r]),m.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function($,ze){1&$&&(m.YNc(0,he,0,0,"ng-template",0),m.TgZ(1,"div",1),m.YNc(2,Ye,1,8,"mat-month-view",2),m.YNc(3,Be,1,6,"mat-year-view",3),m.YNc(4,se,1,6,"mat-multi-year-view",4),m.qZA()),2&$&&(m.Q6J("cdkPortalOutlet",ze._calendarHeaderPortal),m.xp6(1),m.Q6J("ngSwitch",ze.currentView),m.xp6(1),m.Q6J("ngSwitchCase","month"),m.xp6(1),m.Q6J("ngSwitchCase","year"),m.xp6(1),m.Q6J("ngSwitchCase","multi-year"))},dependencies:[M.RF,M.n9,e.kH,C.Pl,n,ht,l],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.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-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}.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}.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}),rt})();const Ue={transformPanel:(0,Le.X$)("transformPanel",[(0,Le.eR)("void => enter-dropdown",(0,Le.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Le.F4)([(0,Le.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Le.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Le.eR)("void => enter-dialog",(0,Le.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Le.F4)([(0,Le.oB)({opacity:0,transform:"scale(0.7)"}),(0,Le.oB)({transform:"none",opacity:1})]))),(0,Le.eR)("* => void",(0,Le.jt)("100ms linear",(0,Le.oB)({opacity:0})))]),fadeInCalendar:(0,Le.X$)("fadeInCalendar",[(0,Le.SB)("void",(0,Le.oB)({opacity:0})),(0,Le.SB)("enter",(0,Le.oB)({opacity:1})),(0,Le.eR)("void => *",(0,Le.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let He=0;const Oe=new m.OlP("mat-datepicker-scroll-strategy"),re={provide:Oe,deps:[A.aV],useFactory:function Re(rt){return()=>rt.scrollStrategies.reposition()}},we=(0,v.pj)(class{constructor(rt){this._elementRef=rt}});let st=(()=>{class rt extends we{constructor($,ze,At,Pt,Xt,yn){super($),this._changeDetectorRef=ze,this._globalModel=At,this._dateAdapter=Pt,this._rangeSelectionStrategy=Xt,this._subscriptions=new B.w0,this._animationDone=new R.x,this._actionsPortal=null,this._closeButtonText=yn.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($){const ze=this._model.selection,At=$.value,Pt=ze instanceof _e;if(Pt&&this._rangeSelectionStrategy){const Xt=this._rangeSelectionStrategy.selectionFinished(At,ze,$.event);this._model.updateSelection(Xt,this)}else At&&(Pt||!this._dateAdapter.sameDate(At,ze))&&this._model.add(At);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions($,ze){this._model=$?this._globalModel.clone():this._globalModel,this._actionsPortal=$,ze&&this._changeDetectorRef.detectChanges()}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(Se),m.Y36(v._A),m.Y36(E,8),m.Y36(ut))},rt.\u0275cmp=m.Xpm({type:rt,selectors:[["mat-datepicker-content"]],viewQuery:function($,ze){if(1&$&&m.Gf(ne,5),2&$){let At;m.iGM(At=m.CRH())&&(ze._calendar=At.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function($,ze){1&$&&m.WFA("@transformPanel.done",function(){return ze._animationDone.next()}),2&$&&(m.d8E("@transformPanel",ze._animationState),m.ekj("mat-datepicker-content-touch",ze.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[m.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function($,ze){if(1&$&&(m.TgZ(0,"div",0)(1,"mat-calendar",1),m.NdJ("yearSelected",function(Pt){return ze.datepicker._selectYear(Pt)})("monthSelected",function(Pt){return ze.datepicker._selectMonth(Pt)})("viewChanged",function(Pt){return ze.datepicker._viewChanged(Pt)})("_userSelection",function(Pt){return ze._handleUserSelection(Pt)}),m.qZA(),m.YNc(2,le,0,0,"ng-template",2),m.TgZ(3,"button",3),m.NdJ("focus",function(){return ze._closeButtonFocused=!0})("blur",function(){return ze._closeButtonFocused=!1})("click",function(){return ze.datepicker.close()}),m._uU(4),m.qZA()()),2&$){let At;m.ekj("mat-datepicker-content-container-with-custom-header",ze.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",ze._actionsPortal),m.uIk("aria-modal",!0)("aria-labelledby",null!==(At=ze._dialogLabelId)&&void 0!==At?At:void 0),m.xp6(1),m.Q6J("id",ze.datepicker.id)("ngClass",ze.datepicker.panelClass)("startAt",ze.datepicker.startAt)("startView",ze.datepicker.startView)("minDate",ze.datepicker._getMinDate())("maxDate",ze.datepicker._getMaxDate())("dateFilter",ze.datepicker._getDateFilter())("headerComponent",ze.datepicker.calendarHeaderComponent)("selected",ze._getSelected())("dateClass",ze.datepicker.dateClass)("comparisonStart",ze.comparisonStart)("comparisonEnd",ze.comparisonEnd)("@fadeInCalendar","enter"),m.xp6(1),m.Q6J("cdkPortalOutlet",ze._actionsPortal),m.xp6(1),m.ekj("cdk-visually-hidden",!ze._closeButtonFocused),m.Q6J("color",ze.color||"primary"),m.xp6(1),m.Oqu(ze._closeButtonText)}},dependencies:[M.mk,b.lW,e.mK,C.Pl,ne],styles:[".mat-datepicker-content{display:block;border-radius:4px}.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;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:[Ue.transformPanel,Ue.fadeInCalendar]},changeDetection:0}),rt})(),Ke=(()=>{class rt{constructor($,ze,At,Pt,Xt,yn,Zn){this._overlay=$,this._ngZone=ze,this._viewContainerRef=At,this._dateAdapter=Xt,this._dir=yn,this._model=Zn,this._inputStateChanges=B.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new m.vpe,this.monthSelected=new m.vpe,this.viewChanged=new m.vpe(!0),this.openedStream=new m.vpe,this.closedStream=new m.vpe,this._opened=!1,this.id="mat-datepicker-"+He++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new R.x,this._scrollStrategy=Pt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt($){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color($){this._color=$}get touchUi(){return this._touchUi}set touchUi($){this._touchUi=(0,Te.Ig)($)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled($){const ze=(0,Te.Ig)($);ze!==this._disabled&&(this._disabled=ze,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus($){this._restoreFocus=(0,Te.Ig)($)}get panelClass(){return this._panelClass}set panelClass($){this._panelClass=(0,Te.du)($)}get opened(){return this._opened}set opened($){(0,Te.Ig)($)?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}ngOnChanges($){const ze=$.xPosition||$.yPosition;if(ze&&!ze.firstChange&&this._overlayRef){const At=this._overlayRef.getConfig().positionStrategy;At instanceof A._G&&(this._setConnectedPositions(At),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select($){this._model.add($)}_selectYear($){this.yearSelected.emit($)}_selectMonth($){this.monthSelected.emit($)}_viewChanged($){this.viewChanged.emit($)}registerInput($){return this._inputStateChanges.unsubscribe(),this.datepickerInput=$,this._inputStateChanges=$.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions($){var ze;this._actionsPortal=$,null===(ze=this._componentRef)||void 0===ze||ze.instance._assignActions($,!0)}removeActions($){var ze;$===this._actionsPortal&&(this._actionsPortal=null,null===(ze=this._componentRef)||void 0===ze||ze.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,pe.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const ze=this._componentRef.instance;ze._startExitAnimation(),ze._animationDone.pipe((0,ee.q)(1)).subscribe(()=>this._destroyOverlay())}const $=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout($)):$()}_applyPendingSelection(){var $,ze;null===($=this._componentRef)||void 0===$||null===(ze=$.instance)||void 0===ze||ze._applyPendingSelection()}_forwardContentValues($){$.datepicker=this,$.color=this.color,$._dialogLabelId=this.datepickerInput.getOverlayLabelId(),$._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const $=this.touchUi,ze=new C.C5(st,this._viewContainerRef),At=this._overlayRef=this._overlay.create(new A.X_({positionStrategy:$?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[$?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:$?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+($?"dialog":"popup")}));this._getCloseStream(At).subscribe(Pt=>{Pt&&Pt.preventDefault(),this.close()}),At.keydownEvents().subscribe(Pt=>{const Xt=Pt.keyCode;(Xt===O.LH||Xt===O.JH||Xt===O.oh||Xt===O.SV||Xt===O.Ku||Xt===O.VM)&&Pt.preventDefault()}),this._componentRef=At.attach(ze),this._forwardContentValues(this._componentRef.instance),$||this._ngZone.onStable.pipe((0,ee.q)(1)).subscribe(()=>At.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const $=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions($)}_setConnectedPositions($){const ze="end"===this.xPosition?"end":"start",At="start"===ze?"end":"start",Pt="above"===this.yPosition?"bottom":"top",Xt="top"===Pt?"bottom":"top";return $.withPositions([{originX:ze,originY:Xt,overlayX:ze,overlayY:Pt},{originX:ze,originY:Pt,overlayX:ze,overlayY:Xt},{originX:At,originY:Xt,overlayX:At,overlayY:Pt},{originX:At,originY:Pt,overlayX:At,overlayY:Xt}])}_getCloseStream($){return(0,w.T)($.backdropClick(),$.detachments(),$.keydownEvents().pipe((0,ie.h)(ze=>ze.keyCode===O.hY&&!(0,O.Vb)(ze)||this.datepickerInput&&(0,O.Vb)(ze,"altKey")&&ze.keyCode===O.LH)))}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(A.aV),m.Y36(m.R0b),m.Y36(m.s_b),m.Y36(Oe),m.Y36(v._A,8),m.Y36(q.Is,8),m.Y36(Se))},rt.\u0275dir=m.lG2({type:rt,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[m.TTD]}),rt})(),Et=(()=>{class rt extends Ke{}return rt.\u0275fac=function(){let St;return function(ze){return(St||(St=m.n5z(rt)))(ze||rt)}}(),rt.\u0275cmp=m.Xpm({type:rt,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[m._Bn([r,{provide:Ke,useExisting:rt}]),m.qOj],decls:0,vars:0,template:function($,ze){},encapsulation:2,changeDetection:0}),rt})();class ke{constructor(St,$){this.target=St,this.targetElement=$,this.value=this.target.value}}let at=(()=>{class rt{constructor($,ze,At){this._elementRef=$,this._dateAdapter=ze,this._dateFormats=At,this.dateChange=new m.vpe,this.dateInput=new m.vpe,this.stateChanges=new R.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=B.w0.EMPTY,this._localeSubscription=B.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Pt=>{const Xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value));return!Xt||this._matchesFilter(Xt)?null:{matDatepickerFilter:!0}},this._minValidator=Pt=>{const Xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value)),yn=this._getMinDate();return!yn||!Xt||this._dateAdapter.compareDate(yn,Xt)<=0?null:{matDatepickerMin:{min:yn,actual:Xt}}},this._maxValidator=Pt=>{const Xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value)),yn=this._getMaxDate();return!yn||!Xt||this._dateAdapter.compareDate(yn,Xt)>=0?null:{matDatepickerMax:{max:yn,actual:Xt}}},this._lastValueValid=!1,this._localeSubscription=ze.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value($){this._assignValueProgrammatically($)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled($){const ze=(0,Te.Ig)($),At=this._elementRef.nativeElement;this._disabled!==ze&&(this._disabled=ze,this.stateChanges.next(void 0)),ze&&this._isInitialized&&At.blur&&At.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel($){this._model=$,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(ze=>{if(this._shouldHandleChangeEvent(ze)){const At=this._getValueFromModel(ze.selection);this._lastValueValid=this._isValidValue(At),this._cvaOnChange(At),this._onTouched(),this._formatValue(At),this.dateInput.emit(new ke(this,this._elementRef.nativeElement)),this.dateChange.emit(new ke(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges($){(function It(rt,St){const $=Object.keys(rt);for(let ze of $){const{previousValue:At,currentValue:Pt}=rt[ze];if(!St.isDateInstance(At)||!St.isDateInstance(Pt))return!0;if(!St.sameDate(At,Pt))return!0}return!1})($,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange($){this._validatorOnChange=$}validate($){return this._validator?this._validator($):null}writeValue($){this._assignValueProgrammatically($)}registerOnChange($){this._cvaOnChange=$}registerOnTouched($){this._onTouched=$}setDisabledState($){this.disabled=$}_onKeydown($){$.altKey&&$.keyCode===O.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),$.preventDefault())}_onInput($){const ze=this._lastValueValid;let At=this._dateAdapter.parse($,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(At),At=this._dateAdapter.getValidDateOrNull(At);const Pt=!this._dateAdapter.sameDate(At,this.value);!At||Pt?this._cvaOnChange(At):($&&!this.value&&this._cvaOnChange(At),ze!==this._lastValueValid&&this._validatorOnChange()),Pt&&(this._assignValue(At),this.dateInput.emit(new ke(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new ke(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue($){this._elementRef.nativeElement.value=null!=$?this._dateAdapter.format($,this._dateFormats.display.dateInput):""}_assignValue($){this._model?(this._assignValueToModel($),this._pendingValue=null):this._pendingValue=$}_isValidValue($){return!$||this._dateAdapter.isValid($)}_parentDisabled(){return!1}_assignValueProgrammatically($){$=this._dateAdapter.deserialize($),this._lastValueValid=this._isValidValue($),$=this._dateAdapter.getValidDateOrNull($),this._assignValue($),this._formatValue($)}_matchesFilter($){const ze=this._getDateFilter();return!ze||ze($)}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(m.SBq),m.Y36(v._A,8),m.Y36(v.sG,8))},rt.\u0275dir=m.lG2({type:rt,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[m.TTD]}),rt})();const jt={provide:T.JU,useExisting:(0,m.Gpc)(()=>Kt),multi:!0},an={provide:T.Cf,useExisting:(0,m.Gpc)(()=>Kt),multi:!0};let Kt=(()=>{class rt extends at{constructor($,ze,At,Pt){super($,ze,At),this._formField=Pt,this._closedSubscription=B.w0.EMPTY,this._validator=T.kI.compose(super._getValidators())}set matDatepicker($){$&&(this._datepicker=$,this._closedSubscription=$.closedStream.subscribe(()=>this._onTouched()),this._registerModel($.registerInput(this)))}get min(){return this._min}set min($){const ze=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($));this._dateAdapter.sameDate(ze,this._min)||(this._min=ze,this._validatorOnChange())}get max(){return this._max}set max($){const ze=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($));this._dateAdapter.sameDate(ze,this._max)||(this._max=ze,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter($){const ze=this._matchesFilter(this.value);this._dateFilter=$,this._matchesFilter(this.value)!==ze&&this._validatorOnChange()}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()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel($){return $}_assignValueToModel($){this._model&&this._model.updateSelection($,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent($){return $.source!==this}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(m.SBq),m.Y36(v._A,8),m.Y36(v.sG,8),m.Y36(W.G_,8))},rt.\u0275dir=m.lG2({type:rt,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function($,ze){1&$&&m.NdJ("input",function(Pt){return ze._onInput(Pt.target.value)})("change",function(){return ze._onChange()})("blur",function(){return ze._onBlur()})("keydown",function(Pt){return ze._onKeydown(Pt)}),2&$&&(m.Ikx("disabled",ze.disabled),m.uIk("aria-haspopup",ze._datepicker?"dialog":null)("aria-owns",(null==ze._datepicker?null:ze._datepicker.opened)&&ze._datepicker.id||null)("min",ze.min?ze._dateAdapter.toIso8601(ze.min):null)("max",ze.max?ze._dateAdapter.toIso8601(ze.max):null)("data-mat-calendar",ze._datepicker?ze._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[m._Bn([jt,an,{provide:F.Jk,useExisting:rt}]),m.qOj]}),rt})(),on=(()=>{class rt{}return rt.\u0275fac=function($){return new($||rt)},rt.\u0275dir=m.lG2({type:rt,selectors:[["","matDatepickerToggleIcon",""]]}),rt})(),Cn=(()=>{class rt{constructor($,ze,At){this._intl=$,this._changeDetectorRef=ze,this._stateChanges=B.w0.EMPTY;const Pt=Number(At);this.tabIndex=Pt||0===Pt?Pt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled($){this._disabled=(0,Te.Ig)($)}ngOnChanges($){$.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open($){this.datepicker&&!this.disabled&&(this.datepicker.open(),$.stopPropagation())}_watchStateChanges(){const $=this.datepicker?this.datepicker.stateChanges:(0,L.of)(),ze=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,L.of)(),At=this.datepicker?(0,w.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,L.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,w.T)(this._intl.changes,$,ze,At).subscribe(()=>this._changeDetectorRef.markForCheck())}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(ut),m.Y36(m.sBO),m.$8M("tabindex"))},rt.\u0275cmp=m.Xpm({type:rt,selectors:[["mat-datepicker-toggle"]],contentQueries:function($,ze,At){if(1&$&&m.Suo(At,on,5),2&$){let Pt;m.iGM(Pt=m.CRH())&&(ze._customIcon=Pt.first)}},viewQuery:function($,ze){if(1&$&&m.Gf(k,5),2&$){let At;m.iGM(At=m.CRH())&&(ze._button=At.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function($,ze){1&$&&m.NdJ("click",function(Pt){return ze._open(Pt)}),2&$&&(m.uIk("tabindex",null)("data-mat-calendar",ze.datepicker?ze.datepicker.id:null),m.ekj("mat-datepicker-toggle-active",ze.datepicker&&ze.datepicker.opened)("mat-accent",ze.datepicker&&"accent"===ze.datepicker.color)("mat-warn",ze.datepicker&&"warn"===ze.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[m.TTD],ngContentSelectors:Z,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",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($,ze){1&$&&(m.F$t(be),m.TgZ(0,"button",0,1),m.YNc(2,N,2,0,"svg",2),m.Hsn(3),m.qZA()),2&$&&(m.Q6J("disabled",ze.disabled)("disableRipple",ze.disableRipple),m.uIk("aria-haspopup",ze.datepicker?"dialog":null)("aria-label",ze.ariaLabel||ze._intl.openCalendarLabel)("tabindex",ze.disabled?-1:ze.tabIndex),m.xp6(2),m.Q6J("ngIf",!ze._customIcon))},dependencies:[M.O5,b.lW],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),rt})(),pt=(()=>{class rt{}return rt.\u0275fac=function($){return new($||rt)},rt.\u0275mod=m.oAB({type:rt}),rt.\u0275inj=m.cJS({providers:[ut,re],imports:[M.ez,b.ot,A.U8,e.rt,C.eL,v.BQ,D.ZD]}),rt})()},65412:(Xe,ue,p)=>{"use strict";p.d(ue,{WI:()=>de,uw:()=>nt,H8:()=>Ne,vA:()=>le,xY:()=>Se,Is:()=>fe,so:()=>be,uh:()=>_e});var e=p(12687),A=p(98184),C=p(83353),M=p(84080),m=p(36895),b=p(94650),D=p(29521),v=p(77579),R=p(49770),B=p(39646),w=p(40445),L=p(68675);function O(r,u){}class q{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let z=(()=>{class r extends M.en{constructor(_,E,h,a,i,t,n,o){super(),this._elementRef=_,this._focusTrapFactory=E,this._config=a,this._interactivityChecker=i,this._ngZone=t,this._overlayRef=n,this._focusMonitor=o,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=s=>{this._portalOutlet.hasAttached();const l=this._portalOutlet.attachDomPortal(s);return this._contentAttached(),l},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=h}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(_){this._portalOutlet.hasAttached();const E=this._portalOutlet.attachComponentPortal(_);return this._contentAttached(),E}attachTemplatePortal(_){this._portalOutlet.hasAttached();const E=this._portalOutlet.attachTemplatePortal(_);return this._contentAttached(),E}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(_,E){this._interactivityChecker.isFocusable(_)||(_.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const h=()=>{_.removeEventListener("blur",h),_.removeEventListener("mousedown",h),_.removeAttribute("tabindex")};_.addEventListener("blur",h),_.addEventListener("mousedown",h)})),_.focus(E)}_focusByCssSelector(_,E){let h=this._elementRef.nativeElement.querySelector(_);h&&this._forceFocus(h,E)}_trapFocus(){const _=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||_.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(E=>{E||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const _=this._config.restoreFocus;let E=null;if("string"==typeof _?E=this._document.querySelector(_):"boolean"==typeof _?E=_?this._elementFocusedBeforeDialogWasOpened:null:_&&(E=_),this._config.restoreFocus&&E&&"function"==typeof E.focus){const h=(0,C.ht)(),a=this._elementRef.nativeElement;(!h||h===this._document.body||h===a||a.contains(h))&&(this._focusMonitor?(this._focusMonitor.focusVia(E,this._closeInteractionType),this._closeInteractionType=null):E.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const _=this._elementRef.nativeElement,E=(0,C.ht)();return _===E||_.contains(E)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,C.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return r.\u0275fac=function(_){return new(_||r)(b.Y36(b.SBq),b.Y36(e.qV),b.Y36(m.K0,8),b.Y36(q),b.Y36(e.ic),b.Y36(b.R0b),b.Y36(A.Iu),b.Y36(e.tE))},r.\u0275cmp=b.Xpm({type:r,selectors:[["cdk-dialog-container"]],viewQuery:function(_,E){if(1&_&&b.Gf(M.Pl,7),2&_){let h;b.iGM(h=b.CRH())&&(E._portalOutlet=h.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(_,E){2&_&&b.uIk("id",E._config.id||null)("role",E._config.role)("aria-modal",E._config.ariaModal)("aria-labelledby",E._config.ariaLabel?null:E._ariaLabelledBy)("aria-label",E._config.ariaLabel)("aria-describedby",E._config.ariaDescribedBy||null)},features:[b.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(_,E){1&_&&b.YNc(0,O,0,0,"ng-template",0)},dependencies:[M.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),r})();class ie{constructor(u,_){this.overlayRef=u,this.config=_,this.closed=new v.x,this.disableClose=_.disableClose,this.backdropClick=u.backdropClick(),this.keydownEvents=u.keydownEvents(),this.outsidePointerEvents=u.outsidePointerEvents(),this.id=_.id,this.keydownEvents.subscribe(E=>{E.keyCode===D.hY&&!this.disableClose&&!(0,D.Vb)(E)&&(E.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(u,_){if(this.containerInstance){const E=this.closed;this.containerInstance._closeInteractionType=_?.focusOrigin||"program",this.overlayRef.dispose(),E.next(u),E.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(u="",_=""){return this.overlayRef.updateSize({width:u,height:_}),this}addPanelClass(u){return this.overlayRef.addPanelClass(u),this}removePanelClass(u){return this.overlayRef.removePanelClass(u),this}}const Te=new b.OlP("DialogScrollStrategy"),pe=new b.OlP("DialogData"),Le=new b.OlP("DefaultDialogConfig"),W={provide:Te,deps:[A.aV],useFactory:function T(r){return()=>r.scrollStrategies.block()}};let F=0,V=(()=>{class r{constructor(_,E,h,a,i,t){this._overlay=_,this._injector=E,this._defaultOptions=h,this._parentDialog=a,this._overlayContainer=i,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new v.x,this._afterOpenedAtThisLevel=new v.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,R.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=t}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(_,E){(E={...this._defaultOptions||new q,...E}).id=E.id||"cdk-dialog-"+F++,E.id&&this.getDialogById(E.id);const a=this._getOverlayConfig(E),i=this._overlay.create(a),t=new ie(i,E),n=this._attachContainer(i,t,E);return t.containerInstance=n,this._attachDialogContent(_,t,n,E),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(t),t.closed.subscribe(()=>this._removeOpenDialog(t,!0)),this.afterOpened.next(t),t}closeAll(){te(this.openDialogs,_=>_.close())}getDialogById(_){return this.openDialogs.find(E=>E.id===_)}ngOnDestroy(){te(this._openDialogsAtThisLevel,_=>{!1===_.config.closeOnDestroy&&this._removeOpenDialog(_,!1)}),te(this._openDialogsAtThisLevel,_=>_.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(_){const E=new A.X_({positionStrategy:_.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:_.scrollStrategy||this._scrollStrategy(),panelClass:_.panelClass,hasBackdrop:_.hasBackdrop,direction:_.direction,minWidth:_.minWidth,minHeight:_.minHeight,maxWidth:_.maxWidth,maxHeight:_.maxHeight,width:_.width,height:_.height,disposeOnNavigation:_.closeOnNavigation});return _.backdropClass&&(E.backdropClass=_.backdropClass),E}_attachContainer(_,E,h){var a,i;const t=null!==(a=h.injector)&&void 0!==a?a:null===(i=h.viewContainerRef)||void 0===i?void 0:i.injector,n=[{provide:q,useValue:h},{provide:ie,useValue:E},{provide:A.Iu,useValue:_}];let o;h.container?"function"==typeof h.container?o=h.container:(o=h.container.type,n.push(...h.container.providers(h))):o=z;const s=new M.C5(o,h.viewContainerRef,b.zs3.create({parent:t||this._injector,providers:n}),h.componentFactoryResolver);return _.attach(s).instance}_attachDialogContent(_,E,h,a){const i=this._createInjector(a,E,h);if(_ instanceof b.Rgc){let t={$implicit:a.data,dialogRef:E};a.templateContext&&(t={...t,..."function"==typeof a.templateContext?a.templateContext():a.templateContext}),h.attachTemplatePortal(new M.UE(_,null,t,i))}else{const t=h.attachComponentPortal(new M.C5(_,a.viewContainerRef,i,a.componentFactoryResolver));E.componentInstance=t.instance}}_createInjector(_,E,h){const a=_&&_.viewContainerRef&&_.viewContainerRef.injector,i=[{provide:pe,useValue:_.data},{provide:ie,useValue:E}];return _.providers&&("function"==typeof _.providers?i.push(..._.providers(E,_,h)):i.push(..._.providers)),_.direction&&(!a||!a.get(w.Is,null,b.XFs.Optional))&&i.push({provide:w.Is,useValue:{value:_.direction,change:(0,B.of)()}}),b.zs3.create({parent:_.injector||a||this._injector,providers:i})}_removeOpenDialog(_,E){const h=this.openDialogs.indexOf(_);h>-1&&(this.openDialogs.splice(h,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,i)=>{a?i.setAttribute("aria-hidden",a):i.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),E&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const _=this._overlayContainer.getContainerElement();if(_.parentElement){const E=_.parentElement.children;for(let h=E.length-1;h>-1;h--){const a=E[h];a!==_&&"SCRIPT"!==a.nodeName&&"STYLE"!==a.nodeName&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const _=this._parentDialog;return _?_._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return r.\u0275fac=function(_){return new(_||r)(b.LFG(A.aV),b.LFG(b.zs3),b.LFG(Le,8),b.LFG(r,12),b.LFG(A.Xj),b.LFG(Te))},r.\u0275prov=b.Yz7({token:r,factory:r.\u0275fac}),r})();function te(r,u){let _=r.length;for(;_--;)u(r[_])}let Q=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275mod=b.oAB({type:r}),r.\u0275inj=b.cJS({providers:[V,W],imports:[A.U8,M.eL,e.rt,M.eL]}),r})();var Ee=p(3238),ge=p(56451),ve=p(39300),De=p(95698),he=p(37340);function Ye(r,u){}const Be={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},se={dialogContainer:(0,he.X$)("dialogContainer",[(0,he.SB)("void, exit",(0,he.oB)({opacity:0,transform:"scale(0.7)"})),(0,he.SB)("enter",(0,he.oB)({transform:"none"})),(0,he.eR)("* => enter",(0,he.ru)([(0,he.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,he.oB)({transform:"none",opacity:1})),(0,he.IO)("@*",(0,he.pV)(),{optional:!0})]),Be),(0,he.eR)("* => void, * => exit",(0,he.ru)([(0,he.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,he.oB)({opacity:0})),(0,he.IO)("@*",(0,he.pV)(),{optional:!0})]),Be)])};class le{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Be.params.enterAnimationDuration,this.exitAnimationDuration=Be.params.exitAnimationDuration}}let k=(()=>{class r extends z{constructor(_,E,h,a,i,t,n,o){super(_,E,h,a,i,t,n,o),this._animationStateChanged=new b.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(_){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:_})}}return r.\u0275fac=function(_){return new(_||r)(b.Y36(b.SBq),b.Y36(e.qV),b.Y36(m.K0,8),b.Y36(le),b.Y36(e.ic),b.Y36(b.R0b),b.Y36(A.Iu),b.Y36(e.tE))},r.\u0275cmp=b.Xpm({type:r,selectors:[["ng-component"]],features:[b.qOj],decls:0,vars:0,template:function(_,E){},encapsulation:2}),r})(),N=(()=>{class r extends k{constructor(_,E,h,a,i,t,n,o,s){super(_,E,h,a,i,t,n,s),this._changeDetectorRef=o,this._state="enter"}_onAnimationDone({toState:_,totalTime:E}){"enter"===_?this._openAnimationDone(E):"exit"===_&&this._animationStateChanged.next({state:"closed",totalTime:E})}_onAnimationStart({toState:_,totalTime:E}){"enter"===_?this._animationStateChanged.next({state:"opening",totalTime:E}):("exit"===_||"void"===_)&&this._animationStateChanged.next({state:"closing",totalTime:E})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Be.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Be.params.exitAnimationDuration}}}}return r.\u0275fac=function(_){return new(_||r)(b.Y36(b.SBq),b.Y36(e.qV),b.Y36(m.K0,8),b.Y36(le),b.Y36(e.ic),b.Y36(b.R0b),b.Y36(A.Iu),b.Y36(b.sBO),b.Y36(e.tE))},r.\u0275cmp=b.Xpm({type:r,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(_,E){1&_&&b.WFA("@dialogContainer.start",function(a){return E._onAnimationStart(a)})("@dialogContainer.done",function(a){return E._onAnimationDone(a)}),2&_&&(b.Ikx("id",E._config.id),b.uIk("aria-modal",E._config.ariaModal)("role",E._config.role)("aria-labelledby",E._config.ariaLabel?null:E._ariaLabelledBy)("aria-label",E._config.ariaLabel)("aria-describedby",E._config.ariaDescribedBy||null),b.d8E("@dialogContainer",E._getAnimationState()))},features:[b.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(_,E){1&_&&b.YNc(0,Ye,0,0,"ng-template",0)},dependencies:[M.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[se.dialogContainer]}}),r})();class be{constructor(u,_,E){this._ref=u,this._containerInstance=E,this._afterOpened=new v.x,this._beforeClosed=new v.x,this._state=0,this.disableClose=_.disableClose,this.id=u.id,E._animationStateChanged.pipe((0,ve.h)(h=>"opened"===h.state),(0,De.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),E._animationStateChanged.pipe((0,ve.h)(h=>"closed"===h.state),(0,De.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),u.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,ge.T)(this.backdropClick(),this.keydownEvents().pipe((0,ve.h)(h=>h.keyCode===D.hY&&!this.disableClose&&!(0,D.Vb)(h)))).subscribe(h=>{this.disableClose||(h.preventDefault(),function Z(r,u,_){r._closeInteractionType=u,r.close(_)}(this,"keydown"===h.type?"keyboard":"mouse"))})}close(u){this._result=u,this._containerInstance._animationStateChanged.pipe((0,ve.h)(_=>"closing"===_.state),(0,De.q)(1)).subscribe(_=>{this._beforeClosed.next(u),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),_.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(u){let _=this._ref.config.positionStrategy;return u&&(u.left||u.right)?u.left?_.left(u.left):_.right(u.right):_.centerHorizontally(),u&&(u.top||u.bottom)?u.top?_.top(u.top):_.bottom(u.bottom):_.centerVertically(),this._ref.updatePosition(),this}updateSize(u="",_=""){return this._ref.updateSize(u,_),this}addPanelClass(u){return this._ref.addPanelClass(u),this}removePanelClass(u){return this._ref.removePanelClass(u),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const de=new b.OlP("MatDialogData"),xe=new b.OlP("mat-dialog-default-options"),ot=new b.OlP("mat-dialog-scroll-strategy"),tt={provide:ot,deps:[A.aV],useFactory:function ut(r){return()=>r.scrollStrategies.block()}};let vt=0,X=(()=>{class r{constructor(_,E,h,a,i,t,n,o,s,l){this._overlay=_,this._defaultOptions=h,this._parentDialog=a,this._dialogRefConstructor=n,this._dialogContainerType=o,this._dialogDataToken=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new v.x,this._afterOpenedAtThisLevel=new v.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,R.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=t,this._dialog=E.get(V)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const _=this._parentDialog;return _?_._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(_,E){let h;(E={...this._defaultOptions||new le,...E}).id=E.id||`${this._idPrefix}${vt++}`,E.scrollStrategy=E.scrollStrategy||this._scrollStrategy();const a=this._dialog.open(_,{...E,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:le,useValue:E},{provide:q,useValue:E}]},templateContext:()=>({dialogRef:h}),providers:(i,t,n)=>{var o;return h=new this._dialogRefConstructor(i,E,n),h.updatePosition(null===(o=E)||void 0===o?void 0:o.position),[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:h}]}});return h.componentInstance=a.componentInstance,this.openDialogs.push(h),this.afterOpened.next(h),h.afterClosed().subscribe(()=>{const i=this.openDialogs.indexOf(h);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||this._getAfterAllClosed().next())}),h}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(_){return this.openDialogs.find(E=>E.id===_)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(_){let E=_.length;for(;E--;)_[E].close()}}return r.\u0275fac=function(_){b.$Z()},r.\u0275prov=b.Yz7({token:r,factory:r.\u0275fac}),r})(),nt=(()=>{class r extends X{constructor(_,E,h,a,i,t,n,o){super(_,E,a,t,n,i,be,N,de,o)}}return r.\u0275fac=function(_){return new(_||r)(b.LFG(A.aV),b.LFG(b.zs3),b.LFG(m.Ye,8),b.LFG(xe,8),b.LFG(ot),b.LFG(r,12),b.LFG(A.Xj),b.LFG(b.QbO,8))},r.\u0275prov=b.Yz7({token:r,factory:r.\u0275fac}),r})(),Ae=0,_e=(()=>{class r{constructor(_,E,h){this._dialogRef=_,this._elementRef=E,this._dialog=h,this.id="mat-dialog-title-"+Ae++}ngOnInit(){this._dialogRef||(this._dialogRef=function Ce(r,u){let _=r.nativeElement.parentElement;for(;_&&!_.classList.contains("mat-dialog-container");)_=_.parentElement;return _?u.find(E=>E.id===_.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const _=this._dialogRef._containerInstance;_&&!_._ariaLabelledBy&&(_._ariaLabelledBy=this.id)})}}return r.\u0275fac=function(_){return new(_||r)(b.Y36(be,8),b.Y36(b.SBq),b.Y36(nt))},r.\u0275dir=b.lG2({type:r,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(_,E){2&_&&b.Ikx("id",E.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),r})(),Se=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275dir=b.lG2({type:r,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),r})(),Ne=(()=>{class r{constructor(){this.align="start"}}return r.\u0275fac=function(_){return new(_||r)},r.\u0275dir=b.lG2({type:r,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(_,E){2&_&&b.ekj("mat-dialog-actions-align-center","center"===E.align)("mat-dialog-actions-align-end","end"===E.align)},inputs:{align:"align"}}),r})(),fe=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275mod=b.oAB({type:r}),r.\u0275inj=b.cJS({providers:[nt,tt],imports:[Q,A.U8,M.eL,Ee.BQ,Ee.BQ]}),r})()},44850:(Xe,ue,p)=>{"use strict";p.d(ue,{d:()=>M,t:()=>m});var e=p(94650),A=p(21281),C=p(3238);let M=(()=>{class b{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(v){this._vertical=(0,A.Ig)(v)}get inset(){return this._inset}set inset(v){this._inset=(0,A.Ig)(v)}}return b.\u0275fac=function(v){return new(v||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(v,R){2&v&&(e.uIk("aria-orientation",R.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",R.vertical)("mat-divider-horizontal",!R.vertical)("mat-divider-inset",R.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(v,R){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),b})(),m=(()=>{class b{}return b.\u0275fac=function(v){return new(v||b)},b.\u0275mod=e.oAB({type:b}),b.\u0275inj=e.cJS({imports:[C.BQ,C.BQ]}),b})()},37084:(Xe,ue,p)=>{"use strict";p.d(ue,{pp:()=>tt,To:()=>vt,ib:()=>be,HS:()=>le,u4:()=>Fe,yz:()=>ot,yK:()=>ut});var e=p(94650),A=p(95017),C=p(21281),M=p(77579),m=p(50727);let b=0;const D=new e.OlP("CdkAccordion");let v=(()=>{class X{constructor(){this._stateChanges=new M.x,this._openCloseAllActions=new M.x,this.id="cdk-accordion-"+b++,this._multi=!1}get multi(){return this._multi}set multi(Ae){this._multi=(0,C.Ig)(Ae)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Ae){this._stateChanges.next(Ae)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return X.\u0275fac=function(Ae){return new(Ae||X)},X.\u0275dir=e.lG2({type:X,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:D,useExisting:X}]),e.TTD]}),X})(),R=0,B=(()=>{class X{constructor(Ae,ye,_e){this.accordion=Ae,this._changeDetectorRef=ye,this._expansionDispatcher=_e,this._openCloseAllSubscription=m.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+R++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=_e.listen((Se,Ne)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ne&&this.id!==Se&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(Ae){Ae=(0,C.Ig)(Ae),this._expanded!==Ae&&(this._expanded=Ae,this.expandedChange.emit(Ae),Ae?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Ae){this._disabled=(0,C.Ig)(Ae)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(Ae=>{this.disabled||(this.expanded=Ae)})}}return X.\u0275fac=function(Ae){return new(Ae||X)(e.Y36(D,12),e.Y36(e.sBO),e.Y36(A.A8))},X.\u0275dir=e.lG2({type:X,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:D,useValue:void 0}])]}),X})(),w=(()=>{class X{}return X.\u0275fac=function(Ae){return new(Ae||X)},X.\u0275mod=e.oAB({type:X}),X.\u0275inj=e.cJS({}),X})();var L=p(84080),O=p(36895),q=p(3238),ee=p(12687),z=p(71884),ie=p(68675),Te=p(39300),pe=p(95698),Le=p(29521),T=p(60515),W=p(56451),F=p(37340);const V=["body"];function te(X,nt){}const Q=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Ee=["mat-expansion-panel-header","*","mat-action-row"];function ge(X,nt){if(1&X&&e._UZ(0,"span",2),2&X){const Ae=e.oxw();e.Q6J("@indicatorRotate",Ae._getExpandedState())}}const ve=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],De=["mat-panel-title","mat-panel-description","*"],he=new e.OlP("MAT_ACCORDION"),Ye="225ms cubic-bezier(0.4,0.0,0.2,1)",Be={indicatorRotate:(0,F.X$)("indicatorRotate",[(0,F.SB)("collapsed, void",(0,F.oB)({transform:"rotate(0deg)"})),(0,F.SB)("expanded",(0,F.oB)({transform:"rotate(180deg)"})),(0,F.eR)("expanded <=> collapsed, void => collapsed",(0,F.jt)(Ye))]),bodyExpansion:(0,F.X$)("bodyExpansion",[(0,F.SB)("collapsed, void",(0,F.oB)({height:"0px",visibility:"hidden"})),(0,F.SB)("expanded",(0,F.oB)({height:"*",visibility:"visible"})),(0,F.eR)("expanded <=> collapsed, void => collapsed",(0,F.jt)(Ye))])},se=new e.OlP("MAT_EXPANSION_PANEL");let le=(()=>{class X{constructor(Ae,ye){this._template=Ae,this._expansionPanel=ye}}return X.\u0275fac=function(Ae){return new(Ae||X)(e.Y36(e.Rgc),e.Y36(se,8))},X.\u0275dir=e.lG2({type:X,selectors:[["ng-template","matExpansionPanelContent",""]]}),X})(),k=0;const N=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let be=(()=>{class X extends B{constructor(Ae,ye,_e,Se,Ne,Ce,fe){super(Ae,ye,_e),this._viewContainerRef=Se,this._animationMode=Ce,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new M.x,this._headerId="mat-expansion-panel-header-"+k++,this._bodyAnimationDone=new M.x,this.accordion=Ae,this._document=Ne,this._bodyAnimationDone.pipe((0,z.x)((r,u)=>r.fromState===u.fromState&&r.toState===u.toState)).subscribe(r=>{"void"!==r.fromState&&("expanded"===r.toState?this.afterExpand.emit():"collapsed"===r.toState&&this.afterCollapse.emit())}),fe&&(this.hideToggle=fe.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Ae){this._hideToggle=(0,C.Ig)(Ae)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Ae){this._togglePosition=Ae}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,ie.O)(null),(0,Te.h)(()=>this.expanded&&!this._portal),(0,pe.q)(1)).subscribe(()=>{this._portal=new L.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Ae){this._inputChanges.next(Ae)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Ae=this._document.activeElement,ye=this._body.nativeElement;return Ae===ye||ye.contains(Ae)}return!1}}return X.\u0275fac=function(Ae){return new(Ae||X)(e.Y36(he,12),e.Y36(e.sBO),e.Y36(A.A8),e.Y36(e.s_b),e.Y36(O.K0),e.Y36(e.QbO,8),e.Y36(N,8))},X.\u0275cmp=e.Xpm({type:X,selectors:[["mat-expansion-panel"]],contentQueries:function(Ae,ye,_e){if(1&Ae&&e.Suo(_e,le,5),2&Ae){let Se;e.iGM(Se=e.CRH())&&(ye._lazyContent=Se.first)}},viewQuery:function(Ae,ye){if(1&Ae&&e.Gf(V,5),2&Ae){let _e;e.iGM(_e=e.CRH())&&(ye._body=_e.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Ae,ye){2&Ae&&e.ekj("mat-expanded",ye.expanded)("_mat-animation-noopable","NoopAnimations"===ye._animationMode)("mat-expansion-panel-spacing",ye._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:he,useValue:void 0},{provide:se,useExisting:X}]),e.qOj,e.TTD],ngContentSelectors:Ee,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Ae,ye){1&Ae&&(e.F$t(Q),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Se){return ye._bodyAnimationDone.next(Se)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,te,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&Ae&&(e.xp6(1),e.Q6J("@bodyExpansion",ye._getExpandedState())("id",ye.id),e.uIk("aria-labelledby",ye._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",ye._portal))},dependencies:[L.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[Be.bodyExpansion]},changeDetection:0}),X})();class de{}const xe=(0,q.sb)(de);let ot=(()=>{class X extends xe{constructor(Ae,ye,_e,Se,Ne,Ce,fe){super(),this.panel=Ae,this._element=ye,this._focusMonitor=_e,this._changeDetectorRef=Se,this._animationMode=Ce,this._parentChangeSubscription=m.w0.EMPTY;const r=Ae.accordion?Ae.accordion._stateChanges.pipe((0,Te.h)(u=>!(!u.hideToggle&&!u.togglePosition))):T.E;this.tabIndex=parseInt(fe||"")||0,this._parentChangeSubscription=(0,W.T)(Ae.opened,Ae.closed,r,Ae._inputChanges.pipe((0,Te.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Ae.closed.pipe((0,Te.h)(()=>Ae._containsFocus())).subscribe(()=>_e.focusVia(ye,"program")),Ne&&(this.expandedHeight=Ne.expandedHeight,this.collapsedHeight=Ne.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const Ae=this._isExpanded();return Ae&&this.expandedHeight?this.expandedHeight:!Ae&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Ae){switch(Ae.keyCode){case Le.L_:case Le.K5:(0,Le.Vb)(Ae)||(Ae.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Ae))}}focus(Ae,ye){Ae?this._focusMonitor.focusVia(this._element,Ae,ye):this._element.nativeElement.focus(ye)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Ae=>{Ae&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return X.\u0275fac=function(Ae){return new(Ae||X)(e.Y36(be,1),e.Y36(e.SBq),e.Y36(ee.tE),e.Y36(e.sBO),e.Y36(N,8),e.Y36(e.QbO,8),e.$8M("tabindex"))},X.\u0275cmp=e.Xpm({type:X,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Ae,ye){1&Ae&&e.NdJ("click",function(){return ye._toggle()})("keydown",function(Se){return ye._keydown(Se)}),2&Ae&&(e.uIk("id",ye.panel._headerId)("tabindex",ye.tabIndex)("aria-controls",ye._getPanelId())("aria-expanded",ye._isExpanded())("aria-disabled",ye.panel.disabled),e.Udp("height",ye._getHeaderHeight()),e.ekj("mat-expanded",ye._isExpanded())("mat-expansion-toggle-indicator-after","after"===ye._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===ye._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===ye._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:De,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Ae,ye){1&Ae&&(e.F$t(ve),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,ge,1,1,"span",1)),2&Ae&&(e.xp6(4),e.Q6J("ngIf",ye._showToggle()))},dependencies:[O.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[Be.indicatorRotate]},changeDetection:0}),X})(),Fe=(()=>{class X{}return X.\u0275fac=function(Ae){return new(Ae||X)},X.\u0275dir=e.lG2({type:X,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),X})(),ut=(()=>{class X{}return X.\u0275fac=function(Ae){return new(Ae||X)},X.\u0275dir=e.lG2({type:X,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),X})(),tt=(()=>{class X extends v{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(Ae){this._hideToggle=(0,C.Ig)(Ae)}ngAfterContentInit(){this._headers.changes.pipe((0,ie.O)(this._headers)).subscribe(Ae=>{this._ownHeaders.reset(Ae.filter(ye=>ye.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ee.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Ae){this._keyManager.onKeydown(Ae)}_handleHeaderFocus(Ae){this._keyManager.updateActiveItem(Ae)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return X.\u0275fac=function(){let nt;return function(ye){return(nt||(nt=e.n5z(X)))(ye||X)}}(),X.\u0275dir=e.lG2({type:X,selectors:[["mat-accordion"]],contentQueries:function(Ae,ye,_e){if(1&Ae&&e.Suo(_e,ot,5),2&Ae){let Se;e.iGM(Se=e.CRH())&&(ye._headers=Se)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Ae,ye){2&Ae&&e.ekj("mat-accordion-multi",ye.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:he,useExisting:X}]),e.qOj]}),X})(),vt=(()=>{class X{}return X.\u0275fac=function(Ae){return new(Ae||X)},X.\u0275mod=e.oAB({type:X}),X.\u0275inj=e.cJS({imports:[O.ez,q.BQ,w,L.eL]}),X})()},59549:(Xe,ue,p)=>{"use strict";p.d(ue,{Eo:()=>le,G_:()=>Ne,KE:()=>Ce,R9:()=>X,TO:()=>Be,UY:()=>Fe,bx:()=>xe,hX:()=>ot,lN:()=>fe});var e=p(49643),A=p(36895),C=p(94650),M=p(3238),m=p(40445),b=p(21281),D=p(77579),v=p(56451),R=p(54968),B=p(68675),w=p(82722),L=p(95698),O=p(37340),q=p(83353);const ee=["connectionContainer"],z=["inputContainer"],ie=["label"];function Te(r,u){1&r&&(C.ynx(0),C.TgZ(1,"div",14),C._UZ(2,"div",15)(3,"div",16)(4,"div",17),C.qZA(),C.TgZ(5,"div",18),C._UZ(6,"div",15)(7,"div",16)(8,"div",17),C.qZA(),C.BQk())}function pe(r,u){if(1&r){const _=C.EpF();C.TgZ(0,"div",19),C.NdJ("cdkObserveContent",function(){C.CHM(_);const h=C.oxw();return C.KtG(h.updateOutlineGap())}),C.Hsn(1,1),C.qZA()}if(2&r){const _=C.oxw();C.Q6J("cdkObserveContentDisabled","outline"!=_.appearance)}}function Le(r,u){if(1&r&&(C.ynx(0),C.Hsn(1,2),C.TgZ(2,"span"),C._uU(3),C.qZA(),C.BQk()),2&r){const _=C.oxw(2);C.xp6(3),C.Oqu(_._control.placeholder)}}function T(r,u){1&r&&C.Hsn(0,3,["*ngSwitchCase","true"])}function W(r,u){1&r&&(C.TgZ(0,"span",23),C._uU(1," *"),C.qZA())}function F(r,u){if(1&r){const _=C.EpF();C.TgZ(0,"label",20,21),C.NdJ("cdkObserveContent",function(){C.CHM(_);const h=C.oxw();return C.KtG(h.updateOutlineGap())}),C.YNc(2,Le,4,1,"ng-container",12),C.YNc(3,T,1,0,"ng-content",12),C.YNc(4,W,2,0,"span",22),C.qZA()}if(2&r){const _=C.oxw();C.ekj("mat-empty",_._control.empty&&!_._shouldAlwaysFloat())("mat-form-field-empty",_._control.empty&&!_._shouldAlwaysFloat())("mat-accent","accent"==_.color)("mat-warn","warn"==_.color),C.Q6J("cdkObserveContentDisabled","outline"!=_.appearance)("id",_._labelId)("ngSwitch",_._hasLabel()),C.uIk("for",_._control.id)("aria-owns",_._control.id),C.xp6(2),C.Q6J("ngSwitchCase",!1),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(1),C.Q6J("ngIf",!_.hideRequiredMarker&&_._control.required&&!_._control.disabled)}}function V(r,u){1&r&&(C.TgZ(0,"div",24),C.Hsn(1,4),C.qZA())}function te(r,u){if(1&r&&(C.TgZ(0,"div",25),C._UZ(1,"span",26),C.qZA()),2&r){const _=C.oxw();C.xp6(1),C.ekj("mat-accent","accent"==_.color)("mat-warn","warn"==_.color)}}function Q(r,u){if(1&r&&(C.TgZ(0,"div"),C.Hsn(1,5),C.qZA()),2&r){const _=C.oxw();C.Q6J("@transitionMessages",_._subscriptAnimationState)}}function Ee(r,u){if(1&r&&(C.TgZ(0,"div",30),C._uU(1),C.qZA()),2&r){const _=C.oxw(2);C.Q6J("id",_._hintLabelId),C.xp6(1),C.Oqu(_.hintLabel)}}function ge(r,u){if(1&r&&(C.TgZ(0,"div",27),C.YNc(1,Ee,2,2,"div",28),C.Hsn(2,6),C._UZ(3,"div",29),C.Hsn(4,7),C.qZA()),2&r){const _=C.oxw();C.Q6J("@transitionMessages",_._subscriptAnimationState),C.xp6(1),C.Q6J("ngIf",_.hintLabel)}}const ve=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],De=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let he=0;const Ye=new C.OlP("MatError");let Be=(()=>{class r{constructor(_,E){this.id="mat-error-"+he++,_||E.nativeElement.setAttribute("aria-live","polite")}}return r.\u0275fac=function(_){return new(_||r)(C.$8M("aria-live"),C.Y36(C.SBq))},r.\u0275dir=C.lG2({type:r,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(_,E){2&_&&C.uIk("id",E.id)},inputs:{id:"id"},features:[C._Bn([{provide:Ye,useExisting:r}])]}),r})();const se={transitionMessages:(0,O.X$)("transitionMessages",[(0,O.SB)("enter",(0,O.oB)({opacity:1,transform:"translateY(0%)"})),(0,O.eR)("void => enter",[(0,O.oB)({opacity:0,transform:"translateY(-5px)"}),(0,O.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let le=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275dir=C.lG2({type:r}),r})(),Z=0;const de=new C.OlP("MatHint");let xe=(()=>{class r{constructor(){this.align="start",this.id="mat-hint-"+Z++}}return r.\u0275fac=function(_){return new(_||r)},r.\u0275dir=C.lG2({type:r,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(_,E){2&_&&(C.uIk("id",E.id)("align",null),C.ekj("mat-form-field-hint-end","end"===E.align))},inputs:{align:"align",id:"id"},features:[C._Bn([{provide:de,useExisting:r}])]}),r})(),ot=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275dir=C.lG2({type:r,selectors:[["mat-label"]]}),r})(),Fe=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275dir=C.lG2({type:r,selectors:[["mat-placeholder"]]}),r})();const ut=new C.OlP("MatPrefix"),vt=new C.OlP("MatSuffix");let X=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275dir=C.lG2({type:r,selectors:[["","matSuffix",""]],features:[C._Bn([{provide:vt,useExisting:r}])]}),r})(),nt=0;const _e=(0,M.pj)(class{constructor(r){this._elementRef=r}},"primary"),Se=new C.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ne=new C.OlP("MatFormField");let Ce=(()=>{class r extends _e{constructor(_,E,h,a,i,t,n){super(_),this._changeDetectorRef=E,this._dir=h,this._defaults=a,this._platform=i,this._ngZone=t,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new D.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+nt++,this._labelId="mat-form-field-label-"+nt++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==n,this.appearance=a?.appearance||"legacy",a&&(this._hideRequiredMarker=Boolean(a.hideRequiredMarker),a.color&&(this.color=this.defaultColor=a.color))}get appearance(){return this._appearance}set appearance(_){var E;const h=this._appearance;this._appearance=_||(null===(E=this._defaults)||void 0===E?void 0:E.appearance)||"legacy","outline"===this._appearance&&h!==_&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(_){this._hideRequiredMarker=(0,b.Ig)(_)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(_){this._hintLabel=_,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(_){_!==this._floatLabel&&(this._floatLabel=_||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(_){this._explicitFormFieldControl=_}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const _=this._control;_.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${_.controlType}`),_.stateChanges.pipe((0,B.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),_.ngControl&&_.ngControl.valueChanges&&_.ngControl.valueChanges.pipe((0,w.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,v.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,B.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,B.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(_){const E=this._control?this._control.ngControl:null;return E&&E[_]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,R.R)(this._label.nativeElement,"transitionend").pipe((0,L.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let _=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&_.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const E=this._hintChildren?this._hintChildren.find(a=>"start"===a.align):null,h=this._hintChildren?this._hintChildren.find(a=>"end"===a.align):null;E?_.push(E.id):this._hintLabel&&_.push(this._hintLabelId),h&&_.push(h.id)}else this._errorChildren&&_.push(...this._errorChildren.map(E=>E.id));this._control.setDescribedByIds(_)}}_validateControlChild(){}updateOutlineGap(){const _=this._label?this._label.nativeElement:null,E=this._connectionContainerRef.nativeElement,h=".mat-form-field-outline-start",a=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!_||!_.children.length||!_.textContent.trim()){const s=E.querySelectorAll(`${h}, ${a}`);for(let l=0;l0?.75*S+10:0}for(let s=0;s{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275mod=C.oAB({type:r}),r.\u0275inj=C.cJS({imports:[A.ez,M.BQ,e.Q8,M.BQ]}),r})()},97392:(Xe,ue,p)=>{"use strict";p.d(ue,{Hw:()=>Z,Ps:()=>de,jv:()=>Q});var e=p(94650),A=p(3238),C=p(21281),M=p(36895),m=p(39646),b=p(62843),D=p(4128),v=p(50727),R=p(18505),B=p(54004),w=p(70262),L=p(28746),O=p(13099),q=p(95698),ee=p(80529),z=p(11481);const ie=["*"];let Te;function Le(xe){var ot;return(null===(ot=function pe(){if(void 0===Te&&(Te=null,typeof window<"u")){const xe=window;void 0!==xe.trustedTypes&&(Te=xe.trustedTypes.createPolicy("angular#components",{createHTML:ot=>ot}))}return Te}())||void 0===ot?void 0:ot.createHTML(xe))||xe}function T(xe){return Error(`Unable to find icon with the name "${xe}"`)}function F(xe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${xe}".`)}function V(xe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${xe}".`)}class te{constructor(ot,Fe,ut){this.url=ot,this.svgText=Fe,this.options=ut}}let Q=(()=>{class xe{constructor(Fe,ut,tt,vt){this._httpClient=Fe,this._sanitizer=ut,this._errorHandler=vt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=tt}addSvgIcon(Fe,ut,tt){return this.addSvgIconInNamespace("",Fe,ut,tt)}addSvgIconLiteral(Fe,ut,tt){return this.addSvgIconLiteralInNamespace("",Fe,ut,tt)}addSvgIconInNamespace(Fe,ut,tt,vt){return this._addSvgIconConfig(Fe,ut,new te(tt,null,vt))}addSvgIconResolver(Fe){return this._resolvers.push(Fe),this}addSvgIconLiteralInNamespace(Fe,ut,tt,vt){const X=this._sanitizer.sanitize(e.q3G.HTML,tt);if(!X)throw V(tt);const nt=Le(X);return this._addSvgIconConfig(Fe,ut,new te("",nt,vt))}addSvgIconSet(Fe,ut){return this.addSvgIconSetInNamespace("",Fe,ut)}addSvgIconSetLiteral(Fe,ut){return this.addSvgIconSetLiteralInNamespace("",Fe,ut)}addSvgIconSetInNamespace(Fe,ut,tt){return this._addSvgIconSetConfig(Fe,new te(ut,null,tt))}addSvgIconSetLiteralInNamespace(Fe,ut,tt){const vt=this._sanitizer.sanitize(e.q3G.HTML,ut);if(!vt)throw V(ut);const X=Le(vt);return this._addSvgIconSetConfig(Fe,new te("",X,tt))}registerFontClassAlias(Fe,ut=Fe){return this._fontCssClassesByAlias.set(Fe,ut),this}classNameForFontAlias(Fe){return this._fontCssClassesByAlias.get(Fe)||Fe}setDefaultFontSetClass(...Fe){return this._defaultFontSetClass=Fe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Fe){const ut=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Fe);if(!ut)throw F(Fe);const tt=this._cachedIconsByUrl.get(ut);return tt?(0,m.of)(ve(tt)):this._loadSvgIconFromConfig(new te(Fe,null)).pipe((0,R.b)(vt=>this._cachedIconsByUrl.set(ut,vt)),(0,B.U)(vt=>ve(vt)))}getNamedSvgIcon(Fe,ut=""){const tt=De(ut,Fe);let vt=this._svgIconConfigs.get(tt);if(vt)return this._getSvgFromConfig(vt);if(vt=this._getIconConfigFromResolvers(ut,Fe),vt)return this._svgIconConfigs.set(tt,vt),this._getSvgFromConfig(vt);const X=this._iconSetConfigs.get(ut);return X?this._getSvgFromIconSetConfigs(Fe,X):(0,b._)(T(tt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Fe){return Fe.svgText?(0,m.of)(ve(this._svgElementFromConfig(Fe))):this._loadSvgIconFromConfig(Fe).pipe((0,B.U)(ut=>ve(ut)))}_getSvgFromIconSetConfigs(Fe,ut){const tt=this._extractIconWithNameFromAnySet(Fe,ut);if(tt)return(0,m.of)(tt);const vt=ut.filter(X=>!X.svgText).map(X=>this._loadSvgIconSetFromConfig(X).pipe((0,w.K)(nt=>{const ye=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,X.url)} failed: ${nt.message}`;return this._errorHandler.handleError(new Error(ye)),(0,m.of)(null)})));return(0,D.D)(vt).pipe((0,B.U)(()=>{const X=this._extractIconWithNameFromAnySet(Fe,ut);if(!X)throw T(Fe);return X}))}_extractIconWithNameFromAnySet(Fe,ut){for(let tt=ut.length-1;tt>=0;tt--){const vt=ut[tt];if(vt.svgText&&vt.svgText.toString().indexOf(Fe)>-1){const X=this._svgElementFromConfig(vt),nt=this._extractSvgIconFromSet(X,Fe,vt.options);if(nt)return nt}}return null}_loadSvgIconFromConfig(Fe){return this._fetchIcon(Fe).pipe((0,R.b)(ut=>Fe.svgText=ut),(0,B.U)(()=>this._svgElementFromConfig(Fe)))}_loadSvgIconSetFromConfig(Fe){return Fe.svgText?(0,m.of)(null):this._fetchIcon(Fe).pipe((0,R.b)(ut=>Fe.svgText=ut))}_extractSvgIconFromSet(Fe,ut,tt){const vt=Fe.querySelector(`[id="${ut}"]`);if(!vt)return null;const X=vt.cloneNode(!0);if(X.removeAttribute("id"),"svg"===X.nodeName.toLowerCase())return this._setSvgAttributes(X,tt);if("symbol"===X.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(X),tt);const nt=this._svgElementFromString(Le(""));return nt.appendChild(X),this._setSvgAttributes(nt,tt)}_svgElementFromString(Fe){const ut=this._document.createElement("DIV");ut.innerHTML=Fe;const tt=ut.querySelector("svg");if(!tt)throw Error(" tag not found");return tt}_toSvgElement(Fe){const ut=this._svgElementFromString(Le("")),tt=Fe.attributes;for(let vt=0;vtLe(_e)),(0,L.x)(()=>this._inProgressUrlFetches.delete(nt)),(0,O.B)());return this._inProgressUrlFetches.set(nt,ye),ye}_addSvgIconConfig(Fe,ut,tt){return this._svgIconConfigs.set(De(Fe,ut),tt),this}_addSvgIconSetConfig(Fe,ut){const tt=this._iconSetConfigs.get(Fe);return tt?tt.push(ut):this._iconSetConfigs.set(Fe,[ut]),this}_svgElementFromConfig(Fe){if(!Fe.svgElement){const ut=this._svgElementFromString(Fe.svgText);this._setSvgAttributes(ut,Fe.options),Fe.svgElement=ut}return Fe.svgElement}_getIconConfigFromResolvers(Fe,ut){for(let tt=0;ttot?ot.pathname+ot.search:""}}}),k=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],N=k.map(xe=>`[${xe}]`).join(", "),be=/^url\(['"]?#(.*?)['"]?\)$/;let Z=(()=>{class xe extends Ye{constructor(Fe,ut,tt,vt,X,nt){super(Fe),this._iconRegistry=ut,this._location=vt,this._errorHandler=X,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=v.w0.EMPTY,nt&&(nt.color&&(this.color=this.defaultColor=nt.color),nt.fontSet&&(this.fontSet=nt.fontSet)),tt||Fe.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Fe){this._inline=(0,C.Ig)(Fe)}get svgIcon(){return this._svgIcon}set svgIcon(Fe){Fe!==this._svgIcon&&(Fe?this._updateSvgIcon(Fe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Fe)}get fontSet(){return this._fontSet}set fontSet(Fe){const ut=this._cleanupFontValue(Fe);ut!==this._fontSet&&(this._fontSet=ut,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Fe){const ut=this._cleanupFontValue(Fe);ut!==this._fontIcon&&(this._fontIcon=ut,this._updateFontIconClasses())}_splitIconName(Fe){if(!Fe)return["",""];const ut=Fe.split(":");switch(ut.length){case 1:return["",ut[0]];case 2:return ut;default:throw Error(`Invalid icon name: "${Fe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Fe=this._elementsWithExternalReferences;if(Fe&&Fe.size){const ut=this._location.getPathname();ut!==this._previousPath&&(this._previousPath=ut,this._prependPathToReferences(ut))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Fe){this._clearSvgElement();const ut=this._location.getPathname();this._previousPath=ut,this._cacheChildrenWithExternalReferences(Fe),this._prependPathToReferences(ut),this._elementRef.nativeElement.appendChild(Fe)}_clearSvgElement(){const Fe=this._elementRef.nativeElement;let ut=Fe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();ut--;){const tt=Fe.childNodes[ut];(1!==tt.nodeType||"svg"===tt.nodeName.toLowerCase())&&tt.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Fe=this._elementRef.nativeElement,ut=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(tt=>tt.length>0);this._previousFontSetClass.forEach(tt=>Fe.classList.remove(tt)),ut.forEach(tt=>Fe.classList.add(tt)),this._previousFontSetClass=ut,this.fontIcon!==this._previousFontIconClass&&!ut.includes("mat-ligature-font")&&(this._previousFontIconClass&&Fe.classList.remove(this._previousFontIconClass),this.fontIcon&&Fe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Fe){return"string"==typeof Fe?Fe.trim().split(" ")[0]:Fe}_prependPathToReferences(Fe){const ut=this._elementsWithExternalReferences;ut&&ut.forEach((tt,vt)=>{tt.forEach(X=>{vt.setAttribute(X.name,`url('${Fe}#${X.value}')`)})})}_cacheChildrenWithExternalReferences(Fe){const ut=Fe.querySelectorAll(N),tt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let vt=0;vt{const nt=ut[vt],Ae=nt.getAttribute(X),ye=Ae?Ae.match(be):null;if(ye){let _e=tt.get(nt);_e||(_e=[],tt.set(nt,_e)),_e.push({name:X,value:ye[1]})}})}_updateSvgIcon(Fe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Fe){const[ut,tt]=this._splitIconName(Fe);ut&&(this._svgNamespace=ut),tt&&(this._svgName=tt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(tt,ut).pipe((0,q.q)(1)).subscribe(vt=>this._setSvgElement(vt),vt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${ut}:${tt}! ${vt.message}`))})}}}return xe.\u0275fac=function(Fe){return new(Fe||xe)(e.Y36(e.SBq),e.Y36(Q),e.$8M("aria-hidden"),e.Y36(se),e.Y36(e.qLn),e.Y36(Be,8))},xe.\u0275cmp=e.Xpm({type:xe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Fe,ut){2&Fe&&(e.uIk("data-mat-icon-type",ut._usingFontIcon()?"font":"svg")("data-mat-icon-name",ut._svgName||ut.fontIcon)("data-mat-icon-namespace",ut._svgNamespace||ut.fontSet),e.ekj("mat-icon-inline",ut.inline)("mat-icon-no-color","primary"!==ut.color&&"accent"!==ut.color&&"warn"!==ut.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:ie,decls:1,vars:0,template:function(Fe,ut){1&Fe&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),xe})(),de=(()=>{class xe{}return xe.\u0275fac=function(Fe){return new(Fe||xe)},xe.\u0275mod=e.oAB({type:xe}),xe.\u0275inj=e.cJS({imports:[A.BQ,A.BQ]}),xe})()},284:(Xe,ue,p)=>{"use strict";p.d(ue,{Jk:()=>B,Nt:()=>q,c:()=>ee});var e=p(21281),A=p(83353),C=p(39349),M=p(94650),m=p(24006),b=p(3238),D=p(59549),v=p(77579);const B=new M.OlP("MAT_INPUT_VALUE_ACCESSOR"),w=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let L=0;const O=(0,b.FD)(class{constructor(z,ie,Te,pe){this._defaultErrorStateMatcher=z,this._parentForm=ie,this._parentFormGroup=Te,this.ngControl=pe,this.stateChanges=new v.x}});let q=(()=>{class z extends O{constructor(Te,pe,Le,T,W,F,V,te,Q,Ee){super(F,T,W,Le),this._elementRef=Te,this._platform=pe,this._autofillMonitor=te,this._formField=Ee,this._uid="mat-input-"+L++,this.focused=!1,this.stateChanges=new v.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(De=>(0,A.qK)().has(De)),this._iOSKeyupListener=De=>{const he=De.target;!he.value&&0===he.selectionStart&&0===he.selectionEnd&&(he.setSelectionRange(1,1),he.setSelectionRange(0,0))};const ge=this._elementRef.nativeElement,ve=ge.nodeName.toLowerCase();this._inputValueAccessor=V||ge,this._previousNativeValue=this.value,this.id=this.id,pe.IOS&&Q.runOutsideAngular(()=>{Te.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ve,this._isTextarea="textarea"===ve,this._isInFormField=!!Ee,this._isNativeSelect&&(this.controlType=ge.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Te){this._disabled=(0,e.Ig)(Te),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(Te){this._id=Te||this._uid}get required(){var Te,pe,Le,T;return null!==(Te=null!==(pe=this._required)&&void 0!==pe?pe:null===(Le=this.ngControl)||void 0===Le||null===(T=Le.control)||void 0===T?void 0:T.hasValidator(m.kI.required))&&void 0!==Te&&Te}set required(Te){this._required=(0,e.Ig)(Te)}get type(){return this._type}set type(Te){this._type=Te||"text",this._validateType(),!this._isTextarea&&(0,A.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(Te){Te!==this.value&&(this._inputValueAccessor.value=Te,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Te){this._readonly=(0,e.Ig)(Te)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(Te=>{this.autofilled=Te.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(Te){this._elementRef.nativeElement.focus(Te)}_focusChanged(Te){Te!==this.focused&&(this.focused=Te,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var Te;const pe=this._formField,Le=!pe||"legacy"!==pe.appearance||null!==(Te=pe._hasLabel)&&void 0!==Te&&Te.call(pe)?this.placeholder:null;if(Le!==this._previousPlaceholder){const T=this._elementRef.nativeElement;this._previousPlaceholder=Le,Le?T.setAttribute("placeholder",Le):T.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const Te=this._elementRef.nativeElement.value;this._previousNativeValue!==Te&&(this._previousNativeValue=Te,this.stateChanges.next())}_validateType(){w.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let Te=this._elementRef.nativeElement.validity;return Te&&Te.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const Te=this._elementRef.nativeElement,pe=Te.options[0];return this.focused||Te.multiple||!this.empty||!!(Te.selectedIndex>-1&&pe&&pe.label)}return this.focused||!this.empty}setDescribedByIds(Te){Te.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Te.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Te=this._elementRef.nativeElement;return this._isNativeSelect&&(Te.multiple||Te.size>1)}}return z.\u0275fac=function(Te){return new(Te||z)(M.Y36(M.SBq),M.Y36(A.t4),M.Y36(m.a5,10),M.Y36(m.F,8),M.Y36(m.sg,8),M.Y36(b.rD),M.Y36(B,10),M.Y36(C.Lq),M.Y36(M.R0b),M.Y36(D.G_,8))},z.\u0275dir=M.lG2({type:z,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(Te,pe){1&Te&&M.NdJ("focus",function(){return pe._focusChanged(!0)})("blur",function(){return pe._focusChanged(!1)})("input",function(){return pe._onInput()}),2&Te&&(M.Ikx("disabled",pe.disabled)("required",pe.required),M.uIk("id",pe.id)("data-placeholder",pe.placeholder)("name",pe.name||null)("readonly",pe.readonly&&!pe._isNativeSelect||null)("aria-invalid",pe.empty&&pe.required?null:pe.errorState)("aria-required",pe.required),M.ekj("mat-input-server",pe._isServer)("mat-native-select-inline",pe._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[M._Bn([{provide:D.Eo,useExisting:z}]),M.qOj,M.TTD]}),z})(),ee=(()=>{class z{}return z.\u0275fac=function(Te){return new(Te||z)},z.\u0275mod=M.oAB({type:z}),z.\u0275inj=M.cJS({providers:[b.rD],imports:[C.Ky,D.lN,b.BQ,C.Ky,D.lN]}),z})()},96338:(Xe,ue,p)=>{"use strict";p.d(ue,{Tg:()=>De,i$:()=>Q,ie:()=>N});var e=p(36895),A=p(94650),C=p(3238),M=p(21281),m=p(77579),b=p(82722),L=(p(68675),p(12687),p(95017),p(29521),p(24006),p(44850));const O=["*"],ee=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],z=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],T=(0,C.Id)((0,C.Kr)(class{})),W=(0,C.Kr)(class{}),F=new A.OlP("MatList"),V=new A.OlP("MatNavList");let Q=(()=>{class be extends T{constructor(de){super(),this._elementRef=de,this._stateChanges=new m.x,"action-list"===this._getListType()&&de.nativeElement.classList.add("mat-action-list")}_getListType(){const de=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===de?"list":"mat-action-list"===de?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return be.\u0275fac=function(de){return new(de||be)(A.Y36(A.SBq))},be.\u0275cmp=A.Xpm({type:be,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[A._Bn([{provide:F,useExisting:be}]),A.qOj,A.TTD],ngContentSelectors:O,decls:1,vars:0,template:function(de,xe){1&de&&(A.F$t(),A.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),be})(),Ee=(()=>{class be{}return be.\u0275fac=function(de){return new(de||be)},be.\u0275dir=A.lG2({type:be,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),be})(),ge=(()=>{class be{}return be.\u0275fac=function(de){return new(de||be)},be.\u0275dir=A.lG2({type:be,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),be})(),De=(()=>{class be extends W{constructor(de,xe,ot,Fe){super(),this._element=de,this._isInteractiveList=!1,this._destroyed=new m.x,this._disabled=!1,this._isInteractiveList=!!(ot||Fe&&"action-list"===Fe._getListType()),this._list=ot||Fe;const ut=this._getHostElement();"button"===ut.nodeName.toLowerCase()&&!ut.hasAttribute("type")&&ut.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,b.R)(this._destroyed)).subscribe(()=>{xe.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(de){this._disabled=(0,M.Ig)(de)}ngAfterContentInit(){(0,C.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return be.\u0275fac=function(de){return new(de||be)(A.Y36(A.SBq),A.Y36(A.sBO),A.Y36(V,8),A.Y36(F,8))},be.\u0275cmp=A.Xpm({type:be,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(de,xe,ot){if(1&de&&(A.Suo(ot,Ee,5),A.Suo(ot,ge,5),A.Suo(ot,C.X2,5)),2&de){let Fe;A.iGM(Fe=A.CRH())&&(xe._avatar=Fe.first),A.iGM(Fe=A.CRH())&&(xe._icon=Fe.first),A.iGM(Fe=A.CRH())&&(xe._lines=Fe)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(de,xe){2&de&&A.ekj("mat-list-item-disabled",xe.disabled)("mat-list-item-with-avatar",xe._avatar||xe._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[A.qOj],ngContentSelectors:z,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(de,xe){1&de&&(A.F$t(ee),A.TgZ(0,"span",0),A._UZ(1,"span",1),A.Hsn(2),A.TgZ(3,"span",2),A.Hsn(4,1),A.qZA(),A.Hsn(5,2),A.qZA()),2&de&&(A.xp6(1),A.Q6J("matRippleTrigger",xe._getHostElement())("matRippleDisabled",xe._isRippleDisabled()))},dependencies:[C.wG],encapsulation:2,changeDetection:0}),be})(),N=(()=>{class be{}return be.\u0275fac=function(de){return new(de||be)},be.\u0275mod=A.oAB({type:be}),be.\u0275inj=A.cJS({imports:[C.uc,C.si,C.BQ,C.us,e.ez,C.uc,C.BQ,C.us,L.t]}),be})()},28255:(Xe,ue,p)=>{"use strict";p.d(ue,{OP:()=>Z,Tx:()=>Se,VK:()=>ut,p6:()=>_e});var e=p(12687),A=p(21281),C=p(29521),M=p(94650),m=p(77579),b=p(50727),D=p(56451),v=p(39646),R=p(53101),B=p(68675),w=p(63900),L=p(95698),O=p(82722),q=p(39300),ee=p(91005),z=p(37340),ie=p(84080),Te=p(36895),pe=p(3238),Le=p(40445),T=p(98184),W=p(83353),F=p(67376);const V=["mat-menu-item",""];function te(Ne,Ce){1&Ne&&(M.O4$(),M.TgZ(0,"svg",2),M._UZ(1,"polygon",3),M.qZA())}const Q=["*"];function Ee(Ne,Ce){if(1&Ne){const fe=M.EpF();M.TgZ(0,"div",0),M.NdJ("keydown",function(u){M.CHM(fe);const _=M.oxw();return M.KtG(_._handleKeydown(u))})("click",function(){M.CHM(fe);const u=M.oxw();return M.KtG(u.closed.emit("click"))})("@transformMenu.start",function(u){M.CHM(fe);const _=M.oxw();return M.KtG(_._onAnimationStart(u))})("@transformMenu.done",function(u){M.CHM(fe);const _=M.oxw();return M.KtG(_._onAnimationDone(u))}),M.TgZ(1,"div",1),M.Hsn(2),M.qZA()()}if(2&Ne){const fe=M.oxw();M.Q6J("id",fe.panelId)("ngClass",fe._classList)("@transformMenu",fe._panelAnimationState),M.uIk("aria-label",fe.ariaLabel||null)("aria-labelledby",fe.ariaLabelledby||null)("aria-describedby",fe.ariaDescribedby||null)}}const ge={transformMenu:(0,z.X$)("transformMenu",[(0,z.SB)("void",(0,z.oB)({opacity:0,transform:"scale(0.8)"})),(0,z.eR)("void => enter",(0,z.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,z.oB)({opacity:1,transform:"scale(1)"}))),(0,z.eR)("* => void",(0,z.jt)("100ms 25ms linear",(0,z.oB)({opacity:0})))]),fadeInItems:(0,z.X$)("fadeInItems",[(0,z.SB)("showing",(0,z.oB)({opacity:1})),(0,z.eR)("void => *",[(0,z.oB)({opacity:0}),(0,z.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},he=new M.OlP("MatMenuContent"),N=new M.OlP("MAT_MENU_PANEL"),be=(0,pe.Kr)((0,pe.Id)(class{}));let Z=(()=>{class Ne extends be{constructor(fe,r,u,_,E){var h;super(),this._elementRef=fe,this._document=r,this._focusMonitor=u,this._parentMenu=_,this._changeDetectorRef=E,this.role="menuitem",this._hovered=new m.x,this._focused=new m.x,this._highlighted=!1,this._triggersSubmenu=!1,null==_||null===(h=_.addItem)||void 0===h||h.call(_,this)}focus(fe,r){this._focusMonitor&&fe?this._focusMonitor.focusVia(this._getHostElement(),fe,r):this._getHostElement().focus(r),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(fe){this.disabled&&(fe.preventDefault(),fe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var fe;const r=this._elementRef.nativeElement.cloneNode(!0),u=r.querySelectorAll("mat-icon, .material-icons");for(let _=0;_{class Ne{constructor(fe,r,u,_){this._elementRef=fe,this._ngZone=r,this._defaultOptions=u,this._changeDetectorRef=_,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new M.n_E,this._tabSubscription=b.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new m.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new M.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+ot++}get xPosition(){return this._xPosition}set xPosition(fe){this._xPosition=fe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(fe){this._yPosition=fe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(fe){this._overlapTrigger=(0,A.Ig)(fe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(fe){this._hasBackdrop=(0,A.Ig)(fe)}set panelClass(fe){const r=this._previousPanelClass;r&&r.length&&r.split(" ").forEach(u=>{this._classList[u]=!1}),this._previousPanelClass=fe,fe&&fe.length&&(fe.split(" ").forEach(u=>{this._classList[u]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(fe){this.panelClass=fe}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,B.O)(this._directDescendantItems),(0,w.w)(fe=>(0,D.T)(...fe.map(r=>r._focused)))).subscribe(fe=>this._keyManager.updateActiveItem(fe)),this._directDescendantItems.changes.subscribe(fe=>{var r;const u=this._keyManager;if("enter"===this._panelAnimationState&&null!==(r=u.activeItem)&&void 0!==r&&r._hasFocus()){const _=fe.toArray(),E=Math.max(0,Math.min(_.length-1,u.activeItemIndex||0));_[E]&&!_[E].disabled?u.setActiveItem(E):u.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,B.O)(this._directDescendantItems),(0,w.w)(r=>(0,D.T)(...r.map(u=>u._hovered))))}addItem(fe){}removeItem(fe){}_handleKeydown(fe){const r=fe.keyCode,u=this._keyManager;switch(r){case C.hY:(0,C.Vb)(fe)||(fe.preventDefault(),this.closed.emit("keydown"));break;case C.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case C.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(r===C.LH||r===C.JH)&&u.setFocusOrigin("keyboard"),void u.onKeydown(fe)}fe.stopPropagation()}focusFirstItem(fe="program"){this._ngZone.onStable.pipe((0,L.q)(1)).subscribe(()=>{let r=null;if(this._directDescendantItems.length&&(r=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!r||!r.contains(document.activeElement)){const u=this._keyManager;u.setFocusOrigin(fe).setFirstItemActive(),!u.activeItem&&r&&r.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(fe){const r=Math.min(this._baseElevation+fe,24),u=`${this._elevationPrefix}${r}`,_=Object.keys(this._classList).find(E=>E.startsWith(this._elevationPrefix));(!_||_===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[u]=!0,this._previousElevation=u)}setPositionClasses(fe=this.xPosition,r=this.yPosition){var u;const _=this._classList;_["mat-menu-before"]="before"===fe,_["mat-menu-after"]="after"===fe,_["mat-menu-above"]="above"===r,_["mat-menu-below"]="below"===r,null===(u=this._changeDetectorRef)||void 0===u||u.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(fe){this._animationDone.next(fe),this._isAnimating=!1}_onAnimationStart(fe){this._isAnimating=!0,"enter"===fe.toState&&0===this._keyManager.activeItemIndex&&(fe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,B.O)(this._allItems)).subscribe(fe=>{this._directDescendantItems.reset(fe.filter(r=>r._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Ne.\u0275fac=function(fe){return new(fe||Ne)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(de),M.Y36(M.sBO))},Ne.\u0275dir=M.lG2({type:Ne,contentQueries:function(fe,r,u){if(1&fe&&(M.Suo(u,he,5),M.Suo(u,Z,5),M.Suo(u,Z,4)),2&fe){let _;M.iGM(_=M.CRH())&&(r.lazyContent=_.first),M.iGM(_=M.CRH())&&(r._allItems=_),M.iGM(_=M.CRH())&&(r.items=_)}},viewQuery:function(fe,r){if(1&fe&&M.Gf(M.Rgc,5),2&fe){let u;M.iGM(u=M.CRH())&&(r.templateRef=u.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),Ne})(),ut=(()=>{class Ne extends Fe{constructor(fe,r,u,_){super(fe,r,u,_),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return Ne.\u0275fac=function(fe){return new(fe||Ne)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(de),M.Y36(M.sBO))},Ne.\u0275cmp=M.Xpm({type:Ne,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(fe,r){2&fe&&M.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[M._Bn([{provide:N,useExisting:Ne}]),M.qOj],ngContentSelectors:Q,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(fe,r){1&fe&&(M.F$t(),M.YNc(0,Ee,3,6,"ng-template"))},dependencies:[Te.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[ge.transformMenu,ge.fadeInItems]},changeDetection:0}),Ne})();const tt=new M.OlP("mat-menu-scroll-strategy"),X={provide:tt,deps:[T.aV],useFactory:function vt(Ne){return()=>Ne.scrollStrategies.reposition()}},Ae=(0,W.i$)({passive:!0});let ye=(()=>{class Ne{constructor(fe,r,u,_,E,h,a,i,t){this._overlay=fe,this._element=r,this._viewContainerRef=u,this._menuItemInstance=h,this._dir=a,this._focusMonitor=i,this._ngZone=t,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=b.w0.EMPTY,this._hoverSubscription=b.w0.EMPTY,this._menuCloseSubscription=b.w0.EMPTY,this._handleTouchStart=n=>{(0,e.yG)(n)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new M.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new M.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=_,this._parentMaterialMenu=E instanceof Fe?E:void 0,r.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ae),h&&(h._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(fe){this.menu=fe}get menu(){return this._menu}set menu(fe){fe!==this._menu&&(this._menu=fe,this._menuCloseSubscription.unsubscribe(),fe&&(this._menuCloseSubscription=fe.close.subscribe(r=>{this._destroyMenu(r),("click"===r||"tab"===r)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(r)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ae),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const fe=this.menu;if(this._menuOpen||!fe)return;const r=this._createOverlay(fe),u=r.getConfig(),_=u.positionStrategy;this._setPosition(fe,_),u.hasBackdrop=fe.hasBackdrop??!this.triggersSubmenu(),r.attach(this._getPortal(fe)),fe.lazyContent&&fe.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(fe),fe instanceof Fe&&(fe._startAnimation(),fe._directDescendantItems.changes.pipe((0,O.R)(fe.close)).subscribe(()=>{_.withLockedPosition(!1).reapplyLastPosition(),_.withLockedPosition(!0)}))}closeMenu(){var fe;null===(fe=this.menu)||void 0===fe||fe.close.emit()}focus(fe,r){this._focusMonitor&&fe?this._focusMonitor.focusVia(this._element,fe,r):this._element.nativeElement.focus(r)}updatePosition(){var fe;null===(fe=this._overlayRef)||void 0===fe||fe.updatePosition()}_destroyMenu(fe){if(!this._overlayRef||!this.menuOpen)return;const r=this.menu;var u;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===fe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,r instanceof Fe?(r._resetAnimation(),r.lazyContent?r._animationDone.pipe((0,q.h)(_=>"void"===_.toState),(0,L.q)(1),(0,O.R)(r.lazyContent._attached)).subscribe({next:()=>r.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==r||null===(u=r.lazyContent)||void 0===u||u.detach())}_initMenu(fe){fe.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,fe.direction=this.dir,this._setMenuElevation(fe),fe.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(fe){if(fe.setElevation){let r=0,u=fe.parentMenu;for(;u;)r++,u=u.parentMenu;fe.setElevation(r)}}_setIsMenuOpen(fe){this._menuOpen=fe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(fe)}_createOverlay(fe){if(!this._overlayRef){const r=this._getOverlayConfig(fe);this._subscribeToPositions(fe,r.positionStrategy),this._overlayRef=this._overlay.create(r),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(fe){return new T.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:fe.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:fe.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(fe,r){fe.setPositionClasses&&r.positionChanges.subscribe(u=>{const _="start"===u.connectionPair.overlayX?"after":"before",E="top"===u.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>fe.setPositionClasses(_,E)):fe.setPositionClasses(_,E)})}_setPosition(fe,r){let[u,_]="before"===fe.xPosition?["end","start"]:["start","end"],[E,h]="above"===fe.yPosition?["bottom","top"]:["top","bottom"],[a,i]=[E,h],[t,n]=[u,_],o=0;if(this.triggersSubmenu()){if(n=u="before"===fe.xPosition?"start":"end",_=t="end"===u?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const s=this._parentMaterialMenu.items.first;this._parentInnerPadding=s?s._getHostElement().offsetTop:0}o="bottom"===E?this._parentInnerPadding:-this._parentInnerPadding}}else fe.overlapTrigger||(a="top"===E?"bottom":"top",i="top"===h?"bottom":"top");r.withPositions([{originX:u,originY:a,overlayX:t,overlayY:E,offsetY:o},{originX:_,originY:a,overlayX:n,overlayY:E,offsetY:o},{originX:u,originY:i,overlayX:t,overlayY:h,offsetY:-o},{originX:_,originY:i,overlayX:n,overlayY:h,offsetY:-o}])}_menuClosingActions(){const fe=this._overlayRef.backdropClick(),r=this._overlayRef.detachments(),u=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,v.of)(),_=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,q.h)(E=>E!==this._menuItemInstance),(0,q.h)(()=>this._menuOpen)):(0,v.of)();return(0,D.T)(fe,u,_,r)}_handleMousedown(fe){(0,e.X6)(fe)||(this._openedBy=0===fe.button?"mouse":void 0,this.triggersSubmenu()&&fe.preventDefault())}_handleKeydown(fe){const r=fe.keyCode;(r===C.K5||r===C.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(r===C.SV&&"ltr"===this.dir||r===C.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(fe){this.triggersSubmenu()?(fe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,q.h)(fe=>fe===this._menuItemInstance&&!fe.disabled),(0,ee.g)(0,R.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Fe&&this.menu._isAnimating?this.menu._animationDone.pipe((0,L.q)(1),(0,ee.g)(0,R.E),(0,O.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(fe){return(!this._portal||this._portal.templateRef!==fe.templateRef)&&(this._portal=new ie.UE(fe.templateRef,this._viewContainerRef)),this._portal}}return Ne.\u0275fac=function(fe){return new(fe||Ne)(M.Y36(T.aV),M.Y36(M.SBq),M.Y36(M.s_b),M.Y36(tt),M.Y36(N,8),M.Y36(Z,10),M.Y36(Le.Is,8),M.Y36(e.tE),M.Y36(M.R0b))},Ne.\u0275dir=M.lG2({type:Ne,hostVars:3,hostBindings:function(fe,r){1&fe&&M.NdJ("click",function(_){return r._handleClick(_)})("mousedown",function(_){return r._handleMousedown(_)})("keydown",function(_){return r._handleKeydown(_)}),2&fe&&M.uIk("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen||null)("aria-controls",r.menuOpen?r.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),Ne})(),_e=(()=>{class Ne extends ye{}return Ne.\u0275fac=function(){let Ce;return function(r){return(Ce||(Ce=M.n5z(Ne)))(r||Ne)}}(),Ne.\u0275dir=M.lG2({type:Ne,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[M.qOj]}),Ne})(),Se=(()=>{class Ne{}return Ne.\u0275fac=function(fe){return new(fe||Ne)},Ne.\u0275mod=M.oAB({type:Ne}),Ne.\u0275inj=M.cJS({providers:[X],imports:[Te.ez,pe.BQ,pe.si,T.U8,F.ZD,pe.BQ]}),Ne})()},98739:(Xe,ue,p)=>{"use strict";p.d(ue,{NW:()=>V,TU:()=>te,ye:()=>z});var e=p(36895),A=p(94650),C=p(3238),M=p(4859),m=p(84385),b=p(10266),D=p(21281),v=p(77579),R=p(59549);function B(Q,Ee){if(1&Q&&(A.TgZ(0,"mat-option",19),A._uU(1),A.qZA()),2&Q){const ge=Ee.$implicit;A.Q6J("value",ge),A.xp6(1),A.hij(" ",ge," ")}}function w(Q,Ee){if(1&Q){const ge=A.EpF();A.TgZ(0,"mat-form-field",16)(1,"mat-select",17),A.NdJ("selectionChange",function(De){A.CHM(ge);const he=A.oxw(2);return A.KtG(he._changePageSize(De.value))}),A.YNc(2,B,2,2,"mat-option",18),A.qZA()()}if(2&Q){const ge=A.oxw(2);A.Q6J("appearance",ge._formFieldAppearance)("color",ge.color),A.xp6(1),A.Q6J("value",ge.pageSize)("disabled",ge.disabled)("panelClass",ge.selectConfig.panelClass||"")("disableOptionCentering",ge.selectConfig.disableOptionCentering)("aria-label",ge._intl.itemsPerPageLabel),A.xp6(1),A.Q6J("ngForOf",ge._displayedPageSizeOptions)}}function L(Q,Ee){if(1&Q&&(A.TgZ(0,"div",20),A._uU(1),A.qZA()),2&Q){const ge=A.oxw(2);A.xp6(1),A.Oqu(ge.pageSize)}}function O(Q,Ee){if(1&Q&&(A.TgZ(0,"div",12)(1,"div",13),A._uU(2),A.qZA(),A.YNc(3,w,3,8,"mat-form-field",14),A.YNc(4,L,2,1,"div",15),A.qZA()),2&Q){const ge=A.oxw();A.xp6(2),A.hij(" ",ge._intl.itemsPerPageLabel," "),A.xp6(1),A.Q6J("ngIf",ge._displayedPageSizeOptions.length>1),A.xp6(1),A.Q6J("ngIf",ge._displayedPageSizeOptions.length<=1)}}function q(Q,Ee){if(1&Q){const ge=A.EpF();A.TgZ(0,"button",21),A.NdJ("click",function(){A.CHM(ge);const De=A.oxw();return A.KtG(De.firstPage())}),A.O4$(),A.TgZ(1,"svg",7),A._UZ(2,"path",22),A.qZA()()}if(2&Q){const ge=A.oxw();A.Q6J("matTooltip",ge._intl.firstPageLabel)("matTooltipDisabled",ge._previousButtonsDisabled())("matTooltipPosition","above")("disabled",ge._previousButtonsDisabled()),A.uIk("aria-label",ge._intl.firstPageLabel)}}function ee(Q,Ee){if(1&Q){const ge=A.EpF();A.O4$(),A.kcU(),A.TgZ(0,"button",23),A.NdJ("click",function(){A.CHM(ge);const De=A.oxw();return A.KtG(De.lastPage())}),A.O4$(),A.TgZ(1,"svg",7),A._UZ(2,"path",24),A.qZA()()}if(2&Q){const ge=A.oxw();A.Q6J("matTooltip",ge._intl.lastPageLabel)("matTooltipDisabled",ge._nextButtonsDisabled())("matTooltipPosition","above")("disabled",ge._nextButtonsDisabled()),A.uIk("aria-label",ge._intl.lastPageLabel)}}let z=(()=>{class Q{constructor(){this.changes=new v.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(ge,ve,De)=>{if(0==De||0==ve)return`0 of ${De}`;const he=ge*ve;return`${he+1} \u2013 ${he<(De=Math.max(De,0))?Math.min(he+ve,De):he+ve} of ${De}`}}}return Q.\u0275fac=function(ge){return new(ge||Q)},Q.\u0275prov=A.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})();const Te={provide:z,deps:[[new A.FiY,new A.tp0,z]],useFactory:function ie(Q){return Q||new z}},T=new A.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),W=(0,C.Id)((0,C.dB)(class{}));let F=(()=>{class Q extends W{constructor(ge,ve,De){if(super(),this._intl=ge,this._changeDetectorRef=ve,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new A.vpe,this._intlChanges=ge.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),De){const{pageSize:he,pageSizeOptions:Ye,hidePageSize:Be,showFirstLastButtons:se}=De;null!=he&&(this._pageSize=he),null!=Ye&&(this._pageSizeOptions=Ye),null!=Be&&(this._hidePageSize=Be),null!=se&&(this._showFirstLastButtons=se)}}get pageIndex(){return this._pageIndex}set pageIndex(ge){this._pageIndex=Math.max((0,D.su)(ge),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(ge){this._length=(0,D.su)(ge),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(ge){this._pageSize=Math.max((0,D.su)(ge),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(ge){this._pageSizeOptions=(ge||[]).map(ve=>(0,D.su)(ve)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(ge){this._hidePageSize=(0,D.Ig)(ge)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(ge){this._showFirstLastButtons=(0,D.Ig)(ge)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const ge=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(ge)}previousPage(){if(!this.hasPreviousPage())return;const ge=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(ge)}firstPage(){if(!this.hasPreviousPage())return;const ge=this.pageIndex;this.pageIndex=0,this._emitPageEvent(ge)}lastPage(){if(!this.hasNextPage())return;const ge=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(ge)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const ge=this.getNumberOfPages()-1;return this.pageIndexge-ve),this._changeDetectorRef.markForCheck())}_emitPageEvent(ge){this.page.emit({previousPageIndex:ge,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return Q.\u0275fac=function(ge){A.$Z()},Q.\u0275dir=A.lG2({type:Q,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[A.qOj]}),Q})(),V=(()=>{class Q extends F{constructor(ge,ve,De){super(ge,ve,De),De&&null!=De.formFieldAppearance&&(this._formFieldAppearance=De.formFieldAppearance)}}return Q.\u0275fac=function(ge){return new(ge||Q)(A.Y36(z),A.Y36(A.sBO),A.Y36(T,8))},Q.\u0275cmp=A.Xpm({type:Q,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[A.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(ge,ve){1&ge&&(A.TgZ(0,"div",0)(1,"div",1),A.YNc(2,O,5,3,"div",2),A.TgZ(3,"div",3)(4,"div",4),A._uU(5),A.qZA(),A.YNc(6,q,3,5,"button",5),A.TgZ(7,"button",6),A.NdJ("click",function(){return ve.previousPage()}),A.O4$(),A.TgZ(8,"svg",7),A._UZ(9,"path",8),A.qZA()(),A.kcU(),A.TgZ(10,"button",9),A.NdJ("click",function(){return ve.nextPage()}),A.O4$(),A.TgZ(11,"svg",7),A._UZ(12,"path",10),A.qZA()(),A.YNc(13,ee,3,5,"button",11),A.qZA()()()),2&ge&&(A.xp6(2),A.Q6J("ngIf",!ve.hidePageSize),A.xp6(3),A.hij(" ",ve._intl.getRangeLabel(ve.pageIndex,ve.pageSize,ve.length)," "),A.xp6(1),A.Q6J("ngIf",ve.showFirstLastButtons),A.xp6(1),A.Q6J("matTooltip",ve._intl.previousPageLabel)("matTooltipDisabled",ve._previousButtonsDisabled())("matTooltipPosition","above")("disabled",ve._previousButtonsDisabled()),A.uIk("aria-label",ve._intl.previousPageLabel),A.xp6(3),A.Q6J("matTooltip",ve._intl.nextPageLabel)("matTooltipDisabled",ve._nextButtonsDisabled())("matTooltipPosition","above")("disabled",ve._nextButtonsDisabled()),A.uIk("aria-label",ve._intl.nextPageLabel),A.xp6(3),A.Q6J("ngIf",ve.showFirstLastButtons))},dependencies:[e.sg,e.O5,M.lW,R.KE,m.gD,C.ey,b.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),Q})(),te=(()=>{class Q{}return Q.\u0275fac=function(ge){return new(ge||Q)},Q.\u0275mod=A.oAB({type:Q}),Q.\u0275inj=A.cJS({providers:[Te],imports:[e.ez,M.ot,m.LD,b.AV,C.BQ]}),Q})()},73162:(Xe,ue,p)=>{"use strict";p.d(ue,{Cv:()=>L});var e=p(94650),A=p(36895),C=p(3238);let L=(()=>{class O{}return O.\u0275fac=function(ee){return new(ee||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({imports:[A.ez,C.BQ,C.BQ]}),O})()},51572:(Xe,ue,p)=>{"use strict";p.d(ue,{Cq:()=>ie,Ou:()=>z});var e=p(21281),A=p(83353),C=p(67376),M=p(36895),m=p(94650),b=p(3238),D=p(50727);function v(pe,Le){if(1&pe&&(m.O4$(),m._UZ(0,"circle",4)),2&pe){const T=m.oxw(),W=m.MAs(1);m.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+T._spinnerAnimationLabel)("stroke-dashoffset",T._getStrokeDashOffset(),"px")("stroke-dasharray",T._getStrokeCircumference(),"px")("stroke-width",T._getCircleStrokeWidth(),"%")("transform-origin",T._getCircleTransformOrigin(W)),m.uIk("r",T._getCircleRadius())}}function R(pe,Le){if(1&pe&&(m.O4$(),m._UZ(0,"circle",4)),2&pe){const T=m.oxw(),W=m.MAs(1);m.Udp("stroke-dashoffset",T._getStrokeDashOffset(),"px")("stroke-dasharray",T._getStrokeCircumference(),"px")("stroke-width",T._getCircleStrokeWidth(),"%")("transform-origin",T._getCircleTransformOrigin(W)),m.uIk("r",T._getCircleRadius())}}const L=(0,b.pj)(class{constructor(pe){this._elementRef=pe}},"primary"),O=new m.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function q(){return{diameter:100}}});class z extends L{constructor(Le,T,W,F,V,te,Q,Ee){super(Le),this._document=W,this._diameter=100,this._value=0,this._resizeSubscription=D.w0.EMPTY,this.mode="determinate";const ge=z._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),ge.has(W.head)||ge.set(W.head,new Set([100])),this._noopAnimations="NoopAnimations"===F&&!!V&&!V._forceAnimations,"mat-spinner"===Le.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),V&&(V.color&&(this.color=this.defaultColor=V.color),V.diameter&&(this.diameter=V.diameter),V.strokeWidth&&(this.strokeWidth=V.strokeWidth)),T.isBrowser&&T.SAFARI&&Q&&te&&Ee&&(this._resizeSubscription=Q.change(150).subscribe(()=>{"indeterminate"===this.mode&&Ee.run(()=>te.markForCheck())}))}get diameter(){return this._diameter}set diameter(Le){this._diameter=(0,e.su)(Le),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(Le){this._strokeWidth=(0,e.su)(Le)}get value(){return"determinate"===this.mode?this._value:0}set value(Le){this._value=Math.max(0,Math.min(100,(0,e.su)(Le)))}ngOnInit(){const Le=this._elementRef.nativeElement;this._styleRoot=(0,A.kV)(Le)||this._document.head,this._attachStyleNode(),Le.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const Le=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${Le} ${Le}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(Le){var T;const W=50*(null!==(T=Le.currentScale)&&void 0!==T?T:1);return`${W}% ${W}%`}_attachStyleNode(){const Le=this._styleRoot,T=this._diameter,W=z._diameters;let F=W.get(Le);if(!F||!F.has(T)){const V=this._document.createElement("style");V.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),V.textContent=this._getAnimationText(),Le.appendChild(V),F||(F=new Set,W.set(Le,F)),F.add(T)}}_getAnimationText(){const Le=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*Le).replace(/END_VALUE/g,""+.2*Le).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}z._diameters=new WeakMap,z.\u0275fac=function(Le){return new(Le||z)(m.Y36(m.SBq),m.Y36(A.t4),m.Y36(M.K0,8),m.Y36(m.QbO,8),m.Y36(O),m.Y36(m.sBO),m.Y36(C.rL),m.Y36(m.R0b))},z.\u0275cmp=m.Xpm({type:z,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(Le,T){2&Le&&(m.uIk("aria-valuemin","determinate"===T.mode?0:null)("aria-valuemax","determinate"===T.mode?100:null)("aria-valuenow","determinate"===T.mode?T.value:null)("mode",T.mode),m.Udp("width",T.diameter,"px")("height",T.diameter,"px"),m.ekj("_mat-animation-noopable",T._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[m.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(Le,T){1&Le&&(m.O4$(),m.TgZ(0,"svg",0,1),m.YNc(2,v,1,11,"circle",2),m.YNc(3,R,1,9,"circle",3),m.qZA()),2&Le&&(m.Udp("width",T.diameter,"px")("height",T.diameter,"px"),m.Q6J("ngSwitch","indeterminate"===T.mode),m.uIk("viewBox",T._getViewBox()),m.xp6(2),m.Q6J("ngSwitchCase",!0),m.xp6(1),m.Q6J("ngSwitchCase",!1))},dependencies:[M.RF,M.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let ie=(()=>{class pe{}return pe.\u0275fac=function(T){return new(T||pe)},pe.\u0275mod=m.oAB({type:pe}),pe.\u0275inj=m.cJS({imports:[b.BQ,M.ez,b.BQ]}),pe})()},71948:(Xe,ue,p)=>{"use strict";p.d(ue,{Fk:()=>W,U0:()=>T,VQ:()=>ie});var e=p(94650),A=p(3238),C=p(12687),M=p(21281),m=p(95017),b=p(24006);const D=["input"],v=function(F){return{enterDuration:F}},R=["*"],B=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function w(){return{color:"accent"}}});let L=0;const O={provide:b.JU,useExisting:(0,e.Gpc)(()=>ie),multi:!0};class q{constructor(V,te){this.source=V,this.value=te}}const ee=new e.OlP("MatRadioGroup");let z=(()=>{class F{constructor(te){this._changeDetector=te,this._value=null,this._name="mat-radio-group-"+L++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(te){this._name=te,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(te){this._labelPosition="before"===te?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(te){this._value!==te&&(this._value=te,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(te){this._selected=te,this.value=te?te.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(te){this._disabled=(0,M.Ig)(te),this._markRadiosForCheck()}get required(){return this._required}set required(te){this._required=(0,M.Ig)(te),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(te=>{te.name=this.name,te._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(Q=>{Q.checked=this.value===Q.value,Q.checked&&(this._selected=Q)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new q(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(te=>te._markForCheck())}writeValue(te){this.value=te,this._changeDetector.markForCheck()}registerOnChange(te){this._controlValueAccessorChangeFn=te}registerOnTouched(te){this.onTouched=te}setDisabledState(te){this.disabled=te,this._changeDetector.markForCheck()}}return F.\u0275fac=function(te){return new(te||F)(e.Y36(e.sBO))},F.\u0275dir=e.lG2({type:F,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),F})(),ie=(()=>{class F extends z{}return F.\u0275fac=function(){let V;return function(Q){return(V||(V=e.n5z(F)))(Q||F)}}(),F.\u0275dir=e.lG2({type:F,selectors:[["mat-radio-group"]],contentQueries:function(te,Q,Ee){if(1&te&&e.Suo(Ee,T,5),2&te){let ge;e.iGM(ge=e.CRH())&&(Q._radios=ge)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([O,{provide:ee,useExisting:F}]),e.qOj]}),F})();class Te{constructor(V){this._elementRef=V}}const pe=(0,A.Kr)((0,A.sb)(Te));let Le=(()=>{class F extends pe{constructor(te,Q,Ee,ge,ve,De,he,Ye){super(Q),this._changeDetector=Ee,this._focusMonitor=ge,this._radioDispatcher=ve,this._providerOverride=he,this._uniqueId="mat-radio-"+ ++L,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=te,this._noopAnimations="NoopAnimations"===De,Ye&&(this.tabIndex=(0,M.su)(Ye,0)),this._removeUniqueSelectionListener=ve.listen((Be,se)=>{Be!==this.id&&se===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(te){const Q=(0,M.Ig)(te);this._checked!==Q&&(this._checked=Q,Q&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!Q&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),Q&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(te){this._value!==te&&(this._value=te,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===te),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(te){this._labelPosition=te}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(te){this._setDisabled((0,M.Ig)(te))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(te){this._required=(0,M.Ig)(te)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(te){this._color=te}get inputId(){return`${this.id||this._uniqueId}-input`}focus(te,Q){Q?this._focusMonitor.focusVia(this._inputElement,Q,te):this._inputElement.nativeElement.focus(te)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(te=>{!te&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new q(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(te){te.stopPropagation()}_onInputInteraction(te){if(te.stopPropagation(),!this.checked&&!this.disabled){const Q=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),Q&&this.radioGroup._emitChangeEvent())}}_setDisabled(te){this._disabled!==te&&(this._disabled=te,this._changeDetector.markForCheck())}_updateTabIndex(){const te=this.radioGroup;let Q;if(Q=te&&te.selected&&!this.disabled?te.selected===this?this.tabIndex:-1:this.tabIndex,Q!==this._previousTabIndex){var Ee;const ge=null===(Ee=this._inputElement)||void 0===Ee?void 0:Ee.nativeElement;ge&&(ge.setAttribute("tabindex",Q+""),this._previousTabIndex=Q)}}}return F.\u0275fac=function(te){e.$Z()},F.\u0275dir=e.lG2({type:F,viewQuery:function(te,Q){if(1&te&&e.Gf(D,5),2&te){let Ee;e.iGM(Ee=e.CRH())&&(Q._inputElement=Ee.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.qOj]}),F})(),T=(()=>{class F extends Le{constructor(te,Q,Ee,ge,ve,De,he,Ye){super(te,Q,Ee,ge,ve,De,he,Ye)}}return F.\u0275fac=function(te){return new(te||F)(e.Y36(ee,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(C.tE),e.Y36(m.A8),e.Y36(e.QbO,8),e.Y36(B,8),e.$8M("tabindex"))},F.\u0275cmp=e.Xpm({type:F,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(te,Q){1&te&&e.NdJ("focus",function(){return Q._inputElement.nativeElement.focus()}),2&te&&(e.uIk("tabindex",null)("id",Q.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",Q.checked)("mat-radio-disabled",Q.disabled)("_mat-animation-noopable",Q._noopAnimations)("mat-primary","primary"===Q.color)("mat-accent","accent"===Q.color)("mat-warn","warn"===Q.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:R,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(te,Q){if(1&te&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2),e._UZ(3,"span",3)(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(ge){return Q._onInputInteraction(ge)})("click",function(ge){return Q._onInputClick(ge)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA()(),e.TgZ(9,"span",9)(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA()()),2&te){const Ee=e.MAs(1);e.uIk("for",Q.inputId),e.xp6(5),e.Q6J("id",Q.inputId)("checked",Q.checked)("disabled",Q.disabled)("required",Q.required),e.uIk("name",Q.name)("value",Q.value)("aria-label",Q.ariaLabel)("aria-labelledby",Q.ariaLabelledby)("aria-describedby",Q.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",Ee)("matRippleDisabled",Q._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(17,v,Q._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==Q.labelPosition)}},dependencies:[A.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),F})(),W=(()=>{class F{}return F.\u0275fac=function(te){return new(te||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({imports:[A.si,A.BQ,A.BQ]}),F})()},84385:(Xe,ue,p)=>{"use strict";p.d(ue,{$L:()=>_e,LD:()=>Ce,gD:()=>Ne});var e=p(98184),A=p(36895),C=p(94650),M=p(3238),m=p(59549),b=p(67376),D=p(12687),v=p(40445),R=p(21281),B=p(95017),w=p(29521),L=p(24006),O=p(77579),q=p(49770),ee=p(56451),z=p(68675),ie=p(63900),Te=p(95698),pe=p(39300),Le=p(54004),T=p(71884),W=p(82722),F=p(37340);const V=["trigger"],te=["panel"];function Q(fe,r){if(1&fe&&(C.TgZ(0,"span",8),C._uU(1),C.qZA()),2&fe){const u=C.oxw();C.xp6(1),C.Oqu(u.placeholder)}}function Ee(fe,r){if(1&fe&&(C.TgZ(0,"span",12),C._uU(1),C.qZA()),2&fe){const u=C.oxw(2);C.xp6(1),C.Oqu(u.triggerValue)}}function ge(fe,r){1&fe&&C.Hsn(0,0,["*ngSwitchCase","true"])}function ve(fe,r){if(1&fe&&(C.TgZ(0,"span",9),C.YNc(1,Ee,2,1,"span",10),C.YNc(2,ge,1,0,"ng-content",11),C.qZA()),2&fe){const u=C.oxw();C.Q6J("ngSwitch",!!u.customTrigger),C.xp6(2),C.Q6J("ngSwitchCase",!0)}}function De(fe,r){if(1&fe){const u=C.EpF();C.TgZ(0,"div",13)(1,"div",14,15),C.NdJ("@transformPanel.done",function(E){C.CHM(u);const h=C.oxw();return C.KtG(h._panelDoneAnimatingStream.next(E.toState))})("keydown",function(E){C.CHM(u);const h=C.oxw();return C.KtG(h._handleKeydown(E))}),C.Hsn(3,1),C.qZA()()}if(2&fe){const u=C.oxw();C.Q6J("@transformPanelWrap",void 0),C.xp6(1),C.Gre("mat-select-panel ",u._getPanelTheme(),""),C.Udp("transform-origin",u._transformOrigin)("font-size",u._triggerFontSize,"px"),C.Q6J("ngClass",u.panelClass)("@transformPanel",u.multiple?"showing-multiple":"showing"),C.uIk("id",u.id+"-panel")("aria-multiselectable",u.multiple)("aria-label",u.ariaLabel||null)("aria-labelledby",u._getPanelAriaLabelledby())}}const he=[[["mat-select-trigger"]],"*"],Ye=["mat-select-trigger","*"],Be={transformPanelWrap:(0,F.X$)("transformPanelWrap",[(0,F.eR)("* => void",(0,F.IO)("@transformPanel",[(0,F.pV)()],{optional:!0}))]),transformPanel:(0,F.X$)("transformPanel",[(0,F.SB)("void",(0,F.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,F.SB)("showing",(0,F.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,F.SB)("showing-multiple",(0,F.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,F.eR)("void => *",(0,F.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,F.eR)("* => void",(0,F.jt)("100ms 25ms linear",(0,F.oB)({opacity:0})))])};let N=0;const ut=new C.OlP("mat-select-scroll-strategy"),vt=new C.OlP("MAT_SELECT_CONFIG"),X={provide:ut,deps:[e.aV],useFactory:function tt(fe){return()=>fe.scrollStrategies.reposition()}};class nt{constructor(r,u){this.source=r,this.value=u}}const Ae=(0,M.Kr)((0,M.sb)((0,M.Id)((0,M.FD)(class{constructor(fe,r,u,_,E){this._elementRef=fe,this._defaultErrorStateMatcher=r,this._parentForm=u,this._parentFormGroup=_,this.ngControl=E,this.stateChanges=new O.x}})))),ye=new C.OlP("MatSelectTrigger");let _e=(()=>{class fe{}return fe.\u0275fac=function(u){return new(u||fe)},fe.\u0275dir=C.lG2({type:fe,selectors:[["mat-select-trigger"]],features:[C._Bn([{provide:ye,useExisting:fe}])]}),fe})(),Se=(()=>{class fe extends Ae{constructor(u,_,E,h,a,i,t,n,o,s,l,d,c,S){var J,ht,We;super(a,h,t,n,s),this._viewportRuler=u,this._changeDetectorRef=_,this._ngZone=E,this._dir=i,this._parentFormField=o,this._liveAnnouncer=c,this._defaultOptions=S,this._panelOpen=!1,this._compareWith=(et,ne)=>et===ne,this._uid="mat-select-"+N++,this._triggerAriaLabelledBy=null,this._destroy=new O.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+N++,this._panelDoneAnimatingStream=new O.x,this._overlayPanelClass=(null===(J=this._defaultOptions)||void 0===J?void 0:J.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(ht=null===(We=this._defaultOptions)||void 0===We?void 0:We.disableOptionCentering)&&void 0!==ht&&ht,this.ariaLabel="",this.optionSelectionChanges=(0,q.P)(()=>{const et=this.options;return et?et.changes.pipe((0,z.O)(et),(0,ie.w)(()=>(0,ee.T)(...et.map(ne=>ne.onSelectionChange)))):this._ngZone.onStable.pipe((0,Te.q)(1),(0,ie.w)(()=>this.optionSelectionChanges))}),this.openedChange=new C.vpe,this._openedStream=this.openedChange.pipe((0,pe.h)(et=>et),(0,Le.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,pe.h)(et=>!et),(0,Le.U)(()=>{})),this.selectionChange=new C.vpe,this.valueChange=new C.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=S?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=S.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(l)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(u){this._placeholder=u,this.stateChanges.next()}get required(){var u,_,E,h;return null!==(u=null!==(_=this._required)&&void 0!==_?_:null===(E=this.ngControl)||void 0===E||null===(h=E.control)||void 0===h?void 0:h.hasValidator(L.kI.required))&&void 0!==u&&u}set required(u){this._required=(0,R.Ig)(u),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(u){this._multiple=(0,R.Ig)(u)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(u){this._disableOptionCentering=(0,R.Ig)(u)}get compareWith(){return this._compareWith}set compareWith(u){this._compareWith=u,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(u){this._assignValue(u)&&this._onChange(u)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(u){this._typeaheadDebounceInterval=(0,R.su)(u)}get id(){return this._id}set id(u){this._id=u||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new B.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,T.x)(),(0,W.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,W.R)(this._destroy)).subscribe(u=>{u.added.forEach(_=>_.select()),u.removed.forEach(_=>_.deselect())}),this.options.changes.pipe((0,z.O)(null),(0,W.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const u=this._getTriggerAriaLabelledby(),_=this.ngControl;if(u!==this._triggerAriaLabelledBy){const E=this._elementRef.nativeElement;this._triggerAriaLabelledBy=u,u?E.setAttribute("aria-labelledby",u):E.removeAttribute("aria-labelledby")}_&&(this._previousControl!==_.control&&(void 0!==this._previousControl&&null!==_.disabled&&_.disabled!==this.disabled&&(this.disabled=_.disabled),this._previousControl=_.control),this.updateErrorState())}ngOnChanges(u){(u.disabled||u.userAriaDescribedBy)&&this.stateChanges.next(),u.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(u){this._assignValue(u)}registerOnChange(u){this._onChange=u}registerOnTouched(u){this._onTouched=u}setDisabledState(u){this.disabled=u,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var u,_;return this.multiple?(null===(u=this._selectionModel)||void 0===u?void 0:u.selected)||[]:null===(_=this._selectionModel)||void 0===_?void 0:_.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const u=this._selectionModel.selected.map(_=>_.viewValue);return this._isRtl()&&u.reverse(),u.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(u){this.disabled||(this.panelOpen?this._handleOpenKeydown(u):this._handleClosedKeydown(u))}_handleClosedKeydown(u){const _=u.keyCode,E=_===w.JH||_===w.LH||_===w.oh||_===w.SV,h=_===w.K5||_===w.L_,a=this._keyManager;if(!a.isTyping()&&h&&!(0,w.Vb)(u)||(this.multiple||u.altKey)&&E)u.preventDefault(),this.open();else if(!this.multiple){const i=this.selected;a.onKeydown(u);const t=this.selected;t&&i!==t&&this._liveAnnouncer.announce(t.viewValue,1e4)}}_handleOpenKeydown(u){const _=this._keyManager,E=u.keyCode,h=E===w.JH||E===w.LH,a=_.isTyping();if(h&&u.altKey)u.preventDefault(),this.close();else if(a||E!==w.K5&&E!==w.L_||!_.activeItem||(0,w.Vb)(u))if(!a&&this._multiple&&E===w.A&&u.ctrlKey){u.preventDefault();const i=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(i?t.select():t.deselect())})}else{const i=_.activeItemIndex;_.onKeydown(u),this._multiple&&h&&u.shiftKey&&_.activeItem&&_.activeItemIndex!==i&&_.activeItem._selectViaInteraction()}else u.preventDefault(),_.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Te.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(u){if(this._selectionModel.selected.forEach(_=>_.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&u)Array.isArray(u),u.forEach(_=>this._selectOptionByValue(_)),this._sortValues();else{const _=this._selectOptionByValue(u);_?this._keyManager.updateActiveItem(_):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(u){const _=this.options.find(E=>{if(this._selectionModel.isSelected(E))return!1;try{return null!=E.value&&this._compareWith(E.value,u)}catch{return!1}});return _&&this._selectionModel.select(_),_}_assignValue(u){return!!(u!==this._value||this._multiple&&Array.isArray(u))&&(this.options&&this._setSelectionByValue(u),this._value=u,!0)}_initKeyManager(){this._keyManager=new D.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,W.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,W.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const u=(0,ee.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,W.R)(u)).subscribe(_=>{this._onSelect(_.source,_.isUserInput),_.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ee.T)(...this.options.map(_=>_._stateChanges)).pipe((0,W.R)(u)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(u,_){const E=this._selectionModel.isSelected(u);null!=u.value||this._multiple?(E!==u.selected&&(u.selected?this._selectionModel.select(u):this._selectionModel.deselect(u)),_&&this._keyManager.setActiveItem(u),this.multiple&&(this._sortValues(),_&&this.focus())):(u.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(u.value)),E!==this._selectionModel.isSelected(u)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const u=this.options.toArray();this._selectionModel.sort((_,E)=>this.sortComparator?this.sortComparator(_,E,u):u.indexOf(_)-u.indexOf(E)),this.stateChanges.next()}}_propagateChanges(u){let _=null;_=this.multiple?this.selected.map(E=>E.value):this.selected?this.selected.value:u,this._value=_,this.valueChange.emit(_),this._onChange(_),this.selectionChange.emit(this._getChangeEvent(_)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var u;return!this._panelOpen&&!this.disabled&&(null===(u=this.options)||void 0===u?void 0:u.length)>0}focus(u){this._elementRef.nativeElement.focus(u)}_getPanelAriaLabelledby(){var u;if(this.ariaLabel)return null;const _=null===(u=this._parentFormField)||void 0===u?void 0:u.getLabelId();return this.ariaLabelledby?(_?_+" ":"")+this.ariaLabelledby:_}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var u;if(this.ariaLabel)return null;const _=null===(u=this._parentFormField)||void 0===u?void 0:u.getLabelId();let E=(_?_+" ":"")+this._valueId;return this.ariaLabelledby&&(E+=" "+this.ariaLabelledby),E}_panelDoneAnimating(u){this.openedChange.emit(u)}setDescribedByIds(u){u.length?this._elementRef.nativeElement.setAttribute("aria-describedby",u.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return fe.\u0275fac=function(u){return new(u||fe)(C.Y36(b.rL),C.Y36(C.sBO),C.Y36(C.R0b),C.Y36(M.rD),C.Y36(C.SBq),C.Y36(v.Is,8),C.Y36(L.F,8),C.Y36(L.sg,8),C.Y36(m.G_,8),C.Y36(L.a5,10),C.$8M("tabindex"),C.Y36(ut),C.Y36(D.Kd),C.Y36(vt,8))},fe.\u0275dir=C.lG2({type:fe,viewQuery:function(u,_){if(1&u&&(C.Gf(V,5),C.Gf(te,5),C.Gf(e.pI,5)),2&u){let E;C.iGM(E=C.CRH())&&(_.trigger=E.first),C.iGM(E=C.CRH())&&(_.panel=E.first),C.iGM(E=C.CRH())&&(_._overlayDir=E.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[C.qOj,C.TTD]}),fe})(),Ne=(()=>{class fe extends Se{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(u,_,E){const h=this._getItemHeight();return Math.min(Math.max(0,h*u-_+h/2),E)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,W.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Te.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(u){const _=(0,M.CB)(u,this.options,this.optionGroups),E=this._getItemHeight();this.panel.nativeElement.scrollTop=0===u&&1===_?0:(0,M.jH)((u+_)*E,E,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(u){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(u)}_getChangeEvent(u){return new nt(this,u)}_calculateOverlayOffsetX(){const u=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),_=this._viewportRuler.getViewportSize(),E=this._isRtl(),h=this.multiple?56:32;let a;if(this.multiple)a=40;else if(this.disableOptionCentering)a=16;else{let n=this._selectionModel.selected[0]||this.options.first;a=n&&n.group?32:16}E||(a*=-1);const i=0-(u.left+a-(E?h:0)),t=u.right+a-_.width+(E?0:h);i>0?a+=i+8:t>0&&(a-=t+8),this._overlayDir.offsetX=Math.round(a),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(u,_,E){const h=this._getItemHeight(),a=(h-this._triggerRect.height)/2,i=Math.floor(256/h);let t;return this.disableOptionCentering?0:(t=0===this._scrollTop?u*h:this._scrollTop===E?(u-(this._getItemCount()-i))*h+(h-(this._getItemCount()*h-256)%h):_-h/2,Math.round(-1*t-a))}_checkOverlayWithinViewport(u){const _=this._getItemHeight(),E=this._viewportRuler.getViewportSize(),h=this._triggerRect.top-8,a=E.height-this._triggerRect.bottom-8,i=Math.abs(this._offsetY),n=Math.min(this._getItemCount()*_,256)-i-this._triggerRect.height;n>a?this._adjustPanelUp(n,a):i>h?this._adjustPanelDown(i,h,u):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(u,_){const E=Math.round(u-_);this._scrollTop-=E,this._offsetY-=E,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(u,_,E){const h=Math.round(u-_);if(this._scrollTop+=h,this._offsetY+=h,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=E)return this._scrollTop=E,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const u=this._getItemHeight(),_=this._getItemCount(),E=Math.min(_*u,256),a=_*u-E;let i;i=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),i+=(0,M.CB)(i,this.options,this.optionGroups);const t=E/2;this._scrollTop=this._calculateOverlayScroll(i,t,a),this._offsetY=this._calculateOverlayOffsetY(i,t,a),this._checkOverlayWithinViewport(a)}_getOriginBasedOnOption(){const u=this._getItemHeight(),_=(u-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-_+u/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return fe.\u0275fac=function(){let r;return function(_){return(r||(r=C.n5z(fe)))(_||fe)}}(),fe.\u0275cmp=C.Xpm({type:fe,selectors:[["mat-select"]],contentQueries:function(u,_,E){if(1&u&&(C.Suo(E,ye,5),C.Suo(E,M.ey,5),C.Suo(E,M.K7,5)),2&u){let h;C.iGM(h=C.CRH())&&(_.customTrigger=h.first),C.iGM(h=C.CRH())&&(_.options=h),C.iGM(h=C.CRH())&&(_.optionGroups=h)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(u,_){1&u&&C.NdJ("keydown",function(h){return _._handleKeydown(h)})("focus",function(){return _._onFocus()})("blur",function(){return _._onBlur()}),2&u&&(C.uIk("id",_.id)("tabindex",_.tabIndex)("aria-controls",_.panelOpen?_.id+"-panel":null)("aria-expanded",_.panelOpen)("aria-label",_.ariaLabel||null)("aria-required",_.required.toString())("aria-disabled",_.disabled.toString())("aria-invalid",_.errorState)("aria-activedescendant",_._getAriaActiveDescendant()),C.ekj("mat-select-disabled",_.disabled)("mat-select-invalid",_.errorState)("mat-select-required",_.required)("mat-select-empty",_.empty)("mat-select-multiple",_.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[C._Bn([{provide:m.Eo,useExisting:fe},{provide:M.HF,useExisting:fe}]),C.qOj],ngContentSelectors:Ye,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(u,_){if(1&u&&(C.F$t(he),C.TgZ(0,"div",0,1),C.NdJ("click",function(){return _.toggle()}),C.TgZ(3,"div",2),C.YNc(4,Q,2,1,"span",3),C.YNc(5,ve,3,2,"span",4),C.qZA(),C.TgZ(6,"div",5),C._UZ(7,"div",6),C.qZA()(),C.YNc(8,De,4,14,"ng-template",7),C.NdJ("backdropClick",function(){return _.close()})("attach",function(){return _._onAttached()})("detach",function(){return _.close()})),2&u){const E=C.MAs(1);C.uIk("aria-owns",_.panelOpen?_.id+"-panel":null),C.xp6(3),C.Q6J("ngSwitch",_.empty),C.uIk("id",_._valueId),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(1),C.Q6J("ngSwitchCase",!1),C.xp6(3),C.Q6J("cdkConnectedOverlayPanelClass",_._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",_._scrollStrategy)("cdkConnectedOverlayOrigin",E)("cdkConnectedOverlayOpen",_.panelOpen)("cdkConnectedOverlayPositions",_._positions)("cdkConnectedOverlayMinWidth",null==_._triggerRect?null:_._triggerRect.width)("cdkConnectedOverlayOffsetY",_._offsetY)}},dependencies:[A.mk,A.RF,A.n9,A.ED,e.pI,e.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Be.transformPanelWrap,Be.transformPanel]},changeDetection:0}),fe})(),Ce=(()=>{class fe{}return fe.\u0275fac=function(u){return new(u||fe)},fe.\u0275mod=C.oAB({type:fe}),fe.\u0275inj=C.cJS({providers:[X],imports:[A.ez,e.U8,M.Ng,M.BQ,b.ZD,m.lN,M.Ng,M.BQ]}),fe})()},23267:(Xe,ue,p)=>{"use strict";p.d(ue,{JX:()=>ot,Rh:()=>xe,SJ:()=>ut,TM:()=>Fe});var e=p(67376),A=p(36895),C=p(94650),M=p(3238),m=p(12687),b=p(40445),D=p(21281),v=p(29521),R=p(83353),B=p(77579),w=p(54968),L=p(56451),O=p(39300),q=p(54004),ee=p(69718),z=p(82722),ie=p(71884),Te=p(95698),pe=p(68675),Le=p(78372),T=p(37340);const W=["*"],F=["content"];function V(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){C.CHM(X);const Ae=C.oxw();return C.KtG(Ae._onBackdropClicked())}),C.qZA()}if(2&tt){const X=C.oxw();C.ekj("mat-drawer-shown",X._isShowingBackdrop())}}function te(tt,vt){1&tt&&(C.TgZ(0,"mat-drawer-content"),C.Hsn(1,2),C.qZA())}const Q=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Ee=["mat-drawer","mat-drawer-content","*"];function ge(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){C.CHM(X);const Ae=C.oxw();return C.KtG(Ae._onBackdropClicked())}),C.qZA()}if(2&tt){const X=C.oxw();C.ekj("mat-drawer-shown",X._isShowingBackdrop())}}function ve(tt,vt){1&tt&&(C.TgZ(0,"mat-sidenav-content"),C.Hsn(1,2),C.qZA())}const De=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],he=["mat-sidenav","mat-sidenav-content","*"],Be={transformDrawer:(0,T.X$)("transform",[(0,T.SB)("open, open-instant",(0,T.oB)({transform:"none",visibility:"visible"})),(0,T.SB)("void",(0,T.oB)({"box-shadow":"none",visibility:"hidden"})),(0,T.eR)("void => open-instant",(0,T.jt)("0ms")),(0,T.eR)("void <=> open, open-instant => void",(0,T.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},le=new C.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function N(){return!1}}),k=new C.OlP("MAT_DRAWER_CONTAINER");let be=(()=>{class tt extends e.PQ{constructor(X,nt,Ae,ye,_e){super(Ae,ye,_e),this._changeDetectorRef=X,this._container=nt}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return tt.\u0275fac=function(X){return new(X||tt)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>de)),C.Y36(C.SBq),C.Y36(e.mF),C.Y36(C.R0b))},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(X,nt){2&X&&C.Udp("margin-left",nt._container._contentMargins.left,"px")("margin-right",nt._container._contentMargins.right,"px")},features:[C._Bn([{provide:e.PQ,useExisting:tt}]),C.qOj],ngContentSelectors:W,decls:1,vars:0,template:function(X,nt){1&X&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),tt})(),Z=(()=>{class tt{constructor(X,nt,Ae,ye,_e,Se,Ne,Ce){this._elementRef=X,this._focusTrapFactory=nt,this._focusMonitor=Ae,this._platform=ye,this._ngZone=_e,this._interactivityChecker=Se,this._doc=Ne,this._container=Ce,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new B.x,this._animationEnd=new B.x,this._animationState="void",this.openedChange=new C.vpe(!0),this._openedStream=this.openedChange.pipe((0,O.h)(fe=>fe),(0,q.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,O.h)(fe=>fe.fromState!==fe.toState&&0===fe.toState.indexOf("open")),(0,ee.h)(void 0)),this._closedStream=this.openedChange.pipe((0,O.h)(fe=>!fe),(0,q.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,O.h)(fe=>fe.fromState!==fe.toState&&"void"===fe.toState),(0,ee.h)(void 0)),this._destroyed=new B.x,this.onPositionChanged=new C.vpe,this._modeChanged=new B.x,this.openedChange.subscribe(fe=>{fe?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,w.R)(this._elementRef.nativeElement,"keydown").pipe((0,O.h)(fe=>fe.keyCode===v.hY&&!this.disableClose&&!(0,v.Vb)(fe)),(0,z.R)(this._destroyed)).subscribe(fe=>this._ngZone.run(()=>{this.close(),fe.stopPropagation(),fe.preventDefault()}))}),this._animationEnd.pipe((0,ie.x)((fe,r)=>fe.fromState===r.fromState&&fe.toState===r.toState)).subscribe(fe=>{const{fromState:r,toState:u}=fe;(0===u.indexOf("open")&&"void"===r||"void"===u&&0===r.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(X){(X="end"===X?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(X),this._position=X,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(X){this._mode=X,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(X){this._disableClose=(0,D.Ig)(X)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(X){("true"===X||"false"===X||null==X)&&(X=(0,D.Ig)(X)),this._autoFocus=X}get opened(){return this._opened}set opened(X){this.toggle((0,D.Ig)(X))}_forceFocus(X,nt){this._interactivityChecker.isFocusable(X)||(X.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ae=()=>{X.removeEventListener("blur",Ae),X.removeEventListener("mousedown",Ae),X.removeAttribute("tabindex")};X.addEventListener("blur",Ae),X.addEventListener("mousedown",Ae)})),X.focus(nt)}_focusByCssSelector(X,nt){let Ae=this._elementRef.nativeElement.querySelector(X);Ae&&this._forceFocus(Ae,nt)}_takeFocus(){if(!this._focusTrap)return;const X=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(nt=>{!nt&&"function"==typeof this._elementRef.nativeElement.focus&&X.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(X){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,X):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const X=this._doc.activeElement;return!!X&&this._elementRef.nativeElement.contains(X)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var X;this._focusTrap&&this._focusTrap.destroy(),null===(X=this._anchor)||void 0===X||X.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(X){return this.toggle(!0,X)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(X=!this.opened,nt){X&&nt&&(this._openedVia=nt);const Ae=this._setOpen(X,!X&&this._isFocusWithinDrawer(),this._openedVia||"program");return X||(this._openedVia=null),Ae}_setOpen(X,nt,Ae){return this._opened=X,X?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",nt&&this._restoreFocus(Ae)),this._updateFocusTrapState(),new Promise(ye=>{this.openedChange.pipe((0,Te.q)(1)).subscribe(_e=>ye(_e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(X){const nt=this._elementRef.nativeElement,Ae=nt.parentNode;"end"===X?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Ae.insertBefore(this._anchor,nt)),Ae.appendChild(nt)):this._anchor&&this._anchor.parentNode.insertBefore(nt,this._anchor)}}return tt.\u0275fac=function(X){return new(X||tt)(C.Y36(C.SBq),C.Y36(m.qV),C.Y36(m.tE),C.Y36(R.t4),C.Y36(C.R0b),C.Y36(m.ic),C.Y36(A.K0,8),C.Y36(k,8))},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-drawer"]],viewQuery:function(X,nt){if(1&X&&C.Gf(F,5),2&X){let Ae;C.iGM(Ae=C.CRH())&&(nt._content=Ae.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(X,nt){1&X&&C.WFA("@transform.start",function(ye){return nt._animationStarted.next(ye)})("@transform.done",function(ye){return nt._animationEnd.next(ye)}),2&X&&(C.uIk("align",null),C.d8E("@transform",nt._animationState),C.ekj("mat-drawer-end","end"===nt.position)("mat-drawer-over","over"===nt.mode)("mat-drawer-push","push"===nt.mode)("mat-drawer-side","side"===nt.mode)("mat-drawer-opened",nt.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:W,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(X,nt){1&X&&(C.F$t(),C.TgZ(0,"div",0,1),C.Hsn(2),C.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[Be.transformDrawer]},changeDetection:0}),tt})(),de=(()=>{class tt{constructor(X,nt,Ae,ye,_e,Se=!1,Ne){this._dir=X,this._element=nt,this._ngZone=Ae,this._changeDetectorRef=ye,this._animationMode=Ne,this._drawers=new C.n_E,this.backdropClick=new C.vpe,this._destroyed=new B.x,this._doCheckSubject=new B.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new B.x,X&&X.change.pipe((0,z.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),_e.change().pipe((0,z.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Se}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(X){this._autosize=(0,D.Ig)(X)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(X){this._backdropOverride=null==X?null:(0,D.Ig)(X)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,pe.O)(this._allDrawers),(0,z.R)(this._destroyed)).subscribe(X=>{this._drawers.reset(X.filter(nt=>!nt._container||nt._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,pe.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(X=>{this._watchDrawerToggle(X),this._watchDrawerPosition(X),this._watchDrawerMode(X)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Le.b)(10),(0,z.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(X=>X.open())}close(){this._drawers.forEach(X=>X.close())}updateContentMargins(){let X=0,nt=0;if(this._left&&this._left.opened)if("side"==this._left.mode)X+=this._left._getWidth();else if("push"==this._left.mode){const Ae=this._left._getWidth();X+=Ae,nt-=Ae}if(this._right&&this._right.opened)if("side"==this._right.mode)nt+=this._right._getWidth();else if("push"==this._right.mode){const Ae=this._right._getWidth();nt+=Ae,X-=Ae}X=X||null,nt=nt||null,(X!==this._contentMargins.left||nt!==this._contentMargins.right)&&(this._contentMargins={left:X,right:nt},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(X){X._animationStarted.pipe((0,O.h)(nt=>nt.fromState!==nt.toState),(0,z.R)(this._drawers.changes)).subscribe(nt=>{"open-instant"!==nt.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==X.mode&&X.openedChange.pipe((0,z.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(X.opened))}_watchDrawerPosition(X){!X||X.onPositionChanged.pipe((0,z.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Te.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(X){X&&X._modeChanged.pipe((0,z.R)((0,L.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(X){const nt=this._element.nativeElement.classList,Ae="mat-drawer-container-has-open";X?nt.add(Ae):nt.remove(Ae)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(X=>{"end"==X.position?this._end=X:this._start=X}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(X=>X&&!X.disableClose&&this._canHaveBackdrop(X)).forEach(X=>X._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(X){return"side"!==X.mode||!!this._backdropOverride}_isDrawerOpen(X){return null!=X&&X.opened}}return tt.\u0275fac=function(X){return new(X||tt)(C.Y36(b.Is,8),C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(C.sBO),C.Y36(e.rL),C.Y36(le),C.Y36(C.QbO,8))},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-drawer-container"]],contentQueries:function(X,nt,Ae){if(1&X&&(C.Suo(Ae,be,5),C.Suo(Ae,Z,5)),2&X){let ye;C.iGM(ye=C.CRH())&&(nt._content=ye.first),C.iGM(ye=C.CRH())&&(nt._allDrawers=ye)}},viewQuery:function(X,nt){if(1&X&&C.Gf(be,5),2&X){let Ae;C.iGM(Ae=C.CRH())&&(nt._userContent=Ae.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(X,nt){2&X&&C.ekj("mat-drawer-container-explicit-backdrop",nt._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[C._Bn([{provide:k,useExisting:tt}])],ngContentSelectors:Ee,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(X,nt){1&X&&(C.F$t(Q),C.YNc(0,V,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,te,2,0,"mat-drawer-content",1)),2&X&&(C.Q6J("ngIf",nt.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!nt._content))},dependencies:[A.O5,be],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),tt})(),xe=(()=>{class tt extends be{constructor(X,nt,Ae,ye,_e){super(X,nt,Ae,ye,_e)}}return tt.\u0275fac=function(X){return new(X||tt)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>Fe)),C.Y36(C.SBq),C.Y36(e.mF),C.Y36(C.R0b))},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(X,nt){2&X&&C.Udp("margin-left",nt._container._contentMargins.left,"px")("margin-right",nt._container._contentMargins.right,"px")},features:[C._Bn([{provide:e.PQ,useExisting:tt}]),C.qOj],ngContentSelectors:W,decls:1,vars:0,template:function(X,nt){1&X&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),tt})(),ot=(()=>{class tt extends Z{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(X){this._fixedInViewport=(0,D.Ig)(X)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(X){this._fixedTopGap=(0,D.su)(X)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(X){this._fixedBottomGap=(0,D.su)(X)}}return tt.\u0275fac=function(){let vt;return function(nt){return(vt||(vt=C.n5z(tt)))(nt||tt)}}(),tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(X,nt){2&X&&(C.uIk("align",null),C.Udp("top",nt.fixedInViewport?nt.fixedTopGap:null,"px")("bottom",nt.fixedInViewport?nt.fixedBottomGap:null,"px"),C.ekj("mat-drawer-end","end"===nt.position)("mat-drawer-over","over"===nt.mode)("mat-drawer-push","push"===nt.mode)("mat-drawer-side","side"===nt.mode)("mat-drawer-opened",nt.opened)("mat-sidenav-fixed",nt.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[C.qOj],ngContentSelectors:W,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(X,nt){1&X&&(C.F$t(),C.TgZ(0,"div",0,1),C.Hsn(2),C.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[Be.transformDrawer]},changeDetection:0}),tt})(),Fe=(()=>{class tt extends de{}return tt.\u0275fac=function(){let vt;return function(nt){return(vt||(vt=C.n5z(tt)))(nt||tt)}}(),tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-sidenav-container"]],contentQueries:function(X,nt,Ae){if(1&X&&(C.Suo(Ae,xe,5),C.Suo(Ae,ot,5)),2&X){let ye;C.iGM(ye=C.CRH())&&(nt._content=ye.first),C.iGM(ye=C.CRH())&&(nt._allDrawers=ye)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(X,nt){2&X&&C.ekj("mat-drawer-container-explicit-backdrop",nt._backdropOverride)},exportAs:["matSidenavContainer"],features:[C._Bn([{provide:k,useExisting:tt}]),C.qOj],ngContentSelectors:he,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(X,nt){1&X&&(C.F$t(De),C.YNc(0,ge,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,ve,2,0,"mat-sidenav-content",1)),2&X&&(C.Q6J("ngIf",nt.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!nt._content))},dependencies:[A.O5,xe],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),tt})(),ut=(()=>{class tt{}return tt.\u0275fac=function(X){return new(X||tt)},tt.\u0275mod=C.oAB({type:tt}),tt.\u0275inj=C.cJS({imports:[A.ez,M.BQ,e.ZD,e.ZD,M.BQ]}),tt})()},90455:(Xe,ue,p)=>{"use strict";p.d(ue,{Rr:()=>z,rP:()=>Le});var e=p(49643),A=p(94650),C=p(3238),M=p(12687),m=p(21281),b=p(24006);const D=["input"],v=function(T){return{enterDuration:T}},R=["*"],B=new A.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let w=0;const L={provide:b.JU,useExisting:(0,A.Gpc)(()=>z),multi:!0};class O{constructor(W,F){this.source=W,this.checked=F}}const q=(0,C.sb)((0,C.pj)((0,C.Kr)((0,C.Id)(class{constructor(T){this._elementRef=T}}))));let ee=(()=>{class T extends q{constructor(F,V,te,Q,Ee,ge,ve){super(F),this._focusMonitor=V,this._changeDetectorRef=te,this.defaults=Ee,this._onChange=De=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new A.vpe,this.toggleChange=new A.vpe,this.tabIndex=parseInt(Q)||0,this.color=this.defaultColor=Ee.color||"accent",this._noopAnimations="NoopAnimations"===ge,this.id=this._uniqueId=`${ve}${++w}`}get required(){return this._required}set required(F){this._required=(0,m.Ig)(F)}get checked(){return this._checked}set checked(F){this._checked=(0,m.Ig)(F),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(F=>{"keyboard"===F||"program"===F?this._focused=!0:F||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(F){this.checked=!!F}registerOnChange(F){this._onChange=F}registerOnTouched(F){this._onTouched=F}setDisabledState(F){this.disabled=F,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return T.\u0275fac=function(F){A.$Z()},T.\u0275dir=A.lG2({type:T,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[A.qOj]}),T})(),z=(()=>{class T extends ee{constructor(F,V,te,Q,Ee,ge){super(F,V,te,Q,Ee,ge,"mat-slide-toggle-")}_createChangeEvent(F){return new O(this,F)}_onChangeEvent(F){F.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(F){F.stopPropagation()}focus(F,V){V?this._focusMonitor.focusVia(this._inputElement,V,F):this._inputElement.nativeElement.focus(F)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return T.\u0275fac=function(F){return new(F||T)(A.Y36(A.SBq),A.Y36(M.tE),A.Y36(A.sBO),A.$8M("tabindex"),A.Y36(B),A.Y36(A.QbO,8))},T.\u0275cmp=A.Xpm({type:T,selectors:[["mat-slide-toggle"]],viewQuery:function(F,V){if(1&F&&A.Gf(D,5),2&F){let te;A.iGM(te=A.CRH())&&(V._inputElement=te.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(F,V){2&F&&(A.Ikx("id",V.id),A.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),A.ekj("mat-checked",V.checked)("mat-disabled",V.disabled)("mat-slide-toggle-label-before","before"==V.labelPosition)("_mat-animation-noopable",V._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[A._Bn([L]),A.qOj],ngContentSelectors:R,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(F,V){if(1&F&&(A.F$t(),A.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),A.NdJ("change",function(Q){return V._onChangeEvent(Q)})("click",function(Q){return V._onInputClick(Q)}),A.qZA(),A.TgZ(5,"span",5),A._UZ(6,"span",6),A.TgZ(7,"span",7),A._UZ(8,"span",8),A.qZA()()(),A.TgZ(9,"span",9,10),A.NdJ("cdkObserveContent",function(){return V._onLabelTextChange()}),A.TgZ(11,"span",11),A._uU(12,"\xa0"),A.qZA(),A.Hsn(13),A.qZA()()),2&F){const te=A.MAs(1),Q=A.MAs(10);A.uIk("for",V.inputId),A.xp6(2),A.ekj("mat-slide-toggle-bar-no-side-margin",!Q.textContent||!Q.textContent.trim()),A.xp6(1),A.Q6J("id",V.inputId)("required",V.required)("tabIndex",V.tabIndex)("checked",V.checked)("disabled",V.disabled),A.uIk("name",V.name)("aria-checked",V.checked)("aria-label",V.ariaLabel)("aria-labelledby",V.ariaLabelledby)("aria-describedby",V.ariaDescribedby),A.xp6(4),A.Q6J("matRippleTrigger",te)("matRippleDisabled",V.disableRipple||V.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",A.VKq(18,v,V._noopAnimations?0:150))}},dependencies:[C.wG,e.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),T})(),pe=(()=>{class T{}return T.\u0275fac=function(F){return new(F||T)},T.\u0275mod=A.oAB({type:T}),T.\u0275inj=A.cJS({}),T})(),Le=(()=>{class T{}return T.\u0275fac=function(F){return new(F||T)},T.\u0275mod=A.oAB({type:T}),T.\u0275inj=A.cJS({imports:[pe,C.si,C.BQ,e.Q8,pe,C.BQ]}),T})()},17009:(Xe,ue,p)=>{"use strict";p.d(ue,{ZX:()=>Te});var e=p(98184),A=p(84080),C=p(36895),M=p(94650),m=p(3238),b=p(4859);p(37340);let Te=(()=>{class F{}return F.\u0275fac=function(te){return new(te||F)},F.\u0275mod=M.oAB({type:F}),F.\u0275inj=M.cJS({imports:[e.U8,A.eL,C.ez,b.ot,m.BQ,m.BQ]}),F})()},96308:(Xe,ue,p)=>{"use strict";p.d(ue,{JX:()=>ge,YE:()=>pe,nU:()=>Ee});var e=p(94650),A=p(12687),C=p(21281),M=p(29521),m=p(3238),b=p(77579),D=p(56451),v=p(37340),R=p(36895);const B=["mat-sort-header",""];function w(ve,De){if(1&ve){const he=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){e.CHM(he);const Be=e.oxw();return e.KtG(Be._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){e.CHM(he);const Be=e.oxw();return e.KtG(Be._disableViewStateAnimation=!1)}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6)(4,"div",7)(5,"div",8),e.qZA()()}if(2&ve){const he=e.oxw();e.Q6J("@arrowOpacity",he._getArrowViewState())("@arrowPosition",he._getArrowViewState())("@allowChildren",he._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",he._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",he._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",he._getArrowDirectionState())}}const L=["*"],ie=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),Te=(0,m.dB)((0,m.Id)(class{}));let pe=(()=>{class ve extends Te{constructor(he){super(),this._defaultOptions=he,this.sortables=new Map,this._stateChanges=new b.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(he){this._direction=he}get disableClear(){return this._disableClear}set disableClear(he){this._disableClear=(0,C.Ig)(he)}register(he){this.sortables.set(he.id,he)}deregister(he){this.sortables.delete(he.id)}sort(he){this.active!=he.id?(this.active=he.id,this.direction=he.start?he.start:this.start):this.direction=this.getNextSortDirection(he),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(he){var Ye,Be,se;if(!he)return"";const le=null!==(Ye=null!==(Be=he?.disableClear)&&void 0!==Be?Be:this.disableClear)&&void 0!==Ye?Ye:!(null===(se=this._defaultOptions)||void 0===se||!se.disableClear);let k=function Le(ve,De){let he=["asc","desc"];return"desc"==ve&&he.reverse(),De||he.push(""),he}(he.start||this.start,le),N=k.indexOf(this.direction)+1;return N>=k.length&&(N=0),k[N]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return ve.\u0275fac=function(he){return new(he||ve)(e.Y36(ie,8))},ve.\u0275dir=e.lG2({type:ve,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),ve})();const T=m.mZ.ENTERING+" "+m.yN.STANDARD_CURVE,W={indicator:(0,v.X$)("indicator",[(0,v.SB)("active-asc, asc",(0,v.oB)({transform:"translateY(0px)"})),(0,v.SB)("active-desc, desc",(0,v.oB)({transform:"translateY(10px)"})),(0,v.eR)("active-asc <=> active-desc",(0,v.jt)(T))]),leftPointer:(0,v.X$)("leftPointer",[(0,v.SB)("active-asc, asc",(0,v.oB)({transform:"rotate(-45deg)"})),(0,v.SB)("active-desc, desc",(0,v.oB)({transform:"rotate(45deg)"})),(0,v.eR)("active-asc <=> active-desc",(0,v.jt)(T))]),rightPointer:(0,v.X$)("rightPointer",[(0,v.SB)("active-asc, asc",(0,v.oB)({transform:"rotate(45deg)"})),(0,v.SB)("active-desc, desc",(0,v.oB)({transform:"rotate(-45deg)"})),(0,v.eR)("active-asc <=> active-desc",(0,v.jt)(T))]),arrowOpacity:(0,v.X$)("arrowOpacity",[(0,v.SB)("desc-to-active, asc-to-active, active",(0,v.oB)({opacity:1})),(0,v.SB)("desc-to-hint, asc-to-hint, hint",(0,v.oB)({opacity:.54})),(0,v.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,v.oB)({opacity:0})),(0,v.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,v.jt)("0ms")),(0,v.eR)("* <=> *",(0,v.jt)(T))]),arrowPosition:(0,v.X$)("arrowPosition",[(0,v.eR)("* => desc-to-hint, * => desc-to-active",(0,v.jt)(T,(0,v.F4)([(0,v.oB)({transform:"translateY(-25%)"}),(0,v.oB)({transform:"translateY(0)"})]))),(0,v.eR)("* => hint-to-desc, * => active-to-desc",(0,v.jt)(T,(0,v.F4)([(0,v.oB)({transform:"translateY(0)"}),(0,v.oB)({transform:"translateY(25%)"})]))),(0,v.eR)("* => asc-to-hint, * => asc-to-active",(0,v.jt)(T,(0,v.F4)([(0,v.oB)({transform:"translateY(25%)"}),(0,v.oB)({transform:"translateY(0)"})]))),(0,v.eR)("* => hint-to-asc, * => active-to-asc",(0,v.jt)(T,(0,v.F4)([(0,v.oB)({transform:"translateY(0)"}),(0,v.oB)({transform:"translateY(-25%)"})]))),(0,v.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,v.oB)({transform:"translateY(0)"})),(0,v.SB)("hint-to-desc, active-to-desc, desc",(0,v.oB)({transform:"translateY(-25%)"})),(0,v.SB)("hint-to-asc, active-to-asc, asc",(0,v.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,v.X$)("allowChildren",[(0,v.eR)("* <=> *",[(0,v.IO)("@*",(0,v.pV)(),{optional:!0})])])};let F=(()=>{class ve{constructor(){this.changes=new b.x}}return ve.\u0275fac=function(he){return new(he||ve)},ve.\u0275prov=e.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();const te={provide:F,deps:[[new e.FiY,new e.tp0,F]],useFactory:function V(ve){return ve||new F}},Q=(0,m.Id)(class{});let Ee=(()=>{class ve extends Q{constructor(he,Ye,Be,se,le,k,N,be){super(),this._intl=he,this._changeDetectorRef=Ye,this._sort=Be,this._columnDef=se,this._focusMonitor=le,this._elementRef=k,this._ariaDescriber=N,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=be&&be.arrowPosition&&(this.arrowPosition=be?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(he){this._updateSortActionDescription(he)}get disableClear(){return this._disableClear}set disableClear(he){this._disableClear=(0,C.Ig)(he)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(he=>{const Ye=!!he;Ye!==this._showIndicatorHint&&(this._setIndicatorHintVisible(Ye),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(he){this._isDisabled()&&he||(this._showIndicatorHint=he,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(he){this._viewState=he||{},this._disableViewStateAnimation&&(this._viewState={toState:he.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(he){!this._isDisabled()&&(he.keyCode===M.L_||he.keyCode===M.K5)&&(he.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const he=this._viewState.fromState;return(he?`${he}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(he){var Ye,Be;this._sortButton&&(null===(Ye=this._ariaDescriber)||void 0===Ye||Ye.removeDescription(this._sortButton,this._sortActionDescription),null===(Be=this._ariaDescriber)||void 0===Be||Be.describe(this._sortButton,he)),this._sortActionDescription=he}_handleStateChanges(){this._rerenderSubscription=(0,D.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return ve.\u0275fac=function(he){return new(he||ve)(e.Y36(F),e.Y36(e.sBO),e.Y36(pe,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(A.tE),e.Y36(e.SBq),e.Y36(A.$s,8),e.Y36(ie,8))},ve.\u0275cmp=e.Xpm({type:ve,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(he,Ye){1&he&&e.NdJ("click",function(){return Ye._handleClick()})("keydown",function(se){return Ye._handleKeydown(se)})("mouseenter",function(){return Ye._setIndicatorHintVisible(!0)})("mouseleave",function(){return Ye._setIndicatorHintVisible(!1)}),2&he&&(e.uIk("aria-sort",Ye._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",Ye._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:B,ngContentSelectors:L,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(he,Ye){1&he&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,w,6,6,"div",2),e.qZA()),2&he&&(e.ekj("mat-sort-header-sorted",Ye._isSorted())("mat-sort-header-position-before","before"===Ye.arrowPosition),e.uIk("tabindex",Ye._isDisabled()?null:0)("role",Ye._isDisabled()?null:"button"),e.xp6(3),e.Q6J("ngIf",Ye._renderArrow()))},dependencies:[R.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[W.indicator,W.leftPointer,W.rightPointer,W.arrowOpacity,W.arrowPosition,W.allowChildren]},changeDetection:0}),ve})(),ge=(()=>{class ve{}return ve.\u0275fac=function(he){return new(he||ve)},ve.\u0275mod=e.oAB({type:ve}),ve.\u0275inj=e.cJS({providers:[te],imports:[R.ez,m.BQ]}),ve})()},86257:(Xe,ue,p)=>{"use strict";p.d(ue,{C0:()=>d,BY:()=>l,VY:()=>u,Vq:()=>c,T5:()=>ht,fd:()=>J});var e=p(84080),A=p(12687),C=p(40445),M=p(21281),m=p(29521),b=p(94650),D=p(83353),v=p(77579),R=p(39646),B=p(68675),w=p(82722);function L(We,et){1&We&&b.Hsn(0)}const O=["*"];let q=(()=>{class We{constructor(ne){this._elementRef=ne}focus(){this._elementRef.nativeElement.focus()}}return We.\u0275fac=function(ne){return new(ne||We)(b.Y36(b.SBq))},We.\u0275dir=b.lG2({type:We,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),We})(),ee=(()=>{class We{constructor(ne){this.template=ne}}return We.\u0275fac=function(ne){return new(ne||We)(b.Y36(b.Rgc))},We.\u0275dir=b.lG2({type:We,selectors:[["","cdkStepLabel",""]]}),We})(),z=0;const pe=new b.OlP("STEPPER_GLOBAL_OPTIONS");let Le=(()=>{class We{constructor(ne,Ue){this._stepper=ne,this.interacted=!1,this.interactedStream=new b.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Ue||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(ne){this._editable=(0,M.Ig)(ne)}get optional(){return this._optional}set optional(ne){this._optional=(0,M.Ig)(ne)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(ne){this._completedOverride=(0,M.Ig)(ne)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(ne){this._customError=(0,M.Ig)(ne)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var ne;return null!==(ne=this._stepperOptions.showError)&&void 0!==ne?ne:null!=this._customError}}return We.\u0275fac=function(ne){return new(ne||We)(b.Y36((0,b.Gpc)(()=>T)),b.Y36(pe,8))},We.\u0275cmp=b.Xpm({type:We,selectors:[["cdk-step"]],contentQueries:function(ne,Ue,He){if(1&ne&&b.Suo(He,ee,5),2&ne){let Oe;b.iGM(Oe=b.CRH())&&(Ue.stepLabel=Oe.first)}},viewQuery:function(ne,Ue){if(1&ne&&b.Gf(b.Rgc,7),2&ne){let He;b.iGM(He=b.CRH())&&(Ue.content=He.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[b.TTD],ngContentSelectors:O,decls:1,vars:0,template:function(ne,Ue){1&ne&&(b.F$t(),b.YNc(0,L,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),We})(),T=(()=>{class We{constructor(ne,Ue,He){this._dir=ne,this._changeDetectorRef=Ue,this._elementRef=He,this._destroyed=new v.x,this.steps=new b.n_E,this._sortedHeaders=new b.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new b.vpe,this._orientation="horizontal",this._groupId=z++}get linear(){return this._linear}set linear(ne){this._linear=(0,M.Ig)(ne)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ne){const Ue=(0,M.su)(ne);var He;this.steps&&this._steps?(this._isValidIndex(Ue),null===(He=this.selected)||void 0===He||He._markAsInteracted(),this._selectedIndex!==Ue&&!this._anyControlsInvalidOrPending(Ue)&&(Ue>=this._selectedIndex||this.steps.toArray()[Ue].editable)&&this._updateSelectedItemIndex(Ue)):this._selectedIndex=Ue}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(ne){this.selectedIndex=ne&&this.steps?this.steps.toArray().indexOf(ne):-1}get orientation(){return this._orientation}set orientation(ne){this._orientation=ne,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===ne)}ngAfterContentInit(){this._steps.changes.pipe((0,B.O)(this._steps),(0,w.R)(this._destroyed)).subscribe(ne=>{this.steps.reset(ne.filter(Ue=>Ue._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,B.O)(this._stepHeader),(0,w.R)(this._destroyed)).subscribe(ne=>{this._sortedHeaders.reset(ne.toArray().sort((Ue,He)=>Ue._elementRef.nativeElement.compareDocumentPosition(He._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new A.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,R.of)()).pipe((0,B.O)(this._layoutDirection()),(0,w.R)(this._destroyed)).subscribe(ne=>this._keyManager.withHorizontalOrientation(ne)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(ne=>ne.reset()),this._stateChanged()}_getStepLabelId(ne){return`cdk-step-label-${this._groupId}-${ne}`}_getStepContentId(ne){return`cdk-step-content-${this._groupId}-${ne}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(ne){const Ue=ne-this._selectedIndex;return Ue<0?"rtl"===this._layoutDirection()?"next":"previous":Ue>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(ne,Ue="number"){const He=this.steps.toArray()[ne],Oe=this._isCurrentStep(ne);return He._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(He,Oe):this._getGuidelineLogic(He,Oe,Ue)}_getDefaultIndicatorLogic(ne,Ue){return ne._showError()&&ne.hasError&&!Ue?"error":!ne.completed||Ue?"number":ne.editable?"edit":"done"}_getGuidelineLogic(ne,Ue,He="number"){return ne._showError()&&ne.hasError&&!Ue?"error":ne.completed&&!Ue?"done":ne.completed&&Ue?He:ne.editable&&Ue?"edit":He}_isCurrentStep(ne){return this._selectedIndex===ne}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(ne){const Ue=this.steps.toArray();this.selectionChange.emit({selectedIndex:ne,previouslySelectedIndex:this._selectedIndex,selectedStep:Ue[ne],previouslySelectedStep:Ue[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(ne):this._keyManager.updateActiveItem(ne),this._selectedIndex=ne,this._stateChanged()}_onKeydown(ne){const Ue=(0,m.Vb)(ne),He=ne.keyCode,Oe=this._keyManager;null==Oe.activeItemIndex||Ue||He!==m.L_&&He!==m.K5?Oe.onKeydown(ne):(this.selectedIndex=Oe.activeItemIndex,ne.preventDefault())}_anyControlsInvalidOrPending(ne){return!!(this._linear&&ne>=0)&&this.steps.toArray().slice(0,ne).some(Ue=>{const He=Ue.stepControl;return(He?He.invalid||He.pending||!Ue.interacted:!Ue.completed)&&!Ue.optional&&!Ue._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const ne=this._elementRef.nativeElement,Ue=(0,D.ht)();return ne===Ue||ne.contains(Ue)}_isValidIndex(ne){return ne>-1&&(!this.steps||ne{class We{constructor(ne){this._stepper=ne,this.type="button"}}return We.\u0275fac=function(ne){return new(ne||We)(b.Y36(T))},We.\u0275dir=b.lG2({type:We,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(ne,Ue){1&ne&&b.NdJ("click",function(){return Ue._stepper.previous()}),2&ne&&b.Ikx("type",Ue.type)},inputs:{type:"type"}}),We})(),V=(()=>{class We{}return We.\u0275fac=function(ne){return new(ne||We)},We.\u0275mod=b.oAB({type:We}),We.\u0275inj=b.cJS({imports:[C.vT]}),We})();var te=p(36895),Q=p(4859),Ee=p(3238),ge=p(97392),ve=p(50727),De=p(63900),he=p(54004),Ye=p(71884),Be=p(37340);function se(We,et){if(1&We&&b.GkF(0,8),2&We){const ne=b.oxw();b.Q6J("ngTemplateOutlet",ne.iconOverrides[ne.state])("ngTemplateOutletContext",ne._getIconContext())}}function le(We,et){if(1&We&&(b.TgZ(0,"span",13),b._uU(1),b.qZA()),2&We){const ne=b.oxw(2);b.xp6(1),b.Oqu(ne._getDefaultTextForState(ne.state))}}function k(We,et){if(1&We&&(b.TgZ(0,"span",14),b._uU(1),b.qZA()),2&We){const ne=b.oxw(2);b.xp6(1),b.Oqu(ne._intl.completedLabel)}}function N(We,et){if(1&We&&(b.TgZ(0,"span",14),b._uU(1),b.qZA()),2&We){const ne=b.oxw(2);b.xp6(1),b.Oqu(ne._intl.editableLabel)}}function be(We,et){if(1&We&&(b.TgZ(0,"mat-icon",13),b._uU(1),b.qZA()),2&We){const ne=b.oxw(2);b.xp6(1),b.Oqu(ne._getDefaultTextForState(ne.state))}}function Z(We,et){if(1&We&&(b.ynx(0,9),b.YNc(1,le,2,1,"span",10),b.YNc(2,k,2,1,"span",11),b.YNc(3,N,2,1,"span",11),b.YNc(4,be,2,1,"mat-icon",12),b.BQk()),2&We){const ne=b.oxw();b.Q6J("ngSwitch",ne.state),b.xp6(1),b.Q6J("ngSwitchCase","number"),b.xp6(1),b.Q6J("ngIf","done"===ne.state),b.xp6(1),b.Q6J("ngIf","edit"===ne.state)}}function de(We,et){if(1&We&&(b.TgZ(0,"div",15),b.GkF(1,16),b.qZA()),2&We){const ne=b.oxw();b.xp6(1),b.Q6J("ngTemplateOutlet",ne._templateLabel().template)}}function xe(We,et){if(1&We&&(b.TgZ(0,"div",15),b._uU(1),b.qZA()),2&We){const ne=b.oxw();b.xp6(1),b.Oqu(ne.label)}}function ot(We,et){if(1&We&&(b.TgZ(0,"div",17),b._uU(1),b.qZA()),2&We){const ne=b.oxw();b.xp6(1),b.Oqu(ne._intl.optionalLabel)}}function Fe(We,et){if(1&We&&(b.TgZ(0,"div",18),b._uU(1),b.qZA()),2&We){const ne=b.oxw();b.xp6(1),b.Oqu(ne.errorMessage)}}function ut(We,et){}function tt(We,et){if(1&We&&(b.Hsn(0),b.YNc(1,ut,0,0,"ng-template",0)),2&We){const ne=b.oxw();b.xp6(1),b.Q6J("cdkPortalOutlet",ne._portal)}}const vt=["*"];function X(We,et){1&We&&b._UZ(0,"div",11)}const nt=function(We,et){return{step:We,i:et}};function Ae(We,et){if(1&We&&(b.ynx(0),b.GkF(1,9),b.YNc(2,X,1,0,"div",10),b.BQk()),2&We){const ne=et.$implicit,Ue=et.index,He=et.last;b.oxw(2);const Oe=b.MAs(4);b.xp6(1),b.Q6J("ngTemplateOutlet",Oe)("ngTemplateOutletContext",b.WLB(3,nt,ne,Ue)),b.xp6(1),b.Q6J("ngIf",!He)}}const ye=function(We){return{animationDuration:We}},_e=function(We,et){return{value:We,params:et}};function Se(We,et){if(1&We){const ne=b.EpF();b.TgZ(0,"div",12),b.NdJ("@horizontalStepTransition.done",function(He){b.CHM(ne);const Oe=b.oxw(2);return b.KtG(Oe._animationDone.next(He))}),b.GkF(1,13),b.qZA()}if(2&We){const ne=et.$implicit,Ue=et.index,He=b.oxw(2);b.Q6J("@horizontalStepTransition",b.WLB(7,_e,He._getAnimationDirection(Ue),b.VKq(5,ye,He._getAnimationDuration())))("id",He._getStepContentId(Ue)),b.uIk("aria-labelledby",He._getStepLabelId(Ue))("aria-expanded",He.selectedIndex===Ue),b.xp6(1),b.Q6J("ngTemplateOutlet",ne.content)}}function Ne(We,et){if(1&We&&(b.TgZ(0,"div",4)(1,"div",5),b.YNc(2,Ae,3,6,"ng-container",6),b.qZA(),b.TgZ(3,"div",7),b.YNc(4,Se,2,10,"div",8),b.qZA()()),2&We){const ne=b.oxw();b.xp6(2),b.Q6J("ngForOf",ne.steps),b.xp6(2),b.Q6J("ngForOf",ne.steps)}}function Ce(We,et){if(1&We){const ne=b.EpF();b.TgZ(0,"div",15),b.GkF(1,9),b.TgZ(2,"div",16)(3,"div",17),b.NdJ("@verticalStepTransition.done",function(He){b.CHM(ne);const Oe=b.oxw(2);return b.KtG(Oe._animationDone.next(He))}),b.TgZ(4,"div",18),b.GkF(5,13),b.qZA()()()()}if(2&We){const ne=et.$implicit,Ue=et.index,He=et.last,Oe=b.oxw(2),Re=b.MAs(4);b.xp6(1),b.Q6J("ngTemplateOutlet",Re)("ngTemplateOutletContext",b.WLB(9,nt,ne,Ue)),b.xp6(1),b.ekj("mat-stepper-vertical-line",!He),b.xp6(1),b.Q6J("@verticalStepTransition",b.WLB(14,_e,Oe._getAnimationDirection(Ue),b.VKq(12,ye,Oe._getAnimationDuration())))("id",Oe._getStepContentId(Ue)),b.uIk("aria-labelledby",Oe._getStepLabelId(Ue))("aria-expanded",Oe.selectedIndex===Ue),b.xp6(2),b.Q6J("ngTemplateOutlet",ne.content)}}function fe(We,et){if(1&We&&(b.ynx(0),b.YNc(1,Ce,6,17,"div",14),b.BQk()),2&We){const ne=b.oxw();b.xp6(1),b.Q6J("ngForOf",ne.steps)}}function r(We,et){if(1&We){const ne=b.EpF();b.TgZ(0,"mat-step-header",19),b.NdJ("click",function(){const Oe=b.CHM(ne).step;return b.KtG(Oe.select())})("keydown",function(He){b.CHM(ne);const Oe=b.oxw();return b.KtG(Oe._onKeydown(He))}),b.qZA()}if(2&We){const ne=et.step,Ue=et.i,He=b.oxw();b.ekj("mat-horizontal-stepper-header","horizontal"===He.orientation)("mat-vertical-stepper-header","vertical"===He.orientation),b.Q6J("tabIndex",He._getFocusIndex()===Ue?0:-1)("id",He._getStepLabelId(Ue))("index",Ue)("state",He._getIndicatorType(Ue,ne.state))("label",ne.stepLabel||ne.label)("selected",He.selectedIndex===Ue)("active",He._stepIsNavigable(Ue,ne))("optional",ne.optional)("errorMessage",ne.errorMessage)("iconOverrides",He._iconOverrides)("disableRipple",He.disableRipple||!He._stepIsNavigable(Ue,ne))("color",ne.color||He.color),b.uIk("aria-posinset",Ue+1)("aria-setsize",He.steps.length)("aria-controls",He._getStepContentId(Ue))("aria-selected",He.selectedIndex==Ue)("aria-label",ne.ariaLabel||null)("aria-labelledby",!ne.ariaLabel&&ne.ariaLabelledby?ne.ariaLabelledby:null)("aria-disabled",!He._stepIsNavigable(Ue,ne)||null)}}let u=(()=>{class We extends ee{}return We.\u0275fac=function(){let et;return function(Ue){return(et||(et=b.n5z(We)))(Ue||We)}}(),We.\u0275dir=b.lG2({type:We,selectors:[["","matStepLabel",""]],features:[b.qOj]}),We})(),_=(()=>{class We{constructor(){this.changes=new v.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return We.\u0275fac=function(ne){return new(ne||We)},We.\u0275prov=b.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"}),We})();const h={provide:_,deps:[[new b.FiY,new b.tp0,_]],useFactory:function E(We){return We||new _}},a=(0,Ee.pj)(class extends q{constructor(et){super(et)}},"primary");let i=(()=>{class We extends a{constructor(ne,Ue,He,Oe){super(He),this._intl=ne,this._focusMonitor=Ue,this._intlSubscription=ne.changes.subscribe(()=>Oe.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(ne,Ue){ne?this._focusMonitor.focusVia(this._elementRef,ne,Ue):this._elementRef.nativeElement.focus(Ue)}_stringLabel(){return this.label instanceof u?null:this.label}_templateLabel(){return this.label instanceof u?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(ne){return"number"==ne?`${this.index+1}`:"edit"==ne?"create":"error"==ne?"warning":ne}}return We.\u0275fac=function(ne){return new(ne||We)(b.Y36(_),b.Y36(A.tE),b.Y36(b.SBq),b.Y36(b.sBO))},We.\u0275cmp=b.Xpm({type:We,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[b.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(ne,Ue){1&ne&&(b._UZ(0,"div",0),b.TgZ(1,"div")(2,"div",1),b.YNc(3,se,1,2,"ng-container",2),b.YNc(4,Z,5,4,"ng-container",3),b.qZA()(),b.TgZ(5,"div",4),b.YNc(6,de,2,1,"div",5),b.YNc(7,xe,2,1,"div",5),b.YNc(8,ot,2,1,"div",6),b.YNc(9,Fe,2,1,"div",7),b.qZA()),2&ne&&(b.Q6J("matRippleTrigger",Ue._getHostElement())("matRippleDisabled",Ue.disableRipple),b.xp6(1),b.Gre("mat-step-icon-state-",Ue.state," mat-step-icon"),b.ekj("mat-step-icon-selected",Ue.selected),b.xp6(1),b.Q6J("ngSwitch",!(!Ue.iconOverrides||!Ue.iconOverrides[Ue.state])),b.xp6(1),b.Q6J("ngSwitchCase",!0),b.xp6(2),b.ekj("mat-step-label-active",Ue.active)("mat-step-label-selected",Ue.selected)("mat-step-label-error","error"==Ue.state),b.xp6(1),b.Q6J("ngIf",Ue._templateLabel()),b.xp6(1),b.Q6J("ngIf",Ue._stringLabel()),b.xp6(1),b.Q6J("ngIf",Ue.optional&&"error"!=Ue.state),b.xp6(1),b.Q6J("ngIf","error"==Ue.state))},dependencies:[te.O5,te.tP,te.RF,te.n9,te.ED,ge.Hw,Ee.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),We})();const t="500ms",n="225ms",o={horizontalStepTransition:(0,Be.X$)("horizontalStepTransition",[(0,Be.SB)("previous",(0,Be.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Be.SB)("current",(0,Be.oB)({transform:"none",visibility:"inherit"})),(0,Be.SB)("next",(0,Be.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Be.eR)("* => *",(0,Be.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:t}})]),verticalStepTransition:(0,Be.X$)("verticalStepTransition",[(0,Be.SB)("previous",(0,Be.oB)({height:"0px",visibility:"hidden"})),(0,Be.SB)("next",(0,Be.oB)({height:"0px",visibility:"hidden"})),(0,Be.SB)("current",(0,Be.oB)({height:"*",visibility:"inherit"})),(0,Be.eR)("* <=> current",(0,Be.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:n}})])};let s=(()=>{class We{constructor(ne){this.templateRef=ne}}return We.\u0275fac=function(ne){return new(ne||We)(b.Y36(b.Rgc))},We.\u0275dir=b.lG2({type:We,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),We})(),l=(()=>{class We{constructor(ne){this._template=ne}}return We.\u0275fac=function(ne){return new(ne||We)(b.Y36(b.Rgc))},We.\u0275dir=b.lG2({type:We,selectors:[["ng-template","matStepContent",""]]}),We})(),d=(()=>{class We extends Le{constructor(ne,Ue,He,Oe){super(ne,Oe),this._errorStateMatcher=Ue,this._viewContainerRef=He,this._isSelected=ve.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,De.w)(()=>this._stepper.selectionChange.pipe((0,he.U)(ne=>ne.selectedStep===this),(0,B.O)(this._stepper.selected===this)))).subscribe(ne=>{ne&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(ne,Ue){return this._errorStateMatcher.isErrorState(ne,Ue)||!!(ne&&ne.invalid&&this.interacted)}}return We.\u0275fac=function(ne){return new(ne||We)(b.Y36((0,b.Gpc)(()=>c)),b.Y36(Ee.rD,4),b.Y36(b.s_b),b.Y36(pe,8))},We.\u0275cmp=b.Xpm({type:We,selectors:[["mat-step"]],contentQueries:function(ne,Ue,He){if(1&ne&&(b.Suo(He,u,5),b.Suo(He,l,5)),2&ne){let Oe;b.iGM(Oe=b.CRH())&&(Ue.stepLabel=Oe.first),b.iGM(Oe=b.CRH())&&(Ue._lazyContent=Oe.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[b._Bn([{provide:Ee.rD,useExisting:We},{provide:Le,useExisting:We}]),b.qOj],ngContentSelectors:vt,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(ne,Ue){1&ne&&(b.F$t(),b.YNc(0,tt,2,1,"ng-template"))},dependencies:[e.Pl],encapsulation:2,changeDetection:0}),We})(),c=(()=>{class We extends T{constructor(ne,Ue,He){super(ne,Ue,He),this.steps=new b.n_E,this.animationDone=new b.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new v.x,this._animationDuration="";const Oe=He.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===Oe?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(ne){this._animationDuration=/^\d+$/.test(ne)?ne+"ms":ne}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:ne,templateRef:Ue})=>this._iconOverrides[ne]=Ue),this.steps.changes.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,Ye.x)((ne,Ue)=>ne.fromState===Ue.fromState&&ne.toState===Ue.toState),(0,w.R)(this._destroyed)).subscribe(ne=>{"current"===ne.toState&&this.animationDone.emit()})}_stepIsNavigable(ne,Ue){return Ue.completed||this.selectedIndex===ne||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?t:n}}return We.\u0275fac=function(ne){return new(ne||We)(b.Y36(C.Is,8),b.Y36(b.sBO),b.Y36(b.SBq))},We.\u0275cmp=b.Xpm({type:We,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(ne,Ue,He){if(1&ne&&(b.Suo(He,d,5),b.Suo(He,s,5)),2&ne){let Oe;b.iGM(Oe=b.CRH())&&(Ue._steps=Oe),b.iGM(Oe=b.CRH())&&(Ue._icons=Oe)}},viewQuery:function(ne,Ue){if(1&ne&&b.Gf(i,5),2&ne){let He;b.iGM(He=b.CRH())&&(Ue._stepHeader=He)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(ne,Ue){2&ne&&(b.uIk("aria-orientation",Ue.orientation),b.ekj("mat-stepper-horizontal","horizontal"===Ue.orientation)("mat-stepper-vertical","vertical"===Ue.orientation)("mat-stepper-label-position-end","horizontal"===Ue.orientation&&"end"==Ue.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Ue.orientation&&"bottom"==Ue.labelPosition)("mat-stepper-header-position-bottom","bottom"===Ue.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[b._Bn([{provide:T,useExisting:We}]),b.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(ne,Ue){1&ne&&(b.ynx(0,0),b.YNc(1,Ne,5,2,"div",1),b.YNc(2,fe,2,1,"ng-container",2),b.BQk(),b.YNc(3,r,1,23,"ng-template",null,3,b.W1O)),2&ne&&(b.Q6J("ngSwitch",Ue.orientation),b.xp6(1),b.Q6J("ngSwitchCase","horizontal"),b.xp6(1),b.Q6J("ngSwitchCase","vertical"))},dependencies:[te.sg,te.O5,te.tP,te.RF,te.n9,i],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[o.horizontalStepTransition,o.verticalStepTransition]},changeDetection:0}),We})(),J=(()=>{class We extends F{}return We.\u0275fac=function(){let et;return function(Ue){return(et||(et=b.n5z(We)))(Ue||We)}}(),We.\u0275dir=b.lG2({type:We,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(ne,Ue){2&ne&&b.Ikx("type",Ue.type)},inputs:{type:"type"},features:[b.qOj]}),We})(),ht=(()=>{class We{}return We.\u0275fac=function(ne){return new(ne||We)},We.\u0275mod=b.oAB({type:We}),We.\u0275inj=b.cJS({providers:[h,Ee.rD],imports:[Ee.BQ,te.ez,e.eL,Q.ot,V,ge.Ps,Ee.si,Ee.BQ]}),We})()},30671:(Xe,ue,p)=>{"use strict";p.d(ue,{ev:()=>jt,Dz:()=>st,w1:()=>ke,ge:()=>at,fO:()=>Ke,XQ:()=>Cn,as:()=>an,Gk:()=>Dt,nj:()=>on,BZ:()=>we,by:()=>zn,p0:()=>ln});var e=p(94650),A=p(40445),C=p(21281),M=p(95017),m=p(83353),b=p(67376),D=p(36895),v=p(77579),R=p(32076),B=p(61135),w=p(45191),L=p(39646),O=p(82722),q=p(95698);const ee=[[["caption"]],[["colgroup"],["col"]]],z=["caption","colgroup, col"];function pe(bt){return class extends bt{constructor(...Lt){super(...Lt),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Lt){const pt=this._sticky;this._sticky=(0,C.Ig)(Lt),this._hasStickyChanged=pt!==this._sticky}hasStickyChanged(){const Lt=this._hasStickyChanged;return this._hasStickyChanged=!1,Lt}resetStickyChanged(){this._hasStickyChanged=!1}}}const Le=new e.OlP("CDK_TABLE");let W=(()=>{class bt{constructor(pt){this.template=pt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkCellDef",""]]}),bt})(),F=(()=>{class bt{constructor(pt){this.template=pt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkHeaderCellDef",""]]}),bt})(),V=(()=>{class bt{constructor(pt){this.template=pt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkFooterCellDef",""]]}),bt})();class te{}const Q=pe(te);let Ee=(()=>{class bt extends Q{constructor(pt){super(),this._table=pt,this._stickyEnd=!1}get name(){return this._name}set name(pt){this._setNameInput(pt)}get stickyEnd(){return this._stickyEnd}set stickyEnd(pt){const rt=this._stickyEnd;this._stickyEnd=(0,C.Ig)(pt),this._hasStickyChanged=rt!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(pt){pt&&(this._name=pt,this.cssClassFriendlyName=pt.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(Le,8))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkColumnDef",""]],contentQueries:function(pt,rt,St){if(1&pt&&(e.Suo(St,W,5),e.Suo(St,F,5),e.Suo(St,V,5)),2&pt){let $;e.iGM($=e.CRH())&&(rt.cell=$.first),e.iGM($=e.CRH())&&(rt.headerCell=$.first),e.iGM($=e.CRH())&&(rt.footerCell=$.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:bt}]),e.qOj]}),bt})();class ge{constructor(Lt,pt){pt.nativeElement.classList.add(...Lt._columnCssClassName)}}let ve=(()=>{class bt extends ge{constructor(pt,rt){super(pt,rt)}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(Ee),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),bt})(),he=(()=>{class bt extends ge{constructor(pt,rt){var St;if(super(pt,rt),1===(null===(St=pt._table)||void 0===St?void 0:St._elementRef.nativeElement.nodeType)){const $=pt._table._elementRef.nativeElement.getAttribute("role");rt.nativeElement.setAttribute("role","grid"===$||"treegrid"===$?"gridcell":"cell")}}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(Ee),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),bt})();class Ye{constructor(){this.tasks=[],this.endTasks=[]}}const Be=new e.OlP("_COALESCED_STYLE_SCHEDULER");let se=(()=>{class bt{constructor(pt){this._ngZone=pt,this._currentSchedule=null,this._destroyed=new v.x}schedule(pt){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(pt)}scheduleEnd(pt){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(pt)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Ye,this._getScheduleObservable().pipe((0,O.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const pt=this._currentSchedule;this._currentSchedule=new Ye;for(const rt of pt.tasks)rt();for(const rt of pt.endTasks)rt()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,R.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,q.q)(1))}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.LFG(e.R0b))},bt.\u0275prov=e.Yz7({token:bt,factory:bt.\u0275fac}),bt})(),k=(()=>{class bt{constructor(pt,rt){this.template=pt,this._differs=rt}ngOnChanges(pt){if(!this._columnsDiffer){const rt=pt.columns&&pt.columns.currentValue||[];this._columnsDiffer=this._differs.find(rt).create(),this._columnsDiffer.diff(rt)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(pt){return this instanceof Z?pt.headerCell.template:this instanceof ot?pt.footerCell.template:pt.cell.template}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},bt.\u0275dir=e.lG2({type:bt,features:[e.TTD]}),bt})();class N extends k{}const be=pe(N);let Z=(()=>{class bt extends be{constructor(pt,rt,St){super(pt,rt),this._table=St}ngOnChanges(pt){super.ngOnChanges(pt)}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Le,8))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),bt})();class de extends k{}const xe=pe(de);let ot=(()=>{class bt extends xe{constructor(pt,rt,St){super(pt,rt),this._table=St}ngOnChanges(pt){super.ngOnChanges(pt)}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Le,8))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),bt})(),Fe=(()=>{class bt extends k{constructor(pt,rt,St){super(pt,rt),this._table=St}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Le,8))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),bt})(),ut=(()=>{class bt{constructor(pt){this._viewContainer=pt,bt.mostRecentCellOutlet=this}ngOnDestroy(){bt.mostRecentCellOutlet===this&&(bt.mostRecentCellOutlet=null)}}return bt.mostRecentCellOutlet=null,bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.s_b))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkCellOutlet",""]]}),bt})(),tt=(()=>{class bt{}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275cmp=e.Xpm({type:bt,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,rt){1&pt&&e.GkF(0,0)},dependencies:[ut],encapsulation:2}),bt})(),X=(()=>{class bt{}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275cmp=e.Xpm({type:bt,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,rt){1&pt&&e.GkF(0,0)},dependencies:[ut],encapsulation:2}),bt})(),nt=(()=>{class bt{constructor(pt){this.templateRef=pt,this._contentClassName="cdk-no-data-row"}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc))},bt.\u0275dir=e.lG2({type:bt,selectors:[["ng-template","cdkNoDataRow",""]]}),bt})();const Ae=["top","bottom","left","right"];class ye{constructor(Lt,pt,rt,St,$=!0,ze=!0,At){this._isNativeHtmlTable=Lt,this._stickCellCss=pt,this.direction=rt,this._coalescedStyleScheduler=St,this._isBrowser=$,this._needsPositionStickyOnElement=ze,this._positionListener=At,this._cachedCellWidths=[],this._borderCellCss={top:`${pt}-border-elem-top`,bottom:`${pt}-border-elem-bottom`,left:`${pt}-border-elem-left`,right:`${pt}-border-elem-right`}}clearStickyPositioning(Lt,pt){const rt=[];for(const St of Lt)if(St.nodeType===St.ELEMENT_NODE){rt.push(St);for(let $=0;${for(const St of rt)this._removeStickyStyle(St,pt)})}updateStickyColumns(Lt,pt,rt,St=!0){if(!Lt.length||!this._isBrowser||!pt.some(Hn=>Hn)&&!rt.some(Hn=>Hn))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const $=Lt[0],ze=$.children.length,At=this._getCellWidths($,St),Pt=this._getStickyStartColumnPositions(At,pt),Xt=this._getStickyEndColumnPositions(At,rt),yn=pt.lastIndexOf(!0),Zn=rt.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Hn="rtl"===this.direction,Xn=Hn?"right":"left",mi=Hn?"left":"right";for(const di of Lt)for(let Jn=0;Jnpt[Jn]?di:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Zn?[]:At.slice(Zn).map((di,Jn)=>rt[Jn+Zn]?di:null).reverse()}))})}stickRows(Lt,pt,rt){if(!this._isBrowser)return;const St="bottom"===rt?Lt.slice().reverse():Lt,$="bottom"===rt?pt.slice().reverse():pt,ze=[],At=[],Pt=[];for(let yn=0,Zn=0;yn{for(let Hn=0;Hn{pt.some(St=>!St)?this._removeStickyStyle(rt,["bottom"]):this._addStickyStyle(rt,"bottom",0,!1)})}_removeStickyStyle(Lt,pt){for(const St of pt)Lt.style[St]="",Lt.classList.remove(this._borderCellCss[St]);Ae.some(St=>-1===pt.indexOf(St)&&Lt.style[St])?Lt.style.zIndex=this._getCalculatedZIndex(Lt):(Lt.style.zIndex="",this._needsPositionStickyOnElement&&(Lt.style.position=""),Lt.classList.remove(this._stickCellCss))}_addStickyStyle(Lt,pt,rt,St){Lt.classList.add(this._stickCellCss),St&&Lt.classList.add(this._borderCellCss[pt]),Lt.style[pt]=`${rt}px`,Lt.style.zIndex=this._getCalculatedZIndex(Lt),this._needsPositionStickyOnElement&&(Lt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Lt){const pt={top:100,bottom:10,left:1,right:1};let rt=0;for(const St of Ae)Lt.style[St]&&(rt+=pt[St]);return rt?`${rt}`:""}_getCellWidths(Lt,pt=!0){if(!pt&&this._cachedCellWidths.length)return this._cachedCellWidths;const rt=[],St=Lt.children;for(let $=0;$0;$--)pt[$]&&(rt[$]=St,St+=Lt[$]);return rt}}const E=new e.OlP("CDK_SPL");let a=(()=>{class bt{constructor(pt,rt){this.viewContainer=pt,this.elementRef=rt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.s_b),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","rowOutlet",""]]}),bt})(),i=(()=>{class bt{constructor(pt,rt){this.viewContainer=pt,this.elementRef=rt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.s_b),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","headerRowOutlet",""]]}),bt})(),t=(()=>{class bt{constructor(pt,rt){this.viewContainer=pt,this.elementRef=rt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.s_b),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","footerRowOutlet",""]]}),bt})(),n=(()=>{class bt{constructor(pt,rt){this.viewContainer=pt,this.elementRef=rt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.s_b),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","noDataRowOutlet",""]]}),bt})(),l=(()=>{class bt{constructor(pt,rt,St,$,ze,At,Pt,Xt,yn,Zn,Hn,Xn){this._differs=pt,this._changeDetectorRef=rt,this._elementRef=St,this._dir=ze,this._platform=Pt,this._viewRepeater=Xt,this._coalescedStyleScheduler=yn,this._viewportRuler=Zn,this._stickyPositioningListener=Hn,this._ngZone=Xn,this._onDestroy=new v.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new B.X({start:0,end:Number.MAX_VALUE}),$||this._elementRef.nativeElement.setAttribute("role","table"),this._document=At,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(pt){this._trackByFn=pt}get dataSource(){return this._dataSource}set dataSource(pt){this._dataSource!==pt&&this._switchDataSource(pt)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(pt){this._multiTemplateDataRows=(0,C.Ig)(pt),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(pt){this._fixedLayout=(0,C.Ig)(pt),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((pt,rt)=>this.trackBy?this.trackBy(rt.dataIndex,rt.data):rt),this._viewportRuler.change().pipe((0,O.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const rt=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||rt,this._forceRecalculateCellWidths=rt,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(pt=>{pt.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,M.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const pt=this._dataDiffer.diff(this._renderRows);if(!pt)return this._updateNoDataRow(),void this.contentChanged.next();const rt=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(pt,rt,(St,$,ze)=>this._getEmbeddedViewArgs(St.item,ze),St=>St.item.data,St=>{1===St.operation&&St.context&&this._renderCellTemplateForItem(St.record.item.rowDef,St.context)}),this._updateRowIndexContext(),pt.forEachIdentityChange(St=>{rt.get(St.currentIndex).context.$implicit=St.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,q.q)(1),(0,O.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(pt){this._customColumnDefs.add(pt)}removeColumnDef(pt){this._customColumnDefs.delete(pt)}addRowDef(pt){this._customRowDefs.add(pt)}removeRowDef(pt){this._customRowDefs.delete(pt)}addHeaderRowDef(pt){this._customHeaderRowDefs.add(pt),this._headerRowDefChanged=!0}removeHeaderRowDef(pt){this._customHeaderRowDefs.delete(pt),this._headerRowDefChanged=!0}addFooterRowDef(pt){this._customFooterRowDefs.add(pt),this._footerRowDefChanged=!0}removeFooterRowDef(pt){this._customFooterRowDefs.delete(pt),this._footerRowDefChanged=!0}setNoDataRow(pt){this._customNoDataRow=pt}updateStickyHeaderRowStyles(){const pt=this._getRenderedRows(this._headerRowOutlet),St=this._elementRef.nativeElement.querySelector("thead");St&&(St.style.display=pt.length?"":"none");const $=this._headerRowDefs.map(ze=>ze.sticky);this._stickyStyler.clearStickyPositioning(pt,["top"]),this._stickyStyler.stickRows(pt,$,"top"),this._headerRowDefs.forEach(ze=>ze.resetStickyChanged())}updateStickyFooterRowStyles(){const pt=this._getRenderedRows(this._footerRowOutlet),St=this._elementRef.nativeElement.querySelector("tfoot");St&&(St.style.display=pt.length?"":"none");const $=this._footerRowDefs.map(ze=>ze.sticky);this._stickyStyler.clearStickyPositioning(pt,["bottom"]),this._stickyStyler.stickRows(pt,$,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,$),this._footerRowDefs.forEach(ze=>ze.resetStickyChanged())}updateStickyColumnStyles(){const pt=this._getRenderedRows(this._headerRowOutlet),rt=this._getRenderedRows(this._rowOutlet),St=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...pt,...rt,...St],["left","right"]),this._stickyColumnStylesNeedReset=!1),pt.forEach(($,ze)=>{this._addStickyColumnStyles([$],this._headerRowDefs[ze])}),this._rowDefs.forEach($=>{const ze=[];for(let At=0;At{this._addStickyColumnStyles([$],this._footerRowDefs[ze])}),Array.from(this._columnDefsByName.values()).forEach($=>$.resetStickyChanged())}_getAllRenderRows(){const pt=[],rt=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let St=0;St{const At=St&&St.has(ze)?St.get(ze):[];if(At.length){const Pt=At.shift();return Pt.dataIndex=rt,Pt}return{data:pt,rowDef:ze,dataIndex:rt}})}_cacheColumnDefs(){this._columnDefsByName.clear(),d(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(rt=>{this._columnDefsByName.has(rt.name),this._columnDefsByName.set(rt.name,rt)})}_cacheRowDefs(){this._headerRowDefs=d(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=d(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=d(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const pt=this._rowDefs.filter(rt=>!rt.when);this._defaultRowDef=pt[0]}_renderUpdatedColumns(){const pt=(ze,At)=>ze||!!At.getColumnsDiff(),rt=this._rowDefs.reduce(pt,!1);rt&&this._forceRenderDataRows();const St=this._headerRowDefs.reduce(pt,!1);St&&this._forceRenderHeaderRows();const $=this._footerRowDefs.reduce(pt,!1);return $&&this._forceRenderFooterRows(),rt||St||$}_switchDataSource(pt){this._data=[],(0,M.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),pt||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=pt}_observeRenderChanges(){if(!this.dataSource)return;let pt;(0,M.Z9)(this.dataSource)?pt=this.dataSource.connect(this):(0,w.b)(this.dataSource)?pt=this.dataSource:Array.isArray(this.dataSource)&&(pt=(0,L.of)(this.dataSource)),this._renderChangeSubscription=pt.pipe((0,O.R)(this._onDestroy)).subscribe(rt=>{this._data=rt||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((pt,rt)=>this._renderRow(this._headerRowOutlet,pt,rt)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((pt,rt)=>this._renderRow(this._footerRowOutlet,pt,rt)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(pt,rt){const St=Array.from(rt.columns||[]).map(At=>this._columnDefsByName.get(At)),$=St.map(At=>At.sticky),ze=St.map(At=>At.stickyEnd);this._stickyStyler.updateStickyColumns(pt,$,ze,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(pt){const rt=[];for(let St=0;St!$.when||$.when(rt,pt));else{let $=this._rowDefs.find(ze=>ze.when&&ze.when(rt,pt))||this._defaultRowDef;$&&St.push($)}return St}_getEmbeddedViewArgs(pt,rt){return{templateRef:pt.rowDef.template,context:{$implicit:pt.data},index:rt}}_renderRow(pt,rt,St,$={}){const ze=pt.viewContainer.createEmbeddedView(rt.template,$,St);return this._renderCellTemplateForItem(rt,$),ze}_renderCellTemplateForItem(pt,rt){for(let St of this._getCellTemplates(pt))ut.mostRecentCellOutlet&&ut.mostRecentCellOutlet._viewContainer.createEmbeddedView(St,rt);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const pt=this._rowOutlet.viewContainer;for(let rt=0,St=pt.length;rt{const St=this._columnDefsByName.get(rt);return pt.extractCellTemplate(St)}):[]}_applyNativeTableSections(){const pt=this._document.createDocumentFragment(),rt=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const St of rt){const $=this._document.createElement(St.tag);$.setAttribute("role","rowgroup");for(const ze of St.outlets)$.appendChild(ze.elementRef.nativeElement);pt.appendChild($)}this._elementRef.nativeElement.appendChild(pt)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const pt=(rt,St)=>rt||St.hasStickyChanged();this._headerRowDefs.reduce(pt,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(pt,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(pt,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ye(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,L.of)()).pipe((0,O.R)(this._onDestroy)).subscribe(rt=>{this._stickyStyler.direction=rt,this.updateStickyColumnStyles()})}_getOwnDefs(pt){return pt.filter(rt=>!rt._table||rt._table===this)}_updateNoDataRow(){const pt=this._customNoDataRow||this._noDataRow;if(!pt)return;const rt=0===this._rowOutlet.viewContainer.length;if(rt===this._isShowingNoDataRow)return;const St=this._noDataRowOutlet.viewContainer;if(rt){const $=St.createEmbeddedView(pt.templateRef),ze=$.rootNodes[0];1===$.rootNodes.length&&ze?.nodeType===this._document.ELEMENT_NODE&&(ze.setAttribute("role","row"),ze.classList.add(pt._contentClassName))}else St.clear();this._isShowingNoDataRow=rt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(A.Is,8),e.Y36(D.K0),e.Y36(m.t4),e.Y36(M.k),e.Y36(Be),e.Y36(b.rL),e.Y36(E,12),e.Y36(e.R0b,8))},bt.\u0275cmp=e.Xpm({type:bt,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(pt,rt,St){if(1&pt&&(e.Suo(St,nt,5),e.Suo(St,Ee,5),e.Suo(St,Fe,5),e.Suo(St,Z,5),e.Suo(St,ot,5)),2&pt){let $;e.iGM($=e.CRH())&&(rt._noDataRow=$.first),e.iGM($=e.CRH())&&(rt._contentColumnDefs=$),e.iGM($=e.CRH())&&(rt._contentRowDefs=$),e.iGM($=e.CRH())&&(rt._contentHeaderRowDefs=$),e.iGM($=e.CRH())&&(rt._contentFooterRowDefs=$)}},viewQuery:function(pt,rt){if(1&pt&&(e.Gf(a,7),e.Gf(i,7),e.Gf(t,7),e.Gf(n,7)),2&pt){let St;e.iGM(St=e.CRH())&&(rt._rowOutlet=St.first),e.iGM(St=e.CRH())&&(rt._headerRowOutlet=St.first),e.iGM(St=e.CRH())&&(rt._footerRowOutlet=St.first),e.iGM(St=e.CRH())&&(rt._noDataRowOutlet=St.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(pt,rt){2&pt&&e.ekj("cdk-table-fixed-layout",rt.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:Le,useExisting:bt},{provide:M.k,useClass:M.yy},{provide:Be,useClass:se},{provide:E,useValue:null}])],ngContentSelectors:z,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(pt,rt){1&pt&&(e.F$t(ee),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[a,i,t,n],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),bt})();function d(bt,Lt){return bt.concat(Array.from(Lt))}let J=(()=>{class bt{}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275mod=e.oAB({type:bt}),bt.\u0275inj=e.cJS({imports:[b.Cl]}),bt})();var ht=p(3238),We=p(56451),et=p(39841),ne=p(54004);const Ue=[[["caption"]],[["colgroup"],["col"]]],He=["caption","colgroup, col"];let we=(()=>{class bt extends l{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275cmp=e.Xpm({type:bt,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(pt,rt){2&pt&&e.ekj("mat-table-fixed-layout",rt.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:M.k,useClass:M.yy},{provide:l,useExisting:bt},{provide:Le,useExisting:bt},{provide:Be,useClass:se},{provide:E,useValue:null}]),e.qOj],ngContentSelectors:He,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(pt,rt){1&pt&&(e.F$t(Ue),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[a,i,t,n],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),bt})(),st=(()=>{class bt extends W{}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:W,useExisting:bt}]),e.qOj]}),bt})(),Ke=(()=>{class bt extends F{}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:F,useExisting:bt}]),e.qOj]}),bt})(),ke=(()=>{class bt extends Ee{get name(){return this._name}set name(pt){this._setNameInput(pt)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:Ee,useExisting:bt},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:bt}]),e.qOj]}),bt})(),at=(()=>{class bt extends ve{}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),bt})(),jt=(()=>{class bt extends he{}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),bt})(),an=(()=>{class bt extends Z{}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:Z,useExisting:bt}]),e.qOj]}),bt})(),on=(()=>{class bt extends Fe{}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Fe,useExisting:bt}]),e.qOj]}),bt})(),Cn=(()=>{class bt extends tt{}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275cmp=e.Xpm({type:bt,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:tt,useExisting:bt}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,rt){1&pt&&e.GkF(0,0)},dependencies:[ut],encapsulation:2}),bt})(),Dt=(()=>{class bt extends X{}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275cmp=e.Xpm({type:bt,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:X,useExisting:bt}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,rt){1&pt&&e.GkF(0,0)},dependencies:[ut],encapsulation:2}),bt})(),ln=(()=>{class bt{}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275mod=e.oAB({type:bt}),bt.\u0275inj=e.cJS({imports:[J,ht.BQ,ht.BQ]}),bt})();class gn extends M.o2{constructor(Lt=[]){super(),this._renderData=new B.X([]),this._filter=new B.X(""),this._internalPageChanges=new v.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(pt,rt)=>{const St=pt[rt];if((0,C.t6)(St)){const $=Number(St);return $<9007199254740991?$:St}return St},this.sortData=(pt,rt)=>{const St=rt.active,$=rt.direction;return St&&""!=$?pt.sort((ze,At)=>{let Pt=this.sortingDataAccessor(ze,St),Xt=this.sortingDataAccessor(At,St);const yn=typeof Pt,Zn=typeof Xt;yn!==Zn&&("number"===yn&&(Pt+=""),"number"===Zn&&(Xt+=""));let Hn=0;return null!=Pt&&null!=Xt?Pt>Xt?Hn=1:Pt{const St=Object.keys(pt).reduce((ze,At)=>ze+pt[At]+"\u25ec","").toLowerCase(),$=rt.trim().toLowerCase();return-1!=St.indexOf($)},this._data=new B.X(Lt),this._updateChangeSubscription()}get data(){return this._data.value}set data(Lt){Lt=Array.isArray(Lt)?Lt:[],this._data.next(Lt),this._renderChangesSubscription||this._filterData(Lt)}get filter(){return this._filter.value}set filter(Lt){this._filter.next(Lt),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Lt){this._sort=Lt,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Lt){this._paginator=Lt,this._updateChangeSubscription()}_updateChangeSubscription(){var Lt;const pt=this._sort?(0,We.T)(this._sort.sortChange,this._sort.initialized):(0,L.of)(null),rt=this._paginator?(0,We.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,L.of)(null),$=(0,et.a)([this._data,this._filter]).pipe((0,ne.U)(([Pt])=>this._filterData(Pt))),ze=(0,et.a)([$,pt]).pipe((0,ne.U)(([Pt])=>this._orderData(Pt))),At=(0,et.a)([ze,rt]).pipe((0,ne.U)(([Pt])=>this._pageData(Pt)));null===(Lt=this._renderChangesSubscription)||void 0===Lt||Lt.unsubscribe(),this._renderChangesSubscription=At.subscribe(Pt=>this._renderData.next(Pt))}_filterData(Lt){return this.filteredData=null==this.filter||""===this.filter?Lt:Lt.filter(pt=>this.filterPredicate(pt,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Lt){return this.sort?this.sortData(Lt.slice(),this.sort):Lt}_pageData(Lt){if(!this.paginator)return Lt;const pt=this.paginator.pageIndex*this.paginator.pageSize;return Lt.slice(pt,pt+this.paginator.pageSize)}_updatePaginator(Lt){Promise.resolve().then(()=>{const pt=this.paginator;if(pt&&(pt.length=Lt,pt.pageIndex>0)){const rt=Math.ceil(pt.length/pt.pageSize)-1||0,St=Math.min(pt.pageIndex,rt);St!==pt.pageIndex&&(pt.pageIndex=St,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Lt;null===(Lt=this._renderChangesSubscription)||void 0===Lt||Lt.unsubscribe(),this._renderChangesSubscription=null}}class zn extends gn{}},3848:(Xe,ue,p)=>{"use strict";p.d(ue,{Nh:()=>st,SP:()=>et,Vc:()=>Ae,uD:()=>Se,uX:()=>fe});var e=p(12687),A=p(49643),C=p(84080),M=p(36895),m=p(94650),b=p(3238),D=p(95698),v=p(68675),R=p(71884),B=p(82722),w=p(63900),L=p(35684),O=p(77579),q=p(50727),ee=p(54968),z=p(39646),ie=p(56451),Te=p(60515),pe=p(69751),Le=p(82805),T=p(40445),W=p(37340),F=p(21281),V=p(67376),te=p(83353),Q=p(29521);function Ee(Ke,Et){1&Ke&&m.Hsn(0)}const ge=["*"];function ve(Ke,Et){}const De=function(Ke){return{animationDuration:Ke}},he=function(Ke,Et){return{value:Ke,params:Et}},Ye=["tabListContainer"],Be=["tabList"],se=["tabListInner"],le=["nextPaginator"],k=["previousPaginator"],N=["tabBodyWrapper"],be=["tabHeader"];function Z(Ke,Et){}function de(Ke,Et){if(1&Ke&&m.YNc(0,Z,0,0,"ng-template",10),2&Ke){const ke=m.oxw().$implicit;m.Q6J("cdkPortalOutlet",ke.templateLabel)}}function xe(Ke,Et){if(1&Ke&&m._uU(0),2&Ke){const ke=m.oxw().$implicit;m.Oqu(ke.textLabel)}}function ot(Ke,Et){if(1&Ke){const ke=m.EpF();m.TgZ(0,"div",6),m.NdJ("click",function(){const It=m.CHM(ke),jt=It.$implicit,an=It.index,Kt=m.oxw(),on=m.MAs(1);return m.KtG(Kt._handleClick(jt,on,an))})("cdkFocusChange",function(It){const an=m.CHM(ke).index,Kt=m.oxw();return m.KtG(Kt._tabFocusChanged(It,an))}),m.TgZ(1,"div",7),m.YNc(2,de,1,1,"ng-template",8),m.YNc(3,xe,1,1,"ng-template",null,9,m.W1O),m.qZA()()}if(2&Ke){const ke=Et.$implicit,at=Et.index,It=m.MAs(4),jt=m.oxw();m.ekj("mat-tab-label-active",jt.selectedIndex===at),m.Q6J("id",jt._getTabLabelId(at))("ngClass",ke.labelClass)("disabled",ke.disabled)("matRippleDisabled",ke.disabled||jt.disableRipple),m.uIk("tabIndex",jt._getTabIndex(ke,at))("aria-posinset",at+1)("aria-setsize",jt._tabs.length)("aria-controls",jt._getTabContentId(at))("aria-selected",jt.selectedIndex===at)("aria-label",ke.ariaLabel||null)("aria-labelledby",!ke.ariaLabel&&ke.ariaLabelledby?ke.ariaLabelledby:null),m.xp6(2),m.Q6J("ngIf",ke.templateLabel)("ngIfElse",It)}}function Fe(Ke,Et){if(1&Ke){const ke=m.EpF();m.TgZ(0,"mat-tab-body",11),m.NdJ("_onCentered",function(){m.CHM(ke);const It=m.oxw();return m.KtG(It._removeTabBodyWrapperHeight())})("_onCentering",function(It){m.CHM(ke);const jt=m.oxw();return m.KtG(jt._setTabBodyWrapperHeight(It))}),m.qZA()}if(2&Ke){const ke=Et.$implicit,at=Et.index,It=m.oxw();m.ekj("mat-tab-body-active",It.selectedIndex===at),m.Q6J("id",It._getTabContentId(at))("ngClass",ke.bodyClass)("content",ke.content)("position",ke.position)("origin",ke.origin)("animationDuration",It.animationDuration)("preserveContent",It.preserveContent),m.uIk("tabindex",null!=It.contentTabIndex&&It.selectedIndex===at?It.contentTabIndex:null)("aria-labelledby",It._getTabLabelId(at))}}const tt=new m.OlP("MatInkBarPositioner",{providedIn:"root",factory:function vt(){return Et=>({left:Et?(Et.offsetLeft||0)+"px":"0",width:Et?(Et.offsetWidth||0)+"px":"0"})}});let X=(()=>{class Ke{constructor(ke,at,It,jt){this._elementRef=ke,this._ngZone=at,this._inkBarPositioner=It,this._animationMode=jt}alignToElement(ke){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(()=>{const at=this._inkBarPositioner(ke),It=this._elementRef.nativeElement;It.style.left=at.left,It.style.width=at.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq),m.Y36(m.R0b),m.Y36(tt),m.Y36(m.QbO,8))},Ke.\u0275dir=m.lG2({type:Ke,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(ke,at){2&ke&&m.ekj("_mat-animation-noopable","NoopAnimations"===at._animationMode)}}),Ke})();const nt=new m.OlP("MatTabContent");let Ae=(()=>{class Ke{constructor(ke){this.template=ke}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.Rgc))},Ke.\u0275dir=m.lG2({type:Ke,selectors:[["","matTabContent",""]],features:[m._Bn([{provide:nt,useExisting:Ke}])]}),Ke})();const ye=new m.OlP("MatTabLabel"),_e=new m.OlP("MAT_TAB");let Se=(()=>{class Ke extends C.ig{constructor(ke,at,It){super(ke,at),this._closestTab=It}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.Rgc),m.Y36(m.s_b),m.Y36(_e,8))},Ke.\u0275dir=m.lG2({type:Ke,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[m._Bn([{provide:ye,useExisting:Ke}]),m.qOj]}),Ke})();const Ne=(0,b.Id)(class{}),Ce=new m.OlP("MAT_TAB_GROUP");let fe=(()=>{class Ke extends Ne{constructor(ke,at){super(),this._viewContainerRef=ke,this._closestTabGroup=at,this.textLabel="",this._contentPortal=null,this._stateChanges=new O.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(ke){this._setTemplateLabelInput(ke)}get content(){return this._contentPortal}ngOnChanges(ke){(ke.hasOwnProperty("textLabel")||ke.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new C.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(ke){ke&&ke._closestTab===this&&(this._templateLabel=ke)}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.s_b),m.Y36(Ce,8))},Ke.\u0275cmp=m.Xpm({type:Ke,selectors:[["mat-tab"]],contentQueries:function(ke,at,It){if(1&ke&&(m.Suo(It,ye,5),m.Suo(It,nt,7,m.Rgc)),2&ke){let jt;m.iGM(jt=m.CRH())&&(at.templateLabel=jt.first),m.iGM(jt=m.CRH())&&(at._explicitContent=jt.first)}},viewQuery:function(ke,at){if(1&ke&&m.Gf(m.Rgc,7),2&ke){let It;m.iGM(It=m.CRH())&&(at._implicitContent=It.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[m._Bn([{provide:_e,useExisting:Ke}]),m.qOj,m.TTD],ngContentSelectors:ge,decls:1,vars:0,template:function(ke,at){1&ke&&(m.F$t(),m.YNc(0,Ee,1,0,"ng-template"))},encapsulation:2}),Ke})();const r={translateTab:(0,W.X$)("translateTab",[(0,W.SB)("center, void, left-origin-center, right-origin-center",(0,W.oB)({transform:"none"})),(0,W.SB)("left",(0,W.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,W.SB)("right",(0,W.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,W.eR)("* => left, * => right, left => center, right => center",(0,W.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,W.eR)("void => left-origin-center",[(0,W.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,W.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,W.eR)("void => right-origin-center",[(0,W.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,W.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let u=(()=>{class Ke extends C.Pl{constructor(ke,at,It,jt){super(ke,at,jt),this._host=It,this._centeringSub=q.w0.EMPTY,this._leavingSub=q.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,v.O)(this._host._isCenterPosition(this._host._position))).subscribe(ke=>{ke&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m._Vd),m.Y36(m.s_b),m.Y36((0,m.Gpc)(()=>E)),m.Y36(M.K0))},Ke.\u0275dir=m.lG2({type:Ke,selectors:[["","matTabBodyHost",""]],features:[m.qOj]}),Ke})(),_=(()=>{class Ke{constructor(ke,at,It){this._elementRef=ke,this._dir=at,this._dirChangeSubscription=q.w0.EMPTY,this._translateTabComplete=new O.x,this._onCentering=new m.vpe,this._beforeCentering=new m.vpe,this._afterLeavingCenter=new m.vpe,this._onCentered=new m.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,at&&(this._dirChangeSubscription=at.change.subscribe(jt=>{this._computePositionAnimationState(jt),It.markForCheck()})),this._translateTabComplete.pipe((0,R.x)((jt,an)=>jt.fromState===an.fromState&&jt.toState===an.toState)).subscribe(jt=>{this._isCenterPosition(jt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(jt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(ke){this._positionIndex=ke,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(ke){const at=this._isCenterPosition(ke.toState);this._beforeCentering.emit(at),at&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(ke){return"center"==ke||"left-origin-center"==ke||"right-origin-center"==ke}_computePositionAnimationState(ke=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==ke?"left":"right":this._positionIndex>0?"ltr"==ke?"right":"left":"center"}_computePositionFromOrigin(ke){const at=this._getLayoutDirection();return"ltr"==at&&ke<=0||"rtl"==at&&ke>0?"left-origin-center":"right-origin-center"}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq),m.Y36(T.Is,8),m.Y36(m.sBO))},Ke.\u0275dir=m.lG2({type:Ke,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ke})(),E=(()=>{class Ke extends _{constructor(ke,at,It){super(ke,at,It)}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq),m.Y36(T.Is,8),m.Y36(m.sBO))},Ke.\u0275cmp=m.Xpm({type:Ke,selectors:[["mat-tab-body"]],viewQuery:function(ke,at){if(1&ke&&m.Gf(C.Pl,5),2&ke){let It;m.iGM(It=m.CRH())&&(at._portalHost=It.first)}},hostAttrs:[1,"mat-tab-body"],features:[m.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(ke,at){1&ke&&(m.TgZ(0,"div",0,1),m.NdJ("@translateTab.start",function(jt){return at._onTranslateTabStarted(jt)})("@translateTab.done",function(jt){return at._translateTabComplete.next(jt)}),m.YNc(2,ve,0,0,"ng-template",2),m.qZA()),2&ke&&m.Q6J("@translateTab",m.WLB(3,he,at._position,m.VKq(1,De,at.animationDuration)))},dependencies:[u],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[r.translateTab]}}),Ke})();const h=new m.OlP("MAT_TABS_CONFIG"),a=(0,b.Id)(class{});let i=(()=>{class Ke extends a{constructor(ke){super(),this.elementRef=ke}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq))},Ke.\u0275dir=m.lG2({type:Ke,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(ke,at){2&ke&&(m.uIk("aria-disabled",!!at.disabled),m.ekj("mat-tab-disabled",at.disabled))},inputs:{disabled:"disabled"},features:[m.qOj]}),Ke})();const t=(0,te.i$)({passive:!0});let l=(()=>{class Ke{constructor(ke,at,It,jt,an,Kt,on){this._elementRef=ke,this._changeDetectorRef=at,this._viewportRuler=It,this._dir=jt,this._ngZone=an,this._platform=Kt,this._animationMode=on,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new O.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new O.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new m.vpe,this.indexFocused=new m.vpe,an.runOutsideAngular(()=>{(0,ee.R)(ke.nativeElement,"mouseleave").pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(ke){this._disablePagination=(0,F.Ig)(ke)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ke){ke=(0,F.su)(ke),this._selectedIndex!=ke&&(this._selectedIndexChanged=!0,this._selectedIndex=ke,this._keyManager&&this._keyManager.updateActiveItem(ke))}ngAfterViewInit(){(0,ee.R)(this._previousPaginator.nativeElement,"touchstart",t).pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,ee.R)(this._nextPaginator.nativeElement,"touchstart",t).pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const ke=this._dir?this._dir.change:(0,z.of)("ltr"),at=this._viewportRuler.change(150),It=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(It),(0,ie.T)(ke,at,this._items.changes,this._itemsResized()).pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),It()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,B.R)(this._destroyed)).subscribe(jt=>{this.indexFocused.emit(jt),this._setTabFocus(jt)})}_itemsResized(){return"function"!=typeof ResizeObserver?Te.E:this._items.changes.pipe((0,v.O)(this._items),(0,w.w)(ke=>new pe.y(at=>this._ngZone.runOutsideAngular(()=>{const It=new ResizeObserver(()=>{at.next()});return ke.forEach(jt=>{It.observe(jt.elementRef.nativeElement)}),()=>{It.disconnect()}}))),(0,L.T)(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(ke){if(!(0,Q.Vb)(ke))switch(ke.keyCode){case Q.K5:case Q.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(ke));break;default:this._keyManager.onKeydown(ke)}}_onContentChanges(){const ke=this._elementRef.nativeElement.textContent;ke!==this._currentTextContent&&(this._currentTextContent=ke||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(ke){!this._isValidIndex(ke)||this.focusIndex===ke||!this._keyManager||this._keyManager.setActiveItem(ke)}_isValidIndex(ke){if(!this._items)return!0;const at=this._items?this._items.toArray()[ke]:null;return!!at&&!at.disabled}_setTabFocus(ke){if(this._showPaginationControls&&this._scrollToLabel(ke),this._items&&this._items.length){this._items.toArray()[ke].focus();const at=this._tabListContainer.nativeElement;at.scrollLeft="ltr"==this._getLayoutDirection()?0:at.scrollWidth-at.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const ke=this.scrollDistance,at="ltr"===this._getLayoutDirection()?-ke:ke;this._tabList.nativeElement.style.transform=`translateX(${Math.round(at)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(ke){this._scrollTo(ke)}_scrollHeader(ke){return this._scrollTo(this._scrollDistance+("before"==ke?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(ke){this._stopInterval(),this._scrollHeader(ke)}_scrollToLabel(ke){if(this.disablePagination)return;const at=this._items?this._items.toArray()[ke]:null;if(!at)return;const It=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:jt,offsetWidth:an}=at.elementRef.nativeElement;let Kt,on;"ltr"==this._getLayoutDirection()?(Kt=jt,on=Kt+an):(on=this._tabListInner.nativeElement.offsetWidth-jt,Kt=on-an);const Cn=this.scrollDistance,Tt=this.scrollDistance+It;KtTt&&(this.scrollDistance+=on-Tt+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const ke=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;ke||(this.scrollDistance=0),ke!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=ke}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const ke=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,at=ke?ke.elementRef.nativeElement:null;at?this._inkBar.alignToElement(at):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(ke,at){at&&null!=at.button&&0!==at.button||(this._stopInterval(),(0,Le.H)(650,100).pipe((0,B.R)((0,ie.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:It,distance:jt}=this._scrollHeader(ke);(0===jt||jt>=It)&&this._stopInterval()}))}_scrollTo(ke){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const at=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(at,ke)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:at,distance:this._scrollDistance}}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(V.rL),m.Y36(T.Is,8),m.Y36(m.R0b),m.Y36(te.t4),m.Y36(m.QbO,8))},Ke.\u0275dir=m.lG2({type:Ke,inputs:{disablePagination:"disablePagination"}}),Ke})(),d=(()=>{class Ke extends l{constructor(ke,at,It,jt,an,Kt,on){super(ke,at,It,jt,an,Kt,on),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ke){this._disableRipple=(0,F.Ig)(ke)}_itemSelected(ke){ke.preventDefault()}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(V.rL),m.Y36(T.Is,8),m.Y36(m.R0b),m.Y36(te.t4),m.Y36(m.QbO,8))},Ke.\u0275dir=m.lG2({type:Ke,inputs:{disableRipple:"disableRipple"},features:[m.qOj]}),Ke})(),c=(()=>{class Ke extends d{constructor(ke,at,It,jt,an,Kt,on){super(ke,at,It,jt,an,Kt,on)}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(V.rL),m.Y36(T.Is,8),m.Y36(m.R0b),m.Y36(te.t4),m.Y36(m.QbO,8))},Ke.\u0275cmp=m.Xpm({type:Ke,selectors:[["mat-tab-header"]],contentQueries:function(ke,at,It){if(1&ke&&m.Suo(It,i,4),2&ke){let jt;m.iGM(jt=m.CRH())&&(at._items=jt)}},viewQuery:function(ke,at){if(1&ke&&(m.Gf(X,7),m.Gf(Ye,7),m.Gf(Be,7),m.Gf(se,7),m.Gf(le,5),m.Gf(k,5)),2&ke){let It;m.iGM(It=m.CRH())&&(at._inkBar=It.first),m.iGM(It=m.CRH())&&(at._tabListContainer=It.first),m.iGM(It=m.CRH())&&(at._tabList=It.first),m.iGM(It=m.CRH())&&(at._tabListInner=It.first),m.iGM(It=m.CRH())&&(at._nextPaginator=It.first),m.iGM(It=m.CRH())&&(at._previousPaginator=It.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(ke,at){2&ke&&m.ekj("mat-tab-header-pagination-controls-enabled",at._showPaginationControls)("mat-tab-header-rtl","rtl"==at._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[m.qOj],ngContentSelectors:ge,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ke,at){1&ke&&(m.F$t(),m.TgZ(0,"button",0,1),m.NdJ("click",function(){return at._handlePaginatorClick("before")})("mousedown",function(jt){return at._handlePaginatorPress("before",jt)})("touchend",function(){return at._stopInterval()}),m._UZ(2,"div",2),m.qZA(),m.TgZ(3,"div",3,4),m.NdJ("keydown",function(jt){return at._handleKeydown(jt)}),m.TgZ(5,"div",5,6),m.NdJ("cdkObserveContent",function(){return at._onContentChanges()}),m.TgZ(7,"div",7,8),m.Hsn(9),m.qZA(),m._UZ(10,"mat-ink-bar"),m.qZA()(),m.TgZ(11,"button",9,10),m.NdJ("mousedown",function(jt){return at._handlePaginatorPress("after",jt)})("click",function(){return at._handlePaginatorClick("after")})("touchend",function(){return at._stopInterval()}),m._UZ(13,"div",2),m.qZA()),2&ke&&(m.ekj("mat-tab-header-pagination-disabled",at._disableScrollBefore),m.Q6J("matRippleDisabled",at._disableScrollBefore||at.disableRipple)("disabled",at._disableScrollBefore||null),m.xp6(5),m.ekj("_mat-animation-noopable","NoopAnimations"===at._animationMode),m.xp6(6),m.ekj("mat-tab-header-pagination-disabled",at._disableScrollAfter),m.Q6J("matRippleDisabled",at._disableScrollAfter||at.disableRipple)("disabled",at._disableScrollAfter||null))},dependencies:[b.wG,A.wD,X],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),Ke})(),S=0;class J{}const ht=(0,b.pj)((0,b.Kr)(class{constructor(Ke){this._elementRef=Ke}}),"primary");let We=(()=>{class Ke extends ht{constructor(ke,at,It,jt){var an;super(ke),this._changeDetectorRef=at,this._animationMode=jt,this._tabs=new m.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=q.w0.EMPTY,this._tabLabelSubscription=q.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new m.vpe,this.focusChange=new m.vpe,this.animationDone=new m.vpe,this.selectedTabChange=new m.vpe(!0),this._groupId=S++,this.animationDuration=It&&It.animationDuration?It.animationDuration:"500ms",this.disablePagination=!(!It||null==It.disablePagination)&&It.disablePagination,this.dynamicHeight=!(!It||null==It.dynamicHeight)&&It.dynamicHeight,this.contentTabIndex=null!==(an=It?.contentTabIndex)&&void 0!==an?an:null,this.preserveContent=!(null==It||!It.preserveContent)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(ke){this._dynamicHeight=(0,F.Ig)(ke)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ke){this._indexToSelect=(0,F.su)(ke,null)}get animationDuration(){return this._animationDuration}set animationDuration(ke){this._animationDuration=/^\d+$/.test(ke+"")?ke+"ms":ke}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(ke){this._contentTabIndex=(0,F.su)(ke,null)}get disablePagination(){return this._disablePagination}set disablePagination(ke){this._disablePagination=(0,F.Ig)(ke)}get preserveContent(){return this._preserveContent}set preserveContent(ke){this._preserveContent=(0,F.Ig)(ke)}get backgroundColor(){return this._backgroundColor}set backgroundColor(ke){const at=this._elementRef.nativeElement;at.classList.remove(`mat-background-${this.backgroundColor}`),ke&&at.classList.add(`mat-background-${ke}`),this._backgroundColor=ke}ngAfterContentChecked(){const ke=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=ke){const at=null==this._selectedIndex;if(!at){this.selectedTabChange.emit(this._createChangeEvent(ke));const It=this._tabBodyWrapper.nativeElement;It.style.minHeight=It.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((It,jt)=>It.isActive=jt===ke),at||(this.selectedIndexChange.emit(ke),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((at,It)=>{at.position=It-ke,null!=this._selectedIndex&&0==at.position&&!at.origin&&(at.origin=ke-this._selectedIndex)}),this._selectedIndex!==ke&&(this._selectedIndex=ke,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const ke=this._clampTabIndex(this._indexToSelect);if(ke===this._selectedIndex){const at=this._tabs.toArray();let It;for(let jt=0;jt{at[ke].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(ke))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,v.O)(this._allTabs)).subscribe(ke=>{this._tabs.reset(ke.filter(at=>at._closestTabGroup===this||!at._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(ke){const at=this._tabHeader;at&&(at.focusIndex=ke)}_focusChanged(ke){this._lastFocusedTabIndex=ke,this.focusChange.emit(this._createChangeEvent(ke))}_createChangeEvent(ke){const at=new J;return at.index=ke,this._tabs&&this._tabs.length&&(at.tab=this._tabs.toArray()[ke]),at}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,ie.T)(...this._tabs.map(ke=>ke._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(ke){return Math.min(this._tabs.length-1,Math.max(ke||0,0))}_getTabLabelId(ke){return`mat-tab-label-${this._groupId}-${ke}`}_getTabContentId(ke){return`mat-tab-content-${this._groupId}-${ke}`}_setTabBodyWrapperHeight(ke){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const at=this._tabBodyWrapper.nativeElement;at.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(at.style.height=ke+"px")}_removeTabBodyWrapperHeight(){const ke=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=ke.clientHeight,ke.style.height="",this.animationDone.emit()}_handleClick(ke,at,It){ke.disabled||(this.selectedIndex=at.focusIndex=It)}_getTabIndex(ke,at){var It;return ke.disabled?null:at===(null!==(It=this._lastFocusedTabIndex)&&void 0!==It?It:this.selectedIndex)?0:-1}_tabFocusChanged(ke,at){ke&&"mouse"!==ke&&"touch"!==ke&&(this._tabHeader.focusIndex=at)}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(h,8),m.Y36(m.QbO,8))},Ke.\u0275dir=m.lG2({type:Ke,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[m.qOj]}),Ke})(),et=(()=>{class Ke extends We{constructor(ke,at,It,jt){super(ke,at,It,jt)}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(h,8),m.Y36(m.QbO,8))},Ke.\u0275cmp=m.Xpm({type:Ke,selectors:[["mat-tab-group"]],contentQueries:function(ke,at,It){if(1&ke&&m.Suo(It,fe,5),2&ke){let jt;m.iGM(jt=m.CRH())&&(at._allTabs=jt)}},viewQuery:function(ke,at){if(1&ke&&(m.Gf(N,5),m.Gf(be,5)),2&ke){let It;m.iGM(It=m.CRH())&&(at._tabBodyWrapper=It.first),m.iGM(It=m.CRH())&&(at._tabHeader=It.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(ke,at){2&ke&&m.ekj("mat-tab-group-dynamic-height",at.dynamicHeight)("mat-tab-group-inverted-header","below"===at.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[m._Bn([{provide:Ce,useExisting:Ke}]),m.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(ke,at){1&ke&&(m.TgZ(0,"mat-tab-header",0,1),m.NdJ("indexFocused",function(jt){return at._focusChanged(jt)})("selectFocusedIndex",function(jt){return at.selectedIndex=jt}),m.YNc(2,ot,5,15,"div",2),m.qZA(),m.TgZ(3,"div",3,4),m.YNc(5,Fe,1,11,"mat-tab-body",5),m.qZA()),2&ke&&(m.Q6J("selectedIndex",at.selectedIndex||0)("disableRipple",at.disableRipple)("disablePagination",at.disablePagination),m.xp6(2),m.Q6J("ngForOf",at._tabs),m.xp6(1),m.ekj("_mat-animation-noopable","NoopAnimations"===at._animationMode),m.xp6(2),m.Q6J("ngForOf",at._tabs))},dependencies:[M.mk,M.sg,M.O5,C.Pl,b.wG,e.kH,i,E,c],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),Ke})(),st=(()=>{class Ke{}return Ke.\u0275fac=function(ke){return new(ke||Ke)},Ke.\u0275mod=m.oAB({type:Ke}),Ke.\u0275inj=m.cJS({imports:[M.ez,b.BQ,C.eL,b.si,A.Q8,e.rt,b.BQ]}),Ke})()},83683:(Xe,ue,p)=>{"use strict";p.d(ue,{Ye:()=>R,g0:()=>w});var e=p(94650),A=p(3238),C=p(83353),M=p(36895);const m=["*",[["mat-toolbar-row"]]],b=["*","mat-toolbar-row"],D=(0,A.pj)(class{constructor(L){this._elementRef=L}});let v=(()=>{class L{}return L.\u0275fac=function(q){return new(q||L)},L.\u0275dir=e.lG2({type:L,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),L})(),R=(()=>{class L extends D{constructor(q,ee,z){super(q),this._platform=ee,this._document=z}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return L.\u0275fac=function(q){return new(q||L)(e.Y36(e.SBq),e.Y36(C.t4),e.Y36(M.K0))},L.\u0275cmp=e.Xpm({type:L,selectors:[["mat-toolbar"]],contentQueries:function(q,ee,z){if(1&q&&e.Suo(z,v,5),2&q){let ie;e.iGM(ie=e.CRH())&&(ee._toolbarRows=ie)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(q,ee){2&q&&e.ekj("mat-toolbar-multiple-rows",ee._toolbarRows.length>0)("mat-toolbar-single-row",0===ee._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:b,decls:2,vars:0,template:function(q,ee){1&q&&(e.F$t(m),e.Hsn(0),e.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),L})(),w=(()=>{class L{}return L.\u0275fac=function(q){return new(q||L)},L.\u0275mod=e.oAB({type:L}),L.\u0275inj=e.cJS({imports:[A.BQ,A.BQ]}),L})()},10266:(Xe,ue,p)=>{"use strict";p.d(ue,{AV:()=>Be,gM:()=>De});var e=p(98184),A=p(12687),C=p(36895),M=p(94650),m=p(3238),b=p(67376),D=p(40445),v=p(21281),R=p(29521),B=p(62289),w=p(83353),L=p(84080),O=p(77579),q=p(82722),ee=p(95698);p(37340);const ie=["tooltip"],Le="tooltip-panel",T=(0,w.i$)({passive:!0}),V=new M.OlP("mat-tooltip-scroll-strategy"),Q={provide:V,deps:[e.aV],useFactory:function te(le){return()=>le.scrollStrategies.reposition({scrollThrottle:20})}},Ee=new M.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function ge(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let ve=(()=>{class le{constructor(N,be,Z,de,xe,ot,Fe,ut,tt,vt,X,nt){this._overlay=N,this._elementRef=be,this._scrollDispatcher=Z,this._viewContainerRef=de,this._ngZone=xe,this._platform=ot,this._ariaDescriber=Fe,this._focusMonitor=ut,this._dir=vt,this._defaultOptions=X,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new O.x,this._scrollStrategy=tt,this._document=nt,X&&(X.position&&(this.position=X.position),X.touchGestures&&(this.touchGestures=X.touchGestures)),vt.change.pipe((0,q.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(N){var be;N!==this._position&&(this._position=N,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(be=this._tooltipInstance)||void 0===be||be.show(0),this._overlayRef.updatePosition())}get disabled(){return this._disabled}set disabled(N){this._disabled=(0,v.Ig)(N),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(N){this._showDelay=(0,v.su)(N)}get hideDelay(){return this._hideDelay}set hideDelay(N){this._hideDelay=(0,v.su)(N),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(N){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=N?String(N).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(N){this._tooltipClass=N,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,q.R)(this._destroyed)).subscribe(N=>{N?"keyboard"===N&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const N=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([be,Z])=>{N.removeEventListener(be,Z,T)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(N,this.message,"tooltip"),this._focusMonitor.stopMonitoring(N)}show(N=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const be=this._createOverlay();this._detach(),this._portal=this._portal||new L.C5(this._tooltipComponent,this._viewContainerRef);const Z=this._tooltipInstance=be.attach(this._portal).instance;Z._triggerElement=this._elementRef.nativeElement,Z._mouseLeaveHideDelay=this._hideDelay,Z.afterHidden().pipe((0,q.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Z.show(N)}hide(N=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(N)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var N;if(this._overlayRef)return this._overlayRef;const be=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Z=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(be);return Z.positionChanges.pipe((0,q.R)(this._destroyed)).subscribe(de=>{this._updateCurrentPositionClass(de.connectionPair),this._tooltipInstance&&de.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Z,panelClass:`${this._cssClassPrefix}-${Le}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,q.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,q.R)(this._destroyed)).subscribe(()=>{var de;return null===(de=this._tooltipInstance)||void 0===de?void 0:de._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,q.R)(this._destroyed)).subscribe(de=>{this._isTooltipVisible()&&de.keyCode===R.hY&&!(0,R.Vb)(de)&&(de.preventDefault(),de.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(N=this._defaultOptions)&&void 0!==N&&N.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(N){const be=N.getConfig().positionStrategy,Z=this._getOrigin(),de=this._getOverlayPosition();be.withPositions([this._addOffset({...Z.main,...de.main}),this._addOffset({...Z.fallback,...de.fallback})])}_addOffset(N){return N}_getOrigin(){const N=!this._dir||"ltr"==this._dir.value,be=this.position;let Z;"above"==be||"below"==be?Z={originX:"center",originY:"above"==be?"top":"bottom"}:"before"==be||"left"==be&&N||"right"==be&&!N?Z={originX:"start",originY:"center"}:("after"==be||"right"==be&&N||"left"==be&&!N)&&(Z={originX:"end",originY:"center"});const{x:de,y:xe}=this._invertPosition(Z.originX,Z.originY);return{main:Z,fallback:{originX:de,originY:xe}}}_getOverlayPosition(){const N=!this._dir||"ltr"==this._dir.value,be=this.position;let Z;"above"==be?Z={overlayX:"center",overlayY:"bottom"}:"below"==be?Z={overlayX:"center",overlayY:"top"}:"before"==be||"left"==be&&N||"right"==be&&!N?Z={overlayX:"end",overlayY:"center"}:("after"==be||"right"==be&&N||"left"==be&&!N)&&(Z={overlayX:"start",overlayY:"center"});const{x:de,y:xe}=this._invertPosition(Z.overlayX,Z.overlayY);return{main:Z,fallback:{overlayX:de,overlayY:xe}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,ee.q)(1),(0,q.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(N){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=N,this._tooltipInstance._markForCheck())}_invertPosition(N,be){return"above"===this.position||"below"===this.position?"top"===be?be="bottom":"bottom"===be&&(be="top"):"end"===N?N="start":"start"===N&&(N="end"),{x:N,y:be}}_updateCurrentPositionClass(N){const{overlayY:be,originX:Z,originY:de}=N;let xe;if(xe="center"===be?this._dir&&"rtl"===this._dir.value?"end"===Z?"left":"right":"start"===Z?"left":"right":"bottom"===be&&"top"===de?"above":"below",xe!==this._currentPosition){const ot=this._overlayRef;if(ot){const Fe=`${this._cssClassPrefix}-${Le}-`;ot.removePanelClass(Fe+this._currentPosition),ot.addPanelClass(Fe+xe)}this._currentPosition=xe}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const N=[];if(this._platformSupportsMouseEvents())N.push(["mouseleave",be=>{var Z;const de=be.relatedTarget;(!de||null===(Z=this._overlayRef)||void 0===Z||!Z.overlayElement.contains(de))&&this.hide()}],["wheel",be=>this._wheelListener(be)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const be=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};N.push(["touchend",be],["touchcancel",be])}this._addListeners(N),this._passiveListeners.push(...N)}_addListeners(N){N.forEach(([be,Z])=>{this._elementRef.nativeElement.addEventListener(be,Z,T)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(N){if(this._isTooltipVisible()){const be=this._document.elementFromPoint(N.clientX,N.clientY),Z=this._elementRef.nativeElement;be!==Z&&!Z.contains(be)&&this.hide()}}_disableNativeGesturesIfNecessary(){const N=this.touchGestures;if("off"!==N){const be=this._elementRef.nativeElement,Z=be.style;("on"===N||"INPUT"!==be.nodeName&&"TEXTAREA"!==be.nodeName)&&(Z.userSelect=Z.msUserSelect=Z.webkitUserSelect=Z.MozUserSelect="none"),("on"===N||!be.draggable)&&(Z.webkitUserDrag="none"),Z.touchAction="none",Z.webkitTapHighlightColor="transparent"}}}return le.\u0275fac=function(N){M.$Z()},le.\u0275dir=M.lG2({type:le,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),le})(),De=(()=>{class le extends ve{constructor(N,be,Z,de,xe,ot,Fe,ut,tt,vt,X,nt){super(N,be,Z,de,xe,ot,Fe,ut,tt,vt,X,nt),this._tooltipComponent=Ye}}return le.\u0275fac=function(N){return new(N||le)(M.Y36(e.aV),M.Y36(M.SBq),M.Y36(b.mF),M.Y36(M.s_b),M.Y36(M.R0b),M.Y36(w.t4),M.Y36(A.$s),M.Y36(A.tE),M.Y36(V),M.Y36(D.Is,8),M.Y36(Ee,8),M.Y36(C.K0))},le.\u0275dir=M.lG2({type:le,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[M.qOj]}),le})(),he=(()=>{class le{constructor(N,be){this._changeDetectorRef=N,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new O.x,this._animationsDisabled="NoopAnimations"===be}show(N){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},N)}hide(N){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},N)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:N}){(!N||!this._triggerElement.contains(N))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:N}){(N===this._showAnimation||N===this._hideAnimation)&&this._finalizeAnimation(N===this._showAnimation)}_finalizeAnimation(N){N?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(N){const be=this._tooltip.nativeElement,Z=this._showAnimation,de=this._hideAnimation;if(be.classList.remove(N?de:Z),be.classList.add(N?Z:de),this._isVisible=N,N&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const xe=getComputedStyle(be);("0s"===xe.getPropertyValue("animation-duration")||"none"===xe.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}N&&this._onShow(),this._animationsDisabled&&(be.classList.add("_mat-animation-noopable"),this._finalizeAnimation(N))}}return le.\u0275fac=function(N){return new(N||le)(M.Y36(M.sBO),M.Y36(M.QbO,8))},le.\u0275dir=M.lG2({type:le}),le})(),Ye=(()=>{class le extends he{constructor(N,be,Z){super(N,Z),this._breakpointObserver=be,this._isHandset=this._breakpointObserver.observe(B.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return le.\u0275fac=function(N){return new(N||le)(M.Y36(M.sBO),M.Y36(B.Yg),M.Y36(M.QbO,8))},le.\u0275cmp=M.Xpm({type:le,selectors:[["mat-tooltip-component"]],viewQuery:function(N,be){if(1&N&&M.Gf(ie,7),2&N){let Z;M.iGM(Z=M.CRH())&&(be._tooltip=Z.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(N,be){1&N&&M.NdJ("mouseleave",function(de){return be._handleMouseLeave(de)}),2&N&&M.Udp("zoom",be.isVisible()?1:null)},features:[M.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(N,be){if(1&N&&(M.TgZ(0,"div",0,1),M.NdJ("animationend",function(de){return be._handleAnimationEnd(de)}),M.ALo(2,"async"),M._uU(3),M.qZA()),2&N){let Z;M.ekj("mat-tooltip-handset",null==(Z=M.lcZ(2,4,be._isHandset))?null:Z.matches),M.Q6J("ngClass",be.tooltipClass),M.xp6(3),M.Oqu(be.message)}},dependencies:[C.mk,C.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),le})(),Be=(()=>{class le{}return le.\u0275fac=function(N){return new(N||le)},le.\u0275mod=M.oAB({type:le}),le.\u0275inj=M.cJS({providers:[Q],imports:[A.rt,C.ez,e.U8,m.BQ,m.BQ,b.ZD]}),le})()},35423:(Xe,ue,p)=>{"use strict";p.d(ue,{Ar:()=>ee,GZ:()=>O,JZ:()=>Le,WX:()=>W,dp:()=>pe,eu:()=>ie,fQ:()=>L,gi:()=>z,kc:()=>T,uo:()=>w});var e=p(57851),A=p(94650),C=p(3238),M=p(21281),m=p(95017),b=p(61135),D=p(56451),v=p(95698),R=p(54004);const B=(0,C.sb)((0,C.Id)(e.Hs));let w=(()=>{class F extends B{constructor(te,Q,Ee){super(te,Q),this.tabIndex=Number(Ee)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return F.\u0275fac=function(te){return new(te||F)(A.Y36(A.SBq),A.Y36(e._0),A.$8M("tabindex"))},F.\u0275dir=A.lG2({type:F,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[A._Bn([{provide:e.Hs,useExisting:F}]),A.qOj]}),F})(),L=(()=>{class F extends e.rO{}return F.\u0275fac=function(){let V;return function(Q){return(V||(V=A.n5z(F)))(Q||F)}}(),F.\u0275dir=A.lG2({type:F,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[A._Bn([{provide:e.rO,useExisting:F}]),A.qOj]}),F})(),O=(()=>{class F extends e.Xx{constructor(te,Q,Ee,ge){super(te,Q,Ee),this._disabled=!1,this.tabIndex=Number(ge)||0}get disabled(){return this._disabled}set disabled(te){this._disabled=(0,M.Ig)(te)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(te){this._tabIndex=te??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return F.\u0275fac=function(te){return new(te||F)(A.Y36(A.SBq),A.Y36(e._0),A.Y36(A.ZZ4),A.$8M("tabindex"))},F.\u0275dir=A.lG2({type:F,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[A._Bn([{provide:e.Xx,useExisting:F},{provide:e.Hs,useExisting:F},{provide:e.HI,useExisting:F}]),A.qOj]}),F})(),ee=(()=>{class F{constructor(te,Q){this.viewContainer=te,this._node=Q}}return F.\u0275fac=function(te){return new(te||F)(A.Y36(A.s_b),A.Y36(e.HI,8))},F.\u0275dir=A.lG2({type:F,selectors:[["","matTreeNodeOutlet",""]],features:[A._Bn([{provide:e.cu,useExisting:F}])]}),F})(),z=(()=>{class F extends e._0{}return F.\u0275fac=function(){let V;return function(Q){return(V||(V=A.n5z(F)))(Q||F)}}(),F.\u0275cmp=A.Xpm({type:F,selectors:[["mat-tree"]],viewQuery:function(te,Q){if(1&te&&A.Gf(ee,7),2&te){let Ee;A.iGM(Ee=A.CRH())&&(Q._nodeOutlet=Ee.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[A._Bn([{provide:e._0,useExisting:F}]),A.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(te,Q){1&te&&A.GkF(0,0)},dependencies:[ee],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),F})(),ie=(()=>{class F extends e.Ud{}return F.\u0275fac=function(){let V;return function(Q){return(V||(V=A.n5z(F)))(Q||F)}}(),F.\u0275dir=A.lG2({type:F,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[A._Bn([{provide:e.Ud,useExisting:F}]),A.qOj]}),F})(),pe=(()=>{class F{}return F.\u0275fac=function(te){return new(te||F)},F.\u0275mod=A.oAB({type:F}),F.\u0275inj=A.cJS({imports:[e.nZ,C.BQ,C.BQ]}),F})();class Le{constructor(V,te,Q,Ee){this.transformFunction=V,this.getLevel=te,this.isExpandable=Q,this.getChildren=Ee}_flattenNode(V,te,Q,Ee){const ge=this.transformFunction(V,te);if(Q.push(ge),this.isExpandable(ge)){const ve=this.getChildren(V);ve&&(Array.isArray(ve)?this._flattenChildren(ve,te,Q,Ee):ve.pipe((0,v.q)(1)).subscribe(De=>{this._flattenChildren(De,te,Q,Ee)}))}return Q}_flattenChildren(V,te,Q,Ee){V.forEach((ge,ve)=>{let De=Ee.slice();De.push(ve!=V.length-1),this._flattenNode(ge,te+1,Q,De)})}flattenNodes(V){let te=[];return V.forEach(Q=>this._flattenNode(Q,0,te,[])),te}expandFlattenedNodes(V,te){let Q=[],Ee=[];return Ee[0]=!0,V.forEach(ge=>{let ve=!0;for(let De=0;De<=this.getLevel(ge);De++)ve=ve&&Ee[De];ve&&Q.push(ge),this.isExpandable(ge)&&(Ee[this.getLevel(ge)+1]=te.isExpanded(ge))}),Q}}class T extends m.o2{constructor(V,te,Q){super(),this._treeControl=V,this._treeFlattener=te,this._flattenedData=new b.X([]),this._expandedData=new b.X([]),this._data=new b.X([]),Q&&(this.data=Q)}get data(){return this._data.value}set data(V){this._data.next(V),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(V){return(0,D.T)(V.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,R.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class W extends m.o2{constructor(){super(...arguments),this._data=new b.X([])}get data(){return this._data.value}set data(V){this._data.next(V)}connect(V){return(0,D.T)(V.viewChange,this._data).pipe((0,R.U)(()=>this.data))}disconnect(){}}},11481:(Xe,ue,p)=>{"use strict";p.d(ue,{Dx:()=>i,H7:()=>an,b2:()=>u,q6:()=>Ne,se:()=>he});var e=p(36895),A=p(94650);class C extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M extends C{static makeCurrent(){(0,e.HT)(new M)}onAndCancel(Dt,Ze,wt){return Dt.addEventListener(Ze,wt,!1),()=>{Dt.removeEventListener(Ze,wt,!1)}}dispatchEvent(Dt,Ze){Dt.dispatchEvent(Ze)}remove(Dt){Dt.parentNode&&Dt.parentNode.removeChild(Dt)}createElement(Dt,Ze){return(Ze=Ze||this.getDefaultDocument()).createElement(Dt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Dt){return Dt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Dt){return Dt instanceof DocumentFragment}getGlobalEventTarget(Dt,Ze){return"window"===Ze?window:"document"===Ze?Dt:"body"===Ze?Dt.body:null}getBaseHref(Dt){const Ze=function b(){return m=m||document.querySelector("base"),m?m.getAttribute("href"):null}();return null==Ze?null:function v(Tt){D=D||document.createElement("a"),D.setAttribute("href",Tt);const Dt=D.pathname;return"/"===Dt.charAt(0)?Dt:`/${Dt}`}(Ze)}resetBaseElement(){m=null}getUserAgent(){return window.navigator.userAgent}getCookie(Dt){return(0,e.Mx)(document.cookie,Dt)}}let D,m=null;const R=new A.OlP("TRANSITION_ID"),w=[{provide:A.ip1,useFactory:function B(Tt,Dt,Ze){return()=>{Ze.get(A.CZH).donePromise.then(()=>{const wt=(0,e.q)(),Ft=Dt.querySelectorAll(`style[ng-transition="${Tt}"]`);for(let ln=0;ln{class Tt{build(){return new XMLHttpRequest}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();const q=new A.OlP("EventManagerPlugins");let ee=(()=>{class Tt{constructor(Ze,wt){this._zone=wt,this._eventNameToPlugin=new Map,Ze.forEach(Ft=>Ft.manager=this),this._plugins=Ze.slice().reverse()}addEventListener(Ze,wt,Ft){return this._findPluginFor(wt).addEventListener(Ze,wt,Ft)}addGlobalEventListener(Ze,wt,Ft){return this._findPluginFor(wt).addGlobalEventListener(Ze,wt,Ft)}getZone(){return this._zone}_findPluginFor(Ze){const wt=this._eventNameToPlugin.get(Ze);if(wt)return wt;const Ft=this._plugins;for(let ln=0;ln{class Tt{constructor(){this._stylesSet=new Set}addStyles(Ze){const wt=new Set;Ze.forEach(Ft=>{this._stylesSet.has(Ft)||(this._stylesSet.add(Ft),wt.add(Ft))}),this.onStylesAdded(wt)}onStylesAdded(Ze){}getAllStyles(){return Array.from(this._stylesSet)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})(),Te=(()=>{class Tt extends ie{constructor(Ze){super(),this._doc=Ze,this._hostNodes=new Map,this._hostNodes.set(Ze.head,[])}_addStylesToHost(Ze,wt,Ft){Ze.forEach(ln=>{const bn=this._doc.createElement("style");bn.textContent=ln,Ft.push(wt.appendChild(bn))})}addHost(Ze){const wt=[];this._addStylesToHost(this._stylesSet,Ze,wt),this._hostNodes.set(Ze,wt)}removeHost(Ze){const wt=this._hostNodes.get(Ze);wt&&wt.forEach(pe),this._hostNodes.delete(Ze)}onStylesAdded(Ze){this._hostNodes.forEach((wt,Ft)=>{this._addStylesToHost(Ze,Ft,wt)})}ngOnDestroy(){this._hostNodes.forEach(Ze=>Ze.forEach(pe))}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(A.LFG(e.K0))},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();function pe(Tt){(0,e.q)().remove(Tt)}const Le={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},T=/%COMP%/g,F="%COMP%",V=`_nghost-${F}`,te=`_ngcontent-${F}`;function ge(Tt,Dt,Ze){for(let wt=0;wt{if("__ngUnwrap__"===Dt)return Tt;!1===Tt(Dt)&&(Dt.preventDefault(),Dt.returnValue=!1)}}let he=(()=>{class Tt{constructor(Ze,wt,Ft){this.eventManager=Ze,this.sharedStylesHost=wt,this.appId=Ft,this.rendererByCompId=new Map,this.defaultRenderer=new Ye(Ze)}createRenderer(Ze,wt){if(!Ze||!wt)return this.defaultRenderer;switch(wt.encapsulation){case A.ifc.Emulated:{let Ft=this.rendererByCompId.get(wt.id);return Ft||(Ft=new k(this.eventManager,this.sharedStylesHost,wt,this.appId),this.rendererByCompId.set(wt.id,Ft)),Ft.applyToHost(Ze),Ft}case 1:case A.ifc.ShadowDom:return new N(this.eventManager,this.sharedStylesHost,Ze,wt);default:if(!this.rendererByCompId.has(wt.id)){const Ft=ge(wt.id,wt.styles,[]);this.sharedStylesHost.addStyles(Ft),this.rendererByCompId.set(wt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(A.LFG(ee),A.LFG(Te),A.LFG(A.AFp))},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();class Ye{constructor(Dt){this.eventManager=Dt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Dt,Ze){return Ze?document.createElementNS(Le[Ze]||Ze,Dt):document.createElement(Dt)}createComment(Dt){return document.createComment(Dt)}createText(Dt){return document.createTextNode(Dt)}appendChild(Dt,Ze){(le(Dt)?Dt.content:Dt).appendChild(Ze)}insertBefore(Dt,Ze,wt){Dt&&(le(Dt)?Dt.content:Dt).insertBefore(Ze,wt)}removeChild(Dt,Ze){Dt&&Dt.removeChild(Ze)}selectRootElement(Dt,Ze){let wt="string"==typeof Dt?document.querySelector(Dt):Dt;if(!wt)throw new Error(`The selector "${Dt}" did not match any elements`);return Ze||(wt.textContent=""),wt}parentNode(Dt){return Dt.parentNode}nextSibling(Dt){return Dt.nextSibling}setAttribute(Dt,Ze,wt,Ft){if(Ft){Ze=Ft+":"+Ze;const ln=Le[Ft];ln?Dt.setAttributeNS(ln,Ze,wt):Dt.setAttribute(Ze,wt)}else Dt.setAttribute(Ze,wt)}removeAttribute(Dt,Ze,wt){if(wt){const Ft=Le[wt];Ft?Dt.removeAttributeNS(Ft,Ze):Dt.removeAttribute(`${wt}:${Ze}`)}else Dt.removeAttribute(Ze)}addClass(Dt,Ze){Dt.classList.add(Ze)}removeClass(Dt,Ze){Dt.classList.remove(Ze)}setStyle(Dt,Ze,wt,Ft){Ft&(A.JOm.DashCase|A.JOm.Important)?Dt.style.setProperty(Ze,wt,Ft&A.JOm.Important?"important":""):Dt.style[Ze]=wt}removeStyle(Dt,Ze,wt){wt&A.JOm.DashCase?Dt.style.removeProperty(Ze):Dt.style[Ze]=""}setProperty(Dt,Ze,wt){Dt[Ze]=wt}setValue(Dt,Ze){Dt.nodeValue=Ze}listen(Dt,Ze,wt){return"string"==typeof Dt?this.eventManager.addGlobalEventListener(Dt,Ze,ve(wt)):this.eventManager.addEventListener(Dt,Ze,ve(wt))}}function le(Tt){return"TEMPLATE"===Tt.tagName&&void 0!==Tt.content}class k extends Ye{constructor(Dt,Ze,wt,Ft){super(Dt),this.component=wt;const ln=ge(Ft+"-"+wt.id,wt.styles,[]);Ze.addStyles(ln),this.contentAttr=function Q(Tt){return te.replace(T,Tt)}(Ft+"-"+wt.id),this.hostAttr=function Ee(Tt){return V.replace(T,Tt)}(Ft+"-"+wt.id)}applyToHost(Dt){super.setAttribute(Dt,this.hostAttr,"")}createElement(Dt,Ze){const wt=super.createElement(Dt,Ze);return super.setAttribute(wt,this.contentAttr,""),wt}}class N extends Ye{constructor(Dt,Ze,wt,Ft){super(Dt),this.sharedStylesHost=Ze,this.hostEl=wt,this.shadowRoot=wt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ln=ge(Ft.id,Ft.styles,[]);for(let bn=0;bn{class Tt extends z{constructor(Ze){super(Ze)}supports(Ze){return!0}addEventListener(Ze,wt,Ft){return Ze.addEventListener(wt,Ft,!1),()=>this.removeEventListener(Ze,wt,Ft)}removeEventListener(Ze,wt,Ft){return Ze.removeEventListener(wt,Ft)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(A.LFG(e.K0))},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();const Z=["alt","control","meta","shift"],xe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ot={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Fe={alt:Tt=>Tt.altKey,control:Tt=>Tt.ctrlKey,meta:Tt=>Tt.metaKey,shift:Tt=>Tt.shiftKey};let ut=(()=>{class Tt extends z{constructor(Ze){super(Ze)}supports(Ze){return null!=Tt.parseEventName(Ze)}addEventListener(Ze,wt,Ft){const ln=Tt.parseEventName(wt),bn=Tt.eventCallback(ln.fullKey,Ft,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(Ze,ln.domEventName,bn))}static parseEventName(Ze){const wt=Ze.toLowerCase().split("."),Ft=wt.shift();if(0===wt.length||"keydown"!==Ft&&"keyup"!==Ft)return null;const ln=Tt._normalizeKey(wt.pop());let bn="";if(Z.forEach(zn=>{const bt=wt.indexOf(zn);bt>-1&&(wt.splice(bt,1),bn+=zn+".")}),bn+=ln,0!=wt.length||0===ln.length)return null;const gn={};return gn.domEventName=Ft,gn.fullKey=bn,gn}static getEventFullKey(Ze){let wt="",Ft=function tt(Tt){let Dt=Tt.key;if(null==Dt){if(Dt=Tt.keyIdentifier,null==Dt)return"Unidentified";Dt.startsWith("U+")&&(Dt=String.fromCharCode(parseInt(Dt.substring(2),16)),3===Tt.location&&ot.hasOwnProperty(Dt)&&(Dt=ot[Dt]))}return xe[Dt]||Dt}(Ze);return Ft=Ft.toLowerCase()," "===Ft?Ft="space":"."===Ft&&(Ft="dot"),Z.forEach(ln=>{ln!=Ft&&(0,Fe[ln])(Ze)&&(wt+=ln+".")}),wt+=Ft,wt}static eventCallback(Ze,wt,Ft){return ln=>{Tt.getEventFullKey(ln)===Ze&&Ft.runGuarded(()=>wt(ln))}}static _normalizeKey(Ze){return"esc"===Ze?"escape":Ze}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(A.LFG(e.K0))},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();const Ne=(0,A.eFA)(A._c5,"browser",[{provide:A.Lbi,useValue:e.bD},{provide:A.g9A,useValue:function Ae(){M.makeCurrent()},multi:!0},{provide:e.K0,useFactory:function _e(){return(0,A.RDi)(document),document},deps:[]}]),Ce=new A.OlP(""),fe=[{provide:A.rWj,useClass:class L{addToWindow(Dt){A.dqk.getAngularTestability=(wt,Ft=!0)=>{const ln=Dt.findTestabilityInTree(wt,Ft);if(null==ln)throw new Error("Could not find testability for element.");return ln},A.dqk.getAllAngularTestabilities=()=>Dt.getAllTestabilities(),A.dqk.getAllAngularRootElements=()=>Dt.getAllRootElements(),A.dqk.frameworkStabilizers||(A.dqk.frameworkStabilizers=[]),A.dqk.frameworkStabilizers.push(wt=>{const Ft=A.dqk.getAllAngularTestabilities();let ln=Ft.length,bn=!1;const gn=function(zn){bn=bn||zn,ln--,0==ln&&wt(bn)};Ft.forEach(function(zn){zn.whenStable(gn)})})}findTestabilityInTree(Dt,Ze,wt){return null==Ze?null:Dt.getTestability(Ze)??(wt?(0,e.q)().isShadowRoot(Ze)?this.findTestabilityInTree(Dt,Ze.host,!0):this.findTestabilityInTree(Dt,Ze.parentElement,!0):null)}},deps:[]},{provide:A.lri,useClass:A.dDg,deps:[A.R0b,A.eoX,A.rWj]},{provide:A.dDg,useClass:A.dDg,deps:[A.R0b,A.eoX,A.rWj]}],r=[{provide:A.zSh,useValue:"root"},{provide:A.qLn,useFactory:function ye(){return new A.qLn},deps:[]},{provide:q,useClass:be,multi:!0,deps:[e.K0,A.R0b,A.Lbi]},{provide:q,useClass:ut,multi:!0,deps:[e.K0]},{provide:he,useClass:he,deps:[ee,Te,A.AFp]},{provide:A.FYo,useExisting:he},{provide:ie,useExisting:Te},{provide:Te,useClass:Te,deps:[e.K0]},{provide:ee,useClass:ee,deps:[q,A.R0b]},{provide:e.JF,useClass:O,deps:[]},[]];let u=(()=>{class Tt{constructor(Ze){}static withServerTransition(Ze){return{ngModule:Tt,providers:[{provide:A.AFp,useValue:Ze.appId},{provide:R,useExisting:A.AFp},w]}}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(A.LFG(Ce,12))},Tt.\u0275mod=A.oAB({type:Tt}),Tt.\u0275inj=A.cJS({providers:[...r,...fe],imports:[e.ez,A.hGG]}),Tt})(),i=(()=>{class Tt{constructor(Ze){this._doc=Ze}getTitle(){return this._doc.title}setTitle(Ze){this._doc.title=Ze||""}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(A.LFG(e.K0))},Tt.\u0275prov=A.Yz7({token:Tt,factory:function(Ze){let wt=null;return wt=Ze?new Ze:function a(){return new i((0,A.LFG)(e.K0))}(),wt},providedIn:"root"}),Tt})();typeof window<"u"&&window;let an=(()=>{class Tt{}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275prov=A.Yz7({token:Tt,factory:function(Ze){let wt=null;return wt=Ze?new(Ze||Tt):A.LFG(on),wt},providedIn:"root"}),Tt})(),on=(()=>{class Tt extends an{constructor(Ze){super(),this._doc=Ze}sanitize(Ze,wt){if(null==wt)return null;switch(Ze){case A.q3G.NONE:return wt;case A.q3G.HTML:return(0,A.qzn)(wt,"HTML")?(0,A.z3N)(wt):(0,A.EiD)(this._doc,String(wt)).toString();case A.q3G.STYLE:return(0,A.qzn)(wt,"Style")?(0,A.z3N)(wt):wt;case A.q3G.SCRIPT:if((0,A.qzn)(wt,"Script"))return(0,A.z3N)(wt);throw new Error("unsafe value used in a script context");case A.q3G.URL:return(0,A.qzn)(wt,"URL")?(0,A.z3N)(wt):(0,A.mCW)(String(wt));case A.q3G.RESOURCE_URL:if((0,A.qzn)(wt,"ResourceURL"))return(0,A.z3N)(wt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${Ze} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(Ze){return(0,A.JVY)(Ze)}bypassSecurityTrustStyle(Ze){return(0,A.L6k)(Ze)}bypassSecurityTrustScript(Ze){return(0,A.eBb)(Ze)}bypassSecurityTrustUrl(Ze){return(0,A.LAX)(Ze)}bypassSecurityTrustResourceUrl(Ze){return(0,A.pB0)(Ze)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(A.LFG(e.K0))},Tt.\u0275prov=A.Yz7({token:Tt,factory:function(Ze){let wt=null;return wt=Ze?new Ze:function Kt(Tt){return new on(Tt.get(e.K0))}(A.LFG(A.zs3)),wt},providedIn:"root"}),Tt})()},94364:(Xe,ue,p)=>{"use strict";p.d(ue,{gz:()=>Zt,m2:()=>qn,OD:()=>zi,GZ:()=>rl,wN:()=>ds,F0:()=>Di,rH:()=>Kr,yS:()=>va,Bz:()=>ai,lC:()=>Ji});var e=p(94650),A=p(69751),C=p(50727),M=p(54482),m=p(25403);function b(){return(0,M.e)((ae,ce)=>{let G=null;ae._refCount++;const Me=(0,m.x)(ce,void 0,void 0,void 0,()=>{if(!ae||ae._refCount<=0||0<--ae._refCount)return void(G=null);const Ge=ae._connection,mt=G;G=null,Ge&&(!mt||Ge===mt)&&Ge.unsubscribe(),ce.unsubscribe()});ae.subscribe(Me),Me.closed||(G=ae.connect())})}class D extends A.y{constructor(ce,G){super(),this.source=ce,this.subjectFactory=G,this._subject=null,this._refCount=0,this._connection=null,(0,M.A)(ce)&&(this.lift=ce.lift)}_subscribe(ce){return this.getSubject().subscribe(ce)}getSubject(){const ce=this._subject;return(!ce||ce.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:ce}=this;this._subject=this._connection=null,ce?.unsubscribe()}connect(){let ce=this._connection;if(!ce){ce=this._connection=new C.w0;const G=this.getSubject();ce.add(this.source.subscribe((0,m.x)(G,void 0,()=>{this._teardown(),G.complete()},Me=>{this._teardown(),G.error(Me)},()=>this._teardown()))),ce.closed&&(this._connection=null,ce=C.w0.EMPTY)}return ce}refCount(){return b()(this)}}var v=p(32076),R=p(39646),B=p(61135),w=p(86805),L=p(39841),O=p(97272),q=p(49770),ee=p(89635),z=p(62843),ie=p(60515),Te=p(77579),pe=p(36895),Le=p(57359);function T(ae,ce){return(0,M.e)((0,Le.U)(ae,ce,arguments.length>=2,!0))}var W=p(39300);function F(ae){return ae<=0?()=>ie.E:(0,M.e)((ce,G)=>{let Me=[];ce.subscribe((0,m.x)(G,Ge=>{Me.push(Ge),ae{for(const Ge of Me)G.next(Ge);G.complete()},void 0,()=>{Me=null}))})}var V=p(18068),te=p(46590),Q=p(44671);function Ee(ae,ce){const G=arguments.length>=2;return Me=>Me.pipe(ae?(0,W.h)((Ge,mt)=>ae(Ge,mt,Me)):Q.y,F(1),G?(0,te.d)(ce):(0,V.T)(()=>new w.K))}var ge=p(54004),ve=p(63900),De=p(95698),he=p(68675),Ye=p(86099),Be=p(50590),se=p(24351),le=p(18505),k=p(70262),N=p(22529),be=p(69718),Z=p(28746),de=p(8189),xe=p(11481);const ot="primary";class Fe{constructor(ce){this.params=ce||{}}has(ce){return Object.prototype.hasOwnProperty.call(this.params,ce)}get(ce){if(this.has(ce)){const G=this.params[ce];return Array.isArray(G)?G[0]:G}return null}getAll(ce){if(this.has(ce)){const G=this.params[ce];return Array.isArray(G)?G:[G]}return[]}get keys(){return Object.keys(this.params)}}function ut(ae){return new Fe(ae)}function tt(ae,ce,G){const Me=G.path.split("/");if(Me.length>ae.length||"full"===G.pathMatch&&(ce.hasChildren()||Me.lengthMe[mt]===Ge)}return ae===ce}function Ae(ae){return Array.prototype.concat.apply([],ae)}function ye(ae){return ae.length>0?ae[ae.length-1]:null}function Se(ae,ce){for(const G in ae)ae.hasOwnProperty(G)&&ce(ae[G],G)}function Ne(ae){return(0,e.CqO)(ae)?ae:(0,e.QGY)(ae)?(0,v.D)(Promise.resolve(ae)):(0,R.of)(ae)}const r={exact:function h(ae,ce,G){if(!c(ae.segments,ce.segments)||!n(ae.segments,ce.segments,G)||ae.numberOfChildren!==ce.numberOfChildren)return!1;for(const Me in ce.children)if(!ae.children[Me]||!h(ae.children[Me],ce.children[Me],G))return!1;return!0},subset:i},u={exact:function E(ae,ce){return X(ae,ce)},subset:function a(ae,ce){return Object.keys(ce).length<=Object.keys(ae).length&&Object.keys(ce).every(G=>nt(ae[G],ce[G]))},ignored:()=>!0};function _(ae,ce,G){return r[G.paths](ae.root,ce.root,G.matrixParams)&&u[G.queryParams](ae.queryParams,ce.queryParams)&&!("exact"===G.fragment&&ae.fragment!==ce.fragment)}function i(ae,ce,G){return t(ae,ce,ce.segments,G)}function t(ae,ce,G,Me){if(ae.segments.length>G.length){const Ge=ae.segments.slice(0,G.length);return!(!c(Ge,G)||ce.hasChildren()||!n(Ge,G,Me))}if(ae.segments.length===G.length){if(!c(ae.segments,G)||!n(ae.segments,G,Me))return!1;for(const Ge in ce.children)if(!ae.children[Ge]||!i(ae.children[Ge],ce.children[Ge],Me))return!1;return!0}{const Ge=G.slice(0,ae.segments.length),mt=G.slice(ae.segments.length);return!!(c(ae.segments,Ge)&&n(ae.segments,Ge,Me)&&ae.children[ot])&&t(ae.children[ot],ce,mt,Me)}}function n(ae,ce,G){return ce.every((Me,Ge)=>u[G](ae[Ge].parameters,Me.parameters))}class o{constructor(ce,G,Me){this.root=ce,this.queryParams=G,this.fragment=Me}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ut(this.queryParams)),this._queryParamMap}toString(){return We.serialize(this)}}class s{constructor(ce,G){this.segments=ce,this.children=G,this.parent=null,Se(G,(Me,Ge)=>Me.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return et(this)}}class l{constructor(ce,G){this.path=ce,this.parameters=G}get parameterMap(){return this._parameterMap||(this._parameterMap=ut(this.parameters)),this._parameterMap}toString(){return st(this)}}function c(ae,ce){return ae.length===ce.length&&ae.every((G,Me)=>G.path===ce[Me].path)}let J=(()=>{class ae{}return ae.\u0275fac=function(G){return new(G||ae)},ae.\u0275prov=e.Yz7({token:ae,factory:function(){return new ht},providedIn:"root"}),ae})();class ht{parse(ce){const G=new on(ce);return new o(G.parseRootSegment(),G.parseQueryParams(),G.parseFragment())}serialize(ce){const G=`/${ne(ce.root,!0)}`,Me=function Et(ae){const ce=Object.keys(ae).map(G=>{const Me=ae[G];return Array.isArray(Me)?Me.map(Ge=>`${He(G)}=${He(Ge)}`).join("&"):`${He(G)}=${He(Me)}`}).filter(G=>!!G);return ce.length?`?${ce.join("&")}`:""}(ce.queryParams);return`${G}${Me}${"string"==typeof ce.fragment?`#${function Oe(ae){return encodeURI(ae)}(ce.fragment)}`:""}`}}const We=new ht;function et(ae){return ae.segments.map(ce=>st(ce)).join("/")}function ne(ae,ce){if(!ae.hasChildren())return et(ae);if(ce){const G=ae.children[ot]?ne(ae.children[ot],!1):"",Me=[];return Se(ae.children,(Ge,mt)=>{mt!==ot&&Me.push(`${mt}:${ne(Ge,!1)}`)}),Me.length>0?`${G}(${Me.join("//")})`:G}{const G=function S(ae,ce){let G=[];return Se(ae.children,(Me,Ge)=>{Ge===ot&&(G=G.concat(ce(Me,Ge)))}),Se(ae.children,(Me,Ge)=>{Ge!==ot&&(G=G.concat(ce(Me,Ge)))}),G}(ae,(Me,Ge)=>Ge===ot?[ne(ae.children[ot],!1)]:[`${Ge}:${ne(Me,!1)}`]);return 1===Object.keys(ae.children).length&&null!=ae.children[ot]?`${et(ae)}/${G[0]}`:`${et(ae)}/(${G.join("//")})`}}function Ue(ae){return encodeURIComponent(ae).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function He(ae){return Ue(ae).replace(/%3B/gi,";")}function Re(ae){return Ue(ae).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function re(ae){return decodeURIComponent(ae)}function we(ae){return re(ae.replace(/\+/g,"%20"))}function st(ae){return`${Re(ae.path)}${function Ke(ae){return Object.keys(ae).map(ce=>`;${Re(ce)}=${Re(ae[ce])}`).join("")}(ae.parameters)}`}const ke=/^[^\/()?;=#]+/;function at(ae){const ce=ae.match(ke);return ce?ce[0]:""}const It=/^[^=?&#]+/,an=/^[^&#]+/;class on{constructor(ce){this.url=ce,this.remaining=ce}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new s([],{}):new s([],this.parseChildren())}parseQueryParams(){const ce={};if(this.consumeOptional("?"))do{this.parseQueryParam(ce)}while(this.consumeOptional("&"));return ce}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ce=[];for(this.peekStartsWith("(")||ce.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ce.push(this.parseSegment());let G={};this.peekStartsWith("/(")&&(this.capture("/"),G=this.parseParens(!0));let Me={};return this.peekStartsWith("(")&&(Me=this.parseParens(!1)),(ce.length>0||Object.keys(G).length>0)&&(Me[ot]=new s(ce,G)),Me}parseSegment(){const ce=at(this.remaining);if(""===ce&&this.peekStartsWith(";"))throw new e.vHH(4009,!1);return this.capture(ce),new l(re(ce),this.parseMatrixParams())}parseMatrixParams(){const ce={};for(;this.consumeOptional(";");)this.parseParam(ce);return ce}parseParam(ce){const G=at(this.remaining);if(!G)return;this.capture(G);let Me="";if(this.consumeOptional("=")){const Ge=at(this.remaining);Ge&&(Me=Ge,this.capture(Me))}ce[re(G)]=re(Me)}parseQueryParam(ce){const G=function jt(ae){const ce=ae.match(It);return ce?ce[0]:""}(this.remaining);if(!G)return;this.capture(G);let Me="";if(this.consumeOptional("=")){const Rt=function Kt(ae){const ce=ae.match(an);return ce?ce[0]:""}(this.remaining);Rt&&(Me=Rt,this.capture(Me))}const Ge=we(G),mt=we(Me);if(ce.hasOwnProperty(Ge)){let Rt=ce[Ge];Array.isArray(Rt)||(Rt=[Rt],ce[Ge]=Rt),Rt.push(mt)}else ce[Ge]=mt}parseParens(ce){const G={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Me=at(this.remaining),Ge=this.remaining[Me.length];if("/"!==Ge&&")"!==Ge&&";"!==Ge)throw new e.vHH(4010,!1);let mt;Me.indexOf(":")>-1?(mt=Me.slice(0,Me.indexOf(":")),this.capture(mt),this.capture(":")):ce&&(mt=ot);const Rt=this.parseChildren();G[mt]=1===Object.keys(Rt).length?Rt[ot]:new s([],Rt),this.consumeOptional("//")}return G}peekStartsWith(ce){return this.remaining.startsWith(ce)}consumeOptional(ce){return!!this.peekStartsWith(ce)&&(this.remaining=this.remaining.substring(ce.length),!0)}capture(ce){if(!this.consumeOptional(ce))throw new e.vHH(4011,!1)}}function Cn(ae){return ae.segments.length>0?new s([],{[ot]:ae}):ae}function Tt(ae){const ce={};for(const Me of Object.keys(ae.children)){const mt=Tt(ae.children[Me]);(mt.segments.length>0||mt.hasChildren())&&(ce[Me]=mt)}return function Dt(ae){if(1===ae.numberOfChildren&&ae.children[ot]){const ce=ae.children[ot];return new s(ae.segments.concat(ce.segments),ce.children)}return ae}(new s(ae.segments,ce))}function Ze(ae){return ae instanceof o}function gn(ae,ce,G,Me,Ge){var mt;if(0===G.length)return Lt(ce.root,ce.root,ce.root,Me,Ge);const Rt=function St(ae){if("string"==typeof ae[0]&&1===ae.length&&"/"===ae[0])return new rt(!0,0,ae);let ce=0,G=!1;const Me=ae.reduce((Ge,mt,Rt)=>{if("object"==typeof mt&&null!=mt){if(mt.outlets){const Ut={};return Se(mt.outlets,(qt,un)=>{Ut[un]="string"==typeof qt?qt.split("/"):qt}),[...Ge,{outlets:Ut}]}if(mt.segmentPath)return[...Ge,mt.segmentPath]}return"string"!=typeof mt?[...Ge,mt]:0===Rt?(mt.split("/").forEach((Ut,qt)=>{0==qt&&"."===Ut||(0==qt&&""===Ut?G=!0:".."===Ut?ce++:""!=Ut&&Ge.push(Ut))}),Ge):[...Ge,mt]},[]);return new rt(G,ce,Me)}(G);if(Rt.toRoot())return Lt(ce.root,ce.root,new s([],{}),Me,Ge);const qt=function Ut(En){var hn;const Dn=function At(ae,ce,G,Me){if(ae.isAbsolute)return new $(ce.root,!0,0);if(-1===Me)return new $(G,G===ce.root,0);return function Pt(ae,ce,G){let Me=ae,Ge=ce,mt=G;for(;mt>Ge;){if(mt-=Ge,Me=Me.parent,!Me)throw new e.vHH(4005,!1);Ge=Me.segments.length}return new $(Me,!1,Ge-mt)}(G,Me+(zn(ae.commands[0])?0:1),ae.numberOfDoubleDots)}(Rt,ce,null===(hn=ae.snapshot)||void 0===hn?void 0:hn._urlSegment,En),pi=Dn.processChildren?Zn(Dn.segmentGroup,Dn.index,Rt.commands):yn(Dn.segmentGroup,Dn.index,Rt.commands);return Lt(ce.root,Dn.segmentGroup,pi,Me,Ge)}(null===(mt=ae.snapshot)||void 0===mt?void 0:mt._lastPathIndex);return qt}function zn(ae){return"object"==typeof ae&&null!=ae&&!ae.outlets&&!ae.segmentPath}function bt(ae){return"object"==typeof ae&&null!=ae&&ae.outlets}function Lt(ae,ce,G,Me,Ge){let Rt,mt={};Me&&Se(Me,(qt,un)=>{mt[un]=Array.isArray(qt)?qt.map(En=>`${En}`):`${qt}`}),Rt=ae===ce?G:pt(ae,ce,G);const Ut=Cn(Tt(Rt));return new o(Ut,mt,Ge)}function pt(ae,ce,G){const Me={};return Se(ae.children,(Ge,mt)=>{Me[mt]=Ge===ce?G:pt(Ge,ce,G)}),new s(ae.segments,Me)}class rt{constructor(ce,G,Me){if(this.isAbsolute=ce,this.numberOfDoubleDots=G,this.commands=Me,ce&&Me.length>0&&zn(Me[0]))throw new e.vHH(4003,!1);const Ge=Me.find(bt);if(Ge&&Ge!==ye(Me))throw new e.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ${constructor(ce,G,Me){this.segmentGroup=ce,this.processChildren=G,this.index=Me}}function yn(ae,ce,G){if(ae||(ae=new s([],{})),0===ae.segments.length&&ae.hasChildren())return Zn(ae,ce,G);const Me=function Hn(ae,ce,G){let Me=0,Ge=ce;const mt={match:!1,pathIndex:0,commandIndex:0};for(;Ge=G.length)return mt;const Rt=ae.segments[Ge],Ut=G[Me];if(bt(Ut))break;const qt=`${Ut}`,un=Me0&&void 0===qt)break;if(qt&&un&&"object"==typeof un&&void 0===un.outlets){if(!Jn(qt,un,Rt))return mt;Me+=2}else{if(!Jn(qt,{},Rt))return mt;Me++}Ge++}return{match:!0,pathIndex:Ge,commandIndex:Me}}(ae,ce,G),Ge=G.slice(Me.commandIndex);if(Me.match&&Me.pathIndex{"string"==typeof mt&&(mt=[mt]),null!==mt&&(Ge[Rt]=yn(ae.children[Rt],ce,mt))}),Se(ae.children,(mt,Rt)=>{void 0===Me[Rt]&&(Ge[Rt]=mt)}),new s(ae.segments,Ge)}}function Xn(ae,ce,G){const Me=ae.segments.slice(0,ce);let Ge=0;for(;Ge{"string"==typeof G&&(G=[G]),null!==G&&(ce[Me]=Xn(new s([],{}),0,G))}),ce}function di(ae){const ce={};return Se(ae,(G,Me)=>ce[Me]=`${G}`),ce}function Jn(ae,ce,G){return ae==G.path&&X(ce,G.parameters)}class Ln{constructor(ce,G){this.id=ce,this.url=G}}class zi extends Ln{constructor(ce,G,Me="imperative",Ge=null){super(ce,G),this.type=0,this.navigationTrigger=Me,this.restoredState=Ge}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class qn extends Ln{constructor(ce,G,Me){super(ce,G),this.urlAfterRedirects=Me,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class si extends Ln{constructor(ce,G,Me,Ge){super(ce,G),this.reason=Me,this.code=Ge,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Yi extends Ln{constructor(ce,G,Me,Ge){super(ce,G),this.error=Me,this.target=Ge,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class tr extends Ln{constructor(ce,G,Me,Ge){super(ce,G),this.urlAfterRedirects=Me,this.state=Ge,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Vi extends Ln{constructor(ce,G,Me,Ge){super(ce,G),this.urlAfterRedirects=Me,this.state=Ge,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class li extends Ln{constructor(ce,G,Me,Ge,mt){super(ce,G),this.urlAfterRedirects=Me,this.state=Ge,this.shouldActivate=mt,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class or extends Ln{constructor(ce,G,Me,Ge){super(ce,G),this.urlAfterRedirects=Me,this.state=Ge,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ir extends Ln{constructor(ce,G,Me,Ge){super(ce,G),this.urlAfterRedirects=Me,this.state=Ge,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sr{constructor(ce){this.route=ce,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class lr{constructor(ce){this.route=ce,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ci{constructor(ce){this.snapshot=ce,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Er{constructor(ce){this.snapshot=ce,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ur{constructor(ce){this.snapshot=ce,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ei{constructor(ce){this.snapshot=ce,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Or{constructor(ce,G,Me){this.routerEvent=ce,this.position=G,this.anchor=Me,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class kr{constructor(ce){this._root=ce}get root(){return this._root.value}parent(ce){const G=this.pathFromRoot(ce);return G.length>1?G[G.length-2]:null}children(ce){const G=Hr(ce,this._root);return G?G.children.map(Me=>Me.value):[]}firstChild(ce){const G=Hr(ce,this._root);return G&&G.children.length>0?G.children[0].value:null}siblings(ce){const G=Pi(ce,this._root);return G.length<2?[]:G[G.length-2].children.map(Ge=>Ge.value).filter(Ge=>Ge!==ce)}pathFromRoot(ce){return Pi(ce,this._root).map(G=>G.value)}}function Hr(ae,ce){if(ae===ce.value)return ce;for(const G of ce.children){const Me=Hr(ae,G);if(Me)return Me}return null}function Pi(ae,ce){if(ae===ce.value)return[ce];for(const G of ce.children){const Me=Pi(ae,G);if(Me.length)return Me.unshift(ce),Me}return[]}class Ii{constructor(ce,G){this.value=ce,this.children=G}toString(){return`TreeNode(${this.value})`}}function Mt(ae){const ce={};return ae&&ae.children.forEach(G=>ce[G.value.outlet]=G),ce}class en extends kr{constructor(ce,G){super(ce),this.snapshot=G,ui(this,ce)}toString(){return this.snapshot.toString()}}function ct(ae,ce){const G=function kt(ae,ce){const Rt=new Bn([],{},{},"",{},ot,ce,null,ae.root,-1,{});return new Qn("",new Ii(Rt,[]))}(ae,ce),Me=new B.X([new l("",{})]),Ge=new B.X({}),mt=new B.X({}),Rt=new B.X({}),Ut=new B.X(""),qt=new Zt(Me,Ge,Rt,Ut,mt,ot,ce,G.root);return qt.snapshot=G.root,new en(new Ii(qt,[]),G)}class Zt{constructor(ce,G,Me,Ge,mt,Rt,Ut,qt){this.url=ce,this.params=G,this.queryParams=Me,this.fragment=Ge,this.data=mt,this.outlet=Rt,this.component=Ut,this._futureSnapshot=qt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ge.U)(ce=>ut(ce)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ge.U)(ce=>ut(ce)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function rn(ae,ce="emptyOnly"){const G=ae.pathFromRoot;let Me=0;if("always"!==ce)for(Me=G.length-1;Me>=1;){const Ge=G[Me],mt=G[Me-1];if(Ge.routeConfig&&""===Ge.routeConfig.path)Me--;else{if(mt.component)break;Me--}}return function In(ae){return ae.reduce((ce,G)=>{var Me;return{params:{...ce.params,...G.params},data:{...ce.data,...G.data},resolve:{...G.data,...ce.resolve,...null===(Me=G.routeConfig)||void 0===Me?void 0:Me.data,...G._resolvedData}}},{params:{},data:{},resolve:{}})}(G.slice(Me))}class Bn{constructor(ce,G,Me,Ge,mt,Rt,Ut,qt,un,En,hn,Dn){this.url=ce,this.params=G,this.queryParams=Me,this.fragment=Ge,this.data=mt,this.outlet=Rt,this.component=Ut,this.routeConfig=qt,this._urlSegment=un,this._lastPathIndex=En,this._correctedLastPathIndex=Dn??En,this._resolve=hn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ut(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ut(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Me=>Me.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Qn extends kr{constructor(ce,G){super(G),this.url=ce,ui(this,G)}toString(){return nr(this._root)}}function ui(ae,ce){ce.value._routerState=ae,ce.children.forEach(G=>ui(ae,G))}function nr(ae){const ce=ae.children.length>0?` { ${ae.children.map(nr).join(", ")} } `:"";return`${ae.value}${ce}`}function Oi(ae){if(ae.snapshot){const ce=ae.snapshot,G=ae._futureSnapshot;ae.snapshot=G,X(ce.queryParams,G.queryParams)||ae.queryParams.next(G.queryParams),ce.fragment!==G.fragment&&ae.fragment.next(G.fragment),X(ce.params,G.params)||ae.params.next(G.params),function vt(ae,ce){if(ae.length!==ce.length)return!1;for(let G=0;GX(G.parameters,ce[Me].parameters))}(ae.url,ce.url);return G&&!(!ae.parent!=!ce.parent)&&(!ae.parent||xi(ae.parent,ce.parent))}function lt(ae,ce,G){if(G&&ae.shouldReuseRoute(ce.value,G.value.snapshot)){const Me=G.value;Me._futureSnapshot=ce.value;const Ge=function Vt(ae,ce,G){return ce.children.map(Me=>{for(const Ge of G.children)if(ae.shouldReuseRoute(Me.value,Ge.value.snapshot))return lt(ae,Me,Ge);return lt(ae,Me)})}(ae,ce,G);return new Ii(Me,Ge)}{if(ae.shouldAttach(ce.value)){const mt=ae.retrieve(ce.value);if(null!==mt){const Rt=mt.route;return Rt.value._futureSnapshot=ce.value,Rt.children=ce.children.map(Ut=>lt(ae,Ut)),Rt}}const Me=function $e(ae){return new Zt(new B.X(ae.url),new B.X(ae.params),new B.X(ae.queryParams),new B.X(ae.fragment),new B.X(ae.data),ae.outlet,ae.component,ae)}(ce.value),Ge=ce.children.map(mt=>lt(ae,mt));return new Ii(Me,Ge)}}const yt="ngNavigationCancelingError";function Wt(ae,ce){const{redirectTo:G,navigationBehaviorOptions:Me}=Ze(ce)?{redirectTo:ce,navigationBehaviorOptions:void 0}:ce,Ge=dn(!1,0,ce);return Ge.url=G,Ge.navigationBehaviorOptions=Me,Ge}function dn(ae,ce,G){const Me=new Error("NavigationCancelingError: "+(ae||""));return Me[yt]=!0,Me.cancellationCode=ce,G&&(Me.url=G),Me}function An(ae){return Yn(ae)&&Ze(ae.url)}function Yn(ae){return ae&&ae[yt]}class ri{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new bi,this.attachRef=null}}let bi=(()=>{class ae{constructor(){this.contexts=new Map}onChildOutletCreated(G,Me){const Ge=this.getOrCreateContext(G);Ge.outlet=Me,this.contexts.set(G,Ge)}onChildOutletDestroyed(G){const Me=this.getContext(G);Me&&(Me.outlet=null,Me.attachRef=null)}onOutletDeactivated(){const G=this.contexts;return this.contexts=new Map,G}onOutletReAttached(G){this.contexts=G}getOrCreateContext(G){let Me=this.getContext(G);return Me||(Me=new ri,this.contexts.set(G,Me)),Me}getContext(G){return this.contexts.get(G)||null}}return ae.\u0275fac=function(G){return new(G||ae)},ae.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();const cr=!1;let Ji=(()=>{class ae{constructor(G,Me,Ge,mt,Rt){this.parentContexts=G,this.location=Me,this.changeDetector=mt,this.environmentInjector=Rt,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=Ge||ot,G.onChildOutletCreated(this.name,this)}ngOnDestroy(){var G;(null===(G=this.parentContexts.getContext(this.name))||void 0===G?void 0:G.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const G=this.parentContexts.getContext(this.name);G&&G.route&&(G.attachRef?this.attach(G.attachRef,G.route):this.activateWith(G.route,G.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,cr);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,cr);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,cr);this.location.detach();const G=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(G.instance),G}attach(G,Me){this.activated=G,this._activatedRoute=Me,this.location.insert(G.hostView),this.attachEvents.emit(G.instance)}deactivate(){if(this.activated){const G=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(G)}}activateWith(G,Me){if(this.isActivated)throw new e.vHH(4013,cr);this._activatedRoute=G;const Ge=this.location,Rt=G._futureSnapshot.component,Ut=this.parentContexts.getOrCreateContext(this.name).children,qt=new ei(G,Ut,Ge.injector);if(Me&&function Ba(ae){return!!ae.resolveComponentFactory}(Me)){const un=Me.resolveComponentFactory(Rt);this.activated=Ge.createComponent(un,Ge.length,qt)}else this.activated=Ge.createComponent(Rt,{index:Ge.length,injector:qt,environmentInjector:Me??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return ae.\u0275fac=function(G){return new(G||ae)(e.Y36(bi),e.Y36(e.s_b),e.$8M("name"),e.Y36(e.sBO),e.Y36(e.lqb))},ae.\u0275dir=e.lG2({type:ae,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),ae})();class ei{constructor(ce,G,Me){this.route=ce,this.childContexts=G,this.parent=Me}get(ce,G){return ce===Zt?this.route:ce===bi?this.childContexts:this.parent.get(ce,G)}}let Qi=(()=>{class ae{}return ae.\u0275fac=function(G){return new(G||ae)},ae.\u0275cmp=e.Xpm({type:ae,selectors:[["ng-component"]],decls:1,vars:0,template:function(G,Me){1&G&&e._UZ(0,"router-outlet")},dependencies:[Ji],encapsulation:2}),ae})();function Fi(ae,ce){var G;return ae.providers&&!ae._injector&&(ae._injector=(0,e.MMx)(ae.providers,ce,`Route: ${ae.path}`)),null!==(G=ae._injector)&&void 0!==G?G:ce}function Ct(ae){const ce=ae.children&&ae.children.map(Ct),G=ce?{...ae,children:ce}:{...ae};return!G.component&&!G.loadComponent&&(ce||G.loadChildren)&&G.outlet&&G.outlet!==ot&&(G.component=Qi),G}function Bt(ae){return ae.outlet||ot}function Qt(ae,ce){const G=ae.filter(Me=>Bt(Me)===ce);return G.push(...ae.filter(Me=>Bt(Me)!==ce)),G}function zt(ae){var ce;if(!ae)return null;if(null!==(ce=ae.routeConfig)&&void 0!==ce&&ce._injector)return ae.routeConfig._injector;for(let G=ae.parent;G;G=G.parent){const Me=G.routeConfig;if(null!=Me&&Me._loadedInjector)return Me._loadedInjector;if(null!=Me&&Me._injector)return Me._injector}return null}class ni{constructor(ce,G,Me,Ge){this.routeReuseStrategy=ce,this.futureState=G,this.currState=Me,this.forwardEvent=Ge}activate(ce){const G=this.futureState._root,Me=this.currState?this.currState._root:null;this.deactivateChildRoutes(G,Me,ce),Oi(this.futureState.root),this.activateChildRoutes(G,Me,ce)}deactivateChildRoutes(ce,G,Me){const Ge=Mt(G);ce.children.forEach(mt=>{const Rt=mt.value.outlet;this.deactivateRoutes(mt,Ge[Rt],Me),delete Ge[Rt]}),Se(Ge,(mt,Rt)=>{this.deactivateRouteAndItsChildren(mt,Me)})}deactivateRoutes(ce,G,Me){const Ge=ce.value,mt=G?G.value:null;if(Ge===mt)if(Ge.component){const Rt=Me.getContext(Ge.outlet);Rt&&this.deactivateChildRoutes(ce,G,Rt.children)}else this.deactivateChildRoutes(ce,G,Me);else mt&&this.deactivateRouteAndItsChildren(G,Me)}deactivateRouteAndItsChildren(ce,G){ce.value.component&&this.routeReuseStrategy.shouldDetach(ce.value.snapshot)?this.detachAndStoreRouteSubtree(ce,G):this.deactivateRouteAndOutlet(ce,G)}detachAndStoreRouteSubtree(ce,G){const Me=G.getContext(ce.value.outlet),Ge=Me&&ce.value.component?Me.children:G,mt=Mt(ce);for(const Rt of Object.keys(mt))this.deactivateRouteAndItsChildren(mt[Rt],Ge);if(Me&&Me.outlet){const Rt=Me.outlet.detach(),Ut=Me.children.onOutletDeactivated();this.routeReuseStrategy.store(ce.value.snapshot,{componentRef:Rt,route:ce,contexts:Ut})}}deactivateRouteAndOutlet(ce,G){const Me=G.getContext(ce.value.outlet),Ge=Me&&ce.value.component?Me.children:G,mt=Mt(ce);for(const Rt of Object.keys(mt))this.deactivateRouteAndItsChildren(mt[Rt],Ge);Me&&Me.outlet&&(Me.outlet.deactivate(),Me.children.onOutletDeactivated(),Me.attachRef=null,Me.resolver=null,Me.route=null)}activateChildRoutes(ce,G,Me){const Ge=Mt(G);ce.children.forEach(mt=>{this.activateRoutes(mt,Ge[mt.value.outlet],Me),this.forwardEvent(new Ei(mt.value.snapshot))}),ce.children.length&&this.forwardEvent(new Er(ce.value.snapshot))}activateRoutes(ce,G,Me){const Ge=ce.value,mt=G?G.value:null;if(Oi(Ge),Ge===mt)if(Ge.component){const Ut=Me.getOrCreateContext(Ge.outlet);this.activateChildRoutes(ce,G,Ut.children)}else this.activateChildRoutes(ce,G,Me);else if(Ge.component){const Ut=Me.getOrCreateContext(Ge.outlet);if(this.routeReuseStrategy.shouldAttach(Ge.snapshot)){const qt=this.routeReuseStrategy.retrieve(Ge.snapshot);this.routeReuseStrategy.store(Ge.snapshot,null),Ut.children.onOutletReAttached(qt.contexts),Ut.attachRef=qt.componentRef,Ut.route=qt.route.value,Ut.outlet&&Ut.outlet.attach(qt.componentRef,qt.route.value),Oi(qt.route.value),this.activateChildRoutes(ce,null,Ut.children)}else{var Rt;const qt=zt(Ge.snapshot),un=null!==(Rt=qt?.get(e._Vd))&&void 0!==Rt?Rt:null;Ut.attachRef=null,Ut.route=Ge,Ut.resolver=un,Ut.injector=qt,Ut.outlet&&Ut.outlet.activateWith(Ge,Ut.injector),this.activateChildRoutes(ce,null,Ut.children)}}else this.activateChildRoutes(ce,null,Me)}}class Kn{constructor(ce){this.path=ce,this.route=this.path[this.path.length-1]}}class ti{constructor(ce,G){this.component=ce,this.route=G}}function Gn(ae,ce,G){const Me=ae._root;return vi(Me,ce?ce._root:null,G,[Me.value])}function $n(ae,ce,G){return(zt(ce)??G).get(ae)}function vi(ae,ce,G,Me,Ge={canDeactivateChecks:[],canActivateChecks:[]}){const mt=Mt(ce);return ae.children.forEach(Rt=>{(function nn(ae,ce,G,Me,Ge={canDeactivateChecks:[],canActivateChecks:[]}){const mt=ae.value,Rt=ce?ce.value:null,Ut=G?G.getContext(ae.value.outlet):null;if(Rt&&mt.routeConfig===Rt.routeConfig){const qt=function Un(ae,ce,G){if("function"==typeof G)return G(ae,ce);switch(G){case"pathParamsChange":return!c(ae.url,ce.url);case"pathParamsOrQueryParamsChange":return!c(ae.url,ce.url)||!X(ae.queryParams,ce.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xi(ae,ce)||!X(ae.queryParams,ce.queryParams);default:return!xi(ae,ce)}}(Rt,mt,mt.routeConfig.runGuardsAndResolvers);qt?Ge.canActivateChecks.push(new Kn(Me)):(mt.data=Rt.data,mt._resolvedData=Rt._resolvedData),vi(ae,ce,mt.component?Ut?Ut.children:null:G,Me,Ge),qt&&Ut&&Ut.outlet&&Ut.outlet.isActivated&&Ge.canDeactivateChecks.push(new ti(Ut.outlet.component,Rt))}else Rt&&Ki(ce,Ut,Ge),Ge.canActivateChecks.push(new Kn(Me)),vi(ae,null,mt.component?Ut?Ut.children:null:G,Me,Ge)})(Rt,mt[Rt.value.outlet],G,Me.concat([Rt.value]),Ge),delete mt[Rt.value.outlet]}),Se(mt,(Rt,Ut)=>Ki(Rt,G.getContext(Ut),Ge)),Ge}function Ki(ae,ce,G){const Me=Mt(ae),Ge=ae.value;Se(Me,(mt,Rt)=>{Ki(mt,Ge.component?ce?ce.children.getContext(Rt):null:ce,G)}),G.canDeactivateChecks.push(new ti(Ge.component&&ce&&ce.outlet&&ce.outlet.isActivated?ce.outlet.component:null,Ge))}function ji(ae){return"function"==typeof ae}function _n(ae){return ae instanceof w.K||"EmptyError"===ae?.name}const hi=Symbol("INITIAL_VALUE");function ii(){return(0,ve.w)(ae=>(0,L.a)(ae.map(ce=>ce.pipe((0,De.q)(1),(0,he.O)(hi)))).pipe((0,ge.U)(ce=>{for(const G of ce)if(!0!==G){if(G===hi)return hi;if(!1===G||G instanceof o)return G}return!0}),(0,W.h)(ce=>ce!==hi),(0,De.q)(1)))}function Xa(ae){return(0,ee.z)((0,le.b)(ce=>{if(Ze(ce))throw Wt(0,ce)}),(0,ge.U)(ce=>!0===ce))}const ta={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ns(ae,ce,G,Me,Ge){const mt=na(ae,ce,G);return mt.matched?function ts(ae,ce,G,Me){const Ge=ce.canMatch;if(!Ge||0===Ge.length)return(0,R.of)(!0);const mt=Ge.map(Rt=>{const Ut=ae.get(Rt),qt=function Pe(ae){return ae&&ji(ae.canMatch)}(Ut)?Ut.canMatch(ce,G):Ut(ce,G);return Ne(qt)});return(0,R.of)(mt).pipe(ii(),Xa())}(Me=Fi(ce,Me),ce,G).pipe((0,ge.U)(Rt=>!0===Rt?mt:{...ta})):(0,R.of)(mt)}function na(ae,ce,G){var Me;if(""===ce.path)return"full"===ce.pathMatch&&(ae.hasChildren()||G.length>0)?{...ta}:{matched:!0,consumedSegments:[],remainingSegments:G,parameters:{},positionalParamSegments:{}};const mt=(ce.matcher||tt)(G,ae,ce);if(!mt)return{...ta};const Rt={};Se(mt.posParams,(qt,un)=>{Rt[un]=qt.path});const Ut=mt.consumed.length>0?{...Rt,...mt.consumed[mt.consumed.length-1].parameters}:Rt;return{matched:!0,consumedSegments:mt.consumed,remainingSegments:G.slice(mt.consumed.length),parameters:Ut,positionalParamSegments:null!==(Me=mt.posParams)&&void 0!==Me?Me:{}}}function Yr(ae,ce,G,Me,Ge="corrected"){if(G.length>0&&function Do(ae,ce,G){return G.some(Me=>Va(ae,ce,Me)&&Bt(Me)!==ot)}(ae,G,Me)){const Rt=new s(ce,function is(ae,ce,G,Me){const Ge={};Ge[ot]=Me,Me._sourceSegment=ae,Me._segmentIndexShift=ce.length;for(const mt of G)if(""===mt.path&&Bt(mt)!==ot){const Rt=new s([],{});Rt._sourceSegment=ae,Rt._segmentIndexShift=ce.length,Ge[Bt(mt)]=Rt}return Ge}(ae,ce,Me,new s(G,ae.children)));return Rt._sourceSegment=ae,Rt._segmentIndexShift=ce.length,{segmentGroup:Rt,slicedSegments:[]}}if(0===G.length&&function rs(ae,ce,G){return G.some(Me=>Va(ae,ce,Me))}(ae,G,Me)){const Rt=new s(ae.segments,function ka(ae,ce,G,Me,Ge,mt){const Rt={};for(const Ut of Me)if(Va(ae,G,Ut)&&!Ge[Bt(Ut)]){const qt=new s([],{});qt._sourceSegment=ae,qt._segmentIndexShift="legacy"===mt?ae.segments.length:ce.length,Rt[Bt(Ut)]=qt}return{...Ge,...Rt}}(ae,ce,G,Me,ae.children,Ge));return Rt._sourceSegment=ae,Rt._segmentIndexShift=ce.length,{segmentGroup:Rt,slicedSegments:G}}const mt=new s(ae.segments,ae.children);return mt._sourceSegment=ae,mt._segmentIndexShift=ce.length,{segmentGroup:mt,slicedSegments:G}}function Va(ae,ce,G){return(!(ae.hasChildren()||ce.length>0)||"full"!==G.pathMatch)&&""===G.path}function eo(ae,ce,G,Me){return!!(Bt(ae)===Me||Me!==ot&&Va(ce,G,ae))&&("**"===ae.path||na(ce,ae,G).matched)}function Qs(ae,ce,G){return 0===ce.length&&!ae.children[G]}const Hi=!1;class wr{constructor(ce){this.segmentGroup=ce||null}}class _i{constructor(ce){this.urlTree=ce}}function qr(ae){return(0,z._)(new wr(ae))}function Ro(ae){return(0,z._)(new _i(ae))}class el{constructor(ce,G,Me,Ge,mt){this.injector=ce,this.configLoader=G,this.urlSerializer=Me,this.urlTree=Ge,this.config=mt,this.allowRedirects=!0}apply(){const ce=Yr(this.urlTree.root,[],[],this.config).segmentGroup,G=new s(ce.segments,ce.children);return this.expandSegmentGroup(this.injector,this.config,G,ot).pipe((0,ge.U)(mt=>this.createUrlTree(Tt(mt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,k.K)(mt=>{if(mt instanceof _i)return this.allowRedirects=!1,this.match(mt.urlTree);throw mt instanceof wr?this.noMatchError(mt):mt}))}match(ce){return this.expandSegmentGroup(this.injector,this.config,ce.root,ot).pipe((0,ge.U)(Ge=>this.createUrlTree(Tt(Ge),ce.queryParams,ce.fragment))).pipe((0,k.K)(Ge=>{throw Ge instanceof wr?this.noMatchError(Ge):Ge}))}noMatchError(ce){return new e.vHH(4002,Hi)}createUrlTree(ce,G,Me){const Ge=Cn(ce);return new o(Ge,G,Me)}expandSegmentGroup(ce,G,Me,Ge){return 0===Me.segments.length&&Me.hasChildren()?this.expandChildren(ce,G,Me).pipe((0,ge.U)(mt=>new s([],mt))):this.expandSegment(ce,Me,G,Me.segments,Ge,!0)}expandChildren(ce,G,Me){const Ge=[];for(const mt of Object.keys(Me.children))"primary"===mt?Ge.unshift(mt):Ge.push(mt);return(0,v.D)(Ge).pipe((0,se.b)(mt=>{const Rt=Me.children[mt],Ut=Qt(G,mt);return this.expandSegmentGroup(ce,Ut,Rt,mt).pipe((0,ge.U)(qt=>({segment:qt,outlet:mt})))}),T((mt,Rt)=>(mt[Rt.outlet]=Rt.segment,mt),{}),Ee())}expandSegment(ce,G,Me,Ge,mt,Rt){return(0,v.D)(Me).pipe((0,se.b)(Ut=>this.expandSegmentAgainstRoute(ce,G,Me,Ut,Ge,mt,Rt).pipe((0,k.K)(un=>{if(un instanceof wr)return(0,R.of)(null);throw un}))),(0,Be.P)(Ut=>!!Ut),(0,k.K)((Ut,qt)=>{if(_n(Ut))return Qs(G,Ge,mt)?(0,R.of)(new s([],{})):qr(G);throw Ut}))}expandSegmentAgainstRoute(ce,G,Me,Ge,mt,Rt,Ut){return eo(Ge,G,mt,Rt)?void 0===Ge.redirectTo?this.matchSegmentAgainstRoute(ce,G,Ge,mt,Rt):Ut&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ce,G,Me,Ge,mt,Rt):qr(G):qr(G)}expandSegmentAgainstRouteUsingRedirect(ce,G,Me,Ge,mt,Rt){return"**"===Ge.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ce,Me,Ge,Rt):this.expandRegularSegmentAgainstRouteUsingRedirect(ce,G,Me,Ge,mt,Rt)}expandWildCardWithParamsAgainstRouteUsingRedirect(ce,G,Me,Ge){const mt=this.applyRedirectCommands([],Me.redirectTo,{});return Me.redirectTo.startsWith("/")?Ro(mt):this.lineralizeSegments(Me,mt).pipe((0,Ye.z)(Rt=>{const Ut=new s(Rt,{});return this.expandSegment(ce,Ut,G,Rt,Ge,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ce,G,Me,Ge,mt,Rt){const{matched:Ut,consumedSegments:qt,remainingSegments:un,positionalParamSegments:En}=na(G,Ge,mt);if(!Ut)return qr(G);const hn=this.applyRedirectCommands(qt,Ge.redirectTo,En);return Ge.redirectTo.startsWith("/")?Ro(hn):this.lineralizeSegments(Ge,hn).pipe((0,Ye.z)(Dn=>this.expandSegment(ce,G,Me,Dn.concat(un),Rt,!1)))}matchSegmentAgainstRoute(ce,G,Me,Ge,mt){return"**"===Me.path?(ce=Fi(Me,ce),Me.loadChildren?(Me._loadedRoutes?(0,R.of)({routes:Me._loadedRoutes,injector:Me._loadedInjector}):this.configLoader.loadChildren(ce,Me)).pipe((0,ge.U)(Ut=>(Me._loadedRoutes=Ut.routes,Me._loadedInjector=Ut.injector,new s(Ge,{})))):(0,R.of)(new s(Ge,{}))):ns(G,Me,Ge,ce).pipe((0,ve.w)(({matched:Rt,consumedSegments:Ut,remainingSegments:qt})=>{var un;return Rt?(ce=null!==(un=Me._injector)&&void 0!==un?un:ce,this.getChildConfig(ce,Me,Ge).pipe((0,Ye.z)(hn=>{var Dn;const pi=null!==(Dn=hn.injector)&&void 0!==Dn?Dn:ce,Li=hn.routes,{segmentGroup:rr,slicedSegments:Mr}=Yr(G,Ut,qt,Li),xr=new s(rr.segments,rr.children);if(0===Mr.length&&xr.hasChildren())return this.expandChildren(pi,Li,xr).pipe((0,ge.U)($r=>new s(Ut,$r)));if(0===Li.length&&0===Mr.length)return(0,R.of)(new s(Ut,{}));const sa=Bt(Me)===mt;return this.expandSegment(pi,xr,Li,Mr,sa?ot:mt,!0).pipe((0,ge.U)(Mi=>new s(Ut.concat(Mi.segments),Mi.children)))}))):qr(G)}))}getChildConfig(ce,G,Me){return G.children?(0,R.of)({routes:G.children,injector:ce}):G.loadChildren?void 0!==G._loadedRoutes?(0,R.of)({routes:G._loadedRoutes,injector:G._loadedInjector}):function xo(ae,ce,G,Me){const Ge=ce.canLoad;if(void 0===Ge||0===Ge.length)return(0,R.of)(!0);const mt=Ge.map(Rt=>{const Ut=ae.get(Rt),qt=function Tr(ae){return ae&&ji(ae.canLoad)}(Ut)?Ut.canLoad(ce,G):Ut(ce,G);return Ne(qt)});return(0,R.of)(mt).pipe(ii(),Xa())}(ce,G,Me).pipe((0,Ye.z)(Ge=>Ge?this.configLoader.loadChildren(ce,G).pipe((0,le.b)(mt=>{G._loadedRoutes=mt.routes,G._loadedInjector=mt.injector})):function $s(ae){return(0,z._)(dn(Hi,3))}())):(0,R.of)({routes:[],injector:ce})}lineralizeSegments(ce,G){let Me=[],Ge=G.root;for(;;){if(Me=Me.concat(Ge.segments),0===Ge.numberOfChildren)return(0,R.of)(Me);if(Ge.numberOfChildren>1||!Ge.children[ot])return(0,z._)(new e.vHH(4e3,Hi));Ge=Ge.children[ot]}}applyRedirectCommands(ce,G,Me){return this.applyRedirectCreateUrlTree(G,this.urlSerializer.parse(G),ce,Me)}applyRedirectCreateUrlTree(ce,G,Me,Ge){const mt=this.createSegmentGroup(ce,G.root,Me,Ge);return new o(mt,this.createQueryParams(G.queryParams,this.urlTree.queryParams),G.fragment)}createQueryParams(ce,G){const Me={};return Se(ce,(Ge,mt)=>{if("string"==typeof Ge&&Ge.startsWith(":")){const Ut=Ge.substring(1);Me[mt]=G[Ut]}else Me[mt]=Ge}),Me}createSegmentGroup(ce,G,Me,Ge){const mt=this.createSegments(ce,G.segments,Me,Ge);let Rt={};return Se(G.children,(Ut,qt)=>{Rt[qt]=this.createSegmentGroup(ce,Ut,Me,Ge)}),new s(mt,Rt)}createSegments(ce,G,Me,Ge){return G.map(mt=>mt.path.startsWith(":")?this.findPosParam(ce,mt,Ge):this.findOrReturn(mt,Me))}findPosParam(ce,G,Me){const Ge=Me[G.path.substring(1)];if(!Ge)throw new e.vHH(4001,Hi);return Ge}findOrReturn(ce,G){let Me=0;for(const Ge of G){if(Ge.path===ce.path)return G.splice(Me),Ge;Me++}return ce}}class no{}class tl{constructor(ce,G,Me,Ge,mt,Rt,Ut,qt){this.injector=ce,this.rootComponentType=G,this.config=Me,this.urlTree=Ge,this.url=mt,this.paramsInheritanceStrategy=Rt,this.relativeLinkResolution=Ut,this.urlSerializer=qt}recognize(){const ce=Yr(this.urlTree.root,[],[],this.config.filter(G=>void 0===G.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,ce,ot).pipe((0,ge.U)(G=>{if(null===G)return null;const Me=new Bn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ot,this.rootComponentType,null,this.urlTree.root,-1,{}),Ge=new Ii(Me,G),mt=new Qn(this.url,Ge);return this.inheritParamsAndData(mt._root),mt}))}inheritParamsAndData(ce){const G=ce.value,Me=rn(G,this.paramsInheritanceStrategy);G.params=Object.freeze(Me.params),G.data=Object.freeze(Me.data),ce.children.forEach(Ge=>this.inheritParamsAndData(Ge))}processSegmentGroup(ce,G,Me,Ge){return 0===Me.segments.length&&Me.hasChildren()?this.processChildren(ce,G,Me):this.processSegment(ce,G,Me,Me.segments,Ge)}processChildren(ce,G,Me){return(0,v.D)(Object.keys(Me.children)).pipe((0,se.b)(Ge=>{const mt=Me.children[Ge],Rt=Qt(G,Ge);return this.processSegmentGroup(ce,Rt,mt,Ge)}),T((Ge,mt)=>Ge&&mt?(Ge.push(...mt),Ge):null),(0,N.o)(Ge=>null!==Ge),(0,te.d)(null),Ee(),(0,ge.U)(Ge=>{if(null===Ge)return null;const mt=os(Ge);return function Vr(ae){ae.sort((ce,G)=>ce.value.outlet===ot?-1:G.value.outlet===ot?1:ce.value.outlet.localeCompare(G.value.outlet))}(mt),mt}))}processSegment(ce,G,Me,Ge,mt){return(0,v.D)(G).pipe((0,se.b)(Rt=>{var Ut;return this.processSegmentAgainstRoute(null!==(Ut=Rt._injector)&&void 0!==Ut?Ut:ce,Rt,Me,Ge,mt)}),(0,Be.P)(Rt=>!!Rt),(0,k.K)(Rt=>{if(_n(Rt))return Qs(Me,Ge,mt)?(0,R.of)([]):(0,R.of)(null);throw Rt}))}processSegmentAgainstRoute(ce,G,Me,Ge,mt){if(G.redirectTo||!eo(G,Me,Ge,mt))return(0,R.of)(null);let Rt;if("**"===G.path){var Ut,qt;const un=Ge.length>0?ye(Ge).parameters:{},En=ss(Me)+Ge.length,hn=new Bn(Ge,un,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,nl(G),Bt(G),null!==(Ut=null!==(qt=G.component)&&void 0!==qt?qt:G._loadedComponent)&&void 0!==Ut?Ut:null,G,ro(Me),En,hr(G),En);Rt=(0,R.of)({snapshot:hn,consumedSegments:[],remainingSegments:[]})}else Rt=ns(Me,G,Ge,ce).pipe((0,ge.U)(({matched:un,consumedSegments:En,remainingSegments:hn,parameters:Dn})=>{var pi,Li;if(!un)return null;const rr=ss(Me)+En.length;return{snapshot:new Bn(En,Dn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,nl(G),Bt(G),null!==(pi=null!==(Li=G.component)&&void 0!==Li?Li:G._loadedComponent)&&void 0!==pi?pi:null,G,ro(Me),rr,hr(G),rr),consumedSegments:En,remainingSegments:hn}}));return Rt.pipe((0,ve.w)(un=>{var En,hn;if(null===un)return(0,R.of)(null);const{snapshot:Dn,consumedSegments:pi,remainingSegments:Li}=un;ce=null!==(En=G._injector)&&void 0!==En?En:ce;const rr=null!==(hn=G._loadedInjector)&&void 0!==hn?hn:ce,Mr=function Fa(ae){return ae.children?ae.children:ae.loadChildren?ae._loadedRoutes:[]}(G),{segmentGroup:xr,slicedSegments:sa}=Yr(Me,pi,Li,Mr.filter(Mi=>void 0===Mi.redirectTo),this.relativeLinkResolution);if(0===sa.length&&xr.hasChildren())return this.processChildren(rr,Mr,xr).pipe((0,ge.U)(Mi=>null===Mi?null:[new Ii(Dn,Mi)]));if(0===Mr.length&&0===sa.length)return(0,R.of)([new Ii(Dn,[])]);const Fr=Bt(G)===mt;return this.processSegment(rr,Mr,xr,sa,Fr?ot:mt).pipe((0,ge.U)(Mi=>null===Mi?null:[new Ii(Dn,Mi)]))}))}}function Po(ae){const ce=ae.value.routeConfig;return ce&&""===ce.path&&void 0===ce.redirectTo}function os(ae){const ce=[],G=new Set;for(const Me of ae){if(!Po(Me)){ce.push(Me);continue}const Ge=ce.find(mt=>Me.value.routeConfig===mt.value.routeConfig);void 0!==Ge?(Ge.children.push(...Me.children),G.add(Ge)):ce.push(Me)}for(const Me of G){const Ge=os(Me.children);ce.push(new Ii(Me.value,Ge))}return ce.filter(Me=>!G.has(Me))}function ro(ae){let ce=ae;for(;ce._sourceSegment;)ce=ce._sourceSegment;return ce}function ss(ae){var ce;let G=ae,Me=null!==(ce=G._segmentIndexShift)&&void 0!==ce?ce:0;for(;G._sourceSegment;){var Ge;G=G._sourceSegment,Me+=null!==(Ge=G._segmentIndexShift)&&void 0!==Ge?Ge:0}return Me-1}function nl(ae){return ae.data||{}}function hr(ae){return ae.resolve||{}}const Jr=Symbol("RouteTitle");function cs(ae){return"string"==typeof ae.title||null===ae.title}function Sr(ae){return(0,ve.w)(ce=>{const G=ae(ce);return G?(0,v.D)(G).pipe((0,ge.U)(()=>ce)):(0,R.of)(ce)})}let lo=(()=>{class ae{buildTitle(G){let Me,Ge=G.root;for(;void 0!==Ge;){var mt;Me=null!==(mt=this.getResolvedTitleForRoute(Ge))&&void 0!==mt?mt:Me,Ge=Ge.children.find(Rt=>Rt.outlet===ot)}return Me}getResolvedTitleForRoute(G){return G.data[Jr]}}return ae.\u0275fac=function(G){return new(G||ae)},ae.\u0275prov=e.Yz7({token:ae,factory:function(){return(0,e.f3M)(Ca)},providedIn:"root"}),ae})(),Ca=(()=>{class ae extends lo{constructor(G){super(),this.title=G}updateTitle(G){const Me=this.buildTitle(G);void 0!==Me&&this.title.setTitle(Me)}}return ae.\u0275fac=function(G){return new(G||ae)(e.LFG(xe.Dx))},ae.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();class ds{}class ir extends class Oo{shouldDetach(ce){return!1}store(ce,G){}shouldAttach(ce){return!1}retrieve(ce){return null}shouldReuseRoute(ce,G){return ce.routeConfig===G.routeConfig}}{}const pr=new e.OlP("",{providedIn:"root",factory:()=>({})}),Qr=new e.OlP("ROUTES");let Za=(()=>{class ae{constructor(G,Me){this.injector=G,this.compiler=Me,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(G){if(this.componentLoaders.get(G))return this.componentLoaders.get(G);if(G._loadedComponent)return(0,R.of)(G._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(G);const Me=Ne(G.loadComponent()).pipe((0,le.b)(mt=>{this.onLoadEndListener&&this.onLoadEndListener(G),G._loadedComponent=mt}),(0,Z.x)(()=>{this.componentLoaders.delete(G)})),Ge=new D(Me,()=>new Te.x).pipe(b());return this.componentLoaders.set(G,Ge),Ge}loadChildren(G,Me){if(this.childrenLoaders.get(Me))return this.childrenLoaders.get(Me);if(Me._loadedRoutes)return(0,R.of)({routes:Me._loadedRoutes,injector:Me._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Me);const mt=this.loadModuleFactoryOrRoutes(Me.loadChildren).pipe((0,ge.U)(Ut=>{this.onLoadEndListener&&this.onLoadEndListener(Me);let qt,un,En=!1;Array.isArray(Ut)?un=Ut:(qt=Ut.create(G).injector,un=Ae(qt.get(Qr,[],e.XFs.Self|e.XFs.Optional)));return{routes:un.map(Ct),injector:qt}}),(0,Z.x)(()=>{this.childrenLoaders.delete(Me)})),Rt=new D(mt,()=>new Te.x).pipe(b());return this.childrenLoaders.set(Me,Rt),Rt}loadModuleFactoryOrRoutes(G){return Ne(G()).pipe((0,Ye.z)(Me=>Me instanceof e.YKP||Array.isArray(Me)?(0,R.of)(Me):(0,v.D)(this.compiler.compileModuleAsync(Me))))}}return ae.\u0275fac=function(G){return new(G||ae)(e.LFG(e.zs3),e.LFG(e.Sil))},ae.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();class co{}class ra{shouldProcessUrl(ce){return!0}extract(ce){return ce}merge(ce,G){return ce}}function il(ae){throw ae}function uo(ae,ce,G){return ce.parse("/")}const hs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ho={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function fs(){var ae,ce;const G=(0,e.f3M)(J),Me=(0,e.f3M)(bi),Ge=(0,e.f3M)(pe.Ye),mt=(0,e.f3M)(e.zs3),Rt=(0,e.f3M)(e.Sil),Ut=null!==(ae=(0,e.f3M)(Qr,{optional:!0}))&&void 0!==ae?ae:[],qt=null!==(ce=(0,e.f3M)(pr,{optional:!0}))&&void 0!==ce?ce:{},un=(0,e.f3M)(Ca),En=(0,e.f3M)(lo,{optional:!0}),hn=(0,e.f3M)(co,{optional:!0}),Dn=(0,e.f3M)(ds,{optional:!0}),pi=new Di(null,G,Me,Ge,mt,Rt,Ae(Ut));return hn&&(pi.urlHandlingStrategy=hn),Dn&&(pi.routeReuseStrategy=Dn),pi.titleStrategy=En??un,function ps(ae,ce){ae.errorHandler&&(ce.errorHandler=ae.errorHandler),ae.malformedUriErrorHandler&&(ce.malformedUriErrorHandler=ae.malformedUriErrorHandler),ae.onSameUrlNavigation&&(ce.onSameUrlNavigation=ae.onSameUrlNavigation),ae.paramsInheritanceStrategy&&(ce.paramsInheritanceStrategy=ae.paramsInheritanceStrategy),ae.relativeLinkResolution&&(ce.relativeLinkResolution=ae.relativeLinkResolution),ae.urlUpdateStrategy&&(ce.urlUpdateStrategy=ae.urlUpdateStrategy),ae.canceledNavigationResolution&&(ce.canceledNavigationResolution=ae.canceledNavigationResolution)}(qt,pi),pi}let Di=(()=>{class ae{constructor(G,Me,Ge,mt,Rt,Ut,qt){this.rootComponentType=G,this.urlSerializer=Me,this.rootContexts=Ge,this.location=mt,this.config=qt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Te.x,this.errorHandler=il,this.malformedUriErrorHandler=uo,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,R.of)(void 0),this.urlHandlingStrategy=new ra,this.routeReuseStrategy=new ir,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=Rt.get(Za),this.configLoader.onLoadEndListener=Dn=>this.triggerEvent(new lr(Dn)),this.configLoader.onLoadStartListener=Dn=>this.triggerEvent(new sr(Dn)),this.ngModule=Rt.get(e.h0i),this.console=Rt.get(e.c2e);const hn=Rt.get(e.R0b);this.isNgZoneEnabled=hn instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(qt),this.currentUrlTree=function fe(){return new o(new s([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ct(this.currentUrlTree,this.rootComponentType),this.transitions=new B.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var G;return null===(G=this.location.getState())||void 0===G?void 0:G.\u0275routerPageId}setupNavigations(G){const Me=this.events;return G.pipe((0,W.h)(Ge=>0!==Ge.id),(0,ge.U)(Ge=>({...Ge,extractedUrl:this.urlHandlingStrategy.extract(Ge.rawUrl)})),(0,ve.w)(Ge=>{let mt=!1,Rt=!1;return(0,R.of)(Ge).pipe((0,le.b)(Ut=>{this.currentNavigation={id:Ut.id,initialUrl:Ut.rawUrl,extractedUrl:Ut.extractedUrl,trigger:Ut.source,extras:Ut.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ve.w)(Ut=>{const qt=this.browserUrlTree.toString(),un=!this.navigated||Ut.extractedUrl.toString()!==qt||qt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||un)&&this.urlHandlingStrategy.shouldProcessUrl(Ut.rawUrl))return Lo(Ut.source)&&(this.browserUrlTree=Ut.extractedUrl),(0,R.of)(Ut).pipe((0,ve.w)(hn=>{const Dn=this.transitions.getValue();return Me.next(new zi(hn.id,this.serializeUrl(hn.extractedUrl),hn.source,hn.restoredState)),Dn!==this.transitions.getValue()?ie.E:Promise.resolve(hn)}),function to(ae,ce,G,Me){return(0,ve.w)(Ge=>function Xs(ae,ce,G,Me,Ge){return new el(ae,ce,G,Me,Ge).apply()}(ae,ce,G,Ge.extractedUrl,Me).pipe((0,ge.U)(mt=>({...Ge,urlAfterRedirects:mt}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,le.b)(hn=>{this.currentNavigation={...this.currentNavigation,finalUrl:hn.urlAfterRedirects},Ge.urlAfterRedirects=hn.urlAfterRedirects}),function _a(ae,ce,G,Me,Ge,mt){return(0,Ye.z)(Rt=>function as(ae,ce,G,Me,Ge,mt,Rt="emptyOnly",Ut="legacy"){return new tl(ae,ce,G,Me,Ge,Rt,Ut,mt).recognize().pipe((0,ve.w)(qt=>null===qt?function io(ae){return new A.y(ce=>ce.error(ae))}(new no):(0,R.of)(qt)))}(ae,ce,G,Rt.urlAfterRedirects,Me.serialize(Rt.urlAfterRedirects),Me,Ge,mt).pipe((0,ge.U)(Ut=>({...Rt,targetSnapshot:Ut}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,le.b)(hn=>{if(Ge.targetSnapshot=hn.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!hn.extras.skipLocationChange){const pi=this.urlHandlingStrategy.merge(hn.urlAfterRedirects,hn.rawUrl);this.setBrowserUrl(pi,hn)}this.browserUrlTree=hn.urlAfterRedirects}const Dn=new tr(hn.id,this.serializeUrl(hn.extractedUrl),this.serializeUrl(hn.urlAfterRedirects),hn.targetSnapshot);Me.next(Dn)}));if(un&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Dn,extractedUrl:pi,source:Li,restoredState:rr,extras:Mr}=Ut,xr=new zi(Dn,this.serializeUrl(pi),Li,rr);Me.next(xr);const sa=ct(pi,this.rootComponentType).snapshot;return Ge={...Ut,targetSnapshot:sa,urlAfterRedirects:pi,extras:{...Mr,skipLocationChange:!1,replaceUrl:!1}},(0,R.of)(Ge)}return this.rawUrlTree=Ut.rawUrl,Ut.resolve(null),ie.E}),(0,le.b)(Ut=>{const qt=new Vi(Ut.id,this.serializeUrl(Ut.extractedUrl),this.serializeUrl(Ut.urlAfterRedirects),Ut.targetSnapshot);this.triggerEvent(qt)}),(0,ge.U)(Ut=>Ge={...Ut,guards:Gn(Ut.targetSnapshot,Ut.currentSnapshot,this.rootContexts)}),function $i(ae,ce){return(0,Ye.z)(G=>{const{targetSnapshot:Me,currentSnapshot:Ge,guards:{canActivateChecks:mt,canDeactivateChecks:Rt}}=G;return 0===Rt.length&&0===mt.length?(0,R.of)({...G,guardsResult:!0}):function ga(ae,ce,G,Me){return(0,v.D)(ae).pipe((0,Ye.z)(Ge=>function Js(ae,ce,G,Me,Ge){const mt=ce&&ce.routeConfig?ce.routeConfig.canDeactivate:null;if(!mt||0===mt.length)return(0,R.of)(!0);const Rt=mt.map(Ut=>{const qt=$n(Ut,ce,Ge);return Ne(function Ve(ae){return ae&&ji(ae.canDeactivate)}(qt)?qt.canDeactivate(ae,ce,G,Me):qt(ae,ce,G,Me)).pipe((0,Be.P)())});return(0,R.of)(Rt).pipe(ii())}(Ge.component,Ge.route,G,ce,Me)),(0,Be.P)(Ge=>!0!==Ge,!0))}(Rt,Me,Ge,ae).pipe((0,Ye.z)(Ut=>Ut&&function ci(ae){return"boolean"==typeof ae}(Ut)?function ur(ae,ce,G,Me){return(0,v.D)(ce).pipe((0,se.b)(Ge=>(0,O.z)(function Mo(ae,ce){return null!==ae&&ce&&ce(new Ci(ae)),(0,R.of)(!0)}(Ge.route.parent,Me),function yr(ae,ce){return null!==ae&&ce&&ce(new Ur(ae)),(0,R.of)(!0)}(Ge.route,Me),function qs(ae,ce,G){const Me=ce[ce.length-1],mt=ce.slice(0,ce.length-1).reverse().map(Rt=>function Ti(ae){const ce=ae.routeConfig?ae.routeConfig.canActivateChild:null;return ce&&0!==ce.length?{node:ae,guards:ce}:null}(Rt)).filter(Rt=>null!==Rt).map(Rt=>(0,q.P)(()=>{const Ut=Rt.guards.map(qt=>{const un=$n(qt,Rt.node,G);return Ne(function Qe(ae){return ae&&ji(ae.canActivateChild)}(un)?un.canActivateChild(Me,ae):un(Me,ae)).pipe((0,Be.P)())});return(0,R.of)(Ut).pipe(ii())}));return(0,R.of)(mt).pipe(ii())}(ae,Ge.path,G),function Na(ae,ce,G){const Me=ce.routeConfig?ce.routeConfig.canActivate:null;if(!Me||0===Me.length)return(0,R.of)(!0);const Ge=Me.map(mt=>(0,q.P)(()=>{const Rt=$n(mt,ce,G);return Ne(function Lr(ae){return ae&&ji(ae.canActivate)}(Rt)?Rt.canActivate(ce,ae):Rt(ce,ae)).pipe((0,Be.P)())}));return(0,R.of)(Ge).pipe(ii())}(ae,Ge.route,G))),(0,Be.P)(Ge=>!0!==Ge,!0))}(Me,mt,ae,ce):(0,R.of)(Ut)),(0,ge.U)(Ut=>({...G,guardsResult:Ut})))})}(this.ngModule.injector,Ut=>this.triggerEvent(Ut)),(0,le.b)(Ut=>{if(Ge.guardsResult=Ut.guardsResult,Ze(Ut.guardsResult))throw Wt(0,Ut.guardsResult);const qt=new li(Ut.id,this.serializeUrl(Ut.extractedUrl),this.serializeUrl(Ut.urlAfterRedirects),Ut.targetSnapshot,!!Ut.guardsResult);this.triggerEvent(qt)}),(0,W.h)(Ut=>!!Ut.guardsResult||(this.restoreHistory(Ut),this.cancelNavigationTransition(Ut,"",3),!1)),Sr(Ut=>{if(Ut.guards.canActivateChecks.length)return(0,R.of)(Ut).pipe((0,le.b)(qt=>{const un=new or(qt.id,this.serializeUrl(qt.extractedUrl),this.serializeUrl(qt.urlAfterRedirects),qt.targetSnapshot);this.triggerEvent(un)}),(0,ve.w)(qt=>{let un=!1;return(0,R.of)(qt).pipe(function ao(ae,ce){return(0,Ye.z)(G=>{const{targetSnapshot:Me,guards:{canActivateChecks:Ge}}=G;if(!Ge.length)return(0,R.of)(G);let mt=0;return(0,v.D)(Ge).pipe((0,se.b)(Rt=>function oo(ae,ce,G,Me){const Ge=ae.routeConfig,mt=ae._resolve;return void 0!==Ge?.title&&!cs(Ge)&&(mt[Jr]=Ge.title),function ls(ae,ce,G,Me){const Ge=function so(ae){return[...Object.keys(ae),...Object.getOwnPropertySymbols(ae)]}(ae);if(0===Ge.length)return(0,R.of)({});const mt={};return(0,v.D)(Ge).pipe((0,Ye.z)(Rt=>function Aa(ae,ce,G,Me){const Ge=$n(ae,ce,Me);return Ne(Ge.resolve?Ge.resolve(ce,G):Ge(ce,G))}(ae[Rt],ce,G,Me).pipe((0,Be.P)(),(0,le.b)(Ut=>{mt[Rt]=Ut}))),F(1),(0,be.h)(mt),(0,k.K)(Rt=>_n(Rt)?ie.E:(0,z._)(Rt)))}(mt,ae,ce,Me).pipe((0,ge.U)(Rt=>(ae._resolvedData=Rt,ae.data=rn(ae,G).resolve,Ge&&cs(Ge)&&(ae.data[Jr]=Ge.title),null)))}(Rt.route,Me,ae,ce)),(0,le.b)(()=>mt++),F(1),(0,Ye.z)(Rt=>mt===Ge.length?(0,R.of)(G):ie.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,le.b)({next:()=>un=!0,complete:()=>{un||(this.restoreHistory(qt),this.cancelNavigationTransition(qt,"",2))}}))}),(0,le.b)(qt=>{const un=new Ir(qt.id,this.serializeUrl(qt.extractedUrl),this.serializeUrl(qt.urlAfterRedirects),qt.targetSnapshot);this.triggerEvent(un)}))}),Sr(Ut=>{const qt=un=>{var En;const hn=[];null!==(En=un.routeConfig)&&void 0!==En&&En.loadComponent&&!un.routeConfig._loadedComponent&&hn.push(this.configLoader.loadComponent(un.routeConfig).pipe((0,le.b)(Dn=>{un.component=Dn}),(0,ge.U)(()=>{})));for(const Dn of un.children)hn.push(...qt(Dn));return hn};return(0,L.a)(qt(Ut.targetSnapshot.root)).pipe((0,te.d)(),(0,De.q)(1))}),Sr(()=>this.afterPreactivation()),(0,ge.U)(Ut=>{const qt=function qi(ae,ce,G){const Me=lt(ae,ce._root,G?G._root:void 0);return new en(Me,ce)}(this.routeReuseStrategy,Ut.targetSnapshot,Ut.currentRouterState);return Ge={...Ut,targetRouterState:qt}}),(0,le.b)(Ut=>{this.currentUrlTree=Ut.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Ut.urlAfterRedirects,Ut.rawUrl),this.routerState=Ut.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Ut.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Ut),this.browserUrlTree=Ut.urlAfterRedirects)}),((ae,ce,G)=>(0,ge.U)(Me=>(new ni(ce,Me.targetRouterState,Me.currentRouterState,G).activate(ae),Me)))(this.rootContexts,this.routeReuseStrategy,Ut=>this.triggerEvent(Ut)),(0,le.b)({next(){mt=!0},complete(){mt=!0}}),(0,Z.x)(()=>{var Ut;mt||Rt||this.cancelNavigationTransition(Ge,"",1),(null===(Ut=this.currentNavigation)||void 0===Ut?void 0:Ut.id)===Ge.id&&(this.currentNavigation=null)}),(0,k.K)(Ut=>{if(Rt=!0,Yn(Ut)){An(Ut)||(this.navigated=!0,this.restoreHistory(Ge,!0));const un=new si(Ge.id,this.serializeUrl(Ge.extractedUrl),Ut.message,Ut.cancellationCode);if(Me.next(un),An(Ut)){const En=this.urlHandlingStrategy.merge(Ut.url,this.rawUrlTree),hn={skipLocationChange:Ge.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Lo(Ge.source)};this.scheduleNavigation(En,"imperative",null,hn,{resolve:Ge.resolve,reject:Ge.reject,promise:Ge.promise})}else Ge.resolve(!1)}else{var qt;this.restoreHistory(Ge,!0);const un=new Yi(Ge.id,this.serializeUrl(Ge.extractedUrl),Ut,null!==(qt=Ge.targetSnapshot)&&void 0!==qt?qt:void 0);Me.next(un);try{Ge.resolve(this.errorHandler(Ut))}catch(En){Ge.reject(En)}}return ie.E}))}))}resetRootComponentType(G){this.rootComponentType=G,this.routerState.root.component=this.rootComponentType}setTransition(G){this.transitions.next({...this.transitions.value,...G})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(G=>{const Me="popstate"===G.type?"popstate":"hashchange";"popstate"===Me&&setTimeout(()=>{var Ge;const mt={replaceUrl:!0},Rt=null!==(Ge=G.state)&&void 0!==Ge&&Ge.navigationId?G.state:null;if(Rt){const qt={...Rt};delete qt.navigationId,delete qt.\u0275routerPageId,0!==Object.keys(qt).length&&(mt.state=qt)}const Ut=this.parseUrl(G.url);this.scheduleNavigation(Ut,Me,Rt,mt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(G){this.events.next(G)}resetConfig(G){this.config=G.map(Ct),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(G,Me={}){const{relativeTo:Ge,queryParams:mt,fragment:Rt,queryParamsHandling:Ut,preserveFragment:qt}=Me,un=Ge||this.routerState.root,En=qt?this.currentUrlTree.fragment:Rt;let hn=null;switch(Ut){case"merge":hn={...this.currentUrlTree.queryParams,...mt};break;case"preserve":hn=this.currentUrlTree.queryParams;break;default:hn=mt||null}return null!==hn&&(hn=this.removeEmptyProps(hn)),gn(un,this.currentUrlTree,G,hn,En??null)}navigateByUrl(G,Me={skipLocationChange:!1}){const Ge=Ze(G)?G:this.parseUrl(G),mt=this.urlHandlingStrategy.merge(Ge,this.rawUrlTree);return this.scheduleNavigation(mt,"imperative",null,Me)}navigate(G,Me={skipLocationChange:!1}){return function Ga(ae){for(let ce=0;ce{const mt=G[Ge];return null!=mt&&(Me[Ge]=mt),Me},{})}processNavigations(){this.navigations.subscribe(G=>{var Me;this.navigated=!0,this.lastSuccessfulId=G.id,this.currentPageId=G.targetPageId,this.events.next(new qn(G.id,this.serializeUrl(G.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(Me=this.titleStrategy)||void 0===Me||Me.updateTitle(this.routerState.snapshot),G.resolve(!0)},G=>{this.console.warn(`Unhandled Navigation Error: ${G}`)})}scheduleNavigation(G,Me,Ge,mt,Rt){if(this.disposed)return Promise.resolve(!1);let Ut,qt,un;Rt?(Ut=Rt.resolve,qt=Rt.reject,un=Rt.promise):un=new Promise((Li,rr)=>{Ut=Li,qt=rr});const En=++this.navigationId;let hn;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(Ge=this.location.getState()),Ge&&Ge.\u0275routerPageId)hn=Ge.\u0275routerPageId;else if(mt.replaceUrl||mt.skipLocationChange){var Dn;hn=null!==(Dn=this.browserPageId)&&void 0!==Dn?Dn:0}else{var pi;hn=(null!==(pi=this.browserPageId)&&void 0!==pi?pi:0)+1}else hn=0;return this.setTransition({id:En,targetPageId:hn,source:Me,restoredState:Ge,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:G,extras:mt,resolve:Ut,reject:qt,promise:un,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),un.catch(Li=>Promise.reject(Li))}setBrowserUrl(G,Me){const Ge=this.urlSerializer.serialize(G),mt={...Me.extras.state,...this.generateNgRouterState(Me.id,Me.targetPageId)};this.location.isCurrentPathEqualTo(Ge)||Me.extras.replaceUrl?this.location.replaceState(Ge,"",mt):this.location.go(Ge,"",mt)}restoreHistory(G,Me=!1){if("computed"===this.canceledNavigationResolution){var Ge,mt;const Rt=this.currentPageId-G.targetPageId;"popstate"!==G.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(Ge=this.currentNavigation)||void 0===Ge?void 0:Ge.finalUrl)||0===Rt?this.currentUrlTree===(null===(mt=this.currentNavigation)||void 0===mt?void 0:mt.finalUrl)&&0===Rt&&(this.resetState(G),this.browserUrlTree=G.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Rt)}else"replace"===this.canceledNavigationResolution&&(Me&&this.resetState(G),this.resetUrlToCurrentUrlTree())}resetState(G){this.routerState=G.currentRouterState,this.currentUrlTree=G.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,G.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(G,Me,Ge){const mt=new si(G.id,this.serializeUrl(G.extractedUrl),Me,Ge);this.triggerEvent(mt),G.resolve(!1)}generateNgRouterState(G,Me){return"computed"===this.canceledNavigationResolution?{navigationId:G,\u0275routerPageId:Me}:{navigationId:G}}}return ae.\u0275fac=function(G){e.$Z()},ae.\u0275prov=e.Yz7({token:ae,factory:function(){return fs()},providedIn:"root"}),ae})();function Lo(ae){return"imperative"!==ae}let Kr=(()=>{class ae{constructor(G,Me,Ge,mt,Rt){this.router=G,this.route=Me,this.tabIndexAttribute=Ge,this.renderer=mt,this.el=Rt,this.commands=null,this.onChanges=new Te.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(G){if(null!=this.tabIndexAttribute)return;const Me=this.renderer,Ge=this.el.nativeElement;null!==G?Me.setAttribute(Ge,"tabindex",G):Me.removeAttribute(Ge,"tabindex")}ngOnChanges(G){this.onChanges.next(this)}set routerLink(G){null!=G?(this.commands=Array.isArray(G)?G:[G],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const G={skipLocationChange:(0,e.D6c)(this.skipLocationChange),replaceUrl:(0,e.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,G),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,e.D6c)(this.preserveFragment)})}}return ae.\u0275fac=function(G){return new(G||ae)(e.Y36(Di),e.Y36(Zt),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},ae.\u0275dir=e.lG2({type:ae,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(G,Me){1&G&&e.NdJ("click",function(){return Me.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),ae})(),va=(()=>{class ae{constructor(G,Me,Ge){this.router=G,this.route=Me,this.locationStrategy=Ge,this.commands=null,this.href=null,this.onChanges=new Te.x,this.subscription=G.events.subscribe(mt=>{mt instanceof qn&&this.updateTargetUrlAndHref()})}set routerLink(G){this.commands=null!=G?Array.isArray(G)?G:[G]:null}ngOnChanges(G){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(G,Me,Ge,mt,Rt){if(0!==G||Me||Ge||mt||Rt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Ut={skipLocationChange:(0,e.D6c)(this.skipLocationChange),replaceUrl:(0,e.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Ut),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,e.D6c)(this.preserveFragment)})}}return ae.\u0275fac=function(G){return new(G||ae)(e.Y36(Di),e.Y36(Zt),e.Y36(pe.S$))},ae.\u0275dir=e.lG2({type:ae,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(G,Me){1&G&&e.NdJ("click",function(mt){return Me.onClick(mt.button,mt.ctrlKey,mt.shiftKey,mt.altKey,mt.metaKey)}),2&G&&e.uIk("target",Me.target)("href",Me.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),ae})();class Bo{}let rl=(()=>{class ae{preload(G,Me){return(0,R.of)(null)}}return ae.\u0275fac=function(G){return new(G||ae)},ae.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),Uo=(()=>{class ae{constructor(G,Me,Ge,mt,Rt){this.router=G,this.injector=Ge,this.preloadingStrategy=mt,this.loader=Rt}setUpPreloading(){this.subscription=this.router.events.pipe((0,W.h)(G=>G instanceof qn),(0,se.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(G,Me){const Ge=[];for(const qt of Me){var mt,Rt;qt.providers&&!qt._injector&&(qt._injector=(0,e.MMx)(qt.providers,G,`Route: ${qt.path}`));const un=null!==(mt=qt._injector)&&void 0!==mt?mt:G,En=null!==(Rt=qt._loadedInjector)&&void 0!==Rt?Rt:un;if(qt.loadChildren&&!qt._loadedRoutes&&void 0===qt.canLoad||qt.loadComponent&&!qt._loadedComponent)Ge.push(this.preloadConfig(un,qt));else if(qt.children||qt._loadedRoutes){var Ut;Ge.push(this.processRoutes(En,null!==(Ut=qt.children)&&void 0!==Ut?Ut:qt._loadedRoutes))}}return(0,v.D)(Ge).pipe((0,de.J)())}preloadConfig(G,Me){return this.preloadingStrategy.preload(Me,()=>{let Ge;Ge=Me.loadChildren&&void 0===Me.canLoad?this.loader.loadChildren(G,Me):(0,R.of)(null);const mt=Ge.pipe((0,Ye.z)(Rt=>{var Ut;return null===Rt?(0,R.of)(void 0):(Me._loadedRoutes=Rt.routes,Me._loadedInjector=Rt.injector,this.processRoutes(null!==(Ut=Rt.injector)&&void 0!==Ut?Ut:G,Rt.routes))}));if(Me.loadComponent&&!Me._loadedComponent){const Rt=this.loader.loadComponent(Me);return(0,v.D)([mt,Rt]).pipe((0,de.J)())}return mt})}}return ae.\u0275fac=function(G){return new(G||ae)(e.LFG(Di),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(Bo),e.LFG(Za))},ae.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac}),ae})();const ho=new e.OlP("");let Ta=(()=>{class ae{constructor(G,Me,Ge={}){this.router=G,this.viewportScroller=Me,this.options=Ge,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Ge.scrollPositionRestoration=Ge.scrollPositionRestoration||"disabled",Ge.anchorScrolling=Ge.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(G=>{G instanceof zi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=G.navigationTrigger,this.restoredId=G.restoredState?G.restoredState.navigationId:0):G instanceof qn&&(this.lastId=G.id,this.scheduleScrollEvent(G,this.router.parseUrl(G.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(G=>{G instanceof Or&&(G.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(G.position):G.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(G.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(G,Me){this.router.triggerEvent(new Or(G,"popstate"===this.lastSource?this.store[this.restoredId]:null,Me))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return ae.\u0275fac=function(G){e.$Z()},ae.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac}),ae})();const po=new e.OlP("ROUTER_FORROOT_GUARD"),fo=new e.OlP(""),Wa=[pe.Ye,{provide:J,useClass:ht},{provide:Di,useFactory:fs},bi,{provide:Zt,useFactory:function Gc(ae){return ae.routerState.root},deps:[Di]},Za];function Ul(){return new e.PXZ("Router",Di)}let ai=(()=>{class ae{constructor(G){}static forRoot(G,Me){return{ngModule:ae,providers:[Wa,[],al(G),{provide:po,useFactory:Fl,deps:[[Di,new e.FiY,new e.tp0]]},{provide:pr,useValue:Me||{}},null!=Me&&Me.useHash?{provide:pe.S$,useClass:pe.Do}:{provide:pe.S$,useClass:pe.b0},{provide:ho,useFactory:()=>{const ae=(0,e.f3M)(Di),ce=(0,e.f3M)(pe.EM),G=(0,e.f3M)(pr);return G.scrollOffset&&ce.setOffset(G.scrollOffset),new Ta(ae,ce,G)}},null!=Me&&Me.preloadingStrategy?ll(Me.preloadingStrategy):[],{provide:e.PXZ,multi:!0,useFactory:Ul},null!=Me&&Me.initialNavigation?za(Me):[],[{provide:ol,useFactory:jl},{provide:e.tb,multi:!0,useExisting:ol}]]}}static forChild(G){return{ngModule:ae,providers:[al(G)]}}}return ae.\u0275fac=function(G){return new(G||ae)(e.LFG(po,8))},ae.\u0275mod=e.oAB({type:ae}),ae.\u0275inj=e.cJS({}),ae})();function Fl(ae){return"guarded"}function al(ae){return[{provide:Qr,multi:!0,useValue:ae}]}function jl(){const ae=(0,e.f3M)(e.zs3);return ce=>{var G,Me;const Ge=ae.get(e.z2F);if(ce!==Ge.components[0])return;const mt=ae.get(Di),Rt=ae.get(sl);1===ae.get(Ya)&&mt.initialNavigation(),null===(G=ae.get(fo,null,e.XFs.Optional))||void 0===G||G.setUpPreloading(),null===(Me=ae.get(ho,null,e.XFs.Optional))||void 0===Me||Me.init(),mt.resetRootComponentType(Ge.componentTypes[0]),Rt.next(),Rt.complete()}}const ol=new e.OlP("");function za(ae){return["disabled"===ae.initialNavigation?[{provide:e.ip1,multi:!0,useFactory:()=>{const ae=(0,e.f3M)(Di);return()=>{ae.setUpLocationChangeListener()}}},{provide:Ya,useValue:2}]:[],"enabledBlocking"===ae.initialNavigation?[{provide:Ya,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:ae=>{const ce=ae.get(pe.V_,Promise.resolve(null));let G=!1;return()=>ce.then(()=>new Promise(Ge=>{const mt=ae.get(Di),Rt=ae.get(sl);(function Me(Ge){ae.get(Di).events.pipe((0,W.h)(Rt=>Rt instanceof qn||Rt instanceof si||Rt instanceof Yi),(0,ge.U)(Rt=>Rt instanceof qn||Rt instanceof si&&(0===Rt.code||1===Rt.code)&&null),(0,W.h)(Rt=>null!==Rt),(0,De.q)(1)).subscribe(()=>{Ge()})})(()=>{Ge(!0),G=!0}),mt.afterPreactivation=()=>(Ge(!0),G||Rt.closed?(0,R.of)(void 0):Rt),mt.initialNavigation()}))}}]:[]]}const sl=new e.OlP("",{factory:()=>new Te.x}),Ya=new e.OlP("",{providedIn:"root",factory:()=>1});function ll(ae){return[Uo,{provide:fo,useExisting:Uo},{provide:Bo,useExisting:ae}]}},89383:(Xe,ue,p)=>{"use strict";p.d(ue,{X$:()=>he,Zw:()=>L,aw:()=>Ye,sK:()=>ve});var e=p(94650),A=p(39646),C=p(45191),M=p(4128),m=p(97272),b=p(49770),D=p(95698),v=p(34782),R=p(54004),B=p(24351),w=p(63900);class L{}let O=(()=>{class Be extends L{getTranslation(le){return(0,A.of)({})}}return Be.\u0275fac=function(){let se;return function(k){return(se||(se=e.n5z(Be)))(k||Be)}}(),Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac}),Be})();class q{}let ee=(()=>{class Be{handle(le){return le.key}}return Be.\u0275fac=function(le){return new(le||Be)},Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac}),Be})();function z(Be,se){if(Be===se)return!0;if(null===Be||null===se)return!1;if(Be!=Be&&se!=se)return!0;let N,be,Z,le=typeof Be;if(le==typeof se&&"object"==le){if(!Array.isArray(Be)){if(Array.isArray(se))return!1;for(be in Z=Object.create(null),Be){if(!z(Be[be],se[be]))return!1;Z[be]=!0}for(be in se)if(!(be in Z)&&typeof se[be]<"u")return!1;return!0}if(!Array.isArray(se))return!1;if((N=Be.length)==se.length){for(be=0;be{Te(se[k])?k in Be?le[k]=pe(Be[k],se[k]):Object.assign(le,{[k]:se[k]}):Object.assign(le,{[k]:se[k]})}),le}class Le{}let T=(()=>{class Be extends Le{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(le,k){let N;return N="string"==typeof le?this.interpolateString(le,k):"function"==typeof le?this.interpolateFunction(le,k):le,N}getValue(le,k){let N="string"==typeof k?k.split("."):[k];k="";do{k+=N.shift(),!ie(le)||!ie(le[k])||"object"!=typeof le[k]&&N.length?N.length?k+=".":le=void 0:(le=le[k],k="")}while(N.length);return le}interpolateFunction(le,k){return le(k)}interpolateString(le,k){return k?le.replace(this.templateMatcher,(N,be)=>{let Z=this.getValue(k,be);return ie(Z)?Z:N}):le}}return Be.\u0275fac=function(){let se;return function(k){return(se||(se=e.n5z(Be)))(k||Be)}}(),Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac}),Be})();class W{}let F=(()=>{class Be extends W{compile(le,k){return le}compileTranslations(le,k){return le}}return Be.\u0275fac=function(){let se;return function(k){return(se||(se=e.n5z(Be)))(k||Be)}}(),Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac}),Be})();class V{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new e.vpe,this.onLangChange=new e.vpe,this.onDefaultLangChange=new e.vpe}}const te=new e.OlP("USE_STORE"),Q=new e.OlP("USE_DEFAULT_LANG"),Ee=new e.OlP("DEFAULT_LANGUAGE"),ge=new e.OlP("USE_EXTEND");let ve=(()=>{class Be{constructor(le,k,N,be,Z,de=!0,xe=!1,ot=!1,Fe){this.store=le,this.currentLoader=k,this.compiler=N,this.parser=be,this.missingTranslationHandler=Z,this.useDefaultLang=de,this.isolate=xe,this.extend=ot,this.pending=!1,this._onTranslationChange=new e.vpe,this._onLangChange=new e.vpe,this._onDefaultLangChange=new e.vpe,this._langs=[],this._translations={},this._translationRequests={},Fe&&this.setDefaultLang(Fe)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(le){this.isolate?this._defaultLang=le:this.store.defaultLang=le}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(le){this.isolate?this._currentLang=le:this.store.currentLang=le}get langs(){return this.isolate?this._langs:this.store.langs}set langs(le){this.isolate?this._langs=le:this.store.langs=le}get translations(){return this.isolate?this._translations:this.store.translations}set translations(le){this.isolate?this._translations=le:this.store.translations=le}setDefaultLang(le){if(le===this.defaultLang)return;let k=this.retrieveTranslations(le);typeof k<"u"?(null==this.defaultLang&&(this.defaultLang=le),k.pipe((0,D.q)(1)).subscribe(N=>{this.changeDefaultLang(le)})):this.changeDefaultLang(le)}getDefaultLang(){return this.defaultLang}use(le){if(le===this.currentLang)return(0,A.of)(this.translations[le]);let k=this.retrieveTranslations(le);return typeof k<"u"?(this.currentLang||(this.currentLang=le),k.pipe((0,D.q)(1)).subscribe(N=>{this.changeLang(le)}),k):(this.changeLang(le),(0,A.of)(this.translations[le]))}retrieveTranslations(le){let k;return(typeof this.translations[le]>"u"||this.extend)&&(this._translationRequests[le]=this._translationRequests[le]||this.getTranslation(le),k=this._translationRequests[le]),k}getTranslation(le){this.pending=!0;const k=this.currentLoader.getTranslation(le).pipe((0,v.d)(1),(0,D.q)(1));return this.loadingTranslations=k.pipe((0,R.U)(N=>this.compiler.compileTranslations(N,le)),(0,v.d)(1),(0,D.q)(1)),this.loadingTranslations.subscribe({next:N=>{this.translations[le]=this.extend&&this.translations[le]?{...N,...this.translations[le]}:N,this.updateLangs(),this.pending=!1},error:N=>{this.pending=!1}}),k}setTranslation(le,k,N=!1){k=this.compiler.compileTranslations(k,le),this.translations[le]=(N||this.extend)&&this.translations[le]?pe(this.translations[le],k):k,this.updateLangs(),this.onTranslationChange.emit({lang:le,translations:this.translations[le]})}getLangs(){return this.langs}addLangs(le){le.forEach(k=>{-1===this.langs.indexOf(k)&&this.langs.push(k)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(le,k,N){let be;if(k instanceof Array){let Z={},de=!1;for(let xe of k)Z[xe]=this.getParsedResult(le,xe,N),(0,C.b)(Z[xe])&&(de=!0);if(de){const xe=k.map(ot=>(0,C.b)(Z[ot])?Z[ot]:(0,A.of)(Z[ot]));return(0,M.D)(xe).pipe((0,R.U)(ot=>{let Fe={};return ot.forEach((ut,tt)=>{Fe[k[tt]]=ut}),Fe}))}return Z}if(le&&(be=this.parser.interpolate(this.parser.getValue(le,k),N)),typeof be>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(be=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],k),N)),typeof be>"u"){let Z={key:k,translateService:this};typeof N<"u"&&(Z.interpolateParams=N),be=this.missingTranslationHandler.handle(Z)}return typeof be<"u"?be:k}get(le,k){if(!ie(le)||!le.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,B.b)(N=>(N=this.getParsedResult(N,le,k),(0,C.b)(N)?N:(0,A.of)(N))));{let N=this.getParsedResult(this.translations[this.currentLang],le,k);return(0,C.b)(N)?N:(0,A.of)(N)}}getStreamOnTranslationChange(le,k){if(!ie(le)||!le.length)throw new Error('Parameter "key" required');return(0,m.z)((0,b.P)(()=>this.get(le,k)),this.onTranslationChange.pipe((0,w.w)(N=>{const be=this.getParsedResult(N.translations,le,k);return"function"==typeof be.subscribe?be:(0,A.of)(be)})))}stream(le,k){if(!ie(le)||!le.length)throw new Error('Parameter "key" required');return(0,m.z)((0,b.P)(()=>this.get(le,k)),this.onLangChange.pipe((0,w.w)(N=>{const be=this.getParsedResult(N.translations,le,k);return(0,C.b)(be)?be:(0,A.of)(be)})))}instant(le,k){if(!ie(le)||!le.length)throw new Error('Parameter "key" required');let N=this.getParsedResult(this.translations[this.currentLang],le,k);if((0,C.b)(N)){if(le instanceof Array){let be={};return le.forEach((Z,de)=>{be[le[de]]=le[de]}),be}return le}return N}set(le,k,N=this.currentLang){this.translations[N][le]=this.compiler.compile(k,N),this.updateLangs(),this.onTranslationChange.emit({lang:N,translations:this.translations[N]})}changeLang(le){this.currentLang=le,this.onLangChange.emit({lang:le,translations:this.translations[le]}),null==this.defaultLang&&this.changeDefaultLang(le)}changeDefaultLang(le){this.defaultLang=le,this.onDefaultLangChange.emit({lang:le,translations:this.translations[le]})}reloadLang(le){return this.resetLang(le),this.getTranslation(le)}resetLang(le){this._translationRequests[le]=void 0,this.translations[le]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let le=window.navigator.languages?window.navigator.languages[0]:null;return le=le||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof le>"u"?void 0:(-1!==le.indexOf("-")&&(le=le.split("-")[0]),-1!==le.indexOf("_")&&(le=le.split("_")[0]),le)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let le=window.navigator.languages?window.navigator.languages[0]:null;return le=le||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,le}}return Be.\u0275fac=function(le){return new(le||Be)(e.LFG(V),e.LFG(L),e.LFG(W),e.LFG(Le),e.LFG(q),e.LFG(Q),e.LFG(te),e.LFG(ge),e.LFG(Ee))},Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac}),Be})(),he=(()=>{class Be{constructor(le,k){this.translate=le,this._ref=k,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(le,k,N){let be=Z=>{this.value=void 0!==Z?Z:le,this.lastKey=le,this._ref.markForCheck()};if(N){let Z=this.translate.getParsedResult(N,le,k);(0,C.b)(Z.subscribe)?Z.subscribe(be):be(Z)}this.translate.get(le,k).subscribe(be)}transform(le,...k){if(!le||!le.length)return le;if(z(le,this.lastKey)&&z(k,this.lastParams))return this.value;let N;if(ie(k[0])&&k.length)if("string"==typeof k[0]&&k[0].length){let be=k[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{N=JSON.parse(be)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${k[0]}`)}}else"object"==typeof k[0]&&!Array.isArray(k[0])&&(N=k[0]);return this.lastKey=le,this.lastParams=k,this.updateValue(le,N),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(be=>{this.lastKey&&be.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(le,N,be.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(be=>{this.lastKey&&(this.lastKey=null,this.updateValue(le,N,be.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(le,N))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return Be.\u0275fac=function(le){return new(le||Be)(e.Y36(ve,16),e.Y36(e.sBO,16))},Be.\u0275pipe=e.Yjl({name:"translate",type:Be,pure:!1}),Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac}),Be})(),Ye=(()=>{class Be{static forRoot(le={}){return{ngModule:Be,providers:[le.loader||{provide:L,useClass:O},le.compiler||{provide:W,useClass:F},le.parser||{provide:Le,useClass:T},le.missingTranslationHandler||{provide:q,useClass:ee},V,{provide:te,useValue:le.isolate},{provide:Q,useValue:le.useDefaultLang},{provide:ge,useValue:le.extend},{provide:Ee,useValue:le.defaultLanguage},ve]}}static forChild(le={}){return{ngModule:Be,providers:[le.loader||{provide:L,useClass:O},le.compiler||{provide:W,useClass:F},le.parser||{provide:Le,useClass:T},le.missingTranslationHandler||{provide:q,useClass:ee},{provide:te,useValue:le.isolate},{provide:Q,useValue:le.useDefaultLang},{provide:ge,useValue:le.extend},{provide:Ee,useValue:le.defaultLanguage},ve]}}}return Be.\u0275fac=function(le){return new(le||Be)},Be.\u0275mod=e.oAB({type:Be}),Be.\u0275inj=e.cJS({}),Be})()},51214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(15861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(94650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(36895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(80529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(77579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(39646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(32076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(54355),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(62843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(39841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(56451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(39300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(18505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(78372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(91005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(63900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(54004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(50590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(70262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(17414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(95698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(86099),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Xe extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Xe.\u0275fac=function(){let ue;return function(e){return(ue||(ue=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Xe)))(e||Xe)}}(),Xe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class Xe{constructor(){this.data=new Map}getItem(p){return this.data.get(p)}removeItem(p){this.data.delete(p)}setItem(p,e){this.data.set(p,e)}}return Xe.\u0275fac=function(p){return new(p||Xe)},Xe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();class ReceivedTokens{}class OAuthEvent{constructor(ue){this.type=ue}}class OAuthSuccessEvent extends OAuthEvent{constructor(ue,p=null){super(ue),this.info=p}}class OAuthInfoEvent extends OAuthEvent{constructor(ue,p=null){super(ue),this.info=p}}class OAuthErrorEvent extends OAuthEvent{constructor(ue,p,e=null){super(ue),this.reason=p,this.params=e}}function b64DecodeUnicode(Xe){const ue=Xe.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(ue).split("").map(function(p){return"%"+("00"+p.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Xe){return btoa(Xe).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(ue){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=p=>{location.href=p},ue&&Object.assign(this,ue)}}class WebHttpUrlEncodingCodec{encodeKey(ue){return encodeURIComponent(ue)}encodeValue(ue){return encodeURIComponent(ue)}decodeKey(ue){return decodeURIComponent(ue)}decodeValue(ue){return decodeURIComponent(ue)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(ue){var p=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let e=p.inferHashAlgorithm(ue.idTokenHeader),A=yield p.calcHash(ue.accessToken,e),M=base64UrlEncode(A.substr(0,A.length/2)),m=ue.idTokenClaims.at_hash.replace(/=/g,"");return M!==m&&(console.error("exptected at_hash: "+M),console.error("actual at_hash: "+m)),M===m})()}inferHashAlgorithm(ue){let p=ue.alg;if(!p.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+p);return"sha-"+p.substr(2)}}let UrlHelperService=(()=>{class Xe{getHashFragmentParams(p){let e=p||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const A=e.indexOf("?");return e=e.substr(A>-1?A+1:1),this.parseQueryString(e)}parseQueryString(p){const e={};let A,C,M,m,b,D,v;if(null===p)return e;A=p.split("&");for(let R=0;R>6,C[m++]=128|63&b):b<55296||b>=57344?(C[m++]=224|b>>12,C[m++]=128|b>>6&63,C[m++]=128|63&b):(b=65536+((1023&b)<<10|1023&Xe.charCodeAt(++e)),C[m++]=240|b>>18,C[m++]=128|b>>12&63,C[m++]=128|b>>6&63,C[m++]=128|63&b);Xe=C}else{if("object"!==A)throw new Error(ERROR);if(null===Xe)throw new Error(ERROR);if(ARRAY_BUFFER&&Xe.constructor===ArrayBuffer)Xe=new Uint8Array(Xe);else if(!(Array.isArray(Xe)||ARRAY_BUFFER&&ArrayBuffer.isView(Xe)))throw new Error(ERROR)}Xe.length>64&&(Xe=new Sha256(ue,!0).update(Xe).array());var D=[],v=[];for(e=0;e<64;++e){var R=Xe[e]||0;D[e]=92^R,v[e]=54^R}Sha256.call(this,ue,p),this.update(v),this.oKeyPad=D,this.inner=!0,this.sharedMemory=p}Sha256.prototype.update=function(Xe){if(!this.finalized){var ue,p=typeof Xe;if("string"!==p){if("object"!==p)throw new Error(ERROR);if(null===Xe)throw new Error(ERROR);if(ARRAY_BUFFER&&Xe.constructor===ArrayBuffer)Xe=new Uint8Array(Xe);else if(!(Array.isArray(Xe)||ARRAY_BUFFER&&ArrayBuffer.isView(Xe)))throw new Error(ERROR);ue=!0}for(var e,C,A=0,M=Xe.length,m=this.blocks;A>2]|=Xe[A]<>2]|=e<>2]|=(192|e>>6)<>2]|=(128|63&e)<=57344?(m[C>>2]|=(224|e>>12)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<>2]|=(240|e>>18)<>2]|=(128|e>>12&63)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<=64?(this.block=m[16],this.start=C-64,this.hash(),this.hashed=!0):this.start=C}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Xe=this.blocks,ue=this.lastByteIndex;Xe[16]=this.block,Xe[ue>>2]|=EXTRA[3&ue],this.block=Xe[16],ue>=56&&(this.hashed||this.hash(),Xe[0]=this.block,Xe[16]=Xe[1]=Xe[2]=Xe[3]=Xe[4]=Xe[5]=Xe[6]=Xe[7]=Xe[8]=Xe[9]=Xe[10]=Xe[11]=Xe[12]=Xe[13]=Xe[14]=Xe[15]=0),Xe[14]=this.hBytes<<3|this.bytes>>>29,Xe[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var D,w,q,ee,z,ie,Xe=this.h0,ue=this.h1,p=this.h2,e=this.h3,A=this.h4,C=this.h5,M=this.h6,m=this.h7,b=this.blocks;for(D=16;D<64;++D)b[D]=b[D-16]+(((w=b[D-15])>>>7|w<<25)^(w>>>18|w<<14)^w>>>3)+b[D-7]+(((w=b[D-2])>>>17|w<<15)^(w>>>19|w<<13)^w>>>10)<<0;for(ie=ue&p,D=0;D<64;D+=4)this.first?(this.is224?(q=300032,m=(w=b[0]-1413257819)-150054599<<0,e=w+24177077<<0):(q=704751109,m=(w=b[0]-210244248)-1521486534<<0,e=w+143694565<<0),this.first=!1):(m=e+(w=m+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&C^~A&M)+K[D]+b[D])<<0,e=w+(((Xe>>>2|Xe<<30)^(Xe>>>13|Xe<<19)^(Xe>>>22|Xe<<10))+((q=Xe&ue)^Xe&p^ie))<<0),M=p+(w=M+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&A^~m&C)+K[D+1]+b[D+1])<<0,p=w+(((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+((ee=e&Xe)^e&ue^q))<<0,C=ue+(w=C+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&m^~M&A)+K[D+2]+b[D+2])<<0,ue=w+(((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+((z=p&e)^p&Xe^ee))<<0,A=Xe+(w=A+((C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7))+(C&M^~C&m)+K[D+3]+b[D+3])<<0,Xe=w+(((ue>>>2|ue<<30)^(ue>>>13|ue<<19)^(ue>>>22|ue<<10))+((ie=ue&p)^ue&e^z))<<0;this.h0=this.h0+Xe<<0,this.h1=this.h1+ue<<0,this.h2=this.h2+p<<0,this.h3=this.h3+e<<0,this.h4=this.h4+A<<0,this.h5=this.h5+C<<0,this.h6=this.h6+M<<0,this.h7=this.h7+m<<0},Sha256.prototype.hex=function(){this.finalize();var Xe=this.h0,ue=this.h1,p=this.h2,e=this.h3,A=this.h4,C=this.h5,M=this.h6,m=this.h7,b=HEX_CHARS[Xe>>28&15]+HEX_CHARS[Xe>>24&15]+HEX_CHARS[Xe>>20&15]+HEX_CHARS[Xe>>16&15]+HEX_CHARS[Xe>>12&15]+HEX_CHARS[Xe>>8&15]+HEX_CHARS[Xe>>4&15]+HEX_CHARS[15&Xe]+HEX_CHARS[ue>>28&15]+HEX_CHARS[ue>>24&15]+HEX_CHARS[ue>>20&15]+HEX_CHARS[ue>>16&15]+HEX_CHARS[ue>>12&15]+HEX_CHARS[ue>>8&15]+HEX_CHARS[ue>>4&15]+HEX_CHARS[15&ue]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[15&p]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[A>>28&15]+HEX_CHARS[A>>24&15]+HEX_CHARS[A>>20&15]+HEX_CHARS[A>>16&15]+HEX_CHARS[A>>12&15]+HEX_CHARS[A>>8&15]+HEX_CHARS[A>>4&15]+HEX_CHARS[15&A]+HEX_CHARS[C>>28&15]+HEX_CHARS[C>>24&15]+HEX_CHARS[C>>20&15]+HEX_CHARS[C>>16&15]+HEX_CHARS[C>>12&15]+HEX_CHARS[C>>8&15]+HEX_CHARS[C>>4&15]+HEX_CHARS[15&C]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M];return this.is224||(b+=HEX_CHARS[m>>28&15]+HEX_CHARS[m>>24&15]+HEX_CHARS[m>>20&15]+HEX_CHARS[m>>16&15]+HEX_CHARS[m>>12&15]+HEX_CHARS[m>>8&15]+HEX_CHARS[m>>4&15]+HEX_CHARS[15&m]),b},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Xe=this.h0,ue=this.h1,p=this.h2,e=this.h3,A=this.h4,C=this.h5,M=this.h6,m=this.h7,b=[Xe>>24&255,Xe>>16&255,Xe>>8&255,255&Xe,ue>>24&255,ue>>16&255,ue>>8&255,255&ue,p>>24&255,p>>16&255,p>>8&255,255&p,e>>24&255,e>>16&255,e>>8&255,255&e,A>>24&255,A>>16&255,A>>8&255,255&A,C>>24&255,C>>16&255,C>>8&255,255&C,M>>24&255,M>>16&255,M>>8&255,255&M];return this.is224||b.push(m>>24&255,m>>16&255,m>>8&255,255&m),b},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Xe=new ArrayBuffer(this.is224?28:32),ue=new DataView(Xe);return ue.setUint32(0,this.h0),ue.setUint32(4,this.h1),ue.setUint32(8,this.h2),ue.setUint32(12,this.h3),ue.setUint32(16,this.h4),ue.setUint32(20,this.h5),ue.setUint32(24,this.h6),this.is224||ue.setUint32(28,this.h7),Xe},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Xe=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Xe),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(Xe){if("string"!=typeof Xe)throw new TypeError("expected string");var ue,p=Xe,e=new Uint8Array(p.length);for(ue=0;ue{class Xe{calcHash(p,e){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(p)))})()}toHashString2(p){let e="";for(let A of p)e+=String.fromCharCode(A);return e}toHashString(p){const e=new Uint8Array(p);let A="";for(let C of e)A+=String.fromCharCode(C);return A}}return Xe.\u0275fac=function(p){return new(p||Xe)},Xe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),OAuthService=(()=>{class Xe extends AuthConfig{constructor(p,e,A,C,M,m,b,D,v,R){super(),this.ngZone=p,this.http=e,this.config=M,this.urlHelper=m,this.logger=b,this.crypto=D,this.dateTimeService=R,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=v,M||(M={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),C&&(this.tokenValidationHandler=C),M&&this.configure(M);try{A?this.setStorage(A):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(L){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",L)}if(this.checkLocalStorageAccessable()){var B,w;const L=null===(B=window)||void 0===B||null===(w=B.navigator)||void 0===w?void 0:w.userAgent;(L?.includes("MSIE ")||L?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const p="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(p,p),localStorage.removeItem(p),0))}catch{return!1}}configure(p){Object.assign(this,new AuthConfig,p),this.config=Object.assign({},new AuthConfig,p),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(p={},e,A=!0){let C=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(M=>{"token_received"===M.type?C=!0:"logout"===M.type&&(C=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_expires"===M.type&&(null==e||"any"===e||M.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(M=>{C&&this.refreshInternal(p,A).catch(m=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(p,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(p,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(p=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(p))}loadDiscoveryDocumentAndLogin(p=null){return this.loadDiscoveryDocumentAndTryLogin(p=p||{}).then(e=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof p.state?p.state:""),!1))}debug(...p){this.showDebugInformation&&this.logger.debug.apply(this.logger,p)}validateUrlFromDiscoveryDocument(p){const e=[],A=this.validateUrlForHttps(p),C=this.validateUrlAgainstIssuer(p);return A||e.push("https for all urls required. Also for urls received by discovery."),C||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(p){if(!p)return!0;const e=p.toLowerCase();return!(!1!==this.requireHttps&&(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(p,e){if(!p)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(p))throw new Error(`'${e}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(p){return!this.strictDiscoveryDocumentValidation||!p||p.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const p=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),A=this.calcTimeout(e,p);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(A)).subscribe(C=>{this.ngZone.run(()=>{this.eventsSubject.next(C)})})})}setupIdTokenTimer(){const p=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),A=this.calcTimeout(e,p);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(A)).subscribe(C=>{this.ngZone.run(()=>{this.eventsSubject.next(C)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(p,e){const A=this.dateTimeService.now();return Math.max(0,(e-p)*this.timeoutFactor-(A-p))}setStorage(p){this._storage=p,this.configChanged()}loadDiscoveryDocument(p=null){return new Promise((e,A)=>{p||((p=this.issuer||"").endsWith("/")||(p+="/"),p+=".well-known/openid-configuration"),this.validateUrlForHttps(p)?this.http.get(p).subscribe(C=>{if(!this.validateDiscoveryDocument(C))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void A("discovery_document_validation_error");this.loginUrl=C.authorization_endpoint,this.logoutUrl=C.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=C.grant_types_supported,this.issuer=C.issuer,this.tokenEndpoint=C.token_endpoint,this.userinfoEndpoint=C.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=C.jwks_uri,this.sessionCheckIFrameUrl=C.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(C),this.revocationEndpoint=C.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(M=>{const b=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:C,jwks:M});this.eventsSubject.next(b),e(b)}).catch(M=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",M)),A(M)})},C=>{this.logger.error("error loading discovery document",C),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",C)),A(C)}):A("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((p,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(A=>{this.jwks=A,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),p(A)},A=>{this.logger.error("error loading jwks",A),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",A)),e(A)}):p(null)})}validateDiscoveryDocument(p){let e;return this.skipIssuerCheck||p.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(p.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(p.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(p.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!1):(this.sessionChecksEnabled&&!p.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+p.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(p,e,A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(p,e,A).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((p,e)=>{const A=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:A,observe:"response",responseType:"text"}).subscribe(C=>{if(this.debug("userinfo received",JSON.stringify(C)),C.headers.get("content-type").startsWith("application/json")){let M=JSON.parse(C.body);const m=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!m.sub||M.sub!==m.sub))return void e("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");M=Object.assign({},m,M),this._storage.setItem("id_token_claims_obj",JSON.stringify(M)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p({info:M})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p(JSON.parse(C.body))},C=>{this.logger.error("error loading user info",C),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",C)),e(C)})})}fetchTokenUsingPasswordFlow(p,e,A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:p,password:e},A)}fetchTokenUsingGrant(p,e,A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let C=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",p).set("scope",this.scope);if(this.useHttpBasicAuth){const M=btoa(`${this.clientId}:${this.dummyClientSecret}`);A=A.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(C=C.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(C=C.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))C=C.set(M,this.customQueryParams[M]);for(const M of Object.keys(e))C=C.set(M,e[M]);return A=A.set("Content-Type","application/x-www-form-urlencoded"),new Promise((M,m)=>{this.http.post(this.tokenEndpoint,C,{headers:A}).subscribe(b=>{this.debug("tokenResponse",b),this.storeAccessTokenResponse(b.access_token,b.refresh_token,b.expires_in||this.fallbackAccessTokenExpirationTimeInSec,b.scope,this.extractRecognizedCustomParameters(b)),this.oidc&&b.id_token&&this.processIdToken(b.id_token,b.access_token).then(D=>{this.storeIdToken(D),M(b)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),M(b)},b=>{this.logger.error("Error performing ${grantType} flow",b),this.eventsSubject.next(new OAuthErrorEvent("token_error",b)),m(b)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((p,e)=>{let A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),C=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const M=btoa(`${this.clientId}:${this.dummyClientSecret}`);C=C.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(A=A.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(A=A.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))A=A.set(M,this.customQueryParams[M]);this.http.post(this.tokenEndpoint,A,{headers:C}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(M=>M.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(M.id_token,M.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(m=>this.storeIdToken(m)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(m=>M)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(M))).subscribe(M=>{this.debug("refresh tokenResponse",M),this.storeAccessTokenResponse(M.access_token,M.refresh_token,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,M.scope,this.extractRecognizedCustomParameters(M)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),p(M)},M=>{this.logger.error("Error refreshing token",M),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",M)),e(M)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=p=>{const e=this.processMessageEventMessage(p);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(A=>this.debug("tryLogin during silent refresh failed",A))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(p={},e=!0){const A=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(p.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const C=this.document.getElementById(this.silentRefreshIFrameName);C&&this.document.body.removeChild(C),this.silentRefreshSubject=A.sub;const M=this.document.createElement("iframe");M.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,p).then(R=>{M.setAttribute("src",R),this.silentRefreshShowIFrame||(M.style.display="none"),this.document.body.appendChild(M)});const b=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(R=>R instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),D=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(R=>"token_received"===R.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),v=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([b,D,v]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(R=>{if(R instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===R.type||(R=new OAuthErrorEvent("silent_refresh_error",R)),this.eventsSubject.next(R),R;return"token_received"===R.type&&(R=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(R)),R})).toPromise()}initImplicitFlowInPopup(p){return this.initLoginFlowInPopup(p)}initLoginFlowInPopup(p){return p=p||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((A,C)=>{let b,m=null;p.windowRef?p.windowRef&&!p.windowRef.closed&&(m=p.windowRef,m.location.href=e):m=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(p));const D=L=>{this.tryLogin({customHashFragment:L,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{R(),A(!0)},O=>{R(),C(O)})};m?b=window.setInterval(()=>{(!m||m.closed)&&(R(),C(new OAuthErrorEvent("popup_closed",{})))},500):C(new OAuthErrorEvent("popup_blocked",{}));const R=()=>{window.clearInterval(b),window.removeEventListener("storage",w),window.removeEventListener("message",B),null!==m&&m.close(),m=null},B=L=>{const O=this.processMessageEventMessage(L);O&&null!==O?(window.removeEventListener("storage",w),D(O)):console.log("false event firing")},w=L=>{"auth_hash"===L.key&&(window.removeEventListener("message",B),D(L.newValue))};window.addEventListener("message",B),window.addEventListener("storage",w)}))}calculatePopupFeatures(p){const e=p.height||470,A=p.width||500,C=window.screenLeft+(window.outerWidth-A)/2;return`location=no,toolbar=no,width=${A},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${C}`}processMessageEventMessage(p){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!p||!p.data||"string"!=typeof p.data)return;const A=p.data;return A.startsWith(e)?"#"+A.substr(e.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=p=>{const e=p.origin.toLowerCase(),A=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),A.startsWith(e)){switch(p.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",p)}else this.debug("sessionCheckEventListener","wrong origin",e,"expected",A,"event",p)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(p=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(p=>{this.debug("token refresh after session change worked")}).catch(p=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"silently_refreshed"===p.type||"silent_refresh_timeout"===p.type||"silent_refresh_error"===p.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(p=>{"silently_refreshed"!==p.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const p=this.document.getElementById(this.sessionCheckIFrameName);p&&this.document.body.removeChild(p);const e=this.document.createElement("iframe");e.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),e.setAttribute("src",this.sessionCheckIFrameUrl),e.style.display="none",this.document.body.appendChild(e),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const p=this.document.getElementById(this.sessionCheckIFrameName);p||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),p.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(p="",e="",A="",C=!1,M={}){var m=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const b=m;let D;D=A||m.redirectUri;const v=yield m.createAndSaveNonce();if(p=p?v+m.config.nonceStateSeparator+encodeURIComponent(p):v,!m.requestAccessToken&&!m.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");m.responseType=m.config.responseType?m.config.responseType:m.oidc&&m.requestAccessToken?"id_token token":m.oidc&&!m.requestAccessToken?"id_token":"token";const R=b.loginUrl.indexOf("?")>-1?"&":"?";let B=b.scope;m.oidc&&!B.match(/(^|\s)openid($|\s)/)&&(B="openid "+B);let w=b.loginUrl+R+"response_type="+encodeURIComponent(b.responseType)+"&client_id="+encodeURIComponent(b.clientId)+"&state="+encodeURIComponent(p)+"&redirect_uri="+encodeURIComponent(D)+"&scope="+encodeURIComponent(B);if(m.responseType.includes("code")&&!m.disablePKCE){const[L,O]=yield m.createChallangeVerifierPairForPKCE();m.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",O):m._storage.setItem("PKCE_verifier",O),w+="&code_challenge="+L,w+="&code_challenge_method=S256"}e&&(w+="&login_hint="+encodeURIComponent(e)),b.resource&&(w+="&resource="+encodeURIComponent(b.resource)),b.oidc&&(w+="&nonce="+encodeURIComponent(v)),C&&(w+="&prompt=none");for(const L of Object.keys(M))w+="&"+encodeURIComponent(L)+"="+encodeURIComponent(M[L]);if(m.customQueryParams)for(const L of Object.getOwnPropertyNames(m.customQueryParams))w+="&"+L+"="+encodeURIComponent(m.customQueryParams[L]);return w})()}initImplicitFlowInternal(p="",e=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let A={},C=null;"string"==typeof e?C=e:"object"==typeof e&&(A=e),this.createLoginUrl(p,C,null,!1,A).then(this.config.openUri).catch(M=>{console.error("Error in initImplicitFlow",M),this.inImplicitFlow=!1})}initImplicitFlow(p="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(p,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(A=>"discovery_document_loaded"===A.type)).subscribe(A=>this.initImplicitFlowInternal(p,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(p){const e=this;if(p.onTokenReceived){const A={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};p.onTokenReceived(A)}}storeAccessTokenResponse(p,e,A,C,M){if(this._storage.setItem("access_token",p),C&&!Array.isArray(C)?this._storage.setItem("granted_scopes",JSON.stringify(C.split(" "))):C&&Array.isArray(C)&&this._storage.setItem("granted_scopes",JSON.stringify(C)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),A){const m=1e3*A,D=this.dateTimeService.new().getTime()+m;this._storage.setItem("expires_at",""+D)}e&&this._storage.setItem("refresh_token",e),M&&M.forEach((m,b)=>{this._storage.setItem(b,m)})}tryLogin(p=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(p).then(e=>!0):this.tryLoginImplicitFlow(p)}parseQueryString(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):{}}tryLoginCodeFlow(p=null){var e=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const A=(p=p||{}).customHashFragment?p.customHashFragment.substring(1):window.location.search,C=e.getCodePartsFromUrl(A),M=C.code,m=C.state,b=C.session_state;if(!p.preventClearHashAfterLogin){const R=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,R)}let[D,v]=e.parseState(m);if(e.state=v,C.error){e.debug("error trying to login"),e.handleLoginError(p,C);const R=new OAuthErrorEvent("code_error",{},C);return e.eventsSubject.next(R),Promise.reject(R)}if(!p.disableNonceCheck){if(!D)return e.saveRequestedRoute(),Promise.resolve();if(!p.disableOAuth2StateCheck&&!e.validateNonce(D)){const B=new OAuthErrorEvent("invalid_nonce_in_state",null);return e.eventsSubject.next(B),Promise.reject(B)}return e.storeSessionState(b),M&&(yield e.getTokenFromCode(M,p),e.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const p=this._storage.getItem("requested_route");p&&history.replaceState(null,"",window.location.origin+p)}getCodePartsFromUrl(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(p,e){let A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",p).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let C;C=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),C?A=A.set("code_verifier",C):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(A,e)}fetchAndProcessToken(p,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let A=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const C=btoa(`${this.clientId}:${this.dummyClientSecret}`);A=A.set("Authorization","Basic "+C)}return this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),new Promise((C,M)=>{if(this.customQueryParams)for(let m of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(m,this.customQueryParams[m]);this.http.post(this.tokenEndpoint,p,{headers:A}).subscribe(m=>{this.debug("refresh tokenResponse",m),this.storeAccessTokenResponse(m.access_token,m.refresh_token,m.expires_in||this.fallbackAccessTokenExpirationTimeInSec,m.scope,this.extractRecognizedCustomParameters(m)),this.oidc&&m.id_token?this.processIdToken(m.id_token,m.access_token,e.disableNonceCheck).then(b=>{this.storeIdToken(b),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),C(m)}).catch(b=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",b)),console.error("Error validating tokens"),console.error(b),M(b)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),C(m))},m=>{console.error("Error getting token",m),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",m)),M(m)})})}tryLoginImplicitFlow(p=null){let e;e=(p=p||{}).customHashFragment?this.urlHelper.getHashFragmentParams(p.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const A=e.state;let[C,M]=this.parseState(A);if(this.state=M,e.error){this.debug("error trying to login"),this.handleLoginError(p,e);const R=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(R),Promise.reject(R)}const m=e.access_token,b=e.id_token,D=e.session_state,v=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!m||this.requestAccessToken&&!p.disableOAuth2StateCheck&&!A||this.oidc&&!b)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!D&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!p.disableNonceCheck&&!this.validateNonce(C)){const B=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(B),Promise.reject(B)}return this.requestAccessToken&&this.storeAccessTokenResponse(m,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,v),this.oidc?this.processIdToken(b,m,p.disableNonceCheck).then(R=>p.validationHandler?p.validationHandler({accessToken:m,idClaims:R.idTokenClaims,idToken:R.idToken,state:A}).then(B=>R):R).then(R=>(this.storeIdToken(R),this.storeSessionState(D),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(p),this.inImplicitFlow=!1,!0)).catch(R=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",R)),this.logger.error("Error validating tokens"),this.logger.error(R),Promise.reject(R))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(p),Promise.resolve(!0))}parseState(p){let e=p,A="";if(p){const C=p.indexOf(this.config.nonceStateSeparator);C>-1&&(e=p.substr(0,C),A=p.substr(C+this.config.nonceStateSeparator.length))}return[e,A]}validateNonce(p){let e;return e=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===p||(console.error("Validating access_token failed, wrong state/nonce.",e,p),!1)}storeIdToken(p){this._storage.setItem("id_token",p.idToken),this._storage.setItem("id_token_claims_obj",p.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+p.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(p){this._storage.setItem("session_state",p)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(p,e){p.onLoginError&&p.onLoginError(e),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(p=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:p}processIdToken(p,e,A=!1){const C=p.split("."),m=b64DecodeUnicode(this.padBase64(C[0])),b=JSON.parse(m),v=b64DecodeUnicode(this.padBase64(C[1])),R=JSON.parse(v);let B;if(B=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(R.aud)){if(R.aud.every(z=>z!==this.clientId)){const z="Wrong audience: "+R.aud.join(",");return this.logger.warn(z),Promise.reject(z)}}else if(R.aud!==this.clientId){const z="Wrong audience: "+R.aud;return this.logger.warn(z),Promise.reject(z)}if(!R.sub){const z="No sub claim in id_token";return this.logger.warn(z),Promise.reject(z)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==R.sub){const z=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${R.sub}`;return this.logger.warn(z),Promise.reject(z)}if(!R.iat){const z="No iat claim in id_token";return this.logger.warn(z),Promise.reject(z)}if(!this.skipIssuerCheck&&R.iss!==this.issuer){const z="Wrong issuer: "+R.iss;return this.logger.warn(z),Promise.reject(z)}if(!A&&R.nonce!==B){const z="Wrong nonce: "+R.nonce;return this.logger.warn(z),Promise.reject(z)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!R.at_hash){const z="An at_hash is needed!";return this.logger.warn(z),Promise.reject(z)}const w=this.dateTimeService.now(),L=1e3*R.iat,O=1e3*R.exp,q=this.getClockSkewInMsec();if(L-q>=w||O+q<=w){const z="Token has expired";return console.error(z),console.error({now:w,issuedAtMSec:L,expiresAtMSec:O}),Promise.reject(z)}const ee={accessToken:e,idToken:p,jwks:this.jwks,idTokenClaims:R,idTokenHeader:b,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ee).then(z=>({idToken:p,idTokenClaims:R,idTokenClaimsJson:v,idTokenHeader:b,idTokenHeaderJson:m,idTokenExpiresAt:O})):this.checkAtHash(ee).then(z=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!z){const ie="Wrong at_hash";return this.logger.warn(ie),Promise.reject(ie)}return this.checkSignature(ee).then(ie=>{const pe={idToken:p,idTokenClaims:R,idTokenClaimsJson:v,idTokenHeader:b,idTokenHeaderJson:m,idTokenExpiresAt:O};return this.disableAtHashCheck?pe:this.checkAtHash(ee).then(Le=>{if(this.requestAccessToken&&!Le){const T="Wrong at_hash";return this.logger.warn(T),Promise.reject(T)}return pe})})})}getIdentityClaims(){const p=this._storage.getItem("id_token_claims_obj");return p?JSON.parse(p):null}getGrantedScopes(){const p=this._storage.getItem("granted_scopes");return p?JSON.parse(p):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(p){for(;p.length%4!=0;)p+="=";return p}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const p=this._storage.getItem("expires_at"),e=this.dateTimeService.new();return!(p&&parseInt(p,10)=0&&null!==this._storage.getItem(p)?JSON.parse(this._storage.getItem(p)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(p={},e=""){let A=!1;"boolean"==typeof p&&(A=p,p={});const C=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(m=>this._storage.removeItem(m)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||A||!C&&!this.postLogoutRedirectUri)return;let M;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)M=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(C)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let m=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});C&&(m=m.set("id_token_hint",C));const b=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";b&&(m=m.set("post_logout_redirect_uri",b),e&&(m=m.set("state",e)));for(let D in p)m=m.set(D,p[D]);M=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+m.toString()}this.config.openUri(M)}createAndSaveNonce(){const p=this;return this.createNonce().then(function(e){return p.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",e):p._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const p=this.document.getElementById(this.silentRefreshIFrameName);p&&p.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(p=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let A=45,C="";const M=typeof self>"u"?null:self.crypto||self.msCrypto;if(M){let m=new Uint8Array(A);M.getRandomValues(m),m.map||(m.map=Array.prototype.map),m=m.map(b=>e.charCodeAt(b%e.length)),C=String.fromCharCode.apply(null,m)}else for(;0"discovery_document_loaded"===A.type)).subscribe(A=>this.initCodeFlowInternal(p,e))}initCodeFlowInternal(p="",e={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let A={},C=null;"string"==typeof e?C=e:"object"==typeof e&&(A=e),this.createLoginUrl(p,C,null,!1,A).then(this.config.openUri).catch(M=>{console.error("Error in initAuthorizationCodeFlow"),console.error(M)})}createChallangeVerifierPairForPKCE(){var p=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!p.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const e=yield p.createNonce();return[base64UrlEncode(yield p.crypto.calcHash(e,"sha-256")),e]})()}extractRecognizedCustomParameters(p){let e=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(A=>{p[A]&&e.set(A,JSON.stringify(p[A]))}),e}revokeTokenAndLogout(p={},e=!1){let A=this.revocationEndpoint,C=this.getAccessToken(),M=this.getRefreshToken();if(!C)return;let m=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),b=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);b=b.set("Authorization","Basic "+D)}if(this.useHttpBasicAuth||(m=m.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(m=m.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const D of Object.getOwnPropertyNames(this.customQueryParams))m=m.set(D,this.customQueryParams[D]);return new Promise((D,v)=>{let R,B;if(C){let w=m.set("token",C).set("token_type_hint","access_token");R=this.http.post(A,w,{headers:b})}else R=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(M){let w=m.set("token",M).set("token_type_hint","refresh_token");B=this.http.post(A,w,{headers:b})}else B=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);e&&(R=R.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>0===w.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(w))),B=B.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>0===w.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(w)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([R,B]).subscribe(w=>{this.logOut(p),D(w),this.logger.info("Token successfully revoked")},w=>{this.logger.error("Error revoking token",w),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",w)),v(w)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Xe.\u0275fac=function(p){return new(p||Xe)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},Xe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(ue){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(ue)}}let DefaultOAuthInterceptor=(()=>{class Xe{constructor(p,e,A){this.oAuthService=p,this.errorHandler=e,this.moduleConfig=A}checkUrl(p){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(p):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>p.toLowerCase().startsWith(e.toLowerCase()))}intercept(p,e){const A=p.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(A)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>!!M)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_received"===M.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(M=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(M=>{if(M){const b=p.headers.set("Authorization","Bearer "+M);p=p.clone({headers:b})}return e.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>this.errorHandler.handleError(m)))})):e.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>this.errorHandler.handleError(M))):e.handle(p)}}return Xe.\u0275fac=function(p){return new(p||Xe)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},Xe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();class NullValidationHandler{validateSignature(ue){return Promise.resolve(null)}validateAtHash(ue){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Xe{static forRoot(p=null,e=NullValidationHandler){return{ngModule:Xe,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:e},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:p},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Xe.\u0275fac=function(p){return new(p||Xe)},Xe.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Xe}),Xe.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Xe})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},33231:(Xe,ue,p)=>{"use strict";p.d(ue,{Co:()=>Ae,nu:()=>X});var e=p(29521),A=p(94650),C=p(24006),M=p(3238),m=p(59549),b=p(84385),D=p(61135),v=p(39646),R=p(39841),B=p(77579),w=p(63900),L=p(54004),O=p(68675),q=p(91005),ee=p(82722),z=p(95698),ie=p(39300),Te=p(18505),pe=p(67376),Le=p(12687),T=p(56709),W=p(51572),F=p(4859),V=p(97392),te=p(36895),Q=p(10266);const Ee=["searchSelectInput"],ge=["innerSelectSearch"];function ve(ye,_e){if(1&ye){const Se=A.EpF();A.TgZ(0,"mat-checkbox",9),A.NdJ("change",function(Ce){A.CHM(Se);const fe=A.oxw();return A.KtG(fe._emitSelectAllBooleanToParent(Ce.checked))}),A.qZA()}if(2&ye){const Se=A.oxw();A.Q6J("color",null==Se.matFormField?null:Se.matFormField.color)("checked",Se.toggleAllCheckboxChecked)("indeterminate",Se.toggleAllCheckboxIndeterminate)("matTooltip",Se.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Se.toogleAllCheckboxTooltipPosition)}}function De(ye,_e){1&ye&&A._UZ(0,"mat-spinner",10)}function he(ye,_e){1&ye&&A.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Ye(ye,_e){if(1&ye&&(A.TgZ(0,"mat-icon",14),A._uU(1),A.qZA()),2&ye){const Se=A.oxw(2);A.Q6J("svgIcon",Se.closeSvgIcon),A.xp6(1),A.hij(" ",Se.closeSvgIcon?null:Se.closeIcon," ")}}function Be(ye,_e){if(1&ye){const Se=A.EpF();A.TgZ(0,"button",11),A.NdJ("click",function(){A.CHM(Se);const Ce=A.oxw();return A.KtG(Ce._reset(!0))}),A.YNc(1,he,1,0,"ng-content",12),A.YNc(2,Ye,2,2,"ng-template",null,13,A.W1O),A.qZA()}if(2&ye){const Se=A.MAs(3),Ne=A.oxw();A.xp6(1),A.Q6J("ngIf",Ne.clearIcon)("ngIfElse",Se)}}function se(ye,_e){1&ye&&A.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function le(ye,_e){if(1&ye&&A._uU(0),2&ye){const Se=A.oxw(2);A.Oqu(Se.noEntriesFoundLabel)}}function k(ye,_e){if(1&ye&&(A.TgZ(0,"div",15),A.YNc(1,se,1,0,"ng-content",12),A.YNc(2,le,1,1,"ng-template",null,16,A.W1O),A.qZA()),2&ye){const Se=A.MAs(3),Ne=A.oxw();A.xp6(1),A.Q6J("ngIf",Ne.noEntriesFound)("ngIfElse",Se)}}const N=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],be=function(ye,_e){return{"mat-select-search-inner-multiple":ye,"mat-select-search-inner-toggle-all":_e}},Z=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let de=(()=>{class ye{}return ye.\u0275fac=function(Se){return new(Se||ye)},ye.\u0275dir=A.lG2({type:ye,selectors:[["","ngxMatSelectSearchClear",""]]}),ye})();const xe=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","indexAndLengthScreenReaderText","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],ot=new A.OlP("mat-selectsearch-default-options");let tt=(()=>{class ye{}return ye.\u0275fac=function(Se){return new(Se||ye)},ye.\u0275dir=A.lG2({type:ye,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),ye})(),X=(()=>{class ye{constructor(Se,Ne,Ce,fe=null,r,u=null,_){this.matSelect=Se,this.changeDetectorRef=Ne,this._viewportRuler=Ce,this.matOption=fe,this.liveAnnouncer=r,this.matFormField=u,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new A.vpe,this.onTouched=E=>{},this._options$=new D.X(null),this.optionsList$=this._options$.pipe((0,w.w)(E=>E?E.changes.pipe((0,L.U)(h=>h.toArray()),(0,O.O)(E.toArray())):(0,v.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,L.U)(E=>E?E.length:0)),this._formControl=new C.NI(""),this._showNoEntriesFound$=(0,R.a)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,L.U)(([E,h])=>this.noEntriesFoundLabel&&E&&h===this.getOptionsLengthOffset())),this._onDestroy=new B.x,this.applyDefaultOptions(_)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Se){this._options$.next(Se)}get _options(){return this._options$.getValue()}applyDefaultOptions(Se){if(Se)for(const Ne of xe)Se.hasOwnProperty(Ne)&&(this[Ne]=Se[Ne])}ngOnInit(){const Se="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Se):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Se]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Se]=!0):this.matSelect.panelClass=Se,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,q.g)(1),(0,ee.R)(this._onDestroy)).subscribe(Ne=>{Ne?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,z.q)(1)).pipe((0,ee.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,ee.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let Ne=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,ee.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const Ce=this._options.toArray(),fe=Ce[this.getOptionsLengthOffset()],r=this.matSelect._keyManager;r&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(Ne,fe)||!r.activeItem||!Ce.find(_=>this.matSelect.compareWith(_,r.activeItem)))&&r.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),Ne=fe})})}),this._showNoEntriesFound$.pipe((0,ee.R)(this._onDestroy)).subscribe(Ne=>{this.matOption&&(Ne?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,ee.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,ee.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(Se){this.toggleAll.emit(Se)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Se){(Se.key&&1===Se.key.length||Se.keyCode>=e.A&&Se.keyCode<=e.Z||Se.keyCode>=e.xE&&Se.keyCode<=e.aO||Se.keyCode===e.L_||this.preventHomeEndKeyPropagation&&(Se.keyCode===e.Sd||Se.keyCode===e.uR))&&Se.stopPropagation(),this.matSelect.multiple&&Se.key&&Se.keyCode===e.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Se.keyCode===e.hY&&this.value&&(this._reset(!0),Se.stopPropagation())}_handleKeyup(Se){if(Se.keyCode===e.LH||Se.keyCode===e.JH){const Ne=this.matSelect._getAriaActiveDescendant(),Ce=this._options.toArray().findIndex(fe=>fe.id===Ne);if(-1!==Ce){const fe=this._options.toArray()[Ce];this.liveAnnouncer.announce(fe.viewValue+" "+this.getAriaIndex(Ce)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(Se){return 0===this.getOptionsLengthOffset()?Se+1:Se}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(Se){this._lastExternalInputValue=Se,this._formControl.setValue(Se),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(Se){this._formControl.valueChanges.pipe((0,ie.h)(Ne=>Ne!==this._lastExternalInputValue),(0,Te.b)(()=>this._lastExternalInputValue=void 0),(0,ee.R)(this._onDestroy)).subscribe(Se)}registerOnTouched(Se){this.onTouched=Se}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Se=this.matSelect.panel.nativeElement,Ne=Se.scrollTop;this.searchSelectInput.nativeElement.focus(),Se.scrollTop=Ne}_reset(Se){this._formControl.setValue(""),Se&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,ee.R)(this._onDestroy)).subscribe(Se=>{let Ne=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Se||!Array.isArray(Se))&&(Se=[]);const Ce=this.matSelect.options.map(fe=>fe.value);this.previousSelectedValues.forEach(fe=>{!Se.some(r=>this.matSelect.compareWith(r,fe))&&!Ce.some(r=>this.matSelect.compareWith(r,fe))&&(Se.push(fe),Ne=!0)})}this.previousSelectedValues=Se,Ne&&this.matSelect._onChange(Se)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const Se=this.getMatOptionHeight(),Ne=this.matSelect._keyManager.activeItemIndex||0,Ce=(0,M.CB)(Ne,this.matSelect.options,this.matSelect.optionGroups),fe=(this.matOption?-1:0)+Ce+Ne,r=this.matSelect.panel.nativeElement.scrollTop,u=this.innerSelectSearch.nativeElement.offsetHeight,_=Math.floor((256-u)/Se),E=Math.round((r+u)/Se)-1;E>=fe?this.matSelect.panel.nativeElement.scrollTop=fe*Se:E+_<=fe&&(this.matSelect.panel.nativeElement.scrollTop=(fe+1)*Se-(256-u))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let Ne,Se=this.innerSelectSearch.nativeElement;for(;Se=Se.parentElement;)if(Se.classList.contains("mat-select-panel")){Ne=Se;break}Ne&&(this.innerSelectSearch.nativeElement.style.width=Ne.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return ye.\u0275fac=function(Se){return new(Se||ye)(A.Y36(b.gD),A.Y36(A.sBO),A.Y36(pe.rL),A.Y36(M.ey,8),A.Y36(Le.Kd),A.Y36(m.KE,8),A.Y36(ot,8))},ye.\u0275cmp=A.Xpm({type:ye,selectors:[["ngx-mat-select-search"]],contentQueries:function(Se,Ne,Ce){if(1&Se&&(A.Suo(Ce,de,5),A.Suo(Ce,tt,5)),2&Se){let fe;A.iGM(fe=A.CRH())&&(Ne.clearIcon=fe.first),A.iGM(fe=A.CRH())&&(Ne.noEntriesFound=fe.first)}},viewQuery:function(Se,Ne){if(1&Se&&(A.Gf(Ee,7,A.SBq),A.Gf(ge,7,A.SBq)),2&Se){let Ce;A.iGM(Ce=A.CRH())&&(Ne.searchSelectInput=Ce.first),A.iGM(Ce=A.CRH())&&(Ne.innerSelectSearch=Ce.first)}},hostVars:2,hostBindings:function(Se,Ne){2&Se&&A.ekj("mat-select-search-inside-mat-option",Ne.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[A._Bn([{provide:C.JU,useExisting:(0,A.Gpc)(()=>ye),multi:!0}])],ngContentSelectors:Z,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(Se,Ne){1&Se&&(A.F$t(N),A._UZ(0,"input",0),A.TgZ(1,"div",1,2),A.YNc(3,ve,1,5,"mat-checkbox",3),A.TgZ(4,"input",4,5),A.NdJ("keydown",function(fe){return Ne._handleKeydown(fe)})("keyup",function(fe){return Ne._handleKeyup(fe)})("blur",function(){return Ne.onBlur()}),A.qZA(),A.YNc(6,De,1,0,"mat-spinner",6),A.YNc(7,Be,4,2,"button",7),A.Hsn(8),A.qZA(),A.YNc(9,k,4,2,"div",8),A.ALo(10,"async")),2&Se&&(A.xp6(1),A.Q6J("ngClass",A.WLB(11,be,Ne.matSelect.multiple,Ne._isToggleAllCheckboxVisible())),A.xp6(2),A.Q6J("ngIf",Ne._isToggleAllCheckboxVisible()),A.xp6(1),A.Q6J("type",Ne.type)("formControl",Ne._formControl)("placeholder",Ne.placeholderLabel),A.uIk("aria-label",Ne.ariaLabel),A.xp6(2),A.Q6J("ngIf",Ne.searching),A.xp6(1),A.Q6J("ngIf",!Ne.hideClearSearchButton&&Ne.value&&!Ne.searching),A.xp6(2),A.Q6J("ngIf",A.lcZ(10,9,Ne._showNoEntriesFound$)))},dependencies:[T.oG,W.Ou,F.lW,V.Hw,te.mk,te.O5,Q.gM,C.Fj,C.JJ,C.oH,te.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),ye})(),Ae=(()=>{class ye{}return ye.\u0275fac=function(Se){return new(Se||ye)},ye.\u0275mod=A.oAB({type:ye}),ye.\u0275inj=A.cJS({imports:[[te.ez,C.UX,F.ot,T.p9,V.Ps,W.Cq,Q.AV]]}),ye})()},15861:(Xe,ue,p)=>{"use strict";function e(C,M,m,b,D,v,R){try{var B=C[v](R),w=B.value}catch(L){return void m(L)}B.done?M(w):Promise.resolve(w).then(b,D)}function A(C){return function(){var M=this,m=arguments;return new Promise(function(b,D){var v=C.apply(M,m);function R(w){e(v,b,D,R,B,"next",w)}function B(w){e(v,b,D,R,B,"throw",w)}R(void 0)})}}p.d(ue,{Z:()=>A})},4147:Xe=>{"use strict";Xe.exports={i8:"10.4.3"}}},Xe=>{Xe(Xe.s=92013)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/runtime.faff2a249a8da639.js b/dist/apps/admin-gui/runtime.864e3f1ca64f759d.js similarity index 92% rename from dist/apps/admin-gui/runtime.faff2a249a8da639.js rename to dist/apps/admin-gui/runtime.864e3f1ca64f759d.js index cf1e66101..e702198c5 100644 --- a/dist/apps/admin-gui/runtime.faff2a249a8da639.js +++ b/dist/apps/admin-gui/runtime.864e3f1ca64f759d.js @@ -1 +1 @@ -(()=>{"use strict";var e,g={},v={};function r(e){var n=v[e];if(void 0!==n)return n.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=g,e=[],r.O=(n,t,f,o)=>{if(!t){var a=1/0;for(i=0;i=o)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(l=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,f){if(1&f&&(t=this(t)),8&f||"object"==typeof t&&t&&(4&f&&t.__esModule||16&f&&"function"==typeof t.then))return t;var o=Object.create(null);r.r(o);var i={};n=n||[null,e({}),e([]),e(e)];for(var a=2&f&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(l=>i[l]=()=>t[l]);return i.default=()=>t,r.d(o,i),o}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{109:"d722694daabc5484",254:"9437b8119450dc1c",338:"eece52703f68413f",493:"2871d9551d589868",641:"2e882839e7971673",705:"b8b7f12d1e85c8dc",775:"69d90981bcc1b878",839:"7b40c505f923811d",907:"1e001fc658db11fa"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="admin-gui:";r.l=(t,f,o,i)=>{if(e[t])e[t].push(f);else{var a,l;if(void 0!==o)for(var d=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(b)),_)return _(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=f){var a=new Promise((c,s)=>i=e[f]=[c,s]);o.push(i[2]=a);var l=r.p+r.u(f),d=new Error;r.l(l,c=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var s=c&&("load"===c.type?"missing":c.type),p=c&&c.target&&c.target.src;d.message="Loading chunk "+f+" failed.\n("+s+": "+p+")",d.name="ChunkLoadError",d.type=s,d.request=p,i[1](d)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var d,u,[i,a,l]=o,c=0;if(i.some(p=>0!==e[p])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(l)var s=l(r)}for(f&&f(o);c{"use strict";var e,g={},v={};function r(e){var n=v[e];if(void 0!==n)return n.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=g,e=[],r.O=(n,t,f,o)=>{if(!t){var a=1/0;for(i=0;i=o)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(l=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,f){if(1&f&&(t=this(t)),8&f||"object"==typeof t&&t&&(4&f&&t.__esModule||16&f&&"function"==typeof t.then))return t;var o=Object.create(null);r.r(o);var i={};n=n||[null,e({}),e([]),e(e)];for(var a=2&f&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(l=>i[l]=()=>t[l]);return i.default=()=>t,r.d(o,i),o}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{109:"d722694daabc5484",254:"98b9b46c9327ea59",283:"6fb68f2866b58a16",338:"b5a1b8ce27f85e05",493:"2871d9551d589868",641:"2e882839e7971673",705:"192e8293555087df",775:"7b77420afc2b970f",907:"12b02d1e1fc3f8db"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="admin-gui:";r.l=(t,f,o,i)=>{if(e[t])e[t].push(f);else{var a,l;if(void 0!==o)for(var d=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(b)),_)return _(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=f){var a=new Promise((c,s)=>i=e[f]=[c,s]);o.push(i[2]=a);var l=r.p+r.u(f),d=new Error;r.l(l,c=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var s=c&&("load"===c.type?"missing":c.type),p=c&&c.target&&c.target.src;d.message="Loading chunk "+f+" failed.\n("+s+": "+p+")",d.name="ChunkLoadError",d.type=s,d.request=p,i[1](d)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var d,u,[i,a,l]=o,c=0;if(i.some(p=>0!==e[p])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(l)var s=l(r)}for(f&&f(o);c - + diff --git a/dist/apps/consolidator/main.c6513d07c9b825d5.js b/dist/apps/consolidator/main.c6513d07c9b825d5.js new file mode 100644 index 000000000..653b2c001 --- /dev/null +++ b/dist/apps/consolidator/main.c6513d07c9b825d5.js @@ -0,0 +1 @@ +(self.webpackChunkconsolidator=self.webpackChunkconsolidator||[]).push([[179],{2605:(N,z,E)=>{"use strict";var M=E(6895),p=E(4650);class L extends M.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class F extends L{static makeCurrent(){(0,M.HT)(new F)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function q(){return B=B||document.querySelector("base"),B?B.getAttribute("href"):null}();return null==e?null:function ee(r){Q=Q||document.createElement("a"),Q.setAttribute("href",r);const a=Q.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){B=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,M.Mx)(document.cookie,a)}}let Q,B=null;const W=new p.OlP("TRANSITION_ID"),G=[{provide:p.ip1,useFactory:function Y(r,a,e){return()=>{e.get(p.CZH).donePromise.then(()=>{const t=(0,M.q)(),s=a.querySelectorAll(`style[ng-transition="${r}"]`);for(let u=0;u{class r{build(){return new XMLHttpRequest}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();const ie=new p.OlP("EventManagerPlugins");let ae=(()=>{class r{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,s){return this._findPluginFor(t).addEventListener(e,t,s)}addGlobalEventListener(e,t,s){return this._findPluginFor(t).addGlobalEventListener(e,t,s)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const s=this._plugins;for(let u=0;u{class r{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),t.add(s))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})(),be=(()=>{class r extends fe{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,s){e.forEach(u=>{const d=this._doc.createElement("style");d.textContent=u,s.push(t.appendChild(d))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Le),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,s)=>{this._addStylesToHost(e,s,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Le))}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(M.K0))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();function Le(r){(0,M.q)().remove(r)}const je={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ae=/%COMP%/g;function le(r,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return r;!1===r(a)&&(a.preventDefault(),a.returnValue=!1)}}let pe=(()=>{class r{constructor(e,t,s){this.eventManager=e,this.sharedStylesHost=t,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new Be(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case p.ifc.Emulated:{let s=this.rendererByCompId.get(t.id);return s||(s=new kt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,s)),s.applyToHost(e),s}case 1:case p.ifc.ShadowDom:return new Fe(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const s=le(t.id,t.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(ae),p.LFG(be),p.LFG(p.AFp))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();class Be{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(je[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){(xt(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(xt(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,s){if(s){e=s+":"+e;const u=je[s];u?a.setAttributeNS(u,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const s=je[t];s?a.removeAttributeNS(s,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,s){s&(p.JOm.DashCase|p.JOm.Important)?a.style.setProperty(e,t,s&p.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&p.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,ce(t)):this.eventManager.addEventListener(a,e,ce(t))}}function xt(r){return"TEMPLATE"===r.tagName&&void 0!==r.content}class kt extends Be{constructor(a,e,t,s){super(a),this.component=t;const u=le(s+"-"+t.id,t.styles,[]);e.addStyles(u),this.contentAttr=function Re(r){return"_ngcontent-%COMP%".replace(Ae,r)}(s+"-"+t.id),this.hostAttr=function De(r){return"_nghost-%COMP%".replace(Ae,r)}(s+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class Fe extends Be{constructor(a,e,t,s){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=le(s.id,s.styles,[]);for(let d=0;d{class r extends he{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,s){return e.addEventListener(t,s,!1),()=>this.removeEventListener(e,t,s)}removeEventListener(e,t,s){return e.removeEventListener(t,s)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(M.K0))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();const Xn=["alt","control","meta","shift"],Et={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Rn={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},ui={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey};let Yr=(()=>{class r extends he{constructor(e){super(e)}supports(e){return null!=r.parseEventName(e)}addEventListener(e,t,s){const u=r.parseEventName(t),d=r.eventCallback(u.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,M.q)().onAndCancel(e,u.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),s=t.shift();if(0===t.length||"keydown"!==s&&"keyup"!==s)return null;const u=r._normalizeKey(t.pop());let d="";if(Xn.forEach(n=>{const i=t.indexOf(n);i>-1&&(t.splice(i,1),d+=n+".")}),d+=u,0!=t.length||0===u.length)return null;const l={};return l.domEventName=s,l.fullKey=d,l}static getEventFullKey(e){let t="",s=function dc(r){let a=r.key;if(null==a){if(a=r.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===r.location&&Rn.hasOwnProperty(a)&&(a=Rn[a]))}return Et[a]||a}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),Xn.forEach(u=>{u!=s&&(0,ui[u])(e)&&(t+=u+".")}),t+=s,t}static eventCallback(e,t,s){return u=>{r.getEventFullKey(u)===e&&s.runGuarded(()=>t(u))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(M.K0))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();const Ze=(0,p.eFA)(p._c5,"browser",[{provide:p.Lbi,useValue:M.bD},{provide:p.g9A,useValue:function er(){F.makeCurrent()},multi:!0},{provide:M.K0,useFactory:function xa(){return(0,p.RDi)(document),document},deps:[]}]),bi=new p.OlP(""),Ta=[{provide:p.rWj,useClass:class re{addToWindow(a){p.dqk.getAngularTestability=(t,s=!0)=>{const u=a.findTestabilityInTree(t,s);if(null==u)throw new Error("Could not find testability for element.");return u},p.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),p.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),p.dqk.frameworkStabilizers||(p.dqk.frameworkStabilizers=[]),p.dqk.frameworkStabilizers.push(t=>{const s=p.dqk.getAllAngularTestabilities();let u=s.length,d=!1;const l=function(n){d=d||n,u--,0==u&&t(d)};s.forEach(function(n){n.whenStable(l)})})}findTestabilityInTree(a,e,t){return null==e?null:a.getTestability(e)??(t?(0,M.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null)}},deps:[]},{provide:p.lri,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]},{provide:p.dDg,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]}],ki=[{provide:p.zSh,useValue:"root"},{provide:p.qLn,useFactory:function tr(){return new p.qLn},deps:[]},{provide:ie,useClass:Ii,multi:!0,deps:[M.K0,p.R0b,p.Lbi]},{provide:ie,useClass:Yr,multi:!0,deps:[M.K0]},{provide:pe,useClass:pe,deps:[ae,be,p.AFp]},{provide:p.FYo,useExisting:pe},{provide:fe,useExisting:be},{provide:be,useClass:be,deps:[M.K0]},{provide:ae,useClass:ae,deps:[ie,p.R0b]},{provide:M.JF,useClass:oe,deps:[]},[]];let Sa=(()=>{class r{constructor(e){}static withServerTransition(e){return{ngModule:r,providers:[{provide:p.AFp,useValue:e.appId},{provide:W,useExisting:p.AFp},G]}}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(bi,12))},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[...ki,...Ta],imports:[M.ez,p.hGG]}),r})(),X=(()=>{class r{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(M.K0))},r.\u0275prov=p.Yz7({token:r,factory:function(e){let t=null;return t=e?new e:function ye(){return new X((0,p.LFG)(M.K0))}(),t},providedIn:"root"}),r})();typeof window<"u"&&window;let hi=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:function(e){let t=null;return t=e?new(e||r):p.LFG(st),t},providedIn:"root"}),r})(),st=(()=>{class r extends hi{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case p.q3G.NONE:return t;case p.q3G.HTML:return(0,p.qzn)(t,"HTML")?(0,p.z3N)(t):(0,p.EiD)(this._doc,String(t)).toString();case p.q3G.STYLE:return(0,p.qzn)(t,"Style")?(0,p.z3N)(t):t;case p.q3G.SCRIPT:if((0,p.qzn)(t,"Script"))return(0,p.z3N)(t);throw new Error("unsafe value used in a script context");case p.q3G.URL:return(0,p.qzn)(t,"URL")?(0,p.z3N)(t):(0,p.mCW)(String(t));case p.q3G.RESOURCE_URL:if((0,p.qzn)(t,"ResourceURL"))return(0,p.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,p.JVY)(e)}bypassSecurityTrustStyle(e){return(0,p.L6k)(e)}bypassSecurityTrustScript(e){return(0,p.eBb)(e)}bypassSecurityTrustUrl(e){return(0,p.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,p.pB0)(e)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(M.K0))},r.\u0275prov=p.Yz7({token:r,factory:function(e){let t=null;return t=e?new e:function Oe(r){return new st(r.get(M.K0))}(p.LFG(p.zs3)),t},providedIn:"root"}),r})();var Me=E(9646),ai=E(9751),It=E(576);function Kt(r){return!!r&&(r instanceof ai.y||(0,It.m)(r.lift)&&(0,It.m)(r.subscribe))}var jt=E(4742),In=E(8421),kn=E(3269),Xe=E(5403),Ma=E(3268),Zr=E(1810);function Tr(...r){const a=(0,kn.jO)(r),{args:e,keys:t}=(0,jt.D)(r),s=new ai.y(u=>{const{length:d}=e;if(!d)return void u.complete();const l=new Array(d);let n=d,i=d;for(let o=0;o{c||(c=!0,i--),l[o]=h},()=>n--,void 0,()=>{(!n||!c)&&(i||u.next(t?(0,Zr.n)(t,l):l),u.complete())}))}});return a?s.pipe((0,Ma.Z)(a)):s}var Yi=E(7272);function Gt(r){return new ai.y(a=>{(0,In.Xf)(r()).subscribe(a)})}var Dt=E(5698),He=E(7579),Ni=E(6063);class Sr extends He.x{constructor(a=1/0,e=1/0,t=Ni.l){super(),this._bufferSize=a,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,e)}next(a){const{isStopped:e,_buffer:t,_infiniteTimeWindow:s,_timestampProvider:u,_windowTime:d}=this;e||(t.push(a),!s&&t.push(u.now()+d)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(a),{_infiniteTimeWindow:t,_buffer:s}=this,u=s.slice();for(let d=0;dnew Sr(t,a,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}var ct=E(4004),Vn=E(4351),oi=E(3900);class ir{}let Er=(()=>{class r extends ir{getTranslation(e){return(0,Me.of)({})}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();class Xr{}let Bn=(()=>{class r{handle(e){return e.key}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();function Zt(r,a){if(r===a)return!0;if(null===r||null===a)return!1;if(r!=r&&a!=a)return!0;let s,u,d,e=typeof r;if(e==typeof a&&"object"==e){if(!Array.isArray(r)){if(Array.isArray(a))return!1;for(u in d=Object.create(null),r){if(!Zt(r[u],a[u]))return!1;d[u]=!0}for(u in a)if(!(u in d)&&typeof a[u]<"u")return!1;return!0}if(!Array.isArray(a))return!1;if((s=r.length)==a.length){for(u=0;u{Ci(a[t])?t in r?e[t]=Ji(r[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class Mr{}let Dr=(()=>{class r extends Mr{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let s;return s="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,s}getValue(e,t){let s="string"==typeof t?t.split("."):[t];t="";do{t+=s.shift(),!nr(e)||!nr(e[t])||"object"!=typeof e[t]&&s.length?s.length?t+=".":e=void 0:(e=e[t],t="")}while(s.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(s,u)=>{let d=this.getValue(t,u);return nr(d)?d:s}):e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();class vn{}let qi=(()=>{class r extends vn{compile(e,t){return e}compileTranslations(e,t){return e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();class hc{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new p.vpe,this.onLangChange=new p.vpe,this.onDefaultLangChange=new p.vpe}}const Xd=new p.OlP("USE_STORE"),Ao=new p.OlP("USE_DEFAULT_LANG"),Hs=new p.OlP("DEFAULT_LANGUAGE"),Rs=new p.OlP("USE_EXTEND");let An=(()=>{class r{constructor(e,t,s,u,d,l=!0,n=!1,i=!1,o){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=u,this.missingTranslationHandler=d,this.useDefaultLang=l,this.isolate=n,this.extend=i,this.pending=!1,this._onTranslationChange=new p.vpe,this._onLangChange=new p.vpe,this._onDefaultLangChange=new p.vpe,this._langs=[],this._translations={},this._translationRequests={},o&&this.setDefaultLang(o)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Dt.q)(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Me.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Dt.q)(1)).subscribe(s=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Me.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Ht(1),(0,Dt.q)(1));return this.loadingTranslations=t.pipe((0,ct.U)(s=>this.compiler.compileTranslations(s,e)),Ht(1),(0,Dt.q)(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?{...s,...this.translations[e]}:s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),t}setTranslation(e,t,s=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(s||this.extend)&&this.translations[e]?Ji(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,s){let u;if(t instanceof Array){let d={},l=!1;for(let n of t)d[n]=this.getParsedResult(e,n,s),Kt(d[n])&&(l=!0);return l?Tr(t.map(i=>Kt(d[i])?d[i]:(0,Me.of)(d[i]))).pipe((0,ct.U)(i=>{let o={};return i.forEach((c,h)=>{o[t[h]]=c}),o})):d}if(e&&(u=this.parser.interpolate(this.parser.getValue(e,t),s)),typeof u>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(u=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),s)),typeof u>"u"){let d={key:t,translateService:this};typeof s<"u"&&(d.interpolateParams=s),u=this.missingTranslationHandler.handle(d)}return typeof u<"u"?u:t}get(e,t){if(!nr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Vn.b)(s=>Kt(s=this.getParsedResult(s,e,t))?s:(0,Me.of)(s)));{let s=this.getParsedResult(this.translations[this.currentLang],e,t);return Kt(s)?s:(0,Me.of)(s)}}getStreamOnTranslationChange(e,t){if(!nr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Yi.z)(Gt(()=>this.get(e,t)),this.onTranslationChange.pipe((0,oi.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return"function"==typeof u.subscribe?u:(0,Me.of)(u)})))}stream(e,t){if(!nr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Yi.z)(Gt(()=>this.get(e,t)),this.onLangChange.pipe((0,oi.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return Kt(u)?u:(0,Me.of)(u)})))}instant(e,t){if(!nr(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,t);if(Kt(s)){if(e instanceof Array){let u={};return e.forEach((d,l)=>{u[e[l]]=e[l]}),u}return e}return s}set(e,t,s=this.currentLang){this.translations[s][e]=this.compiler.compile(t,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(hc),p.LFG(ir),p.LFG(vn),p.LFG(Mr),p.LFG(Xr),p.LFG(Ao),p.LFG(Xd),p.LFG(Rs),p.LFG(Hs))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})(),yt=(()=>{class r{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,s){let u=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(s){let d=this.translate.getParsedResult(s,e,t);Kt(d.subscribe)?d.subscribe(u):u(d)}this.translate.get(e,t).subscribe(u)}transform(e,...t){if(!e||!e.length)return e;if(Zt(e,this.lastKey)&&Zt(t,this.lastParams))return this.value;let s;if(nr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let u=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(u)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(s=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(u=>{this.lastKey&&u.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(u=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(An,16),p.Y36(p.sBO,16))},r.\u0275pipe=p.Yjl({name:"translate",type:r,pure:!1}),r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})(),Da=(()=>{class r{static forRoot(e={}){return{ngModule:r,providers:[e.loader||{provide:ir,useClass:Er},e.compiler||{provide:vn,useClass:qi},e.parser||{provide:Mr,useClass:Dr},e.missingTranslationHandler||{provide:Xr,useClass:Bn},hc,{provide:Xd,useValue:e.isolate},{provide:Ao,useValue:e.useDefaultLang},{provide:Rs,useValue:e.extend},{provide:Hs,useValue:e.defaultLanguage},An]}}static forChild(e={}){return{ngModule:r,providers:[e.loader||{provide:ir,useClass:Er},e.compiler||{provide:vn,useClass:qi},e.parser||{provide:Mr,useClass:Dr},e.missingTranslationHandler||{provide:Xr,useClass:Bn},{provide:Xd,useValue:e.isolate},{provide:Ao,useValue:e.useDefaultLang},{provide:Rs,useValue:e.extend},{provide:Hs,useValue:e.defaultLanguage},An]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({}),r})(),eu=(()=>{class r extends An{instant(e,t){return String(super.instant(e,t))}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var v=E(529);class Xt{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const Wt=new p.OlP("basePath");class lt{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let tu=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}convertAttributeToNonunique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}convertAttributeToUnique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}createAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}deleteAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteAttributeDefinitions(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"attributes[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAllAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAttribute(e,t,s,u,d,l,n,i,o,c,h,m=!1,g="body",f=!1,w){let R=new v.LE({encoder:this.encoder});null!=e&&(R=this.addToHttpParams(R,e,"attributeName")),null!=t&&(R=this.addToHttpParams(R,t,"attributeId")),null!=s&&(R=this.addToHttpParams(R,s,"facility")),null!=u&&(R=this.addToHttpParams(R,u,"user")),null!=d&&(R=this.addToHttpParams(R,d,"vo")),null!=l&&(R=this.addToHttpParams(R,l,"resource")),null!=n&&(R=this.addToHttpParams(R,n,"member")),null!=i&&(R=this.addToHttpParams(R,i,"group")),null!=o&&(R=this.addToHttpParams(R,o,"host")),null!=c&&(R=this.addToHttpParams(R,c,"userExtSource")),null!=h&&(R=this.addToHttpParams(R,h,"key"));let Te,J=this.defaultHeaders;Te=this.configuration.lookupCredential("BasicAuth"),Te&&(J=J.set("Authorization","Basic "+Te)),Te=this.configuration.lookupCredential("BearerAuth"),Te&&(J=J.set("Authorization","Bearer "+Te));let at=w&&w.httpHeaderAccept;void 0===at&&(at=this.configuration.selectHeaderAccept(["application/json"])),void 0!==at&&(J=J.set("Accept",at));let Ti=w&&w.context;void 0===Ti&&(Ti=new v.qT);let ni="json";at&&(ni=at.startsWith("text")?"text":this.configuration.isJsonMime(at)?"json":"blob");let _i=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(m){let wn=new URL(_i),vr=wn.pathname.split("/");vr[1]="non",wn.pathname=vr.join("/"),_i=wn.toString()}return this.httpClient.get(_i,{context:Ti,params:R,responseType:ni,withCredentials:this.configuration.withCredentials,headers:J,observe:g,reportProgress:f})}getAttributeDefinitionById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionsByNamespace(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeModulesDependenciesForAttributeGraphText(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getAttributeModulesDependenciesGraphText(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRules(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributesDefinitionWithRights(e,t,s,u,d,l,n,i,o=!1,c="body",h=!1,m){let g=new v.LE({encoder:this.encoder});null!=e&&(g=this.addToHttpParams(g,e,"member")),null!=t&&(g=this.addToHttpParams(g,t,"user")),null!=s&&(g=this.addToHttpParams(g,s,"vo")),null!=u&&(g=this.addToHttpParams(g,u,"group")),null!=d&&(g=this.addToHttpParams(g,d,"resource")),null!=l&&(g=this.addToHttpParams(g,l,"facility")),null!=n&&(g=this.addToHttpParams(g,n,"host")),null!=i&&(g=this.addToHttpParams(g,i,"userExtSource"));let w,f=this.defaultHeaders;w=this.configuration.lookupCredential("BasicAuth"),w&&(f=f.set("Authorization","Basic "+w)),w=this.configuration.lookupCredential("BearerAuth"),w&&(f=f.set("Authorization","Bearer "+w));let R=m&&m.httpHeaderAccept;void 0===R&&(R=this.configuration.selectHeaderAccept(["application/json"])),void 0!==R&&(f=f.set("Accept",R));let J=m&&m.context;void 0===J&&(J=new v.qT);let Te="json";R&&(Te=R.startsWith("text")?"text":this.configuration.isJsonMime(R)?"json":"blob");let at=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(o){let Ti=new URL(at),ni=Ti.pathname.split("/");ni[1]="non",Ti.pathname=ni.join("/"),at=Ti.toString()}return this.httpClient.get(at,{context:J,params:g,responseType:Te,withCredentials:this.configuration.withCredentials,headers:f,observe:c,reportProgress:h})}getEntitylessAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessAttributesByKey(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesWithKeys(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"keys[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessKeys(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityResourceUserMemberAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=s&&(o=this.addToHttpParams(o,s,"user")),null!=u&&(o=this.addToHttpParams(o,u,"member"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getFacilityUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getGroupResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getGroupResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getHostAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getIdpAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getLogins(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAndUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAndUserAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAndUserAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberGroupAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberGroupAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacility(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacilityService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesFacilityServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesGroupResourceService(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"service")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesHostService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMemberGroup(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesMemberGroupResourceService(e,t,s,u,d,l=!1,n="body",i=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"group")),null!=u&&(c=this.addToHttpParams(c,u,"member")),null!=d&&(c=this.addToHttpParams(c,d,"workWithUserAttributes"));let m,h=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(h=h.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(h=h.set("Authorization","Bearer "+m));let g=o&&o.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(h=h.set("Accept",g));let f=o&&o.context;void 0===f&&(f=new v.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let R=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.get(R,{context:f,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=s&&(o=this.addToHttpParams(o,s,"member")),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesMemberResource(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesMemberResourceService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=s&&(o=this.addToHttpParams(o,s,"member")),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesResource(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesResourceService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesResourceServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesUserFacility(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesVoService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getResourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupAndGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"resource")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithGroupAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getResourceGroupAndGroupAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithGroupAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getResourceGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupMemberAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=s&&(o=this.addToHttpParams(o,s,"member")),u&&u.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")});let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getUserAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserFacilityAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getUserFacilityAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getUserFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVoAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeAttributesForFacilityResourceGroupUserMember(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=s&&(h=this.addToHttpParams(h,s,"group")),null!=u&&(h=this.addToHttpParams(h,u,"user")),null!=d&&(h=this.addToHttpParams(h,d,"member")),l&&l.forEach(Te=>{h=this.addToHttpParams(h,Te,"attributes[]")});let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=c&&c.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";f&&(R=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(n){let Te=new URL(J),at=Te.pathname.split("/");at[1]="non",Te.pathname=at.join("/"),J=Te.toString()}return this.httpClient.post(J,null,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}removeAttributesForFacilityResourceUserMember(e,t,s,u,d,l=!1,n="body",i=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"user")),null!=u&&(c=this.addToHttpParams(c,u,"member")),d&&d.forEach(J=>{c=this.addToHttpParams(c,J,"attributes[]")});let m,h=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(h=h.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(h=h.set("Authorization","Bearer "+m));let g=o&&o.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(h=h.set("Accept",g));let f=o&&o.context;void 0===f&&(f=new v.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let R=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.post(R,null,{context:f,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeGroupResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attributes[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithGroupAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeHostAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeHostAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributesWorkWithUserAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attributes[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeMemberResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeResourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUesAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserExtSourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserFacilityAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeVoAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeVoAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}setAttributeActionCriticality(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==s)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"attributeDefinition")),null!=t&&(i=this.addToHttpParams(i,t,"action")),null!=s&&(i=this.addToHttpParams(i,s,"critical"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}setAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setEntitylessAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceGroupUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAndUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupWithGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(v.eN),p.LFG(Wt,8),p.LFG(lt,8))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ps=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAllPolicies(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAllRolesManagementRules(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAuthzAdminGroups(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=s&&(i=this.addToHttpParams(i,s,"complementaryObjectName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getAuthzRichAdmins(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==u)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=s&&(h=this.addToHttpParams(h,s,"complementaryObjectName")),u&&u.forEach(Te=>{h=this.addToHttpParams(h,Te,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=l&&(h=this.addToHttpParams(h,l,"onlyDirectAdmins"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=c&&c.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";f&&(R=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let J=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(n){let Te=new URL(J),at=Te.pathname.split("/");at[1]="non",Te.pathname=at.join("/"),J=Te.toString()}return this.httpClient.get(J,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}getFacilitiesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getLoggedUser(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getMembersWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getPerunPrincipal(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPrincipalRoleNames(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getResourcesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getSecurityTeamsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVosWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}isFacilityAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isGroupAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isPerunAdmin(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}isVoAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}keepAlive(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}loadAuthorizationComponents(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}refreshMfa(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}setRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(v.eN),p.LFG(Wt,8),p.LFG(lt,8))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ks=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}sentMessageToRTWithMemberQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"memberId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=s&&(o=this.addToHttpParams(o,s,"subject")),null!=u&&(o=this.addToHttpParams(o,u,"text"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}sentMessageToRTWithQueue(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}sentMessageToRTWithVo(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}sentMessageToRTWithVoQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"voId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=s&&(o=this.addToHttpParams(o,s,"subject")),null!=u&&(o=this.addToHttpParams(o,u,"text"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(v.eN),p.LFG(Wt,8),p.LFG(lt,8))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),mc=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}addApplicationMailForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}addApplicationMailForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}addGroupsToAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}approveApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}checkForSimilarRichIdentities(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.post(c,null,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}checkForSimilarUsersWithAuthInfo(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.post(c,null,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}consolidate(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/consolidate`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}consolidateIdentityUsingToken(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}copyFormFromGroupToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromGroupToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromVoToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromVoToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromGroupToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromGroupToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromVoToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromVoToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}createApplicationFormInGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}createApplicationFormInVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteApplicationMailForGroup(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteApplicationMailForVo(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteGroupsFromAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationDataById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationMailsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationMailsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationsForGroup(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(R=>{o=this.addToHttpParams(o,R,"state[]")}),null!=s&&(o=this.addToHttpParams(o,s,"dateFrom")),null!=u&&(o=this.addToHttpParams(o,u,"dateTo"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getApplicationsForMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getApplicationsForVo(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(R=>{o=this.addToHttpParams(o,R,"state[]")}),null!=s&&(o=this.addToHttpParams(o,s,"dateFrom")),null!=u&&(o=this.addToHttpParams(o,u,"dateTo"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getApplicationsPage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}getConsolidatorToken(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getFormItemsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFormItemsForGroupWithType(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFormItemsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFormItemsForVoWithType(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupApplicationForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsToAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVoApplicationForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}invitationFormExists(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling invitationFormExists.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/invitationFormExists`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}inviteMemberCandidates(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputInviteMemberCandidates was null or undefined when calling inviteMemberCandidates.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/inviteMemberCandidates`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}rejectApplication(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"id")),null!=t&&(n=this.addToHttpParams(n,t,"reason"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}sendInvitation(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let o=new v.LE({encoder:this.encoder});null!=s&&(o=this.addToHttpParams(o,s,"voId")),null!=u&&(o=this.addToHttpParams(o,u,"name")),null!=e&&(o=this.addToHttpParams(o,e,"email")),null!=t&&(o=this.addToHttpParams(o,t,"language"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}sendInvitationForGroup(e,t,s,u,d,l=!1,n="body",i=!1,o){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let c=new v.LE({encoder:this.encoder});null!=s&&(c=this.addToHttpParams(c,s,"voId")),null!=u&&(c=this.addToHttpParams(c,u,"groupId")),null!=d&&(c=this.addToHttpParams(c,d,"name")),null!=e&&(c=this.addToHttpParams(c,e,"email")),null!=t&&(c=this.addToHttpParams(c,t,"language"));let m,h=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(h=h.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(h=h.set("Authorization","Bearer "+m));let g=o&&o.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(h=h.set("Accept",g));let f=o&&o.context;void 0===f&&(f=new v.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let R=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.post(R,null,{context:f,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}sendInvitationGroupToExistingUser(e,t,s,u=!1,d="body",l=!1,n){let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"userId")),null!=t&&(i=this.addToHttpParams(i,t,"voId")),null!=s&&(i=this.addToHttpParams(i,s,"groupId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}sendInvitationToExistingUser(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userId")),null!=t&&(n=this.addToHttpParams(n,t,"voId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}sendInvitationsFromCsv(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}sendMessage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/sendMessage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setSendingEnabled(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}submitApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/submitApplication`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateApplicationMail(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateForm`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemData(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItemData`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsData(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}verifyApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(v.eN),p.LFG(Wt,8),p.LFG(lt,8))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Vs=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}addSpecificUserOwner(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}addUserExtSource(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}anonymizeUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}changeNonAuthzPasswordByToken(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}changePasswordForLogin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}changePasswordForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}checkPasswordResetRequestByTokenIsValid(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}checkPasswordStrength(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}createAlternativePassword(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}createServiceUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}deleteAlternativePassword(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==s)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"loginNamespace")),null!=s&&(i=this.addToHttpParams(i,s,"passwordId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}deletePasswordForLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deletePasswordForUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}findRichUsers(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}findRichUsersWithAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"searchString")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrsNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}findUsers(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}generateAccountForName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"namespace")),null!=t&&(n=this.addToHttpParams(n,t,"name"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getAllRichUsersWithAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"includedSpecificUsers"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAssignedRichResourcesForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsForFacilityWhereUserIsActive(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsForResourceWhereUserIsActive(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsInVoWhereUserIsAdmin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsWhereUserIsAdmin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getPendingPreferredEmailChanges(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUserExtSources(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUserWithAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersWithAttributesByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersWithoutVoWithAttributes(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"attrsNames[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getSpecificUsersByUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getSponsorsForMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getSponsorsForMemberByVoAndLogin(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==s)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName")),null!=s&&(o=this.addToHttpParams(o,s,"extLogin")),u&&u.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")});let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceByExtLoginAndExtSourceName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSources(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourcesByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsers(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/getUsers`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getUsersByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsersBySpecificUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"specificUser"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsersPage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}getVosWhereUserIsAdmin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVosWhereUserIsMember(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isLoginAvailable(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}loginExist(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeSpecificUserOwner(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserExtSource(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"userExtSource")),null!=s&&(i=this.addToHttpParams(i,s,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeUserExtSources(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==t)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"userExtSources")}),null!=s&&(i=this.addToHttpParams(i,s,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}requestPreferredEmailChange(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=s&&(h=this.addToHttpParams(h,s,"lang")),null!=u&&(h=this.addToHttpParams(h,u,"linkPath")),null!=d&&(h=this.addToHttpParams(h,d,"customUrl")),null!=l&&(h=this.addToHttpParams(h,l,"idpFilter"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=c&&c.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";f&&(R=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(n){let Te=new URL(J),at=Te.pathname.split("/");at[1]="non",Te.pathname=at.join("/"),J=Te.toString()}return this.httpClient.post(J,null,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}reservePasswordForLogin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}reservePasswordForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}reserveRandomPassword(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}setLogin(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"login")),null!=s&&(i=this.addToHttpParams(i,s,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}updateUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/updateUser`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateUserExtSourceLastAccess(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}validatePasswordForLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}validatePasswordForUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}validatePreferredEmailChangeWithToken(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(v.eN),p.LFG(Wt,8),p.LFG(lt,8))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ei=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAppsConfig(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getGuiConfiguration(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getNewGuiAlert(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunRPCVersion(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatistics(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatus(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunSystemTimeInMillis(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(v.eN),p.LFG(Wt,8),p.LFG(lt,8))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),wi=(()=>{class r{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:r,providers:[{provide:lt,useFactory:e}]}}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(r,12),p.LFG(v.eN,8))},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({}),r})();var qe=(()=>{return(r=qe||(qe={})).PERUNADMIN="PERUNADMIN",r.PERUNOBSERVER="PERUNOBSERVER",r.VOADMIN="VOADMIN",r.GROUPADMIN="GROUPADMIN",r.GROUPOBSERVER="GROUPOBSERVER",r.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",r.SELF="SELF",r.FACILITYADMIN="FACILITYADMIN",r.FACILITIYOBSERVER="FACILITYOBSERVER",r.RESOURCEADMIN="RESOURCEADMIN",r.RESOURCESELFSERVICE="RESOURCESELFSERVICE",r.REGISTRAR="REGISTRAR",r.ENGINE="ENGINE",r.RPC="RPC",r.NOTIFICATIONS="NOTIFICATIONS",r.SERVICEUSER="SERVICEUSER",r.SPONSOR="SPONSOR",r.VOOBSERVER="VOOBSERVER",r.TOPGROUPCREATOR="TOPGROUPCREATOR",r.SECURITYADMIN="SECURITYADMIN",r.CABINETADMIN="CABINETADMIN",r.UNKNOWNROLENAME="UNKNOWNROLENAME",r.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",r.UNKNOWN="UNKNOWN",r.MEMBERSHIP="MEMBERSHIP",qe;var r})();let Mi=(()=>{class r{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,s)=>t.roleName>s.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(s=>{this.allRolesManagementRules=s,e()},s=>t(s))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(s=>{s.primaryObject===t&&e.push(s)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let s=e.beanName;s.startsWith("Rich")&&(s=s.substring(4)),this.assignAvailableRoles(t,s);const u=new Map;this.setRolesAuthorization(t,e,u);for(const d of u.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,s){for(const u of e){let d=[],l=[],n=[];for(const m of this.allRolesManagementRules)if(m.roleName===u.roleName){d=d.concat(m.privilegedRolesToRead),l=l.concat(m.privilegedRolesToManage);for(const g of Object.keys(m.entitiesToManage))n="User"===g?[g].concat(n):n.concat(g);break}const i=this.fetchAllRelatedObjects([t]),o=this.resolveAuthorization(d,i),c=this.resolveAuthorization(l,i);s.set(u.roleName,{readAuth:o,manageAuth:c,modes:n})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],s=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(u=>{!s.includes(u.roleName)&&this.canManage(u)&&this.ruleHasMode(u,e)&&t.push(u)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(s=>s.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const s of e){let u=!0;for(const d of Object.keys(s)){const l=s[d];if(null===l)this.principalRoles.has(d)||(u=!1);else if(t[l]){for(const n of t[l])if(!this.principalHasRole(d,l,n)){u=!1;break}}else u=!1;if(!u)break}if(u)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const s of e){let u=s.beanName;switch(s.beanName.startsWith("Rich")&&(u=s.beanName.substring(4)),t[u]?t[u].push(s.id):t[u]=[s.id],u){case"Member":t.User?t.User.push(s.userId):t.User=[s.userId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Resource":t.Facility?t.Facility.push(s.facilityId):t.Facility=[s.facilityId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let s=[];for(s.push(e);0!==s.length;){const d=s.shift();if(t.has(d))continue;const l=this.getPerunPolicy(d);if(!l)return[];t.set(d,l),s=s.concat(l.includePolicies)}const u=[];for(const d of t.values())u.push(d);return u}voCustomSort(e){for(let t=0;t{let e=null;r._refCount++;const t=(0,Xe.x)(a,void 0,void 0,void 0,()=>{if(!r||r._refCount<=0||0<--r._refCount)return void(e=null);const s=r._connection,u=e;e=null,s&&(!u||s===u)&&s.unsubscribe(),a.unsubscribe()});r.subscribe(t),t.closed||(e=r.connect())})}class Sf extends ai.y{constructor(a,e){super(),this.source=a,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,pn.A)(a)&&(this.lift=a.lift)}_subscribe(a){return this.getSubject().subscribe(a)}getSubject(){const a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:a}=this;this._subject=this._connection=null,a?.unsubscribe()}connect(){let a=this._connection;if(!a){a=this._connection=new Qt.w0;const e=this.getSubject();a.add(this.source.subscribe((0,Xe.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),a.closed&&(this._connection=null,a=Qt.w0.EMPTY)}return a}refCount(){return Tf()(this)}}function Zi(...r){const a=(0,kn.yG)(r);return(0,pn.e)((e,t)=>{(a?(0,Yi.z)(r,e,a):(0,Yi.z)(r,e)).subscribe(t)})}var Hi=E(5577),ei=E(590),Rt=E(8505),Xi=E(262);function Do(r,a,e,t,s){return(u,d)=>{let l=e,n=a,i=0;u.subscribe((0,Xe.x)(d,o=>{const c=i++;n=l?r(n,o,c):(l=!0,o),t&&d.next(n)},s&&(()=>{l&&d.next(n),d.complete()})))}}function rr(r,a){return(0,pn.e)(Do(r,a,arguments.length>=2,!0))}function au(r){return r<=0?()=>Oi.E:(0,pn.e)((a,e)=>{let t=[];a.subscribe((0,Xe.x)(e,s=>{t.push(s),r{for(const s of t)e.next(s);e.complete()},void 0,()=>{t=null}))})}var Ef=E(8068),ou=E(6590),Mf=E(4671);function wc(r,a){const e=arguments.length>=2;return t=>t.pipe(r?(0,ge.h)((s,u)=>r(s,u,t)):Mf.y,au(1),e?(0,ou.d)(a):(0,Ef.T)(()=>new On.K))}var Df=E(9718);function Ha(r){return(0,pn.e)((a,e)=>{try{a.subscribe(e)}finally{e.add(r)}})}var yc=E(8189);const ft="primary";class lu{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ra(r){return new lu(r)}function Hf(r,a,e){const t=e.path.split("/");if(t.length>r.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[u]===s)}return r===a}function Pf(r){return Array.prototype.concat.apply([],r)}function If(r){return r.length>0?r[r.length-1]:null}function qt(r,a){for(const e in r)r.hasOwnProperty(e)&&a(r[e],e)}function St(r){return(0,p.CqO)(r)?r:(0,p.QGY)(r)?(0,$e.D)(Promise.resolve(r)):(0,Me.of)(r)}const kf={exact:function Os(r,a,e){if(!Ia(r.segments,a.segments)||!js(r.segments,a.segments,e)||r.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!r.children[t]||!Os(r.children[t],a.children[t],e))return!1;return!0},subset:Ls},Vf={exact:function iw(r,a){return Ln(r,a)},subset:function xc(r,a){return Object.keys(a).length<=Object.keys(r).length&&Object.keys(a).every(e=>vc(r[e],a[e]))},ignored:()=>!0};function Bf(r,a,e){return kf[e.paths](r.root,a.root,e.matrixParams)&&Vf[e.queryParams](r.queryParams,a.queryParams)&&!("exact"===e.fragment&&r.fragment!==a.fragment)}function Ls(r,a,e){return Tc(r,a,a.segments,e)}function Tc(r,a,e,t){if(r.segments.length>e.length){const s=r.segments.slice(0,e.length);return!(!Ia(s,e)||a.hasChildren()||!js(s,e,t))}if(r.segments.length===e.length){if(!Ia(r.segments,e)||!js(r.segments,e,t))return!1;for(const s in a.children)if(!r.children[s]||!Ls(r.children[s],a.children[s],t))return!1;return!0}{const s=e.slice(0,r.segments.length),u=e.slice(r.segments.length);return!!(Ia(r.segments,s)&&js(r.segments,s,t)&&r.children[ft])&&Tc(r.children[ft],a,u,t)}}function js(r,a,e){return a.every((t,s)=>Vf[e](r[s].parameters,t.parameters))}class Pa{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ra(this.queryParams)),this._queryParamMap}toString(){return rw.serialize(this)}}class dt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,qt(e,(t,s)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return du(this)}}class Rr{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ra(this.parameters)),this._parameterMap}toString(){return ka(this)}}function Ia(r,a){return r.length===a.length&&r.every((e,t)=>e.path===a[t].path)}let Sc=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:function(){return new cu},providedIn:"root"}),r})();class cu{parse(a){const e=new ar(a);return new Pa(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${Ec(a.root,!0)}`,t=function Ro(r){const a=Object.keys(r).map(e=>{const t=r[e];return Array.isArray(t)?t.map(s=>`${Ns(e)}=${Ns(s)}`).join("&"):`${Ns(e)}=${Ns(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function Of(r){return encodeURI(r)}(a.fragment)}`:""}`}}const rw=new cu;function du(r){return r.segments.map(a=>ka(a)).join("/")}function Ec(r,a){if(!r.hasChildren())return du(r);if(a){const e=r.children[ft]?Ec(r.children[ft],!1):"",t=[];return qt(r.children,(s,u)=>{u!==ft&&t.push(`${u}:${Ec(s,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Fs(r,a){let e=[];return qt(r.children,(t,s)=>{s===ft&&(e=e.concat(a(t,s)))}),qt(r.children,(t,s)=>{s!==ft&&(e=e.concat(a(t,s)))}),e}(r,(t,s)=>s===ft?[Ec(r.children[ft],!1)]:[`${s}:${Ec(t,!1)}`]);return 1===Object.keys(r.children).length&&null!=r.children[ft]?`${du(r)}/${e[0]}`:`${du(r)}/(${e.join("//")})`}}function Us(r){return encodeURIComponent(r).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ns(r){return Us(r).replace(/%3B/gi,";")}function Ho(r){return Us(r).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qs(r){return decodeURIComponent(r)}function uu(r){return qs(r.replace(/\+/g,"%20"))}function ka(r){return`${Ho(r.path)}${function aw(r){return Object.keys(r).map(a=>`;${Ho(a)}=${Ho(r[a])}`).join("")}(r.parameters)}`}const hu=/^[^\/()?;=#]+/;function Va(r){const a=r.match(hu);return a?a[0]:""}const zx=/^[^=?&#]+/,jf=/^[^&#]+/;class ar{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dt([],{}):new dt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[ft]=new dt(a,e)),t}parseSegment(){const a=Va(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new p.vHH(4009,!1);return this.capture(a),new Rr(qs(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Va(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const s=Va(this.remaining);s&&(t=s,this.capture(t))}a[qs(e)]=qs(t)}parseQueryParam(a){const e=function Lf(r){const a=r.match(zx);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function ow(r){const a=r.match(jf);return a?a[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const s=uu(e),u=uu(t);if(a.hasOwnProperty(s)){let d=a[s];Array.isArray(d)||(d=[d],a[s]=d),d.push(u)}else a[s]=u}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Va(this.remaining),s=this.remaining[t.length];if("/"!==s&&")"!==s&&";"!==s)throw new p.vHH(4010,!1);let u;t.indexOf(":")>-1?(u=t.slice(0,t.indexOf(":")),this.capture(u),this.capture(":")):a&&(u=ft);const d=this.parseChildren();e[u]=1===Object.keys(d).length?d[ft]:new dt([],d),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new p.vHH(4011,!1)}}function pu(r){return r.segments.length>0?new dt([],{[ft]:r}):r}function ea(r){const a={};for(const t of Object.keys(r.children)){const u=ea(r.children[t]);(u.segments.length>0||u.hasChildren())&&(a[t]=u)}return function fu(r){if(1===r.numberOfChildren&&r.children[ft]){const a=r.children[ft];return new dt(r.segments.concat(a.segments),a.children)}return r}(new dt(r.segments,a))}function Pr(r){return r instanceof Pa}function Uf(r,a,e,t,s){if(0===e.length)return Vo(a.root,a.root,a.root,t,s);const u=function Nf(r){if("string"==typeof r[0]&&1===r.length&&"/"===r[0])return new Bo(!0,0,r);let a=0,e=!1;const t=r.reduce((s,u,d)=>{if("object"==typeof u&&null!=u){if(u.outlets){const l={};return qt(u.outlets,(n,i)=>{l[i]="string"==typeof n?n.split("/"):n}),[...s,{outlets:l}]}if(u.segmentPath)return[...s,u.segmentPath]}return"string"!=typeof u?[...s,u]:0===d?(u.split("/").forEach((l,n)=>{0==n&&"."===l||(0==n&&""===l?e=!0:".."===l?a++:""!=l&&s.push(l))}),s):[...s,u]},[]);return new Bo(e,a,t)}(e);return u.toRoot()?Vo(a.root,a.root,new dt([],{}),t,s):function d(n){const i=function Oo(r,a,e,t){if(r.isAbsolute)return new Ba(a.root,!0,0);if(-1===t)return new Ba(e,e===a.root,0);return function zf(r,a,e){let t=r,s=a,u=e;for(;u>s;){if(u-=s,t=t.parent,!t)throw new p.vHH(4005,!1);s=t.segments.length}return new Ba(t,!1,s-u)}(e,t+(Io(r.commands[0])?0:1),r.numberOfDoubleDots)}(u,a,r.snapshot?._urlSegment,n),o=i.processChildren?Ws(i.segmentGroup,i.index,u.commands):Gs(i.segmentGroup,i.index,u.commands);return Vo(a.root,i.segmentGroup,o,t,s)}(r.snapshot?._lastPathIndex)}function Io(r){return"object"==typeof r&&null!=r&&!r.outlets&&!r.segmentPath}function ko(r){return"object"==typeof r&&null!=r&&r.outlets}function Vo(r,a,e,t,s){let d,u={};t&&qt(t,(n,i)=>{u[i]=Array.isArray(n)?n.map(o=>`${o}`):`${n}`}),d=r===a?e:zs(r,a,e);const l=pu(ea(d));return new Pa(l,u,s)}function zs(r,a,e){const t={};return qt(r.children,(s,u)=>{t[u]=s===a?e:zs(s,a,e)}),new dt(r.segments,t)}class Bo{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&Io(t[0]))throw new p.vHH(4003,!1);const s=t.find(ko);if(s&&s!==If(t))throw new p.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ba{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function Gs(r,a,e){if(r||(r=new dt([],{})),0===r.segments.length&&r.hasChildren())return Ws(r,a,e);const t=function Wf(r,a,e){let t=0,s=a;const u={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return u;const d=r.segments[s],l=e[t];if(ko(l))break;const n=`${l}`,i=t0&&void 0===n)break;if(n&&i&&"object"==typeof i&&void 0===i.outlets){if(!La(n,i,d))return u;t+=2}else{if(!La(n,{},d))return u;t++}s++}return{match:!0,pathIndex:s,commandIndex:t}}(r,a,e),s=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof u&&(u=[u]),null!==u&&(s[d]=Gs(r.children[d],a,u))}),qt(r.children,(u,d)=>{void 0===t[d]&&(s[d]=u)}),new dt(r.segments,s)}}function $s(r,a,e){const t=r.segments.slice(0,a);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=$s(new dt([],{}),0,e))}),a}function Oa(r){const a={};return qt(r,(e,t)=>a[t]=`${e}`),a}function La(r,a,e){return r==e.path&&Ln(a,e.parameters)}class or{constructor(a,e){this.id=a,this.url=e}}class Qs extends or{constructor(a,e,t="imperative",s=null){super(a,e),this.type=0,this.navigationTrigger=t,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class fn extends or{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class gu extends or{constructor(a,e,t,s){super(a,e),this.reason=t,this.code=s,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $f extends or{constructor(a,e,t,s){super(a,e),this.error=t,this.target=s,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Bt extends or{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gx extends or{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wx extends or{constructor(a,e,t,s,u){super(a,e),this.urlAfterRedirects=t,this.state=s,this.shouldActivate=u,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class $x extends or{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qx extends or{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yx{constructor(a){this.route=a,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Jx{constructor(a){this.route=a,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Kx{constructor(a){this.snapshot=a,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ys{constructor(a){this.snapshot=a,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zx{constructor(a){this.snapshot=a,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xx{constructor(a){this.snapshot=a,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fi{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class jo{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=Qf(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=Qf(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=bu(a,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==a)}pathFromRoot(a){return bu(a,this._root).map(e=>e.value)}}function Qf(r,a){if(r===a.value)return a;for(const e of a.children){const t=Qf(r,e);if(t)return t}return null}function bu(r,a){if(r===a.value)return[a];for(const e of a.children){const t=bu(r,e);if(t.length)return t.unshift(a),t}return[]}class si{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function tn(r){const a={};return r&&r.children.forEach(e=>a[e.value.outlet]=e),a}class Cu extends jo{constructor(a,e){super(a),this.snapshot=e,Mc(this,a)}toString(){return this.snapshot.toString()}}function Js(r,a){const e=function Ks(r,a){const d=new wu([],{},{},"",{},ft,a,null,r.root,-1,{});return new cw("",new si(d,[]))}(r,a),t=new $t([new Rr("",{})]),s=new $t({}),u=new $t({}),d=new $t({}),l=new $t(""),n=new jn(t,s,d,l,u,ft,a,e.root);return n.snapshot=e.root,new Cu(new si(n,[]),e)}class jn{constructor(a,e,t,s,u,d,l,n){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this._futureSnapshot=n}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ct.U)(a=>Ra(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ct.U)(a=>Ra(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Yf(r,a="emptyOnly"){const e=r.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const s=e[t],u=e[t-1];if(s.routeConfig&&""===s.routeConfig.path)t--;else{if(u.component)break;t--}}return function lw(r){return r.reduce((a,e)=>({params:{...a.params,...e.params},data:{...a.data,...e.data},resolve:{...e.data,...a.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class wu{constructor(a,e,t,s,u,d,l,n,i,o,c,h){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this.routeConfig=n,this._urlSegment=i,this._lastPathIndex=o,this._correctedLastPathIndex=h??o,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ra(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ra(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class cw extends jo{constructor(a,e){super(e),this.url=a,Mc(this,e)}toString(){return nn(this._root)}}function Mc(r,a){a.value._routerState=r,a.children.forEach(e=>Mc(r,e))}function nn(r){const a=r.children.length>0?` { ${r.children.map(nn).join(", ")} } `:"";return`${r.value}${a}`}function Zs(r){if(r.snapshot){const a=r.snapshot,e=r._futureSnapshot;r.snapshot=e,Ln(a.queryParams,e.queryParams)||r.queryParams.next(e.queryParams),a.fragment!==e.fragment&&r.fragment.next(e.fragment),Ln(a.params,e.params)||r.params.next(e.params),function Rf(r,a){if(r.length!==a.length)return!1;for(let e=0;eLn(e.parameters,a[t].parameters))}(r.url,a.url);return e&&!(!r.parent!=!a.parent)&&(!r.parent||ta(r.parent,a.parent))}function Fo(r,a,e){if(e&&r.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const s=function dw(r,a,e){return a.children.map(t=>{for(const s of e.children)if(r.shouldReuseRoute(t.value,s.value.snapshot))return Fo(r,t,s);return Fo(r,t)})}(r,a,e);return new si(t,s)}{if(r.shouldAttach(a.value)){const u=r.retrieve(a.value);if(null!==u){const d=u.route;return d.value._futureSnapshot=a.value,d.children=a.children.map(l=>Fo(r,l)),d}}const t=function uw(r){return new jn(new $t(r.url),new $t(r.params),new $t(r.queryParams),new $t(r.fragment),new $t(r.data),r.outlet,r.component,r)}(a.value),s=a.children.map(u=>Fo(r,u));return new si(t,s)}}const yu="ngNavigationCancelingError";function Jf(r,a){const{redirectTo:e,navigationBehaviorOptions:t}=Pr(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,s=Kf(!1,0,a);return s.url=e,s.navigationBehaviorOptions=t,s}function Kf(r,a,e){const t=new Error("NavigationCancelingError: "+(r||""));return t[yu]=!0,t.cancellationCode=a,e&&(t.url=e),t}function Zf(r){return Dc(r)&&Pr(r.url)}function Dc(r){return r&&r[yu]}class Hc{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Rc,this.attachRef=null}}let Rc=(()=>{class r{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const s=this.getOrCreateContext(e);s.outlet=t,this.contexts.set(e,s)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Hc,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const ia=!1;let Uo=(()=>{class r{constructor(e,t,s,u,d){this.parentContexts=e,this.location=t,this.changeDetector=u,this.environmentInjector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new p.vpe,this.deactivateEvents=new p.vpe,this.attachEvents=new p.vpe,this.detachEvents=new p.vpe,this.name=s||ft,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new p.vHH(4012,ia);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new p.vHH(4012,ia);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new p.vHH(4012,ia);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new p.vHH(4013,ia);this._activatedRoute=e;const s=this.location,d=e._futureSnapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,n=new Pc(e,l,s.injector);if(t&&function hw(r){return!!r.resolveComponentFactory}(t)){const i=t.resolveComponentFactory(d);this.activated=s.createComponent(i,s.length,n)}else this.activated=s.createComponent(d,{index:s.length,injector:n,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(Rc),p.Y36(p.s_b),p.$8M("name"),p.Y36(p.sBO),p.Y36(p.lqb))},r.\u0275dir=p.lG2({type:r,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),r})();class Pc{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===jn?this.route:a===Rc?this.childContexts:this.parent.get(a,e)}}let Xf=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=p.Xpm({type:r,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&p._UZ(0,"router-outlet")},dependencies:[Uo],encapsulation:2}),r})();function em(r,a){return r.providers&&!r._injector&&(r._injector=(0,p.MMx)(r.providers,a,`Route: ${r.path}`)),r._injector??a}function ja(r){const a=r.children&&r.children.map(ja),e=a?{...r,children:a}:{...r};return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==ft&&(e.component=Xf),e}function xn(r){return r.outlet||ft}function nm(r,a){const e=r.filter(t=>xn(t)===a);return e.push(...r.filter(t=>xn(t)!==a)),e}function rm(r){if(!r)return null;if(r.routeConfig?._injector)return r.routeConfig._injector;for(let a=r.parent;a;a=a.parent){const e=a.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class el{constructor(a,e,t,s){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=s}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),Zs(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const s=tn(e);a.children.forEach(u=>{const d=u.value.outlet;this.deactivateRoutes(u,s[d],t),delete s[d]}),qt(s,(u,d)=>{this.deactivateRouteAndItsChildren(u,t)})}deactivateRoutes(a,e,t){const s=a.value,u=e?e.value:null;if(s===u)if(s.component){const d=t.getContext(s.outlet);d&&this.deactivateChildRoutes(a,e,d.children)}else this.deactivateChildRoutes(a,e,t);else u&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),s=t&&a.value.component?t.children:e,u=tn(a);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);if(t&&t.outlet){const d=t.outlet.detach(),l=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:d,route:a,contexts:l})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),s=t&&a.value.component?t.children:e,u=tn(a);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const s=tn(e);a.children.forEach(u=>{this.activateRoutes(u,s[u.value.outlet],t),this.forwardEvent(new Xx(u.value.snapshot))}),a.children.length&&this.forwardEvent(new Ys(a.value.snapshot))}activateRoutes(a,e,t){const s=a.value,u=e?e.value:null;if(Zs(s),s===u)if(s.component){const d=t.getOrCreateContext(s.outlet);this.activateChildRoutes(a,e,d.children)}else this.activateChildRoutes(a,e,t);else if(s.component){const d=t.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const l=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),d.children.onOutletReAttached(l.contexts),d.attachRef=l.componentRef,d.route=l.route.value,d.outlet&&d.outlet.attach(l.componentRef,l.route.value),Zs(l.route.value),this.activateChildRoutes(a,null,d.children)}else{const l=rm(s.snapshot),n=l?.get(p._Vd)??null;d.attachRef=null,d.route=s,d.resolver=n,d.injector=l,d.outlet&&d.outlet.activateWith(s,d.injector),this.activateChildRoutes(a,null,d.children)}}else this.activateChildRoutes(a,null,t)}}class xu{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class na{constructor(a,e){this.component=a,this.route=e}}function fw(r,a,e){const t=r._root;return aa(t,a?a._root:null,e,[t.value])}function ra(r,a,e){return(rm(a)??e).get(r)}function aa(r,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=tn(a);return r.children.forEach(d=>{(function om(r,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=r.value,d=a?a.value:null,l=e?e.getContext(r.value.outlet):null;if(d&&u.routeConfig===d.routeConfig){const n=function mw(r,a,e){if("function"==typeof e)return e(r,a);switch(e){case"pathParamsChange":return!Ia(r.url,a.url);case"pathParamsOrQueryParamsChange":return!Ia(r.url,a.url)||!Ln(r.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ta(r,a)||!Ln(r.queryParams,a.queryParams);default:return!ta(r,a)}}(d,u,u.routeConfig.runGuardsAndResolvers);n?s.canActivateChecks.push(new xu(t)):(u.data=d.data,u._resolvedData=d._resolvedData),aa(r,a,u.component?l?l.children:null:e,t,s),n&&l&&l.outlet&&l.outlet.isActivated&&s.canDeactivateChecks.push(new na(l.outlet.component,d))}else d&&tl(a,l,s),s.canActivateChecks.push(new xu(t)),aa(r,null,u.component?l?l.children:null:e,t,s)})(d,u[d.value.outlet],e,t.concat([d.value]),s),delete u[d.value.outlet]}),qt(u,(d,l)=>tl(d,e.getContext(l),s)),s}function tl(r,a,e){const t=tn(r),s=r.value;qt(t,(u,d)=>{tl(u,s.component?a?a.children.getContext(d):null:a,e)}),e.canDeactivateChecks.push(new na(s.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,s))}function sr(r){return"function"==typeof r}function Tu(r){return r instanceof On.K||"EmptyError"===r?.name}const Fa=Symbol("INITIAL_VALUE");function Ua(){return(0,oi.w)(r=>(0,Vt.a)(r.map(a=>a.pipe((0,Dt.q)(1),Zi(Fa)))).pipe((0,ct.U)(a=>{for(const e of a)if(!0!==e){if(e===Fa)return Fa;if(!1===e||e instanceof Pa)return e}return!0}),(0,ge.h)(a=>a!==Fa),(0,Dt.q)(1)))}function Vc(r){return(0,Mo.z)((0,Rt.b)(a=>{if(Pr(a))throw Jf(0,a)}),(0,ct.U)(a=>!0===a))}const Eu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function um(r,a,e,t,s){const u=hm(r,a,e);return u.matched?function No(r,a,e,t){const s=a.canMatch;if(!s||0===s.length)return(0,Me.of)(!0);const u=s.map(d=>{const l=r.get(d),n=function nT(r){return r&&sr(r.canMatch)}(l)?l.canMatch(a,e):l(a,e);return St(n)});return(0,Me.of)(u).pipe(Ua(),Vc())}(t=em(a,t),a,e).pipe((0,ct.U)(d=>!0===d?u:{...Eu})):(0,Me.of)(u)}function hm(r,a,e){if(""===a.path)return"full"===a.pathMatch&&(r.hasChildren()||e.length>0)?{...Eu}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const s=(a.matcher||Hf)(e,r,a);if(!s)return{...Eu};const u={};qt(s.posParams,(l,n)=>{u[n]=l.path});const d=s.consumed.length>0?{...u,...s.consumed[s.consumed.length-1].parameters}:u;return{matched:!0,consumedSegments:s.consumed,remainingSegments:e.slice(s.consumed.length),parameters:d,positionalParamSegments:s.posParams??{}}}function Na(r,a,e,t,s="corrected"){if(e.length>0&&function fm(r,a,e){return e.some(t=>lr(r,a,t)&&xn(t)!==ft)}(r,e,t)){const d=new dt(a,function pm(r,a,e,t){const s={};s[ft]=t,t._sourceSegment=r,t._segmentIndexShift=a.length;for(const u of e)if(""===u.path&&xn(u)!==ft){const d=new dt([],{});d._sourceSegment=r,d._segmentIndexShift=a.length,s[xn(u)]=d}return s}(r,a,t,new dt(e,r.children)));return d._sourceSegment=r,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function mm(r,a,e){return e.some(t=>lr(r,a,t))}(r,e,t)){const d=new dt(r.segments,function Mu(r,a,e,t,s,u){const d={};for(const l of t)if(lr(r,e,l)&&!s[xn(l)]){const n=new dt([],{});n._sourceSegment=r,n._segmentIndexShift="legacy"===u?r.segments.length:a.length,d[xn(l)]=n}return{...s,...d}}(r,a,e,t,r.children,s));return d._sourceSegment=r,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}const u=new dt(r.segments,r.children);return u._sourceSegment=r,u._segmentIndexShift=a.length,{segmentGroup:u,slicedSegments:e}}function lr(r,a,e){return(!(r.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function gm(r,a,e,t){return!!(xn(r)===t||t!==ft&&lr(a,e,r))&&("**"===r.path||hm(a,r,e).matched)}function _m(r,a,e){return 0===a.length&&!r.children[e]}const Bc=!1;class Oc{constructor(a){this.segmentGroup=a||null}}class bm{constructor(a){this.urlTree=a}}function mn(r){return(0,Di._)(new Oc(r))}function qa(r){return(0,Di._)(new bm(r))}class xw{constructor(a,e,t,s,u){this.injector=a,this.configLoader=e,this.urlSerializer=t,this.urlTree=s,this.config=u,this.allowRedirects=!0}apply(){const a=Na(this.urlTree.root,[],[],this.config).segmentGroup,e=new dt(a.segments,a.children);return this.expandSegmentGroup(this.injector,this.config,e,ft).pipe((0,ct.U)(u=>this.createUrlTree(ea(u),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Xi.K)(u=>{if(u instanceof bm)return this.allowRedirects=!1,this.match(u.urlTree);throw u instanceof Oc?this.noMatchError(u):u}))}match(a){return this.expandSegmentGroup(this.injector,this.config,a.root,ft).pipe((0,ct.U)(s=>this.createUrlTree(ea(s),a.queryParams,a.fragment))).pipe((0,Xi.K)(s=>{throw s instanceof Oc?this.noMatchError(s):s}))}noMatchError(a){return new p.vHH(4002,Bc)}createUrlTree(a,e,t){const s=pu(a);return new Pa(s,e,t)}expandSegmentGroup(a,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,ct.U)(u=>new dt([],u))):this.expandSegment(a,t,e,t.segments,s,!0)}expandChildren(a,e,t){const s=[];for(const u of Object.keys(t.children))"primary"===u?s.unshift(u):s.push(u);return(0,$e.D)(s).pipe((0,Vn.b)(u=>{const d=t.children[u],l=nm(e,u);return this.expandSegmentGroup(a,l,d,u).pipe((0,ct.U)(n=>({segment:n,outlet:u})))}),rr((u,d)=>(u[d.outlet]=d.segment,u),{}),wc())}expandSegment(a,e,t,s,u,d){return(0,$e.D)(t).pipe((0,Vn.b)(l=>this.expandSegmentAgainstRoute(a,e,t,l,s,u,d).pipe((0,Xi.K)(i=>{if(i instanceof Oc)return(0,Me.of)(null);throw i}))),(0,ei.P)(l=>!!l),(0,Xi.K)((l,n)=>{if(Tu(l))return _m(e,s,u)?(0,Me.of)(new dt([],{})):mn(e);throw l}))}expandSegmentAgainstRoute(a,e,t,s,u,d,l){return gm(s,e,u,d)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(a,e,s,u,d):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d):mn(e):mn(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,s,d):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,s){const u=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?qa(u):this.lineralizeSegments(t,u).pipe((0,Hi.z)(d=>{const l=new dt(d,{});return this.expandSegment(a,l,e,d,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d){const{matched:l,consumedSegments:n,remainingSegments:i,positionalParamSegments:o}=hm(e,s,u);if(!l)return mn(e);const c=this.applyRedirectCommands(n,s.redirectTo,o);return s.redirectTo.startsWith("/")?qa(c):this.lineralizeSegments(s,c).pipe((0,Hi.z)(h=>this.expandSegment(a,e,t,h.concat(i),d,!1)))}matchSegmentAgainstRoute(a,e,t,s,u){return"**"===t.path?(a=em(t,a),t.loadChildren?(t._loadedRoutes?(0,Me.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(a,t)).pipe((0,ct.U)(l=>(t._loadedRoutes=l.routes,t._loadedInjector=l.injector,new dt(s,{})))):(0,Me.of)(new dt(s,{}))):um(e,t,s,a).pipe((0,oi.w)(({matched:d,consumedSegments:l,remainingSegments:n})=>d?this.getChildConfig(a=t._injector??a,t,s).pipe((0,Hi.z)(o=>{const c=o.injector??a,h=o.routes,{segmentGroup:m,slicedSegments:g}=Na(e,l,n,h),f=new dt(m.segments,m.children);if(0===g.length&&f.hasChildren())return this.expandChildren(c,h,f).pipe((0,ct.U)(Te=>new dt(l,Te)));if(0===h.length&&0===g.length)return(0,Me.of)(new dt(l,{}));const w=xn(t)===u;return this.expandSegment(c,f,h,g,w?ft:u,!0).pipe((0,ct.U)(J=>new dt(l.concat(J.segments),J.children)))})):mn(e)))}getChildConfig(a,e,t){return e.children?(0,Me.of)({routes:e.children,injector:a}):e.loadChildren?void 0!==e._loadedRoutes?(0,Me.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function kc(r,a,e,t){const s=a.canLoad;if(void 0===s||0===s.length)return(0,Me.of)(!0);const u=s.map(d=>{const l=r.get(d),n=function gw(r){return r&&sr(r.canLoad)}(l)?l.canLoad(a,e):l(a,e);return St(n)});return(0,Me.of)(u).pipe(Ua(),Vc())}(a,e,t).pipe((0,Hi.z)(s=>s?this.configLoader.loadChildren(a,e).pipe((0,Rt.b)(u=>{e._loadedRoutes=u.routes,e._loadedInjector=u.injector})):function vw(r){return(0,Di._)(Kf(Bc,3))}())):(0,Me.of)({routes:[],injector:a})}lineralizeSegments(a,e){let t=[],s=e.root;for(;;){if(t=t.concat(s.segments),0===s.numberOfChildren)return(0,Me.of)(t);if(s.numberOfChildren>1||!s.children[ft])return(0,Di._)(new p.vHH(4e3,Bc));s=s.children[ft]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreateUrlTree(a,e,t,s){const u=this.createSegmentGroup(a,e.root,t,s);return new Pa(u,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return qt(a,(s,u)=>{if("string"==typeof s&&s.startsWith(":")){const l=s.substring(1);t[u]=e[l]}else t[u]=s}),t}createSegmentGroup(a,e,t,s){const u=this.createSegments(a,e.segments,t,s);let d={};return qt(e.children,(l,n)=>{d[n]=this.createSegmentGroup(a,l,t,s)}),new dt(u,d)}createSegments(a,e,t,s){return e.map(u=>u.path.startsWith(":")?this.findPosParam(a,u,s):this.findOrReturn(u,t))}findPosParam(a,e,t){const s=t[e.path.substring(1)];if(!s)throw new p.vHH(4001,Bc);return s}findOrReturn(a,e){let t=0;for(const s of e){if(s.path===a.path)return e.splice(t),s;t++}return a}}class Cm{}class Mw{constructor(a,e,t,s,u,d,l,n){this.injector=a,this.rootComponentType=e,this.config=t,this.urlTree=s,this.url=u,this.paramsInheritanceStrategy=d,this.relativeLinkResolution=l,this.urlSerializer=n}recognize(){const a=Na(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,a,ft).pipe((0,ct.U)(e=>{if(null===e)return null;const t=new wu([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ft,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new si(t,e),u=new cw(this.url,s);return this.inheritParamsAndData(u._root),u}))}inheritParamsAndData(a){const e=a.value,t=Yf(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(a,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.processChildren(a,e,t):this.processSegment(a,e,t,t.segments,s)}processChildren(a,e,t){return(0,$e.D)(Object.keys(t.children)).pipe((0,Vn.b)(s=>{const u=t.children[s],d=nm(e,s);return this.processSegmentGroup(a,d,u,s)}),rr((s,u)=>s&&u?(s.push(...u),s):null),function su(r,a=!1){return(0,pn.e)((e,t)=>{let s=0;e.subscribe((0,Xe.x)(t,u=>{const d=r(u,s++);(d||a)&&t.next(u),!d&&t.complete()}))})}(s=>null!==s),(0,ou.d)(null),wc(),(0,ct.U)(s=>{if(null===s)return null;const u=qo(s);return function Dw(r){r.sort((a,e)=>a.value.outlet===ft?-1:e.value.outlet===ft?1:a.value.outlet.localeCompare(e.value.outlet))}(u),u}))}processSegment(a,e,t,s,u){return(0,$e.D)(e).pipe((0,Vn.b)(d=>this.processSegmentAgainstRoute(d._injector??a,d,t,s,u)),(0,ei.P)(d=>!!d),(0,Xi.K)(d=>{if(Tu(d))return _m(t,s,u)?(0,Me.of)([]):(0,Me.of)(null);throw d}))}processSegmentAgainstRoute(a,e,t,s,u){if(e.redirectTo||!gm(e,t,s,u))return(0,Me.of)(null);let d;if("**"===e.path){const l=s.length>0?If(s).parameters:{},n=zo(t)+s.length,i=new wu(s,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Hu(e),xn(e),e.component??e._loadedComponent??null,e,Fn(t),n,Ru(e),n);d=(0,Me.of)({snapshot:i,consumedSegments:[],remainingSegments:[]})}else d=um(t,e,s,a).pipe((0,ct.U)(({matched:l,consumedSegments:n,remainingSegments:i,parameters:o})=>{if(!l)return null;const c=zo(t)+n.length;return{snapshot:new wu(n,o,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Hu(e),xn(e),e.component??e._loadedComponent??null,e,Fn(t),c,Ru(e),c),consumedSegments:n,remainingSegments:i}}));return d.pipe((0,oi.w)(l=>{if(null===l)return(0,Me.of)(null);const{snapshot:n,consumedSegments:i,remainingSegments:o}=l;a=e._injector??a;const c=e._loadedInjector??a,h=function sT(r){return r.children?r.children:r.loadChildren?r._loadedRoutes:[]}(e),{segmentGroup:m,slicedSegments:g}=Na(t,i,o,h.filter(w=>void 0===w.redirectTo),this.relativeLinkResolution);if(0===g.length&&m.hasChildren())return this.processChildren(c,h,m).pipe((0,ct.U)(w=>null===w?null:[new si(n,w)]));if(0===h.length&&0===g.length)return(0,Me.of)([new si(n,[])]);const f=xn(e)===u;return this.processSegment(c,h,m,g,f?ft:u).pipe((0,ct.U)(w=>null===w?null:[new si(n,w)]))}))}}function Hw(r){const a=r.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function qo(r){const a=[],e=new Set;for(const t of r){if(!Hw(t)){a.push(t);continue}const s=a.find(u=>t.value.routeConfig===u.value.routeConfig);void 0!==s?(s.children.push(...t.children),e.add(s)):a.push(t)}for(const t of e){const s=qo(t.children);a.push(new si(t.value,s))}return a.filter(t=>!e.has(t))}function Fn(r){let a=r;for(;a._sourceSegment;)a=a._sourceSegment;return a}function zo(r){let a=r,e=a._segmentIndexShift??0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift??0;return e-1}function Hu(r){return r.data||{}}function Ru(r){return r.resolve||{}}const ym=Symbol("RouteTitle");function Rw(r){return"string"==typeof r.title||null===r.title}function jc(r){return(0,oi.w)(a=>{const e=r(a);return e?(0,$e.D)(e).pipe((0,ct.U)(()=>a)):(0,Me.of)(a)})}let vm=(()=>{class r{buildTitle(e){let t,s=e.root;for(;void 0!==s;)t=this.getResolvedTitleForRoute(s)??t,s=s.children.find(u=>u.outlet===ft);return t}getResolvedTitleForRoute(e){return e.data[ym]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:function(){return(0,p.f3M)(Am)},providedIn:"root"}),r})(),Am=(()=>{class r extends vm{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(X))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Pw{}class xm extends class Iw{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Uc=new p.OlP("",{providedIn:"root",factory:()=>({})}),Vu=new p.OlP("ROUTES");let Yt=(()=>{class r{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Me.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=St(e.loadComponent()).pipe((0,Rt.b)(u=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=u}),Ha(()=>{this.componentLoaders.delete(e)})),s=new Sf(t,()=>new He.x).pipe(Tf());return this.componentLoaders.set(e,s),s}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Me.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const u=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,ct.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(t);let n,i,o=!1;Array.isArray(l)?i=l:(n=l.create(e).injector,i=Pf(n.get(Vu,[],p.XFs.Self|p.XFs.Optional)));return{routes:i.map(ja),injector:n}}),Ha(()=>{this.childrenLoaders.delete(t)})),d=new Sf(u,()=>new He.x).pipe(Tf());return this.childrenLoaders.set(t,d),d}loadModuleFactoryOrRoutes(e){return St(e()).pipe((0,Hi.z)(t=>t instanceof p.YKP||Array.isArray(t)?(0,Me.of)(t):(0,$e.D)(this.compiler.compileModuleAsync(t))))}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(p.zs3),p.LFG(p.Sil))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Tm{}class kw{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function Sm(r){throw r}function Vw(r,a,e){return a.parse("/")}const Bw={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ow={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Em(){const r=(0,p.f3M)(Sc),a=(0,p.f3M)(Rc),e=(0,p.f3M)(M.Ye),t=(0,p.f3M)(p.zs3),s=(0,p.f3M)(p.Sil),u=(0,p.f3M)(Vu,{optional:!0})??[],d=(0,p.f3M)(Uc,{optional:!0})??{},l=(0,p.f3M)(Am),n=(0,p.f3M)(vm,{optional:!0}),i=(0,p.f3M)(Tm,{optional:!0}),o=(0,p.f3M)(Pw,{optional:!0}),c=new yi(null,r,a,e,t,s,Pf(u));return i&&(c.urlHandlingStrategy=i),o&&(c.routeReuseStrategy=o),c.titleStrategy=n??l,function Lw(r,a){r.errorHandler&&(a.errorHandler=r.errorHandler),r.malformedUriErrorHandler&&(a.malformedUriErrorHandler=r.malformedUriErrorHandler),r.onSameUrlNavigation&&(a.onSameUrlNavigation=r.onSameUrlNavigation),r.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=r.paramsInheritanceStrategy),r.relativeLinkResolution&&(a.relativeLinkResolution=r.relativeLinkResolution),r.urlUpdateStrategy&&(a.urlUpdateStrategy=r.urlUpdateStrategy),r.canceledNavigationResolution&&(a.canceledNavigationResolution=r.canceledNavigationResolution)}(d,c),c}let yi=(()=>{class r{constructor(e,t,s,u,d,l,n){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=s,this.location=u,this.config=n,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.x,this.errorHandler=Sm,this.malformedUriErrorHandler=Vw,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Me.of)(void 0),this.urlHandlingStrategy=new kw,this.routeReuseStrategy=new xm,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=d.get(Yt),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new Jx(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new Yx(h)),this.ngModule=d.get(p.h0i),this.console=d.get(p.c2e);const c=d.get(p.R0b);this.isNgZoneEnabled=c instanceof p.R0b&&p.R0b.isInAngularZone(),this.resetConfig(n),this.currentUrlTree=function tw(){return new Pa(new dt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Js(this.currentUrlTree,this.rootComponentType),this.transitions=new $t({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,ge.h)(s=>0!==s.id),(0,ct.U)(s=>({...s,extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),(0,oi.w)(s=>{let u=!1,d=!1;return(0,Me.of)(s).pipe((0,Rt.b)(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,oi.w)(l=>{const n=this.browserUrlTree.toString(),i=!this.navigated||l.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Wo(l.source)&&(this.browserUrlTree=l.extractedUrl),(0,Me.of)(l).pipe((0,oi.w)(c=>{const h=this.transitions.getValue();return t.next(new Qs(c.id,this.serializeUrl(c.extractedUrl),c.source,c.restoredState)),h!==this.transitions.getValue()?Oi.E:Promise.resolve(c)}),function Tw(r,a,e,t){return(0,oi.w)(s=>function Aw(r,a,e,t,s){return new xw(r,a,e,t,s).apply()}(r,a,e,s.extractedUrl,t).pipe((0,ct.U)(u=>({...s,urlAfterRedirects:u}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Rt.b)(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},s.urlAfterRedirects=c.urlAfterRedirects}),function lT(r,a,e,t,s,u){return(0,Hi.z)(d=>function Ew(r,a,e,t,s,u,d="emptyOnly",l="legacy"){return new Mw(r,a,e,t,s,d,l,u).recognize().pipe((0,oi.w)(n=>null===n?function Sw(r){return new ai.y(a=>a.error(r))}(new Cm):(0,Me.of)(n)))}(r,a,e,d.urlAfterRedirects,t.serialize(d.urlAfterRedirects),t,s,u).pipe((0,ct.U)(l=>({...d,targetSnapshot:l}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Rt.b)(c=>{if(s.targetSnapshot=c.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!c.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);this.setBrowserUrl(m,c)}this.browserUrlTree=c.urlAfterRedirects}const h=new Bt(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);t.next(h)}));if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:m,source:g,restoredState:f,extras:w}=l,R=new Qs(h,this.serializeUrl(m),g,f);t.next(R);const J=Js(m,this.rootComponentType).snapshot;return s={...l,targetSnapshot:J,urlAfterRedirects:m,extras:{...w,skipLocationChange:!1,replaceUrl:!1}},(0,Me.of)(s)}return this.rawUrlTree=l.rawUrl,l.resolve(null),Oi.E}),(0,Rt.b)(l=>{const n=new Gx(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(n)}),(0,ct.U)(l=>s={...l,guards:fw(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),function Cw(r,a){return(0,Hi.z)(e=>{const{targetSnapshot:t,currentSnapshot:s,guards:{canActivateChecks:u,canDeactivateChecks:d}}=e;return 0===d.length&&0===u.length?(0,Me.of)({...e,guardsResult:!0}):function lm(r,a,e,t){return(0,$e.D)(r).pipe((0,Hi.z)(s=>function dm(r,a,e,t,s){const u=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!u||0===u.length)return(0,Me.of)(!0);const d=u.map(l=>{const n=ra(l,a,s);return St(function _w(r){return r&&sr(r.canDeactivate)}(n)?n.canDeactivate(r,a,e,t):n(r,a,e,t)).pipe((0,ei.P)())});return(0,Me.of)(d).pipe(Ua())}(s.component,s.route,e,a,t)),(0,ei.P)(s=>!0!==s,!0))}(d,t,s,r).pipe((0,Hi.z)(l=>l&&function il(r){return"boolean"==typeof r}(l)?function aT(r,a,e,t){return(0,$e.D)(a).pipe((0,Vn.b)(s=>(0,Yi.z)(function oT(r,a){return null!==r&&a&&a(new Kx(r)),(0,Me.of)(!0)}(s.route.parent,t),function cm(r,a){return null!==r&&a&&a(new Zx(r)),(0,Me.of)(!0)}(s.route,t),function ww(r,a,e){const t=a[a.length-1],u=a.slice(0,a.length-1).reverse().map(d=>function am(r){const a=r.routeConfig?r.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:r,guards:a}:null}(d)).filter(d=>null!==d).map(d=>Gt(()=>{const l=d.guards.map(n=>{const i=ra(n,d.node,e);return St(function sm(r){return r&&sr(r.canActivateChild)}(i)?i.canActivateChild(t,r):i(t,r)).pipe((0,ei.P)())});return(0,Me.of)(l).pipe(Ua())}));return(0,Me.of)(u).pipe(Ua())}(r,s.path,e),function Su(r,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Me.of)(!0);const s=t.map(u=>Gt(()=>{const d=ra(u,a,e);return St(function iT(r){return r&&sr(r.canActivate)}(d)?d.canActivate(a,r):d(a,r)).pipe((0,ei.P)())}));return(0,Me.of)(s).pipe(Ua())}(r,s.route,e))),(0,ei.P)(s=>!0!==s,!0))}(t,u,r,a):(0,Me.of)(l)),(0,ct.U)(l=>({...e,guardsResult:l})))})}(this.ngModule.injector,l=>this.triggerEvent(l)),(0,Rt.b)(l=>{if(s.guardsResult=l.guardsResult,Pr(l.guardsResult))throw Jf(0,l.guardsResult);const n=new Wx(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.triggerEvent(n)}),(0,ge.h)(l=>!!l.guardsResult||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",3),!1)),jc(l=>{if(l.guards.canActivateChecks.length)return(0,Me.of)(l).pipe((0,Rt.b)(n=>{const i=new $x(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,oi.w)(n=>{let i=!1;return(0,Me.of)(n).pipe(function cT(r,a){return(0,Hi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:s}}=e;if(!s.length)return(0,Me.of)(e);let u=0;return(0,$e.D)(s).pipe((0,Vn.b)(d=>function Pu(r,a,e,t){const s=r.routeConfig,u=r._resolve;return void 0!==s?.title&&!Rw(s)&&(u[ym]=s.title),function Iu(r,a,e,t){const s=function ku(r){return[...Object.keys(r),...Object.getOwnPropertySymbols(r)]}(r);if(0===s.length)return(0,Me.of)({});const u={};return(0,$e.D)(s).pipe((0,Hi.z)(d=>function dT(r,a,e,t){const s=ra(r,a,t);return St(s.resolve?s.resolve(a,e):s(a,e))}(r[d],a,e,t).pipe((0,ei.P)(),(0,Rt.b)(l=>{u[d]=l}))),au(1),(0,Df.h)(u),(0,Xi.K)(d=>Tu(d)?Oi.E:(0,Di._)(d)))}(u,r,a,t).pipe((0,ct.U)(d=>(r._resolvedData=d,r.data=Yf(r,e).resolve,s&&Rw(s)&&(r.data[ym]=s.title),null)))}(d.route,t,r,a)),(0,Rt.b)(()=>u++),au(1),(0,Hi.z)(d=>u===s.length?(0,Me.of)(e):Oi.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Rt.b)({next:()=>i=!0,complete:()=>{i||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",2))}}))}),(0,Rt.b)(n=>{const i=new Qx(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}))}),jc(l=>{const n=i=>{const o=[];i.routeConfig?.loadComponent&&!i.routeConfig._loadedComponent&&o.push(this.configLoader.loadComponent(i.routeConfig).pipe((0,Rt.b)(c=>{i.component=c}),(0,ct.U)(()=>{})));for(const c of i.children)o.push(...n(c));return o};return(0,Vt.a)(n(l.targetSnapshot.root)).pipe((0,ou.d)(),(0,Dt.q)(1))}),jc(()=>this.afterPreactivation()),(0,ct.U)(l=>{const n=function eT(r,a,e){const t=Fo(r,a._root,e?e._root:void 0);return new Cu(t,a)}(this.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return s={...l,targetRouterState:n}}),(0,Rt.b)(l=>{this.currentUrlTree=l.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(l.urlAfterRedirects,l.rawUrl),this.routerState=l.targetRouterState,"deferred"===this.urlUpdateStrategy&&(l.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,l),this.browserUrlTree=l.urlAfterRedirects)}),((r,a,e)=>(0,ct.U)(t=>(new el(a,t.targetRouterState,t.currentRouterState,e).activate(r),t)))(this.rootContexts,this.routeReuseStrategy,l=>this.triggerEvent(l)),(0,Rt.b)({next(){u=!0},complete(){u=!0}}),Ha(()=>{u||d||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),(0,Xi.K)(l=>{if(d=!0,Dc(l)){Zf(l)||(this.navigated=!0,this.restoreHistory(s,!0));const n=new gu(s.id,this.serializeUrl(s.extractedUrl),l.message,l.cancellationCode);if(t.next(n),Zf(l)){const i=this.urlHandlingStrategy.merge(l.url,this.rawUrlTree),o={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Wo(s.source)};this.scheduleNavigation(i,"imperative",null,o,{resolve:s.resolve,reject:s.reject,promise:s.promise})}else s.resolve(!1)}else{this.restoreHistory(s,!0);const n=new $f(s.id,this.serializeUrl(s.extractedUrl),l,s.targetSnapshot??void 0);t.next(n);try{s.resolve(this.errorHandler(l))}catch(i){s.reject(i)}}return Oi.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const s={replaceUrl:!0},u=e.state?.navigationId?e.state:null;if(u){const l={...u};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const d=this.parseUrl(e.url);this.scheduleNavigation(d,t,u,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(ja),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:s,queryParams:u,fragment:d,queryParamsHandling:l,preserveFragment:n}=t,i=s||this.routerState.root,o=n?this.currentUrlTree.fragment:d;let c=null;switch(l){case"merge":c={...this.currentUrlTree.queryParams,...u};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=u||null}return null!==c&&(c=this.removeEmptyProps(c)),Uf(i,this.currentUrlTree,e,c,o??null)}navigateByUrl(e,t={skipLocationChange:!1}){const s=Pr(e)?e:this.parseUrl(e),u=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(u,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function uT(r){for(let a=0;a{const u=e[s];return null!=u&&(t[s]=u),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new fn(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,s,u,d){if(this.disposed)return Promise.resolve(!1);let l,n,i;d?(l=d.resolve,n=d.reject,i=d.promise):i=new Promise((h,m)=>{l=h,n=m});const o=++this.navigationId;let c;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),c=s&&s.\u0275routerPageId?s.\u0275routerPageId:u.replaceUrl||u.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):c=0,this.setTransition({id:o,targetPageId:c,source:t,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:u,resolve:l,reject:n,promise:i,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),i.catch(h=>Promise.reject(h))}setBrowserUrl(e,t){const s=this.urlSerializer.serialize(e),u={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(s)||t.extras.replaceUrl?this.location.replaceState(s,"",u):this.location.go(s,"",u)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===s?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,s){const u=new gu(e.id,this.serializeUrl(e.extractedUrl),t,s);this.triggerEvent(u),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return r.\u0275fac=function(e){p.$Z()},r.\u0275prov=p.Yz7({token:r,factory:function(){return Em()},providedIn:"root"}),r})();function Wo(r){return"imperative"!==r}let $o=(()=>{class r{constructor(e,t,s,u,d){this.router=e,this.route=t,this.tabIndexAttribute=s,this.renderer=u,this.el=d,this.commands=null,this.onChanges=new He.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,s=this.el.nativeElement;null!==e?t.setAttribute(s,"tabindex",e):t.removeAttribute(s,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,p.D6c)(this.skipLocationChange),replaceUrl:(0,p.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,p.D6c)(this.preserveFragment)})}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(yi),p.Y36(jn),p.$8M("tabindex"),p.Y36(p.Qsj),p.Y36(p.SBq))},r.\u0275dir=p.lG2({type:r,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&p.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[p.TTD]}),r})(),nl=(()=>{class r{constructor(e,t,s){this.router=e,this.route=t,this.locationStrategy=s,this.commands=null,this.href=null,this.onChanges=new He.x,this.subscription=e.events.subscribe(u=>{u instanceof fn&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,s,u,d){if(0!==e||t||s||u||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const l={skipLocationChange:(0,p.D6c)(this.skipLocationChange),replaceUrl:(0,p.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,l),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,p.D6c)(this.preserveFragment)})}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(yi),p.Y36(jn),p.Y36(M.S$))},r.\u0275dir=p.lG2({type:r,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&p.NdJ("click",function(u){return t.onClick(u.button,u.ctrlKey,u.shiftKey,u.altKey,u.metaKey)}),2&e&&p.uIk("target",t.target)("href",t.href,p.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[p.TTD]}),r})();class Hm{}let Rm=(()=>{class r{preload(e,t){return(0,Me.of)(null)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),qc=(()=>{class r{constructor(e,t,s,u,d){this.router=e,this.injector=s,this.preloadingStrategy=u,this.loader=d}setUpPreloading(){this.subscription=this.router.events.pipe((0,ge.h)(e=>e instanceof fn),(0,Vn.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const s=[];for(const u of t){u.providers&&!u._injector&&(u._injector=(0,p.MMx)(u.providers,e,`Route: ${u.path}`));const d=u._injector??e,l=u._loadedInjector??d;u.loadChildren&&!u._loadedRoutes&&void 0===u.canLoad||u.loadComponent&&!u._loadedComponent?s.push(this.preloadConfig(d,u)):(u.children||u._loadedRoutes)&&s.push(this.processRoutes(l,u.children??u._loadedRoutes))}return(0,$e.D)(s).pipe((0,yc.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let s;s=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Me.of)(null);const u=s.pipe((0,Hi.z)(d=>null===d?(0,Me.of)(void 0):(t._loadedRoutes=d.routes,t._loadedInjector=d.injector,this.processRoutes(d.injector??e,d.routes))));if(t.loadComponent&&!t._loadedComponent){const d=this.loader.loadComponent(t);return(0,$e.D)([u,d]).pipe((0,yc.J)())}return u})}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(yi),p.LFG(p.Sil),p.LFG(p.lqb),p.LFG(Hm),p.LFG(Yt))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();const Fw=new p.OlP("");let Uw=(()=>{class r{constructor(e,t,s={}){this.router=e,this.viewportScroller=t,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Qs?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof fn&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof fi&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new fi(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return r.\u0275fac=function(e){p.$Z()},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();const Bu=new p.OlP("ROUTER_FORROOT_GUARD"),oa=new p.OlP(""),qw=[M.Ye,{provide:Sc,useClass:cu},{provide:yi,useFactory:Em},Rc,{provide:jn,useFactory:function Ou(r){return r.routerState.root},deps:[yi]},Yt];function zc(){return new p.PXZ("Router",yi)}let Gc=(()=>{class r{constructor(e){}static forRoot(e,t){return{ngModule:r,providers:[qw,[],$c(e),{provide:Bu,useFactory:Pm,deps:[[yi,new p.FiY,new p.tp0]]},{provide:Uc,useValue:t||{}},t?.useHash?{provide:M.S$,useClass:M.Do}:{provide:M.S$,useClass:M.b0},{provide:Fw,useFactory:()=>{const r=(0,p.f3M)(yi),a=(0,p.f3M)(M.EM),e=(0,p.f3M)(Uc);return e.scrollOffset&&a.setOffset(e.scrollOffset),new Uw(r,a,e)}},t?.preloadingStrategy?$w(t.preloadingStrategy):[],{provide:p.PXZ,multi:!0,useFactory:zc},t?.initialNavigation?km(t):[],[{provide:Im,useFactory:zw},{provide:p.tb,multi:!0,useExisting:Im}]]}}static forChild(e){return{ngModule:r,providers:[$c(e)]}}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(Bu,8))},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({}),r})();function Pm(r){return"guarded"}function $c(r){return[{provide:Vu,multi:!0,useValue:r}]}function zw(){const r=(0,p.f3M)(p.zs3);return a=>{const e=r.get(p.z2F);if(a!==e.components[0])return;const t=r.get(yi),s=r.get(Vm);1===r.get(ju)&&t.initialNavigation(),r.get(oa,null,p.XFs.Optional)?.setUpPreloading(),r.get(Fw,null,p.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),s.next(),s.complete()}}const Im=new p.OlP("");function km(r){return["disabled"===r.initialNavigation?[{provide:p.ip1,multi:!0,useFactory:()=>{const r=(0,p.f3M)(yi);return()=>{r.setUpLocationChangeListener()}}},{provide:ju,useValue:2}]:[],"enabledBlocking"===r.initialNavigation?[{provide:ju,useValue:0},{provide:p.ip1,multi:!0,deps:[p.zs3],useFactory:r=>{const a=r.get(M.V_,Promise.resolve(null));let e=!1;return()=>a.then(()=>new Promise(s=>{const u=r.get(yi),d=r.get(Vm);(function t(s){r.get(yi).events.pipe((0,ge.h)(d=>d instanceof fn||d instanceof gu||d instanceof $f),(0,ct.U)(d=>d instanceof fn||d instanceof gu&&(0===d.code||1===d.code)&&null),(0,ge.h)(d=>null!==d),(0,Dt.q)(1)).subscribe(()=>{s()})})(()=>{s(!0),e=!0}),u.afterPreactivation=()=>(s(!0),e||d.closed?(0,Me.of)(void 0):d),u.initialNavigation()}))}}]:[]]}const Vm=new p.OlP("",{factory:()=>new He.x}),ju=new p.OlP("",{providedIn:"root",factory:()=>1});function $w(r){return[qc,{provide:oa,useExisting:qc},{provide:Hm,useExisting:r}]}let Uu;try{Uu=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Uu=!1}let Yo,Jt=(()=>{class r{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,M.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Uu)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(p.Lbi))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Jo=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Bm(){if(Yo)return Yo;if("object"!=typeof document||!document)return Yo=new Set(Jo),Yo;let r=document.createElement("input");return Yo=new Set(Jo.filter(a=>(r.setAttribute("type",a),r.type===a))),Yo}let dr,Nu,sa,qu;function ur(r){return function rl(){if(null==dr&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dr=!0}))}finally{dr=dr||!1}return dr}()?r:!!r.capture}function Om(){if(null==sa){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return sa=!1,sa;if("scrollBehavior"in document.documentElement.style)sa=!0;else{const r=Element.prototype.scrollTo;sa=!!r&&!/\{\s*\[native code\]\s*\}/.test(r.toString())}}return sa}function al(){if("object"!=typeof document||!document)return 0;if(null==Nu){const r=document.createElement("div"),a=r.style;r.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",r.appendChild(e),document.body.appendChild(r),Nu=0,0===r.scrollLeft&&(r.scrollLeft=1,Nu=0===r.scrollLeft?1:2),r.remove()}return Nu}function Qc(r){if(function Lm(){if(null==qu){const r=typeof document<"u"?document.head:null;qu=!(!r||!r.createShadowRoot&&!r.attachShadow)}return qu}()){const a=r.getRootNode?r.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function ol(){let r=typeof document<"u"&&document?document.activeElement:null;for(;r&&r.shadowRoot;){const a=r.shadowRoot.activeElement;if(a===r)break;r=a}return r}function Un(r){return r.composedPath?r.composedPath()[0]:r.target}function zu(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function hr(r,...a){return a.length?a.some(e=>r[e]):r.altKey||r.shiftKey||r.ctrlKey||r.metaKey}var ng=E(8372);function Xu(r){return(0,ge.h)((a,e)=>r<=e)}function rg(r,a=Mf.y){return r=r??ag,(0,pn.e)((e,t)=>{let s,u=!0;e.subscribe((0,Xe.x)(t,d=>{const l=a(d);(u||!r(s,l))&&(u=!1,s=l,t.next(d))}))})}function ag(r,a){return r===a}var Sy=E(5032);function gt(r){return(0,pn.e)((a,e)=>{(0,In.Xf)(r).subscribe((0,Xe.x)(e,()=>e.complete(),Sy.Z)),!e.closed&&a.subscribe(e)})}function ze(r){return null!=r&&"false"!=`${r}`}function Pi(r,a=0){return eh(r)?Number(r):a}function eh(r){return!isNaN(parseFloat(r))&&!isNaN(Number(r))}function Xc(r){return Array.isArray(r)?r:[r]}function mi(r){return null==r?"":"string"==typeof r?r:`${r}px`}function li(r){return r instanceof p.SBq?r.nativeElement:r}let th=(()=>{class r{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ey=(()=>{class r{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=li(e);return new ai.y(s=>{const d=this._observeElement(t).subscribe(s);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.x,s=this._mutationObserverFactory.create(u=>t.next(u));s&&s.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:s,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:s}=this._observedElements.get(e);t&&t.disconnect(),s.complete(),this._observedElements.delete(e)}}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(th))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ih=(()=>{class r{constructor(e,t,s){this._contentObserver=e,this._elementRef=t,this._ngZone=s,this.event=new p.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ze(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Pi(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,ng.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(Ey),p.Y36(p.SBq),p.Y36(p.R0b))},r.\u0275dir=p.lG2({type:r,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),r})(),hl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[th]}),r})();const nh=new Set;let Wa,og=(()=>{class r{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Dy}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function My(r){if(!nh.has(r))try{Wa||(Wa=document.createElement("style"),Wa.setAttribute("type","text/css"),document.head.appendChild(Wa)),Wa.sheet&&(Wa.sheet.insertRule(`@media ${r} {body{ }}`,0),nh.add(r))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(Jt))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function Dy(r){return{matches:"all"===r||""===r,media:r,addListener:()=>{},removeListener:()=>{}}}let rh=(()=>{class r{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return sg(Xc(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){const s=sg(Xc(e)).map(d=>this._registerQuery(d).observable);let u=(0,Vt.a)(s);return u=(0,Yi.z)(u.pipe((0,Dt.q)(1)),u.pipe(Xu(1),(0,ng.b)(0))),u.pipe((0,ct.U)(d=>{const l={matches:!1,breakpoints:{}};return d.forEach(({matches:n,query:i})=>{l.matches=l.matches||n,l.breakpoints[i]=n}),l}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),u={observable:new ai.y(d=>{const l=n=>this._zone.run(()=>d.next(n));return t.addListener(l),()=>{t.removeListener(l)}}).pipe(Zi(t),(0,ct.U)(({matches:d})=>({query:e,matches:d})),gt(this._destroySubject)),mql:t};return this._queries.set(e,u),u}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(og),p.LFG(p.R0b))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function sg(r){return r.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}function pl(r,a){return(r.getAttribute(a)||"").match(/\S+/g)||[]}const ca="cdk-describedby-message",ed="cdk-describedby-host";let fl=0,td=(()=>{class r{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+fl++,this._document=e,this._id=(0,p.f3M)(p.AFp)+"-"+fl++}describe(e,t,s){if(!this._canBeDescribed(e,t))return;const u=ah(t,s);"string"!=typeof t?(Py(t,this._id),this._messageRegistry.set(u,{messageElement:t,referenceCount:0})):this._messageRegistry.has(u)||this._createMessageElement(t,s),this._isElementDescribedByMessage(e,u)||this._addMessageReference(e,u)}removeDescription(e,t,s){if(!t||!this._isElementNode(e))return;const u=ah(t,s);if(this._isElementDescribedByMessage(e,u)&&this._removeMessageReference(e,u),"string"==typeof t){const d=this._messageRegistry.get(u);d&&0===d.referenceCount&&this._deleteMessageElement(u)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${ed}="${this._id}"]`);for(let t=0;t0!=s.indexOf(ca));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const s=this._messageRegistry.get(t);(function Hy(r,a,e){const t=pl(r,a);t.some(s=>s.trim()==e.trim())||(t.push(e.trim()),r.setAttribute(a,t.join(" ")))})(e,"aria-describedby",s.messageElement.id),e.setAttribute(ed,this._id),s.referenceCount++}_removeMessageReference(e,t){const s=this._messageRegistry.get(t);s.referenceCount--,function eS(r,a,e){const s=pl(r,a).filter(u=>u!=e.trim());s.length?r.setAttribute(a,s.join(" ")):r.removeAttribute(a)}(e,"aria-describedby",s.messageElement.id),e.removeAttribute(ed)}_isElementDescribedByMessage(e,t){const s=pl(e,"aria-describedby"),u=this._messageRegistry.get(t),d=u&&u.messageElement.id;return!!d&&-1!=s.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const s=null==t?"":`${t}`.trim(),u=e.getAttribute("aria-label");return!(!s||u&&u.trim()===s)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(M.K0),p.LFG(Jt))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function ah(r,a){return"string"==typeof r?`${a||""}/${r}`:r}function Py(r,a){r.id||(r.id=`${ca}-${a}-${fl++}`)}class oh extends class tS{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.x,this._typeaheadSubscription=Qt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.x,this.change=new He.x,a instanceof p.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const s=e.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Rt.b)(e=>this._pressedLetters.push(e)),(0,ng.b)(a),(0,ge.h)(()=>this._pressedLetters.length>0),(0,ct.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let s=1;s!a[u]||this._allowedModifierKeys.indexOf(u)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&s){this.setNextItemActive();break}return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&s){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&s){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}return;default:return void((s||hr(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const s=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof p.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let sh=(()=>{class r{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Zo(r){return!!(r.offsetWidth||r.offsetHeight||"function"==typeof r.getClientRects&&r.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function ky(r){try{return r.frameElement}catch{return null}}(function jy(r){return r.ownerDocument&&r.ownerDocument.defaultView||window}(e));if(t&&(-1===pg(t)||!this.isVisible(t)))return!1;let s=e.nodeName.toLowerCase(),u=pg(e);return e.hasAttribute("contenteditable")?-1!==u:!("iframe"===s||"object"===s||this._platform.WEBKIT&&this._platform.IOS&&!function Oy(r){let a=r.nodeName.toLowerCase(),e="input"===a&&r.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===s?!!e.hasAttribute("controls")&&-1!==u:"video"===s?-1!==u&&(null!==u||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function Ly(r){return!function dg(r){return function By(r){return"input"==r.nodeName.toLowerCase()}(r)&&"hidden"==r.type}(r)&&(function Vy(r){let a=r.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(r)||function id(r){return function ug(r){return"a"==r.nodeName.toLowerCase()}(r)&&r.hasAttribute("href")}(r)||r.hasAttribute("contenteditable")||hg(r))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(Jt))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function hg(r){if(!r.hasAttribute("tabindex")||void 0===r.tabIndex)return!1;let a=r.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function pg(r){if(!hg(r))return null;const a=parseInt(r.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class fg{constructor(a,e,t,s,u=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,u||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const s=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(s)return s}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,Dt.q)(1)).subscribe(a)}}let lh=(()=>{class r{constructor(e,t,s){this._checker=e,this._ngZone=t,this._document=s}create(e,t=!1){return new fg(e,this._checker,this._ngZone,this._document,t)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(sh),p.LFG(p.R0b),p.LFG(M.K0))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function ch(r){return 0===r.buttons||0===r.offsetX&&0===r.offsetY}function kr(r){const a=r.touches&&r.touches[0]||r.changedTouches&&r.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const _g=new p.OlP("cdk-input-modality-detector-options"),bg={ignoreKeys:[18,17,224,91,16]},Li=ur({passive:!0,capture:!0});let Cg=(()=>{class r{constructor(e,t,s,u){this._platform=e,this._mostRecentTarget=null,this._modality=new $t(null),this._lastTouchMs=0,this._onKeydown=d=>{this._options?.ignoreKeys?.some(l=>l===d.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Un(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ch(d)?"keyboard":"mouse"),this._mostRecentTarget=Un(d))},this._onTouchstart=d=>{kr(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Un(d))},this._options={...bg,...u},this.modalityDetected=this._modality.pipe(Xu(1)),this.modalityChanged=this.modalityDetected.pipe(rg()),e.isBrowser&&t.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,Li),s.addEventListener("mousedown",this._onMousedown,Li),s.addEventListener("touchstart",this._onTouchstart,Li)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Li),document.removeEventListener("mousedown",this._onMousedown,Li),document.removeEventListener("touchstart",this._onTouchstart,Li))}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(Jt),p.LFG(p.R0b),p.LFG(M.K0),p.LFG(_g,8))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const uh=new p.OlP("cdk-focus-monitor-default-options"),hh=ur({passive:!0,capture:!0});let Tn=(()=>{class r{constructor(e,t,s,u,d){this._ngZone=e,this._platform=t,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new He.x,this._rootNodeFocusAndBlurListener=l=>{for(let i=Un(l);i;i=i.parentElement)"focus"===l.type?this._onFocus(l,i):this._onBlur(l,i)},this._document=u,this._detectionMode=d?.detectionMode||0}monitor(e,t=!1){const s=li(e);if(!this._platform.isBrowser||1!==s.nodeType)return(0,Me.of)(null);const u=Qc(s)||this._getDocument(),d=this._elementInfo.get(s);if(d)return t&&(d.checkChildren=!0),d.subject;const l={checkChildren:t,subject:new He.x,rootNode:u};return this._elementInfo.set(s,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(e){const t=li(e),s=this._elementInfo.get(t);s&&(s.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(s))}focusVia(e,t,s){const u=li(e);u===this._getDocument().activeElement?this._getClosestElementsInfo(u).forEach(([l,n])=>this._originChanged(l,t,n)):(this._setOrigin(t),"function"==typeof u.focus&&u.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const s=this._elementInfo.get(t),u=Un(e);!s||!s.checkChildren&&t!==u||this._originChanged(t,this._getFocusOrigin(u),s)}_onBlur(e,t){const s=this._elementInfo.get(t);!s||s.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(s,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,s=this._rootNodeFocusListenerCount.get(t)||0;s||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,hh),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,hh)}),this._rootNodeFocusListenerCount.set(t,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(gt(this._stopInputModalityDetector)).subscribe(u=>{this._setOrigin(u,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const s=this._rootNodeFocusListenerCount.get(t);s>1?this._rootNodeFocusListenerCount.set(t,s-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,hh),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,hh),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,s){this._setClasses(e,t),this._emitOrigin(s,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((s,u)=>{(u===e||s.checkChildren&&u.contains(e))&&t.push([u,s])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:s}=this._inputModalityDetector;if("mouse"!==s||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const u=e.labels;if(u)for(let d=0;d{class r{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,p.f3M)(rh).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,s=t&&t.getComputedStyle?t.getComputedStyle(e):null,u=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),u){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(bl,gl,_l),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(bl,gl):2===t&&e.add(bl,_l)}}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(Jt),p.LFG(M.K0))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),$a=(()=>{class r{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(nd))},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[hl]}),r})();const rS=new p.OlP("cdk-dir-doc",{providedIn:"root",factory:function qy(){return(0,p.f3M)(M.K0)}}),zy=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Sn=(()=>{class r{constructor(e){if(this.value="ltr",this.change=new p.vpe,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function Gy(r){const a=r?.toLowerCase()||"";return"auto"===a&&typeof navigator<"u"&&navigator?.language?zy.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(rS,8))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Cl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({}),r})();const cS=new p.OlP("mat-sanity-checks",{providedIn:"root",factory:function lS(){return!0}});let Qe=(()=>{class r{constructor(e,t,s){this._sanityChecks=t,this._document=s,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!zu()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(nd),p.LFG(cS,8),p.LFG(M.K0))},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Cl,Cl]}),r})();function wl(r){return class extends r{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=ze(a)}}}function zi(r,a){return class extends r{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function pr(r){return class extends r{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=ze(a)}}}function ph(r){return class extends r{constructor(...a){super(...a),this.errorState=!1}updateErrorState(){const a=this.errorState,u=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);u!==a&&(this.errorState=u,this.stateChanges.next())}}}const xg=new p.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function fh(){return(0,p.f3M)(p.soG)}});class Nn{constructor(){this._localeChanges=new He.x,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),s=this.isValid(e);return t&&s?!this.compareDate(a,e):t==s}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const qn=new p.OlP("mat-date-formats"),Tg=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function mh(r,a){const e=Array(r);for(let t=0;t{class r extends Nn{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return mh(12,s=>this._format(t,new Date(2017,s,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return mh(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return mh(7,s=>this._format(t,new Date(2017,0,s+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,s){let u=this._createDateWithOverflow(e,t,s);return u.getMonth(),u}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const s=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(s,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let s=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(s)!=((this.getMonth(e)+t)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Tg.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,s){const u=new Date;return u.setFullYear(e,t,s),u.setHours(0,0,0,0),u}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const s=new Date;return s.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),s.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(s)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(xg,8),p.LFG(Jt))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();const Jy={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Sg=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[{provide:Nn,useClass:rd}]}),r})(),Eg=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[{provide:qn,useValue:Jy}],imports:[Sg]}),r})(),ua=(()=>{class r{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Qa=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Qe,Qe]}),r})();class vl{constructor(a,e,t,s=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Mg={enterDuration:225,exitDuration:150},ad=ur({passive:!0}),od=["mousedown","touchstart"],sd=["mouseup","mouseleave","touchend","touchcancel"];class _h{constructor(a,e,t,s){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=li(t))}fadeInRipple(a,e,t={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),u={...Mg,...t.animation};t.centered&&(a=s.left+s.width/2,e=s.top+s.height/2);const d=t.radius||function bh(r,a,e){const t=Math.max(Math.abs(r-e.left),Math.abs(r-e.right)),s=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+s*s)}(a,e,s),l=a-s.left,n=e-s.top,i=u.enterDuration,o=document.createElement("div");o.classList.add("mat-ripple-element"),o.style.left=l-d+"px",o.style.top=n-d+"px",o.style.height=2*d+"px",o.style.width=2*d+"px",null!=t.color&&(o.style.backgroundColor=t.color),o.style.transitionDuration=`${i}ms`,this._containerElement.appendChild(o);const c=window.getComputedStyle(o),m=c.transitionDuration,g="none"===c.transitionProperty||"0s"===m||"0s, 0s"===m,f=new vl(this,o,t,g);o.style.transform="scale3d(1, 1, 1)",f.state=0,t.persistent||(this._mostRecentTransientRipple=f);let w=null;return!g&&(i||u.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const R=()=>this._finishRippleTransition(f),J=()=>this._destroyRipple(f);o.addEventListener("transitionend",R),o.addEventListener("transitioncancel",J),w={onTransitionEnd:R,onTransitionCancel:J}}),this._activeRipples.set(f,w),(g||!i)&&this._finishRippleTransition(f),f}fadeOutRipple(a){if(2===a.state||3===a.state)return;const e=a.element,t={...Mg,...a.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=2,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=li(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(od))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(sd),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)}_startFadeOutTransition(a){const e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=1,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){const e=this._activeRipples.get(a)??null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=3,null!==e&&(a.element.removeEventListener("transitionend",e.onTransitionEnd),a.element.removeEventListener("transitioncancel",e.onTransitionCancel)),a.element.remove()}_onMousedown(a){const e=ch(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,ad)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(od.forEach(a=>{this._triggerElement.removeEventListener(a,this,ad)}),this._pointerUpEventsRegistered&&sd.forEach(a=>{this._triggerElement.removeEventListener(a,this,ad)}))}}const Hg=new p.OlP("mat-ripple-global-options");let Ya=(()=>{class r{constructor(e,t,s,u,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=u||{},this._rippleRenderer=new _h(this,t,e,s)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,s){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...s}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36(Jt),p.Y36(Hg,8),p.Y36(p.QbO,8))},r.\u0275dir=p.lG2({type:r,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&p.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),r})(),En=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Qe,Qe]}),r})(),Ch=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Qe]}),r})(),wh=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[En,M.ez,Qe,Ch]}),r})();const Ig=["mat-button",""],tv=["*"],rv=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],kg=zi(wl(pr(class{constructor(r){this._elementRef=r}})));let ji=(()=>{class r extends kg{constructor(e,t,s){super(e),this._focusMonitor=t,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const u of rv)this._hasHostAttributes(u)&&this._getHostElement().classList.add(u);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.SBq),p.Y36(Tn),p.Y36(p.QbO,8))},r.\u0275cmp=p.Xpm({type:r,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&p.Gf(Ya,5),2&e){let s;p.iGM(s=p.CRH())&&(t.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(p.uIk("disabled",t.disabled||null),p.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[p.qOj],attrs:Ig,ngContentSelectors:tv,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(p.F$t(),p.TgZ(0,"span",0),p.Hsn(1),p.qZA(),p._UZ(2,"span",1)(3,"span",2)),2&e&&(p.xp6(2),p.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),p.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Ya],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),r})(),vi=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[En,Qe,Qe]}),r})();var yh=E(1144);const av=["addListener","removeListener"],ov=["addEventListener","removeEventListener"],_S=["on","off"];function Ja(r,a,e,t){if((0,It.m)(e)&&(t=e,e=void 0),t)return Ja(r,a,e).pipe((0,Ma.Z)(t));const[s,u]=function vh(r){return(0,It.m)(r.addEventListener)&&(0,It.m)(r.removeEventListener)}(r)?ov.map(d=>l=>r[d](a,l,e)):function sv(r){return(0,It.m)(r.addListener)&&(0,It.m)(r.removeListener)}(r)?av.map(Vg(r,a)):function lv(r){return(0,It.m)(r.on)&&(0,It.m)(r.off)}(r)?_S.map(Vg(r,a)):[];if(!s&&(0,yh.z)(r))return(0,Hi.z)(d=>Ja(d,a,e))((0,In.Xf)(r));if(!s)throw new TypeError("Invalid event target");return new ai.y(d=>{const l=(...n)=>d.next(1u(l)})}function Vg(r,a){return e=>t=>r[e](a,t)}var Bg=E(4408);const Al={schedule(r){let a=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=Al;t&&(a=t.requestAnimationFrame,e=t.cancelAnimationFrame);const s=a(u=>{e=void 0,r(u)});return new Qt.w0(()=>e?.(s))},requestAnimationFrame(...r){const{delegate:a}=Al;return(a?.requestAnimationFrame||requestAnimationFrame)(...r)},cancelAnimationFrame(...r){const{delegate:a}=Al;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...r)},delegate:void 0};var cd=E(7565);const Ah=new class cv extends cd.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;a=a||t.shift();do{if(s=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,s){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw s}}}(class ld extends Bg.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=Al.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(s=>s.id===e)||(Al.cancelAnimationFrame(e),a._scheduled=void 0)}});let jg,Lg=1;const xh={};function dd(r){return r in xh&&(delete xh[r],!0)}const bS={setImmediate(r){const a=Lg++;return xh[a]=!0,jg||(jg=Promise.resolve()),jg.then(()=>dd(a)&&r()),a},clearImmediate(r){dd(r)}},{setImmediate:Fg,clearImmediate:Ug}=bS,xl={setImmediate(...r){const{delegate:a}=xl;return(a?.setImmediate||Fg)(...r)},clearImmediate(r){const{delegate:a}=xl;return(a?.clearImmediate||Ug)(r)},delegate:void 0},zn=new class Th extends cd.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;a=a||t.shift();do{if(s=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,s){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw s}}}(class Ng extends Bg.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=xl.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(s=>s.id===e)||(xl.clearImmediate(e),a._scheduled=void 0)}});var Tl=E(4986),qg=E(2805);function es(r,a=Tl.z){return function Sl(r){return(0,pn.e)((a,e)=>{let t=!1,s=null,u=null,d=!1;const l=()=>{if(u?.unsubscribe(),u=null,t){t=!1;const i=s;s=null,e.next(i)}d&&e.complete()},n=()=>{u=null,d&&e.complete()};a.subscribe((0,Xe.x)(e,i=>{t=!0,s=i,u||(0,In.Xf)(r(i)).subscribe(u=(0,Xe.x)(e,l,n))},()=>{d=!0,(!t||!u||u.closed)&&e.complete()}))})}(()=>(0,qg.H)(r,a))}class Gg{}function El(r){return r&&"function"==typeof r.connect}class Ml extends Gg{constructor(a){super(),this._data=a}connect(){return Kt(this._data)?this._data:(0,Me.of)(this._data)}disconnect(){}}class Wg{applyChanges(a,e,t,s,u){a.forEachOperation((d,l,n)=>{let i,o;if(null==d.previousIndex){const c=t(d,l,n);i=e.createEmbeddedView(c.templateRef,c.context,c.index),o=1}else null==n?(e.remove(l),o=3):(i=e.get(l),e.move(i,n),o=2);u&&u({context:i?.context,operation:o,record:d})})}detach(){}}class $g{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(a,e,t,s,u){a.forEachOperation((d,l,n)=>{let i,o;null==d.previousIndex?(i=this._insertView(()=>t(d,l,n),n,e,s(d)),o=i?1:0):null==n?(this._detachAndCacheView(l,e),o=3):(i=this._moveView(l,n,e,s(d)),o=2),u&&u({context:i?.context,operation:o,record:d})})}detach(){for(const a of this._viewCache)a.destroy();this._viewCache=[]}_insertView(a,e,t,s){const u=this._insertViewFromCache(e,t);if(u)return void(u.context.$implicit=s);const d=a();return t.createEmbeddedView(d.templateRef,d.context,d.index)}_detachAndCacheView(a,e){const t=e.detach(a);this._maybeCacheView(t,e)}_moveView(a,e,t,s){const u=t.get(a);return t.move(u,e),u.context.$implicit=s,u}_maybeCacheView(a,e){if(this._viewCache.length0?u/this._itemSize:0;if(e.end>s){const n=Math.ceil(t/this._itemSize),i=Math.max(0,Math.min(d,s-n));d!=i&&(d=i,u=i*this._itemSize,e.start=Math.floor(d)),e.end=Math.max(0,Math.min(s,e.start+n))}const l=u-e.start*this._itemSize;if(l0&&(e.end=Math.min(s,e.end+i),e.start=Math.max(0,Math.floor(d-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(d))}}function Mh(r){return r._scrollStrategy}let fv=(()=>{class r{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Qg(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=Pi(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=Pi(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=Pi(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=p.lG2({type:r,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[p._Bn([{provide:pv,useFactory:Mh,deps:[(0,p.Gpc)(()=>r)]}]),p.TTD]}),r})(),Dl=(()=>{class r{constructor(e,t,s){this._ngZone=e,this._platform=t,this._scrolled=new He.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ai.y(t=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(es(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Me.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const s=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,ge.h)(u=>!u||s.indexOf(u)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((s,u)=>{this._scrollableContainsElement(u,e)&&t.push(u)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let s=li(t),u=e.getElementRef().nativeElement;do{if(s==u)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ja(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(p.R0b),p.LFG(Jt),p.LFG(M.K0,8))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Yg=(()=>{class r{constructor(e,t,s,u){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=s,this.dir=u,this._destroyed=new He.x,this._elementScrolled=new ai.y(d=>this.ngZone.runOutsideAngular(()=>Ja(this.elementRef.nativeElement,"scroll").pipe(gt(this._destroyed)).subscribe(d)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),s&&0!=al()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==al()?e.left=e.right:1==al()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;Om()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",s="right",u=this.elementRef.nativeElement;if("top"==e)return u.scrollTop;if("bottom"==e)return u.scrollHeight-u.clientHeight-u.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?s:t:"end"==e&&(e=d?t:s),d&&2==al()?e==t?u.scrollWidth-u.clientWidth-u.scrollLeft:u.scrollLeft:d&&1==al()?e==t?u.scrollLeft+u.scrollWidth-u.clientWidth:-u.scrollLeft:e==t?u.scrollLeft:u.scrollWidth-u.clientWidth-u.scrollLeft}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.SBq),p.Y36(Dl),p.Y36(p.R0b),p.Y36(Sn,8))},r.\u0275dir=p.lG2({type:r,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),r})(),ts=(()=>{class r{constructor(e,t,s){this._platform=e,this._change=new He.x,this._changeListener=u=>{this._change.next(u)},this._document=s,t.runOutsideAngular(()=>{if(e.isBrowser){const u=this._getWindow();u.addEventListener("resize",this._changeListener),u.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+t,height:s,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),s=e.documentElement,u=s.getBoundingClientRect();return{top:-u.top||e.body.scrollTop||t.scrollY||s.scrollTop||0,left:-u.left||e.body.scrollLeft||t.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(es(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(Jt),p.LFG(p.R0b),p.LFG(M.K0,8))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const gv=new p.OlP("VIRTUAL_SCROLLABLE");let Jg=(()=>{class r extends Yg{constructor(e,t,s,u){super(e,t,s,u)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.SBq),p.Y36(Dl),p.Y36(p.R0b),p.Y36(Sn,8))},r.\u0275dir=p.lG2({type:r,features:[p.qOj]}),r})();const Za=typeof requestAnimationFrame<"u"?Ah:zn;let _v=(()=>{class r extends Jg{constructor(e,t,s,u,d,l,n,i){super(e,l,s,d),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=u,this.scrollable=i,this._detachedSubject=new He.x,this._renderedRangeSubject=new He.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ai.y(o=>this._scrollStrategy.scrolledIndexChange.subscribe(c=>Promise.resolve().then(()=>this.ngZone.run(()=>o.next(c))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Qt.w0.EMPTY,this._viewportChanges=n.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=ze(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Zi(null),es(0,Za)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(gt(this._detachedSubject)).subscribe(t=>{const s=t.length;s!==this._dataLength&&(this._dataLength=s,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function ud(r,a){return r.start==a.start&&r.end==a.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const u="horizontal"==this.orientation,d=u?"X":"Y";let n=`translate${d}(${Number((u&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(n+=` translate${d}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=n&&(this._renderedContentTransform=n,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const s={behavior:t};"horizontal"===this.orientation?s.start=e:s.top=e,this.scrollable.scrollTo(s)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?s=>super.measureScrollOffset(s):s=>this.scrollable.measureScrollOffset(s),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const s="left",u="right",d="rtl"==this.dir?.value;t="start"==e?d?u:s:"end"==e?d?s:u:e||("horizontal"===this.orientation?"left":"top");const l=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-l}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(p.R0b),p.Y36(pv,8),p.Y36(Sn,8),p.Y36(Dl),p.Y36(ts),p.Y36(gv,8))},r.\u0275cmp=p.Xpm({type:r,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&p.Gf(uv,7),2&e){let s;p.iGM(s=p.CRH())&&(t._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&p.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[p._Bn([{provide:Yg,useFactory:(a,e)=>a||e,deps:[Jg,r]}]),p.qOj],ngContentSelectors:hv,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(p.F$t(),p.TgZ(0,"div",0,1),p.Hsn(2),p.qZA(),p._UZ(3,"div",2)),2&e&&(p.xp6(3),p.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),r})();function is(r,a,e){if(!e.getBoundingClientRect)return 0;const s=e.getBoundingClientRect();return"horizontal"===r?"start"===a?s.left:s.right:"start"===a?s.top:s.bottom}let bv=(()=>{class r{constructor(e,t,s,u,d,l){this._viewContainerRef=e,this._template=t,this._differs=s,this._viewRepeater=u,this._viewport=d,this.viewChange=new He.x,this._dataSourceChanges=new He.x,this.dataStream=this._dataSourceChanges.pipe(Zi(null),function zg(){return(0,pn.e)((r,a)=>{let e,t=!1;r.subscribe((0,Xe.x)(a,s=>{const u=e;e=s,t&&a.next([u,s]),t=!0}))})}(),(0,oi.w)(([n,i])=>this._changeDataSource(n,i)),Ht(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new He.x,this.dataStream.subscribe(n=>{this._data=n,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(gt(this._destroyed)).subscribe(n=>{this._renderedRange=n,this.viewChange.observers.length&&l.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,El(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new Ml(Kt(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,s)=>e(t+(this._renderedRange?this._renderedRange.start:0),s):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Pi(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const s=e.start-this._renderedRange.start,u=e.end-e.start;let d,l;for(let n=0;n-1;n--){const i=this._viewContainerRef.get(n+s);if(i&&i.rootNodes.length){l=i.rootNodes[i.rootNodes.length-1];break}}return d&&l?is(t,"end",l)-is(t,"start",d):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,Me.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const s=this._viewContainerRef.get(t);s.context.index=this._renderedRange.start+t,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(u,d,l)=>this._getEmbeddedViewArgs(u,l),u=>u.item),e.forEachIdentityChange(u=>{this._viewContainerRef.get(u.currentIndex).context.$implicit=u.item});const t=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const u=this._viewContainerRef.get(s);u.context.index=this._renderedRange.start+s,u.context.count=t,this._updateComputedContextProperties(u.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.s_b),p.Y36(p.Rgc),p.Y36(p.ZZ4),p.Y36(Ka),p.Y36(_v,4),p.Y36(p.R0b))},r.\u0275dir=p.lG2({type:r,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[p._Bn([{provide:Ka,useClass:$g}])]}),r})(),Vr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({}),r})(),Gi=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Cl,Vr,Cl,Vr]}),r})();class ha{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class Br extends ha{constructor(a,e,t,s){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=s}}class pa extends ha{constructor(a,e,t,s){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=s}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class rs extends ha{constructor(a){super(),this.element=a instanceof p.SBq?a.nativeElement:a}}class fa{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof Br?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof pa?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof rs?(this._attachedPortal=a,this.attachDomPortal(a)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class as extends fa{constructor(a,e,t,s,u){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=s,this.attachDomPortal=d=>{const l=d.element,n=this._document.createComment("dom-portal");l.parentNode.insertBefore(n,l),this.outletElement.appendChild(l),this._attachedPortal=d,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(l,n)})},this._document=u}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let s;return a.viewContainerRef?(s=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=t.create(a.injector||this._defaultInjector||p.zs3.NULL),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=a,s}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(s=>this.outletElement.appendChild(s)),t.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(t);-1!==s&&e.remove(s)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let pd=(()=>{class r extends fa{constructor(e,t,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new p.vpe,this.attachDomPortal=u=>{const d=u.element,l=this._document.createComment("dom-portal");u.setAttachedHost(this),d.parentNode.insertBefore(l,d),this._getRootNode().appendChild(d),this._attachedPortal=u,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(d,l)})},this._document=s}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,u=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(u,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]),super.setDisposeFn(()=>d.destroy()),this._attachedPortal=e,this._attachedRef=d,this.attached.emit(d),d}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p._Vd),p.Y36(p.s_b),p.Y36(M.K0))},r.\u0275dir=p.lG2({type:r,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[p.qOj]}),r})(),Or=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({}),r})();var an=E(6451);const Rh=Om();class Xg{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=mi(-this._previousScrollPosition.left),a.style.top=mi(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,s=this._document.body.style,u=t.scrollBehavior||"",d=s.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),Rh&&(t.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Rh&&(t.scrollBehavior=u,s.scrollBehavior=d)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class Av{constructor(a,e,t,s){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class e_{enable(){}disable(){}attach(){}}function Ph(r,a){return a.some(e=>r.bottome.bottom||r.righte.right)}function Ih(r,a){return a.some(e=>r.tope.bottom||r.lefte.right)}class xv{constructor(a,e,t,s){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=s,this._scrollSubscription=null}attach(a){this._overlayRef=a}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:s}=this._viewportRuler.getViewportSize();Ph(e,[{width:t,height:s,bottom:s,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let t_=(()=>{class r{constructor(e,t,s,u){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=s,this.noop=()=>new e_,this.close=d=>new Av(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new Xg(this._viewportRuler,this._document),this.reposition=d=>new xv(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=u}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(Dl),p.LFG(ts),p.LFG(p.R0b),p.LFG(M.K0))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Il{constructor(a){if(this.scrollStrategy=new e_,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class fd{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}let r_=(()=>{class r{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(M.K0))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),md=(()=>{class r extends r_{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=s=>{const u=this._attachedOverlays;for(let d=u.length-1;d>-1;d--)if(u[d]._keydownEvents.observers.length>0){const l=u[d]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(M.K0),p.LFG(p.R0b,8))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),gd=(()=>{class r extends r_{constructor(e,t,s){super(e),this._platform=t,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=u=>{this._pointerDownEventTarget=Un(u)},this._clickListener=u=>{const d=Un(u),l="click"===u.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:d;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const o=n[i];if(o._outsidePointerEvents.observers.length<1||!o.hasAttached())continue;if(o.overlayElement.contains(d)||o.overlayElement.contains(l))break;const c=o._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(u)):c.next(u)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(M.K0),p.LFG(Jt),p.LFG(p.R0b,8))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),os=(()=>{class r{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||zu()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let u=0;uthis._backdropClick.next(c),this._backdropTransitionendHandler=c=>{this._disposeBackdrop(c.target)},this._keydownEvents=new He.x,this._outsidePointerEvents=new He.x,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Dt.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){const a=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,a&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config={...this._config,...a},this._updateElementSize()}setDirection(a){this._config={...this._config,direction:a},this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=mi(this._config.width),a.height=mi(this._config.height),a.minWidth=mi(this._config.minWidth),a.minHeight=mi(this._config.minHeight),a.maxWidth=mi(this._config.maxWidth),a.maxHeight=mi(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(a){if(this._animationsDisabled)return void this._disposeBackdrop(a);a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",this._backdropTransitionendHandler)}),a.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(a)},500))}}_toggleClasses(a,e,t){const s=Xc(e||[]).filter(u=>!!u);s.length&&(t?a.classList.add(...s):a.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(gt((0,an.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const _d="cdk-overlay-connected-position-bounding-box",a_=/([A-Za-z%]+)$/;class o_{constructor(a,e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new He.x,this._resizeSubscription=Qt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(a)}get positions(){return this._preferredPositions}attach(a){this._validatePositions(),a.hostElement.classList.add(_d),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,s=this._containerRect,u=[];let d;for(let l of this._preferredPositions){let n=this._getOriginPoint(a,s,l),i=this._getOverlayPoint(n,e,l),o=this._getOverlayFit(i,e,t,l);if(o.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,n);this._canFitWithFlexibleDimensions(o,i,t)?u.push({position:l,origin:n,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(n,l)}):(!d||d.overlayFit.visibleArean&&(n=o,l=i)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(d.position,d.originPoint);this._applyPosition(d.position,d.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Lr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(_d),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let s,u;if("center"==t.originX)s=a.left+a.width/2;else{const d=this._isRtl()?a.right:a.left,l=this._isRtl()?a.left:a.right;s="start"==t.originX?d:l}return e.left<0&&(s-=e.left),u="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(u-=e.top),{x:s,y:u}}_getOverlayPoint(a,e,t){let s,u;return s="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,u="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+s,y:a.y+u}}_getOverlayFit(a,e,t,s){const u=s_(e);let{x:d,y:l}=a,n=this._getOffset(s,"x"),i=this._getOffset(s,"y");n&&(d+=n),i&&(l+=i);let h=0-l,m=l+u.height-t.height,g=this._subtractOverflows(u.width,0-d,d+u.width-t.width),f=this._subtractOverflows(u.height,h,m),w=g*f;return{visibleArea:w,isCompletelyWithinViewport:u.width*u.height===w,fitsInViewportVertically:f===u.height,fitsInViewportHorizontally:g==u.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const s=t.bottom-e.y,u=t.right-e.x,d=bd(this._overlayRef.getConfig().minHeight),l=bd(this._overlayRef.getConfig().minWidth),i=a.fitsInViewportHorizontally||null!=l&&l<=u;return(a.fitsInViewportVertically||null!=d&&d<=s)&&i}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const s=s_(e),u=this._viewportRect,d=Math.max(a.x+s.width-u.width,0),l=Math.max(a.y+s.height-u.height,0),n=Math.max(u.top-t.top-a.y,0),i=Math.max(u.left-t.left-a.x,0);let o=0,c=0;return o=s.width<=u.width?i||-d:a.xg&&!this._isInitialRender&&!this._growAfterOpen&&(d=a.y-g/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)h=t.width-a.x+this._viewportMargin,o=a.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)c=a.x,o=t.right-a.x;else{const m=Math.min(t.right-a.x+t.left,a.x),g=this._lastBoundingBoxSize.width;o=2*m,c=a.x-m,o>g&&!this._isInitialRender&&!this._growAfterOpen&&(c=a.x-g/2)}return{top:d,left:c,bottom:l,right:h,width:o,height:u}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const u=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;s.height=mi(t.height),s.top=mi(t.top),s.bottom=mi(t.bottom),s.width=mi(t.width),s.left=mi(t.left),s.right=mi(t.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",u&&(s.maxHeight=mi(u)),d&&(s.maxWidth=mi(d))}this._lastBoundingBoxSize=t,Lr(this._boundingBox.style,s)}_resetBoundingBoxStyles(){Lr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Lr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},s=this._hasExactPosition(),u=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(s){const o=this._viewportRuler.getViewportScrollPosition();Lr(t,this._getExactOverlayY(e,a,o)),Lr(t,this._getExactOverlayX(e,a,o))}else t.position="static";let l="",n=this._getOffset(e,"x"),i=this._getOffset(e,"y");n&&(l+=`translateX(${n}px) `),i&&(l+=`translateY(${i}px)`),t.transform=l.trim(),d.maxHeight&&(s?t.maxHeight=mi(d.maxHeight):u&&(t.maxHeight="")),d.maxWidth&&(s?t.maxWidth=mi(d.maxWidth):u&&(t.maxWidth="")),Lr(this._pane.style,t)}_getExactOverlayY(a,e,t){let s={top:"",bottom:""},u=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),"bottom"===a.overlayY?s.bottom=this._document.documentElement.clientHeight-(u.y+this._overlayRect.height)+"px":s.top=mi(u.y),s}_getExactOverlayX(a,e,t){let d,s={left:"",right:""},u=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),d=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===d?s.right=this._document.documentElement.clientWidth-(u.x+this._overlayRect.width)+"px":s.left=mi(u.x),s}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ih(a,t),isOriginOutsideView:Ph(a,t),isOverlayClipped:Ih(e,t),isOverlayOutsideView:Ph(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,s)=>t-Math.max(s,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?a.offsetX??this._offsetX:a.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&Xc(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof p.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function Lr(r,a){for(let e in a)a.hasOwnProperty(e)&&(r[e]=a[e]);return r}function bd(r){if("number"!=typeof r&&null!=r){const[a,e]=r.split(a_);return e&&"px"!==e?null:parseFloat(a)}return r||null}function s_(r){return{top:Math.floor(r.top),right:Math.floor(r.right),bottom:Math.floor(r.bottom),left:Math.floor(r.left),width:Math.floor(r.width),height:Math.floor(r.height)}}const Vh="cdk-global-overlay-wrapper";class l_{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(Vh),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:s,height:u,maxWidth:d,maxHeight:l}=t,n=!("100%"!==s&&"100vw"!==s||d&&"100%"!==d&&"100vw"!==d),i=!("100%"!==u&&"100vh"!==u||l&&"100%"!==l&&"100vh"!==l),o=this._xPosition,c=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let m="",g="",f="";n?f="flex-start":"center"===o?(f="center",h?g=c:m=c):h?"left"===o||"end"===o?(f="flex-end",m=c):("right"===o||"start"===o)&&(f="flex-start",g=c):"left"===o||"start"===o?(f="flex-start",m=c):("right"===o||"end"===o)&&(f="flex-end",g=c),a.position=this._cssPosition,a.marginLeft=n?"0":m,a.marginTop=i?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=n?"0":g,e.justifyContent=f,e.alignItems=i?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Vh),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let Ev=(()=>{class r{constructor(e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u}global(){return new l_}flexibleConnectedTo(e){return new o_(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(ts),p.LFG(M.K0),p.LFG(Jt),p.LFG(os))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),c_=0,gn=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c,h,m){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=s,this._positionBuilder=u,this._keyboardDispatcher=d,this._injector=l,this._ngZone=n,this._document=i,this._directionality=o,this._location=c,this._outsideClickDispatcher=h,this._animationsModuleType=m}create(e){const t=this._createHostElement(),s=this._createPaneElement(t),u=this._createPortalOutlet(s),d=new Il(e);return d.direction=d.direction||this._directionality.value,new ss(u,t,s,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+c_++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(p.z2F)),new as(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(t_),p.LFG(os),p.LFG(p._Vd),p.LFG(Ev),p.LFG(md),p.LFG(p.zs3),p.LFG(p.R0b),p.LFG(M.K0),p.LFG(Sn),p.LFG(M.Ye),p.LFG(gd),p.LFG(p.QbO,8))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();const h_={provide:new p.OlP("cdk-connected-overlay-scroll-strategy"),deps:[gn],useFactory:function u_(r){return()=>r.scrollStrategies.reposition()}};let Xa=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[gn,h_],imports:[Cl,Or,Gi,Gi]}),r})();class Oh{}const ma="*";function ci(r,a){return{type:7,name:r,definitions:a,options:{}}}function vt(r,a=null){return{type:4,styles:a,timings:r}}function Lh(r,a=null){return{type:3,steps:r,options:a}}function f_(r,a=null){return{type:2,steps:r,options:a}}function Ie(r){return{type:6,styles:r,offset:null}}function mt(r,a,e){return{type:0,name:r,styles:a,options:e}}function bt(r,a,e=null){return{type:1,expr:r,animation:a,options:e}}function Cd(r=null){return{type:9,options:r}}function kl(r,a,e=null){return{type:11,selector:r,animation:a,options:e}}function m_(r){Promise.resolve(null).then(r)}class Bl{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m_(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class jh{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,s=0;const u=this.players.length;0==u?m_(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==u&&this._onFinish()}),d.onDestroy(()=>{++t==u&&this._onDestroy()}),d.onStart(()=>{++s==u&&this._onStart()})}),this.totalTime=this.players.reduce((d,l)=>Math.max(d,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const s=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(s)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const g_=["connectionContainer"],vS=["inputContainer"],Uh=["label"];function Nh(r,a){1&r&&(p.ynx(0),p.TgZ(1,"div",14),p._UZ(2,"div",15)(3,"div",16)(4,"div",17),p.qZA(),p.TgZ(5,"div",18),p._UZ(6,"div",15)(7,"div",16)(8,"div",17),p.qZA(),p.BQk())}function mr(r,a){if(1&r){const e=p.EpF();p.TgZ(0,"div",19),p.NdJ("cdkObserveContent",function(){p.CHM(e);const s=p.oxw();return p.KtG(s.updateOutlineGap())}),p.Hsn(1,1),p.qZA()}if(2&r){const e=p.oxw();p.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Iv(r,a){if(1&r&&(p.ynx(0),p.Hsn(1,2),p.TgZ(2,"span"),p._uU(3),p.qZA(),p.BQk()),2&r){const e=p.oxw(2);p.xp6(3),p.Oqu(e._control.placeholder)}}function __(r,a){1&r&&p.Hsn(0,3,["*ngSwitchCase","true"])}function gr(r,a){1&r&&(p.TgZ(0,"span",23),p._uU(1," *"),p.qZA())}function Wn(r,a){if(1&r){const e=p.EpF();p.TgZ(0,"label",20,21),p.NdJ("cdkObserveContent",function(){p.CHM(e);const s=p.oxw();return p.KtG(s.updateOutlineGap())}),p.YNc(2,Iv,4,1,"ng-container",12),p.YNc(3,__,1,0,"ng-content",12),p.YNc(4,gr,2,0,"span",22),p.qZA()}if(2&r){const e=p.oxw();p.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),p.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),p.uIk("for",e._control.id)("aria-owns",e._control.id),p.xp6(2),p.Q6J("ngSwitchCase",!1),p.xp6(1),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function $n(r,a){1&r&&(p.TgZ(0,"div",24),p.Hsn(1,4),p.qZA())}function b_(r,a){if(1&r&&(p.TgZ(0,"div",25),p._UZ(1,"span",26),p.qZA()),2&r){const e=p.oxw();p.xp6(1),p.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function C_(r,a){if(1&r&&(p.TgZ(0,"div"),p.Hsn(1,5),p.qZA()),2&r){const e=p.oxw();p.Q6J("@transitionMessages",e._subscriptAnimationState)}}function kv(r,a){if(1&r&&(p.TgZ(0,"div",30),p._uU(1),p.qZA()),2&r){const e=p.oxw(2);p.Q6J("id",e._hintLabelId),p.xp6(1),p.Oqu(e.hintLabel)}}function Vv(r,a){if(1&r&&(p.TgZ(0,"div",27),p.YNc(1,kv,2,2,"div",28),p.Hsn(2,6),p._UZ(3,"div",29),p.Hsn(4,7),p.qZA()),2&r){const e=p.oxw();p.Q6J("@transitionMessages",e._subscriptAnimationState),p.xp6(1),p.Q6J("ngIf",e.hintLabel)}}const Bv=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ov=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let qh=0;const ls=new p.OlP("MatError");let zh=(()=>{class r{constructor(e,t){this.id="mat-error-"+qh++,e||t.nativeElement.setAttribute("aria-live","polite")}}return r.\u0275fac=function(e){return new(e||r)(p.$8M("aria-live"),p.Y36(p.SBq))},r.\u0275dir=p.lG2({type:r,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&p.uIk("id",t.id)},inputs:{id:"id"},features:[p._Bn([{provide:ls,useExisting:r}])]}),r})();const w_={transitionMessages:ci("transitionMessages",[mt("enter",Ie({opacity:1,transform:"translateY(0%)"})),bt("void => enter",[Ie({opacity:0,transform:"translateY(-5px)"}),vt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let wd=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=p.lG2({type:r}),r})(),Fv=0;const Wh=new p.OlP("MatHint");let y_=(()=>{class r{constructor(){this.align="start",this.id="mat-hint-"+Fv++}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=p.lG2({type:r,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(p.uIk("id",t.id)("align",null),p.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[p._Bn([{provide:Wh,useExisting:r}])]}),r})(),cs=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=p.lG2({type:r,selectors:[["mat-label"]]}),r})(),yd=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=p.lG2({type:r,selectors:[["mat-placeholder"]]}),r})();const $h=new p.OlP("MatPrefix"),A_=new p.OlP("MatSuffix");let Qh=0;const S_=zi(class{constructor(r){this._elementRef=r}},"primary"),E_=new p.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Jh=new p.OlP("MatFormField");let Kh=(()=>{class r extends S_{constructor(e,t,s,u,d,l,n){super(e),this._changeDetectorRef=t,this._dir=s,this._defaults=u,this._platform=d,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Qh++,this._labelId="mat-form-field-label-"+Qh++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==n,this.appearance=u?.appearance||"legacy",u&&(this._hideRequiredMarker=Boolean(u.hideRequiredMarker),u.color&&(this.color=this.defaultColor=u.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ze(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Zi(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(gt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(gt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,an.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Zi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Zi(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(gt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Ja(this._label.nativeElement,"transitionend").pipe((0,Dt.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(u=>"start"===u.align):null,s=this._hintChildren?this._hintChildren.find(u=>"end"===u.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),s&&e.push(s.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",u=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const o=t.querySelectorAll(`${s}, ${u}`);for(let c=0;c0?.75*g+10:0}for(let o=0;o{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[M.ez,Qe,hl,Qe]}),r})();const Xh={provide:new p.OlP("mat-select-scroll-strategy"),deps:[gn],useFactory:function D_(r){return()=>r.scrollStrategies.reposition()}};let us=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[Xh],imports:[M.ez,Xa,wh,Qe,Vr,to,wh,Qe]}),r})();const OS=["tooltip"],Jv="tooltip-panel",Je=ur({passive:!0}),P_=new p.OlP("mat-tooltip-scroll-strategy"),Zv={provide:P_,deps:[gn],useFactory:function hs(r){return()=>r.scrollStrategies.reposition({scrollThrottle:20})}},vd=new p.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Ad(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let ii=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c,h,m){this._overlay=e,this._elementRef=t,this._scrollDispatcher=s,this._viewContainerRef=u,this._ngZone=d,this._platform=l,this._ariaDescriber=n,this._focusMonitor=i,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new He.x,this._scrollStrategy=o,this._document=m,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),c.change.pipe(gt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=ze(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Pi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Pi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(gt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,s])=>{e.removeEventListener(t,s,Je)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new Br(this._tooltipComponent,this._viewContainerRef);const s=this._tooltipInstance=t.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(gt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(gt(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${Jv}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(gt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(gt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(gt(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!hr(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,s=this._getOrigin(),u=this._getOverlayPosition();t.withPositions([this._addOffset({...s.main,...u.main}),this._addOffset({...s.fallback,...u.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let s;"above"==t||"below"==t?s={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?s={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(s={originX:"end",originY:"center"});const{x:u,y:d}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:u,originY:d}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let s;"above"==t?s={overlayX:"center",overlayY:"bottom"}:"below"==t?s={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?s={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(s={overlayX:"start",overlayY:"center"});const{x:u,y:d}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:u,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Dt.q)(1),gt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:s,originY:u}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===t&&"top"===u?"above":"below",d!==this._currentPosition){const l=this._overlayRef;if(l){const n=`${this._cssClassPrefix}-${Jv}-`;l.removePanelClass(n+this._currentPosition),l.addPanelClass(n+d)}this._currentPosition=d}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const s=t.relatedTarget;(!s||!this._overlayRef?.overlayElement.contains(s))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,s])=>{this._elementRef.nativeElement.addEventListener(t,s,Je)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;t!==s&&!s.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,s=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===e||!t.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return r.\u0275fac=function(e){p.$Z()},r.\u0275dir=p.lG2({type:r,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),r})(),I_=(()=>{class r extends ii{constructor(e,t,s,u,d,l,n,i,o,c,h,m){super(e,t,s,u,d,l,n,i,o,c,h,m),this._tooltipComponent=V_}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(gn),p.Y36(p.SBq),p.Y36(Dl),p.Y36(p.s_b),p.Y36(p.R0b),p.Y36(Jt),p.Y36(td),p.Y36(Tn),p.Y36(P_),p.Y36(Sn,8),p.Y36(vd,8),p.Y36(M.K0))},r.\u0275dir=p.lG2({type:r,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[p.qOj]}),r})(),k_=(()=>{class r{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new He.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,s=this._showAnimation,u=this._hideAnimation;if(t.classList.remove(e?u:s),t.classList.add(e?s:u),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const d=getComputedStyle(t);("0s"===d.getPropertyValue("animation-duration")||"none"===d.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.sBO),p.Y36(p.QbO,8))},r.\u0275dir=p.lG2({type:r}),r})(),V_=(()=>{class r extends k_{constructor(e,t,s){super(e,s),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.sBO),p.Y36(rh),p.Y36(p.QbO,8))},r.\u0275cmp=p.Xpm({type:r,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&p.Gf(OS,7),2&e){let s;p.iGM(s=p.CRH())&&(t._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&p.NdJ("mouseleave",function(u){return t._handleMouseLeave(u)}),2&e&&p.Udp("zoom",t.isVisible()?1:null)},features:[p.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(p.TgZ(0,"div",0,1),p.NdJ("animationend",function(u){return t._handleAnimationEnd(u)}),p.ALo(2,"async"),p._uU(3),p.qZA()),2&e){let s;p.ekj("mat-tooltip-handset",null==(s=p.lcZ(2,4,t._isHandset))?null:s.matches),p.Q6J("ngClass",t.tooltipClass),p.xp6(3),p.Oqu(t.message)}},dependencies:[M.mk,M.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),r})(),Ll=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[Zv],imports:[$a,M.ez,Xa,Qe,Qe,Vr]}),r})(),io=(()=>{class r{constructor(){this.changes=new He.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,s)=>{if(0==s||0==t)return`0 of ${s}`;const u=e*t;return`${u+1} \u2013 ${u<(s=Math.max(s,0))?Math.min(u+t,s):u+t} of ${s}`}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const tA={provide:io,deps:[[new p.FiY,new p.tp0,io]],useFactory:function eA(r){return r||new io}};let ga=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[tA],imports:[M.ez,vi,us,Ll,Qe]}),r})();var ps=E(1005);const aA=["mat-menu-item",""];function oA(r,a){1&r&&(p.O4$(),p.TgZ(0,"svg",2),p._UZ(1,"polygon",3),p.qZA())}const j_=["*"];function F_(r,a){if(1&r){const e=p.EpF();p.TgZ(0,"div",0),p.NdJ("keydown",function(s){p.CHM(e);const u=p.oxw();return p.KtG(u._handleKeydown(s))})("click",function(){p.CHM(e);const s=p.oxw();return p.KtG(s.closed.emit("click"))})("@transformMenu.start",function(s){p.CHM(e);const u=p.oxw();return p.KtG(u._onAnimationStart(s))})("@transformMenu.done",function(s){p.CHM(e);const u=p.oxw();return p.KtG(u._onAnimationDone(s))}),p.TgZ(1,"div",1),p.Hsn(2),p.qZA()()}if(2&r){const e=p.oxw();p.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),p.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const jl={transformMenu:ci("transformMenu",[mt("void",Ie({opacity:0,transform:"scale(0.8)"})),bt("void => enter",vt("120ms cubic-bezier(0, 0, 0.2, 1)",Ie({opacity:1,transform:"scale(1)"}))),bt("* => void",vt("100ms 25ms linear",Ie({opacity:0})))]),fadeInItems:ci("fadeInItems",[mt("showing",Ie({opacity:1})),bt("void => *",[Ie({opacity:0}),vt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},U_=new p.OlP("MatMenuContent"),N_=new p.OlP("MAT_MENU_PANEL"),q_=pr(wl(class{}));let _a=(()=>{class r extends q_{constructor(e,t,s,u,d){super(),this._elementRef=e,this._document=t,this._focusMonitor=s,this._parentMenu=u,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new He.x,this._focused=new He.x,this._highlighted=!1,this._triggersSubmenu=!1,u?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class r{constructor(e,t,s,u){this._elementRef=e,this._ngZone=t,this._defaultOptions=s,this._changeDetectorRef=u,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new p.n_E,this._tabSubscription=Qt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new p.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+G_++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=ze(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ze(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(s=>{this._classList[s]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(s=>{this._classList[s]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new oh(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Zi(this._directDescendantItems),(0,oi.w)(e=>(0,an.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const s=e.toArray(),u=Math.max(0,Math.min(s.length-1,t.activeItemIndex||0));s[u]&&!s[u].disabled?t.setActiveItem(u):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Zi(this._directDescendantItems),(0,oi.w)(t=>(0,an.T)(...t.map(s=>s._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,s=this._keyManager;switch(t){case 27:hr(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&s.setFocusOrigin("keyboard"),void s.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Dt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const s=this._keyManager;s.setFocusOrigin(e).setFirstItemActive(),!s.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),s=`${this._elevationPrefix}${t}`,u=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!u||u===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[s]=!0,this._previousElevation=s)}setPositionClasses(e=this.xPosition,t=this.yPosition){const s=this._classList;s["mat-menu-before"]="before"===e,s["mat-menu-after"]="after"===e,s["mat-menu-above"]="above"===t,s["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Zi(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36(z_),p.Y36(p.sBO))},r.\u0275dir=p.lG2({type:r,contentQueries:function(e,t,s){if(1&e&&(p.Suo(s,U_,5),p.Suo(s,_a,5),p.Suo(s,_a,4)),2&e){let u;p.iGM(u=p.CRH())&&(t.lazyContent=u.first),p.iGM(u=p.CRH())&&(t._allItems=u),p.iGM(u=p.CRH())&&(t.items=u)}},viewQuery:function(e,t){if(1&e&&p.Gf(p.Rgc,5),2&e){let s;p.iGM(s=p.CRH())&&(t.templateRef=s.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),r})(),W_=(()=>{class r extends jr{constructor(e,t,s,u){super(e,t,s,u),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36(z_),p.Y36(p.sBO))},r.\u0275cmp=p.Xpm({type:r,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&p.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[p._Bn([{provide:N_,useExisting:r}]),p.qOj],ngContentSelectors:j_,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(p.F$t(),p.YNc(0,F_,3,6,"ng-template"))},dependencies:[M.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[jl.transformMenu,jl.fadeInItems]},changeDetection:0}),r})();const $_=new p.OlP("mat-menu-scroll-strategy"),dA={provide:$_,deps:[gn],useFactory:function cA(r){return()=>r.scrollStrategies.reposition()}},tp=ur({passive:!0});let uA=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o){this._overlay=e,this._element=t,this._viewContainerRef=s,this._menuItemInstance=l,this._dir=n,this._focusMonitor=i,this._ngZone=o,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Qt.w0.EMPTY,this._hoverSubscription=Qt.w0.EMPTY,this._menuCloseSubscription=Qt.w0.EMPTY,this._handleTouchStart=c=>{kr(c)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new p.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new p.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=u,this._parentMaterialMenu=d instanceof jr?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,tp),l&&(l._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,tp),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),s=t.getConfig(),u=s.positionStrategy;this._setPosition(e,u),s.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof jr&&(e._startAnimation(),e._directDescendantItems.changes.pipe(gt(e.close)).subscribe(()=>{u.withLockedPosition(!1).reapplyLastPosition(),u.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof jr?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,ge.h)(s=>"void"===s.toState),(0,Dt.q)(1),gt(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,s=e.parentMenu;for(;s;)t++,s=s.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Il({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(s=>{const u="start"===s.connectionPair.overlayX?"after":"before",d="top"===s.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(u,d)):e.setPositionClasses(u,d)})}_setPosition(e,t){let[s,u]="before"===e.xPosition?["end","start"]:["start","end"],[d,l]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[n,i]=[d,l],[o,c]=[s,u],h=0;if(this.triggersSubmenu()){if(c=s="before"===e.xPosition?"start":"end",u=o="end"===s?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const m=this._parentMaterialMenu.items.first;this._parentInnerPadding=m?m._getHostElement().offsetTop:0}h="bottom"===d?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(n="top"===d?"bottom":"top",i="top"===l?"bottom":"top");t.withPositions([{originX:s,originY:n,overlayX:o,overlayY:d,offsetY:h},{originX:u,originY:n,overlayX:c,overlayY:d,offsetY:h},{originX:s,originY:i,overlayX:o,overlayY:l,offsetY:-h},{originX:u,originY:i,overlayX:c,overlayY:l,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),s=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Me.of)(),u=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,ge.h)(d=>d!==this._menuItemInstance),(0,ge.h)(()=>this._menuOpen)):(0,Me.of)();return(0,an.T)(e,s,u,t)}_handleMousedown(e){ch(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,ge.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,ps.g)(0,zn)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof jr&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Dt.q)(1),(0,ps.g)(0,zn),gt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new pa(e.templateRef,this._viewContainerRef)),this._portal}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(gn),p.Y36(p.SBq),p.Y36(p.s_b),p.Y36($_),p.Y36(N_,8),p.Y36(_a,10),p.Y36(Sn,8),p.Y36(Tn),p.Y36(p.R0b))},r.\u0275dir=p.lG2({type:r,hostVars:3,hostBindings:function(e,t){1&e&&p.NdJ("click",function(u){return t._handleClick(u)})("mousedown",function(u){return t._handleMousedown(u)})("keydown",function(u){return t._handleKeydown(u)}),2&e&&p.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),r})(),Q_=(()=>{class r extends uA{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275dir=p.lG2({type:r,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[p.qOj]}),r})(),Fr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[dA],imports:[M.ez,Qe,En,Xa,Vr,Qe]}),r})();const hA=["*"];let Fl;function fs(r){return function pA(){if(void 0===Fl&&(Fl=null,typeof window<"u")){const r=window;void 0!==r.trustedTypes&&(Fl=r.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return Fl}()?.createHTML(r)||r}function Y_(r){return Error(`Unable to find icon with the name "${r}"`)}function K_(r){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${r}".`)}function xd(r){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${r}".`)}class no{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let ms=(()=>{class r{constructor(e,t,s,u){this._httpClient=e,this._sanitizer=t,this._errorHandler=u,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=s}addSvgIcon(e,t,s){return this.addSvgIconInNamespace("",e,t,s)}addSvgIconLiteral(e,t,s){return this.addSvgIconLiteralInNamespace("",e,t,s)}addSvgIconInNamespace(e,t,s,u){return this._addSvgIconConfig(e,t,new no(s,null,u))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,s,u){const d=this._sanitizer.sanitize(p.q3G.HTML,s);if(!d)throw xd(s);const l=fs(d);return this._addSvgIconConfig(e,t,new no("",l,u))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,s){return this._addSvgIconSetConfig(e,new no(t,null,s))}addSvgIconSetLiteralInNamespace(e,t,s){const u=this._sanitizer.sanitize(p.q3G.HTML,t);if(!u)throw xd(t);const d=fs(u);return this._addSvgIconSetConfig(e,new no("",d,s))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(p.q3G.RESOURCE_URL,e);if(!t)throw K_(e);const s=this._cachedIconsByUrl.get(t);return s?(0,Me.of)(Td(s)):this._loadSvgIconFromConfig(new no(e,null)).pipe((0,Rt.b)(u=>this._cachedIconsByUrl.set(t,u)),(0,ct.U)(u=>Td(u)))}getNamedSvgIcon(e,t=""){const s=X_(t,e);let u=this._svgIconConfigs.get(s);if(u)return this._getSvgFromConfig(u);if(u=this._getIconConfigFromResolvers(t,e),u)return this._svgIconConfigs.set(s,u),this._getSvgFromConfig(u);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,Di._)(Y_(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Me.of)(Td(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ct.U)(t=>Td(t)))}_getSvgFromIconSetConfigs(e,t){const s=this._extractIconWithNameFromAnySet(e,t);return s?(0,Me.of)(s):Tr(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,Xi.K)(l=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(p.q3G.RESOURCE_URL,d.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(i)),(0,Me.of)(null)})))).pipe((0,ct.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw Y_(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let s=t.length-1;s>=0;s--){const u=t[s];if(u.svgText&&u.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(u),l=this._extractSvgIconFromSet(d,e,u.options);if(l)return l}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Rt.b)(t=>e.svgText=t),(0,ct.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Me.of)(null):this._fetchIcon(e).pipe((0,Rt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,s){const u=e.querySelector(`[id="${t}"]`);if(!u)return null;const d=u.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,s);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),s);const l=this._svgElementFromString(fs(""));return l.appendChild(d),this._setSvgAttributes(l,s)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const s=t.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(e){const t=this._svgElementFromString(fs("")),s=e.attributes;for(let u=0;ufs(i)),Ha(()=>this._inProgressUrlFetches.delete(d)),(0,Ds.B)());return this._inProgressUrlFetches.set(d,n),n}_addSvgIconConfig(e,t,s){return this._svgIconConfigs.set(X_(e,t),s),this}_addSvgIconSetConfig(e,t){const s=this._iconSetConfigs.get(e);return s?s.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let s=0;sa?a.pathname+a.search:""}}}),tb=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],_A=tb.map(r=>`[${r}]`).join(", "),bA=/^url\(['"]?#(.*?)['"]?\)$/;let Qn=(()=>{class r extends fA{constructor(e,t,s,u,d,l){super(e),this._iconRegistry=t,this._location=u,this._errorHandler=d,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Qt.w0.EMPTY,l&&(l.color&&(this.color=this.defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),s||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ze(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const s=e.childNodes[t];(1!==s.nodeType||"svg"===s.nodeName.toLowerCase())&&s.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(s=>s.length>0);this._previousFontSetClass.forEach(s=>e.classList.remove(s)),t.forEach(s=>e.classList.add(s)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((s,u)=>{s.forEach(d=>{u.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(_A),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let u=0;u{const l=t[u],n=l.getAttribute(d),i=n?n.match(bA):null;if(i){let o=s.get(l);o||(o=[],s.set(l,o)),o.push({name:d,value:i[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,s]=this._splitIconName(e);t&&(this._svgNamespace=t),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,t).pipe((0,Dt.q)(1)).subscribe(u=>this._setSvgElement(u),u=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${s}! ${u.message}`))})}}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.SBq),p.Y36(ms),p.$8M("aria-hidden"),p.Y36(mA),p.Y36(p.qLn),p.Y36(eb,8))},r.\u0275cmp=p.Xpm({type:r,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(p.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),p.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[p.qOj],ngContentSelectors:hA,decls:1,vars:0,template:function(e,t){1&e&&(p.F$t(),p.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),r})(),Ur=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Qe,Qe]}),r})(),ib=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[ga,Fr,Ur,vi,Da,M.ez]}),r})();var nb=E(5861);function rb(r,a){}class Sd{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let np=(()=>{class r extends fa{constructor(e,t,s,u,d,l,n,i){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=u,this._interactivityChecker=d,this._ngZone=l,this._overlayRef=n,this._focusMonitor=i,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=o=>{this._portalOutlet.hasAttached();const c=this._portalOutlet.attachDomPortal(o);return this._contentAttached(),c},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=s}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const s=()=>{e.removeEventListener("blur",s),e.removeEventListener("mousedown",s),e.removeAttribute("tabindex")};e.addEventListener("blur",s),e.addEventListener("mousedown",s)})),e.focus(t)}_focusByCssSelector(e,t){let s=this._elementRef.nativeElement.querySelector(e);s&&this._forceFocus(s,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const s=ol(),u=this._elementRef.nativeElement;(!s||s===this._document.body||s===u||u.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=ol();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ol())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.SBq),p.Y36(lh),p.Y36(M.K0,8),p.Y36(Sd),p.Y36(sh),p.Y36(p.R0b),p.Y36(ss),p.Y36(Tn))},r.\u0275cmp=p.Xpm({type:r,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&p.Gf(pd,7),2&e){let s;p.iGM(s=p.CRH())&&(t._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&p.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[p.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&p.YNc(0,rb,0,0,"ng-template",0)},dependencies:[pd],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),r})();class rp{constructor(a,e){this.overlayRef=a,this.config=e,this.closed=new He.x,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!hr(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(a,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}}const ab=new p.OlP("DialogScrollStrategy"),CA=new p.OlP("DialogData"),ap=new p.OlP("DefaultDialogConfig"),ob={provide:ab,deps:[gn],useFactory:function op(r){return()=>r.scrollStrategies.block()}};let sp=0,sb=(()=>{class r{constructor(e,t,s,u,d,l){this._overlay=e,this._injector=t,this._defaultOptions=s,this._parentDialog=u,this._overlayContainer=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Gt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zi(void 0))),this._scrollStrategy=l}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Sd,...t}).id=t.id||"cdk-dialog-"+sp++,t.id&&this.getDialogById(t.id);const u=this._getOverlayConfig(t),d=this._overlay.create(u),l=new rp(d,t),n=this._attachContainer(d,l,t);return l.containerInstance=n,this._attachDialogContent(e,l,n,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){lp(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){lp(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),lp(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Il({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,s){const u=s.injector??s.viewContainerRef?.injector,d=[{provide:Sd,useValue:s},{provide:rp,useValue:t},{provide:ss,useValue:e}];let l;s.container?"function"==typeof s.container?l=s.container:(l=s.container.type,d.push(...s.container.providers(s))):l=np;const n=new Br(l,s.viewContainerRef,p.zs3.create({parent:u||this._injector,providers:d}),s.componentFactoryResolver);return e.attach(n).instance}_attachDialogContent(e,t,s,u){const d=this._createInjector(u,t,s);if(e instanceof p.Rgc){let l={$implicit:u.data,dialogRef:t};u.templateContext&&(l={...l,..."function"==typeof u.templateContext?u.templateContext():u.templateContext}),s.attachTemplatePortal(new pa(e,null,l,d))}else{const l=s.attachComponentPortal(new Br(e,u.viewContainerRef,d,u.componentFactoryResolver));t.componentInstance=l.instance}}_createInjector(e,t,s){const u=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:CA,useValue:e.data},{provide:rp,useValue:t}];return e.providers&&("function"==typeof e.providers?d.push(...e.providers(t,e,s)):d.push(...e.providers)),e.direction&&(!u||!u.get(Sn,null,p.XFs.Optional))&&d.push({provide:Sn,useValue:{value:e.direction,change:(0,Me.of)()}}),p.zs3.create({parent:e.injector||u||this._injector,providers:d})}_removeOpenDialog(e,t){const s=this.openDialogs.indexOf(e);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((u,d)=>{u?d.setAttribute("aria-hidden",u):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let s=t.length-1;s>-1;s--){const u=t[s];u!==e&&"SCRIPT"!==u.nodeName&&"STYLE"!==u.nodeName&&!u.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(u,u.getAttribute("aria-hidden")),u.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(gn),p.LFG(p.zs3),p.LFG(ap,8),p.LFG(r,12),p.LFG(os),p.LFG(ab))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();function lp(r,a){let e=r.length;for(;e--;)a(r[e])}let cp=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[sb,ob],imports:[Xa,Or,$a,Or]}),r})();function wA(r,a){}const ro={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},gs={dialogContainer:ci("dialogContainer",[mt("void, exit",Ie({opacity:0,transform:"scale(0.7)"})),mt("enter",Ie({transform:"none"})),bt("* => enter",Lh([vt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ie({transform:"none",opacity:1})),kl("@*",Cd(),{optional:!0})]),ro),bt("* => void, * => exit",Lh([vt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ie({opacity:0})),kl("@*",Cd(),{optional:!0})]),ro)])};class _s{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=ro.params.enterAnimationDuration,this.exitAnimationDuration=ro.params.exitAnimationDuration}}let yA=(()=>{class r extends np{constructor(e,t,s,u,d,l,n,i){super(e,t,s,u,d,l,n,i),this._animationStateChanged=new p.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.SBq),p.Y36(lh),p.Y36(M.K0,8),p.Y36(_s),p.Y36(sh),p.Y36(p.R0b),p.Y36(ss),p.Y36(Tn))},r.\u0275cmp=p.Xpm({type:r,selectors:[["ng-component"]],features:[p.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),r})(),JS=(()=>{class r extends yA{constructor(e,t,s,u,d,l,n,i,o){super(e,t,s,u,d,l,n,o),this._changeDetectorRef=i,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ro.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ro.params.exitAnimationDuration}}}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.SBq),p.Y36(lh),p.Y36(M.K0,8),p.Y36(_s),p.Y36(sh),p.Y36(p.R0b),p.Y36(ss),p.Y36(p.sBO),p.Y36(Tn))},r.\u0275cmp=p.Xpm({type:r,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&p.WFA("@dialogContainer.start",function(u){return t._onAnimationStart(u)})("@dialogContainer.done",function(u){return t._onAnimationDone(u)}),2&e&&(p.Ikx("id",t._config.id),p.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),p.d8E("@dialogContainer",t._getAnimationState()))},features:[p.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&p.YNc(0,wA,0,0,"ng-template",0)},dependencies:[pd],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[gs.dialogContainer]}}),r})();class _n{constructor(a,e,t){this._ref=a,this._containerInstance=t,this._afterOpened=new He.x,this._beforeClosed=new He.x,this._state=0,this.disableClose=e.disableClose,this.id=a.id,t._animationStateChanged.pipe((0,ge.h)(s=>"opened"===s.state),(0,Dt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,ge.h)(s=>"closed"===s.state),(0,Dt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,an.T)(this.backdropClick(),this.keydownEvents().pipe((0,ge.h)(s=>27===s.keyCode&&!this.disableClose&&!hr(s)))).subscribe(s=>{this.disableClose||(s.preventDefault(),function dp(r,a,e){r._closeInteractionType=a,r.close(e)}(this,"keydown"===s.type?"keyboard":"mouse"))})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,ge.h)(e=>"closing"===e.state),(0,Dt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const ao=new p.OlP("MatDialogData"),up=new p.OlP("mat-dialog-default-options"),lb=new p.OlP("mat-dialog-scroll-strategy"),cb={provide:lb,deps:[gn],useFactory:function hp(r){return()=>r.scrollStrategies.block()}};let db=0,ub=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c){this._overlay=e,this._defaultOptions=s,this._parentDialog=u,this._dialogRefConstructor=n,this._dialogContainerType=i,this._dialogDataToken=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Gt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zi(void 0))),this._scrollStrategy=l,this._dialog=t.get(sb)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let s;(t={...this._defaultOptions||new _s,...t}).id=t.id||`${this._idPrefix}${db++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const u=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:_s,useValue:t},{provide:Sd,useValue:t}]},templateContext:()=>({dialogRef:s}),providers:(d,l,n)=>(s=new this._dialogRefConstructor(d,t,n),s.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:s}])});return s.componentInstance=u.componentInstance,this.openDialogs.push(s),this.afterOpened.next(s),s.afterClosed().subscribe(()=>{const d=this.openDialogs.indexOf(s);d>-1&&(this.openDialogs.splice(d,1),this.openDialogs.length||this._getAfterAllClosed().next())}),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return r.\u0275fac=function(e){p.$Z()},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})(),bn=(()=>{class r extends ub{constructor(e,t,s,u,d,l,n,i){super(e,t,u,l,n,d,_n,JS,ao,i)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(gn),p.LFG(p.zs3),p.LFG(M.Ye,8),p.LFG(up,8),p.LFG(lb),p.LFG(r,12),p.LFG(os),p.LFG(p.QbO,8))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})(),vA=0,Nr=(()=>{class r{constructor(e,t,s){this._dialogRef=e,this._elementRef=t,this._dialog=s,this.id="mat-dialog-title-"+vA++}ngOnInit(){this._dialogRef||(this._dialogRef=function XS(r,a){let e=r.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(_n,8),p.Y36(p.SBq),p.Y36(bn))},r.\u0275dir=p.lG2({type:r,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&p.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),r})(),qr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=p.lG2({type:r,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),r})(),_r=(()=>{class r{constructor(){this.align="start"}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=p.lG2({type:r,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&p.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),r})(),Ul=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[bn,cb],imports:[cp,Xa,Or,Qe,Qe]}),r})();function pp(){return(pp=(0,nb.Z)(function*(r,a){yield EA(r),a()})).apply(this,arguments)}function EA(r){return new Promise(a=>setTimeout(a,r))}function fp(r,a){for(const e of r)if(e.namespace+":"+e.friendlyName===a)return e;return null}function on(){const r=new _s;return r.disableClose=!0,r.autoFocus=!1,r}E(4327),new Intl.Collator("cs",{numeric:!0});let gi=(()=>{class r{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],s=this.defaultConfig[e];let u=null;for(const d of t)d&&null==u&&(u=d[e]);return null===u?s:this.addMissingValuesToProperty(u,s)}addMissingValuesToProperty(e,t){if(null==e)return t;if("object"==typeof e&&!Array.isArray(e))for(const s of Object.keys(t))e[s]=this.addMissingValuesToProperty(e[s],t[s]);return e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var Gr=E(1214);let ba=(()=>{class r{constructor(e,t,s,u,d){this.injector=e,this.store=t,this.dialog=s,this.route=u,this.oauthService=d,setTimeout(()=>{this.router=this.injector.get(yi),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(l=>{l.idpFilter&&(this.filterShortname=String(l.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),u=.5+.25*Math.random(),d=e?{acr_values:e}:{},l=this.store.getProperty("oidc_client");if(l.oauth_scopes.split(" ").includes("offline_access")&&l.oauth_offline_access_consent_prompt&&(d.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(d.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(d.prompt?d.prompt+=" login":d.prompt="login",d.max_age="0"),"Linker"===this.store.getProperty("application")){d.prompt?d.prompt+=" login":d.prompt="login";const n=function bp(r,a){const e=a.split("&");for(const t of e){const[s,u]=t.split("=");if(s.includes(r))return u}return""}("idphint",location.search.substring(1));n&&(d.idphint=n)}return{requestAccessToken:!0,issuer:l.oauth_authority,clientId:l.oauth_client_id,redirectUri:l.oauth_redirect_uri,postLogoutRedirectUri:l.oauth_post_logout_redirect_uri,responseType:l.oauth_response_type,scope:l.oauth_scopes,clockSkewInSec:1,timeoutFactor:u,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:d}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let s=null;return e.forEach(u=>{const d=u.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],s=t[d[1]])}),t.default&&!s?(this.filterShortname="default",t.default):s}startIdpFilterKeeper(){this.router.events.pipe((0,ge.h)(e=>e instanceof fn)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(p.zs3),p.LFG(gi),p.LFG(bn),p.LFG(jn),p.LFG(Gr.Ct))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Cb=(()=>{class r{constructor(e){this.dialogRef=e}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(_n))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(p.TgZ(0,"h2",0),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[qr,yt]}),r})();var wb=E(930);function Cp(r,a){const e="object"==typeof a;return new Promise((t,s)=>{const u=new wb.Hp({next:d=>{t(d),u.unsubscribe()},error:s,complete:()=>{e?t(a.defaultValue):s(new On.K)}});r.subscribe(u)})}function yb(r,a){1&r&&(p.TgZ(0,"mat-icon",2),p._uU(1," info "),p.qZA())}function UA(r,a){1&r&&(p.TgZ(0,"mat-icon",2),p._uU(1," warning "),p.qZA())}function vb(r,a){1&r&&(p.TgZ(0,"mat-icon",2),p._uU(1," dangerous "),p.qZA())}function Ab(r,a){1&r&&(p.TgZ(0,"mat-icon",2),p._uU(1," check_circle "),p.qZA())}const NA=["*"];let ql=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:NA,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(p.F$t(),p.TgZ(0,"div",0),p.YNc(1,yb,2,0,"mat-icon",1),p.YNc(2,UA,2,0,"mat-icon",1),p.YNc(3,vb,2,0,"mat-icon",1),p.YNc(4,Ab,2,0,"mat-icon",1),p.Hsn(5),p.qZA()),2&e&&(p.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),p.xp6(1),p.Q6J("ngIf","info"===t.alert_type),p.xp6(1),p.Q6J("ngIf","warn"===t.alert_type),p.xp6(1),p.Q6J("ngIf","error"===t.alert_type),p.xp6(1),p.Q6J("ngIf","success"===t.alert_type))},dependencies:[Qn,M.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),r})(),qA=(()=>{class r{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(_n),p.Y36(ao))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),p._uU(5),p.ALo(6,"translate"),p.ALo(7,"translate"),p.qZA()(),p.TgZ(8,"div",3)(9,"button",4),p.NdJ("click",function(){return t.cancel()}),p._uU(10),p.ALo(11,"translate"),p.qZA(),p.TgZ(12,"button",5),p.NdJ("click",function(){return t.submit()}),p._uU(13),p.ALo(14,"translate"),p.qZA()()),2&e&&(p.xp6(1),p.Oqu(p.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),p.xp6(4),p.hij(" ",t.data.mfaRoleException?p.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):p.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),p.xp6(4),p.Q6J("hidden",t.data.mfaRoleException),p.xp6(1),p.hij(" ",p.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),p.xp6(2),p.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),p.xp6(1),p.hij(" ",p.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Nr,qr,_r,ji,ql,yt]}),r})(),$i=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),p._uU(3," info "),p.qZA(),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.TgZ(6,"div"),p._uU(7),p.ALo(8,"translate"),p.qZA()()),2&e&&(p.xp6(4),p.hij(" ",p.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),p.xp6(3),p.hij(" ",p.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Qn,yt],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),r})(),bs=(()=>{class r{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(ao),p.Y36(_n))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),p._uU(5),p.ALo(6,"translate"),p.qZA()(),p.TgZ(7,"div",3)(8,"button",4),p.NdJ("click",function(){return t.cancel()}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.TgZ(11,"button",5),p.NdJ("click",function(){return t.submit()}),p._uU(12),p.ALo(13,"translate"),p.qZA()()),2&e&&(p.xp6(1),p.Oqu(p.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),p.xp6(4),p.hij(" ",p.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),p.xp6(4),p.hij(" ",p.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),p.xp6(3),p.hij(" ",p.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Nr,qr,_r,ji,ql,yt]}),r})(),wp=(()=>{class r{constructor(e,t,s,u){this.dialog=e,this.oauthService=t,this.authService=s,this.store=u}openMfaWindow(e){let t=null,s=null;const u=on();u.width="450px",u.data={mfaRoleException:e};const d=this.dialog.open(qA,u);let l=!1;if(d.afterClosed().subscribe(n=>{if(n){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const i=on();i.width="450px",i.panelClass="noBorderDialog",s=this.dialog.open($i,i)}}else l=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const n=on();n.width="450px",n.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(bs,n)}return new ai.y(n=>{const i=setInterval(()=>t?.closed?(clearInterval(i),s.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),n.next(!0)):l?(clearInterval(i),n.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,u=window.top;return window.open(e,"_blank",`width=600,height=600,top=${u.outerHeight/2+u.screenY-300}, left=${u.outerWidth/2+u.screenX-300}`)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(bn),p.LFG(Gr.Ct),p.LFG(ba),p.LFG(gi))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),zl=(()=>{class r{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.oauthService=t,this.storeService=s,this.authResolver=u,this.authzService=d,this.dialog=l,this.router=n,this.mfaHandlerService=i,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return Cp(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=on();this.dialog.open(Cb,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return Cp(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const s={};return t.split("&").forEach(u=>{const d=u.split("=");s[d[0]]=d[1]}),this.router.navigate(["service-access"],{queryParams:s,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const s of t)if(e.startsWith(s))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,ge.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const s=sessionStorage.getItem("auth:queryParams");let u=[];s&&(u=s.split("&"));const d={};return u.forEach(l=>{const n=l.split("=");d[n[0]]=n[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:d,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(ba),p.LFG(Gr.Ct),p.LFG(gi),p.LFG(Mi),p.LFG(Ps),p.LFG(bn),p.LFG(yi),p.LFG(wp))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),zA=(()=>{class r{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(ms),p.LFG(hi))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})(),yp=(()=>{class r{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(_n))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div",1),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.TgZ(6,"div",2)(7,"div",3)(8,"button",4),p.NdJ("click",function(){return t.close()}),p._uU(9),p.ALo(10,"translate"),p.qZA()()()),2&e&&(p.xp6(1),p.Oqu(p.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),p.xp6(3),p.hij(" ",p.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),p.xp6(5),p.hij(" ",p.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Nr,qr,_r,ji,yt]}),r})(),xb=(()=>{class r{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Wr=(()=>{class r{constructor(e){this.translate=e,this.addNotification=new p.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){this.showInstantError("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR",null,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC")}showError(e,t,s,u,d){this.addNotification.emit({type:"error",error:t,description:s,title:e,actionText:void 0===u&&void 0!==s?this.getDefaultActionMessage():u,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showInstantError(e,t,s,u,d){const l=s?this.translate.instant(s):null,n=u?this.translate.instant(u):null;n?this.showError(this.translate.instant(e),t,l,n,d):this.showError(this.translate.instant(e),t,l)}showSuccess(e,t,s,u){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===s&&void 0!==t?this.getDefaultActionMessage():s,delay:this.defaultSuccessDelayMs,icon:"done",action:u,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showInstantSuccess(e,t,s,u){const d=t?this.translate.instant(t):null,l=s?this.translate.instant(s):null;l?this.showSuccess(this.translate.instant(e),d,l,u):this.showSuccess(this.translate.instant(e),d)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(eu))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Tb=(()=>{class r{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.apiRequestConfiguration=t,this.notificator=s,this.store=u,this.dialog=d,this.initAuthService=l,this.mfaHandlerService=n,this.oauthService=i}intercept(e,t){const s=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==s&&this.isCallToPerunApi(e.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const u=on();u.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(yp,u),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Ha(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const s=this.apiRequestConfiguration.shouldHandleError(),u="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Rt.b)(d=>{d instanceof v.Zn&&u&&this.initAuthService.loadPrincipal()}),(0,Xi.K)(d=>{const l=d.error;if("MfaPrivilegeException"===l.type||"MfaRolePrivilegeException"===l.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===l.type).pipe((0,oi.w)(n=>n?("MfaRolePrivilegeException"===l.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,Di._)(()=>l)));{this.handleInvalidAccessTokenError(d);const n=this.formatErrors(d,e);return void 0===n?(0,Di._)(()=>d):(s&&this.notificator.showRPCError(n),(0,Di._)(()=>n))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let s;console.error(e);const u=e.error;if(u.errorId&&(s=u),void 0!==s)return s.urlWithParams=t.urlWithParams,s.call=t.url,s.payload=t.body,s}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){if(!this.isLoggedIn()||"invalid_token"===e.error.error||null!=this.dialogRefSessionExpiration)return;const t=on();this.dialogRefSessionExpiration=this.dialog.open(yp,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(ba),p.LFG(xb),p.LFG(Wr),p.LFG(gi),p.LFG(bn),p.LFG(zl),p.LFG(wp),p.LFG(Gr.Ct))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})(),Gl=(()=>{class r{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),GA=(()=>{class r{constructor(e,t,s,u){this.http=e,this.notificator=t,this.authService=s,this.storeService=u}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new v.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.get(s,{headers:this.getHeaders()}).pipe((0,Xi.K)(u=>this.formatErrors(u,s,null,t)))}put(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(u,d,{headers:this.getHeaders()}).pipe((0,Xi.K)(l=>this.formatErrors(l,u,d,s)))}post(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let l=this.getHeaders();return l=l.set("Content-Type","application/json; charset=utf-8"),this.http.post(u,d,{headers:l}).pipe((0,Xi.K)(n=>this.formatErrors(n,u,d,s)))}delete(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.delete(s,{headers:this.getHeaders()}).pipe((0,Xi.K)(u=>this.formatErrors(u,s,null,t)))}formatErrors(e,t,s,u){const d=e.error;return d.call=t,d.payload=s,u&&this.notificator.showRPCError(e.error),(0,Di._)(d)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(v.eN),p.LFG(Wr),p.LFG(ba),p.LFG(gi))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),$A=(()=>{class r{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),s=navigator.languages.map(l=>l.split("-")[0]),u=location.search.substring(1).split("&");let d=null;for(const l of u){const n=l.split("=");"lang"===n[0]&&(d=n[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:s&&t.includes(s[0])?s[0]:"en"}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(jn),p.LFG(gi))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Sb=(()=>{class r{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const u of e)if(u.newApps.admin===t||u.newApps.profile===t||u.newApps.pwdReset===t||u.newApps.consolidator===t||u.newApps.linker===t)return u;return e.filter(u=>"default"===u.name)[0]||e[0]}getUrlForOtherApplication(e,t){const u=window.location.href.split("/"),d=u[0]+"//"+u[2],l=r.getBrandContainingDomain(this.storeService.getAppsConfig().brands,d);let n;if(l.newApps[e])n=l.newApps[e],"pwdReset"===e&&(n+=`?login-namespace=${t}`);else switch(n=l.oldGuiDomain+"/fed",e){case"admin":n+="/gui/";break;case"profile":n+="/profile/";break;case"pwdReset":n+=`/pwd-reset/?login-namespace=${t}`}return n}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(gi))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var $r=(()=>{return(r=$r||($r={})).Admin="admin",r.Profile="profile",r.PwdReset="pwdReset",r.Consolidator="consolidator",r.Linker="linker",$r;var r})();let $l=(()=>{class r{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.Qsj),p.Y36(p.SBq))},r.\u0275dir=p.lG2({type:r}),r})(),Qr=(()=>{class r extends $l{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275dir=p.lG2({type:r,features:[p.qOj]}),r})();const sn=new p.OlP("NgValueAccessor"),Hb={provide:sn,useExisting:(0,p.Gpc)(()=>oo),multi:!0},YA=new p.OlP("CompositionEventMode");let oo=(()=>{class r extends $l{constructor(e,t,s){super(e,t),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Cs(){const r=(0,M.q)()?(0,M.q)().getUserAgent():"";return/android (\d+)/.test(r.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.Qsj),p.Y36(p.SBq),p.Y36(YA,8))},r.\u0275dir=p.lG2({type:r,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&p.NdJ("input",function(u){return t._handleInput(u.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(u){return t._compositionEnd(u.target.value)})},features:[p._Bn([Hb]),p.qOj]}),r})();function so(r){return null==r||("string"==typeof r||Array.isArray(r))&&0===r.length}function Rb(r){return null!=r&&"number"==typeof r.length}const xi=new p.OlP("NgValidators"),Ca=new p.OlP("NgAsyncValidators"),JA=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ql{static min(a){return function Ap(r){return a=>{if(so(a.value)||so(r))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(so(a.value)||so(r))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>r?{max:{max:r,actual:a.value}}:null}}(a)}static required(a){return Pb(a)}static requiredTrue(a){return function Tp(r){return!0===r.value?null:{required:!0}}(a)}static email(a){return function Sp(r){return so(r.value)||JA.test(r.value)?null:{email:!0}}(a)}static minLength(a){return function Ib(r){return a=>so(a.value)||!Rb(a.value)?null:a.value.lengthRb(a.value)&&a.value.length>r?{maxlength:{requiredLength:r,actualLength:a.value.length}}:null}(a)}static pattern(a){return function Ep(r){if(!r)return Dd;let a,e;return"string"==typeof r?(e="","^"!==r.charAt(0)&&(e+="^"),e+=r,"$"!==r.charAt(r.length-1)&&(e+="$"),a=new RegExp(e)):(e=r.toString(),a=r),t=>{if(so(t.value))return null;const s=t.value;return a.test(s)?null:{pattern:{requiredPattern:e,actualValue:s}}}}(a)}static nullValidator(a){return null}static compose(a){return ZA(a)}static composeAsync(a){return XA(a)}}function Pb(r){return so(r.value)?{required:!0}:null}function Dd(r){return null}function Mp(r){return null!=r}function Dp(r){return(0,p.QGY)(r)?(0,$e.D)(r):r}function Hp(r){let a={};return r.forEach(e=>{a=null!=e?{...a,...e}:a}),0===Object.keys(a).length?null:a}function Rp(r,a){return a.map(e=>e(r))}function Vb(r){return r.map(a=>function KA(r){return!r.validate}(a)?a:e=>a.validate(e))}function ZA(r){if(!r)return null;const a=r.filter(Mp);return 0==a.length?null:function(e){return Hp(Rp(e,a))}}function Hd(r){return null!=r?ZA(Vb(r)):null}function XA(r){if(!r)return null;const a=r.filter(Mp);return 0==a.length?null:function(e){return Tr(Rp(e,a).map(Dp)).pipe((0,ct.U)(Hp))}}function Bb(r){return null!=r?XA(Vb(r)):null}function e0(r,a){return null===r?[a]:Array.isArray(r)?[...r,a]:[r,a]}function t0(r){return r._rawValidators}function n0(r){return r._rawAsyncValidators}function Ob(r){return r?Array.isArray(r)?r:[r]:[]}function Pp(r,a){return Array.isArray(r)?r.includes(a):r===a}function r0(r,a){const e=Ob(a);return Ob(r).forEach(s=>{Pp(e,s)||e.push(s)}),e}function Yl(r,a){return Ob(a).filter(e=>!Pp(r,e))}class a0{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(a){this._rawValidators=a||[],this._composedValidatorFn=Hd(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=Bb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Fi extends a0{get formDirective(){return null}get path(){return null}}class Cn extends a0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let ws=(()=>{class r extends class Ip{constructor(a){this._cd=a}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(Cn,2))},r.\u0275dir=p.lG2({type:r,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&p.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[p.qOj]}),r})();const Pd="VALID",ln="INVALID",ys="PENDING",lo="DISABLED";function Op(r){return(kd(r)?r.validators:r)||null}function cn(r){return Array.isArray(r)?Hd(r):r||null}function Lp(r,a){return(kd(a)?a.asyncValidators:r)||null}function Id(r){return Array.isArray(r)?Bb(r):r||null}function kd(r){return null!=r&&!Array.isArray(r)&&"object"==typeof r}class jp{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=cn(this._rawValidators),this._composedAsyncValidatorFn=Id(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===Pd}get invalid(){return this.status===ln}get pending(){return this.status==ys}get disabled(){return this.status===lo}get enabled(){return this.status!==lo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=cn(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=Id(a)}addValidators(a){this.setValidators(r0(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(r0(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(Yl(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(Yl(a,this._rawAsyncValidators))}hasValidator(a){return Pp(this._rawValidators,a)}hasAsyncValidator(a){return Pp(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=ys,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=lo,this.errors=null,this._forEachChild(t=>{t.disable({...a,onlySelf:!0})}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Pd,this._forEachChild(t=>{t.enable({...a,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Pd||this.status===ys)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?lo:Pd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=ys,this._hasOwnPendingAsyncValidator=!0;const e=Dp(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){let e=a;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,s)=>t&&t._find(s),this)}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new p.vpe,this.statusChanges=new p.vpe}_calculateStatus(){return this._allControlsDisabled()?lo:this.errors?ln:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ys)?ys:this._anyControlsHaveStatus(ln)?ln:Pd}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){kd(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(a){return null}}class Bd extends jp{constructor(a,e,t){super(Op(e),Lp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){(function Vd(r,a,e){r._forEachChild((t,s)=>{if(void 0===e[s])throw new p.vHH(1002,"")})})(this,0,a),Object.keys(a).forEach(t=>{(function Ub(r,a,e){const t=r.controls;if(!(a?Object.keys(t):t).length)throw new p.vHH(1e3,"");if(!t[e])throw new p.vHH(1001,"")})(this,!0,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{const s=this.controls[t];s&&s.patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,s)=>{t.reset(a[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=e.getRawValue(),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&a(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,s)=>((t.enabled||this.disabled)&&(e[s]=t.value),e))}_reduceChildren(a,e){let t=a;return this._forEachChild((s,u)=>{t=e(t,s,u)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null}}function Zl(r,a){Xl(r,a),a.valueAccessor.writeValue(r.value),r.disabled&&a.valueAccessor.setDisabledState?.(!0),function u0(r,a){a.valueAccessor.registerOnChange(e=>{r._pendingValue=e,r._pendingChange=!0,r._pendingDirty=!0,"change"===r.updateOn&&zb(r,a)})}(r,a),function h0(r,a){const e=(t,s)=>{a.valueAccessor.writeValue(t),s&&a.viewToModelUpdate(t)};r.registerOnChange(e),a._registerOnDestroy(()=>{r._unregisterOnChange(e)})}(r,a),function ME(r,a){a.valueAccessor.registerOnTouched(()=>{r._pendingTouched=!0,"blur"===r.updateOn&&r._pendingChange&&zb(r,a),"submit"!==r.updateOn&&r.markAsTouched()})}(r,a),function qb(r,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};r.registerOnDisabledChange(e),a._registerOnDestroy(()=>{r._unregisterOnDisabledChange(e)})}}(r,a)}function vs(r,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),Dn(r,a),r&&(a._invokeOnDestroyCallbacks(),r._registerOnCollectionChange(()=>{}))}function Yn(r,a){r.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function Xl(r,a){const e=t0(r);null!==a.validator?r.setValidators(e0(e,a.validator)):"function"==typeof e&&r.setValidators([e]);const t=n0(r);null!==a.asyncValidator?r.setAsyncValidators(e0(t,a.asyncValidator)):"function"==typeof t&&r.setAsyncValidators([t]);const s=()=>r.updateValueAndValidity();Yn(a._rawValidators,s),Yn(a._rawAsyncValidators,s)}function Dn(r,a){let e=!1;if(null!==r){if(null!==a.validator){const s=t0(r);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==a.validator);u.length!==s.length&&(e=!0,r.setValidators(u))}}if(null!==a.asyncValidator){const s=n0(r);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==a.asyncValidator);u.length!==s.length&&(e=!0,r.setAsyncValidators(u))}}}const t=()=>{};return Yn(a._rawValidators,t),Yn(a._rawAsyncValidators,t),e}function zb(r,a){r._pendingDirty&&r.markAsDirty(),r.setValue(r._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(r._pendingValue),r._pendingChange=!1}function Gb(r,a){Xl(r,a)}function Od(r,a){if(!r.hasOwnProperty("model"))return!1;const e=r.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function Ld(r,a){r._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function jd(r,a){if(!a)return null;let e,t,s;return Array.isArray(a),a.forEach(u=>{u.constructor===oo?e=u:function RE(r){return Object.getPrototypeOf(r.constructor)===Qr}(u)?t=u:s=u}),s||t||e||null}const $b={provide:Fi,useExisting:(0,p.Gpc)(()=>wa)},As=(()=>Promise.resolve(null))();let wa=(()=>{class r extends Fi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new p.vpe,this.form=new Bd({},Hd(e),Bb(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){As.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Zl(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){As.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){As.then(()=>{const t=this._findContainer(e.path),s=new Bd({});Gb(s,e),t.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){As.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){As.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Ld(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(xi,10),p.Y36(Ca,10))},r.\u0275dir=p.lG2({type:r,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&p.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p._Bn([$b]),p.qOj]}),r})();function ec(r,a){const e=r.indexOf(a);e>-1&&r.splice(e,1)}function Up(r){return"object"==typeof r&&null!==r&&2===Object.keys(r).length&&"value"in r&&"disabled"in r}const Np=class extends jp{constructor(a=null,e,t){super(Op(e),Lp(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),kd(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Up(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){ec(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){ec(this._onDisabledChange,a)}_forEachChild(a){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(a){Up(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}},Qb=Np,b0={provide:Cn,useExisting:(0,p.Gpc)(()=>qp)},C0=(()=>Promise.resolve(null))();let qp=(()=>{class r extends Cn{constructor(e,t,s,u,d){super(),this._changeDetectorRef=d,this.control=new Np,this._registered=!1,this.update=new p.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=jd(0,u)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Od(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Zl(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){C0.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,s=0!==t&&(0,p.D6c)(t);C0.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Kl(r,a){return[...a.path,r]}(e,this._parent):[e]}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(Fi,9),p.Y36(xi,10),p.Y36(Ca,10),p.Y36(sn,10),p.Y36(p.sBO,8))},r.\u0275dir=p.lG2({type:r,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[p._Bn([b0]),p.qOj,p.TTD]}),r})(),Kb=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({}),r})();const tc=new p.OlP("NgModelWithFormControlWarning"),$p={provide:Cn,useExisting:(0,p.Gpc)(()=>Qp)};let Qp=(()=>{class r extends Cn{constructor(e,t,s,u){super(),this._ngModelWarningConfig=u,this.update=new p.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=jd(0,s)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&vs(t,this,!1),Zl(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Od(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&vs(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return r._ngModelWarningSentOnce=!1,r.\u0275fac=function(e){return new(e||r)(p.Y36(xi,10),p.Y36(Ca,10),p.Y36(sn,10),p.Y36(tc,8))},r.\u0275dir=p.lG2({type:r,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[p._Bn([$p]),p.qOj,p.TTD]}),r})();const Yp={provide:Fi,useExisting:(0,p.Gpc)(()=>uo)};let uo=(()=>{class r extends Fi{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new p.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Dn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Zl(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){vs(e.control||null,e,!1),function Wb(r,a){const e=r.indexOf(a);e>-1&&r.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Ld(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,s=this.form.get(e.path);t!==s&&(vs(t||null,e),(r=>r instanceof Np)(s)&&(Zl(s,e),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Gb(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function p0(r,a){return Dn(r,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Xl(this.form,this),this._oldForm&&Dn(this._oldForm,this)}_checkFormPresent(){}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(xi,10),p.Y36(Ca,10))},r.\u0275dir=p.lG2({type:r,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&p.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p._Bn([Yp]),p.qOj,p.TTD]}),r})(),ho=(()=>{class r{constructor(){this._validator=Dd}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Dd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=p.lG2({type:r,features:[p.TTD]}),r})();const H0={provide:xi,useExisting:(0,p.Gpc)(()=>nc),multi:!0};let nc=(()=>{class r extends ho{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=p.D6c,this.createValidator=e=>Pb}enabled(e){return e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275dir=p.lG2({type:r,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&p.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[p._Bn([H0]),p.qOj]}),r})(),b=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Kb]}),r})(),C=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[b]}),r})(),y=(()=>{class r{static withConfig(e){return{ngModule:r,providers:[{provide:tc,useValue:e.warnOnNgModelWithFormControl}]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[b]}),r})();const te=ur({passive:!0});let se=(()=>{class r{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Oi.E;const t=li(e),s=this._monitoredElements.get(t);if(s)return s.subject;const u=new He.x,d="cdk-text-field-autofilled",l=n=>{"cdk-text-field-autofill-start"!==n.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===n.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",l,te),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:u,unlisten:()=>{t.removeEventListener("animationstart",l,te)}}),u}stopMonitoring(e){const t=li(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(Jt),p.LFG(p.R0b))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Se=(()=>{class r{constructor(e,t,s,u){this._elementRef=e,this._platform=t,this._ngZone=s,this._destroyed=new He.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=d=>{this._hasFocus="focus"===d.type},this._document=u,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=Pi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Pi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=ze(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Ja(this._getWindow(),"resize").pipe(es(16),gt(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",s=this._platform.FIREFOX,u=s&&this._hasFocus,d=s?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";u&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(d);const l=e.scrollHeight-4;return e.classList.remove(d),u&&(e.style.marginBottom=t),l}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,s=t.value;if(!e&&this._minRows===this._previousMinRows&&s===this._previousValue)return;const u=this._measureScrollHeight(),d=Math.max(u,this._cachedPlaceholderHeight||0);t.style.height=`${d}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=s,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:s}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,s)}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.SBq),p.Y36(Jt),p.Y36(p.R0b),p.Y36(M.K0,8))},r.\u0275dir=p.lG2({type:r,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&p.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),r})(),Ve=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({}),r})();const et=new p.OlP("MAT_INPUT_VALUE_ACCESSOR"),ve=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Ye=0;const _t=ph(class{constructor(r,a,e,t){this._defaultErrorStateMatcher=r,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new He.x}});let Ot=(()=>{class r extends _t{constructor(e,t,s,u,d,l,n,i,o,c){super(l,u,d,s),this._elementRef=e,this._platform=t,this._autofillMonitor=i,this._formField=c,this._uid="mat-input-"+Ye++,this.focused=!1,this.stateChanges=new He.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>Bm().has(g)),this._iOSKeyupListener=g=>{const f=g.target;!f.value&&0===f.selectionStart&&0===f.selectionEnd&&(f.setSelectionRange(1,1),f.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,m=h.nodeName.toLowerCase();this._inputValueAccessor=n||h,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&o.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===m,this._isTextarea="textarea"===m,this._isInFormField=!!c,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ze(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Ql.required)??!1}set required(e){this._required=ze(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Bm().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ze(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=t,t?s.setAttribute("placeholder",t):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){ve.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.SBq),p.Y36(Jt),p.Y36(Cn,10),p.Y36(wa,8),p.Y36(uo,8),p.Y36(ua),p.Y36(et,10),p.Y36(se),p.Y36(p.R0b),p.Y36(Jh,8))},r.\u0275dir=p.lG2({type:r,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&p.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(p.Ikx("disabled",t.disabled)("required",t.required),p.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),p.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[p._Bn([{provide:wd,useExisting:r}]),p.qOj,p.TTD]}),r})(),br=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[ua],imports:[Ve,to,Qe,Ve,to]}),r})();function Zp(r,a){1&r&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&r&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let Xp=(()=>{class r{constructor(e,t,s,u,d){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=u,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",E(4147).i8)}close(){this.dialogRef.close()}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(_n),p.Y36(An),p.Y36(Wr),p.Y36(ks),p.Y36(gi))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"input",2,3),p.NdJ("ngModelChange",function(u){return t.subject=u}),p.qZA(),p.YNc(10,Zp,3,3,"mat-error",4),p.qZA(),p.TgZ(11,"mat-form-field")(12,"mat-label"),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.TgZ(15,"textarea",5),p.NdJ("ngModelChange",function(u){return t.message=u}),p.ALo(16,"translate"),p._uU(17," "),p.qZA(),p.TgZ(18,"mat-hint"),p._uU(19),p.ALo(20,"translate"),p.qZA()()(),p.TgZ(21,"div",6)(22,"div",7)(23,"button",8),p.NdJ("click",function(){return t.close()}),p._uU(24),p.ALo(25,"translate"),p.qZA(),p.TgZ(26,"button",9),p.NdJ("click",function(){return t.sendBugReport()}),p._uU(27),p.ALo(28,"translate"),p.qZA()()()),2&e){const s=p.MAs(9);p.xp6(1),p.Oqu(p.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),p.xp6(5),p.Oqu(p.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),p.xp6(2),p.Q6J("ngModel",t.subject),p.xp6(2),p.Q6J("ngIf",s.invalid),p.xp6(3),p.Oqu(p.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),p.xp6(2),p.s9C("placeholder",p.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),p.Q6J("ngModel",t.message),p.xp6(4),p.Oqu(p.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),p.xp6(5),p.hij(" ",p.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),p.xp6(2),p.Q6J("disabled",s.invalid),p.xp6(1),p.hij(" ",p.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[M.O5,oo,ws,nc,qp,ji,zh,Kh,y_,cs,Ot,Nr,qr,_r,yt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),r})(),ef=(()=>{class r{transform(e,t,s){return e[`${s}_${t}`]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=p.Yjl({name:"localisedText",type:r,pure:!0}),r})(),tf=(()=>{class r{transform(e,t){return e["link_"+t]||e.link_en}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=p.Yjl({name:"localisedLink",type:r,pure:!0}),r})(),nf=(()=>{class r{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=p.Yjl({name:"footerLogoPath",type:r,pure:!0}),r})();function rf(r,a){if(1&r&&(p.TgZ(0,"a",13),p.ALo(1,"localisedLink"),p._UZ(2,"img",14),p.ALo(3,"footerLogoPath"),p.qZA()),2&r){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("href",p.xi3(1,2,e,t.language),p.LSH),p.xp6(2),p.s9C("src",p.lcZ(3,5,e.logo),p.LSH)}}function af(r,a){if(1&r&&(p.TgZ(0,"span"),p._UZ(1,"img",14),p.ALo(2,"footerLogoPath"),p.qZA()),2&r){const e=p.oxw().$implicit;p.xp6(1),p.s9C("src",p.lcZ(2,1,e.logo),p.LSH)}}function sf(r,a){if(1&r&&(p.TgZ(0,"div"),p.YNc(1,rf,4,7,"a",11),p.ALo(2,"localisedLink"),p.YNc(3,af,3,3,"span",12),p.ALo(4,"localisedLink"),p.qZA()),2&r){const e=a.$implicit,t=p.oxw(3);p.xp6(1),p.Q6J("ngIf",p.xi3(2,2,e,t.language)),p.xp6(2),p.Q6J("ngIf",!p.xi3(4,5,e,t.language))}}const lf=function(r){return{"min-height":r}};function _H(r,a){if(1&r&&(p.TgZ(0,"div",10),p.YNc(1,sf,5,8,"div",5),p.qZA()),2&r){const e=p.oxw().$implicit,t=p.oxw();p.Q6J("ngStyle",p.VKq(2,lf,t.columnContentHeight+"px")),p.xp6(1),p.Q6J("ngForOf",e.elements)}}const po=function(r){return{color:r}};function bH(r,a){if(1&r&&(p.TgZ(0,"i",20),p._uU(1),p.qZA()),2&r){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("ngStyle",p.VKq(2,po,t.linksTextColor)),p.xp6(1),p.hij(" ",e.icon," ")}}function CH(r,a){if(1&r){const e=p.EpF();p.TgZ(0,"span",21),p.NdJ("click",function(){p.CHM(e);const s=p.oxw().$implicit,u=p.oxw(3);return p.KtG(u.openDialog(s.dialog))}),p._uU(1),p.ALo(2,"localisedText"),p.qZA()}if(2&r){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("ngStyle",p.VKq(6,po,t.linksTextColor)),p.xp6(1),p.hij("",p.Dn7(2,2,e,t.language,"label")," ")}}function wH(r,a){if(1&r&&(p.TgZ(0,"a",22),p.ALo(1,"localisedLink"),p._uU(2),p.ALo(3,"localisedText"),p.qZA()),2&r){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("href",p.xi3(1,3,e,t.language),p.LSH)("ngStyle",p.VKq(10,po,t.linksTextColor)),p.xp6(2),p.Oqu(p.Dn7(3,6,e,t.language,"label"))}}function yH(r,a){if(1&r&&(p.TgZ(0,"span",10),p._uU(1),p.ALo(2,"localisedText"),p.qZA()),2&r){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("ngStyle",p.VKq(6,po,t.linksTextColor)),p.xp6(1),p.Oqu(p.Dn7(2,2,e,t.language,"label"))}}function vH(r,a){if(1&r&&(p.TgZ(0,"div",16),p.YNc(1,bH,2,4,"i",17),p.YNc(2,CH,3,8,"span",18),p.YNc(3,wH,4,12,"a",19),p.ALo(4,"localisedLink"),p.YNc(5,yH,3,8,"span",9),p.ALo(6,"localisedLink"),p.qZA()),2&r){const e=a.$implicit,t=p.oxw(3);p.xp6(1),p.Q6J("ngIf",e.icon),p.xp6(1),p.Q6J("ngIf",e.dialog),p.xp6(1),p.Q6J("ngIf",p.xi3(4,4,e,t.language)&&!e.dialog),p.xp6(2),p.Q6J("ngIf",!p.xi3(6,7,e,t.language)&&!e.dialog)}}const AH=function(r){return{height:r}};function xH(r,a){if(1&r&&(p.TgZ(0,"div",10),p.YNc(1,vH,7,10,"div",15),p.qZA()),2&r){const e=p.oxw().$implicit,t=p.oxw();p.Q6J("ngStyle",p.VKq(2,AH,t.columnContentHeight+"px")),p.xp6(1),p.Q6J("ngForOf",e.elements)}}function TH(r,a){if(1&r&&(p.TgZ(0,"div",7)(1,"h6",8),p._uU(2),p.ALo(3,"localisedText"),p.qZA(),p.YNc(4,_H,2,4,"div",9),p.YNc(5,xH,2,4,"div",9),p.qZA()),2&r){const e=a.$implicit,t=p.oxw();p.ekj("my-auto",t.containsLogos),p.xp6(1),p.Q6J("ngStyle",p.VKq(10,po,t.headersTextColor)),p.xp6(1),p.hij(" ",p.Dn7(3,6,e,t.language,"title")," "),p.xp6(2),p.Q6J("ngIf",e.logos),p.xp6(1),p.Q6J("ngIf",e.elements&&!e.logos)}}function SH(r,a){if(1&r&&(p.TgZ(0,"span")(1,"a",6),p._uU(2),p.qZA()()),2&r){const e=a.$implicit,t=a.index,s=p.oxw();p.xp6(1),p.Q6J("href",e.url,p.LSH)("ngStyle",p.VKq(3,po,s.copyrightTextColor)),p.xp6(1),p.Oqu(t?", "+e.name:e.name)}}const EH=function(r){return{background:r}};let qE=(()=>{class r{constructor(e,t,s,u){this.storeService=e,this.translateService=t,this.utilsService=s,this.dialog=u,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="N/A",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=E(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=E(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(e=>{const t=e.match("\\bVersion:\\s*([^,\\s]+)");null!==t&&(this.backendVersion=t[1])}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(e){const t=on();"reportIssue"===e&&(t.width="550px",this.dialog.open(Xp,t))}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(gi),p.Y36(An),p.Y36(Ei),p.Y36(bn))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(p.TgZ(0,"footer",0)(1,"div",1),p.YNc(2,TH,6,12,"div",2),p.qZA(),p._UZ(3,"hr",3),p.TgZ(4,"div",4),p._uU(5),p.YNc(6,SH,3,5,"span",5),p._uU(7,", web application: "),p.TgZ(8,"a",6),p._uU(9),p.qZA(),p._uU(10,", server: "),p.TgZ(11,"a",6),p._uU(12),p.qZA()()()),2&e&&(p.Q6J("ngStyle",p.VKq(11,EH,t.bgColor)),p.xp6(2),p.Q6J("ngForOf",t.footerColumns),p.xp6(2),p.Q6J("ngStyle",p.VKq(13,po,t.copyrightTextColor)),p.xp6(1),p.hij(" \xa9 ",t.currentYear," Copyright: "),p.xp6(1),p.Q6J("ngForOf",t.copyrightItems),p.xp6(2),p.Q6J("href",t.githubRepository,p.LSH)("ngStyle",p.VKq(15,po,t.copyrightTextColor)),p.xp6(1),p.Oqu(t.guiVersion),p.xp6(2),p.Q6J("href",t.githubBackendRepository,p.LSH)("ngStyle",p.VKq(17,po,t.copyrightTextColor)),p.xp6(1),p.Oqu(t.backendVersion))},dependencies:[M.sg,M.O5,M.PC,ef,tf,nf],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),r})();function MH(r,a){if(1&r&&(p.TgZ(0,"div",8),p._UZ(1,"div",9),p.qZA()),2&r){const e=p.oxw();p.xp6(1),p.Q6J("innerHTML",e.logo,p.oJD)}}function DH(r,a){if(1&r&&(p.TgZ(0,"div",10),p._UZ(1,"div",11)(2,"mat-icon",12),p.qZA()),2&r){const e=p.oxw();p.xp6(1),p.Q6J("innerHTML",e.logo,p.oJD)}}const HH=function(r){return{color:r}};function RH(r,a){if(1&r&&(p.TgZ(0,"p",13),p._uU(1),p.qZA()),2&r){const e=p.oxw();p.Q6J("ngStyle",p.VKq(2,HH,e.textColor)),p.xp6(1),p.hij(" ",e.headerTitle," ")}}const PH=function(r,a){return{background:r,color:a}},IH=function(r,a){return{"min-height":r,"background-color":a}};let kH=(()=>{class r{constructor(e,t,s,u){this.storeService=e,this.sanitizer=t,this.preferredLangService=s,this.translateService=u,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(gi),p.Y36(hi),p.Y36($A),p.Y36(An))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0),p.YNc(1,MH,2,1,"div",1),p.YNc(2,DH,3,1,"div",2),p.YNc(3,RH,2,4,"p",3),p.qZA(),p.TgZ(4,"div",4)(5,"div",5)(6,"div",6),p._UZ(7,"router-outlet"),p.qZA(),p.TgZ(8,"div",7),p._UZ(9,"perun-web-apps-footer"),p.qZA()()()),2&e&&(p.Q6J("ngStyle",p.WLB(5,PH,t.headerBackgroundColor,t.headerTextColor)),p.xp6(1),p.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),p.xp6(1),p.Q6J("ngIf","publications"===t.application),p.xp6(1),p.Q6J("ngIf",!!t.headerTitle),p.xp6(2),p.Q6J("ngStyle",p.WLB(8,IH,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[M.O5,M.PC,Qn,Uo,qE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),r})(),zE=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[M.ez]}),r})(),VH=(()=>{class r{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=p.Yjl({name:"userFullName",type:r,pure:!0}),r})(),V0=(()=>{class r{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const s=this.storage.getProperty("custom_labels");if(s)for(const u of s)if(u.label===e)return u[t];return e}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(An,16),p.Y36(gi,16))},r.\u0275pipe=p.Yjl({name:"customTranslate",type:r,pure:!0}),r})();function qH(r,a){if(1&r&&(p.O4$(),p._UZ(0,"circle",4)),2&r){const e=p.oxw(),t=p.MAs(1);p.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),p.uIk("r",e._getCircleRadius())}}function zH(r,a){if(1&r&&(p.O4$(),p._UZ(0,"circle",4)),2&r){const e=p.oxw(),t=p.MAs(1);p.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),p.uIk("r",e._getCircleRadius())}}const WH=zi(class{constructor(r){this._elementRef=r}},"primary"),$H=new p.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function QH(){return{diameter:100}}});class Cr extends WH{constructor(a,e,t,s,u,d,l,n){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Qt.w0.EMPTY,this.mode="determinate";const i=Cr._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),i.has(t.head)||i.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===s&&!!u&&!u._forceAnimations,"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),u&&(u.color&&(this.color=this.defaultColor=u.color),u.diameter&&(this.diameter=u.diameter),u.strokeWidth&&(this.strokeWidth=u.strokeWidth)),e.isBrowser&&e.SAFARI&&l&&d&&n&&(this._resizeSubscription=l.change(150).subscribe(()=>{"indeterminate"===this.mode&&n.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=Pi(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=Pi(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,Pi(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Qc(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){const e=50*(a.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Cr._diameters;let s=t.get(a);if(!s||!s.has(e)){const u=this._document.createElement("style");u.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),u.textContent=this._getAnimationText(),a.appendChild(u),s||(s=new Set,t.set(a,s)),s.add(e)}}_getAnimationText(){const a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Cr._diameters=new WeakMap,Cr.\u0275fac=function(a){return new(a||Cr)(p.Y36(p.SBq),p.Y36(Jt),p.Y36(M.K0,8),p.Y36(p.QbO,8),p.Y36($H),p.Y36(p.sBO),p.Y36(ts),p.Y36(p.R0b))},Cr.\u0275cmp=p.Xpm({type:Cr,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(p.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),p.Udp("width",e.diameter,"px")("height",e.diameter,"px"),p.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[p.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(p.O4$(),p.TgZ(0,"svg",0,1),p.YNc(2,qH,1,11,"circle",2),p.YNc(3,zH,1,9,"circle",3),p.qZA()),2&a&&(p.Udp("width",e.diameter,"px")("height",e.diameter,"px"),p.Q6J("ngSwitch","indeterminate"===e.mode),p.uIk("viewBox",e._getViewBox()),p.xp6(2),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngSwitchCase",!1))},dependencies:[M.RF,M.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let lC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Qe,M.ez,Qe]}),r})();function JH(r,a){1&r&&p._UZ(0,"mat-spinner",7)}function KH(r,a){1&r&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&r&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function ZH(r,a){1&r&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&r&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function XH(r,a){if(1&r){const e=p.EpF();p.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),p._uU(3),p.ALo(4,"translate"),p.qZA(),p.TgZ(5,"input",9,10),p.NdJ("ngModelChange",function(s){p.CHM(e);const u=p.oxw();return p.KtG(u.subject=s)}),p.qZA(),p.YNc(7,KH,3,3,"mat-error",11),p.qZA(),p.TgZ(8,"mat-form-field")(9,"mat-label"),p._uU(10),p.ALo(11,"translate"),p.qZA(),p.TgZ(12,"textarea",12,13),p.NdJ("ngModelChange",function(s){p.CHM(e);const u=p.oxw();return p.KtG(u.message=s)}),p.ALo(14,"translate"),p._uU(15," "),p.qZA(),p.YNc(16,ZH,3,3,"mat-error",11),p.qZA()()}if(2&r){const e=p.MAs(6),t=p.MAs(13),s=p.oxw();p.xp6(3),p.Oqu(p.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),p.xp6(2),p.Q6J("ngModel",s.subject),p.xp6(2),p.Q6J("ngIf",e.invalid),p.xp6(3),p.Oqu(p.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),p.xp6(2),p.s9C("placeholder",p.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),p.Q6J("ngModel",s.message),p.xp6(4),p.Q6J("ngIf",t.invalid)}}let eR=(()=>{class r{constructor(e,t,s,u,d,l){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=u,this.data=d,this.storeService=l,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const s=/"password":".+?"/;let u=JSON.stringify(this.data.error.payload);u=u.replace(s,'"password":"####"'),t=t.concat("Payload:\n"+u+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",E(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(_n),p.Y36(An),p.Y36(Wr),p.Y36(ks),p.Y36(ao),p.Y36(gi))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.YNc(3,JH,1,0,"mat-spinner",1),p.YNc(4,XH,17,13,"div",2),p.TgZ(5,"div",3)(6,"div",4)(7,"button",5),p.NdJ("click",function(){return t.dialogRef.close()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",6),p.NdJ("click",function(){return t.sendBugReport()}),p._uU(11),p.ALo(12,"translate"),p.qZA()()()),2&e&&(p.xp6(1),p.Oqu(p.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),p.xp6(2),p.Q6J("ngIf",t.loading),p.xp6(1),p.Q6J("ngIf",!t.loading),p.xp6(4),p.hij(" ",p.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),p.xp6(2),p.Q6J("disabled",""===t.message||""===t.subject||t.loading),p.xp6(1),p.hij(" ",p.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[M.O5,Nr,qr,_r,ji,zh,Kh,cs,oo,ws,nc,qp,Ot,Cr,yt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),r})(),tR=(()=>{class r{constructor(e,t,s){this.dialogRef=e,this.dialog=t,this.data=s}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=on();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(eR,e)}),this.dialogRef.close()}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(_n),p.Y36(bn),p.Y36(ao))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.qZA(),p.TgZ(2,"div",1),p._uU(3),p.qZA(),p.TgZ(4,"div",2)(5,"div",3)(6,"button",4),p.NdJ("click",function(){return t.onBugReportClick()}),p._uU(7),p.ALo(8,"translate"),p.qZA(),p.TgZ(9,"button",5),p.NdJ("click",function(){return t.onCloseClick()}),p._uU(10),p.ALo(11,"translate"),p.qZA()()()),2&e&&(p.xp6(1),p.Oqu(t.data.title),p.xp6(2),p.hij(" ",t.data.description,"\n"),p.xp6(3),p.Q6J("hidden","error"!==t.data.type),p.xp6(1),p.hij(" ",p.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),p.xp6(3),p.hij(" ",p.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Nr,qr,_r,ji,yt]}),r})();const iR=[[["caption"]],[["colgroup"],["col"]]],nR=["caption","colgroup, col"];function O0(r){return class extends r{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=ze(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const qd=new p.OlP("CDK_TABLE");let zd=(()=>{class r{constructor(e){this.template=e}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.Rgc))},r.\u0275dir=p.lG2({type:r,selectors:[["","cdkCellDef",""]]}),r})(),Gd=(()=>{class r{constructor(e){this.template=e}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.Rgc))},r.\u0275dir=p.lG2({type:r,selectors:[["","cdkHeaderCellDef",""]]}),r})(),cC=(()=>{class r{constructor(e){this.template=e}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.Rgc))},r.\u0275dir=p.lG2({type:r,selectors:[["","cdkFooterCellDef",""]]}),r})();class sR{}const lR=O0(sR);let fo=(()=>{class r extends lR{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=ze(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(qd,8))},r.\u0275dir=p.lG2({type:r,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,s){if(1&e&&(p.Suo(s,zd,5),p.Suo(s,Gd,5),p.Suo(s,cC,5)),2&e){let u;p.iGM(u=p.CRH())&&(t.cell=u.first),p.iGM(u=p.CRH())&&(t.headerCell=u.first),p.iGM(u=p.CRH())&&(t.footerCell=u.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[p._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:r}]),p.qOj]}),r})();class L0{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let j0=(()=>{class r extends L0{constructor(e,t){super(e,t)}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(fo),p.Y36(p.SBq))},r.\u0275dir=p.lG2({type:r,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[p.qOj]}),r})(),F0=(()=>{class r extends L0{constructor(e,t){if(super(e,t),1===e._table?._elementRef.nativeElement.nodeType){const s=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===s||"treegrid"===s?"gridcell":"cell")}}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(fo),p.Y36(p.SBq))},r.\u0275dir=p.lG2({type:r,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[p.qOj]}),r})();class WE{constructor(){this.tasks=[],this.endTasks=[]}}const U0=new p.OlP("_COALESCED_STYLE_SCHEDULER");let $E=(()=>{class r{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new He.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new WE,this._getScheduleObservable().pipe(gt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new WE;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,$e.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Dt.q)(1))}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(p.R0b))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})(),N0=(()=>{class r{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof cf?e.headerCell.template:this instanceof df?e.footerCell.template:e.cell.template}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.Rgc),p.Y36(p.ZZ4))},r.\u0275dir=p.lG2({type:r,features:[p.TTD]}),r})();class cR extends N0{}const dR=O0(cR);let cf=(()=>{class r extends dR{constructor(e,t,s){super(e,t),this._table=s}ngOnChanges(e){super.ngOnChanges(e)}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.Rgc),p.Y36(p.ZZ4),p.Y36(qd,8))},r.\u0275dir=p.lG2({type:r,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[p.qOj,p.TTD]}),r})();class uR extends N0{}const hR=O0(uR);let df=(()=>{class r extends hR{constructor(e,t,s){super(e,t),this._table=s}ngOnChanges(e){super.ngOnChanges(e)}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.Rgc),p.Y36(p.ZZ4),p.Y36(qd,8))},r.\u0275dir=p.lG2({type:r,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[p.qOj,p.TTD]}),r})(),dC=(()=>{class r extends N0{constructor(e,t,s){super(e,t),this._table=s}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.Rgc),p.Y36(p.ZZ4),p.Y36(qd,8))},r.\u0275dir=p.lG2({type:r,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[p.qOj]}),r})(),mo=(()=>{class r{constructor(e){this._viewContainer=e,r.mostRecentCellOutlet=this}ngOnDestroy(){r.mostRecentCellOutlet===this&&(r.mostRecentCellOutlet=null)}}return r.mostRecentCellOutlet=null,r.\u0275fac=function(e){return new(e||r)(p.Y36(p.s_b))},r.\u0275dir=p.lG2({type:r,selectors:[["","cdkCellOutlet",""]]}),r})(),q0=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=p.Xpm({type:r,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&p.GkF(0,0)},dependencies:[mo],encapsulation:2}),r})(),G0=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=p.Xpm({type:r,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&p.GkF(0,0)},dependencies:[mo],encapsulation:2}),r})(),uC=(()=>{class r{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.Rgc))},r.\u0275dir=p.lG2({type:r,selectors:[["ng-template","cdkNoDataRow",""]]}),r})();const QE=["top","bottom","left","right"];class pR{constructor(a,e,t,s,u=!0,d=!0,l){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=s,this._isBrowser=u,this._needsPositionStickyOnElement=d,this._positionListener=l,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(a,e){const t=[];for(const s of a)if(s.nodeType===s.ELEMENT_NODE){t.push(s);for(let u=0;u{for(const s of t)this._removeStickyStyle(s,e)})}updateStickyColumns(a,e,t,s=!0){if(!a.length||!this._isBrowser||!e.some(h=>h)&&!t.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const u=a[0],d=u.children.length,l=this._getCellWidths(u,s),n=this._getStickyStartColumnPositions(l,e),i=this._getStickyEndColumnPositions(l,t),o=e.lastIndexOf(!0),c=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,m=h?"right":"left",g=h?"left":"right";for(const f of a)for(let w=0;we[w]?f:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===c?[]:l.slice(c).map((f,w)=>t[w+c]?f:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const s="bottom"===t?a.slice().reverse():a,u="bottom"===t?e.slice().reverse():e,d=[],l=[],n=[];for(let o=0,c=0;o{for(let o=0;o{e.some(s=>!s)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(a,e){for(const s of e)a.style[s]="",a.classList.remove(this._borderCellCss[s]);QE.some(s=>-1===e.indexOf(s)&&a.style[s])?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}_addStickyStyle(a,e,t,s){a.classList.add(this._stickCellCss),s&&a.classList.add(this._borderCellCss[e]),a.style[e]=`${t}px`,a.style.zIndex=this._getCalculatedZIndex(a),this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(a){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const s of QE)a.style[s]&&(t+=e[s]);return t?`${t}`:""}_getCellWidths(a,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],s=a.children;for(let u=0;u0;u--)e[u]&&(t[u]=s,s+=a[u]);return t}}const W0=new p.OlP("CDK_SPL");let hC=(()=>{class r{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.s_b),p.Y36(p.SBq))},r.\u0275dir=p.lG2({type:r,selectors:[["","rowOutlet",""]]}),r})(),pC=(()=>{class r{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.s_b),p.Y36(p.SBq))},r.\u0275dir=p.lG2({type:r,selectors:[["","headerRowOutlet",""]]}),r})(),fC=(()=>{class r{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.s_b),p.Y36(p.SBq))},r.\u0275dir=p.lG2({type:r,selectors:[["","footerRowOutlet",""]]}),r})(),mC=(()=>{class r{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.s_b),p.Y36(p.SBq))},r.\u0275dir=p.lG2({type:r,selectors:[["","noDataRowOutlet",""]]}),r})(),gC=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c,h,m){this._differs=e,this._changeDetectorRef=t,this._elementRef=s,this._dir=d,this._platform=n,this._viewRepeater=i,this._coalescedStyleScheduler=o,this._viewportRuler=c,this._stickyPositioningListener=h,this._ngZone=m,this._onDestroy=new He.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new p.vpe,this.viewChange=new $t({start:0,end:Number.MAX_VALUE}),u||this._elementRef.nativeElement.setAttribute("role","table"),this._document=l,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=ze(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=ze(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(gt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),El(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(s,u,d)=>this._getEmbeddedViewArgs(s.item,d),s=>s.item.data,s=>{1===s.operation&&s.context&&this._renderCellTemplateForItem(s.record.item.rowDef,s.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(s=>{t.get(s.currentIndex).context.$implicit=s.item.data}),this._updateNoDataRow(),this._ngZone&&p.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Dt.q)(1),gt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),s=this._elementRef.nativeElement.querySelector("thead");s&&(s.style.display=e.length?"":"none");const u=this._headerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,u,"top"),this._headerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),s=this._elementRef.nativeElement.querySelector("tfoot");s&&(s.style.display=e.length?"":"none");const u=this._footerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,u,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,u),this._footerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),s=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...s],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((u,d)=>{this._addStickyColumnStyles([u],this._headerRowDefs[d])}),this._rowDefs.forEach(u=>{const d=[];for(let l=0;l{this._addStickyColumnStyles([u],this._footerRowDefs[d])}),Array.from(this._columnDefsByName.values()).forEach(u=>u.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let s=0;s{const l=s&&s.has(d)?s.get(d):[];if(l.length){const n=l.shift();return n.dataIndex=t,n}return{data:e,rowDef:d,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),_C(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=_C(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=_C(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=_C(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(d,l)=>d||!!l.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const s=this._headerRowDefs.reduce(e,!1);s&&this._forceRenderHeaderRows();const u=this._footerRowDefs.reduce(e,!1);return u&&this._forceRenderFooterRows(),t||s||u}_switchDataSource(e){this._data=[],El(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;El(this.dataSource)?e=this.dataSource.connect(this):Kt(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,Me.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(gt(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const s=Array.from(t.columns||[]).map(l=>this._columnDefsByName.get(l)),u=s.map(l=>l.sticky),d=s.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(e,u,d,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let s=0;s!u.when||u.when(t,e));else{let u=this._rowDefs.find(d=>d.when&&d.when(t,e))||this._defaultRowDef;u&&s.push(u)}return s}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,s,u={}){const d=e.viewContainer.createEmbeddedView(t.template,u,s);return this._renderCellTemplateForItem(t,u),d}_renderCellTemplateForItem(e,t){for(let s of this._getCellTemplates(e))mo.mostRecentCellOutlet&&mo.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,s=e.length;t{const s=this._columnDefsByName.get(t);return e.extractCellTemplate(s)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const s of t){const u=this._document.createElement(s.tag);u.setAttribute("role","rowgroup");for(const d of s.outlets)u.appendChild(d.elementRef.nativeElement);e.appendChild(u)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,s)=>t||s.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new pR(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,Me.of)()).pipe(gt(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const s=this._noDataRowOutlet.viewContainer;if(t){const u=s.createEmbeddedView(e.templateRef),d=u.rootNodes[0];1===u.rootNodes.length&&d?.nodeType===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(e._contentClassName))}else s.clear();this._isShowingNoDataRow=t}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.ZZ4),p.Y36(p.sBO),p.Y36(p.SBq),p.$8M("role"),p.Y36(Sn,8),p.Y36(M.K0),p.Y36(Jt),p.Y36(Ka),p.Y36(U0),p.Y36(ts),p.Y36(W0,12),p.Y36(p.R0b,8))},r.\u0275cmp=p.Xpm({type:r,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,s){if(1&e&&(p.Suo(s,uC,5),p.Suo(s,fo,5),p.Suo(s,dC,5),p.Suo(s,cf,5),p.Suo(s,df,5)),2&e){let u;p.iGM(u=p.CRH())&&(t._noDataRow=u.first),p.iGM(u=p.CRH())&&(t._contentColumnDefs=u),p.iGM(u=p.CRH())&&(t._contentRowDefs=u),p.iGM(u=p.CRH())&&(t._contentHeaderRowDefs=u),p.iGM(u=p.CRH())&&(t._contentFooterRowDefs=u)}},viewQuery:function(e,t){if(1&e&&(p.Gf(hC,7),p.Gf(pC,7),p.Gf(fC,7),p.Gf(mC,7)),2&e){let s;p.iGM(s=p.CRH())&&(t._rowOutlet=s.first),p.iGM(s=p.CRH())&&(t._headerRowOutlet=s.first),p.iGM(s=p.CRH())&&(t._footerRowOutlet=s.first),p.iGM(s=p.CRH())&&(t._noDataRowOutlet=s.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&p.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[p._Bn([{provide:qd,useExisting:r},{provide:Ka,useClass:Wg},{provide:U0,useClass:$E},{provide:W0,useValue:null}])],ngContentSelectors:nR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(p.F$t(iR),p.Hsn(0),p.Hsn(1,1),p.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[hC,pC,fC,mC],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),r})();function _C(r,a){return r.concat(Array.from(a))}let mR=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Gi]}),r})();const gR=[[["caption"]],[["colgroup"],["col"]]],_R=["caption","colgroup, col"];let $0=(()=>{class r extends gC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275cmp=p.Xpm({type:r,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&p.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[p._Bn([{provide:Ka,useClass:Wg},{provide:gC,useExisting:r},{provide:qd,useExisting:r},{provide:U0,useClass:$E},{provide:W0,useValue:null}]),p.qOj],ngContentSelectors:_R,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(p.F$t(gR),p.Hsn(0),p.Hsn(1,1),p.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[hC,pC,fC,mC],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),r})(),bC=(()=>{class r extends zd{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275dir=p.lG2({type:r,selectors:[["","matCellDef",""]],features:[p._Bn([{provide:zd,useExisting:r}]),p.qOj]}),r})(),CC=(()=>{class r extends Gd{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275dir=p.lG2({type:r,selectors:[["","matHeaderCellDef",""]],features:[p._Bn([{provide:Gd,useExisting:r}]),p.qOj]}),r})(),wC=(()=>{class r extends fo{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275dir=p.lG2({type:r,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[p._Bn([{provide:fo,useExisting:r},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:r}]),p.qOj]}),r})(),yC=(()=>{class r extends j0{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275dir=p.lG2({type:r,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[p.qOj]}),r})(),vC=(()=>{class r extends F0{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275dir=p.lG2({type:r,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[p.qOj]}),r})(),JE=(()=>{class r extends cf{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275dir=p.lG2({type:r,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[p._Bn([{provide:cf,useExisting:r}]),p.qOj]}),r})(),Q0=(()=>{class r extends dC{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275dir=p.lG2({type:r,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[p._Bn([{provide:dC,useExisting:r}]),p.qOj]}),r})(),KE=(()=>{class r extends q0{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275cmp=p.Xpm({type:r,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[p._Bn([{provide:q0,useExisting:r}]),p.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&p.GkF(0,0)},dependencies:[mo],encapsulation:2}),r})(),Y0=(()=>{class r extends G0{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275cmp=p.Xpm({type:r,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[p._Bn([{provide:G0,useExisting:r}]),p.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&p.GkF(0,0)},dependencies:[mo],encapsulation:2}),r})(),AC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[mR,Qe,Qe]}),r})();class MR extends Gg{constructor(a=[]){super(),this._renderData=new $t([]),this._filter=new $t(""),this._internalPageChanges=new He.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const s=e[t];if(eh(s)){const u=Number(s);return u<9007199254740991?u:s}return s},this.sortData=(e,t)=>{const s=t.active,u=t.direction;return s&&""!=u?e.sort((d,l)=>{let n=this.sortingDataAccessor(d,s),i=this.sortingDataAccessor(l,s);const o=typeof n,c=typeof i;o!==c&&("number"===o&&(n+=""),"number"===c&&(i+=""));let h=0;return null!=n&&null!=i?n>i?h=1:n{const s=Object.keys(e).reduce((d,l)=>d+e[l]+"\u25ec","").toLowerCase(),u=t.trim().toLowerCase();return-1!=s.indexOf(u)},this._data=new $t(a),this._updateChangeSubscription()}get data(){return this._data.value}set data(a){a=Array.isArray(a)?a:[],this._data.next(a),this._renderChangesSubscription||this._filterData(a)}get filter(){return this._filter.value}set filter(a){this._filter.next(a),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(a){this._sort=a,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(a){this._paginator=a,this._updateChangeSubscription()}_updateChangeSubscription(){const a=this._sort?(0,an.T)(this._sort.sortChange,this._sort.initialized):(0,Me.of)(null),e=this._paginator?(0,an.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Me.of)(null),s=(0,Vt.a)([this._data,this._filter]).pipe((0,ct.U)(([l])=>this._filterData(l))),u=(0,Vt.a)([s,a]).pipe((0,ct.U)(([l])=>this._orderData(l))),d=(0,Vt.a)([u,e]).pipe((0,ct.U)(([l])=>this._pageData(l)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=d.subscribe(l=>this._renderData.next(l))}_filterData(a){return this.filteredData=null==this.filter||""===this.filter?a:a.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(a){return this.sort?this.sortData(a.slice(),this.sort):a}_pageData(a){if(!this.paginator)return a;const e=this.paginator.pageIndex*this.paginator.pageSize;return a.slice(e,e+this.paginator.pageSize)}_updatePaginator(a){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=a,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,s=Math.min(e.pageIndex,t);s!==e.pageIndex&&(e.pageIndex=s,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class xC extends MR{}function DR(r,a){1&r&&p._UZ(0,"mat-spinner",3)}function HR(r,a){1&r&&p._UZ(0,"th",15)}function RR(r,a){if(1&r&&(p.TgZ(0,"td",16),p._uU(1),p.qZA()),2&r){const e=a.$implicit;p.xp6(1),p.hij(" ",e.userExtSource.extSource.name," ")}}function PR(r,a){1&r&&p._UZ(0,"tr",17)}function IR(r,a){1&r&&p._UZ(0,"tr",18)}function kR(r,a){if(1&r){const e=p.EpF();p.TgZ(0,"div")(1,"div",4)(2,"p"),p._uU(3),p.ALo(4,"translate"),p.ALo(5,"customTranslate"),p.qZA(),p.TgZ(6,"div",5),p._uU(7),p.ALo(8,"translate"),p.ALo(9,"customTranslate"),p.qZA(),p.TgZ(10,"table",6),p.ynx(11,7),p.YNc(12,HR,1,0,"th",8),p.YNc(13,RR,2,1,"td",9),p.BQk(),p.YNc(14,PR,1,0,"tr",10),p.YNc(15,IR,1,0,"tr",11),p.qZA()(),p.TgZ(16,"div",12)(17,"button",13),p.NdJ("click",function(){p.CHM(e);const s=p.oxw();return p.KtG(s.onCancel())}),p._uU(18),p.ALo(19,"translate"),p.ALo(20,"customTranslate"),p.qZA(),p.TgZ(21,"button",14),p.NdJ("click",function(){p.CHM(e);const s=p.oxw();return p.KtG(s.onSubmit())}),p._uU(22),p.ALo(23,"translate"),p.ALo(24,"customTranslate"),p.qZA()()()}if(2&r){const e=p.oxw();p.xp6(3),p.hij(" ",p.lcZ(4,7,p.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),p.xp6(4),p.hij(" ",p.lcZ(8,11,p.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),p.xp6(3),p.Q6J("dataSource",e.dataSource),p.xp6(4),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(3),p.hij(" ",p.lcZ(19,15,p.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),p.xp6(4),p.hij(" ",p.lcZ(23,19,p.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let VR=(()=>{class r{constructor(e,t,s,u,d){this.dialogRef=e,this.data=t,this.usersManagerService=s,this.translate=u,this.notificator=d,this.force=!1,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new xC(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=this.data.extSources.map(t=>t.userExtSource.id);this.usersManagerService.removeUserExtSources(this.data.userId,e,this.force).subscribe({next:()=>{this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(_n),p.Y36(ao),p.Y36(Vs),p.Y36(eu),p.Y36(Wr))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.ALo(3,"customTranslate"),p.qZA(),p.TgZ(4,"div"),p.YNc(5,DR,1,0,"mat-spinner",1),p.YNc(6,kR,25,23,"div",2),p.qZA()),2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,6,p.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),p.xp6(3),p.Tol(t.theme),p.xp6(1),p.Q6J("ngIf",t.loading),p.xp6(1),p.Q6J("ngIf",!t.loading))},dependencies:[M.O5,$0,CC,JE,wC,bC,Q0,yC,vC,KE,Y0,Nr,qr,_r,ji,Cr,yt,V0]}),r})();function JR(r,a){1&r&&(p.TgZ(0,"mat-error",8),p._uU(1),p.ALo(2,"translate"),p.ALo(3,"customTranslate"),p.qZA()),2&r&&(p.xp6(1),p.Oqu(p.lcZ(2,1,p.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class go{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Qb(null,[Ql.required,Ql.pattern(go.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const a=this.data.attribute?.value??[],e=this.sshControl.value;a.includes(e)||a.push(e),this.data.attribute.value=a,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{a.pop()})}}function iP(r,a){if(1&r&&(p.TgZ(0,"div",9),p._UZ(1,"perun-web-apps-notification",10),p.qZA()),2&r){const e=a.$implicit;p.xp6(1),p.Q6J("data",e)("inDialog",!0)}}function nP(r,a){if(1&r&&(p.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),p.YNc(2,iP,2,2,"div",8),p.qZA()()),2&r){const e=p.oxw();p.xp6(2),p.Q6J("cdkVirtualForOf",e.notifications)}}function rP(r,a){1&r&&(p.TgZ(0,"perun-web-apps-alert",11),p._uU(1),p.ALo(2,"translate"),p.ALo(3,"customTranslate"),p.qZA()),2&r&&(p.xp6(1),p.Oqu(p.lcZ(2,1,p.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}go.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],go.sshKeyPattern="^("+go.allowedSshKeys.join("|")+").+$",go.\u0275fac=function(a){return new(a||go)(p.Y36(_n),p.Y36(ao),p.Y36(tu))},go.\u0275cmp=p.Xpm({type:go,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(a,e){1&a&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.ALo(3,"customTranslate"),p.qZA(),p.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),p._UZ(7,"textarea",3),p.ALo(8,"translate"),p.ALo(9,"customTranslate"),p.qZA(),p.YNc(10,JR,4,5,"mat-error",4),p.qZA()(),p.TgZ(11,"div",5)(12,"button",6),p.NdJ("click",function(){return e.onCancel()}),p._uU(13),p.ALo(14,"translate"),p.ALo(15,"customTranslate"),p.qZA(),p.TgZ(16,"button",7),p.NdJ("click",function(){return e.onSubmit()}),p._uU(17),p.ALo(18,"translate"),p.ALo(19,"customTranslate"),p.qZA()()),2&a&&(p.xp6(1),p.Oqu(p.lcZ(2,7,p.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),p.xp6(6),p.s9C("placeholder",p.lcZ(8,11,p.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),p.Q6J("formControl",e.sshControl),p.xp6(3),p.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),p.xp6(3),p.hij(" ",p.lcZ(14,15,p.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),p.xp6(3),p.Q6J("disabled",e.sshControl.invalid),p.xp6(1),p.hij(" ",p.lcZ(18,19,p.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[M.O5,oo,ws,nc,ji,zh,Kh,Qp,Se,Ot,Nr,qr,_r,yt,V0],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let XE=(()=>{class r{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(_n),p.Y36(Gl))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.ALo(3,"customTranslate"),p.qZA(),p.YNc(4,nP,3,1,"div",1),p.YNc(5,rP,4,5,"perun-web-apps-alert",2),p.TgZ(6,"div",3)(7,"button",4),p.NdJ("click",function(){return t.onClear()}),p._uU(8),p.ALo(9,"translate"),p.ALo(10,"customTranslate"),p.qZA(),p.TgZ(11,"button",5),p.NdJ("click",function(){return t.onCancel()}),p._uU(12),p.ALo(13,"translate"),p.ALo(14,"customTranslate"),p.qZA()()),2&e&&(p.xp6(1),p.Oqu(p.lcZ(2,5,p.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),p.xp6(3),p.Q6J("ngIf",0!==t.notifications.length),p.xp6(1),p.Q6J("ngIf",0===t.notifications.length),p.xp6(3),p.hij(" ",p.lcZ(9,9,p.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),p.xp6(4),p.hij(" ",p.lcZ(13,13,p.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),r})();const aP=["*",[["mat-toolbar-row"]]],oP=["*","mat-toolbar-row"],sP=zi(class{constructor(r){this._elementRef=r}});let lP=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=p.lG2({type:r,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),r})(),cP=(()=>{class r extends sP{constructor(e,t,s){super(e),this._platform=t,this._document=s}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.SBq),p.Y36(Jt),p.Y36(M.K0))},r.\u0275cmp=p.Xpm({type:r,selectors:[["mat-toolbar"]],contentQueries:function(e,t,s){if(1&e&&p.Suo(s,lP,5),2&e){let u;p.iGM(u=p.CRH())&&(t._toolbarRows=u)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&p.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[p.qOj],ngContentSelectors:oP,decls:2,vars:0,template:function(e,t){1&e&&(p.F$t(aP),p.Hsn(0),p.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),r})(),eM=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Qe,Qe]}),r})(),dP=0;const uP=wl(class{}),tM="mat-badge-content";let hP=(()=>{class r extends uP{constructor(e,t,s,u,d){super(),this._ngZone=e,this._elementRef=t,this._ariaDescriber=s,this._renderer=u,this._animationMode=d,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=dP++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=ze(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=ze(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(tM),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t)})}):e.classList.add(t),e}_updateRenderedContent(e){const t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${tM}`);for(const t of Array.from(e))t!==this._badgeElement&&t.remove()}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(p.R0b),p.Y36(p.SBq),p.Y36(td),p.Y36(p.Qsj),p.Y36(p.QbO,8))},r.\u0275dir=p.lG2({type:r,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&p.ekj("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t.content)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[p.qOj]}),r})(),pP=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[$a,Qe,Qe]}),r})();const J0=function(r){return{color:r}};function fP(r,a){if(1&r&&(p.TgZ(0,"button",8),p.ALo(1,"translate"),p.TgZ(2,"mat-icon",4),p._uU(3," apps "),p.qZA()()),2&r){const e=p.oxw(),t=p.MAs(2);p.Q6J("matMenuTriggerFor",t)("matTooltip",p.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),p.xp6(2),p.Q6J("ngStyle",p.VKq(5,J0,e.iconColor))}}function mP(r,a){if(1&r&&(p.TgZ(0,"span",9),p._uU(1),p.qZA()),2&r){const e=p.oxw();p.Q6J("ngStyle",p.VKq(6,J0,e.textColor)),p.xp6(1),p.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function gP(r,a){if(1&r){const e=p.EpF();p.TgZ(0,"button",10),p.NdJ("click",function(){p.CHM(e);const s=p.oxw();return p.KtG(s.onLogOut())}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&r&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"NAV.LOGOUT")," "))}let _P=(()=>{class r{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(ba))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(p.YNc(0,fP,4,7,"button",0),p.TgZ(1,"mat-menu",null,1)(3,"button",2),p.NdJ("click",function(){return t.redirectToUrl()})("auxclick",function(){return t.redirectToUrl()}),p.TgZ(4,"span"),p._uU(5),p.qZA()()(),p.TgZ(6,"button",3)(7,"mat-icon",4),p._uU(8," person "),p.qZA(),p.YNc(9,mP,2,8,"span",5),p.qZA(),p.TgZ(10,"mat-menu",null,6),p.YNc(12,gP,3,3,"button",7),p.qZA()),2&e){const s=p.MAs(11);p.Q6J("ngIf",t.url),p.xp6(5),p.Oqu(t.label),p.xp6(1),p.Q6J("matMenuTriggerFor",s),p.xp6(1),p.Q6J("ngStyle",p.VKq(6,J0,t.iconColor)),p.xp6(2),p.Q6J("ngIf",null!==t.user),p.xp6(3),p.Q6J("ngIf",t.logoutEnabled)}},dependencies:[M.O5,M.PC,Qn,W_,_a,Q_,ji,I_,yt],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),r})(),bP=(()=>{class r extends $o{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const e=Object.assign({},this.queryParams);delete e.applicationFormItems,this.queryParams=e}}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275dir=p.lG2({type:r,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[p.qOj,p.TTD]}),r})();const Wd=function(r){return{color:r}};function CP(r,a){if(1&r){const e=p.EpF();p.TgZ(0,"button",9),p.NdJ("click",function(){p.CHM(e);const s=p.oxw();return p.KtG(s.onToggleSidenav())}),p.TgZ(1,"mat-icon"),p._uU(2,"menu"),p.qZA()()}if(2&r){const e=p.oxw();p.Q6J("ngStyle",p.VKq(1,Wd,e.iconColor))}}function wP(r,a){if(1&r){const e=p.EpF();p.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),p._uU(3," language "),p.qZA()(),p.TgZ(4,"mat-menu",null,13)(6,"button",14),p.NdJ("click",function(){p.CHM(e);const s=p.oxw();return p.KtG(s.changeLanguage())}),p._uU(7),p.ALo(8,"translate"),p.qZA()()()}if(2&r){const e=p.MAs(5),t=p.oxw();p.Q6J("ngStyle",p.VKq(6,Wd,t.textColor)),p.xp6(1),p.Q6J("matMenuTriggerFor",e),p.xp6(1),p.Q6J("ngStyle",p.VKq(8,Wd,t.iconColor)),p.xp6(5),p.hij(" ",p.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function yP(r,a){if(1&r){const e=p.EpF();p.TgZ(0,"button",15),p.NdJ("click",function(){p.CHM(e);const s=p.oxw();return p.KtG(s.showNotificationHistory())}),p.ALo(1,"translate"),p.TgZ(2,"mat-icon",16),p._uU(3),p.qZA()()}if(2&r){const e=p.oxw();p.Q6J("matTooltip",p.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),p.xp6(2),p.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),p.Q6J("ngStyle",p.VKq(7,Wd,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),p.xp6(1),p.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function vP(r,a){if(1&r&&p._UZ(0,"perun-web-apps-header-menu",17),2&r){const e=p.oxw();p.Q6J("url",e.otherAppUrl)("label",e.otherAppLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor)}}const AP=function(r){return{background:r}},xP=function(){return[]},TP=function(){return["/"]};let SP=(()=>{class r{constructor(e,t,s,u,d,l,n){this.storeService=e,this.sanitizer=t,this.translateService=s,this.otherApplicationService=u,this.notificationStorageService=d,this.dialog=l,this.route=n,this.sidenavToggle=new p.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(e="en"){return this.storeService.getProperty(this.otherApp===$r.Profile?"profile_label_en":"en"===e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===$r.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0)}(this.otherApp!==$r.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const e=on();e.width="520px",this.dialog.open(XE,e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(gi),p.Y36(hi),p.Y36(An),p.Y36(Sb),p.Y36(Gl),p.Y36(bn),p.Y36(jn))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(e,t){1&e&&(p.TgZ(0,"mat-toolbar",0)(1,"div",1),p.YNc(2,CP,3,3,"button",2),p._UZ(3,"a",3),p.TgZ(4,"p",4),p._uU(5),p.qZA()(),p.TgZ(6,"div",5),p.YNc(7,wP,9,10,"div",6),p.YNc(8,yP,4,9,"button",7),p.YNc(9,vP,1,6,"perun-web-apps-header-menu",8),p.qZA()()),2&e&&(p.Q6J("ngStyle",p.VKq(11,AP,t.bgColor)),p.xp6(2),p.Q6J("ngIf",t.showToggle),p.xp6(1),p.Q6J("innerHTML",t.logo,p.oJD)("routerLink",t.disableLogo?p.DdM(13,xP):p.DdM(14,TP))("queryParams",t.route.snapshot.queryParams),p.xp6(1),p.Q6J("ngStyle",p.VKq(15,Wd,t.textColor)),p.xp6(1),p.hij(" ",t.label," "),p.xp6(1),p.Q6J("ngStyle",p.VKq(17,Wd,t.navTextColor)),p.xp6(1),p.Q6J("ngIf",t.showLanguageMenu),p.xp6(1),p.Q6J("ngIf",t.showNotifications),p.xp6(1),p.Q6J("ngIf",t.showHeaderMenu))},dependencies:[M.O5,M.PC,nl,Qn,W_,_a,Q_,ji,I_,cP,hP,_P,bP,yt],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),r})();const EP=function(r){return{"background-color":r}};function MP(r,a){if(1&r&&(p.TgZ(0,"div"),p._UZ(1,"perun-web-apps-header",1),p.TgZ(2,"div",2)(3,"div",3),p._UZ(4,"router-outlet"),p.qZA(),p.TgZ(5,"div",4),p._UZ(6,"perun-web-apps-footer"),p.qZA()()()),2&r){const e=p.oxw();p.xp6(1),p.Q6J("showToggle",!1)("otherApp",e.otherApp),p.xp6(1),p.Q6J("ngStyle",p.VKq(3,EP,e.contentBackgroundColor))}}function DP(r,a){1&r&&(p.TgZ(0,"div"),p._UZ(1,"perun-web-apps-login-screen-base",5),p.ALo(2,"translate"),p.qZA()),2&r&&(p.xp6(1),p.Q6J("application","consolidator")("headerTitle",p.lcZ(2,2,"HEADER.TITLE")))}let HP=(()=>{class r{constructor(e,t){this.store=e,this.initAuth=t,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.otherApp=$r.Profile}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(gi),p.Y36(zl))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-root"]],decls:2,vars:2,consts:[[4,"ngIf"],["id","nav-menu",3,"showToggle","otherApp"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[3,"application","headerTitle"]],template:function(e,t){1&e&&(p.YNc(0,MP,7,5,"div",0),p.YNc(1,DP,3,4,"div",0)),2&e&&(p.Q6J("ngIf",!t.isLoginScreenShow),p.xp6(1),p.Q6J("ngIf",t.isLoginScreenShow))},dependencies:[M.O5,M.PC,Uo,kH,qE,SP,yt],styles:["#content-inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:100vh;padding-top:64px;justify-content:space-between}#content-wrap[_ngcontent-%COMP%]{padding:25px}#footer[_ngcontent-%COMP%]{bottom:0;width:100%}#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}"]}),r})();function iM(r){return new p.vHH(3e3,!1)}function h1(){return typeof window<"u"&&typeof window.document<"u"}function K0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function xs(r){switch(r.length){case 0:return new Bl;case 1:return r[0];default:return new jh(r)}}function nM(r,a,e,t,s=new Map,u=new Map){const d=[],l=[];let n=-1,i=null;if(t.forEach(o=>{const c=o.get("offset"),h=c==n,m=h&&i||new Map;o.forEach((g,f)=>{let w=f,R=g;if("offset"!==f)switch(w=a.normalizePropertyName(w,d),R){case"!":R=s.get(f);break;case ma:R=u.get(f);break;default:R=a.normalizeStyleValue(f,w,R,d)}m.set(w,R)}),h||l.push(m),i=m,n=c}),d.length)throw function XP(r){return new p.vHH(3502,!1)}();return l}function Z0(r,a,e,t){switch(a){case"start":r.onStart(()=>t(e&&X0(e,"start",r)));break;case"done":r.onDone(()=>t(e&&X0(e,"done",r)));break;case"destroy":r.onDestroy(()=>t(e&&X0(e,"destroy",r)))}}function X0(r,a,e){const u=ex(r.element,r.triggerName,r.fromState,r.toState,a||r.phaseName,e.totalTime??r.totalTime,!!e.disabled),d=r._data;return null!=d&&(u._data=d),u}function ex(r,a,e,t,s="",u=0,d){return{element:r,triggerName:a,fromState:e,toState:t,phaseName:s,totalTime:u,disabled:!!d}}function Jn(r,a,e){let t=r.get(a);return t||r.set(a,t=e),t}function rM(r){const a=r.indexOf(":");return[r.substring(1,a),r.slice(a+1)]}let tx=(r,a)=>!1,aM=(r,a,e)=>[],oM=null;function ix(r){const a=r.parentNode||r.host;return a===oM?null:a}(K0()||typeof Element<"u")&&(h1()?(oM=(()=>document.documentElement)(),tx=(r,a)=>{for(;a;){if(a===r)return!0;a=ix(a)}return!1}):tx=(r,a)=>r.contains(a),aM=(r,a,e)=>{if(e)return Array.from(r.querySelectorAll(a));const t=r.querySelector(a);return t?[t]:[]});let rc=null,sM=!1;const lM=tx,cM=aM;let dM=(()=>{class r{validateStyleProperty(e){return function f1(r){rc||(rc=function m1(){return typeof document<"u"?document.body:null}()||{},sM=!!rc.style&&"WebkitAppearance"in rc.style);let a=!0;return rc.style&&!function p1(r){return"ebkit"==r.substring(1,6)}(r)&&(a=r in rc.style,!a&&sM&&(a="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in rc.style)),a}(e)}matchesElement(e,t){return!1}containsElement(e,t){return lM(e,t)}getParentElement(e){return ix(e)}query(e,t,s){return cM(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,t,s,u,d,l=[],n){return new Bl(s,u)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})(),nx=(()=>{class r{}return r.NOOP=new dM,r})();const rx="ng-enter",TC="ng-leave",SC="ng-trigger",EC=".ng-trigger",hM="ng-animating",ax=".ng-animating";function Ts(r){if("number"==typeof r)return r;const a=r.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:ox(parseFloat(a[1]),a[2])}function ox(r,a){return"s"===a?1e3*r:r}function MC(r,a,e){return r.hasOwnProperty("duration")?r:function b1(r,a,e){let s,u=0,d="";if("string"==typeof r){const l=r.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return a.push(iM()),{duration:0,delay:0,easing:""};s=ox(parseFloat(l[1]),l[2]);const n=l[3];null!=n&&(u=ox(parseFloat(n),l[4]));const i=l[5];i&&(d=i)}else s=r;if(!e){let l=!1,n=a.length;s<0&&(a.push(function RP(){return new p.vHH(3100,!1)}()),l=!0),u<0&&(a.push(function PP(){return new p.vHH(3101,!1)}()),l=!0),l&&a.splice(n,0,iM())}return{duration:s,delay:u,easing:d}}(r,a,e)}function uf(r,a={}){return Object.keys(r).forEach(e=>{a[e]=r[e]}),a}function pM(r){const a=new Map;return Object.keys(r).forEach(e=>{a.set(e,r[e])}),a}function Ss(r,a=new Map,e){if(e)for(let[t,s]of e)a.set(t,s);for(let[t,s]of r)a.set(t,s);return a}function mM(r,a,e){return e?a+":"+e+";":""}function gM(r){let a="";for(let e=0;e{const u=lx(s);e&&!e.has(s)&&e.set(s,r.style[u]),r.style[u]=t}),K0()&&gM(r))}function ac(r,a){r.style&&(a.forEach((e,t)=>{const s=lx(t);r.style[s]=""}),K0()&&gM(r))}function hf(r){return Array.isArray(r)?1==r.length?r[0]:f_(r):r}const sx=new RegExp("{{\\s*(.+?)\\s*}}","g");function _M(r){let a=[];if("string"==typeof r){let e;for(;e=sx.exec(r);)a.push(e[1]);sx.lastIndex=0}return a}function DC(r,a,e){const t=r.toString(),s=t.replace(sx,(u,d)=>{let l=a[d];return null==l&&(e.push(function kP(r){return new p.vHH(3003,!1)}()),l=""),l.toString()});return s==t?r:s}function HC(r){const a=[];let e=r.next();for(;!e.done;)a.push(e.value),e=r.next();return a}const y1=/-+([a-z0-9])/g;function lx(r){return r.replace(y1,(...a)=>a[1].toUpperCase())}function v1(r){return r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Kn(r,a,e){switch(a.type){case 7:return r.visitTrigger(a,e);case 0:return r.visitState(a,e);case 1:return r.visitTransition(a,e);case 2:return r.visitSequence(a,e);case 3:return r.visitGroup(a,e);case 4:return r.visitAnimate(a,e);case 5:return r.visitKeyframes(a,e);case 6:return r.visitStyle(a,e);case 8:return r.visitReference(a,e);case 9:return r.visitAnimateChild(a,e);case 10:return r.visitAnimateRef(a,e);case 11:return r.visitQuery(a,e);case 12:return r.visitStagger(a,e);default:throw function VP(r){return new p.vHH(3004,!1)}()}}function bM(r,a){return window.getComputedStyle(r)[a]}function M1(r,a){const e=[];return"string"==typeof r?r.split(/\s*,\s*/).forEach(t=>function D1(r,a,e){if(":"==r[0]){const n=function H1(r,a){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(r,e);if("function"==typeof n)return void a.push(n);r=n}const t=r.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function QP(r){return new p.vHH(3015,!1)}()),a;const s=t[1],u=t[2],d=t[3];a.push(CM(s,d));"<"==u[0]&&!("*"==s&&"*"==d)&&a.push(CM(d,s))}(t,e,a)):e.push(r),e}const kC=new Set(["true","1"]),VC=new Set(["false","0"]);function CM(r,a){const e=kC.has(r)||VC.has(r),t=kC.has(a)||VC.has(a);return(s,u)=>{let d="*"==r||r==s,l="*"==a||a==u;return!d&&e&&"boolean"==typeof s&&(d=s?kC.has(r):VC.has(r)),!l&&t&&"boolean"==typeof u&&(l=u?kC.has(a):VC.has(a)),d&&l}}const R1=new RegExp("s*:selfs*,?","g");function cx(r,a,e,t){return new P1(r).build(a,e,t)}class P1{constructor(a){this._driver=a}build(a,e,t){const s=new V1(e);return this._resetContextStyleTimingState(s),Kn(this,hf(a),s)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,s=e.depCount=0;const u=[],d=[];return"@"==a.name.charAt(0)&&e.errors.push(function OP(){return new p.vHH(3006,!1)}()),a.definitions.forEach(l=>{if(this._resetContextStyleTimingState(e),0==l.type){const n=l,i=n.name;i.toString().split(/\s*,\s*/).forEach(o=>{n.name=o,u.push(this.visitState(n,e))}),n.name=i}else if(1==l.type){const n=this.visitTransition(l,e);t+=n.queryCount,s+=n.depCount,d.push(n)}else e.errors.push(function LP(){return new p.vHH(3007,!1)}())}),{type:7,name:a.name,states:u,transitions:d,queryCount:t,depCount:s,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),s=a.options&&a.options.params||null;if(t.containsDynamicStyles){const u=new Set,d=s||{};t.styles.forEach(l=>{l instanceof Map&&l.forEach(n=>{_M(n).forEach(i=>{d.hasOwnProperty(i)||u.add(i)})})}),u.size&&(HC(u.values()),e.errors.push(function jP(r,a){return new p.vHH(3008,!1)}()))}return{type:0,name:a.name,style:t,options:s?{params:s}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Kn(this,hf(a.animation),e);return{type:1,matchers:M1(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:oc(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Kn(this,t,e)),options:oc(a.options)}}visitGroup(a,e){const t=e.currentTime;let s=0;const u=a.steps.map(d=>{e.currentTime=t;const l=Kn(this,d,e);return s=Math.max(s,e.currentTime),l});return e.currentTime=s,{type:3,steps:u,options:oc(a.options)}}visitAnimate(a,e){const t=function O1(r,a){if(r.hasOwnProperty("duration"))return r;if("number"==typeof r)return dx(MC(r,a).duration,0,"");const e=r;if(e.split(/\s+/).some(u=>"{"==u.charAt(0)&&"{"==u.charAt(1))){const u=dx(0,0,"");return u.dynamic=!0,u.strValue=e,u}const s=MC(e,a);return dx(s.duration,s.delay,s.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let s,u=a.styles?a.styles:Ie({});if(5==u.type)s=this.visitKeyframes(u,e);else{let d=a.styles,l=!1;if(!d){l=!0;const i={};t.easing&&(i.easing=t.easing),d=Ie(i)}e.currentTime+=t.duration+t.delay;const n=this.visitStyle(d,e);n.isEmptyStep=l,s=n}return e.currentAnimateTimings=null,{type:4,timings:t,style:s,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[],s=Array.isArray(a.styles)?a.styles:[a.styles];for(let l of s)"string"==typeof l?l===ma?t.push(l):e.errors.push(new p.vHH(3002,!1)):t.push(pM(l));let u=!1,d=null;return t.forEach(l=>{if(l instanceof Map&&(l.has("easing")&&(d=l.get("easing"),l.delete("easing")),!u))for(let n of l.values())if(n.toString().indexOf("{{")>=0){u=!0;break}}),{type:6,styles:t,easing:d,offset:a.offset,containsDynamicStyles:u,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let s=e.currentTime,u=e.currentTime;t&&u>0&&(u-=t.duration+t.delay),a.styles.forEach(d=>{"string"!=typeof d&&d.forEach((l,n)=>{const i=e.collectedStyles.get(e.currentQuerySelector),o=i.get(n);let c=!0;o&&(u!=s&&u>=o.startTime&&s<=o.endTime&&(e.errors.push(function UP(r,a,e,t,s){return new p.vHH(3010,!1)}()),c=!1),u=o.startTime),c&&i.set(n,{startTime:u,endTime:s}),e.options&&function w1(r,a,e){const t=a.params||{},s=_M(r);s.length&&s.forEach(u=>{t.hasOwnProperty(u)||e.push(function IP(r){return new p.vHH(3001,!1)}())})}(l,e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function NP(){return new p.vHH(3011,!1)}()),t;let u=0;const d=[];let l=!1,n=!1,i=0;const o=a.steps.map(R=>{const J=this._makeStyleAst(R,e);let Te=null!=J.offset?J.offset:function B1(r){if("string"==typeof r)return null;let a=null;if(Array.isArray(r))r.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;a=parseFloat(t.get("offset")),t.delete("offset")}});else if(r instanceof Map&&r.has("offset")){const e=r;a=parseFloat(e.get("offset")),e.delete("offset")}return a}(J.styles),at=0;return null!=Te&&(u++,at=J.offset=Te),n=n||at<0||at>1,l=l||at0&&u{const Te=h>0?J==m?1:h*J:d[J],at=Te*w;e.currentTime=g+f.delay+at,f.duration=at,this._validateStyleAst(R,e),R.offset=Te,t.styles.push(R)}),t}visitReference(a,e){return{type:8,animation:Kn(this,hf(a.animation),e),options:oc(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:oc(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:oc(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,s=a.options||{};e.queryCount++,e.currentQuery=a;const[u,d]=function I1(r){const a=!!r.split(/\s*,\s*/).find(e=>":self"==e);return a&&(r=r.replace(R1,"")),r=r.replace(/@\*/g,EC).replace(/@\w+/g,e=>EC+"-"+e.slice(1)).replace(/:animating/g,ax),[r,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+u:u,Jn(e.collectedStyles,e.currentQuerySelector,new Map);const l=Kn(this,hf(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:u,limit:s.limit||0,optional:!!s.optional,includeSelf:d,animation:l,originalSelector:a.selector,options:oc(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push(function WP(){return new p.vHH(3013,!1)}());const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:MC(a.timings,e.errors,!0);return{type:12,animation:Kn(this,hf(a.animation),e),timings:t,options:null}}}class V1{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function oc(r){return r?(r=uf(r)).params&&(r.params=function k1(r){return r?uf(r):null}(r.params)):r={},r}function dx(r,a,e){return{duration:r,delay:a,easing:e}}function ux(r,a,e,t,s,u,d=null,l=!1){return{type:1,element:r,keyframes:a,preStyleProps:e,postStyleProps:t,duration:s,delay:u,totalTime:s+u,easing:d,subTimeline:l}}class BC{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const F1=new RegExp(":enter","g"),N1=new RegExp(":leave","g");function hx(r,a,e,t,s,u=new Map,d=new Map,l,n,i=[]){return(new q1).buildKeyframes(r,a,e,t,s,u,d,l,n,i)}class q1{buildKeyframes(a,e,t,s,u,d,l,n,i,o=[]){i=i||new BC;const c=new px(a,e,i,s,u,o,[]);c.options=n;const h=n.delay?Ts(n.delay):0;c.currentTimeline.delayNextStep(h),c.currentTimeline.setStyles([d],null,c.errors,n),Kn(this,t,c);const m=c.timelines.filter(g=>g.containsAnimation());if(m.length&&l.size){let g;for(let f=m.length-1;f>=0;f--){const w=m[f];if(w.element===e){g=w;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([l],null,c.errors,n)}return m.length?m.map(g=>g.buildKeyframes()):[ux(e,[],[],[],0,h,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const s=e.createSubContext(a.options),u=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,s,s.options);u!=d&&e.transformIntoNewTimeline(d)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let u=e.currentTimeline.currentTime;const d=null!=t.duration?Ts(t.duration):null,l=null!=t.delay?Ts(t.delay):null;return 0!==d&&a.forEach(n=>{const i=e.appendInstructionToTimeline(n,d,l);u=Math.max(u,i.duration+i.delay)}),u}visitReference(a,e){e.updateOptions(a.options,!0),Kn(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let s=e;const u=a.options;if(u&&(u.params||u.delay)&&(s=e.createSubContext(u),s.transformIntoNewTimeline(),null!=u.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=OC);const d=Ts(u.delay);s.delayNextStep(d)}a.steps.length&&(a.steps.forEach(d=>Kn(this,d,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let s=e.currentTimeline.currentTime;const u=a.options&&a.options.delay?Ts(a.options.delay):0;a.steps.forEach(d=>{const l=e.createSubContext(a.options);u&&l.delayNextStep(u),Kn(this,d,l),s=Math.max(s,l.currentTimeline.currentTime),t.push(l.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(s),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return MC(e.params?DC(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),s=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),s.snapshotCurrentStyles());const u=a.style;5==u.type?this.visitKeyframes(u,e):(e.incrementTime(t.duration),this.visitStyle(u,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,s=e.currentAnimateTimings;!s&&t.hasCurrentStyleProperties()&&t.forwardFrame();const u=s&&s.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(u):t.setStyles(a.styles,u,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,s=e.currentTimeline.duration,u=t.duration,l=e.createSubContext().currentTimeline;l.easing=t.easing,a.styles.forEach(n=>{l.forwardTime((n.offset||0)*u),l.setStyles(n.styles,n.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(s+u),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,s=a.options||{},u=s.delay?Ts(s.delay):0;u&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=OC);let d=t;const l=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=l.length;let n=null;l.forEach((i,o)=>{e.currentQueryIndex=o;const c=e.createSubContext(a.options,i);u&&c.delayNextStep(u),i===e.element&&(n=c.currentTimeline),Kn(this,a.animation,c),c.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,c.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),n&&(e.currentTimeline.mergeTimelineCollectedStyles(n),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,s=e.currentTimeline,u=a.timings,d=Math.abs(u.duration),l=d*(e.currentQueryTotal-1);let n=d*e.currentQueryIndex;switch(u.duration<0?"reverse":u.easing){case"reverse":n=l-n;break;case"full":n=t.currentStaggerTime}const o=e.currentTimeline;n&&o.delayNextStep(n);const c=o.currentTime;Kn(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=s.currentTime-c+(s.startTime-t.currentTimeline.startTime)}}const OC={};class px{constructor(a,e,t,s,u,d,l,n){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=u,this.errors=d,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=OC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=n||new LC(this._driver,e,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let s=this.options;null!=t.duration&&(s.duration=Ts(t.duration)),null!=t.delay&&(s.delay=Ts(t.delay));const u=t.params;if(u){let d=s.params;d||(d=this.options.params={}),Object.keys(u).forEach(l=>{(!e||!d.hasOwnProperty(l))&&(d[l]=DC(u[l],d,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(s=>{t[s]=e[s]})}}return a}createSubContext(a=null,e,t){const s=e||this.element,u=new px(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return u.previousNode=this.previousNode,u.currentAnimateTimings=this.currentAnimateTimings,u.options=this._copyOptions(),u.updateOptions(a),u.currentQueryIndex=this.currentQueryIndex,u.currentQueryTotal=this.currentQueryTotal,u.parentContext=this,this.subContextCount++,u}transformIntoNewTimeline(a){return this.previousNode=OC,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const s={duration:e??a.duration,delay:this.currentTimeline.currentTime+(t??0)+a.delay,easing:""},u=new z1(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,s,a.stretchStartingKeyframe);return this.timelines.push(u),s}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,s,u,d){let l=[];if(s&&l.push(this.element),a.length>0){a=(a=a.replace(F1,"."+this._enterClassName)).replace(N1,"."+this._leaveClassName);let i=this._driver.query(this.element,a,1!=t);0!==t&&(i=t<0?i.slice(i.length+t,i.length):i.slice(0,t)),l.push(...i)}return!u&&0==l.length&&d.push(function $P(r){return new p.vHH(3014,!1)}()),l}}class LC{constructor(a,e,t,s){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(a){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new LC(this._driver,a,e||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+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles.set(a,e),this._globalTimelineStyles.set(a,e),this._styleSummary.set(a,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||ma),this._currentKeyframe.set(e,ma);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,s){e&&this._previousKeyframe.set("easing",e);const u=s&&s.params||{},d=function G1(r,a){const e=new Map;let t;return r.forEach(s=>{if("*"===s){t=t||a.keys();for(let u of t)e.set(u,ma)}else Ss(s,e)}),e}(a,this._globalTimelineStyles);for(let[l,n]of d){const i=DC(n,u,t);this._pendingStyles.set(l,i),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??ma),this._updateStyle(l,i)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,e)=>{this._currentKeyframe.set(e,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,a)}))}snapshotCurrentStyles(){for(let[a,e]of this._localTimelineStyles)this._pendingStyles.set(a,e),this._updateStyle(a,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((l,n)=>{const i=Ss(l,new Map,this._backFill);i.forEach((o,c)=>{"!"===o?a.add(c):o===ma&&e.add(c)}),t||i.set("offset",n/this.duration),s.push(i)});const u=a.size?HC(a.values()):[],d=e.size?HC(e.values()):[];if(t){const l=s[0],n=new Map(l);l.set("offset",0),n.set("offset",1),s=[l,n]}return ux(this.element,s,u,d,this.duration,this.startTime,this.easing,!1)}}class z1 extends LC{constructor(a,e,t,s,u,d,l=!1){super(a,e,d.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=u,this._stretchStartingKeyframe=l,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const u=[],d=t+e,l=e/d,n=Ss(a[0]);n.set("offset",0),u.push(n);const i=Ss(a[0]);i.set("offset",vM(l)),u.push(i);const o=a.length-1;for(let c=1;c<=o;c++){let h=Ss(a[c]);const m=h.get("offset");h.set("offset",vM((e+m*t)/d)),u.push(h)}t=d,e=0,s="",a=u}return ux(this.element,a,this.preStyleProps,this.postStyleProps,t,e,s,!0)}}function vM(r,a=3){const e=Math.pow(10,a-1);return Math.round(r*e)/e}class fx{}const W1=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"]);class $1 extends fx{normalizePropertyName(a,e){return lx(a)}normalizeStyleValue(a,e,t,s){let u="";const d=t.toString().trim();if(W1.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)u="px";else{const l=t.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&s.push(function BP(r,a){return new p.vHH(3005,!1)}())}return d+u}}function AM(r,a,e,t,s,u,d,l,n,i,o,c,h){return{type:0,element:r,triggerName:a,isRemovalTransition:s,fromState:e,fromStyles:u,toState:t,toStyles:d,timelines:l,queriedElements:n,preStyleProps:i,postStyleProps:o,totalTime:c,errors:h}}const mx={};class xM{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,s){return function Q1(r,a,e,t,s){return r.some(u=>u(a,e,t,s))}(this.ast.matchers,a,e,t,s)}buildStyles(a,e,t){let s=this._stateStyles.get("*");return void 0!==a&&(s=this._stateStyles.get(a?.toString())||s),s?s.buildStyles(e,t):new Map}build(a,e,t,s,u,d,l,n,i,o){const c=[],h=this.ast.options&&this.ast.options.params||mx,g=this.buildStyles(t,l&&l.params||mx,c),f=n&&n.params||mx,w=this.buildStyles(s,f,c),R=new Set,J=new Map,Te=new Map,at="void"===s,Ti={params:Y1(f,h),delay:this.ast.options?.delay},ni=o?[]:hx(a,e,this.ast.animation,u,d,g,w,Ti,i,c);let _i=0;if(ni.forEach(vr=>{_i=Math.max(vr.duration+vr.delay,_i)}),c.length)return AM(e,this._triggerName,t,s,at,g,w,[],[],J,Te,_i,c);ni.forEach(vr=>{const bo=vr.element,VD=Jn(J,bo,new Set);vr.preStyleProps.forEach(lc=>VD.add(lc));const bf=Jn(Te,bo,new Set);vr.postStyleProps.forEach(lc=>bf.add(lc)),bo!==e&&R.add(bo)});const wn=HC(R.values());return AM(e,this._triggerName,t,s,at,g,w,ni,wn,J,Te,_i)}}function Y1(r,a){const e=uf(a);for(const t in r)r.hasOwnProperty(t)&&null!=r[t]&&(e[t]=r[t]);return e}class J1{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t=new Map,s=uf(this.defaultParams);return Object.keys(a).forEach(u=>{const d=a[u];null!==d&&(s[u]=d)}),this.styles.styles.forEach(u=>{"string"!=typeof u&&u.forEach((d,l)=>{d&&(d=DC(d,s,e));const n=this.normalizer.normalizePropertyName(l,e);d=this.normalizer.normalizeStyleValue(l,n,d,e),t.set(n,d)})}),t}}class Z1{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(s=>{this.states.set(s.name,new J1(s.style,s.options&&s.options.params||{},t))}),TM(this.states,"true","1"),TM(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new xM(a,s,this.states))}),this.fallbackTransition=function X1(r,a,e){return new xM(r,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,l)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,s){return this.transitionFactories.find(d=>d.match(a,e,t,s))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function TM(r,a,e){r.has(a)?r.has(e)||r.set(e,r.get(a)):r.has(e)&&r.set(a,r.get(e))}const eI=new BC;class tI{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,e){const t=[],u=cx(this._driver,e,t,[]);if(t.length)throw function e1(r){return new p.vHH(3503,!1)}();this._animations.set(a,u)}_buildPlayer(a,e,t){const s=a.element,u=nM(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(s,u,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const s=[],u=this._animations.get(a);let d;const l=new Map;if(u?(d=hx(this._driver,e,u,rx,TC,new Map,new Map,t,eI,s),d.forEach(o=>{const c=Jn(l,o.element,new Map);o.postStyleProps.forEach(h=>c.set(h,null))})):(s.push(function t1(){return new p.vHH(3300,!1)}()),d=[]),s.length)throw function n1(r){return new p.vHH(3504,!1)}();l.forEach((o,c)=>{o.forEach((h,m)=>{o.set(m,this._driver.computeStyle(c,m,ma))})});const i=xs(d.map(o=>{const c=l.get(o.element);return this._buildPlayer(o,new Map,c)}));return this._playersById.set(a,i),i.onDestroy(()=>this.destroy(a)),this.players.push(i),i}destroy(a){const e=this._getPlayer(a);e.destroy(),this._playersById.delete(a);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById.get(a);if(!e)throw function r1(r){return new p.vHH(3301,!1)}();return e}listen(a,e,t,s){const u=ex(e,"","","");return Z0(this._getPlayer(a),t,u,s),()=>{}}command(a,e,t,s){if("register"==t)return void this.register(a,s[0]);if("create"==t)return void this.create(a,e,s[0]||{});const u=this._getPlayer(a);switch(t){case"play":u.play();break;case"pause":u.pause();break;case"reset":u.reset();break;case"restart":u.restart();break;case"finish":u.finish();break;case"init":u.init();break;case"setPosition":u.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(a)}}}const SM="ng-animate-queued",gx="ng-animate-disabled",oI=[],EM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},sI={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},wr="__ng_removed";class _x{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function uI(r){return r??null}(t?a.value:a),t){const u=uf(a);delete u.value,this.options=u}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(s=>{null==t[s]&&(t[s]=e[s])})}}}const pf="void",bx=new _x(pf);class lI{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,yr(e,this._hostClassName)}listen(a,e,t,s){if(!this._triggers.has(e))throw function a1(r,a){return new p.vHH(3302,!1)}();if(null==t||0==t.length)throw function o1(r){return new p.vHH(3303,!1)}();if(!function hI(r){return"start"==r||"done"==r}(t))throw function s1(r,a){return new p.vHH(3400,!1)}();const u=Jn(this._elementListeners,a,[]),d={name:e,phase:t,callback:s};u.push(d);const l=Jn(this._engine.statesByElement,a,new Map);return l.has(e)||(yr(a,SC),yr(a,SC+"-"+e),l.set(e,bx)),()=>{this._engine.afterFlush(()=>{const n=u.indexOf(d);n>=0&&u.splice(n,1),this._triggers.has(e)||l.delete(e)})}}register(a,e){return!this._triggers.has(a)&&(this._triggers.set(a,e),!0)}_getTrigger(a){const e=this._triggers.get(a);if(!e)throw function l1(r){return new p.vHH(3401,!1)}();return e}trigger(a,e,t,s=!0){const u=this._getTrigger(e),d=new Cx(this.id,e,a);let l=this._engine.statesByElement.get(a);l||(yr(a,SC),yr(a,SC+"-"+e),this._engine.statesByElement.set(a,l=new Map));let n=l.get(e);const i=new _x(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&n&&i.absorbOptions(n.options),l.set(e,i),n||(n=bx),i.value!==pf&&n.value===i.value){if(!function mI(r,a){const e=Object.keys(r),t=Object.keys(a);if(e.length!=t.length)return!1;for(let s=0;s{ac(a,w),ya(a,R)})}return}const h=Jn(this._engine.playersByElement,a,[]);h.forEach(f=>{f.namespaceId==this.id&&f.triggerName==e&&f.queued&&f.destroy()});let m=u.matchTransition(n.value,i.value,a,i.params),g=!1;if(!m){if(!s)return;m=u.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:m,fromState:n,toState:i,player:d,isFallbackTransition:g}),g||(yr(a,SM),d.onStart(()=>{$d(a,SM)})),d.onDone(()=>{let f=this.players.indexOf(d);f>=0&&this.players.splice(f,1);const w=this._engine.playersByElement.get(a);if(w){let R=w.indexOf(d);R>=0&&w.splice(R,1)}}),this.players.push(d),h.push(d),d}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(e=>e.delete(a)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(s=>s.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,EC,!0);t.forEach(s=>{if(s[wr])return;const u=this._engine.fetchNamespacesByElement(s);u.size?u.forEach(d=>d.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(a,e,t,s){const u=this._engine.statesByElement.get(a),d=new Map;if(u){const l=[];if(u.forEach((n,i)=>{if(d.set(i,n.value),this._triggers.has(i)){const o=this.trigger(a,i,pf,s);o&&l.push(o)}}),l.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,d),t&&xs(l).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const s=new Set;e.forEach(u=>{const d=u.name;if(s.has(d))return;s.add(d);const n=this._triggers.get(d).fallbackTransition,i=t.get(d)||bx,o=new _x(pf),c=new Cx(this.id,d,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:d,transition:n,fromState:i,toState:o,player:c,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let s=!1;if(t.totalAnimations){const u=t.players.length?t.playersByQueriedElement.get(a):[];if(u&&u.length)s=!0;else{let d=a;for(;d=d.parentNode;)if(t.statesByElement.get(d)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(a),s)t.markElementAsRemoved(this.id,a,!1,e);else{const u=a[wr];(!u||u===EM)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){yr(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const s=t.player;if(s.destroyed)return;const u=t.element,d=this._elementListeners.get(u);d&&d.forEach(l=>{if(l.name==t.triggerName){const n=ex(u,t.triggerName,t.fromState.value,t.toState.value);n._data=a,Z0(t.player,l.phase,n,l.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(t)}),this._queue=[],e.sort((t,s)=>{const u=t.transition.ast.depCount,d=s.transition.ast.depCount;return 0==u||0==d?u-d:this._engine.driver.containsElement(t.element,s.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class cI{constructor(a,e,t){this.bodyNode=a,this.driver=e,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=(s,u)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new lI(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList,s=this.namespacesByHostElement;if(t.length-1>=0){let d=!1,l=this.driver.getParentElement(e);for(;l;){const n=s.get(l);if(n){const i=t.indexOf(n);t.splice(i+1,0,a),d=!0;break}l=this.driver.getParentElement(l)}d||t.unshift(a)}else t.push(a);return s.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let s=this._namespaceLookup[a];s&&s.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const s=this._namespaceList.indexOf(t);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t)for(let s of t.values())if(s.namespaceId){const u=this._fetchNamespace(s.namespaceId);u&&e.add(u)}return e}trigger(a,e,t,s){if(jC(e)){const u=this._fetchNamespace(a);if(u)return u.trigger(e,t,s),!0}return!1}insertNode(a,e,t,s){if(!jC(e))return;const u=e[wr];if(u&&u.setForRemoval){u.setForRemoval=!1,u.setForMove=!0;const d=this.collectedLeaveElements.indexOf(e);d>=0&&this.collectedLeaveElements.splice(d,1)}if(a){const d=this._fetchNamespace(a);d&&d.insertNode(e,t)}s&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),yr(a,gx)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),$d(a,gx))}removeNode(a,e,t,s){if(jC(e)){const u=a?this._fetchNamespace(a):null;if(u?u.removeNode(e,s):this.markElementAsRemoved(a,e,!1,s),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==a&&d.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(a,e,t,s,u){this.collectedLeaveElements.push(e),e[wr]={namespaceId:a,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:u}}listen(a,e,t,s,u){return jC(e)?this._fetchNamespace(a).listen(e,t,s,u):()=>{}}_buildInstruction(a,e,t,s,u){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,s,a.fromState.options,a.toState.options,e,u)}destroyInnerAnimations(a){let e=this.driver.query(a,EC,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,ax,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return xs(this.players).onDone(()=>a());a()})}processLeaveNode(a){const e=a[wr];if(e&&e.setForRemoval){if(a[wr]=EM,e.namespaceId){this.destroyInnerAnimations(a);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(a)}this._onRemovalComplete(a,e.setForRemoval)}a.classList?.contains(gx)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,s)=>this._balanceNamespaceList(t,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?xs(e).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(a){throw function c1(r){return new p.vHH(3402,!1)}()}_flushAnimations(a,e){const t=new BC,s=[],u=new Map,d=[],l=new Map,n=new Map,i=new Map,o=new Set;this.disabledNodes.forEach(Ge=>{o.add(Ge);const it=this.driver.query(Ge,".ng-animate-queued",!0);for(let ot=0;ot{const ot=rx+f++;g.set(it,ot),Ge.forEach(At=>yr(At,ot))});const w=[],R=new Set,J=new Set;for(let Ge=0;GeR.add(At)):J.add(it))}const Te=new Map,at=HM(h,Array.from(R));at.forEach((Ge,it)=>{const ot=TC+f++;Te.set(it,ot),Ge.forEach(At=>yr(At,ot))}),a.push(()=>{m.forEach((Ge,it)=>{const ot=g.get(it);Ge.forEach(At=>$d(At,ot))}),at.forEach((Ge,it)=>{const ot=Te.get(it);Ge.forEach(At=>$d(At,ot))}),w.forEach(Ge=>{this.processLeaveNode(Ge)})});const Ti=[],ni=[];for(let Ge=this._namespaceList.length-1;Ge>=0;Ge--)this._namespaceList[Ge].drainQueuedTransitions(e).forEach(ot=>{const At=ot.player,Ui=ot.element;if(Ti.push(At),this.collectedEnterElements.length){const dn=Ui[wr];if(dn&&dn.setForMove){if(dn.previousTriggersValues&&dn.previousTriggersValues.has(ot.triggerName)){const cc=dn.previousTriggersValues.get(ot.triggerName),Ar=this.statesByElement.get(ot.element);if(Ar&&Ar.has(ot.triggerName)){const ZC=Ar.get(ot.triggerName);ZC.value=cc,Ar.set(ot.triggerName,ZC)}}return void At.destroy()}}const Aa=!c||!this.driver.containsElement(c,Ui),Zn=Te.get(Ui),Ms=g.get(Ui),di=this._buildInstruction(ot,t,Ms,Zn,Aa);if(di.errors&&di.errors.length)return void ni.push(di);if(Aa)return At.onStart(()=>ac(Ui,di.fromStyles)),At.onDestroy(()=>ya(Ui,di.toStyles)),void s.push(At);if(ot.isFallbackTransition)return At.onStart(()=>ac(Ui,di.fromStyles)),At.onDestroy(()=>ya(Ui,di.toStyles)),void s.push(At);const LD=[];di.timelines.forEach(dn=>{dn.stretchStartingKeyframe=!0,this.disabledNodes.has(dn.element)||LD.push(dn)}),di.timelines=LD,t.append(Ui,di.timelines),d.push({instruction:di,player:At,element:Ui}),di.queriedElements.forEach(dn=>Jn(l,dn,[]).push(At)),di.preStyleProps.forEach((dn,cc)=>{if(dn.size){let Ar=n.get(cc);Ar||n.set(cc,Ar=new Set),dn.forEach((ZC,Fx)=>Ar.add(Fx))}}),di.postStyleProps.forEach((dn,cc)=>{let Ar=i.get(cc);Ar||i.set(cc,Ar=new Set),dn.forEach((ZC,Fx)=>Ar.add(Fx))})});if(ni.length){const Ge=[];ni.forEach(it=>{Ge.push(function d1(r,a){return new p.vHH(3505,!1)}())}),Ti.forEach(it=>it.destroy()),this.reportError(Ge)}const _i=new Map,wn=new Map;d.forEach(Ge=>{const it=Ge.element;t.has(it)&&(wn.set(it,it),this._beforeAnimationBuild(Ge.player.namespaceId,Ge.instruction,_i))}),s.forEach(Ge=>{const it=Ge.element;this._getPreviousPlayers(it,!1,Ge.namespaceId,Ge.triggerName,null).forEach(At=>{Jn(_i,it,[]).push(At),At.destroy()})});const vr=w.filter(Ge=>PM(Ge,n,i)),bo=new Map;DM(bo,this.driver,J,i,ma).forEach(Ge=>{PM(Ge,n,i)&&vr.push(Ge)});const bf=new Map;m.forEach((Ge,it)=>{DM(bf,this.driver,new Set(Ge),n,"!")}),vr.forEach(Ge=>{const it=bo.get(Ge),ot=bf.get(Ge);bo.set(Ge,new Map([...Array.from(it?.entries()??[]),...Array.from(ot?.entries()??[])]))});const lc=[],BD=[],OD={};d.forEach(Ge=>{const{element:it,player:ot,instruction:At}=Ge;if(t.has(it)){if(o.has(it))return ot.onDestroy(()=>ya(it,At.toStyles)),ot.disabled=!0,ot.overrideTotalTime(At.totalTime),void s.push(ot);let Ui=OD;if(wn.size>1){let Zn=it;const Ms=[];for(;Zn=Zn.parentNode;){const di=wn.get(Zn);if(di){Ui=di;break}Ms.push(Zn)}Ms.forEach(di=>wn.set(di,Ui))}const Aa=this._buildAnimation(ot.namespaceId,At,_i,u,bf,bo);if(ot.setRealPlayer(Aa),Ui===OD)lc.push(ot);else{const Zn=this.playersByElement.get(Ui);Zn&&Zn.length&&(ot.parentPlayer=xs(Zn)),s.push(ot)}}else ac(it,At.fromStyles),ot.onDestroy(()=>ya(it,At.toStyles)),BD.push(ot),o.has(it)&&s.push(ot)}),BD.forEach(Ge=>{const it=u.get(Ge.element);if(it&&it.length){const ot=xs(it);Ge.setRealPlayer(ot)}}),s.forEach(Ge=>{Ge.parentPlayer?Ge.syncPlayerEvents(Ge.parentPlayer):Ge.destroy()});for(let Ge=0;Ge!Aa.destroyed);Ui.length?pI(this,it,Ui):this.processLeaveNode(it)}return w.length=0,lc.forEach(Ge=>{this.players.push(Ge),Ge.onDone(()=>{Ge.destroy();const it=this.players.indexOf(Ge);this.players.splice(it,1)}),Ge.play()}),lc}elementContainsData(a,e){let t=!1;const s=e[wr];return s&&s.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,s,u){let d=[];if(e){const l=this.playersByQueriedElement.get(a);l&&(d=l)}else{const l=this.playersByElement.get(a);if(l){const n=!u||u==pf;l.forEach(i=>{i.queued||!n&&i.triggerName!=s||d.push(i)})}}return(t||s)&&(d=d.filter(l=>!(t&&t!=l.namespaceId||s&&s!=l.triggerName))),d}_beforeAnimationBuild(a,e,t){const u=e.element,d=e.isRemovalTransition?void 0:a,l=e.isRemovalTransition?void 0:e.triggerName;for(const n of e.timelines){const i=n.element,o=i!==u,c=Jn(t,i,[]);this._getPreviousPlayers(i,o,d,l,e.toState).forEach(m=>{const g=m.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),m.destroy(),c.push(m)})}ac(u,e.fromStyles)}_buildAnimation(a,e,t,s,u,d){const l=e.triggerName,n=e.element,i=[],o=new Set,c=new Set,h=e.timelines.map(g=>{const f=g.element;o.add(f);const w=f[wr];if(w&&w.removedBeforeQueried)return new Bl(g.duration,g.delay);const R=f!==n,J=function fI(r){const a=[];return RM(r,a),a}((t.get(f)||oI).map(_i=>_i.getRealPlayer())).filter(_i=>!!_i.element&&_i.element===f),Te=u.get(f),at=d.get(f),Ti=nM(0,this._normalizer,0,g.keyframes,Te,at),ni=this._buildPlayer(g,Ti,J);if(g.subTimeline&&s&&c.add(f),R){const _i=new Cx(a,l,f);_i.setRealPlayer(ni),i.push(_i)}return ni});i.forEach(g=>{Jn(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function dI(r,a,e){let t=r.get(a);if(t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&r.delete(a)}return t}(this.playersByQueriedElement,g.element,g))}),o.forEach(g=>yr(g,hM));const m=xs(h);return m.onDestroy(()=>{o.forEach(g=>$d(g,hM)),ya(n,e.toStyles)}),c.forEach(g=>{Jn(s,g,[]).push(m)}),m}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new Bl(a.duration,a.delay)}}class Cx{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new Bl,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((e,t)=>{e.forEach(s=>Z0(a,t,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){Jn(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function jC(r){return r&&1===r.nodeType}function MM(r,a){const e=r.style.display;return r.style.display=a??"none",e}function DM(r,a,e,t,s){const u=[];e.forEach(n=>u.push(MM(n)));const d=[];t.forEach((n,i)=>{const o=new Map;n.forEach(c=>{const h=a.computeStyle(i,c,s);o.set(c,h),(!h||0==h.length)&&(i[wr]=sI,d.push(i))}),r.set(i,o)});let l=0;return e.forEach(n=>MM(n,u[l++])),d}function HM(r,a){const e=new Map;if(r.forEach(l=>e.set(l,[])),0==a.length)return e;const s=new Set(a),u=new Map;function d(l){if(!l)return 1;let n=u.get(l);if(n)return n;const i=l.parentNode;return n=e.has(i)?i:s.has(i)?1:d(i),u.set(l,n),n}return a.forEach(l=>{const n=d(l);1!==n&&e.get(n).push(l)}),e}function yr(r,a){r.classList?.add(a)}function $d(r,a){r.classList?.remove(a)}function pI(r,a,e){xs(e).onDone(()=>r.processLeaveNode(a))}function RM(r,a){for(let e=0;es.add(u)):a.set(r,t),e.delete(r),!0}class FC{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,u)=>{},this._transitionEngine=new cI(a,e,t),this._timelineEngine=new tI(a,e,t),this._transitionEngine.onRemovalComplete=(s,u)=>this.onRemovalComplete(s,u)}registerTrigger(a,e,t,s,u){const d=a+"-"+s;let l=this._triggerCache[d];if(!l){const n=[],o=cx(this._driver,u,n,[]);if(n.length)throw function ZP(r,a){return new p.vHH(3404,!1)}();l=function K1(r,a,e){return new Z1(r,a,e)}(s,o,this._normalizer),this._triggerCache[d]=l}this._transitionEngine.registerTrigger(e,s,l)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,s){this._transitionEngine.insertNode(a,e,t,s)}onRemove(a,e,t,s){this._transitionEngine.removeNode(a,e,s||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,s){if("@"==t.charAt(0)){const[u,d]=rM(t);this._timelineEngine.command(u,e,d,s)}else this._transitionEngine.trigger(a,e,t,s)}listen(a,e,t,s,u){if("@"==t.charAt(0)){const[d,l]=rM(t);return this._timelineEngine.listen(d,e,l,u)}return this._transitionEngine.listen(a,e,t,s,u)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let _I=(()=>{class r{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let u=r.initialStylesByElement.get(e);u||r.initialStylesByElement.set(e,u=new Map),this._initialStyles=u}start(){this._state<1&&(this._startStyles&&ya(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ya(this._element,this._initialStyles),this._endStyles&&(ya(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(ac(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ac(this._element,this._endStyles),this._endStyles=null),ya(this._element,this._initialStyles),this._state=3)}}return r.initialStylesByElement=new WeakMap,r})();function wx(r){let a=null;return r.forEach((e,t)=>{(function bI(r){return"display"===r||"position"===r})(t)&&(a=a||new Map,a.set(t,e))}),a}class IM{constructor(a,e,t,s){this.element=a,this.keyframes=e,this.options=t,this._specialStyles=s,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(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const e=[];return a.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(a,e,t){return a.animate(this._convertKeyframesToObject(e),t)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,s)=>{"offset"!==s&&a.set(s,this._finished?t:bM(this.element,s))}),this.currentSnapshot=a}triggerCallback(a){const e="start"===a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class CI{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,e){return!1}containsElement(a,e){return lM(a,e)}getParentElement(a){return ix(a)}query(a,e,t){return cM(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,s,u,d=[]){const n={duration:t,delay:s,fill:0==s?"both":"forwards"};u&&(n.easing=u);const i=new Map,o=d.filter(m=>m instanceof IM);(function A1(r,a){return 0===r||0===a})(t,s)&&o.forEach(m=>{m.currentSnapshot.forEach((g,f)=>i.set(f,g))});let c=function C1(r){return r.length?r[0]instanceof Map?r:r.map(a=>pM(a)):[]}(e).map(m=>Ss(m));c=function x1(r,a,e){if(e.size&&a.length){let t=a[0],s=[];if(e.forEach((u,d)=>{t.has(d)||s.push(d),t.set(d,u)}),s.length)for(let u=1;ud.set(l,bM(r,l)))}}return a}(a,c,i);const h=function gI(r,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=wx(a[0]),a.length>1&&(t=wx(a[a.length-1]))):a instanceof Map&&(e=wx(a)),e||t?new _I(r,e,t):null}(a,c);return new IM(a,c,n,h)}}let wI=(()=>{class r extends Oh{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:p.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?f_(e):e;return kM(this._renderer,null,t,"register",[s]),new yI(t,this._renderer)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(p.FYo),p.LFG(M.K0))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();class yI extends class p_{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new vI(this._id,a,e||{},this._renderer)}}class vI{constructor(a,e,t,s){this.id=a,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return kM(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function kM(r,a,e,t,s){return r.setProperty(a,`@@${e}:${t}`,s)}const VM="@.disabled";let AI=(()=>{class r{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(u,d)=>{const l=d?.parentNode(u);l&&d.removeChild(l,u)}}createRenderer(e,t){const u=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let o=this._rendererCache.get(u);return o||(o=new BM("",u,this.engine),this._rendererCache.set(u,o)),o}const d=t.id,l=t.id+"-"+this._currentId;this._currentId++,this.engine.register(l,e);const n=o=>{Array.isArray(o)?o.forEach(n):this.engine.registerTrigger(d,l,e,o.name,o)};return t.data.animation.forEach(n),new xI(this,l,u,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){e>=0&&et(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(u=>{const[d,l]=u;d(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(p.FYo),p.LFG(FC),p.LFG(p.R0b))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();class BM{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,s=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,s)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,s){this.delegate.setAttribute(a,e,t,s)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,s){this.delegate.setStyle(a,e,t,s)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==VM?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class xI extends BM{constructor(a,e,t,s){super(e,t,s),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==VM?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.slice(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const s=function TI(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}(a);let u=e.slice(1),d="";return"@"!=u.charAt(0)&&([u,d]=function SI(r){const a=r.indexOf(".");return[r.substring(0,a),r.slice(a+1)]}(u)),this.engine.listen(this.namespaceId,s,u,d,l=>{this.factory.scheduleListenerCallback(l._data||-1,t,l)})}return this.delegate.listen(a,e,t)}}const OM=[{provide:Oh,useClass:wI},{provide:fx,useFactory:function MI(){return new $1}},{provide:FC,useClass:(()=>{class r extends FC{constructor(e,t,s,u){super(e.body,t,s)}ngOnDestroy(){this.flush()}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(M.K0),p.LFG(nx),p.LFG(fx),p.LFG(p.z2F))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})()},{provide:p.FYo,useFactory:function DI(r,a,e){return new AI(r,a,e)},deps:[pe,FC,p.R0b]}],yx=[{provide:nx,useFactory:()=>new CI},{provide:p.QbO,useValue:"BrowserAnimations"},...OM],LM=[{provide:nx,useClass:dM},{provide:p.QbO,useValue:"NoopAnimations"},...OM];let HI=(()=>{class r{static withConfig(e){return{ngModule:r,providers:e.disableAnimations?LM:yx}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:yx,imports:[Sa]}),r})(),UM=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({}),r})(),NC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[En,Qe,hl,UM,Qe,UM]}),r})(),vx=(()=>{class r{constructor(){this.changes=new He.x}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const GI={provide:vx,deps:[[new p.FiY,new p.tp0,vx]],useFactory:function zI(r){return r||new vx}};let Ax=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[GI],imports:[M.ez,Qe]}),r})(),xx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Ur,M.ez]}),r})();const GM=new p.OlP("mat-chips-default-options");let Sx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[ua,{provide:GM,useValue:{separatorKeyCodes:[13]}}],imports:[Qe]}),r})();function Ex(r,a,e){for(let t in a)if(a.hasOwnProperty(t)){const s=a[t];s?r.setProperty(t,s,e?.has(t)?"important":""):r.removeProperty(t)}return r}function Qd(r,a){const e=a?"":"none";Ex(r.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function WM(r,a,e){Ex(r.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function qC(r,a){return a&&"none"!=a?r+" "+a:r}function $M(r){const a=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*a}function Mx(r,a){return r.getPropertyValue(a).split(",").map(t=>t.trim())}function Dx(r){const a=r.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function Hx(r,a,e){const{top:t,bottom:s,left:u,right:d}=r;return e>=t&&e<=s&&a>=u&&a<=d}function ff(r,a,e){r.top+=a,r.bottom=r.top+r.height,r.left+=e,r.right=r.left+r.width}function QM(r,a,e,t){const{top:s,right:u,bottom:d,left:l,width:n,height:i}=r,o=n*a,c=i*a;return t>s-c&&tl-o&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Dx(e)})})}handleScroll(a){const e=Un(a),t=this.positions.get(e);if(!t)return null;const s=t.scrollPosition;let u,d;if(e===this._document){const i=this.getViewportScrollPosition();u=i.top,d=i.left}else u=e.scrollTop,d=e.scrollLeft;const l=s.top-u,n=s.left-d;return this.positions.forEach((i,o)=>{i.clientRect&&e!==o&&e.contains(o)&&ff(i.clientRect,l,n)}),s.top=u,s.left=d,{top:l,left:n}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function JM(r){const a=r.cloneNode(!0),e=a.querySelectorAll("[id]"),t=r.nodeName.toLowerCase();a.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&this._initializeDragSequence(n,l)}else this.disabled||this._initializeDragSequence(this._rootElement,l)},this._pointerMove=l=>{const n=this._getPointerPositionOnPage(l);if(!this._hasStartedDragging){if(Math.abs(n.x-this._pickupPositionOnPage.x)+Math.abs(n.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const m=Date.now()>=this._dragStartTime+this._getDragStartDelay(l),g=this._dropContainer;if(!m)return void this._endDragSequence(l);(!g||!g.isDragging()&&!g.isReceiving())&&(l.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(l)))}return}l.preventDefault();const i=this._getConstrainedPointerPosition(n);if(this._hasMoved=!0,this._lastKnownPointerPosition=n,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,n);else{const o=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,c=this._activeTransform;c.x=i.x-o.x+this._passiveTransform.x,c.y=i.y-o.y+this._passiveTransform.y,this._applyRootElementTransform(c.x,c.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:l,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=l=>{this._endDragSequence(l)},this._nativeDragStart=l=>{if(this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&l.preventDefault()}else this.disabled||l.preventDefault()},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new YM(t),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=ze(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Qd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>li(t)),this._handles.forEach(t=>Qd(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=li(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,zC),e.addEventListener("touchstart",this._pointerDown,eD),e.addEventListener("dragstart",this._nativeDragStart,zC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?li(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),Qd(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),Qd(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){mf(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,s=t.parentNode,u=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),l=this._getShadowRoot();s.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),WM(t,!1,Rx),this._document.body.appendChild(s.replaceChild(u,t)),this._getPreviewInsertionPoint(s,l).appendChild(this._preview),this.started.next({source:this,event:a}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),s=mf(e),u=!s&&0!==e.button,d=this._rootElement,l=Un(e),n=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),i=s?kr(e):ch(e);if(l&&l.draggable&&"mousedown"===e.type&&e.preventDefault(),t||u||n||i)return;if(this._handles.length){const h=d.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=Dx(this._boundaryElement));const o=this._previewTemplate;this._pickupPositionInElement=o&&o.template&&!o.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){WM(this._rootElement,!0,Rx),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),s=this._getPointerPositionOnPage(a),u=this._getDragDistance(s),d=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:u,dropPoint:s,event:a}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:u,dropPoint:s,event:a}),e.drop(this,t,this._initialIndex,this._initialContainer,d,u,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:s}){let u=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!u&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(u=this._initialContainer),u&&u!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=u,this._dropContainer.enter(this,a,e,u===this._initialContainer&&u.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:u,currentIndex:u.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,s),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,e):this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let s;if(t&&a){const u=a.matchSize?this._initialClientRect:null,d=a.viewContainer.createEmbeddedView(t,a.context);d.detectChanges(),s=iD(d,this._document),this._previewRef=d,a.matchSize?nD(s,u):s.style.transform=GC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=JM(this._rootElement),nD(s,this._initialClientRect),this._initialTransform&&(s.style.transform=this._initialTransform);return Ex(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Rx),Qd(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(u=>s.classList.add(u)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function ak(r){const a=getComputedStyle(r),e=Mx(a,"transition-property"),t=e.find(l=>"transform"===l||"all"===l);if(!t)return 0;const s=e.indexOf(t),u=Mx(a,"transition-duration"),d=Mx(a,"transition-delay");return $M(u[s])+$M(d[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const s=d=>{(!d||Un(d)===this._preview&&"transform"===d.propertyName)&&(this._preview?.removeEventListener("transitionend",s),t(),clearTimeout(u))},u=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=iD(this._placeholderRef,this._document)):t=JM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e,t){const s=e===this._rootElement?null:e,u=s?s.getBoundingClientRect():a,d=mf(t)?t.targetTouches[0]:t,l=this._getViewportScrollPosition();return{x:u.left-a.left+(d.pageX-u.left-l.left),y:u.top-a.top+(d.pageY-u.top-l.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=mf(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,s=t.pageX-e.left,u=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const l=this._ownerSVGElement.createSVGPoint();return l.x=s,l.y=u,l.matrixTransform(d.inverse())}}return{x:s,y:u}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:s}=this.constrainPosition?this.constrainPosition(a,this,this._initialClientRect,this._pickupPositionInElement):a;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:u,y:d}=this._pickupPositionInElement,l=this._boundaryRect,{width:n,height:i}=this._getPreviewRect(),o=l.top+d,c=l.bottom-(i-d);t=tD(t,l.left+u,l.right-(n-u)),s=tD(s,o,c)}return{x:t,y:s}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,s=this._pointerDirectionDelta,u=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-u.x),l=Math.abs(t-u.y);return d>this._config.pointerDirectionChangeThreshold&&(s.x=e>u.x?1:-1,u.x=e),l>this._config.pointerDirectionChangeThreshold&&(s.y=t>u.y?1:-1,u.y=t),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,Qd(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,zC),a.removeEventListener("touchstart",this._pointerDown,eD),a.removeEventListener("dragstart",this._nativeDragStart,zC)}_applyRootElementTransform(a,e){const t=GC(a,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=qC(t,this._initialTransform)}_applyPreviewTransform(a,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,s=GC(a,e);this._preview.style.transform=qC(s,t)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(0===s.width&&0===s.height||0===t.width&&0===t.height)return;const u=s.left-t.left,d=t.right-s.right,l=s.top-t.top,n=t.bottom-s.bottom;s.width>t.width?(u>0&&(a+=u),d>0&&(a-=d)):a=0,s.height>t.height?(l>0&&(e+=l),n>0&&(e-=n)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:mf(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=Un(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&ff(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Qc(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return li(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(a){return this._handles.find(e=>a.target&&(a.target===e||e.contains(a.target)))}}function GC(r,a){return`translate3d(${Math.round(r)}px, ${Math.round(a)}px, 0)`}function tD(r,a,e){return Math.max(a,Math.min(e,r))}function mf(r){return"t"===r.type[0]}function iD(r,a){const e=r.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(s=>t.appendChild(s)),t}function nD(r,a){r.style.width=`${a.width}px`,r.style.height=`${a.height}px`,r.style.transform=GC(a.left,a.top)}function gf(r,a){return Math.max(0,Math.min(a,r))}class dk{constructor(a,e){this._element=a,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(a){this.withItems(a)}sort(a,e,t,s){const u=this._itemPositions,d=this._getItemIndexFromPointerPosition(a,e,t,s);if(-1===d&&u.length>0)return null;const l="horizontal"===this.orientation,n=u.findIndex(w=>w.drag===a),i=u[d],c=i.clientRect,h=n>d?1:-1,m=this._getItemOffsetPx(u[n].clientRect,c,h),g=this._getSiblingOffsetPx(n,u,h),f=u.slice();return function ck(r,a,e){const t=gf(a,r.length-1),s=gf(e,r.length-1);if(t===s)return;const u=r[t],d=s{if(f[R]===w)return;const J=w.drag===a,Te=J?m:g,at=J?a.getPlaceholderElement():w.drag.getRootElement();w.offset+=Te,l?(at.style.transform=qC(`translate3d(${Math.round(w.offset)}px, 0, 0)`,w.initialTransform),ff(w.clientRect,0,Te)):(at.style.transform=qC(`translate3d(0, ${Math.round(w.offset)}px, 0)`,w.initialTransform),ff(w.clientRect,Te,0))}),this._previousSwap.overlaps=Hx(c,e,t),this._previousSwap.drag=i.drag,this._previousSwap.delta=l?s.x:s.y,{previousIndex:n,currentIndex:d}}enter(a,e,t,s){const u=null==s||s<0?this._getItemIndexFromPointerPosition(a,e,t):s,d=this._activeDraggables,l=d.indexOf(a),n=a.getPlaceholderElement();let i=d[u];if(i===a&&(i=d[u+1]),!i&&(null==u||-1===u||u-1&&d.splice(l,1),i&&!this._dragDropRegistry.isDragging(i)){const o=i.getRootElement();o.parentElement.insertBefore(n,o),d.splice(u,0,a)}else li(this._element).appendChild(n),d.push(a);n.style.transform="",this._cacheItemPositions()}withItems(a){this._activeDraggables=a.slice(),this._cacheItemPositions()}withSortPredicate(a){this._sortPredicate=a}reset(){this._activeDraggables.forEach(a=>{const e=a.getRootElement();if(e){const t=this._itemPositions.find(s=>s.drag===a)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a)}updateOnScroll(a,e){this._itemPositions.forEach(({clientRect:t})=>{ff(t,a,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:Dx(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(a,e,t){const s="horizontal"===this.orientation;let u=s?e.left-a.left:e.top-a.top;return-1===t&&(u+=s?e.width-a.width:e.height-a.height),u}_getSiblingOffsetPx(a,e,t){const s="horizontal"===this.orientation,u=e[a].clientRect,d=e[a+-1*t];let l=u[s?"width":"height"]*t;if(d){const n=s?"left":"top",i=s?"right":"bottom";-1===t?l-=d.clientRect[n]-u[i]:l+=u[n]-d.clientRect[i]}return l}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,s="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const d=t[t.length-1].clientRect;return s?a>=d.right:e>=d.bottom}{const d=t[0].clientRect;return s?a<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(a,e,t,s){const u="horizontal"===this.orientation,d=this._itemPositions.findIndex(({drag:l,clientRect:n})=>{if(l===a)return!1;if(s){const i=u?s.x:s.y;if(l===this._previousSwap.drag&&this._previousSwap.overlaps&&i===this._previousSwap.delta)return!1}return u?e>=Math.floor(n.left)&&e=Math.floor(n.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.x,this.entered=new He.x,this.exited=new He.x,this.dropped=new He.x,this.sorted=new He.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Qt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function rk(r=0,a=Tl.z){return r<0&&(r=0),(0,qg.H)(r,r,a)}(0,Ah).pipe(gt(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,l=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-l):2===this._verticalScrollDirection&&d.scrollBy(0,l),1===this._horizontalScrollDirection?d.scrollBy(-l,0):2===this._horizontalScrollDirection&&d.scrollBy(l,0)})},this.element=li(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new YM(t),this._sortStrategy=new dk(this.element,e),this._sortStrategy.withSortPredicate((d,l)=>this.sortPredicate(d,l,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,s){this._draggingStarted(),null==s&&this.sortingDisabled&&(s=this._draggables.indexOf(a)),this._sortStrategy.enter(a,e,t,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,s,u,d,l,n={}){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:s,isPointerOverContainer:u,distance:d,dropPoint:l,event:n})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===a.indexOf(s))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(a){return this._sortStrategy.direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._sortStrategy.orientation=a,this}withScrollableParents(a){const e=li(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,s){if(this.sortingDisabled||!this._clientRect||!QM(this._clientRect,.05,e,t))return;const u=this._sortStrategy.sort(a,e,t,s);u&&this.sorted.next({previousIndex:u.previousIndex,currentIndex:u.currentIndex,container:this,item:a})}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,s=0,u=0;if(this._parentPositions.positions.forEach((d,l)=>{l===this._document||!d.clientRect||t||QM(d.clientRect,.05,a,e)&&([s,u]=function hk(r,a,e,t){const s=oD(a,t),u=sD(a,e);let d=0,l=0;if(s){const n=r.scrollTop;1===s?n>0&&(d=1):r.scrollHeight-n>r.clientHeight&&(d=2)}if(u){const n=r.scrollLeft;1===u?n>0&&(l=1):r.scrollWidth-n>r.clientWidth&&(l=2)}return[d,l]}(l,d.clientRect,a,e),(s||u)&&(t=l))}),!s&&!u){const{width:d,height:l}=this._viewportRuler.getViewportSize(),n={width:d,height:l,top:0,right:d,bottom:l,left:0};s=oD(n,e),u=sD(n,a),t=window}t&&(s!==this._verticalScrollDirection||u!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=u,this._scrollNode=t,(s||u)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=li(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=li(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_reset(){this._isDragging=!1;const a=li(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(a,e){return null!=this._clientRect&&Hx(this._clientRect,a,e)}_getSiblingContainerFromPosition(a,e,t){return this._siblings.find(s=>s._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!Hx(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,t);if(!s)return!1;const u=li(this.element);return s===u||u.contains(s)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Qc(li(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function oD(r,a){const{top:e,bottom:t,height:s}=r,u=.05*s;return a>=e-u&&a<=e+u?1:a>=t-u&&a<=t+u?2:0}function sD(r,a){const{left:e,right:t,width:s}=r,u=.05*s;return a>=e-u&&a<=e+u?1:a>=t-u&&a<=t+u?2:0}const WC=ur({passive:!1,capture:!0});let pk=(()=>{class r{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new He.x,this.pointerUp=new He.x,this.scroll=new He.x,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,WC)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,WC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=t.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:u=>this.pointerUp.next(u),options:!0}).set("scroll",{handler:u=>this.scroll.next(u),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:WC}),s||this._globalListeners.set("mousemove",{handler:u=>this.pointerMove.next(u),options:WC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((u,d)=>{this._document.addEventListener(d,u.handler,u.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new ai.y(s=>this._ngZone.runOutsideAngular(()=>{const d=l=>{this._activeDragInstances.length&&s.next(l)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,an.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(p.R0b),p.LFG(M.K0))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const fk={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let mk=(()=>{class r{constructor(e,t,s,u){this._document=e,this._ngZone=t,this._viewportRuler=s,this._dragDropRegistry=u}createDrag(e,t=fk){return new lk(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new uk(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(M.K0),p.LFG(p.R0b),p.LFG(ts),p.LFG(pk))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),gk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[mk],imports:[Vr]}),r})();function _k(r,a){if(1&r&&(p.TgZ(0,"div",5)(1,"mat-icon"),p._uU(2),p.qZA()()),2&r){const e=p.oxw();p.xp6(2),p.Oqu(e.data.icon)}}function bk(r,a){if(1&r&&(p.TgZ(0,"div",6),p._uU(1),p.qZA()),2&r){const e=p.oxw();p.xp6(1),p.hij(" ",e.showTimestamp()," ")}}let Ck=(()=>{class r{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new p.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=on();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(tR,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function SA(r,a){pp.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(bn),p.Y36(Gl))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(p.TgZ(0,"div")(1,"div",0),p.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),p.YNc(2,_k,3,1,"div",1),p.TgZ(3,"div",2),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.YNc(6,bk,2,1,"div",3),p.TgZ(7,"div",4),p.NdJ("click",function(){return t.waiting=!0,t.doAction()}),p._uU(8),p.qZA()()()),2&e&&(p.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),p.ekj("error","error"===t.data.type)("success","success"===t.data.type),p.xp6(2),p.Q6J("ngIf",null!==t.data.icon),p.xp6(2),p.hij(" ",p.lcZ(5,12,t.data.title)," "),p.xp6(2),p.Q6J("ngIf",t.inDialog),p.xp6(1),p.Q6J("hidden",t.alreadyPressed),p.xp6(1),p.hij(" ",t.data.actionText," "))},dependencies:[M.O5,Qn,yt],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),r})(),wk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({}),r})(),Tk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({}),r})(),Ik=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Tk,Qe,Qe]}),r})(),Bk=(()=>{class r{constructor(){this.changes=new He.x,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(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Wk={provide:new p.OlP("mat-datepicker-scroll-strategy"),deps:[gn],useFactory:function Gk(r){return()=>r.scrollStrategies.reposition()}};let Bx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[Bk,Wk],imports:[M.ez,vi,Xa,$a,Or,Qe,Vr]}),r})(),cV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[En,Qe,Qe]}),r})();new p.OlP("mat-selectsearch-default-options");let fV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[[M.ez,y,vi,NC,Ur,lC,Ll]]}),r})(),fD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Qe,Qe]}),r})(),mV=(()=>{class r{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=ze(e)}get inset(){return this._inset}set inset(e){this._inset=ze(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=p.Xpm({type:r,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(p.uIk("aria-orientation",t.vertical?"vertical":"horizontal"),p.ekj("mat-divider-vertical",t.vertical)("mat-divider-horizontal",!t.vertical)("mat-divider-inset",t.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,t){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),r})(),Ox=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Qe,Qe]}),r})(),gV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({}),r})(),gD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[M.ez,Qe,gV,Or]}),r})(),bD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Qa,Qe,Qa,Qe]}),r})(),CV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Cl]}),r})(),Lx=(()=>{class r{constructor(){this.changes=new He.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const HV={provide:Lx,deps:[[new p.FiY,new p.tp0,Lx]],useFactory:function DV(r){return r||new Lx}};let vD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[HV,ua],imports:[Qe,M.ez,Or,vi,CV,Ur,En,Qe]}),r})(),AD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[M.ez,Qe,Vr,Vr,Qe]}),r})(),TD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Qa,En,Qe,Ch,M.ez,Qa,Qe,Ch,Ox]}),r})(),YV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[M.ez,Qe,Or,En,hl,$a,Qe]}),r})(),SD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({}),r})(),ED=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[SD,En,Qe,hl,SD,Qe]}),r})(),jx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[M.ez,fD,Ox,gD,vi,bD,NC,Ur,AC,Ul,lC,to,br,Gi,C,y,vD,Bx,Eg,AD,TD,Fr,eM,Ax,ga,Ll,us,En,AC,ED,Sx,fD,Ox,gD,vi,bD,NC,Ur,AC,Ul,lC,to,br,Gi,C,y,vD,Bx,Eg,AD,TD,Fr,eM,Ax,ga,Ll,us,En,YV,ED,Sx]}),r})(),lB=(()=>{class r extends rd{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=p.n5z(r)))(t||r)}}(),r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac}),r})();const cB={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let MD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[{provide:Nn,useClass:lB},{provide:qn,useValue:cB}],imports:[M.ez,NC,AC,C,Sx,gk,Da,Gc,Ax,ga,lC,xx,Ur,Fr,vi,Ll,to,y,br,En,zE,wk,Ik,Bx,cV,wh,us,fV,Gi,Ul,ib,jx,pP]}),r})();p.B6R(XE,[M.O5,ql,ji,fv,bv,_v,Nr,_r,Ck],[yt,V0]),new Date(324721404e5).valueOf();let RO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[M.ez,vi,Ur,Gc,MD,Da,to,y,br,xx]}),r})(),PO=(()=>{class r{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(ba),p.Y36(yi))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.TgZ(6,"button",4),p.NdJ("click",function(){return t.startAuth()}),p._uU(7),p.ALo(8,"translate"),p.TgZ(9,"mat-icon"),p._uU(10," login "),p.qZA()()()()()),2&e&&(p.xp6(4),p.hij(" ",p.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),p.xp6(3),p.hij(" ",p.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[ji,Qn,yt],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),r})();const IO=new p.OlP("perun-api-service");class kO{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}let VO=(()=>{class r{constructor(e,t,s,u,d){this.http=e,this.storeService=t,this.authzSevice=s,this.titleService=u,this.utilsService=d}initializeColors(e,t){return new Promise(s=>{t.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d)}),e.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d),this.setEntityTheme(u.entity,d)}),s()})}setEntityTheme(e,t){const s=function BO(r){return[Hn(tinycolor(r).lighten(52),"50"),Hn(tinycolor(r).lighten(37),"100"),Hn(tinycolor(r).lighten(26),"200"),Hn(tinycolor(r).lighten(12),"300"),Hn(tinycolor(r).lighten(6),"400"),Hn(tinycolor(r),"500"),Hn(tinycolor(r).darken(6),"600"),Hn(tinycolor(r).darken(12),"700"),Hn(tinycolor(r).darken(18),"800"),Hn(tinycolor(r).darken(24),"900"),Hn(tinycolor(r).lighten(50).saturate(30),"A100"),Hn(tinycolor(r).lighten(30).saturate(30),"A200"),Hn(tinycolor(r).lighten(10).saturate(15),"A400"),Hn(tinycolor(r).lighten(5).saturate(5),"A700")]}(t);for(const u of s){const n=`--${e}-theme-primary-contrast-${u.name}`,i=u.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${u.name}`,`${u.red},${u.green},${u.blue}`),document.documentElement.style.setProperty(n,i)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const s=document.location.hostname;t?.brandings?.[s]&&this.storeService.setBanding(s),e()},()=>{e()})})}getNoCacheHeaders(){return new v.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(s=>{this.storeService.setAppsConfig(s),e()},s=>t(s))})}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(v.eN),p.LFG(gi),p.LFG(Ps),p.LFG(X),p.LFG(Ei))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function Hn(r,a){const e=tinycolor(r),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let OO=(()=>{class r{constructor(e,t,s,u){this.initAuthService=e,this.appConfigService=t,this.location=s,this.mfaHandlerService=u}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.simpleLoadPrincipal().then(()=>this.appConfigService.loadAppsConfig())):this.initAuthService.handleAuthStart())}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(zl),p.LFG(VO),p.LFG(M.Ye),p.LFG(wp))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),LO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({providers:[VH],imports:[M.ez,jx,Da,zE]}),r})(),jO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-focus-on-linker-dialog"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),p._uU(3," info "),p.qZA(),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.TgZ(6,"div"),p._uU(7),p.ALo(8,"translate"),p.qZA()()),2&e&&(p.xp6(4),p.hij(" ",p.lcZ(5,2,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL")," "),p.xp6(3),p.hij(" ",p.lcZ(8,4,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL_WARNING")," "))},dependencies:[Qn,yt],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),r})(),FO=(()=>{class r{constructor(e,t,s,u){this.otherApplicationsService=e,this.storeService=t,this.oauthService=s,this.dialog=u}openLinkerWindow(e,t){let s=this.otherApplicationsService.getUrlForOtherApplication($r.Linker);this.storeService.getProperty("use_localhost_linker_url")&&(s="http://localhost:4201/");let u=s+"?formerToken="+this.oauthService.getAccessToken();t&&0!==t.length&&(u+="&idphint="+t.toString());const n=window.top,c=window.open(u,"_blank",`width=600,height=600,top=${n.outerHeight/2+n.screenY-300}, left=${n.outerWidth/2+n.screenX-300}`);let h;if(c){const g=on();g.width="450px",g.panelClass="noBorderDialog",h=this.dialog.open(jO,g)}window.addEventListener("message",g=>{sessionStorage.setItem("linkedResult",g.data)});const m=setInterval(()=>{if(c.closed){clearInterval(m),h.close();const g=sessionStorage.getItem("linkedResult");sessionStorage.removeItem("linkedResult"),e(g)}},1e3)}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(Sb),p.LFG(gi),p.LFG(Gr.Ct),p.LFG(bn))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),kD=(()=>{class r{}return r.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",r.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",r.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",r.MEMBER_GROUP_STATUS_INDIRECT="urn:perun:member_group:attribute-def:virt:groupStatusIndirect",r.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",r.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",r.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",r.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",r.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",r.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",r.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",r.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",r.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",r.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",r.USER_DEF_CERTIFICATES="urn:perun:user:attribute-def:def:userCertificates",r.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",r.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",r.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",r.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",r.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",r.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",r.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",r.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",r.GROUP_SYNC_INTERVAL="urn:perun:group:attribute-def:def:synchronizationInterval",r.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",r.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",r.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",r.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",r.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",r})();function UO(r,a){1&r&&p._UZ(0,"mat-spinner",2)}function NO(r,a){1&r&&(p.TgZ(0,"span",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&r&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"LIST_OF_IDENTITIES.SIGN_NOT_KNOW")))}function qO(r,a){1&r&&(p.TgZ(0,"span",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&r&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"LIST_OF_IDENTITIES.SIGN_KNOW")))}function zO(r,a){if(1&r&&p._UZ(0,"img",18),2&r){const e=p.oxw(2);p.s9C("src",e.logo,p.LSH),p.Q6J("height",e.height)("width",e.width)}}function GO(r,a){1&r&&p._UZ(0,"mat-icon",19)}function WO(r,a){1&r&&p._UZ(0,"mat-icon",20)}function $O(r,a){1&r&&p._UZ(0,"th",21)}function QO(r,a){if(1&r&&(p.TgZ(0,"td",22),p._uU(1),p.qZA()),2&r){const e=a.$implicit;p.xp6(1),p.hij(" ",e.name,": ")}}function YO(r,a){1&r&&p._UZ(0,"th",21)}function JO(r,a){if(1&r&&(p.TgZ(0,"span"),p._uU(1),p.qZA()),2&r){const e=p.oxw().$implicit;p.xp6(1),p.Oqu(e.value)}}function KO(r,a){if(1&r){const e=p.EpF();p.TgZ(0,"span"),p._uU(1),p.TgZ(2,"span",25),p.ALo(3,"translate"),p.TgZ(4,"button",26),p.NdJ("click",function(){const u=p.CHM(e).$implicit,d=p.oxw(4);return p.KtG(d.openDeleteDialog(u))}),p.TgZ(5,"mat-icon"),p._uU(6,"clear"),p.qZA()()(),p._UZ(7,"br"),p.qZA()}if(2&r){const e=a.$implicit,t=p.oxw(4);p.xp6(1),p.hij(" ",e," "),p.xp6(1),p.Q6J("matTooltip",p.lcZ(3,4,"LIST_OF_IDENTITIES.DELETE_DISABLED_TOOLTIP"))("matTooltipDisabled",!e.includes(t.idpProvider)),p.xp6(2),p.Q6J("disabled",e.includes(t.idpProvider))}}function ZO(r,a){if(1&r&&(p.TgZ(0,"span"),p.YNc(1,KO,8,6,"span",24),p.qZA()),2&r){const e=p.oxw().$implicit;p.xp6(1),p.Q6J("ngForOf",e.value)}}function XO(r,a){if(1&r&&(p.TgZ(0,"td",23),p.YNc(1,JO,2,1,"span",1),p.YNc(2,ZO,2,1,"span",1),p.qZA()),2&r){const e=a.$implicit;p.xp6(1),p.Q6J("ngIf","Linked accounts"!==e.name),p.xp6(1),p.Q6J("ngIf","Linked accounts"===e.name)}}function eL(r,a){1&r&&p._UZ(0,"tr",27)}const tL=function(){return["name","value"]};function iL(r,a){if(1&r&&(p.TgZ(0,"div"),p.YNc(1,NO,3,3,"span",3),p.YNc(2,qO,3,3,"span",3),p.TgZ(3,"div",4)(4,"div",5),p.YNc(5,zO,1,3,"img",6),p.YNc(6,GO,1,0,"mat-icon",7),p.YNc(7,WO,1,0,"mat-icon",8),p.qZA(),p.TgZ(8,"div")(9,"h2",9),p._uU(10),p.qZA(),p._UZ(11,"mat-divider"),p.TgZ(12,"table",10),p.ynx(13,11),p.YNc(14,$O,1,0,"th",12),p.YNc(15,QO,2,1,"td",13),p.BQk(),p.ynx(16,14),p.YNc(17,YO,1,0,"th",12),p.YNc(18,XO,3,2,"td",15),p.BQk(),p.YNc(19,eL,1,0,"tr",16),p.qZA()()()()),2&r){const e=p.oxw();p.xp6(1),p.Q6J("ngIf",e.unknownIdentity),p.xp6(1),p.Q6J("ngIf",!e.unknownIdentity),p.xp6(3),p.Q6J("ngIf",e.logo),p.xp6(1),p.Q6J("ngIf",!e.logo&&!e.unknownIdentity),p.xp6(1),p.Q6J("ngIf",!e.logo&&e.unknownIdentity),p.xp6(3),p.Oqu(e.idpProvider),p.xp6(2),p.Q6J("dataSource",e.dataSource),p.xp6(7),p.Q6J("matRowDefColumns",p.DdM(8,tL))}}let nL=(()=>{class r{constructor(e,t,s,u,d){this.oauthService=e,this.userService=t,this.storeService=s,this.initService=u,this.dialog=d,this.idpProvider="",this.dataSource=new xC,this.info=[],this.loading=!1}ngOnInit(){this.loading=!0,this.initProfileAndPrincipal()}ngOnChanges(){0!==this.reloadData&&(this.info=[],this.initProfileAndPrincipal())}initProfileAndPrincipal(){this.oauthService.loadUserProfile().then(e=>{this.setIdpInfo(e),this.initService.simpleLoadPrincipal().then(()=>{this.userId=this.storeService.getPerunPrincipal().userId,this.unknownIdentity=-1===this.userId,this.reloadAccounts()})})}reloadAccounts(){if(this.loading=!0,this.unknownIdentity)this.dataSource=new xC(this.info),this.loading=!1;else{const e=[];this.userService.getRichUserExtSources(this.userId).subscribe(t=>{this.userExtSources=t,t.forEach(s=>{if(0!==s.attributes.length){const u=fp(s.attributes,kD.UES_SOURCE_IDP_NAME),d=fp(s.attributes,kD.UES_DEF_MAIL);u?.value&&e.push(`${u.value}${d?.value?" ("+d.value+")":""}`)}}),0!==this.info.length&&(this.info=this.info.filter(s=>"Linked accounts"!==s.name)),this.info.push({name:"Linked accounts",value:e}),this.dataSource=new xC(this.info),this.loading=!1})}}setIdpInfo(e){const t=this.getUserName(e);null!=t&&""!==t&&this.info.push({name:"Name",value:t});const s=this.getUserLogin(e);null!=s&&""!==s&&this.info.push({name:"Login",value:s}),e.info.email&&this.info.push({name:"Email",value:e.info.email}),this.idpProvider=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_provider_userinfo")),this.logo=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_userinfo")),this.width=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_width_userinfo")),this.height=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_height_userinfo"))}getNestedItem(e,t){let s=e.info;for(const u of t)s=s[u],Array.isArray(s)&&(s=s[0]);return String(s)}getUserName(e){const t=e.info.name;if(t&&""!==t)return t;const s=e.info.given_name,u=e.info.family_name;return s&&u?s+" "+u:""}getUserLogin(e){const t=e.info.preferred_username;if(t&&""!==t)return t;const s=e.info.nickname;return s&&""!==s?s:""}openDeleteDialog(e){const t=[];this.userExtSources.filter(d=>d.attributes.forEach(l=>{"sourceIdPName"===l.baseFriendlyName&&e.includes(l.value)&&t.push(d)}));const s=on();s.width="450px",s.data={theme:"user-theme",userId:this.userId,extSources:t},this.dialog.open(VR,s).afterClosed().subscribe(d=>{d&&this.reloadAccounts()})}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(Gr.Ct),p.Y36(Vs),p.Y36(gi),p.Y36(zl),p.Y36(bn))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-list-of-identities"]],inputs:{reloadData:"reloadData"},features:[p.TTD],decls:3,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],["class","mt-n3",4,"ngIf"],[1,"identity-flexbox"],[1,"d-flex","align-items-center","justify-content-center"],["class","logo text-center",3,"height","width","src",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-identity",4,"ngIf"],["svgIcon","perun-info-grey","class","perun-icon perun-icon-identity",4,"ngIf"],[1,"px-3"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold px-3","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pr-3","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mt-n3"],[1,"logo","text-center",3,"height","width","src"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-identity"],["svgIcon","perun-info-grey",1,"perun-icon","perun-icon-identity"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold","px-3"],["mat-cell","",1,"pr-3"],[4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipDisabled"],["mat-icon-button","","color","warn",3,"disabled","click"],["mat-row",""]],template:function(e,t){1&e&&(p.TgZ(0,"div"),p.YNc(1,UO,1,0,"mat-spinner",0),p.YNc(2,iL,20,9,"div",1),p.qZA()),2&e&&(p.xp6(1),p.Q6J("ngIf",t.loading),p.xp6(1),p.Q6J("ngIf",!t.loading))},dependencies:[M.sg,M.O5,mV,ji,Qn,$0,CC,wC,bC,Q0,yC,vC,Y0,Cr,I_,yt],styles:[".logo[_ngcontent-%COMP%]{display:block;margin-top:auto;margin-bottom:auto}.perun-icon-identity[_ngcontent-%COMP%]{transform:scale(3.5);margin-left:.9rem;margin-top:1rem;color:#000}.identity-flexbox[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;width:100%;gap:.5rem 1rem;margin-top:.5rem}"]}),r})(),rL=(()=>{class r{transform(e){let t="";return e.forEach(s=>{const u=s.attributes;if(u){const d=u.sourceIdPName;d&&""!==d&&(t=t+d+", ")}}),t.slice(0,-2)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=p.Yjl({name:"similarIdentityFriendlyNamesString",type:r,pure:!0}),r})();function aL(r,a){1&r&&(p.TgZ(0,"perun-web-apps-alert",7),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&r&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"MAIN_WINDOW.IS_NOT_KNOWN_IDENTITY")))}function oL(r,a){if(1&r){const e=p.EpF();p.TgZ(0,"div",10)(1,"div",11),p._UZ(2,"mat-icon",12),p.TgZ(3,"div",13)(4,"div"),p._uU(5),p.qZA(),p.TgZ(6,"div",14),p._uU(7),p.ALo(8,"translate"),p.ALo(9,"similarIdentityFriendlyNamesString"),p.qZA()()(),p.TgZ(10,"button",15),p.NdJ("click",function(){const u=p.CHM(e).$implicit,d=p.oxw(2);return p.KtG(d.openPopUp(u.identities))}),p._uU(11),p.ALo(12,"translate"),p.qZA()()}if(2&r){const e=a.$implicit;p.xp6(5),p.Oqu(e.email),p.xp6(2),p.AsE(" ",p.lcZ(8,4,"MAIN_WINDOW.LINKED_ACCOUNTS"),": ",p.lcZ(9,6,e.identities)," "),p.xp6(4),p.hij(" ",p.lcZ(12,8,"MAIN_WINDOW.CONNECT_THIS_ACCOUNT")," ")}}function sL(r,a){if(1&r){const e=p.EpF();p.TgZ(0,"div")(1,"h2"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"p"),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.YNc(7,oL,13,10,"div",8),p.TgZ(8,"button",9),p.NdJ("click",function(){p.CHM(e);const s=p.oxw();return p.KtG(s.openPopUp([]))}),p._uU(9),p.ALo(10,"translate"),p.qZA()()}if(2&r){const e=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,4,"MAIN_WINDOW.TITLE_"+e.titleHelpTranslatePath)," "),p.xp6(3),p.hij(" ",p.lcZ(6,6,"MAIN_WINDOW."+e.titleHelpTranslatePath+"_HELP")," "),p.xp6(2),p.Q6J("ngForOf",e.similarIdentities),p.xp6(2),p.hij(" ",p.lcZ(10,8,"MAIN_WINDOW.CONNECT_OTHER_ACCOUNT")," ")}}function lL(r,a){1&r&&p._UZ(0,"mat-spinner",16)}let cL=(()=>{class r{constructor(e,t,s,u,d){this.storeService=e,this.initService=t,this.registrarService=s,this.router=u,this.openLinkerService=d,this.loading=!1,this.similarIdentities=[],this.titleHelpTranslatePath="SIMILAR_FOUND",this.reloadData=0}ngOnInit(){this.initData()}initData(){this.loading=!0,this.initService.simpleLoadPrincipal().then(()=>{this.unknownIdentity=-1===this.storeService.getPerunPrincipal().userId,this.reloadSimilarIdentities()})}reloadSimilarIdentities(){this.registrarService.checkForSimilarRichIdentities().subscribe(e=>{this.similarIdentities=e.slice(0,2),0===this.similarIdentities.length&&(this.titleHelpTranslatePath="NO_SIMILAR_FOUND"),this.loading=!1})}openPopUp(e){const t=[];e.forEach(s=>{s.attributes.sourceIdPName&&t.push(s.extSource.name)}),this.openLinkerService.openLinkerWindow(s=>{"TOKEN_EXPIRED"===s?location.reload():"OK"===s?(this.reloadData++,this.initData()):"MESSAGE_SENT_TO_SUPPORT"===s&&this.router.navigate(["/result",s],{queryParamsHandling:"preserve"})},t)}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(gi),p.Y36(zl),p.Y36(mc),p.Y36(yi),p.Y36(FO))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-main-window"]],decls:9,vars:4,consts:[[1,"d-flex"],[1,"d-inline-block","ml-auto","mr-auto"],["alert_type","warn",4,"ngIf"],[1,"main-flexbox","card","p-4","mat-elevation-z3"],[1,"identities-list",3,"reloadData"],[4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn"],["class","card d-flex mt-3 p-2 identity-card mat-elevation-z3",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mt-3",3,"click"],[1,"card","d-flex","mt-3","p-2","identity-card","mat-elevation-z3"],[1,"d-flex","flex-row"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-similar"],[1,"ml-3","mt-1"],[1,"pl-1"],["mat-flat-button","","color","accent",1,"ml-auto","mr-2","mb-2","mt-3",3,"click"],[1,"mr-auto","ml-auto"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0)(1,"div",1),p.YNc(2,aL,3,3,"perun-web-apps-alert",2),p.TgZ(3,"div",3),p._UZ(4,"perun-web-apps-list-of-identities",4)(5,"br"),p.TgZ(6,"div"),p.YNc(7,sL,11,10,"div",5),p.YNc(8,lL,1,0,"mat-spinner",6),p.qZA()()()()),2&e&&(p.xp6(2),p.Q6J("ngIf",t.unknownIdentity),p.xp6(2),p.Q6J("reloadData",t.reloadData),p.xp6(3),p.Q6J("ngIf",!t.loading),p.xp6(1),p.Q6J("ngIf",t.loading))},dependencies:[M.sg,M.O5,ji,Qn,Cr,ql,nL,rL,yt],styles:[".identities-list[_ngcontent-%COMP%]{max-width:650px}.main-flexbox[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;gap:1.5rem}.perun-icon-similar[_ngcontent-%COMP%]{transform:scale(2);margin-left:1rem;margin-top:1rem;color:#000}.identity-card[_ngcontent-%COMP%]{background-color:#f5f5f5;max-width:450px}"]}),r})();function dL(r,a){if(1&r&&(p.TgZ(0,"mat-icon",6),p._uU(1),p.qZA()),2&r){const e=p.oxw();p.xp6(1),p.hij(" ",e.icon," ")}}function uL(r,a){1&r&&p._UZ(0,"mat-icon",7)}function hL(r,a){if(1&r&&(p.TgZ(0,"span"),p._uU(1),p.qZA()),2&r){const e=p.oxw(2);p.xp6(1),p.hij(" ",e.supportMail," ")}}function pL(r,a){if(1&r&&(p.TgZ(0,"span"),p._uU(1),p.qZA()),2&r){const e=p.oxw(2);p.xp6(1),p.hij(" ",e.userMail," ")}}function fL(r,a){if(1&r&&(p.TgZ(0,"h5"),p._uU(1),p.ALo(2,"translate"),p.YNc(3,hL,2,1,"span",5),p.YNc(4,pL,2,1,"span",5),p.qZA()),2&r){const e=p.oxw();p.xp6(1),p.hij(" ",p.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR."+e.result+"_SUBTITLE")," "),p.xp6(2),p.Q6J("ngIf","UNKNOWN_ERROR"===e.result),p.xp6(1),p.Q6J("ngIf","MESSAGE_SENT_TO_SUPPORT"===e.result)}}function mL(r,a){if(1&r&&(p.TgZ(0,"h5"),p._uU(1),p.ALo(2,"translate"),p.ALo(3,"translate"),p.qZA()),2&r){const e=p.oxw();p.xp6(1),p.lnq(" ",p.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_1")," ",e.userMail," ",p.lcZ(3,5,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_2")," ")}}const gL=function(r){return{"background-color":r}},_L=["*"];let bL=(()=>{class r{constructor(e){this.store=e,this.supportMail=this.store.getProperty("support_mail"),this.userMail=this.store.getPerunPrincipal().additionalInformations.mail,this.color="",this.icon="",this.greenColor="#e0ffd4",this.blueColor="#d4f2ff",this.redColor="#ffd4d4",this.warningIcon="warning",this.infoIcon="info",this.messageSent="mark_email_read"}ngOnChanges(){switch(this.result){case"OK":this.color=this.greenColor;break;case"IDENTITY_REGISTERED_ALREADY":case"UNKNOWN_ERROR":this.color=this.redColor,this.icon=this.warningIcon;break;case"IDENTITY_IDENTICAL":case"IDENTITY_LINKED":case"IDENTITY_UNKNOWN":this.color=this.blueColor,this.icon=this.infoIcon;break;case"MESSAGE_SENT_TO_SUPPORT":this.color=this.blueColor,this.icon=this.messageSent;break;case"TOKEN_EXPIRED":this.color=this.blueColor,this.icon=this.warningIcon}}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(gi))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-consolidation-result"]],inputs:{result:"result"},features:[p.TTD],ngContentSelectors:_L,decls:12,vars:10,consts:[[1,"p-4","m-3",3,"ngStyle"],[1,"d-flex","pb-5","flex-row"],["class","mat-icon-war mr-4",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-detail",4,"ngIf"],[1,"ml-5"],[4,"ngIf"],[1,"mat-icon-war","mr-4"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-detail"]],template:function(e,t){1&e&&(p.F$t(),p.TgZ(0,"div",0)(1,"div",1)(2,"div"),p.YNc(3,dL,2,1,"mat-icon",2),p.YNc(4,uL,1,0,"mat-icon",3),p.qZA(),p.TgZ(5,"div",4)(6,"h1"),p._uU(7),p.ALo(8,"translate"),p.qZA(),p.YNc(9,fL,5,5,"h5",5),p.YNc(10,mL,4,7,"h5",5),p.qZA()(),p.Hsn(11),p.qZA()),2&e&&(p.Q6J("ngStyle",p.VKq(8,gL,t.color)),p.xp6(3),p.Q6J("ngIf","OK"!==t.result),p.xp6(1),p.Q6J("ngIf","OK"===t.result),p.xp6(3),p.hij(" ",p.lcZ(8,6,"SHARED_LIB.CONSOLIDATOR."+t.result+"_TITLE")," "),p.xp6(2),p.Q6J("ngIf",!(t.userMail&&"OK"===t.result)),p.xp6(1),p.Q6J("ngIf",t.userMail&&"OK"===t.result))},dependencies:[M.O5,M.PC,Qn,yt],styles:[".mat-icon-war[_ngcontent-%COMP%]{font-size:82px}.perun-icon-detail[_ngcontent-%COMP%]{transform:scale(4.5);margin-left:3rem;margin-top:1.5rem;color:#000}"]}),r})();const CL=[{path:"",redirectTo:"consolidate",pathMatch:"full"},{path:"login",component:PO},{path:"consolidate",component:cL},{path:"result/:result",component:(()=>{class r{constructor(e,t){this.route=e,this.router=t}ngOnInit(){this.route.params.subscribe(e=>{this.linkerResult=e.result})}onClick(){this.router.navigate(["/consolidate"],{queryParamsHandling:"merge"})}}return r.\u0275fac=function(e){return new(e||r)(p.Y36(jn),p.Y36(yi))},r.\u0275cmp=p.Xpm({type:r,selectors:[["perun-web-apps-show-result-page"]],decls:6,vars:4,consts:[[1,"show-result","ml-auto","mr-auto"],[3,"result"],[1,"d-flex","flex-column","mt-5"],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0)(1,"perun-web-apps-consolidation-result",1)(2,"div",2)(3,"button",3),p.NdJ("click",function(){return t.onClick()}),p._uU(4),p.ALo(5,"translate"),p.qZA()()()()),2&e&&(p.xp6(1),p.Q6J("result",t.linkerResult),p.xp6(3),p.hij(" ",p.lcZ(5,2,"SHOW_RESULT.BACK_HOME")," "))},dependencies:[ji,bL,yt],styles:[".show-result[_ngcontent-%COMP%]{max-width:55vw!important}"]}),r})()}];let wL=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[Gc.forRoot(CL,{preloadingStrategy:Rm,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),Gc]}),r})(),yL=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=p.oAB({type:r}),r.\u0275inj=p.cJS({imports:[M.ez,Ul,vi,Da]}),r})();const vL={provide:v.TP,useExisting:(0,p.Gpc)(()=>Tb),multi:!0};function AL(r){return new kO(r,"./assets/i18n/",".json")}function xL(r){const a={basePath:r.getProperty("api_url")};return new lt(a)}const TL=r=>()=>r.loadConfigs();let SL=(()=>{class r{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(zA),p.LFG(An))},r.\u0275mod=p.oAB({type:r,bootstrap:[HP]}),r.\u0275inj=p.cJS({providers:[zA,{provide:p.ip1,useFactory:TL,multi:!0,deps:[OO]},{provide:lt,useFactory:xL,deps:[gi]},Tb,vL,{provide:IO,useClass:GA},{provide:Gr.Hy,useFactory:()=>localStorage}],imports:[Sa,HI,v.JF,wi,wL,jx,RO,Ur,MD,xx,ib,yL,Gr.zr.forRoot(),LO,Da.forRoot({loader:{provide:ir,useFactory:AL,deps:[v.eN]}})]}),r})();(0,p.G48)(),Ze().bootstrapModule(SL).catch(r=>console.error(r))},1302:function(N,z,E){var M;!function(p,L){var F={};!function(p){"use strict";p.__esModule=!0,p.digestLength=32,p.blockSize=64;var L=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function F(oe,ie,ae,he,fe){for(var be,Le,je,Ae,we,xe,Ke,Pe,Re,De,le,ce,_e;fe>=64;){for(be=ie[0],Le=ie[1],je=ie[2],Ae=ie[3],we=ie[4],xe=ie[5],Ke=ie[6],Pe=ie[7],De=0;De<16;De++)oe[De]=(255&ae[le=he+4*De])<<24|(255&ae[le+1])<<16|(255&ae[le+2])<<8|255&ae[le+3];for(De=16;De<64;De++)oe[De]=((ce=((Re=oe[De-2])>>>17|Re<<15)^(Re>>>19|Re<<13)^Re>>>10)+oe[De-7]|0)+((_e=((Re=oe[De-15])>>>7|Re<<25)^(Re>>>18|Re<<14)^Re>>>3)+oe[De-16]|0);for(De=0;De<64;De++)ce=(((we>>>6|we<<26)^(we>>>11|we<<21)^(we>>>25|we<<7))+(we&xe^~we&Ke)|0)+(Pe+(L[De]+oe[De]|0)|0)|0,_e=((be>>>2|be<<30)^(be>>>13|be<<19)^(be>>>22|be<<10))+(be&Le^be&je^Le&je)|0,Pe=Ke,Ke=xe,xe=we,we=Ae+ce|0,Ae=je,je=Le,Le=be,be=ce+_e|0;ie[0]+=be,ie[1]+=Le,ie[2]+=je,ie[3]+=Ae,ie[4]+=we,ie[5]+=xe,ie[6]+=Ke,ie[7]+=Pe,he+=64,fe-=64}return he}var B=function(){function oe(){this.digestLength=p.digestLength,this.blockSize=p.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return oe.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},oe.prototype.clean=function(){for(var ie=0;ie0){for(;this.bufferLength<64&&ae>0;)this.buffer[this.bufferLength++]=ie[he++],ae--;64===this.bufferLength&&(F(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ae>=64&&(he=F(this.temp,this.state,ie,he,ae),ae%=64);ae>0;)this.buffer[this.bufferLength++]=ie[he++],ae--;return this},oe.prototype.finish=function(ie){if(!this.finished){var ae=this.bytesHashed,he=this.bufferLength,fe=ae/536870912|0,be=ae<<3,Le=ae%64<56?64:128;this.buffer[he]=128;for(var je=he+1;je>>24&255,this.buffer[Le-7]=fe>>>16&255,this.buffer[Le-6]=fe>>>8&255,this.buffer[Le-5]=fe>>>0&255,this.buffer[Le-4]=be>>>24&255,this.buffer[Le-3]=be>>>16&255,this.buffer[Le-2]=be>>>8&255,this.buffer[Le-1]=be>>>0&255,F(this.temp,this.state,this.buffer,0,Le),this.finished=!0}for(je=0;je<8;je++)ie[4*je+0]=this.state[je]>>>24&255,ie[4*je+1]=this.state[je]>>>16&255,ie[4*je+2]=this.state[je]>>>8&255,ie[4*je+3]=this.state[je]>>>0&255;return this},oe.prototype.digest=function(){var ie=new Uint8Array(this.digestLength);return this.finish(ie),ie},oe.prototype._saveState=function(ie){for(var ae=0;aethis.blockSize)(new B).update(ie).finish(ae).clean();else for(var he=0;he1&&ie.update(oe),ae&&ie.update(ae),ie.update(he),ie.finish(oe),he[0]++}p.HMAC=q,p.hash=Q,p.default=Q,p.hmac=ee;var Y=new Uint8Array(p.digestLength);p.hkdf=function G(oe,ie,ae,he){void 0===ie&&(ie=Y),void 0===he&&(he=32);for(var fe=new Uint8Array([1]),be=ee(ie,oe),Le=new q(be),je=new Uint8Array(Le.digestLength),Ae=je.length,we=new Uint8Array(he),xe=0;xe>>24&255,Le[1]=Ke>>>16&255,Le[2]=Ke>>>8&255,Le[3]=Ke>>>0&255,fe.reset(),fe.update(ie),fe.update(Le),fe.finish(Ae);for(var Pe=0;Pe=G.status}function q(Y){try{Y.dispatchEvent(new MouseEvent("click"))}catch{var G=document.createEvent("MouseEvents");G.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Y.dispatchEvent(G)}}var Q="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,ee=Q.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),W=Q.saveAs||("object"!=typeof window||window!==Q?function(){}:"download"in HTMLAnchorElement.prototype&&!ee?function(Y,G,re){var oe=Q.URL||Q.webkitURL,ie=document.createElement("a");ie.download=G=G||Y.name||"download",ie.rel="noopener","string"==typeof Y?(ie.href=Y,ie.origin===location.origin?q(ie):B(ie.href)?F(Y,G,re):q(ie,ie.target="_blank")):(ie.href=oe.createObjectURL(Y),setTimeout(function(){oe.revokeObjectURL(ie.href)},4e4),setTimeout(function(){q(ie)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,G,re){if(G=G||Y.name||"download","string"!=typeof Y)navigator.msSaveOrOpenBlob(function L(Y,G){return typeof G>"u"?G={autoBom:!1}:"object"!=typeof G&&(console.warn("Deprecated: Expected third argument to be a object"),G={autoBom:!G}),G.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Y.type)?new Blob(["\ufeff",Y],{type:Y.type}):Y}(Y,re),G);else if(B(Y))F(Y,G,re);else{var oe=document.createElement("a");oe.href=Y,oe.target="_blank",setTimeout(function(){q(oe)})}}:function(Y,G,re,oe){if((oe=oe||open("","_blank"))&&(oe.document.title=oe.document.body.innerText="downloading..."),"string"==typeof Y)return F(Y,G,re);var ie="application/octet-stream"===Y.type,ae=/constructor/i.test(Q.HTMLElement)||Q.safari,he=/CriOS\/[\d]+/.test(navigator.userAgent);if((he||ie&&ae||ee)&&typeof FileReader<"u"){var fe=new FileReader;fe.onloadend=function(){var je=fe.result;je=he?je:je.replace(/^data:[^;]*;/,"data:attachment/file;"),oe?oe.location.href=je:location=je,oe=null},fe.readAsDataURL(Y)}else{var be=Q.URL||Q.webkitURL,Le=be.createObjectURL(Y);oe?oe.location=Le:location.href=Le,oe=null,setTimeout(function(){be.revokeObjectURL(Le)},4e4)}});Q.saveAs=W.saveAs=W,N.exports=W}.apply(z,[]))&&(N.exports=p)},9751:(N,z,E)=>{"use strict";E.d(z,{y:()=>ee});var M=E(930),p=E(727),L=E(8822),F=E(9635),B=E(2416),q=E(576),Q=E(2806);let ee=(()=>{class re{constructor(ie){ie&&(this._subscribe=ie)}lift(ie){const ae=new re;return ae.source=this,ae.operator=ie,ae}subscribe(ie,ae,he){const fe=function G(re){return re&&re instanceof M.Lv||function Y(re){return re&&(0,q.m)(re.next)&&(0,q.m)(re.error)&&(0,q.m)(re.complete)}(re)&&(0,p.Nn)(re)}(ie)?ie:new M.Hp(ie,ae,he);return(0,Q.x)(()=>{const{operator:be,source:Le}=this;fe.add(be?be.call(fe,Le):Le?this._subscribe(fe):this._trySubscribe(fe))}),fe}_trySubscribe(ie){try{return this._subscribe(ie)}catch(ae){ie.error(ae)}}forEach(ie,ae){return new(ae=W(ae))((he,fe)=>{const be=new M.Hp({next:Le=>{try{ie(Le)}catch(je){fe(je),be.unsubscribe()}},error:fe,complete:he});this.subscribe(be)})}_subscribe(ie){var ae;return null===(ae=this.source)||void 0===ae?void 0:ae.subscribe(ie)}[L.L](){return this}pipe(...ie){return(0,F.U)(ie)(this)}toPromise(ie){return new(ie=W(ie))((ae,he)=>{let fe;this.subscribe(be=>fe=be,be=>he(be),()=>ae(fe))})}}return re.create=oe=>new re(oe),re})();function W(re){var oe;return null!==(oe=re??B.v.Promise)&&void 0!==oe?oe:Promise}},7579:(N,z,E)=>{"use strict";E.d(z,{x:()=>Q});var M=E(9751),p=E(727);const F=(0,E(3888).d)(W=>function(){W(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var B=E(8737),q=E(2806);let Q=(()=>{class W extends M.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const re=new ee(this,this);return re.operator=G,re}_throwIfClosed(){if(this.closed)throw new F}next(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const re of this.currentObservers)re.next(G)}})}error(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:re}=this;for(;re.length;)re.shift().error(G)}})}complete(){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:G}=this;for(;G.length;)G.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var G;return(null===(G=this.observers)||void 0===G?void 0:G.length)>0}_trySubscribe(G){return this._throwIfClosed(),super._trySubscribe(G)}_subscribe(G){return this._throwIfClosed(),this._checkFinalizedStatuses(G),this._innerSubscribe(G)}_innerSubscribe(G){const{hasError:re,isStopped:oe,observers:ie}=this;return re||oe?p.Lc:(this.currentObservers=null,ie.push(G),new p.w0(()=>{this.currentObservers=null,(0,B.P)(ie,G)}))}_checkFinalizedStatuses(G){const{hasError:re,thrownError:oe,isStopped:ie}=this;re?G.error(oe):ie&&G.complete()}asObservable(){const G=new M.y;return G.source=this,G}}return W.create=(Y,G)=>new ee(Y,G),W})();class ee extends Q{constructor(Y,G){super(),this.destination=Y,this.source=G}next(Y){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===re||re.call(G,Y)}error(Y){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===re||re.call(G,Y)}complete(){var Y,G;null===(G=null===(Y=this.destination)||void 0===Y?void 0:Y.complete)||void 0===G||G.call(Y)}_subscribe(Y){var G,re;return null!==(re=null===(G=this.source)||void 0===G?void 0:G.subscribe(Y))&&void 0!==re?re:p.Lc}}},930:(N,z,E)=>{"use strict";E.d(z,{Hp:()=>he,Lv:()=>re});var M=E(576),p=E(727),L=E(2416),F=E(7849),B=E(5032);const q=W("C",void 0,void 0);function W(Ae,we,xe){return{kind:Ae,value:we,error:xe}}var Y=E(3410),G=E(2806);class re extends p.w0{constructor(we){super(),this.isStopped=!1,we?(this.destination=we,(0,p.Nn)(we)&&we.add(this)):this.destination=je}static create(we,xe,Ke){return new he(we,xe,Ke)}next(we){this.isStopped?Le(function ee(Ae){return W("N",Ae,void 0)}(we),this):this._next(we)}error(we){this.isStopped?Le(function Q(Ae){return W("E",void 0,Ae)}(we),this):(this.isStopped=!0,this._error(we))}complete(){this.isStopped?Le(q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(we){this.destination.next(we)}_error(we){try{this.destination.error(we)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const oe=Function.prototype.bind;function ie(Ae,we){return oe.call(Ae,we)}class ae{constructor(we){this.partialObserver=we}next(we){const{partialObserver:xe}=this;if(xe.next)try{xe.next(we)}catch(Ke){fe(Ke)}}error(we){const{partialObserver:xe}=this;if(xe.error)try{xe.error(we)}catch(Ke){fe(Ke)}else fe(we)}complete(){const{partialObserver:we}=this;if(we.complete)try{we.complete()}catch(xe){fe(xe)}}}class he extends re{constructor(we,xe,Ke){let Pe;if(super(),(0,M.m)(we)||!we)Pe={next:we??void 0,error:xe??void 0,complete:Ke??void 0};else{let Re;this&&L.v.useDeprecatedNextContext?(Re=Object.create(we),Re.unsubscribe=()=>this.unsubscribe(),Pe={next:we.next&&ie(we.next,Re),error:we.error&&ie(we.error,Re),complete:we.complete&&ie(we.complete,Re)}):Pe=we}this.destination=new ae(Pe)}}function fe(Ae){L.v.useDeprecatedSynchronousErrorHandling?(0,G.O)(Ae):(0,F.h)(Ae)}function Le(Ae,we){const{onStoppedNotification:xe}=L.v;xe&&Y.z.setTimeout(()=>xe(Ae,we))}const je={closed:!0,next:B.Z,error:function be(Ae){throw Ae},complete:B.Z}},727:(N,z,E)=>{"use strict";E.d(z,{Lc:()=>q,w0:()=>B,Nn:()=>Q});var M=E(576);const L=(0,E(3888).d)(W=>function(G){W(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((re,oe)=>`${oe+1}) ${re.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var F=E(8737);class B{constructor(Y){this.initialTeardown=Y,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Y;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const ie of G)ie.remove(this);else G.remove(this);const{initialTeardown:re}=this;if((0,M.m)(re))try{re()}catch(ie){Y=ie instanceof L?ie.errors:[ie]}const{_finalizers:oe}=this;if(oe){this._finalizers=null;for(const ie of oe)try{ee(ie)}catch(ae){Y=Y??[],ae instanceof L?Y=[...Y,...ae.errors]:Y.push(ae)}}if(Y)throw new L(Y)}}add(Y){var G;if(Y&&Y!==this)if(this.closed)ee(Y);else{if(Y instanceof B){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push(Y)}}_hasParent(Y){const{_parentage:G}=this;return G===Y||Array.isArray(G)&&G.includes(Y)}_addParent(Y){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push(Y),G):G?[G,Y]:Y}_removeParent(Y){const{_parentage:G}=this;G===Y?this._parentage=null:Array.isArray(G)&&(0,F.P)(G,Y)}remove(Y){const{_finalizers:G}=this;G&&(0,F.P)(G,Y),Y instanceof B&&Y._removeParent(this)}}B.EMPTY=(()=>{const W=new B;return W.closed=!0,W})();const q=B.EMPTY;function Q(W){return W instanceof B||W&&"closed"in W&&(0,M.m)(W.remove)&&(0,M.m)(W.add)&&(0,M.m)(W.unsubscribe)}function ee(W){(0,M.m)(W)?W():W.unsubscribe()}},2416:(N,z,E)=>{"use strict";E.d(z,{v:()=>M});const M={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(N,z,E)=>{"use strict";E.d(z,{a:()=>Y});var M=E(9751),p=E(4742),L=E(2076),F=E(4671),B=E(3268),q=E(3269),Q=E(1810),ee=E(5403),W=E(9672);function Y(...oe){const ie=(0,q.yG)(oe),ae=(0,q.jO)(oe),{args:he,keys:fe}=(0,p.D)(oe);if(0===he.length)return(0,L.D)([],ie);const be=new M.y(function G(oe,ie,ae=F.y){return he=>{re(ie,()=>{const{length:fe}=oe,be=new Array(fe);let Le=fe,je=fe;for(let Ae=0;Ae{const we=(0,L.D)(oe[Ae],ie);let xe=!1;we.subscribe((0,ee.x)(he,Ke=>{be[Ae]=Ke,xe||(xe=!0,je--),je||he.next(ae(be.slice()))},()=>{--Le||he.complete()}))},he)},he)}}(he,ie,fe?Le=>(0,Q.n)(fe,Le):F.y));return ae?be.pipe((0,B.Z)(ae)):be}function re(oe,ie,ae){oe?(0,W.f)(ae,oe,ie):ie()}},7272:(N,z,E)=>{"use strict";E.d(z,{z:()=>B});var M=E(8189),L=E(3269),F=E(2076);function B(...q){return function p(){return(0,M.J)(1)}()((0,F.D)(q,(0,L.yG)(q)))}},515:(N,z,E)=>{"use strict";E.d(z,{E:()=>p});const p=new(E(9751).y)(B=>B.complete())},2076:(N,z,E)=>{"use strict";E.d(z,{D:()=>Ke});var M=E(8421),p=E(9672),L=E(4482),F=E(5403);function B(Pe,Re=0){return(0,L.e)((De,le)=>{De.subscribe((0,F.x)(le,ce=>(0,p.f)(le,Pe,()=>le.next(ce),Re),()=>(0,p.f)(le,Pe,()=>le.complete(),Re),ce=>(0,p.f)(le,Pe,()=>le.error(ce),Re)))})}function q(Pe,Re=0){return(0,L.e)((De,le)=>{le.add(Pe.schedule(()=>De.subscribe(le),Re))})}var W=E(9751),G=E(2202),re=E(576);function ie(Pe,Re){if(!Pe)throw new Error("Iterable cannot be null");return new W.y(De=>{(0,p.f)(De,Re,()=>{const le=Pe[Symbol.asyncIterator]();(0,p.f)(De,Re,()=>{le.next().then(ce=>{ce.done?De.complete():De.next(ce.value)})},0,!0)})})}var ae=E(3670),he=E(8239),fe=E(1144),be=E(6495),Le=E(2206),je=E(4532),Ae=E(3260);function Ke(Pe,Re){return Re?function xe(Pe,Re){if(null!=Pe){if((0,ae.c)(Pe))return function Q(Pe,Re){return(0,M.Xf)(Pe).pipe(q(Re),B(Re))}(Pe,Re);if((0,fe.z)(Pe))return function Y(Pe,Re){return new W.y(De=>{let le=0;return Re.schedule(function(){le===Pe.length?De.complete():(De.next(Pe[le++]),De.closed||this.schedule())})})}(Pe,Re);if((0,he.t)(Pe))return function ee(Pe,Re){return(0,M.Xf)(Pe).pipe(q(Re),B(Re))}(Pe,Re);if((0,Le.D)(Pe))return ie(Pe,Re);if((0,be.T)(Pe))return function oe(Pe,Re){return new W.y(De=>{let le;return(0,p.f)(De,Re,()=>{le=Pe[G.h](),(0,p.f)(De,Re,()=>{let ce,_e;try{({value:ce,done:_e}=le.next())}catch(pe){return void De.error(pe)}_e?De.complete():De.next(ce)},0,!0)}),()=>(0,re.m)(le?.return)&&le.return()})}(Pe,Re);if((0,Ae.L)(Pe))return function we(Pe,Re){return ie((0,Ae.Q)(Pe),Re)}(Pe,Re)}throw(0,je.z)(Pe)}(Pe,Re):(0,M.Xf)(Pe)}},8421:(N,z,E)=>{"use strict";E.d(z,{Xf:()=>oe});var M=E(655),p=E(1144),L=E(8239),F=E(9751),B=E(3670),q=E(2206),Q=E(4532),ee=E(6495),W=E(3260),Y=E(576),G=E(7849),re=E(8822);function oe(Ae){if(Ae instanceof F.y)return Ae;if(null!=Ae){if((0,B.c)(Ae))return function ie(Ae){return new F.y(we=>{const xe=Ae[re.L]();if((0,Y.m)(xe.subscribe))return xe.subscribe(we);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ae);if((0,p.z)(Ae))return function ae(Ae){return new F.y(we=>{for(let xe=0;xe{Ae.then(xe=>{we.closed||(we.next(xe),we.complete())},xe=>we.error(xe)).then(null,G.h)})}(Ae);if((0,q.D)(Ae))return be(Ae);if((0,ee.T)(Ae))return function fe(Ae){return new F.y(we=>{for(const xe of Ae)if(we.next(xe),we.closed)return;we.complete()})}(Ae);if((0,W.L)(Ae))return function Le(Ae){return be((0,W.Q)(Ae))}(Ae)}throw(0,Q.z)(Ae)}function be(Ae){return new F.y(we=>{(function je(Ae,we){var xe,Ke,Pe,Re;return(0,M.mG)(this,void 0,void 0,function*(){try{for(xe=(0,M.KL)(Ae);!(Ke=yield xe.next()).done;)if(we.next(Ke.value),we.closed)return}catch(De){Pe={error:De}}finally{try{Ke&&!Ke.done&&(Re=xe.return)&&(yield Re.call(xe))}finally{if(Pe)throw Pe.error}}we.complete()})})(Ae,we).catch(xe=>we.error(xe))})}},6451:(N,z,E)=>{"use strict";E.d(z,{T:()=>q});var M=E(8189),p=E(8421),L=E(515),F=E(3269),B=E(2076);function q(...Q){const ee=(0,F.yG)(Q),W=(0,F._6)(Q,1/0),Y=Q;return Y.length?1===Y.length?(0,p.Xf)(Y[0]):(0,M.J)(W)((0,B.D)(Y,ee)):L.E}},9646:(N,z,E)=>{"use strict";E.d(z,{of:()=>L});var M=E(3269),p=E(2076);function L(...F){const B=(0,M.yG)(F);return(0,p.D)(F,B)}},102:(N,z,E)=>{"use strict";E.d(z,{S:()=>q});var M=E(9751),p=E(8421);const{isArray:L}=Array;var B=E(5403);function q(...ee){return 1===(ee=function F(ee){return 1===ee.length&&L(ee[0])?ee[0]:ee}(ee)).length?(0,p.Xf)(ee[0]):new M.y(function Q(ee){return W=>{let Y=[];for(let G=0;Y&&!W.closed&&G{if(Y){for(let oe=0;oe{"use strict";E.d(z,{_:()=>L});var M=E(9751),p=E(576);function L(F,B){const q=(0,p.m)(F)?F:()=>F,Q=ee=>ee.error(q());return new M.y(B?ee=>B.schedule(Q,0,ee):Q)}},2805:(N,z,E)=>{"use strict";E.d(z,{H:()=>B});var M=E(9751),p=E(4986),L=E(3532),F=E(1165);function B(q=0,Q,ee=p.P){let W=-1;return null!=Q&&((0,L.K)(Q)?ee=Q:W=Q),new M.y(Y=>{let G=(0,F.q)(q)?+q-ee.now():q;G<0&&(G=0);let re=0;return ee.schedule(function(){Y.closed||(Y.next(re++),0<=W?this.schedule(void 0,W):Y.complete())},G)})}},5403:(N,z,E)=>{"use strict";E.d(z,{x:()=>p});var M=E(930);function p(F,B,q,Q,ee){return new L(F,B,q,Q,ee)}class L extends M.Lv{constructor(B,q,Q,ee,W,Y){super(B),this.onFinalize=W,this.shouldUnsubscribe=Y,this._next=q?function(G){try{q(G)}catch(re){B.error(re)}}:super._next,this._error=ee?function(G){try{ee(G)}catch(re){B.error(re)}finally{this.unsubscribe()}}:super._error,this._complete=Q?function(){try{Q()}catch(G){B.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var B;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:q}=this;super.unsubscribe(),!q&&(null===(B=this.onFinalize)||void 0===B||B.call(this))}}}},262:(N,z,E)=>{"use strict";E.d(z,{K:()=>F});var M=E(8421),p=E(5403),L=E(4482);function F(B){return(0,L.e)((q,Q)=>{let Y,ee=null,W=!1;ee=q.subscribe((0,p.x)(Q,void 0,void 0,G=>{Y=(0,M.Xf)(B(G,F(B)(q))),ee?(ee.unsubscribe(),ee=null,Y.subscribe(Q)):W=!0})),W&&(ee.unsubscribe(),ee=null,Y.subscribe(Q))})}},4351:(N,z,E)=>{"use strict";E.d(z,{b:()=>L});var M=E(5577),p=E(576);function L(F,B){return(0,p.m)(B)?(0,M.z)(F,B,1):(0,M.z)(F,1)}},8372:(N,z,E)=>{"use strict";E.d(z,{b:()=>F});var M=E(4986),p=E(4482),L=E(5403);function F(B,q=M.z){return(0,p.e)((Q,ee)=>{let W=null,Y=null,G=null;const re=()=>{if(W){W.unsubscribe(),W=null;const ie=Y;Y=null,ee.next(ie)}};function oe(){const ie=G+B,ae=q.now();if(ae{Y=ie,G=q.now(),W||(W=q.schedule(oe,B),ee.add(W))},()=>{re(),ee.complete()},void 0,()=>{Y=W=null}))})}},6590:(N,z,E)=>{"use strict";E.d(z,{d:()=>L});var M=E(4482),p=E(5403);function L(F){return(0,M.e)((B,q)=>{let Q=!1;B.subscribe((0,p.x)(q,ee=>{Q=!0,q.next(ee)},()=>{Q||q.next(F),q.complete()}))})}},1005:(N,z,E)=>{"use strict";E.d(z,{g:()=>re});var M=E(4986),p=E(7272),L=E(5698),F=E(4482),B=E(5403),q=E(5032),ee=E(9718),W=E(5577);function Y(oe,ie){return ie?ae=>(0,p.z)(ie.pipe((0,L.q)(1),function Q(){return(0,F.e)((oe,ie)=>{oe.subscribe((0,B.x)(ie,q.Z))})}()),ae.pipe(Y(oe))):(0,W.z)((ae,he)=>oe(ae,he).pipe((0,L.q)(1),(0,ee.h)(ae)))}var G=E(2805);function re(oe,ie=M.z){const ae=(0,G.H)(oe,ie);return Y(()=>ae)}},9300:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(4482),p=E(5403);function L(F,B){return(0,M.e)((q,Q)=>{let ee=0;q.subscribe((0,p.x)(Q,W=>F.call(B,W,ee++)&&Q.next(W)))})}},590:(N,z,E)=>{"use strict";E.d(z,{P:()=>Q});var M=E(6805),p=E(9300),L=E(5698),F=E(6590),B=E(8068),q=E(4671);function Q(ee,W){const Y=arguments.length>=2;return G=>G.pipe(ee?(0,p.h)((re,oe)=>ee(re,oe,G)):q.y,(0,L.q)(1),Y?(0,F.d)(W):(0,B.T)(()=>new M.K))}},4004:(N,z,E)=>{"use strict";E.d(z,{U:()=>L});var M=E(4482),p=E(5403);function L(F,B){return(0,M.e)((q,Q)=>{let ee=0;q.subscribe((0,p.x)(Q,W=>{Q.next(F.call(B,W,ee++))}))})}},9718:(N,z,E)=>{"use strict";E.d(z,{h:()=>p});var M=E(4004);function p(L){return(0,M.U)(()=>L)}},8189:(N,z,E)=>{"use strict";E.d(z,{J:()=>L});var M=E(5577),p=E(4671);function L(F=1/0){return(0,M.z)(p.y,F)}},5577:(N,z,E)=>{"use strict";E.d(z,{z:()=>ee});var M=E(4004),p=E(8421),L=E(4482),F=E(9672),B=E(5403),Q=E(576);function ee(W,Y,G=1/0){return(0,Q.m)(Y)?ee((re,oe)=>(0,M.U)((ie,ae)=>Y(re,ie,oe,ae))((0,p.Xf)(W(re,oe))),G):("number"==typeof Y&&(G=Y),(0,L.e)((re,oe)=>function q(W,Y,G,re,oe,ie,ae,he){const fe=[];let be=0,Le=0,je=!1;const Ae=()=>{je&&!fe.length&&!be&&Y.complete()},we=Ke=>be{ie&&Y.next(Ke),be++;let Pe=!1;(0,p.Xf)(G(Ke,Le++)).subscribe((0,B.x)(Y,Re=>{oe?.(Re),ie?we(Re):Y.next(Re)},()=>{Pe=!0},void 0,()=>{if(Pe)try{for(be--;fe.length&&bexe(Re)):xe(Re)}Ae()}catch(Re){Y.error(Re)}}))};return W.subscribe((0,B.x)(Y,we,()=>{je=!0,Ae()})),()=>{he?.()}}(re,oe,W,G)))}},3099:(N,z,E)=>{"use strict";E.d(z,{B:()=>B});var M=E(8421),p=E(7579),L=E(930),F=E(4482);function B(Q={}){const{connector:ee=(()=>new p.x),resetOnError:W=!0,resetOnComplete:Y=!0,resetOnRefCountZero:G=!0}=Q;return re=>{let oe,ie,ae,he=0,fe=!1,be=!1;const Le=()=>{ie?.unsubscribe(),ie=void 0},je=()=>{Le(),oe=ae=void 0,fe=be=!1},Ae=()=>{const we=oe;je(),we?.unsubscribe()};return(0,F.e)((we,xe)=>{he++,!be&&!fe&&Le();const Ke=ae=ae??ee();xe.add(()=>{he--,0===he&&!be&&!fe&&(ie=q(Ae,G))}),Ke.subscribe(xe),!oe&&he>0&&(oe=new L.Hp({next:Pe=>Ke.next(Pe),error:Pe=>{be=!0,Le(),ie=q(je,W,Pe),Ke.error(Pe)},complete:()=>{fe=!0,Le(),ie=q(je,Y),Ke.complete()}}),(0,M.Xf)(we).subscribe(oe))})(re)}}function q(Q,ee,...W){if(!0===ee)return void Q();if(!1===ee)return;const Y=new L.Hp({next:()=>{Y.unsubscribe(),Q()}});return ee(...W).subscribe(Y)}},3900:(N,z,E)=>{"use strict";E.d(z,{w:()=>F});var M=E(8421),p=E(4482),L=E(5403);function F(B,q){return(0,p.e)((Q,ee)=>{let W=null,Y=0,G=!1;const re=()=>G&&!W&&ee.complete();Q.subscribe((0,L.x)(ee,oe=>{W?.unsubscribe();let ie=0;const ae=Y++;(0,M.Xf)(B(oe,ae)).subscribe(W=(0,L.x)(ee,he=>ee.next(q?q(oe,he,ae,ie++):he),()=>{W=null,re()}))},()=>{G=!0,re()}))})}},5698:(N,z,E)=>{"use strict";E.d(z,{q:()=>F});var M=E(515),p=E(4482),L=E(5403);function F(B){return B<=0?()=>M.E:(0,p.e)((q,Q)=>{let ee=0;q.subscribe((0,L.x)(Q,W=>{++ee<=B&&(Q.next(W),B<=ee&&Q.complete())}))})}},8505:(N,z,E)=>{"use strict";E.d(z,{b:()=>B});var M=E(576),p=E(4482),L=E(5403),F=E(4671);function B(q,Q,ee){const W=(0,M.m)(q)||Q||ee?{next:q,error:Q,complete:ee}:q;return W?(0,p.e)((Y,G)=>{var re;null===(re=W.subscribe)||void 0===re||re.call(W);let oe=!0;Y.subscribe((0,L.x)(G,ie=>{var ae;null===(ae=W.next)||void 0===ae||ae.call(W,ie),G.next(ie)},()=>{var ie;oe=!1,null===(ie=W.complete)||void 0===ie||ie.call(W),G.complete()},ie=>{var ae;oe=!1,null===(ae=W.error)||void 0===ae||ae.call(W,ie),G.error(ie)},()=>{var ie,ae;oe&&(null===(ie=W.unsubscribe)||void 0===ie||ie.call(W)),null===(ae=W.finalize)||void 0===ae||ae.call(W)}))}):F.y}},8068:(N,z,E)=>{"use strict";E.d(z,{T:()=>F});var M=E(6805),p=E(4482),L=E(5403);function F(q=B){return(0,p.e)((Q,ee)=>{let W=!1;Q.subscribe((0,L.x)(ee,Y=>{W=!0,ee.next(Y)},()=>W?ee.complete():ee.error(q())))})}function B(){return new M.K}},7414:(N,z,E)=>{"use strict";E.d(z,{V:()=>W});var M=E(4986),p=E(1165),L=E(4482),F=E(8421),B=E(3888),q=E(5403),Q=E(9672);const ee=(0,B.d)(G=>function(oe=null){G(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=oe});function W(G,re){const{first:oe,each:ie,with:ae=Y,scheduler:he=re??M.z,meta:fe=null}=(0,p.q)(G)?{first:G}:"number"==typeof G?{each:G}:G;if(null==oe&&null==ie)throw new TypeError("No timeout provided.");return(0,L.e)((be,Le)=>{let je,Ae,we=null,xe=0;const Ke=Pe=>{Ae=(0,Q.f)(Le,he,()=>{try{je.unsubscribe(),(0,F.Xf)(ae({meta:fe,lastValue:we,seen:xe})).subscribe(Le)}catch(Re){Le.error(Re)}},Pe)};je=be.subscribe((0,q.x)(Le,Pe=>{Ae?.unsubscribe(),xe++,Le.next(we=Pe),ie>0&&Ke(ie)},void 0,void 0,()=>{Ae?.closed||Ae?.unsubscribe(),we=null})),!xe&&Ke(null!=oe?"number"==typeof oe?oe:+oe-he.now():ie)})}function Y(G){throw new ee(G)}},4408:(N,z,E)=>{"use strict";E.d(z,{o:()=>B});var M=E(727);class p extends M.w0{constructor(Q,ee){super()}schedule(Q,ee=0){return this}}const L={setInterval(q,Q,...ee){const{delegate:W}=L;return W?.setInterval?W.setInterval(q,Q,...ee):setInterval(q,Q,...ee)},clearInterval(q){const{delegate:Q}=L;return(Q?.clearInterval||clearInterval)(q)},delegate:void 0};var F=E(8737);class B extends p{constructor(Q,ee){super(Q,ee),this.scheduler=Q,this.work=ee,this.pending=!1}schedule(Q,ee=0){if(this.closed)return this;this.state=Q;const W=this.id,Y=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(Y,W,ee)),this.pending=!0,this.delay=ee,this.id=this.id||this.requestAsyncId(Y,this.id,ee),this}requestAsyncId(Q,ee,W=0){return L.setInterval(Q.flush.bind(Q,this),W)}recycleAsyncId(Q,ee,W=0){if(null!=W&&this.delay===W&&!1===this.pending)return ee;L.clearInterval(ee)}execute(Q,ee){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(Q,ee);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Q,ee){let Y,W=!1;try{this.work(Q)}catch(G){W=!0,Y=G||new Error("Scheduled action threw falsy error")}if(W)return this.unsubscribe(),Y}unsubscribe(){if(!this.closed){const{id:Q,scheduler:ee}=this,{actions:W}=ee;this.work=this.state=this.scheduler=null,this.pending=!1,(0,F.P)(W,this),null!=Q&&(this.id=this.recycleAsyncId(ee,Q,null)),this.delay=null,super.unsubscribe()}}}},7565:(N,z,E)=>{"use strict";E.d(z,{v:()=>L});var M=E(6063);class p{constructor(B,q=p.now){this.schedulerActionCtor=B,this.now=q}schedule(B,q=0,Q){return new this.schedulerActionCtor(this,B).schedule(Q,q)}}p.now=M.l.now;class L extends p{constructor(B,q=p.now){super(B,q),this.actions=[],this._active=!1,this._scheduled=void 0}flush(B){const{actions:q}=this;if(this._active)return void q.push(B);let Q;this._active=!0;do{if(Q=B.execute(B.state,B.delay))break}while(B=q.shift());if(this._active=!1,Q){for(;B=q.shift();)B.unsubscribe();throw Q}}}},4986:(N,z,E)=>{"use strict";E.d(z,{P:()=>F,z:()=>L});var M=E(4408);const L=new(E(7565).v)(M.o),F=L},6063:(N,z,E)=>{"use strict";E.d(z,{l:()=>M});const M={now:()=>(M.delegate||Date).now(),delegate:void 0}},3410:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M={setTimeout(p,L,...F){const{delegate:B}=M;return B?.setTimeout?B.setTimeout(p,L,...F):setTimeout(p,L,...F)},clearTimeout(p){const{delegate:L}=M;return(L?.clearTimeout||clearTimeout)(p)},delegate:void 0}},2202:(N,z,E)=>{"use strict";E.d(z,{h:()=>p});const p=function M(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(N,z,E)=>{"use strict";E.d(z,{L:()=>M});const M="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(N,z,E)=>{"use strict";E.d(z,{K:()=>p});const p=(0,E(3888).d)(L=>function(){L(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(N,z,E)=>{"use strict";E.d(z,{_6:()=>q,jO:()=>F,yG:()=>B});var M=E(576),p=E(3532);function L(Q){return Q[Q.length-1]}function F(Q){return(0,M.m)(L(Q))?Q.pop():void 0}function B(Q){return(0,p.K)(L(Q))?Q.pop():void 0}function q(Q,ee){return"number"==typeof L(Q)?Q.pop():ee}},4742:(N,z,E)=>{"use strict";E.d(z,{D:()=>B});const{isArray:M}=Array,{getPrototypeOf:p,prototype:L,keys:F}=Object;function B(Q){if(1===Q.length){const ee=Q[0];if(M(ee))return{args:ee,keys:null};if(function q(Q){return Q&&"object"==typeof Q&&p(Q)===L}(ee)){const W=F(ee);return{args:W.map(Y=>ee[Y]),keys:W}}}return{args:Q,keys:null}}},8737:(N,z,E)=>{"use strict";function M(p,L){if(p){const F=p.indexOf(L);0<=F&&p.splice(F,1)}}E.d(z,{P:()=>M})},3888:(N,z,E)=>{"use strict";function M(p){const F=p(B=>{Error.call(B),B.stack=(new Error).stack});return F.prototype=Object.create(Error.prototype),F.prototype.constructor=F,F}E.d(z,{d:()=>M})},1810:(N,z,E)=>{"use strict";function M(p,L){return p.reduce((F,B,q)=>(F[B]=L[q],F),{})}E.d(z,{n:()=>M})},2806:(N,z,E)=>{"use strict";E.d(z,{O:()=>F,x:()=>L});var M=E(2416);let p=null;function L(B){if(M.v.useDeprecatedSynchronousErrorHandling){const q=!p;if(q&&(p={errorThrown:!1,error:null}),B(),q){const{errorThrown:Q,error:ee}=p;if(p=null,Q)throw ee}}else B()}function F(B){M.v.useDeprecatedSynchronousErrorHandling&&p&&(p.errorThrown=!0,p.error=B)}},9672:(N,z,E)=>{"use strict";function M(p,L,F,B=0,q=!1){const Q=L.schedule(function(){F(),q?p.add(this.schedule(null,B)):this.unsubscribe()},B);if(p.add(Q),!q)return Q}E.d(z,{f:()=>M})},4671:(N,z,E)=>{"use strict";function M(p){return p}E.d(z,{y:()=>M})},1144:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M=p=>p&&"number"==typeof p.length&&"function"!=typeof p},2206:(N,z,E)=>{"use strict";E.d(z,{D:()=>p});var M=E(576);function p(L){return Symbol.asyncIterator&&(0,M.m)(L?.[Symbol.asyncIterator])}},1165:(N,z,E)=>{"use strict";function M(p){return p instanceof Date&&!isNaN(p)}E.d(z,{q:()=>M})},576:(N,z,E)=>{"use strict";function M(p){return"function"==typeof p}E.d(z,{m:()=>M})},3670:(N,z,E)=>{"use strict";E.d(z,{c:()=>L});var M=E(8822),p=E(576);function L(F){return(0,p.m)(F[M.L])}},6495:(N,z,E)=>{"use strict";E.d(z,{T:()=>L});var M=E(2202),p=E(576);function L(F){return(0,p.m)(F?.[M.h])}},8239:(N,z,E)=>{"use strict";E.d(z,{t:()=>p});var M=E(576);function p(L){return(0,M.m)(L?.then)}},3260:(N,z,E)=>{"use strict";E.d(z,{L:()=>F,Q:()=>L});var M=E(655),p=E(576);function L(B){return(0,M.FC)(this,arguments,function*(){const Q=B.getReader();try{for(;;){const{value:ee,done:W}=yield(0,M.qq)(Q.read());if(W)return yield(0,M.qq)(void 0);yield yield(0,M.qq)(ee)}}finally{Q.releaseLock()}})}function F(B){return(0,p.m)(B?.getReader)}},3532:(N,z,E)=>{"use strict";E.d(z,{K:()=>p});var M=E(576);function p(L){return L&&(0,M.m)(L.schedule)}},4482:(N,z,E)=>{"use strict";E.d(z,{A:()=>p,e:()=>L});var M=E(576);function p(F){return(0,M.m)(F?.lift)}function L(F){return B=>{if(p(B))return B.lift(function(q){try{return F(q,this)}catch(Q){this.error(Q)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(N,z,E)=>{"use strict";E.d(z,{Z:()=>F});var M=E(4004);const{isArray:p}=Array;function F(B){return(0,M.U)(q=>function L(B,q){return p(q)?B(...q):B(q)}(B,q))}},5032:(N,z,E)=>{"use strict";function M(){}E.d(z,{Z:()=>M})},9635:(N,z,E)=>{"use strict";E.d(z,{U:()=>L,z:()=>p});var M=E(4671);function p(...F){return L(F)}function L(F){return 0===F.length?M.y:1===F.length?F[0]:function(q){return F.reduce((Q,ee)=>ee(Q),q)}}},7849:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(2416),p=E(3410);function L(F){p.z.setTimeout(()=>{const{onUnhandledError:B}=M.v;if(!B)throw F;B(F)})}},4532:(N,z,E)=>{"use strict";function M(p){return new TypeError(`You provided ${null!==p&&"object"==typeof p?"an invalid object":`'${p}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(z,{z:()=>M})},655:(N,z,E)=>{"use strict";function ee(le,ce,_e,pe){return new(_e||(_e=Promise))(function(ke,ut){function xt(Ii){try{Fe(pe.next(Ii))}catch(Xn){ut(Xn)}}function kt(Ii){try{Fe(pe.throw(Ii))}catch(Xn){ut(Xn)}}function Fe(Ii){Ii.done?ke(Ii.value):function Be(ke){return ke instanceof _e?ke:new _e(function(ut){ut(ke)})}(Ii.value).then(xt,kt)}Fe((pe=pe.apply(le,ce||[])).next())})}function fe(le){return this instanceof fe?(this.v=le,this):new fe(le)}function be(le,ce,_e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Be,pe=_e.apply(le,ce||[]),ke=[];return Be={},ut("next"),ut("throw"),ut("return"),Be[Symbol.asyncIterator]=function(){return this},Be;function ut(zt){pe[zt]&&(Be[zt]=function(Et){return new Promise(function(Rn,ui){ke.push([zt,Et,Rn,ui])>1||xt(zt,Et)})})}function xt(zt,Et){try{!function kt(zt){zt.value instanceof fe?Promise.resolve(zt.value.v).then(Fe,Ii):Xn(ke[0][2],zt)}(pe[zt](Et))}catch(Rn){Xn(ke[0][3],Rn)}}function Fe(zt){xt("next",zt)}function Ii(zt){xt("throw",zt)}function Xn(zt,Et){zt(Et),ke.shift(),ke.length&&xt(ke[0][0],ke[0][1])}}function je(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _e,ce=le[Symbol.asyncIterator];return ce?ce.call(le):(le=function re(le){var ce="function"==typeof Symbol&&Symbol.iterator,_e=ce&&le[ce],pe=0;if(_e)return _e.call(le);if(le&&"number"==typeof le.length)return{next:function(){return le&&pe>=le.length&&(le=void 0),{value:le&&le[pe++],done:!le}}};throw new TypeError(ce?"Object is not iterable.":"Symbol.iterator is not defined.")}(le),_e={},pe("next"),pe("throw"),pe("return"),_e[Symbol.asyncIterator]=function(){return this},_e);function pe(ke){_e[ke]=le[ke]&&function(ut){return new Promise(function(xt,kt){!function Be(ke,ut,xt,kt){Promise.resolve(kt).then(function(Fe){ke({value:Fe,done:xt})},ut)}(xt,kt,(ut=le[ke](ut)).done,ut.value)})}}}E.d(z,{FC:()=>be,KL:()=>je,mG:()=>ee,qq:()=>fe})},6895:(N,z,E)=>{"use strict";E.d(z,{Do:()=>je,EM:()=>Bs,HT:()=>B,JF:()=>Ki,K0:()=>Q,Mx:()=>ct,NF:()=>xf,O5:()=>Ci,Ov:()=>Wt,PC:()=>Rs,RF:()=>vn,S$:()=>fe,V_:()=>Y,Ye:()=>Ae,b0:()=>Le,bD:()=>Ei,ez:()=>Vs,mk:()=>Vn,n9:()=>qi,q:()=>L,sg:()=>Bn,w_:()=>q});var M=E(4650);let p=null;function L(){return p}function B(P){p||(p=P)}class q{}const Q=new M.OlP("DocumentToken");let ee=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return function W(){return(0,M.LFG)(G)}()},providedIn:"platform"}),P})();const Y=new M.OlP("Location Initialized");let G=(()=>{class P extends ee{constructor(I){super(),this._doc=I,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return L().getBaseHref(this._doc)}onPopState(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("popstate",I,!1),()=>j.removeEventListener("popstate",I)}onHashChange(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("hashchange",I,!1),()=>j.removeEventListener("hashchange",I)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(I){this.location.pathname=I}pushState(I,j,ne){re()?this._history.pushState(I,j,ne):this.location.hash=ne}replaceState(I,j,ne){re()?this._history.replaceState(I,j,ne):this.location.hash=ne}forward(){this._history.forward()}back(){this._history.back()}historyGo(I=0){this._history.go(I)}getState(){return this._history.state}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(Q))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function oe(){return new G((0,M.LFG)(Q))}()},providedIn:"platform"}),P})();function re(){return!!window.history.pushState}function ie(P,O){if(0==P.length)return O;if(0==O.length)return P;let I=0;return P.endsWith("/")&&I++,O.startsWith("/")&&I++,2==I?P+O.substring(1):1==I?P+O:P+"/"+O}function ae(P){const O=P.match(/#|\?|$/),I=O&&O.index||P.length;return P.slice(0,I-("/"===P[I-1]?1:0))+P.slice(I)}function he(P){return P&&"?"!==P[0]?"?"+P:P}let fe=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return(0,M.f3M)(Le)},providedIn:"root"}),P})();const be=new M.OlP("appBaseHref");let Le=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._removeListenerFns=[],this._baseHref=j??this._platformLocation.getBaseHrefFromDOM()??(0,M.f3M)(Q).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}prepareExternalUrl(I){return ie(this._baseHref,I)}path(I=!1){const j=this._platformLocation.pathname+he(this._platformLocation.search),ne=this._platformLocation.hash;return ne&&I?`${j}${ne}`:j}pushState(I,j,ne,me){const ue=this.prepareExternalUrl(ne+he(me));this._platformLocation.pushState(I,j,ue)}replaceState(I,j,ne,me){const ue=this.prepareExternalUrl(ne+he(me));this._platformLocation.replaceState(I,j,ue)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(be,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),je=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._baseHref="",this._removeListenerFns=[],null!=j&&(this._baseHref=j)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}path(I=!1){let j=this._platformLocation.hash;return null==j&&(j="#"),j.length>0?j.substring(1):j}prepareExternalUrl(I){const j=ie(this._baseHref,I);return j.length>0?"#"+j:j}pushState(I,j,ne,me){let ue=this.prepareExternalUrl(ne+he(me));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.pushState(I,j,ue)}replaceState(I,j,ne,me){let ue=this.prepareExternalUrl(ne+he(me));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.replaceState(I,j,ue)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(be,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac}),P})(),Ae=(()=>{class P{constructor(I){this._subject=new M.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=I;const j=this._locationStrategy.getBaseHref();this._baseHref=ae(Ke(j)),this._locationStrategy.onPopState(ne=>{this._subject.emit({url:this.path(!0),pop:!0,state:ne.state,type:ne.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(I=!1){return this.normalize(this._locationStrategy.path(I))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(I,j=""){return this.path()==this.normalize(I+he(j))}normalize(I){return P.stripTrailingSlash(function xe(P,O){return P&&O.startsWith(P)?O.substring(P.length):O}(this._baseHref,Ke(I)))}prepareExternalUrl(I){return I&&"/"!==I[0]&&(I="/"+I),this._locationStrategy.prepareExternalUrl(I)}go(I,j="",ne=null){this._locationStrategy.pushState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}replaceState(I,j="",ne=null){this._locationStrategy.replaceState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(I=0){this._locationStrategy.historyGo?.(I)}onUrlChange(I){return this._urlChangeListeners.push(I),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(j=>{this._notifyUrlChangeListeners(j.url,j.state)})),()=>{const j=this._urlChangeListeners.indexOf(I);this._urlChangeListeners.splice(j,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(I="",j){this._urlChangeListeners.forEach(ne=>ne(I,j))}subscribe(I,j,ne){return this._subject.subscribe({next:I,error:j,complete:ne})}}return P.normalizeQueryParams=he,P.joinWithSlash=ie,P.stripTrailingSlash=ae,P.\u0275fac=function(I){return new(I||P)(M.LFG(fe))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function we(){return new Ae((0,M.LFG)(fe))}()},providedIn:"root"}),P})();function Ke(P){return P.replace(/\/index.html$/,"")}function ct(P,O){O=encodeURIComponent(O);for(const I of P.split(";")){const j=I.indexOf("="),[ne,me]=-1==j?[I,""]:[I.slice(0,j),I.slice(j+1)];if(ne.trim()===O)return decodeURIComponent(me)}return null}let Vn=(()=>{class P{constructor(I,j,ne,me){this._iterableDiffers=I,this._keyValueDiffers=j,this._ngEl=ne,this._renderer=me,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(I){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof I?I.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(I){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof I?I.split(/\s+/):I,this._rawClass&&((0,M.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const I=this._iterableDiffer.diff(this._rawClass);I&&this._applyIterableChanges(I)}else if(this._keyValueDiffer){const I=this._keyValueDiffer.diff(this._rawClass);I&&this._applyKeyValueChanges(I)}}_applyKeyValueChanges(I){I.forEachAddedItem(j=>this._toggleClass(j.key,j.currentValue)),I.forEachChangedItem(j=>this._toggleClass(j.key,j.currentValue)),I.forEachRemovedItem(j=>{j.previousValue&&this._toggleClass(j.key,!1)})}_applyIterableChanges(I){I.forEachAddedItem(j=>{if("string"!=typeof j.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,M.AaK)(j.item)}`);this._toggleClass(j.item,!0)}),I.forEachRemovedItem(j=>this._toggleClass(j.item,!1))}_applyClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(j=>this._toggleClass(j,!0)):Object.keys(I).forEach(j=>this._toggleClass(j,!!I[j])))}_removeClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(j=>this._toggleClass(j,!1)):Object.keys(I).forEach(j=>this._toggleClass(j,!1)))}_toggleClass(I,j){(I=I.trim())&&I.split(/\s+/g).forEach(ne=>{j?this._renderer.addClass(this._ngEl.nativeElement,ne):this._renderer.removeClass(this._ngEl.nativeElement,ne)})}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.ZZ4),M.Y36(M.aQg),M.Y36(M.SBq),M.Y36(M.Qsj))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),P})();class Xr{constructor(O,I,j,ne){this.$implicit=O,this.ngForOf=I,this.index=j,this.count=ne}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Bn=(()=>{class P{constructor(I,j,ne){this._viewContainer=I,this._template=j,this._differs=ne,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(I){this._ngForOf=I,this._ngForOfDirty=!0}set ngForTrackBy(I){this._trackByFn=I}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(I){I&&(this._template=I)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const I=this._ngForOf;!this._differ&&I&&(this._differ=this._differs.find(I).create(this.ngForTrackBy))}if(this._differ){const I=this._differ.diff(this._ngForOf);I&&this._applyChanges(I)}}_applyChanges(I){const j=this._viewContainer;I.forEachOperation((ne,me,ue)=>{if(null==ne.previousIndex)j.createEmbeddedView(this._template,new Xr(ne.item,this._ngForOf,-1,-1),null===ue?void 0:ue);else if(null==ue)j.remove(null===me?void 0:me);else if(null!==me){const We=j.get(me);j.move(We,ue),Zt(We,ne)}});for(let ne=0,me=j.length;ne{Zt(j.get(ne.currentIndex),ne)})}static ngTemplateContextGuard(I,j){return!0}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc),M.Y36(M.ZZ4))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),P})();function Zt(P,O){P.context.$implicit=O.item}let Ci=(()=>{class P{constructor(I,j){this._viewContainer=I,this._context=new Ji,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=j}set ngIf(I){this._context.$implicit=this._context.ngIf=I,this._updateView()}set ngIfThen(I){Mr("ngIfThen",I),this._thenTemplateRef=I,this._thenViewRef=null,this._updateView()}set ngIfElse(I){Mr("ngIfElse",I),this._elseTemplateRef=I,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(I,j){return!0}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),P})();class Ji{constructor(){this.$implicit=null,this.ngIf=null}}function Mr(P,O){if(O&&!O.createEmbeddedView)throw new Error(`${P} must be a TemplateRef, but received '${(0,M.AaK)(O)}'.`)}class Dr{constructor(O,I){this._viewContainerRef=O,this._templateRef=I,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(O){O&&!this._created?this.create():!O&&this._created&&this.destroy()}}let vn=(()=>{class P{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(I){this._ngSwitch=I,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(I){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(I)}_matchCase(I){const j=I==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||j,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),j}_updateDefaultCases(I){if(this._defaultViews&&I!==this._defaultUsed){this._defaultUsed=I;for(let j=0;j{class P{constructor(I,j,ne){this.ngSwitch=ne,ne._addCase(),this._view=new Dr(I,j)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc),M.Y36(vn,9))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),P})(),Rs=(()=>{class P{constructor(I,j,ne){this._ngEl=I,this._differs=j,this._renderer=ne,this._ngStyle=null,this._differ=null}set ngStyle(I){this._ngStyle=I,!this._differ&&I&&(this._differ=this._differs.find(I).create())}ngDoCheck(){if(this._differ){const I=this._differ.diff(this._ngStyle);I&&this._applyChanges(I)}}_setStyle(I,j){const[ne,me]=I.split("."),ue=-1===ne.indexOf("-")?void 0:M.JOm.DashCase;null!=j?this._renderer.setStyle(this._ngEl.nativeElement,ne,me?`${j}${me}`:j,ue):this._renderer.removeStyle(this._ngEl.nativeElement,ne,ue)}_applyChanges(I){I.forEachRemovedItem(j=>this._setStyle(j.key,null)),I.forEachAddedItem(j=>this._setStyle(j.key,j.currentValue)),I.forEachChangedItem(j=>this._setStyle(j.key,j.currentValue))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.SBq),M.Y36(M.aQg),M.Y36(M.Qsj))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),P})();class Da{createSubscription(O,I){return O.subscribe({next:I,error:j=>{throw j}})}dispose(O){O.unsubscribe()}}class eu{createSubscription(O,I){return O.then(I,j=>{throw j})}dispose(O){}}const v=new eu,Xt=new Da;let Wt=(()=>{class P{constructor(I){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=I}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(I){return this._obj?I!==this._obj?(this._dispose(),this.transform(I)):this._latestValue:(I&&this._subscribe(I),this._latestValue)}_subscribe(I){this._obj=I,this._strategy=this._selectStrategy(I),this._subscription=this._strategy.createSubscription(I,j=>this._updateLatestValue(I,j))}_selectStrategy(I){if((0,M.QGY)(I))return v;if((0,M.F4k)(I))return Xt;throw function yt(P,O){return new M.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(I,j){I===this._obj&&(this._latestValue=j,this._ref.markForCheck())}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.sBO,16))},P.\u0275pipe=M.Yjl({name:"async",type:P,pure:!1,standalone:!0}),P})(),Vs=(()=>{class P{}return P.\u0275fac=function(I){return new(I||P)},P.\u0275mod=M.oAB({type:P}),P.\u0275inj=M.cJS({}),P})();const Ei="browser";function xf(P){return P===Ei}let Bs=(()=>{class P{}return P.\u0275prov=(0,M.Yz7)({token:P,providedIn:"root",factory:()=>new hn((0,M.LFG)(Q),window)}),P})();class hn{constructor(O,I){this.document=O,this.window=I,this.offset=()=>[0,0]}setOffset(O){this.offset=Array.isArray(O)?()=>O:O}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(O){this.supportsScrolling()&&this.window.scrollTo(O[0],O[1])}scrollToAnchor(O){if(!this.supportsScrolling())return;const I=function Cc(P,O){const I=P.getElementById(O)||P.getElementsByName(O)[0];if(I)return I;if("function"==typeof P.createTreeWalker&&P.body&&(P.body.createShadowRoot||P.body.attachShadow)){const j=P.createTreeWalker(P.body,NodeFilter.SHOW_ELEMENT);let ne=j.currentNode;for(;ne;){const me=ne.shadowRoot;if(me){const ue=me.getElementById(O)||me.querySelector(`[name="${O}"]`);if(ue)return ue}ne=j.nextNode()}}return null}(this.document,O);I&&(this.scrollToElement(I),I.focus())}setHistoryScrollRestoration(O){if(this.supportScrollRestoration()){const I=this.window.history;I&&I.scrollRestoration&&(I.scrollRestoration=O)}}scrollToElement(O){const I=O.getBoundingClientRect(),j=I.left+this.window.pageXOffset,ne=I.top+this.window.pageYOffset,me=this.offset();this.window.scrollTo(j-me[0],ne-me[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const O=ru(this.window.history)||ru(Object.getPrototypeOf(this.window.history));return!(!O||!O.writable&&!O.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ru(P){return Object.getOwnPropertyDescriptor(P,"scrollRestoration")}class Ki{}},529:(N,z,E)=>{"use strict";E.d(z,{JF:()=>Kd,LE:()=>be,TP:()=>xt,WM:()=>Y,Zn:()=>_e,eN:()=>ke,qT:()=>je});var M=E(6895),p=E(4650),L=E(9646),F=E(9751),B=E(4351),q=E(9300),Q=E(4004);class ee{}class W{}class Y{constructor(X){this.normalizedNames=new Map,this.lazyUpdate=null,X?this.lazyInit="string"==typeof X?()=>{this.headers=new Map,X.split("\n").forEach($=>{const de=$.indexOf(":");if(de>0){const Ee=$.slice(0,de),nt=Ee.toLowerCase(),ht=$.slice(de+1).trim();this.maybeSetNormalizedName(Ee,nt),this.headers.has(nt)?this.headers.get(nt).push(ht):this.headers.set(nt,[ht])}})}:()=>{this.headers=new Map,Object.keys(X).forEach($=>{let de=X[$];const Ee=$.toLowerCase();"string"==typeof de&&(de=[de]),de.length>0&&(this.headers.set(Ee,de),this.maybeSetNormalizedName($,Ee))})}:this.headers=new Map}has(X){return this.init(),this.headers.has(X.toLowerCase())}get(X){this.init();const $=this.headers.get(X.toLowerCase());return $&&$.length>0?$[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(X){return this.init(),this.headers.get(X.toLowerCase())||null}append(X,$){return this.clone({name:X,value:$,op:"a"})}set(X,$){return this.clone({name:X,value:$,op:"s"})}delete(X,$){return this.clone({name:X,value:$,op:"d"})}maybeSetNormalizedName(X,$){this.normalizedNames.has($)||this.normalizedNames.set($,X)}init(){this.lazyInit&&(this.lazyInit instanceof Y?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(X=>this.applyUpdate(X)),this.lazyUpdate=null))}copyFrom(X){X.init(),Array.from(X.headers.keys()).forEach($=>{this.headers.set($,X.headers.get($)),this.normalizedNames.set($,X.normalizedNames.get($))})}clone(X){const $=new Y;return $.lazyInit=this.lazyInit&&this.lazyInit instanceof Y?this.lazyInit:this,$.lazyUpdate=(this.lazyUpdate||[]).concat([X]),$}applyUpdate(X){const $=X.name.toLowerCase();switch(X.op){case"a":case"s":let de=X.value;if("string"==typeof de&&(de=[de]),0===de.length)return;this.maybeSetNormalizedName(X.name,$);const Ee=("a"===X.op?this.headers.get($):void 0)||[];Ee.push(...de),this.headers.set($,Ee);break;case"d":const nt=X.value;if(nt){let ht=this.headers.get($);if(!ht)return;ht=ht.filter(Ne=>-1===nt.indexOf(Ne)),0===ht.length?(this.headers.delete($),this.normalizedNames.delete($)):this.headers.set($,ht)}else this.headers.delete($),this.normalizedNames.delete($)}}forEach(X){this.init(),Array.from(this.normalizedNames.keys()).forEach($=>X(this.normalizedNames.get($),this.headers.get($)))}}class re{encodeKey(X){return he(X)}encodeValue(X){return he(X)}decodeKey(X){return decodeURIComponent(X)}decodeValue(X){return decodeURIComponent(X)}}const ie=/%(\d[a-f0-9])/gi,ae={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function he(ye){return encodeURIComponent(ye).replace(ie,(X,$)=>ae[$]??X)}function fe(ye){return`${ye}`}class be{constructor(X={}){if(this.updates=null,this.cloneFrom=null,this.encoder=X.encoder||new re,X.fromString){if(X.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function oe(ye,X){const $=new Map;return ye.length>0&&ye.replace(/^\?/,"").split("&").forEach(Ee=>{const nt=Ee.indexOf("="),[ht,Ne]=-1==nt?[X.decodeKey(Ee),""]:[X.decodeKey(Ee.slice(0,nt)),X.decodeValue(Ee.slice(nt+1))],tt=$.get(ht)||[];tt.push(Ne),$.set(ht,tt)}),$}(X.fromString,this.encoder)}else X.fromObject?(this.map=new Map,Object.keys(X.fromObject).forEach($=>{const de=X.fromObject[$],Ee=Array.isArray(de)?de.map(fe):[fe(de)];this.map.set($,Ee)})):this.map=null}has(X){return this.init(),this.map.has(X)}get(X){this.init();const $=this.map.get(X);return $?$[0]:null}getAll(X){return this.init(),this.map.get(X)||null}keys(){return this.init(),Array.from(this.map.keys())}append(X,$){return this.clone({param:X,value:$,op:"a"})}appendAll(X){const $=[];return Object.keys(X).forEach(de=>{const Ee=X[de];Array.isArray(Ee)?Ee.forEach(nt=>{$.push({param:de,value:nt,op:"a"})}):$.push({param:de,value:Ee,op:"a"})}),this.clone($)}set(X,$){return this.clone({param:X,value:$,op:"s"})}delete(X,$){return this.clone({param:X,value:$,op:"d"})}toString(){return this.init(),this.keys().map(X=>{const $=this.encoder.encodeKey(X);return this.map.get(X).map(de=>$+"="+this.encoder.encodeValue(de)).join("&")}).filter(X=>""!==X).join("&")}clone(X){const $=new be({encoder:this.encoder});return $.cloneFrom=this.cloneFrom||this,$.updates=(this.updates||[]).concat(X),$}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(X=>this.map.set(X,this.cloneFrom.map.get(X))),this.updates.forEach(X=>{switch(X.op){case"a":case"s":const $=("a"===X.op?this.map.get(X.param):void 0)||[];$.push(fe(X.value)),this.map.set(X.param,$);break;case"d":if(void 0===X.value){this.map.delete(X.param);break}{let de=this.map.get(X.param)||[];const Ee=de.indexOf(fe(X.value));-1!==Ee&&de.splice(Ee,1),de.length>0?this.map.set(X.param,de):this.map.delete(X.param)}}}),this.cloneFrom=this.updates=null)}}class je{constructor(){this.map=new Map}set(X,$){return this.map.set(X,$),this}get(X){return this.map.has(X)||this.map.set(X,X.defaultValue()),this.map.get(X)}delete(X){return this.map.delete(X),this}has(X){return this.map.has(X)}keys(){return this.map.keys()}}function we(ye){return typeof ArrayBuffer<"u"&&ye instanceof ArrayBuffer}function xe(ye){return typeof Blob<"u"&&ye instanceof Blob}function Ke(ye){return typeof FormData<"u"&&ye instanceof FormData}class Re{constructor(X,$,de,Ee){let nt;if(this.url=$,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=X.toUpperCase(),function Ae(ye){switch(ye){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ee?(this.body=void 0!==de?de:null,nt=Ee):nt=de,nt&&(this.reportProgress=!!nt.reportProgress,this.withCredentials=!!nt.withCredentials,nt.responseType&&(this.responseType=nt.responseType),nt.headers&&(this.headers=nt.headers),nt.context&&(this.context=nt.context),nt.params&&(this.params=nt.params)),this.headers||(this.headers=new Y),this.context||(this.context=new je),this.params){const ht=this.params.toString();if(0===ht.length)this.urlWithParams=$;else{const Ne=$.indexOf("?");this.urlWithParams=$+(-1===Ne?"?":Ne<$.length-1?"&":"")+ht}}else this.params=new be,this.urlWithParams=$}serializeBody(){return null===this.body?null:we(this.body)||xe(this.body)||Ke(this.body)||function Pe(ye){return typeof URLSearchParams<"u"&&ye instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof be?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Ke(this.body)?null:xe(this.body)?this.body.type||null:we(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof be?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(X={}){const $=X.method||this.method,de=X.url||this.url,Ee=X.responseType||this.responseType,nt=void 0!==X.body?X.body:this.body,ht=void 0!==X.withCredentials?X.withCredentials:this.withCredentials,Ne=void 0!==X.reportProgress?X.reportProgress:this.reportProgress;let tt=X.headers||this.headers,ri=X.params||this.params;const wt=X.context??this.context;return void 0!==X.setHeaders&&(tt=Object.keys(X.setHeaders).reduce((un,rt)=>un.set(rt,X.setHeaders[rt]),tt)),X.setParams&&(ri=Object.keys(X.setParams).reduce((un,rt)=>un.set(rt,X.setParams[rt]),ri)),new Re($,de,nt,{params:ri,headers:tt,context:wt,reportProgress:Ne,responseType:Ee,withCredentials:ht})}}var De=(()=>((De=De||{})[De.Sent=0]="Sent",De[De.UploadProgress=1]="UploadProgress",De[De.ResponseHeader=2]="ResponseHeader",De[De.DownloadProgress=3]="DownloadProgress",De[De.Response=4]="Response",De[De.User=5]="User",De))();class le{constructor(X,$=200,de="OK"){this.headers=X.headers||new Y,this.status=void 0!==X.status?X.status:$,this.statusText=X.statusText||de,this.url=X.url||null,this.ok=this.status>=200&&this.status<300}}class ce extends le{constructor(X={}){super(X),this.type=De.ResponseHeader}clone(X={}){return new ce({headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class _e extends le{constructor(X={}){super(X),this.type=De.Response,this.body=void 0!==X.body?X.body:null}clone(X={}){return new _e({body:void 0!==X.body?X.body:this.body,headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class pe extends le{constructor(X){super(X,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${X.url||"(unknown url)"}`:`Http failure response for ${X.url||"(unknown url)"}: ${X.status} ${X.statusText}`,this.error=X.error||null}}function Be(ye,X){return{body:X,headers:ye.headers,context:ye.context,observe:ye.observe,params:ye.params,reportProgress:ye.reportProgress,responseType:ye.responseType,withCredentials:ye.withCredentials}}let ke=(()=>{class ye{constructor($){this.handler=$}request($,de,Ee={}){let nt;if($ instanceof Re)nt=$;else{let tt,ri;tt=Ee.headers instanceof Y?Ee.headers:new Y(Ee.headers),Ee.params&&(ri=Ee.params instanceof be?Ee.params:new be({fromObject:Ee.params})),nt=new Re($,de,void 0!==Ee.body?Ee.body:null,{headers:tt,context:Ee.context,params:ri,reportProgress:Ee.reportProgress,responseType:Ee.responseType||"json",withCredentials:Ee.withCredentials})}const ht=(0,L.of)(nt).pipe((0,B.b)(tt=>this.handler.handle(tt)));if($ instanceof Re||"events"===Ee.observe)return ht;const Ne=ht.pipe((0,q.h)(tt=>tt instanceof _e));switch(Ee.observe||"body"){case"body":switch(nt.responseType){case"arraybuffer":return Ne.pipe((0,Q.U)(tt=>{if(null!==tt.body&&!(tt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return tt.body}));case"blob":return Ne.pipe((0,Q.U)(tt=>{if(null!==tt.body&&!(tt.body instanceof Blob))throw new Error("Response is not a Blob.");return tt.body}));case"text":return Ne.pipe((0,Q.U)(tt=>{if(null!==tt.body&&"string"!=typeof tt.body)throw new Error("Response is not a string.");return tt.body}));default:return Ne.pipe((0,Q.U)(tt=>tt.body))}case"response":return Ne;default:throw new Error(`Unreachable: unhandled observe type ${Ee.observe}}`)}}delete($,de={}){return this.request("DELETE",$,de)}get($,de={}){return this.request("GET",$,de)}head($,de={}){return this.request("HEAD",$,de)}jsonp($,de){return this.request("JSONP",$,{params:(new be).append(de,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options($,de={}){return this.request("OPTIONS",$,de)}patch($,de,Ee={}){return this.request("PATCH",$,Be(Ee,de))}post($,de,Ee={}){return this.request("POST",$,Be(Ee,de))}put($,de,Ee={}){return this.request("PUT",$,Be(Ee,de))}}return ye.\u0275fac=function($){return new($||ye)(p.LFG(ee))},ye.\u0275prov=p.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class ut{constructor(X,$){this.next=X,this.interceptor=$}handle(X){return this.interceptor.intercept(X,this.next)}}const xt=new p.OlP("HTTP_INTERCEPTORS");let kt=(()=>{class ye{intercept($,de){return de.handle($)}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275prov=p.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Co=/^\)\]\}',?\n/;let wo=(()=>{class ye{constructor($){this.xhrFactory=$}handle($){if("JSONP"===$.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new F.y(de=>{const Ee=this.xhrFactory.build();if(Ee.open($.method,$.urlWithParams),$.withCredentials&&(Ee.withCredentials=!0),$.headers.forEach((Mt,Lt)=>Ee.setRequestHeader(Mt,Lt.join(","))),$.headers.has("Accept")||Ee.setRequestHeader("Accept","application/json, text/plain, */*"),!$.headers.has("Content-Type")){const Mt=$.detectContentTypeHeader();null!==Mt&&Ee.setRequestHeader("Content-Type",Mt)}if($.responseType){const Mt=$.responseType.toLowerCase();Ee.responseType="json"!==Mt?Mt:"text"}const nt=$.serializeBody();let ht=null;const Ne=()=>{if(null!==ht)return ht;const Mt=Ee.statusText||"OK",Lt=new Y(Ee.getAllResponseHeaders()),yn=function Jd(ye){return"responseURL"in ye&&ye.responseURL?ye.responseURL:/^X-Request-URL:/m.test(ye.getAllResponseHeaders())?ye.getResponseHeader("X-Request-URL"):null}(Ee)||$.url;return ht=new ce({headers:Lt,status:Ee.status,statusText:Mt,url:yn}),ht},tt=()=>{let{headers:Mt,status:Lt,statusText:yn,url:xr}=Ne(),Ai=null;204!==Lt&&(Ai=typeof Ee.response>"u"?Ee.responseText:Ee.response),0===Lt&&(Lt=Ai?200:0);let Jr=Lt>=200&&Lt<300;if("json"===$.responseType&&"string"==typeof Ai){const Kr=Ai;Ai=Ai.replace(Co,"");try{Ai=""!==Ai?JSON.parse(Ai):null}catch(Ea){Ai=Kr,Jr&&(Jr=!1,Ai={error:Ea,text:Ai})}}Jr?(de.next(new _e({body:Ai,headers:Mt,status:Lt,statusText:yn,url:xr||void 0})),de.complete()):de.error(new pe({error:Ai,headers:Mt,status:Lt,statusText:yn,url:xr||void 0}))},ri=Mt=>{const{url:Lt}=Ne(),yn=new pe({error:Mt,status:Ee.status||0,statusText:Ee.statusText||"Unknown Error",url:Lt||void 0});de.error(yn)};let wt=!1;const un=Mt=>{wt||(de.next(Ne()),wt=!0);let Lt={type:De.DownloadProgress,loaded:Mt.loaded};Mt.lengthComputable&&(Lt.total=Mt.total),"text"===$.responseType&&!!Ee.responseText&&(Lt.partialText=Ee.responseText),de.next(Lt)},rt=Mt=>{let Lt={type:De.UploadProgress,loaded:Mt.loaded};Mt.lengthComputable&&(Lt.total=Mt.total),de.next(Lt)};return Ee.addEventListener("load",tt),Ee.addEventListener("error",ri),Ee.addEventListener("timeout",ri),Ee.addEventListener("abort",ri),$.reportProgress&&(Ee.addEventListener("progress",un),null!==nt&&Ee.upload&&Ee.upload.addEventListener("progress",rt)),Ee.send(nt),de.next({type:De.Sent}),()=>{Ee.removeEventListener("error",ri),Ee.removeEventListener("abort",ri),Ee.removeEventListener("load",tt),Ee.removeEventListener("timeout",ri),$.reportProgress&&(Ee.removeEventListener("progress",un),null!==nt&&Ee.upload&&Ee.upload.removeEventListener("progress",rt)),Ee.readyState!==Ee.DONE&&Ee.abort()}})}}return ye.\u0275fac=function($){return new($||ye)(p.LFG(M.JF))},ye.\u0275prov=p.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const er=new p.OlP("XSRF_COOKIE_NAME"),tr=new p.OlP("XSRF_HEADER_NAME");class xa{}let yo=(()=>{class ye{constructor($,de,Ee){this.doc=$,this.platform=de,this.cookieName=Ee,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const $=this.doc.cookie||"";return $!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,M.Mx)($,this.cookieName),this.lastCookieString=$),this.lastToken}}return ye.\u0275fac=function($){return new($||ye)(p.LFG(M.K0),p.LFG(p.Lbi),p.LFG(er))},ye.\u0275prov=p.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Ze=(()=>{class ye{constructor($,de){this.tokenService=$,this.headerName=de}intercept($,de){const Ee=$.url.toLowerCase();if("GET"===$.method||"HEAD"===$.method||Ee.startsWith("http://")||Ee.startsWith("https://"))return de.handle($);const nt=this.tokenService.getToken();return null!==nt&&!$.headers.has(this.headerName)&&($=$.clone({headers:$.headers.set(this.headerName,nt)})),de.handle($)}}return ye.\u0275fac=function($){return new($||ye)(p.LFG(xa),p.LFG(tr))},ye.\u0275prov=p.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),bi=(()=>{class ye{constructor($,de){this.backend=$,this.injector=de,this.chain=null}handle($){if(null===this.chain){const de=this.injector.get(xt,[]);this.chain=de.reduceRight((Ee,nt)=>new ut(Ee,nt),this.backend)}return this.chain.handle($)}}return ye.\u0275fac=function($){return new($||ye)(p.LFG(W),p.LFG(p.zs3))},ye.\u0275prov=p.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Sa=(()=>{class ye{static disable(){return{ngModule:ye,providers:[{provide:Ze,useClass:kt}]}}static withOptions($={}){return{ngModule:ye,providers:[$.cookieName?{provide:er,useValue:$.cookieName}:[],$.headerName?{provide:tr,useValue:$.headerName}:[]]}}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=p.oAB({type:ye}),ye.\u0275inj=p.cJS({providers:[Ze,{provide:xt,useExisting:Ze,multi:!0},{provide:xa,useClass:yo},{provide:er,useValue:"XSRF-TOKEN"},{provide:tr,useValue:"X-XSRF-TOKEN"}]}),ye})(),Kd=(()=>{class ye{}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=p.oAB({type:ye}),ye.\u0275inj=p.cJS({providers:[ke,{provide:ee,useClass:bi},wo,{provide:W,useExisting:wo}],imports:[Sa.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ye})()},4650:(N,z,E)=>{"use strict";E.d(z,{$8M:()=>$s,$Z:()=>_g,AFp:()=>Ip,ALo:()=>RA,AaK:()=>ee,AsE:()=>$h,B6R:()=>xr,BQk:()=>gd,CHM:()=>$t,CRH:()=>yb,CZH:()=>Cn,CqO:()=>o_,D6c:()=>R0,DdM:()=>AA,Dn7:()=>IA,EJc:()=>AE,EiD:()=>Uc,EpF:()=>ss,F$t:()=>c_,F4k:()=>a_,FYo:()=>sa,FiY:()=>el,G48:()=>IE,Gf:()=>wb,GfV:()=>Lm,GkF:()=>os,Gpc:()=>G,Gre:()=>E_,Hsn:()=>gn,Ikx:()=>Xh,JOm:()=>Ir,JVY:()=>vw,KtG:()=>On,L6k:()=>Aw,LAX:()=>Tw,LFG:()=>ti,LSH:()=>Go,Lbi:()=>kp,Lck:()=>yA,MAs:()=>t_,MMx:()=>up,NdJ:()=>Lr,O4$:()=>Ac,OlP:()=>Bt,Oqu:()=>cs,PXZ:()=>h0,Q6J:()=>Il,QGY:()=>_d,QP$:()=>Wl,QbO:()=>Vp,Qsj:()=>Om,R0b:()=>cn,RDi:()=>ww,Rgc:()=>Md,SBq:()=>rl,Sil:()=>l0,Suo:()=>Cp,TTD:()=>xo,TgZ:()=>fd,Tol:()=>__,Udp:()=>Uh,VKq:()=>xA,WFA:()=>bd,WLB:()=>TA,XFs:()=>Ze,Xpm:()=>yn,Xts:()=>$o,Y36:()=>kr,YKP:()=>_s,YNc:()=>Ih,Yjl:()=>uc,Yz7:()=>Et,ZZ4:()=>ic,_Bn:()=>ro,_UZ:()=>n_,_Vd:()=>Jo,_c5:()=>oC,_uU:()=>y_,aQg:()=>Nd,c2e:()=>s0,cJS:()=>ui,cg1:()=>us,d8E:()=>H_,dDg:()=>EE,dqk:()=>de,eBb:()=>xw,eFA:()=>Fp,ekj:()=>Nh,eoX:()=>Kl,f3M:()=>im,g9A:()=>Lb,h0i:()=>gs,hGG:()=>H0,hij:()=>yd,iGM:()=>Cb,ifc:()=>$,ip1:()=>Fi,kL8:()=>R_,kcU:()=>kf,lG2:()=>Zd,lcZ:()=>fp,lnq:()=>v_,lqb:()=>za,lri:()=>d0,mCW:()=>qo,n5z:()=>Gf,n_E:()=>mp,oAB:()=>Kr,oJD:()=>Tm,oxw:()=>l_,pB0:()=>Lc,q3G:()=>Yt,qLn:()=>Ga,qOj:()=>Mh,qZA:()=>kh,qzn:()=>qa,rWj:()=>Nb,s9C:()=>d_,sBO:()=>_0,sIi:()=>is,s_b:()=>_p,soG:()=>Bp,tb:()=>Jl,tp0:()=>na,uIk:()=>Zg,vHH:()=>ae,vpe:()=>zr,wAp:()=>Je,xDo:()=>x_,xi3:()=>PA,xp6:()=>nh,ynx:()=>md,z2F:()=>wa,z3N:()=>mn,zSh:()=>Ou,zs3:()=>ca});var M=E(7579),p=E(727),L=E(9751),F=E(6451),B=E(3099);function q(_){for(let b in _)if(_[b]===q)return b;throw Error("Could not find renamed property on target object.")}function Q(_,b){for(const C in b)b.hasOwnProperty(C)&&!_.hasOwnProperty(C)&&(_[C]=b[C])}function ee(_){if("string"==typeof _)return _;if(Array.isArray(_))return"["+_.map(ee).join(", ")+"]";if(null==_)return""+_;if(_.overriddenName)return`${_.overriddenName}`;if(_.name)return`${_.name}`;const b=_.toString();if(null==b)return""+b;const C=b.indexOf("\n");return-1===C?b:b.substring(0,C)}function W(_,b){return null==_||""===_?null===b?"":b:null==b||""===b?_:_+" "+b}const Y=q({__forward_ref__:q});function G(_){return _.__forward_ref__=G,_.toString=function(){return ee(this())},_}function re(_){return oe(_)?_():_}function oe(_){return"function"==typeof _&&_.hasOwnProperty(Y)&&_.__forward_ref__===G}class ae extends Error{constructor(b,C){super(function he(_,b){return`NG0${Math.abs(_)}${b?": "+b.trim():""}`}(b,C)),this.code=b}}function fe(_){return"string"==typeof _?_:null==_?"":String(_)}function we(_,b){throw new ae(-201,!1)}function kt(_,b){null==_&&function Fe(_,b,C,y){throw new Error(`ASSERTION ERROR: ${_}`+(null==y?"":` [Expected=> ${C} ${y} ${b} <=Actual]`))}(b,_,null,"!=")}function Et(_){return{token:_.token,providedIn:_.providedIn||null,factory:_.factory,value:void 0}}function ui(_){return{providers:_.providers||[],imports:_.imports||[]}}function Yr(_){return dc(_,er)||dc(_,xa)}function dc(_,b){return _.hasOwnProperty(b)?_[b]:null}function wo(_){return _&&(_.hasOwnProperty(tr)||_.hasOwnProperty(yo))?_[tr]:null}const er=q({\u0275prov:q}),tr=q({\u0275inj:q}),xa=q({ngInjectableDef:q}),yo=q({ngInjectorDef:q});var Ze=(()=>((Ze=Ze||{})[Ze.Default=0]="Default",Ze[Ze.Host=1]="Host",Ze[Ze.Self=2]="Self",Ze[Ze.SkipSelf=4]="SkipSelf",Ze[Ze.Optional=8]="Optional",Ze))();let bi;function ki(_){const b=bi;return bi=_,b}function Sa(_,b,C){const y=Yr(_);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:C&Ze.Optional?null:void 0!==b?b:void we(ee(_))}function Pn(_){return{toString:_}.toString()}var Si=(()=>((Si=Si||{})[Si.OnPush=0]="OnPush",Si[Si.Default=1]="Default",Si))(),$=(()=>{return(_=$||($={}))[_.Emulated=0]="Emulated",_[_.None=2]="None",_[_.ShadowDom=3]="ShadowDom",$;var _})();const de=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ht={},Ne=[],tt=q({\u0275cmp:q}),ri=q({\u0275dir:q}),wt=q({\u0275pipe:q}),un=q({\u0275mod:q}),rt=q({\u0275fac:q}),Mt=q({__NG_ELEMENT_ID__:q});let Lt=0;function yn(_){return Pn(()=>{const C=!0===_.standalone,y={},x={type:_.type,providersResolver:null,decls:_.decls,vars:_.vars,factory:null,template:_.template||null,consts:_.consts||null,ngContentSelectors:_.ngContentSelectors,hostBindings:_.hostBindings||null,hostVars:_.hostVars||0,hostAttrs:_.hostAttrs||null,contentQueries:_.contentQueries||null,declaredInputs:y,inputs:null,outputs:null,exportAs:_.exportAs||null,onPush:_.changeDetection===Si.OnPush,directiveDefs:null,pipeDefs:null,standalone:C,dependencies:C&&_.dependencies||null,getStandaloneInjector:null,selectors:_.selectors||Ne,viewQuery:_.viewQuery||null,features:_.features||null,data:_.data||{},encapsulation:_.encapsulation||$.Emulated,id:"c"+Lt++,styles:_.styles||Ne,_:null,setInput:null,schemas:_.schemas||null,tView:null},T=_.dependencies,S=_.features;return x.inputs=vo(_.inputs,y),x.outputs=vo(_.outputs),S&&S.forEach(D=>D(x)),x.directiveDefs=T?()=>("function"==typeof T?T():T).map(Ai).filter(Jr):null,x.pipeDefs=T?()=>("function"==typeof T?T():T).map(Bi).filter(Jr):null,x})}function xr(_,b,C){const y=_.\u0275cmp;y.directiveDefs=()=>("function"==typeof b?b():b).map(Ai),y.pipeDefs=()=>("function"==typeof C?C():C).map(Bi)}function Ai(_){return Tt(_)||Vi(_)}function Jr(_){return null!==_}function Kr(_){return Pn(()=>({type:_.type,bootstrap:_.bootstrap||Ne,declarations:_.declarations||Ne,imports:_.imports||Ne,exports:_.exports||Ne,transitiveCompileScopes:null,schemas:_.schemas||null,id:_.id||null}))}function vo(_,b){if(null==_)return ht;const C={};for(const y in _)if(_.hasOwnProperty(y)){let x=_[y],T=x;Array.isArray(x)&&(T=x[1],x=x[0]),C[x]=y,b&&(b[x]=T)}return C}const Zd=yn;function uc(_){return{type:_.type,name:_.name,factory:null,pure:!1!==_.pure,standalone:!0===_.standalone,onDestroy:_.type.prototype.ngOnDestroy||null}}function Tt(_){return _[tt]||null}function Vi(_){return _[ri]||null}function Bi(_){return _[wt]||null}function Qi(_,b){const C=_[un]||null;if(!C&&!0===b)throw new Error(`Type ${ee(_)} does not have '\u0275mod' property.`);return C}function Ci(_){return Array.isArray(_)&&"object"==typeof _[1]}function Ji(_){return Array.isArray(_)&&!0===_[1]}function Mr(_){return 0!=(8&_.flags)}function Dr(_){return 2==(2&_.flags)}function vn(_){return 1==(1&_.flags)}function qi(_){return null!==_.template}function hc(_){return 0!=(256&_[2])}function Hr(_,b){return _.hasOwnProperty(rt)?_[rt]:null}class iu{constructor(b,C,y){this.previousValue=b,this.currentValue=C,this.firstChange=y}isFirstChange(){return this.firstChange}}function xo(){return fc}function fc(_){return _.type.prototype.ngOnChanges&&(_.setInput=mc),ks}function ks(){const _=So(this),b=_?.current;if(b){const C=_.previous;if(C===ht)_.previous=b;else for(let y in b)C[y]=b[y];_.current=null,this.ngOnChanges(b)}}function mc(_,b,C,y){const x=So(_)||function nu(_,b){return _[To]=b}(_,{previous:ht,current:null}),T=x.current||(x.current={}),S=x.previous,D=this.declaredInputs[C],H=S[D];T[D]=new iu(H&&H.currentValue,b,S===ht),_[y]=b}xo.ngInherit=!0;const To="__ngSimpleChanges__";function So(_){return _[To]||null}function pi(_){for(;Array.isArray(_);)_=_[0];return _}function Bs(_,b){return pi(b[_])}function hn(_,b){return pi(b[_.index])}function Cc(_,b){return _.data[b]}function Eo(_,b){return _[b]}function Ki(_,b){const C=b[_];return Ci(C)?C:C[0]}function P(_){return 4==(4&_[2])}function O(_){return 64==(64&_[2])}function j(_,b){return null==b?null:_[b]}function ne(_){_[18]=0}function me(_,b){_[5]+=b;let C=_,y=_[3];for(;null!==y&&(1===b&&1===C[5]||-1===b&&0===C[5]);)y[5]+=b,C=y,y=y[3]}const ue={lFrame:Hf(null),bindingsEnabled:!0};function wi(){return ue.bindingsEnabled}function ge(){return ue.lFrame.lView}function $e(){return ue.lFrame.tView}function $t(_){return ue.lFrame.contextLView=_,_[8]}function On(_){return ue.lFrame.contextLView=null,_}function Vt(){let _=Mo();for(;null!==_&&64===_.type;)_=_.parent;return _}function Mo(){return ue.lFrame.currentTNode}function Oi(_,b){const C=ue.lFrame;C.currentTNode=_,C.isParent=b}function Qt(){return ue.lFrame.isParent}function pn(){ue.lFrame.isParent=!1}function ei(){const _=ue.lFrame;let b=_.bindingRootIndex;return-1===b&&(b=_.bindingRootIndex=_.tView.bindingStartIndex),b}function Rt(){return ue.lFrame.bindingIndex}function Do(){return ue.lFrame.bindingIndex++}function rr(_){const b=ue.lFrame,C=b.bindingIndex;return b.bindingIndex=b.bindingIndex+_,C}function ou(_,b){const C=ue.lFrame;C.bindingIndex=C.bindingRootIndex=_,wc(b)}function wc(_){ue.lFrame.currentDirectiveIndex=_}function su(_){const b=ue.lFrame.currentDirectiveIndex;return-1===b?null:_[b]}function Df(){return ue.lFrame.currentQueryIndex}function Ha(_){ue.lFrame.currentQueryIndex=_}function yc(_){const b=_[1];return 2===b.type?b.declTNode:1===b.type?_[6]:null}function ft(_,b,C){if(C&Ze.SkipSelf){let x=b,T=_;for(;!(x=x.parent,null!==x||C&Ze.Host||(x=yc(T),null===x||(T=T[15],10&x.type))););if(null===x)return!1;b=x,_=T}const y=ue.lFrame=Ra();return y.currentTNode=b,y.lView=_,!0}function lu(_){const b=Ra(),C=_[1];ue.lFrame=b,b.currentTNode=C.firstChild,b.lView=_,b.tView=C,b.contextLView=_,b.bindingIndex=C.bindingStartIndex,b.inI18n=!1}function Ra(){const _=ue.lFrame,b=null===_?null:_.child;return null===b?Hf(_):b}function Hf(_){const b={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:_,child:null,inI18n:!1};return null!==_&&(_.child=b),b}function Rf(){const _=ue.lFrame;return ue.lFrame=_.parent,_.currentTNode=null,_.lView=null,_}const Ln=Rf;function vc(){const _=Rf();_.isParent=!0,_.tView=null,_.selectedIndex=-1,_.contextLView=null,_.elementDepthCount=0,_.currentDirectiveIndex=-1,_.currentNamespace=null,_.bindingRootIndex=-1,_.bindingIndex=-1,_.currentQueryIndex=0}function en(){return ue.lFrame.selectedIndex}function qt(_){ue.lFrame.selectedIndex=_}function St(){const _=ue.lFrame;return Cc(_.tView,_.selectedIndex)}function Ac(){ue.lFrame.currentNamespace="svg"}function kf(){!function Vf(){ue.lFrame.currentNamespace=null}()}function Os(_,b){for(let C=b.directiveStart,y=b.directiveEnd;C=y)break}else b[H]<0&&(_[18]+=65536),(D>11<_[18]>>16&&(3&_[2])===b){_[2]+=2048;try{T.call(D)}finally{}}}else try{T.call(D)}finally{}}class Rr{constructor(b,C,y){this.factory=b,this.resolving=!1,this.canSeeViewProviders=C,this.injectImpl=y}}function Us(_,b,C){let y=0;for(;yb){S=T-1;break}}}for(;T<_.length;){const D=_[T];if("number"==typeof D)break;if(D===C){if(null===y)return void(null!==x&&(_[T+1]=x));if(y===_[T+1])return void(_[T+2]=x)}T++,null!==y&&T++,null!==x&&T++}-1!==S&&(_.splice(S,0,b),T=S+1),_.splice(T++,0,C),null!==y&&_.splice(T++,0,y),null!==x&&_.splice(T++,0,x)}function uu(_){return-1!==_}function ka(_){return 32767&_}function Ro(_,b){let C=function aw(_){return _>>16}(_),y=b;for(;C>0;)y=y[15],C--;return y}let hu=!0;function Va(_){const b=hu;return hu=_,b}let ow=0;const ar={};function ea(_,b){const C=Pr(_,b);if(-1!==C)return C;const y=b[1];y.firstCreatePass&&(_.injectorIndex=b.length,fu(y.data,_),fu(b,null),fu(y.blueprint,null));const x=Po(_,b),T=_.injectorIndex;if(uu(x)){const S=ka(x),D=Ro(x,b),H=D[1].data;for(let k=0;k<8;k++)b[T+k]=D[S+k]|H[S+k]}return b[T+8]=x,T}function fu(_,b){_.push(0,0,0,0,0,0,0,0,b)}function Pr(_,b){return-1===_.injectorIndex||_.parent&&_.parent.injectorIndex===_.injectorIndex||null===b[_.injectorIndex+8]?-1:_.injectorIndex}function Po(_,b){if(_.parent&&-1!==_.parent.injectorIndex)return _.parent.injectorIndex;let C=0,y=null,x=b;for(;null!==x;){if(y=Wf(x),null===y)return-1;if(C++,x=x[15],-1!==y.injectorIndex)return y.injectorIndex|C<<16}return-1}function mu(_,b,C){!function pu(_,b,C){let y;"string"==typeof C?y=C.charCodeAt(0)||0:C.hasOwnProperty(Mt)&&(y=C[Mt]),null==y&&(y=C[Mt]=ow++);const x=255&y;b.data[_+(x>>5)]|=1<=0?255&b:zf:b}(C);if("function"==typeof T){if(!ft(b,_,y))return y&Ze.Host?Ff(x,0,y):Uf(b,C,y,x);try{const S=T(y);if(null!=S||y&Ze.Optional)return S;we()}finally{Ln()}}else if("number"==typeof T){let S=null,D=Pr(_,b),H=-1,k=y&Ze.Host?b[16][6]:null;for((-1===D||y&Ze.SkipSelf)&&(H=-1===D?Po(_,b):b[D+8],-1!==H&&qf(y,!1)?(S=b[1],D=ka(H),b=Ro(H,b)):D=-1);-1!==D;){const V=b[1];if(Ba(T,D,V.data)){const U=Vo(D,b,C,S,y,k);if(U!==ar)return U}H=b[D+8],-1!==H&&qf(y,b[1].data[D+8]===k)&&Ba(T,D,b)?(S=V,D=ka(H),b=Ro(H,b)):D=-1}}return x}function Vo(_,b,C,y,x,T){const S=b[1],D=S.data[_+8],V=zs(D,S,C,null==y?Dr(D)&&hu:y!=S&&0!=(3&D.type),x&Ze.Host&&T===D);return null!==V?Bo(b,S,V,D):ar}function zs(_,b,C,y,x){const T=_.providerIndexes,S=b.data,D=1048575&T,H=_.directiveStart,V=T>>20,te=x?D+V:_.directiveEnd;for(let se=y?D:D+V;se=H&&Ce.type===C)return se}if(x){const se=S[H];if(se&&qi(se)&&se.type===C)return H}return null}function Bo(_,b,C,y){let x=_[C];const T=b.data;if(function nw(_){return _ instanceof Rr}(x)){const S=x;S.resolving&&function Le(_,b){const C=b?`. Dependency path: ${b.join(" > ")} > ${_}`:"";throw new ae(-200,`Circular dependency in DI detected for ${_}${C}`)}(function be(_){return"function"==typeof _?_.name||_.toString():"object"==typeof _&&null!=_&&"function"==typeof _.type?_.type.name||_.type.toString():fe(_)}(T[C]));const D=Va(S.canSeeViewProviders);S.resolving=!0;const H=S.injectImpl?ki(S.injectImpl):null;ft(_,y,Ze.Default);try{x=_[C]=S.factory(void 0,T,_,y),b.firstCreatePass&&C>=y.directiveStart&&function iw(_,b,C){const{ngOnChanges:y,ngOnInit:x,ngDoCheck:T}=b.type.prototype;if(y){const S=fc(b);(C.preOrderHooks||(C.preOrderHooks=[])).push(_,S),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(_,S)}x&&(C.preOrderHooks||(C.preOrderHooks=[])).push(0-_,x),T&&((C.preOrderHooks||(C.preOrderHooks=[])).push(_,T),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(_,T))}(C,T[C],b)}finally{null!==H&&ki(H),Va(D),S.resolving=!1,Ln()}}return x}function Ba(_,b,C){return!!(C[b+(_>>5)]&1<<_)}function qf(_,b){return!(_&Ze.Self||_&Ze.Host&&b)}class Oo{constructor(b,C){this._tNode=b,this._lView=C}get(b,C,y){return Io(this._tNode,this._lView,b,y,C)}}function zf(){return new Oo(Vt(),ge())}function Gf(_){return Pn(()=>{const b=_.prototype.constructor,C=b[rt]||Gs(b),y=Object.prototype;let x=Object.getPrototypeOf(_.prototype).constructor;for(;x&&x!==y;){const T=x[rt]||Gs(x);if(T&&T!==C)return T;x=Object.getPrototypeOf(x)}return T=>new T})}function Gs(_){return oe(_)?()=>{const b=Gs(re(_));return b&&b()}:Hr(_)}function Wf(_){const b=_[1],C=b.type;return 2===C?b.declTNode:1===C?_[6]:null}function $s(_){return function sw(_,b){if("class"===b)return _.classes;if("style"===b)return _.styles;const C=_.attrs;if(C){const y=C.length;let x=0;for(;x{const y=function Qs(_){return function(...C){if(_){const y=_(...C);for(const x in y)this[x]=y[x]}}}(b);function x(...T){if(this instanceof x)return y.apply(this,T),this;const S=new x(...T);return D.annotation=S,D;function D(H,k,V){const U=H.hasOwnProperty(Oa)?H[Oa]:Object.defineProperty(H,Oa,{value:[]})[Oa];for(;U.length<=V;)U.push(null);return(U[V]=U[V]||[]).push(S),H}}return C&&(x.prototype=Object.create(C.prototype)),x.prototype.ngMetadataName=_,x.annotationCls=x,x})}class Bt{constructor(b,C){this._desc=b,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof C?this.__NG_ELEMENT_ID__=C:void 0!==C&&(this.\u0275prov=Et({token:this,providedIn:C.providedIn||"root",factory:C.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function si(_,b){void 0===b&&(b=_);for(let C=0;C<_.length;C++){let y=_[C];Array.isArray(y)?(b===_&&(b=_.slice(0,C)),si(y,b)):b!==_&&b.push(y)}return b}function tn(_,b){_.forEach(C=>Array.isArray(C)?tn(C,b):b(C))}function Cu(_,b,C){b>=_.length?_.push(C):_.splice(b,0,C)}function Js(_,b){return b>=_.length-1?_.pop():_.splice(b,1)[0]}function Ks(_,b){const C=[];for(let y=0;y<_;y++)C.push(b);return C}function nn(_,b,C){let y=ta(_,b);return y>=0?_[1|y]=C:(y=~y,function lw(_,b,C,y){let x=_.length;if(x==b)_.push(C,y);else if(1===x)_.push(y,_[0]),_[0]=C;else{for(x--,_.push(_[x-1],_[x]);x>b;)_[x]=_[x-2],x--;_[b]=C,_[b+1]=y}}(_,y,b,C)),y}function Zs(_,b){const C=ta(_,b);if(C>=0)return _[1|C]}function ta(_,b){return function Fo(_,b,C){let y=0,x=_.length>>C;for(;x!==y;){const T=y+(x-y>>1),S=_[T<b?x=T:y=T+1}return~(x<_,createScript:_=>_,createScriptURL:_=>_})}catch{}return kc}()?.createHTML(_)||_}function pm(_){return function Mu(){if(void 0===Na&&(Na=null,de.trustedTypes))try{Na=de.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:_=>_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Na}()?.createHTML(_)||_}class lr{constructor(b){this.changingThisBreaksApplicationSecurity=b}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class gm extends lr{getTypeName(){return"HTML"}}class _m extends lr{getTypeName(){return"Style"}}class Bc extends lr{getTypeName(){return"Script"}}class Oc extends lr{getTypeName(){return"URL"}}class bm extends lr{getTypeName(){return"ResourceURL"}}function mn(_){return _ instanceof lr?_.changingThisBreaksApplicationSecurity:_}function qa(_,b){const C=function yw(_){return _ instanceof lr&&_.getTypeName()||null}(_);if(null!=C&&C!==b){if("ResourceURL"===C&&"URL"===b)return!0;throw new Error(`Required a safe ${b}, got a ${C} (see https://g.co/ng/security#xss)`)}return C===b}function vw(_){return new gm(_)}function Aw(_){return new _m(_)}function xw(_){return new Bc(_)}function Tw(_){return new Oc(_)}function Lc(_){return new bm(_)}class Sw{constructor(b){this.inertDocumentHelper=b}getInertBodyElement(b){b=""+b;try{const C=(new window.DOMParser).parseFromString(No(b),"text/html").body;return null===C?this.inertDocumentHelper.getInertBodyElement(b):(C.removeChild(C.firstChild),C)}catch{return null}}}class Ew{constructor(b){if(this.defaultDoc=b,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const C=this.inertDocument.createElement("html");this.inertDocument.appendChild(C);const y=this.inertDocument.createElement("body");C.appendChild(y)}}getInertBodyElement(b){const C=this.inertDocument.createElement("template");if("content"in C)return C.innerHTML=No(b),C;const y=this.inertDocument.createElement("body");return y.innerHTML=No(b),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(b){const C=b.attributes;for(let x=C.length-1;0qo(b.trim())).join(", ")),this.buf.push(" ",S,'="',xm(H),'"')}var _;return this.buf.push(">"),!0}endElement(b){const C=b.nodeName.toLowerCase();Pu.hasOwnProperty(C)&&!Du.hasOwnProperty(C)&&(this.buf.push(""))}chars(b){this.buf.push(xm(b))}checkClobberedElement(b,C){if(C&&(b.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${b.outerHTML}`);return C}}const Pw=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Iw=/([^\#-~ |!])/g;function xm(_){return _.replace(/&/g,"&").replace(Pw,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(Iw,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(//g,">")}let Fc;function Uc(_,b){let C=null;try{Fc=Fc||function Cm(_){const b=new Ew(_);return function Mw(){try{return!!(new window.DOMParser).parseFromString(No(""),"text/html")}catch{return!1}}()?new Sw(b):b}(_);let y=b?String(b):"";C=Fc.getInertBodyElement(y);let x=5,T=y;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,y=T,T=C.innerHTML,C=Fc.getInertBodyElement(y)}while(y!==T);return No((new Am).sanitizeChildren(Nc(C)||C))}finally{if(C){const y=Nc(C)||C;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function Nc(_){return"content"in _&&function Vu(_){return _.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===_.nodeName}(_)?_.content:null}var Yt=(()=>((Yt=Yt||{})[Yt.NONE=0]="NONE",Yt[Yt.HTML=1]="HTML",Yt[Yt.STYLE=2]="STYLE",Yt[Yt.SCRIPT=3]="SCRIPT",Yt[Yt.URL=4]="URL",Yt[Yt.RESOURCE_URL=5]="RESOURCE_URL",Yt))();function Tm(_){const b=Wo();return b?pm(b.sanitize(Yt.HTML,_)||""):qa(_,"HTML")?pm(mn(_)):Uc(function dm(){return void 0!==Su?Su:typeof document<"u"?document:void 0}(),fe(_))}function Go(_){const b=Wo();return b?b.sanitize(Yt.URL,_)||"":qa(_,"URL")?mn(_):qo(fe(_))}function Wo(){const _=ge();return _&&_[12]}const $o=new Bt("ENVIRONMENT_INITIALIZER"),nl=new Bt("INJECTOR",-1),Mm=new Bt("INJECTOR_DEF_TYPES");class Dm{get(b,C=ia){if(C===ia){const y=new Error(`NullInjectorError: No provider for ${ee(b)}!`);throw y.name="NullInjectorError",y}return C}}function Hm(..._){return{\u0275providers:jw(0,_)}}function jw(_,...b){const C=[],y=new Set;let x;return tn(b,T=>{const S=T;qc(S,C,[],y)&&(x||(x=[]),x.push(S))}),void 0!==x&&Rm(x,C),C}function Rm(_,b){for(let C=0;C<_.length;C++){const{providers:x}=_[C];tn(x,T=>{b.push(T)})}}function qc(_,b,C,y){if(!(_=re(_)))return!1;let x=null,T=wo(_);const S=!T&&Tt(_);if(T||S){if(S&&!S.standalone)return!1;x=_}else{const H=_.ngModule;if(T=wo(H),!T)return!1;x=H}const D=y.has(x);if(S){if(D)return!1;if(y.add(x),S.dependencies){const H="function"==typeof S.dependencies?S.dependencies():S.dependencies;for(const k of H)qc(k,b,C,y)}}else{if(!T)return!1;{if(null!=T.imports&&!D){let k;y.add(x);try{tn(T.imports,V=>{qc(V,b,C,y)&&(k||(k=[]),k.push(V))})}finally{}void 0!==k&&Rm(k,b)}if(!D){const k=Hr(x)||(()=>new x);b.push({provide:x,useFactory:k,deps:Ne},{provide:Mm,useValue:x,multi:!0},{provide:$o,useValue:()=>ti(x),multi:!0})}const H=T.providers;null==H||D||tn(H,V=>{b.push(V)})}}return x!==_&&void 0!==_.providers}const Uw=q({provide:String,useValue:q});function cr(_){return null!==_&&"object"==typeof _&&Uw in _}function oa(_){return"function"==typeof _}const Ou=new Bt("Set Injector scope."),zc={},Gc={};let Lu;function Wc(){return void 0===Lu&&(Lu=new Dm),Lu}class za{}class Pm extends za{constructor(b,C,y,x){super(),this.parent=C,this.source=y,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Fu(b,S=>this.processProvider(S)),this.records.set(nl,Qo(void 0,this)),x.has("environment")&&this.records.set(za,Qo(void 0,this));const T=this.records.get(Ou);null!=T&&"string"==typeof T.value&&this.scopes.add(T.value),this.injectorDefTypes=new Set(this.get(Mm.multi,Ne,Ze.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();for(const b of this._onDestroyHooks)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(b){this._onDestroyHooks.push(b)}runInContext(b){this.assertNotDestroyed();const C=Xs(this),y=ki(void 0);try{return b()}finally{Xs(C),ki(y)}}get(b,C=ia,y=Ze.Default){this.assertNotDestroyed();const x=Xs(this),T=ki(void 0);try{if(!(y&Ze.SkipSelf)){let D=this.records.get(b);if(void 0===D){const H=function ju(_){return"function"==typeof _||"object"==typeof _&&_ instanceof Bt}(b)&&Yr(b);D=H&&this.injectableDefInScope(H)?Qo($c(b),zc):null,this.records.set(b,D)}if(null!=D)return this.hydrate(b,D)}return(y&Ze.Self?Wc():this.parent).get(b,C=y&Ze.Optional&&C===ia?null:C)}catch(S){if("NullInjectorError"===S.name){if((S[Pc]=S[Pc]||[]).unshift(ee(b)),x)throw S;return function nm(_,b,C,y){const x=_[Pc];throw b[pw]&&x.unshift(b[pw]),_.message=function rm(_,b,C,y=null){_=_&&"\n"===_.charAt(0)&&"\u0275"==_.charAt(1)?_.slice(2):_;let x=ee(b);if(Array.isArray(b))x=b.map(ee).join(" -> ");else if("object"==typeof b){let T=[];for(let S in b)if(b.hasOwnProperty(S)){let D=b[S];T.push(S+":"+("string"==typeof D?JSON.stringify(D):ee(D)))}x=`{${T.join(", ")}}`}return`${C}${y?"("+y+")":""}[${x}]: ${_.replace(Xf,"\n ")}`}("\n"+_.message,x,C,y),_.ngTokenPath=x,_[Pc]=null,_}(S,b,"R3InjectorError",this.source)}throw S}finally{ki(T),Xs(x)}}resolveInjectorInitializers(){const b=Xs(this),C=ki(void 0);try{const y=this.get($o.multi,Ne,Ze.Self);for(const x of y)x()}finally{Xs(b),ki(C)}}toString(){const b=[],C=this.records;for(const y of C.keys())b.push(ee(y));return`R3Injector[${b.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ae(205,!1)}processProvider(b){let C=oa(b=re(b))?b:re(b&&b.provide);const y=function Im(_){return cr(_)?Qo(void 0,_.useValue):Qo(km(_),zc)}(b);if(oa(b)||!0!==b.multi)this.records.get(C);else{let x=this.records.get(C);x||(x=Qo(void 0,zc,!0),x.factory=()=>vu(x.multi),this.records.set(C,x)),C=b,x.multi.push(b)}this.records.set(C,y)}hydrate(b,C){return C.value===zc&&(C.value=Gc,C.value=C.factory()),"object"==typeof C.value&&C.value&&function Gw(_){return null!==_&&"object"==typeof _&&"function"==typeof _.ngOnDestroy}(C.value)&&this._ngOnDestroyHooks.add(C.value),C.value}injectableDefInScope(b){if(!b.providedIn)return!1;const C=re(b.providedIn);return"string"==typeof C?"any"===C||this.scopes.has(C):this.injectorDefTypes.has(C)}}function $c(_){const b=Yr(_),C=null!==b?b.factory:Hr(_);if(null!==C)return C;if(_ instanceof Bt)throw new ae(204,!1);if(_ instanceof Function)return function zw(_){const b=_.length;if(b>0)throw Ks(b,"?"),new ae(204,!1);const C=function Co(_){const b=_&&(_[er]||_[xa]);if(b){const C=function Jd(_){if(_.hasOwnProperty("name"))return _.name;const b=(""+_).match(/^function\s*([^\s(]+)/);return null===b?"":b[1]}(_);return console.warn(`DEPRECATED: DI is instantiating a token "${C}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${C}" class.`),b}return null}(_);return null!==C?()=>C.factory(_):()=>new _}(_);throw new ae(204,!1)}function km(_,b,C){let y;if(oa(_)){const x=re(_);return Hr(x)||$c(x)}if(cr(_))y=()=>re(_.useValue);else if(function Bu(_){return!(!_||!_.useFactory)}(_))y=()=>_.useFactory(...vu(_.deps||[]));else if(function Nw(_){return!(!_||!_.useExisting)}(_))y=()=>ti(re(_.useExisting));else{const x=re(_&&(_.useClass||_.provide));if(!function Vm(_){return!!_.deps}(_))return Hr(x)||$c(x);y=()=>new x(...vu(_.deps))}return y}function Qo(_,b,C=!1){return{factory:_,value:b,multi:C?[]:void 0}}function Ww(_){return!!_.\u0275providers}function Fu(_,b){for(const C of _)Array.isArray(C)?Fu(C,b):Ww(C)?Fu(C.\u0275providers,b):b(C)}class Qw{}class Yo{resolveComponentFactory(b){throw function Uu(_){const b=Error(`No component factory found for ${ee(_)}. Did you add it to @NgModule.entryComponents?`);return b.ngComponent=_,b}(b)}}let Jo=(()=>{class _{}return _.NULL=new Yo,_})();function Bm(){return dr(Vt(),ge())}function dr(_,b){return new rl(hn(_,b))}let rl=(()=>{class _{constructor(C){this.nativeElement=C}}return _.__NG_ELEMENT_ID__=Bm,_})();function ur(_){return _ instanceof rl?_.nativeElement:_}class sa{}let Om=(()=>{class _{}return _.__NG_ELEMENT_ID__=()=>function al(){const _=ge(),C=Ki(Vt().index,_);return(Ci(C)?C:_)[11]}(),_})(),qu=(()=>{class _{}return _.\u0275prov=Et({token:_,providedIn:"root",factory:()=>null}),_})();class Lm{constructor(b){this.full=b,this.major=b.split(".")[0],this.minor=b.split(".")[1],this.patch=b.split(".").slice(2).join(".")}}const Qc=new Lm("14.1.2"),ol={};function cl(_){return _.ngOriginalError}class Ga{constructor(){this._console=console}handleError(b){const C=this._findOriginalError(b);this._console.error("ERROR",b),C&&this._console.error("ORIGINAL ERROR",C)}_findOriginalError(b){let C=b&&cl(b);for(;C&&cl(C);)C=cl(C);return C||null}}const zm=new Map;let wT=0;const Wm="__ngContext__";function Ri(_,b){Ci(b)?(_[Wm]=b[20],function vT(_){zm.set(_[20],_)}(b)):_[Wm]=b}function Jc(_){const b=_[Wm];return"number"==typeof b?function ty(_){return zm.get(_)||null}(b):b||null}function $m(_){const b=Jc(_);return b?Ci(b)?b:b.lView:null}const HT=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(de))();function la(_){return _ instanceof Function?_():_}var Ir=(()=>((Ir=Ir||{})[Ir.Important=1]="Important",Ir[Ir.DashCase=2]="DashCase",Ir))();function Qu(_,b){return undefined(_,b)}function Kc(_){const b=_[3];return Ji(b)?b[3]:b}function Qm(_){return dy(_[13])}function Ym(_){return dy(_[4])}function dy(_){for(;null!==_&&!Ji(_);)_=_[4];return _}function ul(_,b,C,y,x){if(null!=y){let T,S=!1;Ji(y)?T=y:Ci(y)&&(S=!0,y=y[0]);const D=pi(y);0===_&&null!==C?null==x?gy(b,C,D):Ko(b,C,D,x||null,!0):1===_&&null!==C?Ko(b,C,D,x||null,!0):2===_?function Ay(_,b,C){const y=Yu(_,b);y&&function QT(_,b,C,y){_.removeChild(b,C,y)}(_,y,b,C)}(b,D,S):3===_&&b.destroyNode(D),null!=T&&function KT(_,b,C,y,x){const T=C[7];T!==pi(C)&&ul(b,_,y,T,x);for(let D=10;D0&&(_[C-1][4]=y[4]);const T=Js(_,10+b);!function FT(_,b){Zc(_,b,b[11],2,null,null),b[0]=null,b[6]=null}(y[1],y);const S=T[19];null!==S&&S.detachView(T[1]),y[3]=null,y[4]=null,y[2]&=-65}return y}function py(_,b){if(!(128&b[2])){const C=b[11];C.destroyNode&&Zc(_,b,C,3,null,null),function qT(_){let b=_[13];if(!b)return Xm(_[1],_);for(;b;){let C=null;if(Ci(b))C=b[13];else{const y=b[10];y&&(C=y)}if(!C){for(;b&&!b[4]&&b!==_;)Ci(b)&&Xm(b[1],b),b=b[3];null===b&&(b=_),Ci(b)&&Xm(b[1],b),C=b&&b[4]}b=C}}(b)}}function Xm(_,b){if(!(128&b[2])){b[2]&=-65,b[2]|=128,function $T(_,b){let C;if(null!=_&&null!=(C=_.destroyHooks))for(let y=0;y=0?y[x=k]():y[x=-k].unsubscribe(),T+=2}else{const S=y[x=C[T+1]];C[T].call(S)}if(null!==y){for(let T=x+1;TT?"":x[U+1].toLowerCase();const se=8&y?te:null;if(se&&-1!==hr(se,k,0)||2&y&&k!==te){if(ze(y))return!1;S=!0}}}}else{if(!S&&!ze(y)&&!ze(H))return!1;if(S&&ze(H))continue;S=!1,y=H|1&y}}return ze(y)||S}function ze(_){return 0==(1&_)}function Pi(_,b,C,y){if(null===b)return-1;let x=0;if(y||!C){let T=!1;for(;x-1)for(C++;C<_.length;){const y=_[C];if("number"==typeof y)return-1;if(y===b)return C;C++}return-1}(b,_)}function eh(_,b,C=!1){for(let y=0;y0?'="'+D+'"':"")+"]"}else 8&y?x+="."+S:4&y&&(x+=" "+S);else""!==x&&!ze(S)&&(b+=th(T,x),x=""),y=S,T=T||!ze(y);C++}return""!==x&&(b+=th(T,x)),b}const pt={};function nh(_){Wa($e(),ge(),en()+_,!1)}function Wa(_,b,C,y){if(!y)if(3==(3&b[2])){const T=_.preOrderCheckHooks;null!==T&&xc(b,T,C)}else{const T=_.preOrderHooks;null!==T&&Ls(b,T,0,C)}qt(C)}function pl(_,b=null,C=null,y){const x=Ry(_,b,C,y);return x.resolveInjectorInitializers(),x}function Ry(_,b=null,C=null,y,x=new Set){const T=[C||Ne,Hm(_)];return y=y||("object"==typeof _?void 0:ee(_)),new Pm(T,b||Wc(),y||null,x)}let ca=(()=>{class _{static create(C,y){if(Array.isArray(C))return pl({name:""},y,C,"");{const x=C.name??"";return pl({name:x},C.parent,C.providers,x)}}}return _.THROW_IF_NOT_FOUND=ia,_.NULL=new Dm,_.\u0275prov=Et({token:_,providedIn:"any",factory:()=>ti(nl)}),_.__NG_ELEMENT_ID__=-1,_})();function kr(_,b=Ze.Default){const C=ge();return null===C?ti(_,b):Io(Vt(),C,re(_),b)}function _g(){throw new Error("invalid")}function ml(_,b){return _<<17|b<<2}function Li(_){return _>>17&32767}function dh(_){return 2|_}function da(_){return(131068&_)>>2}function wg(_,b){return-131069&_|b<<2}function uh(_){return 1|_}function Sg(_,b){const C=_.contentQueries;if(null!==C)for(let y=0;y22&&Wa(_,b,22,!1),C(y,x)}finally{qt(T)}}function ad(_,b,C){if(Mr(b)){const x=b.directiveEnd;for(let T=b.directiveStart;T0;){const C=_[--b];if("number"==typeof C&&C<0)return C}return 0})(D)!=H&&D.push(H),D.push(y,x,S)}}function Ig(_,b){null!==_.hostBindings&&_.hostBindings(1,b)}function iv(_,b){b.flags|=2,(_.components||(_.components=[])).push(b.index)}function rv(_,b,C){if(C){if(b.exportAs)for(let y=0;y0&&vh(C)}}function vh(_){for(let y=Qm(_);null!==y;y=Ym(y))for(let x=10;x0&&vh(T)}const C=_[1].components;if(null!==C)for(let y=0;y0&&vh(x)}}function Bg(_,b){const C=Ki(b,_),y=C[1];(function Al(_,b){for(let C=b.length;C<_.blueprint.length;C++)b.push(_.blueprint[C])})(y,C),Qa(y,C,C[8])}function ld(_,b){return _[13]?_[14][4]=b:_[13]=b,_[14]=b,b}function cd(_){for(;_;){_[2]|=32;const b=Kc(_);if(hc(_)&&!b)return _;_=b}return null}function Lg(_){!function Ah(_){for(let b=0;b<_.components.length;b++){const C=_.components[b],y=$m(C);if(null!==y){const x=y[1];Mg(x,y,x.template,C)}}}(_[8])}function dd(_,b,C){Ha(0),b(_,C)}const CS=(()=>Promise.resolve(null))();function Fg(_){return _[7]||(_[7]=[])}function Ug(_){return _.cleanup||(_.cleanup=[])}function xl(_,b,C){return(null===_||qi(_))&&(C=function ew(_){for(;Array.isArray(_);){if("object"==typeof _[1])return _;_=_[0]}return null}(C[b.index])),C[11]}function Ng(_,b){const C=_[9],y=C?C.get(Ga,null):null;y&&y.handleError(b)}function Th(_,b,C,y,x){for(let T=0;T-1&&(Zm(b,y),Js(C,y))}this._attachedToViewContainer=!1}py(this._lView[1],this._lView)}onDestroy(b){Rg(this._lView[1],this._lView,null,b)}markForCheck(){cd(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Og(_,b,C){const y=b[10];y.begin&&y.begin();try{vl(_,b,_.template,C)}catch(x){throw Ng(b,x),x}finally{y.end&&y.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function NT(_,b){Zc(_,b,b[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(b){if(this._attachedToViewContainer)throw new ae(902,!1);this._appRef=b}}class qg extends Sl{constructor(b){super(b),this._view=b}detectChanges(){Lg(this._view)}checkNoChanges(){}get context(){return null}}class es extends Jo{constructor(b){super(),this.ngModule=b}resolveComponentFactory(b){const C=Tt(b);return new Ml(C,this.ngModule)}}function zg(_){const b=[];for(let C in _)_.hasOwnProperty(C)&&b.push({propName:_[C],templateName:C});return b}class El{constructor(b,C){this.injector=b,this.parentInjector=C}get(b,C,y){const x=this.injector.get(b,ol,y);return x!==ol||C===ol?x:this.parentInjector.get(b,C,y)}}class Ml extends Qw{constructor(b,C){super(),this.componentDef=b,this.ngModule=C,this.componentType=b.type,this.selector=function ih(_){return _.map(Ey).join(",")}(b.selectors),this.ngContentSelectors=b.ngContentSelectors?b.ngContentSelectors:[],this.isBoundToModule=!!C}get inputs(){return zg(this.componentDef.inputs)}get outputs(){return zg(this.componentDef.outputs)}create(b,C,y,x){let T=(x=x||this.ngModule)instanceof za?x:x?.injector;T&&null!==this.componentDef.getStandaloneInjector&&(T=this.componentDef.getStandaloneInjector(T)||T);const S=T?new El(b,T):b,D=S.get(sa,null);if(null===D)throw new ae(407,!1);const H=S.get(qu,null),k=D.createRenderer(null,this.componentDef),V=this.componentDef.selectors[0][0]||"div",U=y?function En(_,b,C){return _.selectRootElement(b,C===$.ShadowDom)}(k,y,this.componentDef.encapsulation):Km(D.createRenderer(null,this.componentDef),V,function Gg(_){const b=_.toLowerCase();return"svg"===b?"svg":"math"===b?"math":null}(V)),te=this.componentDef.onPush?288:272,se=function uv(_,b){return{components:[],scheduler:_||HT,clean:CS,playerHandler:b||null,flags:0}}(),Ce=bh(0,null,null,1,0,null,null,null,null,null),Se=ua(null,Ce,se,te,null,null,D,k,H,S,null);let Ve,Ue;lu(Se);try{const et=function dv(_,b,C,y,x,T){const S=C[1];C[22]=_;const H=Xo(S,22,2,"#host",null),k=H.mergedAttrs=b.hostAttrs;null!==k&&(Sh(H,k,!0),null!==_&&(Us(x,_,k),null!==H.classes&&Zu(x,_,H.classes),null!==H.styles&&Ty(x,_,H.styles)));const V=y.createRenderer(_,b),U=ua(C,_h(b),null,b.onPush?32:16,C[22],H,y,V,T||null,null,null);return S.firstCreatePass&&(mu(ea(H,C),S,b.type),iv(S,H),kg(H,C.length,1)),ld(C,U),C[22]=U}(U,this.componentDef,Se,D,k);if(U)if(y)Us(k,U,["ng-version",Qc.full]);else{const{attrs:ve,classes:Ye}=function hl(_){const b=[],C=[];let y=1,x=2;for(;y<_.length;){let T=_[y];if("string"==typeof T)2===x?""!==T&&b.push(T,_[++y]):8===x&&C.push(T);else{if(!ze(x))break;x=T}y++}return{attrs:b,classes:C}}(this.componentDef.selectors[0]);ve&&Us(k,U,ve),Ye&&Ye.length>0&&Zu(k,U,Ye.join(" "))}if(Ue=Cc(Ce,22),void 0!==C){const ve=Ue.projection=[];for(let Ye=0;Ye=0;y--){const x=_[y];x.hostVars=b+=x.hostVars,x.hostAttrs=Ho(x.hostAttrs,C=Ho(C,x.hostAttrs))}}(y)}function Dh(_){return _===ht?{}:_===Ne?[]:_}function Dl(_,b){const C=_.viewQuery;_.viewQuery=C?(y,x)=>{b(y,x),C(y,x)}:b}function Yg(_,b){const C=_.contentQueries;_.contentQueries=C?(y,x,T)=>{b(y,x,T),C(y,x,T)}:b}function mv(_,b){const C=_.hostBindings;_.hostBindings=C?(y,x)=>{b(y,x),C(y,x)}:b}let ud=null;function Za(){if(!ud){const _=de.Symbol;if(_&&_.iterator)ud=_.iterator;else{const b=Object.getOwnPropertyNames(Map.prototype);for(let C=0;CD(pi(_t[y.index])):y.index;let Ye=null;if(!D&&H&&(Ye=function s_(_,b,C,y){const x=_.cleanup;if(null!=x)for(let T=0;TH?D[H]:null}"string"==typeof S&&(T+=2)}return null}(_,b,x,y.index)),null!==Ye)(Ye.__ngLastListenerFn__||Ye).__ngNextListenerFn__=T,Ye.__ngLastListenerFn__=T,se=!1;else{T=Vh(y,b,U,T,!1);const _t=C.listen(Ue,x,T);te.push(T,_t),V&&V.push(x,ve,et,et+1)}}else T=Vh(y,b,U,T,!1);const Ce=y.outputs;let Se;if(se&&null!==Ce&&(Se=Ce[x])){const Ve=Se.length;if(Ve)for(let Ue=0;Ue0;)b=b[15],_--;return b}(_,ue.lFrame.contextLView))[8]}(_)}function Ev(_,b){let C=null;const y=function Xc(_){const b=_.attrs;if(null!=b){const C=b.indexOf(5);if(0==(1&C))return b[C+1]}return null}(_);for(let x=0;x=0}const Ie={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function mt(_){return _.substring(Ie.key,Ie.keyEnd)}function Rv(_,b){const C=Ie.textEnd;return C===b?-1:(b=Ie.keyEnd=function m_(_,b,C){for(;b32;)b++;return b}(_,Ie.key=b,C),Vl(_,b,C))}function Vl(_,b,C){for(;b=0;C=Rv(b,C))nn(_,mt(b),!0)}function Wn(_,b,C,y){const x=ge(),T=$e(),S=rr(2);T.firstUpdatePass&&C_(T,_,S,y),b!==pt&&Wi(x,S,b)&&Lv(T,T.data[en()],x,x[11],_,x[S+1]=function Fv(_,b){return null==_||("string"==typeof b?_+=b:"object"==typeof _&&(_=ee(mn(_)))),_}(b,C),y,S)}function $n(_,b,C,y){const x=$e(),T=rr(2);x.firstUpdatePass&&C_(x,null,T,y);const S=ge();if(C!==pt&&Wi(S,T,C)){const D=x.data[en()];if(Wh(D,y)&&!b_(x,T)){let H=y?D.classesWithoutHost:D.stylesWithoutHost;null!==H&&(C=W(H,C||"")),i_(x,D,S,C,y)}else!function wd(_,b,C,y,x,T,S,D){x===pt&&(x=Ne);let H=0,k=0,V=0=_.expandoStartIndex}function C_(_,b,C,y){const x=_.data;if(null===x[C+1]){const T=x[en()],S=b_(_,C);Wh(T,y)&&null===b&&!S&&(b=!1),b=function kv(_,b,C,y){const x=su(_);let T=y?b.residualClasses:b.residualStyles;if(null===x)0===(y?b.classBindings:b.styleBindings)&&(C=ls(C=qh(null,_,b,C,y),b.attrs,y),T=null);else{const S=b.directiveStylingLast;if(-1===S||_[S]!==x)if(C=qh(x,_,b,C,y),null===T){let H=function Vv(_,b,C){const y=C?b.classBindings:b.styleBindings;if(0!==da(y))return _[Li(y)]}(_,b,y);void 0!==H&&Array.isArray(H)&&(H=qh(null,_,b,H[1],y),H=ls(H,b.attrs,y),function Bv(_,b,C,y){_[Li(C?b.classBindings:b.styleBindings)]=y}(_,b,y,H))}else T=function Ov(_,b,C){let y;const x=b.directiveEnd;for(let T=1+b.directiveStylingLast;T0)&&(k=!0)}else V=C;if(x)if(0!==H){const te=Li(_[D+1]);_[y+1]=ml(te,D),0!==te&&(_[te+1]=wg(_[te+1],y)),_[D+1]=function nS(_,b){return 131071&_|b<<17}(_[D+1],y)}else _[y+1]=ml(D,0),0!==D&&(_[D+1]=wg(_[D+1],y)),D=y;else _[y+1]=ml(H,0),0===D?D=y:_[H+1]=wg(_[H+1],y),H=y;k&&(_[y+1]=dh(_[y+1])),Lh(_,V,y,!0),Lh(_,V,y,!1),function vt(_,b,C,y,x){const T=x?_.residualClasses:_.residualStyles;null!=T&&"string"==typeof b&&ta(T,b)>=0&&(C[y+1]=uh(C[y+1]))}(b,V,_,y,T),S=ml(D,H),T?b.classBindings=S:b.styleBindings=S}(x,T,b,C,S,y)}}function qh(_,b,C,y,x){let T=null;const S=C.directiveEnd;let D=C.directiveStylingLast;for(-1===D?D=C.directiveStart:D++;D0;){const H=_[x],k=Array.isArray(H),V=k?H[1]:H,U=null===V;let te=C[x+1];te===pt&&(te=U?Ne:void 0);let se=U?Zs(te,y):V===y?te:void 0;if(k&&!Gh(se)&&(se=Zs(H,y)),Gh(se)&&(D=se,S))return D;const Ce=_[x+1];x=S?Li(Ce):da(Ce)}if(null!==b){let H=T?b.residualClasses:b.residualStyles;null!=H&&(D=Zs(H,y))}return D}function Gh(_){return void 0!==_}function Wh(_,b){return 0!=(_.flags&(b?16:32))}function y_(_,b=""){const C=ge(),y=$e(),x=_+22,T=y.firstCreatePass?Xo(y,x,1,b,null):y.data[x],S=C[x]=function Jm(_,b){return _.createText(b)}(C[11],b);Ju(y,C,S,T),Oi(T,!1)}function cs(_){return yd("",_,""),cs}function yd(_,b,C){const y=ge(),x=Br(y,_,b,C);return x!==pt&&zn(y,en(),x),yd}function $h(_,b,C,y,x){const T=ge(),S=function pa(_,b,C,y,x,T){const D=ns(_,Rt(),C,x);return rr(2),D?b+fe(C)+y+fe(x)+T:pt}(T,_,b,C,y,x);return S!==pt&&zn(T,en(),S),$h}function v_(_,b,C,y,x,T,S){const D=ge(),H=function rs(_,b,C,y,x,T,S,D){const k=Hh(_,Rt(),C,x,S);return rr(3),k?b+fe(C)+y+fe(x)+T+fe(S)+D:pt}(D,_,b,C,y,x,T,S);return H!==pt&&zn(D,en(),H),v_}function x_(_,b,C,y,x,T,S,D,H,k,V){const U=ge(),te=Hl(U,_,b,C,y,x,T,S,D,H,k,V);return te!==pt&&zn(U,en(),te),x_}function E_(_,b,C){$n(nn,gr,Br(ge(),_,b,C),!0)}function Xh(_,b,C){const y=ge();return Wi(y,Do(),b)&&Mn($e(),St(),y,_,b,y[11],C,!0),Xh}function H_(_,b,C){const y=ge();if(Wi(y,Do(),b)){const T=$e(),S=St();Mn(T,S,y,_,b,xl(su(T.data),S,y),C,!0)}return H_}const ds=void 0;var BS=["en",[["a","p"],["AM","PM"],ds],[["AM","PM"],ds,ds],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ds,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ds,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ds,"{1} 'at' {0}",ds],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function VS(_){const C=Math.floor(Math.abs(_)),y=_.toString().replace(/^[^.]*\.?/,"").length;return 1===C&&0===y?1:5}];let Ol={};function us(_){const b=function Kv(_){return _.toLowerCase().replace(/_/g,"-")}(_);let C=Yv(b);if(C)return C;const y=b.split("-")[0];if(C=Yv(y),C)return C;if("en"===y)return BS;throw new ae(701,!1)}function R_(_){return us(_)[Je.PluralCase]}function Yv(_){return _ in Ol||(Ol[_]=de.ng&&de.ng.common&&de.ng.common.locales&&de.ng.common.locales[_]),Ol[_]}var Je=(()=>((Je=Je||{})[Je.LocaleId=0]="LocaleId",Je[Je.DayPeriodsFormat=1]="DayPeriodsFormat",Je[Je.DayPeriodsStandalone=2]="DayPeriodsStandalone",Je[Je.DaysFormat=3]="DaysFormat",Je[Je.DaysStandalone=4]="DaysStandalone",Je[Je.MonthsFormat=5]="MonthsFormat",Je[Je.MonthsStandalone=6]="MonthsStandalone",Je[Je.Eras=7]="Eras",Je[Je.FirstDayOfWeek=8]="FirstDayOfWeek",Je[Je.WeekendRange=9]="WeekendRange",Je[Je.DateFormat=10]="DateFormat",Je[Je.TimeFormat=11]="TimeFormat",Je[Je.DateTimeFormat=12]="DateTimeFormat",Je[Je.NumberSymbols=13]="NumberSymbols",Je[Je.NumberFormats=14]="NumberFormats",Je[Je.CurrencyCode=15]="CurrencyCode",Je[Je.CurrencySymbol=16]="CurrencySymbol",Je[Je.CurrencyName=17]="CurrencyName",Je[Je.Currencies=18]="Currencies",Je[Je.Directionality=19]="Directionality",Je[Je.PluralCase=20]="PluralCase",Je[Je.ExtraData=21]="ExtraData",Je))();const hs="en-US";let k_=hs;function ap(_,b,C,y,x){if(_=re(_),Array.isArray(_))for(let T=0;T<_.length;T++)ap(_[T],b,C,y,x);else{const T=$e(),S=ge();let D=oa(_)?_:re(_.provide),H=km(_);const k=Vt(),V=1048575&k.providerIndexes,U=k.directiveStart,te=k.providerIndexes>>20;if(oa(_)||!_.multi){const se=new Rr(H,x,kr),Ce=sp(D,b,x?V:V+te,U);-1===Ce?(mu(ea(k,S),T,D),op(T,_,b.length),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(se),S.push(se)):(C[Ce]=se,S[Ce]=se)}else{const se=sp(D,b,V+te,U),Ce=sp(D,b,V,V+te),Se=se>=0&&C[se],Ve=Ce>=0&&C[Ce];if(x&&!Ve||!x&&!Se){mu(ea(k,S),T,D);const Ue=function wA(_,b,C,y,x){const T=new Rr(_,C,kr);return T.multi=[],T.index=b,T.componentProviders=0,ob(T,x,y&&!C),T}(x?lp:sb,C.length,x,y,H);!x&&Ve&&(C[Ce].providerFactory=Ue),op(T,_,b.length,0),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(Ue),S.push(Ue)}else op(T,_,se>-1?se:Ce,ob(C[x?Ce:se],H,!x&&y));!x&&y&&Ve&&C[Ce].componentProviders++}}}function op(_,b,C,y){const x=oa(b),T=function qw(_){return!!_.useClass}(b);if(x||T){const H=(T?re(b.useClass):b).prototype.ngOnDestroy;if(H){const k=_.destroyHooks||(_.destroyHooks=[]);if(!x&&b.multi){const V=k.indexOf(C);-1===V?k.push(C,[y,H]):k[V+1].push(y,H)}else k.push(C,H)}}}function ob(_,b,C){return C&&_.componentProviders++,_.multi.push(b)-1}function sp(_,b,C,y){for(let x=C;x{C.providersResolver=(y,x)=>function CA(_,b,C){const y=$e();if(y.firstCreatePass){const x=qi(_);ap(C,y.data,y.blueprint,x,!0),ap(b,y.data,y.blueprint,x,!1)}}(y,x?x(_):_,b)}}class gs{}class _s{}function yA(_,b){return new _n(_,b??null)}class _n extends gs{constructor(b,C){super(),this._parent=C,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new es(this);const y=Qi(b);this._bootstrapComponents=la(y.bootstrap),this._r3Injector=Ry(b,C,[{provide:gs,useValue:this},{provide:Jo,useValue:this.componentFactoryResolver}],ee(b),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(b)}get injector(){return this._r3Injector}destroy(){const b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(C=>C()),this.destroyCbs=null}onDestroy(b){this.destroyCbs.push(b)}}class dp extends _s{constructor(b){super(),this.moduleType=b}create(b){return new _n(this.moduleType,b)}}class ao extends gs{constructor(b,C,y){super(),this.componentFactoryResolver=new es(this),this.instance=null;const x=new Pm([...b,{provide:gs,useValue:this},{provide:Jo,useValue:this.componentFactoryResolver}],C||Wc(),y,new Set(["environment"]));this.injector=x,x.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(b){this.injector.onDestroy(b)}}function up(_,b,C=null){return new ao(_,b,C).injector}function AA(_,b,C){const y=ei()+_,x=ge();return x[y]===pt?Gi(x,y,C?b.call(C):b()):function hd(_,b){return _[b]}(x,y)}function xA(_,b,C,y){return MA(ge(),ei(),_,b,C,y)}function TA(_,b,C,y,x){return DA(ge(),ei(),_,b,C,y,x)}function Ed(_,b){const C=_[b];return C===pt?void 0:C}function MA(_,b,C,y,x,T){const S=b+C;return Wi(_,S,x)?Gi(_,S+1,T?y.call(T,x):y(x)):Ed(_,S+1)}function DA(_,b,C,y,x,T,S){const D=b+C;return ns(_,D,x,T)?Gi(_,D+2,S?y.call(S,x,T):y(x,T)):Ed(_,D+2)}function RA(_,b){const C=$e();let y;const x=_+22;C.firstCreatePass?(y=function lE(_,b){if(b)for(let C=b.length-1;C>=0;C--){const y=b[C];if(_===y.name)return y}}(b,C.pipeRegistry),C.data[x]=y,y.onDestroy&&(C.destroyHooks||(C.destroyHooks=[])).push(x,y.onDestroy)):y=C.data[x];const T=y.factory||(y.factory=Hr(y.type)),S=ki(kr);try{const D=Va(!1),H=T();return Va(D),function xv(_,b,C,y){C>=_.data.length&&(_.data[C]=null,_.blueprint[C]=null),b[C]=y}(C,ge(),x,H),H}finally{ki(S)}}function fp(_,b,C){const y=_+22,x=ge(),T=Eo(x,y);return Nl(x,y)?MA(x,ei(),b,T.transform,C,T):T.transform(C)}function PA(_,b,C,y){const x=_+22,T=ge(),S=Eo(T,x);return Nl(T,x)?DA(T,ei(),b,S.transform,C,y,S):S.transform(C,y)}function IA(_,b,C,y,x){const T=_+22,S=ge(),D=Eo(S,T);return Nl(S,T)?function HA(_,b,C,y,x,T,S,D){const H=b+C;return Hh(_,H,x,T,S)?Gi(_,H+3,D?y.call(D,x,T,S):y(x,T,S)):Ed(_,H+3)}(S,ei(),b,D.transform,C,y,x,D):D.transform(C,y,x)}function Nl(_,b){return _[1].data[b].pure}function on(_){return b=>{setTimeout(_,void 0,b)}}const zr=class dE extends M.x{constructor(b=!1){super(),this.__isAsync=b}emit(b){super.next(b)}subscribe(b,C,y){let x=b,T=C||(()=>null),S=y;if(b&&"object"==typeof b){const H=b;x=H.next?.bind(H),T=H.error?.bind(H),S=H.complete?.bind(H)}this.__isAsync&&(T=on(T),x&&(x=on(x)),S&&(S=on(S)));const D=super.subscribe({next:x,error:T,complete:S});return b instanceof p.w0&&b.add(D),D}};function uE(){return this._results[Za()]()}class mp{constructor(b=!1){this._emitDistinctChangesOnly=b,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const C=Za(),y=mp.prototype;y[C]||(y[C]=uE)}get changes(){return this._changes||(this._changes=new zr)}get(b){return this._results[b]}map(b){return this._results.map(b)}filter(b){return this._results.filter(b)}find(b){return this._results.find(b)}reduce(b,C){return this._results.reduce(b,C)}forEach(b){this._results.forEach(b)}some(b){return this._results.some(b)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(b,C){const y=this;y.dirty=!1;const x=si(b);(this._changesDetected=!function bu(_,b,C){if(_.length!==b.length)return!1;for(let y=0;y<_.length;y++){let x=_[y],T=b[y];if(C&&(x=C(x),T=C(T)),T!==x)return!1}return!0}(y._results,x,C))&&(y._results=x,y.length=x.length,y.last=x[this.length-1],y.first=x[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let Md=(()=>{class _{}return _.__NG_ELEMENT_ID__=BA,_})();const hE=Md,pE=class extends hE{constructor(b,C,y){super(),this._declarationLView=b,this._declarationTContainer=C,this.elementRef=y}createEmbeddedView(b,C){const y=this._declarationTContainer.tViews,x=ua(this._declarationLView,y,b,16,null,y.declTNode,null,null,null,null,C||null);x[17]=this._declarationLView[this._declarationTContainer.index];const S=this._declarationLView[19];return null!==S&&(x[19]=S.createEmbeddedView(y)),Qa(y,x,b),new Sl(x)}};function BA(){return gp(Vt(),ge())}function gp(_,b){return 4&_.type?new pE(b,_,dr(_,b)):null}let _p=(()=>{class _{}return _.__NG_ELEMENT_ID__=fE,_})();function fE(){return jA(Vt(),ge())}const mE=_p,OA=class extends mE{constructor(b,C,y){super(),this._lContainer=b,this._hostTNode=C,this._hostLView=y}get element(){return dr(this._hostTNode,this._hostLView)}get injector(){return new Oo(this._hostTNode,this._hostLView)}get parentInjector(){const b=Po(this._hostTNode,this._hostLView);if(uu(b)){const C=Ro(b,this._hostLView),y=ka(b);return new Oo(C[1].data[y+8],C)}return new Oo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(b){const C=LA(this._lContainer);return null!==C&&C[b]||null}get length(){return this._lContainer.length-10}createEmbeddedView(b,C,y){let x,T;"number"==typeof y?x=y:null!=y&&(x=y.index,T=y.injector);const S=b.createEmbeddedView(C||{},T);return this.insert(S,x),S}createComponent(b,C,y,x,T){const S=b&&!function jo(_){return"function"==typeof _}(b);let D;if(S)D=C;else{const U=C||{};D=U.index,y=U.injector,x=U.projectableNodes,T=U.environmentInjector||U.ngModuleRef}const H=S?b:new Ml(Tt(b)),k=y||this.parentInjector;if(!T&&null==H.ngModule){const te=(S?k:this.parentInjector).get(za,null);te&&(T=te)}const V=H.create(k,x,void 0,T);return this.insert(V.hostView,D),V}insert(b,C){const y=b._lView,x=y[1];if(function I(_){return Ji(_[3])}(y)){const V=this.indexOf(b);if(-1!==V)this.detach(V);else{const U=y[3],te=new OA(U,U[6],U[3]);te.detach(te.indexOf(b))}}const T=this._adjustIndex(C),S=this._lContainer;!function zT(_,b,C,y){const x=10+y,T=C.length;y>0&&(C[x-1][4]=b),y0)y.push(S[D/2]);else{const k=T[D+1],V=b[-H];for(let U=10;U{class _{constructor(C){this.appInits=C,this.resolve=Yl,this.reject=Yl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,x)=>{this.resolve=y,this.reject=x})}runInitializers(){if(this.initialized)return;const C=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let x=0;x{T.subscribe({complete:D,error:H})});C.push(S)}}Promise.all(C).then(()=>{y()}).catch(x=>{this.reject(x)}),0===C.length&&y(),this.initialized=!0}}return _.\u0275fac=function(C){return new(C||_)(ti(Fi,8))},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const Ip=new Bt("AppId",{providedIn:"root",factory:function o0(){return`${ws()}${ws()}${ws()}`}});function ws(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Lb=new Bt("Platform Initializer"),kp=new Bt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Jl=new Bt("appBootstrapListener"),Vp=new Bt("AnimationModuleType");let s0=(()=>{class _{log(C){console.log(C)}warn(C){console.warn(C)}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();const Bp=new Bt("LocaleId",{providedIn:"root",factory:()=>im(Bp,Ze.Optional|Ze.SkipSelf)||function vE(){return typeof $localize<"u"&&$localize.locale||hs}()}),AE=new Bt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class xE{constructor(b,C){this.ngModuleFactory=b,this.componentFactories=C}}let l0=(()=>{class _{compileModuleSync(C){return new dp(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const y=this.compileModuleSync(C),T=la(Qi(C).declarations).reduce((S,D)=>{const H=Tt(D);return H&&S.push(new Ml(H)),S},[]);return new xE(y,T)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const ys=(()=>Promise.resolve(0))();function lo(_){typeof Zone>"u"?ys.then(()=>{_&&_.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",_)}class cn{constructor({enableLongStackTrace:b=!1,shouldCoalesceEventChangeDetection:C=!1,shouldCoalesceRunChangeDetection:y=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new zr(!1),this.onMicrotaskEmpty=new zr(!1),this.onStable=new zr(!1),this.onError=new zr(!1),typeof Zone>"u")throw new ae(908,!1);Zone.assertZonePatched();const x=this;if(x._nesting=0,x._outer=x._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const T=Zone.AsyncStackTaggingZoneSpec;x._inner=x._inner.fork(new T("Angular"))}Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),b&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!y&&C,x.shouldCoalesceRunChangeDetection=y,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function Op(){let _=de.requestAnimationFrame,b=de.cancelAnimationFrame;if(typeof Zone<"u"&&_&&b){const C=_[Zone.__symbol__("OriginalDelegate")];C&&(_=C);const y=b[Zone.__symbol__("OriginalDelegate")];y&&(b=y)}return{nativeRequestAnimationFrame:_,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function Ub(_){const b=()=>{!function kd(_){_.isCheckStableRunning||-1!==_.lastRequestAnimationFrameId||(_.lastRequestAnimationFrameId=_.nativeRequestAnimationFrame.call(de,()=>{_.fakeTopEventTask||(_.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{_.lastRequestAnimationFrameId=-1,Vd(_),_.isCheckStableRunning=!0,Id(_),_.isCheckStableRunning=!1},void 0,()=>{},()=>{})),_.fakeTopEventTask.invoke()}),Vd(_))}(_)};_._inner=_._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(C,y,x,T,S,D)=>{try{return jp(_),C.invokeTask(x,T,S,D)}finally{(_.shouldCoalesceEventChangeDetection&&"eventTask"===T.type||_.shouldCoalesceRunChangeDetection)&&b(),Bd(_)}},onInvoke:(C,y,x,T,S,D,H)=>{try{return jp(_),C.invoke(x,T,S,D,H)}finally{_.shouldCoalesceRunChangeDetection&&b(),Bd(_)}},onHasTask:(C,y,x,T)=>{C.hasTask(x,T),y===x&&("microTask"==T.change?(_._hasPendingMicrotasks=T.microTask,Vd(_),Id(_)):"macroTask"==T.change&&(_.hasPendingMacrotasks=T.macroTask))},onHandleError:(C,y,x,T)=>(C.handleError(x,T),_.runOutsideAngular(()=>_.onError.emit(T)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!cn.isInAngularZone())throw new ae(909,!1)}static assertNotInAngularZone(){if(cn.isInAngularZone())throw new ae(909,!1)}run(b,C,y){return this._inner.run(b,C,y)}runTask(b,C,y,x){const T=this._inner,S=T.scheduleEventTask("NgZoneEvent: "+x,b,Lp,Yl,Yl);try{return T.runTask(S,C,y)}finally{T.cancelTask(S)}}runGuarded(b,C,y){return this._inner.runGuarded(b,C,y)}runOutsideAngular(b){return this._outer.run(b)}}const Lp={};function Id(_){if(0==_._nesting&&!_.hasPendingMicrotasks&&!_.isStable)try{_._nesting++,_.onMicrotaskEmpty.emit(null)}finally{if(_._nesting--,!_.hasPendingMicrotasks)try{_.runOutsideAngular(()=>_.onStable.emit(null))}finally{_.isStable=!0}}}function Vd(_){_.hasPendingMicrotasks=!!(_._hasPendingMicrotasks||(_.shouldCoalesceEventChangeDetection||_.shouldCoalesceRunChangeDetection)&&-1!==_.lastRequestAnimationFrameId)}function jp(_){_._nesting++,_.isStable&&(_.isStable=!1,_.onUnstable.emit(null))}function Bd(_){_._nesting--,Id(_)}class SE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new zr,this.onMicrotaskEmpty=new zr,this.onStable=new zr,this.onError=new zr}run(b,C,y){return b.apply(C,y)}runGuarded(b,C,y){return b.apply(C,y)}runOutsideAngular(b){return b()}runTask(b,C,y,x){return b.apply(C,y)}}const d0=new Bt(""),Nb=new Bt("");let vs,EE=(()=>{class _{constructor(C,y,x){this._ngZone=C,this.registry=y,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,vs||(function Zl(_){vs=_}(x),x.addToWindow(y)),this._watchAngularEvents(),C.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{cn.assertNotInAngularZone(),lo(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())lo(()=>{for(;0!==this._callbacks.length;){let C=this._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb(this._didWork)}this._didWork=!1});else{let C=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(C)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,y,x){let T=-1;y&&y>0&&(T=setTimeout(()=>{this._callbacks=this._callbacks.filter(S=>S.timeoutId!==T),C(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:C,timeoutId:T,updateCb:x})}whenStable(C,y,x){if(x&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(C,y,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,y,x){return[]}}return _.\u0275fac=function(C){return new(C||_)(ti(cn),ti(Kl),ti(Nb))},_.\u0275prov=Et({token:_,factory:_.\u0275fac}),_})(),Kl=(()=>{class _{constructor(){this._applications=new Map}registerApplication(C,y){this._applications.set(C,y)}unregisterApplication(C){this._applications.delete(C)}unregisterAllApplications(){this._applications.clear()}getTestability(C){return this._applications.get(C)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(C,y=!0){return vs?.findTestabilityInTree(this,C,y)??null}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})(),Yn=null;const qb=new Bt("AllowMultipleToken"),Xl=new Bt("PlatformDestroyListeners");class h0{constructor(b,C){this.name=b,this.token=C}}function Fp(_,b,C=[]){const y=`Platform: ${b}`,x=new Bt(y);return(T=[])=>{let S=Ld();if(!S||S.injector.get(qb,!1)){const D=[...C,...T,{provide:x,useValue:!0}];_?_(D):function Gb(_){if(Yn&&!Yn.get(qb,!1))throw new ae(400,!1);Yn=_;const b=_.get(jd);(function f0(_){const b=_.get(Lb,null);b&&b.forEach(C=>C())})(_)}(function Od(_=[],b){return ca.create({name:b,providers:[{provide:Ou,useValue:"platform"},{provide:Xl,useValue:new Set([()=>Yn=null])},..._]})}(D,y))}return function HE(_){const b=Ld();if(!b)throw new ae(401,!1);return b}()}}function Ld(){return Yn?.get(jd)??null}let jd=(()=>{class _{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,y){const x=function PE(_,b){let C;return C="noop"===_?new SE:("zone.js"===_?void 0:_)||new cn(b),C}(y?.ngZone,function Wb(_){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!_||!_.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!_||!_.ngZoneRunCoalescing)||!1}}(y)),T=[{provide:cn,useValue:x}];return x.run(()=>{const S=ca.create({providers:T,parent:this.injector,name:C.moduleType.name}),D=C.create(S),H=D.injector.get(Ga,null);if(!H)throw new ae(402,!1);return x.runOutsideAngular(()=>{const k=x.onError.subscribe({next:V=>{H.handleError(V)}});D.onDestroy(()=>{ec(this._modules,D),k.unsubscribe()})}),function $b(_,b,C){try{const y=C();return _d(y)?y.catch(x=>{throw b.runOutsideAngular(()=>_.handleError(x)),x}):y}catch(y){throw b.runOutsideAngular(()=>_.handleError(y)),y}}(H,x,()=>{const k=D.injector.get(Cn);return k.runInitializers(),k.donePromise.then(()=>(function V_(_){kt(_,"Expected localeId to be defined"),"string"==typeof _&&(k_=_.toLowerCase().replace(/_/g,"-"))}(D.injector.get(Bp,hs)||hs),this._moduleDoBootstrap(D),D))})})}bootstrapModule(C,y=[]){const x=As({},y);return function u0(_,b,C){const y=new dp(C);return Promise.resolve(y)}(0,0,C).then(T=>this.bootstrapModuleFactory(T,x))}_moduleDoBootstrap(C){const y=C.injector.get(wa);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(x=>y.bootstrap(x));else{if(!C.instance.ngDoBootstrap)throw new ae(403,!1);C.instance.ngDoBootstrap(y)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ae(404,!1);this._modules.slice().forEach(y=>y.destroy()),this._destroyListeners.forEach(y=>y());const C=this._injector.get(Xl,null);C&&(C.forEach(y=>y()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return _.\u0275fac=function(C){return new(C||_)(ti(ca))},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();function As(_,b){return Array.isArray(b)?b.reduce(As,_):{..._,...b}}let wa=(()=>{class _{constructor(C,y,x){this._zone=C,this._injector=y,this._exceptionHandler=x,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const T=new L.y(D=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{D.next(this._stable),D.complete()})}),S=new L.y(D=>{let H;this._zone.runOutsideAngular(()=>{H=this._zone.onStable.subscribe(()=>{cn.assertNotInAngularZone(),lo(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,D.next(!0))})})});const k=this._zone.onUnstable.subscribe(()=>{cn.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{D.next(!1)}))});return()=>{H.unsubscribe(),k.unsubscribe()}});this.isStable=(0,F.T)(T,S.pipe((0,B.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(C,y){const x=C instanceof Qw;if(!this._injector.get(Cn).done)throw!x&&Wl(C),new ae(405,false);let S;S=x?C:this._injector.get(Jo).resolveComponentFactory(C),this.componentTypes.push(S.componentType);const D=function zb(_){return _.isBoundToModule}(S)?void 0:this._injector.get(gs),k=S.create(ca.NULL,[],y||S.selector,D),V=k.location.nativeElement,U=k.injector.get(d0,null);return U?.registerApplication(V),k.onDestroy(()=>{this.detachView(k.hostView),ec(this.components,k),U?.unregisterApplication(V)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ae(101,!1);try{this._runningTick=!0;for(let C of this._views)C.detectChanges()}catch(C){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(C))}finally{this._runningTick=!1}}attachView(C){const y=C;this._views.push(y),y.attachToAppRef(this)}detachView(C){const y=C;ec(this._views,y),y.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C),this._injector.get(Jl,[]).concat(this._bootstrapListeners).forEach(x=>x(C))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(C=>C()),this._views.slice().forEach(C=>C.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(C){return this._destroyListeners.push(C),()=>ec(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new ae(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return _.\u0275fac=function(C){return new(C||_)(ti(cn),ti(za),ti(Ga))},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function ec(_,b){const C=_.indexOf(b);C>-1&&_.splice(C,1)}let Qb=!0;function IE(){Qb=!1}let _0=(()=>{class _{}return _.__NG_ELEMENT_ID__=Jb,_})();function Jb(_){return function b0(_,b,C){if(Dr(_)&&!C){const y=Ki(_.index,b);return new Sl(y,y)}return 47&_.type?new Sl(b[16],b):null}(Vt(),ge(),16==(16&_))}class eC{constructor(){}supports(b){return is(b)}create(b){return new x0(b)}}const tC=(_,b)=>b;class x0{constructor(b){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=b||tC}forEachItem(b){let C;for(C=this._itHead;null!==C;C=C._next)b(C)}forEachOperation(b){let C=this._itHead,y=this._removalsHead,x=0,T=null;for(;C||y;){const S=!y||C&&C.currentIndex{S=this._trackByFn(x,D),null!==C&&Object.is(C.trackById,S)?(y&&(C=this._verifyReinsertion(C,D,S,x)),Object.is(C.item,D)||this._addIdentityChange(C,D)):(C=this._mismatch(C,D,S,x),y=!0),C=C._next,x++}),this.length=x;return this._truncate(C),this.collection=b,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let b;for(b=this._previousItHead=this._itHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._additionsHead;null!==b;b=b._nextAdded)b.previousIndex=b.currentIndex;for(this._additionsHead=this._additionsTail=null,b=this._movesHead;null!==b;b=b._nextMoved)b.previousIndex=b.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(b,C,y,x){let T;return null===b?T=this._itTail:(T=b._prev,this._remove(b)),null!==(b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._reinsertAfter(b,T,x)):null!==(b=null===this._linkedRecords?null:this._linkedRecords.get(y,x))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._moveAfter(b,T,x)):b=this._addAfter(new iC(C,y),T,x),b}_verifyReinsertion(b,C,y,x){let T=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==T?b=this._reinsertAfter(T,b._prev,x):b.currentIndex!=x&&(b.currentIndex=x,this._addToMoves(b,x)),b}_truncate(b){for(;null!==b;){const C=b._next;this._addToRemovals(this._unlink(b)),b=C}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(b,C,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(b);const x=b._prevRemoved,T=b._nextRemoved;return null===x?this._removalsHead=T:x._nextRemoved=T,null===T?this._removalsTail=x:T._prevRemoved=x,this._insertAfter(b,C,y),this._addToMoves(b,y),b}_moveAfter(b,C,y){return this._unlink(b),this._insertAfter(b,C,y),this._addToMoves(b,y),b}_addAfter(b,C,y){return this._insertAfter(b,C,y),this._additionsTail=null===this._additionsTail?this._additionsHead=b:this._additionsTail._nextAdded=b,b}_insertAfter(b,C,y){const x=null===C?this._itHead:C._next;return b._next=x,b._prev=C,null===x?this._itTail=b:x._prev=b,null===C?this._itHead=b:C._next=b,null===this._linkedRecords&&(this._linkedRecords=new Ud),this._linkedRecords.put(b),b.currentIndex=y,b}_remove(b){return this._addToRemovals(this._unlink(b))}_unlink(b){null!==this._linkedRecords&&this._linkedRecords.remove(b);const C=b._prev,y=b._next;return null===C?this._itHead=y:C._next=y,null===y?this._itTail=C:y._prev=C,b}_addToMoves(b,C){return b.previousIndex===C||(this._movesTail=null===this._movesTail?this._movesHead=b:this._movesTail._nextMoved=b),b}_addToRemovals(b){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ud),this._unlinkedRecords.put(b),b.currentIndex=null,b._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=b,b._prevRemoved=null):(b._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=b),b}_addIdentityChange(b,C){return b.item=C,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=b:this._identityChangesTail._nextIdentityChange=b,b}}class iC{constructor(b,C){this.item=b,this.trackById=C,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class T0{constructor(){this._head=null,this._tail=null}add(b){null===this._head?(this._head=this._tail=b,b._nextDup=null,b._prevDup=null):(this._tail._nextDup=b,b._prevDup=this._tail,b._nextDup=null,this._tail=b)}get(b,C){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===C||C<=y.currentIndex)&&Object.is(y.trackById,b))return y;return null}remove(b){const C=b._prevDup,y=b._nextDup;return null===C?this._head=y:C._nextDup=y,null===y?this._tail=C:y._prevDup=C,null===this._head}}class Ud{constructor(){this.map=new Map}put(b){const C=b.trackById;let y=this.map.get(C);y||(y=new T0,this.map.set(C,y)),y.add(b)}get(b,C){const x=this.map.get(b);return x?x.get(b,C):null}remove(b){const C=b.trackById;return this.map.get(C).remove(b)&&this.map.delete(C),b}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function nC(_,b,C){const y=_.previousIndex;if(null===y)return y;let x=0;return C&&y{if(C&&C.key===x)this._maybeAddToChanges(C,y),this._appendAfter=C,C=C._next;else{const T=this._getOrCreateRecordForKey(x,y);C=this._insertBeforeOrAppend(C,T)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(let y=C;null!==y;y=y._nextRemoved)y===this._mapHead&&(this._mapHead=null),this._records.delete(y.key),y._nextRemoved=y._next,y.previousValue=y.currentValue,y.currentValue=null,y._prev=null,y._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(b,C){if(b){const y=b._prev;return C._next=b,C._prev=y,b._prev=C,y&&(y._next=C),b===this._mapHead&&(this._mapHead=C),this._appendAfter=b,b}return this._appendAfter?(this._appendAfter._next=C,C._prev=this._appendAfter):this._mapHead=C,this._appendAfter=C,null}_getOrCreateRecordForKey(b,C){if(this._records.has(b)){const x=this._records.get(b);this._maybeAddToChanges(x,C);const T=x._prev,S=x._next;return T&&(T._next=S),S&&(S._prev=T),x._next=null,x._prev=null,x}const y=new S0(b);return this._records.set(b,y),y.currentValue=C,this._addToAdditions(y),y}_reset(){if(this.isDirty){let b;for(this._previousMapHead=this._mapHead,b=this._previousMapHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._changesHead;null!==b;b=b._nextChanged)b.previousValue=b.currentValue;for(b=this._additionsHead;null!=b;b=b._nextAdded)b.previousValue=b.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(b,C){Object.is(C,b.currentValue)||(b.previousValue=b.currentValue,b.currentValue=C,this._addToChanges(b))}_addToAdditions(b){null===this._additionsHead?this._additionsHead=this._additionsTail=b:(this._additionsTail._nextAdded=b,this._additionsTail=b)}_addToChanges(b){null===this._changesHead?this._changesHead=this._changesTail=b:(this._changesTail._nextChanged=b,this._changesTail=b)}_forEach(b,C){b instanceof Map?b.forEach(C):Object.keys(b).forEach(y=>C(b[y],y))}}class S0{constructor(b){this.key=b,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function E0(){return new ic([new eC])}let ic=(()=>{class _{constructor(C){this.factories=C}static create(C,y){if(null!=y){const x=y.factories.slice();C=C.concat(x)}return new _(C)}static extend(C){return{provide:_,useFactory:y=>_.create(C,y||E0()),deps:[[_,new na,new el]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(null!=y)return y;throw new ae(901,!1)}}return _.\u0275prov=Et({token:_,providedIn:"root",factory:E0}),_})();function Jp(){return new Nd([new rC])}let Nd=(()=>{class _{constructor(C){this.factories=C}static create(C,y){if(y){const x=y.factories.slice();C=C.concat(x)}return new _(C)}static extend(C){return{provide:_,useFactory:y=>_.create(C,y||Jp()),deps:[[_,new na,new el]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(y)return y;throw new ae(901,!1)}}return _.\u0275prov=Et({token:_,providedIn:"root",factory:Jp}),_})();const oC=Fp(null,"core",[]);let H0=(()=>{class _{constructor(C){}}return _.\u0275fac=function(C){return new(C||_)(ti(wa))},_.\u0275mod=Kr({type:_}),_.\u0275inj=ui({}),_})();function R0(_){return"boolean"==typeof _?_:null!=_&&"false"!==_}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class N extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return N.\u0275fac=function(){let z;return function(M){return(z||(z=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(N)))(M||N)}}(),N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class N{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,M){this.data.set(E,M)}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class ReceivedTokens{}class OAuthEvent{constructor(z){this.type=z}}class OAuthSuccessEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(z,E,M=null){super(z),this.reason=E,this.params=M}}function b64DecodeUnicode(N){const z=N.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(z).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(N){return btoa(N).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(z){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},z&&Object.assign(this,z)}}class WebHttpUrlEncodingCodec{encodeKey(z){return encodeURIComponent(z)}encodeValue(z){return encodeURIComponent(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(z){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let M=E.inferHashAlgorithm(z.idTokenHeader),p=yield E.calcHash(z.accessToken,M),F=base64UrlEncode(p.substr(0,p.length/2)),B=z.idTokenClaims.at_hash.replace(/=/g,"");return F!==B&&(console.error("exptected at_hash: "+F),console.error("actual at_hash: "+B)),F===B})()}inferHashAlgorithm(z){let E=z.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class N{getHashFragmentParams(E){let M=E||window.location.hash;if(M=decodeURIComponent(M),0!==M.indexOf("#"))return{};const p=M.indexOf("?");return M=M.substr(p>-1?p+1:1),this.parseQueryString(M)}parseQueryString(E){const M={};let p,L,F,B,q,Q,ee;if(null===E)return M;p=E.split("&");for(let W=0;W>6,L[B++]=128|63&q):q<55296||q>=57344?(L[B++]=224|q>>12,L[B++]=128|q>>6&63,L[B++]=128|63&q):(q=65536+((1023&q)<<10|1023&N.charCodeAt(++M)),L[B++]=240|q>>18,L[B++]=128|q>>12&63,L[B++]=128|q>>6&63,L[B++]=128|63&q);N=L}else{if("object"!==p)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR)}N.length>64&&(N=new Sha256(z,!0).update(N).array());var Q=[],ee=[];for(M=0;M<64;++M){var W=N[M]||0;Q[M]=92^W,ee[M]=54^W}Sha256.call(this,z,E),this.update(ee),this.oKeyPad=Q,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(N){if(!this.finalized){var z,E=typeof N;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR);z=!0}for(var M,L,p=0,F=N.length,B=this.blocks;p>2]|=N[p]<>2]|=M<>2]|=(192|M>>6)<>2]|=(128|63&M)<=57344?(B[L>>2]|=(224|M>>12)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<>2]|=(240|M>>18)<>2]|=(128|M>>12&63)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<=64?(this.block=B[16],this.start=L-64,this.hash(),this.hashed=!0):this.start=L}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var N=this.blocks,z=this.lastByteIndex;N[16]=this.block,N[z>>2]|=EXTRA[3&z],this.block=N[16],z>=56&&(this.hashed||this.hash(),N[0]=this.block,N[16]=N[1]=N[2]=N[3]=N[4]=N[5]=N[6]=N[7]=N[8]=N[9]=N[10]=N[11]=N[12]=N[13]=N[14]=N[15]=0),N[14]=this.hBytes<<3|this.bytes>>>29,N[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var Q,G,ie,ae,he,fe,N=this.h0,z=this.h1,E=this.h2,M=this.h3,p=this.h4,L=this.h5,F=this.h6,B=this.h7,q=this.blocks;for(Q=16;Q<64;++Q)q[Q]=q[Q-16]+(((G=q[Q-15])>>>7|G<<25)^(G>>>18|G<<14)^G>>>3)+q[Q-7]+(((G=q[Q-2])>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)<<0;for(fe=z&E,Q=0;Q<64;Q+=4)this.first?(this.is224?(ie=300032,B=(G=q[0]-1413257819)-150054599<<0,M=G+24177077<<0):(ie=704751109,B=(G=q[0]-210244248)-1521486534<<0,M=G+143694565<<0),this.first=!1):(B=M+(G=B+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&L^~p&F)+K[Q]+q[Q])<<0,M=G+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((ie=N&z)^N&E^fe))<<0),F=E+(G=F+((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&p^~B&L)+K[Q+1]+q[Q+1])<<0,E=G+(((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+((ae=M&N)^M&z^ie))<<0,L=z+(G=L+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&B^~F&p)+K[Q+2]+q[Q+2])<<0,z=G+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((he=E&M)^E&N^ae))<<0,p=N+(G=p+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&F^~L&B)+K[Q+3]+q[Q+3])<<0,N=G+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((fe=z&E)^z&M^he))<<0;this.h0=this.h0+N<<0,this.h1=this.h1+z<<0,this.h2=this.h2+E<<0,this.h3=this.h3+M<<0,this.h4=this.h4+p<<0,this.h5=this.h5+L<<0,this.h6=this.h6+F<<0,this.h7=this.h7+B<<0},Sha256.prototype.hex=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,p=this.h4,L=this.h5,F=this.h6,B=this.h7,q=HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[15&p]+HEX_CHARS[L>>28&15]+HEX_CHARS[L>>24&15]+HEX_CHARS[L>>20&15]+HEX_CHARS[L>>16&15]+HEX_CHARS[L>>12&15]+HEX_CHARS[L>>8&15]+HEX_CHARS[L>>4&15]+HEX_CHARS[15&L]+HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F];return this.is224||(q+=HEX_CHARS[B>>28&15]+HEX_CHARS[B>>24&15]+HEX_CHARS[B>>20&15]+HEX_CHARS[B>>16&15]+HEX_CHARS[B>>12&15]+HEX_CHARS[B>>8&15]+HEX_CHARS[B>>4&15]+HEX_CHARS[15&B]),q},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,p=this.h4,L=this.h5,F=this.h6,B=this.h7,q=[N>>24&255,N>>16&255,N>>8&255,255&N,z>>24&255,z>>16&255,z>>8&255,255&z,E>>24&255,E>>16&255,E>>8&255,255&E,M>>24&255,M>>16&255,M>>8&255,255&M,p>>24&255,p>>16&255,p>>8&255,255&p,L>>24&255,L>>16&255,L>>8&255,255&L,F>>24&255,F>>16&255,F>>8&255,255&F];return this.is224||q.push(B>>24&255,B>>16&255,B>>8&255,255&B),q},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var N=new ArrayBuffer(this.is224?28:32),z=new DataView(N);return z.setUint32(0,this.h0),z.setUint32(4,this.h1),z.setUint32(8,this.h2),z.setUint32(12,this.h3),z.setUint32(16,this.h4),z.setUint32(20,this.h5),z.setUint32(24,this.h6),this.is224||z.setUint32(28,this.h7),N},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var N=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(N),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(N){if("string"!=typeof N)throw new TypeError("expected string");var z,E=N,M=new Uint8Array(E.length);for(z=0;z{class N{calcHash(E,M){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})()}toHashString2(E){let M="";for(let p of E)M+=String.fromCharCode(p);return M}toHashString(E){const M=new Uint8Array(E);let p="";for(let L of M)p+=String.fromCharCode(L);return p}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})(),OAuthService=(()=>{class N extends AuthConfig{constructor(E,M,p,L,F,B,q,Q,ee,W){super(),this.ngZone=E,this.http=M,this.config=F,this.urlHelper=B,this.logger=q,this.crypto=Q,this.dateTimeService=W,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=ee,F||(F={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),L&&(this.tokenValidationHandler=L),F&&this.configure(F);try{p?this.setStorage(p):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(Y){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",Y)}if(this.checkLocalStorageAccessable()){const Y=window?.navigator?.userAgent;(Y?.includes("MSIE ")||Y?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const E="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(E,E),localStorage.removeItem(E),0))}catch{return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},M,p=!0){let L=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(F=>{"token_received"===F.type?L=!0:"logout"===F.type&&(L=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_expires"===F.type&&(null==M||"any"===M||F.info===M)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(F=>{L&&this.refreshInternal(E,p).catch(B=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,M){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,M):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(M=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(M=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const M=[],p=this.validateUrlForHttps(E),L=this.validateUrlAgainstIssuer(E);return p||M.push("https for all urls required. Also for urls received by discovery."),L||M.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),M}validateUrlForHttps(E){if(!E)return!0;const M=E.toLowerCase();return!(!1!==this.requireHttps&&(!M.match(/^http:\/\/localhost($|[:\/])/)&&!M.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||M.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,M){if(!E)throw new Error(`'${M}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${M}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),M=this.getAccessTokenStoredAt(),p=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(p)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),M=this.getIdTokenStoredAt(),p=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(p)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,M){const p=this.dateTimeService.now();return Math.max(0,(M-E)*this.timeoutFactor-(p-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((M,p)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(L=>{if(!this.validateDiscoveryDocument(L))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void p("discovery_document_validation_error");this.loginUrl=L.authorization_endpoint,this.logoutUrl=L.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=L.grant_types_supported,this.issuer=L.issuer,this.tokenEndpoint=L.token_endpoint,this.userinfoEndpoint=L.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=L.jwks_uri,this.sessionCheckIFrameUrl=L.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(L),this.revocationEndpoint=L.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(F=>{const q=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:L,jwks:F});this.eventsSubject.next(q),M(q)}).catch(F=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",F)),p(F)})},L=>{this.logger.error("error loading discovery document",L),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",L)),p(L)}):p("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,M)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(p=>{this.jwks=p,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(p)},p=>{this.logger.error("error loading jwks",p),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",p)),M(p)}):E(null)})}validateDiscoveryDocument(E){let M;return this.skipIssuerCheck||E.issuer===this.issuer?(M=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),M.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),M.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.token_endpoint),M.length>0&&this.logger.error("error validating token_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),M.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),M.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.jwks_uri),M.length>0?(this.logger.error("error validating jwks_uri in discovery document",M),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,M,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,M,p).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,M)=>{const p=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:p,observe:"response",responseType:"text"}).subscribe(L=>{if(this.debug("userinfo received",JSON.stringify(L)),L.headers.get("content-type").startsWith("application/json")){let F=JSON.parse(L.body);const B=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!B.sub||F.sub!==B.sub))return void M("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");F=Object.assign({},B,F),this._storage.setItem("id_token_claims_obj",JSON.stringify(F)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:F})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(L.body))},L=>{this.logger.error("error loading user info",L),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",L)),M(L)})})}fetchTokenUsingPasswordFlow(E,M,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:M},p)}fetchTokenUsingGrant(E,M,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let L=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);p=p.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(L=L.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(L=L.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))L=L.set(F,this.customQueryParams[F]);for(const F of Object.keys(M))L=L.set(F,M[F]);return p=p.set("Content-Type","application/x-www-form-urlencoded"),new Promise((F,B)=>{this.http.post(this.tokenEndpoint,L,{headers:p}).subscribe(q=>{this.debug("tokenResponse",q),this.storeAccessTokenResponse(q.access_token,q.refresh_token,q.expires_in||this.fallbackAccessTokenExpirationTimeInSec,q.scope,this.extractRecognizedCustomParameters(q)),this.oidc&&q.id_token&&this.processIdToken(q.id_token,q.access_token).then(Q=>{this.storeIdToken(Q),F(q)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),F(q)},q=>{this.logger.error("Error performing ${grantType} flow",q),this.eventsSubject.next(new OAuthErrorEvent("token_error",q)),B(q)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,M)=>{let p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),L=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);L=L.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(F,this.customQueryParams[F]);this.http.post(this.tokenEndpoint,p,{headers:L}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(F=>F.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(F.id_token,F.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(B=>this.storeIdToken(B)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(B=>F)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(F))).subscribe(F=>{this.debug("refresh tokenResponse",F),this.storeAccessTokenResponse(F.access_token,F.refresh_token,F.expires_in||this.fallbackAccessTokenExpirationTimeInSec,F.scope,this.extractRecognizedCustomParameters(F)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(F)},F=>{this.logger.error("Error refreshing token",F),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",F)),M(F)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const M=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:M,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(p=>this.debug("tryLogin during silent refresh failed",p))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},M=!0){const p=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const L=this.document.getElementById(this.silentRefreshIFrameName);L&&this.document.body.removeChild(L),this.silentRefreshSubject=p.sub;const F=this.document.createElement("iframe");F.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,M,E).then(W=>{F.setAttribute("src",W),this.silentRefreshShowIFrame||(F.style.display="none"),this.document.body.appendChild(F)});const q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>W instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>"token_received"===W.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),ee=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([q,Q,ee]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(W=>{if(W instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===W.type||(W=new OAuthErrorEvent("silent_refresh_error",W)),this.eventsSubject.next(W),W;return"token_received"===W.type&&(W=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(W)),W})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(M=>new Promise((p,L)=>{let q,B=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(B=E.windowRef,B.location.href=M):B=window.open(M,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const Q=re=>{this.tryLogin({customHashFragment:re,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{W(),p(!0)},oe=>{W(),L(oe)})};B?q=window.setInterval(()=>{(!B||B.closed)&&(W(),L(new OAuthErrorEvent("popup_closed",{})))},500):L(new OAuthErrorEvent("popup_blocked",{}));const W=()=>{window.clearInterval(q),window.removeEventListener("storage",G),window.removeEventListener("message",Y),null!==B&&B.close(),B=null},Y=re=>{const oe=this.processMessageEventMessage(re);oe&&null!==oe?(window.removeEventListener("storage",G),Q(oe)):console.log("false event firing")},G=re=>{"auth_hash"===re.key&&(window.removeEventListener("message",Y),Q(re.newValue))};window.addEventListener("message",Y),window.addEventListener("storage",G)}))}calculatePopupFeatures(E){const M=E.height||470,p=E.width||500,L=window.screenLeft+(window.outerWidth-p)/2;return`location=no,toolbar=no,width=${p},height=${M},top=${window.screenTop+(window.outerHeight-M)/2},left=${L}`}processMessageEventMessage(E){let M="#";if(this.silentRefreshMessagePrefix&&(M+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const p=E.data;return p.startsWith(M)?"#"+p.substr(M.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const M=E.origin.toLowerCase(),p=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),p.startsWith(M)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",M,"expected",p,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const M=this.document.createElement("iframe");M.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),M.setAttribute("src",this.sessionCheckIFrameUrl),M.style.display="none",this.document.body.appendChild(M),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const M=this.getSessionState();M||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+M,this.issuer)}createLoginUrl(E="",M="",p="",L=!1,F={}){var B=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const q=B;let Q;Q=p||B.redirectUri;const ee=yield B.createAndSaveNonce();if(E=E?ee+B.config.nonceStateSeparator+encodeURIComponent(E):ee,!B.requestAccessToken&&!B.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");B.responseType=B.config.responseType?B.config.responseType:B.oidc&&B.requestAccessToken?"id_token token":B.oidc&&!B.requestAccessToken?"id_token":"token";const W=q.loginUrl.indexOf("?")>-1?"&":"?";let Y=q.scope;B.oidc&&!Y.match(/(^|\s)openid($|\s)/)&&(Y="openid "+Y);let G=q.loginUrl+W+"response_type="+encodeURIComponent(q.responseType)+"&client_id="+encodeURIComponent(q.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(Q)+"&scope="+encodeURIComponent(Y);if(B.responseType.includes("code")&&!B.disablePKCE){const[re,oe]=yield B.createChallangeVerifierPairForPKCE();B.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",oe):B._storage.setItem("PKCE_verifier",oe),G+="&code_challenge="+re,G+="&code_challenge_method=S256"}M&&(G+="&login_hint="+encodeURIComponent(M)),q.resource&&(G+="&resource="+encodeURIComponent(q.resource)),q.oidc&&(G+="&nonce="+encodeURIComponent(ee)),L&&(G+="&prompt=none");for(const re of Object.keys(F))G+="&"+encodeURIComponent(re)+"="+encodeURIComponent(F[re]);if(B.customQueryParams)for(const re of Object.getOwnPropertyNames(B.customQueryParams))G+="&"+re+"="+encodeURIComponent(B.customQueryParams[re]);return G})()}initImplicitFlowInternal(E="",M=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let p={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(p=M),this.createLoginUrl(E,L,null,!1,p).then(this.config.openUri).catch(F=>{console.error("Error in initImplicitFlow",F),this.inImplicitFlow=!1})}initImplicitFlow(E="",M=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,M):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"discovery_document_loaded"===p.type)).subscribe(p=>this.initImplicitFlowInternal(E,M))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const M=this;if(E.onTokenReceived){const p={idClaims:M.getIdentityClaims(),idToken:M.getIdToken(),accessToken:M.getAccessToken(),state:M.state};E.onTokenReceived(p)}}storeAccessTokenResponse(E,M,p,L,F){if(this._storage.setItem("access_token",E),L&&!Array.isArray(L)?this._storage.setItem("granted_scopes",JSON.stringify(L.split(" "))):L&&Array.isArray(L)&&this._storage.setItem("granted_scopes",JSON.stringify(L)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),p){const B=1e3*p,Q=this.dateTimeService.new().getTime()+B;this._storage.setItem("expires_at",""+Q)}M&&this._storage.setItem("refresh_token",M),F&&F.forEach((B,q)=>{this._storage.setItem(q,B)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(M=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){var M=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const p=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,L=M.getCodePartsFromUrl(p),F=L.code,B=L.state,q=L.session_state;if(!E.preventClearHashAfterLogin){const W=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,W)}let[Q,ee]=M.parseState(B);if(M.state=ee,L.error){M.debug("error trying to login"),M.handleLoginError(E,L);const W=new OAuthErrorEvent("code_error",{},L);return M.eventsSubject.next(W),Promise.reject(W)}if(!E.disableNonceCheck){if(!Q)return M.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!M.validateNonce(Q)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return M.eventsSubject.next(Y),Promise.reject(Y)}return M.storeSessionState(q),F&&(yield M.getTokenFromCode(F,E),M.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,M){let p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",M.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let L;L=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),L?p=p.set("code_verifier",L):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(p,M)}fetchAndProcessToken(E,M){M=M||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let p=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const L=btoa(`${this.clientId}:${this.dummyClientSecret}`);p=p.set("Authorization","Basic "+L)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((L,F)=>{if(this.customQueryParams)for(let B of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(B,this.customQueryParams[B]);this.http.post(this.tokenEndpoint,E,{headers:p}).subscribe(B=>{this.debug("refresh tokenResponse",B),this.storeAccessTokenResponse(B.access_token,B.refresh_token,B.expires_in||this.fallbackAccessTokenExpirationTimeInSec,B.scope,this.extractRecognizedCustomParameters(B)),this.oidc&&B.id_token?this.processIdToken(B.id_token,B.access_token,M.disableNonceCheck).then(q=>{this.storeIdToken(q),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(B)}).catch(q=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",q)),console.error("Error validating tokens"),console.error(q),F(q)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(B))},B=>{console.error("Error getting token",B),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",B)),F(B)})})}tryLoginImplicitFlow(E=null){let M;M=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",M);const p=M.state;let[L,F]=this.parseState(p);if(this.state=F,M.error){this.debug("error trying to login"),this.handleLoginError(E,M);const W=new OAuthErrorEvent("token_error",{},M);return this.eventsSubject.next(W),Promise.reject(W)}const B=M.access_token,q=M.id_token,Q=M.session_state,ee=M.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!B||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!p||this.oidc&&!q)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!Q&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(L)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(Y),Promise.reject(Y)}return this.requestAccessToken&&this.storeAccessTokenResponse(B,null,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,ee),this.oidc?this.processIdToken(q,B,E.disableNonceCheck).then(W=>E.validationHandler?E.validationHandler({accessToken:B,idClaims:W.idTokenClaims,idToken:W.idToken,state:p}).then(Y=>W):W).then(W=>(this.storeIdToken(W),this.storeSessionState(Q),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(W=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",W)),this.logger.error("Error validating tokens"),this.logger.error(W),Promise.reject(W))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let M=E,p="";if(E){const L=E.indexOf(this.config.nonceStateSeparator);L>-1&&(M=E.substr(0,L),p=E.substr(L+this.config.nonceStateSeparator.length))}return[M,p]}validateNonce(E){let M;return M=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),M===E||(console.error("Validating access_token failed, wrong state/nonce.",M,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,M){E.onLoginError&&E.onLoginError(M),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,M,p=!1){const L=E.split("."),B=b64DecodeUnicode(this.padBase64(L[0])),q=JSON.parse(B),ee=b64DecodeUnicode(this.padBase64(L[1])),W=JSON.parse(ee);let Y;if(Y=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(W.aud)){if(W.aud.every(he=>he!==this.clientId)){const he="Wrong audience: "+W.aud.join(",");return this.logger.warn(he),Promise.reject(he)}}else if(W.aud!==this.clientId){const he="Wrong audience: "+W.aud;return this.logger.warn(he),Promise.reject(he)}if(!W.sub){const he="No sub claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==W.sub){const he=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${W.sub}`;return this.logger.warn(he),Promise.reject(he)}if(!W.iat){const he="No iat claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(!this.skipIssuerCheck&&W.iss!==this.issuer){const he="Wrong issuer: "+W.iss;return this.logger.warn(he),Promise.reject(he)}if(!p&&W.nonce!==Y){const he="Wrong nonce: "+W.nonce;return this.logger.warn(he),Promise.reject(he)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!W.at_hash){const he="An at_hash is needed!";return this.logger.warn(he),Promise.reject(he)}const G=this.dateTimeService.now(),re=1e3*W.iat,oe=1e3*W.exp,ie=this.getClockSkewInMsec();if(re-ie>=G||oe+ie<=G){const he="Token has expired";return console.error(he),console.error({now:G,issuedAtMSec:re,expiresAtMSec:oe}),Promise.reject(he)}const ae={accessToken:M,idToken:E,jwks:this.jwks,idTokenClaims:W,idTokenHeader:q,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ae).then(he=>({idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:B,idTokenExpiresAt:oe})):this.checkAtHash(ae).then(he=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!he){const fe="Wrong at_hash";return this.logger.warn(fe),Promise.reject(fe)}return this.checkSignature(ae).then(fe=>{const Le={idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:B,idTokenExpiresAt:oe};return this.disableAtHashCheck?Le:this.checkAtHash(ae).then(je=>{if(this.requestAccessToken&&!je){const Ae="Wrong at_hash";return this.logger.warn(Ae),Promise.reject(Ae)}return Le})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),M=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},M=""){let p=!1;"boolean"==typeof E&&(p=E,E={});const L=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(B=>this._storage.removeItem(B)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||p||!L&&!this.postLogoutRedirectUri)return;let F;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)F=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(L)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});L&&(B=B.set("id_token_hint",L));const q=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";q&&(B=B.set("post_logout_redirect_uri",q),M&&(B=B.set("state",M)));for(let Q in E)B=B.set(Q,E[Q]);F=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+B.toString()}this.config.openUri(F)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(M){return E.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",M):E._storage.setItem("nonce",M),M})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const M=this.document.getElementById(this.sessionCheckIFrameName);M&&M.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let p=45,L="";const F=typeof self>"u"?null:self.crypto||self.msCrypto;if(F){let B=new Uint8Array(p);F.getRandomValues(B),B.map||(B.map=Array.prototype.map),B=B.map(q=>M.charCodeAt(q%M.length)),L=String.fromCharCode.apply(null,B)}else for(;0"discovery_document_loaded"===p.type)).subscribe(p=>this.initCodeFlowInternal(E,M))}initCodeFlowInternal(E="",M={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let p={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(p=M),this.createLoginUrl(E,L,null,!1,p).then(this.config.openUri).catch(F=>{console.error("Error in initAuthorizationCodeFlow"),console.error(F)})}createChallangeVerifierPairForPKCE(){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!E.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const M=yield E.createNonce();return[base64UrlEncode(yield E.crypto.calcHash(M,"sha-256")),M]})()}extractRecognizedCustomParameters(E){let M=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(p=>{E[p]&&M.set(p,JSON.stringify(E[p]))}),M}revokeTokenAndLogout(E={},M=!1){let p=this.revocationEndpoint,L=this.getAccessToken(),F=this.getRefreshToken();if(!L)return;let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),q=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const Q=btoa(`${this.clientId}:${this.dummyClientSecret}`);q=q.set("Authorization","Basic "+Q)}if(this.useHttpBasicAuth||(B=B.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(B=B.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const Q of Object.getOwnPropertyNames(this.customQueryParams))B=B.set(Q,this.customQueryParams[Q]);return new Promise((Q,ee)=>{let W,Y;if(L){let G=B.set("token",L).set("token_type_hint","access_token");W=this.http.post(p,G,{headers:q})}else W=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(F){let G=B.set("token",F).set("token_type_hint","refresh_token");Y=this.http.post(p,G,{headers:q})}else Y=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);M&&(W=W.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G))),Y=Y.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([W,Y]).subscribe(G=>{this.logOut(E),Q(G),this.logger.info("Token successfully revoked")},G=>{this.logger.error("Error revoking token",G),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",G)),ee(G)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(z){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(z)}}let DefaultOAuthInterceptor=(()=>{class N{constructor(E,M,p){this.oAuthService=E,this.errorHandler=M,this.moduleConfig=p}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(M=>E.toLowerCase().startsWith(M.toLowerCase()))}intercept(E,M){const p=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(p)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>!!F)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_received"===F.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(F=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(F=>{if(F){const q=E.headers.set("Authorization","Bearer "+F);E=E.clone({headers:q})}return M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(B=>this.errorHandler.handleError(B)))})):M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>this.errorHandler.handleError(F))):M.handle(E)}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class NullValidationHandler{validateSignature(z){return Promise.resolve(null)}validateAtHash(z){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class N{static forRoot(E=null,M=NullValidationHandler){return{ngModule:N,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:M},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:N}),N.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),N})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(N,z,E)=>{"use strict";function M(L,F,B,q,Q,ee,W){try{var Y=L[ee](W),G=Y.value}catch(re){return void B(re)}Y.done?F(G):Promise.resolve(G).then(q,Q)}function p(L){return function(){var F=this,B=arguments;return new Promise(function(q,Q){var ee=L.apply(F,B);function W(G){M(ee,q,Q,W,Y,"next",G)}function Y(G){M(ee,q,Q,W,Y,"throw",G)}W(void 0)})}}E.d(z,{Z:()=>p})},4147:N=>{"use strict";N.exports={i8:"10.5.0"}}},N=>{N(N.s=2605)}]); \ No newline at end of file diff --git a/dist/apps/consolidator/main.d5ea60c5d477fb05.js b/dist/apps/consolidator/main.d5ea60c5d477fb05.js deleted file mode 100644 index b537b166a..000000000 --- a/dist/apps/consolidator/main.d5ea60c5d477fb05.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkconsolidator=self.webpackChunkconsolidator||[]).push([[179],{2605:(N,z,E)=>{"use strict";var M=E(6895),h=E(4650);class L extends M.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class F extends L{static makeCurrent(){(0,M.HT)(new F)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function q(){return B=B||document.querySelector("base"),B?B.getAttribute("href"):null}();return null==e?null:function ee(r){Q=Q||document.createElement("a"),Q.setAttribute("href",r);const a=Q.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){B=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,M.Mx)(document.cookie,a)}}let Q,B=null;const W=new h.OlP("TRANSITION_ID"),G=[{provide:h.ip1,useFactory:function Y(r,a,e){return()=>{e.get(h.CZH).donePromise.then(()=>{const t=(0,M.q)(),s=a.querySelectorAll(`style[ng-transition="${r}"]`);for(let u=0;u{class r{build(){return new XMLHttpRequest}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();const ie=new h.OlP("EventManagerPlugins");let ae=(()=>{class r{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,s){return this._findPluginFor(t).addEventListener(e,t,s)}addGlobalEventListener(e,t,s){return this._findPluginFor(t).addGlobalEventListener(e,t,s)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const s=this._plugins;for(let u=0;u{class r{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),t.add(s))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),be=(()=>{class r extends fe{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,s){e.forEach(u=>{const d=this._doc.createElement("style");d.textContent=u,s.push(t.appendChild(d))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Le),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,s)=>{this._addStylesToHost(e,s,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Le))}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();function Le(r){(0,M.q)().remove(r)}const je={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ae=/%COMP%/g;function le(r,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return r;!1===r(a)&&(a.preventDefault(),a.returnValue=!1)}}let pe=(()=>{class r{constructor(e,t,s){this.eventManager=e,this.sharedStylesHost=t,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new Be(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case h.ifc.Emulated:{let s=this.rendererByCompId.get(t.id);return s||(s=new kt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,s)),s.applyToHost(e),s}case 1:case h.ifc.ShadowDom:return new Fe(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const s=le(t.id,t.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(ae),h.LFG(be),h.LFG(h.AFp))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();class Be{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(je[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){(xt(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(xt(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,s){if(s){e=s+":"+e;const u=je[s];u?a.setAttributeNS(u,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const s=je[t];s?a.removeAttributeNS(s,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,s){s&(h.JOm.DashCase|h.JOm.Important)?a.style.setProperty(e,t,s&h.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&h.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,ce(t)):this.eventManager.addEventListener(a,e,ce(t))}}function xt(r){return"TEMPLATE"===r.tagName&&void 0!==r.content}class kt extends Be{constructor(a,e,t,s){super(a),this.component=t;const u=le(s+"-"+t.id,t.styles,[]);e.addStyles(u),this.contentAttr=function Re(r){return"_ngcontent-%COMP%".replace(Ae,r)}(s+"-"+t.id),this.hostAttr=function De(r){return"_nghost-%COMP%".replace(Ae,r)}(s+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class Fe extends Be{constructor(a,e,t,s){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=le(s.id,s.styles,[]);for(let d=0;d{class r extends he{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,s){return e.addEventListener(t,s,!1),()=>this.removeEventListener(e,t,s)}removeEventListener(e,t,s){return e.removeEventListener(t,s)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();const Xn=["alt","control","meta","shift"],Et={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Rn={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},ui={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey};let Yr=(()=>{class r extends he{constructor(e){super(e)}supports(e){return null!=r.parseEventName(e)}addEventListener(e,t,s){const u=r.parseEventName(t),d=r.eventCallback(u.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,M.q)().onAndCancel(e,u.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),s=t.shift();if(0===t.length||"keydown"!==s&&"keyup"!==s)return null;const u=r._normalizeKey(t.pop());let d="";if(Xn.forEach(n=>{const i=t.indexOf(n);i>-1&&(t.splice(i,1),d+=n+".")}),d+=u,0!=t.length||0===u.length)return null;const l={};return l.domEventName=s,l.fullKey=d,l}static getEventFullKey(e){let t="",s=function dc(r){let a=r.key;if(null==a){if(a=r.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===r.location&&Rn.hasOwnProperty(a)&&(a=Rn[a]))}return Et[a]||a}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),Xn.forEach(u=>{u!=s&&(0,ui[u])(e)&&(t+=u+".")}),t+=s,t}static eventCallback(e,t,s){return u=>{r.getEventFullKey(u)===e&&s.runGuarded(()=>t(u))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();const Ze=(0,h.eFA)(h._c5,"browser",[{provide:h.Lbi,useValue:M.bD},{provide:h.g9A,useValue:function er(){F.makeCurrent()},multi:!0},{provide:M.K0,useFactory:function xa(){return(0,h.RDi)(document),document},deps:[]}]),bi=new h.OlP(""),Ta=[{provide:h.rWj,useClass:class re{addToWindow(a){h.dqk.getAngularTestability=(t,s=!0)=>{const u=a.findTestabilityInTree(t,s);if(null==u)throw new Error("Could not find testability for element.");return u},h.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),h.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),h.dqk.frameworkStabilizers||(h.dqk.frameworkStabilizers=[]),h.dqk.frameworkStabilizers.push(t=>{const s=h.dqk.getAllAngularTestabilities();let u=s.length,d=!1;const l=function(n){d=d||n,u--,0==u&&t(d)};s.forEach(function(n){n.whenStable(l)})})}findTestabilityInTree(a,e,t){return null==e?null:a.getTestability(e)??(t?(0,M.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null)}},deps:[]},{provide:h.lri,useClass:h.dDg,deps:[h.R0b,h.eoX,h.rWj]},{provide:h.dDg,useClass:h.dDg,deps:[h.R0b,h.eoX,h.rWj]}],ki=[{provide:h.zSh,useValue:"root"},{provide:h.qLn,useFactory:function tr(){return new h.qLn},deps:[]},{provide:ie,useClass:Ii,multi:!0,deps:[M.K0,h.R0b,h.Lbi]},{provide:ie,useClass:Yr,multi:!0,deps:[M.K0]},{provide:pe,useClass:pe,deps:[ae,be,h.AFp]},{provide:h.FYo,useExisting:pe},{provide:fe,useExisting:be},{provide:be,useClass:be,deps:[M.K0]},{provide:ae,useClass:ae,deps:[ie,h.R0b]},{provide:M.JF,useClass:oe,deps:[]},[]];let Sa=(()=>{class r{constructor(e){}static withServerTransition(e){return{ngModule:r,providers:[{provide:h.AFp,useValue:e.appId},{provide:W,useExisting:h.AFp},G]}}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(bi,12))},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[...ki,...Ta],imports:[M.ez,h.hGG]}),r})(),X=(()=>{class r{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:function(e){let t=null;return t=e?new e:function ye(){return new X((0,h.LFG)(M.K0))}(),t},providedIn:"root"}),r})();typeof window<"u"&&window;let hi=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:function(e){let t=null;return t=e?new(e||r):h.LFG(st),t},providedIn:"root"}),r})(),st=(()=>{class r extends hi{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case h.q3G.NONE:return t;case h.q3G.HTML:return(0,h.qzn)(t,"HTML")?(0,h.z3N)(t):(0,h.EiD)(this._doc,String(t)).toString();case h.q3G.STYLE:return(0,h.qzn)(t,"Style")?(0,h.z3N)(t):t;case h.q3G.SCRIPT:if((0,h.qzn)(t,"Script"))return(0,h.z3N)(t);throw new Error("unsafe value used in a script context");case h.q3G.URL:return(0,h.qzn)(t,"URL")?(0,h.z3N)(t):(0,h.mCW)(String(t));case h.q3G.RESOURCE_URL:if((0,h.qzn)(t,"ResourceURL"))return(0,h.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,h.JVY)(e)}bypassSecurityTrustStyle(e){return(0,h.L6k)(e)}bypassSecurityTrustScript(e){return(0,h.eBb)(e)}bypassSecurityTrustUrl(e){return(0,h.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,h.pB0)(e)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:function(e){let t=null;return t=e?new e:function Oe(r){return new st(r.get(M.K0))}(h.LFG(h.zs3)),t},providedIn:"root"}),r})();var Me=E(9646),ai=E(9751),It=E(576);function Kt(r){return!!r&&(r instanceof ai.y||(0,It.m)(r.lift)&&(0,It.m)(r.subscribe))}var jt=E(4742),In=E(8421),kn=E(3269),Xe=E(5403),Ma=E(3268),Zr=E(1810);function Tr(...r){const a=(0,kn.jO)(r),{args:e,keys:t}=(0,jt.D)(r),s=new ai.y(u=>{const{length:d}=e;if(!d)return void u.complete();const l=new Array(d);let n=d,i=d;for(let o=0;o{c||(c=!0,i--),l[o]=p},()=>n--,void 0,()=>{(!n||!c)&&(i||u.next(t?(0,Zr.n)(t,l):l),u.complete())}))}});return a?s.pipe((0,Ma.Z)(a)):s}var Yi=E(7272);function Gt(r){return new ai.y(a=>{(0,In.Xf)(r()).subscribe(a)})}var Dt=E(5698),He=E(7579),Ni=E(6063);class Sr extends He.x{constructor(a=1/0,e=1/0,t=Ni.l){super(),this._bufferSize=a,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,e)}next(a){const{isStopped:e,_buffer:t,_infiniteTimeWindow:s,_timestampProvider:u,_windowTime:d}=this;e||(t.push(a),!s&&t.push(u.now()+d)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(a),{_infiniteTimeWindow:t,_buffer:s}=this,u=s.slice();for(let d=0;dnew Sr(t,a,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}var ct=E(4004),Vn=E(4351),oi=E(3900);class ir{}let Er=(()=>{class r extends ir{getTranslation(e){return(0,Me.of)({})}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();class Xr{}let Bn=(()=>{class r{handle(e){return e.key}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();function Zt(r,a){if(r===a)return!0;if(null===r||null===a)return!1;if(r!=r&&a!=a)return!0;let s,u,d,e=typeof r;if(e==typeof a&&"object"==e){if(!Array.isArray(r)){if(Array.isArray(a))return!1;for(u in d=Object.create(null),r){if(!Zt(r[u],a[u]))return!1;d[u]=!0}for(u in a)if(!(u in d)&&typeof a[u]<"u")return!1;return!0}if(!Array.isArray(a))return!1;if((s=r.length)==a.length){for(u=0;u{Ci(a[t])?t in r?e[t]=Ji(r[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class Mr{}let Dr=(()=>{class r extends Mr{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let s;return s="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,s}getValue(e,t){let s="string"==typeof t?t.split("."):[t];t="";do{t+=s.shift(),!nr(e)||!nr(e[t])||"object"!=typeof e[t]&&s.length?s.length?t+=".":e=void 0:(e=e[t],t="")}while(s.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(s,u)=>{let d=this.getValue(t,u);return nr(d)?d:s}):e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();class An{}let qi=(()=>{class r extends An{compile(e,t){return e}compileTranslations(e,t){return e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();class hc{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new h.vpe,this.onLangChange=new h.vpe,this.onDefaultLangChange=new h.vpe}}const Xd=new h.OlP("USE_STORE"),Ao=new h.OlP("USE_DEFAULT_LANG"),Hs=new h.OlP("DEFAULT_LANGUAGE"),Rs=new h.OlP("USE_EXTEND");let hn=(()=>{class r{constructor(e,t,s,u,d,l=!0,n=!1,i=!1,o){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=u,this.missingTranslationHandler=d,this.useDefaultLang=l,this.isolate=n,this.extend=i,this.pending=!1,this._onTranslationChange=new h.vpe,this._onLangChange=new h.vpe,this._onDefaultLangChange=new h.vpe,this._langs=[],this._translations={},this._translationRequests={},o&&this.setDefaultLang(o)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Dt.q)(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Me.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Dt.q)(1)).subscribe(s=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Me.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Ht(1),(0,Dt.q)(1));return this.loadingTranslations=t.pipe((0,ct.U)(s=>this.compiler.compileTranslations(s,e)),Ht(1),(0,Dt.q)(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?{...s,...this.translations[e]}:s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),t}setTranslation(e,t,s=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(s||this.extend)&&this.translations[e]?Ji(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,s){let u;if(t instanceof Array){let d={},l=!1;for(let n of t)d[n]=this.getParsedResult(e,n,s),Kt(d[n])&&(l=!0);return l?Tr(t.map(i=>Kt(d[i])?d[i]:(0,Me.of)(d[i]))).pipe((0,ct.U)(i=>{let o={};return i.forEach((c,p)=>{o[t[p]]=c}),o})):d}if(e&&(u=this.parser.interpolate(this.parser.getValue(e,t),s)),typeof u>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(u=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),s)),typeof u>"u"){let d={key:t,translateService:this};typeof s<"u"&&(d.interpolateParams=s),u=this.missingTranslationHandler.handle(d)}return typeof u<"u"?u:t}get(e,t){if(!nr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Vn.b)(s=>Kt(s=this.getParsedResult(s,e,t))?s:(0,Me.of)(s)));{let s=this.getParsedResult(this.translations[this.currentLang],e,t);return Kt(s)?s:(0,Me.of)(s)}}getStreamOnTranslationChange(e,t){if(!nr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Yi.z)(Gt(()=>this.get(e,t)),this.onTranslationChange.pipe((0,oi.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return"function"==typeof u.subscribe?u:(0,Me.of)(u)})))}stream(e,t){if(!nr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Yi.z)(Gt(()=>this.get(e,t)),this.onLangChange.pipe((0,oi.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return Kt(u)?u:(0,Me.of)(u)})))}instant(e,t){if(!nr(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,t);if(Kt(s)){if(e instanceof Array){let u={};return e.forEach((d,l)=>{u[e[l]]=e[l]}),u}return e}return s}set(e,t,s=this.currentLang){this.translations[s][e]=this.compiler.compile(t,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(hc),h.LFG(ir),h.LFG(An),h.LFG(Mr),h.LFG(Xr),h.LFG(Ao),h.LFG(Xd),h.LFG(Rs),h.LFG(Hs))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),yt=(()=>{class r{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,s){let u=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(s){let d=this.translate.getParsedResult(s,e,t);Kt(d.subscribe)?d.subscribe(u):u(d)}this.translate.get(e,t).subscribe(u)}transform(e,...t){if(!e||!e.length)return e;if(Zt(e,this.lastKey)&&Zt(t,this.lastParams))return this.value;let s;if(nr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let u=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(u)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(s=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(u=>{this.lastKey&&u.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(u=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(hn,16),h.Y36(h.sBO,16))},r.\u0275pipe=h.Yjl({name:"translate",type:r,pure:!1}),r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),Da=(()=>{class r{static forRoot(e={}){return{ngModule:r,providers:[e.loader||{provide:ir,useClass:Er},e.compiler||{provide:An,useClass:qi},e.parser||{provide:Mr,useClass:Dr},e.missingTranslationHandler||{provide:Xr,useClass:Bn},hc,{provide:Xd,useValue:e.isolate},{provide:Ao,useValue:e.useDefaultLang},{provide:Rs,useValue:e.extend},{provide:Hs,useValue:e.defaultLanguage},hn]}}static forChild(e={}){return{ngModule:r,providers:[e.loader||{provide:ir,useClass:Er},e.compiler||{provide:An,useClass:qi},e.parser||{provide:Mr,useClass:Dr},e.missingTranslationHandler||{provide:Xr,useClass:Bn},{provide:Xd,useValue:e.isolate},{provide:Ao,useValue:e.useDefaultLang},{provide:Rs,useValue:e.extend},{provide:Hs,useValue:e.defaultLanguage},hn]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})(),bf=(()=>{class r extends hn{instant(e,t){return String(super.instant(e,t))}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var v=E(529);class Xt{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const Wt=new h.OlP("basePath");class lt{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let eu=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}convertAttributeToNonunique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}convertAttributeToUnique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}createAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}deleteAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteAttributeDefinitions(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"attributes[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAllAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAttribute(e,t,s,u,d,l,n,i,o,c,p,m=!1,g="body",f=!1,w){let R=new v.LE({encoder:this.encoder});null!=e&&(R=this.addToHttpParams(R,e,"attributeName")),null!=t&&(R=this.addToHttpParams(R,t,"attributeId")),null!=s&&(R=this.addToHttpParams(R,s,"facility")),null!=u&&(R=this.addToHttpParams(R,u,"user")),null!=d&&(R=this.addToHttpParams(R,d,"vo")),null!=l&&(R=this.addToHttpParams(R,l,"resource")),null!=n&&(R=this.addToHttpParams(R,n,"member")),null!=i&&(R=this.addToHttpParams(R,i,"group")),null!=o&&(R=this.addToHttpParams(R,o,"host")),null!=c&&(R=this.addToHttpParams(R,c,"userExtSource")),null!=p&&(R=this.addToHttpParams(R,p,"key"));let Te,J=this.defaultHeaders;Te=this.configuration.lookupCredential("BasicAuth"),Te&&(J=J.set("Authorization","Basic "+Te)),Te=this.configuration.lookupCredential("BearerAuth"),Te&&(J=J.set("Authorization","Bearer "+Te));let at=w&&w.httpHeaderAccept;void 0===at&&(at=this.configuration.selectHeaderAccept(["application/json"])),void 0!==at&&(J=J.set("Accept",at));let Ti=w&&w.context;void 0===Ti&&(Ti=new v.qT);let ni="json";at&&(ni=at.startsWith("text")?"text":this.configuration.isJsonMime(at)?"json":"blob");let _i=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(m){let yn=new URL(_i),vr=yn.pathname.split("/");vr[1]="non",yn.pathname=vr.join("/"),_i=yn.toString()}return this.httpClient.get(_i,{context:Ti,params:R,responseType:ni,withCredentials:this.configuration.withCredentials,headers:J,observe:g,reportProgress:f})}getAttributeDefinitionById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionsByNamespace(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeModulesDependenciesForAttributeGraphText(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getAttributeModulesDependenciesGraphText(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRules(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributesDefinitionWithRights(e,t,s,u,d,l,n,i,o=!1,c="body",p=!1,m){let g=new v.LE({encoder:this.encoder});null!=e&&(g=this.addToHttpParams(g,e,"member")),null!=t&&(g=this.addToHttpParams(g,t,"user")),null!=s&&(g=this.addToHttpParams(g,s,"vo")),null!=u&&(g=this.addToHttpParams(g,u,"group")),null!=d&&(g=this.addToHttpParams(g,d,"resource")),null!=l&&(g=this.addToHttpParams(g,l,"facility")),null!=n&&(g=this.addToHttpParams(g,n,"host")),null!=i&&(g=this.addToHttpParams(g,i,"userExtSource"));let w,f=this.defaultHeaders;w=this.configuration.lookupCredential("BasicAuth"),w&&(f=f.set("Authorization","Basic "+w)),w=this.configuration.lookupCredential("BearerAuth"),w&&(f=f.set("Authorization","Bearer "+w));let R=m&&m.httpHeaderAccept;void 0===R&&(R=this.configuration.selectHeaderAccept(["application/json"])),void 0!==R&&(f=f.set("Accept",R));let J=m&&m.context;void 0===J&&(J=new v.qT);let Te="json";R&&(Te=R.startsWith("text")?"text":this.configuration.isJsonMime(R)?"json":"blob");let at=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(o){let Ti=new URL(at),ni=Ti.pathname.split("/");ni[1]="non",Ti.pathname=ni.join("/"),at=Ti.toString()}return this.httpClient.get(at,{context:J,params:g,responseType:Te,withCredentials:this.configuration.withCredentials,headers:f,observe:c,reportProgress:p})}getEntitylessAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessAttributesByKey(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesWithKeys(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"keys[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessKeys(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityResourceUserMemberAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=s&&(o=this.addToHttpParams(o,s,"user")),null!=u&&(o=this.addToHttpParams(o,u,"member"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getFacilityUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getGroupResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getGroupResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getHostAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getIdpAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getLogins(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAndUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAndUserAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAndUserAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberGroupAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberGroupAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacility(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacilityService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesFacilityServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesGroupResourceService(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"service")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesHostService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMemberGroup(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesMemberGroupResourceService(e,t,s,u,d,l=!1,n="body",i=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"group")),null!=u&&(c=this.addToHttpParams(c,u,"member")),null!=d&&(c=this.addToHttpParams(c,d,"workWithUserAttributes"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=o&&o.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=o&&o.context;void 0===f&&(f=new v.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let R=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.get(R,{context:f,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=s&&(o=this.addToHttpParams(o,s,"member")),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesMemberResource(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesMemberResourceService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=s&&(o=this.addToHttpParams(o,s,"member")),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesResource(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesResourceService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesResourceServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesUserFacility(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesVoService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getResourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupAndGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"resource")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithGroupAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getResourceGroupAndGroupAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithGroupAttributes"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getResourceGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupMemberAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=s&&(o=this.addToHttpParams(o,s,"member")),u&&u.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")});let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getUserAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserFacilityAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getUserFacilityAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getUserFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVoAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeAttributesForFacilityResourceGroupUserMember(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let p=new v.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"facility")),null!=t&&(p=this.addToHttpParams(p,t,"resource")),null!=s&&(p=this.addToHttpParams(p,s,"group")),null!=u&&(p=this.addToHttpParams(p,u,"user")),null!=d&&(p=this.addToHttpParams(p,d,"member")),l&&l.forEach(Te=>{p=this.addToHttpParams(p,Te,"attributes[]")});let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=c&&c.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";f&&(R=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(n){let Te=new URL(J),at=Te.pathname.split("/");at[1]="non",Te.pathname=at.join("/"),J=Te.toString()}return this.httpClient.post(J,null,{context:w,params:p,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}removeAttributesForFacilityResourceUserMember(e,t,s,u,d,l=!1,n="body",i=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"user")),null!=u&&(c=this.addToHttpParams(c,u,"member")),d&&d.forEach(J=>{c=this.addToHttpParams(c,J,"attributes[]")});let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=o&&o.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=o&&o.context;void 0===f&&(f=new v.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let R=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.post(R,null,{context:f,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeGroupResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attributes[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithGroupAttributes"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeHostAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeHostAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributesWorkWithUserAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attributes[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeMemberResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeResourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUesAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserExtSourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserFacilityAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeVoAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeVoAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}setAttributeActionCriticality(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==s)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"attributeDefinition")),null!=t&&(i=this.addToHttpParams(i,t,"action")),null!=s&&(i=this.addToHttpParams(i,s,"critical"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}setAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setEntitylessAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceGroupUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAndUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupWithGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(v.eN),h.LFG(Wt,8),h.LFG(lt,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ps=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAllPolicies(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAllRolesManagementRules(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAuthzAdminGroups(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=s&&(i=this.addToHttpParams(i,s,"complementaryObjectName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getAuthzRichAdmins(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==u)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let p=new v.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"role")),null!=t&&(p=this.addToHttpParams(p,t,"complementaryObjectId")),null!=s&&(p=this.addToHttpParams(p,s,"complementaryObjectName")),u&&u.forEach(Te=>{p=this.addToHttpParams(p,Te,"specificAttributes")}),null!=d&&(p=this.addToHttpParams(p,d,"allUserAttributes")),null!=l&&(p=this.addToHttpParams(p,l,"onlyDirectAdmins"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=c&&c.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";f&&(R=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let J=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(n){let Te=new URL(J),at=Te.pathname.split("/");at[1]="non",Te.pathname=at.join("/"),J=Te.toString()}return this.httpClient.get(J,{context:w,params:p,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}getFacilitiesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getLoggedUser(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getMembersWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getPerunPrincipal(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPrincipalRoleNames(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getResourcesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getSecurityTeamsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVosWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}isFacilityAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isGroupAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isPerunAdmin(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}isVoAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}keepAlive(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}loadAuthorizationComponents(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}refreshMfa(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}setRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(v.eN),h.LFG(Wt,8),h.LFG(lt,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ks=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}sentMessageToRTWithMemberQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"memberId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=s&&(o=this.addToHttpParams(o,s,"subject")),null!=u&&(o=this.addToHttpParams(o,u,"text"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}sentMessageToRTWithQueue(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}sentMessageToRTWithVo(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}sentMessageToRTWithVoQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"voId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=s&&(o=this.addToHttpParams(o,s,"subject")),null!=u&&(o=this.addToHttpParams(o,u,"text"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(v.eN),h.LFG(Wt,8),h.LFG(lt,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),mc=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}addApplicationMailForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}addApplicationMailForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}addGroupsToAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}approveApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}checkForSimilarRichIdentities(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.post(c,null,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}checkForSimilarUsersWithAuthInfo(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.post(c,null,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}consolidate(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/consolidate`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}consolidateIdentityUsingToken(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}copyFormFromGroupToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromGroupToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromVoToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromVoToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromGroupToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromGroupToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromVoToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromVoToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}createApplicationFormInGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}createApplicationFormInVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteApplicationMailForGroup(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteApplicationMailForVo(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteGroupsFromAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationDataById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationMailsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationMailsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationsForGroup(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(R=>{o=this.addToHttpParams(o,R,"state[]")}),null!=s&&(o=this.addToHttpParams(o,s,"dateFrom")),null!=u&&(o=this.addToHttpParams(o,u,"dateTo"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getApplicationsForMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getApplicationsForVo(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(R=>{o=this.addToHttpParams(o,R,"state[]")}),null!=s&&(o=this.addToHttpParams(o,s,"dateFrom")),null!=u&&(o=this.addToHttpParams(o,u,"dateTo"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getApplicationsPage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}getConsolidatorToken(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getFormItemsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFormItemsForGroupWithType(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFormItemsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFormItemsForVoWithType(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupApplicationForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsToAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVoApplicationForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}rejectApplication(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"id")),null!=t&&(n=this.addToHttpParams(n,t,"reason"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}sendInvitation(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let o=new v.LE({encoder:this.encoder});null!=s&&(o=this.addToHttpParams(o,s,"voId")),null!=u&&(o=this.addToHttpParams(o,u,"name")),null!=e&&(o=this.addToHttpParams(o,e,"email")),null!=t&&(o=this.addToHttpParams(o,t,"language"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}sendInvitationForGroup(e,t,s,u,d,l=!1,n="body",i=!1,o){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let c=new v.LE({encoder:this.encoder});null!=s&&(c=this.addToHttpParams(c,s,"voId")),null!=u&&(c=this.addToHttpParams(c,u,"groupId")),null!=d&&(c=this.addToHttpParams(c,d,"name")),null!=e&&(c=this.addToHttpParams(c,e,"email")),null!=t&&(c=this.addToHttpParams(c,t,"language"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=o&&o.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=o&&o.context;void 0===f&&(f=new v.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let R=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.post(R,null,{context:f,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:n,reportProgress:i})}sendInvitationGroupToExistingUser(e,t,s,u=!1,d="body",l=!1,n){let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"userId")),null!=t&&(i=this.addToHttpParams(i,t,"voId")),null!=s&&(i=this.addToHttpParams(i,s,"groupId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}sendInvitationToExistingUser(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userId")),null!=t&&(n=this.addToHttpParams(n,t,"voId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}sendInvitationsFromCsv(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}sendMessage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/sendMessage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setSendingEnabled(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}submitApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/submitApplication`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateApplicationMail(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateForm`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemData(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItemData`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsData(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}verifyApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(v.eN),h.LFG(Wt,8),h.LFG(lt,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Vs=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}addSpecificUserOwner(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}addUserExtSource(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}anonymizeUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}changeNonAuthzPasswordByToken(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}changePasswordForLogin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}changePasswordForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}checkPasswordResetRequestByTokenIsValid(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}checkPasswordStrength(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}createAlternativePassword(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}createServiceUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}deleteAlternativePassword(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==s)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"loginNamespace")),null!=s&&(i=this.addToHttpParams(i,s,"passwordId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}deletePasswordForLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deletePasswordForUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}findRichUsers(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}findRichUsersWithAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"searchString")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrsNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}findUsers(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}generateAccountForName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"namespace")),null!=t&&(n=this.addToHttpParams(n,t,"name"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getAllRichUsersWithAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"includedSpecificUsers"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAssignedRichResourcesForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsForFacilityWhereUserIsActive(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsForResourceWhereUserIsActive(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsInVoWhereUserIsAdmin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsWhereUserIsAdmin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getPendingPreferredEmailChanges(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUserExtSources(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUserWithAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersWithAttributesByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersWithoutVoWithAttributes(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"attrsNames[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getSpecificUsersByUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getSponsorsForMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getSponsorsForMemberByVoAndLogin(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==s)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName")),null!=s&&(o=this.addToHttpParams(o,s,"extLogin")),u&&u.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")});let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceByExtLoginAndExtSourceName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSources(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourcesByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsers(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/getUsers`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getUsersByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsersBySpecificUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"specificUser"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsersPage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}getVosWhereUserIsAdmin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVosWhereUserIsMember(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isLoginAvailable(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}loginExist(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeSpecificUserOwner(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserExtSource(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"userExtSource")),null!=s&&(i=this.addToHttpParams(i,s,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeUserExtSources(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==t)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"userExtSources")}),null!=s&&(i=this.addToHttpParams(i,s,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}requestPreferredEmailChange(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let p=new v.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"user")),null!=t&&(p=this.addToHttpParams(p,t,"email")),null!=s&&(p=this.addToHttpParams(p,s,"lang")),null!=u&&(p=this.addToHttpParams(p,u,"linkPath")),null!=d&&(p=this.addToHttpParams(p,d,"customUrl")),null!=l&&(p=this.addToHttpParams(p,l,"idpFilter"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=c&&c.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";f&&(R=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(n){let Te=new URL(J),at=Te.pathname.split("/");at[1]="non",Te.pathname=at.join("/"),J=Te.toString()}return this.httpClient.post(J,null,{context:w,params:p,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}reservePasswordForLogin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}reservePasswordForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}reserveRandomPassword(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}setLogin(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"login")),null!=s&&(i=this.addToHttpParams(i,s,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}updateUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/updateUser`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateUserExtSourceLastAccess(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}validatePasswordForLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}validatePasswordForUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}validatePreferredEmailChangeWithToken(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(v.eN),h.LFG(Wt,8),h.LFG(lt,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ei=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAppsConfig(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getGuiConfiguration(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getNewGuiAlert(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunRPCVersion(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatistics(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatus(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunSystemTimeInMillis(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(v.eN),h.LFG(Wt,8),h.LFG(lt,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),wi=(()=>{class r{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:r,providers:[{provide:lt,useFactory:e}]}}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(r,12),h.LFG(v.eN,8))},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})();var qe=(()=>{return(r=qe||(qe={})).PERUNADMIN="PERUNADMIN",r.PERUNOBSERVER="PERUNOBSERVER",r.VOADMIN="VOADMIN",r.GROUPADMIN="GROUPADMIN",r.GROUPOBSERVER="GROUPOBSERVER",r.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",r.SELF="SELF",r.FACILITYADMIN="FACILITYADMIN",r.FACILITIYOBSERVER="FACILITYOBSERVER",r.RESOURCEADMIN="RESOURCEADMIN",r.RESOURCESELFSERVICE="RESOURCESELFSERVICE",r.REGISTRAR="REGISTRAR",r.ENGINE="ENGINE",r.RPC="RPC",r.NOTIFICATIONS="NOTIFICATIONS",r.SERVICEUSER="SERVICEUSER",r.SPONSOR="SPONSOR",r.VOOBSERVER="VOOBSERVER",r.TOPGROUPCREATOR="TOPGROUPCREATOR",r.SECURITYADMIN="SECURITYADMIN",r.CABINETADMIN="CABINETADMIN",r.UNKNOWNROLENAME="UNKNOWNROLENAME",r.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",r.UNKNOWN="UNKNOWN",r.MEMBERSHIP="MEMBERSHIP",qe;var r})();let Mi=(()=>{class r{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,s)=>t.roleName>s.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(s=>{this.allRolesManagementRules=s,e()},s=>t(s))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(s=>{s.primaryObject===t&&e.push(s)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let s=e.beanName;s.startsWith("Rich")&&(s=s.substring(4)),this.assignAvailableRoles(t,s);const u=new Map;this.setRolesAuthorization(t,e,u);for(const d of u.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,s){for(const u of e){let d=[],l=[],n=[];for(const m of this.allRolesManagementRules)if(m.roleName===u.roleName){d=d.concat(m.privilegedRolesToRead),l=l.concat(m.privilegedRolesToManage);for(const g of Object.keys(m.entitiesToManage))n="User"===g?[g].concat(n):n.concat(g);break}const i=this.fetchAllRelatedObjects([t]),o=this.resolveAuthorization(d,i),c=this.resolveAuthorization(l,i);s.set(u.roleName,{readAuth:o,manageAuth:c,modes:n})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],s=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(u=>{!s.includes(u.roleName)&&this.canManage(u)&&this.ruleHasMode(u,e)&&t.push(u)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(s=>s.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const s of e){let u=!0;for(const d of Object.keys(s)){const l=s[d];if(null===l)this.principalRoles.has(d)||(u=!1);else if(t[l]){for(const n of t[l])if(!this.principalHasRole(d,l,n)){u=!1;break}}else u=!1;if(!u)break}if(u)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const s of e){let u=s.beanName;switch(s.beanName.startsWith("Rich")&&(u=s.beanName.substring(4)),t[u]?t[u].push(s.id):t[u]=[s.id],u){case"Member":t.User?t.User.push(s.userId):t.User=[s.userId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Resource":t.Facility?t.Facility.push(s.facilityId):t.Facility=[s.facilityId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let s=[];for(s.push(e);0!==s.length;){const d=s.shift();if(t.has(d))continue;const l=this.getPerunPolicy(d);if(!l)return[];t.set(d,l),s=s.concat(l.includePolicies)}const u=[];for(const d of t.values())u.push(d);return u}voCustomSort(e){for(let t=0;t{let e=null;r._refCount++;const t=(0,Xe.x)(a,void 0,void 0,void 0,()=>{if(!r||r._refCount<=0||0<--r._refCount)return void(e=null);const s=r._connection,u=e;e=null,s&&(!u||s===u)&&s.unsubscribe(),a.unsubscribe()});r.subscribe(t),t.closed||(e=r.connect())})}class Sf extends ai.y{constructor(a,e){super(),this.source=a,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,fn.A)(a)&&(this.lift=a.lift)}_subscribe(a){return this.getSubject().subscribe(a)}getSubject(){const a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:a}=this;this._subject=this._connection=null,a?.unsubscribe()}connect(){let a=this._connection;if(!a){a=this._connection=new Qt.w0;const e=this.getSubject();a.add(this.source.subscribe((0,Xe.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),a.closed&&(this._connection=null,a=Qt.w0.EMPTY)}return a}refCount(){return Tf()(this)}}function Zi(...r){const a=(0,kn.yG)(r);return(0,fn.e)((e,t)=>{(a?(0,Yi.z)(r,e,a):(0,Yi.z)(r,e)).subscribe(t)})}var Hi=E(5577),ei=E(590),Rt=E(8505),Xi=E(262);function Do(r,a,e,t,s){return(u,d)=>{let l=e,n=a,i=0;u.subscribe((0,Xe.x)(d,o=>{const c=i++;n=l?r(n,o,c):(l=!0,o),t&&d.next(n)},s&&(()=>{l&&d.next(n),d.complete()})))}}function rr(r,a){return(0,fn.e)(Do(r,a,arguments.length>=2,!0))}function ru(r){return r<=0?()=>Oi.E:(0,fn.e)((a,e)=>{let t=[];a.subscribe((0,Xe.x)(e,s=>{t.push(s),r{for(const s of t)e.next(s);e.complete()},void 0,()=>{t=null}))})}var Ef=E(8068),au=E(6590),Mf=E(4671);function wc(r,a){const e=arguments.length>=2;return t=>t.pipe(r?(0,ge.h)((s,u)=>r(s,u,t)):Mf.y,ru(1),e?(0,au.d)(a):(0,Ef.T)(()=>new On.K))}var Df=E(9718);function Ha(r){return(0,fn.e)((a,e)=>{try{a.subscribe(e)}finally{e.add(r)}})}var yc=E(8189);const ft="primary";class su{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ra(r){return new su(r)}function Hf(r,a,e){const t=e.path.split("/");if(t.length>r.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[u]===s)}return r===a}function Pf(r){return Array.prototype.concat.apply([],r)}function If(r){return r.length>0?r[r.length-1]:null}function qt(r,a){for(const e in r)r.hasOwnProperty(e)&&a(r[e],e)}function St(r){return(0,h.CqO)(r)?r:(0,h.QGY)(r)?(0,$e.D)(Promise.resolve(r)):(0,Me.of)(r)}const kf={exact:function Os(r,a,e){if(!Ia(r.segments,a.segments)||!js(r.segments,a.segments,e)||r.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!r.children[t]||!Os(r.children[t],a.children[t],e))return!1;return!0},subset:Ls},Vf={exact:function iw(r,a){return Ln(r,a)},subset:function xc(r,a){return Object.keys(a).length<=Object.keys(r).length&&Object.keys(a).every(e=>vc(r[e],a[e]))},ignored:()=>!0};function Bf(r,a,e){return kf[e.paths](r.root,a.root,e.matrixParams)&&Vf[e.queryParams](r.queryParams,a.queryParams)&&!("exact"===e.fragment&&r.fragment!==a.fragment)}function Ls(r,a,e){return Tc(r,a,a.segments,e)}function Tc(r,a,e,t){if(r.segments.length>e.length){const s=r.segments.slice(0,e.length);return!(!Ia(s,e)||a.hasChildren()||!js(s,e,t))}if(r.segments.length===e.length){if(!Ia(r.segments,e)||!js(r.segments,e,t))return!1;for(const s in a.children)if(!r.children[s]||!Ls(r.children[s],a.children[s],t))return!1;return!0}{const s=e.slice(0,r.segments.length),u=e.slice(r.segments.length);return!!(Ia(r.segments,s)&&js(r.segments,s,t)&&r.children[ft])&&Tc(r.children[ft],a,u,t)}}function js(r,a,e){return a.every((t,s)=>Vf[e](r[s].parameters,t.parameters))}class Pa{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ra(this.queryParams)),this._queryParamMap}toString(){return rw.serialize(this)}}class dt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,qt(e,(t,s)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return cu(this)}}class Rr{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ra(this.parameters)),this._parameterMap}toString(){return ka(this)}}function Ia(r,a){return r.length===a.length&&r.every((e,t)=>e.path===a[t].path)}let Sc=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:function(){return new lu},providedIn:"root"}),r})();class lu{parse(a){const e=new ar(a);return new Pa(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${Ec(a.root,!0)}`,t=function Ro(r){const a=Object.keys(r).map(e=>{const t=r[e];return Array.isArray(t)?t.map(s=>`${Ns(e)}=${Ns(s)}`).join("&"):`${Ns(e)}=${Ns(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function Of(r){return encodeURI(r)}(a.fragment)}`:""}`}}const rw=new lu;function cu(r){return r.segments.map(a=>ka(a)).join("/")}function Ec(r,a){if(!r.hasChildren())return cu(r);if(a){const e=r.children[ft]?Ec(r.children[ft],!1):"",t=[];return qt(r.children,(s,u)=>{u!==ft&&t.push(`${u}:${Ec(s,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Fs(r,a){let e=[];return qt(r.children,(t,s)=>{s===ft&&(e=e.concat(a(t,s)))}),qt(r.children,(t,s)=>{s!==ft&&(e=e.concat(a(t,s)))}),e}(r,(t,s)=>s===ft?[Ec(r.children[ft],!1)]:[`${s}:${Ec(t,!1)}`]);return 1===Object.keys(r.children).length&&null!=r.children[ft]?`${cu(r)}/${e[0]}`:`${cu(r)}/(${e.join("//")})`}}function Us(r){return encodeURIComponent(r).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ns(r){return Us(r).replace(/%3B/gi,";")}function Ho(r){return Us(r).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qs(r){return decodeURIComponent(r)}function du(r){return qs(r.replace(/\+/g,"%20"))}function ka(r){return`${Ho(r.path)}${function aw(r){return Object.keys(r).map(a=>`;${Ho(a)}=${Ho(r[a])}`).join("")}(r.parameters)}`}const uu=/^[^\/()?;=#]+/;function Va(r){const a=r.match(uu);return a?a[0]:""}const zx=/^[^=?&#]+/,jf=/^[^&#]+/;class ar{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dt([],{}):new dt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[ft]=new dt(a,e)),t}parseSegment(){const a=Va(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new h.vHH(4009,!1);return this.capture(a),new Rr(qs(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Va(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const s=Va(this.remaining);s&&(t=s,this.capture(t))}a[qs(e)]=qs(t)}parseQueryParam(a){const e=function Lf(r){const a=r.match(zx);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function ow(r){const a=r.match(jf);return a?a[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const s=du(e),u=du(t);if(a.hasOwnProperty(s)){let d=a[s];Array.isArray(d)||(d=[d],a[s]=d),d.push(u)}else a[s]=u}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Va(this.remaining),s=this.remaining[t.length];if("/"!==s&&")"!==s&&";"!==s)throw new h.vHH(4010,!1);let u;t.indexOf(":")>-1?(u=t.slice(0,t.indexOf(":")),this.capture(u),this.capture(":")):a&&(u=ft);const d=this.parseChildren();e[u]=1===Object.keys(d).length?d[ft]:new dt([],d),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new h.vHH(4011,!1)}}function hu(r){return r.segments.length>0?new dt([],{[ft]:r}):r}function ea(r){const a={};for(const t of Object.keys(r.children)){const u=ea(r.children[t]);(u.segments.length>0||u.hasChildren())&&(a[t]=u)}return function pu(r){if(1===r.numberOfChildren&&r.children[ft]){const a=r.children[ft];return new dt(r.segments.concat(a.segments),a.children)}return r}(new dt(r.segments,a))}function Pr(r){return r instanceof Pa}function Uf(r,a,e,t,s){if(0===e.length)return Vo(a.root,a.root,a.root,t,s);const u=function Nf(r){if("string"==typeof r[0]&&1===r.length&&"/"===r[0])return new Bo(!0,0,r);let a=0,e=!1;const t=r.reduce((s,u,d)=>{if("object"==typeof u&&null!=u){if(u.outlets){const l={};return qt(u.outlets,(n,i)=>{l[i]="string"==typeof n?n.split("/"):n}),[...s,{outlets:l}]}if(u.segmentPath)return[...s,u.segmentPath]}return"string"!=typeof u?[...s,u]:0===d?(u.split("/").forEach((l,n)=>{0==n&&"."===l||(0==n&&""===l?e=!0:".."===l?a++:""!=l&&s.push(l))}),s):[...s,u]},[]);return new Bo(e,a,t)}(e);return u.toRoot()?Vo(a.root,a.root,new dt([],{}),t,s):function d(n){const i=function Oo(r,a,e,t){if(r.isAbsolute)return new Ba(a.root,!0,0);if(-1===t)return new Ba(e,e===a.root,0);return function zf(r,a,e){let t=r,s=a,u=e;for(;u>s;){if(u-=s,t=t.parent,!t)throw new h.vHH(4005,!1);s=t.segments.length}return new Ba(t,!1,s-u)}(e,t+(Io(r.commands[0])?0:1),r.numberOfDoubleDots)}(u,a,r.snapshot?._urlSegment,n),o=i.processChildren?Ws(i.segmentGroup,i.index,u.commands):Gs(i.segmentGroup,i.index,u.commands);return Vo(a.root,i.segmentGroup,o,t,s)}(r.snapshot?._lastPathIndex)}function Io(r){return"object"==typeof r&&null!=r&&!r.outlets&&!r.segmentPath}function ko(r){return"object"==typeof r&&null!=r&&r.outlets}function Vo(r,a,e,t,s){let d,u={};t&&qt(t,(n,i)=>{u[i]=Array.isArray(n)?n.map(o=>`${o}`):`${n}`}),d=r===a?e:zs(r,a,e);const l=hu(ea(d));return new Pa(l,u,s)}function zs(r,a,e){const t={};return qt(r.children,(s,u)=>{t[u]=s===a?e:zs(s,a,e)}),new dt(r.segments,t)}class Bo{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&Io(t[0]))throw new h.vHH(4003,!1);const s=t.find(ko);if(s&&s!==If(t))throw new h.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ba{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function Gs(r,a,e){if(r||(r=new dt([],{})),0===r.segments.length&&r.hasChildren())return Ws(r,a,e);const t=function Wf(r,a,e){let t=0,s=a;const u={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return u;const d=r.segments[s],l=e[t];if(ko(l))break;const n=`${l}`,i=t0&&void 0===n)break;if(n&&i&&"object"==typeof i&&void 0===i.outlets){if(!La(n,i,d))return u;t+=2}else{if(!La(n,{},d))return u;t++}s++}return{match:!0,pathIndex:s,commandIndex:t}}(r,a,e),s=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof u&&(u=[u]),null!==u&&(s[d]=Gs(r.children[d],a,u))}),qt(r.children,(u,d)=>{void 0===t[d]&&(s[d]=u)}),new dt(r.segments,s)}}function $s(r,a,e){const t=r.segments.slice(0,a);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=$s(new dt([],{}),0,e))}),a}function Oa(r){const a={};return qt(r,(e,t)=>a[t]=`${e}`),a}function La(r,a,e){return r==e.path&&Ln(a,e.parameters)}class or{constructor(a,e){this.id=a,this.url=e}}class Qs extends or{constructor(a,e,t="imperative",s=null){super(a,e),this.type=0,this.navigationTrigger=t,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class mn extends or{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class mu extends or{constructor(a,e,t,s){super(a,e),this.reason=t,this.code=s,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $f extends or{constructor(a,e,t,s){super(a,e),this.error=t,this.target=s,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Bt extends or{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gx extends or{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wx extends or{constructor(a,e,t,s,u){super(a,e),this.urlAfterRedirects=t,this.state=s,this.shouldActivate=u,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class $x extends or{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qx extends or{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yx{constructor(a){this.route=a,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Jx{constructor(a){this.route=a,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Kx{constructor(a){this.snapshot=a,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ys{constructor(a){this.snapshot=a,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zx{constructor(a){this.snapshot=a,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xx{constructor(a){this.snapshot=a,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fi{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class jo{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=Qf(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=Qf(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=_u(a,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==a)}pathFromRoot(a){return _u(a,this._root).map(e=>e.value)}}function Qf(r,a){if(r===a.value)return a;for(const e of a.children){const t=Qf(r,e);if(t)return t}return null}function _u(r,a){if(r===a.value)return[a];for(const e of a.children){const t=_u(r,e);if(t.length)return t.unshift(a),t}return[]}class si{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function tn(r){const a={};return r&&r.children.forEach(e=>a[e.value.outlet]=e),a}class bu extends jo{constructor(a,e){super(a),this.snapshot=e,Mc(this,a)}toString(){return this.snapshot.toString()}}function Js(r,a){const e=function Ks(r,a){const d=new Cu([],{},{},"",{},ft,a,null,r.root,-1,{});return new cw("",new si(d,[]))}(r,a),t=new $t([new Rr("",{})]),s=new $t({}),u=new $t({}),d=new $t({}),l=new $t(""),n=new jn(t,s,d,l,u,ft,a,e.root);return n.snapshot=e.root,new bu(new si(n,[]),e)}class jn{constructor(a,e,t,s,u,d,l,n){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this._futureSnapshot=n}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ct.U)(a=>Ra(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ct.U)(a=>Ra(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Yf(r,a="emptyOnly"){const e=r.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const s=e[t],u=e[t-1];if(s.routeConfig&&""===s.routeConfig.path)t--;else{if(u.component)break;t--}}return function lw(r){return r.reduce((a,e)=>({params:{...a.params,...e.params},data:{...a.data,...e.data},resolve:{...e.data,...a.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class Cu{constructor(a,e,t,s,u,d,l,n,i,o,c,p){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this.routeConfig=n,this._urlSegment=i,this._lastPathIndex=o,this._correctedLastPathIndex=p??o,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ra(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ra(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class cw extends jo{constructor(a,e){super(e),this.url=a,Mc(this,e)}toString(){return nn(this._root)}}function Mc(r,a){a.value._routerState=r,a.children.forEach(e=>Mc(r,e))}function nn(r){const a=r.children.length>0?` { ${r.children.map(nn).join(", ")} } `:"";return`${r.value}${a}`}function Zs(r){if(r.snapshot){const a=r.snapshot,e=r._futureSnapshot;r.snapshot=e,Ln(a.queryParams,e.queryParams)||r.queryParams.next(e.queryParams),a.fragment!==e.fragment&&r.fragment.next(e.fragment),Ln(a.params,e.params)||r.params.next(e.params),function Rf(r,a){if(r.length!==a.length)return!1;for(let e=0;eLn(e.parameters,a[t].parameters))}(r.url,a.url);return e&&!(!r.parent!=!a.parent)&&(!r.parent||ta(r.parent,a.parent))}function Fo(r,a,e){if(e&&r.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const s=function dw(r,a,e){return a.children.map(t=>{for(const s of e.children)if(r.shouldReuseRoute(t.value,s.value.snapshot))return Fo(r,t,s);return Fo(r,t)})}(r,a,e);return new si(t,s)}{if(r.shouldAttach(a.value)){const u=r.retrieve(a.value);if(null!==u){const d=u.route;return d.value._futureSnapshot=a.value,d.children=a.children.map(l=>Fo(r,l)),d}}const t=function uw(r){return new jn(new $t(r.url),new $t(r.params),new $t(r.queryParams),new $t(r.fragment),new $t(r.data),r.outlet,r.component,r)}(a.value),s=a.children.map(u=>Fo(r,u));return new si(t,s)}}const wu="ngNavigationCancelingError";function Jf(r,a){const{redirectTo:e,navigationBehaviorOptions:t}=Pr(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,s=Kf(!1,0,a);return s.url=e,s.navigationBehaviorOptions=t,s}function Kf(r,a,e){const t=new Error("NavigationCancelingError: "+(r||""));return t[wu]=!0,t.cancellationCode=a,e&&(t.url=e),t}function Zf(r){return Dc(r)&&Pr(r.url)}function Dc(r){return r&&r[wu]}class Hc{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Rc,this.attachRef=null}}let Rc=(()=>{class r{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const s=this.getOrCreateContext(e);s.outlet=t,this.contexts.set(e,s)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Hc,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const ia=!1;let Uo=(()=>{class r{constructor(e,t,s,u,d){this.parentContexts=e,this.location=t,this.changeDetector=u,this.environmentInjector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new h.vpe,this.deactivateEvents=new h.vpe,this.attachEvents=new h.vpe,this.detachEvents=new h.vpe,this.name=s||ft,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new h.vHH(4012,ia);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new h.vHH(4012,ia);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new h.vHH(4012,ia);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new h.vHH(4013,ia);this._activatedRoute=e;const s=this.location,d=e._futureSnapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,n=new Pc(e,l,s.injector);if(t&&function hw(r){return!!r.resolveComponentFactory}(t)){const i=t.resolveComponentFactory(d);this.activated=s.createComponent(i,s.length,n)}else this.activated=s.createComponent(d,{index:s.length,injector:n,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(Rc),h.Y36(h.s_b),h.$8M("name"),h.Y36(h.sBO),h.Y36(h.lqb))},r.\u0275dir=h.lG2({type:r,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),r})();class Pc{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===jn?this.route:a===Rc?this.childContexts:this.parent.get(a,e)}}let Xf=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=h.Xpm({type:r,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&h._UZ(0,"router-outlet")},dependencies:[Uo],encapsulation:2}),r})();function em(r,a){return r.providers&&!r._injector&&(r._injector=(0,h.MMx)(r.providers,a,`Route: ${r.path}`)),r._injector??a}function ja(r){const a=r.children&&r.children.map(ja),e=a?{...r,children:a}:{...r};return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==ft&&(e.component=Xf),e}function xn(r){return r.outlet||ft}function nm(r,a){const e=r.filter(t=>xn(t)===a);return e.push(...r.filter(t=>xn(t)!==a)),e}function rm(r){if(!r)return null;if(r.routeConfig?._injector)return r.routeConfig._injector;for(let a=r.parent;a;a=a.parent){const e=a.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class el{constructor(a,e,t,s){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=s}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),Zs(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const s=tn(e);a.children.forEach(u=>{const d=u.value.outlet;this.deactivateRoutes(u,s[d],t),delete s[d]}),qt(s,(u,d)=>{this.deactivateRouteAndItsChildren(u,t)})}deactivateRoutes(a,e,t){const s=a.value,u=e?e.value:null;if(s===u)if(s.component){const d=t.getContext(s.outlet);d&&this.deactivateChildRoutes(a,e,d.children)}else this.deactivateChildRoutes(a,e,t);else u&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),s=t&&a.value.component?t.children:e,u=tn(a);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);if(t&&t.outlet){const d=t.outlet.detach(),l=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:d,route:a,contexts:l})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),s=t&&a.value.component?t.children:e,u=tn(a);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const s=tn(e);a.children.forEach(u=>{this.activateRoutes(u,s[u.value.outlet],t),this.forwardEvent(new Xx(u.value.snapshot))}),a.children.length&&this.forwardEvent(new Ys(a.value.snapshot))}activateRoutes(a,e,t){const s=a.value,u=e?e.value:null;if(Zs(s),s===u)if(s.component){const d=t.getOrCreateContext(s.outlet);this.activateChildRoutes(a,e,d.children)}else this.activateChildRoutes(a,e,t);else if(s.component){const d=t.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const l=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),d.children.onOutletReAttached(l.contexts),d.attachRef=l.componentRef,d.route=l.route.value,d.outlet&&d.outlet.attach(l.componentRef,l.route.value),Zs(l.route.value),this.activateChildRoutes(a,null,d.children)}else{const l=rm(s.snapshot),n=l?.get(h._Vd)??null;d.attachRef=null,d.route=s,d.resolver=n,d.injector=l,d.outlet&&d.outlet.activateWith(s,d.injector),this.activateChildRoutes(a,null,d.children)}}else this.activateChildRoutes(a,null,t)}}class Au{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class na{constructor(a,e){this.component=a,this.route=e}}function fw(r,a,e){const t=r._root;return aa(t,a?a._root:null,e,[t.value])}function ra(r,a,e){return(rm(a)??e).get(r)}function aa(r,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=tn(a);return r.children.forEach(d=>{(function om(r,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=r.value,d=a?a.value:null,l=e?e.getContext(r.value.outlet):null;if(d&&u.routeConfig===d.routeConfig){const n=function mw(r,a,e){if("function"==typeof e)return e(r,a);switch(e){case"pathParamsChange":return!Ia(r.url,a.url);case"pathParamsOrQueryParamsChange":return!Ia(r.url,a.url)||!Ln(r.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ta(r,a)||!Ln(r.queryParams,a.queryParams);default:return!ta(r,a)}}(d,u,u.routeConfig.runGuardsAndResolvers);n?s.canActivateChecks.push(new Au(t)):(u.data=d.data,u._resolvedData=d._resolvedData),aa(r,a,u.component?l?l.children:null:e,t,s),n&&l&&l.outlet&&l.outlet.isActivated&&s.canDeactivateChecks.push(new na(l.outlet.component,d))}else d&&tl(a,l,s),s.canActivateChecks.push(new Au(t)),aa(r,null,u.component?l?l.children:null:e,t,s)})(d,u[d.value.outlet],e,t.concat([d.value]),s),delete u[d.value.outlet]}),qt(u,(d,l)=>tl(d,e.getContext(l),s)),s}function tl(r,a,e){const t=tn(r),s=r.value;qt(t,(u,d)=>{tl(u,s.component?a?a.children.getContext(d):null:a,e)}),e.canDeactivateChecks.push(new na(s.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,s))}function sr(r){return"function"==typeof r}function xu(r){return r instanceof On.K||"EmptyError"===r?.name}const Fa=Symbol("INITIAL_VALUE");function Ua(){return(0,oi.w)(r=>(0,Vt.a)(r.map(a=>a.pipe((0,Dt.q)(1),Zi(Fa)))).pipe((0,ct.U)(a=>{for(const e of a)if(!0!==e){if(e===Fa)return Fa;if(!1===e||e instanceof Pa)return e}return!0}),(0,ge.h)(a=>a!==Fa),(0,Dt.q)(1)))}function Vc(r){return(0,Mo.z)((0,Rt.b)(a=>{if(Pr(a))throw Jf(0,a)}),(0,ct.U)(a=>!0===a))}const Su={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function um(r,a,e,t,s){const u=hm(r,a,e);return u.matched?function No(r,a,e,t){const s=a.canMatch;if(!s||0===s.length)return(0,Me.of)(!0);const u=s.map(d=>{const l=r.get(d),n=function nT(r){return r&&sr(r.canMatch)}(l)?l.canMatch(a,e):l(a,e);return St(n)});return(0,Me.of)(u).pipe(Ua(),Vc())}(t=em(a,t),a,e).pipe((0,ct.U)(d=>!0===d?u:{...Su})):(0,Me.of)(u)}function hm(r,a,e){if(""===a.path)return"full"===a.pathMatch&&(r.hasChildren()||e.length>0)?{...Su}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const s=(a.matcher||Hf)(e,r,a);if(!s)return{...Su};const u={};qt(s.posParams,(l,n)=>{u[n]=l.path});const d=s.consumed.length>0?{...u,...s.consumed[s.consumed.length-1].parameters}:u;return{matched:!0,consumedSegments:s.consumed,remainingSegments:e.slice(s.consumed.length),parameters:d,positionalParamSegments:s.posParams??{}}}function Na(r,a,e,t,s="corrected"){if(e.length>0&&function fm(r,a,e){return e.some(t=>lr(r,a,t)&&xn(t)!==ft)}(r,e,t)){const d=new dt(a,function pm(r,a,e,t){const s={};s[ft]=t,t._sourceSegment=r,t._segmentIndexShift=a.length;for(const u of e)if(""===u.path&&xn(u)!==ft){const d=new dt([],{});d._sourceSegment=r,d._segmentIndexShift=a.length,s[xn(u)]=d}return s}(r,a,t,new dt(e,r.children)));return d._sourceSegment=r,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function mm(r,a,e){return e.some(t=>lr(r,a,t))}(r,e,t)){const d=new dt(r.segments,function Eu(r,a,e,t,s,u){const d={};for(const l of t)if(lr(r,e,l)&&!s[xn(l)]){const n=new dt([],{});n._sourceSegment=r,n._segmentIndexShift="legacy"===u?r.segments.length:a.length,d[xn(l)]=n}return{...s,...d}}(r,a,e,t,r.children,s));return d._sourceSegment=r,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}const u=new dt(r.segments,r.children);return u._sourceSegment=r,u._segmentIndexShift=a.length,{segmentGroup:u,slicedSegments:e}}function lr(r,a,e){return(!(r.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function gm(r,a,e,t){return!!(xn(r)===t||t!==ft&&lr(a,e,r))&&("**"===r.path||hm(a,r,e).matched)}function _m(r,a,e){return 0===a.length&&!r.children[e]}const Bc=!1;class Oc{constructor(a){this.segmentGroup=a||null}}class bm{constructor(a){this.urlTree=a}}function gn(r){return(0,Di._)(new Oc(r))}function qa(r){return(0,Di._)(new bm(r))}class xw{constructor(a,e,t,s,u){this.injector=a,this.configLoader=e,this.urlSerializer=t,this.urlTree=s,this.config=u,this.allowRedirects=!0}apply(){const a=Na(this.urlTree.root,[],[],this.config).segmentGroup,e=new dt(a.segments,a.children);return this.expandSegmentGroup(this.injector,this.config,e,ft).pipe((0,ct.U)(u=>this.createUrlTree(ea(u),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Xi.K)(u=>{if(u instanceof bm)return this.allowRedirects=!1,this.match(u.urlTree);throw u instanceof Oc?this.noMatchError(u):u}))}match(a){return this.expandSegmentGroup(this.injector,this.config,a.root,ft).pipe((0,ct.U)(s=>this.createUrlTree(ea(s),a.queryParams,a.fragment))).pipe((0,Xi.K)(s=>{throw s instanceof Oc?this.noMatchError(s):s}))}noMatchError(a){return new h.vHH(4002,Bc)}createUrlTree(a,e,t){const s=hu(a);return new Pa(s,e,t)}expandSegmentGroup(a,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,ct.U)(u=>new dt([],u))):this.expandSegment(a,t,e,t.segments,s,!0)}expandChildren(a,e,t){const s=[];for(const u of Object.keys(t.children))"primary"===u?s.unshift(u):s.push(u);return(0,$e.D)(s).pipe((0,Vn.b)(u=>{const d=t.children[u],l=nm(e,u);return this.expandSegmentGroup(a,l,d,u).pipe((0,ct.U)(n=>({segment:n,outlet:u})))}),rr((u,d)=>(u[d.outlet]=d.segment,u),{}),wc())}expandSegment(a,e,t,s,u,d){return(0,$e.D)(t).pipe((0,Vn.b)(l=>this.expandSegmentAgainstRoute(a,e,t,l,s,u,d).pipe((0,Xi.K)(i=>{if(i instanceof Oc)return(0,Me.of)(null);throw i}))),(0,ei.P)(l=>!!l),(0,Xi.K)((l,n)=>{if(xu(l))return _m(e,s,u)?(0,Me.of)(new dt([],{})):gn(e);throw l}))}expandSegmentAgainstRoute(a,e,t,s,u,d,l){return gm(s,e,u,d)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(a,e,s,u,d):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d):gn(e):gn(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,s,d):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,s){const u=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?qa(u):this.lineralizeSegments(t,u).pipe((0,Hi.z)(d=>{const l=new dt(d,{});return this.expandSegment(a,l,e,d,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d){const{matched:l,consumedSegments:n,remainingSegments:i,positionalParamSegments:o}=hm(e,s,u);if(!l)return gn(e);const c=this.applyRedirectCommands(n,s.redirectTo,o);return s.redirectTo.startsWith("/")?qa(c):this.lineralizeSegments(s,c).pipe((0,Hi.z)(p=>this.expandSegment(a,e,t,p.concat(i),d,!1)))}matchSegmentAgainstRoute(a,e,t,s,u){return"**"===t.path?(a=em(t,a),t.loadChildren?(t._loadedRoutes?(0,Me.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(a,t)).pipe((0,ct.U)(l=>(t._loadedRoutes=l.routes,t._loadedInjector=l.injector,new dt(s,{})))):(0,Me.of)(new dt(s,{}))):um(e,t,s,a).pipe((0,oi.w)(({matched:d,consumedSegments:l,remainingSegments:n})=>d?this.getChildConfig(a=t._injector??a,t,s).pipe((0,Hi.z)(o=>{const c=o.injector??a,p=o.routes,{segmentGroup:m,slicedSegments:g}=Na(e,l,n,p),f=new dt(m.segments,m.children);if(0===g.length&&f.hasChildren())return this.expandChildren(c,p,f).pipe((0,ct.U)(Te=>new dt(l,Te)));if(0===p.length&&0===g.length)return(0,Me.of)(new dt(l,{}));const w=xn(t)===u;return this.expandSegment(c,f,p,g,w?ft:u,!0).pipe((0,ct.U)(J=>new dt(l.concat(J.segments),J.children)))})):gn(e)))}getChildConfig(a,e,t){return e.children?(0,Me.of)({routes:e.children,injector:a}):e.loadChildren?void 0!==e._loadedRoutes?(0,Me.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function kc(r,a,e,t){const s=a.canLoad;if(void 0===s||0===s.length)return(0,Me.of)(!0);const u=s.map(d=>{const l=r.get(d),n=function gw(r){return r&&sr(r.canLoad)}(l)?l.canLoad(a,e):l(a,e);return St(n)});return(0,Me.of)(u).pipe(Ua(),Vc())}(a,e,t).pipe((0,Hi.z)(s=>s?this.configLoader.loadChildren(a,e).pipe((0,Rt.b)(u=>{e._loadedRoutes=u.routes,e._loadedInjector=u.injector})):function vw(r){return(0,Di._)(Kf(Bc,3))}())):(0,Me.of)({routes:[],injector:a})}lineralizeSegments(a,e){let t=[],s=e.root;for(;;){if(t=t.concat(s.segments),0===s.numberOfChildren)return(0,Me.of)(t);if(s.numberOfChildren>1||!s.children[ft])return(0,Di._)(new h.vHH(4e3,Bc));s=s.children[ft]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreateUrlTree(a,e,t,s){const u=this.createSegmentGroup(a,e.root,t,s);return new Pa(u,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return qt(a,(s,u)=>{if("string"==typeof s&&s.startsWith(":")){const l=s.substring(1);t[u]=e[l]}else t[u]=s}),t}createSegmentGroup(a,e,t,s){const u=this.createSegments(a,e.segments,t,s);let d={};return qt(e.children,(l,n)=>{d[n]=this.createSegmentGroup(a,l,t,s)}),new dt(u,d)}createSegments(a,e,t,s){return e.map(u=>u.path.startsWith(":")?this.findPosParam(a,u,s):this.findOrReturn(u,t))}findPosParam(a,e,t){const s=t[e.path.substring(1)];if(!s)throw new h.vHH(4001,Bc);return s}findOrReturn(a,e){let t=0;for(const s of e){if(s.path===a.path)return e.splice(t),s;t++}return a}}class Cm{}class Mw{constructor(a,e,t,s,u,d,l,n){this.injector=a,this.rootComponentType=e,this.config=t,this.urlTree=s,this.url=u,this.paramsInheritanceStrategy=d,this.relativeLinkResolution=l,this.urlSerializer=n}recognize(){const a=Na(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,a,ft).pipe((0,ct.U)(e=>{if(null===e)return null;const t=new Cu([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ft,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new si(t,e),u=new cw(this.url,s);return this.inheritParamsAndData(u._root),u}))}inheritParamsAndData(a){const e=a.value,t=Yf(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(a,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.processChildren(a,e,t):this.processSegment(a,e,t,t.segments,s)}processChildren(a,e,t){return(0,$e.D)(Object.keys(t.children)).pipe((0,Vn.b)(s=>{const u=t.children[s],d=nm(e,s);return this.processSegmentGroup(a,d,u,s)}),rr((s,u)=>s&&u?(s.push(...u),s):null),function ou(r,a=!1){return(0,fn.e)((e,t)=>{let s=0;e.subscribe((0,Xe.x)(t,u=>{const d=r(u,s++);(d||a)&&t.next(u),!d&&t.complete()}))})}(s=>null!==s),(0,au.d)(null),wc(),(0,ct.U)(s=>{if(null===s)return null;const u=qo(s);return function Dw(r){r.sort((a,e)=>a.value.outlet===ft?-1:e.value.outlet===ft?1:a.value.outlet.localeCompare(e.value.outlet))}(u),u}))}processSegment(a,e,t,s,u){return(0,$e.D)(e).pipe((0,Vn.b)(d=>this.processSegmentAgainstRoute(d._injector??a,d,t,s,u)),(0,ei.P)(d=>!!d),(0,Xi.K)(d=>{if(xu(d))return _m(t,s,u)?(0,Me.of)([]):(0,Me.of)(null);throw d}))}processSegmentAgainstRoute(a,e,t,s,u){if(e.redirectTo||!gm(e,t,s,u))return(0,Me.of)(null);let d;if("**"===e.path){const l=s.length>0?If(s).parameters:{},n=zo(t)+s.length,i=new Cu(s,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Du(e),xn(e),e.component??e._loadedComponent??null,e,Fn(t),n,Hu(e),n);d=(0,Me.of)({snapshot:i,consumedSegments:[],remainingSegments:[]})}else d=um(t,e,s,a).pipe((0,ct.U)(({matched:l,consumedSegments:n,remainingSegments:i,parameters:o})=>{if(!l)return null;const c=zo(t)+n.length;return{snapshot:new Cu(n,o,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Du(e),xn(e),e.component??e._loadedComponent??null,e,Fn(t),c,Hu(e),c),consumedSegments:n,remainingSegments:i}}));return d.pipe((0,oi.w)(l=>{if(null===l)return(0,Me.of)(null);const{snapshot:n,consumedSegments:i,remainingSegments:o}=l;a=e._injector??a;const c=e._loadedInjector??a,p=function sT(r){return r.children?r.children:r.loadChildren?r._loadedRoutes:[]}(e),{segmentGroup:m,slicedSegments:g}=Na(t,i,o,p.filter(w=>void 0===w.redirectTo),this.relativeLinkResolution);if(0===g.length&&m.hasChildren())return this.processChildren(c,p,m).pipe((0,ct.U)(w=>null===w?null:[new si(n,w)]));if(0===p.length&&0===g.length)return(0,Me.of)([new si(n,[])]);const f=xn(e)===u;return this.processSegment(c,p,m,g,f?ft:u).pipe((0,ct.U)(w=>null===w?null:[new si(n,w)]))}))}}function Hw(r){const a=r.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function qo(r){const a=[],e=new Set;for(const t of r){if(!Hw(t)){a.push(t);continue}const s=a.find(u=>t.value.routeConfig===u.value.routeConfig);void 0!==s?(s.children.push(...t.children),e.add(s)):a.push(t)}for(const t of e){const s=qo(t.children);a.push(new si(t.value,s))}return a.filter(t=>!e.has(t))}function Fn(r){let a=r;for(;a._sourceSegment;)a=a._sourceSegment;return a}function zo(r){let a=r,e=a._segmentIndexShift??0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift??0;return e-1}function Du(r){return r.data||{}}function Hu(r){return r.resolve||{}}const ym=Symbol("RouteTitle");function Rw(r){return"string"==typeof r.title||null===r.title}function jc(r){return(0,oi.w)(a=>{const e=r(a);return e?(0,$e.D)(e).pipe((0,ct.U)(()=>a)):(0,Me.of)(a)})}let vm=(()=>{class r{buildTitle(e){let t,s=e.root;for(;void 0!==s;)t=this.getResolvedTitleForRoute(s)??t,s=s.children.find(u=>u.outlet===ft);return t}getResolvedTitleForRoute(e){return e.data[ym]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:function(){return(0,h.f3M)(Am)},providedIn:"root"}),r})(),Am=(()=>{class r extends vm{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(X))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Pw{}class xm extends class Iw{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Uc=new h.OlP("",{providedIn:"root",factory:()=>({})}),ku=new h.OlP("ROUTES");let Yt=(()=>{class r{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Me.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=St(e.loadComponent()).pipe((0,Rt.b)(u=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=u}),Ha(()=>{this.componentLoaders.delete(e)})),s=new Sf(t,()=>new He.x).pipe(Tf());return this.componentLoaders.set(e,s),s}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Me.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const u=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,ct.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(t);let n,i,o=!1;Array.isArray(l)?i=l:(n=l.create(e).injector,i=Pf(n.get(ku,[],h.XFs.Self|h.XFs.Optional)));return{routes:i.map(ja),injector:n}}),Ha(()=>{this.childrenLoaders.delete(t)})),d=new Sf(u,()=>new He.x).pipe(Tf());return this.childrenLoaders.set(t,d),d}loadModuleFactoryOrRoutes(e){return St(e()).pipe((0,Hi.z)(t=>t instanceof h.YKP||Array.isArray(t)?(0,Me.of)(t):(0,$e.D)(this.compiler.compileModuleAsync(t))))}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(h.zs3),h.LFG(h.Sil))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Tm{}class kw{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function Sm(r){throw r}function Vw(r,a,e){return a.parse("/")}const Bw={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ow={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Em(){const r=(0,h.f3M)(Sc),a=(0,h.f3M)(Rc),e=(0,h.f3M)(M.Ye),t=(0,h.f3M)(h.zs3),s=(0,h.f3M)(h.Sil),u=(0,h.f3M)(ku,{optional:!0})??[],d=(0,h.f3M)(Uc,{optional:!0})??{},l=(0,h.f3M)(Am),n=(0,h.f3M)(vm,{optional:!0}),i=(0,h.f3M)(Tm,{optional:!0}),o=(0,h.f3M)(Pw,{optional:!0}),c=new yi(null,r,a,e,t,s,Pf(u));return i&&(c.urlHandlingStrategy=i),o&&(c.routeReuseStrategy=o),c.titleStrategy=n??l,function Lw(r,a){r.errorHandler&&(a.errorHandler=r.errorHandler),r.malformedUriErrorHandler&&(a.malformedUriErrorHandler=r.malformedUriErrorHandler),r.onSameUrlNavigation&&(a.onSameUrlNavigation=r.onSameUrlNavigation),r.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=r.paramsInheritanceStrategy),r.relativeLinkResolution&&(a.relativeLinkResolution=r.relativeLinkResolution),r.urlUpdateStrategy&&(a.urlUpdateStrategy=r.urlUpdateStrategy),r.canceledNavigationResolution&&(a.canceledNavigationResolution=r.canceledNavigationResolution)}(d,c),c}let yi=(()=>{class r{constructor(e,t,s,u,d,l,n){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=s,this.location=u,this.config=n,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.x,this.errorHandler=Sm,this.malformedUriErrorHandler=Vw,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Me.of)(void 0),this.urlHandlingStrategy=new kw,this.routeReuseStrategy=new xm,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=d.get(Yt),this.configLoader.onLoadEndListener=p=>this.triggerEvent(new Jx(p)),this.configLoader.onLoadStartListener=p=>this.triggerEvent(new Yx(p)),this.ngModule=d.get(h.h0i),this.console=d.get(h.c2e);const c=d.get(h.R0b);this.isNgZoneEnabled=c instanceof h.R0b&&h.R0b.isInAngularZone(),this.resetConfig(n),this.currentUrlTree=function tw(){return new Pa(new dt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Js(this.currentUrlTree,this.rootComponentType),this.transitions=new $t({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,ge.h)(s=>0!==s.id),(0,ct.U)(s=>({...s,extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),(0,oi.w)(s=>{let u=!1,d=!1;return(0,Me.of)(s).pipe((0,Rt.b)(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,oi.w)(l=>{const n=this.browserUrlTree.toString(),i=!this.navigated||l.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Wo(l.source)&&(this.browserUrlTree=l.extractedUrl),(0,Me.of)(l).pipe((0,oi.w)(c=>{const p=this.transitions.getValue();return t.next(new Qs(c.id,this.serializeUrl(c.extractedUrl),c.source,c.restoredState)),p!==this.transitions.getValue()?Oi.E:Promise.resolve(c)}),function Tw(r,a,e,t){return(0,oi.w)(s=>function Aw(r,a,e,t,s){return new xw(r,a,e,t,s).apply()}(r,a,e,s.extractedUrl,t).pipe((0,ct.U)(u=>({...s,urlAfterRedirects:u}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Rt.b)(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},s.urlAfterRedirects=c.urlAfterRedirects}),function lT(r,a,e,t,s,u){return(0,Hi.z)(d=>function Ew(r,a,e,t,s,u,d="emptyOnly",l="legacy"){return new Mw(r,a,e,t,s,d,l,u).recognize().pipe((0,oi.w)(n=>null===n?function Sw(r){return new ai.y(a=>a.error(r))}(new Cm):(0,Me.of)(n)))}(r,a,e,d.urlAfterRedirects,t.serialize(d.urlAfterRedirects),t,s,u).pipe((0,ct.U)(l=>({...d,targetSnapshot:l}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Rt.b)(c=>{if(s.targetSnapshot=c.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!c.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);this.setBrowserUrl(m,c)}this.browserUrlTree=c.urlAfterRedirects}const p=new Bt(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);t.next(p)}));if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:m,source:g,restoredState:f,extras:w}=l,R=new Qs(p,this.serializeUrl(m),g,f);t.next(R);const J=Js(m,this.rootComponentType).snapshot;return s={...l,targetSnapshot:J,urlAfterRedirects:m,extras:{...w,skipLocationChange:!1,replaceUrl:!1}},(0,Me.of)(s)}return this.rawUrlTree=l.rawUrl,l.resolve(null),Oi.E}),(0,Rt.b)(l=>{const n=new Gx(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(n)}),(0,ct.U)(l=>s={...l,guards:fw(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),function Cw(r,a){return(0,Hi.z)(e=>{const{targetSnapshot:t,currentSnapshot:s,guards:{canActivateChecks:u,canDeactivateChecks:d}}=e;return 0===d.length&&0===u.length?(0,Me.of)({...e,guardsResult:!0}):function lm(r,a,e,t){return(0,$e.D)(r).pipe((0,Hi.z)(s=>function dm(r,a,e,t,s){const u=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!u||0===u.length)return(0,Me.of)(!0);const d=u.map(l=>{const n=ra(l,a,s);return St(function _w(r){return r&&sr(r.canDeactivate)}(n)?n.canDeactivate(r,a,e,t):n(r,a,e,t)).pipe((0,ei.P)())});return(0,Me.of)(d).pipe(Ua())}(s.component,s.route,e,a,t)),(0,ei.P)(s=>!0!==s,!0))}(d,t,s,r).pipe((0,Hi.z)(l=>l&&function il(r){return"boolean"==typeof r}(l)?function aT(r,a,e,t){return(0,$e.D)(a).pipe((0,Vn.b)(s=>(0,Yi.z)(function oT(r,a){return null!==r&&a&&a(new Kx(r)),(0,Me.of)(!0)}(s.route.parent,t),function cm(r,a){return null!==r&&a&&a(new Zx(r)),(0,Me.of)(!0)}(s.route,t),function ww(r,a,e){const t=a[a.length-1],u=a.slice(0,a.length-1).reverse().map(d=>function am(r){const a=r.routeConfig?r.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:r,guards:a}:null}(d)).filter(d=>null!==d).map(d=>Gt(()=>{const l=d.guards.map(n=>{const i=ra(n,d.node,e);return St(function sm(r){return r&&sr(r.canActivateChild)}(i)?i.canActivateChild(t,r):i(t,r)).pipe((0,ei.P)())});return(0,Me.of)(l).pipe(Ua())}));return(0,Me.of)(u).pipe(Ua())}(r,s.path,e),function Tu(r,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Me.of)(!0);const s=t.map(u=>Gt(()=>{const d=ra(u,a,e);return St(function iT(r){return r&&sr(r.canActivate)}(d)?d.canActivate(a,r):d(a,r)).pipe((0,ei.P)())}));return(0,Me.of)(s).pipe(Ua())}(r,s.route,e))),(0,ei.P)(s=>!0!==s,!0))}(t,u,r,a):(0,Me.of)(l)),(0,ct.U)(l=>({...e,guardsResult:l})))})}(this.ngModule.injector,l=>this.triggerEvent(l)),(0,Rt.b)(l=>{if(s.guardsResult=l.guardsResult,Pr(l.guardsResult))throw Jf(0,l.guardsResult);const n=new Wx(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.triggerEvent(n)}),(0,ge.h)(l=>!!l.guardsResult||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",3),!1)),jc(l=>{if(l.guards.canActivateChecks.length)return(0,Me.of)(l).pipe((0,Rt.b)(n=>{const i=new $x(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,oi.w)(n=>{let i=!1;return(0,Me.of)(n).pipe(function cT(r,a){return(0,Hi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:s}}=e;if(!s.length)return(0,Me.of)(e);let u=0;return(0,$e.D)(s).pipe((0,Vn.b)(d=>function Ru(r,a,e,t){const s=r.routeConfig,u=r._resolve;return void 0!==s?.title&&!Rw(s)&&(u[ym]=s.title),function Pu(r,a,e,t){const s=function Iu(r){return[...Object.keys(r),...Object.getOwnPropertySymbols(r)]}(r);if(0===s.length)return(0,Me.of)({});const u={};return(0,$e.D)(s).pipe((0,Hi.z)(d=>function dT(r,a,e,t){const s=ra(r,a,t);return St(s.resolve?s.resolve(a,e):s(a,e))}(r[d],a,e,t).pipe((0,ei.P)(),(0,Rt.b)(l=>{u[d]=l}))),ru(1),(0,Df.h)(u),(0,Xi.K)(d=>xu(d)?Oi.E:(0,Di._)(d)))}(u,r,a,t).pipe((0,ct.U)(d=>(r._resolvedData=d,r.data=Yf(r,e).resolve,s&&Rw(s)&&(r.data[ym]=s.title),null)))}(d.route,t,r,a)),(0,Rt.b)(()=>u++),ru(1),(0,Hi.z)(d=>u===s.length?(0,Me.of)(e):Oi.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Rt.b)({next:()=>i=!0,complete:()=>{i||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",2))}}))}),(0,Rt.b)(n=>{const i=new Qx(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}))}),jc(l=>{const n=i=>{const o=[];i.routeConfig?.loadComponent&&!i.routeConfig._loadedComponent&&o.push(this.configLoader.loadComponent(i.routeConfig).pipe((0,Rt.b)(c=>{i.component=c}),(0,ct.U)(()=>{})));for(const c of i.children)o.push(...n(c));return o};return(0,Vt.a)(n(l.targetSnapshot.root)).pipe((0,au.d)(),(0,Dt.q)(1))}),jc(()=>this.afterPreactivation()),(0,ct.U)(l=>{const n=function eT(r,a,e){const t=Fo(r,a._root,e?e._root:void 0);return new bu(t,a)}(this.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return s={...l,targetRouterState:n}}),(0,Rt.b)(l=>{this.currentUrlTree=l.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(l.urlAfterRedirects,l.rawUrl),this.routerState=l.targetRouterState,"deferred"===this.urlUpdateStrategy&&(l.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,l),this.browserUrlTree=l.urlAfterRedirects)}),((r,a,e)=>(0,ct.U)(t=>(new el(a,t.targetRouterState,t.currentRouterState,e).activate(r),t)))(this.rootContexts,this.routeReuseStrategy,l=>this.triggerEvent(l)),(0,Rt.b)({next(){u=!0},complete(){u=!0}}),Ha(()=>{u||d||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),(0,Xi.K)(l=>{if(d=!0,Dc(l)){Zf(l)||(this.navigated=!0,this.restoreHistory(s,!0));const n=new mu(s.id,this.serializeUrl(s.extractedUrl),l.message,l.cancellationCode);if(t.next(n),Zf(l)){const i=this.urlHandlingStrategy.merge(l.url,this.rawUrlTree),o={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Wo(s.source)};this.scheduleNavigation(i,"imperative",null,o,{resolve:s.resolve,reject:s.reject,promise:s.promise})}else s.resolve(!1)}else{this.restoreHistory(s,!0);const n=new $f(s.id,this.serializeUrl(s.extractedUrl),l,s.targetSnapshot??void 0);t.next(n);try{s.resolve(this.errorHandler(l))}catch(i){s.reject(i)}}return Oi.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const s={replaceUrl:!0},u=e.state?.navigationId?e.state:null;if(u){const l={...u};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const d=this.parseUrl(e.url);this.scheduleNavigation(d,t,u,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(ja),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:s,queryParams:u,fragment:d,queryParamsHandling:l,preserveFragment:n}=t,i=s||this.routerState.root,o=n?this.currentUrlTree.fragment:d;let c=null;switch(l){case"merge":c={...this.currentUrlTree.queryParams,...u};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=u||null}return null!==c&&(c=this.removeEmptyProps(c)),Uf(i,this.currentUrlTree,e,c,o??null)}navigateByUrl(e,t={skipLocationChange:!1}){const s=Pr(e)?e:this.parseUrl(e),u=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(u,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function uT(r){for(let a=0;a{const u=e[s];return null!=u&&(t[s]=u),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new mn(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,s,u,d){if(this.disposed)return Promise.resolve(!1);let l,n,i;d?(l=d.resolve,n=d.reject,i=d.promise):i=new Promise((p,m)=>{l=p,n=m});const o=++this.navigationId;let c;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),c=s&&s.\u0275routerPageId?s.\u0275routerPageId:u.replaceUrl||u.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):c=0,this.setTransition({id:o,targetPageId:c,source:t,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:u,resolve:l,reject:n,promise:i,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),i.catch(p=>Promise.reject(p))}setBrowserUrl(e,t){const s=this.urlSerializer.serialize(e),u={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(s)||t.extras.replaceUrl?this.location.replaceState(s,"",u):this.location.go(s,"",u)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===s?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,s){const u=new mu(e.id,this.serializeUrl(e.extractedUrl),t,s);this.triggerEvent(u),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return r.\u0275fac=function(e){h.$Z()},r.\u0275prov=h.Yz7({token:r,factory:function(){return Em()},providedIn:"root"}),r})();function Wo(r){return"imperative"!==r}let $o=(()=>{class r{constructor(e,t,s,u,d){this.router=e,this.route=t,this.tabIndexAttribute=s,this.renderer=u,this.el=d,this.commands=null,this.onChanges=new He.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,s=this.el.nativeElement;null!==e?t.setAttribute(s,"tabindex",e):t.removeAttribute(s,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,h.D6c)(this.skipLocationChange),replaceUrl:(0,h.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,h.D6c)(this.preserveFragment)})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(yi),h.Y36(jn),h.$8M("tabindex"),h.Y36(h.Qsj),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&h.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[h.TTD]}),r})(),nl=(()=>{class r{constructor(e,t,s){this.router=e,this.route=t,this.locationStrategy=s,this.commands=null,this.href=null,this.onChanges=new He.x,this.subscription=e.events.subscribe(u=>{u instanceof mn&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,s,u,d){if(0!==e||t||s||u||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const l={skipLocationChange:(0,h.D6c)(this.skipLocationChange),replaceUrl:(0,h.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,l),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,h.D6c)(this.preserveFragment)})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(yi),h.Y36(jn),h.Y36(M.S$))},r.\u0275dir=h.lG2({type:r,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&h.NdJ("click",function(u){return t.onClick(u.button,u.ctrlKey,u.shiftKey,u.altKey,u.metaKey)}),2&e&&h.uIk("target",t.target)("href",t.href,h.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[h.TTD]}),r})();class Hm{}let Rm=(()=>{class r{preload(e,t){return(0,Me.of)(null)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),qc=(()=>{class r{constructor(e,t,s,u,d){this.router=e,this.injector=s,this.preloadingStrategy=u,this.loader=d}setUpPreloading(){this.subscription=this.router.events.pipe((0,ge.h)(e=>e instanceof mn),(0,Vn.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const s=[];for(const u of t){u.providers&&!u._injector&&(u._injector=(0,h.MMx)(u.providers,e,`Route: ${u.path}`));const d=u._injector??e,l=u._loadedInjector??d;u.loadChildren&&!u._loadedRoutes&&void 0===u.canLoad||u.loadComponent&&!u._loadedComponent?s.push(this.preloadConfig(d,u)):(u.children||u._loadedRoutes)&&s.push(this.processRoutes(l,u.children??u._loadedRoutes))}return(0,$e.D)(s).pipe((0,yc.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let s;s=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Me.of)(null);const u=s.pipe((0,Hi.z)(d=>null===d?(0,Me.of)(void 0):(t._loadedRoutes=d.routes,t._loadedInjector=d.injector,this.processRoutes(d.injector??e,d.routes))));if(t.loadComponent&&!t._loadedComponent){const d=this.loader.loadComponent(t);return(0,$e.D)([u,d]).pipe((0,yc.J)())}return u})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(yi),h.LFG(h.Sil),h.LFG(h.lqb),h.LFG(Hm),h.LFG(Yt))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();const Fw=new h.OlP("");let Uw=(()=>{class r{constructor(e,t,s={}){this.router=e,this.viewportScroller=t,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Qs?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof mn&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof fi&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new fi(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return r.\u0275fac=function(e){h.$Z()},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();const Vu=new h.OlP("ROUTER_FORROOT_GUARD"),oa=new h.OlP(""),qw=[M.Ye,{provide:Sc,useClass:lu},{provide:yi,useFactory:Em},Rc,{provide:jn,useFactory:function Bu(r){return r.routerState.root},deps:[yi]},Yt];function zc(){return new h.PXZ("Router",yi)}let Gc=(()=>{class r{constructor(e){}static forRoot(e,t){return{ngModule:r,providers:[qw,[],$c(e),{provide:Vu,useFactory:Pm,deps:[[yi,new h.FiY,new h.tp0]]},{provide:Uc,useValue:t||{}},t?.useHash?{provide:M.S$,useClass:M.Do}:{provide:M.S$,useClass:M.b0},{provide:Fw,useFactory:()=>{const r=(0,h.f3M)(yi),a=(0,h.f3M)(M.EM),e=(0,h.f3M)(Uc);return e.scrollOffset&&a.setOffset(e.scrollOffset),new Uw(r,a,e)}},t?.preloadingStrategy?$w(t.preloadingStrategy):[],{provide:h.PXZ,multi:!0,useFactory:zc},t?.initialNavigation?km(t):[],[{provide:Im,useFactory:zw},{provide:h.tb,multi:!0,useExisting:Im}]]}}static forChild(e){return{ngModule:r,providers:[$c(e)]}}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Vu,8))},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})();function Pm(r){return"guarded"}function $c(r){return[{provide:ku,multi:!0,useValue:r}]}function zw(){const r=(0,h.f3M)(h.zs3);return a=>{const e=r.get(h.z2F);if(a!==e.components[0])return;const t=r.get(yi),s=r.get(Vm);1===r.get(Lu)&&t.initialNavigation(),r.get(oa,null,h.XFs.Optional)?.setUpPreloading(),r.get(Fw,null,h.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),s.next(),s.complete()}}const Im=new h.OlP("");function km(r){return["disabled"===r.initialNavigation?[{provide:h.ip1,multi:!0,useFactory:()=>{const r=(0,h.f3M)(yi);return()=>{r.setUpLocationChangeListener()}}},{provide:Lu,useValue:2}]:[],"enabledBlocking"===r.initialNavigation?[{provide:Lu,useValue:0},{provide:h.ip1,multi:!0,deps:[h.zs3],useFactory:r=>{const a=r.get(M.V_,Promise.resolve(null));let e=!1;return()=>a.then(()=>new Promise(s=>{const u=r.get(yi),d=r.get(Vm);(function t(s){r.get(yi).events.pipe((0,ge.h)(d=>d instanceof mn||d instanceof mu||d instanceof $f),(0,ct.U)(d=>d instanceof mn||d instanceof mu&&(0===d.code||1===d.code)&&null),(0,ge.h)(d=>null!==d),(0,Dt.q)(1)).subscribe(()=>{s()})})(()=>{s(!0),e=!0}),u.afterPreactivation=()=>(s(!0),e||d.closed?(0,Me.of)(void 0):d),u.initialNavigation()}))}}]:[]]}const Vm=new h.OlP("",{factory:()=>new He.x}),Lu=new h.OlP("",{providedIn:"root",factory:()=>1});function $w(r){return[qc,{provide:oa,useExisting:qc},{provide:Hm,useExisting:r}]}let Fu;try{Fu=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Fu=!1}let Yo,Jt=(()=>{class r{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,M.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Fu)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(h.Lbi))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Jo=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Bm(){if(Yo)return Yo;if("object"!=typeof document||!document)return Yo=new Set(Jo),Yo;let r=document.createElement("input");return Yo=new Set(Jo.filter(a=>(r.setAttribute("type",a),r.type===a))),Yo}let dr,Uu,sa,Nu;function ur(r){return function rl(){if(null==dr&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dr=!0}))}finally{dr=dr||!1}return dr}()?r:!!r.capture}function Om(){if(null==sa){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return sa=!1,sa;if("scrollBehavior"in document.documentElement.style)sa=!0;else{const r=Element.prototype.scrollTo;sa=!!r&&!/\{\s*\[native code\]\s*\}/.test(r.toString())}}return sa}function al(){if("object"!=typeof document||!document)return 0;if(null==Uu){const r=document.createElement("div"),a=r.style;r.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",r.appendChild(e),document.body.appendChild(r),Uu=0,0===r.scrollLeft&&(r.scrollLeft=1,Uu=0===r.scrollLeft?1:2),r.remove()}return Uu}function Qc(r){if(function Lm(){if(null==Nu){const r=typeof document<"u"?document.head:null;Nu=!(!r||!r.createShadowRoot&&!r.attachShadow)}return Nu}()){const a=r.getRootNode?r.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function ol(){let r=typeof document<"u"&&document?document.activeElement:null;for(;r&&r.shadowRoot;){const a=r.shadowRoot.activeElement;if(a===r)break;r=a}return r}function Un(r){return r.composedPath?r.composedPath()[0]:r.target}function qu(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function hr(r,...a){return a.length?a.some(e=>r[e]):r.altKey||r.shiftKey||r.ctrlKey||r.metaKey}var ng=E(8372);function Zu(r){return(0,ge.h)((a,e)=>r<=e)}function rg(r,a=Mf.y){return r=r??ag,(0,fn.e)((e,t)=>{let s,u=!0;e.subscribe((0,Xe.x)(t,d=>{const l=a(d);(u||!r(s,l))&&(u=!1,s=l,t.next(d))}))})}function ag(r,a){return r===a}var Sy=E(5032);function gt(r){return(0,fn.e)((a,e)=>{(0,In.Xf)(r).subscribe((0,Xe.x)(e,()=>e.complete(),Sy.Z)),!e.closed&&a.subscribe(e)})}function ze(r){return null!=r&&"false"!=`${r}`}function Pi(r,a=0){return Xu(r)?Number(r):a}function Xu(r){return!isNaN(parseFloat(r))&&!isNaN(Number(r))}function Xc(r){return Array.isArray(r)?r:[r]}function mi(r){return null==r?"":"string"==typeof r?r:`${r}px`}function li(r){return r instanceof h.SBq?r.nativeElement:r}let eh=(()=>{class r{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ey=(()=>{class r{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=li(e);return new ai.y(s=>{const d=this._observeElement(t).subscribe(s);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.x,s=this._mutationObserverFactory.create(u=>t.next(u));s&&s.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:s,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:s}=this._observedElements.get(e);t&&t.disconnect(),s.complete(),this._observedElements.delete(e)}}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(eh))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),th=(()=>{class r{constructor(e,t,s){this._contentObserver=e,this._elementRef=t,this._ngZone=s,this.event=new h.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ze(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Pi(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,ng.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(Ey),h.Y36(h.SBq),h.Y36(h.R0b))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),r})(),hl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[eh]}),r})();const ih=new Set;let Wa,og=(()=>{class r{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Dy}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function My(r){if(!ih.has(r))try{Wa||(Wa=document.createElement("style"),Wa.setAttribute("type","text/css"),document.head.appendChild(Wa)),Wa.sheet&&(Wa.sheet.insertRule(`@media ${r} {body{ }}`,0),ih.add(r))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Jt))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function Dy(r){return{matches:"all"===r||""===r,media:r,addListener:()=>{},removeListener:()=>{}}}let nh=(()=>{class r{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return sg(Xc(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){const s=sg(Xc(e)).map(d=>this._registerQuery(d).observable);let u=(0,Vt.a)(s);return u=(0,Yi.z)(u.pipe((0,Dt.q)(1)),u.pipe(Zu(1),(0,ng.b)(0))),u.pipe((0,ct.U)(d=>{const l={matches:!1,breakpoints:{}};return d.forEach(({matches:n,query:i})=>{l.matches=l.matches||n,l.breakpoints[i]=n}),l}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),u={observable:new ai.y(d=>{const l=n=>this._zone.run(()=>d.next(n));return t.addListener(l),()=>{t.removeListener(l)}}).pipe(Zi(t),(0,ct.U)(({matches:d})=>({query:e,matches:d})),gt(this._destroySubject)),mql:t};return this._queries.set(e,u),u}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(og),h.LFG(h.R0b))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function sg(r){return r.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}function pl(r,a){return(r.getAttribute(a)||"").match(/\S+/g)||[]}const ca="cdk-describedby-message",ed="cdk-describedby-host";let fl=0,td=(()=>{class r{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+fl++,this._document=e,this._id=(0,h.f3M)(h.AFp)+"-"+fl++}describe(e,t,s){if(!this._canBeDescribed(e,t))return;const u=rh(t,s);"string"!=typeof t?(Py(t,this._id),this._messageRegistry.set(u,{messageElement:t,referenceCount:0})):this._messageRegistry.has(u)||this._createMessageElement(t,s),this._isElementDescribedByMessage(e,u)||this._addMessageReference(e,u)}removeDescription(e,t,s){if(!t||!this._isElementNode(e))return;const u=rh(t,s);if(this._isElementDescribedByMessage(e,u)&&this._removeMessageReference(e,u),"string"==typeof t){const d=this._messageRegistry.get(u);d&&0===d.referenceCount&&this._deleteMessageElement(u)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${ed}="${this._id}"]`);for(let t=0;t0!=s.indexOf(ca));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const s=this._messageRegistry.get(t);(function Hy(r,a,e){const t=pl(r,a);t.some(s=>s.trim()==e.trim())||(t.push(e.trim()),r.setAttribute(a,t.join(" ")))})(e,"aria-describedby",s.messageElement.id),e.setAttribute(ed,this._id),s.referenceCount++}_removeMessageReference(e,t){const s=this._messageRegistry.get(t);s.referenceCount--,function eS(r,a,e){const s=pl(r,a).filter(u=>u!=e.trim());s.length?r.setAttribute(a,s.join(" ")):r.removeAttribute(a)}(e,"aria-describedby",s.messageElement.id),e.removeAttribute(ed)}_isElementDescribedByMessage(e,t){const s=pl(e,"aria-describedby"),u=this._messageRegistry.get(t),d=u&&u.messageElement.id;return!!d&&-1!=s.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const s=null==t?"":`${t}`.trim(),u=e.getAttribute("aria-label");return!(!s||u&&u.trim()===s)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0),h.LFG(Jt))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function rh(r,a){return"string"==typeof r?`${a||""}/${r}`:r}function Py(r,a){r.id||(r.id=`${ca}-${a}-${fl++}`)}class ah extends class tS{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.x,this._typeaheadSubscription=Qt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.x,this.change=new He.x,a instanceof h.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const s=e.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Rt.b)(e=>this._pressedLetters.push(e)),(0,ng.b)(a),(0,ge.h)(()=>this._pressedLetters.length>0),(0,ct.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let s=1;s!a[u]||this._allowedModifierKeys.indexOf(u)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&s){this.setNextItemActive();break}return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&s){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&s){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}return;default:return void((s||hr(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const s=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof h.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let oh=(()=>{class r{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Zo(r){return!!(r.offsetWidth||r.offsetHeight||"function"==typeof r.getClientRects&&r.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function ky(r){try{return r.frameElement}catch{return null}}(function jy(r){return r.ownerDocument&&r.ownerDocument.defaultView||window}(e));if(t&&(-1===pg(t)||!this.isVisible(t)))return!1;let s=e.nodeName.toLowerCase(),u=pg(e);return e.hasAttribute("contenteditable")?-1!==u:!("iframe"===s||"object"===s||this._platform.WEBKIT&&this._platform.IOS&&!function Oy(r){let a=r.nodeName.toLowerCase(),e="input"===a&&r.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===s?!!e.hasAttribute("controls")&&-1!==u:"video"===s?-1!==u&&(null!==u||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function Ly(r){return!function dg(r){return function By(r){return"input"==r.nodeName.toLowerCase()}(r)&&"hidden"==r.type}(r)&&(function Vy(r){let a=r.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(r)||function id(r){return function ug(r){return"a"==r.nodeName.toLowerCase()}(r)&&r.hasAttribute("href")}(r)||r.hasAttribute("contenteditable")||hg(r))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Jt))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function hg(r){if(!r.hasAttribute("tabindex")||void 0===r.tabIndex)return!1;let a=r.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function pg(r){if(!hg(r))return null;const a=parseInt(r.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class fg{constructor(a,e,t,s,u=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,u||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const s=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(s)return s}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,Dt.q)(1)).subscribe(a)}}let sh=(()=>{class r{constructor(e,t,s){this._checker=e,this._ngZone=t,this._document=s}create(e,t=!1){return new fg(e,this._checker,this._ngZone,this._document,t)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(oh),h.LFG(h.R0b),h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function lh(r){return 0===r.buttons||0===r.offsetX&&0===r.offsetY}function kr(r){const a=r.touches&&r.touches[0]||r.changedTouches&&r.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const _g=new h.OlP("cdk-input-modality-detector-options"),bg={ignoreKeys:[18,17,224,91,16]},Li=ur({passive:!0,capture:!0});let Cg=(()=>{class r{constructor(e,t,s,u){this._platform=e,this._mostRecentTarget=null,this._modality=new $t(null),this._lastTouchMs=0,this._onKeydown=d=>{this._options?.ignoreKeys?.some(l=>l===d.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Un(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(lh(d)?"keyboard":"mouse"),this._mostRecentTarget=Un(d))},this._onTouchstart=d=>{kr(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Un(d))},this._options={...bg,...u},this.modalityDetected=this._modality.pipe(Zu(1)),this.modalityChanged=this.modalityDetected.pipe(rg()),e.isBrowser&&t.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,Li),s.addEventListener("mousedown",this._onMousedown,Li),s.addEventListener("touchstart",this._onTouchstart,Li)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Li),document.removeEventListener("mousedown",this._onMousedown,Li),document.removeEventListener("touchstart",this._onTouchstart,Li))}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Jt),h.LFG(h.R0b),h.LFG(M.K0),h.LFG(_g,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const dh=new h.OlP("cdk-focus-monitor-default-options"),uh=ur({passive:!0,capture:!0});let Tn=(()=>{class r{constructor(e,t,s,u,d){this._ngZone=e,this._platform=t,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new He.x,this._rootNodeFocusAndBlurListener=l=>{for(let i=Un(l);i;i=i.parentElement)"focus"===l.type?this._onFocus(l,i):this._onBlur(l,i)},this._document=u,this._detectionMode=d?.detectionMode||0}monitor(e,t=!1){const s=li(e);if(!this._platform.isBrowser||1!==s.nodeType)return(0,Me.of)(null);const u=Qc(s)||this._getDocument(),d=this._elementInfo.get(s);if(d)return t&&(d.checkChildren=!0),d.subject;const l={checkChildren:t,subject:new He.x,rootNode:u};return this._elementInfo.set(s,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(e){const t=li(e),s=this._elementInfo.get(t);s&&(s.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(s))}focusVia(e,t,s){const u=li(e);u===this._getDocument().activeElement?this._getClosestElementsInfo(u).forEach(([l,n])=>this._originChanged(l,t,n)):(this._setOrigin(t),"function"==typeof u.focus&&u.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const s=this._elementInfo.get(t),u=Un(e);!s||!s.checkChildren&&t!==u||this._originChanged(t,this._getFocusOrigin(u),s)}_onBlur(e,t){const s=this._elementInfo.get(t);!s||s.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(s,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,s=this._rootNodeFocusListenerCount.get(t)||0;s||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,uh),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,uh)}),this._rootNodeFocusListenerCount.set(t,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(gt(this._stopInputModalityDetector)).subscribe(u=>{this._setOrigin(u,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const s=this._rootNodeFocusListenerCount.get(t);s>1?this._rootNodeFocusListenerCount.set(t,s-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,uh),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,uh),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,s){this._setClasses(e,t),this._emitOrigin(s,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((s,u)=>{(u===e||s.checkChildren&&u.contains(e))&&t.push([u,s])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:s}=this._inputModalityDetector;if("mouse"!==s||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const u=e.labels;if(u)for(let d=0;d{class r{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,h.f3M)(nh).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,s=t&&t.getComputedStyle?t.getComputedStyle(e):null,u=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),u){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(bl,gl,_l),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(bl,gl):2===t&&e.add(bl,_l)}}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Jt),h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),$a=(()=>{class r{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(nd))},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[hl]}),r})();const rS=new h.OlP("cdk-dir-doc",{providedIn:"root",factory:function qy(){return(0,h.f3M)(M.K0)}}),zy=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Sn=(()=>{class r{constructor(e){if(this.value="ltr",this.change=new h.vpe,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function Gy(r){const a=r?.toLowerCase()||"";return"auto"===a&&typeof navigator<"u"&&navigator?.language?zy.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(rS,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Cl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})();const cS=new h.OlP("mat-sanity-checks",{providedIn:"root",factory:function lS(){return!0}});let Qe=(()=>{class r{constructor(e,t,s){this._sanityChecks=t,this._document=s,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!qu()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(nd),h.LFG(cS,8),h.LFG(M.K0))},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Cl,Cl]}),r})();function wl(r){return class extends r{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=ze(a)}}}function zi(r,a){return class extends r{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function pr(r){return class extends r{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=ze(a)}}}function hh(r){return class extends r{constructor(...a){super(...a),this.errorState=!1}updateErrorState(){const a=this.errorState,u=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);u!==a&&(this.errorState=u,this.stateChanges.next())}}}const xg=new h.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function ph(){return(0,h.f3M)(h.soG)}});class Nn{constructor(){this._localeChanges=new He.x,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),s=this.isValid(e);return t&&s?!this.compareDate(a,e):t==s}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const qn=new h.OlP("mat-date-formats"),Tg=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function fh(r,a){const e=Array(r);for(let t=0;t{class r extends Nn{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return fh(12,s=>this._format(t,new Date(2017,s,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return fh(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return fh(7,s=>this._format(t,new Date(2017,0,s+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,s){let u=this._createDateWithOverflow(e,t,s);return u.getMonth(),u}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const s=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(s,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let s=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(s)!=((this.getMonth(e)+t)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Tg.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,s){const u=new Date;return u.setFullYear(e,t,s),u.setHours(0,0,0,0),u}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const s=new Date;return s.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),s.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(s)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(xg,8),h.LFG(Jt))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();const Jy={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Sg=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[{provide:Nn,useClass:rd}]}),r})(),Eg=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[{provide:qn,useValue:Jy}],imports:[Sg]}),r})(),ua=(()=>{class r{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Qa=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Qe,Qe]}),r})();class vl{constructor(a,e,t,s=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Mg={enterDuration:225,exitDuration:150},ad=ur({passive:!0}),od=["mousedown","touchstart"],sd=["mouseup","mouseleave","touchend","touchcancel"];class gh{constructor(a,e,t,s){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=li(t))}fadeInRipple(a,e,t={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),u={...Mg,...t.animation};t.centered&&(a=s.left+s.width/2,e=s.top+s.height/2);const d=t.radius||function _h(r,a,e){const t=Math.max(Math.abs(r-e.left),Math.abs(r-e.right)),s=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+s*s)}(a,e,s),l=a-s.left,n=e-s.top,i=u.enterDuration,o=document.createElement("div");o.classList.add("mat-ripple-element"),o.style.left=l-d+"px",o.style.top=n-d+"px",o.style.height=2*d+"px",o.style.width=2*d+"px",null!=t.color&&(o.style.backgroundColor=t.color),o.style.transitionDuration=`${i}ms`,this._containerElement.appendChild(o);const c=window.getComputedStyle(o),m=c.transitionDuration,g="none"===c.transitionProperty||"0s"===m||"0s, 0s"===m,f=new vl(this,o,t,g);o.style.transform="scale3d(1, 1, 1)",f.state=0,t.persistent||(this._mostRecentTransientRipple=f);let w=null;return!g&&(i||u.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const R=()=>this._finishRippleTransition(f),J=()=>this._destroyRipple(f);o.addEventListener("transitionend",R),o.addEventListener("transitioncancel",J),w={onTransitionEnd:R,onTransitionCancel:J}}),this._activeRipples.set(f,w),(g||!i)&&this._finishRippleTransition(f),f}fadeOutRipple(a){if(2===a.state||3===a.state)return;const e=a.element,t={...Mg,...a.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=2,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=li(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(od))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(sd),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)}_startFadeOutTransition(a){const e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=1,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){const e=this._activeRipples.get(a)??null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=3,null!==e&&(a.element.removeEventListener("transitionend",e.onTransitionEnd),a.element.removeEventListener("transitioncancel",e.onTransitionCancel)),a.element.remove()}_onMousedown(a){const e=lh(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,ad)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(od.forEach(a=>{this._triggerElement.removeEventListener(a,this,ad)}),this._pointerUpEventsRegistered&&sd.forEach(a=>{this._triggerElement.removeEventListener(a,this,ad)}))}}const Hg=new h.OlP("mat-ripple-global-options");let Ya=(()=>{class r{constructor(e,t,s,u,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=u||{},this._rippleRenderer=new gh(this,t,e,s)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,s){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...s}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(Jt),h.Y36(Hg,8),h.Y36(h.QbO,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&h.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),r})(),En=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Qe,Qe]}),r})(),bh=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Qe]}),r})(),Ch=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[En,M.ez,Qe,bh]}),r})();const Ig=["mat-button",""],tv=["*"],rv=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],kg=zi(wl(pr(class{constructor(r){this._elementRef=r}})));let ji=(()=>{class r extends kg{constructor(e,t,s){super(e),this._focusMonitor=t,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const u of rv)this._hasHostAttributes(u)&&this._getHostElement().classList.add(u);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(Tn),h.Y36(h.QbO,8))},r.\u0275cmp=h.Xpm({type:r,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&h.Gf(Ya,5),2&e){let s;h.iGM(s=h.CRH())&&(t.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(h.uIk("disabled",t.disabled||null),h.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[h.qOj],attrs:Ig,ngContentSelectors:tv,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(h.F$t(),h.TgZ(0,"span",0),h.Hsn(1),h.qZA(),h._UZ(2,"span",1)(3,"span",2)),2&e&&(h.xp6(2),h.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),h.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Ya],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),r})(),vi=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[En,Qe,Qe]}),r})();var wh=E(1144);const av=["addListener","removeListener"],ov=["addEventListener","removeEventListener"],_S=["on","off"];function Ja(r,a,e,t){if((0,It.m)(e)&&(t=e,e=void 0),t)return Ja(r,a,e).pipe((0,Ma.Z)(t));const[s,u]=function yh(r){return(0,It.m)(r.addEventListener)&&(0,It.m)(r.removeEventListener)}(r)?ov.map(d=>l=>r[d](a,l,e)):function sv(r){return(0,It.m)(r.addListener)&&(0,It.m)(r.removeListener)}(r)?av.map(Vg(r,a)):function lv(r){return(0,It.m)(r.on)&&(0,It.m)(r.off)}(r)?_S.map(Vg(r,a)):[];if(!s&&(0,wh.z)(r))return(0,Hi.z)(d=>Ja(d,a,e))((0,In.Xf)(r));if(!s)throw new TypeError("Invalid event target");return new ai.y(d=>{const l=(...n)=>d.next(1u(l)})}function Vg(r,a){return e=>t=>r[e](a,t)}var Bg=E(4408);const Al={schedule(r){let a=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=Al;t&&(a=t.requestAnimationFrame,e=t.cancelAnimationFrame);const s=a(u=>{e=void 0,r(u)});return new Qt.w0(()=>e?.(s))},requestAnimationFrame(...r){const{delegate:a}=Al;return(a?.requestAnimationFrame||requestAnimationFrame)(...r)},cancelAnimationFrame(...r){const{delegate:a}=Al;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...r)},delegate:void 0};var cd=E(7565);const vh=new class cv extends cd.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;a=a||t.shift();do{if(s=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,s){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw s}}}(class ld extends Bg.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=Al.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(s=>s.id===e)||(Al.cancelAnimationFrame(e),a._scheduled=void 0)}});let jg,Lg=1;const Ah={};function dd(r){return r in Ah&&(delete Ah[r],!0)}const bS={setImmediate(r){const a=Lg++;return Ah[a]=!0,jg||(jg=Promise.resolve()),jg.then(()=>dd(a)&&r()),a},clearImmediate(r){dd(r)}},{setImmediate:Fg,clearImmediate:Ug}=bS,xl={setImmediate(...r){const{delegate:a}=xl;return(a?.setImmediate||Fg)(...r)},clearImmediate(r){const{delegate:a}=xl;return(a?.clearImmediate||Ug)(r)},delegate:void 0},zn=new class xh extends cd.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;a=a||t.shift();do{if(s=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,s){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw s}}}(class Ng extends Bg.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=xl.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(s=>s.id===e)||(xl.clearImmediate(e),a._scheduled=void 0)}});var Tl=E(4986),qg=E(2805);function es(r,a=Tl.z){return function Sl(r){return(0,fn.e)((a,e)=>{let t=!1,s=null,u=null,d=!1;const l=()=>{if(u?.unsubscribe(),u=null,t){t=!1;const i=s;s=null,e.next(i)}d&&e.complete()},n=()=>{u=null,d&&e.complete()};a.subscribe((0,Xe.x)(e,i=>{t=!0,s=i,u||(0,In.Xf)(r(i)).subscribe(u=(0,Xe.x)(e,l,n))},()=>{d=!0,(!t||!u||u.closed)&&e.complete()}))})}(()=>(0,qg.H)(r,a))}class Gg{}function El(r){return r&&"function"==typeof r.connect}class Ml extends Gg{constructor(a){super(),this._data=a}connect(){return Kt(this._data)?this._data:(0,Me.of)(this._data)}disconnect(){}}class Wg{applyChanges(a,e,t,s,u){a.forEachOperation((d,l,n)=>{let i,o;if(null==d.previousIndex){const c=t(d,l,n);i=e.createEmbeddedView(c.templateRef,c.context,c.index),o=1}else null==n?(e.remove(l),o=3):(i=e.get(l),e.move(i,n),o=2);u&&u({context:i?.context,operation:o,record:d})})}detach(){}}class $g{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(a,e,t,s,u){a.forEachOperation((d,l,n)=>{let i,o;null==d.previousIndex?(i=this._insertView(()=>t(d,l,n),n,e,s(d)),o=i?1:0):null==n?(this._detachAndCacheView(l,e),o=3):(i=this._moveView(l,n,e,s(d)),o=2),u&&u({context:i?.context,operation:o,record:d})})}detach(){for(const a of this._viewCache)a.destroy();this._viewCache=[]}_insertView(a,e,t,s){const u=this._insertViewFromCache(e,t);if(u)return void(u.context.$implicit=s);const d=a();return t.createEmbeddedView(d.templateRef,d.context,d.index)}_detachAndCacheView(a,e){const t=e.detach(a);this._maybeCacheView(t,e)}_moveView(a,e,t,s){const u=t.get(a);return t.move(u,e),u.context.$implicit=s,u}_maybeCacheView(a,e){if(this._viewCache.length0?u/this._itemSize:0;if(e.end>s){const n=Math.ceil(t/this._itemSize),i=Math.max(0,Math.min(d,s-n));d!=i&&(d=i,u=i*this._itemSize,e.start=Math.floor(d)),e.end=Math.max(0,Math.min(s,e.start+n))}const l=u-e.start*this._itemSize;if(l0&&(e.end=Math.min(s,e.end+i),e.start=Math.max(0,Math.floor(d-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(d))}}function Eh(r){return r._scrollStrategy}let fv=(()=>{class r{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Qg(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=Pi(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=Pi(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=Pi(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[h._Bn([{provide:pv,useFactory:Eh,deps:[(0,h.Gpc)(()=>r)]}]),h.TTD]}),r})(),Dl=(()=>{class r{constructor(e,t,s){this._ngZone=e,this._platform=t,this._scrolled=new He.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ai.y(t=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(es(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Me.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const s=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,ge.h)(u=>!u||s.indexOf(u)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((s,u)=>{this._scrollableContainsElement(u,e)&&t.push(u)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let s=li(t),u=e.getElementRef().nativeElement;do{if(s==u)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ja(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(h.R0b),h.LFG(Jt),h.LFG(M.K0,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Yg=(()=>{class r{constructor(e,t,s,u){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=s,this.dir=u,this._destroyed=new He.x,this._elementScrolled=new ai.y(d=>this.ngZone.runOutsideAngular(()=>Ja(this.elementRef.nativeElement,"scroll").pipe(gt(this._destroyed)).subscribe(d)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),s&&0!=al()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==al()?e.left=e.right:1==al()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;Om()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",s="right",u=this.elementRef.nativeElement;if("top"==e)return u.scrollTop;if("bottom"==e)return u.scrollHeight-u.clientHeight-u.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?s:t:"end"==e&&(e=d?t:s),d&&2==al()?e==t?u.scrollWidth-u.clientWidth-u.scrollLeft:u.scrollLeft:d&&1==al()?e==t?u.scrollLeft+u.scrollWidth-u.clientWidth:-u.scrollLeft:e==t?u.scrollLeft:u.scrollWidth-u.clientWidth-u.scrollLeft}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(Dl),h.Y36(h.R0b),h.Y36(Sn,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),r})(),ts=(()=>{class r{constructor(e,t,s){this._platform=e,this._change=new He.x,this._changeListener=u=>{this._change.next(u)},this._document=s,t.runOutsideAngular(()=>{if(e.isBrowser){const u=this._getWindow();u.addEventListener("resize",this._changeListener),u.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+t,height:s,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),s=e.documentElement,u=s.getBoundingClientRect();return{top:-u.top||e.body.scrollTop||t.scrollY||s.scrollTop||0,left:-u.left||e.body.scrollLeft||t.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(es(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Jt),h.LFG(h.R0b),h.LFG(M.K0,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const gv=new h.OlP("VIRTUAL_SCROLLABLE");let Jg=(()=>{class r extends Yg{constructor(e,t,s,u){super(e,t,s,u)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(Dl),h.Y36(h.R0b),h.Y36(Sn,8))},r.\u0275dir=h.lG2({type:r,features:[h.qOj]}),r})();const Za=typeof requestAnimationFrame<"u"?vh:zn;let _v=(()=>{class r extends Jg{constructor(e,t,s,u,d,l,n,i){super(e,l,s,d),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=u,this.scrollable=i,this._detachedSubject=new He.x,this._renderedRangeSubject=new He.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ai.y(o=>this._scrollStrategy.scrolledIndexChange.subscribe(c=>Promise.resolve().then(()=>this.ngZone.run(()=>o.next(c))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Qt.w0.EMPTY,this._viewportChanges=n.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=ze(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Zi(null),es(0,Za)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(gt(this._detachedSubject)).subscribe(t=>{const s=t.length;s!==this._dataLength&&(this._dataLength=s,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function ud(r,a){return r.start==a.start&&r.end==a.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const u="horizontal"==this.orientation,d=u?"X":"Y";let n=`translate${d}(${Number((u&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(n+=` translate${d}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=n&&(this._renderedContentTransform=n,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const s={behavior:t};"horizontal"===this.orientation?s.start=e:s.top=e,this.scrollable.scrollTo(s)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?s=>super.measureScrollOffset(s):s=>this.scrollable.measureScrollOffset(s),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const s="left",u="right",d="rtl"==this.dir?.value;t="start"==e?d?u:s:"end"==e?d?s:u:e||("horizontal"===this.orientation?"left":"top");const l=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-l}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(h.sBO),h.Y36(h.R0b),h.Y36(pv,8),h.Y36(Sn,8),h.Y36(Dl),h.Y36(ts),h.Y36(gv,8))},r.\u0275cmp=h.Xpm({type:r,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&h.Gf(uv,7),2&e){let s;h.iGM(s=h.CRH())&&(t._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&h.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[h._Bn([{provide:Yg,useFactory:(a,e)=>a||e,deps:[Jg,r]}]),h.qOj],ngContentSelectors:hv,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(h.F$t(),h.TgZ(0,"div",0,1),h.Hsn(2),h.qZA(),h._UZ(3,"div",2)),2&e&&(h.xp6(3),h.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),r})();function is(r,a,e){if(!e.getBoundingClientRect)return 0;const s=e.getBoundingClientRect();return"horizontal"===r?"start"===a?s.left:s.right:"start"===a?s.top:s.bottom}let bv=(()=>{class r{constructor(e,t,s,u,d,l){this._viewContainerRef=e,this._template=t,this._differs=s,this._viewRepeater=u,this._viewport=d,this.viewChange=new He.x,this._dataSourceChanges=new He.x,this.dataStream=this._dataSourceChanges.pipe(Zi(null),function zg(){return(0,fn.e)((r,a)=>{let e,t=!1;r.subscribe((0,Xe.x)(a,s=>{const u=e;e=s,t&&a.next([u,s]),t=!0}))})}(),(0,oi.w)(([n,i])=>this._changeDataSource(n,i)),Ht(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new He.x,this.dataStream.subscribe(n=>{this._data=n,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(gt(this._destroyed)).subscribe(n=>{this._renderedRange=n,this.viewChange.observers.length&&l.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,El(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new Ml(Kt(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,s)=>e(t+(this._renderedRange?this._renderedRange.start:0),s):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Pi(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const s=e.start-this._renderedRange.start,u=e.end-e.start;let d,l;for(let n=0;n-1;n--){const i=this._viewContainerRef.get(n+s);if(i&&i.rootNodes.length){l=i.rootNodes[i.rootNodes.length-1];break}}return d&&l?is(t,"end",l)-is(t,"start",d):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,Me.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const s=this._viewContainerRef.get(t);s.context.index=this._renderedRange.start+t,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(u,d,l)=>this._getEmbeddedViewArgs(u,l),u=>u.item),e.forEachIdentityChange(u=>{this._viewContainerRef.get(u.currentIndex).context.$implicit=u.item});const t=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const u=this._viewContainerRef.get(s);u.context.index=this._renderedRange.start+s,u.context.count=t,this._updateComputedContextProperties(u.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.s_b),h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(Ka),h.Y36(_v,4),h.Y36(h.R0b))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[h._Bn([{provide:Ka,useClass:$g}])]}),r})(),Vr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})(),Gi=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Cl,Vr,Cl,Vr]}),r})();class ha{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class Br extends ha{constructor(a,e,t,s){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=s}}class pa extends ha{constructor(a,e,t,s){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=s}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class rs extends ha{constructor(a){super(),this.element=a instanceof h.SBq?a.nativeElement:a}}class fa{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof Br?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof pa?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof rs?(this._attachedPortal=a,this.attachDomPortal(a)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class as extends fa{constructor(a,e,t,s,u){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=s,this.attachDomPortal=d=>{const l=d.element,n=this._document.createComment("dom-portal");l.parentNode.insertBefore(n,l),this.outletElement.appendChild(l),this._attachedPortal=d,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(l,n)})},this._document=u}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let s;return a.viewContainerRef?(s=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=t.create(a.injector||this._defaultInjector||h.zs3.NULL),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=a,s}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(s=>this.outletElement.appendChild(s)),t.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(t);-1!==s&&e.remove(s)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let pd=(()=>{class r extends fa{constructor(e,t,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new h.vpe,this.attachDomPortal=u=>{const d=u.element,l=this._document.createComment("dom-portal");u.setAttachedHost(this),d.parentNode.insertBefore(l,d),this._getRootNode().appendChild(d),this._attachedPortal=u,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(d,l)})},this._document=s}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,u=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(u,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]),super.setDisposeFn(()=>d.destroy()),this._attachedPortal=e,this._attachedRef=d,this.attached.emit(d),d}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h._Vd),h.Y36(h.s_b),h.Y36(M.K0))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[h.qOj]}),r})(),Or=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})();var an=E(6451);const Hh=Om();class Xg{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=mi(-this._previousScrollPosition.left),a.style.top=mi(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,s=this._document.body.style,u=t.scrollBehavior||"",d=s.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),Hh&&(t.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Hh&&(t.scrollBehavior=u,s.scrollBehavior=d)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class Av{constructor(a,e,t,s){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class e_{enable(){}disable(){}attach(){}}function Rh(r,a){return a.some(e=>r.bottome.bottom||r.righte.right)}function Ph(r,a){return a.some(e=>r.tope.bottom||r.lefte.right)}class xv{constructor(a,e,t,s){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=s,this._scrollSubscription=null}attach(a){this._overlayRef=a}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:s}=this._viewportRuler.getViewportSize();Rh(e,[{width:t,height:s,bottom:s,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let t_=(()=>{class r{constructor(e,t,s,u){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=s,this.noop=()=>new e_,this.close=d=>new Av(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new Xg(this._viewportRuler,this._document),this.reposition=d=>new xv(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=u}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Dl),h.LFG(ts),h.LFG(h.R0b),h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Il{constructor(a){if(this.scrollStrategy=new e_,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class fd{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}let r_=(()=>{class r{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),md=(()=>{class r extends r_{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=s=>{const u=this._attachedOverlays;for(let d=u.length-1;d>-1;d--)if(u[d]._keydownEvents.observers.length>0){const l=u[d]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0),h.LFG(h.R0b,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),gd=(()=>{class r extends r_{constructor(e,t,s){super(e),this._platform=t,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=u=>{this._pointerDownEventTarget=Un(u)},this._clickListener=u=>{const d=Un(u),l="click"===u.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:d;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const o=n[i];if(o._outsidePointerEvents.observers.length<1||!o.hasAttached())continue;if(o.overlayElement.contains(d)||o.overlayElement.contains(l))break;const c=o._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(u)):c.next(u)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0),h.LFG(Jt),h.LFG(h.R0b,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),os=(()=>{class r{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||qu()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let u=0;uthis._backdropClick.next(c),this._backdropTransitionendHandler=c=>{this._disposeBackdrop(c.target)},this._keydownEvents=new He.x,this._outsidePointerEvents=new He.x,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Dt.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){const a=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,a&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config={...this._config,...a},this._updateElementSize()}setDirection(a){this._config={...this._config,direction:a},this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=mi(this._config.width),a.height=mi(this._config.height),a.minWidth=mi(this._config.minWidth),a.minHeight=mi(this._config.minHeight),a.maxWidth=mi(this._config.maxWidth),a.maxHeight=mi(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(a){if(this._animationsDisabled)return void this._disposeBackdrop(a);a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",this._backdropTransitionendHandler)}),a.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(a)},500))}}_toggleClasses(a,e,t){const s=Xc(e||[]).filter(u=>!!u);s.length&&(t?a.classList.add(...s):a.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(gt((0,an.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const _d="cdk-overlay-connected-position-bounding-box",a_=/([A-Za-z%]+)$/;class o_{constructor(a,e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new He.x,this._resizeSubscription=Qt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(a)}get positions(){return this._preferredPositions}attach(a){this._validatePositions(),a.hostElement.classList.add(_d),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,s=this._containerRect,u=[];let d;for(let l of this._preferredPositions){let n=this._getOriginPoint(a,s,l),i=this._getOverlayPoint(n,e,l),o=this._getOverlayFit(i,e,t,l);if(o.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,n);this._canFitWithFlexibleDimensions(o,i,t)?u.push({position:l,origin:n,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(n,l)}):(!d||d.overlayFit.visibleArean&&(n=o,l=i)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(d.position,d.originPoint);this._applyPosition(d.position,d.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Lr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(_d),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let s,u;if("center"==t.originX)s=a.left+a.width/2;else{const d=this._isRtl()?a.right:a.left,l=this._isRtl()?a.left:a.right;s="start"==t.originX?d:l}return e.left<0&&(s-=e.left),u="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(u-=e.top),{x:s,y:u}}_getOverlayPoint(a,e,t){let s,u;return s="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,u="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+s,y:a.y+u}}_getOverlayFit(a,e,t,s){const u=s_(e);let{x:d,y:l}=a,n=this._getOffset(s,"x"),i=this._getOffset(s,"y");n&&(d+=n),i&&(l+=i);let p=0-l,m=l+u.height-t.height,g=this._subtractOverflows(u.width,0-d,d+u.width-t.width),f=this._subtractOverflows(u.height,p,m),w=g*f;return{visibleArea:w,isCompletelyWithinViewport:u.width*u.height===w,fitsInViewportVertically:f===u.height,fitsInViewportHorizontally:g==u.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const s=t.bottom-e.y,u=t.right-e.x,d=bd(this._overlayRef.getConfig().minHeight),l=bd(this._overlayRef.getConfig().minWidth),i=a.fitsInViewportHorizontally||null!=l&&l<=u;return(a.fitsInViewportVertically||null!=d&&d<=s)&&i}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const s=s_(e),u=this._viewportRect,d=Math.max(a.x+s.width-u.width,0),l=Math.max(a.y+s.height-u.height,0),n=Math.max(u.top-t.top-a.y,0),i=Math.max(u.left-t.left-a.x,0);let o=0,c=0;return o=s.width<=u.width?i||-d:a.xg&&!this._isInitialRender&&!this._growAfterOpen&&(d=a.y-g/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)p=t.width-a.x+this._viewportMargin,o=a.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)c=a.x,o=t.right-a.x;else{const m=Math.min(t.right-a.x+t.left,a.x),g=this._lastBoundingBoxSize.width;o=2*m,c=a.x-m,o>g&&!this._isInitialRender&&!this._growAfterOpen&&(c=a.x-g/2)}return{top:d,left:c,bottom:l,right:p,width:o,height:u}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const u=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;s.height=mi(t.height),s.top=mi(t.top),s.bottom=mi(t.bottom),s.width=mi(t.width),s.left=mi(t.left),s.right=mi(t.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",u&&(s.maxHeight=mi(u)),d&&(s.maxWidth=mi(d))}this._lastBoundingBoxSize=t,Lr(this._boundingBox.style,s)}_resetBoundingBoxStyles(){Lr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Lr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},s=this._hasExactPosition(),u=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(s){const o=this._viewportRuler.getViewportScrollPosition();Lr(t,this._getExactOverlayY(e,a,o)),Lr(t,this._getExactOverlayX(e,a,o))}else t.position="static";let l="",n=this._getOffset(e,"x"),i=this._getOffset(e,"y");n&&(l+=`translateX(${n}px) `),i&&(l+=`translateY(${i}px)`),t.transform=l.trim(),d.maxHeight&&(s?t.maxHeight=mi(d.maxHeight):u&&(t.maxHeight="")),d.maxWidth&&(s?t.maxWidth=mi(d.maxWidth):u&&(t.maxWidth="")),Lr(this._pane.style,t)}_getExactOverlayY(a,e,t){let s={top:"",bottom:""},u=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),"bottom"===a.overlayY?s.bottom=this._document.documentElement.clientHeight-(u.y+this._overlayRect.height)+"px":s.top=mi(u.y),s}_getExactOverlayX(a,e,t){let d,s={left:"",right:""},u=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),d=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===d?s.right=this._document.documentElement.clientWidth-(u.x+this._overlayRect.width)+"px":s.left=mi(u.x),s}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ph(a,t),isOriginOutsideView:Rh(a,t),isOverlayClipped:Ph(e,t),isOverlayOutsideView:Rh(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,s)=>t-Math.max(s,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?a.offsetX??this._offsetX:a.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&Xc(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof h.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function Lr(r,a){for(let e in a)a.hasOwnProperty(e)&&(r[e]=a[e]);return r}function bd(r){if("number"!=typeof r&&null!=r){const[a,e]=r.split(a_);return e&&"px"!==e?null:parseFloat(a)}return r||null}function s_(r){return{top:Math.floor(r.top),right:Math.floor(r.right),bottom:Math.floor(r.bottom),left:Math.floor(r.left),width:Math.floor(r.width),height:Math.floor(r.height)}}const kh="cdk-global-overlay-wrapper";class l_{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(kh),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:s,height:u,maxWidth:d,maxHeight:l}=t,n=!("100%"!==s&&"100vw"!==s||d&&"100%"!==d&&"100vw"!==d),i=!("100%"!==u&&"100vh"!==u||l&&"100%"!==l&&"100vh"!==l),o=this._xPosition,c=this._xOffset,p="rtl"===this._overlayRef.getConfig().direction;let m="",g="",f="";n?f="flex-start":"center"===o?(f="center",p?g=c:m=c):p?"left"===o||"end"===o?(f="flex-end",m=c):("right"===o||"start"===o)&&(f="flex-start",g=c):"left"===o||"start"===o?(f="flex-start",m=c):("right"===o||"end"===o)&&(f="flex-end",g=c),a.position=this._cssPosition,a.marginLeft=n?"0":m,a.marginTop=i?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=n?"0":g,e.justifyContent=f,e.alignItems=i?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(kh),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let Ev=(()=>{class r{constructor(e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u}global(){return new l_}flexibleConnectedTo(e){return new o_(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(ts),h.LFG(M.K0),h.LFG(Jt),h.LFG(os))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),c_=0,_n=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c,p,m){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=s,this._positionBuilder=u,this._keyboardDispatcher=d,this._injector=l,this._ngZone=n,this._document=i,this._directionality=o,this._location=c,this._outsideClickDispatcher=p,this._animationsModuleType=m}create(e){const t=this._createHostElement(),s=this._createPaneElement(t),u=this._createPortalOutlet(s),d=new Il(e);return d.direction=d.direction||this._directionality.value,new ss(u,t,s,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+c_++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(h.z2F)),new as(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(t_),h.LFG(os),h.LFG(h._Vd),h.LFG(Ev),h.LFG(md),h.LFG(h.zs3),h.LFG(h.R0b),h.LFG(M.K0),h.LFG(Sn),h.LFG(M.Ye),h.LFG(gd),h.LFG(h.QbO,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();const h_={provide:new h.OlP("cdk-connected-overlay-scroll-strategy"),deps:[_n],useFactory:function u_(r){return()=>r.scrollStrategies.reposition()}};let Xa=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[_n,h_],imports:[Cl,Or,Gi,Gi]}),r})();class Bh{}const ma="*";function ci(r,a){return{type:7,name:r,definitions:a,options:{}}}function vt(r,a=null){return{type:4,styles:a,timings:r}}function Oh(r,a=null){return{type:3,steps:r,options:a}}function f_(r,a=null){return{type:2,steps:r,options:a}}function Ie(r){return{type:6,styles:r,offset:null}}function mt(r,a,e){return{type:0,name:r,styles:a,options:e}}function bt(r,a,e=null){return{type:1,expr:r,animation:a,options:e}}function Cd(r=null){return{type:9,options:r}}function kl(r,a,e=null){return{type:11,selector:r,animation:a,options:e}}function m_(r){Promise.resolve(null).then(r)}class Bl{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m_(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Lh{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,s=0;const u=this.players.length;0==u?m_(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==u&&this._onFinish()}),d.onDestroy(()=>{++t==u&&this._onDestroy()}),d.onStart(()=>{++s==u&&this._onStart()})}),this.totalTime=this.players.reduce((d,l)=>Math.max(d,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const s=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(s)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const g_=["connectionContainer"],vS=["inputContainer"],Fh=["label"];function Uh(r,a){1&r&&(h.ynx(0),h.TgZ(1,"div",14),h._UZ(2,"div",15)(3,"div",16)(4,"div",17),h.qZA(),h.TgZ(5,"div",18),h._UZ(6,"div",15)(7,"div",16)(8,"div",17),h.qZA(),h.BQk())}function mr(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"div",19),h.NdJ("cdkObserveContent",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.updateOutlineGap())}),h.Hsn(1,1),h.qZA()}if(2&r){const e=h.oxw();h.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Iv(r,a){if(1&r&&(h.ynx(0),h.Hsn(1,2),h.TgZ(2,"span"),h._uU(3),h.qZA(),h.BQk()),2&r){const e=h.oxw(2);h.xp6(3),h.Oqu(e._control.placeholder)}}function __(r,a){1&r&&h.Hsn(0,3,["*ngSwitchCase","true"])}function gr(r,a){1&r&&(h.TgZ(0,"span",23),h._uU(1," *"),h.qZA())}function Wn(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"label",20,21),h.NdJ("cdkObserveContent",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.updateOutlineGap())}),h.YNc(2,Iv,4,1,"ng-container",12),h.YNc(3,__,1,0,"ng-content",12),h.YNc(4,gr,2,0,"span",22),h.qZA()}if(2&r){const e=h.oxw();h.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),h.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),h.uIk("for",e._control.id)("aria-owns",e._control.id),h.xp6(2),h.Q6J("ngSwitchCase",!1),h.xp6(1),h.Q6J("ngSwitchCase",!0),h.xp6(1),h.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function $n(r,a){1&r&&(h.TgZ(0,"div",24),h.Hsn(1,4),h.qZA())}function b_(r,a){if(1&r&&(h.TgZ(0,"div",25),h._UZ(1,"span",26),h.qZA()),2&r){const e=h.oxw();h.xp6(1),h.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function C_(r,a){if(1&r&&(h.TgZ(0,"div"),h.Hsn(1,5),h.qZA()),2&r){const e=h.oxw();h.Q6J("@transitionMessages",e._subscriptAnimationState)}}function kv(r,a){if(1&r&&(h.TgZ(0,"div",30),h._uU(1),h.qZA()),2&r){const e=h.oxw(2);h.Q6J("id",e._hintLabelId),h.xp6(1),h.Oqu(e.hintLabel)}}function Vv(r,a){if(1&r&&(h.TgZ(0,"div",27),h.YNc(1,kv,2,2,"div",28),h.Hsn(2,6),h._UZ(3,"div",29),h.Hsn(4,7),h.qZA()),2&r){const e=h.oxw();h.Q6J("@transitionMessages",e._subscriptAnimationState),h.xp6(1),h.Q6J("ngIf",e.hintLabel)}}const Bv=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ov=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Nh=0;const ls=new h.OlP("MatError");let qh=(()=>{class r{constructor(e,t){this.id="mat-error-"+Nh++,e||t.nativeElement.setAttribute("aria-live","polite")}}return r.\u0275fac=function(e){return new(e||r)(h.$8M("aria-live"),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&h.uIk("id",t.id)},inputs:{id:"id"},features:[h._Bn([{provide:ls,useExisting:r}])]}),r})();const w_={transitionMessages:ci("transitionMessages",[mt("enter",Ie({opacity:1,transform:"translateY(0%)"})),bt("void => enter",[Ie({opacity:0,transform:"translateY(-5px)"}),vt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let wd=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r}),r})(),Fv=0;const Gh=new h.OlP("MatHint");let y_=(()=>{class r{constructor(){this.align="start",this.id="mat-hint-"+Fv++}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(h.uIk("id",t.id)("align",null),h.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[h._Bn([{provide:Gh,useExisting:r}])]}),r})(),cs=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r,selectors:[["mat-label"]]}),r})(),yd=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r,selectors:[["mat-placeholder"]]}),r})();const Wh=new h.OlP("MatPrefix"),A_=new h.OlP("MatSuffix");let $h=0;const S_=zi(class{constructor(r){this._elementRef=r}},"primary"),E_=new h.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Yh=new h.OlP("MatFormField");let Jh=(()=>{class r extends S_{constructor(e,t,s,u,d,l,n){super(e),this._changeDetectorRef=t,this._dir=s,this._defaults=u,this._platform=d,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+$h++,this._labelId="mat-form-field-label-"+$h++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==n,this.appearance=u?.appearance||"legacy",u&&(this._hideRequiredMarker=Boolean(u.hideRequiredMarker),u.color&&(this.color=this.defaultColor=u.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ze(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Zi(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(gt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(gt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,an.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Zi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Zi(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(gt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Ja(this._label.nativeElement,"transitionend").pipe((0,Dt.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(u=>"start"===u.align):null,s=this._hintChildren?this._hintChildren.find(u=>"end"===u.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),s&&e.push(s.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",u=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const o=t.querySelectorAll(`${s}, ${u}`);for(let c=0;c0?.75*g+10:0}for(let o=0;o{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[M.ez,Qe,hl,Qe]}),r})();const Zh={provide:new h.OlP("mat-select-scroll-strategy"),deps:[_n],useFactory:function D_(r){return()=>r.scrollStrategies.reposition()}};let us=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[Zh],imports:[M.ez,Xa,Ch,Qe,Vr,to,Ch,Qe]}),r})();const OS=["tooltip"],Jv="tooltip-panel",Je=ur({passive:!0}),P_=new h.OlP("mat-tooltip-scroll-strategy"),Zv={provide:P_,deps:[_n],useFactory:function hs(r){return()=>r.scrollStrategies.reposition({scrollThrottle:20})}},vd=new h.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Ad(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let ii=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c,p,m){this._overlay=e,this._elementRef=t,this._scrollDispatcher=s,this._viewContainerRef=u,this._ngZone=d,this._platform=l,this._ariaDescriber=n,this._focusMonitor=i,this._dir=c,this._defaultOptions=p,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new He.x,this._scrollStrategy=o,this._document=m,p&&(p.position&&(this.position=p.position),p.touchGestures&&(this.touchGestures=p.touchGestures)),c.change.pipe(gt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=ze(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Pi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Pi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(gt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,s])=>{e.removeEventListener(t,s,Je)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new Br(this._tooltipComponent,this._viewContainerRef);const s=this._tooltipInstance=t.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(gt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(gt(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${Jv}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(gt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(gt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(gt(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!hr(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,s=this._getOrigin(),u=this._getOverlayPosition();t.withPositions([this._addOffset({...s.main,...u.main}),this._addOffset({...s.fallback,...u.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let s;"above"==t||"below"==t?s={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?s={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(s={originX:"end",originY:"center"});const{x:u,y:d}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:u,originY:d}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let s;"above"==t?s={overlayX:"center",overlayY:"bottom"}:"below"==t?s={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?s={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(s={overlayX:"start",overlayY:"center"});const{x:u,y:d}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:u,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Dt.q)(1),gt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:s,originY:u}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===t&&"top"===u?"above":"below",d!==this._currentPosition){const l=this._overlayRef;if(l){const n=`${this._cssClassPrefix}-${Jv}-`;l.removePanelClass(n+this._currentPosition),l.addPanelClass(n+d)}this._currentPosition=d}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const s=t.relatedTarget;(!s||!this._overlayRef?.overlayElement.contains(s))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,s])=>{this._elementRef.nativeElement.addEventListener(t,s,Je)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;t!==s&&!s.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,s=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===e||!t.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return r.\u0275fac=function(e){h.$Z()},r.\u0275dir=h.lG2({type:r,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),r})(),I_=(()=>{class r extends ii{constructor(e,t,s,u,d,l,n,i,o,c,p,m){super(e,t,s,u,d,l,n,i,o,c,p,m),this._tooltipComponent=V_}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(_n),h.Y36(h.SBq),h.Y36(Dl),h.Y36(h.s_b),h.Y36(h.R0b),h.Y36(Jt),h.Y36(td),h.Y36(Tn),h.Y36(P_),h.Y36(Sn,8),h.Y36(vd,8),h.Y36(M.K0))},r.\u0275dir=h.lG2({type:r,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[h.qOj]}),r})(),k_=(()=>{class r{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new He.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,s=this._showAnimation,u=this._hideAnimation;if(t.classList.remove(e?u:s),t.classList.add(e?s:u),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const d=getComputedStyle(t);("0s"===d.getPropertyValue("animation-duration")||"none"===d.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.sBO),h.Y36(h.QbO,8))},r.\u0275dir=h.lG2({type:r}),r})(),V_=(()=>{class r extends k_{constructor(e,t,s){super(e,s),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.sBO),h.Y36(nh),h.Y36(h.QbO,8))},r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&h.Gf(OS,7),2&e){let s;h.iGM(s=h.CRH())&&(t._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&h.NdJ("mouseleave",function(u){return t._handleMouseLeave(u)}),2&e&&h.Udp("zoom",t.isVisible()?1:null)},features:[h.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(h.TgZ(0,"div",0,1),h.NdJ("animationend",function(u){return t._handleAnimationEnd(u)}),h.ALo(2,"async"),h._uU(3),h.qZA()),2&e){let s;h.ekj("mat-tooltip-handset",null==(s=h.lcZ(2,4,t._isHandset))?null:s.matches),h.Q6J("ngClass",t.tooltipClass),h.xp6(3),h.Oqu(t.message)}},dependencies:[M.mk,M.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),r})(),Ll=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[Zv],imports:[$a,M.ez,Xa,Qe,Qe,Vr]}),r})(),io=(()=>{class r{constructor(){this.changes=new He.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,s)=>{if(0==s||0==t)return`0 of ${s}`;const u=e*t;return`${u+1} \u2013 ${u<(s=Math.max(s,0))?Math.min(u+t,s):u+t} of ${s}`}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const tA={provide:io,deps:[[new h.FiY,new h.tp0,io]],useFactory:function eA(r){return r||new io}};let ga=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[tA],imports:[M.ez,vi,us,Ll,Qe]}),r})();var ps=E(1005);const aA=["mat-menu-item",""];function oA(r,a){1&r&&(h.O4$(),h.TgZ(0,"svg",2),h._UZ(1,"polygon",3),h.qZA())}const j_=["*"];function F_(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"div",0),h.NdJ("keydown",function(s){h.CHM(e);const u=h.oxw();return h.KtG(u._handleKeydown(s))})("click",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.closed.emit("click"))})("@transformMenu.start",function(s){h.CHM(e);const u=h.oxw();return h.KtG(u._onAnimationStart(s))})("@transformMenu.done",function(s){h.CHM(e);const u=h.oxw();return h.KtG(u._onAnimationDone(s))}),h.TgZ(1,"div",1),h.Hsn(2),h.qZA()()}if(2&r){const e=h.oxw();h.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),h.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const jl={transformMenu:ci("transformMenu",[mt("void",Ie({opacity:0,transform:"scale(0.8)"})),bt("void => enter",vt("120ms cubic-bezier(0, 0, 0.2, 1)",Ie({opacity:1,transform:"scale(1)"}))),bt("* => void",vt("100ms 25ms linear",Ie({opacity:0})))]),fadeInItems:ci("fadeInItems",[mt("showing",Ie({opacity:1})),bt("void => *",[Ie({opacity:0}),vt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},U_=new h.OlP("MatMenuContent"),N_=new h.OlP("MAT_MENU_PANEL"),q_=pr(wl(class{}));let _a=(()=>{class r extends q_{constructor(e,t,s,u,d){super(),this._elementRef=e,this._document=t,this._focusMonitor=s,this._parentMenu=u,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new He.x,this._focused=new He.x,this._highlighted=!1,this._triggersSubmenu=!1,u?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class r{constructor(e,t,s,u){this._elementRef=e,this._ngZone=t,this._defaultOptions=s,this._changeDetectorRef=u,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new h.n_E,this._tabSubscription=Qt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new h.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+G_++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=ze(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ze(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(s=>{this._classList[s]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(s=>{this._classList[s]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new ah(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Zi(this._directDescendantItems),(0,oi.w)(e=>(0,an.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const s=e.toArray(),u=Math.max(0,Math.min(s.length-1,t.activeItemIndex||0));s[u]&&!s[u].disabled?t.setActiveItem(u):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Zi(this._directDescendantItems),(0,oi.w)(t=>(0,an.T)(...t.map(s=>s._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,s=this._keyManager;switch(t){case 27:hr(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&s.setFocusOrigin("keyboard"),void s.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Dt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const s=this._keyManager;s.setFocusOrigin(e).setFirstItemActive(),!s.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),s=`${this._elevationPrefix}${t}`,u=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!u||u===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[s]=!0,this._previousElevation=s)}setPositionClasses(e=this.xPosition,t=this.yPosition){const s=this._classList;s["mat-menu-before"]="before"===e,s["mat-menu-after"]="after"===e,s["mat-menu-above"]="above"===t,s["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Zi(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(z_),h.Y36(h.sBO))},r.\u0275dir=h.lG2({type:r,contentQueries:function(e,t,s){if(1&e&&(h.Suo(s,U_,5),h.Suo(s,_a,5),h.Suo(s,_a,4)),2&e){let u;h.iGM(u=h.CRH())&&(t.lazyContent=u.first),h.iGM(u=h.CRH())&&(t._allItems=u),h.iGM(u=h.CRH())&&(t.items=u)}},viewQuery:function(e,t){if(1&e&&h.Gf(h.Rgc,5),2&e){let s;h.iGM(s=h.CRH())&&(t.templateRef=s.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),r})(),W_=(()=>{class r extends jr{constructor(e,t,s,u){super(e,t,s,u),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(z_),h.Y36(h.sBO))},r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&h.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[h._Bn([{provide:N_,useExisting:r}]),h.qOj],ngContentSelectors:j_,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(h.F$t(),h.YNc(0,F_,3,6,"ng-template"))},dependencies:[M.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[jl.transformMenu,jl.fadeInItems]},changeDetection:0}),r})();const $_=new h.OlP("mat-menu-scroll-strategy"),dA={provide:$_,deps:[_n],useFactory:function cA(r){return()=>r.scrollStrategies.reposition()}},ep=ur({passive:!0});let uA=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o){this._overlay=e,this._element=t,this._viewContainerRef=s,this._menuItemInstance=l,this._dir=n,this._focusMonitor=i,this._ngZone=o,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Qt.w0.EMPTY,this._hoverSubscription=Qt.w0.EMPTY,this._menuCloseSubscription=Qt.w0.EMPTY,this._handleTouchStart=c=>{kr(c)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new h.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new h.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=u,this._parentMaterialMenu=d instanceof jr?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,ep),l&&(l._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ep),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),s=t.getConfig(),u=s.positionStrategy;this._setPosition(e,u),s.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof jr&&(e._startAnimation(),e._directDescendantItems.changes.pipe(gt(e.close)).subscribe(()=>{u.withLockedPosition(!1).reapplyLastPosition(),u.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof jr?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,ge.h)(s=>"void"===s.toState),(0,Dt.q)(1),gt(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,s=e.parentMenu;for(;s;)t++,s=s.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Il({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(s=>{const u="start"===s.connectionPair.overlayX?"after":"before",d="top"===s.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(u,d)):e.setPositionClasses(u,d)})}_setPosition(e,t){let[s,u]="before"===e.xPosition?["end","start"]:["start","end"],[d,l]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[n,i]=[d,l],[o,c]=[s,u],p=0;if(this.triggersSubmenu()){if(c=s="before"===e.xPosition?"start":"end",u=o="end"===s?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const m=this._parentMaterialMenu.items.first;this._parentInnerPadding=m?m._getHostElement().offsetTop:0}p="bottom"===d?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(n="top"===d?"bottom":"top",i="top"===l?"bottom":"top");t.withPositions([{originX:s,originY:n,overlayX:o,overlayY:d,offsetY:p},{originX:u,originY:n,overlayX:c,overlayY:d,offsetY:p},{originX:s,originY:i,overlayX:o,overlayY:l,offsetY:-p},{originX:u,originY:i,overlayX:c,overlayY:l,offsetY:-p}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),s=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Me.of)(),u=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,ge.h)(d=>d!==this._menuItemInstance),(0,ge.h)(()=>this._menuOpen)):(0,Me.of)();return(0,an.T)(e,s,u,t)}_handleMousedown(e){lh(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,ge.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,ps.g)(0,zn)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof jr&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Dt.q)(1),(0,ps.g)(0,zn),gt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new pa(e.templateRef,this._viewContainerRef)),this._portal}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(_n),h.Y36(h.SBq),h.Y36(h.s_b),h.Y36($_),h.Y36(N_,8),h.Y36(_a,10),h.Y36(Sn,8),h.Y36(Tn),h.Y36(h.R0b))},r.\u0275dir=h.lG2({type:r,hostVars:3,hostBindings:function(e,t){1&e&&h.NdJ("click",function(u){return t._handleClick(u)})("mousedown",function(u){return t._handleMousedown(u)})("keydown",function(u){return t._handleKeydown(u)}),2&e&&h.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),r})(),Q_=(()=>{class r extends uA{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[h.qOj]}),r})(),Fr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[dA],imports:[M.ez,Qe,En,Xa,Vr,Qe]}),r})();const hA=["*"];let Fl;function fs(r){return function pA(){if(void 0===Fl&&(Fl=null,typeof window<"u")){const r=window;void 0!==r.trustedTypes&&(Fl=r.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return Fl}()?.createHTML(r)||r}function Y_(r){return Error(`Unable to find icon with the name "${r}"`)}function K_(r){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${r}".`)}function xd(r){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${r}".`)}class no{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let ms=(()=>{class r{constructor(e,t,s,u){this._httpClient=e,this._sanitizer=t,this._errorHandler=u,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=s}addSvgIcon(e,t,s){return this.addSvgIconInNamespace("",e,t,s)}addSvgIconLiteral(e,t,s){return this.addSvgIconLiteralInNamespace("",e,t,s)}addSvgIconInNamespace(e,t,s,u){return this._addSvgIconConfig(e,t,new no(s,null,u))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,s,u){const d=this._sanitizer.sanitize(h.q3G.HTML,s);if(!d)throw xd(s);const l=fs(d);return this._addSvgIconConfig(e,t,new no("",l,u))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,s){return this._addSvgIconSetConfig(e,new no(t,null,s))}addSvgIconSetLiteralInNamespace(e,t,s){const u=this._sanitizer.sanitize(h.q3G.HTML,t);if(!u)throw xd(t);const d=fs(u);return this._addSvgIconSetConfig(e,new no("",d,s))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(h.q3G.RESOURCE_URL,e);if(!t)throw K_(e);const s=this._cachedIconsByUrl.get(t);return s?(0,Me.of)(Td(s)):this._loadSvgIconFromConfig(new no(e,null)).pipe((0,Rt.b)(u=>this._cachedIconsByUrl.set(t,u)),(0,ct.U)(u=>Td(u)))}getNamedSvgIcon(e,t=""){const s=X_(t,e);let u=this._svgIconConfigs.get(s);if(u)return this._getSvgFromConfig(u);if(u=this._getIconConfigFromResolvers(t,e),u)return this._svgIconConfigs.set(s,u),this._getSvgFromConfig(u);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,Di._)(Y_(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Me.of)(Td(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ct.U)(t=>Td(t)))}_getSvgFromIconSetConfigs(e,t){const s=this._extractIconWithNameFromAnySet(e,t);return s?(0,Me.of)(s):Tr(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,Xi.K)(l=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(h.q3G.RESOURCE_URL,d.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(i)),(0,Me.of)(null)})))).pipe((0,ct.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw Y_(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let s=t.length-1;s>=0;s--){const u=t[s];if(u.svgText&&u.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(u),l=this._extractSvgIconFromSet(d,e,u.options);if(l)return l}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Rt.b)(t=>e.svgText=t),(0,ct.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Me.of)(null):this._fetchIcon(e).pipe((0,Rt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,s){const u=e.querySelector(`[id="${t}"]`);if(!u)return null;const d=u.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,s);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),s);const l=this._svgElementFromString(fs(""));return l.appendChild(d),this._setSvgAttributes(l,s)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const s=t.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(e){const t=this._svgElementFromString(fs("")),s=e.attributes;for(let u=0;ufs(i)),Ha(()=>this._inProgressUrlFetches.delete(d)),(0,Ds.B)());return this._inProgressUrlFetches.set(d,n),n}_addSvgIconConfig(e,t,s){return this._svgIconConfigs.set(X_(e,t),s),this}_addSvgIconSetConfig(e,t){const s=this._iconSetConfigs.get(e);return s?s.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let s=0;sa?a.pathname+a.search:""}}}),tb=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],_A=tb.map(r=>`[${r}]`).join(", "),bA=/^url\(['"]?#(.*?)['"]?\)$/;let Qn=(()=>{class r extends fA{constructor(e,t,s,u,d,l){super(e),this._iconRegistry=t,this._location=u,this._errorHandler=d,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Qt.w0.EMPTY,l&&(l.color&&(this.color=this.defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),s||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ze(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const s=e.childNodes[t];(1!==s.nodeType||"svg"===s.nodeName.toLowerCase())&&s.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(s=>s.length>0);this._previousFontSetClass.forEach(s=>e.classList.remove(s)),t.forEach(s=>e.classList.add(s)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((s,u)=>{s.forEach(d=>{u.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(_A),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let u=0;u{const l=t[u],n=l.getAttribute(d),i=n?n.match(bA):null;if(i){let o=s.get(l);o||(o=[],s.set(l,o)),o.push({name:d,value:i[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,s]=this._splitIconName(e);t&&(this._svgNamespace=t),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,t).pipe((0,Dt.q)(1)).subscribe(u=>this._setSvgElement(u),u=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${s}! ${u.message}`))})}}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(ms),h.$8M("aria-hidden"),h.Y36(mA),h.Y36(h.qLn),h.Y36(eb,8))},r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(h.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),h.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[h.qOj],ngContentSelectors:hA,decls:1,vars:0,template:function(e,t){1&e&&(h.F$t(),h.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),r})(),Ur=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Qe,Qe]}),r})(),ib=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[ga,Fr,Ur,vi,Da,M.ez]}),r})();var nb=E(5861);function rb(r,a){}class Sd{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let ip=(()=>{class r extends fa{constructor(e,t,s,u,d,l,n,i){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=u,this._interactivityChecker=d,this._ngZone=l,this._overlayRef=n,this._focusMonitor=i,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=o=>{this._portalOutlet.hasAttached();const c=this._portalOutlet.attachDomPortal(o);return this._contentAttached(),c},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=s}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const s=()=>{e.removeEventListener("blur",s),e.removeEventListener("mousedown",s),e.removeAttribute("tabindex")};e.addEventListener("blur",s),e.addEventListener("mousedown",s)})),e.focus(t)}_focusByCssSelector(e,t){let s=this._elementRef.nativeElement.querySelector(e);s&&this._forceFocus(s,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const s=ol(),u=this._elementRef.nativeElement;(!s||s===this._document.body||s===u||u.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=ol();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ol())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(sh),h.Y36(M.K0,8),h.Y36(Sd),h.Y36(oh),h.Y36(h.R0b),h.Y36(ss),h.Y36(Tn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&h.Gf(pd,7),2&e){let s;h.iGM(s=h.CRH())&&(t._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&h.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[h.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&h.YNc(0,rb,0,0,"ng-template",0)},dependencies:[pd],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),r})();class np{constructor(a,e){this.overlayRef=a,this.config=e,this.closed=new He.x,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!hr(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(a,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}}const ab=new h.OlP("DialogScrollStrategy"),CA=new h.OlP("DialogData"),rp=new h.OlP("DefaultDialogConfig"),ob={provide:ab,deps:[_n],useFactory:function ap(r){return()=>r.scrollStrategies.block()}};let op=0,sb=(()=>{class r{constructor(e,t,s,u,d,l){this._overlay=e,this._injector=t,this._defaultOptions=s,this._parentDialog=u,this._overlayContainer=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Gt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zi(void 0))),this._scrollStrategy=l}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Sd,...t}).id=t.id||"cdk-dialog-"+op++,t.id&&this.getDialogById(t.id);const u=this._getOverlayConfig(t),d=this._overlay.create(u),l=new np(d,t),n=this._attachContainer(d,l,t);return l.containerInstance=n,this._attachDialogContent(e,l,n,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){sp(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){sp(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),sp(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Il({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,s){const u=s.injector??s.viewContainerRef?.injector,d=[{provide:Sd,useValue:s},{provide:np,useValue:t},{provide:ss,useValue:e}];let l;s.container?"function"==typeof s.container?l=s.container:(l=s.container.type,d.push(...s.container.providers(s))):l=ip;const n=new Br(l,s.viewContainerRef,h.zs3.create({parent:u||this._injector,providers:d}),s.componentFactoryResolver);return e.attach(n).instance}_attachDialogContent(e,t,s,u){const d=this._createInjector(u,t,s);if(e instanceof h.Rgc){let l={$implicit:u.data,dialogRef:t};u.templateContext&&(l={...l,..."function"==typeof u.templateContext?u.templateContext():u.templateContext}),s.attachTemplatePortal(new pa(e,null,l,d))}else{const l=s.attachComponentPortal(new Br(e,u.viewContainerRef,d,u.componentFactoryResolver));t.componentInstance=l.instance}}_createInjector(e,t,s){const u=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:CA,useValue:e.data},{provide:np,useValue:t}];return e.providers&&("function"==typeof e.providers?d.push(...e.providers(t,e,s)):d.push(...e.providers)),e.direction&&(!u||!u.get(Sn,null,h.XFs.Optional))&&d.push({provide:Sn,useValue:{value:e.direction,change:(0,Me.of)()}}),h.zs3.create({parent:e.injector||u||this._injector,providers:d})}_removeOpenDialog(e,t){const s=this.openDialogs.indexOf(e);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((u,d)=>{u?d.setAttribute("aria-hidden",u):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let s=t.length-1;s>-1;s--){const u=t[s];u!==e&&"SCRIPT"!==u.nodeName&&"STYLE"!==u.nodeName&&!u.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(u,u.getAttribute("aria-hidden")),u.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(_n),h.LFG(h.zs3),h.LFG(rp,8),h.LFG(r,12),h.LFG(os),h.LFG(ab))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();function sp(r,a){let e=r.length;for(;e--;)a(r[e])}let lp=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[sb,ob],imports:[Xa,Or,$a,Or]}),r})();function wA(r,a){}const ro={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},gs={dialogContainer:ci("dialogContainer",[mt("void, exit",Ie({opacity:0,transform:"scale(0.7)"})),mt("enter",Ie({transform:"none"})),bt("* => enter",Oh([vt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ie({transform:"none",opacity:1})),kl("@*",Cd(),{optional:!0})]),ro),bt("* => void, * => exit",Oh([vt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ie({opacity:0})),kl("@*",Cd(),{optional:!0})]),ro)])};class _s{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=ro.params.enterAnimationDuration,this.exitAnimationDuration=ro.params.exitAnimationDuration}}let yA=(()=>{class r extends ip{constructor(e,t,s,u,d,l,n,i){super(e,t,s,u,d,l,n,i),this._animationStateChanged=new h.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(sh),h.Y36(M.K0,8),h.Y36(_s),h.Y36(oh),h.Y36(h.R0b),h.Y36(ss),h.Y36(Tn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["ng-component"]],features:[h.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),r})(),JS=(()=>{class r extends yA{constructor(e,t,s,u,d,l,n,i,o){super(e,t,s,u,d,l,n,o),this._changeDetectorRef=i,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ro.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ro.params.exitAnimationDuration}}}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(sh),h.Y36(M.K0,8),h.Y36(_s),h.Y36(oh),h.Y36(h.R0b),h.Y36(ss),h.Y36(h.sBO),h.Y36(Tn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&h.WFA("@dialogContainer.start",function(u){return t._onAnimationStart(u)})("@dialogContainer.done",function(u){return t._onAnimationDone(u)}),2&e&&(h.Ikx("id",t._config.id),h.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),h.d8E("@dialogContainer",t._getAnimationState()))},features:[h.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&h.YNc(0,wA,0,0,"ng-template",0)},dependencies:[pd],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[gs.dialogContainer]}}),r})();class bn{constructor(a,e,t){this._ref=a,this._containerInstance=t,this._afterOpened=new He.x,this._beforeClosed=new He.x,this._state=0,this.disableClose=e.disableClose,this.id=a.id,t._animationStateChanged.pipe((0,ge.h)(s=>"opened"===s.state),(0,Dt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,ge.h)(s=>"closed"===s.state),(0,Dt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,an.T)(this.backdropClick(),this.keydownEvents().pipe((0,ge.h)(s=>27===s.keyCode&&!this.disableClose&&!hr(s)))).subscribe(s=>{this.disableClose||(s.preventDefault(),function cp(r,a,e){r._closeInteractionType=a,r.close(e)}(this,"keydown"===s.type?"keyboard":"mouse"))})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,ge.h)(e=>"closing"===e.state),(0,Dt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const ao=new h.OlP("MatDialogData"),dp=new h.OlP("mat-dialog-default-options"),lb=new h.OlP("mat-dialog-scroll-strategy"),cb={provide:lb,deps:[_n],useFactory:function up(r){return()=>r.scrollStrategies.block()}};let db=0,ub=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c){this._overlay=e,this._defaultOptions=s,this._parentDialog=u,this._dialogRefConstructor=n,this._dialogContainerType=i,this._dialogDataToken=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Gt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zi(void 0))),this._scrollStrategy=l,this._dialog=t.get(sb)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let s;(t={...this._defaultOptions||new _s,...t}).id=t.id||`${this._idPrefix}${db++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const u=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:_s,useValue:t},{provide:Sd,useValue:t}]},templateContext:()=>({dialogRef:s}),providers:(d,l,n)=>(s=new this._dialogRefConstructor(d,t,n),s.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:s}])});return s.componentInstance=u.componentInstance,this.openDialogs.push(s),this.afterOpened.next(s),s.afterClosed().subscribe(()=>{const d=this.openDialogs.indexOf(s);d>-1&&(this.openDialogs.splice(d,1),this.openDialogs.length||this._getAfterAllClosed().next())}),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return r.\u0275fac=function(e){h.$Z()},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),Cn=(()=>{class r extends ub{constructor(e,t,s,u,d,l,n,i){super(e,t,u,l,n,d,bn,JS,ao,i)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(_n),h.LFG(h.zs3),h.LFG(M.Ye,8),h.LFG(dp,8),h.LFG(lb),h.LFG(r,12),h.LFG(os),h.LFG(h.QbO,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),vA=0,Nr=(()=>{class r{constructor(e,t,s){this._dialogRef=e,this._elementRef=t,this._dialog=s,this.id="mat-dialog-title-"+vA++}ngOnInit(){this._dialogRef||(this._dialogRef=function XS(r,a){let e=r.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn,8),h.Y36(h.SBq),h.Y36(Cn))},r.\u0275dir=h.lG2({type:r,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&h.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),r})(),qr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),r})(),_r=(()=>{class r{constructor(){this.align="start"}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&h.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),r})(),Ul=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[Cn,cb],imports:[lp,Xa,Or,Qe,Qe]}),r})();function hp(){return(hp=(0,nb.Z)(function*(r,a){yield EA(r),a()})).apply(this,arguments)}function EA(r){return new Promise(a=>setTimeout(a,r))}function pp(r,a){for(const e of r)if(e.namespace+":"+e.friendlyName===a)return e;return null}function on(){const r=new _s;return r.disableClose=!0,r.autoFocus=!1,r}E(4327),new Intl.Collator("cs",{numeric:!0});let gi=(()=>{class r{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],s=this.defaultConfig[e];let u=null;for(const d of t)d&&null==u&&(u=d[e]);return null===u?s:this.addMissingValuesToProperty(u,s)}addMissingValuesToProperty(e,t){if(null==e)return t;if("object"==typeof e&&!Array.isArray(e))for(const s of Object.keys(t))e[s]=this.addMissingValuesToProperty(e[s],t[s]);return e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var Gr=E(1214);let ba=(()=>{class r{constructor(e,t,s,u,d){this.injector=e,this.store=t,this.dialog=s,this.route=u,this.oauthService=d,setTimeout(()=>{this.router=this.injector.get(yi),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(l=>{l.idpFilter&&(this.filterShortname=String(l.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),u=.5+.25*Math.random(),d=e?{acr_values:e}:{},l=this.store.getProperty("oidc_client");if(l.oauth_scopes.split(" ").includes("offline_access")&&l.oauth_offline_access_consent_prompt&&(d.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(d.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(d.prompt?d.prompt+=" login":d.prompt="login",d.max_age="0"),"Linker"===this.store.getProperty("application")){d.prompt?d.prompt+=" login":d.prompt="login";const n=function _p(r,a){const e=a.split("&");for(const t of e){const[s,u]=t.split("=");if(s.includes(r))return u}return""}("idphint",location.search.substring(1));n&&(d.idphint=n)}return{requestAccessToken:!0,issuer:l.oauth_authority,clientId:l.oauth_client_id,redirectUri:l.oauth_redirect_uri,postLogoutRedirectUri:l.oauth_post_logout_redirect_uri,responseType:l.oauth_response_type,scope:l.oauth_scopes,clockSkewInSec:1,timeoutFactor:u,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:d}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let s=null;return e.forEach(u=>{const d=u.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],s=t[d[1]])}),t.default&&!s?(this.filterShortname="default",t.default):s}startIdpFilterKeeper(){this.router.events.pipe((0,ge.h)(e=>e instanceof mn)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(h.zs3),h.LFG(gi),h.LFG(Cn),h.LFG(jn),h.LFG(Gr.Ct))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Cb=(()=>{class r{constructor(e){this.dialogRef=e}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(h.TgZ(0,"h2",0),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&e&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[qr,yt]}),r})();var wb=E(930);function bp(r,a){const e="object"==typeof a;return new Promise((t,s)=>{const u=new wb.Hp({next:d=>{t(d),u.unsubscribe()},error:s,complete:()=>{e?t(a.defaultValue):s(new On.K)}});r.subscribe(u)})}function yb(r,a){1&r&&(h.TgZ(0,"mat-icon",2),h._uU(1," info "),h.qZA())}function UA(r,a){1&r&&(h.TgZ(0,"mat-icon",2),h._uU(1," warning "),h.qZA())}function vb(r,a){1&r&&(h.TgZ(0,"mat-icon",2),h._uU(1," dangerous "),h.qZA())}function Ab(r,a){1&r&&(h.TgZ(0,"mat-icon",2),h._uU(1," check_circle "),h.qZA())}const NA=["*"];let ql=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:NA,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(h.F$t(),h.TgZ(0,"div",0),h.YNc(1,yb,2,0,"mat-icon",1),h.YNc(2,UA,2,0,"mat-icon",1),h.YNc(3,vb,2,0,"mat-icon",1),h.YNc(4,Ab,2,0,"mat-icon",1),h.Hsn(5),h.qZA()),2&e&&(h.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),h.xp6(1),h.Q6J("ngIf","info"===t.alert_type),h.xp6(1),h.Q6J("ngIf","warn"===t.alert_type),h.xp6(1),h.Q6J("ngIf","error"===t.alert_type),h.xp6(1),h.Q6J("ngIf","success"===t.alert_type))},dependencies:[Qn,M.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),r})(),qA=(()=>{class r{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn),h.Y36(ao))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),h._uU(5),h.ALo(6,"translate"),h.ALo(7,"translate"),h.qZA()(),h.TgZ(8,"div",3)(9,"button",4),h.NdJ("click",function(){return t.cancel()}),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"button",5),h.NdJ("click",function(){return t.submit()}),h._uU(13),h.ALo(14,"translate"),h.qZA()()),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),h.xp6(4),h.hij(" ",t.data.mfaRoleException?h.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):h.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),h.xp6(4),h.Q6J("hidden",t.data.mfaRoleException),h.xp6(1),h.hij(" ",h.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),h.xp6(2),h.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),h.xp6(1),h.hij(" ",h.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Nr,qr,_r,ji,ql,yt]}),r})(),$i=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),h._uU(3," info "),h.qZA(),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div"),h._uU(7),h.ALo(8,"translate"),h.qZA()()),2&e&&(h.xp6(4),h.hij(" ",h.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),h.xp6(3),h.hij(" ",h.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Qn,yt],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),r})(),bs=(()=>{class r{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(ao),h.Y36(bn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),h._uU(5),h.ALo(6,"translate"),h.qZA()(),h.TgZ(7,"div",3)(8,"button",4),h.NdJ("click",function(){return t.cancel()}),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"button",5),h.NdJ("click",function(){return t.submit()}),h._uU(12),h.ALo(13,"translate"),h.qZA()()),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),h.xp6(4),h.hij(" ",h.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),h.xp6(4),h.hij(" ",h.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),h.xp6(3),h.hij(" ",h.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Nr,qr,_r,ji,ql,yt]}),r})(),Cp=(()=>{class r{constructor(e,t,s,u){this.dialog=e,this.oauthService=t,this.authService=s,this.store=u}openMfaWindow(e){let t=null,s=null;const u=on();u.width="450px",u.data={mfaRoleException:e};const d=this.dialog.open(qA,u);let l=!1;if(d.afterClosed().subscribe(n=>{if(n){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const i=on();i.width="450px",i.panelClass="noBorderDialog",s=this.dialog.open($i,i)}}else l=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const n=on();n.width="450px",n.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(bs,n)}return new ai.y(n=>{const i=setInterval(()=>t?.closed?(clearInterval(i),s.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),n.next(!0)):l?(clearInterval(i),n.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,u=window.top;return window.open(e,"_blank",`width=600,height=600,top=${u.outerHeight/2+u.screenY-300}, left=${u.outerWidth/2+u.screenX-300}`)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Cn),h.LFG(Gr.Ct),h.LFG(ba),h.LFG(gi))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),zl=(()=>{class r{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.oauthService=t,this.storeService=s,this.authResolver=u,this.authzService=d,this.dialog=l,this.router=n,this.mfaHandlerService=i,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return bp(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=on();this.dialog.open(Cb,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return bp(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const s={};return t.split("&").forEach(u=>{const d=u.split("=");s[d[0]]=d[1]}),this.router.navigate(["service-access"],{queryParams:s,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const s of t)if(e.startsWith(s))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,ge.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const s=sessionStorage.getItem("auth:queryParams");let u=[];s&&(u=s.split("&"));const d={};return u.forEach(l=>{const n=l.split("=");d[n[0]]=n[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:d,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(ba),h.LFG(Gr.Ct),h.LFG(gi),h.LFG(Mi),h.LFG(Ps),h.LFG(Cn),h.LFG(yi),h.LFG(Cp))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),zA=(()=>{class r{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(ms),h.LFG(hi))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),wp=(()=>{class r{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div",2)(7,"div",3)(8,"button",4),h.NdJ("click",function(){return t.close()}),h._uU(9),h.ALo(10,"translate"),h.qZA()()()),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),h.xp6(3),h.hij(" ",h.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),h.xp6(5),h.hij(" ",h.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Nr,qr,_r,ji,yt]}),r})(),xb=(()=>{class r{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Wr=(()=>{class r{constructor(e){this.translate=e,this.addNotification=new h.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,s,u,d){this.addNotification.emit({type:"error",error:t,description:s,title:e,actionText:void 0===u&&void 0!==s?this.getDefaultActionMessage():u,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,s,u){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===s&&void 0!==t?this.getDefaultActionMessage():s,delay:this.defaultSuccessDelayMs,icon:"done",action:u,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(hn))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Tb=(()=>{class r{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.apiRequestConfiguration=t,this.notificator=s,this.store=u,this.dialog=d,this.initAuthService=l,this.mfaHandlerService=n,this.oauthService=i}intercept(e,t){const s=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==s&&this.isCallToPerunApi(e.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const u=on();u.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(wp,u),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Ha(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const s=this.apiRequestConfiguration.shouldHandleError(),u="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Rt.b)(d=>{d instanceof v.Zn&&u&&this.initAuthService.loadPrincipal()}),(0,Xi.K)(d=>{const l=d.error;if("MfaPrivilegeException"===l.type||"MfaRolePrivilegeException"===l.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===l.type).pipe((0,oi.w)(n=>n?("MfaRolePrivilegeException"===l.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,Di._)(()=>l)));{this.handleInvalidAccessTokenError(d);const n=this.formatErrors(d,e);return void 0===n?(0,Di._)(()=>d):(s&&this.notificator.showRPCError(n),(0,Di._)(()=>n))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let s;console.error(e);const u=e.error;if(u.errorId&&(s=u),void 0!==s)return s.urlWithParams=t.urlWithParams,s.call=t.url,s.payload=t.body,s}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){if(!this.isLoggedIn()||"invalid_token"===e.error.error||null!=this.dialogRefSessionExpiration)return;const t=on();this.dialogRefSessionExpiration=this.dialog.open(wp,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(ba),h.LFG(xb),h.LFG(Wr),h.LFG(gi),h.LFG(Cn),h.LFG(zl),h.LFG(Cp),h.LFG(Gr.Ct))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),Gl=(()=>{class r{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),GA=(()=>{class r{constructor(e,t,s,u){this.http=e,this.notificator=t,this.authService=s,this.storeService=u}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new v.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.get(s,{headers:this.getHeaders()}).pipe((0,Xi.K)(u=>this.formatErrors(u,s,null,t)))}put(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(u,d,{headers:this.getHeaders()}).pipe((0,Xi.K)(l=>this.formatErrors(l,u,d,s)))}post(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let l=this.getHeaders();return l=l.set("Content-Type","application/json; charset=utf-8"),this.http.post(u,d,{headers:l}).pipe((0,Xi.K)(n=>this.formatErrors(n,u,d,s)))}delete(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.delete(s,{headers:this.getHeaders()}).pipe((0,Xi.K)(u=>this.formatErrors(u,s,null,t)))}formatErrors(e,t,s,u){const d=e.error;return d.call=t,d.payload=s,u&&this.notificator.showRPCError(e.error),(0,Di._)(d)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(v.eN),h.LFG(Wr),h.LFG(ba),h.LFG(gi))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),$A=(()=>{class r{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),s=navigator.languages.map(l=>l.split("-")[0]),u=location.search.substring(1).split("&");let d=null;for(const l of u){const n=l.split("=");"lang"===n[0]&&(d=n[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:s&&t.includes(s[0])?s[0]:"en"}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(jn),h.LFG(gi))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Sb=(()=>{class r{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const u of e)if(u.newApps.admin===t||u.newApps.profile===t||u.newApps.pwdReset===t||u.newApps.consolidator===t||u.newApps.linker===t)return u;return e.filter(u=>"default"===u.name)[0]||e[0]}getUrlForOtherApplication(e,t){const u=window.location.href.split("/"),d=u[0]+"//"+u[2],l=r.getBrandContainingDomain(this.storeService.getAppsConfig().brands,d);let n;if(l.newApps[e])n=l.newApps[e],"pwdReset"===e&&(n+=`?login-namespace=${t}`);else switch(n=l.oldGuiDomain+"/fed",e){case"admin":n+="/gui/";break;case"profile":n+="/profile/";break;case"pwdReset":n+=`/pwd-reset/?login-namespace=${t}`}return n}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(gi))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var $r=(()=>{return(r=$r||($r={})).Admin="admin",r.Profile="profile",r.PwdReset="pwdReset",r.Consolidator="consolidator",r.Linker="linker",$r;var r})();let $l=(()=>{class r{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Qsj),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r}),r})(),Qr=(()=>{class r extends $l{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,features:[h.qOj]}),r})();const sn=new h.OlP("NgValueAccessor"),Hb={provide:sn,useExisting:(0,h.Gpc)(()=>oo),multi:!0},YA=new h.OlP("CompositionEventMode");let oo=(()=>{class r extends $l{constructor(e,t,s){super(e,t),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Cs(){const r=(0,M.q)()?(0,M.q)().getUserAgent():"";return/android (\d+)/.test(r.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Qsj),h.Y36(h.SBq),h.Y36(YA,8))},r.\u0275dir=h.lG2({type:r,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&h.NdJ("input",function(u){return t._handleInput(u.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(u){return t._compositionEnd(u.target.value)})},features:[h._Bn([Hb]),h.qOj]}),r})();function so(r){return null==r||("string"==typeof r||Array.isArray(r))&&0===r.length}function Rb(r){return null!=r&&"number"==typeof r.length}const xi=new h.OlP("NgValidators"),Ca=new h.OlP("NgAsyncValidators"),JA=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ql{static min(a){return function vp(r){return a=>{if(so(a.value)||so(r))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(so(a.value)||so(r))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>r?{max:{max:r,actual:a.value}}:null}}(a)}static required(a){return Pb(a)}static requiredTrue(a){return function xp(r){return!0===r.value?null:{required:!0}}(a)}static email(a){return function Tp(r){return so(r.value)||JA.test(r.value)?null:{email:!0}}(a)}static minLength(a){return function Ib(r){return a=>so(a.value)||!Rb(a.value)?null:a.value.lengthRb(a.value)&&a.value.length>r?{maxlength:{requiredLength:r,actualLength:a.value.length}}:null}(a)}static pattern(a){return function Sp(r){if(!r)return Dd;let a,e;return"string"==typeof r?(e="","^"!==r.charAt(0)&&(e+="^"),e+=r,"$"!==r.charAt(r.length-1)&&(e+="$"),a=new RegExp(e)):(e=r.toString(),a=r),t=>{if(so(t.value))return null;const s=t.value;return a.test(s)?null:{pattern:{requiredPattern:e,actualValue:s}}}}(a)}static nullValidator(a){return null}static compose(a){return ZA(a)}static composeAsync(a){return XA(a)}}function Pb(r){return so(r.value)?{required:!0}:null}function Dd(r){return null}function Ep(r){return null!=r}function Mp(r){return(0,h.QGY)(r)?(0,$e.D)(r):r}function Dp(r){let a={};return r.forEach(e=>{a=null!=e?{...a,...e}:a}),0===Object.keys(a).length?null:a}function Hp(r,a){return a.map(e=>e(r))}function Vb(r){return r.map(a=>function KA(r){return!r.validate}(a)?a:e=>a.validate(e))}function ZA(r){if(!r)return null;const a=r.filter(Ep);return 0==a.length?null:function(e){return Dp(Hp(e,a))}}function Hd(r){return null!=r?ZA(Vb(r)):null}function XA(r){if(!r)return null;const a=r.filter(Ep);return 0==a.length?null:function(e){return Tr(Hp(e,a).map(Mp)).pipe((0,ct.U)(Dp))}}function Bb(r){return null!=r?XA(Vb(r)):null}function e0(r,a){return null===r?[a]:Array.isArray(r)?[...r,a]:[r,a]}function t0(r){return r._rawValidators}function n0(r){return r._rawAsyncValidators}function Ob(r){return r?Array.isArray(r)?r:[r]:[]}function Rp(r,a){return Array.isArray(r)?r.includes(a):r===a}function r0(r,a){const e=Ob(a);return Ob(r).forEach(s=>{Rp(e,s)||e.push(s)}),e}function Yl(r,a){return Ob(a).filter(e=>!Rp(r,e))}class a0{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(a){this._rawValidators=a||[],this._composedValidatorFn=Hd(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=Bb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Fi extends a0{get formDirective(){return null}get path(){return null}}class wn extends a0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let ws=(()=>{class r extends class Pp{constructor(a){this._cd=a}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(wn,2))},r.\u0275dir=h.lG2({type:r,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&h.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[h.qOj]}),r})();const Pd="VALID",ln="INVALID",ys="PENDING",lo="DISABLED";function Bp(r){return(kd(r)?r.validators:r)||null}function cn(r){return Array.isArray(r)?Hd(r):r||null}function Op(r,a){return(kd(a)?a.asyncValidators:r)||null}function Id(r){return Array.isArray(r)?Bb(r):r||null}function kd(r){return null!=r&&!Array.isArray(r)&&"object"==typeof r}class Lp{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=cn(this._rawValidators),this._composedAsyncValidatorFn=Id(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===Pd}get invalid(){return this.status===ln}get pending(){return this.status==ys}get disabled(){return this.status===lo}get enabled(){return this.status!==lo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=cn(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=Id(a)}addValidators(a){this.setValidators(r0(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(r0(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(Yl(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(Yl(a,this._rawAsyncValidators))}hasValidator(a){return Rp(this._rawValidators,a)}hasAsyncValidator(a){return Rp(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=ys,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=lo,this.errors=null,this._forEachChild(t=>{t.disable({...a,onlySelf:!0})}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Pd,this._forEachChild(t=>{t.enable({...a,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Pd||this.status===ys)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?lo:Pd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=ys,this._hasOwnPendingAsyncValidator=!0;const e=Mp(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){let e=a;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,s)=>t&&t._find(s),this)}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new h.vpe,this.statusChanges=new h.vpe}_calculateStatus(){return this._allControlsDisabled()?lo:this.errors?ln:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ys)?ys:this._anyControlsHaveStatus(ln)?ln:Pd}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){kd(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(a){return null}}class Bd extends Lp{constructor(a,e,t){super(Bp(e),Op(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){(function Vd(r,a,e){r._forEachChild((t,s)=>{if(void 0===e[s])throw new h.vHH(1002,"")})})(this,0,a),Object.keys(a).forEach(t=>{(function Ub(r,a,e){const t=r.controls;if(!(a?Object.keys(t):t).length)throw new h.vHH(1e3,"");if(!t[e])throw new h.vHH(1001,"")})(this,!0,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{const s=this.controls[t];s&&s.patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,s)=>{t.reset(a[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=e.getRawValue(),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&a(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,s)=>((t.enabled||this.disabled)&&(e[s]=t.value),e))}_reduceChildren(a,e){let t=a;return this._forEachChild((s,u)=>{t=e(t,s,u)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null}}function Zl(r,a){Xl(r,a),a.valueAccessor.writeValue(r.value),r.disabled&&a.valueAccessor.setDisabledState?.(!0),function u0(r,a){a.valueAccessor.registerOnChange(e=>{r._pendingValue=e,r._pendingChange=!0,r._pendingDirty=!0,"change"===r.updateOn&&zb(r,a)})}(r,a),function h0(r,a){const e=(t,s)=>{a.valueAccessor.writeValue(t),s&&a.viewToModelUpdate(t)};r.registerOnChange(e),a._registerOnDestroy(()=>{r._unregisterOnChange(e)})}(r,a),function ME(r,a){a.valueAccessor.registerOnTouched(()=>{r._pendingTouched=!0,"blur"===r.updateOn&&r._pendingChange&&zb(r,a),"submit"!==r.updateOn&&r.markAsTouched()})}(r,a),function qb(r,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};r.registerOnDisabledChange(e),a._registerOnDestroy(()=>{r._unregisterOnDisabledChange(e)})}}(r,a)}function vs(r,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),Dn(r,a),r&&(a._invokeOnDestroyCallbacks(),r._registerOnCollectionChange(()=>{}))}function Yn(r,a){r.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function Xl(r,a){const e=t0(r);null!==a.validator?r.setValidators(e0(e,a.validator)):"function"==typeof e&&r.setValidators([e]);const t=n0(r);null!==a.asyncValidator?r.setAsyncValidators(e0(t,a.asyncValidator)):"function"==typeof t&&r.setAsyncValidators([t]);const s=()=>r.updateValueAndValidity();Yn(a._rawValidators,s),Yn(a._rawAsyncValidators,s)}function Dn(r,a){let e=!1;if(null!==r){if(null!==a.validator){const s=t0(r);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==a.validator);u.length!==s.length&&(e=!0,r.setValidators(u))}}if(null!==a.asyncValidator){const s=n0(r);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==a.asyncValidator);u.length!==s.length&&(e=!0,r.setAsyncValidators(u))}}}const t=()=>{};return Yn(a._rawValidators,t),Yn(a._rawAsyncValidators,t),e}function zb(r,a){r._pendingDirty&&r.markAsDirty(),r.setValue(r._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(r._pendingValue),r._pendingChange=!1}function Gb(r,a){Xl(r,a)}function Od(r,a){if(!r.hasOwnProperty("model"))return!1;const e=r.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function Ld(r,a){r._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function jd(r,a){if(!a)return null;let e,t,s;return Array.isArray(a),a.forEach(u=>{u.constructor===oo?e=u:function RE(r){return Object.getPrototypeOf(r.constructor)===Qr}(u)?t=u:s=u}),s||t||e||null}const $b={provide:Fi,useExisting:(0,h.Gpc)(()=>wa)},As=(()=>Promise.resolve(null))();let wa=(()=>{class r extends Fi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new h.vpe,this.form=new Bd({},Hd(e),Bb(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){As.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Zl(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){As.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){As.then(()=>{const t=this._findContainer(e.path),s=new Bd({});Gb(s,e),t.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){As.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){As.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Ld(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(xi,10),h.Y36(Ca,10))},r.\u0275dir=h.lG2({type:r,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&h.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h._Bn([$b]),h.qOj]}),r})();function ec(r,a){const e=r.indexOf(a);e>-1&&r.splice(e,1)}function Fp(r){return"object"==typeof r&&null!==r&&2===Object.keys(r).length&&"value"in r&&"disabled"in r}const Up=class extends Lp{constructor(a=null,e,t){super(Bp(e),Op(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),kd(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Fp(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){ec(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){ec(this._onDisabledChange,a)}_forEachChild(a){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(a){Fp(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}},Qb=Up,b0={provide:wn,useExisting:(0,h.Gpc)(()=>Np)},C0=(()=>Promise.resolve(null))();let Np=(()=>{class r extends wn{constructor(e,t,s,u,d){super(),this._changeDetectorRef=d,this.control=new Up,this._registered=!1,this.update=new h.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=jd(0,u)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Od(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Zl(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){C0.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,s=0!==t&&(0,h.D6c)(t);C0.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Kl(r,a){return[...a.path,r]}(e,this._parent):[e]}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(Fi,9),h.Y36(xi,10),h.Y36(Ca,10),h.Y36(sn,10),h.Y36(h.sBO,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h._Bn([b0]),h.qOj,h.TTD]}),r})(),Kb=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})();const tc=new h.OlP("NgModelWithFormControlWarning"),Wp={provide:wn,useExisting:(0,h.Gpc)(()=>$p)};let $p=(()=>{class r extends wn{constructor(e,t,s,u){super(),this._ngModelWarningConfig=u,this.update=new h.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=jd(0,s)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&vs(t,this,!1),Zl(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Od(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&vs(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return r._ngModelWarningSentOnce=!1,r.\u0275fac=function(e){return new(e||r)(h.Y36(xi,10),h.Y36(Ca,10),h.Y36(sn,10),h.Y36(tc,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[h._Bn([Wp]),h.qOj,h.TTD]}),r})();const Qp={provide:Fi,useExisting:(0,h.Gpc)(()=>uo)};let uo=(()=>{class r extends Fi{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new h.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Dn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Zl(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){vs(e.control||null,e,!1),function Wb(r,a){const e=r.indexOf(a);e>-1&&r.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Ld(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,s=this.form.get(e.path);t!==s&&(vs(t||null,e),(r=>r instanceof Up)(s)&&(Zl(s,e),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Gb(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function p0(r,a){return Dn(r,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Xl(this.form,this),this._oldForm&&Dn(this._oldForm,this)}_checkFormPresent(){}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(xi,10),h.Y36(Ca,10))},r.\u0275dir=h.lG2({type:r,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&h.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h._Bn([Qp]),h.qOj,h.TTD]}),r})(),ho=(()=>{class r{constructor(){this._validator=Dd}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Dd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r,features:[h.TTD]}),r})();const H0={provide:xi,useExisting:(0,h.Gpc)(()=>nc),multi:!0};let nc=(()=>{class r extends ho{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=h.D6c,this.createValidator=e=>Pb}enabled(e){return e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&h.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[h._Bn([H0]),h.qOj]}),r})(),b=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Kb]}),r})(),C=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[b]}),r})(),y=(()=>{class r{static withConfig(e){return{ngModule:r,providers:[{provide:tc,useValue:e.warnOnNgModelWithFormControl}]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[b]}),r})();const te=ur({passive:!0});let se=(()=>{class r{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Oi.E;const t=li(e),s=this._monitoredElements.get(t);if(s)return s.subject;const u=new He.x,d="cdk-text-field-autofilled",l=n=>{"cdk-text-field-autofill-start"!==n.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===n.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",l,te),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:u,unlisten:()=>{t.removeEventListener("animationstart",l,te)}}),u}stopMonitoring(e){const t=li(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Jt),h.LFG(h.R0b))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Se=(()=>{class r{constructor(e,t,s,u){this._elementRef=e,this._platform=t,this._ngZone=s,this._destroyed=new He.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=d=>{this._hasFocus="focus"===d.type},this._document=u,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=Pi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Pi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=ze(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Ja(this._getWindow(),"resize").pipe(es(16),gt(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",s=this._platform.FIREFOX,u=s&&this._hasFocus,d=s?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";u&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(d);const l=e.scrollHeight-4;return e.classList.remove(d),u&&(e.style.marginBottom=t),l}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,s=t.value;if(!e&&this._minRows===this._previousMinRows&&s===this._previousValue)return;const u=this._measureScrollHeight(),d=Math.max(u,this._cachedPlaceholderHeight||0);t.style.height=`${d}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=s,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:s}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,s)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(Jt),h.Y36(h.R0b),h.Y36(M.K0,8))},r.\u0275dir=h.lG2({type:r,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&h.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),r})(),Ve=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})();const et=new h.OlP("MAT_INPUT_VALUE_ACCESSOR"),ve=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Ye=0;const _t=hh(class{constructor(r,a,e,t){this._defaultErrorStateMatcher=r,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new He.x}});let Ot=(()=>{class r extends _t{constructor(e,t,s,u,d,l,n,i,o,c){super(l,u,d,s),this._elementRef=e,this._platform=t,this._autofillMonitor=i,this._formField=c,this._uid="mat-input-"+Ye++,this.focused=!1,this.stateChanges=new He.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>Bm().has(g)),this._iOSKeyupListener=g=>{const f=g.target;!f.value&&0===f.selectionStart&&0===f.selectionEnd&&(f.setSelectionRange(1,1),f.setSelectionRange(0,0))};const p=this._elementRef.nativeElement,m=p.nodeName.toLowerCase();this._inputValueAccessor=n||p,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&o.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===m,this._isTextarea="textarea"===m,this._isInFormField=!!c,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ze(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Ql.required)??!1}set required(e){this._required=ze(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Bm().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ze(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=t,t?s.setAttribute("placeholder",t):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){ve.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(Jt),h.Y36(wn,10),h.Y36(wa,8),h.Y36(uo,8),h.Y36(ua),h.Y36(et,10),h.Y36(se),h.Y36(h.R0b),h.Y36(Yh,8))},r.\u0275dir=h.lG2({type:r,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&h.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(h.Ikx("disabled",t.disabled)("required",t.required),h.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),h.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[h._Bn([{provide:wd,useExisting:r}]),h.qOj,h.TTD]}),r})(),br=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[ua],imports:[Ve,to,Qe,Ve,to]}),r})();function Kp(r,a){1&r&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&r&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let Zp=(()=>{class r{constructor(e,t,s,u,d){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=u,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",E(4147).i8)}close(){this.dialogRef.close()}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn),h.Y36(hn),h.Y36(Wr),h.Y36(ks),h.Y36(gi))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"input",2,3),h.NdJ("ngModelChange",function(u){return t.subject=u}),h.qZA(),h.YNc(10,Kp,3,3,"mat-error",4),h.qZA(),h.TgZ(11,"mat-form-field")(12,"mat-label"),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"textarea",5),h.NdJ("ngModelChange",function(u){return t.message=u}),h.ALo(16,"translate"),h._uU(17," "),h.qZA(),h.TgZ(18,"mat-hint"),h._uU(19),h.ALo(20,"translate"),h.qZA()()(),h.TgZ(21,"div",6)(22,"div",7)(23,"button",8),h.NdJ("click",function(){return t.close()}),h._uU(24),h.ALo(25,"translate"),h.qZA(),h.TgZ(26,"button",9),h.NdJ("click",function(){return t.sendBugReport()}),h._uU(27),h.ALo(28,"translate"),h.qZA()()()),2&e){const s=h.MAs(9);h.xp6(1),h.Oqu(h.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),h.xp6(5),h.Oqu(h.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),h.xp6(2),h.Q6J("ngModel",t.subject),h.xp6(2),h.Q6J("ngIf",s.invalid),h.xp6(3),h.Oqu(h.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),h.xp6(2),h.s9C("placeholder",h.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),h.Q6J("ngModel",t.message),h.xp6(4),h.Oqu(h.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),h.xp6(5),h.hij(" ",h.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),h.xp6(2),h.Q6J("disabled",s.invalid),h.xp6(1),h.hij(" ",h.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[M.O5,oo,ws,nc,Np,ji,qh,Jh,y_,cs,Ot,Nr,qr,_r,yt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),r})(),Xp=(()=>{class r{transform(e,t,s){return e[`${s}_${t}`]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=h.Yjl({name:"localisedText",type:r,pure:!0}),r})(),ef=(()=>{class r{transform(e,t){return e["link_"+t]||e.link_en}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=h.Yjl({name:"localisedLink",type:r,pure:!0}),r})(),tf=(()=>{class r{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=h.Yjl({name:"footerLogoPath",type:r,pure:!0}),r})();function nf(r,a){if(1&r&&(h.TgZ(0,"a",13),h.ALo(1,"localisedLink"),h._UZ(2,"img",14),h.ALo(3,"footerLogoPath"),h.qZA()),2&r){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("href",h.xi3(1,2,e,t.language),h.LSH),h.xp6(2),h.s9C("src",h.lcZ(3,5,e.logo),h.LSH)}}function rf(r,a){if(1&r&&(h.TgZ(0,"span"),h._UZ(1,"img",14),h.ALo(2,"footerLogoPath"),h.qZA()),2&r){const e=h.oxw().$implicit;h.xp6(1),h.s9C("src",h.lcZ(2,1,e.logo),h.LSH)}}function af(r,a){if(1&r&&(h.TgZ(0,"div"),h.YNc(1,nf,4,7,"a",11),h.ALo(2,"localisedLink"),h.YNc(3,rf,3,3,"span",12),h.ALo(4,"localisedLink"),h.qZA()),2&r){const e=a.$implicit,t=h.oxw(3);h.xp6(1),h.Q6J("ngIf",h.xi3(2,2,e,t.language)),h.xp6(2),h.Q6J("ngIf",!h.xi3(4,5,e,t.language))}}const sf=function(r){return{"min-height":r}};function _H(r,a){if(1&r&&(h.TgZ(0,"div",10),h.YNc(1,af,5,8,"div",5),h.qZA()),2&r){const e=h.oxw().$implicit,t=h.oxw();h.Q6J("ngStyle",h.VKq(2,sf,t.columnContentHeight+"px")),h.xp6(1),h.Q6J("ngForOf",e.elements)}}const po=function(r){return{color:r}};function bH(r,a){if(1&r&&(h.TgZ(0,"i",20),h._uU(1),h.qZA()),2&r){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(2,po,t.linksTextColor)),h.xp6(1),h.hij(" ",e.icon," ")}}function CH(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"span",21),h.NdJ("click",function(){h.CHM(e);const s=h.oxw().$implicit,u=h.oxw(3);return h.KtG(u.openDialog(s.dialog))}),h._uU(1),h.ALo(2,"localisedText"),h.qZA()}if(2&r){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(6,po,t.linksTextColor)),h.xp6(1),h.hij("",h.Dn7(2,2,e,t.language,"label")," ")}}function wH(r,a){if(1&r&&(h.TgZ(0,"a",22),h.ALo(1,"localisedLink"),h._uU(2),h.ALo(3,"localisedText"),h.qZA()),2&r){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("href",h.xi3(1,3,e,t.language),h.LSH)("ngStyle",h.VKq(10,po,t.linksTextColor)),h.xp6(2),h.Oqu(h.Dn7(3,6,e,t.language,"label"))}}function yH(r,a){if(1&r&&(h.TgZ(0,"span",10),h._uU(1),h.ALo(2,"localisedText"),h.qZA()),2&r){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(6,po,t.linksTextColor)),h.xp6(1),h.Oqu(h.Dn7(2,2,e,t.language,"label"))}}function vH(r,a){if(1&r&&(h.TgZ(0,"div",16),h.YNc(1,bH,2,4,"i",17),h.YNc(2,CH,3,8,"span",18),h.YNc(3,wH,4,12,"a",19),h.ALo(4,"localisedLink"),h.YNc(5,yH,3,8,"span",9),h.ALo(6,"localisedLink"),h.qZA()),2&r){const e=a.$implicit,t=h.oxw(3);h.xp6(1),h.Q6J("ngIf",e.icon),h.xp6(1),h.Q6J("ngIf",e.dialog),h.xp6(1),h.Q6J("ngIf",h.xi3(4,4,e,t.language)&&!e.dialog),h.xp6(2),h.Q6J("ngIf",!h.xi3(6,7,e,t.language)&&!e.dialog)}}const AH=function(r){return{height:r}};function xH(r,a){if(1&r&&(h.TgZ(0,"div",10),h.YNc(1,vH,7,10,"div",15),h.qZA()),2&r){const e=h.oxw().$implicit,t=h.oxw();h.Q6J("ngStyle",h.VKq(2,AH,t.columnContentHeight+"px")),h.xp6(1),h.Q6J("ngForOf",e.elements)}}function TH(r,a){if(1&r&&(h.TgZ(0,"div",7)(1,"h6",8),h._uU(2),h.ALo(3,"localisedText"),h.qZA(),h.YNc(4,_H,2,4,"div",9),h.YNc(5,xH,2,4,"div",9),h.qZA()),2&r){const e=a.$implicit,t=h.oxw();h.ekj("my-auto",t.containsLogos),h.xp6(1),h.Q6J("ngStyle",h.VKq(10,po,t.headersTextColor)),h.xp6(1),h.hij(" ",h.Dn7(3,6,e,t.language,"title")," "),h.xp6(2),h.Q6J("ngIf",e.logos),h.xp6(1),h.Q6J("ngIf",e.elements&&!e.logos)}}function SH(r,a){if(1&r&&(h.TgZ(0,"span")(1,"a",6),h._uU(2),h.qZA()()),2&r){const e=a.$implicit,t=a.index,s=h.oxw();h.xp6(1),h.Q6J("href",e.url,h.LSH)("ngStyle",h.VKq(3,po,s.copyrightTextColor)),h.xp6(1),h.Oqu(t?", "+e.name:e.name)}}const EH=function(r){return{background:r}};let qE=(()=>{class r{constructor(e,t,s,u){this.storeService=e,this.translateService=t,this.utilsService=s,this.dialog=u,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="N/A",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=E(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=E(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(e=>{const t=e.match("\\bVersion:\\s*([^,\\s]+)");null!==t&&(this.backendVersion=t[1])}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(e){const t=on();"reportIssue"===e&&(t.width="550px",this.dialog.open(Zp,t))}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(gi),h.Y36(hn),h.Y36(Ei),h.Y36(Cn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(h.TgZ(0,"footer",0)(1,"div",1),h.YNc(2,TH,6,12,"div",2),h.qZA(),h._UZ(3,"hr",3),h.TgZ(4,"div",4),h._uU(5),h.YNc(6,SH,3,5,"span",5),h._uU(7,", web application: "),h.TgZ(8,"a",6),h._uU(9),h.qZA(),h._uU(10,", server: "),h.TgZ(11,"a",6),h._uU(12),h.qZA()()()),2&e&&(h.Q6J("ngStyle",h.VKq(11,EH,t.bgColor)),h.xp6(2),h.Q6J("ngForOf",t.footerColumns),h.xp6(2),h.Q6J("ngStyle",h.VKq(13,po,t.copyrightTextColor)),h.xp6(1),h.hij(" \xa9 ",t.currentYear," Copyright: "),h.xp6(1),h.Q6J("ngForOf",t.copyrightItems),h.xp6(2),h.Q6J("href",t.githubRepository,h.LSH)("ngStyle",h.VKq(15,po,t.copyrightTextColor)),h.xp6(1),h.Oqu(t.guiVersion),h.xp6(2),h.Q6J("href",t.githubBackendRepository,h.LSH)("ngStyle",h.VKq(17,po,t.copyrightTextColor)),h.xp6(1),h.Oqu(t.backendVersion))},dependencies:[M.sg,M.O5,M.PC,Xp,ef,tf],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),r})();function MH(r,a){if(1&r&&(h.TgZ(0,"div",8),h._UZ(1,"div",9),h.qZA()),2&r){const e=h.oxw();h.xp6(1),h.Q6J("innerHTML",e.logo,h.oJD)}}function DH(r,a){if(1&r&&(h.TgZ(0,"div",10),h._UZ(1,"div",11)(2,"mat-icon",12),h.qZA()),2&r){const e=h.oxw();h.xp6(1),h.Q6J("innerHTML",e.logo,h.oJD)}}const HH=function(r){return{color:r}};function RH(r,a){if(1&r&&(h.TgZ(0,"p",13),h._uU(1),h.qZA()),2&r){const e=h.oxw();h.Q6J("ngStyle",h.VKq(2,HH,e.textColor)),h.xp6(1),h.hij(" ",e.headerTitle," ")}}const PH=function(r,a){return{background:r,color:a}},IH=function(r,a){return{"min-height":r,"background-color":a}};let kH=(()=>{class r{constructor(e,t,s,u){this.storeService=e,this.sanitizer=t,this.preferredLangService=s,this.translateService=u,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(gi),h.Y36(hi),h.Y36($A),h.Y36(hn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0),h.YNc(1,MH,2,1,"div",1),h.YNc(2,DH,3,1,"div",2),h.YNc(3,RH,2,4,"p",3),h.qZA(),h.TgZ(4,"div",4)(5,"div",5)(6,"div",6),h._UZ(7,"router-outlet"),h.qZA(),h.TgZ(8,"div",7),h._UZ(9,"perun-web-apps-footer"),h.qZA()()()),2&e&&(h.Q6J("ngStyle",h.WLB(5,PH,t.headerBackgroundColor,t.headerTextColor)),h.xp6(1),h.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),h.xp6(1),h.Q6J("ngIf","publications"===t.application),h.xp6(1),h.Q6J("ngIf",!!t.headerTitle),h.xp6(2),h.Q6J("ngStyle",h.WLB(8,IH,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[M.O5,M.PC,Qn,Uo,qE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),r})(),zE=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[M.ez]}),r})(),VH=(()=>{class r{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=h.Yjl({name:"userFullName",type:r,pure:!0}),r})(),V0=(()=>{class r{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const s=this.storage.getProperty("custom_labels");if(s)for(const u of s)if(u.label===e)return u[t];return e}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(hn,16),h.Y36(gi,16))},r.\u0275pipe=h.Yjl({name:"customTranslate",type:r,pure:!0}),r})();function qH(r,a){if(1&r&&(h.O4$(),h._UZ(0,"circle",4)),2&r){const e=h.oxw(),t=h.MAs(1);h.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),h.uIk("r",e._getCircleRadius())}}function zH(r,a){if(1&r&&(h.O4$(),h._UZ(0,"circle",4)),2&r){const e=h.oxw(),t=h.MAs(1);h.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),h.uIk("r",e._getCircleRadius())}}const WH=zi(class{constructor(r){this._elementRef=r}},"primary"),$H=new h.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function QH(){return{diameter:100}}});class Cr extends WH{constructor(a,e,t,s,u,d,l,n){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Qt.w0.EMPTY,this.mode="determinate";const i=Cr._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),i.has(t.head)||i.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===s&&!!u&&!u._forceAnimations,"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),u&&(u.color&&(this.color=this.defaultColor=u.color),u.diameter&&(this.diameter=u.diameter),u.strokeWidth&&(this.strokeWidth=u.strokeWidth)),e.isBrowser&&e.SAFARI&&l&&d&&n&&(this._resizeSubscription=l.change(150).subscribe(()=>{"indeterminate"===this.mode&&n.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=Pi(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=Pi(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,Pi(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Qc(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){const e=50*(a.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Cr._diameters;let s=t.get(a);if(!s||!s.has(e)){const u=this._document.createElement("style");u.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),u.textContent=this._getAnimationText(),a.appendChild(u),s||(s=new Set,t.set(a,s)),s.add(e)}}_getAnimationText(){const a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Cr._diameters=new WeakMap,Cr.\u0275fac=function(a){return new(a||Cr)(h.Y36(h.SBq),h.Y36(Jt),h.Y36(M.K0,8),h.Y36(h.QbO,8),h.Y36($H),h.Y36(h.sBO),h.Y36(ts),h.Y36(h.R0b))},Cr.\u0275cmp=h.Xpm({type:Cr,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(h.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),h.Udp("width",e.diameter,"px")("height",e.diameter,"px"),h.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[h.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(h.O4$(),h.TgZ(0,"svg",0,1),h.YNc(2,qH,1,11,"circle",2),h.YNc(3,zH,1,9,"circle",3),h.qZA()),2&a&&(h.Udp("width",e.diameter,"px")("height",e.diameter,"px"),h.Q6J("ngSwitch","indeterminate"===e.mode),h.uIk("viewBox",e._getViewBox()),h.xp6(2),h.Q6J("ngSwitchCase",!0),h.xp6(1),h.Q6J("ngSwitchCase",!1))},dependencies:[M.RF,M.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let lC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Qe,M.ez,Qe]}),r})();function JH(r,a){1&r&&h._UZ(0,"mat-spinner",7)}function KH(r,a){1&r&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&r&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function ZH(r,a){1&r&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&r&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function XH(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.TgZ(5,"input",9,10),h.NdJ("ngModelChange",function(s){h.CHM(e);const u=h.oxw();return h.KtG(u.subject=s)}),h.qZA(),h.YNc(7,KH,3,3,"mat-error",11),h.qZA(),h.TgZ(8,"mat-form-field")(9,"mat-label"),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"textarea",12,13),h.NdJ("ngModelChange",function(s){h.CHM(e);const u=h.oxw();return h.KtG(u.message=s)}),h.ALo(14,"translate"),h._uU(15," "),h.qZA(),h.YNc(16,ZH,3,3,"mat-error",11),h.qZA()()}if(2&r){const e=h.MAs(6),t=h.MAs(13),s=h.oxw();h.xp6(3),h.Oqu(h.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),h.xp6(2),h.Q6J("ngModel",s.subject),h.xp6(2),h.Q6J("ngIf",e.invalid),h.xp6(3),h.Oqu(h.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),h.xp6(2),h.s9C("placeholder",h.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),h.Q6J("ngModel",s.message),h.xp6(4),h.Q6J("ngIf",t.invalid)}}let eR=(()=>{class r{constructor(e,t,s,u,d,l){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=u,this.data=d,this.storeService=l,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const s=/"password":".+?"/;let u=JSON.stringify(this.data.error.payload);u=u.replace(s,'"password":"####"'),t=t.concat("Payload:\n"+u+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",E(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn),h.Y36(hn),h.Y36(Wr),h.Y36(ks),h.Y36(ao),h.Y36(gi))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,JH,1,0,"mat-spinner",1),h.YNc(4,XH,17,13,"div",2),h.TgZ(5,"div",3)(6,"div",4)(7,"button",5),h.NdJ("click",function(){return t.dialogRef.close()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",6),h.NdJ("click",function(){return t.sendBugReport()}),h._uU(11),h.ALo(12,"translate"),h.qZA()()()),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),h.xp6(2),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading),h.xp6(4),h.hij(" ",h.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),h.xp6(2),h.Q6J("disabled",""===t.message||""===t.subject||t.loading),h.xp6(1),h.hij(" ",h.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[M.O5,Nr,qr,_r,ji,qh,Jh,cs,oo,ws,nc,Np,Ot,Cr,yt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),r})(),tR=(()=>{class r{constructor(e,t,s){this.dialogRef=e,this.dialog=t,this.data=s}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=on();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(eR,e)}),this.dialogRef.close()}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn),h.Y36(Cn),h.Y36(ao))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.qZA(),h.TgZ(2,"div",1),h._uU(3),h.qZA(),h.TgZ(4,"div",2)(5,"div",3)(6,"button",4),h.NdJ("click",function(){return t.onBugReportClick()}),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.TgZ(9,"button",5),h.NdJ("click",function(){return t.onCloseClick()}),h._uU(10),h.ALo(11,"translate"),h.qZA()()()),2&e&&(h.xp6(1),h.Oqu(t.data.title),h.xp6(2),h.hij(" ",t.data.description,"\n"),h.xp6(3),h.Q6J("hidden","error"!==t.data.type),h.xp6(1),h.hij(" ",h.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),h.xp6(3),h.hij(" ",h.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Nr,qr,_r,ji,yt]}),r})();const iR=[[["caption"]],[["colgroup"],["col"]]],nR=["caption","colgroup, col"];function O0(r){return class extends r{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=ze(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const qd=new h.OlP("CDK_TABLE");let zd=(()=>{class r{constructor(e){this.template=e}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Rgc))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkCellDef",""]]}),r})(),Gd=(()=>{class r{constructor(e){this.template=e}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Rgc))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkHeaderCellDef",""]]}),r})(),cC=(()=>{class r{constructor(e){this.template=e}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Rgc))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkFooterCellDef",""]]}),r})();class sR{}const lR=O0(sR);let fo=(()=>{class r extends lR{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=ze(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(qd,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,s){if(1&e&&(h.Suo(s,zd,5),h.Suo(s,Gd,5),h.Suo(s,cC,5)),2&e){let u;h.iGM(u=h.CRH())&&(t.cell=u.first),h.iGM(u=h.CRH())&&(t.headerCell=u.first),h.iGM(u=h.CRH())&&(t.footerCell=u.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[h._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:r}]),h.qOj]}),r})();class L0{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let j0=(()=>{class r extends L0{constructor(e,t){super(e,t)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(fo),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[h.qOj]}),r})(),F0=(()=>{class r extends L0{constructor(e,t){if(super(e,t),1===e._table?._elementRef.nativeElement.nodeType){const s=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===s||"treegrid"===s?"gridcell":"cell")}}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(fo),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[h.qOj]}),r})();class WE{constructor(){this.tasks=[],this.endTasks=[]}}const U0=new h.OlP("_COALESCED_STYLE_SCHEDULER");let $E=(()=>{class r{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new He.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new WE,this._getScheduleObservable().pipe(gt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new WE;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,$e.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Dt.q)(1))}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(h.R0b))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),N0=(()=>{class r{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof lf?e.headerCell.template:this instanceof cf?e.footerCell.template:e.cell.template}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Rgc),h.Y36(h.ZZ4))},r.\u0275dir=h.lG2({type:r,features:[h.TTD]}),r})();class cR extends N0{}const dR=O0(cR);let lf=(()=>{class r extends dR{constructor(e,t,s){super(e,t),this._table=s}ngOnChanges(e){super.ngOnChanges(e)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(qd,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[h.qOj,h.TTD]}),r})();class uR extends N0{}const hR=O0(uR);let cf=(()=>{class r extends hR{constructor(e,t,s){super(e,t),this._table=s}ngOnChanges(e){super.ngOnChanges(e)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(qd,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[h.qOj,h.TTD]}),r})(),dC=(()=>{class r extends N0{constructor(e,t,s){super(e,t),this._table=s}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(qd,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[h.qOj]}),r})(),mo=(()=>{class r{constructor(e){this._viewContainer=e,r.mostRecentCellOutlet=this}ngOnDestroy(){r.mostRecentCellOutlet===this&&(r.mostRecentCellOutlet=null)}}return r.mostRecentCellOutlet=null,r.\u0275fac=function(e){return new(e||r)(h.Y36(h.s_b))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkCellOutlet",""]]}),r})(),q0=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=h.Xpm({type:r,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[mo],encapsulation:2}),r})(),G0=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=h.Xpm({type:r,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[mo],encapsulation:2}),r})(),uC=(()=>{class r{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Rgc))},r.\u0275dir=h.lG2({type:r,selectors:[["ng-template","cdkNoDataRow",""]]}),r})();const QE=["top","bottom","left","right"];class pR{constructor(a,e,t,s,u=!0,d=!0,l){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=s,this._isBrowser=u,this._needsPositionStickyOnElement=d,this._positionListener=l,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(a,e){const t=[];for(const s of a)if(s.nodeType===s.ELEMENT_NODE){t.push(s);for(let u=0;u{for(const s of t)this._removeStickyStyle(s,e)})}updateStickyColumns(a,e,t,s=!0){if(!a.length||!this._isBrowser||!e.some(p=>p)&&!t.some(p=>p))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const u=a[0],d=u.children.length,l=this._getCellWidths(u,s),n=this._getStickyStartColumnPositions(l,e),i=this._getStickyEndColumnPositions(l,t),o=e.lastIndexOf(!0),c=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const p="rtl"===this.direction,m=p?"right":"left",g=p?"left":"right";for(const f of a)for(let w=0;we[w]?f:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===c?[]:l.slice(c).map((f,w)=>t[w+c]?f:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const s="bottom"===t?a.slice().reverse():a,u="bottom"===t?e.slice().reverse():e,d=[],l=[],n=[];for(let o=0,c=0;o{for(let o=0;o{e.some(s=>!s)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(a,e){for(const s of e)a.style[s]="",a.classList.remove(this._borderCellCss[s]);QE.some(s=>-1===e.indexOf(s)&&a.style[s])?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}_addStickyStyle(a,e,t,s){a.classList.add(this._stickCellCss),s&&a.classList.add(this._borderCellCss[e]),a.style[e]=`${t}px`,a.style.zIndex=this._getCalculatedZIndex(a),this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(a){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const s of QE)a.style[s]&&(t+=e[s]);return t?`${t}`:""}_getCellWidths(a,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],s=a.children;for(let u=0;u0;u--)e[u]&&(t[u]=s,s+=a[u]);return t}}const W0=new h.OlP("CDK_SPL");let hC=(()=>{class r{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.s_b),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r,selectors:[["","rowOutlet",""]]}),r})(),pC=(()=>{class r{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.s_b),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r,selectors:[["","headerRowOutlet",""]]}),r})(),fC=(()=>{class r{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.s_b),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r,selectors:[["","footerRowOutlet",""]]}),r})(),mC=(()=>{class r{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.s_b),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r,selectors:[["","noDataRowOutlet",""]]}),r})(),gC=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c,p,m){this._differs=e,this._changeDetectorRef=t,this._elementRef=s,this._dir=d,this._platform=n,this._viewRepeater=i,this._coalescedStyleScheduler=o,this._viewportRuler=c,this._stickyPositioningListener=p,this._ngZone=m,this._onDestroy=new He.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new h.vpe,this.viewChange=new $t({start:0,end:Number.MAX_VALUE}),u||this._elementRef.nativeElement.setAttribute("role","table"),this._document=l,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=ze(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=ze(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(gt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),El(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(s,u,d)=>this._getEmbeddedViewArgs(s.item,d),s=>s.item.data,s=>{1===s.operation&&s.context&&this._renderCellTemplateForItem(s.record.item.rowDef,s.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(s=>{t.get(s.currentIndex).context.$implicit=s.item.data}),this._updateNoDataRow(),this._ngZone&&h.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Dt.q)(1),gt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),s=this._elementRef.nativeElement.querySelector("thead");s&&(s.style.display=e.length?"":"none");const u=this._headerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,u,"top"),this._headerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),s=this._elementRef.nativeElement.querySelector("tfoot");s&&(s.style.display=e.length?"":"none");const u=this._footerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,u,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,u),this._footerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),s=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...s],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((u,d)=>{this._addStickyColumnStyles([u],this._headerRowDefs[d])}),this._rowDefs.forEach(u=>{const d=[];for(let l=0;l{this._addStickyColumnStyles([u],this._footerRowDefs[d])}),Array.from(this._columnDefsByName.values()).forEach(u=>u.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let s=0;s{const l=s&&s.has(d)?s.get(d):[];if(l.length){const n=l.shift();return n.dataIndex=t,n}return{data:e,rowDef:d,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),_C(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=_C(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=_C(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=_C(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(d,l)=>d||!!l.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const s=this._headerRowDefs.reduce(e,!1);s&&this._forceRenderHeaderRows();const u=this._footerRowDefs.reduce(e,!1);return u&&this._forceRenderFooterRows(),t||s||u}_switchDataSource(e){this._data=[],El(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;El(this.dataSource)?e=this.dataSource.connect(this):Kt(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,Me.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(gt(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const s=Array.from(t.columns||[]).map(l=>this._columnDefsByName.get(l)),u=s.map(l=>l.sticky),d=s.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(e,u,d,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let s=0;s!u.when||u.when(t,e));else{let u=this._rowDefs.find(d=>d.when&&d.when(t,e))||this._defaultRowDef;u&&s.push(u)}return s}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,s,u={}){const d=e.viewContainer.createEmbeddedView(t.template,u,s);return this._renderCellTemplateForItem(t,u),d}_renderCellTemplateForItem(e,t){for(let s of this._getCellTemplates(e))mo.mostRecentCellOutlet&&mo.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,s=e.length;t{const s=this._columnDefsByName.get(t);return e.extractCellTemplate(s)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const s of t){const u=this._document.createElement(s.tag);u.setAttribute("role","rowgroup");for(const d of s.outlets)u.appendChild(d.elementRef.nativeElement);e.appendChild(u)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,s)=>t||s.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new pR(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,Me.of)()).pipe(gt(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const s=this._noDataRowOutlet.viewContainer;if(t){const u=s.createEmbeddedView(e.templateRef),d=u.rootNodes[0];1===u.rootNodes.length&&d?.nodeType===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(e._contentClassName))}else s.clear();this._isShowingNoDataRow=t}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.ZZ4),h.Y36(h.sBO),h.Y36(h.SBq),h.$8M("role"),h.Y36(Sn,8),h.Y36(M.K0),h.Y36(Jt),h.Y36(Ka),h.Y36(U0),h.Y36(ts),h.Y36(W0,12),h.Y36(h.R0b,8))},r.\u0275cmp=h.Xpm({type:r,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,s){if(1&e&&(h.Suo(s,uC,5),h.Suo(s,fo,5),h.Suo(s,dC,5),h.Suo(s,lf,5),h.Suo(s,cf,5)),2&e){let u;h.iGM(u=h.CRH())&&(t._noDataRow=u.first),h.iGM(u=h.CRH())&&(t._contentColumnDefs=u),h.iGM(u=h.CRH())&&(t._contentRowDefs=u),h.iGM(u=h.CRH())&&(t._contentHeaderRowDefs=u),h.iGM(u=h.CRH())&&(t._contentFooterRowDefs=u)}},viewQuery:function(e,t){if(1&e&&(h.Gf(hC,7),h.Gf(pC,7),h.Gf(fC,7),h.Gf(mC,7)),2&e){let s;h.iGM(s=h.CRH())&&(t._rowOutlet=s.first),h.iGM(s=h.CRH())&&(t._headerRowOutlet=s.first),h.iGM(s=h.CRH())&&(t._footerRowOutlet=s.first),h.iGM(s=h.CRH())&&(t._noDataRowOutlet=s.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&h.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[h._Bn([{provide:qd,useExisting:r},{provide:Ka,useClass:Wg},{provide:U0,useClass:$E},{provide:W0,useValue:null}])],ngContentSelectors:nR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(h.F$t(iR),h.Hsn(0),h.Hsn(1,1),h.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[hC,pC,fC,mC],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),r})();function _C(r,a){return r.concat(Array.from(a))}let mR=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Gi]}),r})();const gR=[[["caption"]],[["colgroup"],["col"]]],_R=["caption","colgroup, col"];let $0=(()=>{class r extends gC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&h.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[h._Bn([{provide:Ka,useClass:Wg},{provide:gC,useExisting:r},{provide:qd,useExisting:r},{provide:U0,useClass:$E},{provide:W0,useValue:null}]),h.qOj],ngContentSelectors:_R,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(h.F$t(gR),h.Hsn(0),h.Hsn(1,1),h.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[hC,pC,fC,mC],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),r})(),bC=(()=>{class r extends zd{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["","matCellDef",""]],features:[h._Bn([{provide:zd,useExisting:r}]),h.qOj]}),r})(),CC=(()=>{class r extends Gd{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["","matHeaderCellDef",""]],features:[h._Bn([{provide:Gd,useExisting:r}]),h.qOj]}),r})(),wC=(()=>{class r extends fo{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[h._Bn([{provide:fo,useExisting:r},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:r}]),h.qOj]}),r})(),yC=(()=>{class r extends j0{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[h.qOj]}),r})(),vC=(()=>{class r extends F0{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[h.qOj]}),r})(),JE=(()=>{class r extends lf{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[h._Bn([{provide:lf,useExisting:r}]),h.qOj]}),r})(),Q0=(()=>{class r extends dC{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[h._Bn([{provide:dC,useExisting:r}]),h.qOj]}),r})(),KE=(()=>{class r extends q0{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[h._Bn([{provide:q0,useExisting:r}]),h.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[mo],encapsulation:2}),r})(),Y0=(()=>{class r extends G0{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[h._Bn([{provide:G0,useExisting:r}]),h.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[mo],encapsulation:2}),r})(),AC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[mR,Qe,Qe]}),r})();class MR extends Gg{constructor(a=[]){super(),this._renderData=new $t([]),this._filter=new $t(""),this._internalPageChanges=new He.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const s=e[t];if(Xu(s)){const u=Number(s);return u<9007199254740991?u:s}return s},this.sortData=(e,t)=>{const s=t.active,u=t.direction;return s&&""!=u?e.sort((d,l)=>{let n=this.sortingDataAccessor(d,s),i=this.sortingDataAccessor(l,s);const o=typeof n,c=typeof i;o!==c&&("number"===o&&(n+=""),"number"===c&&(i+=""));let p=0;return null!=n&&null!=i?n>i?p=1:n{const s=Object.keys(e).reduce((d,l)=>d+e[l]+"\u25ec","").toLowerCase(),u=t.trim().toLowerCase();return-1!=s.indexOf(u)},this._data=new $t(a),this._updateChangeSubscription()}get data(){return this._data.value}set data(a){a=Array.isArray(a)?a:[],this._data.next(a),this._renderChangesSubscription||this._filterData(a)}get filter(){return this._filter.value}set filter(a){this._filter.next(a),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(a){this._sort=a,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(a){this._paginator=a,this._updateChangeSubscription()}_updateChangeSubscription(){const a=this._sort?(0,an.T)(this._sort.sortChange,this._sort.initialized):(0,Me.of)(null),e=this._paginator?(0,an.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Me.of)(null),s=(0,Vt.a)([this._data,this._filter]).pipe((0,ct.U)(([l])=>this._filterData(l))),u=(0,Vt.a)([s,a]).pipe((0,ct.U)(([l])=>this._orderData(l))),d=(0,Vt.a)([u,e]).pipe((0,ct.U)(([l])=>this._pageData(l)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=d.subscribe(l=>this._renderData.next(l))}_filterData(a){return this.filteredData=null==this.filter||""===this.filter?a:a.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(a){return this.sort?this.sortData(a.slice(),this.sort):a}_pageData(a){if(!this.paginator)return a;const e=this.paginator.pageIndex*this.paginator.pageSize;return a.slice(e,e+this.paginator.pageSize)}_updatePaginator(a){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=a,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,s=Math.min(e.pageIndex,t);s!==e.pageIndex&&(e.pageIndex=s,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class xC extends MR{}function DR(r,a){1&r&&h._UZ(0,"mat-spinner",3)}function HR(r,a){1&r&&h._UZ(0,"th",15)}function RR(r,a){if(1&r&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&r){const e=a.$implicit;h.xp6(1),h.hij(" ",e.userExtSource.extSource.name," ")}}function PR(r,a){1&r&&h._UZ(0,"tr",17)}function IR(r,a){1&r&&h._UZ(0,"tr",18)}function kR(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"div")(1,"div",4)(2,"p"),h._uU(3),h.ALo(4,"translate"),h.ALo(5,"customTranslate"),h.qZA(),h.TgZ(6,"div",5),h._uU(7),h.ALo(8,"translate"),h.ALo(9,"customTranslate"),h.qZA(),h.TgZ(10,"table",6),h.ynx(11,7),h.YNc(12,HR,1,0,"th",8),h.YNc(13,RR,2,1,"td",9),h.BQk(),h.YNc(14,PR,1,0,"tr",10),h.YNc(15,IR,1,0,"tr",11),h.qZA()(),h.TgZ(16,"div",12)(17,"button",13),h.NdJ("click",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.onCancel())}),h._uU(18),h.ALo(19,"translate"),h.ALo(20,"customTranslate"),h.qZA(),h.TgZ(21,"button",14),h.NdJ("click",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.onSubmit())}),h._uU(22),h.ALo(23,"translate"),h.ALo(24,"customTranslate"),h.qZA()()()}if(2&r){const e=h.oxw();h.xp6(3),h.hij(" ",h.lcZ(4,7,h.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),h.xp6(4),h.hij(" ",h.lcZ(8,11,h.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),h.xp6(3),h.Q6J("dataSource",e.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",e.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",e.displayedColumns),h.xp6(3),h.hij(" ",h.lcZ(19,15,h.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),h.xp6(4),h.hij(" ",h.lcZ(23,19,h.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let VR=(()=>{class r{constructor(e,t,s,u,d){this.dialogRef=e,this.data=t,this.usersManagerService=s,this.translate=u,this.notificator=d,this.force=!1,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new xC(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=this.data.extSources.map(t=>t.userExtSource.id);this.usersManagerService.removeUserExtSources(this.data.userId,e,this.force).subscribe({next:()=>{this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn),h.Y36(ao),h.Y36(Vs),h.Y36(bf),h.Y36(Wr))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"customTranslate"),h.qZA(),h.TgZ(4,"div"),h.YNc(5,DR,1,0,"mat-spinner",1),h.YNc(6,kR,25,23,"div",2),h.qZA()),2&e&&(h.xp6(1),h.hij(" ",h.lcZ(2,6,h.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),h.xp6(3),h.Tol(t.theme),h.xp6(1),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading))},dependencies:[M.O5,$0,CC,JE,wC,bC,Q0,yC,vC,KE,Y0,Nr,qr,_r,ji,Cr,yt,V0]}),r})();function JR(r,a){1&r&&(h.TgZ(0,"mat-error",8),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"customTranslate"),h.qZA()),2&r&&(h.xp6(1),h.Oqu(h.lcZ(2,1,h.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class go{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Qb(null,[Ql.required,Ql.pattern(go.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const a=this.data.attribute?.value??[],e=this.sshControl.value;a.includes(e)||a.push(e),this.data.attribute.value=a,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{a.pop()})}}function iP(r,a){if(1&r&&(h.TgZ(0,"div",9),h._UZ(1,"perun-web-apps-notification",10),h.qZA()),2&r){const e=a.$implicit;h.xp6(1),h.Q6J("data",e)("inDialog",!0)}}function nP(r,a){if(1&r&&(h.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),h.YNc(2,iP,2,2,"div",8),h.qZA()()),2&r){const e=h.oxw();h.xp6(2),h.Q6J("cdkVirtualForOf",e.notifications)}}function rP(r,a){1&r&&(h.TgZ(0,"perun-web-apps-alert",11),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"customTranslate"),h.qZA()),2&r&&(h.xp6(1),h.Oqu(h.lcZ(2,1,h.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}go.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],go.sshKeyPattern="^("+go.allowedSshKeys.join("|")+").+$",go.\u0275fac=function(a){return new(a||go)(h.Y36(bn),h.Y36(ao),h.Y36(eu))},go.\u0275cmp=h.Xpm({type:go,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(a,e){1&a&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"customTranslate"),h.qZA(),h.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),h._UZ(7,"textarea",3),h.ALo(8,"translate"),h.ALo(9,"customTranslate"),h.qZA(),h.YNc(10,JR,4,5,"mat-error",4),h.qZA()(),h.TgZ(11,"div",5)(12,"button",6),h.NdJ("click",function(){return e.onCancel()}),h._uU(13),h.ALo(14,"translate"),h.ALo(15,"customTranslate"),h.qZA(),h.TgZ(16,"button",7),h.NdJ("click",function(){return e.onSubmit()}),h._uU(17),h.ALo(18,"translate"),h.ALo(19,"customTranslate"),h.qZA()()),2&a&&(h.xp6(1),h.Oqu(h.lcZ(2,7,h.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),h.xp6(6),h.s9C("placeholder",h.lcZ(8,11,h.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),h.Q6J("formControl",e.sshControl),h.xp6(3),h.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),h.xp6(3),h.hij(" ",h.lcZ(14,15,h.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),h.xp6(3),h.Q6J("disabled",e.sshControl.invalid),h.xp6(1),h.hij(" ",h.lcZ(18,19,h.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[M.O5,oo,ws,nc,ji,qh,Jh,$p,Se,Ot,Nr,qr,_r,yt,V0],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let XE=(()=>{class r{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn),h.Y36(Gl))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"customTranslate"),h.qZA(),h.YNc(4,nP,3,1,"div",1),h.YNc(5,rP,4,5,"perun-web-apps-alert",2),h.TgZ(6,"div",3)(7,"button",4),h.NdJ("click",function(){return t.onClear()}),h._uU(8),h.ALo(9,"translate"),h.ALo(10,"customTranslate"),h.qZA(),h.TgZ(11,"button",5),h.NdJ("click",function(){return t.onCancel()}),h._uU(12),h.ALo(13,"translate"),h.ALo(14,"customTranslate"),h.qZA()()),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,5,h.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),h.xp6(3),h.Q6J("ngIf",0!==t.notifications.length),h.xp6(1),h.Q6J("ngIf",0===t.notifications.length),h.xp6(3),h.hij(" ",h.lcZ(9,9,h.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),h.xp6(4),h.hij(" ",h.lcZ(13,13,h.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),r})();const aP=["*",[["mat-toolbar-row"]]],oP=["*","mat-toolbar-row"],sP=zi(class{constructor(r){this._elementRef=r}});let lP=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),r})(),cP=(()=>{class r extends sP{constructor(e,t,s){super(e),this._platform=t,this._document=s}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(Jt),h.Y36(M.K0))},r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-toolbar"]],contentQueries:function(e,t,s){if(1&e&&h.Suo(s,lP,5),2&e){let u;h.iGM(u=h.CRH())&&(t._toolbarRows=u)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&h.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[h.qOj],ngContentSelectors:oP,decls:2,vars:0,template:function(e,t){1&e&&(h.F$t(aP),h.Hsn(0),h.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),r})(),eM=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Qe,Qe]}),r})(),dP=0;const uP=wl(class{}),tM="mat-badge-content";let hP=(()=>{class r extends uP{constructor(e,t,s,u,d){super(),this._ngZone=e,this._elementRef=t,this._ariaDescriber=s,this._renderer=u,this._animationMode=d,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=dP++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=ze(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=ze(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(tM),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t)})}):e.classList.add(t),e}_updateRenderedContent(e){const t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${tM}`);for(const t of Array.from(e))t!==this._badgeElement&&t.remove()}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.R0b),h.Y36(h.SBq),h.Y36(td),h.Y36(h.Qsj),h.Y36(h.QbO,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&h.ekj("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t.content)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[h.qOj]}),r})(),pP=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[$a,Qe,Qe]}),r})();const J0=function(r){return{color:r}};function fP(r,a){if(1&r&&(h.TgZ(0,"button",8),h.ALo(1,"translate"),h.TgZ(2,"mat-icon",4),h._uU(3," apps "),h.qZA()()),2&r){const e=h.oxw(),t=h.MAs(2);h.Q6J("matMenuTriggerFor",t)("matTooltip",h.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),h.xp6(2),h.Q6J("ngStyle",h.VKq(5,J0,e.iconColor))}}function mP(r,a){if(1&r&&(h.TgZ(0,"span",9),h._uU(1),h.qZA()),2&r){const e=h.oxw();h.Q6J("ngStyle",h.VKq(6,J0,e.textColor)),h.xp6(1),h.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function gP(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"button",10),h.NdJ("click",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.onLogOut())}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&r&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"NAV.LOGOUT")," "))}let _P=(()=>{class r{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(ba))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(h.YNc(0,fP,4,7,"button",0),h.TgZ(1,"mat-menu",null,1)(3,"button",2),h.NdJ("click",function(){return t.redirectToUrl()})("auxclick",function(){return t.redirectToUrl()}),h.TgZ(4,"span"),h._uU(5),h.qZA()()(),h.TgZ(6,"button",3)(7,"mat-icon",4),h._uU(8," person "),h.qZA(),h.YNc(9,mP,2,8,"span",5),h.qZA(),h.TgZ(10,"mat-menu",null,6),h.YNc(12,gP,3,3,"button",7),h.qZA()),2&e){const s=h.MAs(11);h.Q6J("ngIf",t.url),h.xp6(5),h.Oqu(t.label),h.xp6(1),h.Q6J("matMenuTriggerFor",s),h.xp6(1),h.Q6J("ngStyle",h.VKq(6,J0,t.iconColor)),h.xp6(2),h.Q6J("ngIf",null!==t.user),h.xp6(3),h.Q6J("ngIf",t.logoutEnabled)}},dependencies:[M.O5,M.PC,Qn,W_,_a,Q_,ji,I_,yt],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),r})(),bP=(()=>{class r extends $o{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const e=Object.assign({},this.queryParams);delete e.applicationFormItems,this.queryParams=e}}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[h.qOj,h.TTD]}),r})();const Wd=function(r){return{color:r}};function CP(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"button",9),h.NdJ("click",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.onToggleSidenav())}),h.TgZ(1,"mat-icon"),h._uU(2,"menu"),h.qZA()()}if(2&r){const e=h.oxw();h.Q6J("ngStyle",h.VKq(1,Wd,e.iconColor))}}function wP(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),h._uU(3," language "),h.qZA()(),h.TgZ(4,"mat-menu",null,13)(6,"button",14),h.NdJ("click",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.changeLanguage())}),h._uU(7),h.ALo(8,"translate"),h.qZA()()()}if(2&r){const e=h.MAs(5),t=h.oxw();h.Q6J("ngStyle",h.VKq(6,Wd,t.textColor)),h.xp6(1),h.Q6J("matMenuTriggerFor",e),h.xp6(1),h.Q6J("ngStyle",h.VKq(8,Wd,t.iconColor)),h.xp6(5),h.hij(" ",h.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function yP(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"button",15),h.NdJ("click",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.showNotificationHistory())}),h.ALo(1,"translate"),h.TgZ(2,"mat-icon",16),h._uU(3),h.qZA()()}if(2&r){const e=h.oxw();h.Q6J("matTooltip",h.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),h.xp6(2),h.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),h.Q6J("ngStyle",h.VKq(7,Wd,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),h.xp6(1),h.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function vP(r,a){if(1&r&&h._UZ(0,"perun-web-apps-header-menu",17),2&r){const e=h.oxw();h.Q6J("url",e.otherAppUrl)("label",e.otherAppLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor)}}const AP=function(r){return{background:r}},xP=function(){return[]},TP=function(){return["/"]};let SP=(()=>{class r{constructor(e,t,s,u,d,l,n){this.storeService=e,this.sanitizer=t,this.translateService=s,this.otherApplicationService=u,this.notificationStorageService=d,this.dialog=l,this.route=n,this.sidenavToggle=new h.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(e="en"){return this.storeService.getProperty(this.otherApp===$r.Profile?"profile_label_en":"en"===e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===$r.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0)}(this.otherApp!==$r.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const e=on();e.width="520px",this.dialog.open(XE,e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(gi),h.Y36(hi),h.Y36(hn),h.Y36(Sb),h.Y36(Gl),h.Y36(Cn),h.Y36(jn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(e,t){1&e&&(h.TgZ(0,"mat-toolbar",0)(1,"div",1),h.YNc(2,CP,3,3,"button",2),h._UZ(3,"a",3),h.TgZ(4,"p",4),h._uU(5),h.qZA()(),h.TgZ(6,"div",5),h.YNc(7,wP,9,10,"div",6),h.YNc(8,yP,4,9,"button",7),h.YNc(9,vP,1,6,"perun-web-apps-header-menu",8),h.qZA()()),2&e&&(h.Q6J("ngStyle",h.VKq(11,AP,t.bgColor)),h.xp6(2),h.Q6J("ngIf",t.showToggle),h.xp6(1),h.Q6J("innerHTML",t.logo,h.oJD)("routerLink",t.disableLogo?h.DdM(13,xP):h.DdM(14,TP))("queryParams",t.route.snapshot.queryParams),h.xp6(1),h.Q6J("ngStyle",h.VKq(15,Wd,t.textColor)),h.xp6(1),h.hij(" ",t.label," "),h.xp6(1),h.Q6J("ngStyle",h.VKq(17,Wd,t.navTextColor)),h.xp6(1),h.Q6J("ngIf",t.showLanguageMenu),h.xp6(1),h.Q6J("ngIf",t.showNotifications),h.xp6(1),h.Q6J("ngIf",t.showHeaderMenu))},dependencies:[M.O5,M.PC,nl,Qn,W_,_a,Q_,ji,I_,cP,hP,_P,bP,yt],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),r})();const EP=function(r){return{"background-color":r}};function MP(r,a){if(1&r&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-header",1),h.TgZ(2,"div",2)(3,"div",3),h._UZ(4,"router-outlet"),h.qZA(),h.TgZ(5,"div",4),h._UZ(6,"perun-web-apps-footer"),h.qZA()()()),2&r){const e=h.oxw();h.xp6(1),h.Q6J("showToggle",!1)("otherApp",e.otherApp),h.xp6(1),h.Q6J("ngStyle",h.VKq(3,EP,e.contentBackgroundColor))}}function DP(r,a){1&r&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-login-screen-base",5),h.ALo(2,"translate"),h.qZA()),2&r&&(h.xp6(1),h.Q6J("application","consolidator")("headerTitle",h.lcZ(2,2,"HEADER.TITLE")))}let HP=(()=>{class r{constructor(e,t){this.store=e,this.initAuth=t,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.otherApp=$r.Profile}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(gi),h.Y36(zl))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-root"]],decls:2,vars:2,consts:[[4,"ngIf"],["id","nav-menu",3,"showToggle","otherApp"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[3,"application","headerTitle"]],template:function(e,t){1&e&&(h.YNc(0,MP,7,5,"div",0),h.YNc(1,DP,3,4,"div",0)),2&e&&(h.Q6J("ngIf",!t.isLoginScreenShow),h.xp6(1),h.Q6J("ngIf",t.isLoginScreenShow))},dependencies:[M.O5,M.PC,Uo,kH,qE,SP,yt],styles:["#content-inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:100vh;padding-top:64px;justify-content:space-between}#content-wrap[_ngcontent-%COMP%]{padding:25px}#footer[_ngcontent-%COMP%]{bottom:0;width:100%}#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}"]}),r})();function iM(r){return new h.vHH(3e3,!1)}function h1(){return typeof window<"u"&&typeof window.document<"u"}function K0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function xs(r){switch(r.length){case 0:return new Bl;case 1:return r[0];default:return new Lh(r)}}function nM(r,a,e,t,s=new Map,u=new Map){const d=[],l=[];let n=-1,i=null;if(t.forEach(o=>{const c=o.get("offset"),p=c==n,m=p&&i||new Map;o.forEach((g,f)=>{let w=f,R=g;if("offset"!==f)switch(w=a.normalizePropertyName(w,d),R){case"!":R=s.get(f);break;case ma:R=u.get(f);break;default:R=a.normalizeStyleValue(f,w,R,d)}m.set(w,R)}),p||l.push(m),i=m,n=c}),d.length)throw function XP(r){return new h.vHH(3502,!1)}();return l}function Z0(r,a,e,t){switch(a){case"start":r.onStart(()=>t(e&&X0(e,"start",r)));break;case"done":r.onDone(()=>t(e&&X0(e,"done",r)));break;case"destroy":r.onDestroy(()=>t(e&&X0(e,"destroy",r)))}}function X0(r,a,e){const u=ex(r.element,r.triggerName,r.fromState,r.toState,a||r.phaseName,e.totalTime??r.totalTime,!!e.disabled),d=r._data;return null!=d&&(u._data=d),u}function ex(r,a,e,t,s="",u=0,d){return{element:r,triggerName:a,fromState:e,toState:t,phaseName:s,totalTime:u,disabled:!!d}}function Jn(r,a,e){let t=r.get(a);return t||r.set(a,t=e),t}function rM(r){const a=r.indexOf(":");return[r.substring(1,a),r.slice(a+1)]}let tx=(r,a)=>!1,aM=(r,a,e)=>[],oM=null;function ix(r){const a=r.parentNode||r.host;return a===oM?null:a}(K0()||typeof Element<"u")&&(h1()?(oM=(()=>document.documentElement)(),tx=(r,a)=>{for(;a;){if(a===r)return!0;a=ix(a)}return!1}):tx=(r,a)=>r.contains(a),aM=(r,a,e)=>{if(e)return Array.from(r.querySelectorAll(a));const t=r.querySelector(a);return t?[t]:[]});let rc=null,sM=!1;const lM=tx,cM=aM;let dM=(()=>{class r{validateStyleProperty(e){return function f1(r){rc||(rc=function m1(){return typeof document<"u"?document.body:null}()||{},sM=!!rc.style&&"WebkitAppearance"in rc.style);let a=!0;return rc.style&&!function p1(r){return"ebkit"==r.substring(1,6)}(r)&&(a=r in rc.style,!a&&sM&&(a="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in rc.style)),a}(e)}matchesElement(e,t){return!1}containsElement(e,t){return lM(e,t)}getParentElement(e){return ix(e)}query(e,t,s){return cM(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,t,s,u,d,l=[],n){return new Bl(s,u)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),nx=(()=>{class r{}return r.NOOP=new dM,r})();const rx="ng-enter",TC="ng-leave",SC="ng-trigger",EC=".ng-trigger",hM="ng-animating",ax=".ng-animating";function Ts(r){if("number"==typeof r)return r;const a=r.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:ox(parseFloat(a[1]),a[2])}function ox(r,a){return"s"===a?1e3*r:r}function MC(r,a,e){return r.hasOwnProperty("duration")?r:function b1(r,a,e){let s,u=0,d="";if("string"==typeof r){const l=r.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return a.push(iM()),{duration:0,delay:0,easing:""};s=ox(parseFloat(l[1]),l[2]);const n=l[3];null!=n&&(u=ox(parseFloat(n),l[4]));const i=l[5];i&&(d=i)}else s=r;if(!e){let l=!1,n=a.length;s<0&&(a.push(function RP(){return new h.vHH(3100,!1)}()),l=!0),u<0&&(a.push(function PP(){return new h.vHH(3101,!1)}()),l=!0),l&&a.splice(n,0,iM())}return{duration:s,delay:u,easing:d}}(r,a,e)}function df(r,a={}){return Object.keys(r).forEach(e=>{a[e]=r[e]}),a}function pM(r){const a=new Map;return Object.keys(r).forEach(e=>{a.set(e,r[e])}),a}function Ss(r,a=new Map,e){if(e)for(let[t,s]of e)a.set(t,s);for(let[t,s]of r)a.set(t,s);return a}function mM(r,a,e){return e?a+":"+e+";":""}function gM(r){let a="";for(let e=0;e{const u=lx(s);e&&!e.has(s)&&e.set(s,r.style[u]),r.style[u]=t}),K0()&&gM(r))}function ac(r,a){r.style&&(a.forEach((e,t)=>{const s=lx(t);r.style[s]=""}),K0()&&gM(r))}function uf(r){return Array.isArray(r)?1==r.length?r[0]:f_(r):r}const sx=new RegExp("{{\\s*(.+?)\\s*}}","g");function _M(r){let a=[];if("string"==typeof r){let e;for(;e=sx.exec(r);)a.push(e[1]);sx.lastIndex=0}return a}function DC(r,a,e){const t=r.toString(),s=t.replace(sx,(u,d)=>{let l=a[d];return null==l&&(e.push(function kP(r){return new h.vHH(3003,!1)}()),l=""),l.toString()});return s==t?r:s}function HC(r){const a=[];let e=r.next();for(;!e.done;)a.push(e.value),e=r.next();return a}const y1=/-+([a-z0-9])/g;function lx(r){return r.replace(y1,(...a)=>a[1].toUpperCase())}function v1(r){return r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Kn(r,a,e){switch(a.type){case 7:return r.visitTrigger(a,e);case 0:return r.visitState(a,e);case 1:return r.visitTransition(a,e);case 2:return r.visitSequence(a,e);case 3:return r.visitGroup(a,e);case 4:return r.visitAnimate(a,e);case 5:return r.visitKeyframes(a,e);case 6:return r.visitStyle(a,e);case 8:return r.visitReference(a,e);case 9:return r.visitAnimateChild(a,e);case 10:return r.visitAnimateRef(a,e);case 11:return r.visitQuery(a,e);case 12:return r.visitStagger(a,e);default:throw function VP(r){return new h.vHH(3004,!1)}()}}function bM(r,a){return window.getComputedStyle(r)[a]}function M1(r,a){const e=[];return"string"==typeof r?r.split(/\s*,\s*/).forEach(t=>function D1(r,a,e){if(":"==r[0]){const n=function H1(r,a){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(r,e);if("function"==typeof n)return void a.push(n);r=n}const t=r.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function QP(r){return new h.vHH(3015,!1)}()),a;const s=t[1],u=t[2],d=t[3];a.push(CM(s,d));"<"==u[0]&&!("*"==s&&"*"==d)&&a.push(CM(d,s))}(t,e,a)):e.push(r),e}const kC=new Set(["true","1"]),VC=new Set(["false","0"]);function CM(r,a){const e=kC.has(r)||VC.has(r),t=kC.has(a)||VC.has(a);return(s,u)=>{let d="*"==r||r==s,l="*"==a||a==u;return!d&&e&&"boolean"==typeof s&&(d=s?kC.has(r):VC.has(r)),!l&&t&&"boolean"==typeof u&&(l=u?kC.has(a):VC.has(a)),d&&l}}const R1=new RegExp("s*:selfs*,?","g");function cx(r,a,e,t){return new P1(r).build(a,e,t)}class P1{constructor(a){this._driver=a}build(a,e,t){const s=new V1(e);return this._resetContextStyleTimingState(s),Kn(this,uf(a),s)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,s=e.depCount=0;const u=[],d=[];return"@"==a.name.charAt(0)&&e.errors.push(function OP(){return new h.vHH(3006,!1)}()),a.definitions.forEach(l=>{if(this._resetContextStyleTimingState(e),0==l.type){const n=l,i=n.name;i.toString().split(/\s*,\s*/).forEach(o=>{n.name=o,u.push(this.visitState(n,e))}),n.name=i}else if(1==l.type){const n=this.visitTransition(l,e);t+=n.queryCount,s+=n.depCount,d.push(n)}else e.errors.push(function LP(){return new h.vHH(3007,!1)}())}),{type:7,name:a.name,states:u,transitions:d,queryCount:t,depCount:s,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),s=a.options&&a.options.params||null;if(t.containsDynamicStyles){const u=new Set,d=s||{};t.styles.forEach(l=>{l instanceof Map&&l.forEach(n=>{_M(n).forEach(i=>{d.hasOwnProperty(i)||u.add(i)})})}),u.size&&(HC(u.values()),e.errors.push(function jP(r,a){return new h.vHH(3008,!1)}()))}return{type:0,name:a.name,style:t,options:s?{params:s}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Kn(this,uf(a.animation),e);return{type:1,matchers:M1(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:oc(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Kn(this,t,e)),options:oc(a.options)}}visitGroup(a,e){const t=e.currentTime;let s=0;const u=a.steps.map(d=>{e.currentTime=t;const l=Kn(this,d,e);return s=Math.max(s,e.currentTime),l});return e.currentTime=s,{type:3,steps:u,options:oc(a.options)}}visitAnimate(a,e){const t=function O1(r,a){if(r.hasOwnProperty("duration"))return r;if("number"==typeof r)return dx(MC(r,a).duration,0,"");const e=r;if(e.split(/\s+/).some(u=>"{"==u.charAt(0)&&"{"==u.charAt(1))){const u=dx(0,0,"");return u.dynamic=!0,u.strValue=e,u}const s=MC(e,a);return dx(s.duration,s.delay,s.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let s,u=a.styles?a.styles:Ie({});if(5==u.type)s=this.visitKeyframes(u,e);else{let d=a.styles,l=!1;if(!d){l=!0;const i={};t.easing&&(i.easing=t.easing),d=Ie(i)}e.currentTime+=t.duration+t.delay;const n=this.visitStyle(d,e);n.isEmptyStep=l,s=n}return e.currentAnimateTimings=null,{type:4,timings:t,style:s,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[],s=Array.isArray(a.styles)?a.styles:[a.styles];for(let l of s)"string"==typeof l?l===ma?t.push(l):e.errors.push(new h.vHH(3002,!1)):t.push(pM(l));let u=!1,d=null;return t.forEach(l=>{if(l instanceof Map&&(l.has("easing")&&(d=l.get("easing"),l.delete("easing")),!u))for(let n of l.values())if(n.toString().indexOf("{{")>=0){u=!0;break}}),{type:6,styles:t,easing:d,offset:a.offset,containsDynamicStyles:u,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let s=e.currentTime,u=e.currentTime;t&&u>0&&(u-=t.duration+t.delay),a.styles.forEach(d=>{"string"!=typeof d&&d.forEach((l,n)=>{const i=e.collectedStyles.get(e.currentQuerySelector),o=i.get(n);let c=!0;o&&(u!=s&&u>=o.startTime&&s<=o.endTime&&(e.errors.push(function UP(r,a,e,t,s){return new h.vHH(3010,!1)}()),c=!1),u=o.startTime),c&&i.set(n,{startTime:u,endTime:s}),e.options&&function w1(r,a,e){const t=a.params||{},s=_M(r);s.length&&s.forEach(u=>{t.hasOwnProperty(u)||e.push(function IP(r){return new h.vHH(3001,!1)}())})}(l,e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function NP(){return new h.vHH(3011,!1)}()),t;let u=0;const d=[];let l=!1,n=!1,i=0;const o=a.steps.map(R=>{const J=this._makeStyleAst(R,e);let Te=null!=J.offset?J.offset:function B1(r){if("string"==typeof r)return null;let a=null;if(Array.isArray(r))r.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;a=parseFloat(t.get("offset")),t.delete("offset")}});else if(r instanceof Map&&r.has("offset")){const e=r;a=parseFloat(e.get("offset")),e.delete("offset")}return a}(J.styles),at=0;return null!=Te&&(u++,at=J.offset=Te),n=n||at<0||at>1,l=l||at0&&u{const Te=p>0?J==m?1:p*J:d[J],at=Te*w;e.currentTime=g+f.delay+at,f.duration=at,this._validateStyleAst(R,e),R.offset=Te,t.styles.push(R)}),t}visitReference(a,e){return{type:8,animation:Kn(this,uf(a.animation),e),options:oc(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:oc(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:oc(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,s=a.options||{};e.queryCount++,e.currentQuery=a;const[u,d]=function I1(r){const a=!!r.split(/\s*,\s*/).find(e=>":self"==e);return a&&(r=r.replace(R1,"")),r=r.replace(/@\*/g,EC).replace(/@\w+/g,e=>EC+"-"+e.slice(1)).replace(/:animating/g,ax),[r,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+u:u,Jn(e.collectedStyles,e.currentQuerySelector,new Map);const l=Kn(this,uf(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:u,limit:s.limit||0,optional:!!s.optional,includeSelf:d,animation:l,originalSelector:a.selector,options:oc(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push(function WP(){return new h.vHH(3013,!1)}());const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:MC(a.timings,e.errors,!0);return{type:12,animation:Kn(this,uf(a.animation),e),timings:t,options:null}}}class V1{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function oc(r){return r?(r=df(r)).params&&(r.params=function k1(r){return r?df(r):null}(r.params)):r={},r}function dx(r,a,e){return{duration:r,delay:a,easing:e}}function ux(r,a,e,t,s,u,d=null,l=!1){return{type:1,element:r,keyframes:a,preStyleProps:e,postStyleProps:t,duration:s,delay:u,totalTime:s+u,easing:d,subTimeline:l}}class BC{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const F1=new RegExp(":enter","g"),N1=new RegExp(":leave","g");function hx(r,a,e,t,s,u=new Map,d=new Map,l,n,i=[]){return(new q1).buildKeyframes(r,a,e,t,s,u,d,l,n,i)}class q1{buildKeyframes(a,e,t,s,u,d,l,n,i,o=[]){i=i||new BC;const c=new px(a,e,i,s,u,o,[]);c.options=n;const p=n.delay?Ts(n.delay):0;c.currentTimeline.delayNextStep(p),c.currentTimeline.setStyles([d],null,c.errors,n),Kn(this,t,c);const m=c.timelines.filter(g=>g.containsAnimation());if(m.length&&l.size){let g;for(let f=m.length-1;f>=0;f--){const w=m[f];if(w.element===e){g=w;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([l],null,c.errors,n)}return m.length?m.map(g=>g.buildKeyframes()):[ux(e,[],[],[],0,p,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const s=e.createSubContext(a.options),u=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,s,s.options);u!=d&&e.transformIntoNewTimeline(d)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let u=e.currentTimeline.currentTime;const d=null!=t.duration?Ts(t.duration):null,l=null!=t.delay?Ts(t.delay):null;return 0!==d&&a.forEach(n=>{const i=e.appendInstructionToTimeline(n,d,l);u=Math.max(u,i.duration+i.delay)}),u}visitReference(a,e){e.updateOptions(a.options,!0),Kn(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let s=e;const u=a.options;if(u&&(u.params||u.delay)&&(s=e.createSubContext(u),s.transformIntoNewTimeline(),null!=u.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=OC);const d=Ts(u.delay);s.delayNextStep(d)}a.steps.length&&(a.steps.forEach(d=>Kn(this,d,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let s=e.currentTimeline.currentTime;const u=a.options&&a.options.delay?Ts(a.options.delay):0;a.steps.forEach(d=>{const l=e.createSubContext(a.options);u&&l.delayNextStep(u),Kn(this,d,l),s=Math.max(s,l.currentTimeline.currentTime),t.push(l.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(s),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return MC(e.params?DC(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),s=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),s.snapshotCurrentStyles());const u=a.style;5==u.type?this.visitKeyframes(u,e):(e.incrementTime(t.duration),this.visitStyle(u,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,s=e.currentAnimateTimings;!s&&t.hasCurrentStyleProperties()&&t.forwardFrame();const u=s&&s.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(u):t.setStyles(a.styles,u,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,s=e.currentTimeline.duration,u=t.duration,l=e.createSubContext().currentTimeline;l.easing=t.easing,a.styles.forEach(n=>{l.forwardTime((n.offset||0)*u),l.setStyles(n.styles,n.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(s+u),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,s=a.options||{},u=s.delay?Ts(s.delay):0;u&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=OC);let d=t;const l=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=l.length;let n=null;l.forEach((i,o)=>{e.currentQueryIndex=o;const c=e.createSubContext(a.options,i);u&&c.delayNextStep(u),i===e.element&&(n=c.currentTimeline),Kn(this,a.animation,c),c.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,c.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),n&&(e.currentTimeline.mergeTimelineCollectedStyles(n),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,s=e.currentTimeline,u=a.timings,d=Math.abs(u.duration),l=d*(e.currentQueryTotal-1);let n=d*e.currentQueryIndex;switch(u.duration<0?"reverse":u.easing){case"reverse":n=l-n;break;case"full":n=t.currentStaggerTime}const o=e.currentTimeline;n&&o.delayNextStep(n);const c=o.currentTime;Kn(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=s.currentTime-c+(s.startTime-t.currentTimeline.startTime)}}const OC={};class px{constructor(a,e,t,s,u,d,l,n){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=u,this.errors=d,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=OC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=n||new LC(this._driver,e,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let s=this.options;null!=t.duration&&(s.duration=Ts(t.duration)),null!=t.delay&&(s.delay=Ts(t.delay));const u=t.params;if(u){let d=s.params;d||(d=this.options.params={}),Object.keys(u).forEach(l=>{(!e||!d.hasOwnProperty(l))&&(d[l]=DC(u[l],d,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(s=>{t[s]=e[s]})}}return a}createSubContext(a=null,e,t){const s=e||this.element,u=new px(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return u.previousNode=this.previousNode,u.currentAnimateTimings=this.currentAnimateTimings,u.options=this._copyOptions(),u.updateOptions(a),u.currentQueryIndex=this.currentQueryIndex,u.currentQueryTotal=this.currentQueryTotal,u.parentContext=this,this.subContextCount++,u}transformIntoNewTimeline(a){return this.previousNode=OC,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const s={duration:e??a.duration,delay:this.currentTimeline.currentTime+(t??0)+a.delay,easing:""},u=new z1(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,s,a.stretchStartingKeyframe);return this.timelines.push(u),s}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,s,u,d){let l=[];if(s&&l.push(this.element),a.length>0){a=(a=a.replace(F1,"."+this._enterClassName)).replace(N1,"."+this._leaveClassName);let i=this._driver.query(this.element,a,1!=t);0!==t&&(i=t<0?i.slice(i.length+t,i.length):i.slice(0,t)),l.push(...i)}return!u&&0==l.length&&d.push(function $P(r){return new h.vHH(3014,!1)}()),l}}class LC{constructor(a,e,t,s){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(a){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new LC(this._driver,a,e||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+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles.set(a,e),this._globalTimelineStyles.set(a,e),this._styleSummary.set(a,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||ma),this._currentKeyframe.set(e,ma);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,s){e&&this._previousKeyframe.set("easing",e);const u=s&&s.params||{},d=function G1(r,a){const e=new Map;let t;return r.forEach(s=>{if("*"===s){t=t||a.keys();for(let u of t)e.set(u,ma)}else Ss(s,e)}),e}(a,this._globalTimelineStyles);for(let[l,n]of d){const i=DC(n,u,t);this._pendingStyles.set(l,i),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??ma),this._updateStyle(l,i)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,e)=>{this._currentKeyframe.set(e,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,a)}))}snapshotCurrentStyles(){for(let[a,e]of this._localTimelineStyles)this._pendingStyles.set(a,e),this._updateStyle(a,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((l,n)=>{const i=Ss(l,new Map,this._backFill);i.forEach((o,c)=>{"!"===o?a.add(c):o===ma&&e.add(c)}),t||i.set("offset",n/this.duration),s.push(i)});const u=a.size?HC(a.values()):[],d=e.size?HC(e.values()):[];if(t){const l=s[0],n=new Map(l);l.set("offset",0),n.set("offset",1),s=[l,n]}return ux(this.element,s,u,d,this.duration,this.startTime,this.easing,!1)}}class z1 extends LC{constructor(a,e,t,s,u,d,l=!1){super(a,e,d.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=u,this._stretchStartingKeyframe=l,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const u=[],d=t+e,l=e/d,n=Ss(a[0]);n.set("offset",0),u.push(n);const i=Ss(a[0]);i.set("offset",vM(l)),u.push(i);const o=a.length-1;for(let c=1;c<=o;c++){let p=Ss(a[c]);const m=p.get("offset");p.set("offset",vM((e+m*t)/d)),u.push(p)}t=d,e=0,s="",a=u}return ux(this.element,a,this.preStyleProps,this.postStyleProps,t,e,s,!0)}}function vM(r,a=3){const e=Math.pow(10,a-1);return Math.round(r*e)/e}class fx{}const W1=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"]);class $1 extends fx{normalizePropertyName(a,e){return lx(a)}normalizeStyleValue(a,e,t,s){let u="";const d=t.toString().trim();if(W1.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)u="px";else{const l=t.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&s.push(function BP(r,a){return new h.vHH(3005,!1)}())}return d+u}}function AM(r,a,e,t,s,u,d,l,n,i,o,c,p){return{type:0,element:r,triggerName:a,isRemovalTransition:s,fromState:e,fromStyles:u,toState:t,toStyles:d,timelines:l,queriedElements:n,preStyleProps:i,postStyleProps:o,totalTime:c,errors:p}}const mx={};class xM{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,s){return function Q1(r,a,e,t,s){return r.some(u=>u(a,e,t,s))}(this.ast.matchers,a,e,t,s)}buildStyles(a,e,t){let s=this._stateStyles.get("*");return void 0!==a&&(s=this._stateStyles.get(a?.toString())||s),s?s.buildStyles(e,t):new Map}build(a,e,t,s,u,d,l,n,i,o){const c=[],p=this.ast.options&&this.ast.options.params||mx,g=this.buildStyles(t,l&&l.params||mx,c),f=n&&n.params||mx,w=this.buildStyles(s,f,c),R=new Set,J=new Map,Te=new Map,at="void"===s,Ti={params:Y1(f,p),delay:this.ast.options?.delay},ni=o?[]:hx(a,e,this.ast.animation,u,d,g,w,Ti,i,c);let _i=0;if(ni.forEach(vr=>{_i=Math.max(vr.duration+vr.delay,_i)}),c.length)return AM(e,this._triggerName,t,s,at,g,w,[],[],J,Te,_i,c);ni.forEach(vr=>{const bo=vr.element,VD=Jn(J,bo,new Set);vr.preStyleProps.forEach(lc=>VD.add(lc));const _f=Jn(Te,bo,new Set);vr.postStyleProps.forEach(lc=>_f.add(lc)),bo!==e&&R.add(bo)});const yn=HC(R.values());return AM(e,this._triggerName,t,s,at,g,w,ni,yn,J,Te,_i)}}function Y1(r,a){const e=df(a);for(const t in r)r.hasOwnProperty(t)&&null!=r[t]&&(e[t]=r[t]);return e}class J1{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t=new Map,s=df(this.defaultParams);return Object.keys(a).forEach(u=>{const d=a[u];null!==d&&(s[u]=d)}),this.styles.styles.forEach(u=>{"string"!=typeof u&&u.forEach((d,l)=>{d&&(d=DC(d,s,e));const n=this.normalizer.normalizePropertyName(l,e);d=this.normalizer.normalizeStyleValue(l,n,d,e),t.set(n,d)})}),t}}class Z1{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(s=>{this.states.set(s.name,new J1(s.style,s.options&&s.options.params||{},t))}),TM(this.states,"true","1"),TM(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new xM(a,s,this.states))}),this.fallbackTransition=function X1(r,a,e){return new xM(r,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,l)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,s){return this.transitionFactories.find(d=>d.match(a,e,t,s))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function TM(r,a,e){r.has(a)?r.has(e)||r.set(e,r.get(a)):r.has(e)&&r.set(a,r.get(e))}const eI=new BC;class tI{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,e){const t=[],u=cx(this._driver,e,t,[]);if(t.length)throw function e1(r){return new h.vHH(3503,!1)}();this._animations.set(a,u)}_buildPlayer(a,e,t){const s=a.element,u=nM(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(s,u,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const s=[],u=this._animations.get(a);let d;const l=new Map;if(u?(d=hx(this._driver,e,u,rx,TC,new Map,new Map,t,eI,s),d.forEach(o=>{const c=Jn(l,o.element,new Map);o.postStyleProps.forEach(p=>c.set(p,null))})):(s.push(function t1(){return new h.vHH(3300,!1)}()),d=[]),s.length)throw function n1(r){return new h.vHH(3504,!1)}();l.forEach((o,c)=>{o.forEach((p,m)=>{o.set(m,this._driver.computeStyle(c,m,ma))})});const i=xs(d.map(o=>{const c=l.get(o.element);return this._buildPlayer(o,new Map,c)}));return this._playersById.set(a,i),i.onDestroy(()=>this.destroy(a)),this.players.push(i),i}destroy(a){const e=this._getPlayer(a);e.destroy(),this._playersById.delete(a);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById.get(a);if(!e)throw function r1(r){return new h.vHH(3301,!1)}();return e}listen(a,e,t,s){const u=ex(e,"","","");return Z0(this._getPlayer(a),t,u,s),()=>{}}command(a,e,t,s){if("register"==t)return void this.register(a,s[0]);if("create"==t)return void this.create(a,e,s[0]||{});const u=this._getPlayer(a);switch(t){case"play":u.play();break;case"pause":u.pause();break;case"reset":u.reset();break;case"restart":u.restart();break;case"finish":u.finish();break;case"init":u.init();break;case"setPosition":u.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(a)}}}const SM="ng-animate-queued",gx="ng-animate-disabled",oI=[],EM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},sI={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},wr="__ng_removed";class _x{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function uI(r){return r??null}(t?a.value:a),t){const u=df(a);delete u.value,this.options=u}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(s=>{null==t[s]&&(t[s]=e[s])})}}}const hf="void",bx=new _x(hf);class lI{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,yr(e,this._hostClassName)}listen(a,e,t,s){if(!this._triggers.has(e))throw function a1(r,a){return new h.vHH(3302,!1)}();if(null==t||0==t.length)throw function o1(r){return new h.vHH(3303,!1)}();if(!function hI(r){return"start"==r||"done"==r}(t))throw function s1(r,a){return new h.vHH(3400,!1)}();const u=Jn(this._elementListeners,a,[]),d={name:e,phase:t,callback:s};u.push(d);const l=Jn(this._engine.statesByElement,a,new Map);return l.has(e)||(yr(a,SC),yr(a,SC+"-"+e),l.set(e,bx)),()=>{this._engine.afterFlush(()=>{const n=u.indexOf(d);n>=0&&u.splice(n,1),this._triggers.has(e)||l.delete(e)})}}register(a,e){return!this._triggers.has(a)&&(this._triggers.set(a,e),!0)}_getTrigger(a){const e=this._triggers.get(a);if(!e)throw function l1(r){return new h.vHH(3401,!1)}();return e}trigger(a,e,t,s=!0){const u=this._getTrigger(e),d=new Cx(this.id,e,a);let l=this._engine.statesByElement.get(a);l||(yr(a,SC),yr(a,SC+"-"+e),this._engine.statesByElement.set(a,l=new Map));let n=l.get(e);const i=new _x(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&n&&i.absorbOptions(n.options),l.set(e,i),n||(n=bx),i.value!==hf&&n.value===i.value){if(!function mI(r,a){const e=Object.keys(r),t=Object.keys(a);if(e.length!=t.length)return!1;for(let s=0;s{ac(a,w),ya(a,R)})}return}const p=Jn(this._engine.playersByElement,a,[]);p.forEach(f=>{f.namespaceId==this.id&&f.triggerName==e&&f.queued&&f.destroy()});let m=u.matchTransition(n.value,i.value,a,i.params),g=!1;if(!m){if(!s)return;m=u.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:m,fromState:n,toState:i,player:d,isFallbackTransition:g}),g||(yr(a,SM),d.onStart(()=>{$d(a,SM)})),d.onDone(()=>{let f=this.players.indexOf(d);f>=0&&this.players.splice(f,1);const w=this._engine.playersByElement.get(a);if(w){let R=w.indexOf(d);R>=0&&w.splice(R,1)}}),this.players.push(d),p.push(d),d}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(e=>e.delete(a)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(s=>s.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,EC,!0);t.forEach(s=>{if(s[wr])return;const u=this._engine.fetchNamespacesByElement(s);u.size?u.forEach(d=>d.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(a,e,t,s){const u=this._engine.statesByElement.get(a),d=new Map;if(u){const l=[];if(u.forEach((n,i)=>{if(d.set(i,n.value),this._triggers.has(i)){const o=this.trigger(a,i,hf,s);o&&l.push(o)}}),l.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,d),t&&xs(l).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const s=new Set;e.forEach(u=>{const d=u.name;if(s.has(d))return;s.add(d);const n=this._triggers.get(d).fallbackTransition,i=t.get(d)||bx,o=new _x(hf),c=new Cx(this.id,d,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:d,transition:n,fromState:i,toState:o,player:c,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let s=!1;if(t.totalAnimations){const u=t.players.length?t.playersByQueriedElement.get(a):[];if(u&&u.length)s=!0;else{let d=a;for(;d=d.parentNode;)if(t.statesByElement.get(d)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(a),s)t.markElementAsRemoved(this.id,a,!1,e);else{const u=a[wr];(!u||u===EM)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){yr(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const s=t.player;if(s.destroyed)return;const u=t.element,d=this._elementListeners.get(u);d&&d.forEach(l=>{if(l.name==t.triggerName){const n=ex(u,t.triggerName,t.fromState.value,t.toState.value);n._data=a,Z0(t.player,l.phase,n,l.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(t)}),this._queue=[],e.sort((t,s)=>{const u=t.transition.ast.depCount,d=s.transition.ast.depCount;return 0==u||0==d?u-d:this._engine.driver.containsElement(t.element,s.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class cI{constructor(a,e,t){this.bodyNode=a,this.driver=e,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=(s,u)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new lI(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList,s=this.namespacesByHostElement;if(t.length-1>=0){let d=!1,l=this.driver.getParentElement(e);for(;l;){const n=s.get(l);if(n){const i=t.indexOf(n);t.splice(i+1,0,a),d=!0;break}l=this.driver.getParentElement(l)}d||t.unshift(a)}else t.push(a);return s.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let s=this._namespaceLookup[a];s&&s.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const s=this._namespaceList.indexOf(t);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t)for(let s of t.values())if(s.namespaceId){const u=this._fetchNamespace(s.namespaceId);u&&e.add(u)}return e}trigger(a,e,t,s){if(jC(e)){const u=this._fetchNamespace(a);if(u)return u.trigger(e,t,s),!0}return!1}insertNode(a,e,t,s){if(!jC(e))return;const u=e[wr];if(u&&u.setForRemoval){u.setForRemoval=!1,u.setForMove=!0;const d=this.collectedLeaveElements.indexOf(e);d>=0&&this.collectedLeaveElements.splice(d,1)}if(a){const d=this._fetchNamespace(a);d&&d.insertNode(e,t)}s&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),yr(a,gx)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),$d(a,gx))}removeNode(a,e,t,s){if(jC(e)){const u=a?this._fetchNamespace(a):null;if(u?u.removeNode(e,s):this.markElementAsRemoved(a,e,!1,s),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==a&&d.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(a,e,t,s,u){this.collectedLeaveElements.push(e),e[wr]={namespaceId:a,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:u}}listen(a,e,t,s,u){return jC(e)?this._fetchNamespace(a).listen(e,t,s,u):()=>{}}_buildInstruction(a,e,t,s,u){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,s,a.fromState.options,a.toState.options,e,u)}destroyInnerAnimations(a){let e=this.driver.query(a,EC,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,ax,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return xs(this.players).onDone(()=>a());a()})}processLeaveNode(a){const e=a[wr];if(e&&e.setForRemoval){if(a[wr]=EM,e.namespaceId){this.destroyInnerAnimations(a);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(a)}this._onRemovalComplete(a,e.setForRemoval)}a.classList?.contains(gx)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,s)=>this._balanceNamespaceList(t,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?xs(e).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(a){throw function c1(r){return new h.vHH(3402,!1)}()}_flushAnimations(a,e){const t=new BC,s=[],u=new Map,d=[],l=new Map,n=new Map,i=new Map,o=new Set;this.disabledNodes.forEach(Ge=>{o.add(Ge);const it=this.driver.query(Ge,".ng-animate-queued",!0);for(let ot=0;ot{const ot=rx+f++;g.set(it,ot),Ge.forEach(At=>yr(At,ot))});const w=[],R=new Set,J=new Set;for(let Ge=0;GeR.add(At)):J.add(it))}const Te=new Map,at=HM(p,Array.from(R));at.forEach((Ge,it)=>{const ot=TC+f++;Te.set(it,ot),Ge.forEach(At=>yr(At,ot))}),a.push(()=>{m.forEach((Ge,it)=>{const ot=g.get(it);Ge.forEach(At=>$d(At,ot))}),at.forEach((Ge,it)=>{const ot=Te.get(it);Ge.forEach(At=>$d(At,ot))}),w.forEach(Ge=>{this.processLeaveNode(Ge)})});const Ti=[],ni=[];for(let Ge=this._namespaceList.length-1;Ge>=0;Ge--)this._namespaceList[Ge].drainQueuedTransitions(e).forEach(ot=>{const At=ot.player,Ui=ot.element;if(Ti.push(At),this.collectedEnterElements.length){const dn=Ui[wr];if(dn&&dn.setForMove){if(dn.previousTriggersValues&&dn.previousTriggersValues.has(ot.triggerName)){const cc=dn.previousTriggersValues.get(ot.triggerName),Ar=this.statesByElement.get(ot.element);if(Ar&&Ar.has(ot.triggerName)){const ZC=Ar.get(ot.triggerName);ZC.value=cc,Ar.set(ot.triggerName,ZC)}}return void At.destroy()}}const Aa=!c||!this.driver.containsElement(c,Ui),Zn=Te.get(Ui),Ms=g.get(Ui),di=this._buildInstruction(ot,t,Ms,Zn,Aa);if(di.errors&&di.errors.length)return void ni.push(di);if(Aa)return At.onStart(()=>ac(Ui,di.fromStyles)),At.onDestroy(()=>ya(Ui,di.toStyles)),void s.push(At);if(ot.isFallbackTransition)return At.onStart(()=>ac(Ui,di.fromStyles)),At.onDestroy(()=>ya(Ui,di.toStyles)),void s.push(At);const LD=[];di.timelines.forEach(dn=>{dn.stretchStartingKeyframe=!0,this.disabledNodes.has(dn.element)||LD.push(dn)}),di.timelines=LD,t.append(Ui,di.timelines),d.push({instruction:di,player:At,element:Ui}),di.queriedElements.forEach(dn=>Jn(l,dn,[]).push(At)),di.preStyleProps.forEach((dn,cc)=>{if(dn.size){let Ar=n.get(cc);Ar||n.set(cc,Ar=new Set),dn.forEach((ZC,Fx)=>Ar.add(Fx))}}),di.postStyleProps.forEach((dn,cc)=>{let Ar=i.get(cc);Ar||i.set(cc,Ar=new Set),dn.forEach((ZC,Fx)=>Ar.add(Fx))})});if(ni.length){const Ge=[];ni.forEach(it=>{Ge.push(function d1(r,a){return new h.vHH(3505,!1)}())}),Ti.forEach(it=>it.destroy()),this.reportError(Ge)}const _i=new Map,yn=new Map;d.forEach(Ge=>{const it=Ge.element;t.has(it)&&(yn.set(it,it),this._beforeAnimationBuild(Ge.player.namespaceId,Ge.instruction,_i))}),s.forEach(Ge=>{const it=Ge.element;this._getPreviousPlayers(it,!1,Ge.namespaceId,Ge.triggerName,null).forEach(At=>{Jn(_i,it,[]).push(At),At.destroy()})});const vr=w.filter(Ge=>PM(Ge,n,i)),bo=new Map;DM(bo,this.driver,J,i,ma).forEach(Ge=>{PM(Ge,n,i)&&vr.push(Ge)});const _f=new Map;m.forEach((Ge,it)=>{DM(_f,this.driver,new Set(Ge),n,"!")}),vr.forEach(Ge=>{const it=bo.get(Ge),ot=_f.get(Ge);bo.set(Ge,new Map([...Array.from(it?.entries()??[]),...Array.from(ot?.entries()??[])]))});const lc=[],BD=[],OD={};d.forEach(Ge=>{const{element:it,player:ot,instruction:At}=Ge;if(t.has(it)){if(o.has(it))return ot.onDestroy(()=>ya(it,At.toStyles)),ot.disabled=!0,ot.overrideTotalTime(At.totalTime),void s.push(ot);let Ui=OD;if(yn.size>1){let Zn=it;const Ms=[];for(;Zn=Zn.parentNode;){const di=yn.get(Zn);if(di){Ui=di;break}Ms.push(Zn)}Ms.forEach(di=>yn.set(di,Ui))}const Aa=this._buildAnimation(ot.namespaceId,At,_i,u,_f,bo);if(ot.setRealPlayer(Aa),Ui===OD)lc.push(ot);else{const Zn=this.playersByElement.get(Ui);Zn&&Zn.length&&(ot.parentPlayer=xs(Zn)),s.push(ot)}}else ac(it,At.fromStyles),ot.onDestroy(()=>ya(it,At.toStyles)),BD.push(ot),o.has(it)&&s.push(ot)}),BD.forEach(Ge=>{const it=u.get(Ge.element);if(it&&it.length){const ot=xs(it);Ge.setRealPlayer(ot)}}),s.forEach(Ge=>{Ge.parentPlayer?Ge.syncPlayerEvents(Ge.parentPlayer):Ge.destroy()});for(let Ge=0;Ge!Aa.destroyed);Ui.length?pI(this,it,Ui):this.processLeaveNode(it)}return w.length=0,lc.forEach(Ge=>{this.players.push(Ge),Ge.onDone(()=>{Ge.destroy();const it=this.players.indexOf(Ge);this.players.splice(it,1)}),Ge.play()}),lc}elementContainsData(a,e){let t=!1;const s=e[wr];return s&&s.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,s,u){let d=[];if(e){const l=this.playersByQueriedElement.get(a);l&&(d=l)}else{const l=this.playersByElement.get(a);if(l){const n=!u||u==hf;l.forEach(i=>{i.queued||!n&&i.triggerName!=s||d.push(i)})}}return(t||s)&&(d=d.filter(l=>!(t&&t!=l.namespaceId||s&&s!=l.triggerName))),d}_beforeAnimationBuild(a,e,t){const u=e.element,d=e.isRemovalTransition?void 0:a,l=e.isRemovalTransition?void 0:e.triggerName;for(const n of e.timelines){const i=n.element,o=i!==u,c=Jn(t,i,[]);this._getPreviousPlayers(i,o,d,l,e.toState).forEach(m=>{const g=m.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),m.destroy(),c.push(m)})}ac(u,e.fromStyles)}_buildAnimation(a,e,t,s,u,d){const l=e.triggerName,n=e.element,i=[],o=new Set,c=new Set,p=e.timelines.map(g=>{const f=g.element;o.add(f);const w=f[wr];if(w&&w.removedBeforeQueried)return new Bl(g.duration,g.delay);const R=f!==n,J=function fI(r){const a=[];return RM(r,a),a}((t.get(f)||oI).map(_i=>_i.getRealPlayer())).filter(_i=>!!_i.element&&_i.element===f),Te=u.get(f),at=d.get(f),Ti=nM(0,this._normalizer,0,g.keyframes,Te,at),ni=this._buildPlayer(g,Ti,J);if(g.subTimeline&&s&&c.add(f),R){const _i=new Cx(a,l,f);_i.setRealPlayer(ni),i.push(_i)}return ni});i.forEach(g=>{Jn(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function dI(r,a,e){let t=r.get(a);if(t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&r.delete(a)}return t}(this.playersByQueriedElement,g.element,g))}),o.forEach(g=>yr(g,hM));const m=xs(p);return m.onDestroy(()=>{o.forEach(g=>$d(g,hM)),ya(n,e.toStyles)}),c.forEach(g=>{Jn(s,g,[]).push(m)}),m}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new Bl(a.duration,a.delay)}}class Cx{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new Bl,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((e,t)=>{e.forEach(s=>Z0(a,t,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){Jn(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function jC(r){return r&&1===r.nodeType}function MM(r,a){const e=r.style.display;return r.style.display=a??"none",e}function DM(r,a,e,t,s){const u=[];e.forEach(n=>u.push(MM(n)));const d=[];t.forEach((n,i)=>{const o=new Map;n.forEach(c=>{const p=a.computeStyle(i,c,s);o.set(c,p),(!p||0==p.length)&&(i[wr]=sI,d.push(i))}),r.set(i,o)});let l=0;return e.forEach(n=>MM(n,u[l++])),d}function HM(r,a){const e=new Map;if(r.forEach(l=>e.set(l,[])),0==a.length)return e;const s=new Set(a),u=new Map;function d(l){if(!l)return 1;let n=u.get(l);if(n)return n;const i=l.parentNode;return n=e.has(i)?i:s.has(i)?1:d(i),u.set(l,n),n}return a.forEach(l=>{const n=d(l);1!==n&&e.get(n).push(l)}),e}function yr(r,a){r.classList?.add(a)}function $d(r,a){r.classList?.remove(a)}function pI(r,a,e){xs(e).onDone(()=>r.processLeaveNode(a))}function RM(r,a){for(let e=0;es.add(u)):a.set(r,t),e.delete(r),!0}class FC{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,u)=>{},this._transitionEngine=new cI(a,e,t),this._timelineEngine=new tI(a,e,t),this._transitionEngine.onRemovalComplete=(s,u)=>this.onRemovalComplete(s,u)}registerTrigger(a,e,t,s,u){const d=a+"-"+s;let l=this._triggerCache[d];if(!l){const n=[],o=cx(this._driver,u,n,[]);if(n.length)throw function ZP(r,a){return new h.vHH(3404,!1)}();l=function K1(r,a,e){return new Z1(r,a,e)}(s,o,this._normalizer),this._triggerCache[d]=l}this._transitionEngine.registerTrigger(e,s,l)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,s){this._transitionEngine.insertNode(a,e,t,s)}onRemove(a,e,t,s){this._transitionEngine.removeNode(a,e,s||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,s){if("@"==t.charAt(0)){const[u,d]=rM(t);this._timelineEngine.command(u,e,d,s)}else this._transitionEngine.trigger(a,e,t,s)}listen(a,e,t,s,u){if("@"==t.charAt(0)){const[d,l]=rM(t);return this._timelineEngine.listen(d,e,l,u)}return this._transitionEngine.listen(a,e,t,s,u)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let _I=(()=>{class r{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let u=r.initialStylesByElement.get(e);u||r.initialStylesByElement.set(e,u=new Map),this._initialStyles=u}start(){this._state<1&&(this._startStyles&&ya(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ya(this._element,this._initialStyles),this._endStyles&&(ya(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(ac(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ac(this._element,this._endStyles),this._endStyles=null),ya(this._element,this._initialStyles),this._state=3)}}return r.initialStylesByElement=new WeakMap,r})();function wx(r){let a=null;return r.forEach((e,t)=>{(function bI(r){return"display"===r||"position"===r})(t)&&(a=a||new Map,a.set(t,e))}),a}class IM{constructor(a,e,t,s){this.element=a,this.keyframes=e,this.options=t,this._specialStyles=s,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(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const e=[];return a.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(a,e,t){return a.animate(this._convertKeyframesToObject(e),t)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,s)=>{"offset"!==s&&a.set(s,this._finished?t:bM(this.element,s))}),this.currentSnapshot=a}triggerCallback(a){const e="start"===a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class CI{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,e){return!1}containsElement(a,e){return lM(a,e)}getParentElement(a){return ix(a)}query(a,e,t){return cM(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,s,u,d=[]){const n={duration:t,delay:s,fill:0==s?"both":"forwards"};u&&(n.easing=u);const i=new Map,o=d.filter(m=>m instanceof IM);(function A1(r,a){return 0===r||0===a})(t,s)&&o.forEach(m=>{m.currentSnapshot.forEach((g,f)=>i.set(f,g))});let c=function C1(r){return r.length?r[0]instanceof Map?r:r.map(a=>pM(a)):[]}(e).map(m=>Ss(m));c=function x1(r,a,e){if(e.size&&a.length){let t=a[0],s=[];if(e.forEach((u,d)=>{t.has(d)||s.push(d),t.set(d,u)}),s.length)for(let u=1;ud.set(l,bM(r,l)))}}return a}(a,c,i);const p=function gI(r,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=wx(a[0]),a.length>1&&(t=wx(a[a.length-1]))):a instanceof Map&&(e=wx(a)),e||t?new _I(r,e,t):null}(a,c);return new IM(a,c,n,p)}}let wI=(()=>{class r extends Bh{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:h.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?f_(e):e;return kM(this._renderer,null,t,"register",[s]),new yI(t,this._renderer)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(h.FYo),h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();class yI extends class p_{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new vI(this._id,a,e||{},this._renderer)}}class vI{constructor(a,e,t,s){this.id=a,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return kM(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function kM(r,a,e,t,s){return r.setProperty(a,`@@${e}:${t}`,s)}const VM="@.disabled";let AI=(()=>{class r{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(u,d)=>{const l=d?.parentNode(u);l&&d.removeChild(l,u)}}createRenderer(e,t){const u=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let o=this._rendererCache.get(u);return o||(o=new BM("",u,this.engine),this._rendererCache.set(u,o)),o}const d=t.id,l=t.id+"-"+this._currentId;this._currentId++,this.engine.register(l,e);const n=o=>{Array.isArray(o)?o.forEach(n):this.engine.registerTrigger(d,l,e,o.name,o)};return t.data.animation.forEach(n),new xI(this,l,u,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){e>=0&&et(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(u=>{const[d,l]=u;d(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(h.FYo),h.LFG(FC),h.LFG(h.R0b))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();class BM{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,s=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,s)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,s){this.delegate.setAttribute(a,e,t,s)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,s){this.delegate.setStyle(a,e,t,s)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==VM?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class xI extends BM{constructor(a,e,t,s){super(e,t,s),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==VM?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.slice(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const s=function TI(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}(a);let u=e.slice(1),d="";return"@"!=u.charAt(0)&&([u,d]=function SI(r){const a=r.indexOf(".");return[r.substring(0,a),r.slice(a+1)]}(u)),this.engine.listen(this.namespaceId,s,u,d,l=>{this.factory.scheduleListenerCallback(l._data||-1,t,l)})}return this.delegate.listen(a,e,t)}}const OM=[{provide:Bh,useClass:wI},{provide:fx,useFactory:function MI(){return new $1}},{provide:FC,useClass:(()=>{class r extends FC{constructor(e,t,s,u){super(e.body,t,s)}ngOnDestroy(){this.flush()}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0),h.LFG(nx),h.LFG(fx),h.LFG(h.z2F))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})()},{provide:h.FYo,useFactory:function DI(r,a,e){return new AI(r,a,e)},deps:[pe,FC,h.R0b]}],yx=[{provide:nx,useFactory:()=>new CI},{provide:h.QbO,useValue:"BrowserAnimations"},...OM],LM=[{provide:nx,useClass:dM},{provide:h.QbO,useValue:"NoopAnimations"},...OM];let HI=(()=>{class r{static withConfig(e){return{ngModule:r,providers:e.disableAnimations?LM:yx}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:yx,imports:[Sa]}),r})(),UM=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})(),NC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[En,Qe,hl,UM,Qe,UM]}),r})(),vx=(()=>{class r{constructor(){this.changes=new He.x}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const GI={provide:vx,deps:[[new h.FiY,new h.tp0,vx]],useFactory:function zI(r){return r||new vx}};let Ax=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[GI],imports:[M.ez,Qe]}),r})(),xx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Ur,M.ez]}),r})();const GM=new h.OlP("mat-chips-default-options");let Sx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[ua,{provide:GM,useValue:{separatorKeyCodes:[13]}}],imports:[Qe]}),r})();function Ex(r,a,e){for(let t in a)if(a.hasOwnProperty(t)){const s=a[t];s?r.setProperty(t,s,e?.has(t)?"important":""):r.removeProperty(t)}return r}function Qd(r,a){const e=a?"":"none";Ex(r.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function WM(r,a,e){Ex(r.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function qC(r,a){return a&&"none"!=a?r+" "+a:r}function $M(r){const a=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*a}function Mx(r,a){return r.getPropertyValue(a).split(",").map(t=>t.trim())}function Dx(r){const a=r.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function Hx(r,a,e){const{top:t,bottom:s,left:u,right:d}=r;return e>=t&&e<=s&&a>=u&&a<=d}function pf(r,a,e){r.top+=a,r.bottom=r.top+r.height,r.left+=e,r.right=r.left+r.width}function QM(r,a,e,t){const{top:s,right:u,bottom:d,left:l,width:n,height:i}=r,o=n*a,c=i*a;return t>s-c&&tl-o&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Dx(e)})})}handleScroll(a){const e=Un(a),t=this.positions.get(e);if(!t)return null;const s=t.scrollPosition;let u,d;if(e===this._document){const i=this.getViewportScrollPosition();u=i.top,d=i.left}else u=e.scrollTop,d=e.scrollLeft;const l=s.top-u,n=s.left-d;return this.positions.forEach((i,o)=>{i.clientRect&&e!==o&&e.contains(o)&&pf(i.clientRect,l,n)}),s.top=u,s.left=d,{top:l,left:n}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function JM(r){const a=r.cloneNode(!0),e=a.querySelectorAll("[id]"),t=r.nodeName.toLowerCase();a.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&this._initializeDragSequence(n,l)}else this.disabled||this._initializeDragSequence(this._rootElement,l)},this._pointerMove=l=>{const n=this._getPointerPositionOnPage(l);if(!this._hasStartedDragging){if(Math.abs(n.x-this._pickupPositionOnPage.x)+Math.abs(n.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const m=Date.now()>=this._dragStartTime+this._getDragStartDelay(l),g=this._dropContainer;if(!m)return void this._endDragSequence(l);(!g||!g.isDragging()&&!g.isReceiving())&&(l.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(l)))}return}l.preventDefault();const i=this._getConstrainedPointerPosition(n);if(this._hasMoved=!0,this._lastKnownPointerPosition=n,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,n);else{const o=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,c=this._activeTransform;c.x=i.x-o.x+this._passiveTransform.x,c.y=i.y-o.y+this._passiveTransform.y,this._applyRootElementTransform(c.x,c.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:l,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=l=>{this._endDragSequence(l)},this._nativeDragStart=l=>{if(this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&l.preventDefault()}else this.disabled||l.preventDefault()},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new YM(t),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=ze(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Qd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>li(t)),this._handles.forEach(t=>Qd(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=li(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,zC),e.addEventListener("touchstart",this._pointerDown,eD),e.addEventListener("dragstart",this._nativeDragStart,zC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?li(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),Qd(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),Qd(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){ff(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,s=t.parentNode,u=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),l=this._getShadowRoot();s.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),WM(t,!1,Rx),this._document.body.appendChild(s.replaceChild(u,t)),this._getPreviewInsertionPoint(s,l).appendChild(this._preview),this.started.next({source:this,event:a}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),s=ff(e),u=!s&&0!==e.button,d=this._rootElement,l=Un(e),n=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),i=s?kr(e):lh(e);if(l&&l.draggable&&"mousedown"===e.type&&e.preventDefault(),t||u||n||i)return;if(this._handles.length){const p=d.style;this._rootElementTapHighlight=p.webkitTapHighlightColor||"",p.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(p=>this._updateOnScroll(p)),this._boundaryElement&&(this._boundaryRect=Dx(this._boundaryElement));const o=this._previewTemplate;this._pickupPositionInElement=o&&o.template&&!o.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){WM(this._rootElement,!0,Rx),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),s=this._getPointerPositionOnPage(a),u=this._getDragDistance(s),d=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:u,dropPoint:s,event:a}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:u,dropPoint:s,event:a}),e.drop(this,t,this._initialIndex,this._initialContainer,d,u,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:s}){let u=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!u&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(u=this._initialContainer),u&&u!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=u,this._dropContainer.enter(this,a,e,u===this._initialContainer&&u.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:u,currentIndex:u.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,s),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,e):this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let s;if(t&&a){const u=a.matchSize?this._initialClientRect:null,d=a.viewContainer.createEmbeddedView(t,a.context);d.detectChanges(),s=iD(d,this._document),this._previewRef=d,a.matchSize?nD(s,u):s.style.transform=GC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=JM(this._rootElement),nD(s,this._initialClientRect),this._initialTransform&&(s.style.transform=this._initialTransform);return Ex(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Rx),Qd(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(u=>s.classList.add(u)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function ak(r){const a=getComputedStyle(r),e=Mx(a,"transition-property"),t=e.find(l=>"transform"===l||"all"===l);if(!t)return 0;const s=e.indexOf(t),u=Mx(a,"transition-duration"),d=Mx(a,"transition-delay");return $M(u[s])+$M(d[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const s=d=>{(!d||Un(d)===this._preview&&"transform"===d.propertyName)&&(this._preview?.removeEventListener("transitionend",s),t(),clearTimeout(u))},u=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=iD(this._placeholderRef,this._document)):t=JM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e,t){const s=e===this._rootElement?null:e,u=s?s.getBoundingClientRect():a,d=ff(t)?t.targetTouches[0]:t,l=this._getViewportScrollPosition();return{x:u.left-a.left+(d.pageX-u.left-l.left),y:u.top-a.top+(d.pageY-u.top-l.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=ff(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,s=t.pageX-e.left,u=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const l=this._ownerSVGElement.createSVGPoint();return l.x=s,l.y=u,l.matrixTransform(d.inverse())}}return{x:s,y:u}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:s}=this.constrainPosition?this.constrainPosition(a,this,this._initialClientRect,this._pickupPositionInElement):a;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:u,y:d}=this._pickupPositionInElement,l=this._boundaryRect,{width:n,height:i}=this._getPreviewRect(),o=l.top+d,c=l.bottom-(i-d);t=tD(t,l.left+u,l.right-(n-u)),s=tD(s,o,c)}return{x:t,y:s}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,s=this._pointerDirectionDelta,u=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-u.x),l=Math.abs(t-u.y);return d>this._config.pointerDirectionChangeThreshold&&(s.x=e>u.x?1:-1,u.x=e),l>this._config.pointerDirectionChangeThreshold&&(s.y=t>u.y?1:-1,u.y=t),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,Qd(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,zC),a.removeEventListener("touchstart",this._pointerDown,eD),a.removeEventListener("dragstart",this._nativeDragStart,zC)}_applyRootElementTransform(a,e){const t=GC(a,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=qC(t,this._initialTransform)}_applyPreviewTransform(a,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,s=GC(a,e);this._preview.style.transform=qC(s,t)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(0===s.width&&0===s.height||0===t.width&&0===t.height)return;const u=s.left-t.left,d=t.right-s.right,l=s.top-t.top,n=t.bottom-s.bottom;s.width>t.width?(u>0&&(a+=u),d>0&&(a-=d)):a=0,s.height>t.height?(l>0&&(e+=l),n>0&&(e-=n)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:ff(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=Un(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&pf(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Qc(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return li(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(a){return this._handles.find(e=>a.target&&(a.target===e||e.contains(a.target)))}}function GC(r,a){return`translate3d(${Math.round(r)}px, ${Math.round(a)}px, 0)`}function tD(r,a,e){return Math.max(a,Math.min(e,r))}function ff(r){return"t"===r.type[0]}function iD(r,a){const e=r.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(s=>t.appendChild(s)),t}function nD(r,a){r.style.width=`${a.width}px`,r.style.height=`${a.height}px`,r.style.transform=GC(a.left,a.top)}function mf(r,a){return Math.max(0,Math.min(a,r))}class dk{constructor(a,e){this._element=a,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(a){this.withItems(a)}sort(a,e,t,s){const u=this._itemPositions,d=this._getItemIndexFromPointerPosition(a,e,t,s);if(-1===d&&u.length>0)return null;const l="horizontal"===this.orientation,n=u.findIndex(w=>w.drag===a),i=u[d],c=i.clientRect,p=n>d?1:-1,m=this._getItemOffsetPx(u[n].clientRect,c,p),g=this._getSiblingOffsetPx(n,u,p),f=u.slice();return function ck(r,a,e){const t=mf(a,r.length-1),s=mf(e,r.length-1);if(t===s)return;const u=r[t],d=s{if(f[R]===w)return;const J=w.drag===a,Te=J?m:g,at=J?a.getPlaceholderElement():w.drag.getRootElement();w.offset+=Te,l?(at.style.transform=qC(`translate3d(${Math.round(w.offset)}px, 0, 0)`,w.initialTransform),pf(w.clientRect,0,Te)):(at.style.transform=qC(`translate3d(0, ${Math.round(w.offset)}px, 0)`,w.initialTransform),pf(w.clientRect,Te,0))}),this._previousSwap.overlaps=Hx(c,e,t),this._previousSwap.drag=i.drag,this._previousSwap.delta=l?s.x:s.y,{previousIndex:n,currentIndex:d}}enter(a,e,t,s){const u=null==s||s<0?this._getItemIndexFromPointerPosition(a,e,t):s,d=this._activeDraggables,l=d.indexOf(a),n=a.getPlaceholderElement();let i=d[u];if(i===a&&(i=d[u+1]),!i&&(null==u||-1===u||u-1&&d.splice(l,1),i&&!this._dragDropRegistry.isDragging(i)){const o=i.getRootElement();o.parentElement.insertBefore(n,o),d.splice(u,0,a)}else li(this._element).appendChild(n),d.push(a);n.style.transform="",this._cacheItemPositions()}withItems(a){this._activeDraggables=a.slice(),this._cacheItemPositions()}withSortPredicate(a){this._sortPredicate=a}reset(){this._activeDraggables.forEach(a=>{const e=a.getRootElement();if(e){const t=this._itemPositions.find(s=>s.drag===a)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a)}updateOnScroll(a,e){this._itemPositions.forEach(({clientRect:t})=>{pf(t,a,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:Dx(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(a,e,t){const s="horizontal"===this.orientation;let u=s?e.left-a.left:e.top-a.top;return-1===t&&(u+=s?e.width-a.width:e.height-a.height),u}_getSiblingOffsetPx(a,e,t){const s="horizontal"===this.orientation,u=e[a].clientRect,d=e[a+-1*t];let l=u[s?"width":"height"]*t;if(d){const n=s?"left":"top",i=s?"right":"bottom";-1===t?l-=d.clientRect[n]-u[i]:l+=u[n]-d.clientRect[i]}return l}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,s="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const d=t[t.length-1].clientRect;return s?a>=d.right:e>=d.bottom}{const d=t[0].clientRect;return s?a<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(a,e,t,s){const u="horizontal"===this.orientation,d=this._itemPositions.findIndex(({drag:l,clientRect:n})=>{if(l===a)return!1;if(s){const i=u?s.x:s.y;if(l===this._previousSwap.drag&&this._previousSwap.overlaps&&i===this._previousSwap.delta)return!1}return u?e>=Math.floor(n.left)&&e=Math.floor(n.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.x,this.entered=new He.x,this.exited=new He.x,this.dropped=new He.x,this.sorted=new He.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Qt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function rk(r=0,a=Tl.z){return r<0&&(r=0),(0,qg.H)(r,r,a)}(0,vh).pipe(gt(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,l=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-l):2===this._verticalScrollDirection&&d.scrollBy(0,l),1===this._horizontalScrollDirection?d.scrollBy(-l,0):2===this._horizontalScrollDirection&&d.scrollBy(l,0)})},this.element=li(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new YM(t),this._sortStrategy=new dk(this.element,e),this._sortStrategy.withSortPredicate((d,l)=>this.sortPredicate(d,l,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,s){this._draggingStarted(),null==s&&this.sortingDisabled&&(s=this._draggables.indexOf(a)),this._sortStrategy.enter(a,e,t,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,s,u,d,l,n={}){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:s,isPointerOverContainer:u,distance:d,dropPoint:l,event:n})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===a.indexOf(s))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(a){return this._sortStrategy.direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._sortStrategy.orientation=a,this}withScrollableParents(a){const e=li(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,s){if(this.sortingDisabled||!this._clientRect||!QM(this._clientRect,.05,e,t))return;const u=this._sortStrategy.sort(a,e,t,s);u&&this.sorted.next({previousIndex:u.previousIndex,currentIndex:u.currentIndex,container:this,item:a})}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,s=0,u=0;if(this._parentPositions.positions.forEach((d,l)=>{l===this._document||!d.clientRect||t||QM(d.clientRect,.05,a,e)&&([s,u]=function hk(r,a,e,t){const s=oD(a,t),u=sD(a,e);let d=0,l=0;if(s){const n=r.scrollTop;1===s?n>0&&(d=1):r.scrollHeight-n>r.clientHeight&&(d=2)}if(u){const n=r.scrollLeft;1===u?n>0&&(l=1):r.scrollWidth-n>r.clientWidth&&(l=2)}return[d,l]}(l,d.clientRect,a,e),(s||u)&&(t=l))}),!s&&!u){const{width:d,height:l}=this._viewportRuler.getViewportSize(),n={width:d,height:l,top:0,right:d,bottom:l,left:0};s=oD(n,e),u=sD(n,a),t=window}t&&(s!==this._verticalScrollDirection||u!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=u,this._scrollNode=t,(s||u)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=li(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=li(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_reset(){this._isDragging=!1;const a=li(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(a,e){return null!=this._clientRect&&Hx(this._clientRect,a,e)}_getSiblingContainerFromPosition(a,e,t){return this._siblings.find(s=>s._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!Hx(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,t);if(!s)return!1;const u=li(this.element);return s===u||u.contains(s)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Qc(li(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function oD(r,a){const{top:e,bottom:t,height:s}=r,u=.05*s;return a>=e-u&&a<=e+u?1:a>=t-u&&a<=t+u?2:0}function sD(r,a){const{left:e,right:t,width:s}=r,u=.05*s;return a>=e-u&&a<=e+u?1:a>=t-u&&a<=t+u?2:0}const WC=ur({passive:!1,capture:!0});let pk=(()=>{class r{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new He.x,this.pointerUp=new He.x,this.scroll=new He.x,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,WC)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,WC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=t.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:u=>this.pointerUp.next(u),options:!0}).set("scroll",{handler:u=>this.scroll.next(u),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:WC}),s||this._globalListeners.set("mousemove",{handler:u=>this.pointerMove.next(u),options:WC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((u,d)=>{this._document.addEventListener(d,u.handler,u.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new ai.y(s=>this._ngZone.runOutsideAngular(()=>{const d=l=>{this._activeDragInstances.length&&s.next(l)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,an.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(h.R0b),h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const fk={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let mk=(()=>{class r{constructor(e,t,s,u){this._document=e,this._ngZone=t,this._viewportRuler=s,this._dragDropRegistry=u}createDrag(e,t=fk){return new lk(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new uk(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0),h.LFG(h.R0b),h.LFG(ts),h.LFG(pk))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),gk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[mk],imports:[Vr]}),r})();function _k(r,a){if(1&r&&(h.TgZ(0,"div",5)(1,"mat-icon"),h._uU(2),h.qZA()()),2&r){const e=h.oxw();h.xp6(2),h.Oqu(e.data.icon)}}function bk(r,a){if(1&r&&(h.TgZ(0,"div",6),h._uU(1),h.qZA()),2&r){const e=h.oxw();h.xp6(1),h.hij(" ",e.showTimestamp()," ")}}let Ck=(()=>{class r{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new h.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=on();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(tR,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function SA(r,a){hp.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(Cn),h.Y36(Gl))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(h.TgZ(0,"div")(1,"div",0),h.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),h.YNc(2,_k,3,1,"div",1),h.TgZ(3,"div",2),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.YNc(6,bk,2,1,"div",3),h.TgZ(7,"div",4),h.NdJ("click",function(){return t.waiting=!0,t.doAction()}),h._uU(8),h.qZA()()()),2&e&&(h.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),h.ekj("error","error"===t.data.type)("success","success"===t.data.type),h.xp6(2),h.Q6J("ngIf",null!==t.data.icon),h.xp6(2),h.hij(" ",h.lcZ(5,12,t.data.title)," "),h.xp6(2),h.Q6J("ngIf",t.inDialog),h.xp6(1),h.Q6J("hidden",t.alreadyPressed),h.xp6(1),h.hij(" ",t.data.actionText," "))},dependencies:[M.O5,Qn,yt],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),r})(),wk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})(),Tk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})(),Ik=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Tk,Qe,Qe]}),r})(),Bk=(()=>{class r{constructor(){this.changes=new He.x,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(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Wk={provide:new h.OlP("mat-datepicker-scroll-strategy"),deps:[_n],useFactory:function Gk(r){return()=>r.scrollStrategies.reposition()}};let Bx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[Bk,Wk],imports:[M.ez,vi,Xa,$a,Or,Qe,Vr]}),r})(),cV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[En,Qe,Qe]}),r})();new h.OlP("mat-selectsearch-default-options");let fV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[[M.ez,y,vi,NC,Ur,lC,Ll]]}),r})(),fD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Qe,Qe]}),r})(),mV=(()=>{class r{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=ze(e)}get inset(){return this._inset}set inset(e){this._inset=ze(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(h.uIk("aria-orientation",t.vertical?"vertical":"horizontal"),h.ekj("mat-divider-vertical",t.vertical)("mat-divider-horizontal",!t.vertical)("mat-divider-inset",t.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,t){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),r})(),Ox=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Qe,Qe]}),r})(),gV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})(),gD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[M.ez,Qe,gV,Or]}),r})(),bD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Qa,Qe,Qa,Qe]}),r})(),CV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Cl]}),r})(),Lx=(()=>{class r{constructor(){this.changes=new He.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const HV={provide:Lx,deps:[[new h.FiY,new h.tp0,Lx]],useFactory:function DV(r){return r||new Lx}};let vD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[HV,ua],imports:[Qe,M.ez,Or,vi,CV,Ur,En,Qe]}),r})(),AD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[M.ez,Qe,Vr,Vr,Qe]}),r})(),TD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Qa,En,Qe,bh,M.ez,Qa,Qe,bh,Ox]}),r})(),YV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[M.ez,Qe,Or,En,hl,$a,Qe]}),r})(),SD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})(),ED=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[SD,En,Qe,hl,SD,Qe]}),r})(),jx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[M.ez,fD,Ox,gD,vi,bD,NC,Ur,AC,Ul,lC,to,br,Gi,C,y,vD,Bx,Eg,AD,TD,Fr,eM,Ax,ga,Ll,us,En,AC,ED,Sx,fD,Ox,gD,vi,bD,NC,Ur,AC,Ul,lC,to,br,Gi,C,y,vD,Bx,Eg,AD,TD,Fr,eM,Ax,ga,Ll,us,En,YV,ED,Sx]}),r})(),lB=(()=>{class r extends rd{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();const cB={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let MD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[{provide:Nn,useClass:lB},{provide:qn,useValue:cB}],imports:[M.ez,NC,AC,C,Sx,gk,Da,Gc,Ax,ga,lC,xx,Ur,Fr,vi,Ll,to,y,br,En,zE,wk,Ik,Bx,cV,Ch,us,fV,Gi,Ul,ib,jx,pP]}),r})();h.B6R(XE,[M.O5,ql,ji,fv,bv,_v,Nr,_r,Ck],[yt,V0]),new Date(324721404e5).valueOf();let RO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[M.ez,vi,Ur,Gc,MD,Da,to,y,br,xx]}),r})(),PO=(()=>{class r{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(ba),h.Y36(yi))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"button",4),h.NdJ("click",function(){return t.startAuth()}),h._uU(7),h.ALo(8,"translate"),h.TgZ(9,"mat-icon"),h._uU(10," login "),h.qZA()()()()()),2&e&&(h.xp6(4),h.hij(" ",h.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),h.xp6(3),h.hij(" ",h.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[ji,Qn,yt],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),r})();const IO=new h.OlP("perun-api-service");class kO{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}let VO=(()=>{class r{constructor(e,t,s,u,d){this.http=e,this.storeService=t,this.authzSevice=s,this.titleService=u,this.utilsService=d}initializeColors(e,t){return new Promise(s=>{t.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d)}),e.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d),this.setEntityTheme(u.entity,d)}),s()})}setEntityTheme(e,t){const s=function BO(r){return[Hn(tinycolor(r).lighten(52),"50"),Hn(tinycolor(r).lighten(37),"100"),Hn(tinycolor(r).lighten(26),"200"),Hn(tinycolor(r).lighten(12),"300"),Hn(tinycolor(r).lighten(6),"400"),Hn(tinycolor(r),"500"),Hn(tinycolor(r).darken(6),"600"),Hn(tinycolor(r).darken(12),"700"),Hn(tinycolor(r).darken(18),"800"),Hn(tinycolor(r).darken(24),"900"),Hn(tinycolor(r).lighten(50).saturate(30),"A100"),Hn(tinycolor(r).lighten(30).saturate(30),"A200"),Hn(tinycolor(r).lighten(10).saturate(15),"A400"),Hn(tinycolor(r).lighten(5).saturate(5),"A700")]}(t);for(const u of s){const n=`--${e}-theme-primary-contrast-${u.name}`,i=u.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${u.name}`,`${u.red},${u.green},${u.blue}`),document.documentElement.style.setProperty(n,i)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const s=document.location.hostname;t?.brandings?.[s]&&this.storeService.setBanding(s),e()},()=>{e()})})}getNoCacheHeaders(){return new v.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(s=>{this.storeService.setAppsConfig(s),e()},s=>t(s))})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(v.eN),h.LFG(gi),h.LFG(Ps),h.LFG(X),h.LFG(Ei))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function Hn(r,a){const e=tinycolor(r),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let OO=(()=>{class r{constructor(e,t,s,u){this.initAuthService=e,this.appConfigService=t,this.location=s,this.mfaHandlerService=u}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.simpleLoadPrincipal().then(()=>this.appConfigService.loadAppsConfig())):this.initAuthService.handleAuthStart())}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(zl),h.LFG(VO),h.LFG(M.Ye),h.LFG(Cp))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),LO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[VH],imports:[M.ez,jx,Da,zE]}),r})(),jO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-focus-on-linker-dialog"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),h._uU(3," info "),h.qZA(),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div"),h._uU(7),h.ALo(8,"translate"),h.qZA()()),2&e&&(h.xp6(4),h.hij(" ",h.lcZ(5,2,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL")," "),h.xp6(3),h.hij(" ",h.lcZ(8,4,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL_WARNING")," "))},dependencies:[Qn,yt],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),r})(),FO=(()=>{class r{constructor(e,t,s,u){this.otherApplicationsService=e,this.storeService=t,this.oauthService=s,this.dialog=u}openLinkerWindow(e,t){let s=this.otherApplicationsService.getUrlForOtherApplication($r.Linker);this.storeService.getProperty("use_localhost_linker_url")&&(s="http://localhost:4201/");let u=s+"?formerToken="+this.oauthService.getAccessToken();t&&0!==t.length&&(u+="&idphint="+t.toString());const n=window.top,c=window.open(u,"_blank",`width=600,height=600,top=${n.outerHeight/2+n.screenY-300}, left=${n.outerWidth/2+n.screenX-300}`);let p;if(c){const g=on();g.width="450px",g.panelClass="noBorderDialog",p=this.dialog.open(jO,g)}window.addEventListener("message",g=>{sessionStorage.setItem("linkedResult",g.data)});const m=setInterval(()=>{if(c.closed){clearInterval(m),p.close();const g=sessionStorage.getItem("linkedResult");sessionStorage.removeItem("linkedResult"),e(g)}},1e3)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Sb),h.LFG(gi),h.LFG(Gr.Ct),h.LFG(Cn))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),kD=(()=>{class r{}return r.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",r.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",r.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",r.MEMBER_GROUP_STATUS_INDIRECT="urn:perun:member_group:attribute-def:virt:groupStatusIndirect",r.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",r.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",r.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",r.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",r.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",r.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",r.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",r.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",r.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",r.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",r.USER_DEF_CERTIFICATES="urn:perun:user:attribute-def:def:userCertificates",r.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",r.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",r.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",r.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",r.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",r.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",r.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",r.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",r.GROUP_SYNC_INTERVAL="urn:perun:group:attribute-def:def:synchronizationInterval",r.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",r.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",r.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",r.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",r.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",r})();function UO(r,a){1&r&&h._UZ(0,"mat-spinner",2)}function NO(r,a){1&r&&(h.TgZ(0,"span",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&r&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"LIST_OF_IDENTITIES.SIGN_NOT_KNOW")))}function qO(r,a){1&r&&(h.TgZ(0,"span",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&r&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"LIST_OF_IDENTITIES.SIGN_KNOW")))}function zO(r,a){if(1&r&&h._UZ(0,"img",18),2&r){const e=h.oxw(2);h.s9C("src",e.logo,h.LSH),h.Q6J("height",e.height)("width",e.width)}}function GO(r,a){1&r&&h._UZ(0,"mat-icon",19)}function WO(r,a){1&r&&h._UZ(0,"mat-icon",20)}function $O(r,a){1&r&&h._UZ(0,"th",21)}function QO(r,a){if(1&r&&(h.TgZ(0,"td",22),h._uU(1),h.qZA()),2&r){const e=a.$implicit;h.xp6(1),h.hij(" ",e.name,": ")}}function YO(r,a){1&r&&h._UZ(0,"th",21)}function JO(r,a){if(1&r&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&r){const e=h.oxw().$implicit;h.xp6(1),h.Oqu(e.value)}}function KO(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"span"),h._uU(1),h.TgZ(2,"span",25),h.ALo(3,"translate"),h.TgZ(4,"button",26),h.NdJ("click",function(){const u=h.CHM(e).$implicit,d=h.oxw(4);return h.KtG(d.openDeleteDialog(u))}),h.TgZ(5,"mat-icon"),h._uU(6,"clear"),h.qZA()()(),h._UZ(7,"br"),h.qZA()}if(2&r){const e=a.$implicit,t=h.oxw(4);h.xp6(1),h.hij(" ",e," "),h.xp6(1),h.Q6J("matTooltip",h.lcZ(3,4,"LIST_OF_IDENTITIES.DELETE_DISABLED_TOOLTIP"))("matTooltipDisabled",!e.includes(t.idpProvider)),h.xp6(2),h.Q6J("disabled",e.includes(t.idpProvider))}}function ZO(r,a){if(1&r&&(h.TgZ(0,"span"),h.YNc(1,KO,8,6,"span",24),h.qZA()),2&r){const e=h.oxw().$implicit;h.xp6(1),h.Q6J("ngForOf",e.value)}}function XO(r,a){if(1&r&&(h.TgZ(0,"td",23),h.YNc(1,JO,2,1,"span",1),h.YNc(2,ZO,2,1,"span",1),h.qZA()),2&r){const e=a.$implicit;h.xp6(1),h.Q6J("ngIf","Linked accounts"!==e.name),h.xp6(1),h.Q6J("ngIf","Linked accounts"===e.name)}}function eL(r,a){1&r&&h._UZ(0,"tr",27)}const tL=function(){return["name","value"]};function iL(r,a){if(1&r&&(h.TgZ(0,"div"),h.YNc(1,NO,3,3,"span",3),h.YNc(2,qO,3,3,"span",3),h.TgZ(3,"div",4)(4,"div",5),h.YNc(5,zO,1,3,"img",6),h.YNc(6,GO,1,0,"mat-icon",7),h.YNc(7,WO,1,0,"mat-icon",8),h.qZA(),h.TgZ(8,"div")(9,"h2",9),h._uU(10),h.qZA(),h._UZ(11,"mat-divider"),h.TgZ(12,"table",10),h.ynx(13,11),h.YNc(14,$O,1,0,"th",12),h.YNc(15,QO,2,1,"td",13),h.BQk(),h.ynx(16,14),h.YNc(17,YO,1,0,"th",12),h.YNc(18,XO,3,2,"td",15),h.BQk(),h.YNc(19,eL,1,0,"tr",16),h.qZA()()()()),2&r){const e=h.oxw();h.xp6(1),h.Q6J("ngIf",e.unknownIdentity),h.xp6(1),h.Q6J("ngIf",!e.unknownIdentity),h.xp6(3),h.Q6J("ngIf",e.logo),h.xp6(1),h.Q6J("ngIf",!e.logo&&!e.unknownIdentity),h.xp6(1),h.Q6J("ngIf",!e.logo&&e.unknownIdentity),h.xp6(3),h.Oqu(e.idpProvider),h.xp6(2),h.Q6J("dataSource",e.dataSource),h.xp6(7),h.Q6J("matRowDefColumns",h.DdM(8,tL))}}let nL=(()=>{class r{constructor(e,t,s,u,d){this.oauthService=e,this.userService=t,this.storeService=s,this.initService=u,this.dialog=d,this.idpProvider="",this.dataSource=new xC,this.info=[],this.loading=!1}ngOnInit(){this.loading=!0,this.initProfileAndPrincipal()}ngOnChanges(){0!==this.reloadData&&(this.info=[],this.initProfileAndPrincipal())}initProfileAndPrincipal(){this.oauthService.loadUserProfile().then(e=>{this.setIdpInfo(e),this.initService.simpleLoadPrincipal().then(()=>{this.userId=this.storeService.getPerunPrincipal().userId,this.unknownIdentity=-1===this.userId,this.reloadAccounts()})})}reloadAccounts(){if(this.loading=!0,this.unknownIdentity)this.dataSource=new xC(this.info),this.loading=!1;else{const e=[];this.userService.getRichUserExtSources(this.userId).subscribe(t=>{this.userExtSources=t,t.forEach(s=>{if(0!==s.attributes.length){const u=pp(s.attributes,kD.UES_SOURCE_IDP_NAME),d=pp(s.attributes,kD.UES_DEF_MAIL);u?.value&&e.push(`${u.value}${d?.value?" ("+d.value+")":""}`)}}),0!==this.info.length&&(this.info=this.info.filter(s=>"Linked accounts"!==s.name)),this.info.push({name:"Linked accounts",value:e}),this.dataSource=new xC(this.info),this.loading=!1})}}setIdpInfo(e){const t=this.getUserName(e);null!=t&&""!==t&&this.info.push({name:"Name",value:t});const s=this.getUserLogin(e);null!=s&&""!==s&&this.info.push({name:"Login",value:s}),e.info.email&&this.info.push({name:"Email",value:e.info.email}),this.idpProvider=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_provider_userinfo")),this.logo=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_userinfo")),this.width=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_width_userinfo")),this.height=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_height_userinfo"))}getNestedItem(e,t){let s=e.info;for(const u of t)s=s[u],Array.isArray(s)&&(s=s[0]);return String(s)}getUserName(e){const t=e.info.name;if(t&&""!==t)return t;const s=e.info.given_name,u=e.info.family_name;return s&&u?s+" "+u:""}getUserLogin(e){const t=e.info.preferred_username;if(t&&""!==t)return t;const s=e.info.nickname;return s&&""!==s?s:""}openDeleteDialog(e){const t=[];this.userExtSources.filter(d=>d.attributes.forEach(l=>{"sourceIdPName"===l.baseFriendlyName&&e.includes(l.value)&&t.push(d)}));const s=on();s.width="450px",s.data={theme:"user-theme",userId:this.userId,extSources:t},this.dialog.open(VR,s).afterClosed().subscribe(d=>{d&&this.reloadAccounts()})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(Gr.Ct),h.Y36(Vs),h.Y36(gi),h.Y36(zl),h.Y36(Cn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-list-of-identities"]],inputs:{reloadData:"reloadData"},features:[h.TTD],decls:3,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],["class","mt-n3",4,"ngIf"],[1,"identity-flexbox"],[1,"d-flex","align-items-center","justify-content-center"],["class","logo text-center",3,"height","width","src",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-identity",4,"ngIf"],["svgIcon","perun-info-grey","class","perun-icon perun-icon-identity",4,"ngIf"],[1,"px-3"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold px-3","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pr-3","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mt-n3"],[1,"logo","text-center",3,"height","width","src"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-identity"],["svgIcon","perun-info-grey",1,"perun-icon","perun-icon-identity"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold","px-3"],["mat-cell","",1,"pr-3"],[4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipDisabled"],["mat-icon-button","","color","warn",3,"disabled","click"],["mat-row",""]],template:function(e,t){1&e&&(h.TgZ(0,"div"),h.YNc(1,UO,1,0,"mat-spinner",0),h.YNc(2,iL,20,9,"div",1),h.qZA()),2&e&&(h.xp6(1),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading))},dependencies:[M.sg,M.O5,mV,ji,Qn,$0,CC,wC,bC,Q0,yC,vC,Y0,Cr,I_,yt],styles:[".logo[_ngcontent-%COMP%]{display:block;margin-top:auto;margin-bottom:auto}.perun-icon-identity[_ngcontent-%COMP%]{transform:scale(3.5);margin-left:.9rem;margin-top:1rem;color:#000}.identity-flexbox[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;width:100%;gap:.5rem 1rem;margin-top:.5rem}"]}),r})(),rL=(()=>{class r{transform(e){let t="";return e.forEach(s=>{const u=s.attributes;if(u){const d=u.sourceIdPName;d&&""!==d&&(t=t+d+", ")}}),t.slice(0,-2)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=h.Yjl({name:"similarIdentityFriendlyNamesString",type:r,pure:!0}),r})();function aL(r,a){1&r&&(h.TgZ(0,"perun-web-apps-alert",7),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&r&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"MAIN_WINDOW.IS_NOT_KNOWN_IDENTITY")))}function oL(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"div",10)(1,"div",11),h._UZ(2,"mat-icon",12),h.TgZ(3,"div",13)(4,"div"),h._uU(5),h.qZA(),h.TgZ(6,"div",14),h._uU(7),h.ALo(8,"translate"),h.ALo(9,"similarIdentityFriendlyNamesString"),h.qZA()()(),h.TgZ(10,"button",15),h.NdJ("click",function(){const u=h.CHM(e).$implicit,d=h.oxw(2);return h.KtG(d.openPopUp(u.identities))}),h._uU(11),h.ALo(12,"translate"),h.qZA()()}if(2&r){const e=a.$implicit;h.xp6(5),h.Oqu(e.email),h.xp6(2),h.AsE(" ",h.lcZ(8,4,"MAIN_WINDOW.LINKED_ACCOUNTS"),": ",h.lcZ(9,6,e.identities)," "),h.xp6(4),h.hij(" ",h.lcZ(12,8,"MAIN_WINDOW.CONNECT_THIS_ACCOUNT")," ")}}function sL(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"div")(1,"h2"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"p"),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.YNc(7,oL,13,10,"div",8),h.TgZ(8,"button",9),h.NdJ("click",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.openPopUp([]))}),h._uU(9),h.ALo(10,"translate"),h.qZA()()}if(2&r){const e=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,4,"MAIN_WINDOW.TITLE_"+e.titleHelpTranslatePath)," "),h.xp6(3),h.hij(" ",h.lcZ(6,6,"MAIN_WINDOW."+e.titleHelpTranslatePath+"_HELP")," "),h.xp6(2),h.Q6J("ngForOf",e.similarIdentities),h.xp6(2),h.hij(" ",h.lcZ(10,8,"MAIN_WINDOW.CONNECT_OTHER_ACCOUNT")," ")}}function lL(r,a){1&r&&h._UZ(0,"mat-spinner",16)}let cL=(()=>{class r{constructor(e,t,s,u,d){this.storeService=e,this.initService=t,this.registrarService=s,this.router=u,this.openLinkerService=d,this.loading=!1,this.similarIdentities=[],this.titleHelpTranslatePath="SIMILAR_FOUND",this.reloadData=0}ngOnInit(){this.initData()}initData(){this.loading=!0,this.initService.simpleLoadPrincipal().then(()=>{this.unknownIdentity=-1===this.storeService.getPerunPrincipal().userId,this.reloadSimilarIdentities()})}reloadSimilarIdentities(){this.registrarService.checkForSimilarRichIdentities().subscribe(e=>{this.similarIdentities=e.slice(0,2),0===this.similarIdentities.length&&(this.titleHelpTranslatePath="NO_SIMILAR_FOUND"),this.loading=!1})}openPopUp(e){const t=[];e.forEach(s=>{s.attributes.sourceIdPName&&t.push(s.extSource.name)}),this.openLinkerService.openLinkerWindow(s=>{"TOKEN_EXPIRED"===s?location.reload():"OK"===s?(this.reloadData++,this.initData()):"MESSAGE_SENT_TO_SUPPORT"===s&&this.router.navigate(["/result",s],{queryParamsHandling:"preserve"})},t)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(gi),h.Y36(zl),h.Y36(mc),h.Y36(yi),h.Y36(FO))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-main-window"]],decls:9,vars:4,consts:[[1,"d-flex"],[1,"d-inline-block","ml-auto","mr-auto"],["alert_type","warn",4,"ngIf"],[1,"main-flexbox","card","p-4","mat-elevation-z3"],[1,"identities-list",3,"reloadData"],[4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn"],["class","card d-flex mt-3 p-2 identity-card mat-elevation-z3",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mt-3",3,"click"],[1,"card","d-flex","mt-3","p-2","identity-card","mat-elevation-z3"],[1,"d-flex","flex-row"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-similar"],[1,"ml-3","mt-1"],[1,"pl-1"],["mat-flat-button","","color","accent",1,"ml-auto","mr-2","mb-2","mt-3",3,"click"],[1,"mr-auto","ml-auto"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,aL,3,3,"perun-web-apps-alert",2),h.TgZ(3,"div",3),h._UZ(4,"perun-web-apps-list-of-identities",4)(5,"br"),h.TgZ(6,"div"),h.YNc(7,sL,11,10,"div",5),h.YNc(8,lL,1,0,"mat-spinner",6),h.qZA()()()()),2&e&&(h.xp6(2),h.Q6J("ngIf",t.unknownIdentity),h.xp6(2),h.Q6J("reloadData",t.reloadData),h.xp6(3),h.Q6J("ngIf",!t.loading),h.xp6(1),h.Q6J("ngIf",t.loading))},dependencies:[M.sg,M.O5,ji,Qn,Cr,ql,nL,rL,yt],styles:[".identities-list[_ngcontent-%COMP%]{max-width:650px}.main-flexbox[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;gap:1.5rem}.perun-icon-similar[_ngcontent-%COMP%]{transform:scale(2);margin-left:1rem;margin-top:1rem;color:#000}.identity-card[_ngcontent-%COMP%]{background-color:#f5f5f5;max-width:450px}"]}),r})();function dL(r,a){if(1&r&&(h.TgZ(0,"mat-icon",6),h._uU(1),h.qZA()),2&r){const e=h.oxw();h.xp6(1),h.hij(" ",e.icon," ")}}function uL(r,a){1&r&&h._UZ(0,"mat-icon",7)}function hL(r,a){if(1&r&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&r){const e=h.oxw(2);h.xp6(1),h.hij(" ",e.supportMail," ")}}function pL(r,a){if(1&r&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&r){const e=h.oxw(2);h.xp6(1),h.hij(" ",e.userMail," ")}}function fL(r,a){if(1&r&&(h.TgZ(0,"h5"),h._uU(1),h.ALo(2,"translate"),h.YNc(3,hL,2,1,"span",5),h.YNc(4,pL,2,1,"span",5),h.qZA()),2&r){const e=h.oxw();h.xp6(1),h.hij(" ",h.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR."+e.result+"_SUBTITLE")," "),h.xp6(2),h.Q6J("ngIf","UNKNOWN_ERROR"===e.result),h.xp6(1),h.Q6J("ngIf","MESSAGE_SENT_TO_SUPPORT"===e.result)}}function mL(r,a){if(1&r&&(h.TgZ(0,"h5"),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"translate"),h.qZA()),2&r){const e=h.oxw();h.xp6(1),h.lnq(" ",h.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_1")," ",e.userMail," ",h.lcZ(3,5,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_2")," ")}}const gL=function(r){return{"background-color":r}},_L=["*"];let bL=(()=>{class r{constructor(e){this.store=e,this.supportMail=this.store.getProperty("support_mail"),this.userMail=this.store.getPerunPrincipal().additionalInformations.mail,this.color="",this.icon="",this.greenColor="#e0ffd4",this.blueColor="#d4f2ff",this.redColor="#ffd4d4",this.warningIcon="warning",this.infoIcon="info",this.messageSent="mark_email_read"}ngOnChanges(){switch(this.result){case"OK":this.color=this.greenColor;break;case"IDENTITY_REGISTERED_ALREADY":case"UNKNOWN_ERROR":this.color=this.redColor,this.icon=this.warningIcon;break;case"IDENTITY_IDENTICAL":case"IDENTITY_LINKED":case"IDENTITY_UNKNOWN":this.color=this.blueColor,this.icon=this.infoIcon;break;case"MESSAGE_SENT_TO_SUPPORT":this.color=this.blueColor,this.icon=this.messageSent;break;case"TOKEN_EXPIRED":this.color=this.blueColor,this.icon=this.warningIcon}}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(gi))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-consolidation-result"]],inputs:{result:"result"},features:[h.TTD],ngContentSelectors:_L,decls:12,vars:10,consts:[[1,"p-4","m-3",3,"ngStyle"],[1,"d-flex","pb-5","flex-row"],["class","mat-icon-war mr-4",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-detail",4,"ngIf"],[1,"ml-5"],[4,"ngIf"],[1,"mat-icon-war","mr-4"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-detail"]],template:function(e,t){1&e&&(h.F$t(),h.TgZ(0,"div",0)(1,"div",1)(2,"div"),h.YNc(3,dL,2,1,"mat-icon",2),h.YNc(4,uL,1,0,"mat-icon",3),h.qZA(),h.TgZ(5,"div",4)(6,"h1"),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.YNc(9,fL,5,5,"h5",5),h.YNc(10,mL,4,7,"h5",5),h.qZA()(),h.Hsn(11),h.qZA()),2&e&&(h.Q6J("ngStyle",h.VKq(8,gL,t.color)),h.xp6(3),h.Q6J("ngIf","OK"!==t.result),h.xp6(1),h.Q6J("ngIf","OK"===t.result),h.xp6(3),h.hij(" ",h.lcZ(8,6,"SHARED_LIB.CONSOLIDATOR."+t.result+"_TITLE")," "),h.xp6(2),h.Q6J("ngIf",!(t.userMail&&"OK"===t.result)),h.xp6(1),h.Q6J("ngIf",t.userMail&&"OK"===t.result))},dependencies:[M.O5,M.PC,Qn,yt],styles:[".mat-icon-war[_ngcontent-%COMP%]{font-size:82px}.perun-icon-detail[_ngcontent-%COMP%]{transform:scale(4.5);margin-left:3rem;margin-top:1.5rem;color:#000}"]}),r})();const CL=[{path:"",redirectTo:"consolidate",pathMatch:"full"},{path:"login",component:PO},{path:"consolidate",component:cL},{path:"result/:result",component:(()=>{class r{constructor(e,t){this.route=e,this.router=t}ngOnInit(){this.route.params.subscribe(e=>{this.linkerResult=e.result})}onClick(){this.router.navigate(["/consolidate"],{queryParamsHandling:"merge"})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(jn),h.Y36(yi))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-show-result-page"]],decls:6,vars:4,consts:[[1,"show-result","ml-auto","mr-auto"],[3,"result"],[1,"d-flex","flex-column","mt-5"],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"perun-web-apps-consolidation-result",1)(2,"div",2)(3,"button",3),h.NdJ("click",function(){return t.onClick()}),h._uU(4),h.ALo(5,"translate"),h.qZA()()()()),2&e&&(h.xp6(1),h.Q6J("result",t.linkerResult),h.xp6(3),h.hij(" ",h.lcZ(5,2,"SHOW_RESULT.BACK_HOME")," "))},dependencies:[ji,bL,yt],styles:[".show-result[_ngcontent-%COMP%]{max-width:55vw!important}"]}),r})()}];let wL=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Gc.forRoot(CL,{preloadingStrategy:Rm,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),Gc]}),r})(),yL=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[M.ez,Ul,vi,Da]}),r})();const vL={provide:v.TP,useExisting:(0,h.Gpc)(()=>Tb),multi:!0};function AL(r){return new kO(r,"./assets/i18n/",".json")}function xL(r){const a={basePath:r.getProperty("api_url")};return new lt(a)}const TL=r=>()=>r.loadConfigs();let SL=(()=>{class r{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(zA),h.LFG(hn))},r.\u0275mod=h.oAB({type:r,bootstrap:[HP]}),r.\u0275inj=h.cJS({providers:[zA,{provide:h.ip1,useFactory:TL,multi:!0,deps:[OO]},{provide:lt,useFactory:xL,deps:[gi]},Tb,vL,{provide:IO,useClass:GA},{provide:Gr.Hy,useFactory:()=>localStorage}],imports:[Sa,HI,v.JF,wi,wL,jx,RO,Ur,MD,xx,ib,yL,Gr.zr.forRoot(),LO,Da.forRoot({loader:{provide:ir,useFactory:AL,deps:[v.eN]}})]}),r})();(0,h.G48)(),Ze().bootstrapModule(SL).catch(r=>console.error(r))},1302:function(N,z,E){var M;!function(h,L){var F={};!function(h){"use strict";h.__esModule=!0,h.digestLength=32,h.blockSize=64;var L=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function F(oe,ie,ae,he,fe){for(var be,Le,je,Ae,we,xe,Ke,Pe,Re,De,le,ce,_e;fe>=64;){for(be=ie[0],Le=ie[1],je=ie[2],Ae=ie[3],we=ie[4],xe=ie[5],Ke=ie[6],Pe=ie[7],De=0;De<16;De++)oe[De]=(255&ae[le=he+4*De])<<24|(255&ae[le+1])<<16|(255&ae[le+2])<<8|255&ae[le+3];for(De=16;De<64;De++)oe[De]=((ce=((Re=oe[De-2])>>>17|Re<<15)^(Re>>>19|Re<<13)^Re>>>10)+oe[De-7]|0)+((_e=((Re=oe[De-15])>>>7|Re<<25)^(Re>>>18|Re<<14)^Re>>>3)+oe[De-16]|0);for(De=0;De<64;De++)ce=(((we>>>6|we<<26)^(we>>>11|we<<21)^(we>>>25|we<<7))+(we&xe^~we&Ke)|0)+(Pe+(L[De]+oe[De]|0)|0)|0,_e=((be>>>2|be<<30)^(be>>>13|be<<19)^(be>>>22|be<<10))+(be&Le^be&je^Le&je)|0,Pe=Ke,Ke=xe,xe=we,we=Ae+ce|0,Ae=je,je=Le,Le=be,be=ce+_e|0;ie[0]+=be,ie[1]+=Le,ie[2]+=je,ie[3]+=Ae,ie[4]+=we,ie[5]+=xe,ie[6]+=Ke,ie[7]+=Pe,he+=64,fe-=64}return he}var B=function(){function oe(){this.digestLength=h.digestLength,this.blockSize=h.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return oe.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},oe.prototype.clean=function(){for(var ie=0;ie0){for(;this.bufferLength<64&&ae>0;)this.buffer[this.bufferLength++]=ie[he++],ae--;64===this.bufferLength&&(F(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ae>=64&&(he=F(this.temp,this.state,ie,he,ae),ae%=64);ae>0;)this.buffer[this.bufferLength++]=ie[he++],ae--;return this},oe.prototype.finish=function(ie){if(!this.finished){var ae=this.bytesHashed,he=this.bufferLength,fe=ae/536870912|0,be=ae<<3,Le=ae%64<56?64:128;this.buffer[he]=128;for(var je=he+1;je>>24&255,this.buffer[Le-7]=fe>>>16&255,this.buffer[Le-6]=fe>>>8&255,this.buffer[Le-5]=fe>>>0&255,this.buffer[Le-4]=be>>>24&255,this.buffer[Le-3]=be>>>16&255,this.buffer[Le-2]=be>>>8&255,this.buffer[Le-1]=be>>>0&255,F(this.temp,this.state,this.buffer,0,Le),this.finished=!0}for(je=0;je<8;je++)ie[4*je+0]=this.state[je]>>>24&255,ie[4*je+1]=this.state[je]>>>16&255,ie[4*je+2]=this.state[je]>>>8&255,ie[4*je+3]=this.state[je]>>>0&255;return this},oe.prototype.digest=function(){var ie=new Uint8Array(this.digestLength);return this.finish(ie),ie},oe.prototype._saveState=function(ie){for(var ae=0;aethis.blockSize)(new B).update(ie).finish(ae).clean();else for(var he=0;he1&&ie.update(oe),ae&&ie.update(ae),ie.update(he),ie.finish(oe),he[0]++}h.HMAC=q,h.hash=Q,h.default=Q,h.hmac=ee;var Y=new Uint8Array(h.digestLength);h.hkdf=function G(oe,ie,ae,he){void 0===ie&&(ie=Y),void 0===he&&(he=32);for(var fe=new Uint8Array([1]),be=ee(ie,oe),Le=new q(be),je=new Uint8Array(Le.digestLength),Ae=je.length,we=new Uint8Array(he),xe=0;xe>>24&255,Le[1]=Ke>>>16&255,Le[2]=Ke>>>8&255,Le[3]=Ke>>>0&255,fe.reset(),fe.update(ie),fe.update(Le),fe.finish(Ae);for(var Pe=0;Pe=G.status}function q(Y){try{Y.dispatchEvent(new MouseEvent("click"))}catch{var G=document.createEvent("MouseEvents");G.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Y.dispatchEvent(G)}}var Q="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,ee=Q.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),W=Q.saveAs||("object"!=typeof window||window!==Q?function(){}:"download"in HTMLAnchorElement.prototype&&!ee?function(Y,G,re){var oe=Q.URL||Q.webkitURL,ie=document.createElement("a");ie.download=G=G||Y.name||"download",ie.rel="noopener","string"==typeof Y?(ie.href=Y,ie.origin===location.origin?q(ie):B(ie.href)?F(Y,G,re):q(ie,ie.target="_blank")):(ie.href=oe.createObjectURL(Y),setTimeout(function(){oe.revokeObjectURL(ie.href)},4e4),setTimeout(function(){q(ie)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,G,re){if(G=G||Y.name||"download","string"!=typeof Y)navigator.msSaveOrOpenBlob(function L(Y,G){return typeof G>"u"?G={autoBom:!1}:"object"!=typeof G&&(console.warn("Deprecated: Expected third argument to be a object"),G={autoBom:!G}),G.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Y.type)?new Blob(["\ufeff",Y],{type:Y.type}):Y}(Y,re),G);else if(B(Y))F(Y,G,re);else{var oe=document.createElement("a");oe.href=Y,oe.target="_blank",setTimeout(function(){q(oe)})}}:function(Y,G,re,oe){if((oe=oe||open("","_blank"))&&(oe.document.title=oe.document.body.innerText="downloading..."),"string"==typeof Y)return F(Y,G,re);var ie="application/octet-stream"===Y.type,ae=/constructor/i.test(Q.HTMLElement)||Q.safari,he=/CriOS\/[\d]+/.test(navigator.userAgent);if((he||ie&&ae||ee)&&typeof FileReader<"u"){var fe=new FileReader;fe.onloadend=function(){var je=fe.result;je=he?je:je.replace(/^data:[^;]*;/,"data:attachment/file;"),oe?oe.location.href=je:location=je,oe=null},fe.readAsDataURL(Y)}else{var be=Q.URL||Q.webkitURL,Le=be.createObjectURL(Y);oe?oe.location=Le:location.href=Le,oe=null,setTimeout(function(){be.revokeObjectURL(Le)},4e4)}});Q.saveAs=W.saveAs=W,N.exports=W}.apply(z,[]))&&(N.exports=h)},9751:(N,z,E)=>{"use strict";E.d(z,{y:()=>ee});var M=E(930),h=E(727),L=E(8822),F=E(9635),B=E(2416),q=E(576),Q=E(2806);let ee=(()=>{class re{constructor(ie){ie&&(this._subscribe=ie)}lift(ie){const ae=new re;return ae.source=this,ae.operator=ie,ae}subscribe(ie,ae,he){const fe=function G(re){return re&&re instanceof M.Lv||function Y(re){return re&&(0,q.m)(re.next)&&(0,q.m)(re.error)&&(0,q.m)(re.complete)}(re)&&(0,h.Nn)(re)}(ie)?ie:new M.Hp(ie,ae,he);return(0,Q.x)(()=>{const{operator:be,source:Le}=this;fe.add(be?be.call(fe,Le):Le?this._subscribe(fe):this._trySubscribe(fe))}),fe}_trySubscribe(ie){try{return this._subscribe(ie)}catch(ae){ie.error(ae)}}forEach(ie,ae){return new(ae=W(ae))((he,fe)=>{const be=new M.Hp({next:Le=>{try{ie(Le)}catch(je){fe(je),be.unsubscribe()}},error:fe,complete:he});this.subscribe(be)})}_subscribe(ie){var ae;return null===(ae=this.source)||void 0===ae?void 0:ae.subscribe(ie)}[L.L](){return this}pipe(...ie){return(0,F.U)(ie)(this)}toPromise(ie){return new(ie=W(ie))((ae,he)=>{let fe;this.subscribe(be=>fe=be,be=>he(be),()=>ae(fe))})}}return re.create=oe=>new re(oe),re})();function W(re){var oe;return null!==(oe=re??B.v.Promise)&&void 0!==oe?oe:Promise}},7579:(N,z,E)=>{"use strict";E.d(z,{x:()=>Q});var M=E(9751),h=E(727);const F=(0,E(3888).d)(W=>function(){W(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var B=E(8737),q=E(2806);let Q=(()=>{class W extends M.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const re=new ee(this,this);return re.operator=G,re}_throwIfClosed(){if(this.closed)throw new F}next(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const re of this.currentObservers)re.next(G)}})}error(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:re}=this;for(;re.length;)re.shift().error(G)}})}complete(){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:G}=this;for(;G.length;)G.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var G;return(null===(G=this.observers)||void 0===G?void 0:G.length)>0}_trySubscribe(G){return this._throwIfClosed(),super._trySubscribe(G)}_subscribe(G){return this._throwIfClosed(),this._checkFinalizedStatuses(G),this._innerSubscribe(G)}_innerSubscribe(G){const{hasError:re,isStopped:oe,observers:ie}=this;return re||oe?h.Lc:(this.currentObservers=null,ie.push(G),new h.w0(()=>{this.currentObservers=null,(0,B.P)(ie,G)}))}_checkFinalizedStatuses(G){const{hasError:re,thrownError:oe,isStopped:ie}=this;re?G.error(oe):ie&&G.complete()}asObservable(){const G=new M.y;return G.source=this,G}}return W.create=(Y,G)=>new ee(Y,G),W})();class ee extends Q{constructor(Y,G){super(),this.destination=Y,this.source=G}next(Y){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===re||re.call(G,Y)}error(Y){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===re||re.call(G,Y)}complete(){var Y,G;null===(G=null===(Y=this.destination)||void 0===Y?void 0:Y.complete)||void 0===G||G.call(Y)}_subscribe(Y){var G,re;return null!==(re=null===(G=this.source)||void 0===G?void 0:G.subscribe(Y))&&void 0!==re?re:h.Lc}}},930:(N,z,E)=>{"use strict";E.d(z,{Hp:()=>he,Lv:()=>re});var M=E(576),h=E(727),L=E(2416),F=E(7849),B=E(5032);const q=W("C",void 0,void 0);function W(Ae,we,xe){return{kind:Ae,value:we,error:xe}}var Y=E(3410),G=E(2806);class re extends h.w0{constructor(we){super(),this.isStopped=!1,we?(this.destination=we,(0,h.Nn)(we)&&we.add(this)):this.destination=je}static create(we,xe,Ke){return new he(we,xe,Ke)}next(we){this.isStopped?Le(function ee(Ae){return W("N",Ae,void 0)}(we),this):this._next(we)}error(we){this.isStopped?Le(function Q(Ae){return W("E",void 0,Ae)}(we),this):(this.isStopped=!0,this._error(we))}complete(){this.isStopped?Le(q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(we){this.destination.next(we)}_error(we){try{this.destination.error(we)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const oe=Function.prototype.bind;function ie(Ae,we){return oe.call(Ae,we)}class ae{constructor(we){this.partialObserver=we}next(we){const{partialObserver:xe}=this;if(xe.next)try{xe.next(we)}catch(Ke){fe(Ke)}}error(we){const{partialObserver:xe}=this;if(xe.error)try{xe.error(we)}catch(Ke){fe(Ke)}else fe(we)}complete(){const{partialObserver:we}=this;if(we.complete)try{we.complete()}catch(xe){fe(xe)}}}class he extends re{constructor(we,xe,Ke){let Pe;if(super(),(0,M.m)(we)||!we)Pe={next:we??void 0,error:xe??void 0,complete:Ke??void 0};else{let Re;this&&L.v.useDeprecatedNextContext?(Re=Object.create(we),Re.unsubscribe=()=>this.unsubscribe(),Pe={next:we.next&&ie(we.next,Re),error:we.error&&ie(we.error,Re),complete:we.complete&&ie(we.complete,Re)}):Pe=we}this.destination=new ae(Pe)}}function fe(Ae){L.v.useDeprecatedSynchronousErrorHandling?(0,G.O)(Ae):(0,F.h)(Ae)}function Le(Ae,we){const{onStoppedNotification:xe}=L.v;xe&&Y.z.setTimeout(()=>xe(Ae,we))}const je={closed:!0,next:B.Z,error:function be(Ae){throw Ae},complete:B.Z}},727:(N,z,E)=>{"use strict";E.d(z,{Lc:()=>q,w0:()=>B,Nn:()=>Q});var M=E(576);const L=(0,E(3888).d)(W=>function(G){W(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((re,oe)=>`${oe+1}) ${re.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var F=E(8737);class B{constructor(Y){this.initialTeardown=Y,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Y;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const ie of G)ie.remove(this);else G.remove(this);const{initialTeardown:re}=this;if((0,M.m)(re))try{re()}catch(ie){Y=ie instanceof L?ie.errors:[ie]}const{_finalizers:oe}=this;if(oe){this._finalizers=null;for(const ie of oe)try{ee(ie)}catch(ae){Y=Y??[],ae instanceof L?Y=[...Y,...ae.errors]:Y.push(ae)}}if(Y)throw new L(Y)}}add(Y){var G;if(Y&&Y!==this)if(this.closed)ee(Y);else{if(Y instanceof B){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push(Y)}}_hasParent(Y){const{_parentage:G}=this;return G===Y||Array.isArray(G)&&G.includes(Y)}_addParent(Y){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push(Y),G):G?[G,Y]:Y}_removeParent(Y){const{_parentage:G}=this;G===Y?this._parentage=null:Array.isArray(G)&&(0,F.P)(G,Y)}remove(Y){const{_finalizers:G}=this;G&&(0,F.P)(G,Y),Y instanceof B&&Y._removeParent(this)}}B.EMPTY=(()=>{const W=new B;return W.closed=!0,W})();const q=B.EMPTY;function Q(W){return W instanceof B||W&&"closed"in W&&(0,M.m)(W.remove)&&(0,M.m)(W.add)&&(0,M.m)(W.unsubscribe)}function ee(W){(0,M.m)(W)?W():W.unsubscribe()}},2416:(N,z,E)=>{"use strict";E.d(z,{v:()=>M});const M={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(N,z,E)=>{"use strict";E.d(z,{a:()=>Y});var M=E(9751),h=E(4742),L=E(2076),F=E(4671),B=E(3268),q=E(3269),Q=E(1810),ee=E(5403),W=E(9672);function Y(...oe){const ie=(0,q.yG)(oe),ae=(0,q.jO)(oe),{args:he,keys:fe}=(0,h.D)(oe);if(0===he.length)return(0,L.D)([],ie);const be=new M.y(function G(oe,ie,ae=F.y){return he=>{re(ie,()=>{const{length:fe}=oe,be=new Array(fe);let Le=fe,je=fe;for(let Ae=0;Ae{const we=(0,L.D)(oe[Ae],ie);let xe=!1;we.subscribe((0,ee.x)(he,Ke=>{be[Ae]=Ke,xe||(xe=!0,je--),je||he.next(ae(be.slice()))},()=>{--Le||he.complete()}))},he)},he)}}(he,ie,fe?Le=>(0,Q.n)(fe,Le):F.y));return ae?be.pipe((0,B.Z)(ae)):be}function re(oe,ie,ae){oe?(0,W.f)(ae,oe,ie):ie()}},7272:(N,z,E)=>{"use strict";E.d(z,{z:()=>B});var M=E(8189),L=E(3269),F=E(2076);function B(...q){return function h(){return(0,M.J)(1)}()((0,F.D)(q,(0,L.yG)(q)))}},515:(N,z,E)=>{"use strict";E.d(z,{E:()=>h});const h=new(E(9751).y)(B=>B.complete())},2076:(N,z,E)=>{"use strict";E.d(z,{D:()=>Ke});var M=E(8421),h=E(9672),L=E(4482),F=E(5403);function B(Pe,Re=0){return(0,L.e)((De,le)=>{De.subscribe((0,F.x)(le,ce=>(0,h.f)(le,Pe,()=>le.next(ce),Re),()=>(0,h.f)(le,Pe,()=>le.complete(),Re),ce=>(0,h.f)(le,Pe,()=>le.error(ce),Re)))})}function q(Pe,Re=0){return(0,L.e)((De,le)=>{le.add(Pe.schedule(()=>De.subscribe(le),Re))})}var W=E(9751),G=E(2202),re=E(576);function ie(Pe,Re){if(!Pe)throw new Error("Iterable cannot be null");return new W.y(De=>{(0,h.f)(De,Re,()=>{const le=Pe[Symbol.asyncIterator]();(0,h.f)(De,Re,()=>{le.next().then(ce=>{ce.done?De.complete():De.next(ce.value)})},0,!0)})})}var ae=E(3670),he=E(8239),fe=E(1144),be=E(6495),Le=E(2206),je=E(4532),Ae=E(3260);function Ke(Pe,Re){return Re?function xe(Pe,Re){if(null!=Pe){if((0,ae.c)(Pe))return function Q(Pe,Re){return(0,M.Xf)(Pe).pipe(q(Re),B(Re))}(Pe,Re);if((0,fe.z)(Pe))return function Y(Pe,Re){return new W.y(De=>{let le=0;return Re.schedule(function(){le===Pe.length?De.complete():(De.next(Pe[le++]),De.closed||this.schedule())})})}(Pe,Re);if((0,he.t)(Pe))return function ee(Pe,Re){return(0,M.Xf)(Pe).pipe(q(Re),B(Re))}(Pe,Re);if((0,Le.D)(Pe))return ie(Pe,Re);if((0,be.T)(Pe))return function oe(Pe,Re){return new W.y(De=>{let le;return(0,h.f)(De,Re,()=>{le=Pe[G.h](),(0,h.f)(De,Re,()=>{let ce,_e;try{({value:ce,done:_e}=le.next())}catch(pe){return void De.error(pe)}_e?De.complete():De.next(ce)},0,!0)}),()=>(0,re.m)(le?.return)&&le.return()})}(Pe,Re);if((0,Ae.L)(Pe))return function we(Pe,Re){return ie((0,Ae.Q)(Pe),Re)}(Pe,Re)}throw(0,je.z)(Pe)}(Pe,Re):(0,M.Xf)(Pe)}},8421:(N,z,E)=>{"use strict";E.d(z,{Xf:()=>oe});var M=E(655),h=E(1144),L=E(8239),F=E(9751),B=E(3670),q=E(2206),Q=E(4532),ee=E(6495),W=E(3260),Y=E(576),G=E(7849),re=E(8822);function oe(Ae){if(Ae instanceof F.y)return Ae;if(null!=Ae){if((0,B.c)(Ae))return function ie(Ae){return new F.y(we=>{const xe=Ae[re.L]();if((0,Y.m)(xe.subscribe))return xe.subscribe(we);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ae);if((0,h.z)(Ae))return function ae(Ae){return new F.y(we=>{for(let xe=0;xe{Ae.then(xe=>{we.closed||(we.next(xe),we.complete())},xe=>we.error(xe)).then(null,G.h)})}(Ae);if((0,q.D)(Ae))return be(Ae);if((0,ee.T)(Ae))return function fe(Ae){return new F.y(we=>{for(const xe of Ae)if(we.next(xe),we.closed)return;we.complete()})}(Ae);if((0,W.L)(Ae))return function Le(Ae){return be((0,W.Q)(Ae))}(Ae)}throw(0,Q.z)(Ae)}function be(Ae){return new F.y(we=>{(function je(Ae,we){var xe,Ke,Pe,Re;return(0,M.mG)(this,void 0,void 0,function*(){try{for(xe=(0,M.KL)(Ae);!(Ke=yield xe.next()).done;)if(we.next(Ke.value),we.closed)return}catch(De){Pe={error:De}}finally{try{Ke&&!Ke.done&&(Re=xe.return)&&(yield Re.call(xe))}finally{if(Pe)throw Pe.error}}we.complete()})})(Ae,we).catch(xe=>we.error(xe))})}},6451:(N,z,E)=>{"use strict";E.d(z,{T:()=>q});var M=E(8189),h=E(8421),L=E(515),F=E(3269),B=E(2076);function q(...Q){const ee=(0,F.yG)(Q),W=(0,F._6)(Q,1/0),Y=Q;return Y.length?1===Y.length?(0,h.Xf)(Y[0]):(0,M.J)(W)((0,B.D)(Y,ee)):L.E}},9646:(N,z,E)=>{"use strict";E.d(z,{of:()=>L});var M=E(3269),h=E(2076);function L(...F){const B=(0,M.yG)(F);return(0,h.D)(F,B)}},102:(N,z,E)=>{"use strict";E.d(z,{S:()=>q});var M=E(9751),h=E(8421);const{isArray:L}=Array;var B=E(5403);function q(...ee){return 1===(ee=function F(ee){return 1===ee.length&&L(ee[0])?ee[0]:ee}(ee)).length?(0,h.Xf)(ee[0]):new M.y(function Q(ee){return W=>{let Y=[];for(let G=0;Y&&!W.closed&&G{if(Y){for(let oe=0;oe{"use strict";E.d(z,{_:()=>L});var M=E(9751),h=E(576);function L(F,B){const q=(0,h.m)(F)?F:()=>F,Q=ee=>ee.error(q());return new M.y(B?ee=>B.schedule(Q,0,ee):Q)}},2805:(N,z,E)=>{"use strict";E.d(z,{H:()=>B});var M=E(9751),h=E(4986),L=E(3532),F=E(1165);function B(q=0,Q,ee=h.P){let W=-1;return null!=Q&&((0,L.K)(Q)?ee=Q:W=Q),new M.y(Y=>{let G=(0,F.q)(q)?+q-ee.now():q;G<0&&(G=0);let re=0;return ee.schedule(function(){Y.closed||(Y.next(re++),0<=W?this.schedule(void 0,W):Y.complete())},G)})}},5403:(N,z,E)=>{"use strict";E.d(z,{x:()=>h});var M=E(930);function h(F,B,q,Q,ee){return new L(F,B,q,Q,ee)}class L extends M.Lv{constructor(B,q,Q,ee,W,Y){super(B),this.onFinalize=W,this.shouldUnsubscribe=Y,this._next=q?function(G){try{q(G)}catch(re){B.error(re)}}:super._next,this._error=ee?function(G){try{ee(G)}catch(re){B.error(re)}finally{this.unsubscribe()}}:super._error,this._complete=Q?function(){try{Q()}catch(G){B.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var B;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:q}=this;super.unsubscribe(),!q&&(null===(B=this.onFinalize)||void 0===B||B.call(this))}}}},262:(N,z,E)=>{"use strict";E.d(z,{K:()=>F});var M=E(8421),h=E(5403),L=E(4482);function F(B){return(0,L.e)((q,Q)=>{let Y,ee=null,W=!1;ee=q.subscribe((0,h.x)(Q,void 0,void 0,G=>{Y=(0,M.Xf)(B(G,F(B)(q))),ee?(ee.unsubscribe(),ee=null,Y.subscribe(Q)):W=!0})),W&&(ee.unsubscribe(),ee=null,Y.subscribe(Q))})}},4351:(N,z,E)=>{"use strict";E.d(z,{b:()=>L});var M=E(5577),h=E(576);function L(F,B){return(0,h.m)(B)?(0,M.z)(F,B,1):(0,M.z)(F,1)}},8372:(N,z,E)=>{"use strict";E.d(z,{b:()=>F});var M=E(4986),h=E(4482),L=E(5403);function F(B,q=M.z){return(0,h.e)((Q,ee)=>{let W=null,Y=null,G=null;const re=()=>{if(W){W.unsubscribe(),W=null;const ie=Y;Y=null,ee.next(ie)}};function oe(){const ie=G+B,ae=q.now();if(ae{Y=ie,G=q.now(),W||(W=q.schedule(oe,B),ee.add(W))},()=>{re(),ee.complete()},void 0,()=>{Y=W=null}))})}},6590:(N,z,E)=>{"use strict";E.d(z,{d:()=>L});var M=E(4482),h=E(5403);function L(F){return(0,M.e)((B,q)=>{let Q=!1;B.subscribe((0,h.x)(q,ee=>{Q=!0,q.next(ee)},()=>{Q||q.next(F),q.complete()}))})}},1005:(N,z,E)=>{"use strict";E.d(z,{g:()=>re});var M=E(4986),h=E(7272),L=E(5698),F=E(4482),B=E(5403),q=E(5032),ee=E(9718),W=E(5577);function Y(oe,ie){return ie?ae=>(0,h.z)(ie.pipe((0,L.q)(1),function Q(){return(0,F.e)((oe,ie)=>{oe.subscribe((0,B.x)(ie,q.Z))})}()),ae.pipe(Y(oe))):(0,W.z)((ae,he)=>oe(ae,he).pipe((0,L.q)(1),(0,ee.h)(ae)))}var G=E(2805);function re(oe,ie=M.z){const ae=(0,G.H)(oe,ie);return Y(()=>ae)}},9300:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(4482),h=E(5403);function L(F,B){return(0,M.e)((q,Q)=>{let ee=0;q.subscribe((0,h.x)(Q,W=>F.call(B,W,ee++)&&Q.next(W)))})}},590:(N,z,E)=>{"use strict";E.d(z,{P:()=>Q});var M=E(6805),h=E(9300),L=E(5698),F=E(6590),B=E(8068),q=E(4671);function Q(ee,W){const Y=arguments.length>=2;return G=>G.pipe(ee?(0,h.h)((re,oe)=>ee(re,oe,G)):q.y,(0,L.q)(1),Y?(0,F.d)(W):(0,B.T)(()=>new M.K))}},4004:(N,z,E)=>{"use strict";E.d(z,{U:()=>L});var M=E(4482),h=E(5403);function L(F,B){return(0,M.e)((q,Q)=>{let ee=0;q.subscribe((0,h.x)(Q,W=>{Q.next(F.call(B,W,ee++))}))})}},9718:(N,z,E)=>{"use strict";E.d(z,{h:()=>h});var M=E(4004);function h(L){return(0,M.U)(()=>L)}},8189:(N,z,E)=>{"use strict";E.d(z,{J:()=>L});var M=E(5577),h=E(4671);function L(F=1/0){return(0,M.z)(h.y,F)}},5577:(N,z,E)=>{"use strict";E.d(z,{z:()=>ee});var M=E(4004),h=E(8421),L=E(4482),F=E(9672),B=E(5403),Q=E(576);function ee(W,Y,G=1/0){return(0,Q.m)(Y)?ee((re,oe)=>(0,M.U)((ie,ae)=>Y(re,ie,oe,ae))((0,h.Xf)(W(re,oe))),G):("number"==typeof Y&&(G=Y),(0,L.e)((re,oe)=>function q(W,Y,G,re,oe,ie,ae,he){const fe=[];let be=0,Le=0,je=!1;const Ae=()=>{je&&!fe.length&&!be&&Y.complete()},we=Ke=>be{ie&&Y.next(Ke),be++;let Pe=!1;(0,h.Xf)(G(Ke,Le++)).subscribe((0,B.x)(Y,Re=>{oe?.(Re),ie?we(Re):Y.next(Re)},()=>{Pe=!0},void 0,()=>{if(Pe)try{for(be--;fe.length&&bexe(Re)):xe(Re)}Ae()}catch(Re){Y.error(Re)}}))};return W.subscribe((0,B.x)(Y,we,()=>{je=!0,Ae()})),()=>{he?.()}}(re,oe,W,G)))}},3099:(N,z,E)=>{"use strict";E.d(z,{B:()=>B});var M=E(8421),h=E(7579),L=E(930),F=E(4482);function B(Q={}){const{connector:ee=(()=>new h.x),resetOnError:W=!0,resetOnComplete:Y=!0,resetOnRefCountZero:G=!0}=Q;return re=>{let oe,ie,ae,he=0,fe=!1,be=!1;const Le=()=>{ie?.unsubscribe(),ie=void 0},je=()=>{Le(),oe=ae=void 0,fe=be=!1},Ae=()=>{const we=oe;je(),we?.unsubscribe()};return(0,F.e)((we,xe)=>{he++,!be&&!fe&&Le();const Ke=ae=ae??ee();xe.add(()=>{he--,0===he&&!be&&!fe&&(ie=q(Ae,G))}),Ke.subscribe(xe),!oe&&he>0&&(oe=new L.Hp({next:Pe=>Ke.next(Pe),error:Pe=>{be=!0,Le(),ie=q(je,W,Pe),Ke.error(Pe)},complete:()=>{fe=!0,Le(),ie=q(je,Y),Ke.complete()}}),(0,M.Xf)(we).subscribe(oe))})(re)}}function q(Q,ee,...W){if(!0===ee)return void Q();if(!1===ee)return;const Y=new L.Hp({next:()=>{Y.unsubscribe(),Q()}});return ee(...W).subscribe(Y)}},3900:(N,z,E)=>{"use strict";E.d(z,{w:()=>F});var M=E(8421),h=E(4482),L=E(5403);function F(B,q){return(0,h.e)((Q,ee)=>{let W=null,Y=0,G=!1;const re=()=>G&&!W&&ee.complete();Q.subscribe((0,L.x)(ee,oe=>{W?.unsubscribe();let ie=0;const ae=Y++;(0,M.Xf)(B(oe,ae)).subscribe(W=(0,L.x)(ee,he=>ee.next(q?q(oe,he,ae,ie++):he),()=>{W=null,re()}))},()=>{G=!0,re()}))})}},5698:(N,z,E)=>{"use strict";E.d(z,{q:()=>F});var M=E(515),h=E(4482),L=E(5403);function F(B){return B<=0?()=>M.E:(0,h.e)((q,Q)=>{let ee=0;q.subscribe((0,L.x)(Q,W=>{++ee<=B&&(Q.next(W),B<=ee&&Q.complete())}))})}},8505:(N,z,E)=>{"use strict";E.d(z,{b:()=>B});var M=E(576),h=E(4482),L=E(5403),F=E(4671);function B(q,Q,ee){const W=(0,M.m)(q)||Q||ee?{next:q,error:Q,complete:ee}:q;return W?(0,h.e)((Y,G)=>{var re;null===(re=W.subscribe)||void 0===re||re.call(W);let oe=!0;Y.subscribe((0,L.x)(G,ie=>{var ae;null===(ae=W.next)||void 0===ae||ae.call(W,ie),G.next(ie)},()=>{var ie;oe=!1,null===(ie=W.complete)||void 0===ie||ie.call(W),G.complete()},ie=>{var ae;oe=!1,null===(ae=W.error)||void 0===ae||ae.call(W,ie),G.error(ie)},()=>{var ie,ae;oe&&(null===(ie=W.unsubscribe)||void 0===ie||ie.call(W)),null===(ae=W.finalize)||void 0===ae||ae.call(W)}))}):F.y}},8068:(N,z,E)=>{"use strict";E.d(z,{T:()=>F});var M=E(6805),h=E(4482),L=E(5403);function F(q=B){return(0,h.e)((Q,ee)=>{let W=!1;Q.subscribe((0,L.x)(ee,Y=>{W=!0,ee.next(Y)},()=>W?ee.complete():ee.error(q())))})}function B(){return new M.K}},7414:(N,z,E)=>{"use strict";E.d(z,{V:()=>W});var M=E(4986),h=E(1165),L=E(4482),F=E(8421),B=E(3888),q=E(5403),Q=E(9672);const ee=(0,B.d)(G=>function(oe=null){G(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=oe});function W(G,re){const{first:oe,each:ie,with:ae=Y,scheduler:he=re??M.z,meta:fe=null}=(0,h.q)(G)?{first:G}:"number"==typeof G?{each:G}:G;if(null==oe&&null==ie)throw new TypeError("No timeout provided.");return(0,L.e)((be,Le)=>{let je,Ae,we=null,xe=0;const Ke=Pe=>{Ae=(0,Q.f)(Le,he,()=>{try{je.unsubscribe(),(0,F.Xf)(ae({meta:fe,lastValue:we,seen:xe})).subscribe(Le)}catch(Re){Le.error(Re)}},Pe)};je=be.subscribe((0,q.x)(Le,Pe=>{Ae?.unsubscribe(),xe++,Le.next(we=Pe),ie>0&&Ke(ie)},void 0,void 0,()=>{Ae?.closed||Ae?.unsubscribe(),we=null})),!xe&&Ke(null!=oe?"number"==typeof oe?oe:+oe-he.now():ie)})}function Y(G){throw new ee(G)}},4408:(N,z,E)=>{"use strict";E.d(z,{o:()=>B});var M=E(727);class h extends M.w0{constructor(Q,ee){super()}schedule(Q,ee=0){return this}}const L={setInterval(q,Q,...ee){const{delegate:W}=L;return W?.setInterval?W.setInterval(q,Q,...ee):setInterval(q,Q,...ee)},clearInterval(q){const{delegate:Q}=L;return(Q?.clearInterval||clearInterval)(q)},delegate:void 0};var F=E(8737);class B extends h{constructor(Q,ee){super(Q,ee),this.scheduler=Q,this.work=ee,this.pending=!1}schedule(Q,ee=0){if(this.closed)return this;this.state=Q;const W=this.id,Y=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(Y,W,ee)),this.pending=!0,this.delay=ee,this.id=this.id||this.requestAsyncId(Y,this.id,ee),this}requestAsyncId(Q,ee,W=0){return L.setInterval(Q.flush.bind(Q,this),W)}recycleAsyncId(Q,ee,W=0){if(null!=W&&this.delay===W&&!1===this.pending)return ee;L.clearInterval(ee)}execute(Q,ee){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(Q,ee);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Q,ee){let Y,W=!1;try{this.work(Q)}catch(G){W=!0,Y=G||new Error("Scheduled action threw falsy error")}if(W)return this.unsubscribe(),Y}unsubscribe(){if(!this.closed){const{id:Q,scheduler:ee}=this,{actions:W}=ee;this.work=this.state=this.scheduler=null,this.pending=!1,(0,F.P)(W,this),null!=Q&&(this.id=this.recycleAsyncId(ee,Q,null)),this.delay=null,super.unsubscribe()}}}},7565:(N,z,E)=>{"use strict";E.d(z,{v:()=>L});var M=E(6063);class h{constructor(B,q=h.now){this.schedulerActionCtor=B,this.now=q}schedule(B,q=0,Q){return new this.schedulerActionCtor(this,B).schedule(Q,q)}}h.now=M.l.now;class L extends h{constructor(B,q=h.now){super(B,q),this.actions=[],this._active=!1,this._scheduled=void 0}flush(B){const{actions:q}=this;if(this._active)return void q.push(B);let Q;this._active=!0;do{if(Q=B.execute(B.state,B.delay))break}while(B=q.shift());if(this._active=!1,Q){for(;B=q.shift();)B.unsubscribe();throw Q}}}},4986:(N,z,E)=>{"use strict";E.d(z,{P:()=>F,z:()=>L});var M=E(4408);const L=new(E(7565).v)(M.o),F=L},6063:(N,z,E)=>{"use strict";E.d(z,{l:()=>M});const M={now:()=>(M.delegate||Date).now(),delegate:void 0}},3410:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M={setTimeout(h,L,...F){const{delegate:B}=M;return B?.setTimeout?B.setTimeout(h,L,...F):setTimeout(h,L,...F)},clearTimeout(h){const{delegate:L}=M;return(L?.clearTimeout||clearTimeout)(h)},delegate:void 0}},2202:(N,z,E)=>{"use strict";E.d(z,{h:()=>h});const h=function M(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(N,z,E)=>{"use strict";E.d(z,{L:()=>M});const M="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(N,z,E)=>{"use strict";E.d(z,{K:()=>h});const h=(0,E(3888).d)(L=>function(){L(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(N,z,E)=>{"use strict";E.d(z,{_6:()=>q,jO:()=>F,yG:()=>B});var M=E(576),h=E(3532);function L(Q){return Q[Q.length-1]}function F(Q){return(0,M.m)(L(Q))?Q.pop():void 0}function B(Q){return(0,h.K)(L(Q))?Q.pop():void 0}function q(Q,ee){return"number"==typeof L(Q)?Q.pop():ee}},4742:(N,z,E)=>{"use strict";E.d(z,{D:()=>B});const{isArray:M}=Array,{getPrototypeOf:h,prototype:L,keys:F}=Object;function B(Q){if(1===Q.length){const ee=Q[0];if(M(ee))return{args:ee,keys:null};if(function q(Q){return Q&&"object"==typeof Q&&h(Q)===L}(ee)){const W=F(ee);return{args:W.map(Y=>ee[Y]),keys:W}}}return{args:Q,keys:null}}},8737:(N,z,E)=>{"use strict";function M(h,L){if(h){const F=h.indexOf(L);0<=F&&h.splice(F,1)}}E.d(z,{P:()=>M})},3888:(N,z,E)=>{"use strict";function M(h){const F=h(B=>{Error.call(B),B.stack=(new Error).stack});return F.prototype=Object.create(Error.prototype),F.prototype.constructor=F,F}E.d(z,{d:()=>M})},1810:(N,z,E)=>{"use strict";function M(h,L){return h.reduce((F,B,q)=>(F[B]=L[q],F),{})}E.d(z,{n:()=>M})},2806:(N,z,E)=>{"use strict";E.d(z,{O:()=>F,x:()=>L});var M=E(2416);let h=null;function L(B){if(M.v.useDeprecatedSynchronousErrorHandling){const q=!h;if(q&&(h={errorThrown:!1,error:null}),B(),q){const{errorThrown:Q,error:ee}=h;if(h=null,Q)throw ee}}else B()}function F(B){M.v.useDeprecatedSynchronousErrorHandling&&h&&(h.errorThrown=!0,h.error=B)}},9672:(N,z,E)=>{"use strict";function M(h,L,F,B=0,q=!1){const Q=L.schedule(function(){F(),q?h.add(this.schedule(null,B)):this.unsubscribe()},B);if(h.add(Q),!q)return Q}E.d(z,{f:()=>M})},4671:(N,z,E)=>{"use strict";function M(h){return h}E.d(z,{y:()=>M})},1144:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M=h=>h&&"number"==typeof h.length&&"function"!=typeof h},2206:(N,z,E)=>{"use strict";E.d(z,{D:()=>h});var M=E(576);function h(L){return Symbol.asyncIterator&&(0,M.m)(L?.[Symbol.asyncIterator])}},1165:(N,z,E)=>{"use strict";function M(h){return h instanceof Date&&!isNaN(h)}E.d(z,{q:()=>M})},576:(N,z,E)=>{"use strict";function M(h){return"function"==typeof h}E.d(z,{m:()=>M})},3670:(N,z,E)=>{"use strict";E.d(z,{c:()=>L});var M=E(8822),h=E(576);function L(F){return(0,h.m)(F[M.L])}},6495:(N,z,E)=>{"use strict";E.d(z,{T:()=>L});var M=E(2202),h=E(576);function L(F){return(0,h.m)(F?.[M.h])}},8239:(N,z,E)=>{"use strict";E.d(z,{t:()=>h});var M=E(576);function h(L){return(0,M.m)(L?.then)}},3260:(N,z,E)=>{"use strict";E.d(z,{L:()=>F,Q:()=>L});var M=E(655),h=E(576);function L(B){return(0,M.FC)(this,arguments,function*(){const Q=B.getReader();try{for(;;){const{value:ee,done:W}=yield(0,M.qq)(Q.read());if(W)return yield(0,M.qq)(void 0);yield yield(0,M.qq)(ee)}}finally{Q.releaseLock()}})}function F(B){return(0,h.m)(B?.getReader)}},3532:(N,z,E)=>{"use strict";E.d(z,{K:()=>h});var M=E(576);function h(L){return L&&(0,M.m)(L.schedule)}},4482:(N,z,E)=>{"use strict";E.d(z,{A:()=>h,e:()=>L});var M=E(576);function h(F){return(0,M.m)(F?.lift)}function L(F){return B=>{if(h(B))return B.lift(function(q){try{return F(q,this)}catch(Q){this.error(Q)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(N,z,E)=>{"use strict";E.d(z,{Z:()=>F});var M=E(4004);const{isArray:h}=Array;function F(B){return(0,M.U)(q=>function L(B,q){return h(q)?B(...q):B(q)}(B,q))}},5032:(N,z,E)=>{"use strict";function M(){}E.d(z,{Z:()=>M})},9635:(N,z,E)=>{"use strict";E.d(z,{U:()=>L,z:()=>h});var M=E(4671);function h(...F){return L(F)}function L(F){return 0===F.length?M.y:1===F.length?F[0]:function(q){return F.reduce((Q,ee)=>ee(Q),q)}}},7849:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(2416),h=E(3410);function L(F){h.z.setTimeout(()=>{const{onUnhandledError:B}=M.v;if(!B)throw F;B(F)})}},4532:(N,z,E)=>{"use strict";function M(h){return new TypeError(`You provided ${null!==h&&"object"==typeof h?"an invalid object":`'${h}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(z,{z:()=>M})},655:(N,z,E)=>{"use strict";function ee(le,ce,_e,pe){return new(_e||(_e=Promise))(function(ke,ut){function xt(Ii){try{Fe(pe.next(Ii))}catch(Xn){ut(Xn)}}function kt(Ii){try{Fe(pe.throw(Ii))}catch(Xn){ut(Xn)}}function Fe(Ii){Ii.done?ke(Ii.value):function Be(ke){return ke instanceof _e?ke:new _e(function(ut){ut(ke)})}(Ii.value).then(xt,kt)}Fe((pe=pe.apply(le,ce||[])).next())})}function fe(le){return this instanceof fe?(this.v=le,this):new fe(le)}function be(le,ce,_e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Be,pe=_e.apply(le,ce||[]),ke=[];return Be={},ut("next"),ut("throw"),ut("return"),Be[Symbol.asyncIterator]=function(){return this},Be;function ut(zt){pe[zt]&&(Be[zt]=function(Et){return new Promise(function(Rn,ui){ke.push([zt,Et,Rn,ui])>1||xt(zt,Et)})})}function xt(zt,Et){try{!function kt(zt){zt.value instanceof fe?Promise.resolve(zt.value.v).then(Fe,Ii):Xn(ke[0][2],zt)}(pe[zt](Et))}catch(Rn){Xn(ke[0][3],Rn)}}function Fe(zt){xt("next",zt)}function Ii(zt){xt("throw",zt)}function Xn(zt,Et){zt(Et),ke.shift(),ke.length&&xt(ke[0][0],ke[0][1])}}function je(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _e,ce=le[Symbol.asyncIterator];return ce?ce.call(le):(le=function re(le){var ce="function"==typeof Symbol&&Symbol.iterator,_e=ce&&le[ce],pe=0;if(_e)return _e.call(le);if(le&&"number"==typeof le.length)return{next:function(){return le&&pe>=le.length&&(le=void 0),{value:le&&le[pe++],done:!le}}};throw new TypeError(ce?"Object is not iterable.":"Symbol.iterator is not defined.")}(le),_e={},pe("next"),pe("throw"),pe("return"),_e[Symbol.asyncIterator]=function(){return this},_e);function pe(ke){_e[ke]=le[ke]&&function(ut){return new Promise(function(xt,kt){!function Be(ke,ut,xt,kt){Promise.resolve(kt).then(function(Fe){ke({value:Fe,done:xt})},ut)}(xt,kt,(ut=le[ke](ut)).done,ut.value)})}}}E.d(z,{FC:()=>be,KL:()=>je,mG:()=>ee,qq:()=>fe})},6895:(N,z,E)=>{"use strict";E.d(z,{Do:()=>je,EM:()=>Bs,HT:()=>B,JF:()=>Ki,K0:()=>Q,Mx:()=>ct,NF:()=>xf,O5:()=>Ci,Ov:()=>Wt,PC:()=>Rs,RF:()=>An,S$:()=>fe,V_:()=>Y,Ye:()=>Ae,b0:()=>Le,bD:()=>Ei,ez:()=>Vs,mk:()=>Vn,n9:()=>qi,q:()=>L,sg:()=>Bn,w_:()=>q});var M=E(4650);let h=null;function L(){return h}function B(P){h||(h=P)}class q{}const Q=new M.OlP("DocumentToken");let ee=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return function W(){return(0,M.LFG)(G)}()},providedIn:"platform"}),P})();const Y=new M.OlP("Location Initialized");let G=(()=>{class P extends ee{constructor(I){super(),this._doc=I,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return L().getBaseHref(this._doc)}onPopState(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("popstate",I,!1),()=>j.removeEventListener("popstate",I)}onHashChange(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("hashchange",I,!1),()=>j.removeEventListener("hashchange",I)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(I){this.location.pathname=I}pushState(I,j,ne){re()?this._history.pushState(I,j,ne):this.location.hash=ne}replaceState(I,j,ne){re()?this._history.replaceState(I,j,ne):this.location.hash=ne}forward(){this._history.forward()}back(){this._history.back()}historyGo(I=0){this._history.go(I)}getState(){return this._history.state}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(Q))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function oe(){return new G((0,M.LFG)(Q))}()},providedIn:"platform"}),P})();function re(){return!!window.history.pushState}function ie(P,O){if(0==P.length)return O;if(0==O.length)return P;let I=0;return P.endsWith("/")&&I++,O.startsWith("/")&&I++,2==I?P+O.substring(1):1==I?P+O:P+"/"+O}function ae(P){const O=P.match(/#|\?|$/),I=O&&O.index||P.length;return P.slice(0,I-("/"===P[I-1]?1:0))+P.slice(I)}function he(P){return P&&"?"!==P[0]?"?"+P:P}let fe=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return(0,M.f3M)(Le)},providedIn:"root"}),P})();const be=new M.OlP("appBaseHref");let Le=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._removeListenerFns=[],this._baseHref=j??this._platformLocation.getBaseHrefFromDOM()??(0,M.f3M)(Q).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}prepareExternalUrl(I){return ie(this._baseHref,I)}path(I=!1){const j=this._platformLocation.pathname+he(this._platformLocation.search),ne=this._platformLocation.hash;return ne&&I?`${j}${ne}`:j}pushState(I,j,ne,me){const ue=this.prepareExternalUrl(ne+he(me));this._platformLocation.pushState(I,j,ue)}replaceState(I,j,ne,me){const ue=this.prepareExternalUrl(ne+he(me));this._platformLocation.replaceState(I,j,ue)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(be,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),je=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._baseHref="",this._removeListenerFns=[],null!=j&&(this._baseHref=j)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}path(I=!1){let j=this._platformLocation.hash;return null==j&&(j="#"),j.length>0?j.substring(1):j}prepareExternalUrl(I){const j=ie(this._baseHref,I);return j.length>0?"#"+j:j}pushState(I,j,ne,me){let ue=this.prepareExternalUrl(ne+he(me));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.pushState(I,j,ue)}replaceState(I,j,ne,me){let ue=this.prepareExternalUrl(ne+he(me));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.replaceState(I,j,ue)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(be,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac}),P})(),Ae=(()=>{class P{constructor(I){this._subject=new M.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=I;const j=this._locationStrategy.getBaseHref();this._baseHref=ae(Ke(j)),this._locationStrategy.onPopState(ne=>{this._subject.emit({url:this.path(!0),pop:!0,state:ne.state,type:ne.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(I=!1){return this.normalize(this._locationStrategy.path(I))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(I,j=""){return this.path()==this.normalize(I+he(j))}normalize(I){return P.stripTrailingSlash(function xe(P,O){return P&&O.startsWith(P)?O.substring(P.length):O}(this._baseHref,Ke(I)))}prepareExternalUrl(I){return I&&"/"!==I[0]&&(I="/"+I),this._locationStrategy.prepareExternalUrl(I)}go(I,j="",ne=null){this._locationStrategy.pushState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}replaceState(I,j="",ne=null){this._locationStrategy.replaceState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(I=0){this._locationStrategy.historyGo?.(I)}onUrlChange(I){return this._urlChangeListeners.push(I),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(j=>{this._notifyUrlChangeListeners(j.url,j.state)})),()=>{const j=this._urlChangeListeners.indexOf(I);this._urlChangeListeners.splice(j,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(I="",j){this._urlChangeListeners.forEach(ne=>ne(I,j))}subscribe(I,j,ne){return this._subject.subscribe({next:I,error:j,complete:ne})}}return P.normalizeQueryParams=he,P.joinWithSlash=ie,P.stripTrailingSlash=ae,P.\u0275fac=function(I){return new(I||P)(M.LFG(fe))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function we(){return new Ae((0,M.LFG)(fe))}()},providedIn:"root"}),P})();function Ke(P){return P.replace(/\/index.html$/,"")}function ct(P,O){O=encodeURIComponent(O);for(const I of P.split(";")){const j=I.indexOf("="),[ne,me]=-1==j?[I,""]:[I.slice(0,j),I.slice(j+1)];if(ne.trim()===O)return decodeURIComponent(me)}return null}let Vn=(()=>{class P{constructor(I,j,ne,me){this._iterableDiffers=I,this._keyValueDiffers=j,this._ngEl=ne,this._renderer=me,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(I){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof I?I.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(I){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof I?I.split(/\s+/):I,this._rawClass&&((0,M.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const I=this._iterableDiffer.diff(this._rawClass);I&&this._applyIterableChanges(I)}else if(this._keyValueDiffer){const I=this._keyValueDiffer.diff(this._rawClass);I&&this._applyKeyValueChanges(I)}}_applyKeyValueChanges(I){I.forEachAddedItem(j=>this._toggleClass(j.key,j.currentValue)),I.forEachChangedItem(j=>this._toggleClass(j.key,j.currentValue)),I.forEachRemovedItem(j=>{j.previousValue&&this._toggleClass(j.key,!1)})}_applyIterableChanges(I){I.forEachAddedItem(j=>{if("string"!=typeof j.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,M.AaK)(j.item)}`);this._toggleClass(j.item,!0)}),I.forEachRemovedItem(j=>this._toggleClass(j.item,!1))}_applyClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(j=>this._toggleClass(j,!0)):Object.keys(I).forEach(j=>this._toggleClass(j,!!I[j])))}_removeClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(j=>this._toggleClass(j,!1)):Object.keys(I).forEach(j=>this._toggleClass(j,!1)))}_toggleClass(I,j){(I=I.trim())&&I.split(/\s+/g).forEach(ne=>{j?this._renderer.addClass(this._ngEl.nativeElement,ne):this._renderer.removeClass(this._ngEl.nativeElement,ne)})}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.ZZ4),M.Y36(M.aQg),M.Y36(M.SBq),M.Y36(M.Qsj))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),P})();class Xr{constructor(O,I,j,ne){this.$implicit=O,this.ngForOf=I,this.index=j,this.count=ne}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Bn=(()=>{class P{constructor(I,j,ne){this._viewContainer=I,this._template=j,this._differs=ne,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(I){this._ngForOf=I,this._ngForOfDirty=!0}set ngForTrackBy(I){this._trackByFn=I}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(I){I&&(this._template=I)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const I=this._ngForOf;!this._differ&&I&&(this._differ=this._differs.find(I).create(this.ngForTrackBy))}if(this._differ){const I=this._differ.diff(this._ngForOf);I&&this._applyChanges(I)}}_applyChanges(I){const j=this._viewContainer;I.forEachOperation((ne,me,ue)=>{if(null==ne.previousIndex)j.createEmbeddedView(this._template,new Xr(ne.item,this._ngForOf,-1,-1),null===ue?void 0:ue);else if(null==ue)j.remove(null===me?void 0:me);else if(null!==me){const We=j.get(me);j.move(We,ue),Zt(We,ne)}});for(let ne=0,me=j.length;ne{Zt(j.get(ne.currentIndex),ne)})}static ngTemplateContextGuard(I,j){return!0}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc),M.Y36(M.ZZ4))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),P})();function Zt(P,O){P.context.$implicit=O.item}let Ci=(()=>{class P{constructor(I,j){this._viewContainer=I,this._context=new Ji,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=j}set ngIf(I){this._context.$implicit=this._context.ngIf=I,this._updateView()}set ngIfThen(I){Mr("ngIfThen",I),this._thenTemplateRef=I,this._thenViewRef=null,this._updateView()}set ngIfElse(I){Mr("ngIfElse",I),this._elseTemplateRef=I,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(I,j){return!0}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),P})();class Ji{constructor(){this.$implicit=null,this.ngIf=null}}function Mr(P,O){if(O&&!O.createEmbeddedView)throw new Error(`${P} must be a TemplateRef, but received '${(0,M.AaK)(O)}'.`)}class Dr{constructor(O,I){this._viewContainerRef=O,this._templateRef=I,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(O){O&&!this._created?this.create():!O&&this._created&&this.destroy()}}let An=(()=>{class P{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(I){this._ngSwitch=I,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(I){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(I)}_matchCase(I){const j=I==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||j,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),j}_updateDefaultCases(I){if(this._defaultViews&&I!==this._defaultUsed){this._defaultUsed=I;for(let j=0;j{class P{constructor(I,j,ne){this.ngSwitch=ne,ne._addCase(),this._view=new Dr(I,j)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc),M.Y36(An,9))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),P})(),Rs=(()=>{class P{constructor(I,j,ne){this._ngEl=I,this._differs=j,this._renderer=ne,this._ngStyle=null,this._differ=null}set ngStyle(I){this._ngStyle=I,!this._differ&&I&&(this._differ=this._differs.find(I).create())}ngDoCheck(){if(this._differ){const I=this._differ.diff(this._ngStyle);I&&this._applyChanges(I)}}_setStyle(I,j){const[ne,me]=I.split("."),ue=-1===ne.indexOf("-")?void 0:M.JOm.DashCase;null!=j?this._renderer.setStyle(this._ngEl.nativeElement,ne,me?`${j}${me}`:j,ue):this._renderer.removeStyle(this._ngEl.nativeElement,ne,ue)}_applyChanges(I){I.forEachRemovedItem(j=>this._setStyle(j.key,null)),I.forEachAddedItem(j=>this._setStyle(j.key,j.currentValue)),I.forEachChangedItem(j=>this._setStyle(j.key,j.currentValue))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.SBq),M.Y36(M.aQg),M.Y36(M.Qsj))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),P})();class Da{createSubscription(O,I){return O.subscribe({next:I,error:j=>{throw j}})}dispose(O){O.unsubscribe()}}class bf{createSubscription(O,I){return O.then(I,j=>{throw j})}dispose(O){}}const v=new bf,Xt=new Da;let Wt=(()=>{class P{constructor(I){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=I}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(I){return this._obj?I!==this._obj?(this._dispose(),this.transform(I)):this._latestValue:(I&&this._subscribe(I),this._latestValue)}_subscribe(I){this._obj=I,this._strategy=this._selectStrategy(I),this._subscription=this._strategy.createSubscription(I,j=>this._updateLatestValue(I,j))}_selectStrategy(I){if((0,M.QGY)(I))return v;if((0,M.F4k)(I))return Xt;throw function yt(P,O){return new M.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(I,j){I===this._obj&&(this._latestValue=j,this._ref.markForCheck())}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.sBO,16))},P.\u0275pipe=M.Yjl({name:"async",type:P,pure:!1,standalone:!0}),P})(),Vs=(()=>{class P{}return P.\u0275fac=function(I){return new(I||P)},P.\u0275mod=M.oAB({type:P}),P.\u0275inj=M.cJS({}),P})();const Ei="browser";function xf(P){return P===Ei}let Bs=(()=>{class P{}return P.\u0275prov=(0,M.Yz7)({token:P,providedIn:"root",factory:()=>new pn((0,M.LFG)(Q),window)}),P})();class pn{constructor(O,I){this.document=O,this.window=I,this.offset=()=>[0,0]}setOffset(O){this.offset=Array.isArray(O)?()=>O:O}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(O){this.supportsScrolling()&&this.window.scrollTo(O[0],O[1])}scrollToAnchor(O){if(!this.supportsScrolling())return;const I=function Cc(P,O){const I=P.getElementById(O)||P.getElementsByName(O)[0];if(I)return I;if("function"==typeof P.createTreeWalker&&P.body&&(P.body.createShadowRoot||P.body.attachShadow)){const j=P.createTreeWalker(P.body,NodeFilter.SHOW_ELEMENT);let ne=j.currentNode;for(;ne;){const me=ne.shadowRoot;if(me){const ue=me.getElementById(O)||me.querySelector(`[name="${O}"]`);if(ue)return ue}ne=j.nextNode()}}return null}(this.document,O);I&&(this.scrollToElement(I),I.focus())}setHistoryScrollRestoration(O){if(this.supportScrollRestoration()){const I=this.window.history;I&&I.scrollRestoration&&(I.scrollRestoration=O)}}scrollToElement(O){const I=O.getBoundingClientRect(),j=I.left+this.window.pageXOffset,ne=I.top+this.window.pageYOffset,me=this.offset();this.window.scrollTo(j-me[0],ne-me[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const O=nu(this.window.history)||nu(Object.getPrototypeOf(this.window.history));return!(!O||!O.writable&&!O.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function nu(P){return Object.getOwnPropertyDescriptor(P,"scrollRestoration")}class Ki{}},529:(N,z,E)=>{"use strict";E.d(z,{JF:()=>Kd,LE:()=>be,TP:()=>xt,WM:()=>Y,Zn:()=>_e,eN:()=>ke,qT:()=>je});var M=E(6895),h=E(4650),L=E(9646),F=E(9751),B=E(4351),q=E(9300),Q=E(4004);class ee{}class W{}class Y{constructor(X){this.normalizedNames=new Map,this.lazyUpdate=null,X?this.lazyInit="string"==typeof X?()=>{this.headers=new Map,X.split("\n").forEach($=>{const de=$.indexOf(":");if(de>0){const Ee=$.slice(0,de),nt=Ee.toLowerCase(),ht=$.slice(de+1).trim();this.maybeSetNormalizedName(Ee,nt),this.headers.has(nt)?this.headers.get(nt).push(ht):this.headers.set(nt,[ht])}})}:()=>{this.headers=new Map,Object.keys(X).forEach($=>{let de=X[$];const Ee=$.toLowerCase();"string"==typeof de&&(de=[de]),de.length>0&&(this.headers.set(Ee,de),this.maybeSetNormalizedName($,Ee))})}:this.headers=new Map}has(X){return this.init(),this.headers.has(X.toLowerCase())}get(X){this.init();const $=this.headers.get(X.toLowerCase());return $&&$.length>0?$[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(X){return this.init(),this.headers.get(X.toLowerCase())||null}append(X,$){return this.clone({name:X,value:$,op:"a"})}set(X,$){return this.clone({name:X,value:$,op:"s"})}delete(X,$){return this.clone({name:X,value:$,op:"d"})}maybeSetNormalizedName(X,$){this.normalizedNames.has($)||this.normalizedNames.set($,X)}init(){this.lazyInit&&(this.lazyInit instanceof Y?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(X=>this.applyUpdate(X)),this.lazyUpdate=null))}copyFrom(X){X.init(),Array.from(X.headers.keys()).forEach($=>{this.headers.set($,X.headers.get($)),this.normalizedNames.set($,X.normalizedNames.get($))})}clone(X){const $=new Y;return $.lazyInit=this.lazyInit&&this.lazyInit instanceof Y?this.lazyInit:this,$.lazyUpdate=(this.lazyUpdate||[]).concat([X]),$}applyUpdate(X){const $=X.name.toLowerCase();switch(X.op){case"a":case"s":let de=X.value;if("string"==typeof de&&(de=[de]),0===de.length)return;this.maybeSetNormalizedName(X.name,$);const Ee=("a"===X.op?this.headers.get($):void 0)||[];Ee.push(...de),this.headers.set($,Ee);break;case"d":const nt=X.value;if(nt){let ht=this.headers.get($);if(!ht)return;ht=ht.filter(Ne=>-1===nt.indexOf(Ne)),0===ht.length?(this.headers.delete($),this.normalizedNames.delete($)):this.headers.set($,ht)}else this.headers.delete($),this.normalizedNames.delete($)}}forEach(X){this.init(),Array.from(this.normalizedNames.keys()).forEach($=>X(this.normalizedNames.get($),this.headers.get($)))}}class re{encodeKey(X){return he(X)}encodeValue(X){return he(X)}decodeKey(X){return decodeURIComponent(X)}decodeValue(X){return decodeURIComponent(X)}}const ie=/%(\d[a-f0-9])/gi,ae={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function he(ye){return encodeURIComponent(ye).replace(ie,(X,$)=>ae[$]??X)}function fe(ye){return`${ye}`}class be{constructor(X={}){if(this.updates=null,this.cloneFrom=null,this.encoder=X.encoder||new re,X.fromString){if(X.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function oe(ye,X){const $=new Map;return ye.length>0&&ye.replace(/^\?/,"").split("&").forEach(Ee=>{const nt=Ee.indexOf("="),[ht,Ne]=-1==nt?[X.decodeKey(Ee),""]:[X.decodeKey(Ee.slice(0,nt)),X.decodeValue(Ee.slice(nt+1))],tt=$.get(ht)||[];tt.push(Ne),$.set(ht,tt)}),$}(X.fromString,this.encoder)}else X.fromObject?(this.map=new Map,Object.keys(X.fromObject).forEach($=>{const de=X.fromObject[$],Ee=Array.isArray(de)?de.map(fe):[fe(de)];this.map.set($,Ee)})):this.map=null}has(X){return this.init(),this.map.has(X)}get(X){this.init();const $=this.map.get(X);return $?$[0]:null}getAll(X){return this.init(),this.map.get(X)||null}keys(){return this.init(),Array.from(this.map.keys())}append(X,$){return this.clone({param:X,value:$,op:"a"})}appendAll(X){const $=[];return Object.keys(X).forEach(de=>{const Ee=X[de];Array.isArray(Ee)?Ee.forEach(nt=>{$.push({param:de,value:nt,op:"a"})}):$.push({param:de,value:Ee,op:"a"})}),this.clone($)}set(X,$){return this.clone({param:X,value:$,op:"s"})}delete(X,$){return this.clone({param:X,value:$,op:"d"})}toString(){return this.init(),this.keys().map(X=>{const $=this.encoder.encodeKey(X);return this.map.get(X).map(de=>$+"="+this.encoder.encodeValue(de)).join("&")}).filter(X=>""!==X).join("&")}clone(X){const $=new be({encoder:this.encoder});return $.cloneFrom=this.cloneFrom||this,$.updates=(this.updates||[]).concat(X),$}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(X=>this.map.set(X,this.cloneFrom.map.get(X))),this.updates.forEach(X=>{switch(X.op){case"a":case"s":const $=("a"===X.op?this.map.get(X.param):void 0)||[];$.push(fe(X.value)),this.map.set(X.param,$);break;case"d":if(void 0===X.value){this.map.delete(X.param);break}{let de=this.map.get(X.param)||[];const Ee=de.indexOf(fe(X.value));-1!==Ee&&de.splice(Ee,1),de.length>0?this.map.set(X.param,de):this.map.delete(X.param)}}}),this.cloneFrom=this.updates=null)}}class je{constructor(){this.map=new Map}set(X,$){return this.map.set(X,$),this}get(X){return this.map.has(X)||this.map.set(X,X.defaultValue()),this.map.get(X)}delete(X){return this.map.delete(X),this}has(X){return this.map.has(X)}keys(){return this.map.keys()}}function we(ye){return typeof ArrayBuffer<"u"&&ye instanceof ArrayBuffer}function xe(ye){return typeof Blob<"u"&&ye instanceof Blob}function Ke(ye){return typeof FormData<"u"&&ye instanceof FormData}class Re{constructor(X,$,de,Ee){let nt;if(this.url=$,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=X.toUpperCase(),function Ae(ye){switch(ye){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ee?(this.body=void 0!==de?de:null,nt=Ee):nt=de,nt&&(this.reportProgress=!!nt.reportProgress,this.withCredentials=!!nt.withCredentials,nt.responseType&&(this.responseType=nt.responseType),nt.headers&&(this.headers=nt.headers),nt.context&&(this.context=nt.context),nt.params&&(this.params=nt.params)),this.headers||(this.headers=new Y),this.context||(this.context=new je),this.params){const ht=this.params.toString();if(0===ht.length)this.urlWithParams=$;else{const Ne=$.indexOf("?");this.urlWithParams=$+(-1===Ne?"?":Ne<$.length-1?"&":"")+ht}}else this.params=new be,this.urlWithParams=$}serializeBody(){return null===this.body?null:we(this.body)||xe(this.body)||Ke(this.body)||function Pe(ye){return typeof URLSearchParams<"u"&&ye instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof be?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Ke(this.body)?null:xe(this.body)?this.body.type||null:we(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof be?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(X={}){const $=X.method||this.method,de=X.url||this.url,Ee=X.responseType||this.responseType,nt=void 0!==X.body?X.body:this.body,ht=void 0!==X.withCredentials?X.withCredentials:this.withCredentials,Ne=void 0!==X.reportProgress?X.reportProgress:this.reportProgress;let tt=X.headers||this.headers,ri=X.params||this.params;const wt=X.context??this.context;return void 0!==X.setHeaders&&(tt=Object.keys(X.setHeaders).reduce((un,rt)=>un.set(rt,X.setHeaders[rt]),tt)),X.setParams&&(ri=Object.keys(X.setParams).reduce((un,rt)=>un.set(rt,X.setParams[rt]),ri)),new Re($,de,nt,{params:ri,headers:tt,context:wt,reportProgress:Ne,responseType:Ee,withCredentials:ht})}}var De=(()=>((De=De||{})[De.Sent=0]="Sent",De[De.UploadProgress=1]="UploadProgress",De[De.ResponseHeader=2]="ResponseHeader",De[De.DownloadProgress=3]="DownloadProgress",De[De.Response=4]="Response",De[De.User=5]="User",De))();class le{constructor(X,$=200,de="OK"){this.headers=X.headers||new Y,this.status=void 0!==X.status?X.status:$,this.statusText=X.statusText||de,this.url=X.url||null,this.ok=this.status>=200&&this.status<300}}class ce extends le{constructor(X={}){super(X),this.type=De.ResponseHeader}clone(X={}){return new ce({headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class _e extends le{constructor(X={}){super(X),this.type=De.Response,this.body=void 0!==X.body?X.body:null}clone(X={}){return new _e({body:void 0!==X.body?X.body:this.body,headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class pe extends le{constructor(X){super(X,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${X.url||"(unknown url)"}`:`Http failure response for ${X.url||"(unknown url)"}: ${X.status} ${X.statusText}`,this.error=X.error||null}}function Be(ye,X){return{body:X,headers:ye.headers,context:ye.context,observe:ye.observe,params:ye.params,reportProgress:ye.reportProgress,responseType:ye.responseType,withCredentials:ye.withCredentials}}let ke=(()=>{class ye{constructor($){this.handler=$}request($,de,Ee={}){let nt;if($ instanceof Re)nt=$;else{let tt,ri;tt=Ee.headers instanceof Y?Ee.headers:new Y(Ee.headers),Ee.params&&(ri=Ee.params instanceof be?Ee.params:new be({fromObject:Ee.params})),nt=new Re($,de,void 0!==Ee.body?Ee.body:null,{headers:tt,context:Ee.context,params:ri,reportProgress:Ee.reportProgress,responseType:Ee.responseType||"json",withCredentials:Ee.withCredentials})}const ht=(0,L.of)(nt).pipe((0,B.b)(tt=>this.handler.handle(tt)));if($ instanceof Re||"events"===Ee.observe)return ht;const Ne=ht.pipe((0,q.h)(tt=>tt instanceof _e));switch(Ee.observe||"body"){case"body":switch(nt.responseType){case"arraybuffer":return Ne.pipe((0,Q.U)(tt=>{if(null!==tt.body&&!(tt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return tt.body}));case"blob":return Ne.pipe((0,Q.U)(tt=>{if(null!==tt.body&&!(tt.body instanceof Blob))throw new Error("Response is not a Blob.");return tt.body}));case"text":return Ne.pipe((0,Q.U)(tt=>{if(null!==tt.body&&"string"!=typeof tt.body)throw new Error("Response is not a string.");return tt.body}));default:return Ne.pipe((0,Q.U)(tt=>tt.body))}case"response":return Ne;default:throw new Error(`Unreachable: unhandled observe type ${Ee.observe}}`)}}delete($,de={}){return this.request("DELETE",$,de)}get($,de={}){return this.request("GET",$,de)}head($,de={}){return this.request("HEAD",$,de)}jsonp($,de){return this.request("JSONP",$,{params:(new be).append(de,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options($,de={}){return this.request("OPTIONS",$,de)}patch($,de,Ee={}){return this.request("PATCH",$,Be(Ee,de))}post($,de,Ee={}){return this.request("POST",$,Be(Ee,de))}put($,de,Ee={}){return this.request("PUT",$,Be(Ee,de))}}return ye.\u0275fac=function($){return new($||ye)(h.LFG(ee))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class ut{constructor(X,$){this.next=X,this.interceptor=$}handle(X){return this.interceptor.intercept(X,this.next)}}const xt=new h.OlP("HTTP_INTERCEPTORS");let kt=(()=>{class ye{intercept($,de){return de.handle($)}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Co=/^\)\]\}',?\n/;let wo=(()=>{class ye{constructor($){this.xhrFactory=$}handle($){if("JSONP"===$.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new F.y(de=>{const Ee=this.xhrFactory.build();if(Ee.open($.method,$.urlWithParams),$.withCredentials&&(Ee.withCredentials=!0),$.headers.forEach((Mt,Lt)=>Ee.setRequestHeader(Mt,Lt.join(","))),$.headers.has("Accept")||Ee.setRequestHeader("Accept","application/json, text/plain, */*"),!$.headers.has("Content-Type")){const Mt=$.detectContentTypeHeader();null!==Mt&&Ee.setRequestHeader("Content-Type",Mt)}if($.responseType){const Mt=$.responseType.toLowerCase();Ee.responseType="json"!==Mt?Mt:"text"}const nt=$.serializeBody();let ht=null;const Ne=()=>{if(null!==ht)return ht;const Mt=Ee.statusText||"OK",Lt=new Y(Ee.getAllResponseHeaders()),vn=function Jd(ye){return"responseURL"in ye&&ye.responseURL?ye.responseURL:/^X-Request-URL:/m.test(ye.getAllResponseHeaders())?ye.getResponseHeader("X-Request-URL"):null}(Ee)||$.url;return ht=new ce({headers:Lt,status:Ee.status,statusText:Mt,url:vn}),ht},tt=()=>{let{headers:Mt,status:Lt,statusText:vn,url:xr}=Ne(),Ai=null;204!==Lt&&(Ai=typeof Ee.response>"u"?Ee.responseText:Ee.response),0===Lt&&(Lt=Ai?200:0);let Jr=Lt>=200&&Lt<300;if("json"===$.responseType&&"string"==typeof Ai){const Kr=Ai;Ai=Ai.replace(Co,"");try{Ai=""!==Ai?JSON.parse(Ai):null}catch(Ea){Ai=Kr,Jr&&(Jr=!1,Ai={error:Ea,text:Ai})}}Jr?(de.next(new _e({body:Ai,headers:Mt,status:Lt,statusText:vn,url:xr||void 0})),de.complete()):de.error(new pe({error:Ai,headers:Mt,status:Lt,statusText:vn,url:xr||void 0}))},ri=Mt=>{const{url:Lt}=Ne(),vn=new pe({error:Mt,status:Ee.status||0,statusText:Ee.statusText||"Unknown Error",url:Lt||void 0});de.error(vn)};let wt=!1;const un=Mt=>{wt||(de.next(Ne()),wt=!0);let Lt={type:De.DownloadProgress,loaded:Mt.loaded};Mt.lengthComputable&&(Lt.total=Mt.total),"text"===$.responseType&&!!Ee.responseText&&(Lt.partialText=Ee.responseText),de.next(Lt)},rt=Mt=>{let Lt={type:De.UploadProgress,loaded:Mt.loaded};Mt.lengthComputable&&(Lt.total=Mt.total),de.next(Lt)};return Ee.addEventListener("load",tt),Ee.addEventListener("error",ri),Ee.addEventListener("timeout",ri),Ee.addEventListener("abort",ri),$.reportProgress&&(Ee.addEventListener("progress",un),null!==nt&&Ee.upload&&Ee.upload.addEventListener("progress",rt)),Ee.send(nt),de.next({type:De.Sent}),()=>{Ee.removeEventListener("error",ri),Ee.removeEventListener("abort",ri),Ee.removeEventListener("load",tt),Ee.removeEventListener("timeout",ri),$.reportProgress&&(Ee.removeEventListener("progress",un),null!==nt&&Ee.upload&&Ee.upload.removeEventListener("progress",rt)),Ee.readyState!==Ee.DONE&&Ee.abort()}})}}return ye.\u0275fac=function($){return new($||ye)(h.LFG(M.JF))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const er=new h.OlP("XSRF_COOKIE_NAME"),tr=new h.OlP("XSRF_HEADER_NAME");class xa{}let yo=(()=>{class ye{constructor($,de,Ee){this.doc=$,this.platform=de,this.cookieName=Ee,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const $=this.doc.cookie||"";return $!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,M.Mx)($,this.cookieName),this.lastCookieString=$),this.lastToken}}return ye.\u0275fac=function($){return new($||ye)(h.LFG(M.K0),h.LFG(h.Lbi),h.LFG(er))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Ze=(()=>{class ye{constructor($,de){this.tokenService=$,this.headerName=de}intercept($,de){const Ee=$.url.toLowerCase();if("GET"===$.method||"HEAD"===$.method||Ee.startsWith("http://")||Ee.startsWith("https://"))return de.handle($);const nt=this.tokenService.getToken();return null!==nt&&!$.headers.has(this.headerName)&&($=$.clone({headers:$.headers.set(this.headerName,nt)})),de.handle($)}}return ye.\u0275fac=function($){return new($||ye)(h.LFG(xa),h.LFG(tr))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),bi=(()=>{class ye{constructor($,de){this.backend=$,this.injector=de,this.chain=null}handle($){if(null===this.chain){const de=this.injector.get(xt,[]);this.chain=de.reduceRight((Ee,nt)=>new ut(Ee,nt),this.backend)}return this.chain.handle($)}}return ye.\u0275fac=function($){return new($||ye)(h.LFG(W),h.LFG(h.zs3))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Sa=(()=>{class ye{static disable(){return{ngModule:ye,providers:[{provide:Ze,useClass:kt}]}}static withOptions($={}){return{ngModule:ye,providers:[$.cookieName?{provide:er,useValue:$.cookieName}:[],$.headerName?{provide:tr,useValue:$.headerName}:[]]}}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=h.oAB({type:ye}),ye.\u0275inj=h.cJS({providers:[Ze,{provide:xt,useExisting:Ze,multi:!0},{provide:xa,useClass:yo},{provide:er,useValue:"XSRF-TOKEN"},{provide:tr,useValue:"X-XSRF-TOKEN"}]}),ye})(),Kd=(()=>{class ye{}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=h.oAB({type:ye}),ye.\u0275inj=h.cJS({providers:[ke,{provide:ee,useClass:bi},wo,{provide:W,useExisting:wo}],imports:[Sa.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ye})()},4650:(N,z,E)=>{"use strict";E.d(z,{$8M:()=>$s,$Z:()=>_g,AFp:()=>Pp,ALo:()=>RA,AaK:()=>ee,AsE:()=>Wh,B6R:()=>xr,BQk:()=>gd,CHM:()=>$t,CRH:()=>yb,CZH:()=>wn,CqO:()=>o_,D6c:()=>R0,DdM:()=>AA,Dn7:()=>IA,EJc:()=>AE,EiD:()=>Uc,EpF:()=>ss,F$t:()=>c_,F4k:()=>a_,FYo:()=>sa,FiY:()=>el,G48:()=>IE,Gf:()=>wb,GfV:()=>Lm,GkF:()=>os,Gpc:()=>G,Gre:()=>E_,Hsn:()=>_n,Ikx:()=>Zh,JOm:()=>Ir,JVY:()=>vw,KtG:()=>On,L6k:()=>Aw,LAX:()=>Tw,LFG:()=>ti,LSH:()=>Go,Lbi:()=>Ip,Lck:()=>yA,MAs:()=>t_,MMx:()=>dp,NdJ:()=>Lr,O4$:()=>Ac,OlP:()=>Bt,Oqu:()=>cs,PXZ:()=>h0,Q6J:()=>Il,QGY:()=>_d,QP$:()=>Wl,QbO:()=>kp,Qsj:()=>Om,R0b:()=>cn,RDi:()=>ww,Rgc:()=>Md,SBq:()=>rl,Sil:()=>l0,Suo:()=>bp,TTD:()=>xo,TgZ:()=>fd,Tol:()=>__,Udp:()=>Fh,VKq:()=>xA,WFA:()=>bd,WLB:()=>TA,XFs:()=>Ze,Xpm:()=>vn,Xts:()=>$o,Y36:()=>kr,YKP:()=>_s,YNc:()=>Ph,Yjl:()=>uc,Yz7:()=>Et,ZZ4:()=>ic,_Bn:()=>ro,_UZ:()=>n_,_Vd:()=>Jo,_c5:()=>oC,_uU:()=>y_,aQg:()=>Nd,c2e:()=>s0,cJS:()=>ui,cg1:()=>us,d8E:()=>H_,dDg:()=>EE,dqk:()=>de,eBb:()=>xw,eFA:()=>jp,ekj:()=>Uh,eoX:()=>Kl,f3M:()=>im,g9A:()=>Lb,h0i:()=>gs,hGG:()=>H0,hij:()=>yd,iGM:()=>Cb,ifc:()=>$,ip1:()=>Fi,kL8:()=>R_,kcU:()=>kf,lG2:()=>Zd,lcZ:()=>pp,lnq:()=>v_,lqb:()=>za,lri:()=>d0,mCW:()=>qo,n5z:()=>Gf,n_E:()=>fp,oAB:()=>Kr,oJD:()=>Tm,oxw:()=>l_,pB0:()=>Lc,q3G:()=>Yt,qLn:()=>Ga,qOj:()=>Eh,qZA:()=>Ih,qzn:()=>qa,rWj:()=>Nb,s9C:()=>d_,sBO:()=>_0,sIi:()=>is,s_b:()=>gp,soG:()=>Vp,tb:()=>Jl,tp0:()=>na,uIk:()=>Zg,vHH:()=>ae,vpe:()=>zr,wAp:()=>Je,xDo:()=>x_,xi3:()=>PA,xp6:()=>ih,ynx:()=>md,z2F:()=>wa,z3N:()=>gn,zSh:()=>Bu,zs3:()=>ca});var M=E(7579),h=E(727),L=E(9751),F=E(6451),B=E(3099);function q(_){for(let b in _)if(_[b]===q)return b;throw Error("Could not find renamed property on target object.")}function Q(_,b){for(const C in b)b.hasOwnProperty(C)&&!_.hasOwnProperty(C)&&(_[C]=b[C])}function ee(_){if("string"==typeof _)return _;if(Array.isArray(_))return"["+_.map(ee).join(", ")+"]";if(null==_)return""+_;if(_.overriddenName)return`${_.overriddenName}`;if(_.name)return`${_.name}`;const b=_.toString();if(null==b)return""+b;const C=b.indexOf("\n");return-1===C?b:b.substring(0,C)}function W(_,b){return null==_||""===_?null===b?"":b:null==b||""===b?_:_+" "+b}const Y=q({__forward_ref__:q});function G(_){return _.__forward_ref__=G,_.toString=function(){return ee(this())},_}function re(_){return oe(_)?_():_}function oe(_){return"function"==typeof _&&_.hasOwnProperty(Y)&&_.__forward_ref__===G}class ae extends Error{constructor(b,C){super(function he(_,b){return`NG0${Math.abs(_)}${b?": "+b.trim():""}`}(b,C)),this.code=b}}function fe(_){return"string"==typeof _?_:null==_?"":String(_)}function we(_,b){throw new ae(-201,!1)}function kt(_,b){null==_&&function Fe(_,b,C,y){throw new Error(`ASSERTION ERROR: ${_}`+(null==y?"":` [Expected=> ${C} ${y} ${b} <=Actual]`))}(b,_,null,"!=")}function Et(_){return{token:_.token,providedIn:_.providedIn||null,factory:_.factory,value:void 0}}function ui(_){return{providers:_.providers||[],imports:_.imports||[]}}function Yr(_){return dc(_,er)||dc(_,xa)}function dc(_,b){return _.hasOwnProperty(b)?_[b]:null}function wo(_){return _&&(_.hasOwnProperty(tr)||_.hasOwnProperty(yo))?_[tr]:null}const er=q({\u0275prov:q}),tr=q({\u0275inj:q}),xa=q({ngInjectableDef:q}),yo=q({ngInjectorDef:q});var Ze=(()=>((Ze=Ze||{})[Ze.Default=0]="Default",Ze[Ze.Host=1]="Host",Ze[Ze.Self=2]="Self",Ze[Ze.SkipSelf=4]="SkipSelf",Ze[Ze.Optional=8]="Optional",Ze))();let bi;function ki(_){const b=bi;return bi=_,b}function Sa(_,b,C){const y=Yr(_);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:C&Ze.Optional?null:void 0!==b?b:void we(ee(_))}function Pn(_){return{toString:_}.toString()}var Si=(()=>((Si=Si||{})[Si.OnPush=0]="OnPush",Si[Si.Default=1]="Default",Si))(),$=(()=>{return(_=$||($={}))[_.Emulated=0]="Emulated",_[_.None=2]="None",_[_.ShadowDom=3]="ShadowDom",$;var _})();const de=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ht={},Ne=[],tt=q({\u0275cmp:q}),ri=q({\u0275dir:q}),wt=q({\u0275pipe:q}),un=q({\u0275mod:q}),rt=q({\u0275fac:q}),Mt=q({__NG_ELEMENT_ID__:q});let Lt=0;function vn(_){return Pn(()=>{const C=!0===_.standalone,y={},x={type:_.type,providersResolver:null,decls:_.decls,vars:_.vars,factory:null,template:_.template||null,consts:_.consts||null,ngContentSelectors:_.ngContentSelectors,hostBindings:_.hostBindings||null,hostVars:_.hostVars||0,hostAttrs:_.hostAttrs||null,contentQueries:_.contentQueries||null,declaredInputs:y,inputs:null,outputs:null,exportAs:_.exportAs||null,onPush:_.changeDetection===Si.OnPush,directiveDefs:null,pipeDefs:null,standalone:C,dependencies:C&&_.dependencies||null,getStandaloneInjector:null,selectors:_.selectors||Ne,viewQuery:_.viewQuery||null,features:_.features||null,data:_.data||{},encapsulation:_.encapsulation||$.Emulated,id:"c"+Lt++,styles:_.styles||Ne,_:null,setInput:null,schemas:_.schemas||null,tView:null},T=_.dependencies,S=_.features;return x.inputs=vo(_.inputs,y),x.outputs=vo(_.outputs),S&&S.forEach(D=>D(x)),x.directiveDefs=T?()=>("function"==typeof T?T():T).map(Ai).filter(Jr):null,x.pipeDefs=T?()=>("function"==typeof T?T():T).map(Bi).filter(Jr):null,x})}function xr(_,b,C){const y=_.\u0275cmp;y.directiveDefs=()=>("function"==typeof b?b():b).map(Ai),y.pipeDefs=()=>("function"==typeof C?C():C).map(Bi)}function Ai(_){return Tt(_)||Vi(_)}function Jr(_){return null!==_}function Kr(_){return Pn(()=>({type:_.type,bootstrap:_.bootstrap||Ne,declarations:_.declarations||Ne,imports:_.imports||Ne,exports:_.exports||Ne,transitiveCompileScopes:null,schemas:_.schemas||null,id:_.id||null}))}function vo(_,b){if(null==_)return ht;const C={};for(const y in _)if(_.hasOwnProperty(y)){let x=_[y],T=x;Array.isArray(x)&&(T=x[1],x=x[0]),C[x]=y,b&&(b[x]=T)}return C}const Zd=vn;function uc(_){return{type:_.type,name:_.name,factory:null,pure:!1!==_.pure,standalone:!0===_.standalone,onDestroy:_.type.prototype.ngOnDestroy||null}}function Tt(_){return _[tt]||null}function Vi(_){return _[ri]||null}function Bi(_){return _[wt]||null}function Qi(_,b){const C=_[un]||null;if(!C&&!0===b)throw new Error(`Type ${ee(_)} does not have '\u0275mod' property.`);return C}function Ci(_){return Array.isArray(_)&&"object"==typeof _[1]}function Ji(_){return Array.isArray(_)&&!0===_[1]}function Mr(_){return 0!=(8&_.flags)}function Dr(_){return 2==(2&_.flags)}function An(_){return 1==(1&_.flags)}function qi(_){return null!==_.template}function hc(_){return 0!=(256&_[2])}function Hr(_,b){return _.hasOwnProperty(rt)?_[rt]:null}class tu{constructor(b,C,y){this.previousValue=b,this.currentValue=C,this.firstChange=y}isFirstChange(){return this.firstChange}}function xo(){return fc}function fc(_){return _.type.prototype.ngOnChanges&&(_.setInput=mc),ks}function ks(){const _=So(this),b=_?.current;if(b){const C=_.previous;if(C===ht)_.previous=b;else for(let y in b)C[y]=b[y];_.current=null,this.ngOnChanges(b)}}function mc(_,b,C,y){const x=So(_)||function iu(_,b){return _[To]=b}(_,{previous:ht,current:null}),T=x.current||(x.current={}),S=x.previous,D=this.declaredInputs[C],H=S[D];T[D]=new tu(H&&H.currentValue,b,S===ht),_[y]=b}xo.ngInherit=!0;const To="__ngSimpleChanges__";function So(_){return _[To]||null}function pi(_){for(;Array.isArray(_);)_=_[0];return _}function Bs(_,b){return pi(b[_])}function pn(_,b){return pi(b[_.index])}function Cc(_,b){return _.data[b]}function Eo(_,b){return _[b]}function Ki(_,b){const C=b[_];return Ci(C)?C:C[0]}function P(_){return 4==(4&_[2])}function O(_){return 64==(64&_[2])}function j(_,b){return null==b?null:_[b]}function ne(_){_[18]=0}function me(_,b){_[5]+=b;let C=_,y=_[3];for(;null!==y&&(1===b&&1===C[5]||-1===b&&0===C[5]);)y[5]+=b,C=y,y=y[3]}const ue={lFrame:Hf(null),bindingsEnabled:!0};function wi(){return ue.bindingsEnabled}function ge(){return ue.lFrame.lView}function $e(){return ue.lFrame.tView}function $t(_){return ue.lFrame.contextLView=_,_[8]}function On(_){return ue.lFrame.contextLView=null,_}function Vt(){let _=Mo();for(;null!==_&&64===_.type;)_=_.parent;return _}function Mo(){return ue.lFrame.currentTNode}function Oi(_,b){const C=ue.lFrame;C.currentTNode=_,C.isParent=b}function Qt(){return ue.lFrame.isParent}function fn(){ue.lFrame.isParent=!1}function ei(){const _=ue.lFrame;let b=_.bindingRootIndex;return-1===b&&(b=_.bindingRootIndex=_.tView.bindingStartIndex),b}function Rt(){return ue.lFrame.bindingIndex}function Do(){return ue.lFrame.bindingIndex++}function rr(_){const b=ue.lFrame,C=b.bindingIndex;return b.bindingIndex=b.bindingIndex+_,C}function au(_,b){const C=ue.lFrame;C.bindingIndex=C.bindingRootIndex=_,wc(b)}function wc(_){ue.lFrame.currentDirectiveIndex=_}function ou(_){const b=ue.lFrame.currentDirectiveIndex;return-1===b?null:_[b]}function Df(){return ue.lFrame.currentQueryIndex}function Ha(_){ue.lFrame.currentQueryIndex=_}function yc(_){const b=_[1];return 2===b.type?b.declTNode:1===b.type?_[6]:null}function ft(_,b,C){if(C&Ze.SkipSelf){let x=b,T=_;for(;!(x=x.parent,null!==x||C&Ze.Host||(x=yc(T),null===x||(T=T[15],10&x.type))););if(null===x)return!1;b=x,_=T}const y=ue.lFrame=Ra();return y.currentTNode=b,y.lView=_,!0}function su(_){const b=Ra(),C=_[1];ue.lFrame=b,b.currentTNode=C.firstChild,b.lView=_,b.tView=C,b.contextLView=_,b.bindingIndex=C.bindingStartIndex,b.inI18n=!1}function Ra(){const _=ue.lFrame,b=null===_?null:_.child;return null===b?Hf(_):b}function Hf(_){const b={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:_,child:null,inI18n:!1};return null!==_&&(_.child=b),b}function Rf(){const _=ue.lFrame;return ue.lFrame=_.parent,_.currentTNode=null,_.lView=null,_}const Ln=Rf;function vc(){const _=Rf();_.isParent=!0,_.tView=null,_.selectedIndex=-1,_.contextLView=null,_.elementDepthCount=0,_.currentDirectiveIndex=-1,_.currentNamespace=null,_.bindingRootIndex=-1,_.bindingIndex=-1,_.currentQueryIndex=0}function en(){return ue.lFrame.selectedIndex}function qt(_){ue.lFrame.selectedIndex=_}function St(){const _=ue.lFrame;return Cc(_.tView,_.selectedIndex)}function Ac(){ue.lFrame.currentNamespace="svg"}function kf(){!function Vf(){ue.lFrame.currentNamespace=null}()}function Os(_,b){for(let C=b.directiveStart,y=b.directiveEnd;C=y)break}else b[H]<0&&(_[18]+=65536),(D>11<_[18]>>16&&(3&_[2])===b){_[2]+=2048;try{T.call(D)}finally{}}}else try{T.call(D)}finally{}}class Rr{constructor(b,C,y){this.factory=b,this.resolving=!1,this.canSeeViewProviders=C,this.injectImpl=y}}function Us(_,b,C){let y=0;for(;yb){S=T-1;break}}}for(;T<_.length;){const D=_[T];if("number"==typeof D)break;if(D===C){if(null===y)return void(null!==x&&(_[T+1]=x));if(y===_[T+1])return void(_[T+2]=x)}T++,null!==y&&T++,null!==x&&T++}-1!==S&&(_.splice(S,0,b),T=S+1),_.splice(T++,0,C),null!==y&&_.splice(T++,0,y),null!==x&&_.splice(T++,0,x)}function du(_){return-1!==_}function ka(_){return 32767&_}function Ro(_,b){let C=function aw(_){return _>>16}(_),y=b;for(;C>0;)y=y[15],C--;return y}let uu=!0;function Va(_){const b=uu;return uu=_,b}let ow=0;const ar={};function ea(_,b){const C=Pr(_,b);if(-1!==C)return C;const y=b[1];y.firstCreatePass&&(_.injectorIndex=b.length,pu(y.data,_),pu(b,null),pu(y.blueprint,null));const x=Po(_,b),T=_.injectorIndex;if(du(x)){const S=ka(x),D=Ro(x,b),H=D[1].data;for(let k=0;k<8;k++)b[T+k]=D[S+k]|H[S+k]}return b[T+8]=x,T}function pu(_,b){_.push(0,0,0,0,0,0,0,0,b)}function Pr(_,b){return-1===_.injectorIndex||_.parent&&_.parent.injectorIndex===_.injectorIndex||null===b[_.injectorIndex+8]?-1:_.injectorIndex}function Po(_,b){if(_.parent&&-1!==_.parent.injectorIndex)return _.parent.injectorIndex;let C=0,y=null,x=b;for(;null!==x;){if(y=Wf(x),null===y)return-1;if(C++,x=x[15],-1!==y.injectorIndex)return y.injectorIndex|C<<16}return-1}function fu(_,b,C){!function hu(_,b,C){let y;"string"==typeof C?y=C.charCodeAt(0)||0:C.hasOwnProperty(Mt)&&(y=C[Mt]),null==y&&(y=C[Mt]=ow++);const x=255&y;b.data[_+(x>>5)]|=1<=0?255&b:zf:b}(C);if("function"==typeof T){if(!ft(b,_,y))return y&Ze.Host?Ff(x,0,y):Uf(b,C,y,x);try{const S=T(y);if(null!=S||y&Ze.Optional)return S;we()}finally{Ln()}}else if("number"==typeof T){let S=null,D=Pr(_,b),H=-1,k=y&Ze.Host?b[16][6]:null;for((-1===D||y&Ze.SkipSelf)&&(H=-1===D?Po(_,b):b[D+8],-1!==H&&qf(y,!1)?(S=b[1],D=ka(H),b=Ro(H,b)):D=-1);-1!==D;){const V=b[1];if(Ba(T,D,V.data)){const U=Vo(D,b,C,S,y,k);if(U!==ar)return U}H=b[D+8],-1!==H&&qf(y,b[1].data[D+8]===k)&&Ba(T,D,b)?(S=V,D=ka(H),b=Ro(H,b)):D=-1}}return x}function Vo(_,b,C,y,x,T){const S=b[1],D=S.data[_+8],V=zs(D,S,C,null==y?Dr(D)&&uu:y!=S&&0!=(3&D.type),x&Ze.Host&&T===D);return null!==V?Bo(b,S,V,D):ar}function zs(_,b,C,y,x){const T=_.providerIndexes,S=b.data,D=1048575&T,H=_.directiveStart,V=T>>20,te=x?D+V:_.directiveEnd;for(let se=y?D:D+V;se=H&&Ce.type===C)return se}if(x){const se=S[H];if(se&&qi(se)&&se.type===C)return H}return null}function Bo(_,b,C,y){let x=_[C];const T=b.data;if(function nw(_){return _ instanceof Rr}(x)){const S=x;S.resolving&&function Le(_,b){const C=b?`. Dependency path: ${b.join(" > ")} > ${_}`:"";throw new ae(-200,`Circular dependency in DI detected for ${_}${C}`)}(function be(_){return"function"==typeof _?_.name||_.toString():"object"==typeof _&&null!=_&&"function"==typeof _.type?_.type.name||_.type.toString():fe(_)}(T[C]));const D=Va(S.canSeeViewProviders);S.resolving=!0;const H=S.injectImpl?ki(S.injectImpl):null;ft(_,y,Ze.Default);try{x=_[C]=S.factory(void 0,T,_,y),b.firstCreatePass&&C>=y.directiveStart&&function iw(_,b,C){const{ngOnChanges:y,ngOnInit:x,ngDoCheck:T}=b.type.prototype;if(y){const S=fc(b);(C.preOrderHooks||(C.preOrderHooks=[])).push(_,S),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(_,S)}x&&(C.preOrderHooks||(C.preOrderHooks=[])).push(0-_,x),T&&((C.preOrderHooks||(C.preOrderHooks=[])).push(_,T),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(_,T))}(C,T[C],b)}finally{null!==H&&ki(H),Va(D),S.resolving=!1,Ln()}}return x}function Ba(_,b,C){return!!(C[b+(_>>5)]&1<<_)}function qf(_,b){return!(_&Ze.Self||_&Ze.Host&&b)}class Oo{constructor(b,C){this._tNode=b,this._lView=C}get(b,C,y){return Io(this._tNode,this._lView,b,y,C)}}function zf(){return new Oo(Vt(),ge())}function Gf(_){return Pn(()=>{const b=_.prototype.constructor,C=b[rt]||Gs(b),y=Object.prototype;let x=Object.getPrototypeOf(_.prototype).constructor;for(;x&&x!==y;){const T=x[rt]||Gs(x);if(T&&T!==C)return T;x=Object.getPrototypeOf(x)}return T=>new T})}function Gs(_){return oe(_)?()=>{const b=Gs(re(_));return b&&b()}:Hr(_)}function Wf(_){const b=_[1],C=b.type;return 2===C?b.declTNode:1===C?_[6]:null}function $s(_){return function sw(_,b){if("class"===b)return _.classes;if("style"===b)return _.styles;const C=_.attrs;if(C){const y=C.length;let x=0;for(;x{const y=function Qs(_){return function(...C){if(_){const y=_(...C);for(const x in y)this[x]=y[x]}}}(b);function x(...T){if(this instanceof x)return y.apply(this,T),this;const S=new x(...T);return D.annotation=S,D;function D(H,k,V){const U=H.hasOwnProperty(Oa)?H[Oa]:Object.defineProperty(H,Oa,{value:[]})[Oa];for(;U.length<=V;)U.push(null);return(U[V]=U[V]||[]).push(S),H}}return C&&(x.prototype=Object.create(C.prototype)),x.prototype.ngMetadataName=_,x.annotationCls=x,x})}class Bt{constructor(b,C){this._desc=b,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof C?this.__NG_ELEMENT_ID__=C:void 0!==C&&(this.\u0275prov=Et({token:this,providedIn:C.providedIn||"root",factory:C.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function si(_,b){void 0===b&&(b=_);for(let C=0;C<_.length;C++){let y=_[C];Array.isArray(y)?(b===_&&(b=_.slice(0,C)),si(y,b)):b!==_&&b.push(y)}return b}function tn(_,b){_.forEach(C=>Array.isArray(C)?tn(C,b):b(C))}function bu(_,b,C){b>=_.length?_.push(C):_.splice(b,0,C)}function Js(_,b){return b>=_.length-1?_.pop():_.splice(b,1)[0]}function Ks(_,b){const C=[];for(let y=0;y<_;y++)C.push(b);return C}function nn(_,b,C){let y=ta(_,b);return y>=0?_[1|y]=C:(y=~y,function lw(_,b,C,y){let x=_.length;if(x==b)_.push(C,y);else if(1===x)_.push(y,_[0]),_[0]=C;else{for(x--,_.push(_[x-1],_[x]);x>b;)_[x]=_[x-2],x--;_[b]=C,_[b+1]=y}}(_,y,b,C)),y}function Zs(_,b){const C=ta(_,b);if(C>=0)return _[1|C]}function ta(_,b){return function Fo(_,b,C){let y=0,x=_.length>>C;for(;x!==y;){const T=y+(x-y>>1),S=_[T<b?x=T:y=T+1}return~(x<_,createScript:_=>_,createScriptURL:_=>_})}catch{}return kc}()?.createHTML(_)||_}function pm(_){return function Eu(){if(void 0===Na&&(Na=null,de.trustedTypes))try{Na=de.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:_=>_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Na}()?.createHTML(_)||_}class lr{constructor(b){this.changingThisBreaksApplicationSecurity=b}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class gm extends lr{getTypeName(){return"HTML"}}class _m extends lr{getTypeName(){return"Style"}}class Bc extends lr{getTypeName(){return"Script"}}class Oc extends lr{getTypeName(){return"URL"}}class bm extends lr{getTypeName(){return"ResourceURL"}}function gn(_){return _ instanceof lr?_.changingThisBreaksApplicationSecurity:_}function qa(_,b){const C=function yw(_){return _ instanceof lr&&_.getTypeName()||null}(_);if(null!=C&&C!==b){if("ResourceURL"===C&&"URL"===b)return!0;throw new Error(`Required a safe ${b}, got a ${C} (see https://g.co/ng/security#xss)`)}return C===b}function vw(_){return new gm(_)}function Aw(_){return new _m(_)}function xw(_){return new Bc(_)}function Tw(_){return new Oc(_)}function Lc(_){return new bm(_)}class Sw{constructor(b){this.inertDocumentHelper=b}getInertBodyElement(b){b=""+b;try{const C=(new window.DOMParser).parseFromString(No(b),"text/html").body;return null===C?this.inertDocumentHelper.getInertBodyElement(b):(C.removeChild(C.firstChild),C)}catch{return null}}}class Ew{constructor(b){if(this.defaultDoc=b,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const C=this.inertDocument.createElement("html");this.inertDocument.appendChild(C);const y=this.inertDocument.createElement("body");C.appendChild(y)}}getInertBodyElement(b){const C=this.inertDocument.createElement("template");if("content"in C)return C.innerHTML=No(b),C;const y=this.inertDocument.createElement("body");return y.innerHTML=No(b),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(b){const C=b.attributes;for(let x=C.length-1;0qo(b.trim())).join(", ")),this.buf.push(" ",S,'="',xm(H),'"')}var _;return this.buf.push(">"),!0}endElement(b){const C=b.nodeName.toLowerCase();Ru.hasOwnProperty(C)&&!Mu.hasOwnProperty(C)&&(this.buf.push(""))}chars(b){this.buf.push(xm(b))}checkClobberedElement(b,C){if(C&&(b.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${b.outerHTML}`);return C}}const Pw=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Iw=/([^\#-~ |!])/g;function xm(_){return _.replace(/&/g,"&").replace(Pw,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(Iw,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(//g,">")}let Fc;function Uc(_,b){let C=null;try{Fc=Fc||function Cm(_){const b=new Ew(_);return function Mw(){try{return!!(new window.DOMParser).parseFromString(No(""),"text/html")}catch{return!1}}()?new Sw(b):b}(_);let y=b?String(b):"";C=Fc.getInertBodyElement(y);let x=5,T=y;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,y=T,T=C.innerHTML,C=Fc.getInertBodyElement(y)}while(y!==T);return No((new Am).sanitizeChildren(Nc(C)||C))}finally{if(C){const y=Nc(C)||C;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function Nc(_){return"content"in _&&function ku(_){return _.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===_.nodeName}(_)?_.content:null}var Yt=(()=>((Yt=Yt||{})[Yt.NONE=0]="NONE",Yt[Yt.HTML=1]="HTML",Yt[Yt.STYLE=2]="STYLE",Yt[Yt.SCRIPT=3]="SCRIPT",Yt[Yt.URL=4]="URL",Yt[Yt.RESOURCE_URL=5]="RESOURCE_URL",Yt))();function Tm(_){const b=Wo();return b?pm(b.sanitize(Yt.HTML,_)||""):qa(_,"HTML")?pm(gn(_)):Uc(function dm(){return void 0!==Tu?Tu:typeof document<"u"?document:void 0}(),fe(_))}function Go(_){const b=Wo();return b?b.sanitize(Yt.URL,_)||"":qa(_,"URL")?gn(_):qo(fe(_))}function Wo(){const _=ge();return _&&_[12]}const $o=new Bt("ENVIRONMENT_INITIALIZER"),nl=new Bt("INJECTOR",-1),Mm=new Bt("INJECTOR_DEF_TYPES");class Dm{get(b,C=ia){if(C===ia){const y=new Error(`NullInjectorError: No provider for ${ee(b)}!`);throw y.name="NullInjectorError",y}return C}}function Hm(..._){return{\u0275providers:jw(0,_)}}function jw(_,...b){const C=[],y=new Set;let x;return tn(b,T=>{const S=T;qc(S,C,[],y)&&(x||(x=[]),x.push(S))}),void 0!==x&&Rm(x,C),C}function Rm(_,b){for(let C=0;C<_.length;C++){const{providers:x}=_[C];tn(x,T=>{b.push(T)})}}function qc(_,b,C,y){if(!(_=re(_)))return!1;let x=null,T=wo(_);const S=!T&&Tt(_);if(T||S){if(S&&!S.standalone)return!1;x=_}else{const H=_.ngModule;if(T=wo(H),!T)return!1;x=H}const D=y.has(x);if(S){if(D)return!1;if(y.add(x),S.dependencies){const H="function"==typeof S.dependencies?S.dependencies():S.dependencies;for(const k of H)qc(k,b,C,y)}}else{if(!T)return!1;{if(null!=T.imports&&!D){let k;y.add(x);try{tn(T.imports,V=>{qc(V,b,C,y)&&(k||(k=[]),k.push(V))})}finally{}void 0!==k&&Rm(k,b)}if(!D){const k=Hr(x)||(()=>new x);b.push({provide:x,useFactory:k,deps:Ne},{provide:Mm,useValue:x,multi:!0},{provide:$o,useValue:()=>ti(x),multi:!0})}const H=T.providers;null==H||D||tn(H,V=>{b.push(V)})}}return x!==_&&void 0!==_.providers}const Uw=q({provide:String,useValue:q});function cr(_){return null!==_&&"object"==typeof _&&Uw in _}function oa(_){return"function"==typeof _}const Bu=new Bt("Set Injector scope."),zc={},Gc={};let Ou;function Wc(){return void 0===Ou&&(Ou=new Dm),Ou}class za{}class Pm extends za{constructor(b,C,y,x){super(),this.parent=C,this.source=y,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ju(b,S=>this.processProvider(S)),this.records.set(nl,Qo(void 0,this)),x.has("environment")&&this.records.set(za,Qo(void 0,this));const T=this.records.get(Bu);null!=T&&"string"==typeof T.value&&this.scopes.add(T.value),this.injectorDefTypes=new Set(this.get(Mm.multi,Ne,Ze.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();for(const b of this._onDestroyHooks)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(b){this._onDestroyHooks.push(b)}runInContext(b){this.assertNotDestroyed();const C=Xs(this),y=ki(void 0);try{return b()}finally{Xs(C),ki(y)}}get(b,C=ia,y=Ze.Default){this.assertNotDestroyed();const x=Xs(this),T=ki(void 0);try{if(!(y&Ze.SkipSelf)){let D=this.records.get(b);if(void 0===D){const H=function Lu(_){return"function"==typeof _||"object"==typeof _&&_ instanceof Bt}(b)&&Yr(b);D=H&&this.injectableDefInScope(H)?Qo($c(b),zc):null,this.records.set(b,D)}if(null!=D)return this.hydrate(b,D)}return(y&Ze.Self?Wc():this.parent).get(b,C=y&Ze.Optional&&C===ia?null:C)}catch(S){if("NullInjectorError"===S.name){if((S[Pc]=S[Pc]||[]).unshift(ee(b)),x)throw S;return function nm(_,b,C,y){const x=_[Pc];throw b[pw]&&x.unshift(b[pw]),_.message=function rm(_,b,C,y=null){_=_&&"\n"===_.charAt(0)&&"\u0275"==_.charAt(1)?_.slice(2):_;let x=ee(b);if(Array.isArray(b))x=b.map(ee).join(" -> ");else if("object"==typeof b){let T=[];for(let S in b)if(b.hasOwnProperty(S)){let D=b[S];T.push(S+":"+("string"==typeof D?JSON.stringify(D):ee(D)))}x=`{${T.join(", ")}}`}return`${C}${y?"("+y+")":""}[${x}]: ${_.replace(Xf,"\n ")}`}("\n"+_.message,x,C,y),_.ngTokenPath=x,_[Pc]=null,_}(S,b,"R3InjectorError",this.source)}throw S}finally{ki(T),Xs(x)}}resolveInjectorInitializers(){const b=Xs(this),C=ki(void 0);try{const y=this.get($o.multi,Ne,Ze.Self);for(const x of y)x()}finally{Xs(b),ki(C)}}toString(){const b=[],C=this.records;for(const y of C.keys())b.push(ee(y));return`R3Injector[${b.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ae(205,!1)}processProvider(b){let C=oa(b=re(b))?b:re(b&&b.provide);const y=function Im(_){return cr(_)?Qo(void 0,_.useValue):Qo(km(_),zc)}(b);if(oa(b)||!0!==b.multi)this.records.get(C);else{let x=this.records.get(C);x||(x=Qo(void 0,zc,!0),x.factory=()=>yu(x.multi),this.records.set(C,x)),C=b,x.multi.push(b)}this.records.set(C,y)}hydrate(b,C){return C.value===zc&&(C.value=Gc,C.value=C.factory()),"object"==typeof C.value&&C.value&&function Gw(_){return null!==_&&"object"==typeof _&&"function"==typeof _.ngOnDestroy}(C.value)&&this._ngOnDestroyHooks.add(C.value),C.value}injectableDefInScope(b){if(!b.providedIn)return!1;const C=re(b.providedIn);return"string"==typeof C?"any"===C||this.scopes.has(C):this.injectorDefTypes.has(C)}}function $c(_){const b=Yr(_),C=null!==b?b.factory:Hr(_);if(null!==C)return C;if(_ instanceof Bt)throw new ae(204,!1);if(_ instanceof Function)return function zw(_){const b=_.length;if(b>0)throw Ks(b,"?"),new ae(204,!1);const C=function Co(_){const b=_&&(_[er]||_[xa]);if(b){const C=function Jd(_){if(_.hasOwnProperty("name"))return _.name;const b=(""+_).match(/^function\s*([^\s(]+)/);return null===b?"":b[1]}(_);return console.warn(`DEPRECATED: DI is instantiating a token "${C}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${C}" class.`),b}return null}(_);return null!==C?()=>C.factory(_):()=>new _}(_);throw new ae(204,!1)}function km(_,b,C){let y;if(oa(_)){const x=re(_);return Hr(x)||$c(x)}if(cr(_))y=()=>re(_.useValue);else if(function Vu(_){return!(!_||!_.useFactory)}(_))y=()=>_.useFactory(...yu(_.deps||[]));else if(function Nw(_){return!(!_||!_.useExisting)}(_))y=()=>ti(re(_.useExisting));else{const x=re(_&&(_.useClass||_.provide));if(!function Vm(_){return!!_.deps}(_))return Hr(x)||$c(x);y=()=>new x(...yu(_.deps))}return y}function Qo(_,b,C=!1){return{factory:_,value:b,multi:C?[]:void 0}}function Ww(_){return!!_.\u0275providers}function ju(_,b){for(const C of _)Array.isArray(C)?ju(C,b):Ww(C)?ju(C.\u0275providers,b):b(C)}class Qw{}class Yo{resolveComponentFactory(b){throw function Fu(_){const b=Error(`No component factory found for ${ee(_)}. Did you add it to @NgModule.entryComponents?`);return b.ngComponent=_,b}(b)}}let Jo=(()=>{class _{}return _.NULL=new Yo,_})();function Bm(){return dr(Vt(),ge())}function dr(_,b){return new rl(pn(_,b))}let rl=(()=>{class _{constructor(C){this.nativeElement=C}}return _.__NG_ELEMENT_ID__=Bm,_})();function ur(_){return _ instanceof rl?_.nativeElement:_}class sa{}let Om=(()=>{class _{}return _.__NG_ELEMENT_ID__=()=>function al(){const _=ge(),C=Ki(Vt().index,_);return(Ci(C)?C:_)[11]}(),_})(),Nu=(()=>{class _{}return _.\u0275prov=Et({token:_,providedIn:"root",factory:()=>null}),_})();class Lm{constructor(b){this.full=b,this.major=b.split(".")[0],this.minor=b.split(".")[1],this.patch=b.split(".").slice(2).join(".")}}const Qc=new Lm("14.1.2"),ol={};function cl(_){return _.ngOriginalError}class Ga{constructor(){this._console=console}handleError(b){const C=this._findOriginalError(b);this._console.error("ERROR",b),C&&this._console.error("ORIGINAL ERROR",C)}_findOriginalError(b){let C=b&&cl(b);for(;C&&cl(C);)C=cl(C);return C||null}}const zm=new Map;let wT=0;const Wm="__ngContext__";function Ri(_,b){Ci(b)?(_[Wm]=b[20],function vT(_){zm.set(_[20],_)}(b)):_[Wm]=b}function Jc(_){const b=_[Wm];return"number"==typeof b?function ty(_){return zm.get(_)||null}(b):b||null}function $m(_){const b=Jc(_);return b?Ci(b)?b:b.lView:null}const HT=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(de))();function la(_){return _ instanceof Function?_():_}var Ir=(()=>((Ir=Ir||{})[Ir.Important=1]="Important",Ir[Ir.DashCase=2]="DashCase",Ir))();function $u(_,b){return undefined(_,b)}function Kc(_){const b=_[3];return Ji(b)?b[3]:b}function Qm(_){return dy(_[13])}function Ym(_){return dy(_[4])}function dy(_){for(;null!==_&&!Ji(_);)_=_[4];return _}function ul(_,b,C,y,x){if(null!=y){let T,S=!1;Ji(y)?T=y:Ci(y)&&(S=!0,y=y[0]);const D=pi(y);0===_&&null!==C?null==x?gy(b,C,D):Ko(b,C,D,x||null,!0):1===_&&null!==C?Ko(b,C,D,x||null,!0):2===_?function Ay(_,b,C){const y=Qu(_,b);y&&function QT(_,b,C,y){_.removeChild(b,C,y)}(_,y,b,C)}(b,D,S):3===_&&b.destroyNode(D),null!=T&&function KT(_,b,C,y,x){const T=C[7];T!==pi(C)&&ul(b,_,y,T,x);for(let D=10;D0&&(_[C-1][4]=y[4]);const T=Js(_,10+b);!function FT(_,b){Zc(_,b,b[11],2,null,null),b[0]=null,b[6]=null}(y[1],y);const S=T[19];null!==S&&S.detachView(T[1]),y[3]=null,y[4]=null,y[2]&=-65}return y}function py(_,b){if(!(128&b[2])){const C=b[11];C.destroyNode&&Zc(_,b,C,3,null,null),function qT(_){let b=_[13];if(!b)return Xm(_[1],_);for(;b;){let C=null;if(Ci(b))C=b[13];else{const y=b[10];y&&(C=y)}if(!C){for(;b&&!b[4]&&b!==_;)Ci(b)&&Xm(b[1],b),b=b[3];null===b&&(b=_),Ci(b)&&Xm(b[1],b),C=b&&b[4]}b=C}}(b)}}function Xm(_,b){if(!(128&b[2])){b[2]&=-65,b[2]|=128,function $T(_,b){let C;if(null!=_&&null!=(C=_.destroyHooks))for(let y=0;y=0?y[x=k]():y[x=-k].unsubscribe(),T+=2}else{const S=y[x=C[T+1]];C[T].call(S)}if(null!==y){for(let T=x+1;TT?"":x[U+1].toLowerCase();const se=8&y?te:null;if(se&&-1!==hr(se,k,0)||2&y&&k!==te){if(ze(y))return!1;S=!0}}}}else{if(!S&&!ze(y)&&!ze(H))return!1;if(S&&ze(H))continue;S=!1,y=H|1&y}}return ze(y)||S}function ze(_){return 0==(1&_)}function Pi(_,b,C,y){if(null===b)return-1;let x=0;if(y||!C){let T=!1;for(;x-1)for(C++;C<_.length;){const y=_[C];if("number"==typeof y)return-1;if(y===b)return C;C++}return-1}(b,_)}function Xu(_,b,C=!1){for(let y=0;y0?'="'+D+'"':"")+"]"}else 8&y?x+="."+S:4&y&&(x+=" "+S);else""!==x&&!ze(S)&&(b+=eh(T,x),x=""),y=S,T=T||!ze(y);C++}return""!==x&&(b+=eh(T,x)),b}const pt={};function ih(_){Wa($e(),ge(),en()+_,!1)}function Wa(_,b,C,y){if(!y)if(3==(3&b[2])){const T=_.preOrderCheckHooks;null!==T&&xc(b,T,C)}else{const T=_.preOrderHooks;null!==T&&Ls(b,T,0,C)}qt(C)}function pl(_,b=null,C=null,y){const x=Ry(_,b,C,y);return x.resolveInjectorInitializers(),x}function Ry(_,b=null,C=null,y,x=new Set){const T=[C||Ne,Hm(_)];return y=y||("object"==typeof _?void 0:ee(_)),new Pm(T,b||Wc(),y||null,x)}let ca=(()=>{class _{static create(C,y){if(Array.isArray(C))return pl({name:""},y,C,"");{const x=C.name??"";return pl({name:x},C.parent,C.providers,x)}}}return _.THROW_IF_NOT_FOUND=ia,_.NULL=new Dm,_.\u0275prov=Et({token:_,providedIn:"any",factory:()=>ti(nl)}),_.__NG_ELEMENT_ID__=-1,_})();function kr(_,b=Ze.Default){const C=ge();return null===C?ti(_,b):Io(Vt(),C,re(_),b)}function _g(){throw new Error("invalid")}function ml(_,b){return _<<17|b<<2}function Li(_){return _>>17&32767}function ch(_){return 2|_}function da(_){return(131068&_)>>2}function wg(_,b){return-131069&_|b<<2}function dh(_){return 1|_}function Sg(_,b){const C=_.contentQueries;if(null!==C)for(let y=0;y22&&Wa(_,b,22,!1),C(y,x)}finally{qt(T)}}function ad(_,b,C){if(Mr(b)){const x=b.directiveEnd;for(let T=b.directiveStart;T0;){const C=_[--b];if("number"==typeof C&&C<0)return C}return 0})(D)!=H&&D.push(H),D.push(y,x,S)}}function Ig(_,b){null!==_.hostBindings&&_.hostBindings(1,b)}function iv(_,b){b.flags|=2,(_.components||(_.components=[])).push(b.index)}function rv(_,b,C){if(C){if(b.exportAs)for(let y=0;y0&&yh(C)}}function yh(_){for(let y=Qm(_);null!==y;y=Ym(y))for(let x=10;x0&&yh(T)}const C=_[1].components;if(null!==C)for(let y=0;y0&&yh(x)}}function Bg(_,b){const C=Ki(b,_),y=C[1];(function Al(_,b){for(let C=b.length;C<_.blueprint.length;C++)b.push(_.blueprint[C])})(y,C),Qa(y,C,C[8])}function ld(_,b){return _[13]?_[14][4]=b:_[13]=b,_[14]=b,b}function cd(_){for(;_;){_[2]|=32;const b=Kc(_);if(hc(_)&&!b)return _;_=b}return null}function Lg(_){!function vh(_){for(let b=0;b<_.components.length;b++){const C=_.components[b],y=$m(C);if(null!==y){const x=y[1];Mg(x,y,x.template,C)}}}(_[8])}function dd(_,b,C){Ha(0),b(_,C)}const CS=(()=>Promise.resolve(null))();function Fg(_){return _[7]||(_[7]=[])}function Ug(_){return _.cleanup||(_.cleanup=[])}function xl(_,b,C){return(null===_||qi(_))&&(C=function ew(_){for(;Array.isArray(_);){if("object"==typeof _[1])return _;_=_[0]}return null}(C[b.index])),C[11]}function Ng(_,b){const C=_[9],y=C?C.get(Ga,null):null;y&&y.handleError(b)}function xh(_,b,C,y,x){for(let T=0;T-1&&(Zm(b,y),Js(C,y))}this._attachedToViewContainer=!1}py(this._lView[1],this._lView)}onDestroy(b){Rg(this._lView[1],this._lView,null,b)}markForCheck(){cd(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Og(_,b,C){const y=b[10];y.begin&&y.begin();try{vl(_,b,_.template,C)}catch(x){throw Ng(b,x),x}finally{y.end&&y.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function NT(_,b){Zc(_,b,b[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(b){if(this._attachedToViewContainer)throw new ae(902,!1);this._appRef=b}}class qg extends Sl{constructor(b){super(b),this._view=b}detectChanges(){Lg(this._view)}checkNoChanges(){}get context(){return null}}class es extends Jo{constructor(b){super(),this.ngModule=b}resolveComponentFactory(b){const C=Tt(b);return new Ml(C,this.ngModule)}}function zg(_){const b=[];for(let C in _)_.hasOwnProperty(C)&&b.push({propName:_[C],templateName:C});return b}class El{constructor(b,C){this.injector=b,this.parentInjector=C}get(b,C,y){const x=this.injector.get(b,ol,y);return x!==ol||C===ol?x:this.parentInjector.get(b,C,y)}}class Ml extends Qw{constructor(b,C){super(),this.componentDef=b,this.ngModule=C,this.componentType=b.type,this.selector=function th(_){return _.map(Ey).join(",")}(b.selectors),this.ngContentSelectors=b.ngContentSelectors?b.ngContentSelectors:[],this.isBoundToModule=!!C}get inputs(){return zg(this.componentDef.inputs)}get outputs(){return zg(this.componentDef.outputs)}create(b,C,y,x){let T=(x=x||this.ngModule)instanceof za?x:x?.injector;T&&null!==this.componentDef.getStandaloneInjector&&(T=this.componentDef.getStandaloneInjector(T)||T);const S=T?new El(b,T):b,D=S.get(sa,null);if(null===D)throw new ae(407,!1);const H=S.get(Nu,null),k=D.createRenderer(null,this.componentDef),V=this.componentDef.selectors[0][0]||"div",U=y?function En(_,b,C){return _.selectRootElement(b,C===$.ShadowDom)}(k,y,this.componentDef.encapsulation):Km(D.createRenderer(null,this.componentDef),V,function Gg(_){const b=_.toLowerCase();return"svg"===b?"svg":"math"===b?"math":null}(V)),te=this.componentDef.onPush?288:272,se=function uv(_,b){return{components:[],scheduler:_||HT,clean:CS,playerHandler:b||null,flags:0}}(),Ce=_h(0,null,null,1,0,null,null,null,null,null),Se=ua(null,Ce,se,te,null,null,D,k,H,S,null);let Ve,Ue;su(Se);try{const et=function dv(_,b,C,y,x,T){const S=C[1];C[22]=_;const H=Xo(S,22,2,"#host",null),k=H.mergedAttrs=b.hostAttrs;null!==k&&(Th(H,k,!0),null!==_&&(Us(x,_,k),null!==H.classes&&Ku(x,_,H.classes),null!==H.styles&&Ty(x,_,H.styles)));const V=y.createRenderer(_,b),U=ua(C,gh(b),null,b.onPush?32:16,C[22],H,y,V,T||null,null,null);return S.firstCreatePass&&(fu(ea(H,C),S,b.type),iv(S,H),kg(H,C.length,1)),ld(C,U),C[22]=U}(U,this.componentDef,Se,D,k);if(U)if(y)Us(k,U,["ng-version",Qc.full]);else{const{attrs:ve,classes:Ye}=function hl(_){const b=[],C=[];let y=1,x=2;for(;y<_.length;){let T=_[y];if("string"==typeof T)2===x?""!==T&&b.push(T,_[++y]):8===x&&C.push(T);else{if(!ze(x))break;x=T}y++}return{attrs:b,classes:C}}(this.componentDef.selectors[0]);ve&&Us(k,U,ve),Ye&&Ye.length>0&&Ku(k,U,Ye.join(" "))}if(Ue=Cc(Ce,22),void 0!==C){const ve=Ue.projection=[];for(let Ye=0;Ye=0;y--){const x=_[y];x.hostVars=b+=x.hostVars,x.hostAttrs=Ho(x.hostAttrs,C=Ho(C,x.hostAttrs))}}(y)}function Mh(_){return _===ht?{}:_===Ne?[]:_}function Dl(_,b){const C=_.viewQuery;_.viewQuery=C?(y,x)=>{b(y,x),C(y,x)}:b}function Yg(_,b){const C=_.contentQueries;_.contentQueries=C?(y,x,T)=>{b(y,x,T),C(y,x,T)}:b}function mv(_,b){const C=_.hostBindings;_.hostBindings=C?(y,x)=>{b(y,x),C(y,x)}:b}let ud=null;function Za(){if(!ud){const _=de.Symbol;if(_&&_.iterator)ud=_.iterator;else{const b=Object.getOwnPropertyNames(Map.prototype);for(let C=0;CD(pi(_t[y.index])):y.index;let Ye=null;if(!D&&H&&(Ye=function s_(_,b,C,y){const x=_.cleanup;if(null!=x)for(let T=0;TH?D[H]:null}"string"==typeof S&&(T+=2)}return null}(_,b,x,y.index)),null!==Ye)(Ye.__ngLastListenerFn__||Ye).__ngNextListenerFn__=T,Ye.__ngLastListenerFn__=T,se=!1;else{T=kh(y,b,U,T,!1);const _t=C.listen(Ue,x,T);te.push(T,_t),V&&V.push(x,ve,et,et+1)}}else T=kh(y,b,U,T,!1);const Ce=y.outputs;let Se;if(se&&null!==Ce&&(Se=Ce[x])){const Ve=Se.length;if(Ve)for(let Ue=0;Ue0;)b=b[15],_--;return b}(_,ue.lFrame.contextLView))[8]}(_)}function Ev(_,b){let C=null;const y=function Xc(_){const b=_.attrs;if(null!=b){const C=b.indexOf(5);if(0==(1&C))return b[C+1]}return null}(_);for(let x=0;x=0}const Ie={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function mt(_){return _.substring(Ie.key,Ie.keyEnd)}function Rv(_,b){const C=Ie.textEnd;return C===b?-1:(b=Ie.keyEnd=function m_(_,b,C){for(;b32;)b++;return b}(_,Ie.key=b,C),Vl(_,b,C))}function Vl(_,b,C){for(;b=0;C=Rv(b,C))nn(_,mt(b),!0)}function Wn(_,b,C,y){const x=ge(),T=$e(),S=rr(2);T.firstUpdatePass&&C_(T,_,S,y),b!==pt&&Wi(x,S,b)&&Lv(T,T.data[en()],x,x[11],_,x[S+1]=function Fv(_,b){return null==_||("string"==typeof b?_+=b:"object"==typeof _&&(_=ee(gn(_)))),_}(b,C),y,S)}function $n(_,b,C,y){const x=$e(),T=rr(2);x.firstUpdatePass&&C_(x,null,T,y);const S=ge();if(C!==pt&&Wi(S,T,C)){const D=x.data[en()];if(Gh(D,y)&&!b_(x,T)){let H=y?D.classesWithoutHost:D.stylesWithoutHost;null!==H&&(C=W(H,C||"")),i_(x,D,S,C,y)}else!function wd(_,b,C,y,x,T,S,D){x===pt&&(x=Ne);let H=0,k=0,V=0=_.expandoStartIndex}function C_(_,b,C,y){const x=_.data;if(null===x[C+1]){const T=x[en()],S=b_(_,C);Gh(T,y)&&null===b&&!S&&(b=!1),b=function kv(_,b,C,y){const x=ou(_);let T=y?b.residualClasses:b.residualStyles;if(null===x)0===(y?b.classBindings:b.styleBindings)&&(C=ls(C=Nh(null,_,b,C,y),b.attrs,y),T=null);else{const S=b.directiveStylingLast;if(-1===S||_[S]!==x)if(C=Nh(x,_,b,C,y),null===T){let H=function Vv(_,b,C){const y=C?b.classBindings:b.styleBindings;if(0!==da(y))return _[Li(y)]}(_,b,y);void 0!==H&&Array.isArray(H)&&(H=Nh(null,_,b,H[1],y),H=ls(H,b.attrs,y),function Bv(_,b,C,y){_[Li(C?b.classBindings:b.styleBindings)]=y}(_,b,y,H))}else T=function Ov(_,b,C){let y;const x=b.directiveEnd;for(let T=1+b.directiveStylingLast;T0)&&(k=!0)}else V=C;if(x)if(0!==H){const te=Li(_[D+1]);_[y+1]=ml(te,D),0!==te&&(_[te+1]=wg(_[te+1],y)),_[D+1]=function nS(_,b){return 131071&_|b<<17}(_[D+1],y)}else _[y+1]=ml(D,0),0!==D&&(_[D+1]=wg(_[D+1],y)),D=y;else _[y+1]=ml(H,0),0===D?D=y:_[H+1]=wg(_[H+1],y),H=y;k&&(_[y+1]=ch(_[y+1])),Oh(_,V,y,!0),Oh(_,V,y,!1),function vt(_,b,C,y,x){const T=x?_.residualClasses:_.residualStyles;null!=T&&"string"==typeof b&&ta(T,b)>=0&&(C[y+1]=dh(C[y+1]))}(b,V,_,y,T),S=ml(D,H),T?b.classBindings=S:b.styleBindings=S}(x,T,b,C,S,y)}}function Nh(_,b,C,y,x){let T=null;const S=C.directiveEnd;let D=C.directiveStylingLast;for(-1===D?D=C.directiveStart:D++;D0;){const H=_[x],k=Array.isArray(H),V=k?H[1]:H,U=null===V;let te=C[x+1];te===pt&&(te=U?Ne:void 0);let se=U?Zs(te,y):V===y?te:void 0;if(k&&!zh(se)&&(se=Zs(H,y)),zh(se)&&(D=se,S))return D;const Ce=_[x+1];x=S?Li(Ce):da(Ce)}if(null!==b){let H=T?b.residualClasses:b.residualStyles;null!=H&&(D=Zs(H,y))}return D}function zh(_){return void 0!==_}function Gh(_,b){return 0!=(_.flags&(b?16:32))}function y_(_,b=""){const C=ge(),y=$e(),x=_+22,T=y.firstCreatePass?Xo(y,x,1,b,null):y.data[x],S=C[x]=function Jm(_,b){return _.createText(b)}(C[11],b);Yu(y,C,S,T),Oi(T,!1)}function cs(_){return yd("",_,""),cs}function yd(_,b,C){const y=ge(),x=Br(y,_,b,C);return x!==pt&&zn(y,en(),x),yd}function Wh(_,b,C,y,x){const T=ge(),S=function pa(_,b,C,y,x,T){const D=ns(_,Rt(),C,x);return rr(2),D?b+fe(C)+y+fe(x)+T:pt}(T,_,b,C,y,x);return S!==pt&&zn(T,en(),S),Wh}function v_(_,b,C,y,x,T,S){const D=ge(),H=function rs(_,b,C,y,x,T,S,D){const k=Dh(_,Rt(),C,x,S);return rr(3),k?b+fe(C)+y+fe(x)+T+fe(S)+D:pt}(D,_,b,C,y,x,T,S);return H!==pt&&zn(D,en(),H),v_}function x_(_,b,C,y,x,T,S,D,H,k,V){const U=ge(),te=Hl(U,_,b,C,y,x,T,S,D,H,k,V);return te!==pt&&zn(U,en(),te),x_}function E_(_,b,C){$n(nn,gr,Br(ge(),_,b,C),!0)}function Zh(_,b,C){const y=ge();return Wi(y,Do(),b)&&Mn($e(),St(),y,_,b,y[11],C,!0),Zh}function H_(_,b,C){const y=ge();if(Wi(y,Do(),b)){const T=$e(),S=St();Mn(T,S,y,_,b,xl(ou(T.data),S,y),C,!0)}return H_}const ds=void 0;var BS=["en",[["a","p"],["AM","PM"],ds],[["AM","PM"],ds,ds],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ds,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ds,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ds,"{1} 'at' {0}",ds],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function VS(_){const C=Math.floor(Math.abs(_)),y=_.toString().replace(/^[^.]*\.?/,"").length;return 1===C&&0===y?1:5}];let Ol={};function us(_){const b=function Kv(_){return _.toLowerCase().replace(/_/g,"-")}(_);let C=Yv(b);if(C)return C;const y=b.split("-")[0];if(C=Yv(y),C)return C;if("en"===y)return BS;throw new ae(701,!1)}function R_(_){return us(_)[Je.PluralCase]}function Yv(_){return _ in Ol||(Ol[_]=de.ng&&de.ng.common&&de.ng.common.locales&&de.ng.common.locales[_]),Ol[_]}var Je=(()=>((Je=Je||{})[Je.LocaleId=0]="LocaleId",Je[Je.DayPeriodsFormat=1]="DayPeriodsFormat",Je[Je.DayPeriodsStandalone=2]="DayPeriodsStandalone",Je[Je.DaysFormat=3]="DaysFormat",Je[Je.DaysStandalone=4]="DaysStandalone",Je[Je.MonthsFormat=5]="MonthsFormat",Je[Je.MonthsStandalone=6]="MonthsStandalone",Je[Je.Eras=7]="Eras",Je[Je.FirstDayOfWeek=8]="FirstDayOfWeek",Je[Je.WeekendRange=9]="WeekendRange",Je[Je.DateFormat=10]="DateFormat",Je[Je.TimeFormat=11]="TimeFormat",Je[Je.DateTimeFormat=12]="DateTimeFormat",Je[Je.NumberSymbols=13]="NumberSymbols",Je[Je.NumberFormats=14]="NumberFormats",Je[Je.CurrencyCode=15]="CurrencyCode",Je[Je.CurrencySymbol=16]="CurrencySymbol",Je[Je.CurrencyName=17]="CurrencyName",Je[Je.Currencies=18]="Currencies",Je[Je.Directionality=19]="Directionality",Je[Je.PluralCase=20]="PluralCase",Je[Je.ExtraData=21]="ExtraData",Je))();const hs="en-US";let k_=hs;function rp(_,b,C,y,x){if(_=re(_),Array.isArray(_))for(let T=0;T<_.length;T++)rp(_[T],b,C,y,x);else{const T=$e(),S=ge();let D=oa(_)?_:re(_.provide),H=km(_);const k=Vt(),V=1048575&k.providerIndexes,U=k.directiveStart,te=k.providerIndexes>>20;if(oa(_)||!_.multi){const se=new Rr(H,x,kr),Ce=op(D,b,x?V:V+te,U);-1===Ce?(fu(ea(k,S),T,D),ap(T,_,b.length),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(se),S.push(se)):(C[Ce]=se,S[Ce]=se)}else{const se=op(D,b,V+te,U),Ce=op(D,b,V,V+te),Se=se>=0&&C[se],Ve=Ce>=0&&C[Ce];if(x&&!Ve||!x&&!Se){fu(ea(k,S),T,D);const Ue=function wA(_,b,C,y,x){const T=new Rr(_,C,kr);return T.multi=[],T.index=b,T.componentProviders=0,ob(T,x,y&&!C),T}(x?sp:sb,C.length,x,y,H);!x&&Ve&&(C[Ce].providerFactory=Ue),ap(T,_,b.length,0),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(Ue),S.push(Ue)}else ap(T,_,se>-1?se:Ce,ob(C[x?Ce:se],H,!x&&y));!x&&y&&Ve&&C[Ce].componentProviders++}}}function ap(_,b,C,y){const x=oa(b),T=function qw(_){return!!_.useClass}(b);if(x||T){const H=(T?re(b.useClass):b).prototype.ngOnDestroy;if(H){const k=_.destroyHooks||(_.destroyHooks=[]);if(!x&&b.multi){const V=k.indexOf(C);-1===V?k.push(C,[y,H]):k[V+1].push(y,H)}else k.push(C,H)}}}function ob(_,b,C){return C&&_.componentProviders++,_.multi.push(b)-1}function op(_,b,C,y){for(let x=C;x{C.providersResolver=(y,x)=>function CA(_,b,C){const y=$e();if(y.firstCreatePass){const x=qi(_);rp(C,y.data,y.blueprint,x,!0),rp(b,y.data,y.blueprint,x,!1)}}(y,x?x(_):_,b)}}class gs{}class _s{}function yA(_,b){return new bn(_,b??null)}class bn extends gs{constructor(b,C){super(),this._parent=C,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new es(this);const y=Qi(b);this._bootstrapComponents=la(y.bootstrap),this._r3Injector=Ry(b,C,[{provide:gs,useValue:this},{provide:Jo,useValue:this.componentFactoryResolver}],ee(b),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(b)}get injector(){return this._r3Injector}destroy(){const b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(C=>C()),this.destroyCbs=null}onDestroy(b){this.destroyCbs.push(b)}}class cp extends _s{constructor(b){super(),this.moduleType=b}create(b){return new bn(this.moduleType,b)}}class ao extends gs{constructor(b,C,y){super(),this.componentFactoryResolver=new es(this),this.instance=null;const x=new Pm([...b,{provide:gs,useValue:this},{provide:Jo,useValue:this.componentFactoryResolver}],C||Wc(),y,new Set(["environment"]));this.injector=x,x.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(b){this.injector.onDestroy(b)}}function dp(_,b,C=null){return new ao(_,b,C).injector}function AA(_,b,C){const y=ei()+_,x=ge();return x[y]===pt?Gi(x,y,C?b.call(C):b()):function hd(_,b){return _[b]}(x,y)}function xA(_,b,C,y){return MA(ge(),ei(),_,b,C,y)}function TA(_,b,C,y,x){return DA(ge(),ei(),_,b,C,y,x)}function Ed(_,b){const C=_[b];return C===pt?void 0:C}function MA(_,b,C,y,x,T){const S=b+C;return Wi(_,S,x)?Gi(_,S+1,T?y.call(T,x):y(x)):Ed(_,S+1)}function DA(_,b,C,y,x,T,S){const D=b+C;return ns(_,D,x,T)?Gi(_,D+2,S?y.call(S,x,T):y(x,T)):Ed(_,D+2)}function RA(_,b){const C=$e();let y;const x=_+22;C.firstCreatePass?(y=function lE(_,b){if(b)for(let C=b.length-1;C>=0;C--){const y=b[C];if(_===y.name)return y}}(b,C.pipeRegistry),C.data[x]=y,y.onDestroy&&(C.destroyHooks||(C.destroyHooks=[])).push(x,y.onDestroy)):y=C.data[x];const T=y.factory||(y.factory=Hr(y.type)),S=ki(kr);try{const D=Va(!1),H=T();return Va(D),function xv(_,b,C,y){C>=_.data.length&&(_.data[C]=null,_.blueprint[C]=null),b[C]=y}(C,ge(),x,H),H}finally{ki(S)}}function pp(_,b,C){const y=_+22,x=ge(),T=Eo(x,y);return Nl(x,y)?MA(x,ei(),b,T.transform,C,T):T.transform(C)}function PA(_,b,C,y){const x=_+22,T=ge(),S=Eo(T,x);return Nl(T,x)?DA(T,ei(),b,S.transform,C,y,S):S.transform(C,y)}function IA(_,b,C,y,x){const T=_+22,S=ge(),D=Eo(S,T);return Nl(S,T)?function HA(_,b,C,y,x,T,S,D){const H=b+C;return Dh(_,H,x,T,S)?Gi(_,H+3,D?y.call(D,x,T,S):y(x,T,S)):Ed(_,H+3)}(S,ei(),b,D.transform,C,y,x,D):D.transform(C,y,x)}function Nl(_,b){return _[1].data[b].pure}function on(_){return b=>{setTimeout(_,void 0,b)}}const zr=class dE extends M.x{constructor(b=!1){super(),this.__isAsync=b}emit(b){super.next(b)}subscribe(b,C,y){let x=b,T=C||(()=>null),S=y;if(b&&"object"==typeof b){const H=b;x=H.next?.bind(H),T=H.error?.bind(H),S=H.complete?.bind(H)}this.__isAsync&&(T=on(T),x&&(x=on(x)),S&&(S=on(S)));const D=super.subscribe({next:x,error:T,complete:S});return b instanceof h.w0&&b.add(D),D}};function uE(){return this._results[Za()]()}class fp{constructor(b=!1){this._emitDistinctChangesOnly=b,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const C=Za(),y=fp.prototype;y[C]||(y[C]=uE)}get changes(){return this._changes||(this._changes=new zr)}get(b){return this._results[b]}map(b){return this._results.map(b)}filter(b){return this._results.filter(b)}find(b){return this._results.find(b)}reduce(b,C){return this._results.reduce(b,C)}forEach(b){this._results.forEach(b)}some(b){return this._results.some(b)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(b,C){const y=this;y.dirty=!1;const x=si(b);(this._changesDetected=!function _u(_,b,C){if(_.length!==b.length)return!1;for(let y=0;y<_.length;y++){let x=_[y],T=b[y];if(C&&(x=C(x),T=C(T)),T!==x)return!1}return!0}(y._results,x,C))&&(y._results=x,y.length=x.length,y.last=x[this.length-1],y.first=x[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let Md=(()=>{class _{}return _.__NG_ELEMENT_ID__=BA,_})();const hE=Md,pE=class extends hE{constructor(b,C,y){super(),this._declarationLView=b,this._declarationTContainer=C,this.elementRef=y}createEmbeddedView(b,C){const y=this._declarationTContainer.tViews,x=ua(this._declarationLView,y,b,16,null,y.declTNode,null,null,null,null,C||null);x[17]=this._declarationLView[this._declarationTContainer.index];const S=this._declarationLView[19];return null!==S&&(x[19]=S.createEmbeddedView(y)),Qa(y,x,b),new Sl(x)}};function BA(){return mp(Vt(),ge())}function mp(_,b){return 4&_.type?new pE(b,_,dr(_,b)):null}let gp=(()=>{class _{}return _.__NG_ELEMENT_ID__=fE,_})();function fE(){return jA(Vt(),ge())}const mE=gp,OA=class extends mE{constructor(b,C,y){super(),this._lContainer=b,this._hostTNode=C,this._hostLView=y}get element(){return dr(this._hostTNode,this._hostLView)}get injector(){return new Oo(this._hostTNode,this._hostLView)}get parentInjector(){const b=Po(this._hostTNode,this._hostLView);if(du(b)){const C=Ro(b,this._hostLView),y=ka(b);return new Oo(C[1].data[y+8],C)}return new Oo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(b){const C=LA(this._lContainer);return null!==C&&C[b]||null}get length(){return this._lContainer.length-10}createEmbeddedView(b,C,y){let x,T;"number"==typeof y?x=y:null!=y&&(x=y.index,T=y.injector);const S=b.createEmbeddedView(C||{},T);return this.insert(S,x),S}createComponent(b,C,y,x,T){const S=b&&!function jo(_){return"function"==typeof _}(b);let D;if(S)D=C;else{const U=C||{};D=U.index,y=U.injector,x=U.projectableNodes,T=U.environmentInjector||U.ngModuleRef}const H=S?b:new Ml(Tt(b)),k=y||this.parentInjector;if(!T&&null==H.ngModule){const te=(S?k:this.parentInjector).get(za,null);te&&(T=te)}const V=H.create(k,x,void 0,T);return this.insert(V.hostView,D),V}insert(b,C){const y=b._lView,x=y[1];if(function I(_){return Ji(_[3])}(y)){const V=this.indexOf(b);if(-1!==V)this.detach(V);else{const U=y[3],te=new OA(U,U[6],U[3]);te.detach(te.indexOf(b))}}const T=this._adjustIndex(C),S=this._lContainer;!function zT(_,b,C,y){const x=10+y,T=C.length;y>0&&(C[x-1][4]=b),y0)y.push(S[D/2]);else{const k=T[D+1],V=b[-H];for(let U=10;U{class _{constructor(C){this.appInits=C,this.resolve=Yl,this.reject=Yl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,x)=>{this.resolve=y,this.reject=x})}runInitializers(){if(this.initialized)return;const C=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let x=0;x{T.subscribe({complete:D,error:H})});C.push(S)}}Promise.all(C).then(()=>{y()}).catch(x=>{this.reject(x)}),0===C.length&&y(),this.initialized=!0}}return _.\u0275fac=function(C){return new(C||_)(ti(Fi,8))},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const Pp=new Bt("AppId",{providedIn:"root",factory:function o0(){return`${ws()}${ws()}${ws()}`}});function ws(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Lb=new Bt("Platform Initializer"),Ip=new Bt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Jl=new Bt("appBootstrapListener"),kp=new Bt("AnimationModuleType");let s0=(()=>{class _{log(C){console.log(C)}warn(C){console.warn(C)}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();const Vp=new Bt("LocaleId",{providedIn:"root",factory:()=>im(Vp,Ze.Optional|Ze.SkipSelf)||function vE(){return typeof $localize<"u"&&$localize.locale||hs}()}),AE=new Bt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class xE{constructor(b,C){this.ngModuleFactory=b,this.componentFactories=C}}let l0=(()=>{class _{compileModuleSync(C){return new cp(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const y=this.compileModuleSync(C),T=la(Qi(C).declarations).reduce((S,D)=>{const H=Tt(D);return H&&S.push(new Ml(H)),S},[]);return new xE(y,T)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const ys=(()=>Promise.resolve(0))();function lo(_){typeof Zone>"u"?ys.then(()=>{_&&_.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",_)}class cn{constructor({enableLongStackTrace:b=!1,shouldCoalesceEventChangeDetection:C=!1,shouldCoalesceRunChangeDetection:y=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new zr(!1),this.onMicrotaskEmpty=new zr(!1),this.onStable=new zr(!1),this.onError=new zr(!1),typeof Zone>"u")throw new ae(908,!1);Zone.assertZonePatched();const x=this;if(x._nesting=0,x._outer=x._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const T=Zone.AsyncStackTaggingZoneSpec;x._inner=x._inner.fork(new T("Angular"))}Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),b&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!y&&C,x.shouldCoalesceRunChangeDetection=y,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function Bp(){let _=de.requestAnimationFrame,b=de.cancelAnimationFrame;if(typeof Zone<"u"&&_&&b){const C=_[Zone.__symbol__("OriginalDelegate")];C&&(_=C);const y=b[Zone.__symbol__("OriginalDelegate")];y&&(b=y)}return{nativeRequestAnimationFrame:_,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function Ub(_){const b=()=>{!function kd(_){_.isCheckStableRunning||-1!==_.lastRequestAnimationFrameId||(_.lastRequestAnimationFrameId=_.nativeRequestAnimationFrame.call(de,()=>{_.fakeTopEventTask||(_.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{_.lastRequestAnimationFrameId=-1,Vd(_),_.isCheckStableRunning=!0,Id(_),_.isCheckStableRunning=!1},void 0,()=>{},()=>{})),_.fakeTopEventTask.invoke()}),Vd(_))}(_)};_._inner=_._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(C,y,x,T,S,D)=>{try{return Lp(_),C.invokeTask(x,T,S,D)}finally{(_.shouldCoalesceEventChangeDetection&&"eventTask"===T.type||_.shouldCoalesceRunChangeDetection)&&b(),Bd(_)}},onInvoke:(C,y,x,T,S,D,H)=>{try{return Lp(_),C.invoke(x,T,S,D,H)}finally{_.shouldCoalesceRunChangeDetection&&b(),Bd(_)}},onHasTask:(C,y,x,T)=>{C.hasTask(x,T),y===x&&("microTask"==T.change?(_._hasPendingMicrotasks=T.microTask,Vd(_),Id(_)):"macroTask"==T.change&&(_.hasPendingMacrotasks=T.macroTask))},onHandleError:(C,y,x,T)=>(C.handleError(x,T),_.runOutsideAngular(()=>_.onError.emit(T)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!cn.isInAngularZone())throw new ae(909,!1)}static assertNotInAngularZone(){if(cn.isInAngularZone())throw new ae(909,!1)}run(b,C,y){return this._inner.run(b,C,y)}runTask(b,C,y,x){const T=this._inner,S=T.scheduleEventTask("NgZoneEvent: "+x,b,Op,Yl,Yl);try{return T.runTask(S,C,y)}finally{T.cancelTask(S)}}runGuarded(b,C,y){return this._inner.runGuarded(b,C,y)}runOutsideAngular(b){return this._outer.run(b)}}const Op={};function Id(_){if(0==_._nesting&&!_.hasPendingMicrotasks&&!_.isStable)try{_._nesting++,_.onMicrotaskEmpty.emit(null)}finally{if(_._nesting--,!_.hasPendingMicrotasks)try{_.runOutsideAngular(()=>_.onStable.emit(null))}finally{_.isStable=!0}}}function Vd(_){_.hasPendingMicrotasks=!!(_._hasPendingMicrotasks||(_.shouldCoalesceEventChangeDetection||_.shouldCoalesceRunChangeDetection)&&-1!==_.lastRequestAnimationFrameId)}function Lp(_){_._nesting++,_.isStable&&(_.isStable=!1,_.onUnstable.emit(null))}function Bd(_){_._nesting--,Id(_)}class SE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new zr,this.onMicrotaskEmpty=new zr,this.onStable=new zr,this.onError=new zr}run(b,C,y){return b.apply(C,y)}runGuarded(b,C,y){return b.apply(C,y)}runOutsideAngular(b){return b()}runTask(b,C,y,x){return b.apply(C,y)}}const d0=new Bt(""),Nb=new Bt("");let vs,EE=(()=>{class _{constructor(C,y,x){this._ngZone=C,this.registry=y,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,vs||(function Zl(_){vs=_}(x),x.addToWindow(y)),this._watchAngularEvents(),C.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{cn.assertNotInAngularZone(),lo(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())lo(()=>{for(;0!==this._callbacks.length;){let C=this._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb(this._didWork)}this._didWork=!1});else{let C=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(C)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,y,x){let T=-1;y&&y>0&&(T=setTimeout(()=>{this._callbacks=this._callbacks.filter(S=>S.timeoutId!==T),C(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:C,timeoutId:T,updateCb:x})}whenStable(C,y,x){if(x&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(C,y,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,y,x){return[]}}return _.\u0275fac=function(C){return new(C||_)(ti(cn),ti(Kl),ti(Nb))},_.\u0275prov=Et({token:_,factory:_.\u0275fac}),_})(),Kl=(()=>{class _{constructor(){this._applications=new Map}registerApplication(C,y){this._applications.set(C,y)}unregisterApplication(C){this._applications.delete(C)}unregisterAllApplications(){this._applications.clear()}getTestability(C){return this._applications.get(C)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(C,y=!0){return vs?.findTestabilityInTree(this,C,y)??null}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})(),Yn=null;const qb=new Bt("AllowMultipleToken"),Xl=new Bt("PlatformDestroyListeners");class h0{constructor(b,C){this.name=b,this.token=C}}function jp(_,b,C=[]){const y=`Platform: ${b}`,x=new Bt(y);return(T=[])=>{let S=Ld();if(!S||S.injector.get(qb,!1)){const D=[...C,...T,{provide:x,useValue:!0}];_?_(D):function Gb(_){if(Yn&&!Yn.get(qb,!1))throw new ae(400,!1);Yn=_;const b=_.get(jd);(function f0(_){const b=_.get(Lb,null);b&&b.forEach(C=>C())})(_)}(function Od(_=[],b){return ca.create({name:b,providers:[{provide:Bu,useValue:"platform"},{provide:Xl,useValue:new Set([()=>Yn=null])},..._]})}(D,y))}return function HE(_){const b=Ld();if(!b)throw new ae(401,!1);return b}()}}function Ld(){return Yn?.get(jd)??null}let jd=(()=>{class _{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,y){const x=function PE(_,b){let C;return C="noop"===_?new SE:("zone.js"===_?void 0:_)||new cn(b),C}(y?.ngZone,function Wb(_){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!_||!_.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!_||!_.ngZoneRunCoalescing)||!1}}(y)),T=[{provide:cn,useValue:x}];return x.run(()=>{const S=ca.create({providers:T,parent:this.injector,name:C.moduleType.name}),D=C.create(S),H=D.injector.get(Ga,null);if(!H)throw new ae(402,!1);return x.runOutsideAngular(()=>{const k=x.onError.subscribe({next:V=>{H.handleError(V)}});D.onDestroy(()=>{ec(this._modules,D),k.unsubscribe()})}),function $b(_,b,C){try{const y=C();return _d(y)?y.catch(x=>{throw b.runOutsideAngular(()=>_.handleError(x)),x}):y}catch(y){throw b.runOutsideAngular(()=>_.handleError(y)),y}}(H,x,()=>{const k=D.injector.get(wn);return k.runInitializers(),k.donePromise.then(()=>(function V_(_){kt(_,"Expected localeId to be defined"),"string"==typeof _&&(k_=_.toLowerCase().replace(/_/g,"-"))}(D.injector.get(Vp,hs)||hs),this._moduleDoBootstrap(D),D))})})}bootstrapModule(C,y=[]){const x=As({},y);return function u0(_,b,C){const y=new cp(C);return Promise.resolve(y)}(0,0,C).then(T=>this.bootstrapModuleFactory(T,x))}_moduleDoBootstrap(C){const y=C.injector.get(wa);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(x=>y.bootstrap(x));else{if(!C.instance.ngDoBootstrap)throw new ae(403,!1);C.instance.ngDoBootstrap(y)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ae(404,!1);this._modules.slice().forEach(y=>y.destroy()),this._destroyListeners.forEach(y=>y());const C=this._injector.get(Xl,null);C&&(C.forEach(y=>y()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return _.\u0275fac=function(C){return new(C||_)(ti(ca))},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();function As(_,b){return Array.isArray(b)?b.reduce(As,_):{..._,...b}}let wa=(()=>{class _{constructor(C,y,x){this._zone=C,this._injector=y,this._exceptionHandler=x,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const T=new L.y(D=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{D.next(this._stable),D.complete()})}),S=new L.y(D=>{let H;this._zone.runOutsideAngular(()=>{H=this._zone.onStable.subscribe(()=>{cn.assertNotInAngularZone(),lo(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,D.next(!0))})})});const k=this._zone.onUnstable.subscribe(()=>{cn.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{D.next(!1)}))});return()=>{H.unsubscribe(),k.unsubscribe()}});this.isStable=(0,F.T)(T,S.pipe((0,B.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(C,y){const x=C instanceof Qw;if(!this._injector.get(wn).done)throw!x&&Wl(C),new ae(405,false);let S;S=x?C:this._injector.get(Jo).resolveComponentFactory(C),this.componentTypes.push(S.componentType);const D=function zb(_){return _.isBoundToModule}(S)?void 0:this._injector.get(gs),k=S.create(ca.NULL,[],y||S.selector,D),V=k.location.nativeElement,U=k.injector.get(d0,null);return U?.registerApplication(V),k.onDestroy(()=>{this.detachView(k.hostView),ec(this.components,k),U?.unregisterApplication(V)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ae(101,!1);try{this._runningTick=!0;for(let C of this._views)C.detectChanges()}catch(C){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(C))}finally{this._runningTick=!1}}attachView(C){const y=C;this._views.push(y),y.attachToAppRef(this)}detachView(C){const y=C;ec(this._views,y),y.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C),this._injector.get(Jl,[]).concat(this._bootstrapListeners).forEach(x=>x(C))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(C=>C()),this._views.slice().forEach(C=>C.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(C){return this._destroyListeners.push(C),()=>ec(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new ae(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return _.\u0275fac=function(C){return new(C||_)(ti(cn),ti(za),ti(Ga))},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function ec(_,b){const C=_.indexOf(b);C>-1&&_.splice(C,1)}let Qb=!0;function IE(){Qb=!1}let _0=(()=>{class _{}return _.__NG_ELEMENT_ID__=Jb,_})();function Jb(_){return function b0(_,b,C){if(Dr(_)&&!C){const y=Ki(_.index,b);return new Sl(y,y)}return 47&_.type?new Sl(b[16],b):null}(Vt(),ge(),16==(16&_))}class eC{constructor(){}supports(b){return is(b)}create(b){return new x0(b)}}const tC=(_,b)=>b;class x0{constructor(b){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=b||tC}forEachItem(b){let C;for(C=this._itHead;null!==C;C=C._next)b(C)}forEachOperation(b){let C=this._itHead,y=this._removalsHead,x=0,T=null;for(;C||y;){const S=!y||C&&C.currentIndex{S=this._trackByFn(x,D),null!==C&&Object.is(C.trackById,S)?(y&&(C=this._verifyReinsertion(C,D,S,x)),Object.is(C.item,D)||this._addIdentityChange(C,D)):(C=this._mismatch(C,D,S,x),y=!0),C=C._next,x++}),this.length=x;return this._truncate(C),this.collection=b,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let b;for(b=this._previousItHead=this._itHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._additionsHead;null!==b;b=b._nextAdded)b.previousIndex=b.currentIndex;for(this._additionsHead=this._additionsTail=null,b=this._movesHead;null!==b;b=b._nextMoved)b.previousIndex=b.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(b,C,y,x){let T;return null===b?T=this._itTail:(T=b._prev,this._remove(b)),null!==(b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._reinsertAfter(b,T,x)):null!==(b=null===this._linkedRecords?null:this._linkedRecords.get(y,x))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._moveAfter(b,T,x)):b=this._addAfter(new iC(C,y),T,x),b}_verifyReinsertion(b,C,y,x){let T=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==T?b=this._reinsertAfter(T,b._prev,x):b.currentIndex!=x&&(b.currentIndex=x,this._addToMoves(b,x)),b}_truncate(b){for(;null!==b;){const C=b._next;this._addToRemovals(this._unlink(b)),b=C}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(b,C,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(b);const x=b._prevRemoved,T=b._nextRemoved;return null===x?this._removalsHead=T:x._nextRemoved=T,null===T?this._removalsTail=x:T._prevRemoved=x,this._insertAfter(b,C,y),this._addToMoves(b,y),b}_moveAfter(b,C,y){return this._unlink(b),this._insertAfter(b,C,y),this._addToMoves(b,y),b}_addAfter(b,C,y){return this._insertAfter(b,C,y),this._additionsTail=null===this._additionsTail?this._additionsHead=b:this._additionsTail._nextAdded=b,b}_insertAfter(b,C,y){const x=null===C?this._itHead:C._next;return b._next=x,b._prev=C,null===x?this._itTail=b:x._prev=b,null===C?this._itHead=b:C._next=b,null===this._linkedRecords&&(this._linkedRecords=new Ud),this._linkedRecords.put(b),b.currentIndex=y,b}_remove(b){return this._addToRemovals(this._unlink(b))}_unlink(b){null!==this._linkedRecords&&this._linkedRecords.remove(b);const C=b._prev,y=b._next;return null===C?this._itHead=y:C._next=y,null===y?this._itTail=C:y._prev=C,b}_addToMoves(b,C){return b.previousIndex===C||(this._movesTail=null===this._movesTail?this._movesHead=b:this._movesTail._nextMoved=b),b}_addToRemovals(b){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ud),this._unlinkedRecords.put(b),b.currentIndex=null,b._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=b,b._prevRemoved=null):(b._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=b),b}_addIdentityChange(b,C){return b.item=C,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=b:this._identityChangesTail._nextIdentityChange=b,b}}class iC{constructor(b,C){this.item=b,this.trackById=C,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class T0{constructor(){this._head=null,this._tail=null}add(b){null===this._head?(this._head=this._tail=b,b._nextDup=null,b._prevDup=null):(this._tail._nextDup=b,b._prevDup=this._tail,b._nextDup=null,this._tail=b)}get(b,C){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===C||C<=y.currentIndex)&&Object.is(y.trackById,b))return y;return null}remove(b){const C=b._prevDup,y=b._nextDup;return null===C?this._head=y:C._nextDup=y,null===y?this._tail=C:y._prevDup=C,null===this._head}}class Ud{constructor(){this.map=new Map}put(b){const C=b.trackById;let y=this.map.get(C);y||(y=new T0,this.map.set(C,y)),y.add(b)}get(b,C){const x=this.map.get(b);return x?x.get(b,C):null}remove(b){const C=b.trackById;return this.map.get(C).remove(b)&&this.map.delete(C),b}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function nC(_,b,C){const y=_.previousIndex;if(null===y)return y;let x=0;return C&&y{if(C&&C.key===x)this._maybeAddToChanges(C,y),this._appendAfter=C,C=C._next;else{const T=this._getOrCreateRecordForKey(x,y);C=this._insertBeforeOrAppend(C,T)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(let y=C;null!==y;y=y._nextRemoved)y===this._mapHead&&(this._mapHead=null),this._records.delete(y.key),y._nextRemoved=y._next,y.previousValue=y.currentValue,y.currentValue=null,y._prev=null,y._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(b,C){if(b){const y=b._prev;return C._next=b,C._prev=y,b._prev=C,y&&(y._next=C),b===this._mapHead&&(this._mapHead=C),this._appendAfter=b,b}return this._appendAfter?(this._appendAfter._next=C,C._prev=this._appendAfter):this._mapHead=C,this._appendAfter=C,null}_getOrCreateRecordForKey(b,C){if(this._records.has(b)){const x=this._records.get(b);this._maybeAddToChanges(x,C);const T=x._prev,S=x._next;return T&&(T._next=S),S&&(S._prev=T),x._next=null,x._prev=null,x}const y=new S0(b);return this._records.set(b,y),y.currentValue=C,this._addToAdditions(y),y}_reset(){if(this.isDirty){let b;for(this._previousMapHead=this._mapHead,b=this._previousMapHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._changesHead;null!==b;b=b._nextChanged)b.previousValue=b.currentValue;for(b=this._additionsHead;null!=b;b=b._nextAdded)b.previousValue=b.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(b,C){Object.is(C,b.currentValue)||(b.previousValue=b.currentValue,b.currentValue=C,this._addToChanges(b))}_addToAdditions(b){null===this._additionsHead?this._additionsHead=this._additionsTail=b:(this._additionsTail._nextAdded=b,this._additionsTail=b)}_addToChanges(b){null===this._changesHead?this._changesHead=this._changesTail=b:(this._changesTail._nextChanged=b,this._changesTail=b)}_forEach(b,C){b instanceof Map?b.forEach(C):Object.keys(b).forEach(y=>C(b[y],y))}}class S0{constructor(b){this.key=b,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function E0(){return new ic([new eC])}let ic=(()=>{class _{constructor(C){this.factories=C}static create(C,y){if(null!=y){const x=y.factories.slice();C=C.concat(x)}return new _(C)}static extend(C){return{provide:_,useFactory:y=>_.create(C,y||E0()),deps:[[_,new na,new el]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(null!=y)return y;throw new ae(901,!1)}}return _.\u0275prov=Et({token:_,providedIn:"root",factory:E0}),_})();function Yp(){return new Nd([new rC])}let Nd=(()=>{class _{constructor(C){this.factories=C}static create(C,y){if(y){const x=y.factories.slice();C=C.concat(x)}return new _(C)}static extend(C){return{provide:_,useFactory:y=>_.create(C,y||Yp()),deps:[[_,new na,new el]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(y)return y;throw new ae(901,!1)}}return _.\u0275prov=Et({token:_,providedIn:"root",factory:Yp}),_})();const oC=jp(null,"core",[]);let H0=(()=>{class _{constructor(C){}}return _.\u0275fac=function(C){return new(C||_)(ti(wa))},_.\u0275mod=Kr({type:_}),_.\u0275inj=ui({}),_})();function R0(_){return"boolean"==typeof _?_:null!=_&&"false"!==_}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class N extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return N.\u0275fac=function(){let z;return function(M){return(z||(z=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(N)))(M||N)}}(),N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class N{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,M){this.data.set(E,M)}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class ReceivedTokens{}class OAuthEvent{constructor(z){this.type=z}}class OAuthSuccessEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(z,E,M=null){super(z),this.reason=E,this.params=M}}function b64DecodeUnicode(N){const z=N.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(z).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(N){return btoa(N).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(z){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},z&&Object.assign(this,z)}}class WebHttpUrlEncodingCodec{encodeKey(z){return encodeURIComponent(z)}encodeValue(z){return encodeURIComponent(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(z){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let M=E.inferHashAlgorithm(z.idTokenHeader),h=yield E.calcHash(z.accessToken,M),F=base64UrlEncode(h.substr(0,h.length/2)),B=z.idTokenClaims.at_hash.replace(/=/g,"");return F!==B&&(console.error("exptected at_hash: "+F),console.error("actual at_hash: "+B)),F===B})()}inferHashAlgorithm(z){let E=z.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class N{getHashFragmentParams(E){let M=E||window.location.hash;if(M=decodeURIComponent(M),0!==M.indexOf("#"))return{};const h=M.indexOf("?");return M=M.substr(h>-1?h+1:1),this.parseQueryString(M)}parseQueryString(E){const M={};let h,L,F,B,q,Q,ee;if(null===E)return M;h=E.split("&");for(let W=0;W>6,L[B++]=128|63&q):q<55296||q>=57344?(L[B++]=224|q>>12,L[B++]=128|q>>6&63,L[B++]=128|63&q):(q=65536+((1023&q)<<10|1023&N.charCodeAt(++M)),L[B++]=240|q>>18,L[B++]=128|q>>12&63,L[B++]=128|q>>6&63,L[B++]=128|63&q);N=L}else{if("object"!==h)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR)}N.length>64&&(N=new Sha256(z,!0).update(N).array());var Q=[],ee=[];for(M=0;M<64;++M){var W=N[M]||0;Q[M]=92^W,ee[M]=54^W}Sha256.call(this,z,E),this.update(ee),this.oKeyPad=Q,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(N){if(!this.finalized){var z,E=typeof N;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR);z=!0}for(var M,L,h=0,F=N.length,B=this.blocks;h>2]|=N[h]<>2]|=M<>2]|=(192|M>>6)<>2]|=(128|63&M)<=57344?(B[L>>2]|=(224|M>>12)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<>2]|=(240|M>>18)<>2]|=(128|M>>12&63)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<=64?(this.block=B[16],this.start=L-64,this.hash(),this.hashed=!0):this.start=L}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var N=this.blocks,z=this.lastByteIndex;N[16]=this.block,N[z>>2]|=EXTRA[3&z],this.block=N[16],z>=56&&(this.hashed||this.hash(),N[0]=this.block,N[16]=N[1]=N[2]=N[3]=N[4]=N[5]=N[6]=N[7]=N[8]=N[9]=N[10]=N[11]=N[12]=N[13]=N[14]=N[15]=0),N[14]=this.hBytes<<3|this.bytes>>>29,N[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var Q,G,ie,ae,he,fe,N=this.h0,z=this.h1,E=this.h2,M=this.h3,h=this.h4,L=this.h5,F=this.h6,B=this.h7,q=this.blocks;for(Q=16;Q<64;++Q)q[Q]=q[Q-16]+(((G=q[Q-15])>>>7|G<<25)^(G>>>18|G<<14)^G>>>3)+q[Q-7]+(((G=q[Q-2])>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)<<0;for(fe=z&E,Q=0;Q<64;Q+=4)this.first?(this.is224?(ie=300032,B=(G=q[0]-1413257819)-150054599<<0,M=G+24177077<<0):(ie=704751109,B=(G=q[0]-210244248)-1521486534<<0,M=G+143694565<<0),this.first=!1):(B=M+(G=B+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&L^~h&F)+K[Q]+q[Q])<<0,M=G+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((ie=N&z)^N&E^fe))<<0),F=E+(G=F+((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&h^~B&L)+K[Q+1]+q[Q+1])<<0,E=G+(((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+((ae=M&N)^M&z^ie))<<0,L=z+(G=L+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&B^~F&h)+K[Q+2]+q[Q+2])<<0,z=G+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((he=E&M)^E&N^ae))<<0,h=N+(G=h+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&F^~L&B)+K[Q+3]+q[Q+3])<<0,N=G+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((fe=z&E)^z&M^he))<<0;this.h0=this.h0+N<<0,this.h1=this.h1+z<<0,this.h2=this.h2+E<<0,this.h3=this.h3+M<<0,this.h4=this.h4+h<<0,this.h5=this.h5+L<<0,this.h6=this.h6+F<<0,this.h7=this.h7+B<<0},Sha256.prototype.hex=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,h=this.h4,L=this.h5,F=this.h6,B=this.h7,q=HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M]+HEX_CHARS[h>>28&15]+HEX_CHARS[h>>24&15]+HEX_CHARS[h>>20&15]+HEX_CHARS[h>>16&15]+HEX_CHARS[h>>12&15]+HEX_CHARS[h>>8&15]+HEX_CHARS[h>>4&15]+HEX_CHARS[15&h]+HEX_CHARS[L>>28&15]+HEX_CHARS[L>>24&15]+HEX_CHARS[L>>20&15]+HEX_CHARS[L>>16&15]+HEX_CHARS[L>>12&15]+HEX_CHARS[L>>8&15]+HEX_CHARS[L>>4&15]+HEX_CHARS[15&L]+HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F];return this.is224||(q+=HEX_CHARS[B>>28&15]+HEX_CHARS[B>>24&15]+HEX_CHARS[B>>20&15]+HEX_CHARS[B>>16&15]+HEX_CHARS[B>>12&15]+HEX_CHARS[B>>8&15]+HEX_CHARS[B>>4&15]+HEX_CHARS[15&B]),q},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,h=this.h4,L=this.h5,F=this.h6,B=this.h7,q=[N>>24&255,N>>16&255,N>>8&255,255&N,z>>24&255,z>>16&255,z>>8&255,255&z,E>>24&255,E>>16&255,E>>8&255,255&E,M>>24&255,M>>16&255,M>>8&255,255&M,h>>24&255,h>>16&255,h>>8&255,255&h,L>>24&255,L>>16&255,L>>8&255,255&L,F>>24&255,F>>16&255,F>>8&255,255&F];return this.is224||q.push(B>>24&255,B>>16&255,B>>8&255,255&B),q},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var N=new ArrayBuffer(this.is224?28:32),z=new DataView(N);return z.setUint32(0,this.h0),z.setUint32(4,this.h1),z.setUint32(8,this.h2),z.setUint32(12,this.h3),z.setUint32(16,this.h4),z.setUint32(20,this.h5),z.setUint32(24,this.h6),this.is224||z.setUint32(28,this.h7),N},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var N=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(N),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(N){if("string"!=typeof N)throw new TypeError("expected string");var z,E=N,M=new Uint8Array(E.length);for(z=0;z{class N{calcHash(E,M){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})()}toHashString2(E){let M="";for(let h of E)M+=String.fromCharCode(h);return M}toHashString(E){const M=new Uint8Array(E);let h="";for(let L of M)h+=String.fromCharCode(L);return h}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})(),OAuthService=(()=>{class N extends AuthConfig{constructor(E,M,h,L,F,B,q,Q,ee,W){super(),this.ngZone=E,this.http=M,this.config=F,this.urlHelper=B,this.logger=q,this.crypto=Q,this.dateTimeService=W,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=ee,F||(F={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),L&&(this.tokenValidationHandler=L),F&&this.configure(F);try{h?this.setStorage(h):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(Y){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",Y)}if(this.checkLocalStorageAccessable()){const Y=window?.navigator?.userAgent;(Y?.includes("MSIE ")||Y?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const E="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(E,E),localStorage.removeItem(E),0))}catch{return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},M,h=!0){let L=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(F=>{"token_received"===F.type?L=!0:"logout"===F.type&&(L=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_expires"===F.type&&(null==M||"any"===M||F.info===M)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(F=>{L&&this.refreshInternal(E,h).catch(B=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,M){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,M):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(M=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(M=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const M=[],h=this.validateUrlForHttps(E),L=this.validateUrlAgainstIssuer(E);return h||M.push("https for all urls required. Also for urls received by discovery."),L||M.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),M}validateUrlForHttps(E){if(!E)return!0;const M=E.toLowerCase();return!(!1!==this.requireHttps&&(!M.match(/^http:\/\/localhost($|[:\/])/)&&!M.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||M.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,M){if(!E)throw new Error(`'${M}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${M}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),M=this.getAccessTokenStoredAt(),h=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(h)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),M=this.getIdTokenStoredAt(),h=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(h)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,M){const h=this.dateTimeService.now();return Math.max(0,(M-E)*this.timeoutFactor-(h-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((M,h)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(L=>{if(!this.validateDiscoveryDocument(L))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void h("discovery_document_validation_error");this.loginUrl=L.authorization_endpoint,this.logoutUrl=L.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=L.grant_types_supported,this.issuer=L.issuer,this.tokenEndpoint=L.token_endpoint,this.userinfoEndpoint=L.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=L.jwks_uri,this.sessionCheckIFrameUrl=L.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(L),this.revocationEndpoint=L.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(F=>{const q=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:L,jwks:F});this.eventsSubject.next(q),M(q)}).catch(F=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",F)),h(F)})},L=>{this.logger.error("error loading discovery document",L),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",L)),h(L)}):h("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,M)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(h=>{this.jwks=h,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(h)},h=>{this.logger.error("error loading jwks",h),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",h)),M(h)}):E(null)})}validateDiscoveryDocument(E){let M;return this.skipIssuerCheck||E.issuer===this.issuer?(M=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),M.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),M.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.token_endpoint),M.length>0&&this.logger.error("error validating token_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),M.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),M.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.jwks_uri),M.length>0?(this.logger.error("error validating jwks_uri in discovery document",M),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,M,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,M,h).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,M)=>{const h=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:h,observe:"response",responseType:"text"}).subscribe(L=>{if(this.debug("userinfo received",JSON.stringify(L)),L.headers.get("content-type").startsWith("application/json")){let F=JSON.parse(L.body);const B=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!B.sub||F.sub!==B.sub))return void M("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");F=Object.assign({},B,F),this._storage.setItem("id_token_claims_obj",JSON.stringify(F)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:F})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(L.body))},L=>{this.logger.error("error loading user info",L),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",L)),M(L)})})}fetchTokenUsingPasswordFlow(E,M,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:M},h)}fetchTokenUsingGrant(E,M,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let L=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);h=h.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(L=L.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(L=L.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))L=L.set(F,this.customQueryParams[F]);for(const F of Object.keys(M))L=L.set(F,M[F]);return h=h.set("Content-Type","application/x-www-form-urlencoded"),new Promise((F,B)=>{this.http.post(this.tokenEndpoint,L,{headers:h}).subscribe(q=>{this.debug("tokenResponse",q),this.storeAccessTokenResponse(q.access_token,q.refresh_token,q.expires_in||this.fallbackAccessTokenExpirationTimeInSec,q.scope,this.extractRecognizedCustomParameters(q)),this.oidc&&q.id_token&&this.processIdToken(q.id_token,q.access_token).then(Q=>{this.storeIdToken(Q),F(q)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),F(q)},q=>{this.logger.error("Error performing ${grantType} flow",q),this.eventsSubject.next(new OAuthErrorEvent("token_error",q)),B(q)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,M)=>{let h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),L=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);L=L.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(h=h.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(h=h.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))h=h.set(F,this.customQueryParams[F]);this.http.post(this.tokenEndpoint,h,{headers:L}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(F=>F.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(F.id_token,F.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(B=>this.storeIdToken(B)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(B=>F)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(F))).subscribe(F=>{this.debug("refresh tokenResponse",F),this.storeAccessTokenResponse(F.access_token,F.refresh_token,F.expires_in||this.fallbackAccessTokenExpirationTimeInSec,F.scope,this.extractRecognizedCustomParameters(F)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(F)},F=>{this.logger.error("Error refreshing token",F),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",F)),M(F)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const M=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:M,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(h=>this.debug("tryLogin during silent refresh failed",h))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},M=!0){const h=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const L=this.document.getElementById(this.silentRefreshIFrameName);L&&this.document.body.removeChild(L),this.silentRefreshSubject=h.sub;const F=this.document.createElement("iframe");F.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,M,E).then(W=>{F.setAttribute("src",W),this.silentRefreshShowIFrame||(F.style.display="none"),this.document.body.appendChild(F)});const q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>W instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>"token_received"===W.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),ee=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([q,Q,ee]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(W=>{if(W instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===W.type||(W=new OAuthErrorEvent("silent_refresh_error",W)),this.eventsSubject.next(W),W;return"token_received"===W.type&&(W=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(W)),W})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(M=>new Promise((h,L)=>{let q,B=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(B=E.windowRef,B.location.href=M):B=window.open(M,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const Q=re=>{this.tryLogin({customHashFragment:re,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{W(),h(!0)},oe=>{W(),L(oe)})};B?q=window.setInterval(()=>{(!B||B.closed)&&(W(),L(new OAuthErrorEvent("popup_closed",{})))},500):L(new OAuthErrorEvent("popup_blocked",{}));const W=()=>{window.clearInterval(q),window.removeEventListener("storage",G),window.removeEventListener("message",Y),null!==B&&B.close(),B=null},Y=re=>{const oe=this.processMessageEventMessage(re);oe&&null!==oe?(window.removeEventListener("storage",G),Q(oe)):console.log("false event firing")},G=re=>{"auth_hash"===re.key&&(window.removeEventListener("message",Y),Q(re.newValue))};window.addEventListener("message",Y),window.addEventListener("storage",G)}))}calculatePopupFeatures(E){const M=E.height||470,h=E.width||500,L=window.screenLeft+(window.outerWidth-h)/2;return`location=no,toolbar=no,width=${h},height=${M},top=${window.screenTop+(window.outerHeight-M)/2},left=${L}`}processMessageEventMessage(E){let M="#";if(this.silentRefreshMessagePrefix&&(M+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const h=E.data;return h.startsWith(M)?"#"+h.substr(M.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const M=E.origin.toLowerCase(),h=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),h.startsWith(M)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",M,"expected",h,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const M=this.document.createElement("iframe");M.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),M.setAttribute("src",this.sessionCheckIFrameUrl),M.style.display="none",this.document.body.appendChild(M),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const M=this.getSessionState();M||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+M,this.issuer)}createLoginUrl(E="",M="",h="",L=!1,F={}){var B=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const q=B;let Q;Q=h||B.redirectUri;const ee=yield B.createAndSaveNonce();if(E=E?ee+B.config.nonceStateSeparator+encodeURIComponent(E):ee,!B.requestAccessToken&&!B.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");B.responseType=B.config.responseType?B.config.responseType:B.oidc&&B.requestAccessToken?"id_token token":B.oidc&&!B.requestAccessToken?"id_token":"token";const W=q.loginUrl.indexOf("?")>-1?"&":"?";let Y=q.scope;B.oidc&&!Y.match(/(^|\s)openid($|\s)/)&&(Y="openid "+Y);let G=q.loginUrl+W+"response_type="+encodeURIComponent(q.responseType)+"&client_id="+encodeURIComponent(q.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(Q)+"&scope="+encodeURIComponent(Y);if(B.responseType.includes("code")&&!B.disablePKCE){const[re,oe]=yield B.createChallangeVerifierPairForPKCE();B.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",oe):B._storage.setItem("PKCE_verifier",oe),G+="&code_challenge="+re,G+="&code_challenge_method=S256"}M&&(G+="&login_hint="+encodeURIComponent(M)),q.resource&&(G+="&resource="+encodeURIComponent(q.resource)),q.oidc&&(G+="&nonce="+encodeURIComponent(ee)),L&&(G+="&prompt=none");for(const re of Object.keys(F))G+="&"+encodeURIComponent(re)+"="+encodeURIComponent(F[re]);if(B.customQueryParams)for(const re of Object.getOwnPropertyNames(B.customQueryParams))G+="&"+re+"="+encodeURIComponent(B.customQueryParams[re]);return G})()}initImplicitFlowInternal(E="",M=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let h={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(h=M),this.createLoginUrl(E,L,null,!1,h).then(this.config.openUri).catch(F=>{console.error("Error in initImplicitFlow",F),this.inImplicitFlow=!1})}initImplicitFlow(E="",M=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,M):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(h=>"discovery_document_loaded"===h.type)).subscribe(h=>this.initImplicitFlowInternal(E,M))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const M=this;if(E.onTokenReceived){const h={idClaims:M.getIdentityClaims(),idToken:M.getIdToken(),accessToken:M.getAccessToken(),state:M.state};E.onTokenReceived(h)}}storeAccessTokenResponse(E,M,h,L,F){if(this._storage.setItem("access_token",E),L&&!Array.isArray(L)?this._storage.setItem("granted_scopes",JSON.stringify(L.split(" "))):L&&Array.isArray(L)&&this._storage.setItem("granted_scopes",JSON.stringify(L)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),h){const B=1e3*h,Q=this.dateTimeService.new().getTime()+B;this._storage.setItem("expires_at",""+Q)}M&&this._storage.setItem("refresh_token",M),F&&F.forEach((B,q)=>{this._storage.setItem(q,B)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(M=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){var M=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const h=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,L=M.getCodePartsFromUrl(h),F=L.code,B=L.state,q=L.session_state;if(!E.preventClearHashAfterLogin){const W=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,W)}let[Q,ee]=M.parseState(B);if(M.state=ee,L.error){M.debug("error trying to login"),M.handleLoginError(E,L);const W=new OAuthErrorEvent("code_error",{},L);return M.eventsSubject.next(W),Promise.reject(W)}if(!E.disableNonceCheck){if(!Q)return M.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!M.validateNonce(Q)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return M.eventsSubject.next(Y),Promise.reject(Y)}return M.storeSessionState(q),F&&(yield M.getTokenFromCode(F,E),M.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,M){let h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",M.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let L;L=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),L?h=h.set("code_verifier",L):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(h,M)}fetchAndProcessToken(E,M){M=M||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let h=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const L=btoa(`${this.clientId}:${this.dummyClientSecret}`);h=h.set("Authorization","Basic "+L)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((L,F)=>{if(this.customQueryParams)for(let B of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(B,this.customQueryParams[B]);this.http.post(this.tokenEndpoint,E,{headers:h}).subscribe(B=>{this.debug("refresh tokenResponse",B),this.storeAccessTokenResponse(B.access_token,B.refresh_token,B.expires_in||this.fallbackAccessTokenExpirationTimeInSec,B.scope,this.extractRecognizedCustomParameters(B)),this.oidc&&B.id_token?this.processIdToken(B.id_token,B.access_token,M.disableNonceCheck).then(q=>{this.storeIdToken(q),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(B)}).catch(q=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",q)),console.error("Error validating tokens"),console.error(q),F(q)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(B))},B=>{console.error("Error getting token",B),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",B)),F(B)})})}tryLoginImplicitFlow(E=null){let M;M=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",M);const h=M.state;let[L,F]=this.parseState(h);if(this.state=F,M.error){this.debug("error trying to login"),this.handleLoginError(E,M);const W=new OAuthErrorEvent("token_error",{},M);return this.eventsSubject.next(W),Promise.reject(W)}const B=M.access_token,q=M.id_token,Q=M.session_state,ee=M.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!B||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!h||this.oidc&&!q)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!Q&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(L)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(Y),Promise.reject(Y)}return this.requestAccessToken&&this.storeAccessTokenResponse(B,null,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,ee),this.oidc?this.processIdToken(q,B,E.disableNonceCheck).then(W=>E.validationHandler?E.validationHandler({accessToken:B,idClaims:W.idTokenClaims,idToken:W.idToken,state:h}).then(Y=>W):W).then(W=>(this.storeIdToken(W),this.storeSessionState(Q),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(W=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",W)),this.logger.error("Error validating tokens"),this.logger.error(W),Promise.reject(W))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let M=E,h="";if(E){const L=E.indexOf(this.config.nonceStateSeparator);L>-1&&(M=E.substr(0,L),h=E.substr(L+this.config.nonceStateSeparator.length))}return[M,h]}validateNonce(E){let M;return M=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),M===E||(console.error("Validating access_token failed, wrong state/nonce.",M,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,M){E.onLoginError&&E.onLoginError(M),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,M,h=!1){const L=E.split("."),B=b64DecodeUnicode(this.padBase64(L[0])),q=JSON.parse(B),ee=b64DecodeUnicode(this.padBase64(L[1])),W=JSON.parse(ee);let Y;if(Y=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(W.aud)){if(W.aud.every(he=>he!==this.clientId)){const he="Wrong audience: "+W.aud.join(",");return this.logger.warn(he),Promise.reject(he)}}else if(W.aud!==this.clientId){const he="Wrong audience: "+W.aud;return this.logger.warn(he),Promise.reject(he)}if(!W.sub){const he="No sub claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==W.sub){const he=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${W.sub}`;return this.logger.warn(he),Promise.reject(he)}if(!W.iat){const he="No iat claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(!this.skipIssuerCheck&&W.iss!==this.issuer){const he="Wrong issuer: "+W.iss;return this.logger.warn(he),Promise.reject(he)}if(!h&&W.nonce!==Y){const he="Wrong nonce: "+W.nonce;return this.logger.warn(he),Promise.reject(he)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!W.at_hash){const he="An at_hash is needed!";return this.logger.warn(he),Promise.reject(he)}const G=this.dateTimeService.now(),re=1e3*W.iat,oe=1e3*W.exp,ie=this.getClockSkewInMsec();if(re-ie>=G||oe+ie<=G){const he="Token has expired";return console.error(he),console.error({now:G,issuedAtMSec:re,expiresAtMSec:oe}),Promise.reject(he)}const ae={accessToken:M,idToken:E,jwks:this.jwks,idTokenClaims:W,idTokenHeader:q,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ae).then(he=>({idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:B,idTokenExpiresAt:oe})):this.checkAtHash(ae).then(he=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!he){const fe="Wrong at_hash";return this.logger.warn(fe),Promise.reject(fe)}return this.checkSignature(ae).then(fe=>{const Le={idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:B,idTokenExpiresAt:oe};return this.disableAtHashCheck?Le:this.checkAtHash(ae).then(je=>{if(this.requestAccessToken&&!je){const Ae="Wrong at_hash";return this.logger.warn(Ae),Promise.reject(Ae)}return Le})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),M=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},M=""){let h=!1;"boolean"==typeof E&&(h=E,E={});const L=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(B=>this._storage.removeItem(B)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||h||!L&&!this.postLogoutRedirectUri)return;let F;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)F=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(L)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});L&&(B=B.set("id_token_hint",L));const q=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";q&&(B=B.set("post_logout_redirect_uri",q),M&&(B=B.set("state",M)));for(let Q in E)B=B.set(Q,E[Q]);F=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+B.toString()}this.config.openUri(F)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(M){return E.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",M):E._storage.setItem("nonce",M),M})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const M=this.document.getElementById(this.sessionCheckIFrameName);M&&M.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let h=45,L="";const F=typeof self>"u"?null:self.crypto||self.msCrypto;if(F){let B=new Uint8Array(h);F.getRandomValues(B),B.map||(B.map=Array.prototype.map),B=B.map(q=>M.charCodeAt(q%M.length)),L=String.fromCharCode.apply(null,B)}else for(;0"discovery_document_loaded"===h.type)).subscribe(h=>this.initCodeFlowInternal(E,M))}initCodeFlowInternal(E="",M={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let h={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(h=M),this.createLoginUrl(E,L,null,!1,h).then(this.config.openUri).catch(F=>{console.error("Error in initAuthorizationCodeFlow"),console.error(F)})}createChallangeVerifierPairForPKCE(){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!E.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const M=yield E.createNonce();return[base64UrlEncode(yield E.crypto.calcHash(M,"sha-256")),M]})()}extractRecognizedCustomParameters(E){let M=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(h=>{E[h]&&M.set(h,JSON.stringify(E[h]))}),M}revokeTokenAndLogout(E={},M=!1){let h=this.revocationEndpoint,L=this.getAccessToken(),F=this.getRefreshToken();if(!L)return;let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),q=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const Q=btoa(`${this.clientId}:${this.dummyClientSecret}`);q=q.set("Authorization","Basic "+Q)}if(this.useHttpBasicAuth||(B=B.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(B=B.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const Q of Object.getOwnPropertyNames(this.customQueryParams))B=B.set(Q,this.customQueryParams[Q]);return new Promise((Q,ee)=>{let W,Y;if(L){let G=B.set("token",L).set("token_type_hint","access_token");W=this.http.post(h,G,{headers:q})}else W=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(F){let G=B.set("token",F).set("token_type_hint","refresh_token");Y=this.http.post(h,G,{headers:q})}else Y=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);M&&(W=W.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G))),Y=Y.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([W,Y]).subscribe(G=>{this.logOut(E),Q(G),this.logger.info("Token successfully revoked")},G=>{this.logger.error("Error revoking token",G),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",G)),ee(G)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(z){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(z)}}let DefaultOAuthInterceptor=(()=>{class N{constructor(E,M,h){this.oAuthService=E,this.errorHandler=M,this.moduleConfig=h}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(M=>E.toLowerCase().startsWith(M.toLowerCase()))}intercept(E,M){const h=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(h)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>!!F)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_received"===F.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(F=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(F=>{if(F){const q=E.headers.set("Authorization","Bearer "+F);E=E.clone({headers:q})}return M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(B=>this.errorHandler.handleError(B)))})):M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>this.errorHandler.handleError(F))):M.handle(E)}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class NullValidationHandler{validateSignature(z){return Promise.resolve(null)}validateAtHash(z){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class N{static forRoot(E=null,M=NullValidationHandler){return{ngModule:N,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:M},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:N}),N.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),N})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(N,z,E)=>{"use strict";function M(L,F,B,q,Q,ee,W){try{var Y=L[ee](W),G=Y.value}catch(re){return void B(re)}Y.done?F(G):Promise.resolve(G).then(q,Q)}function h(L){return function(){var F=this,B=arguments;return new Promise(function(q,Q){var ee=L.apply(F,B);function W(G){M(ee,q,Q,W,Y,"next",G)}function Y(G){M(ee,q,Q,W,Y,"throw",G)}W(void 0)})}}E.d(z,{Z:()=>h})},4147:N=>{"use strict";N.exports={i8:"10.4.3"}}},N=>{N(N.s=2605)}]); \ No newline at end of file diff --git a/dist/apps/linker/index.html b/dist/apps/linker/index.html index 2ce299da9..3fa31a9aa 100644 --- a/dist/apps/linker/index.html +++ b/dist/apps/linker/index.html @@ -14,5 +14,5 @@
- + diff --git a/dist/apps/linker/main.317f8a362b8a9b1d.js b/dist/apps/linker/main.317f8a362b8a9b1d.js new file mode 100644 index 000000000..ba5009fe2 --- /dev/null +++ b/dist/apps/linker/main.317f8a362b8a9b1d.js @@ -0,0 +1 @@ +(self.webpackChunklinker=self.webpackChunklinker||[]).push([[179],{1200:(N,z,E)=>{"use strict";var M=E(6895),_=E(4650);class L extends M.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class F extends L{static makeCurrent(){(0,M.HT)(new F)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function q(){return V=V||document.querySelector("base"),V?V.getAttribute("href"):null}();return null==e?null:function ee(o){Q=Q||document.createElement("a"),Q.setAttribute("href",o);const r=Q.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){V=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,M.Mx)(document.cookie,r)}}let Q,V=null;const W=new _.OlP("TRANSITION_ID"),G=[{provide:_.ip1,useFactory:function Y(o,r,e){return()=>{e.get(_.CZH).donePromise.then(()=>{const t=(0,M.q)(),s=r.querySelectorAll(`style[ng-transition="${o}"]`);for(let u=0;u{class o{build(){return new XMLHttpRequest}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const te=new _.OlP("EventManagerPlugins");let ae=(()=>{class o{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,s){return this._findPluginFor(t).addEventListener(e,t,s)}addGlobalEventListener(e,t,s){return this._findPluginFor(t).addGlobalEventListener(e,t,s)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const s=this._plugins;for(let u=0;u{class o{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),t.add(s))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),_e=(()=>{class o extends fe{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,s){e.forEach(u=>{const d=this._doc.createElement("style");d.textContent=u,s.push(t.appendChild(d))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Le),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,s)=>{this._addStylesToHost(e,s,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Le))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();function Le(o){(0,M.q)().remove(o)}const Fe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ae=/%COMP%/g;function le(o,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return o;!1===o(r)&&(r.preventDefault(),r.returnValue=!1)}}let pe=(()=>{class o{constructor(e,t,s){this.eventManager=e,this.sharedStylesHost=t,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new Ve(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case _.ifc.Emulated:{let s=this.rendererByCompId.get(t.id);return s||(s=new Ht(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,s)),s.applyToHost(e),s}case 1:case _.ifc.ShadowDom:return new Ue(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const s=le(t.id,t.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(ae),_.LFG(_e),_.LFG(_.AFp))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class Ve{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Fe[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(At(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(At(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,s){if(s){e=s+":"+e;const u=Fe[s];u?r.setAttributeNS(u,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const s=Fe[t];s?r.removeAttributeNS(s,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,s){s&(_.JOm.DashCase|_.JOm.Important)?r.style.setProperty(e,t,s&_.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&_.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,ce(t)):this.eventManager.addEventListener(r,e,ce(t))}}function At(o){return"TEMPLATE"===o.tagName&&void 0!==o.content}class Ht extends Ve{constructor(r,e,t,s){super(r),this.component=t;const u=le(s+"-"+t.id,t.styles,[]);e.addStyles(u),this.contentAttr=function Re(o){return"_ngcontent-%COMP%".replace(Ae,o)}(s+"-"+t.id),this.hostAttr=function He(o){return"_nghost-%COMP%".replace(Ae,o)}(s+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Ue extends Ve{constructor(r,e,t,s){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=le(s.id,s.styles,[]);for(let d=0;d{class o extends he{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,s){return e.addEventListener(t,s,!1),()=>this.removeEventListener(e,t,s)}removeEventListener(e,t,s){return e.removeEventListener(t,s)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const Un=["alt","control","meta","shift"],St={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},An={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},li={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey};let Vr=(()=>{class o extends he{constructor(e){super(e)}supports(e){return null!=o.parseEventName(e)}addEventListener(e,t,s){const u=o.parseEventName(t),d=o.eventCallback(u.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,M.q)().onAndCancel(e,u.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),s=t.shift();if(0===t.length||"keydown"!==s&&"keyup"!==s)return null;const u=o._normalizeKey(t.pop());let d="";if(Un.forEach(n=>{const i=t.indexOf(n);i>-1&&(t.splice(i,1),d+=n+".")}),d+=u,0!=t.length||0===u.length)return null;const l={};return l.domEventName=s,l.fullKey=d,l}static getEventFullKey(e){let t="",s=function $l(o){let r=o.key;if(null==r){if(r=o.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===o.location&&An.hasOwnProperty(r)&&(r=An[r]))}return St[r]||r}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),Un.forEach(u=>{u!=s&&(0,li[u])(e)&&(t+=u+".")}),t+=s,t}static eventCallback(e,t,s){return u=>{o.getEventFullKey(u)===e&&s.runGuarded(()=>t(u))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const Ke=(0,_.eFA)(_._c5,"browser",[{provide:_.Lbi,useValue:M.bD},{provide:_.g9A,useValue:function Nn(){F.makeCurrent()},multi:!0},{provide:M.K0,useFactory:function ga(){return(0,_.RDi)(document),document},deps:[]}]),hi=new _.OlP(""),_a=[{provide:_.rWj,useClass:class re{addToWindow(r){_.dqk.getAngularTestability=(t,s=!0)=>{const u=r.findTestabilityInTree(t,s);if(null==u)throw new Error("Could not find testability for element.");return u},_.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),_.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),_.dqk.frameworkStabilizers||(_.dqk.frameworkStabilizers=[]),_.dqk.frameworkStabilizers.push(t=>{const s=_.dqk.getAllAngularTestabilities();let u=s.length,d=!1;const l=function(n){d=d||n,u--,0==u&&t(d)};s.forEach(function(n){n.whenStable(l)})})}findTestabilityInTree(r,e,t){return null==e?null:r.getTestability(e)??(t?(0,M.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:_.lri,useClass:_.dDg,deps:[_.R0b,_.eoX,_.rWj]},{provide:_.dDg,useClass:_.dDg,deps:[_.R0b,_.eoX,_.rWj]}],Pi=[{provide:_.zSh,useValue:"root"},{provide:_.qLn,useFactory:function qn(){return new _.qLn},deps:[]},{provide:te,useClass:Ri,multi:!0,deps:[M.K0,_.R0b,_.Lbi]},{provide:te,useClass:Vr,multi:!0,deps:[M.K0]},{provide:pe,useClass:pe,deps:[ae,_e,_.AFp]},{provide:_.FYo,useExisting:pe},{provide:fe,useExisting:_e},{provide:_e,useClass:_e,deps:[M.K0]},{provide:ae,useClass:ae,deps:[te,_.R0b]},{provide:M.JF,useClass:oe,deps:[]},[]];let ba=(()=>{class o{constructor(e){}static withServerTransition(e){return{ngModule:o,providers:[{provide:_.AFp,useValue:e.appId},{provide:W,useExisting:_.AFp},G]}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(hi,12))},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[...Pi,..._a],imports:[M.ez,_.hGG]}),o})(),X=(()=>{class o{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function ye(){return new X((0,_.LFG)(M.K0))}(),t},providedIn:"root"}),o})();typeof window<"u"&&window;let bi=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:function(e){let t=null;return t=e?new(e||o):_.LFG(at),t},providedIn:"root"}),o})(),at=(()=>{class o extends bi{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case _.q3G.NONE:return t;case _.q3G.HTML:return(0,_.qzn)(t,"HTML")?(0,_.z3N)(t):(0,_.EiD)(this._doc,String(t)).toString();case _.q3G.STYLE:return(0,_.qzn)(t,"Style")?(0,_.z3N)(t):t;case _.q3G.SCRIPT:if((0,_.qzn)(t,"Script"))return(0,_.z3N)(t);throw new Error("unsafe value used in a script context");case _.q3G.URL:return(0,_.qzn)(t,"URL")?(0,_.z3N)(t):(0,_.mCW)(String(t));case _.q3G.RESOURCE_URL:if((0,_.qzn)(t,"ResourceURL"))return(0,_.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,_.JVY)(e)}bypassSecurityTrustStyle(e){return(0,_.L6k)(e)}bypassSecurityTrustScript(e){return(0,_.eBb)(e)}bypassSecurityTrustUrl(e){return(0,_.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,_.pB0)(e)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function Oe(o){return new at(o.get(M.K0))}(_.LFG(_.zs3)),t},providedIn:"root"}),o})();var _t=E(2076),ke=E(9646),Me=E(7579);class Nt extends Me.x{constructor(r){super(),this._value=r}get value(){return this.getValue()}_subscribe(r){const e=super._subscribe(r);return!e.closed&&r.next(this._value),e}getValue(){const{hasError:r,thrownError:e,_value:t}=this;if(r)throw e;return this._throwIfClosed(),t}next(r){super.next(this._value=r)}}var Rt=E(6805),_r=E(9841),Ni=E(7272),Ye=E(9751),zn=E(8421);function on(o){return new Ye.y(r=>{(0,zn.Xf)(o()).subscribe(r)})}var wa=E(9635),Ci=E(2843),qt=E(515),Wt=E(727),ci=E(4482),Lt=E(5403);function Sn(){return(0,ci.e)((o,r)=>{let e=null;o._refCount++;const t=(0,Lt.x)(r,void 0,void 0,void 0,()=>{if(!o||o._refCount<=0||0<--o._refCount)return void(e=null);const s=o._connection,u=e;e=null,s&&(!u||s===u)&&s.unsubscribe(),r.unsubscribe()});o.subscribe(t),t.closed||(e=o.connect())})}class xs extends Ye.y{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,ci.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new Wt.w0;const e=this.getSubject();r.add(this.source.subscribe((0,Lt.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),r.closed&&(this._connection=null,r=Wt.w0.EMPTY)}return r}refCount(){return Sn()(this)}}var qe=E(4004),Bi=E(3900),ni=E(5698),ya=E(3269);function Si(...o){const r=(0,ya.yG)(o);return(0,ci.e)((e,t)=>{(r?(0,Ni.z)(o,e,r):(0,Ni.z)(o,e)).subscribe(t)})}var $t=E(9300),pi=E(5577),Vi=E(590),Vt=E(4351),Qt=E(8505),Et=E(262);function sn(o,r,e,t,s){return(u,d)=>{let l=e,n=r,i=0;u.subscribe((0,Lt.x)(d,a=>{const c=i++;n=l?o(n,a,c):(l=!0,a),t&&d.next(n)},s&&(()=>{l&&d.next(n),d.complete()})))}}function va(o,r){return(0,ci.e)(sn(o,r,arguments.length>=2,!0))}function Gn(o){return o<=0?()=>qt.E:(0,ci.e)((r,e)=>{let t=[];r.subscribe((0,Lt.x)(e,s=>{t.push(s),o{for(const s of t)e.next(s);e.complete()},void 0,()=>{t=null}))})}var br=E(8068),Oi=E(6590),Yl=E(4671);function qp(o,r){const e=arguments.length>=2;return t=>t.pipe(o?(0,$t.h)((s,u)=>o(s,u,t)):Yl.y,Gn(1),e?(0,Oi.d)(r):(0,br.T)(()=>new Rt.K))}var eu=E(9718);function Aa(o){return(0,ci.e)((r,e)=>{try{r.subscribe(e)}finally{e.add(o)}})}var Ss=E(8189);const ht="primary";class pn{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function xa(o){return new pn(o)}function zp(o,r,e){const t=e.path.split("/");if(t.length>o.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[u]===s)}return o===r}function iu(o){return Array.prototype.concat.apply([],o)}function nu(o){return o.length>0?o[o.length-1]:null}function wi(o,r){for(const e in o)o.hasOwnProperty(e)&&r(o[e],e)}function Wn(o){return(0,_.CqO)(o)?o:(0,_.QGY)(o)?(0,_t.D)(Promise.resolve(o)):(0,ke.of)(o)}const Wp={exact:function Kl(o,r,e){if(!wr(o.segments,r.segments)||!go(o.segments,r.segments,e)||o.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!o.children[t]||!Kl(o.children[t],r.children[t],e))return!1;return!0},subset:Es},ru={exact:function Cr(o,r){return Tn(o,r)},subset:function mo(o,r){return Object.keys(r).length<=Object.keys(o).length&&Object.keys(r).every(e=>tu(o[e],r[e]))},ignored:()=>!0};function au(o,r,e){return Wp[e.paths](o.root,r.root,e.matrixParams)&&ru[e.queryParams](o.queryParams,r.queryParams)&&!("exact"===e.fragment&&o.fragment!==r.fragment)}function Es(o,r,e){return Zl(o,r,r.segments,e)}function Zl(o,r,e,t){if(o.segments.length>e.length){const s=o.segments.slice(0,e.length);return!(!wr(s,e)||r.hasChildren()||!go(s,e,t))}if(o.segments.length===e.length){if(!wr(o.segments,e)||!go(o.segments,e,t))return!1;for(const s in r.children)if(!o.children[s]||!Es(o.children[s],r.children[s],t))return!1;return!0}{const s=e.slice(0,o.segments.length),u=e.slice(o.segments.length);return!!(wr(o.segments,s)&&go(o.segments,s,t)&&o.children[ht])&&Zl(o.children[ht],r,u,t)}}function go(o,r,e){return r.every((t,s)=>ru[e](o[s].parameters,t.parameters))}class fn{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xa(this.queryParams)),this._queryParamMap}toString(){return Ds.serialize(this)}}class dt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,wi(e,(t,s)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bo(this)}}class Sa{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=xa(this.parameters)),this._parameterMap}toString(){return Co(this)}}function wr(o,r){return o.length===r.length&&o.every((e,t)=>e.path===r[t].path)}let _o=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:function(){return new Ms},providedIn:"root"}),o})();class Ms{parse(r){const e=new ue(r);return new fn(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${Hs(r.root,!0)}`,t=function zi(o){const r=Object.keys(o).map(e=>{const t=o[e];return Array.isArray(t)?t.map(s=>`${Rs(e)}=${Rs(s)}`).join("&"):`${Rs(e)}=${Rs(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function Gb(o){return encodeURI(o)}(r.fragment)}`:""}`}}const Ds=new Ms;function bo(o){return o.segments.map(r=>Co(r)).join("/")}function Hs(o,r){if(!o.hasChildren())return bo(o);if(r){const e=o.children[ht]?Hs(o.children[ht],!1):"",t=[];return wi(o.children,(s,u)=>{u!==ht&&t.push(`${u}:${Hs(s,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function qi(o,r){let e=[];return wi(o.children,(t,s)=>{s===ht&&(e=e.concat(r(t,s)))}),wi(o.children,(t,s)=>{s!==ht&&(e=e.concat(r(t,s)))}),e}(o,(t,s)=>s===ht?[Hs(o.children[ht],!1)]:[`${s}:${Hs(t,!1)}`]);return 1===Object.keys(o.children).length&&null!=o.children[ht]?`${bo(o)}/${e[0]}`:`${bo(o)}/(${e.join("//")})`}}function Jt(o){return encodeURIComponent(o).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rs(o){return Jt(o).replace(/%3B/gi,";")}function jr(o){return Jt(o).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ti(o){return decodeURIComponent(o)}function Ps(o){return Ti(o.replace(/\+/g,"%20"))}function Co(o){return`${jr(o.path)}${function Ta(o){return Object.keys(o).map(r=>`;${jr(r)}=${jr(o[r])}`).join("")}(o.parameters)}`}const P=/^[^\/()?;=#]+/;function O(o){const r=o.match(P);return r?r[0]:""}const I=/^[^=?&#]+/,ne=/^[^&#]+/;class ue{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dt([],{}):new dt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[ht]=new dt(r,e)),t}parseSegment(){const r=O(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new _.vHH(4009,!1);return this.capture(r),new Sa(Ti(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=O(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const s=O(this.remaining);s&&(t=s,this.capture(t))}r[Ti(e)]=Ti(t)}parseQueryParam(r){const e=function j(o){const r=o.match(I);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function me(o){const r=o.match(ne);return r?r[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const s=Ps(e),u=Ps(t);if(r.hasOwnProperty(s)){let d=r[s];Array.isArray(d)||(d=[d],r[s]=d),d.push(u)}else r[s]=u}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=O(this.remaining),s=this.remaining[t.length];if("/"!==s&&")"!==s&&";"!==s)throw new _.vHH(4010,!1);let u;t.indexOf(":")>-1?(u=t.slice(0,t.indexOf(":")),this.capture(u),this.capture(":")):r&&(u=ht);const d=this.parseChildren();e[u]=1===Object.keys(d).length?d[ht]:new dt([],d),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new _.vHH(4011,!1)}}function Ge(o){return o.segments.length>0?new dt([],{[ht]:o}):o}function Dt(o){const r={};for(const t of Object.keys(o.children)){const u=Dt(o.children[t]);(u.segments.length>0||u.hasChildren())&&(r[t]=u)}return function Ot(o){if(1===o.numberOfChildren&&o.children[ht]){const r=o.children[ht];return new dt(o.segments.concat(r.segments),r.children)}return o}(new dt(o.segments,r))}function wt(o){return o instanceof fn}function we(o,r,e,t,s){if(0===e.length)return Ji(r.root,r.root,r.root,t,s);const u=function yr(o){if("string"==typeof o[0]&&1===o.length&&"/"===o[0])return new Ea(!0,0,o);let r=0,e=!1;const t=o.reduce((s,u,d)=>{if("object"==typeof u&&null!=u){if(u.outlets){const l={};return wi(u.outlets,(n,i)=>{l[i]="string"==typeof n?n.split("/"):n}),[...s,{outlets:l}]}if(u.segmentPath)return[...s,u.segmentPath]}return"string"!=typeof u?[...s,u]:0===d?(u.split("/").forEach((l,n)=>{0==n&&"."===l||(0==n&&""===l?e=!0:".."===l?r++:""!=l&&s.push(l))}),s):[...s,u]},[]);return new Ea(e,r,t)}(e);return u.toRoot()?Ji(r.root,r.root,new dt([],{}),t,s):function d(n){const i=function su(o,r,e,t){if(o.isAbsolute)return new Gi(r.root,!0,0);if(-1===t)return new Gi(e,e===r.root,0);return function Wb(o,r,e){let t=o,s=r,u=e;for(;u>s;){if(u-=s,t=t.parent,!t)throw new _.vHH(4005,!1);s=t.segments.length}return new Gi(t,!1,s-u)}(e,t+(ot(o.commands[0])?0:1),o.numberOfDoubleDots)}(u,r,o.snapshot?._urlSegment,n),a=i.processChildren?Fr(i.segmentGroup,i.index,u.commands):$p(i.segmentGroup,i.index,u.commands);return Ji(r.root,i.segmentGroup,a,t,s)}(o.snapshot?._lastPathIndex)}function ot(o){return"object"==typeof o&&null!=o&&!o.outlets&&!o.segmentPath}function En(o){return"object"==typeof o&&null!=o&&o.outlets}function Ji(o,r,e,t,s){let d,u={};t&&wi(t,(n,i)=>{u[i]=Array.isArray(n)?n.map(a=>`${a}`):`${n}`}),d=o===r?e:Yt(o,r,e);const l=Ge(Dt(d));return new fn(l,u,s)}function Yt(o,r,e){const t={};return wi(o.children,(s,u)=>{t[u]=s===r?e:Yt(s,r,e)}),new dt(o.segments,t)}class Ea{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&ot(t[0]))throw new _.vHH(4003,!1);const s=t.find(En);if(s&&s!==nu(t))throw new _.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gi{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function $p(o,r,e){if(o||(o=new dt([],{})),0===o.segments.length&&o.hasChildren())return Fr(o,r,e);const t=function Wi(o,r,e){let t=0,s=r;const u={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return u;const d=o.segments[s],l=e[t];if(En(l))break;const n=`${l}`,i=t0&&void 0===n)break;if(n&&i&&"object"==typeof i&&void 0===i.outlets){if(!$n(n,i,d))return u;t+=2}else{if(!$n(n,{},d))return u;t++}s++}return{match:!0,pathIndex:s,commandIndex:t}}(o,r,e),s=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof u&&(u=[u]),null!==u&&(s[d]=$p(o.children[d],r,u))}),wi(o.children,(u,d)=>{void 0===t[d]&&(s[d]=u)}),new dt(o.segments,s)}}function Mn(o,r,e){const t=o.segments.slice(0,r);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=Mn(new dt([],{}),0,e))}),r}function Ma(o){const r={};return wi(o,(e,t)=>r[t]=`${e}`),r}function $n(o,r,e){return o==e.path&&Tn(r,e.parameters)}class vr{constructor(r,e){this.id=r,this.url=e}}class ec extends vr{constructor(r,e,t="imperative",s=null){super(r,e),this.type=0,this.navigationTrigger=t,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ur extends vr{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class tc extends vr{constructor(r,e,t,s){super(r,e),this.reason=t,this.code=s,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ic extends vr{constructor(r,e,t,s){super(r,e),this.error=t,this.target=s,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class lu extends vr{constructor(r,e,t,s){super(r,e),this.urlAfterRedirects=t,this.state=s,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yp extends vr{constructor(r,e,t,s){super(r,e),this.urlAfterRedirects=t,this.state=s,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cu extends vr{constructor(r,e,t,s,u){super(r,e),this.urlAfterRedirects=t,this.state=s,this.shouldActivate=u,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Qb extends vr{constructor(r,e,t,s){super(r,e),this.urlAfterRedirects=t,this.state=s,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Jp extends vr{constructor(r,e,t,s){super(r,e),this.urlAfterRedirects=t,this.state=s,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class du{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Kp{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Zp{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xp{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ef{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class uu{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tf{constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Li{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=Qn(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=Qn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=zt(r,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==r)}pathFromRoot(r){return zt(r,this._root).map(e=>e.value)}}function Qn(o,r){if(o===r.value)return r;for(const e of r.children){const t=Qn(o,e);if(t)return t}return null}function zt(o,r){if(o===r.value)return[r];for(const e of r.children){const t=zt(o,e);if(t.length)return t.unshift(r),t}return[]}class Yn{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function wo(o){const r={};return o&&o.children.forEach(e=>r[e.value.outlet]=e),r}class hu extends Li{constructor(r,e){super(r),this.snapshot=e,ac(this,r)}toString(){return this.snapshot.toString()}}function nf(o,r){const e=function Jb(o,r){const d=new Da([],{},{},"",{},ht,r,null,o.root,-1,{});return new rc("",new Yn(d,[]))}(o,r),t=new Nt([new Sa("",{})]),s=new Nt({}),u=new Nt({}),d=new Nt({}),l=new Nt(""),n=new Nr(t,s,d,l,u,ht,r,e.root);return n.snapshot=e.root,new hu(new Yn(n,[]),e)}class Nr{constructor(r,e,t,s,u,d,l,n){this.url=r,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this._futureSnapshot=n}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,qe.U)(r=>xa(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,qe.U)(r=>xa(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Is(o,r="emptyOnly"){const e=o.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const s=e[t],u=e[t-1];if(s.routeConfig&&""===s.routeConfig.path)t--;else{if(u.component)break;t--}}return function nc(o){return o.reduce((r,e)=>({params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class Da{constructor(r,e,t,s,u,d,l,n,i,a,c,h){this.url=r,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this.routeConfig=n,this._urlSegment=i,this._lastPathIndex=a,this._correctedLastPathIndex=h??a,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=xa(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xa(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class rc extends Li{constructor(r,e){super(e),this.url=r,ac(this,e)}toString(){return rf(this._root)}}function ac(o,r){r.value._routerState=o,r.children.forEach(e=>ac(o,e))}function rf(o){const r=o.children.length>0?` { ${o.children.map(rf).join(", ")} } `:"";return`${o.value}${r}`}function Jn(o){if(o.snapshot){const r=o.snapshot,e=o._futureSnapshot;o.snapshot=e,Tn(r.queryParams,e.queryParams)||o.queryParams.next(e.queryParams),r.fragment!==e.fragment&&o.fragment.next(e.fragment),Tn(r.params,e.params)||o.params.next(e.params),function Gp(o,r){if(o.length!==r.length)return!1;for(let e=0;eTn(e.parameters,r[t].parameters))}(o.url,r.url);return e&&!(!o.parent!=!r.parent)&&(!o.parent||Ha(o.parent,r.parent))}function ks(o,r,e){if(e&&o.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const s=function Bs(o,r,e){return r.children.map(t=>{for(const s of e.children)if(o.shouldReuseRoute(t.value,s.value.snapshot))return ks(o,t,s);return ks(o,t)})}(o,r,e);return new Yn(t,s)}{if(o.shouldAttach(r.value)){const u=o.retrieve(r.value);if(null!==u){const d=u.route;return d.value._futureSnapshot=r.value,d.children=r.children.map(l=>ks(o,l)),d}}const t=function pu(o){return new Nr(new Nt(o.url),new Nt(o.params),new Nt(o.queryParams),new Nt(o.fragment),new Nt(o.data),o.outlet,o.component,o)}(r.value),s=r.children.map(u=>ks(o,u));return new Yn(t,s)}}const fu="ngNavigationCancelingError";function af(o,r){const{redirectTo:e,navigationBehaviorOptions:t}=wt(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,s=Zb(!1,0,r);return s.url=e,s.navigationBehaviorOptions=t,s}function Zb(o,r,e){const t=new Error("NavigationCancelingError: "+(o||""));return t[fu]=!0,t.cancellationCode=r,e&&(t.url=e),t}function Xb(o){return Vs(o)&&wt(o.url)}function Vs(o){return o&&o[fu]}class sf{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new yo,this.attachRef=null}}let yo=(()=>{class o{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const s=this.getOrCreateContext(e);s.outlet=t,this.contexts.set(e,s)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new sf,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Ra=!1;let oc=(()=>{class o{constructor(e,t,s,u,d){this.parentContexts=e,this.location=t,this.changeDetector=u,this.environmentInjector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new _.vpe,this.deactivateEvents=new _.vpe,this.attachEvents=new _.vpe,this.detachEvents=new _.vpe,this.name=s||ht,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new _.vHH(4012,Ra);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new _.vHH(4012,Ra);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new _.vHH(4012,Ra);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new _.vHH(4013,Ra);this._activatedRoute=e;const s=this.location,d=e._futureSnapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,n=new lf(e,l,s.injector);if(t&&function vo(o){return!!o.resolveComponentFactory}(t)){const i=t.resolveComponentFactory(d);this.activated=s.createComponent(i,s.length,n)}else this.activated=s.createComponent(d,{index:s.length,injector:n,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(yo),_.Y36(_.s_b),_.$8M("name"),_.Y36(_.sBO),_.Y36(_.lqb))},o.\u0275dir=_.lG2({type:o,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),o})();class lf{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===Nr?this.route:r===yo?this.childContexts:this.parent.get(r,e)}}let cf=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},dependencies:[oc],encapsulation:2}),o})();function Pa(o,r){return o.providers&&!o._injector&&(o._injector=(0,_.MMx)(o.providers,r,`Route: ${o.path}`)),o._injector??r}function Ia(o){const r=o.children&&o.children.map(Ia),e=r?{...o,children:r}:{...o};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==ht&&(e.component=cf),e}function Ki(o){return o.outlet||ht}function lc(o,r){const e=o.filter(t=>Ki(t)===r);return e.push(...o.filter(t=>Ki(t)!==r)),e}function Os(o){if(!o)return null;if(o.routeConfig?._injector)return o.routeConfig._injector;for(let r=o.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class nC{constructor(r,e,t,s){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=s}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Jn(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const s=wo(e);r.children.forEach(u=>{const d=u.value.outlet;this.deactivateRoutes(u,s[d],t),delete s[d]}),wi(s,(u,d)=>{this.deactivateRouteAndItsChildren(u,t)})}deactivateRoutes(r,e,t){const s=r.value,u=e?e.value:null;if(s===u)if(s.component){const d=t.getContext(s.outlet);d&&this.deactivateChildRoutes(r,e,d.children)}else this.deactivateChildRoutes(r,e,t);else u&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),s=t&&r.value.component?t.children:e,u=wo(r);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);if(t&&t.outlet){const d=t.outlet.detach(),l=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:d,route:r,contexts:l})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),s=t&&r.value.component?t.children:e,u=wo(r);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const s=wo(e);r.children.forEach(u=>{this.activateRoutes(u,s[u.value.outlet],t),this.forwardEvent(new uu(u.value.snapshot))}),r.children.length&&this.forwardEvent(new Xp(r.value.snapshot))}activateRoutes(r,e,t){const s=r.value,u=e?e.value:null;if(Jn(s),s===u)if(s.component){const d=t.getOrCreateContext(s.outlet);this.activateChildRoutes(r,e,d.children)}else this.activateChildRoutes(r,e,t);else if(s.component){const d=t.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const l=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),d.children.onOutletReAttached(l.contexts),d.attachRef=l.componentRef,d.route=l.route.value,d.outlet&&d.outlet.attach(l.componentRef,l.route.value),Jn(l.route.value),this.activateChildRoutes(r,null,d.children)}else{const l=Os(s.snapshot),n=l?.get(_._Vd)??null;d.attachRef=null,d.route=s,d.resolver=n,d.injector=l,d.outlet&&d.outlet.activateWith(s,d.injector),this.activateChildRoutes(r,null,d.children)}}else this.activateChildRoutes(r,null,t)}}class gu{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class Ls{constructor(r,e){this.component=r,this.route=e}}function uf(o,r,e){const t=o._root;return qr(t,r?r._root:null,e,[t.value])}function dc(o,r,e){return(Os(r)??e).get(o)}function qr(o,r,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=wo(r);return o.children.forEach(d=>{(function js(o,r,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=o.value,d=r?r.value:null,l=e?e.getContext(o.value.outlet):null;if(d&&u.routeConfig===d.routeConfig){const n=function rC(o,r,e){if("function"==typeof e)return e(o,r);switch(e){case"pathParamsChange":return!wr(o.url,r.url);case"pathParamsOrQueryParamsChange":return!wr(o.url,r.url)||!Tn(o.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ha(o,r)||!Tn(o.queryParams,r.queryParams);default:return!Ha(o,r)}}(d,u,u.routeConfig.runGuardsAndResolvers);n?s.canActivateChecks.push(new gu(t)):(u.data=d.data,u._resolvedData=d._resolvedData),qr(o,r,u.component?l?l.children:null:e,t,s),n&&l&&l.outlet&&l.outlet.isActivated&&s.canDeactivateChecks.push(new Ls(l.outlet.component,d))}else d&&Ao(r,l,s),s.canActivateChecks.push(new gu(t)),qr(o,null,u.component?l?l.children:null:e,t,s)})(d,u[d.value.outlet],e,t.concat([d.value]),s),delete u[d.value.outlet]}),wi(u,(d,l)=>Ao(d,e.getContext(l),s)),s}function Ao(o,r,e){const t=wo(o),s=o.value;wi(t,(u,d)=>{Ao(u,s.component?r?r.children.getContext(d):null:r,e)}),e.canDeactivateChecks.push(new Ls(s.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,s))}function xo(o){return"function"==typeof o}function zr(o){return o instanceof Rt.K||"EmptyError"===o?.name}const Ar=Symbol("INITIAL_VALUE");function ka(){return(0,Bi.w)(o=>(0,_r.a)(o.map(r=>r.pipe((0,ni.q)(1),Si(Ar)))).pipe((0,qe.U)(r=>{for(const e of r)if(!0!==e){if(e===Ar)return Ar;if(!1===e||e instanceof fn)return e}return!0}),(0,$t.h)(r=>r!==Ar),(0,ni.q)(1)))}function lC(o){return(0,wa.z)((0,Qt.b)(r=>{if(wt(r))throw af(0,r)}),(0,qe.U)(r=>!0===r))}const gf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Mo(o,r,e,t,s){const u=_f(o,r,e);return u.matched?function K0(o,r,e,t){const s=r.canMatch;if(!s||0===s.length)return(0,ke.of)(!0);const u=s.map(d=>{const l=o.get(d),n=function ff(o){return o&&xo(o.canMatch)}(l)?l.canMatch(r,e):l(r,e);return Wn(n)});return(0,ke.of)(u).pipe(ka(),lC())}(t=Pa(r,t),r,e).pipe((0,qe.U)(d=>!0===d?u:{...gf})):(0,ke.of)(u)}function _f(o,r,e){if(""===r.path)return"full"===r.pathMatch&&(o.hasChildren()||e.length>0)?{...gf}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const s=(r.matcher||zp)(e,o,r);if(!s)return{...gf};const u={};wi(s.posParams,(l,n)=>{u[n]=l.path});const d=s.consumed.length>0?{...u,...s.consumed[s.consumed.length-1].parameters}:u;return{matched:!0,consumedSegments:s.consumed,remainingSegments:e.slice(s.consumed.length),parameters:d,positionalParamSegments:s.posParams??{}}}function Cu(o,r,e,t,s="corrected"){if(e.length>0&&function Fs(o,r,e){return e.some(t=>uc(o,r,t)&&Ki(t)!==ht)}(o,e,t)){const d=new dt(r,function wu(o,r,e,t){const s={};s[ht]=t,t._sourceSegment=o,t._segmentIndexShift=r.length;for(const u of e)if(""===u.path&&Ki(u)!==ht){const d=new dt([],{});d._sourceSegment=o,d._segmentIndexShift=r.length,s[Ki(u)]=d}return s}(o,r,t,new dt(e,o.children)));return d._sourceSegment=o,d._segmentIndexShift=r.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function Z0(o,r,e){return e.some(t=>uc(o,r,t))}(o,e,t)){const d=new dt(o.segments,function fi(o,r,e,t,s,u){const d={};for(const l of t)if(uc(o,e,l)&&!s[Ki(l)]){const n=new dt([],{});n._sourceSegment=o,n._segmentIndexShift="legacy"===u?o.segments.length:r.length,d[Ki(l)]=n}return{...s,...d}}(o,r,e,t,o.children,s));return d._sourceSegment=o,d._segmentIndexShift=r.length,{segmentGroup:d,slicedSegments:e}}const u=new dt(o.segments,o.children);return u._sourceSegment=o,u._segmentIndexShift=r.length,{segmentGroup:u,slicedSegments:e}}function uc(o,r,e){return(!(o.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Zi(o,r,e,t){return!!(Ki(o)===t||t!==ht&&uc(r,e,o))&&("**"===o.path||_f(r,o,e).matched)}function Zn(o,r,e){return 0===r.length&&!o.children[e]}const Us=!1;class Ba{constructor(r){this.segmentGroup=r||null}}class Do{constructor(r){this.urlTree=r}}function Ho(o){return(0,Ci._)(new Ba(o))}function bf(o){return(0,Ci._)(new Do(o))}class Cf{constructor(r,e,t,s,u){this.injector=r,this.configLoader=e,this.urlSerializer=t,this.urlTree=s,this.config=u,this.allowRedirects=!0}apply(){const r=Cu(this.urlTree.root,[],[],this.config).segmentGroup,e=new dt(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,ht).pipe((0,qe.U)(u=>this.createUrlTree(Dt(u),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Et.K)(u=>{if(u instanceof Do)return this.allowRedirects=!1,this.match(u.urlTree);throw u instanceof Ba?this.noMatchError(u):u}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,ht).pipe((0,qe.U)(s=>this.createUrlTree(Dt(s),r.queryParams,r.fragment))).pipe((0,Et.K)(s=>{throw s instanceof Ba?this.noMatchError(s):s}))}noMatchError(r){return new _.vHH(4002,Us)}createUrlTree(r,e,t){const s=Ge(r);return new fn(s,e,t)}expandSegmentGroup(r,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,qe.U)(u=>new dt([],u))):this.expandSegment(r,t,e,t.segments,s,!0)}expandChildren(r,e,t){const s=[];for(const u of Object.keys(t.children))"primary"===u?s.unshift(u):s.push(u);return(0,_t.D)(s).pipe((0,Vt.b)(u=>{const d=t.children[u],l=lc(e,u);return this.expandSegmentGroup(r,l,d,u).pipe((0,qe.U)(n=>({segment:n,outlet:u})))}),va((u,d)=>(u[d.outlet]=d.segment,u),{}),qp())}expandSegment(r,e,t,s,u,d){return(0,_t.D)(t).pipe((0,Vt.b)(l=>this.expandSegmentAgainstRoute(r,e,t,l,s,u,d).pipe((0,Et.K)(i=>{if(i instanceof Ba)return(0,ke.of)(null);throw i}))),(0,Vi.P)(l=>!!l),(0,Et.K)((l,n)=>{if(zr(l))return Zn(e,s,u)?(0,ke.of)(new dt([],{})):Ho(e);throw l}))}expandSegmentAgainstRoute(r,e,t,s,u,d,l){return Zi(s,e,u,d)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(r,e,s,u,d):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,s,u,d):Ho(e):Ho(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,s,u,d){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,s,d):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,s,u,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,s){const u=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?bf(u):this.lineralizeSegments(t,u).pipe((0,pi.z)(d=>{const l=new dt(d,{});return this.expandSegment(r,l,e,d,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,s,u,d){const{matched:l,consumedSegments:n,remainingSegments:i,positionalParamSegments:a}=_f(e,s,u);if(!l)return Ho(e);const c=this.applyRedirectCommands(n,s.redirectTo,a);return s.redirectTo.startsWith("/")?bf(c):this.lineralizeSegments(s,c).pipe((0,pi.z)(h=>this.expandSegment(r,e,t,h.concat(i),d,!1)))}matchSegmentAgainstRoute(r,e,t,s,u){return"**"===t.path?(r=Pa(t,r),t.loadChildren?(t._loadedRoutes?(0,ke.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(r,t)).pipe((0,qe.U)(l=>(t._loadedRoutes=l.routes,t._loadedInjector=l.injector,new dt(s,{})))):(0,ke.of)(new dt(s,{}))):Mo(e,t,s,r).pipe((0,Bi.w)(({matched:d,consumedSegments:l,remainingSegments:n})=>d?this.getChildConfig(r=t._injector??r,t,s).pipe((0,pi.z)(a=>{const c=a.injector??r,h=a.routes,{segmentGroup:f,slicedSegments:m}=Cu(e,l,n,h),p=new dt(f.segments,f.children);if(0===m.length&&p.hasChildren())return this.expandChildren(c,h,p).pipe((0,qe.U)(Te=>new dt(l,Te)));if(0===h.length&&0===m.length)return(0,ke.of)(new dt(l,{}));const w=Ki(t)===u;return this.expandSegment(c,p,h,m,w?ht:u,!0).pipe((0,qe.U)(J=>new dt(l.concat(J.segments),J.children)))})):Ho(e)))}getChildConfig(r,e,t){return e.children?(0,ke.of)({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?(0,ke.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function J0(o,r,e,t){const s=r.canLoad;if(void 0===s||0===s.length)return(0,ke.of)(!0);const u=s.map(d=>{const l=o.get(d),n=function aC(o){return o&&xo(o.canLoad)}(l)?l.canLoad(r,e):l(r,e);return Wn(n)});return(0,ke.of)(u).pipe(ka(),lC())}(r,e,t).pipe((0,pi.z)(s=>s?this.configLoader.loadChildren(r,e).pipe((0,Qt.b)(u=>{e._loadedRoutes=u.routes,e._loadedInjector=u.injector})):function X0(o){return(0,Ci._)(Zb(Us,3))}())):(0,ke.of)({routes:[],injector:r})}lineralizeSegments(r,e){let t=[],s=e.root;for(;;){if(t=t.concat(s.segments),0===s.numberOfChildren)return(0,ke.of)(t);if(s.numberOfChildren>1||!s.children[ht])return(0,Ci._)(new _.vHH(4e3,Us));s=s.children[ht]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreateUrlTree(r,e,t,s){const u=this.createSegmentGroup(r,e.root,t,s);return new fn(u,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return wi(r,(s,u)=>{if("string"==typeof s&&s.startsWith(":")){const l=s.substring(1);t[u]=e[l]}else t[u]=s}),t}createSegmentGroup(r,e,t,s){const u=this.createSegments(r,e.segments,t,s);let d={};return wi(e.children,(l,n)=>{d[n]=this.createSegmentGroup(r,l,t,s)}),new dt(u,d)}createSegments(r,e,t,s){return e.map(u=>u.path.startsWith(":")?this.findPosParam(r,u,s):this.findOrReturn(u,t))}findPosParam(r,e,t){const s=t[e.path.substring(1)];if(!s)throw new _.vHH(4001,Us);return s}findOrReturn(r,e){let t=0;for(const s of e){if(s.path===r.path)return e.splice(t),s;t++}return r}}class Po{}class dC{constructor(r,e,t,s,u,d,l,n){this.injector=r,this.rootComponentType=e,this.config=t,this.urlTree=s,this.url=u,this.paramsInheritanceStrategy=d,this.relativeLinkResolution=l,this.urlSerializer=n}recognize(){const r=Cu(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,ht).pipe((0,qe.U)(e=>{if(null===e)return null;const t=new Da([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ht,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new Yn(t,e),u=new rc(this.url,s);return this.inheritParamsAndData(u._root),u}))}inheritParamsAndData(r){const e=r.value,t=Is(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(r,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.processChildren(r,e,t):this.processSegment(r,e,t,t.segments,s)}processChildren(r,e,t){return(0,_t.D)(Object.keys(t.children)).pipe((0,Vt.b)(s=>{const u=t.children[s],d=lc(e,s);return this.processSegmentGroup(r,d,u,s)}),va((s,u)=>s&&u?(s.push(...u),s):null),function Jl(o,r=!1){return(0,ci.e)((e,t)=>{let s=0;e.subscribe((0,Lt.x)(t,u=>{const d=o(u,s++);(d||r)&&t.next(u),!d&&t.complete()}))})}(s=>null!==s),(0,Oi.d)(null),qp(),(0,qe.U)(s=>{if(null===s)return null;const u=yf(s);return function uC(o){o.sort((r,e)=>r.value.outlet===ht?-1:e.value.outlet===ht?1:r.value.outlet.localeCompare(e.value.outlet))}(u),u}))}processSegment(r,e,t,s,u){return(0,_t.D)(e).pipe((0,Vt.b)(d=>this.processSegmentAgainstRoute(d._injector??r,d,t,s,u)),(0,Vi.P)(d=>!!d),(0,Et.K)(d=>{if(zr(d))return Zn(t,s,u)?(0,ke.of)([]):(0,ke.of)(null);throw d}))}processSegmentAgainstRoute(r,e,t,s,u){if(e.redirectTo||!Zi(e,t,s,u))return(0,ke.of)(null);let d;if("**"===e.path){const l=s.length>0?nu(s).parameters:{},n=Ns(t)+s.length,i=new Da(s,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Io(e),Ki(e),e.component??e._loadedComponent??null,e,hc(t),n,pc(e),n);d=(0,ke.of)({snapshot:i,consumedSegments:[],remainingSegments:[]})}else d=Mo(t,e,s,r).pipe((0,qe.U)(({matched:l,consumedSegments:n,remainingSegments:i,parameters:a})=>{if(!l)return null;const c=Ns(t)+n.length;return{snapshot:new Da(n,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Io(e),Ki(e),e.component??e._loadedComponent??null,e,hc(t),c,pc(e),c),consumedSegments:n,remainingSegments:i}}));return d.pipe((0,Bi.w)(l=>{if(null===l)return(0,ke.of)(null);const{snapshot:n,consumedSegments:i,remainingSegments:a}=l;r=e._injector??r;const c=e._loadedInjector??r,h=function hC(o){return o.children?o.children:o.loadChildren?o._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:m}=Cu(t,i,a,h.filter(w=>void 0===w.redirectTo),this.relativeLinkResolution);if(0===m.length&&f.hasChildren())return this.processChildren(c,h,f).pipe((0,qe.U)(w=>null===w?null:[new Yn(n,w)]));if(0===h.length&&0===m.length)return(0,ke.of)([new Yn(n,[])]);const p=Ki(e)===u;return this.processSegment(c,h,f,m,p?ht:u).pipe((0,qe.U)(w=>null===w?null:[new Yn(n,w)]))}))}}function pC(o){const r=o.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function yf(o){const r=[],e=new Set;for(const t of o){if(!pC(t)){r.push(t);continue}const s=r.find(u=>t.value.routeConfig===u.value.routeConfig);void 0!==s?(s.children.push(...t.children),e.add(s)):r.push(t)}for(const t of e){const s=yf(t.children);r.push(new Yn(t.value,s))}return r.filter(t=>!e.has(t))}function hc(o){let r=o;for(;r._sourceSegment;)r=r._sourceSegment;return r}function Ns(o){let r=o,e=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift??0;return e-1}function Io(o){return o.data||{}}function pc(o){return o.resolve||{}}const yu=Symbol("RouteTitle");function Af(o){return"string"==typeof o.title||null===o.title}function Kt(o){return(0,Bi.w)(r=>{const e=o(r);return e?(0,_t.D)(e).pipe((0,qe.U)(()=>r)):(0,ke.of)(r)})}let vu=(()=>{class o{buildTitle(e){let t,s=e.root;for(;void 0!==s;)t=this.getResolvedTitleForRoute(s)??t,s=s.children.find(u=>u.outlet===ht);return t}getResolvedTitleForRoute(e){return e.data[yu]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:function(){return(0,_.f3M)(Au)},providedIn:"root"}),o})(),Au=(()=>{class o extends vu{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(X))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class xu{}class bC extends class zs{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const Su=new _.OlP("",{providedIn:"root",factory:()=>({})}),Va=new _.OlP("ROUTES");let gc=(()=>{class o{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,ke.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Wn(e.loadComponent()).pipe((0,Qt.b)(u=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=u}),Aa(()=>{this.componentLoaders.delete(e)})),s=new xs(t,()=>new Me.x).pipe(Sn());return this.componentLoaders.set(e,s),s}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,ke.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const u=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,qe.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(t);let n,i,a=!1;Array.isArray(l)?i=l:(n=l.create(e).injector,i=iu(n.get(Va,[],_.XFs.Self|_.XFs.Optional)));return{routes:i.map(Ia),injector:n}}),Aa(()=>{this.childrenLoaders.delete(t)})),d=new xs(u,()=>new Me.x).pipe(Sn());return this.childrenLoaders.set(t,d),d}loadModuleFactoryOrRoutes(e){return Wn(e()).pipe((0,pi.z)(t=>t instanceof _.YKP||Array.isArray(t)?(0,ke.of)(t):(0,_t.D)(this.compiler.compileModuleAsync(t))))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.zs3),_.LFG(_.Sil))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Gs{}class wC{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function $s(o){throw o}function _c(o,r,e){return r.parse("/")}const xf={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},yC={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Oa(){const o=(0,_.f3M)(_o),r=(0,_.f3M)(yo),e=(0,_.f3M)(M.Ye),t=(0,_.f3M)(_.zs3),s=(0,_.f3M)(_.Sil),u=(0,_.f3M)(Va,{optional:!0})??[],d=(0,_.f3M)(Su,{optional:!0})??{},l=(0,_.f3M)(Au),n=(0,_.f3M)(vu,{optional:!0}),i=(0,_.f3M)(Gs,{optional:!0}),a=(0,_.f3M)(xu,{optional:!0}),c=new Zt(null,o,r,e,t,s,iu(u));return i&&(c.urlHandlingStrategy=i),a&&(c.routeReuseStrategy=a),c.titleStrategy=n??l,function vC(o,r){o.errorHandler&&(r.errorHandler=o.errorHandler),o.malformedUriErrorHandler&&(r.malformedUriErrorHandler=o.malformedUriErrorHandler),o.onSameUrlNavigation&&(r.onSameUrlNavigation=o.onSameUrlNavigation),o.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=o.paramsInheritanceStrategy),o.relativeLinkResolution&&(r.relativeLinkResolution=o.relativeLinkResolution),o.urlUpdateStrategy&&(r.urlUpdateStrategy=o.urlUpdateStrategy),o.canceledNavigationResolution&&(r.canceledNavigationResolution=o.canceledNavigationResolution)}(d,c),c}let Zt=(()=>{class o{constructor(e,t,s,u,d,l,n){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=s,this.location=u,this.config=n,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Me.x,this.errorHandler=$s,this.malformedUriErrorHandler=_c,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,ke.of)(void 0),this.urlHandlingStrategy=new wC,this.routeReuseStrategy=new bC,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=d.get(gc),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new Kp(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new du(h)),this.ngModule=d.get(_.h0i),this.console=d.get(_.c2e);const c=d.get(_.R0b);this.isNgZoneEnabled=c instanceof _.R0b&&_.R0b.isInAngularZone(),this.resetConfig(n),this.currentUrlTree=function Ts(){return new fn(new dt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=nf(this.currentUrlTree,this.rootComponentType),this.transitions=new Nt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,$t.h)(s=>0!==s.id),(0,qe.U)(s=>({...s,extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),(0,Bi.w)(s=>{let u=!1,d=!1;return(0,ke.of)(s).pipe((0,Qt.b)(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Bi.w)(l=>{const n=this.browserUrlTree.toString(),i=!this.navigated||l.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return xC(l.source)&&(this.browserUrlTree=l.extractedUrl),(0,ke.of)(l).pipe((0,Bi.w)(c=>{const h=this.transitions.getValue();return t.next(new ec(c.id,this.serializeUrl(c.extractedUrl),c.source,c.restoredState)),h!==this.transitions.getValue()?qt.E:Promise.resolve(c)}),function ln(o,r,e,t){return(0,Bi.w)(s=>function ex(o,r,e,t,s){return new Cf(o,r,e,t,s).apply()}(o,r,e,s.extractedUrl,t).pipe((0,qe.U)(u=>({...s,urlAfterRedirects:u}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Qt.b)(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},s.urlAfterRedirects=c.urlAfterRedirects}),function fc(o,r,e,t,s,u){return(0,pi.z)(d=>function wf(o,r,e,t,s,u,d="emptyOnly",l="legacy"){return new dC(o,r,e,t,s,d,l,u).recognize().pipe((0,Bi.w)(n=>null===n?function tx(o){return new Ye.y(r=>r.error(o))}(new Po):(0,ke.of)(n)))}(o,r,e,d.urlAfterRedirects,t.serialize(d.urlAfterRedirects),t,s,u).pipe((0,qe.U)(l=>({...d,targetSnapshot:l}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Qt.b)(c=>{if(s.targetSnapshot=c.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=this.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);this.setBrowserUrl(f,c)}this.browserUrlTree=c.urlAfterRedirects}const h=new lu(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);t.next(h)}));if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:m,restoredState:p,extras:w}=l,R=new ec(h,this.serializeUrl(f),m,p);t.next(R);const J=nf(f,this.rootComponentType).snapshot;return s={...l,targetSnapshot:J,urlAfterRedirects:f,extras:{...w,skipLocationChange:!1,replaceUrl:!1}},(0,ke.of)(s)}return this.rawUrlTree=l.rawUrl,l.resolve(null),qt.E}),(0,Qt.b)(l=>{const n=new Yp(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(n)}),(0,qe.U)(l=>s={...l,guards:uf(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),function bu(o,r){return(0,pi.z)(e=>{const{targetSnapshot:t,currentSnapshot:s,guards:{canActivateChecks:u,canDeactivateChecks:d}}=e;return 0===d.length&&0===u.length?(0,ke.of)({...e,guardsResult:!0}):function Eo(o,r,e,t){return(0,_t.D)(o).pipe((0,pi.z)(s=>function Y0(o,r,e,t,s){const u=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!u||0===u.length)return(0,ke.of)(!0);const d=u.map(l=>{const n=dc(l,r,s);return Wn(function oC(o){return o&&xo(o.canDeactivate)}(n)?n.canDeactivate(o,r,e,t):n(o,r,e,t)).pipe((0,Vi.P)())});return(0,ke.of)(d).pipe(ka())}(s.component,s.route,e,r,t)),(0,Vi.P)(s=>!0!==s,!0))}(d,t,s,o).pipe((0,pi.z)(l=>l&&function So(o){return"boolean"==typeof o}(l)?function W0(o,r,e,t){return(0,_t.D)(r).pipe((0,Vt.b)(s=>(0,Ni.z)(function Pt(o,r){return null!==o&&r&&r(new Zp(o)),(0,ke.of)(!0)}(s.route.parent,t),function sC(o,r){return null!==o&&r&&r(new ef(o)),(0,ke.of)(!0)}(s.route,t),function Q0(o,r,e){const t=r[r.length-1],u=r.slice(0,r.length-1).reverse().map(d=>function hf(o){const r=o.routeConfig?o.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:o,guards:r}:null}(d)).filter(d=>null!==d).map(d=>on(()=>{const l=d.guards.map(n=>{const i=dc(n,d.node,e);return Wn(function _u(o){return o&&xo(o.canActivateChild)}(i)?i.canActivateChild(t,o):i(t,o)).pipe((0,Vi.P)())});return(0,ke.of)(l).pipe(ka())}));return(0,ke.of)(u).pipe(ka())}(o,s.path,e),function $0(o,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,ke.of)(!0);const s=t.map(u=>on(()=>{const d=dc(u,r,e);return Wn(function pf(o){return o&&xo(o.canActivate)}(d)?d.canActivate(r,o):d(r,o)).pipe((0,Vi.P)())}));return(0,ke.of)(s).pipe(ka())}(o,s.route,e))),(0,Vi.P)(s=>!0!==s,!0))}(t,u,o,r):(0,ke.of)(l)),(0,qe.U)(l=>({...e,guardsResult:l})))})}(this.ngModule.injector,l=>this.triggerEvent(l)),(0,Qt.b)(l=>{if(s.guardsResult=l.guardsResult,wt(l.guardsResult))throw af(0,l.guardsResult);const n=new cu(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.triggerEvent(n)}),(0,$t.h)(l=>!!l.guardsResult||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",3),!1)),Kt(l=>{if(l.guards.canActivateChecks.length)return(0,ke.of)(l).pipe((0,Qt.b)(n=>{const i=new Qb(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,Bi.w)(n=>{let i=!1;return(0,ke.of)(n).pipe(function gC(o,r){return(0,pi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:s}}=e;if(!s.length)return(0,ke.of)(e);let u=0;return(0,_t.D)(s).pipe((0,Vt.b)(d=>function _C(o,r,e,t){const s=o.routeConfig,u=o._resolve;return void 0!==s?.title&&!Af(s)&&(u[yu]=s.title),function vf(o,r,e,t){const s=function qs(o){return[...Object.keys(o),...Object.getOwnPropertySymbols(o)]}(o);if(0===s.length)return(0,ke.of)({});const u={};return(0,_t.D)(s).pipe((0,pi.z)(d=>function ko(o,r,e,t){const s=dc(o,r,t);return Wn(s.resolve?s.resolve(r,e):s(r,e))}(o[d],r,e,t).pipe((0,Vi.P)(),(0,Qt.b)(l=>{u[d]=l}))),Gn(1),(0,eu.h)(u),(0,Et.K)(d=>zr(d)?qt.E:(0,Ci._)(d)))}(u,o,r,t).pipe((0,qe.U)(d=>(o._resolvedData=d,o.data=Is(o,e).resolve,s&&Af(s)&&(o.data[yu]=s.title),null)))}(d.route,t,o,r)),(0,Qt.b)(()=>u++),Gn(1),(0,pi.z)(d=>u===s.length?(0,ke.of)(e):qt.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Qt.b)({next:()=>i=!0,complete:()=>{i||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",2))}}))}),(0,Qt.b)(n=>{const i=new Jp(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}))}),Kt(l=>{const n=i=>{const a=[];i.routeConfig?.loadComponent&&!i.routeConfig._loadedComponent&&a.push(this.configLoader.loadComponent(i.routeConfig).pipe((0,Qt.b)(c=>{i.component=c}),(0,qe.U)(()=>{})));for(const c of i.children)a.push(...n(c));return a};return(0,_r.a)(n(l.targetSnapshot.root)).pipe((0,Oi.d)(),(0,ni.q)(1))}),Kt(()=>this.afterPreactivation()),(0,qe.U)(l=>{const n=function Kb(o,r,e){const t=ks(o,r._root,e?e._root:void 0);return new hu(t,r)}(this.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return s={...l,targetRouterState:n}}),(0,Qt.b)(l=>{this.currentUrlTree=l.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(l.urlAfterRedirects,l.rawUrl),this.routerState=l.targetRouterState,"deferred"===this.urlUpdateStrategy&&(l.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,l),this.browserUrlTree=l.urlAfterRedirects)}),((o,r,e)=>(0,qe.U)(t=>(new nC(r,t.targetRouterState,t.currentRouterState,e).activate(o),t)))(this.rootContexts,this.routeReuseStrategy,l=>this.triggerEvent(l)),(0,Qt.b)({next(){u=!0},complete(){u=!0}}),Aa(()=>{u||d||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),(0,Et.K)(l=>{if(d=!0,Vs(l)){Xb(l)||(this.navigated=!0,this.restoreHistory(s,!0));const n=new tc(s.id,this.serializeUrl(s.extractedUrl),l.message,l.cancellationCode);if(t.next(n),Xb(l)){const i=this.urlHandlingStrategy.merge(l.url,this.rawUrlTree),a={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||xC(s.source)};this.scheduleNavigation(i,"imperative",null,a,{resolve:s.resolve,reject:s.reject,promise:s.promise})}else s.resolve(!1)}else{this.restoreHistory(s,!0);const n=new ic(s.id,this.serializeUrl(s.extractedUrl),l,s.targetSnapshot??void 0);t.next(n);try{s.resolve(this.errorHandler(l))}catch(i){s.reject(i)}}return qt.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const s={replaceUrl:!0},u=e.state?.navigationId?e.state:null;if(u){const l={...u};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const d=this.parseUrl(e.url);this.scheduleNavigation(d,t,u,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Ia),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:s,queryParams:u,fragment:d,queryParamsHandling:l,preserveFragment:n}=t,i=s||this.routerState.root,a=n?this.currentUrlTree.fragment:d;let c=null;switch(l){case"merge":c={...this.currentUrlTree.queryParams,...u};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=u||null}return null!==c&&(c=this.removeEmptyProps(c)),we(i,this.currentUrlTree,e,c,a??null)}navigateByUrl(e,t={skipLocationChange:!1}){const s=wt(e)?e:this.parseUrl(e),u=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(u,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function AC(o){for(let r=0;r{const u=e[s];return null!=u&&(t[s]=u),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Ur(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,s,u,d){if(this.disposed)return Promise.resolve(!1);let l,n,i;d?(l=d.resolve,n=d.reject,i=d.promise):i=new Promise((h,f)=>{l=h,n=f});const a=++this.navigationId;let c;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),c=s&&s.\u0275routerPageId?s.\u0275routerPageId:u.replaceUrl||u.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):c=0,this.setTransition({id:a,targetPageId:c,source:t,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:u,resolve:l,reject:n,promise:i,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),i.catch(h=>Promise.reject(h))}setBrowserUrl(e,t){const s=this.urlSerializer.serialize(e),u={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(s)||t.extras.replaceUrl?this.location.replaceState(s,"",u):this.location.go(s,"",u)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===s?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,s){const u=new tc(e.id,this.serializeUrl(e.extractedUrl),t,s);this.triggerEvent(u),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return o.\u0275fac=function(e){_.$Z()},o.\u0275prov=_.Yz7({token:o,factory:function(){return Oa()},providedIn:"root"}),o})();function xC(o){return"imperative"!==o}class Sf{}let Mu=(()=>{class o{constructor(e,t,s,u,d){this.router=e,this.injector=s,this.preloadingStrategy=u,this.loader=d}setUpPreloading(){this.subscription=this.router.events.pipe((0,$t.h)(e=>e instanceof Ur),(0,Vt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const s=[];for(const u of t){u.providers&&!u._injector&&(u._injector=(0,_.MMx)(u.providers,e,`Route: ${u.path}`));const d=u._injector??e,l=u._loadedInjector??d;u.loadChildren&&!u._loadedRoutes&&void 0===u.canLoad||u.loadComponent&&!u._loadedComponent?s.push(this.preloadConfig(d,u)):(u.children||u._loadedRoutes)&&s.push(this.processRoutes(l,u.children??u._loadedRoutes))}return(0,_t.D)(s).pipe((0,Ss.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let s;s=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,ke.of)(null);const u=s.pipe((0,pi.z)(d=>null===d?(0,ke.of)(void 0):(t._loadedRoutes=d.routes,t._loadedInjector=d.injector,this.processRoutes(d.injector??e,d.routes))));if(t.loadComponent&&!t._loadedComponent){const d=this.loader.loadComponent(t);return(0,_t.D)([u,d]).pipe((0,Ss.J)())}return u})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Zt),_.LFG(_.Sil),_.LFG(_.lqb),_.LFG(Sf),_.LFG(gc))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const Tf=new _.OlP("");let Ef=(()=>{class o{constructor(e,t,s={}){this.router=e,this.viewportScroller=t,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof ec?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Ur&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof tf&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new tf(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return o.\u0275fac=function(e){_.$Z()},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const EC=new _.OlP("ROUTER_FORROOT_GUARD"),Cc=new _.OlP(""),MC=[M.Ye,{provide:_o,useClass:Ms},{provide:Zt,useFactory:Oa},yo,{provide:Nr,useFactory:function Mf(o){return o.routerState.root},deps:[Zt]},gc];function wc(){return new _.PXZ("Router",Zt)}let Bo=(()=>{class o{constructor(e){}static forRoot(e,t){return{ngModule:o,providers:[MC,[],Qs(e),{provide:EC,useFactory:rx,deps:[[Zt,new _.FiY,new _.tp0]]},{provide:Su,useValue:t||{}},t?.useHash?{provide:M.S$,useClass:M.Do}:{provide:M.S$,useClass:M.b0},{provide:Tf,useFactory:()=>{const o=(0,_.f3M)(Zt),r=(0,_.f3M)(M.EM),e=(0,_.f3M)(Su);return e.scrollOffset&&r.setOffset(e.scrollOffset),new Ef(o,r,e)}},t?.preloadingStrategy?kC(t.preloadingStrategy):[],{provide:_.PXZ,multi:!0,useFactory:wc},t?.initialNavigation?Df(t):[],[{provide:Hu,useFactory:Du},{provide:_.tb,multi:!0,useExisting:Hu}]]}}static forChild(e){return{ngModule:o,providers:[Qs(e)]}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(EC,8))},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})();function rx(o){return"guarded"}function Qs(o){return[{provide:Va,multi:!0,useValue:o}]}function Du(){const o=(0,_.f3M)(_.zs3);return r=>{const e=o.get(_.z2F);if(r!==e.components[0])return;const t=o.get(Zt),s=o.get(Gr);1===o.get(Ru)&&t.initialNavigation(),o.get(Cc,null,_.XFs.Optional)?.setUpPreloading(),o.get(Tf,null,_.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),s.next(),s.complete()}}const Hu=new _.OlP("");function Df(o){return["disabled"===o.initialNavigation?[{provide:_.ip1,multi:!0,useFactory:()=>{const o=(0,_.f3M)(Zt);return()=>{o.setUpLocationChangeListener()}}},{provide:Ru,useValue:2}]:[],"enabledBlocking"===o.initialNavigation?[{provide:Ru,useValue:0},{provide:_.ip1,multi:!0,deps:[_.zs3],useFactory:o=>{const r=o.get(M.V_,Promise.resolve(null));let e=!1;return()=>r.then(()=>new Promise(s=>{const u=o.get(Zt),d=o.get(Gr);(function t(s){o.get(Zt).events.pipe((0,$t.h)(d=>d instanceof Ur||d instanceof tc||d instanceof ic),(0,qe.U)(d=>d instanceof Ur||d instanceof tc&&(0===d.code||1===d.code)&&null),(0,$t.h)(d=>null!==d),(0,ni.q)(1)).subscribe(()=>{s()})})(()=>{s(!0),e=!0}),u.afterPreactivation=()=>(s(!0),e||d.closed?(0,ke.of)(void 0):d),u.initialNavigation()}))}}]:[]]}const Gr=new _.OlP("",{factory:()=>new Me.x}),Ru=new _.OlP("",{providedIn:"root",factory:()=>1});function kC(o){return[Mu,{provide:Cc,useExisting:Mu},{provide:Sf,useExisting:o}]}let Oo=(()=>{class o{constructor(){this.title="linker"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-root"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},dependencies:[oc]}),o})();var $r=E(1214);let Pu;try{Pu=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Pu=!1}let Lo,mi=(()=>{class o{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,M.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Pu)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.Lbi))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Rf=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Iu(){if(Lo)return Lo;if("object"!=typeof document||!document)return Lo=new Set(Rf),Lo;let o=document.createElement("input");return Lo=new Set(Rf.filter(r=>(o.setAttribute("type",r),o.type===r))),Lo}let Ys,yc,jo,vc;function Xn(o){return function BC(){if(null==Ys&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ys=!0}))}finally{Ys=Ys||!1}return Ys}()?o:!!o.capture}function Pf(){if(null==jo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return jo=!1,jo;if("scrollBehavior"in document.documentElement.style)jo=!0;else{const o=Element.prototype.scrollTo;jo=!!o&&!/\{\s*\[native code\]\s*\}/.test(o.toString())}}return jo}function xr(){if("object"!=typeof document||!document)return 0;if(null==yc){const o=document.createElement("div"),r=o.style;o.dir="rtl",r.width="1px",r.overflow="auto",r.visibility="hidden",r.pointerEvents="none",r.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",o.appendChild(e),document.body.appendChild(o),yc=0,0===o.scrollLeft&&(o.scrollLeft=1,yc=0===o.scrollLeft?1:2),o.remove()}return yc}function Qr(o){if(function er(){if(null==vc){const o=typeof document<"u"?document.head:null;vc=!(!o||!o.createShadowRoot&&!o.attachShadow)}return vc}()){const r=o.getRootNode?o.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function Ac(){let o=typeof document<"u"&&document?document.activeElement:null;for(;o&&o.shadowRoot;){const r=o.shadowRoot.activeElement;if(r===o)break;o=r}return o}function mn(o){return o.composedPath?o.composedPath()[0]:o.target}function xc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Sr(o,...r){return r.length?r.some(e=>o[e]):o.altKey||o.shiftKey||o.ctrlKey||o.metaKey}var Pc=E(8372);function Ic(o){return(0,$t.h)((r,e)=>o<=e)}function Mi(o,r=Yl.y){return o=o??Zs,(0,ci.e)((e,t)=>{let s,u=!0;e.subscribe((0,Lt.x)(t,d=>{const l=r(d);(u||!o(s,l))&&(u=!1,s=l,t.next(d))}))})}function Zs(o,r){return o===r}var ju=E(5032);function It(o){return(0,ci.e)((r,e)=>{(0,zn.Xf)(o).subscribe((0,Lt.x)(e,()=>e.complete(),ju.Z)),!e.closed&&r.subscribe(e)})}function ut(o){return null!=o&&"false"!=`${o}`}function ji(o,r=0){return function ow(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o))}(o)?Number(o):r}function Xs(o){return Array.isArray(o)?o:[o]}function di(o){return null==o?"":"string"==typeof o?o:`${o}px`}function Xt(o){return o instanceof _.SBq?o.nativeElement:o}let tm=(()=>{class o{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),sw=(()=>{class o{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Xt(e);return new Ye.y(s=>{const d=this._observeElement(t).subscribe(s);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Me.x,s=this._mutationObserverFactory.create(u=>t.next(u));s&&s.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:s,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:s}=this._observedElements.get(e);t&&t.disconnect(),s.complete(),this._observedElements.delete(e)}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(tm))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Fu=(()=>{class o{constructor(e,t,s){this._contentObserver=e,this._elementRef=t,this._ngZone=s,this.event=new _.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ut(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=ji(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Pc.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(sw),_.Y36(_.SBq),_.Y36(_.R0b))},o.\u0275dir=_.lG2({type:o,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),o})(),el=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[tm]}),o})();const ja=new Set;let Xi,lw=(()=>{class o{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Jx}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function cw(o){if(!ja.has(o))try{Xi||(Xi=document.createElement("style"),Xi.setAttribute("type","text/css"),document.head.appendChild(Xi)),Xi.sheet&&(Xi.sheet.insertRule(`@media ${o} {body{ }}`,0),ja.add(o))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(mi))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Jx(o){return{matches:"all"===o||""===o,media:o,addListener:()=>{},removeListener:()=>{}}}let Kx=(()=>{class o{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Me.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Uu(Xs(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){const s=Uu(Xs(e)).map(d=>this._registerQuery(d).observable);let u=(0,_r.a)(s);return u=(0,Ni.z)(u.pipe((0,ni.q)(1)),u.pipe(Ic(1),(0,Pc.b)(0))),u.pipe((0,qe.U)(d=>{const l={matches:!1,breakpoints:{}};return d.forEach(({matches:n,query:i})=>{l.matches=l.matches||n,l.breakpoints[i]=n}),l}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),u={observable:new Ye.y(d=>{const l=n=>this._zone.run(()=>d.next(n));return t.addListener(l),()=>{t.removeListener(l)}}).pipe(Si(t),(0,qe.U)(({matches:d})=>({query:e,matches:d})),It(this._destroySubject)),mql:t};return this._queries.set(e,u),u}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(lw),_.LFG(_.R0b))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Uu(o){return o.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}let tl=(()=>{class o{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Nu(o){return!!(o.offsetWidth||o.offsetHeight||"function"==typeof o.getClientRects&&o.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function fw(o){try{return o.frameElement}catch{return null}}(function Gu(o){return o.ownerDocument&&o.ownerDocument.defaultView||window}(e));if(t&&(-1===qu(t)||!this.isVisible(t)))return!1;let s=e.nodeName.toLowerCase(),u=qu(e);return e.hasAttribute("contenteditable")?-1!==u:!("iframe"===s||"object"===s||this._platform.WEBKIT&&this._platform.IOS&&!function zu(o){let r=o.nodeName.toLowerCase(),e="input"===r&&o.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===s?!!e.hasAttribute("controls")&&-1!==u:"video"===s?-1!==u&&(null!==u||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function dm(o){return!function gw(o){return function bw(o){return"input"==o.nodeName.toLowerCase()}(o)&&"hidden"==o.type}(o)&&(function mw(o){let r=o.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(o)||function _w(o){return function Cw(o){return"a"==o.nodeName.toLowerCase()}(o)&&o.hasAttribute("href")}(o)||o.hasAttribute("contenteditable")||cm(o))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(mi))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function cm(o){if(!o.hasAttribute("tabindex")||void 0===o.tabIndex)return!1;let r=o.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function qu(o){if(!cm(o))return null;const r=parseInt(o.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class ww{constructor(r,e,t,s,u=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,u||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const s=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(s)return s}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,ni.q)(1)).subscribe(r)}}let Wu=(()=>{class o{constructor(e,t,s){this._checker=e,this._ngZone=t,this._document=s}create(e,t=!1){return new ww(e,this._checker,this._ngZone,this._document,t)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(tl),_.LFG(_.R0b),_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function um(o){return 0===o.buttons||0===o.offsetX&&0===o.offsetY}function qo(o){const r=o.touches&&o.touches[0]||o.changedTouches&&o.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const Sw=new _.OlP("cdk-input-modality-detector-options"),hm={ignoreKeys:[18,17,224,91,16]},Ua=Xn({passive:!0,capture:!0});let Qu=(()=>{class o{constructor(e,t,s,u){this._platform=e,this._mostRecentTarget=null,this._modality=new Nt(null),this._lastTouchMs=0,this._onKeydown=d=>{this._options?.ignoreKeys?.some(l=>l===d.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=mn(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(um(d)?"keyboard":"mouse"),this._mostRecentTarget=mn(d))},this._onTouchstart=d=>{qo(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=mn(d))},this._options={...hm,...u},this.modalityDetected=this._modality.pipe(Ic(1)),this.modalityChanged=this.modalityDetected.pipe(Mi()),e.isBrowser&&t.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,Ua),s.addEventListener("mousedown",this._onMousedown,Ua),s.addEventListener("touchstart",this._onTouchstart,Ua)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ua),document.removeEventListener("mousedown",this._onMousedown,Ua),document.removeEventListener("touchstart",this._onTouchstart,Ua))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(mi),_.LFG(_.R0b),_.LFG(M.K0),_.LFG(Sw,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const fm=new _.OlP("cdk-focus-monitor-default-options"),zo=Xn({passive:!0,capture:!0});let gn=(()=>{class o{constructor(e,t,s,u,d){this._ngZone=e,this._platform=t,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Me.x,this._rootNodeFocusAndBlurListener=l=>{for(let i=mn(l);i;i=i.parentElement)"focus"===l.type?this._onFocus(l,i):this._onBlur(l,i)},this._document=u,this._detectionMode=d?.detectionMode||0}monitor(e,t=!1){const s=Xt(e);if(!this._platform.isBrowser||1!==s.nodeType)return(0,ke.of)(null);const u=Qr(s)||this._getDocument(),d=this._elementInfo.get(s);if(d)return t&&(d.checkChildren=!0),d.subject;const l={checkChildren:t,subject:new Me.x,rootNode:u};return this._elementInfo.set(s,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(e){const t=Xt(e),s=this._elementInfo.get(t);s&&(s.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(s))}focusVia(e,t,s){const u=Xt(e);u===this._getDocument().activeElement?this._getClosestElementsInfo(u).forEach(([l,n])=>this._originChanged(l,t,n)):(this._setOrigin(t),"function"==typeof u.focus&&u.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const s=this._elementInfo.get(t),u=mn(e);!s||!s.checkChildren&&t!==u||this._originChanged(t,this._getFocusOrigin(u),s)}_onBlur(e,t){const s=this._elementInfo.get(t);!s||s.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(s,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,s=this._rootNodeFocusListenerCount.get(t)||0;s||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,zo),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,zo)}),this._rootNodeFocusListenerCount.set(t,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(It(this._stopInputModalityDetector)).subscribe(u=>{this._setOrigin(u,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const s=this._rootNodeFocusListenerCount.get(t);s>1?this._rootNodeFocusListenerCount.set(t,s-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,zo),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,zo),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,s){this._setClasses(e,t),this._emitOrigin(s,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((s,u)=>{(u===e||s.checkChildren&&u.contains(e))&&t.push([u,s])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:s}=this._inputModalityDetector;if("mouse"!==s||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const u=e.labels;if(u)for(let d=0;d{class o{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,_.f3M)(Kx).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,s=t&&t.getComputedStyle?t.getComputedStyle(e):null,u=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),u){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Ku,Ju,mm),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(Ku,Ju):2===t&&e.add(Ku,mm)}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(mi),_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Na=(()=>{class o{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Zu))},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[el]}),o})();const gm=new _.OlP("cdk-dir-doc",{providedIn:"root",factory:function eS(){return(0,_.f3M)(M.K0)}}),_m=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Hn=(()=>{class o{constructor(e){if(this.value="ltr",this.change=new _.vpe,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function Mw(o){const r=o?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?_m.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(gm,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Go=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})();const Pw=new _.OlP("mat-sanity-checks",{providedIn:"root",factory:function Rw(){return!0}});let Se=(()=>{class o{constructor(e,t,s){this._sanityChecks=t,this._document=s,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!xc()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Zu),_.LFG(Pw,8),_.LFG(M.K0))},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Go,Go]}),o})();function Vc(o){return class extends o{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=ut(r)}}}function qa(o,r){return class extends o{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Yr(o){return class extends o{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=ut(r)}}}function Xu(o){return class extends o{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,u=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);u!==r&&(this.errorState=u,this.stateChanges.next())}}}const Vw=new _.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function sS(){return(0,_.f3M)(_.soG)}});class bn{constructor(){this._localeChanges=new Me.x,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),s=this.isValid(e);return t&&s?!this.compareDate(r,e):t==s}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const nl=new _.OlP("mat-date-formats"),za=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function eh(o,r){const e=Array(o);for(let t=0;t{class o extends bn{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return eh(12,s=>this._format(t,new Date(2017,s,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return eh(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return eh(7,s=>this._format(t,new Date(2017,0,s+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,s){let u=this._createDateWithOverflow(e,t,s);return u.getMonth(),u}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const s=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(s,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let s=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(s)!=((this.getMonth(e)+t)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(za.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,s){const u=new Date;return u.setFullYear(e,t,s),u.setHours(0,0,0,0),u}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const s=new Date;return s.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),s.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(s)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Vw,8),_.LFG(mi))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const th={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Ow=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[{provide:bn,useClass:Oc}]}),o})(),Lw=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[{provide:nl,useValue:th}],imports:[Ow]}),o})(),Lc=(()=>{class o{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Fc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})();class Wo{constructor(r,e,t,s=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ym={enterDuration:225,exitDuration:150},$o=Xn({passive:!0}),Am=["mousedown","touchstart"],ih=["mouseup","mouseleave","touchend","touchcancel"];class xm{constructor(r,e,t,s){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=Xt(t))}fadeInRipple(r,e,t={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),u={...ym,...t.animation};t.centered&&(r=s.left+s.width/2,e=s.top+s.height/2);const d=t.radius||function Fw(o,r,e){const t=Math.max(Math.abs(o-e.left),Math.abs(o-e.right)),s=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+s*s)}(r,e,s),l=r-s.left,n=e-s.top,i=u.enterDuration,a=document.createElement("div");a.classList.add("mat-ripple-element"),a.style.left=l-d+"px",a.style.top=n-d+"px",a.style.height=2*d+"px",a.style.width=2*d+"px",null!=t.color&&(a.style.backgroundColor=t.color),a.style.transitionDuration=`${i}ms`,this._containerElement.appendChild(a);const c=window.getComputedStyle(a),f=c.transitionDuration,m="none"===c.transitionProperty||"0s"===f||"0s, 0s"===f,p=new Wo(this,a,t,m);a.style.transform="scale3d(1, 1, 1)",p.state=0,t.persistent||(this._mostRecentTransientRipple=p);let w=null;return!m&&(i||u.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const R=()=>this._finishRippleTransition(p),J=()=>this._destroyRipple(p);a.addEventListener("transitionend",R),a.addEventListener("transitioncancel",J),w={onTransitionEnd:R,onTransitionCancel:J}}),this._activeRipples.set(p,w),(m||!i)&&this._finishRippleTransition(p),p}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,t={...ym,...r.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=Xt(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Am))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ih),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=1,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==e&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=um(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,$o)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Am.forEach(r=>{this._triggerElement.removeEventListener(r,this,$o)}),this._pointerUpEventsRegistered&&ih.forEach(r=>{this._triggerElement.removeEventListener(r,this,$o)}))}}const Sm=new _.OlP("mat-ripple-global-options");let Ga=(()=>{class o{constructor(e,t,s,u,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=u||{},this._rippleRenderer=new xm(this,t,e,s)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,s){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...s}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(_.R0b),_.Y36(mi),_.Y36(Sm,8),_.Y36(_.QbO,8))},o.\u0275dir=_.lG2({type:o,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&_.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),o})(),Cn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})(),nh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se]}),o})(),Uc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Cn,M.ez,Se,nh]}),o})();const Gw=["mat-button",""],ah=["*"],Dm=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],sh=qa(Vc(Yr(class{constructor(o){this._elementRef=o}})));let Kr=(()=>{class o extends sh{constructor(e,t,s){super(e),this._focusMonitor=t,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const u of Dm)this._hasHostAttributes(u)&&this._getHostElement().classList.add(u);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(gn),_.Y36(_.QbO,8))},o.\u0275cmp=_.Xpm({type:o,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&_.Gf(Ga,5),2&e){let s;_.iGM(s=_.CRH())&&(t.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(_.uIk("disabled",t.disabled||null),_.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[_.qOj],attrs:Gw,ngContentSelectors:ah,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(_.F$t(),_.TgZ(0,"span",0),_.Hsn(1),_.qZA(),_._UZ(2,"span",1)(3,"span",2)),2&e&&(_.xp6(2),_.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),_.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Ga],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),o})(),Tr=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Cn,Se,Se]}),o})();var Nc=E(1144),wn=E(576),qc=E(3268);const lh=["addListener","removeListener"],ch=["addEventListener","removeEventListener"],cS=["on","off"];function Qo(o,r,e,t){if((0,wn.m)(e)&&(t=e,e=void 0),t)return Qo(o,r,e).pipe((0,qc.Z)(t));const[s,u]=function Rm(o){return(0,wn.m)(o.addEventListener)&&(0,wn.m)(o.removeEventListener)}(o)?ch.map(d=>l=>o[d](r,l,e)):function $w(o){return(0,wn.m)(o.addListener)&&(0,wn.m)(o.removeListener)}(o)?lh.map(Hm(o,r)):function Qw(o){return(0,wn.m)(o.on)&&(0,wn.m)(o.off)}(o)?cS.map(Hm(o,r)):[];if(!s&&(0,Nc.z)(o))return(0,pi.z)(d=>Qo(d,r,e))((0,zn.Xf)(o));if(!s)throw new TypeError("Invalid event target");return new Ye.y(d=>{const l=(...n)=>d.next(1u(l)})}function Hm(o,r){return e=>t=>o[e](r,t)}var Yw=E(4408);const al={schedule(o){let r=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=al;t&&(r=t.requestAnimationFrame,e=t.cancelAnimationFrame);const s=r(u=>{e=void 0,o(u)});return new Wt.w0(()=>e?.(s))},requestAnimationFrame(...o){const{delegate:r}=al;return(r?.requestAnimationFrame||requestAnimationFrame)(...o)},cancelAnimationFrame(...o){const{delegate:r}=al;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...o)},delegate:void 0};var dh=E(7565);const Im=new class Pm extends dh.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;r=r||t.shift();do{if(s=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,s){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw s}}}(class dS extends Yw.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=al.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(s=>s.id===e)||(al.cancelAnimationFrame(e),r._scheduled=void 0)}});let Bm,uS=1;const uh={};function Jw(o){return o in uh&&(delete uh[o],!0)}const hS={setImmediate(o){const r=uS++;return uh[r]=!0,Bm||(Bm=Promise.resolve()),Bm.then(()=>Jw(r)&&o()),r},clearImmediate(o){Jw(o)}},{setImmediate:pS,clearImmediate:fS}=hS,hh={setImmediate(...o){const{delegate:r}=hh;return(r?.setImmediate||pS)(...o)},clearImmediate(o){const{delegate:r}=hh;return(r?.clearImmediate||fS)(o)},delegate:void 0},ph=new class Zr extends dh.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;r=r||t.shift();do{if(s=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,s){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw s}}}(class mS extends Yw.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=hh.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(s=>s.id===e)||(hh.clearImmediate(e),r._scheduled=void 0)}});function cn(o){return!!o&&(o instanceof Ye.y||(0,wn.m)(o.lift)&&(0,wn.m)(o.subscribe))}var zc=E(4986),Gc=E(2805);function Wc(o,r=zc.z){return function Vm(o){return(0,ci.e)((r,e)=>{let t=!1,s=null,u=null,d=!1;const l=()=>{if(u?.unsubscribe(),u=null,t){t=!1;const i=s;s=null,e.next(i)}d&&e.complete()},n=()=>{u=null,d&&e.complete()};r.subscribe((0,Lt.x)(e,i=>{t=!0,s=i,u||(0,zn.Xf)(o(i)).subscribe(u=(0,Lt.x)(e,l,n))},()=>{d=!0,(!t||!u||u.closed)&&e.complete()}))})}(()=>(0,Gc.H)(o,r))}var Om=E(6063);class Kw extends Me.x{constructor(r=1/0,e=1/0,t=Om.l){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:t,_infiniteTimeWindow:s,_timestampProvider:u,_windowTime:d}=this;e||(t.push(r),!s&&t.push(u.now()+d)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:t,_buffer:s}=this,u=s.slice();for(let d=0;dnew Kw(t,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}class Zw extends class Lm{}{constructor(r){super(),this._data=r}connect(){return cn(this._data)?this._data:(0,ke.of)(this._data)}disconnect(){}}class ea{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(r,e,t,s,u){r.forEachOperation((d,l,n)=>{let i,a;null==d.previousIndex?(i=this._insertView(()=>t(d,l,n),n,e,s(d)),a=i?1:0):null==n?(this._detachAndCacheView(l,e),a=3):(i=this._moveView(l,n,e,s(d)),a=2),u&&u({context:i?.context,operation:a,record:d})})}detach(){for(const r of this._viewCache)r.destroy();this._viewCache=[]}_insertView(r,e,t,s){const u=this._insertViewFromCache(e,t);if(u)return void(u.context.$implicit=s);const d=r();return t.createEmbeddedView(d.templateRef,d.context,d.index)}_detachAndCacheView(r,e){const t=e.detach(r);this._maybeCacheView(t,e)}_moveView(r,e,t,s){const u=t.get(r);return t.move(u,e),u.context.$implicit=s,u}_maybeCacheView(r,e){if(this._viewCache.length0?u/this._itemSize:0;if(e.end>s){const n=Math.ceil(t/this._itemSize),i=Math.max(0,Math.min(d,s-n));d!=i&&(d=i,u=i*this._itemSize,e.start=Math.floor(d)),e.end=Math.max(0,Math.min(s,e.start+n))}const l=u-e.start*this._itemSize;if(l0&&(e.end=Math.min(s,e.end+i),e.start=Math.max(0,Math.floor(d-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(d))}}function _h(o){return o._scrollStrategy}let Fm=(()=>{class o{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new gh(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=ji(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=ji(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=ji(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[_._Bn([{provide:mh,useFactory:_h,deps:[(0,_.Gpc)(()=>o)]}]),_.TTD]}),o})(),Yc=(()=>{class o{constructor(e,t,s){this._ngZone=e,this._platform=t,this._scrolled=new Me.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ye.y(t=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(Wc(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,ke.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const s=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,$t.h)(u=>!u||s.indexOf(u)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((s,u)=>{this._scrollableContainsElement(u,e)&&t.push(u)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let s=Xt(t),u=e.getElementRef().nativeElement;do{if(s==u)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Qo(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.R0b),_.LFG(mi),_.LFG(M.K0,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ey=(()=>{class o{constructor(e,t,s,u){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=s,this.dir=u,this._destroyed=new Me.x,this._elementScrolled=new Ye.y(d=>this.ngZone.runOutsideAngular(()=>Qo(this.elementRef.nativeElement,"scroll").pipe(It(this._destroyed)).subscribe(d)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),s&&0!=xr()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==xr()?e.left=e.right:1==xr()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;Pf()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",s="right",u=this.elementRef.nativeElement;if("top"==e)return u.scrollTop;if("bottom"==e)return u.scrollHeight-u.clientHeight-u.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?s:t:"end"==e&&(e=d?t:s),d&&2==xr()?e==t?u.scrollWidth-u.clientWidth-u.scrollLeft:u.scrollLeft:d&&1==xr()?e==t?u.scrollLeft+u.scrollWidth-u.clientWidth:-u.scrollLeft:e==t?u.scrollLeft:u.scrollWidth-u.clientWidth-u.scrollLeft}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(Yc),_.Y36(_.R0b),_.Y36(Hn,8))},o.\u0275dir=_.lG2({type:o,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),o})(),Wa=(()=>{class o{constructor(e,t,s){this._platform=e,this._change=new Me.x,this._changeListener=u=>{this._change.next(u)},this._document=s,t.runOutsideAngular(()=>{if(e.isBrowser){const u=this._getWindow();u.addEventListener("resize",this._changeListener),u.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+t,height:s,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),s=e.documentElement,u=s.getBoundingClientRect();return{top:-u.top||e.body.scrollTop||t.scrollY||s.scrollTop||0,left:-u.left||e.body.scrollLeft||t.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Wc(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(mi),_.LFG(_.R0b),_.LFG(M.K0,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const iy=new _.OlP("VIRTUAL_SCROLLABLE");let Ch=(()=>{class o extends ey{constructor(e,t,s,u){super(e,t,s,u)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(Yc),_.Y36(_.R0b),_.Y36(Hn,8))},o.\u0275dir=_.lG2({type:o,features:[_.qOj]}),o})();const ny=typeof requestAnimationFrame<"u"?Im:ph;let en=(()=>{class o extends Ch{constructor(e,t,s,u,d,l,n,i){super(e,l,s,d),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=u,this.scrollable=i,this._detachedSubject=new Me.x,this._renderedRangeSubject=new Me.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new Ye.y(a=>this._scrollStrategy.scrolledIndexChange.subscribe(c=>Promise.resolve().then(()=>this.ngZone.run(()=>a.next(c))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Wt.w0.EMPTY,this._viewportChanges=n.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=ut(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Si(null),Wc(0,ny)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(It(this._detachedSubject)).subscribe(t=>{const s=t.length;s!==this._dataLength&&(this._dataLength=s,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function Um(o,r){return o.start==r.start&&o.end==r.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const u="horizontal"==this.orientation,d=u?"X":"Y";let n=`translate${d}(${Number((u&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(n+=` translate${d}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=n&&(this._renderedContentTransform=n,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const s={behavior:t};"horizontal"===this.orientation?s.start=e:s.top=e,this.scrollable.scrollTo(s)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?s=>super.measureScrollOffset(s):s=>this.scrollable.measureScrollOffset(s),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const s="left",u="right",d="rtl"==this.dir?.value;t="start"==e?d?u:s:"end"==e?d?s:u:e||("horizontal"===this.orientation?"left":"top");const l=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-l}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(_.R0b),_.Y36(mh,8),_.Y36(Hn,8),_.Y36(Yc),_.Y36(Wa),_.Y36(iy,8))},o.\u0275cmp=_.Xpm({type:o,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&_.Gf(Xw,7),2&e){let s;_.iGM(s=_.CRH())&&(t._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&_.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[_._Bn([{provide:ey,useFactory:(r,e)=>r||e,deps:[Ch,o]}]),_.qOj],ngContentSelectors:jm,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(_.F$t(),_.TgZ(0,"div",0,1),_.Hsn(2),_.qZA(),_._UZ(3,"div",2)),2&e&&(_.xp6(3),_.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),o})();function wh(o,r,e){if(!e.getBoundingClientRect)return 0;const s=e.getBoundingClientRect();return"horizontal"===o?"start"===r?s.left:s.right:"start"===r?s.top:s.bottom}let ry=(()=>{class o{constructor(e,t,s,u,d,l){this._viewContainerRef=e,this._template=t,this._differs=s,this._viewRepeater=u,this._viewport=d,this.viewChange=new Me.x,this._dataSourceChanges=new Me.x,this.dataStream=this._dataSourceChanges.pipe(Si(null),function Xr(){return(0,ci.e)((o,r)=>{let e,t=!1;o.subscribe((0,Lt.x)(r,s=>{const u=e;e=s,t&&r.next([u,s]),t=!0}))})}(),(0,Bi.w)(([n,i])=>this._changeDataSource(n,i)),fh(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Me.x,this.dataStream.subscribe(n=>{this._data=n,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(It(this._destroyed)).subscribe(n=>{this._renderedRange=n,this.viewChange.observers.length&&l.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,function ol(o){return o&&"function"==typeof o.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new Zw(cn(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,s)=>e(t+(this._renderedRange?this._renderedRange.start:0),s):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=ji(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const s=e.start-this._renderedRange.start,u=e.end-e.start;let d,l;for(let n=0;n-1;n--){const i=this._viewContainerRef.get(n+s);if(i&&i.rootNodes.length){l=i.rootNodes[i.rootNodes.length-1];break}}return d&&l?wh(t,"end",l)-wh(t,"start",d):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,ke.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const s=this._viewContainerRef.get(t);s.context.index=this._renderedRange.start+t,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(u,d,l)=>this._getEmbeddedViewArgs(u,l),u=>u.item),e.forEachIdentityChange(u=>{this._viewContainerRef.get(u.currentIndex).context.$implicit=u.item});const t=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const u=this._viewContainerRef.get(s);u.context.index=this._renderedRange.start+s,u.context.count=t,this._updateComputedContextProperties(u.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.s_b),_.Y36(_.Rgc),_.Y36(_.ZZ4),_.Y36(Rn),_.Y36(en,4),_.Y36(_.R0b))},o.\u0275dir=_.lG2({type:o,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[_._Bn([{provide:Rn,useClass:ea}])]}),o})(),Pn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),$a=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Go,Pn,Go,Pn]}),o})();class yh{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class vh extends yh{constructor(r,e,t,s){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=s}}class Ah extends yh{constructor(r,e,t,s){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=s}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class Nm extends yh{constructor(r){super(),this.element=r instanceof _.SBq?r.nativeElement:r}}class xh{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof vh?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof Ah?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof Nm?(this._attachedPortal=r,this.attachDomPortal(r)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Sh extends xh{constructor(r,e,t,s,u){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=s,this.attachDomPortal=d=>{const l=d.element,n=this._document.createComment("dom-portal");l.parentNode.insertBefore(n,l),this.outletElement.appendChild(l),this._attachedPortal=d,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(l,n)})},this._document=u}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let s;return r.viewContainerRef?(s=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=t.create(r.injector||this._defaultInjector||_.zs3.NULL),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=r,s}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(s=>this.outletElement.appendChild(s)),t.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(t);-1!==s&&e.remove(s)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let Jc=(()=>{class o extends xh{constructor(e,t,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new _.vpe,this.attachDomPortal=u=>{const d=u.element,l=this._document.createComment("dom-portal");u.setAttachedHost(this),d.parentNode.insertBefore(l,d),this._getRootNode().appendChild(d),this._attachedPortal=u,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(d,l)})},this._document=s}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,u=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(u,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]),super.setDisposeFn(()=>d.destroy()),this._attachedPortal=e,this._attachedRef=d,this.attached.emit(d),d}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_._Vd),_.Y36(_.s_b),_.Y36(M.K0))},o.\u0275dir=_.lG2({type:o,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[_.qOj]}),o})(),ta=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})();var ir=E(6451);const qm=Pf();class sy{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=di(-this._previousScrollPosition.left),r.style.top=di(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,s=this._document.body.style,u=t.scrollBehavior||"",d=s.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),qm&&(t.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),qm&&(t.scrollBehavior=u,s.scrollBehavior=d)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class Eh{constructor(r,e,t,s){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class zm{enable(){}disable(){}attach(){}}function Kc(o,r){return r.some(e=>o.bottome.bottom||o.righte.right)}function Zc(o,r){return r.some(e=>o.tope.bottom||o.lefte.right)}class Gm{constructor(r,e,t,s){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=s,this._scrollSubscription=null}attach(r){this._overlayRef=r}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:s}=this._viewportRuler.getViewportSize();Kc(e,[{width:t,height:s,bottom:s,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let TS=(()=>{class o{constructor(e,t,s,u){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=s,this.noop=()=>new zm,this.close=d=>new Eh(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new sy(this._viewportRuler,this._document),this.reposition=d=>new Gm(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=u}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Yc),_.LFG(Wa),_.LFG(_.R0b),_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class ly{constructor(r){if(this.scrollStrategy=new zm,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class cy{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let Mh=(()=>{class o{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),$m=(()=>{class o extends Mh{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=s=>{const u=this._attachedOverlays;for(let d=u.length-1;d>-1;d--)if(u[d]._keydownEvents.observers.length>0){const l=u[d]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0),_.LFG(_.R0b,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Dh=(()=>{class o extends Mh{constructor(e,t,s){super(e),this._platform=t,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=u=>{this._pointerDownEventTarget=mn(u)},this._clickListener=u=>{const d=mn(u),l="click"===u.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:d;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const a=n[i];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(a.overlayElement.contains(d)||a.overlayElement.contains(l))break;const c=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(u)):c.next(u)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0),_.LFG(mi),_.LFG(_.R0b,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),yn=(()=>{class o{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||xc()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let u=0;uthis._backdropClick.next(c),this._backdropTransitionendHandler=c=>{this._disposeBackdrop(c.target)},this._keydownEvents=new Me.x,this._outsidePointerEvents=new Me.x,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ni.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,r&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=di(this._config.width),r.height=di(this._config.height),r.minWidth=di(this._config.minWidth),r.minHeight=di(this._config.minHeight),r.maxWidth=di(this._config.maxWidth),r.maxHeight=di(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){const s=Xs(e||[]).filter(u=>!!u);s.length&&(t?r.classList.add(...s):r.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(It((0,ir.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const dl="cdk-overlay-connected-position-bounding-box",ul=/([A-Za-z%]+)$/;class hy{constructor(r,e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Me.x,this._resizeSubscription=Wt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(dl),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._originRect,e=this._overlayRect,t=this._viewportRect,s=this._containerRect,u=[];let d;for(let l of this._preferredPositions){let n=this._getOriginPoint(r,s,l),i=this._getOverlayPoint(n,e,l),a=this._getOverlayFit(i,e,t,l);if(a.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,n);this._canFitWithFlexibleDimensions(a,i,t)?u.push({position:l,origin:n,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(n,l)}):(!d||d.overlayFit.visibleArean&&(n=a,l=i)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(d.position,d.originPoint);this._applyPosition(d.position,d.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Mr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(dl),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let s,u;if("center"==t.originX)s=r.left+r.width/2;else{const d=this._isRtl()?r.right:r.left,l=this._isRtl()?r.left:r.right;s="start"==t.originX?d:l}return e.left<0&&(s-=e.left),u="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(u-=e.top),{x:s,y:u}}_getOverlayPoint(r,e,t){let s,u;return s="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,u="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:r.x+s,y:r.y+u}}_getOverlayFit(r,e,t,s){const u=Qm(e);let{x:d,y:l}=r,n=this._getOffset(s,"x"),i=this._getOffset(s,"y");n&&(d+=n),i&&(l+=i);let h=0-l,f=l+u.height-t.height,m=this._subtractOverflows(u.width,0-d,d+u.width-t.width),p=this._subtractOverflows(u.height,h,f),w=m*p;return{visibleArea:w,isCompletelyWithinViewport:u.width*u.height===w,fitsInViewportVertically:p===u.height,fitsInViewportHorizontally:m==u.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const s=t.bottom-e.y,u=t.right-e.x,d=Hh(this._overlayRef.getConfig().minHeight),l=Hh(this._overlayRef.getConfig().minWidth),i=r.fitsInViewportHorizontally||null!=l&&l<=u;return(r.fitsInViewportVertically||null!=d&&d<=s)&&i}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const s=Qm(e),u=this._viewportRect,d=Math.max(r.x+s.width-u.width,0),l=Math.max(r.y+s.height-u.height,0),n=Math.max(u.top-t.top-r.y,0),i=Math.max(u.left-t.left-r.x,0);let a=0,c=0;return a=s.width<=u.width?i||-d:r.xm&&!this._isInitialRender&&!this._growAfterOpen&&(d=r.y-m/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)h=t.width-r.x+this._viewportMargin,a=r.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)c=r.x,a=t.right-r.x;else{const f=Math.min(t.right-r.x+t.left,r.x),m=this._lastBoundingBoxSize.width;a=2*f,c=r.x-f,a>m&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.x-m/2)}return{top:d,left:c,bottom:l,right:h,width:a,height:u}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const u=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;s.height=di(t.height),s.top=di(t.top),s.bottom=di(t.bottom),s.width=di(t.width),s.left=di(t.left),s.right=di(t.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",u&&(s.maxHeight=di(u)),d&&(s.maxWidth=di(d))}this._lastBoundingBoxSize=t,Mr(this._boundingBox.style,s)}_resetBoundingBoxStyles(){Mr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Mr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const t={},s=this._hasExactPosition(),u=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(s){const a=this._viewportRuler.getViewportScrollPosition();Mr(t,this._getExactOverlayY(e,r,a)),Mr(t,this._getExactOverlayX(e,r,a))}else t.position="static";let l="",n=this._getOffset(e,"x"),i=this._getOffset(e,"y");n&&(l+=`translateX(${n}px) `),i&&(l+=`translateY(${i}px)`),t.transform=l.trim(),d.maxHeight&&(s?t.maxHeight=di(d.maxHeight):u&&(t.maxHeight="")),d.maxWidth&&(s?t.maxWidth=di(d.maxWidth):u&&(t.maxWidth="")),Mr(this._pane.style,t)}_getExactOverlayY(r,e,t){let s={top:"",bottom:""},u=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),"bottom"===r.overlayY?s.bottom=this._document.documentElement.clientHeight-(u.y+this._overlayRect.height)+"px":s.top=di(u.y),s}_getExactOverlayX(r,e,t){let d,s={left:"",right:""},u=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),d=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===d?s.right=this._document.documentElement.clientWidth-(u.x+this._overlayRect.width)+"px":s.left=di(u.x),s}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Zc(r,t),isOriginOutsideView:Kc(r,t),isOverlayClipped:Zc(e,t),isOverlayOutsideView:Kc(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,s)=>t-Math.max(s,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Xs(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof _.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function Mr(o,r){for(let e in r)r.hasOwnProperty(e)&&(o[e]=r[e]);return o}function Hh(o){if("number"!=typeof o&&null!=o){const[r,e]=o.split(ul);return e&&"px"!==e?null:parseFloat(r)}return o||null}function Qm(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}const Ym="cdk-global-overlay-wrapper";class MS{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(Ym),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:s,height:u,maxWidth:d,maxHeight:l}=t,n=!("100%"!==s&&"100vw"!==s||d&&"100%"!==d&&"100vw"!==d),i=!("100%"!==u&&"100vh"!==u||l&&"100%"!==l&&"100vh"!==l),a=this._xPosition,c=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",m="",p="";n?p="flex-start":"center"===a?(p="center",h?m=c:f=c):h?"left"===a||"end"===a?(p="flex-end",f=c):("right"===a||"start"===a)&&(p="flex-start",m=c):"left"===a||"start"===a?(p="flex-start",f=c):("right"===a||"end"===a)&&(p="flex-end",m=c),r.position=this._cssPosition,r.marginLeft=n?"0":f,r.marginTop=i?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=n?"0":m,e.justifyContent=p,e.alignItems=i?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Ym),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let py=(()=>{class o{constructor(e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u}global(){return new MS}flexibleConnectedTo(e){return new hy(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Wa),_.LFG(M.K0),_.LFG(mi),_.LFG(yn))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),DS=0,nr=(()=>{class o{constructor(e,t,s,u,d,l,n,i,a,c,h,f){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=s,this._positionBuilder=u,this._keyboardDispatcher=d,this._injector=l,this._ngZone=n,this._document=i,this._directionality=a,this._location=c,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(e){const t=this._createHostElement(),s=this._createPaneElement(t),u=this._createPortalOutlet(s),d=new ly(e);return d.direction=d.direction||this._directionality.value,new ia(u,t,s,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+DS++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(_.z2F)),new Sh(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(TS),_.LFG(yn),_.LFG(_._Vd),_.LFG(py),_.LFG($m),_.LFG(_.zs3),_.LFG(_.R0b),_.LFG(M.K0),_.LFG(Hn),_.LFG(M.Ye),_.LFG(Dh),_.LFG(_.QbO,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const Rh={provide:new _.OlP("cdk-connected-overlay-scroll-strategy"),deps:[nr],useFactory:function Jm(o){return()=>o.scrollStrategies.reposition()}};let Yo=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[nr,Rh],imports:[Go,ta,$a,$a]}),o})();class Zm{}const Dr="*";function ai(o,r){return{type:7,name:o,definitions:r,options:{}}}function yt(o,r=null){return{type:4,styles:r,timings:o}}function Xm(o,r=null){return{type:3,steps:o,options:r}}function hl(o,r=null){return{type:2,steps:o,options:r}}function je(o){return{type:6,styles:o,offset:null}}function ft(o,r,e){return{type:0,name:o,styles:r,options:e}}function bt(o,r,e=null){return{type:1,expr:o,animation:r,options:e}}function Jo(o=null){return{type:9,options:o}}function dn(o,r,e=null){return{type:11,selector:o,animation:r,options:e}}function Di(o){Promise.resolve(null).then(o)}class kn{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Di(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class pl{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,s=0;const u=this.players.length;0==u?Di(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==u&&this._onFinish()}),d.onDestroy(()=>{++t==u&&this._onDestroy()}),d.onStart(()=>{++s==u&&this._onStart()})}),this.totalTime=this.players.reduce((d,l)=>Math.max(d,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const s=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(s)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Ph=["connectionContainer"],Ko=["inputContainer"],Zo=["label"];function Xo(o,r){1&o&&(_.ynx(0),_.TgZ(1,"div",14),_._UZ(2,"div",15)(3,"div",16)(4,"div",17),_.qZA(),_.TgZ(5,"div",18),_._UZ(6,"div",15)(7,"div",16)(8,"div",17),_.qZA(),_.BQk())}function es(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"div",19),_.NdJ("cdkObserveContent",function(){_.CHM(e);const s=_.oxw();return _.KtG(s.updateOutlineGap())}),_.Hsn(1,1),_.qZA()}if(2&o){const e=_.oxw();_.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function ts(o,r){if(1&o&&(_.ynx(0),_.Hsn(1,2),_.TgZ(2,"span"),_._uU(3),_.qZA(),_.BQk()),2&o){const e=_.oxw(2);_.xp6(3),_.Oqu(e._control.placeholder)}}function is(o,r){1&o&&_.Hsn(0,3,["*ngSwitchCase","true"])}function ns(o,r){1&o&&(_.TgZ(0,"span",23),_._uU(1," *"),_.qZA())}function rs(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"label",20,21),_.NdJ("cdkObserveContent",function(){_.CHM(e);const s=_.oxw();return _.KtG(s.updateOutlineGap())}),_.YNc(2,ts,4,1,"ng-container",12),_.YNc(3,is,1,0,"ng-content",12),_.YNc(4,ns,2,0,"span",22),_.qZA()}if(2&o){const e=_.oxw();_.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),_.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),_.uIk("for",e._control.id)("aria-owns",e._control.id),_.xp6(2),_.Q6J("ngSwitchCase",!1),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function as(o,r){1&o&&(_.TgZ(0,"div",24),_.Hsn(1,4),_.qZA())}function eg(o,r){if(1&o&&(_.TgZ(0,"div",25),_._UZ(1,"span",26),_.qZA()),2&o){const e=_.oxw();_.xp6(1),_.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function tg(o,r){if(1&o&&(_.TgZ(0,"div"),_.Hsn(1,5),_.qZA()),2&o){const e=_.oxw();_.Q6J("@transitionMessages",e._subscriptAnimationState)}}function ig(o,r){if(1&o&&(_.TgZ(0,"div",30),_._uU(1),_.qZA()),2&o){const e=_.oxw(2);_.Q6J("id",e._hintLabelId),_.xp6(1),_.Oqu(e.hintLabel)}}function ng(o,r){if(1&o&&(_.TgZ(0,"div",27),_.YNc(1,ig,2,2,"div",28),_.Hsn(2,6),_._UZ(3,"div",29),_.Hsn(4,7),_.qZA()),2&o){const e=_.oxw();_.Q6J("@transitionMessages",e._subscriptAnimationState),_.xp6(1),_.Q6J("ngIf",e.hintLabel)}}const rg=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ag=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let og=0;const Ih=new _.OlP("MatError");let kh=(()=>{class o{constructor(e,t){this.id="mat-error-"+og++,e||t.nativeElement.setAttribute("aria-live","polite")}}return o.\u0275fac=function(e){return new(e||o)(_.$8M("aria-live"),_.Y36(_.SBq))},o.\u0275dir=_.lG2({type:o,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&_.uIk("id",t.id)},inputs:{id:"id"},features:[_._Bn([{provide:Ih,useExisting:o}])]}),o})();const gy={transitionMessages:ai("transitionMessages",[ft("enter",je({opacity:1,transform:"translateY(0%)"})),bt("void => enter",[je({opacity:0,transform:"translateY(-5px)"}),yt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let td=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o}),o})();const Bh=new _.OlP("MatHint");let Vh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,selectors:[["mat-label"]]}),o})(),id=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,selectors:[["mat-placeholder"]]}),o})();const nd=new _.OlP("MatPrefix"),Cy=new _.OlP("MatSuffix");let fl=0;const Fh=qa(class{constructor(o){this._elementRef=o}},"primary"),cg=new _.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),rd=new _.OlP("MatFormField");let ml=(()=>{class o extends Fh{constructor(e,t,s,u,d,l,n){super(e),this._changeDetectorRef=t,this._dir=s,this._defaults=u,this._platform=d,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Me.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+fl++,this._labelId="mat-form-field-label-"+fl++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==n,this.appearance=u?.appearance||"legacy",u&&(this._hideRequiredMarker=Boolean(u.hideRequiredMarker),u.color&&(this.color=this.defaultColor=u.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ut(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Si(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(It(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(It(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,ir.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Si(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Si(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(It(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Qo(this._label.nativeElement,"transitionend").pipe((0,ni.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(u=>"start"===u.align):null,s=this._hintChildren?this._hintChildren.find(u=>"end"===u.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),s&&e.push(s.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",u=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const a=t.querySelectorAll(`${s}, ${u}`);for(let c=0;c0?.75*m+10:0}for(let a=0;a{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,Se,el,Se]}),o})();const gi={provide:new _.OlP("mat-select-scroll-strategy"),deps:[nr],useFactory:function fg(o){return()=>o.scrollStrategies.reposition()}};let gl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[gi],imports:[M.ez,Yo,Uc,Se,Pn,Hr,Uc,Se]}),o})();const rr={provide:new _.OlP("mat-tooltip-scroll-strategy"),deps:[nr],useFactory:function qh(o){return()=>o.scrollStrategies.reposition({scrollThrottle:20})}};let os=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[rr],imports:[Na,M.ez,Yo,Se,Se,Pn]}),o})(),od=(()=>{class o{constructor(){this.changes=new Me.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,s)=>{if(0==s||0==t)return`0 of ${s}`;const u=e*t;return`${u+1} \u2013 ${u<(s=Math.max(s,0))?Math.min(u+t,s):u+t} of ${s}`}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const _g={provide:od,deps:[[new _.FiY,new _.tp0,od]],useFactory:function Ny(o){return o||new od}};let Qa=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[_g],imports:[M.ez,Tr,gl,os,Se]}),o})();const iv={provide:new _.OlP("mat-menu-scroll-strategy"),deps:[nr],useFactory:function tv(o){return()=>o.scrollStrategies.reposition()}};let bl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[iv],imports:[M.ez,Se,Cn,Yo,Pn,Se]}),o})();var wg=E(4742),yg=E(1810);function sd(...o){const r=(0,ya.jO)(o),{args:e,keys:t}=(0,wg.D)(o),s=new Ye.y(u=>{const{length:d}=e;if(!d)return void u.complete();const l=new Array(d);let n=d,i=d;for(let a=0;a{c||(c=!0,i--),l[a]=h},()=>n--,void 0,()=>{(!n||!c)&&(i||u.next(t?(0,yg.n)(t,l):l),u.complete())}))}});return r?s.pipe((0,qc.Z)(r)):s}var v=E(529);const vg=["*"];let Cl;function Ya(o){return function Wh(){if(void 0===Cl&&(Cl=null,typeof window<"u")){const o=window;void 0!==o.trustedTypes&&(Cl=o.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return Cl}()?.createHTML(o)||o}function na(o){return Error(`Unable to find icon with the name "${o}"`)}function Ag(o){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${o}".`)}function Ja(o){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${o}".`)}class ss{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let Ka=(()=>{class o{constructor(e,t,s,u){this._httpClient=e,this._sanitizer=t,this._errorHandler=u,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=s}addSvgIcon(e,t,s){return this.addSvgIconInNamespace("",e,t,s)}addSvgIconLiteral(e,t,s){return this.addSvgIconLiteralInNamespace("",e,t,s)}addSvgIconInNamespace(e,t,s,u){return this._addSvgIconConfig(e,t,new ss(s,null,u))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,s,u){const d=this._sanitizer.sanitize(_.q3G.HTML,s);if(!d)throw Ja(s);const l=Ya(d);return this._addSvgIconConfig(e,t,new ss("",l,u))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,s){return this._addSvgIconSetConfig(e,new ss(t,null,s))}addSvgIconSetLiteralInNamespace(e,t,s){const u=this._sanitizer.sanitize(_.q3G.HTML,t);if(!u)throw Ja(t);const d=Ya(u);return this._addSvgIconSetConfig(e,new ss("",d,s))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(_.q3G.RESOURCE_URL,e);if(!t)throw Ag(e);const s=this._cachedIconsByUrl.get(t);return s?(0,ke.of)(wl(s)):this._loadSvgIconFromConfig(new ss(e,null)).pipe((0,Qt.b)(u=>this._cachedIconsByUrl.set(t,u)),(0,qe.U)(u=>wl(u)))}getNamedSvgIcon(e,t=""){const s=sv(t,e);let u=this._svgIconConfigs.get(s);if(u)return this._getSvgFromConfig(u);if(u=this._getIconConfigFromResolvers(t,e),u)return this._svgIconConfigs.set(s,u),this._getSvgFromConfig(u);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,Ci._)(na(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,ke.of)(wl(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,qe.U)(t=>wl(t)))}_getSvgFromIconSetConfigs(e,t){const s=this._extractIconWithNameFromAnySet(e,t);return s?(0,ke.of)(s):sd(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,Et.K)(l=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(_.q3G.RESOURCE_URL,d.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(i)),(0,ke.of)(null)})))).pipe((0,qe.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw na(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let s=t.length-1;s>=0;s--){const u=t[s];if(u.svgText&&u.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(u),l=this._extractSvgIconFromSet(d,e,u.options);if(l)return l}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Qt.b)(t=>e.svgText=t),(0,qe.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,ke.of)(null):this._fetchIcon(e).pipe((0,Qt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,s){const u=e.querySelector(`[id="${t}"]`);if(!u)return null;const d=u.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,s);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),s);const l=this._svgElementFromString(Ya(""));return l.appendChild(d),this._setSvgAttributes(l,s)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const s=t.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(e){const t=this._svgElementFromString(Ya("")),s=e.attributes;for(let u=0;uYa(i)),Aa(()=>this._inProgressUrlFetches.delete(d)),(0,$c.B)());return this._inProgressUrlFetches.set(d,n),n}_addSvgIconConfig(e,t,s){return this._svgIconConfigs.set(sv(e,t),s),this}_addSvgIconSetConfig(e,t){const s=this._iconSetConfigs.get(e);return s?s.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let s=0;sr?r.pathname+r.search:""}}}),xg=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ld=xg.map(o=>`[${o}]`).join(", "),cd=/^url\(['"]?#(.*?)['"]?\)$/;let Ft=(()=>{class o extends lv{constructor(e,t,s,u,d,l){super(e),this._iconRegistry=t,this._location=u,this._errorHandler=d,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Wt.w0.EMPTY,l&&(l.color&&(this.color=this.defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),s||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ut(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const s=e.childNodes[t];(1!==s.nodeType||"svg"===s.nodeName.toLowerCase())&&s.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(s=>s.length>0);this._previousFontSetClass.forEach(s=>e.classList.remove(s)),t.forEach(s=>e.classList.add(s)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((s,u)=>{s.forEach(d=>{u.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(ld),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let u=0;u{const l=t[u],n=l.getAttribute(d),i=n?n.match(cd):null;if(i){let a=s.get(l);a||(a=[],s.set(l,a)),a.push({name:d,value:i[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,s]=this._splitIconName(e);t&&(this._svgNamespace=t),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,t).pipe((0,ni.q)(1)).subscribe(u=>this._setSvgElement(u),u=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${s}! ${u.message}`))})}}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(Ka),_.$8M("aria-hidden"),_.Y36(dv),_.Y36(_.qLn),_.Y36(cv,8))},o.\u0275cmp=_.Xpm({type:o,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(_.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),_.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[_.qOj],ngContentSelectors:vg,decls:1,vars:0,template:function(e,t){1&e&&(_.F$t(),_.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),o})(),ra=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})();class cs{}let $h=(()=>{class o extends cs{getTranslation(e){return(0,ke.of)({})}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class Qh{}let Yh=(()=>{class o{handle(e){return e.key}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();function yl(o,r){if(o===r)return!0;if(null===o||null===r)return!1;if(o!=o&&r!=r)return!0;let s,u,d,e=typeof o;if(e==typeof r&&"object"==e){if(!Array.isArray(o)){if(Array.isArray(r))return!1;for(u in d=Object.create(null),o){if(!yl(o[u],r[u]))return!1;d[u]=!0}for(u in r)if(!(u in d)&&typeof r[u]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((s=o.length)==r.length){for(u=0;u{dd(r[t])?t in o?e[t]=Sg(o[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class ud{}let Tg=(()=>{class o extends ud{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let s;return s="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,s}getValue(e,t){let s="string"==typeof t?t.split("."):[t];t="";do{t+=s.shift(),!Pr(e)||!Pr(e[t])||"object"!=typeof e[t]&&s.length?s.length?t+=".":e=void 0:(e=e[t],t="")}while(s.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(s,u)=>{let d=this.getValue(t,u);return Pr(d)?d:s}):e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class aa{}let Eg=(()=>{class o extends aa{compile(e,t){return e}compileTranslations(e,t){return e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class Mg{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new _.vpe,this.onLangChange=new _.vpe,this.onDefaultLangChange=new _.vpe}}const Jh=new _.OlP("USE_STORE"),ds=new _.OlP("USE_DEFAULT_LANG"),hd=new _.OlP("DEFAULT_LANGUAGE"),pd=new _.OlP("USE_EXTEND");let oa=(()=>{class o{constructor(e,t,s,u,d,l=!0,n=!1,i=!1,a){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=u,this.missingTranslationHandler=d,this.useDefaultLang=l,this.isolate=n,this.extend=i,this.pending=!1,this._onTranslationChange=new _.vpe,this._onLangChange=new _.vpe,this._onDefaultLangChange=new _.vpe,this._langs=[],this._translations={},this._translationRequests={},a&&this.setDefaultLang(a)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,ni.q)(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,ke.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,ni.q)(1)).subscribe(s=>{this.changeLang(e)}),t):(this.changeLang(e),(0,ke.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(fh(1),(0,ni.q)(1));return this.loadingTranslations=t.pipe((0,qe.U)(s=>this.compiler.compileTranslations(s,e)),fh(1),(0,ni.q)(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?{...s,...this.translations[e]}:s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),t}setTranslation(e,t,s=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(s||this.extend)&&this.translations[e]?Sg(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,s){let u;if(t instanceof Array){let d={},l=!1;for(let n of t)d[n]=this.getParsedResult(e,n,s),cn(d[n])&&(l=!0);return l?sd(t.map(i=>cn(d[i])?d[i]:(0,ke.of)(d[i]))).pipe((0,qe.U)(i=>{let a={};return i.forEach((c,h)=>{a[t[h]]=c}),a})):d}if(e&&(u=this.parser.interpolate(this.parser.getValue(e,t),s)),typeof u>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(u=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),s)),typeof u>"u"){let d={key:t,translateService:this};typeof s<"u"&&(d.interpolateParams=s),u=this.missingTranslationHandler.handle(d)}return typeof u<"u"?u:t}get(e,t){if(!Pr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Vt.b)(s=>cn(s=this.getParsedResult(s,e,t))?s:(0,ke.of)(s)));{let s=this.getParsedResult(this.translations[this.currentLang],e,t);return cn(s)?s:(0,ke.of)(s)}}getStreamOnTranslationChange(e,t){if(!Pr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ni.z)(on(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Bi.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return"function"==typeof u.subscribe?u:(0,ke.of)(u)})))}stream(e,t){if(!Pr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ni.z)(on(()=>this.get(e,t)),this.onLangChange.pipe((0,Bi.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return cn(u)?u:(0,ke.of)(u)})))}instant(e,t){if(!Pr(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,t);if(cn(s)){if(e instanceof Array){let u={};return e.forEach((d,l)=>{u[e[l]]=e[l]}),u}return e}return s}set(e,t,s=this.currentLang){this.translations[s][e]=this.compiler.compile(t,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Mg),_.LFG(cs),_.LFG(aa),_.LFG(ud),_.LFG(Qh),_.LFG(ds),_.LFG(Jh),_.LFG(pd),_.LFG(hd))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),Hi=(()=>{class o{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,s){let u=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(s){let d=this.translate.getParsedResult(s,e,t);cn(d.subscribe)?d.subscribe(u):u(d)}this.translate.get(e,t).subscribe(u)}transform(e,...t){if(!e||!e.length)return e;if(yl(e,this.lastKey)&&yl(t,this.lastParams))return this.value;let s;if(Pr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let u=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(u)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(s=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(u=>{this.lastKey&&u.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(u=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(oa,16),_.Y36(_.sBO,16))},o.\u0275pipe=_.Yjl({name:"translate",type:o,pure:!1}),o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),sr=(()=>{class o{static forRoot(e={}){return{ngModule:o,providers:[e.loader||{provide:cs,useClass:$h},e.compiler||{provide:aa,useClass:Eg},e.parser||{provide:ud,useClass:Tg},e.missingTranslationHandler||{provide:Qh,useClass:Yh},Mg,{provide:Jh,useValue:e.isolate},{provide:ds,useValue:e.useDefaultLang},{provide:pd,useValue:e.extend},{provide:hd,useValue:e.defaultLanguage},oa]}}static forChild(e={}){return{ngModule:o,providers:[e.loader||{provide:cs,useClass:$h},e.compiler||{provide:aa,useClass:Eg},e.parser||{provide:ud,useClass:Tg},e.missingTranslationHandler||{provide:Qh,useClass:Yh},{provide:Jh,useValue:e.isolate},{provide:ds,useValue:e.useDefaultLang},{provide:pd,useValue:e.extend},{provide:hd,useValue:e.defaultLanguage},oa]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),Dg=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Qa,bl,ra,Tr,sr,M.ez]}),o})();var uv=E(5861);function hv(o,r){}class vl{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let Kh=(()=>{class o extends xh{constructor(e,t,s,u,d,l,n,i){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=u,this._interactivityChecker=d,this._ngZone=l,this._overlayRef=n,this._focusMonitor=i,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=a=>{this._portalOutlet.hasAttached();const c=this._portalOutlet.attachDomPortal(a);return this._contentAttached(),c},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=s}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const s=()=>{e.removeEventListener("blur",s),e.removeEventListener("mousedown",s),e.removeAttribute("tabindex")};e.addEventListener("blur",s),e.addEventListener("mousedown",s)})),e.focus(t)}_focusByCssSelector(e,t){let s=this._elementRef.nativeElement.querySelector(e);s&&this._forceFocus(s,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const s=Ac(),u=this._elementRef.nativeElement;(!s||s===this._document.body||s===u||u.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Ac();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Ac())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(Wu),_.Y36(M.K0,8),_.Y36(vl),_.Y36(tl),_.Y36(_.R0b),_.Y36(ia),_.Y36(gn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&_.Gf(Jc,7),2&e){let s;_.iGM(s=_.CRH())&&(t._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&_.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[_.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&_.YNc(0,hv,0,0,"ng-template",0)},dependencies:[Jc],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),o})();class Zh{constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new Me.x,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!Sr(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const Xh=new _.OlP("DialogScrollStrategy"),fv=new _.OlP("DialogData"),mv=new _.OlP("DefaultDialogConfig"),uT={provide:Xh,deps:[nr],useFactory:function dT(o){return()=>o.scrollStrategies.block()}};let hT=0,gv=(()=>{class o{constructor(e,t,s,u,d,l){this._overlay=e,this._injector=t,this._defaultOptions=s,this._parentDialog=u,this._overlayContainer=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me.x,this._afterOpenedAtThisLevel=new Me.x,this._ariaHiddenElements=new Map,this.afterAllClosed=on(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Si(void 0))),this._scrollStrategy=l}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new vl,...t}).id=t.id||"cdk-dialog-"+hT++,t.id&&this.getDialogById(t.id);const u=this._getOverlayConfig(t),d=this._overlay.create(u),l=new Zh(d,t),n=this._attachContainer(d,l,t);return l.containerInstance=n,this._attachDialogContent(e,l,n,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){fd(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){fd(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),fd(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new ly({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,s){const u=s.injector??s.viewContainerRef?.injector,d=[{provide:vl,useValue:s},{provide:Zh,useValue:t},{provide:ia,useValue:e}];let l;s.container?"function"==typeof s.container?l=s.container:(l=s.container.type,d.push(...s.container.providers(s))):l=Kh;const n=new vh(l,s.viewContainerRef,_.zs3.create({parent:u||this._injector,providers:d}),s.componentFactoryResolver);return e.attach(n).instance}_attachDialogContent(e,t,s,u){const d=this._createInjector(u,t,s);if(e instanceof _.Rgc){let l={$implicit:u.data,dialogRef:t};u.templateContext&&(l={...l,..."function"==typeof u.templateContext?u.templateContext():u.templateContext}),s.attachTemplatePortal(new Ah(e,null,l,d))}else{const l=s.attachComponentPortal(new vh(e,u.viewContainerRef,d,u.componentFactoryResolver));t.componentInstance=l.instance}}_createInjector(e,t,s){const u=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:fv,useValue:e.data},{provide:Zh,useValue:t}];return e.providers&&("function"==typeof e.providers?d.push(...e.providers(t,e,s)):d.push(...e.providers)),e.direction&&(!u||!u.get(Hn,null,_.XFs.Optional))&&d.push({provide:Hn,useValue:{value:e.direction,change:(0,ke.of)()}}),_.zs3.create({parent:e.injector||u||this._injector,providers:d})}_removeOpenDialog(e,t){const s=this.openDialogs.indexOf(e);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((u,d)=>{u?d.setAttribute("aria-hidden",u):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let s=t.length-1;s>-1;s--){const u=t[s];u!==e&&"SCRIPT"!==u.nodeName&&"STYLE"!==u.nodeName&&!u.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(u,u.getAttribute("aria-hidden")),u.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(nr),_.LFG(_.zs3),_.LFG(mv,8),_.LFG(o,12),_.LFG(yn),_.LFG(Xh))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();function fd(o,r){let e=o.length;for(;e--;)r(o[e])}let md=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[gv,uT],imports:[Yo,ta,Na,ta]}),o})();function _v(o,r){}const us={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Hg={dialogContainer:ai("dialogContainer",[ft("void, exit",je({opacity:0,transform:"scale(0.7)"})),ft("enter",je({transform:"none"})),bt("* => enter",Xm([yt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",je({transform:"none",opacity:1})),dn("@*",Jo(),{optional:!0})]),us),bt("* => void, * => exit",Xm([yt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",je({opacity:0})),dn("@*",Jo(),{optional:!0})]),us)])};class Ir{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=us.params.enterAnimationDuration,this.exitAnimationDuration=us.params.exitAnimationDuration}}let bv=(()=>{class o extends Kh{constructor(e,t,s,u,d,l,n,i){super(e,t,s,u,d,l,n,i),this._animationStateChanged=new _.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(Wu),_.Y36(M.K0,8),_.Y36(Ir),_.Y36(tl),_.Y36(_.R0b),_.Y36(ia),_.Y36(gn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["ng-component"]],features:[_.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),o})(),Cv=(()=>{class o extends bv{constructor(e,t,s,u,d,l,n,i,a){super(e,t,s,u,d,l,n,a),this._changeDetectorRef=i,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||us.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||us.params.exitAnimationDuration}}}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(Wu),_.Y36(M.K0,8),_.Y36(Ir),_.Y36(tl),_.Y36(_.R0b),_.Y36(ia),_.Y36(_.sBO),_.Y36(gn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&_.WFA("@dialogContainer.start",function(u){return t._onAnimationStart(u)})("@dialogContainer.done",function(u){return t._onAnimationDone(u)}),2&e&&(_.Ikx("id",t._config.id),_.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),_.d8E("@dialogContainer",t._getAnimationState()))},features:[_.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&_.YNc(0,_v,0,0,"ng-template",0)},dependencies:[Jc],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Hg.dialogContainer]}}),o})();class Bn{constructor(r,e,t){this._ref=r,this._containerInstance=t,this._afterOpened=new Me.x,this._beforeClosed=new Me.x,this._state=0,this.disableClose=e.disableClose,this.id=r.id,t._animationStateChanged.pipe((0,$t.h)(s=>"opened"===s.state),(0,ni.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,$t.h)(s=>"closed"===s.state),(0,ni.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,ir.T)(this.backdropClick(),this.keydownEvents().pipe((0,$t.h)(s=>27===s.keyCode&&!this.disableClose&&!Sr(s)))).subscribe(s=>{this.disableClose||(s.preventDefault(),function wv(o,r,e){o._closeInteractionType=r,o.close(e)}(this,"keydown"===s.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,$t.h)(e=>"closing"===e.state),(0,ni.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const hs=new _.OlP("MatDialogData"),Rg=new _.OlP("mat-dialog-default-options"),Pg=new _.OlP("mat-dialog-scroll-strategy"),yv={provide:Pg,deps:[nr],useFactory:function ps(o){return()=>o.scrollStrategies.block()}};let Ig=0,vv=(()=>{class o{constructor(e,t,s,u,d,l,n,i,a,c){this._overlay=e,this._defaultOptions=s,this._parentDialog=u,this._dialogRefConstructor=n,this._dialogContainerType=i,this._dialogDataToken=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me.x,this._afterOpenedAtThisLevel=new Me.x,this._idPrefix="mat-dialog-",this.afterAllClosed=on(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Si(void 0))),this._scrollStrategy=l,this._dialog=t.get(gv)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let s;(t={...this._defaultOptions||new Ir,...t}).id=t.id||`${this._idPrefix}${Ig++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const u=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Ir,useValue:t},{provide:vl,useValue:t}]},templateContext:()=>({dialogRef:s}),providers:(d,l,n)=>(s=new this._dialogRefConstructor(d,t,n),s.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:s}])});return s.componentInstance=u.componentInstance,this.openDialogs.push(s),this.afterOpened.next(s),s.afterClosed().subscribe(()=>{const d=this.openDialogs.indexOf(s);d>-1&&(this.openDialogs.splice(d,1),this.openDialogs.length||this._getAfterAllClosed().next())}),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return o.\u0275fac=function(e){_.$Z()},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),lr=(()=>{class o extends vv{constructor(e,t,s,u,d,l,n,i){super(e,t,u,l,n,d,Bn,Cv,hs,i)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(nr),_.LFG(_.zs3),_.LFG(M.Ye,8),_.LFG(Rg,8),_.LFG(Pg),_.LFG(o,12),_.LFG(yn),_.LFG(_.QbO,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),Av=0,sa=(()=>{class o{constructor(e,t,s){this._dialogRef=e,this._elementRef=t,this._dialog=s,this.id="mat-dialog-title-"+Av++}ngOnInit(){this._dialogRef||(this._dialogRef=function kg(o,r){let e=o.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Bn,8),_.Y36(_.SBq),_.Y36(lr))},o.\u0275dir=_.lG2({type:o,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&_.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),o})(),cr=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),o})(),la=(()=>{class o{constructor(){this.align="start"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&_.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),o})(),Al=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[lr,yv],imports:[md,Yo,ta,Se,Se]}),o})();function gd(){return(gd=(0,uv.Z)(function*(o,r){yield Vg(o),r()})).apply(this,arguments)}function Vg(o){return new Promise(r=>setTimeout(r,o))}function dr(){const o=new Ir;return o.disableClose=!0,o.autoFocus=!1,o}function _d(o,r){const e=r.split("&");for(const t of e){const[s,u]=t.split("=");if(s.includes(o))return u}return""}E(4327),new Intl.Collator("cs",{numeric:!0});class oi{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const ei=new _.OlP("basePath");class st{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let Wg=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new st,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new oi}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}convertAttributeToNonunique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}convertAttributeToUnique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}createAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}deleteAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteAttributeDefinitions(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(m=>{l=this.addToHttpParams(l,m,"attributes[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAllAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAttribute(e,t,s,u,d,l,n,i,a,c,h,f=!1,m="body",p=!1,w){let R=new v.LE({encoder:this.encoder});null!=e&&(R=this.addToHttpParams(R,e,"attributeName")),null!=t&&(R=this.addToHttpParams(R,t,"attributeId")),null!=s&&(R=this.addToHttpParams(R,s,"facility")),null!=u&&(R=this.addToHttpParams(R,u,"user")),null!=d&&(R=this.addToHttpParams(R,d,"vo")),null!=l&&(R=this.addToHttpParams(R,l,"resource")),null!=n&&(R=this.addToHttpParams(R,n,"member")),null!=i&&(R=this.addToHttpParams(R,i,"group")),null!=a&&(R=this.addToHttpParams(R,a,"host")),null!=c&&(R=this.addToHttpParams(R,c,"userExtSource")),null!=h&&(R=this.addToHttpParams(R,h,"key"));let Te,J=this.defaultHeaders;Te=this.configuration.lookupCredential("BasicAuth"),Te&&(J=J.set("Authorization","Basic "+Te)),Te=this.configuration.lookupCredential("BearerAuth"),Te&&(J=J.set("Authorization","Bearer "+Te));let nt=w&&w.httpHeaderAccept;void 0===nt&&(nt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==nt&&(J=J.set("Accept",nt));let Ai=w&&w.context;void 0===Ai&&(Ai=new v.qT);let ti="json";nt&&(ti=nt.startsWith("text")?"text":this.configuration.isJsonMime(nt)?"json":"blob");let ui=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(f){let un=new URL(ui),fr=un.pathname.split("/");fr[1]="non",un.pathname=fr.join("/"),ui=un.toString()}return this.httpClient.get(ui,{context:Ai,params:R,responseType:ti,withCredentials:this.configuration.withCredentials,headers:J,observe:m,reportProgress:p})}getAttributeDefinitionById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionsByNamespace(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeModulesDependenciesForAttributeGraphText(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getAttributeModulesDependenciesGraphText(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRules(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributesDefinitionWithRights(e,t,s,u,d,l,n,i,a=!1,c="body",h=!1,f){let m=new v.LE({encoder:this.encoder});null!=e&&(m=this.addToHttpParams(m,e,"member")),null!=t&&(m=this.addToHttpParams(m,t,"user")),null!=s&&(m=this.addToHttpParams(m,s,"vo")),null!=u&&(m=this.addToHttpParams(m,u,"group")),null!=d&&(m=this.addToHttpParams(m,d,"resource")),null!=l&&(m=this.addToHttpParams(m,l,"facility")),null!=n&&(m=this.addToHttpParams(m,n,"host")),null!=i&&(m=this.addToHttpParams(m,i,"userExtSource"));let w,p=this.defaultHeaders;w=this.configuration.lookupCredential("BasicAuth"),w&&(p=p.set("Authorization","Basic "+w)),w=this.configuration.lookupCredential("BearerAuth"),w&&(p=p.set("Authorization","Bearer "+w));let R=f&&f.httpHeaderAccept;void 0===R&&(R=this.configuration.selectHeaderAccept(["application/json"])),void 0!==R&&(p=p.set("Accept",R));let J=f&&f.context;void 0===J&&(J=new v.qT);let Te="json";R&&(Te=R.startsWith("text")?"text":this.configuration.isJsonMime(R)?"json":"blob");let nt=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(a){let Ai=new URL(nt),ti=Ai.pathname.split("/");ti[1]="non",Ai.pathname=ti.join("/"),nt=Ai.toString()}return this.httpClient.get(nt,{context:J,params:m,responseType:Te,withCredentials:this.configuration.withCredentials,headers:p,observe:c,reportProgress:h})}getEntitylessAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessAttributesByKey(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesWithKeys(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"keys[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessKeys(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityResourceUserMemberAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"facility")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=s&&(a=this.addToHttpParams(a,s,"user")),null!=u&&(a=this.addToHttpParams(a,u,"member"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getFacilityUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getGroupResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getGroupResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getHostAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getIdpAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getLogins(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAndUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAndUserAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAndUserAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),s&&s.forEach(R=>{a=this.addToHttpParams(a,R,"attrNames[]")}),null!=u&&(a=this.addToHttpParams(a,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberGroupAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberGroupAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),s&&s.forEach(R=>{a=this.addToHttpParams(a,R,"attrNames[]")}),null!=u&&(a=this.addToHttpParams(a,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacility(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacilityService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesFacilityServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesGroupResourceService(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"service")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getRequiredAttributesHostService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMemberGroup(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getRequiredAttributesMemberGroupResourceService(e,t,s,u,d,l=!1,n="body",i=!1,a){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"group")),null!=u&&(c=this.addToHttpParams(c,u,"member")),null!=d&&(c=this.addToHttpParams(c,d,"workWithUserAttributes"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let p=a&&a.context;void 0===p&&(p=new v.qT);let w="json";m&&(w=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let R=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.get(R,{context:p,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"service")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=s&&(a=this.addToHttpParams(a,s,"member")),null!=u&&(a=this.addToHttpParams(a,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesMemberResource(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getRequiredAttributesMemberResourceService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"service")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=s&&(a=this.addToHttpParams(a,s,"member")),null!=u&&(a=this.addToHttpParams(a,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesResource(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesResourceService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesResourceServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesUserFacility(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesVoService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getResourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupAndGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"resource")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithGroupAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getResourceGroupAndGroupAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"resource")),null!=t&&(a=this.addToHttpParams(a,t,"group")),s&&s.forEach(R=>{a=this.addToHttpParams(a,R,"attrNames[]")}),null!=u&&(a=this.addToHttpParams(a,u,"workWithGroupAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getResourceGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupMemberAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"resource")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=s&&(a=this.addToHttpParams(a,s,"member")),u&&u.forEach(R=>{a=this.addToHttpParams(a,R,"attrNames[]")});let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getUserAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserFacilityAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getUserFacilityAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getUserFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVoAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeAttributesForFacilityResourceGroupUserMember(e,t,s,u,d,l,n=!1,i="body",a=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=s&&(h=this.addToHttpParams(h,s,"group")),null!=u&&(h=this.addToHttpParams(h,u,"user")),null!=d&&(h=this.addToHttpParams(h,d,"member")),l&&l.forEach(Te=>{h=this.addToHttpParams(h,Te,"attributes[]")});let m,f=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(f=f.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(f=f.set("Authorization","Bearer "+m));let p=c&&c.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(f=f.set("Accept",p));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";p&&(R=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(n){let Te=new URL(J),nt=Te.pathname.split("/");nt[1]="non",Te.pathname=nt.join("/"),J=Te.toString()}return this.httpClient.post(J,null,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:a})}removeAttributesForFacilityResourceUserMember(e,t,s,u,d,l=!1,n="body",i=!1,a){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"user")),null!=u&&(c=this.addToHttpParams(c,u,"member")),d&&d.forEach(J=>{c=this.addToHttpParams(c,J,"attributes[]")});let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let p=a&&a.context;void 0===p&&(p=new v.qT);let w="json";m&&(w=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let R=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.post(R,null,{context:p,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeGroupResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),s&&s.forEach(R=>{a=this.addToHttpParams(a,R,"attributes[]")}),null!=u&&(a=this.addToHttpParams(a,u,"workWithGroupAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeHostAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeHostAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributesWorkWithUserAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeMemberGroupAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeMemberGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),s&&s.forEach(R=>{a=this.addToHttpParams(a,R,"attributes[]")}),null!=u&&(a=this.addToHttpParams(a,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeMemberResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeMemberResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeResourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUesAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserExtSourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserFacilityAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeVoAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeVoAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}setAttributeActionCriticality(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==s)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"attributeDefinition")),null!=t&&(i=this.addToHttpParams(i,t,"action")),null!=s&&(i=this.addToHttpParams(i,s,"critical"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}setAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setEntitylessAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceGroupUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAndUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupWithGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(ei,8),_.LFG(st,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Sl=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new st,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new oi}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAllPolicies(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAllRolesManagementRules(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAuthzAdminGroups(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=s&&(i=this.addToHttpParams(i,s,"complementaryObjectName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getAuthzRichAdmins(e,t,s,u,d,l,n=!1,i="body",a=!1,c){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==u)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=s&&(h=this.addToHttpParams(h,s,"complementaryObjectName")),u&&u.forEach(Te=>{h=this.addToHttpParams(h,Te,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=l&&(h=this.addToHttpParams(h,l,"onlyDirectAdmins"));let m,f=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(f=f.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(f=f.set("Authorization","Bearer "+m));let p=c&&c.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(f=f.set("Accept",p));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";p&&(R=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let J=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(n){let Te=new URL(J),nt=Te.pathname.split("/");nt[1]="non",Te.pathname=nt.join("/"),J=Te.toString()}return this.httpClient.get(J,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:a})}getFacilitiesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getLoggedUser(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getMembersWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getPerunPrincipal(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPrincipalRoleNames(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getResourcesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getSecurityTeamsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVosWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}isFacilityAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isGroupAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isPerunAdmin(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}isVoAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}keepAlive(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}loadAuthorizationComponents(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}refreshMfa(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}setRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(ei,8),_.LFG(st,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),bd=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new st,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new oi}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}sentMessageToRTWithMemberQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"memberId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=s&&(a=this.addToHttpParams(a,s,"subject")),null!=u&&(a=this.addToHttpParams(a,u,"text"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}sentMessageToRTWithQueue(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}sentMessageToRTWithVo(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}sentMessageToRTWithVoQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=s&&(a=this.addToHttpParams(a,s,"subject")),null!=u&&(a=this.addToHttpParams(a,u,"text"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(ei,8),_.LFG(st,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Zg=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new st,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new oi}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}addApplicationMailForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}addApplicationMailForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}addGroupsToAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(m=>{l=this.addToHttpParams(l,m,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}approveApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}checkForSimilarRichIdentities(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.post(c,null,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}checkForSimilarUsersWithAuthInfo(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.post(c,null,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}consolidate(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/consolidate`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}consolidateIdentityUsingToken(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}copyFormFromGroupToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromGroupToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromVoToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromVoToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromGroupToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromGroupToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromVoToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromVoToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}createApplicationFormInGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}createApplicationFormInVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteApplicationMailForGroup(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteApplicationMailForVo(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteGroupsFromAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(m=>{l=this.addToHttpParams(l,m,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationById`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationDataById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationMailsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationMailsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationsForGroup(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),t&&t.forEach(R=>{a=this.addToHttpParams(a,R,"state[]")}),null!=s&&(a=this.addToHttpParams(a,s,"dateFrom")),null!=u&&(a=this.addToHttpParams(a,u,"dateTo"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getApplicationsForMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getApplicationsForVo(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"vo")),t&&t.forEach(R=>{a=this.addToHttpParams(a,R,"state[]")}),null!=s&&(a=this.addToHttpParams(a,s,"dateFrom")),null!=u&&(a=this.addToHttpParams(a,u,"dateTo"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getApplicationsPage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}getConsolidatorToken(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getFormItemsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getFormItems/group`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFormItemsForGroupWithType(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFormItemsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFormItemsForVoWithType(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupApplicationForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsToAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVoApplicationForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}invitationFormExists(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling invitationFormExists.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/invitationFormExists`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}inviteMemberCandidates(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputInviteMemberCandidates was null or undefined when calling inviteMemberCandidates.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/inviteMemberCandidates`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}rejectApplication(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"id")),null!=t&&(n=this.addToHttpParams(n,t,"reason"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}sendInvitation(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let a=new v.LE({encoder:this.encoder});null!=s&&(a=this.addToHttpParams(a,s,"voId")),null!=u&&(a=this.addToHttpParams(a,u,"name")),null!=e&&(a=this.addToHttpParams(a,e,"email")),null!=t&&(a=this.addToHttpParams(a,t,"language"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}sendInvitationForGroup(e,t,s,u,d,l=!1,n="body",i=!1,a){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let c=new v.LE({encoder:this.encoder});null!=s&&(c=this.addToHttpParams(c,s,"voId")),null!=u&&(c=this.addToHttpParams(c,u,"groupId")),null!=d&&(c=this.addToHttpParams(c,d,"name")),null!=e&&(c=this.addToHttpParams(c,e,"email")),null!=t&&(c=this.addToHttpParams(c,t,"language"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let p=a&&a.context;void 0===p&&(p=new v.qT);let w="json";m&&(w=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let R=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.post(R,null,{context:p,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}sendInvitationGroupToExistingUser(e,t,s,u=!1,d="body",l=!1,n){let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"userId")),null!=t&&(i=this.addToHttpParams(i,t,"voId")),null!=s&&(i=this.addToHttpParams(i,s,"groupId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}sendInvitationToExistingUser(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userId")),null!=t&&(n=this.addToHttpParams(n,t,"voId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}sendInvitationsFromCsv(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}sendMessage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/sendMessage`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setSendingEnabled(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}submitApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/submitApplication`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateApplicationMail(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateForm`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemData(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateFormItemData`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsData(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}verifyApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(ei,8),_.LFG(st,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),e_=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new st,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new oi}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAppsConfig(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getGuiConfiguration(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getNewGuiAlert(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunRPCVersion(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatistics(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatus(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunSystemTimeInMillis(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(ei,8),_.LFG(st,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Jv=(()=>{class o{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:o,providers:[{provide:st,useFactory:e}]}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(o,12),_.LFG(v.eN,8))},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})();var pt=(()=>{return(o=pt||(pt={})).PERUNADMIN="PERUNADMIN",o.PERUNOBSERVER="PERUNOBSERVER",o.VOADMIN="VOADMIN",o.GROUPADMIN="GROUPADMIN",o.GROUPOBSERVER="GROUPOBSERVER",o.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",o.SELF="SELF",o.FACILITYADMIN="FACILITYADMIN",o.FACILITIYOBSERVER="FACILITYOBSERVER",o.RESOURCEADMIN="RESOURCEADMIN",o.RESOURCESELFSERVICE="RESOURCESELFSERVICE",o.REGISTRAR="REGISTRAR",o.ENGINE="ENGINE",o.RPC="RPC",o.NOTIFICATIONS="NOTIFICATIONS",o.SERVICEUSER="SERVICEUSER",o.SPONSOR="SPONSOR",o.VOOBSERVER="VOOBSERVER",o.TOPGROUPCREATOR="TOPGROUPCREATOR",o.SECURITYADMIN="SECURITYADMIN",o.CABINETADMIN="CABINETADMIN",o.UNKNOWNROLENAME="UNKNOWNROLENAME",o.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",o.UNKNOWN="UNKNOWN",o.MEMBERSHIP="MEMBERSHIP",pt;var o})();let Kv=(()=>{class o{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,s)=>t.roleName>s.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(s=>{this.allRolesManagementRules=s,e()},s=>t(s))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(s=>{s.primaryObject===t&&e.push(s)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let s=e.beanName;s.startsWith("Rich")&&(s=s.substring(4)),this.assignAvailableRoles(t,s);const u=new Map;this.setRolesAuthorization(t,e,u);for(const d of u.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,s){for(const u of e){let d=[],l=[],n=[];for(const f of this.allRolesManagementRules)if(f.roleName===u.roleName){d=d.concat(f.privilegedRolesToRead),l=l.concat(f.privilegedRolesToManage);for(const m of Object.keys(f.entitiesToManage))n="User"===m?[m].concat(n):n.concat(m);break}const i=this.fetchAllRelatedObjects([t]),a=this.resolveAuthorization(d,i),c=this.resolveAuthorization(l,i);s.set(u.roleName,{readAuth:a,manageAuth:c,modes:n})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],s=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(u=>{!s.includes(u.roleName)&&this.canManage(u)&&this.ruleHasMode(u,e)&&t.push(u)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(s=>s.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const s of e){let u=!0;for(const d of Object.keys(s)){const l=s[d];if(null===l)this.principalRoles.has(d)||(u=!1);else if(t[l]){for(const n of t[l])if(!this.principalHasRole(d,l,n)){u=!1;break}}else u=!1;if(!u)break}if(u)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const s of e){let u=s.beanName;switch(s.beanName.startsWith("Rich")&&(u=s.beanName.substring(4)),t[u]?t[u].push(s.id):t[u]=[s.id],u){case"Member":t.User?t.User.push(s.userId):t.User=[s.userId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Resource":t.Facility?t.Facility.push(s.facilityId):t.Facility=[s.facilityId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let s=[];for(s.push(e);0!==s.length;){const d=s.shift();if(t.has(d))continue;const l=this.getPerunPolicy(d);if(!l)return[];t.set(d,l),s=s.concat(l.includePolicies)}const u=[];for(const d of t.values())u.push(d);return u}voCustomSort(e){for(let t=0;t{class o{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],s=this.defaultConfig[e];let u=null;for(const d of t)d&&null==u&&(u=d[e]);return null===u?s:this.addMissingValuesToProperty(u,s)}addMissingValuesToProperty(e,t){if(null==e)return t;if("object"==typeof e&&!Array.isArray(e))for(const s of Object.keys(t))e[s]=this.addMissingValuesToProperty(e[s],t[s]);return e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),El=(()=>{class o{constructor(e,t,s,u,d){this.injector=e,this.store=t,this.dialog=s,this.route=u,this.oauthService=d,setTimeout(()=>{this.router=this.injector.get(Zt),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(l=>{l.idpFilter&&(this.filterShortname=String(l.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),u=.5+.25*Math.random(),d=e?{acr_values:e}:{},l=this.store.getProperty("oidc_client");if(l.oauth_scopes.split(" ").includes("offline_access")&&l.oauth_offline_access_consent_prompt&&(d.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(d.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(d.prompt?d.prompt+=" login":d.prompt="login",d.max_age="0"),"Linker"===this.store.getProperty("application")){d.prompt?d.prompt+=" login":d.prompt="login";const n=_d("idphint",location.search.substring(1));n&&(d.idphint=n)}return{requestAccessToken:!0,issuer:l.oauth_authority,clientId:l.oauth_client_id,redirectUri:l.oauth_redirect_uri,postLogoutRedirectUri:l.oauth_post_logout_redirect_uri,responseType:l.oauth_response_type,scope:l.oauth_scopes,clockSkewInSec:1,timeoutFactor:u,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:d}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let s=null;return e.forEach(u=>{const d=u.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],s=t[d[1]])}),t.default&&!s?(this.filterShortname="default",t.default):s}startIdpFilterKeeper(){this.router.events.pipe((0,$t.h)(e=>e instanceof Ur)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.zs3),_.LFG(Vn),_.LFG(lr),_.LFG(Nr),_.LFG($r.Ct))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),rp=(()=>{class o{constructor(e){this.dialogRef=e}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Bn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(_.TgZ(0,"h2",0),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&e&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[cr,Hi]}),o})();var s_=E(930);function ap(o,r){const e="object"==typeof r;return new Promise((t,s)=>{const u=new s_.Hp({next:d=>{t(d),u.unsubscribe()},error:s,complete:()=>{e?t(r.defaultValue):s(new Rt.K)}});o.subscribe(u)})}function l_(o,r){1&o&&(_.TgZ(0,"mat-icon",2),_._uU(1," info "),_.qZA())}function c_(o,r){1&o&&(_.TgZ(0,"mat-icon",2),_._uU(1," warning "),_.qZA())}function Zv(o,r){1&o&&(_.TgZ(0,"mat-icon",2),_._uU(1," dangerous "),_.qZA())}function d_(o,r){1&o&&(_.TgZ(0,"mat-icon",2),_._uU(1," check_circle "),_.qZA())}const u_=["*"];let yd=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:u_,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(_.F$t(),_.TgZ(0,"div",0),_.YNc(1,l_,2,0,"mat-icon",1),_.YNc(2,c_,2,0,"mat-icon",1),_.YNc(3,Zv,2,0,"mat-icon",1),_.YNc(4,d_,2,0,"mat-icon",1),_.Hsn(5),_.qZA()),2&e&&(_.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),_.xp6(1),_.Q6J("ngIf","info"===t.alert_type),_.xp6(1),_.Q6J("ngIf","warn"===t.alert_type),_.xp6(1),_.Q6J("ngIf","error"===t.alert_type),_.xp6(1),_.Q6J("ngIf","success"===t.alert_type))},dependencies:[Ft,M.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),o})(),h_=(()=>{class o{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Bn),_.Y36(hs))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),_._uU(5),_.ALo(6,"translate"),_.ALo(7,"translate"),_.qZA()(),_.TgZ(8,"div",3)(9,"button",4),_.NdJ("click",function(){return t.cancel()}),_._uU(10),_.ALo(11,"translate"),_.qZA(),_.TgZ(12,"button",5),_.NdJ("click",function(){return t.submit()}),_._uU(13),_.ALo(14,"translate"),_.qZA()()),2&e&&(_.xp6(1),_.Oqu(_.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),_.xp6(4),_.hij(" ",t.data.mfaRoleException?_.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):_.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),_.xp6(4),_.Q6J("hidden",t.data.mfaRoleException),_.xp6(1),_.hij(" ",_.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),_.xp6(2),_.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),_.xp6(1),_.hij(" ",_.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[sa,cr,la,Kr,yd,Hi]}),o})(),Xv=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(_.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),_._uU(3," info "),_.qZA(),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.TgZ(6,"div"),_._uU(7),_.ALo(8,"translate"),_.qZA()()),2&e&&(_.xp6(4),_.hij(" ",_.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),_.xp6(3),_.hij(" ",_.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Ft,Hi],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),o})(),Qi=(()=>{class o{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(hs),_.Y36(Bn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),_._uU(5),_.ALo(6,"translate"),_.qZA()(),_.TgZ(7,"div",3)(8,"button",4),_.NdJ("click",function(){return t.cancel()}),_._uU(9),_.ALo(10,"translate"),_.qZA(),_.TgZ(11,"button",5),_.NdJ("click",function(){return t.submit()}),_._uU(12),_.ALo(13,"translate"),_.qZA()()),2&e&&(_.xp6(1),_.Oqu(_.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),_.xp6(4),_.hij(" ",_.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),_.xp6(4),_.hij(" ",_.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),_.xp6(3),_.hij(" ",_.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[sa,cr,la,Kr,yd,Hi]}),o})(),ca=(()=>{class o{constructor(e,t,s,u){this.dialog=e,this.oauthService=t,this.authService=s,this.store=u}openMfaWindow(e){let t=null,s=null;const u=dr();u.width="450px",u.data={mfaRoleException:e};const d=this.dialog.open(h_,u);let l=!1;if(d.afterClosed().subscribe(n=>{if(n){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const i=dr();i.width="450px",i.panelClass="noBorderDialog",s=this.dialog.open(Xv,i)}}else l=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const n=dr();n.width="450px",n.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(Qi,n)}return new Ye.y(n=>{const i=setInterval(()=>t?.closed?(clearInterval(i),s.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),n.next(!0)):l?(clearInterval(i),n.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,u=window.top;return window.open(e,"_blank",`width=600,height=600,top=${u.outerHeight/2+u.screenY-300}, left=${u.outerWidth/2+u.screenX-300}`)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(lr),_.LFG($r.Ct),_.LFG(El),_.LFG(Vn))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),p_=(()=>{class o{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.oauthService=t,this.storeService=s,this.authResolver=u,this.authzService=d,this.dialog=l,this.router=n,this.mfaHandlerService=i,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return ap(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=dr();this.dialog.open(rp,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return ap(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const s={};return t.split("&").forEach(u=>{const d=u.split("=");s[d[0]]=d[1]}),this.router.navigate(["service-access"],{queryParams:s,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const s of t)if(e.startsWith(s))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,$t.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const s=sessionStorage.getItem("auth:queryParams");let u=[];s&&(u=s.split("&"));const d={};return u.forEach(l=>{const n=l.split("=");d[n[0]]=n[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:d,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(El),_.LFG($r.Ct),_.LFG(Vn),_.LFG(Kv),_.LFG(Sl),_.LFG(lr),_.LFG(Zt),_.LFG(ca))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),eA=(()=>{class o{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Ka),_.LFG(bi))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),tA=(()=>{class o{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Bn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.TgZ(6,"div",2)(7,"div",3)(8,"button",4),_.NdJ("click",function(){return t.close()}),_._uU(9),_.ALo(10,"translate"),_.qZA()()()),2&e&&(_.xp6(1),_.Oqu(_.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),_.xp6(3),_.hij(" ",_.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),_.xp6(5),_.hij(" ",_.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[sa,cr,la,Kr,Hi]}),o})(),f_=(()=>{class o{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),m_=(()=>{class o extends oa{instant(e,t){return String(super.instant(e,t))}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Za=(()=>{class o{constructor(e){this.translate=e,this.addNotification=new _.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){this.showInstantError("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR",null,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC")}showError(e,t,s,u,d){this.addNotification.emit({type:"error",error:t,description:s,title:e,actionText:void 0===u&&void 0!==s?this.getDefaultActionMessage():u,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showInstantError(e,t,s,u,d){const l=s?this.translate.instant(s):null,n=u?this.translate.instant(u):null;n?this.showError(this.translate.instant(e),t,l,n,d):this.showError(this.translate.instant(e),t,l)}showSuccess(e,t,s,u){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===s&&void 0!==t?this.getDefaultActionMessage():s,delay:this.defaultSuccessDelayMs,icon:"done",action:u,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showInstantSuccess(e,t,s,u){const d=t?this.translate.instant(t):null,l=s?this.translate.instant(s):null;l?this.showSuccess(this.translate.instant(e),d,l,u):this.showSuccess(this.translate.instant(e),d)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(m_))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),g_=(()=>{class o{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.apiRequestConfiguration=t,this.notificator=s,this.store=u,this.dialog=d,this.initAuthService=l,this.mfaHandlerService=n,this.oauthService=i}intercept(e,t){const s=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==s&&this.isCallToPerunApi(e.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const u=dr();u.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(tA,u),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Aa(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const s=this.apiRequestConfiguration.shouldHandleError(),u="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Qt.b)(d=>{d instanceof v.Zn&&u&&this.initAuthService.loadPrincipal()}),(0,Et.K)(d=>{const l=d.error;if("MfaPrivilegeException"===l.type||"MfaRolePrivilegeException"===l.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===l.type).pipe((0,Bi.w)(n=>n?("MfaRolePrivilegeException"===l.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,Ci._)(()=>l)));{this.handleInvalidAccessTokenError(d);const n=this.formatErrors(d,e);return void 0===n?(0,Ci._)(()=>d):(s&&this.notificator.showRPCError(n),(0,Ci._)(()=>n))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let s;console.error(e);const u=e.error;if(u.errorId&&(s=u),void 0!==s)return s.urlWithParams=t.urlWithParams,s.call=t.url,s.payload=t.body,s}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){if(!this.isLoggedIn()||"invalid_token"===e.error.error||null!=this.dialogRefSessionExpiration)return;const t=dr();this.dialogRefSessionExpiration=this.dialog.open(tA,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(El),_.LFG(f_),_.LFG(Za),_.LFG(Vn),_.LFG(lr),_.LFG(p_),_.LFG(ca),_.LFG($r.Ct))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),vd=(()=>{class o{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),iA=(()=>{class o{constructor(e,t,s,u){this.http=e,this.notificator=t,this.authService=s,this.storeService=u}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new v.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.get(s,{headers:this.getHeaders()}).pipe((0,Et.K)(u=>this.formatErrors(u,s,null,t)))}put(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(u,d,{headers:this.getHeaders()}).pipe((0,Et.K)(l=>this.formatErrors(l,u,d,s)))}post(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let l=this.getHeaders();return l=l.set("Content-Type","application/json; charset=utf-8"),this.http.post(u,d,{headers:l}).pipe((0,Et.K)(n=>this.formatErrors(n,u,d,s)))}delete(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.delete(s,{headers:this.getHeaders()}).pipe((0,Et.K)(u=>this.formatErrors(u,s,null,t)))}formatErrors(e,t,s,u){const d=e.error;return d.call=t,d.payload=s,u&&this.notificator.showRPCError(e.error),(0,Ci._)(d)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(Za),_.LFG(El),_.LFG(Vn))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Ad=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez]}),o})(),op=(()=>{class o{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=_.Yjl({name:"userFullName",type:o,pure:!0}),o})(),sp=(()=>{class o{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const s=this.storage.getProperty("custom_labels");if(s)for(const u of s)if(u.label===e)return u[t];return e}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(oa,16),_.Y36(Vn,16))},o.\u0275pipe=_.Yjl({name:"customTranslate",type:o,pure:!0}),o})();function sA(o,r){if(1&o&&(_.O4$(),_._UZ(0,"circle",4)),2&o){const e=_.oxw(),t=_.MAs(1);_.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),_.uIk("r",e._getCircleRadius())}}function lA(o,r){if(1&o&&(_.O4$(),_._UZ(0,"circle",4)),2&o){const e=_.oxw(),t=_.MAs(1);_.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),_.uIk("r",e._getCircleRadius())}}const cA=qa(class{constructor(o){this._elementRef=o}},"primary"),w_=new _.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function y_(){return{diameter:100}}});class On extends cA{constructor(r,e,t,s,u,d,l,n){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Wt.w0.EMPTY,this.mode="determinate";const i=On._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),i.has(t.head)||i.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===s&&!!u&&!u._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),u&&(u.color&&(this.color=this.defaultColor=u.color),u.diameter&&(this.diameter=u.diameter),u.strokeWidth&&(this.strokeWidth=u.strokeWidth)),e.isBrowser&&e.SAFARI&&l&&d&&n&&(this._resizeSubscription=l.change(150).subscribe(()=>{"indeterminate"===this.mode&&n.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=ji(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=ji(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,ji(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=Qr(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(r){const e=50*(r.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=On._diameters;let s=t.get(r);if(!s||!s.has(e)){const u=this._document.createElement("style");u.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),u.textContent=this._getAnimationText(),r.appendChild(u),s||(s=new Set,t.set(r,s)),s.add(e)}}_getAnimationText(){const r=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}On._diameters=new WeakMap,On.\u0275fac=function(r){return new(r||On)(_.Y36(_.SBq),_.Y36(mi),_.Y36(M.K0,8),_.Y36(_.QbO,8),_.Y36(w_),_.Y36(_.sBO),_.Y36(Wa),_.Y36(_.R0b))},On.\u0275cmp=_.Xpm({type:On,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(_.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),_.Udp("width",e.diameter,"px")("height",e.diameter,"px"),_.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[_.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(r,e){1&r&&(_.O4$(),_.TgZ(0,"svg",0,1),_.YNc(2,sA,1,11,"circle",2),_.YNc(3,lA,1,9,"circle",3),_.qZA()),2&r&&(_.Udp("width",e.diameter,"px")("height",e.diameter,"px"),_.Q6J("ngSwitch","indeterminate"===e.mode),_.uIk("viewBox",e._getViewBox()),_.xp6(2),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngSwitchCase",!1))},dependencies:[M.RF,M.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let Hl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,M.ez,Se]}),o})();const cp=Xn({passive:!0});let v_=(()=>{class o{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return qt.E;const t=Xt(e),s=this._monitoredElements.get(t);if(s)return s.subject;const u=new Me.x,d="cdk-text-field-autofilled",l=n=>{"cdk-text-field-autofill-start"!==n.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===n.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",l,cp),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:u,unlisten:()=>{t.removeEventListener("animationstart",l,cp)}}),u}stopMonitoring(e){const t=Xt(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(mi),_.LFG(_.R0b))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),dp=(()=>{class o{constructor(e,t,s,u){this._elementRef=e,this._platform=t,this._ngZone=s,this._destroyed=new Me.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=d=>{this._hasFocus="focus"===d.type},this._document=u,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=ji(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=ji(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=ut(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Qo(this._getWindow(),"resize").pipe(Wc(16),It(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",s=this._platform.FIREFOX,u=s&&this._hasFocus,d=s?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";u&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(d);const l=e.scrollHeight-4;return e.classList.remove(d),u&&(e.style.marginBottom=t),l}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,s=t.value;if(!e&&this._minRows===this._previousMinRows&&s===this._previousValue)return;const u=this._measureScrollHeight(),d=Math.max(u,this._cachedPlaceholderHeight||0);t.style.height=`${d}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=s,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:s}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,s)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(mi),_.Y36(_.R0b),_.Y36(M.K0,8))},o.\u0275dir=_.lG2({type:o,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&_.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),o})(),A_=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),x_=(()=>{class o{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.Qsj),_.Y36(_.SBq))},o.\u0275dir=_.lG2({type:o}),o})(),fs=(()=>{class o extends x_{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275dir=_.lG2({type:o,features:[_.qOj]}),o})();const Fi=new _.OlP("NgValueAccessor"),sE={provide:Fi,useExisting:(0,_.Gpc)(()=>Rl),multi:!0},cE=new _.OlP("CompositionEventMode");let Rl=(()=>{class o extends x_{constructor(e,t,s){super(e,t),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function lE(){const o=(0,M.q)()?(0,M.q)().getUserAgent():"";return/android (\d+)/.test(o.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.Qsj),_.Y36(_.SBq),_.Y36(cE,8))},o.\u0275dir=_.lG2({type:o,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&_.NdJ("input",function(u){return t._handleInput(u.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(u){return t._compositionEnd(u.target.value)})},features:[_._Bn([sE]),_.qOj]}),o})();function Xa(o){return null==o||("string"==typeof o||Array.isArray(o))&&0===o.length}function Pl(o){return null!=o&&"number"==typeof o.length}const vi=new _.OlP("NgValidators"),Br=new _.OlP("NgAsyncValidators"),Sd=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ms{static min(r){return function up(o){return r=>{if(Xa(r.value)||Xa(o))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(Xa(r.value)||Xa(o))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>o?{max:{max:o,actual:r.value}}:null}}(r)}static required(r){return Td(r)}static requiredTrue(r){return function hp(o){return!0===o.value?null:{required:!0}}(r)}static email(r){return function S_(o){return Xa(o.value)||Sd.test(o.value)?null:{email:!0}}(r)}static minLength(r){return function pp(o){return r=>Xa(r.value)||!Pl(r.value)?null:r.value.lengthPl(r.value)&&r.value.length>o?{maxlength:{requiredLength:o,actualLength:r.value.length}}:null}(r)}static pattern(r){return function T_(o){if(!o)return Ed;let r,e;return"string"==typeof o?(e="","^"!==o.charAt(0)&&(e+="^"),e+=o,"$"!==o.charAt(o.length-1)&&(e+="$"),r=new RegExp(e)):(e=o.toString(),r=o),t=>{if(Xa(t.value))return null;const s=t.value;return r.test(s)?null:{pattern:{requiredPattern:e,actualValue:s}}}}(r)}static nullValidator(r){return null}static compose(r){return D_(r)}static composeAsync(r){return H_(r)}}function Td(o){return Xa(o.value)?{required:!0}:null}function Ed(o){return null}function E_(o){return null!=o}function Il(o){return(0,_.QGY)(o)?(0,_t.D)(o):o}function M_(o){let r={};return o.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function mA(o,r){return r.map(e=>e(o))}function gA(o){return o.map(r=>function uE(o){return!o.validate}(r)?r:e=>r.validate(e))}function D_(o){if(!o)return null;const r=o.filter(E_);return 0==r.length?null:function(e){return M_(mA(e,r))}}function fp(o){return null!=o?D_(gA(o)):null}function H_(o){if(!o)return null;const r=o.filter(E_);return 0==r.length?null:function(e){return sd(mA(e,r).map(Il)).pipe((0,qe.U)(M_))}}function R_(o){return null!=o?H_(gA(o)):null}function P_(o,r){return null===o?[r]:Array.isArray(o)?[...o,r]:[o,r]}function mp(o){return o._rawValidators}function gp(o){return o._rawAsyncValidators}function I_(o){return o?Array.isArray(o)?o:[o]:[]}function nn(o,r){return Array.isArray(o)?o.includes(r):o===r}function k_(o,r){const e=I_(r);return I_(o).forEach(s=>{nn(e,s)||e.push(s)}),e}function Md(o,r){return I_(r).filter(e=>!nn(o,e))}class B_{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=fp(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=R_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class kt extends B_{get formDirective(){return null}get path(){return null}}class ur extends B_{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let gs=(()=>{class o extends class Dd{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(ur,2))},o.\u0275dir=_.lG2({type:o,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&_.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[_.qOj]}),o})();const _s="VALID",bp="INVALID",to="PENDING",kl="DISABLED";function Id(o){return(Vl(o)?o.validators:o)||null}function SA(o){return Array.isArray(o)?fp(o):o||null}function Bl(o,r){return(Vl(r)?r.asyncValidators:o)||null}function Cp(o){return Array.isArray(o)?R_(o):o||null}function Vl(o){return null!=o&&!Array.isArray(o)&&"object"==typeof o}class yp{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=SA(this._rawValidators),this._composedAsyncValidatorFn=Cp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===_s}get invalid(){return this.status===bp}get pending(){return this.status==to}get disabled(){return this.status===kl}get enabled(){return this.status!==kl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=SA(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=Cp(r)}addValidators(r){this.setValidators(k_(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(k_(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(Md(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(Md(r,this._rawAsyncValidators))}hasValidator(r){return nn(this._rawValidators,r)}hasAsyncValidator(r){return nn(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=to,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=kl,this.errors=null,this._forEachChild(t=>{t.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=_s,this._forEachChild(t=>{t.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===_s||this.status===to)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?kl:_s}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=to,this._hasOwnPendingAsyncValidator=!0;const e=Il(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,s)=>t&&t._find(s),this)}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new _.vpe,this.statusChanges=new _.vpe}_calculateStatus(){return this._allControlsDisabled()?kl:this.errors?bp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(to)?to:this._anyControlsHaveStatus(bp)?bp:_s}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){Vl(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class bs extends yp{constructor(r,e,t){super(Id(e),Bl(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){(function wp(o,r,e){o._forEachChild((t,s)=>{if(void 0===e[s])throw new _.vHH(1002,"")})})(this,0,r),Object.keys(r).forEach(t=>{(function F_(o,r,e){const t=o.controls;if(!(r?Object.keys(t):t).length)throw new _.vHH(1e3,"");if(!t[e])throw new _.vHH(1001,"")})(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{const s=this.controls[t];s&&s.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,s)=>{t.reset(r[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,s)=>((t.enabled||this.disabled)&&(e[s]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((s,u)=>{t=e(t,s,u)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}function kd(o,r){Vd(o,r),r.valueAccessor.writeValue(o.value),o.disabled&&r.valueAccessor.setDisabledState?.(!0),function DA(o,r){r.valueAccessor.registerOnChange(e=>{o._pendingValue=e,o._pendingChange=!0,o._pendingDirty=!0,"change"===o.updateOn&&RA(o,r)})}(o,r),function gE(o,r){const e=(t,s)=>{r.valueAccessor.writeValue(t),s&&r.viewToModelUpdate(t)};o.registerOnChange(e),r._registerOnDestroy(()=>{o._unregisterOnChange(e)})}(o,r),function HA(o,r){r.valueAccessor.registerOnTouched(()=>{o._pendingTouched=!0,"blur"===o.updateOn&&o._pendingChange&&RA(o,r),"submit"!==o.updateOn&&o.markAsTouched()})}(o,r),function mE(o,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};o.registerOnDisabledChange(e),r._registerOnDestroy(()=>{o._unregisterOnDisabledChange(e)})}}(o,r)}function Bd(o,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),Od(o,r),o&&(r._invokeOnDestroyCallbacks(),o._registerOnCollectionChange(()=>{}))}function Ap(o,r){o.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function Vd(o,r){const e=mp(o);null!==r.validator?o.setValidators(P_(e,r.validator)):"function"==typeof e&&o.setValidators([e]);const t=gp(o);null!==r.asyncValidator?o.setAsyncValidators(P_(t,r.asyncValidator)):"function"==typeof t&&o.setAsyncValidators([t]);const s=()=>o.updateValueAndValidity();Ap(r._rawValidators,s),Ap(r._rawAsyncValidators,s)}function Od(o,r){let e=!1;if(null!==o){if(null!==r.validator){const s=mp(o);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==r.validator);u.length!==s.length&&(e=!0,o.setValidators(u))}}if(null!==r.asyncValidator){const s=gp(o);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==r.asyncValidator);u.length!==s.length&&(e=!0,o.setAsyncValidators(u))}}}const t=()=>{};return Ap(r._rawValidators,t),Ap(r._rawAsyncValidators,t),e}function RA(o,r){o._pendingDirty&&o.markAsDirty(),o.setValue(o._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(o._pendingValue),o._pendingChange=!1}function PA(o,r){Vd(o,r)}function xp(o,r){if(!o.hasOwnProperty("model"))return!1;const e=o.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}function ua(o,r){o._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Ld(o,r){if(!r)return null;let e,t,s;return Array.isArray(r),r.forEach(u=>{u.constructor===Rl?e=u:function U_(o){return Object.getPrototypeOf(o.constructor)===fs}(u)?t=u:s=u}),s||t||e||null}const kA={provide:kt,useExisting:(0,_.Gpc)(()=>no)},io=(()=>Promise.resolve(null))();let no=(()=>{class o extends kt{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new _.vpe,this.form=new bs({},fp(e),R_(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){io.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),kd(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){io.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){io.then(()=>{const t=this._findContainer(e.path),s=new bs({});PA(s,e),t.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){io.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){io.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,ua(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(vi,10),_.Y36(Br,10))},o.\u0275dir=_.lG2({type:o,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&_.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_._Bn([kA]),_.qOj]}),o})();function jl(o,r){const e=o.indexOf(r);e>-1&&o.splice(e,1)}function BA(o){return"object"==typeof o&&null!==o&&2===Object.keys(o).length&&"value"in o&&"disabled"in o}const q_=class extends yp{constructor(r=null,e,t){super(Id(e),Bl(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Vl(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=BA(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){jl(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){jl(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){BA(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},CE=q_,G_={provide:ur,useExisting:(0,_.Gpc)(()=>jd)},W_=(()=>Promise.resolve(null))();let jd=(()=>{class o extends ur{constructor(e,t,s,u,d){super(),this._changeDetectorRef=d,this.control=new q_,this._registered=!1,this.update=new _.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=Ld(0,u)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),xp(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){kd(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){W_.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,s=0!==t&&(0,_.D6c)(t);W_.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Ol(o,r){return[...r.path,o]}(e,this._parent):[e]}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(kt,9),_.Y36(vi,10),_.Y36(Br,10),_.Y36(Fi,10),_.Y36(_.sBO,8))},o.\u0275dir=_.lG2({type:o,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[_._Bn([G_]),_.qOj,_.TTD]}),o})(),J_=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})();const Dp=new _.OlP("NgModelWithFormControlWarning"),jA={provide:ur,useExisting:(0,_.Gpc)(()=>Z_)};let Z_=(()=>{class o extends ur{constructor(e,t,s,u){super(),this._ngModelWarningConfig=u,this.update=new _.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Ld(0,s)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Bd(t,this,!1),kd(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}xp(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Bd(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return o._ngModelWarningSentOnce=!1,o.\u0275fac=function(e){return new(e||o)(_.Y36(vi,10),_.Y36(Br,10),_.Y36(Fi,10),_.Y36(Dp,8))},o.\u0275dir=_.lG2({type:o,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[_._Bn([jA]),_.qOj,_.TTD]}),o})();const TE={provide:kt,useExisting:(0,_.Gpc)(()=>Fd)};let Fd=(()=>{class o extends kt{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new _.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Od(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return kd(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Bd(e.control||null,e,!1),function Sp(o,r){const e=o.indexOf(r);e>-1&&o.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,ua(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,s=this.form.get(e.path);t!==s&&(Bd(t||null,e),(o=>o instanceof q_)(s)&&(kd(s,e),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);PA(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function _E(o,r){return Od(o,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Vd(this.form,this),this._oldForm&&Od(this._oldForm,this)}_checkFormPresent(){}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(vi,10),_.Y36(Br,10))},o.\u0275dir=_.lG2({type:o,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&_.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_._Bn([TE]),_.qOj,_.TTD]}),o})(),U=(()=>{class o{constructor(){this._validator=Ed}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Ed,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,features:[_.TTD]}),o})();const Be={provide:vi,useExisting:(0,_.Gpc)(()=>$e),multi:!0};let $e=(()=>{class o extends U{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=_.D6c,this.createValidator=e=>Td}enabled(e){return e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275dir=_.lG2({type:o,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&_.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[_._Bn([Be]),_.qOj]}),o})(),qd=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[J_]}),o})(),Fl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[qd]}),o})(),Pp=(()=>{class o{static withConfig(e){return{ngModule:o,providers:[{provide:Dp,useValue:e.warnOnNgModelWithFormControl}]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[qd]}),o})();const HE=new _.OlP("MAT_INPUT_VALUE_ACCESSOR"),sH=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let lH=0;const cH=Xu(class{constructor(o,r,e,t){this._defaultErrorStateMatcher=o,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Me.x}});let zA=(()=>{class o extends cH{constructor(e,t,s,u,d,l,n,i,a,c){super(l,u,d,s),this._elementRef=e,this._platform=t,this._autofillMonitor=i,this._formField=c,this._uid="mat-input-"+lH++,this.focused=!1,this.stateChanges=new Me.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(m=>Iu().has(m)),this._iOSKeyupListener=m=>{const p=m.target;!p.value&&0===p.selectionStart&&0===p.selectionEnd&&(p.setSelectionRange(1,1),p.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=n||h,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&a.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!c,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ut(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(ms.required)??!1}set required(e){this._required=ut(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Iu().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ut(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=t,t?s.setAttribute("placeholder",t):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){sH.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(mi),_.Y36(ur,10),_.Y36(no,8),_.Y36(Fd,8),_.Y36(Lc),_.Y36(HE,10),_.Y36(v_),_.Y36(_.R0b),_.Y36(rd,8))},o.\u0275dir=_.lG2({type:o,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&_.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(_.Ikx("disabled",t.disabled)("required",t.required),_.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),_.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[_._Bn([{provide:td,useExisting:o}]),_.qOj,_.TTD]}),o})(),rb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[Lc],imports:[A_,Hr,Se,A_,Hr]}),o})();function dH(o,r){1&o&&_._UZ(0,"mat-spinner",7)}function uH(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"mat-form-field",10)(5,"textarea",11),_.NdJ("ngModelChange",function(s){_.CHM(e);const u=_.oxw();return _.KtG(u.message=s)}),_.ALo(6,"translate"),_.qZA()()()}if(2&o){const e=_.oxw();_.xp6(2),_.hij(" ",_.lcZ(3,3,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.SUBTITLE")," "),_.xp6(3),_.s9C("placeholder",_.lcZ(6,5,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.PLACEHOLDER")),_.Q6J("ngModel",e.message)}}let hH=(()=>{class o{constructor(e,t,s,u,d,l){this.dialogRef=e,this.storeService=t,this.authzService=s,this.oAuthStorage=u,this.rtMessages=d,this.userFullNamePipe=l,this.loading=!1,this.message="Hello, during the linking of my accounts I encountered a situation where the system cannot automatically link these accounts. Therefore I want to ask you for help with linking my accounts."}onCancel(){this.dialogRef.close(null)}onSend(){this.loading=!0;const e=this.storeService.getPerunPrincipal().user,t=location.search.substring(1);this.oAuthStorage.setItem("access_token",_d("formerToken",t)),this.authzService.getPerunPrincipal().subscribe(s=>{this.rtMessages.sentMessageToRTWithQueue("perun","Account linking: The accounts could not be automatically linked.",this.getFullEmailBody(e,s.user)).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>{this.loading=!1,this.dialogRef.close(!1)}})})}getFullEmailBody(e,t){const s=this.storeService.getProperty("config");let u=this.message+"\n________________________________________________________________________\n\nAccount linking: The accounts could not be automatically linked.\nThe user proved his identities, but they were connected to different users.\nBy this message the user is asking for help with identity consolidation.\n";return u=u.concat("\n\n"),u=u.concat("Information about users: \n\n"),u=u.concat("First user: \nid="+t.id.toString()+"\nName: "+this.userFullNamePipe.transform(t)+"\n\n"),u=u.concat("Second user: \nid="+e.id.toString()+"\nName: "+this.userFullNamePipe.transform(e)+"\n\n"),u=u.concat("Perun instance: "+s+"\n"),u=u.concat("Sended from new Consolidator Gui, version: ",E(4147).i8),u.split("\n").join("\n ")}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Bn),_.Y36(Vn),_.Y36(Sl),_.Y36($r.Hy),_.Y36(bd),_.Y36(op))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-send-message-dialog"]],decls:14,vars:11,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","cdkTextareaAutosize","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,t){1&e&&(_.TgZ(0,"div")(1,"div",0)(2,"h1",1),_._uU(3),_.ALo(4,"translate"),_.qZA()(),_.YNc(5,dH,1,0,"mat-spinner",2),_.YNc(6,uH,7,7,"div",3),_.TgZ(7,"div",4)(8,"button",5),_.NdJ("click",function(){return t.onCancel()}),_._uU(9),_.ALo(10,"translate"),_.qZA(),_.TgZ(11,"button",6),_.NdJ("click",function(){return t.onSend()}),_._uU(12),_.ALo(13,"translate"),_.qZA()()()),2&e&&(_.xp6(3),_.hij(" ",_.lcZ(4,5,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.TITLE")," "),_.xp6(2),_.Q6J("ngIf",t.loading),_.xp6(1),_.Q6J("ngIf",!t.loading),_.xp6(3),_.hij(" ",_.lcZ(10,7,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.CANCEL")," "),_.xp6(3),_.hij(" ",_.lcZ(13,9,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.SUBMIT")," "))},dependencies:[M.O5,Kr,sa,cr,la,On,ml,dp,zA,Rl,gs,jd,yd,Hi]}),o})();function pH(o,r){if(1&o&&(_.TgZ(0,"mat-icon",6),_._uU(1),_.qZA()),2&o){const e=_.oxw();_.xp6(1),_.hij(" ",e.icon," ")}}function fH(o,r){1&o&&_._UZ(0,"mat-icon",7)}function mH(o,r){if(1&o&&(_.TgZ(0,"span"),_._uU(1),_.qZA()),2&o){const e=_.oxw(2);_.xp6(1),_.hij(" ",e.supportMail," ")}}function gH(o,r){if(1&o&&(_.TgZ(0,"span"),_._uU(1),_.qZA()),2&o){const e=_.oxw(2);_.xp6(1),_.hij(" ",e.userMail," ")}}function _H(o,r){if(1&o&&(_.TgZ(0,"h5"),_._uU(1),_.ALo(2,"translate"),_.YNc(3,mH,2,1,"span",5),_.YNc(4,gH,2,1,"span",5),_.qZA()),2&o){const e=_.oxw();_.xp6(1),_.hij(" ",_.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR."+e.result+"_SUBTITLE")," "),_.xp6(2),_.Q6J("ngIf","UNKNOWN_ERROR"===e.result),_.xp6(1),_.Q6J("ngIf","MESSAGE_SENT_TO_SUPPORT"===e.result)}}function bH(o,r){if(1&o&&(_.TgZ(0,"h5"),_._uU(1),_.ALo(2,"translate"),_.ALo(3,"translate"),_.qZA()),2&o){const e=_.oxw();_.xp6(1),_.lnq(" ",_.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_1")," ",e.userMail," ",_.lcZ(3,5,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_2")," ")}}const CH=function(o){return{"background-color":o}},wH=["*"];let yH=(()=>{class o{constructor(e){this.store=e,this.supportMail=this.store.getProperty("support_mail"),this.userMail=this.store.getPerunPrincipal().additionalInformations.mail,this.color="",this.icon="",this.greenColor="#e0ffd4",this.blueColor="#d4f2ff",this.redColor="#ffd4d4",this.warningIcon="warning",this.infoIcon="info",this.messageSent="mark_email_read"}ngOnChanges(){switch(this.result){case"OK":this.color=this.greenColor;break;case"IDENTITY_REGISTERED_ALREADY":case"UNKNOWN_ERROR":this.color=this.redColor,this.icon=this.warningIcon;break;case"IDENTITY_IDENTICAL":case"IDENTITY_LINKED":case"IDENTITY_UNKNOWN":this.color=this.blueColor,this.icon=this.infoIcon;break;case"MESSAGE_SENT_TO_SUPPORT":this.color=this.blueColor,this.icon=this.messageSent;break;case"TOKEN_EXPIRED":this.color=this.blueColor,this.icon=this.warningIcon}}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-consolidation-result"]],inputs:{result:"result"},features:[_.TTD],ngContentSelectors:wH,decls:12,vars:10,consts:[[1,"p-4","m-3",3,"ngStyle"],[1,"d-flex","pb-5","flex-row"],["class","mat-icon-war mr-4",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-detail",4,"ngIf"],[1,"ml-5"],[4,"ngIf"],[1,"mat-icon-war","mr-4"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-detail"]],template:function(e,t){1&e&&(_.F$t(),_.TgZ(0,"div",0)(1,"div",1)(2,"div"),_.YNc(3,pH,2,1,"mat-icon",2),_.YNc(4,fH,1,0,"mat-icon",3),_.qZA(),_.TgZ(5,"div",4)(6,"h1"),_._uU(7),_.ALo(8,"translate"),_.qZA(),_.YNc(9,_H,5,5,"h5",5),_.YNc(10,bH,4,7,"h5",5),_.qZA()(),_.Hsn(11),_.qZA()),2&e&&(_.Q6J("ngStyle",_.VKq(8,CH,t.color)),_.xp6(3),_.Q6J("ngIf","OK"!==t.result),_.xp6(1),_.Q6J("ngIf","OK"===t.result),_.xp6(3),_.hij(" ",_.lcZ(8,6,"SHARED_LIB.CONSOLIDATOR."+t.result+"_TITLE")," "),_.xp6(2),_.Q6J("ngIf",!(t.userMail&&"OK"===t.result)),_.xp6(1),_.Q6J("ngIf",t.userMail&&"OK"===t.result))},dependencies:[M.O5,M.PC,Ft,Hi],styles:[".mat-icon-war[_ngcontent-%COMP%]{font-size:82px}.perun-icon-detail[_ngcontent-%COMP%]{transform:scale(4.5);margin-left:3rem;margin-top:1.5rem;color:#000}"]}),o})();function vH(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"button",6),_.NdJ("click",function(){_.CHM(e);const s=_.oxw();return _.KtG(s.loginAgain())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&o&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHOW_RESULT.LOG_OTHER_BUTTON")," "))}function AH(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"button",6),_.NdJ("click",function(){_.CHM(e);const s=_.oxw();return _.KtG(s.sendMessageToSupport())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&o&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHOW_RESULT.CONTACT_SUPPORT_BUTTON")," "))}function xH(o,r){1&o&&(_.TgZ(0,"div",7),_._UZ(1,"mat-spinner",8),_.qZA())}const SH=[{path:"",redirectTo:"result",pathMatch:"full"},{path:"result/:result",component:(()=>{class o{constructor(e,t,s){this.route=e,this.dialog=t,this.oauthService=s,this.linkerResult="UNKNOWN_ERROR",this.loading=!1,this.openerWindow=window.opener}ngOnInit(){this.route.params.subscribe(e=>{this.linkerResult=e.result,this.openerWindow.postMessage(this.linkerResult,"*")})}closeWindow(){window.close()}loginAgain(){let e=location.search.substring(1);if("IDENTITY_UNKNOWN"===this.linkerResult){let t=0,s="yes";for(;""!==s;)t++,s=_d("formerToken"+t.toString(),e);e+="&formerToken"+t.toString()+"="+this.oauthService.getAccessToken()}sessionStorage.setItem("auth:queryParams",e),this.oauthService.initLoginFlow()}sendMessageToSupport(){const e=dr();e.width="1000px",this.dialog.open(hH,e).afterClosed().subscribe(s=>{!0===s?(this.linkerResult="MESSAGE_SENT_TO_SUPPORT",this.openerWindow.postMessage(this.linkerResult,"*")):!1===s&&(this.linkerResult="UNKNOWN_ERROR",this.openerWindow.postMessage(this.linkerResult,"*"))})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Nr),_.Y36(lr),_.Y36($r.Ct))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-show-result"]],decls:9,vars:7,consts:[[1,"position-relative"],[3,"result"],[1,"d-flex","mt-5"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","class","ml-2",3,"click",4,"ngIf"],["class","spinner-container",4,"ngIf"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],[1,"spinner-container"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(_.TgZ(0,"div",0)(1,"perun-web-apps-consolidation-result",1)(2,"div",2)(3,"button",3),_.NdJ("click",function(){return t.closeWindow()}),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.YNc(6,vH,3,3,"button",4),_.YNc(7,AH,3,3,"button",4),_.qZA()(),_.YNc(8,xH,2,0,"div",5),_.qZA()),2&e&&(_.xp6(1),_.Q6J("result",t.linkerResult),_.xp6(3),_.hij(" ",_.lcZ(5,5,"SHOW_RESULT.CLOSE_WINDOW_BUTTON")," "),_.xp6(2),_.Q6J("ngIf","IDENTITY_IDENTICAL"===t.linkerResult||"IDENTITY_UNKNOWN"===t.linkerResult||"IDENTITY_LINKED"===t.linkerResult),_.xp6(1),_.Q6J("ngIf","IDENTITY_REGISTERED_ALREADY"===t.linkerResult),_.xp6(1),_.Q6J("ngIf",t.loading))},dependencies:[M.O5,Kr,On,yH,Hi],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:1rem;bottom:0;right:1rem;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}"]}),o})()}];let TH=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Bo.forRoot(SH),Bo]}),o})();class EH{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}let MH=(()=>{class o{constructor(e,t,s,u,d){this.http=e,this.storeService=t,this.authzSevice=s,this.titleService=u,this.utilsService=d}initializeColors(e,t){return new Promise(s=>{t.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d)}),e.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d),this.setEntityTheme(u.entity,d)}),s()})}setEntityTheme(e,t){const s=function DH(o){return[vn(tinycolor(o).lighten(52),"50"),vn(tinycolor(o).lighten(37),"100"),vn(tinycolor(o).lighten(26),"200"),vn(tinycolor(o).lighten(12),"300"),vn(tinycolor(o).lighten(6),"400"),vn(tinycolor(o),"500"),vn(tinycolor(o).darken(6),"600"),vn(tinycolor(o).darken(12),"700"),vn(tinycolor(o).darken(18),"800"),vn(tinycolor(o).darken(24),"900"),vn(tinycolor(o).lighten(50).saturate(30),"A100"),vn(tinycolor(o).lighten(30).saturate(30),"A200"),vn(tinycolor(o).lighten(10).saturate(15),"A400"),vn(tinycolor(o).lighten(5).saturate(5),"A700")]}(t);for(const u of s){const n=`--${e}-theme-primary-contrast-${u.name}`,i=u.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${u.name}`,`${u.red},${u.green},${u.blue}`),document.documentElement.style.setProperty(n,i)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const s=document.location.hostname;t?.brandings?.[s]&&this.storeService.setBanding(s),e()},()=>{e()})})}getNoCacheHeaders(){return new v.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(s=>{this.storeService.setAppsConfig(s),e()},s=>t(s))})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(Vn),_.LFG(Sl),_.LFG(X),_.LFG(e_))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function vn(o,r){const e=tinycolor(o),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let HH=(()=>{class o{constructor(e,t){this.registrarService=e,this.router=t}consolidate(){const e=location.search.substring(1),t=_d("formerToken",e);return new Promise(s=>{this.registrarService.consolidate({accessToken:t}).subscribe(()=>{this.consolidatePreviousLogins(1,e).then(()=>{this.router.navigate(["/result","OK"],{queryParamsHandling:"preserve"}),s()})},u=>{let l="UNKNOWN_ERROR";switch(u.name){case"InvalidTokenException":case"ExpiredTokenException":l="TOKEN_EXPIRED";break;case"IdentityUnknownException":l="IDENTITY_UNKNOWN";break;case"IdentityAlreadyInUseException":l="IDENTITY_REGISTERED_ALREADY";break;case"IdentityIsSameException":l="IDENTITY_IDENTICAL";break;case"IdentitiesAlreadyJoinedException":l="IDENTITY_LINKED"}this.router.navigate(["/result",l],{queryParamsHandling:"merge"}),s()})})}consolidatePreviousLogins(e,t){return new Promise(s=>{const u=_d("formerToken"+e.toString(),t);null==u||""===u?s():this.registrarService.consolidate({accessToken:u}).subscribe(()=>{this.consolidatePreviousLogins(e+1,t).then(()=>s())},()=>{this.consolidatePreviousLogins(e+1,t).then(()=>s())})})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Zg),_.LFG(Zt))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),RH=(()=>{class o{constructor(e,t,s,u,d){this.initAuthService=e,this.appConfigService=t,this.location=s,this.linkIdentitiesService=u,this.mfaHandlerService=d}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.simpleLoadPrincipal().then(()=>this.linkIdentitiesService.consolidate())):this.initAuthService.handleAuthStart())}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(p_),_.LFG(MH),_.LFG(M.Ye),_.LFG(HH),_.LFG(ca))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const PH=new _.OlP("perun-api-service");let RE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})(),kE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),ab=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Cn,Se,el,kE,Se,kE]}),o})(),GA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})(),WH=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),VE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,Se,WH,ta]}),o})(),LE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Fc,Se,Fc,Se]}),o})(),YH=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Go]}),o})(),WA=(()=>{class o{constructor(){this.changes=new Me.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const oR={provide:WA,deps:[[new _.FiY,new _.tp0,WA]],useFactory:function aR(o){return o||new WA}};let NE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[oR,Lc],imports:[Se,M.ez,ta,Tr,YH,ra,Cn,Se]}),o})(),wR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[$a]}),o})(),mb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[wR,Se,Se]}),o})(),FR=(()=>{class o{constructor(){this.changes=new Me.x,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(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const JR={provide:new _.OlP("mat-datepicker-scroll-strategy"),deps:[nr],useFactory:function YR(o){return()=>o.scrollStrategies.reposition()}};let r0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[FR,JR],imports:[M.ez,Tr,Yo,Na,ta,Se,Pn]}),o})(),iM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,Se,Pn,Pn,Se]}),o})(),rM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Fc,Cn,Se,nh,M.ez,Fc,Se,nh,GA]}),o})(),aM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})(),a0=(()=>{class o{constructor(){this.changes=new Me.x}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const gP={provide:a0,deps:[[new _.FiY,new _.tp0,a0]],useFactory:function mP(o){return o||new a0}};let o0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[gP],imports:[M.ez,Se]}),o})(),yP=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,Se,ta,Cn,el,Na,Se]}),o})(),oM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),sM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[oM,Cn,Se,el,oM,Se]}),o})();const uM=new _.OlP("mat-chips-default-options");let l0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[Lc,{provide:uM,useValue:{separatorKeyCodes:[13]}}],imports:[Se]}),o})(),c0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,RE,GA,VE,Tr,LE,ab,ra,mb,Al,Hl,Hr,rb,$a,Fl,Pp,NE,r0,Lw,iM,rM,bl,aM,o0,Qa,os,gl,Cn,mb,sM,l0,RE,GA,VE,Tr,LE,ab,ra,mb,Al,Hl,Hr,rb,$a,Fl,Pp,NE,r0,Lw,iM,rM,bl,aM,o0,Qa,os,gl,Cn,yP,sM,l0]}),o})(),d0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[ra,M.ez]}),o})();function u0(o,r,e){for(let t in r)if(r.hasOwnProperty(t)){const s=r[t];s?o.setProperty(t,s,e?.has(t)?"important":""):o.removeProperty(t)}return o}function Qd(o,r){const e=r?"":"none";u0(o.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function hM(o,r,e){u0(o.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function Cb(o,r){return r&&"none"!=r?o+" "+r:o}function pM(o){const r=o.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(o)*r}function h0(o,r){return o.getPropertyValue(r).split(",").map(t=>t.trim())}function p0(o){const r=o.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function f0(o,r,e){const{top:t,bottom:s,left:u,right:d}=o;return e>=t&&e<=s&&r>=u&&r<=d}function Bp(o,r,e){o.top+=r,o.bottom=o.top+o.height,o.left+=e,o.right=o.left+o.width}function fM(o,r,e,t){const{top:s,right:u,bottom:d,left:l,width:n,height:i}=o,a=n*r,c=i*r;return t>s-c&&tl-a&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:p0(e)})})}handleScroll(r){const e=mn(r),t=this.positions.get(e);if(!t)return null;const s=t.scrollPosition;let u,d;if(e===this._document){const i=this.getViewportScrollPosition();u=i.top,d=i.left}else u=e.scrollTop,d=e.scrollLeft;const l=s.top-u,n=s.left-d;return this.positions.forEach((i,a)=>{i.clientRect&&e!==a&&e.contains(a)&&Bp(i.clientRect,l,n)}),s.top=u,s.left=d,{top:l,left:n}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function gM(o){const r=o.cloneNode(!0),e=r.querySelectorAll("[id]"),t=o.nodeName.toLowerCase();r.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&this._initializeDragSequence(n,l)}else this.disabled||this._initializeDragSequence(this._rootElement,l)},this._pointerMove=l=>{const n=this._getPointerPositionOnPage(l);if(!this._hasStartedDragging){if(Math.abs(n.x-this._pickupPositionOnPage.x)+Math.abs(n.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const f=Date.now()>=this._dragStartTime+this._getDragStartDelay(l),m=this._dropContainer;if(!f)return void this._endDragSequence(l);(!m||!m.isDragging()&&!m.isReceiving())&&(l.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(l)))}return}l.preventDefault();const i=this._getConstrainedPointerPosition(n);if(this._hasMoved=!0,this._lastKnownPointerPosition=n,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,n);else{const a=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,c=this._activeTransform;c.x=i.x-a.x+this._passiveTransform.x,c.y=i.y-a.y+this._passiveTransform.y,this._applyRootElementTransform(c.x,c.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:l,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=l=>{this._endDragSequence(l)},this._nativeDragStart=l=>{if(this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&l.preventDefault()}else this.disabled||l.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new mM(t),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=ut(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Qd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>Xt(t)),this._handles.forEach(t=>Qd(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=Xt(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,wb),e.addEventListener("touchstart",this._pointerDown,wM),e.addEventListener("dragstart",this._nativeDragStart,wb)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?Xt(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),Qd(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),Qd(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:r}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:r})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){Vp(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,s=t.parentNode,u=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),l=this._getShadowRoot();s.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),hM(t,!1,m0),this._document.body.appendChild(s.replaceChild(u,t)),this._getPreviewInsertionPoint(s,l).appendChild(this._preview),this.started.next({source:this,event:r}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:r}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),s=Vp(e),u=!s&&0!==e.button,d=this._rootElement,l=mn(e),n=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),i=s?qo(e):um(e);if(l&&l.draggable&&"mousedown"===e.type&&e.preventDefault(),t||u||n||i)return;if(this._handles.length){const h=d.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=p0(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,r,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(r){hM(this._rootElement,!0,m0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),s=this._getPointerPositionOnPage(r),u=this._getDragDistance(s),d=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:u,dropPoint:s,event:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:u,dropPoint:s,event:r}),e.drop(this,t,this._initialIndex,this._initialContainer,d,u,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:s}){let u=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!u&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,e)&&(u=this._initialContainer),u&&u!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=u,this._dropContainer.enter(this,r,e,u===this._initialContainer&&u.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:u,currentIndex:u.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,s),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,e):this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let s;if(t&&r){const u=r.matchSize?this._initialClientRect:null,d=r.viewContainer.createEmbeddedView(t,r.context);d.detectChanges(),s=vM(d,this._document),this._previewRef=d,r.matchSize?AM(s,u):s.style.transform=yb(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=gM(this._rootElement),AM(s,this._initialClientRect),this._initialTransform&&(s.style.transform=this._initialTransform);return u0(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},m0),Qd(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(u=>s.classList.add(u)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function $P(o){const r=getComputedStyle(o),e=h0(r,"transition-property"),t=e.find(l=>"transform"===l||"all"===l);if(!t)return 0;const s=e.indexOf(t),u=h0(r,"transition-duration"),d=h0(r,"transition-delay");return pM(u[s])+pM(d[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const s=d=>{(!d||mn(d)===this._preview&&"transform"===d.propertyName)&&(this._preview?.removeEventListener("transitionend",s),t(),clearTimeout(u))},u=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=vM(this._placeholderRef,this._document)):t=gM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e,t){const s=e===this._rootElement?null:e,u=s?s.getBoundingClientRect():r,d=Vp(t)?t.targetTouches[0]:t,l=this._getViewportScrollPosition();return{x:u.left-r.left+(d.pageX-u.left-l.left),y:u.top-r.top+(d.pageY-u.top-l.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=Vp(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,s=t.pageX-e.left,u=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const l=this._ownerSVGElement.createSVGPoint();return l.x=s,l.y=u,l.matrixTransform(d.inverse())}}return{x:s,y:u}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:s}=this.constrainPosition?this.constrainPosition(r,this,this._initialClientRect,this._pickupPositionInElement):r;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:u,y:d}=this._pickupPositionInElement,l=this._boundaryRect,{width:n,height:i}=this._getPreviewRect(),a=l.top+d,c=l.bottom-(i-d);t=yM(t,l.left+u,l.right-(n-u)),s=yM(s,a,c)}return{x:t,y:s}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,s=this._pointerDirectionDelta,u=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-u.x),l=Math.abs(t-u.y);return d>this._config.pointerDirectionChangeThreshold&&(s.x=e>u.x?1:-1,u.x=e),l>this._config.pointerDirectionChangeThreshold&&(s.y=t>u.y?1:-1,u.y=t),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,Qd(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,wb),r.removeEventListener("touchstart",this._pointerDown,wM),r.removeEventListener("dragstart",this._nativeDragStart,wb)}_applyRootElementTransform(r,e){const t=yb(r,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=Cb(t,this._initialTransform)}_applyPreviewTransform(r,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,s=yb(r,e);this._preview.style.transform=Cb(s,t)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(0===s.width&&0===s.height||0===t.width&&0===t.height)return;const u=s.left-t.left,d=t.right-s.right,l=s.top-t.top,n=t.bottom-s.bottom;s.width>t.width?(u>0&&(r+=u),d>0&&(r-=d)):r=0,s.height>t.height?(l>0&&(e+=l),n>0&&(e-=n)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:Vp(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=mn(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Bp(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Qr(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return Xt(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(r){return this._handles.find(e=>r.target&&(r.target===e||e.contains(r.target)))}}function yb(o,r){return`translate3d(${Math.round(o)}px, ${Math.round(r)}px, 0)`}function yM(o,r,e){return Math.max(r,Math.min(e,o))}function Vp(o){return"t"===o.type[0]}function vM(o,r){const e=o.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(s=>t.appendChild(s)),t}function AM(o,r){o.style.width=`${r.width}px`,o.style.height=`${r.height}px`,o.style.transform=yb(r.left,r.top)}function Op(o,r){return Math.max(0,Math.min(r,o))}class ZP{constructor(r,e){this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(r){this.withItems(r)}sort(r,e,t,s){const u=this._itemPositions,d=this._getItemIndexFromPointerPosition(r,e,t,s);if(-1===d&&u.length>0)return null;const l="horizontal"===this.orientation,n=u.findIndex(w=>w.drag===r),i=u[d],c=i.clientRect,h=n>d?1:-1,f=this._getItemOffsetPx(u[n].clientRect,c,h),m=this._getSiblingOffsetPx(n,u,h),p=u.slice();return function KP(o,r,e){const t=Op(r,o.length-1),s=Op(e,o.length-1);if(t===s)return;const u=o[t],d=s{if(p[R]===w)return;const J=w.drag===r,Te=J?f:m,nt=J?r.getPlaceholderElement():w.drag.getRootElement();w.offset+=Te,l?(nt.style.transform=Cb(`translate3d(${Math.round(w.offset)}px, 0, 0)`,w.initialTransform),Bp(w.clientRect,0,Te)):(nt.style.transform=Cb(`translate3d(0, ${Math.round(w.offset)}px, 0)`,w.initialTransform),Bp(w.clientRect,Te,0))}),this._previousSwap.overlaps=f0(c,e,t),this._previousSwap.drag=i.drag,this._previousSwap.delta=l?s.x:s.y,{previousIndex:n,currentIndex:d}}enter(r,e,t,s){const u=null==s||s<0?this._getItemIndexFromPointerPosition(r,e,t):s,d=this._activeDraggables,l=d.indexOf(r),n=r.getPlaceholderElement();let i=d[u];if(i===r&&(i=d[u+1]),!i&&(null==u||-1===u||u-1&&d.splice(l,1),i&&!this._dragDropRegistry.isDragging(i)){const a=i.getRootElement();a.parentElement.insertBefore(n,a),d.splice(u,0,r)}else Xt(this._element).appendChild(n),d.push(r);n.style.transform="",this._cacheItemPositions()}withItems(r){this._activeDraggables=r.slice(),this._cacheItemPositions()}withSortPredicate(r){this._sortPredicate=r}reset(){this._activeDraggables.forEach(r=>{const e=r.getRootElement();if(e){const t=this._itemPositions.find(s=>s.drag===r)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(r){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r)}updateOnScroll(r,e){this._itemPositions.forEach(({clientRect:t})=>{Bp(t,r,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const r="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:p0(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(r,e,t){const s="horizontal"===this.orientation;let u=s?e.left-r.left:e.top-r.top;return-1===t&&(u+=s?e.width-r.width:e.height-r.height),u}_getSiblingOffsetPx(r,e,t){const s="horizontal"===this.orientation,u=e[r].clientRect,d=e[r+-1*t];let l=u[s?"width":"height"]*t;if(d){const n=s?"left":"top",i=s?"right":"bottom";-1===t?l-=d.clientRect[n]-u[i]:l+=u[n]-d.clientRect[i]}return l}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,s="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const d=t[t.length-1].clientRect;return s?r>=d.right:e>=d.bottom}{const d=t[0].clientRect;return s?r<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(r,e,t,s){const u="horizontal"===this.orientation,d=this._itemPositions.findIndex(({drag:l,clientRect:n})=>{if(l===r)return!1;if(s){const i=u?s.x:s.y;if(l===this._previousSwap.drag&&this._previousSwap.overlaps&&i===this._previousSwap.delta)return!1}return u?e>=Math.floor(n.left)&&e=Math.floor(n.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Me.x,this.entered=new Me.x,this.exited=new Me.x,this.dropped=new Me.x,this.sorted=new Me.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Wt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Me.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function WP(o=0,r=zc.z){return o<0&&(o=0),(0,Gc.H)(o,o,r)}(0,Im).pipe(It(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,l=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-l):2===this._verticalScrollDirection&&d.scrollBy(0,l),1===this._horizontalScrollDirection?d.scrollBy(-l,0):2===this._horizontalScrollDirection&&d.scrollBy(l,0)})},this.element=Xt(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new mM(t),this._sortStrategy=new ZP(this.element,e),this._sortStrategy.withSortPredicate((d,l)=>this.sortPredicate(d,l,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,s){this._draggingStarted(),null==s&&this.sortingDisabled&&(s=this._draggables.indexOf(r)),this._sortStrategy.enter(r,e,t,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,s,u,d,l,n={}){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:s,isPointerOverContainer:u,distance:d,dropPoint:l,event:n})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===r.indexOf(s))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(r){return this._sortStrategy.direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._sortStrategy.orientation=r,this}withScrollableParents(r){const e=Xt(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?this._sortStrategy.getItemIndex(r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,s){if(this.sortingDisabled||!this._clientRect||!fM(this._clientRect,.05,e,t))return;const u=this._sortStrategy.sort(r,e,t,s);u&&this.sorted.next({previousIndex:u.previousIndex,currentIndex:u.currentIndex,container:this,item:r})}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,s=0,u=0;if(this._parentPositions.positions.forEach((d,l)=>{l===this._document||!d.clientRect||t||fM(d.clientRect,.05,r,e)&&([s,u]=function e1(o,r,e,t){const s=TM(r,t),u=EM(r,e);let d=0,l=0;if(s){const n=o.scrollTop;1===s?n>0&&(d=1):o.scrollHeight-n>o.clientHeight&&(d=2)}if(u){const n=o.scrollLeft;1===u?n>0&&(l=1):o.scrollWidth-n>o.clientWidth&&(l=2)}return[d,l]}(l,d.clientRect,r,e),(s||u)&&(t=l))}),!s&&!u){const{width:d,height:l}=this._viewportRuler.getViewportSize(),n={width:d,height:l,top:0,right:d,bottom:l,left:0};s=TM(n,e),u=EM(n,r),t=window}t&&(s!==this._verticalScrollDirection||u!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=u,this._scrollNode=t,(s||u)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=Xt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=Xt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_reset(){this._isDragging=!1;const r=Xt(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(r,e){return null!=this._clientRect&&f0(this._clientRect,r,e)}_getSiblingContainerFromPosition(r,e,t){return this._siblings.find(s=>s._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!f0(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,t);if(!s)return!1;const u=Xt(this.element);return s===u||u.contains(s)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=Qr(Xt(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function TM(o,r){const{top:e,bottom:t,height:s}=o,u=.05*s;return r>=e-u&&r<=e+u?1:r>=t-u&&r<=t+u?2:0}function EM(o,r){const{left:e,right:t,width:s}=o,u=.05*s;return r>=e-u&&r<=e+u?1:r>=t-u&&r<=t+u?2:0}const vb=Xn({passive:!1,capture:!0});let t1=(()=>{class o{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new Me.x,this.pointerUp=new Me.x,this.scroll=new Me.x,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,vb)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,vb)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=t.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:u=>this.pointerUp.next(u),options:!0}).set("scroll",{handler:u=>this.scroll.next(u),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:vb}),s||this._globalListeners.set("mousemove",{handler:u=>this.pointerMove.next(u),options:vb}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((u,d)=>{this._document.addEventListener(d,u.handler,u.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Ye.y(s=>this._ngZone.runOutsideAngular(()=>{const d=l=>{this._activeDragInstances.length&&s.next(l)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,ir.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.R0b),_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const n1={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let r1=(()=>{class o{constructor(e,t,s,u){this._document=e,this._ngZone=t,this._viewportRuler=s,this._dragDropRegistry=u}createDrag(e,t=n1){return new JP(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new XP(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0),_.LFG(_.R0b),_.LFG(Wa),_.LFG(t1))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),a1=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[r1],imports:[Pn]}),o})();function p1(o,r){1&o&&_._UZ(0,"mat-spinner",7)}function f1(o,r){1&o&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&o&&(_.xp6(1),_.Oqu(_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function m1(o,r){1&o&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&o&&(_.xp6(1),_.Oqu(_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function g1(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),_._uU(3),_.ALo(4,"translate"),_.qZA(),_.TgZ(5,"input",9,10),_.NdJ("ngModelChange",function(s){_.CHM(e);const u=_.oxw();return _.KtG(u.subject=s)}),_.qZA(),_.YNc(7,f1,3,3,"mat-error",11),_.qZA(),_.TgZ(8,"mat-form-field")(9,"mat-label"),_._uU(10),_.ALo(11,"translate"),_.qZA(),_.TgZ(12,"textarea",12,13),_.NdJ("ngModelChange",function(s){_.CHM(e);const u=_.oxw();return _.KtG(u.message=s)}),_.ALo(14,"translate"),_._uU(15," "),_.qZA(),_.YNc(16,m1,3,3,"mat-error",11),_.qZA()()}if(2&o){const e=_.MAs(6),t=_.MAs(13),s=_.oxw();_.xp6(3),_.Oqu(_.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),_.xp6(2),_.Q6J("ngModel",s.subject),_.xp6(2),_.Q6J("ngIf",e.invalid),_.xp6(3),_.Oqu(_.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),_.xp6(2),_.s9C("placeholder",_.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),_.Q6J("ngModel",s.message),_.xp6(4),_.Q6J("ngIf",t.invalid)}}let _1=(()=>{class o{constructor(e,t,s,u,d,l){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=u,this.data=d,this.storeService=l,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const s=/"password":".+?"/;let u=JSON.stringify(this.data.error.payload);u=u.replace(s,'"password":"####"'),t=t.concat("Payload:\n"+u+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",E(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Bn),_.Y36(oa),_.Y36(Za),_.Y36(bd),_.Y36(hs),_.Y36(Vn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.YNc(3,p1,1,0,"mat-spinner",1),_.YNc(4,g1,17,13,"div",2),_.TgZ(5,"div",3)(6,"div",4)(7,"button",5),_.NdJ("click",function(){return t.dialogRef.close()}),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.TgZ(10,"button",6),_.NdJ("click",function(){return t.sendBugReport()}),_._uU(11),_.ALo(12,"translate"),_.qZA()()()),2&e&&(_.xp6(1),_.Oqu(_.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),_.xp6(2),_.Q6J("ngIf",t.loading),_.xp6(1),_.Q6J("ngIf",!t.loading),_.xp6(4),_.hij(" ",_.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),_.xp6(2),_.Q6J("disabled",""===t.message||""===t.subject||t.loading),_.xp6(1),_.hij(" ",_.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[M.O5,sa,cr,la,Kr,kh,ml,Vh,Rl,gs,$e,jd,zA,On,Hi],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),o})(),b1=(()=>{class o{constructor(e,t,s){this.dialogRef=e,this.dialog=t,this.data=s}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=dr();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(_1,e)}),this.dialogRef.close()}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Bn),_.Y36(lr),_.Y36(hs))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.qZA(),_.TgZ(2,"div",1),_._uU(3),_.qZA(),_.TgZ(4,"div",2)(5,"div",3)(6,"button",4),_.NdJ("click",function(){return t.onBugReportClick()}),_._uU(7),_.ALo(8,"translate"),_.qZA(),_.TgZ(9,"button",5),_.NdJ("click",function(){return t.onCloseClick()}),_._uU(10),_.ALo(11,"translate"),_.qZA()()()),2&e&&(_.xp6(1),_.Oqu(t.data.title),_.xp6(2),_.hij(" ",t.data.description,"\n"),_.xp6(3),_.Q6J("hidden","error"!==t.data.type),_.xp6(1),_.hij(" ",_.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),_.xp6(3),_.hij(" ",_.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[sa,cr,la,Kr,Hi]}),o})();function O1(o,r){1&o&&(_.TgZ(0,"mat-error",8),_._uU(1),_.ALo(2,"translate"),_.ALo(3,"customTranslate"),_.qZA()),2&o&&(_.xp6(1),_.Oqu(_.lcZ(2,1,_.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class oo{constructor(r,e,t){this.dialogRef=r,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new CE(null,[ms.required,ms.pattern(oo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const r=this.data.attribute?.value??[],e=this.sshControl.value;r.includes(e)||r.push(e),this.data.attribute.value=r,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{r.pop()})}}function q1(o,r){if(1&o&&(_.TgZ(0,"div",9),_._UZ(1,"perun-web-apps-notification",10),_.qZA()),2&o){const e=r.$implicit;_.xp6(1),_.Q6J("data",e)("inDialog",!0)}}function z1(o,r){if(1&o&&(_.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),_.YNc(2,q1,2,2,"div",8),_.qZA()()),2&o){const e=_.oxw();_.xp6(2),_.Q6J("cdkVirtualForOf",e.notifications)}}function G1(o,r){1&o&&(_.TgZ(0,"perun-web-apps-alert",11),_._uU(1),_.ALo(2,"translate"),_.ALo(3,"customTranslate"),_.qZA()),2&o&&(_.xp6(1),_.Oqu(_.lcZ(2,1,_.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}oo.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],oo.sshKeyPattern="^("+oo.allowedSshKeys.join("|")+").+$",oo.\u0275fac=function(r){return new(r||oo)(_.Y36(Bn),_.Y36(hs),_.Y36(Wg))},oo.\u0275cmp=_.Xpm({type:oo,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(r,e){1&r&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.ALo(3,"customTranslate"),_.qZA(),_.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),_._UZ(7,"textarea",3),_.ALo(8,"translate"),_.ALo(9,"customTranslate"),_.qZA(),_.YNc(10,O1,4,5,"mat-error",4),_.qZA()(),_.TgZ(11,"div",5)(12,"button",6),_.NdJ("click",function(){return e.onCancel()}),_._uU(13),_.ALo(14,"translate"),_.ALo(15,"customTranslate"),_.qZA(),_.TgZ(16,"button",7),_.NdJ("click",function(){return e.onSubmit()}),_._uU(17),_.ALo(18,"translate"),_.ALo(19,"customTranslate"),_.qZA()()),2&r&&(_.xp6(1),_.Oqu(_.lcZ(2,7,_.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),_.xp6(6),_.s9C("placeholder",_.lcZ(8,11,_.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),_.Q6J("formControl",e.sshControl),_.xp6(3),_.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),_.xp6(3),_.hij(" ",_.lcZ(14,15,_.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),_.xp6(3),_.Q6J("disabled",e.sshControl.invalid),_.xp6(1),_.hij(" ",_.lcZ(18,19,_.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[M.O5,Rl,gs,$e,Kr,kh,ml,Z_,dp,zA,sa,cr,la,Hi,sp],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let W1=(()=>{class o{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Bn),_.Y36(vd))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.ALo(3,"customTranslate"),_.qZA(),_.YNc(4,z1,3,1,"div",1),_.YNc(5,G1,4,5,"perun-web-apps-alert",2),_.TgZ(6,"div",3)(7,"button",4),_.NdJ("click",function(){return t.onClear()}),_._uU(8),_.ALo(9,"translate"),_.ALo(10,"customTranslate"),_.qZA(),_.TgZ(11,"button",5),_.NdJ("click",function(){return t.onCancel()}),_._uU(12),_.ALo(13,"translate"),_.ALo(14,"customTranslate"),_.qZA()()),2&e&&(_.xp6(1),_.Oqu(_.lcZ(2,5,_.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),_.xp6(3),_.Q6J("ngIf",0!==t.notifications.length),_.xp6(1),_.Q6J("ngIf",0===t.notifications.length),_.xp6(3),_.hij(" ",_.lcZ(9,9,_.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),_.xp6(4),_.hij(" ",_.lcZ(13,13,_.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),o})();function $1(o,r){if(1&o&&(_.TgZ(0,"div",5)(1,"mat-icon"),_._uU(2),_.qZA()()),2&o){const e=_.oxw();_.xp6(2),_.Oqu(e.data.icon)}}function Q1(o,r){if(1&o&&(_.TgZ(0,"div",6),_._uU(1),_.qZA()),2&o){const e=_.oxw();_.xp6(1),_.hij(" ",e.showTimestamp()," ")}}let Y1=(()=>{class o{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new _.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=dr();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(b1,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function Tv(o,r){gd.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(lr),_.Y36(vd))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(_.TgZ(0,"div")(1,"div",0),_.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),_.YNc(2,$1,3,1,"div",1),_.TgZ(3,"div",2),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.YNc(6,Q1,2,1,"div",3),_.TgZ(7,"div",4),_.NdJ("click",function(){return t.waiting=!0,t.doAction()}),_._uU(8),_.qZA()()()),2&e&&(_.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),_.ekj("error","error"===t.data.type)("success","success"===t.data.type),_.xp6(2),_.Q6J("ngIf",null!==t.data.icon),_.xp6(2),_.hij(" ",_.lcZ(5,12,t.data.title)," "),_.xp6(2),_.Q6J("ngIf",t.inDialog),_.xp6(1),_.Q6J("hidden",t.alreadyPressed),_.xp6(1),_.hij(" ",t.data.actionText," "))},dependencies:[M.O5,Ft,Hi],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),o})(),J1=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),tI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),cI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[tI,Se,Se]}),o})(),vI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Cn,Se,Se]}),o})();new _.OlP("mat-selectsearch-default-options");let EI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[M.ez,Pp,Tr,ab,ra,Hl,os]]}),o})(),MI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Na,Se,Se]}),o})(),DI=(()=>{class o extends Oc{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const HI={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let PM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[{provide:bn,useClass:DI},{provide:nl,useValue:HI}],imports:[M.ez,ab,mb,Fl,l0,a1,sr,Bo,o0,Qa,Hl,d0,ra,bl,Tr,os,Hr,Pp,rb,Cn,Ad,J1,cI,r0,vI,Uc,gl,EI,$a,Al,Dg,c0,MI]}),o})();_.B6R(W1,[M.O5,yd,Kr,Fm,ry,en,sa,la,Y1],[Hi,sp]),new Date(324721404e5).valueOf();let dB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,Tr,ra,Bo,PM,sr,Hr,Pp,rb,d0]}),o})(),hB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,Al,Tr,sr]}),o})(),pB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[op],imports:[M.ez,c0,sr,Ad]}),o})();function jM(o){return new _.vHH(3e3,!1)}function QB(){return typeof window<"u"&&typeof window.document<"u"}function w0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ws(o){switch(o.length){case 0:return new kn;case 1:return o[0];default:return new pl(o)}}function FM(o,r,e,t,s=new Map,u=new Map){const d=[],l=[];let n=-1,i=null;if(t.forEach(a=>{const c=a.get("offset"),h=c==n,f=h&&i||new Map;a.forEach((m,p)=>{let w=p,R=m;if("offset"!==p)switch(w=r.normalizePropertyName(w,d),R){case"!":R=s.get(p);break;case Dr:R=u.get(p);break;default:R=r.normalizeStyleValue(p,w,R,d)}f.set(w,R)}),h||l.push(f),i=f,n=c}),d.length)throw function VB(o){return new _.vHH(3502,!1)}();return l}function y0(o,r,e,t){switch(r){case"start":o.onStart(()=>t(e&&v0(e,"start",o)));break;case"done":o.onDone(()=>t(e&&v0(e,"done",o)));break;case"destroy":o.onDestroy(()=>t(e&&v0(e,"destroy",o)))}}function v0(o,r,e){const u=A0(o.element,o.triggerName,o.fromState,o.toState,r||o.phaseName,e.totalTime??o.totalTime,!!e.disabled),d=o._data;return null!=d&&(u._data=d),u}function A0(o,r,e,t,s="",u=0,d){return{element:o,triggerName:r,fromState:e,toState:t,phaseName:s,totalTime:u,disabled:!!d}}function Ln(o,r,e){let t=o.get(r);return t||o.set(r,t=e),t}function UM(o){const r=o.indexOf(":");return[o.substring(1,r),o.slice(r+1)]}let x0=(o,r)=>!1,NM=(o,r,e)=>[],qM=null;function S0(o){const r=o.parentNode||o.host;return r===qM?null:r}(w0()||typeof Element<"u")&&(QB()?(qM=(()=>document.documentElement)(),x0=(o,r)=>{for(;r;){if(r===o)return!0;r=S0(r)}return!1}):x0=(o,r)=>o.contains(r),NM=(o,r,e)=>{if(e)return Array.from(o.querySelectorAll(r));const t=o.querySelector(r);return t?[t]:[]});let Nl=null,zM=!1;const GM=x0,WM=NM;let $M=(()=>{class o{validateStyleProperty(e){return function JB(o){Nl||(Nl=function KB(){return typeof document<"u"?document.body:null}()||{},zM=!!Nl.style&&"WebkitAppearance"in Nl.style);let r=!0;return Nl.style&&!function YB(o){return"ebkit"==o.substring(1,6)}(o)&&(r=o in Nl.style,!r&&zM&&(r="Webkit"+o.charAt(0).toUpperCase()+o.slice(1)in Nl.style)),r}(e)}matchesElement(e,t){return!1}containsElement(e,t){return GM(e,t)}getParentElement(e){return S0(e)}query(e,t,s){return WM(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,t,s,u,d,l=[],n){return new kn(s,u)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),T0=(()=>{class o{}return o.NOOP=new $M,o})();const E0="ng-enter",Tb="ng-leave",Eb="ng-trigger",Mb=".ng-trigger",YM="ng-animating",M0=".ng-animating";function ys(o){if("number"==typeof o)return o;const r=o.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:D0(parseFloat(r[1]),r[2])}function D0(o,r){return"s"===r?1e3*o:o}function Db(o,r,e){return o.hasOwnProperty("duration")?o:function eV(o,r,e){let s,u=0,d="";if("string"==typeof o){const l=o.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return r.push(jM()),{duration:0,delay:0,easing:""};s=D0(parseFloat(l[1]),l[2]);const n=l[3];null!=n&&(u=D0(parseFloat(n),l[4]));const i=l[5];i&&(d=i)}else s=o;if(!e){let l=!1,n=r.length;s<0&&(r.push(function fB(){return new _.vHH(3100,!1)}()),l=!0),u<0&&(r.push(function mB(){return new _.vHH(3101,!1)}()),l=!0),l&&r.splice(n,0,jM())}return{duration:s,delay:u,easing:d}}(o,r,e)}function jp(o,r={}){return Object.keys(o).forEach(e=>{r[e]=o[e]}),r}function JM(o){const r=new Map;return Object.keys(o).forEach(e=>{r.set(e,o[e])}),r}function vs(o,r=new Map,e){if(e)for(let[t,s]of e)r.set(t,s);for(let[t,s]of o)r.set(t,s);return r}function ZM(o,r,e){return e?r+":"+e+";":""}function XM(o){let r="";for(let e=0;e{const u=R0(s);e&&!e.has(s)&&e.set(s,o.style[u]),o.style[u]=t}),w0()&&XM(o))}function ql(o,r){o.style&&(r.forEach((e,t)=>{const s=R0(t);o.style[s]=""}),w0()&&XM(o))}function Fp(o){return Array.isArray(o)?1==o.length?o[0]:hl(o):o}const H0=new RegExp("{{\\s*(.+?)\\s*}}","g");function eD(o){let r=[];if("string"==typeof o){let e;for(;e=H0.exec(o);)r.push(e[1]);H0.lastIndex=0}return r}function Hb(o,r,e){const t=o.toString(),s=t.replace(H0,(u,d)=>{let l=r[d];return null==l&&(e.push(function _B(o){return new _.vHH(3003,!1)}()),l=""),l.toString()});return s==t?o:s}function Rb(o){const r=[];let e=o.next();for(;!e.done;)r.push(e.value),e=o.next();return r}const nV=/-+([a-z0-9])/g;function R0(o){return o.replace(nV,(...r)=>r[1].toUpperCase())}function rV(o){return o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function jn(o,r,e){switch(r.type){case 7:return o.visitTrigger(r,e);case 0:return o.visitState(r,e);case 1:return o.visitTransition(r,e);case 2:return o.visitSequence(r,e);case 3:return o.visitGroup(r,e);case 4:return o.visitAnimate(r,e);case 5:return o.visitKeyframes(r,e);case 6:return o.visitStyle(r,e);case 8:return o.visitReference(r,e);case 9:return o.visitAnimateChild(r,e);case 10:return o.visitAnimateRef(r,e);case 11:return o.visitQuery(r,e);case 12:return o.visitStagger(r,e);default:throw function bB(o){return new _.vHH(3004,!1)}()}}function tD(o,r){return window.getComputedStyle(o)[r]}function dV(o,r){const e=[];return"string"==typeof o?o.split(/\s*,\s*/).forEach(t=>function uV(o,r,e){if(":"==o[0]){const n=function hV(o,r){switch(o){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(o,e);if("function"==typeof n)return void r.push(n);o=n}const t=o.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function RB(o){return new _.vHH(3015,!1)}()),r;const s=t[1],u=t[2],d=t[3];r.push(iD(s,d));"<"==u[0]&&!("*"==s&&"*"==d)&&r.push(iD(d,s))}(t,e,r)):e.push(o),e}const Bb=new Set(["true","1"]),Vb=new Set(["false","0"]);function iD(o,r){const e=Bb.has(o)||Vb.has(o),t=Bb.has(r)||Vb.has(r);return(s,u)=>{let d="*"==o||o==s,l="*"==r||r==u;return!d&&e&&"boolean"==typeof s&&(d=s?Bb.has(o):Vb.has(o)),!l&&t&&"boolean"==typeof u&&(l=u?Bb.has(r):Vb.has(r)),d&&l}}const pV=new RegExp("s*:selfs*,?","g");function P0(o,r,e,t){return new fV(o).build(r,e,t)}class fV{constructor(r){this._driver=r}build(r,e,t){const s=new _V(e);return this._resetContextStyleTimingState(s),jn(this,Fp(r),s)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,s=e.depCount=0;const u=[],d=[];return"@"==r.name.charAt(0)&&e.errors.push(function wB(){return new _.vHH(3006,!1)}()),r.definitions.forEach(l=>{if(this._resetContextStyleTimingState(e),0==l.type){const n=l,i=n.name;i.toString().split(/\s*,\s*/).forEach(a=>{n.name=a,u.push(this.visitState(n,e))}),n.name=i}else if(1==l.type){const n=this.visitTransition(l,e);t+=n.queryCount,s+=n.depCount,d.push(n)}else e.errors.push(function yB(){return new _.vHH(3007,!1)}())}),{type:7,name:r.name,states:u,transitions:d,queryCount:t,depCount:s,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),s=r.options&&r.options.params||null;if(t.containsDynamicStyles){const u=new Set,d=s||{};t.styles.forEach(l=>{l instanceof Map&&l.forEach(n=>{eD(n).forEach(i=>{d.hasOwnProperty(i)||u.add(i)})})}),u.size&&(Rb(u.values()),e.errors.push(function vB(o,r){return new _.vHH(3008,!1)}()))}return{type:0,name:r.name,style:t,options:s?{params:s}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=jn(this,Fp(r.animation),e);return{type:1,matchers:dV(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:zl(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>jn(this,t,e)),options:zl(r.options)}}visitGroup(r,e){const t=e.currentTime;let s=0;const u=r.steps.map(d=>{e.currentTime=t;const l=jn(this,d,e);return s=Math.max(s,e.currentTime),l});return e.currentTime=s,{type:3,steps:u,options:zl(r.options)}}visitAnimate(r,e){const t=function CV(o,r){if(o.hasOwnProperty("duration"))return o;if("number"==typeof o)return I0(Db(o,r).duration,0,"");const e=o;if(e.split(/\s+/).some(u=>"{"==u.charAt(0)&&"{"==u.charAt(1))){const u=I0(0,0,"");return u.dynamic=!0,u.strValue=e,u}const s=Db(e,r);return I0(s.duration,s.delay,s.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let s,u=r.styles?r.styles:je({});if(5==u.type)s=this.visitKeyframes(u,e);else{let d=r.styles,l=!1;if(!d){l=!0;const i={};t.easing&&(i.easing=t.easing),d=je(i)}e.currentTime+=t.duration+t.delay;const n=this.visitStyle(d,e);n.isEmptyStep=l,s=n}return e.currentAnimateTimings=null,{type:4,timings:t,style:s,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[],s=Array.isArray(r.styles)?r.styles:[r.styles];for(let l of s)"string"==typeof l?l===Dr?t.push(l):e.errors.push(new _.vHH(3002,!1)):t.push(JM(l));let u=!1,d=null;return t.forEach(l=>{if(l instanceof Map&&(l.has("easing")&&(d=l.get("easing"),l.delete("easing")),!u))for(let n of l.values())if(n.toString().indexOf("{{")>=0){u=!0;break}}),{type:6,styles:t,easing:d,offset:r.offset,containsDynamicStyles:u,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let s=e.currentTime,u=e.currentTime;t&&u>0&&(u-=t.duration+t.delay),r.styles.forEach(d=>{"string"!=typeof d&&d.forEach((l,n)=>{const i=e.collectedStyles.get(e.currentQuerySelector),a=i.get(n);let c=!0;a&&(u!=s&&u>=a.startTime&&s<=a.endTime&&(e.errors.push(function xB(o,r,e,t,s){return new _.vHH(3010,!1)}()),c=!1),u=a.startTime),c&&i.set(n,{startTime:u,endTime:s}),e.options&&function iV(o,r,e){const t=r.params||{},s=eD(o);s.length&&s.forEach(u=>{t.hasOwnProperty(u)||e.push(function gB(o){return new _.vHH(3001,!1)}())})}(l,e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function SB(){return new _.vHH(3011,!1)}()),t;let u=0;const d=[];let l=!1,n=!1,i=0;const a=r.steps.map(R=>{const J=this._makeStyleAst(R,e);let Te=null!=J.offset?J.offset:function bV(o){if("string"==typeof o)return null;let r=null;if(Array.isArray(o))o.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;r=parseFloat(t.get("offset")),t.delete("offset")}});else if(o instanceof Map&&o.has("offset")){const e=o;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(J.styles),nt=0;return null!=Te&&(u++,nt=J.offset=Te),n=n||nt<0||nt>1,l=l||nt0&&u{const Te=h>0?J==f?1:h*J:d[J],nt=Te*w;e.currentTime=m+p.delay+nt,p.duration=nt,this._validateStyleAst(R,e),R.offset=Te,t.styles.push(R)}),t}visitReference(r,e){return{type:8,animation:jn(this,Fp(r.animation),e),options:zl(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:zl(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:zl(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,s=r.options||{};e.queryCount++,e.currentQuery=r;const[u,d]=function mV(o){const r=!!o.split(/\s*,\s*/).find(e=>":self"==e);return r&&(o=o.replace(pV,"")),o=o.replace(/@\*/g,Mb).replace(/@\w+/g,e=>Mb+"-"+e.slice(1)).replace(/:animating/g,M0),[o,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+u:u,Ln(e.collectedStyles,e.currentQuerySelector,new Map);const l=jn(this,Fp(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:u,limit:s.limit||0,optional:!!s.optional,includeSelf:d,animation:l,originalSelector:r.selector,options:zl(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function DB(){return new _.vHH(3013,!1)}());const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:Db(r.timings,e.errors,!0);return{type:12,animation:jn(this,Fp(r.animation),e),timings:t,options:null}}}class _V{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function zl(o){return o?(o=jp(o)).params&&(o.params=function gV(o){return o?jp(o):null}(o.params)):o={},o}function I0(o,r,e){return{duration:o,delay:r,easing:e}}function k0(o,r,e,t,s,u,d=null,l=!1){return{type:1,element:o,keyframes:r,preStyleProps:e,postStyleProps:t,duration:s,delay:u,totalTime:s+u,easing:d,subTimeline:l}}class Ob{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const vV=new RegExp(":enter","g"),xV=new RegExp(":leave","g");function B0(o,r,e,t,s,u=new Map,d=new Map,l,n,i=[]){return(new SV).buildKeyframes(o,r,e,t,s,u,d,l,n,i)}class SV{buildKeyframes(r,e,t,s,u,d,l,n,i,a=[]){i=i||new Ob;const c=new V0(r,e,i,s,u,a,[]);c.options=n;const h=n.delay?ys(n.delay):0;c.currentTimeline.delayNextStep(h),c.currentTimeline.setStyles([d],null,c.errors,n),jn(this,t,c);const f=c.timelines.filter(m=>m.containsAnimation());if(f.length&&l.size){let m;for(let p=f.length-1;p>=0;p--){const w=f[p];if(w.element===e){m=w;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([l],null,c.errors,n)}return f.length?f.map(m=>m.buildKeyframes()):[k0(e,[],[],[],0,h,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const s=e.createSubContext(r.options),u=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,s,s.options);u!=d&&e.transformIntoNewTimeline(d)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let u=e.currentTimeline.currentTime;const d=null!=t.duration?ys(t.duration):null,l=null!=t.delay?ys(t.delay):null;return 0!==d&&r.forEach(n=>{const i=e.appendInstructionToTimeline(n,d,l);u=Math.max(u,i.duration+i.delay)}),u}visitReference(r,e){e.updateOptions(r.options,!0),jn(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let s=e;const u=r.options;if(u&&(u.params||u.delay)&&(s=e.createSubContext(u),s.transformIntoNewTimeline(),null!=u.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Lb);const d=ys(u.delay);s.delayNextStep(d)}r.steps.length&&(r.steps.forEach(d=>jn(this,d,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let s=e.currentTimeline.currentTime;const u=r.options&&r.options.delay?ys(r.options.delay):0;r.steps.forEach(d=>{const l=e.createSubContext(r.options);u&&l.delayNextStep(u),jn(this,d,l),s=Math.max(s,l.currentTimeline.currentTime),t.push(l.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(s),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return Db(e.params?Hb(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),s=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),s.snapshotCurrentStyles());const u=r.style;5==u.type?this.visitKeyframes(u,e):(e.incrementTime(t.duration),this.visitStyle(u,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,s=e.currentAnimateTimings;!s&&t.hasCurrentStyleProperties()&&t.forwardFrame();const u=s&&s.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(u):t.setStyles(r.styles,u,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,s=e.currentTimeline.duration,u=t.duration,l=e.createSubContext().currentTimeline;l.easing=t.easing,r.styles.forEach(n=>{l.forwardTime((n.offset||0)*u),l.setStyles(n.styles,n.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(s+u),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,s=r.options||{},u=s.delay?ys(s.delay):0;u&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Lb);let d=t;const l=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=l.length;let n=null;l.forEach((i,a)=>{e.currentQueryIndex=a;const c=e.createSubContext(r.options,i);u&&c.delayNextStep(u),i===e.element&&(n=c.currentTimeline),jn(this,r.animation,c),c.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,c.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),n&&(e.currentTimeline.mergeTimelineCollectedStyles(n),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,s=e.currentTimeline,u=r.timings,d=Math.abs(u.duration),l=d*(e.currentQueryTotal-1);let n=d*e.currentQueryIndex;switch(u.duration<0?"reverse":u.easing){case"reverse":n=l-n;break;case"full":n=t.currentStaggerTime}const a=e.currentTimeline;n&&a.delayNextStep(n);const c=a.currentTime;jn(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=s.currentTime-c+(s.startTime-t.currentTimeline.startTime)}}const Lb={};class V0{constructor(r,e,t,s,u,d,l,n){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=u,this.errors=d,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Lb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=n||new jb(this._driver,e,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let s=this.options;null!=t.duration&&(s.duration=ys(t.duration)),null!=t.delay&&(s.delay=ys(t.delay));const u=t.params;if(u){let d=s.params;d||(d=this.options.params={}),Object.keys(u).forEach(l=>{(!e||!d.hasOwnProperty(l))&&(d[l]=Hb(u[l],d,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(s=>{t[s]=e[s]})}}return r}createSubContext(r=null,e,t){const s=e||this.element,u=new V0(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return u.previousNode=this.previousNode,u.currentAnimateTimings=this.currentAnimateTimings,u.options=this._copyOptions(),u.updateOptions(r),u.currentQueryIndex=this.currentQueryIndex,u.currentQueryTotal=this.currentQueryTotal,u.parentContext=this,this.subContextCount++,u}transformIntoNewTimeline(r){return this.previousNode=Lb,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const s={duration:e??r.duration,delay:this.currentTimeline.currentTime+(t??0)+r.delay,easing:""},u=new TV(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,s,r.stretchStartingKeyframe);return this.timelines.push(u),s}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,s,u,d){let l=[];if(s&&l.push(this.element),r.length>0){r=(r=r.replace(vV,"."+this._enterClassName)).replace(xV,"."+this._leaveClassName);let i=this._driver.query(this.element,r,1!=t);0!==t&&(i=t<0?i.slice(i.length+t,i.length):i.slice(0,t)),l.push(...i)}return!u&&0==l.length&&d.push(function HB(o){return new _.vHH(3014,!1)}()),l}}class jb{constructor(r,e,t,s){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new jb(this._driver,r,e||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+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Dr),this._currentKeyframe.set(e,Dr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,s){e&&this._previousKeyframe.set("easing",e);const u=s&&s.params||{},d=function EV(o,r){const e=new Map;let t;return o.forEach(s=>{if("*"===s){t=t||r.keys();for(let u of t)e.set(u,Dr)}else vs(s,e)}),e}(r,this._globalTimelineStyles);for(let[l,n]of d){const i=Hb(n,u,t);this._pendingStyles.set(l,i),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??Dr),this._updateStyle(l,i)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((l,n)=>{const i=vs(l,new Map,this._backFill);i.forEach((a,c)=>{"!"===a?r.add(c):a===Dr&&e.add(c)}),t||i.set("offset",n/this.duration),s.push(i)});const u=r.size?Rb(r.values()):[],d=e.size?Rb(e.values()):[];if(t){const l=s[0],n=new Map(l);l.set("offset",0),n.set("offset",1),s=[l,n]}return k0(this.element,s,u,d,this.duration,this.startTime,this.easing,!1)}}class TV extends jb{constructor(r,e,t,s,u,d,l=!1){super(r,e,d.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=u,this._stretchStartingKeyframe=l,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const u=[],d=t+e,l=e/d,n=vs(r[0]);n.set("offset",0),u.push(n);const i=vs(r[0]);i.set("offset",aD(l)),u.push(i);const a=r.length-1;for(let c=1;c<=a;c++){let h=vs(r[c]);const f=h.get("offset");h.set("offset",aD((e+f*t)/d)),u.push(h)}t=d,e=0,s="",r=u}return k0(this.element,r,this.preStyleProps,this.postStyleProps,t,e,s,!0)}}function aD(o,r=3){const e=Math.pow(10,r-1);return Math.round(o*e)/e}class O0{}const MV=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"]);class DV extends O0{normalizePropertyName(r,e){return R0(r)}normalizeStyleValue(r,e,t,s){let u="";const d=t.toString().trim();if(MV.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)u="px";else{const l=t.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&s.push(function CB(o,r){return new _.vHH(3005,!1)}())}return d+u}}function oD(o,r,e,t,s,u,d,l,n,i,a,c,h){return{type:0,element:o,triggerName:r,isRemovalTransition:s,fromState:e,fromStyles:u,toState:t,toStyles:d,timelines:l,queriedElements:n,preStyleProps:i,postStyleProps:a,totalTime:c,errors:h}}const L0={};class sD{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,s){return function HV(o,r,e,t,s){return o.some(u=>u(r,e,t,s))}(this.ast.matchers,r,e,t,s)}buildStyles(r,e,t){let s=this._stateStyles.get("*");return void 0!==r&&(s=this._stateStyles.get(r?.toString())||s),s?s.buildStyles(e,t):new Map}build(r,e,t,s,u,d,l,n,i,a){const c=[],h=this.ast.options&&this.ast.options.params||L0,m=this.buildStyles(t,l&&l.params||L0,c),p=n&&n.params||L0,w=this.buildStyles(s,p,c),R=new Set,J=new Map,Te=new Map,nt="void"===s,Ai={params:RV(p,h),delay:this.ast.options?.delay},ti=a?[]:B0(r,e,this.ast.animation,u,d,m,w,Ai,i,c);let ui=0;if(ti.forEach(fr=>{ui=Math.max(fr.duration+fr.delay,ui)}),c.length)return oD(e,this._triggerName,t,s,nt,m,w,[],[],J,Te,ui,c);ti.forEach(fr=>{const lo=fr.element,vD=Ln(J,lo,new Set);fr.preStyleProps.forEach(Gl=>vD.add(Gl));const Np=Ln(Te,lo,new Set);fr.postStyleProps.forEach(Gl=>Np.add(Gl)),lo!==e&&R.add(lo)});const un=Rb(R.values());return oD(e,this._triggerName,t,s,nt,m,w,ti,un,J,Te,ui)}}function RV(o,r){const e=jp(r);for(const t in o)o.hasOwnProperty(t)&&null!=o[t]&&(e[t]=o[t]);return e}class PV{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t=new Map,s=jp(this.defaultParams);return Object.keys(r).forEach(u=>{const d=r[u];null!==d&&(s[u]=d)}),this.styles.styles.forEach(u=>{"string"!=typeof u&&u.forEach((d,l)=>{d&&(d=Hb(d,s,e));const n=this.normalizer.normalizePropertyName(l,e);d=this.normalizer.normalizeStyleValue(l,n,d,e),t.set(n,d)})}),t}}class kV{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(s=>{this.states.set(s.name,new PV(s.style,s.options&&s.options.params||{},t))}),lD(this.states,"true","1"),lD(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new sD(r,s,this.states))}),this.fallbackTransition=function BV(o,r,e){return new sD(o,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,l)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,s){return this.transitionFactories.find(d=>d.match(r,e,t,s))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function lD(o,r,e){o.has(r)?o.has(e)||o.set(e,o.get(r)):o.has(e)&&o.set(r,o.get(e))}const VV=new Ob;class OV{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const t=[],u=P0(this._driver,e,t,[]);if(t.length)throw function OB(o){return new _.vHH(3503,!1)}();this._animations.set(r,u)}_buildPlayer(r,e,t){const s=r.element,u=FM(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(s,u,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const s=[],u=this._animations.get(r);let d;const l=new Map;if(u?(d=B0(this._driver,e,u,E0,Tb,new Map,new Map,t,VV,s),d.forEach(a=>{const c=Ln(l,a.element,new Map);a.postStyleProps.forEach(h=>c.set(h,null))})):(s.push(function LB(){return new _.vHH(3300,!1)}()),d=[]),s.length)throw function jB(o){return new _.vHH(3504,!1)}();l.forEach((a,c)=>{a.forEach((h,f)=>{a.set(f,this._driver.computeStyle(c,f,Dr))})});const i=ws(d.map(a=>{const c=l.get(a.element);return this._buildPlayer(a,new Map,c)}));return this._playersById.set(r,i),i.onDestroy(()=>this.destroy(r)),this.players.push(i),i}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function FB(o){return new _.vHH(3301,!1)}();return e}listen(r,e,t,s){const u=A0(e,"","","");return y0(this._getPlayer(r),t,u,s),()=>{}}command(r,e,t,s){if("register"==t)return void this.register(r,s[0]);if("create"==t)return void this.create(r,e,s[0]||{});const u=this._getPlayer(r);switch(t){case"play":u.play();break;case"pause":u.pause();break;case"reset":u.reset();break;case"restart":u.restart();break;case"finish":u.finish();break;case"init":u.init();break;case"setPosition":u.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(r)}}}const cD="ng-animate-queued",j0="ng-animate-disabled",NV=[],dD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qV={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},hr="__ng_removed";class F0{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function $V(o){return o??null}(t?r.value:r),t){const u=jp(r);delete u.value,this.options=u}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(s=>{null==t[s]&&(t[s]=e[s])})}}}const Up="void",U0=new F0(Up);class zV{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,pr(e,this._hostClassName)}listen(r,e,t,s){if(!this._triggers.has(e))throw function UB(o,r){return new _.vHH(3302,!1)}();if(null==t||0==t.length)throw function NB(o){return new _.vHH(3303,!1)}();if(!function QV(o){return"start"==o||"done"==o}(t))throw function qB(o,r){return new _.vHH(3400,!1)}();const u=Ln(this._elementListeners,r,[]),d={name:e,phase:t,callback:s};u.push(d);const l=Ln(this._engine.statesByElement,r,new Map);return l.has(e)||(pr(r,Eb),pr(r,Eb+"-"+e),l.set(e,U0)),()=>{this._engine.afterFlush(()=>{const n=u.indexOf(d);n>=0&&u.splice(n,1),this._triggers.has(e)||l.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function zB(o){return new _.vHH(3401,!1)}();return e}trigger(r,e,t,s=!0){const u=this._getTrigger(e),d=new N0(this.id,e,r);let l=this._engine.statesByElement.get(r);l||(pr(r,Eb),pr(r,Eb+"-"+e),this._engine.statesByElement.set(r,l=new Map));let n=l.get(e);const i=new F0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&n&&i.absorbOptions(n.options),l.set(e,i),n||(n=U0),i.value!==Up&&n.value===i.value){if(!function KV(o,r){const e=Object.keys(o),t=Object.keys(r);if(e.length!=t.length)return!1;for(let s=0;s{ql(r,w),fa(r,R)})}return}const h=Ln(this._engine.playersByElement,r,[]);h.forEach(p=>{p.namespaceId==this.id&&p.triggerName==e&&p.queued&&p.destroy()});let f=u.matchTransition(n.value,i.value,r,i.params),m=!1;if(!f){if(!s)return;f=u.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:f,fromState:n,toState:i,player:d,isFallbackTransition:m}),m||(pr(r,cD),d.onStart(()=>{Jd(r,cD)})),d.onDone(()=>{let p=this.players.indexOf(d);p>=0&&this.players.splice(p,1);const w=this._engine.playersByElement.get(r);if(w){let R=w.indexOf(d);R>=0&&w.splice(R,1)}}),this.players.push(d),h.push(d),d}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(s=>s.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,Mb,!0);t.forEach(s=>{if(s[hr])return;const u=this._engine.fetchNamespacesByElement(s);u.size?u.forEach(d=>d.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(r,e,t,s){const u=this._engine.statesByElement.get(r),d=new Map;if(u){const l=[];if(u.forEach((n,i)=>{if(d.set(i,n.value),this._triggers.has(i)){const a=this.trigger(r,i,Up,s);a&&l.push(a)}}),l.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,d),t&&ws(l).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const s=new Set;e.forEach(u=>{const d=u.name;if(s.has(d))return;s.add(d);const n=this._triggers.get(d).fallbackTransition,i=t.get(d)||U0,a=new F0(Up),c=new N0(this.id,d,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:d,transition:n,fromState:i,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let s=!1;if(t.totalAnimations){const u=t.players.length?t.playersByQueriedElement.get(r):[];if(u&&u.length)s=!0;else{let d=r;for(;d=d.parentNode;)if(t.statesByElement.get(d)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(r),s)t.markElementAsRemoved(this.id,r,!1,e);else{const u=r[hr];(!u||u===dD)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){pr(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const s=t.player;if(s.destroyed)return;const u=t.element,d=this._elementListeners.get(u);d&&d.forEach(l=>{if(l.name==t.triggerName){const n=A0(u,t.triggerName,t.fromState.value,t.toState.value);n._data=r,y0(t.player,l.phase,n,l.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(t)}),this._queue=[],e.sort((t,s)=>{const u=t.transition.ast.depCount,d=s.transition.ast.depCount;return 0==u||0==d?u-d:this._engine.driver.containsElement(t.element,s.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class GV{constructor(r,e,t){this.bodyNode=r,this.driver=e,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=(s,u)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new zV(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList,s=this.namespacesByHostElement;if(t.length-1>=0){let d=!1,l=this.driver.getParentElement(e);for(;l;){const n=s.get(l);if(n){const i=t.indexOf(n);t.splice(i+1,0,r),d=!0;break}l=this.driver.getParentElement(l)}d||t.unshift(r)}else t.push(r);return s.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let s=this._namespaceLookup[r];s&&s.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const s=this._namespaceList.indexOf(t);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t)for(let s of t.values())if(s.namespaceId){const u=this._fetchNamespace(s.namespaceId);u&&e.add(u)}return e}trigger(r,e,t,s){if(Fb(e)){const u=this._fetchNamespace(r);if(u)return u.trigger(e,t,s),!0}return!1}insertNode(r,e,t,s){if(!Fb(e))return;const u=e[hr];if(u&&u.setForRemoval){u.setForRemoval=!1,u.setForMove=!0;const d=this.collectedLeaveElements.indexOf(e);d>=0&&this.collectedLeaveElements.splice(d,1)}if(r){const d=this._fetchNamespace(r);d&&d.insertNode(e,t)}s&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),pr(r,j0)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Jd(r,j0))}removeNode(r,e,t,s){if(Fb(e)){const u=r?this._fetchNamespace(r):null;if(u?u.removeNode(e,s):this.markElementAsRemoved(r,e,!1,s),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==r&&d.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(r,e,t,s,u){this.collectedLeaveElements.push(e),e[hr]={namespaceId:r,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:u}}listen(r,e,t,s,u){return Fb(e)?this._fetchNamespace(r).listen(e,t,s,u):()=>{}}_buildInstruction(r,e,t,s,u){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,s,r.fromState.options,r.toState.options,e,u)}destroyInnerAnimations(r){let e=this.driver.query(r,Mb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,M0,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return ws(this.players).onDone(()=>r());r()})}processLeaveNode(r){const e=r[hr];if(e&&e.setForRemoval){if(r[hr]=dD,e.namespaceId){this.destroyInnerAnimations(r);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(r)}this._onRemovalComplete(r,e.setForRemoval)}r.classList?.contains(j0)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,s)=>this._balanceNamespaceList(t,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?ws(e).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(r){throw function GB(o){return new _.vHH(3402,!1)}()}_flushAnimations(r,e){const t=new Ob,s=[],u=new Map,d=[],l=new Map,n=new Map,i=new Map,a=new Set;this.disabledNodes.forEach(We=>{a.add(We);const et=this.driver.query(We,".ng-animate-queued",!0);for(let rt=0;rt{const rt=E0+p++;m.set(et,rt),We.forEach(vt=>pr(vt,rt))});const w=[],R=new Set,J=new Set;for(let We=0;WeR.add(vt)):J.add(et))}const Te=new Map,nt=pD(h,Array.from(R));nt.forEach((We,et)=>{const rt=Tb+p++;Te.set(et,rt),We.forEach(vt=>pr(vt,rt))}),r.push(()=>{f.forEach((We,et)=>{const rt=m.get(et);We.forEach(vt=>Jd(vt,rt))}),nt.forEach((We,et)=>{const rt=Te.get(et);We.forEach(vt=>Jd(vt,rt))}),w.forEach(We=>{this.processLeaveNode(We)})});const Ai=[],ti=[];for(let We=this._namespaceList.length-1;We>=0;We--)this._namespaceList[We].drainQueuedTransitions(e).forEach(rt=>{const vt=rt.player,Ui=rt.element;if(Ai.push(vt),this.collectedEnterElements.length){const rn=Ui[hr];if(rn&&rn.setForMove){if(rn.previousTriggersValues&&rn.previousTriggersValues.has(rt.triggerName)){const Wl=rn.previousTriggersValues.get(rt.triggerName),mr=this.statesByElement.get(rt.element);if(mr&&mr.has(rt.triggerName)){const qb=mr.get(rt.triggerName);qb.value=Wl,mr.set(rt.triggerName,qb)}}return void vt.destroy()}}const ma=!c||!this.driver.containsElement(c,Ui),Fn=Te.get(Ui),As=m.get(Ui),si=this._buildInstruction(rt,t,As,Fn,ma);if(si.errors&&si.errors.length)return void ti.push(si);if(ma)return vt.onStart(()=>ql(Ui,si.fromStyles)),vt.onDestroy(()=>fa(Ui,si.toStyles)),void s.push(vt);if(rt.isFallbackTransition)return vt.onStart(()=>ql(Ui,si.fromStyles)),vt.onDestroy(()=>fa(Ui,si.toStyles)),void s.push(vt);const SD=[];si.timelines.forEach(rn=>{rn.stretchStartingKeyframe=!0,this.disabledNodes.has(rn.element)||SD.push(rn)}),si.timelines=SD,t.append(Ui,si.timelines),d.push({instruction:si,player:vt,element:Ui}),si.queriedElements.forEach(rn=>Ln(l,rn,[]).push(vt)),si.preStyleProps.forEach((rn,Wl)=>{if(rn.size){let mr=n.get(Wl);mr||n.set(Wl,mr=new Set),rn.forEach((qb,G0)=>mr.add(G0))}}),si.postStyleProps.forEach((rn,Wl)=>{let mr=i.get(Wl);mr||i.set(Wl,mr=new Set),rn.forEach((qb,G0)=>mr.add(G0))})});if(ti.length){const We=[];ti.forEach(et=>{We.push(function WB(o,r){return new _.vHH(3505,!1)}())}),Ai.forEach(et=>et.destroy()),this.reportError(We)}const ui=new Map,un=new Map;d.forEach(We=>{const et=We.element;t.has(et)&&(un.set(et,et),this._beforeAnimationBuild(We.player.namespaceId,We.instruction,ui))}),s.forEach(We=>{const et=We.element;this._getPreviousPlayers(et,!1,We.namespaceId,We.triggerName,null).forEach(vt=>{Ln(ui,et,[]).push(vt),vt.destroy()})});const fr=w.filter(We=>mD(We,n,i)),lo=new Map;hD(lo,this.driver,J,i,Dr).forEach(We=>{mD(We,n,i)&&fr.push(We)});const Np=new Map;f.forEach((We,et)=>{hD(Np,this.driver,new Set(We),n,"!")}),fr.forEach(We=>{const et=lo.get(We),rt=Np.get(We);lo.set(We,new Map([...Array.from(et?.entries()??[]),...Array.from(rt?.entries()??[])]))});const Gl=[],AD=[],xD={};d.forEach(We=>{const{element:et,player:rt,instruction:vt}=We;if(t.has(et)){if(a.has(et))return rt.onDestroy(()=>fa(et,vt.toStyles)),rt.disabled=!0,rt.overrideTotalTime(vt.totalTime),void s.push(rt);let Ui=xD;if(un.size>1){let Fn=et;const As=[];for(;Fn=Fn.parentNode;){const si=un.get(Fn);if(si){Ui=si;break}As.push(Fn)}As.forEach(si=>un.set(si,Ui))}const ma=this._buildAnimation(rt.namespaceId,vt,ui,u,Np,lo);if(rt.setRealPlayer(ma),Ui===xD)Gl.push(rt);else{const Fn=this.playersByElement.get(Ui);Fn&&Fn.length&&(rt.parentPlayer=ws(Fn)),s.push(rt)}}else ql(et,vt.fromStyles),rt.onDestroy(()=>fa(et,vt.toStyles)),AD.push(rt),a.has(et)&&s.push(rt)}),AD.forEach(We=>{const et=u.get(We.element);if(et&&et.length){const rt=ws(et);We.setRealPlayer(rt)}}),s.forEach(We=>{We.parentPlayer?We.syncPlayerEvents(We.parentPlayer):We.destroy()});for(let We=0;We!ma.destroyed);Ui.length?YV(this,et,Ui):this.processLeaveNode(et)}return w.length=0,Gl.forEach(We=>{this.players.push(We),We.onDone(()=>{We.destroy();const et=this.players.indexOf(We);this.players.splice(et,1)}),We.play()}),Gl}elementContainsData(r,e){let t=!1;const s=e[hr];return s&&s.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,s,u){let d=[];if(e){const l=this.playersByQueriedElement.get(r);l&&(d=l)}else{const l=this.playersByElement.get(r);if(l){const n=!u||u==Up;l.forEach(i=>{i.queued||!n&&i.triggerName!=s||d.push(i)})}}return(t||s)&&(d=d.filter(l=>!(t&&t!=l.namespaceId||s&&s!=l.triggerName))),d}_beforeAnimationBuild(r,e,t){const u=e.element,d=e.isRemovalTransition?void 0:r,l=e.isRemovalTransition?void 0:e.triggerName;for(const n of e.timelines){const i=n.element,a=i!==u,c=Ln(t,i,[]);this._getPreviousPlayers(i,a,d,l,e.toState).forEach(f=>{const m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),c.push(f)})}ql(u,e.fromStyles)}_buildAnimation(r,e,t,s,u,d){const l=e.triggerName,n=e.element,i=[],a=new Set,c=new Set,h=e.timelines.map(m=>{const p=m.element;a.add(p);const w=p[hr];if(w&&w.removedBeforeQueried)return new kn(m.duration,m.delay);const R=p!==n,J=function JV(o){const r=[];return fD(o,r),r}((t.get(p)||NV).map(ui=>ui.getRealPlayer())).filter(ui=>!!ui.element&&ui.element===p),Te=u.get(p),nt=d.get(p),Ai=FM(0,this._normalizer,0,m.keyframes,Te,nt),ti=this._buildPlayer(m,Ai,J);if(m.subTimeline&&s&&c.add(p),R){const ui=new N0(r,l,p);ui.setRealPlayer(ti),i.push(ui)}return ti});i.forEach(m=>{Ln(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function WV(o,r,e){let t=o.get(r);if(t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&o.delete(r)}return t}(this.playersByQueriedElement,m.element,m))}),a.forEach(m=>pr(m,YM));const f=ws(h);return f.onDestroy(()=>{a.forEach(m=>Jd(m,YM)),fa(n,e.toStyles)}),c.forEach(m=>{Ln(s,m,[]).push(f)}),f}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new kn(r.duration,r.delay)}}class N0{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new kn,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,t)=>{e.forEach(s=>y0(r,t,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){Ln(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function Fb(o){return o&&1===o.nodeType}function uD(o,r){const e=o.style.display;return o.style.display=r??"none",e}function hD(o,r,e,t,s){const u=[];e.forEach(n=>u.push(uD(n)));const d=[];t.forEach((n,i)=>{const a=new Map;n.forEach(c=>{const h=r.computeStyle(i,c,s);a.set(c,h),(!h||0==h.length)&&(i[hr]=qV,d.push(i))}),o.set(i,a)});let l=0;return e.forEach(n=>uD(n,u[l++])),d}function pD(o,r){const e=new Map;if(o.forEach(l=>e.set(l,[])),0==r.length)return e;const s=new Set(r),u=new Map;function d(l){if(!l)return 1;let n=u.get(l);if(n)return n;const i=l.parentNode;return n=e.has(i)?i:s.has(i)?1:d(i),u.set(l,n),n}return r.forEach(l=>{const n=d(l);1!==n&&e.get(n).push(l)}),e}function pr(o,r){o.classList?.add(r)}function Jd(o,r){o.classList?.remove(r)}function YV(o,r,e){ws(e).onDone(()=>o.processLeaveNode(r))}function fD(o,r){for(let e=0;es.add(u)):r.set(o,t),e.delete(o),!0}class Ub{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,u)=>{},this._transitionEngine=new GV(r,e,t),this._timelineEngine=new OV(r,e,t),this._transitionEngine.onRemovalComplete=(s,u)=>this.onRemovalComplete(s,u)}registerTrigger(r,e,t,s,u){const d=r+"-"+s;let l=this._triggerCache[d];if(!l){const n=[],a=P0(this._driver,u,n,[]);if(n.length)throw function BB(o,r){return new _.vHH(3404,!1)}();l=function IV(o,r,e){return new kV(o,r,e)}(s,a,this._normalizer),this._triggerCache[d]=l}this._transitionEngine.registerTrigger(e,s,l)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,s){this._transitionEngine.insertNode(r,e,t,s)}onRemove(r,e,t,s){this._transitionEngine.removeNode(r,e,s||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,s){if("@"==t.charAt(0)){const[u,d]=UM(t);this._timelineEngine.command(u,e,d,s)}else this._transitionEngine.trigger(r,e,t,s)}listen(r,e,t,s,u){if("@"==t.charAt(0)){const[d,l]=UM(t);return this._timelineEngine.listen(d,e,l,u)}return this._transitionEngine.listen(r,e,t,s,u)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let XV=(()=>{class o{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let u=o.initialStylesByElement.get(e);u||o.initialStylesByElement.set(e,u=new Map),this._initialStyles=u}start(){this._state<1&&(this._startStyles&&fa(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fa(this._element,this._initialStyles),this._endStyles&&(fa(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(o.initialStylesByElement.delete(this._element),this._startStyles&&(ql(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ql(this._element,this._endStyles),this._endStyles=null),fa(this._element,this._initialStyles),this._state=3)}}return o.initialStylesByElement=new WeakMap,o})();function q0(o){let r=null;return o.forEach((e,t)=>{(function eO(o){return"display"===o||"position"===o})(t)&&(r=r||new Map,r.set(t,e))}),r}class gD{constructor(r,e,t,s){this.element=r,this.keyframes=e,this.options=t,this._specialStyles=s,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(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(r,e,t){return r.animate(this._convertKeyframesToObject(e),t)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,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(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,s)=>{"offset"!==s&&r.set(s,this._finished?t:tD(this.element,s))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class tO{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return GM(r,e)}getParentElement(r){return S0(r)}query(r,e,t){return WM(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,s,u,d=[]){const n={duration:t,delay:s,fill:0==s?"both":"forwards"};u&&(n.easing=u);const i=new Map,a=d.filter(f=>f instanceof gD);(function aV(o,r){return 0===o||0===r})(t,s)&&a.forEach(f=>{f.currentSnapshot.forEach((m,p)=>i.set(p,m))});let c=function tV(o){return o.length?o[0]instanceof Map?o:o.map(r=>JM(r)):[]}(e).map(f=>vs(f));c=function oV(o,r,e){if(e.size&&r.length){let t=r[0],s=[];if(e.forEach((u,d)=>{t.has(d)||s.push(d),t.set(d,u)}),s.length)for(let u=1;ud.set(l,tD(o,l)))}}return r}(r,c,i);const h=function ZV(o,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=q0(r[0]),r.length>1&&(t=q0(r[r.length-1]))):r instanceof Map&&(e=q0(r)),e||t?new XV(o,e,t):null}(r,c);return new gD(r,c,n,h)}}let iO=(()=>{class o extends Zm{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:_.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?hl(e):e;return _D(this._renderer,null,t,"register",[s]),new nO(t,this._renderer)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.FYo),_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class nO extends class my{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new rO(this._id,r,e||{},this._renderer)}}class rO{constructor(r,e,t,s){this.id=r,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return _D(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function _D(o,r,e,t,s){return o.setProperty(r,`@@${e}:${t}`,s)}const bD="@.disabled";let aO=(()=>{class o{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(u,d)=>{const l=d?.parentNode(u);l&&d.removeChild(l,u)}}createRenderer(e,t){const u=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let a=this._rendererCache.get(u);return a||(a=new CD("",u,this.engine),this._rendererCache.set(u,a)),a}const d=t.id,l=t.id+"-"+this._currentId;this._currentId++,this.engine.register(l,e);const n=a=>{Array.isArray(a)?a.forEach(n):this.engine.registerTrigger(d,l,e,a.name,a)};return t.data.animation.forEach(n),new oO(this,l,u,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){e>=0&&et(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(u=>{const[d,l]=u;d(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.FYo),_.LFG(Ub),_.LFG(_.R0b))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class CD{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,s=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,s)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,s){this.delegate.setAttribute(r,e,t,s)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,s){this.delegate.setStyle(r,e,t,s)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==bD?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class oO extends CD{constructor(r,e,t,s){super(e,t,s),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==bD?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.slice(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const s=function sO(o){switch(o){case"body":return document.body;case"document":return document;case"window":return window;default:return o}}(r);let u=e.slice(1),d="";return"@"!=u.charAt(0)&&([u,d]=function lO(o){const r=o.indexOf(".");return[o.substring(0,r),o.slice(r+1)]}(u)),this.engine.listen(this.namespaceId,s,u,d,l=>{this.factory.scheduleListenerCallback(l._data||-1,t,l)})}return this.delegate.listen(r,e,t)}}const wD=[{provide:Zm,useClass:iO},{provide:O0,useFactory:function dO(){return new DV}},{provide:Ub,useClass:(()=>{class o extends Ub{constructor(e,t,s,u){super(e.body,t,s)}ngOnDestroy(){this.flush()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0),_.LFG(T0),_.LFG(O0),_.LFG(_.z2F))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})()},{provide:_.FYo,useFactory:function uO(o,r,e){return new aO(o,r,e)},deps:[pe,Ub,_.R0b]}],z0=[{provide:T0,useFactory:()=>new tO},{provide:_.QbO,useValue:"BrowserAnimations"},...wD],yD=[{provide:T0,useClass:$M},{provide:_.QbO,useValue:"NoopAnimations"},...wD];let hO=(()=>{class o{static withConfig(e){return{ngModule:o,providers:e.disableAnimations?yD:z0}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:z0,imports:[ba]}),o})();const pO={provide:v.TP,useExisting:(0,_.Gpc)(()=>g_),multi:!0};function fO(o){return new EH(o,"./assets/i18n/",".json")}function mO(o){const r={basePath:o.getProperty("api_url")};return new st(r)}const gO=o=>()=>o.loadConfigs();let _O=(()=>{class o{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(eA),_.LFG(oa))},o.\u0275mod=_.oAB({type:o,bootstrap:[Oo]}),o.\u0275inj=_.cJS({providers:[eA,{provide:_.ip1,useFactory:gO,multi:!0,deps:[RH]},{provide:st,useFactory:mO,deps:[Vn]},g_,pO,{provide:PH,useClass:iA},{provide:$r.Hy,useFactory:()=>localStorage}],imports:[ba,hO,v.JF,Jv,TH,c0,dB,ra,PM,d0,Dg,hB,$r.zr.forRoot(),pB,sr.forRoot({loader:{provide:cs,useFactory:fO,deps:[v.eN]}})]}),o})();(0,_.G48)(),Ke().bootstrapModule(_O).catch(o=>console.error(o))},1302:function(N,z,E){var M;!function(_,L){var F={};!function(_){"use strict";_.__esModule=!0,_.digestLength=32,_.blockSize=64;var L=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function F(oe,te,ae,he,fe){for(var _e,Le,Fe,Ae,Ce,xe,Je,Pe,Re,He,le,ce,ge;fe>=64;){for(_e=te[0],Le=te[1],Fe=te[2],Ae=te[3],Ce=te[4],xe=te[5],Je=te[6],Pe=te[7],He=0;He<16;He++)oe[He]=(255&ae[le=he+4*He])<<24|(255&ae[le+1])<<16|(255&ae[le+2])<<8|255&ae[le+3];for(He=16;He<64;He++)oe[He]=((ce=((Re=oe[He-2])>>>17|Re<<15)^(Re>>>19|Re<<13)^Re>>>10)+oe[He-7]|0)+((ge=((Re=oe[He-15])>>>7|Re<<25)^(Re>>>18|Re<<14)^Re>>>3)+oe[He-16]|0);for(He=0;He<64;He++)ce=(((Ce>>>6|Ce<<26)^(Ce>>>11|Ce<<21)^(Ce>>>25|Ce<<7))+(Ce&xe^~Ce&Je)|0)+(Pe+(L[He]+oe[He]|0)|0)|0,ge=((_e>>>2|_e<<30)^(_e>>>13|_e<<19)^(_e>>>22|_e<<10))+(_e&Le^_e&Fe^Le&Fe)|0,Pe=Je,Je=xe,xe=Ce,Ce=Ae+ce|0,Ae=Fe,Fe=Le,Le=_e,_e=ce+ge|0;te[0]+=_e,te[1]+=Le,te[2]+=Fe,te[3]+=Ae,te[4]+=Ce,te[5]+=xe,te[6]+=Je,te[7]+=Pe,he+=64,fe-=64}return he}var V=function(){function oe(){this.digestLength=_.digestLength,this.blockSize=_.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return oe.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},oe.prototype.clean=function(){for(var te=0;te0){for(;this.bufferLength<64&&ae>0;)this.buffer[this.bufferLength++]=te[he++],ae--;64===this.bufferLength&&(F(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ae>=64&&(he=F(this.temp,this.state,te,he,ae),ae%=64);ae>0;)this.buffer[this.bufferLength++]=te[he++],ae--;return this},oe.prototype.finish=function(te){if(!this.finished){var ae=this.bytesHashed,he=this.bufferLength,fe=ae/536870912|0,_e=ae<<3,Le=ae%64<56?64:128;this.buffer[he]=128;for(var Fe=he+1;Fe>>24&255,this.buffer[Le-7]=fe>>>16&255,this.buffer[Le-6]=fe>>>8&255,this.buffer[Le-5]=fe>>>0&255,this.buffer[Le-4]=_e>>>24&255,this.buffer[Le-3]=_e>>>16&255,this.buffer[Le-2]=_e>>>8&255,this.buffer[Le-1]=_e>>>0&255,F(this.temp,this.state,this.buffer,0,Le),this.finished=!0}for(Fe=0;Fe<8;Fe++)te[4*Fe+0]=this.state[Fe]>>>24&255,te[4*Fe+1]=this.state[Fe]>>>16&255,te[4*Fe+2]=this.state[Fe]>>>8&255,te[4*Fe+3]=this.state[Fe]>>>0&255;return this},oe.prototype.digest=function(){var te=new Uint8Array(this.digestLength);return this.finish(te),te},oe.prototype._saveState=function(te){for(var ae=0;aethis.blockSize)(new V).update(te).finish(ae).clean();else for(var he=0;he1&&te.update(oe),ae&&te.update(ae),te.update(he),te.finish(oe),he[0]++}_.HMAC=q,_.hash=Q,_.default=Q,_.hmac=ee;var Y=new Uint8Array(_.digestLength);_.hkdf=function G(oe,te,ae,he){void 0===te&&(te=Y),void 0===he&&(he=32);for(var fe=new Uint8Array([1]),_e=ee(te,oe),Le=new q(_e),Fe=new Uint8Array(Le.digestLength),Ae=Fe.length,Ce=new Uint8Array(he),xe=0;xe>>24&255,Le[1]=Je>>>16&255,Le[2]=Je>>>8&255,Le[3]=Je>>>0&255,fe.reset(),fe.update(te),fe.update(Le),fe.finish(Ae);for(var Pe=0;Pe<_e;Pe++)Fe[Pe]=Ae[Pe];for(Pe=2;Pe<=ae;Pe++){fe.reset(),fe.update(Ae).finish(Ae);for(var Re=0;Re<_e;Re++)Fe[Re]^=Ae[Re]}for(Pe=0;Pe<_e&&xe*_e+Pe=G.status}function q(Y){try{Y.dispatchEvent(new MouseEvent("click"))}catch{var G=document.createEvent("MouseEvents");G.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Y.dispatchEvent(G)}}var Q="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,ee=Q.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),W=Q.saveAs||("object"!=typeof window||window!==Q?function(){}:"download"in HTMLAnchorElement.prototype&&!ee?function(Y,G,re){var oe=Q.URL||Q.webkitURL,te=document.createElement("a");te.download=G=G||Y.name||"download",te.rel="noopener","string"==typeof Y?(te.href=Y,te.origin===location.origin?q(te):V(te.href)?F(Y,G,re):q(te,te.target="_blank")):(te.href=oe.createObjectURL(Y),setTimeout(function(){oe.revokeObjectURL(te.href)},4e4),setTimeout(function(){q(te)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,G,re){if(G=G||Y.name||"download","string"!=typeof Y)navigator.msSaveOrOpenBlob(function L(Y,G){return typeof G>"u"?G={autoBom:!1}:"object"!=typeof G&&(console.warn("Deprecated: Expected third argument to be a object"),G={autoBom:!G}),G.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Y.type)?new Blob(["\ufeff",Y],{type:Y.type}):Y}(Y,re),G);else if(V(Y))F(Y,G,re);else{var oe=document.createElement("a");oe.href=Y,oe.target="_blank",setTimeout(function(){q(oe)})}}:function(Y,G,re,oe){if((oe=oe||open("","_blank"))&&(oe.document.title=oe.document.body.innerText="downloading..."),"string"==typeof Y)return F(Y,G,re);var te="application/octet-stream"===Y.type,ae=/constructor/i.test(Q.HTMLElement)||Q.safari,he=/CriOS\/[\d]+/.test(navigator.userAgent);if((he||te&&ae||ee)&&typeof FileReader<"u"){var fe=new FileReader;fe.onloadend=function(){var Fe=fe.result;Fe=he?Fe:Fe.replace(/^data:[^;]*;/,"data:attachment/file;"),oe?oe.location.href=Fe:location=Fe,oe=null},fe.readAsDataURL(Y)}else{var _e=Q.URL||Q.webkitURL,Le=_e.createObjectURL(Y);oe?oe.location=Le:location.href=Le,oe=null,setTimeout(function(){_e.revokeObjectURL(Le)},4e4)}});Q.saveAs=W.saveAs=W,N.exports=W}.apply(z,[]))&&(N.exports=_)},9751:(N,z,E)=>{"use strict";E.d(z,{y:()=>ee});var M=E(930),_=E(727),L=E(8822),F=E(9635),V=E(2416),q=E(576),Q=E(2806);let ee=(()=>{class re{constructor(te){te&&(this._subscribe=te)}lift(te){const ae=new re;return ae.source=this,ae.operator=te,ae}subscribe(te,ae,he){const fe=function G(re){return re&&re instanceof M.Lv||function Y(re){return re&&(0,q.m)(re.next)&&(0,q.m)(re.error)&&(0,q.m)(re.complete)}(re)&&(0,_.Nn)(re)}(te)?te:new M.Hp(te,ae,he);return(0,Q.x)(()=>{const{operator:_e,source:Le}=this;fe.add(_e?_e.call(fe,Le):Le?this._subscribe(fe):this._trySubscribe(fe))}),fe}_trySubscribe(te){try{return this._subscribe(te)}catch(ae){te.error(ae)}}forEach(te,ae){return new(ae=W(ae))((he,fe)=>{const _e=new M.Hp({next:Le=>{try{te(Le)}catch(Fe){fe(Fe),_e.unsubscribe()}},error:fe,complete:he});this.subscribe(_e)})}_subscribe(te){var ae;return null===(ae=this.source)||void 0===ae?void 0:ae.subscribe(te)}[L.L](){return this}pipe(...te){return(0,F.U)(te)(this)}toPromise(te){return new(te=W(te))((ae,he)=>{let fe;this.subscribe(_e=>fe=_e,_e=>he(_e),()=>ae(fe))})}}return re.create=oe=>new re(oe),re})();function W(re){var oe;return null!==(oe=re??V.v.Promise)&&void 0!==oe?oe:Promise}},7579:(N,z,E)=>{"use strict";E.d(z,{x:()=>Q});var M=E(9751),_=E(727);const F=(0,E(3888).d)(W=>function(){W(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var V=E(8737),q=E(2806);let Q=(()=>{class W extends M.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const re=new ee(this,this);return re.operator=G,re}_throwIfClosed(){if(this.closed)throw new F}next(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const re of this.currentObservers)re.next(G)}})}error(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:re}=this;for(;re.length;)re.shift().error(G)}})}complete(){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:G}=this;for(;G.length;)G.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var G;return(null===(G=this.observers)||void 0===G?void 0:G.length)>0}_trySubscribe(G){return this._throwIfClosed(),super._trySubscribe(G)}_subscribe(G){return this._throwIfClosed(),this._checkFinalizedStatuses(G),this._innerSubscribe(G)}_innerSubscribe(G){const{hasError:re,isStopped:oe,observers:te}=this;return re||oe?_.Lc:(this.currentObservers=null,te.push(G),new _.w0(()=>{this.currentObservers=null,(0,V.P)(te,G)}))}_checkFinalizedStatuses(G){const{hasError:re,thrownError:oe,isStopped:te}=this;re?G.error(oe):te&&G.complete()}asObservable(){const G=new M.y;return G.source=this,G}}return W.create=(Y,G)=>new ee(Y,G),W})();class ee extends Q{constructor(Y,G){super(),this.destination=Y,this.source=G}next(Y){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===re||re.call(G,Y)}error(Y){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===re||re.call(G,Y)}complete(){var Y,G;null===(G=null===(Y=this.destination)||void 0===Y?void 0:Y.complete)||void 0===G||G.call(Y)}_subscribe(Y){var G,re;return null!==(re=null===(G=this.source)||void 0===G?void 0:G.subscribe(Y))&&void 0!==re?re:_.Lc}}},930:(N,z,E)=>{"use strict";E.d(z,{Hp:()=>he,Lv:()=>re});var M=E(576),_=E(727),L=E(2416),F=E(7849),V=E(5032);const q=W("C",void 0,void 0);function W(Ae,Ce,xe){return{kind:Ae,value:Ce,error:xe}}var Y=E(3410),G=E(2806);class re extends _.w0{constructor(Ce){super(),this.isStopped=!1,Ce?(this.destination=Ce,(0,_.Nn)(Ce)&&Ce.add(this)):this.destination=Fe}static create(Ce,xe,Je){return new he(Ce,xe,Je)}next(Ce){this.isStopped?Le(function ee(Ae){return W("N",Ae,void 0)}(Ce),this):this._next(Ce)}error(Ce){this.isStopped?Le(function Q(Ae){return W("E",void 0,Ae)}(Ce),this):(this.isStopped=!0,this._error(Ce))}complete(){this.isStopped?Le(q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ce){this.destination.next(Ce)}_error(Ce){try{this.destination.error(Ce)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const oe=Function.prototype.bind;function te(Ae,Ce){return oe.call(Ae,Ce)}class ae{constructor(Ce){this.partialObserver=Ce}next(Ce){const{partialObserver:xe}=this;if(xe.next)try{xe.next(Ce)}catch(Je){fe(Je)}}error(Ce){const{partialObserver:xe}=this;if(xe.error)try{xe.error(Ce)}catch(Je){fe(Je)}else fe(Ce)}complete(){const{partialObserver:Ce}=this;if(Ce.complete)try{Ce.complete()}catch(xe){fe(xe)}}}class he extends re{constructor(Ce,xe,Je){let Pe;if(super(),(0,M.m)(Ce)||!Ce)Pe={next:Ce??void 0,error:xe??void 0,complete:Je??void 0};else{let Re;this&&L.v.useDeprecatedNextContext?(Re=Object.create(Ce),Re.unsubscribe=()=>this.unsubscribe(),Pe={next:Ce.next&&te(Ce.next,Re),error:Ce.error&&te(Ce.error,Re),complete:Ce.complete&&te(Ce.complete,Re)}):Pe=Ce}this.destination=new ae(Pe)}}function fe(Ae){L.v.useDeprecatedSynchronousErrorHandling?(0,G.O)(Ae):(0,F.h)(Ae)}function Le(Ae,Ce){const{onStoppedNotification:xe}=L.v;xe&&Y.z.setTimeout(()=>xe(Ae,Ce))}const Fe={closed:!0,next:V.Z,error:function _e(Ae){throw Ae},complete:V.Z}},727:(N,z,E)=>{"use strict";E.d(z,{Lc:()=>q,w0:()=>V,Nn:()=>Q});var M=E(576);const L=(0,E(3888).d)(W=>function(G){W(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((re,oe)=>`${oe+1}) ${re.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var F=E(8737);class V{constructor(Y){this.initialTeardown=Y,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Y;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const te of G)te.remove(this);else G.remove(this);const{initialTeardown:re}=this;if((0,M.m)(re))try{re()}catch(te){Y=te instanceof L?te.errors:[te]}const{_finalizers:oe}=this;if(oe){this._finalizers=null;for(const te of oe)try{ee(te)}catch(ae){Y=Y??[],ae instanceof L?Y=[...Y,...ae.errors]:Y.push(ae)}}if(Y)throw new L(Y)}}add(Y){var G;if(Y&&Y!==this)if(this.closed)ee(Y);else{if(Y instanceof V){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push(Y)}}_hasParent(Y){const{_parentage:G}=this;return G===Y||Array.isArray(G)&&G.includes(Y)}_addParent(Y){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push(Y),G):G?[G,Y]:Y}_removeParent(Y){const{_parentage:G}=this;G===Y?this._parentage=null:Array.isArray(G)&&(0,F.P)(G,Y)}remove(Y){const{_finalizers:G}=this;G&&(0,F.P)(G,Y),Y instanceof V&&Y._removeParent(this)}}V.EMPTY=(()=>{const W=new V;return W.closed=!0,W})();const q=V.EMPTY;function Q(W){return W instanceof V||W&&"closed"in W&&(0,M.m)(W.remove)&&(0,M.m)(W.add)&&(0,M.m)(W.unsubscribe)}function ee(W){(0,M.m)(W)?W():W.unsubscribe()}},2416:(N,z,E)=>{"use strict";E.d(z,{v:()=>M});const M={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(N,z,E)=>{"use strict";E.d(z,{a:()=>Y});var M=E(9751),_=E(4742),L=E(2076),F=E(4671),V=E(3268),q=E(3269),Q=E(1810),ee=E(5403),W=E(9672);function Y(...oe){const te=(0,q.yG)(oe),ae=(0,q.jO)(oe),{args:he,keys:fe}=(0,_.D)(oe);if(0===he.length)return(0,L.D)([],te);const _e=new M.y(function G(oe,te,ae=F.y){return he=>{re(te,()=>{const{length:fe}=oe,_e=new Array(fe);let Le=fe,Fe=fe;for(let Ae=0;Ae{const Ce=(0,L.D)(oe[Ae],te);let xe=!1;Ce.subscribe((0,ee.x)(he,Je=>{_e[Ae]=Je,xe||(xe=!0,Fe--),Fe||he.next(ae(_e.slice()))},()=>{--Le||he.complete()}))},he)},he)}}(he,te,fe?Le=>(0,Q.n)(fe,Le):F.y));return ae?_e.pipe((0,V.Z)(ae)):_e}function re(oe,te,ae){oe?(0,W.f)(ae,oe,te):te()}},7272:(N,z,E)=>{"use strict";E.d(z,{z:()=>V});var M=E(8189),L=E(3269),F=E(2076);function V(...q){return function _(){return(0,M.J)(1)}()((0,F.D)(q,(0,L.yG)(q)))}},515:(N,z,E)=>{"use strict";E.d(z,{E:()=>_});const _=new(E(9751).y)(V=>V.complete())},2076:(N,z,E)=>{"use strict";E.d(z,{D:()=>Je});var M=E(8421),_=E(9672),L=E(4482),F=E(5403);function V(Pe,Re=0){return(0,L.e)((He,le)=>{He.subscribe((0,F.x)(le,ce=>(0,_.f)(le,Pe,()=>le.next(ce),Re),()=>(0,_.f)(le,Pe,()=>le.complete(),Re),ce=>(0,_.f)(le,Pe,()=>le.error(ce),Re)))})}function q(Pe,Re=0){return(0,L.e)((He,le)=>{le.add(Pe.schedule(()=>He.subscribe(le),Re))})}var W=E(9751),G=E(2202),re=E(576);function te(Pe,Re){if(!Pe)throw new Error("Iterable cannot be null");return new W.y(He=>{(0,_.f)(He,Re,()=>{const le=Pe[Symbol.asyncIterator]();(0,_.f)(He,Re,()=>{le.next().then(ce=>{ce.done?He.complete():He.next(ce.value)})},0,!0)})})}var ae=E(3670),he=E(8239),fe=E(1144),_e=E(6495),Le=E(2206),Fe=E(4532),Ae=E(3260);function Je(Pe,Re){return Re?function xe(Pe,Re){if(null!=Pe){if((0,ae.c)(Pe))return function Q(Pe,Re){return(0,M.Xf)(Pe).pipe(q(Re),V(Re))}(Pe,Re);if((0,fe.z)(Pe))return function Y(Pe,Re){return new W.y(He=>{let le=0;return Re.schedule(function(){le===Pe.length?He.complete():(He.next(Pe[le++]),He.closed||this.schedule())})})}(Pe,Re);if((0,he.t)(Pe))return function ee(Pe,Re){return(0,M.Xf)(Pe).pipe(q(Re),V(Re))}(Pe,Re);if((0,Le.D)(Pe))return te(Pe,Re);if((0,_e.T)(Pe))return function oe(Pe,Re){return new W.y(He=>{let le;return(0,_.f)(He,Re,()=>{le=Pe[G.h](),(0,_.f)(He,Re,()=>{let ce,ge;try{({value:ce,done:ge}=le.next())}catch(pe){return void He.error(pe)}ge?He.complete():He.next(ce)},0,!0)}),()=>(0,re.m)(le?.return)&&le.return()})}(Pe,Re);if((0,Ae.L)(Pe))return function Ce(Pe,Re){return te((0,Ae.Q)(Pe),Re)}(Pe,Re)}throw(0,Fe.z)(Pe)}(Pe,Re):(0,M.Xf)(Pe)}},8421:(N,z,E)=>{"use strict";E.d(z,{Xf:()=>oe});var M=E(655),_=E(1144),L=E(8239),F=E(9751),V=E(3670),q=E(2206),Q=E(4532),ee=E(6495),W=E(3260),Y=E(576),G=E(7849),re=E(8822);function oe(Ae){if(Ae instanceof F.y)return Ae;if(null!=Ae){if((0,V.c)(Ae))return function te(Ae){return new F.y(Ce=>{const xe=Ae[re.L]();if((0,Y.m)(xe.subscribe))return xe.subscribe(Ce);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ae);if((0,_.z)(Ae))return function ae(Ae){return new F.y(Ce=>{for(let xe=0;xe{Ae.then(xe=>{Ce.closed||(Ce.next(xe),Ce.complete())},xe=>Ce.error(xe)).then(null,G.h)})}(Ae);if((0,q.D)(Ae))return _e(Ae);if((0,ee.T)(Ae))return function fe(Ae){return new F.y(Ce=>{for(const xe of Ae)if(Ce.next(xe),Ce.closed)return;Ce.complete()})}(Ae);if((0,W.L)(Ae))return function Le(Ae){return _e((0,W.Q)(Ae))}(Ae)}throw(0,Q.z)(Ae)}function _e(Ae){return new F.y(Ce=>{(function Fe(Ae,Ce){var xe,Je,Pe,Re;return(0,M.mG)(this,void 0,void 0,function*(){try{for(xe=(0,M.KL)(Ae);!(Je=yield xe.next()).done;)if(Ce.next(Je.value),Ce.closed)return}catch(He){Pe={error:He}}finally{try{Je&&!Je.done&&(Re=xe.return)&&(yield Re.call(xe))}finally{if(Pe)throw Pe.error}}Ce.complete()})})(Ae,Ce).catch(xe=>Ce.error(xe))})}},6451:(N,z,E)=>{"use strict";E.d(z,{T:()=>q});var M=E(8189),_=E(8421),L=E(515),F=E(3269),V=E(2076);function q(...Q){const ee=(0,F.yG)(Q),W=(0,F._6)(Q,1/0),Y=Q;return Y.length?1===Y.length?(0,_.Xf)(Y[0]):(0,M.J)(W)((0,V.D)(Y,ee)):L.E}},9646:(N,z,E)=>{"use strict";E.d(z,{of:()=>L});var M=E(3269),_=E(2076);function L(...F){const V=(0,M.yG)(F);return(0,_.D)(F,V)}},102:(N,z,E)=>{"use strict";E.d(z,{S:()=>q});var M=E(9751),_=E(8421);const{isArray:L}=Array;var V=E(5403);function q(...ee){return 1===(ee=function F(ee){return 1===ee.length&&L(ee[0])?ee[0]:ee}(ee)).length?(0,_.Xf)(ee[0]):new M.y(function Q(ee){return W=>{let Y=[];for(let G=0;Y&&!W.closed&&G{if(Y){for(let oe=0;oe{"use strict";E.d(z,{_:()=>L});var M=E(9751),_=E(576);function L(F,V){const q=(0,_.m)(F)?F:()=>F,Q=ee=>ee.error(q());return new M.y(V?ee=>V.schedule(Q,0,ee):Q)}},2805:(N,z,E)=>{"use strict";E.d(z,{H:()=>V});var M=E(9751),_=E(4986),L=E(3532),F=E(1165);function V(q=0,Q,ee=_.P){let W=-1;return null!=Q&&((0,L.K)(Q)?ee=Q:W=Q),new M.y(Y=>{let G=(0,F.q)(q)?+q-ee.now():q;G<0&&(G=0);let re=0;return ee.schedule(function(){Y.closed||(Y.next(re++),0<=W?this.schedule(void 0,W):Y.complete())},G)})}},5403:(N,z,E)=>{"use strict";E.d(z,{x:()=>_});var M=E(930);function _(F,V,q,Q,ee){return new L(F,V,q,Q,ee)}class L extends M.Lv{constructor(V,q,Q,ee,W,Y){super(V),this.onFinalize=W,this.shouldUnsubscribe=Y,this._next=q?function(G){try{q(G)}catch(re){V.error(re)}}:super._next,this._error=ee?function(G){try{ee(G)}catch(re){V.error(re)}finally{this.unsubscribe()}}:super._error,this._complete=Q?function(){try{Q()}catch(G){V.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var V;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:q}=this;super.unsubscribe(),!q&&(null===(V=this.onFinalize)||void 0===V||V.call(this))}}}},262:(N,z,E)=>{"use strict";E.d(z,{K:()=>F});var M=E(8421),_=E(5403),L=E(4482);function F(V){return(0,L.e)((q,Q)=>{let Y,ee=null,W=!1;ee=q.subscribe((0,_.x)(Q,void 0,void 0,G=>{Y=(0,M.Xf)(V(G,F(V)(q))),ee?(ee.unsubscribe(),ee=null,Y.subscribe(Q)):W=!0})),W&&(ee.unsubscribe(),ee=null,Y.subscribe(Q))})}},4351:(N,z,E)=>{"use strict";E.d(z,{b:()=>L});var M=E(5577),_=E(576);function L(F,V){return(0,_.m)(V)?(0,M.z)(F,V,1):(0,M.z)(F,1)}},8372:(N,z,E)=>{"use strict";E.d(z,{b:()=>F});var M=E(4986),_=E(4482),L=E(5403);function F(V,q=M.z){return(0,_.e)((Q,ee)=>{let W=null,Y=null,G=null;const re=()=>{if(W){W.unsubscribe(),W=null;const te=Y;Y=null,ee.next(te)}};function oe(){const te=G+V,ae=q.now();if(ae{Y=te,G=q.now(),W||(W=q.schedule(oe,V),ee.add(W))},()=>{re(),ee.complete()},void 0,()=>{Y=W=null}))})}},6590:(N,z,E)=>{"use strict";E.d(z,{d:()=>L});var M=E(4482),_=E(5403);function L(F){return(0,M.e)((V,q)=>{let Q=!1;V.subscribe((0,_.x)(q,ee=>{Q=!0,q.next(ee)},()=>{Q||q.next(F),q.complete()}))})}},1005:(N,z,E)=>{"use strict";E.d(z,{g:()=>re});var M=E(4986),_=E(7272),L=E(5698),F=E(4482),V=E(5403),q=E(5032),ee=E(9718),W=E(5577);function Y(oe,te){return te?ae=>(0,_.z)(te.pipe((0,L.q)(1),function Q(){return(0,F.e)((oe,te)=>{oe.subscribe((0,V.x)(te,q.Z))})}()),ae.pipe(Y(oe))):(0,W.z)((ae,he)=>oe(ae,he).pipe((0,L.q)(1),(0,ee.h)(ae)))}var G=E(2805);function re(oe,te=M.z){const ae=(0,G.H)(oe,te);return Y(()=>ae)}},9300:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(4482),_=E(5403);function L(F,V){return(0,M.e)((q,Q)=>{let ee=0;q.subscribe((0,_.x)(Q,W=>F.call(V,W,ee++)&&Q.next(W)))})}},590:(N,z,E)=>{"use strict";E.d(z,{P:()=>Q});var M=E(6805),_=E(9300),L=E(5698),F=E(6590),V=E(8068),q=E(4671);function Q(ee,W){const Y=arguments.length>=2;return G=>G.pipe(ee?(0,_.h)((re,oe)=>ee(re,oe,G)):q.y,(0,L.q)(1),Y?(0,F.d)(W):(0,V.T)(()=>new M.K))}},4004:(N,z,E)=>{"use strict";E.d(z,{U:()=>L});var M=E(4482),_=E(5403);function L(F,V){return(0,M.e)((q,Q)=>{let ee=0;q.subscribe((0,_.x)(Q,W=>{Q.next(F.call(V,W,ee++))}))})}},9718:(N,z,E)=>{"use strict";E.d(z,{h:()=>_});var M=E(4004);function _(L){return(0,M.U)(()=>L)}},8189:(N,z,E)=>{"use strict";E.d(z,{J:()=>L});var M=E(5577),_=E(4671);function L(F=1/0){return(0,M.z)(_.y,F)}},5577:(N,z,E)=>{"use strict";E.d(z,{z:()=>ee});var M=E(4004),_=E(8421),L=E(4482),F=E(9672),V=E(5403),Q=E(576);function ee(W,Y,G=1/0){return(0,Q.m)(Y)?ee((re,oe)=>(0,M.U)((te,ae)=>Y(re,te,oe,ae))((0,_.Xf)(W(re,oe))),G):("number"==typeof Y&&(G=Y),(0,L.e)((re,oe)=>function q(W,Y,G,re,oe,te,ae,he){const fe=[];let _e=0,Le=0,Fe=!1;const Ae=()=>{Fe&&!fe.length&&!_e&&Y.complete()},Ce=Je=>_e{te&&Y.next(Je),_e++;let Pe=!1;(0,_.Xf)(G(Je,Le++)).subscribe((0,V.x)(Y,Re=>{oe?.(Re),te?Ce(Re):Y.next(Re)},()=>{Pe=!0},void 0,()=>{if(Pe)try{for(_e--;fe.length&&_exe(Re)):xe(Re)}Ae()}catch(Re){Y.error(Re)}}))};return W.subscribe((0,V.x)(Y,Ce,()=>{Fe=!0,Ae()})),()=>{he?.()}}(re,oe,W,G)))}},3099:(N,z,E)=>{"use strict";E.d(z,{B:()=>V});var M=E(8421),_=E(7579),L=E(930),F=E(4482);function V(Q={}){const{connector:ee=(()=>new _.x),resetOnError:W=!0,resetOnComplete:Y=!0,resetOnRefCountZero:G=!0}=Q;return re=>{let oe,te,ae,he=0,fe=!1,_e=!1;const Le=()=>{te?.unsubscribe(),te=void 0},Fe=()=>{Le(),oe=ae=void 0,fe=_e=!1},Ae=()=>{const Ce=oe;Fe(),Ce?.unsubscribe()};return(0,F.e)((Ce,xe)=>{he++,!_e&&!fe&&Le();const Je=ae=ae??ee();xe.add(()=>{he--,0===he&&!_e&&!fe&&(te=q(Ae,G))}),Je.subscribe(xe),!oe&&he>0&&(oe=new L.Hp({next:Pe=>Je.next(Pe),error:Pe=>{_e=!0,Le(),te=q(Fe,W,Pe),Je.error(Pe)},complete:()=>{fe=!0,Le(),te=q(Fe,Y),Je.complete()}}),(0,M.Xf)(Ce).subscribe(oe))})(re)}}function q(Q,ee,...W){if(!0===ee)return void Q();if(!1===ee)return;const Y=new L.Hp({next:()=>{Y.unsubscribe(),Q()}});return ee(...W).subscribe(Y)}},3900:(N,z,E)=>{"use strict";E.d(z,{w:()=>F});var M=E(8421),_=E(4482),L=E(5403);function F(V,q){return(0,_.e)((Q,ee)=>{let W=null,Y=0,G=!1;const re=()=>G&&!W&&ee.complete();Q.subscribe((0,L.x)(ee,oe=>{W?.unsubscribe();let te=0;const ae=Y++;(0,M.Xf)(V(oe,ae)).subscribe(W=(0,L.x)(ee,he=>ee.next(q?q(oe,he,ae,te++):he),()=>{W=null,re()}))},()=>{G=!0,re()}))})}},5698:(N,z,E)=>{"use strict";E.d(z,{q:()=>F});var M=E(515),_=E(4482),L=E(5403);function F(V){return V<=0?()=>M.E:(0,_.e)((q,Q)=>{let ee=0;q.subscribe((0,L.x)(Q,W=>{++ee<=V&&(Q.next(W),V<=ee&&Q.complete())}))})}},8505:(N,z,E)=>{"use strict";E.d(z,{b:()=>V});var M=E(576),_=E(4482),L=E(5403),F=E(4671);function V(q,Q,ee){const W=(0,M.m)(q)||Q||ee?{next:q,error:Q,complete:ee}:q;return W?(0,_.e)((Y,G)=>{var re;null===(re=W.subscribe)||void 0===re||re.call(W);let oe=!0;Y.subscribe((0,L.x)(G,te=>{var ae;null===(ae=W.next)||void 0===ae||ae.call(W,te),G.next(te)},()=>{var te;oe=!1,null===(te=W.complete)||void 0===te||te.call(W),G.complete()},te=>{var ae;oe=!1,null===(ae=W.error)||void 0===ae||ae.call(W,te),G.error(te)},()=>{var te,ae;oe&&(null===(te=W.unsubscribe)||void 0===te||te.call(W)),null===(ae=W.finalize)||void 0===ae||ae.call(W)}))}):F.y}},8068:(N,z,E)=>{"use strict";E.d(z,{T:()=>F});var M=E(6805),_=E(4482),L=E(5403);function F(q=V){return(0,_.e)((Q,ee)=>{let W=!1;Q.subscribe((0,L.x)(ee,Y=>{W=!0,ee.next(Y)},()=>W?ee.complete():ee.error(q())))})}function V(){return new M.K}},7414:(N,z,E)=>{"use strict";E.d(z,{V:()=>W});var M=E(4986),_=E(1165),L=E(4482),F=E(8421),V=E(3888),q=E(5403),Q=E(9672);const ee=(0,V.d)(G=>function(oe=null){G(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=oe});function W(G,re){const{first:oe,each:te,with:ae=Y,scheduler:he=re??M.z,meta:fe=null}=(0,_.q)(G)?{first:G}:"number"==typeof G?{each:G}:G;if(null==oe&&null==te)throw new TypeError("No timeout provided.");return(0,L.e)((_e,Le)=>{let Fe,Ae,Ce=null,xe=0;const Je=Pe=>{Ae=(0,Q.f)(Le,he,()=>{try{Fe.unsubscribe(),(0,F.Xf)(ae({meta:fe,lastValue:Ce,seen:xe})).subscribe(Le)}catch(Re){Le.error(Re)}},Pe)};Fe=_e.subscribe((0,q.x)(Le,Pe=>{Ae?.unsubscribe(),xe++,Le.next(Ce=Pe),te>0&&Je(te)},void 0,void 0,()=>{Ae?.closed||Ae?.unsubscribe(),Ce=null})),!xe&&Je(null!=oe?"number"==typeof oe?oe:+oe-he.now():te)})}function Y(G){throw new ee(G)}},4408:(N,z,E)=>{"use strict";E.d(z,{o:()=>V});var M=E(727);class _ extends M.w0{constructor(Q,ee){super()}schedule(Q,ee=0){return this}}const L={setInterval(q,Q,...ee){const{delegate:W}=L;return W?.setInterval?W.setInterval(q,Q,...ee):setInterval(q,Q,...ee)},clearInterval(q){const{delegate:Q}=L;return(Q?.clearInterval||clearInterval)(q)},delegate:void 0};var F=E(8737);class V extends _{constructor(Q,ee){super(Q,ee),this.scheduler=Q,this.work=ee,this.pending=!1}schedule(Q,ee=0){if(this.closed)return this;this.state=Q;const W=this.id,Y=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(Y,W,ee)),this.pending=!0,this.delay=ee,this.id=this.id||this.requestAsyncId(Y,this.id,ee),this}requestAsyncId(Q,ee,W=0){return L.setInterval(Q.flush.bind(Q,this),W)}recycleAsyncId(Q,ee,W=0){if(null!=W&&this.delay===W&&!1===this.pending)return ee;L.clearInterval(ee)}execute(Q,ee){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(Q,ee);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Q,ee){let Y,W=!1;try{this.work(Q)}catch(G){W=!0,Y=G||new Error("Scheduled action threw falsy error")}if(W)return this.unsubscribe(),Y}unsubscribe(){if(!this.closed){const{id:Q,scheduler:ee}=this,{actions:W}=ee;this.work=this.state=this.scheduler=null,this.pending=!1,(0,F.P)(W,this),null!=Q&&(this.id=this.recycleAsyncId(ee,Q,null)),this.delay=null,super.unsubscribe()}}}},7565:(N,z,E)=>{"use strict";E.d(z,{v:()=>L});var M=E(6063);class _{constructor(V,q=_.now){this.schedulerActionCtor=V,this.now=q}schedule(V,q=0,Q){return new this.schedulerActionCtor(this,V).schedule(Q,q)}}_.now=M.l.now;class L extends _{constructor(V,q=_.now){super(V,q),this.actions=[],this._active=!1,this._scheduled=void 0}flush(V){const{actions:q}=this;if(this._active)return void q.push(V);let Q;this._active=!0;do{if(Q=V.execute(V.state,V.delay))break}while(V=q.shift());if(this._active=!1,Q){for(;V=q.shift();)V.unsubscribe();throw Q}}}},4986:(N,z,E)=>{"use strict";E.d(z,{P:()=>F,z:()=>L});var M=E(4408);const L=new(E(7565).v)(M.o),F=L},6063:(N,z,E)=>{"use strict";E.d(z,{l:()=>M});const M={now:()=>(M.delegate||Date).now(),delegate:void 0}},3410:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M={setTimeout(_,L,...F){const{delegate:V}=M;return V?.setTimeout?V.setTimeout(_,L,...F):setTimeout(_,L,...F)},clearTimeout(_){const{delegate:L}=M;return(L?.clearTimeout||clearTimeout)(_)},delegate:void 0}},2202:(N,z,E)=>{"use strict";E.d(z,{h:()=>_});const _=function M(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(N,z,E)=>{"use strict";E.d(z,{L:()=>M});const M="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(N,z,E)=>{"use strict";E.d(z,{K:()=>_});const _=(0,E(3888).d)(L=>function(){L(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(N,z,E)=>{"use strict";E.d(z,{_6:()=>q,jO:()=>F,yG:()=>V});var M=E(576),_=E(3532);function L(Q){return Q[Q.length-1]}function F(Q){return(0,M.m)(L(Q))?Q.pop():void 0}function V(Q){return(0,_.K)(L(Q))?Q.pop():void 0}function q(Q,ee){return"number"==typeof L(Q)?Q.pop():ee}},4742:(N,z,E)=>{"use strict";E.d(z,{D:()=>V});const{isArray:M}=Array,{getPrototypeOf:_,prototype:L,keys:F}=Object;function V(Q){if(1===Q.length){const ee=Q[0];if(M(ee))return{args:ee,keys:null};if(function q(Q){return Q&&"object"==typeof Q&&_(Q)===L}(ee)){const W=F(ee);return{args:W.map(Y=>ee[Y]),keys:W}}}return{args:Q,keys:null}}},8737:(N,z,E)=>{"use strict";function M(_,L){if(_){const F=_.indexOf(L);0<=F&&_.splice(F,1)}}E.d(z,{P:()=>M})},3888:(N,z,E)=>{"use strict";function M(_){const F=_(V=>{Error.call(V),V.stack=(new Error).stack});return F.prototype=Object.create(Error.prototype),F.prototype.constructor=F,F}E.d(z,{d:()=>M})},1810:(N,z,E)=>{"use strict";function M(_,L){return _.reduce((F,V,q)=>(F[V]=L[q],F),{})}E.d(z,{n:()=>M})},2806:(N,z,E)=>{"use strict";E.d(z,{O:()=>F,x:()=>L});var M=E(2416);let _=null;function L(V){if(M.v.useDeprecatedSynchronousErrorHandling){const q=!_;if(q&&(_={errorThrown:!1,error:null}),V(),q){const{errorThrown:Q,error:ee}=_;if(_=null,Q)throw ee}}else V()}function F(V){M.v.useDeprecatedSynchronousErrorHandling&&_&&(_.errorThrown=!0,_.error=V)}},9672:(N,z,E)=>{"use strict";function M(_,L,F,V=0,q=!1){const Q=L.schedule(function(){F(),q?_.add(this.schedule(null,V)):this.unsubscribe()},V);if(_.add(Q),!q)return Q}E.d(z,{f:()=>M})},4671:(N,z,E)=>{"use strict";function M(_){return _}E.d(z,{y:()=>M})},1144:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M=_=>_&&"number"==typeof _.length&&"function"!=typeof _},2206:(N,z,E)=>{"use strict";E.d(z,{D:()=>_});var M=E(576);function _(L){return Symbol.asyncIterator&&(0,M.m)(L?.[Symbol.asyncIterator])}},1165:(N,z,E)=>{"use strict";function M(_){return _ instanceof Date&&!isNaN(_)}E.d(z,{q:()=>M})},576:(N,z,E)=>{"use strict";function M(_){return"function"==typeof _}E.d(z,{m:()=>M})},3670:(N,z,E)=>{"use strict";E.d(z,{c:()=>L});var M=E(8822),_=E(576);function L(F){return(0,_.m)(F[M.L])}},6495:(N,z,E)=>{"use strict";E.d(z,{T:()=>L});var M=E(2202),_=E(576);function L(F){return(0,_.m)(F?.[M.h])}},8239:(N,z,E)=>{"use strict";E.d(z,{t:()=>_});var M=E(576);function _(L){return(0,M.m)(L?.then)}},3260:(N,z,E)=>{"use strict";E.d(z,{L:()=>F,Q:()=>L});var M=E(655),_=E(576);function L(V){return(0,M.FC)(this,arguments,function*(){const Q=V.getReader();try{for(;;){const{value:ee,done:W}=yield(0,M.qq)(Q.read());if(W)return yield(0,M.qq)(void 0);yield yield(0,M.qq)(ee)}}finally{Q.releaseLock()}})}function F(V){return(0,_.m)(V?.getReader)}},3532:(N,z,E)=>{"use strict";E.d(z,{K:()=>_});var M=E(576);function _(L){return L&&(0,M.m)(L.schedule)}},4482:(N,z,E)=>{"use strict";E.d(z,{A:()=>_,e:()=>L});var M=E(576);function _(F){return(0,M.m)(F?.lift)}function L(F){return V=>{if(_(V))return V.lift(function(q){try{return F(q,this)}catch(Q){this.error(Q)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(N,z,E)=>{"use strict";E.d(z,{Z:()=>F});var M=E(4004);const{isArray:_}=Array;function F(V){return(0,M.U)(q=>function L(V,q){return _(q)?V(...q):V(q)}(V,q))}},5032:(N,z,E)=>{"use strict";function M(){}E.d(z,{Z:()=>M})},9635:(N,z,E)=>{"use strict";E.d(z,{U:()=>L,z:()=>_});var M=E(4671);function _(...F){return L(F)}function L(F){return 0===F.length?M.y:1===F.length?F[0]:function(q){return F.reduce((Q,ee)=>ee(Q),q)}}},7849:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(2416),_=E(3410);function L(F){_.z.setTimeout(()=>{const{onUnhandledError:V}=M.v;if(!V)throw F;V(F)})}},4532:(N,z,E)=>{"use strict";function M(_){return new TypeError(`You provided ${null!==_&&"object"==typeof _?"an invalid object":`'${_}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(z,{z:()=>M})},655:(N,z,E)=>{"use strict";function ee(le,ce,ge,pe){return new(ge||(ge=Promise))(function(Ie,lt){function At(Ri){try{Ue(pe.next(Ri))}catch(Un){lt(Un)}}function Ht(Ri){try{Ue(pe.throw(Ri))}catch(Un){lt(Un)}}function Ue(Ri){Ri.done?Ie(Ri.value):function Ve(Ie){return Ie instanceof ge?Ie:new ge(function(lt){lt(Ie)})}(Ri.value).then(At,Ht)}Ue((pe=pe.apply(le,ce||[])).next())})}function fe(le){return this instanceof fe?(this.v=le,this):new fe(le)}function _e(le,ce,ge){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ve,pe=ge.apply(le,ce||[]),Ie=[];return Ve={},lt("next"),lt("throw"),lt("return"),Ve[Symbol.asyncIterator]=function(){return this},Ve;function lt(Gt){pe[Gt]&&(Ve[Gt]=function(St){return new Promise(function(An,li){Ie.push([Gt,St,An,li])>1||At(Gt,St)})})}function At(Gt,St){try{!function Ht(Gt){Gt.value instanceof fe?Promise.resolve(Gt.value.v).then(Ue,Ri):Un(Ie[0][2],Gt)}(pe[Gt](St))}catch(An){Un(Ie[0][3],An)}}function Ue(Gt){At("next",Gt)}function Ri(Gt){At("throw",Gt)}function Un(Gt,St){Gt(St),Ie.shift(),Ie.length&&At(Ie[0][0],Ie[0][1])}}function Fe(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ge,ce=le[Symbol.asyncIterator];return ce?ce.call(le):(le=function re(le){var ce="function"==typeof Symbol&&Symbol.iterator,ge=ce&&le[ce],pe=0;if(ge)return ge.call(le);if(le&&"number"==typeof le.length)return{next:function(){return le&&pe>=le.length&&(le=void 0),{value:le&&le[pe++],done:!le}}};throw new TypeError(ce?"Object is not iterable.":"Symbol.iterator is not defined.")}(le),ge={},pe("next"),pe("throw"),pe("return"),ge[Symbol.asyncIterator]=function(){return this},ge);function pe(Ie){ge[Ie]=le[Ie]&&function(lt){return new Promise(function(At,Ht){!function Ve(Ie,lt,At,Ht){Promise.resolve(Ht).then(function(Ue){Ie({value:Ue,done:At})},lt)}(At,Ht,(lt=le[Ie](lt)).done,lt.value)})}}}E.d(z,{FC:()=>_e,KL:()=>Fe,mG:()=>ee,qq:()=>fe})},6895:(N,z,E)=>{"use strict";E.d(z,{Do:()=>Fe,EM:()=>jr,HT:()=>V,JF:()=>zi,K0:()=>Q,Mx:()=>Bi,NF:()=>bo,O5:()=>Et,PC:()=>Aa,RF:()=>br,S$:()=>fe,V_:()=>Y,Ye:()=>Ae,b0:()=>Le,bD:()=>qi,ez:()=>wr,n9:()=>Oi,q:()=>L,w_:()=>q});var M=E(4650);let _=null;function L(){return _}function V(P){_||(_=P)}class q{}const Q=new M.OlP("DocumentToken");let ee=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return function W(){return(0,M.LFG)(G)}()},providedIn:"platform"}),P})();const Y=new M.OlP("Location Initialized");let G=(()=>{class P extends ee{constructor(I){super(),this._doc=I,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return L().getBaseHref(this._doc)}onPopState(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("popstate",I,!1),()=>j.removeEventListener("popstate",I)}onHashChange(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("hashchange",I,!1),()=>j.removeEventListener("hashchange",I)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(I){this.location.pathname=I}pushState(I,j,ne){re()?this._history.pushState(I,j,ne):this.location.hash=ne}replaceState(I,j,ne){re()?this._history.replaceState(I,j,ne):this.location.hash=ne}forward(){this._history.forward()}back(){this._history.back()}historyGo(I=0){this._history.go(I)}getState(){return this._history.state}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(Q))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function oe(){return new G((0,M.LFG)(Q))}()},providedIn:"platform"}),P})();function re(){return!!window.history.pushState}function te(P,O){if(0==P.length)return O;if(0==O.length)return P;let I=0;return P.endsWith("/")&&I++,O.startsWith("/")&&I++,2==I?P+O.substring(1):1==I?P+O:P+"/"+O}function ae(P){const O=P.match(/#|\?|$/),I=O&&O.index||P.length;return P.slice(0,I-("/"===P[I-1]?1:0))+P.slice(I)}function he(P){return P&&"?"!==P[0]?"?"+P:P}let fe=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return(0,M.f3M)(Le)},providedIn:"root"}),P})();const _e=new M.OlP("appBaseHref");let Le=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._removeListenerFns=[],this._baseHref=j??this._platformLocation.getBaseHrefFromDOM()??(0,M.f3M)(Q).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}prepareExternalUrl(I){return te(this._baseHref,I)}path(I=!1){const j=this._platformLocation.pathname+he(this._platformLocation.search),ne=this._platformLocation.hash;return ne&&I?`${j}${ne}`:j}pushState(I,j,ne,me){const ue=this.prepareExternalUrl(ne+he(me));this._platformLocation.pushState(I,j,ue)}replaceState(I,j,ne,me){const ue=this.prepareExternalUrl(ne+he(me));this._platformLocation.replaceState(I,j,ue)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(_e,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),Fe=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._baseHref="",this._removeListenerFns=[],null!=j&&(this._baseHref=j)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}path(I=!1){let j=this._platformLocation.hash;return null==j&&(j="#"),j.length>0?j.substring(1):j}prepareExternalUrl(I){const j=te(this._baseHref,I);return j.length>0?"#"+j:j}pushState(I,j,ne,me){let ue=this.prepareExternalUrl(ne+he(me));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.pushState(I,j,ue)}replaceState(I,j,ne,me){let ue=this.prepareExternalUrl(ne+he(me));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.replaceState(I,j,ue)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(_e,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac}),P})(),Ae=(()=>{class P{constructor(I){this._subject=new M.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=I;const j=this._locationStrategy.getBaseHref();this._baseHref=ae(Je(j)),this._locationStrategy.onPopState(ne=>{this._subject.emit({url:this.path(!0),pop:!0,state:ne.state,type:ne.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(I=!1){return this.normalize(this._locationStrategy.path(I))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(I,j=""){return this.path()==this.normalize(I+he(j))}normalize(I){return P.stripTrailingSlash(function xe(P,O){return P&&O.startsWith(P)?O.substring(P.length):O}(this._baseHref,Je(I)))}prepareExternalUrl(I){return I&&"/"!==I[0]&&(I="/"+I),this._locationStrategy.prepareExternalUrl(I)}go(I,j="",ne=null){this._locationStrategy.pushState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}replaceState(I,j="",ne=null){this._locationStrategy.replaceState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(I=0){this._locationStrategy.historyGo?.(I)}onUrlChange(I){return this._urlChangeListeners.push(I),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(j=>{this._notifyUrlChangeListeners(j.url,j.state)})),()=>{const j=this._urlChangeListeners.indexOf(I);this._urlChangeListeners.splice(j,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(I="",j){this._urlChangeListeners.forEach(ne=>ne(I,j))}subscribe(I,j,ne){return this._subject.subscribe({next:I,error:j,complete:ne})}}return P.normalizeQueryParams=he,P.joinWithSlash=te,P.stripTrailingSlash=ae,P.\u0275fac=function(I){return new(I||P)(M.LFG(fe))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function Ce(){return new Ae((0,M.LFG)(fe))}()},providedIn:"root"}),P})();function Je(P){return P.replace(/\/index.html$/,"")}function Bi(P,O){O=encodeURIComponent(O);for(const I of P.split(";")){const j=I.indexOf("="),[ne,me]=-1==j?[I,""]:[I.slice(0,j),I.slice(j+1)];if(ne.trim()===O)return decodeURIComponent(me)}return null}let Et=(()=>{class P{constructor(I,j){this._viewContainer=I,this._context=new sn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=j}set ngIf(I){this._context.$implicit=this._context.ngIf=I,this._updateView()}set ngIfThen(I){va("ngIfThen",I),this._thenTemplateRef=I,this._thenViewRef=null,this._updateView()}set ngIfElse(I){va("ngIfElse",I),this._elseTemplateRef=I,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(I,j){return!0}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),P})();class sn{constructor(){this.$implicit=null,this.ngIf=null}}function va(P,O){if(O&&!O.createEmbeddedView)throw new Error(`${P} must be a TemplateRef, but received '${(0,M.AaK)(O)}'.`)}class Gn{constructor(O,I){this._viewContainerRef=O,this._templateRef=I,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(O){O&&!this._created?this.create():!O&&this._created&&this.destroy()}}let br=(()=>{class P{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(I){this._ngSwitch=I,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(I){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(I)}_matchCase(I){const j=I==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||j,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),j}_updateDefaultCases(I){if(this._defaultViews&&I!==this._defaultUsed){this._defaultUsed=I;for(let j=0;j{class P{constructor(I,j,ne){this.ngSwitch=ne,ne._addCase(),this._view=new Gn(I,j)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc),M.Y36(br,9))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),P})(),Aa=(()=>{class P{constructor(I,j,ne){this._ngEl=I,this._differs=j,this._renderer=ne,this._ngStyle=null,this._differ=null}set ngStyle(I){this._ngStyle=I,!this._differ&&I&&(this._differ=this._differs.find(I).create())}ngDoCheck(){if(this._differ){const I=this._differ.diff(this._ngStyle);I&&this._applyChanges(I)}}_setStyle(I,j){const[ne,me]=I.split("."),ue=-1===ne.indexOf("-")?void 0:M.JOm.DashCase;null!=j?this._renderer.setStyle(this._ngEl.nativeElement,ne,me?`${j}${me}`:j,ue):this._renderer.removeStyle(this._ngEl.nativeElement,ne,ue)}_applyChanges(I){I.forEachRemovedItem(j=>this._setStyle(j.key,null)),I.forEachAddedItem(j=>this._setStyle(j.key,j.currentValue)),I.forEachChangedItem(j=>this._setStyle(j.key,j.currentValue))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.SBq),M.Y36(M.aQg),M.Y36(M.Qsj))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),P})(),wr=(()=>{class P{}return P.\u0275fac=function(I){return new(I||P)},P.\u0275mod=M.oAB({type:P}),P.\u0275inj=M.cJS({}),P})();const qi="browser";function bo(P){return P===qi}let jr=(()=>{class P{}return P.\u0275prov=(0,M.Yz7)({token:P,providedIn:"root",factory:()=>new Ti((0,M.LFG)(Q),window)}),P})();class Ti{constructor(O,I){this.document=O,this.window=I,this.offset=()=>[0,0]}setOffset(O){this.offset=Array.isArray(O)?()=>O:O}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(O){this.supportsScrolling()&&this.window.scrollTo(O[0],O[1])}scrollToAnchor(O){if(!this.supportsScrolling())return;const I=function Co(P,O){const I=P.getElementById(O)||P.getElementsByName(O)[0];if(I)return I;if("function"==typeof P.createTreeWalker&&P.body&&(P.body.createShadowRoot||P.body.attachShadow)){const j=P.createTreeWalker(P.body,NodeFilter.SHOW_ELEMENT);let ne=j.currentNode;for(;ne;){const me=ne.shadowRoot;if(me){const ue=me.getElementById(O)||me.querySelector(`[name="${O}"]`);if(ue)return ue}ne=j.nextNode()}}return null}(this.document,O);I&&(this.scrollToElement(I),I.focus())}setHistoryScrollRestoration(O){if(this.supportScrollRestoration()){const I=this.window.history;I&&I.scrollRestoration&&(I.scrollRestoration=O)}}scrollToElement(O){const I=O.getBoundingClientRect(),j=I.left+this.window.pageXOffset,ne=I.top+this.window.pageYOffset,me=this.offset();this.window.scrollTo(j-me[0],ne-me[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const O=Ps(this.window.history)||Ps(Object.getPrototypeOf(this.window.history));return!(!O||!O.writable&&!O.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Ps(P){return Object.getOwnPropertyDescriptor(P,"scrollRestoration")}class zi{}},529:(N,z,E)=>{"use strict";E.d(z,{JF:()=>Zd,LE:()=>_e,TP:()=>At,WM:()=>Y,Zn:()=>ge,eN:()=>Ie,qT:()=>Fe});var M=E(6895),_=E(4650),L=E(9646),F=E(9751),V=E(4351),q=E(9300),Q=E(4004);class ee{}class W{}class Y{constructor(X){this.normalizedNames=new Map,this.lazyUpdate=null,X?this.lazyInit="string"==typeof X?()=>{this.headers=new Map,X.split("\n").forEach($=>{const de=$.indexOf(":");if(de>0){const De=$.slice(0,de),tt=De.toLowerCase(),ct=$.slice(de+1).trim();this.maybeSetNormalizedName(De,tt),this.headers.has(tt)?this.headers.get(tt).push(ct):this.headers.set(tt,[ct])}})}:()=>{this.headers=new Map,Object.keys(X).forEach($=>{let de=X[$];const De=$.toLowerCase();"string"==typeof de&&(de=[de]),de.length>0&&(this.headers.set(De,de),this.maybeSetNormalizedName($,De))})}:this.headers=new Map}has(X){return this.init(),this.headers.has(X.toLowerCase())}get(X){this.init();const $=this.headers.get(X.toLowerCase());return $&&$.length>0?$[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(X){return this.init(),this.headers.get(X.toLowerCase())||null}append(X,$){return this.clone({name:X,value:$,op:"a"})}set(X,$){return this.clone({name:X,value:$,op:"s"})}delete(X,$){return this.clone({name:X,value:$,op:"d"})}maybeSetNormalizedName(X,$){this.normalizedNames.has($)||this.normalizedNames.set($,X)}init(){this.lazyInit&&(this.lazyInit instanceof Y?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(X=>this.applyUpdate(X)),this.lazyUpdate=null))}copyFrom(X){X.init(),Array.from(X.headers.keys()).forEach($=>{this.headers.set($,X.headers.get($)),this.normalizedNames.set($,X.normalizedNames.get($))})}clone(X){const $=new Y;return $.lazyInit=this.lazyInit&&this.lazyInit instanceof Y?this.lazyInit:this,$.lazyUpdate=(this.lazyUpdate||[]).concat([X]),$}applyUpdate(X){const $=X.name.toLowerCase();switch(X.op){case"a":case"s":let de=X.value;if("string"==typeof de&&(de=[de]),0===de.length)return;this.maybeSetNormalizedName(X.name,$);const De=("a"===X.op?this.headers.get($):void 0)||[];De.push(...de),this.headers.set($,De);break;case"d":const tt=X.value;if(tt){let ct=this.headers.get($);if(!ct)return;ct=ct.filter(ze=>-1===tt.indexOf(ze)),0===ct.length?(this.headers.delete($),this.normalizedNames.delete($)):this.headers.set($,ct)}else this.headers.delete($),this.normalizedNames.delete($)}}forEach(X){this.init(),Array.from(this.normalizedNames.keys()).forEach($=>X(this.normalizedNames.get($),this.headers.get($)))}}class re{encodeKey(X){return he(X)}encodeValue(X){return he(X)}decodeKey(X){return decodeURIComponent(X)}decodeValue(X){return decodeURIComponent(X)}}const te=/%(\d[a-f0-9])/gi,ae={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function he(ye){return encodeURIComponent(ye).replace(te,(X,$)=>ae[$]??X)}function fe(ye){return`${ye}`}class _e{constructor(X={}){if(this.updates=null,this.cloneFrom=null,this.encoder=X.encoder||new re,X.fromString){if(X.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function oe(ye,X){const $=new Map;return ye.length>0&&ye.replace(/^\?/,"").split("&").forEach(De=>{const tt=De.indexOf("="),[ct,ze]=-1==tt?[X.decodeKey(De),""]:[X.decodeKey(De.slice(0,tt)),X.decodeValue(De.slice(tt+1))],Xe=$.get(ct)||[];Xe.push(ze),$.set(ct,Xe)}),$}(X.fromString,this.encoder)}else X.fromObject?(this.map=new Map,Object.keys(X.fromObject).forEach($=>{const de=X.fromObject[$],De=Array.isArray(de)?de.map(fe):[fe(de)];this.map.set($,De)})):this.map=null}has(X){return this.init(),this.map.has(X)}get(X){this.init();const $=this.map.get(X);return $?$[0]:null}getAll(X){return this.init(),this.map.get(X)||null}keys(){return this.init(),Array.from(this.map.keys())}append(X,$){return this.clone({param:X,value:$,op:"a"})}appendAll(X){const $=[];return Object.keys(X).forEach(de=>{const De=X[de];Array.isArray(De)?De.forEach(tt=>{$.push({param:de,value:tt,op:"a"})}):$.push({param:de,value:De,op:"a"})}),this.clone($)}set(X,$){return this.clone({param:X,value:$,op:"s"})}delete(X,$){return this.clone({param:X,value:$,op:"d"})}toString(){return this.init(),this.keys().map(X=>{const $=this.encoder.encodeKey(X);return this.map.get(X).map(de=>$+"="+this.encoder.encodeValue(de)).join("&")}).filter(X=>""!==X).join("&")}clone(X){const $=new _e({encoder:this.encoder});return $.cloneFrom=this.cloneFrom||this,$.updates=(this.updates||[]).concat(X),$}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(X=>this.map.set(X,this.cloneFrom.map.get(X))),this.updates.forEach(X=>{switch(X.op){case"a":case"s":const $=("a"===X.op?this.map.get(X.param):void 0)||[];$.push(fe(X.value)),this.map.set(X.param,$);break;case"d":if(void 0===X.value){this.map.delete(X.param);break}{let de=this.map.get(X.param)||[];const De=de.indexOf(fe(X.value));-1!==De&&de.splice(De,1),de.length>0?this.map.set(X.param,de):this.map.delete(X.param)}}}),this.cloneFrom=this.updates=null)}}class Fe{constructor(){this.map=new Map}set(X,$){return this.map.set(X,$),this}get(X){return this.map.has(X)||this.map.set(X,X.defaultValue()),this.map.get(X)}delete(X){return this.map.delete(X),this}has(X){return this.map.has(X)}keys(){return this.map.keys()}}function Ce(ye){return typeof ArrayBuffer<"u"&&ye instanceof ArrayBuffer}function xe(ye){return typeof Blob<"u"&&ye instanceof Blob}function Je(ye){return typeof FormData<"u"&&ye instanceof FormData}class Re{constructor(X,$,de,De){let tt;if(this.url=$,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=X.toUpperCase(),function Ae(ye){switch(ye){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||De?(this.body=void 0!==de?de:null,tt=De):tt=de,tt&&(this.reportProgress=!!tt.reportProgress,this.withCredentials=!!tt.withCredentials,tt.responseType&&(this.responseType=tt.responseType),tt.headers&&(this.headers=tt.headers),tt.context&&(this.context=tt.context),tt.params&&(this.params=tt.params)),this.headers||(this.headers=new Y),this.context||(this.context=new Fe),this.params){const ct=this.params.toString();if(0===ct.length)this.urlWithParams=$;else{const ze=$.indexOf("?");this.urlWithParams=$+(-1===ze?"?":ze<$.length-1?"&":"")+ct}}else this.params=new _e,this.urlWithParams=$}serializeBody(){return null===this.body?null:Ce(this.body)||xe(this.body)||Je(this.body)||function Pe(ye){return typeof URLSearchParams<"u"&&ye instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof _e?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Je(this.body)?null:xe(this.body)?this.body.type||null:Ce(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof _e?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(X={}){const $=X.method||this.method,de=X.url||this.url,De=X.responseType||this.responseType,tt=void 0!==X.body?X.body:this.body,ct=void 0!==X.withCredentials?X.withCredentials:this.withCredentials,ze=void 0!==X.reportProgress?X.reportProgress:this.reportProgress;let Xe=X.headers||this.headers,ii=X.params||this.params;const Ct=X.context??this.context;return void 0!==X.setHeaders&&(Xe=Object.keys(X.setHeaders).reduce((an,it)=>an.set(it,X.setHeaders[it]),Xe)),X.setParams&&(ii=Object.keys(X.setParams).reduce((an,it)=>an.set(it,X.setParams[it]),ii)),new Re($,de,tt,{params:ii,headers:Xe,context:Ct,reportProgress:ze,responseType:De,withCredentials:ct})}}var He=(()=>((He=He||{})[He.Sent=0]="Sent",He[He.UploadProgress=1]="UploadProgress",He[He.ResponseHeader=2]="ResponseHeader",He[He.DownloadProgress=3]="DownloadProgress",He[He.Response=4]="Response",He[He.User=5]="User",He))();class le{constructor(X,$=200,de="OK"){this.headers=X.headers||new Y,this.status=void 0!==X.status?X.status:$,this.statusText=X.statusText||de,this.url=X.url||null,this.ok=this.status>=200&&this.status<300}}class ce extends le{constructor(X={}){super(X),this.type=He.ResponseHeader}clone(X={}){return new ce({headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class ge extends le{constructor(X={}){super(X),this.type=He.Response,this.body=void 0!==X.body?X.body:null}clone(X={}){return new ge({body:void 0!==X.body?X.body:this.body,headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class pe extends le{constructor(X){super(X,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${X.url||"(unknown url)"}`:`Http failure response for ${X.url||"(unknown url)"}: ${X.status} ${X.statusText}`,this.error=X.error||null}}function Ve(ye,X){return{body:X,headers:ye.headers,context:ye.context,observe:ye.observe,params:ye.params,reportProgress:ye.reportProgress,responseType:ye.responseType,withCredentials:ye.withCredentials}}let Ie=(()=>{class ye{constructor($){this.handler=$}request($,de,De={}){let tt;if($ instanceof Re)tt=$;else{let Xe,ii;Xe=De.headers instanceof Y?De.headers:new Y(De.headers),De.params&&(ii=De.params instanceof _e?De.params:new _e({fromObject:De.params})),tt=new Re($,de,void 0!==De.body?De.body:null,{headers:Xe,context:De.context,params:ii,reportProgress:De.reportProgress,responseType:De.responseType||"json",withCredentials:De.withCredentials})}const ct=(0,L.of)(tt).pipe((0,V.b)(Xe=>this.handler.handle(Xe)));if($ instanceof Re||"events"===De.observe)return ct;const ze=ct.pipe((0,q.h)(Xe=>Xe instanceof ge));switch(De.observe||"body"){case"body":switch(tt.responseType){case"arraybuffer":return ze.pipe((0,Q.U)(Xe=>{if(null!==Xe.body&&!(Xe.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Xe.body}));case"blob":return ze.pipe((0,Q.U)(Xe=>{if(null!==Xe.body&&!(Xe.body instanceof Blob))throw new Error("Response is not a Blob.");return Xe.body}));case"text":return ze.pipe((0,Q.U)(Xe=>{if(null!==Xe.body&&"string"!=typeof Xe.body)throw new Error("Response is not a string.");return Xe.body}));default:return ze.pipe((0,Q.U)(Xe=>Xe.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${De.observe}}`)}}delete($,de={}){return this.request("DELETE",$,de)}get($,de={}){return this.request("GET",$,de)}head($,de={}){return this.request("HEAD",$,de)}jsonp($,de){return this.request("JSONP",$,{params:(new _e).append(de,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options($,de={}){return this.request("OPTIONS",$,de)}patch($,de,De={}){return this.request("PATCH",$,Ve(De,de))}post($,de,De={}){return this.request("POST",$,Ve(De,de))}put($,de,De={}){return this.request("PUT",$,Ve(De,de))}}return ye.\u0275fac=function($){return new($||ye)(_.LFG(ee))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class lt{constructor(X,$){this.next=X,this.interceptor=$}handle(X){return this.interceptor.intercept(X,this.next)}}const At=new _.OlP("HTTP_INTERCEPTORS");let Ht=(()=>{class ye{intercept($,de){return de.handle($)}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const co=/^\)\]\}',?\n/;let uo=(()=>{class ye{constructor($){this.xhrFactory=$}handle($){if("JSONP"===$.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new F.y(de=>{const De=this.xhrFactory.build();if(De.open($.method,$.urlWithParams),$.withCredentials&&(De.withCredentials=!0),$.headers.forEach((Tt,Bt)=>De.setRequestHeader(Tt,Bt.join(","))),$.headers.has("Accept")||De.setRequestHeader("Accept","application/json, text/plain, */*"),!$.headers.has("Content-Type")){const Tt=$.detectContentTypeHeader();null!==Tt&&De.setRequestHeader("Content-Type",Tt)}if($.responseType){const Tt=$.responseType.toLowerCase();De.responseType="json"!==Tt?Tt:"text"}const tt=$.serializeBody();let ct=null;const ze=()=>{if(null!==ct)return ct;const Tt=De.statusText||"OK",Bt=new Y(De.getAllResponseHeaders()),hn=function Kd(ye){return"responseURL"in ye&&ye.responseURL?ye.responseURL:/^X-Request-URL:/m.test(ye.getAllResponseHeaders())?ye.getResponseHeader("X-Request-URL"):null}(De)||$.url;return ct=new ce({headers:Bt,status:De.status,statusText:Tt,url:hn}),ct},Xe=()=>{let{headers:Tt,status:Bt,statusText:hn,url:gr}=ze(),_i=null;204!==Bt&&(_i=typeof De.response>"u"?De.responseText:De.response),0===Bt&&(Bt=_i?200:0);let Or=Bt>=200&&Bt<300;if("json"===$.responseType&&"string"==typeof _i){const Lr=_i;_i=_i.replace(co,"");try{_i=""!==_i?JSON.parse(_i):null}catch(Ca){_i=Lr,Or&&(Or=!1,_i={error:Ca,text:_i})}}Or?(de.next(new ge({body:_i,headers:Tt,status:Bt,statusText:hn,url:gr||void 0})),de.complete()):de.error(new pe({error:_i,headers:Tt,status:Bt,statusText:hn,url:gr||void 0}))},ii=Tt=>{const{url:Bt}=ze(),hn=new pe({error:Tt,status:De.status||0,statusText:De.statusText||"Unknown Error",url:Bt||void 0});de.error(hn)};let Ct=!1;const an=Tt=>{Ct||(de.next(ze()),Ct=!0);let Bt={type:He.DownloadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(Bt.total=Tt.total),"text"===$.responseType&&!!De.responseText&&(Bt.partialText=De.responseText),de.next(Bt)},it=Tt=>{let Bt={type:He.UploadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(Bt.total=Tt.total),de.next(Bt)};return De.addEventListener("load",Xe),De.addEventListener("error",ii),De.addEventListener("timeout",ii),De.addEventListener("abort",ii),$.reportProgress&&(De.addEventListener("progress",an),null!==tt&&De.upload&&De.upload.addEventListener("progress",it)),De.send(tt),de.next({type:He.Sent}),()=>{De.removeEventListener("error",ii),De.removeEventListener("abort",ii),De.removeEventListener("load",Xe),De.removeEventListener("timeout",ii),$.reportProgress&&(De.removeEventListener("progress",an),null!==tt&&De.upload&&De.upload.removeEventListener("progress",it)),De.readyState!==De.DONE&&De.abort()}})}}return ye.\u0275fac=function($){return new($||ye)(_.LFG(M.JF))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Nn=new _.OlP("XSRF_COOKIE_NAME"),qn=new _.OlP("XSRF_HEADER_NAME");class ga{}let ho=(()=>{class ye{constructor($,de,De){this.doc=$,this.platform=de,this.cookieName=De,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const $=this.doc.cookie||"";return $!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,M.Mx)($,this.cookieName),this.lastCookieString=$),this.lastToken}}return ye.\u0275fac=function($){return new($||ye)(_.LFG(M.K0),_.LFG(_.Lbi),_.LFG(Nn))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Ke=(()=>{class ye{constructor($,de){this.tokenService=$,this.headerName=de}intercept($,de){const De=$.url.toLowerCase();if("GET"===$.method||"HEAD"===$.method||De.startsWith("http://")||De.startsWith("https://"))return de.handle($);const tt=this.tokenService.getToken();return null!==tt&&!$.headers.has(this.headerName)&&($=$.clone({headers:$.headers.set(this.headerName,tt)})),de.handle($)}}return ye.\u0275fac=function($){return new($||ye)(_.LFG(ga),_.LFG(qn))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),hi=(()=>{class ye{constructor($,de){this.backend=$,this.injector=de,this.chain=null}handle($){if(null===this.chain){const de=this.injector.get(At,[]);this.chain=de.reduceRight((De,tt)=>new lt(De,tt),this.backend)}return this.chain.handle($)}}return ye.\u0275fac=function($){return new($||ye)(_.LFG(W),_.LFG(_.zs3))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),ba=(()=>{class ye{static disable(){return{ngModule:ye,providers:[{provide:Ke,useClass:Ht}]}}static withOptions($={}){return{ngModule:ye,providers:[$.cookieName?{provide:Nn,useValue:$.cookieName}:[],$.headerName?{provide:qn,useValue:$.headerName}:[]]}}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=_.oAB({type:ye}),ye.\u0275inj=_.cJS({providers:[Ke,{provide:At,useExisting:Ke,multi:!0},{provide:ga,useClass:ho},{provide:Nn,useValue:"XSRF-TOKEN"},{provide:qn,useValue:"X-XSRF-TOKEN"}]}),ye})(),Zd=(()=>{class ye{}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=_.oAB({type:ye}),ye.\u0275inj=_.cJS({providers:[Ie,{provide:ee,useClass:hi},uo,{provide:W,useExisting:uo}],imports:[ba.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ye})()},4650:(N,z,E)=>{"use strict";E.d(z,{$8M:()=>mf,$Z:()=>qw,AFp:()=>ms,ALo:()=>bd,AaK:()=>ee,B6R:()=>gr,BQk:()=>fl,CHM:()=>En,CRH:()=>c_,CZH:()=>Sd,CqO:()=>rd,D6c:()=>jA,EJc:()=>M_,EiD:()=>Of,EpF:()=>jh,F$t:()=>vy,F4k:()=>cg,FYo:()=>ZC,FiY:()=>Va,G48:()=>Bd,Gf:()=>ap,GfV:()=>XC,GkF:()=>Lh,Gpc:()=>G,Gre:()=>Zy,Hsn:()=>Ay,Ikx:()=>Wh,JOm:()=>Dn,JVY:()=>Pu,KtG:()=>Ji,L6k:()=>mi,LAX:()=>Lo,LFG:()=>Kt,LSH:()=>jf,Lbi:()=>S_,Lck:()=>HT,MAs:()=>by,MMx:()=>qg,NdJ:()=>ml,O4$:()=>Yn,OlP:()=>Pt,Oqu:()=>bg,PXZ:()=>AA,Q6J:()=>Bh,QGY:()=>Fh,QP$:()=>Ml,QbO:()=>T_,Qsj:()=>Mx,R0b:()=>kt,RDi:()=>MC,Rgc:()=>wd,SBq:()=>Hc,Sil:()=>fp,Suo:()=>l_,TTD:()=>mo,TgZ:()=>id,Tol:()=>mg,Udp:()=>Nh,VKq:()=>ei,WFA:()=>Hr,XFs:()=>Ke,Xpm:()=>hn,Xts:()=>Ff,Y36:()=>rl,YKP:()=>dr,YNc:()=>_y,Yjl:()=>Ql,Yz7:()=>St,ZZ4:()=>Mp,_Bn:()=>Ug,_UZ:()=>lg,_Vd:()=>Dc,_c5:()=>K_,_uU:()=>Gy,aQg:()=>Y_,c2e:()=>Ed,cJS:()=>li,cg1:()=>Ka,d8E:()=>Ya,dDg:()=>_A,dqk:()=>de,eBb:()=>ax,eFA:()=>to,ekj:()=>qh,eoX:()=>bA,f3M:()=>Au,g9A:()=>hp,h0i:()=>xl,hGG:()=>Dp,hij:()=>Qa,iGM:()=>s_,ifc:()=>$,ip1:()=>Br,kL8:()=>ov,kcU:()=>hu,lG2:()=>Xd,lcZ:()=>Xg,lnq:()=>Cg,lqb:()=>Uo,lri:()=>O_,mCW:()=>xr,n5z:()=>pf,n_E:()=>tp,oAB:()=>Lr,oxw:()=>ug,pB0:()=>Rf,q3G:()=>ri,qLn:()=>Rc,qOj:()=>Rh,qZA:()=>nd,qzn:()=>Oo,rWj:()=>Pd,s9C:()=>hg,sBO:()=>Od,sIi:()=>In,s_b:()=>np,soG:()=>Il,tb:()=>pp,tp0:()=>Gs,uIk:()=>Ph,vHH:()=>ae,vpe:()=>kr,wAp:()=>Ze,xp6:()=>Iw,ynx:()=>Oh,z2F:()=>bs,z3N:()=>Wr,zSh:()=>qf,zs3:()=>za});var M=E(7579),_=E(727),L=E(9751),F=E(6451),V=E(3099);function q(g){for(let b in g)if(g[b]===q)return b;throw Error("Could not find renamed property on target object.")}function Q(g,b){for(const C in b)b.hasOwnProperty(C)&&!g.hasOwnProperty(C)&&(g[C]=b[C])}function ee(g){if("string"==typeof g)return g;if(Array.isArray(g))return"["+g.map(ee).join(", ")+"]";if(null==g)return""+g;if(g.overriddenName)return`${g.overriddenName}`;if(g.name)return`${g.name}`;const b=g.toString();if(null==b)return""+b;const C=b.indexOf("\n");return-1===C?b:b.substring(0,C)}function W(g,b){return null==g||""===g?null===b?"":b:null==b||""===b?g:g+" "+b}const Y=q({__forward_ref__:q});function G(g){return g.__forward_ref__=G,g.toString=function(){return ee(this())},g}function re(g){return oe(g)?g():g}function oe(g){return"function"==typeof g&&g.hasOwnProperty(Y)&&g.__forward_ref__===G}class ae extends Error{constructor(b,C){super(function he(g,b){return`NG0${Math.abs(g)}${b?": "+b.trim():""}`}(b,C)),this.code=b}}function fe(g){return"string"==typeof g?g:null==g?"":String(g)}function Ce(g,b){throw new ae(-201,!1)}function Ht(g,b){null==g&&function Ue(g,b,C,y){throw new Error(`ASSERTION ERROR: ${g}`+(null==y?"":` [Expected=> ${C} ${y} ${b} <=Actual]`))}(b,g,null,"!=")}function St(g){return{token:g.token,providedIn:g.providedIn||null,factory:g.factory,value:void 0}}function li(g){return{providers:g.providers||[],imports:g.imports||[]}}function Vr(g){return $l(g,Nn)||$l(g,ga)}function $l(g,b){return g.hasOwnProperty(b)?g[b]:null}function uo(g){return g&&(g.hasOwnProperty(qn)||g.hasOwnProperty(ho))?g[qn]:null}const Nn=q({\u0275prov:q}),qn=q({\u0275inj:q}),ga=q({ngInjectableDef:q}),ho=q({ngInjectorDef:q});var Ke=(()=>((Ke=Ke||{})[Ke.Default=0]="Default",Ke[Ke.Host=1]="Host",Ke[Ke.Self=2]="Self",Ke[Ke.SkipSelf=4]="SkipSelf",Ke[Ke.Optional=8]="Optional",Ke))();let hi;function Pi(g){const b=hi;return hi=g,b}function ba(g,b,C){const y=Vr(g);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:C&Ke.Optional?null:void 0!==b?b:void Ce(ee(g))}function xn(g){return{toString:g}.toString()}var xi=(()=>((xi=xi||{})[xi.OnPush=0]="OnPush",xi[xi.Default=1]="Default",xi))(),$=(()=>{return(g=$||($={}))[g.Emulated=0]="Emulated",g[g.None=2]="None",g[g.ShadowDom=3]="ShadowDom",$;var g})();const de=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ct={},ze=[],Xe=q({\u0275cmp:q}),ii=q({\u0275dir:q}),Ct=q({\u0275pipe:q}),an=q({\u0275mod:q}),it=q({\u0275fac:q}),Tt=q({__NG_ELEMENT_ID__:q});let Bt=0;function hn(g){return xn(()=>{const C=!0===g.standalone,y={},x={type:g.type,providersResolver:null,decls:g.decls,vars:g.vars,factory:null,template:g.template||null,consts:g.consts||null,ngContentSelectors:g.ngContentSelectors,hostBindings:g.hostBindings||null,hostVars:g.hostVars||0,hostAttrs:g.hostAttrs||null,contentQueries:g.contentQueries||null,declaredInputs:y,inputs:null,outputs:null,exportAs:g.exportAs||null,onPush:g.changeDetection===xi.OnPush,directiveDefs:null,pipeDefs:null,standalone:C,dependencies:C&&g.dependencies||null,getStandaloneInjector:null,selectors:g.selectors||ze,viewQuery:g.viewQuery||null,features:g.features||null,data:g.data||{},encapsulation:g.encapsulation||$.Emulated,id:"c"+Bt++,styles:g.styles||ze,_:null,setInput:null,schemas:g.schemas||null,tView:null},S=g.dependencies,T=g.features;return x.inputs=po(g.inputs,y),x.outputs=po(g.outputs),T&&T.forEach(D=>D(x)),x.directiveDefs=S?()=>("function"==typeof S?S():S).map(_i).filter(Or):null,x.pipeDefs=S?()=>("function"==typeof S?S():S).map(ki).filter(Or):null,x})}function gr(g,b,C){const y=g.\u0275cmp;y.directiveDefs=()=>("function"==typeof b?b():b).map(_i),y.pipeDefs=()=>("function"==typeof C?C():C).map(ki)}function _i(g){return xt(g)||Ii(g)}function Or(g){return null!==g}function Lr(g){return xn(()=>({type:g.type,bootstrap:g.bootstrap||ze,declarations:g.declarations||ze,imports:g.imports||ze,exports:g.exports||ze,transitiveCompileScopes:null,schemas:g.schemas||null,id:g.id||null}))}function po(g,b){if(null==g)return ct;const C={};for(const y in g)if(g.hasOwnProperty(y)){let x=g[y],S=x;Array.isArray(x)&&(S=x[1],x=x[0]),C[x]=y,b&&(b[x]=S)}return C}const Xd=hn;function Ql(g){return{type:g.type,name:g.name,factory:null,pure:!1!==g.pure,standalone:!0===g.standalone,onDestroy:g.type.prototype.ngOnDestroy||null}}function xt(g){return g[Xe]||null}function Ii(g){return g[ii]||null}function ki(g){return g[Ct]||null}function Yi(g,b){const C=g[an]||null;if(!C&&!0===b)throw new Error(`Type ${ee(g)} does not have '\u0275mod' property.`);return C}function Et(g){return Array.isArray(g)&&"object"==typeof g[1]}function sn(g){return Array.isArray(g)&&!0===g[1]}function va(g){return 0!=(8&g.flags)}function Gn(g){return 2==(2&g.flags)}function br(g){return 1==(1&g.flags)}function Oi(g){return null!==g.template}function Yl(g){return 0!=(256&g[2])}function Cr(g,b){return g.hasOwnProperty(it)?g[it]:null}class Kl{constructor(b,C,y){this.previousValue=b,this.currentValue=C,this.firstChange=y}isFirstChange(){return this.firstChange}}function mo(){return Es}function Es(g){return g.type.prototype.ngOnChanges&&(g.setInput=go),Zl}function Zl(){const g=dt(this),b=g?.current;if(b){const C=g.previous;if(C===ct)g.previous=b;else for(let y in b)C[y]=b[y];g.current=null,this.ngOnChanges(b)}}function go(g,b,C,y){const x=dt(g)||function Sa(g,b){return g[fn]=b}(g,{previous:ct,current:null}),S=x.current||(x.current={}),T=x.previous,D=this.declaredInputs[C],H=T[D];S[D]=new Kl(H&&H.currentValue,b,T===ct),g[y]=b}mo.ngInherit=!0;const fn="__ngSimpleChanges__";function dt(g){return g[fn]||null}function Jt(g){for(;Array.isArray(g);)g=g[0];return g}function jr(g,b){return Jt(b[g])}function Ti(g,b){return Jt(b[g.index])}function Co(g,b){return g.data[b]}function Ta(g,b){return g[b]}function zi(g,b){const C=b[g];return Et(C)?C:C[0]}function P(g){return 4==(4&g[2])}function O(g){return 64==(64&g[2])}function j(g,b){return null==b?null:g[b]}function ne(g){g[18]=0}function me(g,b){g[5]+=b;let C=g,y=g[3];for(;null!==y&&(1===b&&1===C[5]||-1===b&&0===C[5]);)y[5]+=b,C=y,y=y[3]}const ue={lFrame:Zp(null),bindingsEnabled:!0};function yi(){return ue.bindingsEnabled}function we(){return ue.lFrame.lView}function ot(){return ue.lFrame.tView}function En(g){return ue.lFrame.contextLView=g,g[8]}function Ji(g){return ue.lFrame.contextLView=null,g}function Yt(){let g=Ea();for(;null!==g&&64===g.type;)g=g.parent;return g}function Ea(){return ue.lFrame.currentTNode}function Gi(g,b){const C=ue.lFrame;C.currentTNode=g,C.isParent=b}function ou(){return ue.lFrame.isParent}function su(){ue.lFrame.isParent=!1}function Wi(){const g=ue.lFrame;let b=g.bindingRootIndex;return-1===b&&(b=g.bindingRootIndex=g.tView.bindingStartIndex),b}function Ma(){return ue.lFrame.bindingIndex++}function $n(g){const b=ue.lFrame,C=b.bindingIndex;return b.bindingIndex=b.bindingIndex+g,C}function Ur(g,b){const C=ue.lFrame;C.bindingIndex=C.bindingRootIndex=g,ic(b)}function ic(g){ue.lFrame.currentDirectiveIndex=g}function lu(g){const b=ue.lFrame.currentDirectiveIndex;return-1===b?null:g[b]}function Yp(){return ue.lFrame.currentQueryIndex}function cu(g){ue.lFrame.currentQueryIndex=g}function Qb(g){const b=g[1];return 2===b.type?b.declTNode:1===b.type?g[6]:null}function Jp(g,b,C){if(C&Ke.SkipSelf){let x=b,S=g;for(;!(x=x.parent,null!==x||C&Ke.Host||(x=Qb(S),null===x||(S=S[15],10&x.type))););if(null===x)return!1;b=x,g=S}const y=ue.lFrame=Kp();return y.currentTNode=b,y.lView=g,!0}function du(g){const b=Kp(),C=g[1];ue.lFrame=b,b.currentTNode=C.firstChild,b.lView=g,b.tView=C,b.contextLView=g,b.bindingIndex=C.bindingStartIndex,b.inI18n=!1}function Kp(){const g=ue.lFrame,b=null===g?null:g.child;return null===b?Zp(g):b}function Zp(g){const b={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:g,child:null,inI18n:!1};return null!==g&&(g.child=b),b}function Xp(){const g=ue.lFrame;return ue.lFrame=g.parent,g.currentTNode=null,g.lView=null,g}const ef=Xp;function uu(){const g=Xp();g.isParent=!0,g.tView=null,g.selectedIndex=-1,g.contextLView=null,g.elementDepthCount=0,g.currentDirectiveIndex=-1,g.currentNamespace=null,g.bindingRootIndex=-1,g.bindingIndex=-1,g.currentQueryIndex=0}function Li(){return ue.lFrame.selectedIndex}function Qn(g){ue.lFrame.selectedIndex=g}function zt(){const g=ue.lFrame;return Co(g.tView,g.selectedIndex)}function Yn(){ue.lFrame.currentNamespace="svg"}function hu(){!function nf(){ue.lFrame.currentNamespace=null}()}function Is(g,b){for(let C=b.directiveStart,y=b.directiveEnd;C=y)break}else b[H]<0&&(g[18]+=65536),(D>11>16&&(3&g[2])===b){g[2]+=2048;try{S.call(D)}finally{}}}else try{S.call(D)}finally{}}class Ha{constructor(b,C,y){this.factory=b,this.resolving=!1,this.canSeeViewProviders=C,this.injectImpl=y}}function Vs(g,b,C){let y=0;for(;yb){T=S-1;break}}}for(;S>16}(g),y=b;for(;C>0;)y=y[15],C--;return y}let df=!0;function mu(g){const b=df;return df=g,b}let tC=0;const Kn={};function Ia(g,b){const C=lc(g,b);if(-1!==C)return C;const y=b[1];y.firstCreatePass&&(g.injectorIndex=b.length,Ki(y.data,g),Ki(b,null),Ki(y.blueprint,null));const x=Os(g,b),S=g.injectorIndex;if(lf(x)){const T=vo(x),D=Pa(x,b),H=D[1].data;for(let k=0;k<8;k++)b[S+k]=D[T+k]|H[T+k]}return b[S+8]=x,S}function Ki(g,b){g.push(0,0,0,0,0,0,0,0,b)}function lc(g,b){return-1===g.injectorIndex||g.parent&&g.parent.injectorIndex===g.injectorIndex||null===b[g.injectorIndex+8]?-1:g.injectorIndex}function Os(g,b){if(g.parent&&-1!==g.parent.injectorIndex)return g.parent.injectorIndex;let C=0,y=null,x=b;for(;null!==x;){if(y=ff(x),null===y)return-1;if(C++,x=x[15],-1!==y.injectorIndex)return y.injectorIndex|C<<16}return-1}function cc(g,b,C){!function iC(g,b,C){let y;"string"==typeof C?y=C.charCodeAt(0)||0:C.hasOwnProperty(Tt)&&(y=C[Tt]),null==y&&(y=C[Tt]=tC++);const x=255&y;b.data[g+(x>>5)]|=1<=0?255&b:aC:b}(C);if("function"==typeof S){if(!Jp(b,g,y))return y&Ke.Host?gu(x,0,y):Ls(b,C,y,x);try{const T=S(y);if(null!=T||y&Ke.Optional)return T;Ce()}finally{ef()}}else if("number"==typeof S){let T=null,D=lc(g,b),H=-1,k=y&Ke.Host?b[16][6]:null;for((-1===D||y&Ke.SkipSelf)&&(H=-1===D?Os(g,b):b[D+8],-1!==H&&xo(y,!1)?(T=b[1],D=vo(H),b=Pa(H,b)):D=-1);-1!==D;){const B=b[1];if(Ao(S,D,B.data)){const U=dc(D,b,C,T,y,k);if(U!==Kn)return U}H=b[D+8],-1!==H&&xo(y,b[1].data[D+8]===k)&&Ao(S,D,b)?(T=B,D=vo(H),b=Pa(H,b)):D=-1}}return x}function dc(g,b,C,y,x,S){const T=b[1],D=T.data[g+8],B=qr(D,T,C,null==y?Gn(D)&&df:y!=T&&0!=(3&D.type),x&Ke.Host&&S===D);return null!==B?js(b,T,B,D):Kn}function qr(g,b,C,y,x){const S=g.providerIndexes,T=b.data,D=1048575&S,H=g.directiveStart,B=S>>20,ie=x?D+B:g.directiveEnd;for(let se=y?D:D+B;se=H&&be.type===C)return se}if(x){const se=T[H];if(se&&Oi(se)&&se.type===C)return H}return null}function js(g,b,C,y){let x=g[C];const S=b.data;if(function Kb(g){return g instanceof Ha}(x)){const T=x;T.resolving&&function Le(g,b){const C=b?`. Dependency path: ${b.join(" > ")} > ${g}`:"";throw new ae(-200,`Circular dependency in DI detected for ${g}${C}`)}(function _e(g){return"function"==typeof g?g.name||g.toString():"object"==typeof g&&null!=g&&"function"==typeof g.type?g.type.name||g.type.toString():fe(g)}(S[C]));const D=mu(T.canSeeViewProviders);T.resolving=!0;const H=T.injectImpl?Pi(T.injectImpl):null;Jp(g,y,Ke.Default);try{x=g[C]=T.factory(void 0,S,g,y),b.firstCreatePass&&C>=y.directiveStart&&function Nr(g,b,C){const{ngOnChanges:y,ngOnInit:x,ngDoCheck:S}=b.type.prototype;if(y){const T=Es(b);(C.preOrderHooks||(C.preOrderHooks=[])).push(g,T),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(g,T)}x&&(C.preOrderHooks||(C.preOrderHooks=[])).push(0-g,x),S&&((C.preOrderHooks||(C.preOrderHooks=[])).push(g,S),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(g,S))}(C,S[C],b)}finally{null!==H&&Pi(H),mu(D),T.resolving=!1,ef()}}return x}function Ao(g,b,C){return!!(C[b+(g>>5)]&1<{const b=g.prototype.constructor,C=b[it]||_u(b),y=Object.prototype;let x=Object.getPrototypeOf(g.prototype).constructor;for(;x&&x!==y;){const S=x[it]||_u(x);if(S&&S!==C)return S;x=Object.getPrototypeOf(x)}return S=>new S})}function _u(g){return oe(g)?()=>{const b=_u(re(g));return b&&b()}:Cr(g)}function ff(g){const b=g[1],C=b.type;return 2===C?b.declTNode:1===C?g[6]:null}function mf(g){return function nC(g,b){if("class"===b)return g.classes;if("style"===b)return g.styles;const C=g.attrs;if(C){const y=C.length;let x=0;for(;x{const y=function bu(g){return function(...C){if(g){const y=g(...C);for(const x in y)this[x]=y[x]}}}(b);function x(...S){if(this instanceof x)return y.apply(this,S),this;const T=new x(...S);return D.annotation=T,D;function D(H,k,B){const U=H.hasOwnProperty(zr)?H[zr]:Object.defineProperty(H,zr,{value:[]})[zr];for(;U.length<=B;)U.push(null);return(U[B]=U[B]||[]).push(T),H}}return C&&(x.prototype=Object.create(C.prototype)),x.prototype.ngMetadataName=g,x.annotationCls=x,x})}class Pt{constructor(b,C){this._desc=b,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof C?this.__NG_ELEMENT_ID__=C:void 0!==C&&(this.\u0275prov=St({token:this,providedIn:C.providedIn||"root",factory:C.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Zi(g,b){void 0===b&&(b=g);for(let C=0;CArray.isArray(C)?Zn(C,b):b(C))}function Us(g,b,C){b>=g.length?g.push(C):g.splice(b,0,C)}function Ba(g,b){return b>=g.length-1?g.pop():g.splice(b,1)[0]}function Do(g,b){const C=[];for(let y=0;y=0?g[1|y]=C:(y=~y,function cC(g,b,C,y){let x=g.length;if(x==b)g.push(C,y);else if(1===x)g.push(y,g[0]),g[0]=C;else{for(x--,g.push(g[x-1],g[x]);x>b;)g[x]=g[x-2],x--;g[b]=C,g[b+1]=y}}(g,y,b,C)),y}function Ro(g,b){const C=Po(g,b);if(C>=0)return g[1|C]}function Po(g,b){return function wf(g,b,C){let y=0,x=g.length>>C;for(;x!==y;){const S=y+(x-y>>1),T=g[S<b?x=S:y=S+1}return~(x<g,createScript:g=>g,createScriptURL:g=>g})}catch{}return wc}()?.createHTML(g)||g}class Gr{constructor(b){this.changingThisBreaksApplicationSecurity=b}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class RC extends Gr{getTypeName(){return"HTML"}}class Ru extends Gr{getTypeName(){return"Style"}}class PC extends Gr{getTypeName(){return"Script"}}class IC extends Gr{getTypeName(){return"URL"}}class kC extends Gr{getTypeName(){return"ResourceURL"}}function Wr(g){return g instanceof Gr?g.changingThisBreaksApplicationSecurity:g}function Oo(g,b){const C=function $r(g){return g instanceof Gr&&g.getTypeName()||null}(g);if(null!=C&&C!==b){if("ResourceURL"===C&&"URL"===b)return!0;throw new Error(`Required a safe ${b}, got a ${C} (see https://g.co/ng/security#xss)`)}return C===b}function Pu(g){return new RC(g)}function mi(g){return new Ru(g)}function ax(g){return new PC(g)}function Lo(g){return new IC(g)}function Rf(g){return new kC(g)}class Ys{constructor(b){this.inertDocumentHelper=b}getInertBodyElement(b){b=""+b;try{const C=(new window.DOMParser).parseFromString(Vo(b),"text/html").body;return null===C?this.inertDocumentHelper.getInertBodyElement(b):(C.removeChild(C.firstChild),C)}catch{return null}}}class BC{constructor(b){if(this.defaultDoc=b,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const C=this.inertDocument.createElement("html");this.inertDocument.appendChild(C);const y=this.inertDocument.createElement("body");C.appendChild(y)}}getInertBodyElement(b){const C=this.inertDocument.createElement("template");if("content"in C)return C.innerHTML=Vo(b),C;const y=this.inertDocument.createElement("body");return y.innerHTML=Vo(b),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(b){const C=b.attributes;for(let x=C.length-1;0xr(b.trim())).join(", ")),this.buf.push(" ",T,'="',LC(H),'"')}var g;return this.buf.push(">"),!0}endElement(b){const C=b.nodeName.toLowerCase();kf.hasOwnProperty(C)&&!Ac.hasOwnProperty(C)&&(this.buf.push(""))}chars(b){this.buf.push(LC(b))}checkClobberedElement(b,C){if(C&&(b.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${b.outerHTML}`);return C}}const Vf=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,cx=/([^\#-~ |!])/g;function LC(g){return g.replace(/&/g,"&").replace(Vf,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(cx,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(//g,">")}let Tc;function Of(g,b){let C=null;try{Tc=Tc||function Iu(g){const b=new BC(g);return function Xn(){try{return!!(new window.DOMParser).parseFromString(Vo(""),"text/html")}catch{return!1}}()?new Ys(b):b}(g);let y=b?String(b):"";C=Tc.getInertBodyElement(y);let x=5,S=y;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,y=S,S=C.innerHTML,C=Tc.getInertBodyElement(y)}while(y!==S);return Vo((new Bf).sanitizeChildren(Bu(C)||C))}finally{if(C){const y=Bu(C)||C;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function Bu(g){return"content"in g&&function Lf(g){return g.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===g.nodeName}(g)?g.content:null}var ri=(()=>((ri=ri||{})[ri.NONE=0]="NONE",ri[ri.HTML=1]="HTML",ri[ri.STYLE=2]="STYLE",ri[ri.SCRIPT=3]="SCRIPT",ri[ri.URL=4]="URL",ri[ri.RESOURCE_URL=5]="RESOURCE_URL",ri))();function jf(g){const b=function Ec(){const g=we();return g&&g[12]}();return b?b.sanitize(ri.URL,g)||"":Oo(g,"URL")?Wr(g):xr(fe(g))}const Ff=new Pt("ENVIRONMENT_INITIALIZER"),NC=new Pt("INJECTOR",-1),Uf=new Pt("INJECTOR_DEF_TYPES");class qC{get(b,C=Io){if(C===Io){const y=new Error(`NullInjectorError: No provider for ${ee(b)}!`);throw y.name="NullInjectorError",y}return C}}function fx(...g){return{\u0275providers:zC(0,g)}}function zC(g,...b){const C=[],y=new Set;let x;return Zn(b,S=>{const T=S;Mc(T,C,[],y)&&(x||(x=[]),x.push(T))}),void 0!==x&&GC(x,C),C}function GC(g,b){for(let C=0;C{b.push(S)})}}function Mc(g,b,C,y){if(!(g=re(g)))return!1;let x=null,S=uo(g);const T=!S&&xt(g);if(S||T){if(T&&!T.standalone)return!1;x=g}else{const H=g.ngModule;if(S=uo(H),!S)return!1;x=H}const D=y.has(x);if(T){if(D)return!1;if(y.add(x),T.dependencies){const H="function"==typeof T.dependencies?T.dependencies():T.dependencies;for(const k of H)Mc(k,b,C,y)}}else{if(!S)return!1;{if(null!=S.imports&&!D){let k;y.add(x);try{Zn(S.imports,B=>{Mc(B,b,C,y)&&(k||(k=[]),k.push(B))})}finally{}void 0!==k&&GC(k,b)}if(!D){const k=Cr(x)||(()=>new x);b.push({provide:x,useFactory:k,deps:ze},{provide:Uf,useValue:x,multi:!0},{provide:Ff,useValue:()=>Kt(x),multi:!0})}const H=S.providers;null==H||D||Zn(H,B=>{b.push(B)})}}return x!==g&&void 0!==g.providers}const mx=q({provide:String,useValue:q});function Nf(g){return null!==g&&"object"==typeof g&&mx in g}function Fo(g){return"function"==typeof g}const qf=new Pt("Set Injector scope."),Ou={},_x={};let zf;function Lu(){return void 0===zf&&(zf=new qC),zf}class Uo{}class QC extends Uo{constructor(b,C,y,x){super(),this.parent=C,this.source=y,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Wf(b,T=>this.processProvider(T)),this.records.set(NC,Js(void 0,this)),x.has("environment")&&this.records.set(Uo,Js(void 0,this));const S=this.records.get(qf);null!=S&&"string"==typeof S.value&&this.scopes.add(S.value),this.injectorDefTypes=new Set(this.get(Uf.multi,ze,Ke.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();for(const b of this._onDestroyHooks)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(b){this._onDestroyHooks.push(b)}runInContext(b){this.assertNotDestroyed();const C=ko(this),y=Pi(void 0);try{return b()}finally{ko(C),Pi(y)}}get(b,C=Io,y=Ke.Default){this.assertNotDestroyed();const x=ko(this),S=Pi(void 0);try{if(!(y&Ke.SkipSelf)){let D=this.records.get(b);if(void 0===D){const H=function vx(g){return"function"==typeof g||"object"==typeof g&&g instanceof Pt}(b)&&Vr(b);D=H&&this.injectableDefInScope(H)?Js(Gf(b),Ou):null,this.records.set(b,D)}if(null!=D)return this.hydrate(b,D)}return(y&Ke.Self?Lu():this.parent).get(b,C=y&Ke.Optional&&C===Io?null:C)}catch(T){if("NullInjectorError"===T.name){if((T[fc]=T[fc]||[]).unshift(ee(b)),x)throw T;return function CC(g,b,C,y){const x=g[fc];throw b[vf]&&x.unshift(b[vf]),g.message=function Su(g,b,C,y=null){g=g&&"\n"===g.charAt(0)&&"\u0275"==g.charAt(1)?g.slice(2):g;let x=ee(b);if(Array.isArray(b))x=b.map(ee).join(" -> ");else if("object"==typeof b){let S=[];for(let T in b)if(b.hasOwnProperty(T)){let D=b[T];S.push(T+":"+("string"==typeof D?JSON.stringify(D):ee(D)))}x=`{${S.join(", ")}}`}return`${C}${y?"("+y+")":""}[${x}]: ${g.replace(gC,"\n ")}`}("\n"+g.message,x,C,y),g.ngTokenPath=x,g[fc]=null,g}(T,b,"R3InjectorError",this.source)}throw T}finally{Pi(S),ko(x)}}resolveInjectorInitializers(){const b=ko(this),C=Pi(void 0);try{const y=this.get(Ff.multi,ze,Ke.Self);for(const x of y)x()}finally{ko(b),Pi(C)}}toString(){const b=[],C=this.records;for(const y of C.keys())b.push(ee(y));return`R3Injector[${b.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ae(205,!1)}processProvider(b){let C=Fo(b=re(b))?b:re(b&&b.provide);const y=function Cx(g){return Nf(g)?Js(void 0,g.useValue):Js(YC(g),Ou)}(b);if(Fo(b)||!0!==b.multi)this.records.get(C);else{let x=this.records.get(C);x||(x=Js(void 0,Ou,!0),x.factory=()=>xu(x.multi),this.records.set(C,x)),C=b,x.multi.push(b)}this.records.set(C,y)}hydrate(b,C){return C.value===Ou&&(C.value=_x,C.value=C.factory()),"object"==typeof C.value&&C.value&&function yx(g){return null!==g&&"object"==typeof g&&"function"==typeof g.ngOnDestroy}(C.value)&&this._ngOnDestroyHooks.add(C.value),C.value}injectableDefInScope(b){if(!b.providedIn)return!1;const C=re(b.providedIn);return"string"==typeof C?"any"===C||this.scopes.has(C):this.injectorDefTypes.has(C)}}function Gf(g){const b=Vr(g),C=null!==b?b.factory:Cr(g);if(null!==C)return C;if(g instanceof Pt)throw new ae(204,!1);if(g instanceof Function)return function bx(g){const b=g.length;if(b>0)throw Do(b,"?"),new ae(204,!1);const C=function co(g){const b=g&&(g[Nn]||g[ga]);if(b){const C=function Kd(g){if(g.hasOwnProperty("name"))return g.name;const b=(""+g).match(/^function\s*([^\s(]+)/);return null===b?"":b[1]}(g);return console.warn(`DEPRECATED: DI is instantiating a token "${C}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${C}" class.`),b}return null}(g);return null!==C?()=>C.factory(g):()=>new g}(g);throw new ae(204,!1)}function YC(g,b,C){let y;if(Fo(g)){const x=re(g);return Cr(x)||Gf(x)}if(Nf(g))y=()=>re(g.useValue);else if(function $C(g){return!(!g||!g.useFactory)}(g))y=()=>g.useFactory(...xu(g.deps||[]));else if(function WC(g){return!(!g||!g.useExisting)}(g))y=()=>Kt(re(g.useExisting));else{const x=re(g&&(g.useClass||g.provide));if(!function wx(g){return!!g.deps}(g))return Cr(x)||Gf(x);y=()=>new x(...xu(g.deps))}return y}function Js(g,b,C=!1){return{factory:g,value:b,multi:C?[]:void 0}}function Ax(g){return!!g.\u0275providers}function Wf(g,b){for(const C of g)Array.isArray(C)?Wf(C,b):Ax(C)?Wf(C.\u0275providers,b):b(C)}class $f{}class Sx{resolveComponentFactory(b){throw function xx(g){const b=Error(`No component factory found for ${ee(g)}. Did you add it to @NgModule.entryComponents?`);return b.ngComponent=g,b}(b)}}let Dc=(()=>{class g{}return g.NULL=new Sx,g})();function Tx(){return Ks(Yt(),we())}function Ks(g,b){return new Hc(Ti(g,b))}let Hc=(()=>{class g{constructor(C){this.nativeElement=C}}return g.__NG_ELEMENT_ID__=Tx,g})();function Ex(g){return g instanceof Hc?g.nativeElement:g}class ZC{}let Mx=(()=>{class g{}return g.__NG_ELEMENT_ID__=()=>function Dx(){const g=we(),C=zi(Yt().index,g);return(Et(C)?C:g)[11]}(),g})(),Hx=(()=>{class g{}return g.\u0275prov=St({token:g,providedIn:"root",factory:()=>null}),g})();class XC{constructor(b){this.full=b,this.major=b.split(".")[0],this.minor=b.split(".")[1],this.patch=b.split(".").slice(2).join(".")}}const Rx=new XC("14.1.2"),Qf={};function Xf(g){return g.ngOriginalError}class Rc{constructor(){this._console=console}handleError(b){const C=this._findOriginalError(b);this._console.error("ERROR",b),C&&this._console.error("ORIGINAL ERROR",C)}_findOriginalError(b){let C=b&&Xf(b);for(;C&&Xf(C);)C=Xf(C);return C||null}}const em=new Map;let qx=0;const Ic="__ngContext__";function Mi(g,b){Et(b)?(g[Ic]=b[20],function Gx(g){em.set(g[20],g)}(b)):g[Ic]=b}function Zs(g){const b=g[Ic];return"number"==typeof b?function aw(g){return em.get(g)||null}(b):b||null}function ju(g){const b=Zs(g);return b?Et(b)?b:b.lView:null}const sw=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(de))();function Xi(g){return g instanceof Function?g():g}var Dn=(()=>((Dn=Dn||{})[Dn.Important=1]="Important",Dn[Dn.DashCase=2]="DashCase",Dn))();function nm(g,b){return undefined(g,b)}function kc(g){const b=g[3];return sn(b)?b[3]:b}function am(g){return sm(g[13])}function om(g){return sm(g[4])}function sm(g){for(;null!==g&&!sn(g);)g=g[4];return g}function Fa(g,b,C,y,x){if(null!=y){let S,T=!1;sn(y)?S=y:Et(y)&&(T=!0,y=y[0]);const D=Jt(y);0===g&&null!==C?null==x?Aw(b,C,D):No(b,C,D,x||null,!0):1===g&&null!==C?No(b,C,D,x||null,!0):2===g?function fm(g,b,C){const y=qo(g,b);y&&function Zx(g,b,C,y){g.removeChild(b,C,y)}(g,y,b,C)}(b,D,T):3===g&&b.destroyNode(D),null!=S&&function mm(g,b,C,y,x){const S=C[7];S!==Jt(C)&&Fa(b,g,y,S,x);for(let D=10;D0&&(g[C-1][4]=y[4]);const S=Ba(g,10+b);!function mw(g,b){gn(g,b,b[11],2,null,null),b[0]=null,b[6]=null}(y[1],y);const T=S[19];null!==T&&T.detachView(S[1]),y[3]=null,y[4]=null,y[2]&=-65}return y}function dm(g,b){if(!(128&b[2])){const C=b[11];C.destroyNode&&gn(g,b,C,3,null,null),function bw(g){let b=g[13];if(!b)return Gu(g[1],g);for(;b;){let C=null;if(Et(b))C=b[13];else{const y=b[10];y&&(C=y)}if(!C){for(;b&&!b[4]&&b!==g;)Et(b)&&Gu(b[1],b),b=b[3];null===b&&(b=g),Et(b)&&Gu(b[1],b),C=b&&b[4]}b=C}}(b)}}function Gu(g,b){if(!(128&b[2])){b[2]&=-65,b[2]|=128,function Wu(g,b){let C;if(null!=g&&null!=(C=g.destroyHooks))for(let y=0;y=0?y[x=k]():y[x=-k].unsubscribe(),S+=2}else{const T=y[x=C[S+1]];C[S].call(T)}if(null!==y){for(let S=x+1;SS?"":x[U+1].toLowerCase();const se=8&y?ie:null;if(se&&-1!==gm(se,k,0)||2&y&&k!==ie){if(_n(y))return!1;T=!0}}}}else{if(!T&&!_n(y)&&!_n(H))return!1;if(T&&_n(H))continue;T=!1,y=H|1&y}}return _n(y)||T}function _n(g){return 0==(1&g)}function iS(g,b,C,y){if(null===b)return-1;let x=0;if(y||!C){let S=!1;for(;x-1)for(C++;C0?'="'+D+'"':"")+"]"}else 8&y?x+="."+T:4&y&&(x+=" "+T);else""!==x&&!_n(T)&&(b+=Cm(S,x),x=""),y=T,S=S||!_n(y);C++}return""!==x&&(b+=Cm(S,x)),b}const Se={};function Iw(g){kw(ot(),we(),Li()+g,!1)}function kw(g,b,C,y){if(!y)if(3==(3&b[2])){const S=g.preOrderCheckHooks;null!==S&&nc(b,S,C)}else{const S=g.preOrderHooks;null!==S&&Da(b,S,0,C)}Qn(C)}function bn(g,b=null,C=null,y){const x=nl(g,b,C,y);return x.resolveInjectorInitializers(),x}function nl(g,b=null,C=null,y,x=new Set){const S=[C||ze,fx(g)];return y=y||("object"==typeof g?void 0:ee(g)),new QC(S,b||Lu(),y||null,x)}let za=(()=>{class g{static create(C,y){if(Array.isArray(C))return bn({name:""},y,C,"");{const x=C.name??"";return bn({name:x},C.parent,C.providers,x)}}}return g.THROW_IF_NOT_FOUND=Io,g.NULL=new qC,g.\u0275prov=St({token:g,providedIn:"any",factory:()=>Kt(NC)}),g.__NG_ELEMENT_ID__=-1,g})();function rl(g,b=Ke.Default){const C=we();return null===C?Kt(g,b):uf(Yt(),C,re(g),b)}function qw(){throw new Error("invalid")}function rh(g,b){return g<<17|b<<2}function tr(g){return g>>17&32767}function ah(g){return 2|g}function Jr(g){return(131068&g)>>2}function oh(g,b){return-131069&g|b<<2}function sh(g){return 1|g}function Lm(g,b){const C=g.contentQueries;if(null!==C)for(let y=0;y22&&kw(g,b,22,!1),C(y,x)}finally{Qn(S)}}function mh(g,b,C){if(va(b)){const x=b.directiveEnd;for(let S=b.directiveStart;S0;){const C=g[--b];if("number"==typeof C&&C<0)return C}return 0})(D)!=H&&D.push(H),D.push(y,x,T)}}function ay(g,b){null!==g.hostBindings&&g.hostBindings(1,b)}function oy(g,b){b.flags|=2,(g.components||(g.components=[])).push(b.index)}function vh(g,b,C){if(C){if(b.exportAs)for(let y=0;y0&&ir(C)}}function ir(g){for(let y=am(g);null!==y;y=om(y))for(let x=10;x0&&ir(S)}const C=g[1].components;if(null!==C)for(let y=0;y0&&ir(x)}}function qm(g,b){const C=zi(b,g),y=C[1];(function sy(g,b){for(let C=b.length;CPromise.resolve(null))();function dy(g){return g[7]||(g[7]=[])}function uy(g){return g.cleanup||(g.cleanup=[])}function Mh(g,b,C){return(null===g||Oi(g))&&(C=function Rs(g){for(;Array.isArray(g);){if("object"==typeof g[1])return g;g=g[0]}return null}(C[b.index])),C[11]}function $m(g,b){const C=g[9],y=C?C.get(Rc,null):null;y&&y.handleError(b)}function Dh(g,b,C,y,x){for(let S=0;S-1&&(zu(b,y),Ba(C,y))}this._attachedToViewContainer=!1}dm(this._lView[1],this._lView)}onDestroy(b){Wa(this._lView[1],this._lView,null,b)}markForCheck(){Eh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Zc(g,b,C){const y=b[10];y.begin&&y.begin();try{Rn(g,b,g.template,C)}catch(x){throw $m(b,x),x}finally{y.end&&y.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function _w(g,b){gn(g,b,b[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(b){if(this._attachedToViewContainer)throw new ae(902,!1);this._appRef=b}}class hy extends ul{constructor(b){super(b),this._view=b}detectChanges(){Gm(this._view)}checkNoChanges(){}get context(){return null}}class Mr extends Dc{constructor(b){super(),this.ngModule=b}resolveComponentFactory(b){const C=xt(b);return new Xc(C,this.ngModule)}}function Hh(g){const b=[];for(let C in g)g.hasOwnProperty(C)&&b.push({propName:g[C],templateName:C});return b}class ES{constructor(b,C){this.injector=b,this.parentInjector=C}get(b,C,y){const x=this.injector.get(b,Qf,y);return x!==Qf||C===Qf?x:this.parentInjector.get(b,C,y)}}class Xc extends $f{constructor(b,C){super(),this.componentDef=b,this.ngModule=C,this.componentType=b.type,this.selector=function Rw(g){return g.map(Hw).join(",")}(b.selectors),this.ngContentSelectors=b.ngContentSelectors?b.ngContentSelectors:[],this.isBoundToModule=!!C}get inputs(){return Hh(this.componentDef.inputs)}get outputs(){return Hh(this.componentDef.outputs)}create(b,C,y,x){let S=(x=x||this.ngModule)instanceof Uo?x:x?.injector;S&&null!==this.componentDef.getStandaloneInjector&&(S=this.componentDef.getStandaloneInjector(S)||S);const T=S?new ES(b,S):b,D=T.get(ZC,null);if(null===D)throw new ae(407,!1);const H=T.get(Hx,null),k=D.createRenderer(null,this.componentDef),B=this.componentDef.selectors[0][0]||"div",U=y?function ty(g,b,C){return g.selectRootElement(b,C===$.ShadowDom)}(k,y,this.componentDef.encapsulation):Nu(D.createRenderer(null,this.componentDef),B,function Qm(g){const b=g.toLowerCase();return"svg"===b?"svg":"math"===b?"math":null}(B)),ie=this.componentDef.onPush?288:272,se=function fy(g,b){return{components:[],scheduler:g||sw,clean:cy,playerHandler:b||null,flags:0}}(),be=bh(0,null,null,1,0,null,null,null,null,null),Ee=sl(null,be,se,ie,null,null,D,k,H,T,null);let Be,Ne;du(Ee);try{const $e=function nr(g,b,C,y,x,S){const T=C[1];C[22]=g;const H=ea(T,22,2,"#host",null),k=H.mergedAttrs=b.hostAttrs;null!==k&&(ia(H,k,!0),null!==g&&(Vs(x,g,k),null!==H.classes&&Na(x,g,H.classes),null!==H.styles&&Zu(x,g,H.styles)));const B=y.createRenderer(g,b),U=sl(C,Fm(b),null,b.onPush?32:16,C[22],H,y,B,S||null,null,null);return T.firstCreatePass&&(cc(Ia(H,C),T,b.type),oy(T,H),Ah(H,C.length,1)),Th(C,U),C[22]=U}(U,this.componentDef,Ee,D,k);if(U)if(y)Vs(k,U,["ng-version",Rx.full]);else{const{attrs:ve,classes:Qe}=function Pw(g){const b=[],C=[];let y=1,x=2;for(;y0&&Na(k,U,Qe.join(" "))}if(Ne=Co(be,22),void 0!==C){const ve=Ne.projection=[];for(let Qe=0;Qe=0;y--){const x=g[y];x.hostVars=b+=x.hostVars,x.hostAttrs=Ra(x.hostAttrs,C=Ra(C,x.hostAttrs))}}(y)}function Km(g){return g===ct?{}:g===ze?[]:g}function Zm(g,b){const C=g.viewQuery;g.viewQuery=C?(y,x)=>{b(y,x),C(y,x)}:b}function my(g,b){const C=g.contentQueries;g.contentQueries=C?(y,x,S)=>{b(y,x,S),C(y,x,S)}:b}function Dr(g,b){const C=g.hostBindings;g.hostBindings=C?(y,x)=>{b(y,x),C(y,x)}:b}let hl=null;function je(){if(!hl){const g=de.Symbol;if(g&&g.iterator)hl=g.iterator;else{const b=Object.getOwnPropertyNames(Map.prototype);for(let C=0;CD(Jt(mt[y.index])):y.index;let Qe=null;if(!D&&H&&(Qe=function VS(g,b,C,y){const x=g.cleanup;if(null!=x)for(let S=0;SH?D[H]:null}"string"==typeof T&&(S+=2)}return null}(g,b,x,y.index)),null!==Qe)(Qe.__ngLastListenerFn__||Qe).__ngNextListenerFn__=S,Qe.__ngLastListenerFn__=S,se=!1;else{S=dg(y,b,U,S,!1);const mt=C.listen(Ne,x,S);ie.push(S,mt),B&&B.push(x,ve,$e,$e+1)}}else S=dg(y,b,U,S,!1);const be=y.outputs;let Ee;if(se&&null!==be&&(Ee=be[x])){const Be=Ee.length;if(Be)for(let Ne=0;Ne0;)b=b[15],g--;return b}(g,ue.lFrame.contextLView))[8]}(g)}function OS(g,b){let C=null;const y=function nS(g){const b=g.attrs;if(null!=b){const C=b.indexOf(5);if(0==(1&C))return b[C+1]}return null}(g);for(let x=0;x=0}const gi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Py(g){return g.substring(gi.key,gi.keyEnd)}function Iy(g,b){const C=gi.textEnd;return C===b?-1:(b=gi.keyEnd=function By(g,b,C){for(;b32;)b++;return b}(g,gi.key=b,C),_l(g,b,C))}function _l(g,b,C){for(;b=0;C=Iy(b,C))ln(g,Py(b),!0)}function ar(g,b,C,y){const x=we(),S=ot(),T=$n(2);S.firstUpdatePass&&os(S,g,T,y),b!==Se&&Di(x,T,b)&&_g(S,S.data[Li()],x,x[11],g,x[T+1]=function QS(g,b){return null==g||("string"==typeof b?g+=b:"object"==typeof g&&(g=ee(Wr(g)))),g}(b,C),y,T)}function or(g,b,C,y){const x=ot(),S=$n(2);x.firstUpdatePass&&os(x,null,S,y);const T=we();if(C!==Se&&Di(T,S,C)){const D=x.data[Li()];if(zy(D,y)&&!Ly(x,S)){let H=y?D.classesWithoutHost:D.stylesWithoutHost;null!==H&&(C=W(H,C||"")),sg(x,D,T,C,y)}else!function Ny(g,b,C,y,x,S,T,D){x===Se&&(x=ze);let H=0,k=0,B=0=g.expandoStartIndex}function os(g,b,C,y){const x=g.data;if(null===x[C+1]){const S=x[Li()],T=Ly(g,C);zy(S,y)&&null===b&&!T&&(b=!1),b=function WS(g,b,C,y){const x=lu(g);let S=y?b.residualClasses:b.residualStyles;if(null===x)0===(y?b.classBindings:b.styleBindings)&&(C=ad(C=gg(null,g,b,C,y),b.attrs,y),S=null);else{const T=b.directiveStylingLast;if(-1===T||g[T]!==x)if(C=gg(x,g,b,C,y),null===S){let H=function jy(g,b,C){const y=C?b.classBindings:b.styleBindings;if(0!==Jr(y))return g[tr(y)]}(g,b,y);void 0!==H&&Array.isArray(H)&&(H=gg(null,g,b,H[1],y),H=ad(H,b.attrs,y),function Fy(g,b,C,y){g[tr(C?b.classBindings:b.styleBindings)]=y}(g,b,y,H))}else S=function Uy(g,b,C){let y;const x=b.directiveEnd;for(let S=1+b.directiveStylingLast;S0)&&(k=!0)}else B=C;if(x)if(0!==H){const ie=tr(g[D+1]);g[y+1]=rh(ie,D),0!==ie&&(g[ie+1]=oh(g[ie+1],y)),g[D+1]=function Gw(g,b){return 131071&g|b<<17}(g[D+1],y)}else g[y+1]=rh(D,0),0!==D&&(g[D+1]=oh(g[D+1],y)),D=y;else g[y+1]=rh(H,0),0===D?D=y:g[H+1]=oh(g[H+1],y),H=y;k&&(g[y+1]=ah(g[y+1])),fg(g,B,y,!0),fg(g,B,y,!1),function Ry(g,b,C,y,x){const S=x?g.residualClasses:g.residualStyles;null!=S&&"string"==typeof b&&Po(S,b)>=0&&(C[y+1]=sh(C[y+1]))}(b,B,g,y,S),T=rh(D,H),S?b.classBindings=T:b.styleBindings=T}(x,S,b,C,T,y)}}function gg(g,b,C,y,x){let S=null;const T=C.directiveEnd;let D=C.directiveStylingLast;for(-1===D?D=C.directiveStart:D++;D0;){const H=g[x],k=Array.isArray(H),B=k?H[1]:H,U=null===B;let ie=C[x+1];ie===Se&&(ie=U?ze:void 0);let se=U?Ro(ie,y):B===y?ie:void 0;if(k&&!zh(se)&&(se=Ro(H,y)),zh(se)&&(D=se,T))return D;const be=g[x+1];x=T?tr(be):Jr(be)}if(null!==b){let H=S?b.residualClasses:b.residualStyles;null!=H&&(D=Ro(H,y))}return D}function zh(g){return void 0!==g}function zy(g,b){return 0!=(g.flags&(b?16:32))}function Gy(g,b=""){const C=we(),y=ot(),x=g+22,S=y.firstCreatePass?ea(y,x,1,b,null):y.data[x],T=C[x]=function lm(g,b){return g.createText(b)}(C[11],b);Bc(y,C,T,S),Gi(S,!1)}function bg(g){return Qa("",g,""),bg}function Qa(g,b,C){const y=we(),x=Zo(y,g,b,C);return x!==Se&&yn(y,Li(),x),Qa}function Cg(g,b,C,y,x,S,T){const D=we(),H=es(D,g,b,C,y,x,S,T);return H!==Se&&yn(D,Li(),H),Cg}function Zy(g,b,C){or(ln,Rr,Zo(we(),g,b,C),!0)}function Wh(g,b,C){const y=we();return Di(y,Ma(),b)&&en(ot(),zt(),y,g,b,y[11],C,!0),Wh}function Ya(g,b,C){const y=we();if(Di(y,Ma(),b)){const S=ot(),T=zt();en(S,T,y,g,b,Mh(lu(S.data),T,y),C,!0)}return Ya}const na=void 0;var Ag=["en",[["a","p"],["AM","PM"],na],[["AM","PM"],na,na],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],na,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],na,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",na,"{1} 'at' {0}",na],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function av(g){const C=Math.floor(Math.abs(g)),y=g.toString().replace(/^[^.]*\.?/,"").length;return 1===C&&0===y?1:5}];let Ja={};function Ka(g){const b=function lv(g){return g.toLowerCase().replace(/_/g,"-")}(g);let C=wl(b);if(C)return C;const y=b.split("-")[0];if(C=wl(y),C)return C;if("en"===y)return Ag;throw new ae(701,!1)}function ov(g){return Ka(g)[Ze.PluralCase]}function wl(g){return g in Ja||(Ja[g]=de.ng&&de.ng.common&&de.ng.common.locales&&de.ng.common.locales[g]),Ja[g]}var Ze=(()=>((Ze=Ze||{})[Ze.LocaleId=0]="LocaleId",Ze[Ze.DayPeriodsFormat=1]="DayPeriodsFormat",Ze[Ze.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ze[Ze.DaysFormat=3]="DaysFormat",Ze[Ze.DaysStandalone=4]="DaysStandalone",Ze[Ze.MonthsFormat=5]="MonthsFormat",Ze[Ze.MonthsStandalone=6]="MonthsStandalone",Ze[Ze.Eras=7]="Eras",Ze[Ze.FirstDayOfWeek=8]="FirstDayOfWeek",Ze[Ze.WeekendRange=9]="WeekendRange",Ze[Ze.DateFormat=10]="DateFormat",Ze[Ze.TimeFormat=11]="TimeFormat",Ze[Ze.DateTimeFormat=12]="DateTimeFormat",Ze[Ze.NumberSymbols=13]="NumberSymbols",Ze[Ze.NumberFormats=14]="NumberFormats",Ze[Ze.CurrencyCode=15]="CurrencyCode",Ze[Ze.CurrencySymbol=16]="CurrencySymbol",Ze[Ze.CurrencyName=17]="CurrencyName",Ze[Ze.Currencies=18]="Currencies",Ze[Ze.Directionality=19]="Directionality",Ze[Ze.PluralCase=20]="PluralCase",Ze[Ze.ExtraData=21]="ExtraData",Ze))();const ls="en-US";let cs=ls;function Og(g,b,C,y,x){if(g=re(g),Array.isArray(g))for(let S=0;S>20;if(Fo(g)||!g.multi){const se=new Ha(H,x,rl),be=Fg(D,b,x?B:B+ie,U);-1===be?(cc(Ia(k,T),S,D),Lg(S,g,b.length),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(se),T.push(se)):(C[be]=se,T[be]=se)}else{const se=Fg(D,b,B+ie,U),be=Fg(D,b,B,B+ie),Ee=se>=0&&C[se],Be=be>=0&&C[be];if(x&&!Be||!x&&!Ee){cc(Ia(k,T),S,D);const Ne=function Hv(g,b,C,y,x){const S=new Ha(g,C,rl);return S.multi=[],S.index=b,S.componentProviders=0,jg(S,x,y&&!C),S}(x?DT:MT,C.length,x,y,H);!x&&Be&&(C[be].providerFactory=Ne),Lg(S,g,b.length,0),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(Ne),T.push(Ne)}else Lg(S,g,se>-1?se:be,jg(C[x?be:se],H,!x&&y));!x&&y&&Be&&C[be].componentProviders++}}}function Lg(g,b,C,y){const x=Fo(b),S=function gx(g){return!!g.useClass}(b);if(x||S){const H=(S?re(b.useClass):b).prototype.ngOnDestroy;if(H){const k=g.destroyHooks||(g.destroyHooks=[]);if(!x&&b.multi){const B=k.indexOf(C);-1===B?k.push(C,[y,H]):k[B+1].push(y,H)}else k.push(C,H)}}}function jg(g,b,C){return C&&g.componentProviders++,g.multi.push(b)-1}function Fg(g,b,C,y){for(let x=C;x{C.providersResolver=(y,x)=>function Dv(g,b,C){const y=ot();if(y.firstCreatePass){const x=Oi(g);Og(C,y.data,y.blueprint,x,!0),Og(b,y.data,y.blueprint,x,!1)}}(y,x?x(g):g,b)}}class xl{}class dr{}function HT(g,b){return new Rv(g,b??null)}class Rv extends xl{constructor(b,C){super(),this._parent=C,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Mr(this);const y=Yi(b);this._bootstrapComponents=Xi(y.bootstrap),this._r3Injector=nl(b,C,[{provide:xl,useValue:this},{provide:Dc,useValue:this.componentFactoryResolver}],ee(b),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(b)}get injector(){return this._r3Injector}destroy(){const b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(C=>C()),this.destroyCbs=null}onDestroy(b){this.destroyCbs.push(b)}}class Ng extends dr{constructor(b){super(),this.moduleType=b}create(b){return new Rv(this.moduleType,b)}}class RT extends xl{constructor(b,C,y){super(),this.componentFactoryResolver=new Mr(this),this.instance=null;const x=new QC([...b,{provide:xl,useValue:this},{provide:Dc,useValue:this.componentFactoryResolver}],C||Lu(),y,new Set(["environment"]));this.injector=x,x.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(b){this.injector.onDestroy(b)}}function qg(g,b,C=null){return new RT(g,b,C).injector}function ei(g,b,C,y){return $g(we(),Wi(),g,b,C,y)}function $g(g,b,C,y,x,S){const T=b+C;return Di(g,T,x)?function dn(g,b,C){return g[b]=C}(g,T+1,S?y.call(S,x):y(x)):function Tl(g,b){const C=g[b];return C===Se?void 0:C}(g,T+1)}function bd(g,b){const C=ot();let y;const x=g+22;C.firstCreatePass?(y=function Zg(g,b){if(b)for(let C=b.length-1;C>=0;C--){const y=b[C];if(g===y.name)return y}}(b,C.pipeRegistry),C.data[x]=y,y.onDestroy&&(C.destroyHooks||(C.destroyHooks=[])).push(x,y.onDestroy)):y=C.data[x];const S=y.factory||(y.factory=Cr(y.type)),T=Pi(rl);try{const D=mu(!1),H=S();return mu(D),function BS(g,b,C,y){C>=g.data.length&&(g.data[C]=null,g.blueprint[C]=null),b[C]=y}(C,we(),x,H),H}finally{Pi(T)}}function Xg(g,b,C){const y=g+22,x=we(),S=Ta(x,y);return function Cd(g,b){return g[1].data[b].pure}(x,y)?$g(x,Wi(),b,S.transform,C,S):S.transform(C)}function t_(g){return b=>{setTimeout(g,void 0,b)}}const kr=class NT extends M.x{constructor(b=!1){super(),this.__isAsync=b}emit(b){super.next(b)}subscribe(b,C,y){let x=b,S=C||(()=>null),T=y;if(b&&"object"==typeof b){const H=b;x=H.next?.bind(H),S=H.error?.bind(H),T=H.complete?.bind(H)}this.__isAsync&&(S=t_(S),x&&(x=t_(x)),T&&(T=t_(T)));const D=super.subscribe({next:x,error:S,complete:T});return b instanceof _.w0&&b.add(D),D}};function qT(){return this._results[je()]()}class tp{constructor(b=!1){this._emitDistinctChangesOnly=b,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const C=je(),y=tp.prototype;y[C]||(y[C]=qT)}get changes(){return this._changes||(this._changes=new kr)}get(b){return this._results[b]}map(b){return this._results.map(b)}filter(b){return this._results.filter(b)}find(b){return this._results.find(b)}reduce(b,C){return this._results.reduce(b,C)}forEach(b){this._results.forEach(b)}some(b){return this._results.some(b)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(b,C){const y=this;y.dirty=!1;const x=Zi(b);(this._changesDetected=!function uc(g,b,C){if(g.length!==b.length)return!1;for(let y=0;y{class g{}return g.__NG_ELEMENT_ID__=WT,g})();const zT=wd,GT=class extends zT{constructor(b,C,y){super(),this._declarationLView=b,this._declarationTContainer=C,this.elementRef=y}createEmbeddedView(b,C){const y=this._declarationTContainer.tViews,x=sl(this._declarationLView,y,b,16,null,y.declTNode,null,null,null,null,C||null);x[17]=this._declarationLView[this._declarationTContainer.index];const T=this._declarationLView[19];return null!==T&&(x[19]=T.createEmbeddedView(y)),Qc(y,x,b),new ul(x)}};function WT(){return ip(Yt(),we())}function ip(g,b){return 4&g.type?new GT(b,g,Ks(g,b)):null}let np=(()=>{class g{}return g.__NG_ELEMENT_ID__=$T,g})();function $T(){return Qv(Yt(),we())}const QT=np,Wv=class extends QT{constructor(b,C,y){super(),this._lContainer=b,this._hostTNode=C,this._hostLView=y}get element(){return Ks(this._hostTNode,this._hostLView)}get injector(){return new So(this._hostTNode,this._hostLView)}get parentInjector(){const b=Os(this._hostTNode,this._hostLView);if(lf(b)){const C=Pa(b,this._hostLView),y=vo(b);return new So(C[1].data[y+8],C)}return new So(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(b){const C=$v(this._lContainer);return null!==C&&C[b]||null}get length(){return this._lContainer.length-10}createEmbeddedView(b,C,y){let x,S;"number"==typeof y?x=y:null!=y&&(x=y.index,S=y.injector);const T=b.createEmbeddedView(C||{},S);return this.insert(T,x),T}createComponent(b,C,y,x,S){const T=b&&!function Fs(g){return"function"==typeof g}(b);let D;if(T)D=C;else{const U=C||{};D=U.index,y=U.injector,x=U.projectableNodes,S=U.environmentInjector||U.ngModuleRef}const H=T?b:new Xc(xt(b)),k=y||this.parentInjector;if(!S&&null==H.ngModule){const ie=(T?k:this.parentInjector).get(Uo,null);ie&&(S=ie)}const B=H.create(k,x,void 0,S);return this.insert(B.hostView,D),B}insert(b,C){const y=b._lView,x=y[1];if(function I(g){return sn(g[3])}(y)){const B=this.indexOf(b);if(-1!==B)this.detach(B);else{const U=y[3],ie=new Wv(U,U[6],U[3]);ie.detach(ie.indexOf(b))}}const S=this._adjustIndex(C),T=this._lContainer;!function Cw(g,b,C,y){const x=10+y,S=C.length;y>0&&(C[x-1][4]=b),y0)y.push(T[D/2]);else{const k=S[D+1],B=b[-H];for(let U=10;U{class g{constructor(C){this.appInits=C,this.resolve=Pl,this.reject=Pl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,x)=>{this.resolve=y,this.reject=x})}runInitializers(){if(this.initialized)return;const C=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let x=0;x{S.subscribe({complete:D,error:H})});C.push(T)}}Promise.all(C).then(()=>{y()}).catch(x=>{this.reject(x)}),0===C.length&&y(),this.initialized=!0}}return g.\u0275fac=function(C){return new(C||g)(Kt(Br,8))},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();const ms=new Pt("AppId",{providedIn:"root",factory:function up(){return`${Td()}${Td()}${Td()}`}});function Td(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const hp=new Pt("Platform Initializer"),S_=new Pt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),pp=new Pt("appBootstrapListener"),T_=new Pt("AnimationModuleType");let Ed=(()=>{class g{log(C){console.log(C)}warn(C){console.warn(C)}}return g.\u0275fac=function(C){return new(C||g)},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"platform"}),g})();const Il=new Pt("LocaleId",{providedIn:"root",factory:()=>Au(Il,Ke.Optional|Ke.SkipSelf)||function E_(){return typeof $localize<"u"&&$localize.locale||ls}()}),M_=new Pt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class D_{constructor(b,C){this.ngModuleFactory=b,this.componentFactories=C}}let fp=(()=>{class g{compileModuleSync(C){return new Ng(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const y=this.compileModuleSync(C),S=Xi(Yi(C).declarations).reduce((T,D)=>{const H=xt(D);return H&&T.push(new Xc(H)),T},[]);return new D_(y,S)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}}return g.\u0275fac=function(C){return new(C||g)},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();const k_=(()=>Promise.resolve(0))();function Md(g){typeof Zone>"u"?k_.then(()=>{g&&g.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",g)}class kt{constructor({enableLongStackTrace:b=!1,shouldCoalesceEventChangeDetection:C=!1,shouldCoalesceRunChangeDetection:y=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new kr(!1),this.onMicrotaskEmpty=new kr(!1),this.onStable=new kr(!1),this.onError=new kr(!1),typeof Zone>"u")throw new ae(908,!1);Zone.assertZonePatched();const x=this;if(x._nesting=0,x._outer=x._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const S=Zone.AsyncStackTaggingZoneSpec;x._inner=x._inner.fork(new S("Angular"))}Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),b&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!y&&C,x.shouldCoalesceRunChangeDetection=y,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function B_(){let g=de.requestAnimationFrame,b=de.cancelAnimationFrame;if(typeof Zone<"u"&&g&&b){const C=g[Zone.__symbol__("OriginalDelegate")];C&&(g=C);const y=b[Zone.__symbol__("OriginalDelegate")];y&&(b=y)}return{nativeRequestAnimationFrame:g,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function pE(g){const b=()=>{!function hE(g){g.isCheckStableRunning||-1!==g.lastRequestAnimationFrameId||(g.lastRequestAnimationFrameId=g.nativeRequestAnimationFrame.call(de,()=>{g.fakeTopEventTask||(g.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{g.lastRequestAnimationFrameId=-1,gs(g),g.isCheckStableRunning=!0,Dd(g),g.isCheckStableRunning=!1},void 0,()=>{},()=>{})),g.fakeTopEventTask.invoke()}),gs(g))}(g)};g._inner=g._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(C,y,x,S,T,D)=>{try{return V_(g),C.invokeTask(x,S,T,D)}finally{(g.shouldCoalesceEventChangeDetection&&"eventTask"===S.type||g.shouldCoalesceRunChangeDetection)&&b(),Hd(g)}},onInvoke:(C,y,x,S,T,D,H)=>{try{return V_(g),C.invoke(x,S,T,D,H)}finally{g.shouldCoalesceRunChangeDetection&&b(),Hd(g)}},onHasTask:(C,y,x,S)=>{C.hasTask(x,S),y===x&&("microTask"==S.change?(g._hasPendingMicrotasks=S.microTask,gs(g),Dd(g)):"macroTask"==S.change&&(g.hasPendingMacrotasks=S.macroTask))},onHandleError:(C,y,x,S)=>(C.handleError(x,S),g.runOutsideAngular(()=>g.onError.emit(S)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!kt.isInAngularZone())throw new ae(909,!1)}static assertNotInAngularZone(){if(kt.isInAngularZone())throw new ae(909,!1)}run(b,C,y){return this._inner.run(b,C,y)}runTask(b,C,y,x){const S=this._inner,T=S.scheduleEventTask("NgZoneEvent: "+x,b,ur,Pl,Pl);try{return S.runTask(T,C,y)}finally{S.cancelTask(T)}}runGuarded(b,C,y){return this._inner.runGuarded(b,C,y)}runOutsideAngular(b){return this._outer.run(b)}}const ur={};function Dd(g){if(0==g._nesting&&!g.hasPendingMicrotasks&&!g.isStable)try{g._nesting++,g.onMicrotaskEmpty.emit(null)}finally{if(g._nesting--,!g.hasPendingMicrotasks)try{g.runOutsideAngular(()=>g.onStable.emit(null))}finally{g.isStable=!0}}}function gs(g){g.hasPendingMicrotasks=!!(g._hasPendingMicrotasks||(g.shouldCoalesceEventChangeDetection||g.shouldCoalesceRunChangeDetection)&&-1!==g.lastRequestAnimationFrameId)}function V_(g){g._nesting++,g.isStable&&(g.isStable=!1,g.onUnstable.emit(null))}function Hd(g){g._nesting--,Dd(g)}class Rd{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new kr,this.onMicrotaskEmpty=new kr,this.onStable=new kr,this.onError=new kr}run(b,C,y){return b.apply(C,y)}runGuarded(b,C,y){return b.apply(C,y)}runOutsideAngular(b){return b()}runTask(b,C,y,x){return b.apply(C,y)}}const O_=new Pt(""),Pd=new Pt("");let L_,_A=(()=>{class g{constructor(C,y,x){this._ngZone=C,this.registry=y,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,L_||(function fE(g){L_=g}(x),x.addToWindow(y)),this._watchAngularEvents(),C.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{kt.assertNotInAngularZone(),Md(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Md(()=>{for(;0!==this._callbacks.length;){let C=this._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb(this._didWork)}this._didWork=!1});else{let C=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(C)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,y,x){let S=-1;y&&y>0&&(S=setTimeout(()=>{this._callbacks=this._callbacks.filter(T=>T.timeoutId!==S),C(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:C,timeoutId:S,updateCb:x})}whenStable(C,y,x){if(x&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(C,y,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,y,x){return[]}}return g.\u0275fac=function(C){return new(C||g)(Kt(kt),Kt(bA),Kt(Pd))},g.\u0275prov=St({token:g,factory:g.\u0275fac}),g})(),bA=(()=>{class g{constructor(){this._applications=new Map}registerApplication(C,y){this._applications.set(C,y)}unregisterApplication(C){this._applications.delete(C)}unregisterAllApplications(){this._applications.clear()}getTestability(C){return this._applications.get(C)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(C,y=!0){return L_?.findTestabilityInTree(this,C,y)??null}}return g.\u0275fac=function(C){return new(C||g)},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"platform"}),g})(),eo=null;const CA=new Pt("AllowMultipleToken"),j_=new Pt("PlatformDestroyListeners");class AA{constructor(b,C){this.name=b,this.token=C}}function to(g,b,C=[]){const y=`Platform: ${b}`,x=new Pt(y);return(S=[])=>{let T=Bl();if(!T||T.injector.get(CA,!1)){const D=[...C,...S,{provide:x,useValue:!0}];g?g(D):function xA(g){if(eo&&!eo.get(CA,!1))throw new ae(400,!1);eo=g;const b=g.get(Cp);(function _s(g){const b=g.get(hp,null);b&&b.forEach(C=>C())})(g)}(function Id(g=[],b){return za.create({name:b,providers:[{provide:qf,useValue:"platform"},{provide:j_,useValue:new Set([()=>eo=null])},...g]})}(D,y))}return function kl(g){const b=Bl();if(!b)throw new ae(401,!1);return b}()}}function Bl(){return eo?.get(Cp)??null}let Cp=(()=>{class g{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,y){const x=function F_(g,b){let C;return C="noop"===g?new Rd:("zone.js"===g?void 0:g)||new kt(b),C}(y?.ngZone,function Vl(g){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!g||!g.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!g||!g.ngZoneRunCoalescing)||!1}}(y)),S=[{provide:kt,useValue:x}];return x.run(()=>{const T=za.create({providers:S,parent:this.injector,name:C.moduleType.name}),D=C.create(T),H=D.injector.get(Rc,null);if(!H)throw new ae(402,!1);return x.runOutsideAngular(()=>{const k=x.onError.subscribe({next:B=>{H.handleError(B)}});D.onDestroy(()=>{vp(this._modules,D),k.unsubscribe()})}),function wp(g,b,C){try{const y=C();return Fh(y)?y.catch(x=>{throw b.runOutsideAngular(()=>g.handleError(x)),x}):y}catch(y){throw b.runOutsideAngular(()=>g.handleError(y)),y}}(H,x,()=>{const k=D.injector.get(Sd);return k.runInitializers(),k.donePromise.then(()=>(function $h(g){Ht(g,"Expected localeId to be defined"),"string"==typeof g&&(cs=g.toLowerCase().replace(/_/g,"-"))}(D.injector.get(Il,ls)||ls),this._moduleDoBootstrap(D),D))})})}bootstrapModule(C,y=[]){const x=yp({},y);return function wA(g,b,C){const y=new Ng(C);return Promise.resolve(y)}(0,0,C).then(S=>this.bootstrapModuleFactory(S,x))}_moduleDoBootstrap(C){const y=C.injector.get(bs);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(x=>y.bootstrap(x));else{if(!C.instance.ngDoBootstrap)throw new ae(403,!1);C.instance.ngDoBootstrap(y)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ae(404,!1);this._modules.slice().forEach(y=>y.destroy()),this._destroyListeners.forEach(y=>y());const C=this._injector.get(j_,null);C&&(C.forEach(y=>y()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return g.\u0275fac=function(C){return new(C||g)(Kt(za))},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"platform"}),g})();function yp(g,b){return Array.isArray(b)?b.reduce(yp,g):{...g,...b}}let bs=(()=>{class g{constructor(C,y,x){this._zone=C,this._injector=y,this._exceptionHandler=x,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const S=new L.y(D=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{D.next(this._stable),D.complete()})}),T=new L.y(D=>{let H;this._zone.runOutsideAngular(()=>{H=this._zone.onStable.subscribe(()=>{kt.assertNotInAngularZone(),Md(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,D.next(!0))})})});const k=this._zone.onUnstable.subscribe(()=>{kt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{D.next(!1)}))});return()=>{H.unsubscribe(),k.unsubscribe()}});this.isStable=(0,F.T)(S,T.pipe((0,V.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(C,y){const x=C instanceof $f;if(!this._injector.get(Sd).done)throw!x&&Ml(C),new ae(405,false);let T;T=x?C:this._injector.get(Dc).resolveComponentFactory(C),this.componentTypes.push(T.componentType);const D=function vA(g){return g.isBoundToModule}(T)?void 0:this._injector.get(xl),k=T.create(za.NULL,[],y||T.selector,D),B=k.location.nativeElement,U=k.injector.get(O_,null);return U?.registerApplication(B),k.onDestroy(()=>{this.detachView(k.hostView),vp(this.components,k),U?.unregisterApplication(B)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ae(101,!1);try{this._runningTick=!0;for(let C of this._views)C.detectChanges()}catch(C){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(C))}finally{this._runningTick=!1}}attachView(C){const y=C;this._views.push(y),y.attachToAppRef(this)}detachView(C){const y=C;vp(this._views,y),y.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C),this._injector.get(pp,[]).concat(this._bootstrapListeners).forEach(x=>x(C))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(C=>C()),this._views.slice().forEach(C=>C.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(C){return this._destroyListeners.push(C),()=>vp(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new ae(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return g.\u0275fac=function(C){return new(C||g)(Kt(kt),Kt(Uo),Kt(Rc))},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();function vp(g,b){const C=g.indexOf(b);C>-1&&g.splice(C,1)}let MA=!0;function Bd(){MA=!1}let Od=(()=>{class g{}return g.__NG_ELEMENT_ID__=DA,g})();function DA(g){return function HA(g,b,C){if(Gn(g)&&!C){const y=zi(g.index,b);return new ul(y,y)}return 47&g.type?new ul(b[16],b):null}(Yt(),we(),16==(16&g))}class Tp{constructor(){}supports(b){return In(b)}create(b){return new vE(b)}}const yE=(g,b)=>b;class vE{constructor(b){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=b||yE}forEachItem(b){let C;for(C=this._itHead;null!==C;C=C._next)b(C)}forEachOperation(b){let C=this._itHead,y=this._removalsHead,x=0,S=null;for(;C||y;){const T=!y||C&&C.currentIndex{T=this._trackByFn(x,D),null!==C&&Object.is(C.trackById,T)?(y&&(C=this._verifyReinsertion(C,D,T,x)),Object.is(C.item,D)||this._addIdentityChange(C,D)):(C=this._mismatch(C,D,T,x),y=!0),C=C._next,x++}),this.length=x;return this._truncate(C),this.collection=b,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let b;for(b=this._previousItHead=this._itHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._additionsHead;null!==b;b=b._nextAdded)b.previousIndex=b.currentIndex;for(this._additionsHead=this._additionsTail=null,b=this._movesHead;null!==b;b=b._nextMoved)b.previousIndex=b.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(b,C,y,x){let S;return null===b?S=this._itTail:(S=b._prev,this._remove(b)),null!==(b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._reinsertAfter(b,S,x)):null!==(b=null===this._linkedRecords?null:this._linkedRecords.get(y,x))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._moveAfter(b,S,x)):b=this._addAfter(new AE(C,y),S,x),b}_verifyReinsertion(b,C,y,x){let S=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==S?b=this._reinsertAfter(S,b._prev,x):b.currentIndex!=x&&(b.currentIndex=x,this._addToMoves(b,x)),b}_truncate(b){for(;null!==b;){const C=b._next;this._addToRemovals(this._unlink(b)),b=C}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(b,C,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(b);const x=b._prevRemoved,S=b._nextRemoved;return null===x?this._removalsHead=S:x._nextRemoved=S,null===S?this._removalsTail=x:S._prevRemoved=x,this._insertAfter(b,C,y),this._addToMoves(b,y),b}_moveAfter(b,C,y){return this._unlink(b),this._insertAfter(b,C,y),this._addToMoves(b,y),b}_addAfter(b,C,y){return this._insertAfter(b,C,y),this._additionsTail=null===this._additionsTail?this._additionsHead=b:this._additionsTail._nextAdded=b,b}_insertAfter(b,C,y){const x=null===C?this._itHead:C._next;return b._next=x,b._prev=C,null===x?this._itTail=b:x._prev=b,null===C?this._itHead=b:C._next=b,null===this._linkedRecords&&(this._linkedRecords=new z_),this._linkedRecords.put(b),b.currentIndex=y,b}_remove(b){return this._addToRemovals(this._unlink(b))}_unlink(b){null!==this._linkedRecords&&this._linkedRecords.remove(b);const C=b._prev,y=b._next;return null===C?this._itHead=y:C._next=y,null===y?this._itTail=C:y._prev=C,b}_addToMoves(b,C){return b.previousIndex===C||(this._movesTail=null===this._movesTail?this._movesHead=b:this._movesTail._nextMoved=b),b}_addToRemovals(b){return null===this._unlinkedRecords&&(this._unlinkedRecords=new z_),this._unlinkedRecords.put(b),b.currentIndex=null,b._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=b,b._prevRemoved=null):(b._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=b),b}_addIdentityChange(b,C){return b.item=C,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=b:this._identityChangesTail._nextIdentityChange=b,b}}class AE{constructor(b,C){this.item=b,this.trackById=C,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class xE{constructor(){this._head=null,this._tail=null}add(b){null===this._head?(this._head=this._tail=b,b._nextDup=null,b._prevDup=null):(this._tail._nextDup=b,b._prevDup=this._tail,b._nextDup=null,this._tail=b)}get(b,C){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===C||C<=y.currentIndex)&&Object.is(y.trackById,b))return y;return null}remove(b){const C=b._prevDup,y=b._nextDup;return null===C?this._head=y:C._nextDup=y,null===y?this._tail=C:y._prevDup=C,null===this._head}}class z_{constructor(){this.map=new Map}put(b){const C=b.trackById;let y=this.map.get(C);y||(y=new xE,this.map.set(C,y)),y.add(b)}get(b,C){const x=this.map.get(b);return x?x.get(b,C):null}remove(b){const C=b.trackById;return this.map.get(C).remove(b)&&this.map.delete(C),b}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ep(g,b,C){const y=g.previousIndex;if(null===y)return y;let x=0;return C&&y{if(C&&C.key===x)this._maybeAddToChanges(C,y),this._appendAfter=C,C=C._next;else{const S=this._getOrCreateRecordForKey(x,y);C=this._insertBeforeOrAppend(C,S)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(let y=C;null!==y;y=y._nextRemoved)y===this._mapHead&&(this._mapHead=null),this._records.delete(y.key),y._nextRemoved=y._next,y.previousValue=y.currentValue,y.currentValue=null,y._prev=null,y._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(b,C){if(b){const y=b._prev;return C._next=b,C._prev=y,b._prev=C,y&&(y._next=C),b===this._mapHead&&(this._mapHead=C),this._appendAfter=b,b}return this._appendAfter?(this._appendAfter._next=C,C._prev=this._appendAfter):this._mapHead=C,this._appendAfter=C,null}_getOrCreateRecordForKey(b,C){if(this._records.has(b)){const x=this._records.get(b);this._maybeAddToChanges(x,C);const S=x._prev,T=x._next;return S&&(S._next=T),T&&(T._prev=S),x._next=null,x._prev=null,x}const y=new jd(b);return this._records.set(b,y),y.currentValue=C,this._addToAdditions(y),y}_reset(){if(this.isDirty){let b;for(this._previousMapHead=this._mapHead,b=this._previousMapHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._changesHead;null!==b;b=b._nextChanged)b.previousValue=b.currentValue;for(b=this._additionsHead;null!=b;b=b._nextAdded)b.previousValue=b.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(b,C){Object.is(C,b.currentValue)||(b.previousValue=b.currentValue,b.currentValue=C,this._addToChanges(b))}_addToAdditions(b){null===this._additionsHead?this._additionsHead=this._additionsTail=b:(this._additionsTail._nextAdded=b,this._additionsTail=b)}_addToChanges(b){null===this._changesHead?this._changesHead=this._changesTail=b:(this._changesTail._nextChanged=b,this._changesTail=b)}_forEach(b,C){b instanceof Map?b.forEach(C):Object.keys(b).forEach(y=>C(b[y],y))}}class jd{constructor(b){this.key=b,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function $_(){return new Mp([new Tp])}let Mp=(()=>{class g{constructor(C){this.factories=C}static create(C,y){if(null!=y){const x=y.factories.slice();C=C.concat(x)}return new g(C)}static extend(C){return{provide:g,useFactory:y=>g.create(C,y||$_()),deps:[[g,new Gs,new Va]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(null!=y)return y;throw new ae(901,!1)}}return g.\u0275prov=St({token:g,providedIn:"root",factory:$_}),g})();function Q_(){return new Y_([new G_])}let Y_=(()=>{class g{constructor(C){this.factories=C}static create(C,y){if(y){const x=y.factories.slice();C=C.concat(x)}return new g(C)}static extend(C){return{provide:g,useFactory:y=>g.create(C,y||Q_()),deps:[[g,new Gs,new Va]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(y)return y;throw new ae(901,!1)}}return g.\u0275prov=St({token:g,providedIn:"root",factory:Q_}),g})();const K_=to(null,"core",[]);let Dp=(()=>{class g{constructor(C){}}return g.\u0275fac=function(C){return new(C||g)(Kt(bs))},g.\u0275mod=Lr({type:g}),g.\u0275inj=li({}),g})();function jA(g){return"boolean"==typeof g?g:null!=g&&"false"!==g}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class N extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return N.\u0275fac=function(){let z;return function(M){return(z||(z=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(N)))(M||N)}}(),N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class N{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,M){this.data.set(E,M)}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class ReceivedTokens{}class OAuthEvent{constructor(z){this.type=z}}class OAuthSuccessEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(z,E,M=null){super(z),this.reason=E,this.params=M}}function b64DecodeUnicode(N){const z=N.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(z).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(N){return btoa(N).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(z){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},z&&Object.assign(this,z)}}class WebHttpUrlEncodingCodec{encodeKey(z){return encodeURIComponent(z)}encodeValue(z){return encodeURIComponent(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(z){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let M=E.inferHashAlgorithm(z.idTokenHeader),_=yield E.calcHash(z.accessToken,M),F=base64UrlEncode(_.substr(0,_.length/2)),V=z.idTokenClaims.at_hash.replace(/=/g,"");return F!==V&&(console.error("exptected at_hash: "+F),console.error("actual at_hash: "+V)),F===V})()}inferHashAlgorithm(z){let E=z.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class N{getHashFragmentParams(E){let M=E||window.location.hash;if(M=decodeURIComponent(M),0!==M.indexOf("#"))return{};const _=M.indexOf("?");return M=M.substr(_>-1?_+1:1),this.parseQueryString(M)}parseQueryString(E){const M={};let _,L,F,V,q,Q,ee;if(null===E)return M;_=E.split("&");for(let W=0;W<_.length;W++)L=_[W],F=L.indexOf("="),-1===F?(V=L,q=null):(V=L.substr(0,F),q=L.substr(F+1)),Q=decodeURIComponent(V),ee=decodeURIComponent(q),"/"===Q.substr(0,1)&&(Q=Q.substr(1)),M[Q]=ee;return M}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();function factory(){var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD="function"==typeof define&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u";const HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"];var blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(N){return"[object Array]"===Object.prototype.toString.call(N)}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(N){return"object"==typeof N&&N.buffer&&N.buffer.constructor===ArrayBuffer});var createOutputMethod=function(N,z){return function(E){return new Sha256(z,!0).update(E)[N]()}},createMethod=function(N){var z=createOutputMethod("hex",N);NODE_JS&&(z=nodeWrap(z,N)),z.create=function(){return new Sha256(N)},z.update=function(_){return z.create().update(_)};for(var E=0;E>6,L[V++]=128|63&q):q<55296||q>=57344?(L[V++]=224|q>>12,L[V++]=128|q>>6&63,L[V++]=128|63&q):(q=65536+((1023&q)<<10|1023&N.charCodeAt(++M)),L[V++]=240|q>>18,L[V++]=128|q>>12&63,L[V++]=128|q>>6&63,L[V++]=128|63&q);N=L}else{if("object"!==_)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR)}N.length>64&&(N=new Sha256(z,!0).update(N).array());var Q=[],ee=[];for(M=0;M<64;++M){var W=N[M]||0;Q[M]=92^W,ee[M]=54^W}Sha256.call(this,z,E),this.update(ee),this.oKeyPad=Q,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(N){if(!this.finalized){var z,E=typeof N;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR);z=!0}for(var M,L,_=0,F=N.length,V=this.blocks;_>2]|=N[_]<>2]|=M<>2]|=(192|M>>6)<>2]|=(128|63&M)<=57344?(V[L>>2]|=(224|M>>12)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<>2]|=(240|M>>18)<>2]|=(128|M>>12&63)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<=64?(this.block=V[16],this.start=L-64,this.hash(),this.hashed=!0):this.start=L}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var N=this.blocks,z=this.lastByteIndex;N[16]=this.block,N[z>>2]|=EXTRA[3&z],this.block=N[16],z>=56&&(this.hashed||this.hash(),N[0]=this.block,N[16]=N[1]=N[2]=N[3]=N[4]=N[5]=N[6]=N[7]=N[8]=N[9]=N[10]=N[11]=N[12]=N[13]=N[14]=N[15]=0),N[14]=this.hBytes<<3|this.bytes>>>29,N[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var Q,G,te,ae,he,fe,N=this.h0,z=this.h1,E=this.h2,M=this.h3,_=this.h4,L=this.h5,F=this.h6,V=this.h7,q=this.blocks;for(Q=16;Q<64;++Q)q[Q]=q[Q-16]+(((G=q[Q-15])>>>7|G<<25)^(G>>>18|G<<14)^G>>>3)+q[Q-7]+(((G=q[Q-2])>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)<<0;for(fe=z&E,Q=0;Q<64;Q+=4)this.first?(this.is224?(te=300032,V=(G=q[0]-1413257819)-150054599<<0,M=G+24177077<<0):(te=704751109,V=(G=q[0]-210244248)-1521486534<<0,M=G+143694565<<0),this.first=!1):(V=M+(G=V+((_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&L^~_&F)+K[Q]+q[Q])<<0,M=G+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((te=N&z)^N&E^fe))<<0),F=E+(G=F+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&_^~V&L)+K[Q+1]+q[Q+1])<<0,E=G+(((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+((ae=M&N)^M&z^te))<<0,L=z+(G=L+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&V^~F&_)+K[Q+2]+q[Q+2])<<0,z=G+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((he=E&M)^E&N^ae))<<0,_=N+(G=_+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&F^~L&V)+K[Q+3]+q[Q+3])<<0,N=G+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((fe=z&E)^z&M^he))<<0;this.h0=this.h0+N<<0,this.h1=this.h1+z<<0,this.h2=this.h2+E<<0,this.h3=this.h3+M<<0,this.h4=this.h4+_<<0,this.h5=this.h5+L<<0,this.h6=this.h6+F<<0,this.h7=this.h7+V<<0},Sha256.prototype.hex=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,_=this.h4,L=this.h5,F=this.h6,V=this.h7,q=HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M]+HEX_CHARS[_>>28&15]+HEX_CHARS[_>>24&15]+HEX_CHARS[_>>20&15]+HEX_CHARS[_>>16&15]+HEX_CHARS[_>>12&15]+HEX_CHARS[_>>8&15]+HEX_CHARS[_>>4&15]+HEX_CHARS[15&_]+HEX_CHARS[L>>28&15]+HEX_CHARS[L>>24&15]+HEX_CHARS[L>>20&15]+HEX_CHARS[L>>16&15]+HEX_CHARS[L>>12&15]+HEX_CHARS[L>>8&15]+HEX_CHARS[L>>4&15]+HEX_CHARS[15&L]+HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F];return this.is224||(q+=HEX_CHARS[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]),q},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,_=this.h4,L=this.h5,F=this.h6,V=this.h7,q=[N>>24&255,N>>16&255,N>>8&255,255&N,z>>24&255,z>>16&255,z>>8&255,255&z,E>>24&255,E>>16&255,E>>8&255,255&E,M>>24&255,M>>16&255,M>>8&255,255&M,_>>24&255,_>>16&255,_>>8&255,255&_,L>>24&255,L>>16&255,L>>8&255,255&L,F>>24&255,F>>16&255,F>>8&255,255&F];return this.is224||q.push(V>>24&255,V>>16&255,V>>8&255,255&V),q},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var N=new ArrayBuffer(this.is224?28:32),z=new DataView(N);return z.setUint32(0,this.h0),z.setUint32(4,this.h1),z.setUint32(8,this.h2),z.setUint32(12,this.h3),z.setUint32(16,this.h4),z.setUint32(20,this.h5),z.setUint32(24,this.h6),this.is224||z.setUint32(28,this.h7),N},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var N=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(N),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(N){if("string"!=typeof N)throw new TypeError("expected string");var z,E=N,M=new Uint8Array(E.length);for(z=0;z{class N{calcHash(E,M){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})()}toHashString2(E){let M="";for(let _ of E)M+=String.fromCharCode(_);return M}toHashString(E){const M=new Uint8Array(E);let _="";for(let L of M)_+=String.fromCharCode(L);return _}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})(),OAuthService=(()=>{class N extends AuthConfig{constructor(E,M,_,L,F,V,q,Q,ee,W){super(),this.ngZone=E,this.http=M,this.config=F,this.urlHelper=V,this.logger=q,this.crypto=Q,this.dateTimeService=W,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=ee,F||(F={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),L&&(this.tokenValidationHandler=L),F&&this.configure(F);try{_?this.setStorage(_):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(Y){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",Y)}if(this.checkLocalStorageAccessable()){const Y=window?.navigator?.userAgent;(Y?.includes("MSIE ")||Y?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const E="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(E,E),localStorage.removeItem(E),0))}catch{return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},M,_=!0){let L=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(F=>{"token_received"===F.type?L=!0:"logout"===F.type&&(L=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_expires"===F.type&&(null==M||"any"===M||F.info===M)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(F=>{L&&this.refreshInternal(E,_).catch(V=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,M){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,M):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(M=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(M=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const M=[],_=this.validateUrlForHttps(E),L=this.validateUrlAgainstIssuer(E);return _||M.push("https for all urls required. Also for urls received by discovery."),L||M.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),M}validateUrlForHttps(E){if(!E)return!0;const M=E.toLowerCase();return!(!1!==this.requireHttps&&(!M.match(/^http:\/\/localhost($|[:\/])/)&&!M.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||M.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,M){if(!E)throw new Error(`'${M}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${M}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),M=this.getAccessTokenStoredAt(),_=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(_)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),M=this.getIdTokenStoredAt(),_=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(_)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,M){const _=this.dateTimeService.now();return Math.max(0,(M-E)*this.timeoutFactor-(_-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((M,_)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(L=>{if(!this.validateDiscoveryDocument(L))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void _("discovery_document_validation_error");this.loginUrl=L.authorization_endpoint,this.logoutUrl=L.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=L.grant_types_supported,this.issuer=L.issuer,this.tokenEndpoint=L.token_endpoint,this.userinfoEndpoint=L.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=L.jwks_uri,this.sessionCheckIFrameUrl=L.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(L),this.revocationEndpoint=L.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(F=>{const q=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:L,jwks:F});this.eventsSubject.next(q),M(q)}).catch(F=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",F)),_(F)})},L=>{this.logger.error("error loading discovery document",L),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",L)),_(L)}):_("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,M)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(_=>{this.jwks=_,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(_)},_=>{this.logger.error("error loading jwks",_),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",_)),M(_)}):E(null)})}validateDiscoveryDocument(E){let M;return this.skipIssuerCheck||E.issuer===this.issuer?(M=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),M.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),M.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.token_endpoint),M.length>0&&this.logger.error("error validating token_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),M.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),M.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.jwks_uri),M.length>0?(this.logger.error("error validating jwks_uri in discovery document",M),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,M,_=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,M,_).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,M)=>{const _=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:_,observe:"response",responseType:"text"}).subscribe(L=>{if(this.debug("userinfo received",JSON.stringify(L)),L.headers.get("content-type").startsWith("application/json")){let F=JSON.parse(L.body);const V=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!V.sub||F.sub!==V.sub))return void M("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");F=Object.assign({},V,F),this._storage.setItem("id_token_claims_obj",JSON.stringify(F)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:F})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(L.body))},L=>{this.logger.error("error loading user info",L),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",L)),M(L)})})}fetchTokenUsingPasswordFlow(E,M,_=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:M},_)}fetchTokenUsingGrant(E,M,_=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let L=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);_=_.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(L=L.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(L=L.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))L=L.set(F,this.customQueryParams[F]);for(const F of Object.keys(M))L=L.set(F,M[F]);return _=_.set("Content-Type","application/x-www-form-urlencoded"),new Promise((F,V)=>{this.http.post(this.tokenEndpoint,L,{headers:_}).subscribe(q=>{this.debug("tokenResponse",q),this.storeAccessTokenResponse(q.access_token,q.refresh_token,q.expires_in||this.fallbackAccessTokenExpirationTimeInSec,q.scope,this.extractRecognizedCustomParameters(q)),this.oidc&&q.id_token&&this.processIdToken(q.id_token,q.access_token).then(Q=>{this.storeIdToken(Q),F(q)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),F(q)},q=>{this.logger.error("Error performing ${grantType} flow",q),this.eventsSubject.next(new OAuthErrorEvent("token_error",q)),V(q)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,M)=>{let _=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),L=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);L=L.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(_=_.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(_=_.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))_=_.set(F,this.customQueryParams[F]);this.http.post(this.tokenEndpoint,_,{headers:L}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(F=>F.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(F.id_token,F.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(V=>this.storeIdToken(V)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(V=>F)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(F))).subscribe(F=>{this.debug("refresh tokenResponse",F),this.storeAccessTokenResponse(F.access_token,F.refresh_token,F.expires_in||this.fallbackAccessTokenExpirationTimeInSec,F.scope,this.extractRecognizedCustomParameters(F)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(F)},F=>{this.logger.error("Error refreshing token",F),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",F)),M(F)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const M=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:M,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(_=>this.debug("tryLogin during silent refresh failed",_))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},M=!0){const _=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const L=this.document.getElementById(this.silentRefreshIFrameName);L&&this.document.body.removeChild(L),this.silentRefreshSubject=_.sub;const F=this.document.createElement("iframe");F.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,M,E).then(W=>{F.setAttribute("src",W),this.silentRefreshShowIFrame||(F.style.display="none"),this.document.body.appendChild(F)});const q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>W instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>"token_received"===W.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),ee=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([q,Q,ee]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(W=>{if(W instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===W.type||(W=new OAuthErrorEvent("silent_refresh_error",W)),this.eventsSubject.next(W),W;return"token_received"===W.type&&(W=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(W)),W})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(M=>new Promise((_,L)=>{let q,V=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(V=E.windowRef,V.location.href=M):V=window.open(M,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const Q=re=>{this.tryLogin({customHashFragment:re,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{W(),_(!0)},oe=>{W(),L(oe)})};V?q=window.setInterval(()=>{(!V||V.closed)&&(W(),L(new OAuthErrorEvent("popup_closed",{})))},500):L(new OAuthErrorEvent("popup_blocked",{}));const W=()=>{window.clearInterval(q),window.removeEventListener("storage",G),window.removeEventListener("message",Y),null!==V&&V.close(),V=null},Y=re=>{const oe=this.processMessageEventMessage(re);oe&&null!==oe?(window.removeEventListener("storage",G),Q(oe)):console.log("false event firing")},G=re=>{"auth_hash"===re.key&&(window.removeEventListener("message",Y),Q(re.newValue))};window.addEventListener("message",Y),window.addEventListener("storage",G)}))}calculatePopupFeatures(E){const M=E.height||470,_=E.width||500,L=window.screenLeft+(window.outerWidth-_)/2;return`location=no,toolbar=no,width=${_},height=${M},top=${window.screenTop+(window.outerHeight-M)/2},left=${L}`}processMessageEventMessage(E){let M="#";if(this.silentRefreshMessagePrefix&&(M+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const _=E.data;return _.startsWith(M)?"#"+_.substr(M.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const M=E.origin.toLowerCase(),_=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),_.startsWith(M)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",M,"expected",_,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const M=this.document.createElement("iframe");M.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),M.setAttribute("src",this.sessionCheckIFrameUrl),M.style.display="none",this.document.body.appendChild(M),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const M=this.getSessionState();M||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+M,this.issuer)}createLoginUrl(E="",M="",_="",L=!1,F={}){var V=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const q=V;let Q;Q=_||V.redirectUri;const ee=yield V.createAndSaveNonce();if(E=E?ee+V.config.nonceStateSeparator+encodeURIComponent(E):ee,!V.requestAccessToken&&!V.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");V.responseType=V.config.responseType?V.config.responseType:V.oidc&&V.requestAccessToken?"id_token token":V.oidc&&!V.requestAccessToken?"id_token":"token";const W=q.loginUrl.indexOf("?")>-1?"&":"?";let Y=q.scope;V.oidc&&!Y.match(/(^|\s)openid($|\s)/)&&(Y="openid "+Y);let G=q.loginUrl+W+"response_type="+encodeURIComponent(q.responseType)+"&client_id="+encodeURIComponent(q.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(Q)+"&scope="+encodeURIComponent(Y);if(V.responseType.includes("code")&&!V.disablePKCE){const[re,oe]=yield V.createChallangeVerifierPairForPKCE();V.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",oe):V._storage.setItem("PKCE_verifier",oe),G+="&code_challenge="+re,G+="&code_challenge_method=S256"}M&&(G+="&login_hint="+encodeURIComponent(M)),q.resource&&(G+="&resource="+encodeURIComponent(q.resource)),q.oidc&&(G+="&nonce="+encodeURIComponent(ee)),L&&(G+="&prompt=none");for(const re of Object.keys(F))G+="&"+encodeURIComponent(re)+"="+encodeURIComponent(F[re]);if(V.customQueryParams)for(const re of Object.getOwnPropertyNames(V.customQueryParams))G+="&"+re+"="+encodeURIComponent(V.customQueryParams[re]);return G})()}initImplicitFlowInternal(E="",M=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let _={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(_=M),this.createLoginUrl(E,L,null,!1,_).then(this.config.openUri).catch(F=>{console.error("Error in initImplicitFlow",F),this.inImplicitFlow=!1})}initImplicitFlow(E="",M=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,M):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(_=>"discovery_document_loaded"===_.type)).subscribe(_=>this.initImplicitFlowInternal(E,M))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const M=this;if(E.onTokenReceived){const _={idClaims:M.getIdentityClaims(),idToken:M.getIdToken(),accessToken:M.getAccessToken(),state:M.state};E.onTokenReceived(_)}}storeAccessTokenResponse(E,M,_,L,F){if(this._storage.setItem("access_token",E),L&&!Array.isArray(L)?this._storage.setItem("granted_scopes",JSON.stringify(L.split(" "))):L&&Array.isArray(L)&&this._storage.setItem("granted_scopes",JSON.stringify(L)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),_){const V=1e3*_,Q=this.dateTimeService.new().getTime()+V;this._storage.setItem("expires_at",""+Q)}M&&this._storage.setItem("refresh_token",M),F&&F.forEach((V,q)=>{this._storage.setItem(q,V)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(M=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){var M=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const _=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,L=M.getCodePartsFromUrl(_),F=L.code,V=L.state,q=L.session_state;if(!E.preventClearHashAfterLogin){const W=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,W)}let[Q,ee]=M.parseState(V);if(M.state=ee,L.error){M.debug("error trying to login"),M.handleLoginError(E,L);const W=new OAuthErrorEvent("code_error",{},L);return M.eventsSubject.next(W),Promise.reject(W)}if(!E.disableNonceCheck){if(!Q)return M.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!M.validateNonce(Q)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return M.eventsSubject.next(Y),Promise.reject(Y)}return M.storeSessionState(q),F&&(yield M.getTokenFromCode(F,E),M.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,M){let _=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",M.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let L;L=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),L?_=_.set("code_verifier",L):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(_,M)}fetchAndProcessToken(E,M){M=M||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let _=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const L=btoa(`${this.clientId}:${this.dummyClientSecret}`);_=_.set("Authorization","Basic "+L)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((L,F)=>{if(this.customQueryParams)for(let V of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(V,this.customQueryParams[V]);this.http.post(this.tokenEndpoint,E,{headers:_}).subscribe(V=>{this.debug("refresh tokenResponse",V),this.storeAccessTokenResponse(V.access_token,V.refresh_token,V.expires_in||this.fallbackAccessTokenExpirationTimeInSec,V.scope,this.extractRecognizedCustomParameters(V)),this.oidc&&V.id_token?this.processIdToken(V.id_token,V.access_token,M.disableNonceCheck).then(q=>{this.storeIdToken(q),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(V)}).catch(q=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",q)),console.error("Error validating tokens"),console.error(q),F(q)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(V))},V=>{console.error("Error getting token",V),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",V)),F(V)})})}tryLoginImplicitFlow(E=null){let M;M=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",M);const _=M.state;let[L,F]=this.parseState(_);if(this.state=F,M.error){this.debug("error trying to login"),this.handleLoginError(E,M);const W=new OAuthErrorEvent("token_error",{},M);return this.eventsSubject.next(W),Promise.reject(W)}const V=M.access_token,q=M.id_token,Q=M.session_state,ee=M.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!V||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!_||this.oidc&&!q)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!Q&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(L)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(Y),Promise.reject(Y)}return this.requestAccessToken&&this.storeAccessTokenResponse(V,null,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,ee),this.oidc?this.processIdToken(q,V,E.disableNonceCheck).then(W=>E.validationHandler?E.validationHandler({accessToken:V,idClaims:W.idTokenClaims,idToken:W.idToken,state:_}).then(Y=>W):W).then(W=>(this.storeIdToken(W),this.storeSessionState(Q),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(W=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",W)),this.logger.error("Error validating tokens"),this.logger.error(W),Promise.reject(W))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let M=E,_="";if(E){const L=E.indexOf(this.config.nonceStateSeparator);L>-1&&(M=E.substr(0,L),_=E.substr(L+this.config.nonceStateSeparator.length))}return[M,_]}validateNonce(E){let M;return M=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),M===E||(console.error("Validating access_token failed, wrong state/nonce.",M,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,M){E.onLoginError&&E.onLoginError(M),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,M,_=!1){const L=E.split("."),V=b64DecodeUnicode(this.padBase64(L[0])),q=JSON.parse(V),ee=b64DecodeUnicode(this.padBase64(L[1])),W=JSON.parse(ee);let Y;if(Y=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(W.aud)){if(W.aud.every(he=>he!==this.clientId)){const he="Wrong audience: "+W.aud.join(",");return this.logger.warn(he),Promise.reject(he)}}else if(W.aud!==this.clientId){const he="Wrong audience: "+W.aud;return this.logger.warn(he),Promise.reject(he)}if(!W.sub){const he="No sub claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==W.sub){const he=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${W.sub}`;return this.logger.warn(he),Promise.reject(he)}if(!W.iat){const he="No iat claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(!this.skipIssuerCheck&&W.iss!==this.issuer){const he="Wrong issuer: "+W.iss;return this.logger.warn(he),Promise.reject(he)}if(!_&&W.nonce!==Y){const he="Wrong nonce: "+W.nonce;return this.logger.warn(he),Promise.reject(he)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!W.at_hash){const he="An at_hash is needed!";return this.logger.warn(he),Promise.reject(he)}const G=this.dateTimeService.now(),re=1e3*W.iat,oe=1e3*W.exp,te=this.getClockSkewInMsec();if(re-te>=G||oe+te<=G){const he="Token has expired";return console.error(he),console.error({now:G,issuedAtMSec:re,expiresAtMSec:oe}),Promise.reject(he)}const ae={accessToken:M,idToken:E,jwks:this.jwks,idTokenClaims:W,idTokenHeader:q,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ae).then(he=>({idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:V,idTokenExpiresAt:oe})):this.checkAtHash(ae).then(he=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!he){const fe="Wrong at_hash";return this.logger.warn(fe),Promise.reject(fe)}return this.checkSignature(ae).then(fe=>{const Le={idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:V,idTokenExpiresAt:oe};return this.disableAtHashCheck?Le:this.checkAtHash(ae).then(Fe=>{if(this.requestAccessToken&&!Fe){const Ae="Wrong at_hash";return this.logger.warn(Ae),Promise.reject(Ae)}return Le})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),M=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},M=""){let _=!1;"boolean"==typeof E&&(_=E,E={});const L=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(V=>this._storage.removeItem(V)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||_||!L&&!this.postLogoutRedirectUri)return;let F;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)F=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(L)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});L&&(V=V.set("id_token_hint",L));const q=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";q&&(V=V.set("post_logout_redirect_uri",q),M&&(V=V.set("state",M)));for(let Q in E)V=V.set(Q,E[Q]);F=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+V.toString()}this.config.openUri(F)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(M){return E.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",M):E._storage.setItem("nonce",M),M})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const M=this.document.getElementById(this.sessionCheckIFrameName);M&&M.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let _=45,L="";const F=typeof self>"u"?null:self.crypto||self.msCrypto;if(F){let V=new Uint8Array(_);F.getRandomValues(V),V.map||(V.map=Array.prototype.map),V=V.map(q=>M.charCodeAt(q%M.length)),L=String.fromCharCode.apply(null,V)}else for(;0<_--;)L+=M[Math.random()*M.length|0];E(base64UrlEncode(L))})}checkAtHash(E){var M=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return M.tokenValidationHandler?M.tokenValidationHandler.validateAtHash(E):(M.logger.warn("No tokenValidationHandler configured. Cannot check at_hash."),!0)})()}checkSignature(E){return this.tokenValidationHandler?this.tokenValidationHandler.validateSignature(E):(this.logger.warn("No tokenValidationHandler configured. Cannot check signature."),Promise.resolve(null))}initLoginFlow(E="",M={}){return"code"===this.responseType?this.initCodeFlow(E,M):this.initImplicitFlow(E,M)}initCodeFlow(E="",M={}){""!==this.loginUrl?this.initCodeFlowInternal(E,M):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(_=>"discovery_document_loaded"===_.type)).subscribe(_=>this.initCodeFlowInternal(E,M))}initCodeFlowInternal(E="",M={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let _={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(_=M),this.createLoginUrl(E,L,null,!1,_).then(this.config.openUri).catch(F=>{console.error("Error in initAuthorizationCodeFlow"),console.error(F)})}createChallangeVerifierPairForPKCE(){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!E.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const M=yield E.createNonce();return[base64UrlEncode(yield E.crypto.calcHash(M,"sha-256")),M]})()}extractRecognizedCustomParameters(E){let M=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(_=>{E[_]&&M.set(_,JSON.stringify(E[_]))}),M}revokeTokenAndLogout(E={},M=!1){let _=this.revocationEndpoint,L=this.getAccessToken(),F=this.getRefreshToken();if(!L)return;let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),q=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const Q=btoa(`${this.clientId}:${this.dummyClientSecret}`);q=q.set("Authorization","Basic "+Q)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const Q of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(Q,this.customQueryParams[Q]);return new Promise((Q,ee)=>{let W,Y;if(L){let G=V.set("token",L).set("token_type_hint","access_token");W=this.http.post(_,G,{headers:q})}else W=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(F){let G=V.set("token",F).set("token_type_hint","refresh_token");Y=this.http.post(_,G,{headers:q})}else Y=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);M&&(W=W.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G))),Y=Y.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([W,Y]).subscribe(G=>{this.logOut(E),Q(G),this.logger.info("Token successfully revoked")},G=>{this.logger.error("Error revoking token",G),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",G)),ee(G)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(z){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(z)}}let DefaultOAuthInterceptor=(()=>{class N{constructor(E,M,_){this.oAuthService=E,this.errorHandler=M,this.moduleConfig=_}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(M=>E.toLowerCase().startsWith(M.toLowerCase()))}intercept(E,M){const _=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(_)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>!!F)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_received"===F.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(F=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(F=>{if(F){const q=E.headers.set("Authorization","Bearer "+F);E=E.clone({headers:q})}return M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(V=>this.errorHandler.handleError(V)))})):M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>this.errorHandler.handleError(F))):M.handle(E)}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class NullValidationHandler{validateSignature(z){return Promise.resolve(null)}validateAtHash(z){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class N{static forRoot(E=null,M=NullValidationHandler){return{ngModule:N,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:M},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:N}),N.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),N})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(N,z,E)=>{"use strict";function M(L,F,V,q,Q,ee,W){try{var Y=L[ee](W),G=Y.value}catch(re){return void V(re)}Y.done?F(G):Promise.resolve(G).then(q,Q)}function _(L){return function(){var F=this,V=arguments;return new Promise(function(q,Q){var ee=L.apply(F,V);function W(G){M(ee,q,Q,W,Y,"next",G)}function Y(G){M(ee,q,Q,W,Y,"throw",G)}W(void 0)})}}E.d(z,{Z:()=>_})},4147:N=>{"use strict";N.exports={i8:"10.5.0"}}},N=>{N(N.s=1200)}]); \ No newline at end of file diff --git a/dist/apps/linker/main.8d26f22202574299.js b/dist/apps/linker/main.8d26f22202574299.js deleted file mode 100644 index 17a2eab96..000000000 --- a/dist/apps/linker/main.8d26f22202574299.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunklinker=self.webpackChunklinker||[]).push([[179],{6763:(N,z,E)=>{"use strict";var M=E(6895),_=E(4650);class L extends M.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class F extends L{static makeCurrent(){(0,M.HT)(new F)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function q(){return V=V||document.querySelector("base"),V?V.getAttribute("href"):null}();return null==e?null:function ee(o){Q=Q||document.createElement("a"),Q.setAttribute("href",o);const r=Q.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){V=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,M.Mx)(document.cookie,r)}}let Q,V=null;const W=new _.OlP("TRANSITION_ID"),G=[{provide:_.ip1,useFactory:function Y(o,r,e){return()=>{e.get(_.CZH).donePromise.then(()=>{const t=(0,M.q)(),s=r.querySelectorAll(`style[ng-transition="${o}"]`);for(let u=0;u{class o{build(){return new XMLHttpRequest}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const ie=new _.OlP("EventManagerPlugins");let ae=(()=>{class o{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,s){return this._findPluginFor(t).addEventListener(e,t,s)}addGlobalEventListener(e,t,s){return this._findPluginFor(t).addGlobalEventListener(e,t,s)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const s=this._plugins;for(let u=0;u{class o{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),t.add(s))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),be=(()=>{class o extends fe{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,s){e.forEach(u=>{const d=this._doc.createElement("style");d.textContent=u,s.push(t.appendChild(d))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Le),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,s)=>{this._addStylesToHost(e,s,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Le))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();function Le(o){(0,M.q)().remove(o)}const Fe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ae=/%COMP%/g;function le(o,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return o;!1===o(r)&&(r.preventDefault(),r.returnValue=!1)}}let pe=(()=>{class o{constructor(e,t,s){this.eventManager=e,this.sharedStylesHost=t,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new Ve(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case _.ifc.Emulated:{let s=this.rendererByCompId.get(t.id);return s||(s=new Ht(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,s)),s.applyToHost(e),s}case 1:case _.ifc.ShadowDom:return new Ne(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const s=le(t.id,t.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(ae),_.LFG(be),_.LFG(_.AFp))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class Ve{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Fe[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(At(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(At(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,s){if(s){e=s+":"+e;const u=Fe[s];u?r.setAttributeNS(u,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const s=Fe[t];s?r.removeAttributeNS(s,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,s){s&(_.JOm.DashCase|_.JOm.Important)?r.style.setProperty(e,t,s&_.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&_.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,ce(t)):this.eventManager.addEventListener(r,e,ce(t))}}function At(o){return"TEMPLATE"===o.tagName&&void 0!==o.content}class Ht extends Ve{constructor(r,e,t,s){super(r),this.component=t;const u=le(s+"-"+t.id,t.styles,[]);e.addStyles(u),this.contentAttr=function Re(o){return"_ngcontent-%COMP%".replace(Ae,o)}(s+"-"+t.id),this.hostAttr=function He(o){return"_nghost-%COMP%".replace(Ae,o)}(s+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Ne extends Ve{constructor(r,e,t,s){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=le(s.id,s.styles,[]);for(let d=0;d{class o extends he{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,s){return e.addEventListener(t,s,!1),()=>this.removeEventListener(e,t,s)}removeEventListener(e,t,s){return e.removeEventListener(t,s)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const Nn=["alt","control","meta","shift"],St={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},xn={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},ci={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey};let Or=(()=>{class o extends he{constructor(e){super(e)}supports(e){return null!=o.parseEventName(e)}addEventListener(e,t,s){const u=o.parseEventName(t),d=o.eventCallback(u.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,M.q)().onAndCancel(e,u.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),s=t.shift();if(0===t.length||"keydown"!==s&&"keyup"!==s)return null;const u=o._normalizeKey(t.pop());let d="";if(Nn.forEach(n=>{const i=t.indexOf(n);i>-1&&(t.splice(i,1),d+=n+".")}),d+=u,0!=t.length||0===u.length)return null;const l={};return l.domEventName=s,l.fullKey=d,l}static getEventFullKey(e){let t="",s=function Wl(o){let r=o.key;if(null==r){if(r=o.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===o.location&&xn.hasOwnProperty(r)&&(r=xn[r]))}return St[r]||r}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),Nn.forEach(u=>{u!=s&&(0,ci[u])(e)&&(t+=u+".")}),t+=s,t}static eventCallback(e,t,s){return u=>{o.getEventFullKey(u)===e&&s.runGuarded(()=>t(u))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const Ke=(0,_.eFA)(_._c5,"browser",[{provide:_.Lbi,useValue:M.bD},{provide:_.g9A,useValue:function qn(){F.makeCurrent()},multi:!0},{provide:M.K0,useFactory:function ma(){return(0,_.RDi)(document),document},deps:[]}]),pi=new _.OlP(""),ga=[{provide:_.rWj,useClass:class re{addToWindow(r){_.dqk.getAngularTestability=(t,s=!0)=>{const u=r.findTestabilityInTree(t,s);if(null==u)throw new Error("Could not find testability for element.");return u},_.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),_.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),_.dqk.frameworkStabilizers||(_.dqk.frameworkStabilizers=[]),_.dqk.frameworkStabilizers.push(t=>{const s=_.dqk.getAllAngularTestabilities();let u=s.length,d=!1;const l=function(n){d=d||n,u--,0==u&&t(d)};s.forEach(function(n){n.whenStable(l)})})}findTestabilityInTree(r,e,t){return null==e?null:r.getTestability(e)??(t?(0,M.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:_.lri,useClass:_.dDg,deps:[_.R0b,_.eoX,_.rWj]},{provide:_.dDg,useClass:_.dDg,deps:[_.R0b,_.eoX,_.rWj]}],Pi=[{provide:_.zSh,useValue:"root"},{provide:_.qLn,useFactory:function zn(){return new _.qLn},deps:[]},{provide:ie,useClass:Ri,multi:!0,deps:[M.K0,_.R0b,_.Lbi]},{provide:ie,useClass:Or,multi:!0,deps:[M.K0]},{provide:pe,useClass:pe,deps:[ae,be,_.AFp]},{provide:_.FYo,useExisting:pe},{provide:fe,useExisting:be},{provide:be,useClass:be,deps:[M.K0]},{provide:ae,useClass:ae,deps:[ie,_.R0b]},{provide:M.JF,useClass:oe,deps:[]},[]];let _a=(()=>{class o{constructor(e){}static withServerTransition(e){return{ngModule:o,providers:[{provide:_.AFp,useValue:e.appId},{provide:W,useExisting:_.AFp},G]}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(pi,12))},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[...Pi,...ga],imports:[M.ez,_.hGG]}),o})(),X=(()=>{class o{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function ye(){return new X((0,_.LFG)(M.K0))}(),t},providedIn:"root"}),o})();typeof window<"u"&&window;let Ci=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:function(e){let t=null;return t=e?new(e||o):_.LFG(at),t},providedIn:"root"}),o})(),at=(()=>{class o extends Ci{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case _.q3G.NONE:return t;case _.q3G.HTML:return(0,_.qzn)(t,"HTML")?(0,_.z3N)(t):(0,_.EiD)(this._doc,String(t)).toString();case _.q3G.STYLE:return(0,_.qzn)(t,"Style")?(0,_.z3N)(t):t;case _.q3G.SCRIPT:if((0,_.qzn)(t,"Script"))return(0,_.z3N)(t);throw new Error("unsafe value used in a script context");case _.q3G.URL:return(0,_.qzn)(t,"URL")?(0,_.z3N)(t):(0,_.mCW)(String(t));case _.q3G.RESOURCE_URL:if((0,_.qzn)(t,"ResourceURL"))return(0,_.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,_.JVY)(e)}bypassSecurityTrustStyle(e){return(0,_.L6k)(e)}bypassSecurityTrustScript(e){return(0,_.eBb)(e)}bypassSecurityTrustUrl(e){return(0,_.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,_.pB0)(e)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function Oe(o){return new at(o.get(M.K0))}(_.LFG(_.zs3)),t},providedIn:"root"}),o})();var _t=E(2076),ke=E(9646),Ee=E(7579);class Ut extends Ee.x{constructor(r){super(),this._value=r}get value(){return this.getValue()}_subscribe(r){const e=super._subscribe(r);return!e.closed&&r.next(this._value),e}getValue(){const{hasError:r,thrownError:e,_value:t}=this;if(r)throw e;return this._throwIfClosed(),t}next(r){super.next(this._value=r)}}var Rt=E(6805),_r=E(9841),Ui=E(7272),Qe=E(9751),Gn=E(8421);function on(o){return new Qe.y(r=>{(0,Gn.Xf)(o()).subscribe(r)})}var Ca=E(9635),wi=E(2843),Nt=E(515),Gt=E(727),di=E(4482),Lt=E(5403);function Tn(){return(0,di.e)((o,r)=>{let e=null;o._refCount++;const t=(0,Lt.x)(r,void 0,void 0,void 0,()=>{if(!o||o._refCount<=0||0<--o._refCount)return void(e=null);const s=o._connection,u=e;e=null,s&&(!u||s===u)&&s.unsubscribe(),r.unsubscribe()});o.subscribe(t),t.closed||(e=o.connect())})}class vs extends Qe.y{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,di.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new Gt.w0;const e=this.getSubject();r.add(this.source.subscribe((0,Lt.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),r.closed&&(this._connection=null,r=Gt.w0.EMPTY)}return r}refCount(){return Tn()(this)}}var qe=E(4004),Bi=E(3900),ri=E(5698),wa=E(3269);function Si(...o){const r=(0,wa.yG)(o);return(0,di.e)((e,t)=>{(r?(0,Ui.z)(o,e,r):(0,Ui.z)(o,e)).subscribe(t)})}var Wt=E(9300),fi=E(5577),Vi=E(590),Bt=E(4351),$t=E(8505),Et=E(262);function sn(o,r,e,t,s){return(u,d)=>{let l=e,n=r,i=0;u.subscribe((0,Lt.x)(d,a=>{const c=i++;n=l?o(n,a,c):(l=!0,a),t&&d.next(n)},s&&(()=>{l&&d.next(n),d.complete()})))}}function ya(o,r){return(0,di.e)(sn(o,r,arguments.length>=2,!0))}function Wn(o){return o<=0?()=>Nt.E:(0,di.e)((r,e)=>{let t=[];r.subscribe((0,Lt.x)(e,s=>{t.push(s),o{for(const s of t)e.next(s);e.complete()},void 0,()=>{t=null}))})}var br=E(8068),Oi=E(6590),Ql=E(4671);function $p(o,r){const e=arguments.length>=2;return t=>t.pipe(o?(0,Wt.h)((s,u)=>o(s,u,t)):Ql.y,Wn(1),e?(0,Oi.d)(r):(0,br.T)(()=>new Rt.K))}var Zd=E(9718);function va(o){return(0,di.e)((r,e)=>{try{r.subscribe(e)}finally{e.add(o)}})}var As=E(8189);const ht="primary";class pn{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Aa(o){return new pn(o)}function Qp(o,r,e){const t=e.path.split("/");if(t.length>o.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[u]===s)}return o===r}function eu(o){return Array.prototype.concat.apply([],o)}function tu(o){return o.length>0?o[o.length-1]:null}function yi(o,r){for(const e in o)o.hasOwnProperty(e)&&r(o[e],e)}function $n(o){return(0,_.CqO)(o)?o:(0,_.QGY)(o)?(0,_t.D)(Promise.resolve(o)):(0,ke.of)(o)}const Jp={exact:function Jl(o,r,e){if(!wr(o.segments,r.segments)||!go(o.segments,r.segments,e)||o.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!o.children[t]||!Jl(o.children[t],r.children[t],e))return!1;return!0},subset:Ss},iu={exact:function Cr(o,r){return En(o,r)},subset:function mo(o,r){return Object.keys(r).length<=Object.keys(o).length&&Object.keys(r).every(e=>Xd(o[e],r[e]))},ignored:()=>!0};function nu(o,r,e){return Jp[e.paths](o.root,r.root,e.matrixParams)&&iu[e.queryParams](o.queryParams,r.queryParams)&&!("exact"===e.fragment&&o.fragment!==r.fragment)}function Ss(o,r,e){return Kl(o,r,r.segments,e)}function Kl(o,r,e,t){if(o.segments.length>e.length){const s=o.segments.slice(0,e.length);return!(!wr(s,e)||r.hasChildren()||!go(s,e,t))}if(o.segments.length===e.length){if(!wr(o.segments,e)||!go(o.segments,e,t))return!1;for(const s in r.children)if(!o.children[s]||!Ss(o.children[s],r.children[s],t))return!1;return!0}{const s=e.slice(0,o.segments.length),u=e.slice(o.segments.length);return!!(wr(o.segments,s)&&go(o.segments,s,t)&&o.children[ht])&&Kl(o.children[ht],r,u,t)}}function go(o,r,e){return r.every((t,s)=>iu[e](o[s].parameters,t.parameters))}class fn{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Aa(this.queryParams)),this._queryParamMap}toString(){return Es.serialize(this)}}class dt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,yi(e,(t,s)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bo(this)}}class xa{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Aa(this.parameters)),this._parameterMap}toString(){return Co(this)}}function wr(o,r){return o.length===r.length&&o.every((e,t)=>e.path===r[t].path)}let _o=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:function(){return new Ts},providedIn:"root"}),o})();class Ts{parse(r){const e=new ue(r);return new fn(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${Ms(r.root,!0)}`,t=function qi(o){const r=Object.keys(o).map(e=>{const t=o[e];return Array.isArray(t)?t.map(s=>`${Ds(e)}=${Ds(s)}`).join("&"):`${Ds(e)}=${Ds(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function Qb(o){return encodeURI(o)}(r.fragment)}`:""}`}}const Es=new Ts;function bo(o){return o.segments.map(r=>Co(r)).join("/")}function Ms(o,r){if(!o.hasChildren())return bo(o);if(r){const e=o.children[ht]?Ms(o.children[ht],!1):"",t=[];return yi(o.children,(s,u)=>{u!==ht&&t.push(`${u}:${Ms(s,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Ni(o,r){let e=[];return yi(o.children,(t,s)=>{s===ht&&(e=e.concat(r(t,s)))}),yi(o.children,(t,s)=>{s!==ht&&(e=e.concat(r(t,s)))}),e}(o,(t,s)=>s===ht?[Ms(o.children[ht],!1)]:[`${s}:${Ms(t,!1)}`]);return 1===Object.keys(o.children).length&&null!=o.children[ht]?`${bo(o)}/${e[0]}`:`${bo(o)}/(${e.join("//")})`}}function Yt(o){return encodeURIComponent(o).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ds(o){return Yt(o).replace(/%3B/gi,";")}function Fr(o){return Yt(o).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ti(o){return decodeURIComponent(o)}function Hs(o){return Ti(o.replace(/\+/g,"%20"))}function Co(o){return`${Fr(o.path)}${function Sa(o){return Object.keys(o).map(r=>`;${Fr(r)}=${Fr(o[r])}`).join("")}(o.parameters)}`}const P=/^[^\/()?;=#]+/;function O(o){const r=o.match(P);return r?r[0]:""}const I=/^[^=?&#]+/,ne=/^[^&#]+/;class ue{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dt([],{}):new dt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[ht]=new dt(r,e)),t}parseSegment(){const r=O(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new _.vHH(4009,!1);return this.capture(r),new xa(Ti(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=O(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const s=O(this.remaining);s&&(t=s,this.capture(t))}r[Ti(e)]=Ti(t)}parseQueryParam(r){const e=function j(o){const r=o.match(I);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function me(o){const r=o.match(ne);return r?r[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const s=Hs(e),u=Hs(t);if(r.hasOwnProperty(s)){let d=r[s];Array.isArray(d)||(d=[d],r[s]=d),d.push(u)}else r[s]=u}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=O(this.remaining),s=this.remaining[t.length];if("/"!==s&&")"!==s&&";"!==s)throw new _.vHH(4010,!1);let u;t.indexOf(":")>-1?(u=t.slice(0,t.indexOf(":")),this.capture(u),this.capture(":")):r&&(u=ht);const d=this.parseChildren();e[u]=1===Object.keys(d).length?d[ht]:new dt([],d),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new _.vHH(4011,!1)}}function Ge(o){return o.segments.length>0?new dt([],{[ht]:o}):o}function Dt(o){const r={};for(const t of Object.keys(o.children)){const u=Dt(o.children[t]);(u.segments.length>0||u.hasChildren())&&(r[t]=u)}return function Vt(o){if(1===o.numberOfChildren&&o.children[ht]){const r=o.children[ht];return new dt(o.segments.concat(r.segments),r.children)}return o}(new dt(o.segments,r))}function wt(o){return o instanceof fn}function we(o,r,e,t,s){if(0===e.length)return Ji(r.root,r.root,r.root,t,s);const u=function yr(o){if("string"==typeof o[0]&&1===o.length&&"/"===o[0])return new Ta(!0,0,o);let r=0,e=!1;const t=o.reduce((s,u,d)=>{if("object"==typeof u&&null!=u){if(u.outlets){const l={};return yi(u.outlets,(n,i)=>{l[i]="string"==typeof n?n.split("/"):n}),[...s,{outlets:l}]}if(u.segmentPath)return[...s,u.segmentPath]}return"string"!=typeof u?[...s,u]:0===d?(u.split("/").forEach((l,n)=>{0==n&&"."===l||(0==n&&""===l?e=!0:".."===l?r++:""!=l&&s.push(l))}),s):[...s,u]},[]);return new Ta(e,r,t)}(e);return u.toRoot()?Ji(r.root,r.root,new dt([],{}),t,s):function d(n){const i=function au(o,r,e,t){if(o.isAbsolute)return new zi(r.root,!0,0);if(-1===t)return new zi(e,e===r.root,0);return function Yb(o,r,e){let t=o,s=r,u=e;for(;u>s;){if(u-=s,t=t.parent,!t)throw new _.vHH(4005,!1);s=t.segments.length}return new zi(t,!1,s-u)}(e,t+(ot(o.commands[0])?0:1),o.numberOfDoubleDots)}(u,r,o.snapshot?._urlSegment,n),a=i.processChildren?Ur(i.segmentGroup,i.index,u.commands):Kp(i.segmentGroup,i.index,u.commands);return Ji(r.root,i.segmentGroup,a,t,s)}(o.snapshot?._lastPathIndex)}function ot(o){return"object"==typeof o&&null!=o&&!o.outlets&&!o.segmentPath}function Mn(o){return"object"==typeof o&&null!=o&&o.outlets}function Ji(o,r,e,t,s){let d,u={};t&&yi(t,(n,i)=>{u[i]=Array.isArray(n)?n.map(a=>`${a}`):`${n}`}),d=o===r?e:Qt(o,r,e);const l=Ge(Dt(d));return new fn(l,u,s)}function Qt(o,r,e){const t={};return yi(o.children,(s,u)=>{t[u]=s===r?e:Qt(s,r,e)}),new dt(o.segments,t)}class Ta{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&ot(t[0]))throw new _.vHH(4003,!1);const s=t.find(Mn);if(s&&s!==tu(t))throw new _.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class zi{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function Kp(o,r,e){if(o||(o=new dt([],{})),0===o.segments.length&&o.hasChildren())return Ur(o,r,e);const t=function Gi(o,r,e){let t=0,s=r;const u={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return u;const d=o.segments[s],l=e[t];if(Mn(l))break;const n=`${l}`,i=t0&&void 0===n)break;if(n&&i&&"object"==typeof i&&void 0===i.outlets){if(!Qn(n,i,d))return u;t+=2}else{if(!Qn(n,{},d))return u;t++}s++}return{match:!0,pathIndex:s,commandIndex:t}}(o,r,e),s=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof u&&(u=[u]),null!==u&&(s[d]=Kp(o.children[d],r,u))}),yi(o.children,(u,d)=>{void 0===t[d]&&(s[d]=u)}),new dt(o.segments,s)}}function Dn(o,r,e){const t=o.segments.slice(0,r);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=Dn(new dt([],{}),0,e))}),r}function Ea(o){const r={};return yi(o,(e,t)=>r[t]=`${e}`),r}function Qn(o,r,e){return o==e.path&&En(r,e.parameters)}class vr{constructor(r,e){this.id=r,this.url=e}}class Xl extends vr{constructor(r,e,t="imperative",s=null){super(r,e),this.type=0,this.navigationTrigger=t,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Nr extends vr{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ec extends vr{constructor(r,e,t,s){super(r,e),this.reason=t,this.code=s,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class tc extends vr{constructor(r,e,t,s){super(r,e),this.error=t,this.target=s,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ou extends vr{constructor(r,e,t,s){super(r,e),this.urlAfterRedirects=t,this.state=s,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xp extends vr{constructor(r,e,t,s){super(r,e),this.urlAfterRedirects=t,this.state=s,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class su extends vr{constructor(r,e,t,s,u){super(r,e),this.urlAfterRedirects=t,this.state=s,this.shouldActivate=u,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Kb extends vr{constructor(r,e,t,s){super(r,e),this.urlAfterRedirects=t,this.state=s,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ef extends vr{constructor(r,e,t,s){super(r,e),this.urlAfterRedirects=t,this.state=s,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lu{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class tf{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class nf{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rf{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class af{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cu{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sf{constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Li{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=Yn(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=Yn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=qt(r,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==r)}pathFromRoot(r){return qt(r,this._root).map(e=>e.value)}}function Yn(o,r){if(o===r.value)return r;for(const e of r.children){const t=Yn(o,e);if(t)return t}return null}function qt(o,r){if(o===r.value)return[r];for(const e of r.children){const t=qt(o,e);if(t.length)return t.unshift(r),t}return[]}class Jn{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function wo(o){const r={};return o&&o.children.forEach(e=>r[e.value.outlet]=e),r}class du extends Li{constructor(r,e){super(r),this.snapshot=e,rc(this,r)}toString(){return this.snapshot.toString()}}function lf(o,r){const e=function Xb(o,r){const d=new Ma([],{},{},"",{},ht,r,null,o.root,-1,{});return new nc("",new Jn(d,[]))}(o,r),t=new Ut([new xa("",{})]),s=new Ut({}),u=new Ut({}),d=new Ut({}),l=new Ut(""),n=new qr(t,s,d,l,u,ht,r,e.root);return n.snapshot=e.root,new du(new Jn(n,[]),e)}class qr{constructor(r,e,t,s,u,d,l,n){this.url=r,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this._futureSnapshot=n}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,qe.U)(r=>Aa(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,qe.U)(r=>Aa(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Rs(o,r="emptyOnly"){const e=o.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const s=e[t],u=e[t-1];if(s.routeConfig&&""===s.routeConfig.path)t--;else{if(u.component)break;t--}}return function ic(o){return o.reduce((r,e)=>({params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class Ma{constructor(r,e,t,s,u,d,l,n,i,a,c,h){this.url=r,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this.routeConfig=n,this._urlSegment=i,this._lastPathIndex=a,this._correctedLastPathIndex=h??a,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Aa(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Aa(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class nc extends Li{constructor(r,e){super(e),this.url=r,rc(this,e)}toString(){return cf(this._root)}}function rc(o,r){r.value._routerState=o,r.children.forEach(e=>rc(o,e))}function cf(o){const r=o.children.length>0?` { ${o.children.map(cf).join(", ")} } `:"";return`${o.value}${r}`}function Kn(o){if(o.snapshot){const r=o.snapshot,e=o._futureSnapshot;o.snapshot=e,En(r.queryParams,e.queryParams)||o.queryParams.next(e.queryParams),r.fragment!==e.fragment&&o.fragment.next(e.fragment),En(r.params,e.params)||o.params.next(e.params),function Yp(o,r){if(o.length!==r.length)return!1;for(let e=0;eEn(e.parameters,r[t].parameters))}(o.url,r.url);return e&&!(!o.parent!=!r.parent)&&(!o.parent||Da(o.parent,r.parent))}function Ps(o,r,e){if(e&&o.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const s=function Is(o,r,e){return r.children.map(t=>{for(const s of e.children)if(o.shouldReuseRoute(t.value,s.value.snapshot))return Ps(o,t,s);return Ps(o,t)})}(o,r,e);return new Jn(t,s)}{if(o.shouldAttach(r.value)){const u=o.retrieve(r.value);if(null!==u){const d=u.route;return d.value._futureSnapshot=r.value,d.children=r.children.map(l=>Ps(o,l)),d}}const t=function uu(o){return new qr(new Ut(o.url),new Ut(o.params),new Ut(o.queryParams),new Ut(o.fragment),new Ut(o.data),o.outlet,o.component,o)}(r.value),s=r.children.map(u=>Ps(o,u));return new Jn(t,s)}}const hu="ngNavigationCancelingError";function df(o,r){const{redirectTo:e,navigationBehaviorOptions:t}=wt(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,s=tC(!1,0,r);return s.url=e,s.navigationBehaviorOptions=t,s}function tC(o,r,e){const t=new Error("NavigationCancelingError: "+(o||""));return t[hu]=!0,t.cancellationCode=r,e&&(t.url=e),t}function iC(o){return ks(o)&&wt(o.url)}function ks(o){return o&&o[hu]}class uf{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new yo,this.attachRef=null}}let yo=(()=>{class o{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const s=this.getOrCreateContext(e);s.outlet=t,this.contexts.set(e,s)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new uf,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Ha=!1;let ac=(()=>{class o{constructor(e,t,s,u,d){this.parentContexts=e,this.location=t,this.changeDetector=u,this.environmentInjector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new _.vpe,this.deactivateEvents=new _.vpe,this.attachEvents=new _.vpe,this.detachEvents=new _.vpe,this.name=s||ht,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new _.vHH(4012,Ha);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new _.vHH(4012,Ha);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new _.vHH(4012,Ha);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new _.vHH(4013,Ha);this._activatedRoute=e;const s=this.location,d=e._futureSnapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,n=new hf(e,l,s.injector);if(t&&function vo(o){return!!o.resolveComponentFactory}(t)){const i=t.resolveComponentFactory(d);this.activated=s.createComponent(i,s.length,n)}else this.activated=s.createComponent(d,{index:s.length,injector:n,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(yo),_.Y36(_.s_b),_.$8M("name"),_.Y36(_.sBO),_.Y36(_.lqb))},o.\u0275dir=_.lG2({type:o,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),o})();class hf{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===qr?this.route:r===yo?this.childContexts:this.parent.get(r,e)}}let pf=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},dependencies:[ac],encapsulation:2}),o})();function Ra(o,r){return o.providers&&!o._injector&&(o._injector=(0,_.MMx)(o.providers,r,`Route: ${o.path}`)),o._injector??r}function Pa(o){const r=o.children&&o.children.map(Pa),e=r?{...o,children:r}:{...o};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==ht&&(e.component=pf),e}function Ki(o){return o.outlet||ht}function sc(o,r){const e=o.filter(t=>Ki(t)===r);return e.push(...o.filter(t=>Ki(t)!==r)),e}function Bs(o){if(!o)return null;if(o.routeConfig?._injector)return o.routeConfig._injector;for(let r=o.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class oC{constructor(r,e,t,s){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=s}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Kn(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const s=wo(e);r.children.forEach(u=>{const d=u.value.outlet;this.deactivateRoutes(u,s[d],t),delete s[d]}),yi(s,(u,d)=>{this.deactivateRouteAndItsChildren(u,t)})}deactivateRoutes(r,e,t){const s=r.value,u=e?e.value:null;if(s===u)if(s.component){const d=t.getContext(s.outlet);d&&this.deactivateChildRoutes(r,e,d.children)}else this.deactivateChildRoutes(r,e,t);else u&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),s=t&&r.value.component?t.children:e,u=wo(r);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);if(t&&t.outlet){const d=t.outlet.detach(),l=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:d,route:r,contexts:l})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),s=t&&r.value.component?t.children:e,u=wo(r);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const s=wo(e);r.children.forEach(u=>{this.activateRoutes(u,s[u.value.outlet],t),this.forwardEvent(new cu(u.value.snapshot))}),r.children.length&&this.forwardEvent(new rf(r.value.snapshot))}activateRoutes(r,e,t){const s=r.value,u=e?e.value:null;if(Kn(s),s===u)if(s.component){const d=t.getOrCreateContext(s.outlet);this.activateChildRoutes(r,e,d.children)}else this.activateChildRoutes(r,e,t);else if(s.component){const d=t.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const l=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),d.children.onOutletReAttached(l.contexts),d.attachRef=l.componentRef,d.route=l.route.value,d.outlet&&d.outlet.attach(l.componentRef,l.route.value),Kn(l.route.value),this.activateChildRoutes(r,null,d.children)}else{const l=Bs(s.snapshot),n=l?.get(_._Vd)??null;d.attachRef=null,d.route=s,d.resolver=n,d.injector=l,d.outlet&&d.outlet.activateWith(s,d.injector),this.activateChildRoutes(r,null,d.children)}}else this.activateChildRoutes(r,null,t)}}class fu{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class Vs{constructor(r,e){this.component=r,this.route=e}}function mf(o,r,e){const t=o._root;return zr(t,r?r._root:null,e,[t.value])}function cc(o,r,e){return(Bs(r)??e).get(o)}function zr(o,r,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=wo(r);return o.children.forEach(d=>{(function Os(o,r,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=o.value,d=r?r.value:null,l=e?e.getContext(o.value.outlet):null;if(d&&u.routeConfig===d.routeConfig){const n=function sC(o,r,e){if("function"==typeof e)return e(o,r);switch(e){case"pathParamsChange":return!wr(o.url,r.url);case"pathParamsOrQueryParamsChange":return!wr(o.url,r.url)||!En(o.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Da(o,r)||!En(o.queryParams,r.queryParams);default:return!Da(o,r)}}(d,u,u.routeConfig.runGuardsAndResolvers);n?s.canActivateChecks.push(new fu(t)):(u.data=d.data,u._resolvedData=d._resolvedData),zr(o,r,u.component?l?l.children:null:e,t,s),n&&l&&l.outlet&&l.outlet.isActivated&&s.canDeactivateChecks.push(new Vs(l.outlet.component,d))}else d&&Ao(r,l,s),s.canActivateChecks.push(new fu(t)),zr(o,null,u.component?l?l.children:null:e,t,s)})(d,u[d.value.outlet],e,t.concat([d.value]),s),delete u[d.value.outlet]}),yi(u,(d,l)=>Ao(d,e.getContext(l),s)),s}function Ao(o,r,e){const t=wo(o),s=o.value;yi(t,(u,d)=>{Ao(u,s.component?r?r.children.getContext(d):null:r,e)}),e.canDeactivateChecks.push(new Vs(s.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,s))}function xo(o){return"function"==typeof o}function Gr(o){return o instanceof Rt.K||"EmptyError"===o?.name}const Ar=Symbol("INITIAL_VALUE");function Ia(){return(0,Bi.w)(o=>(0,_r.a)(o.map(r=>r.pipe((0,ri.q)(1),Si(Ar)))).pipe((0,qe.U)(r=>{for(const e of r)if(!0!==e){if(e===Ar)return Ar;if(!1===e||e instanceof fn)return e}return!0}),(0,Wt.h)(r=>r!==Ar),(0,ri.q)(1)))}function uC(o){return(0,Ca.z)((0,$t.b)(r=>{if(wt(r))throw df(0,r)}),(0,qe.U)(r=>!0===r))}const wf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Mo(o,r,e,t,s){const u=yf(o,r,e);return u.matched?function Y0(o,r,e,t){const s=r.canMatch;if(!s||0===s.length)return(0,ke.of)(!0);const u=s.map(d=>{const l=o.get(d),n=function bf(o){return o&&xo(o.canMatch)}(l)?l.canMatch(r,e):l(r,e);return $n(n)});return(0,ke.of)(u).pipe(Ia(),uC())}(t=Ra(r,t),r,e).pipe((0,qe.U)(d=>!0===d?u:{...wf})):(0,ke.of)(u)}function yf(o,r,e){if(""===r.path)return"full"===r.pathMatch&&(o.hasChildren()||e.length>0)?{...wf}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const s=(r.matcher||Qp)(e,o,r);if(!s)return{...wf};const u={};yi(s.posParams,(l,n)=>{u[n]=l.path});const d=s.consumed.length>0?{...u,...s.consumed[s.consumed.length-1].parameters}:u;return{matched:!0,consumedSegments:s.consumed,remainingSegments:e.slice(s.consumed.length),parameters:d,positionalParamSegments:s.posParams??{}}}function _u(o,r,e,t,s="corrected"){if(e.length>0&&function Ls(o,r,e){return e.some(t=>dc(o,r,t)&&Ki(t)!==ht)}(o,e,t)){const d=new dt(r,function bu(o,r,e,t){const s={};s[ht]=t,t._sourceSegment=o,t._segmentIndexShift=r.length;for(const u of e)if(""===u.path&&Ki(u)!==ht){const d=new dt([],{});d._sourceSegment=o,d._segmentIndexShift=r.length,s[Ki(u)]=d}return s}(o,r,t,new dt(e,o.children)));return d._sourceSegment=o,d._segmentIndexShift=r.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function J0(o,r,e){return e.some(t=>dc(o,r,t))}(o,e,t)){const d=new dt(o.segments,function mi(o,r,e,t,s,u){const d={};for(const l of t)if(dc(o,e,l)&&!s[Ki(l)]){const n=new dt([],{});n._sourceSegment=o,n._segmentIndexShift="legacy"===u?o.segments.length:r.length,d[Ki(l)]=n}return{...s,...d}}(o,r,e,t,o.children,s));return d._sourceSegment=o,d._segmentIndexShift=r.length,{segmentGroup:d,slicedSegments:e}}const u=new dt(o.segments,o.children);return u._sourceSegment=o,u._segmentIndexShift=r.length,{segmentGroup:u,slicedSegments:e}}function dc(o,r,e){return(!(o.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Zi(o,r,e,t){return!!(Ki(o)===t||t!==ht&&dc(r,e,o))&&("**"===o.path||yf(r,o,e).matched)}function Xn(o,r,e){return 0===r.length&&!o.children[e]}const js=!1;class ka{constructor(r){this.segmentGroup=r||null}}class Do{constructor(r){this.urlTree=r}}function Ho(o){return(0,wi._)(new ka(o))}function vf(o){return(0,wi._)(new Do(o))}class Af{constructor(r,e,t,s,u){this.injector=r,this.configLoader=e,this.urlSerializer=t,this.urlTree=s,this.config=u,this.allowRedirects=!0}apply(){const r=_u(this.urlTree.root,[],[],this.config).segmentGroup,e=new dt(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,ht).pipe((0,qe.U)(u=>this.createUrlTree(Dt(u),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Et.K)(u=>{if(u instanceof Do)return this.allowRedirects=!1,this.match(u.urlTree);throw u instanceof ka?this.noMatchError(u):u}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,ht).pipe((0,qe.U)(s=>this.createUrlTree(Dt(s),r.queryParams,r.fragment))).pipe((0,Et.K)(s=>{throw s instanceof ka?this.noMatchError(s):s}))}noMatchError(r){return new _.vHH(4002,js)}createUrlTree(r,e,t){const s=Ge(r);return new fn(s,e,t)}expandSegmentGroup(r,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,qe.U)(u=>new dt([],u))):this.expandSegment(r,t,e,t.segments,s,!0)}expandChildren(r,e,t){const s=[];for(const u of Object.keys(t.children))"primary"===u?s.unshift(u):s.push(u);return(0,_t.D)(s).pipe((0,Bt.b)(u=>{const d=t.children[u],l=sc(e,u);return this.expandSegmentGroup(r,l,d,u).pipe((0,qe.U)(n=>({segment:n,outlet:u})))}),ya((u,d)=>(u[d.outlet]=d.segment,u),{}),$p())}expandSegment(r,e,t,s,u,d){return(0,_t.D)(t).pipe((0,Bt.b)(l=>this.expandSegmentAgainstRoute(r,e,t,l,s,u,d).pipe((0,Et.K)(i=>{if(i instanceof ka)return(0,ke.of)(null);throw i}))),(0,Vi.P)(l=>!!l),(0,Et.K)((l,n)=>{if(Gr(l))return Xn(e,s,u)?(0,ke.of)(new dt([],{})):Ho(e);throw l}))}expandSegmentAgainstRoute(r,e,t,s,u,d,l){return Zi(s,e,u,d)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(r,e,s,u,d):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,s,u,d):Ho(e):Ho(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,s,u,d){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,s,d):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,s,u,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,s){const u=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?vf(u):this.lineralizeSegments(t,u).pipe((0,fi.z)(d=>{const l=new dt(d,{});return this.expandSegment(r,l,e,d,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,s,u,d){const{matched:l,consumedSegments:n,remainingSegments:i,positionalParamSegments:a}=yf(e,s,u);if(!l)return Ho(e);const c=this.applyRedirectCommands(n,s.redirectTo,a);return s.redirectTo.startsWith("/")?vf(c):this.lineralizeSegments(s,c).pipe((0,fi.z)(h=>this.expandSegment(r,e,t,h.concat(i),d,!1)))}matchSegmentAgainstRoute(r,e,t,s,u){return"**"===t.path?(r=Ra(t,r),t.loadChildren?(t._loadedRoutes?(0,ke.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(r,t)).pipe((0,qe.U)(l=>(t._loadedRoutes=l.routes,t._loadedInjector=l.injector,new dt(s,{})))):(0,ke.of)(new dt(s,{}))):Mo(e,t,s,r).pipe((0,Bi.w)(({matched:d,consumedSegments:l,remainingSegments:n})=>d?this.getChildConfig(r=t._injector??r,t,s).pipe((0,fi.z)(a=>{const c=a.injector??r,h=a.routes,{segmentGroup:f,slicedSegments:m}=_u(e,l,n,h),p=new dt(f.segments,f.children);if(0===m.length&&p.hasChildren())return this.expandChildren(c,h,p).pipe((0,qe.U)(Te=>new dt(l,Te)));if(0===h.length&&0===m.length)return(0,ke.of)(new dt(l,{}));const w=Ki(t)===u;return this.expandSegment(c,p,h,m,w?ht:u,!0).pipe((0,qe.U)(J=>new dt(l.concat(J.segments),J.children)))})):Ho(e)))}getChildConfig(r,e,t){return e.children?(0,ke.of)({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?(0,ke.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function Q0(o,r,e,t){const s=r.canLoad;if(void 0===s||0===s.length)return(0,ke.of)(!0);const u=s.map(d=>{const l=o.get(d),n=function lC(o){return o&&xo(o.canLoad)}(l)?l.canLoad(r,e):l(r,e);return $n(n)});return(0,ke.of)(u).pipe(Ia(),uC())}(r,e,t).pipe((0,fi.z)(s=>s?this.configLoader.loadChildren(r,e).pipe((0,$t.b)(u=>{e._loadedRoutes=u.routes,e._loadedInjector=u.injector})):function K0(o){return(0,wi._)(tC(js,3))}())):(0,ke.of)({routes:[],injector:r})}lineralizeSegments(r,e){let t=[],s=e.root;for(;;){if(t=t.concat(s.segments),0===s.numberOfChildren)return(0,ke.of)(t);if(s.numberOfChildren>1||!s.children[ht])return(0,wi._)(new _.vHH(4e3,js));s=s.children[ht]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreateUrlTree(r,e,t,s){const u=this.createSegmentGroup(r,e.root,t,s);return new fn(u,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return yi(r,(s,u)=>{if("string"==typeof s&&s.startsWith(":")){const l=s.substring(1);t[u]=e[l]}else t[u]=s}),t}createSegmentGroup(r,e,t,s){const u=this.createSegments(r,e.segments,t,s);let d={};return yi(e.children,(l,n)=>{d[n]=this.createSegmentGroup(r,l,t,s)}),new dt(u,d)}createSegments(r,e,t,s){return e.map(u=>u.path.startsWith(":")?this.findPosParam(r,u,s):this.findOrReturn(u,t))}findPosParam(r,e,t){const s=t[e.path.substring(1)];if(!s)throw new _.vHH(4001,js);return s}findOrReturn(r,e){let t=0;for(const s of e){if(s.path===r.path)return e.splice(t),s;t++}return r}}class Po{}class pC{constructor(r,e,t,s,u,d,l,n){this.injector=r,this.rootComponentType=e,this.config=t,this.urlTree=s,this.url=u,this.paramsInheritanceStrategy=d,this.relativeLinkResolution=l,this.urlSerializer=n}recognize(){const r=_u(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,ht).pipe((0,qe.U)(e=>{if(null===e)return null;const t=new Ma([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ht,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new Jn(t,e),u=new nc(this.url,s);return this.inheritParamsAndData(u._root),u}))}inheritParamsAndData(r){const e=r.value,t=Rs(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(r,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.processChildren(r,e,t):this.processSegment(r,e,t,t.segments,s)}processChildren(r,e,t){return(0,_t.D)(Object.keys(t.children)).pipe((0,Bt.b)(s=>{const u=t.children[s],d=sc(e,s);return this.processSegmentGroup(r,d,u,s)}),ya((s,u)=>s&&u?(s.push(...u),s):null),function Yl(o,r=!1){return(0,di.e)((e,t)=>{let s=0;e.subscribe((0,Lt.x)(t,u=>{const d=o(u,s++);(d||r)&&t.next(u),!d&&t.complete()}))})}(s=>null!==s),(0,Oi.d)(null),$p(),(0,qe.U)(s=>{if(null===s)return null;const u=Sf(s);return function fC(o){o.sort((r,e)=>r.value.outlet===ht?-1:e.value.outlet===ht?1:r.value.outlet.localeCompare(e.value.outlet))}(u),u}))}processSegment(r,e,t,s,u){return(0,_t.D)(e).pipe((0,Bt.b)(d=>this.processSegmentAgainstRoute(d._injector??r,d,t,s,u)),(0,Vi.P)(d=>!!d),(0,Et.K)(d=>{if(Gr(d))return Xn(t,s,u)?(0,ke.of)([]):(0,ke.of)(null);throw d}))}processSegmentAgainstRoute(r,e,t,s,u){if(e.redirectTo||!Zi(e,t,s,u))return(0,ke.of)(null);let d;if("**"===e.path){const l=s.length>0?tu(s).parameters:{},n=Fs(t)+s.length,i=new Ma(s,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Io(e),Ki(e),e.component??e._loadedComponent??null,e,uc(t),n,hc(e),n);d=(0,ke.of)({snapshot:i,consumedSegments:[],remainingSegments:[]})}else d=Mo(t,e,s,r).pipe((0,qe.U)(({matched:l,consumedSegments:n,remainingSegments:i,parameters:a})=>{if(!l)return null;const c=Fs(t)+n.length;return{snapshot:new Ma(n,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Io(e),Ki(e),e.component??e._loadedComponent??null,e,uc(t),c,hc(e),c),consumedSegments:n,remainingSegments:i}}));return d.pipe((0,Bi.w)(l=>{if(null===l)return(0,ke.of)(null);const{snapshot:n,consumedSegments:i,remainingSegments:a}=l;r=e._injector??r;const c=e._loadedInjector??r,h=function mC(o){return o.children?o.children:o.loadChildren?o._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:m}=_u(t,i,a,h.filter(w=>void 0===w.redirectTo),this.relativeLinkResolution);if(0===m.length&&f.hasChildren())return this.processChildren(c,h,f).pipe((0,qe.U)(w=>null===w?null:[new Jn(n,w)]));if(0===h.length&&0===m.length)return(0,ke.of)([new Jn(n,[])]);const p=Ki(e)===u;return this.processSegment(c,h,f,m,p?ht:u).pipe((0,qe.U)(w=>null===w?null:[new Jn(n,w)]))}))}}function gC(o){const r=o.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function Sf(o){const r=[],e=new Set;for(const t of o){if(!gC(t)){r.push(t);continue}const s=r.find(u=>t.value.routeConfig===u.value.routeConfig);void 0!==s?(s.children.push(...t.children),e.add(s)):r.push(t)}for(const t of e){const s=Sf(t.children);r.push(new Jn(t.value,s))}return r.filter(t=>!e.has(t))}function uc(o){let r=o;for(;r._sourceSegment;)r=r._sourceSegment;return r}function Fs(o){let r=o,e=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift??0;return e-1}function Io(o){return o.data||{}}function hc(o){return o.resolve||{}}const Cu=Symbol("RouteTitle");function Ef(o){return"string"==typeof o.title||null===o.title}function Jt(o){return(0,Bi.w)(r=>{const e=o(r);return e?(0,_t.D)(e).pipe((0,qe.U)(()=>r)):(0,ke.of)(r)})}let wu=(()=>{class o{buildTitle(e){let t,s=e.root;for(;void 0!==s;)t=this.getResolvedTitleForRoute(s)??t,s=s.children.find(u=>u.outlet===ht);return t}getResolvedTitleForRoute(e){return e.data[Cu]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:function(){return(0,_.f3M)(yu)},providedIn:"root"}),o})(),yu=(()=>{class o extends wu{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(X))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class vu{}class yC extends class Ns{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const Au=new _.OlP("",{providedIn:"root",factory:()=>({})}),Ba=new _.OlP("ROUTES");let mc=(()=>{class o{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,ke.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=$n(e.loadComponent()).pipe((0,$t.b)(u=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=u}),va(()=>{this.componentLoaders.delete(e)})),s=new vs(t,()=>new Ee.x).pipe(Tn());return this.componentLoaders.set(e,s),s}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,ke.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const u=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,qe.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(t);let n,i,a=!1;Array.isArray(l)?i=l:(n=l.create(e).injector,i=eu(n.get(Ba,[],_.XFs.Self|_.XFs.Optional)));return{routes:i.map(Pa),injector:n}}),va(()=>{this.childrenLoaders.delete(t)})),d=new vs(u,()=>new Ee.x).pipe(Tn());return this.childrenLoaders.set(t,d),d}loadModuleFactoryOrRoutes(e){return $n(e()).pipe((0,fi.z)(t=>t instanceof _.YKP||Array.isArray(t)?(0,ke.of)(t):(0,_t.D)(this.compiler.compileModuleAsync(t))))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.zs3),_.LFG(_.Sil))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class qs{}class AC{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function Gs(o){throw o}function gc(o,r,e){return r.parse("/")}const Mf={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xC={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Va(){const o=(0,_.f3M)(_o),r=(0,_.f3M)(yo),e=(0,_.f3M)(M.Ye),t=(0,_.f3M)(_.zs3),s=(0,_.f3M)(_.Sil),u=(0,_.f3M)(Ba,{optional:!0})??[],d=(0,_.f3M)(Au,{optional:!0})??{},l=(0,_.f3M)(yu),n=(0,_.f3M)(wu,{optional:!0}),i=(0,_.f3M)(qs,{optional:!0}),a=(0,_.f3M)(vu,{optional:!0}),c=new Kt(null,o,r,e,t,s,eu(u));return i&&(c.urlHandlingStrategy=i),a&&(c.routeReuseStrategy=a),c.titleStrategy=n??l,function SC(o,r){o.errorHandler&&(r.errorHandler=o.errorHandler),o.malformedUriErrorHandler&&(r.malformedUriErrorHandler=o.malformedUriErrorHandler),o.onSameUrlNavigation&&(r.onSameUrlNavigation=o.onSameUrlNavigation),o.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=o.paramsInheritanceStrategy),o.relativeLinkResolution&&(r.relativeLinkResolution=o.relativeLinkResolution),o.urlUpdateStrategy&&(r.urlUpdateStrategy=o.urlUpdateStrategy),o.canceledNavigationResolution&&(r.canceledNavigationResolution=o.canceledNavigationResolution)}(d,c),c}let Kt=(()=>{class o{constructor(e,t,s,u,d,l,n){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=s,this.location=u,this.config=n,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ee.x,this.errorHandler=Gs,this.malformedUriErrorHandler=gc,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,ke.of)(void 0),this.urlHandlingStrategy=new AC,this.routeReuseStrategy=new yC,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=d.get(mc),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new tf(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new lu(h)),this.ngModule=d.get(_.h0i),this.console=d.get(_.c2e);const c=d.get(_.R0b);this.isNgZoneEnabled=c instanceof _.R0b&&_.R0b.isInAngularZone(),this.resetConfig(n),this.currentUrlTree=function xs(){return new fn(new dt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lf(this.currentUrlTree,this.rootComponentType),this.transitions=new Ut({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Wt.h)(s=>0!==s.id),(0,qe.U)(s=>({...s,extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),(0,Bi.w)(s=>{let u=!1,d=!1;return(0,ke.of)(s).pipe((0,$t.b)(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Bi.w)(l=>{const n=this.browserUrlTree.toString(),i=!this.navigated||l.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return EC(l.source)&&(this.browserUrlTree=l.extractedUrl),(0,ke.of)(l).pipe((0,Bi.w)(c=>{const h=this.transitions.getValue();return t.next(new Xl(c.id,this.serializeUrl(c.extractedUrl),c.source,c.restoredState)),h!==this.transitions.getValue()?Nt.E:Promise.resolve(c)}),function ln(o,r,e,t){return(0,Bi.w)(s=>function Z0(o,r,e,t,s){return new Af(o,r,e,t,s).apply()}(o,r,e,s.extractedUrl,t).pipe((0,qe.U)(u=>({...s,urlAfterRedirects:u}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,$t.b)(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},s.urlAfterRedirects=c.urlAfterRedirects}),function pc(o,r,e,t,s,u){return(0,fi.z)(d=>function xf(o,r,e,t,s,u,d="emptyOnly",l="legacy"){return new pC(o,r,e,t,s,d,l,u).recognize().pipe((0,Bi.w)(n=>null===n?function X0(o){return new Qe.y(r=>r.error(o))}(new Po):(0,ke.of)(n)))}(o,r,e,d.urlAfterRedirects,t.serialize(d.urlAfterRedirects),t,s,u).pipe((0,qe.U)(l=>({...d,targetSnapshot:l}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,$t.b)(c=>{if(s.targetSnapshot=c.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=this.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);this.setBrowserUrl(f,c)}this.browserUrlTree=c.urlAfterRedirects}const h=new ou(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);t.next(h)}));if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:m,restoredState:p,extras:w}=l,R=new Xl(h,this.serializeUrl(f),m,p);t.next(R);const J=lf(f,this.rootComponentType).snapshot;return s={...l,targetSnapshot:J,urlAfterRedirects:f,extras:{...w,skipLocationChange:!1,replaceUrl:!1}},(0,ke.of)(s)}return this.rawUrlTree=l.rawUrl,l.resolve(null),Nt.E}),(0,$t.b)(l=>{const n=new Xp(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(n)}),(0,qe.U)(l=>s={...l,guards:mf(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),function gu(o,r){return(0,fi.z)(e=>{const{targetSnapshot:t,currentSnapshot:s,guards:{canActivateChecks:u,canDeactivateChecks:d}}=e;return 0===d.length&&0===u.length?(0,ke.of)({...e,guardsResult:!0}):function Eo(o,r,e,t){return(0,_t.D)(o).pipe((0,fi.z)(s=>function $0(o,r,e,t,s){const u=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!u||0===u.length)return(0,ke.of)(!0);const d=u.map(l=>{const n=cc(l,r,s);return $n(function cC(o){return o&&xo(o.canDeactivate)}(n)?n.canDeactivate(o,r,e,t):n(o,r,e,t)).pipe((0,Vi.P)())});return(0,ke.of)(d).pipe(Ia())}(s.component,s.route,e,r,t)),(0,Vi.P)(s=>!0!==s,!0))}(d,t,s,o).pipe((0,fi.z)(l=>l&&function So(o){return"boolean"==typeof o}(l)?function z0(o,r,e,t){return(0,_t.D)(r).pipe((0,Bt.b)(s=>(0,Ui.z)(function Pt(o,r){return null!==o&&r&&r(new nf(o)),(0,ke.of)(!0)}(s.route.parent,t),function dC(o,r){return null!==o&&r&&r(new af(o)),(0,ke.of)(!0)}(s.route,t),function W0(o,r,e){const t=r[r.length-1],u=r.slice(0,r.length-1).reverse().map(d=>function gf(o){const r=o.routeConfig?o.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:o,guards:r}:null}(d)).filter(d=>null!==d).map(d=>on(()=>{const l=d.guards.map(n=>{const i=cc(n,d.node,e);return $n(function mu(o){return o&&xo(o.canActivateChild)}(i)?i.canActivateChild(t,o):i(t,o)).pipe((0,Vi.P)())});return(0,ke.of)(l).pipe(Ia())}));return(0,ke.of)(u).pipe(Ia())}(o,s.path,e),function G0(o,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,ke.of)(!0);const s=t.map(u=>on(()=>{const d=cc(u,r,e);return $n(function _f(o){return o&&xo(o.canActivate)}(d)?d.canActivate(r,o):d(r,o)).pipe((0,Vi.P)())}));return(0,ke.of)(s).pipe(Ia())}(o,s.route,e))),(0,Vi.P)(s=>!0!==s,!0))}(t,u,o,r):(0,ke.of)(l)),(0,qe.U)(l=>({...e,guardsResult:l})))})}(this.ngModule.injector,l=>this.triggerEvent(l)),(0,$t.b)(l=>{if(s.guardsResult=l.guardsResult,wt(l.guardsResult))throw df(0,l.guardsResult);const n=new su(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.triggerEvent(n)}),(0,Wt.h)(l=>!!l.guardsResult||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",3),!1)),Jt(l=>{if(l.guards.canActivateChecks.length)return(0,ke.of)(l).pipe((0,$t.b)(n=>{const i=new Kb(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,Bi.w)(n=>{let i=!1;return(0,ke.of)(n).pipe(function CC(o,r){return(0,fi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:s}}=e;if(!s.length)return(0,ke.of)(e);let u=0;return(0,_t.D)(s).pipe((0,Bt.b)(d=>function wC(o,r,e,t){const s=o.routeConfig,u=o._resolve;return void 0!==s?.title&&!Ef(s)&&(u[Cu]=s.title),function Tf(o,r,e,t){const s=function Us(o){return[...Object.keys(o),...Object.getOwnPropertySymbols(o)]}(o);if(0===s.length)return(0,ke.of)({});const u={};return(0,_t.D)(s).pipe((0,fi.z)(d=>function ko(o,r,e,t){const s=cc(o,r,t);return $n(s.resolve?s.resolve(r,e):s(r,e))}(o[d],r,e,t).pipe((0,Vi.P)(),(0,$t.b)(l=>{u[d]=l}))),Wn(1),(0,Zd.h)(u),(0,Et.K)(d=>Gr(d)?Nt.E:(0,wi._)(d)))}(u,o,r,t).pipe((0,qe.U)(d=>(o._resolvedData=d,o.data=Rs(o,e).resolve,s&&Ef(s)&&(o.data[Cu]=s.title),null)))}(d.route,t,o,r)),(0,$t.b)(()=>u++),Wn(1),(0,fi.z)(d=>u===s.length?(0,ke.of)(e):Nt.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,$t.b)({next:()=>i=!0,complete:()=>{i||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",2))}}))}),(0,$t.b)(n=>{const i=new ef(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}))}),Jt(l=>{const n=i=>{const a=[];i.routeConfig?.loadComponent&&!i.routeConfig._loadedComponent&&a.push(this.configLoader.loadComponent(i.routeConfig).pipe((0,$t.b)(c=>{i.component=c}),(0,qe.U)(()=>{})));for(const c of i.children)a.push(...n(c));return a};return(0,_r.a)(n(l.targetSnapshot.root)).pipe((0,Oi.d)(),(0,ri.q)(1))}),Jt(()=>this.afterPreactivation()),(0,qe.U)(l=>{const n=function eC(o,r,e){const t=Ps(o,r._root,e?e._root:void 0);return new du(t,r)}(this.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return s={...l,targetRouterState:n}}),(0,$t.b)(l=>{this.currentUrlTree=l.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(l.urlAfterRedirects,l.rawUrl),this.routerState=l.targetRouterState,"deferred"===this.urlUpdateStrategy&&(l.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,l),this.browserUrlTree=l.urlAfterRedirects)}),((o,r,e)=>(0,qe.U)(t=>(new oC(r,t.targetRouterState,t.currentRouterState,e).activate(o),t)))(this.rootContexts,this.routeReuseStrategy,l=>this.triggerEvent(l)),(0,$t.b)({next(){u=!0},complete(){u=!0}}),va(()=>{u||d||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),(0,Et.K)(l=>{if(d=!0,ks(l)){iC(l)||(this.navigated=!0,this.restoreHistory(s,!0));const n=new ec(s.id,this.serializeUrl(s.extractedUrl),l.message,l.cancellationCode);if(t.next(n),iC(l)){const i=this.urlHandlingStrategy.merge(l.url,this.rawUrlTree),a={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||EC(s.source)};this.scheduleNavigation(i,"imperative",null,a,{resolve:s.resolve,reject:s.reject,promise:s.promise})}else s.resolve(!1)}else{this.restoreHistory(s,!0);const n=new tc(s.id,this.serializeUrl(s.extractedUrl),l,s.targetSnapshot??void 0);t.next(n);try{s.resolve(this.errorHandler(l))}catch(i){s.reject(i)}}return Nt.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const s={replaceUrl:!0},u=e.state?.navigationId?e.state:null;if(u){const l={...u};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const d=this.parseUrl(e.url);this.scheduleNavigation(d,t,u,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Pa),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:s,queryParams:u,fragment:d,queryParamsHandling:l,preserveFragment:n}=t,i=s||this.routerState.root,a=n?this.currentUrlTree.fragment:d;let c=null;switch(l){case"merge":c={...this.currentUrlTree.queryParams,...u};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=u||null}return null!==c&&(c=this.removeEmptyProps(c)),we(i,this.currentUrlTree,e,c,a??null)}navigateByUrl(e,t={skipLocationChange:!1}){const s=wt(e)?e:this.parseUrl(e),u=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(u,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function TC(o){for(let r=0;r{const u=e[s];return null!=u&&(t[s]=u),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Nr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,s,u,d){if(this.disposed)return Promise.resolve(!1);let l,n,i;d?(l=d.resolve,n=d.reject,i=d.promise):i=new Promise((h,f)=>{l=h,n=f});const a=++this.navigationId;let c;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),c=s&&s.\u0275routerPageId?s.\u0275routerPageId:u.replaceUrl||u.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):c=0,this.setTransition({id:a,targetPageId:c,source:t,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:u,resolve:l,reject:n,promise:i,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),i.catch(h=>Promise.reject(h))}setBrowserUrl(e,t){const s=this.urlSerializer.serialize(e),u={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(s)||t.extras.replaceUrl?this.location.replaceState(s,"",u):this.location.go(s,"",u)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===s?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,s){const u=new ec(e.id,this.serializeUrl(e.extractedUrl),t,s);this.triggerEvent(u),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return o.\u0275fac=function(e){_.$Z()},o.\u0275prov=_.Yz7({token:o,factory:function(){return Va()},providedIn:"root"}),o})();function EC(o){return"imperative"!==o}class Df{}let Tu=(()=>{class o{constructor(e,t,s,u,d){this.router=e,this.injector=s,this.preloadingStrategy=u,this.loader=d}setUpPreloading(){this.subscription=this.router.events.pipe((0,Wt.h)(e=>e instanceof Nr),(0,Bt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const s=[];for(const u of t){u.providers&&!u._injector&&(u._injector=(0,_.MMx)(u.providers,e,`Route: ${u.path}`));const d=u._injector??e,l=u._loadedInjector??d;u.loadChildren&&!u._loadedRoutes&&void 0===u.canLoad||u.loadComponent&&!u._loadedComponent?s.push(this.preloadConfig(d,u)):(u.children||u._loadedRoutes)&&s.push(this.processRoutes(l,u.children??u._loadedRoutes))}return(0,_t.D)(s).pipe((0,As.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let s;s=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,ke.of)(null);const u=s.pipe((0,fi.z)(d=>null===d?(0,ke.of)(void 0):(t._loadedRoutes=d.routes,t._loadedInjector=d.injector,this.processRoutes(d.injector??e,d.routes))));if(t.loadComponent&&!t._loadedComponent){const d=this.loader.loadComponent(t);return(0,_t.D)([u,d]).pipe((0,As.J)())}return u})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Kt),_.LFG(_.Sil),_.LFG(_.lqb),_.LFG(Df),_.LFG(mc))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const Hf=new _.OlP("");let Rf=(()=>{class o{constructor(e,t,s={}){this.router=e,this.viewportScroller=t,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Xl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Nr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof sf&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new sf(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return o.\u0275fac=function(e){_.$Z()},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const HC=new _.OlP("ROUTER_FORROOT_GUARD"),bc=new _.OlP(""),RC=[M.Ye,{provide:_o,useClass:Ts},{provide:Kt,useFactory:Va},yo,{provide:qr,useFactory:function Pf(o){return o.routerState.root},deps:[Kt]},mc];function Cc(){return new _.PXZ("Router",Kt)}let Bo=(()=>{class o{constructor(e){}static forRoot(e,t){return{ngModule:o,providers:[RC,[],Ws(e),{provide:HC,useFactory:ix,deps:[[Kt,new _.FiY,new _.tp0]]},{provide:Au,useValue:t||{}},t?.useHash?{provide:M.S$,useClass:M.Do}:{provide:M.S$,useClass:M.b0},{provide:Hf,useFactory:()=>{const o=(0,_.f3M)(Kt),r=(0,_.f3M)(M.EM),e=(0,_.f3M)(Au);return e.scrollOffset&&r.setOffset(e.scrollOffset),new Rf(o,r,e)}},t?.preloadingStrategy?OC(t.preloadingStrategy):[],{provide:_.PXZ,multi:!0,useFactory:Cc},t?.initialNavigation?If(t):[],[{provide:Mu,useFactory:Eu},{provide:_.tb,multi:!0,useExisting:Mu}]]}}static forChild(e){return{ngModule:o,providers:[Ws(e)]}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(HC,8))},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})();function ix(o){return"guarded"}function Ws(o){return[{provide:Ba,multi:!0,useValue:o}]}function Eu(){const o=(0,_.f3M)(_.zs3);return r=>{const e=o.get(_.z2F);if(r!==e.components[0])return;const t=o.get(Kt),s=o.get(Wr);1===o.get(Du)&&t.initialNavigation(),o.get(bc,null,_.XFs.Optional)?.setUpPreloading(),o.get(Hf,null,_.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),s.next(),s.complete()}}const Mu=new _.OlP("");function If(o){return["disabled"===o.initialNavigation?[{provide:_.ip1,multi:!0,useFactory:()=>{const o=(0,_.f3M)(Kt);return()=>{o.setUpLocationChangeListener()}}},{provide:Du,useValue:2}]:[],"enabledBlocking"===o.initialNavigation?[{provide:Du,useValue:0},{provide:_.ip1,multi:!0,deps:[_.zs3],useFactory:o=>{const r=o.get(M.V_,Promise.resolve(null));let e=!1;return()=>r.then(()=>new Promise(s=>{const u=o.get(Kt),d=o.get(Wr);(function t(s){o.get(Kt).events.pipe((0,Wt.h)(d=>d instanceof Nr||d instanceof ec||d instanceof tc),(0,qe.U)(d=>d instanceof Nr||d instanceof ec&&(0===d.code||1===d.code)&&null),(0,Wt.h)(d=>null!==d),(0,ri.q)(1)).subscribe(()=>{s()})})(()=>{s(!0),e=!0}),u.afterPreactivation=()=>(s(!0),e||d.closed?(0,ke.of)(void 0):d),u.initialNavigation()}))}}]:[]]}const Wr=new _.OlP("",{factory:()=>new Ee.x}),Du=new _.OlP("",{providedIn:"root",factory:()=>1});function OC(o){return[Tu,{provide:bc,useExisting:Tu},{provide:Df,useExisting:o}]}let Oo=(()=>{class o{constructor(){this.title="linker"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-root"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},dependencies:[ac]}),o})();var Qr=E(1214);let Hu;try{Hu=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Hu=!1}let Lo,gi=(()=>{class o{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,M.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Hu)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.Lbi))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Bf=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ru(){if(Lo)return Lo;if("object"!=typeof document||!document)return Lo=new Set(Bf),Lo;let o=document.createElement("input");return Lo=new Set(Bf.filter(r=>(o.setAttribute("type",r),o.type===r))),Lo}let $s,wc,jo,yc;function er(o){return function LC(){if(null==$s&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>$s=!0}))}finally{$s=$s||!1}return $s}()?o:!!o.capture}function Vf(){if(null==jo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return jo=!1,jo;if("scrollBehavior"in document.documentElement.style)jo=!0;else{const o=Element.prototype.scrollTo;jo=!!o&&!/\{\s*\[native code\]\s*\}/.test(o.toString())}}return jo}function xr(){if("object"!=typeof document||!document)return 0;if(null==wc){const o=document.createElement("div"),r=o.style;o.dir="rtl",r.width="1px",r.overflow="auto",r.visibility="hidden",r.pointerEvents="none",r.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",o.appendChild(e),document.body.appendChild(o),wc=0,0===o.scrollLeft&&(o.scrollLeft=1,wc=0===o.scrollLeft?1:2),o.remove()}return wc}function Yr(o){if(function tr(){if(null==yc){const o=typeof document<"u"?document.head:null;yc=!(!o||!o.createShadowRoot&&!o.attachShadow)}return yc}()){const r=o.getRootNode?o.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function vc(){let o=typeof document<"u"&&document?document.activeElement:null;for(;o&&o.shadowRoot;){const r=o.shadowRoot.activeElement;if(r===o)break;o=r}return o}function mn(o){return o.composedPath?o.composedPath()[0]:o.target}function Ac(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Sr(o,...r){return r.length?r.some(e=>o[e]):o.altKey||o.shiftKey||o.ctrlKey||o.metaKey}var Rc=E(8372);function Pc(o){return(0,Wt.h)((r,e)=>o<=e)}function Mi(o,r=Ql.y){return o=o??Js,(0,di.e)((e,t)=>{let s,u=!0;e.subscribe((0,Lt.x)(t,d=>{const l=r(d);(u||!o(s,l))&&(u=!1,s=l,t.next(d))}))})}function Js(o,r){return o===r}var Ou=E(5032);function It(o){return(0,di.e)((r,e)=>{(0,Gn.Xf)(o).subscribe((0,Lt.x)(e,()=>e.complete(),Ou.Z)),!e.closed&&r.subscribe(e)})}function ut(o){return null!=o&&"false"!=`${o}`}function ji(o,r=0){return function cw(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o))}(o)?Number(o):r}function Ks(o){return Array.isArray(o)?o:[o]}function ui(o){return null==o?"":"string"==typeof o?o:`${o}px`}function Zt(o){return o instanceof _.SBq?o.nativeElement:o}let am=(()=>{class o{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),dw=(()=>{class o{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Zt(e);return new Qe.y(s=>{const d=this._observeElement(t).subscribe(s);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Ee.x,s=this._mutationObserverFactory.create(u=>t.next(u));s&&s.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:s,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:s}=this._observedElements.get(e);t&&t.disconnect(),s.complete(),this._observedElements.delete(e)}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(am))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Lu=(()=>{class o{constructor(e,t,s){this._contentObserver=e,this._elementRef=t,this._ngZone=s,this.event=new _.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ut(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=ji(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Rc.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(dw),_.Y36(_.SBq),_.Y36(_.R0b))},o.\u0275dir=_.lG2({type:o,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),o})(),Zs=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[am]}),o})();const La=new Set;let Xi,uw=(()=>{class o{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Qx}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function hw(o){if(!La.has(o))try{Xi||(Xi=document.createElement("style"),Xi.setAttribute("type","text/css"),document.head.appendChild(Xi)),Xi.sheet&&(Xi.sheet.insertRule(`@media ${o} {body{ }}`,0),La.add(o))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(gi))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Qx(o){return{matches:"all"===o||""===o,media:o,addListener:()=>{},removeListener:()=>{}}}let Yx=(()=>{class o{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Ee.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return ju(Ks(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){const s=ju(Ks(e)).map(d=>this._registerQuery(d).observable);let u=(0,_r.a)(s);return u=(0,Ui.z)(u.pipe((0,ri.q)(1)),u.pipe(Pc(1),(0,Rc.b)(0))),u.pipe((0,qe.U)(d=>{const l={matches:!1,breakpoints:{}};return d.forEach(({matches:n,query:i})=>{l.matches=l.matches||n,l.breakpoints[i]=n}),l}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),u={observable:new Qe.y(d=>{const l=n=>this._zone.run(()=>d.next(n));return t.addListener(l),()=>{t.removeListener(l)}}).pipe(Si(t),(0,qe.U)(({matches:d})=>({query:e,matches:d})),It(this._destroySubject)),mql:t};return this._queries.set(e,u),u}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(uw),_.LFG(_.R0b))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function ju(o){return o.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}let Xs=(()=>{class o{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Fu(o){return!!(o.offsetWidth||o.offsetHeight||"function"==typeof o.getClientRects&&o.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function _w(o){try{return o.frameElement}catch{return null}}(function qu(o){return o.ownerDocument&&o.ownerDocument.defaultView||window}(e));if(t&&(-1===Uu(t)||!this.isVisible(t)))return!1;let s=e.nodeName.toLowerCase(),u=Uu(e);return e.hasAttribute("contenteditable")?-1!==u:!("iframe"===s||"object"===s||this._platform.WEBKIT&&this._platform.IOS&&!function Nu(o){let r=o.nodeName.toLowerCase(),e="input"===r&&o.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===s?!!e.hasAttribute("controls")&&-1!==u:"video"===s?-1!==u&&(null!==u||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function fm(o){return!function Cw(o){return function yw(o){return"input"==o.nodeName.toLowerCase()}(o)&&"hidden"==o.type}(o)&&(function bw(o){let r=o.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(o)||function ww(o){return function vw(o){return"a"==o.nodeName.toLowerCase()}(o)&&o.hasAttribute("href")}(o)||o.hasAttribute("contenteditable")||pm(o))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(gi))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function pm(o){if(!o.hasAttribute("tabindex")||void 0===o.tabIndex)return!1;let r=o.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function Uu(o){if(!pm(o))return null;const r=parseInt(o.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class Aw{constructor(r,e,t,s,u=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,u||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const s=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(s)return s}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,ri.q)(1)).subscribe(r)}}let zu=(()=>{class o{constructor(e,t,s){this._checker=e,this._ngZone=t,this._document=s}create(e,t=!1){return new Aw(e,this._checker,this._ngZone,this._document,t)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Xs),_.LFG(_.R0b),_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function mm(o){return 0===o.buttons||0===o.offsetX&&0===o.offsetY}function qo(o){const r=o.touches&&o.touches[0]||o.changedTouches&&o.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const Mw=new _.OlP("cdk-input-modality-detector-options"),gm={ignoreKeys:[18,17,224,91,16]},Fa=er({passive:!0,capture:!0});let Wu=(()=>{class o{constructor(e,t,s,u){this._platform=e,this._mostRecentTarget=null,this._modality=new Ut(null),this._lastTouchMs=0,this._onKeydown=d=>{this._options?.ignoreKeys?.some(l=>l===d.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=mn(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(mm(d)?"keyboard":"mouse"),this._mostRecentTarget=mn(d))},this._onTouchstart=d=>{qo(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=mn(d))},this._options={...gm,...u},this.modalityDetected=this._modality.pipe(Pc(1)),this.modalityChanged=this.modalityDetected.pipe(Mi()),e.isBrowser&&t.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,Fa),s.addEventListener("mousedown",this._onMousedown,Fa),s.addEventListener("touchstart",this._onTouchstart,Fa)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Fa),document.removeEventListener("mousedown",this._onMousedown,Fa),document.removeEventListener("touchstart",this._onTouchstart,Fa))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(gi),_.LFG(_.R0b),_.LFG(M.K0),_.LFG(Mw,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const bm=new _.OlP("cdk-focus-monitor-default-options"),zo=er({passive:!0,capture:!0});let gn=(()=>{class o{constructor(e,t,s,u,d){this._ngZone=e,this._platform=t,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Ee.x,this._rootNodeFocusAndBlurListener=l=>{for(let i=mn(l);i;i=i.parentElement)"focus"===l.type?this._onFocus(l,i):this._onBlur(l,i)},this._document=u,this._detectionMode=d?.detectionMode||0}monitor(e,t=!1){const s=Zt(e);if(!this._platform.isBrowser||1!==s.nodeType)return(0,ke.of)(null);const u=Yr(s)||this._getDocument(),d=this._elementInfo.get(s);if(d)return t&&(d.checkChildren=!0),d.subject;const l={checkChildren:t,subject:new Ee.x,rootNode:u};return this._elementInfo.set(s,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(e){const t=Zt(e),s=this._elementInfo.get(t);s&&(s.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(s))}focusVia(e,t,s){const u=Zt(e);u===this._getDocument().activeElement?this._getClosestElementsInfo(u).forEach(([l,n])=>this._originChanged(l,t,n)):(this._setOrigin(t),"function"==typeof u.focus&&u.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const s=this._elementInfo.get(t),u=mn(e);!s||!s.checkChildren&&t!==u||this._originChanged(t,this._getFocusOrigin(u),s)}_onBlur(e,t){const s=this._elementInfo.get(t);!s||s.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(s,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,s=this._rootNodeFocusListenerCount.get(t)||0;s||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,zo),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,zo)}),this._rootNodeFocusListenerCount.set(t,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(It(this._stopInputModalityDetector)).subscribe(u=>{this._setOrigin(u,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const s=this._rootNodeFocusListenerCount.get(t);s>1?this._rootNodeFocusListenerCount.set(t,s-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,zo),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,zo),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,s){this._setClasses(e,t),this._emitOrigin(s,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((s,u)=>{(u===e||s.checkChildren&&u.contains(e))&&t.push([u,s])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:s}=this._inputModalityDetector;if("mouse"!==s||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const u=e.labels;if(u)for(let d=0;d{class o{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,_.f3M)(Yx).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,s=t&&t.getComputedStyle?t.getComputedStyle(e):null,u=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),u){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Yu,Qu,Cm),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(Yu,Qu):2===t&&e.add(Yu,Cm)}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(gi),_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Ua=(()=>{class o{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Ju))},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Zs]}),o})();const wm=new _.OlP("cdk-dir-doc",{providedIn:"root",factory:function Zx(){return(0,_.f3M)(M.K0)}}),ym=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Rn=(()=>{class o{constructor(e){if(this.value="ltr",this.change=new _.vpe,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function Rw(o){const r=o?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?ym.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(wm,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Go=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})();const Bw=new _.OlP("mat-sanity-checks",{providedIn:"root",factory:function kw(){return!0}});let Se=(()=>{class o{constructor(e,t,s){this._sanityChecks=t,this._document=s,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Ac()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Ju),_.LFG(Bw,8),_.LFG(M.K0))},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Go,Go]}),o})();function Bc(o){return class extends o{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=ut(r)}}}function Na(o,r){return class extends o{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Jr(o){return class extends o{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=ut(r)}}}function Ku(o){return class extends o{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,u=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);u!==r&&(this.errorState=u,this.stateChanges.next())}}}const jw=new _.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function aS(){return(0,_.f3M)(_.soG)}});class bn{constructor(){this._localeChanges=new Ee.x,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),s=this.isValid(e);return t&&s?!this.compareDate(r,e):t==s}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const tl=new _.OlP("mat-date-formats"),qa=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Zu(o,r){const e=Array(o);for(let t=0;t{class o extends bn{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Zu(12,s=>this._format(t,new Date(2017,s,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Zu(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Zu(7,s=>this._format(t,new Date(2017,0,s+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,s){let u=this._createDateWithOverflow(e,t,s);return u.getMonth(),u}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const s=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(s,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let s=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(s)!=((this.getMonth(e)+t)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(qa.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,s){const u=new Date;return u.setFullYear(e,t,s),u.setHours(0,0,0,0),u}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const s=new Date;return s.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),s.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(s)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(jw,8),_.LFG(gi))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const Xu={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Fw=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[{provide:bn,useClass:Vc}]}),o})(),Uw=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[{provide:tl,useValue:Xu}],imports:[Fw]}),o})(),Oc=(()=>{class o{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),jc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})();class Wo{constructor(r,e,t,s=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Sm={enterDuration:225,exitDuration:150},$o=er({passive:!0}),Em=["mousedown","touchstart"],eh=["mouseup","mouseleave","touchend","touchcancel"];class Mm{constructor(r,e,t,s){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=Zt(t))}fadeInRipple(r,e,t={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),u={...Sm,...t.animation};t.centered&&(r=s.left+s.width/2,e=s.top+s.height/2);const d=t.radius||function qw(o,r,e){const t=Math.max(Math.abs(o-e.left),Math.abs(o-e.right)),s=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+s*s)}(r,e,s),l=r-s.left,n=e-s.top,i=u.enterDuration,a=document.createElement("div");a.classList.add("mat-ripple-element"),a.style.left=l-d+"px",a.style.top=n-d+"px",a.style.height=2*d+"px",a.style.width=2*d+"px",null!=t.color&&(a.style.backgroundColor=t.color),a.style.transitionDuration=`${i}ms`,this._containerElement.appendChild(a);const c=window.getComputedStyle(a),f=c.transitionDuration,m="none"===c.transitionProperty||"0s"===f||"0s, 0s"===f,p=new Wo(this,a,t,m);a.style.transform="scale3d(1, 1, 1)",p.state=0,t.persistent||(this._mostRecentTransientRipple=p);let w=null;return!m&&(i||u.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const R=()=>this._finishRippleTransition(p),J=()=>this._destroyRipple(p);a.addEventListener("transitionend",R),a.addEventListener("transitioncancel",J),w={onTransitionEnd:R,onTransitionCancel:J}}),this._activeRipples.set(p,w),(m||!i)&&this._finishRippleTransition(p),p}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,t={...Sm,...r.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=Zt(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Em))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(eh),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=1,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==e&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=mm(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,$o)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Em.forEach(r=>{this._triggerElement.removeEventListener(r,this,$o)}),this._pointerUpEventsRegistered&&eh.forEach(r=>{this._triggerElement.removeEventListener(r,this,$o)}))}}const Dm=new _.OlP("mat-ripple-global-options");let za=(()=>{class o{constructor(e,t,s,u,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=u||{},this._rippleRenderer=new Mm(this,t,e,s)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,s){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...s}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(_.R0b),_.Y36(gi),_.Y36(Dm,8),_.Y36(_.QbO,8))},o.\u0275dir=_.lG2({type:o,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&_.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),o})(),Cn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})(),th=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se]}),o})(),Fc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Cn,M.ez,Se,th]}),o})();const Qw=["mat-button",""],nh=["*"],Im=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],ah=Na(Bc(Jr(class{constructor(o){this._elementRef=o}})));let Zr=(()=>{class o extends ah{constructor(e,t,s){super(e),this._focusMonitor=t,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const u of Im)this._hasHostAttributes(u)&&this._getHostElement().classList.add(u);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(gn),_.Y36(_.QbO,8))},o.\u0275cmp=_.Xpm({type:o,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&_.Gf(za,5),2&e){let s;_.iGM(s=_.CRH())&&(t.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(_.uIk("disabled",t.disabled||null),_.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[_.qOj],attrs:Qw,ngContentSelectors:nh,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(_.F$t(),_.TgZ(0,"span",0),_.Hsn(1),_.qZA(),_._UZ(2,"span",1)(3,"span",2)),2&e&&(_.xp6(2),_.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),_.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[za],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),o})(),Tr=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Cn,Se,Se]}),o})();var Uc=E(1144),wn=E(576),Nc=E(3268);const oh=["addListener","removeListener"],sh=["addEventListener","removeEventListener"],sS=["on","off"];function Qo(o,r,e,t){if((0,wn.m)(e)&&(t=e,e=void 0),t)return Qo(o,r,e).pipe((0,Nc.Z)(t));const[s,u]=function Bm(o){return(0,wn.m)(o.addEventListener)&&(0,wn.m)(o.removeEventListener)}(o)?sh.map(d=>l=>o[d](r,l,e)):function Jw(o){return(0,wn.m)(o.addListener)&&(0,wn.m)(o.removeListener)}(o)?oh.map(km(o,r)):function Kw(o){return(0,wn.m)(o.on)&&(0,wn.m)(o.off)}(o)?sS.map(km(o,r)):[];if(!s&&(0,Uc.z)(o))return(0,fi.z)(d=>Qo(d,r,e))((0,Gn.Xf)(o));if(!s)throw new TypeError("Invalid event target");return new Qe.y(d=>{const l=(...n)=>d.next(1u(l)})}function km(o,r){return e=>t=>o[e](r,t)}var Zw=E(4408);const nl={schedule(o){let r=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=nl;t&&(r=t.requestAnimationFrame,e=t.cancelAnimationFrame);const s=r(u=>{e=void 0,o(u)});return new Gt.w0(()=>e?.(s))},requestAnimationFrame(...o){const{delegate:r}=nl;return(r?.requestAnimationFrame||requestAnimationFrame)(...o)},cancelAnimationFrame(...o){const{delegate:r}=nl;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...o)},delegate:void 0};var lh=E(7565);const Om=new class Vm extends lh.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;r=r||t.shift();do{if(s=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,s){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw s}}}(class lS extends Zw.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=nl.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(s=>s.id===e)||(nl.cancelAnimationFrame(e),r._scheduled=void 0)}});let jm,cS=1;const ch={};function Xw(o){return o in ch&&(delete ch[o],!0)}const dS={setImmediate(o){const r=cS++;return ch[r]=!0,jm||(jm=Promise.resolve()),jm.then(()=>Xw(r)&&o()),r},clearImmediate(o){Xw(o)}},{setImmediate:uS,clearImmediate:hS}=dS,dh={setImmediate(...o){const{delegate:r}=dh;return(r?.setImmediate||uS)(...o)},clearImmediate(o){const{delegate:r}=dh;return(r?.clearImmediate||hS)(o)},delegate:void 0},uh=new class Xr extends lh.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;r=r||t.shift();do{if(s=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,s){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw s}}}(class pS extends Zw.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=dh.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(s=>s.id===e)||(dh.clearImmediate(e),r._scheduled=void 0)}});function cn(o){return!!o&&(o instanceof Qe.y||(0,wn.m)(o.lift)&&(0,wn.m)(o.subscribe))}var qc=E(4986),zc=E(2805);function Gc(o,r=qc.z){return function Fm(o){return(0,di.e)((r,e)=>{let t=!1,s=null,u=null,d=!1;const l=()=>{if(u?.unsubscribe(),u=null,t){t=!1;const i=s;s=null,e.next(i)}d&&e.complete()},n=()=>{u=null,d&&e.complete()};r.subscribe((0,Lt.x)(e,i=>{t=!0,s=i,u||(0,Gn.Xf)(o(i)).subscribe(u=(0,Lt.x)(e,l,n))},()=>{d=!0,(!t||!u||u.closed)&&e.complete()}))})}(()=>(0,zc.H)(o,r))}var Um=E(6063);class ey extends Ee.x{constructor(r=1/0,e=1/0,t=Um.l){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:t,_infiniteTimeWindow:s,_timestampProvider:u,_windowTime:d}=this;e||(t.push(r),!s&&t.push(u.now()+d)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:t,_buffer:s}=this,u=s.slice();for(let d=0;dnew ey(t,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}class ty extends class Nm{}{constructor(r){super(),this._data=r}connect(){return cn(this._data)?this._data:(0,ke.of)(this._data)}disconnect(){}}class ta{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(r,e,t,s,u){r.forEachOperation((d,l,n)=>{let i,a;null==d.previousIndex?(i=this._insertView(()=>t(d,l,n),n,e,s(d)),a=i?1:0):null==n?(this._detachAndCacheView(l,e),a=3):(i=this._moveView(l,n,e,s(d)),a=2),u&&u({context:i?.context,operation:a,record:d})})}detach(){for(const r of this._viewCache)r.destroy();this._viewCache=[]}_insertView(r,e,t,s){const u=this._insertViewFromCache(e,t);if(u)return void(u.context.$implicit=s);const d=r();return t.createEmbeddedView(d.templateRef,d.context,d.index)}_detachAndCacheView(r,e){const t=e.detach(r);this._maybeCacheView(t,e)}_moveView(r,e,t,s){const u=t.get(r);return t.move(u,e),u.context.$implicit=s,u}_maybeCacheView(r,e){if(this._viewCache.length0?u/this._itemSize:0;if(e.end>s){const n=Math.ceil(t/this._itemSize),i=Math.max(0,Math.min(d,s-n));d!=i&&(d=i,u=i*this._itemSize,e.start=Math.floor(d)),e.end=Math.max(0,Math.min(s,e.start+n))}const l=u-e.start*this._itemSize;if(l0&&(e.end=Math.min(s,e.end+i),e.start=Math.max(0,Math.floor(d-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(d))}}function mh(o){return o._scrollStrategy}let zm=(()=>{class o{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new fh(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=ji(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=ji(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=ji(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[_._Bn([{provide:ph,useFactory:mh,deps:[(0,_.Gpc)(()=>o)]}]),_.TTD]}),o})(),Qc=(()=>{class o{constructor(e,t,s){this._ngZone=e,this._platform=t,this._scrolled=new Ee.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Qe.y(t=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(Gc(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,ke.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const s=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Wt.h)(u=>!u||s.indexOf(u)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((s,u)=>{this._scrollableContainsElement(u,e)&&t.push(u)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let s=Zt(t),u=e.getElementRef().nativeElement;do{if(s==u)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Qo(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.R0b),_.LFG(gi),_.LFG(M.K0,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ny=(()=>{class o{constructor(e,t,s,u){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=s,this.dir=u,this._destroyed=new Ee.x,this._elementScrolled=new Qe.y(d=>this.ngZone.runOutsideAngular(()=>Qo(this.elementRef.nativeElement,"scroll").pipe(It(this._destroyed)).subscribe(d)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),s&&0!=xr()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==xr()?e.left=e.right:1==xr()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;Vf()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",s="right",u=this.elementRef.nativeElement;if("top"==e)return u.scrollTop;if("bottom"==e)return u.scrollHeight-u.clientHeight-u.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?s:t:"end"==e&&(e=d?t:s),d&&2==xr()?e==t?u.scrollWidth-u.clientWidth-u.scrollLeft:u.scrollLeft:d&&1==xr()?e==t?u.scrollLeft+u.scrollWidth-u.clientWidth:-u.scrollLeft:e==t?u.scrollLeft:u.scrollWidth-u.clientWidth-u.scrollLeft}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(Qc),_.Y36(_.R0b),_.Y36(Rn,8))},o.\u0275dir=_.lG2({type:o,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),o})(),Ga=(()=>{class o{constructor(e,t,s){this._platform=e,this._change=new Ee.x,this._changeListener=u=>{this._change.next(u)},this._document=s,t.runOutsideAngular(()=>{if(e.isBrowser){const u=this._getWindow();u.addEventListener("resize",this._changeListener),u.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+t,height:s,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),s=e.documentElement,u=s.getBoundingClientRect();return{top:-u.top||e.body.scrollTop||t.scrollY||s.scrollTop||0,left:-u.left||e.body.scrollLeft||t.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Gc(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(gi),_.LFG(_.R0b),_.LFG(M.K0,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const ay=new _.OlP("VIRTUAL_SCROLLABLE");let _h=(()=>{class o extends ny{constructor(e,t,s,u){super(e,t,s,u)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(Qc),_.Y36(_.R0b),_.Y36(Rn,8))},o.\u0275dir=_.lG2({type:o,features:[_.qOj]}),o})();const oy=typeof requestAnimationFrame<"u"?Om:uh;let en=(()=>{class o extends _h{constructor(e,t,s,u,d,l,n,i){super(e,l,s,d),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=u,this.scrollable=i,this._detachedSubject=new Ee.x,this._renderedRangeSubject=new Ee.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new Qe.y(a=>this._scrollStrategy.scrolledIndexChange.subscribe(c=>Promise.resolve().then(()=>this.ngZone.run(()=>a.next(c))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Gt.w0.EMPTY,this._viewportChanges=n.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=ut(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Si(null),Gc(0,oy)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(It(this._detachedSubject)).subscribe(t=>{const s=t.length;s!==this._dataLength&&(this._dataLength=s,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function Gm(o,r){return o.start==r.start&&o.end==r.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const u="horizontal"==this.orientation,d=u?"X":"Y";let n=`translate${d}(${Number((u&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(n+=` translate${d}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=n&&(this._renderedContentTransform=n,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const s={behavior:t};"horizontal"===this.orientation?s.start=e:s.top=e,this.scrollable.scrollTo(s)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?s=>super.measureScrollOffset(s):s=>this.scrollable.measureScrollOffset(s),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const s="left",u="right",d="rtl"==this.dir?.value;t="start"==e?d?u:s:"end"==e?d?s:u:e||("horizontal"===this.orientation?"left":"top");const l=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-l}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(_.R0b),_.Y36(ph,8),_.Y36(Rn,8),_.Y36(Qc),_.Y36(Ga),_.Y36(ay,8))},o.\u0275cmp=_.Xpm({type:o,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&_.Gf(iy,7),2&e){let s;_.iGM(s=_.CRH())&&(t._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&_.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[_._Bn([{provide:ny,useFactory:(r,e)=>r||e,deps:[_h,o]}]),_.qOj],ngContentSelectors:qm,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(_.F$t(),_.TgZ(0,"div",0,1),_.Hsn(2),_.qZA(),_._UZ(3,"div",2)),2&e&&(_.xp6(3),_.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),o})();function bh(o,r,e){if(!e.getBoundingClientRect)return 0;const s=e.getBoundingClientRect();return"horizontal"===o?"start"===r?s.left:s.right:"start"===r?s.top:s.bottom}let sy=(()=>{class o{constructor(e,t,s,u,d,l){this._viewContainerRef=e,this._template=t,this._differs=s,this._viewRepeater=u,this._viewport=d,this.viewChange=new Ee.x,this._dataSourceChanges=new Ee.x,this.dataStream=this._dataSourceChanges.pipe(Si(null),function ea(){return(0,di.e)((o,r)=>{let e,t=!1;o.subscribe((0,Lt.x)(r,s=>{const u=e;e=s,t&&r.next([u,s]),t=!0}))})}(),(0,Bi.w)(([n,i])=>this._changeDataSource(n,i)),hh(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Ee.x,this.dataStream.subscribe(n=>{this._data=n,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(It(this._destroyed)).subscribe(n=>{this._renderedRange=n,this.viewChange.observers.length&&l.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,function rl(o){return o&&"function"==typeof o.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new ty(cn(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,s)=>e(t+(this._renderedRange?this._renderedRange.start:0),s):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=ji(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const s=e.start-this._renderedRange.start,u=e.end-e.start;let d,l;for(let n=0;n-1;n--){const i=this._viewContainerRef.get(n+s);if(i&&i.rootNodes.length){l=i.rootNodes[i.rootNodes.length-1];break}}return d&&l?bh(t,"end",l)-bh(t,"start",d):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,ke.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const s=this._viewContainerRef.get(t);s.context.index=this._renderedRange.start+t,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(u,d,l)=>this._getEmbeddedViewArgs(u,l),u=>u.item),e.forEachIdentityChange(u=>{this._viewContainerRef.get(u.currentIndex).context.$implicit=u.item});const t=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const u=this._viewContainerRef.get(s);u.context.index=this._renderedRange.start+s,u.context.count=t,this._updateComputedContextProperties(u.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.s_b),_.Y36(_.Rgc),_.Y36(_.ZZ4),_.Y36(Pn),_.Y36(en,4),_.Y36(_.R0b))},o.\u0275dir=_.lG2({type:o,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[_._Bn([{provide:Pn,useClass:ta}])]}),o})(),In=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),Wa=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Go,In,Go,In]}),o})();class Ch{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class wh extends Ch{constructor(r,e,t,s){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=s}}class yh extends Ch{constructor(r,e,t,s){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=s}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class Wm extends Ch{constructor(r){super(),this.element=r instanceof _.SBq?r.nativeElement:r}}class vh{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof wh?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof yh?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof Wm?(this._attachedPortal=r,this.attachDomPortal(r)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Ah extends vh{constructor(r,e,t,s,u){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=s,this.attachDomPortal=d=>{const l=d.element,n=this._document.createComment("dom-portal");l.parentNode.insertBefore(n,l),this.outletElement.appendChild(l),this._attachedPortal=d,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(l,n)})},this._document=u}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let s;return r.viewContainerRef?(s=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=t.create(r.injector||this._defaultInjector||_.zs3.NULL),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=r,s}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(s=>this.outletElement.appendChild(s)),t.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(t);-1!==s&&e.remove(s)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let Yc=(()=>{class o extends vh{constructor(e,t,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new _.vpe,this.attachDomPortal=u=>{const d=u.element,l=this._document.createComment("dom-portal");u.setAttachedHost(this),d.parentNode.insertBefore(l,d),this._getRootNode().appendChild(d),this._attachedPortal=u,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(d,l)})},this._document=s}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,u=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(u,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]),super.setDisposeFn(()=>d.destroy()),this._attachedPortal=e,this._attachedRef=d,this.attached.emit(d),d}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_._Vd),_.Y36(_.s_b),_.Y36(M.K0))},o.\u0275dir=_.lG2({type:o,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[_.qOj]}),o})(),ia=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})();var nr=E(6451);const $m=Vf();class dy{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=ui(-this._previousScrollPosition.left),r.style.top=ui(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,s=this._document.body.style,u=t.scrollBehavior||"",d=s.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),$m&&(t.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),$m&&(t.scrollBehavior=u,s.scrollBehavior=d)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class Sh{constructor(r,e,t,s){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Qm{enable(){}disable(){}attach(){}}function Jc(o,r){return r.some(e=>o.bottome.bottom||o.righte.right)}function Kc(o,r){return r.some(e=>o.tope.bottom||o.lefte.right)}class Ym{constructor(r,e,t,s){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=s,this._scrollSubscription=null}attach(r){this._overlayRef=r}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:s}=this._viewportRuler.getViewportSize();Jc(e,[{width:t,height:s,bottom:s,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let xS=(()=>{class o{constructor(e,t,s,u){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=s,this.noop=()=>new Qm,this.close=d=>new Sh(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new dy(this._viewportRuler,this._document),this.reposition=d=>new Ym(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=u}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Qc),_.LFG(Ga),_.LFG(_.R0b),_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class uy{constructor(r){if(this.scrollStrategy=new Qm,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class hy{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let Th=(()=>{class o{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Km=(()=>{class o extends Th{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=s=>{const u=this._attachedOverlays;for(let d=u.length-1;d>-1;d--)if(u[d]._keydownEvents.observers.length>0){const l=u[d]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0),_.LFG(_.R0b,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Eh=(()=>{class o extends Th{constructor(e,t,s){super(e),this._platform=t,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=u=>{this._pointerDownEventTarget=mn(u)},this._clickListener=u=>{const d=mn(u),l="click"===u.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:d;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const a=n[i];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(a.overlayElement.contains(d)||a.overlayElement.contains(l))break;const c=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(u)):c.next(u)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0),_.LFG(gi),_.LFG(_.R0b,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),yn=(()=>{class o{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Ac()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let u=0;uthis._backdropClick.next(c),this._backdropTransitionendHandler=c=>{this._disposeBackdrop(c.target)},this._keydownEvents=new Ee.x,this._outsidePointerEvents=new Ee.x,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ri.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,r&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=ui(this._config.width),r.height=ui(this._config.height),r.minWidth=ui(this._config.minWidth),r.minHeight=ui(this._config.minHeight),r.maxWidth=ui(this._config.maxWidth),r.maxHeight=ui(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){const s=Ks(e||[]).filter(u=>!!u);s.length&&(t?r.classList.add(...s):r.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(It((0,nr.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const ll="cdk-overlay-connected-position-bounding-box",cl=/([A-Za-z%]+)$/;class my{constructor(r,e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Ee.x,this._resizeSubscription=Gt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(ll),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._originRect,e=this._overlayRect,t=this._viewportRect,s=this._containerRect,u=[];let d;for(let l of this._preferredPositions){let n=this._getOriginPoint(r,s,l),i=this._getOverlayPoint(n,e,l),a=this._getOverlayFit(i,e,t,l);if(a.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,n);this._canFitWithFlexibleDimensions(a,i,t)?u.push({position:l,origin:n,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(n,l)}):(!d||d.overlayFit.visibleArean&&(n=a,l=i)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(d.position,d.originPoint);this._applyPosition(d.position,d.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Mr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ll),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let s,u;if("center"==t.originX)s=r.left+r.width/2;else{const d=this._isRtl()?r.right:r.left,l=this._isRtl()?r.left:r.right;s="start"==t.originX?d:l}return e.left<0&&(s-=e.left),u="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(u-=e.top),{x:s,y:u}}_getOverlayPoint(r,e,t){let s,u;return s="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,u="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:r.x+s,y:r.y+u}}_getOverlayFit(r,e,t,s){const u=Zm(e);let{x:d,y:l}=r,n=this._getOffset(s,"x"),i=this._getOffset(s,"y");n&&(d+=n),i&&(l+=i);let h=0-l,f=l+u.height-t.height,m=this._subtractOverflows(u.width,0-d,d+u.width-t.width),p=this._subtractOverflows(u.height,h,f),w=m*p;return{visibleArea:w,isCompletelyWithinViewport:u.width*u.height===w,fitsInViewportVertically:p===u.height,fitsInViewportHorizontally:m==u.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const s=t.bottom-e.y,u=t.right-e.x,d=Mh(this._overlayRef.getConfig().minHeight),l=Mh(this._overlayRef.getConfig().minWidth),i=r.fitsInViewportHorizontally||null!=l&&l<=u;return(r.fitsInViewportVertically||null!=d&&d<=s)&&i}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const s=Zm(e),u=this._viewportRect,d=Math.max(r.x+s.width-u.width,0),l=Math.max(r.y+s.height-u.height,0),n=Math.max(u.top-t.top-r.y,0),i=Math.max(u.left-t.left-r.x,0);let a=0,c=0;return a=s.width<=u.width?i||-d:r.xm&&!this._isInitialRender&&!this._growAfterOpen&&(d=r.y-m/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)h=t.width-r.x+this._viewportMargin,a=r.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)c=r.x,a=t.right-r.x;else{const f=Math.min(t.right-r.x+t.left,r.x),m=this._lastBoundingBoxSize.width;a=2*f,c=r.x-f,a>m&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.x-m/2)}return{top:d,left:c,bottom:l,right:h,width:a,height:u}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const u=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;s.height=ui(t.height),s.top=ui(t.top),s.bottom=ui(t.bottom),s.width=ui(t.width),s.left=ui(t.left),s.right=ui(t.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",u&&(s.maxHeight=ui(u)),d&&(s.maxWidth=ui(d))}this._lastBoundingBoxSize=t,Mr(this._boundingBox.style,s)}_resetBoundingBoxStyles(){Mr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Mr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const t={},s=this._hasExactPosition(),u=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(s){const a=this._viewportRuler.getViewportScrollPosition();Mr(t,this._getExactOverlayY(e,r,a)),Mr(t,this._getExactOverlayX(e,r,a))}else t.position="static";let l="",n=this._getOffset(e,"x"),i=this._getOffset(e,"y");n&&(l+=`translateX(${n}px) `),i&&(l+=`translateY(${i}px)`),t.transform=l.trim(),d.maxHeight&&(s?t.maxHeight=ui(d.maxHeight):u&&(t.maxHeight="")),d.maxWidth&&(s?t.maxWidth=ui(d.maxWidth):u&&(t.maxWidth="")),Mr(this._pane.style,t)}_getExactOverlayY(r,e,t){let s={top:"",bottom:""},u=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),"bottom"===r.overlayY?s.bottom=this._document.documentElement.clientHeight-(u.y+this._overlayRect.height)+"px":s.top=ui(u.y),s}_getExactOverlayX(r,e,t){let d,s={left:"",right:""},u=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),d=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===d?s.right=this._document.documentElement.clientWidth-(u.x+this._overlayRect.width)+"px":s.left=ui(u.x),s}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Kc(r,t),isOriginOutsideView:Jc(r,t),isOverlayClipped:Kc(e,t),isOverlayOutsideView:Jc(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,s)=>t-Math.max(s,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Ks(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof _.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function Mr(o,r){for(let e in r)r.hasOwnProperty(e)&&(o[e]=r[e]);return o}function Mh(o){if("number"!=typeof o&&null!=o){const[r,e]=o.split(cl);return e&&"px"!==e?null:parseFloat(r)}return o||null}function Zm(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}const Xm="cdk-global-overlay-wrapper";class TS{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(Xm),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:s,height:u,maxWidth:d,maxHeight:l}=t,n=!("100%"!==s&&"100vw"!==s||d&&"100%"!==d&&"100vw"!==d),i=!("100%"!==u&&"100vh"!==u||l&&"100%"!==l&&"100vh"!==l),a=this._xPosition,c=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",m="",p="";n?p="flex-start":"center"===a?(p="center",h?m=c:f=c):h?"left"===a||"end"===a?(p="flex-end",f=c):("right"===a||"start"===a)&&(p="flex-start",m=c):"left"===a||"start"===a?(p="flex-start",f=c):("right"===a||"end"===a)&&(p="flex-end",m=c),r.position=this._cssPosition,r.marginLeft=n?"0":f,r.marginTop=i?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=n?"0":m,e.justifyContent=p,e.alignItems=i?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Xm),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let gy=(()=>{class o{constructor(e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u}global(){return new TS}flexibleConnectedTo(e){return new my(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Ga),_.LFG(M.K0),_.LFG(gi),_.LFG(yn))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ES=0,rr=(()=>{class o{constructor(e,t,s,u,d,l,n,i,a,c,h,f){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=s,this._positionBuilder=u,this._keyboardDispatcher=d,this._injector=l,this._ngZone=n,this._document=i,this._directionality=a,this._location=c,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(e){const t=this._createHostElement(),s=this._createPaneElement(t),u=this._createPortalOutlet(s),d=new uy(e);return d.direction=d.direction||this._directionality.value,new na(u,t,s,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+ES++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(_.z2F)),new Ah(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(xS),_.LFG(yn),_.LFG(_._Vd),_.LFG(gy),_.LFG(Km),_.LFG(_.zs3),_.LFG(_.R0b),_.LFG(M.K0),_.LFG(Rn),_.LFG(M.Ye),_.LFG(Eh),_.LFG(_.QbO,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const Dh={provide:new _.OlP("cdk-connected-overlay-scroll-strategy"),deps:[rr],useFactory:function eg(o){return()=>o.scrollStrategies.reposition()}};let Yo=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[rr,Dh],imports:[Go,ia,Wa,Wa]}),o})();class ig{}const Dr="*";function oi(o,r){return{type:7,name:o,definitions:r,options:{}}}function yt(o,r=null){return{type:4,styles:r,timings:o}}function ng(o,r=null){return{type:3,steps:o,options:r}}function dl(o,r=null){return{type:2,steps:o,options:r}}function je(o){return{type:6,styles:o,offset:null}}function ft(o,r,e){return{type:0,name:o,styles:r,options:e}}function bt(o,r,e=null){return{type:1,expr:o,animation:r,options:e}}function Jo(o=null){return{type:9,options:o}}function dn(o,r,e=null){return{type:11,selector:o,animation:r,options:e}}function Di(o){Promise.resolve(null).then(o)}class Bn{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Di(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class ul{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,s=0;const u=this.players.length;0==u?Di(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==u&&this._onFinish()}),d.onDestroy(()=>{++t==u&&this._onDestroy()}),d.onStart(()=>{++s==u&&this._onStart()})}),this.totalTime=this.players.reduce((d,l)=>Math.max(d,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const s=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(s)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Hh=["connectionContainer"],Ko=["inputContainer"],Zo=["label"];function Xo(o,r){1&o&&(_.ynx(0),_.TgZ(1,"div",14),_._UZ(2,"div",15)(3,"div",16)(4,"div",17),_.qZA(),_.TgZ(5,"div",18),_._UZ(6,"div",15)(7,"div",16)(8,"div",17),_.qZA(),_.BQk())}function es(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"div",19),_.NdJ("cdkObserveContent",function(){_.CHM(e);const s=_.oxw();return _.KtG(s.updateOutlineGap())}),_.Hsn(1,1),_.qZA()}if(2&o){const e=_.oxw();_.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function ts(o,r){if(1&o&&(_.ynx(0),_.Hsn(1,2),_.TgZ(2,"span"),_._uU(3),_.qZA(),_.BQk()),2&o){const e=_.oxw(2);_.xp6(3),_.Oqu(e._control.placeholder)}}function is(o,r){1&o&&_.Hsn(0,3,["*ngSwitchCase","true"])}function ns(o,r){1&o&&(_.TgZ(0,"span",23),_._uU(1," *"),_.qZA())}function rs(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"label",20,21),_.NdJ("cdkObserveContent",function(){_.CHM(e);const s=_.oxw();return _.KtG(s.updateOutlineGap())}),_.YNc(2,ts,4,1,"ng-container",12),_.YNc(3,is,1,0,"ng-content",12),_.YNc(4,ns,2,0,"span",22),_.qZA()}if(2&o){const e=_.oxw();_.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),_.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),_.uIk("for",e._control.id)("aria-owns",e._control.id),_.xp6(2),_.Q6J("ngSwitchCase",!1),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function as(o,r){1&o&&(_.TgZ(0,"div",24),_.Hsn(1,4),_.qZA())}function rg(o,r){if(1&o&&(_.TgZ(0,"div",25),_._UZ(1,"span",26),_.qZA()),2&o){const e=_.oxw();_.xp6(1),_.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function ag(o,r){if(1&o&&(_.TgZ(0,"div"),_.Hsn(1,5),_.qZA()),2&o){const e=_.oxw();_.Q6J("@transitionMessages",e._subscriptAnimationState)}}function og(o,r){if(1&o&&(_.TgZ(0,"div",30),_._uU(1),_.qZA()),2&o){const e=_.oxw(2);_.Q6J("id",e._hintLabelId),_.xp6(1),_.Oqu(e.hintLabel)}}function sg(o,r){if(1&o&&(_.TgZ(0,"div",27),_.YNc(1,og,2,2,"div",28),_.Hsn(2,6),_._UZ(3,"div",29),_.Hsn(4,7),_.qZA()),2&o){const e=_.oxw();_.Q6J("@transitionMessages",e._subscriptAnimationState),_.xp6(1),_.Q6J("ngIf",e.hintLabel)}}const lg=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],cg=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let dg=0;const Rh=new _.OlP("MatError");let Ph=(()=>{class o{constructor(e,t){this.id="mat-error-"+dg++,e||t.nativeElement.setAttribute("aria-live","polite")}}return o.\u0275fac=function(e){return new(e||o)(_.$8M("aria-live"),_.Y36(_.SBq))},o.\u0275dir=_.lG2({type:o,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&_.uIk("id",t.id)},inputs:{id:"id"},features:[_._Bn([{provide:Rh,useExisting:o}])]}),o})();const Cy={transitionMessages:oi("transitionMessages",[ft("enter",je({opacity:1,transform:"translateY(0%)"})),bt("void => enter",[je({opacity:0,transform:"translateY(-5px)"}),yt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ed=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o}),o})();const Ih=new _.OlP("MatHint");let kh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,selectors:[["mat-label"]]}),o})(),td=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,selectors:[["mat-placeholder"]]}),o})();const id=new _.OlP("MatPrefix"),vy=new _.OlP("MatSuffix");let hl=0;const Lh=Na(class{constructor(o){this._elementRef=o}},"primary"),pg=new _.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),nd=new _.OlP("MatFormField");let pl=(()=>{class o extends Lh{constructor(e,t,s,u,d,l,n){super(e),this._changeDetectorRef=t,this._dir=s,this._defaults=u,this._platform=d,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Ee.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+hl++,this._labelId="mat-form-field-label-"+hl++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==n,this.appearance=u?.appearance||"legacy",u&&(this._hideRequiredMarker=Boolean(u.hideRequiredMarker),u.color&&(this.color=this.defaultColor=u.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ut(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Si(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(It(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(It(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,nr.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Si(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Si(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(It(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Qo(this._label.nativeElement,"transitionend").pipe((0,ri.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(u=>"start"===u.align):null,s=this._hintChildren?this._hintChildren.find(u=>"end"===u.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),s&&e.push(s.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",u=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const a=t.querySelectorAll(`${s}, ${u}`);for(let c=0;c0?.75*m+10:0}for(let a=0;a{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,Se,Zs,Se]}),o})();const _i={provide:new _.OlP("mat-select-scroll-strategy"),deps:[rr],useFactory:function bg(o){return()=>o.scrollStrategies.reposition()}};let fl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[_i],imports:[M.ez,Yo,Fc,Se,In,Hr,Fc,Se]}),o})();const ar={provide:new _.OlP("mat-tooltip-scroll-strategy"),deps:[rr],useFactory:function Uh(o){return()=>o.scrollStrategies.reposition({scrollThrottle:20})}};let os=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[ar],imports:[Ua,M.ez,Yo,Se,Se,In]}),o})(),ad=(()=>{class o{constructor(){this.changes=new Ee.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,s)=>{if(0==s||0==t)return`0 of ${s}`;const u=e*t;return`${u+1} \u2013 ${u<(s=Math.max(s,0))?Math.min(u+t,s):u+t} of ${s}`}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const yg={provide:ad,deps:[[new _.FiY,new _.tp0,ad]],useFactory:function Gy(o){return o||new ad}};let $a=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[yg],imports:[M.ez,Tr,fl,os,Se]}),o})();const av={provide:new _.OlP("mat-menu-scroll-strategy"),deps:[rr],useFactory:function rv(o){return()=>o.scrollStrategies.reposition()}};let gl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[av],imports:[M.ez,Se,Cn,Yo,In,Se]}),o})();var xg=E(4742),Sg=E(1810);function od(...o){const r=(0,wa.jO)(o),{args:e,keys:t}=(0,xg.D)(o),s=new Qe.y(u=>{const{length:d}=e;if(!d)return void u.complete();const l=new Array(d);let n=d,i=d;for(let a=0;a{c||(c=!0,i--),l[a]=h},()=>n--,void 0,()=>{(!n||!c)&&(i||u.next(t?(0,Sg.n)(t,l):l),u.complete())}))}});return r?s.pipe((0,Nc.Z)(r)):s}var v=E(529);const Tg=["*"];let _l;function Qa(o){return function zh(){if(void 0===_l&&(_l=null,typeof window<"u")){const o=window;void 0!==o.trustedTypes&&(_l=o.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return _l}()?.createHTML(o)||o}function ra(o){return Error(`Unable to find icon with the name "${o}"`)}function Eg(o){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${o}".`)}function Ya(o){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${o}".`)}class ss{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let Ja=(()=>{class o{constructor(e,t,s,u){this._httpClient=e,this._sanitizer=t,this._errorHandler=u,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=s}addSvgIcon(e,t,s){return this.addSvgIconInNamespace("",e,t,s)}addSvgIconLiteral(e,t,s){return this.addSvgIconLiteralInNamespace("",e,t,s)}addSvgIconInNamespace(e,t,s,u){return this._addSvgIconConfig(e,t,new ss(s,null,u))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,s,u){const d=this._sanitizer.sanitize(_.q3G.HTML,s);if(!d)throw Ya(s);const l=Qa(d);return this._addSvgIconConfig(e,t,new ss("",l,u))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,s){return this._addSvgIconSetConfig(e,new ss(t,null,s))}addSvgIconSetLiteralInNamespace(e,t,s){const u=this._sanitizer.sanitize(_.q3G.HTML,t);if(!u)throw Ya(t);const d=Qa(u);return this._addSvgIconSetConfig(e,new ss("",d,s))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(_.q3G.RESOURCE_URL,e);if(!t)throw Eg(e);const s=this._cachedIconsByUrl.get(t);return s?(0,ke.of)(bl(s)):this._loadSvgIconFromConfig(new ss(e,null)).pipe((0,$t.b)(u=>this._cachedIconsByUrl.set(t,u)),(0,qe.U)(u=>bl(u)))}getNamedSvgIcon(e,t=""){const s=dv(t,e);let u=this._svgIconConfigs.get(s);if(u)return this._getSvgFromConfig(u);if(u=this._getIconConfigFromResolvers(t,e),u)return this._svgIconConfigs.set(s,u),this._getSvgFromConfig(u);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,wi._)(ra(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,ke.of)(bl(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,qe.U)(t=>bl(t)))}_getSvgFromIconSetConfigs(e,t){const s=this._extractIconWithNameFromAnySet(e,t);return s?(0,ke.of)(s):od(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,Et.K)(l=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(_.q3G.RESOURCE_URL,d.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(i)),(0,ke.of)(null)})))).pipe((0,qe.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw ra(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let s=t.length-1;s>=0;s--){const u=t[s];if(u.svgText&&u.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(u),l=this._extractSvgIconFromSet(d,e,u.options);if(l)return l}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,$t.b)(t=>e.svgText=t),(0,qe.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,ke.of)(null):this._fetchIcon(e).pipe((0,$t.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,s){const u=e.querySelector(`[id="${t}"]`);if(!u)return null;const d=u.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,s);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),s);const l=this._svgElementFromString(Qa(""));return l.appendChild(d),this._setSvgAttributes(l,s)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const s=t.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(e){const t=this._svgElementFromString(Qa("")),s=e.attributes;for(let u=0;uQa(i)),va(()=>this._inProgressUrlFetches.delete(d)),(0,Wc.B)());return this._inProgressUrlFetches.set(d,n),n}_addSvgIconConfig(e,t,s){return this._svgIconConfigs.set(dv(e,t),s),this}_addSvgIconSetConfig(e,t){const s=this._iconSetConfigs.get(e);return s?s.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let s=0;sr?r.pathname+r.search:""}}}),Mg=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],sd=Mg.map(o=>`[${o}]`).join(", "),ld=/^url\(['"]?#(.*?)['"]?\)$/;let Ft=(()=>{class o extends uv{constructor(e,t,s,u,d,l){super(e),this._iconRegistry=t,this._location=u,this._errorHandler=d,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Gt.w0.EMPTY,l&&(l.color&&(this.color=this.defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),s||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ut(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const s=e.childNodes[t];(1!==s.nodeType||"svg"===s.nodeName.toLowerCase())&&s.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(s=>s.length>0);this._previousFontSetClass.forEach(s=>e.classList.remove(s)),t.forEach(s=>e.classList.add(s)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((s,u)=>{s.forEach(d=>{u.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(sd),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let u=0;u{const l=t[u],n=l.getAttribute(d),i=n?n.match(ld):null;if(i){let a=s.get(l);a||(a=[],s.set(l,a)),a.push({name:d,value:i[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,s]=this._splitIconName(e);t&&(this._svgNamespace=t),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,t).pipe((0,ri.q)(1)).subscribe(u=>this._setSvgElement(u),u=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${s}! ${u.message}`))})}}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(Ja),_.$8M("aria-hidden"),_.Y36(pv),_.Y36(_.qLn),_.Y36(hv,8))},o.\u0275cmp=_.Xpm({type:o,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(_.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),_.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[_.qOj],ngContentSelectors:Tg,decls:1,vars:0,template:function(e,t){1&e&&(_.F$t(),_.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),o})(),aa=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})();class cs{}let Gh=(()=>{class o extends cs{getTranslation(e){return(0,ke.of)({})}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class Wh{}let $h=(()=>{class o{handle(e){return e.key}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();function Cl(o,r){if(o===r)return!0;if(null===o||null===r)return!1;if(o!=o&&r!=r)return!0;let s,u,d,e=typeof o;if(e==typeof r&&"object"==e){if(!Array.isArray(o)){if(Array.isArray(r))return!1;for(u in d=Object.create(null),o){if(!Cl(o[u],r[u]))return!1;d[u]=!0}for(u in r)if(!(u in d)&&typeof r[u]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((s=o.length)==r.length){for(u=0;u{cd(r[t])?t in o?e[t]=Dg(o[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class dd{}let Hg=(()=>{class o extends dd{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let s;return s="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,s}getValue(e,t){let s="string"==typeof t?t.split("."):[t];t="";do{t+=s.shift(),!Pr(e)||!Pr(e[t])||"object"!=typeof e[t]&&s.length?s.length?t+=".":e=void 0:(e=e[t],t="")}while(s.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(s,u)=>{let d=this.getValue(t,u);return Pr(d)?d:s}):e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class oa{}let Rg=(()=>{class o extends oa{compile(e,t){return e}compileTranslations(e,t){return e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class Pg{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new _.vpe,this.onLangChange=new _.vpe,this.onDefaultLangChange=new _.vpe}}const Qh=new _.OlP("USE_STORE"),ds=new _.OlP("USE_DEFAULT_LANG"),ud=new _.OlP("DEFAULT_LANGUAGE"),hd=new _.OlP("USE_EXTEND");let sa=(()=>{class o{constructor(e,t,s,u,d,l=!0,n=!1,i=!1,a){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=u,this.missingTranslationHandler=d,this.useDefaultLang=l,this.isolate=n,this.extend=i,this.pending=!1,this._onTranslationChange=new _.vpe,this._onLangChange=new _.vpe,this._onDefaultLangChange=new _.vpe,this._langs=[],this._translations={},this._translationRequests={},a&&this.setDefaultLang(a)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,ri.q)(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,ke.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,ri.q)(1)).subscribe(s=>{this.changeLang(e)}),t):(this.changeLang(e),(0,ke.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(hh(1),(0,ri.q)(1));return this.loadingTranslations=t.pipe((0,qe.U)(s=>this.compiler.compileTranslations(s,e)),hh(1),(0,ri.q)(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?{...s,...this.translations[e]}:s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),t}setTranslation(e,t,s=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(s||this.extend)&&this.translations[e]?Dg(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,s){let u;if(t instanceof Array){let d={},l=!1;for(let n of t)d[n]=this.getParsedResult(e,n,s),cn(d[n])&&(l=!0);return l?od(t.map(i=>cn(d[i])?d[i]:(0,ke.of)(d[i]))).pipe((0,qe.U)(i=>{let a={};return i.forEach((c,h)=>{a[t[h]]=c}),a})):d}if(e&&(u=this.parser.interpolate(this.parser.getValue(e,t),s)),typeof u>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(u=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),s)),typeof u>"u"){let d={key:t,translateService:this};typeof s<"u"&&(d.interpolateParams=s),u=this.missingTranslationHandler.handle(d)}return typeof u<"u"?u:t}get(e,t){if(!Pr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Bt.b)(s=>cn(s=this.getParsedResult(s,e,t))?s:(0,ke.of)(s)));{let s=this.getParsedResult(this.translations[this.currentLang],e,t);return cn(s)?s:(0,ke.of)(s)}}getStreamOnTranslationChange(e,t){if(!Pr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ui.z)(on(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Bi.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return"function"==typeof u.subscribe?u:(0,ke.of)(u)})))}stream(e,t){if(!Pr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ui.z)(on(()=>this.get(e,t)),this.onLangChange.pipe((0,Bi.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return cn(u)?u:(0,ke.of)(u)})))}instant(e,t){if(!Pr(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,t);if(cn(s)){if(e instanceof Array){let u={};return e.forEach((d,l)=>{u[e[l]]=e[l]}),u}return e}return s}set(e,t,s=this.currentLang){this.translations[s][e]=this.compiler.compile(t,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Pg),_.LFG(cs),_.LFG(oa),_.LFG(dd),_.LFG(Wh),_.LFG(ds),_.LFG(Qh),_.LFG(hd),_.LFG(ud))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),Hi=(()=>{class o{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,s){let u=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(s){let d=this.translate.getParsedResult(s,e,t);cn(d.subscribe)?d.subscribe(u):u(d)}this.translate.get(e,t).subscribe(u)}transform(e,...t){if(!e||!e.length)return e;if(Cl(e,this.lastKey)&&Cl(t,this.lastParams))return this.value;let s;if(Pr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let u=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(u)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(s=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(u=>{this.lastKey&&u.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(u=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(sa,16),_.Y36(_.sBO,16))},o.\u0275pipe=_.Yjl({name:"translate",type:o,pure:!1}),o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),lr=(()=>{class o{static forRoot(e={}){return{ngModule:o,providers:[e.loader||{provide:cs,useClass:Gh},e.compiler||{provide:oa,useClass:Rg},e.parser||{provide:dd,useClass:Hg},e.missingTranslationHandler||{provide:Wh,useClass:$h},Pg,{provide:Qh,useValue:e.isolate},{provide:ds,useValue:e.useDefaultLang},{provide:hd,useValue:e.extend},{provide:ud,useValue:e.defaultLanguage},sa]}}static forChild(e={}){return{ngModule:o,providers:[e.loader||{provide:cs,useClass:Gh},e.compiler||{provide:oa,useClass:Rg},e.parser||{provide:dd,useClass:Hg},e.missingTranslationHandler||{provide:Wh,useClass:$h},{provide:Qh,useValue:e.isolate},{provide:ds,useValue:e.useDefaultLang},{provide:hd,useValue:e.extend},{provide:ud,useValue:e.defaultLanguage},sa]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),Ig=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[$a,gl,aa,Tr,lr,M.ez]}),o})();var fv=E(5861);function mv(o,r){}class wl{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let Yh=(()=>{class o extends vh{constructor(e,t,s,u,d,l,n,i){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=u,this._interactivityChecker=d,this._ngZone=l,this._overlayRef=n,this._focusMonitor=i,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=a=>{this._portalOutlet.hasAttached();const c=this._portalOutlet.attachDomPortal(a);return this._contentAttached(),c},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=s}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const s=()=>{e.removeEventListener("blur",s),e.removeEventListener("mousedown",s),e.removeAttribute("tabindex")};e.addEventListener("blur",s),e.addEventListener("mousedown",s)})),e.focus(t)}_focusByCssSelector(e,t){let s=this._elementRef.nativeElement.querySelector(e);s&&this._forceFocus(s,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const s=vc(),u=this._elementRef.nativeElement;(!s||s===this._document.body||s===u||u.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=vc();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=vc())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(zu),_.Y36(M.K0,8),_.Y36(wl),_.Y36(Xs),_.Y36(_.R0b),_.Y36(na),_.Y36(gn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&_.Gf(Yc,7),2&e){let s;_.iGM(s=_.CRH())&&(t._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&_.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[_.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&_.YNc(0,mv,0,0,"ng-template",0)},dependencies:[Yc],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),o})();class Jh{constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new Ee.x,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!Sr(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const Kh=new _.OlP("DialogScrollStrategy"),_v=new _.OlP("DialogData"),bv=new _.OlP("DefaultDialogConfig"),cT={provide:Kh,deps:[rr],useFactory:function lT(o){return()=>o.scrollStrategies.block()}};let dT=0,Cv=(()=>{class o{constructor(e,t,s,u,d,l){this._overlay=e,this._injector=t,this._defaultOptions=s,this._parentDialog=u,this._overlayContainer=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Ee.x,this._afterOpenedAtThisLevel=new Ee.x,this._ariaHiddenElements=new Map,this.afterAllClosed=on(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Si(void 0))),this._scrollStrategy=l}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new wl,...t}).id=t.id||"cdk-dialog-"+dT++,t.id&&this.getDialogById(t.id);const u=this._getOverlayConfig(t),d=this._overlay.create(u),l=new Jh(d,t),n=this._attachContainer(d,l,t);return l.containerInstance=n,this._attachDialogContent(e,l,n,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){pd(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){pd(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),pd(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new uy({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,s){const u=s.injector??s.viewContainerRef?.injector,d=[{provide:wl,useValue:s},{provide:Jh,useValue:t},{provide:na,useValue:e}];let l;s.container?"function"==typeof s.container?l=s.container:(l=s.container.type,d.push(...s.container.providers(s))):l=Yh;const n=new wh(l,s.viewContainerRef,_.zs3.create({parent:u||this._injector,providers:d}),s.componentFactoryResolver);return e.attach(n).instance}_attachDialogContent(e,t,s,u){const d=this._createInjector(u,t,s);if(e instanceof _.Rgc){let l={$implicit:u.data,dialogRef:t};u.templateContext&&(l={...l,..."function"==typeof u.templateContext?u.templateContext():u.templateContext}),s.attachTemplatePortal(new yh(e,null,l,d))}else{const l=s.attachComponentPortal(new wh(e,u.viewContainerRef,d,u.componentFactoryResolver));t.componentInstance=l.instance}}_createInjector(e,t,s){const u=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:_v,useValue:e.data},{provide:Jh,useValue:t}];return e.providers&&("function"==typeof e.providers?d.push(...e.providers(t,e,s)):d.push(...e.providers)),e.direction&&(!u||!u.get(Rn,null,_.XFs.Optional))&&d.push({provide:Rn,useValue:{value:e.direction,change:(0,ke.of)()}}),_.zs3.create({parent:e.injector||u||this._injector,providers:d})}_removeOpenDialog(e,t){const s=this.openDialogs.indexOf(e);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((u,d)=>{u?d.setAttribute("aria-hidden",u):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let s=t.length-1;s>-1;s--){const u=t[s];u!==e&&"SCRIPT"!==u.nodeName&&"STYLE"!==u.nodeName&&!u.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(u,u.getAttribute("aria-hidden")),u.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(rr),_.LFG(_.zs3),_.LFG(bv,8),_.LFG(o,12),_.LFG(yn),_.LFG(Kh))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();function pd(o,r){let e=o.length;for(;e--;)r(o[e])}let fd=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[Cv,cT],imports:[Yo,ia,Ua,ia]}),o})();function wv(o,r){}const us={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},kg={dialogContainer:oi("dialogContainer",[ft("void, exit",je({opacity:0,transform:"scale(0.7)"})),ft("enter",je({transform:"none"})),bt("* => enter",ng([yt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",je({transform:"none",opacity:1})),dn("@*",Jo(),{optional:!0})]),us),bt("* => void, * => exit",ng([yt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",je({opacity:0})),dn("@*",Jo(),{optional:!0})]),us)])};class Ir{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=us.params.enterAnimationDuration,this.exitAnimationDuration=us.params.exitAnimationDuration}}let yv=(()=>{class o extends Yh{constructor(e,t,s,u,d,l,n,i){super(e,t,s,u,d,l,n,i),this._animationStateChanged=new _.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(zu),_.Y36(M.K0,8),_.Y36(Ir),_.Y36(Xs),_.Y36(_.R0b),_.Y36(na),_.Y36(gn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["ng-component"]],features:[_.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),o})(),vv=(()=>{class o extends yv{constructor(e,t,s,u,d,l,n,i,a){super(e,t,s,u,d,l,n,a),this._changeDetectorRef=i,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||us.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||us.params.exitAnimationDuration}}}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(zu),_.Y36(M.K0,8),_.Y36(Ir),_.Y36(Xs),_.Y36(_.R0b),_.Y36(na),_.Y36(_.sBO),_.Y36(gn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&_.WFA("@dialogContainer.start",function(u){return t._onAnimationStart(u)})("@dialogContainer.done",function(u){return t._onAnimationDone(u)}),2&e&&(_.Ikx("id",t._config.id),_.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),_.d8E("@dialogContainer",t._getAnimationState()))},features:[_.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&_.YNc(0,wv,0,0,"ng-template",0)},dependencies:[Yc],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[kg.dialogContainer]}}),o})();class Vn{constructor(r,e,t){this._ref=r,this._containerInstance=t,this._afterOpened=new Ee.x,this._beforeClosed=new Ee.x,this._state=0,this.disableClose=e.disableClose,this.id=r.id,t._animationStateChanged.pipe((0,Wt.h)(s=>"opened"===s.state),(0,ri.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Wt.h)(s=>"closed"===s.state),(0,ri.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,nr.T)(this.backdropClick(),this.keydownEvents().pipe((0,Wt.h)(s=>27===s.keyCode&&!this.disableClose&&!Sr(s)))).subscribe(s=>{this.disableClose||(s.preventDefault(),function Av(o,r,e){o._closeInteractionType=r,o.close(e)}(this,"keydown"===s.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,Wt.h)(e=>"closing"===e.state),(0,ri.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const hs=new _.OlP("MatDialogData"),Bg=new _.OlP("mat-dialog-default-options"),Vg=new _.OlP("mat-dialog-scroll-strategy"),xv={provide:Vg,deps:[rr],useFactory:function ps(o){return()=>o.scrollStrategies.block()}};let Og=0,Sv=(()=>{class o{constructor(e,t,s,u,d,l,n,i,a,c){this._overlay=e,this._defaultOptions=s,this._parentDialog=u,this._dialogRefConstructor=n,this._dialogContainerType=i,this._dialogDataToken=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Ee.x,this._afterOpenedAtThisLevel=new Ee.x,this._idPrefix="mat-dialog-",this.afterAllClosed=on(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Si(void 0))),this._scrollStrategy=l,this._dialog=t.get(Cv)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let s;(t={...this._defaultOptions||new Ir,...t}).id=t.id||`${this._idPrefix}${Og++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const u=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Ir,useValue:t},{provide:wl,useValue:t}]},templateContext:()=>({dialogRef:s}),providers:(d,l,n)=>(s=new this._dialogRefConstructor(d,t,n),s.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:s}])});return s.componentInstance=u.componentInstance,this.openDialogs.push(s),this.afterOpened.next(s),s.afterClosed().subscribe(()=>{const d=this.openDialogs.indexOf(s);d>-1&&(this.openDialogs.splice(d,1),this.openDialogs.length||this._getAfterAllClosed().next())}),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return o.\u0275fac=function(e){_.$Z()},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),cr=(()=>{class o extends Sv{constructor(e,t,s,u,d,l,n,i){super(e,t,u,l,n,d,Vn,vv,hs,i)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(rr),_.LFG(_.zs3),_.LFG(M.Ye,8),_.LFG(Bg,8),_.LFG(Vg),_.LFG(o,12),_.LFG(yn),_.LFG(_.QbO,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),Tv=0,la=(()=>{class o{constructor(e,t,s){this._dialogRef=e,this._elementRef=t,this._dialog=s,this.id="mat-dialog-title-"+Tv++}ngOnInit(){this._dialogRef||(this._dialogRef=function Lg(o,r){let e=o.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn,8),_.Y36(_.SBq),_.Y36(cr))},o.\u0275dir=_.lG2({type:o,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&_.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),o})(),dr=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),o})(),ca=(()=>{class o{constructor(){this.align="start"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&_.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),o})(),yl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[cr,xv],imports:[fd,Yo,ia,Se,Se]}),o})();function md(){return(md=(0,fv.Z)(function*(o,r){yield Fg(o),r()})).apply(this,arguments)}function Fg(o){return new Promise(r=>setTimeout(r,o))}function ur(){const o=new Ir;return o.disableClose=!0,o.autoFocus=!1,o}function gd(o,r){const e=r.split("&");for(const t of e){const[s,u]=t.split("=");if(s.includes(o))return u}return""}E(4327),new Intl.Collator("cs",{numeric:!0});class si{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const Xt=new _.OlP("basePath");class st{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let Jg=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new st,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new si}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}convertAttributeToNonunique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}convertAttributeToUnique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}createAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}deleteAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteAttributeDefinitions(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(m=>{l=this.addToHttpParams(l,m,"attributes[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAllAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAttribute(e,t,s,u,d,l,n,i,a,c,h,f=!1,m="body",p=!1,w){let R=new v.LE({encoder:this.encoder});null!=e&&(R=this.addToHttpParams(R,e,"attributeName")),null!=t&&(R=this.addToHttpParams(R,t,"attributeId")),null!=s&&(R=this.addToHttpParams(R,s,"facility")),null!=u&&(R=this.addToHttpParams(R,u,"user")),null!=d&&(R=this.addToHttpParams(R,d,"vo")),null!=l&&(R=this.addToHttpParams(R,l,"resource")),null!=n&&(R=this.addToHttpParams(R,n,"member")),null!=i&&(R=this.addToHttpParams(R,i,"group")),null!=a&&(R=this.addToHttpParams(R,a,"host")),null!=c&&(R=this.addToHttpParams(R,c,"userExtSource")),null!=h&&(R=this.addToHttpParams(R,h,"key"));let Te,J=this.defaultHeaders;Te=this.configuration.lookupCredential("BasicAuth"),Te&&(J=J.set("Authorization","Basic "+Te)),Te=this.configuration.lookupCredential("BearerAuth"),Te&&(J=J.set("Authorization","Bearer "+Te));let nt=w&&w.httpHeaderAccept;void 0===nt&&(nt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==nt&&(J=J.set("Accept",nt));let Ai=w&&w.context;void 0===Ai&&(Ai=new v.qT);let ii="json";nt&&(ii=nt.startsWith("text")?"text":this.configuration.isJsonMime(nt)?"json":"blob");let hi=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(f){let un=new URL(hi),fr=un.pathname.split("/");fr[1]="non",un.pathname=fr.join("/"),hi=un.toString()}return this.httpClient.get(hi,{context:Ai,params:R,responseType:ii,withCredentials:this.configuration.withCredentials,headers:J,observe:m,reportProgress:p})}getAttributeDefinitionById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionsByNamespace(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeModulesDependenciesForAttributeGraphText(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getAttributeModulesDependenciesGraphText(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRules(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributesDefinitionWithRights(e,t,s,u,d,l,n,i,a=!1,c="body",h=!1,f){let m=new v.LE({encoder:this.encoder});null!=e&&(m=this.addToHttpParams(m,e,"member")),null!=t&&(m=this.addToHttpParams(m,t,"user")),null!=s&&(m=this.addToHttpParams(m,s,"vo")),null!=u&&(m=this.addToHttpParams(m,u,"group")),null!=d&&(m=this.addToHttpParams(m,d,"resource")),null!=l&&(m=this.addToHttpParams(m,l,"facility")),null!=n&&(m=this.addToHttpParams(m,n,"host")),null!=i&&(m=this.addToHttpParams(m,i,"userExtSource"));let w,p=this.defaultHeaders;w=this.configuration.lookupCredential("BasicAuth"),w&&(p=p.set("Authorization","Basic "+w)),w=this.configuration.lookupCredential("BearerAuth"),w&&(p=p.set("Authorization","Bearer "+w));let R=f&&f.httpHeaderAccept;void 0===R&&(R=this.configuration.selectHeaderAccept(["application/json"])),void 0!==R&&(p=p.set("Accept",R));let J=f&&f.context;void 0===J&&(J=new v.qT);let Te="json";R&&(Te=R.startsWith("text")?"text":this.configuration.isJsonMime(R)?"json":"blob");let nt=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(a){let Ai=new URL(nt),ii=Ai.pathname.split("/");ii[1]="non",Ai.pathname=ii.join("/"),nt=Ai.toString()}return this.httpClient.get(nt,{context:J,params:m,responseType:Te,withCredentials:this.configuration.withCredentials,headers:p,observe:c,reportProgress:h})}getEntitylessAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessAttributesByKey(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesWithKeys(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"keys[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessKeys(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityResourceUserMemberAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"facility")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=s&&(a=this.addToHttpParams(a,s,"user")),null!=u&&(a=this.addToHttpParams(a,u,"member"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getFacilityUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getGroupResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getGroupResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getHostAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getIdpAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getLogins(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAndUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAndUserAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAndUserAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),s&&s.forEach(R=>{a=this.addToHttpParams(a,R,"attrNames[]")}),null!=u&&(a=this.addToHttpParams(a,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberGroupAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberGroupAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),s&&s.forEach(R=>{a=this.addToHttpParams(a,R,"attrNames[]")}),null!=u&&(a=this.addToHttpParams(a,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacility(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacilityService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesFacilityServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesGroupResourceService(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"service")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getRequiredAttributesHostService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMemberGroup(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getRequiredAttributesMemberGroupResourceService(e,t,s,u,d,l=!1,n="body",i=!1,a){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"group")),null!=u&&(c=this.addToHttpParams(c,u,"member")),null!=d&&(c=this.addToHttpParams(c,d,"workWithUserAttributes"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let p=a&&a.context;void 0===p&&(p=new v.qT);let w="json";m&&(w=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let R=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.get(R,{context:p,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"service")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=s&&(a=this.addToHttpParams(a,s,"member")),null!=u&&(a=this.addToHttpParams(a,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesMemberResource(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getRequiredAttributesMemberResourceService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"service")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=s&&(a=this.addToHttpParams(a,s,"member")),null!=u&&(a=this.addToHttpParams(a,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesResource(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesResourceService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesResourceServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesUserFacility(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesVoService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getResourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupAndGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"resource")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithGroupAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getResourceGroupAndGroupAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"resource")),null!=t&&(a=this.addToHttpParams(a,t,"group")),s&&s.forEach(R=>{a=this.addToHttpParams(a,R,"attrNames[]")}),null!=u&&(a=this.addToHttpParams(a,u,"workWithGroupAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getResourceGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupMemberAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"resource")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=s&&(a=this.addToHttpParams(a,s,"member")),u&&u.forEach(R=>{a=this.addToHttpParams(a,R,"attrNames[]")});let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getUserAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserFacilityAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getUserFacilityAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getUserFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVoAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeAttributesForFacilityResourceGroupUserMember(e,t,s,u,d,l,n=!1,i="body",a=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=s&&(h=this.addToHttpParams(h,s,"group")),null!=u&&(h=this.addToHttpParams(h,u,"user")),null!=d&&(h=this.addToHttpParams(h,d,"member")),l&&l.forEach(Te=>{h=this.addToHttpParams(h,Te,"attributes[]")});let m,f=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(f=f.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(f=f.set("Authorization","Bearer "+m));let p=c&&c.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(f=f.set("Accept",p));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";p&&(R=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(n){let Te=new URL(J),nt=Te.pathname.split("/");nt[1]="non",Te.pathname=nt.join("/"),J=Te.toString()}return this.httpClient.post(J,null,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:a})}removeAttributesForFacilityResourceUserMember(e,t,s,u,d,l=!1,n="body",i=!1,a){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"user")),null!=u&&(c=this.addToHttpParams(c,u,"member")),d&&d.forEach(J=>{c=this.addToHttpParams(c,J,"attributes[]")});let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let p=a&&a.context;void 0===p&&(p=new v.qT);let w="json";m&&(w=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let R=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.post(R,null,{context:p,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeGroupResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),s&&s.forEach(R=>{a=this.addToHttpParams(a,R,"attributes[]")}),null!=u&&(a=this.addToHttpParams(a,u,"workWithGroupAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeHostAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeHostAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributesWorkWithUserAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeMemberGroupAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeMemberGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),s&&s.forEach(R=>{a=this.addToHttpParams(a,R,"attributes[]")}),null!=u&&(a=this.addToHttpParams(a,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeMemberResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeMemberResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeResourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUesAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserExtSourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserFacilityAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeVoAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeVoAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}setAttributeActionCriticality(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==s)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"attributeDefinition")),null!=t&&(i=this.addToHttpParams(i,t,"action")),null!=s&&(i=this.addToHttpParams(i,s,"critical"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}setAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setEntitylessAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceGroupUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAndUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupWithGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(Xt,8),_.LFG(st,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Al=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new v.WM,this.configuration=new st,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new si}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAllPolicies(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAllRolesManagementRules(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAuthzAdminGroups(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=s&&(i=this.addToHttpParams(i,s,"complementaryObjectName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getAuthzRichAdmins(e,t,s,u,d,l,n=!1,i="body",a=!1,c){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==u)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=s&&(h=this.addToHttpParams(h,s,"complementaryObjectName")),u&&u.forEach(Te=>{h=this.addToHttpParams(h,Te,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=l&&(h=this.addToHttpParams(h,l,"onlyDirectAdmins"));let m,f=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(f=f.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(f=f.set("Authorization","Bearer "+m));let p=c&&c.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(f=f.set("Accept",p));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";p&&(R=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let J=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(n){let Te=new URL(J),nt=Te.pathname.split("/");nt[1]="non",Te.pathname=nt.join("/"),J=Te.toString()}return this.httpClient.get(J,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:a})}getFacilitiesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getLoggedUser(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getMembersWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getPerunPrincipal(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPrincipalRoleNames(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getResourcesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getSecurityTeamsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVosWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}isFacilityAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isGroupAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isPerunAdmin(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}isVoAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}keepAlive(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}loadAuthorizationComponents(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}refreshMfa(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}setRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(Xt,8),_.LFG(st,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),_d=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new st,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new si}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}sentMessageToRTWithMemberQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"memberId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=s&&(a=this.addToHttpParams(a,s,"subject")),null!=u&&(a=this.addToHttpParams(a,u,"text"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}sentMessageToRTWithQueue(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}sentMessageToRTWithVo(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}sentMessageToRTWithVoQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=s&&(a=this.addToHttpParams(a,s,"subject")),null!=u&&(a=this.addToHttpParams(a,u,"text"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(Xt,8),_.LFG(st,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),i_=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new st,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new si}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}addApplicationMailForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}addApplicationMailForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}addGroupsToAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(m=>{l=this.addToHttpParams(l,m,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}approveApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}checkForSimilarRichIdentities(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.post(c,null,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}checkForSimilarUsersWithAuthInfo(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.post(c,null,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}consolidate(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/consolidate`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}consolidateIdentityUsingToken(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}copyFormFromGroupToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromGroupToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromVoToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromVoToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromGroupToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromGroupToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromVoToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromVoToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}createApplicationFormInGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}createApplicationFormInVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteApplicationMailForGroup(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteApplicationMailForVo(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteGroupsFromAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(m=>{l=this.addToHttpParams(l,m,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationById`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationDataById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationMailsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationMailsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationsForGroup(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),t&&t.forEach(R=>{a=this.addToHttpParams(a,R,"state[]")}),null!=s&&(a=this.addToHttpParams(a,s,"dateFrom")),null!=u&&(a=this.addToHttpParams(a,u,"dateTo"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getApplicationsForMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getApplicationsForVo(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"vo")),t&&t.forEach(R=>{a=this.addToHttpParams(a,R,"state[]")}),null!=s&&(a=this.addToHttpParams(a,s,"dateFrom")),null!=u&&(a=this.addToHttpParams(a,u,"dateTo"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getApplicationsPage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}getConsolidatorToken(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getFormItemsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getFormItems/group`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFormItemsForGroupWithType(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFormItemsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFormItemsForVoWithType(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupApplicationForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsToAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVoApplicationForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}rejectApplication(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"id")),null!=t&&(n=this.addToHttpParams(n,t,"reason"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}sendInvitation(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let a=new v.LE({encoder:this.encoder});null!=s&&(a=this.addToHttpParams(a,s,"voId")),null!=u&&(a=this.addToHttpParams(a,u,"name")),null!=e&&(a=this.addToHttpParams(a,e,"email")),null!=t&&(a=this.addToHttpParams(a,t,"language"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}sendInvitationForGroup(e,t,s,u,d,l=!1,n="body",i=!1,a){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let c=new v.LE({encoder:this.encoder});null!=s&&(c=this.addToHttpParams(c,s,"voId")),null!=u&&(c=this.addToHttpParams(c,u,"groupId")),null!=d&&(c=this.addToHttpParams(c,d,"name")),null!=e&&(c=this.addToHttpParams(c,e,"email")),null!=t&&(c=this.addToHttpParams(c,t,"language"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let p=a&&a.context;void 0===p&&(p=new v.qT);let w="json";m&&(w=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let R=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.post(R,null,{context:p,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}sendInvitationGroupToExistingUser(e,t,s,u=!1,d="body",l=!1,n){let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"userId")),null!=t&&(i=this.addToHttpParams(i,t,"voId")),null!=s&&(i=this.addToHttpParams(i,s,"groupId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}sendInvitationToExistingUser(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userId")),null!=t&&(n=this.addToHttpParams(n,t,"voId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}sendInvitationsFromCsv(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}sendMessage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/sendMessage`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setSendingEnabled(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}submitApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/submitApplication`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateApplicationMail(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateForm`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemData(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateFormItemData`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsData(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}verifyApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(Xt,8),_.LFG(st,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),r_=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new st,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new si}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAppsConfig(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getGuiConfiguration(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getNewGuiAlert(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunRPCVersion(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatistics(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatus(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunSystemTimeInMillis(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(Xt,8),_.LFG(st,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Xv=(()=>{class o{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:o,providers:[{provide:st,useFactory:e}]}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(o,12),_.LFG(v.eN,8))},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})();var pt=(()=>{return(o=pt||(pt={})).PERUNADMIN="PERUNADMIN",o.PERUNOBSERVER="PERUNOBSERVER",o.VOADMIN="VOADMIN",o.GROUPADMIN="GROUPADMIN",o.GROUPOBSERVER="GROUPOBSERVER",o.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",o.SELF="SELF",o.FACILITYADMIN="FACILITYADMIN",o.FACILITIYOBSERVER="FACILITYOBSERVER",o.RESOURCEADMIN="RESOURCEADMIN",o.RESOURCESELFSERVICE="RESOURCESELFSERVICE",o.REGISTRAR="REGISTRAR",o.ENGINE="ENGINE",o.RPC="RPC",o.NOTIFICATIONS="NOTIFICATIONS",o.SERVICEUSER="SERVICEUSER",o.SPONSOR="SPONSOR",o.VOOBSERVER="VOOBSERVER",o.TOPGROUPCREATOR="TOPGROUPCREATOR",o.SECURITYADMIN="SECURITYADMIN",o.CABINETADMIN="CABINETADMIN",o.UNKNOWNROLENAME="UNKNOWNROLENAME",o.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",o.UNKNOWN="UNKNOWN",o.MEMBERSHIP="MEMBERSHIP",pt;var o})();let eA=(()=>{class o{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,s)=>t.roleName>s.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(s=>{this.allRolesManagementRules=s,e()},s=>t(s))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(s=>{s.primaryObject===t&&e.push(s)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let s=e.beanName;s.startsWith("Rich")&&(s=s.substring(4)),this.assignAvailableRoles(t,s);const u=new Map;this.setRolesAuthorization(t,e,u);for(const d of u.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,s){for(const u of e){let d=[],l=[],n=[];for(const f of this.allRolesManagementRules)if(f.roleName===u.roleName){d=d.concat(f.privilegedRolesToRead),l=l.concat(f.privilegedRolesToManage);for(const m of Object.keys(f.entitiesToManage))n="User"===m?[m].concat(n):n.concat(m);break}const i=this.fetchAllRelatedObjects([t]),a=this.resolveAuthorization(d,i),c=this.resolveAuthorization(l,i);s.set(u.roleName,{readAuth:a,manageAuth:c,modes:n})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],s=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(u=>{!s.includes(u.roleName)&&this.canManage(u)&&this.ruleHasMode(u,e)&&t.push(u)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(s=>s.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const s of e){let u=!0;for(const d of Object.keys(s)){const l=s[d];if(null===l)this.principalRoles.has(d)||(u=!1);else if(t[l]){for(const n of t[l])if(!this.principalHasRole(d,l,n)){u=!1;break}}else u=!1;if(!u)break}if(u)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const s of e){let u=s.beanName;switch(s.beanName.startsWith("Rich")&&(u=s.beanName.substring(4)),t[u]?t[u].push(s.id):t[u]=[s.id],u){case"Member":t.User?t.User.push(s.userId):t.User=[s.userId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Resource":t.Facility?t.Facility.push(s.facilityId):t.Facility=[s.facilityId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let s=[];for(s.push(e);0!==s.length;){const d=s.shift();if(t.has(d))continue;const l=this.getPerunPolicy(d);if(!l)return[];t.set(d,l),s=s.concat(l.includePolicies)}const u=[];for(const d of t.values())u.push(d);return u}voCustomSort(e){for(let t=0;t{class o{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],s=this.defaultConfig[e];let u=null;for(const d of t)d&&null==u&&(u=d[e]);return null===u?s:this.addMissingValuesToProperty(u,s)}addMissingValuesToProperty(e,t){if(null==e)return t;if("object"==typeof e&&!Array.isArray(e))for(const s of Object.keys(t))e[s]=this.addMissingValuesToProperty(e[s],t[s]);return e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Sl=(()=>{class o{constructor(e,t,s,u,d){this.injector=e,this.store=t,this.dialog=s,this.route=u,this.oauthService=d,setTimeout(()=>{this.router=this.injector.get(Kt),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(l=>{l.idpFilter&&(this.filterShortname=String(l.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),u=.5+.25*Math.random(),d=e?{acr_values:e}:{},l=this.store.getProperty("oidc_client");if(l.oauth_scopes.split(" ").includes("offline_access")&&l.oauth_offline_access_consent_prompt&&(d.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(d.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(d.prompt?d.prompt+=" login":d.prompt="login",d.max_age="0"),"Linker"===this.store.getProperty("application")){d.prompt?d.prompt+=" login":d.prompt="login";const n=gd("idphint",location.search.substring(1));n&&(d.idphint=n)}return{requestAccessToken:!0,issuer:l.oauth_authority,clientId:l.oauth_client_id,redirectUri:l.oauth_redirect_uri,postLogoutRedirectUri:l.oauth_post_logout_redirect_uri,responseType:l.oauth_response_type,scope:l.oauth_scopes,clockSkewInSec:1,timeoutFactor:u,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:d}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let s=null;return e.forEach(u=>{const d=u.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],s=t[d[1]])}),t.default&&!s?(this.filterShortname="default",t.default):s}startIdpFilterKeeper(){this.router.events.pipe((0,Wt.h)(e=>e instanceof Nr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.zs3),_.LFG(On),_.LFG(cr),_.LFG(qr),_.LFG(Qr.Ct))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ip=(()=>{class o{constructor(e){this.dialogRef=e}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(_.TgZ(0,"h2",0),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&e&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[dr,Hi]}),o})();var u_=E(930);function np(o,r){const e="object"==typeof r;return new Promise((t,s)=>{const u=new u_.Hp({next:d=>{t(d),u.unsubscribe()},error:s,complete:()=>{e?t(r.defaultValue):s(new Rt.K)}});o.subscribe(u)})}function h_(o,r){1&o&&(_.TgZ(0,"mat-icon",2),_._uU(1," info "),_.qZA())}function p_(o,r){1&o&&(_.TgZ(0,"mat-icon",2),_._uU(1," warning "),_.qZA())}function tA(o,r){1&o&&(_.TgZ(0,"mat-icon",2),_._uU(1," dangerous "),_.qZA())}function f_(o,r){1&o&&(_.TgZ(0,"mat-icon",2),_._uU(1," check_circle "),_.qZA())}const m_=["*"];let wd=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:m_,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(_.F$t(),_.TgZ(0,"div",0),_.YNc(1,h_,2,0,"mat-icon",1),_.YNc(2,p_,2,0,"mat-icon",1),_.YNc(3,tA,2,0,"mat-icon",1),_.YNc(4,f_,2,0,"mat-icon",1),_.Hsn(5),_.qZA()),2&e&&(_.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),_.xp6(1),_.Q6J("ngIf","info"===t.alert_type),_.xp6(1),_.Q6J("ngIf","warn"===t.alert_type),_.xp6(1),_.Q6J("ngIf","error"===t.alert_type),_.xp6(1),_.Q6J("ngIf","success"===t.alert_type))},dependencies:[Ft,M.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),o})(),g_=(()=>{class o{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn),_.Y36(hs))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),_._uU(5),_.ALo(6,"translate"),_.ALo(7,"translate"),_.qZA()(),_.TgZ(8,"div",3)(9,"button",4),_.NdJ("click",function(){return t.cancel()}),_._uU(10),_.ALo(11,"translate"),_.qZA(),_.TgZ(12,"button",5),_.NdJ("click",function(){return t.submit()}),_._uU(13),_.ALo(14,"translate"),_.qZA()()),2&e&&(_.xp6(1),_.Oqu(_.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),_.xp6(4),_.hij(" ",t.data.mfaRoleException?_.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):_.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),_.xp6(4),_.Q6J("hidden",t.data.mfaRoleException),_.xp6(1),_.hij(" ",_.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),_.xp6(2),_.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),_.xp6(1),_.hij(" ",_.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[la,dr,ca,Zr,wd,Hi]}),o})(),iA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(_.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),_._uU(3," info "),_.qZA(),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.TgZ(6,"div"),_._uU(7),_.ALo(8,"translate"),_.qZA()()),2&e&&(_.xp6(4),_.hij(" ",_.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),_.xp6(3),_.hij(" ",_.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Ft,Hi],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),o})(),$i=(()=>{class o{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(hs),_.Y36(Vn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),_._uU(5),_.ALo(6,"translate"),_.qZA()(),_.TgZ(7,"div",3)(8,"button",4),_.NdJ("click",function(){return t.cancel()}),_._uU(9),_.ALo(10,"translate"),_.qZA(),_.TgZ(11,"button",5),_.NdJ("click",function(){return t.submit()}),_._uU(12),_.ALo(13,"translate"),_.qZA()()),2&e&&(_.xp6(1),_.Oqu(_.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),_.xp6(4),_.hij(" ",_.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),_.xp6(4),_.hij(" ",_.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),_.xp6(3),_.hij(" ",_.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[la,dr,ca,Zr,wd,Hi]}),o})(),da=(()=>{class o{constructor(e,t,s,u){this.dialog=e,this.oauthService=t,this.authService=s,this.store=u}openMfaWindow(e){let t=null,s=null;const u=ur();u.width="450px",u.data={mfaRoleException:e};const d=this.dialog.open(g_,u);let l=!1;if(d.afterClosed().subscribe(n=>{if(n){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const i=ur();i.width="450px",i.panelClass="noBorderDialog",s=this.dialog.open(iA,i)}}else l=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const n=ur();n.width="450px",n.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open($i,n)}return new Qe.y(n=>{const i=setInterval(()=>t?.closed?(clearInterval(i),s.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),n.next(!0)):l?(clearInterval(i),n.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,u=window.top;return window.open(e,"_blank",`width=600,height=600,top=${u.outerHeight/2+u.screenY-300}, left=${u.outerWidth/2+u.screenX-300}`)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(cr),_.LFG(Qr.Ct),_.LFG(Sl),_.LFG(On))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),__=(()=>{class o{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.oauthService=t,this.storeService=s,this.authResolver=u,this.authzService=d,this.dialog=l,this.router=n,this.mfaHandlerService=i,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return np(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=ur();this.dialog.open(ip,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return np(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const s={};return t.split("&").forEach(u=>{const d=u.split("=");s[d[0]]=d[1]}),this.router.navigate(["service-access"],{queryParams:s,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const s of t)if(e.startsWith(s))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,Wt.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const s=sessionStorage.getItem("auth:queryParams");let u=[];s&&(u=s.split("&"));const d={};return u.forEach(l=>{const n=l.split("=");d[n[0]]=n[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:d,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Sl),_.LFG(Qr.Ct),_.LFG(On),_.LFG(eA),_.LFG(Al),_.LFG(cr),_.LFG(Kt),_.LFG(da))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),nA=(()=>{class o{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Ja),_.LFG(Ci))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),rA=(()=>{class o{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.TgZ(6,"div",2)(7,"div",3)(8,"button",4),_.NdJ("click",function(){return t.close()}),_._uU(9),_.ALo(10,"translate"),_.qZA()()()),2&e&&(_.xp6(1),_.Oqu(_.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),_.xp6(3),_.hij(" ",_.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),_.xp6(5),_.hij(" ",_.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[la,dr,ca,Zr,Hi]}),o})(),b_=(()=>{class o{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),yd=(()=>{class o{constructor(e){this.translate=e,this.addNotification=new _.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,s,u,d){this.addNotification.emit({type:"error",error:t,description:s,title:e,actionText:void 0===u&&void 0!==s?this.getDefaultActionMessage():u,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,s,u){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===s&&void 0!==t?this.getDefaultActionMessage():s,delay:this.defaultSuccessDelayMs,icon:"done",action:u,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(sa))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),fs=(()=>{class o{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.apiRequestConfiguration=t,this.notificator=s,this.store=u,this.dialog=d,this.initAuthService=l,this.mfaHandlerService=n,this.oauthService=i}intercept(e,t){const s=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==s&&this.isCallToPerunApi(e.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const u=ur();u.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(rA,u),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{va(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const s=this.apiRequestConfiguration.shouldHandleError(),u="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,$t.b)(d=>{d instanceof v.Zn&&u&&this.initAuthService.loadPrincipal()}),(0,Et.K)(d=>{const l=d.error;if("MfaPrivilegeException"===l.type||"MfaRolePrivilegeException"===l.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===l.type).pipe((0,Bi.w)(n=>n?("MfaRolePrivilegeException"===l.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,wi._)(()=>l)));{this.handleInvalidAccessTokenError(d);const n=this.formatErrors(d,e);return void 0===n?(0,wi._)(()=>d):(s&&this.notificator.showRPCError(n),(0,wi._)(()=>n))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let s;console.error(e);const u=e.error;if(u.errorId&&(s=u),void 0!==s)return s.urlWithParams=t.urlWithParams,s.call=t.url,s.payload=t.body,s}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){if(!this.isLoggedIn()||"invalid_token"===e.error.error||null!=this.dialogRefSessionExpiration)return;const t=ur();this.dialogRefSessionExpiration=this.dialog.open(rA,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Sl),_.LFG(b_),_.LFG(yd),_.LFG(On),_.LFG(cr),_.LFG(__),_.LFG(da),_.LFG(Qr.Ct))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),C_=(()=>{class o{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),rp=(()=>{class o{constructor(e,t,s,u){this.http=e,this.notificator=t,this.authService=s,this.storeService=u}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new v.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.get(s,{headers:this.getHeaders()}).pipe((0,Et.K)(u=>this.formatErrors(u,s,null,t)))}put(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(u,d,{headers:this.getHeaders()}).pipe((0,Et.K)(l=>this.formatErrors(l,u,d,s)))}post(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let l=this.getHeaders();return l=l.set("Content-Type","application/json; charset=utf-8"),this.http.post(u,d,{headers:l}).pipe((0,Et.K)(n=>this.formatErrors(n,u,d,s)))}delete(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.delete(s,{headers:this.getHeaders()}).pipe((0,Et.K)(u=>this.formatErrors(u,s,null,t)))}formatErrors(e,t,s,u){const d=e.error;return d.call=t,d.payload=s,u&&this.notificator.showRPCError(e.error),(0,wi._)(d)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(yd),_.LFG(Sl),_.LFG(On))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),w_=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez]}),o})(),vd=(()=>{class o{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=_.Yjl({name:"userFullName",type:o,pure:!0}),o})(),ap=(()=>{class o{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const s=this.storage.getProperty("custom_labels");if(s)for(const u of s)if(u.label===e)return u[t];return e}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(sa,16),_.Y36(On,16))},o.\u0275pipe=_.Yjl({name:"customTranslate",type:o,pure:!0}),o})();function dA(o,r){if(1&o&&(_.O4$(),_._UZ(0,"circle",4)),2&o){const e=_.oxw(),t=_.MAs(1);_.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),_.uIk("r",e._getCircleRadius())}}function uA(o,r){if(1&o&&(_.O4$(),_._UZ(0,"circle",4)),2&o){const e=_.oxw(),t=_.MAs(1);_.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),_.uIk("r",e._getCircleRadius())}}const x_=Na(class{constructor(o){this._elementRef=o}},"primary"),hA=new _.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function S_(){return{diameter:100}}});class Ln extends x_{constructor(r,e,t,s,u,d,l,n){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Gt.w0.EMPTY,this.mode="determinate";const i=Ln._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),i.has(t.head)||i.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===s&&!!u&&!u._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),u&&(u.color&&(this.color=this.defaultColor=u.color),u.diameter&&(this.diameter=u.diameter),u.strokeWidth&&(this.strokeWidth=u.strokeWidth)),e.isBrowser&&e.SAFARI&&l&&d&&n&&(this._resizeSubscription=l.change(150).subscribe(()=>{"indeterminate"===this.mode&&n.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=ji(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=ji(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,ji(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=Yr(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(r){const e=50*(r.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=Ln._diameters;let s=t.get(r);if(!s||!s.has(e)){const u=this._document.createElement("style");u.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),u.textContent=this._getAnimationText(),r.appendChild(u),s||(s=new Set,t.set(r,s)),s.add(e)}}_getAnimationText(){const r=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ln._diameters=new WeakMap,Ln.\u0275fac=function(r){return new(r||Ln)(_.Y36(_.SBq),_.Y36(gi),_.Y36(M.K0,8),_.Y36(_.QbO,8),_.Y36(hA),_.Y36(_.sBO),_.Y36(Ga),_.Y36(_.R0b))},Ln.\u0275cmp=_.Xpm({type:Ln,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(_.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),_.Udp("width",e.diameter,"px")("height",e.diameter,"px"),_.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[_.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(r,e){1&r&&(_.O4$(),_.TgZ(0,"svg",0,1),_.YNc(2,dA,1,11,"circle",2),_.YNc(3,uA,1,9,"circle",3),_.qZA()),2&r&&(_.Udp("width",e.diameter,"px")("height",e.diameter,"px"),_.Q6J("ngSwitch","indeterminate"===e.mode),_.uIk("viewBox",e._getViewBox()),_.xp6(2),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngSwitchCase",!1))},dependencies:[M.RF,M.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let Ad=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,M.ez,Se]}),o})();const E_=er({passive:!0});let M_=(()=>{class o{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Nt.E;const t=Zt(e),s=this._monitoredElements.get(t);if(s)return s.subject;const u=new Ee.x,d="cdk-text-field-autofilled",l=n=>{"cdk-text-field-autofill-start"!==n.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===n.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",l,E_),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:u,unlisten:()=>{t.removeEventListener("animationstart",l,E_)}}),u}stopMonitoring(e){const t=Zt(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(gi),_.LFG(_.R0b))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),lp=(()=>{class o{constructor(e,t,s,u){this._elementRef=e,this._platform=t,this._ngZone=s,this._destroyed=new Ee.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=d=>{this._hasFocus="focus"===d.type},this._document=u,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=ji(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=ji(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=ut(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Qo(this._getWindow(),"resize").pipe(Gc(16),It(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",s=this._platform.FIREFOX,u=s&&this._hasFocus,d=s?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";u&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(d);const l=e.scrollHeight-4;return e.classList.remove(d),u&&(e.style.marginBottom=t),l}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,s=t.value;if(!e&&this._minRows===this._previousMinRows&&s===this._previousValue)return;const u=this._measureScrollHeight(),d=Math.max(u,this._cachedPlaceholderHeight||0);t.style.height=`${d}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=s,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:s}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,s)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(gi),_.Y36(_.R0b),_.Y36(M.K0,8))},o.\u0275dir=_.lG2({type:o,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&_.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),o})(),cp=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),D_=(()=>{class o{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.Qsj),_.Y36(_.SBq))},o.\u0275dir=_.lG2({type:o}),o})(),Ka=(()=>{class o extends D_{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275dir=_.lG2({type:o,features:[_.qOj]}),o})();const nn=new _.OlP("NgValueAccessor"),iE={provide:nn,useExisting:(0,_.Gpc)(()=>Ml),multi:!0},rE=new _.OlP("CompositionEventMode");let Ml=(()=>{class o extends D_{constructor(e,t,s){super(e,t),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function nE(){const o=(0,M.q)()?(0,M.q)().getUserAgent():"";return/android (\d+)/.test(o.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.Qsj),_.Y36(_.SBq),_.Y36(rE,8))},o.\u0275dir=_.lG2({type:o,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&_.NdJ("input",function(u){return t._handleInput(u.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(u){return t._compositionEnd(u.target.value)})},features:[_._Bn([iE]),_.qOj]}),o})();function Za(o){return null==o||("string"==typeof o||Array.isArray(o))&&0===o.length}function gA(o){return null!=o&&"number"==typeof o.length}const ei=new _.OlP("NgValidators"),Xa=new _.OlP("NgAsyncValidators"),R_=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ua{static min(r){return function dp(o){return r=>{if(Za(r.value)||Za(o))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(Za(r.value)||Za(o))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>o?{max:{max:o,actual:r.value}}:null}}(r)}static required(r){return _A(r)}static requiredTrue(r){return function xd(o){return!0===o.value?null:{required:!0}}(r)}static email(r){return function hp(o){return Za(o.value)||R_.test(o.value)?null:{email:!0}}(r)}static minLength(r){return function P_(o){return r=>Za(r.value)||!gA(r.value)?null:r.value.lengthgA(r.value)&&r.value.length>o?{maxlength:{requiredLength:o,actualLength:r.value.length}}:null}(r)}static pattern(r){return function bA(o){if(!o)return Sd;let r,e;return"string"==typeof o?(e="","^"!==o.charAt(0)&&(e+="^"),e+=o,"$"!==o.charAt(o.length-1)&&(e+="$"),r=new RegExp(e)):(e=o.toString(),r=o),t=>{if(Za(t.value))return null;const s=t.value;return r.test(s)?null:{pattern:{requiredPattern:e,actualValue:s}}}}(r)}static nullValidator(r){return null}static compose(r){return wA(r)}static composeAsync(r){return V_(r)}}function _A(o){return Za(o.value)?{required:!0}:null}function Sd(o){return null}function I_(o){return null!=o}function k_(o){return(0,_.QGY)(o)?(0,_t.D)(o):o}function Dl(o){let r={};return o.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function B_(o,r){return r.map(e=>e(o))}function CA(o){return o.map(r=>function oE(o){return!o.validate}(r)?r:e=>r.validate(e))}function wA(o){if(!o)return null;const r=o.filter(I_);return 0==r.length?null:function(e){return Dl(B_(e,r))}}function fp(o){return null!=o?wA(CA(o)):null}function V_(o){if(!o)return null;const r=o.filter(I_);return 0==r.length?null:function(e){return od(B_(e,r).map(k_)).pipe((0,qe.U)(Dl))}}function mp(o){return null!=o?V_(CA(o)):null}function yA(o,r){return null===o?[r]:Array.isArray(o)?[...o,r]:[o,r]}function O_(o){return o._rawValidators}function gp(o){return o._rawAsyncValidators}function Td(o){return o?Array.isArray(o)?o:[o]:[]}function _p(o,r){return Array.isArray(o)?o.includes(r):o===r}function vn(o,r){const e=Td(r);return Td(o).forEach(s=>{_p(e,s)||e.push(s)}),e}function L_(o,r){return Td(r).filter(e=>!_p(o,e))}class Ed{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=fp(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=mp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class Qi extends Ed{get formDirective(){return null}get path(){return null}}class ti extends Ed{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let Md=(()=>{class o extends class j_{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(ti,2))},o.\u0275dir=_.lG2({type:o,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&_.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[_.qOj]}),o})();const Rl="VALID",Pl="INVALID",Il="PENDING",ms="DISABLED";function wp(o){return(kl(o)?o.validators:o)||null}function yp(o){return Array.isArray(o)?fp(o):o||null}function G_(o,r){return(kl(r)?r.asyncValidators:o)||null}function Rd(o){return Array.isArray(o)?mp(o):o||null}function kl(o){return null!=o&&!Array.isArray(o)&&"object"==typeof o}class Ap{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=yp(this._rawValidators),this._composedAsyncValidatorFn=Rd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===Rl}get invalid(){return this.status===Pl}get pending(){return this.status==Il}get disabled(){return this.status===ms}get enabled(){return this.status!==ms}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=yp(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=Rd(r)}addValidators(r){this.setValidators(vn(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(vn(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(L_(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(L_(r,this._rawAsyncValidators))}hasValidator(r){return _p(this._rawValidators,r)}hasAsyncValidator(r){return _p(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=Il,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=ms,this.errors=null,this._forEachChild(t=>{t.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Rl,this._forEachChild(t=>{t.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Rl||this.status===Il)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ms:Rl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=Il,this._hasOwnPendingAsyncValidator=!0;const e=k_(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,s)=>t&&t._find(s),this)}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new _.vpe,this.statusChanges=new _.vpe}_calculateStatus(){return this._allControlsDisabled()?ms:this.errors?Pl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Il)?Il:this._anyControlsHaveStatus(Pl)?Pl:Rl}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){kl(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class Pd extends Ap{constructor(r,e,t){super(wp(e),G_(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){(function W_(o,r,e){o._forEachChild((t,s)=>{if(void 0===e[s])throw new _.vHH(1002,"")})})(this,0,r),Object.keys(r).forEach(t=>{(function vp(o,r,e){const t=o.controls;if(!(r?Object.keys(t):t).length)throw new _.vHH(1e3,"");if(!t[e])throw new _.vHH(1001,"")})(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{const s=this.controls[t];s&&s.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,s)=>{t.reset(r[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,s)=>((t.enabled||this.disabled)&&(e[s]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((s,u)=>{t=e(t,s,u)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}function gs(o,r){Q_(o,r),r.valueAccessor.writeValue(o.value),o.disabled&&r.valueAccessor.setDisabledState?.(!0),function EA(o,r){r.valueAccessor.registerOnChange(e=>{o._pendingValue=e,o._pendingChange=!0,o._pendingDirty=!0,"change"===o.updateOn&&Y_(o,r)})}(o,r),function pE(o,r){const e=(t,s)=>{r.valueAccessor.writeValue(t),s&&r.viewToModelUpdate(t)};o.registerOnChange(e),r._registerOnDestroy(()=>{o._unregisterOnChange(e)})}(o,r),function MA(o,r){r.valueAccessor.registerOnTouched(()=>{o._pendingTouched=!0,"blur"===o.updateOn&&o._pendingChange&&Y_(o,r),"submit"!==o.updateOn&&o.markAsTouched()})}(o,r),function hE(o,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};o.registerOnDisabledChange(e),r._registerOnDestroy(()=>{o._unregisterOnDisabledChange(e)})}}(o,r)}function Tp(o,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),Vl(o,r),o&&(r._invokeOnDestroyCallbacks(),o._registerOnCollectionChange(()=>{}))}function Id(o,r){o.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function Q_(o,r){const e=O_(o);null!==r.validator?o.setValidators(yA(e,r.validator)):"function"==typeof e&&o.setValidators([e]);const t=gp(o);null!==r.asyncValidator?o.setAsyncValidators(yA(t,r.asyncValidator)):"function"==typeof t&&o.setAsyncValidators([t]);const s=()=>o.updateValueAndValidity();Id(r._rawValidators,s),Id(r._rawAsyncValidators,s)}function Vl(o,r){let e=!1;if(null!==o){if(null!==r.validator){const s=O_(o);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==r.validator);u.length!==s.length&&(e=!0,o.setValidators(u))}}if(null!==r.asyncValidator){const s=gp(o);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==r.asyncValidator);u.length!==s.length&&(e=!0,o.setAsyncValidators(u))}}}const t=()=>{};return Id(r._rawValidators,t),Id(r._rawAsyncValidators,t),e}function Y_(o,r){o._pendingDirty&&o.markAsDirty(),o.setValue(o._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(o._pendingValue),o._pendingChange=!1}function DA(o,r){Q_(o,r)}function Mp(o,r){if(!o.hasOwnProperty("model"))return!1;const e=o.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}function Dp(o,r){o._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Vr(o,r){if(!r)return null;let e,t,s;return Array.isArray(r),r.forEach(u=>{u.constructor===Ml?e=u:function HA(o){return Object.getPrototypeOf(o.constructor)===Ka}(u)?t=u:s=u}),s||t||e||null}const Hp={provide:Qi,useExisting:(0,_.Gpc)(()=>to)},Ol=(()=>Promise.resolve(null))();let to=(()=>{class o extends Qi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new _.vpe,this.form=new Pd({},fp(e),mp(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ol.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),gs(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ol.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ol.then(()=>{const t=this._findContainer(e.path),s=new Pd({});DA(s,e),t.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ol.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Ol.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Dp(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(ei,10),_.Y36(Xa,10))},o.\u0275dir=_.lG2({type:o,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&_.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_._Bn([Hp]),_.qOj]}),o})();function kd(o,r){const e=o.indexOf(r);e>-1&&o.splice(e,1)}function Ll(o){return"object"==typeof o&&null!==o&&2===Object.keys(o).length&&"value"in o&&"disabled"in o}const X_=class extends Ap{constructor(r=null,e,t){super(wp(e),G_(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),kl(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Ll(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){kd(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){kd(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){Ll(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},gE=X_,eb={provide:ti,useExisting:(0,_.Gpc)(()=>Bd)},Pp=(()=>Promise.resolve(null))();let Bd=(()=>{class o extends ti{constructor(e,t,s,u,d){super(),this._changeDetectorRef=d,this.control=new X_,this._registered=!1,this.update=new _.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=Vr(0,u)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Mp(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){gs(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Pp.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,s=0!==t&&(0,_.D6c)(t);Pp.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Bl(o,r){return[...r.path,o]}(e,this._parent):[e]}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Qi,9),_.Y36(ei,10),_.Y36(Xa,10),_.Y36(nn,10),_.Y36(_.sBO,8))},o.\u0275dir=_.lG2({type:o,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[_._Bn([eb]),_.qOj,_.TTD]}),o})(),Od=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})();const Ip=new _.OlP("NgModelWithFormControlWarning"),LA={provide:ti,useExisting:(0,_.Gpc)(()=>kp)};let kp=(()=>{class o extends ti{constructor(e,t,s,u){super(),this._ngModelWarningConfig=u,this.update=new _.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Vr(0,s)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Tp(t,this,!1),gs(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Mp(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Tp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return o._ngModelWarningSentOnce=!1,o.\u0275fac=function(e){return new(e||o)(_.Y36(ei,10),_.Y36(Xa,10),_.Y36(nn,10),_.Y36(Ip,8))},o.\u0275dir=_.lG2({type:o,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[_._Bn([LA]),_.qOj,_.TTD]}),o})();const AE={provide:Qi,useExisting:(0,_.Gpc)(()=>Ld)};let Ld=(()=>{class o extends Qi{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new _.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Vl(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return gs(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Tp(e.control||null,e,!1),function K_(o,r){const e=o.indexOf(r);e>-1&&o.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Dp(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,s=this.form.get(e.path);t!==s&&(Tp(t||null,e),(o=>o instanceof X_)(s)&&(gs(s,e),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);DA(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function fE(o,r){return Vl(o,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Q_(this.form,this),this._oldForm&&Vl(this._oldForm,this)}_checkFormPresent(){}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(ei,10),_.Y36(Xa,10))},o.\u0275dir=_.lG2({type:o,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&_.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_._Bn([AE]),_.qOj,_.TTD]}),o})(),B=(()=>{class o{constructor(){this._validator=Sd}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Sd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,features:[_.TTD]}),o})();const Me={provide:ei,useExisting:(0,_.Gpc)(()=>Ue),multi:!0};let Ue=(()=>{class o extends B{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=_.D6c,this.createValidator=e=>_A}enabled(e){return e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275dir=_.lG2({type:o,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&_.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[_._Bn([Me]),_.qOj]}),o})(),Ud=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Od]}),o})(),jl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Ud]}),o})(),no=(()=>{class o{static withConfig(e){return{ngModule:o,providers:[{provide:Ip,useValue:e.warnOnNgModelWithFormControl}]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Ud]}),o})();const DE=new _.OlP("MAT_INPUT_VALUE_ACCESSOR"),oH=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let sH=0;const lH=Ku(class{constructor(o,r,e,t){this._defaultErrorStateMatcher=o,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Ee.x}});let NA=(()=>{class o extends lH{constructor(e,t,s,u,d,l,n,i,a,c){super(l,u,d,s),this._elementRef=e,this._platform=t,this._autofillMonitor=i,this._formField=c,this._uid="mat-input-"+sH++,this.focused=!1,this.stateChanges=new Ee.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(m=>Ru().has(m)),this._iOSKeyupListener=m=>{const p=m.target;!p.value&&0===p.selectionStart&&0===p.selectionEnd&&(p.setSelectionRange(1,1),p.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=n||h,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&a.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!c,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ut(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(ua.required)??!1}set required(e){this._required=ut(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ru().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ut(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=t,t?s.setAttribute("placeholder",t):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){oH.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(gi),_.Y36(ti,10),_.Y36(to,8),_.Y36(Ld,8),_.Y36(Oc),_.Y36(DE,10),_.Y36(M_),_.Y36(_.R0b),_.Y36(nd,8))},o.\u0275dir=_.lG2({type:o,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&_.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(_.Ikx("disabled",t.disabled)("required",t.required),_.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),_.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[_._Bn([{provide:ed,useExisting:o}]),_.qOj,_.TTD]}),o})(),sb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[Oc],imports:[cp,Hr,Se,cp,Hr]}),o})();function cH(o,r){1&o&&_._UZ(0,"mat-spinner",7)}function dH(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"mat-form-field",10)(5,"textarea",11),_.NdJ("ngModelChange",function(s){_.CHM(e);const u=_.oxw();return _.KtG(u.message=s)}),_.ALo(6,"translate"),_.qZA()()()}if(2&o){const e=_.oxw();_.xp6(2),_.hij(" ",_.lcZ(3,3,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.SUBTITLE")," "),_.xp6(3),_.s9C("placeholder",_.lcZ(6,5,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.PLACEHOLDER")),_.Q6J("ngModel",e.message)}}let uH=(()=>{class o{constructor(e,t,s,u,d,l){this.dialogRef=e,this.storeService=t,this.authzService=s,this.oAuthStorage=u,this.rtMessages=d,this.userFullNamePipe=l,this.loading=!1,this.message="Hello, during the linking of my accounts I encountered a situation where the system cannot automatically link these accounts. Therefore I want to ask you for help with linking my accounts."}onCancel(){this.dialogRef.close(null)}onSend(){this.loading=!0;const e=this.storeService.getPerunPrincipal().user,t=location.search.substring(1);this.oAuthStorage.setItem("access_token",gd("formerToken",t)),this.authzService.getPerunPrincipal().subscribe(s=>{this.rtMessages.sentMessageToRTWithQueue("perun","Account linking: The accounts could not be automatically linked.",this.getFullEmailBody(e,s.user)).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>{this.loading=!1,this.dialogRef.close(!1)}})})}getFullEmailBody(e,t){const s=this.storeService.getProperty("config");let u=this.message+"\n________________________________________________________________________\n\nAccount linking: The accounts could not be automatically linked.\nThe user proved his identities, but they were connected to different users.\nBy this message the user is asking for help with identity consolidation.\n";return u=u.concat("\n\n"),u=u.concat("Information about users: \n\n"),u=u.concat("First user: \nid="+t.id.toString()+"\nName: "+this.userFullNamePipe.transform(t)+"\n\n"),u=u.concat("Second user: \nid="+e.id.toString()+"\nName: "+this.userFullNamePipe.transform(e)+"\n\n"),u=u.concat("Perun instance: "+s+"\n"),u=u.concat("Sended from new Consolidator Gui, version: ",E(4147).i8),u.split("\n").join("\n ")}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn),_.Y36(On),_.Y36(Al),_.Y36(Qr.Hy),_.Y36(_d),_.Y36(vd))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-send-message-dialog"]],decls:14,vars:11,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","cdkTextareaAutosize","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,t){1&e&&(_.TgZ(0,"div")(1,"div",0)(2,"h1",1),_._uU(3),_.ALo(4,"translate"),_.qZA()(),_.YNc(5,cH,1,0,"mat-spinner",2),_.YNc(6,dH,7,7,"div",3),_.TgZ(7,"div",4)(8,"button",5),_.NdJ("click",function(){return t.onCancel()}),_._uU(9),_.ALo(10,"translate"),_.qZA(),_.TgZ(11,"button",6),_.NdJ("click",function(){return t.onSend()}),_._uU(12),_.ALo(13,"translate"),_.qZA()()()),2&e&&(_.xp6(3),_.hij(" ",_.lcZ(4,5,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.TITLE")," "),_.xp6(2),_.Q6J("ngIf",t.loading),_.xp6(1),_.Q6J("ngIf",!t.loading),_.xp6(3),_.hij(" ",_.lcZ(10,7,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.CANCEL")," "),_.xp6(3),_.hij(" ",_.lcZ(13,9,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.SUBMIT")," "))},dependencies:[M.O5,Zr,la,dr,ca,Ln,pl,lp,NA,Ml,Md,Bd,wd,Hi]}),o})();function hH(o,r){if(1&o&&(_.TgZ(0,"mat-icon",6),_._uU(1),_.qZA()),2&o){const e=_.oxw();_.xp6(1),_.hij(" ",e.icon," ")}}function pH(o,r){1&o&&_._UZ(0,"mat-icon",7)}function fH(o,r){if(1&o&&(_.TgZ(0,"span"),_._uU(1),_.qZA()),2&o){const e=_.oxw(2);_.xp6(1),_.hij(" ",e.supportMail," ")}}function mH(o,r){if(1&o&&(_.TgZ(0,"span"),_._uU(1),_.qZA()),2&o){const e=_.oxw(2);_.xp6(1),_.hij(" ",e.userMail," ")}}function gH(o,r){if(1&o&&(_.TgZ(0,"h5"),_._uU(1),_.ALo(2,"translate"),_.YNc(3,fH,2,1,"span",5),_.YNc(4,mH,2,1,"span",5),_.qZA()),2&o){const e=_.oxw();_.xp6(1),_.hij(" ",_.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR."+e.result+"_SUBTITLE")," "),_.xp6(2),_.Q6J("ngIf","UNKNOWN_ERROR"===e.result),_.xp6(1),_.Q6J("ngIf","MESSAGE_SENT_TO_SUPPORT"===e.result)}}function _H(o,r){if(1&o&&(_.TgZ(0,"h5"),_._uU(1),_.ALo(2,"translate"),_.ALo(3,"translate"),_.qZA()),2&o){const e=_.oxw();_.xp6(1),_.lnq(" ",_.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_1")," ",e.userMail," ",_.lcZ(3,5,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_2")," ")}}const bH=function(o){return{"background-color":o}},CH=["*"];let wH=(()=>{class o{constructor(e){this.store=e,this.supportMail=this.store.getProperty("support_mail"),this.userMail=this.store.getPerunPrincipal().additionalInformations.mail,this.color="",this.icon="",this.greenColor="#e0ffd4",this.blueColor="#d4f2ff",this.redColor="#ffd4d4",this.warningIcon="warning",this.infoIcon="info",this.messageSent="mark_email_read"}ngOnChanges(){switch(this.result){case"OK":this.color=this.greenColor;break;case"IDENTITY_REGISTERED_ALREADY":case"UNKNOWN_ERROR":this.color=this.redColor,this.icon=this.warningIcon;break;case"IDENTITY_IDENTICAL":case"IDENTITY_LINKED":case"IDENTITY_UNKNOWN":this.color=this.blueColor,this.icon=this.infoIcon;break;case"MESSAGE_SENT_TO_SUPPORT":this.color=this.blueColor,this.icon=this.messageSent;break;case"TOKEN_EXPIRED":this.color=this.blueColor,this.icon=this.warningIcon}}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(On))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-consolidation-result"]],inputs:{result:"result"},features:[_.TTD],ngContentSelectors:CH,decls:12,vars:10,consts:[[1,"p-4","m-3",3,"ngStyle"],[1,"d-flex","pb-5","flex-row"],["class","mat-icon-war mr-4",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-detail",4,"ngIf"],[1,"ml-5"],[4,"ngIf"],[1,"mat-icon-war","mr-4"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-detail"]],template:function(e,t){1&e&&(_.F$t(),_.TgZ(0,"div",0)(1,"div",1)(2,"div"),_.YNc(3,hH,2,1,"mat-icon",2),_.YNc(4,pH,1,0,"mat-icon",3),_.qZA(),_.TgZ(5,"div",4)(6,"h1"),_._uU(7),_.ALo(8,"translate"),_.qZA(),_.YNc(9,gH,5,5,"h5",5),_.YNc(10,_H,4,7,"h5",5),_.qZA()(),_.Hsn(11),_.qZA()),2&e&&(_.Q6J("ngStyle",_.VKq(8,bH,t.color)),_.xp6(3),_.Q6J("ngIf","OK"!==t.result),_.xp6(1),_.Q6J("ngIf","OK"===t.result),_.xp6(3),_.hij(" ",_.lcZ(8,6,"SHARED_LIB.CONSOLIDATOR."+t.result+"_TITLE")," "),_.xp6(2),_.Q6J("ngIf",!(t.userMail&&"OK"===t.result)),_.xp6(1),_.Q6J("ngIf",t.userMail&&"OK"===t.result))},dependencies:[M.O5,M.PC,Ft,Hi],styles:[".mat-icon-war[_ngcontent-%COMP%]{font-size:82px}.perun-icon-detail[_ngcontent-%COMP%]{transform:scale(4.5);margin-left:3rem;margin-top:1.5rem;color:#000}"]}),o})();function yH(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"button",6),_.NdJ("click",function(){_.CHM(e);const s=_.oxw();return _.KtG(s.loginAgain())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&o&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHOW_RESULT.LOG_OTHER_BUTTON")," "))}function vH(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"button",6),_.NdJ("click",function(){_.CHM(e);const s=_.oxw();return _.KtG(s.sendMessageToSupport())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&o&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHOW_RESULT.CONTACT_SUPPORT_BUTTON")," "))}function AH(o,r){1&o&&(_.TgZ(0,"div",7),_._UZ(1,"mat-spinner",8),_.qZA())}const xH=[{path:"",redirectTo:"result",pathMatch:"full"},{path:"result/:result",component:(()=>{class o{constructor(e,t,s){this.route=e,this.dialog=t,this.oauthService=s,this.linkerResult="UNKNOWN_ERROR",this.loading=!1,this.openerWindow=window.opener}ngOnInit(){this.route.params.subscribe(e=>{this.linkerResult=e.result,this.openerWindow.postMessage(this.linkerResult,"*")})}closeWindow(){window.close()}loginAgain(){let e=location.search.substring(1);if("IDENTITY_UNKNOWN"===this.linkerResult){let t=0,s="yes";for(;""!==s;)t++,s=gd("formerToken"+t.toString(),e);e+="&formerToken"+t.toString()+"="+this.oauthService.getAccessToken()}sessionStorage.setItem("auth:queryParams",e),this.oauthService.initLoginFlow()}sendMessageToSupport(){const e=ur();e.width="1000px",this.dialog.open(uH,e).afterClosed().subscribe(s=>{!0===s?(this.linkerResult="MESSAGE_SENT_TO_SUPPORT",this.openerWindow.postMessage(this.linkerResult,"*")):!1===s&&(this.linkerResult="UNKNOWN_ERROR",this.openerWindow.postMessage(this.linkerResult,"*"))})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(qr),_.Y36(cr),_.Y36(Qr.Ct))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-show-result"]],decls:9,vars:7,consts:[[1,"position-relative"],[3,"result"],[1,"d-flex","mt-5"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","class","ml-2",3,"click",4,"ngIf"],["class","spinner-container",4,"ngIf"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],[1,"spinner-container"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(_.TgZ(0,"div",0)(1,"perun-web-apps-consolidation-result",1)(2,"div",2)(3,"button",3),_.NdJ("click",function(){return t.closeWindow()}),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.YNc(6,yH,3,3,"button",4),_.YNc(7,vH,3,3,"button",4),_.qZA()(),_.YNc(8,AH,2,0,"div",5),_.qZA()),2&e&&(_.xp6(1),_.Q6J("result",t.linkerResult),_.xp6(3),_.hij(" ",_.lcZ(5,5,"SHOW_RESULT.CLOSE_WINDOW_BUTTON")," "),_.xp6(2),_.Q6J("ngIf","IDENTITY_IDENTICAL"===t.linkerResult||"IDENTITY_UNKNOWN"===t.linkerResult||"IDENTITY_LINKED"===t.linkerResult),_.xp6(1),_.Q6J("ngIf","IDENTITY_REGISTERED_ALREADY"===t.linkerResult),_.xp6(1),_.Q6J("ngIf",t.loading))},dependencies:[M.O5,Zr,Ln,wH,Hi],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:1rem;bottom:0;right:1rem;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}"]}),o})()}];let SH=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Bo.forRoot(xH),Bo]}),o})();class TH{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}let EH=(()=>{class o{constructor(e,t,s,u,d){this.http=e,this.storeService=t,this.authzSevice=s,this.titleService=u,this.utilsService=d}initializeColors(e,t){return new Promise(s=>{t.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d)}),e.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d),this.setEntityTheme(u.entity,d)}),s()})}setEntityTheme(e,t){const s=function MH(o){return[An(tinycolor(o).lighten(52),"50"),An(tinycolor(o).lighten(37),"100"),An(tinycolor(o).lighten(26),"200"),An(tinycolor(o).lighten(12),"300"),An(tinycolor(o).lighten(6),"400"),An(tinycolor(o),"500"),An(tinycolor(o).darken(6),"600"),An(tinycolor(o).darken(12),"700"),An(tinycolor(o).darken(18),"800"),An(tinycolor(o).darken(24),"900"),An(tinycolor(o).lighten(50).saturate(30),"A100"),An(tinycolor(o).lighten(30).saturate(30),"A200"),An(tinycolor(o).lighten(10).saturate(15),"A400"),An(tinycolor(o).lighten(5).saturate(5),"A700")]}(t);for(const u of s){const n=`--${e}-theme-primary-contrast-${u.name}`,i=u.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${u.name}`,`${u.red},${u.green},${u.blue}`),document.documentElement.style.setProperty(n,i)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const s=document.location.hostname;t?.brandings?.[s]&&this.storeService.setBanding(s),e()},()=>{e()})})}getNoCacheHeaders(){return new v.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(s=>{this.storeService.setAppsConfig(s),e()},s=>t(s))})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(On),_.LFG(Al),_.LFG(X),_.LFG(r_))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function An(o,r){const e=tinycolor(o),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let DH=(()=>{class o{constructor(e,t){this.registrarService=e,this.router=t}consolidate(){const e=location.search.substring(1),t=gd("formerToken",e);return new Promise(s=>{this.registrarService.consolidate({accessToken:t}).subscribe(()=>{this.consolidatePreviousLogins(1,e).then(()=>{this.router.navigate(["/result","OK"],{queryParamsHandling:"preserve"}),s()})},u=>{let l="UNKNOWN_ERROR";switch(u.name){case"InvalidTokenException":case"ExpiredTokenException":l="TOKEN_EXPIRED";break;case"IdentityUnknownException":l="IDENTITY_UNKNOWN";break;case"IdentityAlreadyInUseException":l="IDENTITY_REGISTERED_ALREADY";break;case"IdentityIsSameException":l="IDENTITY_IDENTICAL";break;case"IdentitiesAlreadyJoinedException":l="IDENTITY_LINKED"}this.router.navigate(["/result",l],{queryParamsHandling:"merge"}),s()})})}consolidatePreviousLogins(e,t){return new Promise(s=>{const u=gd("formerToken"+e.toString(),t);null==u||""===u?s():this.registrarService.consolidate({accessToken:u}).subscribe(()=>{this.consolidatePreviousLogins(e+1,t).then(()=>s())},()=>{this.consolidatePreviousLogins(e+1,t).then(()=>s())})})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(i_),_.LFG(Kt))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),HH=(()=>{class o{constructor(e,t,s,u,d){this.initAuthService=e,this.appConfigService=t,this.location=s,this.linkIdentitiesService=u,this.mfaHandlerService=d}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.simpleLoadPrincipal().then(()=>this.linkIdentitiesService.consolidate())):this.initAuthService.handleAuthStart())}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(__),_.LFG(EH),_.LFG(M.Ye),_.LFG(DH),_.LFG(da))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const RH=new _.OlP("perun-api-service");let HE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})(),IE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),lb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Cn,Se,Zs,IE,Se,IE]}),o})(),qA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})(),GH=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),BE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,Se,GH,ia]}),o})(),OE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[jc,Se,jc,Se]}),o})(),QH=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Go]}),o})(),zA=(()=>{class o{constructor(){this.changes=new Ee.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const aR={provide:zA,deps:[[new _.FiY,new _.tp0,zA]],useFactory:function rR(o){return o||new zA}};let UE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[aR,Oc],imports:[Se,M.ez,ia,Tr,QH,aa,Cn,Se]}),o})(),CR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Wa]}),o})(),bb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[CR,Se,Se]}),o})(),jR=(()=>{class o{constructor(){this.changes=new Ee.x,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(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const YR={provide:new _.OlP("mat-datepicker-scroll-strategy"),deps:[rr],useFactory:function QR(o){return()=>o.scrollStrategies.reposition()}};let t0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[jR,YR],imports:[M.ez,Tr,Yo,Ua,ia,Se,In]}),o})(),tM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,Se,In,In,Se]}),o})(),nM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[jc,Cn,Se,th,M.ez,jc,Se,th,qA]}),o})(),rM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})(),n0=(()=>{class o{constructor(){this.changes=new Ee.x}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const mP={provide:n0,deps:[[new _.FiY,new _.tp0,n0]],useFactory:function fP(o){return o||new n0}};let r0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[mP],imports:[M.ez,Se]}),o})(),wP=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,Se,ia,Cn,Zs,Ua,Se]}),o})(),aM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),oM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[aM,Cn,Se,Zs,aM,Se]}),o})();const dM=new _.OlP("mat-chips-default-options");let o0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[Oc,{provide:dM,useValue:{separatorKeyCodes:[13]}}],imports:[Se]}),o})(),s0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,HE,qA,BE,Tr,OE,lb,aa,bb,yl,Ad,Hr,sb,Wa,jl,no,UE,t0,Uw,tM,nM,gl,rM,r0,$a,os,fl,Cn,bb,oM,o0,HE,qA,BE,Tr,OE,lb,aa,bb,yl,Ad,Hr,sb,Wa,jl,no,UE,t0,Uw,tM,nM,gl,rM,r0,$a,os,fl,Cn,wP,oM,o0]}),o})(),l0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[aa,M.ez]}),o})();function c0(o,r,e){for(let t in r)if(r.hasOwnProperty(t)){const s=r[t];s?o.setProperty(t,s,e?.has(t)?"important":""):o.removeProperty(t)}return o}function Wd(o,r){const e=r?"":"none";c0(o.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function uM(o,r,e){c0(o.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function vb(o,r){return r&&"none"!=r?o+" "+r:o}function hM(o){const r=o.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(o)*r}function d0(o,r){return o.getPropertyValue(r).split(",").map(t=>t.trim())}function u0(o){const r=o.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function h0(o,r,e){const{top:t,bottom:s,left:u,right:d}=o;return e>=t&&e<=s&&r>=u&&r<=d}function jp(o,r,e){o.top+=r,o.bottom=o.top+o.height,o.left+=e,o.right=o.left+o.width}function pM(o,r,e,t){const{top:s,right:u,bottom:d,left:l,width:n,height:i}=o,a=n*r,c=i*r;return t>s-c&&tl-a&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:u0(e)})})}handleScroll(r){const e=mn(r),t=this.positions.get(e);if(!t)return null;const s=t.scrollPosition;let u,d;if(e===this._document){const i=this.getViewportScrollPosition();u=i.top,d=i.left}else u=e.scrollTop,d=e.scrollLeft;const l=s.top-u,n=s.left-d;return this.positions.forEach((i,a)=>{i.clientRect&&e!==a&&e.contains(a)&&jp(i.clientRect,l,n)}),s.top=u,s.left=d,{top:l,left:n}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function mM(o){const r=o.cloneNode(!0),e=r.querySelectorAll("[id]"),t=o.nodeName.toLowerCase();r.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&this._initializeDragSequence(n,l)}else this.disabled||this._initializeDragSequence(this._rootElement,l)},this._pointerMove=l=>{const n=this._getPointerPositionOnPage(l);if(!this._hasStartedDragging){if(Math.abs(n.x-this._pickupPositionOnPage.x)+Math.abs(n.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const f=Date.now()>=this._dragStartTime+this._getDragStartDelay(l),m=this._dropContainer;if(!f)return void this._endDragSequence(l);(!m||!m.isDragging()&&!m.isReceiving())&&(l.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(l)))}return}l.preventDefault();const i=this._getConstrainedPointerPosition(n);if(this._hasMoved=!0,this._lastKnownPointerPosition=n,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,n);else{const a=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,c=this._activeTransform;c.x=i.x-a.x+this._passiveTransform.x,c.y=i.y-a.y+this._passiveTransform.y,this._applyRootElementTransform(c.x,c.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:l,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=l=>{this._endDragSequence(l)},this._nativeDragStart=l=>{if(this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&l.preventDefault()}else this.disabled||l.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new fM(t),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=ut(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Wd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>Zt(t)),this._handles.forEach(t=>Wd(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=Zt(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Ab),e.addEventListener("touchstart",this._pointerDown,CM),e.addEventListener("dragstart",this._nativeDragStart,Ab)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?Zt(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),Wd(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),Wd(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:r}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:r})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){Fp(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,s=t.parentNode,u=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),l=this._getShadowRoot();s.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),uM(t,!1,p0),this._document.body.appendChild(s.replaceChild(u,t)),this._getPreviewInsertionPoint(s,l).appendChild(this._preview),this.started.next({source:this,event:r}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:r}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),s=Fp(e),u=!s&&0!==e.button,d=this._rootElement,l=mn(e),n=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),i=s?qo(e):mm(e);if(l&&l.draggable&&"mousedown"===e.type&&e.preventDefault(),t||u||n||i)return;if(this._handles.length){const h=d.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=u0(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,r,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(r){uM(this._rootElement,!0,p0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),s=this._getPointerPositionOnPage(r),u=this._getDragDistance(s),d=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:u,dropPoint:s,event:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:u,dropPoint:s,event:r}),e.drop(this,t,this._initialIndex,this._initialContainer,d,u,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:s}){let u=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!u&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,e)&&(u=this._initialContainer),u&&u!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=u,this._dropContainer.enter(this,r,e,u===this._initialContainer&&u.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:u,currentIndex:u.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,s),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,e):this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let s;if(t&&r){const u=r.matchSize?this._initialClientRect:null,d=r.viewContainer.createEmbeddedView(t,r.context);d.detectChanges(),s=yM(d,this._document),this._previewRef=d,r.matchSize?vM(s,u):s.style.transform=xb(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=mM(this._rootElement),vM(s,this._initialClientRect),this._initialTransform&&(s.style.transform=this._initialTransform);return c0(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},p0),Wd(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(u=>s.classList.add(u)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function WP(o){const r=getComputedStyle(o),e=d0(r,"transition-property"),t=e.find(l=>"transform"===l||"all"===l);if(!t)return 0;const s=e.indexOf(t),u=d0(r,"transition-duration"),d=d0(r,"transition-delay");return hM(u[s])+hM(d[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const s=d=>{(!d||mn(d)===this._preview&&"transform"===d.propertyName)&&(this._preview?.removeEventListener("transitionend",s),t(),clearTimeout(u))},u=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=yM(this._placeholderRef,this._document)):t=mM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e,t){const s=e===this._rootElement?null:e,u=s?s.getBoundingClientRect():r,d=Fp(t)?t.targetTouches[0]:t,l=this._getViewportScrollPosition();return{x:u.left-r.left+(d.pageX-u.left-l.left),y:u.top-r.top+(d.pageY-u.top-l.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=Fp(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,s=t.pageX-e.left,u=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const l=this._ownerSVGElement.createSVGPoint();return l.x=s,l.y=u,l.matrixTransform(d.inverse())}}return{x:s,y:u}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:s}=this.constrainPosition?this.constrainPosition(r,this,this._initialClientRect,this._pickupPositionInElement):r;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:u,y:d}=this._pickupPositionInElement,l=this._boundaryRect,{width:n,height:i}=this._getPreviewRect(),a=l.top+d,c=l.bottom-(i-d);t=wM(t,l.left+u,l.right-(n-u)),s=wM(s,a,c)}return{x:t,y:s}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,s=this._pointerDirectionDelta,u=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-u.x),l=Math.abs(t-u.y);return d>this._config.pointerDirectionChangeThreshold&&(s.x=e>u.x?1:-1,u.x=e),l>this._config.pointerDirectionChangeThreshold&&(s.y=t>u.y?1:-1,u.y=t),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,Wd(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,Ab),r.removeEventListener("touchstart",this._pointerDown,CM),r.removeEventListener("dragstart",this._nativeDragStart,Ab)}_applyRootElementTransform(r,e){const t=xb(r,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=vb(t,this._initialTransform)}_applyPreviewTransform(r,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,s=xb(r,e);this._preview.style.transform=vb(s,t)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(0===s.width&&0===s.height||0===t.width&&0===t.height)return;const u=s.left-t.left,d=t.right-s.right,l=s.top-t.top,n=t.bottom-s.bottom;s.width>t.width?(u>0&&(r+=u),d>0&&(r-=d)):r=0,s.height>t.height?(l>0&&(e+=l),n>0&&(e-=n)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:Fp(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=mn(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&jp(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Yr(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return Zt(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(r){return this._handles.find(e=>r.target&&(r.target===e||e.contains(r.target)))}}function xb(o,r){return`translate3d(${Math.round(o)}px, ${Math.round(r)}px, 0)`}function wM(o,r,e){return Math.max(r,Math.min(e,o))}function Fp(o){return"t"===o.type[0]}function yM(o,r){const e=o.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(s=>t.appendChild(s)),t}function vM(o,r){o.style.width=`${r.width}px`,o.style.height=`${r.height}px`,o.style.transform=xb(r.left,r.top)}function Up(o,r){return Math.max(0,Math.min(r,o))}class KP{constructor(r,e){this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(r){this.withItems(r)}sort(r,e,t,s){const u=this._itemPositions,d=this._getItemIndexFromPointerPosition(r,e,t,s);if(-1===d&&u.length>0)return null;const l="horizontal"===this.orientation,n=u.findIndex(w=>w.drag===r),i=u[d],c=i.clientRect,h=n>d?1:-1,f=this._getItemOffsetPx(u[n].clientRect,c,h),m=this._getSiblingOffsetPx(n,u,h),p=u.slice();return function JP(o,r,e){const t=Up(r,o.length-1),s=Up(e,o.length-1);if(t===s)return;const u=o[t],d=s{if(p[R]===w)return;const J=w.drag===r,Te=J?f:m,nt=J?r.getPlaceholderElement():w.drag.getRootElement();w.offset+=Te,l?(nt.style.transform=vb(`translate3d(${Math.round(w.offset)}px, 0, 0)`,w.initialTransform),jp(w.clientRect,0,Te)):(nt.style.transform=vb(`translate3d(0, ${Math.round(w.offset)}px, 0)`,w.initialTransform),jp(w.clientRect,Te,0))}),this._previousSwap.overlaps=h0(c,e,t),this._previousSwap.drag=i.drag,this._previousSwap.delta=l?s.x:s.y,{previousIndex:n,currentIndex:d}}enter(r,e,t,s){const u=null==s||s<0?this._getItemIndexFromPointerPosition(r,e,t):s,d=this._activeDraggables,l=d.indexOf(r),n=r.getPlaceholderElement();let i=d[u];if(i===r&&(i=d[u+1]),!i&&(null==u||-1===u||u-1&&d.splice(l,1),i&&!this._dragDropRegistry.isDragging(i)){const a=i.getRootElement();a.parentElement.insertBefore(n,a),d.splice(u,0,r)}else Zt(this._element).appendChild(n),d.push(r);n.style.transform="",this._cacheItemPositions()}withItems(r){this._activeDraggables=r.slice(),this._cacheItemPositions()}withSortPredicate(r){this._sortPredicate=r}reset(){this._activeDraggables.forEach(r=>{const e=r.getRootElement();if(e){const t=this._itemPositions.find(s=>s.drag===r)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(r){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r)}updateOnScroll(r,e){this._itemPositions.forEach(({clientRect:t})=>{jp(t,r,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const r="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:u0(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(r,e,t){const s="horizontal"===this.orientation;let u=s?e.left-r.left:e.top-r.top;return-1===t&&(u+=s?e.width-r.width:e.height-r.height),u}_getSiblingOffsetPx(r,e,t){const s="horizontal"===this.orientation,u=e[r].clientRect,d=e[r+-1*t];let l=u[s?"width":"height"]*t;if(d){const n=s?"left":"top",i=s?"right":"bottom";-1===t?l-=d.clientRect[n]-u[i]:l+=u[n]-d.clientRect[i]}return l}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,s="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const d=t[t.length-1].clientRect;return s?r>=d.right:e>=d.bottom}{const d=t[0].clientRect;return s?r<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(r,e,t,s){const u="horizontal"===this.orientation,d=this._itemPositions.findIndex(({drag:l,clientRect:n})=>{if(l===r)return!1;if(s){const i=u?s.x:s.y;if(l===this._previousSwap.drag&&this._previousSwap.overlaps&&i===this._previousSwap.delta)return!1}return u?e>=Math.floor(n.left)&&e=Math.floor(n.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Ee.x,this.entered=new Ee.x,this.exited=new Ee.x,this.dropped=new Ee.x,this.sorted=new Ee.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Gt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Ee.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function GP(o=0,r=qc.z){return o<0&&(o=0),(0,zc.H)(o,o,r)}(0,Om).pipe(It(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,l=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-l):2===this._verticalScrollDirection&&d.scrollBy(0,l),1===this._horizontalScrollDirection?d.scrollBy(-l,0):2===this._horizontalScrollDirection&&d.scrollBy(l,0)})},this.element=Zt(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new fM(t),this._sortStrategy=new KP(this.element,e),this._sortStrategy.withSortPredicate((d,l)=>this.sortPredicate(d,l,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,s){this._draggingStarted(),null==s&&this.sortingDisabled&&(s=this._draggables.indexOf(r)),this._sortStrategy.enter(r,e,t,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,s,u,d,l,n={}){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:s,isPointerOverContainer:u,distance:d,dropPoint:l,event:n})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===r.indexOf(s))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(r){return this._sortStrategy.direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._sortStrategy.orientation=r,this}withScrollableParents(r){const e=Zt(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?this._sortStrategy.getItemIndex(r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,s){if(this.sortingDisabled||!this._clientRect||!pM(this._clientRect,.05,e,t))return;const u=this._sortStrategy.sort(r,e,t,s);u&&this.sorted.next({previousIndex:u.previousIndex,currentIndex:u.currentIndex,container:this,item:r})}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,s=0,u=0;if(this._parentPositions.positions.forEach((d,l)=>{l===this._document||!d.clientRect||t||pM(d.clientRect,.05,r,e)&&([s,u]=function XP(o,r,e,t){const s=SM(r,t),u=TM(r,e);let d=0,l=0;if(s){const n=o.scrollTop;1===s?n>0&&(d=1):o.scrollHeight-n>o.clientHeight&&(d=2)}if(u){const n=o.scrollLeft;1===u?n>0&&(l=1):o.scrollWidth-n>o.clientWidth&&(l=2)}return[d,l]}(l,d.clientRect,r,e),(s||u)&&(t=l))}),!s&&!u){const{width:d,height:l}=this._viewportRuler.getViewportSize(),n={width:d,height:l,top:0,right:d,bottom:l,left:0};s=SM(n,e),u=TM(n,r),t=window}t&&(s!==this._verticalScrollDirection||u!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=u,this._scrollNode=t,(s||u)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=Zt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=Zt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_reset(){this._isDragging=!1;const r=Zt(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(r,e){return null!=this._clientRect&&h0(this._clientRect,r,e)}_getSiblingContainerFromPosition(r,e,t){return this._siblings.find(s=>s._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!h0(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,t);if(!s)return!1;const u=Zt(this.element);return s===u||u.contains(s)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=Yr(Zt(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function SM(o,r){const{top:e,bottom:t,height:s}=o,u=.05*s;return r>=e-u&&r<=e+u?1:r>=t-u&&r<=t+u?2:0}function TM(o,r){const{left:e,right:t,width:s}=o,u=.05*s;return r>=e-u&&r<=e+u?1:r>=t-u&&r<=t+u?2:0}const Sb=er({passive:!1,capture:!0});let e1=(()=>{class o{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new Ee.x,this.pointerUp=new Ee.x,this.scroll=new Ee.x,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Sb)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Sb)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=t.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:u=>this.pointerUp.next(u),options:!0}).set("scroll",{handler:u=>this.scroll.next(u),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Sb}),s||this._globalListeners.set("mousemove",{handler:u=>this.pointerMove.next(u),options:Sb}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((u,d)=>{this._document.addEventListener(d,u.handler,u.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Qe.y(s=>this._ngZone.runOutsideAngular(()=>{const d=l=>{this._activeDragInstances.length&&s.next(l)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,nr.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.R0b),_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const t1={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let n1=(()=>{class o{constructor(e,t,s,u){this._document=e,this._ngZone=t,this._viewportRuler=s,this._dragDropRegistry=u}createDrag(e,t=t1){return new YP(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new ZP(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0),_.LFG(_.R0b),_.LFG(Ga),_.LFG(e1))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),r1=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[n1],imports:[In]}),o})();function h1(o,r){1&o&&_._UZ(0,"mat-spinner",7)}function p1(o,r){1&o&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&o&&(_.xp6(1),_.Oqu(_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function f1(o,r){1&o&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&o&&(_.xp6(1),_.Oqu(_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function m1(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),_._uU(3),_.ALo(4,"translate"),_.qZA(),_.TgZ(5,"input",9,10),_.NdJ("ngModelChange",function(s){_.CHM(e);const u=_.oxw();return _.KtG(u.subject=s)}),_.qZA(),_.YNc(7,p1,3,3,"mat-error",11),_.qZA(),_.TgZ(8,"mat-form-field")(9,"mat-label"),_._uU(10),_.ALo(11,"translate"),_.qZA(),_.TgZ(12,"textarea",12,13),_.NdJ("ngModelChange",function(s){_.CHM(e);const u=_.oxw();return _.KtG(u.message=s)}),_.ALo(14,"translate"),_._uU(15," "),_.qZA(),_.YNc(16,f1,3,3,"mat-error",11),_.qZA()()}if(2&o){const e=_.MAs(6),t=_.MAs(13),s=_.oxw();_.xp6(3),_.Oqu(_.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),_.xp6(2),_.Q6J("ngModel",s.subject),_.xp6(2),_.Q6J("ngIf",e.invalid),_.xp6(3),_.Oqu(_.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),_.xp6(2),_.s9C("placeholder",_.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),_.Q6J("ngModel",s.message),_.xp6(4),_.Q6J("ngIf",t.invalid)}}let g1=(()=>{class o{constructor(e,t,s,u,d,l){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=u,this.data=d,this.storeService=l,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const s=/"password":".+?"/;let u=JSON.stringify(this.data.error.payload);u=u.replace(s,'"password":"####"'),t=t.concat("Payload:\n"+u+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",E(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn),_.Y36(sa),_.Y36(yd),_.Y36(_d),_.Y36(hs),_.Y36(On))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.YNc(3,h1,1,0,"mat-spinner",1),_.YNc(4,m1,17,13,"div",2),_.TgZ(5,"div",3)(6,"div",4)(7,"button",5),_.NdJ("click",function(){return t.dialogRef.close()}),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.TgZ(10,"button",6),_.NdJ("click",function(){return t.sendBugReport()}),_._uU(11),_.ALo(12,"translate"),_.qZA()()()),2&e&&(_.xp6(1),_.Oqu(_.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),_.xp6(2),_.Q6J("ngIf",t.loading),_.xp6(1),_.Q6J("ngIf",!t.loading),_.xp6(4),_.hij(" ",_.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),_.xp6(2),_.Q6J("disabled",""===t.message||""===t.subject||t.loading),_.xp6(1),_.hij(" ",_.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[M.O5,la,dr,ca,Zr,Ph,pl,kh,Ml,Md,Ue,Bd,NA,Ln,Hi],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),o})(),_1=(()=>{class o{constructor(e,t,s){this.dialogRef=e,this.dialog=t,this.data=s}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=ur();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(g1,e)}),this.dialogRef.close()}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn),_.Y36(cr),_.Y36(hs))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.qZA(),_.TgZ(2,"div",1),_._uU(3),_.qZA(),_.TgZ(4,"div",2)(5,"div",3)(6,"button",4),_.NdJ("click",function(){return t.onBugReportClick()}),_._uU(7),_.ALo(8,"translate"),_.qZA(),_.TgZ(9,"button",5),_.NdJ("click",function(){return t.onCloseClick()}),_._uU(10),_.ALo(11,"translate"),_.qZA()()()),2&e&&(_.xp6(1),_.Oqu(t.data.title),_.xp6(2),_.hij(" ",t.data.description,"\n"),_.xp6(3),_.Q6J("hidden","error"!==t.data.type),_.xp6(1),_.hij(" ",_.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),_.xp6(3),_.hij(" ",_.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[la,dr,ca,Zr,Hi]}),o})();function V1(o,r){1&o&&(_.TgZ(0,"mat-error",8),_._uU(1),_.ALo(2,"translate"),_.ALo(3,"customTranslate"),_.qZA()),2&o&&(_.xp6(1),_.Oqu(_.lcZ(2,1,_.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class oo{constructor(r,e,t){this.dialogRef=r,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new gE(null,[ua.required,ua.pattern(oo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const r=this.data.attribute?.value??[],e=this.sshControl.value;r.includes(e)||r.push(e),this.data.attribute.value=r,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{r.pop()})}}function N1(o,r){if(1&o&&(_.TgZ(0,"div",9),_._UZ(1,"perun-web-apps-notification",10),_.qZA()),2&o){const e=r.$implicit;_.xp6(1),_.Q6J("data",e)("inDialog",!0)}}function q1(o,r){if(1&o&&(_.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),_.YNc(2,N1,2,2,"div",8),_.qZA()()),2&o){const e=_.oxw();_.xp6(2),_.Q6J("cdkVirtualForOf",e.notifications)}}function z1(o,r){1&o&&(_.TgZ(0,"perun-web-apps-alert",11),_._uU(1),_.ALo(2,"translate"),_.ALo(3,"customTranslate"),_.qZA()),2&o&&(_.xp6(1),_.Oqu(_.lcZ(2,1,_.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}oo.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],oo.sshKeyPattern="^("+oo.allowedSshKeys.join("|")+").+$",oo.\u0275fac=function(r){return new(r||oo)(_.Y36(Vn),_.Y36(hs),_.Y36(Jg))},oo.\u0275cmp=_.Xpm({type:oo,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(r,e){1&r&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.ALo(3,"customTranslate"),_.qZA(),_.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),_._UZ(7,"textarea",3),_.ALo(8,"translate"),_.ALo(9,"customTranslate"),_.qZA(),_.YNc(10,V1,4,5,"mat-error",4),_.qZA()(),_.TgZ(11,"div",5)(12,"button",6),_.NdJ("click",function(){return e.onCancel()}),_._uU(13),_.ALo(14,"translate"),_.ALo(15,"customTranslate"),_.qZA(),_.TgZ(16,"button",7),_.NdJ("click",function(){return e.onSubmit()}),_._uU(17),_.ALo(18,"translate"),_.ALo(19,"customTranslate"),_.qZA()()),2&r&&(_.xp6(1),_.Oqu(_.lcZ(2,7,_.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),_.xp6(6),_.s9C("placeholder",_.lcZ(8,11,_.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),_.Q6J("formControl",e.sshControl),_.xp6(3),_.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),_.xp6(3),_.hij(" ",_.lcZ(14,15,_.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),_.xp6(3),_.Q6J("disabled",e.sshControl.invalid),_.xp6(1),_.hij(" ",_.lcZ(18,19,_.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[M.O5,Ml,Md,Ue,Zr,Ph,pl,kp,lp,NA,la,dr,ca,Hi,ap],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let G1=(()=>{class o{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn),_.Y36(C_))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.ALo(3,"customTranslate"),_.qZA(),_.YNc(4,q1,3,1,"div",1),_.YNc(5,z1,4,5,"perun-web-apps-alert",2),_.TgZ(6,"div",3)(7,"button",4),_.NdJ("click",function(){return t.onClear()}),_._uU(8),_.ALo(9,"translate"),_.ALo(10,"customTranslate"),_.qZA(),_.TgZ(11,"button",5),_.NdJ("click",function(){return t.onCancel()}),_._uU(12),_.ALo(13,"translate"),_.ALo(14,"customTranslate"),_.qZA()()),2&e&&(_.xp6(1),_.Oqu(_.lcZ(2,5,_.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),_.xp6(3),_.Q6J("ngIf",0!==t.notifications.length),_.xp6(1),_.Q6J("ngIf",0===t.notifications.length),_.xp6(3),_.hij(" ",_.lcZ(9,9,_.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),_.xp6(4),_.hij(" ",_.lcZ(13,13,_.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),o})();function W1(o,r){if(1&o&&(_.TgZ(0,"div",5)(1,"mat-icon"),_._uU(2),_.qZA()()),2&o){const e=_.oxw();_.xp6(2),_.Oqu(e.data.icon)}}function $1(o,r){if(1&o&&(_.TgZ(0,"div",6),_._uU(1),_.qZA()),2&o){const e=_.oxw();_.xp6(1),_.hij(" ",e.showTimestamp()," ")}}let Q1=(()=>{class o{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new _.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=ur();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(_1,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function Dv(o,r){md.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(cr),_.Y36(C_))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(_.TgZ(0,"div")(1,"div",0),_.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),_.YNc(2,W1,3,1,"div",1),_.TgZ(3,"div",2),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.YNc(6,$1,2,1,"div",3),_.TgZ(7,"div",4),_.NdJ("click",function(){return t.waiting=!0,t.doAction()}),_._uU(8),_.qZA()()()),2&e&&(_.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),_.ekj("error","error"===t.data.type)("success","success"===t.data.type),_.xp6(2),_.Q6J("ngIf",null!==t.data.icon),_.xp6(2),_.hij(" ",_.lcZ(5,12,t.data.title)," "),_.xp6(2),_.Q6J("ngIf",t.inDialog),_.xp6(1),_.Q6J("hidden",t.alreadyPressed),_.xp6(1),_.hij(" ",t.data.actionText," "))},dependencies:[M.O5,Ft,Hi],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),o})(),Y1=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),eI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),lI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[eI,Se,Se]}),o})(),yI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Cn,Se,Se]}),o})();new _.OlP("mat-selectsearch-default-options");let TI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[M.ez,no,Tr,lb,aa,Ad,os]]}),o})(),EI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Ua,Se,Se]}),o})(),MI=(()=>{class o extends Vc{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const DI={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let RM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[{provide:bn,useClass:MI},{provide:tl,useValue:DI}],imports:[M.ez,lb,bb,jl,o0,r1,lr,Bo,r0,$a,Ad,l0,aa,gl,Tr,os,Hr,no,sb,Cn,w_,Y1,lI,t0,yI,Fc,fl,TI,Wa,yl,Ig,s0,EI]}),o})();_.B6R(G1,[M.O5,wd,Zr,zm,sy,en,la,ca,Q1],[Hi,ap]),new Date(324721404e5).valueOf();let cB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,Tr,aa,Bo,RM,lr,Hr,no,sb,l0]}),o})(),uB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,yl,Tr,lr]}),o})(),hB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[vd],imports:[M.ez,s0,lr,w_]}),o})();function LM(o){return new _.vHH(3e3,!1)}function $B(){return typeof window<"u"&&typeof window.document<"u"}function b0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function bs(o){switch(o.length){case 0:return new Bn;case 1:return o[0];default:return new ul(o)}}function jM(o,r,e,t,s=new Map,u=new Map){const d=[],l=[];let n=-1,i=null;if(t.forEach(a=>{const c=a.get("offset"),h=c==n,f=h&&i||new Map;a.forEach((m,p)=>{let w=p,R=m;if("offset"!==p)switch(w=r.normalizePropertyName(w,d),R){case"!":R=s.get(p);break;case Dr:R=u.get(p);break;default:R=r.normalizeStyleValue(p,w,R,d)}f.set(w,R)}),h||l.push(f),i=f,n=c}),d.length)throw function BB(o){return new _.vHH(3502,!1)}();return l}function C0(o,r,e,t){switch(r){case"start":o.onStart(()=>t(e&&w0(e,"start",o)));break;case"done":o.onDone(()=>t(e&&w0(e,"done",o)));break;case"destroy":o.onDestroy(()=>t(e&&w0(e,"destroy",o)))}}function w0(o,r,e){const u=y0(o.element,o.triggerName,o.fromState,o.toState,r||o.phaseName,e.totalTime??o.totalTime,!!e.disabled),d=o._data;return null!=d&&(u._data=d),u}function y0(o,r,e,t,s="",u=0,d){return{element:o,triggerName:r,fromState:e,toState:t,phaseName:s,totalTime:u,disabled:!!d}}function jn(o,r,e){let t=o.get(r);return t||o.set(r,t=e),t}function FM(o){const r=o.indexOf(":");return[o.substring(1,r),o.slice(r+1)]}let v0=(o,r)=>!1,UM=(o,r,e)=>[],NM=null;function A0(o){const r=o.parentNode||o.host;return r===NM?null:r}(b0()||typeof Element<"u")&&($B()?(NM=(()=>document.documentElement)(),v0=(o,r)=>{for(;r;){if(r===o)return!0;r=A0(r)}return!1}):v0=(o,r)=>o.contains(r),UM=(o,r,e)=>{if(e)return Array.from(o.querySelectorAll(r));const t=o.querySelector(r);return t?[t]:[]});let Ul=null,qM=!1;const zM=v0,GM=UM;let WM=(()=>{class o{validateStyleProperty(e){return function YB(o){Ul||(Ul=function JB(){return typeof document<"u"?document.body:null}()||{},qM=!!Ul.style&&"WebkitAppearance"in Ul.style);let r=!0;return Ul.style&&!function QB(o){return"ebkit"==o.substring(1,6)}(o)&&(r=o in Ul.style,!r&&qM&&(r="Webkit"+o.charAt(0).toUpperCase()+o.slice(1)in Ul.style)),r}(e)}matchesElement(e,t){return!1}containsElement(e,t){return zM(e,t)}getParentElement(e){return A0(e)}query(e,t,s){return GM(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,t,s,u,d,l=[],n){return new Bn(s,u)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),x0=(()=>{class o{}return o.NOOP=new WM,o})();const S0="ng-enter",Db="ng-leave",Hb="ng-trigger",Rb=".ng-trigger",QM="ng-animating",T0=".ng-animating";function Cs(o){if("number"==typeof o)return o;const r=o.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:E0(parseFloat(r[1]),r[2])}function E0(o,r){return"s"===r?1e3*o:o}function Pb(o,r,e){return o.hasOwnProperty("duration")?o:function XB(o,r,e){let s,u=0,d="";if("string"==typeof o){const l=o.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return r.push(LM()),{duration:0,delay:0,easing:""};s=E0(parseFloat(l[1]),l[2]);const n=l[3];null!=n&&(u=E0(parseFloat(n),l[4]));const i=l[5];i&&(d=i)}else s=o;if(!e){let l=!1,n=r.length;s<0&&(r.push(function pB(){return new _.vHH(3100,!1)}()),l=!0),u<0&&(r.push(function fB(){return new _.vHH(3101,!1)}()),l=!0),l&&r.splice(n,0,LM())}return{duration:s,delay:u,easing:d}}(o,r,e)}function qp(o,r={}){return Object.keys(o).forEach(e=>{r[e]=o[e]}),r}function YM(o){const r=new Map;return Object.keys(o).forEach(e=>{r.set(e,o[e])}),r}function ws(o,r=new Map,e){if(e)for(let[t,s]of e)r.set(t,s);for(let[t,s]of o)r.set(t,s);return r}function KM(o,r,e){return e?r+":"+e+";":""}function ZM(o){let r="";for(let e=0;e{const u=D0(s);e&&!e.has(s)&&e.set(s,o.style[u]),o.style[u]=t}),b0()&&ZM(o))}function Nl(o,r){o.style&&(r.forEach((e,t)=>{const s=D0(t);o.style[s]=""}),b0()&&ZM(o))}function zp(o){return Array.isArray(o)?1==o.length?o[0]:dl(o):o}const M0=new RegExp("{{\\s*(.+?)\\s*}}","g");function XM(o){let r=[];if("string"==typeof o){let e;for(;e=M0.exec(o);)r.push(e[1]);M0.lastIndex=0}return r}function Ib(o,r,e){const t=o.toString(),s=t.replace(M0,(u,d)=>{let l=r[d];return null==l&&(e.push(function gB(o){return new _.vHH(3003,!1)}()),l=""),l.toString()});return s==t?o:s}function kb(o){const r=[];let e=o.next();for(;!e.done;)r.push(e.value),e=o.next();return r}const iV=/-+([a-z0-9])/g;function D0(o){return o.replace(iV,(...r)=>r[1].toUpperCase())}function nV(o){return o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Fn(o,r,e){switch(r.type){case 7:return o.visitTrigger(r,e);case 0:return o.visitState(r,e);case 1:return o.visitTransition(r,e);case 2:return o.visitSequence(r,e);case 3:return o.visitGroup(r,e);case 4:return o.visitAnimate(r,e);case 5:return o.visitKeyframes(r,e);case 6:return o.visitStyle(r,e);case 8:return o.visitReference(r,e);case 9:return o.visitAnimateChild(r,e);case 10:return o.visitAnimateRef(r,e);case 11:return o.visitQuery(r,e);case 12:return o.visitStagger(r,e);default:throw function _B(o){return new _.vHH(3004,!1)}()}}function eD(o,r){return window.getComputedStyle(o)[r]}function cV(o,r){const e=[];return"string"==typeof o?o.split(/\s*,\s*/).forEach(t=>function dV(o,r,e){if(":"==o[0]){const n=function uV(o,r){switch(o){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(o,e);if("function"==typeof n)return void r.push(n);o=n}const t=o.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function HB(o){return new _.vHH(3015,!1)}()),r;const s=t[1],u=t[2],d=t[3];r.push(tD(s,d));"<"==u[0]&&!("*"==s&&"*"==d)&&r.push(tD(d,s))}(t,e,r)):e.push(o),e}const Lb=new Set(["true","1"]),jb=new Set(["false","0"]);function tD(o,r){const e=Lb.has(o)||jb.has(o),t=Lb.has(r)||jb.has(r);return(s,u)=>{let d="*"==o||o==s,l="*"==r||r==u;return!d&&e&&"boolean"==typeof s&&(d=s?Lb.has(o):jb.has(o)),!l&&t&&"boolean"==typeof u&&(l=u?Lb.has(r):jb.has(r)),d&&l}}const hV=new RegExp("s*:selfs*,?","g");function H0(o,r,e,t){return new pV(o).build(r,e,t)}class pV{constructor(r){this._driver=r}build(r,e,t){const s=new gV(e);return this._resetContextStyleTimingState(s),Fn(this,zp(r),s)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,s=e.depCount=0;const u=[],d=[];return"@"==r.name.charAt(0)&&e.errors.push(function CB(){return new _.vHH(3006,!1)}()),r.definitions.forEach(l=>{if(this._resetContextStyleTimingState(e),0==l.type){const n=l,i=n.name;i.toString().split(/\s*,\s*/).forEach(a=>{n.name=a,u.push(this.visitState(n,e))}),n.name=i}else if(1==l.type){const n=this.visitTransition(l,e);t+=n.queryCount,s+=n.depCount,d.push(n)}else e.errors.push(function wB(){return new _.vHH(3007,!1)}())}),{type:7,name:r.name,states:u,transitions:d,queryCount:t,depCount:s,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),s=r.options&&r.options.params||null;if(t.containsDynamicStyles){const u=new Set,d=s||{};t.styles.forEach(l=>{l instanceof Map&&l.forEach(n=>{XM(n).forEach(i=>{d.hasOwnProperty(i)||u.add(i)})})}),u.size&&(kb(u.values()),e.errors.push(function yB(o,r){return new _.vHH(3008,!1)}()))}return{type:0,name:r.name,style:t,options:s?{params:s}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=Fn(this,zp(r.animation),e);return{type:1,matchers:cV(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:ql(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>Fn(this,t,e)),options:ql(r.options)}}visitGroup(r,e){const t=e.currentTime;let s=0;const u=r.steps.map(d=>{e.currentTime=t;const l=Fn(this,d,e);return s=Math.max(s,e.currentTime),l});return e.currentTime=s,{type:3,steps:u,options:ql(r.options)}}visitAnimate(r,e){const t=function bV(o,r){if(o.hasOwnProperty("duration"))return o;if("number"==typeof o)return R0(Pb(o,r).duration,0,"");const e=o;if(e.split(/\s+/).some(u=>"{"==u.charAt(0)&&"{"==u.charAt(1))){const u=R0(0,0,"");return u.dynamic=!0,u.strValue=e,u}const s=Pb(e,r);return R0(s.duration,s.delay,s.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let s,u=r.styles?r.styles:je({});if(5==u.type)s=this.visitKeyframes(u,e);else{let d=r.styles,l=!1;if(!d){l=!0;const i={};t.easing&&(i.easing=t.easing),d=je(i)}e.currentTime+=t.duration+t.delay;const n=this.visitStyle(d,e);n.isEmptyStep=l,s=n}return e.currentAnimateTimings=null,{type:4,timings:t,style:s,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[],s=Array.isArray(r.styles)?r.styles:[r.styles];for(let l of s)"string"==typeof l?l===Dr?t.push(l):e.errors.push(new _.vHH(3002,!1)):t.push(YM(l));let u=!1,d=null;return t.forEach(l=>{if(l instanceof Map&&(l.has("easing")&&(d=l.get("easing"),l.delete("easing")),!u))for(let n of l.values())if(n.toString().indexOf("{{")>=0){u=!0;break}}),{type:6,styles:t,easing:d,offset:r.offset,containsDynamicStyles:u,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let s=e.currentTime,u=e.currentTime;t&&u>0&&(u-=t.duration+t.delay),r.styles.forEach(d=>{"string"!=typeof d&&d.forEach((l,n)=>{const i=e.collectedStyles.get(e.currentQuerySelector),a=i.get(n);let c=!0;a&&(u!=s&&u>=a.startTime&&s<=a.endTime&&(e.errors.push(function AB(o,r,e,t,s){return new _.vHH(3010,!1)}()),c=!1),u=a.startTime),c&&i.set(n,{startTime:u,endTime:s}),e.options&&function tV(o,r,e){const t=r.params||{},s=XM(o);s.length&&s.forEach(u=>{t.hasOwnProperty(u)||e.push(function mB(o){return new _.vHH(3001,!1)}())})}(l,e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function xB(){return new _.vHH(3011,!1)}()),t;let u=0;const d=[];let l=!1,n=!1,i=0;const a=r.steps.map(R=>{const J=this._makeStyleAst(R,e);let Te=null!=J.offset?J.offset:function _V(o){if("string"==typeof o)return null;let r=null;if(Array.isArray(o))o.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;r=parseFloat(t.get("offset")),t.delete("offset")}});else if(o instanceof Map&&o.has("offset")){const e=o;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(J.styles),nt=0;return null!=Te&&(u++,nt=J.offset=Te),n=n||nt<0||nt>1,l=l||nt0&&u{const Te=h>0?J==f?1:h*J:d[J],nt=Te*w;e.currentTime=m+p.delay+nt,p.duration=nt,this._validateStyleAst(R,e),R.offset=Te,t.styles.push(R)}),t}visitReference(r,e){return{type:8,animation:Fn(this,zp(r.animation),e),options:ql(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:ql(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:ql(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,s=r.options||{};e.queryCount++,e.currentQuery=r;const[u,d]=function fV(o){const r=!!o.split(/\s*,\s*/).find(e=>":self"==e);return r&&(o=o.replace(hV,"")),o=o.replace(/@\*/g,Rb).replace(/@\w+/g,e=>Rb+"-"+e.slice(1)).replace(/:animating/g,T0),[o,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+u:u,jn(e.collectedStyles,e.currentQuerySelector,new Map);const l=Fn(this,zp(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:u,limit:s.limit||0,optional:!!s.optional,includeSelf:d,animation:l,originalSelector:r.selector,options:ql(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function MB(){return new _.vHH(3013,!1)}());const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:Pb(r.timings,e.errors,!0);return{type:12,animation:Fn(this,zp(r.animation),e),timings:t,options:null}}}class gV{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ql(o){return o?(o=qp(o)).params&&(o.params=function mV(o){return o?qp(o):null}(o.params)):o={},o}function R0(o,r,e){return{duration:o,delay:r,easing:e}}function P0(o,r,e,t,s,u,d=null,l=!1){return{type:1,element:o,keyframes:r,preStyleProps:e,postStyleProps:t,duration:s,delay:u,totalTime:s+u,easing:d,subTimeline:l}}class Fb{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const yV=new RegExp(":enter","g"),AV=new RegExp(":leave","g");function I0(o,r,e,t,s,u=new Map,d=new Map,l,n,i=[]){return(new xV).buildKeyframes(o,r,e,t,s,u,d,l,n,i)}class xV{buildKeyframes(r,e,t,s,u,d,l,n,i,a=[]){i=i||new Fb;const c=new k0(r,e,i,s,u,a,[]);c.options=n;const h=n.delay?Cs(n.delay):0;c.currentTimeline.delayNextStep(h),c.currentTimeline.setStyles([d],null,c.errors,n),Fn(this,t,c);const f=c.timelines.filter(m=>m.containsAnimation());if(f.length&&l.size){let m;for(let p=f.length-1;p>=0;p--){const w=f[p];if(w.element===e){m=w;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([l],null,c.errors,n)}return f.length?f.map(m=>m.buildKeyframes()):[P0(e,[],[],[],0,h,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const s=e.createSubContext(r.options),u=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,s,s.options);u!=d&&e.transformIntoNewTimeline(d)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let u=e.currentTimeline.currentTime;const d=null!=t.duration?Cs(t.duration):null,l=null!=t.delay?Cs(t.delay):null;return 0!==d&&r.forEach(n=>{const i=e.appendInstructionToTimeline(n,d,l);u=Math.max(u,i.duration+i.delay)}),u}visitReference(r,e){e.updateOptions(r.options,!0),Fn(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let s=e;const u=r.options;if(u&&(u.params||u.delay)&&(s=e.createSubContext(u),s.transformIntoNewTimeline(),null!=u.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Ub);const d=Cs(u.delay);s.delayNextStep(d)}r.steps.length&&(r.steps.forEach(d=>Fn(this,d,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let s=e.currentTimeline.currentTime;const u=r.options&&r.options.delay?Cs(r.options.delay):0;r.steps.forEach(d=>{const l=e.createSubContext(r.options);u&&l.delayNextStep(u),Fn(this,d,l),s=Math.max(s,l.currentTimeline.currentTime),t.push(l.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(s),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return Pb(e.params?Ib(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),s=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),s.snapshotCurrentStyles());const u=r.style;5==u.type?this.visitKeyframes(u,e):(e.incrementTime(t.duration),this.visitStyle(u,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,s=e.currentAnimateTimings;!s&&t.hasCurrentStyleProperties()&&t.forwardFrame();const u=s&&s.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(u):t.setStyles(r.styles,u,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,s=e.currentTimeline.duration,u=t.duration,l=e.createSubContext().currentTimeline;l.easing=t.easing,r.styles.forEach(n=>{l.forwardTime((n.offset||0)*u),l.setStyles(n.styles,n.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(s+u),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,s=r.options||{},u=s.delay?Cs(s.delay):0;u&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ub);let d=t;const l=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=l.length;let n=null;l.forEach((i,a)=>{e.currentQueryIndex=a;const c=e.createSubContext(r.options,i);u&&c.delayNextStep(u),i===e.element&&(n=c.currentTimeline),Fn(this,r.animation,c),c.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,c.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),n&&(e.currentTimeline.mergeTimelineCollectedStyles(n),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,s=e.currentTimeline,u=r.timings,d=Math.abs(u.duration),l=d*(e.currentQueryTotal-1);let n=d*e.currentQueryIndex;switch(u.duration<0?"reverse":u.easing){case"reverse":n=l-n;break;case"full":n=t.currentStaggerTime}const a=e.currentTimeline;n&&a.delayNextStep(n);const c=a.currentTime;Fn(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=s.currentTime-c+(s.startTime-t.currentTimeline.startTime)}}const Ub={};class k0{constructor(r,e,t,s,u,d,l,n){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=u,this.errors=d,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ub,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=n||new Nb(this._driver,e,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let s=this.options;null!=t.duration&&(s.duration=Cs(t.duration)),null!=t.delay&&(s.delay=Cs(t.delay));const u=t.params;if(u){let d=s.params;d||(d=this.options.params={}),Object.keys(u).forEach(l=>{(!e||!d.hasOwnProperty(l))&&(d[l]=Ib(u[l],d,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(s=>{t[s]=e[s]})}}return r}createSubContext(r=null,e,t){const s=e||this.element,u=new k0(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return u.previousNode=this.previousNode,u.currentAnimateTimings=this.currentAnimateTimings,u.options=this._copyOptions(),u.updateOptions(r),u.currentQueryIndex=this.currentQueryIndex,u.currentQueryTotal=this.currentQueryTotal,u.parentContext=this,this.subContextCount++,u}transformIntoNewTimeline(r){return this.previousNode=Ub,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const s={duration:e??r.duration,delay:this.currentTimeline.currentTime+(t??0)+r.delay,easing:""},u=new SV(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,s,r.stretchStartingKeyframe);return this.timelines.push(u),s}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,s,u,d){let l=[];if(s&&l.push(this.element),r.length>0){r=(r=r.replace(yV,"."+this._enterClassName)).replace(AV,"."+this._leaveClassName);let i=this._driver.query(this.element,r,1!=t);0!==t&&(i=t<0?i.slice(i.length+t,i.length):i.slice(0,t)),l.push(...i)}return!u&&0==l.length&&d.push(function DB(o){return new _.vHH(3014,!1)}()),l}}class Nb{constructor(r,e,t,s){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new Nb(this._driver,r,e||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+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Dr),this._currentKeyframe.set(e,Dr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,s){e&&this._previousKeyframe.set("easing",e);const u=s&&s.params||{},d=function TV(o,r){const e=new Map;let t;return o.forEach(s=>{if("*"===s){t=t||r.keys();for(let u of t)e.set(u,Dr)}else ws(s,e)}),e}(r,this._globalTimelineStyles);for(let[l,n]of d){const i=Ib(n,u,t);this._pendingStyles.set(l,i),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??Dr),this._updateStyle(l,i)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((l,n)=>{const i=ws(l,new Map,this._backFill);i.forEach((a,c)=>{"!"===a?r.add(c):a===Dr&&e.add(c)}),t||i.set("offset",n/this.duration),s.push(i)});const u=r.size?kb(r.values()):[],d=e.size?kb(e.values()):[];if(t){const l=s[0],n=new Map(l);l.set("offset",0),n.set("offset",1),s=[l,n]}return P0(this.element,s,u,d,this.duration,this.startTime,this.easing,!1)}}class SV extends Nb{constructor(r,e,t,s,u,d,l=!1){super(r,e,d.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=u,this._stretchStartingKeyframe=l,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const u=[],d=t+e,l=e/d,n=ws(r[0]);n.set("offset",0),u.push(n);const i=ws(r[0]);i.set("offset",rD(l)),u.push(i);const a=r.length-1;for(let c=1;c<=a;c++){let h=ws(r[c]);const f=h.get("offset");h.set("offset",rD((e+f*t)/d)),u.push(h)}t=d,e=0,s="",r=u}return P0(this.element,r,this.preStyleProps,this.postStyleProps,t,e,s,!0)}}function rD(o,r=3){const e=Math.pow(10,r-1);return Math.round(o*e)/e}class B0{}const EV=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"]);class MV extends B0{normalizePropertyName(r,e){return D0(r)}normalizeStyleValue(r,e,t,s){let u="";const d=t.toString().trim();if(EV.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)u="px";else{const l=t.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&s.push(function bB(o,r){return new _.vHH(3005,!1)}())}return d+u}}function aD(o,r,e,t,s,u,d,l,n,i,a,c,h){return{type:0,element:o,triggerName:r,isRemovalTransition:s,fromState:e,fromStyles:u,toState:t,toStyles:d,timelines:l,queriedElements:n,preStyleProps:i,postStyleProps:a,totalTime:c,errors:h}}const V0={};class oD{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,s){return function DV(o,r,e,t,s){return o.some(u=>u(r,e,t,s))}(this.ast.matchers,r,e,t,s)}buildStyles(r,e,t){let s=this._stateStyles.get("*");return void 0!==r&&(s=this._stateStyles.get(r?.toString())||s),s?s.buildStyles(e,t):new Map}build(r,e,t,s,u,d,l,n,i,a){const c=[],h=this.ast.options&&this.ast.options.params||V0,m=this.buildStyles(t,l&&l.params||V0,c),p=n&&n.params||V0,w=this.buildStyles(s,p,c),R=new Set,J=new Map,Te=new Map,nt="void"===s,Ai={params:HV(p,h),delay:this.ast.options?.delay},ii=a?[]:I0(r,e,this.ast.animation,u,d,m,w,Ai,i,c);let hi=0;if(ii.forEach(fr=>{hi=Math.max(fr.duration+fr.delay,hi)}),c.length)return aD(e,this._triggerName,t,s,nt,m,w,[],[],J,Te,hi,c);ii.forEach(fr=>{const lo=fr.element,yD=jn(J,lo,new Set);fr.preStyleProps.forEach(zl=>yD.add(zl));const Wp=jn(Te,lo,new Set);fr.postStyleProps.forEach(zl=>Wp.add(zl)),lo!==e&&R.add(lo)});const un=kb(R.values());return aD(e,this._triggerName,t,s,nt,m,w,ii,un,J,Te,hi)}}function HV(o,r){const e=qp(r);for(const t in o)o.hasOwnProperty(t)&&null!=o[t]&&(e[t]=o[t]);return e}class RV{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t=new Map,s=qp(this.defaultParams);return Object.keys(r).forEach(u=>{const d=r[u];null!==d&&(s[u]=d)}),this.styles.styles.forEach(u=>{"string"!=typeof u&&u.forEach((d,l)=>{d&&(d=Ib(d,s,e));const n=this.normalizer.normalizePropertyName(l,e);d=this.normalizer.normalizeStyleValue(l,n,d,e),t.set(n,d)})}),t}}class IV{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(s=>{this.states.set(s.name,new RV(s.style,s.options&&s.options.params||{},t))}),sD(this.states,"true","1"),sD(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new oD(r,s,this.states))}),this.fallbackTransition=function kV(o,r,e){return new oD(o,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,l)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,s){return this.transitionFactories.find(d=>d.match(r,e,t,s))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function sD(o,r,e){o.has(r)?o.has(e)||o.set(e,o.get(r)):o.has(e)&&o.set(r,o.get(e))}const BV=new Fb;class VV{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const t=[],u=H0(this._driver,e,t,[]);if(t.length)throw function VB(o){return new _.vHH(3503,!1)}();this._animations.set(r,u)}_buildPlayer(r,e,t){const s=r.element,u=jM(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(s,u,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const s=[],u=this._animations.get(r);let d;const l=new Map;if(u?(d=I0(this._driver,e,u,S0,Db,new Map,new Map,t,BV,s),d.forEach(a=>{const c=jn(l,a.element,new Map);a.postStyleProps.forEach(h=>c.set(h,null))})):(s.push(function OB(){return new _.vHH(3300,!1)}()),d=[]),s.length)throw function LB(o){return new _.vHH(3504,!1)}();l.forEach((a,c)=>{a.forEach((h,f)=>{a.set(f,this._driver.computeStyle(c,f,Dr))})});const i=bs(d.map(a=>{const c=l.get(a.element);return this._buildPlayer(a,new Map,c)}));return this._playersById.set(r,i),i.onDestroy(()=>this.destroy(r)),this.players.push(i),i}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function jB(o){return new _.vHH(3301,!1)}();return e}listen(r,e,t,s){const u=y0(e,"","","");return C0(this._getPlayer(r),t,u,s),()=>{}}command(r,e,t,s){if("register"==t)return void this.register(r,s[0]);if("create"==t)return void this.create(r,e,s[0]||{});const u=this._getPlayer(r);switch(t){case"play":u.play();break;case"pause":u.pause();break;case"reset":u.reset();break;case"restart":u.restart();break;case"finish":u.finish();break;case"init":u.init();break;case"setPosition":u.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(r)}}}const lD="ng-animate-queued",O0="ng-animate-disabled",UV=[],cD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},NV={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},hr="__ng_removed";class L0{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function WV(o){return o??null}(t?r.value:r),t){const u=qp(r);delete u.value,this.options=u}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(s=>{null==t[s]&&(t[s]=e[s])})}}}const Gp="void",j0=new L0(Gp);class qV{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,pr(e,this._hostClassName)}listen(r,e,t,s){if(!this._triggers.has(e))throw function FB(o,r){return new _.vHH(3302,!1)}();if(null==t||0==t.length)throw function UB(o){return new _.vHH(3303,!1)}();if(!function $V(o){return"start"==o||"done"==o}(t))throw function NB(o,r){return new _.vHH(3400,!1)}();const u=jn(this._elementListeners,r,[]),d={name:e,phase:t,callback:s};u.push(d);const l=jn(this._engine.statesByElement,r,new Map);return l.has(e)||(pr(r,Hb),pr(r,Hb+"-"+e),l.set(e,j0)),()=>{this._engine.afterFlush(()=>{const n=u.indexOf(d);n>=0&&u.splice(n,1),this._triggers.has(e)||l.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function qB(o){return new _.vHH(3401,!1)}();return e}trigger(r,e,t,s=!0){const u=this._getTrigger(e),d=new F0(this.id,e,r);let l=this._engine.statesByElement.get(r);l||(pr(r,Hb),pr(r,Hb+"-"+e),this._engine.statesByElement.set(r,l=new Map));let n=l.get(e);const i=new L0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&n&&i.absorbOptions(n.options),l.set(e,i),n||(n=j0),i.value!==Gp&&n.value===i.value){if(!function JV(o,r){const e=Object.keys(o),t=Object.keys(r);if(e.length!=t.length)return!1;for(let s=0;s{Nl(r,w),pa(r,R)})}return}const h=jn(this._engine.playersByElement,r,[]);h.forEach(p=>{p.namespaceId==this.id&&p.triggerName==e&&p.queued&&p.destroy()});let f=u.matchTransition(n.value,i.value,r,i.params),m=!1;if(!f){if(!s)return;f=u.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:f,fromState:n,toState:i,player:d,isFallbackTransition:m}),m||(pr(r,lD),d.onStart(()=>{Qd(r,lD)})),d.onDone(()=>{let p=this.players.indexOf(d);p>=0&&this.players.splice(p,1);const w=this._engine.playersByElement.get(r);if(w){let R=w.indexOf(d);R>=0&&w.splice(R,1)}}),this.players.push(d),h.push(d),d}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(s=>s.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,Rb,!0);t.forEach(s=>{if(s[hr])return;const u=this._engine.fetchNamespacesByElement(s);u.size?u.forEach(d=>d.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(r,e,t,s){const u=this._engine.statesByElement.get(r),d=new Map;if(u){const l=[];if(u.forEach((n,i)=>{if(d.set(i,n.value),this._triggers.has(i)){const a=this.trigger(r,i,Gp,s);a&&l.push(a)}}),l.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,d),t&&bs(l).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const s=new Set;e.forEach(u=>{const d=u.name;if(s.has(d))return;s.add(d);const n=this._triggers.get(d).fallbackTransition,i=t.get(d)||j0,a=new L0(Gp),c=new F0(this.id,d,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:d,transition:n,fromState:i,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let s=!1;if(t.totalAnimations){const u=t.players.length?t.playersByQueriedElement.get(r):[];if(u&&u.length)s=!0;else{let d=r;for(;d=d.parentNode;)if(t.statesByElement.get(d)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(r),s)t.markElementAsRemoved(this.id,r,!1,e);else{const u=r[hr];(!u||u===cD)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){pr(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const s=t.player;if(s.destroyed)return;const u=t.element,d=this._elementListeners.get(u);d&&d.forEach(l=>{if(l.name==t.triggerName){const n=y0(u,t.triggerName,t.fromState.value,t.toState.value);n._data=r,C0(t.player,l.phase,n,l.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(t)}),this._queue=[],e.sort((t,s)=>{const u=t.transition.ast.depCount,d=s.transition.ast.depCount;return 0==u||0==d?u-d:this._engine.driver.containsElement(t.element,s.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class zV{constructor(r,e,t){this.bodyNode=r,this.driver=e,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=(s,u)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new qV(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList,s=this.namespacesByHostElement;if(t.length-1>=0){let d=!1,l=this.driver.getParentElement(e);for(;l;){const n=s.get(l);if(n){const i=t.indexOf(n);t.splice(i+1,0,r),d=!0;break}l=this.driver.getParentElement(l)}d||t.unshift(r)}else t.push(r);return s.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let s=this._namespaceLookup[r];s&&s.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const s=this._namespaceList.indexOf(t);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t)for(let s of t.values())if(s.namespaceId){const u=this._fetchNamespace(s.namespaceId);u&&e.add(u)}return e}trigger(r,e,t,s){if(qb(e)){const u=this._fetchNamespace(r);if(u)return u.trigger(e,t,s),!0}return!1}insertNode(r,e,t,s){if(!qb(e))return;const u=e[hr];if(u&&u.setForRemoval){u.setForRemoval=!1,u.setForMove=!0;const d=this.collectedLeaveElements.indexOf(e);d>=0&&this.collectedLeaveElements.splice(d,1)}if(r){const d=this._fetchNamespace(r);d&&d.insertNode(e,t)}s&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),pr(r,O0)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Qd(r,O0))}removeNode(r,e,t,s){if(qb(e)){const u=r?this._fetchNamespace(r):null;if(u?u.removeNode(e,s):this.markElementAsRemoved(r,e,!1,s),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==r&&d.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(r,e,t,s,u){this.collectedLeaveElements.push(e),e[hr]={namespaceId:r,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:u}}listen(r,e,t,s,u){return qb(e)?this._fetchNamespace(r).listen(e,t,s,u):()=>{}}_buildInstruction(r,e,t,s,u){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,s,r.fromState.options,r.toState.options,e,u)}destroyInnerAnimations(r){let e=this.driver.query(r,Rb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,T0,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return bs(this.players).onDone(()=>r());r()})}processLeaveNode(r){const e=r[hr];if(e&&e.setForRemoval){if(r[hr]=cD,e.namespaceId){this.destroyInnerAnimations(r);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(r)}this._onRemovalComplete(r,e.setForRemoval)}r.classList?.contains(O0)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,s)=>this._balanceNamespaceList(t,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?bs(e).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(r){throw function zB(o){return new _.vHH(3402,!1)}()}_flushAnimations(r,e){const t=new Fb,s=[],u=new Map,d=[],l=new Map,n=new Map,i=new Map,a=new Set;this.disabledNodes.forEach(We=>{a.add(We);const et=this.driver.query(We,".ng-animate-queued",!0);for(let rt=0;rt{const rt=S0+p++;m.set(et,rt),We.forEach(vt=>pr(vt,rt))});const w=[],R=new Set,J=new Set;for(let We=0;WeR.add(vt)):J.add(et))}const Te=new Map,nt=hD(h,Array.from(R));nt.forEach((We,et)=>{const rt=Db+p++;Te.set(et,rt),We.forEach(vt=>pr(vt,rt))}),r.push(()=>{f.forEach((We,et)=>{const rt=m.get(et);We.forEach(vt=>Qd(vt,rt))}),nt.forEach((We,et)=>{const rt=Te.get(et);We.forEach(vt=>Qd(vt,rt))}),w.forEach(We=>{this.processLeaveNode(We)})});const Ai=[],ii=[];for(let We=this._namespaceList.length-1;We>=0;We--)this._namespaceList[We].drainQueuedTransitions(e).forEach(rt=>{const vt=rt.player,Fi=rt.element;if(Ai.push(vt),this.collectedEnterElements.length){const rn=Fi[hr];if(rn&&rn.setForMove){if(rn.previousTriggersValues&&rn.previousTriggersValues.has(rt.triggerName)){const Gl=rn.previousTriggersValues.get(rt.triggerName),mr=this.statesByElement.get(rt.element);if(mr&&mr.has(rt.triggerName)){const Wb=mr.get(rt.triggerName);Wb.value=Gl,mr.set(rt.triggerName,Wb)}}return void vt.destroy()}}const fa=!c||!this.driver.containsElement(c,Fi),Un=Te.get(Fi),ys=m.get(Fi),li=this._buildInstruction(rt,t,ys,Un,fa);if(li.errors&&li.errors.length)return void ii.push(li);if(fa)return vt.onStart(()=>Nl(Fi,li.fromStyles)),vt.onDestroy(()=>pa(Fi,li.toStyles)),void s.push(vt);if(rt.isFallbackTransition)return vt.onStart(()=>Nl(Fi,li.fromStyles)),vt.onDestroy(()=>pa(Fi,li.toStyles)),void s.push(vt);const xD=[];li.timelines.forEach(rn=>{rn.stretchStartingKeyframe=!0,this.disabledNodes.has(rn.element)||xD.push(rn)}),li.timelines=xD,t.append(Fi,li.timelines),d.push({instruction:li,player:vt,element:Fi}),li.queriedElements.forEach(rn=>jn(l,rn,[]).push(vt)),li.preStyleProps.forEach((rn,Gl)=>{if(rn.size){let mr=n.get(Gl);mr||n.set(Gl,mr=new Set),rn.forEach((Wb,q0)=>mr.add(q0))}}),li.postStyleProps.forEach((rn,Gl)=>{let mr=i.get(Gl);mr||i.set(Gl,mr=new Set),rn.forEach((Wb,q0)=>mr.add(q0))})});if(ii.length){const We=[];ii.forEach(et=>{We.push(function GB(o,r){return new _.vHH(3505,!1)}())}),Ai.forEach(et=>et.destroy()),this.reportError(We)}const hi=new Map,un=new Map;d.forEach(We=>{const et=We.element;t.has(et)&&(un.set(et,et),this._beforeAnimationBuild(We.player.namespaceId,We.instruction,hi))}),s.forEach(We=>{const et=We.element;this._getPreviousPlayers(et,!1,We.namespaceId,We.triggerName,null).forEach(vt=>{jn(hi,et,[]).push(vt),vt.destroy()})});const fr=w.filter(We=>fD(We,n,i)),lo=new Map;uD(lo,this.driver,J,i,Dr).forEach(We=>{fD(We,n,i)&&fr.push(We)});const Wp=new Map;f.forEach((We,et)=>{uD(Wp,this.driver,new Set(We),n,"!")}),fr.forEach(We=>{const et=lo.get(We),rt=Wp.get(We);lo.set(We,new Map([...Array.from(et?.entries()??[]),...Array.from(rt?.entries()??[])]))});const zl=[],vD=[],AD={};d.forEach(We=>{const{element:et,player:rt,instruction:vt}=We;if(t.has(et)){if(a.has(et))return rt.onDestroy(()=>pa(et,vt.toStyles)),rt.disabled=!0,rt.overrideTotalTime(vt.totalTime),void s.push(rt);let Fi=AD;if(un.size>1){let Un=et;const ys=[];for(;Un=Un.parentNode;){const li=un.get(Un);if(li){Fi=li;break}ys.push(Un)}ys.forEach(li=>un.set(li,Fi))}const fa=this._buildAnimation(rt.namespaceId,vt,hi,u,Wp,lo);if(rt.setRealPlayer(fa),Fi===AD)zl.push(rt);else{const Un=this.playersByElement.get(Fi);Un&&Un.length&&(rt.parentPlayer=bs(Un)),s.push(rt)}}else Nl(et,vt.fromStyles),rt.onDestroy(()=>pa(et,vt.toStyles)),vD.push(rt),a.has(et)&&s.push(rt)}),vD.forEach(We=>{const et=u.get(We.element);if(et&&et.length){const rt=bs(et);We.setRealPlayer(rt)}}),s.forEach(We=>{We.parentPlayer?We.syncPlayerEvents(We.parentPlayer):We.destroy()});for(let We=0;We!fa.destroyed);Fi.length?QV(this,et,Fi):this.processLeaveNode(et)}return w.length=0,zl.forEach(We=>{this.players.push(We),We.onDone(()=>{We.destroy();const et=this.players.indexOf(We);this.players.splice(et,1)}),We.play()}),zl}elementContainsData(r,e){let t=!1;const s=e[hr];return s&&s.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,s,u){let d=[];if(e){const l=this.playersByQueriedElement.get(r);l&&(d=l)}else{const l=this.playersByElement.get(r);if(l){const n=!u||u==Gp;l.forEach(i=>{i.queued||!n&&i.triggerName!=s||d.push(i)})}}return(t||s)&&(d=d.filter(l=>!(t&&t!=l.namespaceId||s&&s!=l.triggerName))),d}_beforeAnimationBuild(r,e,t){const u=e.element,d=e.isRemovalTransition?void 0:r,l=e.isRemovalTransition?void 0:e.triggerName;for(const n of e.timelines){const i=n.element,a=i!==u,c=jn(t,i,[]);this._getPreviousPlayers(i,a,d,l,e.toState).forEach(f=>{const m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),c.push(f)})}Nl(u,e.fromStyles)}_buildAnimation(r,e,t,s,u,d){const l=e.triggerName,n=e.element,i=[],a=new Set,c=new Set,h=e.timelines.map(m=>{const p=m.element;a.add(p);const w=p[hr];if(w&&w.removedBeforeQueried)return new Bn(m.duration,m.delay);const R=p!==n,J=function YV(o){const r=[];return pD(o,r),r}((t.get(p)||UV).map(hi=>hi.getRealPlayer())).filter(hi=>!!hi.element&&hi.element===p),Te=u.get(p),nt=d.get(p),Ai=jM(0,this._normalizer,0,m.keyframes,Te,nt),ii=this._buildPlayer(m,Ai,J);if(m.subTimeline&&s&&c.add(p),R){const hi=new F0(r,l,p);hi.setRealPlayer(ii),i.push(hi)}return ii});i.forEach(m=>{jn(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function GV(o,r,e){let t=o.get(r);if(t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&o.delete(r)}return t}(this.playersByQueriedElement,m.element,m))}),a.forEach(m=>pr(m,QM));const f=bs(h);return f.onDestroy(()=>{a.forEach(m=>Qd(m,QM)),pa(n,e.toStyles)}),c.forEach(m=>{jn(s,m,[]).push(f)}),f}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new Bn(r.duration,r.delay)}}class F0{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new Bn,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,t)=>{e.forEach(s=>C0(r,t,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){jn(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function qb(o){return o&&1===o.nodeType}function dD(o,r){const e=o.style.display;return o.style.display=r??"none",e}function uD(o,r,e,t,s){const u=[];e.forEach(n=>u.push(dD(n)));const d=[];t.forEach((n,i)=>{const a=new Map;n.forEach(c=>{const h=r.computeStyle(i,c,s);a.set(c,h),(!h||0==h.length)&&(i[hr]=NV,d.push(i))}),o.set(i,a)});let l=0;return e.forEach(n=>dD(n,u[l++])),d}function hD(o,r){const e=new Map;if(o.forEach(l=>e.set(l,[])),0==r.length)return e;const s=new Set(r),u=new Map;function d(l){if(!l)return 1;let n=u.get(l);if(n)return n;const i=l.parentNode;return n=e.has(i)?i:s.has(i)?1:d(i),u.set(l,n),n}return r.forEach(l=>{const n=d(l);1!==n&&e.get(n).push(l)}),e}function pr(o,r){o.classList?.add(r)}function Qd(o,r){o.classList?.remove(r)}function QV(o,r,e){bs(e).onDone(()=>o.processLeaveNode(r))}function pD(o,r){for(let e=0;es.add(u)):r.set(o,t),e.delete(o),!0}class zb{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,u)=>{},this._transitionEngine=new zV(r,e,t),this._timelineEngine=new VV(r,e,t),this._transitionEngine.onRemovalComplete=(s,u)=>this.onRemovalComplete(s,u)}registerTrigger(r,e,t,s,u){const d=r+"-"+s;let l=this._triggerCache[d];if(!l){const n=[],a=H0(this._driver,u,n,[]);if(n.length)throw function kB(o,r){return new _.vHH(3404,!1)}();l=function PV(o,r,e){return new IV(o,r,e)}(s,a,this._normalizer),this._triggerCache[d]=l}this._transitionEngine.registerTrigger(e,s,l)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,s){this._transitionEngine.insertNode(r,e,t,s)}onRemove(r,e,t,s){this._transitionEngine.removeNode(r,e,s||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,s){if("@"==t.charAt(0)){const[u,d]=FM(t);this._timelineEngine.command(u,e,d,s)}else this._transitionEngine.trigger(r,e,t,s)}listen(r,e,t,s,u){if("@"==t.charAt(0)){const[d,l]=FM(t);return this._timelineEngine.listen(d,e,l,u)}return this._transitionEngine.listen(r,e,t,s,u)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ZV=(()=>{class o{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let u=o.initialStylesByElement.get(e);u||o.initialStylesByElement.set(e,u=new Map),this._initialStyles=u}start(){this._state<1&&(this._startStyles&&pa(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(pa(this._element,this._initialStyles),this._endStyles&&(pa(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(o.initialStylesByElement.delete(this._element),this._startStyles&&(Nl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Nl(this._element,this._endStyles),this._endStyles=null),pa(this._element,this._initialStyles),this._state=3)}}return o.initialStylesByElement=new WeakMap,o})();function U0(o){let r=null;return o.forEach((e,t)=>{(function XV(o){return"display"===o||"position"===o})(t)&&(r=r||new Map,r.set(t,e))}),r}class mD{constructor(r,e,t,s){this.element=r,this.keyframes=e,this.options=t,this._specialStyles=s,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(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(r,e,t){return r.animate(this._convertKeyframesToObject(e),t)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,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(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,s)=>{"offset"!==s&&r.set(s,this._finished?t:eD(this.element,s))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class eO{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return zM(r,e)}getParentElement(r){return A0(r)}query(r,e,t){return GM(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,s,u,d=[]){const n={duration:t,delay:s,fill:0==s?"both":"forwards"};u&&(n.easing=u);const i=new Map,a=d.filter(f=>f instanceof mD);(function rV(o,r){return 0===o||0===r})(t,s)&&a.forEach(f=>{f.currentSnapshot.forEach((m,p)=>i.set(p,m))});let c=function eV(o){return o.length?o[0]instanceof Map?o:o.map(r=>YM(r)):[]}(e).map(f=>ws(f));c=function aV(o,r,e){if(e.size&&r.length){let t=r[0],s=[];if(e.forEach((u,d)=>{t.has(d)||s.push(d),t.set(d,u)}),s.length)for(let u=1;ud.set(l,eD(o,l)))}}return r}(r,c,i);const h=function KV(o,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=U0(r[0]),r.length>1&&(t=U0(r[r.length-1]))):r instanceof Map&&(e=U0(r)),e||t?new ZV(o,e,t):null}(r,c);return new mD(r,c,n,h)}}let tO=(()=>{class o extends ig{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:_.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?dl(e):e;return gD(this._renderer,null,t,"register",[s]),new iO(t,this._renderer)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.FYo),_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class iO extends class by{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new nO(this._id,r,e||{},this._renderer)}}class nO{constructor(r,e,t,s){this.id=r,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return gD(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function gD(o,r,e,t,s){return o.setProperty(r,`@@${e}:${t}`,s)}const _D="@.disabled";let rO=(()=>{class o{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(u,d)=>{const l=d?.parentNode(u);l&&d.removeChild(l,u)}}createRenderer(e,t){const u=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let a=this._rendererCache.get(u);return a||(a=new bD("",u,this.engine),this._rendererCache.set(u,a)),a}const d=t.id,l=t.id+"-"+this._currentId;this._currentId++,this.engine.register(l,e);const n=a=>{Array.isArray(a)?a.forEach(n):this.engine.registerTrigger(d,l,e,a.name,a)};return t.data.animation.forEach(n),new aO(this,l,u,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){e>=0&&et(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(u=>{const[d,l]=u;d(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.FYo),_.LFG(zb),_.LFG(_.R0b))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class bD{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,s=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,s)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,s){this.delegate.setAttribute(r,e,t,s)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,s){this.delegate.setStyle(r,e,t,s)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==_D?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class aO extends bD{constructor(r,e,t,s){super(e,t,s),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==_D?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.slice(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const s=function oO(o){switch(o){case"body":return document.body;case"document":return document;case"window":return window;default:return o}}(r);let u=e.slice(1),d="";return"@"!=u.charAt(0)&&([u,d]=function sO(o){const r=o.indexOf(".");return[o.substring(0,r),o.slice(r+1)]}(u)),this.engine.listen(this.namespaceId,s,u,d,l=>{this.factory.scheduleListenerCallback(l._data||-1,t,l)})}return this.delegate.listen(r,e,t)}}const CD=[{provide:ig,useClass:tO},{provide:B0,useFactory:function cO(){return new MV}},{provide:zb,useClass:(()=>{class o extends zb{constructor(e,t,s,u){super(e.body,t,s)}ngOnDestroy(){this.flush()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0),_.LFG(x0),_.LFG(B0),_.LFG(_.z2F))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})()},{provide:_.FYo,useFactory:function dO(o,r,e){return new rO(o,r,e)},deps:[pe,zb,_.R0b]}],N0=[{provide:x0,useFactory:()=>new eO},{provide:_.QbO,useValue:"BrowserAnimations"},...CD],wD=[{provide:x0,useClass:WM},{provide:_.QbO,useValue:"NoopAnimations"},...CD];let uO=(()=>{class o{static withConfig(e){return{ngModule:o,providers:e.disableAnimations?wD:N0}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:N0,imports:[_a]}),o})();const hO={provide:v.TP,useExisting:(0,_.Gpc)(()=>fs),multi:!0};function pO(o){return new TH(o,"./assets/i18n/",".json")}function fO(o){const r={basePath:o.getProperty("api_url")};return new st(r)}const mO=o=>()=>o.loadConfigs();let gO=(()=>{class o{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(nA),_.LFG(sa))},o.\u0275mod=_.oAB({type:o,bootstrap:[Oo]}),o.\u0275inj=_.cJS({providers:[nA,{provide:_.ip1,useFactory:mO,multi:!0,deps:[HH]},{provide:st,useFactory:fO,deps:[On]},fs,hO,{provide:RH,useClass:rp},{provide:Qr.Hy,useFactory:()=>localStorage}],imports:[_a,uO,v.JF,Xv,SH,s0,cB,aa,RM,l0,Ig,uB,Qr.zr.forRoot(),hB,lr.forRoot({loader:{provide:cs,useFactory:pO,deps:[v.eN]}})]}),o})();(0,_.G48)(),Ke().bootstrapModule(gO).catch(o=>console.error(o))},1302:function(N,z,E){var M;!function(_,L){var F={};!function(_){"use strict";_.__esModule=!0,_.digestLength=32,_.blockSize=64;var L=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function F(oe,ie,ae,he,fe){for(var be,Le,Fe,Ae,Ce,xe,Je,Pe,Re,He,le,ce,ge;fe>=64;){for(be=ie[0],Le=ie[1],Fe=ie[2],Ae=ie[3],Ce=ie[4],xe=ie[5],Je=ie[6],Pe=ie[7],He=0;He<16;He++)oe[He]=(255&ae[le=he+4*He])<<24|(255&ae[le+1])<<16|(255&ae[le+2])<<8|255&ae[le+3];for(He=16;He<64;He++)oe[He]=((ce=((Re=oe[He-2])>>>17|Re<<15)^(Re>>>19|Re<<13)^Re>>>10)+oe[He-7]|0)+((ge=((Re=oe[He-15])>>>7|Re<<25)^(Re>>>18|Re<<14)^Re>>>3)+oe[He-16]|0);for(He=0;He<64;He++)ce=(((Ce>>>6|Ce<<26)^(Ce>>>11|Ce<<21)^(Ce>>>25|Ce<<7))+(Ce&xe^~Ce&Je)|0)+(Pe+(L[He]+oe[He]|0)|0)|0,ge=((be>>>2|be<<30)^(be>>>13|be<<19)^(be>>>22|be<<10))+(be&Le^be&Fe^Le&Fe)|0,Pe=Je,Je=xe,xe=Ce,Ce=Ae+ce|0,Ae=Fe,Fe=Le,Le=be,be=ce+ge|0;ie[0]+=be,ie[1]+=Le,ie[2]+=Fe,ie[3]+=Ae,ie[4]+=Ce,ie[5]+=xe,ie[6]+=Je,ie[7]+=Pe,he+=64,fe-=64}return he}var V=function(){function oe(){this.digestLength=_.digestLength,this.blockSize=_.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return oe.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},oe.prototype.clean=function(){for(var ie=0;ie0){for(;this.bufferLength<64&&ae>0;)this.buffer[this.bufferLength++]=ie[he++],ae--;64===this.bufferLength&&(F(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ae>=64&&(he=F(this.temp,this.state,ie,he,ae),ae%=64);ae>0;)this.buffer[this.bufferLength++]=ie[he++],ae--;return this},oe.prototype.finish=function(ie){if(!this.finished){var ae=this.bytesHashed,he=this.bufferLength,fe=ae/536870912|0,be=ae<<3,Le=ae%64<56?64:128;this.buffer[he]=128;for(var Fe=he+1;Fe>>24&255,this.buffer[Le-7]=fe>>>16&255,this.buffer[Le-6]=fe>>>8&255,this.buffer[Le-5]=fe>>>0&255,this.buffer[Le-4]=be>>>24&255,this.buffer[Le-3]=be>>>16&255,this.buffer[Le-2]=be>>>8&255,this.buffer[Le-1]=be>>>0&255,F(this.temp,this.state,this.buffer,0,Le),this.finished=!0}for(Fe=0;Fe<8;Fe++)ie[4*Fe+0]=this.state[Fe]>>>24&255,ie[4*Fe+1]=this.state[Fe]>>>16&255,ie[4*Fe+2]=this.state[Fe]>>>8&255,ie[4*Fe+3]=this.state[Fe]>>>0&255;return this},oe.prototype.digest=function(){var ie=new Uint8Array(this.digestLength);return this.finish(ie),ie},oe.prototype._saveState=function(ie){for(var ae=0;aethis.blockSize)(new V).update(ie).finish(ae).clean();else for(var he=0;he1&&ie.update(oe),ae&&ie.update(ae),ie.update(he),ie.finish(oe),he[0]++}_.HMAC=q,_.hash=Q,_.default=Q,_.hmac=ee;var Y=new Uint8Array(_.digestLength);_.hkdf=function G(oe,ie,ae,he){void 0===ie&&(ie=Y),void 0===he&&(he=32);for(var fe=new Uint8Array([1]),be=ee(ie,oe),Le=new q(be),Fe=new Uint8Array(Le.digestLength),Ae=Fe.length,Ce=new Uint8Array(he),xe=0;xe>>24&255,Le[1]=Je>>>16&255,Le[2]=Je>>>8&255,Le[3]=Je>>>0&255,fe.reset(),fe.update(ie),fe.update(Le),fe.finish(Ae);for(var Pe=0;Pe=G.status}function q(Y){try{Y.dispatchEvent(new MouseEvent("click"))}catch{var G=document.createEvent("MouseEvents");G.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Y.dispatchEvent(G)}}var Q="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,ee=Q.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),W=Q.saveAs||("object"!=typeof window||window!==Q?function(){}:"download"in HTMLAnchorElement.prototype&&!ee?function(Y,G,re){var oe=Q.URL||Q.webkitURL,ie=document.createElement("a");ie.download=G=G||Y.name||"download",ie.rel="noopener","string"==typeof Y?(ie.href=Y,ie.origin===location.origin?q(ie):V(ie.href)?F(Y,G,re):q(ie,ie.target="_blank")):(ie.href=oe.createObjectURL(Y),setTimeout(function(){oe.revokeObjectURL(ie.href)},4e4),setTimeout(function(){q(ie)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,G,re){if(G=G||Y.name||"download","string"!=typeof Y)navigator.msSaveOrOpenBlob(function L(Y,G){return typeof G>"u"?G={autoBom:!1}:"object"!=typeof G&&(console.warn("Deprecated: Expected third argument to be a object"),G={autoBom:!G}),G.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Y.type)?new Blob(["\ufeff",Y],{type:Y.type}):Y}(Y,re),G);else if(V(Y))F(Y,G,re);else{var oe=document.createElement("a");oe.href=Y,oe.target="_blank",setTimeout(function(){q(oe)})}}:function(Y,G,re,oe){if((oe=oe||open("","_blank"))&&(oe.document.title=oe.document.body.innerText="downloading..."),"string"==typeof Y)return F(Y,G,re);var ie="application/octet-stream"===Y.type,ae=/constructor/i.test(Q.HTMLElement)||Q.safari,he=/CriOS\/[\d]+/.test(navigator.userAgent);if((he||ie&&ae||ee)&&typeof FileReader<"u"){var fe=new FileReader;fe.onloadend=function(){var Fe=fe.result;Fe=he?Fe:Fe.replace(/^data:[^;]*;/,"data:attachment/file;"),oe?oe.location.href=Fe:location=Fe,oe=null},fe.readAsDataURL(Y)}else{var be=Q.URL||Q.webkitURL,Le=be.createObjectURL(Y);oe?oe.location=Le:location.href=Le,oe=null,setTimeout(function(){be.revokeObjectURL(Le)},4e4)}});Q.saveAs=W.saveAs=W,N.exports=W}.apply(z,[]))&&(N.exports=_)},9751:(N,z,E)=>{"use strict";E.d(z,{y:()=>ee});var M=E(930),_=E(727),L=E(8822),F=E(9635),V=E(2416),q=E(576),Q=E(2806);let ee=(()=>{class re{constructor(ie){ie&&(this._subscribe=ie)}lift(ie){const ae=new re;return ae.source=this,ae.operator=ie,ae}subscribe(ie,ae,he){const fe=function G(re){return re&&re instanceof M.Lv||function Y(re){return re&&(0,q.m)(re.next)&&(0,q.m)(re.error)&&(0,q.m)(re.complete)}(re)&&(0,_.Nn)(re)}(ie)?ie:new M.Hp(ie,ae,he);return(0,Q.x)(()=>{const{operator:be,source:Le}=this;fe.add(be?be.call(fe,Le):Le?this._subscribe(fe):this._trySubscribe(fe))}),fe}_trySubscribe(ie){try{return this._subscribe(ie)}catch(ae){ie.error(ae)}}forEach(ie,ae){return new(ae=W(ae))((he,fe)=>{const be=new M.Hp({next:Le=>{try{ie(Le)}catch(Fe){fe(Fe),be.unsubscribe()}},error:fe,complete:he});this.subscribe(be)})}_subscribe(ie){var ae;return null===(ae=this.source)||void 0===ae?void 0:ae.subscribe(ie)}[L.L](){return this}pipe(...ie){return(0,F.U)(ie)(this)}toPromise(ie){return new(ie=W(ie))((ae,he)=>{let fe;this.subscribe(be=>fe=be,be=>he(be),()=>ae(fe))})}}return re.create=oe=>new re(oe),re})();function W(re){var oe;return null!==(oe=re??V.v.Promise)&&void 0!==oe?oe:Promise}},7579:(N,z,E)=>{"use strict";E.d(z,{x:()=>Q});var M=E(9751),_=E(727);const F=(0,E(3888).d)(W=>function(){W(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var V=E(8737),q=E(2806);let Q=(()=>{class W extends M.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const re=new ee(this,this);return re.operator=G,re}_throwIfClosed(){if(this.closed)throw new F}next(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const re of this.currentObservers)re.next(G)}})}error(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:re}=this;for(;re.length;)re.shift().error(G)}})}complete(){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:G}=this;for(;G.length;)G.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var G;return(null===(G=this.observers)||void 0===G?void 0:G.length)>0}_trySubscribe(G){return this._throwIfClosed(),super._trySubscribe(G)}_subscribe(G){return this._throwIfClosed(),this._checkFinalizedStatuses(G),this._innerSubscribe(G)}_innerSubscribe(G){const{hasError:re,isStopped:oe,observers:ie}=this;return re||oe?_.Lc:(this.currentObservers=null,ie.push(G),new _.w0(()=>{this.currentObservers=null,(0,V.P)(ie,G)}))}_checkFinalizedStatuses(G){const{hasError:re,thrownError:oe,isStopped:ie}=this;re?G.error(oe):ie&&G.complete()}asObservable(){const G=new M.y;return G.source=this,G}}return W.create=(Y,G)=>new ee(Y,G),W})();class ee extends Q{constructor(Y,G){super(),this.destination=Y,this.source=G}next(Y){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===re||re.call(G,Y)}error(Y){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===re||re.call(G,Y)}complete(){var Y,G;null===(G=null===(Y=this.destination)||void 0===Y?void 0:Y.complete)||void 0===G||G.call(Y)}_subscribe(Y){var G,re;return null!==(re=null===(G=this.source)||void 0===G?void 0:G.subscribe(Y))&&void 0!==re?re:_.Lc}}},930:(N,z,E)=>{"use strict";E.d(z,{Hp:()=>he,Lv:()=>re});var M=E(576),_=E(727),L=E(2416),F=E(7849),V=E(5032);const q=W("C",void 0,void 0);function W(Ae,Ce,xe){return{kind:Ae,value:Ce,error:xe}}var Y=E(3410),G=E(2806);class re extends _.w0{constructor(Ce){super(),this.isStopped=!1,Ce?(this.destination=Ce,(0,_.Nn)(Ce)&&Ce.add(this)):this.destination=Fe}static create(Ce,xe,Je){return new he(Ce,xe,Je)}next(Ce){this.isStopped?Le(function ee(Ae){return W("N",Ae,void 0)}(Ce),this):this._next(Ce)}error(Ce){this.isStopped?Le(function Q(Ae){return W("E",void 0,Ae)}(Ce),this):(this.isStopped=!0,this._error(Ce))}complete(){this.isStopped?Le(q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ce){this.destination.next(Ce)}_error(Ce){try{this.destination.error(Ce)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const oe=Function.prototype.bind;function ie(Ae,Ce){return oe.call(Ae,Ce)}class ae{constructor(Ce){this.partialObserver=Ce}next(Ce){const{partialObserver:xe}=this;if(xe.next)try{xe.next(Ce)}catch(Je){fe(Je)}}error(Ce){const{partialObserver:xe}=this;if(xe.error)try{xe.error(Ce)}catch(Je){fe(Je)}else fe(Ce)}complete(){const{partialObserver:Ce}=this;if(Ce.complete)try{Ce.complete()}catch(xe){fe(xe)}}}class he extends re{constructor(Ce,xe,Je){let Pe;if(super(),(0,M.m)(Ce)||!Ce)Pe={next:Ce??void 0,error:xe??void 0,complete:Je??void 0};else{let Re;this&&L.v.useDeprecatedNextContext?(Re=Object.create(Ce),Re.unsubscribe=()=>this.unsubscribe(),Pe={next:Ce.next&&ie(Ce.next,Re),error:Ce.error&&ie(Ce.error,Re),complete:Ce.complete&&ie(Ce.complete,Re)}):Pe=Ce}this.destination=new ae(Pe)}}function fe(Ae){L.v.useDeprecatedSynchronousErrorHandling?(0,G.O)(Ae):(0,F.h)(Ae)}function Le(Ae,Ce){const{onStoppedNotification:xe}=L.v;xe&&Y.z.setTimeout(()=>xe(Ae,Ce))}const Fe={closed:!0,next:V.Z,error:function be(Ae){throw Ae},complete:V.Z}},727:(N,z,E)=>{"use strict";E.d(z,{Lc:()=>q,w0:()=>V,Nn:()=>Q});var M=E(576);const L=(0,E(3888).d)(W=>function(G){W(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((re,oe)=>`${oe+1}) ${re.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var F=E(8737);class V{constructor(Y){this.initialTeardown=Y,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Y;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const ie of G)ie.remove(this);else G.remove(this);const{initialTeardown:re}=this;if((0,M.m)(re))try{re()}catch(ie){Y=ie instanceof L?ie.errors:[ie]}const{_finalizers:oe}=this;if(oe){this._finalizers=null;for(const ie of oe)try{ee(ie)}catch(ae){Y=Y??[],ae instanceof L?Y=[...Y,...ae.errors]:Y.push(ae)}}if(Y)throw new L(Y)}}add(Y){var G;if(Y&&Y!==this)if(this.closed)ee(Y);else{if(Y instanceof V){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push(Y)}}_hasParent(Y){const{_parentage:G}=this;return G===Y||Array.isArray(G)&&G.includes(Y)}_addParent(Y){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push(Y),G):G?[G,Y]:Y}_removeParent(Y){const{_parentage:G}=this;G===Y?this._parentage=null:Array.isArray(G)&&(0,F.P)(G,Y)}remove(Y){const{_finalizers:G}=this;G&&(0,F.P)(G,Y),Y instanceof V&&Y._removeParent(this)}}V.EMPTY=(()=>{const W=new V;return W.closed=!0,W})();const q=V.EMPTY;function Q(W){return W instanceof V||W&&"closed"in W&&(0,M.m)(W.remove)&&(0,M.m)(W.add)&&(0,M.m)(W.unsubscribe)}function ee(W){(0,M.m)(W)?W():W.unsubscribe()}},2416:(N,z,E)=>{"use strict";E.d(z,{v:()=>M});const M={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(N,z,E)=>{"use strict";E.d(z,{a:()=>Y});var M=E(9751),_=E(4742),L=E(2076),F=E(4671),V=E(3268),q=E(3269),Q=E(1810),ee=E(5403),W=E(9672);function Y(...oe){const ie=(0,q.yG)(oe),ae=(0,q.jO)(oe),{args:he,keys:fe}=(0,_.D)(oe);if(0===he.length)return(0,L.D)([],ie);const be=new M.y(function G(oe,ie,ae=F.y){return he=>{re(ie,()=>{const{length:fe}=oe,be=new Array(fe);let Le=fe,Fe=fe;for(let Ae=0;Ae{const Ce=(0,L.D)(oe[Ae],ie);let xe=!1;Ce.subscribe((0,ee.x)(he,Je=>{be[Ae]=Je,xe||(xe=!0,Fe--),Fe||he.next(ae(be.slice()))},()=>{--Le||he.complete()}))},he)},he)}}(he,ie,fe?Le=>(0,Q.n)(fe,Le):F.y));return ae?be.pipe((0,V.Z)(ae)):be}function re(oe,ie,ae){oe?(0,W.f)(ae,oe,ie):ie()}},7272:(N,z,E)=>{"use strict";E.d(z,{z:()=>V});var M=E(8189),L=E(3269),F=E(2076);function V(...q){return function _(){return(0,M.J)(1)}()((0,F.D)(q,(0,L.yG)(q)))}},515:(N,z,E)=>{"use strict";E.d(z,{E:()=>_});const _=new(E(9751).y)(V=>V.complete())},2076:(N,z,E)=>{"use strict";E.d(z,{D:()=>Je});var M=E(8421),_=E(9672),L=E(4482),F=E(5403);function V(Pe,Re=0){return(0,L.e)((He,le)=>{He.subscribe((0,F.x)(le,ce=>(0,_.f)(le,Pe,()=>le.next(ce),Re),()=>(0,_.f)(le,Pe,()=>le.complete(),Re),ce=>(0,_.f)(le,Pe,()=>le.error(ce),Re)))})}function q(Pe,Re=0){return(0,L.e)((He,le)=>{le.add(Pe.schedule(()=>He.subscribe(le),Re))})}var W=E(9751),G=E(2202),re=E(576);function ie(Pe,Re){if(!Pe)throw new Error("Iterable cannot be null");return new W.y(He=>{(0,_.f)(He,Re,()=>{const le=Pe[Symbol.asyncIterator]();(0,_.f)(He,Re,()=>{le.next().then(ce=>{ce.done?He.complete():He.next(ce.value)})},0,!0)})})}var ae=E(3670),he=E(8239),fe=E(1144),be=E(6495),Le=E(2206),Fe=E(4532),Ae=E(3260);function Je(Pe,Re){return Re?function xe(Pe,Re){if(null!=Pe){if((0,ae.c)(Pe))return function Q(Pe,Re){return(0,M.Xf)(Pe).pipe(q(Re),V(Re))}(Pe,Re);if((0,fe.z)(Pe))return function Y(Pe,Re){return new W.y(He=>{let le=0;return Re.schedule(function(){le===Pe.length?He.complete():(He.next(Pe[le++]),He.closed||this.schedule())})})}(Pe,Re);if((0,he.t)(Pe))return function ee(Pe,Re){return(0,M.Xf)(Pe).pipe(q(Re),V(Re))}(Pe,Re);if((0,Le.D)(Pe))return ie(Pe,Re);if((0,be.T)(Pe))return function oe(Pe,Re){return new W.y(He=>{let le;return(0,_.f)(He,Re,()=>{le=Pe[G.h](),(0,_.f)(He,Re,()=>{let ce,ge;try{({value:ce,done:ge}=le.next())}catch(pe){return void He.error(pe)}ge?He.complete():He.next(ce)},0,!0)}),()=>(0,re.m)(le?.return)&&le.return()})}(Pe,Re);if((0,Ae.L)(Pe))return function Ce(Pe,Re){return ie((0,Ae.Q)(Pe),Re)}(Pe,Re)}throw(0,Fe.z)(Pe)}(Pe,Re):(0,M.Xf)(Pe)}},8421:(N,z,E)=>{"use strict";E.d(z,{Xf:()=>oe});var M=E(655),_=E(1144),L=E(8239),F=E(9751),V=E(3670),q=E(2206),Q=E(4532),ee=E(6495),W=E(3260),Y=E(576),G=E(7849),re=E(8822);function oe(Ae){if(Ae instanceof F.y)return Ae;if(null!=Ae){if((0,V.c)(Ae))return function ie(Ae){return new F.y(Ce=>{const xe=Ae[re.L]();if((0,Y.m)(xe.subscribe))return xe.subscribe(Ce);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ae);if((0,_.z)(Ae))return function ae(Ae){return new F.y(Ce=>{for(let xe=0;xe{Ae.then(xe=>{Ce.closed||(Ce.next(xe),Ce.complete())},xe=>Ce.error(xe)).then(null,G.h)})}(Ae);if((0,q.D)(Ae))return be(Ae);if((0,ee.T)(Ae))return function fe(Ae){return new F.y(Ce=>{for(const xe of Ae)if(Ce.next(xe),Ce.closed)return;Ce.complete()})}(Ae);if((0,W.L)(Ae))return function Le(Ae){return be((0,W.Q)(Ae))}(Ae)}throw(0,Q.z)(Ae)}function be(Ae){return new F.y(Ce=>{(function Fe(Ae,Ce){var xe,Je,Pe,Re;return(0,M.mG)(this,void 0,void 0,function*(){try{for(xe=(0,M.KL)(Ae);!(Je=yield xe.next()).done;)if(Ce.next(Je.value),Ce.closed)return}catch(He){Pe={error:He}}finally{try{Je&&!Je.done&&(Re=xe.return)&&(yield Re.call(xe))}finally{if(Pe)throw Pe.error}}Ce.complete()})})(Ae,Ce).catch(xe=>Ce.error(xe))})}},6451:(N,z,E)=>{"use strict";E.d(z,{T:()=>q});var M=E(8189),_=E(8421),L=E(515),F=E(3269),V=E(2076);function q(...Q){const ee=(0,F.yG)(Q),W=(0,F._6)(Q,1/0),Y=Q;return Y.length?1===Y.length?(0,_.Xf)(Y[0]):(0,M.J)(W)((0,V.D)(Y,ee)):L.E}},9646:(N,z,E)=>{"use strict";E.d(z,{of:()=>L});var M=E(3269),_=E(2076);function L(...F){const V=(0,M.yG)(F);return(0,_.D)(F,V)}},102:(N,z,E)=>{"use strict";E.d(z,{S:()=>q});var M=E(9751),_=E(8421);const{isArray:L}=Array;var V=E(5403);function q(...ee){return 1===(ee=function F(ee){return 1===ee.length&&L(ee[0])?ee[0]:ee}(ee)).length?(0,_.Xf)(ee[0]):new M.y(function Q(ee){return W=>{let Y=[];for(let G=0;Y&&!W.closed&&G{if(Y){for(let oe=0;oe{"use strict";E.d(z,{_:()=>L});var M=E(9751),_=E(576);function L(F,V){const q=(0,_.m)(F)?F:()=>F,Q=ee=>ee.error(q());return new M.y(V?ee=>V.schedule(Q,0,ee):Q)}},2805:(N,z,E)=>{"use strict";E.d(z,{H:()=>V});var M=E(9751),_=E(4986),L=E(3532),F=E(1165);function V(q=0,Q,ee=_.P){let W=-1;return null!=Q&&((0,L.K)(Q)?ee=Q:W=Q),new M.y(Y=>{let G=(0,F.q)(q)?+q-ee.now():q;G<0&&(G=0);let re=0;return ee.schedule(function(){Y.closed||(Y.next(re++),0<=W?this.schedule(void 0,W):Y.complete())},G)})}},5403:(N,z,E)=>{"use strict";E.d(z,{x:()=>_});var M=E(930);function _(F,V,q,Q,ee){return new L(F,V,q,Q,ee)}class L extends M.Lv{constructor(V,q,Q,ee,W,Y){super(V),this.onFinalize=W,this.shouldUnsubscribe=Y,this._next=q?function(G){try{q(G)}catch(re){V.error(re)}}:super._next,this._error=ee?function(G){try{ee(G)}catch(re){V.error(re)}finally{this.unsubscribe()}}:super._error,this._complete=Q?function(){try{Q()}catch(G){V.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var V;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:q}=this;super.unsubscribe(),!q&&(null===(V=this.onFinalize)||void 0===V||V.call(this))}}}},262:(N,z,E)=>{"use strict";E.d(z,{K:()=>F});var M=E(8421),_=E(5403),L=E(4482);function F(V){return(0,L.e)((q,Q)=>{let Y,ee=null,W=!1;ee=q.subscribe((0,_.x)(Q,void 0,void 0,G=>{Y=(0,M.Xf)(V(G,F(V)(q))),ee?(ee.unsubscribe(),ee=null,Y.subscribe(Q)):W=!0})),W&&(ee.unsubscribe(),ee=null,Y.subscribe(Q))})}},4351:(N,z,E)=>{"use strict";E.d(z,{b:()=>L});var M=E(5577),_=E(576);function L(F,V){return(0,_.m)(V)?(0,M.z)(F,V,1):(0,M.z)(F,1)}},8372:(N,z,E)=>{"use strict";E.d(z,{b:()=>F});var M=E(4986),_=E(4482),L=E(5403);function F(V,q=M.z){return(0,_.e)((Q,ee)=>{let W=null,Y=null,G=null;const re=()=>{if(W){W.unsubscribe(),W=null;const ie=Y;Y=null,ee.next(ie)}};function oe(){const ie=G+V,ae=q.now();if(ae{Y=ie,G=q.now(),W||(W=q.schedule(oe,V),ee.add(W))},()=>{re(),ee.complete()},void 0,()=>{Y=W=null}))})}},6590:(N,z,E)=>{"use strict";E.d(z,{d:()=>L});var M=E(4482),_=E(5403);function L(F){return(0,M.e)((V,q)=>{let Q=!1;V.subscribe((0,_.x)(q,ee=>{Q=!0,q.next(ee)},()=>{Q||q.next(F),q.complete()}))})}},1005:(N,z,E)=>{"use strict";E.d(z,{g:()=>re});var M=E(4986),_=E(7272),L=E(5698),F=E(4482),V=E(5403),q=E(5032),ee=E(9718),W=E(5577);function Y(oe,ie){return ie?ae=>(0,_.z)(ie.pipe((0,L.q)(1),function Q(){return(0,F.e)((oe,ie)=>{oe.subscribe((0,V.x)(ie,q.Z))})}()),ae.pipe(Y(oe))):(0,W.z)((ae,he)=>oe(ae,he).pipe((0,L.q)(1),(0,ee.h)(ae)))}var G=E(2805);function re(oe,ie=M.z){const ae=(0,G.H)(oe,ie);return Y(()=>ae)}},9300:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(4482),_=E(5403);function L(F,V){return(0,M.e)((q,Q)=>{let ee=0;q.subscribe((0,_.x)(Q,W=>F.call(V,W,ee++)&&Q.next(W)))})}},590:(N,z,E)=>{"use strict";E.d(z,{P:()=>Q});var M=E(6805),_=E(9300),L=E(5698),F=E(6590),V=E(8068),q=E(4671);function Q(ee,W){const Y=arguments.length>=2;return G=>G.pipe(ee?(0,_.h)((re,oe)=>ee(re,oe,G)):q.y,(0,L.q)(1),Y?(0,F.d)(W):(0,V.T)(()=>new M.K))}},4004:(N,z,E)=>{"use strict";E.d(z,{U:()=>L});var M=E(4482),_=E(5403);function L(F,V){return(0,M.e)((q,Q)=>{let ee=0;q.subscribe((0,_.x)(Q,W=>{Q.next(F.call(V,W,ee++))}))})}},9718:(N,z,E)=>{"use strict";E.d(z,{h:()=>_});var M=E(4004);function _(L){return(0,M.U)(()=>L)}},8189:(N,z,E)=>{"use strict";E.d(z,{J:()=>L});var M=E(5577),_=E(4671);function L(F=1/0){return(0,M.z)(_.y,F)}},5577:(N,z,E)=>{"use strict";E.d(z,{z:()=>ee});var M=E(4004),_=E(8421),L=E(4482),F=E(9672),V=E(5403),Q=E(576);function ee(W,Y,G=1/0){return(0,Q.m)(Y)?ee((re,oe)=>(0,M.U)((ie,ae)=>Y(re,ie,oe,ae))((0,_.Xf)(W(re,oe))),G):("number"==typeof Y&&(G=Y),(0,L.e)((re,oe)=>function q(W,Y,G,re,oe,ie,ae,he){const fe=[];let be=0,Le=0,Fe=!1;const Ae=()=>{Fe&&!fe.length&&!be&&Y.complete()},Ce=Je=>be{ie&&Y.next(Je),be++;let Pe=!1;(0,_.Xf)(G(Je,Le++)).subscribe((0,V.x)(Y,Re=>{oe?.(Re),ie?Ce(Re):Y.next(Re)},()=>{Pe=!0},void 0,()=>{if(Pe)try{for(be--;fe.length&&bexe(Re)):xe(Re)}Ae()}catch(Re){Y.error(Re)}}))};return W.subscribe((0,V.x)(Y,Ce,()=>{Fe=!0,Ae()})),()=>{he?.()}}(re,oe,W,G)))}},3099:(N,z,E)=>{"use strict";E.d(z,{B:()=>V});var M=E(8421),_=E(7579),L=E(930),F=E(4482);function V(Q={}){const{connector:ee=(()=>new _.x),resetOnError:W=!0,resetOnComplete:Y=!0,resetOnRefCountZero:G=!0}=Q;return re=>{let oe,ie,ae,he=0,fe=!1,be=!1;const Le=()=>{ie?.unsubscribe(),ie=void 0},Fe=()=>{Le(),oe=ae=void 0,fe=be=!1},Ae=()=>{const Ce=oe;Fe(),Ce?.unsubscribe()};return(0,F.e)((Ce,xe)=>{he++,!be&&!fe&&Le();const Je=ae=ae??ee();xe.add(()=>{he--,0===he&&!be&&!fe&&(ie=q(Ae,G))}),Je.subscribe(xe),!oe&&he>0&&(oe=new L.Hp({next:Pe=>Je.next(Pe),error:Pe=>{be=!0,Le(),ie=q(Fe,W,Pe),Je.error(Pe)},complete:()=>{fe=!0,Le(),ie=q(Fe,Y),Je.complete()}}),(0,M.Xf)(Ce).subscribe(oe))})(re)}}function q(Q,ee,...W){if(!0===ee)return void Q();if(!1===ee)return;const Y=new L.Hp({next:()=>{Y.unsubscribe(),Q()}});return ee(...W).subscribe(Y)}},3900:(N,z,E)=>{"use strict";E.d(z,{w:()=>F});var M=E(8421),_=E(4482),L=E(5403);function F(V,q){return(0,_.e)((Q,ee)=>{let W=null,Y=0,G=!1;const re=()=>G&&!W&&ee.complete();Q.subscribe((0,L.x)(ee,oe=>{W?.unsubscribe();let ie=0;const ae=Y++;(0,M.Xf)(V(oe,ae)).subscribe(W=(0,L.x)(ee,he=>ee.next(q?q(oe,he,ae,ie++):he),()=>{W=null,re()}))},()=>{G=!0,re()}))})}},5698:(N,z,E)=>{"use strict";E.d(z,{q:()=>F});var M=E(515),_=E(4482),L=E(5403);function F(V){return V<=0?()=>M.E:(0,_.e)((q,Q)=>{let ee=0;q.subscribe((0,L.x)(Q,W=>{++ee<=V&&(Q.next(W),V<=ee&&Q.complete())}))})}},8505:(N,z,E)=>{"use strict";E.d(z,{b:()=>V});var M=E(576),_=E(4482),L=E(5403),F=E(4671);function V(q,Q,ee){const W=(0,M.m)(q)||Q||ee?{next:q,error:Q,complete:ee}:q;return W?(0,_.e)((Y,G)=>{var re;null===(re=W.subscribe)||void 0===re||re.call(W);let oe=!0;Y.subscribe((0,L.x)(G,ie=>{var ae;null===(ae=W.next)||void 0===ae||ae.call(W,ie),G.next(ie)},()=>{var ie;oe=!1,null===(ie=W.complete)||void 0===ie||ie.call(W),G.complete()},ie=>{var ae;oe=!1,null===(ae=W.error)||void 0===ae||ae.call(W,ie),G.error(ie)},()=>{var ie,ae;oe&&(null===(ie=W.unsubscribe)||void 0===ie||ie.call(W)),null===(ae=W.finalize)||void 0===ae||ae.call(W)}))}):F.y}},8068:(N,z,E)=>{"use strict";E.d(z,{T:()=>F});var M=E(6805),_=E(4482),L=E(5403);function F(q=V){return(0,_.e)((Q,ee)=>{let W=!1;Q.subscribe((0,L.x)(ee,Y=>{W=!0,ee.next(Y)},()=>W?ee.complete():ee.error(q())))})}function V(){return new M.K}},7414:(N,z,E)=>{"use strict";E.d(z,{V:()=>W});var M=E(4986),_=E(1165),L=E(4482),F=E(8421),V=E(3888),q=E(5403),Q=E(9672);const ee=(0,V.d)(G=>function(oe=null){G(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=oe});function W(G,re){const{first:oe,each:ie,with:ae=Y,scheduler:he=re??M.z,meta:fe=null}=(0,_.q)(G)?{first:G}:"number"==typeof G?{each:G}:G;if(null==oe&&null==ie)throw new TypeError("No timeout provided.");return(0,L.e)((be,Le)=>{let Fe,Ae,Ce=null,xe=0;const Je=Pe=>{Ae=(0,Q.f)(Le,he,()=>{try{Fe.unsubscribe(),(0,F.Xf)(ae({meta:fe,lastValue:Ce,seen:xe})).subscribe(Le)}catch(Re){Le.error(Re)}},Pe)};Fe=be.subscribe((0,q.x)(Le,Pe=>{Ae?.unsubscribe(),xe++,Le.next(Ce=Pe),ie>0&&Je(ie)},void 0,void 0,()=>{Ae?.closed||Ae?.unsubscribe(),Ce=null})),!xe&&Je(null!=oe?"number"==typeof oe?oe:+oe-he.now():ie)})}function Y(G){throw new ee(G)}},4408:(N,z,E)=>{"use strict";E.d(z,{o:()=>V});var M=E(727);class _ extends M.w0{constructor(Q,ee){super()}schedule(Q,ee=0){return this}}const L={setInterval(q,Q,...ee){const{delegate:W}=L;return W?.setInterval?W.setInterval(q,Q,...ee):setInterval(q,Q,...ee)},clearInterval(q){const{delegate:Q}=L;return(Q?.clearInterval||clearInterval)(q)},delegate:void 0};var F=E(8737);class V extends _{constructor(Q,ee){super(Q,ee),this.scheduler=Q,this.work=ee,this.pending=!1}schedule(Q,ee=0){if(this.closed)return this;this.state=Q;const W=this.id,Y=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(Y,W,ee)),this.pending=!0,this.delay=ee,this.id=this.id||this.requestAsyncId(Y,this.id,ee),this}requestAsyncId(Q,ee,W=0){return L.setInterval(Q.flush.bind(Q,this),W)}recycleAsyncId(Q,ee,W=0){if(null!=W&&this.delay===W&&!1===this.pending)return ee;L.clearInterval(ee)}execute(Q,ee){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(Q,ee);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Q,ee){let Y,W=!1;try{this.work(Q)}catch(G){W=!0,Y=G||new Error("Scheduled action threw falsy error")}if(W)return this.unsubscribe(),Y}unsubscribe(){if(!this.closed){const{id:Q,scheduler:ee}=this,{actions:W}=ee;this.work=this.state=this.scheduler=null,this.pending=!1,(0,F.P)(W,this),null!=Q&&(this.id=this.recycleAsyncId(ee,Q,null)),this.delay=null,super.unsubscribe()}}}},7565:(N,z,E)=>{"use strict";E.d(z,{v:()=>L});var M=E(6063);class _{constructor(V,q=_.now){this.schedulerActionCtor=V,this.now=q}schedule(V,q=0,Q){return new this.schedulerActionCtor(this,V).schedule(Q,q)}}_.now=M.l.now;class L extends _{constructor(V,q=_.now){super(V,q),this.actions=[],this._active=!1,this._scheduled=void 0}flush(V){const{actions:q}=this;if(this._active)return void q.push(V);let Q;this._active=!0;do{if(Q=V.execute(V.state,V.delay))break}while(V=q.shift());if(this._active=!1,Q){for(;V=q.shift();)V.unsubscribe();throw Q}}}},4986:(N,z,E)=>{"use strict";E.d(z,{P:()=>F,z:()=>L});var M=E(4408);const L=new(E(7565).v)(M.o),F=L},6063:(N,z,E)=>{"use strict";E.d(z,{l:()=>M});const M={now:()=>(M.delegate||Date).now(),delegate:void 0}},3410:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M={setTimeout(_,L,...F){const{delegate:V}=M;return V?.setTimeout?V.setTimeout(_,L,...F):setTimeout(_,L,...F)},clearTimeout(_){const{delegate:L}=M;return(L?.clearTimeout||clearTimeout)(_)},delegate:void 0}},2202:(N,z,E)=>{"use strict";E.d(z,{h:()=>_});const _=function M(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(N,z,E)=>{"use strict";E.d(z,{L:()=>M});const M="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(N,z,E)=>{"use strict";E.d(z,{K:()=>_});const _=(0,E(3888).d)(L=>function(){L(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(N,z,E)=>{"use strict";E.d(z,{_6:()=>q,jO:()=>F,yG:()=>V});var M=E(576),_=E(3532);function L(Q){return Q[Q.length-1]}function F(Q){return(0,M.m)(L(Q))?Q.pop():void 0}function V(Q){return(0,_.K)(L(Q))?Q.pop():void 0}function q(Q,ee){return"number"==typeof L(Q)?Q.pop():ee}},4742:(N,z,E)=>{"use strict";E.d(z,{D:()=>V});const{isArray:M}=Array,{getPrototypeOf:_,prototype:L,keys:F}=Object;function V(Q){if(1===Q.length){const ee=Q[0];if(M(ee))return{args:ee,keys:null};if(function q(Q){return Q&&"object"==typeof Q&&_(Q)===L}(ee)){const W=F(ee);return{args:W.map(Y=>ee[Y]),keys:W}}}return{args:Q,keys:null}}},8737:(N,z,E)=>{"use strict";function M(_,L){if(_){const F=_.indexOf(L);0<=F&&_.splice(F,1)}}E.d(z,{P:()=>M})},3888:(N,z,E)=>{"use strict";function M(_){const F=_(V=>{Error.call(V),V.stack=(new Error).stack});return F.prototype=Object.create(Error.prototype),F.prototype.constructor=F,F}E.d(z,{d:()=>M})},1810:(N,z,E)=>{"use strict";function M(_,L){return _.reduce((F,V,q)=>(F[V]=L[q],F),{})}E.d(z,{n:()=>M})},2806:(N,z,E)=>{"use strict";E.d(z,{O:()=>F,x:()=>L});var M=E(2416);let _=null;function L(V){if(M.v.useDeprecatedSynchronousErrorHandling){const q=!_;if(q&&(_={errorThrown:!1,error:null}),V(),q){const{errorThrown:Q,error:ee}=_;if(_=null,Q)throw ee}}else V()}function F(V){M.v.useDeprecatedSynchronousErrorHandling&&_&&(_.errorThrown=!0,_.error=V)}},9672:(N,z,E)=>{"use strict";function M(_,L,F,V=0,q=!1){const Q=L.schedule(function(){F(),q?_.add(this.schedule(null,V)):this.unsubscribe()},V);if(_.add(Q),!q)return Q}E.d(z,{f:()=>M})},4671:(N,z,E)=>{"use strict";function M(_){return _}E.d(z,{y:()=>M})},1144:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M=_=>_&&"number"==typeof _.length&&"function"!=typeof _},2206:(N,z,E)=>{"use strict";E.d(z,{D:()=>_});var M=E(576);function _(L){return Symbol.asyncIterator&&(0,M.m)(L?.[Symbol.asyncIterator])}},1165:(N,z,E)=>{"use strict";function M(_){return _ instanceof Date&&!isNaN(_)}E.d(z,{q:()=>M})},576:(N,z,E)=>{"use strict";function M(_){return"function"==typeof _}E.d(z,{m:()=>M})},3670:(N,z,E)=>{"use strict";E.d(z,{c:()=>L});var M=E(8822),_=E(576);function L(F){return(0,_.m)(F[M.L])}},6495:(N,z,E)=>{"use strict";E.d(z,{T:()=>L});var M=E(2202),_=E(576);function L(F){return(0,_.m)(F?.[M.h])}},8239:(N,z,E)=>{"use strict";E.d(z,{t:()=>_});var M=E(576);function _(L){return(0,M.m)(L?.then)}},3260:(N,z,E)=>{"use strict";E.d(z,{L:()=>F,Q:()=>L});var M=E(655),_=E(576);function L(V){return(0,M.FC)(this,arguments,function*(){const Q=V.getReader();try{for(;;){const{value:ee,done:W}=yield(0,M.qq)(Q.read());if(W)return yield(0,M.qq)(void 0);yield yield(0,M.qq)(ee)}}finally{Q.releaseLock()}})}function F(V){return(0,_.m)(V?.getReader)}},3532:(N,z,E)=>{"use strict";E.d(z,{K:()=>_});var M=E(576);function _(L){return L&&(0,M.m)(L.schedule)}},4482:(N,z,E)=>{"use strict";E.d(z,{A:()=>_,e:()=>L});var M=E(576);function _(F){return(0,M.m)(F?.lift)}function L(F){return V=>{if(_(V))return V.lift(function(q){try{return F(q,this)}catch(Q){this.error(Q)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(N,z,E)=>{"use strict";E.d(z,{Z:()=>F});var M=E(4004);const{isArray:_}=Array;function F(V){return(0,M.U)(q=>function L(V,q){return _(q)?V(...q):V(q)}(V,q))}},5032:(N,z,E)=>{"use strict";function M(){}E.d(z,{Z:()=>M})},9635:(N,z,E)=>{"use strict";E.d(z,{U:()=>L,z:()=>_});var M=E(4671);function _(...F){return L(F)}function L(F){return 0===F.length?M.y:1===F.length?F[0]:function(q){return F.reduce((Q,ee)=>ee(Q),q)}}},7849:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(2416),_=E(3410);function L(F){_.z.setTimeout(()=>{const{onUnhandledError:V}=M.v;if(!V)throw F;V(F)})}},4532:(N,z,E)=>{"use strict";function M(_){return new TypeError(`You provided ${null!==_&&"object"==typeof _?"an invalid object":`'${_}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(z,{z:()=>M})},655:(N,z,E)=>{"use strict";function ee(le,ce,ge,pe){return new(ge||(ge=Promise))(function(Ie,lt){function At(Ri){try{Ne(pe.next(Ri))}catch(Nn){lt(Nn)}}function Ht(Ri){try{Ne(pe.throw(Ri))}catch(Nn){lt(Nn)}}function Ne(Ri){Ri.done?Ie(Ri.value):function Ve(Ie){return Ie instanceof ge?Ie:new ge(function(lt){lt(Ie)})}(Ri.value).then(At,Ht)}Ne((pe=pe.apply(le,ce||[])).next())})}function fe(le){return this instanceof fe?(this.v=le,this):new fe(le)}function be(le,ce,ge){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ve,pe=ge.apply(le,ce||[]),Ie=[];return Ve={},lt("next"),lt("throw"),lt("return"),Ve[Symbol.asyncIterator]=function(){return this},Ve;function lt(zt){pe[zt]&&(Ve[zt]=function(St){return new Promise(function(xn,ci){Ie.push([zt,St,xn,ci])>1||At(zt,St)})})}function At(zt,St){try{!function Ht(zt){zt.value instanceof fe?Promise.resolve(zt.value.v).then(Ne,Ri):Nn(Ie[0][2],zt)}(pe[zt](St))}catch(xn){Nn(Ie[0][3],xn)}}function Ne(zt){At("next",zt)}function Ri(zt){At("throw",zt)}function Nn(zt,St){zt(St),Ie.shift(),Ie.length&&At(Ie[0][0],Ie[0][1])}}function Fe(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ge,ce=le[Symbol.asyncIterator];return ce?ce.call(le):(le=function re(le){var ce="function"==typeof Symbol&&Symbol.iterator,ge=ce&&le[ce],pe=0;if(ge)return ge.call(le);if(le&&"number"==typeof le.length)return{next:function(){return le&&pe>=le.length&&(le=void 0),{value:le&&le[pe++],done:!le}}};throw new TypeError(ce?"Object is not iterable.":"Symbol.iterator is not defined.")}(le),ge={},pe("next"),pe("throw"),pe("return"),ge[Symbol.asyncIterator]=function(){return this},ge);function pe(Ie){ge[Ie]=le[Ie]&&function(lt){return new Promise(function(At,Ht){!function Ve(Ie,lt,At,Ht){Promise.resolve(Ht).then(function(Ne){Ie({value:Ne,done:At})},lt)}(At,Ht,(lt=le[Ie](lt)).done,lt.value)})}}}E.d(z,{FC:()=>be,KL:()=>Fe,mG:()=>ee,qq:()=>fe})},6895:(N,z,E)=>{"use strict";E.d(z,{Do:()=>Fe,EM:()=>Fr,HT:()=>V,JF:()=>qi,K0:()=>Q,Mx:()=>Bi,NF:()=>bo,O5:()=>Et,PC:()=>va,RF:()=>br,S$:()=>fe,V_:()=>Y,Ye:()=>Ae,b0:()=>Le,bD:()=>Ni,ez:()=>wr,n9:()=>Oi,q:()=>L,w_:()=>q});var M=E(4650);let _=null;function L(){return _}function V(P){_||(_=P)}class q{}const Q=new M.OlP("DocumentToken");let ee=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return function W(){return(0,M.LFG)(G)}()},providedIn:"platform"}),P})();const Y=new M.OlP("Location Initialized");let G=(()=>{class P extends ee{constructor(I){super(),this._doc=I,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return L().getBaseHref(this._doc)}onPopState(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("popstate",I,!1),()=>j.removeEventListener("popstate",I)}onHashChange(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("hashchange",I,!1),()=>j.removeEventListener("hashchange",I)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(I){this.location.pathname=I}pushState(I,j,ne){re()?this._history.pushState(I,j,ne):this.location.hash=ne}replaceState(I,j,ne){re()?this._history.replaceState(I,j,ne):this.location.hash=ne}forward(){this._history.forward()}back(){this._history.back()}historyGo(I=0){this._history.go(I)}getState(){return this._history.state}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(Q))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function oe(){return new G((0,M.LFG)(Q))}()},providedIn:"platform"}),P})();function re(){return!!window.history.pushState}function ie(P,O){if(0==P.length)return O;if(0==O.length)return P;let I=0;return P.endsWith("/")&&I++,O.startsWith("/")&&I++,2==I?P+O.substring(1):1==I?P+O:P+"/"+O}function ae(P){const O=P.match(/#|\?|$/),I=O&&O.index||P.length;return P.slice(0,I-("/"===P[I-1]?1:0))+P.slice(I)}function he(P){return P&&"?"!==P[0]?"?"+P:P}let fe=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return(0,M.f3M)(Le)},providedIn:"root"}),P})();const be=new M.OlP("appBaseHref");let Le=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._removeListenerFns=[],this._baseHref=j??this._platformLocation.getBaseHrefFromDOM()??(0,M.f3M)(Q).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}prepareExternalUrl(I){return ie(this._baseHref,I)}path(I=!1){const j=this._platformLocation.pathname+he(this._platformLocation.search),ne=this._platformLocation.hash;return ne&&I?`${j}${ne}`:j}pushState(I,j,ne,me){const ue=this.prepareExternalUrl(ne+he(me));this._platformLocation.pushState(I,j,ue)}replaceState(I,j,ne,me){const ue=this.prepareExternalUrl(ne+he(me));this._platformLocation.replaceState(I,j,ue)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(be,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),Fe=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._baseHref="",this._removeListenerFns=[],null!=j&&(this._baseHref=j)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}path(I=!1){let j=this._platformLocation.hash;return null==j&&(j="#"),j.length>0?j.substring(1):j}prepareExternalUrl(I){const j=ie(this._baseHref,I);return j.length>0?"#"+j:j}pushState(I,j,ne,me){let ue=this.prepareExternalUrl(ne+he(me));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.pushState(I,j,ue)}replaceState(I,j,ne,me){let ue=this.prepareExternalUrl(ne+he(me));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.replaceState(I,j,ue)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(be,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac}),P})(),Ae=(()=>{class P{constructor(I){this._subject=new M.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=I;const j=this._locationStrategy.getBaseHref();this._baseHref=ae(Je(j)),this._locationStrategy.onPopState(ne=>{this._subject.emit({url:this.path(!0),pop:!0,state:ne.state,type:ne.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(I=!1){return this.normalize(this._locationStrategy.path(I))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(I,j=""){return this.path()==this.normalize(I+he(j))}normalize(I){return P.stripTrailingSlash(function xe(P,O){return P&&O.startsWith(P)?O.substring(P.length):O}(this._baseHref,Je(I)))}prepareExternalUrl(I){return I&&"/"!==I[0]&&(I="/"+I),this._locationStrategy.prepareExternalUrl(I)}go(I,j="",ne=null){this._locationStrategy.pushState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}replaceState(I,j="",ne=null){this._locationStrategy.replaceState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(I=0){this._locationStrategy.historyGo?.(I)}onUrlChange(I){return this._urlChangeListeners.push(I),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(j=>{this._notifyUrlChangeListeners(j.url,j.state)})),()=>{const j=this._urlChangeListeners.indexOf(I);this._urlChangeListeners.splice(j,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(I="",j){this._urlChangeListeners.forEach(ne=>ne(I,j))}subscribe(I,j,ne){return this._subject.subscribe({next:I,error:j,complete:ne})}}return P.normalizeQueryParams=he,P.joinWithSlash=ie,P.stripTrailingSlash=ae,P.\u0275fac=function(I){return new(I||P)(M.LFG(fe))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function Ce(){return new Ae((0,M.LFG)(fe))}()},providedIn:"root"}),P})();function Je(P){return P.replace(/\/index.html$/,"")}function Bi(P,O){O=encodeURIComponent(O);for(const I of P.split(";")){const j=I.indexOf("="),[ne,me]=-1==j?[I,""]:[I.slice(0,j),I.slice(j+1)];if(ne.trim()===O)return decodeURIComponent(me)}return null}let Et=(()=>{class P{constructor(I,j){this._viewContainer=I,this._context=new sn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=j}set ngIf(I){this._context.$implicit=this._context.ngIf=I,this._updateView()}set ngIfThen(I){ya("ngIfThen",I),this._thenTemplateRef=I,this._thenViewRef=null,this._updateView()}set ngIfElse(I){ya("ngIfElse",I),this._elseTemplateRef=I,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(I,j){return!0}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),P})();class sn{constructor(){this.$implicit=null,this.ngIf=null}}function ya(P,O){if(O&&!O.createEmbeddedView)throw new Error(`${P} must be a TemplateRef, but received '${(0,M.AaK)(O)}'.`)}class Wn{constructor(O,I){this._viewContainerRef=O,this._templateRef=I,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(O){O&&!this._created?this.create():!O&&this._created&&this.destroy()}}let br=(()=>{class P{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(I){this._ngSwitch=I,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(I){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(I)}_matchCase(I){const j=I==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||j,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),j}_updateDefaultCases(I){if(this._defaultViews&&I!==this._defaultUsed){this._defaultUsed=I;for(let j=0;j{class P{constructor(I,j,ne){this.ngSwitch=ne,ne._addCase(),this._view=new Wn(I,j)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc),M.Y36(br,9))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),P})(),va=(()=>{class P{constructor(I,j,ne){this._ngEl=I,this._differs=j,this._renderer=ne,this._ngStyle=null,this._differ=null}set ngStyle(I){this._ngStyle=I,!this._differ&&I&&(this._differ=this._differs.find(I).create())}ngDoCheck(){if(this._differ){const I=this._differ.diff(this._ngStyle);I&&this._applyChanges(I)}}_setStyle(I,j){const[ne,me]=I.split("."),ue=-1===ne.indexOf("-")?void 0:M.JOm.DashCase;null!=j?this._renderer.setStyle(this._ngEl.nativeElement,ne,me?`${j}${me}`:j,ue):this._renderer.removeStyle(this._ngEl.nativeElement,ne,ue)}_applyChanges(I){I.forEachRemovedItem(j=>this._setStyle(j.key,null)),I.forEachAddedItem(j=>this._setStyle(j.key,j.currentValue)),I.forEachChangedItem(j=>this._setStyle(j.key,j.currentValue))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.SBq),M.Y36(M.aQg),M.Y36(M.Qsj))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),P})(),wr=(()=>{class P{}return P.\u0275fac=function(I){return new(I||P)},P.\u0275mod=M.oAB({type:P}),P.\u0275inj=M.cJS({}),P})();const Ni="browser";function bo(P){return P===Ni}let Fr=(()=>{class P{}return P.\u0275prov=(0,M.Yz7)({token:P,providedIn:"root",factory:()=>new Ti((0,M.LFG)(Q),window)}),P})();class Ti{constructor(O,I){this.document=O,this.window=I,this.offset=()=>[0,0]}setOffset(O){this.offset=Array.isArray(O)?()=>O:O}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(O){this.supportsScrolling()&&this.window.scrollTo(O[0],O[1])}scrollToAnchor(O){if(!this.supportsScrolling())return;const I=function Co(P,O){const I=P.getElementById(O)||P.getElementsByName(O)[0];if(I)return I;if("function"==typeof P.createTreeWalker&&P.body&&(P.body.createShadowRoot||P.body.attachShadow)){const j=P.createTreeWalker(P.body,NodeFilter.SHOW_ELEMENT);let ne=j.currentNode;for(;ne;){const me=ne.shadowRoot;if(me){const ue=me.getElementById(O)||me.querySelector(`[name="${O}"]`);if(ue)return ue}ne=j.nextNode()}}return null}(this.document,O);I&&(this.scrollToElement(I),I.focus())}setHistoryScrollRestoration(O){if(this.supportScrollRestoration()){const I=this.window.history;I&&I.scrollRestoration&&(I.scrollRestoration=O)}}scrollToElement(O){const I=O.getBoundingClientRect(),j=I.left+this.window.pageXOffset,ne=I.top+this.window.pageYOffset,me=this.offset();this.window.scrollTo(j-me[0],ne-me[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const O=Hs(this.window.history)||Hs(Object.getPrototypeOf(this.window.history));return!(!O||!O.writable&&!O.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Hs(P){return Object.getOwnPropertyDescriptor(P,"scrollRestoration")}class qi{}},529:(N,z,E)=>{"use strict";E.d(z,{JF:()=>Jd,LE:()=>be,TP:()=>At,WM:()=>Y,Zn:()=>ge,eN:()=>Ie,qT:()=>Fe});var M=E(6895),_=E(4650),L=E(9646),F=E(9751),V=E(4351),q=E(9300),Q=E(4004);class ee{}class W{}class Y{constructor(X){this.normalizedNames=new Map,this.lazyUpdate=null,X?this.lazyInit="string"==typeof X?()=>{this.headers=new Map,X.split("\n").forEach($=>{const de=$.indexOf(":");if(de>0){const De=$.slice(0,de),tt=De.toLowerCase(),ct=$.slice(de+1).trim();this.maybeSetNormalizedName(De,tt),this.headers.has(tt)?this.headers.get(tt).push(ct):this.headers.set(tt,[ct])}})}:()=>{this.headers=new Map,Object.keys(X).forEach($=>{let de=X[$];const De=$.toLowerCase();"string"==typeof de&&(de=[de]),de.length>0&&(this.headers.set(De,de),this.maybeSetNormalizedName($,De))})}:this.headers=new Map}has(X){return this.init(),this.headers.has(X.toLowerCase())}get(X){this.init();const $=this.headers.get(X.toLowerCase());return $&&$.length>0?$[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(X){return this.init(),this.headers.get(X.toLowerCase())||null}append(X,$){return this.clone({name:X,value:$,op:"a"})}set(X,$){return this.clone({name:X,value:$,op:"s"})}delete(X,$){return this.clone({name:X,value:$,op:"d"})}maybeSetNormalizedName(X,$){this.normalizedNames.has($)||this.normalizedNames.set($,X)}init(){this.lazyInit&&(this.lazyInit instanceof Y?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(X=>this.applyUpdate(X)),this.lazyUpdate=null))}copyFrom(X){X.init(),Array.from(X.headers.keys()).forEach($=>{this.headers.set($,X.headers.get($)),this.normalizedNames.set($,X.normalizedNames.get($))})}clone(X){const $=new Y;return $.lazyInit=this.lazyInit&&this.lazyInit instanceof Y?this.lazyInit:this,$.lazyUpdate=(this.lazyUpdate||[]).concat([X]),$}applyUpdate(X){const $=X.name.toLowerCase();switch(X.op){case"a":case"s":let de=X.value;if("string"==typeof de&&(de=[de]),0===de.length)return;this.maybeSetNormalizedName(X.name,$);const De=("a"===X.op?this.headers.get($):void 0)||[];De.push(...de),this.headers.set($,De);break;case"d":const tt=X.value;if(tt){let ct=this.headers.get($);if(!ct)return;ct=ct.filter(ze=>-1===tt.indexOf(ze)),0===ct.length?(this.headers.delete($),this.normalizedNames.delete($)):this.headers.set($,ct)}else this.headers.delete($),this.normalizedNames.delete($)}}forEach(X){this.init(),Array.from(this.normalizedNames.keys()).forEach($=>X(this.normalizedNames.get($),this.headers.get($)))}}class re{encodeKey(X){return he(X)}encodeValue(X){return he(X)}decodeKey(X){return decodeURIComponent(X)}decodeValue(X){return decodeURIComponent(X)}}const ie=/%(\d[a-f0-9])/gi,ae={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function he(ye){return encodeURIComponent(ye).replace(ie,(X,$)=>ae[$]??X)}function fe(ye){return`${ye}`}class be{constructor(X={}){if(this.updates=null,this.cloneFrom=null,this.encoder=X.encoder||new re,X.fromString){if(X.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function oe(ye,X){const $=new Map;return ye.length>0&&ye.replace(/^\?/,"").split("&").forEach(De=>{const tt=De.indexOf("="),[ct,ze]=-1==tt?[X.decodeKey(De),""]:[X.decodeKey(De.slice(0,tt)),X.decodeValue(De.slice(tt+1))],Xe=$.get(ct)||[];Xe.push(ze),$.set(ct,Xe)}),$}(X.fromString,this.encoder)}else X.fromObject?(this.map=new Map,Object.keys(X.fromObject).forEach($=>{const de=X.fromObject[$],De=Array.isArray(de)?de.map(fe):[fe(de)];this.map.set($,De)})):this.map=null}has(X){return this.init(),this.map.has(X)}get(X){this.init();const $=this.map.get(X);return $?$[0]:null}getAll(X){return this.init(),this.map.get(X)||null}keys(){return this.init(),Array.from(this.map.keys())}append(X,$){return this.clone({param:X,value:$,op:"a"})}appendAll(X){const $=[];return Object.keys(X).forEach(de=>{const De=X[de];Array.isArray(De)?De.forEach(tt=>{$.push({param:de,value:tt,op:"a"})}):$.push({param:de,value:De,op:"a"})}),this.clone($)}set(X,$){return this.clone({param:X,value:$,op:"s"})}delete(X,$){return this.clone({param:X,value:$,op:"d"})}toString(){return this.init(),this.keys().map(X=>{const $=this.encoder.encodeKey(X);return this.map.get(X).map(de=>$+"="+this.encoder.encodeValue(de)).join("&")}).filter(X=>""!==X).join("&")}clone(X){const $=new be({encoder:this.encoder});return $.cloneFrom=this.cloneFrom||this,$.updates=(this.updates||[]).concat(X),$}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(X=>this.map.set(X,this.cloneFrom.map.get(X))),this.updates.forEach(X=>{switch(X.op){case"a":case"s":const $=("a"===X.op?this.map.get(X.param):void 0)||[];$.push(fe(X.value)),this.map.set(X.param,$);break;case"d":if(void 0===X.value){this.map.delete(X.param);break}{let de=this.map.get(X.param)||[];const De=de.indexOf(fe(X.value));-1!==De&&de.splice(De,1),de.length>0?this.map.set(X.param,de):this.map.delete(X.param)}}}),this.cloneFrom=this.updates=null)}}class Fe{constructor(){this.map=new Map}set(X,$){return this.map.set(X,$),this}get(X){return this.map.has(X)||this.map.set(X,X.defaultValue()),this.map.get(X)}delete(X){return this.map.delete(X),this}has(X){return this.map.has(X)}keys(){return this.map.keys()}}function Ce(ye){return typeof ArrayBuffer<"u"&&ye instanceof ArrayBuffer}function xe(ye){return typeof Blob<"u"&&ye instanceof Blob}function Je(ye){return typeof FormData<"u"&&ye instanceof FormData}class Re{constructor(X,$,de,De){let tt;if(this.url=$,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=X.toUpperCase(),function Ae(ye){switch(ye){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||De?(this.body=void 0!==de?de:null,tt=De):tt=de,tt&&(this.reportProgress=!!tt.reportProgress,this.withCredentials=!!tt.withCredentials,tt.responseType&&(this.responseType=tt.responseType),tt.headers&&(this.headers=tt.headers),tt.context&&(this.context=tt.context),tt.params&&(this.params=tt.params)),this.headers||(this.headers=new Y),this.context||(this.context=new Fe),this.params){const ct=this.params.toString();if(0===ct.length)this.urlWithParams=$;else{const ze=$.indexOf("?");this.urlWithParams=$+(-1===ze?"?":ze<$.length-1?"&":"")+ct}}else this.params=new be,this.urlWithParams=$}serializeBody(){return null===this.body?null:Ce(this.body)||xe(this.body)||Je(this.body)||function Pe(ye){return typeof URLSearchParams<"u"&&ye instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof be?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Je(this.body)?null:xe(this.body)?this.body.type||null:Ce(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof be?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(X={}){const $=X.method||this.method,de=X.url||this.url,De=X.responseType||this.responseType,tt=void 0!==X.body?X.body:this.body,ct=void 0!==X.withCredentials?X.withCredentials:this.withCredentials,ze=void 0!==X.reportProgress?X.reportProgress:this.reportProgress;let Xe=X.headers||this.headers,ni=X.params||this.params;const Ct=X.context??this.context;return void 0!==X.setHeaders&&(Xe=Object.keys(X.setHeaders).reduce((an,it)=>an.set(it,X.setHeaders[it]),Xe)),X.setParams&&(ni=Object.keys(X.setParams).reduce((an,it)=>an.set(it,X.setParams[it]),ni)),new Re($,de,tt,{params:ni,headers:Xe,context:Ct,reportProgress:ze,responseType:De,withCredentials:ct})}}var He=(()=>((He=He||{})[He.Sent=0]="Sent",He[He.UploadProgress=1]="UploadProgress",He[He.ResponseHeader=2]="ResponseHeader",He[He.DownloadProgress=3]="DownloadProgress",He[He.Response=4]="Response",He[He.User=5]="User",He))();class le{constructor(X,$=200,de="OK"){this.headers=X.headers||new Y,this.status=void 0!==X.status?X.status:$,this.statusText=X.statusText||de,this.url=X.url||null,this.ok=this.status>=200&&this.status<300}}class ce extends le{constructor(X={}){super(X),this.type=He.ResponseHeader}clone(X={}){return new ce({headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class ge extends le{constructor(X={}){super(X),this.type=He.Response,this.body=void 0!==X.body?X.body:null}clone(X={}){return new ge({body:void 0!==X.body?X.body:this.body,headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class pe extends le{constructor(X){super(X,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${X.url||"(unknown url)"}`:`Http failure response for ${X.url||"(unknown url)"}: ${X.status} ${X.statusText}`,this.error=X.error||null}}function Ve(ye,X){return{body:X,headers:ye.headers,context:ye.context,observe:ye.observe,params:ye.params,reportProgress:ye.reportProgress,responseType:ye.responseType,withCredentials:ye.withCredentials}}let Ie=(()=>{class ye{constructor($){this.handler=$}request($,de,De={}){let tt;if($ instanceof Re)tt=$;else{let Xe,ni;Xe=De.headers instanceof Y?De.headers:new Y(De.headers),De.params&&(ni=De.params instanceof be?De.params:new be({fromObject:De.params})),tt=new Re($,de,void 0!==De.body?De.body:null,{headers:Xe,context:De.context,params:ni,reportProgress:De.reportProgress,responseType:De.responseType||"json",withCredentials:De.withCredentials})}const ct=(0,L.of)(tt).pipe((0,V.b)(Xe=>this.handler.handle(Xe)));if($ instanceof Re||"events"===De.observe)return ct;const ze=ct.pipe((0,q.h)(Xe=>Xe instanceof ge));switch(De.observe||"body"){case"body":switch(tt.responseType){case"arraybuffer":return ze.pipe((0,Q.U)(Xe=>{if(null!==Xe.body&&!(Xe.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Xe.body}));case"blob":return ze.pipe((0,Q.U)(Xe=>{if(null!==Xe.body&&!(Xe.body instanceof Blob))throw new Error("Response is not a Blob.");return Xe.body}));case"text":return ze.pipe((0,Q.U)(Xe=>{if(null!==Xe.body&&"string"!=typeof Xe.body)throw new Error("Response is not a string.");return Xe.body}));default:return ze.pipe((0,Q.U)(Xe=>Xe.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${De.observe}}`)}}delete($,de={}){return this.request("DELETE",$,de)}get($,de={}){return this.request("GET",$,de)}head($,de={}){return this.request("HEAD",$,de)}jsonp($,de){return this.request("JSONP",$,{params:(new be).append(de,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options($,de={}){return this.request("OPTIONS",$,de)}patch($,de,De={}){return this.request("PATCH",$,Ve(De,de))}post($,de,De={}){return this.request("POST",$,Ve(De,de))}put($,de,De={}){return this.request("PUT",$,Ve(De,de))}}return ye.\u0275fac=function($){return new($||ye)(_.LFG(ee))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class lt{constructor(X,$){this.next=X,this.interceptor=$}handle(X){return this.interceptor.intercept(X,this.next)}}const At=new _.OlP("HTTP_INTERCEPTORS");let Ht=(()=>{class ye{intercept($,de){return de.handle($)}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const co=/^\)\]\}',?\n/;let uo=(()=>{class ye{constructor($){this.xhrFactory=$}handle($){if("JSONP"===$.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new F.y(de=>{const De=this.xhrFactory.build();if(De.open($.method,$.urlWithParams),$.withCredentials&&(De.withCredentials=!0),$.headers.forEach((Tt,kt)=>De.setRequestHeader(Tt,kt.join(","))),$.headers.has("Accept")||De.setRequestHeader("Accept","application/json, text/plain, */*"),!$.headers.has("Content-Type")){const Tt=$.detectContentTypeHeader();null!==Tt&&De.setRequestHeader("Content-Type",Tt)}if($.responseType){const Tt=$.responseType.toLowerCase();De.responseType="json"!==Tt?Tt:"text"}const tt=$.serializeBody();let ct=null;const ze=()=>{if(null!==ct)return ct;const Tt=De.statusText||"OK",kt=new Y(De.getAllResponseHeaders()),hn=function Yd(ye){return"responseURL"in ye&&ye.responseURL?ye.responseURL:/^X-Request-URL:/m.test(ye.getAllResponseHeaders())?ye.getResponseHeader("X-Request-URL"):null}(De)||$.url;return ct=new ce({headers:kt,status:De.status,statusText:Tt,url:hn}),ct},Xe=()=>{let{headers:Tt,status:kt,statusText:hn,url:gr}=ze(),bi=null;204!==kt&&(bi=typeof De.response>"u"?De.responseText:De.response),0===kt&&(kt=bi?200:0);let Lr=kt>=200&&kt<300;if("json"===$.responseType&&"string"==typeof bi){const jr=bi;bi=bi.replace(co,"");try{bi=""!==bi?JSON.parse(bi):null}catch(ba){bi=jr,Lr&&(Lr=!1,bi={error:ba,text:bi})}}Lr?(de.next(new ge({body:bi,headers:Tt,status:kt,statusText:hn,url:gr||void 0})),de.complete()):de.error(new pe({error:bi,headers:Tt,status:kt,statusText:hn,url:gr||void 0}))},ni=Tt=>{const{url:kt}=ze(),hn=new pe({error:Tt,status:De.status||0,statusText:De.statusText||"Unknown Error",url:kt||void 0});de.error(hn)};let Ct=!1;const an=Tt=>{Ct||(de.next(ze()),Ct=!0);let kt={type:He.DownloadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(kt.total=Tt.total),"text"===$.responseType&&!!De.responseText&&(kt.partialText=De.responseText),de.next(kt)},it=Tt=>{let kt={type:He.UploadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(kt.total=Tt.total),de.next(kt)};return De.addEventListener("load",Xe),De.addEventListener("error",ni),De.addEventListener("timeout",ni),De.addEventListener("abort",ni),$.reportProgress&&(De.addEventListener("progress",an),null!==tt&&De.upload&&De.upload.addEventListener("progress",it)),De.send(tt),de.next({type:He.Sent}),()=>{De.removeEventListener("error",ni),De.removeEventListener("abort",ni),De.removeEventListener("load",Xe),De.removeEventListener("timeout",ni),$.reportProgress&&(De.removeEventListener("progress",an),null!==tt&&De.upload&&De.upload.removeEventListener("progress",it)),De.readyState!==De.DONE&&De.abort()}})}}return ye.\u0275fac=function($){return new($||ye)(_.LFG(M.JF))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const qn=new _.OlP("XSRF_COOKIE_NAME"),zn=new _.OlP("XSRF_HEADER_NAME");class ma{}let ho=(()=>{class ye{constructor($,de,De){this.doc=$,this.platform=de,this.cookieName=De,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const $=this.doc.cookie||"";return $!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,M.Mx)($,this.cookieName),this.lastCookieString=$),this.lastToken}}return ye.\u0275fac=function($){return new($||ye)(_.LFG(M.K0),_.LFG(_.Lbi),_.LFG(qn))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Ke=(()=>{class ye{constructor($,de){this.tokenService=$,this.headerName=de}intercept($,de){const De=$.url.toLowerCase();if("GET"===$.method||"HEAD"===$.method||De.startsWith("http://")||De.startsWith("https://"))return de.handle($);const tt=this.tokenService.getToken();return null!==tt&&!$.headers.has(this.headerName)&&($=$.clone({headers:$.headers.set(this.headerName,tt)})),de.handle($)}}return ye.\u0275fac=function($){return new($||ye)(_.LFG(ma),_.LFG(zn))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),pi=(()=>{class ye{constructor($,de){this.backend=$,this.injector=de,this.chain=null}handle($){if(null===this.chain){const de=this.injector.get(At,[]);this.chain=de.reduceRight((De,tt)=>new lt(De,tt),this.backend)}return this.chain.handle($)}}return ye.\u0275fac=function($){return new($||ye)(_.LFG(W),_.LFG(_.zs3))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),_a=(()=>{class ye{static disable(){return{ngModule:ye,providers:[{provide:Ke,useClass:Ht}]}}static withOptions($={}){return{ngModule:ye,providers:[$.cookieName?{provide:qn,useValue:$.cookieName}:[],$.headerName?{provide:zn,useValue:$.headerName}:[]]}}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=_.oAB({type:ye}),ye.\u0275inj=_.cJS({providers:[Ke,{provide:At,useExisting:Ke,multi:!0},{provide:ma,useClass:ho},{provide:qn,useValue:"XSRF-TOKEN"},{provide:zn,useValue:"X-XSRF-TOKEN"}]}),ye})(),Jd=(()=>{class ye{}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=_.oAB({type:ye}),ye.\u0275inj=_.cJS({providers:[Ie,{provide:ee,useClass:pi},uo,{provide:W,useExisting:uo}],imports:[_a.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ye})()},4650:(N,z,E)=>{"use strict";E.d(z,{$8M:()=>Cf,$Z:()=>Ww,AFp:()=>dp,ALo:()=>_d,AaK:()=>ee,B6R:()=>gr,BQk:()=>hl,CHM:()=>Mn,CRH:()=>p_,CZH:()=>ua,CqO:()=>nd,D6c:()=>kp,EJc:()=>B_,EiD:()=>Uf,EpF:()=>Oh,F$t:()=>Sy,F4k:()=>pg,FYo:()=>tw,FiY:()=>Ba,G48:()=>Id,Gf:()=>np,GfV:()=>iw,GkF:()=>Vh,Gpc:()=>G,Gre:()=>tv,Hsn:()=>Ty,Ikx:()=>zh,JOm:()=>Hn,JVY:()=>Hu,KtG:()=>Ji,L6k:()=>gi,LAX:()=>Lo,LFG:()=>Jt,LSH:()=>qf,Lbi:()=>P_,Lck:()=>MT,MAs:()=>yy,MMx:()=>$g,NdJ:()=>pl,O4$:()=>Jn,OlP:()=>Pt,Oqu:()=>vg,PXZ:()=>TA,Q6J:()=>Ih,QGY:()=>Lh,QP$:()=>Tl,QbO:()=>Sd,Qsj:()=>Tx,R0b:()=>ti,RDi:()=>RC,Rgc:()=>Cd,SBq:()=>Dc,Sil:()=>V_,Suo:()=>h_,TTD:()=>mo,TgZ:()=>td,Tol:()=>Cg,Udp:()=>Fh,VKq:()=>Xt,WFA:()=>Hr,XFs:()=>Ke,Xpm:()=>hn,Xts:()=>zf,Y36:()=>il,YKP:()=>ur,YNc:()=>wy,Yjl:()=>$l,Yz7:()=>St,ZZ4:()=>Vd,_Bn:()=>Gg,_UZ:()=>hg,_Vd:()=>Mc,_c5:()=>Ip,_uU:()=>Qy,aQg:()=>Od,c2e:()=>I_,cJS:()=>ci,cg1:()=>Ja,d8E:()=>Qa,dDg:()=>lE,dqk:()=>de,eBb:()=>nx,eFA:()=>ms,ekj:()=>Uh,eoX:()=>AA,f3M:()=>yu,g9A:()=>hp,h0i:()=>vl,hGG:()=>LA,hij:()=>$a,iGM:()=>u_,ifc:()=>$,ip1:()=>R_,kL8:()=>cv,kcU:()=>du,lG2:()=>Kd,lcZ:()=>n_,lnq:()=>Ag,lqb:()=>Uo,lri:()=>Hd,mCW:()=>xr,n5z:()=>_f,n_E:()=>Xh,oAB:()=>jr,oxw:()=>mg,pB0:()=>Bf,q3G:()=>ai,qLn:()=>Hc,qOj:()=>Dh,qZA:()=>id,qzn:()=>Oo,rWj:()=>U_,s9C:()=>gg,sBO:()=>EA,sIi:()=>kn,s_b:()=>tp,soG:()=>Dl,tb:()=>pp,tp0:()=>qs,uIk:()=>Hh,vHH:()=>ae,vpe:()=>kr,wAp:()=>Ze,xp6:()=>Vw,ynx:()=>Bh,z2F:()=>xp,z3N:()=>$r,zSh:()=>$f,zs3:()=>qa});var M=E(7579),_=E(727),L=E(9751),F=E(6451),V=E(3099);function q(g){for(let b in g)if(g[b]===q)return b;throw Error("Could not find renamed property on target object.")}function Q(g,b){for(const C in b)b.hasOwnProperty(C)&&!g.hasOwnProperty(C)&&(g[C]=b[C])}function ee(g){if("string"==typeof g)return g;if(Array.isArray(g))return"["+g.map(ee).join(", ")+"]";if(null==g)return""+g;if(g.overriddenName)return`${g.overriddenName}`;if(g.name)return`${g.name}`;const b=g.toString();if(null==b)return""+b;const C=b.indexOf("\n");return-1===C?b:b.substring(0,C)}function W(g,b){return null==g||""===g?null===b?"":b:null==b||""===b?g:g+" "+b}const Y=q({__forward_ref__:q});function G(g){return g.__forward_ref__=G,g.toString=function(){return ee(this())},g}function re(g){return oe(g)?g():g}function oe(g){return"function"==typeof g&&g.hasOwnProperty(Y)&&g.__forward_ref__===G}class ae extends Error{constructor(b,C){super(function he(g,b){return`NG0${Math.abs(g)}${b?": "+b.trim():""}`}(b,C)),this.code=b}}function fe(g){return"string"==typeof g?g:null==g?"":String(g)}function Ce(g,b){throw new ae(-201,!1)}function Ht(g,b){null==g&&function Ne(g,b,C,y){throw new Error(`ASSERTION ERROR: ${g}`+(null==y?"":` [Expected=> ${C} ${y} ${b} <=Actual]`))}(b,g,null,"!=")}function St(g){return{token:g.token,providedIn:g.providedIn||null,factory:g.factory,value:void 0}}function ci(g){return{providers:g.providers||[],imports:g.imports||[]}}function Or(g){return Wl(g,qn)||Wl(g,ma)}function Wl(g,b){return g.hasOwnProperty(b)?g[b]:null}function uo(g){return g&&(g.hasOwnProperty(zn)||g.hasOwnProperty(ho))?g[zn]:null}const qn=q({\u0275prov:q}),zn=q({\u0275inj:q}),ma=q({ngInjectableDef:q}),ho=q({ngInjectorDef:q});var Ke=(()=>((Ke=Ke||{})[Ke.Default=0]="Default",Ke[Ke.Host=1]="Host",Ke[Ke.Self=2]="Self",Ke[Ke.SkipSelf=4]="SkipSelf",Ke[Ke.Optional=8]="Optional",Ke))();let pi;function Pi(g){const b=pi;return pi=g,b}function _a(g,b,C){const y=Or(g);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:C&Ke.Optional?null:void 0!==b?b:void Ce(ee(g))}function Sn(g){return{toString:g}.toString()}var xi=(()=>((xi=xi||{})[xi.OnPush=0]="OnPush",xi[xi.Default=1]="Default",xi))(),$=(()=>{return(g=$||($={}))[g.Emulated=0]="Emulated",g[g.None=2]="None",g[g.ShadowDom=3]="ShadowDom",$;var g})();const de=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ct={},ze=[],Xe=q({\u0275cmp:q}),ni=q({\u0275dir:q}),Ct=q({\u0275pipe:q}),an=q({\u0275mod:q}),it=q({\u0275fac:q}),Tt=q({__NG_ELEMENT_ID__:q});let kt=0;function hn(g){return Sn(()=>{const C=!0===g.standalone,y={},x={type:g.type,providersResolver:null,decls:g.decls,vars:g.vars,factory:null,template:g.template||null,consts:g.consts||null,ngContentSelectors:g.ngContentSelectors,hostBindings:g.hostBindings||null,hostVars:g.hostVars||0,hostAttrs:g.hostAttrs||null,contentQueries:g.contentQueries||null,declaredInputs:y,inputs:null,outputs:null,exportAs:g.exportAs||null,onPush:g.changeDetection===xi.OnPush,directiveDefs:null,pipeDefs:null,standalone:C,dependencies:C&&g.dependencies||null,getStandaloneInjector:null,selectors:g.selectors||ze,viewQuery:g.viewQuery||null,features:g.features||null,data:g.data||{},encapsulation:g.encapsulation||$.Emulated,id:"c"+kt++,styles:g.styles||ze,_:null,setInput:null,schemas:g.schemas||null,tView:null},S=g.dependencies,T=g.features;return x.inputs=po(g.inputs,y),x.outputs=po(g.outputs),T&&T.forEach(D=>D(x)),x.directiveDefs=S?()=>("function"==typeof S?S():S).map(bi).filter(Lr):null,x.pipeDefs=S?()=>("function"==typeof S?S():S).map(ki).filter(Lr):null,x})}function gr(g,b,C){const y=g.\u0275cmp;y.directiveDefs=()=>("function"==typeof b?b():b).map(bi),y.pipeDefs=()=>("function"==typeof C?C():C).map(ki)}function bi(g){return xt(g)||Ii(g)}function Lr(g){return null!==g}function jr(g){return Sn(()=>({type:g.type,bootstrap:g.bootstrap||ze,declarations:g.declarations||ze,imports:g.imports||ze,exports:g.exports||ze,transitiveCompileScopes:null,schemas:g.schemas||null,id:g.id||null}))}function po(g,b){if(null==g)return ct;const C={};for(const y in g)if(g.hasOwnProperty(y)){let x=g[y],S=x;Array.isArray(x)&&(S=x[1],x=x[0]),C[x]=y,b&&(b[x]=S)}return C}const Kd=hn;function $l(g){return{type:g.type,name:g.name,factory:null,pure:!1!==g.pure,standalone:!0===g.standalone,onDestroy:g.type.prototype.ngOnDestroy||null}}function xt(g){return g[Xe]||null}function Ii(g){return g[ni]||null}function ki(g){return g[Ct]||null}function Yi(g,b){const C=g[an]||null;if(!C&&!0===b)throw new Error(`Type ${ee(g)} does not have '\u0275mod' property.`);return C}function Et(g){return Array.isArray(g)&&"object"==typeof g[1]}function sn(g){return Array.isArray(g)&&!0===g[1]}function ya(g){return 0!=(8&g.flags)}function Wn(g){return 2==(2&g.flags)}function br(g){return 1==(1&g.flags)}function Oi(g){return null!==g.template}function Ql(g){return 0!=(256&g[2])}function Cr(g,b){return g.hasOwnProperty(it)?g[it]:null}class Jl{constructor(b,C,y){this.previousValue=b,this.currentValue=C,this.firstChange=y}isFirstChange(){return this.firstChange}}function mo(){return Ss}function Ss(g){return g.type.prototype.ngOnChanges&&(g.setInput=go),Kl}function Kl(){const g=dt(this),b=g?.current;if(b){const C=g.previous;if(C===ct)g.previous=b;else for(let y in b)C[y]=b[y];g.current=null,this.ngOnChanges(b)}}function go(g,b,C,y){const x=dt(g)||function xa(g,b){return g[fn]=b}(g,{previous:ct,current:null}),S=x.current||(x.current={}),T=x.previous,D=this.declaredInputs[C],H=T[D];S[D]=new Jl(H&&H.currentValue,b,T===ct),g[y]=b}mo.ngInherit=!0;const fn="__ngSimpleChanges__";function dt(g){return g[fn]||null}function Yt(g){for(;Array.isArray(g);)g=g[0];return g}function Fr(g,b){return Yt(b[g])}function Ti(g,b){return Yt(b[g.index])}function Co(g,b){return g.data[b]}function Sa(g,b){return g[b]}function qi(g,b){const C=b[g];return Et(C)?C:C[0]}function P(g){return 4==(4&g[2])}function O(g){return 64==(64&g[2])}function j(g,b){return null==b?null:g[b]}function ne(g){g[18]=0}function me(g,b){g[5]+=b;let C=g,y=g[3];for(;null!==y&&(1===b&&1===C[5]||-1===b&&0===C[5]);)y[5]+=b,C=y,y=y[3]}const ue={lFrame:nf(null),bindingsEnabled:!0};function vi(){return ue.bindingsEnabled}function we(){return ue.lFrame.lView}function ot(){return ue.lFrame.tView}function Mn(g){return ue.lFrame.contextLView=g,g[8]}function Ji(g){return ue.lFrame.contextLView=null,g}function Qt(){let g=Ta();for(;null!==g&&64===g.type;)g=g.parent;return g}function Ta(){return ue.lFrame.currentTNode}function zi(g,b){const C=ue.lFrame;C.currentTNode=g,C.isParent=b}function ru(){return ue.lFrame.isParent}function au(){ue.lFrame.isParent=!1}function Gi(){const g=ue.lFrame;let b=g.bindingRootIndex;return-1===b&&(b=g.bindingRootIndex=g.tView.bindingStartIndex),b}function Ea(){return ue.lFrame.bindingIndex++}function Qn(g){const b=ue.lFrame,C=b.bindingIndex;return b.bindingIndex=b.bindingIndex+g,C}function Nr(g,b){const C=ue.lFrame;C.bindingIndex=C.bindingRootIndex=g,tc(b)}function tc(g){ue.lFrame.currentDirectiveIndex=g}function ou(g){const b=ue.lFrame.currentDirectiveIndex;return-1===b?null:g[b]}function Xp(){return ue.lFrame.currentQueryIndex}function su(g){ue.lFrame.currentQueryIndex=g}function Kb(g){const b=g[1];return 2===b.type?b.declTNode:1===b.type?g[6]:null}function ef(g,b,C){if(C&Ke.SkipSelf){let x=b,S=g;for(;!(x=x.parent,null!==x||C&Ke.Host||(x=Kb(S),null===x||(S=S[15],10&x.type))););if(null===x)return!1;b=x,g=S}const y=ue.lFrame=tf();return y.currentTNode=b,y.lView=g,!0}function lu(g){const b=tf(),C=g[1];ue.lFrame=b,b.currentTNode=C.firstChild,b.lView=g,b.tView=C,b.contextLView=g,b.bindingIndex=C.bindingStartIndex,b.inI18n=!1}function tf(){const g=ue.lFrame,b=null===g?null:g.child;return null===b?nf(g):b}function nf(g){const b={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:g,child:null,inI18n:!1};return null!==g&&(g.child=b),b}function rf(){const g=ue.lFrame;return ue.lFrame=g.parent,g.currentTNode=null,g.lView=null,g}const af=rf;function cu(){const g=rf();g.isParent=!0,g.tView=null,g.selectedIndex=-1,g.contextLView=null,g.elementDepthCount=0,g.currentDirectiveIndex=-1,g.currentNamespace=null,g.bindingRootIndex=-1,g.bindingIndex=-1,g.currentQueryIndex=0}function Li(){return ue.lFrame.selectedIndex}function Yn(g){ue.lFrame.selectedIndex=g}function qt(){const g=ue.lFrame;return Co(g.tView,g.selectedIndex)}function Jn(){ue.lFrame.currentNamespace="svg"}function du(){!function lf(){ue.lFrame.currentNamespace=null}()}function Rs(g,b){for(let C=b.directiveStart,y=b.directiveEnd;C=y)break}else b[H]<0&&(g[18]+=65536),(D>11>16&&(3&g[2])===b){g[2]+=2048;try{S.call(D)}finally{}}}else try{S.call(D)}finally{}}class Da{constructor(b,C,y){this.factory=b,this.resolving=!1,this.canSeeViewProviders=C,this.injectImpl=y}}function ks(g,b,C){let y=0;for(;yb){T=S-1;break}}}for(;S>16}(g),y=b;for(;C>0;)y=y[15],C--;return y}let ff=!0;function pu(g){const b=ff;return ff=g,b}let rC=0;const Zn={};function Pa(g,b){const C=sc(g,b);if(-1!==C)return C;const y=b[1];y.firstCreatePass&&(g.injectorIndex=b.length,Ki(y.data,g),Ki(b,null),Ki(y.blueprint,null));const x=Bs(g,b),S=g.injectorIndex;if(hf(x)){const T=vo(x),D=Ra(x,b),H=D[1].data;for(let k=0;k<8;k++)b[S+k]=D[T+k]|H[T+k]}return b[S+8]=x,S}function Ki(g,b){g.push(0,0,0,0,0,0,0,0,b)}function sc(g,b){return-1===g.injectorIndex||g.parent&&g.parent.injectorIndex===g.injectorIndex||null===b[g.injectorIndex+8]?-1:g.injectorIndex}function Bs(g,b){if(g.parent&&-1!==g.parent.injectorIndex)return g.parent.injectorIndex;let C=0,y=null,x=b;for(;null!==x;){if(y=bf(x),null===y)return-1;if(C++,x=x[15],-1!==y.injectorIndex)return y.injectorIndex|C<<16}return-1}function lc(g,b,C){!function aC(g,b,C){let y;"string"==typeof C?y=C.charCodeAt(0)||0:C.hasOwnProperty(Tt)&&(y=C[Tt]),null==y&&(y=C[Tt]=rC++);const x=255&y;b.data[g+(x>>5)]|=1<=0?255&b:lC:b}(C);if("function"==typeof S){if(!ef(b,g,y))return y&Ke.Host?fu(x,0,y):Vs(b,C,y,x);try{const T=S(y);if(null!=T||y&Ke.Optional)return T;Ce()}finally{af()}}else if("number"==typeof S){let T=null,D=sc(g,b),H=-1,k=y&Ke.Host?b[16][6]:null;for((-1===D||y&Ke.SkipSelf)&&(H=-1===D?Bs(g,b):b[D+8],-1!==H&&xo(y,!1)?(T=b[1],D=vo(H),b=Ra(H,b)):D=-1);-1!==D;){const B=b[1];if(Ao(S,D,B.data)){const U=cc(D,b,C,T,y,k);if(U!==Zn)return U}H=b[D+8],-1!==H&&xo(y,b[1].data[D+8]===k)&&Ao(S,D,b)?(T=B,D=vo(H),b=Ra(H,b)):D=-1}}return x}function cc(g,b,C,y,x,S){const T=b[1],D=T.data[g+8],B=zr(D,T,C,null==y?Wn(D)&&ff:y!=T&&0!=(3&D.type),x&Ke.Host&&S===D);return null!==B?Os(b,T,B,D):Zn}function zr(g,b,C,y,x){const S=g.providerIndexes,T=b.data,D=1048575&S,H=g.directiveStart,B=S>>20,te=x?D+B:g.directiveEnd;for(let se=y?D:D+B;se=H&&_e.type===C)return se}if(x){const se=T[H];if(se&&Oi(se)&&se.type===C)return H}return null}function Os(g,b,C,y){let x=g[C];const S=b.data;if(function eC(g){return g instanceof Da}(x)){const T=x;T.resolving&&function Le(g,b){const C=b?`. Dependency path: ${b.join(" > ")} > ${g}`:"";throw new ae(-200,`Circular dependency in DI detected for ${g}${C}`)}(function be(g){return"function"==typeof g?g.name||g.toString():"object"==typeof g&&null!=g&&"function"==typeof g.type?g.type.name||g.type.toString():fe(g)}(S[C]));const D=pu(T.canSeeViewProviders);T.resolving=!0;const H=T.injectImpl?Pi(T.injectImpl):null;ef(g,y,Ke.Default);try{x=g[C]=T.factory(void 0,S,g,y),b.firstCreatePass&&C>=y.directiveStart&&function qr(g,b,C){const{ngOnChanges:y,ngOnInit:x,ngDoCheck:S}=b.type.prototype;if(y){const T=Ss(b);(C.preOrderHooks||(C.preOrderHooks=[])).push(g,T),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(g,T)}x&&(C.preOrderHooks||(C.preOrderHooks=[])).push(0-g,x),S&&((C.preOrderHooks||(C.preOrderHooks=[])).push(g,S),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(g,S))}(C,S[C],b)}finally{null!==H&&Pi(H),pu(D),T.resolving=!1,af()}}return x}function Ao(g,b,C){return!!(C[b+(g>>5)]&1<{const b=g.prototype.constructor,C=b[it]||mu(b),y=Object.prototype;let x=Object.getPrototypeOf(g.prototype).constructor;for(;x&&x!==y;){const S=x[it]||mu(x);if(S&&S!==C)return S;x=Object.getPrototypeOf(x)}return S=>new S})}function mu(g){return oe(g)?()=>{const b=mu(re(g));return b&&b()}:Cr(g)}function bf(g){const b=g[1],C=b.type;return 2===C?b.declTNode:1===C?g[6]:null}function Cf(g){return function oC(g,b){if("class"===b)return g.classes;if("style"===b)return g.styles;const C=g.attrs;if(C){const y=C.length;let x=0;for(;x{const y=function gu(g){return function(...C){if(g){const y=g(...C);for(const x in y)this[x]=y[x]}}}(b);function x(...S){if(this instanceof x)return y.apply(this,S),this;const T=new x(...S);return D.annotation=T,D;function D(H,k,B){const U=H.hasOwnProperty(Gr)?H[Gr]:Object.defineProperty(H,Gr,{value:[]})[Gr];for(;U.length<=B;)U.push(null);return(U[B]=U[B]||[]).push(T),H}}return C&&(x.prototype=Object.create(C.prototype)),x.prototype.ngMetadataName=g,x.annotationCls=x,x})}class Pt{constructor(b,C){this._desc=b,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof C?this.__NG_ELEMENT_ID__=C:void 0!==C&&(this.\u0275prov=St({token:this,providedIn:C.providedIn||"root",factory:C.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Zi(g,b){void 0===b&&(b=g);for(let C=0;CArray.isArray(C)?Xn(C,b):b(C))}function js(g,b,C){b>=g.length?g.push(C):g.splice(b,0,C)}function ka(g,b){return b>=g.length-1?g.pop():g.splice(b,1)[0]}function Do(g,b){const C=[];for(let y=0;y=0?g[1|y]=C:(y=~y,function hC(g,b,C,y){let x=g.length;if(x==b)g.push(C,y);else if(1===x)g.push(y,g[0]),g[0]=C;else{for(x--,g.push(g[x-1],g[x]);x>b;)g[x]=g[x-2],x--;g[b]=C,g[b+1]=y}}(g,y,b,C)),y}function Ro(g,b){const C=Po(g,b);if(C>=0)return g[1|C]}function Po(g,b){return function xf(g,b,C){let y=0,x=g.length>>C;for(;x!==y;){const S=y+(x-y>>1),T=g[S<b?x=S:y=S+1}return~(x<g,createScript:g=>g,createScriptURL:g=>g})}catch{}return Cc}()?.createHTML(g)||g}class Wr{constructor(b){this.changingThisBreaksApplicationSecurity=b}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class kC extends Wr{getTypeName(){return"HTML"}}class Du extends Wr{getTypeName(){return"Style"}}class BC extends Wr{getTypeName(){return"Script"}}class VC extends Wr{getTypeName(){return"URL"}}class OC extends Wr{getTypeName(){return"ResourceURL"}}function $r(g){return g instanceof Wr?g.changingThisBreaksApplicationSecurity:g}function Oo(g,b){const C=function Qr(g){return g instanceof Wr&&g.getTypeName()||null}(g);if(null!=C&&C!==b){if("ResourceURL"===C&&"URL"===b)return!0;throw new Error(`Required a safe ${b}, got a ${C} (see https://g.co/ng/security#xss)`)}return C===b}function Hu(g){return new kC(g)}function gi(g){return new Du(g)}function nx(g){return new BC(g)}function Lo(g){return new VC(g)}function Bf(g){return new OC(g)}class $s{constructor(b){this.inertDocumentHelper=b}getInertBodyElement(b){b=""+b;try{const C=(new window.DOMParser).parseFromString(Vo(b),"text/html").body;return null===C?this.inertDocumentHelper.getInertBodyElement(b):(C.removeChild(C.firstChild),C)}catch{return null}}}class LC{constructor(b){if(this.defaultDoc=b,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const C=this.inertDocument.createElement("html");this.inertDocument.appendChild(C);const y=this.inertDocument.createElement("body");C.appendChild(y)}}getInertBodyElement(b){const C=this.inertDocument.createElement("template");if("content"in C)return C.innerHTML=Vo(b),C;const y=this.inertDocument.createElement("body");return y.innerHTML=Vo(b),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(b){const C=b.attributes;for(let x=C.length-1;0xr(b.trim())).join(", ")),this.buf.push(" ",T,'="',UC(H),'"')}var g;return this.buf.push(">"),!0}endElement(b){const C=b.nodeName.toLowerCase();Lf.hasOwnProperty(C)&&!vc.hasOwnProperty(C)&&(this.buf.push(""))}chars(b){this.buf.push(UC(b))}checkClobberedElement(b,C){if(C&&(b.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${b.outerHTML}`);return C}}const Ff=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sx=/([^\#-~ |!])/g;function UC(g){return g.replace(/&/g,"&").replace(Ff,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(sx,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(//g,">")}let Sc;function Uf(g,b){let C=null;try{Sc=Sc||function Ru(g){const b=new LC(g);return function er(){try{return!!(new window.DOMParser).parseFromString(Vo(""),"text/html")}catch{return!1}}()?new $s(b):b}(g);let y=b?String(b):"";C=Sc.getInertBodyElement(y);let x=5,S=y;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,y=S,S=C.innerHTML,C=Sc.getInertBodyElement(y)}while(y!==S);return Vo((new jf).sanitizeChildren(Iu(C)||C))}finally{if(C){const y=Iu(C)||C;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function Iu(g){return"content"in g&&function Nf(g){return g.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===g.nodeName}(g)?g.content:null}var ai=(()=>((ai=ai||{})[ai.NONE=0]="NONE",ai[ai.HTML=1]="HTML",ai[ai.STYLE=2]="STYLE",ai[ai.SCRIPT=3]="SCRIPT",ai[ai.URL=4]="URL",ai[ai.RESOURCE_URL=5]="RESOURCE_URL",ai))();function qf(g){const b=function Tc(){const g=we();return g&&g[12]}();return b?b.sanitize(ai.URL,g)||"":Oo(g,"URL")?$r(g):xr(fe(g))}const zf=new Pt("ENVIRONMENT_INITIALIZER"),GC=new Pt("INJECTOR",-1),Gf=new Pt("INJECTOR_DEF_TYPES");class WC{get(b,C=Io){if(C===Io){const y=new Error(`NullInjectorError: No provider for ${ee(b)}!`);throw y.name="NullInjectorError",y}return C}}function hx(...g){return{\u0275providers:$C(0,g)}}function $C(g,...b){const C=[],y=new Set;let x;return Xn(b,S=>{const T=S;Ec(T,C,[],y)&&(x||(x=[]),x.push(T))}),void 0!==x&&QC(x,C),C}function QC(g,b){for(let C=0;C{b.push(S)})}}function Ec(g,b,C,y){if(!(g=re(g)))return!1;let x=null,S=uo(g);const T=!S&&xt(g);if(S||T){if(T&&!T.standalone)return!1;x=g}else{const H=g.ngModule;if(S=uo(H),!S)return!1;x=H}const D=y.has(x);if(T){if(D)return!1;if(y.add(x),T.dependencies){const H="function"==typeof T.dependencies?T.dependencies():T.dependencies;for(const k of H)Ec(k,b,C,y)}}else{if(!S)return!1;{if(null!=S.imports&&!D){let k;y.add(x);try{Xn(S.imports,B=>{Ec(B,b,C,y)&&(k||(k=[]),k.push(B))})}finally{}void 0!==k&&QC(k,b)}if(!D){const k=Cr(x)||(()=>new x);b.push({provide:x,useFactory:k,deps:ze},{provide:Gf,useValue:x,multi:!0},{provide:zf,useValue:()=>Jt(x),multi:!0})}const H=S.providers;null==H||D||Xn(H,B=>{b.push(B)})}}return x!==g&&void 0!==g.providers}const px=q({provide:String,useValue:q});function Wf(g){return null!==g&&"object"==typeof g&&px in g}function Fo(g){return"function"==typeof g}const $f=new Pt("Set Injector scope."),Bu={},mx={};let Qf;function Vu(){return void 0===Qf&&(Qf=new WC),Qf}class Uo{}class KC extends Uo{constructor(b,C,y,x){super(),this.parent=C,this.source=y,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Jf(b,T=>this.processProvider(T)),this.records.set(GC,Qs(void 0,this)),x.has("environment")&&this.records.set(Uo,Qs(void 0,this));const S=this.records.get($f);null!=S&&"string"==typeof S.value&&this.scopes.add(S.value),this.injectorDefTypes=new Set(this.get(Gf.multi,ze,Ke.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();for(const b of this._onDestroyHooks)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(b){this._onDestroyHooks.push(b)}runInContext(b){this.assertNotDestroyed();const C=ko(this),y=Pi(void 0);try{return b()}finally{ko(C),Pi(y)}}get(b,C=Io,y=Ke.Default){this.assertNotDestroyed();const x=ko(this),S=Pi(void 0);try{if(!(y&Ke.SkipSelf)){let D=this.records.get(b);if(void 0===D){const H=function wx(g){return"function"==typeof g||"object"==typeof g&&g instanceof Pt}(b)&&Or(b);D=H&&this.injectableDefInScope(H)?Qs(Yf(b),Bu):null,this.records.set(b,D)}if(null!=D)return this.hydrate(b,D)}return(y&Ke.Self?Vu():this.parent).get(b,C=y&Ke.Optional&&C===Io?null:C)}catch(T){if("NullInjectorError"===T.name){if((T[pc]=T[pc]||[]).unshift(ee(b)),x)throw T;return function vC(g,b,C,y){const x=g[pc];throw b[Tf]&&x.unshift(b[Tf]),g.message=function Au(g,b,C,y=null){g=g&&"\n"===g.charAt(0)&&"\u0275"==g.charAt(1)?g.slice(2):g;let x=ee(b);if(Array.isArray(b))x=b.map(ee).join(" -> ");else if("object"==typeof b){let S=[];for(let T in b)if(b.hasOwnProperty(T)){let D=b[T];S.push(T+":"+("string"==typeof D?JSON.stringify(D):ee(D)))}x=`{${S.join(", ")}}`}return`${C}${y?"("+y+")":""}[${x}]: ${g.replace(CC,"\n ")}`}("\n"+g.message,x,C,y),g.ngTokenPath=x,g[pc]=null,g}(T,b,"R3InjectorError",this.source)}throw T}finally{Pi(S),ko(x)}}resolveInjectorInitializers(){const b=ko(this),C=Pi(void 0);try{const y=this.get(zf.multi,ze,Ke.Self);for(const x of y)x()}finally{ko(b),Pi(C)}}toString(){const b=[],C=this.records;for(const y of C.keys())b.push(ee(y));return`R3Injector[${b.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ae(205,!1)}processProvider(b){let C=Fo(b=re(b))?b:re(b&&b.provide);const y=function _x(g){return Wf(g)?Qs(void 0,g.useValue):Qs(ZC(g),Bu)}(b);if(Fo(b)||!0!==b.multi)this.records.get(C);else{let x=this.records.get(C);x||(x=Qs(void 0,Bu,!0),x.factory=()=>vu(x.multi),this.records.set(C,x)),C=b,x.multi.push(b)}this.records.set(C,y)}hydrate(b,C){return C.value===Bu&&(C.value=mx,C.value=C.factory()),"object"==typeof C.value&&C.value&&function Cx(g){return null!==g&&"object"==typeof g&&"function"==typeof g.ngOnDestroy}(C.value)&&this._ngOnDestroyHooks.add(C.value),C.value}injectableDefInScope(b){if(!b.providedIn)return!1;const C=re(b.providedIn);return"string"==typeof C?"any"===C||this.scopes.has(C):this.injectorDefTypes.has(C)}}function Yf(g){const b=Or(g),C=null!==b?b.factory:Cr(g);if(null!==C)return C;if(g instanceof Pt)throw new ae(204,!1);if(g instanceof Function)return function gx(g){const b=g.length;if(b>0)throw Do(b,"?"),new ae(204,!1);const C=function co(g){const b=g&&(g[qn]||g[ma]);if(b){const C=function Yd(g){if(g.hasOwnProperty("name"))return g.name;const b=(""+g).match(/^function\s*([^\s(]+)/);return null===b?"":b[1]}(g);return console.warn(`DEPRECATED: DI is instantiating a token "${C}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${C}" class.`),b}return null}(g);return null!==C?()=>C.factory(g):()=>new g}(g);throw new ae(204,!1)}function ZC(g,b,C){let y;if(Fo(g)){const x=re(g);return Cr(x)||Yf(x)}if(Wf(g))y=()=>re(g.useValue);else if(function JC(g){return!(!g||!g.useFactory)}(g))y=()=>g.useFactory(...vu(g.deps||[]));else if(function YC(g){return!(!g||!g.useExisting)}(g))y=()=>Jt(re(g.useExisting));else{const x=re(g&&(g.useClass||g.provide));if(!function bx(g){return!!g.deps}(g))return Cr(x)||Yf(x);y=()=>new x(...vu(g.deps))}return y}function Qs(g,b,C=!1){return{factory:g,value:b,multi:C?[]:void 0}}function yx(g){return!!g.\u0275providers}function Jf(g,b){for(const C of g)Array.isArray(C)?Jf(C,b):yx(C)?Jf(C.\u0275providers,b):b(C)}class Kf{}class Ax{resolveComponentFactory(b){throw function vx(g){const b=Error(`No component factory found for ${ee(g)}. Did you add it to @NgModule.entryComponents?`);return b.ngComponent=g,b}(b)}}let Mc=(()=>{class g{}return g.NULL=new Ax,g})();function xx(){return Ys(Qt(),we())}function Ys(g,b){return new Dc(Ti(g,b))}let Dc=(()=>{class g{constructor(C){this.nativeElement=C}}return g.__NG_ELEMENT_ID__=xx,g})();function Sx(g){return g instanceof Dc?g.nativeElement:g}class tw{}let Tx=(()=>{class g{}return g.__NG_ELEMENT_ID__=()=>function Ex(){const g=we(),C=qi(Qt().index,g);return(Et(C)?C:g)[11]}(),g})(),Mx=(()=>{class g{}return g.\u0275prov=St({token:g,providedIn:"root",factory:()=>null}),g})();class iw{constructor(b){this.full=b,this.major=b.split(".")[0],this.minor=b.split(".")[1],this.patch=b.split(".").slice(2).join(".")}}const Dx=new iw("14.1.2"),Zf={};function nm(g){return g.ngOriginalError}class Hc{constructor(){this._console=console}handleError(b){const C=this._findOriginalError(b);this._console.error("ERROR",b),C&&this._console.error("ORIGINAL ERROR",C)}_findOriginalError(b){let C=b&&nm(b);for(;C&&nm(C);)C=nm(C);return C||null}}const rm=new Map;let Ux=0;const Pc="__ngContext__";function Mi(g,b){Et(b)?(g[Pc]=b[20],function qx(g){rm.set(g[20],g)}(b)):g[Pc]=b}function Js(g){const b=g[Pc];return"number"==typeof b?function lw(g){return rm.get(g)||null}(b):b||null}function Ou(g){const b=Js(g);return b?Et(b)?b:b.lView:null}const dw=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(de))();function Xi(g){return g instanceof Function?g():g}var Hn=(()=>((Hn=Hn||{})[Hn.Important=1]="Important",Hn[Hn.DashCase=2]="DashCase",Hn))();function sm(g,b){return undefined(g,b)}function Ic(g){const b=g[3];return sn(b)?b[3]:b}function cm(g){return um(g[13])}function dm(g){return um(g[4])}function um(g){for(;null!==g&&!sn(g);)g=g[4];return g}function ja(g,b,C,y,x){if(null!=y){let S,T=!1;sn(y)?S=y:Et(y)&&(T=!0,y=y[0]);const D=Yt(y);0===g&&null!==C?null==x?Tw(b,C,D):No(b,C,D,x||null,!0):1===g&&null!==C?No(b,C,D,x||null,!0):2===g?function bm(g,b,C){const y=qo(g,b);y&&function Jx(g,b,C,y){g.removeChild(b,C,y)}(g,y,b,C)}(b,D,T):3===g&&b.destroyNode(D),null!=S&&function Cm(g,b,C,y,x){const S=C[7];S!==Yt(C)&&ja(b,g,y,S,x);for(let D=10;D0&&(g[C-1][4]=y[4]);const S=ka(g,10+b);!function bw(g,b){gn(g,b,b[11],2,null,null),b[0]=null,b[6]=null}(y[1],y);const T=S[19];null!==T&&T.detachView(S[1]),y[3]=null,y[4]=null,y[2]&=-65}return y}function fm(g,b){if(!(128&b[2])){const C=b[11];C.destroyNode&&gn(g,b,C,3,null,null),function yw(g){let b=g[13];if(!b)return qu(g[1],g);for(;b;){let C=null;if(Et(b))C=b[13];else{const y=b[10];y&&(C=y)}if(!C){for(;b&&!b[4]&&b!==g;)Et(b)&&qu(b[1],b),b=b[3];null===b&&(b=g),Et(b)&&qu(b[1],b),C=b&&b[4]}b=C}}(b)}}function qu(g,b){if(!(128&b[2])){b[2]&=-65,b[2]|=128,function zu(g,b){let C;if(null!=g&&null!=(C=g.destroyHooks))for(let y=0;y=0?y[x=k]():y[x=-k].unsubscribe(),S+=2}else{const T=y[x=C[S+1]];C[S].call(T)}if(null!==y){for(let S=x+1;SS?"":x[U+1].toLowerCase();const se=8&y?te:null;if(se&&-1!==wm(se,k,0)||2&y&&k!==te){if(_n(y))return!1;T=!0}}}}else{if(!T&&!_n(y)&&!_n(H))return!1;if(T&&_n(H))continue;T=!1,y=H|1&y}}return _n(y)||T}function _n(g){return 0==(1&g)}function eS(g,b,C,y){if(null===b)return-1;let x=0;if(y||!C){let S=!1;for(;x-1)for(C++;C0?'="'+D+'"':"")+"]"}else 8&y?x+="."+T:4&y&&(x+=" "+T);else""!==x&&!_n(T)&&(b+=Am(S,x),x=""),y=T,S=S||!_n(y);C++}return""!==x&&(b+=Am(S,x)),b}const Se={};function Vw(g){Ow(ot(),we(),Li()+g,!1)}function Ow(g,b,C,y){if(!y)if(3==(3&b[2])){const S=g.preOrderCheckHooks;null!==S&&ic(b,S,C)}else{const S=g.preOrderHooks;null!==S&&Ma(b,S,0,C)}Yn(C)}function bn(g,b=null,C=null,y){const x=tl(g,b,C,y);return x.resolveInjectorInitializers(),x}function tl(g,b=null,C=null,y,x=new Set){const S=[C||ze,hx(g)];return y=y||("object"==typeof g?void 0:ee(g)),new KC(S,b||Vu(),y||null,x)}let qa=(()=>{class g{static create(C,y){if(Array.isArray(C))return bn({name:""},y,C,"");{const x=C.name??"";return bn({name:x},C.parent,C.providers,x)}}}return g.THROW_IF_NOT_FOUND=Io,g.NULL=new WC,g.\u0275prov=St({token:g,providedIn:"any",factory:()=>Jt(GC)}),g.__NG_ELEMENT_ID__=-1,g})();function il(g,b=Ke.Default){const C=we();return null===C?Jt(g,b):mf(Qt(),C,re(g),b)}function Ww(){throw new Error("invalid")}function ih(g,b){return g<<17|b<<2}function ir(g){return g>>17&32767}function nh(g){return 2|g}function Kr(g){return(131068&g)>>2}function rh(g,b){return-131069&g|b<<2}function ah(g){return 1|g}function Nm(g,b){const C=g.contentQueries;if(null!==C)for(let y=0;y22&&Ow(g,b,22,!1),C(y,x)}finally{Yn(S)}}function ph(g,b,C){if(ya(b)){const x=b.directiveEnd;for(let S=b.directiveStart;S0;){const C=g[--b];if("number"==typeof C&&C<0)return C}return 0})(D)!=H&&D.push(H),D.push(y,x,T)}}function ly(g,b){null!==g.hostBindings&&g.hostBindings(1,b)}function cy(g,b){b.flags|=2,(g.components||(g.components=[])).push(b.index)}function wh(g,b,C){if(C){if(b.exportAs)for(let y=0;y0&&nr(C)}}function nr(g){for(let y=cm(g);null!==y;y=dm(y))for(let x=10;x0&&nr(S)}const C=g[1].components;if(null!==C)for(let y=0;y0&&nr(x)}}function $m(g,b){const C=qi(b,g),y=C[1];(function dy(g,b){for(let C=b.length;CPromise.resolve(null))();function py(g){return g[7]||(g[7]=[])}function fy(g){return g.cleanup||(g.cleanup=[])}function Th(g,b,C){return(null===g||Oi(g))&&(C=function Ds(g){for(;Array.isArray(g);){if("object"==typeof g[1])return g;g=g[0]}return null}(C[b.index])),C[11]}function Km(g,b){const C=g[9],y=C?C.get(Hc,null):null;y&&y.handleError(b)}function Eh(g,b,C,y,x){for(let S=0;S-1&&(Nu(b,y),ka(C,y))}this._attachedToViewContainer=!1}fm(this._lView[1],this._lView)}onDestroy(b){Ga(this._lView[1],this._lView,null,b)}markForCheck(){Sh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Kc(g,b,C){const y=b[10];y.begin&&y.begin();try{Pn(g,b,g.template,C)}catch(x){throw Km(b,x),x}finally{y.end&&y.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ww(g,b){gn(g,b,b[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(b){if(this._attachedToViewContainer)throw new ae(902,!1);this._appRef=b}}class my extends cl{constructor(b){super(b),this._view=b}detectChanges(){Ym(this._view)}checkNoChanges(){}get context(){return null}}class Mr extends Mc{constructor(b){super(),this.ngModule=b}resolveComponentFactory(b){const C=xt(b);return new Zc(C,this.ngModule)}}function Mh(g){const b=[];for(let C in g)g.hasOwnProperty(C)&&b.push({propName:g[C],templateName:C});return b}class SS{constructor(b,C){this.injector=b,this.parentInjector=C}get(b,C,y){const x=this.injector.get(b,Zf,y);return x!==Zf||C===Zf?x:this.parentInjector.get(b,C,y)}}class Zc extends Kf{constructor(b,C){super(),this.componentDef=b,this.ngModule=C,this.componentType=b.type,this.selector=function kw(g){return g.map(Iw).join(",")}(b.selectors),this.ngContentSelectors=b.ngContentSelectors?b.ngContentSelectors:[],this.isBoundToModule=!!C}get inputs(){return Mh(this.componentDef.inputs)}get outputs(){return Mh(this.componentDef.outputs)}create(b,C,y,x){let S=(x=x||this.ngModule)instanceof Uo?x:x?.injector;S&&null!==this.componentDef.getStandaloneInjector&&(S=this.componentDef.getStandaloneInjector(S)||S);const T=S?new SS(b,S):b,D=T.get(tw,null);if(null===D)throw new ae(407,!1);const H=T.get(Mx,null),k=D.createRenderer(null,this.componentDef),B=this.componentDef.selectors[0][0]||"div",U=y?function ry(g,b,C){return g.selectRootElement(b,C===$.ShadowDom)}(k,y,this.componentDef.encapsulation):Fu(D.createRenderer(null,this.componentDef),B,function Zm(g){const b=g.toLowerCase();return"svg"===b?"svg":"math"===b?"math":null}(B)),te=this.componentDef.onPush?288:272,se=function _y(g,b){return{components:[],scheduler:g||dw,clean:hy,playerHandler:b||null,flags:0}}(),_e=gh(0,null,null,1,0,null,null,null,null,null),Me=al(null,_e,se,te,null,null,D,k,H,T,null);let Be,Ue;lu(Me);try{const Ye=function rr(g,b,C,y,x,S){const T=C[1];C[22]=g;const H=ta(T,22,2,"#host",null),k=H.mergedAttrs=b.hostAttrs;null!==k&&(na(H,k,!0),null!==g&&(ks(x,g,k),null!==H.classes&&Ua(x,g,H.classes),null!==H.styles&&Ju(x,g,H.styles)));const B=y.createRenderer(g,b),U=al(C,zm(b),null,b.onPush?32:16,C[22],H,y,B,S||null,null,null);return T.firstCreatePass&&(lc(Pa(H,C),T,b.type),cy(T,H),yh(H,C.length,1)),xh(C,U),C[22]=U}(U,this.componentDef,Me,D,k);if(U)if(y)ks(k,U,["ng-version",Dx.full]);else{const{attrs:ve,classes:$e}=function Bw(g){const b=[],C=[];let y=1,x=2;for(;y0&&Ua(k,U,$e.join(" "))}if(Ue=Co(_e,22),void 0!==C){const ve=Ue.projection=[];for(let $e=0;$e=0;y--){const x=g[y];x.hostVars=b+=x.hostVars,x.hostAttrs=Ha(x.hostAttrs,C=Ha(C,x.hostAttrs))}}(y)}function tg(g){return g===ct?{}:g===ze?[]:g}function ig(g,b){const C=g.viewQuery;g.viewQuery=C?(y,x)=>{b(y,x),C(y,x)}:b}function by(g,b){const C=g.contentQueries;g.contentQueries=C?(y,x,S)=>{b(y,x,S),C(y,x,S)}:b}function Dr(g,b){const C=g.hostBindings;g.hostBindings=C?(y,x)=>{b(y,x),C(y,x)}:b}let dl=null;function je(){if(!dl){const g=de.Symbol;if(g&&g.iterator)dl=g.iterator;else{const b=Object.getOwnPropertyNames(Map.prototype);for(let C=0;CD(Yt(gt[y.index])):y.index;let $e=null;if(!D&&H&&($e=function kS(g,b,C,y){const x=g.cleanup;if(null!=x)for(let S=0;SH?D[H]:null}"string"==typeof T&&(S+=2)}return null}(g,b,x,y.index)),null!==$e)($e.__ngLastListenerFn__||$e).__ngNextListenerFn__=S,$e.__ngLastListenerFn__=S,se=!1;else{S=fg(y,b,U,S,!1);const gt=C.listen(Ue,x,S);te.push(S,gt),B&&B.push(x,ve,Ye,Ye+1)}}else S=fg(y,b,U,S,!1);const _e=y.outputs;let Me;if(se&&null!==_e&&(Me=_e[x])){const Be=Me.length;if(Be)for(let Ue=0;Ue0;)b=b[15],g--;return b}(g,ue.lFrame.contextLView))[8]}(g)}function BS(g,b){let C=null;const y=function tS(g){const b=g.attrs;if(null!=b){const C=b.indexOf(5);if(0==(1&C))return b[C+1]}return null}(g);for(let x=0;x=0}const _i={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function By(g){return g.substring(_i.key,_i.keyEnd)}function Vy(g,b){const C=_i.textEnd;return C===b?-1:(b=_i.keyEnd=function Ly(g,b,C){for(;b32;)b++;return b}(g,_i.key=b,C),ml(g,b,C))}function ml(g,b,C){for(;b=0;C=Vy(b,C))ln(g,By(b),!0)}function or(g,b,C,y){const x=we(),S=ot(),T=Qn(2);S.firstUpdatePass&&os(S,g,T,y),b!==Se&&Di(x,T,b)&&yg(S,S.data[Li()],x,x[11],g,x[T+1]=function WS(g,b){return null==g||("string"==typeof b?g+=b:"object"==typeof g&&(g=ee($r(g)))),g}(b,C),y,T)}function sr(g,b,C,y){const x=ot(),S=Qn(2);x.firstUpdatePass&&os(x,null,S,y);const T=we();if(C!==Se&&Di(T,S,C)){const D=x.data[Li()];if($y(D,y)&&!Uy(x,S)){let H=y?D.classesWithoutHost:D.stylesWithoutHost;null!==H&&(C=W(H,C||"")),ug(x,D,T,C,y)}else!function Gy(g,b,C,y,x,S,T,D){x===Se&&(x=ze);let H=0,k=0,B=0=g.expandoStartIndex}function os(g,b,C,y){const x=g.data;if(null===x[C+1]){const S=x[Li()],T=Uy(g,C);$y(S,y)&&null===b&&!T&&(b=!1),b=function zS(g,b,C,y){const x=ou(g);let S=y?b.residualClasses:b.residualStyles;if(null===x)0===(y?b.classBindings:b.styleBindings)&&(C=rd(C=wg(null,g,b,C,y),b.attrs,y),S=null);else{const T=b.directiveStylingLast;if(-1===T||g[T]!==x)if(C=wg(x,g,b,C,y),null===S){let H=function Ny(g,b,C){const y=C?b.classBindings:b.styleBindings;if(0!==Kr(y))return g[ir(y)]}(g,b,y);void 0!==H&&Array.isArray(H)&&(H=wg(null,g,b,H[1],y),H=rd(H,b.attrs,y),function qy(g,b,C,y){g[ir(C?b.classBindings:b.styleBindings)]=y}(g,b,y,H))}else S=function zy(g,b,C){let y;const x=b.directiveEnd;for(let S=1+b.directiveStylingLast;S0)&&(k=!0)}else B=C;if(x)if(0!==H){const te=ir(g[D+1]);g[y+1]=ih(te,D),0!==te&&(g[te+1]=rh(g[te+1],y)),g[D+1]=function Qw(g,b){return 131071&g|b<<17}(g[D+1],y)}else g[y+1]=ih(D,0),0!==D&&(g[D+1]=rh(g[D+1],y)),D=y;else g[y+1]=ih(H,0),0===D?D=y:g[H+1]=rh(g[H+1],y),H=y;k&&(g[y+1]=nh(g[y+1])),bg(g,B,y,!0),bg(g,B,y,!1),function ky(g,b,C,y,x){const S=x?g.residualClasses:g.residualStyles;null!=S&&"string"==typeof b&&Po(S,b)>=0&&(C[y+1]=ah(C[y+1]))}(b,B,g,y,S),T=ih(D,H),S?b.classBindings=T:b.styleBindings=T}(x,S,b,C,T,y)}}function wg(g,b,C,y,x){let S=null;const T=C.directiveEnd;let D=C.directiveStylingLast;for(-1===D?D=C.directiveStart:D++;D0;){const H=g[x],k=Array.isArray(H),B=k?H[1]:H,U=null===B;let te=C[x+1];te===Se&&(te=U?ze:void 0);let se=U?Ro(te,y):B===y?te:void 0;if(k&&!Nh(se)&&(se=Ro(H,y)),Nh(se)&&(D=se,T))return D;const _e=g[x+1];x=T?ir(_e):Kr(_e)}if(null!==b){let H=S?b.residualClasses:b.residualStyles;null!=H&&(D=Ro(H,y))}return D}function Nh(g){return void 0!==g}function $y(g,b){return 0!=(g.flags&(b?16:32))}function Qy(g,b=""){const C=we(),y=ot(),x=g+22,S=y.firstCreatePass?ta(y,x,1,b,null):y.data[x],T=C[x]=function hm(g,b){return g.createText(b)}(C[11],b);kc(y,C,T,S),zi(S,!1)}function vg(g){return $a("",g,""),vg}function $a(g,b,C){const y=we(),x=Zo(y,g,b,C);return x!==Se&&yn(y,Li(),x),$a}function Ag(g,b,C,y,x,S,T){const D=we(),H=es(D,g,b,C,y,x,S,T);return H!==Se&&yn(D,Li(),H),Ag}function tv(g,b,C){sr(ln,Rr,Zo(we(),g,b,C),!0)}function zh(g,b,C){const y=we();return Di(y,Ea(),b)&&en(ot(),qt(),y,g,b,y[11],C,!0),zh}function Qa(g,b,C){const y=we();if(Di(y,Ea(),b)){const S=ot(),T=qt();en(S,T,y,g,b,Th(ou(S.data),T,y),C,!0)}return Qa}const ra=void 0;var Eg=["en",[["a","p"],["AM","PM"],ra],[["AM","PM"],ra,ra],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ra,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ra,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ra,"{1} 'at' {0}",ra],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function lv(g){const C=Math.floor(Math.abs(g)),y=g.toString().replace(/^[^.]*\.?/,"").length;return 1===C&&0===y?1:5}];let Ya={};function Ja(g){const b=function uv(g){return g.toLowerCase().replace(/_/g,"-")}(g);let C=bl(b);if(C)return C;const y=b.split("-")[0];if(C=bl(y),C)return C;if("en"===y)return Eg;throw new ae(701,!1)}function cv(g){return Ja(g)[Ze.PluralCase]}function bl(g){return g in Ya||(Ya[g]=de.ng&&de.ng.common&&de.ng.common.locales&&de.ng.common.locales[g]),Ya[g]}var Ze=(()=>((Ze=Ze||{})[Ze.LocaleId=0]="LocaleId",Ze[Ze.DayPeriodsFormat=1]="DayPeriodsFormat",Ze[Ze.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ze[Ze.DaysFormat=3]="DaysFormat",Ze[Ze.DaysStandalone=4]="DaysStandalone",Ze[Ze.MonthsFormat=5]="MonthsFormat",Ze[Ze.MonthsStandalone=6]="MonthsStandalone",Ze[Ze.Eras=7]="Eras",Ze[Ze.FirstDayOfWeek=8]="FirstDayOfWeek",Ze[Ze.WeekendRange=9]="WeekendRange",Ze[Ze.DateFormat=10]="DateFormat",Ze[Ze.TimeFormat=11]="TimeFormat",Ze[Ze.DateTimeFormat=12]="DateTimeFormat",Ze[Ze.NumberSymbols=13]="NumberSymbols",Ze[Ze.NumberFormats=14]="NumberFormats",Ze[Ze.CurrencyCode=15]="CurrencyCode",Ze[Ze.CurrencySymbol=16]="CurrencySymbol",Ze[Ze.CurrencyName=17]="CurrencyName",Ze[Ze.Currencies=18]="Currencies",Ze[Ze.Directionality=19]="Directionality",Ze[Ze.PluralCase=20]="PluralCase",Ze[Ze.ExtraData=21]="ExtraData",Ze))();const ls="en-US";let cs=ls;function Ug(g,b,C,y,x){if(g=re(g),Array.isArray(g))for(let S=0;S>20;if(Fo(g)||!g.multi){const se=new Da(H,x,il),_e=zg(D,b,x?B:B+te,U);-1===_e?(lc(Pa(k,T),S,D),Ng(S,g,b.length),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(se),T.push(se)):(C[_e]=se,T[_e]=se)}else{const se=zg(D,b,B+te,U),_e=zg(D,b,B,B+te),Me=se>=0&&C[se],Be=_e>=0&&C[_e];if(x&&!Be||!x&&!Me){lc(Pa(k,T),S,D);const Ue=function Iv(g,b,C,y,x){const S=new Da(g,C,il);return S.multi=[],S.index=b,S.componentProviders=0,qg(S,x,y&&!C),S}(x?ET:TT,C.length,x,y,H);!x&&Be&&(C[_e].providerFactory=Ue),Ng(S,g,b.length,0),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(Ue),T.push(Ue)}else Ng(S,g,se>-1?se:_e,qg(C[x?_e:se],H,!x&&y));!x&&y&&Be&&C[_e].componentProviders++}}}function Ng(g,b,C,y){const x=Fo(b),S=function fx(g){return!!g.useClass}(b);if(x||S){const H=(S?re(b.useClass):b).prototype.ngOnDestroy;if(H){const k=g.destroyHooks||(g.destroyHooks=[]);if(!x&&b.multi){const B=k.indexOf(C);-1===B?k.push(C,[y,H]):k[B+1].push(y,H)}else k.push(C,H)}}}function qg(g,b,C){return C&&g.componentProviders++,g.multi.push(b)-1}function zg(g,b,C,y){for(let x=C;x{C.providersResolver=(y,x)=>function Pv(g,b,C){const y=ot();if(y.firstCreatePass){const x=Oi(g);Ug(C,y.data,y.blueprint,x,!0),Ug(b,y.data,y.blueprint,x,!1)}}(y,x?x(g):g,b)}}class vl{}class ur{}function MT(g,b){return new kv(g,b??null)}class kv extends vl{constructor(b,C){super(),this._parent=C,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Mr(this);const y=Yi(b);this._bootstrapComponents=Xi(y.bootstrap),this._r3Injector=tl(b,C,[{provide:vl,useValue:this},{provide:Mc,useValue:this.componentFactoryResolver}],ee(b),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(b)}get injector(){return this._r3Injector}destroy(){const b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(C=>C()),this.destroyCbs=null}onDestroy(b){this.destroyCbs.push(b)}}class Wg extends ur{constructor(b){super(),this.moduleType=b}create(b){return new kv(this.moduleType,b)}}class DT extends vl{constructor(b,C,y){super(),this.componentFactoryResolver=new Mr(this),this.instance=null;const x=new KC([...b,{provide:vl,useValue:this},{provide:Mc,useValue:this.componentFactoryResolver}],C||Vu(),y,new Set(["environment"]));this.injector=x,x.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(b){this.injector.onDestroy(b)}}function $g(g,b,C=null){return new DT(g,b,C).injector}function Xt(g,b,C,y){return Kg(we(),Gi(),g,b,C,y)}function Kg(g,b,C,y,x,S){const T=b+C;return Di(g,T,x)?function dn(g,b,C){return g[b]=C}(g,T+1,S?y.call(S,x):y(x)):function xl(g,b){const C=g[b];return C===Se?void 0:C}(g,T+1)}function _d(g,b){const C=ot();let y;const x=g+22;C.firstCreatePass?(y=function i_(g,b){if(b)for(let C=b.length-1;C>=0;C--){const y=b[C];if(g===y.name)return y}}(b,C.pipeRegistry),C.data[x]=y,y.onDestroy&&(C.destroyHooks||(C.destroyHooks=[])).push(x,y.onDestroy)):y=C.data[x];const S=y.factory||(y.factory=Cr(y.type)),T=Pi(il);try{const D=pu(!1),H=S();return pu(D),function IS(g,b,C,y){C>=g.data.length&&(g.data[C]=null,g.blueprint[C]=null),b[C]=y}(C,we(),x,H),H}finally{Pi(T)}}function n_(g,b,C){const y=g+22,x=we(),S=Sa(x,y);return function bd(g,b){return g[1].data[b].pure}(x,y)?Kg(x,Gi(),b,S.transform,C,S):S.transform(C)}function a_(g){return b=>{setTimeout(g,void 0,b)}}const kr=class FT extends M.x{constructor(b=!1){super(),this.__isAsync=b}emit(b){super.next(b)}subscribe(b,C,y){let x=b,S=C||(()=>null),T=y;if(b&&"object"==typeof b){const H=b;x=H.next?.bind(H),S=H.error?.bind(H),T=H.complete?.bind(H)}this.__isAsync&&(S=a_(S),x&&(x=a_(x)),T&&(T=a_(T)));const D=super.subscribe({next:x,error:S,complete:T});return b instanceof _.w0&&b.add(D),D}};function UT(){return this._results[je()]()}class Xh{constructor(b=!1){this._emitDistinctChangesOnly=b,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const C=je(),y=Xh.prototype;y[C]||(y[C]=UT)}get changes(){return this._changes||(this._changes=new kr)}get(b){return this._results[b]}map(b){return this._results.map(b)}filter(b){return this._results.filter(b)}find(b){return this._results.find(b)}reduce(b,C){return this._results.reduce(b,C)}forEach(b){this._results.forEach(b)}some(b){return this._results.some(b)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(b,C){const y=this;y.dirty=!1;const x=Zi(b);(this._changesDetected=!function dc(g,b,C){if(g.length!==b.length)return!1;for(let y=0;y{class g{}return g.__NG_ELEMENT_ID__=zT,g})();const NT=Cd,qT=class extends NT{constructor(b,C,y){super(),this._declarationLView=b,this._declarationTContainer=C,this.elementRef=y}createEmbeddedView(b,C){const y=this._declarationTContainer.tViews,x=al(this._declarationLView,y,b,16,null,y.declTNode,null,null,null,null,C||null);x[17]=this._declarationLView[this._declarationTContainer.index];const T=this._declarationLView[19];return null!==T&&(x[19]=T.createEmbeddedView(y)),$c(y,x,b),new cl(x)}};function zT(){return ep(Qt(),we())}function ep(g,b){return 4&g.type?new qT(b,g,Ys(g,b)):null}let tp=(()=>{class g{}return g.__NG_ELEMENT_ID__=GT,g})();function GT(){return Kv(Qt(),we())}const WT=tp,Yv=class extends WT{constructor(b,C,y){super(),this._lContainer=b,this._hostTNode=C,this._hostLView=y}get element(){return Ys(this._hostTNode,this._hostLView)}get injector(){return new So(this._hostTNode,this._hostLView)}get parentInjector(){const b=Bs(this._hostTNode,this._hostLView);if(hf(b)){const C=Ra(b,this._hostLView),y=vo(b);return new So(C[1].data[y+8],C)}return new So(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(b){const C=Jv(this._lContainer);return null!==C&&C[b]||null}get length(){return this._lContainer.length-10}createEmbeddedView(b,C,y){let x,S;"number"==typeof y?x=y:null!=y&&(x=y.index,S=y.injector);const T=b.createEmbeddedView(C||{},S);return this.insert(T,x),T}createComponent(b,C,y,x,S){const T=b&&!function Ls(g){return"function"==typeof g}(b);let D;if(T)D=C;else{const U=C||{};D=U.index,y=U.injector,x=U.projectableNodes,S=U.environmentInjector||U.ngModuleRef}const H=T?b:new Zc(xt(b)),k=y||this.parentInjector;if(!S&&null==H.ngModule){const te=(T?k:this.parentInjector).get(Uo,null);te&&(S=te)}const B=H.create(k,x,void 0,S);return this.insert(B.hostView,D),B}insert(b,C){const y=b._lView,x=y[1];if(function I(g){return sn(g[3])}(y)){const B=this.indexOf(b);if(-1!==B)this.detach(B);else{const U=y[3],te=new Yv(U,U[6],U[3]);te.detach(te.indexOf(b))}}const S=this._adjustIndex(C),T=this._lContainer;!function vw(g,b,C,y){const x=10+y,S=C.length;y>0&&(C[x-1][4]=b),y0)y.push(T[D/2]);else{const k=S[D+1],B=b[-H];for(let U=10;U{class g{constructor(C){this.appInits=C,this.resolve=ei,this.reject=ei,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,x)=>{this.resolve=y,this.reject=x})}runInitializers(){if(this.initialized)return;const C=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let x=0;x{S.subscribe({complete:D,error:H})});C.push(T)}}Promise.all(C).then(()=>{y()}).catch(x=>{this.reject(x)}),0===C.length&&y(),this.initialized=!0}}return g.\u0275fac=function(C){return new(C||g)(Jt(R_,8))},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();const dp=new Pt("AppId",{providedIn:"root",factory:function up(){return`${xd()}${xd()}${xd()}`}});function xd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const hp=new Pt("Platform Initializer"),P_=new Pt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),pp=new Pt("appBootstrapListener"),Sd=new Pt("AnimationModuleType");let I_=(()=>{class g{log(C){console.log(C)}warn(C){console.warn(C)}}return g.\u0275fac=function(C){return new(C||g)},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"platform"}),g})();const Dl=new Pt("LocaleId",{providedIn:"root",factory:()=>yu(Dl,Ke.Optional|Ke.SkipSelf)||function k_(){return typeof $localize<"u"&&$localize.locale||ls}()}),B_=new Pt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class fp{constructor(b,C){this.ngModuleFactory=b,this.componentFactories=C}}let V_=(()=>{class g{compileModuleSync(C){return new Wg(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const y=this.compileModuleSync(C),S=Xi(Yi(C).declarations).reduce((T,D)=>{const H=xt(D);return H&&T.push(new Zc(H)),T},[]);return new fp(y,S)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}}return g.\u0275fac=function(C){return new(C||g)},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();const L_=(()=>Promise.resolve(0))();function Ed(g){typeof Zone>"u"?L_.then(()=>{g&&g.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",g)}class ti{constructor({enableLongStackTrace:b=!1,shouldCoalesceEventChangeDetection:C=!1,shouldCoalesceRunChangeDetection:y=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new kr(!1),this.onMicrotaskEmpty=new kr(!1),this.onStable=new kr(!1),this.onError=new kr(!1),typeof Zone>"u")throw new ae(908,!1);Zone.assertZonePatched();const x=this;if(x._nesting=0,x._outer=x._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const S=Zone.AsyncStackTaggingZoneSpec;x._inner=x._inner.fork(new S("Angular"))}Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),b&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!y&&C,x.shouldCoalesceRunChangeDetection=y,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function Qi(){let g=de.requestAnimationFrame,b=de.cancelAnimationFrame;if(typeof Zone<"u"&&g&&b){const C=g[Zone.__symbol__("OriginalDelegate")];C&&(g=C);const y=b[Zone.__symbol__("OriginalDelegate")];y&&(b=y)}return{nativeRequestAnimationFrame:g,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function Md(g){const b=()=>{!function sE(g){g.isCheckStableRunning||-1!==g.lastRequestAnimationFrameId||(g.lastRequestAnimationFrameId=g.nativeRequestAnimationFrame.call(de,()=>{g.fakeTopEventTask||(g.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{g.lastRequestAnimationFrameId=-1,bp(g),g.isCheckStableRunning=!0,F_(g),g.isCheckStableRunning=!1},void 0,()=>{},()=>{})),g.fakeTopEventTask.invoke()}),bp(g))}(g)};g._inner=g._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(C,y,x,S,T,D)=>{try{return Dd(g),C.invokeTask(x,S,T,D)}finally{(g.shouldCoalesceEventChangeDetection&&"eventTask"===S.type||g.shouldCoalesceRunChangeDetection)&&b(),Hl(g)}},onInvoke:(C,y,x,S,T,D,H)=>{try{return Dd(g),C.invoke(x,S,T,D,H)}finally{g.shouldCoalesceRunChangeDetection&&b(),Hl(g)}},onHasTask:(C,y,x,S)=>{C.hasTask(x,S),y===x&&("microTask"==S.change?(g._hasPendingMicrotasks=S.microTask,bp(g),F_(g)):"macroTask"==S.change&&(g.hasPendingMacrotasks=S.macroTask))},onHandleError:(C,y,x,S)=>(C.handleError(x,S),g.runOutsideAngular(()=>g.onError.emit(S)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ti.isInAngularZone())throw new ae(909,!1)}static assertNotInAngularZone(){if(ti.isInAngularZone())throw new ae(909,!1)}run(b,C,y){return this._inner.run(b,C,y)}runTask(b,C,y,x){const S=this._inner,T=S.scheduleEventTask("NgZoneEvent: "+x,b,j_,ei,ei);try{return S.runTask(T,C,y)}finally{S.cancelTask(T)}}runGuarded(b,C,y){return this._inner.runGuarded(b,C,y)}runOutsideAngular(b){return this._outer.run(b)}}const j_={};function F_(g){if(0==g._nesting&&!g.hasPendingMicrotasks&&!g.isStable)try{g._nesting++,g.onMicrotaskEmpty.emit(null)}finally{if(g._nesting--,!g.hasPendingMicrotasks)try{g.runOutsideAngular(()=>g.onStable.emit(null))}finally{g.isStable=!0}}}function bp(g){g.hasPendingMicrotasks=!!(g._hasPendingMicrotasks||(g.shouldCoalesceEventChangeDetection||g.shouldCoalesceRunChangeDetection)&&-1!==g.lastRequestAnimationFrameId)}function Dd(g){g._nesting++,g.isStable&&(g.isStable=!1,g.onUnstable.emit(null))}function Hl(g){g._nesting--,F_(g)}class vA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new kr,this.onMicrotaskEmpty=new kr,this.onStable=new kr,this.onError=new kr}run(b,C,y){return b.apply(C,y)}runGuarded(b,C,y){return b.apply(C,y)}runOutsideAngular(b){return b()}runTask(b,C,y,x){return b.apply(C,y)}}const Hd=new Pt(""),U_=new Pt("");let N_,lE=(()=>{class g{constructor(C,y,x){this._ngZone=C,this.registry=y,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,N_||(function cE(g){N_=g}(x),x.addToWindow(y)),this._watchAngularEvents(),C.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ti.assertNotInAngularZone(),Ed(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Ed(()=>{for(;0!==this._callbacks.length;){let C=this._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb(this._didWork)}this._didWork=!1});else{let C=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(C)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,y,x){let S=-1;y&&y>0&&(S=setTimeout(()=>{this._callbacks=this._callbacks.filter(T=>T.timeoutId!==S),C(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:C,timeoutId:S,updateCb:x})}whenStable(C,y,x){if(x&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(C,y,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,y,x){return[]}}return g.\u0275fac=function(C){return new(C||g)(Jt(ti),Jt(AA),Jt(U_))},g.\u0275prov=St({token:g,factory:g.\u0275fac}),g})(),AA=(()=>{class g{constructor(){this._applications=new Map}registerApplication(C,y){this._applications.set(C,y)}unregisterApplication(C){this._applications.delete(C)}unregisterAllApplications(){this._applications.clear()}getTestability(C){return this._applications.get(C)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(C,y=!0){return N_?.findTestabilityInTree(this,C,y)??null}}return g.\u0275fac=function(C){return new(C||g)},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"platform"}),g})(),eo=null;const xA=new Pt("AllowMultipleToken"),q_=new Pt("PlatformDestroyListeners");class TA{constructor(b,C){this.name=b,this.token=C}}function ms(g,b,C=[]){const y=`Platform: ${b}`,x=new Pt(y);return(S=[])=>{let T=Rd();if(!T||T.injector.get(xA,!1)){const D=[...C,...S,{provide:x,useValue:!0}];g?g(D):function Cp(g){if(eo&&!eo.get(xA,!1))throw new ae(400,!1);eo=g;const b=g.get(kl);(function Pl(g){const b=g.get(hp,null);b&&b.forEach(C=>C())})(g)}(function yp(g=[],b){return qa.create({name:b,providers:[{provide:$f,useValue:"platform"},{provide:q_,useValue:new Set([()=>eo=null])},...g]})}(D,y))}return function wp(g){const b=Rd();if(!b)throw new ae(401,!1);return b}()}}function Rd(){return eo?.get(kl)??null}let kl=(()=>{class g{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,y){const x=function W_(g,b){let C;return C="noop"===g?new vA:("zone.js"===g?void 0:g)||new ti(b),C}(y?.ngZone,function vp(g){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!g||!g.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!g||!g.ngZoneRunCoalescing)||!1}}(y)),S=[{provide:ti,useValue:x}];return x.run(()=>{const T=qa.create({providers:S,parent:this.injector,name:C.moduleType.name}),D=C.create(T),H=D.injector.get(Hc,null);if(!H)throw new ae(402,!1);return x.runOutsideAngular(()=>{const k=x.onError.subscribe({next:B=>{H.handleError(B)}});D.onDestroy(()=>{Sp(this._modules,D),k.unsubscribe()})}),function Ap(g,b,C){try{const y=C();return Lh(y)?y.catch(x=>{throw b.runOutsideAngular(()=>g.handleError(x)),x}):y}catch(y){throw b.runOutsideAngular(()=>g.handleError(y)),y}}(H,x,()=>{const k=D.injector.get(ua);return k.runInitializers(),k.donePromise.then(()=>(function Gh(g){Ht(g,"Expected localeId to be defined"),"string"==typeof g&&(cs=g.toLowerCase().replace(/_/g,"-"))}(D.injector.get(Dl,ls)||ls),this._moduleDoBootstrap(D),D))})})}bootstrapModule(C,y=[]){const x=Pd({},y);return function z_(g,b,C){const y=new Wg(C);return Promise.resolve(y)}(0,0,C).then(S=>this.bootstrapModuleFactory(S,x))}_moduleDoBootstrap(C){const y=C.injector.get(xp);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(x=>y.bootstrap(x));else{if(!C.instance.ngDoBootstrap)throw new ae(403,!1);C.instance.ngDoBootstrap(y)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ae(404,!1);this._modules.slice().forEach(y=>y.destroy()),this._destroyListeners.forEach(y=>y());const C=this._injector.get(q_,null);C&&(C.forEach(y=>y()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return g.\u0275fac=function(C){return new(C||g)(Jt(qa))},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"platform"}),g})();function Pd(g,b){return Array.isArray(b)?b.reduce(Pd,g):{...g,...b}}let xp=(()=>{class g{constructor(C,y,x){this._zone=C,this._injector=y,this._exceptionHandler=x,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const S=new L.y(D=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{D.next(this._stable),D.complete()})}),T=new L.y(D=>{let H;this._zone.runOutsideAngular(()=>{H=this._zone.onStable.subscribe(()=>{ti.assertNotInAngularZone(),Ed(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,D.next(!0))})})});const k=this._zone.onUnstable.subscribe(()=>{ti.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{D.next(!1)}))});return()=>{H.unsubscribe(),k.unsubscribe()}});this.isStable=(0,F.T)(S,T.pipe((0,V.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(C,y){const x=C instanceof Kf;if(!this._injector.get(ua).done)throw!x&&Tl(C),new ae(405,false);let T;T=x?C:this._injector.get(Mc).resolveComponentFactory(C),this.componentTypes.push(T.componentType);const D=function SA(g){return g.isBoundToModule}(T)?void 0:this._injector.get(vl),k=T.create(qa.NULL,[],y||T.selector,D),B=k.location.nativeElement,U=k.injector.get(Hd,null);return U?.registerApplication(B),k.onDestroy(()=>{this.detachView(k.hostView),Sp(this.components,k),U?.unregisterApplication(B)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ae(101,!1);try{this._runningTick=!0;for(let C of this._views)C.detectChanges()}catch(C){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(C))}finally{this._runningTick=!1}}attachView(C){const y=C;this._views.push(y),y.attachToAppRef(this)}detachView(C){const y=C;Sp(this._views,y),y.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C),this._injector.get(pp,[]).concat(this._bootstrapListeners).forEach(x=>x(C))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(C=>C()),this._views.slice().forEach(C=>C.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(C){return this._destroyListeners.push(C),()=>Sp(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new ae(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return g.\u0275fac=function(C){return new(C||g)(Jt(ti),Jt(Uo),Jt(Hc))},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();function Sp(g,b){const C=g.indexOf(b);C>-1&&g.splice(C,1)}let Bl=!0;function Id(){Bl=!1}let EA=(()=>{class g{}return g.__NG_ELEMENT_ID__=MA,g})();function MA(g){return function Y_(g,b,C){if(Wn(g)&&!C){const y=qi(g.index,b);return new cl(y,y)}return 47&g.type?new cl(b[16],b):null}(Qt(),we(),16==(16&g))}class PA{constructor(){}supports(b){return kn(b)}create(b){return new CE(b)}}const bE=(g,b)=>b;class CE{constructor(b){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=b||bE}forEachItem(b){let C;for(C=this._itHead;null!==C;C=C._next)b(C)}forEachOperation(b){let C=this._itHead,y=this._removalsHead,x=0,S=null;for(;C||y;){const T=!y||C&&C.currentIndex{T=this._trackByFn(x,D),null!==C&&Object.is(C.trackById,T)?(y&&(C=this._verifyReinsertion(C,D,T,x)),Object.is(C.item,D)||this._addIdentityChange(C,D)):(C=this._mismatch(C,D,T,x),y=!0),C=C._next,x++}),this.length=x;return this._truncate(C),this.collection=b,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let b;for(b=this._previousItHead=this._itHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._additionsHead;null!==b;b=b._nextAdded)b.previousIndex=b.currentIndex;for(this._additionsHead=this._additionsTail=null,b=this._movesHead;null!==b;b=b._nextMoved)b.previousIndex=b.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(b,C,y,x){let S;return null===b?S=this._itTail:(S=b._prev,this._remove(b)),null!==(b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._reinsertAfter(b,S,x)):null!==(b=null===this._linkedRecords?null:this._linkedRecords.get(y,x))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._moveAfter(b,S,x)):b=this._addAfter(new wE(C,y),S,x),b}_verifyReinsertion(b,C,y,x){let S=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==S?b=this._reinsertAfter(S,b._prev,x):b.currentIndex!=x&&(b.currentIndex=x,this._addToMoves(b,x)),b}_truncate(b){for(;null!==b;){const C=b._next;this._addToRemovals(this._unlink(b)),b=C}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(b,C,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(b);const x=b._prevRemoved,S=b._nextRemoved;return null===x?this._removalsHead=S:x._nextRemoved=S,null===S?this._removalsTail=x:S._prevRemoved=x,this._insertAfter(b,C,y),this._addToMoves(b,y),b}_moveAfter(b,C,y){return this._unlink(b),this._insertAfter(b,C,y),this._addToMoves(b,y),b}_addAfter(b,C,y){return this._insertAfter(b,C,y),this._additionsTail=null===this._additionsTail?this._additionsHead=b:this._additionsTail._nextAdded=b,b}_insertAfter(b,C,y){const x=null===C?this._itHead:C._next;return b._next=x,b._prev=C,null===x?this._itTail=b:x._prev=b,null===C?this._itHead=b:C._next=b,null===this._linkedRecords&&(this._linkedRecords=new Rp),this._linkedRecords.put(b),b.currentIndex=y,b}_remove(b){return this._addToRemovals(this._unlink(b))}_unlink(b){null!==this._linkedRecords&&this._linkedRecords.remove(b);const C=b._prev,y=b._next;return null===C?this._itHead=y:C._next=y,null===y?this._itTail=C:y._prev=C,b}_addToMoves(b,C){return b.previousIndex===C||(this._movesTail=null===this._movesTail?this._movesHead=b:this._movesTail._nextMoved=b),b}_addToRemovals(b){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Rp),this._unlinkedRecords.put(b),b.currentIndex=null,b._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=b,b._prevRemoved=null):(b._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=b),b}_addIdentityChange(b,C){return b.item=C,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=b:this._identityChangesTail._nextIdentityChange=b,b}}class wE{constructor(b,C){this.item=b,this.trackById=C,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class IA{constructor(){this._head=null,this._tail=null}add(b){null===this._head?(this._head=this._tail=b,b._nextDup=null,b._prevDup=null):(this._tail._nextDup=b,b._prevDup=this._tail,b._nextDup=null,this._tail=b)}get(b,C){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===C||C<=y.currentIndex)&&Object.is(y.trackById,b))return y;return null}remove(b){const C=b._prevDup,y=b._nextDup;return null===C?this._head=y:C._nextDup=y,null===y?this._tail=C:y._prevDup=C,null===this._head}}class Rp{constructor(){this.map=new Map}put(b){const C=b.trackById;let y=this.map.get(C);y||(y=new IA,this.map.set(C,y)),y.add(b)}get(b,C){const x=this.map.get(b);return x?x.get(b,C):null}remove(b){const C=b.trackById;return this.map.get(C).remove(b)&&this.map.delete(C),b}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function eb(g,b,C){const y=g.previousIndex;if(null===y)return y;let x=0;return C&&y{if(C&&C.key===x)this._maybeAddToChanges(C,y),this._appendAfter=C,C=C._next;else{const S=this._getOrCreateRecordForKey(x,y);C=this._insertBeforeOrAppend(C,S)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(let y=C;null!==y;y=y._nextRemoved)y===this._mapHead&&(this._mapHead=null),this._records.delete(y.key),y._nextRemoved=y._next,y.previousValue=y.currentValue,y.currentValue=null,y._prev=null,y._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(b,C){if(b){const y=b._prev;return C._next=b,C._prev=y,b._prev=C,y&&(y._next=C),b===this._mapHead&&(this._mapHead=C),this._appendAfter=b,b}return this._appendAfter?(this._appendAfter._next=C,C._prev=this._appendAfter):this._mapHead=C,this._appendAfter=C,null}_getOrCreateRecordForKey(b,C){if(this._records.has(b)){const x=this._records.get(b);this._maybeAddToChanges(x,C);const S=x._prev,T=x._next;return S&&(S._next=T),T&&(T._prev=S),x._next=null,x._prev=null,x}const y=new kA(b);return this._records.set(b,y),y.currentValue=C,this._addToAdditions(y),y}_reset(){if(this.isDirty){let b;for(this._previousMapHead=this._mapHead,b=this._previousMapHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._changesHead;null!==b;b=b._nextChanged)b.previousValue=b.currentValue;for(b=this._additionsHead;null!=b;b=b._nextAdded)b.previousValue=b.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(b,C){Object.is(C,b.currentValue)||(b.previousValue=b.currentValue,b.currentValue=C,this._addToChanges(b))}_addToAdditions(b){null===this._additionsHead?this._additionsHead=this._additionsTail=b:(this._additionsTail._nextAdded=b,this._additionsTail=b)}_addToChanges(b){null===this._changesHead?this._changesHead=this._changesTail=b:(this._changesTail._nextChanged=b,this._changesTail=b)}_forEach(b,C){b instanceof Map?b.forEach(C):Object.keys(b).forEach(y=>C(b[y],y))}}class kA{constructor(b){this.key=b,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function tb(){return new Vd([new PA])}let Vd=(()=>{class g{constructor(C){this.factories=C}static create(C,y){if(null!=y){const x=y.factories.slice();C=C.concat(x)}return new g(C)}static extend(C){return{provide:g,useFactory:y=>g.create(C,y||tb()),deps:[[g,new qs,new Ba]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(null!=y)return y;throw new ae(901,!1)}}return g.\u0275prov=St({token:g,providedIn:"root",factory:tb}),g})();function BA(){return new Od([new Pp])}let Od=(()=>{class g{constructor(C){this.factories=C}static create(C,y){if(y){const x=y.factories.slice();C=C.concat(x)}return new g(C)}static extend(C){return{provide:g,useFactory:y=>g.create(C,y||BA()),deps:[[g,new qs,new Ba]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(y)return y;throw new ae(901,!1)}}return g.\u0275prov=St({token:g,providedIn:"root",factory:BA}),g})();const Ip=ms(null,"core",[]);let LA=(()=>{class g{constructor(C){}}return g.\u0275fac=function(C){return new(C||g)(Jt(xp))},g.\u0275mod=jr({type:g}),g.\u0275inj=ci({}),g})();function kp(g){return"boolean"==typeof g?g:null!=g&&"false"!==g}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class N extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return N.\u0275fac=function(){let z;return function(M){return(z||(z=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(N)))(M||N)}}(),N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class N{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,M){this.data.set(E,M)}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class ReceivedTokens{}class OAuthEvent{constructor(z){this.type=z}}class OAuthSuccessEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(z,E,M=null){super(z),this.reason=E,this.params=M}}function b64DecodeUnicode(N){const z=N.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(z).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(N){return btoa(N).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(z){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},z&&Object.assign(this,z)}}class WebHttpUrlEncodingCodec{encodeKey(z){return encodeURIComponent(z)}encodeValue(z){return encodeURIComponent(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(z){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let M=E.inferHashAlgorithm(z.idTokenHeader),_=yield E.calcHash(z.accessToken,M),F=base64UrlEncode(_.substr(0,_.length/2)),V=z.idTokenClaims.at_hash.replace(/=/g,"");return F!==V&&(console.error("exptected at_hash: "+F),console.error("actual at_hash: "+V)),F===V})()}inferHashAlgorithm(z){let E=z.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class N{getHashFragmentParams(E){let M=E||window.location.hash;if(M=decodeURIComponent(M),0!==M.indexOf("#"))return{};const _=M.indexOf("?");return M=M.substr(_>-1?_+1:1),this.parseQueryString(M)}parseQueryString(E){const M={};let _,L,F,V,q,Q,ee;if(null===E)return M;_=E.split("&");for(let W=0;W<_.length;W++)L=_[W],F=L.indexOf("="),-1===F?(V=L,q=null):(V=L.substr(0,F),q=L.substr(F+1)),Q=decodeURIComponent(V),ee=decodeURIComponent(q),"/"===Q.substr(0,1)&&(Q=Q.substr(1)),M[Q]=ee;return M}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();function factory(){var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD="function"==typeof define&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u";const HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"];var blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(N){return"[object Array]"===Object.prototype.toString.call(N)}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(N){return"object"==typeof N&&N.buffer&&N.buffer.constructor===ArrayBuffer});var createOutputMethod=function(N,z){return function(E){return new Sha256(z,!0).update(E)[N]()}},createMethod=function(N){var z=createOutputMethod("hex",N);NODE_JS&&(z=nodeWrap(z,N)),z.create=function(){return new Sha256(N)},z.update=function(_){return z.create().update(_)};for(var E=0;E>6,L[V++]=128|63&q):q<55296||q>=57344?(L[V++]=224|q>>12,L[V++]=128|q>>6&63,L[V++]=128|63&q):(q=65536+((1023&q)<<10|1023&N.charCodeAt(++M)),L[V++]=240|q>>18,L[V++]=128|q>>12&63,L[V++]=128|q>>6&63,L[V++]=128|63&q);N=L}else{if("object"!==_)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR)}N.length>64&&(N=new Sha256(z,!0).update(N).array());var Q=[],ee=[];for(M=0;M<64;++M){var W=N[M]||0;Q[M]=92^W,ee[M]=54^W}Sha256.call(this,z,E),this.update(ee),this.oKeyPad=Q,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(N){if(!this.finalized){var z,E=typeof N;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR);z=!0}for(var M,L,_=0,F=N.length,V=this.blocks;_>2]|=N[_]<>2]|=M<>2]|=(192|M>>6)<>2]|=(128|63&M)<=57344?(V[L>>2]|=(224|M>>12)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<>2]|=(240|M>>18)<>2]|=(128|M>>12&63)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<=64?(this.block=V[16],this.start=L-64,this.hash(),this.hashed=!0):this.start=L}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var N=this.blocks,z=this.lastByteIndex;N[16]=this.block,N[z>>2]|=EXTRA[3&z],this.block=N[16],z>=56&&(this.hashed||this.hash(),N[0]=this.block,N[16]=N[1]=N[2]=N[3]=N[4]=N[5]=N[6]=N[7]=N[8]=N[9]=N[10]=N[11]=N[12]=N[13]=N[14]=N[15]=0),N[14]=this.hBytes<<3|this.bytes>>>29,N[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var Q,G,ie,ae,he,fe,N=this.h0,z=this.h1,E=this.h2,M=this.h3,_=this.h4,L=this.h5,F=this.h6,V=this.h7,q=this.blocks;for(Q=16;Q<64;++Q)q[Q]=q[Q-16]+(((G=q[Q-15])>>>7|G<<25)^(G>>>18|G<<14)^G>>>3)+q[Q-7]+(((G=q[Q-2])>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)<<0;for(fe=z&E,Q=0;Q<64;Q+=4)this.first?(this.is224?(ie=300032,V=(G=q[0]-1413257819)-150054599<<0,M=G+24177077<<0):(ie=704751109,V=(G=q[0]-210244248)-1521486534<<0,M=G+143694565<<0),this.first=!1):(V=M+(G=V+((_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&L^~_&F)+K[Q]+q[Q])<<0,M=G+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((ie=N&z)^N&E^fe))<<0),F=E+(G=F+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&_^~V&L)+K[Q+1]+q[Q+1])<<0,E=G+(((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+((ae=M&N)^M&z^ie))<<0,L=z+(G=L+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&V^~F&_)+K[Q+2]+q[Q+2])<<0,z=G+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((he=E&M)^E&N^ae))<<0,_=N+(G=_+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&F^~L&V)+K[Q+3]+q[Q+3])<<0,N=G+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((fe=z&E)^z&M^he))<<0;this.h0=this.h0+N<<0,this.h1=this.h1+z<<0,this.h2=this.h2+E<<0,this.h3=this.h3+M<<0,this.h4=this.h4+_<<0,this.h5=this.h5+L<<0,this.h6=this.h6+F<<0,this.h7=this.h7+V<<0},Sha256.prototype.hex=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,_=this.h4,L=this.h5,F=this.h6,V=this.h7,q=HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M]+HEX_CHARS[_>>28&15]+HEX_CHARS[_>>24&15]+HEX_CHARS[_>>20&15]+HEX_CHARS[_>>16&15]+HEX_CHARS[_>>12&15]+HEX_CHARS[_>>8&15]+HEX_CHARS[_>>4&15]+HEX_CHARS[15&_]+HEX_CHARS[L>>28&15]+HEX_CHARS[L>>24&15]+HEX_CHARS[L>>20&15]+HEX_CHARS[L>>16&15]+HEX_CHARS[L>>12&15]+HEX_CHARS[L>>8&15]+HEX_CHARS[L>>4&15]+HEX_CHARS[15&L]+HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F];return this.is224||(q+=HEX_CHARS[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]),q},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,_=this.h4,L=this.h5,F=this.h6,V=this.h7,q=[N>>24&255,N>>16&255,N>>8&255,255&N,z>>24&255,z>>16&255,z>>8&255,255&z,E>>24&255,E>>16&255,E>>8&255,255&E,M>>24&255,M>>16&255,M>>8&255,255&M,_>>24&255,_>>16&255,_>>8&255,255&_,L>>24&255,L>>16&255,L>>8&255,255&L,F>>24&255,F>>16&255,F>>8&255,255&F];return this.is224||q.push(V>>24&255,V>>16&255,V>>8&255,255&V),q},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var N=new ArrayBuffer(this.is224?28:32),z=new DataView(N);return z.setUint32(0,this.h0),z.setUint32(4,this.h1),z.setUint32(8,this.h2),z.setUint32(12,this.h3),z.setUint32(16,this.h4),z.setUint32(20,this.h5),z.setUint32(24,this.h6),this.is224||z.setUint32(28,this.h7),N},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var N=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(N),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(N){if("string"!=typeof N)throw new TypeError("expected string");var z,E=N,M=new Uint8Array(E.length);for(z=0;z{class N{calcHash(E,M){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})()}toHashString2(E){let M="";for(let _ of E)M+=String.fromCharCode(_);return M}toHashString(E){const M=new Uint8Array(E);let _="";for(let L of M)_+=String.fromCharCode(L);return _}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})(),OAuthService=(()=>{class N extends AuthConfig{constructor(E,M,_,L,F,V,q,Q,ee,W){super(),this.ngZone=E,this.http=M,this.config=F,this.urlHelper=V,this.logger=q,this.crypto=Q,this.dateTimeService=W,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=ee,F||(F={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),L&&(this.tokenValidationHandler=L),F&&this.configure(F);try{_?this.setStorage(_):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(Y){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",Y)}if(this.checkLocalStorageAccessable()){const Y=window?.navigator?.userAgent;(Y?.includes("MSIE ")||Y?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const E="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(E,E),localStorage.removeItem(E),0))}catch{return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},M,_=!0){let L=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(F=>{"token_received"===F.type?L=!0:"logout"===F.type&&(L=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_expires"===F.type&&(null==M||"any"===M||F.info===M)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(F=>{L&&this.refreshInternal(E,_).catch(V=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,M){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,M):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(M=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(M=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const M=[],_=this.validateUrlForHttps(E),L=this.validateUrlAgainstIssuer(E);return _||M.push("https for all urls required. Also for urls received by discovery."),L||M.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),M}validateUrlForHttps(E){if(!E)return!0;const M=E.toLowerCase();return!(!1!==this.requireHttps&&(!M.match(/^http:\/\/localhost($|[:\/])/)&&!M.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||M.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,M){if(!E)throw new Error(`'${M}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${M}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),M=this.getAccessTokenStoredAt(),_=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(_)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),M=this.getIdTokenStoredAt(),_=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(_)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,M){const _=this.dateTimeService.now();return Math.max(0,(M-E)*this.timeoutFactor-(_-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((M,_)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(L=>{if(!this.validateDiscoveryDocument(L))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void _("discovery_document_validation_error");this.loginUrl=L.authorization_endpoint,this.logoutUrl=L.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=L.grant_types_supported,this.issuer=L.issuer,this.tokenEndpoint=L.token_endpoint,this.userinfoEndpoint=L.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=L.jwks_uri,this.sessionCheckIFrameUrl=L.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(L),this.revocationEndpoint=L.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(F=>{const q=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:L,jwks:F});this.eventsSubject.next(q),M(q)}).catch(F=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",F)),_(F)})},L=>{this.logger.error("error loading discovery document",L),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",L)),_(L)}):_("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,M)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(_=>{this.jwks=_,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(_)},_=>{this.logger.error("error loading jwks",_),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",_)),M(_)}):E(null)})}validateDiscoveryDocument(E){let M;return this.skipIssuerCheck||E.issuer===this.issuer?(M=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),M.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),M.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.token_endpoint),M.length>0&&this.logger.error("error validating token_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),M.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),M.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.jwks_uri),M.length>0?(this.logger.error("error validating jwks_uri in discovery document",M),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,M,_=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,M,_).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,M)=>{const _=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:_,observe:"response",responseType:"text"}).subscribe(L=>{if(this.debug("userinfo received",JSON.stringify(L)),L.headers.get("content-type").startsWith("application/json")){let F=JSON.parse(L.body);const V=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!V.sub||F.sub!==V.sub))return void M("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");F=Object.assign({},V,F),this._storage.setItem("id_token_claims_obj",JSON.stringify(F)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:F})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(L.body))},L=>{this.logger.error("error loading user info",L),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",L)),M(L)})})}fetchTokenUsingPasswordFlow(E,M,_=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:M},_)}fetchTokenUsingGrant(E,M,_=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let L=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);_=_.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(L=L.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(L=L.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))L=L.set(F,this.customQueryParams[F]);for(const F of Object.keys(M))L=L.set(F,M[F]);return _=_.set("Content-Type","application/x-www-form-urlencoded"),new Promise((F,V)=>{this.http.post(this.tokenEndpoint,L,{headers:_}).subscribe(q=>{this.debug("tokenResponse",q),this.storeAccessTokenResponse(q.access_token,q.refresh_token,q.expires_in||this.fallbackAccessTokenExpirationTimeInSec,q.scope,this.extractRecognizedCustomParameters(q)),this.oidc&&q.id_token&&this.processIdToken(q.id_token,q.access_token).then(Q=>{this.storeIdToken(Q),F(q)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),F(q)},q=>{this.logger.error("Error performing ${grantType} flow",q),this.eventsSubject.next(new OAuthErrorEvent("token_error",q)),V(q)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,M)=>{let _=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),L=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);L=L.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(_=_.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(_=_.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))_=_.set(F,this.customQueryParams[F]);this.http.post(this.tokenEndpoint,_,{headers:L}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(F=>F.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(F.id_token,F.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(V=>this.storeIdToken(V)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(V=>F)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(F))).subscribe(F=>{this.debug("refresh tokenResponse",F),this.storeAccessTokenResponse(F.access_token,F.refresh_token,F.expires_in||this.fallbackAccessTokenExpirationTimeInSec,F.scope,this.extractRecognizedCustomParameters(F)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(F)},F=>{this.logger.error("Error refreshing token",F),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",F)),M(F)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const M=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:M,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(_=>this.debug("tryLogin during silent refresh failed",_))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},M=!0){const _=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const L=this.document.getElementById(this.silentRefreshIFrameName);L&&this.document.body.removeChild(L),this.silentRefreshSubject=_.sub;const F=this.document.createElement("iframe");F.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,M,E).then(W=>{F.setAttribute("src",W),this.silentRefreshShowIFrame||(F.style.display="none"),this.document.body.appendChild(F)});const q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>W instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>"token_received"===W.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),ee=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([q,Q,ee]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(W=>{if(W instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===W.type||(W=new OAuthErrorEvent("silent_refresh_error",W)),this.eventsSubject.next(W),W;return"token_received"===W.type&&(W=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(W)),W})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(M=>new Promise((_,L)=>{let q,V=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(V=E.windowRef,V.location.href=M):V=window.open(M,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const Q=re=>{this.tryLogin({customHashFragment:re,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{W(),_(!0)},oe=>{W(),L(oe)})};V?q=window.setInterval(()=>{(!V||V.closed)&&(W(),L(new OAuthErrorEvent("popup_closed",{})))},500):L(new OAuthErrorEvent("popup_blocked",{}));const W=()=>{window.clearInterval(q),window.removeEventListener("storage",G),window.removeEventListener("message",Y),null!==V&&V.close(),V=null},Y=re=>{const oe=this.processMessageEventMessage(re);oe&&null!==oe?(window.removeEventListener("storage",G),Q(oe)):console.log("false event firing")},G=re=>{"auth_hash"===re.key&&(window.removeEventListener("message",Y),Q(re.newValue))};window.addEventListener("message",Y),window.addEventListener("storage",G)}))}calculatePopupFeatures(E){const M=E.height||470,_=E.width||500,L=window.screenLeft+(window.outerWidth-_)/2;return`location=no,toolbar=no,width=${_},height=${M},top=${window.screenTop+(window.outerHeight-M)/2},left=${L}`}processMessageEventMessage(E){let M="#";if(this.silentRefreshMessagePrefix&&(M+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const _=E.data;return _.startsWith(M)?"#"+_.substr(M.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const M=E.origin.toLowerCase(),_=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),_.startsWith(M)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",M,"expected",_,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const M=this.document.createElement("iframe");M.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),M.setAttribute("src",this.sessionCheckIFrameUrl),M.style.display="none",this.document.body.appendChild(M),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const M=this.getSessionState();M||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+M,this.issuer)}createLoginUrl(E="",M="",_="",L=!1,F={}){var V=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const q=V;let Q;Q=_||V.redirectUri;const ee=yield V.createAndSaveNonce();if(E=E?ee+V.config.nonceStateSeparator+encodeURIComponent(E):ee,!V.requestAccessToken&&!V.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");V.responseType=V.config.responseType?V.config.responseType:V.oidc&&V.requestAccessToken?"id_token token":V.oidc&&!V.requestAccessToken?"id_token":"token";const W=q.loginUrl.indexOf("?")>-1?"&":"?";let Y=q.scope;V.oidc&&!Y.match(/(^|\s)openid($|\s)/)&&(Y="openid "+Y);let G=q.loginUrl+W+"response_type="+encodeURIComponent(q.responseType)+"&client_id="+encodeURIComponent(q.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(Q)+"&scope="+encodeURIComponent(Y);if(V.responseType.includes("code")&&!V.disablePKCE){const[re,oe]=yield V.createChallangeVerifierPairForPKCE();V.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",oe):V._storage.setItem("PKCE_verifier",oe),G+="&code_challenge="+re,G+="&code_challenge_method=S256"}M&&(G+="&login_hint="+encodeURIComponent(M)),q.resource&&(G+="&resource="+encodeURIComponent(q.resource)),q.oidc&&(G+="&nonce="+encodeURIComponent(ee)),L&&(G+="&prompt=none");for(const re of Object.keys(F))G+="&"+encodeURIComponent(re)+"="+encodeURIComponent(F[re]);if(V.customQueryParams)for(const re of Object.getOwnPropertyNames(V.customQueryParams))G+="&"+re+"="+encodeURIComponent(V.customQueryParams[re]);return G})()}initImplicitFlowInternal(E="",M=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let _={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(_=M),this.createLoginUrl(E,L,null,!1,_).then(this.config.openUri).catch(F=>{console.error("Error in initImplicitFlow",F),this.inImplicitFlow=!1})}initImplicitFlow(E="",M=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,M):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(_=>"discovery_document_loaded"===_.type)).subscribe(_=>this.initImplicitFlowInternal(E,M))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const M=this;if(E.onTokenReceived){const _={idClaims:M.getIdentityClaims(),idToken:M.getIdToken(),accessToken:M.getAccessToken(),state:M.state};E.onTokenReceived(_)}}storeAccessTokenResponse(E,M,_,L,F){if(this._storage.setItem("access_token",E),L&&!Array.isArray(L)?this._storage.setItem("granted_scopes",JSON.stringify(L.split(" "))):L&&Array.isArray(L)&&this._storage.setItem("granted_scopes",JSON.stringify(L)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),_){const V=1e3*_,Q=this.dateTimeService.new().getTime()+V;this._storage.setItem("expires_at",""+Q)}M&&this._storage.setItem("refresh_token",M),F&&F.forEach((V,q)=>{this._storage.setItem(q,V)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(M=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){var M=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const _=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,L=M.getCodePartsFromUrl(_),F=L.code,V=L.state,q=L.session_state;if(!E.preventClearHashAfterLogin){const W=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,W)}let[Q,ee]=M.parseState(V);if(M.state=ee,L.error){M.debug("error trying to login"),M.handleLoginError(E,L);const W=new OAuthErrorEvent("code_error",{},L);return M.eventsSubject.next(W),Promise.reject(W)}if(!E.disableNonceCheck){if(!Q)return M.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!M.validateNonce(Q)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return M.eventsSubject.next(Y),Promise.reject(Y)}return M.storeSessionState(q),F&&(yield M.getTokenFromCode(F,E),M.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,M){let _=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",M.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let L;L=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),L?_=_.set("code_verifier",L):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(_,M)}fetchAndProcessToken(E,M){M=M||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let _=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const L=btoa(`${this.clientId}:${this.dummyClientSecret}`);_=_.set("Authorization","Basic "+L)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((L,F)=>{if(this.customQueryParams)for(let V of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(V,this.customQueryParams[V]);this.http.post(this.tokenEndpoint,E,{headers:_}).subscribe(V=>{this.debug("refresh tokenResponse",V),this.storeAccessTokenResponse(V.access_token,V.refresh_token,V.expires_in||this.fallbackAccessTokenExpirationTimeInSec,V.scope,this.extractRecognizedCustomParameters(V)),this.oidc&&V.id_token?this.processIdToken(V.id_token,V.access_token,M.disableNonceCheck).then(q=>{this.storeIdToken(q),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(V)}).catch(q=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",q)),console.error("Error validating tokens"),console.error(q),F(q)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(V))},V=>{console.error("Error getting token",V),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",V)),F(V)})})}tryLoginImplicitFlow(E=null){let M;M=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",M);const _=M.state;let[L,F]=this.parseState(_);if(this.state=F,M.error){this.debug("error trying to login"),this.handleLoginError(E,M);const W=new OAuthErrorEvent("token_error",{},M);return this.eventsSubject.next(W),Promise.reject(W)}const V=M.access_token,q=M.id_token,Q=M.session_state,ee=M.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!V||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!_||this.oidc&&!q)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!Q&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(L)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(Y),Promise.reject(Y)}return this.requestAccessToken&&this.storeAccessTokenResponse(V,null,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,ee),this.oidc?this.processIdToken(q,V,E.disableNonceCheck).then(W=>E.validationHandler?E.validationHandler({accessToken:V,idClaims:W.idTokenClaims,idToken:W.idToken,state:_}).then(Y=>W):W).then(W=>(this.storeIdToken(W),this.storeSessionState(Q),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(W=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",W)),this.logger.error("Error validating tokens"),this.logger.error(W),Promise.reject(W))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let M=E,_="";if(E){const L=E.indexOf(this.config.nonceStateSeparator);L>-1&&(M=E.substr(0,L),_=E.substr(L+this.config.nonceStateSeparator.length))}return[M,_]}validateNonce(E){let M;return M=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),M===E||(console.error("Validating access_token failed, wrong state/nonce.",M,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,M){E.onLoginError&&E.onLoginError(M),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,M,_=!1){const L=E.split("."),V=b64DecodeUnicode(this.padBase64(L[0])),q=JSON.parse(V),ee=b64DecodeUnicode(this.padBase64(L[1])),W=JSON.parse(ee);let Y;if(Y=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(W.aud)){if(W.aud.every(he=>he!==this.clientId)){const he="Wrong audience: "+W.aud.join(",");return this.logger.warn(he),Promise.reject(he)}}else if(W.aud!==this.clientId){const he="Wrong audience: "+W.aud;return this.logger.warn(he),Promise.reject(he)}if(!W.sub){const he="No sub claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==W.sub){const he=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${W.sub}`;return this.logger.warn(he),Promise.reject(he)}if(!W.iat){const he="No iat claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(!this.skipIssuerCheck&&W.iss!==this.issuer){const he="Wrong issuer: "+W.iss;return this.logger.warn(he),Promise.reject(he)}if(!_&&W.nonce!==Y){const he="Wrong nonce: "+W.nonce;return this.logger.warn(he),Promise.reject(he)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!W.at_hash){const he="An at_hash is needed!";return this.logger.warn(he),Promise.reject(he)}const G=this.dateTimeService.now(),re=1e3*W.iat,oe=1e3*W.exp,ie=this.getClockSkewInMsec();if(re-ie>=G||oe+ie<=G){const he="Token has expired";return console.error(he),console.error({now:G,issuedAtMSec:re,expiresAtMSec:oe}),Promise.reject(he)}const ae={accessToken:M,idToken:E,jwks:this.jwks,idTokenClaims:W,idTokenHeader:q,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ae).then(he=>({idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:V,idTokenExpiresAt:oe})):this.checkAtHash(ae).then(he=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!he){const fe="Wrong at_hash";return this.logger.warn(fe),Promise.reject(fe)}return this.checkSignature(ae).then(fe=>{const Le={idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:V,idTokenExpiresAt:oe};return this.disableAtHashCheck?Le:this.checkAtHash(ae).then(Fe=>{if(this.requestAccessToken&&!Fe){const Ae="Wrong at_hash";return this.logger.warn(Ae),Promise.reject(Ae)}return Le})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),M=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},M=""){let _=!1;"boolean"==typeof E&&(_=E,E={});const L=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(V=>this._storage.removeItem(V)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||_||!L&&!this.postLogoutRedirectUri)return;let F;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)F=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(L)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});L&&(V=V.set("id_token_hint",L));const q=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";q&&(V=V.set("post_logout_redirect_uri",q),M&&(V=V.set("state",M)));for(let Q in E)V=V.set(Q,E[Q]);F=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+V.toString()}this.config.openUri(F)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(M){return E.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",M):E._storage.setItem("nonce",M),M})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const M=this.document.getElementById(this.sessionCheckIFrameName);M&&M.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let _=45,L="";const F=typeof self>"u"?null:self.crypto||self.msCrypto;if(F){let V=new Uint8Array(_);F.getRandomValues(V),V.map||(V.map=Array.prototype.map),V=V.map(q=>M.charCodeAt(q%M.length)),L=String.fromCharCode.apply(null,V)}else for(;0<_--;)L+=M[Math.random()*M.length|0];E(base64UrlEncode(L))})}checkAtHash(E){var M=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return M.tokenValidationHandler?M.tokenValidationHandler.validateAtHash(E):(M.logger.warn("No tokenValidationHandler configured. Cannot check at_hash."),!0)})()}checkSignature(E){return this.tokenValidationHandler?this.tokenValidationHandler.validateSignature(E):(this.logger.warn("No tokenValidationHandler configured. Cannot check signature."),Promise.resolve(null))}initLoginFlow(E="",M={}){return"code"===this.responseType?this.initCodeFlow(E,M):this.initImplicitFlow(E,M)}initCodeFlow(E="",M={}){""!==this.loginUrl?this.initCodeFlowInternal(E,M):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(_=>"discovery_document_loaded"===_.type)).subscribe(_=>this.initCodeFlowInternal(E,M))}initCodeFlowInternal(E="",M={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let _={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(_=M),this.createLoginUrl(E,L,null,!1,_).then(this.config.openUri).catch(F=>{console.error("Error in initAuthorizationCodeFlow"),console.error(F)})}createChallangeVerifierPairForPKCE(){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!E.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const M=yield E.createNonce();return[base64UrlEncode(yield E.crypto.calcHash(M,"sha-256")),M]})()}extractRecognizedCustomParameters(E){let M=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(_=>{E[_]&&M.set(_,JSON.stringify(E[_]))}),M}revokeTokenAndLogout(E={},M=!1){let _=this.revocationEndpoint,L=this.getAccessToken(),F=this.getRefreshToken();if(!L)return;let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),q=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const Q=btoa(`${this.clientId}:${this.dummyClientSecret}`);q=q.set("Authorization","Basic "+Q)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const Q of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(Q,this.customQueryParams[Q]);return new Promise((Q,ee)=>{let W,Y;if(L){let G=V.set("token",L).set("token_type_hint","access_token");W=this.http.post(_,G,{headers:q})}else W=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(F){let G=V.set("token",F).set("token_type_hint","refresh_token");Y=this.http.post(_,G,{headers:q})}else Y=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);M&&(W=W.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G))),Y=Y.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([W,Y]).subscribe(G=>{this.logOut(E),Q(G),this.logger.info("Token successfully revoked")},G=>{this.logger.error("Error revoking token",G),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",G)),ee(G)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(z){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(z)}}let DefaultOAuthInterceptor=(()=>{class N{constructor(E,M,_){this.oAuthService=E,this.errorHandler=M,this.moduleConfig=_}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(M=>E.toLowerCase().startsWith(M.toLowerCase()))}intercept(E,M){const _=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(_)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>!!F)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_received"===F.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(F=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(F=>{if(F){const q=E.headers.set("Authorization","Bearer "+F);E=E.clone({headers:q})}return M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(V=>this.errorHandler.handleError(V)))})):M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>this.errorHandler.handleError(F))):M.handle(E)}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class NullValidationHandler{validateSignature(z){return Promise.resolve(null)}validateAtHash(z){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class N{static forRoot(E=null,M=NullValidationHandler){return{ngModule:N,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:M},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:N}),N.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),N})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(N,z,E)=>{"use strict";function M(L,F,V,q,Q,ee,W){try{var Y=L[ee](W),G=Y.value}catch(re){return void V(re)}Y.done?F(G):Promise.resolve(G).then(q,Q)}function _(L){return function(){var F=this,V=arguments;return new Promise(function(q,Q){var ee=L.apply(F,V);function W(G){M(ee,q,Q,W,Y,"next",G)}function Y(G){M(ee,q,Q,W,Y,"throw",G)}W(void 0)})}}E.d(z,{Z:()=>_})},4147:N=>{"use strict";N.exports={i8:"10.4.3"}}},N=>{N(N.s=6763)}]); \ No newline at end of file diff --git a/dist/apps/password-reset/index.html b/dist/apps/password-reset/index.html index 2679713ce..29d74db23 100644 --- a/dist/apps/password-reset/index.html +++ b/dist/apps/password-reset/index.html @@ -9,5 +9,5 @@ - + diff --git a/dist/apps/password-reset/main.86c4baf8728ceb35.js b/dist/apps/password-reset/main.86c4baf8728ceb35.js new file mode 100644 index 000000000..d3e6d7c47 --- /dev/null +++ b/dist/apps/password-reset/main.86c4baf8728ceb35.js @@ -0,0 +1 @@ +(self.webpackChunkpassword_reset=self.webpackChunkpassword_reset||[]).push([[179],{728:(N,z,E)=>{"use strict";var M=E(6895),f=E(4650);class L extends M.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class F extends L{static makeCurrent(){(0,M.HT)(new F)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function q(){return B=B||document.querySelector("base"),B?B.getAttribute("href"):null}();return null==e?null:function ee(r){Q=Q||document.createElement("a"),Q.setAttribute("href",r);const a=Q.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){B=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,M.Mx)(document.cookie,a)}}let Q,B=null;const W=new f.OlP("TRANSITION_ID"),G=[{provide:f.ip1,useFactory:function Y(r,a,e){return()=>{e.get(f.CZH).donePromise.then(()=>{const t=(0,M.q)(),s=a.querySelectorAll(`style[ng-transition="${r}"]`);for(let u=0;u{class r{build(){return new XMLHttpRequest}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const te=new f.OlP("EventManagerPlugins");let ae=(()=>{class r{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,s){return this._findPluginFor(t).addEventListener(e,t,s)}addGlobalEventListener(e,t,s){return this._findPluginFor(t).addGlobalEventListener(e,t,s)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const s=this._plugins;for(let u=0;u{class r{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),t.add(s))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),_e=(()=>{class r extends fe{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,s){e.forEach(u=>{const d=this._doc.createElement("style");d.textContent=u,s.push(t.appendChild(d))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Oe),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,s)=>{this._addStylesToHost(e,s,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Oe))}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();function Oe(r){(0,M.q)().remove(r)}const je={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ae=/%COMP%/g;function le(r,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return r;!1===r(a)&&(a.preventDefault(),a.returnValue=!1)}}let pe=(()=>{class r{constructor(e,t,s){this.eventManager=e,this.sharedStylesHost=t,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new Ve(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case f.ifc.Emulated:{let s=this.rendererByCompId.get(t.id);return s||(s=new Bt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,s)),s.applyToHost(e),s}case 1:case f.ifc.ShadowDom:return new Fe(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const s=le(t.id,t.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(ae),f.LFG(_e),f.LFG(f.AFp))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class Ve{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(je[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){(Tt(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(Tt(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,s){if(s){e=s+":"+e;const u=je[s];u?a.setAttributeNS(u,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const s=je[t];s?a.removeAttributeNS(s,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,s){s&(f.JOm.DashCase|f.JOm.Important)?a.style.setProperty(e,t,s&f.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&f.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,ce(t)):this.eventManager.addEventListener(a,e,ce(t))}}function Tt(r){return"TEMPLATE"===r.tagName&&void 0!==r.content}class Bt extends Ve{constructor(a,e,t,s){super(a),this.component=t;const u=le(s+"-"+t.id,t.styles,[]);e.addStyles(u),this.contentAttr=function De(r){return"_ngcontent-%COMP%".replace(Ae,r)}(s+"-"+t.id),this.hostAttr=function Me(r){return"_nghost-%COMP%".replace(Ae,r)}(s+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class Fe extends Ve{constructor(a,e,t,s){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=le(s.id,s.styles,[]);for(let d=0;d{class r extends he{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,s){return e.addEventListener(t,s,!1),()=>this.removeEventListener(e,t,s)}removeEventListener(e,t,s){return e.removeEventListener(t,s)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const $n=["alt","control","meta","shift"],Dt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},wn={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},oi={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey};let Jr=(()=>{class r extends he{constructor(e){super(e)}supports(e){return null!=r.parseEventName(e)}addEventListener(e,t,s){const u=r.parseEventName(t),d=r.eventCallback(u.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,M.q)().onAndCancel(e,u.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),s=t.shift();if(0===t.length||"keydown"!==s&&"keyup"!==s)return null;const u=r._normalizeKey(t.pop());let d="";if($n.forEach(n=>{const i=t.indexOf(n);i>-1&&(t.splice(i,1),d+=n+".")}),d+=u,0!=t.length||0===u.length)return null;const l={};return l.domEventName=s,l.fullKey=d,l}static getEventFullKey(e){let t="",s=function lc(r){let a=r.key;if(null==a){if(a=r.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===r.location&&wn.hasOwnProperty(a)&&(a=wn[a]))}return Dt[a]||a}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),$n.forEach(u=>{u!=s&&(0,oi[u])(e)&&(t+=u+".")}),t+=s,t}static eventCallback(e,t,s){return u=>{r.getEventFullKey(u)===e&&s.runGuarded(()=>t(u))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const Ke=(0,f.eFA)(f._c5,"browser",[{provide:f.Lbi,useValue:M.bD},{provide:f.g9A,useValue:function Qn(){F.makeCurrent()},multi:!0},{provide:M.K0,useFactory:function Fa(){return(0,f.RDi)(document),document},deps:[]}]),di=new f.OlP(""),Ua=[{provide:f.rWj,useClass:class re{addToWindow(a){f.dqk.getAngularTestability=(t,s=!0)=>{const u=a.findTestabilityInTree(t,s);if(null==u)throw new Error("Could not find testability for element.");return u},f.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),f.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),f.dqk.frameworkStabilizers||(f.dqk.frameworkStabilizers=[]),f.dqk.frameworkStabilizers.push(t=>{const s=f.dqk.getAllAngularTestabilities();let u=s.length,d=!1;const l=function(n){d=d||n,u--,0==u&&t(d)};s.forEach(function(n){n.whenStable(l)})})}findTestabilityInTree(a,e,t){return null==e?null:a.getTestability(e)??(t?(0,M.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null)}},deps:[]},{provide:f.lri,useClass:f.dDg,deps:[f.R0b,f.eoX,f.rWj]},{provide:f.dDg,useClass:f.dDg,deps:[f.R0b,f.eoX,f.rWj]}],Ri=[{provide:f.zSh,useValue:"root"},{provide:f.qLn,useFactory:function Yn(){return new f.qLn},deps:[]},{provide:te,useClass:Hi,multi:!0,deps:[M.K0,f.R0b,f.Lbi]},{provide:te,useClass:Jr,multi:!0,deps:[M.K0]},{provide:pe,useClass:pe,deps:[ae,_e,f.AFp]},{provide:f.FYo,useExisting:pe},{provide:fe,useExisting:_e},{provide:_e,useClass:_e,deps:[M.K0]},{provide:ae,useClass:ae,deps:[te,f.R0b]},{provide:M.JF,useClass:oe,deps:[]},[]];let Na=(()=>{class r{constructor(e){}static withServerTransition(e){return{ngModule:r,providers:[{provide:f.AFp,useValue:e.appId},{provide:W,useExisting:f.AFp},G]}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(di,12))},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[...Ri,...Ua],imports:[M.ez,f.hGG]}),r})(),X=(()=>{class r{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:function(e){let t=null;return t=e?new e:function ye(){return new X((0,f.LFG)(M.K0))}(),t},providedIn:"root"}),r})();typeof window<"u"&&window;let ti=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:function(e){let t=null;return t=e?new(e||r):f.LFG(st),t},providedIn:"root"}),r})(),st=(()=>{class r extends ti{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case f.q3G.NONE:return t;case f.q3G.HTML:return(0,f.qzn)(t,"HTML")?(0,f.z3N)(t):(0,f.EiD)(this._doc,String(t)).toString();case f.q3G.STYLE:return(0,f.qzn)(t,"Style")?(0,f.z3N)(t):t;case f.q3G.SCRIPT:if((0,f.qzn)(t,"Script"))return(0,f.z3N)(t);throw new Error("unsafe value used in a script context");case f.q3G.URL:return(0,f.qzn)(t,"URL")?(0,f.z3N)(t):(0,f.mCW)(String(t));case f.q3G.RESOURCE_URL:if((0,f.qzn)(t,"ResourceURL"))return(0,f.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,f.JVY)(e)}bypassSecurityTrustStyle(e){return(0,f.L6k)(e)}bypassSecurityTrustScript(e){return(0,f.eBb)(e)}bypassSecurityTrustUrl(e){return(0,f.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,f.pB0)(e)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:function(e){let t=null;return t=e?new e:function Be(r){return new st(r.get(M.K0))}(f.LFG(f.zs3)),t},providedIn:"root"}),r})();var v=E(529);class Rt{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const mt=new f.OlP("basePath");class Ue{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let vr=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new Ue,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Rt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}convertAttributeToNonunique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}convertAttributeToUnique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}createAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}deleteAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteAttributeDefinitions(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"attributes[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAllAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAttribute(e,t,s,u,d,l,n,i,o,c,h,m=!1,g="body",p=!1,w){let R=new v.LE({encoder:this.encoder});null!=e&&(R=this.addToHttpParams(R,e,"attributeName")),null!=t&&(R=this.addToHttpParams(R,t,"attributeId")),null!=s&&(R=this.addToHttpParams(R,s,"facility")),null!=u&&(R=this.addToHttpParams(R,u,"user")),null!=d&&(R=this.addToHttpParams(R,d,"vo")),null!=l&&(R=this.addToHttpParams(R,l,"resource")),null!=n&&(R=this.addToHttpParams(R,n,"member")),null!=i&&(R=this.addToHttpParams(R,i,"group")),null!=o&&(R=this.addToHttpParams(R,o,"host")),null!=c&&(R=this.addToHttpParams(R,c,"userExtSource")),null!=h&&(R=this.addToHttpParams(R,h,"key"));let Te,J=this.defaultHeaders;Te=this.configuration.lookupCredential("BasicAuth"),Te&&(J=J.set("Authorization","Basic "+Te)),Te=this.configuration.lookupCredential("BearerAuth"),Te&&(J=J.set("Authorization","Bearer "+Te));let at=w&&w.httpHeaderAccept;void 0===at&&(at=this.configuration.selectHeaderAccept(["application/json"])),void 0!==at&&(J=J.set("Accept",at));let Ti=w&&w.context;void 0===Ti&&(Ti=new v.qT);let Xt="json";at&&(Xt=at.startsWith("text")?"text":this.configuration.isJsonMime(at)?"json":"blob");let ci=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(m){let on=new URL(ci),Cr=on.pathname.split("/");Cr[1]="non",on.pathname=Cr.join("/"),ci=on.toString()}return this.httpClient.get(ci,{context:Ti,params:R,responseType:Xt,withCredentials:this.configuration.withCredentials,headers:J,observe:g,reportProgress:p})}getAttributeDefinitionById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionsByNamespace(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeModulesDependenciesForAttributeGraphText(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getAttributeModulesDependenciesGraphText(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRules(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributesDefinitionWithRights(e,t,s,u,d,l,n,i,o=!1,c="body",h=!1,m){let g=new v.LE({encoder:this.encoder});null!=e&&(g=this.addToHttpParams(g,e,"member")),null!=t&&(g=this.addToHttpParams(g,t,"user")),null!=s&&(g=this.addToHttpParams(g,s,"vo")),null!=u&&(g=this.addToHttpParams(g,u,"group")),null!=d&&(g=this.addToHttpParams(g,d,"resource")),null!=l&&(g=this.addToHttpParams(g,l,"facility")),null!=n&&(g=this.addToHttpParams(g,n,"host")),null!=i&&(g=this.addToHttpParams(g,i,"userExtSource"));let w,p=this.defaultHeaders;w=this.configuration.lookupCredential("BasicAuth"),w&&(p=p.set("Authorization","Basic "+w)),w=this.configuration.lookupCredential("BearerAuth"),w&&(p=p.set("Authorization","Bearer "+w));let R=m&&m.httpHeaderAccept;void 0===R&&(R=this.configuration.selectHeaderAccept(["application/json"])),void 0!==R&&(p=p.set("Accept",R));let J=m&&m.context;void 0===J&&(J=new v.qT);let Te="json";R&&(Te=R.startsWith("text")?"text":this.configuration.isJsonMime(R)?"json":"blob");let at=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(o){let Ti=new URL(at),Xt=Ti.pathname.split("/");Xt[1]="non",Ti.pathname=Xt.join("/"),at=Ti.toString()}return this.httpClient.get(at,{context:J,params:g,responseType:Te,withCredentials:this.configuration.withCredentials,headers:p,observe:c,reportProgress:h})}getEntitylessAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessAttributesByKey(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesWithKeys(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"keys[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessKeys(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityResourceUserMemberAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=s&&(o=this.addToHttpParams(o,s,"user")),null!=u&&(o=this.addToHttpParams(o,u,"member"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getFacilityUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getGroupResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getGroupResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getHostAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getIdpAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getLogins(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAndUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAndUserAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAndUserAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberGroupAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberGroupAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacility(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacilityService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesFacilityServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesGroupResourceService(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"service")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesHostService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMemberGroup(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesMemberGroupResourceService(e,t,s,u,d,l=!1,n="body",i=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"group")),null!=u&&(c=this.addToHttpParams(c,u,"member")),null!=d&&(c=this.addToHttpParams(c,d,"workWithUserAttributes"));let m,h=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(h=h.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(h=h.set("Authorization","Bearer "+m));let g=o&&o.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(h=h.set("Accept",g));let p=o&&o.context;void 0===p&&(p=new v.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let R=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.get(R,{context:p,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=s&&(o=this.addToHttpParams(o,s,"member")),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesMemberResource(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesMemberResourceService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=s&&(o=this.addToHttpParams(o,s,"member")),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesResource(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesResourceService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesResourceServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesUserFacility(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesVoService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getResourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupAndGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"resource")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithGroupAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getResourceGroupAndGroupAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithGroupAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getResourceGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupMemberAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=s&&(o=this.addToHttpParams(o,s,"member")),u&&u.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")});let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getUserAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserFacilityAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getUserFacilityAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getUserFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVoAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeAttributesForFacilityResourceGroupUserMember(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=s&&(h=this.addToHttpParams(h,s,"group")),null!=u&&(h=this.addToHttpParams(h,u,"user")),null!=d&&(h=this.addToHttpParams(h,d,"member")),l&&l.forEach(Te=>{h=this.addToHttpParams(h,Te,"attributes[]")});let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let p=c&&c.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(m=m.set("Accept",p));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";p&&(R=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(n){let Te=new URL(J),at=Te.pathname.split("/");at[1]="non",Te.pathname=at.join("/"),J=Te.toString()}return this.httpClient.post(J,null,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}removeAttributesForFacilityResourceUserMember(e,t,s,u,d,l=!1,n="body",i=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"user")),null!=u&&(c=this.addToHttpParams(c,u,"member")),d&&d.forEach(J=>{c=this.addToHttpParams(c,J,"attributes[]")});let m,h=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(h=h.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(h=h.set("Authorization","Bearer "+m));let g=o&&o.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(h=h.set("Accept",g));let p=o&&o.context;void 0===p&&(p=new v.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let R=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.post(R,null,{context:p,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeGroupResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attributes[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithGroupAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeHostAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeHostAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributesWorkWithUserAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attributes[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeMemberResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeResourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUesAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserExtSourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserFacilityAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeVoAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeVoAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}setAttributeActionCriticality(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==s)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"attributeDefinition")),null!=t&&(i=this.addToHttpParams(i,t,"action")),null!=s&&(i=this.addToHttpParams(i,s,"critical"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}setAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setEntitylessAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceGroupUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAndUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupWithGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mt,8),f.LFG(Ue,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),lt=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new Ue,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Rt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAllPolicies(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAllRolesManagementRules(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAuthzAdminGroups(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=s&&(i=this.addToHttpParams(i,s,"complementaryObjectName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getAuthzRichAdmins(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==u)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=s&&(h=this.addToHttpParams(h,s,"complementaryObjectName")),u&&u.forEach(Te=>{h=this.addToHttpParams(h,Te,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=l&&(h=this.addToHttpParams(h,l,"onlyDirectAdmins"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let p=c&&c.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(m=m.set("Accept",p));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";p&&(R=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let J=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(n){let Te=new URL(J),at=Te.pathname.split("/");at[1]="non",Te.pathname=at.join("/"),J=Te.toString()}return this.httpClient.get(J,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}getFacilitiesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getLoggedUser(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getMembersWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getPerunPrincipal(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPrincipalRoleNames(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getResourcesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getSecurityTeamsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVosWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}isFacilityAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isGroupAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isPerunAdmin(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}isVoAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}keepAlive(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}loadAuthorizationComponents(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}refreshMfa(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}setRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mt,8),f.LFG(Ue,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Bo=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new Ue,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Rt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}sentMessageToRTWithMemberQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"memberId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=s&&(o=this.addToHttpParams(o,s,"subject")),null!=u&&(o=this.addToHttpParams(o,u,"text"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}sentMessageToRTWithQueue(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}sentMessageToRTWithVo(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}sentMessageToRTWithVoQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"voId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=s&&(o=this.addToHttpParams(o,s,"subject")),null!=u&&(o=this.addToHttpParams(o,u,"text"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mt,8),f.LFG(Ue,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),vn=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new Ue,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Rt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}addSpecificUserOwner(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}addUserExtSource(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}anonymizeUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}changeNonAuthzPasswordByToken(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}changePasswordForLogin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}changePasswordForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}checkPasswordResetRequestByTokenIsValid(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}checkPasswordStrength(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}createAlternativePassword(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}createServiceUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}deleteAlternativePassword(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==s)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"loginNamespace")),null!=s&&(i=this.addToHttpParams(i,s,"passwordId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}deletePasswordForLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deletePasswordForUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}findRichUsers(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}findRichUsersWithAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"searchString")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrsNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}findUsers(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findUsers`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}generateAccountForName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"namespace")),null!=t&&(n=this.addToHttpParams(n,t,"name"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getAllRichUsersWithAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"includedSpecificUsers"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAssignedRichResourcesForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsForFacilityWhereUserIsActive(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsForResourceWhereUserIsActive(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsInVoWhereUserIsAdmin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsWhereUserIsAdmin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getPendingPreferredEmailChanges(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUserExtSources(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUserWithAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersWithAttributesByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersWithoutVoWithAttributes(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"attrsNames[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getSpecificUsersByUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getSponsorsForMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getSponsorsForMemberByVoAndLogin(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==s)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName")),null!=s&&(o=this.addToHttpParams(o,s,"extLogin")),u&&u.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")});let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserById`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceByExtLoginAndExtSourceName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSources(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourcesByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsers(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/getUsers`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getUsersByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsersBySpecificUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"specificUser"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsersPage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}getVosWhereUserIsAdmin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVosWhereUserIsMember(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isLoginAvailable(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}loginExist(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeSpecificUserOwner(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserExtSource(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"userExtSource")),null!=s&&(i=this.addToHttpParams(i,s,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeUserExtSources(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==t)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"userExtSources")}),null!=s&&(i=this.addToHttpParams(i,s,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}requestPreferredEmailChange(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=s&&(h=this.addToHttpParams(h,s,"lang")),null!=u&&(h=this.addToHttpParams(h,u,"linkPath")),null!=d&&(h=this.addToHttpParams(h,d,"customUrl")),null!=l&&(h=this.addToHttpParams(h,l,"idpFilter"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let p=c&&c.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(m=m.set("Accept",p));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";p&&(R=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(n){let Te=new URL(J),at=Te.pathname.split("/");at[1]="non",Te.pathname=at.join("/"),J=Te.toString()}return this.httpClient.post(J,null,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}reservePasswordForLogin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}reservePasswordForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}reserveRandomPassword(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}setLogin(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"login")),null!=s&&(i=this.addToHttpParams(i,s,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}updateUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/updateUser`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateUserExtSourceLastAccess(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}validatePasswordForLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}validatePasswordForUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}validatePreferredEmailChangeWithToken(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mt,8),f.LFG(Ue,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ea=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new Ue,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Rt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAppsConfig(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getGuiConfiguration(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getNewGuiAlert(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunRPCVersion(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatistics(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatus(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunSystemTimeInMillis(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mt,8),f.LFG(Ue,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Of=(()=>{class r{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:r,providers:[{provide:Ue,useFactory:e}]}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(r,12),f.LFG(v.eN,8))},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();var ht=(()=>{return(r=ht||(ht={})).PERUNADMIN="PERUNADMIN",r.PERUNOBSERVER="PERUNOBSERVER",r.VOADMIN="VOADMIN",r.GROUPADMIN="GROUPADMIN",r.GROUPOBSERVER="GROUPOBSERVER",r.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",r.SELF="SELF",r.FACILITYADMIN="FACILITYADMIN",r.FACILITIYOBSERVER="FACILITYOBSERVER",r.RESOURCEADMIN="RESOURCEADMIN",r.RESOURCESELFSERVICE="RESOURCESELFSERVICE",r.REGISTRAR="REGISTRAR",r.ENGINE="ENGINE",r.RPC="RPC",r.NOTIFICATIONS="NOTIFICATIONS",r.SERVICEUSER="SERVICEUSER",r.SPONSOR="SPONSOR",r.VOOBSERVER="VOOBSERVER",r.TOPGROUPCREATOR="TOPGROUPCREATOR",r.SECURITYADMIN="SECURITYADMIN",r.CABINETADMIN="CABINETADMIN",r.UNKNOWNROLENAME="UNKNOWNROLENAME",r.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",r.UNKNOWN="UNKNOWN",r.MEMBERSHIP="MEMBERSHIP",ht;var r})();let ks=(()=>{class r{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,s)=>t.roleName>s.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(s=>{this.allRolesManagementRules=s,e()},s=>t(s))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(s=>{s.primaryObject===t&&e.push(s)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let s=e.beanName;s.startsWith("Rich")&&(s=s.substring(4)),this.assignAvailableRoles(t,s);const u=new Map;this.setRolesAuthorization(t,e,u);for(const d of u.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,s){for(const u of e){let d=[],l=[],n=[];for(const m of this.allRolesManagementRules)if(m.roleName===u.roleName){d=d.concat(m.privilegedRolesToRead),l=l.concat(m.privilegedRolesToManage);for(const g of Object.keys(m.entitiesToManage))n="User"===g?[g].concat(n):n.concat(g);break}const i=this.fetchAllRelatedObjects([t]),o=this.resolveAuthorization(d,i),c=this.resolveAuthorization(l,i);s.set(u.roleName,{readAuth:o,manageAuth:c,modes:n})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],s=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(u=>{!s.includes(u.roleName)&&this.canManage(u)&&this.ruleHasMode(u,e)&&t.push(u)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(s=>s.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const s of e){let u=!0;for(const d of Object.keys(s)){const l=s[d];if(null===l)this.principalRoles.has(d)||(u=!1);else if(t[l]){for(const n of t[l])if(!this.principalHasRole(d,l,n)){u=!1;break}}else u=!1;if(!u)break}if(u)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const s of e){let u=s.beanName;switch(s.beanName.startsWith("Rich")&&(u=s.beanName.substring(4)),t[u]?t[u].push(s.id):t[u]=[s.id],u){case"Member":t.User?t.User.push(s.userId):t.User=[s.userId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Resource":t.Facility?t.Facility.push(s.facilityId):t.Facility=[s.facilityId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let s=[];for(s.push(e);0!==s.length;){const d=s.shift();if(t.has(d))continue;const l=this.getPerunPolicy(d);if(!l)return[];t.set(d,l),s=s.concat(l.includePolicies)}const u=[];for(const d of t.values())u.push(d);return u}voCustomSort(e){for(let t=0;t{(0,Xn.Xf)(r()).subscribe(a)})}var Ru=E(9635),en=E(2843),Sr=E(515),wt=E(727),Ni=E(4482),tn=E(5403);function $a(){return(0,Ni.e)((r,a)=>{let e=null;r._refCount++;const t=(0,tn.x)(a,void 0,void 0,void 0,()=>{if(!r||r._refCount<=0||0<--r._refCount)return void(e=null);const s=r._connection,u=e;e=null,s&&(!u||s===u)&&s.unsubscribe(),a.unsubscribe()});r.subscribe(t),t.closed||(e=r.connect())})}class uc extends Ui.y{constructor(a,e){super(),this.source=a,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,Ni.A)(a)&&(this.lift=a.lift)}_subscribe(a){return this.getSubject().subscribe(a)}getSubject(){const a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:a}=this;this._subject=this._connection=null,a?.unsubscribe()}connect(){let a=this._connection;if(!a){a=this._connection=new wt.w0;const e=this.getSubject();a.add(this.source.subscribe((0,tn.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),a.closed&&(this._connection=null,a=wt.w0.EMPTY)}return a}refCount(){return $a()(this)}}var pt=E(4004),bt=E(3900),qt=E(5698),Lf=E(3269);function si(...r){const a=(0,Lf.yG)(r);return(0,Ni.e)((e,t)=>{(a?(0,na.z)(r,e,a):(0,na.z)(r,e)).subscribe(t)})}var kt=E(5577),xn=E(590),dn=E(4351),Lt=E(8505),Vt=E(262);function P(r,a,e,t,s){return(u,d)=>{let l=e,n=a,i=0;u.subscribe((0,tn.x)(d,o=>{const c=i++;n=l?r(n,o,c):(l=!0,o),t&&d.next(n)},s&&(()=>{l&&d.next(n),d.complete()})))}}function O(r,a){return(0,Ni.e)(P(r,a,arguments.length>=2,!0))}function I(r){return r<=0?()=>Sr.E:(0,Ni.e)((a,e)=>{let t=[];a.subscribe((0,tn.x)(e,s=>{t.push(s),r{for(const s of t)e.next(s);e.complete()},void 0,()=>{t=null}))})}var j=E(8068),ne=E(6590),me=E(4671);function de(r,a){const e=arguments.length>=2;return t=>t.pipe(r?(0,ii.h)((s,u)=>r(s,u,t)):me.y,I(1),e?(0,ne.d)(a):(0,j.T)(()=>new ia.K))}var Ut=E(9718);function Et(r){return(0,Ni.e)((a,e)=>{try{a.subscribe(e)}finally{e.add(r)}})}var Pt=E(8189);const Le="primary";class ui{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Mt(r){return new ui(r)}function Mi(r,a,e){const t=e.path.split("/");if(t.length>r.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[u]===s)}return r===a}function er(r){return Array.prototype.concat.apply([],r)}function $t(r){return r.length>0?r[r.length-1]:null}function zt(r,a){for(const e in r)r.hasOwnProperty(e)&&a(r[e],e)}function wi(r){return(0,f.CqO)(r)?r:(0,f.QGY)(r)?(0,Ei.D)(Promise.resolve(r)):(0,Ie.of)(r)}const kx={exact:function Bi(r,a,e){if(!Mr(r.segments,a.segments)||!un(r.segments,a.segments,e)||r.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!r.children[t]||!Bi(r.children[t],a.children[t],e))return!1;return!0},subset:Iu},jf={exact:function hc(r,a){return Xe(r,a)},subset:function Er(r,a){return Object.keys(a).length<=Object.keys(r).length&&Object.keys(a).every(e=>ra(r[e],a[e]))},ignored:()=>!0};function QC(r,a,e){return kx[e.paths](r.root,a.root,e.matrixParams)&&jf[e.queryParams](r.queryParams,a.queryParams)&&!("exact"===e.fragment&&r.fragment!==a.fragment)}function Iu(r,a,e){return Qa(r,a,a.segments,e)}function Qa(r,a,e,t){if(r.segments.length>e.length){const s=r.segments.slice(0,e.length);return!(!Mr(s,e)||a.hasChildren()||!un(s,e,t))}if(r.segments.length===e.length){if(!Mr(r.segments,e)||!un(r.segments,e,t))return!1;for(const s in a.children)if(!r.children[s]||!Iu(r.children[s],a.children[s],t))return!1;return!0}{const s=e.slice(0,r.segments.length),u=e.slice(r.segments.length);return!!(Mr(r.segments,s)&&un(r.segments,s,t)&&r.children[Le])&&Qa(r.children[Le],a,u,t)}}function un(r,a,e){return a.every((t,s)=>jf[e](r[s].parameters,t.parameters))}class Ya{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Mt(this.queryParams)),this._queryParamMap}toString(){return JC.serialize(this)}}class gt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,zt(e,(t,s)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return js(this)}}class Os{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Mt(this.parameters)),this._parameterMap}toString(){return Nf(this)}}function Mr(r,a){return r.length===a.length&&r.every((e,t)=>e.path===a[t].path)}let Vu=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:function(){return new Ls},providedIn:"root"}),r})();class Ls{parse(a){const e=new ew(a);return new Ya(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${Ja(a.root,!0)}`,t=function aa(r){const a=Object.keys(r).map(e=>{const t=r[e];return Array.isArray(t)?t.map(s=>`${Fs(e)}=${Fs(s)}`).join("&"):`${Fs(e)}=${Fs(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function Ff(r){return encodeURI(r)}(a.fragment)}`:""}`}}const JC=new Ls;function js(r){return r.segments.map(a=>Nf(a)).join("/")}function Ja(r,a){if(!r.hasChildren())return js(r);if(a){const e=r.children[Le]?Ja(r.children[Le],!1):"",t=[];return zt(r.children,(s,u)=>{u!==Le&&t.push(`${u}:${Ja(s,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function ku(r,a){let e=[];return zt(r.children,(t,s)=>{s===Le&&(e=e.concat(a(t,s)))}),zt(r.children,(t,s)=>{s!==Le&&(e=e.concat(a(t,s)))}),e}(r,(t,s)=>s===Le?[Ja(r.children[Le],!1)]:[`${s}:${Ja(t,!1)}`]);return 1===Object.keys(r.children).length&&null!=r.children[Le]?`${js(r)}/${e[0]}`:`${js(r)}/(${e.join("//")})`}}function Bu(r){return encodeURIComponent(r).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Fs(r){return Bu(r).replace(/%3B/gi,";")}function pc(r){return Bu(r).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Fo(r){return decodeURIComponent(r)}function Uf(r){return Fo(r.replace(/\+/g,"%20"))}function Nf(r){return`${pc(r.path)}${function qi(r){return Object.keys(r).map(a=>`;${pc(a)}=${pc(r[a])}`).join("")}(r.parameters)}`}const Kt=/^[^\/()?;=#]+/;function Us(r){const a=r.match(Kt);return a?a[0]:""}const KC=/^[^=?&#]+/,ZC=/^[^&#]+/;class ew{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[Le]=new gt(a,e)),t}parseSegment(){const a=Us(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new f.vHH(4009,!1);return this.capture(a),new Os(Fo(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Us(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const s=Us(this.remaining);s&&(t=s,this.capture(t))}a[Fo(e)]=Fo(t)}parseQueryParam(a){const e=function qf(r){const a=r.match(KC);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function XC(r){const a=r.match(ZC);return a?a[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const s=Uf(e),u=Uf(t);if(a.hasOwnProperty(s)){let d=a[s];Array.isArray(d)||(d=[d],a[s]=d),d.push(u)}else a[s]=u}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Us(this.remaining),s=this.remaining[t.length];if("/"!==s&&")"!==s&&";"!==s)throw new f.vHH(4010,!1);let u;t.indexOf(":")>-1?(u=t.slice(0,t.indexOf(":")),this.capture(u),this.capture(":")):a&&(u=Le);const d=this.parseChildren();e[u]=1===Object.keys(d).length?d[Le]:new gt([],d),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new f.vHH(4011,!1)}}function Uo(r){return r.segments.length>0?new gt([],{[Le]:r}):r}function Ka(r){const a={};for(const t of Object.keys(r.children)){const u=Ka(r.children[t]);(u.segments.length>0||u.hasChildren())&&(a[t]=u)}return function fc(r){if(1===r.numberOfChildren&&r.children[Le]){const a=r.children[Le];return new gt(r.segments.concat(a.segments),a.children)}return r}(new gt(r.segments,a))}function Dr(r){return r instanceof Ya}function tw(r,a,e,t,s){if(0===e.length)return sa(a.root,a.root,a.root,t,s);const u=function iw(r){if("string"==typeof r[0]&&1===r.length&&"/"===r[0])return new Gf(!0,0,r);let a=0,e=!1;const t=r.reduce((s,u,d)=>{if("object"==typeof u&&null!=u){if(u.outlets){const l={};return zt(u.outlets,(n,i)=>{l[i]="string"==typeof n?n.split("/"):n}),[...s,{outlets:l}]}if(u.segmentPath)return[...s,u.segmentPath]}return"string"!=typeof u?[...s,u]:0===d?(u.split("/").forEach((l,n)=>{0==n&&"."===l||(0==n&&""===l?e=!0:".."===l?a++:""!=l&&s.push(l))}),s):[...s,u]},[]);return new Gf(e,a,t)}(e);return u.toRoot()?sa(a.root,a.root,new gt([],{}),t,s):function d(n){const i=function Wf(r,a,e,t){if(r.isAbsolute)return new zs(a.root,!0,0);if(-1===t)return new zs(e,e===a.root,0);return function Ou(r,a,e){let t=r,s=a,u=e;for(;u>s;){if(u-=s,t=t.parent,!t)throw new f.vHH(4005,!1);s=t.segments.length}return new zs(t,!1,s-u)}(e,t+(qs(r.commands[0])?0:1),r.numberOfDoubleDots)}(u,a,r.snapshot?._urlSegment,n),o=i.processChildren?No(i.segmentGroup,i.index,u.commands):bc(i.segmentGroup,i.index,u.commands);return sa(a.root,i.segmentGroup,o,t,s)}(r.snapshot?._lastPathIndex)}function qs(r){return"object"==typeof r&&null!=r&&!r.outlets&&!r.segmentPath}function Hr(r){return"object"==typeof r&&null!=r&&r.outlets}function sa(r,a,e,t,s){let d,u={};t&&zt(t,(n,i)=>{u[i]=Array.isArray(n)?n.map(o=>`${o}`):`${n}`}),d=r===a?e:zf(r,a,e);const l=Uo(Ka(d));return new Ya(l,u,s)}function zf(r,a,e){const t={};return zt(r.children,(s,u)=>{t[u]=s===a?e:zf(s,a,e)}),new gt(r.segments,t)}class Gf{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&qs(t[0]))throw new f.vHH(4003,!1);const s=t.find(Hr);if(s&&s!==$t(t))throw new f.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class zs{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function bc(r,a,e){if(r||(r=new gt([],{})),0===r.segments.length&&r.hasChildren())return No(r,a,e);const t=function qo(r,a,e){let t=0,s=a;const u={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return u;const d=r.segments[s],l=e[t];if(Hr(l))break;const n=`${l}`,i=t0&&void 0===n)break;if(n&&i&&"object"==typeof i&&void 0===i.outlets){if(!Gs(n,i,d))return u;t+=2}else{if(!Gs(n,{},d))return u;t++}s++}return{match:!0,pathIndex:s,commandIndex:t}}(r,a,e),s=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof u&&(u=[u]),null!==u&&(s[d]=bc(r.children[d],a,u))}),zt(r.children,(u,d)=>{void 0===t[d]&&(s[d]=u)}),new gt(r.segments,s)}}function Lu(r,a,e){const t=r.segments.slice(0,a);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=Lu(new gt([],{}),0,e))}),a}function Cc(r){const a={};return zt(r,(e,t)=>a[t]=`${e}`),a}function Gs(r,a,e){return r==e.path&&Xe(a,e.parameters)}class la{constructor(a,e){this.id=a,this.url=e}}class wc extends la{constructor(a,e,t="imperative",s=null){super(a,e),this.type=0,this.navigationTrigger=t,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Rr extends la{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class yc extends la{constructor(a,e,t,s){super(a,e),this.reason=t,this.code=s,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Tn extends la{constructor(a,e,t,s){super(a,e),this.error=t,this.target=s,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class nw extends la{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ws extends la{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ju extends la{constructor(a,e,t,s,u){super(a,e),this.urlAfterRedirects=t,this.state=s,this.shouldActivate=u,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Fu extends la{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vc extends la{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ac{constructor(a){this.route=a,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class rw{constructor(a){this.route=a,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class $f{constructor(a){this.snapshot=a,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qf{constructor(a){this.snapshot=a,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yf{constructor(a){this.snapshot=a,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jf{constructor(a){this.snapshot=a,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kf{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Go{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=Uu(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=Uu(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=Tc(a,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==a)}pathFromRoot(a){return Tc(a,this._root).map(e=>e.value)}}function Uu(r,a){if(r===a.value)return a;for(const e of a.children){const t=Uu(r,e);if(t)return t}return null}function Tc(r,a){if(r===a.value)return[a];for(const e of a.children){const t=Tc(r,e);if(t.length)return t.unshift(a),t}return[]}class tr{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Sn(r){const a={};return r&&r.children.forEach(e=>a[e.value.outlet]=e),a}class Zf extends Go{constructor(a,e){super(a),this.snapshot=e,ca(this,a)}toString(){return this.snapshot.toString()}}function Nu(r,a){const e=function qu(r,a){const d=new Ir([],{},{},"",{},Le,a,null,r.root,-1,{});return new Za("",new tr(d,[]))}(r,a),t=new Vi([new Os("",{})]),s=new Vi({}),u=new Vi({}),d=new Vi({}),l=new Vi(""),n=new Pr(t,s,d,l,u,Le,a,e.root);return n.snapshot=e.root,new Zf(new tr(n,[]),e)}class Pr{constructor(a,e,t,s,u,d,l,n){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this._futureSnapshot=n}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,pt.U)(a=>Mt(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,pt.U)(a=>Mt(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function zu(r,a="emptyOnly"){const e=r.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const s=e[t],u=e[t-1];if(s.routeConfig&&""===s.routeConfig.path)t--;else{if(u.component)break;t--}}return function Gu(r){return r.reduce((a,e)=>({params:{...a.params,...e.params},data:{...a.data,...e.data},resolve:{...e.data,...a.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class Ir{constructor(a,e,t,s,u,d,l,n,i,o,c,h){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this.routeConfig=n,this._urlSegment=i,this._lastPathIndex=o,this._correctedLastPathIndex=h??o,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Mt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Mt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Za extends Go{constructor(a,e){super(e),this.url=a,ca(this,e)}toString(){return Wu(this._root)}}function ca(r,a){a.value._routerState=r,a.children.forEach(e=>ca(r,e))}function Wu(r){const a=r.children.length>0?` { ${r.children.map(Wu).join(", ")} } `:"";return`${r.value}${a}`}function $s(r){if(r.snapshot){const a=r.snapshot,e=r._futureSnapshot;r.snapshot=e,Xe(a.queryParams,e.queryParams)||r.queryParams.next(e.queryParams),a.fragment!==e.fragment&&r.fragment.next(e.fragment),Xe(a.params,e.params)||r.params.next(e.params),function we(r,a){if(r.length!==a.length)return!1;for(let e=0;eXe(e.parameters,a[t].parameters))}(r.url,a.url);return e&&!(!r.parent!=!a.parent)&&(!r.parent||da(r.parent,a.parent))}function Qs(r,a,e){if(e&&r.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const s=function jt(r,a,e){return a.children.map(t=>{for(const s of e.children)if(r.shouldReuseRoute(t.value,s.value.snapshot))return Qs(r,t,s);return Qs(r,t)})}(r,a,e);return new tr(t,s)}{if(r.shouldAttach(a.value)){const u=r.retrieve(a.value);if(null!==u){const d=u.route;return d.value._futureSnapshot=a.value,d.children=a.children.map(l=>Qs(r,l)),d}}const t=function Ox(r){return new Pr(new Vi(r.url),new Vi(r.params),new Vi(r.queryParams),new Vi(r.fragment),new Vi(r.data),r.outlet,r.component,r)}(a.value),s=a.children.map(u=>Qs(r,u));return new tr(t,s)}}const Xf="ngNavigationCancelingError";function aw(r,a){const{redirectTo:e,navigationBehaviorOptions:t}=Dr(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,s=ow(!1,0,a);return s.url=e,s.navigationBehaviorOptions=t,s}function ow(r,a,e){const t=new Error("NavigationCancelingError: "+(r||""));return t[Xf]=!0,t.cancellationCode=a,e&&(t.url=e),t}function sw(r){return lw(r)&&Dr(r.url)}function lw(r){return r&&r[Xf]}class Lx{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new kr,this.attachRef=null}}let kr=(()=>{class r{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const s=this.getOrCreateContext(e);s.outlet=t,this.contexts.set(e,s)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Lx,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const $u=!1;let em=(()=>{class r{constructor(e,t,s,u,d){this.parentContexts=e,this.location=t,this.changeDetector=u,this.environmentInjector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new f.vpe,this.deactivateEvents=new f.vpe,this.attachEvents=new f.vpe,this.detachEvents=new f.vpe,this.name=s||Le,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new f.vHH(4012,$u);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new f.vHH(4012,$u);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new f.vHH(4012,$u);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new f.vHH(4013,$u);this._activatedRoute=e;const s=this.location,d=e._futureSnapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,n=new hi(e,l,s.injector);if(t&&function Qu(r){return!!r.resolveComponentFactory}(t)){const i=t.resolveComponentFactory(d);this.activated=s.createComponent(i,s.length,n)}else this.activated=s.createComponent(d,{index:s.length,injector:n,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(kr),f.Y36(f.s_b),f.$8M("name"),f.Y36(f.sBO),f.Y36(f.lqb))},r.\u0275dir=f.lG2({type:r,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),r})();class hi{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===Pr?this.route:a===kr?this.childContexts:this.parent.get(a,e)}}let Wo=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=f.Xpm({type:r,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&f._UZ(0,"router-outlet")},dependencies:[em],encapsulation:2}),r})();function cw(r,a){return r.providers&&!r._injector&&(r._injector=(0,f.MMx)(r.providers,a,`Route: ${r.path}`)),r._injector??a}function Yu(r){const a=r.children&&r.children.map(Yu),e=a?{...r,children:a}:{...r};return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==Le&&(e.component=Wo),e}function En(r){return r.outlet||Le}function hw(r,a){const e=r.filter(t=>En(t)===a);return e.push(...r.filter(t=>En(t)!==a)),e}function Ju(r){if(!r)return null;if(r.routeConfig?._injector)return r.routeConfig._injector;for(let a=r.parent;a;a=a.parent){const e=a.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Ku{constructor(a,e,t,s){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=s}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),$s(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const s=Sn(e);a.children.forEach(u=>{const d=u.value.outlet;this.deactivateRoutes(u,s[d],t),delete s[d]}),zt(s,(u,d)=>{this.deactivateRouteAndItsChildren(u,t)})}deactivateRoutes(a,e,t){const s=a.value,u=e?e.value:null;if(s===u)if(s.component){const d=t.getContext(s.outlet);d&&this.deactivateChildRoutes(a,e,d.children)}else this.deactivateChildRoutes(a,e,t);else u&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),s=t&&a.value.component?t.children:e,u=Sn(a);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);if(t&&t.outlet){const d=t.outlet.detach(),l=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:d,route:a,contexts:l})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),s=t&&a.value.component?t.children:e,u=Sn(a);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const s=Sn(e);a.children.forEach(u=>{this.activateRoutes(u,s[u.value.outlet],t),this.forwardEvent(new Jf(u.value.snapshot))}),a.children.length&&this.forwardEvent(new Qf(a.value.snapshot))}activateRoutes(a,e,t){const s=a.value,u=e?e.value:null;if($s(s),s===u)if(s.component){const d=t.getOrCreateContext(s.outlet);this.activateChildRoutes(a,e,d.children)}else this.activateChildRoutes(a,e,t);else if(s.component){const d=t.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const l=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),d.children.onOutletReAttached(l.contexts),d.attachRef=l.componentRef,d.route=l.route.value,d.outlet&&d.outlet.attach(l.componentRef,l.route.value),$s(l.route.value),this.activateChildRoutes(a,null,d.children)}else{const l=Ju(s.snapshot),n=l?.get(f._Vd)??null;d.attachRef=null,d.route=s,d.resolver=n,d.injector=l,d.outlet&&d.outlet.activateWith(s,d.injector),this.activateChildRoutes(a,null,d.children)}}else this.activateChildRoutes(a,null,t)}}class Xa{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class Zu{constructor(a,e){this.component=a,this.route=e}}function im(r,a,e){const t=r._root;return Js(t,a?a._root:null,e,[t.value])}function Sc(r,a,e){return(Ju(a)??e).get(r)}function Js(r,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=Sn(a);return r.children.forEach(d=>{(function fw(r,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=r.value,d=a?a.value:null,l=e?e.getContext(r.value.outlet):null;if(d&&u.routeConfig===d.routeConfig){const n=function mw(r,a,e){if("function"==typeof e)return e(r,a);switch(e){case"pathParamsChange":return!Mr(r.url,a.url);case"pathParamsOrQueryParamsChange":return!Mr(r.url,a.url)||!Xe(r.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!da(r,a)||!Xe(r.queryParams,a.queryParams);default:return!da(r,a)}}(d,u,u.routeConfig.runGuardsAndResolvers);n?s.canActivateChecks.push(new Xa(t)):(u.data=d.data,u._resolvedData=d._resolvedData),Js(r,a,u.component?l?l.children:null:e,t,s),n&&l&&l.outlet&&l.outlet.isActivated&&s.canDeactivateChecks.push(new Zu(l.outlet.component,d))}else d&&Ks(a,l,s),s.canActivateChecks.push(new Xa(t)),Js(r,null,u.component?l?l.children:null:e,t,s)})(d,u[d.value.outlet],e,t.concat([d.value]),s),delete u[d.value.outlet]}),zt(u,(d,l)=>Ks(d,e.getContext(l),s)),s}function Ks(r,a,e){const t=Sn(r),s=r.value;zt(t,(u,d)=>{Ks(u,s.component?a?a.children.getContext(d):null:a,e)}),e.canDeactivateChecks.push(new Zu(s.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,s))}function eo(r){return"function"==typeof r}function Dc(r){return r instanceof ia.K||"EmptyError"===r?.name}const ha=Symbol("INITIAL_VALUE");function Mn(){return(0,bt.w)(r=>(0,jo.a)(r.map(a=>a.pipe((0,qt.q)(1),si(ha)))).pipe((0,pt.U)(a=>{for(const e of a)if(!0!==e){if(e===ha)return ha;if(!1===e||e instanceof Ya)return e}return!0}),(0,ii.h)(a=>a!==ha),(0,qt.q)(1)))}function Hc(r){return(0,Ru.z)((0,Lt.b)(a=>{if(Dr(a))throw aw(0,a)}),(0,pt.U)(a=>!0===a))}const Rc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Qo(r,a,e,t,s){const u=th(r,a,e);return u.matched?function el(r,a,e,t){const s=a.canMatch;if(!s||0===s.length)return(0,Ie.of)(!0);const u=s.map(d=>{const l=r.get(d),n=function gw(r){return r&&eo(r.canMatch)}(l)?l.canMatch(a,e):l(a,e);return wi(n)});return(0,Ie.of)(u).pipe(Mn(),Hc())}(t=cw(a,t),a,e).pipe((0,pt.U)(d=>!0===d?u:{...Rc})):(0,Ie.of)(u)}function th(r,a,e){if(""===a.path)return"full"===a.pathMatch&&(r.hasChildren()||e.length>0)?{...Rc}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const s=(a.matcher||Mi)(e,r,a);if(!s)return{...Rc};const u={};zt(s.posParams,(l,n)=>{u[n]=l.path});const d=s.consumed.length>0?{...u,...s.consumed[s.consumed.length-1].parameters}:u;return{matched:!0,consumedSegments:s.consumed,remainingSegments:e.slice(s.consumed.length),parameters:d,positionalParamSegments:s.posParams??{}}}function tl(r,a,e,t,s="corrected"){if(e.length>0&&function am(r,a,e){return e.some(t=>Ic(r,a,t)&&En(t)!==Le)}(r,e,t)){const d=new gt(a,function Pc(r,a,e,t){const s={};s[Le]=t,t._sourceSegment=r,t._segmentIndexShift=a.length;for(const u of e)if(""===u.path&&En(u)!==Le){const d=new gt([],{});d._sourceSegment=r,d._segmentIndexShift=a.length,s[En(u)]=d}return s}(r,a,t,new gt(e,r.children)));return d._sourceSegment=r,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function vw(r,a,e){return e.some(t=>Ic(r,a,t))}(r,e,t)){const d=new gt(r.segments,function il(r,a,e,t,s,u){const d={};for(const l of t)if(Ic(r,e,l)&&!s[En(l)]){const n=new gt([],{});n._sourceSegment=r,n._segmentIndexShift="legacy"===u?r.segments.length:a.length,d[En(l)]=n}return{...s,...d}}(r,a,e,t,r.children,s));return d._sourceSegment=r,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}const u=new gt(r.segments,r.children);return u._sourceSegment=r,u._segmentIndexShift=a.length,{segmentGroup:u,slicedSegments:e}}function Ic(r,a,e){return(!(r.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function to(r,a,e,t){return!!(En(r)===t||t!==Le&&Ic(a,e,r))&&("**"===r.path||th(a,r,e).matched)}function Yo(r,a,e){return 0===a.length&&!r.children[e]}const kc=!1;class ih{constructor(a){this.segmentGroup=a||null}}class nh{constructor(a){this.urlTree=a}}function nl(r){return(0,en._)(new ih(r))}function Aw(r){return(0,en._)(new nh(r))}class Vc{constructor(a,e,t,s,u){this.injector=a,this.configLoader=e,this.urlSerializer=t,this.urlTree=s,this.config=u,this.allowRedirects=!0}apply(){const a=tl(this.urlTree.root,[],[],this.config).segmentGroup,e=new gt(a.segments,a.children);return this.expandSegmentGroup(this.injector,this.config,e,Le).pipe((0,pt.U)(u=>this.createUrlTree(Ka(u),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Vt.K)(u=>{if(u instanceof nh)return this.allowRedirects=!1,this.match(u.urlTree);throw u instanceof ih?this.noMatchError(u):u}))}match(a){return this.expandSegmentGroup(this.injector,this.config,a.root,Le).pipe((0,pt.U)(s=>this.createUrlTree(Ka(s),a.queryParams,a.fragment))).pipe((0,Vt.K)(s=>{throw s instanceof ih?this.noMatchError(s):s}))}noMatchError(a){return new f.vHH(4002,kc)}createUrlTree(a,e,t){const s=Uo(a);return new Ya(s,e,t)}expandSegmentGroup(a,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,pt.U)(u=>new gt([],u))):this.expandSegment(a,t,e,t.segments,s,!0)}expandChildren(a,e,t){const s=[];for(const u of Object.keys(t.children))"primary"===u?s.unshift(u):s.push(u);return(0,Ei.D)(s).pipe((0,dn.b)(u=>{const d=t.children[u],l=hw(e,u);return this.expandSegmentGroup(a,l,d,u).pipe((0,pt.U)(n=>({segment:n,outlet:u})))}),O((u,d)=>(u[d.outlet]=d.segment,u),{}),de())}expandSegment(a,e,t,s,u,d){return(0,Ei.D)(t).pipe((0,dn.b)(l=>this.expandSegmentAgainstRoute(a,e,t,l,s,u,d).pipe((0,Vt.K)(i=>{if(i instanceof ih)return(0,Ie.of)(null);throw i}))),(0,xn.P)(l=>!!l),(0,Vt.K)((l,n)=>{if(Dc(l))return Yo(e,s,u)?(0,Ie.of)(new gt([],{})):nl(e);throw l}))}expandSegmentAgainstRoute(a,e,t,s,u,d,l){return to(s,e,u,d)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(a,e,s,u,d):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d):nl(e):nl(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,s,d):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,s){const u=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Aw(u):this.lineralizeSegments(t,u).pipe((0,kt.z)(d=>{const l=new gt(d,{});return this.expandSegment(a,l,e,d,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d){const{matched:l,consumedSegments:n,remainingSegments:i,positionalParamSegments:o}=th(e,s,u);if(!l)return nl(e);const c=this.applyRedirectCommands(n,s.redirectTo,o);return s.redirectTo.startsWith("/")?Aw(c):this.lineralizeSegments(s,c).pipe((0,kt.z)(h=>this.expandSegment(a,e,t,h.concat(i),d,!1)))}matchSegmentAgainstRoute(a,e,t,s,u){return"**"===t.path?(a=cw(t,a),t.loadChildren?(t._loadedRoutes?(0,Ie.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(a,t)).pipe((0,pt.U)(l=>(t._loadedRoutes=l.routes,t._loadedInjector=l.injector,new gt(s,{})))):(0,Ie.of)(new gt(s,{}))):Qo(e,t,s,a).pipe((0,bt.w)(({matched:d,consumedSegments:l,remainingSegments:n})=>d?this.getChildConfig(a=t._injector??a,t,s).pipe((0,kt.z)(o=>{const c=o.injector??a,h=o.routes,{segmentGroup:m,slicedSegments:g}=tl(e,l,n,h),p=new gt(m.segments,m.children);if(0===g.length&&p.hasChildren())return this.expandChildren(c,h,p).pipe((0,pt.U)(Te=>new gt(l,Te)));if(0===h.length&&0===g.length)return(0,Ie.of)(new gt(l,{}));const w=En(t)===u;return this.expandSegment(c,p,h,g,w?Le:u,!0).pipe((0,pt.U)(J=>new gt(l.concat(J.segments),J.children)))})):nl(e)))}getChildConfig(a,e,t){return e.children?(0,Ie.of)({routes:e.children,injector:a}):e.loadChildren?void 0!==e._loadedRoutes?(0,Ie.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function yw(r,a,e,t){const s=a.canLoad;if(void 0===s||0===s.length)return(0,Ie.of)(!0);const u=s.map(d=>{const l=r.get(d),n=function Fx(r){return r&&eo(r.canLoad)}(l)?l.canLoad(a,e):l(a,e);return wi(n)});return(0,Ie.of)(u).pipe(Mn(),Hc())}(a,e,t).pipe((0,kt.z)(s=>s?this.configLoader.loadChildren(a,e).pipe((0,Lt.b)(u=>{e._loadedRoutes=u.routes,e._loadedInjector=u.injector})):function Tw(r){return(0,en._)(ow(kc,3))}())):(0,Ie.of)({routes:[],injector:a})}lineralizeSegments(a,e){let t=[],s=e.root;for(;;){if(t=t.concat(s.segments),0===s.numberOfChildren)return(0,Ie.of)(t);if(s.numberOfChildren>1||!s.children[Le])return(0,en._)(new f.vHH(4e3,kc));s=s.children[Le]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreateUrlTree(a,e,t,s){const u=this.createSegmentGroup(a,e.root,t,s);return new Ya(u,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return zt(a,(s,u)=>{if("string"==typeof s&&s.startsWith(":")){const l=s.substring(1);t[u]=e[l]}else t[u]=s}),t}createSegmentGroup(a,e,t,s){const u=this.createSegments(a,e.segments,t,s);let d={};return zt(e.children,(l,n)=>{d[n]=this.createSegmentGroup(a,l,t,s)}),new gt(u,d)}createSegments(a,e,t,s){return e.map(u=>u.path.startsWith(":")?this.findPosParam(a,u,s):this.findOrReturn(u,t))}findPosParam(a,e,t){const s=t[e.path.substring(1)];if(!s)throw new f.vHH(4001,kc);return s}findOrReturn(a,e){let t=0;for(const s of e){if(s.path===a.path)return e.splice(t),s;t++}return a}}class sm{}class qx{constructor(a,e,t,s,u,d,l,n){this.injector=a,this.rootComponentType=e,this.config=t,this.urlTree=s,this.url=u,this.paramsInheritanceStrategy=d,this.relativeLinkResolution=l,this.urlSerializer=n}recognize(){const a=tl(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,a,Le).pipe((0,pt.U)(e=>{if(null===e)return null;const t=new Ir([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Le,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new tr(t,e),u=new Za(this.url,s);return this.inheritParamsAndData(u._root),u}))}inheritParamsAndData(a){const e=a.value,t=zu(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(a,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.processChildren(a,e,t):this.processSegment(a,e,t,t.segments,s)}processChildren(a,e,t){return(0,Ei.D)(Object.keys(t.children)).pipe((0,dn.b)(s=>{const u=t.children[s],d=hw(e,s);return this.processSegmentGroup(a,d,u,s)}),O((s,u)=>s&&u?(s.push(...u),s):null),function Ge(r,a=!1){return(0,Ni.e)((e,t)=>{let s=0;e.subscribe((0,tn.x)(t,u=>{const d=r(u,s++);(d||a)&&t.next(u),!d&&t.complete()}))})}(s=>null!==s),(0,ne.d)(null),de(),(0,pt.U)(s=>{if(null===s)return null;const u=rl(s);return function rh(r){r.sort((a,e)=>a.value.outlet===Le?-1:e.value.outlet===Le?1:a.value.outlet.localeCompare(e.value.outlet))}(u),u}))}processSegment(a,e,t,s,u){return(0,Ei.D)(e).pipe((0,dn.b)(d=>this.processSegmentAgainstRoute(d._injector??a,d,t,s,u)),(0,xn.P)(d=>!!d),(0,Vt.K)(d=>{if(Dc(d))return Yo(t,s,u)?(0,Ie.of)([]):(0,Ie.of)(null);throw d}))}processSegmentAgainstRoute(a,e,t,s,u){if(e.redirectTo||!to(e,t,s,u))return(0,Ie.of)(null);let d;if("**"===e.path){const l=s.length>0?$t(s).parameters:{},n=dm(t)+s.length,i=new Ir(s,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Mw(e),En(e),e.component??e._loadedComponent??null,e,io(t),n,al(e),n);d=(0,Ie.of)({snapshot:i,consumedSegments:[],remainingSegments:[]})}else d=Qo(t,e,s,a).pipe((0,pt.U)(({matched:l,consumedSegments:n,remainingSegments:i,parameters:o})=>{if(!l)return null;const c=dm(t)+n.length;return{snapshot:new Ir(n,o,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Mw(e),En(e),e.component??e._loadedComponent??null,e,io(t),c,al(e),c),consumedSegments:n,remainingSegments:i}}));return d.pipe((0,bt.w)(l=>{if(null===l)return(0,Ie.of)(null);const{snapshot:n,consumedSegments:i,remainingSegments:o}=l;a=e._injector??a;const c=e._loadedInjector??a,h=function Ew(r){return r.children?r.children:r.loadChildren?r._loadedRoutes:[]}(e),{segmentGroup:m,slicedSegments:g}=tl(t,i,o,h.filter(w=>void 0===w.redirectTo),this.relativeLinkResolution);if(0===g.length&&m.hasChildren())return this.processChildren(c,h,m).pipe((0,pt.U)(w=>null===w?null:[new tr(n,w)]));if(0===h.length&&0===g.length)return(0,Ie.of)([new tr(n,[])]);const p=En(e)===u;return this.processSegment(c,h,m,g,p?Le:u).pipe((0,pt.U)(w=>null===w?null:[new tr(n,w)]))}))}}function cm(r){const a=r.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function rl(r){const a=[],e=new Set;for(const t of r){if(!cm(t)){a.push(t);continue}const s=a.find(u=>t.value.routeConfig===u.value.routeConfig);void 0!==s?(s.children.push(...t.children),e.add(s)):a.push(t)}for(const t of e){const s=rl(t.children);a.push(new tr(t.value,s))}return a.filter(t=>!e.has(t))}function io(r){let a=r;for(;a._sourceSegment;)a=a._sourceSegment;return a}function dm(r){let a=r,e=a._segmentIndexShift??0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift??0;return e-1}function Mw(r){return r.data||{}}function al(r){return r.resolve||{}}const Oc=Symbol("RouteTitle");function fm(r){return"string"==typeof r.title||null===r.title}function sh(r){return(0,bt.w)(a=>{const e=r(a);return e?(0,Ei.D)(e).pipe((0,pt.U)(()=>a)):(0,Ie.of)(a)})}let mm=(()=>{class r{buildTitle(e){let t,s=e.root;for(;void 0!==s;)t=this.getResolvedTitleForRoute(s)??t,s=s.children.find(u=>u.outlet===Le);return t}getResolvedTitleForRoute(e){return e.data[Oc]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:function(){return(0,f.f3M)(ir)},providedIn:"root"}),r})(),ir=(()=>{class r extends mm{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(X))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Jo{}class Pw extends class Rw{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const lh=new f.OlP("",{providedIn:"root",factory:()=>({})}),ch=new f.OlP("ROUTES");let Lc=(()=>{class r{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Ie.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=wi(e.loadComponent()).pipe((0,Lt.b)(u=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=u}),Et(()=>{this.componentLoaders.delete(e)})),s=new uc(t,()=>new He.x).pipe($a());return this.componentLoaders.set(e,s),s}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Ie.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const u=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,pt.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(t);let n,i,o=!1;Array.isArray(l)?i=l:(n=l.create(e).injector,i=er(n.get(ch,[],f.XFs.Self|f.XFs.Optional)));return{routes:i.map(Yu),injector:n}}),Et(()=>{this.childrenLoaders.delete(t)})),d=new uc(u,()=>new He.x).pipe($a());return this.childrenLoaders.set(t,d),d}loadModuleFactoryOrRoutes(e){return wi(e()).pipe((0,kt.z)(t=>t instanceof f.YKP||Array.isArray(t)?(0,Ie.of)(t):(0,Ei.D)(this.compiler.compileModuleAsync(t))))}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.zs3),f.LFG(f.Sil))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class kw{}class Vw{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function Bw(r){throw r}function zx(r,a,e){return a.parse("/")}const Ow={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ol={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Dn(){const r=(0,f.f3M)(Vu),a=(0,f.f3M)(kr),e=(0,f.f3M)(M.Ye),t=(0,f.f3M)(f.zs3),s=(0,f.f3M)(f.Sil),u=(0,f.f3M)(ch,{optional:!0})??[],d=(0,f.f3M)(lh,{optional:!0})??{},l=(0,f.f3M)(ir),n=(0,f.f3M)(mm,{optional:!0}),i=(0,f.f3M)(kw,{optional:!0}),o=(0,f.f3M)(Jo,{optional:!0}),c=new Qt(null,r,a,e,t,s,er(u));return i&&(c.urlHandlingStrategy=i),o&&(c.routeReuseStrategy=o),c.titleStrategy=n??l,function _m(r,a){r.errorHandler&&(a.errorHandler=r.errorHandler),r.malformedUriErrorHandler&&(a.malformedUriErrorHandler=r.malformedUriErrorHandler),r.onSameUrlNavigation&&(a.onSameUrlNavigation=r.onSameUrlNavigation),r.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=r.paramsInheritanceStrategy),r.relativeLinkResolution&&(a.relativeLinkResolution=r.relativeLinkResolution),r.urlUpdateStrategy&&(a.urlUpdateStrategy=r.urlUpdateStrategy),r.canceledNavigationResolution&&(a.canceledNavigationResolution=r.canceledNavigationResolution)}(d,c),c}let Qt=(()=>{class r{constructor(e,t,s,u,d,l,n){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=s,this.location=u,this.config=n,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.x,this.errorHandler=Bw,this.malformedUriErrorHandler=zx,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Ie.of)(void 0),this.urlHandlingStrategy=new Vw,this.routeReuseStrategy=new Pw,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=d.get(Lc),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new rw(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new Ac(h)),this.ngModule=d.get(f.h0i),this.console=d.get(f.c2e);const c=d.get(f.R0b);this.isNgZoneEnabled=c instanceof f.R0b&&f.R0b.isInAngularZone(),this.resetConfig(n),this.currentUrlTree=function Pu(){return new Ya(new gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Nu(this.currentUrlTree,this.rootComponentType),this.transitions=new Vi({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,ii.h)(s=>0!==s.id),(0,pt.U)(s=>({...s,extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),(0,bt.w)(s=>{let u=!1,d=!1;return(0,Ie.of)(s).pipe((0,Lt.b)(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,bt.w)(l=>{const n=this.browserUrlTree.toString(),i=!this.navigated||l.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return dh(l.source)&&(this.browserUrlTree=l.extractedUrl),(0,Ie.of)(l).pipe((0,bt.w)(c=>{const h=this.transitions.getValue();return t.next(new wc(c.id,this.serializeUrl(c.extractedUrl),c.source,c.restoredState)),h!==this.transitions.getValue()?Sr.E:Promise.resolve(c)}),function om(r,a,e,t){return(0,bt.w)(s=>function Sw(r,a,e,t,s){return new Vc(r,a,e,t,s).apply()}(r,a,e,s.extractedUrl,t).pipe((0,pt.U)(u=>({...s,urlAfterRedirects:u}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Lt.b)(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},s.urlAfterRedirects=c.urlAfterRedirects}),function oh(r,a,e,t,s,u){return(0,kt.z)(d=>function lm(r,a,e,t,s,u,d="emptyOnly",l="legacy"){return new qx(r,a,e,t,s,d,l,u).recognize().pipe((0,bt.w)(n=>null===n?function Nx(r){return new Ui.y(a=>a.error(r))}(new sm):(0,Ie.of)(n)))}(r,a,e,d.urlAfterRedirects,t.serialize(d.urlAfterRedirects),t,s,u).pipe((0,pt.U)(l=>({...d,targetSnapshot:l}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Lt.b)(c=>{if(s.targetSnapshot=c.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!c.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);this.setBrowserUrl(m,c)}this.browserUrlTree=c.urlAfterRedirects}const h=new nw(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);t.next(h)}));if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:m,source:g,restoredState:p,extras:w}=l,R=new wc(h,this.serializeUrl(m),g,p);t.next(R);const J=Nu(m,this.rootComponentType).snapshot;return s={...l,targetSnapshot:J,urlAfterRedirects:m,extras:{...w,skipLocationChange:!1,replaceUrl:!1}},(0,Ie.of)(s)}return this.rawUrlTree=l.rawUrl,l.resolve(null),Sr.E}),(0,Lt.b)(l=>{const n=new Ws(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(n)}),(0,pt.U)(l=>s={...l,guards:im(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),function bw(r,a){return(0,kt.z)(e=>{const{targetSnapshot:t,currentSnapshot:s,guards:{canActivateChecks:u,canDeactivateChecks:d}}=e;return 0===d.length&&0===u.length?(0,Ie.of)({...e,guardsResult:!0}):function li(r,a,e,t){return(0,Ei.D)(r).pipe((0,kt.z)(s=>function ww(r,a,e,t,s){const u=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!u||0===u.length)return(0,Ie.of)(!0);const d=u.map(l=>{const n=Sc(l,a,s);return wi(function Mc(r){return r&&eo(r.canDeactivate)}(n)?n.canDeactivate(r,a,e,t):n(r,a,e,t)).pipe((0,xn.P)())});return(0,Ie.of)(d).pipe(Mn())}(s.component,s.route,e,a,t)),(0,xn.P)(s=>!0!==s,!0))}(d,t,s,r).pipe((0,kt.z)(l=>l&&function Ec(r){return"boolean"==typeof r}(l)?function nm(r,a,e,t){return(0,Ei.D)(a).pipe((0,dn.b)(s=>(0,na.z)(function eh(r,a){return null!==r&&a&&a(new $f(r)),(0,Ie.of)(!0)}(s.route.parent,t),function rm(r,a){return null!==r&&a&&a(new Yf(r)),(0,Ie.of)(!0)}(s.route,t),function Cw(r,a,e){const t=a[a.length-1],u=a.slice(0,a.length-1).reverse().map(d=>function pw(r){const a=r.routeConfig?r.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:r,guards:a}:null}(d)).filter(d=>null!==d).map(d=>cn(()=>{const l=d.guards.map(n=>{const i=Sc(n,d.node,e);return wi(function Xu(r){return r&&eo(r.canActivateChild)}(i)?i.canActivateChild(t,r):i(t,r)).pipe((0,xn.P)())});return(0,Ie.of)(l).pipe(Mn())}));return(0,Ie.of)(u).pipe(Mn())}(r,s.path,e),function Xs(r,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Ie.of)(!0);const s=t.map(u=>cn(()=>{const d=Sc(u,a,e);return wi(function Zs(r){return r&&eo(r.canActivate)}(d)?d.canActivate(a,r):d(a,r)).pipe((0,xn.P)())}));return(0,Ie.of)(s).pipe(Mn())}(r,s.route,e))),(0,xn.P)(s=>!0!==s,!0))}(t,u,r,a):(0,Ie.of)(l)),(0,pt.U)(l=>({...e,guardsResult:l})))})}(this.ngModule.injector,l=>this.triggerEvent(l)),(0,Lt.b)(l=>{if(s.guardsResult=l.guardsResult,Dr(l.guardsResult))throw aw(0,l.guardsResult);const n=new ju(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.triggerEvent(n)}),(0,ii.h)(l=>!!l.guardsResult||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",3),!1)),sh(l=>{if(l.guards.canActivateChecks.length)return(0,Ie.of)(l).pipe((0,Lt.b)(n=>{const i=new Fu(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,bt.w)(n=>{let i=!1;return(0,Ie.of)(n).pipe(function hm(r,a){return(0,kt.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:s}}=e;if(!s.length)return(0,Ie.of)(e);let u=0;return(0,Ei.D)(s).pipe((0,dn.b)(d=>function pm(r,a,e,t){const s=r.routeConfig,u=r._resolve;return void 0!==s?.title&&!fm(s)&&(u[Oc]=s.title),function no(r,a,e,t){const s=function Dw(r){return[...Object.keys(r),...Object.getOwnPropertySymbols(r)]}(r);if(0===s.length)return(0,Ie.of)({});const u={};return(0,Ei.D)(s).pipe((0,kt.z)(d=>function Hw(r,a,e,t){const s=Sc(r,a,t);return wi(s.resolve?s.resolve(a,e):s(a,e))}(r[d],a,e,t).pipe((0,xn.P)(),(0,Lt.b)(l=>{u[d]=l}))),I(1),(0,Ut.h)(u),(0,Vt.K)(d=>Dc(d)?Sr.E:(0,en._)(d)))}(u,r,a,t).pipe((0,pt.U)(d=>(r._resolvedData=d,r.data=zu(r,e).resolve,s&&fm(s)&&(r.data[Oc]=s.title),null)))}(d.route,t,r,a)),(0,Lt.b)(()=>u++),I(1),(0,kt.z)(d=>u===s.length?(0,Ie.of)(e):Sr.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Lt.b)({next:()=>i=!0,complete:()=>{i||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",2))}}))}),(0,Lt.b)(n=>{const i=new vc(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}))}),sh(l=>{const n=i=>{const o=[];i.routeConfig?.loadComponent&&!i.routeConfig._loadedComponent&&o.push(this.configLoader.loadComponent(i.routeConfig).pipe((0,Lt.b)(c=>{i.component=c}),(0,pt.U)(()=>{})));for(const c of i.children)o.push(...n(c));return o};return(0,jo.a)(n(l.targetSnapshot.root)).pipe((0,ne.d)(),(0,qt.q)(1))}),sh(()=>this.afterPreactivation()),(0,pt.U)(l=>{const n=function Bx(r,a,e){const t=Qs(r,a._root,e?e._root:void 0);return new Zf(t,a)}(this.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return s={...l,targetRouterState:n}}),(0,Lt.b)(l=>{this.currentUrlTree=l.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(l.urlAfterRedirects,l.rawUrl),this.routerState=l.targetRouterState,"deferred"===this.urlUpdateStrategy&&(l.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,l),this.browserUrlTree=l.urlAfterRedirects)}),((r,a,e)=>(0,pt.U)(t=>(new Ku(a,t.targetRouterState,t.currentRouterState,e).activate(r),t)))(this.rootContexts,this.routeReuseStrategy,l=>this.triggerEvent(l)),(0,Lt.b)({next(){u=!0},complete(){u=!0}}),Et(()=>{u||d||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),(0,Vt.K)(l=>{if(d=!0,lw(l)){sw(l)||(this.navigated=!0,this.restoreHistory(s,!0));const n=new yc(s.id,this.serializeUrl(s.extractedUrl),l.message,l.cancellationCode);if(t.next(n),sw(l)){const i=this.urlHandlingStrategy.merge(l.url,this.rawUrlTree),o={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||dh(s.source)};this.scheduleNavigation(i,"imperative",null,o,{resolve:s.resolve,reject:s.reject,promise:s.promise})}else s.resolve(!1)}else{this.restoreHistory(s,!0);const n=new Tn(s.id,this.serializeUrl(s.extractedUrl),l,s.targetSnapshot??void 0);t.next(n);try{s.resolve(this.errorHandler(l))}catch(i){s.reject(i)}}return Sr.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const s={replaceUrl:!0},u=e.state?.navigationId?e.state:null;if(u){const l={...u};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const d=this.parseUrl(e.url);this.scheduleNavigation(d,t,u,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Yu),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:s,queryParams:u,fragment:d,queryParamsHandling:l,preserveFragment:n}=t,i=s||this.routerState.root,o=n?this.currentUrlTree.fragment:d;let c=null;switch(l){case"merge":c={...this.currentUrlTree.queryParams,...u};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=u||null}return null!==c&&(c=this.removeEmptyProps(c)),tw(i,this.currentUrlTree,e,c,o??null)}navigateByUrl(e,t={skipLocationChange:!1}){const s=Dr(e)?e:this.parseUrl(e),u=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(u,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function bm(r){for(let a=0;a{const u=e[s];return null!=u&&(t[s]=u),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Rr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,s,u,d){if(this.disposed)return Promise.resolve(!1);let l,n,i;d?(l=d.resolve,n=d.reject,i=d.promise):i=new Promise((h,m)=>{l=h,n=m});const o=++this.navigationId;let c;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),c=s&&s.\u0275routerPageId?s.\u0275routerPageId:u.replaceUrl||u.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):c=0,this.setTransition({id:o,targetPageId:c,source:t,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:u,resolve:l,reject:n,promise:i,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),i.catch(h=>Promise.reject(h))}setBrowserUrl(e,t){const s=this.urlSerializer.serialize(e),u={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(s)||t.extras.replaceUrl?this.location.replaceState(s,"",u):this.location.go(s,"",u)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===s?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,s){const u=new yc(e.id,this.serializeUrl(e.extractedUrl),t,s);this.triggerEvent(u),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return r.\u0275fac=function(e){f.$Z()},r.\u0275prov=f.Yz7({token:r,factory:function(){return Dn()},providedIn:"root"}),r})();function dh(r){return"imperative"!==r}let sl=(()=>{class r{constructor(e,t,s,u,d){this.router=e,this.route=t,this.tabIndexAttribute=s,this.renderer=u,this.el=d,this.commands=null,this.onChanges=new He.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,s=this.el.nativeElement;null!==e?t.setAttribute(s,"tabindex",e):t.removeAttribute(s,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,f.D6c)(this.skipLocationChange),replaceUrl:(0,f.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,f.D6c)(this.preserveFragment)})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Qt),f.Y36(Pr),f.$8M("tabindex"),f.Y36(f.Qsj),f.Y36(f.SBq))},r.\u0275dir=f.lG2({type:r,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&f.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[f.TTD]}),r})(),uh=(()=>{class r{constructor(e,t,s){this.router=e,this.route=t,this.locationStrategy=s,this.commands=null,this.href=null,this.onChanges=new He.x,this.subscription=e.events.subscribe(u=>{u instanceof Rr&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,s,u,d){if(0!==e||t||s||u||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const l={skipLocationChange:(0,f.D6c)(this.skipLocationChange),replaceUrl:(0,f.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,l),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,f.D6c)(this.preserveFragment)})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Qt),f.Y36(Pr),f.Y36(M.S$))},r.\u0275dir=f.lG2({type:r,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&f.NdJ("click",function(u){return t.onClick(u.button,u.ctrlKey,u.shiftKey,u.altKey,u.metaKey)}),2&e&&f.uIk("target",t.target)("href",t.href,f.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[f.TTD]}),r})();class Fc{}let Lw=(()=>{class r{constructor(e,t,s,u,d){this.router=e,this.injector=s,this.preloadingStrategy=u,this.loader=d}setUpPreloading(){this.subscription=this.router.events.pipe((0,ii.h)(e=>e instanceof Rr),(0,dn.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const s=[];for(const u of t){u.providers&&!u._injector&&(u._injector=(0,f.MMx)(u.providers,e,`Route: ${u.path}`));const d=u._injector??e,l=u._loadedInjector??d;u.loadChildren&&!u._loadedRoutes&&void 0===u.canLoad||u.loadComponent&&!u._loadedComponent?s.push(this.preloadConfig(d,u)):(u.children||u._loadedRoutes)&&s.push(this.processRoutes(l,u.children??u._loadedRoutes))}return(0,Ei.D)(s).pipe((0,Pt.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let s;s=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Ie.of)(null);const u=s.pipe((0,kt.z)(d=>null===d?(0,Ie.of)(void 0):(t._loadedRoutes=d.routes,t._loadedInjector=d.injector,this.processRoutes(d.injector??e,d.routes))));if(t.loadComponent&&!t._loadedComponent){const d=this.loader.loadComponent(t);return(0,Ei.D)([u,d]).pipe((0,Pt.J)())}return u})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Qt),f.LFG(f.Sil),f.LFG(f.lqb),f.LFG(Fc),f.LFG(Lc))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const jw=new f.OlP("");let ym=(()=>{class r{constructor(e,t,s={}){this.router=e,this.viewportScroller=t,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof wc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Rr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Kf&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Kf(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return r.\u0275fac=function(e){f.$Z()},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const vm=new f.OlP("ROUTER_FORROOT_GUARD"),Am=new f.OlP(""),xm=[M.Ye,{provide:Vu,useClass:Ls},{provide:Qt,useFactory:Dn},kr,{provide:Pr,useFactory:function Uc(r){return r.routerState.root},deps:[Qt]},Lc];function Tm(){return new f.PXZ("Router",Qt)}let Ko=(()=>{class r{constructor(e){}static forRoot(e,t){return{ngModule:r,providers:[xm,[],Nc(e),{provide:vm,useFactory:Uw,deps:[[Qt,new f.FiY,new f.tp0]]},{provide:lh,useValue:t||{}},t?.useHash?{provide:M.S$,useClass:M.Do}:{provide:M.S$,useClass:M.b0},{provide:jw,useFactory:()=>{const r=(0,f.f3M)(Qt),a=(0,f.f3M)(M.EM),e=(0,f.f3M)(lh);return e.scrollOffset&&a.setOffset(e.scrollOffset),new ym(r,a,e)}},t?.preloadingStrategy?hh(t.preloadingStrategy):[],{provide:f.PXZ,multi:!0,useFactory:Tm},t?.initialNavigation?Nw(t):[],[{provide:Mm,useFactory:Em},{provide:f.tb,multi:!0,useExisting:Mm}]]}}static forChild(e){return{ngModule:r,providers:[Nc(e)]}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(vm,8))},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();function Uw(r){return"guarded"}function Nc(r){return[{provide:ch,multi:!0,useValue:r}]}function Em(){const r=(0,f.f3M)(f.zs3);return a=>{const e=r.get(f.z2F);if(a!==e.components[0])return;const t=r.get(Qt),s=r.get(Dm);1===r.get(Hm)&&t.initialNavigation(),r.get(Am,null,f.XFs.Optional)?.setUpPreloading(),r.get(jw,null,f.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),s.next(),s.complete()}}const Mm=new f.OlP("");function Nw(r){return["disabled"===r.initialNavigation?[{provide:f.ip1,multi:!0,useFactory:()=>{const r=(0,f.f3M)(Qt);return()=>{r.setUpLocationChangeListener()}}},{provide:Hm,useValue:2}]:[],"enabledBlocking"===r.initialNavigation?[{provide:Hm,useValue:0},{provide:f.ip1,multi:!0,deps:[f.zs3],useFactory:r=>{const a=r.get(M.V_,Promise.resolve(null));let e=!1;return()=>a.then(()=>new Promise(s=>{const u=r.get(Qt),d=r.get(Dm);(function t(s){r.get(Qt).events.pipe((0,ii.h)(d=>d instanceof Rr||d instanceof yc||d instanceof Tn),(0,pt.U)(d=>d instanceof Rr||d instanceof yc&&(0===d.code||1===d.code)&&null),(0,ii.h)(d=>null!==d),(0,qt.q)(1)).subscribe(()=>{s()})})(()=>{s(!0),e=!0}),u.afterPreactivation=()=>(s(!0),e||d.closed?(0,Ie.of)(void 0):d),u.initialNavigation()}))}}]:[]]}const Dm=new f.OlP("",{factory:()=>new He.x}),Hm=new f.OlP("",{providedIn:"root",factory:()=>1});function hh(r){return[Lw,{provide:Am,useExisting:Lw},{provide:Fc,useExisting:r}]}let qc;try{qc=typeof Intl<"u"&&Intl.v8BreakIterator}catch{qc=!1}let ro,Yt=(()=>{class r{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,M.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!qc)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.Lbi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const ph=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function zc(){if(ro)return ro;if("object"!=typeof document||!document)return ro=new Set(ph),ro;let r=document.createElement("input");return ro=new Set(ph.filter(a=>(r.setAttribute("type",a),r.type===a))),ro}let Gc,cl,fa,ul;function pn(r){return function Ww(){if(null==Gc&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Gc=!0}))}finally{Gc=Gc||!1}return Gc}()?r:!!r.capture}function ma(){if(null==fa){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return fa=!1,fa;if("scrollBehavior"in document.documentElement.style)fa=!0;else{const r=Element.prototype.scrollTo;fa=!!r&&!/\{\s*\[native code\]\s*\}/.test(r.toString())}}return fa}function dl(){if("object"!=typeof document||!document)return 0;if(null==cl){const r=document.createElement("div"),a=r.style;r.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",r.appendChild(e),document.body.appendChild(r),cl=0,0===r.scrollLeft&&(r.scrollLeft=1,cl=0===r.scrollLeft?1:2),r.remove()}return cl}function $c(r){if(function Wc(){if(null==ul){const r=typeof document<"u"?document.head:null;ul=!(!r||!r.createShadowRoot&&!r.attachShadow)}return ul}()){const a=r.getRootNode?r.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function hl(){let r=typeof document<"u"&&document?document.activeElement:null;for(;r&&r.shadowRoot;){const a=r.shadowRoot.activeElement;if(a===r)break;r=a}return r}function Yi(r){return r.composedPath?r.composedPath()[0]:r.target}function Vr(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Hn(r,...a){return a.length?a.some(e=>r[e]):r.altKey||r.shiftKey||r.ctrlKey||r.metaKey}var Xc=E(8372);function ed(r){return(0,ii.h)((a,e)=>r<=e)}function Zm(r,a=me.y){return r=r??my,(0,Ni.e)((e,t)=>{let s,u=!0;e.subscribe((0,tn.x)(t,d=>{const l=a(d);(u||!r(s,l))&&(u=!1,s=l,t.next(d))}))})}function my(r,a){return r===a}var Xm=E(5032);function _t(r){return(0,Ni.e)((a,e)=>{(0,Xn.Xf)(r).subscribe((0,tn.x)(e,()=>e.complete(),Xm.Z)),!e.closed&&a.subscribe(e)})}function Ye(r){return null!=r&&"false"!=`${r}`}function yi(r,a=0){return function eg(r){return!isNaN(parseFloat(r))&&!isNaN(Number(r))}(r)?Number(r):a}function td(r){return Array.isArray(r)?r:[r]}function pi(r){return null==r?"":"string"==typeof r?r:`${r}px`}function Gt(r){return r instanceof f.SBq?r.nativeElement:r}let _h=(()=>{class r{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),tg=(()=>{class r{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Gt(e);return new Ui.y(s=>{const d=this._observeElement(t).subscribe(s);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.x,s=this._mutationObserverFactory.create(u=>t.next(u));s&&s.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:s,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:s}=this._observedElements.get(e);t&&t.disconnect(),s.complete(),this._observedElements.delete(e)}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(_h))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),id=(()=>{class r{constructor(e,t,s){this._contentObserver=e,this._elementRef=t,this._ngZone=s,this.event=new f.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ye(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=yi(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Xc.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(tg),f.Y36(f.SBq),f.Y36(f.R0b))},r.\u0275dir=f.lG2({type:r,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),r})(),oo=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[_h]}),r})();const gl=new Set;let Lr,ig=(()=>{class r{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ng}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function bh(r){if(!gl.has(r))try{Lr||(Lr=document.createElement("style"),Lr.setAttribute("type","text/css"),document.head.appendChild(Lr)),Lr.sheet&&(Lr.sheet.insertRule(`@media ${r} {body{ }}`,0),gl.add(r))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function ng(r){return{matches:"all"===r||""===r,media:r,addListener:()=>{},removeListener:()=>{}}}let nd=(()=>{class r{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return es(td(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){const s=es(td(e)).map(d=>this._registerQuery(d).observable);let u=(0,jo.a)(s);return u=(0,na.z)(u.pipe((0,qt.q)(1)),u.pipe(ed(1),(0,Xc.b)(0))),u.pipe((0,pt.U)(d=>{const l={matches:!1,breakpoints:{}};return d.forEach(({matches:n,query:i})=>{l.matches=l.matches||n,l.breakpoints[i]=n}),l}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),u={observable:new Ui.y(d=>{const l=n=>this._zone.run(()=>d.next(n));return t.addListener(l),()=>{t.removeListener(l)}}).pipe(si(t),(0,pt.U)(({matches:d})=>({query:e,matches:d})),_t(this._destroySubject)),mql:t};return this._queries.set(e,u),u}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(ig),f.LFG(f.R0b))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function es(r){return r.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}function _l(r,a){return(r.getAttribute(a)||"").match(/\S+/g)||[]}const wh="cdk-describedby-message",yh="cdk-describedby-host";let rd=0,ag=(()=>{class r{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+rd++,this._document=e,this._id=(0,f.f3M)(f.AFp)+"-"+rd++}describe(e,t,s){if(!this._canBeDescribed(e,t))return;const u=ad(t,s);"string"!=typeof t?(og(t,this._id),this._messageRegistry.set(u,{messageElement:t,referenceCount:0})):this._messageRegistry.has(u)||this._createMessageElement(t,s),this._isElementDescribedByMessage(e,u)||this._addMessageReference(e,u)}removeDescription(e,t,s){if(!t||!this._isElementNode(e))return;const u=ad(t,s);if(this._isElementDescribedByMessage(e,u)&&this._removeMessageReference(e,u),"string"==typeof t){const d=this._messageRegistry.get(u);d&&0===d.referenceCount&&this._deleteMessageElement(u)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${yh}="${this._id}"]`);for(let t=0;t0!=s.indexOf(wh));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const s=this._messageRegistry.get(t);(function by(r,a,e){const t=_l(r,a);t.some(s=>s.trim()==e.trim())||(t.push(e.trim()),r.setAttribute(a,t.join(" ")))})(e,"aria-describedby",s.messageElement.id),e.setAttribute(yh,this._id),s.referenceCount++}_removeMessageReference(e,t){const s=this._messageRegistry.get(t);s.referenceCount--,function Cy(r,a,e){const s=_l(r,a).filter(u=>u!=e.trim());s.length?r.setAttribute(a,s.join(" ")):r.removeAttribute(a)}(e,"aria-describedby",s.messageElement.id),e.removeAttribute(yh)}_isElementDescribedByMessage(e,t){const s=_l(e,"aria-describedby"),u=this._messageRegistry.get(t),d=u&&u.messageElement.id;return!!d&&-1!=s.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const s=null==t?"":`${t}`.trim(),u=e.getAttribute("aria-label");return!(!s||u&&u.trim()===s)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0),f.LFG(Yt))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function ad(r,a){return"string"==typeof r?`${a||""}/${r}`:r}function og(r,a){r.id||(r.id=`${wh}-${a}-${rd++}`)}class vh extends class wy{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.x,this._typeaheadSubscription=wt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.x,this.change=new He.x,a instanceof f.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const s=e.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Lt.b)(e=>this._pressedLetters.push(e)),(0,Xc.b)(a),(0,ii.h)(()=>this._pressedLetters.length>0),(0,pt.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let s=1;s!a[u]||this._allowedModifierKeys.indexOf(u)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&s){this.setNextItemActive();break}return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&s){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&s){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}return;default:return void((s||Hn(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const s=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof f.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let od=(()=>{class r{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Ay(r){return!!(r.offsetWidth||r.offsetHeight||"function"==typeof r.getClientRects&&r.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function vy(r){try{return r.frameElement}catch{return null}}(function My(r){return r.ownerDocument&&r.ownerDocument.defaultView||window}(e));if(t&&(-1===Ah(t)||!this.isVisible(t)))return!1;let s=e.nodeName.toLowerCase(),u=Ah(e);return e.hasAttribute("contenteditable")?-1!==u:!("iframe"===s||"object"===s||this._platform.WEBKIT&&this._platform.IOS&&!function lg(r){let a=r.nodeName.toLowerCase(),e="input"===a&&r.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===s?!!e.hasAttribute("controls")&&-1!==u:"video"===s?-1!==u&&(null!==u||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function cg(r){return!function sg(r){return function Sy(r){return"input"==r.nodeName.toLowerCase()}(r)&&"hidden"==r.type}(r)&&(function xy(r){let a=r.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(r)||function Ty(r){return function Ey(r){return"a"==r.nodeName.toLowerCase()}(r)&&r.hasAttribute("href")}(r)||r.hasAttribute("contenteditable")||ct(r))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function ct(r){if(!r.hasAttribute("tabindex")||void 0===r.tabIndex)return!1;let a=r.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function Ah(r){if(!ct(r))return null;const a=parseInt(r.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class Dy{constructor(a,e,t,s,u=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,u||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const s=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(s)return s}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,qt.q)(1)).subscribe(a)}}let sd=(()=>{class r{constructor(e,t,s){this._checker=e,this._ngZone=t,this._document=s}create(e,t=!1){return new Dy(e,this._checker,this._ngZone,this._document,t)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(od),f.LFG(f.R0b),f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function bl(r){return 0===r.buttons||0===r.offsetX&&0===r.offsetY}function rr(r){const a=r.touches&&r.touches[0]||r.changedTouches&&r.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const Py=new f.OlP("cdk-input-modality-detector-options"),xh={ignoreKeys:[18,17,224,91,16]},ts=pn({passive:!0,capture:!0});let $T=(()=>{class r{constructor(e,t,s,u){this._platform=e,this._mostRecentTarget=null,this._modality=new Vi(null),this._lastTouchMs=0,this._onKeydown=d=>{this._options?.ignoreKeys?.some(l=>l===d.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Yi(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(bl(d)?"keyboard":"mouse"),this._mostRecentTarget=Yi(d))},this._onTouchstart=d=>{rr(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Yi(d))},this._options={...xh,...u},this.modalityDetected=this._modality.pipe(ed(1)),this.modalityChanged=this.modalityDetected.pipe(Zm()),e.isBrowser&&t.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,ts),s.addEventListener("mousedown",this._onMousedown,ts),s.addEventListener("touchstart",this._onTouchstart,ts)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ts),document.removeEventListener("mousedown",this._onMousedown,ts),document.removeEventListener("touchstart",this._onTouchstart,ts))}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt),f.LFG(f.R0b),f.LFG(M.K0),f.LFG(Py,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const ky=new f.OlP("cdk-focus-monitor-default-options"),jr=pn({passive:!0,capture:!0});let Rn=(()=>{class r{constructor(e,t,s,u,d){this._ngZone=e,this._platform=t,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new He.x,this._rootNodeFocusAndBlurListener=l=>{for(let i=Yi(l);i;i=i.parentElement)"focus"===l.type?this._onFocus(l,i):this._onBlur(l,i)},this._document=u,this._detectionMode=d?.detectionMode||0}monitor(e,t=!1){const s=Gt(e);if(!this._platform.isBrowser||1!==s.nodeType)return(0,Ie.of)(null);const u=$c(s)||this._getDocument(),d=this._elementInfo.get(s);if(d)return t&&(d.checkChildren=!0),d.subject;const l={checkChildren:t,subject:new He.x,rootNode:u};return this._elementInfo.set(s,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(e){const t=Gt(e),s=this._elementInfo.get(t);s&&(s.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(s))}focusVia(e,t,s){const u=Gt(e);u===this._getDocument().activeElement?this._getClosestElementsInfo(u).forEach(([l,n])=>this._originChanged(l,t,n)):(this._setOrigin(t),"function"==typeof u.focus&&u.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const s=this._elementInfo.get(t),u=Yi(e);!s||!s.checkChildren&&t!==u||this._originChanged(t,this._getFocusOrigin(u),s)}_onBlur(e,t){const s=this._elementInfo.get(t);!s||s.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(s,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,s=this._rootNodeFocusListenerCount.get(t)||0;s||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,jr),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,jr)}),this._rootNodeFocusListenerCount.set(t,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(_t(this._stopInputModalityDetector)).subscribe(u=>{this._setOrigin(u,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const s=this._rootNodeFocusListenerCount.get(t);s>1?this._rootNodeFocusListenerCount.set(t,s-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jr),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jr),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,s){this._setClasses(e,t),this._emitOrigin(s,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((s,u)=>{(u===e||s.checkChildren&&u.contains(e))&&t.push([u,s])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:s}=this._inputModalityDetector;if("mouse"!==s||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const u=e.labels;if(u)for(let d=0;d{class r{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,f.f3M)(nd).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,s=t&&t.getComputedStyle?t.getComputedStyle(e):null,u=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),u){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(cd,Cl,dg),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(cd,Cl):2===t&&e.add(cd,dg)}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt),f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),wl=(()=>{class r{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(ug))},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[oo]}),r})();const By=new f.OlP("cdk-dir-doc",{providedIn:"root",factory:function Oy(){return(0,f.f3M)(M.K0)}}),Ly=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let fn=(()=>{class r{constructor(e){if(this.value="ltr",this.change=new f.vpe,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function hg(r){const a=r?.toLowerCase()||"";return"auto"===a&&typeof navigator<"u"&&navigator?.language?Ly.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(By,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),so=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();const mg=new f.OlP("mat-sanity-checks",{providedIn:"root",factory:function Pn(){return!0}});let $e=(()=>{class r{constructor(e,t,s){this._sanityChecks=t,this._document=s,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Vr()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(ug),f.LFG(mg,8),f.LFG(M.K0))},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[so,so]}),r})();function lo(r){return class extends r{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=Ye(a)}}}function ar(r,a){return class extends r{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function co(r){return class extends r{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=Ye(a)}}}function Fy(r){return class extends r{constructor(...a){super(...a),this.errorState=!1}updateErrorState(){const a=this.errorState,u=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);u!==a&&(this.errorState=u,this.stateChanges.next())}}}const hd=new f.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Eh(){return(0,f.f3M)(f.soG)}});class rn{constructor(){this._localeChanges=new He.x,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),s=this.isValid(e);return t&&s?!this.compareDate(a,e):t==s}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const ns=new f.OlP("mat-date-formats"),KT=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Mh(r,a){const e=Array(r);for(let t=0;t{class r extends rn{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Mh(12,s=>this._format(t,new Date(2017,s,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Mh(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Mh(7,s=>this._format(t,new Date(2017,0,s+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,s){let u=this._createDateWithOverflow(e,t,s);return u.getMonth(),u}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const s=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(s,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let s=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(s)!=((this.getMonth(e)+t)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(KT.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,s){const u=new Date;return u.setFullYear(e,t,s),u.setHours(0,0,0,0),u}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const s=new Date;return s.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),s.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(s)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(hd,8),f.LFG(Yt))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const Uy={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Ny=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[{provide:rn,useClass:bg}]}),r})(),Dh=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[{provide:ns,useValue:Uy}],imports:[Ny]}),r})(),vl=(()=>{class r{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),pd=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})();class Hh{constructor(a,e,t,s=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const qy={enterDuration:225,exitDuration:150},wg=pn({passive:!0}),zy=["mousedown","touchstart"],Gy=["mouseup","mouseleave","touchend","touchcancel"];class Wy{constructor(a,e,t,s){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=Gt(t))}fadeInRipple(a,e,t={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),u={...qy,...t.animation};t.centered&&(a=s.left+s.width/2,e=s.top+s.height/2);const d=t.radius||function eS(r,a,e){const t=Math.max(Math.abs(r-e.left),Math.abs(r-e.right)),s=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+s*s)}(a,e,s),l=a-s.left,n=e-s.top,i=u.enterDuration,o=document.createElement("div");o.classList.add("mat-ripple-element"),o.style.left=l-d+"px",o.style.top=n-d+"px",o.style.height=2*d+"px",o.style.width=2*d+"px",null!=t.color&&(o.style.backgroundColor=t.color),o.style.transitionDuration=`${i}ms`,this._containerElement.appendChild(o);const c=window.getComputedStyle(o),m=c.transitionDuration,g="none"===c.transitionProperty||"0s"===m||"0s, 0s"===m,p=new Hh(this,o,t,g);o.style.transform="scale3d(1, 1, 1)",p.state=0,t.persistent||(this._mostRecentTransientRipple=p);let w=null;return!g&&(i||u.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const R=()=>this._finishRippleTransition(p),J=()=>this._destroyRipple(p);o.addEventListener("transitionend",R),o.addEventListener("transitioncancel",J),w={onTransitionEnd:R,onTransitionCancel:J}}),this._activeRipples.set(p,w),(g||!i)&&this._finishRippleTransition(p),p}fadeOutRipple(a){if(2===a.state||3===a.state)return;const e=a.element,t={...qy,...a.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=2,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=Gt(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(zy))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Gy),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)}_startFadeOutTransition(a){const e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=1,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){const e=this._activeRipples.get(a)??null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=3,null!==e&&(a.element.removeEventListener("transitionend",e.onTransitionEnd),a.element.removeEventListener("transitioncancel",e.onTransitionCancel)),a.element.remove()}_onMousedown(a){const e=bl(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,wg)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(zy.forEach(a=>{this._triggerElement.removeEventListener(a,this,wg)}),this._pointerUpEventsRegistered&&Gy.forEach(a=>{this._triggerElement.removeEventListener(a,this,wg)}))}}const $y=new f.OlP("mat-ripple-global-options");let uo=(()=>{class r{constructor(e,t,s,u,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=u||{},this._rippleRenderer=new Wy(this,t,e,s)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,s){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...s}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(Yt),f.Y36($y,8),f.Y36(f.QbO,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&f.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),r})(),In=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})(),Al=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e]}),r})(),Rh=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[In,M.ez,$e,Al]}),r})();const Zy=["mat-button",""],fd=["*"],as=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],md=ar(lo(co(class{constructor(r){this._elementRef=r}})));let Di=(()=>{class r extends md{constructor(e,t,s){super(e),this._focusMonitor=t,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const u of as)this._hasHostAttributes(u)&&this._getHostElement().classList.add(u);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(Rn),f.Y36(f.QbO,8))},r.\u0275cmp=f.Xpm({type:r,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&f.Gf(uo,5),2&e){let s;f.iGM(s=f.CRH())&&(t.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(f.uIk("disabled",t.disabled||null),f.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[f.qOj],attrs:Zy,ngContentSelectors:fd,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(f.F$t(),f.TgZ(0,"span",0),f.Hsn(1),f.qZA(),f._UZ(2,"span",1)(3,"span",2)),2&e&&(f.xp6(2),f.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),f.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[uo],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),r})(),kn=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[In,$e,$e]}),r})();var xg=E(1144),Vn=E(576),gd=E(3268);const Tg=["addListener","removeListener"],Ih=["addEventListener","removeEventListener"],Xy=["on","off"];function Tl(r,a,e,t){if((0,Vn.m)(e)&&(t=e,e=void 0),t)return Tl(r,a,e).pipe((0,gd.Z)(t));const[s,u]=function Mg(r){return(0,Vn.m)(r.addEventListener)&&(0,Vn.m)(r.removeEventListener)}(r)?Ih.map(d=>l=>r[d](a,l,e)):function Eg(r){return(0,Vn.m)(r.addListener)&&(0,Vn.m)(r.removeListener)}(r)?Tg.map(Sg(r,a)):function ev(r){return(0,Vn.m)(r.on)&&(0,Vn.m)(r.off)}(r)?Xy.map(Sg(r,a)):[];if(!s&&(0,xg.z)(r))return(0,kt.z)(d=>Tl(d,a,e))((0,Xn.Xf)(r));if(!s)throw new TypeError("Invalid event target");return new Ui.y(d=>{const l=(...n)=>d.next(1u(l)})}function Sg(r,a){return e=>t=>r[e](a,t)}var kh=E(4408);const Sl={schedule(r){let a=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=Sl;t&&(a=t.requestAnimationFrame,e=t.cancelAnimationFrame);const s=a(u=>{e=void 0,r(u)});return new wt.w0(()=>e?.(s))},requestAnimationFrame(...r){const{delegate:a}=Sl;return(a?.requestAnimationFrame||requestAnimationFrame)(...r)},cancelAnimationFrame(...r){const{delegate:a}=Sl;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...r)},delegate:void 0};var Vh=E(7565);const iv=new class tv extends Vh.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;a=a||t.shift();do{if(s=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,s){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw s}}}(class an extends kh.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=Sl.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(s=>s.id===e)||(Sl.cancelAnimationFrame(e),a._scheduled=void 0)}});let _d,Bh=1;const bd={};function Dg(r){return r in bd&&(delete bd[r],!0)}const nv={setImmediate(r){const a=Bh++;return bd[a]=!0,_d||(_d=Promise.resolve()),_d.then(()=>Dg(a)&&r()),a},clearImmediate(r){Dg(r)}},{setImmediate:av,clearImmediate:Hg}=nv,Cd={setImmediate(...r){const{delegate:a}=Cd;return(a?.setImmediate||av)(...r)},clearImmediate(r){const{delegate:a}=Cd;return(a?.clearImmediate||Hg)(r)},delegate:void 0},wd=new class Rg extends Vh.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;a=a||t.shift();do{if(s=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,s){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw s}}}(class ov extends kh.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=Cd.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(s=>s.id===e)||(Cd.clearImmediate(e),a._scheduled=void 0)}});function ri(r){return!!r&&(r instanceof Ui.y||(0,Vn.m)(r.lift)&&(0,Vn.m)(r.subscribe))}var yd=E(4986),Oh=E(2805);function Lh(r,a=yd.z){return function sv(r){return(0,Ni.e)((a,e)=>{let t=!1,s=null,u=null,d=!1;const l=()=>{if(u?.unsubscribe(),u=null,t){t=!1;const i=s;s=null,e.next(i)}d&&e.complete()},n=()=>{u=null,d&&e.complete()};a.subscribe((0,tn.x)(e,i=>{t=!0,s=i,u||(0,Xn.Xf)(r(i)).subscribe(u=(0,tn.x)(e,l,n))},()=>{d=!0,(!t||!u||u.closed)&&e.complete()}))})}(()=>(0,Oh.H)(r,a))}var lv=E(6063);class cv extends He.x{constructor(a=1/0,e=1/0,t=lv.l){super(),this._bufferSize=a,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,e)}next(a){const{isStopped:e,_buffer:t,_infiniteTimeWindow:s,_timestampProvider:u,_windowTime:d}=this;e||(t.push(a),!s&&t.push(u.now()+d)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(a),{_infiniteTimeWindow:t,_buffer:s}=this,u=s.slice();for(let d=0;dnew cv(t,a,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}class vd extends class dv{}{constructor(a){super(),this._data=a}connect(){return ri(this._data)?this._data:(0,Ie.of)(this._data)}disconnect(){}}class jh{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(a,e,t,s,u){a.forEachOperation((d,l,n)=>{let i,o;null==d.previousIndex?(i=this._insertView(()=>t(d,l,n),n,e,s(d)),o=i?1:0):null==n?(this._detachAndCacheView(l,e),o=3):(i=this._moveView(l,n,e,s(d)),o=2),u&&u({context:i?.context,operation:o,record:d})})}detach(){for(const a of this._viewCache)a.destroy();this._viewCache=[]}_insertView(a,e,t,s){const u=this._insertViewFromCache(e,t);if(u)return void(u.context.$implicit=s);const d=a();return t.createEmbeddedView(d.templateRef,d.context,d.index)}_detachAndCacheView(a,e){const t=e.detach(a);this._maybeCacheView(t,e)}_moveView(a,e,t,s){const u=t.get(a);return t.move(u,e),u.context.$implicit=s,u}_maybeCacheView(a,e){if(this._viewCache.length0?u/this._itemSize:0;if(e.end>s){const n=Math.ceil(t/this._itemSize),i=Math.max(0,Math.min(d,s-n));d!=i&&(d=i,u=i*this._itemSize,e.start=Math.floor(d)),e.end=Math.max(0,Math.min(s,e.start+n))}const l=u-e.start*this._itemSize;if(l0&&(e.end=Math.min(s,e.end+i),e.start=Math.max(0,Math.floor(d-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(d))}}function Bg(r){return r._scrollStrategy}let Og=(()=>{class r{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new hv(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=yi(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=yi(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=yi(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[f._Bn([{provide:uv,useFactory:Bg,deps:[(0,f.Gpc)(()=>r)]}]),f.TTD]}),r})(),ss=(()=>{class r{constructor(e,t,s){this._ngZone=e,this._platform=t,this._scrolled=new He.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ui.y(t=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(Lh(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ie.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const s=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,ii.h)(u=>!u||s.indexOf(u)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((s,u)=>{this._scrollableContainsElement(u,e)&&t.push(u)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let s=Gt(t),u=e.getElementRef().nativeElement;do{if(s==u)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Tl(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.R0b),f.LFG(Yt),f.LFG(M.K0,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Td=(()=>{class r{constructor(e,t,s,u){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=s,this.dir=u,this._destroyed=new He.x,this._elementScrolled=new Ui.y(d=>this.ngZone.runOutsideAngular(()=>Tl(this.elementRef.nativeElement,"scroll").pipe(_t(this._destroyed)).subscribe(d)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),s&&0!=dl()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==dl()?e.left=e.right:1==dl()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;ma()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",s="right",u=this.elementRef.nativeElement;if("top"==e)return u.scrollTop;if("bottom"==e)return u.scrollHeight-u.clientHeight-u.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?s:t:"end"==e&&(e=d?t:s),d&&2==dl()?e==t?u.scrollWidth-u.clientWidth-u.scrollLeft:u.scrollLeft:d&&1==dl()?e==t?u.scrollLeft+u.scrollWidth-u.clientWidth:-u.scrollLeft:e==t?u.scrollLeft:u.scrollWidth-u.clientWidth-u.scrollLeft}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(ss),f.Y36(f.R0b),f.Y36(fn,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),r})(),Ur=(()=>{class r{constructor(e,t,s){this._platform=e,this._change=new He.x,this._changeListener=u=>{this._change.next(u)},this._document=s,t.runOutsideAngular(()=>{if(e.isBrowser){const u=this._getWindow();u.addEventListener("resize",this._changeListener),u.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+t,height:s,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),s=e.documentElement,u=s.getBoundingClientRect();return{top:-u.top||e.body.scrollTop||t.scrollY||s.scrollTop||0,left:-u.left||e.body.scrollLeft||t.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Lh(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt),f.LFG(f.R0b),f.LFG(M.K0,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Sd=new f.OlP("VIRTUAL_SCROLLABLE");let ls=(()=>{class r extends Td{constructor(e,t,s,u){super(e,t,s,u)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(ss),f.Y36(f.R0b),f.Y36(fn,8))},r.\u0275dir=f.lG2({type:r,features:[f.qOj]}),r})();const Uh=typeof requestAnimationFrame<"u"?iv:wd;let Nh=(()=>{class r extends ls{constructor(e,t,s,u,d,l,n,i){super(e,l,s,d),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=u,this.scrollable=i,this._detachedSubject=new He.x,this._renderedRangeSubject=new He.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new Ui.y(o=>this._scrollStrategy.scrolledIndexChange.subscribe(c=>Promise.resolve().then(()=>this.ngZone.run(()=>o.next(c))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=wt.w0.EMPTY,this._viewportChanges=n.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Ye(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(si(null),Lh(0,Uh)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(_t(this._detachedSubject)).subscribe(t=>{const s=t.length;s!==this._dataLength&&(this._dataLength=s,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function pv(r,a){return r.start==a.start&&r.end==a.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const u="horizontal"==this.orientation,d=u?"X":"Y";let n=`translate${d}(${Number((u&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(n+=` translate${d}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=n&&(this._renderedContentTransform=n,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const s={behavior:t};"horizontal"===this.orientation?s.start=e:s.top=e,this.scrollable.scrollTo(s)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?s=>super.measureScrollOffset(s):s=>this.scrollable.measureScrollOffset(s),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const s="left",u="right",d="rtl"==this.dir?.value;t="start"==e?d?u:s:"end"==e?d?s:u:e||("horizontal"===this.orientation?"left":"top");const l=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-l}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(f.R0b),f.Y36(uv,8),f.Y36(fn,8),f.Y36(ss),f.Y36(Ur),f.Y36(Sd,8))},r.\u0275cmp=f.Xpm({type:r,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&f.Gf(lS,7),2&e){let s;f.iGM(s=f.CRH())&&(t._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&f.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[f._Bn([{provide:Td,useFactory:(a,e)=>a||e,deps:[ls,r]}]),f.qOj],ngContentSelectors:Fh,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(f.F$t(),f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA(),f._UZ(3,"div",2)),2&e&&(f.xp6(3),f.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),r})();function jg(r,a,e){if(!e.getBoundingClientRect)return 0;const s=e.getBoundingClientRect();return"horizontal"===r?"start"===a?s.left:s.right:"start"===a?s.top:s.bottom}let fv=(()=>{class r{constructor(e,t,s,u,d,l){this._viewContainerRef=e,this._template=t,this._differs=s,this._viewRepeater=u,this._viewport=d,this.viewChange=new He.x,this._dataSourceChanges=new He.x,this.dataStream=this._dataSourceChanges.pipe(si(null),function Pg(){return(0,Ni.e)((r,a)=>{let e,t=!1;r.subscribe((0,tn.x)(a,s=>{const u=e;e=s,t&&a.next([u,s]),t=!0}))})}(),(0,bt.w)(([n,i])=>this._changeDataSource(n,i)),El(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new He.x,this.dataStream.subscribe(n=>{this._data=n,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(_t(this._destroyed)).subscribe(n=>{this._renderedRange=n,this.viewChange.observers.length&&l.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,function Ml(r){return r&&"function"==typeof r.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new vd(ri(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,s)=>e(t+(this._renderedRange?this._renderedRange.start:0),s):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=yi(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const s=e.start-this._renderedRange.start,u=e.end-e.start;let d,l;for(let n=0;n-1;n--){const i=this._viewContainerRef.get(n+s);if(i&&i.rootNodes.length){l=i.rootNodes[i.rootNodes.length-1];break}}return d&&l?jg(t,"end",l)-jg(t,"start",d):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,Ie.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const s=this._viewContainerRef.get(t);s.context.index=this._renderedRange.start+t,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(u,d,l)=>this._getEmbeddedViewArgs(u,l),u=>u.item),e.forEachIdentityChange(u=>{this._viewContainerRef.get(u.currentIndex).context.$implicit=u.item});const t=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const u=this._viewContainerRef.get(s);u.context.index=this._renderedRange.start+s,u.context.count=t,this._updateComputedContextProperties(u.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.s_b),f.Y36(f.Rgc),f.Y36(f.ZZ4),f.Y36(os),f.Y36(Nh,4),f.Y36(f.R0b))},r.\u0275dir=f.lG2({type:r,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[f._Bn([{provide:os,useClass:jh}])]}),r})(),Ca=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),cs=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[so,Ca,so,Ca]}),r})();class Md{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class ds extends Md{constructor(a,e,t,s){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=s}}class qh extends Md{constructor(a,e,t,s){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=s}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class zh extends Md{constructor(a){super(),this.element=a instanceof f.SBq?a.nativeElement:a}}class Gh{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof ds?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof qh?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof zh?(this._attachedPortal=a,this.attachDomPortal(a)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class mv extends Gh{constructor(a,e,t,s,u){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=s,this.attachDomPortal=d=>{const l=d.element,n=this._document.createComment("dom-portal");l.parentNode.insertBefore(n,l),this.outletElement.appendChild(l),this._attachedPortal=d,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(l,n)})},this._document=u}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let s;return a.viewContainerRef?(s=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=t.create(a.injector||this._defaultInjector||f.zs3.NULL),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=a,s}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(s=>this.outletElement.appendChild(s)),t.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(t);-1!==s&&e.remove(s)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let us=(()=>{class r extends Gh{constructor(e,t,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new f.vpe,this.attachDomPortal=u=>{const d=u.element,l=this._document.createComment("dom-portal");u.setAttachedHost(this),d.parentNode.insertBefore(l,d),this._getRootNode().appendChild(d),this._attachedPortal=u,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(d,l)})},this._document=s}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,u=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(u,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]),super.setDisposeFn(()=>d.destroy()),this._attachedPortal=e,this._attachedRef=d,this.attached.emit(d),d}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f._Vd),f.Y36(f.s_b),f.Y36(M.K0))},r.\u0275dir=f.lG2({type:r,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[f.qOj]}),r})(),po=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();var Bn=E(6451);const Fg=ma();class Wh{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=pi(-this._previousScrollPosition.left),a.style.top=pi(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,s=this._document.body.style,u=t.scrollBehavior||"",d=s.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),Fg&&(t.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Fg&&(t.scrollBehavior=u,s.scrollBehavior=d)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class or{constructor(a,e,t,s){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ps{enable(){}disable(){}attach(){}}function vi(r,a){return a.some(e=>r.bottome.bottom||r.righte.right)}function wa(r,a){return a.some(e=>r.tope.bottom||r.lefte.right)}class Hd{constructor(a,e,t,s){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=s,this._scrollSubscription=null}attach(a){this._overlayRef=a}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:s}=this._viewportRuler.getViewportSize();vi(e,[{width:t,height:s,bottom:s,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let mn=(()=>{class r{constructor(e,t,s,u){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=s,this.noop=()=>new ps,this.close=d=>new or(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new Wh(this._viewportRuler,this._document),this.reposition=d=>new Hd(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=u}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(ss),f.LFG(Ur),f.LFG(f.R0b),f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Dl{constructor(a){if(this.scrollStrategy=new ps,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class fs{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}let fo=(()=>{class r{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ms=(()=>{class r extends fo{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=s=>{const u=this._attachedOverlays;for(let d=u.length-1;d>-1;d--)if(u[d]._keydownEvents.observers.length>0){const l=u[d]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0),f.LFG(f.R0b,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),gs=(()=>{class r extends fo{constructor(e,t,s){super(e),this._platform=t,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=u=>{this._pointerDownEventTarget=Yi(u)},this._clickListener=u=>{const d=Yi(u),l="click"===u.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:d;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const o=n[i];if(o._outsidePointerEvents.observers.length<1||!o.hasAttached())continue;if(o.overlayElement.contains(d)||o.overlayElement.contains(l))break;const c=o._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(u)):c.next(u)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0),f.LFG(Yt),f.LFG(f.R0b,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Nr=(()=>{class r{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Vr()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let u=0;uthis._backdropClick.next(c),this._backdropTransitionendHandler=c=>{this._disposeBackdrop(c.target)},this._keydownEvents=new He.x,this._outsidePointerEvents=new He.x,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,qt.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){const a=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,a&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config={...this._config,...a},this._updateElementSize()}setDirection(a){this._config={...this._config,direction:a},this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=pi(this._config.width),a.height=pi(this._config.height),a.minWidth=pi(this._config.minWidth),a.minHeight=pi(this._config.minHeight),a.maxWidth=pi(this._config.maxWidth),a.maxHeight=pi(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(a){if(this._animationsDisabled)return void this._disposeBackdrop(a);a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",this._backdropTransitionendHandler)}),a.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(a)},500))}}_toggleClasses(a,e,t){const s=td(e||[]).filter(u=>!!u);s.length&&(t?a.classList.add(...s):a.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(_t((0,Bn.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const $h="cdk-overlay-connected-position-bounding-box",Ug=/([A-Za-z%]+)$/;class Ng{constructor(a,e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new He.x,this._resizeSubscription=wt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(a)}get positions(){return this._preferredPositions}attach(a){this._validatePositions(),a.hostElement.classList.add($h),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,s=this._containerRect,u=[];let d;for(let l of this._preferredPositions){let n=this._getOriginPoint(a,s,l),i=this._getOverlayPoint(n,e,l),o=this._getOverlayFit(i,e,t,l);if(o.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,n);this._canFitWithFlexibleDimensions(o,i,t)?u.push({position:l,origin:n,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(n,l)}):(!d||d.overlayFit.visibleArean&&(n=o,l=i)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(d.position,d.originPoint);this._applyPosition(d.position,d.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ya(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove($h),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let s,u;if("center"==t.originX)s=a.left+a.width/2;else{const d=this._isRtl()?a.right:a.left,l=this._isRtl()?a.left:a.right;s="start"==t.originX?d:l}return e.left<0&&(s-=e.left),u="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(u-=e.top),{x:s,y:u}}_getOverlayPoint(a,e,t){let s,u;return s="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,u="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+s,y:a.y+u}}_getOverlayFit(a,e,t,s){const u=Yh(e);let{x:d,y:l}=a,n=this._getOffset(s,"x"),i=this._getOffset(s,"y");n&&(d+=n),i&&(l+=i);let h=0-l,m=l+u.height-t.height,g=this._subtractOverflows(u.width,0-d,d+u.width-t.width),p=this._subtractOverflows(u.height,h,m),w=g*p;return{visibleArea:w,isCompletelyWithinViewport:u.width*u.height===w,fitsInViewportVertically:p===u.height,fitsInViewportHorizontally:g==u.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const s=t.bottom-e.y,u=t.right-e.x,d=Qh(this._overlayRef.getConfig().minHeight),l=Qh(this._overlayRef.getConfig().minWidth),i=a.fitsInViewportHorizontally||null!=l&&l<=u;return(a.fitsInViewportVertically||null!=d&&d<=s)&&i}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const s=Yh(e),u=this._viewportRect,d=Math.max(a.x+s.width-u.width,0),l=Math.max(a.y+s.height-u.height,0),n=Math.max(u.top-t.top-a.y,0),i=Math.max(u.left-t.left-a.x,0);let o=0,c=0;return o=s.width<=u.width?i||-d:a.xg&&!this._isInitialRender&&!this._growAfterOpen&&(d=a.y-g/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)h=t.width-a.x+this._viewportMargin,o=a.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)c=a.x,o=t.right-a.x;else{const m=Math.min(t.right-a.x+t.left,a.x),g=this._lastBoundingBoxSize.width;o=2*m,c=a.x-m,o>g&&!this._isInitialRender&&!this._growAfterOpen&&(c=a.x-g/2)}return{top:d,left:c,bottom:l,right:h,width:o,height:u}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const u=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;s.height=pi(t.height),s.top=pi(t.top),s.bottom=pi(t.bottom),s.width=pi(t.width),s.left=pi(t.left),s.right=pi(t.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",u&&(s.maxHeight=pi(u)),d&&(s.maxWidth=pi(d))}this._lastBoundingBoxSize=t,ya(this._boundingBox.style,s)}_resetBoundingBoxStyles(){ya(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ya(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},s=this._hasExactPosition(),u=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(s){const o=this._viewportRuler.getViewportScrollPosition();ya(t,this._getExactOverlayY(e,a,o)),ya(t,this._getExactOverlayX(e,a,o))}else t.position="static";let l="",n=this._getOffset(e,"x"),i=this._getOffset(e,"y");n&&(l+=`translateX(${n}px) `),i&&(l+=`translateY(${i}px)`),t.transform=l.trim(),d.maxHeight&&(s?t.maxHeight=pi(d.maxHeight):u&&(t.maxHeight="")),d.maxWidth&&(s?t.maxWidth=pi(d.maxWidth):u&&(t.maxWidth="")),ya(this._pane.style,t)}_getExactOverlayY(a,e,t){let s={top:"",bottom:""},u=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),"bottom"===a.overlayY?s.bottom=this._document.documentElement.clientHeight-(u.y+this._overlayRect.height)+"px":s.top=pi(u.y),s}_getExactOverlayX(a,e,t){let d,s={left:"",right:""},u=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),d=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===d?s.right=this._document.documentElement.clientWidth-(u.x+this._overlayRect.width)+"px":s.left=pi(u.x),s}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:wa(a,t),isOriginOutsideView:vi(a,t),isOverlayClipped:wa(e,t),isOverlayOutsideView:vi(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,s)=>t-Math.max(s,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?a.offsetX??this._offsetX:a.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&td(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof f.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function ya(r,a){for(let e in a)a.hasOwnProperty(e)&&(r[e]=a[e]);return r}function Qh(r){if("number"!=typeof r&&null!=r){const[a,e]=r.split(Ug);return e&&"px"!==e?null:parseFloat(a)}return r||null}function Yh(r){return{top:Math.floor(r.top),right:Math.floor(r.right),bottom:Math.floor(r.bottom),left:Math.floor(r.left),width:Math.floor(r.width),height:Math.floor(r.height)}}const qg="cdk-global-overlay-wrapper";class bv{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(qg),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:s,height:u,maxWidth:d,maxHeight:l}=t,n=!("100%"!==s&&"100vw"!==s||d&&"100%"!==d&&"100vw"!==d),i=!("100%"!==u&&"100vh"!==u||l&&"100%"!==l&&"100vh"!==l),o=this._xPosition,c=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let m="",g="",p="";n?p="flex-start":"center"===o?(p="center",h?g=c:m=c):h?"left"===o||"end"===o?(p="flex-end",m=c):("right"===o||"start"===o)&&(p="flex-start",g=c):"left"===o||"start"===o?(p="flex-start",m=c):("right"===o||"end"===o)&&(p="flex-end",g=c),a.position=this._cssPosition,a.marginLeft=n?"0":m,a.marginTop=i?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=n?"0":g,e.justifyContent=p,e.alignItems=i?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(qg),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let Cv=(()=>{class r{constructor(e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u}global(){return new bv}flexibleConnectedTo(e){return new Ng(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Ur),f.LFG(M.K0),f.LFG(Yt),f.LFG(Nr))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),zg=0,gn=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c,h,m){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=s,this._positionBuilder=u,this._keyboardDispatcher=d,this._injector=l,this._ngZone=n,this._document=i,this._directionality=o,this._location=c,this._outsideClickDispatcher=h,this._animationsModuleType=m}create(e){const t=this._createHostElement(),s=this._createPaneElement(t),u=this._createPortalOutlet(s),d=new Dl(e);return d.direction=d.direction||this._directionality.value,new _s(u,t,s,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+zg++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(f.z2F)),new mv(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(mn),f.LFG(Nr),f.LFG(f._Vd),f.LFG(Cv),f.LFG(ms),f.LFG(f.zs3),f.LFG(f.R0b),f.LFG(M.K0),f.LFG(fn),f.LFG(M.Ye),f.LFG(gs),f.LFG(f.QbO,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const Pd={provide:new f.OlP("cdk-connected-overlay-scroll-strategy"),deps:[gn],useFactory:function Rd(r){return()=>r.scrollStrategies.reposition()}};let va=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[gn,Pd],imports:[so,po,cs,cs]}),r})();class kl{}const On="*";function Zt(r,a){return{type:7,name:r,definitions:a,options:{}}}function vt(r,a=null){return{type:4,styles:a,timings:r}}function Kh(r,a=null){return{type:3,steps:r,options:a}}function Zh(r,a=null){return{type:2,steps:r,options:a}}function Ne(r){return{type:6,styles:r,offset:null}}function ft(r,a,e){return{type:0,name:r,styles:a,options:e}}function yt(r,a,e=null){return{type:1,expr:r,animation:a,options:e}}function Vl(r=null){return{type:9,options:r}}function kd(r,a,e=null){return{type:11,selector:r,animation:a,options:e}}function Xh(r){Promise.resolve(null).then(r)}class go{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Xh(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Vd{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,s=0;const u=this.players.length;0==u?Xh(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==u&&this._onFinish()}),d.onDestroy(()=>{++t==u&&this._onDestroy()}),d.onStart(()=>{++s==u&&this._onStart()})}),this.totalTime=this.players.reduce((d,l)=>Math.max(d,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const s=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(s)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Wg=["connectionContainer"],$g=["inputContainer"],Qg=["label"];function Yg(r,a){1&r&&(f.ynx(0),f.TgZ(1,"div",14),f._UZ(2,"div",15)(3,"div",16)(4,"div",17),f.qZA(),f.TgZ(5,"div",18),f._UZ(6,"div",15)(7,"div",16)(8,"div",17),f.qZA(),f.BQk())}function Jg(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"div",19),f.NdJ("cdkObserveContent",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.updateOutlineGap())}),f.Hsn(1,1),f.qZA()}if(2&r){const e=f.oxw();f.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Kg(r,a){if(1&r&&(f.ynx(0),f.Hsn(1,2),f.TgZ(2,"span"),f._uU(3),f.qZA(),f.BQk()),2&r){const e=f.oxw(2);f.xp6(3),f.Oqu(e._control.placeholder)}}function Zg(r,a){1&r&&f.Hsn(0,3,["*ngSwitchCase","true"])}function yS(r,a){1&r&&(f.TgZ(0,"span",23),f._uU(1," *"),f.qZA())}function xv(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"label",20,21),f.NdJ("cdkObserveContent",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.updateOutlineGap())}),f.YNc(2,Kg,4,1,"ng-container",12),f.YNc(3,Zg,1,0,"ng-content",12),f.YNc(4,yS,2,0,"span",22),f.qZA()}if(2&r){const e=f.oxw();f.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),f.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),f.uIk("for",e._control.id)("aria-owns",e._control.id),f.xp6(2),f.Q6J("ngSwitchCase",!1),f.xp6(1),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Tv(r,a){1&r&&(f.TgZ(0,"div",24),f.Hsn(1,4),f.qZA())}function Xg(r,a){if(1&r&&(f.TgZ(0,"div",25),f._UZ(1,"span",26),f.qZA()),2&r){const e=f.oxw();f.xp6(1),f.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Sv(r,a){if(1&r&&(f.TgZ(0,"div"),f.Hsn(1,5),f.qZA()),2&r){const e=f.oxw();f.Q6J("@transitionMessages",e._subscriptAnimationState)}}function fi(r,a){if(1&r&&(f.TgZ(0,"div",30),f._uU(1),f.qZA()),2&r){const e=f.oxw(2);f.Q6J("id",e._hintLabelId),f.xp6(1),f.Oqu(e.hintLabel)}}function e_(r,a){if(1&r&&(f.TgZ(0,"div",27),f.YNc(1,fi,2,2,"div",28),f.Hsn(2,6),f._UZ(3,"div",29),f.Hsn(4,7),f.qZA()),2&r){const e=f.oxw();f.Q6J("@transitionMessages",e._subscriptAnimationState),f.xp6(1),f.Q6J("ngIf",e.hintLabel)}}const Ev=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Mv=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let t_=0;const i_=new f.OlP("MatError");let bs=(()=>{class r{constructor(e,t){this.id="mat-error-"+t_++,e||t.nativeElement.setAttribute("aria-live","polite")}}return r.\u0275fac=function(e){return new(e||r)(f.$8M("aria-live"),f.Y36(f.SBq))},r.\u0275dir=f.lG2({type:r,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&f.uIk("id",t.id)},inputs:{id:"id"},features:[f._Bn([{provide:i_,useExisting:r}])]}),r})();const n_={transitionMessages:Zt("transitionMessages",[ft("enter",Ne({opacity:1,transform:"translateY(0%)"})),yt("void => enter",[Ne({opacity:0,transform:"translateY(-5px)"}),vt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let qr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r}),r})(),Hv=0;const ep=new f.OlP("MatHint");let xS=(()=>{class r{constructor(){this.align="start",this.id="mat-hint-"+Hv++}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(f.uIk("id",t.id)("align",null),f.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[f._Bn([{provide:ep,useExisting:r}])]}),r})(),Aa=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["mat-label"]]}),r})(),tp=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["mat-placeholder"]]}),r})();const sr=new f.OlP("MatPrefix"),ip=new f.OlP("MatSuffix");let lr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["","matSuffix",""]],features:[f._Bn([{provide:ip,useExisting:r}])]}),r})(),_n=0;const r_=ar(class{constructor(r){this._elementRef=r}},"primary"),Rv=new f.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),rp=new f.OlP("MatFormField");let Bl=(()=>{class r extends r_{constructor(e,t,s,u,d,l,n){super(e),this._changeDetectorRef=t,this._dir=s,this._defaults=u,this._platform=d,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+_n++,this._labelId="mat-form-field-label-"+_n++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==n,this.appearance=u?.appearance||"legacy",u&&(this._hideRequiredMarker=Boolean(u.hideRequiredMarker),u.color&&(this.color=this.defaultColor=u.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ye(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(si(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(_t(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(_t(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Bn.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(si(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(si(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(_t(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Tl(this._label.nativeElement,"transitionend").pipe((0,qt.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(u=>"start"===u.align):null,s=this._hintChildren?this._hintChildren.find(u=>"end"===u.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),s&&e.push(s.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",u=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const o=t.querySelectorAll(`${s}, ${u}`);for(let c=0;c0?.75*g+10:0}for(let o=0;o{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,$e,oo,$e]}),r})();const Uv={provide:new f.OlP("mat-select-scroll-strategy"),deps:[gn],useFactory:function u_(r){return()=>r.scrollStrategies.reposition()}};let Ld=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[Uv],imports:[M.ez,va,Rh,$e,Ca,xa,Rh,$e]}),r})();const Nv=["tooltip"],h_="tooltip-panel",p_=pn({passive:!0}),f_=new f.OlP("mat-tooltip-scroll-strategy"),g_={provide:f_,deps:[gn],useFactory:function m_(r){return()=>r.scrollStrategies.reposition({scrollThrottle:20})}},__=new f.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function b_(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let C_=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c,h,m){this._overlay=e,this._elementRef=t,this._scrollDispatcher=s,this._viewContainerRef=u,this._ngZone=d,this._platform=l,this._ariaDescriber=n,this._focusMonitor=i,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new He.x,this._scrollStrategy=o,this._document=m,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),c.change.pipe(_t(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Ye(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=yi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=yi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(_t(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,s])=>{e.removeEventListener(t,s,p_)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new ds(this._tooltipComponent,this._viewContainerRef);const s=this._tooltipInstance=t.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(_t(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(_t(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${h_}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(_t(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(_t(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(_t(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!Hn(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,s=this._getOrigin(),u=this._getOverlayPosition();t.withPositions([this._addOffset({...s.main,...u.main}),this._addOffset({...s.fallback,...u.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let s;"above"==t||"below"==t?s={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?s={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(s={originX:"end",originY:"center"});const{x:u,y:d}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:u,originY:d}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let s;"above"==t?s={overlayX:"center",overlayY:"bottom"}:"below"==t?s={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?s={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(s={overlayX:"start",overlayY:"center"});const{x:u,y:d}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:u,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,qt.q)(1),_t(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:s,originY:u}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===t&&"top"===u?"above":"below",d!==this._currentPosition){const l=this._overlayRef;if(l){const n=`${this._cssClassPrefix}-${h_}-`;l.removePanelClass(n+this._currentPosition),l.addPanelClass(n+d)}this._currentPosition=d}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const s=t.relatedTarget;(!s||!this._overlayRef?.overlayElement.contains(s))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,s])=>{this._elementRef.nativeElement.addEventListener(t,s,p_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;t!==s&&!s.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,s=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===e||!t.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return r.\u0275fac=function(e){f.$Z()},r.\u0275dir=f.lG2({type:r,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),r})(),jd=(()=>{class r extends C_{constructor(e,t,s,u,d,l,n,i,o,c,h,m){super(e,t,s,u,d,l,n,i,o,c,h,m),this._tooltipComponent=y_}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(gn),f.Y36(f.SBq),f.Y36(ss),f.Y36(f.s_b),f.Y36(f.R0b),f.Y36(Yt),f.Y36(ag),f.Y36(Rn),f.Y36(f_),f.Y36(fn,8),f.Y36(__,8),f.Y36(M.K0))},r.\u0275dir=f.lG2({type:r,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[f.qOj]}),r})(),w_=(()=>{class r{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new He.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,s=this._showAnimation,u=this._hideAnimation;if(t.classList.remove(e?u:s),t.classList.add(e?s:u),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const d=getComputedStyle(t);("0s"===d.getPropertyValue("animation-duration")||"none"===d.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.sBO),f.Y36(f.QbO,8))},r.\u0275dir=f.lG2({type:r}),r})(),y_=(()=>{class r extends w_{constructor(e,t,s){super(e,s),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.sBO),f.Y36(nd),f.Y36(f.QbO,8))},r.\u0275cmp=f.Xpm({type:r,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&f.Gf(Nv,7),2&e){let s;f.iGM(s=f.CRH())&&(t._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&f.NdJ("mouseleave",function(u){return t._handleMouseLeave(u)}),2&e&&f.Udp("zoom",t.isVisible()?1:null)},features:[f.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(f.TgZ(0,"div",0,1),f.NdJ("animationend",function(u){return t._handleAnimationEnd(u)}),f.ALo(2,"async"),f._uU(3),f.qZA()),2&e){let s;f.ekj("mat-tooltip-handset",null==(s=f.lcZ(2,4,t._isHandset))?null:s.matches),f.Q6J("ngClass",t.tooltipClass),f.xp6(3),f.Oqu(t.message)}},dependencies:[M.mk,M.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),r})(),_o=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[g_],imports:[wl,M.ez,va,$e,$e,Ca]}),r})(),Ll=(()=>{class r{constructor(){this.changes=new He.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,s)=>{if(0==s||0==t)return`0 of ${s}`;const u=e*t;return`${u+1} \u2013 ${u<(s=Math.max(s,0))?Math.min(u+t,s):u+t} of ${s}`}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const A_={provide:Ll,deps:[[new f.FiY,new f.tp0,Ll]],useFactory:function LS(r){return r||new Ll}};let zr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[A_],imports:[M.ez,kn,Ld,_o,$e]}),r})();var x_=E(1005);const Fd=["mat-menu-item",""];function Ud(r,a){1&r&&(f.O4$(),f.TgZ(0,"svg",2),f._UZ(1,"polygon",3),f.qZA())}const Jt=["*"];function NS(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"div",0),f.NdJ("keydown",function(s){f.CHM(e);const u=f.oxw();return f.KtG(u._handleKeydown(s))})("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.closed.emit("click"))})("@transformMenu.start",function(s){f.CHM(e);const u=f.oxw();return f.KtG(u._onAnimationStart(s))})("@transformMenu.done",function(s){f.CHM(e);const u=f.oxw();return f.KtG(u._onAnimationDone(s))}),f.TgZ(1,"div",1),f.Hsn(2),f.qZA()()}if(2&r){const e=f.oxw();f.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),f.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const jl={transformMenu:Zt("transformMenu",[ft("void",Ne({opacity:0,transform:"scale(0.8)"})),yt("void => enter",vt("120ms cubic-bezier(0, 0, 0.2, 1)",Ne({opacity:1,transform:"scale(1)"}))),yt("* => void",vt("100ms 25ms linear",Ne({opacity:0})))]),fadeInItems:Zt("fadeInItems",[ft("showing",Ne({opacity:1})),yt("void => *",[Ne({opacity:0}),vt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},T_=new f.OlP("MatMenuContent"),cp=new f.OlP("MAT_MENU_PANEL"),Fl=co(lo(class{}));let Ul=(()=>{class r extends Fl{constructor(e,t,s,u,d){super(),this._elementRef=e,this._document=t,this._focusMonitor=s,this._parentMenu=u,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new He.x,this._focused=new He.x,this._highlighted=!1,this._triggersSubmenu=!1,u?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class r{constructor(e,t,s,u){this._elementRef=e,this._ngZone=t,this._defaultOptions=s,this._changeDetectorRef=u,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new f.n_E,this._tabSubscription=wt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new f.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Nd++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ye(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ye(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(s=>{this._classList[s]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(s=>{this._classList[s]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new vh(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(si(this._directDescendantItems),(0,bt.w)(e=>(0,Bn.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const s=e.toArray(),u=Math.max(0,Math.min(s.length-1,t.activeItemIndex||0));s[u]&&!s[u].disabled?t.setActiveItem(u):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(si(this._directDescendantItems),(0,bt.w)(t=>(0,Bn.T)(...t.map(s=>s._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,s=this._keyManager;switch(t){case 27:Hn(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&s.setFocusOrigin("keyboard"),void s.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,qt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const s=this._keyManager;s.setFocusOrigin(e).setFirstItemActive(),!s.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),s=`${this._elevationPrefix}${t}`,u=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!u||u===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[s]=!0,this._previousElevation=s)}setPositionClasses(e=this.xPosition,t=this.yPosition){const s=this._classList;s["mat-menu-before"]="before"===e,s["mat-menu-after"]="after"===e,s["mat-menu-above"]="above"===t,s["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(si(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(S_),f.Y36(f.sBO))},r.\u0275dir=f.lG2({type:r,contentQueries:function(e,t,s){if(1&e&&(f.Suo(s,T_,5),f.Suo(s,Ul,5),f.Suo(s,Ul,4)),2&e){let u;f.iGM(u=f.CRH())&&(t.lazyContent=u.first),f.iGM(u=f.CRH())&&(t._allItems=u),f.iGM(u=f.CRH())&&(t.items=u)}},viewQuery:function(e,t){if(1&e&&f.Gf(f.Rgc,5),2&e){let s;f.iGM(s=f.CRH())&&(t.templateRef=s.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),r})(),dp=(()=>{class r extends Cs{constructor(e,t,s,u){super(e,t,s,u),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(S_),f.Y36(f.sBO))},r.\u0275cmp=f.Xpm({type:r,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&f.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[f._Bn([{provide:cp,useExisting:r}]),f.qOj],ngContentSelectors:Jt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(f.F$t(),f.YNc(0,NS,3,6,"ng-template"))},dependencies:[M.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[jl.transformMenu,jl.fadeInItems]},changeDetection:0}),r})();const up=new f.OlP("mat-menu-scroll-strategy"),Nl={provide:up,deps:[gn],useFactory:function Zv(r){return()=>r.scrollStrategies.reposition()}},E_=pn({passive:!0});let Xv=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o){this._overlay=e,this._element=t,this._viewContainerRef=s,this._menuItemInstance=l,this._dir=n,this._focusMonitor=i,this._ngZone=o,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=wt.w0.EMPTY,this._hoverSubscription=wt.w0.EMPTY,this._menuCloseSubscription=wt.w0.EMPTY,this._handleTouchStart=c=>{rr(c)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new f.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new f.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=u,this._parentMaterialMenu=d instanceof Cs?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,E_),l&&(l._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,E_),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),s=t.getConfig(),u=s.positionStrategy;this._setPosition(e,u),s.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Cs&&(e._startAnimation(),e._directDescendantItems.changes.pipe(_t(e.close)).subscribe(()=>{u.withLockedPosition(!1).reapplyLastPosition(),u.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof Cs?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,ii.h)(s=>"void"===s.toState),(0,qt.q)(1),_t(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,s=e.parentMenu;for(;s;)t++,s=s.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Dl({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(s=>{const u="start"===s.connectionPair.overlayX?"after":"before",d="top"===s.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(u,d)):e.setPositionClasses(u,d)})}_setPosition(e,t){let[s,u]="before"===e.xPosition?["end","start"]:["start","end"],[d,l]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[n,i]=[d,l],[o,c]=[s,u],h=0;if(this.triggersSubmenu()){if(c=s="before"===e.xPosition?"start":"end",u=o="end"===s?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const m=this._parentMaterialMenu.items.first;this._parentInnerPadding=m?m._getHostElement().offsetTop:0}h="bottom"===d?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(n="top"===d?"bottom":"top",i="top"===l?"bottom":"top");t.withPositions([{originX:s,originY:n,overlayX:o,overlayY:d,offsetY:h},{originX:u,originY:n,overlayX:c,overlayY:d,offsetY:h},{originX:s,originY:i,overlayX:o,overlayY:l,offsetY:-h},{originX:u,originY:i,overlayX:c,overlayY:l,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),s=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Ie.of)(),u=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,ii.h)(d=>d!==this._menuItemInstance),(0,ii.h)(()=>this._menuOpen)):(0,Ie.of)();return(0,Bn.T)(e,s,u,t)}_handleMousedown(e){bl(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,ii.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,x_.g)(0,wd)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Cs&&this.menu._isAnimating?this.menu._animationDone.pipe((0,qt.q)(1),(0,x_.g)(0,wd),_t(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new qh(e.templateRef,this._viewContainerRef)),this._portal}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(gn),f.Y36(f.SBq),f.Y36(f.s_b),f.Y36(up),f.Y36(cp,8),f.Y36(Ul,10),f.Y36(fn,8),f.Y36(Rn),f.Y36(f.R0b))},r.\u0275dir=f.lG2({type:r,hostVars:3,hostBindings:function(e,t){1&e&&f.NdJ("click",function(u){return t._handleClick(u)})("mousedown",function(u){return t._handleMousedown(u)})("keydown",function(u){return t._handleKeydown(u)}),2&e&&f.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),r})(),M_=(()=>{class r extends Xv{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275dir=f.lG2({type:r,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[f.qOj]}),r})(),ql=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[Nl],imports:[M.ez,$e,In,va,Ca,$e]}),r})();var D_=E(4742),H_=E(1810);function hp(...r){const a=(0,Lf.jO)(r),{args:e,keys:t}=(0,D_.D)(r),s=new Ui.y(u=>{const{length:d}=e;if(!d)return void u.complete();const l=new Array(d);let n=d,i=d;for(let o=0;o{c||(c=!0,i--),l[o]=h},()=>n--,void 0,()=>{(!n||!c)&&(i||u.next(t?(0,H_.n)(t,l):l),u.complete())}))}});return a?s.pipe((0,gd.Z)(a)):s}const R_=["*"];let zd;function Gd(r){return function eA(){if(void 0===zd&&(zd=null,typeof window<"u")){const r=window;void 0!==r.trustedTypes&&(zd=r.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return zd}()?.createHTML(r)||r}function tA(r){return Error(`Unable to find icon with the name "${r}"`)}function iA(r){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${r}".`)}function pp(r){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${r}".`)}class cr{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let zl=(()=>{class r{constructor(e,t,s,u){this._httpClient=e,this._sanitizer=t,this._errorHandler=u,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=s}addSvgIcon(e,t,s){return this.addSvgIconInNamespace("",e,t,s)}addSvgIconLiteral(e,t,s){return this.addSvgIconLiteralInNamespace("",e,t,s)}addSvgIconInNamespace(e,t,s,u){return this._addSvgIconConfig(e,t,new cr(s,null,u))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,s,u){const d=this._sanitizer.sanitize(f.q3G.HTML,s);if(!d)throw pp(s);const l=Gd(d);return this._addSvgIconConfig(e,t,new cr("",l,u))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,s){return this._addSvgIconSetConfig(e,new cr(t,null,s))}addSvgIconSetLiteralInNamespace(e,t,s){const u=this._sanitizer.sanitize(f.q3G.HTML,t);if(!u)throw pp(t);const d=Gd(u);return this._addSvgIconSetConfig(e,new cr("",d,s))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(f.q3G.RESOURCE_URL,e);if(!t)throw iA(e);const s=this._cachedIconsByUrl.get(t);return s?(0,Ie.of)(Ta(s)):this._loadSvgIconFromConfig(new cr(e,null)).pipe((0,Lt.b)(u=>this._cachedIconsByUrl.set(t,u)),(0,pt.U)(u=>Ta(u)))}getNamedSvgIcon(e,t=""){const s=P_(t,e);let u=this._svgIconConfigs.get(s);if(u)return this._getSvgFromConfig(u);if(u=this._getIconConfigFromResolvers(t,e),u)return this._svgIconConfigs.set(s,u),this._getSvgFromConfig(u);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,en._)(tA(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Ie.of)(Ta(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,pt.U)(t=>Ta(t)))}_getSvgFromIconSetConfigs(e,t){const s=this._extractIconWithNameFromAnySet(e,t);return s?(0,Ie.of)(s):hp(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,Vt.K)(l=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(f.q3G.RESOURCE_URL,d.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(i)),(0,Ie.of)(null)})))).pipe((0,pt.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw tA(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let s=t.length-1;s>=0;s--){const u=t[s];if(u.svgText&&u.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(u),l=this._extractSvgIconFromSet(d,e,u.options);if(l)return l}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Lt.b)(t=>e.svgText=t),(0,pt.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Ie.of)(null):this._fetchIcon(e).pipe((0,Lt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,s){const u=e.querySelector(`[id="${t}"]`);if(!u)return null;const d=u.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,s);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),s);const l=this._svgElementFromString(Gd(""));return l.appendChild(d),this._setSvgAttributes(l,s)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const s=t.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(e){const t=this._svgElementFromString(Gd("")),s=e.attributes;for(let u=0;uGd(i)),Et(()=>this._inProgressUrlFetches.delete(d)),(0,Ig.B)());return this._inProgressUrlFetches.set(d,n),n}_addSvgIconConfig(e,t,s){return this._svgIconConfigs.set(P_(e,t),s),this}_addSvgIconSetConfig(e,t){const s=this._iconSetConfigs.get(e);return s?s.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let s=0;sa?a.pathname+a.search:""}}}),k_=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],cA=k_.map(r=>`[${r}]`).join(", "),ws=/^url\(['"]?#(.*?)['"]?\)$/;let Gr=(()=>{class r extends oA{constructor(e,t,s,u,d,l){super(e),this._iconRegistry=t,this._location=u,this._errorHandler=d,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=wt.w0.EMPTY,l&&(l.color&&(this.color=this.defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),s||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Ye(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const s=e.childNodes[t];(1!==s.nodeType||"svg"===s.nodeName.toLowerCase())&&s.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(s=>s.length>0);this._previousFontSetClass.forEach(s=>e.classList.remove(s)),t.forEach(s=>e.classList.add(s)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((s,u)=>{s.forEach(d=>{u.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(cA),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let u=0;u{const l=t[u],n=l.getAttribute(d),i=n?n.match(ws):null;if(i){let o=s.get(l);o||(o=[],s.set(l,o)),o.push({name:d,value:i[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,s]=this._splitIconName(e);t&&(this._svgNamespace=t),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,t).pipe((0,qt.q)(1)).subscribe(u=>this._setSvgElement(u),u=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${s}! ${u.message}`))})}}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(zl),f.$8M("aria-hidden"),f.Y36(lA),f.Y36(f.qLn),f.Y36(sA,8))},r.\u0275cmp=f.Xpm({type:r,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(f.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),f.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[f.qOj],ngContentSelectors:R_,decls:1,vars:0,template:function(e,t){1&e&&(f.F$t(),f.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),r})(),jn=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})();class Gl{}let fp=(()=>{class r extends Gl{getTranslation(e){return(0,Ie.of)({})}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class mp{}let gp=(()=>{class r{handle(e){return e.key}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();function Wd(r,a){if(r===a)return!0;if(null===r||null===a)return!1;if(r!=r&&a!=a)return!0;let s,u,d,e=typeof r;if(e==typeof a&&"object"==e){if(!Array.isArray(r)){if(Array.isArray(a))return!1;for(u in d=Object.create(null),r){if(!Wd(r[u],a[u]))return!1;d[u]=!0}for(u in a)if(!(u in d)&&typeof a[u]<"u")return!1;return!0}if(!Array.isArray(a))return!1;if((s=r.length)==a.length){for(u=0;u{_p(a[t])?t in r?e[t]=bp(r[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class Wl{}let V_=(()=>{class r extends Wl{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let s;return s="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,s}getValue(e,t){let s="string"==typeof t?t.split("."):[t];t="";do{t+=s.shift(),!dr(e)||!dr(e[t])||"object"!=typeof e[t]&&s.length?s.length?t+=".":e=void 0:(e=e[t],t="")}while(s.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(s,u)=>{let d=this.getValue(t,u);return dr(d)?d:s}):e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class $d{}let B_=(()=>{class r extends $d{compile(e,t){return e}compileTranslations(e,t){return e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class Qd{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new f.vpe,this.onLangChange=new f.vpe,this.onDefaultLangChange=new f.vpe}}const Cp=new f.OlP("USE_STORE"),Yd=new f.OlP("USE_DEFAULT_LANG"),wp=new f.OlP("DEFAULT_LANGUAGE"),yp=new f.OlP("USE_EXTEND");let Oi=(()=>{class r{constructor(e,t,s,u,d,l=!0,n=!1,i=!1,o){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=u,this.missingTranslationHandler=d,this.useDefaultLang=l,this.isolate=n,this.extend=i,this.pending=!1,this._onTranslationChange=new f.vpe,this._onLangChange=new f.vpe,this._onDefaultLangChange=new f.vpe,this._langs=[],this._translations={},this._translationRequests={},o&&this.setDefaultLang(o)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,qt.q)(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Ie.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,qt.q)(1)).subscribe(s=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Ie.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(El(1),(0,qt.q)(1));return this.loadingTranslations=t.pipe((0,pt.U)(s=>this.compiler.compileTranslations(s,e)),El(1),(0,qt.q)(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?{...s,...this.translations[e]}:s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),t}setTranslation(e,t,s=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(s||this.extend)&&this.translations[e]?bp(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,s){let u;if(t instanceof Array){let d={},l=!1;for(let n of t)d[n]=this.getParsedResult(e,n,s),ri(d[n])&&(l=!0);return l?hp(t.map(i=>ri(d[i])?d[i]:(0,Ie.of)(d[i]))).pipe((0,pt.U)(i=>{let o={};return i.forEach((c,h)=>{o[t[h]]=c}),o})):d}if(e&&(u=this.parser.interpolate(this.parser.getValue(e,t),s)),typeof u>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(u=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),s)),typeof u>"u"){let d={key:t,translateService:this};typeof s<"u"&&(d.interpolateParams=s),u=this.missingTranslationHandler.handle(d)}return typeof u<"u"?u:t}get(e,t){if(!dr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,dn.b)(s=>ri(s=this.getParsedResult(s,e,t))?s:(0,Ie.of)(s)));{let s=this.getParsedResult(this.translations[this.currentLang],e,t);return ri(s)?s:(0,Ie.of)(s)}}getStreamOnTranslationChange(e,t){if(!dr(e)||!e.length)throw new Error('Parameter "key" required');return(0,na.z)(cn(()=>this.get(e,t)),this.onTranslationChange.pipe((0,bt.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return"function"==typeof u.subscribe?u:(0,Ie.of)(u)})))}stream(e,t){if(!dr(e)||!e.length)throw new Error('Parameter "key" required');return(0,na.z)(cn(()=>this.get(e,t)),this.onLangChange.pipe((0,bt.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return ri(u)?u:(0,Ie.of)(u)})))}instant(e,t){if(!dr(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,t);if(ri(s)){if(e instanceof Array){let u={};return e.forEach((d,l)=>{u[e[l]]=e[l]}),u}return e}return s}set(e,t,s=this.currentLang){this.translations[s][e]=this.compiler.compile(t,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Qd),f.LFG(Gl),f.LFG($d),f.LFG(Wl),f.LFG(mp),f.LFG(Yd),f.LFG(Cp),f.LFG(yp),f.LFG(wp))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),Ai=(()=>{class r{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,s){let u=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(s){let d=this.translate.getParsedResult(s,e,t);ri(d.subscribe)?d.subscribe(u):u(d)}this.translate.get(e,t).subscribe(u)}transform(e,...t){if(!e||!e.length)return e;if(Wd(e,this.lastKey)&&Wd(t,this.lastParams))return this.value;let s;if(dr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let u=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(u)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(s=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(u=>{this.lastKey&&u.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(u=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Oi,16),f.Y36(f.sBO,16))},r.\u0275pipe=f.Yjl({name:"translate",type:r,pure:!1}),r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),ys=(()=>{class r{static forRoot(e={}){return{ngModule:r,providers:[e.loader||{provide:Gl,useClass:fp},e.compiler||{provide:$d,useClass:B_},e.parser||{provide:Wl,useClass:V_},e.missingTranslationHandler||{provide:mp,useClass:gp},Qd,{provide:Cp,useValue:e.isolate},{provide:Yd,useValue:e.useDefaultLang},{provide:yp,useValue:e.extend},{provide:wp,useValue:e.defaultLanguage},Oi]}}static forChild(e={}){return{ngModule:r,providers:[e.loader||{provide:Gl,useClass:fp},e.compiler||{provide:$d,useClass:B_},e.parser||{provide:Wl,useClass:V_},e.missingTranslationHandler||{provide:mp,useClass:gp},{provide:Cp,useValue:e.isolate},{provide:Yd,useValue:e.useDefaultLang},{provide:yp,useValue:e.extend},{provide:wp,useValue:e.defaultLanguage},Oi]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),dA=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[zr,ql,jn,kn,ys,M.ez]}),r})();var uA=E(5861);function O_(r,a){}class $l{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let L_=(()=>{class r extends Gh{constructor(e,t,s,u,d,l,n,i){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=u,this._interactivityChecker=d,this._ngZone=l,this._overlayRef=n,this._focusMonitor=i,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=o=>{this._portalOutlet.hasAttached();const c=this._portalOutlet.attachDomPortal(o);return this._contentAttached(),c},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=s}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const s=()=>{e.removeEventListener("blur",s),e.removeEventListener("mousedown",s),e.removeAttribute("tabindex")};e.addEventListener("blur",s),e.addEventListener("mousedown",s)})),e.focus(t)}_focusByCssSelector(e,t){let s=this._elementRef.nativeElement.querySelector(e);s&&this._forceFocus(s,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const s=hl(),u=this._elementRef.nativeElement;(!s||s===this._document.body||s===u||u.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=hl();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=hl())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(sd),f.Y36(M.K0,8),f.Y36($l),f.Y36(od),f.Y36(f.R0b),f.Y36(_s),f.Y36(Rn))},r.\u0275cmp=f.Xpm({type:r,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&f.Gf(us,7),2&e){let s;f.iGM(s=f.CRH())&&(t._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&f.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[f.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&f.YNc(0,O_,0,0,"ng-template",0)},dependencies:[us],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),r})();class Jd{constructor(a,e){this.overlayRef=a,this.config=e,this.closed=new He.x,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!Hn(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(a,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}}const j_=new f.OlP("DialogScrollStrategy"),hA=new f.OlP("DialogData"),pA=new f.OlP("DefaultDialogConfig"),Ap={provide:j_,deps:[gn],useFactory:function vp(r){return()=>r.scrollStrategies.block()}};let F_=0,Kd=(()=>{class r{constructor(e,t,s,u,d,l){this._overlay=e,this._injector=t,this._defaultOptions=s,this._parentDialog=u,this._overlayContainer=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._ariaHiddenElements=new Map,this.afterAllClosed=cn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(si(void 0))),this._scrollStrategy=l}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new $l,...t}).id=t.id||"cdk-dialog-"+F_++,t.id&&this.getDialogById(t.id);const u=this._getOverlayConfig(t),d=this._overlay.create(u),l=new Jd(d,t),n=this._attachContainer(d,l,t);return l.containerInstance=n,this._attachDialogContent(e,l,n,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){xp(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){xp(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),xp(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Dl({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,s){const u=s.injector??s.viewContainerRef?.injector,d=[{provide:$l,useValue:s},{provide:Jd,useValue:t},{provide:_s,useValue:e}];let l;s.container?"function"==typeof s.container?l=s.container:(l=s.container.type,d.push(...s.container.providers(s))):l=L_;const n=new ds(l,s.viewContainerRef,f.zs3.create({parent:u||this._injector,providers:d}),s.componentFactoryResolver);return e.attach(n).instance}_attachDialogContent(e,t,s,u){const d=this._createInjector(u,t,s);if(e instanceof f.Rgc){let l={$implicit:u.data,dialogRef:t};u.templateContext&&(l={...l,..."function"==typeof u.templateContext?u.templateContext():u.templateContext}),s.attachTemplatePortal(new qh(e,null,l,d))}else{const l=s.attachComponentPortal(new ds(e,u.viewContainerRef,d,u.componentFactoryResolver));t.componentInstance=l.instance}}_createInjector(e,t,s){const u=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:hA,useValue:e.data},{provide:Jd,useValue:t}];return e.providers&&("function"==typeof e.providers?d.push(...e.providers(t,e,s)):d.push(...e.providers)),e.direction&&(!u||!u.get(fn,null,f.XFs.Optional))&&d.push({provide:fn,useValue:{value:e.direction,change:(0,Ie.of)()}}),f.zs3.create({parent:e.injector||u||this._injector,providers:d})}_removeOpenDialog(e,t){const s=this.openDialogs.indexOf(e);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((u,d)=>{u?d.setAttribute("aria-hidden",u):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let s=t.length-1;s>-1;s--){const u=t[s];u!==e&&"SCRIPT"!==u.nodeName&&"STYLE"!==u.nodeName&&!u.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(u,u.getAttribute("aria-hidden")),u.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(gn),f.LFG(f.zs3),f.LFG(pA,8),f.LFG(r,12),f.LFG(Nr),f.LFG(j_))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();function xp(r,a){let e=r.length;for(;e--;)a(r[e])}let fA=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[Kd,Ap],imports:[va,po,wl,po]}),r})();function Tp(r,a){}const vs={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},U_={dialogContainer:Zt("dialogContainer",[ft("void, exit",Ne({opacity:0,transform:"scale(0.7)"})),ft("enter",Ne({transform:"none"})),yt("* => enter",Kh([vt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ne({transform:"none",opacity:1})),kd("@*",Vl(),{optional:!0})]),vs),yt("* => void, * => exit",Kh([vt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ne({opacity:0})),kd("@*",Vl(),{optional:!0})]),vs)])};class ur{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=vs.params.enterAnimationDuration,this.exitAnimationDuration=vs.params.exitAnimationDuration}}let N_=(()=>{class r extends L_{constructor(e,t,s,u,d,l,n,i){super(e,t,s,u,d,l,n,i),this._animationStateChanged=new f.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(sd),f.Y36(M.K0,8),f.Y36(ur),f.Y36(od),f.Y36(f.R0b),f.Y36(_s),f.Y36(Rn))},r.\u0275cmp=f.Xpm({type:r,selectors:[["ng-component"]],features:[f.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),r})(),mA=(()=>{class r extends N_{constructor(e,t,s,u,d,l,n,i,o){super(e,t,s,u,d,l,n,o),this._changeDetectorRef=i,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||vs.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||vs.params.exitAnimationDuration}}}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(sd),f.Y36(M.K0,8),f.Y36(ur),f.Y36(od),f.Y36(f.R0b),f.Y36(_s),f.Y36(f.sBO),f.Y36(Rn))},r.\u0275cmp=f.Xpm({type:r,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&f.WFA("@dialogContainer.start",function(u){return t._onAnimationStart(u)})("@dialogContainer.done",function(u){return t._onAnimationDone(u)}),2&e&&(f.Ikx("id",t._config.id),f.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),f.d8E("@dialogContainer",t._getAnimationState()))},features:[f.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&f.YNc(0,Tp,0,0,"ng-template",0)},dependencies:[us],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[U_.dialogContainer]}}),r})();class hr{constructor(a,e,t){this._ref=a,this._containerInstance=t,this._afterOpened=new He.x,this._beforeClosed=new He.x,this._state=0,this.disableClose=e.disableClose,this.id=a.id,t._animationStateChanged.pipe((0,ii.h)(s=>"opened"===s.state),(0,qt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,ii.h)(s=>"closed"===s.state),(0,qt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Bn.T)(this.backdropClick(),this.keydownEvents().pipe((0,ii.h)(s=>27===s.keyCode&&!this.disableClose&&!Hn(s)))).subscribe(s=>{this.disableClose||(s.preventDefault(),function q_(r,a,e){r._closeInteractionType=a,r.close(e)}(this,"keydown"===s.type?"keyboard":"mouse"))})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,ii.h)(e=>"closing"===e.state),(0,qt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Sa=new f.OlP("MatDialogData"),gA=new f.OlP("mat-dialog-default-options"),Zd=new f.OlP("mat-dialog-scroll-strategy"),Sp={provide:Zd,deps:[gn],useFactory:function _A(r){return()=>r.scrollStrategies.block()}};let z_=0,G_=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c){this._overlay=e,this._defaultOptions=s,this._parentDialog=u,this._dialogRefConstructor=n,this._dialogContainerType=i,this._dialogDataToken=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._idPrefix="mat-dialog-",this.afterAllClosed=cn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(si(void 0))),this._scrollStrategy=l,this._dialog=t.get(Kd)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let s;(t={...this._defaultOptions||new ur,...t}).id=t.id||`${this._idPrefix}${z_++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const u=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:ur,useValue:t},{provide:$l,useValue:t}]},templateContext:()=>({dialogRef:s}),providers:(d,l,n)=>(s=new this._dialogRefConstructor(d,t,n),s.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:s}])});return s.componentInstance=u.componentInstance,this.openDialogs.push(s),this.afterOpened.next(s),s.afterClosed().subscribe(()=>{const d=this.openDialogs.indexOf(s);d>-1&&(this.openDialogs.splice(d,1),this.openDialogs.length||this._getAfterAllClosed().next())}),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return r.\u0275fac=function(e){f.$Z()},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),bn=(()=>{class r extends G_{constructor(e,t,s,u,d,l,n,i){super(e,t,u,l,n,d,hr,mA,Sa,i)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(gn),f.LFG(f.zs3),f.LFG(M.Ye,8),f.LFG(gA,8),f.LFG(Zd),f.LFG(r,12),f.LFG(Nr),f.LFG(f.QbO,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),W_=0,Ea=(()=>{class r{constructor(e,t,s){this._dialogRef=e,this._elementRef=t,this._dialog=s,this.id="mat-dialog-title-"+W_++}ngOnInit(){this._dialogRef||(this._dialogRef=function $_(r,a){let e=r.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr,8),f.Y36(f.SBq),f.Y36(bn))},r.\u0275dir=f.lG2({type:r,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&f.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),r})(),Ma=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),r})(),Da=(()=>{class r{constructor(){this.align="start"}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&f.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),r})(),Ep=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[bn,Sp],imports:[fA,va,po,$e,$e]}),r})();function Mp(){return(Mp=(0,uA.Z)(function*(r,a){yield AA(r),a()})).apply(this,arguments)}function AA(r){return new Promise(a=>setTimeout(a,r))}function pr(){const r=new ur;return r.disableClose=!0,r.autoFocus=!1,r}function Pp(r,a){const e=a.split("&");for(const t of e){const[s,u]=t.split("=");if(s.includes(r))return u}return""}E(4327),new Intl.Collator("cs",{numeric:!0});class LA{static passwordMatchValidator(a){const e=a.get("passwordCtrl").value,t=a.get("passwordAgainCtrl").value;return a.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(a){return e=>{if(!e.value)return null;let t=0;for(const s of a)t+=s.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}let mi=(()=>{class r{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],s=this.defaultConfig[e];let u=null;for(const d of t)d&&null==u&&(u=d[e]);return null===u?s:this.addMissingValuesToProperty(u,s)}addMissingValuesToProperty(e,t){if(null==e)return t;if("object"==typeof e&&!Array.isArray(e))for(const s of Object.keys(t))e[s]=this.addMissingValuesToProperty(e[s],t[s]);return e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var Co=E(1214);let $r=(()=>{class r{constructor(e,t,s,u,d){this.injector=e,this.store=t,this.dialog=s,this.route=u,this.oauthService=d,setTimeout(()=>{this.router=this.injector.get(Qt),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(l=>{l.idpFilter&&(this.filterShortname=String(l.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),u=.5+.25*Math.random(),d=e?{acr_values:e}:{},l=this.store.getProperty("oidc_client");if(l.oauth_scopes.split(" ").includes("offline_access")&&l.oauth_offline_access_consent_prompt&&(d.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(d.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(d.prompt?d.prompt+=" login":d.prompt="login",d.max_age="0"),"Linker"===this.store.getProperty("application")){d.prompt?d.prompt+=" login":d.prompt="login";const n=Pp("idphint",location.search.substring(1));n&&(d.idphint=n)}return{requestAccessToken:!0,issuer:l.oauth_authority,clientId:l.oauth_client_id,redirectUri:l.oauth_redirect_uri,postLogoutRedirectUri:l.oauth_post_logout_redirect_uri,responseType:l.oauth_response_type,scope:l.oauth_scopes,clockSkewInSec:1,timeoutFactor:u,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:d}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let s=null;return e.forEach(u=>{const d=u.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],s=t[d[1]])}),t.default&&!s?(this.filterShortname="default",t.default):s}startIdpFilterKeeper(){this.router.events.pipe((0,ii.h)(e=>e instanceof Rr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.zs3),f.LFG(mi),f.LFG(bn),f.LFG(Pr),f.LFG(Co.Ct))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),rb=(()=>{class r{constructor(e){this.dialogRef=e}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(f.TgZ(0,"h2",0),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&e&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[Ma,Ai]}),r})();var ab=E(930);function Ip(r,a){const e="object"==typeof a;return new Promise((t,s)=>{const u=new ab.Hp({next:d=>{t(d),u.unsubscribe()},error:s,complete:()=>{e?t(a.defaultValue):s(new ia.K)}});r.subscribe(u)})}function ob(r,a){1&r&&(f.TgZ(0,"mat-icon",2),f._uU(1," info "),f.qZA())}function jA(r,a){1&r&&(f.TgZ(0,"mat-icon",2),f._uU(1," warning "),f.qZA())}function sb(r,a){1&r&&(f.TgZ(0,"mat-icon",2),f._uU(1," dangerous "),f.qZA())}function lb(r,a){1&r&&(f.TgZ(0,"mat-icon",2),f._uU(1," check_circle "),f.qZA())}const FA=["*"];let Ha=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:FA,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(f.F$t(),f.TgZ(0,"div",0),f.YNc(1,ob,2,0,"mat-icon",1),f.YNc(2,jA,2,0,"mat-icon",1),f.YNc(3,sb,2,0,"mat-icon",1),f.YNc(4,lb,2,0,"mat-icon",1),f.Hsn(5),f.qZA()),2&e&&(f.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),f.xp6(1),f.Q6J("ngIf","info"===t.alert_type),f.xp6(1),f.Q6J("ngIf","warn"===t.alert_type),f.xp6(1),f.Q6J("ngIf","error"===t.alert_type),f.xp6(1),f.Q6J("ngIf","success"===t.alert_type))},dependencies:[Gr,M.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),r})(),UA=(()=>{class r{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr),f.Y36(Sa))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),f._uU(5),f.ALo(6,"translate"),f.ALo(7,"translate"),f.qZA()(),f.TgZ(8,"div",3)(9,"button",4),f.NdJ("click",function(){return t.cancel()}),f._uU(10),f.ALo(11,"translate"),f.qZA(),f.TgZ(12,"button",5),f.NdJ("click",function(){return t.submit()}),f._uU(13),f.ALo(14,"translate"),f.qZA()()),2&e&&(f.xp6(1),f.Oqu(f.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),f.xp6(4),f.hij(" ",t.data.mfaRoleException?f.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):f.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),f.xp6(4),f.Q6J("hidden",t.data.mfaRoleException),f.xp6(1),f.hij(" ",f.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),f.xp6(2),f.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),f.xp6(1),f.hij(" ",f.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Ea,Ma,Da,Di,Ha,Ai]}),r})(),Gi=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(f.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),f._uU(3," info "),f.qZA(),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"div"),f._uU(7),f.ALo(8,"translate"),f.qZA()()),2&e&&(f.xp6(4),f.hij(" ",f.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),f.xp6(3),f.hij(" ",f.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Gr,Ai],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),r})(),As=(()=>{class r{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Sa),f.Y36(hr))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),f._uU(5),f.ALo(6,"translate"),f.qZA()(),f.TgZ(7,"div",3)(8,"button",4),f.NdJ("click",function(){return t.cancel()}),f._uU(9),f.ALo(10,"translate"),f.qZA(),f.TgZ(11,"button",5),f.NdJ("click",function(){return t.submit()}),f._uU(12),f.ALo(13,"translate"),f.qZA()()),2&e&&(f.xp6(1),f.Oqu(f.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),f.xp6(4),f.hij(" ",f.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),f.xp6(4),f.hij(" ",f.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),f.xp6(3),f.hij(" ",f.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Ea,Ma,Da,Di,Ha,Ai]}),r})(),kp=(()=>{class r{constructor(e,t,s,u){this.dialog=e,this.oauthService=t,this.authService=s,this.store=u}openMfaWindow(e){let t=null,s=null;const u=pr();u.width="450px",u.data={mfaRoleException:e};const d=this.dialog.open(UA,u);let l=!1;if(d.afterClosed().subscribe(n=>{if(n){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const i=pr();i.width="450px",i.panelClass="noBorderDialog",s=this.dialog.open(Gi,i)}}else l=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const n=pr();n.width="450px",n.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(As,n)}return new Ui.y(n=>{const i=setInterval(()=>t?.closed?(clearInterval(i),s.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),n.next(!0)):l?(clearInterval(i),n.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,u=window.top;return window.open(e,"_blank",`width=600,height=600,top=${u.outerHeight/2+u.screenY-300}, left=${u.outerWidth/2+u.screenX-300}`)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(bn),f.LFG(Co.Ct),f.LFG($r),f.LFG(mi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Vp=(()=>{class r{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.oauthService=t,this.storeService=s,this.authResolver=u,this.authzService=d,this.dialog=l,this.router=n,this.mfaHandlerService=i,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return Ip(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=pr();this.dialog.open(rb,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return Ip(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const s={};return t.split("&").forEach(u=>{const d=u.split("=");s[d[0]]=d[1]}),this.router.navigate(["service-access"],{queryParams:s,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const s of t)if(e.startsWith(s))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,ii.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const s=sessionStorage.getItem("auth:queryParams");let u=[];s&&(u=s.split("&"));const d={};return u.forEach(l=>{const n=l.split("=");d[n[0]]=n[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:d,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG($r),f.LFG(Co.Ct),f.LFG(mi),f.LFG(ks),f.LFG(lt),f.LFG(bn),f.LFG(Qt),f.LFG(kp))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),NA=(()=>{class r{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(zl),f.LFG(ti))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),Bp=(()=>{class r{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"div",2)(7,"div",3)(8,"button",4),f.NdJ("click",function(){return t.close()}),f._uU(9),f.ALo(10,"translate"),f.qZA()()()),2&e&&(f.xp6(1),f.Oqu(f.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),f.xp6(3),f.hij(" ",f.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),f.xp6(5),f.hij(" ",f.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Ea,Ma,Da,Di,Ai]}),r})(),Op=(()=>{class r{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ql=(()=>{class r extends Oi{instant(e,t){return String(super.instant(e,t))}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),iu=(()=>{class r{constructor(e){this.translate=e,this.addNotification=new f.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){this.showInstantError("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR",null,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC")}showError(e,t,s,u,d){this.addNotification.emit({type:"error",error:t,description:s,title:e,actionText:void 0===u&&void 0!==s?this.getDefaultActionMessage():u,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showInstantError(e,t,s,u,d){const l=s?this.translate.instant(s):null,n=u?this.translate.instant(u):null;n?this.showError(this.translate.instant(e),t,l,n,d):this.showError(this.translate.instant(e),t,l)}showSuccess(e,t,s,u){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===s&&void 0!==t?this.getDefaultActionMessage():s,delay:this.defaultSuccessDelayMs,icon:"done",action:u,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showInstantSuccess(e,t,s,u){const d=t?this.translate.instant(t):null,l=s?this.translate.instant(s):null;l?this.showSuccess(this.translate.instant(e),d,l,u):this.showSuccess(this.translate.instant(e),d)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Ql))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),nu=(()=>{class r{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.apiRequestConfiguration=t,this.notificator=s,this.store=u,this.dialog=d,this.initAuthService=l,this.mfaHandlerService=n,this.oauthService=i}intercept(e,t){const s=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==s&&this.isCallToPerunApi(e.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const u=pr();u.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(Bp,u),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Et(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const s=this.apiRequestConfiguration.shouldHandleError(),u="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Lt.b)(d=>{d instanceof v.Zn&&u&&this.initAuthService.loadPrincipal()}),(0,Vt.K)(d=>{const l=d.error;if("MfaPrivilegeException"===l.type||"MfaRolePrivilegeException"===l.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===l.type).pipe((0,bt.w)(n=>n?("MfaRolePrivilegeException"===l.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,en._)(()=>l)));{this.handleInvalidAccessTokenError(d);const n=this.formatErrors(d,e);return void 0===n?(0,en._)(()=>d):(s&&this.notificator.showRPCError(n),(0,en._)(()=>n))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let s;console.error(e);const u=e.error;if(u.errorId&&(s=u),void 0!==s)return s.urlWithParams=t.urlWithParams,s.call=t.url,s.payload=t.body,s}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){if(!this.isLoggedIn()||"invalid_token"===e.error.error||null!=this.dialogRefSessionExpiration)return;const t=pr();this.dialogRefSessionExpiration=this.dialog.open(Bp,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG($r),f.LFG(Op),f.LFG(iu),f.LFG(mi),f.LFG(bn),f.LFG(Vp),f.LFG(kp),f.LFG(Co.Ct))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),Lp=(()=>{class r{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),cb=(()=>{class r{constructor(e,t,s,u){this.http=e,this.notificator=t,this.authService=s,this.storeService=u}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new v.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.get(s,{headers:this.getHeaders()}).pipe((0,Vt.K)(u=>this.formatErrors(u,s,null,t)))}put(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(u,d,{headers:this.getHeaders()}).pipe((0,Vt.K)(l=>this.formatErrors(l,u,d,s)))}post(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let l=this.getHeaders();return l=l.set("Content-Type","application/json; charset=utf-8"),this.http.post(u,d,{headers:l}).pipe((0,Vt.K)(n=>this.formatErrors(n,u,d,s)))}delete(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.delete(s,{headers:this.getHeaders()}).pipe((0,Vt.K)(u=>this.formatErrors(u,s,null,t)))}formatErrors(e,t,s,u){const d=e.error;return d.call=t,d.payload=s,u&&this.notificator.showRPCError(e.error),(0,en._)(d)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(iu),f.LFG($r),f.LFG(mi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),db=(()=>{class r{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),s=navigator.languages.map(l=>l.split("-")[0]),u=location.search.substring(1).split("&");let d=null;for(const l of u){const n=l.split("=");"lang"===n[0]&&(d=n[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:s&&t.includes(s[0])?s[0]:"en"}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Pr),f.LFG(mi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),xs=(()=>{class r{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const u of e)if(u.newApps.admin===t||u.newApps.profile===t||u.newApps.pwdReset===t||u.newApps.consolidator===t||u.newApps.linker===t)return u;return e.filter(u=>"default"===u.name)[0]||e[0]}getUrlForOtherApplication(e,t){const u=window.location.href.split("/"),d=u[0]+"//"+u[2],l=r.getBrandContainingDomain(this.storeService.getAppsConfig().brands,d);let n;if(l.newApps[e])n=l.newApps[e],"pwdReset"===e&&(n+=`?login-namespace=${t}`);else switch(n=l.oldGuiDomain+"/fed",e){case"admin":n+="/gui/";break;case"profile":n+="/profile/";break;case"pwdReset":n+=`/pwd-reset/?login-namespace=${t}`}return n}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(mi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ru=(()=>{class r{getErrorKey(e){switch(e.name.split("Exception")[0]){case"PasswordDoesntMatch":return"passwordDoesntMatchError";case"PasswordChangeFailed":return"passwordChangeFailedError";case"PasswordCreationFailed":default:return"passwordCreationFailedError";case"PasswordDeletionFailed":return"passwordDeletionFailedError";case"LoginNotExists":return"loginNotExistsError";case"PasswordStrengthFailed":return"passwordStrengthFailedError";case"PasswordOperationTimeout":return"passwordOperationTimeoutError"}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),au=(()=>{class r{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.Qsj),f.Y36(f.SBq))},r.\u0275dir=f.lG2({type:r}),r})(),Ts=(()=>{class r extends au{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275dir=f.lG2({type:r,features:[f.qOj]}),r})();const Li=new f.OlP("NgValueAccessor"),Ss={provide:Li,useExisting:(0,f.Gpc)(()=>fr),multi:!0},hb=new f.OlP("CompositionEventMode");let fr=(()=>{class r extends au{constructor(e,t,s){super(e,t),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function WA(){const r=(0,M.q)()?(0,M.q)().getUserAgent():"";return/android (\d+)/.test(r.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.Qsj),f.Y36(f.SBq),f.Y36(hb,8))},r.\u0275dir=f.lG2({type:r,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&f.NdJ("input",function(u){return t._handleInput(u.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(u){return t._compositionEnd(u.target.value)})},features:[f._Bn([Ss]),f.qOj]}),r})();function Ra(r){return null==r||("string"==typeof r||Array.isArray(r))&&0===r.length}function $A(r){return null!=r&&"number"==typeof r.length}const gi=new f.OlP("NgValidators"),Pa=new f.OlP("NgAsyncValidators"),QA=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class mr{static min(a){return function Fp(r){return a=>{if(Ra(a.value)||Ra(r))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(Ra(a.value)||Ra(r))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>r?{max:{max:r,actual:a.value}}:null}}(a)}static required(a){return Up(a)}static requiredTrue(a){return function Np(r){return!0===r.value?null:{required:!0}}(a)}static email(a){return function fb(r){return Ra(r.value)||QA.test(r.value)?null:{email:!0}}(a)}static minLength(a){return function mb(r){return a=>Ra(a.value)||!$A(a.value)?null:a.value.length$A(a.value)&&a.value.length>r?{maxlength:{requiredLength:r,actualLength:a.value.length}}:null}(a)}static pattern(a){return function gb(r){if(!r)return Yl;let a,e;return"string"==typeof r?(e="","^"!==r.charAt(0)&&(e+="^"),e+=r,"$"!==r.charAt(r.length-1)&&(e+="$"),a=new RegExp(e)):(e=r.toString(),a=r),t=>{if(Ra(t.value))return null;const s=t.value;return a.test(s)?null:{pattern:{requiredPattern:e,actualValue:s}}}}(a)}static nullValidator(a){return null}static compose(a){return $p(a)}static composeAsync(a){return KA(a)}}function Up(r){return Ra(r.value)?{required:!0}:null}function Yl(r){return null}function zp(r){return null!=r}function Gp(r){return(0,f.QGY)(r)?(0,Ei.D)(r):r}function Wp(r){let a={};return r.forEach(e=>{a=null!=e?{...a,...e}:a}),0===Object.keys(a).length?null:a}function _b(r,a){return a.map(e=>e(r))}function JA(r){return r.map(a=>function YA(r){return!r.validate}(a)?a:e=>a.validate(e))}function $p(r){if(!r)return null;const a=r.filter(zp);return 0==a.length?null:function(e){return Wp(_b(e,a))}}function bb(r){return null!=r?$p(JA(r)):null}function KA(r){if(!r)return null;const a=r.filter(zp);return 0==a.length?null:function(e){return hp(_b(e,a).map(Gp)).pipe((0,pt.U)(Wp))}}function Cb(r){return null!=r?KA(JA(r)):null}function ZA(r,a){return null===r?[a]:Array.isArray(r)?[...r,a]:[r,a]}function XA(r){return r._rawValidators}function e0(r){return r._rawAsyncValidators}function wb(r){return r?Array.isArray(r)?r:[r]:[]}function Qp(r,a){return Array.isArray(r)?r.includes(a):r===a}function Jl(r,a){const e=wb(a);return wb(r).forEach(s=>{Qp(e,s)||e.push(s)}),e}function t0(r,a){return wb(a).filter(e=>!Qp(r,e))}class Yp{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(a){this._rawValidators=a||[],this._composedValidatorFn=bb(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=Cb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class xi extends Yp{get formDirective(){return null}get path(){return null}}class Fn extends Yp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Jp{constructor(a){this._cd=a}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let wo=(()=>{class r extends Jp{constructor(e){super(e)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Fn,2))},r.\u0275dir=f.lG2({type:r,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&f.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[f.qOj]}),r})(),Kp=(()=>{class r extends Jp{constructor(e){super(e)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(xi,10))},r.\u0275dir=f.lG2({type:r,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&f.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[f.qOj]}),r})();const Wi="VALID",su="INVALID",Ia="PENDING",Kl="DISABLED";function $i(r){return(lu(r)?r.validators:r)||null}function Tb(r){return Array.isArray(r)?bb(r):r||null}function Zl(r,a){return(lu(a)?a.asyncValidators:r)||null}function Sb(r){return Array.isArray(r)?Cb(r):r||null}function lu(r){return null!=r&&!Array.isArray(r)&&"object"==typeof r}function cu(r,a,e){const t=r.controls;if(!(a?Object.keys(t):t).length)throw new f.vHH(1e3,"");if(!t[e])throw new f.vHH(1001,"")}function tf(r,a,e){r._forEachChild((t,s)=>{if(void 0===e[s])throw new f.vHH(1002,"")})}class Xl{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=Tb(this._rawValidators),this._composedAsyncValidatorFn=Sb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===Wi}get invalid(){return this.status===su}get pending(){return this.status==Ia}get disabled(){return this.status===Kl}get enabled(){return this.status!==Kl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=Tb(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=Sb(a)}addValidators(a){this.setValidators(Jl(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(Jl(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(t0(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(t0(a,this._rawAsyncValidators))}hasValidator(a){return Qp(this._rawValidators,a)}hasAsyncValidator(a){return Qp(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=Ia,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Kl,this.errors=null,this._forEachChild(t=>{t.disable({...a,onlySelf:!0})}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Wi,this._forEachChild(t=>{t.enable({...a,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Wi||this.status===Ia)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Kl:Wi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=Ia,this._hasOwnPendingAsyncValidator=!0;const e=Gp(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){let e=a;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,s)=>t&&t._find(s),this)}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new f.vpe,this.statusChanges=new f.vpe}_calculateStatus(){return this._allControlsDisabled()?Kl:this.errors?su:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ia)?Ia:this._anyControlsHaveStatus(su)?su:Wi}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){lu(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(a){return null}}class du extends Xl{constructor(a,e,t){super($i(e),Zl(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){tf(this,0,a),Object.keys(a).forEach(t=>{cu(this,!0,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{const s=this.controls[t];s&&s.patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,s)=>{t.reset(a[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=e.getRawValue(),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&a(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,s)=>((t.enabled||this.disabled)&&(e[s]=t.value),e))}_reduceChildren(a,e){let t=a;return this._forEachChild((s,u)=>{t=e(t,s,u)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null}}function uu(r,a){return[...a.path,r]}function yo(r,a){Nn(r,a),a.valueAccessor.writeValue(r.value),r.disabled&&a.valueAccessor.setDisabledState?.(!0),function CE(r,a){a.valueAccessor.registerOnChange(e=>{r._pendingValue=e,r._pendingChange=!0,r._pendingDirty=!0,"change"===r.updateOn&&Eb(r,a)})}(r,a),function p0(r,a){const e=(t,s)=>{a.valueAccessor.writeValue(t),s&&a.viewToModelUpdate(t)};r.registerOnChange(e),a._registerOnDestroy(()=>{r._unregisterOnChange(e)})}(r,a),function h0(r,a){a.valueAccessor.registerOnTouched(()=>{r._pendingTouched=!0,"blur"===r.updateOn&&r._pendingChange&&Eb(r,a),"submit"!==r.updateOn&&r.markAsTouched()})}(r,a),function nf(r,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};r.registerOnDisabledChange(e),a._registerOnDestroy(()=>{r._unregisterOnDisabledChange(e)})}}(r,a)}function Un(r,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),hu(r,a),r&&(a._invokeOnDestroyCallbacks(),r._registerOnCollectionChange(()=>{}))}function ec(r,a){r.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function Nn(r,a){const e=XA(r);null!==a.validator?r.setValidators(ZA(e,a.validator)):"function"==typeof e&&r.setValidators([e]);const t=e0(r);null!==a.asyncValidator?r.setAsyncValidators(ZA(t,a.asyncValidator)):"function"==typeof t&&r.setAsyncValidators([t]);const s=()=>r.updateValueAndValidity();ec(a._rawValidators,s),ec(a._rawAsyncValidators,s)}function hu(r,a){let e=!1;if(null!==r){if(null!==a.validator){const s=XA(r);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==a.validator);u.length!==s.length&&(e=!0,r.setValidators(u))}}if(null!==a.asyncValidator){const s=e0(r);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==a.asyncValidator);u.length!==s.length&&(e=!0,r.setAsyncValidators(u))}}}const t=()=>{};return ec(a._rawValidators,t),ec(a._rawAsyncValidators,t),e}function Eb(r,a){r._pendingDirty&&r.markAsDirty(),r.setValue(r._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(r._pendingValue),r._pendingChange=!1}function Mb(r,a){Nn(r,a)}function Pb(r,a){if(!r.hasOwnProperty("model"))return!1;const e=r.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function af(r,a){r._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function pu(r,a){if(!a)return null;let e,t,s;return Array.isArray(a),a.forEach(u=>{u.constructor===fr?e=u:function rf(r){return Object.getPrototypeOf(r.constructor)===Ts}(u)?t=u:s=u}),s||t||e||null}const Ib={provide:xi,useExisting:(0,f.Gpc)(()=>Va)},ka=(()=>Promise.resolve(null))();let Va=(()=>{class r extends xi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new f.vpe,this.form=new du({},bb(e),Cb(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){ka.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),yo(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){ka.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){ka.then(()=>{const t=this._findContainer(e.path),s=new du({});Mb(s,e),t.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){ka.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){ka.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,af(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(gi,10),f.Y36(Pa,10))},r.\u0275dir=f.lG2({type:r,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&f.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[f._Bn([Ib]),f.qOj]}),r})();function sf(r,a){const e=r.indexOf(a);e>-1&&r.splice(e,1)}function kb(r){return"object"==typeof r&&null!==r&&2===Object.keys(r).length&&"value"in r&&"disabled"in r}const Qr=class extends Xl{constructor(a=null,e,t){super($i(e),Zl(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),lu(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=kb(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){sf(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){sf(this._onDisabledChange,a)}_forEachChild(a){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(a){kb(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}},Vb=Qr,vE={provide:Fn,useExisting:(0,f.Gpc)(()=>lf)},C0=(()=>Promise.resolve(null))();let lf=(()=>{class r extends Fn{constructor(e,t,s,u,d){super(),this._changeDetectorRef=d,this.control=new Qr,this._registered=!1,this.update=new f.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=pu(0,u)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Pb(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){yo(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){C0.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,s=0!==t&&(0,f.D6c)(t);C0.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?uu(e,this._parent):[e]}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(xi,9),f.Y36(gi,10),f.Y36(Pa,10),f.Y36(Li,10),f.Y36(f.sBO,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[f._Bn([vE]),f.qOj,f.TTD]}),r})(),jb=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();const tc=new f.OlP("NgModelWithFormControlWarning"),w0={provide:Fn,useExisting:(0,f.Gpc)(()=>Es)};let Es=(()=>{class r extends Fn{constructor(e,t,s,u){super(),this._ngModelWarningConfig=u,this.update=new f.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=pu(0,s)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Un(t,this,!1),yo(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Pb(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Un(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return r._ngModelWarningSentOnce=!1,r.\u0275fac=function(e){return new(e||r)(f.Y36(gi,10),f.Y36(Pa,10),f.Y36(Li,10),f.Y36(tc,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[f._Bn([w0]),f.qOj,f.TTD]}),r})();const cf={provide:xi,useExisting:(0,f.Gpc)(()=>gr)};let gr=(()=>{class r extends xi{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new f.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(hu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return yo(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Un(e.control||null,e,!1),function m0(r,a){const e=r.indexOf(a);e>-1&&r.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,af(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,s=this.form.get(e.path);t!==s&&(Un(t||null,e),(r=>r instanceof Qr)(s)&&(yo(s,e),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Mb(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function Db(r,a){return hu(r,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Nn(this.form,this),this._oldForm&&hu(this._oldForm,this)}_checkFormPresent(){}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(gi,10),f.Y36(Pa,10))},r.\u0275dir=f.lG2({type:r,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&f.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[f._Bn([cf]),f.qOj,f.TTD]}),r})();const y0={provide:Fn,useExisting:(0,f.Gpc)(()=>uf)};let uf=(()=>{class r extends Fn{constructor(e,t,s,u,d){super(),this._ngModelWarningConfig=d,this._added=!1,this.update=new f.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=pu(0,u)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Pb(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return uu(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return r._ngModelWarningSentOnce=!1,r.\u0275fac=function(e){return new(e||r)(f.Y36(xi,13),f.Y36(gi,10),f.Y36(Pa,10),f.Y36(Li,10),f.Y36(tc,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[f._Bn([y0]),f.qOj,f.TTD]}),r})(),vo=(()=>{class r{constructor(){this._validator=Yl}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Yl,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,features:[f.TTD]}),r})();const S0={provide:gi,useExisting:(0,f.Gpc)(()=>Ao),multi:!0};let Ao=(()=>{class r extends vo{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=f.D6c,this.createValidator=e=>Up}enabled(e){return e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275dir=f.lG2({type:r,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&f.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[f._Bn([S0]),f.qOj]}),r})(),C=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[jb]}),r})(),y=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[C]}),r})(),x=(()=>{class r{static withConfig(e){return{ngModule:r,providers:[{provide:tc,useValue:e.warnOnNgModelWithFormControl}]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[C]}),r})();class T extends Xl{constructor(a,e,t){super($i(e),Zl(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[this._adjustIndex(a)]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){let t=this._adjustIndex(a);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){let s=this._adjustIndex(a);s<0&&(s=0),this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),this.controls.splice(s,1),e&&(this.controls.splice(s,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){tf(this,0,a),a.forEach((t,s)=>{cu(this,!1,s),this.at(s).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,s)=>{this.at(s)&&this.at(s).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,s)=>{t.reset(a[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>a.getRawValue())}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_adjustIndex(a){return a<0?a+this.length:a}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}_find(a){return this.at(a)??null}}function H(r){return!!r&&(void 0!==r.asyncValidators||void 0!==r.validators||void 0!==r.updateOn)}let k=(()=>{class r{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new r;return e.useNonNullable=!0,e}group(e,t=null){const s=this._reduceControls(e);let u={};return H(t)?u=t:null!==t&&(u.validators=t.validator,u.asyncValidators=t.asyncValidator),new du(s,u)}control(e,t,s){let u={};return this.useNonNullable?(H(t)?u=t:(u.validators=t,u.asyncValidators=s),new Qr(e,{...u,nonNullable:!0})):new Qr(e,t,s)}array(e,t,s){const u=e.map(d=>this._createControl(d));return new T(u,t,s)}_reduceControls(e){const t={};return Object.keys(e).forEach(s=>{t[s]=this._createControl(e[s])}),t}_createControl(e){return e instanceof Qr||e instanceof Xl?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:x}),r})();const se=pn({passive:!0});let be=(()=>{class r{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Sr.E;const t=Gt(e),s=this._monitoredElements.get(t);if(s)return s.subject;const u=new He.x,d="cdk-text-field-autofilled",l=n=>{"cdk-text-field-autofill-start"!==n.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===n.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",l,se),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:u,unlisten:()=>{t.removeEventListener("animationstart",l,se)}}),u}stopMonitoring(e){const t=Gt(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt),f.LFG(f.R0b))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ke=(()=>{class r{constructor(e,t,s,u){this._elementRef=e,this._platform=t,this._ngZone=s,this._destroyed=new He.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=d=>{this._hasFocus="focus"===d.type},this._document=u,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=yi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=yi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=Ye(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Tl(this._getWindow(),"resize").pipe(Lh(16),_t(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",s=this._platform.FIREFOX,u=s&&this._hasFocus,d=s?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";u&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(d);const l=e.scrollHeight-4;return e.classList.remove(d),u&&(e.style.marginBottom=t),l}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,s=t.value;if(!e&&this._minRows===this._previousMinRows&&s===this._previousValue)return;const u=this._measureScrollHeight(),d=Math.max(u,this._cachedPlaceholderHeight||0);t.style.height=`${d}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=s,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:s}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,s)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(Yt),f.Y36(f.R0b),f.Y36(M.K0,8))},r.\u0275dir=f.lG2({type:r,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&f.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),r})(),qe=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();const ve=new f.OlP("MAT_INPUT_VALUE_ACCESSOR"),Qe=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Ct=0;const Nt=Fy(class{constructor(r,a,e,t){this._defaultErrorStateMatcher=r,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new He.x}});let qn=(()=>{class r extends Nt{constructor(e,t,s,u,d,l,n,i,o,c){super(l,u,d,s),this._elementRef=e,this._platform=t,this._autofillMonitor=i,this._formField=c,this._uid="mat-input-"+Ct++,this.focused=!1,this.stateChanges=new He.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>zc().has(g)),this._iOSKeyupListener=g=>{const p=g.target;!p.value&&0===p.selectionStart&&0===p.selectionEnd&&(p.setSelectionRange(1,1),p.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,m=h.nodeName.toLowerCase();this._inputValueAccessor=n||h,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&o.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===m,this._isTextarea="textarea"===m,this._isInFormField=!!c,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ye(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(mr.required)??!1}set required(e){this._required=Ye(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&zc().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ye(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=t,t?s.setAttribute("placeholder",t):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){Qe.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(Yt),f.Y36(Fn,10),f.Y36(Va,8),f.Y36(gr,8),f.Y36(vl),f.Y36(ve,10),f.Y36(be),f.Y36(f.R0b),f.Y36(rp,8))},r.\u0275dir=f.lG2({type:r,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&f.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(f.Ikx("disabled",t.disabled)("required",t.required),f.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),f.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[f._Bn([{provide:qr,useExisting:r}]),f.qOj,f.TTD]}),r})(),xo=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[vl],imports:[qe,xa,$e,qe,xa]}),r})();function pf(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let ff=(()=>{class r{constructor(e,t,s,u,d){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=u,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",E(4147).i8)}close(){this.dialogRef.close()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr),f.Y36(Oi),f.Y36(iu),f.Y36(Bo),f.Y36(mi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),f._uU(6),f.ALo(7,"translate"),f.qZA(),f.TgZ(8,"input",2,3),f.NdJ("ngModelChange",function(u){return t.subject=u}),f.qZA(),f.YNc(10,pf,3,3,"mat-error",4),f.qZA(),f.TgZ(11,"mat-form-field")(12,"mat-label"),f._uU(13),f.ALo(14,"translate"),f.qZA(),f.TgZ(15,"textarea",5),f.NdJ("ngModelChange",function(u){return t.message=u}),f.ALo(16,"translate"),f._uU(17," "),f.qZA(),f.TgZ(18,"mat-hint"),f._uU(19),f.ALo(20,"translate"),f.qZA()()(),f.TgZ(21,"div",6)(22,"div",7)(23,"button",8),f.NdJ("click",function(){return t.close()}),f._uU(24),f.ALo(25,"translate"),f.qZA(),f.TgZ(26,"button",9),f.NdJ("click",function(){return t.sendBugReport()}),f._uU(27),f.ALo(28,"translate"),f.qZA()()()),2&e){const s=f.MAs(9);f.xp6(1),f.Oqu(f.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),f.xp6(5),f.Oqu(f.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),f.xp6(2),f.Q6J("ngModel",t.subject),f.xp6(2),f.Q6J("ngIf",s.invalid),f.xp6(3),f.Oqu(f.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),f.xp6(2),f.s9C("placeholder",f.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),f.Q6J("ngModel",t.message),f.xp6(4),f.Oqu(f.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),f.xp6(5),f.hij(" ",f.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),f.xp6(2),f.Q6J("disabled",s.invalid),f.xp6(1),f.hij(" ",f.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[M.O5,fr,wo,Ao,lf,Di,bs,Bl,xS,Aa,qn,Ea,Ma,Da,Ai],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),r})(),mf=(()=>{class r{transform(e,t,s){return e[`${s}_${t}`]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=f.Yjl({name:"localisedText",type:r,pure:!0}),r})(),gf=(()=>{class r{transform(e,t){return e["link_"+t]||e.link_en}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=f.Yjl({name:"localisedLink",type:r,pure:!0}),r})(),_f=(()=>{class r{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=f.Yjl({name:"footerLogoPath",type:r,pure:!0}),r})();function bf(r,a){if(1&r&&(f.TgZ(0,"a",13),f.ALo(1,"localisedLink"),f._UZ(2,"img",14),f.ALo(3,"footerLogoPath"),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw(3);f.Q6J("href",f.xi3(1,2,e,t.language),f.LSH),f.xp6(2),f.s9C("src",f.lcZ(3,5,e.logo),f.LSH)}}function Cf(r,a){if(1&r&&(f.TgZ(0,"span"),f._UZ(1,"img",14),f.ALo(2,"footerLogoPath"),f.qZA()),2&r){const e=f.oxw().$implicit;f.xp6(1),f.s9C("src",f.lcZ(2,1,e.logo),f.LSH)}}function wf(r,a){if(1&r&&(f.TgZ(0,"div"),f.YNc(1,bf,4,7,"a",11),f.ALo(2,"localisedLink"),f.YNc(3,Cf,3,3,"span",12),f.ALo(4,"localisedLink"),f.qZA()),2&r){const e=a.$implicit,t=f.oxw(3);f.xp6(1),f.Q6J("ngIf",f.xi3(2,2,e,t.language)),f.xp6(2),f.Q6J("ngIf",!f.xi3(4,5,e,t.language))}}const dH=function(r){return{"min-height":r}};function uH(r,a){if(1&r&&(f.TgZ(0,"div",10),f.YNc(1,wf,5,8,"div",5),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw();f.Q6J("ngStyle",f.VKq(2,dH,t.columnContentHeight+"px")),f.xp6(1),f.Q6J("ngForOf",e.elements)}}const To=function(r){return{color:r}};function hH(r,a){if(1&r&&(f.TgZ(0,"i",20),f._uU(1),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw(3);f.Q6J("ngStyle",f.VKq(2,To,t.linksTextColor)),f.xp6(1),f.hij(" ",e.icon," ")}}function pH(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"span",21),f.NdJ("click",function(){f.CHM(e);const s=f.oxw().$implicit,u=f.oxw(3);return f.KtG(u.openDialog(s.dialog))}),f._uU(1),f.ALo(2,"localisedText"),f.qZA()}if(2&r){const e=f.oxw().$implicit,t=f.oxw(3);f.Q6J("ngStyle",f.VKq(6,To,t.linksTextColor)),f.xp6(1),f.hij("",f.Dn7(2,2,e,t.language,"label")," ")}}function fH(r,a){if(1&r&&(f.TgZ(0,"a",22),f.ALo(1,"localisedLink"),f._uU(2),f.ALo(3,"localisedText"),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw(3);f.Q6J("href",f.xi3(1,3,e,t.language),f.LSH)("ngStyle",f.VKq(10,To,t.linksTextColor)),f.xp6(2),f.Oqu(f.Dn7(3,6,e,t.language,"label"))}}function mH(r,a){if(1&r&&(f.TgZ(0,"span",10),f._uU(1),f.ALo(2,"localisedText"),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw(3);f.Q6J("ngStyle",f.VKq(6,To,t.linksTextColor)),f.xp6(1),f.Oqu(f.Dn7(2,2,e,t.language,"label"))}}function gH(r,a){if(1&r&&(f.TgZ(0,"div",16),f.YNc(1,hH,2,4,"i",17),f.YNc(2,pH,3,8,"span",18),f.YNc(3,fH,4,12,"a",19),f.ALo(4,"localisedLink"),f.YNc(5,mH,3,8,"span",9),f.ALo(6,"localisedLink"),f.qZA()),2&r){const e=a.$implicit,t=f.oxw(3);f.xp6(1),f.Q6J("ngIf",e.icon),f.xp6(1),f.Q6J("ngIf",e.dialog),f.xp6(1),f.Q6J("ngIf",f.xi3(4,4,e,t.language)&&!e.dialog),f.xp6(2),f.Q6J("ngIf",!f.xi3(6,7,e,t.language)&&!e.dialog)}}const _H=function(r){return{height:r}};function bH(r,a){if(1&r&&(f.TgZ(0,"div",10),f.YNc(1,gH,7,10,"div",15),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw();f.Q6J("ngStyle",f.VKq(2,_H,t.columnContentHeight+"px")),f.xp6(1),f.Q6J("ngForOf",e.elements)}}function CH(r,a){if(1&r&&(f.TgZ(0,"div",7)(1,"h6",8),f._uU(2),f.ALo(3,"localisedText"),f.qZA(),f.YNc(4,uH,2,4,"div",9),f.YNc(5,bH,2,4,"div",9),f.qZA()),2&r){const e=a.$implicit,t=f.oxw();f.ekj("my-auto",t.containsLogos),f.xp6(1),f.Q6J("ngStyle",f.VKq(10,To,t.headersTextColor)),f.xp6(1),f.hij(" ",f.Dn7(3,6,e,t.language,"title")," "),f.xp6(2),f.Q6J("ngIf",e.logos),f.xp6(1),f.Q6J("ngIf",e.elements&&!e.logos)}}function wH(r,a){if(1&r&&(f.TgZ(0,"span")(1,"a",6),f._uU(2),f.qZA()()),2&r){const e=a.$implicit,t=a.index,s=f.oxw();f.xp6(1),f.Q6J("href",e.url,f.LSH)("ngStyle",f.VKq(3,To,s.copyrightTextColor)),f.xp6(1),f.Oqu(t?", "+e.name:e.name)}}const yH=function(r){return{background:r}};let IE=(()=>{class r{constructor(e,t,s,u){this.storeService=e,this.translateService=t,this.utilsService=s,this.dialog=u,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="N/A",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=E(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=E(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(e=>{const t=e.match("\\bVersion:\\s*([^,\\s]+)");null!==t&&(this.backendVersion=t[1])}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(e){const t=pr();"reportIssue"===e&&(t.width="550px",this.dialog.open(ff,t))}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(mi),f.Y36(Oi),f.Y36(ea),f.Y36(bn))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(f.TgZ(0,"footer",0)(1,"div",1),f.YNc(2,CH,6,12,"div",2),f.qZA(),f._UZ(3,"hr",3),f.TgZ(4,"div",4),f._uU(5),f.YNc(6,wH,3,5,"span",5),f._uU(7,", web application: "),f.TgZ(8,"a",6),f._uU(9),f.qZA(),f._uU(10,", server: "),f.TgZ(11,"a",6),f._uU(12),f.qZA()()()),2&e&&(f.Q6J("ngStyle",f.VKq(11,yH,t.bgColor)),f.xp6(2),f.Q6J("ngForOf",t.footerColumns),f.xp6(2),f.Q6J("ngStyle",f.VKq(13,To,t.copyrightTextColor)),f.xp6(1),f.hij(" \xa9 ",t.currentYear," Copyright: "),f.xp6(1),f.Q6J("ngForOf",t.copyrightItems),f.xp6(2),f.Q6J("href",t.githubRepository,f.LSH)("ngStyle",f.VKq(15,To,t.copyrightTextColor)),f.xp6(1),f.Oqu(t.guiVersion),f.xp6(2),f.Q6J("href",t.githubBackendRepository,f.LSH)("ngStyle",f.VKq(17,To,t.copyrightTextColor)),f.xp6(1),f.Oqu(t.backendVersion))},dependencies:[M.sg,M.O5,M.PC,mf,gf,_f],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),r})(),vH=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez]}),r})(),kE=(()=>{class r{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const s=this.storage.getProperty("custom_labels");if(s)for(const u of s)if(u.label===e)return u[t];return e}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Oi,16),f.Y36(mi,16))},r.\u0275pipe=f.Yjl({name:"customTranslate",type:r,pure:!0}),r})();function AH(r,a){if(1&r&&(f.O4$(),f._UZ(0,"circle",4)),2&r){const e=f.oxw(),t=f.MAs(1);f.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),f.uIk("r",e._getCircleRadius())}}function xH(r,a){if(1&r&&(f.O4$(),f._UZ(0,"circle",4)),2&r){const e=f.oxw(),t=f.MAs(1);f.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),f.uIk("r",e._getCircleRadius())}}const SH=ar(class{constructor(r){this._elementRef=r}},"primary"),EH=new f.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function MH(){return{diameter:100}}});class Yr extends SH{constructor(a,e,t,s,u,d,l,n){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=wt.w0.EMPTY,this.mode="determinate";const i=Yr._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),i.has(t.head)||i.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===s&&!!u&&!u._forceAnimations,"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),u&&(u.color&&(this.color=this.defaultColor=u.color),u.diameter&&(this.diameter=u.diameter),u.strokeWidth&&(this.strokeWidth=u.strokeWidth)),e.isBrowser&&e.SAFARI&&l&&d&&n&&(this._resizeSubscription=l.change(150).subscribe(()=>{"indeterminate"===this.mode&&n.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=yi(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=yi(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,yi(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=$c(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){const e=50*(a.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Yr._diameters;let s=t.get(a);if(!s||!s.has(e)){const u=this._document.createElement("style");u.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),u.textContent=this._getAnimationText(),a.appendChild(u),s||(s=new Set,t.set(a,s)),s.add(e)}}_getAnimationText(){const a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Yr._diameters=new WeakMap,Yr.\u0275fac=function(a){return new(a||Yr)(f.Y36(f.SBq),f.Y36(Yt),f.Y36(M.K0,8),f.Y36(f.QbO,8),f.Y36(EH),f.Y36(f.sBO),f.Y36(Ur),f.Y36(f.R0b))},Yr.\u0275cmp=f.Xpm({type:Yr,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(f.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),f.Udp("width",e.diameter,"px")("height",e.diameter,"px"),f.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[f.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(f.O4$(),f.TgZ(0,"svg",0,1),f.YNc(2,AH,1,11,"circle",2),f.YNc(3,xH,1,9,"circle",3),f.qZA()),2&a&&(f.Udp("width",e.diameter,"px")("height",e.diameter,"px"),f.Q6J("ngSwitch","indeterminate"===e.mode),f.uIk("viewBox",e._getViewBox()),f.xp6(2),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngSwitchCase",!1))},dependencies:[M.RF,M.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let yf=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,M.ez,$e]}),r})(),eC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[jn,M.ez]}),r})(),HH=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,xa,_o,x,xo,ys,yf,jn,eC]}),r})();class RH{isErrorState(a){return!(!a?.invalid||!a?.dirty)}}const PH=(r,a,e,t=!1,s=500)=>u=>(0,Oh.H)(s).pipe((0,bt.w)(()=>(e.dontHandleErrorForNext(),r&&"No namespace"!==r?a.checkPasswordStrength({password:u.value,namespace:r},t):(0,Ie.of)(null))),(0,pt.U)(()=>null),(0,Vt.K)(d=>{const l={backendError:d.message.substring(d.message.indexOf(":")+1)};return(0,Ie.of)(l)}));function IH(r,a){1&r&&f._UZ(0,"mat-spinner",12),2&r&&f.Q6J("diameter",18)}function kH(r,a){if(1&r&&(f.TgZ(0,"mat-icon",13),f._uU(1," error "),f.qZA()),2&r){const e=f.oxw();f.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function VH(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function BH(r,a){if(1&r&&(f.TgZ(0,"mat-error",14),f._uU(1),f.qZA()),2&r){const e=f.oxw();f.Q6J("matTooltip",e.getErrorTooltip()),f.xp6(1),f.Oqu(e.getErrorTooltip())}}function OH(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function LH(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let jH=(()=>{class r{constructor(e,t,s){this.translator=e,this.usersManagerService=t,this.store=s,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new RH,this.allPasswordRequirements=this.store.getProperty("password_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const t=e.userAttributes.find(s=>"preferredLanguage"===s.friendlyName);this.language=t?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}changeHelp(){this.passwordRequirement=this.allPasswordRequirements[this.namespace],this.passwordRequirement||(this.passwordRequirement=this.allPasswordRequirements.default)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Oi),f.Y36(vn),f.Y36(mi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",language:"language"},features:[f.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(f.TgZ(0,"div",0)(1,"mat-form-field",1),f._UZ(2,"input",2),f.ALo(3,"translate"),f.YNc(4,IH,1,1,"mat-spinner",3),f.TgZ(5,"mat-icon",4),f.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),f._uU(6),f.qZA(),f.YNc(7,kH,2,2,"mat-icon",5),f.YNc(8,VH,3,3,"mat-error",6),f.YNc(9,BH,2,2,"mat-error",7),f.qZA(),f.TgZ(10,"mat-form-field",8)(11,"mat-label"),f._uU(12),f.ALo(13,"translate"),f.qZA(),f._UZ(14,"input",9),f.TgZ(15,"mat-icon",4),f.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),f._uU(16),f.qZA(),f.YNc(17,OH,3,3,"mat-error",6),f.YNc(18,LH,3,3,"mat-error",6),f.qZA(),f.TgZ(19,"perun-web-apps-alert",10),f._UZ(20,"div",11),f.qZA()()),2&e&&(f.Q6J("formGroup",t.formGroup),f.xp6(1),f.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled||t.tooltipPwdDisabledForNamespace),f.xp6(1),f.s9C("placeholder",f.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),f.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),f.xp6(2),f.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),f.xp6(2),f.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),f.xp6(1),f.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),f.xp6(1),f.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),f.xp6(1),f.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),f.xp6(3),f.Oqu(f.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),f.xp6(2),f.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),f.xp6(2),f.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),f.xp6(1),f.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),f.xp6(1),f.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),f.xp6(2),f.Q6J("innerHTML",t.passwordRequirement,f.oJD))},dependencies:[M.O5,bs,Bl,Aa,lr,jd,fr,wo,Kp,Ao,gr,uf,qn,Yr,Gr,Ha,Ai],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),r})();function $H(r,a){1&r&&f._UZ(0,"mat-spinner",7)}function QH(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function YH(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function JH(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),f._uU(3),f.ALo(4,"translate"),f.qZA(),f.TgZ(5,"input",9,10),f.NdJ("ngModelChange",function(s){f.CHM(e);const u=f.oxw();return f.KtG(u.subject=s)}),f.qZA(),f.YNc(7,QH,3,3,"mat-error",11),f.qZA(),f.TgZ(8,"mat-form-field")(9,"mat-label"),f._uU(10),f.ALo(11,"translate"),f.qZA(),f.TgZ(12,"textarea",12,13),f.NdJ("ngModelChange",function(s){f.CHM(e);const u=f.oxw();return f.KtG(u.message=s)}),f.ALo(14,"translate"),f._uU(15," "),f.qZA(),f.YNc(16,YH,3,3,"mat-error",11),f.qZA()()}if(2&r){const e=f.MAs(6),t=f.MAs(13),s=f.oxw();f.xp6(3),f.Oqu(f.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),f.xp6(2),f.Q6J("ngModel",s.subject),f.xp6(2),f.Q6J("ngIf",e.invalid),f.xp6(3),f.Oqu(f.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),f.xp6(2),f.s9C("placeholder",f.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),f.Q6J("ngModel",s.message),f.xp6(4),f.Q6J("ngIf",t.invalid)}}let KH=(()=>{class r{constructor(e,t,s,u,d,l){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=u,this.data=d,this.storeService=l,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const s=/"password":".+?"/;let u=JSON.stringify(this.data.error.payload);u=u.replace(s,'"password":"####"'),t=t.concat("Payload:\n"+u+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",E(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr),f.Y36(Oi),f.Y36(iu),f.Y36(Bo),f.Y36(Sa),f.Y36(mi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.YNc(3,$H,1,0,"mat-spinner",1),f.YNc(4,JH,17,13,"div",2),f.TgZ(5,"div",3)(6,"div",4)(7,"button",5),f.NdJ("click",function(){return t.dialogRef.close()}),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.TgZ(10,"button",6),f.NdJ("click",function(){return t.sendBugReport()}),f._uU(11),f.ALo(12,"translate"),f.qZA()()()),2&e&&(f.xp6(1),f.Oqu(f.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),f.xp6(2),f.Q6J("ngIf",t.loading),f.xp6(1),f.Q6J("ngIf",!t.loading),f.xp6(4),f.hij(" ",f.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),f.xp6(2),f.Q6J("disabled",""===t.message||""===t.subject||t.loading),f.xp6(1),f.hij(" ",f.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[M.O5,Ea,Ma,Da,Di,bs,Bl,Aa,fr,wo,Ao,lf,qn,Yr,Ai],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),r})(),ZH=(()=>{class r{constructor(e,t,s){this.dialogRef=e,this.dialog=t,this.data=s}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=pr();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(KH,e)}),this.dialogRef.close()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr),f.Y36(bn),f.Y36(Sa))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.qZA(),f.TgZ(2,"div",1),f._uU(3),f.qZA(),f.TgZ(4,"div",2)(5,"div",3)(6,"button",4),f.NdJ("click",function(){return t.onBugReportClick()}),f._uU(7),f.ALo(8,"translate"),f.qZA(),f.TgZ(9,"button",5),f.NdJ("click",function(){return t.onCloseClick()}),f._uU(10),f.ALo(11,"translate"),f.qZA()()()),2&e&&(f.xp6(1),f.Oqu(t.data.title),f.xp6(2),f.hij(" ",t.data.description,"\n"),f.xp6(3),f.Q6J("hidden","error"!==t.data.type),f.xp6(1),f.hij(" ",f.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),f.xp6(3),f.hij(" ",f.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Ea,Ma,Da,Di,Ai]}),r})();function _R(r,a){1&r&&(f.TgZ(0,"mat-error",8),f._uU(1),f.ALo(2,"translate"),f.ALo(3,"customTranslate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,f.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class So{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Vb(null,[mr.required,mr.pattern(So.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const a=this.data.attribute?.value??[],e=this.sshControl.value;a.includes(e)||a.push(e),this.data.attribute.value=a,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{a.pop()})}}function AR(r,a){if(1&r&&(f.TgZ(0,"div",9),f._UZ(1,"perun-web-apps-notification",10),f.qZA()),2&r){const e=a.$implicit;f.xp6(1),f.Q6J("data",e)("inDialog",!0)}}function xR(r,a){if(1&r&&(f.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),f.YNc(2,AR,2,2,"div",8),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.Q6J("cdkVirtualForOf",e.notifications)}}function TR(r,a){1&r&&(f.TgZ(0,"perun-web-apps-alert",11),f._uU(1),f.ALo(2,"translate"),f.ALo(3,"customTranslate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,f.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}So.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],So.sshKeyPattern="^("+So.allowedSshKeys.join("|")+").+$",So.\u0275fac=function(a){return new(a||So)(f.Y36(hr),f.Y36(Sa),f.Y36(vr))},So.\u0275cmp=f.Xpm({type:So,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(a,e){1&a&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.ALo(3,"customTranslate"),f.qZA(),f.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),f._UZ(7,"textarea",3),f.ALo(8,"translate"),f.ALo(9,"customTranslate"),f.qZA(),f.YNc(10,_R,4,5,"mat-error",4),f.qZA()(),f.TgZ(11,"div",5)(12,"button",6),f.NdJ("click",function(){return e.onCancel()}),f._uU(13),f.ALo(14,"translate"),f.ALo(15,"customTranslate"),f.qZA(),f.TgZ(16,"button",7),f.NdJ("click",function(){return e.onSubmit()}),f._uU(17),f.ALo(18,"translate"),f.ALo(19,"customTranslate"),f.qZA()()),2&a&&(f.xp6(1),f.Oqu(f.lcZ(2,7,f.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),f.xp6(6),f.s9C("placeholder",f.lcZ(8,11,f.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),f.Q6J("formControl",e.sshControl),f.xp6(3),f.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),f.xp6(3),f.hij(" ",f.lcZ(14,15,f.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),f.xp6(3),f.Q6J("disabled",e.sshControl.invalid),f.xp6(1),f.hij(" ",f.lcZ(18,19,f.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[M.O5,fr,wo,Ao,Di,bs,Bl,Es,ke,qn,Ea,Ma,Da,Ai,kE],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let BE=(()=>{class r{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr),f.Y36(Lp))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.ALo(3,"customTranslate"),f.qZA(),f.YNc(4,xR,3,1,"div",1),f.YNc(5,TR,4,5,"perun-web-apps-alert",2),f.TgZ(6,"div",3)(7,"button",4),f.NdJ("click",function(){return t.onClear()}),f._uU(8),f.ALo(9,"translate"),f.ALo(10,"customTranslate"),f.qZA(),f.TgZ(11,"button",5),f.NdJ("click",function(){return t.onCancel()}),f._uU(12),f.ALo(13,"translate"),f.ALo(14,"customTranslate"),f.qZA()()),2&e&&(f.xp6(1),f.Oqu(f.lcZ(2,5,f.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),f.xp6(3),f.Q6J("ngIf",0!==t.notifications.length),f.xp6(1),f.Q6J("ngIf",0===t.notifications.length),f.xp6(3),f.hij(" ",f.lcZ(9,9,f.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),f.xp6(4),f.hij(" ",f.lcZ(13,13,f.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),r})();var bu=(()=>{return(r=bu||(bu={})).Admin="admin",r.Profile="profile",r.PwdReset="pwdReset",r.Consolidator="consolidator",r.Linker="linker",bu;var r})();const SR=["*",[["mat-toolbar-row"]]],ER=["*","mat-toolbar-row"],MR=ar(class{constructor(r){this._elementRef=r}});let DR=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),r})(),HR=(()=>{class r extends MR{constructor(e,t,s){super(e),this._platform=t,this._document=s}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(Yt),f.Y36(M.K0))},r.\u0275cmp=f.Xpm({type:r,selectors:[["mat-toolbar"]],contentQueries:function(e,t,s){if(1&e&&f.Suo(s,DR,5),2&e){let u;f.iGM(u=f.CRH())&&(t._toolbarRows=u)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&f.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[f.qOj],ngContentSelectors:ER,decls:2,vars:0,template:function(e,t){1&e&&(f.F$t(SR),f.Hsn(0),f.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),r})(),OE=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})(),RR=0;const PR=lo(class{}),LE="mat-badge-content";let IR=(()=>{class r extends PR{constructor(e,t,s,u,d){super(),this._ngZone=e,this._elementRef=t,this._ariaDescriber=s,this._renderer=u,this._animationMode=d,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=RR++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=Ye(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=Ye(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(LE),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t)})}):e.classList.add(t),e}_updateRenderedContent(e){const t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${LE}`);for(const t of Array.from(e))t!==this._badgeElement&&t.remove()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.R0b),f.Y36(f.SBq),f.Y36(ag),f.Y36(f.Qsj),f.Y36(f.QbO,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&f.ekj("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t.content)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[f.qOj]}),r})(),kR=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[wl,$e,$e]}),r})();const I0=function(r){return{color:r}};function VR(r,a){if(1&r&&(f.TgZ(0,"button",8),f.ALo(1,"translate"),f.TgZ(2,"mat-icon",4),f._uU(3," apps "),f.qZA()()),2&r){const e=f.oxw(),t=f.MAs(2);f.Q6J("matMenuTriggerFor",t)("matTooltip",f.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),f.xp6(2),f.Q6J("ngStyle",f.VKq(5,I0,e.iconColor))}}function BR(r,a){if(1&r&&(f.TgZ(0,"span",9),f._uU(1),f.qZA()),2&r){const e=f.oxw();f.Q6J("ngStyle",f.VKq(6,I0,e.textColor)),f.xp6(1),f.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function OR(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"button",10),f.NdJ("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.onLogOut())}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&r&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"NAV.LOGOUT")," "))}let LR=(()=>{class r{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36($r))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(f.YNc(0,VR,4,7,"button",0),f.TgZ(1,"mat-menu",null,1)(3,"button",2),f.NdJ("click",function(){return t.redirectToUrl()})("auxclick",function(){return t.redirectToUrl()}),f.TgZ(4,"span"),f._uU(5),f.qZA()()(),f.TgZ(6,"button",3)(7,"mat-icon",4),f._uU(8," person "),f.qZA(),f.YNc(9,BR,2,8,"span",5),f.qZA(),f.TgZ(10,"mat-menu",null,6),f.YNc(12,OR,3,3,"button",7),f.qZA()),2&e){const s=f.MAs(11);f.Q6J("ngIf",t.url),f.xp6(5),f.Oqu(t.label),f.xp6(1),f.Q6J("matMenuTriggerFor",s),f.xp6(1),f.Q6J("ngStyle",f.VKq(6,I0,t.iconColor)),f.xp6(2),f.Q6J("ngIf",null!==t.user),f.xp6(3),f.Q6J("ngIf",t.logoutEnabled)}},dependencies:[M.O5,M.PC,Gr,dp,Ul,M_,Di,jd,Ai],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),r})(),jR=(()=>{class r extends sl{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const e=Object.assign({},this.queryParams);delete e.applicationFormItems,this.queryParams=e}}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275dir=f.lG2({type:r,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[f.qOj,f.TTD]}),r})();const Cu=function(r){return{color:r}};function FR(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"button",9),f.NdJ("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.onToggleSidenav())}),f.TgZ(1,"mat-icon"),f._uU(2,"menu"),f.qZA()()}if(2&r){const e=f.oxw();f.Q6J("ngStyle",f.VKq(1,Cu,e.iconColor))}}function UR(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),f._uU(3," language "),f.qZA()(),f.TgZ(4,"mat-menu",null,13)(6,"button",14),f.NdJ("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.changeLanguage())}),f._uU(7),f.ALo(8,"translate"),f.qZA()()()}if(2&r){const e=f.MAs(5),t=f.oxw();f.Q6J("ngStyle",f.VKq(6,Cu,t.textColor)),f.xp6(1),f.Q6J("matMenuTriggerFor",e),f.xp6(1),f.Q6J("ngStyle",f.VKq(8,Cu,t.iconColor)),f.xp6(5),f.hij(" ",f.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function NR(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"button",15),f.NdJ("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.showNotificationHistory())}),f.ALo(1,"translate"),f.TgZ(2,"mat-icon",16),f._uU(3),f.qZA()()}if(2&r){const e=f.oxw();f.Q6J("matTooltip",f.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),f.xp6(2),f.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),f.Q6J("ngStyle",f.VKq(7,Cu,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),f.xp6(1),f.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function qR(r,a){if(1&r&&f._UZ(0,"perun-web-apps-header-menu",17),2&r){const e=f.oxw();f.Q6J("url",e.otherAppUrl)("label",e.otherAppLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor)}}const zR=function(r){return{background:r}},GR=function(){return[]},WR=function(){return["/"]};let $R=(()=>{class r{constructor(e,t,s,u,d,l,n){this.storeService=e,this.sanitizer=t,this.translateService=s,this.otherApplicationService=u,this.notificationStorageService=d,this.dialog=l,this.route=n,this.sidenavToggle=new f.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(e="en"){return this.storeService.getProperty(this.otherApp===bu.Profile?"profile_label_en":"en"===e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===bu.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0)}(this.otherApp!==bu.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const e=pr();e.width="520px",this.dialog.open(BE,e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(mi),f.Y36(ti),f.Y36(Oi),f.Y36(xs),f.Y36(Lp),f.Y36(bn),f.Y36(Pr))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(e,t){1&e&&(f.TgZ(0,"mat-toolbar",0)(1,"div",1),f.YNc(2,FR,3,3,"button",2),f._UZ(3,"a",3),f.TgZ(4,"p",4),f._uU(5),f.qZA()(),f.TgZ(6,"div",5),f.YNc(7,UR,9,10,"div",6),f.YNc(8,NR,4,9,"button",7),f.YNc(9,qR,1,6,"perun-web-apps-header-menu",8),f.qZA()()),2&e&&(f.Q6J("ngStyle",f.VKq(11,zR,t.bgColor)),f.xp6(2),f.Q6J("ngIf",t.showToggle),f.xp6(1),f.Q6J("innerHTML",t.logo,f.oJD)("routerLink",t.disableLogo?f.DdM(13,GR):f.DdM(14,WR))("queryParams",t.route.snapshot.queryParams),f.xp6(1),f.Q6J("ngStyle",f.VKq(15,Cu,t.textColor)),f.xp6(1),f.hij(" ",t.label," "),f.xp6(1),f.Q6J("ngStyle",f.VKq(17,Cu,t.navTextColor)),f.xp6(1),f.Q6J("ngIf",t.showLanguageMenu),f.xp6(1),f.Q6J("ngIf",t.showNotifications),f.xp6(1),f.Q6J("ngIf",t.showHeaderMenu))},dependencies:[M.O5,M.PC,uh,Gr,dp,Ul,M_,Di,jd,HR,IR,LR,jR,Ai],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),r})();function QR(r,a){if(1&r&&(f.TgZ(0,"div",8),f._UZ(1,"div",9),f.qZA()),2&r){const e=f.oxw();f.xp6(1),f.Q6J("innerHTML",e.logo,f.oJD)}}function YR(r,a){if(1&r&&(f.TgZ(0,"div",10),f._UZ(1,"div",11)(2,"mat-icon",12),f.qZA()),2&r){const e=f.oxw();f.xp6(1),f.Q6J("innerHTML",e.logo,f.oJD)}}const JR=function(r){return{color:r}};function KR(r,a){if(1&r&&(f.TgZ(0,"p",13),f._uU(1),f.qZA()),2&r){const e=f.oxw();f.Q6J("ngStyle",f.VKq(2,JR,e.textColor)),f.xp6(1),f.hij(" ",e.headerTitle," ")}}const ZR=function(r,a){return{background:r,color:a}},XR=function(r,a){return{"min-height":r,"background-color":a}};let eP=(()=>{class r{constructor(e,t,s,u){this.storeService=e,this.sanitizer=t,this.preferredLangService=s,this.translateService=u,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(mi),f.Y36(ti),f.Y36(db),f.Y36(Oi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(f.TgZ(0,"div",0),f.YNc(1,QR,2,1,"div",1),f.YNc(2,YR,3,1,"div",2),f.YNc(3,KR,2,4,"p",3),f.qZA(),f.TgZ(4,"div",4)(5,"div",5)(6,"div",6),f._UZ(7,"router-outlet"),f.qZA(),f.TgZ(8,"div",7),f._UZ(9,"perun-web-apps-footer"),f.qZA()()()),2&e&&(f.Q6J("ngStyle",f.WLB(5,ZR,t.headerBackgroundColor,t.headerTextColor)),f.xp6(1),f.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),f.xp6(1),f.Q6J("ngIf","publications"===t.application),f.xp6(1),f.Q6J("ngIf",!!t.headerTitle),f.xp6(2),f.Q6J("ngStyle",f.WLB(8,XR,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[M.O5,M.PC,Gr,em,IE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),r})();function iP(r,a){if(1&r&&f._UZ(0,"perun-web-apps-password-form",4),2&r){const e=f.oxw();f.Q6J("formGroup",e.newPasswdForm)("namespace",e.namespace)("language",e.language)}}function nP(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"div")(1,"button",5),f.NdJ("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.onSubmit())}),f._uU(2),f.ALo(3,"translate"),f.qZA()()}if(2&r){const e=f.oxw();f.xp6(1),f.Q6J("disabled",e.newPasswdForm.invalid||e.newPasswdForm.pending),f.xp6(1),f.hij(" ",f.lcZ(3,2,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_BUTTON":"PAGES.PWD_RESET_PAGE.ACTIVATION_BUTTON")," ")}}function rP(r,a){if(1&r&&(f.TgZ(0,"div",6)(1,"perun-web-apps-alert",7),f._uU(2),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.hij(" ",e.successMsg," ")}}function aP(r,a){if(1&r&&(f.TgZ(0,"div",6)(1,"perun-web-apps-alert",8),f._uU(2),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.hij(" ",e.errorMsg," ")}}function oP(r,a){1&r&&f._UZ(0,"mat-spinner",9)}let sP=(()=>{class r{constructor(e,t,s,u,d,l){this.storeService=e,this.translate=t,this.apiRequestConfiguration=s,this.usersService=u,this.formBuilder=d,this.errorTranslate=l,this.loading=!1,this.success=!1,this.error=!1,this.language="en"}ngOnInit(){this.newPasswdForm=this.formBuilder.group({passwordCtrl:["",mr.required,[PH(this.namespace,this.usersService,this.apiRequestConfiguration,!this.authWithoutToken)]],passwordAgainCtrl:["",mr.required]},{validators:LA.passwordMatchValidator}),this.setLabels(this.translate.currentLang),this.translate.onLangChange.subscribe(e=>{this.language=e.lang,this.setLabels(this.language),this.successMsg=this.getMessage("success"),this.errorKey&&(this.errorMsg=this.getMessage(this.errorKey))})}onSubmit(){this.loading=!0,(0,Ie.of)(this.authWithoutToken).pipe((0,kt.z)(e=>function tP(r,a,e){return cn(()=>r()?a:e)}(()=>e,this.usersService.changePasswordForLogin({login:this.login,namespace:this.namespace,newPassword:this.newPasswdForm.value.passwordCtrl}),this.usersService.changeNonAuthzPasswordByToken({token:this.token,password:this.newPasswdForm.value.passwordCtrl},!0)))).subscribe({next:()=>{this.success=!0,this.successMsg=this.getMessage("success"),this.loading=!1},error:e=>{this.error=!0,this.errorKey=this.errorTranslate.getErrorKey(e),this.errorMsg=this.getMessage(this.errorKey),this.loading=!1}})}setLabels(e){this.labels=this.storeService.getProperty("en"===e?"password_labels":"password_labels_cs")}getMessage(e){const t=this.labels?.[this.namespace]?.[this.mode]?.[e];return t||this.labels.default[this.mode][e]}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(mi),f.Y36(Oi),f.Y36(Op),f.Y36(vn),f.Y36(k),f.Y36(ru))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-password-reset-form"]],inputs:{mode:"mode",namespace:"namespace",login:"login",token:"token",authWithoutToken:"authWithoutToken"},decls:5,vars:5,consts:[[3,"formGroup","namespace","language",4,"ngIf"],[4,"ngIf"],["class","mt-5",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"formGroup","namespace","language"],["mat-flat-button","","color","accent",1,"mx-auto","d-block",3,"disabled","click"],[1,"mt-5"],["alert_type","success"],["alert_type","error"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(f.YNc(0,iP,1,3,"perun-web-apps-password-form",0),f.YNc(1,nP,4,4,"div",1),f.YNc(2,rP,3,1,"div",2),f.YNc(3,aP,3,1,"div",2),f.YNc(4,oP,1,0,"mat-spinner",3)),2&e&&(f.Q6J("ngIf",!t.success&&!t.loading&&!t.error),f.xp6(1),f.Q6J("ngIf",!t.success&&!t.error&&!t.loading),f.xp6(1),f.Q6J("ngIf",t.success&&!t.loading),f.xp6(1),f.Q6J("ngIf",t.error&&!t.loading),f.xp6(1),f.Q6J("ngIf",t.loading))},dependencies:[M.O5,Di,Yr,Kp,gr,Ha,jH,Ai]}),r})(),lP=(()=>{class r{constructor(e){this.translate=e}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.invalidRequestMessage=this.translate.instant("PAGES.PWD_RESET_PAGE.INVALID_REQUEST")})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Oi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-invalid-request-alert"]],decls:2,vars:1,consts:[["alert_type","info",1,"alert-wrap"],[3,"innerHTML"]],template:function(e,t){1&e&&(f.TgZ(0,"perun-web-apps-alert",0),f._UZ(1,"div",1),f.qZA()),2&e&&(f.xp6(1),f.Q6J("innerHTML",t.invalidRequestMessage,f.oJD))},dependencies:[Ha],styles:[".alert-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),r})();function cP(r,a){if(1&r&&(f.O4$(),f.kcU(),f.TgZ(0,"p",9)(1,"em"),f._uU(2),f.ALo(3,"translate"),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.AsE("",f.lcZ(3,2,"PAGES.PWD_RESET_PAGE.LOGIN"),": ",e.login,"")}}function dP(r,a){if(1&r&&(f.O4$(),f.kcU(),f.TgZ(0,"p",9)(1,"em"),f._uU(2),f.ALo(3,"translate"),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.AsE("",f.lcZ(3,2,"PAGES.PWD_RESET_PAGE.NAMESPACE"),": ",e.namespace,"")}}function uP(r,a){if(1&r&&f._UZ(0,"perun-web-apps-password-reset-form",10),2&r){const e=f.oxw();f.Q6J("mode",e.mode)("namespace",e.namespace)("login",e.login)("token",e.token)("authWithoutToken",e.authWithoutToken)}}function hP(r,a){1&r&&f._UZ(0,"perun-web-apps-invalid-request-alert")}let pP=(()=>{class r{constructor(e,t,s){this.storeService=e,this.sanitizer=t,this.translateService=s}ngOnInit(){this.passwordResetLogo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("password_reset_logo")),this.setDescription(this.translateService.currentLang),this.translateService.onLangChange.subscribe(e=>{this.setDescription(e.lang)})}setDescription(e){const t=this.storeService.getProperty("en"===e?"password_labels":"password_labels_cs");this.description=t[this.namespace]?.[this.mode]?.description,this.description||(this.description=t.default[this.mode].description)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(mi),f.Y36(ti),f.Y36(Oi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-password-reset-page"]],inputs:{mode:"mode",token:"token",namespace:"namespace",login:"login",validToken:"validToken",authWithoutToken:"authWithoutToken"},decls:16,vars:9,consts:[[3,"innerHTML"],[1,"title-with-icon"],["xmlns","http://www.w3.org/2000/svg","width","30.000000pt","height","30.000000pt","viewBox","0 0 512.000000 512.000000","preserveAspectRatio","xMidYMid meet"],["transform","translate(0.000000,512.000000) scale(0.100000,-0.100000)","fill","#000000","stroke","none"],["d","M3530 5103 c-619 -30 -1162 -438 -1356 -1020 -115 -342 -107 -702 21-1035 l36 -92 -1100 -1101 c-605 -605 -1105 -1112 -1110 -1127 -8 -22 -5 -49 15 -125 116 -450 112 -436 146 -454 42 -22 513 -139 539 -134 16 4 122 103 287 268 144 145 262 265 262 267 4 51 29 293 32 295 2 2 70 10 151 18 200 19 193 13 213 213 8 81 17 150 19 152 2 2 67 10 145 18 77 7 149 18 159 23 37 20 44 44 60 194 l16 152 125 12 c69 6 136 12 150 12 18 1 98 75 320 296 l295 295 85 -33 c586 -230 1239 -83 1665 375 405 437 514 1079 275 1629 -122 280 -336 524 -606 690 -237 145 -559 226 -844 212z m201 -184 c307 -31 569 -152 790 -366 467 -452 542 -1155 182 -1697 -187 -280 -490 -487 -823 -561 -42 -9 -144 -19 -230 -22 -236 -8 -402 24 -613 119 -65 29 -96 38 -115 33 -17 -4 -139 -118 -332 -309 l-305 -304 -169 -16 c-224 -20 -214 -11 -233 -213 -8 -81 -16 -150 -18 -152 -2 -2 -68 -10 -147 -18 -148 -14 -182 -26 -197 -66 -5 -12 -15 -85 -22 -162 l-14 -140 -140 -14 c-77 -7 -149 -17 -162 -22 -41 -15 -51 -48 -68 -219 l-16 -165 -213 -213 -212 -213 -185 47 c-101 26 -185 49 -187 50 -2 1 -26 87 -53 191 l-49 188 1115 1115 c849 849 1115 1121 1115 1139 0 13 -18 62 -39 110 -40 90 -80 211 -103 316 -20 95 -17 400 5 505 55 255 171 473 354 661 250 257 570 397 934 408 26 0 93 -4 150 -10z"],["d","M3554 4120 c-201 -30 -366 -170 -424 -359 -14 -43 -20 -92 -20 -153 0 -389 394 -632 750 -461 78 38 189 151 227 233 158 336 -58 712 -427 743 -30 3 -78 1 -106 -3z m138 -181 c108 -23 190 -89 239 -192 37 -80 40 -177 7 -264 -30 -80 -112 -162 -193 -192 -121 -45 -270 -14 -358 75 -164 165 -121 440 83 544 72 37 142 46 222 29z"],["class","subtitle",4,"ngIf"],[3,"mode","namespace","login","token","authWithoutToken",4,"ngIf"],[4,"ngIf"],[1,"subtitle"],[3,"mode","namespace","login","token","authWithoutToken"]],template:function(e,t){1&e&&(f.TgZ(0,"div"),f._UZ(1,"div",0),f.TgZ(2,"div",1)(3,"h1"),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.O4$(),f.TgZ(6,"svg",2)(7,"g",3),f._UZ(8,"path",4)(9,"path",5),f.qZA()()(),f.YNc(10,cP,4,4,"p",6),f.YNc(11,dP,4,4,"p",6),f.kcU(),f.TgZ(12,"p"),f._uU(13),f.qZA(),f.YNc(14,uP,1,5,"perun-web-apps-password-reset-form",7),f.YNc(15,hP,1,0,"perun-web-apps-invalid-request-alert",8),f.qZA()),2&e&&(f.xp6(1),f.Q6J("innerHTML",t.passwordResetLogo,f.oJD),f.xp6(3),f.hij(" ",f.lcZ(5,7,"reset"===t.mode?"PAGES.PWD_RESET_PAGE.TITLE_RESET":"PAGES.PWD_RESET_PAGE.TITLE_ACTIVATION")," "),f.xp6(6),f.Q6J("ngIf",t.login),f.xp6(1),f.Q6J("ngIf",t.namespace),f.xp6(2),f.Oqu(t.description),f.xp6(1),f.Q6J("ngIf",t.validToken||t.authWithoutToken),f.xp6(1),f.Q6J("ngIf",!t.validToken&&!t.authWithoutToken))},dependencies:[M.O5,sP,lP,Ai],styles:[".title-with-icon[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:space-between}.subtitle[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px}"]}),r})();const fP=["footer"],mP=function(r){return{background:r}},gP=function(r){return{"min-height":r}};function _P(r,a){if(1&r&&(f.TgZ(0,"div"),f._UZ(1,"perun-web-apps-header",2),f.TgZ(2,"div",3)(3,"div",4),f._UZ(4,"perun-web-apps-password-reset-page",5),f.qZA(),f.TgZ(5,"div",null,6),f._UZ(7,"perun-web-apps-footer"),f.qZA()()()),2&r){const e=f.oxw();f.xp6(1),f.Q6J("showToggle",!1)("showHeaderMenu",!1)("showLanguageMenu",!0),f.xp6(1),f.Q6J("ngStyle",f.VKq(11,mP,e.contentBackgroundColor)),f.xp6(1),f.Q6J("ngStyle",f.VKq(13,gP,e.contentHeight)),f.xp6(1),f.Q6J("mode",e.mode)("token",e.token)("namespace",e.namespace)("login",e.login)("validToken",e.validToken)("authWithoutToken",e.authWithoutToken)}}function bP(r,a){1&r&&f._UZ(0,"perun-web-apps-login-screen-base",7),2&r&&f.Q6J("application","pwd-reset")}let CP=(()=>{class r{constructor(e,t,s,u,d,l,n,i){this.dialog=e,this.usersService=t,this.preferredLangService=s,this.translateService=u,this.store=d,this.attributesManagerService=l,this.changeDetector=n,this.initAuth=i,this.authWithoutToken=!1,this.contentHeight="calc(100vh - 84px)",this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color}ngOnInit(){this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),this.showLoginScreen=this.initAuth.isLoginScreenShown();const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e);const t=location.search.substr(1);this.mode="activation"===Pp("mode",t)?"activation":"reset",this.namespace=Pp("namespace",t),t.includes("token")?(this.token=Pp("token",t),this.usersService.checkPasswordResetRequestByTokenIsValid(this.token,!0).subscribe(()=>{this.validToken=!0},()=>{this.validToken=!1})):!this.isServiceAccess&&!this.showLoginScreen&&(this.authWithoutToken=!0,this.attributesManagerService.getLogins(this.store.getPerunPrincipal().userId).subscribe(s=>{const u=s.find(d=>d.friendlyNameParameter===this.namespace);this.login=u?String(u.value):""}))}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(bn),f.Y36(vn),f.Y36(db),f.Y36(Oi),f.Y36(mi),f.Y36(vr),f.Y36(f.sBO),f.Y36(Vp))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&f.Gf(fP,5),2&e){let s;f.iGM(s=f.CRH())&&(t.footer=s.first)}},decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngIf"],["id","nav-menu",3,"showToggle","showHeaderMenu","showLanguageMenu"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],[3,"mode","token","namespace","login","validToken","authWithoutToken"],["footer",""],[3,"application"]],template:function(e,t){1&e&&(f.YNc(0,_P,8,15,"div",0),f.YNc(1,bP,1,1,"ng-template",1)),2&e&&(f.Q6J("ngIf",!t.isServiceAccess&&!t.showLoginScreen),f.xp6(1),f.Q6J("ngIf",t.isServiceAccess||t.showLoginScreen))},dependencies:[M.O5,M.PC,IE,$R,eP,pP],styles:["#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}#content-inner[_ngcontent-%COMP%]{position:relative;padding-top:64px}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 450px){#content-wrap[_ngcontent-%COMP%]{max-width:400px;margin-left:auto;margin-right:auto}}"]}),r})();class wP{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}function jE(r){return new f.vHH(3e3,!1)}function t1(){return typeof window<"u"&&typeof window.document<"u"}function k0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ms(r){switch(r.length){case 0:return new go;case 1:return r[0];default:return new Vd(r)}}function FE(r,a,e,t,s=new Map,u=new Map){const d=[],l=[];let n=-1,i=null;if(t.forEach(o=>{const c=o.get("offset"),h=c==n,m=h&&i||new Map;o.forEach((g,p)=>{let w=p,R=g;if("offset"!==p)switch(w=a.normalizePropertyName(w,d),R){case"!":R=s.get(p);break;case On:R=u.get(p);break;default:R=a.normalizeStyleValue(p,w,R,d)}m.set(w,R)}),h||l.push(m),i=m,n=c}),d.length)throw function qP(r){return new f.vHH(3502,!1)}();return l}function V0(r,a,e,t){switch(a){case"start":r.onStart(()=>t(e&&B0(e,"start",r)));break;case"done":r.onDone(()=>t(e&&B0(e,"done",r)));break;case"destroy":r.onDestroy(()=>t(e&&B0(e,"destroy",r)))}}function B0(r,a,e){const u=O0(r.element,r.triggerName,r.fromState,r.toState,a||r.phaseName,e.totalTime??r.totalTime,!!e.disabled),d=r._data;return null!=d&&(u._data=d),u}function O0(r,a,e,t,s="",u=0,d){return{element:r,triggerName:a,fromState:e,toState:t,phaseName:s,totalTime:u,disabled:!!d}}function zn(r,a,e){let t=r.get(a);return t||r.set(a,t=e),t}function UE(r){const a=r.indexOf(":");return[r.substring(1,a),r.slice(a+1)]}let L0=(r,a)=>!1,NE=(r,a,e)=>[],qE=null;function j0(r){const a=r.parentNode||r.host;return a===qE?null:a}(k0()||typeof Element<"u")&&(t1()?(qE=(()=>document.documentElement)(),L0=(r,a)=>{for(;a;){if(a===r)return!0;a=j0(a)}return!1}):L0=(r,a)=>r.contains(a),NE=(r,a,e)=>{if(e)return Array.from(r.querySelectorAll(a));const t=r.querySelector(a);return t?[t]:[]});let ic=null,zE=!1;const GE=L0,WE=NE;let $E=(()=>{class r{validateStyleProperty(e){return function r1(r){ic||(ic=function a1(){return typeof document<"u"?document.body:null}()||{},zE=!!ic.style&&"WebkitAppearance"in ic.style);let a=!0;return ic.style&&!function n1(r){return"ebkit"==r.substring(1,6)}(r)&&(a=r in ic.style,!a&&zE&&(a="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in ic.style)),a}(e)}matchesElement(e,t){return!1}containsElement(e,t){return GE(e,t)}getParentElement(e){return j0(e)}query(e,t,s){return WE(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,t,s,u,d,l=[],n){return new go(s,u)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),F0=(()=>{class r{}return r.NOOP=new $E,r})();const U0="ng-enter",tC="ng-leave",iC="ng-trigger",nC=".ng-trigger",YE="ng-animating",N0=".ng-animating";function Ds(r){if("number"==typeof r)return r;const a=r.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:q0(parseFloat(a[1]),a[2])}function q0(r,a){return"s"===a?1e3*r:r}function rC(r,a,e){return r.hasOwnProperty("duration")?r:function l1(r,a,e){let s,u=0,d="";if("string"==typeof r){const l=r.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return a.push(jE()),{duration:0,delay:0,easing:""};s=q0(parseFloat(l[1]),l[2]);const n=l[3];null!=n&&(u=q0(parseFloat(n),l[4]));const i=l[5];i&&(d=i)}else s=r;if(!e){let l=!1,n=a.length;s<0&&(a.push(function yP(){return new f.vHH(3100,!1)}()),l=!0),u<0&&(a.push(function vP(){return new f.vHH(3101,!1)}()),l=!0),l&&a.splice(n,0,jE())}return{duration:s,delay:u,easing:d}}(r,a,e)}function vf(r,a={}){return Object.keys(r).forEach(e=>{a[e]=r[e]}),a}function JE(r){const a=new Map;return Object.keys(r).forEach(e=>{a.set(e,r[e])}),a}function Hs(r,a=new Map,e){if(e)for(let[t,s]of e)a.set(t,s);for(let[t,s]of r)a.set(t,s);return a}function ZE(r,a,e){return e?a+":"+e+";":""}function XE(r){let a="";for(let e=0;e{const u=G0(s);e&&!e.has(s)&&e.set(s,r.style[u]),r.style[u]=t}),k0()&&XE(r))}function nc(r,a){r.style&&(a.forEach((e,t)=>{const s=G0(t);r.style[s]=""}),k0()&&XE(r))}function Af(r){return Array.isArray(r)?1==r.length?r[0]:Zh(r):r}const z0=new RegExp("{{\\s*(.+?)\\s*}}","g");function eM(r){let a=[];if("string"==typeof r){let e;for(;e=z0.exec(r);)a.push(e[1]);z0.lastIndex=0}return a}function aC(r,a,e){const t=r.toString(),s=t.replace(z0,(u,d)=>{let l=a[d];return null==l&&(e.push(function xP(r){return new f.vHH(3003,!1)}()),l=""),l.toString()});return s==t?r:s}function oC(r){const a=[];let e=r.next();for(;!e.done;)a.push(e.value),e=r.next();return a}const u1=/-+([a-z0-9])/g;function G0(r){return r.replace(u1,(...a)=>a[1].toUpperCase())}function h1(r){return r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Gn(r,a,e){switch(a.type){case 7:return r.visitTrigger(a,e);case 0:return r.visitState(a,e);case 1:return r.visitTransition(a,e);case 2:return r.visitSequence(a,e);case 3:return r.visitGroup(a,e);case 4:return r.visitAnimate(a,e);case 5:return r.visitKeyframes(a,e);case 6:return r.visitStyle(a,e);case 8:return r.visitReference(a,e);case 9:return r.visitAnimateChild(a,e);case 10:return r.visitAnimateRef(a,e);case 11:return r.visitQuery(a,e);case 12:return r.visitStagger(a,e);default:throw function TP(r){return new f.vHH(3004,!1)}()}}function tM(r,a){return window.getComputedStyle(r)[a]}function b1(r,a){const e=[];return"string"==typeof r?r.split(/\s*,\s*/).forEach(t=>function C1(r,a,e){if(":"==r[0]){const n=function w1(r,a){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(r,e);if("function"==typeof n)return void a.push(n);r=n}const t=r.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function LP(r){return new f.vHH(3015,!1)}()),a;const s=t[1],u=t[2],d=t[3];a.push(iM(s,d));"<"==u[0]&&!("*"==s&&"*"==d)&&a.push(iM(d,s))}(t,e,a)):e.push(r),e}const dC=new Set(["true","1"]),uC=new Set(["false","0"]);function iM(r,a){const e=dC.has(r)||uC.has(r),t=dC.has(a)||uC.has(a);return(s,u)=>{let d="*"==r||r==s,l="*"==a||a==u;return!d&&e&&"boolean"==typeof s&&(d=s?dC.has(r):uC.has(r)),!l&&t&&"boolean"==typeof u&&(l=u?dC.has(a):uC.has(a)),d&&l}}const y1=new RegExp("s*:selfs*,?","g");function W0(r,a,e,t){return new v1(r).build(a,e,t)}class v1{constructor(a){this._driver=a}build(a,e,t){const s=new T1(e);return this._resetContextStyleTimingState(s),Gn(this,Af(a),s)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,s=e.depCount=0;const u=[],d=[];return"@"==a.name.charAt(0)&&e.errors.push(function EP(){return new f.vHH(3006,!1)}()),a.definitions.forEach(l=>{if(this._resetContextStyleTimingState(e),0==l.type){const n=l,i=n.name;i.toString().split(/\s*,\s*/).forEach(o=>{n.name=o,u.push(this.visitState(n,e))}),n.name=i}else if(1==l.type){const n=this.visitTransition(l,e);t+=n.queryCount,s+=n.depCount,d.push(n)}else e.errors.push(function MP(){return new f.vHH(3007,!1)}())}),{type:7,name:a.name,states:u,transitions:d,queryCount:t,depCount:s,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),s=a.options&&a.options.params||null;if(t.containsDynamicStyles){const u=new Set,d=s||{};t.styles.forEach(l=>{l instanceof Map&&l.forEach(n=>{eM(n).forEach(i=>{d.hasOwnProperty(i)||u.add(i)})})}),u.size&&(oC(u.values()),e.errors.push(function DP(r,a){return new f.vHH(3008,!1)}()))}return{type:0,name:a.name,style:t,options:s?{params:s}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Gn(this,Af(a.animation),e);return{type:1,matchers:b1(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:rc(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Gn(this,t,e)),options:rc(a.options)}}visitGroup(a,e){const t=e.currentTime;let s=0;const u=a.steps.map(d=>{e.currentTime=t;const l=Gn(this,d,e);return s=Math.max(s,e.currentTime),l});return e.currentTime=s,{type:3,steps:u,options:rc(a.options)}}visitAnimate(a,e){const t=function E1(r,a){if(r.hasOwnProperty("duration"))return r;if("number"==typeof r)return $0(rC(r,a).duration,0,"");const e=r;if(e.split(/\s+/).some(u=>"{"==u.charAt(0)&&"{"==u.charAt(1))){const u=$0(0,0,"");return u.dynamic=!0,u.strValue=e,u}const s=rC(e,a);return $0(s.duration,s.delay,s.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let s,u=a.styles?a.styles:Ne({});if(5==u.type)s=this.visitKeyframes(u,e);else{let d=a.styles,l=!1;if(!d){l=!0;const i={};t.easing&&(i.easing=t.easing),d=Ne(i)}e.currentTime+=t.duration+t.delay;const n=this.visitStyle(d,e);n.isEmptyStep=l,s=n}return e.currentAnimateTimings=null,{type:4,timings:t,style:s,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[],s=Array.isArray(a.styles)?a.styles:[a.styles];for(let l of s)"string"==typeof l?l===On?t.push(l):e.errors.push(new f.vHH(3002,!1)):t.push(JE(l));let u=!1,d=null;return t.forEach(l=>{if(l instanceof Map&&(l.has("easing")&&(d=l.get("easing"),l.delete("easing")),!u))for(let n of l.values())if(n.toString().indexOf("{{")>=0){u=!0;break}}),{type:6,styles:t,easing:d,offset:a.offset,containsDynamicStyles:u,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let s=e.currentTime,u=e.currentTime;t&&u>0&&(u-=t.duration+t.delay),a.styles.forEach(d=>{"string"!=typeof d&&d.forEach((l,n)=>{const i=e.collectedStyles.get(e.currentQuerySelector),o=i.get(n);let c=!0;o&&(u!=s&&u>=o.startTime&&s<=o.endTime&&(e.errors.push(function RP(r,a,e,t,s){return new f.vHH(3010,!1)}()),c=!1),u=o.startTime),c&&i.set(n,{startTime:u,endTime:s}),e.options&&function d1(r,a,e){const t=a.params||{},s=eM(r);s.length&&s.forEach(u=>{t.hasOwnProperty(u)||e.push(function AP(r){return new f.vHH(3001,!1)}())})}(l,e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function PP(){return new f.vHH(3011,!1)}()),t;let u=0;const d=[];let l=!1,n=!1,i=0;const o=a.steps.map(R=>{const J=this._makeStyleAst(R,e);let Te=null!=J.offset?J.offset:function S1(r){if("string"==typeof r)return null;let a=null;if(Array.isArray(r))r.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;a=parseFloat(t.get("offset")),t.delete("offset")}});else if(r instanceof Map&&r.has("offset")){const e=r;a=parseFloat(e.get("offset")),e.delete("offset")}return a}(J.styles),at=0;return null!=Te&&(u++,at=J.offset=Te),n=n||at<0||at>1,l=l||at0&&u{const Te=h>0?J==m?1:h*J:d[J],at=Te*w;e.currentTime=g+p.delay+at,p.duration=at,this._validateStyleAst(R,e),R.offset=Te,t.styles.push(R)}),t}visitReference(a,e){return{type:8,animation:Gn(this,Af(a.animation),e),options:rc(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:rc(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:rc(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,s=a.options||{};e.queryCount++,e.currentQuery=a;const[u,d]=function A1(r){const a=!!r.split(/\s*,\s*/).find(e=>":self"==e);return a&&(r=r.replace(y1,"")),r=r.replace(/@\*/g,nC).replace(/@\w+/g,e=>nC+"-"+e.slice(1)).replace(/:animating/g,N0),[r,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+u:u,zn(e.collectedStyles,e.currentQuerySelector,new Map);const l=Gn(this,Af(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:u,limit:s.limit||0,optional:!!s.optional,includeSelf:d,animation:l,originalSelector:a.selector,options:rc(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push(function BP(){return new f.vHH(3013,!1)}());const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:rC(a.timings,e.errors,!0);return{type:12,animation:Gn(this,Af(a.animation),e),timings:t,options:null}}}class T1{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function rc(r){return r?(r=vf(r)).params&&(r.params=function x1(r){return r?vf(r):null}(r.params)):r={},r}function $0(r,a,e){return{duration:r,delay:a,easing:e}}function Q0(r,a,e,t,s,u,d=null,l=!1){return{type:1,element:r,keyframes:a,preStyleProps:e,postStyleProps:t,duration:s,delay:u,totalTime:s+u,easing:d,subTimeline:l}}class hC{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const H1=new RegExp(":enter","g"),P1=new RegExp(":leave","g");function Y0(r,a,e,t,s,u=new Map,d=new Map,l,n,i=[]){return(new I1).buildKeyframes(r,a,e,t,s,u,d,l,n,i)}class I1{buildKeyframes(a,e,t,s,u,d,l,n,i,o=[]){i=i||new hC;const c=new J0(a,e,i,s,u,o,[]);c.options=n;const h=n.delay?Ds(n.delay):0;c.currentTimeline.delayNextStep(h),c.currentTimeline.setStyles([d],null,c.errors,n),Gn(this,t,c);const m=c.timelines.filter(g=>g.containsAnimation());if(m.length&&l.size){let g;for(let p=m.length-1;p>=0;p--){const w=m[p];if(w.element===e){g=w;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([l],null,c.errors,n)}return m.length?m.map(g=>g.buildKeyframes()):[Q0(e,[],[],[],0,h,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const s=e.createSubContext(a.options),u=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,s,s.options);u!=d&&e.transformIntoNewTimeline(d)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let u=e.currentTimeline.currentTime;const d=null!=t.duration?Ds(t.duration):null,l=null!=t.delay?Ds(t.delay):null;return 0!==d&&a.forEach(n=>{const i=e.appendInstructionToTimeline(n,d,l);u=Math.max(u,i.duration+i.delay)}),u}visitReference(a,e){e.updateOptions(a.options,!0),Gn(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let s=e;const u=a.options;if(u&&(u.params||u.delay)&&(s=e.createSubContext(u),s.transformIntoNewTimeline(),null!=u.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=pC);const d=Ds(u.delay);s.delayNextStep(d)}a.steps.length&&(a.steps.forEach(d=>Gn(this,d,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let s=e.currentTimeline.currentTime;const u=a.options&&a.options.delay?Ds(a.options.delay):0;a.steps.forEach(d=>{const l=e.createSubContext(a.options);u&&l.delayNextStep(u),Gn(this,d,l),s=Math.max(s,l.currentTimeline.currentTime),t.push(l.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(s),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return rC(e.params?aC(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),s=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),s.snapshotCurrentStyles());const u=a.style;5==u.type?this.visitKeyframes(u,e):(e.incrementTime(t.duration),this.visitStyle(u,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,s=e.currentAnimateTimings;!s&&t.hasCurrentStyleProperties()&&t.forwardFrame();const u=s&&s.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(u):t.setStyles(a.styles,u,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,s=e.currentTimeline.duration,u=t.duration,l=e.createSubContext().currentTimeline;l.easing=t.easing,a.styles.forEach(n=>{l.forwardTime((n.offset||0)*u),l.setStyles(n.styles,n.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(s+u),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,s=a.options||{},u=s.delay?Ds(s.delay):0;u&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=pC);let d=t;const l=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=l.length;let n=null;l.forEach((i,o)=>{e.currentQueryIndex=o;const c=e.createSubContext(a.options,i);u&&c.delayNextStep(u),i===e.element&&(n=c.currentTimeline),Gn(this,a.animation,c),c.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,c.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),n&&(e.currentTimeline.mergeTimelineCollectedStyles(n),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,s=e.currentTimeline,u=a.timings,d=Math.abs(u.duration),l=d*(e.currentQueryTotal-1);let n=d*e.currentQueryIndex;switch(u.duration<0?"reverse":u.easing){case"reverse":n=l-n;break;case"full":n=t.currentStaggerTime}const o=e.currentTimeline;n&&o.delayNextStep(n);const c=o.currentTime;Gn(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=s.currentTime-c+(s.startTime-t.currentTimeline.startTime)}}const pC={};class J0{constructor(a,e,t,s,u,d,l,n){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=u,this.errors=d,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=n||new fC(this._driver,e,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let s=this.options;null!=t.duration&&(s.duration=Ds(t.duration)),null!=t.delay&&(s.delay=Ds(t.delay));const u=t.params;if(u){let d=s.params;d||(d=this.options.params={}),Object.keys(u).forEach(l=>{(!e||!d.hasOwnProperty(l))&&(d[l]=aC(u[l],d,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(s=>{t[s]=e[s]})}}return a}createSubContext(a=null,e,t){const s=e||this.element,u=new J0(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return u.previousNode=this.previousNode,u.currentAnimateTimings=this.currentAnimateTimings,u.options=this._copyOptions(),u.updateOptions(a),u.currentQueryIndex=this.currentQueryIndex,u.currentQueryTotal=this.currentQueryTotal,u.parentContext=this,this.subContextCount++,u}transformIntoNewTimeline(a){return this.previousNode=pC,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const s={duration:e??a.duration,delay:this.currentTimeline.currentTime+(t??0)+a.delay,easing:""},u=new k1(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,s,a.stretchStartingKeyframe);return this.timelines.push(u),s}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,s,u,d){let l=[];if(s&&l.push(this.element),a.length>0){a=(a=a.replace(H1,"."+this._enterClassName)).replace(P1,"."+this._leaveClassName);let i=this._driver.query(this.element,a,1!=t);0!==t&&(i=t<0?i.slice(i.length+t,i.length):i.slice(0,t)),l.push(...i)}return!u&&0==l.length&&d.push(function OP(r){return new f.vHH(3014,!1)}()),l}}class fC{constructor(a,e,t,s){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(a){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new fC(this._driver,a,e||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+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles.set(a,e),this._globalTimelineStyles.set(a,e),this._styleSummary.set(a,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||On),this._currentKeyframe.set(e,On);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,s){e&&this._previousKeyframe.set("easing",e);const u=s&&s.params||{},d=function V1(r,a){const e=new Map;let t;return r.forEach(s=>{if("*"===s){t=t||a.keys();for(let u of t)e.set(u,On)}else Hs(s,e)}),e}(a,this._globalTimelineStyles);for(let[l,n]of d){const i=aC(n,u,t);this._pendingStyles.set(l,i),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??On),this._updateStyle(l,i)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,e)=>{this._currentKeyframe.set(e,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,a)}))}snapshotCurrentStyles(){for(let[a,e]of this._localTimelineStyles)this._pendingStyles.set(a,e),this._updateStyle(a,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((l,n)=>{const i=Hs(l,new Map,this._backFill);i.forEach((o,c)=>{"!"===o?a.add(c):o===On&&e.add(c)}),t||i.set("offset",n/this.duration),s.push(i)});const u=a.size?oC(a.values()):[],d=e.size?oC(e.values()):[];if(t){const l=s[0],n=new Map(l);l.set("offset",0),n.set("offset",1),s=[l,n]}return Q0(this.element,s,u,d,this.duration,this.startTime,this.easing,!1)}}class k1 extends fC{constructor(a,e,t,s,u,d,l=!1){super(a,e,d.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=u,this._stretchStartingKeyframe=l,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const u=[],d=t+e,l=e/d,n=Hs(a[0]);n.set("offset",0),u.push(n);const i=Hs(a[0]);i.set("offset",aM(l)),u.push(i);const o=a.length-1;for(let c=1;c<=o;c++){let h=Hs(a[c]);const m=h.get("offset");h.set("offset",aM((e+m*t)/d)),u.push(h)}t=d,e=0,s="",a=u}return Q0(this.element,a,this.preStyleProps,this.postStyleProps,t,e,s,!0)}}function aM(r,a=3){const e=Math.pow(10,a-1);return Math.round(r*e)/e}class K0{}const B1=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"]);class O1 extends K0{normalizePropertyName(a,e){return G0(a)}normalizeStyleValue(a,e,t,s){let u="";const d=t.toString().trim();if(B1.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)u="px";else{const l=t.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&s.push(function SP(r,a){return new f.vHH(3005,!1)}())}return d+u}}function oM(r,a,e,t,s,u,d,l,n,i,o,c,h){return{type:0,element:r,triggerName:a,isRemovalTransition:s,fromState:e,fromStyles:u,toState:t,toStyles:d,timelines:l,queriedElements:n,preStyleProps:i,postStyleProps:o,totalTime:c,errors:h}}const Z0={};class sM{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,s){return function L1(r,a,e,t,s){return r.some(u=>u(a,e,t,s))}(this.ast.matchers,a,e,t,s)}buildStyles(a,e,t){let s=this._stateStyles.get("*");return void 0!==a&&(s=this._stateStyles.get(a?.toString())||s),s?s.buildStyles(e,t):new Map}build(a,e,t,s,u,d,l,n,i,o){const c=[],h=this.ast.options&&this.ast.options.params||Z0,g=this.buildStyles(t,l&&l.params||Z0,c),p=n&&n.params||Z0,w=this.buildStyles(s,p,c),R=new Set,J=new Map,Te=new Map,at="void"===s,Ti={params:j1(p,h),delay:this.ast.options?.delay},Xt=o?[]:Y0(a,e,this.ast.animation,u,d,g,w,Ti,i,c);let ci=0;if(Xt.forEach(Cr=>{ci=Math.max(Cr.duration+Cr.delay,ci)}),c.length)return oM(e,this._triggerName,t,s,at,g,w,[],[],J,Te,ci,c);Xt.forEach(Cr=>{const Ho=Cr.element,MD=zn(J,Ho,new Set);Cr.preStyleProps.forEach(oc=>MD.add(oc));const Rf=zn(Te,Ho,new Set);Cr.postStyleProps.forEach(oc=>Rf.add(oc)),Ho!==e&&R.add(Ho)});const on=oC(R.values());return oM(e,this._triggerName,t,s,at,g,w,Xt,on,J,Te,ci)}}function j1(r,a){const e=vf(a);for(const t in r)r.hasOwnProperty(t)&&null!=r[t]&&(e[t]=r[t]);return e}class F1{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t=new Map,s=vf(this.defaultParams);return Object.keys(a).forEach(u=>{const d=a[u];null!==d&&(s[u]=d)}),this.styles.styles.forEach(u=>{"string"!=typeof u&&u.forEach((d,l)=>{d&&(d=aC(d,s,e));const n=this.normalizer.normalizePropertyName(l,e);d=this.normalizer.normalizeStyleValue(l,n,d,e),t.set(n,d)})}),t}}class N1{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(s=>{this.states.set(s.name,new F1(s.style,s.options&&s.options.params||{},t))}),lM(this.states,"true","1"),lM(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new sM(a,s,this.states))}),this.fallbackTransition=function q1(r,a,e){return new sM(r,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,l)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,s){return this.transitionFactories.find(d=>d.match(a,e,t,s))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function lM(r,a,e){r.has(a)?r.has(e)||r.set(e,r.get(a)):r.has(e)&&r.set(a,r.get(e))}const z1=new hC;class G1{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,e){const t=[],u=W0(this._driver,e,t,[]);if(t.length)throw function zP(r){return new f.vHH(3503,!1)}();this._animations.set(a,u)}_buildPlayer(a,e,t){const s=a.element,u=FE(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(s,u,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const s=[],u=this._animations.get(a);let d;const l=new Map;if(u?(d=Y0(this._driver,e,u,U0,tC,new Map,new Map,t,z1,s),d.forEach(o=>{const c=zn(l,o.element,new Map);o.postStyleProps.forEach(h=>c.set(h,null))})):(s.push(function GP(){return new f.vHH(3300,!1)}()),d=[]),s.length)throw function WP(r){return new f.vHH(3504,!1)}();l.forEach((o,c)=>{o.forEach((h,m)=>{o.set(m,this._driver.computeStyle(c,m,On))})});const i=Ms(d.map(o=>{const c=l.get(o.element);return this._buildPlayer(o,new Map,c)}));return this._playersById.set(a,i),i.onDestroy(()=>this.destroy(a)),this.players.push(i),i}destroy(a){const e=this._getPlayer(a);e.destroy(),this._playersById.delete(a);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById.get(a);if(!e)throw function $P(r){return new f.vHH(3301,!1)}();return e}listen(a,e,t,s){const u=O0(e,"","","");return V0(this._getPlayer(a),t,u,s),()=>{}}command(a,e,t,s){if("register"==t)return void this.register(a,s[0]);if("create"==t)return void this.create(a,e,s[0]||{});const u=this._getPlayer(a);switch(t){case"play":u.play();break;case"pause":u.pause();break;case"reset":u.reset();break;case"restart":u.restart();break;case"finish":u.finish();break;case"init":u.init();break;case"setPosition":u.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(a)}}}const cM="ng-animate-queued",X0="ng-animate-disabled",J1=[],dM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},K1={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_r="__ng_removed";class ex{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function tI(r){return r??null}(t?a.value:a),t){const u=vf(a);delete u.value,this.options=u}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(s=>{null==t[s]&&(t[s]=e[s])})}}}const xf="void",tx=new ex(xf);class Z1{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,br(e,this._hostClassName)}listen(a,e,t,s){if(!this._triggers.has(e))throw function QP(r,a){return new f.vHH(3302,!1)}();if(null==t||0==t.length)throw function YP(r){return new f.vHH(3303,!1)}();if(!function iI(r){return"start"==r||"done"==r}(t))throw function JP(r,a){return new f.vHH(3400,!1)}();const u=zn(this._elementListeners,a,[]),d={name:e,phase:t,callback:s};u.push(d);const l=zn(this._engine.statesByElement,a,new Map);return l.has(e)||(br(a,iC),br(a,iC+"-"+e),l.set(e,tx)),()=>{this._engine.afterFlush(()=>{const n=u.indexOf(d);n>=0&&u.splice(n,1),this._triggers.has(e)||l.delete(e)})}}register(a,e){return!this._triggers.has(a)&&(this._triggers.set(a,e),!0)}_getTrigger(a){const e=this._triggers.get(a);if(!e)throw function KP(r){return new f.vHH(3401,!1)}();return e}trigger(a,e,t,s=!0){const u=this._getTrigger(e),d=new ix(this.id,e,a);let l=this._engine.statesByElement.get(a);l||(br(a,iC),br(a,iC+"-"+e),this._engine.statesByElement.set(a,l=new Map));let n=l.get(e);const i=new ex(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&n&&i.absorbOptions(n.options),l.set(e,i),n||(n=tx),i.value!==xf&&n.value===i.value){if(!function aI(r,a){const e=Object.keys(r),t=Object.keys(a);if(e.length!=t.length)return!1;for(let s=0;s{nc(a,w),Oa(a,R)})}return}const h=zn(this._engine.playersByElement,a,[]);h.forEach(p=>{p.namespaceId==this.id&&p.triggerName==e&&p.queued&&p.destroy()});let m=u.matchTransition(n.value,i.value,a,i.params),g=!1;if(!m){if(!s)return;m=u.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:m,fromState:n,toState:i,player:d,isFallbackTransition:g}),g||(br(a,cM),d.onStart(()=>{wu(a,cM)})),d.onDone(()=>{let p=this.players.indexOf(d);p>=0&&this.players.splice(p,1);const w=this._engine.playersByElement.get(a);if(w){let R=w.indexOf(d);R>=0&&w.splice(R,1)}}),this.players.push(d),h.push(d),d}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(e=>e.delete(a)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(s=>s.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,nC,!0);t.forEach(s=>{if(s[_r])return;const u=this._engine.fetchNamespacesByElement(s);u.size?u.forEach(d=>d.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(a,e,t,s){const u=this._engine.statesByElement.get(a),d=new Map;if(u){const l=[];if(u.forEach((n,i)=>{if(d.set(i,n.value),this._triggers.has(i)){const o=this.trigger(a,i,xf,s);o&&l.push(o)}}),l.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,d),t&&Ms(l).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const s=new Set;e.forEach(u=>{const d=u.name;if(s.has(d))return;s.add(d);const n=this._triggers.get(d).fallbackTransition,i=t.get(d)||tx,o=new ex(xf),c=new ix(this.id,d,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:d,transition:n,fromState:i,toState:o,player:c,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let s=!1;if(t.totalAnimations){const u=t.players.length?t.playersByQueriedElement.get(a):[];if(u&&u.length)s=!0;else{let d=a;for(;d=d.parentNode;)if(t.statesByElement.get(d)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(a),s)t.markElementAsRemoved(this.id,a,!1,e);else{const u=a[_r];(!u||u===dM)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){br(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const s=t.player;if(s.destroyed)return;const u=t.element,d=this._elementListeners.get(u);d&&d.forEach(l=>{if(l.name==t.triggerName){const n=O0(u,t.triggerName,t.fromState.value,t.toState.value);n._data=a,V0(t.player,l.phase,n,l.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(t)}),this._queue=[],e.sort((t,s)=>{const u=t.transition.ast.depCount,d=s.transition.ast.depCount;return 0==u||0==d?u-d:this._engine.driver.containsElement(t.element,s.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class X1{constructor(a,e,t){this.bodyNode=a,this.driver=e,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=(s,u)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new Z1(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList,s=this.namespacesByHostElement;if(t.length-1>=0){let d=!1,l=this.driver.getParentElement(e);for(;l;){const n=s.get(l);if(n){const i=t.indexOf(n);t.splice(i+1,0,a),d=!0;break}l=this.driver.getParentElement(l)}d||t.unshift(a)}else t.push(a);return s.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let s=this._namespaceLookup[a];s&&s.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const s=this._namespaceList.indexOf(t);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t)for(let s of t.values())if(s.namespaceId){const u=this._fetchNamespace(s.namespaceId);u&&e.add(u)}return e}trigger(a,e,t,s){if(mC(e)){const u=this._fetchNamespace(a);if(u)return u.trigger(e,t,s),!0}return!1}insertNode(a,e,t,s){if(!mC(e))return;const u=e[_r];if(u&&u.setForRemoval){u.setForRemoval=!1,u.setForMove=!0;const d=this.collectedLeaveElements.indexOf(e);d>=0&&this.collectedLeaveElements.splice(d,1)}if(a){const d=this._fetchNamespace(a);d&&d.insertNode(e,t)}s&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),br(a,X0)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),wu(a,X0))}removeNode(a,e,t,s){if(mC(e)){const u=a?this._fetchNamespace(a):null;if(u?u.removeNode(e,s):this.markElementAsRemoved(a,e,!1,s),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==a&&d.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(a,e,t,s,u){this.collectedLeaveElements.push(e),e[_r]={namespaceId:a,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:u}}listen(a,e,t,s,u){return mC(e)?this._fetchNamespace(a).listen(e,t,s,u):()=>{}}_buildInstruction(a,e,t,s,u){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,s,a.fromState.options,a.toState.options,e,u)}destroyInnerAnimations(a){let e=this.driver.query(a,nC,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,N0,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Ms(this.players).onDone(()=>a());a()})}processLeaveNode(a){const e=a[_r];if(e&&e.setForRemoval){if(a[_r]=dM,e.namespaceId){this.destroyInnerAnimations(a);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(a)}this._onRemovalComplete(a,e.setForRemoval)}a.classList?.contains(X0)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,s)=>this._balanceNamespaceList(t,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Ms(e).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(a){throw function ZP(r){return new f.vHH(3402,!1)}()}_flushAnimations(a,e){const t=new hC,s=[],u=new Map,d=[],l=new Map,n=new Map,i=new Map,o=new Set;this.disabledNodes.forEach(We=>{o.add(We);const tt=this.driver.query(We,".ng-animate-queued",!0);for(let ot=0;ot{const ot=U0+p++;g.set(tt,ot),We.forEach(xt=>br(xt,ot))});const w=[],R=new Set,J=new Set;for(let We=0;WeR.add(xt)):J.add(tt))}const Te=new Map,at=pM(h,Array.from(R));at.forEach((We,tt)=>{const ot=tC+p++;Te.set(tt,ot),We.forEach(xt=>br(xt,ot))}),a.push(()=>{m.forEach((We,tt)=>{const ot=g.get(tt);We.forEach(xt=>wu(xt,ot))}),at.forEach((We,tt)=>{const ot=Te.get(tt);We.forEach(xt=>wu(xt,ot))}),w.forEach(We=>{this.processLeaveNode(We)})});const Ti=[],Xt=[];for(let We=this._namespaceList.length-1;We>=0;We--)this._namespaceList[We].drainQueuedTransitions(e).forEach(ot=>{const xt=ot.player,ji=ot.element;if(Ti.push(xt),this.collectedEnterElements.length){const Ki=ji[_r];if(Ki&&Ki.setForMove){if(Ki.previousTriggersValues&&Ki.previousTriggersValues.has(ot.triggerName)){const sc=Ki.previousTriggersValues.get(ot.triggerName),wr=this.statesByElement.get(ot.element);if(wr&&wr.has(ot.triggerName)){const LC=wr.get(ot.triggerName);LC.value=sc,wr.set(ot.triggerName,LC)}}return void xt.destroy()}}const ja=!c||!this.driver.containsElement(c,ji),Wn=Te.get(ji),Ps=g.get(ji),ai=this._buildInstruction(ot,t,Ps,Wn,ja);if(ai.errors&&ai.errors.length)return void Xt.push(ai);if(ja)return xt.onStart(()=>nc(ji,ai.fromStyles)),xt.onDestroy(()=>Oa(ji,ai.toStyles)),void s.push(xt);if(ot.isFallbackTransition)return xt.onStart(()=>nc(ji,ai.fromStyles)),xt.onDestroy(()=>Oa(ji,ai.toStyles)),void s.push(xt);const RD=[];ai.timelines.forEach(Ki=>{Ki.stretchStartingKeyframe=!0,this.disabledNodes.has(Ki.element)||RD.push(Ki)}),ai.timelines=RD,t.append(ji,ai.timelines),d.push({instruction:ai,player:xt,element:ji}),ai.queriedElements.forEach(Ki=>zn(l,Ki,[]).push(xt)),ai.preStyleProps.forEach((Ki,sc)=>{if(Ki.size){let wr=n.get(sc);wr||n.set(sc,wr=new Set),Ki.forEach((LC,Rx)=>wr.add(Rx))}}),ai.postStyleProps.forEach((Ki,sc)=>{let wr=i.get(sc);wr||i.set(sc,wr=new Set),Ki.forEach((LC,Rx)=>wr.add(Rx))})});if(Xt.length){const We=[];Xt.forEach(tt=>{We.push(function XP(r,a){return new f.vHH(3505,!1)}())}),Ti.forEach(tt=>tt.destroy()),this.reportError(We)}const ci=new Map,on=new Map;d.forEach(We=>{const tt=We.element;t.has(tt)&&(on.set(tt,tt),this._beforeAnimationBuild(We.player.namespaceId,We.instruction,ci))}),s.forEach(We=>{const tt=We.element;this._getPreviousPlayers(tt,!1,We.namespaceId,We.triggerName,null).forEach(xt=>{zn(ci,tt,[]).push(xt),xt.destroy()})});const Cr=w.filter(We=>mM(We,n,i)),Ho=new Map;hM(Ho,this.driver,J,i,On).forEach(We=>{mM(We,n,i)&&Cr.push(We)});const Rf=new Map;m.forEach((We,tt)=>{hM(Rf,this.driver,new Set(We),n,"!")}),Cr.forEach(We=>{const tt=Ho.get(We),ot=Rf.get(We);Ho.set(We,new Map([...Array.from(tt?.entries()??[]),...Array.from(ot?.entries()??[])]))});const oc=[],DD=[],HD={};d.forEach(We=>{const{element:tt,player:ot,instruction:xt}=We;if(t.has(tt)){if(o.has(tt))return ot.onDestroy(()=>Oa(tt,xt.toStyles)),ot.disabled=!0,ot.overrideTotalTime(xt.totalTime),void s.push(ot);let ji=HD;if(on.size>1){let Wn=tt;const Ps=[];for(;Wn=Wn.parentNode;){const ai=on.get(Wn);if(ai){ji=ai;break}Ps.push(Wn)}Ps.forEach(ai=>on.set(ai,ji))}const ja=this._buildAnimation(ot.namespaceId,xt,ci,u,Rf,Ho);if(ot.setRealPlayer(ja),ji===HD)oc.push(ot);else{const Wn=this.playersByElement.get(ji);Wn&&Wn.length&&(ot.parentPlayer=Ms(Wn)),s.push(ot)}}else nc(tt,xt.fromStyles),ot.onDestroy(()=>Oa(tt,xt.toStyles)),DD.push(ot),o.has(tt)&&s.push(ot)}),DD.forEach(We=>{const tt=u.get(We.element);if(tt&&tt.length){const ot=Ms(tt);We.setRealPlayer(ot)}}),s.forEach(We=>{We.parentPlayer?We.syncPlayerEvents(We.parentPlayer):We.destroy()});for(let We=0;We!ja.destroyed);ji.length?nI(this,tt,ji):this.processLeaveNode(tt)}return w.length=0,oc.forEach(We=>{this.players.push(We),We.onDone(()=>{We.destroy();const tt=this.players.indexOf(We);this.players.splice(tt,1)}),We.play()}),oc}elementContainsData(a,e){let t=!1;const s=e[_r];return s&&s.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,s,u){let d=[];if(e){const l=this.playersByQueriedElement.get(a);l&&(d=l)}else{const l=this.playersByElement.get(a);if(l){const n=!u||u==xf;l.forEach(i=>{i.queued||!n&&i.triggerName!=s||d.push(i)})}}return(t||s)&&(d=d.filter(l=>!(t&&t!=l.namespaceId||s&&s!=l.triggerName))),d}_beforeAnimationBuild(a,e,t){const u=e.element,d=e.isRemovalTransition?void 0:a,l=e.isRemovalTransition?void 0:e.triggerName;for(const n of e.timelines){const i=n.element,o=i!==u,c=zn(t,i,[]);this._getPreviousPlayers(i,o,d,l,e.toState).forEach(m=>{const g=m.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),m.destroy(),c.push(m)})}nc(u,e.fromStyles)}_buildAnimation(a,e,t,s,u,d){const l=e.triggerName,n=e.element,i=[],o=new Set,c=new Set,h=e.timelines.map(g=>{const p=g.element;o.add(p);const w=p[_r];if(w&&w.removedBeforeQueried)return new go(g.duration,g.delay);const R=p!==n,J=function rI(r){const a=[];return fM(r,a),a}((t.get(p)||J1).map(ci=>ci.getRealPlayer())).filter(ci=>!!ci.element&&ci.element===p),Te=u.get(p),at=d.get(p),Ti=FE(0,this._normalizer,0,g.keyframes,Te,at),Xt=this._buildPlayer(g,Ti,J);if(g.subTimeline&&s&&c.add(p),R){const ci=new ix(a,l,p);ci.setRealPlayer(Xt),i.push(ci)}return Xt});i.forEach(g=>{zn(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function eI(r,a,e){let t=r.get(a);if(t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&r.delete(a)}return t}(this.playersByQueriedElement,g.element,g))}),o.forEach(g=>br(g,YE));const m=Ms(h);return m.onDestroy(()=>{o.forEach(g=>wu(g,YE)),Oa(n,e.toStyles)}),c.forEach(g=>{zn(s,g,[]).push(m)}),m}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new go(a.duration,a.delay)}}class ix{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new go,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((e,t)=>{e.forEach(s=>V0(a,t,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){zn(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function mC(r){return r&&1===r.nodeType}function uM(r,a){const e=r.style.display;return r.style.display=a??"none",e}function hM(r,a,e,t,s){const u=[];e.forEach(n=>u.push(uM(n)));const d=[];t.forEach((n,i)=>{const o=new Map;n.forEach(c=>{const h=a.computeStyle(i,c,s);o.set(c,h),(!h||0==h.length)&&(i[_r]=K1,d.push(i))}),r.set(i,o)});let l=0;return e.forEach(n=>uM(n,u[l++])),d}function pM(r,a){const e=new Map;if(r.forEach(l=>e.set(l,[])),0==a.length)return e;const s=new Set(a),u=new Map;function d(l){if(!l)return 1;let n=u.get(l);if(n)return n;const i=l.parentNode;return n=e.has(i)?i:s.has(i)?1:d(i),u.set(l,n),n}return a.forEach(l=>{const n=d(l);1!==n&&e.get(n).push(l)}),e}function br(r,a){r.classList?.add(a)}function wu(r,a){r.classList?.remove(a)}function nI(r,a,e){Ms(e).onDone(()=>r.processLeaveNode(a))}function fM(r,a){for(let e=0;es.add(u)):a.set(r,t),e.delete(r),!0}class gC{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,u)=>{},this._transitionEngine=new X1(a,e,t),this._timelineEngine=new G1(a,e,t),this._transitionEngine.onRemovalComplete=(s,u)=>this.onRemovalComplete(s,u)}registerTrigger(a,e,t,s,u){const d=a+"-"+s;let l=this._triggerCache[d];if(!l){const n=[],o=W0(this._driver,u,n,[]);if(n.length)throw function NP(r,a){return new f.vHH(3404,!1)}();l=function U1(r,a,e){return new N1(r,a,e)}(s,o,this._normalizer),this._triggerCache[d]=l}this._transitionEngine.registerTrigger(e,s,l)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,s){this._transitionEngine.insertNode(a,e,t,s)}onRemove(a,e,t,s){this._transitionEngine.removeNode(a,e,s||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,s){if("@"==t.charAt(0)){const[u,d]=UE(t);this._timelineEngine.command(u,e,d,s)}else this._transitionEngine.trigger(a,e,t,s)}listen(a,e,t,s,u){if("@"==t.charAt(0)){const[d,l]=UE(t);return this._timelineEngine.listen(d,e,l,u)}return this._transitionEngine.listen(a,e,t,s,u)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let sI=(()=>{class r{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let u=r.initialStylesByElement.get(e);u||r.initialStylesByElement.set(e,u=new Map),this._initialStyles=u}start(){this._state<1&&(this._startStyles&&Oa(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Oa(this._element,this._initialStyles),this._endStyles&&(Oa(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(nc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(nc(this._element,this._endStyles),this._endStyles=null),Oa(this._element,this._initialStyles),this._state=3)}}return r.initialStylesByElement=new WeakMap,r})();function nx(r){let a=null;return r.forEach((e,t)=>{(function lI(r){return"display"===r||"position"===r})(t)&&(a=a||new Map,a.set(t,e))}),a}class gM{constructor(a,e,t,s){this.element=a,this.keyframes=e,this.options=t,this._specialStyles=s,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(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const e=[];return a.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(a,e,t){return a.animate(this._convertKeyframesToObject(e),t)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,s)=>{"offset"!==s&&a.set(s,this._finished?t:tM(this.element,s))}),this.currentSnapshot=a}triggerCallback(a){const e="start"===a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class cI{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,e){return!1}containsElement(a,e){return GE(a,e)}getParentElement(a){return j0(a)}query(a,e,t){return WE(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,s,u,d=[]){const n={duration:t,delay:s,fill:0==s?"both":"forwards"};u&&(n.easing=u);const i=new Map,o=d.filter(m=>m instanceof gM);(function p1(r,a){return 0===r||0===a})(t,s)&&o.forEach(m=>{m.currentSnapshot.forEach((g,p)=>i.set(p,g))});let c=function c1(r){return r.length?r[0]instanceof Map?r:r.map(a=>JE(a)):[]}(e).map(m=>Hs(m));c=function f1(r,a,e){if(e.size&&a.length){let t=a[0],s=[];if(e.forEach((u,d)=>{t.has(d)||s.push(d),t.set(d,u)}),s.length)for(let u=1;ud.set(l,tM(r,l)))}}return a}(a,c,i);const h=function oI(r,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=nx(a[0]),a.length>1&&(t=nx(a[a.length-1]))):a instanceof Map&&(e=nx(a)),e||t?new sI(r,e,t):null}(a,c);return new gM(a,c,n,h)}}let dI=(()=>{class r extends kl{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:f.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?Zh(e):e;return _M(this._renderer,null,t,"register",[s]),new uI(t,this._renderer)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.FYo),f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class uI extends class Id{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new hI(this._id,a,e||{},this._renderer)}}class hI{constructor(a,e,t,s){this.id=a,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return _M(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function _M(r,a,e,t,s){return r.setProperty(a,`@@${e}:${t}`,s)}const bM="@.disabled";let pI=(()=>{class r{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(u,d)=>{const l=d?.parentNode(u);l&&d.removeChild(l,u)}}createRenderer(e,t){const u=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let o=this._rendererCache.get(u);return o||(o=new CM("",u,this.engine),this._rendererCache.set(u,o)),o}const d=t.id,l=t.id+"-"+this._currentId;this._currentId++,this.engine.register(l,e);const n=o=>{Array.isArray(o)?o.forEach(n):this.engine.registerTrigger(d,l,e,o.name,o)};return t.data.animation.forEach(n),new fI(this,l,u,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){e>=0&&et(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(u=>{const[d,l]=u;d(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.FYo),f.LFG(gC),f.LFG(f.R0b))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class CM{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,s=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,s)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,s){this.delegate.setAttribute(a,e,t,s)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,s){this.delegate.setStyle(a,e,t,s)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==bM?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class fI extends CM{constructor(a,e,t,s){super(e,t,s),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==bM?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.slice(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const s=function mI(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}(a);let u=e.slice(1),d="";return"@"!=u.charAt(0)&&([u,d]=function gI(r){const a=r.indexOf(".");return[r.substring(0,a),r.slice(a+1)]}(u)),this.engine.listen(this.namespaceId,s,u,d,l=>{this.factory.scheduleListenerCallback(l._data||-1,t,l)})}return this.delegate.listen(a,e,t)}}const wM=[{provide:kl,useClass:dI},{provide:K0,useFactory:function bI(){return new O1}},{provide:gC,useClass:(()=>{class r extends gC{constructor(e,t,s,u){super(e.body,t,s)}ngOnDestroy(){this.flush()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0),f.LFG(F0),f.LFG(K0),f.LFG(f.z2F))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})()},{provide:f.FYo,useFactory:function CI(r,a,e){return new pI(r,a,e)},deps:[pe,gC,f.R0b]}],rx=[{provide:F0,useFactory:()=>new cI},{provide:f.QbO,useValue:"BrowserAnimations"},...wM],yM=[{provide:F0,useClass:$E},{provide:f.QbO,useValue:"NoopAnimations"},...wM];let wI=(()=>{class r{static withConfig(e){return{ngModule:r,providers:e.disableAnimations?yM:rx}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:rx,imports:[Na]}),r})(),yI=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,Ep,kn,ys]}),r})(),xM=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),bC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[In,$e,oo,xM,$e,xM]}),r})(),QI=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[cs]}),r})(),MC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[QI,$e,$e]}),r})(),mx=(()=>{class r{constructor(){this.changes=new He.x}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const pk={provide:mx,deps:[[new f.FiY,new f.tp0,mx]],useFactory:function hk(r){return r||new mx}};let gx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[pk],imports:[M.ez,$e]}),r})();const LM=new f.OlP("mat-chips-default-options");let bx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[vl,{provide:LM,useValue:{separatorKeyCodes:[13]}}],imports:[$e]}),r})();function Cx(r,a,e){for(let t in a)if(a.hasOwnProperty(t)){const s=a[t];s?r.setProperty(t,s,e?.has(t)?"important":""):r.removeProperty(t)}return r}function xu(r,a){const e=a?"":"none";Cx(r.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function jM(r,a,e){Cx(r.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function DC(r,a){return a&&"none"!=a?r+" "+a:r}function FM(r){const a=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*a}function wx(r,a){return r.getPropertyValue(a).split(",").map(t=>t.trim())}function yx(r){const a=r.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function vx(r,a,e){const{top:t,bottom:s,left:u,right:d}=r;return e>=t&&e<=s&&a>=u&&a<=d}function Ef(r,a,e){r.top+=a,r.bottom=r.top+r.height,r.left+=e,r.right=r.left+r.width}function UM(r,a,e,t){const{top:s,right:u,bottom:d,left:l,width:n,height:i}=r,o=n*a,c=i*a;return t>s-c&&tl-o&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:yx(e)})})}handleScroll(a){const e=Yi(a),t=this.positions.get(e);if(!t)return null;const s=t.scrollPosition;let u,d;if(e===this._document){const i=this.getViewportScrollPosition();u=i.top,d=i.left}else u=e.scrollTop,d=e.scrollLeft;const l=s.top-u,n=s.left-d;return this.positions.forEach((i,o)=>{i.clientRect&&e!==o&&e.contains(o)&&Ef(i.clientRect,l,n)}),s.top=u,s.left=d,{top:l,left:n}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function qM(r){const a=r.cloneNode(!0),e=a.querySelectorAll("[id]"),t=r.nodeName.toLowerCase();a.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&this._initializeDragSequence(n,l)}else this.disabled||this._initializeDragSequence(this._rootElement,l)},this._pointerMove=l=>{const n=this._getPointerPositionOnPage(l);if(!this._hasStartedDragging){if(Math.abs(n.x-this._pickupPositionOnPage.x)+Math.abs(n.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const m=Date.now()>=this._dragStartTime+this._getDragStartDelay(l),g=this._dropContainer;if(!m)return void this._endDragSequence(l);(!g||!g.isDragging()&&!g.isReceiving())&&(l.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(l)))}return}l.preventDefault();const i=this._getConstrainedPointerPosition(n);if(this._hasMoved=!0,this._lastKnownPointerPosition=n,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,n);else{const o=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,c=this._activeTransform;c.x=i.x-o.x+this._passiveTransform.x,c.y=i.y-o.y+this._passiveTransform.y,this._applyRootElementTransform(c.x,c.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:l,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=l=>{this._endDragSequence(l)},this._nativeDragStart=l=>{if(this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&l.preventDefault()}else this.disabled||l.preventDefault()},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new NM(t),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=Ye(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>xu(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>Gt(t)),this._handles.forEach(t=>xu(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=Gt(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,HC),e.addEventListener("touchstart",this._pointerDown,$M),e.addEventListener("dragstart",this._nativeDragStart,HC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?Gt(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),xu(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),xu(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){Mf(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,s=t.parentNode,u=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),l=this._getShadowRoot();s.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),jM(t,!1,Ax),this._document.body.appendChild(s.replaceChild(u,t)),this._getPreviewInsertionPoint(s,l).appendChild(this._preview),this.started.next({source:this,event:a}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),s=Mf(e),u=!s&&0!==e.button,d=this._rootElement,l=Yi(e),n=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),i=s?rr(e):bl(e);if(l&&l.draggable&&"mousedown"===e.type&&e.preventDefault(),t||u||n||i)return;if(this._handles.length){const h=d.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=yx(this._boundaryElement));const o=this._previewTemplate;this._pickupPositionInElement=o&&o.template&&!o.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){jM(this._rootElement,!0,Ax),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),s=this._getPointerPositionOnPage(a),u=this._getDragDistance(s),d=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:u,dropPoint:s,event:a}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:u,dropPoint:s,event:a}),e.drop(this,t,this._initialIndex,this._initialContainer,d,u,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:s}){let u=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!u&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(u=this._initialContainer),u&&u!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=u,this._dropContainer.enter(this,a,e,u===this._initialContainer&&u.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:u,currentIndex:u.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,s),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,e):this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let s;if(t&&a){const u=a.matchSize?this._initialClientRect:null,d=a.viewContainer.createEmbeddedView(t,a.context);d.detectChanges(),s=YM(d,this._document),this._previewRef=d,a.matchSize?JM(s,u):s.style.transform=RC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=qM(this._rootElement),JM(s,this._initialClientRect),this._initialTransform&&(s.style.transform=this._initialTransform);return Cx(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Ax),xu(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(u=>s.classList.add(u)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function Ek(r){const a=getComputedStyle(r),e=wx(a,"transition-property"),t=e.find(l=>"transform"===l||"all"===l);if(!t)return 0;const s=e.indexOf(t),u=wx(a,"transition-duration"),d=wx(a,"transition-delay");return FM(u[s])+FM(d[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const s=d=>{(!d||Yi(d)===this._preview&&"transform"===d.propertyName)&&(this._preview?.removeEventListener("transitionend",s),t(),clearTimeout(u))},u=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=YM(this._placeholderRef,this._document)):t=qM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e,t){const s=e===this._rootElement?null:e,u=s?s.getBoundingClientRect():a,d=Mf(t)?t.targetTouches[0]:t,l=this._getViewportScrollPosition();return{x:u.left-a.left+(d.pageX-u.left-l.left),y:u.top-a.top+(d.pageY-u.top-l.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=Mf(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,s=t.pageX-e.left,u=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const l=this._ownerSVGElement.createSVGPoint();return l.x=s,l.y=u,l.matrixTransform(d.inverse())}}return{x:s,y:u}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:s}=this.constrainPosition?this.constrainPosition(a,this,this._initialClientRect,this._pickupPositionInElement):a;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:u,y:d}=this._pickupPositionInElement,l=this._boundaryRect,{width:n,height:i}=this._getPreviewRect(),o=l.top+d,c=l.bottom-(i-d);t=QM(t,l.left+u,l.right-(n-u)),s=QM(s,o,c)}return{x:t,y:s}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,s=this._pointerDirectionDelta,u=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-u.x),l=Math.abs(t-u.y);return d>this._config.pointerDirectionChangeThreshold&&(s.x=e>u.x?1:-1,u.x=e),l>this._config.pointerDirectionChangeThreshold&&(s.y=t>u.y?1:-1,u.y=t),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,xu(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,HC),a.removeEventListener("touchstart",this._pointerDown,$M),a.removeEventListener("dragstart",this._nativeDragStart,HC)}_applyRootElementTransform(a,e){const t=RC(a,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=DC(t,this._initialTransform)}_applyPreviewTransform(a,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,s=RC(a,e);this._preview.style.transform=DC(s,t)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(0===s.width&&0===s.height||0===t.width&&0===t.height)return;const u=s.left-t.left,d=t.right-s.right,l=s.top-t.top,n=t.bottom-s.bottom;s.width>t.width?(u>0&&(a+=u),d>0&&(a-=d)):a=0,s.height>t.height?(l>0&&(e+=l),n>0&&(e-=n)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:Mf(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=Yi(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Ef(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=$c(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return Gt(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(a){return this._handles.find(e=>a.target&&(a.target===e||e.contains(a.target)))}}function RC(r,a){return`translate3d(${Math.round(r)}px, ${Math.round(a)}px, 0)`}function QM(r,a,e){return Math.max(a,Math.min(e,r))}function Mf(r){return"t"===r.type[0]}function YM(r,a){const e=r.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(s=>t.appendChild(s)),t}function JM(r,a){r.style.width=`${a.width}px`,r.style.height=`${a.height}px`,r.style.transform=RC(a.left,a.top)}function Df(r,a){return Math.max(0,Math.min(a,r))}class Pk{constructor(a,e){this._element=a,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(a){this.withItems(a)}sort(a,e,t,s){const u=this._itemPositions,d=this._getItemIndexFromPointerPosition(a,e,t,s);if(-1===d&&u.length>0)return null;const l="horizontal"===this.orientation,n=u.findIndex(w=>w.drag===a),i=u[d],c=i.clientRect,h=n>d?1:-1,m=this._getItemOffsetPx(u[n].clientRect,c,h),g=this._getSiblingOffsetPx(n,u,h),p=u.slice();return function Rk(r,a,e){const t=Df(a,r.length-1),s=Df(e,r.length-1);if(t===s)return;const u=r[t],d=s{if(p[R]===w)return;const J=w.drag===a,Te=J?m:g,at=J?a.getPlaceholderElement():w.drag.getRootElement();w.offset+=Te,l?(at.style.transform=DC(`translate3d(${Math.round(w.offset)}px, 0, 0)`,w.initialTransform),Ef(w.clientRect,0,Te)):(at.style.transform=DC(`translate3d(0, ${Math.round(w.offset)}px, 0)`,w.initialTransform),Ef(w.clientRect,Te,0))}),this._previousSwap.overlaps=vx(c,e,t),this._previousSwap.drag=i.drag,this._previousSwap.delta=l?s.x:s.y,{previousIndex:n,currentIndex:d}}enter(a,e,t,s){const u=null==s||s<0?this._getItemIndexFromPointerPosition(a,e,t):s,d=this._activeDraggables,l=d.indexOf(a),n=a.getPlaceholderElement();let i=d[u];if(i===a&&(i=d[u+1]),!i&&(null==u||-1===u||u-1&&d.splice(l,1),i&&!this._dragDropRegistry.isDragging(i)){const o=i.getRootElement();o.parentElement.insertBefore(n,o),d.splice(u,0,a)}else Gt(this._element).appendChild(n),d.push(a);n.style.transform="",this._cacheItemPositions()}withItems(a){this._activeDraggables=a.slice(),this._cacheItemPositions()}withSortPredicate(a){this._sortPredicate=a}reset(){this._activeDraggables.forEach(a=>{const e=a.getRootElement();if(e){const t=this._itemPositions.find(s=>s.drag===a)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a)}updateOnScroll(a,e){this._itemPositions.forEach(({clientRect:t})=>{Ef(t,a,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:yx(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(a,e,t){const s="horizontal"===this.orientation;let u=s?e.left-a.left:e.top-a.top;return-1===t&&(u+=s?e.width-a.width:e.height-a.height),u}_getSiblingOffsetPx(a,e,t){const s="horizontal"===this.orientation,u=e[a].clientRect,d=e[a+-1*t];let l=u[s?"width":"height"]*t;if(d){const n=s?"left":"top",i=s?"right":"bottom";-1===t?l-=d.clientRect[n]-u[i]:l+=u[n]-d.clientRect[i]}return l}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,s="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const d=t[t.length-1].clientRect;return s?a>=d.right:e>=d.bottom}{const d=t[0].clientRect;return s?a<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(a,e,t,s){const u="horizontal"===this.orientation,d=this._itemPositions.findIndex(({drag:l,clientRect:n})=>{if(l===a)return!1;if(s){const i=u?s.x:s.y;if(l===this._previousSwap.drag&&this._previousSwap.overlaps&&i===this._previousSwap.delta)return!1}return u?e>=Math.floor(n.left)&&e=Math.floor(n.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.x,this.entered=new He.x,this.exited=new He.x,this.dropped=new He.x,this.sorted=new He.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=wt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function Sk(r=0,a=yd.z){return r<0&&(r=0),(0,Oh.H)(r,r,a)}(0,iv).pipe(_t(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,l=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-l):2===this._verticalScrollDirection&&d.scrollBy(0,l),1===this._horizontalScrollDirection?d.scrollBy(-l,0):2===this._horizontalScrollDirection&&d.scrollBy(l,0)})},this.element=Gt(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new NM(t),this._sortStrategy=new Pk(this.element,e),this._sortStrategy.withSortPredicate((d,l)=>this.sortPredicate(d,l,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,s){this._draggingStarted(),null==s&&this.sortingDisabled&&(s=this._draggables.indexOf(a)),this._sortStrategy.enter(a,e,t,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,s,u,d,l,n={}){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:s,isPointerOverContainer:u,distance:d,dropPoint:l,event:n})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===a.indexOf(s))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(a){return this._sortStrategy.direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._sortStrategy.orientation=a,this}withScrollableParents(a){const e=Gt(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,s){if(this.sortingDisabled||!this._clientRect||!UM(this._clientRect,.05,e,t))return;const u=this._sortStrategy.sort(a,e,t,s);u&&this.sorted.next({previousIndex:u.previousIndex,currentIndex:u.currentIndex,container:this,item:a})}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,s=0,u=0;if(this._parentPositions.positions.forEach((d,l)=>{l===this._document||!d.clientRect||t||UM(d.clientRect,.05,a,e)&&([s,u]=function kk(r,a,e,t){const s=XM(a,t),u=eD(a,e);let d=0,l=0;if(s){const n=r.scrollTop;1===s?n>0&&(d=1):r.scrollHeight-n>r.clientHeight&&(d=2)}if(u){const n=r.scrollLeft;1===u?n>0&&(l=1):r.scrollWidth-n>r.clientWidth&&(l=2)}return[d,l]}(l,d.clientRect,a,e),(s||u)&&(t=l))}),!s&&!u){const{width:d,height:l}=this._viewportRuler.getViewportSize(),n={width:d,height:l,top:0,right:d,bottom:l,left:0};s=XM(n,e),u=eD(n,a),t=window}t&&(s!==this._verticalScrollDirection||u!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=u,this._scrollNode=t,(s||u)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=Gt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=Gt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_reset(){this._isDragging=!1;const a=Gt(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(a,e){return null!=this._clientRect&&vx(this._clientRect,a,e)}_getSiblingContainerFromPosition(a,e,t){return this._siblings.find(s=>s._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!vx(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,t);if(!s)return!1;const u=Gt(this.element);return s===u||u.contains(s)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=$c(Gt(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function XM(r,a){const{top:e,bottom:t,height:s}=r,u=.05*s;return a>=e-u&&a<=e+u?1:a>=t-u&&a<=t+u?2:0}function eD(r,a){const{left:e,right:t,width:s}=r,u=.05*s;return a>=e-u&&a<=e+u?1:a>=t-u&&a<=t+u?2:0}const PC=pn({passive:!1,capture:!0});let Vk=(()=>{class r{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new He.x,this.pointerUp=new He.x,this.scroll=new He.x,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,PC)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,PC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=t.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:u=>this.pointerUp.next(u),options:!0}).set("scroll",{handler:u=>this.scroll.next(u),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:PC}),s||this._globalListeners.set("mousemove",{handler:u=>this.pointerMove.next(u),options:PC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((u,d)=>{this._document.addEventListener(d,u.handler,u.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Ui.y(s=>this._ngZone.runOutsideAngular(()=>{const d=l=>{this._activeDragInstances.length&&s.next(l)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,Bn.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.R0b),f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Bk={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Ok=(()=>{class r{constructor(e,t,s,u){this._document=e,this._ngZone=t,this._viewportRuler=s,this._dragDropRegistry=u}createDrag(e,t=Bk){return new Hk(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new Ik(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0),f.LFG(f.R0b),f.LFG(Ur),f.LFG(Vk))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Lk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[Ok],imports:[Ca]}),r})();function jk(r,a){if(1&r&&(f.TgZ(0,"div",5)(1,"mat-icon"),f._uU(2),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.Oqu(e.data.icon)}}function Fk(r,a){if(1&r&&(f.TgZ(0,"div",6),f._uU(1),f.qZA()),2&r){const e=f.oxw();f.xp6(1),f.hij(" ",e.showTimestamp()," ")}}let Uk=(()=>{class r{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new f.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=pr();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(ZH,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function vA(r,a){Mp.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(bn),f.Y36(Lp))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(f.TgZ(0,"div")(1,"div",0),f.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),f.YNc(2,jk,3,1,"div",1),f.TgZ(3,"div",2),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.YNc(6,Fk,2,1,"div",3),f.TgZ(7,"div",4),f.NdJ("click",function(){return t.waiting=!0,t.doAction()}),f._uU(8),f.qZA()()()),2&e&&(f.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),f.ekj("error","error"===t.data.type)("success","success"===t.data.type),f.xp6(2),f.Q6J("ngIf",null!==t.data.icon),f.xp6(2),f.hij(" ",f.lcZ(5,12,t.data.title)," "),f.xp6(2),f.Q6J("ngIf",t.inDialog),f.xp6(1),f.Q6J("hidden",t.alreadyPressed),f.xp6(1),f.hij(" ",t.data.actionText," "))},dependencies:[M.O5,Gr,Ai],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),r})(),Nk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),$k=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),tV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$k,$e,$e]}),r})(),rV=(()=>{class r{constructor(){this.changes=new He.x,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(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const fV={provide:new f.OlP("mat-datepicker-scroll-strategy"),deps:[gn],useFactory:function pV(r){return()=>r.scrollStrategies.reposition()}};let Mx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[rV,fV],imports:[M.ez,kn,va,wl,po,$e,Ca]}),r})(),RV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[In,$e,$e]}),r})();new f.OlP("mat-selectsearch-default-options");let BV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[[M.ez,x,kn,bC,jn,yf,_o]]}),r})(),sD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})(),Dx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})(),OV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),cD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,$e,OV,po]}),r})(),uD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[pd,$e,pd,$e]}),r})(),FV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[so]}),r})(),Hx=(()=>{class r{constructor(){this.changes=new He.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const KV={provide:Hx,deps:[[new f.FiY,new f.tp0,Hx]],useFactory:function JV(r){return r||new Hx}};let mD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[KV,vl],imports:[$e,M.ez,po,kn,FV,jn,In,$e]}),r})(),gD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,$e,Ca,Ca,$e]}),r})(),bD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[pd,In,$e,Al,M.ez,pd,$e,Al,Dx]}),r})(),gB=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,$e,po,In,oo,wl,$e]}),r})(),CD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),wD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[CD,In,$e,oo,CD,$e]}),r})(),yD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,sD,Dx,cD,kn,uD,bC,jn,MC,Ep,yf,xa,xo,cs,y,x,mD,Mx,Dh,gD,bD,ql,OE,gx,zr,_o,Ld,In,MC,wD,bx,sD,Dx,cD,kn,uD,bC,jn,MC,Ep,yf,xa,xo,cs,y,x,mD,Mx,Dh,gD,bD,ql,OE,gx,zr,_o,Ld,In,gB,wD,bx]}),r})(),DB=(()=>{class r extends bg{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const HB={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let vD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[{provide:rn,useClass:DB},{provide:ns,useValue:HB}],imports:[M.ez,bC,MC,y,bx,Lk,ys,Ko,gx,zr,yf,eC,jn,ql,kn,_o,xa,x,xo,In,vH,Nk,tV,Mx,RV,Rh,Ld,BV,cs,Ep,dA,yD,kR]}),r})();f.B6R(BE,[M.O5,Ha,Di,Og,fv,Nh,Ea,Da,Uk],[Ai,kE]),new Date(324721404e5).valueOf();let ZO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,kn,jn,Ko,vD,ys,xa,x,xo,eC]}),r})(),XO=(()=>{class r{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36($r),f.Y36(Qt))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(f.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"button",4),f.NdJ("click",function(){return t.startAuth()}),f._uU(7),f.ALo(8,"translate"),f.TgZ(9,"mat-icon"),f._uU(10," login "),f.qZA()()()()()),2&e&&(f.xp6(4),f.hij(" ",f.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),f.xp6(3),f.hij(" ",f.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Di,Gr,Ai],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),r})();function eL(r,a){1&r&&(f.TgZ(0,"perun-web-apps-alert",8),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const tL=[{path:"service-access",component:(()=>{class r{constructor(e,t,s){this.authzService=e,this.auth=t,this.router=s,this.usernameCtrl=new Qr(null,[mr.required]),this.passwordCtrl=new Qr(null,[mr.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(lt),f.Y36($r),f.Y36(Qt))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl","keyup.enter"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(f.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.YNc(6,eL,3,3,"perun-web-apps-alert",3),f.TgZ(7,"mat-form-field",4)(8,"mat-label"),f._uU(9),f.ALo(10,"translate"),f.qZA(),f.TgZ(11,"input",5),f.NdJ("keyup.enter",function(){return t.startAuth()}),f.qZA(),f.TgZ(12,"mat-error"),f._uU(13),f.ALo(14,"translate"),f.qZA()(),f.TgZ(15,"mat-form-field",4)(16,"mat-label"),f._uU(17),f.ALo(18,"translate"),f.qZA(),f.TgZ(19,"input",6),f.NdJ("keyup.enter",function(){return t.startAuth()}),f.qZA(),f.TgZ(20,"mat-error"),f._uU(21),f.ALo(22,"translate"),f.qZA()(),f.TgZ(23,"button",7),f.NdJ("click",function(){return t.startAuth()}),f._uU(24),f.ALo(25,"translate"),f.TgZ(26,"mat-icon"),f._uU(27," login "),f.qZA()()()()()),2&e&&(f.xp6(4),f.Oqu(f.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),f.xp6(2),f.Q6J("ngIf",t.wrongUsernameOrPassword),f.xp6(3),f.Oqu(f.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),f.xp6(2),f.Q6J("formControl",t.usernameCtrl),f.xp6(2),f.hij(" ",f.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),f.xp6(4),f.Oqu(f.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),f.xp6(2),f.Q6J("formControl",t.passwordCtrl)("type","password"),f.xp6(2),f.hij(" ",f.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),f.xp6(2),f.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),f.xp6(1),f.hij(" ",f.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[M.O5,Di,Gr,bs,Bl,Aa,fr,wo,Ao,Es,qn,Ha,Ai],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),r})()},{path:"login",component:XO}];let iL=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Ko.forRoot(tL,{relativeLinkResolution:"legacy"}),M.ez,Ko]}),r})(),nL=(()=>{class r{constructor(e,t,s,u,d){this.http=e,this.storeService=t,this.authzSevice=s,this.titleService=u,this.utilsService=d}initializeColors(e,t){return new Promise(s=>{t.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d)}),e.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d),this.setEntityTheme(u.entity,d)}),s()})}setEntityTheme(e,t){const s=function rL(r){return[Cn(tinycolor(r).lighten(52),"50"),Cn(tinycolor(r).lighten(37),"100"),Cn(tinycolor(r).lighten(26),"200"),Cn(tinycolor(r).lighten(12),"300"),Cn(tinycolor(r).lighten(6),"400"),Cn(tinycolor(r),"500"),Cn(tinycolor(r).darken(6),"600"),Cn(tinycolor(r).darken(12),"700"),Cn(tinycolor(r).darken(18),"800"),Cn(tinycolor(r).darken(24),"900"),Cn(tinycolor(r).lighten(50).saturate(30),"A100"),Cn(tinycolor(r).lighten(30).saturate(30),"A200"),Cn(tinycolor(r).lighten(10).saturate(15),"A400"),Cn(tinycolor(r).lighten(5).saturate(5),"A700")]}(t);for(const u of s){const n=`--${e}-theme-primary-contrast-${u.name}`,i=u.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${u.name}`,`${u.red},${u.green},${u.blue}`),document.documentElement.style.setProperty(n,i)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const s=document.location.hostname;t?.brandings?.[s]&&this.storeService.setBanding(s),e()},()=>{e()})})}getNoCacheHeaders(){return new v.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(s=>{this.storeService.setAppsConfig(s),e()},s=>t(s))})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mi),f.LFG(lt),f.LFG(X),f.LFG(ea))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function Cn(r,a){const e=tinycolor(r),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let aL=(()=>{class r{constructor(e,t,s,u){this.initAuthService=e,this.appConfigService=t,this.location=s,this.mfaHandlerService=u}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>location.search.substring(1).includes("token")?Promise.resolve(!0):this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),location.search.substring(1).includes("token")?void 0:this.initAuthService.loadPrincipal().then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Vp),f.LFG(nL),f.LFG(M.Ye),f.LFG(kp))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const oL=new f.OlP("perun-api-service"),sL={provide:v.TP,useExisting:(0,f.Gpc)(()=>nu),multi:!0};function lL(r){return new wP(r,"./assets/i18n/",".json")}function cL(r){const a={basePath:r.getProperty("api_url")};return new Ue(a)}const dL=r=>()=>r.loadConfigs();let uL=(()=>{class r{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(NA),f.LFG(Oi))},r.\u0275mod=f.oAB({type:r,bootstrap:[CP]}),r.\u0275inj=f.cJS({providers:[NA,{provide:f.ip1,useFactory:dL,multi:!0,deps:[aL]},{provide:Ue,useFactory:cL,deps:[mi]},nu,sL,{provide:oL,useClass:cb},{provide:Co.Hy,useFactory:()=>localStorage}],imports:[Na,ys.forRoot({loader:{provide:Gl,useFactory:lL,deps:[v.eN]}}),wI,jn,yI,Of,v.JF,iL,yD,eC,HH,Co.zr.forRoot(),vD,ZO]}),r})();(0,f.G48)(),Ke().bootstrapModule(uL).catch(r=>console.error(r))},1302:function(N,z,E){var M;!function(f,L){var F={};!function(f){"use strict";f.__esModule=!0,f.digestLength=32,f.blockSize=64;var L=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function F(oe,te,ae,he,fe){for(var _e,Oe,je,Ae,Ce,xe,Je,Re,De,Me,le,ce,ge;fe>=64;){for(_e=te[0],Oe=te[1],je=te[2],Ae=te[3],Ce=te[4],xe=te[5],Je=te[6],Re=te[7],Me=0;Me<16;Me++)oe[Me]=(255&ae[le=he+4*Me])<<24|(255&ae[le+1])<<16|(255&ae[le+2])<<8|255&ae[le+3];for(Me=16;Me<64;Me++)oe[Me]=((ce=((De=oe[Me-2])>>>17|De<<15)^(De>>>19|De<<13)^De>>>10)+oe[Me-7]|0)+((ge=((De=oe[Me-15])>>>7|De<<25)^(De>>>18|De<<14)^De>>>3)+oe[Me-16]|0);for(Me=0;Me<64;Me++)ce=(((Ce>>>6|Ce<<26)^(Ce>>>11|Ce<<21)^(Ce>>>25|Ce<<7))+(Ce&xe^~Ce&Je)|0)+(Re+(L[Me]+oe[Me]|0)|0)|0,ge=((_e>>>2|_e<<30)^(_e>>>13|_e<<19)^(_e>>>22|_e<<10))+(_e&Oe^_e&je^Oe&je)|0,Re=Je,Je=xe,xe=Ce,Ce=Ae+ce|0,Ae=je,je=Oe,Oe=_e,_e=ce+ge|0;te[0]+=_e,te[1]+=Oe,te[2]+=je,te[3]+=Ae,te[4]+=Ce,te[5]+=xe,te[6]+=Je,te[7]+=Re,he+=64,fe-=64}return he}var B=function(){function oe(){this.digestLength=f.digestLength,this.blockSize=f.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return oe.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},oe.prototype.clean=function(){for(var te=0;te0){for(;this.bufferLength<64&&ae>0;)this.buffer[this.bufferLength++]=te[he++],ae--;64===this.bufferLength&&(F(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ae>=64&&(he=F(this.temp,this.state,te,he,ae),ae%=64);ae>0;)this.buffer[this.bufferLength++]=te[he++],ae--;return this},oe.prototype.finish=function(te){if(!this.finished){var ae=this.bytesHashed,he=this.bufferLength,fe=ae/536870912|0,_e=ae<<3,Oe=ae%64<56?64:128;this.buffer[he]=128;for(var je=he+1;je>>24&255,this.buffer[Oe-7]=fe>>>16&255,this.buffer[Oe-6]=fe>>>8&255,this.buffer[Oe-5]=fe>>>0&255,this.buffer[Oe-4]=_e>>>24&255,this.buffer[Oe-3]=_e>>>16&255,this.buffer[Oe-2]=_e>>>8&255,this.buffer[Oe-1]=_e>>>0&255,F(this.temp,this.state,this.buffer,0,Oe),this.finished=!0}for(je=0;je<8;je++)te[4*je+0]=this.state[je]>>>24&255,te[4*je+1]=this.state[je]>>>16&255,te[4*je+2]=this.state[je]>>>8&255,te[4*je+3]=this.state[je]>>>0&255;return this},oe.prototype.digest=function(){var te=new Uint8Array(this.digestLength);return this.finish(te),te},oe.prototype._saveState=function(te){for(var ae=0;aethis.blockSize)(new B).update(te).finish(ae).clean();else for(var he=0;he1&&te.update(oe),ae&&te.update(ae),te.update(he),te.finish(oe),he[0]++}f.HMAC=q,f.hash=Q,f.default=Q,f.hmac=ee;var Y=new Uint8Array(f.digestLength);f.hkdf=function G(oe,te,ae,he){void 0===te&&(te=Y),void 0===he&&(he=32);for(var fe=new Uint8Array([1]),_e=ee(te,oe),Oe=new q(_e),je=new Uint8Array(Oe.digestLength),Ae=je.length,Ce=new Uint8Array(he),xe=0;xe>>24&255,Oe[1]=Je>>>16&255,Oe[2]=Je>>>8&255,Oe[3]=Je>>>0&255,fe.reset(),fe.update(te),fe.update(Oe),fe.finish(Ae);for(var Re=0;Re<_e;Re++)je[Re]=Ae[Re];for(Re=2;Re<=ae;Re++){fe.reset(),fe.update(Ae).finish(Ae);for(var De=0;De<_e;De++)je[De]^=Ae[De]}for(Re=0;Re<_e&&xe*_e+Re=G.status}function q(Y){try{Y.dispatchEvent(new MouseEvent("click"))}catch{var G=document.createEvent("MouseEvents");G.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Y.dispatchEvent(G)}}var Q="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,ee=Q.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),W=Q.saveAs||("object"!=typeof window||window!==Q?function(){}:"download"in HTMLAnchorElement.prototype&&!ee?function(Y,G,re){var oe=Q.URL||Q.webkitURL,te=document.createElement("a");te.download=G=G||Y.name||"download",te.rel="noopener","string"==typeof Y?(te.href=Y,te.origin===location.origin?q(te):B(te.href)?F(Y,G,re):q(te,te.target="_blank")):(te.href=oe.createObjectURL(Y),setTimeout(function(){oe.revokeObjectURL(te.href)},4e4),setTimeout(function(){q(te)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,G,re){if(G=G||Y.name||"download","string"!=typeof Y)navigator.msSaveOrOpenBlob(function L(Y,G){return typeof G>"u"?G={autoBom:!1}:"object"!=typeof G&&(console.warn("Deprecated: Expected third argument to be a object"),G={autoBom:!G}),G.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Y.type)?new Blob(["\ufeff",Y],{type:Y.type}):Y}(Y,re),G);else if(B(Y))F(Y,G,re);else{var oe=document.createElement("a");oe.href=Y,oe.target="_blank",setTimeout(function(){q(oe)})}}:function(Y,G,re,oe){if((oe=oe||open("","_blank"))&&(oe.document.title=oe.document.body.innerText="downloading..."),"string"==typeof Y)return F(Y,G,re);var te="application/octet-stream"===Y.type,ae=/constructor/i.test(Q.HTMLElement)||Q.safari,he=/CriOS\/[\d]+/.test(navigator.userAgent);if((he||te&&ae||ee)&&typeof FileReader<"u"){var fe=new FileReader;fe.onloadend=function(){var je=fe.result;je=he?je:je.replace(/^data:[^;]*;/,"data:attachment/file;"),oe?oe.location.href=je:location=je,oe=null},fe.readAsDataURL(Y)}else{var _e=Q.URL||Q.webkitURL,Oe=_e.createObjectURL(Y);oe?oe.location=Oe:location.href=Oe,oe=null,setTimeout(function(){_e.revokeObjectURL(Oe)},4e4)}});Q.saveAs=W.saveAs=W,N.exports=W}.apply(z,[]))&&(N.exports=f)},9751:(N,z,E)=>{"use strict";E.d(z,{y:()=>ee});var M=E(930),f=E(727),L=E(8822),F=E(9635),B=E(2416),q=E(576),Q=E(2806);let ee=(()=>{class re{constructor(te){te&&(this._subscribe=te)}lift(te){const ae=new re;return ae.source=this,ae.operator=te,ae}subscribe(te,ae,he){const fe=function G(re){return re&&re instanceof M.Lv||function Y(re){return re&&(0,q.m)(re.next)&&(0,q.m)(re.error)&&(0,q.m)(re.complete)}(re)&&(0,f.Nn)(re)}(te)?te:new M.Hp(te,ae,he);return(0,Q.x)(()=>{const{operator:_e,source:Oe}=this;fe.add(_e?_e.call(fe,Oe):Oe?this._subscribe(fe):this._trySubscribe(fe))}),fe}_trySubscribe(te){try{return this._subscribe(te)}catch(ae){te.error(ae)}}forEach(te,ae){return new(ae=W(ae))((he,fe)=>{const _e=new M.Hp({next:Oe=>{try{te(Oe)}catch(je){fe(je),_e.unsubscribe()}},error:fe,complete:he});this.subscribe(_e)})}_subscribe(te){var ae;return null===(ae=this.source)||void 0===ae?void 0:ae.subscribe(te)}[L.L](){return this}pipe(...te){return(0,F.U)(te)(this)}toPromise(te){return new(te=W(te))((ae,he)=>{let fe;this.subscribe(_e=>fe=_e,_e=>he(_e),()=>ae(fe))})}}return re.create=oe=>new re(oe),re})();function W(re){var oe;return null!==(oe=re??B.v.Promise)&&void 0!==oe?oe:Promise}},7579:(N,z,E)=>{"use strict";E.d(z,{x:()=>Q});var M=E(9751),f=E(727);const F=(0,E(3888).d)(W=>function(){W(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var B=E(8737),q=E(2806);let Q=(()=>{class W extends M.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const re=new ee(this,this);return re.operator=G,re}_throwIfClosed(){if(this.closed)throw new F}next(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const re of this.currentObservers)re.next(G)}})}error(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:re}=this;for(;re.length;)re.shift().error(G)}})}complete(){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:G}=this;for(;G.length;)G.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var G;return(null===(G=this.observers)||void 0===G?void 0:G.length)>0}_trySubscribe(G){return this._throwIfClosed(),super._trySubscribe(G)}_subscribe(G){return this._throwIfClosed(),this._checkFinalizedStatuses(G),this._innerSubscribe(G)}_innerSubscribe(G){const{hasError:re,isStopped:oe,observers:te}=this;return re||oe?f.Lc:(this.currentObservers=null,te.push(G),new f.w0(()=>{this.currentObservers=null,(0,B.P)(te,G)}))}_checkFinalizedStatuses(G){const{hasError:re,thrownError:oe,isStopped:te}=this;re?G.error(oe):te&&G.complete()}asObservable(){const G=new M.y;return G.source=this,G}}return W.create=(Y,G)=>new ee(Y,G),W})();class ee extends Q{constructor(Y,G){super(),this.destination=Y,this.source=G}next(Y){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===re||re.call(G,Y)}error(Y){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===re||re.call(G,Y)}complete(){var Y,G;null===(G=null===(Y=this.destination)||void 0===Y?void 0:Y.complete)||void 0===G||G.call(Y)}_subscribe(Y){var G,re;return null!==(re=null===(G=this.source)||void 0===G?void 0:G.subscribe(Y))&&void 0!==re?re:f.Lc}}},930:(N,z,E)=>{"use strict";E.d(z,{Hp:()=>he,Lv:()=>re});var M=E(576),f=E(727),L=E(2416),F=E(7849),B=E(5032);const q=W("C",void 0,void 0);function W(Ae,Ce,xe){return{kind:Ae,value:Ce,error:xe}}var Y=E(3410),G=E(2806);class re extends f.w0{constructor(Ce){super(),this.isStopped=!1,Ce?(this.destination=Ce,(0,f.Nn)(Ce)&&Ce.add(this)):this.destination=je}static create(Ce,xe,Je){return new he(Ce,xe,Je)}next(Ce){this.isStopped?Oe(function ee(Ae){return W("N",Ae,void 0)}(Ce),this):this._next(Ce)}error(Ce){this.isStopped?Oe(function Q(Ae){return W("E",void 0,Ae)}(Ce),this):(this.isStopped=!0,this._error(Ce))}complete(){this.isStopped?Oe(q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ce){this.destination.next(Ce)}_error(Ce){try{this.destination.error(Ce)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const oe=Function.prototype.bind;function te(Ae,Ce){return oe.call(Ae,Ce)}class ae{constructor(Ce){this.partialObserver=Ce}next(Ce){const{partialObserver:xe}=this;if(xe.next)try{xe.next(Ce)}catch(Je){fe(Je)}}error(Ce){const{partialObserver:xe}=this;if(xe.error)try{xe.error(Ce)}catch(Je){fe(Je)}else fe(Ce)}complete(){const{partialObserver:Ce}=this;if(Ce.complete)try{Ce.complete()}catch(xe){fe(xe)}}}class he extends re{constructor(Ce,xe,Je){let Re;if(super(),(0,M.m)(Ce)||!Ce)Re={next:Ce??void 0,error:xe??void 0,complete:Je??void 0};else{let De;this&&L.v.useDeprecatedNextContext?(De=Object.create(Ce),De.unsubscribe=()=>this.unsubscribe(),Re={next:Ce.next&&te(Ce.next,De),error:Ce.error&&te(Ce.error,De),complete:Ce.complete&&te(Ce.complete,De)}):Re=Ce}this.destination=new ae(Re)}}function fe(Ae){L.v.useDeprecatedSynchronousErrorHandling?(0,G.O)(Ae):(0,F.h)(Ae)}function Oe(Ae,Ce){const{onStoppedNotification:xe}=L.v;xe&&Y.z.setTimeout(()=>xe(Ae,Ce))}const je={closed:!0,next:B.Z,error:function _e(Ae){throw Ae},complete:B.Z}},727:(N,z,E)=>{"use strict";E.d(z,{Lc:()=>q,w0:()=>B,Nn:()=>Q});var M=E(576);const L=(0,E(3888).d)(W=>function(G){W(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((re,oe)=>`${oe+1}) ${re.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var F=E(8737);class B{constructor(Y){this.initialTeardown=Y,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Y;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const te of G)te.remove(this);else G.remove(this);const{initialTeardown:re}=this;if((0,M.m)(re))try{re()}catch(te){Y=te instanceof L?te.errors:[te]}const{_finalizers:oe}=this;if(oe){this._finalizers=null;for(const te of oe)try{ee(te)}catch(ae){Y=Y??[],ae instanceof L?Y=[...Y,...ae.errors]:Y.push(ae)}}if(Y)throw new L(Y)}}add(Y){var G;if(Y&&Y!==this)if(this.closed)ee(Y);else{if(Y instanceof B){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push(Y)}}_hasParent(Y){const{_parentage:G}=this;return G===Y||Array.isArray(G)&&G.includes(Y)}_addParent(Y){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push(Y),G):G?[G,Y]:Y}_removeParent(Y){const{_parentage:G}=this;G===Y?this._parentage=null:Array.isArray(G)&&(0,F.P)(G,Y)}remove(Y){const{_finalizers:G}=this;G&&(0,F.P)(G,Y),Y instanceof B&&Y._removeParent(this)}}B.EMPTY=(()=>{const W=new B;return W.closed=!0,W})();const q=B.EMPTY;function Q(W){return W instanceof B||W&&"closed"in W&&(0,M.m)(W.remove)&&(0,M.m)(W.add)&&(0,M.m)(W.unsubscribe)}function ee(W){(0,M.m)(W)?W():W.unsubscribe()}},2416:(N,z,E)=>{"use strict";E.d(z,{v:()=>M});const M={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(N,z,E)=>{"use strict";E.d(z,{a:()=>Y});var M=E(9751),f=E(4742),L=E(2076),F=E(4671),B=E(3268),q=E(3269),Q=E(1810),ee=E(5403),W=E(9672);function Y(...oe){const te=(0,q.yG)(oe),ae=(0,q.jO)(oe),{args:he,keys:fe}=(0,f.D)(oe);if(0===he.length)return(0,L.D)([],te);const _e=new M.y(function G(oe,te,ae=F.y){return he=>{re(te,()=>{const{length:fe}=oe,_e=new Array(fe);let Oe=fe,je=fe;for(let Ae=0;Ae{const Ce=(0,L.D)(oe[Ae],te);let xe=!1;Ce.subscribe((0,ee.x)(he,Je=>{_e[Ae]=Je,xe||(xe=!0,je--),je||he.next(ae(_e.slice()))},()=>{--Oe||he.complete()}))},he)},he)}}(he,te,fe?Oe=>(0,Q.n)(fe,Oe):F.y));return ae?_e.pipe((0,B.Z)(ae)):_e}function re(oe,te,ae){oe?(0,W.f)(ae,oe,te):te()}},7272:(N,z,E)=>{"use strict";E.d(z,{z:()=>B});var M=E(8189),L=E(3269),F=E(2076);function B(...q){return function f(){return(0,M.J)(1)}()((0,F.D)(q,(0,L.yG)(q)))}},515:(N,z,E)=>{"use strict";E.d(z,{E:()=>f});const f=new(E(9751).y)(B=>B.complete())},2076:(N,z,E)=>{"use strict";E.d(z,{D:()=>Je});var M=E(8421),f=E(9672),L=E(4482),F=E(5403);function B(Re,De=0){return(0,L.e)((Me,le)=>{Me.subscribe((0,F.x)(le,ce=>(0,f.f)(le,Re,()=>le.next(ce),De),()=>(0,f.f)(le,Re,()=>le.complete(),De),ce=>(0,f.f)(le,Re,()=>le.error(ce),De)))})}function q(Re,De=0){return(0,L.e)((Me,le)=>{le.add(Re.schedule(()=>Me.subscribe(le),De))})}var W=E(9751),G=E(2202),re=E(576);function te(Re,De){if(!Re)throw new Error("Iterable cannot be null");return new W.y(Me=>{(0,f.f)(Me,De,()=>{const le=Re[Symbol.asyncIterator]();(0,f.f)(Me,De,()=>{le.next().then(ce=>{ce.done?Me.complete():Me.next(ce.value)})},0,!0)})})}var ae=E(3670),he=E(8239),fe=E(1144),_e=E(6495),Oe=E(2206),je=E(4532),Ae=E(3260);function Je(Re,De){return De?function xe(Re,De){if(null!=Re){if((0,ae.c)(Re))return function Q(Re,De){return(0,M.Xf)(Re).pipe(q(De),B(De))}(Re,De);if((0,fe.z)(Re))return function Y(Re,De){return new W.y(Me=>{let le=0;return De.schedule(function(){le===Re.length?Me.complete():(Me.next(Re[le++]),Me.closed||this.schedule())})})}(Re,De);if((0,he.t)(Re))return function ee(Re,De){return(0,M.Xf)(Re).pipe(q(De),B(De))}(Re,De);if((0,Oe.D)(Re))return te(Re,De);if((0,_e.T)(Re))return function oe(Re,De){return new W.y(Me=>{let le;return(0,f.f)(Me,De,()=>{le=Re[G.h](),(0,f.f)(Me,De,()=>{let ce,ge;try{({value:ce,done:ge}=le.next())}catch(pe){return void Me.error(pe)}ge?Me.complete():Me.next(ce)},0,!0)}),()=>(0,re.m)(le?.return)&&le.return()})}(Re,De);if((0,Ae.L)(Re))return function Ce(Re,De){return te((0,Ae.Q)(Re),De)}(Re,De)}throw(0,je.z)(Re)}(Re,De):(0,M.Xf)(Re)}},8421:(N,z,E)=>{"use strict";E.d(z,{Xf:()=>oe});var M=E(655),f=E(1144),L=E(8239),F=E(9751),B=E(3670),q=E(2206),Q=E(4532),ee=E(6495),W=E(3260),Y=E(576),G=E(7849),re=E(8822);function oe(Ae){if(Ae instanceof F.y)return Ae;if(null!=Ae){if((0,B.c)(Ae))return function te(Ae){return new F.y(Ce=>{const xe=Ae[re.L]();if((0,Y.m)(xe.subscribe))return xe.subscribe(Ce);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ae);if((0,f.z)(Ae))return function ae(Ae){return new F.y(Ce=>{for(let xe=0;xe{Ae.then(xe=>{Ce.closed||(Ce.next(xe),Ce.complete())},xe=>Ce.error(xe)).then(null,G.h)})}(Ae);if((0,q.D)(Ae))return _e(Ae);if((0,ee.T)(Ae))return function fe(Ae){return new F.y(Ce=>{for(const xe of Ae)if(Ce.next(xe),Ce.closed)return;Ce.complete()})}(Ae);if((0,W.L)(Ae))return function Oe(Ae){return _e((0,W.Q)(Ae))}(Ae)}throw(0,Q.z)(Ae)}function _e(Ae){return new F.y(Ce=>{(function je(Ae,Ce){var xe,Je,Re,De;return(0,M.mG)(this,void 0,void 0,function*(){try{for(xe=(0,M.KL)(Ae);!(Je=yield xe.next()).done;)if(Ce.next(Je.value),Ce.closed)return}catch(Me){Re={error:Me}}finally{try{Je&&!Je.done&&(De=xe.return)&&(yield De.call(xe))}finally{if(Re)throw Re.error}}Ce.complete()})})(Ae,Ce).catch(xe=>Ce.error(xe))})}},6451:(N,z,E)=>{"use strict";E.d(z,{T:()=>q});var M=E(8189),f=E(8421),L=E(515),F=E(3269),B=E(2076);function q(...Q){const ee=(0,F.yG)(Q),W=(0,F._6)(Q,1/0),Y=Q;return Y.length?1===Y.length?(0,f.Xf)(Y[0]):(0,M.J)(W)((0,B.D)(Y,ee)):L.E}},9646:(N,z,E)=>{"use strict";E.d(z,{of:()=>L});var M=E(3269),f=E(2076);function L(...F){const B=(0,M.yG)(F);return(0,f.D)(F,B)}},102:(N,z,E)=>{"use strict";E.d(z,{S:()=>q});var M=E(9751),f=E(8421);const{isArray:L}=Array;var B=E(5403);function q(...ee){return 1===(ee=function F(ee){return 1===ee.length&&L(ee[0])?ee[0]:ee}(ee)).length?(0,f.Xf)(ee[0]):new M.y(function Q(ee){return W=>{let Y=[];for(let G=0;Y&&!W.closed&&G{if(Y){for(let oe=0;oe{"use strict";E.d(z,{_:()=>L});var M=E(9751),f=E(576);function L(F,B){const q=(0,f.m)(F)?F:()=>F,Q=ee=>ee.error(q());return new M.y(B?ee=>B.schedule(Q,0,ee):Q)}},2805:(N,z,E)=>{"use strict";E.d(z,{H:()=>B});var M=E(9751),f=E(4986),L=E(3532),F=E(1165);function B(q=0,Q,ee=f.P){let W=-1;return null!=Q&&((0,L.K)(Q)?ee=Q:W=Q),new M.y(Y=>{let G=(0,F.q)(q)?+q-ee.now():q;G<0&&(G=0);let re=0;return ee.schedule(function(){Y.closed||(Y.next(re++),0<=W?this.schedule(void 0,W):Y.complete())},G)})}},5403:(N,z,E)=>{"use strict";E.d(z,{x:()=>f});var M=E(930);function f(F,B,q,Q,ee){return new L(F,B,q,Q,ee)}class L extends M.Lv{constructor(B,q,Q,ee,W,Y){super(B),this.onFinalize=W,this.shouldUnsubscribe=Y,this._next=q?function(G){try{q(G)}catch(re){B.error(re)}}:super._next,this._error=ee?function(G){try{ee(G)}catch(re){B.error(re)}finally{this.unsubscribe()}}:super._error,this._complete=Q?function(){try{Q()}catch(G){B.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var B;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:q}=this;super.unsubscribe(),!q&&(null===(B=this.onFinalize)||void 0===B||B.call(this))}}}},262:(N,z,E)=>{"use strict";E.d(z,{K:()=>F});var M=E(8421),f=E(5403),L=E(4482);function F(B){return(0,L.e)((q,Q)=>{let Y,ee=null,W=!1;ee=q.subscribe((0,f.x)(Q,void 0,void 0,G=>{Y=(0,M.Xf)(B(G,F(B)(q))),ee?(ee.unsubscribe(),ee=null,Y.subscribe(Q)):W=!0})),W&&(ee.unsubscribe(),ee=null,Y.subscribe(Q))})}},4351:(N,z,E)=>{"use strict";E.d(z,{b:()=>L});var M=E(5577),f=E(576);function L(F,B){return(0,f.m)(B)?(0,M.z)(F,B,1):(0,M.z)(F,1)}},8372:(N,z,E)=>{"use strict";E.d(z,{b:()=>F});var M=E(4986),f=E(4482),L=E(5403);function F(B,q=M.z){return(0,f.e)((Q,ee)=>{let W=null,Y=null,G=null;const re=()=>{if(W){W.unsubscribe(),W=null;const te=Y;Y=null,ee.next(te)}};function oe(){const te=G+B,ae=q.now();if(ae{Y=te,G=q.now(),W||(W=q.schedule(oe,B),ee.add(W))},()=>{re(),ee.complete()},void 0,()=>{Y=W=null}))})}},6590:(N,z,E)=>{"use strict";E.d(z,{d:()=>L});var M=E(4482),f=E(5403);function L(F){return(0,M.e)((B,q)=>{let Q=!1;B.subscribe((0,f.x)(q,ee=>{Q=!0,q.next(ee)},()=>{Q||q.next(F),q.complete()}))})}},1005:(N,z,E)=>{"use strict";E.d(z,{g:()=>re});var M=E(4986),f=E(7272),L=E(5698),F=E(4482),B=E(5403),q=E(5032),ee=E(9718),W=E(5577);function Y(oe,te){return te?ae=>(0,f.z)(te.pipe((0,L.q)(1),function Q(){return(0,F.e)((oe,te)=>{oe.subscribe((0,B.x)(te,q.Z))})}()),ae.pipe(Y(oe))):(0,W.z)((ae,he)=>oe(ae,he).pipe((0,L.q)(1),(0,ee.h)(ae)))}var G=E(2805);function re(oe,te=M.z){const ae=(0,G.H)(oe,te);return Y(()=>ae)}},9300:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(4482),f=E(5403);function L(F,B){return(0,M.e)((q,Q)=>{let ee=0;q.subscribe((0,f.x)(Q,W=>F.call(B,W,ee++)&&Q.next(W)))})}},590:(N,z,E)=>{"use strict";E.d(z,{P:()=>Q});var M=E(6805),f=E(9300),L=E(5698),F=E(6590),B=E(8068),q=E(4671);function Q(ee,W){const Y=arguments.length>=2;return G=>G.pipe(ee?(0,f.h)((re,oe)=>ee(re,oe,G)):q.y,(0,L.q)(1),Y?(0,F.d)(W):(0,B.T)(()=>new M.K))}},4004:(N,z,E)=>{"use strict";E.d(z,{U:()=>L});var M=E(4482),f=E(5403);function L(F,B){return(0,M.e)((q,Q)=>{let ee=0;q.subscribe((0,f.x)(Q,W=>{Q.next(F.call(B,W,ee++))}))})}},9718:(N,z,E)=>{"use strict";E.d(z,{h:()=>f});var M=E(4004);function f(L){return(0,M.U)(()=>L)}},8189:(N,z,E)=>{"use strict";E.d(z,{J:()=>L});var M=E(5577),f=E(4671);function L(F=1/0){return(0,M.z)(f.y,F)}},5577:(N,z,E)=>{"use strict";E.d(z,{z:()=>ee});var M=E(4004),f=E(8421),L=E(4482),F=E(9672),B=E(5403),Q=E(576);function ee(W,Y,G=1/0){return(0,Q.m)(Y)?ee((re,oe)=>(0,M.U)((te,ae)=>Y(re,te,oe,ae))((0,f.Xf)(W(re,oe))),G):("number"==typeof Y&&(G=Y),(0,L.e)((re,oe)=>function q(W,Y,G,re,oe,te,ae,he){const fe=[];let _e=0,Oe=0,je=!1;const Ae=()=>{je&&!fe.length&&!_e&&Y.complete()},Ce=Je=>_e{te&&Y.next(Je),_e++;let Re=!1;(0,f.Xf)(G(Je,Oe++)).subscribe((0,B.x)(Y,De=>{oe?.(De),te?Ce(De):Y.next(De)},()=>{Re=!0},void 0,()=>{if(Re)try{for(_e--;fe.length&&_exe(De)):xe(De)}Ae()}catch(De){Y.error(De)}}))};return W.subscribe((0,B.x)(Y,Ce,()=>{je=!0,Ae()})),()=>{he?.()}}(re,oe,W,G)))}},3099:(N,z,E)=>{"use strict";E.d(z,{B:()=>B});var M=E(8421),f=E(7579),L=E(930),F=E(4482);function B(Q={}){const{connector:ee=(()=>new f.x),resetOnError:W=!0,resetOnComplete:Y=!0,resetOnRefCountZero:G=!0}=Q;return re=>{let oe,te,ae,he=0,fe=!1,_e=!1;const Oe=()=>{te?.unsubscribe(),te=void 0},je=()=>{Oe(),oe=ae=void 0,fe=_e=!1},Ae=()=>{const Ce=oe;je(),Ce?.unsubscribe()};return(0,F.e)((Ce,xe)=>{he++,!_e&&!fe&&Oe();const Je=ae=ae??ee();xe.add(()=>{he--,0===he&&!_e&&!fe&&(te=q(Ae,G))}),Je.subscribe(xe),!oe&&he>0&&(oe=new L.Hp({next:Re=>Je.next(Re),error:Re=>{_e=!0,Oe(),te=q(je,W,Re),Je.error(Re)},complete:()=>{fe=!0,Oe(),te=q(je,Y),Je.complete()}}),(0,M.Xf)(Ce).subscribe(oe))})(re)}}function q(Q,ee,...W){if(!0===ee)return void Q();if(!1===ee)return;const Y=new L.Hp({next:()=>{Y.unsubscribe(),Q()}});return ee(...W).subscribe(Y)}},3900:(N,z,E)=>{"use strict";E.d(z,{w:()=>F});var M=E(8421),f=E(4482),L=E(5403);function F(B,q){return(0,f.e)((Q,ee)=>{let W=null,Y=0,G=!1;const re=()=>G&&!W&&ee.complete();Q.subscribe((0,L.x)(ee,oe=>{W?.unsubscribe();let te=0;const ae=Y++;(0,M.Xf)(B(oe,ae)).subscribe(W=(0,L.x)(ee,he=>ee.next(q?q(oe,he,ae,te++):he),()=>{W=null,re()}))},()=>{G=!0,re()}))})}},5698:(N,z,E)=>{"use strict";E.d(z,{q:()=>F});var M=E(515),f=E(4482),L=E(5403);function F(B){return B<=0?()=>M.E:(0,f.e)((q,Q)=>{let ee=0;q.subscribe((0,L.x)(Q,W=>{++ee<=B&&(Q.next(W),B<=ee&&Q.complete())}))})}},8505:(N,z,E)=>{"use strict";E.d(z,{b:()=>B});var M=E(576),f=E(4482),L=E(5403),F=E(4671);function B(q,Q,ee){const W=(0,M.m)(q)||Q||ee?{next:q,error:Q,complete:ee}:q;return W?(0,f.e)((Y,G)=>{var re;null===(re=W.subscribe)||void 0===re||re.call(W);let oe=!0;Y.subscribe((0,L.x)(G,te=>{var ae;null===(ae=W.next)||void 0===ae||ae.call(W,te),G.next(te)},()=>{var te;oe=!1,null===(te=W.complete)||void 0===te||te.call(W),G.complete()},te=>{var ae;oe=!1,null===(ae=W.error)||void 0===ae||ae.call(W,te),G.error(te)},()=>{var te,ae;oe&&(null===(te=W.unsubscribe)||void 0===te||te.call(W)),null===(ae=W.finalize)||void 0===ae||ae.call(W)}))}):F.y}},8068:(N,z,E)=>{"use strict";E.d(z,{T:()=>F});var M=E(6805),f=E(4482),L=E(5403);function F(q=B){return(0,f.e)((Q,ee)=>{let W=!1;Q.subscribe((0,L.x)(ee,Y=>{W=!0,ee.next(Y)},()=>W?ee.complete():ee.error(q())))})}function B(){return new M.K}},7414:(N,z,E)=>{"use strict";E.d(z,{V:()=>W});var M=E(4986),f=E(1165),L=E(4482),F=E(8421),B=E(3888),q=E(5403),Q=E(9672);const ee=(0,B.d)(G=>function(oe=null){G(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=oe});function W(G,re){const{first:oe,each:te,with:ae=Y,scheduler:he=re??M.z,meta:fe=null}=(0,f.q)(G)?{first:G}:"number"==typeof G?{each:G}:G;if(null==oe&&null==te)throw new TypeError("No timeout provided.");return(0,L.e)((_e,Oe)=>{let je,Ae,Ce=null,xe=0;const Je=Re=>{Ae=(0,Q.f)(Oe,he,()=>{try{je.unsubscribe(),(0,F.Xf)(ae({meta:fe,lastValue:Ce,seen:xe})).subscribe(Oe)}catch(De){Oe.error(De)}},Re)};je=_e.subscribe((0,q.x)(Oe,Re=>{Ae?.unsubscribe(),xe++,Oe.next(Ce=Re),te>0&&Je(te)},void 0,void 0,()=>{Ae?.closed||Ae?.unsubscribe(),Ce=null})),!xe&&Je(null!=oe?"number"==typeof oe?oe:+oe-he.now():te)})}function Y(G){throw new ee(G)}},4408:(N,z,E)=>{"use strict";E.d(z,{o:()=>B});var M=E(727);class f extends M.w0{constructor(Q,ee){super()}schedule(Q,ee=0){return this}}const L={setInterval(q,Q,...ee){const{delegate:W}=L;return W?.setInterval?W.setInterval(q,Q,...ee):setInterval(q,Q,...ee)},clearInterval(q){const{delegate:Q}=L;return(Q?.clearInterval||clearInterval)(q)},delegate:void 0};var F=E(8737);class B extends f{constructor(Q,ee){super(Q,ee),this.scheduler=Q,this.work=ee,this.pending=!1}schedule(Q,ee=0){if(this.closed)return this;this.state=Q;const W=this.id,Y=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(Y,W,ee)),this.pending=!0,this.delay=ee,this.id=this.id||this.requestAsyncId(Y,this.id,ee),this}requestAsyncId(Q,ee,W=0){return L.setInterval(Q.flush.bind(Q,this),W)}recycleAsyncId(Q,ee,W=0){if(null!=W&&this.delay===W&&!1===this.pending)return ee;L.clearInterval(ee)}execute(Q,ee){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(Q,ee);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Q,ee){let Y,W=!1;try{this.work(Q)}catch(G){W=!0,Y=G||new Error("Scheduled action threw falsy error")}if(W)return this.unsubscribe(),Y}unsubscribe(){if(!this.closed){const{id:Q,scheduler:ee}=this,{actions:W}=ee;this.work=this.state=this.scheduler=null,this.pending=!1,(0,F.P)(W,this),null!=Q&&(this.id=this.recycleAsyncId(ee,Q,null)),this.delay=null,super.unsubscribe()}}}},7565:(N,z,E)=>{"use strict";E.d(z,{v:()=>L});var M=E(6063);class f{constructor(B,q=f.now){this.schedulerActionCtor=B,this.now=q}schedule(B,q=0,Q){return new this.schedulerActionCtor(this,B).schedule(Q,q)}}f.now=M.l.now;class L extends f{constructor(B,q=f.now){super(B,q),this.actions=[],this._active=!1,this._scheduled=void 0}flush(B){const{actions:q}=this;if(this._active)return void q.push(B);let Q;this._active=!0;do{if(Q=B.execute(B.state,B.delay))break}while(B=q.shift());if(this._active=!1,Q){for(;B=q.shift();)B.unsubscribe();throw Q}}}},4986:(N,z,E)=>{"use strict";E.d(z,{P:()=>F,z:()=>L});var M=E(4408);const L=new(E(7565).v)(M.o),F=L},6063:(N,z,E)=>{"use strict";E.d(z,{l:()=>M});const M={now:()=>(M.delegate||Date).now(),delegate:void 0}},3410:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M={setTimeout(f,L,...F){const{delegate:B}=M;return B?.setTimeout?B.setTimeout(f,L,...F):setTimeout(f,L,...F)},clearTimeout(f){const{delegate:L}=M;return(L?.clearTimeout||clearTimeout)(f)},delegate:void 0}},2202:(N,z,E)=>{"use strict";E.d(z,{h:()=>f});const f=function M(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(N,z,E)=>{"use strict";E.d(z,{L:()=>M});const M="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(N,z,E)=>{"use strict";E.d(z,{K:()=>f});const f=(0,E(3888).d)(L=>function(){L(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(N,z,E)=>{"use strict";E.d(z,{_6:()=>q,jO:()=>F,yG:()=>B});var M=E(576),f=E(3532);function L(Q){return Q[Q.length-1]}function F(Q){return(0,M.m)(L(Q))?Q.pop():void 0}function B(Q){return(0,f.K)(L(Q))?Q.pop():void 0}function q(Q,ee){return"number"==typeof L(Q)?Q.pop():ee}},4742:(N,z,E)=>{"use strict";E.d(z,{D:()=>B});const{isArray:M}=Array,{getPrototypeOf:f,prototype:L,keys:F}=Object;function B(Q){if(1===Q.length){const ee=Q[0];if(M(ee))return{args:ee,keys:null};if(function q(Q){return Q&&"object"==typeof Q&&f(Q)===L}(ee)){const W=F(ee);return{args:W.map(Y=>ee[Y]),keys:W}}}return{args:Q,keys:null}}},8737:(N,z,E)=>{"use strict";function M(f,L){if(f){const F=f.indexOf(L);0<=F&&f.splice(F,1)}}E.d(z,{P:()=>M})},3888:(N,z,E)=>{"use strict";function M(f){const F=f(B=>{Error.call(B),B.stack=(new Error).stack});return F.prototype=Object.create(Error.prototype),F.prototype.constructor=F,F}E.d(z,{d:()=>M})},1810:(N,z,E)=>{"use strict";function M(f,L){return f.reduce((F,B,q)=>(F[B]=L[q],F),{})}E.d(z,{n:()=>M})},2806:(N,z,E)=>{"use strict";E.d(z,{O:()=>F,x:()=>L});var M=E(2416);let f=null;function L(B){if(M.v.useDeprecatedSynchronousErrorHandling){const q=!f;if(q&&(f={errorThrown:!1,error:null}),B(),q){const{errorThrown:Q,error:ee}=f;if(f=null,Q)throw ee}}else B()}function F(B){M.v.useDeprecatedSynchronousErrorHandling&&f&&(f.errorThrown=!0,f.error=B)}},9672:(N,z,E)=>{"use strict";function M(f,L,F,B=0,q=!1){const Q=L.schedule(function(){F(),q?f.add(this.schedule(null,B)):this.unsubscribe()},B);if(f.add(Q),!q)return Q}E.d(z,{f:()=>M})},4671:(N,z,E)=>{"use strict";function M(f){return f}E.d(z,{y:()=>M})},1144:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M=f=>f&&"number"==typeof f.length&&"function"!=typeof f},2206:(N,z,E)=>{"use strict";E.d(z,{D:()=>f});var M=E(576);function f(L){return Symbol.asyncIterator&&(0,M.m)(L?.[Symbol.asyncIterator])}},1165:(N,z,E)=>{"use strict";function M(f){return f instanceof Date&&!isNaN(f)}E.d(z,{q:()=>M})},576:(N,z,E)=>{"use strict";function M(f){return"function"==typeof f}E.d(z,{m:()=>M})},3670:(N,z,E)=>{"use strict";E.d(z,{c:()=>L});var M=E(8822),f=E(576);function L(F){return(0,f.m)(F[M.L])}},6495:(N,z,E)=>{"use strict";E.d(z,{T:()=>L});var M=E(2202),f=E(576);function L(F){return(0,f.m)(F?.[M.h])}},8239:(N,z,E)=>{"use strict";E.d(z,{t:()=>f});var M=E(576);function f(L){return(0,M.m)(L?.then)}},3260:(N,z,E)=>{"use strict";E.d(z,{L:()=>F,Q:()=>L});var M=E(655),f=E(576);function L(B){return(0,M.FC)(this,arguments,function*(){const Q=B.getReader();try{for(;;){const{value:ee,done:W}=yield(0,M.qq)(Q.read());if(W)return yield(0,M.qq)(void 0);yield yield(0,M.qq)(ee)}}finally{Q.releaseLock()}})}function F(B){return(0,f.m)(B?.getReader)}},3532:(N,z,E)=>{"use strict";E.d(z,{K:()=>f});var M=E(576);function f(L){return L&&(0,M.m)(L.schedule)}},4482:(N,z,E)=>{"use strict";E.d(z,{A:()=>f,e:()=>L});var M=E(576);function f(F){return(0,M.m)(F?.lift)}function L(F){return B=>{if(f(B))return B.lift(function(q){try{return F(q,this)}catch(Q){this.error(Q)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(N,z,E)=>{"use strict";E.d(z,{Z:()=>F});var M=E(4004);const{isArray:f}=Array;function F(B){return(0,M.U)(q=>function L(B,q){return f(q)?B(...q):B(q)}(B,q))}},5032:(N,z,E)=>{"use strict";function M(){}E.d(z,{Z:()=>M})},9635:(N,z,E)=>{"use strict";E.d(z,{U:()=>L,z:()=>f});var M=E(4671);function f(...F){return L(F)}function L(F){return 0===F.length?M.y:1===F.length?F[0]:function(q){return F.reduce((Q,ee)=>ee(Q),q)}}},7849:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(2416),f=E(3410);function L(F){f.z.setTimeout(()=>{const{onUnhandledError:B}=M.v;if(!B)throw F;B(F)})}},4532:(N,z,E)=>{"use strict";function M(f){return new TypeError(`You provided ${null!==f&&"object"==typeof f?"an invalid object":`'${f}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(z,{z:()=>M})},655:(N,z,E)=>{"use strict";function ee(le,ce,ge,pe){return new(ge||(ge=Promise))(function(Pe,dt){function Tt(Hi){try{Fe(pe.next(Hi))}catch($n){dt($n)}}function Bt(Hi){try{Fe(pe.throw(Hi))}catch($n){dt($n)}}function Fe(Hi){Hi.done?Pe(Hi.value):function Ve(Pe){return Pe instanceof ge?Pe:new ge(function(dt){dt(Pe)})}(Hi.value).then(Tt,Bt)}Fe((pe=pe.apply(le,ce||[])).next())})}function fe(le){return this instanceof fe?(this.v=le,this):new fe(le)}function _e(le,ce,ge){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ve,pe=ge.apply(le,ce||[]),Pe=[];return Ve={},dt("next"),dt("throw"),dt("return"),Ve[Symbol.asyncIterator]=function(){return this},Ve;function dt(Wt){pe[Wt]&&(Ve[Wt]=function(Dt){return new Promise(function(wn,oi){Pe.push([Wt,Dt,wn,oi])>1||Tt(Wt,Dt)})})}function Tt(Wt,Dt){try{!function Bt(Wt){Wt.value instanceof fe?Promise.resolve(Wt.value.v).then(Fe,Hi):$n(Pe[0][2],Wt)}(pe[Wt](Dt))}catch(wn){$n(Pe[0][3],wn)}}function Fe(Wt){Tt("next",Wt)}function Hi(Wt){Tt("throw",Wt)}function $n(Wt,Dt){Wt(Dt),Pe.shift(),Pe.length&&Tt(Pe[0][0],Pe[0][1])}}function je(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ge,ce=le[Symbol.asyncIterator];return ce?ce.call(le):(le=function re(le){var ce="function"==typeof Symbol&&Symbol.iterator,ge=ce&&le[ce],pe=0;if(ge)return ge.call(le);if(le&&"number"==typeof le.length)return{next:function(){return le&&pe>=le.length&&(le=void 0),{value:le&&le[pe++],done:!le}}};throw new TypeError(ce?"Object is not iterable.":"Symbol.iterator is not defined.")}(le),ge={},pe("next"),pe("throw"),pe("return"),ge[Symbol.asyncIterator]=function(){return this},ge);function pe(Pe){ge[Pe]=le[Pe]&&function(dt){return new Promise(function(Tt,Bt){!function Ve(Pe,dt,Tt,Bt){Promise.resolve(Bt).then(function(Fe){Pe({value:Fe,done:Tt})},dt)}(Tt,Bt,(dt=le[Pe](dt)).done,dt.value)})}}}E.d(z,{FC:()=>_e,KL:()=>je,mG:()=>ee,qq:()=>fe})},6895:(N,z,E)=>{"use strict";E.d(z,{Do:()=>je,EM:()=>si,HT:()=>B,JF:()=>Vt,K0:()=>Q,Mx:()=>Du,NF:()=>uc,O5:()=>ki,Ov:()=>Bf,PC:()=>Vf,RF:()=>ta,S$:()=>fe,V_:()=>Y,Ye:()=>Ae,b0:()=>Oe,bD:()=>wt,ez:()=>Sr,mk:()=>dc,n9:()=>Xi,q:()=>L,sg:()=>Tr,w_:()=>q});var M=E(4650);let f=null;function L(){return f}function B(P){f||(f=P)}class q{}const Q=new M.OlP("DocumentToken");let ee=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return function W(){return(0,M.LFG)(G)}()},providedIn:"platform"}),P})();const Y=new M.OlP("Location Initialized");let G=(()=>{class P extends ee{constructor(I){super(),this._doc=I,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return L().getBaseHref(this._doc)}onPopState(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("popstate",I,!1),()=>j.removeEventListener("popstate",I)}onHashChange(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("hashchange",I,!1),()=>j.removeEventListener("hashchange",I)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(I){this.location.pathname=I}pushState(I,j,ne){re()?this._history.pushState(I,j,ne):this.location.hash=ne}replaceState(I,j,ne){re()?this._history.replaceState(I,j,ne):this.location.hash=ne}forward(){this._history.forward()}back(){this._history.back()}historyGo(I=0){this._history.go(I)}getState(){return this._history.state}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(Q))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function oe(){return new G((0,M.LFG)(Q))}()},providedIn:"platform"}),P})();function re(){return!!window.history.pushState}function te(P,O){if(0==P.length)return O;if(0==O.length)return P;let I=0;return P.endsWith("/")&&I++,O.startsWith("/")&&I++,2==I?P+O.substring(1):1==I?P+O:P+"/"+O}function ae(P){const O=P.match(/#|\?|$/),I=O&&O.index||P.length;return P.slice(0,I-("/"===P[I-1]?1:0))+P.slice(I)}function he(P){return P&&"?"!==P[0]?"?"+P:P}let fe=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return(0,M.f3M)(Oe)},providedIn:"root"}),P})();const _e=new M.OlP("appBaseHref");let Oe=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._removeListenerFns=[],this._baseHref=j??this._platformLocation.getBaseHrefFromDOM()??(0,M.f3M)(Q).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}prepareExternalUrl(I){return te(this._baseHref,I)}path(I=!1){const j=this._platformLocation.pathname+he(this._platformLocation.search),ne=this._platformLocation.hash;return ne&&I?`${j}${ne}`:j}pushState(I,j,ne,me){const de=this.prepareExternalUrl(ne+he(me));this._platformLocation.pushState(I,j,de)}replaceState(I,j,ne,me){const de=this.prepareExternalUrl(ne+he(me));this._platformLocation.replaceState(I,j,de)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(_e,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),je=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._baseHref="",this._removeListenerFns=[],null!=j&&(this._baseHref=j)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}path(I=!1){let j=this._platformLocation.hash;return null==j&&(j="#"),j.length>0?j.substring(1):j}prepareExternalUrl(I){const j=te(this._baseHref,I);return j.length>0?"#"+j:j}pushState(I,j,ne,me){let de=this.prepareExternalUrl(ne+he(me));0==de.length&&(de=this._platformLocation.pathname),this._platformLocation.pushState(I,j,de)}replaceState(I,j,ne,me){let de=this.prepareExternalUrl(ne+he(me));0==de.length&&(de=this._platformLocation.pathname),this._platformLocation.replaceState(I,j,de)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(_e,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac}),P})(),Ae=(()=>{class P{constructor(I){this._subject=new M.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=I;const j=this._locationStrategy.getBaseHref();this._baseHref=ae(Je(j)),this._locationStrategy.onPopState(ne=>{this._subject.emit({url:this.path(!0),pop:!0,state:ne.state,type:ne.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(I=!1){return this.normalize(this._locationStrategy.path(I))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(I,j=""){return this.path()==this.normalize(I+he(j))}normalize(I){return P.stripTrailingSlash(function xe(P,O){return P&&O.startsWith(P)?O.substring(P.length):O}(this._baseHref,Je(I)))}prepareExternalUrl(I){return I&&"/"!==I[0]&&(I="/"+I),this._locationStrategy.prepareExternalUrl(I)}go(I,j="",ne=null){this._locationStrategy.pushState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}replaceState(I,j="",ne=null){this._locationStrategy.replaceState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(I=0){this._locationStrategy.historyGo?.(I)}onUrlChange(I){return this._urlChangeListeners.push(I),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(j=>{this._notifyUrlChangeListeners(j.url,j.state)})),()=>{const j=this._urlChangeListeners.indexOf(I);this._urlChangeListeners.splice(j,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(I="",j){this._urlChangeListeners.forEach(ne=>ne(I,j))}subscribe(I,j,ne){return this._subject.subscribe({next:I,error:j,complete:ne})}}return P.normalizeQueryParams=he,P.joinWithSlash=te,P.stripTrailingSlash=ae,P.\u0275fac=function(I){return new(I||P)(M.LFG(fe))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function Ce(){return new Ae((0,M.LFG)(fe))}()},providedIn:"root"}),P})();function Je(P){return P.replace(/\/index.html$/,"")}function Du(P,O){O=encodeURIComponent(O);for(const I of P.split(";")){const j=I.indexOf("="),[ne,me]=-1==j?[I,""]:[I.slice(0,j),I.slice(j+1)];if(ne.trim()===O)return decodeURIComponent(me)}return null}let dc=(()=>{class P{constructor(I,j,ne,me){this._iterableDiffers=I,this._keyValueDiffers=j,this._ngEl=ne,this._renderer=me,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(I){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof I?I.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(I){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof I?I.split(/\s+/):I,this._rawClass&&((0,M.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const I=this._iterableDiffer.diff(this._rawClass);I&&this._applyIterableChanges(I)}else if(this._keyValueDiffer){const I=this._keyValueDiffer.diff(this._rawClass);I&&this._applyKeyValueChanges(I)}}_applyKeyValueChanges(I){I.forEachAddedItem(j=>this._toggleClass(j.key,j.currentValue)),I.forEachChangedItem(j=>this._toggleClass(j.key,j.currentValue)),I.forEachRemovedItem(j=>{j.previousValue&&this._toggleClass(j.key,!1)})}_applyIterableChanges(I){I.forEachAddedItem(j=>{if("string"!=typeof j.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,M.AaK)(j.item)}`);this._toggleClass(j.item,!0)}),I.forEachRemovedItem(j=>this._toggleClass(j.item,!1))}_applyClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(j=>this._toggleClass(j,!0)):Object.keys(I).forEach(j=>this._toggleClass(j,!!I[j])))}_removeClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(j=>this._toggleClass(j,!1)):Object.keys(I).forEach(j=>this._toggleClass(j,!1)))}_toggleClass(I,j){(I=I.trim())&&I.split(/\s+/g).forEach(ne=>{j?this._renderer.addClass(this._ngEl.nativeElement,ne):this._renderer.removeClass(this._ngEl.nativeElement,ne)})}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.ZZ4),M.Y36(M.aQg),M.Y36(M.SBq),M.Y36(M.Qsj))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),P})();class ea{constructor(O,I,j,ne){this.$implicit=O,this.ngForOf=I,this.index=j,this.count=ne}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Tr=(()=>{class P{constructor(I,j,ne){this._viewContainer=I,this._template=j,this._differs=ne,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(I){this._ngForOf=I,this._ngForOfDirty=!0}set ngForTrackBy(I){this._trackByFn=I}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(I){I&&(this._template=I)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const I=this._ngForOf;!this._differ&&I&&(this._differ=this._differs.find(I).create(this.ngForTrackBy))}if(this._differ){const I=this._differ.diff(this._ngForOf);I&&this._applyChanges(I)}}_applyChanges(I){const j=this._viewContainer;I.forEachOperation((ne,me,de)=>{if(null==ne.previousIndex)j.createEmbeddedView(this._template,new ea(ne.item,this._ngForOf,-1,-1),null===de?void 0:de);else if(null==de)j.remove(null===me?void 0:me);else if(null!==me){const Ge=j.get(me);j.move(Ge,de),Ci(Ge,ne)}});for(let ne=0,me=j.length;ne{Ci(j.get(ne.currentIndex),ne)})}static ngTemplateContextGuard(I,j){return!0}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc),M.Y36(M.ZZ4))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),P})();function Ci(P,O){P.context.$implicit=O.item}let ki=(()=>{class P{constructor(I,j){this._viewContainer=I,this._context=new ln,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=j}set ngIf(I){this._context.$implicit=this._context.ngIf=I,this._updateView()}set ngIfThen(I){Is("ngIfThen",I),this._thenTemplateRef=I,this._thenViewRef=null,this._updateView()}set ngIfElse(I){Is("ngIfElse",I),this._elseTemplateRef=I,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(I,j){return!0}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),P})();class ln{constructor(){this.$implicit=null,this.ngIf=null}}function Is(P,O){if(O&&!O.createEmbeddedView)throw new Error(`${P} must be a TemplateRef, but received '${(0,M.AaK)(O)}'.`)}class Wa{constructor(O,I){this._viewContainerRef=O,this._templateRef=I,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(O){O&&!this._created?this.create():!O&&this._created&&this.destroy()}}let ta=(()=>{class P{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(I){this._ngSwitch=I,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(I){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(I)}_matchCase(I){const j=I==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||j,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),j}_updateDefaultCases(I){if(this._defaultViews&&I!==this._defaultUsed){this._defaultUsed=I;for(let j=0;j{class P{constructor(I,j,ne){this.ngSwitch=ne,ne._addCase(),this._view=new Wa(I,j)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc),M.Y36(ta,9))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),P})(),Vf=(()=>{class P{constructor(I,j,ne){this._ngEl=I,this._differs=j,this._renderer=ne,this._ngStyle=null,this._differ=null}set ngStyle(I){this._ngStyle=I,!this._differ&&I&&(this._differ=this._differs.find(I).create())}ngDoCheck(){if(this._differ){const I=this._differ.diff(this._ngStyle);I&&this._applyChanges(I)}}_setStyle(I,j){const[ne,me]=I.split("."),de=-1===ne.indexOf("-")?void 0:M.JOm.DashCase;null!=j?this._renderer.setStyle(this._ngEl.nativeElement,ne,me?`${j}${me}`:j,de):this._renderer.removeStyle(this._ngEl.nativeElement,ne,de)}_applyChanges(I){I.forEachRemovedItem(j=>this._setStyle(j.key,null)),I.forEachAddedItem(j=>this._setStyle(j.key,j.currentValue)),I.forEachChangedItem(j=>this._setStyle(j.key,j.currentValue))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.SBq),M.Y36(M.aQg),M.Y36(M.Qsj))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),P})();class FC{createSubscription(O,I){return O.subscribe({next:I,error:j=>{throw j}})}dispose(O){O.unsubscribe()}}class UC{createSubscription(O,I){return O.then(I,j=>{throw j})}dispose(O){}}const NC=new UC,qC=new FC;let Bf=(()=>{class P{constructor(I){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=I}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(I){return this._obj?I!==this._obj?(this._dispose(),this.transform(I)):this._latestValue:(I&&this._subscribe(I),this._latestValue)}_subscribe(I){this._obj=I,this._strategy=this._selectStrategy(I),this._subscription=this._strategy.createSubscription(I,j=>this._updateLatestValue(I,j))}_selectStrategy(I){if((0,M.QGY)(I))return NC;if((0,M.F4k)(I))return qC;throw function An(P,O){return new M.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(I,j){I===this._obj&&(this._latestValue=j,this._ref.markForCheck())}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.sBO,16))},P.\u0275pipe=M.Yjl({name:"async",type:P,pure:!1,standalone:!0}),P})(),Sr=(()=>{class P{}return P.\u0275fac=function(I){return new(I||P)},P.\u0275mod=M.oAB({type:P}),P.\u0275inj=M.cJS({}),P})();const wt="browser";function uc(P){return P===wt}let si=(()=>{class P{}return P.\u0275prov=(0,M.Yz7)({token:P,providedIn:"root",factory:()=>new kt((0,M.LFG)(Q),window)}),P})();class kt{constructor(O,I){this.document=O,this.window=I,this.offset=()=>[0,0]}setOffset(O){this.offset=Array.isArray(O)?()=>O:O}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(O){this.supportsScrolling()&&this.window.scrollTo(O[0],O[1])}scrollToAnchor(O){if(!this.supportsScrolling())return;const I=function dn(P,O){const I=P.getElementById(O)||P.getElementsByName(O)[0];if(I)return I;if("function"==typeof P.createTreeWalker&&P.body&&(P.body.createShadowRoot||P.body.attachShadow)){const j=P.createTreeWalker(P.body,NodeFilter.SHOW_ELEMENT);let ne=j.currentNode;for(;ne;){const me=ne.shadowRoot;if(me){const de=me.getElementById(O)||me.querySelector(`[name="${O}"]`);if(de)return de}ne=j.nextNode()}}return null}(this.document,O);I&&(this.scrollToElement(I),I.focus())}setHistoryScrollRestoration(O){if(this.supportScrollRestoration()){const I=this.window.history;I&&I.scrollRestoration&&(I.scrollRestoration=O)}}scrollToElement(O){const I=O.getBoundingClientRect(),j=I.left+this.window.pageXOffset,ne=I.top+this.window.pageYOffset,me=this.offset();this.window.scrollTo(j-me[0],ne-me[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const O=xn(this.window.history)||xn(Object.getPrototypeOf(this.window.history));return!(!O||!O.writable&&!O.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function xn(P){return Object.getOwnPropertyDescriptor(P,"scrollRestoration")}class Vt{}},529:(N,z,E)=>{"use strict";E.d(z,{JF:()=>Eu,LE:()=>_e,TP:()=>Tt,WM:()=>Y,Zn:()=>ge,eN:()=>Pe,qT:()=>je});var M=E(6895),f=E(4650),L=E(9646),F=E(9751),B=E(4351),q=E(9300),Q=E(4004);class ee{}class W{}class Y{constructor(X){this.normalizedNames=new Map,this.lazyUpdate=null,X?this.lazyInit="string"==typeof X?()=>{this.headers=new Map,X.split("\n").forEach($=>{const ue=$.indexOf(":");if(ue>0){const Se=$.slice(0,ue),nt=Se.toLowerCase(),ut=$.slice(ue+1).trim();this.maybeSetNormalizedName(Se,nt),this.headers.has(nt)?this.headers.get(nt).push(ut):this.headers.set(nt,[ut])}})}:()=>{this.headers=new Map,Object.keys(X).forEach($=>{let ue=X[$];const Se=$.toLowerCase();"string"==typeof ue&&(ue=[ue]),ue.length>0&&(this.headers.set(Se,ue),this.maybeSetNormalizedName($,Se))})}:this.headers=new Map}has(X){return this.init(),this.headers.has(X.toLowerCase())}get(X){this.init();const $=this.headers.get(X.toLowerCase());return $&&$.length>0?$[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(X){return this.init(),this.headers.get(X.toLowerCase())||null}append(X,$){return this.clone({name:X,value:$,op:"a"})}set(X,$){return this.clone({name:X,value:$,op:"s"})}delete(X,$){return this.clone({name:X,value:$,op:"d"})}maybeSetNormalizedName(X,$){this.normalizedNames.has($)||this.normalizedNames.set($,X)}init(){this.lazyInit&&(this.lazyInit instanceof Y?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(X=>this.applyUpdate(X)),this.lazyUpdate=null))}copyFrom(X){X.init(),Array.from(X.headers.keys()).forEach($=>{this.headers.set($,X.headers.get($)),this.normalizedNames.set($,X.normalizedNames.get($))})}clone(X){const $=new Y;return $.lazyInit=this.lazyInit&&this.lazyInit instanceof Y?this.lazyInit:this,$.lazyUpdate=(this.lazyUpdate||[]).concat([X]),$}applyUpdate(X){const $=X.name.toLowerCase();switch(X.op){case"a":case"s":let ue=X.value;if("string"==typeof ue&&(ue=[ue]),0===ue.length)return;this.maybeSetNormalizedName(X.name,$);const Se=("a"===X.op?this.headers.get($):void 0)||[];Se.push(...ue),this.headers.set($,Se);break;case"d":const nt=X.value;if(nt){let ut=this.headers.get($);if(!ut)return;ut=ut.filter(ze=>-1===nt.indexOf(ze)),0===ut.length?(this.headers.delete($),this.normalizedNames.delete($)):this.headers.set($,ut)}else this.headers.delete($),this.normalizedNames.delete($)}}forEach(X){this.init(),Array.from(this.normalizedNames.keys()).forEach($=>X(this.normalizedNames.get($),this.headers.get($)))}}class re{encodeKey(X){return he(X)}encodeValue(X){return he(X)}decodeKey(X){return decodeURIComponent(X)}decodeValue(X){return decodeURIComponent(X)}}const te=/%(\d[a-f0-9])/gi,ae={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function he(ye){return encodeURIComponent(ye).replace(te,(X,$)=>ae[$]??X)}function fe(ye){return`${ye}`}class _e{constructor(X={}){if(this.updates=null,this.cloneFrom=null,this.encoder=X.encoder||new re,X.fromString){if(X.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function oe(ye,X){const $=new Map;return ye.length>0&&ye.replace(/^\?/,"").split("&").forEach(Se=>{const nt=Se.indexOf("="),[ut,ze]=-1==nt?[X.decodeKey(Se),""]:[X.decodeKey(Se.slice(0,nt)),X.decodeValue(Se.slice(nt+1))],Ze=$.get(ut)||[];Ze.push(ze),$.set(ut,Ze)}),$}(X.fromString,this.encoder)}else X.fromObject?(this.map=new Map,Object.keys(X.fromObject).forEach($=>{const ue=X.fromObject[$],Se=Array.isArray(ue)?ue.map(fe):[fe(ue)];this.map.set($,Se)})):this.map=null}has(X){return this.init(),this.map.has(X)}get(X){this.init();const $=this.map.get(X);return $?$[0]:null}getAll(X){return this.init(),this.map.get(X)||null}keys(){return this.init(),Array.from(this.map.keys())}append(X,$){return this.clone({param:X,value:$,op:"a"})}appendAll(X){const $=[];return Object.keys(X).forEach(ue=>{const Se=X[ue];Array.isArray(Se)?Se.forEach(nt=>{$.push({param:ue,value:nt,op:"a"})}):$.push({param:ue,value:Se,op:"a"})}),this.clone($)}set(X,$){return this.clone({param:X,value:$,op:"s"})}delete(X,$){return this.clone({param:X,value:$,op:"d"})}toString(){return this.init(),this.keys().map(X=>{const $=this.encoder.encodeKey(X);return this.map.get(X).map(ue=>$+"="+this.encoder.encodeValue(ue)).join("&")}).filter(X=>""!==X).join("&")}clone(X){const $=new _e({encoder:this.encoder});return $.cloneFrom=this.cloneFrom||this,$.updates=(this.updates||[]).concat(X),$}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(X=>this.map.set(X,this.cloneFrom.map.get(X))),this.updates.forEach(X=>{switch(X.op){case"a":case"s":const $=("a"===X.op?this.map.get(X.param):void 0)||[];$.push(fe(X.value)),this.map.set(X.param,$);break;case"d":if(void 0===X.value){this.map.delete(X.param);break}{let ue=this.map.get(X.param)||[];const Se=ue.indexOf(fe(X.value));-1!==Se&&ue.splice(Se,1),ue.length>0?this.map.set(X.param,ue):this.map.delete(X.param)}}}),this.cloneFrom=this.updates=null)}}class je{constructor(){this.map=new Map}set(X,$){return this.map.set(X,$),this}get(X){return this.map.has(X)||this.map.set(X,X.defaultValue()),this.map.get(X)}delete(X){return this.map.delete(X),this}has(X){return this.map.has(X)}keys(){return this.map.keys()}}function Ce(ye){return typeof ArrayBuffer<"u"&&ye instanceof ArrayBuffer}function xe(ye){return typeof Blob<"u"&&ye instanceof Blob}function Je(ye){return typeof FormData<"u"&&ye instanceof FormData}class De{constructor(X,$,ue,Se){let nt;if(this.url=$,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=X.toUpperCase(),function Ae(ye){switch(ye){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Se?(this.body=void 0!==ue?ue:null,nt=Se):nt=ue,nt&&(this.reportProgress=!!nt.reportProgress,this.withCredentials=!!nt.withCredentials,nt.responseType&&(this.responseType=nt.responseType),nt.headers&&(this.headers=nt.headers),nt.context&&(this.context=nt.context),nt.params&&(this.params=nt.params)),this.headers||(this.headers=new Y),this.context||(this.context=new je),this.params){const ut=this.params.toString();if(0===ut.length)this.urlWithParams=$;else{const ze=$.indexOf("?");this.urlWithParams=$+(-1===ze?"?":ze<$.length-1?"&":"")+ut}}else this.params=new _e,this.urlWithParams=$}serializeBody(){return null===this.body?null:Ce(this.body)||xe(this.body)||Je(this.body)||function Re(ye){return typeof URLSearchParams<"u"&&ye instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof _e?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Je(this.body)?null:xe(this.body)?this.body.type||null:Ce(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof _e?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(X={}){const $=X.method||this.method,ue=X.url||this.url,Se=X.responseType||this.responseType,nt=void 0!==X.body?X.body:this.body,ut=void 0!==X.withCredentials?X.withCredentials:this.withCredentials,ze=void 0!==X.reportProgress?X.reportProgress:this.reportProgress;let Ze=X.headers||this.headers,ei=X.params||this.params;const At=X.context??this.context;return void 0!==X.setHeaders&&(Ze=Object.keys(X.setHeaders).reduce((Zi,rt)=>Zi.set(rt,X.setHeaders[rt]),Ze)),X.setParams&&(ei=Object.keys(X.setParams).reduce((Zi,rt)=>Zi.set(rt,X.setParams[rt]),ei)),new De($,ue,nt,{params:ei,headers:Ze,context:At,reportProgress:ze,responseType:Se,withCredentials:ut})}}var Me=(()=>((Me=Me||{})[Me.Sent=0]="Sent",Me[Me.UploadProgress=1]="UploadProgress",Me[Me.ResponseHeader=2]="ResponseHeader",Me[Me.DownloadProgress=3]="DownloadProgress",Me[Me.Response=4]="Response",Me[Me.User=5]="User",Me))();class le{constructor(X,$=200,ue="OK"){this.headers=X.headers||new Y,this.status=void 0!==X.status?X.status:$,this.statusText=X.statusText||ue,this.url=X.url||null,this.ok=this.status>=200&&this.status<300}}class ce extends le{constructor(X={}){super(X),this.type=Me.ResponseHeader}clone(X={}){return new ce({headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class ge extends le{constructor(X={}){super(X),this.type=Me.Response,this.body=void 0!==X.body?X.body:null}clone(X={}){return new ge({body:void 0!==X.body?X.body:this.body,headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class pe extends le{constructor(X){super(X,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${X.url||"(unknown url)"}`:`Http failure response for ${X.url||"(unknown url)"}: ${X.status} ${X.statusText}`,this.error=X.error||null}}function Ve(ye,X){return{body:X,headers:ye.headers,context:ye.context,observe:ye.observe,params:ye.params,reportProgress:ye.reportProgress,responseType:ye.responseType,withCredentials:ye.withCredentials}}let Pe=(()=>{class ye{constructor($){this.handler=$}request($,ue,Se={}){let nt;if($ instanceof De)nt=$;else{let Ze,ei;Ze=Se.headers instanceof Y?Se.headers:new Y(Se.headers),Se.params&&(ei=Se.params instanceof _e?Se.params:new _e({fromObject:Se.params})),nt=new De($,ue,void 0!==Se.body?Se.body:null,{headers:Ze,context:Se.context,params:ei,reportProgress:Se.reportProgress,responseType:Se.responseType||"json",withCredentials:Se.withCredentials})}const ut=(0,L.of)(nt).pipe((0,B.b)(Ze=>this.handler.handle(Ze)));if($ instanceof De||"events"===Se.observe)return ut;const ze=ut.pipe((0,q.h)(Ze=>Ze instanceof ge));switch(Se.observe||"body"){case"body":switch(nt.responseType){case"arraybuffer":return ze.pipe((0,Q.U)(Ze=>{if(null!==Ze.body&&!(Ze.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Ze.body}));case"blob":return ze.pipe((0,Q.U)(Ze=>{if(null!==Ze.body&&!(Ze.body instanceof Blob))throw new Error("Response is not a Blob.");return Ze.body}));case"text":return ze.pipe((0,Q.U)(Ze=>{if(null!==Ze.body&&"string"!=typeof Ze.body)throw new Error("Response is not a string.");return Ze.body}));default:return ze.pipe((0,Q.U)(Ze=>Ze.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${Se.observe}}`)}}delete($,ue={}){return this.request("DELETE",$,ue)}get($,ue={}){return this.request("GET",$,ue)}head($,ue={}){return this.request("HEAD",$,ue)}jsonp($,ue){return this.request("JSONP",$,{params:(new _e).append(ue,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options($,ue={}){return this.request("OPTIONS",$,ue)}patch($,ue,Se={}){return this.request("PATCH",$,Ve(Se,ue))}post($,ue,Se={}){return this.request("POST",$,Ve(Se,ue))}put($,ue,Se={}){return this.request("PUT",$,Ve(Se,ue))}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(ee))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class dt{constructor(X,$){this.next=X,this.interceptor=$}handle(X){return this.interceptor.intercept(X,this.next)}}const Tt=new f.OlP("HTTP_INTERCEPTORS");let Bt=(()=>{class ye{intercept($,ue){return ue.handle($)}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Ro=/^\)\]\}',?\n/;let Po=(()=>{class ye{constructor($){this.xhrFactory=$}handle($){if("JSONP"===$.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new F.y(ue=>{const Se=this.xhrFactory.build();if(Se.open($.method,$.urlWithParams),$.withCredentials&&(Se.withCredentials=!0),$.headers.forEach((Ht,Ft)=>Se.setRequestHeader(Ht,Ft.join(","))),$.headers.has("Accept")||Se.setRequestHeader("Accept","application/json, text/plain, */*"),!$.headers.has("Content-Type")){const Ht=$.detectContentTypeHeader();null!==Ht&&Se.setRequestHeader("Content-Type",Ht)}if($.responseType){const Ht=$.responseType.toLowerCase();Se.responseType="json"!==Ht?Ht:"text"}const nt=$.serializeBody();let ut=null;const ze=()=>{if(null!==ut)return ut;const Ht=Se.statusText||"OK",Ft=new Y(Se.getAllResponseHeaders()),sn=function Su(ye){return"responseURL"in ye&&ye.responseURL?ye.responseURL:/^X-Request-URL:/m.test(ye.getAllResponseHeaders())?ye.getResponseHeader("X-Request-URL"):null}(Se)||$.url;return ut=new ce({headers:Ft,status:Se.status,statusText:Ht,url:sn}),ut},Ze=()=>{let{headers:Ht,status:Ft,statusText:sn,url:yr}=ze(),_i=null;204!==Ft&&(_i=typeof Se.response>"u"?Se.responseText:Se.response),0===Ft&&(Ft=_i?200:0);let Kr=Ft>=200&&Ft<300;if("json"===$.responseType&&"string"==typeof _i){const Zr=_i;_i=_i.replace(Ro,"");try{_i=""!==_i?JSON.parse(_i):null}catch(qa){_i=Zr,Kr&&(Kr=!1,_i={error:qa,text:_i})}}Kr?(ue.next(new ge({body:_i,headers:Ht,status:Ft,statusText:sn,url:yr||void 0})),ue.complete()):ue.error(new pe({error:_i,headers:Ht,status:Ft,statusText:sn,url:yr||void 0}))},ei=Ht=>{const{url:Ft}=ze(),sn=new pe({error:Ht,status:Se.status||0,statusText:Se.statusText||"Unknown Error",url:Ft||void 0});ue.error(sn)};let At=!1;const Zi=Ht=>{At||(ue.next(ze()),At=!0);let Ft={type:Me.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(Ft.total=Ht.total),"text"===$.responseType&&!!Se.responseText&&(Ft.partialText=Se.responseText),ue.next(Ft)},rt=Ht=>{let Ft={type:Me.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(Ft.total=Ht.total),ue.next(Ft)};return Se.addEventListener("load",Ze),Se.addEventListener("error",ei),Se.addEventListener("timeout",ei),Se.addEventListener("abort",ei),$.reportProgress&&(Se.addEventListener("progress",Zi),null!==nt&&Se.upload&&Se.upload.addEventListener("progress",rt)),Se.send(nt),ue.next({type:Me.Sent}),()=>{Se.removeEventListener("error",ei),Se.removeEventListener("abort",ei),Se.removeEventListener("load",Ze),Se.removeEventListener("timeout",ei),$.reportProgress&&(Se.removeEventListener("progress",Zi),null!==nt&&Se.upload&&Se.upload.removeEventListener("progress",rt)),Se.readyState!==Se.DONE&&Se.abort()}})}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(M.JF))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Qn=new f.OlP("XSRF_COOKIE_NAME"),Yn=new f.OlP("XSRF_HEADER_NAME");class Fa{}let Io=(()=>{class ye{constructor($,ue,Se){this.doc=$,this.platform=ue,this.cookieName=Se,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const $=this.doc.cookie||"";return $!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,M.Mx)($,this.cookieName),this.lastCookieString=$),this.lastToken}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(M.K0),f.LFG(f.Lbi),f.LFG(Qn))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Ke=(()=>{class ye{constructor($,ue){this.tokenService=$,this.headerName=ue}intercept($,ue){const Se=$.url.toLowerCase();if("GET"===$.method||"HEAD"===$.method||Se.startsWith("http://")||Se.startsWith("https://"))return ue.handle($);const nt=this.tokenService.getToken();return null!==nt&&!$.headers.has(this.headerName)&&($=$.clone({headers:$.headers.set(this.headerName,nt)})),ue.handle($)}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(Fa),f.LFG(Yn))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),di=(()=>{class ye{constructor($,ue){this.backend=$,this.injector=ue,this.chain=null}handle($){if(null===this.chain){const ue=this.injector.get(Tt,[]);this.chain=ue.reduceRight((Se,nt)=>new dt(Se,nt),this.backend)}return this.chain.handle($)}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(W),f.LFG(f.zs3))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Na=(()=>{class ye{static disable(){return{ngModule:ye,providers:[{provide:Ke,useClass:Bt}]}}static withOptions($={}){return{ngModule:ye,providers:[$.cookieName?{provide:Qn,useValue:$.cookieName}:[],$.headerName?{provide:Yn,useValue:$.headerName}:[]]}}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=f.oAB({type:ye}),ye.\u0275inj=f.cJS({providers:[Ke,{provide:Tt,useExisting:Ke,multi:!0},{provide:Fa,useClass:Io},{provide:Qn,useValue:"XSRF-TOKEN"},{provide:Yn,useValue:"X-XSRF-TOKEN"}]}),ye})(),Eu=(()=>{class ye{}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=f.oAB({type:ye}),ye.\u0275inj=f.cJS({providers:[Pe,{provide:ee,useClass:di},Po,{provide:W,useExisting:Po}],imports:[Na.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ye})()},4650:(N,z,E)=>{"use strict";E.d(z,{$8M:()=>Gu,$Z:()=>Th,AFp:()=>Fn,ALo:()=>EA,AaK:()=>ee,AsE:()=>l_,B6R:()=>yr,BQk:()=>Id,CHM:()=>ra,CRH:()=>ob,CZH:()=>xi,CqO:()=>Zh,D6c:()=>S0,DdM:()=>CA,Dn7:()=>J_,EJc:()=>gE,EiD:()=>Tm,EpF:()=>Zt,F$t:()=>Av,F4k:()=>Kh,FYo:()=>Im,FiY:()=>el,G48:()=>Bb,Gf:()=>ab,GfV:()=>Zw,GkF:()=>On,Gpc:()=>G,Gre:()=>u_,Hsn:()=>Xh,Ikx:()=>v_,JOm:()=>Or,JVY:()=>Pw,KtG:()=>er,L6k:()=>Iw,LAX:()=>gm,LFG:()=>li,LSH:()=>Nc,Lbi:()=>Kp,Lck:()=>mA,MAs:()=>wv,MMx:()=>Zd,NdJ:()=>Ne,O4$:()=>Us,OlP:()=>jt,Oqu:()=>s_,PXZ:()=>Eb,Q6J:()=>Jh,QGY:()=>vt,QP$:()=>xs,QbO:()=>n0,Qsj:()=>Kw,R0b:()=>$i,RDi:()=>Ew,Rgc:()=>tu,SBq:()=>Yc,Sil:()=>bE,Suo:()=>Ip,TTD:()=>ia,TgZ:()=>Rd,Tol:()=>ip,Udp:()=>Aa,VKq:()=>wA,WFA:()=>ft,WLB:()=>yA,XFs:()=>Ke,Xpm:()=>sn,Xts:()=>hh,Y36:()=>yl,YKP:()=>N_,YNc:()=>zg,Yjl:()=>cc,Yz7:()=>Dt,ZZ4:()=>Yb,_Bn:()=>U_,_UZ:()=>va,_Vd:()=>ao,_c5:()=>T0,_uU:()=>Bv,aQg:()=>_u,c2e:()=>Xp,cJS:()=>oi,cg1:()=>Ll,d8E:()=>lp,dDg:()=>d0,dqk:()=>ue,eBb:()=>lh,eFA:()=>Hb,ekj:()=>tp,eoX:()=>u0,f3M:()=>rm,g9A:()=>wo,h0i:()=>ur,hGG:()=>Xb,hij:()=>op,iGM:()=>rb,ifc:()=>$,ip1:()=>Yp,kL8:()=>A_,kcU:()=>qf,lG2:()=>Mu,lcZ:()=>DA,lqb:()=>Vr,lri:()=>l0,mCW:()=>ol,n5z:()=>Nu,n_E:()=>Dp,oAB:()=>Zr,oJD:()=>Sm,oxw:()=>vv,pB0:()=>ch,q3G:()=>ni,qLn:()=>Jc,qOj:()=>ds,qZA:()=>Pd,qzn:()=>Jo,rWj:()=>c0,s9C:()=>go,sBO:()=>yE,sIi:()=>Dd,s_b:()=>Rp,soG:()=>ef,tb:()=>ou,tp0:()=>Qo,uIk:()=>Dl,vHH:()=>ae,vpe:()=>Wr,wAp:()=>et,xDo:()=>c_,xi3:()=>HA,xp6:()=>Ah,ynx:()=>kl,z2F:()=>ka,z3N:()=>ir,zSh:()=>ul,zs3:()=>rr});var M=E(7579),f=E(727),L=E(9751),F=E(6451),B=E(3099);function q(_){for(let b in _)if(_[b]===q)return b;throw Error("Could not find renamed property on target object.")}function Q(_,b){for(const C in b)b.hasOwnProperty(C)&&!_.hasOwnProperty(C)&&(_[C]=b[C])}function ee(_){if("string"==typeof _)return _;if(Array.isArray(_))return"["+_.map(ee).join(", ")+"]";if(null==_)return""+_;if(_.overriddenName)return`${_.overriddenName}`;if(_.name)return`${_.name}`;const b=_.toString();if(null==b)return""+b;const C=b.indexOf("\n");return-1===C?b:b.substring(0,C)}function W(_,b){return null==_||""===_?null===b?"":b:null==b||""===b?_:_+" "+b}const Y=q({__forward_ref__:q});function G(_){return _.__forward_ref__=G,_.toString=function(){return ee(this())},_}function re(_){return oe(_)?_():_}function oe(_){return"function"==typeof _&&_.hasOwnProperty(Y)&&_.__forward_ref__===G}class ae extends Error{constructor(b,C){super(function he(_,b){return`NG0${Math.abs(_)}${b?": "+b.trim():""}`}(b,C)),this.code=b}}function fe(_){return"string"==typeof _?_:null==_?"":String(_)}function Ce(_,b){throw new ae(-201,!1)}function Bt(_,b){null==_&&function Fe(_,b,C,y){throw new Error(`ASSERTION ERROR: ${_}`+(null==y?"":` [Expected=> ${C} ${y} ${b} <=Actual]`))}(b,_,null,"!=")}function Dt(_){return{token:_.token,providedIn:_.providedIn||null,factory:_.factory,value:void 0}}function oi(_){return{providers:_.providers||[],imports:_.imports||[]}}function Jr(_){return lc(_,Qn)||lc(_,Fa)}function lc(_,b){return _.hasOwnProperty(b)?_[b]:null}function Po(_){return _&&(_.hasOwnProperty(Yn)||_.hasOwnProperty(Io))?_[Yn]:null}const Qn=q({\u0275prov:q}),Yn=q({\u0275inj:q}),Fa=q({ngInjectableDef:q}),Io=q({ngInjectorDef:q});var Ke=(()=>((Ke=Ke||{})[Ke.Default=0]="Default",Ke[Ke.Host=1]="Host",Ke[Ke.Self=2]="Self",Ke[Ke.SkipSelf=4]="SkipSelf",Ke[Ke.Optional=8]="Optional",Ke))();let di;function Ri(_){const b=di;return di=_,b}function Na(_,b,C){const y=Jr(_);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:C&Ke.Optional?null:void 0!==b?b:void Ce(ee(_))}function yn(_){return{toString:_}.toString()}var Si=(()=>((Si=Si||{})[Si.OnPush=0]="OnPush",Si[Si.Default=1]="Default",Si))(),$=(()=>{return(_=$||($={}))[_.Emulated=0]="Emulated",_[_.None=2]="None",_[_.ShadowDom=3]="ShadowDom",$;var _})();const ue=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ut={},ze=[],Ze=q({\u0275cmp:q}),ei=q({\u0275dir:q}),At=q({\u0275pipe:q}),Zi=q({\u0275mod:q}),rt=q({\u0275fac:q}),Ht=q({__NG_ELEMENT_ID__:q});let Ft=0;function sn(_){return yn(()=>{const C=!0===_.standalone,y={},x={type:_.type,providersResolver:null,decls:_.decls,vars:_.vars,factory:null,template:_.template||null,consts:_.consts||null,ngContentSelectors:_.ngContentSelectors,hostBindings:_.hostBindings||null,hostVars:_.hostVars||0,hostAttrs:_.hostAttrs||null,contentQueries:_.contentQueries||null,declaredInputs:y,inputs:null,outputs:null,exportAs:_.exportAs||null,onPush:_.changeDetection===Si.OnPush,directiveDefs:null,pipeDefs:null,standalone:C,dependencies:C&&_.dependencies||null,getStandaloneInjector:null,selectors:_.selectors||ze,viewQuery:_.viewQuery||null,features:_.features||null,data:_.data||{},encapsulation:_.encapsulation||$.Emulated,id:"c"+Ft++,styles:_.styles||ze,_:null,setInput:null,schemas:_.schemas||null,tView:null},T=_.dependencies,S=_.features;return x.inputs=ko(_.inputs,y),x.outputs=ko(_.outputs),S&&S.forEach(D=>D(x)),x.directiveDefs=T?()=>("function"==typeof T?T():T).map(_i).filter(Kr):null,x.pipeDefs=T?()=>("function"==typeof T?T():T).map(Ii).filter(Kr):null,x})}function yr(_,b,C){const y=_.\u0275cmp;y.directiveDefs=()=>("function"==typeof b?b():b).map(_i),y.pipeDefs=()=>("function"==typeof C?C():C).map(Ii)}function _i(_){return St(_)||Pi(_)}function Kr(_){return null!==_}function Zr(_){return yn(()=>({type:_.type,bootstrap:_.bootstrap||ze,declarations:_.declarations||ze,imports:_.imports||ze,exports:_.exports||ze,transitiveCompileScopes:null,schemas:_.schemas||null,id:_.id||null}))}function ko(_,b){if(null==_)return ut;const C={};for(const y in _)if(_.hasOwnProperty(y)){let x=_[y],T=x;Array.isArray(x)&&(T=x[1],x=x[0]),C[x]=y,b&&(b[x]=T)}return C}const Mu=sn;function cc(_){return{type:_.type,name:_.name,factory:null,pure:!1!==_.pure,standalone:!0===_.standalone,onDestroy:_.type.prototype.ngOnDestroy||null}}function St(_){return _[Ze]||null}function Pi(_){return _[ei]||null}function Ii(_){return _[At]||null}function Qi(_,b){const C=_[Zi]||null;if(!C&&!0===b)throw new Error(`Type ${ee(_)} does not have '\u0275mod' property.`);return C}function ki(_){return Array.isArray(_)&&"object"==typeof _[1]}function ln(_){return Array.isArray(_)&&!0===_[1]}function Is(_){return 0!=(8&_.flags)}function Wa(_){return 2==(2&_.flags)}function ta(_){return 1==(1&_.flags)}function Xi(_){return null!==_.template}function If(_){return 0!=(256&_[2])}function He(_,b){return _.hasOwnProperty(rt)?_[rt]:null}class Vi{constructor(b,C,y){this.previousValue=b,this.currentValue=C,this.firstChange=y}isFirstChange(){return this.firstChange}}function ia(){return jo}function jo(_){return _.type.prototype.ngOnChanges&&(_.setInput=Ui),na}function na(){const _=cn(this),b=_?.current;if(b){const C=_.previous;if(C===ut)_.previous=b;else for(let y in b)C[y]=b[y];_.current=null,this.ngOnChanges(b)}}function Ui(_,b,C,y){const x=cn(_)||function Ru(_,b){return _[Xn]=b}(_,{previous:ut,current:null}),T=x.current||(x.current={}),S=x.previous,D=this.declaredInputs[C],H=S[D];T[D]=new Vi(H&&H.currentValue,b,S===ut),_[y]=b}ia.ngInherit=!0;const Xn="__ngSimpleChanges__";function cn(_){return _[Xn]||null}function bt(_){for(;Array.isArray(_);)_=_[0];return _}function si(_,b){return bt(b[_])}function kt(_,b){return bt(b[_.index])}function dn(_,b){return _.data[b]}function Lt(_,b){return _[b]}function Vt(_,b){const C=b[_];return ki(C)?C:C[0]}function P(_){return 4==(4&_[2])}function O(_){return 64==(64&_[2])}function j(_,b){return null==b?null:_[b]}function ne(_){_[18]=0}function me(_,b){_[5]+=b;let C=_,y=_[3];for(;null!==y&&(1===b&&1===C[5]||-1===b&&0===C[5]);)y[5]+=b,C=y,y=y[3]}const de={lFrame:Fs(null),bindingsEnabled:!0};function ui(){return de.bindingsEnabled}function we(){return de.lFrame.lView}function Xe(){return de.lFrame.tView}function ra(_){return de.lFrame.contextLView=_,_[8]}function er(_){return de.lFrame.contextLView=null,_}function $t(){let _=Vs();for(;null!==_&&64===_.type;)_=_.parent;return _}function Vs(){return de.lFrame.currentTNode}function wi(_,b){const C=de.lFrame;C.currentTNode=_,C.isParent=b}function Bs(){return de.lFrame.isParent}function Pu(){de.lFrame.isParent=!1}function Bi(){const _=de.lFrame;let b=_.bindingRootIndex;return-1===b&&(b=_.bindingRootIndex=_.tView.bindingStartIndex),b}function Er(){return de.lFrame.bindingIndex}function Qa(){return de.lFrame.bindingIndex++}function un(_){const b=de.lFrame,C=b.bindingIndex;return b.bindingIndex=b.bindingIndex+_,C}function Os(_,b){const C=de.lFrame;C.bindingIndex=C.bindingRootIndex=_,Mr(b)}function Mr(_){de.lFrame.currentDirectiveIndex=_}function ku(_){const b=de.lFrame.currentDirectiveIndex;return-1===b?null:_[b]}function Vu(){return de.lFrame.currentQueryIndex}function Ls(_){de.lFrame.currentQueryIndex=_}function JC(_){const b=_[1];return 2===b.type?b.declTNode:1===b.type?_[6]:null}function js(_,b,C){if(C&Ke.SkipSelf){let x=b,T=_;for(;!(x=x.parent,null!==x||C&Ke.Host||(x=JC(T),null===x||(T=T[15],10&x.type))););if(null===x)return!1;b=x,_=T}const y=de.lFrame=Bu();return y.currentTNode=b,y.lView=_,!0}function Ja(_){const b=Bu(),C=_[1];de.lFrame=b,b.currentTNode=C.firstChild,b.lView=_,b.tView=C,b.contextLView=_,b.bindingIndex=C.bindingStartIndex,b.inI18n=!1}function Bu(){const _=de.lFrame,b=null===_?null:_.child;return null===b?Fs(_):b}function Fs(_){const b={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:_,child:null,inI18n:!1};return null!==_&&(_.child=b),b}function Ff(){const _=de.lFrame;return de.lFrame=_.parent,_.currentTNode=null,_.lView=null,_}const pc=Ff;function Fo(){const _=Ff();_.isParent=!0,_.tView=null,_.selectedIndex=-1,_.contextLView=null,_.elementDepthCount=0,_.currentDirectiveIndex=-1,_.currentNamespace=null,_.bindingRootIndex=-1,_.bindingIndex=-1,_.currentQueryIndex=0}function qi(){return de.lFrame.selectedIndex}function aa(_){de.lFrame.selectedIndex=_}function Kt(){const _=de.lFrame;return dn(_.tView,_.selectedIndex)}function Us(){de.lFrame.currentNamespace="svg"}function qf(){!function ZC(){de.lFrame.currentNamespace=null}()}function Uo(_,b){for(let C=b.directiveStart,y=b.directiveEnd;C=y)break}else b[H]<0&&(_[18]+=65536),(D>11<_[18]>>16&&(3&_[2])===b){_[2]+=2048;try{T.call(D)}finally{}}}else try{T.call(D)}finally{}}class Ns{constructor(b,C,y){this.factory=b,this.resolving=!1,this.canSeeViewProviders=C,this.injectImpl=y}}function gc(_,b,C){let y=0;for(;yb){S=T-1;break}}}for(;T<_.length;){const D=_[T];if("number"==typeof D)break;if(D===C){if(null===y)return void(null!==x&&(_[T+1]=x));if(y===_[T+1])return void(_[T+2]=x)}T++,null!==y&&T++,null!==x&&T++}-1!==S&&(_.splice(S,0,b),T=S+1),_.splice(T++,0,C),null!==y&&_.splice(T++,0,y),null!==x&&_.splice(T++,0,x)}function No(_){return-1!==_}function qo(_){return 32767&_}function zo(_,b){let C=function Lu(_){return _>>16}(_),y=b;for(;C>0;)y=y[15],C--;return y}let Cc=!0;function Gs(_){const b=Cc;return Cc=_,b}let yc=0;const Tn={};function Ws(_,b){const C=Fu(_,b);if(-1!==C)return C;const y=b[1];y.firstCreatePass&&(_.injectorIndex=b.length,ju(y.data,_),ju(b,null),ju(y.blueprint,null));const x=vc(_,b),T=_.injectorIndex;if(No(x)){const S=qo(x),D=zo(x,b),H=D[1].data;for(let k=0;k<8;k++)b[T+k]=D[S+k]|H[S+k]}return b[T+8]=x,T}function ju(_,b){_.push(0,0,0,0,0,0,0,0,b)}function Fu(_,b){return-1===_.injectorIndex||_.parent&&_.parent.injectorIndex===_.injectorIndex||null===b[_.injectorIndex+8]?-1:_.injectorIndex}function vc(_,b){if(_.parent&&-1!==_.parent.injectorIndex)return _.parent.injectorIndex;let C=0,y=null,x=b;for(;null!==x;){if(y=zu(x),null===y)return-1;if(C++,x=x[15],-1!==y.injectorIndex)return y.injectorIndex|C<<16}return-1}function Ac(_,b,C){!function nw(_,b,C){let y;"string"==typeof C?y=C.charCodeAt(0)||0:C.hasOwnProperty(Ht)&&(y=C[Ht]),null==y&&(y=C[Ht]=yc++);const x=255&y;b.data[_+(x>>5)]|=1<=0?255&b:Zf:b}(C);if("function"==typeof T){if(!js(b,_,y))return y&Ke.Host?$f(x,0,y):Qf(b,C,y,x);try{const S=T(y);if(null!=S||y&Ke.Optional)return S;Ce()}finally{pc()}}else if("number"==typeof T){let S=null,D=Fu(_,b),H=-1,k=y&Ke.Host?b[16][6]:null;for((-1===D||y&Ke.SkipSelf)&&(H=-1===D?vc(_,b):b[D+8],-1!==H&&tr(y,!1)?(S=b[1],D=qo(H),b=zo(H,b)):D=-1);-1!==D;){const V=b[1];if(Tc(T,D,V.data)){const U=Kf(D,b,C,S,y,k);if(U!==Tn)return U}H=b[D+8],-1!==H&&tr(y,b[1].data[D+8]===k)&&Tc(T,D,b)?(S=V,D=qo(H),b=zo(H,b)):D=-1}}return x}function Kf(_,b,C,y,x,T){const S=b[1],D=S.data[_+8],V=xc(D,S,C,null==y?Wa(D)&&Cc:y!=S&&0!=(3&D.type),x&Ke.Host&&T===D);return null!==V?Go(b,S,V,D):Tn}function xc(_,b,C,y,x){const T=_.providerIndexes,S=b.data,D=1048575&T,H=_.directiveStart,V=T>>20,ie=x?D+V:_.directiveEnd;for(let se=y?D:D+V;se=H&&be.type===C)return se}if(x){const se=S[H];if(se&&Xi(se)&&se.type===C)return H}return null}function Go(_,b,C,y){let x=_[C];const T=b.data;if(function tw(_){return _ instanceof Ns}(x)){const S=x;S.resolving&&function Oe(_,b){const C=b?`. Dependency path: ${b.join(" > ")} > ${_}`:"";throw new ae(-200,`Circular dependency in DI detected for ${_}${C}`)}(function _e(_){return"function"==typeof _?_.name||_.toString():"object"==typeof _&&null!=_&&"function"==typeof _.type?_.type.name||_.type.toString():fe(_)}(T[C]));const D=Gs(S.canSeeViewProviders);S.resolving=!0;const H=S.injectImpl?Ri(S.injectImpl):null;js(_,y,Ke.Default);try{x=_[C]=S.factory(void 0,T,_,y),b.firstCreatePass&&C>=y.directiveStart&&function ew(_,b,C){const{ngOnChanges:y,ngOnInit:x,ngDoCheck:T}=b.type.prototype;if(y){const S=jo(b);(C.preOrderHooks||(C.preOrderHooks=[])).push(_,S),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(_,S)}x&&(C.preOrderHooks||(C.preOrderHooks=[])).push(0-_,x),T&&((C.preOrderHooks||(C.preOrderHooks=[])).push(_,T),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(_,T))}(C,T[C],b)}finally{null!==H&&Ri(H),Gs(D),S.resolving=!1,pc()}}return x}function Tc(_,b,C){return!!(C[b+(_>>5)]&1<<_)}function tr(_,b){return!(_&Ke.Self||_&Ke.Host&&b)}class Sn{constructor(b,C){this._tNode=b,this._lView=C}get(b,C,y){return Yf(this._tNode,this._lView,b,y,C)}}function Zf(){return new Sn($t(),we())}function Nu(_){return yn(()=>{const b=_.prototype.constructor,C=b[rt]||qu(b),y=Object.prototype;let x=Object.getPrototypeOf(_.prototype).constructor;for(;x&&x!==y;){const T=x[rt]||qu(x);if(T&&T!==C)return T;x=Object.getPrototypeOf(x)}return T=>new T})}function qu(_){return oe(_)?()=>{const b=qu(re(_));return b&&b()}:He(_)}function zu(_){const b=_[1],C=b.type;return 2===C?b.declTNode:1===C?_[6]:null}function Gu(_){return function rw(_,b){if("class"===b)return _.classes;if("style"===b)return _.styles;const C=_.attrs;if(C){const y=C.length;let x=0;for(;x{const y=function $s(_){return function(...C){if(_){const y=_(...C);for(const x in y)this[x]=y[x]}}}(b);function x(...T){if(this instanceof x)return y.apply(this,T),this;const S=new x(...T);return D.annotation=S,D;function D(H,k,V){const U=H.hasOwnProperty(Za)?H[Za]:Object.defineProperty(H,Za,{value:[]})[Za];for(;U.length<=V;)U.push(null);return(U[V]=U[V]||[]).push(S),H}}return C&&(x.prototype=Object.create(C.prototype)),x.prototype.ngMetadataName=_,x.annotationCls=x,x})}class jt{constructor(b,C){this._desc=b,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof C?this.__NG_ELEMENT_ID__=C:void 0!==C&&(this.\u0275prov=Dt({token:this,providedIn:C.providedIn||"root",factory:C.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function hn(_,b){void 0===b&&(b=_);for(let C=0;C<_.length;C++){let y=_[C];Array.isArray(y)?(b===_&&(b=_.slice(0,C)),hn(y,b)):b!==_&&b.push(y)}return b}function ua(_,b){_.forEach(C=>Array.isArray(C)?ua(C,b):b(C))}function dw(_,b,C){b>=_.length?_.push(C):_.splice(b,0,C)}function $o(_,b){return b>=_.length-1?_.pop():_.splice(b,1)[0]}function Ys(_,b){const C=[];for(let y=0;y<_;y++)C.push(b);return C}function nn(_,b,C){let y=Xa(_,b);return y>=0?_[1|y]=C:(y=~y,function Yu(_,b,C,y){let x=_.length;if(x==b)_.push(C,y);else if(1===x)_.push(y,_[0]),_[0]=C;else{for(x--,_.push(_[x-1],_[x]);x>b;)_[x]=_[x-2],x--;_[b]=C,_[b+1]=y}}(_,y,b,C)),y}function Ku(_,b){const C=Xa(_,b);if(C>=0)return _[1|C]}function Xa(_,b){return function im(_,b,C){let y=0,x=_.length>>C;for(;x!==y;){const T=y+(x-y>>1),S=_[T<b?x=T:y=T+1}return~(x<_,createScript:_=>_,createScriptURL:_=>_})}catch{}return rl}()?.createHTML(_)||_}function Oc(_){return function oh(){if(void 0===al&&(al=null,ue.trustedTypes))try{al=ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:_=>_,createScript:_=>_,createScriptURL:_=>_})}catch{}return al}()?.createHTML(_)||_}class no{constructor(b){this.changingThisBreaksApplicationSecurity=b}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Dw extends no{getTypeName(){return"HTML"}}class Hw extends no{getTypeName(){return"Style"}}class fm extends no{getTypeName(){return"Script"}}class sh extends no{getTypeName(){return"URL"}}class mm extends no{getTypeName(){return"ResourceURL"}}function ir(_){return _ instanceof no?_.changingThisBreaksApplicationSecurity:_}function Jo(_,b){const C=function Rw(_){return _ instanceof no&&_.getTypeName()||null}(_);if(null!=C&&C!==b){if("ResourceURL"===C&&"URL"===b)return!0;throw new Error(`Required a safe ${b}, got a ${C} (see https://g.co/ng/security#xss)`)}return C===b}function Pw(_){return new Dw(_)}function Iw(_){return new Hw(_)}function lh(_){return new fm(_)}function gm(_){return new sh(_)}function ch(_){return new mm(_)}class kw{constructor(b){this.inertDocumentHelper=b}getInertBodyElement(b){b=""+b;try{const C=(new window.DOMParser).parseFromString(io(b),"text/html").body;return null===C?this.inertDocumentHelper.getInertBodyElement(b):(C.removeChild(C.firstChild),C)}catch{return null}}}class Vw{constructor(b){if(this.defaultDoc=b,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const C=this.inertDocument.createElement("html");this.inertDocument.appendChild(C);const y=this.inertDocument.createElement("body");C.appendChild(y)}}getInertBodyElement(b){const C=this.inertDocument.createElement("template");if("content"in C)return C.innerHTML=io(b),C;const y=this.inertDocument.createElement("body");return y.innerHTML=io(b),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(b){const C=b.attributes;for(let x=C.length-1;0ol(b.trim())).join(", ")),this.buf.push(" ",S,'="',xm(H),'"')}var _;return this.buf.push(">"),!0}endElement(b){const C=b.nodeName.toLowerCase();Fc.hasOwnProperty(C)&&!bm.hasOwnProperty(C)&&(this.buf.push(""))}chars(b){this.buf.push(xm(b))}checkClobberedElement(b,C){if(C&&(b.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${b.outerHTML}`);return C}}const vm=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Am=/([^\#-~ |!])/g;function xm(_){return _.replace(/&/g,"&").replace(vm,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(Am,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(//g,">")}let Uc;function Tm(_,b){let C=null;try{Uc=Uc||function Lc(_){const b=new Vw(_);return function jc(){try{return!!(new window.DOMParser).parseFromString(io(""),"text/html")}catch{return!1}}()?new kw(b):b}(_);let y=b?String(b):"";C=Uc.getInertBodyElement(y);let x=5,T=y;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,y=T,T=C.innerHTML,C=Uc.getInertBodyElement(y)}while(y!==T);return io((new $x).sanitizeChildren(Ko(C)||C))}finally{if(C){const y=Ko(C)||C;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function Ko(_){return"content"in _&&function Fw(_){return _.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===_.nodeName}(_)?_.content:null}var ni=(()=>((ni=ni||{})[ni.NONE=0]="NONE",ni[ni.HTML=1]="HTML",ni[ni.STYLE=2]="STYLE",ni[ni.SCRIPT=3]="SCRIPT",ni[ni.URL=4]="URL",ni[ni.RESOURCE_URL=5]="RESOURCE_URL",ni))();function Sm(_){const b=ll();return b?Oc(b.sanitize(ni.HTML,_)||""):Jo(_,"HTML")?Oc(ir(_)):Tm(function cm(){return void 0!==rh?rh:typeof document<"u"?document:void 0}(),fe(_))}function Nc(_){const b=ll();return b?b.sanitize(ni.URL,_)||"":Jo(_,"URL")?ir(_):ol(fe(_))}function ll(){const _=we();return _&&_[12]}const hh=new jt("ENVIRONMENT_INITIALIZER"),Gw=new jt("INJECTOR",-1),qc=new jt("INJECTOR_DEF_TYPES");class Yt{get(b,C=Zs){if(C===Zs){const y=new Error(`NullInjectorError: No provider for ${ee(b)}!`);throw y.name="NullInjectorError",y}return C}}function Yx(..._){return{\u0275providers:ro(0,_)}}function ro(_,...b){const C=[],y=new Set;let x;return ua(b,T=>{const S=T;zc(S,C,[],y)&&(x||(x=[]),x.push(S))}),void 0!==x&&ph(x,C),C}function ph(_,b){for(let C=0;C<_.length;C++){const{providers:x}=_[C];ua(x,T=>{b.push(T)})}}function zc(_,b,C,y){if(!(_=re(_)))return!1;let x=null,T=Po(_);const S=!T&&St(_);if(T||S){if(S&&!S.standalone)return!1;x=_}else{const H=_.ngModule;if(T=Po(H),!T)return!1;x=H}const D=y.has(x);if(S){if(D)return!1;if(y.add(x),S.dependencies){const H="function"==typeof S.dependencies?S.dependencies():S.dependencies;for(const k of H)zc(k,b,C,y)}}else{if(!T)return!1;{if(null!=T.imports&&!D){let k;y.add(x);try{ua(T.imports,V=>{zc(V,b,C,y)&&(k||(k=[]),k.push(V))})}finally{}void 0!==k&&ph(k,b)}if(!D){const k=He(x)||(()=>new x);b.push({provide:x,useFactory:k,deps:ze},{provide:qc,useValue:x,multi:!0},{provide:hh,useValue:()=>li(x),multi:!0})}const H=T.providers;null==H||D||ua(H,V=>{b.push(V)})}}return x!==_&&void 0!==_.providers}const Ww=q({provide:String,useValue:q});function pn(_){return null!==_&&"object"==typeof _&&Ww in _}function ma(_){return"function"==typeof _}const ul=new jt("Set Injector scope."),Wc={},$c={};let hl;function Yi(){return void 0===hl&&(hl=new Yt),hl}class Vr{}class $w extends Vr{constructor(b,C,y,x){super(),this.parent=C,this.source=y,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Xo(b,S=>this.processProvider(S)),this.records.set(Gw,Zo(void 0,this)),x.has("environment")&&this.records.set(Vr,Zo(void 0,this));const T=this.records.get(ul);null!=T&&"string"==typeof T.value&&this.scopes.add(T.value),this.injectorDefTypes=new Set(this.get(qc.multi,ze,Ke.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();for(const b of this._onDestroyHooks)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(b){this._onDestroyHooks.push(b)}runInContext(b){this.assertNotDestroyed();const C=Mn(this),y=Ri(void 0);try{return b()}finally{Mn(C),Ri(y)}}get(b,C=Zs,y=Ke.Default){this.assertNotDestroyed();const x=Mn(this),T=Ri(void 0);try{if(!(y&Ke.SkipSelf)){let D=this.records.get(b);if(void 0===D){const H=function Kx(_){return"function"==typeof _||"object"==typeof _&&_ instanceof jt}(b)&&Jr(b);D=H&&this.injectableDefInScope(H)?Zo(pl(b),Wc):null,this.records.set(b,D)}if(null!=D)return this.hydrate(b,D)}return(y&Ke.Self?Yi():this.parent).get(b,C=y&Ke.Optional&&C===Zs?null:C)}catch(S){if("NullInjectorError"===S.name){if((S[Mc]=S[Mc]||[]).unshift(ee(b)),x)throw S;return function ww(_,b,C,y){const x=_[Mc];throw b[Dc]&&x.unshift(b[Dc]),_.message=function yw(_,b,C,y=null){_=_&&"\n"===_.charAt(0)&&"\u0275"==_.charAt(1)?_.slice(2):_;let x=ee(b);if(Array.isArray(b))x=b.map(ee).join(" -> ");else if("object"==typeof b){let T=[];for(let S in b)if(b.hasOwnProperty(S)){let D=b[S];T.push(S+":"+("string"==typeof D?JSON.stringify(D):ee(D)))}x=`{${T.join(", ")}}`}return`${C}${y?"("+y+")":""}[${x}]: ${_.replace(Ux,"\n ")}`}("\n"+_.message,x,C,y),_.ngTokenPath=x,_[Mc]=null,_}(S,b,"R3InjectorError",this.source)}throw S}finally{Ri(T),Mn(x)}}resolveInjectorInitializers(){const b=Mn(this),C=Ri(void 0);try{const y=this.get(hh.multi,ze,Ke.Self);for(const x of y)x()}finally{Mn(b),Ri(C)}}toString(){const b=[],C=this.records;for(const y of C.keys())b.push(ee(y));return`R3Injector[${b.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ae(205,!1)}processProvider(b){let C=ma(b=re(b))?b:re(b&&b.provide);const y=function Jx(_){return pn(_)?Zo(void 0,_.useValue):Zo(Qc(_),Wc)}(b);if(ma(b)||!0!==b.multi)this.records.get(C);else{let x=this.records.get(C);x||(x=Zo(void 0,Wc,!0),x.factory=()=>eh(x.multi),this.records.set(C,x)),C=b,x.multi.push(b)}this.records.set(C,y)}hydrate(b,C){return C.value===Wc&&(C.value=$c,C.value=C.factory()),"object"==typeof C.value&&C.value&&function Yw(_){return null!==_&&"object"==typeof _&&"function"==typeof _.ngOnDestroy}(C.value)&&this._ngOnDestroyHooks.add(C.value),C.value}injectableDefInScope(b){if(!b.providedIn)return!1;const C=re(b.providedIn);return"string"==typeof C?"any"===C||this.scopes.has(C):this.injectorDefTypes.has(C)}}function pl(_){const b=Jr(_),C=null!==b?b.factory:He(_);if(null!==C)return C;if(_ instanceof jt)throw new ae(204,!1);if(_ instanceof Function)return function Rm(_){const b=_.length;if(b>0)throw Ys(b,"?"),new ae(204,!1);const C=function Ro(_){const b=_&&(_[Qn]||_[Fa]);if(b){const C=function Su(_){if(_.hasOwnProperty("name"))return _.name;const b=(""+_).match(/^function\s*([^\s(]+)/);return null===b?"":b[1]}(_);return console.warn(`DEPRECATED: DI is instantiating a token "${C}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${C}" class.`),b}return null}(_);return null!==C?()=>C.factory(_):()=>new _}(_);throw new ae(204,!1)}function Qc(_,b,C){let y;if(ma(_)){const x=re(_);return He(x)||pl(x)}if(pn(_))y=()=>re(_.useValue);else if(function fa(_){return!(!_||!_.useFactory)}(_))y=()=>_.useFactory(...eh(_.deps||[]));else if(function cl(_){return!(!_||!_.useExisting)}(_))y=()=>li(re(_.useExisting));else{const x=re(_&&(_.useClass||_.provide));if(!function Qw(_){return!!_.deps}(_))return He(x)||pl(x);y=()=>new x(...eh(_.deps))}return y}function Zo(_,b,C=!1){return{factory:_,value:b,multi:C?[]:void 0}}function Zx(_){return!!_.\u0275providers}function Xo(_,b){for(const C of _)Array.isArray(C)?Xo(C,b):Zx(C)?Xo(C.\u0275providers,b):b(C)}class Jw{}class mh{resolveComponentFactory(b){throw function Xx(_){const b=Error(`No component factory found for ${ee(_)}. Did you add it to @NgModule.entryComponents?`);return b.ngComponent=_,b}(b)}}let ao=(()=>{class _{}return _.NULL=new mh,_})();function gh(){return Br($t(),we())}function Br(_,b){return new Yc(kt(_,b))}let Yc=(()=>{class _{constructor(C){this.nativeElement=C}}return _.__NG_ELEMENT_ID__=gh,_})();function tT(_){return _ instanceof Yc?_.nativeElement:_}class Im{}let Kw=(()=>{class _{}return _.__NG_ELEMENT_ID__=()=>function iT(){const _=we(),C=Vt($t().index,_);return(ki(C)?C:_)[11]}(),_})(),nT=(()=>{class _{}return _.\u0275prov=Dt({token:_,providedIn:"root",factory:()=>null}),_})();class Zw{constructor(b){this.full=b,this.major=b.split(".")[0],this.minor=b.split(".")[1],this.patch=b.split(".").slice(2).join(".")}}const rT=new Zw("14.1.2"),km={};function jm(_){return _.ngOriginalError}class Jc{constructor(){this._console=console}handleError(b){const C=this._findOriginalError(b);this._console.error("ERROR",b),C&&this._console.error("ORIGINAL ERROR",C)}_findOriginalError(b){let C=b&&jm(b);for(;C&&jm(C);)C=jm(C);return C||null}}const Fm=new Map;let _T=0;const qm="__ngContext__";function zi(_,b){ki(b)?(_[qm]=b[20],function CT(_){Fm.set(_[20],_)}(b)):_[qm]=b}function Kc(_){const b=_[qm];return"number"==typeof b?function Um(_){return Fm.get(_)||null}(b):b||null}function zm(_){const b=Kc(_);return b?ki(b)?b:b.lView:null}const ET=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ue))();function ga(_){return _ instanceof Function?_():_}var Or=(()=>((Or=Or||{})[Or.Important=1]="Important",Or[Or.DashCase=2]="DashCase",Or))();function Wm(_,b){return undefined(_,b)}function Zc(_){const b=_[3];return ln(b)?b[3]:b}function $m(_){return py(_[13])}function Qm(_){return py(_[4])}function py(_){for(;null!==_&&!ln(_);)_=_[4];return _}function ml(_,b,C,y,x){if(null!=y){let T,S=!1;ln(y)?T=y:ki(y)&&(S=!0,y=y[0]);const D=bt(y);0===_&&null!==C?null==x?yi(b,C,D):Ye(b,C,D,x||null,!0):1===_&&null!==C?Ye(b,C,D,x||null,!0):2===_?function ng(_,b,C){const y=Gt(_,b);y&&function td(_,b,C,y){_.removeChild(b,C,y)}(_,y,b,C)}(b,D,S):3===_&&b.destroyNode(D),null!=T&&function by(_,b,C,y,x){const T=C[7];T!==bt(C)&&ml(b,_,y,T,x);for(let D=10;D0&&(_[C-1][4]=y[4]);const T=$o(_,10+b);!function OT(_,b){es(_,b,b[11],2,null,null),b[0]=null,b[6]=null}(y[1],y);const S=T[19];null!==S&&S.detachView(T[1]),y[3]=null,y[4]=null,y[2]&=-65}return y}function Xc(_,b){if(!(128&b[2])){const C=b[11];C.destroyNode&&es(_,b,C,3,null,null),function FT(_){let b=_[13];if(!b)return ed(_[1],_);for(;b;){let C=null;if(ki(b))C=b[13];else{const y=b[10];y&&(C=y)}if(!C){for(;b&&!b[4]&&b!==_;)ki(b)&&ed(b[1],b),b=b[3];null===b&&(b=_),ki(b)&&ed(b[1],b),C=b&&b[4]}b=C}}(b)}}function ed(_,b){if(!(128&b[2])){b[2]&=-65,b[2]|=128,function my(_,b){let C;if(null!=_&&null!=(C=_.destroyHooks))for(let y=0;y=0?y[x=k]():y[x=-k].unsubscribe(),T+=2}else{const S=y[x=C[T+1]];C[T].call(S)}if(null!==y){for(let T=x+1;TT?"":x[U+1].toLowerCase();const se=8&y?ie:null;if(se&&-1!==wh(se,k,0)||2&y&&k!==ie){if(nr(y))return!1;S=!0}}}}else{if(!S&&!nr(y)&&!nr(H))return!1;if(S&&nr(H))continue;S=!1,y=H|1&y}}return nr(y)||S}function nr(_){return 0==(1&_)}function vh(_,b,C,y){if(null===b)return-1;let x=0;if(y||!C){let T=!1;for(;x-1)for(C++;C<_.length;){const y=_[C];if("number"==typeof y)return-1;if(y===b)return C;C++}return-1}(b,_)}function yy(_,b,C=!1){for(let y=0;y0?'="'+D+'"':"")+"]"}else 8&y?x+="."+S:4&y&&(x+=" "+S);else""!==x&&!nr(S)&&(b+=sg(T,x),x=""),y=S,T=T||!nr(y);C++}return""!==x&&(b+=sg(T,x)),b}const ct={};function Ah(_){lg(Xe(),we(),qi()+_,!1)}function lg(_,b,C,y){if(!y)if(3==(3&b[2])){const T=_.preOrderCheckHooks;null!==T&&Ka(b,T,C)}else{const T=_.preOrderHooks;null!==T&&fc(b,T,0,C)}aa(C)}function Ry(_,b=null,C=null,y){const x=bl(_,b,C,y);return x.resolveInjectorInitializers(),x}function bl(_,b=null,C=null,y,x=new Set){const T=[C||ze,Yx(_)];return y=y||("object"==typeof _?void 0:ee(_)),new $w(T,b||Yi(),y||null,x)}let rr=(()=>{class _{static create(C,y){if(Array.isArray(C))return Ry({name:""},y,C,"");{const x=C.name??"";return Ry({name:x},C.parent,C.providers,x)}}}return _.THROW_IF_NOT_FOUND=Zs,_.NULL=new Yt,_.\u0275prov=Dt({token:_,providedIn:"any",factory:()=>li(Gw)}),_.__NG_ELEMENT_ID__=-1,_})();function yl(_,b=Ke.Default){const C=we();return null===C?li(_,b):Yf($t(),C,re(_),b)}function Th(){throw new Error("invalid")}function ud(_,b){return _<<17|b<<2}function Pn(_){return _>>17&32767}function gg(_){return 2|_}function _a(_){return(131068&_)>>2}function _g(_,b){return-131069&_|b<<2}function ar(_){return 1|_}function Ky(_,b){const C=_.contentQueries;if(null!==C)for(let y=0;y22&&lg(_,b,22,!1),C(y,x)}finally{aa(T)}}function xg(_,b,C){if(Is(b)){const x=b.directiveEnd;for(let T=b.directiveStart;T0;){const C=_[--b];if("number"==typeof C&&C<0)return C}return 0})(D)!=H&&D.push(H),D.push(y,x,S)}}function rv(_,b){null!==_.hostBindings&&_.hostBindings(1,b)}function Hg(_,b){b.flags|=2,(_.components||(_.components=[])).push(b.index)}function ov(_,b,C){if(C){if(b.exportAs)for(let y=0;y0&&El(C)}}function El(_){for(let y=$m(_);null!==y;y=Qm(y))for(let x=10;x0&&El(T)}const C=_[1].components;if(null!==C)for(let y=0;y0&&El(x)}}function dv(_,b){const C=Vt(b,_),y=C[1];(function Ml(_,b){for(let C=b.length;C<_.blueprint.length;C++)b.push(_.blueprint[C])})(y,C),md(y,C,C[8])}function vd(_,b){return _[13]?_[14][4]=b:_[13]=b,_[14]=b,b}function Ad(_){for(;_;){_[2]|=32;const b=Zc(_);if(If(_)&&!b)return _;_=b}return null}function Vg(_){!function xd(_){for(let b=0;b<_.components.length;b++){const C=_.components[b],y=zm(C);if(null!==y){const x=y[1];aS(x,y,x.template,C)}}}(_[8])}function Fh(_,b,C){Ls(0),b(_,C)}const hv=(()=>Promise.resolve(null))();function Bg(_){return _[7]||(_[7]=[])}function Og(_){return _.cleanup||(_.cleanup=[])}function Lg(_,b,C){return(null===_||Xi(_))&&(C=function qt(_){for(;Array.isArray(_);){if("object"==typeof _[1])return _;_=_[0]}return null}(C[b.index])),C[11]}function ss(_,b){const C=_[9],y=C?C.get(Jc,null):null;y&&y.handleError(b)}function Td(_,b,C,y,x){for(let T=0;T-1&&(Hn(b,y),$o(C,y))}this._attachedToViewContainer=!1}Xc(this._lView[1],this._lView)}onDestroy(b){Eg(this._lView[1],this._lView,null,b)}markForCheck(){Ad(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function kg(_,b,C){const y=b[10];y.begin&&y.begin();try{Di(_,b,_.template,C)}catch(x){throw ss(b,x),x}finally{y.end&&y.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function jT(_,b){es(_,b,b[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(b){if(this._attachedToViewContainer)throw new ae(902,!1);this._appRef=b}}class pv extends ls{constructor(b){super(b),this._view=b}detectChanges(){Vg(this._view)}checkNoChanges(){}get context(){return null}}class Uh extends ao{constructor(b){super(),this.ngModule=b}resolveComponentFactory(b){const C=St(b);return new Ed(C,this.ngModule)}}function Nh(_){const b=[];for(let C in _)_.hasOwnProperty(C)&&b.push({propName:_[C],templateName:C});return b}class fv{constructor(b,C){this.injector=b,this.parentInjector=C}get(b,C,y){const x=this.injector.get(b,km,y);return x!==km||C===km?x:this.parentInjector.get(b,C,y)}}class Ed extends Jw{constructor(b,C){super(),this.componentDef=b,this.ngModule=C,this.componentType=b.type,this.selector=function Sy(_){return _.map(Ty).join(",")}(b.selectors),this.ngContentSelectors=b.ngContentSelectors?b.ngContentSelectors:[],this.isBoundToModule=!!C}get inputs(){return Nh(this.componentDef.inputs)}get outputs(){return Nh(this.componentDef.outputs)}create(b,C,y,x){let T=(x=x||this.ngModule)instanceof Vr?x:x?.injector;T&&null!==this.componentDef.getStandaloneInjector&&(T=this.componentDef.getStandaloneInjector(T)||T);const S=T?new fv(b,T):b,D=S.get(Im,null);if(null===D)throw new ae(407,!1);const H=S.get(nT,null),k=D.createRenderer(null,this.componentDef),V=this.componentDef.selectors[0][0]||"div",U=y?function Sg(_,b,C){return _.selectRootElement(b,C===$.ShadowDom)}(k,y,this.componentDef.encapsulation):Jm(D.createRenderer(null,this.componentDef),V,function jg(_){const b=_.toLowerCase();return"svg"===b?"svg":"math"===b?"math":null}(V)),ie=this.componentDef.onPush?288:272,se=function hS(_,b){return{components:[],scheduler:_||ET,clean:hv,playerHandler:b||null,flags:0}}(),be=Ih(0,null,null,1,0,null,null,null,null,null),Ee=fd(null,be,se,ie,null,null,D,k,H,S,null);let ke,qe;Ja(Ee);try{const it=function dS(_,b,C,y,x,T){const S=C[1];C[22]=_;const H=xl(S,22,2,"#host",null),k=H.mergedAttrs=b.hostAttrs;null!==k&&(Ur(H,k,!0),null!==_&&(gc(x,_,k),null!==H.classes&&rg(x,_,H.classes),null!==H.styles&&_l(x,_,H.styles)));const V=y.createRenderer(_,b),U=fd(C,Tg(b),null,b.onPush?32:16,C[22],H,y,V,T||null,null,null);return S.firstCreatePass&&(Ac(Ws(H,C),S,b.type),Hg(S,H),Rg(H,C.length,1)),vd(C,U),C[22]=U}(U,this.componentDef,Ee,D,k);if(U)if(y)gc(k,U,["ng-version",rT.full]);else{const{attrs:ve,classes:Qe}=function Ey(_){const b=[],C=[];let y=1,x=2;for(;y<_.length;){let T=_[y];if("string"==typeof T)2===x?""!==T&&b.push(T,_[++y]):8===x&&C.push(T);else{if(!nr(x))break;x=T}y++}return{attrs:b,classes:C}}(this.componentDef.selectors[0]);ve&&gc(k,U,ve),Qe&&Qe.length>0&&rg(k,U,Qe.join(" "))}if(qe=dn(be,22),void 0!==C){const ve=qe.projection=[];for(let Qe=0;Qe=0;y--){const x=_[y];x.hostVars=b+=x.hostVars,x.hostAttrs=_c(x.hostAttrs,C=_c(C,x.hostAttrs))}}(y)}function zh(_){return _===ut?{}:_===ze?[]:_}function Gh(_,b){const C=_.viewQuery;_.viewQuery=C?(y,x)=>{b(y,x),C(y,x)}:b}function fS(_,b){const C=_.contentQueries;_.contentQueries=C?(y,x,T)=>{b(y,x,T),C(y,x,T)}:b}function mv(_,b){const C=_.hostBindings;_.hostBindings=C?(y,x)=>{b(y,x),C(y,x)}:b}let us=null;function hs(){if(!us){const _=ue.Symbol;if(_&&_.iterator)us=_.iterator;else{const b=Object.getOwnPropertyNames(Map.prototype);for(let C=0;CD(bt(Ct[y.index])):y.index;let Qe=null;if(!D&&H&&(Qe=function mo(_,b,C,y){const x=_.cleanup;if(null!=x)for(let T=0;TH?D[H]:null}"string"==typeof S&&(T+=2)}return null}(_,b,x,y.index)),null!==Qe)(Qe.__ngLastListenerFn__||Qe).__ngNextListenerFn__=T,Qe.__ngLastListenerFn__=T,se=!1;else{T=Vl(y,b,U,T,!1);const Ct=C.listen(qe,x,T);ie.push(T,Ct),V&&V.push(x,ve,it,it+1)}}else T=Vl(y,b,U,T,!1);const be=y.outputs;let Ee;if(se&&null!==be&&(Ee=be[x])){const ke=Ee.length;if(ke)for(let qe=0;qe0;)b=b[15],_--;return b}(_,de.lFrame.contextLView))[8]}(_)}function kd(_,b){let C=null;const y=function od(_){const b=_.attrs;if(null!=b){const C=b.indexOf(5);if(0==(1&C))return b[C+1]}return null}(_);for(let x=0;x=0}const fi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function e_(_){return _.substring(fi.key,fi.keyEnd)}function t_(_,b){const C=fi.textEnd;return C===b?-1:(b=fi.keyEnd=function vS(_,b,C){for(;b32;)b++;return b}(_,fi.key=b,C),qr(_,b,C))}function qr(_,b,C){for(;b=0;C=t_(b,C))nn(_,e_(b),!0)}function _n(_,b,C,y){const x=we(),T=Xe(),S=un(2);T.firstUpdatePass&&r_(T,_,S,y),b!==ct&&vi(x,S,b)&&Iv(T,T.data[qi()],x,x[11],_,x[S+1]=function ES(_,b){return null==_||("string"==typeof b?_+=b:"object"==typeof _&&(_=ee(ir(_)))),_}(b,C),y,S)}function Ln(_,b,C,y){const x=Xe(),T=un(2);x.firstUpdatePass&&r_(x,null,T,y);const S=we();if(C!==ct&&vi(S,T,C)){const D=x.data[qi()];if(Vv(D,y)&&!np(x,T)){let H=y?D.classesWithoutHost:D.stylesWithoutHost;null!==H&&(C=W(H,C||"")),Gg(x,D,S,C,y)}else!function Pv(_,b,C,y,x,T,S,D){x===ct&&(x=ze);let H=0,k=0,V=0=_.expandoStartIndex}function r_(_,b,C,y){const x=_.data;if(null===x[C+1]){const T=x[qi()],S=np(_,C);Vv(T,y)&&null===b&&!S&&(b=!1),b=function Rv(_,b,C,y){const x=ku(_);let T=y?b.residualClasses:b.residualStyles;if(null===x)0===(y?b.classBindings:b.styleBindings)&&(C=Od(C=a_(null,_,b,C,y),b.attrs,y),T=null);else{const S=b.directiveStylingLast;if(-1===S||_[S]!==x)if(C=a_(x,_,b,C,y),null===T){let H=function rp(_,b,C){const y=C?b.classBindings:b.styleBindings;if(0!==_a(y))return _[Pn(y)]}(_,b,y);void 0!==H&&Array.isArray(H)&&(H=a_(null,_,b,H[1],y),H=Od(H,b.attrs,y),function Bl(_,b,C,y){_[Pn(C?b.classBindings:b.styleBindings)]=y}(_,b,y,H))}else T=function xa(_,b,C){let y;const x=b.directiveEnd;for(let T=1+b.directiveStylingLast;T0)&&(k=!0)}else V=C;if(x)if(0!==H){const ie=Pn(_[D+1]);_[y+1]=ud(ie,D),0!==ie&&(_[ie+1]=_g(_[ie+1],y)),_[D+1]=function $e(_,b){return 131071&_|b<<17}(_[D+1],y)}else _[y+1]=ud(D,0),0!==D&&(_[D+1]=_g(_[D+1],y)),D=y;else _[y+1]=ud(H,0),0===D?D=y:_[H+1]=_g(_[H+1],y),H=y;k&&(_[y+1]=gg(_[y+1])),Xg(_,V,y,!0),Xg(_,V,y,!1),function Tv(_,b,C,y,x){const T=x?_.residualClasses:_.residualStyles;null!=T&&"string"==typeof b&&Xa(T,b)>=0&&(C[y+1]=ar(C[y+1]))}(b,V,_,y,T),S=ud(D,H),T?b.classBindings=S:b.styleBindings=S}(x,T,b,C,S,y)}}function a_(_,b,C,y,x){let T=null;const S=C.directiveEnd;let D=C.directiveStylingLast;for(-1===D?D=C.directiveStart:D++;D0;){const H=_[x],k=Array.isArray(H),V=k?H[1]:H,U=null===V;let ie=C[x+1];ie===ct&&(ie=U?ze:void 0);let se=U?Ku(ie,y):V===y?ie:void 0;if(k&&!ap(se)&&(se=Ku(H,y)),ap(se)&&(D=se,S))return D;const be=_[x+1];x=S?Pn(be):_a(be)}if(null!==b){let H=T?b.residualClasses:b.residualStyles;null!=H&&(D=Ku(H,y))}return D}function ap(_){return void 0!==_}function Vv(_,b){return 0!=(_.flags&(b?16:32))}function Bv(_,b=""){const C=we(),y=Xe(),x=_+22,T=y.firstCreatePass?xl(y,x,1,b,null):y.data[x],S=C[x]=function Ym(_,b){return _.createText(b)}(C[11],b);gl(y,C,S,T),wi(T,!1)}function s_(_){return op("",_,""),s_}function op(_,b,C){const y=we(),x=Rl(y,_,b,C);return x!==ct&&Fr(y,qi(),x),op}function l_(_,b,C,y,x){const T=we(),S=function fs(_,b,C,y,x,T){const D=wa(_,Er(),C,x);return un(2),D?b+fe(C)+y+fe(x)+T:ct}(T,_,b,C,y,x);return S!==ct&&Fr(T,qi(),S),l_}function c_(_,b,C,y,x,T,S,D,H,k,V){const U=we(),ie=fo(U,_,b,C,y,x,T,S,D,H,k,V);return ie!==ct&&Fr(U,qi(),ie),c_}function u_(_,b,C){Ln(nn,lr,Rl(we(),_,b,C),!0)}function v_(_,b,C){const y=we();return vi(y,Qa(),b)&&an(Xe(),Kt(),y,_,b,y[11],C,!0),v_}function lp(_,b,C){const y=we();if(vi(y,Qa(),b)){const T=Xe(),S=Kt();an(T,S,y,_,b,Lg(ku(T.data),S,y),C,!0)}return lp}const bo=void 0;var OS=["en",[["a","p"],["AM","PM"],bo],[["AM","PM"],bo,bo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],bo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],bo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",bo,"{1} 'at' {0}",bo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Gv(_){const C=Math.floor(Math.abs(_)),y=_.toString().replace(/^[^.]*\.?/,"").length;return 1===C&&0===y?1:5}];let Ol={};function Ll(_){const b=function jS(_){return _.toLowerCase().replace(/_/g,"-")}(_);let C=Wv(b);if(C)return C;const y=b.split("-")[0];if(C=Wv(y),C)return C;if("en"===y)return OS;throw new ae(701,!1)}function A_(_){return Ll(_)[et.PluralCase]}function Wv(_){return _ in Ol||(Ol[_]=ue.ng&&ue.ng.common&&ue.ng.common.locales&&ue.ng.common.locales[_]),Ol[_]}var et=(()=>((et=et||{})[et.LocaleId=0]="LocaleId",et[et.DayPeriodsFormat=1]="DayPeriodsFormat",et[et.DayPeriodsStandalone=2]="DayPeriodsStandalone",et[et.DaysFormat=3]="DaysFormat",et[et.DaysStandalone=4]="DaysStandalone",et[et.MonthsFormat=5]="MonthsFormat",et[et.MonthsStandalone=6]="MonthsStandalone",et[et.Eras=7]="Eras",et[et.FirstDayOfWeek=8]="FirstDayOfWeek",et[et.WeekendRange=9]="WeekendRange",et[et.DateFormat=10]="DateFormat",et[et.TimeFormat=11]="TimeFormat",et[et.DateTimeFormat=12]="DateTimeFormat",et[et.NumberSymbols=13]="NumberSymbols",et[et.NumberFormats=14]="NumberFormats",et[et.CurrencyCode=15]="CurrencyCode",et[et.CurrencySymbol=16]="CurrencySymbol",et[et.CurrencyName=17]="CurrencyName",et[et.Currencies=18]="Currencies",et[et.Directionality=19]="Directionality",et[et.PluralCase=20]="PluralCase",et[et.ExtraData=21]="ExtraData",et))();const zr="en-US";let jl=zr;function vp(_,b,C,y,x){if(_=re(_),Array.isArray(_))for(let T=0;T<_.length;T++)vp(_[T],b,C,y,x);else{const T=Xe(),S=we();let D=ma(_)?_:re(_.provide),H=Qc(_);const k=$t(),V=1048575&k.providerIndexes,U=k.directiveStart,ie=k.providerIndexes>>20;if(ma(_)||!_.multi){const se=new Ns(H,x,yl),be=Kd(D,b,x?V:V+ie,U);-1===be?(Ac(Ws(k,S),T,D),Ap(T,_,b.length),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(se),S.push(se)):(C[be]=se,S[be]=se)}else{const se=Kd(D,b,V+ie,U),be=Kd(D,b,V,V+ie),Ee=se>=0&&C[se],ke=be>=0&&C[be];if(x&&!ke||!x&&!Ee){Ac(Ws(k,S),T,D);const qe=function vs(_,b,C,y,x){const T=new Ns(_,C,yl);return T.multi=[],T.index=b,T.componentProviders=0,F_(T,x,y&&!C),T}(x?fA:xp,C.length,x,y,H);!x&&ke&&(C[be].providerFactory=qe),Ap(T,_,b.length,0),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(qe),S.push(qe)}else Ap(T,_,se>-1?se:be,F_(C[x?be:se],H,!x&&y));!x&&y&&ke&&C[be].componentProviders++}}}function Ap(_,b,C,y){const x=ma(b),T=function dl(_){return!!_.useClass}(b);if(x||T){const H=(T?re(b.useClass):b).prototype.ngOnDestroy;if(H){const k=_.destroyHooks||(_.destroyHooks=[]);if(!x&&b.multi){const V=k.indexOf(C);-1===V?k.push(C,[y,H]):k[V+1].push(y,H)}else k.push(C,H)}}}function F_(_,b,C){return C&&_.componentProviders++,_.multi.push(b)-1}function Kd(_,b,C,y){for(let x=C;x{C.providersResolver=(y,x)=>function pA(_,b,C){const y=Xe();if(y.firstCreatePass){const x=Xi(_);vp(C,y.data,y.blueprint,x,!0),vp(b,y.data,y.blueprint,x,!1)}}(y,x?x(_):_,b)}}class ur{}class N_{}function mA(_,b){return new q_(_,b??null)}class q_ extends ur{constructor(b,C){super(),this._parent=C,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Uh(this);const y=Qi(b);this._bootstrapComponents=ga(y.bootstrap),this._r3Injector=bl(b,C,[{provide:ur,useValue:this},{provide:ao,useValue:this.componentFactoryResolver}],ee(b),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(b)}get injector(){return this._r3Injector}destroy(){const b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(C=>C()),this.destroyCbs=null}onDestroy(b){this.destroyCbs.push(b)}}class Sa extends N_{constructor(b){super(),this.moduleType=b}create(b){return new q_(this.moduleType,b)}}class gA extends ur{constructor(b,C,y){super(),this.componentFactoryResolver=new Uh(this),this.instance=null;const x=new $w([...b,{provide:ur,useValue:this},{provide:ao,useValue:this.componentFactoryResolver}],C||Yi(),y,new Set(["environment"]));this.injector=x,x.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(b){this.injector.onDestroy(b)}}function Zd(_,b,C=null){return new gA(_,b,C).injector}function CA(_,b,C){const y=Bi()+_,x=we();return x[y]===ct?or(x,y,C?b.call(C):b()):function ps(_,b){return _[b]}(x,y)}function wA(_,b,C,y){return xA(we(),Bi(),_,b,C,y)}function yA(_,b,C,y,x){return TA(we(),Bi(),_,b,C,y,x)}function Xd(_,b){const C=_[b];return C===ct?void 0:C}function xA(_,b,C,y,x,T){const S=b+C;return vi(_,S,x)?or(_,S+1,T?y.call(T,x):y(x)):Xd(_,S+1)}function TA(_,b,C,y,x,T,S){const D=b+C;return wa(_,D,x,T)?or(_,D+2,S?y.call(S,x,T):y(x,T)):Xd(_,D+2)}function Q_(_,b,C,y,x,T,S,D){const H=b+C;return function Hd(_,b,C,y,x){const T=wa(_,b,C,y);return vi(_,b+2,x)||T}(_,H,x,T,S)?or(_,H+3,D?y.call(D,x,T,S):y(x,T,S)):Xd(_,H+3)}function EA(_,b){const C=Xe();let y;const x=_+22;C.firstCreatePass?(y=function MA(_,b){if(b)for(let C=b.length-1;C>=0;C--){const y=b[C];if(_===y.name)return y}}(b,C.pipeRegistry),C.data[x]=y,y.onDestroy&&(C.destroyHooks||(C.destroyHooks=[])).push(x,y.onDestroy)):y=C.data[x];const T=y.factory||(y.factory=He(y.type)),S=Ri(yl);try{const D=Gs(!1),H=T();return Gs(D),function gn(_,b,C,y){C>=_.data.length&&(_.data[C]=null,_.blueprint[C]=null),b[C]=y}(C,we(),x,H),H}finally{Ri(S)}}function DA(_,b,C){const y=_+22,x=we(),T=Lt(x,y);return eu(x,y)?xA(x,Bi(),b,T.transform,C,T):T.transform(C)}function HA(_,b,C,y){const x=_+22,T=we(),S=Lt(T,x);return eu(T,x)?TA(T,Bi(),b,S.transform,C,y,S):S.transform(C,y)}function J_(_,b,C,y,x){const T=_+22,S=we(),D=Lt(S,T);return eu(S,T)?Q_(S,Bi(),b,D.transform,C,y,x,D):D.transform(C,y,x)}function eu(_,b){return _[1].data[b].pure}function K_(_){return b=>{setTimeout(_,void 0,b)}}const Wr=class pr extends M.x{constructor(b=!1){super(),this.__isAsync=b}emit(b){super.next(b)}subscribe(b,C,y){let x=b,T=C||(()=>null),S=y;if(b&&"object"==typeof b){const H=b;x=H.next?.bind(H),T=H.error?.bind(H),S=H.complete?.bind(H)}this.__isAsync&&(T=K_(T),x&&(x=K_(x)),S&&(S=K_(S)));const D=super.subscribe({next:x,error:T,complete:S});return b instanceof f.w0&&b.add(D),D}};function aE(){return this._results[hs()]()}class Dp{constructor(b=!1){this._emitDistinctChangesOnly=b,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const C=hs(),y=Dp.prototype;y[C]||(y[C]=aE)}get changes(){return this._changes||(this._changes=new Wr)}get(b){return this._results[b]}map(b){return this._results.map(b)}filter(b){return this._results.filter(b)}find(b){return this._results.find(b)}reduce(b,C){return this._results.reduce(b,C)}forEach(b){this._results.forEach(b)}some(b){return this._results.some(b)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(b,C){const y=this;y.dirty=!1;const x=hn(b);(this._changesDetected=!function jx(_,b,C){if(_.length!==b.length)return!1;for(let y=0;y<_.length;y++){let x=_[y],T=b[y];if(C&&(x=C(x),T=C(T)),T!==x)return!1}return!0}(y._results,x,C))&&(y._results=x,y.length=x.length,y.last=x[this.length-1],y.first=x[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let tu=(()=>{class _{}return _.__NG_ELEMENT_ID__=sE,_})();const oE=tu,IA=class extends oE{constructor(b,C,y){super(),this._declarationLView=b,this._declarationTContainer=C,this.elementRef=y}createEmbeddedView(b,C){const y=this._declarationTContainer.tViews,x=fd(this._declarationLView,y,b,16,null,y.declTNode,null,null,null,null,C||null);x[17]=this._declarationLView[this._declarationTContainer.index];const S=this._declarationLView[19];return null!==S&&(x[19]=S.createEmbeddedView(y)),md(y,x,b),new ls(x)}};function sE(){return Hp($t(),we())}function Hp(_,b){return 4&_.type?new IA(b,_,Br(_,b)):null}let Rp=(()=>{class _{}return _.__NG_ELEMENT_ID__=lE,_})();function lE(){return BA($t(),we())}const cE=Rp,kA=class extends cE{constructor(b,C,y){super(),this._lContainer=b,this._hostTNode=C,this._hostLView=y}get element(){return Br(this._hostTNode,this._hostLView)}get injector(){return new Sn(this._hostTNode,this._hostLView)}get parentInjector(){const b=vc(this._hostTNode,this._hostLView);if(No(b)){const C=zo(b,this._hostLView),y=qo(b);return new Sn(C[1].data[y+8],C)}return new Sn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(b){const C=VA(this._lContainer);return null!==C&&C[b]||null}get length(){return this._lContainer.length-10}createEmbeddedView(b,C,y){let x,T;"number"==typeof y?x=y:null!=y&&(x=y.index,T=y.injector);const S=b.createEmbeddedView(C||{},T);return this.insert(S,x),S}createComponent(b,C,y,x,T){const S=b&&!function Wo(_){return"function"==typeof _}(b);let D;if(S)D=C;else{const U=C||{};D=U.index,y=U.injector,x=U.projectableNodes,T=U.environmentInjector||U.ngModuleRef}const H=S?b:new Ed(St(b)),k=y||this.parentInjector;if(!T&&null==H.ngModule){const ie=(S?k:this.parentInjector).get(Vr,null);ie&&(T=ie)}const V=H.create(k,x,void 0,T);return this.insert(V.hostView,D),V}insert(b,C){const y=b._lView,x=y[1];if(function I(_){return ln(_[3])}(y)){const V=this.indexOf(b);if(-1!==V)this.detach(V);else{const U=y[3],ie=new kA(U,U[6],U[3]);ie.detach(ie.indexOf(b))}}const T=this._adjustIndex(C),S=this._lContainer;!function UT(_,b,C,y){const x=10+y,T=C.length;y>0&&(C[x-1][4]=b),y0)y.push(S[D/2]);else{const k=T[D+1],V=b[-H];for(let U=10;U{class _{constructor(C){this.appInits=C,this.resolve=Jl,this.reject=Jl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,x)=>{this.resolve=y,this.reject=x})}runInitializers(){if(this.initialized)return;const C=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let x=0;x{T.subscribe({complete:D,error:H})});C.push(S)}}Promise.all(C).then(()=>{y()}).catch(x=>{this.reject(x)}),0===C.length&&y(),this.initialized=!0}}return _.\u0275fac=function(C){return new(C||_)(li(Yp,8))},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const Fn=new jt("AppId",{providedIn:"root",factory:function Jp(){return`${yb()}${yb()}${yb()}`}});function yb(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const wo=new jt("Platform Initializer"),Kp=new jt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),ou=new jt("appBootstrapListener"),n0=new jt("AnimationModuleType");let Xp=(()=>{class _{log(C){console.log(C)}warn(C){console.warn(C)}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();const ef=new jt("LocaleId",{providedIn:"root",factory:()=>rm(ef,Ke.Optional|Ke.SkipSelf)||function r0(){return typeof $localize<"u"&&$localize.locale||zr}()}),gE=new jt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class _E{constructor(b,C){this.ngModuleFactory=b,this.componentFactories=C}}let bE=(()=>{class _{compileModuleSync(C){return new Sa(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const y=this.compileModuleSync(C),T=ga(Qi(C).declarations).reduce((S,D)=>{const H=St(D);return H&&S.push(new Ed(H)),S},[]);return new _E(y,T)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const su=(()=>Promise.resolve(0))();function Ia(_){typeof Zone>"u"?su.then(()=>{_&&_.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",_)}class $i{constructor({enableLongStackTrace:b=!1,shouldCoalesceEventChangeDetection:C=!1,shouldCoalesceRunChangeDetection:y=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Wr(!1),this.onMicrotaskEmpty=new Wr(!1),this.onStable=new Wr(!1),this.onError=new Wr(!1),typeof Zone>"u")throw new ae(908,!1);Zone.assertZonePatched();const x=this;if(x._nesting=0,x._outer=x._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const T=Zone.AsyncStackTaggingZoneSpec;x._inner=x._inner.fork(new T("Angular"))}Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),b&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!y&&C,x.shouldCoalesceRunChangeDetection=y,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function Kl(){let _=ue.requestAnimationFrame,b=ue.cancelAnimationFrame;if(typeof Zone<"u"&&_&&b){const C=_[Zone.__symbol__("OriginalDelegate")];C&&(_=C);const y=b[Zone.__symbol__("OriginalDelegate")];y&&(b=y)}return{nativeRequestAnimationFrame:_,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function lu(_){const b=()=>{!function Sb(_){_.isCheckStableRunning||-1!==_.lastRequestAnimationFrameId||(_.lastRequestAnimationFrameId=_.nativeRequestAnimationFrame.call(ue,()=>{_.fakeTopEventTask||(_.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{_.lastRequestAnimationFrameId=-1,cu(_),_.isCheckStableRunning=!0,Zl(_),_.isCheckStableRunning=!1},void 0,()=>{},()=>{})),_.fakeTopEventTask.invoke()}),cu(_))}(_)};_._inner=_._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(C,y,x,T,S,D)=>{try{return tf(_),C.invokeTask(x,T,S,D)}finally{(_.shouldCoalesceEventChangeDetection&&"eventTask"===T.type||_.shouldCoalesceRunChangeDetection)&&b(),Xl(_)}},onInvoke:(C,y,x,T,S,D,H)=>{try{return tf(_),C.invoke(x,T,S,D,H)}finally{_.shouldCoalesceRunChangeDetection&&b(),Xl(_)}},onHasTask:(C,y,x,T)=>{C.hasTask(x,T),y===x&&("microTask"==T.change?(_._hasPendingMicrotasks=T.microTask,cu(_),Zl(_)):"macroTask"==T.change&&(_.hasPendingMacrotasks=T.macroTask))},onHandleError:(C,y,x,T)=>(C.handleError(x,T),_.runOutsideAngular(()=>_.onError.emit(T)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$i.isInAngularZone())throw new ae(909,!1)}static assertNotInAngularZone(){if($i.isInAngularZone())throw new ae(909,!1)}run(b,C,y){return this._inner.run(b,C,y)}runTask(b,C,y,x){const T=this._inner,S=T.scheduleEventTask("NgZoneEvent: "+x,b,Tb,Jl,Jl);try{return T.runTask(S,C,y)}finally{T.cancelTask(S)}}runGuarded(b,C,y){return this._inner.runGuarded(b,C,y)}runOutsideAngular(b){return this._outer.run(b)}}const Tb={};function Zl(_){if(0==_._nesting&&!_.hasPendingMicrotasks&&!_.isStable)try{_._nesting++,_.onMicrotaskEmpty.emit(null)}finally{if(_._nesting--,!_.hasPendingMicrotasks)try{_.runOutsideAngular(()=>_.onStable.emit(null))}finally{_.isStable=!0}}}function cu(_){_.hasPendingMicrotasks=!!(_._hasPendingMicrotasks||(_.shouldCoalesceEventChangeDetection||_.shouldCoalesceRunChangeDetection)&&-1!==_.lastRequestAnimationFrameId)}function tf(_){_._nesting++,_.isStable&&(_.isStable=!1,_.onUnstable.emit(null))}function Xl(_){_._nesting--,Zl(_)}class du{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Wr,this.onMicrotaskEmpty=new Wr,this.onStable=new Wr,this.onError=new Wr}run(b,C,y){return b.apply(C,y)}runGuarded(b,C,y){return b.apply(C,y)}runOutsideAngular(b){return b()}runTask(b,C,y,x){return b.apply(C,y)}}const l0=new jt(""),c0=new jt("");let yo,d0=(()=>{class _{constructor(C,y,x){this._ngZone=C,this.registry=y,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,yo||(function uu(_){yo=_}(x),x.addToWindow(y)),this._watchAngularEvents(),C.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$i.assertNotInAngularZone(),Ia(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Ia(()=>{for(;0!==this._callbacks.length;){let C=this._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb(this._didWork)}this._didWork=!1});else{let C=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(C)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,y,x){let T=-1;y&&y>0&&(T=setTimeout(()=>{this._callbacks=this._callbacks.filter(S=>S.timeoutId!==T),C(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:C,timeoutId:T,updateCb:x})}whenStable(C,y,x){if(x&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(C,y,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,y,x){return[]}}return _.\u0275fac=function(C){return new(C||_)(li($i),li(u0),li(c0))},_.\u0275prov=Dt({token:_,factory:_.\u0275fac}),_})(),u0=(()=>{class _{constructor(){this._applications=new Map}registerApplication(C,y){this._applications.set(C,y)}unregisterApplication(C){this._applications.delete(C)}unregisterAllApplications(){this._applications.clear()}getTestability(C){return this._applications.get(C)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(C,y=!0){return yo?.findTestabilityInTree(this,C,y)??null}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})(),Un=null;const ec=new jt("AllowMultipleToken"),nf=new jt("PlatformDestroyListeners");class Eb{constructor(b,C){this.name=b,this.token=C}}function Hb(_,b,C=[]){const y=`Platform: ${b}`,x=new jt(y);return(T=[])=>{let S=rf();if(!S||S.injector.get(ec,!1)){const D=[...C,...T,{provide:x,useValue:!0}];_?_(D):function p0(_){if(Un&&!Un.get(ec,!1))throw new ae(400,!1);Un=_;const b=_.get(af);(function Db(_){const b=_.get(wo,null);b&&b.forEach(C=>C())})(_)}(function f0(_=[],b){return rr.create({name:b,providers:[{provide:ul,useValue:"platform"},{provide:nf,useValue:new Set([()=>Un=null])},..._]})}(D,y))}return function Rb(_){const b=rf();if(!b)throw new ae(401,!1);return b}()}}function rf(){return Un?.get(af)??null}let af=(()=>{class _{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,y){const x=function m0(_,b){let C;return C="noop"===_?new du:("zone.js"===_?void 0:_)||new $i(b),C}(y?.ngZone,function pu(_){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!_||!_.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!_||!_.ngZoneRunCoalescing)||!1}}(y)),T=[{provide:$i,useValue:x}];return x.run(()=>{const S=rr.create({providers:T,parent:this.injector,name:C.moduleType.name}),D=C.create(S),H=D.injector.get(Jc,null);if(!H)throw new ae(402,!1);return x.runOutsideAngular(()=>{const k=x.onError.subscribe({next:V=>{H.handleError(V)}});D.onDestroy(()=>{Va(this._modules,D),k.unsubscribe()})}),function g0(_,b,C){try{const y=C();return vt(y)?y.catch(x=>{throw b.runOutsideAngular(()=>_.handleError(x)),x}):y}catch(y){throw b.runOutsideAngular(()=>_.handleError(y)),y}}(H,x,()=>{const k=D.injector.get(xi);return k.runInitializers(),k.donePromise.then(()=>(function $v(_){Bt(_,"Expected localeId to be defined"),"string"==typeof _&&(jl=_.toLowerCase().replace(/_/g,"-"))}(D.injector.get(ef,zr)||zr),this._moduleDoBootstrap(D),D))})})}bootstrapModule(C,y=[]){const x=Ib({},y);return function hu(_,b,C){const y=new Sa(C);return Promise.resolve(y)}(0,0,C).then(T=>this.bootstrapModuleFactory(T,x))}_moduleDoBootstrap(C){const y=C.injector.get(ka);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(x=>y.bootstrap(x));else{if(!C.instance.ngDoBootstrap)throw new ae(403,!1);C.instance.ngDoBootstrap(y)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ae(404,!1);this._modules.slice().forEach(y=>y.destroy()),this._destroyListeners.forEach(y=>y());const C=this._injector.get(nf,null);C&&(C.forEach(y=>y()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return _.\u0275fac=function(C){return new(C||_)(li(rr))},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();function Ib(_,b){return Array.isArray(b)?b.reduce(Ib,_):{..._,...b}}let ka=(()=>{class _{constructor(C,y,x){this._zone=C,this._injector=y,this._exceptionHandler=x,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const T=new L.y(D=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{D.next(this._stable),D.complete()})}),S=new L.y(D=>{let H;this._zone.runOutsideAngular(()=>{H=this._zone.onStable.subscribe(()=>{$i.assertNotInAngularZone(),Ia(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,D.next(!0))})})});const k=this._zone.onUnstable.subscribe(()=>{$i.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{D.next(!1)}))});return()=>{H.unsubscribe(),k.unsubscribe()}});this.isStable=(0,F.T)(T,S.pipe((0,B.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(C,y){const x=C instanceof Jw;if(!this._injector.get(xi).done)throw!x&&xs(C),new ae(405,false);let S;S=x?C:this._injector.get(ao).resolveComponentFactory(C),this.componentTypes.push(S.componentType);const D=function h0(_){return _.isBoundToModule}(S)?void 0:this._injector.get(ur),k=S.create(rr.NULL,[],y||S.selector,D),V=k.location.nativeElement,U=k.injector.get(l0,null);return U?.registerApplication(V),k.onDestroy(()=>{this.detachView(k.hostView),Va(this.components,k),U?.unregisterApplication(V)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ae(101,!1);try{this._runningTick=!0;for(let C of this._views)C.detectChanges()}catch(C){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(C))}finally{this._runningTick=!1}}attachView(C){const y=C;this._views.push(y),y.attachToAppRef(this)}detachView(C){const y=C;Va(this._views,y),y.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C),this._injector.get(ou,[]).concat(this._bootstrapListeners).forEach(x=>x(C))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(C=>C()),this._views.slice().forEach(C=>C.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(C){return this._destroyListeners.push(C),()=>Va(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new ae(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return _.\u0275fac=function(C){return new(C||_)(li($i),li(Vr),li(Jc))},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function Va(_,b){const C=_.indexOf(b);C>-1&&_.splice(C,1)}let Qr=!0;function Bb(){Qr=!1}let yE=(()=>{class _{}return _.__NG_ELEMENT_ID__=b0,_})();function b0(_){return function Ob(_,b,C){if(Wa(_)&&!C){const y=Vt(_.index,b);return new ls(y,y)}return 47&_.type?new ls(b[16],b):null}($t(),we(),16==(16&_))}class df{constructor(){}supports(b){return Dd(b)}create(b){return new uf(b)}}const y0=(_,b)=>b;class uf{constructor(b){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=b||y0}forEachItem(b){let C;for(C=this._itHead;null!==C;C=C._next)b(C)}forEachOperation(b){let C=this._itHead,y=this._removalsHead,x=0,T=null;for(;C||y;){const S=!y||C&&C.currentIndex{S=this._trackByFn(x,D),null!==C&&Object.is(C.trackById,S)?(y&&(C=this._verifyReinsertion(C,D,S,x)),Object.is(C.item,D)||this._addIdentityChange(C,D)):(C=this._mismatch(C,D,S,x),y=!0),C=C._next,x++}),this.length=x;return this._truncate(C),this.collection=b,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let b;for(b=this._previousItHead=this._itHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._additionsHead;null!==b;b=b._nextAdded)b.previousIndex=b.currentIndex;for(this._additionsHead=this._additionsTail=null,b=this._movesHead;null!==b;b=b._nextMoved)b.previousIndex=b.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(b,C,y,x){let T;return null===b?T=this._itTail:(T=b._prev,this._remove(b)),null!==(b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._reinsertAfter(b,T,x)):null!==(b=null===this._linkedRecords?null:this._linkedRecords.get(y,x))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._moveAfter(b,T,x)):b=this._addAfter(new v0(C,y),T,x),b}_verifyReinsertion(b,C,y,x){let T=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==T?b=this._reinsertAfter(T,b._prev,x):b.currentIndex!=x&&(b.currentIndex=x,this._addToMoves(b,x)),b}_truncate(b){for(;null!==b;){const C=b._next;this._addToRemovals(this._unlink(b)),b=C}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(b,C,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(b);const x=b._prevRemoved,T=b._nextRemoved;return null===x?this._removalsHead=T:x._nextRemoved=T,null===T?this._removalsTail=x:T._prevRemoved=x,this._insertAfter(b,C,y),this._addToMoves(b,y),b}_moveAfter(b,C,y){return this._unlink(b),this._insertAfter(b,C,y),this._addToMoves(b,y),b}_addAfter(b,C,y){return this._insertAfter(b,C,y),this._additionsTail=null===this._additionsTail?this._additionsHead=b:this._additionsTail._nextAdded=b,b}_insertAfter(b,C,y){const x=null===C?this._itHead:C._next;return b._next=x,b._prev=C,null===x?this._itTail=b:x._prev=b,null===C?this._itHead=b:C._next=b,null===this._linkedRecords&&(this._linkedRecords=new Gb),this._linkedRecords.put(b),b.currentIndex=y,b}_remove(b){return this._addToRemovals(this._unlink(b))}_unlink(b){null!==this._linkedRecords&&this._linkedRecords.remove(b);const C=b._prev,y=b._next;return null===C?this._itHead=y:C._next=y,null===y?this._itTail=C:y._prev=C,b}_addToMoves(b,C){return b.previousIndex===C||(this._movesTail=null===this._movesTail?this._movesHead=b:this._movesTail._nextMoved=b),b}_addToRemovals(b){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Gb),this._unlinkedRecords.put(b),b.currentIndex=null,b._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=b,b._prevRemoved=null):(b._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=b),b}_addIdentityChange(b,C){return b.item=C,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=b:this._identityChangesTail._nextIdentityChange=b,b}}class v0{constructor(b,C){this.item=b,this.trackById=C,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class zb{constructor(){this._head=null,this._tail=null}add(b){null===this._head?(this._head=this._tail=b,b._nextDup=null,b._prevDup=null):(this._tail._nextDup=b,b._prevDup=this._tail,b._nextDup=null,this._tail=b)}get(b,C){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===C||C<=y.currentIndex)&&Object.is(y.trackById,b))return y;return null}remove(b){const C=b._prevDup,y=b._nextDup;return null===C?this._head=y:C._nextDup=y,null===y?this._tail=C:y._prevDup=C,null===this._head}}class Gb{constructor(){this.map=new Map}put(b){const C=b.trackById;let y=this.map.get(C);y||(y=new zb,this.map.set(C,y)),y.add(b)}get(b,C){const x=this.map.get(b);return x?x.get(b,C):null}remove(b){const C=b.trackById;return this.map.get(C).remove(b)&&this.map.delete(C),b}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function gu(_,b,C){const y=_.previousIndex;if(null===y)return y;let x=0;return C&&y{if(C&&C.key===x)this._maybeAddToChanges(C,y),this._appendAfter=C,C=C._next;else{const T=this._getOrCreateRecordForKey(x,y);C=this._insertBeforeOrAppend(C,T)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(let y=C;null!==y;y=y._nextRemoved)y===this._mapHead&&(this._mapHead=null),this._records.delete(y.key),y._nextRemoved=y._next,y.previousValue=y.currentValue,y.currentValue=null,y._prev=null,y._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(b,C){if(b){const y=b._prev;return C._next=b,C._prev=y,b._prev=C,y&&(y._next=C),b===this._mapHead&&(this._mapHead=C),this._appendAfter=b,b}return this._appendAfter?(this._appendAfter._next=C,C._prev=this._appendAfter):this._mapHead=C,this._appendAfter=C,null}_getOrCreateRecordForKey(b,C){if(this._records.has(b)){const x=this._records.get(b);this._maybeAddToChanges(x,C);const T=x._prev,S=x._next;return T&&(T._next=S),S&&(S._prev=T),x._next=null,x._prev=null,x}const y=new $b(b);return this._records.set(b,y),y.currentValue=C,this._addToAdditions(y),y}_reset(){if(this.isDirty){let b;for(this._previousMapHead=this._mapHead,b=this._previousMapHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._changesHead;null!==b;b=b._nextChanged)b.previousValue=b.currentValue;for(b=this._additionsHead;null!=b;b=b._nextAdded)b.previousValue=b.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(b,C){Object.is(C,b.currentValue)||(b.previousValue=b.currentValue,b.currentValue=C,this._addToChanges(b))}_addToAdditions(b){null===this._additionsHead?this._additionsHead=this._additionsTail=b:(this._additionsTail._nextAdded=b,this._additionsTail=b)}_addToChanges(b){null===this._changesHead?this._changesHead=this._changesTail=b:(this._changesTail._nextChanged=b,this._changesTail=b)}_forEach(b,C){b instanceof Map?b.forEach(C):Object.keys(b).forEach(y=>C(b[y],y))}}class $b{constructor(b){this.key=b,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Qb(){return new Yb([new df])}let Yb=(()=>{class _{constructor(C){this.factories=C}static create(C,y){if(null!=y){const x=y.factories.slice();C=C.concat(x)}return new _(C)}static extend(C){return{provide:_,useFactory:y=>_.create(C,y||Qb()),deps:[[_,new Qo,new el]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(null!=y)return y;throw new ae(901,!1)}}return _.\u0275prov=Dt({token:_,providedIn:"root",factory:Qb}),_})();function Kb(){return new _u([new Wb])}let _u=(()=>{class _{constructor(C){this.factories=C}static create(C,y){if(y){const x=y.factories.slice();C=C.concat(x)}return new _(C)}static extend(C){return{provide:_,useFactory:y=>_.create(C,y||Kb()),deps:[[_,new Qo,new el]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(y)return y;throw new ae(901,!1)}}return _.\u0275prov=Dt({token:_,providedIn:"root",factory:Kb}),_})();const T0=Hb(null,"core",[]);let Xb=(()=>{class _{constructor(C){}}return _.\u0275fac=function(C){return new(C||_)(li(ka))},_.\u0275mod=Zr({type:_}),_.\u0275inj=oi({}),_})();function S0(_){return"boolean"==typeof _?_:null!=_&&"false"!==_}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class N extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return N.\u0275fac=function(){let z;return function(M){return(z||(z=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(N)))(M||N)}}(),N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class N{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,M){this.data.set(E,M)}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class ReceivedTokens{}class OAuthEvent{constructor(z){this.type=z}}class OAuthSuccessEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(z,E,M=null){super(z),this.reason=E,this.params=M}}function b64DecodeUnicode(N){const z=N.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(z).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(N){return btoa(N).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(z){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},z&&Object.assign(this,z)}}class WebHttpUrlEncodingCodec{encodeKey(z){return encodeURIComponent(z)}encodeValue(z){return encodeURIComponent(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(z){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let M=E.inferHashAlgorithm(z.idTokenHeader),f=yield E.calcHash(z.accessToken,M),F=base64UrlEncode(f.substr(0,f.length/2)),B=z.idTokenClaims.at_hash.replace(/=/g,"");return F!==B&&(console.error("exptected at_hash: "+F),console.error("actual at_hash: "+B)),F===B})()}inferHashAlgorithm(z){let E=z.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class N{getHashFragmentParams(E){let M=E||window.location.hash;if(M=decodeURIComponent(M),0!==M.indexOf("#"))return{};const f=M.indexOf("?");return M=M.substr(f>-1?f+1:1),this.parseQueryString(M)}parseQueryString(E){const M={};let f,L,F,B,q,Q,ee;if(null===E)return M;f=E.split("&");for(let W=0;W>6,L[B++]=128|63&q):q<55296||q>=57344?(L[B++]=224|q>>12,L[B++]=128|q>>6&63,L[B++]=128|63&q):(q=65536+((1023&q)<<10|1023&N.charCodeAt(++M)),L[B++]=240|q>>18,L[B++]=128|q>>12&63,L[B++]=128|q>>6&63,L[B++]=128|63&q);N=L}else{if("object"!==f)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR)}N.length>64&&(N=new Sha256(z,!0).update(N).array());var Q=[],ee=[];for(M=0;M<64;++M){var W=N[M]||0;Q[M]=92^W,ee[M]=54^W}Sha256.call(this,z,E),this.update(ee),this.oKeyPad=Q,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(N){if(!this.finalized){var z,E=typeof N;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR);z=!0}for(var M,L,f=0,F=N.length,B=this.blocks;f>2]|=N[f]<>2]|=M<>2]|=(192|M>>6)<>2]|=(128|63&M)<=57344?(B[L>>2]|=(224|M>>12)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<>2]|=(240|M>>18)<>2]|=(128|M>>12&63)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<=64?(this.block=B[16],this.start=L-64,this.hash(),this.hashed=!0):this.start=L}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var N=this.blocks,z=this.lastByteIndex;N[16]=this.block,N[z>>2]|=EXTRA[3&z],this.block=N[16],z>=56&&(this.hashed||this.hash(),N[0]=this.block,N[16]=N[1]=N[2]=N[3]=N[4]=N[5]=N[6]=N[7]=N[8]=N[9]=N[10]=N[11]=N[12]=N[13]=N[14]=N[15]=0),N[14]=this.hBytes<<3|this.bytes>>>29,N[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var Q,G,te,ae,he,fe,N=this.h0,z=this.h1,E=this.h2,M=this.h3,f=this.h4,L=this.h5,F=this.h6,B=this.h7,q=this.blocks;for(Q=16;Q<64;++Q)q[Q]=q[Q-16]+(((G=q[Q-15])>>>7|G<<25)^(G>>>18|G<<14)^G>>>3)+q[Q-7]+(((G=q[Q-2])>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)<<0;for(fe=z&E,Q=0;Q<64;Q+=4)this.first?(this.is224?(te=300032,B=(G=q[0]-1413257819)-150054599<<0,M=G+24177077<<0):(te=704751109,B=(G=q[0]-210244248)-1521486534<<0,M=G+143694565<<0),this.first=!1):(B=M+(G=B+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&L^~f&F)+K[Q]+q[Q])<<0,M=G+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((te=N&z)^N&E^fe))<<0),F=E+(G=F+((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&f^~B&L)+K[Q+1]+q[Q+1])<<0,E=G+(((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+((ae=M&N)^M&z^te))<<0,L=z+(G=L+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&B^~F&f)+K[Q+2]+q[Q+2])<<0,z=G+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((he=E&M)^E&N^ae))<<0,f=N+(G=f+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&F^~L&B)+K[Q+3]+q[Q+3])<<0,N=G+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((fe=z&E)^z&M^he))<<0;this.h0=this.h0+N<<0,this.h1=this.h1+z<<0,this.h2=this.h2+E<<0,this.h3=this.h3+M<<0,this.h4=this.h4+f<<0,this.h5=this.h5+L<<0,this.h6=this.h6+F<<0,this.h7=this.h7+B<<0},Sha256.prototype.hex=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,f=this.h4,L=this.h5,F=this.h6,B=this.h7,q=HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M]+HEX_CHARS[f>>28&15]+HEX_CHARS[f>>24&15]+HEX_CHARS[f>>20&15]+HEX_CHARS[f>>16&15]+HEX_CHARS[f>>12&15]+HEX_CHARS[f>>8&15]+HEX_CHARS[f>>4&15]+HEX_CHARS[15&f]+HEX_CHARS[L>>28&15]+HEX_CHARS[L>>24&15]+HEX_CHARS[L>>20&15]+HEX_CHARS[L>>16&15]+HEX_CHARS[L>>12&15]+HEX_CHARS[L>>8&15]+HEX_CHARS[L>>4&15]+HEX_CHARS[15&L]+HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F];return this.is224||(q+=HEX_CHARS[B>>28&15]+HEX_CHARS[B>>24&15]+HEX_CHARS[B>>20&15]+HEX_CHARS[B>>16&15]+HEX_CHARS[B>>12&15]+HEX_CHARS[B>>8&15]+HEX_CHARS[B>>4&15]+HEX_CHARS[15&B]),q},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,f=this.h4,L=this.h5,F=this.h6,B=this.h7,q=[N>>24&255,N>>16&255,N>>8&255,255&N,z>>24&255,z>>16&255,z>>8&255,255&z,E>>24&255,E>>16&255,E>>8&255,255&E,M>>24&255,M>>16&255,M>>8&255,255&M,f>>24&255,f>>16&255,f>>8&255,255&f,L>>24&255,L>>16&255,L>>8&255,255&L,F>>24&255,F>>16&255,F>>8&255,255&F];return this.is224||q.push(B>>24&255,B>>16&255,B>>8&255,255&B),q},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var N=new ArrayBuffer(this.is224?28:32),z=new DataView(N);return z.setUint32(0,this.h0),z.setUint32(4,this.h1),z.setUint32(8,this.h2),z.setUint32(12,this.h3),z.setUint32(16,this.h4),z.setUint32(20,this.h5),z.setUint32(24,this.h6),this.is224||z.setUint32(28,this.h7),N},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var N=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(N),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(N){if("string"!=typeof N)throw new TypeError("expected string");var z,E=N,M=new Uint8Array(E.length);for(z=0;z{class N{calcHash(E,M){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})()}toHashString2(E){let M="";for(let f of E)M+=String.fromCharCode(f);return M}toHashString(E){const M=new Uint8Array(E);let f="";for(let L of M)f+=String.fromCharCode(L);return f}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})(),OAuthService=(()=>{class N extends AuthConfig{constructor(E,M,f,L,F,B,q,Q,ee,W){super(),this.ngZone=E,this.http=M,this.config=F,this.urlHelper=B,this.logger=q,this.crypto=Q,this.dateTimeService=W,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=ee,F||(F={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),L&&(this.tokenValidationHandler=L),F&&this.configure(F);try{f?this.setStorage(f):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(Y){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",Y)}if(this.checkLocalStorageAccessable()){const Y=window?.navigator?.userAgent;(Y?.includes("MSIE ")||Y?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const E="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(E,E),localStorage.removeItem(E),0))}catch{return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},M,f=!0){let L=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(F=>{"token_received"===F.type?L=!0:"logout"===F.type&&(L=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_expires"===F.type&&(null==M||"any"===M||F.info===M)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(F=>{L&&this.refreshInternal(E,f).catch(B=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,M){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,M):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(M=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(M=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const M=[],f=this.validateUrlForHttps(E),L=this.validateUrlAgainstIssuer(E);return f||M.push("https for all urls required. Also for urls received by discovery."),L||M.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),M}validateUrlForHttps(E){if(!E)return!0;const M=E.toLowerCase();return!(!1!==this.requireHttps&&(!M.match(/^http:\/\/localhost($|[:\/])/)&&!M.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||M.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,M){if(!E)throw new Error(`'${M}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${M}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),M=this.getAccessTokenStoredAt(),f=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(f)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),M=this.getIdTokenStoredAt(),f=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(f)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,M){const f=this.dateTimeService.now();return Math.max(0,(M-E)*this.timeoutFactor-(f-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((M,f)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(L=>{if(!this.validateDiscoveryDocument(L))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void f("discovery_document_validation_error");this.loginUrl=L.authorization_endpoint,this.logoutUrl=L.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=L.grant_types_supported,this.issuer=L.issuer,this.tokenEndpoint=L.token_endpoint,this.userinfoEndpoint=L.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=L.jwks_uri,this.sessionCheckIFrameUrl=L.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(L),this.revocationEndpoint=L.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(F=>{const q=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:L,jwks:F});this.eventsSubject.next(q),M(q)}).catch(F=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",F)),f(F)})},L=>{this.logger.error("error loading discovery document",L),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",L)),f(L)}):f("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,M)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(f=>{this.jwks=f,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(f)},f=>{this.logger.error("error loading jwks",f),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",f)),M(f)}):E(null)})}validateDiscoveryDocument(E){let M;return this.skipIssuerCheck||E.issuer===this.issuer?(M=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),M.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),M.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.token_endpoint),M.length>0&&this.logger.error("error validating token_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),M.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),M.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.jwks_uri),M.length>0?(this.logger.error("error validating jwks_uri in discovery document",M),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,M,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,M,f).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,M)=>{const f=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:f,observe:"response",responseType:"text"}).subscribe(L=>{if(this.debug("userinfo received",JSON.stringify(L)),L.headers.get("content-type").startsWith("application/json")){let F=JSON.parse(L.body);const B=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!B.sub||F.sub!==B.sub))return void M("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");F=Object.assign({},B,F),this._storage.setItem("id_token_claims_obj",JSON.stringify(F)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:F})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(L.body))},L=>{this.logger.error("error loading user info",L),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",L)),M(L)})})}fetchTokenUsingPasswordFlow(E,M,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:M},f)}fetchTokenUsingGrant(E,M,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let L=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);f=f.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(L=L.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(L=L.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))L=L.set(F,this.customQueryParams[F]);for(const F of Object.keys(M))L=L.set(F,M[F]);return f=f.set("Content-Type","application/x-www-form-urlencoded"),new Promise((F,B)=>{this.http.post(this.tokenEndpoint,L,{headers:f}).subscribe(q=>{this.debug("tokenResponse",q),this.storeAccessTokenResponse(q.access_token,q.refresh_token,q.expires_in||this.fallbackAccessTokenExpirationTimeInSec,q.scope,this.extractRecognizedCustomParameters(q)),this.oidc&&q.id_token&&this.processIdToken(q.id_token,q.access_token).then(Q=>{this.storeIdToken(Q),F(q)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),F(q)},q=>{this.logger.error("Error performing ${grantType} flow",q),this.eventsSubject.next(new OAuthErrorEvent("token_error",q)),B(q)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,M)=>{let f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),L=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);L=L.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(f=f.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(f=f.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))f=f.set(F,this.customQueryParams[F]);this.http.post(this.tokenEndpoint,f,{headers:L}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(F=>F.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(F.id_token,F.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(B=>this.storeIdToken(B)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(B=>F)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(F))).subscribe(F=>{this.debug("refresh tokenResponse",F),this.storeAccessTokenResponse(F.access_token,F.refresh_token,F.expires_in||this.fallbackAccessTokenExpirationTimeInSec,F.scope,this.extractRecognizedCustomParameters(F)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(F)},F=>{this.logger.error("Error refreshing token",F),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",F)),M(F)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const M=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:M,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(f=>this.debug("tryLogin during silent refresh failed",f))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},M=!0){const f=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const L=this.document.getElementById(this.silentRefreshIFrameName);L&&this.document.body.removeChild(L),this.silentRefreshSubject=f.sub;const F=this.document.createElement("iframe");F.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,M,E).then(W=>{F.setAttribute("src",W),this.silentRefreshShowIFrame||(F.style.display="none"),this.document.body.appendChild(F)});const q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>W instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>"token_received"===W.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),ee=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([q,Q,ee]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(W=>{if(W instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===W.type||(W=new OAuthErrorEvent("silent_refresh_error",W)),this.eventsSubject.next(W),W;return"token_received"===W.type&&(W=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(W)),W})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(M=>new Promise((f,L)=>{let q,B=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(B=E.windowRef,B.location.href=M):B=window.open(M,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const Q=re=>{this.tryLogin({customHashFragment:re,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{W(),f(!0)},oe=>{W(),L(oe)})};B?q=window.setInterval(()=>{(!B||B.closed)&&(W(),L(new OAuthErrorEvent("popup_closed",{})))},500):L(new OAuthErrorEvent("popup_blocked",{}));const W=()=>{window.clearInterval(q),window.removeEventListener("storage",G),window.removeEventListener("message",Y),null!==B&&B.close(),B=null},Y=re=>{const oe=this.processMessageEventMessage(re);oe&&null!==oe?(window.removeEventListener("storage",G),Q(oe)):console.log("false event firing")},G=re=>{"auth_hash"===re.key&&(window.removeEventListener("message",Y),Q(re.newValue))};window.addEventListener("message",Y),window.addEventListener("storage",G)}))}calculatePopupFeatures(E){const M=E.height||470,f=E.width||500,L=window.screenLeft+(window.outerWidth-f)/2;return`location=no,toolbar=no,width=${f},height=${M},top=${window.screenTop+(window.outerHeight-M)/2},left=${L}`}processMessageEventMessage(E){let M="#";if(this.silentRefreshMessagePrefix&&(M+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const f=E.data;return f.startsWith(M)?"#"+f.substr(M.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const M=E.origin.toLowerCase(),f=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),f.startsWith(M)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",M,"expected",f,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const M=this.document.createElement("iframe");M.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),M.setAttribute("src",this.sessionCheckIFrameUrl),M.style.display="none",this.document.body.appendChild(M),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const M=this.getSessionState();M||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+M,this.issuer)}createLoginUrl(E="",M="",f="",L=!1,F={}){var B=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const q=B;let Q;Q=f||B.redirectUri;const ee=yield B.createAndSaveNonce();if(E=E?ee+B.config.nonceStateSeparator+encodeURIComponent(E):ee,!B.requestAccessToken&&!B.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");B.responseType=B.config.responseType?B.config.responseType:B.oidc&&B.requestAccessToken?"id_token token":B.oidc&&!B.requestAccessToken?"id_token":"token";const W=q.loginUrl.indexOf("?")>-1?"&":"?";let Y=q.scope;B.oidc&&!Y.match(/(^|\s)openid($|\s)/)&&(Y="openid "+Y);let G=q.loginUrl+W+"response_type="+encodeURIComponent(q.responseType)+"&client_id="+encodeURIComponent(q.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(Q)+"&scope="+encodeURIComponent(Y);if(B.responseType.includes("code")&&!B.disablePKCE){const[re,oe]=yield B.createChallangeVerifierPairForPKCE();B.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",oe):B._storage.setItem("PKCE_verifier",oe),G+="&code_challenge="+re,G+="&code_challenge_method=S256"}M&&(G+="&login_hint="+encodeURIComponent(M)),q.resource&&(G+="&resource="+encodeURIComponent(q.resource)),q.oidc&&(G+="&nonce="+encodeURIComponent(ee)),L&&(G+="&prompt=none");for(const re of Object.keys(F))G+="&"+encodeURIComponent(re)+"="+encodeURIComponent(F[re]);if(B.customQueryParams)for(const re of Object.getOwnPropertyNames(B.customQueryParams))G+="&"+re+"="+encodeURIComponent(B.customQueryParams[re]);return G})()}initImplicitFlowInternal(E="",M=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let f={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(f=M),this.createLoginUrl(E,L,null,!1,f).then(this.config.openUri).catch(F=>{console.error("Error in initImplicitFlow",F),this.inImplicitFlow=!1})}initImplicitFlow(E="",M=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,M):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(f=>"discovery_document_loaded"===f.type)).subscribe(f=>this.initImplicitFlowInternal(E,M))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const M=this;if(E.onTokenReceived){const f={idClaims:M.getIdentityClaims(),idToken:M.getIdToken(),accessToken:M.getAccessToken(),state:M.state};E.onTokenReceived(f)}}storeAccessTokenResponse(E,M,f,L,F){if(this._storage.setItem("access_token",E),L&&!Array.isArray(L)?this._storage.setItem("granted_scopes",JSON.stringify(L.split(" "))):L&&Array.isArray(L)&&this._storage.setItem("granted_scopes",JSON.stringify(L)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),f){const B=1e3*f,Q=this.dateTimeService.new().getTime()+B;this._storage.setItem("expires_at",""+Q)}M&&this._storage.setItem("refresh_token",M),F&&F.forEach((B,q)=>{this._storage.setItem(q,B)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(M=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){var M=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const f=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,L=M.getCodePartsFromUrl(f),F=L.code,B=L.state,q=L.session_state;if(!E.preventClearHashAfterLogin){const W=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,W)}let[Q,ee]=M.parseState(B);if(M.state=ee,L.error){M.debug("error trying to login"),M.handleLoginError(E,L);const W=new OAuthErrorEvent("code_error",{},L);return M.eventsSubject.next(W),Promise.reject(W)}if(!E.disableNonceCheck){if(!Q)return M.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!M.validateNonce(Q)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return M.eventsSubject.next(Y),Promise.reject(Y)}return M.storeSessionState(q),F&&(yield M.getTokenFromCode(F,E),M.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,M){let f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",M.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let L;L=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),L?f=f.set("code_verifier",L):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(f,M)}fetchAndProcessToken(E,M){M=M||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let f=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const L=btoa(`${this.clientId}:${this.dummyClientSecret}`);f=f.set("Authorization","Basic "+L)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((L,F)=>{if(this.customQueryParams)for(let B of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(B,this.customQueryParams[B]);this.http.post(this.tokenEndpoint,E,{headers:f}).subscribe(B=>{this.debug("refresh tokenResponse",B),this.storeAccessTokenResponse(B.access_token,B.refresh_token,B.expires_in||this.fallbackAccessTokenExpirationTimeInSec,B.scope,this.extractRecognizedCustomParameters(B)),this.oidc&&B.id_token?this.processIdToken(B.id_token,B.access_token,M.disableNonceCheck).then(q=>{this.storeIdToken(q),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(B)}).catch(q=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",q)),console.error("Error validating tokens"),console.error(q),F(q)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(B))},B=>{console.error("Error getting token",B),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",B)),F(B)})})}tryLoginImplicitFlow(E=null){let M;M=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",M);const f=M.state;let[L,F]=this.parseState(f);if(this.state=F,M.error){this.debug("error trying to login"),this.handleLoginError(E,M);const W=new OAuthErrorEvent("token_error",{},M);return this.eventsSubject.next(W),Promise.reject(W)}const B=M.access_token,q=M.id_token,Q=M.session_state,ee=M.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!B||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!f||this.oidc&&!q)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!Q&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(L)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(Y),Promise.reject(Y)}return this.requestAccessToken&&this.storeAccessTokenResponse(B,null,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,ee),this.oidc?this.processIdToken(q,B,E.disableNonceCheck).then(W=>E.validationHandler?E.validationHandler({accessToken:B,idClaims:W.idTokenClaims,idToken:W.idToken,state:f}).then(Y=>W):W).then(W=>(this.storeIdToken(W),this.storeSessionState(Q),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(W=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",W)),this.logger.error("Error validating tokens"),this.logger.error(W),Promise.reject(W))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let M=E,f="";if(E){const L=E.indexOf(this.config.nonceStateSeparator);L>-1&&(M=E.substr(0,L),f=E.substr(L+this.config.nonceStateSeparator.length))}return[M,f]}validateNonce(E){let M;return M=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),M===E||(console.error("Validating access_token failed, wrong state/nonce.",M,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,M){E.onLoginError&&E.onLoginError(M),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,M,f=!1){const L=E.split("."),B=b64DecodeUnicode(this.padBase64(L[0])),q=JSON.parse(B),ee=b64DecodeUnicode(this.padBase64(L[1])),W=JSON.parse(ee);let Y;if(Y=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(W.aud)){if(W.aud.every(he=>he!==this.clientId)){const he="Wrong audience: "+W.aud.join(",");return this.logger.warn(he),Promise.reject(he)}}else if(W.aud!==this.clientId){const he="Wrong audience: "+W.aud;return this.logger.warn(he),Promise.reject(he)}if(!W.sub){const he="No sub claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==W.sub){const he=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${W.sub}`;return this.logger.warn(he),Promise.reject(he)}if(!W.iat){const he="No iat claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(!this.skipIssuerCheck&&W.iss!==this.issuer){const he="Wrong issuer: "+W.iss;return this.logger.warn(he),Promise.reject(he)}if(!f&&W.nonce!==Y){const he="Wrong nonce: "+W.nonce;return this.logger.warn(he),Promise.reject(he)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!W.at_hash){const he="An at_hash is needed!";return this.logger.warn(he),Promise.reject(he)}const G=this.dateTimeService.now(),re=1e3*W.iat,oe=1e3*W.exp,te=this.getClockSkewInMsec();if(re-te>=G||oe+te<=G){const he="Token has expired";return console.error(he),console.error({now:G,issuedAtMSec:re,expiresAtMSec:oe}),Promise.reject(he)}const ae={accessToken:M,idToken:E,jwks:this.jwks,idTokenClaims:W,idTokenHeader:q,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ae).then(he=>({idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:B,idTokenExpiresAt:oe})):this.checkAtHash(ae).then(he=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!he){const fe="Wrong at_hash";return this.logger.warn(fe),Promise.reject(fe)}return this.checkSignature(ae).then(fe=>{const Oe={idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:B,idTokenExpiresAt:oe};return this.disableAtHashCheck?Oe:this.checkAtHash(ae).then(je=>{if(this.requestAccessToken&&!je){const Ae="Wrong at_hash";return this.logger.warn(Ae),Promise.reject(Ae)}return Oe})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),M=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},M=""){let f=!1;"boolean"==typeof E&&(f=E,E={});const L=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(B=>this._storage.removeItem(B)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||f||!L&&!this.postLogoutRedirectUri)return;let F;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)F=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(L)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});L&&(B=B.set("id_token_hint",L));const q=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";q&&(B=B.set("post_logout_redirect_uri",q),M&&(B=B.set("state",M)));for(let Q in E)B=B.set(Q,E[Q]);F=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+B.toString()}this.config.openUri(F)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(M){return E.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",M):E._storage.setItem("nonce",M),M})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const M=this.document.getElementById(this.sessionCheckIFrameName);M&&M.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let f=45,L="";const F=typeof self>"u"?null:self.crypto||self.msCrypto;if(F){let B=new Uint8Array(f);F.getRandomValues(B),B.map||(B.map=Array.prototype.map),B=B.map(q=>M.charCodeAt(q%M.length)),L=String.fromCharCode.apply(null,B)}else for(;0"discovery_document_loaded"===f.type)).subscribe(f=>this.initCodeFlowInternal(E,M))}initCodeFlowInternal(E="",M={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let f={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(f=M),this.createLoginUrl(E,L,null,!1,f).then(this.config.openUri).catch(F=>{console.error("Error in initAuthorizationCodeFlow"),console.error(F)})}createChallangeVerifierPairForPKCE(){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!E.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const M=yield E.createNonce();return[base64UrlEncode(yield E.crypto.calcHash(M,"sha-256")),M]})()}extractRecognizedCustomParameters(E){let M=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(f=>{E[f]&&M.set(f,JSON.stringify(E[f]))}),M}revokeTokenAndLogout(E={},M=!1){let f=this.revocationEndpoint,L=this.getAccessToken(),F=this.getRefreshToken();if(!L)return;let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),q=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const Q=btoa(`${this.clientId}:${this.dummyClientSecret}`);q=q.set("Authorization","Basic "+Q)}if(this.useHttpBasicAuth||(B=B.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(B=B.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const Q of Object.getOwnPropertyNames(this.customQueryParams))B=B.set(Q,this.customQueryParams[Q]);return new Promise((Q,ee)=>{let W,Y;if(L){let G=B.set("token",L).set("token_type_hint","access_token");W=this.http.post(f,G,{headers:q})}else W=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(F){let G=B.set("token",F).set("token_type_hint","refresh_token");Y=this.http.post(f,G,{headers:q})}else Y=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);M&&(W=W.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G))),Y=Y.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([W,Y]).subscribe(G=>{this.logOut(E),Q(G),this.logger.info("Token successfully revoked")},G=>{this.logger.error("Error revoking token",G),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",G)),ee(G)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(z){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(z)}}let DefaultOAuthInterceptor=(()=>{class N{constructor(E,M,f){this.oAuthService=E,this.errorHandler=M,this.moduleConfig=f}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(M=>E.toLowerCase().startsWith(M.toLowerCase()))}intercept(E,M){const f=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(f)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>!!F)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_received"===F.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(F=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(F=>{if(F){const q=E.headers.set("Authorization","Bearer "+F);E=E.clone({headers:q})}return M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(B=>this.errorHandler.handleError(B)))})):M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>this.errorHandler.handleError(F))):M.handle(E)}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class NullValidationHandler{validateSignature(z){return Promise.resolve(null)}validateAtHash(z){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class N{static forRoot(E=null,M=NullValidationHandler){return{ngModule:N,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:M},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:N}),N.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),N})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(N,z,E)=>{"use strict";function M(L,F,B,q,Q,ee,W){try{var Y=L[ee](W),G=Y.value}catch(re){return void B(re)}Y.done?F(G):Promise.resolve(G).then(q,Q)}function f(L){return function(){var F=this,B=arguments;return new Promise(function(q,Q){var ee=L.apply(F,B);function W(G){M(ee,q,Q,W,Y,"next",G)}function Y(G){M(ee,q,Q,W,Y,"throw",G)}W(void 0)})}}E.d(z,{Z:()=>f})},4147:N=>{"use strict";N.exports={i8:"10.5.0"}}},N=>{N(N.s=728)}]); \ No newline at end of file diff --git a/dist/apps/password-reset/main.aa61a0d1e3098c62.js b/dist/apps/password-reset/main.aa61a0d1e3098c62.js deleted file mode 100644 index 5165ee2b0..000000000 --- a/dist/apps/password-reset/main.aa61a0d1e3098c62.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkpassword_reset=self.webpackChunkpassword_reset||[]).push([[179],{2540:(N,z,E)=>{"use strict";var M=E(6895),f=E(4650);class L extends M.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class F extends L{static makeCurrent(){(0,M.HT)(new F)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function q(){return B=B||document.querySelector("base"),B?B.getAttribute("href"):null}();return null==e?null:function ee(r){Q=Q||document.createElement("a"),Q.setAttribute("href",r);const a=Q.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){B=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,M.Mx)(document.cookie,a)}}let Q,B=null;const W=new f.OlP("TRANSITION_ID"),G=[{provide:f.ip1,useFactory:function Y(r,a,e){return()=>{e.get(f.CZH).donePromise.then(()=>{const t=(0,M.q)(),s=a.querySelectorAll(`style[ng-transition="${r}"]`);for(let u=0;u{class r{build(){return new XMLHttpRequest}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const ie=new f.OlP("EventManagerPlugins");let ae=(()=>{class r{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,s){return this._findPluginFor(t).addEventListener(e,t,s)}addGlobalEventListener(e,t,s){return this._findPluginFor(t).addGlobalEventListener(e,t,s)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const s=this._plugins;for(let u=0;u{class r{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),t.add(s))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),_e=(()=>{class r extends fe{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,s){e.forEach(u=>{const d=this._doc.createElement("style");d.textContent=u,s.push(t.appendChild(d))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Oe),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,s)=>{this._addStylesToHost(e,s,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Oe))}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();function Oe(r){(0,M.q)().remove(r)}const je={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ae=/%COMP%/g;function le(r,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return r;!1===r(a)&&(a.preventDefault(),a.returnValue=!1)}}let pe=(()=>{class r{constructor(e,t,s){this.eventManager=e,this.sharedStylesHost=t,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new Ve(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case f.ifc.Emulated:{let s=this.rendererByCompId.get(t.id);return s||(s=new Ot(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,s)),s.applyToHost(e),s}case 1:case f.ifc.ShadowDom:return new Fe(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const s=le(t.id,t.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(ae),f.LFG(_e),f.LFG(f.AFp))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class Ve{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(je[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){(Tt(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(Tt(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,s){if(s){e=s+":"+e;const u=je[s];u?a.setAttributeNS(u,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const s=je[t];s?a.removeAttributeNS(s,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,s){s&(f.JOm.DashCase|f.JOm.Important)?a.style.setProperty(e,t,s&f.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&f.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,ce(t)):this.eventManager.addEventListener(a,e,ce(t))}}function Tt(r){return"TEMPLATE"===r.tagName&&void 0!==r.content}class Ot extends Ve{constructor(a,e,t,s){super(a),this.component=t;const u=le(s+"-"+t.id,t.styles,[]);e.addStyles(u),this.contentAttr=function De(r){return"_ngcontent-%COMP%".replace(Ae,r)}(s+"-"+t.id),this.hostAttr=function Me(r){return"_nghost-%COMP%".replace(Ae,r)}(s+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class Fe extends Ve{constructor(a,e,t,s){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=le(s.id,s.styles,[]);for(let d=0;d{class r extends he{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,s){return e.addEventListener(t,s,!1),()=>this.removeEventListener(e,t,s)}removeEventListener(e,t,s){return e.removeEventListener(t,s)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const $n=["alt","control","meta","shift"],Dt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},vn={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},oi={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey};let Jr=(()=>{class r extends he{constructor(e){super(e)}supports(e){return null!=r.parseEventName(e)}addEventListener(e,t,s){const u=r.parseEventName(t),d=r.eventCallback(u.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,M.q)().onAndCancel(e,u.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),s=t.shift();if(0===t.length||"keydown"!==s&&"keyup"!==s)return null;const u=r._normalizeKey(t.pop());let d="";if($n.forEach(n=>{const i=t.indexOf(n);i>-1&&(t.splice(i,1),d+=n+".")}),d+=u,0!=t.length||0===u.length)return null;const l={};return l.domEventName=s,l.fullKey=d,l}static getEventFullKey(e){let t="",s=function hc(r){let a=r.key;if(null==a){if(a=r.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===r.location&&vn.hasOwnProperty(a)&&(a=vn[a]))}return Dt[a]||a}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),$n.forEach(u=>{u!=s&&(0,oi[u])(e)&&(t+=u+".")}),t+=s,t}static eventCallback(e,t,s){return u=>{r.getEventFullKey(u)===e&&s.runGuarded(()=>t(u))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const Ke=(0,f.eFA)(f._c5,"browser",[{provide:f.Lbi,useValue:M.bD},{provide:f.g9A,useValue:function Qn(){F.makeCurrent()},multi:!0},{provide:M.K0,useFactory:function ja(){return(0,f.RDi)(document),document},deps:[]}]),di=new f.OlP(""),Fa=[{provide:f.rWj,useClass:class re{addToWindow(a){f.dqk.getAngularTestability=(t,s=!0)=>{const u=a.findTestabilityInTree(t,s);if(null==u)throw new Error("Could not find testability for element.");return u},f.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),f.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),f.dqk.frameworkStabilizers||(f.dqk.frameworkStabilizers=[]),f.dqk.frameworkStabilizers.push(t=>{const s=f.dqk.getAllAngularTestabilities();let u=s.length,d=!1;const l=function(n){d=d||n,u--,0==u&&t(d)};s.forEach(function(n){n.whenStable(l)})})}findTestabilityInTree(a,e,t){return null==e?null:a.getTestability(e)??(t?(0,M.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null)}},deps:[]},{provide:f.lri,useClass:f.dDg,deps:[f.R0b,f.eoX,f.rWj]},{provide:f.dDg,useClass:f.dDg,deps:[f.R0b,f.eoX,f.rWj]}],Hi=[{provide:f.zSh,useValue:"root"},{provide:f.qLn,useFactory:function Yn(){return new f.qLn},deps:[]},{provide:ie,useClass:Di,multi:!0,deps:[M.K0,f.R0b,f.Lbi]},{provide:ie,useClass:Jr,multi:!0,deps:[M.K0]},{provide:pe,useClass:pe,deps:[ae,_e,f.AFp]},{provide:f.FYo,useExisting:pe},{provide:fe,useExisting:_e},{provide:_e,useClass:_e,deps:[M.K0]},{provide:ae,useClass:ae,deps:[ie,f.R0b]},{provide:M.JF,useClass:oe,deps:[]},[]];let Ua=(()=>{class r{constructor(e){}static withServerTransition(e){return{ngModule:r,providers:[{provide:f.AFp,useValue:e.appId},{provide:W,useExisting:f.AFp},G]}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(di,12))},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[...Hi,...Fa],imports:[M.ez,f.hGG]}),r})(),X=(()=>{class r{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:function(e){let t=null;return t=e?new e:function ye(){return new X((0,f.LFG)(M.K0))}(),t},providedIn:"root"}),r})();typeof window<"u"&&window;let ti=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:function(e){let t=null;return t=e?new(e||r):f.LFG(st),t},providedIn:"root"}),r})(),st=(()=>{class r extends ti{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case f.q3G.NONE:return t;case f.q3G.HTML:return(0,f.qzn)(t,"HTML")?(0,f.z3N)(t):(0,f.EiD)(this._doc,String(t)).toString();case f.q3G.STYLE:return(0,f.qzn)(t,"Style")?(0,f.z3N)(t):t;case f.q3G.SCRIPT:if((0,f.qzn)(t,"Script"))return(0,f.z3N)(t);throw new Error("unsafe value used in a script context");case f.q3G.URL:return(0,f.qzn)(t,"URL")?(0,f.z3N)(t):(0,f.mCW)(String(t));case f.q3G.RESOURCE_URL:if((0,f.qzn)(t,"ResourceURL"))return(0,f.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,f.JVY)(e)}bypassSecurityTrustStyle(e){return(0,f.L6k)(e)}bypassSecurityTrustScript(e){return(0,f.eBb)(e)}bypassSecurityTrustUrl(e){return(0,f.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,f.pB0)(e)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:function(e){let t=null;return t=e?new e:function Be(r){return new st(r.get(M.K0))}(f.LFG(f.zs3)),t},providedIn:"root"}),r})();var v=E(529);class Rt{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const mt=new f.OlP("basePath");class Ue{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let Cr=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new Ue,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Rt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}convertAttributeToNonunique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}convertAttributeToUnique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}createAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}deleteAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteAttributeDefinitions(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"attributes[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAllAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAttribute(e,t,s,u,d,l,n,i,o,c,h,m=!1,g="body",p=!1,w){let R=new v.LE({encoder:this.encoder});null!=e&&(R=this.addToHttpParams(R,e,"attributeName")),null!=t&&(R=this.addToHttpParams(R,t,"attributeId")),null!=s&&(R=this.addToHttpParams(R,s,"facility")),null!=u&&(R=this.addToHttpParams(R,u,"user")),null!=d&&(R=this.addToHttpParams(R,d,"vo")),null!=l&&(R=this.addToHttpParams(R,l,"resource")),null!=n&&(R=this.addToHttpParams(R,n,"member")),null!=i&&(R=this.addToHttpParams(R,i,"group")),null!=o&&(R=this.addToHttpParams(R,o,"host")),null!=c&&(R=this.addToHttpParams(R,c,"userExtSource")),null!=h&&(R=this.addToHttpParams(R,h,"key"));let Te,J=this.defaultHeaders;Te=this.configuration.lookupCredential("BasicAuth"),Te&&(J=J.set("Authorization","Basic "+Te)),Te=this.configuration.lookupCredential("BearerAuth"),Te&&(J=J.set("Authorization","Bearer "+Te));let at=w&&w.httpHeaderAccept;void 0===at&&(at=this.configuration.selectHeaderAccept(["application/json"])),void 0!==at&&(J=J.set("Accept",at));let xi=w&&w.context;void 0===xi&&(xi=new v.qT);let Xt="json";at&&(Xt=at.startsWith("text")?"text":this.configuration.isJsonMime(at)?"json":"blob");let ci=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(m){let sn=new URL(ci),gr=sn.pathname.split("/");gr[1]="non",sn.pathname=gr.join("/"),ci=sn.toString()}return this.httpClient.get(ci,{context:xi,params:R,responseType:Xt,withCredentials:this.configuration.withCredentials,headers:J,observe:g,reportProgress:p})}getAttributeDefinitionById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionsByNamespace(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeModulesDependenciesForAttributeGraphText(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getAttributeModulesDependenciesGraphText(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRules(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributesDefinitionWithRights(e,t,s,u,d,l,n,i,o=!1,c="body",h=!1,m){let g=new v.LE({encoder:this.encoder});null!=e&&(g=this.addToHttpParams(g,e,"member")),null!=t&&(g=this.addToHttpParams(g,t,"user")),null!=s&&(g=this.addToHttpParams(g,s,"vo")),null!=u&&(g=this.addToHttpParams(g,u,"group")),null!=d&&(g=this.addToHttpParams(g,d,"resource")),null!=l&&(g=this.addToHttpParams(g,l,"facility")),null!=n&&(g=this.addToHttpParams(g,n,"host")),null!=i&&(g=this.addToHttpParams(g,i,"userExtSource"));let w,p=this.defaultHeaders;w=this.configuration.lookupCredential("BasicAuth"),w&&(p=p.set("Authorization","Basic "+w)),w=this.configuration.lookupCredential("BearerAuth"),w&&(p=p.set("Authorization","Bearer "+w));let R=m&&m.httpHeaderAccept;void 0===R&&(R=this.configuration.selectHeaderAccept(["application/json"])),void 0!==R&&(p=p.set("Accept",R));let J=m&&m.context;void 0===J&&(J=new v.qT);let Te="json";R&&(Te=R.startsWith("text")?"text":this.configuration.isJsonMime(R)?"json":"blob");let at=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(o){let xi=new URL(at),Xt=xi.pathname.split("/");Xt[1]="non",xi.pathname=Xt.join("/"),at=xi.toString()}return this.httpClient.get(at,{context:J,params:g,responseType:Te,withCredentials:this.configuration.withCredentials,headers:p,observe:c,reportProgress:h})}getEntitylessAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessAttributesByKey(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesWithKeys(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"keys[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessKeys(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityResourceUserMemberAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=s&&(o=this.addToHttpParams(o,s,"user")),null!=u&&(o=this.addToHttpParams(o,u,"member"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getFacilityUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getGroupResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getGroupResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getHostAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getIdpAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getLogins(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAndUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAndUserAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAndUserAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberGroupAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberGroupAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacility(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacilityService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesFacilityServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesGroupResourceService(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"service")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesHostService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMemberGroup(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesMemberGroupResourceService(e,t,s,u,d,l=!1,n="body",i=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"group")),null!=u&&(c=this.addToHttpParams(c,u,"member")),null!=d&&(c=this.addToHttpParams(c,d,"workWithUserAttributes"));let m,h=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(h=h.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(h=h.set("Authorization","Bearer "+m));let g=o&&o.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(h=h.set("Accept",g));let p=o&&o.context;void 0===p&&(p=new v.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let R=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.get(R,{context:p,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=s&&(o=this.addToHttpParams(o,s,"member")),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesMemberResource(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesMemberResourceService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=s&&(o=this.addToHttpParams(o,s,"member")),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesResource(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesResourceService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesResourceServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesUserFacility(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesVoService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getResourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupAndGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"resource")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithGroupAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getResourceGroupAndGroupAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithGroupAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getResourceGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupMemberAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=s&&(o=this.addToHttpParams(o,s,"member")),u&&u.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")});let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getUserAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserFacilityAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getUserFacilityAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getUserFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVoAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeAttributesForFacilityResourceGroupUserMember(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=s&&(h=this.addToHttpParams(h,s,"group")),null!=u&&(h=this.addToHttpParams(h,u,"user")),null!=d&&(h=this.addToHttpParams(h,d,"member")),l&&l.forEach(Te=>{h=this.addToHttpParams(h,Te,"attributes[]")});let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let p=c&&c.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(m=m.set("Accept",p));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";p&&(R=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(n){let Te=new URL(J),at=Te.pathname.split("/");at[1]="non",Te.pathname=at.join("/"),J=Te.toString()}return this.httpClient.post(J,null,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}removeAttributesForFacilityResourceUserMember(e,t,s,u,d,l=!1,n="body",i=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"user")),null!=u&&(c=this.addToHttpParams(c,u,"member")),d&&d.forEach(J=>{c=this.addToHttpParams(c,J,"attributes[]")});let m,h=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(h=h.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(h=h.set("Authorization","Bearer "+m));let g=o&&o.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(h=h.set("Accept",g));let p=o&&o.context;void 0===p&&(p=new v.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let R=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.post(R,null,{context:p,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeGroupResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attributes[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithGroupAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeHostAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeHostAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributesWorkWithUserAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attributes[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeMemberResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeResourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUesAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserExtSourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserFacilityAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeVoAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeVoAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}setAttributeActionCriticality(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==s)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"attributeDefinition")),null!=t&&(i=this.addToHttpParams(i,t,"action")),null!=s&&(i=this.addToHttpParams(i,s,"critical"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}setAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setEntitylessAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceGroupUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAndUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupWithGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mt,8),f.LFG(Ue,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),lt=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new v.WM,this.configuration=new Ue,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Rt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAllPolicies(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAllRolesManagementRules(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAuthzAdminGroups(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=s&&(i=this.addToHttpParams(i,s,"complementaryObjectName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getAuthzRichAdmins(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==u)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=s&&(h=this.addToHttpParams(h,s,"complementaryObjectName")),u&&u.forEach(Te=>{h=this.addToHttpParams(h,Te,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=l&&(h=this.addToHttpParams(h,l,"onlyDirectAdmins"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let p=c&&c.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(m=m.set("Accept",p));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";p&&(R=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let J=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(n){let Te=new URL(J),at=Te.pathname.split("/");at[1]="non",Te.pathname=at.join("/"),J=Te.toString()}return this.httpClient.get(J,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}getFacilitiesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getLoggedUser(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getMembersWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getPerunPrincipal(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPrincipalRoleNames(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getResourcesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getSecurityTeamsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVosWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}isFacilityAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isGroupAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isPerunAdmin(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}isVoAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}keepAlive(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}loadAuthorizationComponents(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}refreshMfa(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}setRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mt,8),f.LFG(Ue,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Vo=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new Ue,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Rt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}sentMessageToRTWithMemberQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"memberId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=s&&(o=this.addToHttpParams(o,s,"subject")),null!=u&&(o=this.addToHttpParams(o,u,"text"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}sentMessageToRTWithQueue(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}sentMessageToRTWithVo(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}sentMessageToRTWithVoQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"voId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=s&&(o=this.addToHttpParams(o,s,"subject")),null!=u&&(o=this.addToHttpParams(o,u,"text"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mt,8),f.LFG(Ue,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),xn=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new v.WM,this.configuration=new Ue,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Rt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}addSpecificUserOwner(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}addUserExtSource(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}anonymizeUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}changeNonAuthzPasswordByToken(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}changePasswordForLogin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}changePasswordForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}checkPasswordResetRequestByTokenIsValid(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}checkPasswordStrength(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}createAlternativePassword(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}createServiceUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}deleteAlternativePassword(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==s)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"loginNamespace")),null!=s&&(i=this.addToHttpParams(i,s,"passwordId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}deletePasswordForLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deletePasswordForUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}findRichUsers(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}findRichUsersWithAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"searchString")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrsNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}findUsers(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findUsers`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}generateAccountForName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"namespace")),null!=t&&(n=this.addToHttpParams(n,t,"name"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getAllRichUsersWithAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"includedSpecificUsers"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAssignedRichResourcesForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsForFacilityWhereUserIsActive(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsForResourceWhereUserIsActive(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsInVoWhereUserIsAdmin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsWhereUserIsAdmin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getPendingPreferredEmailChanges(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUserExtSources(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUserWithAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersWithAttributesByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersWithoutVoWithAttributes(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"attrsNames[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getSpecificUsersByUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getSponsorsForMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getSponsorsForMemberByVoAndLogin(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==s)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName")),null!=s&&(o=this.addToHttpParams(o,s,"extLogin")),u&&u.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")});let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserById`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceByExtLoginAndExtSourceName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSources(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourcesByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsers(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/getUsers`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getUsersByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsersBySpecificUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"specificUser"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsersPage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}getVosWhereUserIsAdmin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVosWhereUserIsMember(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isLoginAvailable(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}loginExist(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeSpecificUserOwner(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserExtSource(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"userExtSource")),null!=s&&(i=this.addToHttpParams(i,s,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeUserExtSources(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==t)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"userExtSources")}),null!=s&&(i=this.addToHttpParams(i,s,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}requestPreferredEmailChange(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=s&&(h=this.addToHttpParams(h,s,"lang")),null!=u&&(h=this.addToHttpParams(h,u,"linkPath")),null!=d&&(h=this.addToHttpParams(h,d,"customUrl")),null!=l&&(h=this.addToHttpParams(h,l,"idpFilter"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let p=c&&c.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(m=m.set("Accept",p));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";p&&(R=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(n){let Te=new URL(J),at=Te.pathname.split("/");at[1]="non",Te.pathname=at.join("/"),J=Te.toString()}return this.httpClient.post(J,null,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}reservePasswordForLogin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}reservePasswordForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}reserveRandomPassword(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}setLogin(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"login")),null!=s&&(i=this.addToHttpParams(i,s,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}updateUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/updateUser`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateUserExtSourceLastAccess(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}validatePasswordForLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}validatePasswordForUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}validatePreferredEmailChangeWithToken(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mt,8),f.LFG(Ue,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ea=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new Ue,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Rt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAppsConfig(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getGuiConfiguration(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getNewGuiAlert(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunRPCVersion(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatistics(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatus(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunSystemTimeInMillis(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mt,8),f.LFG(Ue,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Nf=(()=>{class r{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:r,providers:[{provide:Ue,useFactory:e}]}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(r,12),f.LFG(v.eN,8))},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();var ht=(()=>{return(r=ht||(ht={})).PERUNADMIN="PERUNADMIN",r.PERUNOBSERVER="PERUNOBSERVER",r.VOADMIN="VOADMIN",r.GROUPADMIN="GROUPADMIN",r.GROUPOBSERVER="GROUPOBSERVER",r.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",r.SELF="SELF",r.FACILITYADMIN="FACILITYADMIN",r.FACILITIYOBSERVER="FACILITYOBSERVER",r.RESOURCEADMIN="RESOURCEADMIN",r.RESOURCESELFSERVICE="RESOURCESELFSERVICE",r.REGISTRAR="REGISTRAR",r.ENGINE="ENGINE",r.RPC="RPC",r.NOTIFICATIONS="NOTIFICATIONS",r.SERVICEUSER="SERVICEUSER",r.SPONSOR="SPONSOR",r.VOOBSERVER="VOOBSERVER",r.TOPGROUPCREATOR="TOPGROUPCREATOR",r.SECURITYADMIN="SECURITYADMIN",r.CABINETADMIN="CABINETADMIN",r.UNKNOWNROLENAME="UNKNOWNROLENAME",r.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",r.UNKNOWN="UNKNOWN",r.MEMBERSHIP="MEMBERSHIP",ht;var r})();let Is=(()=>{class r{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,s)=>t.roleName>s.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(s=>{this.allRolesManagementRules=s,e()},s=>t(s))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(s=>{s.primaryObject===t&&e.push(s)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let s=e.beanName;s.startsWith("Rich")&&(s=s.substring(4)),this.assignAvailableRoles(t,s);const u=new Map;this.setRolesAuthorization(t,e,u);for(const d of u.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,s){for(const u of e){let d=[],l=[],n=[];for(const m of this.allRolesManagementRules)if(m.roleName===u.roleName){d=d.concat(m.privilegedRolesToRead),l=l.concat(m.privilegedRolesToManage);for(const g of Object.keys(m.entitiesToManage))n="User"===g?[g].concat(n):n.concat(g);break}const i=this.fetchAllRelatedObjects([t]),o=this.resolveAuthorization(d,i),c=this.resolveAuthorization(l,i);s.set(u.roleName,{readAuth:o,manageAuth:c,modes:n})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],s=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(u=>{!s.includes(u.roleName)&&this.canManage(u)&&this.ruleHasMode(u,e)&&t.push(u)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(s=>s.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const s of e){let u=!0;for(const d of Object.keys(s)){const l=s[d];if(null===l)this.principalRoles.has(d)||(u=!1);else if(t[l]){for(const n of t[l])if(!this.principalHasRole(d,l,n)){u=!1;break}}else u=!1;if(!u)break}if(u)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const s of e){let u=s.beanName;switch(s.beanName.startsWith("Rich")&&(u=s.beanName.substring(4)),t[u]?t[u].push(s.id):t[u]=[s.id],u){case"Member":t.User?t.User.push(s.userId):t.User=[s.userId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Resource":t.Facility?t.Facility.push(s.facilityId):t.Facility=[s.facilityId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let s=[];for(s.push(e);0!==s.length;){const d=s.shift();if(t.has(d))continue;const l=this.getPerunPolicy(d);if(!l)return[];t.set(d,l),s=s.concat(l.includePolicies)}const u=[];for(const d of t.values())u.push(d);return u}voCustomSort(e){for(let t=0;t{(0,Xn.Xf)(r()).subscribe(a)})}var ku=E(9635),en=E(2843),Ar=E(515),wt=E(727),Ui=E(4482),tn=E(5403);function Wa(){return(0,Ui.e)((r,a)=>{let e=null;r._refCount++;const t=(0,tn.x)(a,void 0,void 0,void 0,()=>{if(!r||r._refCount<=0||0<--r._refCount)return void(e=null);const s=r._connection,u=e;e=null,s&&(!u||s===u)&&s.unsubscribe(),a.unsubscribe()});r.subscribe(t),t.closed||(e=r.connect())})}class mc extends Fi.y{constructor(a,e){super(),this.source=a,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,Ui.A)(a)&&(this.lift=a.lift)}_subscribe(a){return this.getSubject().subscribe(a)}getSubject(){const a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:a}=this;this._subject=this._connection=null,a?.unsubscribe()}connect(){let a=this._connection;if(!a){a=this._connection=new wt.w0;const e=this.getSubject();a.add(this.source.subscribe((0,tn.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),a.closed&&(this._connection=null,a=wt.w0.EMPTY)}return a}refCount(){return Wa()(this)}}var pt=E(4004),bt=E(3900),qt=E(5698),qf=E(3269);function si(...r){const a=(0,qf.yG)(r);return(0,Ui.e)((e,t)=>{(a?(0,na.z)(r,e,a):(0,na.z)(r,e)).subscribe(t)})}var Vt=E(5577),Sn=E(590),un=E(4351),jt=E(8505),Bt=E(262);function P(r,a,e,t,s){return(u,d)=>{let l=e,n=a,i=0;u.subscribe((0,tn.x)(d,o=>{const c=i++;n=l?r(n,o,c):(l=!0,o),t&&d.next(n)},s&&(()=>{l&&d.next(n),d.complete()})))}}function O(r,a){return(0,Ui.e)(P(r,a,arguments.length>=2,!0))}function I(r){return r<=0?()=>Ar.E:(0,Ui.e)((a,e)=>{let t=[];a.subscribe((0,tn.x)(e,s=>{t.push(s),r{for(const s of t)e.next(s);e.complete()},void 0,()=>{t=null}))})}var j=E(8068),ne=E(6590),me=E(4671);function de(r,a){const e=arguments.length>=2;return t=>t.pipe(r?(0,ii.h)((s,u)=>r(s,u,t)):me.y,I(1),e?(0,ne.d)(a):(0,j.T)(()=>new ia.K))}var Nt=E(9718);function Et(r){return(0,Ui.e)((a,e)=>{try{a.subscribe(e)}finally{e.add(r)}})}var Pt=E(8189);const Le="primary";class ui{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Mt(r){return new ui(r)}function Ei(r,a,e){const t=e.path.split("/");if(t.length>r.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[u]===s)}return r===a}function er(r){return Array.prototype.concat.apply([],r)}function $t(r){return r.length>0?r[r.length-1]:null}function zt(r,a){for(const e in r)r.hasOwnProperty(e)&&a(r[e],e)}function Ci(r){return(0,f.CqO)(r)?r:(0,f.QGY)(r)?(0,Si.D)(Promise.resolve(r)):(0,ke.of)(r)}const Rx={exact:function Vi(r,a,e){if(!Tr(r.segments,a.segments)||!hn(r.segments,a.segments,e)||r.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!r.children[t]||!Vi(r.children[t],a.children[t],e))return!1;return!0},subset:Bu},zf={exact:function gc(r,a){return et(r,a)},subset:function xr(r,a){return Object.keys(a).length<=Object.keys(r).length&&Object.keys(a).every(e=>ra(r[e],a[e]))},ignored:()=>!0};function zC(r,a,e){return Rx[e.paths](r.root,a.root,e.matrixParams)&&zf[e.queryParams](r.queryParams,a.queryParams)&&!("exact"===e.fragment&&r.fragment!==a.fragment)}function Bu(r,a,e){return $a(r,a,a.segments,e)}function $a(r,a,e,t){if(r.segments.length>e.length){const s=r.segments.slice(0,e.length);return!(!Tr(s,e)||a.hasChildren()||!hn(s,e,t))}if(r.segments.length===e.length){if(!Tr(r.segments,e)||!hn(r.segments,e,t))return!1;for(const s in a.children)if(!r.children[s]||!Bu(r.children[s],a.children[s],t))return!1;return!0}{const s=e.slice(0,r.segments.length),u=e.slice(r.segments.length);return!!(Tr(r.segments,s)&&hn(r.segments,s,t)&&r.children[Le])&&$a(r.children[Le],a,u,t)}}function hn(r,a,e){return a.every((t,s)=>zf[e](r[s].parameters,t.parameters))}class Qa{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Mt(this.queryParams)),this._queryParamMap}toString(){return WC.serialize(this)}}class gt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,zt(e,(t,s)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ls(this)}}class Bs{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Mt(this.parameters)),this._parameterMap}toString(){return $f(this)}}function Tr(r,a){return r.length===a.length&&r.every((e,t)=>e.path===a[t].path)}let Lu=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:function(){return new Os},providedIn:"root"}),r})();class Os{parse(a){const e=new JC(a);return new Qa(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${Ya(a.root,!0)}`,t=function aa(r){const a=Object.keys(r).map(e=>{const t=r[e];return Array.isArray(t)?t.map(s=>`${js(e)}=${js(s)}`).join("&"):`${js(e)}=${js(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function Gf(r){return encodeURI(r)}(a.fragment)}`:""}`}}const WC=new Os;function Ls(r){return r.segments.map(a=>$f(a)).join("/")}function Ya(r,a){if(!r.hasChildren())return Ls(r);if(a){const e=r.children[Le]?Ya(r.children[Le],!1):"",t=[];return zt(r.children,(s,u)=>{u!==Le&&t.push(`${u}:${Ya(s,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Ou(r,a){let e=[];return zt(r.children,(t,s)=>{s===Le&&(e=e.concat(a(t,s)))}),zt(r.children,(t,s)=>{s!==Le&&(e=e.concat(a(t,s)))}),e}(r,(t,s)=>s===Le?[Ya(r.children[Le],!1)]:[`${s}:${Ya(t,!1)}`]);return 1===Object.keys(r.children).length&&null!=r.children[Le]?`${Ls(r)}/${e[0]}`:`${Ls(r)}/(${e.join("//")})`}}function ju(r){return encodeURIComponent(r).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function js(r){return ju(r).replace(/%3B/gi,";")}function _c(r){return ju(r).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function jo(r){return decodeURIComponent(r)}function Wf(r){return jo(r.replace(/\+/g,"%20"))}function $f(r){return`${_c(r.path)}${function Ni(r){return Object.keys(r).map(a=>`;${_c(a)}=${_c(r[a])}`).join("")}(r.parameters)}`}const Kt=/^[^\/()?;=#]+/;function Fs(r){const a=r.match(Kt);return a?a[0]:""}const $C=/^[^=?&#]+/,QC=/^[^&#]+/;class JC{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[Le]=new gt(a,e)),t}parseSegment(){const a=Fs(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new f.vHH(4009,!1);return this.capture(a),new Bs(jo(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Fs(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const s=Fs(this.remaining);s&&(t=s,this.capture(t))}a[jo(e)]=jo(t)}parseQueryParam(a){const e=function Qf(r){const a=r.match($C);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function YC(r){const a=r.match(QC);return a?a[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const s=Wf(e),u=Wf(t);if(a.hasOwnProperty(s)){let d=a[s];Array.isArray(d)||(d=[d],a[s]=d),d.push(u)}else a[s]=u}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Fs(this.remaining),s=this.remaining[t.length];if("/"!==s&&")"!==s&&";"!==s)throw new f.vHH(4010,!1);let u;t.indexOf(":")>-1?(u=t.slice(0,t.indexOf(":")),this.capture(u),this.capture(":")):a&&(u=Le);const d=this.parseChildren();e[u]=1===Object.keys(d).length?d[Le]:new gt([],d),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new f.vHH(4011,!1)}}function Fo(r){return r.segments.length>0?new gt([],{[Le]:r}):r}function Ja(r){const a={};for(const t of Object.keys(r.children)){const u=Ja(r.children[t]);(u.segments.length>0||u.hasChildren())&&(a[t]=u)}return function bc(r){if(1===r.numberOfChildren&&r.children[Le]){const a=r.children[Le];return new gt(r.segments.concat(a.segments),a.children)}return r}(new gt(r.segments,a))}function Sr(r){return r instanceof Qa}function KC(r,a,e,t,s){if(0===e.length)return sa(a.root,a.root,a.root,t,s);const u=function ZC(r){if("string"==typeof r[0]&&1===r.length&&"/"===r[0])return new Jf(!0,0,r);let a=0,e=!1;const t=r.reduce((s,u,d)=>{if("object"==typeof u&&null!=u){if(u.outlets){const l={};return zt(u.outlets,(n,i)=>{l[i]="string"==typeof n?n.split("/"):n}),[...s,{outlets:l}]}if(u.segmentPath)return[...s,u.segmentPath]}return"string"!=typeof u?[...s,u]:0===d?(u.split("/").forEach((l,n)=>{0==n&&"."===l||(0==n&&""===l?e=!0:".."===l?a++:""!=l&&s.push(l))}),s):[...s,u]},[]);return new Jf(e,a,t)}(e);return u.toRoot()?sa(a.root,a.root,new gt([],{}),t,s):function d(n){const i=function Kf(r,a,e,t){if(r.isAbsolute)return new qs(a.root,!0,0);if(-1===t)return new qs(e,e===a.root,0);return function Fu(r,a,e){let t=r,s=a,u=e;for(;u>s;){if(u-=s,t=t.parent,!t)throw new f.vHH(4005,!1);s=t.segments.length}return new qs(t,!1,s-u)}(e,t+(Ns(r.commands[0])?0:1),r.numberOfDoubleDots)}(u,a,r.snapshot?._urlSegment,n),o=i.processChildren?Uo(i.segmentGroup,i.index,u.commands):vc(i.segmentGroup,i.index,u.commands);return sa(a.root,i.segmentGroup,o,t,s)}(r.snapshot?._lastPathIndex)}function Ns(r){return"object"==typeof r&&null!=r&&!r.outlets&&!r.segmentPath}function Er(r){return"object"==typeof r&&null!=r&&r.outlets}function sa(r,a,e,t,s){let d,u={};t&&zt(t,(n,i)=>{u[i]=Array.isArray(n)?n.map(o=>`${o}`):`${n}`}),d=r===a?e:Yf(r,a,e);const l=Fo(Ja(d));return new Qa(l,u,s)}function Yf(r,a,e){const t={};return zt(r.children,(s,u)=>{t[u]=s===a?e:Yf(s,a,e)}),new gt(r.segments,t)}class Jf{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&Ns(t[0]))throw new f.vHH(4003,!1);const s=t.find(Er);if(s&&s!==$t(t))throw new f.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class qs{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function vc(r,a,e){if(r||(r=new gt([],{})),0===r.segments.length&&r.hasChildren())return Uo(r,a,e);const t=function No(r,a,e){let t=0,s=a;const u={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return u;const d=r.segments[s],l=e[t];if(Er(l))break;const n=`${l}`,i=t0&&void 0===n)break;if(n&&i&&"object"==typeof i&&void 0===i.outlets){if(!zs(n,i,d))return u;t+=2}else{if(!zs(n,{},d))return u;t++}s++}return{match:!0,pathIndex:s,commandIndex:t}}(r,a,e),s=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof u&&(u=[u]),null!==u&&(s[d]=vc(r.children[d],a,u))}),zt(r.children,(u,d)=>{void 0===t[d]&&(s[d]=u)}),new gt(r.segments,s)}}function Uu(r,a,e){const t=r.segments.slice(0,a);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=Uu(new gt([],{}),0,e))}),a}function Ac(r){const a={};return zt(r,(e,t)=>a[t]=`${e}`),a}function zs(r,a,e){return r==e.path&&et(a,e.parameters)}class la{constructor(a,e){this.id=a,this.url=e}}class xc extends la{constructor(a,e,t="imperative",s=null){super(a,e),this.type=0,this.navigationTrigger=t,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Mr extends la{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Tc extends la{constructor(a,e,t,s){super(a,e),this.reason=t,this.code=s,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class En extends la{constructor(a,e,t,s){super(a,e),this.error=t,this.target=s,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class XC extends la{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gs extends la{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nu extends la{constructor(a,e,t,s,u){super(a,e),this.urlAfterRedirects=t,this.state=s,this.shouldActivate=u,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class qu extends la{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sc extends la{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ec{constructor(a){this.route=a,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ew{constructor(a){this.route=a,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Zf{constructor(a){this.snapshot=a,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xf{constructor(a){this.snapshot=a,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class em{constructor(a){this.snapshot=a,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tm{constructor(a){this.snapshot=a,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class im{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class zo{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=zu(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=zu(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=Dc(a,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==a)}pathFromRoot(a){return Dc(a,this._root).map(e=>e.value)}}function zu(r,a){if(r===a.value)return a;for(const e of a.children){const t=zu(r,e);if(t)return t}return null}function Dc(r,a){if(r===a.value)return[a];for(const e of a.children){const t=Dc(r,e);if(t.length)return t.unshift(a),t}return[]}class tr{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Mn(r){const a={};return r&&r.children.forEach(e=>a[e.value.outlet]=e),a}class nm extends zo{constructor(a,e){super(a),this.snapshot=e,ca(this,a)}toString(){return this.snapshot.toString()}}function Gu(r,a){const e=function Wu(r,a){const d=new Hr([],{},{},"",{},Le,a,null,r.root,-1,{});return new Ka("",new tr(d,[]))}(r,a),t=new ki([new Bs("",{})]),s=new ki({}),u=new ki({}),d=new ki({}),l=new ki(""),n=new Dr(t,s,d,l,u,Le,a,e.root);return n.snapshot=e.root,new nm(new tr(n,[]),e)}class Dr{constructor(a,e,t,s,u,d,l,n){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this._futureSnapshot=n}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,pt.U)(a=>Mt(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,pt.U)(a=>Mt(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function $u(r,a="emptyOnly"){const e=r.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const s=e[t],u=e[t-1];if(s.routeConfig&&""===s.routeConfig.path)t--;else{if(u.component)break;t--}}return function Qu(r){return r.reduce((a,e)=>({params:{...a.params,...e.params},data:{...a.data,...e.data},resolve:{...e.data,...a.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class Hr{constructor(a,e,t,s,u,d,l,n,i,o,c,h){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this.routeConfig=n,this._urlSegment=i,this._lastPathIndex=o,this._correctedLastPathIndex=h??o,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Mt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Mt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ka extends zo{constructor(a,e){super(e),this.url=a,ca(this,e)}toString(){return Yu(this._root)}}function ca(r,a){a.value._routerState=r,a.children.forEach(e=>ca(r,e))}function Yu(r){const a=r.children.length>0?` { ${r.children.map(Yu).join(", ")} } `:"";return`${r.value}${a}`}function Ws(r){if(r.snapshot){const a=r.snapshot,e=r._futureSnapshot;r.snapshot=e,et(a.queryParams,e.queryParams)||r.queryParams.next(e.queryParams),a.fragment!==e.fragment&&r.fragment.next(e.fragment),et(a.params,e.params)||r.params.next(e.params),function we(r,a){if(r.length!==a.length)return!1;for(let e=0;eet(e.parameters,a[t].parameters))}(r.url,a.url);return e&&!(!r.parent!=!a.parent)&&(!r.parent||da(r.parent,a.parent))}function $s(r,a,e){if(e&&r.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const s=function Ft(r,a,e){return a.children.map(t=>{for(const s of e.children)if(r.shouldReuseRoute(t.value,s.value.snapshot))return $s(r,t,s);return $s(r,t)})}(r,a,e);return new tr(t,s)}{if(r.shouldAttach(a.value)){const u=r.retrieve(a.value);if(null!==u){const d=u.route;return d.value._futureSnapshot=a.value,d.children=a.children.map(l=>$s(r,l)),d}}const t=function kx(r){return new Dr(new ki(r.url),new ki(r.params),new ki(r.queryParams),new ki(r.fragment),new ki(r.data),r.outlet,r.component,r)}(a.value),s=a.children.map(u=>$s(r,u));return new tr(t,s)}}const rm="ngNavigationCancelingError";function tw(r,a){const{redirectTo:e,navigationBehaviorOptions:t}=Sr(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,s=iw(!1,0,a);return s.url=e,s.navigationBehaviorOptions=t,s}function iw(r,a,e){const t=new Error("NavigationCancelingError: "+(r||""));return t[rm]=!0,t.cancellationCode=a,e&&(t.url=e),t}function nw(r){return rw(r)&&Sr(r.url)}function rw(r){return r&&r[rm]}class Vx{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Rr,this.attachRef=null}}let Rr=(()=>{class r{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const s=this.getOrCreateContext(e);s.outlet=t,this.contexts.set(e,s)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Vx,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Ju=!1;let am=(()=>{class r{constructor(e,t,s,u,d){this.parentContexts=e,this.location=t,this.changeDetector=u,this.environmentInjector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new f.vpe,this.deactivateEvents=new f.vpe,this.attachEvents=new f.vpe,this.detachEvents=new f.vpe,this.name=s||Le,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new f.vHH(4012,Ju);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new f.vHH(4012,Ju);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new f.vHH(4012,Ju);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new f.vHH(4013,Ju);this._activatedRoute=e;const s=this.location,d=e._futureSnapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,n=new hi(e,l,s.injector);if(t&&function Ku(r){return!!r.resolveComponentFactory}(t)){const i=t.resolveComponentFactory(d);this.activated=s.createComponent(i,s.length,n)}else this.activated=s.createComponent(d,{index:s.length,injector:n,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Rr),f.Y36(f.s_b),f.$8M("name"),f.Y36(f.sBO),f.Y36(f.lqb))},r.\u0275dir=f.lG2({type:r,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),r})();class hi{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===Dr?this.route:a===Rr?this.childContexts:this.parent.get(a,e)}}let Go=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=f.Xpm({type:r,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&f._UZ(0,"router-outlet")},dependencies:[am],encapsulation:2}),r})();function aw(r,a){return r.providers&&!r._injector&&(r._injector=(0,f.MMx)(r.providers,a,`Route: ${r.path}`)),r._injector??a}function Zu(r){const a=r.children&&r.children.map(Zu),e=a?{...r,children:a}:{...r};return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==Le&&(e.component=Go),e}function Dn(r){return r.outlet||Le}function lw(r,a){const e=r.filter(t=>Dn(t)===a);return e.push(...r.filter(t=>Dn(t)!==a)),e}function Xu(r){if(!r)return null;if(r.routeConfig?._injector)return r.routeConfig._injector;for(let a=r.parent;a;a=a.parent){const e=a.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class eh{constructor(a,e,t,s){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=s}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),Ws(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const s=Mn(e);a.children.forEach(u=>{const d=u.value.outlet;this.deactivateRoutes(u,s[d],t),delete s[d]}),zt(s,(u,d)=>{this.deactivateRouteAndItsChildren(u,t)})}deactivateRoutes(a,e,t){const s=a.value,u=e?e.value:null;if(s===u)if(s.component){const d=t.getContext(s.outlet);d&&this.deactivateChildRoutes(a,e,d.children)}else this.deactivateChildRoutes(a,e,t);else u&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),s=t&&a.value.component?t.children:e,u=Mn(a);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);if(t&&t.outlet){const d=t.outlet.detach(),l=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:d,route:a,contexts:l})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),s=t&&a.value.component?t.children:e,u=Mn(a);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const s=Mn(e);a.children.forEach(u=>{this.activateRoutes(u,s[u.value.outlet],t),this.forwardEvent(new tm(u.value.snapshot))}),a.children.length&&this.forwardEvent(new Xf(a.value.snapshot))}activateRoutes(a,e,t){const s=a.value,u=e?e.value:null;if(Ws(s),s===u)if(s.component){const d=t.getOrCreateContext(s.outlet);this.activateChildRoutes(a,e,d.children)}else this.activateChildRoutes(a,e,t);else if(s.component){const d=t.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const l=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),d.children.onOutletReAttached(l.contexts),d.attachRef=l.componentRef,d.route=l.route.value,d.outlet&&d.outlet.attach(l.componentRef,l.route.value),Ws(l.route.value),this.activateChildRoutes(a,null,d.children)}else{const l=Xu(s.snapshot),n=l?.get(f._Vd)??null;d.attachRef=null,d.route=s,d.resolver=n,d.injector=l,d.outlet&&d.outlet.activateWith(s,d.injector),this.activateChildRoutes(a,null,d.children)}}else this.activateChildRoutes(a,null,t)}}class Za{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class th{constructor(a,e){this.component=a,this.route=e}}function sm(r,a,e){const t=r._root;return Ys(t,a?a._root:null,e,[t.value])}function Hc(r,a,e){return(Xu(a)??e).get(r)}function Ys(r,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=Mn(a);return r.children.forEach(d=>{(function dw(r,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=r.value,d=a?a.value:null,l=e?e.getContext(r.value.outlet):null;if(d&&u.routeConfig===d.routeConfig){const n=function uw(r,a,e){if("function"==typeof e)return e(r,a);switch(e){case"pathParamsChange":return!Tr(r.url,a.url);case"pathParamsOrQueryParamsChange":return!Tr(r.url,a.url)||!et(r.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!da(r,a)||!et(r.queryParams,a.queryParams);default:return!da(r,a)}}(d,u,u.routeConfig.runGuardsAndResolvers);n?s.canActivateChecks.push(new Za(t)):(u.data=d.data,u._resolvedData=d._resolvedData),Ys(r,a,u.component?l?l.children:null:e,t,s),n&&l&&l.outlet&&l.outlet.isActivated&&s.canDeactivateChecks.push(new th(l.outlet.component,d))}else d&&Js(a,l,s),s.canActivateChecks.push(new Za(t)),Ys(r,null,u.component?l?l.children:null:e,t,s)})(d,u[d.value.outlet],e,t.concat([d.value]),s),delete u[d.value.outlet]}),zt(u,(d,l)=>Js(d,e.getContext(l),s)),s}function Js(r,a,e){const t=Mn(r),s=r.value;zt(t,(u,d)=>{Js(u,s.component?a?a.children.getContext(d):null:a,e)}),e.canDeactivateChecks.push(new th(s.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,s))}function Xa(r){return"function"==typeof r}function Ic(r){return r instanceof ia.K||"EmptyError"===r?.name}const ha=Symbol("INITIAL_VALUE");function Hn(){return(0,bt.w)(r=>(0,Lo.a)(r.map(a=>a.pipe((0,qt.q)(1),si(ha)))).pipe((0,pt.U)(a=>{for(const e of a)if(!0!==e){if(e===ha)return ha;if(!1===e||e instanceof Qa)return e}return!0}),(0,ii.h)(a=>a!==ha),(0,qt.q)(1)))}function kc(r){return(0,ku.z)((0,jt.b)(a=>{if(Sr(a))throw tw(0,a)}),(0,pt.U)(a=>!0===a))}const Vc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function $o(r,a,e,t,s){const u=rh(r,a,e);return u.matched?function Xs(r,a,e,t){const s=a.canMatch;if(!s||0===s.length)return(0,ke.of)(!0);const u=s.map(d=>{const l=r.get(d),n=function hw(r){return r&&Xa(r.canMatch)}(l)?l.canMatch(a,e):l(a,e);return Ci(n)});return(0,ke.of)(u).pipe(Hn(),kc())}(t=aw(a,t),a,e).pipe((0,pt.U)(d=>!0===d?u:{...Vc})):(0,ke.of)(u)}function rh(r,a,e){if(""===a.path)return"full"===a.pathMatch&&(r.hasChildren()||e.length>0)?{...Vc}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const s=(a.matcher||Ei)(e,r,a);if(!s)return{...Vc};const u={};zt(s.posParams,(l,n)=>{u[n]=l.path});const d=s.consumed.length>0?{...u,...s.consumed[s.consumed.length-1].parameters}:u;return{matched:!0,consumedSegments:s.consumed,remainingSegments:e.slice(s.consumed.length),parameters:d,positionalParamSegments:s.posParams??{}}}function el(r,a,e,t,s="corrected"){if(e.length>0&&function dm(r,a,e){return e.some(t=>Oc(r,a,t)&&Dn(t)!==Le)}(r,e,t)){const d=new gt(a,function Bc(r,a,e,t){const s={};s[Le]=t,t._sourceSegment=r,t._segmentIndexShift=a.length;for(const u of e)if(""===u.path&&Dn(u)!==Le){const d=new gt([],{});d._sourceSegment=r,d._segmentIndexShift=a.length,s[Dn(u)]=d}return s}(r,a,t,new gt(e,r.children)));return d._sourceSegment=r,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function bw(r,a,e){return e.some(t=>Oc(r,a,t))}(r,e,t)){const d=new gt(r.segments,function tl(r,a,e,t,s,u){const d={};for(const l of t)if(Oc(r,e,l)&&!s[Dn(l)]){const n=new gt([],{});n._sourceSegment=r,n._segmentIndexShift="legacy"===u?r.segments.length:a.length,d[Dn(l)]=n}return{...s,...d}}(r,a,e,t,r.children,s));return d._sourceSegment=r,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}const u=new gt(r.segments,r.children);return u._sourceSegment=r,u._segmentIndexShift=a.length,{segmentGroup:u,slicedSegments:e}}function Oc(r,a,e){return(!(r.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function eo(r,a,e,t){return!!(Dn(r)===t||t!==Le&&Oc(a,e,r))&&("**"===r.path||rh(a,r,e).matched)}function Qo(r,a,e){return 0===a.length&&!r.children[e]}const Lc=!1;class ah{constructor(a){this.segmentGroup=a||null}}class oh{constructor(a){this.urlTree=a}}function il(r){return(0,en._)(new ah(r))}function Cw(r){return(0,en._)(new oh(r))}class jc{constructor(a,e,t,s,u){this.injector=a,this.configLoader=e,this.urlSerializer=t,this.urlTree=s,this.config=u,this.allowRedirects=!0}apply(){const a=el(this.urlTree.root,[],[],this.config).segmentGroup,e=new gt(a.segments,a.children);return this.expandSegmentGroup(this.injector,this.config,e,Le).pipe((0,pt.U)(u=>this.createUrlTree(Ja(u),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Bt.K)(u=>{if(u instanceof oh)return this.allowRedirects=!1,this.match(u.urlTree);throw u instanceof ah?this.noMatchError(u):u}))}match(a){return this.expandSegmentGroup(this.injector,this.config,a.root,Le).pipe((0,pt.U)(s=>this.createUrlTree(Ja(s),a.queryParams,a.fragment))).pipe((0,Bt.K)(s=>{throw s instanceof ah?this.noMatchError(s):s}))}noMatchError(a){return new f.vHH(4002,Lc)}createUrlTree(a,e,t){const s=Fo(a);return new Qa(s,e,t)}expandSegmentGroup(a,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,pt.U)(u=>new gt([],u))):this.expandSegment(a,t,e,t.segments,s,!0)}expandChildren(a,e,t){const s=[];for(const u of Object.keys(t.children))"primary"===u?s.unshift(u):s.push(u);return(0,Si.D)(s).pipe((0,un.b)(u=>{const d=t.children[u],l=lw(e,u);return this.expandSegmentGroup(a,l,d,u).pipe((0,pt.U)(n=>({segment:n,outlet:u})))}),O((u,d)=>(u[d.outlet]=d.segment,u),{}),de())}expandSegment(a,e,t,s,u,d){return(0,Si.D)(t).pipe((0,un.b)(l=>this.expandSegmentAgainstRoute(a,e,t,l,s,u,d).pipe((0,Bt.K)(i=>{if(i instanceof ah)return(0,ke.of)(null);throw i}))),(0,Sn.P)(l=>!!l),(0,Bt.K)((l,n)=>{if(Ic(l))return Qo(e,s,u)?(0,ke.of)(new gt([],{})):il(e);throw l}))}expandSegmentAgainstRoute(a,e,t,s,u,d,l){return eo(s,e,u,d)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(a,e,s,u,d):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d):il(e):il(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,s,d):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,s){const u=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Cw(u):this.lineralizeSegments(t,u).pipe((0,Vt.z)(d=>{const l=new gt(d,{});return this.expandSegment(a,l,e,d,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d){const{matched:l,consumedSegments:n,remainingSegments:i,positionalParamSegments:o}=rh(e,s,u);if(!l)return il(e);const c=this.applyRedirectCommands(n,s.redirectTo,o);return s.redirectTo.startsWith("/")?Cw(c):this.lineralizeSegments(s,c).pipe((0,Vt.z)(h=>this.expandSegment(a,e,t,h.concat(i),d,!1)))}matchSegmentAgainstRoute(a,e,t,s,u){return"**"===t.path?(a=aw(t,a),t.loadChildren?(t._loadedRoutes?(0,ke.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(a,t)).pipe((0,pt.U)(l=>(t._loadedRoutes=l.routes,t._loadedInjector=l.injector,new gt(s,{})))):(0,ke.of)(new gt(s,{}))):$o(e,t,s,a).pipe((0,bt.w)(({matched:d,consumedSegments:l,remainingSegments:n})=>d?this.getChildConfig(a=t._injector??a,t,s).pipe((0,Vt.z)(o=>{const c=o.injector??a,h=o.routes,{segmentGroup:m,slicedSegments:g}=el(e,l,n,h),p=new gt(m.segments,m.children);if(0===g.length&&p.hasChildren())return this.expandChildren(c,h,p).pipe((0,pt.U)(Te=>new gt(l,Te)));if(0===h.length&&0===g.length)return(0,ke.of)(new gt(l,{}));const w=Dn(t)===u;return this.expandSegment(c,p,h,g,w?Le:u,!0).pipe((0,pt.U)(J=>new gt(l.concat(J.segments),J.children)))})):il(e)))}getChildConfig(a,e,t){return e.children?(0,ke.of)({routes:e.children,injector:a}):e.loadChildren?void 0!==e._loadedRoutes?(0,ke.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function _w(r,a,e,t){const s=a.canLoad;if(void 0===s||0===s.length)return(0,ke.of)(!0);const u=s.map(d=>{const l=r.get(d),n=function Ox(r){return r&&Xa(r.canLoad)}(l)?l.canLoad(a,e):l(a,e);return Ci(n)});return(0,ke.of)(u).pipe(Hn(),kc())}(a,e,t).pipe((0,Vt.z)(s=>s?this.configLoader.loadChildren(a,e).pipe((0,jt.b)(u=>{e._loadedRoutes=u.routes,e._loadedInjector=u.injector})):function yw(r){return(0,en._)(iw(Lc,3))}())):(0,ke.of)({routes:[],injector:a})}lineralizeSegments(a,e){let t=[],s=e.root;for(;;){if(t=t.concat(s.segments),0===s.numberOfChildren)return(0,ke.of)(t);if(s.numberOfChildren>1||!s.children[Le])return(0,en._)(new f.vHH(4e3,Lc));s=s.children[Le]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreateUrlTree(a,e,t,s){const u=this.createSegmentGroup(a,e.root,t,s);return new Qa(u,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return zt(a,(s,u)=>{if("string"==typeof s&&s.startsWith(":")){const l=s.substring(1);t[u]=e[l]}else t[u]=s}),t}createSegmentGroup(a,e,t,s){const u=this.createSegments(a,e.segments,t,s);let d={};return zt(e.children,(l,n)=>{d[n]=this.createSegmentGroup(a,l,t,s)}),new gt(u,d)}createSegments(a,e,t,s){return e.map(u=>u.path.startsWith(":")?this.findPosParam(a,u,s):this.findOrReturn(u,t))}findPosParam(a,e,t){const s=t[e.path.substring(1)];if(!s)throw new f.vHH(4001,Lc);return s}findOrReturn(a,e){let t=0;for(const s of e){if(s.path===a.path)return e.splice(t),s;t++}return a}}class hm{}class Fx{constructor(a,e,t,s,u,d,l,n){this.injector=a,this.rootComponentType=e,this.config=t,this.urlTree=s,this.url=u,this.paramsInheritanceStrategy=d,this.relativeLinkResolution=l,this.urlSerializer=n}recognize(){const a=el(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,a,Le).pipe((0,pt.U)(e=>{if(null===e)return null;const t=new Hr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Le,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new tr(t,e),u=new Ka(this.url,s);return this.inheritParamsAndData(u._root),u}))}inheritParamsAndData(a){const e=a.value,t=$u(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(a,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.processChildren(a,e,t):this.processSegment(a,e,t,t.segments,s)}processChildren(a,e,t){return(0,Si.D)(Object.keys(t.children)).pipe((0,un.b)(s=>{const u=t.children[s],d=lw(e,s);return this.processSegmentGroup(a,d,u,s)}),O((s,u)=>s&&u?(s.push(...u),s):null),function Ge(r,a=!1){return(0,Ui.e)((e,t)=>{let s=0;e.subscribe((0,tn.x)(t,u=>{const d=r(u,s++);(d||a)&&t.next(u),!d&&t.complete()}))})}(s=>null!==s),(0,ne.d)(null),de(),(0,pt.U)(s=>{if(null===s)return null;const u=nl(s);return function sh(r){r.sort((a,e)=>a.value.outlet===Le?-1:e.value.outlet===Le?1:a.value.outlet.localeCompare(e.value.outlet))}(u),u}))}processSegment(a,e,t,s,u){return(0,Si.D)(e).pipe((0,un.b)(d=>this.processSegmentAgainstRoute(d._injector??a,d,t,s,u)),(0,Sn.P)(d=>!!d),(0,Bt.K)(d=>{if(Ic(d))return Qo(t,s,u)?(0,ke.of)([]):(0,ke.of)(null);throw d}))}processSegmentAgainstRoute(a,e,t,s,u){if(e.redirectTo||!eo(e,t,s,u))return(0,ke.of)(null);let d;if("**"===e.path){const l=s.length>0?$t(s).parameters:{},n=mm(t)+s.length,i=new Hr(s,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xw(e),Dn(e),e.component??e._loadedComponent??null,e,to(t),n,rl(e),n);d=(0,ke.of)({snapshot:i,consumedSegments:[],remainingSegments:[]})}else d=$o(t,e,s,a).pipe((0,pt.U)(({matched:l,consumedSegments:n,remainingSegments:i,parameters:o})=>{if(!l)return null;const c=mm(t)+n.length;return{snapshot:new Hr(n,o,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xw(e),Dn(e),e.component??e._loadedComponent??null,e,to(t),c,rl(e),c),consumedSegments:n,remainingSegments:i}}));return d.pipe((0,bt.w)(l=>{if(null===l)return(0,ke.of)(null);const{snapshot:n,consumedSegments:i,remainingSegments:o}=l;a=e._injector??a;const c=e._loadedInjector??a,h=function Aw(r){return r.children?r.children:r.loadChildren?r._loadedRoutes:[]}(e),{segmentGroup:m,slicedSegments:g}=el(t,i,o,h.filter(w=>void 0===w.redirectTo),this.relativeLinkResolution);if(0===g.length&&m.hasChildren())return this.processChildren(c,h,m).pipe((0,pt.U)(w=>null===w?null:[new tr(n,w)]));if(0===h.length&&0===g.length)return(0,ke.of)([new tr(n,[])]);const p=Dn(e)===u;return this.processSegment(c,h,m,g,p?Le:u).pipe((0,pt.U)(w=>null===w?null:[new tr(n,w)]))}))}}function fm(r){const a=r.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function nl(r){const a=[],e=new Set;for(const t of r){if(!fm(t)){a.push(t);continue}const s=a.find(u=>t.value.routeConfig===u.value.routeConfig);void 0!==s?(s.children.push(...t.children),e.add(s)):a.push(t)}for(const t of e){const s=nl(t.children);a.push(new tr(t.value,s))}return a.filter(t=>!e.has(t))}function to(r){let a=r;for(;a._sourceSegment;)a=a._sourceSegment;return a}function mm(r){let a=r,e=a._segmentIndexShift??0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift??0;return e-1}function xw(r){return r.data||{}}function rl(r){return r.resolve||{}}const Uc=Symbol("RouteTitle");function Cm(r){return"string"==typeof r.title||null===r.title}function dh(r){return(0,bt.w)(a=>{const e=r(a);return e?(0,Si.D)(e).pipe((0,pt.U)(()=>a)):(0,ke.of)(a)})}let wm=(()=>{class r{buildTitle(e){let t,s=e.root;for(;void 0!==s;)t=this.getResolvedTitleForRoute(s)??t,s=s.children.find(u=>u.outlet===Le);return t}getResolvedTitleForRoute(e){return e.data[Uc]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:function(){return(0,f.f3M)(ir)},providedIn:"root"}),r})(),ir=(()=>{class r extends wm{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(X))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Yo{}class Mw extends class Ew{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const uh=new f.OlP("",{providedIn:"root",factory:()=>({})}),hh=new f.OlP("ROUTES");let Nc=(()=>{class r{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,ke.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Ci(e.loadComponent()).pipe((0,jt.b)(u=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=u}),Et(()=>{this.componentLoaders.delete(e)})),s=new mc(t,()=>new He.x).pipe(Wa());return this.componentLoaders.set(e,s),s}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,ke.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const u=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,pt.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(t);let n,i,o=!1;Array.isArray(l)?i=l:(n=l.create(e).injector,i=er(n.get(hh,[],f.XFs.Self|f.XFs.Optional)));return{routes:i.map(Zu),injector:n}}),Et(()=>{this.childrenLoaders.delete(t)})),d=new mc(u,()=>new He.x).pipe(Wa());return this.childrenLoaders.set(t,d),d}loadModuleFactoryOrRoutes(e){return Ci(e()).pipe((0,Vt.z)(t=>t instanceof f.YKP||Array.isArray(t)?(0,ke.of)(t):(0,Si.D)(this.compiler.compileModuleAsync(t))))}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.zs3),f.LFG(f.Sil))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Hw{}class Rw{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function Pw(r){throw r}function Ux(r,a,e){return a.parse("/")}const Iw={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},al={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Rn(){const r=(0,f.f3M)(Lu),a=(0,f.f3M)(Rr),e=(0,f.f3M)(M.Ye),t=(0,f.f3M)(f.zs3),s=(0,f.f3M)(f.Sil),u=(0,f.f3M)(hh,{optional:!0})??[],d=(0,f.f3M)(uh,{optional:!0})??{},l=(0,f.f3M)(ir),n=(0,f.f3M)(wm,{optional:!0}),i=(0,f.f3M)(Hw,{optional:!0}),o=(0,f.f3M)(Yo,{optional:!0}),c=new Qt(null,r,a,e,t,s,er(u));return i&&(c.urlHandlingStrategy=i),o&&(c.routeReuseStrategy=o),c.titleStrategy=n??l,function vm(r,a){r.errorHandler&&(a.errorHandler=r.errorHandler),r.malformedUriErrorHandler&&(a.malformedUriErrorHandler=r.malformedUriErrorHandler),r.onSameUrlNavigation&&(a.onSameUrlNavigation=r.onSameUrlNavigation),r.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=r.paramsInheritanceStrategy),r.relativeLinkResolution&&(a.relativeLinkResolution=r.relativeLinkResolution),r.urlUpdateStrategy&&(a.urlUpdateStrategy=r.urlUpdateStrategy),r.canceledNavigationResolution&&(a.canceledNavigationResolution=r.canceledNavigationResolution)}(d,c),c}let Qt=(()=>{class r{constructor(e,t,s,u,d,l,n){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=s,this.location=u,this.config=n,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.x,this.errorHandler=Pw,this.malformedUriErrorHandler=Ux,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,ke.of)(void 0),this.urlHandlingStrategy=new Rw,this.routeReuseStrategy=new Mw,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=d.get(Nc),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new ew(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new Ec(h)),this.ngModule=d.get(f.h0i),this.console=d.get(f.c2e);const c=d.get(f.R0b);this.isNgZoneEnabled=c instanceof f.R0b&&f.R0b.isInAngularZone(),this.resetConfig(n),this.currentUrlTree=function Vu(){return new Qa(new gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Gu(this.currentUrlTree,this.rootComponentType),this.transitions=new ki({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,ii.h)(s=>0!==s.id),(0,pt.U)(s=>({...s,extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),(0,bt.w)(s=>{let u=!1,d=!1;return(0,ke.of)(s).pipe((0,jt.b)(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,bt.w)(l=>{const n=this.browserUrlTree.toString(),i=!this.navigated||l.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ph(l.source)&&(this.browserUrlTree=l.extractedUrl),(0,ke.of)(l).pipe((0,bt.w)(c=>{const h=this.transitions.getValue();return t.next(new xc(c.id,this.serializeUrl(c.extractedUrl),c.source,c.restoredState)),h!==this.transitions.getValue()?Ar.E:Promise.resolve(c)}),function um(r,a,e,t){return(0,bt.w)(s=>function vw(r,a,e,t,s){return new jc(r,a,e,t,s).apply()}(r,a,e,s.extractedUrl,t).pipe((0,pt.U)(u=>({...s,urlAfterRedirects:u}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,jt.b)(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},s.urlAfterRedirects=c.urlAfterRedirects}),function ch(r,a,e,t,s,u){return(0,Vt.z)(d=>function pm(r,a,e,t,s,u,d="emptyOnly",l="legacy"){return new Fx(r,a,e,t,s,d,l,u).recognize().pipe((0,bt.w)(n=>null===n?function jx(r){return new Fi.y(a=>a.error(r))}(new hm):(0,ke.of)(n)))}(r,a,e,d.urlAfterRedirects,t.serialize(d.urlAfterRedirects),t,s,u).pipe((0,pt.U)(l=>({...d,targetSnapshot:l}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,jt.b)(c=>{if(s.targetSnapshot=c.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!c.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);this.setBrowserUrl(m,c)}this.browserUrlTree=c.urlAfterRedirects}const h=new XC(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);t.next(h)}));if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:m,source:g,restoredState:p,extras:w}=l,R=new xc(h,this.serializeUrl(m),g,p);t.next(R);const J=Gu(m,this.rootComponentType).snapshot;return s={...l,targetSnapshot:J,urlAfterRedirects:m,extras:{...w,skipLocationChange:!1,replaceUrl:!1}},(0,ke.of)(s)}return this.rawUrlTree=l.rawUrl,l.resolve(null),Ar.E}),(0,jt.b)(l=>{const n=new Gs(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(n)}),(0,pt.U)(l=>s={...l,guards:sm(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),function fw(r,a){return(0,Vt.z)(e=>{const{targetSnapshot:t,currentSnapshot:s,guards:{canActivateChecks:u,canDeactivateChecks:d}}=e;return 0===d.length&&0===u.length?(0,ke.of)({...e,guardsResult:!0}):function li(r,a,e,t){return(0,Si.D)(r).pipe((0,Vt.z)(s=>function gw(r,a,e,t,s){const u=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!u||0===u.length)return(0,ke.of)(!0);const d=u.map(l=>{const n=Hc(l,a,s);return Ci(function Pc(r){return r&&Xa(r.canDeactivate)}(n)?n.canDeactivate(r,a,e,t):n(r,a,e,t)).pipe((0,Sn.P)())});return(0,ke.of)(d).pipe(Hn())}(s.component,s.route,e,a,t)),(0,Sn.P)(s=>!0!==s,!0))}(d,t,s,r).pipe((0,Vt.z)(l=>l&&function Rc(r){return"boolean"==typeof r}(l)?function lm(r,a,e,t){return(0,Si.D)(a).pipe((0,un.b)(s=>(0,na.z)(function nh(r,a){return null!==r&&a&&a(new Zf(r)),(0,ke.of)(!0)}(s.route.parent,t),function cm(r,a){return null!==r&&a&&a(new em(r)),(0,ke.of)(!0)}(s.route,t),function mw(r,a,e){const t=a[a.length-1],u=a.slice(0,a.length-1).reverse().map(d=>function cw(r){const a=r.routeConfig?r.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:r,guards:a}:null}(d)).filter(d=>null!==d).map(d=>dn(()=>{const l=d.guards.map(n=>{const i=Hc(n,d.node,e);return Ci(function ih(r){return r&&Xa(r.canActivateChild)}(i)?i.canActivateChild(t,r):i(t,r)).pipe((0,Sn.P)())});return(0,ke.of)(l).pipe(Hn())}));return(0,ke.of)(u).pipe(Hn())}(r,s.path,e),function Zs(r,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,ke.of)(!0);const s=t.map(u=>dn(()=>{const d=Hc(u,a,e);return Ci(function Ks(r){return r&&Xa(r.canActivate)}(d)?d.canActivate(a,r):d(a,r)).pipe((0,Sn.P)())}));return(0,ke.of)(s).pipe(Hn())}(r,s.route,e))),(0,Sn.P)(s=>!0!==s,!0))}(t,u,r,a):(0,ke.of)(l)),(0,pt.U)(l=>({...e,guardsResult:l})))})}(this.ngModule.injector,l=>this.triggerEvent(l)),(0,jt.b)(l=>{if(s.guardsResult=l.guardsResult,Sr(l.guardsResult))throw tw(0,l.guardsResult);const n=new Nu(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.triggerEvent(n)}),(0,ii.h)(l=>!!l.guardsResult||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",3),!1)),dh(l=>{if(l.guards.canActivateChecks.length)return(0,ke.of)(l).pipe((0,jt.b)(n=>{const i=new qu(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,bt.w)(n=>{let i=!1;return(0,ke.of)(n).pipe(function _m(r,a){return(0,Vt.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:s}}=e;if(!s.length)return(0,ke.of)(e);let u=0;return(0,Si.D)(s).pipe((0,un.b)(d=>function bm(r,a,e,t){const s=r.routeConfig,u=r._resolve;return void 0!==s?.title&&!Cm(s)&&(u[Uc]=s.title),function io(r,a,e,t){const s=function Tw(r){return[...Object.keys(r),...Object.getOwnPropertySymbols(r)]}(r);if(0===s.length)return(0,ke.of)({});const u={};return(0,Si.D)(s).pipe((0,Vt.z)(d=>function Sw(r,a,e,t){const s=Hc(r,a,t);return Ci(s.resolve?s.resolve(a,e):s(a,e))}(r[d],a,e,t).pipe((0,Sn.P)(),(0,jt.b)(l=>{u[d]=l}))),I(1),(0,Nt.h)(u),(0,Bt.K)(d=>Ic(d)?Ar.E:(0,en._)(d)))}(u,r,a,t).pipe((0,pt.U)(d=>(r._resolvedData=d,r.data=$u(r,e).resolve,s&&Cm(s)&&(r.data[Uc]=s.title),null)))}(d.route,t,r,a)),(0,jt.b)(()=>u++),I(1),(0,Vt.z)(d=>u===s.length?(0,ke.of)(e):Ar.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,jt.b)({next:()=>i=!0,complete:()=>{i||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",2))}}))}),(0,jt.b)(n=>{const i=new Sc(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}))}),dh(l=>{const n=i=>{const o=[];i.routeConfig?.loadComponent&&!i.routeConfig._loadedComponent&&o.push(this.configLoader.loadComponent(i.routeConfig).pipe((0,jt.b)(c=>{i.component=c}),(0,pt.U)(()=>{})));for(const c of i.children)o.push(...n(c));return o};return(0,Lo.a)(n(l.targetSnapshot.root)).pipe((0,ne.d)(),(0,qt.q)(1))}),dh(()=>this.afterPreactivation()),(0,pt.U)(l=>{const n=function Ix(r,a,e){const t=$s(r,a._root,e?e._root:void 0);return new nm(t,a)}(this.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return s={...l,targetRouterState:n}}),(0,jt.b)(l=>{this.currentUrlTree=l.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(l.urlAfterRedirects,l.rawUrl),this.routerState=l.targetRouterState,"deferred"===this.urlUpdateStrategy&&(l.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,l),this.browserUrlTree=l.urlAfterRedirects)}),((r,a,e)=>(0,pt.U)(t=>(new eh(a,t.targetRouterState,t.currentRouterState,e).activate(r),t)))(this.rootContexts,this.routeReuseStrategy,l=>this.triggerEvent(l)),(0,jt.b)({next(){u=!0},complete(){u=!0}}),Et(()=>{u||d||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),(0,Bt.K)(l=>{if(d=!0,rw(l)){nw(l)||(this.navigated=!0,this.restoreHistory(s,!0));const n=new Tc(s.id,this.serializeUrl(s.extractedUrl),l.message,l.cancellationCode);if(t.next(n),nw(l)){const i=this.urlHandlingStrategy.merge(l.url,this.rawUrlTree),o={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ph(s.source)};this.scheduleNavigation(i,"imperative",null,o,{resolve:s.resolve,reject:s.reject,promise:s.promise})}else s.resolve(!1)}else{this.restoreHistory(s,!0);const n=new En(s.id,this.serializeUrl(s.extractedUrl),l,s.targetSnapshot??void 0);t.next(n);try{s.resolve(this.errorHandler(l))}catch(i){s.reject(i)}}return Ar.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const s={replaceUrl:!0},u=e.state?.navigationId?e.state:null;if(u){const l={...u};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const d=this.parseUrl(e.url);this.scheduleNavigation(d,t,u,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Zu),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:s,queryParams:u,fragment:d,queryParamsHandling:l,preserveFragment:n}=t,i=s||this.routerState.root,o=n?this.currentUrlTree.fragment:d;let c=null;switch(l){case"merge":c={...this.currentUrlTree.queryParams,...u};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=u||null}return null!==c&&(c=this.removeEmptyProps(c)),KC(i,this.currentUrlTree,e,c,o??null)}navigateByUrl(e,t={skipLocationChange:!1}){const s=Sr(e)?e:this.parseUrl(e),u=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(u,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function Am(r){for(let a=0;a{const u=e[s];return null!=u&&(t[s]=u),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Mr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,s,u,d){if(this.disposed)return Promise.resolve(!1);let l,n,i;d?(l=d.resolve,n=d.reject,i=d.promise):i=new Promise((h,m)=>{l=h,n=m});const o=++this.navigationId;let c;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),c=s&&s.\u0275routerPageId?s.\u0275routerPageId:u.replaceUrl||u.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):c=0,this.setTransition({id:o,targetPageId:c,source:t,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:u,resolve:l,reject:n,promise:i,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),i.catch(h=>Promise.reject(h))}setBrowserUrl(e,t){const s=this.urlSerializer.serialize(e),u={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(s)||t.extras.replaceUrl?this.location.replaceState(s,"",u):this.location.go(s,"",u)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===s?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,s){const u=new Tc(e.id,this.serializeUrl(e.extractedUrl),t,s);this.triggerEvent(u),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return r.\u0275fac=function(e){f.$Z()},r.\u0275prov=f.Yz7({token:r,factory:function(){return Rn()},providedIn:"root"}),r})();function ph(r){return"imperative"!==r}let ol=(()=>{class r{constructor(e,t,s,u,d){this.router=e,this.route=t,this.tabIndexAttribute=s,this.renderer=u,this.el=d,this.commands=null,this.onChanges=new He.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,s=this.el.nativeElement;null!==e?t.setAttribute(s,"tabindex",e):t.removeAttribute(s,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,f.D6c)(this.skipLocationChange),replaceUrl:(0,f.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,f.D6c)(this.preserveFragment)})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Qt),f.Y36(Dr),f.$8M("tabindex"),f.Y36(f.Qsj),f.Y36(f.SBq))},r.\u0275dir=f.lG2({type:r,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&f.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[f.TTD]}),r})(),fh=(()=>{class r{constructor(e,t,s){this.router=e,this.route=t,this.locationStrategy=s,this.commands=null,this.href=null,this.onChanges=new He.x,this.subscription=e.events.subscribe(u=>{u instanceof Mr&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,s,u,d){if(0!==e||t||s||u||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const l={skipLocationChange:(0,f.D6c)(this.skipLocationChange),replaceUrl:(0,f.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,l),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,f.D6c)(this.preserveFragment)})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Qt),f.Y36(Dr),f.Y36(M.S$))},r.\u0275dir=f.lG2({type:r,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&f.NdJ("click",function(u){return t.onClick(u.button,u.ctrlKey,u.shiftKey,u.altKey,u.metaKey)}),2&e&&f.uIk("target",t.target)("href",t.href,f.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[f.TTD]}),r})();class zc{}let kw=(()=>{class r{constructor(e,t,s,u,d){this.router=e,this.injector=s,this.preloadingStrategy=u,this.loader=d}setUpPreloading(){this.subscription=this.router.events.pipe((0,ii.h)(e=>e instanceof Mr),(0,un.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const s=[];for(const u of t){u.providers&&!u._injector&&(u._injector=(0,f.MMx)(u.providers,e,`Route: ${u.path}`));const d=u._injector??e,l=u._loadedInjector??d;u.loadChildren&&!u._loadedRoutes&&void 0===u.canLoad||u.loadComponent&&!u._loadedComponent?s.push(this.preloadConfig(d,u)):(u.children||u._loadedRoutes)&&s.push(this.processRoutes(l,u.children??u._loadedRoutes))}return(0,Si.D)(s).pipe((0,Pt.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let s;s=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,ke.of)(null);const u=s.pipe((0,Vt.z)(d=>null===d?(0,ke.of)(void 0):(t._loadedRoutes=d.routes,t._loadedInjector=d.injector,this.processRoutes(d.injector??e,d.routes))));if(t.loadComponent&&!t._loadedComponent){const d=this.loader.loadComponent(t);return(0,Si.D)([u,d]).pipe((0,Pt.J)())}return u})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Qt),f.LFG(f.Sil),f.LFG(f.lqb),f.LFG(zc),f.LFG(Nc))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const Vw=new f.OlP("");let Sm=(()=>{class r{constructor(e,t,s={}){this.router=e,this.viewportScroller=t,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof xc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Mr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof im&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new im(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return r.\u0275fac=function(e){f.$Z()},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const Em=new f.OlP("ROUTER_FORROOT_GUARD"),Mm=new f.OlP(""),Dm=[M.Ye,{provide:Lu,useClass:Os},{provide:Qt,useFactory:Rn},Rr,{provide:Dr,useFactory:function Gc(r){return r.routerState.root},deps:[Qt]},Nc];function Hm(){return new f.PXZ("Router",Qt)}let Jo=(()=>{class r{constructor(e){}static forRoot(e,t){return{ngModule:r,providers:[Dm,[],Wc(e),{provide:Em,useFactory:Ow,deps:[[Qt,new f.FiY,new f.tp0]]},{provide:uh,useValue:t||{}},t?.useHash?{provide:M.S$,useClass:M.Do}:{provide:M.S$,useClass:M.b0},{provide:Vw,useFactory:()=>{const r=(0,f.f3M)(Qt),a=(0,f.f3M)(M.EM),e=(0,f.f3M)(uh);return e.scrollOffset&&a.setOffset(e.scrollOffset),new Sm(r,a,e)}},t?.preloadingStrategy?mh(t.preloadingStrategy):[],{provide:f.PXZ,multi:!0,useFactory:Hm},t?.initialNavigation?Lw(t):[],[{provide:Im,useFactory:Pm},{provide:f.tb,multi:!0,useExisting:Im}]]}}static forChild(e){return{ngModule:r,providers:[Wc(e)]}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Em,8))},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();function Ow(r){return"guarded"}function Wc(r){return[{provide:hh,multi:!0,useValue:r}]}function Pm(){const r=(0,f.f3M)(f.zs3);return a=>{const e=r.get(f.z2F);if(a!==e.components[0])return;const t=r.get(Qt),s=r.get(km);1===r.get(Vm)&&t.initialNavigation(),r.get(Mm,null,f.XFs.Optional)?.setUpPreloading(),r.get(Vw,null,f.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),s.next(),s.complete()}}const Im=new f.OlP("");function Lw(r){return["disabled"===r.initialNavigation?[{provide:f.ip1,multi:!0,useFactory:()=>{const r=(0,f.f3M)(Qt);return()=>{r.setUpLocationChangeListener()}}},{provide:Vm,useValue:2}]:[],"enabledBlocking"===r.initialNavigation?[{provide:Vm,useValue:0},{provide:f.ip1,multi:!0,deps:[f.zs3],useFactory:r=>{const a=r.get(M.V_,Promise.resolve(null));let e=!1;return()=>a.then(()=>new Promise(s=>{const u=r.get(Qt),d=r.get(km);(function t(s){r.get(Qt).events.pipe((0,ii.h)(d=>d instanceof Mr||d instanceof Tc||d instanceof En),(0,pt.U)(d=>d instanceof Mr||d instanceof Tc&&(0===d.code||1===d.code)&&null),(0,ii.h)(d=>null!==d),(0,qt.q)(1)).subscribe(()=>{s()})})(()=>{s(!0),e=!0}),u.afterPreactivation=()=>(s(!0),e||d.closed?(0,ke.of)(void 0):d),u.initialNavigation()}))}}]:[]]}const km=new f.OlP("",{factory:()=>new He.x}),Vm=new f.OlP("",{providedIn:"root",factory:()=>1});function mh(r){return[kw,{provide:Mm,useExisting:kw},{provide:zc,useExisting:r}]}let $c;try{$c=typeof Intl<"u"&&Intl.v8BreakIterator}catch{$c=!1}let no,Yt=(()=>{class r{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,M.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!$c)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.Lbi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const gh=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Qc(){if(no)return no;if("object"!=typeof document||!document)return no=new Set(gh),no;let r=document.createElement("input");return no=new Set(gh.filter(a=>(r.setAttribute("type",a),r.type===a))),no}let Yc,ll,fa,dl;function fn(r){return function Nw(){if(null==Yc&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Yc=!0}))}finally{Yc=Yc||!1}return Yc}()?r:!!r.capture}function ma(){if(null==fa){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return fa=!1,fa;if("scrollBehavior"in document.documentElement.style)fa=!0;else{const r=Element.prototype.scrollTo;fa=!!r&&!/\{\s*\[native code\]\s*\}/.test(r.toString())}}return fa}function cl(){if("object"!=typeof document||!document)return 0;if(null==ll){const r=document.createElement("div"),a=r.style;r.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",r.appendChild(e),document.body.appendChild(r),ll=0,0===r.scrollLeft&&(r.scrollLeft=1,ll=0===r.scrollLeft?1:2),r.remove()}return ll}function Kc(r){if(function Jc(){if(null==dl){const r=typeof document<"u"?document.head:null;dl=!(!r||!r.createShadowRoot&&!r.attachShadow)}return dl}()){const a=r.getRootNode?r.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function ul(){let r=typeof document<"u"&&document?document.activeElement:null;for(;r&&r.shadowRoot;){const a=r.shadowRoot.activeElement;if(a===r)break;r=a}return r}function Wi(r){return r.composedPath?r.composedPath()[0]:r.target}function Pr(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Pn(r,...a){return a.length?a.some(e=>r[e]):r.altKey||r.shiftKey||r.ctrlKey||r.metaKey}var nd=E(8372);function rd(r){return(0,ii.h)((a,e)=>r<=e)}function ng(r,a=me.y){return r=r??uy,(0,Ui.e)((e,t)=>{let s,u=!0;e.subscribe((0,tn.x)(t,d=>{const l=a(d);(u||!r(s,l))&&(u=!1,s=l,t.next(d))}))})}function uy(r,a){return r===a}var rg=E(5032);function _t(r){return(0,Ui.e)((a,e)=>{(0,Xn.Xf)(r).subscribe((0,tn.x)(e,()=>e.complete(),rg.Z)),!e.closed&&a.subscribe(e)})}function Ye(r){return null!=r&&"false"!=`${r}`}function wi(r,a=0){return function ag(r){return!isNaN(parseFloat(r))&&!isNaN(Number(r))}(r)?Number(r):a}function ad(r){return Array.isArray(r)?r:[r]}function pi(r){return null==r?"":"string"==typeof r?r:`${r}px`}function Gt(r){return r instanceof f.SBq?r.nativeElement:r}let wh=(()=>{class r{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),og=(()=>{class r{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Gt(e);return new Fi.y(s=>{const d=this._observeElement(t).subscribe(s);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.x,s=this._mutationObserverFactory.create(u=>t.next(u));s&&s.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:s,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:s}=this._observedElements.get(e);t&&t.disconnect(),s.complete(),this._observedElements.delete(e)}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(wh))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),od=(()=>{class r{constructor(e,t,s){this._contentObserver=e,this._elementRef=t,this._ngZone=s,this.event=new f.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ye(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=wi(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,nd.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(og),f.Y36(f.SBq),f.Y36(f.R0b))},r.\u0275dir=f.lG2({type:r,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),r})(),ao=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[wh]}),r})();const ml=new Set;let Vr,sg=(()=>{class r{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):lg}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function yh(r){if(!ml.has(r))try{Vr||(Vr=document.createElement("style"),Vr.setAttribute("type","text/css"),document.head.appendChild(Vr)),Vr.sheet&&(Vr.sheet.insertRule(`@media ${r} {body{ }}`,0),ml.add(r))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function lg(r){return{matches:"all"===r||""===r,media:r,addListener:()=>{},removeListener:()=>{}}}let sd=(()=>{class r{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Xo(ad(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){const s=Xo(ad(e)).map(d=>this._registerQuery(d).observable);let u=(0,Lo.a)(s);return u=(0,na.z)(u.pipe((0,qt.q)(1)),u.pipe(rd(1),(0,nd.b)(0))),u.pipe((0,pt.U)(d=>{const l={matches:!1,breakpoints:{}};return d.forEach(({matches:n,query:i})=>{l.matches=l.matches||n,l.breakpoints[i]=n}),l}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),u={observable:new Fi.y(d=>{const l=n=>this._zone.run(()=>d.next(n));return t.addListener(l),()=>{t.removeListener(l)}}).pipe(si(t),(0,pt.U)(({matches:d})=>({query:e,matches:d})),_t(this._destroySubject)),mql:t};return this._queries.set(e,u),u}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(sg),f.LFG(f.R0b))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function Xo(r){return r.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}function gl(r,a){return(r.getAttribute(a)||"").match(/\S+/g)||[]}const Ah="cdk-describedby-message",xh="cdk-describedby-host";let ld=0,dg=(()=>{class r{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ld++,this._document=e,this._id=(0,f.f3M)(f.AFp)+"-"+ld++}describe(e,t,s){if(!this._canBeDescribed(e,t))return;const u=cd(t,s);"string"!=typeof t?(ug(t,this._id),this._messageRegistry.set(u,{messageElement:t,referenceCount:0})):this._messageRegistry.has(u)||this._createMessageElement(t,s),this._isElementDescribedByMessage(e,u)||this._addMessageReference(e,u)}removeDescription(e,t,s){if(!t||!this._isElementNode(e))return;const u=cd(t,s);if(this._isElementDescribedByMessage(e,u)&&this._removeMessageReference(e,u),"string"==typeof t){const d=this._messageRegistry.get(u);d&&0===d.referenceCount&&this._deleteMessageElement(u)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${xh}="${this._id}"]`);for(let t=0;t0!=s.indexOf(Ah));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const s=this._messageRegistry.get(t);(function fy(r,a,e){const t=gl(r,a);t.some(s=>s.trim()==e.trim())||(t.push(e.trim()),r.setAttribute(a,t.join(" ")))})(e,"aria-describedby",s.messageElement.id),e.setAttribute(xh,this._id),s.referenceCount++}_removeMessageReference(e,t){const s=this._messageRegistry.get(t);s.referenceCount--,function my(r,a,e){const s=gl(r,a).filter(u=>u!=e.trim());s.length?r.setAttribute(a,s.join(" ")):r.removeAttribute(a)}(e,"aria-describedby",s.messageElement.id),e.removeAttribute(xh)}_isElementDescribedByMessage(e,t){const s=gl(e,"aria-describedby"),u=this._messageRegistry.get(t),d=u&&u.messageElement.id;return!!d&&-1!=s.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const s=null==t?"":`${t}`.trim(),u=e.getAttribute("aria-label");return!(!s||u&&u.trim()===s)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0),f.LFG(Yt))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function cd(r,a){return"string"==typeof r?`${a||""}/${r}`:r}function ug(r,a){r.id||(r.id=`${Ah}-${a}-${ld++}`)}class Th extends class gy{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.x,this._typeaheadSubscription=wt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.x,this.change=new He.x,a instanceof f.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const s=e.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,jt.b)(e=>this._pressedLetters.push(e)),(0,nd.b)(a),(0,ii.h)(()=>this._pressedLetters.length>0),(0,pt.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let s=1;s!a[u]||this._allowedModifierKeys.indexOf(u)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&s){this.setNextItemActive();break}return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&s){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&s){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}return;default:return void((s||Pn(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const s=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof f.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let dd=(()=>{class r{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Cy(r){return!!(r.offsetWidth||r.offsetHeight||"function"==typeof r.getClientRects&&r.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function by(r){try{return r.frameElement}catch{return null}}(function xy(r){return r.ownerDocument&&r.ownerDocument.defaultView||window}(e));if(t&&(-1===Sh(t)||!this.isVisible(t)))return!1;let s=e.nodeName.toLowerCase(),u=Sh(e);return e.hasAttribute("contenteditable")?-1!==u:!("iframe"===s||"object"===s||this._platform.WEBKIT&&this._platform.IOS&&!function pg(r){let a=r.nodeName.toLowerCase(),e="input"===a&&r.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===s?!!e.hasAttribute("controls")&&-1!==u:"video"===s?-1!==u&&(null!==u||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function fg(r){return!function hg(r){return function vy(r){return"input"==r.nodeName.toLowerCase()}(r)&&"hidden"==r.type}(r)&&(function wy(r){let a=r.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(r)||function yy(r){return function Ay(r){return"a"==r.nodeName.toLowerCase()}(r)&&r.hasAttribute("href")}(r)||r.hasAttribute("contenteditable")||ct(r))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function ct(r){if(!r.hasAttribute("tabindex")||void 0===r.tabIndex)return!1;let a=r.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function Sh(r){if(!ct(r))return null;const a=parseInt(r.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class Ty{constructor(a,e,t,s,u=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,u||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const s=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(s)return s}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,qt.q)(1)).subscribe(a)}}let ud=(()=>{class r{constructor(e,t,s){this._checker=e,this._ngZone=t,this._document=s}create(e,t=!1){return new Ty(e,this._checker,this._ngZone,this._document,t)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(dd),f.LFG(f.R0b),f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function _l(r){return 0===r.buttons||0===r.offsetX&&0===r.offsetY}function rr(r){const a=r.touches&&r.touches[0]||r.changedTouches&&r.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const My=new f.OlP("cdk-input-modality-detector-options"),Eh={ignoreKeys:[18,17,224,91,16]},es=fn({passive:!0,capture:!0});let zT=(()=>{class r{constructor(e,t,s,u){this._platform=e,this._mostRecentTarget=null,this._modality=new ki(null),this._lastTouchMs=0,this._onKeydown=d=>{this._options?.ignoreKeys?.some(l=>l===d.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Wi(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(_l(d)?"keyboard":"mouse"),this._mostRecentTarget=Wi(d))},this._onTouchstart=d=>{rr(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Wi(d))},this._options={...Eh,...u},this.modalityDetected=this._modality.pipe(rd(1)),this.modalityChanged=this.modalityDetected.pipe(ng()),e.isBrowser&&t.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,es),s.addEventListener("mousedown",this._onMousedown,es),s.addEventListener("touchstart",this._onTouchstart,es)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,es),document.removeEventListener("mousedown",this._onMousedown,es),document.removeEventListener("touchstart",this._onTouchstart,es))}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt),f.LFG(f.R0b),f.LFG(M.K0),f.LFG(My,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Hy=new f.OlP("cdk-focus-monitor-default-options"),Br=fn({passive:!0,capture:!0});let In=(()=>{class r{constructor(e,t,s,u,d){this._ngZone=e,this._platform=t,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new He.x,this._rootNodeFocusAndBlurListener=l=>{for(let i=Wi(l);i;i=i.parentElement)"focus"===l.type?this._onFocus(l,i):this._onBlur(l,i)},this._document=u,this._detectionMode=d?.detectionMode||0}monitor(e,t=!1){const s=Gt(e);if(!this._platform.isBrowser||1!==s.nodeType)return(0,ke.of)(null);const u=Kc(s)||this._getDocument(),d=this._elementInfo.get(s);if(d)return t&&(d.checkChildren=!0),d.subject;const l={checkChildren:t,subject:new He.x,rootNode:u};return this._elementInfo.set(s,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(e){const t=Gt(e),s=this._elementInfo.get(t);s&&(s.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(s))}focusVia(e,t,s){const u=Gt(e);u===this._getDocument().activeElement?this._getClosestElementsInfo(u).forEach(([l,n])=>this._originChanged(l,t,n)):(this._setOrigin(t),"function"==typeof u.focus&&u.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const s=this._elementInfo.get(t),u=Wi(e);!s||!s.checkChildren&&t!==u||this._originChanged(t,this._getFocusOrigin(u),s)}_onBlur(e,t){const s=this._elementInfo.get(t);!s||s.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(s,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,s=this._rootNodeFocusListenerCount.get(t)||0;s||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Br),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Br)}),this._rootNodeFocusListenerCount.set(t,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(_t(this._stopInputModalityDetector)).subscribe(u=>{this._setOrigin(u,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const s=this._rootNodeFocusListenerCount.get(t);s>1?this._rootNodeFocusListenerCount.set(t,s-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Br),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Br),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,s){this._setClasses(e,t),this._emitOrigin(s,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((s,u)=>{(u===e||s.checkChildren&&u.contains(e))&&t.push([u,s])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:s}=this._inputModalityDetector;if("mouse"!==s||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const u=e.labels;if(u)for(let d=0;d{class r{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,f.f3M)(sd).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,s=t&&t.getComputedStyle?t.getComputedStyle(e):null,u=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),u){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(pd,bl,mg),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(pd,bl):2===t&&e.add(pd,mg)}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt),f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Cl=(()=>{class r{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(gg))},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[ao]}),r})();const Py=new f.OlP("cdk-dir-doc",{providedIn:"root",factory:function Iy(){return(0,f.f3M)(M.K0)}}),ky=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let mn=(()=>{class r{constructor(e){if(this.value="ltr",this.change=new f.vpe,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function _g(r){const a=r?.toLowerCase()||"";return"auto"===a&&typeof navigator<"u"&&navigator?.language?ky.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Py,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),oo=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();const wg=new f.OlP("mat-sanity-checks",{providedIn:"root",factory:function kn(){return!0}});let $e=(()=>{class r{constructor(e,t,s){this._sanityChecks=t,this._document=s,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Pr()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(gg),f.LFG(wg,8),f.LFG(M.K0))},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[oo,oo]}),r})();function so(r){return class extends r{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=Ye(a)}}}function ar(r,a){return class extends r{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function lo(r){return class extends r{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=Ye(a)}}}function By(r){return class extends r{constructor(...a){super(...a),this.errorState=!1}updateErrorState(){const a=this.errorState,u=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);u!==a&&(this.errorState=u,this.stateChanges.next())}}}const gd=new f.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Hh(){return(0,f.f3M)(f.soG)}});class rn{constructor(){this._localeChanges=new He.x,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),s=this.isValid(e);return t&&s?!this.compareDate(a,e):t==s}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const is=new f.OlP("mat-date-formats"),QT=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Rh(r,a){const e=Array(r);for(let t=0;t{class r extends rn{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Rh(12,s=>this._format(t,new Date(2017,s,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Rh(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Rh(7,s=>this._format(t,new Date(2017,0,s+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,s){let u=this._createDateWithOverflow(e,t,s);return u.getMonth(),u}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const s=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(s,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let s=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(s)!=((this.getMonth(e)+t)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(QT.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,s){const u=new Date;return u.setFullYear(e,t,s),u.setHours(0,0,0,0),u}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const s=new Date;return s.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),s.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(s)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(gd,8),f.LFG(Yt))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const Oy={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Ly=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[{provide:rn,useClass:Ag}]}),r})(),Ph=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[{provide:is,useValue:Oy}],imports:[Ly]}),r})(),yl=(()=>{class r{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),_d=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})();class Ih{constructor(a,e,t,s=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const jy={enterDuration:225,exitDuration:150},Tg=fn({passive:!0}),Fy=["mousedown","touchstart"],Uy=["mouseup","mouseleave","touchend","touchcancel"];class Ny{constructor(a,e,t,s){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=Gt(t))}fadeInRipple(a,e,t={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),u={...jy,...t.animation};t.centered&&(a=s.left+s.width/2,e=s.top+s.height/2);const d=t.radius||function KT(r,a,e){const t=Math.max(Math.abs(r-e.left),Math.abs(r-e.right)),s=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+s*s)}(a,e,s),l=a-s.left,n=e-s.top,i=u.enterDuration,o=document.createElement("div");o.classList.add("mat-ripple-element"),o.style.left=l-d+"px",o.style.top=n-d+"px",o.style.height=2*d+"px",o.style.width=2*d+"px",null!=t.color&&(o.style.backgroundColor=t.color),o.style.transitionDuration=`${i}ms`,this._containerElement.appendChild(o);const c=window.getComputedStyle(o),m=c.transitionDuration,g="none"===c.transitionProperty||"0s"===m||"0s, 0s"===m,p=new Ih(this,o,t,g);o.style.transform="scale3d(1, 1, 1)",p.state=0,t.persistent||(this._mostRecentTransientRipple=p);let w=null;return!g&&(i||u.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const R=()=>this._finishRippleTransition(p),J=()=>this._destroyRipple(p);o.addEventListener("transitionend",R),o.addEventListener("transitioncancel",J),w={onTransitionEnd:R,onTransitionCancel:J}}),this._activeRipples.set(p,w),(g||!i)&&this._finishRippleTransition(p),p}fadeOutRipple(a){if(2===a.state||3===a.state)return;const e=a.element,t={...jy,...a.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=2,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=Gt(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Fy))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Uy),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)}_startFadeOutTransition(a){const e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=1,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){const e=this._activeRipples.get(a)??null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=3,null!==e&&(a.element.removeEventListener("transitionend",e.onTransitionEnd),a.element.removeEventListener("transitioncancel",e.onTransitionCancel)),a.element.remove()}_onMousedown(a){const e=_l(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,Tg)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Fy.forEach(a=>{this._triggerElement.removeEventListener(a,this,Tg)}),this._pointerUpEventsRegistered&&Uy.forEach(a=>{this._triggerElement.removeEventListener(a,this,Tg)}))}}const qy=new f.OlP("mat-ripple-global-options");let co=(()=>{class r{constructor(e,t,s,u,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=u||{},this._rippleRenderer=new Ny(this,t,e,s)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,s){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...s}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(Yt),f.Y36(qy,8),f.Y36(f.QbO,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&f.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),r})(),Vn=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})(),vl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e]}),r})(),kh=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Vn,M.ez,$e,vl]}),r})();const Qy=["mat-button",""],bd=["*"],rs=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Cd=ar(so(lo(class{constructor(r){this._elementRef=r}})));let Mi=(()=>{class r extends Cd{constructor(e,t,s){super(e),this._focusMonitor=t,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const u of rs)this._hasHostAttributes(u)&&this._getHostElement().classList.add(u);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(In),f.Y36(f.QbO,8))},r.\u0275cmp=f.Xpm({type:r,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&f.Gf(co,5),2&e){let s;f.iGM(s=f.CRH())&&(t.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(f.uIk("disabled",t.disabled||null),f.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[f.qOj],attrs:Qy,ngContentSelectors:bd,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(f.F$t(),f.TgZ(0,"span",0),f.Hsn(1),f.qZA(),f._UZ(2,"span",1)(3,"span",2)),2&e&&(f.xp6(2),f.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),f.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[co],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),r})(),Bn=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Vn,$e,$e]}),r})();var Dg=E(1144),On=E(576),wd=E(3268);const Hg=["addListener","removeListener"],Bh=["addEventListener","removeEventListener"],Yy=["on","off"];function xl(r,a,e,t){if((0,On.m)(e)&&(t=e,e=void 0),t)return xl(r,a,e).pipe((0,wd.Z)(t));const[s,u]=function Ig(r){return(0,On.m)(r.addEventListener)&&(0,On.m)(r.removeEventListener)}(r)?Bh.map(d=>l=>r[d](a,l,e)):function Pg(r){return(0,On.m)(r.addListener)&&(0,On.m)(r.removeListener)}(r)?Hg.map(Rg(r,a)):function Jy(r){return(0,On.m)(r.on)&&(0,On.m)(r.off)}(r)?Yy.map(Rg(r,a)):[];if(!s&&(0,Dg.z)(r))return(0,Vt.z)(d=>xl(d,a,e))((0,Xn.Xf)(r));if(!s)throw new TypeError("Invalid event target");return new Fi.y(d=>{const l=(...n)=>d.next(1u(l)})}function Rg(r,a){return e=>t=>r[e](a,t)}var Oh=E(4408);const Tl={schedule(r){let a=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=Tl;t&&(a=t.requestAnimationFrame,e=t.cancelAnimationFrame);const s=a(u=>{e=void 0,r(u)});return new wt.w0(()=>e?.(s))},requestAnimationFrame(...r){const{delegate:a}=Tl;return(a?.requestAnimationFrame||requestAnimationFrame)(...r)},cancelAnimationFrame(...r){const{delegate:a}=Tl;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...r)},delegate:void 0};var Lh=E(7565);const Zy=new class Ky extends Lh.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;a=a||t.shift();do{if(s=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,s){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw s}}}(class an extends Oh.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=Tl.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(s=>s.id===e)||(Tl.cancelAnimationFrame(e),a._scheduled=void 0)}});let yd,jh=1;const vd={};function kg(r){return r in vd&&(delete vd[r],!0)}const Xy={setImmediate(r){const a=jh++;return vd[a]=!0,yd||(yd=Promise.resolve()),yd.then(()=>kg(a)&&r()),a},clearImmediate(r){kg(r)}},{setImmediate:tv,clearImmediate:Vg}=Xy,Ad={setImmediate(...r){const{delegate:a}=Ad;return(a?.setImmediate||tv)(...r)},clearImmediate(r){const{delegate:a}=Ad;return(a?.clearImmediate||Vg)(r)},delegate:void 0},xd=new class Bg extends Lh.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;a=a||t.shift();do{if(s=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,s){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw s}}}(class iv extends Oh.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=Ad.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(s=>s.id===e)||(Ad.clearImmediate(e),a._scheduled=void 0)}});function ri(r){return!!r&&(r instanceof Fi.y||(0,On.m)(r.lift)&&(0,On.m)(r.subscribe))}var Td=E(4986),Fh=E(2805);function Uh(r,a=Td.z){return function nv(r){return(0,Ui.e)((a,e)=>{let t=!1,s=null,u=null,d=!1;const l=()=>{if(u?.unsubscribe(),u=null,t){t=!1;const i=s;s=null,e.next(i)}d&&e.complete()},n=()=>{u=null,d&&e.complete()};a.subscribe((0,tn.x)(e,i=>{t=!0,s=i,u||(0,Xn.Xf)(r(i)).subscribe(u=(0,tn.x)(e,l,n))},()=>{d=!0,(!t||!u||u.closed)&&e.complete()}))})}(()=>(0,Fh.H)(r,a))}var rv=E(6063);class av extends He.x{constructor(a=1/0,e=1/0,t=rv.l){super(),this._bufferSize=a,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,e)}next(a){const{isStopped:e,_buffer:t,_infiniteTimeWindow:s,_timestampProvider:u,_windowTime:d}=this;e||(t.push(a),!s&&t.push(u.now()+d)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(a),{_infiniteTimeWindow:t,_buffer:s}=this,u=s.slice();for(let d=0;dnew av(t,a,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}class Sd extends class ov{}{constructor(a){super(),this._data=a}connect(){return ri(this._data)?this._data:(0,ke.of)(this._data)}disconnect(){}}class Nh{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(a,e,t,s,u){a.forEachOperation((d,l,n)=>{let i,o;null==d.previousIndex?(i=this._insertView(()=>t(d,l,n),n,e,s(d)),o=i?1:0):null==n?(this._detachAndCacheView(l,e),o=3):(i=this._moveView(l,n,e,s(d)),o=2),u&&u({context:i?.context,operation:o,record:d})})}detach(){for(const a of this._viewCache)a.destroy();this._viewCache=[]}_insertView(a,e,t,s){const u=this._insertViewFromCache(e,t);if(u)return void(u.context.$implicit=s);const d=a();return t.createEmbeddedView(d.templateRef,d.context,d.index)}_detachAndCacheView(a,e){const t=e.detach(a);this._maybeCacheView(t,e)}_moveView(a,e,t,s){const u=t.get(a);return t.move(u,e),u.context.$implicit=s,u}_maybeCacheView(a,e){if(this._viewCache.length0?u/this._itemSize:0;if(e.end>s){const n=Math.ceil(t/this._itemSize),i=Math.max(0,Math.min(d,s-n));d!=i&&(d=i,u=i*this._itemSize,e.start=Math.floor(d)),e.end=Math.max(0,Math.min(s,e.start+n))}const l=u-e.start*this._itemSize;if(l0&&(e.end=Math.min(s,e.end+i),e.start=Math.max(0,Math.floor(d-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(d))}}function Ug(r){return r._scrollStrategy}let Ng=(()=>{class r{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new lv(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=wi(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=wi(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=wi(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[f._Bn([{provide:sv,useFactory:Ug,deps:[(0,f.Gpc)(()=>r)]}]),f.TTD]}),r})(),os=(()=>{class r{constructor(e,t,s){this._ngZone=e,this._platform=t,this._scrolled=new He.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Fi.y(t=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(Uh(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,ke.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const s=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,ii.h)(u=>!u||s.indexOf(u)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((s,u)=>{this._scrollableContainsElement(u,e)&&t.push(u)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let s=Gt(t),u=e.getElementRef().nativeElement;do{if(s==u)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>xl(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.R0b),f.LFG(Yt),f.LFG(M.K0,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Dd=(()=>{class r{constructor(e,t,s,u){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=s,this.dir=u,this._destroyed=new He.x,this._elementScrolled=new Fi.y(d=>this.ngZone.runOutsideAngular(()=>xl(this.elementRef.nativeElement,"scroll").pipe(_t(this._destroyed)).subscribe(d)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),s&&0!=cl()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==cl()?e.left=e.right:1==cl()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;ma()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",s="right",u=this.elementRef.nativeElement;if("top"==e)return u.scrollTop;if("bottom"==e)return u.scrollHeight-u.clientHeight-u.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?s:t:"end"==e&&(e=d?t:s),d&&2==cl()?e==t?u.scrollWidth-u.clientWidth-u.scrollLeft:u.scrollLeft:d&&1==cl()?e==t?u.scrollLeft+u.scrollWidth-u.clientWidth:-u.scrollLeft:e==t?u.scrollLeft:u.scrollWidth-u.clientWidth-u.scrollLeft}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(os),f.Y36(f.R0b),f.Y36(mn,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),r})(),Lr=(()=>{class r{constructor(e,t,s){this._platform=e,this._change=new He.x,this._changeListener=u=>{this._change.next(u)},this._document=s,t.runOutsideAngular(()=>{if(e.isBrowser){const u=this._getWindow();u.addEventListener("resize",this._changeListener),u.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+t,height:s,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),s=e.documentElement,u=s.getBoundingClientRect();return{top:-u.top||e.body.scrollTop||t.scrollY||s.scrollTop||0,left:-u.left||e.body.scrollLeft||t.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Uh(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt),f.LFG(f.R0b),f.LFG(M.K0,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Hd=new f.OlP("VIRTUAL_SCROLLABLE");let ss=(()=>{class r extends Dd{constructor(e,t,s,u){super(e,t,s,u)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(os),f.Y36(f.R0b),f.Y36(mn,8))},r.\u0275dir=f.lG2({type:r,features:[f.qOj]}),r})();const zh=typeof requestAnimationFrame<"u"?Zy:xd;let Gh=(()=>{class r extends ss{constructor(e,t,s,u,d,l,n,i){super(e,l,s,d),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=u,this.scrollable=i,this._detachedSubject=new He.x,this._renderedRangeSubject=new He.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new Fi.y(o=>this._scrollStrategy.scrolledIndexChange.subscribe(c=>Promise.resolve().then(()=>this.ngZone.run(()=>o.next(c))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=wt.w0.EMPTY,this._viewportChanges=n.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Ye(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(si(null),Uh(0,zh)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(_t(this._detachedSubject)).subscribe(t=>{const s=t.length;s!==this._dataLength&&(this._dataLength=s,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function cv(r,a){return r.start==a.start&&r.end==a.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const u="horizontal"==this.orientation,d=u?"X":"Y";let n=`translate${d}(${Number((u&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(n+=` translate${d}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=n&&(this._renderedContentTransform=n,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const s={behavior:t};"horizontal"===this.orientation?s.start=e:s.top=e,this.scrollable.scrollTo(s)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?s=>super.measureScrollOffset(s):s=>this.scrollable.measureScrollOffset(s),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const s="left",u="right",d="rtl"==this.dir?.value;t="start"==e?d?u:s:"end"==e?d?s:u:e||("horizontal"===this.orientation?"left":"top");const l=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-l}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(f.R0b),f.Y36(sv,8),f.Y36(mn,8),f.Y36(os),f.Y36(Lr),f.Y36(Hd,8))},r.\u0275cmp=f.Xpm({type:r,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&f.Gf(aS,7),2&e){let s;f.iGM(s=f.CRH())&&(t._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&f.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[f._Bn([{provide:Dd,useFactory:(a,e)=>a||e,deps:[ss,r]}]),f.qOj],ngContentSelectors:qh,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(f.F$t(),f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA(),f._UZ(3,"div",2)),2&e&&(f.xp6(3),f.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),r})();function zg(r,a,e){if(!e.getBoundingClientRect)return 0;const s=e.getBoundingClientRect();return"horizontal"===r?"start"===a?s.left:s.right:"start"===a?s.top:s.bottom}let dv=(()=>{class r{constructor(e,t,s,u,d,l){this._viewContainerRef=e,this._template=t,this._differs=s,this._viewRepeater=u,this._viewport=d,this.viewChange=new He.x,this._dataSourceChanges=new He.x,this.dataStream=this._dataSourceChanges.pipe(si(null),function Og(){return(0,Ui.e)((r,a)=>{let e,t=!1;r.subscribe((0,tn.x)(a,s=>{const u=e;e=s,t&&a.next([u,s]),t=!0}))})}(),(0,bt.w)(([n,i])=>this._changeDataSource(n,i)),Sl(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new He.x,this.dataStream.subscribe(n=>{this._data=n,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(_t(this._destroyed)).subscribe(n=>{this._renderedRange=n,this.viewChange.observers.length&&l.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,function El(r){return r&&"function"==typeof r.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new Sd(ri(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,s)=>e(t+(this._renderedRange?this._renderedRange.start:0),s):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=wi(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const s=e.start-this._renderedRange.start,u=e.end-e.start;let d,l;for(let n=0;n-1;n--){const i=this._viewContainerRef.get(n+s);if(i&&i.rootNodes.length){l=i.rootNodes[i.rootNodes.length-1];break}}return d&&l?zg(t,"end",l)-zg(t,"start",d):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,ke.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const s=this._viewContainerRef.get(t);s.context.index=this._renderedRange.start+t,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(u,d,l)=>this._getEmbeddedViewArgs(u,l),u=>u.item),e.forEachIdentityChange(u=>{this._viewContainerRef.get(u.currentIndex).context.$implicit=u.item});const t=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const u=this._viewContainerRef.get(s);u.context.index=this._renderedRange.start+s,u.context.count=t,this._updateComputedContextProperties(u.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.s_b),f.Y36(f.Rgc),f.Y36(f.ZZ4),f.Y36(as),f.Y36(Gh,4),f.Y36(f.R0b))},r.\u0275dir=f.lG2({type:r,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[f._Bn([{provide:as,useClass:Nh}])]}),r})(),Ca=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),ls=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[oo,Ca,oo,Ca]}),r})();class Pd{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class cs extends Pd{constructor(a,e,t,s){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=s}}class Wh extends Pd{constructor(a,e,t,s){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=s}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class $h extends Pd{constructor(a){super(),this.element=a instanceof f.SBq?a.nativeElement:a}}class Qh{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof cs?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof Wh?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof $h?(this._attachedPortal=a,this.attachDomPortal(a)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class uv extends Qh{constructor(a,e,t,s,u){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=s,this.attachDomPortal=d=>{const l=d.element,n=this._document.createComment("dom-portal");l.parentNode.insertBefore(n,l),this.outletElement.appendChild(l),this._attachedPortal=d,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(l,n)})},this._document=u}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let s;return a.viewContainerRef?(s=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=t.create(a.injector||this._defaultInjector||f.zs3.NULL),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=a,s}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(s=>this.outletElement.appendChild(s)),t.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(t);-1!==s&&e.remove(s)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let ds=(()=>{class r extends Qh{constructor(e,t,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new f.vpe,this.attachDomPortal=u=>{const d=u.element,l=this._document.createComment("dom-portal");u.setAttachedHost(this),d.parentNode.insertBefore(l,d),this._getRootNode().appendChild(d),this._attachedPortal=u,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(d,l)})},this._document=s}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,u=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(u,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]),super.setDisposeFn(()=>d.destroy()),this._attachedPortal=e,this._attachedRef=d,this.attached.emit(d),d}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f._Vd),f.Y36(f.s_b),f.Y36(M.K0))},r.\u0275dir=f.lG2({type:r,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[f.qOj]}),r})(),ho=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();var Ln=E(6451);const Gg=ma();class Yh{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=pi(-this._previousScrollPosition.left),a.style.top=pi(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,s=this._document.body.style,u=t.scrollBehavior||"",d=s.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),Gg&&(t.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Gg&&(t.scrollBehavior=u,s.scrollBehavior=d)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class or{constructor(a,e,t,s){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class hs{enable(){}disable(){}attach(){}}function yi(r,a){return a.some(e=>r.bottome.bottom||r.righte.right)}function wa(r,a){return a.some(e=>r.tope.bottom||r.lefte.right)}class kd{constructor(a,e,t,s){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=s,this._scrollSubscription=null}attach(a){this._overlayRef=a}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:s}=this._viewportRuler.getViewportSize();yi(e,[{width:t,height:s,bottom:s,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let gn=(()=>{class r{constructor(e,t,s,u){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=s,this.noop=()=>new hs,this.close=d=>new or(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new Yh(this._viewportRuler,this._document),this.reposition=d=>new kd(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=u}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(os),f.LFG(Lr),f.LFG(f.R0b),f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Ml{constructor(a){if(this.scrollStrategy=new hs,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class ps{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}let po=(()=>{class r{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),fs=(()=>{class r extends po{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=s=>{const u=this._attachedOverlays;for(let d=u.length-1;d>-1;d--)if(u[d]._keydownEvents.observers.length>0){const l=u[d]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0),f.LFG(f.R0b,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ms=(()=>{class r extends po{constructor(e,t,s){super(e),this._platform=t,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=u=>{this._pointerDownEventTarget=Wi(u)},this._clickListener=u=>{const d=Wi(u),l="click"===u.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:d;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const o=n[i];if(o._outsidePointerEvents.observers.length<1||!o.hasAttached())continue;if(o.overlayElement.contains(d)||o.overlayElement.contains(l))break;const c=o._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(u)):c.next(u)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0),f.LFG(Yt),f.LFG(f.R0b,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),jr=(()=>{class r{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Pr()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let u=0;uthis._backdropClick.next(c),this._backdropTransitionendHandler=c=>{this._disposeBackdrop(c.target)},this._keydownEvents=new He.x,this._outsidePointerEvents=new He.x,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,qt.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){const a=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,a&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config={...this._config,...a},this._updateElementSize()}setDirection(a){this._config={...this._config,direction:a},this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=pi(this._config.width),a.height=pi(this._config.height),a.minWidth=pi(this._config.minWidth),a.minHeight=pi(this._config.minHeight),a.maxWidth=pi(this._config.maxWidth),a.maxHeight=pi(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(a){if(this._animationsDisabled)return void this._disposeBackdrop(a);a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",this._backdropTransitionendHandler)}),a.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(a)},500))}}_toggleClasses(a,e,t){const s=ad(e||[]).filter(u=>!!u);s.length&&(t?a.classList.add(...s):a.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(_t((0,Ln.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Jh="cdk-overlay-connected-position-bounding-box",Wg=/([A-Za-z%]+)$/;class $g{constructor(a,e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new He.x,this._resizeSubscription=wt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(a)}get positions(){return this._preferredPositions}attach(a){this._validatePositions(),a.hostElement.classList.add(Jh),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,s=this._containerRect,u=[];let d;for(let l of this._preferredPositions){let n=this._getOriginPoint(a,s,l),i=this._getOverlayPoint(n,e,l),o=this._getOverlayFit(i,e,t,l);if(o.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,n);this._canFitWithFlexibleDimensions(o,i,t)?u.push({position:l,origin:n,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(n,l)}):(!d||d.overlayFit.visibleArean&&(n=o,l=i)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(d.position,d.originPoint);this._applyPosition(d.position,d.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ya(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Jh),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let s,u;if("center"==t.originX)s=a.left+a.width/2;else{const d=this._isRtl()?a.right:a.left,l=this._isRtl()?a.left:a.right;s="start"==t.originX?d:l}return e.left<0&&(s-=e.left),u="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(u-=e.top),{x:s,y:u}}_getOverlayPoint(a,e,t){let s,u;return s="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,u="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+s,y:a.y+u}}_getOverlayFit(a,e,t,s){const u=Zh(e);let{x:d,y:l}=a,n=this._getOffset(s,"x"),i=this._getOffset(s,"y");n&&(d+=n),i&&(l+=i);let h=0-l,m=l+u.height-t.height,g=this._subtractOverflows(u.width,0-d,d+u.width-t.width),p=this._subtractOverflows(u.height,h,m),w=g*p;return{visibleArea:w,isCompletelyWithinViewport:u.width*u.height===w,fitsInViewportVertically:p===u.height,fitsInViewportHorizontally:g==u.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const s=t.bottom-e.y,u=t.right-e.x,d=Kh(this._overlayRef.getConfig().minHeight),l=Kh(this._overlayRef.getConfig().minWidth),i=a.fitsInViewportHorizontally||null!=l&&l<=u;return(a.fitsInViewportVertically||null!=d&&d<=s)&&i}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const s=Zh(e),u=this._viewportRect,d=Math.max(a.x+s.width-u.width,0),l=Math.max(a.y+s.height-u.height,0),n=Math.max(u.top-t.top-a.y,0),i=Math.max(u.left-t.left-a.x,0);let o=0,c=0;return o=s.width<=u.width?i||-d:a.xg&&!this._isInitialRender&&!this._growAfterOpen&&(d=a.y-g/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)h=t.width-a.x+this._viewportMargin,o=a.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)c=a.x,o=t.right-a.x;else{const m=Math.min(t.right-a.x+t.left,a.x),g=this._lastBoundingBoxSize.width;o=2*m,c=a.x-m,o>g&&!this._isInitialRender&&!this._growAfterOpen&&(c=a.x-g/2)}return{top:d,left:c,bottom:l,right:h,width:o,height:u}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const u=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;s.height=pi(t.height),s.top=pi(t.top),s.bottom=pi(t.bottom),s.width=pi(t.width),s.left=pi(t.left),s.right=pi(t.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",u&&(s.maxHeight=pi(u)),d&&(s.maxWidth=pi(d))}this._lastBoundingBoxSize=t,ya(this._boundingBox.style,s)}_resetBoundingBoxStyles(){ya(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ya(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},s=this._hasExactPosition(),u=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(s){const o=this._viewportRuler.getViewportScrollPosition();ya(t,this._getExactOverlayY(e,a,o)),ya(t,this._getExactOverlayX(e,a,o))}else t.position="static";let l="",n=this._getOffset(e,"x"),i=this._getOffset(e,"y");n&&(l+=`translateX(${n}px) `),i&&(l+=`translateY(${i}px)`),t.transform=l.trim(),d.maxHeight&&(s?t.maxHeight=pi(d.maxHeight):u&&(t.maxHeight="")),d.maxWidth&&(s?t.maxWidth=pi(d.maxWidth):u&&(t.maxWidth="")),ya(this._pane.style,t)}_getExactOverlayY(a,e,t){let s={top:"",bottom:""},u=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),"bottom"===a.overlayY?s.bottom=this._document.documentElement.clientHeight-(u.y+this._overlayRect.height)+"px":s.top=pi(u.y),s}_getExactOverlayX(a,e,t){let d,s={left:"",right:""},u=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),d=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===d?s.right=this._document.documentElement.clientWidth-(u.x+this._overlayRect.width)+"px":s.left=pi(u.x),s}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:wa(a,t),isOriginOutsideView:yi(a,t),isOverlayClipped:wa(e,t),isOverlayOutsideView:yi(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,s)=>t-Math.max(s,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?a.offsetX??this._offsetX:a.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&ad(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof f.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function ya(r,a){for(let e in a)a.hasOwnProperty(e)&&(r[e]=a[e]);return r}function Kh(r){if("number"!=typeof r&&null!=r){const[a,e]=r.split(Wg);return e&&"px"!==e?null:parseFloat(a)}return r||null}function Zh(r){return{top:Math.floor(r.top),right:Math.floor(r.right),bottom:Math.floor(r.bottom),left:Math.floor(r.left),width:Math.floor(r.width),height:Math.floor(r.height)}}const Qg="cdk-global-overlay-wrapper";class fv{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(Qg),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:s,height:u,maxWidth:d,maxHeight:l}=t,n=!("100%"!==s&&"100vw"!==s||d&&"100%"!==d&&"100vw"!==d),i=!("100%"!==u&&"100vh"!==u||l&&"100%"!==l&&"100vh"!==l),o=this._xPosition,c=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let m="",g="",p="";n?p="flex-start":"center"===o?(p="center",h?g=c:m=c):h?"left"===o||"end"===o?(p="flex-end",m=c):("right"===o||"start"===o)&&(p="flex-start",g=c):"left"===o||"start"===o?(p="flex-start",m=c):("right"===o||"end"===o)&&(p="flex-end",g=c),a.position=this._cssPosition,a.marginLeft=n?"0":m,a.marginTop=i?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=n?"0":g,e.justifyContent=p,e.alignItems=i?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Qg),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let mv=(()=>{class r{constructor(e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u}global(){return new fv}flexibleConnectedTo(e){return new $g(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Lr),f.LFG(M.K0),f.LFG(Yt),f.LFG(jr))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Yg=0,_n=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c,h,m){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=s,this._positionBuilder=u,this._keyboardDispatcher=d,this._injector=l,this._ngZone=n,this._document=i,this._directionality=o,this._location=c,this._outsideClickDispatcher=h,this._animationsModuleType=m}create(e){const t=this._createHostElement(),s=this._createPaneElement(t),u=this._createPortalOutlet(s),d=new Ml(e);return d.direction=d.direction||this._directionality.value,new gs(u,t,s,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Yg++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(f.z2F)),new uv(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(gn),f.LFG(jr),f.LFG(f._Vd),f.LFG(mv),f.LFG(fs),f.LFG(f.zs3),f.LFG(f.R0b),f.LFG(M.K0),f.LFG(mn),f.LFG(M.Ye),f.LFG(ms),f.LFG(f.QbO,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const Bd={provide:new f.OlP("cdk-connected-overlay-scroll-strategy"),deps:[_n],useFactory:function Vd(r){return()=>r.scrollStrategies.reposition()}};let va=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[_n,Bd],imports:[oo,ho,ls,ls]}),r})();class Il{}const jn="*";function Zt(r,a){return{type:7,name:r,definitions:a,options:{}}}function vt(r,a=null){return{type:4,styles:a,timings:r}}function ep(r,a=null){return{type:3,steps:r,options:a}}function tp(r,a=null){return{type:2,steps:r,options:a}}function Ne(r){return{type:6,styles:r,offset:null}}function ft(r,a,e){return{type:0,name:r,styles:a,options:e}}function yt(r,a,e=null){return{type:1,expr:r,animation:a,options:e}}function kl(r=null){return{type:9,options:r}}function Ld(r,a,e=null){return{type:11,selector:r,animation:a,options:e}}function ip(r){Promise.resolve(null).then(r)}class mo{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ip(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class jd{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,s=0;const u=this.players.length;0==u?ip(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==u&&this._onFinish()}),d.onDestroy(()=>{++t==u&&this._onDestroy()}),d.onStart(()=>{++s==u&&this._onStart()})}),this.totalTime=this.players.reduce((d,l)=>Math.max(d,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const s=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(s)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Kg=["connectionContainer"],Zg=["inputContainer"],Xg=["label"];function e_(r,a){1&r&&(f.ynx(0),f.TgZ(1,"div",14),f._UZ(2,"div",15)(3,"div",16)(4,"div",17),f.qZA(),f.TgZ(5,"div",18),f._UZ(6,"div",15)(7,"div",16)(8,"div",17),f.qZA(),f.BQk())}function t_(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"div",19),f.NdJ("cdkObserveContent",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.updateOutlineGap())}),f.Hsn(1,1),f.qZA()}if(2&r){const e=f.oxw();f.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function i_(r,a){if(1&r&&(f.ynx(0),f.Hsn(1,2),f.TgZ(2,"span"),f._uU(3),f.qZA(),f.BQk()),2&r){const e=f.oxw(2);f.xp6(3),f.Oqu(e._control.placeholder)}}function n_(r,a){1&r&&f.Hsn(0,3,["*ngSwitchCase","true"])}function bS(r,a){1&r&&(f.TgZ(0,"span",23),f._uU(1," *"),f.qZA())}function wv(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"label",20,21),f.NdJ("cdkObserveContent",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.updateOutlineGap())}),f.YNc(2,i_,4,1,"ng-container",12),f.YNc(3,n_,1,0,"ng-content",12),f.YNc(4,bS,2,0,"span",22),f.qZA()}if(2&r){const e=f.oxw();f.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),f.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),f.uIk("for",e._control.id)("aria-owns",e._control.id),f.xp6(2),f.Q6J("ngSwitchCase",!1),f.xp6(1),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function yv(r,a){1&r&&(f.TgZ(0,"div",24),f.Hsn(1,4),f.qZA())}function r_(r,a){if(1&r&&(f.TgZ(0,"div",25),f._UZ(1,"span",26),f.qZA()),2&r){const e=f.oxw();f.xp6(1),f.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function vv(r,a){if(1&r&&(f.TgZ(0,"div"),f.Hsn(1,5),f.qZA()),2&r){const e=f.oxw();f.Q6J("@transitionMessages",e._subscriptAnimationState)}}function fi(r,a){if(1&r&&(f.TgZ(0,"div",30),f._uU(1),f.qZA()),2&r){const e=f.oxw(2);f.Q6J("id",e._hintLabelId),f.xp6(1),f.Oqu(e.hintLabel)}}function a_(r,a){if(1&r&&(f.TgZ(0,"div",27),f.YNc(1,fi,2,2,"div",28),f.Hsn(2,6),f._UZ(3,"div",29),f.Hsn(4,7),f.qZA()),2&r){const e=f.oxw();f.Q6J("@transitionMessages",e._subscriptAnimationState),f.xp6(1),f.Q6J("ngIf",e.hintLabel)}}const Av=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],xv=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let o_=0;const s_=new f.OlP("MatError");let _s=(()=>{class r{constructor(e,t){this.id="mat-error-"+o_++,e||t.nativeElement.setAttribute("aria-live","polite")}}return r.\u0275fac=function(e){return new(e||r)(f.$8M("aria-live"),f.Y36(f.SBq))},r.\u0275dir=f.lG2({type:r,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&f.uIk("id",t.id)},inputs:{id:"id"},features:[f._Bn([{provide:s_,useExisting:r}])]}),r})();const l_={transitionMessages:Zt("transitionMessages",[ft("enter",Ne({opacity:1,transform:"translateY(0%)"})),yt("void => enter",[Ne({opacity:0,transform:"translateY(-5px)"}),vt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Fr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r}),r})(),Sv=0;const np=new f.OlP("MatHint");let yS=(()=>{class r{constructor(){this.align="start",this.id="mat-hint-"+Sv++}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(f.uIk("id",t.id)("align",null),f.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[f._Bn([{provide:np,useExisting:r}])]}),r})(),Aa=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["mat-label"]]}),r})(),rp=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["mat-placeholder"]]}),r})();const sr=new f.OlP("MatPrefix"),ap=new f.OlP("MatSuffix");let lr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["","matSuffix",""]],features:[f._Bn([{provide:ap,useExisting:r}])]}),r})(),bn=0;const c_=ar(class{constructor(r){this._elementRef=r}},"primary"),Ev=new f.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),sp=new f.OlP("MatFormField");let Vl=(()=>{class r extends c_{constructor(e,t,s,u,d,l,n){super(e),this._changeDetectorRef=t,this._dir=s,this._defaults=u,this._platform=d,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+bn++,this._labelId="mat-form-field-label-"+bn++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==n,this.appearance=u?.appearance||"legacy",u&&(this._hideRequiredMarker=Boolean(u.hideRequiredMarker),u.color&&(this.color=this.defaultColor=u.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ye(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(si(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(_t(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(_t(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Ln.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(si(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(si(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(_t(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,xl(this._label.nativeElement,"transitionend").pipe((0,qt.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(u=>"start"===u.align):null,s=this._hintChildren?this._hintChildren.find(u=>"end"===u.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),s&&e.push(s.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",u=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const o=t.querySelectorAll(`${s}, ${u}`);for(let c=0;c0?.75*g+10:0}for(let o=0;o{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,$e,ao,$e]}),r})();const Ov={provide:new f.OlP("mat-select-scroll-strategy"),deps:[_n],useFactory:function g_(r){return()=>r.scrollStrategies.reposition()}};let Nd=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[Ov],imports:[M.ez,va,kh,$e,Ca,xa,kh,$e]}),r})();const Lv=["tooltip"],__="tooltip-panel",b_=fn({passive:!0}),C_=new f.OlP("mat-tooltip-scroll-strategy"),y_={provide:C_,deps:[_n],useFactory:function w_(r){return()=>r.scrollStrategies.reposition({scrollThrottle:20})}},v_=new f.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function A_(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let x_=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c,h,m){this._overlay=e,this._elementRef=t,this._scrollDispatcher=s,this._viewContainerRef=u,this._ngZone=d,this._platform=l,this._ariaDescriber=n,this._focusMonitor=i,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new He.x,this._scrollStrategy=o,this._document=m,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),c.change.pipe(_t(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Ye(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=wi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=wi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(_t(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,s])=>{e.removeEventListener(t,s,b_)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new cs(this._tooltipComponent,this._viewContainerRef);const s=this._tooltipInstance=t.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(_t(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(_t(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${__}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(_t(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(_t(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(_t(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!Pn(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,s=this._getOrigin(),u=this._getOverlayPosition();t.withPositions([this._addOffset({...s.main,...u.main}),this._addOffset({...s.fallback,...u.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let s;"above"==t||"below"==t?s={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?s={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(s={originX:"end",originY:"center"});const{x:u,y:d}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:u,originY:d}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let s;"above"==t?s={overlayX:"center",overlayY:"bottom"}:"below"==t?s={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?s={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(s={overlayX:"start",overlayY:"center"});const{x:u,y:d}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:u,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,qt.q)(1),_t(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:s,originY:u}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===t&&"top"===u?"above":"below",d!==this._currentPosition){const l=this._overlayRef;if(l){const n=`${this._cssClassPrefix}-${__}-`;l.removePanelClass(n+this._currentPosition),l.addPanelClass(n+d)}this._currentPosition=d}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const s=t.relatedTarget;(!s||!this._overlayRef?.overlayElement.contains(s))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,s])=>{this._elementRef.nativeElement.addEventListener(t,s,b_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;t!==s&&!s.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,s=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===e||!t.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return r.\u0275fac=function(e){f.$Z()},r.\u0275dir=f.lG2({type:r,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),r})(),qd=(()=>{class r extends x_{constructor(e,t,s,u,d,l,n,i,o,c,h,m){super(e,t,s,u,d,l,n,i,o,c,h,m),this._tooltipComponent=S_}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(_n),f.Y36(f.SBq),f.Y36(os),f.Y36(f.s_b),f.Y36(f.R0b),f.Y36(Yt),f.Y36(dg),f.Y36(In),f.Y36(C_),f.Y36(mn,8),f.Y36(v_,8),f.Y36(M.K0))},r.\u0275dir=f.lG2({type:r,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[f.qOj]}),r})(),T_=(()=>{class r{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new He.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,s=this._showAnimation,u=this._hideAnimation;if(t.classList.remove(e?u:s),t.classList.add(e?s:u),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const d=getComputedStyle(t);("0s"===d.getPropertyValue("animation-duration")||"none"===d.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.sBO),f.Y36(f.QbO,8))},r.\u0275dir=f.lG2({type:r}),r})(),S_=(()=>{class r extends T_{constructor(e,t,s){super(e,s),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.sBO),f.Y36(sd),f.Y36(f.QbO,8))},r.\u0275cmp=f.Xpm({type:r,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&f.Gf(Lv,7),2&e){let s;f.iGM(s=f.CRH())&&(t._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&f.NdJ("mouseleave",function(u){return t._handleMouseLeave(u)}),2&e&&f.Udp("zoom",t.isVisible()?1:null)},features:[f.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(f.TgZ(0,"div",0,1),f.NdJ("animationend",function(u){return t._handleAnimationEnd(u)}),f.ALo(2,"async"),f._uU(3),f.qZA()),2&e){let s;f.ekj("mat-tooltip-handset",null==(s=f.lcZ(2,4,t._isHandset))?null:s.matches),f.Q6J("ngClass",t.tooltipClass),f.xp6(3),f.Oqu(t.message)}},dependencies:[M.mk,M.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),r})(),go=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[y_],imports:[Cl,M.ez,va,$e,$e,Ca]}),r})(),Ol=(()=>{class r{constructor(){this.changes=new He.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,s)=>{if(0==s||0==t)return`0 of ${s}`;const u=e*t;return`${u+1} \u2013 ${u<(s=Math.max(s,0))?Math.min(u+t,s):u+t} of ${s}`}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const M_={provide:Ol,deps:[[new f.FiY,new f.tp0,Ol]],useFactory:function VS(r){return r||new Ol}};let Ur=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[M_],imports:[M.ez,Bn,Nd,go,$e]}),r})();var D_=E(1005);const zd=["mat-menu-item",""];function Gd(r,a){1&r&&(f.O4$(),f.TgZ(0,"svg",2),f._UZ(1,"polygon",3),f.qZA())}const Jt=["*"];function jS(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"div",0),f.NdJ("keydown",function(s){f.CHM(e);const u=f.oxw();return f.KtG(u._handleKeydown(s))})("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.closed.emit("click"))})("@transformMenu.start",function(s){f.CHM(e);const u=f.oxw();return f.KtG(u._onAnimationStart(s))})("@transformMenu.done",function(s){f.CHM(e);const u=f.oxw();return f.KtG(u._onAnimationDone(s))}),f.TgZ(1,"div",1),f.Hsn(2),f.qZA()()}if(2&r){const e=f.oxw();f.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),f.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Ll={transformMenu:Zt("transformMenu",[ft("void",Ne({opacity:0,transform:"scale(0.8)"})),yt("void => enter",vt("120ms cubic-bezier(0, 0, 0.2, 1)",Ne({opacity:1,transform:"scale(1)"}))),yt("* => void",vt("100ms 25ms linear",Ne({opacity:0})))]),fadeInItems:Zt("fadeInItems",[ft("showing",Ne({opacity:1})),yt("void => *",[Ne({opacity:0}),vt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},H_=new f.OlP("MatMenuContent"),hp=new f.OlP("MAT_MENU_PANEL"),jl=lo(so(class{}));let Fl=(()=>{class r extends jl{constructor(e,t,s,u,d){super(),this._elementRef=e,this._document=t,this._focusMonitor=s,this._parentMenu=u,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new He.x,this._focused=new He.x,this._highlighted=!1,this._triggersSubmenu=!1,u?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class r{constructor(e,t,s,u){this._elementRef=e,this._ngZone=t,this._defaultOptions=s,this._changeDetectorRef=u,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new f.n_E,this._tabSubscription=wt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new f.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Wd++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ye(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ye(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(s=>{this._classList[s]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(s=>{this._classList[s]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Th(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(si(this._directDescendantItems),(0,bt.w)(e=>(0,Ln.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const s=e.toArray(),u=Math.max(0,Math.min(s.length-1,t.activeItemIndex||0));s[u]&&!s[u].disabled?t.setActiveItem(u):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(si(this._directDescendantItems),(0,bt.w)(t=>(0,Ln.T)(...t.map(s=>s._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,s=this._keyManager;switch(t){case 27:Pn(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&s.setFocusOrigin("keyboard"),void s.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,qt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const s=this._keyManager;s.setFocusOrigin(e).setFirstItemActive(),!s.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),s=`${this._elevationPrefix}${t}`,u=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!u||u===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[s]=!0,this._previousElevation=s)}setPositionClasses(e=this.xPosition,t=this.yPosition){const s=this._classList;s["mat-menu-before"]="before"===e,s["mat-menu-after"]="after"===e,s["mat-menu-above"]="above"===t,s["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(si(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(R_),f.Y36(f.sBO))},r.\u0275dir=f.lG2({type:r,contentQueries:function(e,t,s){if(1&e&&(f.Suo(s,H_,5),f.Suo(s,Fl,5),f.Suo(s,Fl,4)),2&e){let u;f.iGM(u=f.CRH())&&(t.lazyContent=u.first),f.iGM(u=f.CRH())&&(t._allItems=u),f.iGM(u=f.CRH())&&(t.items=u)}},viewQuery:function(e,t){if(1&e&&f.Gf(f.Rgc,5),2&e){let s;f.iGM(s=f.CRH())&&(t.templateRef=s.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),r})(),pp=(()=>{class r extends bs{constructor(e,t,s,u){super(e,t,s,u),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(R_),f.Y36(f.sBO))},r.\u0275cmp=f.Xpm({type:r,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&f.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[f._Bn([{provide:hp,useExisting:r}]),f.qOj],ngContentSelectors:Jt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(f.F$t(),f.YNc(0,jS,3,6,"ng-template"))},dependencies:[M.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Ll.transformMenu,Ll.fadeInItems]},changeDetection:0}),r})();const fp=new f.OlP("mat-menu-scroll-strategy"),Ul={provide:fp,deps:[_n],useFactory:function Qv(r){return()=>r.scrollStrategies.reposition()}},P_=fn({passive:!0});let Yv=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o){this._overlay=e,this._element=t,this._viewContainerRef=s,this._menuItemInstance=l,this._dir=n,this._focusMonitor=i,this._ngZone=o,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=wt.w0.EMPTY,this._hoverSubscription=wt.w0.EMPTY,this._menuCloseSubscription=wt.w0.EMPTY,this._handleTouchStart=c=>{rr(c)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new f.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new f.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=u,this._parentMaterialMenu=d instanceof bs?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,P_),l&&(l._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,P_),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),s=t.getConfig(),u=s.positionStrategy;this._setPosition(e,u),s.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof bs&&(e._startAnimation(),e._directDescendantItems.changes.pipe(_t(e.close)).subscribe(()=>{u.withLockedPosition(!1).reapplyLastPosition(),u.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof bs?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,ii.h)(s=>"void"===s.toState),(0,qt.q)(1),_t(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,s=e.parentMenu;for(;s;)t++,s=s.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Ml({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(s=>{const u="start"===s.connectionPair.overlayX?"after":"before",d="top"===s.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(u,d)):e.setPositionClasses(u,d)})}_setPosition(e,t){let[s,u]="before"===e.xPosition?["end","start"]:["start","end"],[d,l]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[n,i]=[d,l],[o,c]=[s,u],h=0;if(this.triggersSubmenu()){if(c=s="before"===e.xPosition?"start":"end",u=o="end"===s?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const m=this._parentMaterialMenu.items.first;this._parentInnerPadding=m?m._getHostElement().offsetTop:0}h="bottom"===d?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(n="top"===d?"bottom":"top",i="top"===l?"bottom":"top");t.withPositions([{originX:s,originY:n,overlayX:o,overlayY:d,offsetY:h},{originX:u,originY:n,overlayX:c,overlayY:d,offsetY:h},{originX:s,originY:i,overlayX:o,overlayY:l,offsetY:-h},{originX:u,originY:i,overlayX:c,overlayY:l,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),s=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,ke.of)(),u=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,ii.h)(d=>d!==this._menuItemInstance),(0,ii.h)(()=>this._menuOpen)):(0,ke.of)();return(0,Ln.T)(e,s,u,t)}_handleMousedown(e){_l(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,ii.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,D_.g)(0,xd)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof bs&&this.menu._isAnimating?this.menu._animationDone.pipe((0,qt.q)(1),(0,D_.g)(0,xd),_t(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Wh(e.templateRef,this._viewContainerRef)),this._portal}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(_n),f.Y36(f.SBq),f.Y36(f.s_b),f.Y36(fp),f.Y36(hp,8),f.Y36(Fl,10),f.Y36(mn,8),f.Y36(In),f.Y36(f.R0b))},r.\u0275dir=f.lG2({type:r,hostVars:3,hostBindings:function(e,t){1&e&&f.NdJ("click",function(u){return t._handleClick(u)})("mousedown",function(u){return t._handleMousedown(u)})("keydown",function(u){return t._handleKeydown(u)}),2&e&&f.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),r})(),I_=(()=>{class r extends Yv{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275dir=f.lG2({type:r,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[f.qOj]}),r})(),Nl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[Ul],imports:[M.ez,$e,Vn,va,Ca,$e]}),r})();var k_=E(4742),V_=E(1810);function mp(...r){const a=(0,qf.jO)(r),{args:e,keys:t}=(0,k_.D)(r),s=new Fi.y(u=>{const{length:d}=e;if(!d)return void u.complete();const l=new Array(d);let n=d,i=d;for(let o=0;o{c||(c=!0,i--),l[o]=h},()=>n--,void 0,()=>{(!n||!c)&&(i||u.next(t?(0,V_.n)(t,l):l),u.complete())}))}});return a?s.pipe((0,wd.Z)(a)):s}const B_=["*"];let Qd;function Yd(r){return function Jv(){if(void 0===Qd&&(Qd=null,typeof window<"u")){const r=window;void 0!==r.trustedTypes&&(Qd=r.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return Qd}()?.createHTML(r)||r}function Kv(r){return Error(`Unable to find icon with the name "${r}"`)}function Zv(r){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${r}".`)}function gp(r){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${r}".`)}class cr{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let ql=(()=>{class r{constructor(e,t,s,u){this._httpClient=e,this._sanitizer=t,this._errorHandler=u,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=s}addSvgIcon(e,t,s){return this.addSvgIconInNamespace("",e,t,s)}addSvgIconLiteral(e,t,s){return this.addSvgIconLiteralInNamespace("",e,t,s)}addSvgIconInNamespace(e,t,s,u){return this._addSvgIconConfig(e,t,new cr(s,null,u))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,s,u){const d=this._sanitizer.sanitize(f.q3G.HTML,s);if(!d)throw gp(s);const l=Yd(d);return this._addSvgIconConfig(e,t,new cr("",l,u))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,s){return this._addSvgIconSetConfig(e,new cr(t,null,s))}addSvgIconSetLiteralInNamespace(e,t,s){const u=this._sanitizer.sanitize(f.q3G.HTML,t);if(!u)throw gp(t);const d=Yd(u);return this._addSvgIconSetConfig(e,new cr("",d,s))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(f.q3G.RESOURCE_URL,e);if(!t)throw Zv(e);const s=this._cachedIconsByUrl.get(t);return s?(0,ke.of)(Ta(s)):this._loadSvgIconFromConfig(new cr(e,null)).pipe((0,jt.b)(u=>this._cachedIconsByUrl.set(t,u)),(0,pt.U)(u=>Ta(u)))}getNamedSvgIcon(e,t=""){const s=O_(t,e);let u=this._svgIconConfigs.get(s);if(u)return this._getSvgFromConfig(u);if(u=this._getIconConfigFromResolvers(t,e),u)return this._svgIconConfigs.set(s,u),this._getSvgFromConfig(u);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,en._)(Kv(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,ke.of)(Ta(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,pt.U)(t=>Ta(t)))}_getSvgFromIconSetConfigs(e,t){const s=this._extractIconWithNameFromAnySet(e,t);return s?(0,ke.of)(s):mp(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,Bt.K)(l=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(f.q3G.RESOURCE_URL,d.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(i)),(0,ke.of)(null)})))).pipe((0,pt.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw Kv(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let s=t.length-1;s>=0;s--){const u=t[s];if(u.svgText&&u.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(u),l=this._extractSvgIconFromSet(d,e,u.options);if(l)return l}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,jt.b)(t=>e.svgText=t),(0,pt.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,ke.of)(null):this._fetchIcon(e).pipe((0,jt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,s){const u=e.querySelector(`[id="${t}"]`);if(!u)return null;const d=u.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,s);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),s);const l=this._svgElementFromString(Yd(""));return l.appendChild(d),this._setSvgAttributes(l,s)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const s=t.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(e){const t=this._svgElementFromString(Yd("")),s=e.attributes;for(let u=0;uYd(i)),Et(()=>this._inProgressUrlFetches.delete(d)),(0,Lg.B)());return this._inProgressUrlFetches.set(d,n),n}_addSvgIconConfig(e,t,s){return this._svgIconConfigs.set(O_(e,t),s),this}_addSvgIconSetConfig(e,t){const s=this._iconSetConfigs.get(e);return s?s.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let s=0;sa?a.pathname+a.search:""}}}),j_=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],aA=j_.map(r=>`[${r}]`).join(", "),Cs=/^url\(['"]?#(.*?)['"]?\)$/;let Nr=(()=>{class r extends iA{constructor(e,t,s,u,d,l){super(e),this._iconRegistry=t,this._location=u,this._errorHandler=d,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=wt.w0.EMPTY,l&&(l.color&&(this.color=this.defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),s||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Ye(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const s=e.childNodes[t];(1!==s.nodeType||"svg"===s.nodeName.toLowerCase())&&s.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(s=>s.length>0);this._previousFontSetClass.forEach(s=>e.classList.remove(s)),t.forEach(s=>e.classList.add(s)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((s,u)=>{s.forEach(d=>{u.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(aA),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let u=0;u{const l=t[u],n=l.getAttribute(d),i=n?n.match(Cs):null;if(i){let o=s.get(l);o||(o=[],s.set(l,o)),o.push({name:d,value:i[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,s]=this._splitIconName(e);t&&(this._svgNamespace=t),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,t).pipe((0,qt.q)(1)).subscribe(u=>this._setSvgElement(u),u=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${s}! ${u.message}`))})}}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(ql),f.$8M("aria-hidden"),f.Y36(rA),f.Y36(f.qLn),f.Y36(nA,8))},r.\u0275cmp=f.Xpm({type:r,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(f.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),f.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[f.qOj],ngContentSelectors:B_,decls:1,vars:0,template:function(e,t){1&e&&(f.F$t(),f.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),r})(),Un=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})();class zl{}let _p=(()=>{class r extends zl{getTranslation(e){return(0,ke.of)({})}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class bp{}let Cp=(()=>{class r{handle(e){return e.key}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();function Jd(r,a){if(r===a)return!0;if(null===r||null===a)return!1;if(r!=r&&a!=a)return!0;let s,u,d,e=typeof r;if(e==typeof a&&"object"==e){if(!Array.isArray(r)){if(Array.isArray(a))return!1;for(u in d=Object.create(null),r){if(!Jd(r[u],a[u]))return!1;d[u]=!0}for(u in a)if(!(u in d)&&typeof a[u]<"u")return!1;return!0}if(!Array.isArray(a))return!1;if((s=r.length)==a.length){for(u=0;u{wp(a[t])?t in r?e[t]=yp(r[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class Gl{}let F_=(()=>{class r extends Gl{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let s;return s="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,s}getValue(e,t){let s="string"==typeof t?t.split("."):[t];t="";do{t+=s.shift(),!dr(e)||!dr(e[t])||"object"!=typeof e[t]&&s.length?s.length?t+=".":e=void 0:(e=e[t],t="")}while(s.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(s,u)=>{let d=this.getValue(t,u);return dr(d)?d:s}):e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class Kd{}let U_=(()=>{class r extends Kd{compile(e,t){return e}compileTranslations(e,t){return e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class Zd{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new f.vpe,this.onLangChange=new f.vpe,this.onDefaultLangChange=new f.vpe}}const vp=new f.OlP("USE_STORE"),Xd=new f.OlP("USE_DEFAULT_LANG"),Ap=new f.OlP("DEFAULT_LANGUAGE"),xp=new f.OlP("USE_EXTEND");let Bi=(()=>{class r{constructor(e,t,s,u,d,l=!0,n=!1,i=!1,o){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=u,this.missingTranslationHandler=d,this.useDefaultLang=l,this.isolate=n,this.extend=i,this.pending=!1,this._onTranslationChange=new f.vpe,this._onLangChange=new f.vpe,this._onDefaultLangChange=new f.vpe,this._langs=[],this._translations={},this._translationRequests={},o&&this.setDefaultLang(o)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,qt.q)(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,ke.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,qt.q)(1)).subscribe(s=>{this.changeLang(e)}),t):(this.changeLang(e),(0,ke.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Sl(1),(0,qt.q)(1));return this.loadingTranslations=t.pipe((0,pt.U)(s=>this.compiler.compileTranslations(s,e)),Sl(1),(0,qt.q)(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?{...s,...this.translations[e]}:s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),t}setTranslation(e,t,s=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(s||this.extend)&&this.translations[e]?yp(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,s){let u;if(t instanceof Array){let d={},l=!1;for(let n of t)d[n]=this.getParsedResult(e,n,s),ri(d[n])&&(l=!0);return l?mp(t.map(i=>ri(d[i])?d[i]:(0,ke.of)(d[i]))).pipe((0,pt.U)(i=>{let o={};return i.forEach((c,h)=>{o[t[h]]=c}),o})):d}if(e&&(u=this.parser.interpolate(this.parser.getValue(e,t),s)),typeof u>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(u=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),s)),typeof u>"u"){let d={key:t,translateService:this};typeof s<"u"&&(d.interpolateParams=s),u=this.missingTranslationHandler.handle(d)}return typeof u<"u"?u:t}get(e,t){if(!dr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,un.b)(s=>ri(s=this.getParsedResult(s,e,t))?s:(0,ke.of)(s)));{let s=this.getParsedResult(this.translations[this.currentLang],e,t);return ri(s)?s:(0,ke.of)(s)}}getStreamOnTranslationChange(e,t){if(!dr(e)||!e.length)throw new Error('Parameter "key" required');return(0,na.z)(dn(()=>this.get(e,t)),this.onTranslationChange.pipe((0,bt.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return"function"==typeof u.subscribe?u:(0,ke.of)(u)})))}stream(e,t){if(!dr(e)||!e.length)throw new Error('Parameter "key" required');return(0,na.z)(dn(()=>this.get(e,t)),this.onLangChange.pipe((0,bt.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return ri(u)?u:(0,ke.of)(u)})))}instant(e,t){if(!dr(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,t);if(ri(s)){if(e instanceof Array){let u={};return e.forEach((d,l)=>{u[e[l]]=e[l]}),u}return e}return s}set(e,t,s=this.currentLang){this.translations[s][e]=this.compiler.compile(t,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Zd),f.LFG(zl),f.LFG(Kd),f.LFG(Gl),f.LFG(bp),f.LFG(Xd),f.LFG(vp),f.LFG(xp),f.LFG(Ap))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),vi=(()=>{class r{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,s){let u=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(s){let d=this.translate.getParsedResult(s,e,t);ri(d.subscribe)?d.subscribe(u):u(d)}this.translate.get(e,t).subscribe(u)}transform(e,...t){if(!e||!e.length)return e;if(Jd(e,this.lastKey)&&Jd(t,this.lastParams))return this.value;let s;if(dr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let u=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(u)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(s=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(u=>{this.lastKey&&u.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(u=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Bi,16),f.Y36(f.sBO,16))},r.\u0275pipe=f.Yjl({name:"translate",type:r,pure:!1}),r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),ws=(()=>{class r{static forRoot(e={}){return{ngModule:r,providers:[e.loader||{provide:zl,useClass:_p},e.compiler||{provide:Kd,useClass:U_},e.parser||{provide:Gl,useClass:F_},e.missingTranslationHandler||{provide:bp,useClass:Cp},Zd,{provide:vp,useValue:e.isolate},{provide:Xd,useValue:e.useDefaultLang},{provide:xp,useValue:e.extend},{provide:Ap,useValue:e.defaultLanguage},Bi]}}static forChild(e={}){return{ngModule:r,providers:[e.loader||{provide:zl,useClass:_p},e.compiler||{provide:Kd,useClass:U_},e.parser||{provide:Gl,useClass:F_},e.missingTranslationHandler||{provide:bp,useClass:Cp},{provide:vp,useValue:e.isolate},{provide:Xd,useValue:e.useDefaultLang},{provide:xp,useValue:e.extend},{provide:Ap,useValue:e.defaultLanguage},Bi]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),oA=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Ur,Nl,Un,Bn,ws,M.ez]}),r})();var sA=E(5861);function N_(r,a){}class Wl{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let q_=(()=>{class r extends Qh{constructor(e,t,s,u,d,l,n,i){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=u,this._interactivityChecker=d,this._ngZone=l,this._overlayRef=n,this._focusMonitor=i,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=o=>{this._portalOutlet.hasAttached();const c=this._portalOutlet.attachDomPortal(o);return this._contentAttached(),c},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=s}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const s=()=>{e.removeEventListener("blur",s),e.removeEventListener("mousedown",s),e.removeAttribute("tabindex")};e.addEventListener("blur",s),e.addEventListener("mousedown",s)})),e.focus(t)}_focusByCssSelector(e,t){let s=this._elementRef.nativeElement.querySelector(e);s&&this._forceFocus(s,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const s=ul(),u=this._elementRef.nativeElement;(!s||s===this._document.body||s===u||u.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=ul();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ul())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(ud),f.Y36(M.K0,8),f.Y36(Wl),f.Y36(dd),f.Y36(f.R0b),f.Y36(gs),f.Y36(In))},r.\u0275cmp=f.Xpm({type:r,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&f.Gf(ds,7),2&e){let s;f.iGM(s=f.CRH())&&(t._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&f.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[f.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&f.YNc(0,N_,0,0,"ng-template",0)},dependencies:[ds],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),r})();class eu{constructor(a,e){this.overlayRef=a,this.config=e,this.closed=new He.x,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!Pn(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(a,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}}const z_=new f.OlP("DialogScrollStrategy"),lA=new f.OlP("DialogData"),cA=new f.OlP("DefaultDialogConfig"),Sp={provide:z_,deps:[_n],useFactory:function Tp(r){return()=>r.scrollStrategies.block()}};let G_=0,tu=(()=>{class r{constructor(e,t,s,u,d,l){this._overlay=e,this._injector=t,this._defaultOptions=s,this._parentDialog=u,this._overlayContainer=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._ariaHiddenElements=new Map,this.afterAllClosed=dn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(si(void 0))),this._scrollStrategy=l}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Wl,...t}).id=t.id||"cdk-dialog-"+G_++,t.id&&this.getDialogById(t.id);const u=this._getOverlayConfig(t),d=this._overlay.create(u),l=new eu(d,t),n=this._attachContainer(d,l,t);return l.containerInstance=n,this._attachDialogContent(e,l,n,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){Ep(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){Ep(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),Ep(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Ml({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,s){const u=s.injector??s.viewContainerRef?.injector,d=[{provide:Wl,useValue:s},{provide:eu,useValue:t},{provide:gs,useValue:e}];let l;s.container?"function"==typeof s.container?l=s.container:(l=s.container.type,d.push(...s.container.providers(s))):l=q_;const n=new cs(l,s.viewContainerRef,f.zs3.create({parent:u||this._injector,providers:d}),s.componentFactoryResolver);return e.attach(n).instance}_attachDialogContent(e,t,s,u){const d=this._createInjector(u,t,s);if(e instanceof f.Rgc){let l={$implicit:u.data,dialogRef:t};u.templateContext&&(l={...l,..."function"==typeof u.templateContext?u.templateContext():u.templateContext}),s.attachTemplatePortal(new Wh(e,null,l,d))}else{const l=s.attachComponentPortal(new cs(e,u.viewContainerRef,d,u.componentFactoryResolver));t.componentInstance=l.instance}}_createInjector(e,t,s){const u=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:lA,useValue:e.data},{provide:eu,useValue:t}];return e.providers&&("function"==typeof e.providers?d.push(...e.providers(t,e,s)):d.push(...e.providers)),e.direction&&(!u||!u.get(mn,null,f.XFs.Optional))&&d.push({provide:mn,useValue:{value:e.direction,change:(0,ke.of)()}}),f.zs3.create({parent:e.injector||u||this._injector,providers:d})}_removeOpenDialog(e,t){const s=this.openDialogs.indexOf(e);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((u,d)=>{u?d.setAttribute("aria-hidden",u):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let s=t.length-1;s>-1;s--){const u=t[s];u!==e&&"SCRIPT"!==u.nodeName&&"STYLE"!==u.nodeName&&!u.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(u,u.getAttribute("aria-hidden")),u.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(_n),f.LFG(f.zs3),f.LFG(cA,8),f.LFG(r,12),f.LFG(jr),f.LFG(z_))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();function Ep(r,a){let e=r.length;for(;e--;)a(r[e])}let dA=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[tu,Sp],imports:[va,ho,Cl,ho]}),r})();function Mp(r,a){}const ys={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},W_={dialogContainer:Zt("dialogContainer",[ft("void, exit",Ne({opacity:0,transform:"scale(0.7)"})),ft("enter",Ne({transform:"none"})),yt("* => enter",ep([vt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ne({transform:"none",opacity:1})),Ld("@*",kl(),{optional:!0})]),ys),yt("* => void, * => exit",ep([vt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ne({opacity:0})),Ld("@*",kl(),{optional:!0})]),ys)])};class ur{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=ys.params.enterAnimationDuration,this.exitAnimationDuration=ys.params.exitAnimationDuration}}let $_=(()=>{class r extends q_{constructor(e,t,s,u,d,l,n,i){super(e,t,s,u,d,l,n,i),this._animationStateChanged=new f.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(ud),f.Y36(M.K0,8),f.Y36(ur),f.Y36(dd),f.Y36(f.R0b),f.Y36(gs),f.Y36(In))},r.\u0275cmp=f.Xpm({type:r,selectors:[["ng-component"]],features:[f.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),r})(),uA=(()=>{class r extends $_{constructor(e,t,s,u,d,l,n,i,o){super(e,t,s,u,d,l,n,o),this._changeDetectorRef=i,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ys.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ys.params.exitAnimationDuration}}}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(ud),f.Y36(M.K0,8),f.Y36(ur),f.Y36(dd),f.Y36(f.R0b),f.Y36(gs),f.Y36(f.sBO),f.Y36(In))},r.\u0275cmp=f.Xpm({type:r,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&f.WFA("@dialogContainer.start",function(u){return t._onAnimationStart(u)})("@dialogContainer.done",function(u){return t._onAnimationDone(u)}),2&e&&(f.Ikx("id",t._config.id),f.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),f.d8E("@dialogContainer",t._getAnimationState()))},features:[f.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&f.YNc(0,Mp,0,0,"ng-template",0)},dependencies:[ds],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[W_.dialogContainer]}}),r})();class hr{constructor(a,e,t){this._ref=a,this._containerInstance=t,this._afterOpened=new He.x,this._beforeClosed=new He.x,this._state=0,this.disableClose=e.disableClose,this.id=a.id,t._animationStateChanged.pipe((0,ii.h)(s=>"opened"===s.state),(0,qt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,ii.h)(s=>"closed"===s.state),(0,qt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Ln.T)(this.backdropClick(),this.keydownEvents().pipe((0,ii.h)(s=>27===s.keyCode&&!this.disableClose&&!Pn(s)))).subscribe(s=>{this.disableClose||(s.preventDefault(),function Q_(r,a,e){r._closeInteractionType=a,r.close(e)}(this,"keydown"===s.type?"keyboard":"mouse"))})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,ii.h)(e=>"closing"===e.state),(0,qt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Sa=new f.OlP("MatDialogData"),hA=new f.OlP("mat-dialog-default-options"),iu=new f.OlP("mat-dialog-scroll-strategy"),Dp={provide:iu,deps:[_n],useFactory:function pA(r){return()=>r.scrollStrategies.block()}};let Y_=0,J_=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c){this._overlay=e,this._defaultOptions=s,this._parentDialog=u,this._dialogRefConstructor=n,this._dialogContainerType=i,this._dialogDataToken=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._idPrefix="mat-dialog-",this.afterAllClosed=dn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(si(void 0))),this._scrollStrategy=l,this._dialog=t.get(tu)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let s;(t={...this._defaultOptions||new ur,...t}).id=t.id||`${this._idPrefix}${Y_++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const u=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:ur,useValue:t},{provide:Wl,useValue:t}]},templateContext:()=>({dialogRef:s}),providers:(d,l,n)=>(s=new this._dialogRefConstructor(d,t,n),s.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:s}])});return s.componentInstance=u.componentInstance,this.openDialogs.push(s),this.afterOpened.next(s),s.afterClosed().subscribe(()=>{const d=this.openDialogs.indexOf(s);d>-1&&(this.openDialogs.splice(d,1),this.openDialogs.length||this._getAfterAllClosed().next())}),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return r.\u0275fac=function(e){f.$Z()},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),Cn=(()=>{class r extends J_{constructor(e,t,s,u,d,l,n,i){super(e,t,u,l,n,d,hr,uA,Sa,i)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(_n),f.LFG(f.zs3),f.LFG(M.Ye,8),f.LFG(hA,8),f.LFG(iu),f.LFG(r,12),f.LFG(jr),f.LFG(f.QbO,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),K_=0,Ea=(()=>{class r{constructor(e,t,s){this._dialogRef=e,this._elementRef=t,this._dialog=s,this.id="mat-dialog-title-"+K_++}ngOnInit(){this._dialogRef||(this._dialogRef=function Z_(r,a){let e=r.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr,8),f.Y36(f.SBq),f.Y36(Cn))},r.\u0275dir=f.lG2({type:r,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&f.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),r})(),Ma=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),r})(),Da=(()=>{class r{constructor(){this.align="start"}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&f.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),r})(),Hp=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[Cn,Dp],imports:[dA,va,ho,$e,$e]}),r})();function Rp(){return(Rp=(0,sA.Z)(function*(r,a){yield CA(r),a()})).apply(this,arguments)}function CA(r){return new Promise(a=>setTimeout(a,r))}function pr(){const r=new ur;return r.disableClose=!0,r.autoFocus=!1,r}function Vp(r,a){const e=a.split("&");for(const t of e){const[s,u]=t.split("=");if(s.includes(r))return u}return""}E(4327),new Intl.Collator("cs",{numeric:!0});class kA{static passwordMatchValidator(a){const e=a.get("passwordCtrl").value,t=a.get("passwordAgainCtrl").value;return a.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(a){return e=>{if(!e.value)return null;let t=0;for(const s of a)t+=s.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}let mi=(()=>{class r{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],s=this.defaultConfig[e];let u=null;for(const d of t)d&&null==u&&(u=d[e]);return null===u?s:this.addMissingValuesToProperty(u,s)}addMissingValuesToProperty(e,t){if(null==e)return t;if("object"==typeof e&&!Array.isArray(e))for(const s of Object.keys(t))e[s]=this.addMissingValuesToProperty(e[s],t[s]);return e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var bo=E(1214);let zr=(()=>{class r{constructor(e,t,s,u,d){this.injector=e,this.store=t,this.dialog=s,this.route=u,this.oauthService=d,setTimeout(()=>{this.router=this.injector.get(Qt),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(l=>{l.idpFilter&&(this.filterShortname=String(l.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),u=.5+.25*Math.random(),d=e?{acr_values:e}:{},l=this.store.getProperty("oidc_client");if(l.oauth_scopes.split(" ").includes("offline_access")&&l.oauth_offline_access_consent_prompt&&(d.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(d.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(d.prompt?d.prompt+=" login":d.prompt="login",d.max_age="0"),"Linker"===this.store.getProperty("application")){d.prompt?d.prompt+=" login":d.prompt="login";const n=Vp("idphint",location.search.substring(1));n&&(d.idphint=n)}return{requestAccessToken:!0,issuer:l.oauth_authority,clientId:l.oauth_client_id,redirectUri:l.oauth_redirect_uri,postLogoutRedirectUri:l.oauth_post_logout_redirect_uri,responseType:l.oauth_response_type,scope:l.oauth_scopes,clockSkewInSec:1,timeoutFactor:u,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:d}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let s=null;return e.forEach(u=>{const d=u.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],s=t[d[1]])}),t.default&&!s?(this.filterShortname="default",t.default):s}startIdpFilterKeeper(){this.router.events.pipe((0,ii.h)(e=>e instanceof Mr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.zs3),f.LFG(mi),f.LFG(Cn),f.LFG(Dr),f.LFG(bo.Ct))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),cb=(()=>{class r{constructor(e){this.dialogRef=e}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(f.TgZ(0,"h2",0),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&e&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[Ma,vi]}),r})();var db=E(930);function Bp(r,a){const e="object"==typeof a;return new Promise((t,s)=>{const u=new db.Hp({next:d=>{t(d),u.unsubscribe()},error:s,complete:()=>{e?t(a.defaultValue):s(new ia.K)}});r.subscribe(u)})}function ub(r,a){1&r&&(f.TgZ(0,"mat-icon",2),f._uU(1," info "),f.qZA())}function VA(r,a){1&r&&(f.TgZ(0,"mat-icon",2),f._uU(1," warning "),f.qZA())}function hb(r,a){1&r&&(f.TgZ(0,"mat-icon",2),f._uU(1," dangerous "),f.qZA())}function pb(r,a){1&r&&(f.TgZ(0,"mat-icon",2),f._uU(1," check_circle "),f.qZA())}const BA=["*"];let Ha=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:BA,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(f.F$t(),f.TgZ(0,"div",0),f.YNc(1,ub,2,0,"mat-icon",1),f.YNc(2,VA,2,0,"mat-icon",1),f.YNc(3,hb,2,0,"mat-icon",1),f.YNc(4,pb,2,0,"mat-icon",1),f.Hsn(5),f.qZA()),2&e&&(f.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),f.xp6(1),f.Q6J("ngIf","info"===t.alert_type),f.xp6(1),f.Q6J("ngIf","warn"===t.alert_type),f.xp6(1),f.Q6J("ngIf","error"===t.alert_type),f.xp6(1),f.Q6J("ngIf","success"===t.alert_type))},dependencies:[Nr,M.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),r})(),OA=(()=>{class r{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr),f.Y36(Sa))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),f._uU(5),f.ALo(6,"translate"),f.ALo(7,"translate"),f.qZA()(),f.TgZ(8,"div",3)(9,"button",4),f.NdJ("click",function(){return t.cancel()}),f._uU(10),f.ALo(11,"translate"),f.qZA(),f.TgZ(12,"button",5),f.NdJ("click",function(){return t.submit()}),f._uU(13),f.ALo(14,"translate"),f.qZA()()),2&e&&(f.xp6(1),f.Oqu(f.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),f.xp6(4),f.hij(" ",t.data.mfaRoleException?f.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):f.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),f.xp6(4),f.Q6J("hidden",t.data.mfaRoleException),f.xp6(1),f.hij(" ",f.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),f.xp6(2),f.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),f.xp6(1),f.hij(" ",f.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Ea,Ma,Da,Mi,Ha,vi]}),r})(),zi=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(f.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),f._uU(3," info "),f.qZA(),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"div"),f._uU(7),f.ALo(8,"translate"),f.qZA()()),2&e&&(f.xp6(4),f.hij(" ",f.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),f.xp6(3),f.hij(" ",f.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Nr,vi],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),r})(),vs=(()=>{class r{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Sa),f.Y36(hr))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),f._uU(5),f.ALo(6,"translate"),f.qZA()(),f.TgZ(7,"div",3)(8,"button",4),f.NdJ("click",function(){return t.cancel()}),f._uU(9),f.ALo(10,"translate"),f.qZA(),f.TgZ(11,"button",5),f.NdJ("click",function(){return t.submit()}),f._uU(12),f.ALo(13,"translate"),f.qZA()()),2&e&&(f.xp6(1),f.Oqu(f.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),f.xp6(4),f.hij(" ",f.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),f.xp6(4),f.hij(" ",f.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),f.xp6(3),f.hij(" ",f.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Ea,Ma,Da,Mi,Ha,vi]}),r})(),Op=(()=>{class r{constructor(e,t,s,u){this.dialog=e,this.oauthService=t,this.authService=s,this.store=u}openMfaWindow(e){let t=null,s=null;const u=pr();u.width="450px",u.data={mfaRoleException:e};const d=this.dialog.open(OA,u);let l=!1;if(d.afterClosed().subscribe(n=>{if(n){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const i=pr();i.width="450px",i.panelClass="noBorderDialog",s=this.dialog.open(zi,i)}}else l=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const n=pr();n.width="450px",n.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(vs,n)}return new Fi.y(n=>{const i=setInterval(()=>t?.closed?(clearInterval(i),s.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),n.next(!0)):l?(clearInterval(i),n.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,u=window.top;return window.open(e,"_blank",`width=600,height=600,top=${u.outerHeight/2+u.screenY-300}, left=${u.outerWidth/2+u.screenX-300}`)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Cn),f.LFG(bo.Ct),f.LFG(zr),f.LFG(mi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Lp=(()=>{class r{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.oauthService=t,this.storeService=s,this.authResolver=u,this.authzService=d,this.dialog=l,this.router=n,this.mfaHandlerService=i,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return Bp(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=pr();this.dialog.open(cb,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return Bp(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const s={};return t.split("&").forEach(u=>{const d=u.split("=");s[d[0]]=d[1]}),this.router.navigate(["service-access"],{queryParams:s,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const s of t)if(e.startsWith(s))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,ii.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const s=sessionStorage.getItem("auth:queryParams");let u=[];s&&(u=s.split("&"));const d={};return u.forEach(l=>{const n=l.split("=");d[n[0]]=n[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:d,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(zr),f.LFG(bo.Ct),f.LFG(mi),f.LFG(Is),f.LFG(lt),f.LFG(Cn),f.LFG(Qt),f.LFG(Op))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),LA=(()=>{class r{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(ql),f.LFG(ti))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),jp=(()=>{class r{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"div",2)(7,"div",3)(8,"button",4),f.NdJ("click",function(){return t.close()}),f._uU(9),f.ALo(10,"translate"),f.qZA()()()),2&e&&(f.xp6(1),f.Oqu(f.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),f.xp6(3),f.hij(" ",f.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),f.xp6(5),f.hij(" ",f.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Ea,Ma,Da,Mi,vi]}),r})(),Fp=(()=>{class r{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ra=(()=>{class r{constructor(e){this.translate=e,this.addNotification=new f.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,s,u,d){this.addNotification.emit({type:"error",error:t,description:s,title:e,actionText:void 0===u&&void 0!==s?this.getDefaultActionMessage():u,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,s,u){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===s&&void 0!==t?this.getDefaultActionMessage():s,delay:this.defaultSuccessDelayMs,icon:"done",action:u,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Bi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),fb=(()=>{class r{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.apiRequestConfiguration=t,this.notificator=s,this.store=u,this.dialog=d,this.initAuthService=l,this.mfaHandlerService=n,this.oauthService=i}intercept(e,t){const s=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==s&&this.isCallToPerunApi(e.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const u=pr();u.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(jp,u),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Et(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const s=this.apiRequestConfiguration.shouldHandleError(),u="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,jt.b)(d=>{d instanceof v.Zn&&u&&this.initAuthService.loadPrincipal()}),(0,Bt.K)(d=>{const l=d.error;if("MfaPrivilegeException"===l.type||"MfaRolePrivilegeException"===l.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===l.type).pipe((0,bt.w)(n=>n?("MfaRolePrivilegeException"===l.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,en._)(()=>l)));{this.handleInvalidAccessTokenError(d);const n=this.formatErrors(d,e);return void 0===n?(0,en._)(()=>d):(s&&this.notificator.showRPCError(n),(0,en._)(()=>n))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let s;console.error(e);const u=e.error;if(u.errorId&&(s=u),void 0!==s)return s.urlWithParams=t.urlWithParams,s.call=t.url,s.payload=t.body,s}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){if(!this.isLoggedIn()||"invalid_token"===e.error.error||null!=this.dialogRefSessionExpiration)return;const t=pr();this.dialogRefSessionExpiration=this.dialog.open(jp,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(zr),f.LFG(Fp),f.LFG(Ra),f.LFG(mi),f.LFG(Cn),f.LFG(Lp),f.LFG(Op),f.LFG(bo.Ct))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),$l=(()=>{class r{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),jA=(()=>{class r{constructor(e,t,s,u){this.http=e,this.notificator=t,this.authService=s,this.storeService=u}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new v.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.get(s,{headers:this.getHeaders()}).pipe((0,Bt.K)(u=>this.formatErrors(u,s,null,t)))}put(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(u,d,{headers:this.getHeaders()}).pipe((0,Bt.K)(l=>this.formatErrors(l,u,d,s)))}post(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let l=this.getHeaders();return l=l.set("Content-Type","application/json; charset=utf-8"),this.http.post(u,d,{headers:l}).pipe((0,Bt.K)(n=>this.formatErrors(n,u,d,s)))}delete(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.delete(s,{headers:this.getHeaders()}).pipe((0,Bt.K)(u=>this.formatErrors(u,s,null,t)))}formatErrors(e,t,s,u){const d=e.error;return d.call=t,d.payload=s,u&&this.notificator.showRPCError(e.error),(0,en._)(d)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(Ra),f.LFG(zr),f.LFG(mi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),mb=(()=>{class r{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),s=navigator.languages.map(l=>l.split("-")[0]),u=location.search.substring(1).split("&");let d=null;for(const l of u){const n=l.split("=");"lang"===n[0]&&(d=n[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:s&&t.includes(s[0])?s[0]:"en"}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Dr),f.LFG(mi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),UA=(()=>{class r{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const u of e)if(u.newApps.admin===t||u.newApps.profile===t||u.newApps.pwdReset===t||u.newApps.consolidator===t||u.newApps.linker===t)return u;return e.filter(u=>"default"===u.name)[0]||e[0]}getUrlForOtherApplication(e,t){const u=window.location.href.split("/"),d=u[0]+"//"+u[2],l=r.getBrandContainingDomain(this.storeService.getAppsConfig().brands,d);let n;if(l.newApps[e])n=l.newApps[e],"pwdReset"===e&&(n+=`?login-namespace=${t}`);else switch(n=l.oldGuiDomain+"/fed",e){case"admin":n+="/gui/";break;case"profile":n+="/profile/";break;case"pwdReset":n+=`/pwd-reset/?login-namespace=${t}`}return n}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(mi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),_b=(()=>{class r{getErrorKey(e){switch(e.name.split("Exception")[0]){case"PasswordDoesntMatch":return"passwordDoesntMatchError";case"PasswordChangeFailed":return"passwordChangeFailedError";case"PasswordCreationFailed":default:return"passwordCreationFailedError";case"PasswordDeletionFailed":return"passwordDeletionFailedError";case"LoginNotExists":return"loginNotExistsError";case"PasswordStrengthFailed":return"passwordStrengthFailedError";case"PasswordOperationTimeout":return"passwordOperationTimeoutError"}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Yl=(()=>{class r{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.Qsj),f.Y36(f.SBq))},r.\u0275dir=f.lG2({type:r}),r})(),Gr=(()=>{class r extends Yl{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275dir=f.lG2({type:r,features:[f.qOj]}),r})();const Qi=new f.OlP("NgValueAccessor"),wb={provide:Qi,useExisting:(0,f.Gpc)(()=>Wr),multi:!0},qA=new f.OlP("CompositionEventMode");let Wr=(()=>{class r extends Yl{constructor(e,t,s){super(e,t),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function As(){const r=(0,M.q)()?(0,M.q)().getUserAgent():"";return/android (\d+)/.test(r.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.Qsj),f.Y36(f.SBq),f.Y36(qA,8))},r.\u0275dir=f.lG2({type:r,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&f.NdJ("input",function(u){return t._handleInput(u.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(u){return t._compositionEnd(u.target.value)})},features:[f._Bn([wb]),f.qOj]}),r})();function Co(r){return null==r||("string"==typeof r||Array.isArray(r))&&0===r.length}function yb(r){return null!=r&&"number"==typeof r.length}const Ai=new f.OlP("NgValidators"),Pa=new f.OlP("NgAsyncValidators"),zA=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class $r{static min(a){return function Np(r){return a=>{if(Co(a.value)||Co(r))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(Co(a.value)||Co(r))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>r?{max:{max:r,actual:a.value}}:null}}(a)}static required(a){return vb(a)}static requiredTrue(a){return function zp(r){return!0===r.value?null:{required:!0}}(a)}static email(a){return function Gp(r){return Co(r.value)||zA.test(r.value)?null:{email:!0}}(a)}static minLength(a){return function Ab(r){return a=>Co(a.value)||!yb(a.value)?null:a.value.lengthyb(a.value)&&a.value.length>r?{maxlength:{requiredLength:r,actualLength:a.value.length}}:null}(a)}static pattern(a){return function Wp(r){if(!r)return ou;let a,e;return"string"==typeof r?(e="","^"!==r.charAt(0)&&(e+="^"),e+=r,"$"!==r.charAt(r.length-1)&&(e+="$"),a=new RegExp(e)):(e=r.toString(),a=r),t=>{if(Co(t.value))return null;const s=t.value;return a.test(s)?null:{pattern:{requiredPattern:e,actualValue:s}}}}(a)}static nullValidator(a){return null}static compose(a){return WA(a)}static composeAsync(a){return $A(a)}}function vb(r){return Co(r.value)?{required:!0}:null}function ou(r){return null}function $p(r){return null!=r}function Qp(r){return(0,f.QGY)(r)?(0,Si.D)(r):r}function Yp(r){let a={};return r.forEach(e=>{a=null!=e?{...a,...e}:a}),0===Object.keys(a).length?null:a}function Jp(r,a){return a.map(e=>e(r))}function Tb(r){return r.map(a=>function GA(r){return!r.validate}(a)?a:e=>a.validate(e))}function WA(r){if(!r)return null;const a=r.filter($p);return 0==a.length?null:function(e){return Yp(Jp(e,a))}}function su(r){return null!=r?WA(Tb(r)):null}function $A(r){if(!r)return null;const a=r.filter($p);return 0==a.length?null:function(e){return mp(Jp(e,a).map(Qp)).pipe((0,pt.U)(Yp))}}function Sb(r){return null!=r?$A(Tb(r)):null}function QA(r,a){return null===r?[a]:Array.isArray(r)?[...r,a]:[r,a]}function YA(r){return r._rawValidators}function JA(r){return r._rawAsyncValidators}function Eb(r){return r?Array.isArray(r)?r:[r]:[]}function Kp(r,a){return Array.isArray(r)?r.includes(a):r===a}function KA(r,a){const e=Eb(a);return Eb(r).forEach(s=>{Kp(e,s)||e.push(s)}),e}function Jl(r,a){return Eb(a).filter(e=>!Kp(r,e))}class ZA{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(a){this._rawValidators=a||[],this._composedValidatorFn=su(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=Sb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Oi extends ZA{get formDirective(){return null}get path(){return null}}class on extends ZA{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Zp{constructor(a){this._cd=a}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Ia=(()=>{class r extends Zp{constructor(e){super(e)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(on,2))},r.\u0275dir=f.lG2({type:r,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&f.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[f.qOj]}),r})(),lu=(()=>{class r extends Zp{constructor(e){super(e)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Oi,10))},r.\u0275dir=f.lG2({type:r,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&f.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[f.qOj]}),r})();const du="VALID",Yi="INVALID",xs="PENDING",wo="DISABLED";function nf(r){return(hu(r)?r.validators:r)||null}function Ji(r){return Array.isArray(r)?su(r):r||null}function rf(r,a){return(hu(a)?a.asyncValidators:r)||null}function uu(r){return Array.isArray(r)?Sb(r):r||null}function hu(r){return null!=r&&!Array.isArray(r)&&"object"==typeof r}function Hb(r,a,e){const t=r.controls;if(!(a?Object.keys(t):t).length)throw new f.vHH(1e3,"");if(!t[e])throw new f.vHH(1001,"")}function pu(r,a,e){r._forEachChild((t,s)=>{if(void 0===e[s])throw new f.vHH(1002,"")})}class Zl{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=Ji(this._rawValidators),this._composedAsyncValidatorFn=uu(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===du}get invalid(){return this.status===Yi}get pending(){return this.status==xs}get disabled(){return this.status===wo}get enabled(){return this.status!==wo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=Ji(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=uu(a)}addValidators(a){this.setValidators(KA(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(KA(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(Jl(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(Jl(a,this._rawAsyncValidators))}hasValidator(a){return Kp(this._rawValidators,a)}hasAsyncValidator(a){return Kp(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=xs,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=wo,this.errors=null,this._forEachChild(t=>{t.disable({...a,onlySelf:!0})}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=du,this._forEachChild(t=>{t.enable({...a,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===du||this.status===xs)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?wo:du}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=xs,this._hasOwnPendingAsyncValidator=!0;const e=Qp(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){let e=a;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,s)=>t&&t._find(s),this)}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new f.vpe,this.statusChanges=new f.vpe}_calculateStatus(){return this._allControlsDisabled()?wo:this.errors?Yi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(xs)?xs:this._anyControlsHaveStatus(Yi)?Yi:du}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){hu(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(a){return null}}class Xl extends Zl{constructor(a,e,t){super(nf(e),rf(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){pu(this,0,a),Object.keys(a).forEach(t=>{Hb(this,!0,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{const s=this.controls[t];s&&s.patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,s)=>{t.reset(a[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=e.getRawValue(),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&a(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,s)=>((t.enabled||this.disabled)&&(e[s]=t.value),e))}_reduceChildren(a,e){let t=a;return this._forEachChild((s,u)=>{t=e(t,s,u)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null}}function ec(r,a){return[...a.path,r]}function tc(r,a){ic(r,a),a.valueAccessor.writeValue(r.value),r.disabled&&a.valueAccessor.setDisabledState?.(!0),function a0(r,a){a.valueAccessor.registerOnChange(e=>{r._pendingValue=e,r._pendingChange=!0,r._pendingDirty=!0,"change"===r.updateOn&&Ib(r,a)})}(r,a),function o0(r,a){const e=(t,s)=>{a.valueAccessor.writeValue(t),s&&a.viewToModelUpdate(t)};r.registerOnChange(e),a._registerOnDestroy(()=>{r._unregisterOnChange(e)})}(r,a),function bE(r,a){a.valueAccessor.registerOnTouched(()=>{r._pendingTouched=!0,"blur"===r.updateOn&&r._pendingChange&&Ib(r,a),"submit"!==r.updateOn&&r.markAsTouched()})}(r,a),function Pb(r,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};r.registerOnDisabledChange(e),a._registerOnDestroy(()=>{r._unregisterOnDisabledChange(e)})}}(r,a)}function Ts(r,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),wn(r,a),r&&(a._invokeOnDestroyCallbacks(),r._registerOnCollectionChange(()=>{}))}function Nn(r,a){r.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function ic(r,a){const e=YA(r);null!==a.validator?r.setValidators(QA(e,a.validator)):"function"==typeof e&&r.setValidators([e]);const t=JA(r);null!==a.asyncValidator?r.setAsyncValidators(QA(t,a.asyncValidator)):"function"==typeof t&&r.setAsyncValidators([t]);const s=()=>r.updateValueAndValidity();Nn(a._rawValidators,s),Nn(a._rawAsyncValidators,s)}function wn(r,a){let e=!1;if(null!==r){if(null!==a.validator){const s=YA(r);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==a.validator);u.length!==s.length&&(e=!0,r.setValidators(u))}}if(null!==a.asyncValidator){const s=JA(r);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==a.asyncValidator);u.length!==s.length&&(e=!0,r.setAsyncValidators(u))}}}const t=()=>{};return Nn(a._rawValidators,t),Nn(a._rawAsyncValidators,t),e}function Ib(r,a){r._pendingDirty&&r.markAsDirty(),r.setValue(r._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(r._pendingValue),r._pendingChange=!1}function kb(r,a){ic(r,a)}function fu(r,a){if(!r.hasOwnProperty("model"))return!1;const e=r.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function mu(r,a){r._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function gu(r,a){if(!a)return null;let e,t,s;return Array.isArray(a),a.forEach(u=>{u.constructor===Wr?e=u:function yE(r){return Object.getPrototypeOf(r.constructor)===Gr}(u)?t=u:s=u}),s||t||e||null}const Bb={provide:Oi,useExisting:(0,f.Gpc)(()=>ka)},Ss=(()=>Promise.resolve(null))();let ka=(()=>{class r extends Oi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new f.vpe,this.form=new Xl({},su(e),Sb(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ss.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),tc(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ss.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ss.then(()=>{const t=this._findContainer(e.path),s=new Xl({});kb(s,e),t.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ss.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Ss.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,mu(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Ai,10),f.Y36(Pa,10))},r.\u0275dir=f.lG2({type:r,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&f.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[f._Bn([Bb]),f.qOj]}),r})();function nc(r,a){const e=r.indexOf(a);e>-1&&r.splice(e,1)}function sf(r){return"object"==typeof r&&null!==r&&2===Object.keys(r).length&&"value"in r&&"disabled"in r}const Va=class extends Zl{constructor(a=null,e,t){super(nf(e),rf(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hu(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=sf(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){nc(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){nc(this._onDisabledChange,a)}_forEachChild(a){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(a){sf(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}},Ob=Va,h0={provide:on,useExisting:(0,f.Gpc)(()=>lf)},p0=(()=>Promise.resolve(null))();let lf=(()=>{class r extends on{constructor(e,t,s,u,d){super(),this._changeDetectorRef=d,this.control=new Va,this._registered=!1,this.update=new f.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=gu(0,u)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),fu(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){tc(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){p0.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,s=0!==t&&(0,f.D6c)(t);p0.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?ec(e,this._parent):[e]}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Oi,9),f.Y36(Ai,10),f.Y36(Pa,10),f.Y36(Qi,10),f.Y36(f.sBO,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[f._Bn([h0]),f.qOj,f.TTD]}),r})(),Fb=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();const rc=new f.OlP("NgModelWithFormControlWarning"),hf={provide:on,useExisting:(0,f.Gpc)(()=>_u)};let _u=(()=>{class r extends on{constructor(e,t,s,u){super(),this._ngModelWarningConfig=u,this.update=new f.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=gu(0,s)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Ts(t,this,!1),tc(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}fu(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ts(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return r._ngModelWarningSentOnce=!1,r.\u0275fac=function(e){return new(e||r)(f.Y36(Ai,10),f.Y36(Pa,10),f.Y36(Qi,10),f.Y36(rc,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[f._Bn([hf]),f.qOj,f.TTD]}),r})();const pf={provide:Oi,useExisting:(0,f.Gpc)(()=>Qr)};let Qr=(()=>{class r extends Oi{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new f.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(wn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return tc(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Ts(e.control||null,e,!1),function Vb(r,a){const e=r.indexOf(a);e>-1&&r.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,mu(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,s=this.form.get(e.path);t!==s&&(Ts(t||null,e),(r=>r instanceof Va)(s)&&(tc(s,e),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);kb(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function s0(r,a){return wn(r,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ic(this.form,this),this._oldForm&&wn(this._oldForm,this)}_checkFormPresent(){}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Ai,10),f.Y36(Pa,10))},r.\u0275dir=f.lG2({type:r,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&f.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[f._Bn([pf]),f.qOj,f.TTD]}),r})();const qb={provide:on,useExisting:(0,f.Gpc)(()=>ff)};let ff=(()=>{class r extends on{constructor(e,t,s,u,d){super(),this._ngModelWarningConfig=d,this._added=!1,this.update=new f.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=gu(0,u)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),fu(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ec(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return r._ngModelWarningSentOnce=!1,r.\u0275fac=function(e){return new(e||r)(f.Y36(Oi,13),f.Y36(Ai,10),f.Y36(Pa,10),f.Y36(Qi,10),f.Y36(rc,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[f._Bn([qb]),f.qOj,f.TTD]}),r})(),vo=(()=>{class r{constructor(){this._validator=ou}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):ou,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,features:[f.TTD]}),r})();const x0={provide:Ai,useExisting:(0,f.Gpc)(()=>Ao),multi:!0};let Ao=(()=>{class r extends vo{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=f.D6c,this.createValidator=e=>vb}enabled(e){return e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275dir=f.lG2({type:r,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&f.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[f._Bn([x0]),f.qOj]}),r})(),b=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Fb]}),r})(),C=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[b]}),r})(),y=(()=>{class r{static withConfig(e){return{ngModule:r,providers:[{provide:rc,useValue:e.warnOnNgModelWithFormControl}]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[b]}),r})();class x extends Zl{constructor(a,e,t){super(nf(e),rf(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[this._adjustIndex(a)]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){let t=this._adjustIndex(a);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){let s=this._adjustIndex(a);s<0&&(s=0),this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),this.controls.splice(s,1),e&&(this.controls.splice(s,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){pu(this,0,a),a.forEach((t,s)=>{Hb(this,!1,s),this.at(s).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,s)=>{this.at(s)&&this.at(s).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,s)=>{t.reset(a[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>a.getRawValue())}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_adjustIndex(a){return a<0?a+this.length:a}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}_find(a){return this.at(a)??null}}function D(r){return!!r&&(void 0!==r.asyncValidators||void 0!==r.validators||void 0!==r.updateOn)}let H=(()=>{class r{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new r;return e.useNonNullable=!0,e}group(e,t=null){const s=this._reduceControls(e);let u={};return D(t)?u=t:null!==t&&(u.validators=t.validator,u.asyncValidators=t.asyncValidator),new Xl(s,u)}control(e,t,s){let u={};return this.useNonNullable?(D(t)?u=t:(u.validators=t,u.asyncValidators=s),new Va(e,{...u,nonNullable:!0})):new Va(e,t,s)}array(e,t,s){const u=e.map(d=>this._createControl(d));return new x(u,t,s)}_reduceControls(e){const t={};return Object.keys(e).forEach(s=>{t[s]=this._createControl(e[s])}),t}_createControl(e){return e instanceof Va||e instanceof Zl?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:y}),r})();const te=fn({passive:!0});let se=(()=>{class r{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ar.E;const t=Gt(e),s=this._monitoredElements.get(t);if(s)return s.subject;const u=new He.x,d="cdk-text-field-autofilled",l=n=>{"cdk-text-field-autofill-start"!==n.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===n.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",l,te),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:u,unlisten:()=>{t.removeEventListener("animationstart",l,te)}}),u}stopMonitoring(e){const t=Gt(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt),f.LFG(f.R0b))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Se=(()=>{class r{constructor(e,t,s,u){this._elementRef=e,this._platform=t,this._ngZone=s,this._destroyed=new He.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=d=>{this._hasFocus="focus"===d.type},this._document=u,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=wi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=wi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=Ye(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{xl(this._getWindow(),"resize").pipe(Uh(16),_t(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",s=this._platform.FIREFOX,u=s&&this._hasFocus,d=s?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";u&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(d);const l=e.scrollHeight-4;return e.classList.remove(d),u&&(e.style.marginBottom=t),l}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,s=t.value;if(!e&&this._minRows===this._previousMinRows&&s===this._previousValue)return;const u=this._measureScrollHeight(),d=Math.max(u,this._cachedPlaceholderHeight||0);t.style.height=`${d}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=s,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:s}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,s)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(Yt),f.Y36(f.R0b),f.Y36(M.K0,8))},r.\u0275dir=f.lG2({type:r,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&f.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),r})(),Ie=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();const Ze=new f.OlP("MAT_INPUT_VALUE_ACCESSOR"),ve=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Qe=0;const Ct=By(class{constructor(r,a,e,t){this._defaultErrorStateMatcher=r,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new He.x}});let It=(()=>{class r extends Ct{constructor(e,t,s,u,d,l,n,i,o,c){super(l,u,d,s),this._elementRef=e,this._platform=t,this._autofillMonitor=i,this._formField=c,this._uid="mat-input-"+Qe++,this.focused=!1,this.stateChanges=new He.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>Qc().has(g)),this._iOSKeyupListener=g=>{const p=g.target;!p.value&&0===p.selectionStart&&0===p.selectionEnd&&(p.setSelectionRange(1,1),p.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,m=h.nodeName.toLowerCase();this._inputValueAccessor=n||h,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&o.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===m,this._isTextarea="textarea"===m,this._isInFormField=!!c,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ye(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator($r.required)??!1}set required(e){this._required=Ye(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Qc().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ye(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=t,t?s.setAttribute("placeholder",t):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){ve.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(Yt),f.Y36(on,10),f.Y36(ka,8),f.Y36(Qr,8),f.Y36(yl),f.Y36(Ze,10),f.Y36(se),f.Y36(f.R0b),f.Y36(sp,8))},r.\u0275dir=f.lG2({type:r,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&f.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(f.Ikx("disabled",t.disabled)("required",t.required),f.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),f.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[f._Bn([{provide:Fr,useExisting:r}]),f.qOj,f.TTD]}),r})(),qn=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[yl],imports:[Ie,xa,$e,Ie,xa]}),r})();function _f(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let bf=(()=>{class r{constructor(e,t,s,u,d){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=u,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",E(4147).i8)}close(){this.dialogRef.close()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr),f.Y36(Bi),f.Y36(Ra),f.Y36(Vo),f.Y36(mi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),f._uU(6),f.ALo(7,"translate"),f.qZA(),f.TgZ(8,"input",2,3),f.NdJ("ngModelChange",function(u){return t.subject=u}),f.qZA(),f.YNc(10,_f,3,3,"mat-error",4),f.qZA(),f.TgZ(11,"mat-form-field")(12,"mat-label"),f._uU(13),f.ALo(14,"translate"),f.qZA(),f.TgZ(15,"textarea",5),f.NdJ("ngModelChange",function(u){return t.message=u}),f.ALo(16,"translate"),f._uU(17," "),f.qZA(),f.TgZ(18,"mat-hint"),f._uU(19),f.ALo(20,"translate"),f.qZA()()(),f.TgZ(21,"div",6)(22,"div",7)(23,"button",8),f.NdJ("click",function(){return t.close()}),f._uU(24),f.ALo(25,"translate"),f.qZA(),f.TgZ(26,"button",9),f.NdJ("click",function(){return t.sendBugReport()}),f._uU(27),f.ALo(28,"translate"),f.qZA()()()),2&e){const s=f.MAs(9);f.xp6(1),f.Oqu(f.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),f.xp6(5),f.Oqu(f.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),f.xp6(2),f.Q6J("ngModel",t.subject),f.xp6(2),f.Q6J("ngIf",s.invalid),f.xp6(3),f.Oqu(f.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),f.xp6(2),f.s9C("placeholder",f.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),f.Q6J("ngModel",t.message),f.xp6(4),f.Oqu(f.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),f.xp6(5),f.hij(" ",f.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),f.xp6(2),f.Q6J("disabled",s.invalid),f.xp6(1),f.hij(" ",f.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[M.O5,Wr,Ia,Ao,lf,Mi,_s,Vl,yS,Aa,It,Ea,Ma,Da,vi],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),r})(),Cf=(()=>{class r{transform(e,t,s){return e[`${s}_${t}`]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=f.Yjl({name:"localisedText",type:r,pure:!0}),r})(),wf=(()=>{class r{transform(e,t){return e["link_"+t]||e.link_en}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=f.Yjl({name:"localisedLink",type:r,pure:!0}),r})(),yf=(()=>{class r{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=f.Yjl({name:"footerLogoPath",type:r,pure:!0}),r})();function vf(r,a){if(1&r&&(f.TgZ(0,"a",13),f.ALo(1,"localisedLink"),f._UZ(2,"img",14),f.ALo(3,"footerLogoPath"),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw(3);f.Q6J("href",f.xi3(1,2,e,t.language),f.LSH),f.xp6(2),f.s9C("src",f.lcZ(3,5,e.logo),f.LSH)}}function Af(r,a){if(1&r&&(f.TgZ(0,"span"),f._UZ(1,"img",14),f.ALo(2,"footerLogoPath"),f.qZA()),2&r){const e=f.oxw().$implicit;f.xp6(1),f.s9C("src",f.lcZ(2,1,e.logo),f.LSH)}}function xf(r,a){if(1&r&&(f.TgZ(0,"div"),f.YNc(1,vf,4,7,"a",11),f.ALo(2,"localisedLink"),f.YNc(3,Af,3,3,"span",12),f.ALo(4,"localisedLink"),f.qZA()),2&r){const e=a.$implicit,t=f.oxw(3);f.xp6(1),f.Q6J("ngIf",f.xi3(2,2,e,t.language)),f.xp6(2),f.Q6J("ngIf",!f.xi3(4,5,e,t.language))}}const Tf=function(r){return{"min-height":r}};function dH(r,a){if(1&r&&(f.TgZ(0,"div",10),f.YNc(1,xf,5,8,"div",5),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw();f.Q6J("ngStyle",f.VKq(2,Tf,t.columnContentHeight+"px")),f.xp6(1),f.Q6J("ngForOf",e.elements)}}const xo=function(r){return{color:r}};function uH(r,a){if(1&r&&(f.TgZ(0,"i",20),f._uU(1),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw(3);f.Q6J("ngStyle",f.VKq(2,xo,t.linksTextColor)),f.xp6(1),f.hij(" ",e.icon," ")}}function hH(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"span",21),f.NdJ("click",function(){f.CHM(e);const s=f.oxw().$implicit,u=f.oxw(3);return f.KtG(u.openDialog(s.dialog))}),f._uU(1),f.ALo(2,"localisedText"),f.qZA()}if(2&r){const e=f.oxw().$implicit,t=f.oxw(3);f.Q6J("ngStyle",f.VKq(6,xo,t.linksTextColor)),f.xp6(1),f.hij("",f.Dn7(2,2,e,t.language,"label")," ")}}function pH(r,a){if(1&r&&(f.TgZ(0,"a",22),f.ALo(1,"localisedLink"),f._uU(2),f.ALo(3,"localisedText"),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw(3);f.Q6J("href",f.xi3(1,3,e,t.language),f.LSH)("ngStyle",f.VKq(10,xo,t.linksTextColor)),f.xp6(2),f.Oqu(f.Dn7(3,6,e,t.language,"label"))}}function fH(r,a){if(1&r&&(f.TgZ(0,"span",10),f._uU(1),f.ALo(2,"localisedText"),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw(3);f.Q6J("ngStyle",f.VKq(6,xo,t.linksTextColor)),f.xp6(1),f.Oqu(f.Dn7(2,2,e,t.language,"label"))}}function mH(r,a){if(1&r&&(f.TgZ(0,"div",16),f.YNc(1,uH,2,4,"i",17),f.YNc(2,hH,3,8,"span",18),f.YNc(3,pH,4,12,"a",19),f.ALo(4,"localisedLink"),f.YNc(5,fH,3,8,"span",9),f.ALo(6,"localisedLink"),f.qZA()),2&r){const e=a.$implicit,t=f.oxw(3);f.xp6(1),f.Q6J("ngIf",e.icon),f.xp6(1),f.Q6J("ngIf",e.dialog),f.xp6(1),f.Q6J("ngIf",f.xi3(4,4,e,t.language)&&!e.dialog),f.xp6(2),f.Q6J("ngIf",!f.xi3(6,7,e,t.language)&&!e.dialog)}}const gH=function(r){return{height:r}};function _H(r,a){if(1&r&&(f.TgZ(0,"div",10),f.YNc(1,mH,7,10,"div",15),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw();f.Q6J("ngStyle",f.VKq(2,gH,t.columnContentHeight+"px")),f.xp6(1),f.Q6J("ngForOf",e.elements)}}function bH(r,a){if(1&r&&(f.TgZ(0,"div",7)(1,"h6",8),f._uU(2),f.ALo(3,"localisedText"),f.qZA(),f.YNc(4,dH,2,4,"div",9),f.YNc(5,_H,2,4,"div",9),f.qZA()),2&r){const e=a.$implicit,t=f.oxw();f.ekj("my-auto",t.containsLogos),f.xp6(1),f.Q6J("ngStyle",f.VKq(10,xo,t.headersTextColor)),f.xp6(1),f.hij(" ",f.Dn7(3,6,e,t.language,"title")," "),f.xp6(2),f.Q6J("ngIf",e.logos),f.xp6(1),f.Q6J("ngIf",e.elements&&!e.logos)}}function CH(r,a){if(1&r&&(f.TgZ(0,"span")(1,"a",6),f._uU(2),f.qZA()()),2&r){const e=a.$implicit,t=a.index,s=f.oxw();f.xp6(1),f.Q6J("href",e.url,f.LSH)("ngStyle",f.VKq(3,xo,s.copyrightTextColor)),f.xp6(1),f.Oqu(t?", "+e.name:e.name)}}const wH=function(r){return{background:r}};let IE=(()=>{class r{constructor(e,t,s,u){this.storeService=e,this.translateService=t,this.utilsService=s,this.dialog=u,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="N/A",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=E(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=E(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(e=>{const t=e.match("\\bVersion:\\s*([^,\\s]+)");null!==t&&(this.backendVersion=t[1])}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(e){const t=pr();"reportIssue"===e&&(t.width="550px",this.dialog.open(bf,t))}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(mi),f.Y36(Bi),f.Y36(ea),f.Y36(Cn))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(f.TgZ(0,"footer",0)(1,"div",1),f.YNc(2,bH,6,12,"div",2),f.qZA(),f._UZ(3,"hr",3),f.TgZ(4,"div",4),f._uU(5),f.YNc(6,CH,3,5,"span",5),f._uU(7,", web application: "),f.TgZ(8,"a",6),f._uU(9),f.qZA(),f._uU(10,", server: "),f.TgZ(11,"a",6),f._uU(12),f.qZA()()()),2&e&&(f.Q6J("ngStyle",f.VKq(11,wH,t.bgColor)),f.xp6(2),f.Q6J("ngForOf",t.footerColumns),f.xp6(2),f.Q6J("ngStyle",f.VKq(13,xo,t.copyrightTextColor)),f.xp6(1),f.hij(" \xa9 ",t.currentYear," Copyright: "),f.xp6(1),f.Q6J("ngForOf",t.copyrightItems),f.xp6(2),f.Q6J("href",t.githubRepository,f.LSH)("ngStyle",f.VKq(15,xo,t.copyrightTextColor)),f.xp6(1),f.Oqu(t.guiVersion),f.xp6(2),f.Q6J("href",t.githubBackendRepository,f.LSH)("ngStyle",f.VKq(17,xo,t.copyrightTextColor)),f.xp6(1),f.Oqu(t.backendVersion))},dependencies:[M.sg,M.O5,M.PC,Cf,wf,yf],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),r})(),yH=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez]}),r})(),kE=(()=>{class r{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const s=this.storage.getProperty("custom_labels");if(s)for(const u of s)if(u.label===e)return u[t];return e}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Bi,16),f.Y36(mi,16))},r.\u0275pipe=f.Yjl({name:"customTranslate",type:r,pure:!0}),r})();function vH(r,a){if(1&r&&(f.O4$(),f._UZ(0,"circle",4)),2&r){const e=f.oxw(),t=f.MAs(1);f.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),f.uIk("r",e._getCircleRadius())}}function AH(r,a){if(1&r&&(f.O4$(),f._UZ(0,"circle",4)),2&r){const e=f.oxw(),t=f.MAs(1);f.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),f.uIk("r",e._getCircleRadius())}}const TH=ar(class{constructor(r){this._elementRef=r}},"primary"),SH=new f.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function EH(){return{diameter:100}}});class Yr extends TH{constructor(a,e,t,s,u,d,l,n){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=wt.w0.EMPTY,this.mode="determinate";const i=Yr._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),i.has(t.head)||i.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===s&&!!u&&!u._forceAnimations,"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),u&&(u.color&&(this.color=this.defaultColor=u.color),u.diameter&&(this.diameter=u.diameter),u.strokeWidth&&(this.strokeWidth=u.strokeWidth)),e.isBrowser&&e.SAFARI&&l&&d&&n&&(this._resizeSubscription=l.change(150).subscribe(()=>{"indeterminate"===this.mode&&n.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=wi(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=wi(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,wi(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Kc(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){const e=50*(a.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Yr._diameters;let s=t.get(a);if(!s||!s.has(e)){const u=this._document.createElement("style");u.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),u.textContent=this._getAnimationText(),a.appendChild(u),s||(s=new Set,t.set(a,s)),s.add(e)}}_getAnimationText(){const a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Yr._diameters=new WeakMap,Yr.\u0275fac=function(a){return new(a||Yr)(f.Y36(f.SBq),f.Y36(Yt),f.Y36(M.K0,8),f.Y36(f.QbO,8),f.Y36(SH),f.Y36(f.sBO),f.Y36(Lr),f.Y36(f.R0b))},Yr.\u0275cmp=f.Xpm({type:Yr,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(f.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),f.Udp("width",e.diameter,"px")("height",e.diameter,"px"),f.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[f.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(f.O4$(),f.TgZ(0,"svg",0,1),f.YNc(2,vH,1,11,"circle",2),f.YNc(3,AH,1,9,"circle",3),f.qZA()),2&a&&(f.Udp("width",e.diameter,"px")("height",e.diameter,"px"),f.Q6J("ngSwitch","indeterminate"===e.mode),f.uIk("viewBox",e._getViewBox()),f.xp6(2),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngSwitchCase",!1))},dependencies:[M.RF,M.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let Sf=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,M.ez,$e]}),r})(),Jb=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Un,M.ez]}),r})(),DH=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,xa,go,y,qn,ws,Sf,Un,Jb]}),r})();class HH{isErrorState(a){return!(!a?.invalid||!a?.dirty)}}const RH=(r,a,e,t=!1,s=500)=>u=>(0,Fh.H)(s).pipe((0,bt.w)(()=>(e.dontHandleErrorForNext(),r&&"No namespace"!==r?a.checkPasswordStrength({password:u.value,namespace:r},t):(0,ke.of)(null))),(0,pt.U)(()=>null),(0,Bt.K)(d=>{const l={backendError:d.message.substring(d.message.indexOf(":")+1)};return(0,ke.of)(l)}));function PH(r,a){1&r&&f._UZ(0,"mat-spinner",12),2&r&&f.Q6J("diameter",18)}function IH(r,a){if(1&r&&(f.TgZ(0,"mat-icon",13),f._uU(1," error "),f.qZA()),2&r){const e=f.oxw();f.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function kH(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function VH(r,a){if(1&r&&(f.TgZ(0,"mat-error",14),f._uU(1),f.qZA()),2&r){const e=f.oxw();f.Q6J("matTooltip",e.getErrorTooltip()),f.xp6(1),f.Oqu(e.getErrorTooltip())}}function BH(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function OH(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let LH=(()=>{class r{constructor(e,t,s){this.translator=e,this.usersManagerService=t,this.store=s,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new HH,this.allPasswordRequirements=this.store.getProperty("password_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const t=e.userAttributes.find(s=>"preferredLanguage"===s.friendlyName);this.language=t?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}changeHelp(){this.passwordRequirement=this.allPasswordRequirements[this.namespace],this.passwordRequirement||(this.passwordRequirement=this.allPasswordRequirements.default)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Bi),f.Y36(xn),f.Y36(mi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",language:"language"},features:[f.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(f.TgZ(0,"div",0)(1,"mat-form-field",1),f._UZ(2,"input",2),f.ALo(3,"translate"),f.YNc(4,PH,1,1,"mat-spinner",3),f.TgZ(5,"mat-icon",4),f.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),f._uU(6),f.qZA(),f.YNc(7,IH,2,2,"mat-icon",5),f.YNc(8,kH,3,3,"mat-error",6),f.YNc(9,VH,2,2,"mat-error",7),f.qZA(),f.TgZ(10,"mat-form-field",8)(11,"mat-label"),f._uU(12),f.ALo(13,"translate"),f.qZA(),f._UZ(14,"input",9),f.TgZ(15,"mat-icon",4),f.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),f._uU(16),f.qZA(),f.YNc(17,BH,3,3,"mat-error",6),f.YNc(18,OH,3,3,"mat-error",6),f.qZA(),f.TgZ(19,"perun-web-apps-alert",10),f._UZ(20,"div",11),f.qZA()()),2&e&&(f.Q6J("formGroup",t.formGroup),f.xp6(1),f.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled||t.tooltipPwdDisabledForNamespace),f.xp6(1),f.s9C("placeholder",f.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),f.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),f.xp6(2),f.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),f.xp6(2),f.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),f.xp6(1),f.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),f.xp6(1),f.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),f.xp6(1),f.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),f.xp6(3),f.Oqu(f.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),f.xp6(2),f.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),f.xp6(2),f.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),f.xp6(1),f.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),f.xp6(1),f.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),f.xp6(2),f.Q6J("innerHTML",t.passwordRequirement,f.oJD))},dependencies:[M.O5,_s,Vl,Aa,lr,qd,Wr,Ia,lu,Ao,Qr,ff,It,Yr,Nr,Ha,vi],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),r})();function WH(r,a){1&r&&f._UZ(0,"mat-spinner",7)}function $H(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function QH(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function YH(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),f._uU(3),f.ALo(4,"translate"),f.qZA(),f.TgZ(5,"input",9,10),f.NdJ("ngModelChange",function(s){f.CHM(e);const u=f.oxw();return f.KtG(u.subject=s)}),f.qZA(),f.YNc(7,$H,3,3,"mat-error",11),f.qZA(),f.TgZ(8,"mat-form-field")(9,"mat-label"),f._uU(10),f.ALo(11,"translate"),f.qZA(),f.TgZ(12,"textarea",12,13),f.NdJ("ngModelChange",function(s){f.CHM(e);const u=f.oxw();return f.KtG(u.message=s)}),f.ALo(14,"translate"),f._uU(15," "),f.qZA(),f.YNc(16,QH,3,3,"mat-error",11),f.qZA()()}if(2&r){const e=f.MAs(6),t=f.MAs(13),s=f.oxw();f.xp6(3),f.Oqu(f.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),f.xp6(2),f.Q6J("ngModel",s.subject),f.xp6(2),f.Q6J("ngIf",e.invalid),f.xp6(3),f.Oqu(f.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),f.xp6(2),f.s9C("placeholder",f.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),f.Q6J("ngModel",s.message),f.xp6(4),f.Q6J("ngIf",t.invalid)}}let JH=(()=>{class r{constructor(e,t,s,u,d,l){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=u,this.data=d,this.storeService=l,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const s=/"password":".+?"/;let u=JSON.stringify(this.data.error.payload);u=u.replace(s,'"password":"####"'),t=t.concat("Payload:\n"+u+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",E(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr),f.Y36(Bi),f.Y36(Ra),f.Y36(Vo),f.Y36(Sa),f.Y36(mi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.YNc(3,WH,1,0,"mat-spinner",1),f.YNc(4,YH,17,13,"div",2),f.TgZ(5,"div",3)(6,"div",4)(7,"button",5),f.NdJ("click",function(){return t.dialogRef.close()}),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.TgZ(10,"button",6),f.NdJ("click",function(){return t.sendBugReport()}),f._uU(11),f.ALo(12,"translate"),f.qZA()()()),2&e&&(f.xp6(1),f.Oqu(f.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),f.xp6(2),f.Q6J("ngIf",t.loading),f.xp6(1),f.Q6J("ngIf",!t.loading),f.xp6(4),f.hij(" ",f.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),f.xp6(2),f.Q6J("disabled",""===t.message||""===t.subject||t.loading),f.xp6(1),f.hij(" ",f.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[M.O5,Ea,Ma,Da,Mi,_s,Vl,Aa,Wr,Ia,Ao,lf,It,Yr,vi],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),r})(),KH=(()=>{class r{constructor(e,t,s){this.dialogRef=e,this.dialog=t,this.data=s}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=pr();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(JH,e)}),this.dialogRef.close()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr),f.Y36(Cn),f.Y36(Sa))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.qZA(),f.TgZ(2,"div",1),f._uU(3),f.qZA(),f.TgZ(4,"div",2)(5,"div",3)(6,"button",4),f.NdJ("click",function(){return t.onBugReportClick()}),f._uU(7),f.ALo(8,"translate"),f.qZA(),f.TgZ(9,"button",5),f.NdJ("click",function(){return t.onCloseClick()}),f._uU(10),f.ALo(11,"translate"),f.qZA()()()),2&e&&(f.xp6(1),f.Oqu(t.data.title),f.xp6(2),f.hij(" ",t.data.description,"\n"),f.xp6(3),f.Q6J("hidden","error"!==t.data.type),f.xp6(1),f.hij(" ",f.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),f.xp6(3),f.hij(" ",f.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Ea,Ma,Da,Mi,vi]}),r})();function gR(r,a){1&r&&(f.TgZ(0,"mat-error",8),f._uU(1),f.ALo(2,"translate"),f.ALo(3,"customTranslate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,f.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class To{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Ob(null,[$r.required,$r.pattern(To.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const a=this.data.attribute?.value??[],e=this.sshControl.value;a.includes(e)||a.push(e),this.data.attribute.value=a,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{a.pop()})}}function vR(r,a){if(1&r&&(f.TgZ(0,"div",9),f._UZ(1,"perun-web-apps-notification",10),f.qZA()),2&r){const e=a.$implicit;f.xp6(1),f.Q6J("data",e)("inDialog",!0)}}function AR(r,a){if(1&r&&(f.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),f.YNc(2,vR,2,2,"div",8),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.Q6J("cdkVirtualForOf",e.notifications)}}function xR(r,a){1&r&&(f.TgZ(0,"perun-web-apps-alert",11),f._uU(1),f.ALo(2,"translate"),f.ALo(3,"customTranslate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,f.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}To.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],To.sshKeyPattern="^("+To.allowedSshKeys.join("|")+").+$",To.\u0275fac=function(a){return new(a||To)(f.Y36(hr),f.Y36(Sa),f.Y36(Cr))},To.\u0275cmp=f.Xpm({type:To,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(a,e){1&a&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.ALo(3,"customTranslate"),f.qZA(),f.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),f._UZ(7,"textarea",3),f.ALo(8,"translate"),f.ALo(9,"customTranslate"),f.qZA(),f.YNc(10,gR,4,5,"mat-error",4),f.qZA()(),f.TgZ(11,"div",5)(12,"button",6),f.NdJ("click",function(){return e.onCancel()}),f._uU(13),f.ALo(14,"translate"),f.ALo(15,"customTranslate"),f.qZA(),f.TgZ(16,"button",7),f.NdJ("click",function(){return e.onSubmit()}),f._uU(17),f.ALo(18,"translate"),f.ALo(19,"customTranslate"),f.qZA()()),2&a&&(f.xp6(1),f.Oqu(f.lcZ(2,7,f.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),f.xp6(6),f.s9C("placeholder",f.lcZ(8,11,f.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),f.Q6J("formControl",e.sshControl),f.xp6(3),f.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),f.xp6(3),f.hij(" ",f.lcZ(14,15,f.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),f.xp6(3),f.Q6J("disabled",e.sshControl.invalid),f.xp6(1),f.hij(" ",f.lcZ(18,19,f.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[M.O5,Wr,Ia,Ao,Mi,_s,Vl,_u,Se,It,Ea,Ma,Da,vi,kE],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let BE=(()=>{class r{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr),f.Y36($l))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.ALo(3,"customTranslate"),f.qZA(),f.YNc(4,AR,3,1,"div",1),f.YNc(5,xR,4,5,"perun-web-apps-alert",2),f.TgZ(6,"div",3)(7,"button",4),f.NdJ("click",function(){return t.onClear()}),f._uU(8),f.ALo(9,"translate"),f.ALo(10,"customTranslate"),f.qZA(),f.TgZ(11,"button",5),f.NdJ("click",function(){return t.onCancel()}),f._uU(12),f.ALo(13,"translate"),f.ALo(14,"customTranslate"),f.qZA()()),2&e&&(f.xp6(1),f.Oqu(f.lcZ(2,5,f.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),f.xp6(3),f.Q6J("ngIf",0!==t.notifications.length),f.xp6(1),f.Q6J("ngIf",0===t.notifications.length),f.xp6(3),f.hij(" ",f.lcZ(9,9,f.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),f.xp6(4),f.hij(" ",f.lcZ(13,13,f.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),r})();var yu=(()=>{return(r=yu||(yu={})).Admin="admin",r.Profile="profile",r.PwdReset="pwdReset",r.Consolidator="consolidator",r.Linker="linker",yu;var r})();const TR=["*",[["mat-toolbar-row"]]],SR=["*","mat-toolbar-row"],ER=ar(class{constructor(r){this._elementRef=r}});let MR=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),r})(),DR=(()=>{class r extends ER{constructor(e,t,s){super(e),this._platform=t,this._document=s}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(Yt),f.Y36(M.K0))},r.\u0275cmp=f.Xpm({type:r,selectors:[["mat-toolbar"]],contentQueries:function(e,t,s){if(1&e&&f.Suo(s,MR,5),2&e){let u;f.iGM(u=f.CRH())&&(t._toolbarRows=u)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&f.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[f.qOj],ngContentSelectors:SR,decls:2,vars:0,template:function(e,t){1&e&&(f.F$t(TR),f.Hsn(0),f.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),r})(),OE=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})(),HR=0;const RR=so(class{}),LE="mat-badge-content";let PR=(()=>{class r extends RR{constructor(e,t,s,u,d){super(),this._ngZone=e,this._elementRef=t,this._ariaDescriber=s,this._renderer=u,this._animationMode=d,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=HR++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=Ye(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=Ye(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(LE),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t)})}):e.classList.add(t),e}_updateRenderedContent(e){const t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${LE}`);for(const t of Array.from(e))t!==this._badgeElement&&t.remove()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.R0b),f.Y36(f.SBq),f.Y36(dg),f.Y36(f.Qsj),f.Y36(f.QbO,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&f.ekj("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t.content)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[f.qOj]}),r})(),IR=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Cl,$e,$e]}),r})();const H0=function(r){return{color:r}};function kR(r,a){if(1&r&&(f.TgZ(0,"button",8),f.ALo(1,"translate"),f.TgZ(2,"mat-icon",4),f._uU(3," apps "),f.qZA()()),2&r){const e=f.oxw(),t=f.MAs(2);f.Q6J("matMenuTriggerFor",t)("matTooltip",f.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),f.xp6(2),f.Q6J("ngStyle",f.VKq(5,H0,e.iconColor))}}function VR(r,a){if(1&r&&(f.TgZ(0,"span",9),f._uU(1),f.qZA()),2&r){const e=f.oxw();f.Q6J("ngStyle",f.VKq(6,H0,e.textColor)),f.xp6(1),f.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function BR(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"button",10),f.NdJ("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.onLogOut())}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&r&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"NAV.LOGOUT")," "))}let OR=(()=>{class r{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(zr))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(f.YNc(0,kR,4,7,"button",0),f.TgZ(1,"mat-menu",null,1)(3,"button",2),f.NdJ("click",function(){return t.redirectToUrl()})("auxclick",function(){return t.redirectToUrl()}),f.TgZ(4,"span"),f._uU(5),f.qZA()()(),f.TgZ(6,"button",3)(7,"mat-icon",4),f._uU(8," person "),f.qZA(),f.YNc(9,VR,2,8,"span",5),f.qZA(),f.TgZ(10,"mat-menu",null,6),f.YNc(12,BR,3,3,"button",7),f.qZA()),2&e){const s=f.MAs(11);f.Q6J("ngIf",t.url),f.xp6(5),f.Oqu(t.label),f.xp6(1),f.Q6J("matMenuTriggerFor",s),f.xp6(1),f.Q6J("ngStyle",f.VKq(6,H0,t.iconColor)),f.xp6(2),f.Q6J("ngIf",null!==t.user),f.xp6(3),f.Q6J("ngIf",t.logoutEnabled)}},dependencies:[M.O5,M.PC,Nr,pp,Fl,I_,Mi,qd,vi],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),r})(),LR=(()=>{class r extends ol{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const e=Object.assign({},this.queryParams);delete e.applicationFormItems,this.queryParams=e}}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275dir=f.lG2({type:r,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[f.qOj,f.TTD]}),r})();const vu=function(r){return{color:r}};function jR(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"button",9),f.NdJ("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.onToggleSidenav())}),f.TgZ(1,"mat-icon"),f._uU(2,"menu"),f.qZA()()}if(2&r){const e=f.oxw();f.Q6J("ngStyle",f.VKq(1,vu,e.iconColor))}}function FR(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),f._uU(3," language "),f.qZA()(),f.TgZ(4,"mat-menu",null,13)(6,"button",14),f.NdJ("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.changeLanguage())}),f._uU(7),f.ALo(8,"translate"),f.qZA()()()}if(2&r){const e=f.MAs(5),t=f.oxw();f.Q6J("ngStyle",f.VKq(6,vu,t.textColor)),f.xp6(1),f.Q6J("matMenuTriggerFor",e),f.xp6(1),f.Q6J("ngStyle",f.VKq(8,vu,t.iconColor)),f.xp6(5),f.hij(" ",f.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function UR(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"button",15),f.NdJ("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.showNotificationHistory())}),f.ALo(1,"translate"),f.TgZ(2,"mat-icon",16),f._uU(3),f.qZA()()}if(2&r){const e=f.oxw();f.Q6J("matTooltip",f.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),f.xp6(2),f.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),f.Q6J("ngStyle",f.VKq(7,vu,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),f.xp6(1),f.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function NR(r,a){if(1&r&&f._UZ(0,"perun-web-apps-header-menu",17),2&r){const e=f.oxw();f.Q6J("url",e.otherAppUrl)("label",e.otherAppLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor)}}const qR=function(r){return{background:r}},zR=function(){return[]},GR=function(){return["/"]};let WR=(()=>{class r{constructor(e,t,s,u,d,l,n){this.storeService=e,this.sanitizer=t,this.translateService=s,this.otherApplicationService=u,this.notificationStorageService=d,this.dialog=l,this.route=n,this.sidenavToggle=new f.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(e="en"){return this.storeService.getProperty(this.otherApp===yu.Profile?"profile_label_en":"en"===e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===yu.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0)}(this.otherApp!==yu.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const e=pr();e.width="520px",this.dialog.open(BE,e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(mi),f.Y36(ti),f.Y36(Bi),f.Y36(UA),f.Y36($l),f.Y36(Cn),f.Y36(Dr))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(e,t){1&e&&(f.TgZ(0,"mat-toolbar",0)(1,"div",1),f.YNc(2,jR,3,3,"button",2),f._UZ(3,"a",3),f.TgZ(4,"p",4),f._uU(5),f.qZA()(),f.TgZ(6,"div",5),f.YNc(7,FR,9,10,"div",6),f.YNc(8,UR,4,9,"button",7),f.YNc(9,NR,1,6,"perun-web-apps-header-menu",8),f.qZA()()),2&e&&(f.Q6J("ngStyle",f.VKq(11,qR,t.bgColor)),f.xp6(2),f.Q6J("ngIf",t.showToggle),f.xp6(1),f.Q6J("innerHTML",t.logo,f.oJD)("routerLink",t.disableLogo?f.DdM(13,zR):f.DdM(14,GR))("queryParams",t.route.snapshot.queryParams),f.xp6(1),f.Q6J("ngStyle",f.VKq(15,vu,t.textColor)),f.xp6(1),f.hij(" ",t.label," "),f.xp6(1),f.Q6J("ngStyle",f.VKq(17,vu,t.navTextColor)),f.xp6(1),f.Q6J("ngIf",t.showLanguageMenu),f.xp6(1),f.Q6J("ngIf",t.showNotifications),f.xp6(1),f.Q6J("ngIf",t.showHeaderMenu))},dependencies:[M.O5,M.PC,fh,Nr,pp,Fl,I_,Mi,qd,DR,PR,OR,LR,vi],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),r})();function $R(r,a){if(1&r&&(f.TgZ(0,"div",8),f._UZ(1,"div",9),f.qZA()),2&r){const e=f.oxw();f.xp6(1),f.Q6J("innerHTML",e.logo,f.oJD)}}function QR(r,a){if(1&r&&(f.TgZ(0,"div",10),f._UZ(1,"div",11)(2,"mat-icon",12),f.qZA()),2&r){const e=f.oxw();f.xp6(1),f.Q6J("innerHTML",e.logo,f.oJD)}}const YR=function(r){return{color:r}};function JR(r,a){if(1&r&&(f.TgZ(0,"p",13),f._uU(1),f.qZA()),2&r){const e=f.oxw();f.Q6J("ngStyle",f.VKq(2,YR,e.textColor)),f.xp6(1),f.hij(" ",e.headerTitle," ")}}const KR=function(r,a){return{background:r,color:a}},ZR=function(r,a){return{"min-height":r,"background-color":a}};let XR=(()=>{class r{constructor(e,t,s,u){this.storeService=e,this.sanitizer=t,this.preferredLangService=s,this.translateService=u,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(mi),f.Y36(ti),f.Y36(mb),f.Y36(Bi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(f.TgZ(0,"div",0),f.YNc(1,$R,2,1,"div",1),f.YNc(2,QR,3,1,"div",2),f.YNc(3,JR,2,4,"p",3),f.qZA(),f.TgZ(4,"div",4)(5,"div",5)(6,"div",6),f._UZ(7,"router-outlet"),f.qZA(),f.TgZ(8,"div",7),f._UZ(9,"perun-web-apps-footer"),f.qZA()()()),2&e&&(f.Q6J("ngStyle",f.WLB(5,KR,t.headerBackgroundColor,t.headerTextColor)),f.xp6(1),f.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),f.xp6(1),f.Q6J("ngIf","publications"===t.application),f.xp6(1),f.Q6J("ngIf",!!t.headerTitle),f.xp6(2),f.Q6J("ngStyle",f.WLB(8,ZR,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[M.O5,M.PC,Nr,am,IE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),r})();function tP(r,a){if(1&r&&f._UZ(0,"perun-web-apps-password-form",4),2&r){const e=f.oxw();f.Q6J("formGroup",e.newPasswdForm)("namespace",e.namespace)("language",e.language)}}function iP(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"div")(1,"button",5),f.NdJ("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.onSubmit())}),f._uU(2),f.ALo(3,"translate"),f.qZA()()}if(2&r){const e=f.oxw();f.xp6(1),f.Q6J("disabled",e.newPasswdForm.invalid||e.newPasswdForm.pending),f.xp6(1),f.hij(" ",f.lcZ(3,2,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_BUTTON":"PAGES.PWD_RESET_PAGE.ACTIVATION_BUTTON")," ")}}function nP(r,a){if(1&r&&(f.TgZ(0,"div",6)(1,"perun-web-apps-alert",7),f._uU(2),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.hij(" ",e.successMsg," ")}}function rP(r,a){if(1&r&&(f.TgZ(0,"div",6)(1,"perun-web-apps-alert",8),f._uU(2),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.hij(" ",e.errorMsg," ")}}function aP(r,a){1&r&&f._UZ(0,"mat-spinner",9)}let oP=(()=>{class r{constructor(e,t,s,u,d,l){this.storeService=e,this.translate=t,this.apiRequestConfiguration=s,this.usersService=u,this.formBuilder=d,this.errorTranslate=l,this.loading=!1,this.success=!1,this.error=!1,this.language="en"}ngOnInit(){this.newPasswdForm=this.formBuilder.group({passwordCtrl:["",$r.required,[RH(this.namespace,this.usersService,this.apiRequestConfiguration,!this.authWithoutToken)]],passwordAgainCtrl:["",$r.required]},{validators:kA.passwordMatchValidator}),this.setLabels(this.translate.currentLang),this.translate.onLangChange.subscribe(e=>{this.language=e.lang,this.setLabels(this.language),this.successMsg=this.getMessage("success"),this.errorKey&&(this.errorMsg=this.getMessage(this.errorKey))})}onSubmit(){this.loading=!0,(0,ke.of)(this.authWithoutToken).pipe((0,Vt.z)(e=>function eP(r,a,e){return dn(()=>r()?a:e)}(()=>e,this.usersService.changePasswordForLogin({login:this.login,namespace:this.namespace,newPassword:this.newPasswdForm.value.passwordCtrl}),this.usersService.changeNonAuthzPasswordByToken({token:this.token,password:this.newPasswdForm.value.passwordCtrl},!0)))).subscribe({next:()=>{this.success=!0,this.successMsg=this.getMessage("success"),this.loading=!1},error:e=>{this.error=!0,this.errorKey=this.errorTranslate.getErrorKey(e),this.errorMsg=this.getMessage(this.errorKey),this.loading=!1}})}setLabels(e){this.labels=this.storeService.getProperty("en"===e?"password_labels":"password_labels_cs")}getMessage(e){const t=this.labels?.[this.namespace]?.[this.mode]?.[e];return t||this.labels.default[this.mode][e]}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(mi),f.Y36(Bi),f.Y36(Fp),f.Y36(xn),f.Y36(H),f.Y36(_b))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-password-reset-form"]],inputs:{mode:"mode",namespace:"namespace",login:"login",token:"token",authWithoutToken:"authWithoutToken"},decls:5,vars:5,consts:[[3,"formGroup","namespace","language",4,"ngIf"],[4,"ngIf"],["class","mt-5",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"formGroup","namespace","language"],["mat-flat-button","","color","accent",1,"mx-auto","d-block",3,"disabled","click"],[1,"mt-5"],["alert_type","success"],["alert_type","error"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(f.YNc(0,tP,1,3,"perun-web-apps-password-form",0),f.YNc(1,iP,4,4,"div",1),f.YNc(2,nP,3,1,"div",2),f.YNc(3,rP,3,1,"div",2),f.YNc(4,aP,1,0,"mat-spinner",3)),2&e&&(f.Q6J("ngIf",!t.success&&!t.loading&&!t.error),f.xp6(1),f.Q6J("ngIf",!t.success&&!t.error&&!t.loading),f.xp6(1),f.Q6J("ngIf",t.success&&!t.loading),f.xp6(1),f.Q6J("ngIf",t.error&&!t.loading),f.xp6(1),f.Q6J("ngIf",t.loading))},dependencies:[M.O5,Mi,Yr,lu,Qr,Ha,LH,vi]}),r})(),sP=(()=>{class r{constructor(e){this.translate=e}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.invalidRequestMessage=this.translate.instant("PAGES.PWD_RESET_PAGE.INVALID_REQUEST")})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Bi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-invalid-request-alert"]],decls:2,vars:1,consts:[["alert_type","info",1,"alert-wrap"],[3,"innerHTML"]],template:function(e,t){1&e&&(f.TgZ(0,"perun-web-apps-alert",0),f._UZ(1,"div",1),f.qZA()),2&e&&(f.xp6(1),f.Q6J("innerHTML",t.invalidRequestMessage,f.oJD))},dependencies:[Ha],styles:[".alert-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),r})();function lP(r,a){if(1&r&&(f.O4$(),f.kcU(),f.TgZ(0,"p",9)(1,"em"),f._uU(2),f.ALo(3,"translate"),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.AsE("",f.lcZ(3,2,"PAGES.PWD_RESET_PAGE.LOGIN"),": ",e.login,"")}}function cP(r,a){if(1&r&&(f.O4$(),f.kcU(),f.TgZ(0,"p",9)(1,"em"),f._uU(2),f.ALo(3,"translate"),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.AsE("",f.lcZ(3,2,"PAGES.PWD_RESET_PAGE.NAMESPACE"),": ",e.namespace,"")}}function dP(r,a){if(1&r&&f._UZ(0,"perun-web-apps-password-reset-form",10),2&r){const e=f.oxw();f.Q6J("mode",e.mode)("namespace",e.namespace)("login",e.login)("token",e.token)("authWithoutToken",e.authWithoutToken)}}function uP(r,a){1&r&&f._UZ(0,"perun-web-apps-invalid-request-alert")}let hP=(()=>{class r{constructor(e,t,s){this.storeService=e,this.sanitizer=t,this.translateService=s}ngOnInit(){this.passwordResetLogo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("password_reset_logo")),this.setDescription(this.translateService.currentLang),this.translateService.onLangChange.subscribe(e=>{this.setDescription(e.lang)})}setDescription(e){const t=this.storeService.getProperty("en"===e?"password_labels":"password_labels_cs");this.description=t[this.namespace]?.[this.mode]?.description,this.description||(this.description=t.default[this.mode].description)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(mi),f.Y36(ti),f.Y36(Bi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-password-reset-page"]],inputs:{mode:"mode",token:"token",namespace:"namespace",login:"login",validToken:"validToken",authWithoutToken:"authWithoutToken"},decls:16,vars:9,consts:[[3,"innerHTML"],[1,"title-with-icon"],["xmlns","http://www.w3.org/2000/svg","width","30.000000pt","height","30.000000pt","viewBox","0 0 512.000000 512.000000","preserveAspectRatio","xMidYMid meet"],["transform","translate(0.000000,512.000000) scale(0.100000,-0.100000)","fill","#000000","stroke","none"],["d","M3530 5103 c-619 -30 -1162 -438 -1356 -1020 -115 -342 -107 -702 21-1035 l36 -92 -1100 -1101 c-605 -605 -1105 -1112 -1110 -1127 -8 -22 -5 -49 15 -125 116 -450 112 -436 146 -454 42 -22 513 -139 539 -134 16 4 122 103 287 268 144 145 262 265 262 267 4 51 29 293 32 295 2 2 70 10 151 18 200 19 193 13 213 213 8 81 17 150 19 152 2 2 67 10 145 18 77 7 149 18 159 23 37 20 44 44 60 194 l16 152 125 12 c69 6 136 12 150 12 18 1 98 75 320 296 l295 295 85 -33 c586 -230 1239 -83 1665 375 405 437 514 1079 275 1629 -122 280 -336 524 -606 690 -237 145 -559 226 -844 212z m201 -184 c307 -31 569 -152 790 -366 467 -452 542 -1155 182 -1697 -187 -280 -490 -487 -823 -561 -42 -9 -144 -19 -230 -22 -236 -8 -402 24 -613 119 -65 29 -96 38 -115 33 -17 -4 -139 -118 -332 -309 l-305 -304 -169 -16 c-224 -20 -214 -11 -233 -213 -8 -81 -16 -150 -18 -152 -2 -2 -68 -10 -147 -18 -148 -14 -182 -26 -197 -66 -5 -12 -15 -85 -22 -162 l-14 -140 -140 -14 c-77 -7 -149 -17 -162 -22 -41 -15 -51 -48 -68 -219 l-16 -165 -213 -213 -212 -213 -185 47 c-101 26 -185 49 -187 50 -2 1 -26 87 -53 191 l-49 188 1115 1115 c849 849 1115 1121 1115 1139 0 13 -18 62 -39 110 -40 90 -80 211 -103 316 -20 95 -17 400 5 505 55 255 171 473 354 661 250 257 570 397 934 408 26 0 93 -4 150 -10z"],["d","M3554 4120 c-201 -30 -366 -170 -424 -359 -14 -43 -20 -92 -20 -153 0 -389 394 -632 750 -461 78 38 189 151 227 233 158 336 -58 712 -427 743 -30 3 -78 1 -106 -3z m138 -181 c108 -23 190 -89 239 -192 37 -80 40 -177 7 -264 -30 -80 -112 -162 -193 -192 -121 -45 -270 -14 -358 75 -164 165 -121 440 83 544 72 37 142 46 222 29z"],["class","subtitle",4,"ngIf"],[3,"mode","namespace","login","token","authWithoutToken",4,"ngIf"],[4,"ngIf"],[1,"subtitle"],[3,"mode","namespace","login","token","authWithoutToken"]],template:function(e,t){1&e&&(f.TgZ(0,"div"),f._UZ(1,"div",0),f.TgZ(2,"div",1)(3,"h1"),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.O4$(),f.TgZ(6,"svg",2)(7,"g",3),f._UZ(8,"path",4)(9,"path",5),f.qZA()()(),f.YNc(10,lP,4,4,"p",6),f.YNc(11,cP,4,4,"p",6),f.kcU(),f.TgZ(12,"p"),f._uU(13),f.qZA(),f.YNc(14,dP,1,5,"perun-web-apps-password-reset-form",7),f.YNc(15,uP,1,0,"perun-web-apps-invalid-request-alert",8),f.qZA()),2&e&&(f.xp6(1),f.Q6J("innerHTML",t.passwordResetLogo,f.oJD),f.xp6(3),f.hij(" ",f.lcZ(5,7,"reset"===t.mode?"PAGES.PWD_RESET_PAGE.TITLE_RESET":"PAGES.PWD_RESET_PAGE.TITLE_ACTIVATION")," "),f.xp6(6),f.Q6J("ngIf",t.login),f.xp6(1),f.Q6J("ngIf",t.namespace),f.xp6(2),f.Oqu(t.description),f.xp6(1),f.Q6J("ngIf",t.validToken||t.authWithoutToken),f.xp6(1),f.Q6J("ngIf",!t.validToken&&!t.authWithoutToken))},dependencies:[M.O5,oP,sP,vi],styles:[".title-with-icon[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:space-between}.subtitle[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px}"]}),r})();const pP=["footer"],fP=function(r){return{background:r}},mP=function(r){return{"min-height":r}};function gP(r,a){if(1&r&&(f.TgZ(0,"div"),f._UZ(1,"perun-web-apps-header",2),f.TgZ(2,"div",3)(3,"div",4),f._UZ(4,"perun-web-apps-password-reset-page",5),f.qZA(),f.TgZ(5,"div",null,6),f._UZ(7,"perun-web-apps-footer"),f.qZA()()()),2&r){const e=f.oxw();f.xp6(1),f.Q6J("showToggle",!1)("showHeaderMenu",!1)("showLanguageMenu",!0),f.xp6(1),f.Q6J("ngStyle",f.VKq(11,fP,e.contentBackgroundColor)),f.xp6(1),f.Q6J("ngStyle",f.VKq(13,mP,e.contentHeight)),f.xp6(1),f.Q6J("mode",e.mode)("token",e.token)("namespace",e.namespace)("login",e.login)("validToken",e.validToken)("authWithoutToken",e.authWithoutToken)}}function _P(r,a){1&r&&f._UZ(0,"perun-web-apps-login-screen-base",7),2&r&&f.Q6J("application","pwd-reset")}let bP=(()=>{class r{constructor(e,t,s,u,d,l,n,i){this.dialog=e,this.usersService=t,this.preferredLangService=s,this.translateService=u,this.store=d,this.attributesManagerService=l,this.changeDetector=n,this.initAuth=i,this.authWithoutToken=!1,this.contentHeight="calc(100vh - 84px)",this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color}ngOnInit(){this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),this.showLoginScreen=this.initAuth.isLoginScreenShown();const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e);const t=location.search.substr(1);this.mode="activation"===Vp("mode",t)?"activation":"reset",this.namespace=Vp("namespace",t),t.includes("token")?(this.token=Vp("token",t),this.usersService.checkPasswordResetRequestByTokenIsValid(this.token,!0).subscribe(()=>{this.validToken=!0},()=>{this.validToken=!1})):!this.isServiceAccess&&!this.showLoginScreen&&(this.authWithoutToken=!0,this.attributesManagerService.getLogins(this.store.getPerunPrincipal().userId).subscribe(s=>{const u=s.find(d=>d.friendlyNameParameter===this.namespace);this.login=u?String(u.value):""}))}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Cn),f.Y36(xn),f.Y36(mb),f.Y36(Bi),f.Y36(mi),f.Y36(Cr),f.Y36(f.sBO),f.Y36(Lp))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&f.Gf(pP,5),2&e){let s;f.iGM(s=f.CRH())&&(t.footer=s.first)}},decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngIf"],["id","nav-menu",3,"showToggle","showHeaderMenu","showLanguageMenu"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],[3,"mode","token","namespace","login","validToken","authWithoutToken"],["footer",""],[3,"application"]],template:function(e,t){1&e&&(f.YNc(0,gP,8,15,"div",0),f.YNc(1,_P,1,1,"ng-template",1)),2&e&&(f.Q6J("ngIf",!t.isServiceAccess&&!t.showLoginScreen),f.xp6(1),f.Q6J("ngIf",t.isServiceAccess||t.showLoginScreen))},dependencies:[M.O5,M.PC,IE,WR,XR,hP],styles:["#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}#content-inner[_ngcontent-%COMP%]{position:relative;padding-top:64px}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 450px){#content-wrap[_ngcontent-%COMP%]{max-width:400px;margin-left:auto;margin-right:auto}}"]}),r})();class CP{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}function jE(r){return new f.vHH(3e3,!1)}function e1(){return typeof window<"u"&&typeof window.document<"u"}function R0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Es(r){switch(r.length){case 0:return new mo;case 1:return r[0];default:return new jd(r)}}function FE(r,a,e,t,s=new Map,u=new Map){const d=[],l=[];let n=-1,i=null;if(t.forEach(o=>{const c=o.get("offset"),h=c==n,m=h&&i||new Map;o.forEach((g,p)=>{let w=p,R=g;if("offset"!==p)switch(w=a.normalizePropertyName(w,d),R){case"!":R=s.get(p);break;case jn:R=u.get(p);break;default:R=a.normalizeStyleValue(p,w,R,d)}m.set(w,R)}),h||l.push(m),i=m,n=c}),d.length)throw function NP(r){return new f.vHH(3502,!1)}();return l}function P0(r,a,e,t){switch(a){case"start":r.onStart(()=>t(e&&I0(e,"start",r)));break;case"done":r.onDone(()=>t(e&&I0(e,"done",r)));break;case"destroy":r.onDestroy(()=>t(e&&I0(e,"destroy",r)))}}function I0(r,a,e){const u=k0(r.element,r.triggerName,r.fromState,r.toState,a||r.phaseName,e.totalTime??r.totalTime,!!e.disabled),d=r._data;return null!=d&&(u._data=d),u}function k0(r,a,e,t,s="",u=0,d){return{element:r,triggerName:a,fromState:e,toState:t,phaseName:s,totalTime:u,disabled:!!d}}function zn(r,a,e){let t=r.get(a);return t||r.set(a,t=e),t}function UE(r){const a=r.indexOf(":");return[r.substring(1,a),r.slice(a+1)]}let V0=(r,a)=>!1,NE=(r,a,e)=>[],qE=null;function B0(r){const a=r.parentNode||r.host;return a===qE?null:a}(R0()||typeof Element<"u")&&(e1()?(qE=(()=>document.documentElement)(),V0=(r,a)=>{for(;a;){if(a===r)return!0;a=B0(a)}return!1}):V0=(r,a)=>r.contains(a),NE=(r,a,e)=>{if(e)return Array.from(r.querySelectorAll(a));const t=r.querySelector(a);return t?[t]:[]});let oc=null,zE=!1;const GE=V0,WE=NE;let $E=(()=>{class r{validateStyleProperty(e){return function n1(r){oc||(oc=function r1(){return typeof document<"u"?document.body:null}()||{},zE=!!oc.style&&"WebkitAppearance"in oc.style);let a=!0;return oc.style&&!function t1(r){return"ebkit"==r.substring(1,6)}(r)&&(a=r in oc.style,!a&&zE&&(a="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in oc.style)),a}(e)}matchesElement(e,t){return!1}containsElement(e,t){return GE(e,t)}getParentElement(e){return B0(e)}query(e,t,s){return WE(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,t,s,u,d,l=[],n){return new mo(s,u)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),O0=(()=>{class r{}return r.NOOP=new $E,r})();const L0="ng-enter",Kb="ng-leave",Zb="ng-trigger",Xb=".ng-trigger",YE="ng-animating",j0=".ng-animating";function Ms(r){if("number"==typeof r)return r;const a=r.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:F0(parseFloat(a[1]),a[2])}function F0(r,a){return"s"===a?1e3*r:r}function eC(r,a,e){return r.hasOwnProperty("duration")?r:function s1(r,a,e){let s,u=0,d="";if("string"==typeof r){const l=r.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return a.push(jE()),{duration:0,delay:0,easing:""};s=F0(parseFloat(l[1]),l[2]);const n=l[3];null!=n&&(u=F0(parseFloat(n),l[4]));const i=l[5];i&&(d=i)}else s=r;if(!e){let l=!1,n=a.length;s<0&&(a.push(function wP(){return new f.vHH(3100,!1)}()),l=!0),u<0&&(a.push(function yP(){return new f.vHH(3101,!1)}()),l=!0),l&&a.splice(n,0,jE())}return{duration:s,delay:u,easing:d}}(r,a,e)}function Ef(r,a={}){return Object.keys(r).forEach(e=>{a[e]=r[e]}),a}function JE(r){const a=new Map;return Object.keys(r).forEach(e=>{a.set(e,r[e])}),a}function Ds(r,a=new Map,e){if(e)for(let[t,s]of e)a.set(t,s);for(let[t,s]of r)a.set(t,s);return a}function ZE(r,a,e){return e?a+":"+e+";":""}function XE(r){let a="";for(let e=0;e{const u=N0(s);e&&!e.has(s)&&e.set(s,r.style[u]),r.style[u]=t}),R0()&&XE(r))}function sc(r,a){r.style&&(a.forEach((e,t)=>{const s=N0(t);r.style[s]=""}),R0()&&XE(r))}function Mf(r){return Array.isArray(r)?1==r.length?r[0]:tp(r):r}const U0=new RegExp("{{\\s*(.+?)\\s*}}","g");function eM(r){let a=[];if("string"==typeof r){let e;for(;e=U0.exec(r);)a.push(e[1]);U0.lastIndex=0}return a}function tC(r,a,e){const t=r.toString(),s=t.replace(U0,(u,d)=>{let l=a[d];return null==l&&(e.push(function AP(r){return new f.vHH(3003,!1)}()),l=""),l.toString()});return s==t?r:s}function iC(r){const a=[];let e=r.next();for(;!e.done;)a.push(e.value),e=r.next();return a}const d1=/-+([a-z0-9])/g;function N0(r){return r.replace(d1,(...a)=>a[1].toUpperCase())}function u1(r){return r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Gn(r,a,e){switch(a.type){case 7:return r.visitTrigger(a,e);case 0:return r.visitState(a,e);case 1:return r.visitTransition(a,e);case 2:return r.visitSequence(a,e);case 3:return r.visitGroup(a,e);case 4:return r.visitAnimate(a,e);case 5:return r.visitKeyframes(a,e);case 6:return r.visitStyle(a,e);case 8:return r.visitReference(a,e);case 9:return r.visitAnimateChild(a,e);case 10:return r.visitAnimateRef(a,e);case 11:return r.visitQuery(a,e);case 12:return r.visitStagger(a,e);default:throw function xP(r){return new f.vHH(3004,!1)}()}}function tM(r,a){return window.getComputedStyle(r)[a]}function _1(r,a){const e=[];return"string"==typeof r?r.split(/\s*,\s*/).forEach(t=>function b1(r,a,e){if(":"==r[0]){const n=function C1(r,a){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(r,e);if("function"==typeof n)return void a.push(n);r=n}const t=r.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function OP(r){return new f.vHH(3015,!1)}()),a;const s=t[1],u=t[2],d=t[3];a.push(iM(s,d));"<"==u[0]&&!("*"==s&&"*"==d)&&a.push(iM(d,s))}(t,e,a)):e.push(r),e}const oC=new Set(["true","1"]),sC=new Set(["false","0"]);function iM(r,a){const e=oC.has(r)||sC.has(r),t=oC.has(a)||sC.has(a);return(s,u)=>{let d="*"==r||r==s,l="*"==a||a==u;return!d&&e&&"boolean"==typeof s&&(d=s?oC.has(r):sC.has(r)),!l&&t&&"boolean"==typeof u&&(l=u?oC.has(a):sC.has(a)),d&&l}}const w1=new RegExp("s*:selfs*,?","g");function q0(r,a,e,t){return new y1(r).build(a,e,t)}class y1{constructor(a){this._driver=a}build(a,e,t){const s=new x1(e);return this._resetContextStyleTimingState(s),Gn(this,Mf(a),s)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,s=e.depCount=0;const u=[],d=[];return"@"==a.name.charAt(0)&&e.errors.push(function SP(){return new f.vHH(3006,!1)}()),a.definitions.forEach(l=>{if(this._resetContextStyleTimingState(e),0==l.type){const n=l,i=n.name;i.toString().split(/\s*,\s*/).forEach(o=>{n.name=o,u.push(this.visitState(n,e))}),n.name=i}else if(1==l.type){const n=this.visitTransition(l,e);t+=n.queryCount,s+=n.depCount,d.push(n)}else e.errors.push(function EP(){return new f.vHH(3007,!1)}())}),{type:7,name:a.name,states:u,transitions:d,queryCount:t,depCount:s,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),s=a.options&&a.options.params||null;if(t.containsDynamicStyles){const u=new Set,d=s||{};t.styles.forEach(l=>{l instanceof Map&&l.forEach(n=>{eM(n).forEach(i=>{d.hasOwnProperty(i)||u.add(i)})})}),u.size&&(iC(u.values()),e.errors.push(function MP(r,a){return new f.vHH(3008,!1)}()))}return{type:0,name:a.name,style:t,options:s?{params:s}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Gn(this,Mf(a.animation),e);return{type:1,matchers:_1(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:lc(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Gn(this,t,e)),options:lc(a.options)}}visitGroup(a,e){const t=e.currentTime;let s=0;const u=a.steps.map(d=>{e.currentTime=t;const l=Gn(this,d,e);return s=Math.max(s,e.currentTime),l});return e.currentTime=s,{type:3,steps:u,options:lc(a.options)}}visitAnimate(a,e){const t=function S1(r,a){if(r.hasOwnProperty("duration"))return r;if("number"==typeof r)return z0(eC(r,a).duration,0,"");const e=r;if(e.split(/\s+/).some(u=>"{"==u.charAt(0)&&"{"==u.charAt(1))){const u=z0(0,0,"");return u.dynamic=!0,u.strValue=e,u}const s=eC(e,a);return z0(s.duration,s.delay,s.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let s,u=a.styles?a.styles:Ne({});if(5==u.type)s=this.visitKeyframes(u,e);else{let d=a.styles,l=!1;if(!d){l=!0;const i={};t.easing&&(i.easing=t.easing),d=Ne(i)}e.currentTime+=t.duration+t.delay;const n=this.visitStyle(d,e);n.isEmptyStep=l,s=n}return e.currentAnimateTimings=null,{type:4,timings:t,style:s,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[],s=Array.isArray(a.styles)?a.styles:[a.styles];for(let l of s)"string"==typeof l?l===jn?t.push(l):e.errors.push(new f.vHH(3002,!1)):t.push(JE(l));let u=!1,d=null;return t.forEach(l=>{if(l instanceof Map&&(l.has("easing")&&(d=l.get("easing"),l.delete("easing")),!u))for(let n of l.values())if(n.toString().indexOf("{{")>=0){u=!0;break}}),{type:6,styles:t,easing:d,offset:a.offset,containsDynamicStyles:u,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let s=e.currentTime,u=e.currentTime;t&&u>0&&(u-=t.duration+t.delay),a.styles.forEach(d=>{"string"!=typeof d&&d.forEach((l,n)=>{const i=e.collectedStyles.get(e.currentQuerySelector),o=i.get(n);let c=!0;o&&(u!=s&&u>=o.startTime&&s<=o.endTime&&(e.errors.push(function HP(r,a,e,t,s){return new f.vHH(3010,!1)}()),c=!1),u=o.startTime),c&&i.set(n,{startTime:u,endTime:s}),e.options&&function c1(r,a,e){const t=a.params||{},s=eM(r);s.length&&s.forEach(u=>{t.hasOwnProperty(u)||e.push(function vP(r){return new f.vHH(3001,!1)}())})}(l,e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function RP(){return new f.vHH(3011,!1)}()),t;let u=0;const d=[];let l=!1,n=!1,i=0;const o=a.steps.map(R=>{const J=this._makeStyleAst(R,e);let Te=null!=J.offset?J.offset:function T1(r){if("string"==typeof r)return null;let a=null;if(Array.isArray(r))r.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;a=parseFloat(t.get("offset")),t.delete("offset")}});else if(r instanceof Map&&r.has("offset")){const e=r;a=parseFloat(e.get("offset")),e.delete("offset")}return a}(J.styles),at=0;return null!=Te&&(u++,at=J.offset=Te),n=n||at<0||at>1,l=l||at0&&u{const Te=h>0?J==m?1:h*J:d[J],at=Te*w;e.currentTime=g+p.delay+at,p.duration=at,this._validateStyleAst(R,e),R.offset=Te,t.styles.push(R)}),t}visitReference(a,e){return{type:8,animation:Gn(this,Mf(a.animation),e),options:lc(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:lc(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:lc(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,s=a.options||{};e.queryCount++,e.currentQuery=a;const[u,d]=function v1(r){const a=!!r.split(/\s*,\s*/).find(e=>":self"==e);return a&&(r=r.replace(w1,"")),r=r.replace(/@\*/g,Xb).replace(/@\w+/g,e=>Xb+"-"+e.slice(1)).replace(/:animating/g,j0),[r,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+u:u,zn(e.collectedStyles,e.currentQuerySelector,new Map);const l=Gn(this,Mf(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:u,limit:s.limit||0,optional:!!s.optional,includeSelf:d,animation:l,originalSelector:a.selector,options:lc(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push(function VP(){return new f.vHH(3013,!1)}());const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:eC(a.timings,e.errors,!0);return{type:12,animation:Gn(this,Mf(a.animation),e),timings:t,options:null}}}class x1{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function lc(r){return r?(r=Ef(r)).params&&(r.params=function A1(r){return r?Ef(r):null}(r.params)):r={},r}function z0(r,a,e){return{duration:r,delay:a,easing:e}}function G0(r,a,e,t,s,u,d=null,l=!1){return{type:1,element:r,keyframes:a,preStyleProps:e,postStyleProps:t,duration:s,delay:u,totalTime:s+u,easing:d,subTimeline:l}}class lC{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const D1=new RegExp(":enter","g"),R1=new RegExp(":leave","g");function W0(r,a,e,t,s,u=new Map,d=new Map,l,n,i=[]){return(new P1).buildKeyframes(r,a,e,t,s,u,d,l,n,i)}class P1{buildKeyframes(a,e,t,s,u,d,l,n,i,o=[]){i=i||new lC;const c=new $0(a,e,i,s,u,o,[]);c.options=n;const h=n.delay?Ms(n.delay):0;c.currentTimeline.delayNextStep(h),c.currentTimeline.setStyles([d],null,c.errors,n),Gn(this,t,c);const m=c.timelines.filter(g=>g.containsAnimation());if(m.length&&l.size){let g;for(let p=m.length-1;p>=0;p--){const w=m[p];if(w.element===e){g=w;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([l],null,c.errors,n)}return m.length?m.map(g=>g.buildKeyframes()):[G0(e,[],[],[],0,h,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const s=e.createSubContext(a.options),u=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,s,s.options);u!=d&&e.transformIntoNewTimeline(d)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let u=e.currentTimeline.currentTime;const d=null!=t.duration?Ms(t.duration):null,l=null!=t.delay?Ms(t.delay):null;return 0!==d&&a.forEach(n=>{const i=e.appendInstructionToTimeline(n,d,l);u=Math.max(u,i.duration+i.delay)}),u}visitReference(a,e){e.updateOptions(a.options,!0),Gn(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let s=e;const u=a.options;if(u&&(u.params||u.delay)&&(s=e.createSubContext(u),s.transformIntoNewTimeline(),null!=u.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=cC);const d=Ms(u.delay);s.delayNextStep(d)}a.steps.length&&(a.steps.forEach(d=>Gn(this,d,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let s=e.currentTimeline.currentTime;const u=a.options&&a.options.delay?Ms(a.options.delay):0;a.steps.forEach(d=>{const l=e.createSubContext(a.options);u&&l.delayNextStep(u),Gn(this,d,l),s=Math.max(s,l.currentTimeline.currentTime),t.push(l.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(s),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return eC(e.params?tC(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),s=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),s.snapshotCurrentStyles());const u=a.style;5==u.type?this.visitKeyframes(u,e):(e.incrementTime(t.duration),this.visitStyle(u,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,s=e.currentAnimateTimings;!s&&t.hasCurrentStyleProperties()&&t.forwardFrame();const u=s&&s.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(u):t.setStyles(a.styles,u,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,s=e.currentTimeline.duration,u=t.duration,l=e.createSubContext().currentTimeline;l.easing=t.easing,a.styles.forEach(n=>{l.forwardTime((n.offset||0)*u),l.setStyles(n.styles,n.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(s+u),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,s=a.options||{},u=s.delay?Ms(s.delay):0;u&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=cC);let d=t;const l=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=l.length;let n=null;l.forEach((i,o)=>{e.currentQueryIndex=o;const c=e.createSubContext(a.options,i);u&&c.delayNextStep(u),i===e.element&&(n=c.currentTimeline),Gn(this,a.animation,c),c.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,c.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),n&&(e.currentTimeline.mergeTimelineCollectedStyles(n),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,s=e.currentTimeline,u=a.timings,d=Math.abs(u.duration),l=d*(e.currentQueryTotal-1);let n=d*e.currentQueryIndex;switch(u.duration<0?"reverse":u.easing){case"reverse":n=l-n;break;case"full":n=t.currentStaggerTime}const o=e.currentTimeline;n&&o.delayNextStep(n);const c=o.currentTime;Gn(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=s.currentTime-c+(s.startTime-t.currentTimeline.startTime)}}const cC={};class $0{constructor(a,e,t,s,u,d,l,n){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=u,this.errors=d,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=n||new dC(this._driver,e,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let s=this.options;null!=t.duration&&(s.duration=Ms(t.duration)),null!=t.delay&&(s.delay=Ms(t.delay));const u=t.params;if(u){let d=s.params;d||(d=this.options.params={}),Object.keys(u).forEach(l=>{(!e||!d.hasOwnProperty(l))&&(d[l]=tC(u[l],d,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(s=>{t[s]=e[s]})}}return a}createSubContext(a=null,e,t){const s=e||this.element,u=new $0(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return u.previousNode=this.previousNode,u.currentAnimateTimings=this.currentAnimateTimings,u.options=this._copyOptions(),u.updateOptions(a),u.currentQueryIndex=this.currentQueryIndex,u.currentQueryTotal=this.currentQueryTotal,u.parentContext=this,this.subContextCount++,u}transformIntoNewTimeline(a){return this.previousNode=cC,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const s={duration:e??a.duration,delay:this.currentTimeline.currentTime+(t??0)+a.delay,easing:""},u=new I1(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,s,a.stretchStartingKeyframe);return this.timelines.push(u),s}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,s,u,d){let l=[];if(s&&l.push(this.element),a.length>0){a=(a=a.replace(D1,"."+this._enterClassName)).replace(R1,"."+this._leaveClassName);let i=this._driver.query(this.element,a,1!=t);0!==t&&(i=t<0?i.slice(i.length+t,i.length):i.slice(0,t)),l.push(...i)}return!u&&0==l.length&&d.push(function BP(r){return new f.vHH(3014,!1)}()),l}}class dC{constructor(a,e,t,s){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(a){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new dC(this._driver,a,e||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+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles.set(a,e),this._globalTimelineStyles.set(a,e),this._styleSummary.set(a,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||jn),this._currentKeyframe.set(e,jn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,s){e&&this._previousKeyframe.set("easing",e);const u=s&&s.params||{},d=function k1(r,a){const e=new Map;let t;return r.forEach(s=>{if("*"===s){t=t||a.keys();for(let u of t)e.set(u,jn)}else Ds(s,e)}),e}(a,this._globalTimelineStyles);for(let[l,n]of d){const i=tC(n,u,t);this._pendingStyles.set(l,i),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??jn),this._updateStyle(l,i)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,e)=>{this._currentKeyframe.set(e,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,a)}))}snapshotCurrentStyles(){for(let[a,e]of this._localTimelineStyles)this._pendingStyles.set(a,e),this._updateStyle(a,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((l,n)=>{const i=Ds(l,new Map,this._backFill);i.forEach((o,c)=>{"!"===o?a.add(c):o===jn&&e.add(c)}),t||i.set("offset",n/this.duration),s.push(i)});const u=a.size?iC(a.values()):[],d=e.size?iC(e.values()):[];if(t){const l=s[0],n=new Map(l);l.set("offset",0),n.set("offset",1),s=[l,n]}return G0(this.element,s,u,d,this.duration,this.startTime,this.easing,!1)}}class I1 extends dC{constructor(a,e,t,s,u,d,l=!1){super(a,e,d.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=u,this._stretchStartingKeyframe=l,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const u=[],d=t+e,l=e/d,n=Ds(a[0]);n.set("offset",0),u.push(n);const i=Ds(a[0]);i.set("offset",aM(l)),u.push(i);const o=a.length-1;for(let c=1;c<=o;c++){let h=Ds(a[c]);const m=h.get("offset");h.set("offset",aM((e+m*t)/d)),u.push(h)}t=d,e=0,s="",a=u}return G0(this.element,a,this.preStyleProps,this.postStyleProps,t,e,s,!0)}}function aM(r,a=3){const e=Math.pow(10,a-1);return Math.round(r*e)/e}class Q0{}const V1=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"]);class B1 extends Q0{normalizePropertyName(a,e){return N0(a)}normalizeStyleValue(a,e,t,s){let u="";const d=t.toString().trim();if(V1.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)u="px";else{const l=t.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&s.push(function TP(r,a){return new f.vHH(3005,!1)}())}return d+u}}function oM(r,a,e,t,s,u,d,l,n,i,o,c,h){return{type:0,element:r,triggerName:a,isRemovalTransition:s,fromState:e,fromStyles:u,toState:t,toStyles:d,timelines:l,queriedElements:n,preStyleProps:i,postStyleProps:o,totalTime:c,errors:h}}const Y0={};class sM{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,s){return function O1(r,a,e,t,s){return r.some(u=>u(a,e,t,s))}(this.ast.matchers,a,e,t,s)}buildStyles(a,e,t){let s=this._stateStyles.get("*");return void 0!==a&&(s=this._stateStyles.get(a?.toString())||s),s?s.buildStyles(e,t):new Map}build(a,e,t,s,u,d,l,n,i,o){const c=[],h=this.ast.options&&this.ast.options.params||Y0,g=this.buildStyles(t,l&&l.params||Y0,c),p=n&&n.params||Y0,w=this.buildStyles(s,p,c),R=new Set,J=new Map,Te=new Map,at="void"===s,xi={params:L1(p,h),delay:this.ast.options?.delay},Xt=o?[]:W0(a,e,this.ast.animation,u,d,g,w,xi,i,c);let ci=0;if(Xt.forEach(gr=>{ci=Math.max(gr.duration+gr.delay,ci)}),c.length)return oM(e,this._triggerName,t,s,at,g,w,[],[],J,Te,ci,c);Xt.forEach(gr=>{const Do=gr.element,MD=zn(J,Do,new Set);gr.preStyleProps.forEach(dc=>MD.add(dc));const Bf=zn(Te,Do,new Set);gr.postStyleProps.forEach(dc=>Bf.add(dc)),Do!==e&&R.add(Do)});const sn=iC(R.values());return oM(e,this._triggerName,t,s,at,g,w,Xt,sn,J,Te,ci)}}function L1(r,a){const e=Ef(a);for(const t in r)r.hasOwnProperty(t)&&null!=r[t]&&(e[t]=r[t]);return e}class j1{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t=new Map,s=Ef(this.defaultParams);return Object.keys(a).forEach(u=>{const d=a[u];null!==d&&(s[u]=d)}),this.styles.styles.forEach(u=>{"string"!=typeof u&&u.forEach((d,l)=>{d&&(d=tC(d,s,e));const n=this.normalizer.normalizePropertyName(l,e);d=this.normalizer.normalizeStyleValue(l,n,d,e),t.set(n,d)})}),t}}class U1{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(s=>{this.states.set(s.name,new j1(s.style,s.options&&s.options.params||{},t))}),lM(this.states,"true","1"),lM(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new sM(a,s,this.states))}),this.fallbackTransition=function N1(r,a,e){return new sM(r,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,l)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,s){return this.transitionFactories.find(d=>d.match(a,e,t,s))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function lM(r,a,e){r.has(a)?r.has(e)||r.set(e,r.get(a)):r.has(e)&&r.set(a,r.get(e))}const q1=new lC;class z1{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,e){const t=[],u=q0(this._driver,e,t,[]);if(t.length)throw function qP(r){return new f.vHH(3503,!1)}();this._animations.set(a,u)}_buildPlayer(a,e,t){const s=a.element,u=FE(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(s,u,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const s=[],u=this._animations.get(a);let d;const l=new Map;if(u?(d=W0(this._driver,e,u,L0,Kb,new Map,new Map,t,q1,s),d.forEach(o=>{const c=zn(l,o.element,new Map);o.postStyleProps.forEach(h=>c.set(h,null))})):(s.push(function zP(){return new f.vHH(3300,!1)}()),d=[]),s.length)throw function GP(r){return new f.vHH(3504,!1)}();l.forEach((o,c)=>{o.forEach((h,m)=>{o.set(m,this._driver.computeStyle(c,m,jn))})});const i=Es(d.map(o=>{const c=l.get(o.element);return this._buildPlayer(o,new Map,c)}));return this._playersById.set(a,i),i.onDestroy(()=>this.destroy(a)),this.players.push(i),i}destroy(a){const e=this._getPlayer(a);e.destroy(),this._playersById.delete(a);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById.get(a);if(!e)throw function WP(r){return new f.vHH(3301,!1)}();return e}listen(a,e,t,s){const u=k0(e,"","","");return P0(this._getPlayer(a),t,u,s),()=>{}}command(a,e,t,s){if("register"==t)return void this.register(a,s[0]);if("create"==t)return void this.create(a,e,s[0]||{});const u=this._getPlayer(a);switch(t){case"play":u.play();break;case"pause":u.pause();break;case"reset":u.reset();break;case"restart":u.restart();break;case"finish":u.finish();break;case"init":u.init();break;case"setPosition":u.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(a)}}}const cM="ng-animate-queued",J0="ng-animate-disabled",Y1=[],dM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},J1={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},fr="__ng_removed";class K0{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function eI(r){return r??null}(t?a.value:a),t){const u=Ef(a);delete u.value,this.options=u}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(s=>{null==t[s]&&(t[s]=e[s])})}}}const Df="void",Z0=new K0(Df);class K1{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,mr(e,this._hostClassName)}listen(a,e,t,s){if(!this._triggers.has(e))throw function $P(r,a){return new f.vHH(3302,!1)}();if(null==t||0==t.length)throw function QP(r){return new f.vHH(3303,!1)}();if(!function tI(r){return"start"==r||"done"==r}(t))throw function YP(r,a){return new f.vHH(3400,!1)}();const u=zn(this._elementListeners,a,[]),d={name:e,phase:t,callback:s};u.push(d);const l=zn(this._engine.statesByElement,a,new Map);return l.has(e)||(mr(a,Zb),mr(a,Zb+"-"+e),l.set(e,Z0)),()=>{this._engine.afterFlush(()=>{const n=u.indexOf(d);n>=0&&u.splice(n,1),this._triggers.has(e)||l.delete(e)})}}register(a,e){return!this._triggers.has(a)&&(this._triggers.set(a,e),!0)}_getTrigger(a){const e=this._triggers.get(a);if(!e)throw function JP(r){return new f.vHH(3401,!1)}();return e}trigger(a,e,t,s=!0){const u=this._getTrigger(e),d=new X0(this.id,e,a);let l=this._engine.statesByElement.get(a);l||(mr(a,Zb),mr(a,Zb+"-"+e),this._engine.statesByElement.set(a,l=new Map));let n=l.get(e);const i=new K0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&n&&i.absorbOptions(n.options),l.set(e,i),n||(n=Z0),i.value!==Df&&n.value===i.value){if(!function rI(r,a){const e=Object.keys(r),t=Object.keys(a);if(e.length!=t.length)return!1;for(let s=0;s{sc(a,w),Ba(a,R)})}return}const h=zn(this._engine.playersByElement,a,[]);h.forEach(p=>{p.namespaceId==this.id&&p.triggerName==e&&p.queued&&p.destroy()});let m=u.matchTransition(n.value,i.value,a,i.params),g=!1;if(!m){if(!s)return;m=u.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:m,fromState:n,toState:i,player:d,isFallbackTransition:g}),g||(mr(a,cM),d.onStart(()=>{Au(a,cM)})),d.onDone(()=>{let p=this.players.indexOf(d);p>=0&&this.players.splice(p,1);const w=this._engine.playersByElement.get(a);if(w){let R=w.indexOf(d);R>=0&&w.splice(R,1)}}),this.players.push(d),h.push(d),d}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(e=>e.delete(a)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(s=>s.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,Xb,!0);t.forEach(s=>{if(s[fr])return;const u=this._engine.fetchNamespacesByElement(s);u.size?u.forEach(d=>d.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(a,e,t,s){const u=this._engine.statesByElement.get(a),d=new Map;if(u){const l=[];if(u.forEach((n,i)=>{if(d.set(i,n.value),this._triggers.has(i)){const o=this.trigger(a,i,Df,s);o&&l.push(o)}}),l.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,d),t&&Es(l).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const s=new Set;e.forEach(u=>{const d=u.name;if(s.has(d))return;s.add(d);const n=this._triggers.get(d).fallbackTransition,i=t.get(d)||Z0,o=new K0(Df),c=new X0(this.id,d,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:d,transition:n,fromState:i,toState:o,player:c,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let s=!1;if(t.totalAnimations){const u=t.players.length?t.playersByQueriedElement.get(a):[];if(u&&u.length)s=!0;else{let d=a;for(;d=d.parentNode;)if(t.statesByElement.get(d)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(a),s)t.markElementAsRemoved(this.id,a,!1,e);else{const u=a[fr];(!u||u===dM)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){mr(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const s=t.player;if(s.destroyed)return;const u=t.element,d=this._elementListeners.get(u);d&&d.forEach(l=>{if(l.name==t.triggerName){const n=k0(u,t.triggerName,t.fromState.value,t.toState.value);n._data=a,P0(t.player,l.phase,n,l.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(t)}),this._queue=[],e.sort((t,s)=>{const u=t.transition.ast.depCount,d=s.transition.ast.depCount;return 0==u||0==d?u-d:this._engine.driver.containsElement(t.element,s.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class Z1{constructor(a,e,t){this.bodyNode=a,this.driver=e,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=(s,u)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new K1(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList,s=this.namespacesByHostElement;if(t.length-1>=0){let d=!1,l=this.driver.getParentElement(e);for(;l;){const n=s.get(l);if(n){const i=t.indexOf(n);t.splice(i+1,0,a),d=!0;break}l=this.driver.getParentElement(l)}d||t.unshift(a)}else t.push(a);return s.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let s=this._namespaceLookup[a];s&&s.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const s=this._namespaceList.indexOf(t);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t)for(let s of t.values())if(s.namespaceId){const u=this._fetchNamespace(s.namespaceId);u&&e.add(u)}return e}trigger(a,e,t,s){if(uC(e)){const u=this._fetchNamespace(a);if(u)return u.trigger(e,t,s),!0}return!1}insertNode(a,e,t,s){if(!uC(e))return;const u=e[fr];if(u&&u.setForRemoval){u.setForRemoval=!1,u.setForMove=!0;const d=this.collectedLeaveElements.indexOf(e);d>=0&&this.collectedLeaveElements.splice(d,1)}if(a){const d=this._fetchNamespace(a);d&&d.insertNode(e,t)}s&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),mr(a,J0)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),Au(a,J0))}removeNode(a,e,t,s){if(uC(e)){const u=a?this._fetchNamespace(a):null;if(u?u.removeNode(e,s):this.markElementAsRemoved(a,e,!1,s),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==a&&d.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(a,e,t,s,u){this.collectedLeaveElements.push(e),e[fr]={namespaceId:a,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:u}}listen(a,e,t,s,u){return uC(e)?this._fetchNamespace(a).listen(e,t,s,u):()=>{}}_buildInstruction(a,e,t,s,u){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,s,a.fromState.options,a.toState.options,e,u)}destroyInnerAnimations(a){let e=this.driver.query(a,Xb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,j0,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Es(this.players).onDone(()=>a());a()})}processLeaveNode(a){const e=a[fr];if(e&&e.setForRemoval){if(a[fr]=dM,e.namespaceId){this.destroyInnerAnimations(a);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(a)}this._onRemovalComplete(a,e.setForRemoval)}a.classList?.contains(J0)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,s)=>this._balanceNamespaceList(t,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Es(e).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(a){throw function KP(r){return new f.vHH(3402,!1)}()}_flushAnimations(a,e){const t=new lC,s=[],u=new Map,d=[],l=new Map,n=new Map,i=new Map,o=new Set;this.disabledNodes.forEach(We=>{o.add(We);const it=this.driver.query(We,".ng-animate-queued",!0);for(let ot=0;ot{const ot=L0+p++;g.set(it,ot),We.forEach(xt=>mr(xt,ot))});const w=[],R=new Set,J=new Set;for(let We=0;WeR.add(xt)):J.add(it))}const Te=new Map,at=pM(h,Array.from(R));at.forEach((We,it)=>{const ot=Kb+p++;Te.set(it,ot),We.forEach(xt=>mr(xt,ot))}),a.push(()=>{m.forEach((We,it)=>{const ot=g.get(it);We.forEach(xt=>Au(xt,ot))}),at.forEach((We,it)=>{const ot=Te.get(it);We.forEach(xt=>Au(xt,ot))}),w.forEach(We=>{this.processLeaveNode(We)})});const xi=[],Xt=[];for(let We=this._namespaceList.length-1;We>=0;We--)this._namespaceList[We].drainQueuedTransitions(e).forEach(ot=>{const xt=ot.player,Li=ot.element;if(xi.push(xt),this.collectedEnterElements.length){const Ki=Li[fr];if(Ki&&Ki.setForMove){if(Ki.previousTriggersValues&&Ki.previousTriggersValues.has(ot.triggerName)){const uc=Ki.previousTriggersValues.get(ot.triggerName),_r=this.statesByElement.get(ot.element);if(_r&&_r.has(ot.triggerName)){const kC=_r.get(ot.triggerName);kC.value=uc,_r.set(ot.triggerName,kC)}}return void xt.destroy()}}const La=!c||!this.driver.containsElement(c,Li),Wn=Te.get(Li),Rs=g.get(Li),ai=this._buildInstruction(ot,t,Rs,Wn,La);if(ai.errors&&ai.errors.length)return void Xt.push(ai);if(La)return xt.onStart(()=>sc(Li,ai.fromStyles)),xt.onDestroy(()=>Ba(Li,ai.toStyles)),void s.push(xt);if(ot.isFallbackTransition)return xt.onStart(()=>sc(Li,ai.fromStyles)),xt.onDestroy(()=>Ba(Li,ai.toStyles)),void s.push(xt);const RD=[];ai.timelines.forEach(Ki=>{Ki.stretchStartingKeyframe=!0,this.disabledNodes.has(Ki.element)||RD.push(Ki)}),ai.timelines=RD,t.append(Li,ai.timelines),d.push({instruction:ai,player:xt,element:Li}),ai.queriedElements.forEach(Ki=>zn(l,Ki,[]).push(xt)),ai.preStyleProps.forEach((Ki,uc)=>{if(Ki.size){let _r=n.get(uc);_r||n.set(uc,_r=new Set),Ki.forEach((kC,Mx)=>_r.add(Mx))}}),ai.postStyleProps.forEach((Ki,uc)=>{let _r=i.get(uc);_r||i.set(uc,_r=new Set),Ki.forEach((kC,Mx)=>_r.add(Mx))})});if(Xt.length){const We=[];Xt.forEach(it=>{We.push(function ZP(r,a){return new f.vHH(3505,!1)}())}),xi.forEach(it=>it.destroy()),this.reportError(We)}const ci=new Map,sn=new Map;d.forEach(We=>{const it=We.element;t.has(it)&&(sn.set(it,it),this._beforeAnimationBuild(We.player.namespaceId,We.instruction,ci))}),s.forEach(We=>{const it=We.element;this._getPreviousPlayers(it,!1,We.namespaceId,We.triggerName,null).forEach(xt=>{zn(ci,it,[]).push(xt),xt.destroy()})});const gr=w.filter(We=>mM(We,n,i)),Do=new Map;hM(Do,this.driver,J,i,jn).forEach(We=>{mM(We,n,i)&&gr.push(We)});const Bf=new Map;m.forEach((We,it)=>{hM(Bf,this.driver,new Set(We),n,"!")}),gr.forEach(We=>{const it=Do.get(We),ot=Bf.get(We);Do.set(We,new Map([...Array.from(it?.entries()??[]),...Array.from(ot?.entries()??[])]))});const dc=[],DD=[],HD={};d.forEach(We=>{const{element:it,player:ot,instruction:xt}=We;if(t.has(it)){if(o.has(it))return ot.onDestroy(()=>Ba(it,xt.toStyles)),ot.disabled=!0,ot.overrideTotalTime(xt.totalTime),void s.push(ot);let Li=HD;if(sn.size>1){let Wn=it;const Rs=[];for(;Wn=Wn.parentNode;){const ai=sn.get(Wn);if(ai){Li=ai;break}Rs.push(Wn)}Rs.forEach(ai=>sn.set(ai,Li))}const La=this._buildAnimation(ot.namespaceId,xt,ci,u,Bf,Do);if(ot.setRealPlayer(La),Li===HD)dc.push(ot);else{const Wn=this.playersByElement.get(Li);Wn&&Wn.length&&(ot.parentPlayer=Es(Wn)),s.push(ot)}}else sc(it,xt.fromStyles),ot.onDestroy(()=>Ba(it,xt.toStyles)),DD.push(ot),o.has(it)&&s.push(ot)}),DD.forEach(We=>{const it=u.get(We.element);if(it&&it.length){const ot=Es(it);We.setRealPlayer(ot)}}),s.forEach(We=>{We.parentPlayer?We.syncPlayerEvents(We.parentPlayer):We.destroy()});for(let We=0;We!La.destroyed);Li.length?iI(this,it,Li):this.processLeaveNode(it)}return w.length=0,dc.forEach(We=>{this.players.push(We),We.onDone(()=>{We.destroy();const it=this.players.indexOf(We);this.players.splice(it,1)}),We.play()}),dc}elementContainsData(a,e){let t=!1;const s=e[fr];return s&&s.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,s,u){let d=[];if(e){const l=this.playersByQueriedElement.get(a);l&&(d=l)}else{const l=this.playersByElement.get(a);if(l){const n=!u||u==Df;l.forEach(i=>{i.queued||!n&&i.triggerName!=s||d.push(i)})}}return(t||s)&&(d=d.filter(l=>!(t&&t!=l.namespaceId||s&&s!=l.triggerName))),d}_beforeAnimationBuild(a,e,t){const u=e.element,d=e.isRemovalTransition?void 0:a,l=e.isRemovalTransition?void 0:e.triggerName;for(const n of e.timelines){const i=n.element,o=i!==u,c=zn(t,i,[]);this._getPreviousPlayers(i,o,d,l,e.toState).forEach(m=>{const g=m.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),m.destroy(),c.push(m)})}sc(u,e.fromStyles)}_buildAnimation(a,e,t,s,u,d){const l=e.triggerName,n=e.element,i=[],o=new Set,c=new Set,h=e.timelines.map(g=>{const p=g.element;o.add(p);const w=p[fr];if(w&&w.removedBeforeQueried)return new mo(g.duration,g.delay);const R=p!==n,J=function nI(r){const a=[];return fM(r,a),a}((t.get(p)||Y1).map(ci=>ci.getRealPlayer())).filter(ci=>!!ci.element&&ci.element===p),Te=u.get(p),at=d.get(p),xi=FE(0,this._normalizer,0,g.keyframes,Te,at),Xt=this._buildPlayer(g,xi,J);if(g.subTimeline&&s&&c.add(p),R){const ci=new X0(a,l,p);ci.setRealPlayer(Xt),i.push(ci)}return Xt});i.forEach(g=>{zn(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function X1(r,a,e){let t=r.get(a);if(t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&r.delete(a)}return t}(this.playersByQueriedElement,g.element,g))}),o.forEach(g=>mr(g,YE));const m=Es(h);return m.onDestroy(()=>{o.forEach(g=>Au(g,YE)),Ba(n,e.toStyles)}),c.forEach(g=>{zn(s,g,[]).push(m)}),m}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new mo(a.duration,a.delay)}}class X0{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new mo,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((e,t)=>{e.forEach(s=>P0(a,t,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){zn(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function uC(r){return r&&1===r.nodeType}function uM(r,a){const e=r.style.display;return r.style.display=a??"none",e}function hM(r,a,e,t,s){const u=[];e.forEach(n=>u.push(uM(n)));const d=[];t.forEach((n,i)=>{const o=new Map;n.forEach(c=>{const h=a.computeStyle(i,c,s);o.set(c,h),(!h||0==h.length)&&(i[fr]=J1,d.push(i))}),r.set(i,o)});let l=0;return e.forEach(n=>uM(n,u[l++])),d}function pM(r,a){const e=new Map;if(r.forEach(l=>e.set(l,[])),0==a.length)return e;const s=new Set(a),u=new Map;function d(l){if(!l)return 1;let n=u.get(l);if(n)return n;const i=l.parentNode;return n=e.has(i)?i:s.has(i)?1:d(i),u.set(l,n),n}return a.forEach(l=>{const n=d(l);1!==n&&e.get(n).push(l)}),e}function mr(r,a){r.classList?.add(a)}function Au(r,a){r.classList?.remove(a)}function iI(r,a,e){Es(e).onDone(()=>r.processLeaveNode(a))}function fM(r,a){for(let e=0;es.add(u)):a.set(r,t),e.delete(r),!0}class hC{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,u)=>{},this._transitionEngine=new Z1(a,e,t),this._timelineEngine=new z1(a,e,t),this._transitionEngine.onRemovalComplete=(s,u)=>this.onRemovalComplete(s,u)}registerTrigger(a,e,t,s,u){const d=a+"-"+s;let l=this._triggerCache[d];if(!l){const n=[],o=q0(this._driver,u,n,[]);if(n.length)throw function UP(r,a){return new f.vHH(3404,!1)}();l=function F1(r,a,e){return new U1(r,a,e)}(s,o,this._normalizer),this._triggerCache[d]=l}this._transitionEngine.registerTrigger(e,s,l)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,s){this._transitionEngine.insertNode(a,e,t,s)}onRemove(a,e,t,s){this._transitionEngine.removeNode(a,e,s||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,s){if("@"==t.charAt(0)){const[u,d]=UE(t);this._timelineEngine.command(u,e,d,s)}else this._transitionEngine.trigger(a,e,t,s)}listen(a,e,t,s,u){if("@"==t.charAt(0)){const[d,l]=UE(t);return this._timelineEngine.listen(d,e,l,u)}return this._transitionEngine.listen(a,e,t,s,u)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let oI=(()=>{class r{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let u=r.initialStylesByElement.get(e);u||r.initialStylesByElement.set(e,u=new Map),this._initialStyles=u}start(){this._state<1&&(this._startStyles&&Ba(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ba(this._element,this._initialStyles),this._endStyles&&(Ba(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(sc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(sc(this._element,this._endStyles),this._endStyles=null),Ba(this._element,this._initialStyles),this._state=3)}}return r.initialStylesByElement=new WeakMap,r})();function ex(r){let a=null;return r.forEach((e,t)=>{(function sI(r){return"display"===r||"position"===r})(t)&&(a=a||new Map,a.set(t,e))}),a}class gM{constructor(a,e,t,s){this.element=a,this.keyframes=e,this.options=t,this._specialStyles=s,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(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const e=[];return a.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(a,e,t){return a.animate(this._convertKeyframesToObject(e),t)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,s)=>{"offset"!==s&&a.set(s,this._finished?t:tM(this.element,s))}),this.currentSnapshot=a}triggerCallback(a){const e="start"===a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class lI{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,e){return!1}containsElement(a,e){return GE(a,e)}getParentElement(a){return B0(a)}query(a,e,t){return WE(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,s,u,d=[]){const n={duration:t,delay:s,fill:0==s?"both":"forwards"};u&&(n.easing=u);const i=new Map,o=d.filter(m=>m instanceof gM);(function h1(r,a){return 0===r||0===a})(t,s)&&o.forEach(m=>{m.currentSnapshot.forEach((g,p)=>i.set(p,g))});let c=function l1(r){return r.length?r[0]instanceof Map?r:r.map(a=>JE(a)):[]}(e).map(m=>Ds(m));c=function p1(r,a,e){if(e.size&&a.length){let t=a[0],s=[];if(e.forEach((u,d)=>{t.has(d)||s.push(d),t.set(d,u)}),s.length)for(let u=1;ud.set(l,tM(r,l)))}}return a}(a,c,i);const h=function aI(r,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=ex(a[0]),a.length>1&&(t=ex(a[a.length-1]))):a instanceof Map&&(e=ex(a)),e||t?new oI(r,e,t):null}(a,c);return new gM(a,c,n,h)}}let cI=(()=>{class r extends Il{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:f.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?tp(e):e;return _M(this._renderer,null,t,"register",[s]),new dI(t,this._renderer)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.FYo),f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class dI extends class Od{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new uI(this._id,a,e||{},this._renderer)}}class uI{constructor(a,e,t,s){this.id=a,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return _M(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function _M(r,a,e,t,s){return r.setProperty(a,`@@${e}:${t}`,s)}const bM="@.disabled";let hI=(()=>{class r{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(u,d)=>{const l=d?.parentNode(u);l&&d.removeChild(l,u)}}createRenderer(e,t){const u=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let o=this._rendererCache.get(u);return o||(o=new CM("",u,this.engine),this._rendererCache.set(u,o)),o}const d=t.id,l=t.id+"-"+this._currentId;this._currentId++,this.engine.register(l,e);const n=o=>{Array.isArray(o)?o.forEach(n):this.engine.registerTrigger(d,l,e,o.name,o)};return t.data.animation.forEach(n),new pI(this,l,u,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){e>=0&&et(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(u=>{const[d,l]=u;d(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.FYo),f.LFG(hC),f.LFG(f.R0b))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class CM{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,s=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,s)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,s){this.delegate.setAttribute(a,e,t,s)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,s){this.delegate.setStyle(a,e,t,s)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==bM?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class pI extends CM{constructor(a,e,t,s){super(e,t,s),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==bM?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.slice(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const s=function fI(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}(a);let u=e.slice(1),d="";return"@"!=u.charAt(0)&&([u,d]=function mI(r){const a=r.indexOf(".");return[r.substring(0,a),r.slice(a+1)]}(u)),this.engine.listen(this.namespaceId,s,u,d,l=>{this.factory.scheduleListenerCallback(l._data||-1,t,l)})}return this.delegate.listen(a,e,t)}}const wM=[{provide:Il,useClass:cI},{provide:Q0,useFactory:function _I(){return new B1}},{provide:hC,useClass:(()=>{class r extends hC{constructor(e,t,s,u){super(e.body,t,s)}ngOnDestroy(){this.flush()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0),f.LFG(O0),f.LFG(Q0),f.LFG(f.z2F))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})()},{provide:f.FYo,useFactory:function bI(r,a,e){return new hI(r,a,e)},deps:[pe,hC,f.R0b]}],tx=[{provide:O0,useFactory:()=>new lI},{provide:f.QbO,useValue:"BrowserAnimations"},...wM],yM=[{provide:O0,useClass:$E},{provide:f.QbO,useValue:"NoopAnimations"},...wM];let CI=(()=>{class r{static withConfig(e){return{ngModule:r,providers:e.disableAnimations?yM:tx}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:tx,imports:[Ua]}),r})(),wI=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,Hp,Bn,ws]}),r})(),xM=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),fC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Vn,$e,ao,xM,$e,xM]}),r})(),$I=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[ls]}),r})(),xC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$I,$e,$e]}),r})(),hx=(()=>{class r{constructor(){this.changes=new He.x}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const hk={provide:hx,deps:[[new f.FiY,new f.tp0,hx]],useFactory:function uk(r){return r||new hx}};let px=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[hk],imports:[M.ez,$e]}),r})();const LM=new f.OlP("mat-chips-default-options");let mx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[yl,{provide:LM,useValue:{separatorKeyCodes:[13]}}],imports:[$e]}),r})();function gx(r,a,e){for(let t in a)if(a.hasOwnProperty(t)){const s=a[t];s?r.setProperty(t,s,e?.has(t)?"important":""):r.removeProperty(t)}return r}function Eu(r,a){const e=a?"":"none";gx(r.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function jM(r,a,e){gx(r.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function TC(r,a){return a&&"none"!=a?r+" "+a:r}function FM(r){const a=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*a}function _x(r,a){return r.getPropertyValue(a).split(",").map(t=>t.trim())}function bx(r){const a=r.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function Cx(r,a,e){const{top:t,bottom:s,left:u,right:d}=r;return e>=t&&e<=s&&a>=u&&a<=d}function Pf(r,a,e){r.top+=a,r.bottom=r.top+r.height,r.left+=e,r.right=r.left+r.width}function UM(r,a,e,t){const{top:s,right:u,bottom:d,left:l,width:n,height:i}=r,o=n*a,c=i*a;return t>s-c&&tl-o&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:bx(e)})})}handleScroll(a){const e=Wi(a),t=this.positions.get(e);if(!t)return null;const s=t.scrollPosition;let u,d;if(e===this._document){const i=this.getViewportScrollPosition();u=i.top,d=i.left}else u=e.scrollTop,d=e.scrollLeft;const l=s.top-u,n=s.left-d;return this.positions.forEach((i,o)=>{i.clientRect&&e!==o&&e.contains(o)&&Pf(i.clientRect,l,n)}),s.top=u,s.left=d,{top:l,left:n}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function qM(r){const a=r.cloneNode(!0),e=a.querySelectorAll("[id]"),t=r.nodeName.toLowerCase();a.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&this._initializeDragSequence(n,l)}else this.disabled||this._initializeDragSequence(this._rootElement,l)},this._pointerMove=l=>{const n=this._getPointerPositionOnPage(l);if(!this._hasStartedDragging){if(Math.abs(n.x-this._pickupPositionOnPage.x)+Math.abs(n.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const m=Date.now()>=this._dragStartTime+this._getDragStartDelay(l),g=this._dropContainer;if(!m)return void this._endDragSequence(l);(!g||!g.isDragging()&&!g.isReceiving())&&(l.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(l)))}return}l.preventDefault();const i=this._getConstrainedPointerPosition(n);if(this._hasMoved=!0,this._lastKnownPointerPosition=n,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,n);else{const o=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,c=this._activeTransform;c.x=i.x-o.x+this._passiveTransform.x,c.y=i.y-o.y+this._passiveTransform.y,this._applyRootElementTransform(c.x,c.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:l,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=l=>{this._endDragSequence(l)},this._nativeDragStart=l=>{if(this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&l.preventDefault()}else this.disabled||l.preventDefault()},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new NM(t),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=Ye(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Eu(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>Gt(t)),this._handles.forEach(t=>Eu(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=Gt(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,SC),e.addEventListener("touchstart",this._pointerDown,$M),e.addEventListener("dragstart",this._nativeDragStart,SC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?Gt(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),Eu(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),Eu(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){If(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,s=t.parentNode,u=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),l=this._getShadowRoot();s.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),jM(t,!1,wx),this._document.body.appendChild(s.replaceChild(u,t)),this._getPreviewInsertionPoint(s,l).appendChild(this._preview),this.started.next({source:this,event:a}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),s=If(e),u=!s&&0!==e.button,d=this._rootElement,l=Wi(e),n=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),i=s?rr(e):_l(e);if(l&&l.draggable&&"mousedown"===e.type&&e.preventDefault(),t||u||n||i)return;if(this._handles.length){const h=d.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=bx(this._boundaryElement));const o=this._previewTemplate;this._pickupPositionInElement=o&&o.template&&!o.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){jM(this._rootElement,!0,wx),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),s=this._getPointerPositionOnPage(a),u=this._getDragDistance(s),d=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:u,dropPoint:s,event:a}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:u,dropPoint:s,event:a}),e.drop(this,t,this._initialIndex,this._initialContainer,d,u,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:s}){let u=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!u&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(u=this._initialContainer),u&&u!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=u,this._dropContainer.enter(this,a,e,u===this._initialContainer&&u.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:u,currentIndex:u.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,s),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,e):this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let s;if(t&&a){const u=a.matchSize?this._initialClientRect:null,d=a.viewContainer.createEmbeddedView(t,a.context);d.detectChanges(),s=YM(d,this._document),this._previewRef=d,a.matchSize?JM(s,u):s.style.transform=EC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=qM(this._rootElement),JM(s,this._initialClientRect),this._initialTransform&&(s.style.transform=this._initialTransform);return gx(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},wx),Eu(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(u=>s.classList.add(u)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function Sk(r){const a=getComputedStyle(r),e=_x(a,"transition-property"),t=e.find(l=>"transform"===l||"all"===l);if(!t)return 0;const s=e.indexOf(t),u=_x(a,"transition-duration"),d=_x(a,"transition-delay");return FM(u[s])+FM(d[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const s=d=>{(!d||Wi(d)===this._preview&&"transform"===d.propertyName)&&(this._preview?.removeEventListener("transitionend",s),t(),clearTimeout(u))},u=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=YM(this._placeholderRef,this._document)):t=qM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e,t){const s=e===this._rootElement?null:e,u=s?s.getBoundingClientRect():a,d=If(t)?t.targetTouches[0]:t,l=this._getViewportScrollPosition();return{x:u.left-a.left+(d.pageX-u.left-l.left),y:u.top-a.top+(d.pageY-u.top-l.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=If(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,s=t.pageX-e.left,u=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const l=this._ownerSVGElement.createSVGPoint();return l.x=s,l.y=u,l.matrixTransform(d.inverse())}}return{x:s,y:u}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:s}=this.constrainPosition?this.constrainPosition(a,this,this._initialClientRect,this._pickupPositionInElement):a;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:u,y:d}=this._pickupPositionInElement,l=this._boundaryRect,{width:n,height:i}=this._getPreviewRect(),o=l.top+d,c=l.bottom-(i-d);t=QM(t,l.left+u,l.right-(n-u)),s=QM(s,o,c)}return{x:t,y:s}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,s=this._pointerDirectionDelta,u=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-u.x),l=Math.abs(t-u.y);return d>this._config.pointerDirectionChangeThreshold&&(s.x=e>u.x?1:-1,u.x=e),l>this._config.pointerDirectionChangeThreshold&&(s.y=t>u.y?1:-1,u.y=t),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,Eu(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,SC),a.removeEventListener("touchstart",this._pointerDown,$M),a.removeEventListener("dragstart",this._nativeDragStart,SC)}_applyRootElementTransform(a,e){const t=EC(a,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=TC(t,this._initialTransform)}_applyPreviewTransform(a,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,s=EC(a,e);this._preview.style.transform=TC(s,t)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(0===s.width&&0===s.height||0===t.width&&0===t.height)return;const u=s.left-t.left,d=t.right-s.right,l=s.top-t.top,n=t.bottom-s.bottom;s.width>t.width?(u>0&&(a+=u),d>0&&(a-=d)):a=0,s.height>t.height?(l>0&&(e+=l),n>0&&(e-=n)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:If(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=Wi(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Pf(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Kc(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return Gt(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(a){return this._handles.find(e=>a.target&&(a.target===e||e.contains(a.target)))}}function EC(r,a){return`translate3d(${Math.round(r)}px, ${Math.round(a)}px, 0)`}function QM(r,a,e){return Math.max(a,Math.min(e,r))}function If(r){return"t"===r.type[0]}function YM(r,a){const e=r.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(s=>t.appendChild(s)),t}function JM(r,a){r.style.width=`${a.width}px`,r.style.height=`${a.height}px`,r.style.transform=EC(a.left,a.top)}function kf(r,a){return Math.max(0,Math.min(a,r))}class Rk{constructor(a,e){this._element=a,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(a){this.withItems(a)}sort(a,e,t,s){const u=this._itemPositions,d=this._getItemIndexFromPointerPosition(a,e,t,s);if(-1===d&&u.length>0)return null;const l="horizontal"===this.orientation,n=u.findIndex(w=>w.drag===a),i=u[d],c=i.clientRect,h=n>d?1:-1,m=this._getItemOffsetPx(u[n].clientRect,c,h),g=this._getSiblingOffsetPx(n,u,h),p=u.slice();return function Hk(r,a,e){const t=kf(a,r.length-1),s=kf(e,r.length-1);if(t===s)return;const u=r[t],d=s{if(p[R]===w)return;const J=w.drag===a,Te=J?m:g,at=J?a.getPlaceholderElement():w.drag.getRootElement();w.offset+=Te,l?(at.style.transform=TC(`translate3d(${Math.round(w.offset)}px, 0, 0)`,w.initialTransform),Pf(w.clientRect,0,Te)):(at.style.transform=TC(`translate3d(0, ${Math.round(w.offset)}px, 0)`,w.initialTransform),Pf(w.clientRect,Te,0))}),this._previousSwap.overlaps=Cx(c,e,t),this._previousSwap.drag=i.drag,this._previousSwap.delta=l?s.x:s.y,{previousIndex:n,currentIndex:d}}enter(a,e,t,s){const u=null==s||s<0?this._getItemIndexFromPointerPosition(a,e,t):s,d=this._activeDraggables,l=d.indexOf(a),n=a.getPlaceholderElement();let i=d[u];if(i===a&&(i=d[u+1]),!i&&(null==u||-1===u||u-1&&d.splice(l,1),i&&!this._dragDropRegistry.isDragging(i)){const o=i.getRootElement();o.parentElement.insertBefore(n,o),d.splice(u,0,a)}else Gt(this._element).appendChild(n),d.push(a);n.style.transform="",this._cacheItemPositions()}withItems(a){this._activeDraggables=a.slice(),this._cacheItemPositions()}withSortPredicate(a){this._sortPredicate=a}reset(){this._activeDraggables.forEach(a=>{const e=a.getRootElement();if(e){const t=this._itemPositions.find(s=>s.drag===a)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a)}updateOnScroll(a,e){this._itemPositions.forEach(({clientRect:t})=>{Pf(t,a,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:bx(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(a,e,t){const s="horizontal"===this.orientation;let u=s?e.left-a.left:e.top-a.top;return-1===t&&(u+=s?e.width-a.width:e.height-a.height),u}_getSiblingOffsetPx(a,e,t){const s="horizontal"===this.orientation,u=e[a].clientRect,d=e[a+-1*t];let l=u[s?"width":"height"]*t;if(d){const n=s?"left":"top",i=s?"right":"bottom";-1===t?l-=d.clientRect[n]-u[i]:l+=u[n]-d.clientRect[i]}return l}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,s="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const d=t[t.length-1].clientRect;return s?a>=d.right:e>=d.bottom}{const d=t[0].clientRect;return s?a<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(a,e,t,s){const u="horizontal"===this.orientation,d=this._itemPositions.findIndex(({drag:l,clientRect:n})=>{if(l===a)return!1;if(s){const i=u?s.x:s.y;if(l===this._previousSwap.drag&&this._previousSwap.overlaps&&i===this._previousSwap.delta)return!1}return u?e>=Math.floor(n.left)&&e=Math.floor(n.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.x,this.entered=new He.x,this.exited=new He.x,this.dropped=new He.x,this.sorted=new He.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=wt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function Tk(r=0,a=Td.z){return r<0&&(r=0),(0,Fh.H)(r,r,a)}(0,Zy).pipe(_t(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,l=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-l):2===this._verticalScrollDirection&&d.scrollBy(0,l),1===this._horizontalScrollDirection?d.scrollBy(-l,0):2===this._horizontalScrollDirection&&d.scrollBy(l,0)})},this.element=Gt(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new NM(t),this._sortStrategy=new Rk(this.element,e),this._sortStrategy.withSortPredicate((d,l)=>this.sortPredicate(d,l,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,s){this._draggingStarted(),null==s&&this.sortingDisabled&&(s=this._draggables.indexOf(a)),this._sortStrategy.enter(a,e,t,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,s,u,d,l,n={}){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:s,isPointerOverContainer:u,distance:d,dropPoint:l,event:n})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===a.indexOf(s))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(a){return this._sortStrategy.direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._sortStrategy.orientation=a,this}withScrollableParents(a){const e=Gt(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,s){if(this.sortingDisabled||!this._clientRect||!UM(this._clientRect,.05,e,t))return;const u=this._sortStrategy.sort(a,e,t,s);u&&this.sorted.next({previousIndex:u.previousIndex,currentIndex:u.currentIndex,container:this,item:a})}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,s=0,u=0;if(this._parentPositions.positions.forEach((d,l)=>{l===this._document||!d.clientRect||t||UM(d.clientRect,.05,a,e)&&([s,u]=function Ik(r,a,e,t){const s=XM(a,t),u=eD(a,e);let d=0,l=0;if(s){const n=r.scrollTop;1===s?n>0&&(d=1):r.scrollHeight-n>r.clientHeight&&(d=2)}if(u){const n=r.scrollLeft;1===u?n>0&&(l=1):r.scrollWidth-n>r.clientWidth&&(l=2)}return[d,l]}(l,d.clientRect,a,e),(s||u)&&(t=l))}),!s&&!u){const{width:d,height:l}=this._viewportRuler.getViewportSize(),n={width:d,height:l,top:0,right:d,bottom:l,left:0};s=XM(n,e),u=eD(n,a),t=window}t&&(s!==this._verticalScrollDirection||u!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=u,this._scrollNode=t,(s||u)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=Gt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=Gt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_reset(){this._isDragging=!1;const a=Gt(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(a,e){return null!=this._clientRect&&Cx(this._clientRect,a,e)}_getSiblingContainerFromPosition(a,e,t){return this._siblings.find(s=>s._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!Cx(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,t);if(!s)return!1;const u=Gt(this.element);return s===u||u.contains(s)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Kc(Gt(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function XM(r,a){const{top:e,bottom:t,height:s}=r,u=.05*s;return a>=e-u&&a<=e+u?1:a>=t-u&&a<=t+u?2:0}function eD(r,a){const{left:e,right:t,width:s}=r,u=.05*s;return a>=e-u&&a<=e+u?1:a>=t-u&&a<=t+u?2:0}const MC=fn({passive:!1,capture:!0});let kk=(()=>{class r{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new He.x,this.pointerUp=new He.x,this.scroll=new He.x,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,MC)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,MC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=t.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:u=>this.pointerUp.next(u),options:!0}).set("scroll",{handler:u=>this.scroll.next(u),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:MC}),s||this._globalListeners.set("mousemove",{handler:u=>this.pointerMove.next(u),options:MC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((u,d)=>{this._document.addEventListener(d,u.handler,u.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Fi.y(s=>this._ngZone.runOutsideAngular(()=>{const d=l=>{this._activeDragInstances.length&&s.next(l)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,Ln.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.R0b),f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Vk={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Bk=(()=>{class r{constructor(e,t,s,u){this._document=e,this._ngZone=t,this._viewportRuler=s,this._dragDropRegistry=u}createDrag(e,t=Vk){return new Dk(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new Pk(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0),f.LFG(f.R0b),f.LFG(Lr),f.LFG(kk))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ok=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[Bk],imports:[Ca]}),r})();function Lk(r,a){if(1&r&&(f.TgZ(0,"div",5)(1,"mat-icon"),f._uU(2),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.Oqu(e.data.icon)}}function jk(r,a){if(1&r&&(f.TgZ(0,"div",6),f._uU(1),f.qZA()),2&r){const e=f.oxw();f.xp6(1),f.hij(" ",e.showTimestamp()," ")}}let Fk=(()=>{class r{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new f.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=pr();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(KH,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function bA(r,a){Rp.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Cn),f.Y36($l))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(f.TgZ(0,"div")(1,"div",0),f.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),f.YNc(2,Lk,3,1,"div",1),f.TgZ(3,"div",2),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.YNc(6,jk,2,1,"div",3),f.TgZ(7,"div",4),f.NdJ("click",function(){return t.waiting=!0,t.doAction()}),f._uU(8),f.qZA()()()),2&e&&(f.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),f.ekj("error","error"===t.data.type)("success","success"===t.data.type),f.xp6(2),f.Q6J("ngIf",null!==t.data.icon),f.xp6(2),f.hij(" ",f.lcZ(5,12,t.data.title)," "),f.xp6(2),f.Q6J("ngIf",t.inDialog),f.xp6(1),f.Q6J("hidden",t.alreadyPressed),f.xp6(1),f.hij(" ",t.data.actionText," "))},dependencies:[M.O5,Nr,vi],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),r})(),Uk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),Wk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),eV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Wk,$e,$e]}),r})(),nV=(()=>{class r{constructor(){this.changes=new He.x,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(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const pV={provide:new f.OlP("mat-datepicker-scroll-strategy"),deps:[_n],useFactory:function hV(r){return()=>r.scrollStrategies.reposition()}};let Tx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[nV,pV],imports:[M.ez,Bn,va,Cl,ho,$e,Ca]}),r})(),HV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Vn,$e,$e]}),r})();new f.OlP("mat-selectsearch-default-options");let VV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[[M.ez,y,Bn,fC,Un,Sf,go]]}),r})(),sD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})(),Sx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})(),BV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),cD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,$e,BV,ho]}),r})(),uD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[_d,$e,_d,$e]}),r})(),jV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[oo]}),r})(),Ex=(()=>{class r{constructor(){this.changes=new He.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const JV={provide:Ex,deps:[[new f.FiY,new f.tp0,Ex]],useFactory:function YV(r){return r||new Ex}};let mD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[JV,yl],imports:[$e,M.ez,ho,Bn,jV,Un,Vn,$e]}),r})(),gD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,$e,Ca,Ca,$e]}),r})(),bD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[_d,Vn,$e,vl,M.ez,_d,$e,vl,Sx]}),r})(),mB=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,$e,ho,Vn,ao,Cl,$e]}),r})(),CD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),wD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[CD,Vn,$e,ao,CD,$e]}),r})(),yD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,sD,Sx,cD,Bn,uD,fC,Un,xC,Hp,Sf,xa,qn,ls,C,y,mD,Tx,Ph,gD,bD,Nl,OE,px,Ur,go,Nd,Vn,xC,wD,mx,sD,Sx,cD,Bn,uD,fC,Un,xC,Hp,Sf,xa,qn,ls,C,y,mD,Tx,Ph,gD,bD,Nl,OE,px,Ur,go,Nd,Vn,mB,wD,mx]}),r})(),MB=(()=>{class r extends Ag{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const DB={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let vD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[{provide:rn,useClass:MB},{provide:is,useValue:DB}],imports:[M.ez,fC,xC,C,mx,Ok,ws,Jo,px,Ur,Sf,Jb,Un,Nl,Bn,go,xa,y,qn,Vn,yH,Uk,eV,Tx,HV,kh,Nd,VV,ls,Hp,oA,yD,IR]}),r})();f.B6R(BE,[M.O5,Ha,Mi,Ng,dv,Gh,Ea,Da,Fk],[vi,kE]),new Date(324721404e5).valueOf();let KO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,Bn,Un,Jo,vD,ws,xa,y,qn,Jb]}),r})(),ZO=(()=>{class r{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(zr),f.Y36(Qt))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(f.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"button",4),f.NdJ("click",function(){return t.startAuth()}),f._uU(7),f.ALo(8,"translate"),f.TgZ(9,"mat-icon"),f._uU(10," login "),f.qZA()()()()()),2&e&&(f.xp6(4),f.hij(" ",f.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),f.xp6(3),f.hij(" ",f.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Mi,Nr,vi],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),r})();function XO(r,a){1&r&&(f.TgZ(0,"perun-web-apps-alert",8),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const eL=[{path:"service-access",component:(()=>{class r{constructor(e,t,s){this.authzService=e,this.auth=t,this.router=s,this.usernameCtrl=new Va(null,[$r.required]),this.passwordCtrl=new Va(null,[$r.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(lt),f.Y36(zr),f.Y36(Qt))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl","keyup.enter"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(f.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.YNc(6,XO,3,3,"perun-web-apps-alert",3),f.TgZ(7,"mat-form-field",4)(8,"mat-label"),f._uU(9),f.ALo(10,"translate"),f.qZA(),f.TgZ(11,"input",5),f.NdJ("keyup.enter",function(){return t.startAuth()}),f.qZA(),f.TgZ(12,"mat-error"),f._uU(13),f.ALo(14,"translate"),f.qZA()(),f.TgZ(15,"mat-form-field",4)(16,"mat-label"),f._uU(17),f.ALo(18,"translate"),f.qZA(),f.TgZ(19,"input",6),f.NdJ("keyup.enter",function(){return t.startAuth()}),f.qZA(),f.TgZ(20,"mat-error"),f._uU(21),f.ALo(22,"translate"),f.qZA()(),f.TgZ(23,"button",7),f.NdJ("click",function(){return t.startAuth()}),f._uU(24),f.ALo(25,"translate"),f.TgZ(26,"mat-icon"),f._uU(27," login "),f.qZA()()()()()),2&e&&(f.xp6(4),f.Oqu(f.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),f.xp6(2),f.Q6J("ngIf",t.wrongUsernameOrPassword),f.xp6(3),f.Oqu(f.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),f.xp6(2),f.Q6J("formControl",t.usernameCtrl),f.xp6(2),f.hij(" ",f.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),f.xp6(4),f.Oqu(f.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),f.xp6(2),f.Q6J("formControl",t.passwordCtrl)("type","password"),f.xp6(2),f.hij(" ",f.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),f.xp6(2),f.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),f.xp6(1),f.hij(" ",f.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[M.O5,Mi,Nr,_s,Vl,Aa,Wr,Ia,Ao,_u,It,Ha,vi],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),r})()},{path:"login",component:ZO}];let tL=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Jo.forRoot(eL,{relativeLinkResolution:"legacy"}),M.ez,Jo]}),r})(),iL=(()=>{class r{constructor(e,t,s,u,d){this.http=e,this.storeService=t,this.authzSevice=s,this.titleService=u,this.utilsService=d}initializeColors(e,t){return new Promise(s=>{t.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d)}),e.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d),this.setEntityTheme(u.entity,d)}),s()})}setEntityTheme(e,t){const s=function nL(r){return[yn(tinycolor(r).lighten(52),"50"),yn(tinycolor(r).lighten(37),"100"),yn(tinycolor(r).lighten(26),"200"),yn(tinycolor(r).lighten(12),"300"),yn(tinycolor(r).lighten(6),"400"),yn(tinycolor(r),"500"),yn(tinycolor(r).darken(6),"600"),yn(tinycolor(r).darken(12),"700"),yn(tinycolor(r).darken(18),"800"),yn(tinycolor(r).darken(24),"900"),yn(tinycolor(r).lighten(50).saturate(30),"A100"),yn(tinycolor(r).lighten(30).saturate(30),"A200"),yn(tinycolor(r).lighten(10).saturate(15),"A400"),yn(tinycolor(r).lighten(5).saturate(5),"A700")]}(t);for(const u of s){const n=`--${e}-theme-primary-contrast-${u.name}`,i=u.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${u.name}`,`${u.red},${u.green},${u.blue}`),document.documentElement.style.setProperty(n,i)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const s=document.location.hostname;t?.brandings?.[s]&&this.storeService.setBanding(s),e()},()=>{e()})})}getNoCacheHeaders(){return new v.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(s=>{this.storeService.setAppsConfig(s),e()},s=>t(s))})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mi),f.LFG(lt),f.LFG(X),f.LFG(ea))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function yn(r,a){const e=tinycolor(r),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let rL=(()=>{class r{constructor(e,t,s,u){this.initAuthService=e,this.appConfigService=t,this.location=s,this.mfaHandlerService=u}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>location.search.substring(1).includes("token")?Promise.resolve(!0):this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),location.search.substring(1).includes("token")?void 0:this.initAuthService.loadPrincipal().then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Lp),f.LFG(iL),f.LFG(M.Ye),f.LFG(Op))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const aL=new f.OlP("perun-api-service"),oL={provide:v.TP,useExisting:(0,f.Gpc)(()=>fb),multi:!0};function sL(r){return new CP(r,"./assets/i18n/",".json")}function lL(r){const a={basePath:r.getProperty("api_url")};return new Ue(a)}const cL=r=>()=>r.loadConfigs();let dL=(()=>{class r{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(LA),f.LFG(Bi))},r.\u0275mod=f.oAB({type:r,bootstrap:[bP]}),r.\u0275inj=f.cJS({providers:[LA,{provide:f.ip1,useFactory:cL,multi:!0,deps:[rL]},{provide:Ue,useFactory:lL,deps:[mi]},fb,oL,{provide:aL,useClass:jA},{provide:bo.Hy,useFactory:()=>localStorage}],imports:[Ua,ws.forRoot({loader:{provide:zl,useFactory:sL,deps:[v.eN]}}),CI,Un,wI,Nf,v.JF,tL,yD,Jb,DH,bo.zr.forRoot(),vD,KO]}),r})();(0,f.G48)(),Ke().bootstrapModule(dL).catch(r=>console.error(r))},1302:function(N,z,E){var M;!function(f,L){var F={};!function(f){"use strict";f.__esModule=!0,f.digestLength=32,f.blockSize=64;var L=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function F(oe,ie,ae,he,fe){for(var _e,Oe,je,Ae,Ce,xe,Je,Re,De,Me,le,ce,ge;fe>=64;){for(_e=ie[0],Oe=ie[1],je=ie[2],Ae=ie[3],Ce=ie[4],xe=ie[5],Je=ie[6],Re=ie[7],Me=0;Me<16;Me++)oe[Me]=(255&ae[le=he+4*Me])<<24|(255&ae[le+1])<<16|(255&ae[le+2])<<8|255&ae[le+3];for(Me=16;Me<64;Me++)oe[Me]=((ce=((De=oe[Me-2])>>>17|De<<15)^(De>>>19|De<<13)^De>>>10)+oe[Me-7]|0)+((ge=((De=oe[Me-15])>>>7|De<<25)^(De>>>18|De<<14)^De>>>3)+oe[Me-16]|0);for(Me=0;Me<64;Me++)ce=(((Ce>>>6|Ce<<26)^(Ce>>>11|Ce<<21)^(Ce>>>25|Ce<<7))+(Ce&xe^~Ce&Je)|0)+(Re+(L[Me]+oe[Me]|0)|0)|0,ge=((_e>>>2|_e<<30)^(_e>>>13|_e<<19)^(_e>>>22|_e<<10))+(_e&Oe^_e&je^Oe&je)|0,Re=Je,Je=xe,xe=Ce,Ce=Ae+ce|0,Ae=je,je=Oe,Oe=_e,_e=ce+ge|0;ie[0]+=_e,ie[1]+=Oe,ie[2]+=je,ie[3]+=Ae,ie[4]+=Ce,ie[5]+=xe,ie[6]+=Je,ie[7]+=Re,he+=64,fe-=64}return he}var B=function(){function oe(){this.digestLength=f.digestLength,this.blockSize=f.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return oe.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},oe.prototype.clean=function(){for(var ie=0;ie0){for(;this.bufferLength<64&&ae>0;)this.buffer[this.bufferLength++]=ie[he++],ae--;64===this.bufferLength&&(F(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ae>=64&&(he=F(this.temp,this.state,ie,he,ae),ae%=64);ae>0;)this.buffer[this.bufferLength++]=ie[he++],ae--;return this},oe.prototype.finish=function(ie){if(!this.finished){var ae=this.bytesHashed,he=this.bufferLength,fe=ae/536870912|0,_e=ae<<3,Oe=ae%64<56?64:128;this.buffer[he]=128;for(var je=he+1;je>>24&255,this.buffer[Oe-7]=fe>>>16&255,this.buffer[Oe-6]=fe>>>8&255,this.buffer[Oe-5]=fe>>>0&255,this.buffer[Oe-4]=_e>>>24&255,this.buffer[Oe-3]=_e>>>16&255,this.buffer[Oe-2]=_e>>>8&255,this.buffer[Oe-1]=_e>>>0&255,F(this.temp,this.state,this.buffer,0,Oe),this.finished=!0}for(je=0;je<8;je++)ie[4*je+0]=this.state[je]>>>24&255,ie[4*je+1]=this.state[je]>>>16&255,ie[4*je+2]=this.state[je]>>>8&255,ie[4*je+3]=this.state[je]>>>0&255;return this},oe.prototype.digest=function(){var ie=new Uint8Array(this.digestLength);return this.finish(ie),ie},oe.prototype._saveState=function(ie){for(var ae=0;aethis.blockSize)(new B).update(ie).finish(ae).clean();else for(var he=0;he1&&ie.update(oe),ae&&ie.update(ae),ie.update(he),ie.finish(oe),he[0]++}f.HMAC=q,f.hash=Q,f.default=Q,f.hmac=ee;var Y=new Uint8Array(f.digestLength);f.hkdf=function G(oe,ie,ae,he){void 0===ie&&(ie=Y),void 0===he&&(he=32);for(var fe=new Uint8Array([1]),_e=ee(ie,oe),Oe=new q(_e),je=new Uint8Array(Oe.digestLength),Ae=je.length,Ce=new Uint8Array(he),xe=0;xe>>24&255,Oe[1]=Je>>>16&255,Oe[2]=Je>>>8&255,Oe[3]=Je>>>0&255,fe.reset(),fe.update(ie),fe.update(Oe),fe.finish(Ae);for(var Re=0;Re<_e;Re++)je[Re]=Ae[Re];for(Re=2;Re<=ae;Re++){fe.reset(),fe.update(Ae).finish(Ae);for(var De=0;De<_e;De++)je[De]^=Ae[De]}for(Re=0;Re<_e&&xe*_e+Re=G.status}function q(Y){try{Y.dispatchEvent(new MouseEvent("click"))}catch{var G=document.createEvent("MouseEvents");G.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Y.dispatchEvent(G)}}var Q="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,ee=Q.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),W=Q.saveAs||("object"!=typeof window||window!==Q?function(){}:"download"in HTMLAnchorElement.prototype&&!ee?function(Y,G,re){var oe=Q.URL||Q.webkitURL,ie=document.createElement("a");ie.download=G=G||Y.name||"download",ie.rel="noopener","string"==typeof Y?(ie.href=Y,ie.origin===location.origin?q(ie):B(ie.href)?F(Y,G,re):q(ie,ie.target="_blank")):(ie.href=oe.createObjectURL(Y),setTimeout(function(){oe.revokeObjectURL(ie.href)},4e4),setTimeout(function(){q(ie)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,G,re){if(G=G||Y.name||"download","string"!=typeof Y)navigator.msSaveOrOpenBlob(function L(Y,G){return typeof G>"u"?G={autoBom:!1}:"object"!=typeof G&&(console.warn("Deprecated: Expected third argument to be a object"),G={autoBom:!G}),G.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Y.type)?new Blob(["\ufeff",Y],{type:Y.type}):Y}(Y,re),G);else if(B(Y))F(Y,G,re);else{var oe=document.createElement("a");oe.href=Y,oe.target="_blank",setTimeout(function(){q(oe)})}}:function(Y,G,re,oe){if((oe=oe||open("","_blank"))&&(oe.document.title=oe.document.body.innerText="downloading..."),"string"==typeof Y)return F(Y,G,re);var ie="application/octet-stream"===Y.type,ae=/constructor/i.test(Q.HTMLElement)||Q.safari,he=/CriOS\/[\d]+/.test(navigator.userAgent);if((he||ie&&ae||ee)&&typeof FileReader<"u"){var fe=new FileReader;fe.onloadend=function(){var je=fe.result;je=he?je:je.replace(/^data:[^;]*;/,"data:attachment/file;"),oe?oe.location.href=je:location=je,oe=null},fe.readAsDataURL(Y)}else{var _e=Q.URL||Q.webkitURL,Oe=_e.createObjectURL(Y);oe?oe.location=Oe:location.href=Oe,oe=null,setTimeout(function(){_e.revokeObjectURL(Oe)},4e4)}});Q.saveAs=W.saveAs=W,N.exports=W}.apply(z,[]))&&(N.exports=f)},9751:(N,z,E)=>{"use strict";E.d(z,{y:()=>ee});var M=E(930),f=E(727),L=E(8822),F=E(9635),B=E(2416),q=E(576),Q=E(2806);let ee=(()=>{class re{constructor(ie){ie&&(this._subscribe=ie)}lift(ie){const ae=new re;return ae.source=this,ae.operator=ie,ae}subscribe(ie,ae,he){const fe=function G(re){return re&&re instanceof M.Lv||function Y(re){return re&&(0,q.m)(re.next)&&(0,q.m)(re.error)&&(0,q.m)(re.complete)}(re)&&(0,f.Nn)(re)}(ie)?ie:new M.Hp(ie,ae,he);return(0,Q.x)(()=>{const{operator:_e,source:Oe}=this;fe.add(_e?_e.call(fe,Oe):Oe?this._subscribe(fe):this._trySubscribe(fe))}),fe}_trySubscribe(ie){try{return this._subscribe(ie)}catch(ae){ie.error(ae)}}forEach(ie,ae){return new(ae=W(ae))((he,fe)=>{const _e=new M.Hp({next:Oe=>{try{ie(Oe)}catch(je){fe(je),_e.unsubscribe()}},error:fe,complete:he});this.subscribe(_e)})}_subscribe(ie){var ae;return null===(ae=this.source)||void 0===ae?void 0:ae.subscribe(ie)}[L.L](){return this}pipe(...ie){return(0,F.U)(ie)(this)}toPromise(ie){return new(ie=W(ie))((ae,he)=>{let fe;this.subscribe(_e=>fe=_e,_e=>he(_e),()=>ae(fe))})}}return re.create=oe=>new re(oe),re})();function W(re){var oe;return null!==(oe=re??B.v.Promise)&&void 0!==oe?oe:Promise}},7579:(N,z,E)=>{"use strict";E.d(z,{x:()=>Q});var M=E(9751),f=E(727);const F=(0,E(3888).d)(W=>function(){W(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var B=E(8737),q=E(2806);let Q=(()=>{class W extends M.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const re=new ee(this,this);return re.operator=G,re}_throwIfClosed(){if(this.closed)throw new F}next(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const re of this.currentObservers)re.next(G)}})}error(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:re}=this;for(;re.length;)re.shift().error(G)}})}complete(){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:G}=this;for(;G.length;)G.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var G;return(null===(G=this.observers)||void 0===G?void 0:G.length)>0}_trySubscribe(G){return this._throwIfClosed(),super._trySubscribe(G)}_subscribe(G){return this._throwIfClosed(),this._checkFinalizedStatuses(G),this._innerSubscribe(G)}_innerSubscribe(G){const{hasError:re,isStopped:oe,observers:ie}=this;return re||oe?f.Lc:(this.currentObservers=null,ie.push(G),new f.w0(()=>{this.currentObservers=null,(0,B.P)(ie,G)}))}_checkFinalizedStatuses(G){const{hasError:re,thrownError:oe,isStopped:ie}=this;re?G.error(oe):ie&&G.complete()}asObservable(){const G=new M.y;return G.source=this,G}}return W.create=(Y,G)=>new ee(Y,G),W})();class ee extends Q{constructor(Y,G){super(),this.destination=Y,this.source=G}next(Y){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===re||re.call(G,Y)}error(Y){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===re||re.call(G,Y)}complete(){var Y,G;null===(G=null===(Y=this.destination)||void 0===Y?void 0:Y.complete)||void 0===G||G.call(Y)}_subscribe(Y){var G,re;return null!==(re=null===(G=this.source)||void 0===G?void 0:G.subscribe(Y))&&void 0!==re?re:f.Lc}}},930:(N,z,E)=>{"use strict";E.d(z,{Hp:()=>he,Lv:()=>re});var M=E(576),f=E(727),L=E(2416),F=E(7849),B=E(5032);const q=W("C",void 0,void 0);function W(Ae,Ce,xe){return{kind:Ae,value:Ce,error:xe}}var Y=E(3410),G=E(2806);class re extends f.w0{constructor(Ce){super(),this.isStopped=!1,Ce?(this.destination=Ce,(0,f.Nn)(Ce)&&Ce.add(this)):this.destination=je}static create(Ce,xe,Je){return new he(Ce,xe,Je)}next(Ce){this.isStopped?Oe(function ee(Ae){return W("N",Ae,void 0)}(Ce),this):this._next(Ce)}error(Ce){this.isStopped?Oe(function Q(Ae){return W("E",void 0,Ae)}(Ce),this):(this.isStopped=!0,this._error(Ce))}complete(){this.isStopped?Oe(q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ce){this.destination.next(Ce)}_error(Ce){try{this.destination.error(Ce)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const oe=Function.prototype.bind;function ie(Ae,Ce){return oe.call(Ae,Ce)}class ae{constructor(Ce){this.partialObserver=Ce}next(Ce){const{partialObserver:xe}=this;if(xe.next)try{xe.next(Ce)}catch(Je){fe(Je)}}error(Ce){const{partialObserver:xe}=this;if(xe.error)try{xe.error(Ce)}catch(Je){fe(Je)}else fe(Ce)}complete(){const{partialObserver:Ce}=this;if(Ce.complete)try{Ce.complete()}catch(xe){fe(xe)}}}class he extends re{constructor(Ce,xe,Je){let Re;if(super(),(0,M.m)(Ce)||!Ce)Re={next:Ce??void 0,error:xe??void 0,complete:Je??void 0};else{let De;this&&L.v.useDeprecatedNextContext?(De=Object.create(Ce),De.unsubscribe=()=>this.unsubscribe(),Re={next:Ce.next&&ie(Ce.next,De),error:Ce.error&&ie(Ce.error,De),complete:Ce.complete&&ie(Ce.complete,De)}):Re=Ce}this.destination=new ae(Re)}}function fe(Ae){L.v.useDeprecatedSynchronousErrorHandling?(0,G.O)(Ae):(0,F.h)(Ae)}function Oe(Ae,Ce){const{onStoppedNotification:xe}=L.v;xe&&Y.z.setTimeout(()=>xe(Ae,Ce))}const je={closed:!0,next:B.Z,error:function _e(Ae){throw Ae},complete:B.Z}},727:(N,z,E)=>{"use strict";E.d(z,{Lc:()=>q,w0:()=>B,Nn:()=>Q});var M=E(576);const L=(0,E(3888).d)(W=>function(G){W(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((re,oe)=>`${oe+1}) ${re.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var F=E(8737);class B{constructor(Y){this.initialTeardown=Y,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Y;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const ie of G)ie.remove(this);else G.remove(this);const{initialTeardown:re}=this;if((0,M.m)(re))try{re()}catch(ie){Y=ie instanceof L?ie.errors:[ie]}const{_finalizers:oe}=this;if(oe){this._finalizers=null;for(const ie of oe)try{ee(ie)}catch(ae){Y=Y??[],ae instanceof L?Y=[...Y,...ae.errors]:Y.push(ae)}}if(Y)throw new L(Y)}}add(Y){var G;if(Y&&Y!==this)if(this.closed)ee(Y);else{if(Y instanceof B){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push(Y)}}_hasParent(Y){const{_parentage:G}=this;return G===Y||Array.isArray(G)&&G.includes(Y)}_addParent(Y){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push(Y),G):G?[G,Y]:Y}_removeParent(Y){const{_parentage:G}=this;G===Y?this._parentage=null:Array.isArray(G)&&(0,F.P)(G,Y)}remove(Y){const{_finalizers:G}=this;G&&(0,F.P)(G,Y),Y instanceof B&&Y._removeParent(this)}}B.EMPTY=(()=>{const W=new B;return W.closed=!0,W})();const q=B.EMPTY;function Q(W){return W instanceof B||W&&"closed"in W&&(0,M.m)(W.remove)&&(0,M.m)(W.add)&&(0,M.m)(W.unsubscribe)}function ee(W){(0,M.m)(W)?W():W.unsubscribe()}},2416:(N,z,E)=>{"use strict";E.d(z,{v:()=>M});const M={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(N,z,E)=>{"use strict";E.d(z,{a:()=>Y});var M=E(9751),f=E(4742),L=E(2076),F=E(4671),B=E(3268),q=E(3269),Q=E(1810),ee=E(5403),W=E(9672);function Y(...oe){const ie=(0,q.yG)(oe),ae=(0,q.jO)(oe),{args:he,keys:fe}=(0,f.D)(oe);if(0===he.length)return(0,L.D)([],ie);const _e=new M.y(function G(oe,ie,ae=F.y){return he=>{re(ie,()=>{const{length:fe}=oe,_e=new Array(fe);let Oe=fe,je=fe;for(let Ae=0;Ae{const Ce=(0,L.D)(oe[Ae],ie);let xe=!1;Ce.subscribe((0,ee.x)(he,Je=>{_e[Ae]=Je,xe||(xe=!0,je--),je||he.next(ae(_e.slice()))},()=>{--Oe||he.complete()}))},he)},he)}}(he,ie,fe?Oe=>(0,Q.n)(fe,Oe):F.y));return ae?_e.pipe((0,B.Z)(ae)):_e}function re(oe,ie,ae){oe?(0,W.f)(ae,oe,ie):ie()}},7272:(N,z,E)=>{"use strict";E.d(z,{z:()=>B});var M=E(8189),L=E(3269),F=E(2076);function B(...q){return function f(){return(0,M.J)(1)}()((0,F.D)(q,(0,L.yG)(q)))}},515:(N,z,E)=>{"use strict";E.d(z,{E:()=>f});const f=new(E(9751).y)(B=>B.complete())},2076:(N,z,E)=>{"use strict";E.d(z,{D:()=>Je});var M=E(8421),f=E(9672),L=E(4482),F=E(5403);function B(Re,De=0){return(0,L.e)((Me,le)=>{Me.subscribe((0,F.x)(le,ce=>(0,f.f)(le,Re,()=>le.next(ce),De),()=>(0,f.f)(le,Re,()=>le.complete(),De),ce=>(0,f.f)(le,Re,()=>le.error(ce),De)))})}function q(Re,De=0){return(0,L.e)((Me,le)=>{le.add(Re.schedule(()=>Me.subscribe(le),De))})}var W=E(9751),G=E(2202),re=E(576);function ie(Re,De){if(!Re)throw new Error("Iterable cannot be null");return new W.y(Me=>{(0,f.f)(Me,De,()=>{const le=Re[Symbol.asyncIterator]();(0,f.f)(Me,De,()=>{le.next().then(ce=>{ce.done?Me.complete():Me.next(ce.value)})},0,!0)})})}var ae=E(3670),he=E(8239),fe=E(1144),_e=E(6495),Oe=E(2206),je=E(4532),Ae=E(3260);function Je(Re,De){return De?function xe(Re,De){if(null!=Re){if((0,ae.c)(Re))return function Q(Re,De){return(0,M.Xf)(Re).pipe(q(De),B(De))}(Re,De);if((0,fe.z)(Re))return function Y(Re,De){return new W.y(Me=>{let le=0;return De.schedule(function(){le===Re.length?Me.complete():(Me.next(Re[le++]),Me.closed||this.schedule())})})}(Re,De);if((0,he.t)(Re))return function ee(Re,De){return(0,M.Xf)(Re).pipe(q(De),B(De))}(Re,De);if((0,Oe.D)(Re))return ie(Re,De);if((0,_e.T)(Re))return function oe(Re,De){return new W.y(Me=>{let le;return(0,f.f)(Me,De,()=>{le=Re[G.h](),(0,f.f)(Me,De,()=>{let ce,ge;try{({value:ce,done:ge}=le.next())}catch(pe){return void Me.error(pe)}ge?Me.complete():Me.next(ce)},0,!0)}),()=>(0,re.m)(le?.return)&&le.return()})}(Re,De);if((0,Ae.L)(Re))return function Ce(Re,De){return ie((0,Ae.Q)(Re),De)}(Re,De)}throw(0,je.z)(Re)}(Re,De):(0,M.Xf)(Re)}},8421:(N,z,E)=>{"use strict";E.d(z,{Xf:()=>oe});var M=E(655),f=E(1144),L=E(8239),F=E(9751),B=E(3670),q=E(2206),Q=E(4532),ee=E(6495),W=E(3260),Y=E(576),G=E(7849),re=E(8822);function oe(Ae){if(Ae instanceof F.y)return Ae;if(null!=Ae){if((0,B.c)(Ae))return function ie(Ae){return new F.y(Ce=>{const xe=Ae[re.L]();if((0,Y.m)(xe.subscribe))return xe.subscribe(Ce);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ae);if((0,f.z)(Ae))return function ae(Ae){return new F.y(Ce=>{for(let xe=0;xe{Ae.then(xe=>{Ce.closed||(Ce.next(xe),Ce.complete())},xe=>Ce.error(xe)).then(null,G.h)})}(Ae);if((0,q.D)(Ae))return _e(Ae);if((0,ee.T)(Ae))return function fe(Ae){return new F.y(Ce=>{for(const xe of Ae)if(Ce.next(xe),Ce.closed)return;Ce.complete()})}(Ae);if((0,W.L)(Ae))return function Oe(Ae){return _e((0,W.Q)(Ae))}(Ae)}throw(0,Q.z)(Ae)}function _e(Ae){return new F.y(Ce=>{(function je(Ae,Ce){var xe,Je,Re,De;return(0,M.mG)(this,void 0,void 0,function*(){try{for(xe=(0,M.KL)(Ae);!(Je=yield xe.next()).done;)if(Ce.next(Je.value),Ce.closed)return}catch(Me){Re={error:Me}}finally{try{Je&&!Je.done&&(De=xe.return)&&(yield De.call(xe))}finally{if(Re)throw Re.error}}Ce.complete()})})(Ae,Ce).catch(xe=>Ce.error(xe))})}},6451:(N,z,E)=>{"use strict";E.d(z,{T:()=>q});var M=E(8189),f=E(8421),L=E(515),F=E(3269),B=E(2076);function q(...Q){const ee=(0,F.yG)(Q),W=(0,F._6)(Q,1/0),Y=Q;return Y.length?1===Y.length?(0,f.Xf)(Y[0]):(0,M.J)(W)((0,B.D)(Y,ee)):L.E}},9646:(N,z,E)=>{"use strict";E.d(z,{of:()=>L});var M=E(3269),f=E(2076);function L(...F){const B=(0,M.yG)(F);return(0,f.D)(F,B)}},102:(N,z,E)=>{"use strict";E.d(z,{S:()=>q});var M=E(9751),f=E(8421);const{isArray:L}=Array;var B=E(5403);function q(...ee){return 1===(ee=function F(ee){return 1===ee.length&&L(ee[0])?ee[0]:ee}(ee)).length?(0,f.Xf)(ee[0]):new M.y(function Q(ee){return W=>{let Y=[];for(let G=0;Y&&!W.closed&&G{if(Y){for(let oe=0;oe{"use strict";E.d(z,{_:()=>L});var M=E(9751),f=E(576);function L(F,B){const q=(0,f.m)(F)?F:()=>F,Q=ee=>ee.error(q());return new M.y(B?ee=>B.schedule(Q,0,ee):Q)}},2805:(N,z,E)=>{"use strict";E.d(z,{H:()=>B});var M=E(9751),f=E(4986),L=E(3532),F=E(1165);function B(q=0,Q,ee=f.P){let W=-1;return null!=Q&&((0,L.K)(Q)?ee=Q:W=Q),new M.y(Y=>{let G=(0,F.q)(q)?+q-ee.now():q;G<0&&(G=0);let re=0;return ee.schedule(function(){Y.closed||(Y.next(re++),0<=W?this.schedule(void 0,W):Y.complete())},G)})}},5403:(N,z,E)=>{"use strict";E.d(z,{x:()=>f});var M=E(930);function f(F,B,q,Q,ee){return new L(F,B,q,Q,ee)}class L extends M.Lv{constructor(B,q,Q,ee,W,Y){super(B),this.onFinalize=W,this.shouldUnsubscribe=Y,this._next=q?function(G){try{q(G)}catch(re){B.error(re)}}:super._next,this._error=ee?function(G){try{ee(G)}catch(re){B.error(re)}finally{this.unsubscribe()}}:super._error,this._complete=Q?function(){try{Q()}catch(G){B.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var B;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:q}=this;super.unsubscribe(),!q&&(null===(B=this.onFinalize)||void 0===B||B.call(this))}}}},262:(N,z,E)=>{"use strict";E.d(z,{K:()=>F});var M=E(8421),f=E(5403),L=E(4482);function F(B){return(0,L.e)((q,Q)=>{let Y,ee=null,W=!1;ee=q.subscribe((0,f.x)(Q,void 0,void 0,G=>{Y=(0,M.Xf)(B(G,F(B)(q))),ee?(ee.unsubscribe(),ee=null,Y.subscribe(Q)):W=!0})),W&&(ee.unsubscribe(),ee=null,Y.subscribe(Q))})}},4351:(N,z,E)=>{"use strict";E.d(z,{b:()=>L});var M=E(5577),f=E(576);function L(F,B){return(0,f.m)(B)?(0,M.z)(F,B,1):(0,M.z)(F,1)}},8372:(N,z,E)=>{"use strict";E.d(z,{b:()=>F});var M=E(4986),f=E(4482),L=E(5403);function F(B,q=M.z){return(0,f.e)((Q,ee)=>{let W=null,Y=null,G=null;const re=()=>{if(W){W.unsubscribe(),W=null;const ie=Y;Y=null,ee.next(ie)}};function oe(){const ie=G+B,ae=q.now();if(ae{Y=ie,G=q.now(),W||(W=q.schedule(oe,B),ee.add(W))},()=>{re(),ee.complete()},void 0,()=>{Y=W=null}))})}},6590:(N,z,E)=>{"use strict";E.d(z,{d:()=>L});var M=E(4482),f=E(5403);function L(F){return(0,M.e)((B,q)=>{let Q=!1;B.subscribe((0,f.x)(q,ee=>{Q=!0,q.next(ee)},()=>{Q||q.next(F),q.complete()}))})}},1005:(N,z,E)=>{"use strict";E.d(z,{g:()=>re});var M=E(4986),f=E(7272),L=E(5698),F=E(4482),B=E(5403),q=E(5032),ee=E(9718),W=E(5577);function Y(oe,ie){return ie?ae=>(0,f.z)(ie.pipe((0,L.q)(1),function Q(){return(0,F.e)((oe,ie)=>{oe.subscribe((0,B.x)(ie,q.Z))})}()),ae.pipe(Y(oe))):(0,W.z)((ae,he)=>oe(ae,he).pipe((0,L.q)(1),(0,ee.h)(ae)))}var G=E(2805);function re(oe,ie=M.z){const ae=(0,G.H)(oe,ie);return Y(()=>ae)}},9300:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(4482),f=E(5403);function L(F,B){return(0,M.e)((q,Q)=>{let ee=0;q.subscribe((0,f.x)(Q,W=>F.call(B,W,ee++)&&Q.next(W)))})}},590:(N,z,E)=>{"use strict";E.d(z,{P:()=>Q});var M=E(6805),f=E(9300),L=E(5698),F=E(6590),B=E(8068),q=E(4671);function Q(ee,W){const Y=arguments.length>=2;return G=>G.pipe(ee?(0,f.h)((re,oe)=>ee(re,oe,G)):q.y,(0,L.q)(1),Y?(0,F.d)(W):(0,B.T)(()=>new M.K))}},4004:(N,z,E)=>{"use strict";E.d(z,{U:()=>L});var M=E(4482),f=E(5403);function L(F,B){return(0,M.e)((q,Q)=>{let ee=0;q.subscribe((0,f.x)(Q,W=>{Q.next(F.call(B,W,ee++))}))})}},9718:(N,z,E)=>{"use strict";E.d(z,{h:()=>f});var M=E(4004);function f(L){return(0,M.U)(()=>L)}},8189:(N,z,E)=>{"use strict";E.d(z,{J:()=>L});var M=E(5577),f=E(4671);function L(F=1/0){return(0,M.z)(f.y,F)}},5577:(N,z,E)=>{"use strict";E.d(z,{z:()=>ee});var M=E(4004),f=E(8421),L=E(4482),F=E(9672),B=E(5403),Q=E(576);function ee(W,Y,G=1/0){return(0,Q.m)(Y)?ee((re,oe)=>(0,M.U)((ie,ae)=>Y(re,ie,oe,ae))((0,f.Xf)(W(re,oe))),G):("number"==typeof Y&&(G=Y),(0,L.e)((re,oe)=>function q(W,Y,G,re,oe,ie,ae,he){const fe=[];let _e=0,Oe=0,je=!1;const Ae=()=>{je&&!fe.length&&!_e&&Y.complete()},Ce=Je=>_e{ie&&Y.next(Je),_e++;let Re=!1;(0,f.Xf)(G(Je,Oe++)).subscribe((0,B.x)(Y,De=>{oe?.(De),ie?Ce(De):Y.next(De)},()=>{Re=!0},void 0,()=>{if(Re)try{for(_e--;fe.length&&_exe(De)):xe(De)}Ae()}catch(De){Y.error(De)}}))};return W.subscribe((0,B.x)(Y,Ce,()=>{je=!0,Ae()})),()=>{he?.()}}(re,oe,W,G)))}},3099:(N,z,E)=>{"use strict";E.d(z,{B:()=>B});var M=E(8421),f=E(7579),L=E(930),F=E(4482);function B(Q={}){const{connector:ee=(()=>new f.x),resetOnError:W=!0,resetOnComplete:Y=!0,resetOnRefCountZero:G=!0}=Q;return re=>{let oe,ie,ae,he=0,fe=!1,_e=!1;const Oe=()=>{ie?.unsubscribe(),ie=void 0},je=()=>{Oe(),oe=ae=void 0,fe=_e=!1},Ae=()=>{const Ce=oe;je(),Ce?.unsubscribe()};return(0,F.e)((Ce,xe)=>{he++,!_e&&!fe&&Oe();const Je=ae=ae??ee();xe.add(()=>{he--,0===he&&!_e&&!fe&&(ie=q(Ae,G))}),Je.subscribe(xe),!oe&&he>0&&(oe=new L.Hp({next:Re=>Je.next(Re),error:Re=>{_e=!0,Oe(),ie=q(je,W,Re),Je.error(Re)},complete:()=>{fe=!0,Oe(),ie=q(je,Y),Je.complete()}}),(0,M.Xf)(Ce).subscribe(oe))})(re)}}function q(Q,ee,...W){if(!0===ee)return void Q();if(!1===ee)return;const Y=new L.Hp({next:()=>{Y.unsubscribe(),Q()}});return ee(...W).subscribe(Y)}},3900:(N,z,E)=>{"use strict";E.d(z,{w:()=>F});var M=E(8421),f=E(4482),L=E(5403);function F(B,q){return(0,f.e)((Q,ee)=>{let W=null,Y=0,G=!1;const re=()=>G&&!W&&ee.complete();Q.subscribe((0,L.x)(ee,oe=>{W?.unsubscribe();let ie=0;const ae=Y++;(0,M.Xf)(B(oe,ae)).subscribe(W=(0,L.x)(ee,he=>ee.next(q?q(oe,he,ae,ie++):he),()=>{W=null,re()}))},()=>{G=!0,re()}))})}},5698:(N,z,E)=>{"use strict";E.d(z,{q:()=>F});var M=E(515),f=E(4482),L=E(5403);function F(B){return B<=0?()=>M.E:(0,f.e)((q,Q)=>{let ee=0;q.subscribe((0,L.x)(Q,W=>{++ee<=B&&(Q.next(W),B<=ee&&Q.complete())}))})}},8505:(N,z,E)=>{"use strict";E.d(z,{b:()=>B});var M=E(576),f=E(4482),L=E(5403),F=E(4671);function B(q,Q,ee){const W=(0,M.m)(q)||Q||ee?{next:q,error:Q,complete:ee}:q;return W?(0,f.e)((Y,G)=>{var re;null===(re=W.subscribe)||void 0===re||re.call(W);let oe=!0;Y.subscribe((0,L.x)(G,ie=>{var ae;null===(ae=W.next)||void 0===ae||ae.call(W,ie),G.next(ie)},()=>{var ie;oe=!1,null===(ie=W.complete)||void 0===ie||ie.call(W),G.complete()},ie=>{var ae;oe=!1,null===(ae=W.error)||void 0===ae||ae.call(W,ie),G.error(ie)},()=>{var ie,ae;oe&&(null===(ie=W.unsubscribe)||void 0===ie||ie.call(W)),null===(ae=W.finalize)||void 0===ae||ae.call(W)}))}):F.y}},8068:(N,z,E)=>{"use strict";E.d(z,{T:()=>F});var M=E(6805),f=E(4482),L=E(5403);function F(q=B){return(0,f.e)((Q,ee)=>{let W=!1;Q.subscribe((0,L.x)(ee,Y=>{W=!0,ee.next(Y)},()=>W?ee.complete():ee.error(q())))})}function B(){return new M.K}},7414:(N,z,E)=>{"use strict";E.d(z,{V:()=>W});var M=E(4986),f=E(1165),L=E(4482),F=E(8421),B=E(3888),q=E(5403),Q=E(9672);const ee=(0,B.d)(G=>function(oe=null){G(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=oe});function W(G,re){const{first:oe,each:ie,with:ae=Y,scheduler:he=re??M.z,meta:fe=null}=(0,f.q)(G)?{first:G}:"number"==typeof G?{each:G}:G;if(null==oe&&null==ie)throw new TypeError("No timeout provided.");return(0,L.e)((_e,Oe)=>{let je,Ae,Ce=null,xe=0;const Je=Re=>{Ae=(0,Q.f)(Oe,he,()=>{try{je.unsubscribe(),(0,F.Xf)(ae({meta:fe,lastValue:Ce,seen:xe})).subscribe(Oe)}catch(De){Oe.error(De)}},Re)};je=_e.subscribe((0,q.x)(Oe,Re=>{Ae?.unsubscribe(),xe++,Oe.next(Ce=Re),ie>0&&Je(ie)},void 0,void 0,()=>{Ae?.closed||Ae?.unsubscribe(),Ce=null})),!xe&&Je(null!=oe?"number"==typeof oe?oe:+oe-he.now():ie)})}function Y(G){throw new ee(G)}},4408:(N,z,E)=>{"use strict";E.d(z,{o:()=>B});var M=E(727);class f extends M.w0{constructor(Q,ee){super()}schedule(Q,ee=0){return this}}const L={setInterval(q,Q,...ee){const{delegate:W}=L;return W?.setInterval?W.setInterval(q,Q,...ee):setInterval(q,Q,...ee)},clearInterval(q){const{delegate:Q}=L;return(Q?.clearInterval||clearInterval)(q)},delegate:void 0};var F=E(8737);class B extends f{constructor(Q,ee){super(Q,ee),this.scheduler=Q,this.work=ee,this.pending=!1}schedule(Q,ee=0){if(this.closed)return this;this.state=Q;const W=this.id,Y=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(Y,W,ee)),this.pending=!0,this.delay=ee,this.id=this.id||this.requestAsyncId(Y,this.id,ee),this}requestAsyncId(Q,ee,W=0){return L.setInterval(Q.flush.bind(Q,this),W)}recycleAsyncId(Q,ee,W=0){if(null!=W&&this.delay===W&&!1===this.pending)return ee;L.clearInterval(ee)}execute(Q,ee){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(Q,ee);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Q,ee){let Y,W=!1;try{this.work(Q)}catch(G){W=!0,Y=G||new Error("Scheduled action threw falsy error")}if(W)return this.unsubscribe(),Y}unsubscribe(){if(!this.closed){const{id:Q,scheduler:ee}=this,{actions:W}=ee;this.work=this.state=this.scheduler=null,this.pending=!1,(0,F.P)(W,this),null!=Q&&(this.id=this.recycleAsyncId(ee,Q,null)),this.delay=null,super.unsubscribe()}}}},7565:(N,z,E)=>{"use strict";E.d(z,{v:()=>L});var M=E(6063);class f{constructor(B,q=f.now){this.schedulerActionCtor=B,this.now=q}schedule(B,q=0,Q){return new this.schedulerActionCtor(this,B).schedule(Q,q)}}f.now=M.l.now;class L extends f{constructor(B,q=f.now){super(B,q),this.actions=[],this._active=!1,this._scheduled=void 0}flush(B){const{actions:q}=this;if(this._active)return void q.push(B);let Q;this._active=!0;do{if(Q=B.execute(B.state,B.delay))break}while(B=q.shift());if(this._active=!1,Q){for(;B=q.shift();)B.unsubscribe();throw Q}}}},4986:(N,z,E)=>{"use strict";E.d(z,{P:()=>F,z:()=>L});var M=E(4408);const L=new(E(7565).v)(M.o),F=L},6063:(N,z,E)=>{"use strict";E.d(z,{l:()=>M});const M={now:()=>(M.delegate||Date).now(),delegate:void 0}},3410:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M={setTimeout(f,L,...F){const{delegate:B}=M;return B?.setTimeout?B.setTimeout(f,L,...F):setTimeout(f,L,...F)},clearTimeout(f){const{delegate:L}=M;return(L?.clearTimeout||clearTimeout)(f)},delegate:void 0}},2202:(N,z,E)=>{"use strict";E.d(z,{h:()=>f});const f=function M(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(N,z,E)=>{"use strict";E.d(z,{L:()=>M});const M="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(N,z,E)=>{"use strict";E.d(z,{K:()=>f});const f=(0,E(3888).d)(L=>function(){L(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(N,z,E)=>{"use strict";E.d(z,{_6:()=>q,jO:()=>F,yG:()=>B});var M=E(576),f=E(3532);function L(Q){return Q[Q.length-1]}function F(Q){return(0,M.m)(L(Q))?Q.pop():void 0}function B(Q){return(0,f.K)(L(Q))?Q.pop():void 0}function q(Q,ee){return"number"==typeof L(Q)?Q.pop():ee}},4742:(N,z,E)=>{"use strict";E.d(z,{D:()=>B});const{isArray:M}=Array,{getPrototypeOf:f,prototype:L,keys:F}=Object;function B(Q){if(1===Q.length){const ee=Q[0];if(M(ee))return{args:ee,keys:null};if(function q(Q){return Q&&"object"==typeof Q&&f(Q)===L}(ee)){const W=F(ee);return{args:W.map(Y=>ee[Y]),keys:W}}}return{args:Q,keys:null}}},8737:(N,z,E)=>{"use strict";function M(f,L){if(f){const F=f.indexOf(L);0<=F&&f.splice(F,1)}}E.d(z,{P:()=>M})},3888:(N,z,E)=>{"use strict";function M(f){const F=f(B=>{Error.call(B),B.stack=(new Error).stack});return F.prototype=Object.create(Error.prototype),F.prototype.constructor=F,F}E.d(z,{d:()=>M})},1810:(N,z,E)=>{"use strict";function M(f,L){return f.reduce((F,B,q)=>(F[B]=L[q],F),{})}E.d(z,{n:()=>M})},2806:(N,z,E)=>{"use strict";E.d(z,{O:()=>F,x:()=>L});var M=E(2416);let f=null;function L(B){if(M.v.useDeprecatedSynchronousErrorHandling){const q=!f;if(q&&(f={errorThrown:!1,error:null}),B(),q){const{errorThrown:Q,error:ee}=f;if(f=null,Q)throw ee}}else B()}function F(B){M.v.useDeprecatedSynchronousErrorHandling&&f&&(f.errorThrown=!0,f.error=B)}},9672:(N,z,E)=>{"use strict";function M(f,L,F,B=0,q=!1){const Q=L.schedule(function(){F(),q?f.add(this.schedule(null,B)):this.unsubscribe()},B);if(f.add(Q),!q)return Q}E.d(z,{f:()=>M})},4671:(N,z,E)=>{"use strict";function M(f){return f}E.d(z,{y:()=>M})},1144:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M=f=>f&&"number"==typeof f.length&&"function"!=typeof f},2206:(N,z,E)=>{"use strict";E.d(z,{D:()=>f});var M=E(576);function f(L){return Symbol.asyncIterator&&(0,M.m)(L?.[Symbol.asyncIterator])}},1165:(N,z,E)=>{"use strict";function M(f){return f instanceof Date&&!isNaN(f)}E.d(z,{q:()=>M})},576:(N,z,E)=>{"use strict";function M(f){return"function"==typeof f}E.d(z,{m:()=>M})},3670:(N,z,E)=>{"use strict";E.d(z,{c:()=>L});var M=E(8822),f=E(576);function L(F){return(0,f.m)(F[M.L])}},6495:(N,z,E)=>{"use strict";E.d(z,{T:()=>L});var M=E(2202),f=E(576);function L(F){return(0,f.m)(F?.[M.h])}},8239:(N,z,E)=>{"use strict";E.d(z,{t:()=>f});var M=E(576);function f(L){return(0,M.m)(L?.then)}},3260:(N,z,E)=>{"use strict";E.d(z,{L:()=>F,Q:()=>L});var M=E(655),f=E(576);function L(B){return(0,M.FC)(this,arguments,function*(){const Q=B.getReader();try{for(;;){const{value:ee,done:W}=yield(0,M.qq)(Q.read());if(W)return yield(0,M.qq)(void 0);yield yield(0,M.qq)(ee)}}finally{Q.releaseLock()}})}function F(B){return(0,f.m)(B?.getReader)}},3532:(N,z,E)=>{"use strict";E.d(z,{K:()=>f});var M=E(576);function f(L){return L&&(0,M.m)(L.schedule)}},4482:(N,z,E)=>{"use strict";E.d(z,{A:()=>f,e:()=>L});var M=E(576);function f(F){return(0,M.m)(F?.lift)}function L(F){return B=>{if(f(B))return B.lift(function(q){try{return F(q,this)}catch(Q){this.error(Q)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(N,z,E)=>{"use strict";E.d(z,{Z:()=>F});var M=E(4004);const{isArray:f}=Array;function F(B){return(0,M.U)(q=>function L(B,q){return f(q)?B(...q):B(q)}(B,q))}},5032:(N,z,E)=>{"use strict";function M(){}E.d(z,{Z:()=>M})},9635:(N,z,E)=>{"use strict";E.d(z,{U:()=>L,z:()=>f});var M=E(4671);function f(...F){return L(F)}function L(F){return 0===F.length?M.y:1===F.length?F[0]:function(q){return F.reduce((Q,ee)=>ee(Q),q)}}},7849:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(2416),f=E(3410);function L(F){f.z.setTimeout(()=>{const{onUnhandledError:B}=M.v;if(!B)throw F;B(F)})}},4532:(N,z,E)=>{"use strict";function M(f){return new TypeError(`You provided ${null!==f&&"object"==typeof f?"an invalid object":`'${f}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(z,{z:()=>M})},655:(N,z,E)=>{"use strict";function ee(le,ce,ge,pe){return new(ge||(ge=Promise))(function(Pe,dt){function Tt(Di){try{Fe(pe.next(Di))}catch($n){dt($n)}}function Ot(Di){try{Fe(pe.throw(Di))}catch($n){dt($n)}}function Fe(Di){Di.done?Pe(Di.value):function Ve(Pe){return Pe instanceof ge?Pe:new ge(function(dt){dt(Pe)})}(Di.value).then(Tt,Ot)}Fe((pe=pe.apply(le,ce||[])).next())})}function fe(le){return this instanceof fe?(this.v=le,this):new fe(le)}function _e(le,ce,ge){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ve,pe=ge.apply(le,ce||[]),Pe=[];return Ve={},dt("next"),dt("throw"),dt("return"),Ve[Symbol.asyncIterator]=function(){return this},Ve;function dt(Wt){pe[Wt]&&(Ve[Wt]=function(Dt){return new Promise(function(vn,oi){Pe.push([Wt,Dt,vn,oi])>1||Tt(Wt,Dt)})})}function Tt(Wt,Dt){try{!function Ot(Wt){Wt.value instanceof fe?Promise.resolve(Wt.value.v).then(Fe,Di):$n(Pe[0][2],Wt)}(pe[Wt](Dt))}catch(vn){$n(Pe[0][3],vn)}}function Fe(Wt){Tt("next",Wt)}function Di(Wt){Tt("throw",Wt)}function $n(Wt,Dt){Wt(Dt),Pe.shift(),Pe.length&&Tt(Pe[0][0],Pe[0][1])}}function je(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ge,ce=le[Symbol.asyncIterator];return ce?ce.call(le):(le=function re(le){var ce="function"==typeof Symbol&&Symbol.iterator,ge=ce&&le[ce],pe=0;if(ge)return ge.call(le);if(le&&"number"==typeof le.length)return{next:function(){return le&&pe>=le.length&&(le=void 0),{value:le&&le[pe++],done:!le}}};throw new TypeError(ce?"Object is not iterable.":"Symbol.iterator is not defined.")}(le),ge={},pe("next"),pe("throw"),pe("return"),ge[Symbol.asyncIterator]=function(){return this},ge);function pe(Pe){ge[Pe]=le[Pe]&&function(dt){return new Promise(function(Tt,Ot){!function Ve(Pe,dt,Tt,Ot){Promise.resolve(Ot).then(function(Fe){Pe({value:Fe,done:Tt})},dt)}(Tt,Ot,(dt=le[Pe](dt)).done,dt.value)})}}}E.d(z,{FC:()=>_e,KL:()=>je,mG:()=>ee,qq:()=>fe})},6895:(N,z,E)=>{"use strict";E.d(z,{Do:()=>je,EM:()=>si,HT:()=>B,JF:()=>Bt,K0:()=>Q,Mx:()=>Pu,NF:()=>mc,O5:()=>Ii,Ov:()=>Uf,PC:()=>Ff,RF:()=>ta,S$:()=>fe,V_:()=>Y,Ye:()=>Ae,b0:()=>Oe,bD:()=>wt,ez:()=>Ar,mk:()=>fc,n9:()=>Xi,q:()=>L,sg:()=>vr,w_:()=>q});var M=E(4650);let f=null;function L(){return f}function B(P){f||(f=P)}class q{}const Q=new M.OlP("DocumentToken");let ee=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return function W(){return(0,M.LFG)(G)}()},providedIn:"platform"}),P})();const Y=new M.OlP("Location Initialized");let G=(()=>{class P extends ee{constructor(I){super(),this._doc=I,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return L().getBaseHref(this._doc)}onPopState(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("popstate",I,!1),()=>j.removeEventListener("popstate",I)}onHashChange(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("hashchange",I,!1),()=>j.removeEventListener("hashchange",I)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(I){this.location.pathname=I}pushState(I,j,ne){re()?this._history.pushState(I,j,ne):this.location.hash=ne}replaceState(I,j,ne){re()?this._history.replaceState(I,j,ne):this.location.hash=ne}forward(){this._history.forward()}back(){this._history.back()}historyGo(I=0){this._history.go(I)}getState(){return this._history.state}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(Q))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function oe(){return new G((0,M.LFG)(Q))}()},providedIn:"platform"}),P})();function re(){return!!window.history.pushState}function ie(P,O){if(0==P.length)return O;if(0==O.length)return P;let I=0;return P.endsWith("/")&&I++,O.startsWith("/")&&I++,2==I?P+O.substring(1):1==I?P+O:P+"/"+O}function ae(P){const O=P.match(/#|\?|$/),I=O&&O.index||P.length;return P.slice(0,I-("/"===P[I-1]?1:0))+P.slice(I)}function he(P){return P&&"?"!==P[0]?"?"+P:P}let fe=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return(0,M.f3M)(Oe)},providedIn:"root"}),P})();const _e=new M.OlP("appBaseHref");let Oe=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._removeListenerFns=[],this._baseHref=j??this._platformLocation.getBaseHrefFromDOM()??(0,M.f3M)(Q).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}prepareExternalUrl(I){return ie(this._baseHref,I)}path(I=!1){const j=this._platformLocation.pathname+he(this._platformLocation.search),ne=this._platformLocation.hash;return ne&&I?`${j}${ne}`:j}pushState(I,j,ne,me){const de=this.prepareExternalUrl(ne+he(me));this._platformLocation.pushState(I,j,de)}replaceState(I,j,ne,me){const de=this.prepareExternalUrl(ne+he(me));this._platformLocation.replaceState(I,j,de)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(_e,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),je=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._baseHref="",this._removeListenerFns=[],null!=j&&(this._baseHref=j)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}path(I=!1){let j=this._platformLocation.hash;return null==j&&(j="#"),j.length>0?j.substring(1):j}prepareExternalUrl(I){const j=ie(this._baseHref,I);return j.length>0?"#"+j:j}pushState(I,j,ne,me){let de=this.prepareExternalUrl(ne+he(me));0==de.length&&(de=this._platformLocation.pathname),this._platformLocation.pushState(I,j,de)}replaceState(I,j,ne,me){let de=this.prepareExternalUrl(ne+he(me));0==de.length&&(de=this._platformLocation.pathname),this._platformLocation.replaceState(I,j,de)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(_e,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac}),P})(),Ae=(()=>{class P{constructor(I){this._subject=new M.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=I;const j=this._locationStrategy.getBaseHref();this._baseHref=ae(Je(j)),this._locationStrategy.onPopState(ne=>{this._subject.emit({url:this.path(!0),pop:!0,state:ne.state,type:ne.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(I=!1){return this.normalize(this._locationStrategy.path(I))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(I,j=""){return this.path()==this.normalize(I+he(j))}normalize(I){return P.stripTrailingSlash(function xe(P,O){return P&&O.startsWith(P)?O.substring(P.length):O}(this._baseHref,Je(I)))}prepareExternalUrl(I){return I&&"/"!==I[0]&&(I="/"+I),this._locationStrategy.prepareExternalUrl(I)}go(I,j="",ne=null){this._locationStrategy.pushState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}replaceState(I,j="",ne=null){this._locationStrategy.replaceState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(I=0){this._locationStrategy.historyGo?.(I)}onUrlChange(I){return this._urlChangeListeners.push(I),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(j=>{this._notifyUrlChangeListeners(j.url,j.state)})),()=>{const j=this._urlChangeListeners.indexOf(I);this._urlChangeListeners.splice(j,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(I="",j){this._urlChangeListeners.forEach(ne=>ne(I,j))}subscribe(I,j,ne){return this._subject.subscribe({next:I,error:j,complete:ne})}}return P.normalizeQueryParams=he,P.joinWithSlash=ie,P.stripTrailingSlash=ae,P.\u0275fac=function(I){return new(I||P)(M.LFG(fe))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function Ce(){return new Ae((0,M.LFG)(fe))}()},providedIn:"root"}),P})();function Je(P){return P.replace(/\/index.html$/,"")}function Pu(P,O){O=encodeURIComponent(O);for(const I of P.split(";")){const j=I.indexOf("="),[ne,me]=-1==j?[I,""]:[I.slice(0,j),I.slice(j+1)];if(ne.trim()===O)return decodeURIComponent(me)}return null}let fc=(()=>{class P{constructor(I,j,ne,me){this._iterableDiffers=I,this._keyValueDiffers=j,this._ngEl=ne,this._renderer=me,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(I){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof I?I.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(I){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof I?I.split(/\s+/):I,this._rawClass&&((0,M.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const I=this._iterableDiffer.diff(this._rawClass);I&&this._applyIterableChanges(I)}else if(this._keyValueDiffer){const I=this._keyValueDiffer.diff(this._rawClass);I&&this._applyKeyValueChanges(I)}}_applyKeyValueChanges(I){I.forEachAddedItem(j=>this._toggleClass(j.key,j.currentValue)),I.forEachChangedItem(j=>this._toggleClass(j.key,j.currentValue)),I.forEachRemovedItem(j=>{j.previousValue&&this._toggleClass(j.key,!1)})}_applyIterableChanges(I){I.forEachAddedItem(j=>{if("string"!=typeof j.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,M.AaK)(j.item)}`);this._toggleClass(j.item,!0)}),I.forEachRemovedItem(j=>this._toggleClass(j.item,!1))}_applyClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(j=>this._toggleClass(j,!0)):Object.keys(I).forEach(j=>this._toggleClass(j,!!I[j])))}_removeClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(j=>this._toggleClass(j,!1)):Object.keys(I).forEach(j=>this._toggleClass(j,!1)))}_toggleClass(I,j){(I=I.trim())&&I.split(/\s+/g).forEach(ne=>{j?this._renderer.addClass(this._ngEl.nativeElement,ne):this._renderer.removeClass(this._ngEl.nativeElement,ne)})}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.ZZ4),M.Y36(M.aQg),M.Y36(M.SBq),M.Y36(M.Qsj))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),P})();class ea{constructor(O,I,j,ne){this.$implicit=O,this.ngForOf=I,this.index=j,this.count=ne}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let vr=(()=>{class P{constructor(I,j,ne){this._viewContainer=I,this._template=j,this._differs=ne,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(I){this._ngForOf=I,this._ngForOfDirty=!0}set ngForTrackBy(I){this._trackByFn=I}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(I){I&&(this._template=I)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const I=this._ngForOf;!this._differ&&I&&(this._differ=this._differs.find(I).create(this.ngForTrackBy))}if(this._differ){const I=this._differ.diff(this._ngForOf);I&&this._applyChanges(I)}}_applyChanges(I){const j=this._viewContainer;I.forEachOperation((ne,me,de)=>{if(null==ne.previousIndex)j.createEmbeddedView(this._template,new ea(ne.item,this._ngForOf,-1,-1),null===de?void 0:de);else if(null==de)j.remove(null===me?void 0:me);else if(null!==me){const Ge=j.get(me);j.move(Ge,de),bi(Ge,ne)}});for(let ne=0,me=j.length;ne{bi(j.get(ne.currentIndex),ne)})}static ngTemplateContextGuard(I,j){return!0}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc),M.Y36(M.ZZ4))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),P})();function bi(P,O){P.context.$implicit=O.item}let Ii=(()=>{class P{constructor(I,j){this._viewContainer=I,this._context=new cn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=j}set ngIf(I){this._context.$implicit=this._context.ngIf=I,this._updateView()}set ngIfThen(I){Ps("ngIfThen",I),this._thenTemplateRef=I,this._thenViewRef=null,this._updateView()}set ngIfElse(I){Ps("ngIfElse",I),this._elseTemplateRef=I,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(I,j){return!0}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),P})();class cn{constructor(){this.$implicit=null,this.ngIf=null}}function Ps(P,O){if(O&&!O.createEmbeddedView)throw new Error(`${P} must be a TemplateRef, but received '${(0,M.AaK)(O)}'.`)}class Ga{constructor(O,I){this._viewContainerRef=O,this._templateRef=I,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(O){O&&!this._created?this.create():!O&&this._created&&this.destroy()}}let ta=(()=>{class P{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(I){this._ngSwitch=I,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(I){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(I)}_matchCase(I){const j=I==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||j,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),j}_updateDefaultCases(I){if(this._defaultViews&&I!==this._defaultUsed){this._defaultUsed=I;for(let j=0;j{class P{constructor(I,j,ne){this.ngSwitch=ne,ne._addCase(),this._view=new Ga(I,j)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc),M.Y36(ta,9))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),P})(),Ff=(()=>{class P{constructor(I,j,ne){this._ngEl=I,this._differs=j,this._renderer=ne,this._ngStyle=null,this._differ=null}set ngStyle(I){this._ngStyle=I,!this._differ&&I&&(this._differ=this._differs.find(I).create())}ngDoCheck(){if(this._differ){const I=this._differ.diff(this._ngStyle);I&&this._applyChanges(I)}}_setStyle(I,j){const[ne,me]=I.split("."),de=-1===ne.indexOf("-")?void 0:M.JOm.DashCase;null!=j?this._renderer.setStyle(this._ngEl.nativeElement,ne,me?`${j}${me}`:j,de):this._renderer.removeStyle(this._ngEl.nativeElement,ne,de)}_applyChanges(I){I.forEachRemovedItem(j=>this._setStyle(j.key,null)),I.forEachAddedItem(j=>this._setStyle(j.key,j.currentValue)),I.forEachChangedItem(j=>this._setStyle(j.key,j.currentValue))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.SBq),M.Y36(M.aQg),M.Y36(M.Qsj))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),P})();class BC{createSubscription(O,I){return O.subscribe({next:I,error:j=>{throw j}})}dispose(O){O.unsubscribe()}}class OC{createSubscription(O,I){return O.then(I,j=>{throw j})}dispose(O){}}const LC=new OC,jC=new BC;let Uf=(()=>{class P{constructor(I){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=I}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(I){return this._obj?I!==this._obj?(this._dispose(),this.transform(I)):this._latestValue:(I&&this._subscribe(I),this._latestValue)}_subscribe(I){this._obj=I,this._strategy=this._selectStrategy(I),this._subscription=this._strategy.createSubscription(I,j=>this._updateLatestValue(I,j))}_selectStrategy(I){if((0,M.QGY)(I))return LC;if((0,M.F4k)(I))return jC;throw function Tn(P,O){return new M.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(I,j){I===this._obj&&(this._latestValue=j,this._ref.markForCheck())}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.sBO,16))},P.\u0275pipe=M.Yjl({name:"async",type:P,pure:!1,standalone:!0}),P})(),Ar=(()=>{class P{}return P.\u0275fac=function(I){return new(I||P)},P.\u0275mod=M.oAB({type:P}),P.\u0275inj=M.cJS({}),P})();const wt="browser";function mc(P){return P===wt}let si=(()=>{class P{}return P.\u0275prov=(0,M.Yz7)({token:P,providedIn:"root",factory:()=>new Vt((0,M.LFG)(Q),window)}),P})();class Vt{constructor(O,I){this.document=O,this.window=I,this.offset=()=>[0,0]}setOffset(O){this.offset=Array.isArray(O)?()=>O:O}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(O){this.supportsScrolling()&&this.window.scrollTo(O[0],O[1])}scrollToAnchor(O){if(!this.supportsScrolling())return;const I=function un(P,O){const I=P.getElementById(O)||P.getElementsByName(O)[0];if(I)return I;if("function"==typeof P.createTreeWalker&&P.body&&(P.body.createShadowRoot||P.body.attachShadow)){const j=P.createTreeWalker(P.body,NodeFilter.SHOW_ELEMENT);let ne=j.currentNode;for(;ne;){const me=ne.shadowRoot;if(me){const de=me.getElementById(O)||me.querySelector(`[name="${O}"]`);if(de)return de}ne=j.nextNode()}}return null}(this.document,O);I&&(this.scrollToElement(I),I.focus())}setHistoryScrollRestoration(O){if(this.supportScrollRestoration()){const I=this.window.history;I&&I.scrollRestoration&&(I.scrollRestoration=O)}}scrollToElement(O){const I=O.getBoundingClientRect(),j=I.left+this.window.pageXOffset,ne=I.top+this.window.pageYOffset,me=this.offset();this.window.scrollTo(j-me[0],ne-me[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const O=Sn(this.window.history)||Sn(Object.getPrototypeOf(this.window.history));return!(!O||!O.writable&&!O.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Sn(P){return Object.getOwnPropertyDescriptor(P,"scrollRestoration")}class Bt{}},529:(N,z,E)=>{"use strict";E.d(z,{JF:()=>Hu,LE:()=>_e,TP:()=>Tt,WM:()=>Y,Zn:()=>ge,eN:()=>Pe,qT:()=>je});var M=E(6895),f=E(4650),L=E(9646),F=E(9751),B=E(4351),q=E(9300),Q=E(4004);class ee{}class W{}class Y{constructor(X){this.normalizedNames=new Map,this.lazyUpdate=null,X?this.lazyInit="string"==typeof X?()=>{this.headers=new Map,X.split("\n").forEach($=>{const ue=$.indexOf(":");if(ue>0){const Ee=$.slice(0,ue),nt=Ee.toLowerCase(),ut=$.slice(ue+1).trim();this.maybeSetNormalizedName(Ee,nt),this.headers.has(nt)?this.headers.get(nt).push(ut):this.headers.set(nt,[ut])}})}:()=>{this.headers=new Map,Object.keys(X).forEach($=>{let ue=X[$];const Ee=$.toLowerCase();"string"==typeof ue&&(ue=[ue]),ue.length>0&&(this.headers.set(Ee,ue),this.maybeSetNormalizedName($,Ee))})}:this.headers=new Map}has(X){return this.init(),this.headers.has(X.toLowerCase())}get(X){this.init();const $=this.headers.get(X.toLowerCase());return $&&$.length>0?$[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(X){return this.init(),this.headers.get(X.toLowerCase())||null}append(X,$){return this.clone({name:X,value:$,op:"a"})}set(X,$){return this.clone({name:X,value:$,op:"s"})}delete(X,$){return this.clone({name:X,value:$,op:"d"})}maybeSetNormalizedName(X,$){this.normalizedNames.has($)||this.normalizedNames.set($,X)}init(){this.lazyInit&&(this.lazyInit instanceof Y?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(X=>this.applyUpdate(X)),this.lazyUpdate=null))}copyFrom(X){X.init(),Array.from(X.headers.keys()).forEach($=>{this.headers.set($,X.headers.get($)),this.normalizedNames.set($,X.normalizedNames.get($))})}clone(X){const $=new Y;return $.lazyInit=this.lazyInit&&this.lazyInit instanceof Y?this.lazyInit:this,$.lazyUpdate=(this.lazyUpdate||[]).concat([X]),$}applyUpdate(X){const $=X.name.toLowerCase();switch(X.op){case"a":case"s":let ue=X.value;if("string"==typeof ue&&(ue=[ue]),0===ue.length)return;this.maybeSetNormalizedName(X.name,$);const Ee=("a"===X.op?this.headers.get($):void 0)||[];Ee.push(...ue),this.headers.set($,Ee);break;case"d":const nt=X.value;if(nt){let ut=this.headers.get($);if(!ut)return;ut=ut.filter(ze=>-1===nt.indexOf(ze)),0===ut.length?(this.headers.delete($),this.normalizedNames.delete($)):this.headers.set($,ut)}else this.headers.delete($),this.normalizedNames.delete($)}}forEach(X){this.init(),Array.from(this.normalizedNames.keys()).forEach($=>X(this.normalizedNames.get($),this.headers.get($)))}}class re{encodeKey(X){return he(X)}encodeValue(X){return he(X)}decodeKey(X){return decodeURIComponent(X)}decodeValue(X){return decodeURIComponent(X)}}const ie=/%(\d[a-f0-9])/gi,ae={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function he(ye){return encodeURIComponent(ye).replace(ie,(X,$)=>ae[$]??X)}function fe(ye){return`${ye}`}class _e{constructor(X={}){if(this.updates=null,this.cloneFrom=null,this.encoder=X.encoder||new re,X.fromString){if(X.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function oe(ye,X){const $=new Map;return ye.length>0&&ye.replace(/^\?/,"").split("&").forEach(Ee=>{const nt=Ee.indexOf("="),[ut,ze]=-1==nt?[X.decodeKey(Ee),""]:[X.decodeKey(Ee.slice(0,nt)),X.decodeValue(Ee.slice(nt+1))],Xe=$.get(ut)||[];Xe.push(ze),$.set(ut,Xe)}),$}(X.fromString,this.encoder)}else X.fromObject?(this.map=new Map,Object.keys(X.fromObject).forEach($=>{const ue=X.fromObject[$],Ee=Array.isArray(ue)?ue.map(fe):[fe(ue)];this.map.set($,Ee)})):this.map=null}has(X){return this.init(),this.map.has(X)}get(X){this.init();const $=this.map.get(X);return $?$[0]:null}getAll(X){return this.init(),this.map.get(X)||null}keys(){return this.init(),Array.from(this.map.keys())}append(X,$){return this.clone({param:X,value:$,op:"a"})}appendAll(X){const $=[];return Object.keys(X).forEach(ue=>{const Ee=X[ue];Array.isArray(Ee)?Ee.forEach(nt=>{$.push({param:ue,value:nt,op:"a"})}):$.push({param:ue,value:Ee,op:"a"})}),this.clone($)}set(X,$){return this.clone({param:X,value:$,op:"s"})}delete(X,$){return this.clone({param:X,value:$,op:"d"})}toString(){return this.init(),this.keys().map(X=>{const $=this.encoder.encodeKey(X);return this.map.get(X).map(ue=>$+"="+this.encoder.encodeValue(ue)).join("&")}).filter(X=>""!==X).join("&")}clone(X){const $=new _e({encoder:this.encoder});return $.cloneFrom=this.cloneFrom||this,$.updates=(this.updates||[]).concat(X),$}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(X=>this.map.set(X,this.cloneFrom.map.get(X))),this.updates.forEach(X=>{switch(X.op){case"a":case"s":const $=("a"===X.op?this.map.get(X.param):void 0)||[];$.push(fe(X.value)),this.map.set(X.param,$);break;case"d":if(void 0===X.value){this.map.delete(X.param);break}{let ue=this.map.get(X.param)||[];const Ee=ue.indexOf(fe(X.value));-1!==Ee&&ue.splice(Ee,1),ue.length>0?this.map.set(X.param,ue):this.map.delete(X.param)}}}),this.cloneFrom=this.updates=null)}}class je{constructor(){this.map=new Map}set(X,$){return this.map.set(X,$),this}get(X){return this.map.has(X)||this.map.set(X,X.defaultValue()),this.map.get(X)}delete(X){return this.map.delete(X),this}has(X){return this.map.has(X)}keys(){return this.map.keys()}}function Ce(ye){return typeof ArrayBuffer<"u"&&ye instanceof ArrayBuffer}function xe(ye){return typeof Blob<"u"&&ye instanceof Blob}function Je(ye){return typeof FormData<"u"&&ye instanceof FormData}class De{constructor(X,$,ue,Ee){let nt;if(this.url=$,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=X.toUpperCase(),function Ae(ye){switch(ye){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ee?(this.body=void 0!==ue?ue:null,nt=Ee):nt=ue,nt&&(this.reportProgress=!!nt.reportProgress,this.withCredentials=!!nt.withCredentials,nt.responseType&&(this.responseType=nt.responseType),nt.headers&&(this.headers=nt.headers),nt.context&&(this.context=nt.context),nt.params&&(this.params=nt.params)),this.headers||(this.headers=new Y),this.context||(this.context=new je),this.params){const ut=this.params.toString();if(0===ut.length)this.urlWithParams=$;else{const ze=$.indexOf("?");this.urlWithParams=$+(-1===ze?"?":ze<$.length-1?"&":"")+ut}}else this.params=new _e,this.urlWithParams=$}serializeBody(){return null===this.body?null:Ce(this.body)||xe(this.body)||Je(this.body)||function Re(ye){return typeof URLSearchParams<"u"&&ye instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof _e?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Je(this.body)?null:xe(this.body)?this.body.type||null:Ce(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof _e?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(X={}){const $=X.method||this.method,ue=X.url||this.url,Ee=X.responseType||this.responseType,nt=void 0!==X.body?X.body:this.body,ut=void 0!==X.withCredentials?X.withCredentials:this.withCredentials,ze=void 0!==X.reportProgress?X.reportProgress:this.reportProgress;let Xe=X.headers||this.headers,ei=X.params||this.params;const At=X.context??this.context;return void 0!==X.setHeaders&&(Xe=Object.keys(X.setHeaders).reduce((Zi,rt)=>Zi.set(rt,X.setHeaders[rt]),Xe)),X.setParams&&(ei=Object.keys(X.setParams).reduce((Zi,rt)=>Zi.set(rt,X.setParams[rt]),ei)),new De($,ue,nt,{params:ei,headers:Xe,context:At,reportProgress:ze,responseType:Ee,withCredentials:ut})}}var Me=(()=>((Me=Me||{})[Me.Sent=0]="Sent",Me[Me.UploadProgress=1]="UploadProgress",Me[Me.ResponseHeader=2]="ResponseHeader",Me[Me.DownloadProgress=3]="DownloadProgress",Me[Me.Response=4]="Response",Me[Me.User=5]="User",Me))();class le{constructor(X,$=200,ue="OK"){this.headers=X.headers||new Y,this.status=void 0!==X.status?X.status:$,this.statusText=X.statusText||ue,this.url=X.url||null,this.ok=this.status>=200&&this.status<300}}class ce extends le{constructor(X={}){super(X),this.type=Me.ResponseHeader}clone(X={}){return new ce({headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class ge extends le{constructor(X={}){super(X),this.type=Me.Response,this.body=void 0!==X.body?X.body:null}clone(X={}){return new ge({body:void 0!==X.body?X.body:this.body,headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class pe extends le{constructor(X){super(X,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${X.url||"(unknown url)"}`:`Http failure response for ${X.url||"(unknown url)"}: ${X.status} ${X.statusText}`,this.error=X.error||null}}function Ve(ye,X){return{body:X,headers:ye.headers,context:ye.context,observe:ye.observe,params:ye.params,reportProgress:ye.reportProgress,responseType:ye.responseType,withCredentials:ye.withCredentials}}let Pe=(()=>{class ye{constructor($){this.handler=$}request($,ue,Ee={}){let nt;if($ instanceof De)nt=$;else{let Xe,ei;Xe=Ee.headers instanceof Y?Ee.headers:new Y(Ee.headers),Ee.params&&(ei=Ee.params instanceof _e?Ee.params:new _e({fromObject:Ee.params})),nt=new De($,ue,void 0!==Ee.body?Ee.body:null,{headers:Xe,context:Ee.context,params:ei,reportProgress:Ee.reportProgress,responseType:Ee.responseType||"json",withCredentials:Ee.withCredentials})}const ut=(0,L.of)(nt).pipe((0,B.b)(Xe=>this.handler.handle(Xe)));if($ instanceof De||"events"===Ee.observe)return ut;const ze=ut.pipe((0,q.h)(Xe=>Xe instanceof ge));switch(Ee.observe||"body"){case"body":switch(nt.responseType){case"arraybuffer":return ze.pipe((0,Q.U)(Xe=>{if(null!==Xe.body&&!(Xe.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Xe.body}));case"blob":return ze.pipe((0,Q.U)(Xe=>{if(null!==Xe.body&&!(Xe.body instanceof Blob))throw new Error("Response is not a Blob.");return Xe.body}));case"text":return ze.pipe((0,Q.U)(Xe=>{if(null!==Xe.body&&"string"!=typeof Xe.body)throw new Error("Response is not a string.");return Xe.body}));default:return ze.pipe((0,Q.U)(Xe=>Xe.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${Ee.observe}}`)}}delete($,ue={}){return this.request("DELETE",$,ue)}get($,ue={}){return this.request("GET",$,ue)}head($,ue={}){return this.request("HEAD",$,ue)}jsonp($,ue){return this.request("JSONP",$,{params:(new _e).append(ue,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options($,ue={}){return this.request("OPTIONS",$,ue)}patch($,ue,Ee={}){return this.request("PATCH",$,Ve(Ee,ue))}post($,ue,Ee={}){return this.request("POST",$,Ve(Ee,ue))}put($,ue,Ee={}){return this.request("PUT",$,Ve(Ee,ue))}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(ee))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class dt{constructor(X,$){this.next=X,this.interceptor=$}handle(X){return this.interceptor.intercept(X,this.next)}}const Tt=new f.OlP("HTTP_INTERCEPTORS");let Ot=(()=>{class ye{intercept($,ue){return ue.handle($)}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Ho=/^\)\]\}',?\n/;let Ro=(()=>{class ye{constructor($){this.xhrFactory=$}handle($){if("JSONP"===$.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new F.y(ue=>{const Ee=this.xhrFactory.build();if(Ee.open($.method,$.urlWithParams),$.withCredentials&&(Ee.withCredentials=!0),$.headers.forEach((Ht,Ut)=>Ee.setRequestHeader(Ht,Ut.join(","))),$.headers.has("Accept")||Ee.setRequestHeader("Accept","application/json, text/plain, */*"),!$.headers.has("Content-Type")){const Ht=$.detectContentTypeHeader();null!==Ht&&Ee.setRequestHeader("Content-Type",Ht)}if($.responseType){const Ht=$.responseType.toLowerCase();Ee.responseType="json"!==Ht?Ht:"text"}const nt=$.serializeBody();let ut=null;const ze=()=>{if(null!==ut)return ut;const Ht=Ee.statusText||"OK",Ut=new Y(Ee.getAllResponseHeaders()),ln=function Du(ye){return"responseURL"in ye&&ye.responseURL?ye.responseURL:/^X-Request-URL:/m.test(ye.getAllResponseHeaders())?ye.getResponseHeader("X-Request-URL"):null}(Ee)||$.url;return ut=new ce({headers:Ut,status:Ee.status,statusText:Ht,url:ln}),ut},Xe=()=>{let{headers:Ht,status:Ut,statusText:ln,url:br}=ze(),gi=null;204!==Ut&&(gi=typeof Ee.response>"u"?Ee.responseText:Ee.response),0===Ut&&(Ut=gi?200:0);let Kr=Ut>=200&&Ut<300;if("json"===$.responseType&&"string"==typeof gi){const Zr=gi;gi=gi.replace(Ho,"");try{gi=""!==gi?JSON.parse(gi):null}catch(Na){gi=Zr,Kr&&(Kr=!1,gi={error:Na,text:gi})}}Kr?(ue.next(new ge({body:gi,headers:Ht,status:Ut,statusText:ln,url:br||void 0})),ue.complete()):ue.error(new pe({error:gi,headers:Ht,status:Ut,statusText:ln,url:br||void 0}))},ei=Ht=>{const{url:Ut}=ze(),ln=new pe({error:Ht,status:Ee.status||0,statusText:Ee.statusText||"Unknown Error",url:Ut||void 0});ue.error(ln)};let At=!1;const Zi=Ht=>{At||(ue.next(ze()),At=!0);let Ut={type:Me.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(Ut.total=Ht.total),"text"===$.responseType&&!!Ee.responseText&&(Ut.partialText=Ee.responseText),ue.next(Ut)},rt=Ht=>{let Ut={type:Me.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(Ut.total=Ht.total),ue.next(Ut)};return Ee.addEventListener("load",Xe),Ee.addEventListener("error",ei),Ee.addEventListener("timeout",ei),Ee.addEventListener("abort",ei),$.reportProgress&&(Ee.addEventListener("progress",Zi),null!==nt&&Ee.upload&&Ee.upload.addEventListener("progress",rt)),Ee.send(nt),ue.next({type:Me.Sent}),()=>{Ee.removeEventListener("error",ei),Ee.removeEventListener("abort",ei),Ee.removeEventListener("load",Xe),Ee.removeEventListener("timeout",ei),$.reportProgress&&(Ee.removeEventListener("progress",Zi),null!==nt&&Ee.upload&&Ee.upload.removeEventListener("progress",rt)),Ee.readyState!==Ee.DONE&&Ee.abort()}})}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(M.JF))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Qn=new f.OlP("XSRF_COOKIE_NAME"),Yn=new f.OlP("XSRF_HEADER_NAME");class ja{}let Po=(()=>{class ye{constructor($,ue,Ee){this.doc=$,this.platform=ue,this.cookieName=Ee,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const $=this.doc.cookie||"";return $!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,M.Mx)($,this.cookieName),this.lastCookieString=$),this.lastToken}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(M.K0),f.LFG(f.Lbi),f.LFG(Qn))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Ke=(()=>{class ye{constructor($,ue){this.tokenService=$,this.headerName=ue}intercept($,ue){const Ee=$.url.toLowerCase();if("GET"===$.method||"HEAD"===$.method||Ee.startsWith("http://")||Ee.startsWith("https://"))return ue.handle($);const nt=this.tokenService.getToken();return null!==nt&&!$.headers.has(this.headerName)&&($=$.clone({headers:$.headers.set(this.headerName,nt)})),ue.handle($)}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(ja),f.LFG(Yn))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),di=(()=>{class ye{constructor($,ue){this.backend=$,this.injector=ue,this.chain=null}handle($){if(null===this.chain){const ue=this.injector.get(Tt,[]);this.chain=ue.reduceRight((Ee,nt)=>new dt(Ee,nt),this.backend)}return this.chain.handle($)}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(W),f.LFG(f.zs3))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Ua=(()=>{class ye{static disable(){return{ngModule:ye,providers:[{provide:Ke,useClass:Ot}]}}static withOptions($={}){return{ngModule:ye,providers:[$.cookieName?{provide:Qn,useValue:$.cookieName}:[],$.headerName?{provide:Yn,useValue:$.headerName}:[]]}}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=f.oAB({type:ye}),ye.\u0275inj=f.cJS({providers:[Ke,{provide:Tt,useExisting:Ke,multi:!0},{provide:ja,useClass:Po},{provide:Qn,useValue:"XSRF-TOKEN"},{provide:Yn,useValue:"X-XSRF-TOKEN"}]}),ye})(),Hu=(()=>{class ye{}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=f.oAB({type:ye}),ye.\u0275inj=f.cJS({providers:[Pe,{provide:ee,useClass:di},Ro,{provide:W,useExisting:Ro}],imports:[Ua.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ye})()},4650:(N,z,E)=>{"use strict";E.d(z,{$8M:()=>Qu,$Z:()=>Mh,AFp:()=>Zp,ALo:()=>AA,AaK:()=>ee,AsE:()=>p_,B6R:()=>br,BQk:()=>Od,CHM:()=>ra,CRH:()=>ub,CZH:()=>on,CqO:()=>tp,D6c:()=>T0,DdM:()=>mA,Dn7:()=>tb,EJc:()=>pE,EiD:()=>Hm,EpF:()=>Zt,F$t:()=>Cv,F4k:()=>ep,FYo:()=>Lm,FiY:()=>Xs,G48:()=>AE,Gf:()=>db,GfV:()=>Qw,GkF:()=>jn,Gpc:()=>G,Gre:()=>g_,Hsn:()=>ip,Ikx:()=>E_,JOm:()=>kr,JVY:()=>Mw,KtG:()=>er,L6k:()=>Dw,LAX:()=>ym,LFG:()=>li,LSH:()=>Wc,Lbi:()=>Xp,Lck:()=>uA,MAs:()=>gv,MMx:()=>iu,NdJ:()=>Ne,O4$:()=>Fs,OlP:()=>Ft,Oqu:()=>h_,PXZ:()=>o0,Q6J:()=>Xh,QGY:()=>vt,QP$:()=>Ql,QbO:()=>ef,Qsj:()=>$w,R0b:()=>Ji,RDi:()=>Aw,Rgc:()=>au,SBq:()=>Xc,Sil:()=>t0,Suo:()=>Bp,TTD:()=>ia,TgZ:()=>Vd,Tol:()=>ap,Udp:()=>Aa,VKq:()=>gA,WFA:()=>ft,WLB:()=>_A,XFs:()=>Ke,Xpm:()=>ln,Xts:()=>mh,Y36:()=>wl,YKP:()=>$_,YNc:()=>Yg,Yjl:()=>pc,Yz7:()=>Dt,ZZ4:()=>ac,_Bn:()=>W_,_UZ:()=>va,_Vd:()=>ro,_c5:()=>Qb,_uU:()=>Pv,aQg:()=>wu,c2e:()=>e0,cJS:()=>oi,cg1:()=>Ol,d8E:()=>up,dDg:()=>_E,dqk:()=>ue,eBb:()=>uh,eFA:()=>af,ekj:()=>rp,eoX:()=>ec,f3M:()=>cm,g9A:()=>lu,h0i:()=>ur,hGG:()=>x0,hij:()=>cp,iGM:()=>cb,ifc:()=>$,ip1:()=>Oi,kL8:()=>M_,kcU:()=>Qf,lG2:()=>Ru,lcZ:()=>TA,lqb:()=>Pr,lri:()=>r0,mCW:()=>al,n5z:()=>Gu,n_E:()=>Pp,oAB:()=>Zr,oJD:()=>Rm,oxw:()=>bv,pB0:()=>hh,q3G:()=>ni,qLn:()=>ed,qOj:()=>cs,qZA:()=>Bd,qzn:()=>Yo,rWj:()=>Rb,s9C:()=>mo,sBO:()=>u0,sIi:()=>Id,s_b:()=>kp,soG:()=>tf,tb:()=>Kl,tp0:()=>$o,uIk:()=>Ml,vHH:()=>ae,vpe:()=>qr,wAp:()=>tt,xDo:()=>f_,xi3:()=>SA,xp6:()=>Sh,ynx:()=>Il,z2F:()=>ka,z3N:()=>ir,zSh:()=>dl,zs3:()=>rr});var M=E(7579),f=E(727),L=E(9751),F=E(6451),B=E(3099);function q(_){for(let b in _)if(_[b]===q)return b;throw Error("Could not find renamed property on target object.")}function Q(_,b){for(const C in b)b.hasOwnProperty(C)&&!_.hasOwnProperty(C)&&(_[C]=b[C])}function ee(_){if("string"==typeof _)return _;if(Array.isArray(_))return"["+_.map(ee).join(", ")+"]";if(null==_)return""+_;if(_.overriddenName)return`${_.overriddenName}`;if(_.name)return`${_.name}`;const b=_.toString();if(null==b)return""+b;const C=b.indexOf("\n");return-1===C?b:b.substring(0,C)}function W(_,b){return null==_||""===_?null===b?"":b:null==b||""===b?_:_+" "+b}const Y=q({__forward_ref__:q});function G(_){return _.__forward_ref__=G,_.toString=function(){return ee(this())},_}function re(_){return oe(_)?_():_}function oe(_){return"function"==typeof _&&_.hasOwnProperty(Y)&&_.__forward_ref__===G}class ae extends Error{constructor(b,C){super(function he(_,b){return`NG0${Math.abs(_)}${b?": "+b.trim():""}`}(b,C)),this.code=b}}function fe(_){return"string"==typeof _?_:null==_?"":String(_)}function Ce(_,b){throw new ae(-201,!1)}function Ot(_,b){null==_&&function Fe(_,b,C,y){throw new Error(`ASSERTION ERROR: ${_}`+(null==y?"":` [Expected=> ${C} ${y} ${b} <=Actual]`))}(b,_,null,"!=")}function Dt(_){return{token:_.token,providedIn:_.providedIn||null,factory:_.factory,value:void 0}}function oi(_){return{providers:_.providers||[],imports:_.imports||[]}}function Jr(_){return hc(_,Qn)||hc(_,ja)}function hc(_,b){return _.hasOwnProperty(b)?_[b]:null}function Ro(_){return _&&(_.hasOwnProperty(Yn)||_.hasOwnProperty(Po))?_[Yn]:null}const Qn=q({\u0275prov:q}),Yn=q({\u0275inj:q}),ja=q({ngInjectableDef:q}),Po=q({ngInjectorDef:q});var Ke=(()=>((Ke=Ke||{})[Ke.Default=0]="Default",Ke[Ke.Host=1]="Host",Ke[Ke.Self=2]="Self",Ke[Ke.SkipSelf=4]="SkipSelf",Ke[Ke.Optional=8]="Optional",Ke))();let di;function Hi(_){const b=di;return di=_,b}function Ua(_,b,C){const y=Jr(_);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:C&Ke.Optional?null:void 0!==b?b:void Ce(ee(_))}function An(_){return{toString:_}.toString()}var Ti=(()=>((Ti=Ti||{})[Ti.OnPush=0]="OnPush",Ti[Ti.Default=1]="Default",Ti))(),$=(()=>{return(_=$||($={}))[_.Emulated=0]="Emulated",_[_.None=2]="None",_[_.ShadowDom=3]="ShadowDom",$;var _})();const ue=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ut={},ze=[],Xe=q({\u0275cmp:q}),ei=q({\u0275dir:q}),At=q({\u0275pipe:q}),Zi=q({\u0275mod:q}),rt=q({\u0275fac:q}),Ht=q({__NG_ELEMENT_ID__:q});let Ut=0;function ln(_){return An(()=>{const C=!0===_.standalone,y={},x={type:_.type,providersResolver:null,decls:_.decls,vars:_.vars,factory:null,template:_.template||null,consts:_.consts||null,ngContentSelectors:_.ngContentSelectors,hostBindings:_.hostBindings||null,hostVars:_.hostVars||0,hostAttrs:_.hostAttrs||null,contentQueries:_.contentQueries||null,declaredInputs:y,inputs:null,outputs:null,exportAs:_.exportAs||null,onPush:_.changeDetection===Ti.OnPush,directiveDefs:null,pipeDefs:null,standalone:C,dependencies:C&&_.dependencies||null,getStandaloneInjector:null,selectors:_.selectors||ze,viewQuery:_.viewQuery||null,features:_.features||null,data:_.data||{},encapsulation:_.encapsulation||$.Emulated,id:"c"+Ut++,styles:_.styles||ze,_:null,setInput:null,schemas:_.schemas||null,tView:null},T=_.dependencies,S=_.features;return x.inputs=Io(_.inputs,y),x.outputs=Io(_.outputs),S&&S.forEach(D=>D(x)),x.directiveDefs=T?()=>("function"==typeof T?T():T).map(gi).filter(Kr):null,x.pipeDefs=T?()=>("function"==typeof T?T():T).map(Pi).filter(Kr):null,x})}function br(_,b,C){const y=_.\u0275cmp;y.directiveDefs=()=>("function"==typeof b?b():b).map(gi),y.pipeDefs=()=>("function"==typeof C?C():C).map(Pi)}function gi(_){return St(_)||Ri(_)}function Kr(_){return null!==_}function Zr(_){return An(()=>({type:_.type,bootstrap:_.bootstrap||ze,declarations:_.declarations||ze,imports:_.imports||ze,exports:_.exports||ze,transitiveCompileScopes:null,schemas:_.schemas||null,id:_.id||null}))}function Io(_,b){if(null==_)return ut;const C={};for(const y in _)if(_.hasOwnProperty(y)){let x=_[y],T=x;Array.isArray(x)&&(T=x[1],x=x[0]),C[x]=y,b&&(b[x]=T)}return C}const Ru=ln;function pc(_){return{type:_.type,name:_.name,factory:null,pure:!1!==_.pure,standalone:!0===_.standalone,onDestroy:_.type.prototype.ngOnDestroy||null}}function St(_){return _[Xe]||null}function Ri(_){return _[ei]||null}function Pi(_){return _[At]||null}function Gi(_,b){const C=_[Zi]||null;if(!C&&!0===b)throw new Error(`Type ${ee(_)} does not have '\u0275mod' property.`);return C}function Ii(_){return Array.isArray(_)&&"object"==typeof _[1]}function cn(_){return Array.isArray(_)&&!0===_[1]}function Ps(_){return 0!=(8&_.flags)}function Ga(_){return 2==(2&_.flags)}function ta(_){return 1==(1&_.flags)}function Xi(_){return null!==_.template}function Lf(_){return 0!=(256&_[2])}function He(_,b){return _.hasOwnProperty(rt)?_[rt]:null}class ki{constructor(b,C,y){this.previousValue=b,this.currentValue=C,this.firstChange=y}isFirstChange(){return this.firstChange}}function ia(){return Lo}function Lo(_){return _.type.prototype.ngOnChanges&&(_.setInput=Fi),na}function na(){const _=dn(this),b=_?.current;if(b){const C=_.previous;if(C===ut)_.previous=b;else for(let y in b)C[y]=b[y];_.current=null,this.ngOnChanges(b)}}function Fi(_,b,C,y){const x=dn(_)||function ku(_,b){return _[Xn]=b}(_,{previous:ut,current:null}),T=x.current||(x.current={}),S=x.previous,D=this.declaredInputs[C],H=S[D];T[D]=new ki(H&&H.currentValue,b,S===ut),_[y]=b}ia.ngInherit=!0;const Xn="__ngSimpleChanges__";function dn(_){return _[Xn]||null}function bt(_){for(;Array.isArray(_);)_=_[0];return _}function si(_,b){return bt(b[_])}function Vt(_,b){return bt(b[_.index])}function un(_,b){return _.data[b]}function jt(_,b){return _[b]}function Bt(_,b){const C=b[_];return Ii(C)?C:C[0]}function P(_){return 4==(4&_[2])}function O(_){return 64==(64&_[2])}function j(_,b){return null==b?null:_[b]}function ne(_){_[18]=0}function me(_,b){_[5]+=b;let C=_,y=_[3];for(;null!==y&&(1===b&&1===C[5]||-1===b&&0===C[5]);)y[5]+=b,C=y,y=y[3]}const de={lFrame:js(null),bindingsEnabled:!0};function ui(){return de.bindingsEnabled}function we(){return de.lFrame.lView}function et(){return de.lFrame.tView}function ra(_){return de.lFrame.contextLView=_,_[8]}function er(_){return de.lFrame.contextLView=null,_}function $t(){let _=ks();for(;null!==_&&64===_.type;)_=_.parent;return _}function ks(){return de.lFrame.currentTNode}function Ci(_,b){const C=de.lFrame;C.currentTNode=_,C.isParent=b}function Vs(){return de.lFrame.isParent}function Vu(){de.lFrame.isParent=!1}function Vi(){const _=de.lFrame;let b=_.bindingRootIndex;return-1===b&&(b=_.bindingRootIndex=_.tView.bindingStartIndex),b}function xr(){return de.lFrame.bindingIndex}function $a(){return de.lFrame.bindingIndex++}function hn(_){const b=de.lFrame,C=b.bindingIndex;return b.bindingIndex=b.bindingIndex+_,C}function Bs(_,b){const C=de.lFrame;C.bindingIndex=C.bindingRootIndex=_,Tr(b)}function Tr(_){de.lFrame.currentDirectiveIndex=_}function Ou(_){const b=de.lFrame.currentDirectiveIndex;return-1===b?null:_[b]}function Lu(){return de.lFrame.currentQueryIndex}function Os(_){de.lFrame.currentQueryIndex=_}function WC(_){const b=_[1];return 2===b.type?b.declTNode:1===b.type?_[6]:null}function Ls(_,b,C){if(C&Ke.SkipSelf){let x=b,T=_;for(;!(x=x.parent,null!==x||C&Ke.Host||(x=WC(T),null===x||(T=T[15],10&x.type))););if(null===x)return!1;b=x,_=T}const y=de.lFrame=ju();return y.currentTNode=b,y.lView=_,!0}function Ya(_){const b=ju(),C=_[1];de.lFrame=b,b.currentTNode=C.firstChild,b.lView=_,b.tView=C,b.contextLView=_,b.bindingIndex=C.bindingStartIndex,b.inI18n=!1}function ju(){const _=de.lFrame,b=null===_?null:_.child;return null===b?js(_):b}function js(_){const b={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:_,child:null,inI18n:!1};return null!==_&&(_.child=b),b}function Gf(){const _=de.lFrame;return de.lFrame=_.parent,_.currentTNode=null,_.lView=null,_}const _c=Gf;function jo(){const _=Gf();_.isParent=!0,_.tView=null,_.selectedIndex=-1,_.contextLView=null,_.elementDepthCount=0,_.currentDirectiveIndex=-1,_.currentNamespace=null,_.bindingRootIndex=-1,_.bindingIndex=-1,_.currentQueryIndex=0}function Ni(){return de.lFrame.selectedIndex}function aa(_){de.lFrame.selectedIndex=_}function Kt(){const _=de.lFrame;return un(_.tView,_.selectedIndex)}function Fs(){de.lFrame.currentNamespace="svg"}function Qf(){!function QC(){de.lFrame.currentNamespace=null}()}function Fo(_,b){for(let C=b.directiveStart,y=b.directiveEnd;C=y)break}else b[H]<0&&(_[18]+=65536),(D>11<_[18]>>16&&(3&_[2])===b){_[2]+=2048;try{T.call(D)}finally{}}}else try{T.call(D)}finally{}}class Us{constructor(b,C,y){this.factory=b,this.resolving=!1,this.canSeeViewProviders=C,this.injectImpl=y}}function wc(_,b,C){let y=0;for(;yb){S=T-1;break}}}for(;T<_.length;){const D=_[T];if("number"==typeof D)break;if(D===C){if(null===y)return void(null!==x&&(_[T+1]=x));if(y===_[T+1])return void(_[T+2]=x)}T++,null!==y&&T++,null!==x&&T++}-1!==S&&(_.splice(S,0,b),T=S+1),_.splice(T++,0,C),null!==y&&_.splice(T++,0,y),null!==x&&_.splice(T++,0,x)}function Uo(_){return-1!==_}function No(_){return 32767&_}function qo(_,b){let C=function Uu(_){return _>>16}(_),y=b;for(;C>0;)y=y[15],C--;return y}let Ac=!0;function zs(_){const b=Ac;return Ac=_,b}let Tc=0;const En={};function Gs(_,b){const C=qu(_,b);if(-1!==C)return C;const y=b[1];y.firstCreatePass&&(_.injectorIndex=b.length,Nu(y.data,_),Nu(b,null),Nu(y.blueprint,null));const x=Sc(_,b),T=_.injectorIndex;if(Uo(x)){const S=No(x),D=qo(x,b),H=D[1].data;for(let k=0;k<8;k++)b[T+k]=D[S+k]|H[S+k]}return b[T+8]=x,T}function Nu(_,b){_.push(0,0,0,0,0,0,0,0,b)}function qu(_,b){return-1===_.injectorIndex||_.parent&&_.parent.injectorIndex===_.injectorIndex||null===b[_.injectorIndex+8]?-1:_.injectorIndex}function Sc(_,b){if(_.parent&&-1!==_.parent.injectorIndex)return _.parent.injectorIndex;let C=0,y=null,x=b;for(;null!==x;){if(y=$u(x),null===y)return-1;if(C++,x=x[15],-1!==y.injectorIndex)return y.injectorIndex|C<<16}return-1}function Ec(_,b,C){!function XC(_,b,C){let y;"string"==typeof C?y=C.charCodeAt(0)||0:C.hasOwnProperty(Ht)&&(y=C[Ht]),null==y&&(y=C[Ht]=Tc++);const x=255&y;b.data[_+(x>>5)]|=1<=0?255&b:nm:b}(C);if("function"==typeof T){if(!Ls(b,_,y))return y&Ke.Host?Zf(x,0,y):Xf(b,C,y,x);try{const S=T(y);if(null!=S||y&Ke.Optional)return S;Ce()}finally{_c()}}else if("number"==typeof T){let S=null,D=qu(_,b),H=-1,k=y&Ke.Host?b[16][6]:null;for((-1===D||y&Ke.SkipSelf)&&(H=-1===D?Sc(_,b):b[D+8],-1!==H&&tr(y,!1)?(S=b[1],D=No(H),b=qo(H,b)):D=-1);-1!==D;){const V=b[1];if(Dc(T,D,V.data)){const U=im(D,b,C,S,y,k);if(U!==En)return U}H=b[D+8],-1!==H&&tr(y,b[1].data[D+8]===k)&&Dc(T,D,b)?(S=V,D=No(H),b=qo(H,b)):D=-1}}return x}function im(_,b,C,y,x,T){const S=b[1],D=S.data[_+8],V=Mc(D,S,C,null==y?Ga(D)&&Ac:y!=S&&0!=(3&D.type),x&Ke.Host&&T===D);return null!==V?zo(b,S,V,D):En}function Mc(_,b,C,y,x){const T=_.providerIndexes,S=b.data,D=1048575&T,H=_.directiveStart,V=T>>20,te=x?D+V:_.directiveEnd;for(let se=y?D:D+V;se=H&&be.type===C)return se}if(x){const se=S[H];if(se&&Xi(se)&&se.type===C)return H}return null}function zo(_,b,C,y){let x=_[C];const T=b.data;if(function KC(_){return _ instanceof Us}(x)){const S=x;S.resolving&&function Oe(_,b){const C=b?`. Dependency path: ${b.join(" > ")} > ${_}`:"";throw new ae(-200,`Circular dependency in DI detected for ${_}${C}`)}(function _e(_){return"function"==typeof _?_.name||_.toString():"object"==typeof _&&null!=_&&"function"==typeof _.type?_.type.name||_.type.toString():fe(_)}(T[C]));const D=zs(S.canSeeViewProviders);S.resolving=!0;const H=S.injectImpl?Hi(S.injectImpl):null;Ls(_,y,Ke.Default);try{x=_[C]=S.factory(void 0,T,_,y),b.firstCreatePass&&C>=y.directiveStart&&function JC(_,b,C){const{ngOnChanges:y,ngOnInit:x,ngDoCheck:T}=b.type.prototype;if(y){const S=Lo(b);(C.preOrderHooks||(C.preOrderHooks=[])).push(_,S),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(_,S)}x&&(C.preOrderHooks||(C.preOrderHooks=[])).push(0-_,x),T&&((C.preOrderHooks||(C.preOrderHooks=[])).push(_,T),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(_,T))}(C,T[C],b)}finally{null!==H&&Hi(H),zs(D),S.resolving=!1,_c()}}return x}function Dc(_,b,C){return!!(C[b+(_>>5)]&1<<_)}function tr(_,b){return!(_&Ke.Self||_&Ke.Host&&b)}class Mn{constructor(b,C){this._tNode=b,this._lView=C}get(b,C,y){return em(this._tNode,this._lView,b,y,C)}}function nm(){return new Mn($t(),we())}function Gu(_){return An(()=>{const b=_.prototype.constructor,C=b[rt]||Wu(b),y=Object.prototype;let x=Object.getPrototypeOf(_.prototype).constructor;for(;x&&x!==y;){const T=x[rt]||Wu(x);if(T&&T!==C)return T;x=Object.getPrototypeOf(x)}return T=>new T})}function Wu(_){return oe(_)?()=>{const b=Wu(re(_));return b&&b()}:He(_)}function $u(_){const b=_[1],C=b.type;return 2===C?b.declTNode:1===C?_[6]:null}function Qu(_){return function ew(_,b){if("class"===b)return _.classes;if("style"===b)return _.styles;const C=_.attrs;if(C){const y=C.length;let x=0;for(;x{const y=function Ws(_){return function(...C){if(_){const y=_(...C);for(const x in y)this[x]=y[x]}}}(b);function x(...T){if(this instanceof x)return y.apply(this,T),this;const S=new x(...T);return D.annotation=S,D;function D(H,k,V){const U=H.hasOwnProperty(Ka)?H[Ka]:Object.defineProperty(H,Ka,{value:[]})[Ka];for(;U.length<=V;)U.push(null);return(U[V]=U[V]||[]).push(S),H}}return C&&(x.prototype=Object.create(C.prototype)),x.prototype.ngMetadataName=_,x.annotationCls=x,x})}class Ft{constructor(b,C){this._desc=b,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof C?this.__NG_ELEMENT_ID__=C:void 0!==C&&(this.\u0275prov=Dt({token:this,providedIn:C.providedIn||"root",factory:C.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function pn(_,b){void 0===b&&(b=_);for(let C=0;C<_.length;C++){let y=_[C];Array.isArray(y)?(b===_&&(b=_.slice(0,C)),pn(y,b)):b!==_&&b.push(y)}return b}function ua(_,b){_.forEach(C=>Array.isArray(C)?ua(C,b):b(C))}function ow(_,b,C){b>=_.length?_.push(C):_.splice(b,0,C)}function Wo(_,b){return b>=_.length-1?_.pop():_.splice(b,1)[0]}function Qs(_,b){const C=[];for(let y=0;y<_;y++)C.push(b);return C}function nn(_,b,C){let y=Za(_,b);return y>=0?_[1|y]=C:(y=~y,function Zu(_,b,C,y){let x=_.length;if(x==b)_.push(C,y);else if(1===x)_.push(y,_[0]),_[0]=C;else{for(x--,_.push(_[x-1],_[x]);x>b;)_[x]=_[x-2],x--;_[b]=C,_[b+1]=y}}(_,y,b,C)),y}function eh(_,b){const C=Za(_,b);if(C>=0)return _[1|C]}function Za(_,b){return function sm(_,b,C){let y=0,x=_.length>>C;for(;x!==y;){const T=y+(x-y>>1),S=_[T<b?x=T:y=T+1}return~(x<_,createScript:_=>_,createScriptURL:_=>_})}catch{}return nl}()?.createHTML(_)||_}function Uc(_){return function ch(){if(void 0===rl&&(rl=null,ue.trustedTypes))try{rl=ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:_=>_,createScript:_=>_,createScriptURL:_=>_})}catch{}return rl}()?.createHTML(_)||_}class io{constructor(b){this.changingThisBreaksApplicationSecurity=b}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Tw extends io{getTypeName(){return"HTML"}}class Sw extends io{getTypeName(){return"Style"}}class Cm extends io{getTypeName(){return"Script"}}class dh extends io{getTypeName(){return"URL"}}class wm extends io{getTypeName(){return"ResourceURL"}}function ir(_){return _ instanceof io?_.changingThisBreaksApplicationSecurity:_}function Yo(_,b){const C=function Ew(_){return _ instanceof io&&_.getTypeName()||null}(_);if(null!=C&&C!==b){if("ResourceURL"===C&&"URL"===b)return!0;throw new Error(`Required a safe ${b}, got a ${C} (see https://g.co/ng/security#xss)`)}return C===b}function Mw(_){return new Tw(_)}function Dw(_){return new Sw(_)}function uh(_){return new Cm(_)}function ym(_){return new dh(_)}function hh(_){return new wm(_)}class Hw{constructor(b){this.inertDocumentHelper=b}getInertBodyElement(b){b=""+b;try{const C=(new window.DOMParser).parseFromString(to(b),"text/html").body;return null===C?this.inertDocumentHelper.getInertBodyElement(b):(C.removeChild(C.firstChild),C)}catch{return null}}}class Rw{constructor(b){if(this.defaultDoc=b,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const C=this.inertDocument.createElement("html");this.inertDocument.appendChild(C);const y=this.inertDocument.createElement("body");C.appendChild(y)}}getInertBodyElement(b){const C=this.inertDocument.createElement("template");if("content"in C)return C.innerHTML=to(b),C;const y=this.inertDocument.createElement("body");return y.innerHTML=to(b),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(b){const C=b.attributes;for(let x=C.length-1;0al(b.trim())).join(", ")),this.buf.push(" ",S,'="',Dm(H),'"')}var _;return this.buf.push(">"),!0}endElement(b){const C=b.nodeName.toLowerCase();zc.hasOwnProperty(C)&&!Am.hasOwnProperty(C)&&(this.buf.push(""))}chars(b){this.buf.push(Dm(b))}checkClobberedElement(b,C){if(C&&(b.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${b.outerHTML}`);return C}}const Em=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Mm=/([^\#-~ |!])/g;function Dm(_){return _.replace(/&/g,"&").replace(Em,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(Mm,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(//g,">")}let Gc;function Hm(_,b){let C=null;try{Gc=Gc||function Nc(_){const b=new Rw(_);return function qc(){try{return!!(new window.DOMParser).parseFromString(to(""),"text/html")}catch{return!1}}()?new Hw(b):b}(_);let y=b?String(b):"";C=Gc.getInertBodyElement(y);let x=5,T=y;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,y=T,T=C.innerHTML,C=Gc.getInertBodyElement(y)}while(y!==T);return to((new zx).sanitizeChildren(Jo(C)||C))}finally{if(C){const y=Jo(C)||C;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function Jo(_){return"content"in _&&function Bw(_){return _.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===_.nodeName}(_)?_.content:null}var ni=(()=>((ni=ni||{})[ni.NONE=0]="NONE",ni[ni.HTML=1]="HTML",ni[ni.STYLE=2]="STYLE",ni[ni.SCRIPT=3]="SCRIPT",ni[ni.URL=4]="URL",ni[ni.RESOURCE_URL=5]="RESOURCE_URL",ni))();function Rm(_){const b=sl();return b?Uc(b.sanitize(ni.HTML,_)||""):Yo(_,"HTML")?Uc(ir(_)):Hm(function fm(){return void 0!==sh?sh:typeof document<"u"?document:void 0}(),fe(_))}function Wc(_){const b=sl();return b?b.sanitize(ni.URL,_)||"":Yo(_,"URL")?ir(_):al(fe(_))}function sl(){const _=we();return _&&_[12]}const mh=new Ft("ENVIRONMENT_INITIALIZER"),Uw=new Ft("INJECTOR",-1),$c=new Ft("INJECTOR_DEF_TYPES");class Yt{get(b,C=Ks){if(C===Ks){const y=new Error(`NullInjectorError: No provider for ${ee(b)}!`);throw y.name="NullInjectorError",y}return C}}function Wx(..._){return{\u0275providers:no(0,_)}}function no(_,...b){const C=[],y=new Set;let x;return ua(b,T=>{const S=T;Qc(S,C,[],y)&&(x||(x=[]),x.push(S))}),void 0!==x&&gh(x,C),C}function gh(_,b){for(let C=0;C<_.length;C++){const{providers:x}=_[C];ua(x,T=>{b.push(T)})}}function Qc(_,b,C,y){if(!(_=re(_)))return!1;let x=null,T=Ro(_);const S=!T&&St(_);if(T||S){if(S&&!S.standalone)return!1;x=_}else{const H=_.ngModule;if(T=Ro(H),!T)return!1;x=H}const D=y.has(x);if(S){if(D)return!1;if(y.add(x),S.dependencies){const H="function"==typeof S.dependencies?S.dependencies():S.dependencies;for(const k of H)Qc(k,b,C,y)}}else{if(!T)return!1;{if(null!=T.imports&&!D){let k;y.add(x);try{ua(T.imports,V=>{Qc(V,b,C,y)&&(k||(k=[]),k.push(V))})}finally{}void 0!==k&&gh(k,b)}if(!D){const k=He(x)||(()=>new x);b.push({provide:x,useFactory:k,deps:ze},{provide:$c,useValue:x,multi:!0},{provide:mh,useValue:()=>li(x),multi:!0})}const H=T.providers;null==H||D||ua(H,V=>{b.push(V)})}}return x!==_&&void 0!==_.providers}const Nw=q({provide:String,useValue:q});function fn(_){return null!==_&&"object"==typeof _&&Nw in _}function ma(_){return"function"==typeof _}const dl=new Ft("Set Injector scope."),Jc={},Kc={};let ul;function Wi(){return void 0===ul&&(ul=new Yt),ul}class Pr{}class qw extends Pr{constructor(b,C,y,x){super(),this.parent=C,this.source=y,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Zo(b,S=>this.processProvider(S)),this.records.set(Uw,Ko(void 0,this)),x.has("environment")&&this.records.set(Pr,Ko(void 0,this));const T=this.records.get(dl);null!=T&&"string"==typeof T.value&&this.scopes.add(T.value),this.injectorDefTypes=new Set(this.get($c.multi,ze,Ke.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();for(const b of this._onDestroyHooks)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(b){this._onDestroyHooks.push(b)}runInContext(b){this.assertNotDestroyed();const C=Hn(this),y=Hi(void 0);try{return b()}finally{Hn(C),Hi(y)}}get(b,C=Ks,y=Ke.Default){this.assertNotDestroyed();const x=Hn(this),T=Hi(void 0);try{if(!(y&Ke.SkipSelf)){let D=this.records.get(b);if(void 0===D){const H=function Qx(_){return"function"==typeof _||"object"==typeof _&&_ instanceof Ft}(b)&&Jr(b);D=H&&this.injectableDefInScope(H)?Ko(hl(b),Jc):null,this.records.set(b,D)}if(null!=D)return this.hydrate(b,D)}return(y&Ke.Self?Wi():this.parent).get(b,C=y&Ke.Optional&&C===Ks?null:C)}catch(S){if("NullInjectorError"===S.name){if((S[Pc]=S[Pc]||[]).unshift(ee(b)),x)throw S;return function gw(_,b,C,y){const x=_[Pc];throw b[Ic]&&x.unshift(b[Ic]),_.message=function _w(_,b,C,y=null){_=_&&"\n"===_.charAt(0)&&"\u0275"==_.charAt(1)?_.slice(2):_;let x=ee(b);if(Array.isArray(b))x=b.map(ee).join(" -> ");else if("object"==typeof b){let T=[];for(let S in b)if(b.hasOwnProperty(S)){let D=b[S];T.push(S+":"+("string"==typeof D?JSON.stringify(D):ee(D)))}x=`{${T.join(", ")}}`}return`${C}${y?"("+y+")":""}[${x}]: ${_.replace(Lx,"\n ")}`}("\n"+_.message,x,C,y),_.ngTokenPath=x,_[Pc]=null,_}(S,b,"R3InjectorError",this.source)}throw S}finally{Hi(T),Hn(x)}}resolveInjectorInitializers(){const b=Hn(this),C=Hi(void 0);try{const y=this.get(mh.multi,ze,Ke.Self);for(const x of y)x()}finally{Hn(b),Hi(C)}}toString(){const b=[],C=this.records;for(const y of C.keys())b.push(ee(y));return`R3Injector[${b.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ae(205,!1)}processProvider(b){let C=ma(b=re(b))?b:re(b&&b.provide);const y=function $x(_){return fn(_)?Ko(void 0,_.useValue):Ko(Zc(_),Jc)}(b);if(ma(b)||!0!==b.multi)this.records.get(C);else{let x=this.records.get(C);x||(x=Ko(void 0,Jc,!0),x.factory=()=>nh(x.multi),this.records.set(C,x)),C=b,x.multi.push(b)}this.records.set(C,y)}hydrate(b,C){return C.value===Jc&&(C.value=Kc,C.value=C.factory()),"object"==typeof C.value&&C.value&&function Gw(_){return null!==_&&"object"==typeof _&&"function"==typeof _.ngOnDestroy}(C.value)&&this._ngOnDestroyHooks.add(C.value),C.value}injectableDefInScope(b){if(!b.providedIn)return!1;const C=re(b.providedIn);return"string"==typeof C?"any"===C||this.scopes.has(C):this.injectorDefTypes.has(C)}}function hl(_){const b=Jr(_),C=null!==b?b.factory:He(_);if(null!==C)return C;if(_ instanceof Ft)throw new ae(204,!1);if(_ instanceof Function)return function Bm(_){const b=_.length;if(b>0)throw Qs(b,"?"),new ae(204,!1);const C=function Ho(_){const b=_&&(_[Qn]||_[ja]);if(b){const C=function Du(_){if(_.hasOwnProperty("name"))return _.name;const b=(""+_).match(/^function\s*([^\s(]+)/);return null===b?"":b[1]}(_);return console.warn(`DEPRECATED: DI is instantiating a token "${C}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${C}" class.`),b}return null}(_);return null!==C?()=>C.factory(_):()=>new _}(_);throw new ae(204,!1)}function Zc(_,b,C){let y;if(ma(_)){const x=re(_);return He(x)||hl(x)}if(fn(_))y=()=>re(_.useValue);else if(function fa(_){return!(!_||!_.useFactory)}(_))y=()=>_.useFactory(...nh(_.deps||[]));else if(function ll(_){return!(!_||!_.useExisting)}(_))y=()=>li(re(_.useExisting));else{const x=re(_&&(_.useClass||_.provide));if(!function zw(_){return!!_.deps}(_))return He(x)||hl(x);y=()=>new x(...nh(_.deps))}return y}function Ko(_,b,C=!1){return{factory:_,value:b,multi:C?[]:void 0}}function Yx(_){return!!_.\u0275providers}function Zo(_,b){for(const C of _)Array.isArray(C)?Zo(C,b):Yx(C)?Zo(C.\u0275providers,b):b(C)}class Ww{}class bh{resolveComponentFactory(b){throw function Jx(_){const b=Error(`No component factory found for ${ee(_)}. Did you add it to @NgModule.entryComponents?`);return b.ngComponent=_,b}(b)}}let ro=(()=>{class _{}return _.NULL=new bh,_})();function Ch(){return Ir($t(),we())}function Ir(_,b){return new Xc(Vt(_,b))}let Xc=(()=>{class _{constructor(C){this.nativeElement=C}}return _.__NG_ELEMENT_ID__=Ch,_})();function Zx(_){return _ instanceof Xc?_.nativeElement:_}class Lm{}let $w=(()=>{class _{}return _.__NG_ELEMENT_ID__=()=>function Xx(){const _=we(),C=Bt($t().index,_);return(Ii(C)?C:_)[11]}(),_})(),eT=(()=>{class _{}return _.\u0275prov=Dt({token:_,providedIn:"root",factory:()=>null}),_})();class Qw{constructor(b){this.full=b,this.major=b.split(".")[0],this.minor=b.split(".")[1],this.patch=b.split(".").slice(2).join(".")}}const tT=new Qw("14.1.2"),jm={};function zm(_){return _.ngOriginalError}class ed{constructor(){this._console=console}handleError(b){const C=this._findOriginalError(b);this._console.error("ERROR",b),C&&this._console.error("ORIGINAL ERROR",C)}_findOriginalError(b){let C=b&&zm(b);for(;C&&zm(C);)C=zm(C);return C||null}}const Gm=new Map;let fT=0;const Qm="__ngContext__";function qi(_,b){Ii(b)?(_[Qm]=b[20],function gT(_){Gm.set(_[20],_)}(b)):_[Qm]=b}function td(_){const b=_[Qm];return"number"==typeof b?function Wm(_){return Gm.get(_)||null}(b):b||null}function Ym(_){const b=td(_);return b?Ii(b)?b:b.lView:null}const xT=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ue))();function ga(_){return _ instanceof Function?_():_}var kr=(()=>((kr=kr||{})[kr.Important=1]="Important",kr[kr.DashCase=2]="DashCase",kr))();function Km(_,b){return undefined(_,b)}function id(_){const b=_[3];return cn(b)?b[3]:b}function Zm(_){return cy(_[13])}function Xm(_){return cy(_[4])}function cy(_){for(;null!==_&&!cn(_);)_=_[4];return _}function fl(_,b,C,y,x){if(null!=y){let T,S=!1;cn(y)?T=y:Ii(y)&&(S=!0,y=y[0]);const D=bt(y);0===_&&null!==C?null==x?wi(b,C,D):Ye(b,C,D,x||null,!0):1===_&&null!==C?Ye(b,C,D,x||null,!0):2===_?function lg(_,b,C){const y=Gt(_,b);y&&function ad(_,b,C,y){_.removeChild(b,C,y)}(_,y,b,C)}(b,D,S):3===_&&b.destroyNode(D),null!=T&&function fy(_,b,C,y,x){const T=C[7];T!==bt(C)&&fl(b,_,y,T,x);for(let D=10;D0&&(_[C-1][4]=y[4]);const T=Wo(_,10+b);!function kT(_,b){Xo(_,b,b[11],2,null,null),b[0]=null,b[6]=null}(y[1],y);const S=T[19];null!==S&&S.detachView(T[1]),y[3]=null,y[4]=null,y[2]&=-65}return y}function nd(_,b){if(!(128&b[2])){const C=b[11];C.destroyNode&&Xo(_,b,C,3,null,null),function OT(_){let b=_[13];if(!b)return rd(_[1],_);for(;b;){let C=null;if(Ii(b))C=b[13];else{const y=b[10];y&&(C=y)}if(!C){for(;b&&!b[4]&&b!==_;)Ii(b)&&rd(b[1],b),b=b[3];null===b&&(b=_),Ii(b)&&rd(b[1],b),C=b&&b[4]}b=C}}(b)}}function rd(_,b){if(!(128&b[2])){b[2]&=-65,b[2]|=128,function uy(_,b){let C;if(null!=_&&null!=(C=_.destroyHooks))for(let y=0;y=0?y[x=k]():y[x=-k].unsubscribe(),T+=2}else{const S=y[x=C[T+1]];C[T].call(S)}if(null!==y){for(let T=x+1;TT?"":x[U+1].toLowerCase();const se=8&y?te:null;if(se&&-1!==Ah(se,k,0)||2&y&&k!==te){if(nr(y))return!1;S=!0}}}}else{if(!S&&!nr(y)&&!nr(H))return!1;if(S&&nr(H))continue;S=!1,y=H|1&y}}return nr(y)||S}function nr(_){return 0==(1&_)}function Th(_,b,C,y){if(null===b)return-1;let x=0;if(y||!C){let T=!1;for(;x-1)for(C++;C<_.length;){const y=_[C];if("number"==typeof y)return-1;if(y===b)return C;C++}return-1}(b,_)}function _y(_,b,C=!1){for(let y=0;y0?'="'+D+'"':"")+"]"}else 8&y?x+="."+S:4&y&&(x+=" "+S);else""!==x&&!nr(S)&&(b+=hg(T,x),x=""),y=S,T=T||!nr(y);C++}return""!==x&&(b+=hg(T,x)),b}const ct={};function Sh(_){pg(et(),we(),Ni()+_,!1)}function pg(_,b,C,y){if(!y)if(3==(3&b[2])){const T=_.preOrderCheckHooks;null!==T&&Ja(b,T,C)}else{const T=_.preOrderHooks;null!==T&&bc(b,T,0,C)}aa(C)}function Ey(_,b=null,C=null,y){const x=_l(_,b,C,y);return x.resolveInjectorInitializers(),x}function _l(_,b=null,C=null,y,x=new Set){const T=[C||ze,Wx(_)];return y=y||("object"==typeof _?void 0:ee(_)),new qw(T,b||Wi(),y||null,x)}let rr=(()=>{class _{static create(C,y){if(Array.isArray(C))return Ey({name:""},y,C,"");{const x=C.name??"";return Ey({name:x},C.parent,C.providers,x)}}}return _.THROW_IF_NOT_FOUND=Ks,_.NULL=new Yt,_.\u0275prov=Dt({token:_,providedIn:"any",factory:()=>li(Uw)}),_.__NG_ELEMENT_ID__=-1,_})();function wl(_,b=Ke.Default){const C=we();return null===C?li(_,b):em($t(),C,re(_),b)}function Mh(){throw new Error("invalid")}function md(_,b){return _<<17|b<<2}function kn(_){return _>>17&32767}function yg(_){return 2|_}function _a(_){return(131068&_)>>2}function vg(_,b){return-131069&_|b<<2}function ar(_){return 1|_}function $y(_,b){const C=_.contentQueries;if(null!==C)for(let y=0;y22&&pg(_,b,22,!1),C(y,x)}finally{aa(T)}}function Dg(_,b,C){if(Ps(b)){const x=b.directiveEnd;for(let T=b.directiveStart;T0;){const C=_[--b];if("number"==typeof C&&C<0)return C}return 0})(D)!=H&&D.push(H),D.push(y,x,S)}}function ev(_,b){null!==_.hostBindings&&_.hostBindings(1,b)}function Vg(_,b){b.flags|=2,(_.components||(_.components=[])).push(b.index)}function iv(_,b,C){if(C){if(b.exportAs)for(let y=0;y0&&Sl(C)}}function Sl(_){for(let y=Zm(_);null!==y;y=Xm(y))for(let x=10;x0&&Sl(T)}const C=_[1].components;if(null!==C)for(let y=0;y0&&Sl(x)}}function ov(_,b){const C=Bt(b,_),y=C[1];(function El(_,b){for(let C=b.length;C<_.blueprint.length;C++)b.push(_.blueprint[C])})(y,C),Cd(y,C,C[8])}function Sd(_,b){return _[13]?_[14][4]=b:_[13]=b,_[14]=b,b}function Ed(_){for(;_;){_[2]|=32;const b=id(_);if(Lf(_)&&!b)return _;_=b}return null}function Fg(_){!function Md(_){for(let b=0;b<_.components.length;b++){const C=_.components[b],y=Ym(C);if(null!==y){const x=y[1];iS(x,y,x.template,C)}}}(_[8])}function qh(_,b,C){Os(0),b(_,C)}const lv=(()=>Promise.resolve(null))();function Ug(_){return _[7]||(_[7]=[])}function Ng(_){return _.cleanup||(_.cleanup=[])}function qg(_,b,C){return(null===_||Xi(_))&&(C=function qt(_){for(;Array.isArray(_);){if("object"==typeof _[1])return _;_=_[0]}return null}(C[b.index])),C[11]}function os(_,b){const C=_[9],y=C?C.get(ed,null):null;y&&y.handleError(b)}function Dd(_,b,C,y,x){for(let T=0;T-1&&(Pn(b,y),Wo(C,y))}this._attachedToViewContainer=!1}nd(this._lView[1],this._lView)}onDestroy(b){Pg(this._lView[1],this._lView,null,b)}markForCheck(){Ed(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function jg(_,b,C){const y=b[10];y.begin&&y.begin();try{Mi(_,b,_.template,C)}catch(x){throw os(b,x),x}finally{y.end&&y.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function BT(_,b){Xo(_,b,b[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(b){if(this._attachedToViewContainer)throw new ae(902,!1);this._appRef=b}}class cv extends ss{constructor(b){super(b),this._view=b}detectChanges(){Fg(this._view)}checkNoChanges(){}get context(){return null}}class zh extends ro{constructor(b){super(),this.ngModule=b}resolveComponentFactory(b){const C=St(b);return new Rd(C,this.ngModule)}}function Gh(_){const b=[];for(let C in _)_.hasOwnProperty(C)&&b.push({propName:_[C],templateName:C});return b}class dv{constructor(b,C){this.injector=b,this.parentInjector=C}get(b,C,y){const x=this.injector.get(b,jm,y);return x!==jm||C===jm?x:this.parentInjector.get(b,C,y)}}class Rd extends Ww{constructor(b,C){super(),this.componentDef=b,this.ngModule=C,this.componentType=b.type,this.selector=function vy(_){return _.map(yy).join(",")}(b.selectors),this.ngContentSelectors=b.ngContentSelectors?b.ngContentSelectors:[],this.isBoundToModule=!!C}get inputs(){return Gh(this.componentDef.inputs)}get outputs(){return Gh(this.componentDef.outputs)}create(b,C,y,x){let T=(x=x||this.ngModule)instanceof Pr?x:x?.injector;T&&null!==this.componentDef.getStandaloneInjector&&(T=this.componentDef.getStandaloneInjector(T)||T);const S=T?new dv(b,T):b,D=S.get(Lm,null);if(null===D)throw new ae(407,!1);const H=S.get(eT,null),k=D.createRenderer(null,this.componentDef),V=this.componentDef.selectors[0][0]||"div",U=y?function Rg(_,b,C){return _.selectRootElement(b,C===$.ShadowDom)}(k,y,this.componentDef.encapsulation):tg(D.createRenderer(null,this.componentDef),V,function zg(_){const b=_.toLowerCase();return"svg"===b?"svg":"math"===b?"math":null}(V)),te=this.componentDef.onPush?288:272,se=function cS(_,b){return{components:[],scheduler:_||xT,clean:lv,playerHandler:b||null,flags:0}}(),be=Bh(0,null,null,1,0,null,null,null,null,null),Se=bd(null,be,se,te,null,null,D,k,H,S,null);let Ie,qe;Ya(Se);try{const Ze=function sS(_,b,C,y,x,T){const S=C[1];C[22]=_;const H=Al(S,22,2,"#host",null),k=H.mergedAttrs=b.hostAttrs;null!==k&&(Lr(H,k,!0),null!==_&&(wc(x,_,k),null!==H.classes&&cg(x,_,H.classes),null!==H.styles&&gl(x,_,H.styles)));const V=y.createRenderer(_,b),U=bd(C,Hg(b),null,b.onPush?32:16,C[22],H,y,V,T||null,null,null);return S.firstCreatePass&&(Ec(Gs(H,C),S,b.type),Vg(S,H),Bg(H,C.length,1)),Sd(C,U),C[22]=U}(U,this.componentDef,Se,D,k);if(U)if(y)wc(k,U,["ng-version",tT.full]);else{const{attrs:ve,classes:Qe}=function Ay(_){const b=[],C=[];let y=1,x=2;for(;y<_.length;){let T=_[y];if("string"==typeof T)2===x?""!==T&&b.push(T,_[++y]):8===x&&C.push(T);else{if(!nr(x))break;x=T}y++}return{attrs:b,classes:C}}(this.componentDef.selectors[0]);ve&&wc(k,U,ve),Qe&&Qe.length>0&&cg(k,U,Qe.join(" "))}if(qe=un(be,22),void 0!==C){const ve=qe.projection=[];for(let Qe=0;Qe=0;y--){const x=_[y];x.hostVars=b+=x.hostVars,x.hostAttrs=yc(x.hostAttrs,C=yc(C,x.hostAttrs))}}(y)}function $h(_){return _===ut?{}:_===ze?[]:_}function Qh(_,b){const C=_.viewQuery;_.viewQuery=C?(y,x)=>{b(y,x),C(y,x)}:b}function uS(_,b){const C=_.contentQueries;_.contentQueries=C?(y,x,T)=>{b(y,x,T),C(y,x,T)}:b}function uv(_,b){const C=_.hostBindings;_.hostBindings=C?(y,x)=>{b(y,x),C(y,x)}:b}let ds=null;function us(){if(!ds){const _=ue.Symbol;if(_&&_.iterator)ds=_.iterator;else{const b=Object.getOwnPropertyNames(Map.prototype);for(let C=0;CD(bt(Ct[y.index])):y.index;let Qe=null;if(!D&&H&&(Qe=function fo(_,b,C,y){const x=_.cleanup;if(null!=x)for(let T=0;TH?D[H]:null}"string"==typeof S&&(T+=2)}return null}(_,b,x,y.index)),null!==Qe)(Qe.__ngLastListenerFn__||Qe).__ngNextListenerFn__=T,Qe.__ngLastListenerFn__=T,se=!1;else{T=kl(y,b,U,T,!1);const Ct=C.listen(qe,x,T);te.push(T,Ct),V&&V.push(x,ve,Ze,Ze+1)}}else T=kl(y,b,U,T,!1);const be=y.outputs;let Se;if(se&&null!==be&&(Se=be[x])){const Ie=Se.length;if(Ie)for(let qe=0;qe0;)b=b[15],_--;return b}(_,de.lFrame.contextLView))[8]}(_)}function Ld(_,b){let C=null;const y=function dd(_){const b=_.attrs;if(null!=b){const C=b.indexOf(5);if(0==(1&C))return b[C+1]}return null}(_);for(let x=0;x=0}const fi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function a_(_){return _.substring(fi.key,fi.keyEnd)}function o_(_,b){const C=fi.textEnd;return C===b?-1:(b=fi.keyEnd=function CS(_,b,C){for(;b32;)b++;return b}(_,fi.key=b,C),Fr(_,b,C))}function Fr(_,b,C){for(;b=0;C=o_(b,C))nn(_,a_(b),!0)}function bn(_,b,C,y){const x=we(),T=et(),S=hn(2);T.firstUpdatePass&&c_(T,_,S,y),b!==ct&&yi(x,S,b)&&Dv(T,T.data[Ni()],x,x[11],_,x[S+1]=function xS(_,b){return null==_||("string"==typeof b?_+=b:"object"==typeof _&&(_=ee(ir(_)))),_}(b,C),y,S)}function Fn(_,b,C,y){const x=et(),T=hn(2);x.firstUpdatePass&&c_(x,null,T,y);const S=we();if(C!==ct&&yi(S,T,C)){const D=x.data[Ni()];if(Rv(D,y)&&!op(x,T)){let H=y?D.classesWithoutHost:D.stylesWithoutHost;null!==H&&(C=W(H,C||"")),Jg(x,D,S,C,y)}else!function Mv(_,b,C,y,x,T,S,D){x===ct&&(x=ze);let H=0,k=0,V=0=_.expandoStartIndex}function c_(_,b,C,y){const x=_.data;if(null===x[C+1]){const T=x[Ni()],S=op(_,C);Rv(T,y)&&null===b&&!S&&(b=!1),b=function Ev(_,b,C,y){const x=Ou(_);let T=y?b.residualClasses:b.residualStyles;if(null===x)0===(y?b.classBindings:b.styleBindings)&&(C=Ud(C=d_(null,_,b,C,y),b.attrs,y),T=null);else{const S=b.directiveStylingLast;if(-1===S||_[S]!==x)if(C=d_(x,_,b,C,y),null===T){let H=function sp(_,b,C){const y=C?b.classBindings:b.styleBindings;if(0!==_a(y))return _[kn(y)]}(_,b,y);void 0!==H&&Array.isArray(H)&&(H=d_(null,_,b,H[1],y),H=Ud(H,b.attrs,y),function Vl(_,b,C,y){_[kn(C?b.classBindings:b.styleBindings)]=y}(_,b,y,H))}else T=function xa(_,b,C){let y;const x=b.directiveEnd;for(let T=1+b.directiveStylingLast;T0)&&(k=!0)}else V=C;if(x)if(0!==H){const te=kn(_[D+1]);_[y+1]=md(te,D),0!==te&&(_[te+1]=vg(_[te+1],y)),_[D+1]=function $e(_,b){return 131071&_|b<<17}(_[D+1],y)}else _[y+1]=md(D,0),0!==D&&(_[D+1]=vg(_[D+1],y)),D=y;else _[y+1]=md(H,0),0===D?D=y:_[H+1]=vg(_[H+1],y),H=y;k&&(_[y+1]=yg(_[y+1])),r_(_,V,y,!0),r_(_,V,y,!1),function yv(_,b,C,y,x){const T=x?_.residualClasses:_.residualStyles;null!=T&&"string"==typeof b&&Za(T,b)>=0&&(C[y+1]=ar(C[y+1]))}(b,V,_,y,T),S=md(D,H),T?b.classBindings=S:b.styleBindings=S}(x,T,b,C,S,y)}}function d_(_,b,C,y,x){let T=null;const S=C.directiveEnd;let D=C.directiveStylingLast;for(-1===D?D=C.directiveStart:D++;D0;){const H=_[x],k=Array.isArray(H),V=k?H[1]:H,U=null===V;let te=C[x+1];te===ct&&(te=U?ze:void 0);let se=U?eh(te,y):V===y?te:void 0;if(k&&!lp(se)&&(se=eh(H,y)),lp(se)&&(D=se,S))return D;const be=_[x+1];x=S?kn(be):_a(be)}if(null!==b){let H=T?b.residualClasses:b.residualStyles;null!=H&&(D=eh(H,y))}return D}function lp(_){return void 0!==_}function Rv(_,b){return 0!=(_.flags&(b?16:32))}function Pv(_,b=""){const C=we(),y=et(),x=_+22,T=y.firstCreatePass?Al(y,x,1,b,null):y.data[x],S=C[x]=function eg(_,b){return _.createText(b)}(C[11],b);ml(y,C,S,T),Ci(T,!1)}function h_(_){return cp("",_,""),h_}function cp(_,b,C){const y=we(),x=Hl(y,_,b,C);return x!==ct&&Or(y,Ni(),x),cp}function p_(_,b,C,y,x){const T=we(),S=function ps(_,b,C,y,x,T){const D=wa(_,xr(),C,x);return hn(2),D?b+fe(C)+y+fe(x)+T:ct}(T,_,b,C,y,x);return S!==ct&&Or(T,Ni(),S),p_}function f_(_,b,C,y,x,T,S,D,H,k,V){const U=we(),te=po(U,_,b,C,y,x,T,S,D,H,k,V);return te!==ct&&Or(U,Ni(),te),f_}function g_(_,b,C){Fn(nn,lr,Hl(we(),_,b,C),!0)}function E_(_,b,C){const y=we();return yi(y,$a(),b)&&an(et(),Kt(),y,_,b,y[11],C,!0),E_}function up(_,b,C){const y=we();if(yi(y,$a(),b)){const T=et(),S=Kt();an(T,S,y,_,b,qg(Ou(T.data),S,y),C,!0)}return up}const _o=void 0;var kS=["en",[["a","p"],["AM","PM"],_o],[["AM","PM"],_o,_o],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],_o,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],_o,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",_o,"{1} 'at' {0}",_o],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Uv(_){const C=Math.floor(Math.abs(_)),y=_.toString().replace(/^[^.]*\.?/,"").length;return 1===C&&0===y?1:5}];let Bl={};function Ol(_){const b=function BS(_){return _.toLowerCase().replace(/_/g,"-")}(_);let C=Nv(b);if(C)return C;const y=b.split("-")[0];if(C=Nv(y),C)return C;if("en"===y)return kS;throw new ae(701,!1)}function M_(_){return Ol(_)[tt.PluralCase]}function Nv(_){return _ in Bl||(Bl[_]=ue.ng&&ue.ng.common&&ue.ng.common.locales&&ue.ng.common.locales[_]),Bl[_]}var tt=(()=>((tt=tt||{})[tt.LocaleId=0]="LocaleId",tt[tt.DayPeriodsFormat=1]="DayPeriodsFormat",tt[tt.DayPeriodsStandalone=2]="DayPeriodsStandalone",tt[tt.DaysFormat=3]="DaysFormat",tt[tt.DaysStandalone=4]="DaysStandalone",tt[tt.MonthsFormat=5]="MonthsFormat",tt[tt.MonthsStandalone=6]="MonthsStandalone",tt[tt.Eras=7]="Eras",tt[tt.FirstDayOfWeek=8]="FirstDayOfWeek",tt[tt.WeekendRange=9]="WeekendRange",tt[tt.DateFormat=10]="DateFormat",tt[tt.TimeFormat=11]="TimeFormat",tt[tt.DateTimeFormat=12]="DateTimeFormat",tt[tt.NumberSymbols=13]="NumberSymbols",tt[tt.NumberFormats=14]="NumberFormats",tt[tt.CurrencyCode=15]="CurrencyCode",tt[tt.CurrencySymbol=16]="CurrencySymbol",tt[tt.CurrencyName=17]="CurrencyName",tt[tt.Currencies=18]="Currencies",tt[tt.Directionality=19]="Directionality",tt[tt.PluralCase=20]="PluralCase",tt[tt.ExtraData=21]="ExtraData",tt))();const Ur="en-US";let Ll=Ur;function Tp(_,b,C,y,x){if(_=re(_),Array.isArray(_))for(let T=0;T<_.length;T++)Tp(_[T],b,C,y,x);else{const T=et(),S=we();let D=ma(_)?_:re(_.provide),H=Zc(_);const k=$t(),V=1048575&k.providerIndexes,U=k.directiveStart,te=k.providerIndexes>>20;if(ma(_)||!_.multi){const se=new Us(H,x,wl),be=tu(D,b,x?V:V+te,U);-1===be?(Ec(Gs(k,S),T,D),Sp(T,_,b.length),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(se),S.push(se)):(C[be]=se,S[be]=se)}else{const se=tu(D,b,V+te,U),be=tu(D,b,V,V+te),Se=se>=0&&C[se],Ie=be>=0&&C[be];if(x&&!Ie||!x&&!Se){Ec(Gs(k,S),T,D);const qe=function ys(_,b,C,y,x){const T=new Us(_,C,wl);return T.multi=[],T.index=b,T.componentProviders=0,G_(T,x,y&&!C),T}(x?dA:Ep,C.length,x,y,H);!x&&Ie&&(C[be].providerFactory=qe),Sp(T,_,b.length,0),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(qe),S.push(qe)}else Sp(T,_,se>-1?se:be,G_(C[x?be:se],H,!x&&y));!x&&y&&Ie&&C[be].componentProviders++}}}function Sp(_,b,C,y){const x=ma(b),T=function cl(_){return!!_.useClass}(b);if(x||T){const H=(T?re(b.useClass):b).prototype.ngOnDestroy;if(H){const k=_.destroyHooks||(_.destroyHooks=[]);if(!x&&b.multi){const V=k.indexOf(C);-1===V?k.push(C,[y,H]):k[V+1].push(y,H)}else k.push(C,H)}}}function G_(_,b,C){return C&&_.componentProviders++,_.multi.push(b)-1}function tu(_,b,C,y){for(let x=C;x{C.providersResolver=(y,x)=>function cA(_,b,C){const y=et();if(y.firstCreatePass){const x=Xi(_);Tp(C,y.data,y.blueprint,x,!0),Tp(b,y.data,y.blueprint,x,!1)}}(y,x?x(_):_,b)}}class ur{}class $_{}function uA(_,b){return new Q_(_,b??null)}class Q_ extends ur{constructor(b,C){super(),this._parent=C,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new zh(this);const y=Gi(b);this._bootstrapComponents=ga(y.bootstrap),this._r3Injector=_l(b,C,[{provide:ur,useValue:this},{provide:ro,useValue:this.componentFactoryResolver}],ee(b),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(b)}get injector(){return this._r3Injector}destroy(){const b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(C=>C()),this.destroyCbs=null}onDestroy(b){this.destroyCbs.push(b)}}class Sa extends $_{constructor(b){super(),this.moduleType=b}create(b){return new Q_(this.moduleType,b)}}class hA extends ur{constructor(b,C,y){super(),this.componentFactoryResolver=new zh(this),this.instance=null;const x=new qw([...b,{provide:ur,useValue:this},{provide:ro,useValue:this.componentFactoryResolver}],C||Wi(),y,new Set(["environment"]));this.injector=x,x.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(b){this.injector.onDestroy(b)}}function iu(_,b,C=null){return new hA(_,b,C).injector}function mA(_,b,C){const y=Vi()+_,x=we();return x[y]===ct?or(x,y,C?b.call(C):b()):function hs(_,b){return _[b]}(x,y)}function gA(_,b,C,y){return wA(we(),Vi(),_,b,C,y)}function _A(_,b,C,y,x){return yA(we(),Vi(),_,b,C,y,x)}function nu(_,b){const C=_[b];return C===ct?void 0:C}function wA(_,b,C,y,x,T){const S=b+C;return yi(_,S,x)?or(_,S+1,T?y.call(T,x):y(x)):nu(_,S+1)}function yA(_,b,C,y,x,T,S){const D=b+C;return wa(_,D,x,T)?or(_,D+2,S?y.call(S,x,T):y(x,T)):nu(_,D+2)}function X_(_,b,C,y,x,T,S,D){const H=b+C;return function kd(_,b,C,y,x){const T=wa(_,b,C,y);return yi(_,b+2,x)||T}(_,H,x,T,S)?or(_,H+3,D?y.call(D,x,T,S):y(x,T,S)):nu(_,H+3)}function AA(_,b){const C=et();let y;const x=_+22;C.firstCreatePass?(y=function xA(_,b){if(b)for(let C=b.length-1;C>=0;C--){const y=b[C];if(_===y.name)return y}}(b,C.pipeRegistry),C.data[x]=y,y.onDestroy&&(C.destroyHooks||(C.destroyHooks=[])).push(x,y.onDestroy)):y=C.data[x];const T=y.factory||(y.factory=He(y.type)),S=Hi(wl);try{const D=zs(!1),H=T();return zs(D),function _n(_,b,C,y){C>=_.data.length&&(_.data[C]=null,_.blueprint[C]=null),b[C]=y}(C,we(),x,H),H}finally{Hi(S)}}function TA(_,b,C){const y=_+22,x=we(),T=jt(x,y);return ru(x,y)?wA(x,Vi(),b,T.transform,C,T):T.transform(C)}function SA(_,b,C,y){const x=_+22,T=we(),S=jt(T,x);return ru(T,x)?yA(T,Vi(),b,S.transform,C,y,S):S.transform(C,y)}function tb(_,b,C,y,x){const T=_+22,S=we(),D=jt(S,T);return ru(S,T)?X_(S,Vi(),b,D.transform,C,y,x,D):D.transform(C,y,x)}function ru(_,b){return _[1].data[b].pure}function ib(_){return b=>{setTimeout(_,void 0,b)}}const qr=class pr extends M.x{constructor(b=!1){super(),this.__isAsync=b}emit(b){super.next(b)}subscribe(b,C,y){let x=b,T=C||(()=>null),S=y;if(b&&"object"==typeof b){const H=b;x=H.next?.bind(H),T=H.error?.bind(H),S=H.complete?.bind(H)}this.__isAsync&&(T=ib(T),x&&(x=ib(x)),S&&(S=ib(S)));const D=super.subscribe({next:x,error:T,complete:S});return b instanceof f.w0&&b.add(D),D}};function iE(){return this._results[us()]()}class Pp{constructor(b=!1){this._emitDistinctChangesOnly=b,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const C=us(),y=Pp.prototype;y[C]||(y[C]=iE)}get changes(){return this._changes||(this._changes=new qr)}get(b){return this._results[b]}map(b){return this._results.map(b)}filter(b){return this._results.filter(b)}find(b){return this._results.find(b)}reduce(b,C){return this._results.reduce(b,C)}forEach(b){this._results.forEach(b)}some(b){return this._results.some(b)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(b,C){const y=this;y.dirty=!1;const x=pn(b);(this._changesDetected=!function Bx(_,b,C){if(_.length!==b.length)return!1;for(let y=0;y<_.length;y++){let x=_[y],T=b[y];if(C&&(x=C(x),T=C(T)),T!==x)return!1}return!0}(y._results,x,C))&&(y._results=x,y.length=x.length,y.last=x[this.length-1],y.first=x[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let au=(()=>{class _{}return _.__NG_ELEMENT_ID__=rE,_})();const nE=au,DA=class extends nE{constructor(b,C,y){super(),this._declarationLView=b,this._declarationTContainer=C,this.elementRef=y}createEmbeddedView(b,C){const y=this._declarationTContainer.tViews,x=bd(this._declarationLView,y,b,16,null,y.declTNode,null,null,null,null,C||null);x[17]=this._declarationLView[this._declarationTContainer.index];const S=this._declarationLView[19];return null!==S&&(x[19]=S.createEmbeddedView(y)),Cd(y,x,b),new ss(x)}};function rE(){return Ip($t(),we())}function Ip(_,b){return 4&_.type?new DA(b,_,Ir(_,b)):null}let kp=(()=>{class _{}return _.__NG_ELEMENT_ID__=aE,_})();function aE(){return PA($t(),we())}const oE=kp,HA=class extends oE{constructor(b,C,y){super(),this._lContainer=b,this._hostTNode=C,this._hostLView=y}get element(){return Ir(this._hostTNode,this._hostLView)}get injector(){return new Mn(this._hostTNode,this._hostLView)}get parentInjector(){const b=Sc(this._hostTNode,this._hostLView);if(Uo(b)){const C=qo(b,this._hostLView),y=No(b);return new Mn(C[1].data[y+8],C)}return new Mn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(b){const C=RA(this._lContainer);return null!==C&&C[b]||null}get length(){return this._lContainer.length-10}createEmbeddedView(b,C,y){let x,T;"number"==typeof y?x=y:null!=y&&(x=y.index,T=y.injector);const S=b.createEmbeddedView(C||{},T);return this.insert(S,x),S}createComponent(b,C,y,x,T){const S=b&&!function Go(_){return"function"==typeof _}(b);let D;if(S)D=C;else{const U=C||{};D=U.index,y=U.injector,x=U.projectableNodes,T=U.environmentInjector||U.ngModuleRef}const H=S?b:new Rd(St(b)),k=y||this.parentInjector;if(!T&&null==H.ngModule){const te=(S?k:this.parentInjector).get(Pr,null);te&&(T=te)}const V=H.create(k,x,void 0,T);return this.insert(V.hostView,D),V}insert(b,C){const y=b._lView,x=y[1];if(function I(_){return cn(_[3])}(y)){const V=this.indexOf(b);if(-1!==V)this.detach(V);else{const U=y[3],te=new HA(U,U[6],U[3]);te.detach(te.indexOf(b))}}const T=this._adjustIndex(C),S=this._lContainer;!function LT(_,b,C,y){const x=10+y,T=C.length;y>0&&(C[x-1][4]=b),y0)y.push(S[D/2]);else{const k=T[D+1],V=b[-H];for(let U=10;U{class _{constructor(C){this.appInits=C,this.resolve=Jl,this.reject=Jl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,x)=>{this.resolve=y,this.reject=x})}runInitializers(){if(this.initialized)return;const C=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let x=0;x{T.subscribe({complete:D,error:H})});C.push(S)}}Promise.all(C).then(()=>{y()}).catch(x=>{this.reject(x)}),0===C.length&&y(),this.initialized=!0}}return _.\u0275fac=function(C){return new(C||_)(li(Oi,8))},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const Zp=new Ft("AppId",{providedIn:"root",factory:function XA(){return`${Ia()}${Ia()}${Ia()}`}});function Ia(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const lu=new Ft("Platform Initializer"),Xp=new Ft("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Kl=new Ft("appBootstrapListener"),ef=new Ft("AnimationModuleType");let e0=(()=>{class _{log(C){console.log(C)}warn(C){console.warn(C)}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();const tf=new Ft("LocaleId",{providedIn:"root",factory:()=>cm(tf,Ke.Optional|Ke.SkipSelf)||function hE(){return typeof $localize<"u"&&$localize.locale||Ur}()}),pE=new Ft("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class fE{constructor(b,C){this.ngModuleFactory=b,this.componentFactories=C}}let t0=(()=>{class _{compileModuleSync(C){return new Sa(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const y=this.compileModuleSync(C),T=ga(Gi(C).declarations).reduce((S,D)=>{const H=St(D);return H&&S.push(new Rd(H)),S},[]);return new fE(y,T)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const xs=(()=>Promise.resolve(0))();function wo(_){typeof Zone>"u"?xs.then(()=>{_&&_.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",_)}class Ji{constructor({enableLongStackTrace:b=!1,shouldCoalesceEventChangeDetection:C=!1,shouldCoalesceRunChangeDetection:y=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new qr(!1),this.onMicrotaskEmpty=new qr(!1),this.onStable=new qr(!1),this.onError=new qr(!1),typeof Zone>"u")throw new ae(908,!1);Zone.assertZonePatched();const x=this;if(x._nesting=0,x._outer=x._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const T=Zone.AsyncStackTaggingZoneSpec;x._inner=x._inner.fork(new T("Angular"))}Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),b&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!y&&C,x.shouldCoalesceRunChangeDetection=y,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function nf(){let _=ue.requestAnimationFrame,b=ue.cancelAnimationFrame;if(typeof Zone<"u"&&_&&b){const C=_[Zone.__symbol__("OriginalDelegate")];C&&(_=C);const y=b[Zone.__symbol__("OriginalDelegate")];y&&(b=y)}return{nativeRequestAnimationFrame:_,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function Hb(_){const b=()=>{!function hu(_){_.isCheckStableRunning||-1!==_.lastRequestAnimationFrameId||(_.lastRequestAnimationFrameId=_.nativeRequestAnimationFrame.call(ue,()=>{_.fakeTopEventTask||(_.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{_.lastRequestAnimationFrameId=-1,pu(_),_.isCheckStableRunning=!0,uu(_),_.isCheckStableRunning=!1},void 0,()=>{},()=>{})),_.fakeTopEventTask.invoke()}),pu(_))}(_)};_._inner=_._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(C,y,x,T,S,D)=>{try{return Zl(_),C.invokeTask(x,T,S,D)}finally{(_.shouldCoalesceEventChangeDetection&&"eventTask"===T.type||_.shouldCoalesceRunChangeDetection)&&b(),Xl(_)}},onInvoke:(C,y,x,T,S,D,H)=>{try{return Zl(_),C.invoke(x,T,S,D,H)}finally{_.shouldCoalesceRunChangeDetection&&b(),Xl(_)}},onHasTask:(C,y,x,T)=>{C.hasTask(x,T),y===x&&("microTask"==T.change?(_._hasPendingMicrotasks=T.microTask,pu(_),uu(_)):"macroTask"==T.change&&(_.hasPendingMacrotasks=T.macroTask))},onHandleError:(C,y,x,T)=>(C.handleError(x,T),_.runOutsideAngular(()=>_.onError.emit(T)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ji.isInAngularZone())throw new ae(909,!1)}static assertNotInAngularZone(){if(Ji.isInAngularZone())throw new ae(909,!1)}run(b,C,y){return this._inner.run(b,C,y)}runTask(b,C,y,x){const T=this._inner,S=T.scheduleEventTask("NgZoneEvent: "+x,b,rf,Jl,Jl);try{return T.runTask(S,C,y)}finally{T.cancelTask(S)}}runGuarded(b,C,y){return this._inner.runGuarded(b,C,y)}runOutsideAngular(b){return this._outer.run(b)}}const rf={};function uu(_){if(0==_._nesting&&!_.hasPendingMicrotasks&&!_.isStable)try{_._nesting++,_.onMicrotaskEmpty.emit(null)}finally{if(_._nesting--,!_.hasPendingMicrotasks)try{_.runOutsideAngular(()=>_.onStable.emit(null))}finally{_.isStable=!0}}}function pu(_){_.hasPendingMicrotasks=!!(_._hasPendingMicrotasks||(_.shouldCoalesceEventChangeDetection||_.shouldCoalesceRunChangeDetection)&&-1!==_.lastRequestAnimationFrameId)}function Zl(_){_._nesting++,_.isStable&&(_.isStable=!1,_.onUnstable.emit(null))}function Xl(_){_._nesting--,uu(_)}class gE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new qr,this.onMicrotaskEmpty=new qr,this.onStable=new qr,this.onError=new qr}run(b,C,y){return b.apply(C,y)}runGuarded(b,C,y){return b.apply(C,y)}runOutsideAngular(b){return b()}runTask(b,C,y,x){return b.apply(C,y)}}const r0=new Ft(""),Rb=new Ft("");let Ts,_E=(()=>{class _{constructor(C,y,x){this._ngZone=C,this.registry=y,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Ts||(function tc(_){Ts=_}(x),x.addToWindow(y)),this._watchAngularEvents(),C.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ji.assertNotInAngularZone(),wo(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())wo(()=>{for(;0!==this._callbacks.length;){let C=this._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb(this._didWork)}this._didWork=!1});else{let C=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(C)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,y,x){let T=-1;y&&y>0&&(T=setTimeout(()=>{this._callbacks=this._callbacks.filter(S=>S.timeoutId!==T),C(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:C,timeoutId:T,updateCb:x})}whenStable(C,y,x){if(x&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(C,y,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,y,x){return[]}}return _.\u0275fac=function(C){return new(C||_)(li(Ji),li(ec),li(Rb))},_.\u0275prov=Dt({token:_,factory:_.\u0275fac}),_})(),ec=(()=>{class _{constructor(){this._applications=new Map}registerApplication(C,y){this._applications.set(C,y)}unregisterApplication(C){this._applications.delete(C)}unregisterAllApplications(){this._applications.clear()}getTestability(C){return this._applications.get(C)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(C,y=!0){return Ts?.findTestabilityInTree(this,C,y)??null}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})(),Nn=null;const Pb=new Ft("AllowMultipleToken"),ic=new Ft("PlatformDestroyListeners");class o0{constructor(b,C){this.name=b,this.token=C}}function af(_,b,C=[]){const y=`Platform: ${b}`,x=new Ft(y);return(T=[])=>{let S=mu();if(!S||S.injector.get(Pb,!1)){const D=[...C,...T,{provide:x,useValue:!0}];_?_(D):function kb(_){if(Nn&&!Nn.get(Pb,!1))throw new ae(400,!1);Nn=_;const b=_.get(gu);(function l0(_){const b=_.get(lu,null);b&&b.forEach(C=>C())})(_)}(function fu(_=[],b){return rr.create({name:b,providers:[{provide:dl,useValue:"platform"},{provide:ic,useValue:new Set([()=>Nn=null])},..._]})}(D,y))}return function wE(_){const b=mu();if(!b)throw new ae(401,!1);return b}()}}function mu(){return Nn?.get(gu)??null}let gu=(()=>{class _{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,y){const x=function vE(_,b){let C;return C="noop"===_?new gE:("zone.js"===_?void 0:_)||new Ji(b),C}(y?.ngZone,function Vb(_){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!_||!_.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!_||!_.ngZoneRunCoalescing)||!1}}(y)),T=[{provide:Ji,useValue:x}];return x.run(()=>{const S=rr.create({providers:T,parent:this.injector,name:C.moduleType.name}),D=C.create(S),H=D.injector.get(ed,null);if(!H)throw new ae(402,!1);return x.runOutsideAngular(()=>{const k=x.onError.subscribe({next:V=>{H.handleError(V)}});D.onDestroy(()=>{nc(this._modules,D),k.unsubscribe()})}),function Bb(_,b,C){try{const y=C();return vt(y)?y.catch(x=>{throw b.runOutsideAngular(()=>_.handleError(x)),x}):y}catch(y){throw b.runOutsideAngular(()=>_.handleError(y)),y}}(H,x,()=>{const k=D.injector.get(on);return k.runInitializers(),k.donePromise.then(()=>(function qv(_){Ot(_,"Expected localeId to be defined"),"string"==typeof _&&(Ll=_.toLowerCase().replace(/_/g,"-"))}(D.injector.get(tf,Ur)||Ur),this._moduleDoBootstrap(D),D))})})}bootstrapModule(C,y=[]){const x=Ss({},y);return function a0(_,b,C){const y=new Sa(C);return Promise.resolve(y)}(0,0,C).then(T=>this.bootstrapModuleFactory(T,x))}_moduleDoBootstrap(C){const y=C.injector.get(ka);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(x=>y.bootstrap(x));else{if(!C.instance.ngDoBootstrap)throw new ae(403,!1);C.instance.ngDoBootstrap(y)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ae(404,!1);this._modules.slice().forEach(y=>y.destroy()),this._destroyListeners.forEach(y=>y());const C=this._injector.get(ic,null);C&&(C.forEach(y=>y()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return _.\u0275fac=function(C){return new(C||_)(li(rr))},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();function Ss(_,b){return Array.isArray(b)?b.reduce(Ss,_):{..._,...b}}let ka=(()=>{class _{constructor(C,y,x){this._zone=C,this._injector=y,this._exceptionHandler=x,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const T=new L.y(D=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{D.next(this._stable),D.complete()})}),S=new L.y(D=>{let H;this._zone.runOutsideAngular(()=>{H=this._zone.onStable.subscribe(()=>{Ji.assertNotInAngularZone(),wo(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,D.next(!0))})})});const k=this._zone.onUnstable.subscribe(()=>{Ji.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{D.next(!1)}))});return()=>{H.unsubscribe(),k.unsubscribe()}});this.isStable=(0,F.T)(T,S.pipe((0,B.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(C,y){const x=C instanceof Ww;if(!this._injector.get(on).done)throw!x&&Ql(C),new ae(405,false);let S;S=x?C:this._injector.get(ro).resolveComponentFactory(C),this.componentTypes.push(S.componentType);const D=function Ib(_){return _.isBoundToModule}(S)?void 0:this._injector.get(ur),k=S.create(rr.NULL,[],y||S.selector,D),V=k.location.nativeElement,U=k.injector.get(r0,null);return U?.registerApplication(V),k.onDestroy(()=>{this.detachView(k.hostView),nc(this.components,k),U?.unregisterApplication(V)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ae(101,!1);try{this._runningTick=!0;for(let C of this._views)C.detectChanges()}catch(C){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(C))}finally{this._runningTick=!1}}attachView(C){const y=C;this._views.push(y),y.attachToAppRef(this)}detachView(C){const y=C;nc(this._views,y),y.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C),this._injector.get(Kl,[]).concat(this._bootstrapListeners).forEach(x=>x(C))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(C=>C()),this._views.slice().forEach(C=>C.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(C){return this._destroyListeners.push(C),()=>nc(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new ae(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return _.\u0275fac=function(C){return new(C||_)(li(Ji),li(Pr),li(ed))},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function nc(_,b){const C=_.indexOf(b);C>-1&&_.splice(C,1)}let Ob=!0;function AE(){Ob=!1}let u0=(()=>{class _{}return _.__NG_ELEMENT_ID__=jb,_})();function jb(_){return function h0(_,b,C){if(Ga(_)&&!C){const y=Bt(_.index,b);return new ss(y,y)}return 47&_.type?new ss(b[16],b):null}($t(),we(),16==(16&_))}class qb{constructor(){}supports(b){return Id(b)}create(b){return new b0(b)}}const ff=(_,b)=>b;class b0{constructor(b){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=b||ff}forEachItem(b){let C;for(C=this._itHead;null!==C;C=C._next)b(C)}forEachOperation(b){let C=this._itHead,y=this._removalsHead,x=0,T=null;for(;C||y;){const S=!y||C&&C.currentIndex{S=this._trackByFn(x,D),null!==C&&Object.is(C.trackById,S)?(y&&(C=this._verifyReinsertion(C,D,S,x)),Object.is(C.item,D)||this._addIdentityChange(C,D)):(C=this._mismatch(C,D,S,x),y=!0),C=C._next,x++}),this.length=x;return this._truncate(C),this.collection=b,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let b;for(b=this._previousItHead=this._itHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._additionsHead;null!==b;b=b._nextAdded)b.previousIndex=b.currentIndex;for(this._additionsHead=this._additionsTail=null,b=this._movesHead;null!==b;b=b._nextMoved)b.previousIndex=b.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(b,C,y,x){let T;return null===b?T=this._itTail:(T=b._prev,this._remove(b)),null!==(b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._reinsertAfter(b,T,x)):null!==(b=null===this._linkedRecords?null:this._linkedRecords.get(y,x))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._moveAfter(b,T,x)):b=this._addAfter(new zb(C,y),T,x),b}_verifyReinsertion(b,C,y,x){let T=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==T?b=this._reinsertAfter(T,b._prev,x):b.currentIndex!=x&&(b.currentIndex=x,this._addToMoves(b,x)),b}_truncate(b){for(;null!==b;){const C=b._next;this._addToRemovals(this._unlink(b)),b=C}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(b,C,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(b);const x=b._prevRemoved,T=b._nextRemoved;return null===x?this._removalsHead=T:x._nextRemoved=T,null===T?this._removalsTail=x:T._prevRemoved=x,this._insertAfter(b,C,y),this._addToMoves(b,y),b}_moveAfter(b,C,y){return this._unlink(b),this._insertAfter(b,C,y),this._addToMoves(b,y),b}_addAfter(b,C,y){return this._insertAfter(b,C,y),this._additionsTail=null===this._additionsTail?this._additionsHead=b:this._additionsTail._nextAdded=b,b}_insertAfter(b,C,y){const x=null===C?this._itHead:C._next;return b._next=x,b._prev=C,null===x?this._itTail=b:x._prev=b,null===C?this._itHead=b:C._next=b,null===this._linkedRecords&&(this._linkedRecords=new Cu),this._linkedRecords.put(b),b.currentIndex=y,b}_remove(b){return this._addToRemovals(this._unlink(b))}_unlink(b){null!==this._linkedRecords&&this._linkedRecords.remove(b);const C=b._prev,y=b._next;return null===C?this._itHead=y:C._next=y,null===y?this._itTail=C:y._prev=C,b}_addToMoves(b,C){return b.previousIndex===C||(this._movesTail=null===this._movesTail?this._movesHead=b:this._movesTail._nextMoved=b),b}_addToRemovals(b){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Cu),this._unlinkedRecords.put(b),b.currentIndex=null,b._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=b,b._prevRemoved=null):(b._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=b),b}_addIdentityChange(b,C){return b.item=C,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=b:this._identityChangesTail._nextIdentityChange=b,b}}class zb{constructor(b,C){this.item=b,this.trackById=C,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class C0{constructor(){this._head=null,this._tail=null}add(b){null===this._head?(this._head=this._tail=b,b._nextDup=null,b._prevDup=null):(this._tail._nextDup=b,b._prevDup=this._tail,b._nextDup=null,this._tail=b)}get(b,C){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===C||C<=y.currentIndex)&&Object.is(y.trackById,b))return y;return null}remove(b){const C=b._prevDup,y=b._nextDup;return null===C?this._head=y:C._nextDup=y,null===y?this._tail=C:y._prevDup=C,null===this._head}}class Cu{constructor(){this.map=new Map}put(b){const C=b.trackById;let y=this.map.get(C);y||(y=new C0,this.map.set(C,y)),y.add(b)}get(b,C){const x=this.map.get(b);return x?x.get(b,C):null}remove(b){const C=b.trackById;return this.map.get(C).remove(b)&&this.map.delete(C),b}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Gb(_,b,C){const y=_.previousIndex;if(null===y)return y;let x=0;return C&&y{if(C&&C.key===x)this._maybeAddToChanges(C,y),this._appendAfter=C,C=C._next;else{const T=this._getOrCreateRecordForKey(x,y);C=this._insertBeforeOrAppend(C,T)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(let y=C;null!==y;y=y._nextRemoved)y===this._mapHead&&(this._mapHead=null),this._records.delete(y.key),y._nextRemoved=y._next,y.previousValue=y.currentValue,y.currentValue=null,y._prev=null,y._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(b,C){if(b){const y=b._prev;return C._next=b,C._prev=y,b._prev=C,y&&(y._next=C),b===this._mapHead&&(this._mapHead=C),this._appendAfter=b,b}return this._appendAfter?(this._appendAfter._next=C,C._prev=this._appendAfter):this._mapHead=C,this._appendAfter=C,null}_getOrCreateRecordForKey(b,C){if(this._records.has(b)){const x=this._records.get(b);this._maybeAddToChanges(x,C);const T=x._prev,S=x._next;return T&&(T._next=S),S&&(S._prev=T),x._next=null,x._prev=null,x}const y=new w0(b);return this._records.set(b,y),y.currentValue=C,this._addToAdditions(y),y}_reset(){if(this.isDirty){let b;for(this._previousMapHead=this._mapHead,b=this._previousMapHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._changesHead;null!==b;b=b._nextChanged)b.previousValue=b.currentValue;for(b=this._additionsHead;null!=b;b=b._nextAdded)b.previousValue=b.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(b,C){Object.is(C,b.currentValue)||(b.previousValue=b.currentValue,b.currentValue=C,this._addToChanges(b))}_addToAdditions(b){null===this._additionsHead?this._additionsHead=this._additionsTail=b:(this._additionsTail._nextAdded=b,this._additionsTail=b)}_addToChanges(b){null===this._changesHead?this._changesHead=this._changesTail=b:(this._changesTail._nextChanged=b,this._changesTail=b)}_forEach(b,C){b instanceof Map?b.forEach(C):Object.keys(b).forEach(y=>C(b[y],y))}}class w0{constructor(b){this.key=b,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function y0(){return new ac([new qb])}let ac=(()=>{class _{constructor(C){this.factories=C}static create(C,y){if(null!=y){const x=y.factories.slice();C=C.concat(x)}return new _(C)}static extend(C){return{provide:_,useFactory:y=>_.create(C,y||y0()),deps:[[_,new $o,new Xs]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(null!=y)return y;throw new ae(901,!1)}}return _.\u0275prov=Dt({token:_,providedIn:"root",factory:y0}),_})();function mf(){return new wu([new Wb])}let wu=(()=>{class _{constructor(C){this.factories=C}static create(C,y){if(y){const x=y.factories.slice();C=C.concat(x)}return new _(C)}static extend(C){return{provide:_,useFactory:y=>_.create(C,y||mf()),deps:[[_,new $o,new Xs]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(y)return y;throw new ae(901,!1)}}return _.\u0275prov=Dt({token:_,providedIn:"root",factory:mf}),_})();const Qb=af(null,"core",[]);let x0=(()=>{class _{constructor(C){}}return _.\u0275fac=function(C){return new(C||_)(li(ka))},_.\u0275mod=Zr({type:_}),_.\u0275inj=oi({}),_})();function T0(_){return"boolean"==typeof _?_:null!=_&&"false"!==_}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class N extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return N.\u0275fac=function(){let z;return function(M){return(z||(z=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(N)))(M||N)}}(),N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class N{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,M){this.data.set(E,M)}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class ReceivedTokens{}class OAuthEvent{constructor(z){this.type=z}}class OAuthSuccessEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(z,E,M=null){super(z),this.reason=E,this.params=M}}function b64DecodeUnicode(N){const z=N.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(z).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(N){return btoa(N).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(z){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},z&&Object.assign(this,z)}}class WebHttpUrlEncodingCodec{encodeKey(z){return encodeURIComponent(z)}encodeValue(z){return encodeURIComponent(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(z){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let M=E.inferHashAlgorithm(z.idTokenHeader),f=yield E.calcHash(z.accessToken,M),F=base64UrlEncode(f.substr(0,f.length/2)),B=z.idTokenClaims.at_hash.replace(/=/g,"");return F!==B&&(console.error("exptected at_hash: "+F),console.error("actual at_hash: "+B)),F===B})()}inferHashAlgorithm(z){let E=z.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class N{getHashFragmentParams(E){let M=E||window.location.hash;if(M=decodeURIComponent(M),0!==M.indexOf("#"))return{};const f=M.indexOf("?");return M=M.substr(f>-1?f+1:1),this.parseQueryString(M)}parseQueryString(E){const M={};let f,L,F,B,q,Q,ee;if(null===E)return M;f=E.split("&");for(let W=0;W>6,L[B++]=128|63&q):q<55296||q>=57344?(L[B++]=224|q>>12,L[B++]=128|q>>6&63,L[B++]=128|63&q):(q=65536+((1023&q)<<10|1023&N.charCodeAt(++M)),L[B++]=240|q>>18,L[B++]=128|q>>12&63,L[B++]=128|q>>6&63,L[B++]=128|63&q);N=L}else{if("object"!==f)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR)}N.length>64&&(N=new Sha256(z,!0).update(N).array());var Q=[],ee=[];for(M=0;M<64;++M){var W=N[M]||0;Q[M]=92^W,ee[M]=54^W}Sha256.call(this,z,E),this.update(ee),this.oKeyPad=Q,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(N){if(!this.finalized){var z,E=typeof N;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR);z=!0}for(var M,L,f=0,F=N.length,B=this.blocks;f>2]|=N[f]<>2]|=M<>2]|=(192|M>>6)<>2]|=(128|63&M)<=57344?(B[L>>2]|=(224|M>>12)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<>2]|=(240|M>>18)<>2]|=(128|M>>12&63)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<=64?(this.block=B[16],this.start=L-64,this.hash(),this.hashed=!0):this.start=L}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var N=this.blocks,z=this.lastByteIndex;N[16]=this.block,N[z>>2]|=EXTRA[3&z],this.block=N[16],z>=56&&(this.hashed||this.hash(),N[0]=this.block,N[16]=N[1]=N[2]=N[3]=N[4]=N[5]=N[6]=N[7]=N[8]=N[9]=N[10]=N[11]=N[12]=N[13]=N[14]=N[15]=0),N[14]=this.hBytes<<3|this.bytes>>>29,N[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var Q,G,ie,ae,he,fe,N=this.h0,z=this.h1,E=this.h2,M=this.h3,f=this.h4,L=this.h5,F=this.h6,B=this.h7,q=this.blocks;for(Q=16;Q<64;++Q)q[Q]=q[Q-16]+(((G=q[Q-15])>>>7|G<<25)^(G>>>18|G<<14)^G>>>3)+q[Q-7]+(((G=q[Q-2])>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)<<0;for(fe=z&E,Q=0;Q<64;Q+=4)this.first?(this.is224?(ie=300032,B=(G=q[0]-1413257819)-150054599<<0,M=G+24177077<<0):(ie=704751109,B=(G=q[0]-210244248)-1521486534<<0,M=G+143694565<<0),this.first=!1):(B=M+(G=B+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&L^~f&F)+K[Q]+q[Q])<<0,M=G+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((ie=N&z)^N&E^fe))<<0),F=E+(G=F+((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&f^~B&L)+K[Q+1]+q[Q+1])<<0,E=G+(((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+((ae=M&N)^M&z^ie))<<0,L=z+(G=L+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&B^~F&f)+K[Q+2]+q[Q+2])<<0,z=G+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((he=E&M)^E&N^ae))<<0,f=N+(G=f+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&F^~L&B)+K[Q+3]+q[Q+3])<<0,N=G+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((fe=z&E)^z&M^he))<<0;this.h0=this.h0+N<<0,this.h1=this.h1+z<<0,this.h2=this.h2+E<<0,this.h3=this.h3+M<<0,this.h4=this.h4+f<<0,this.h5=this.h5+L<<0,this.h6=this.h6+F<<0,this.h7=this.h7+B<<0},Sha256.prototype.hex=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,f=this.h4,L=this.h5,F=this.h6,B=this.h7,q=HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M]+HEX_CHARS[f>>28&15]+HEX_CHARS[f>>24&15]+HEX_CHARS[f>>20&15]+HEX_CHARS[f>>16&15]+HEX_CHARS[f>>12&15]+HEX_CHARS[f>>8&15]+HEX_CHARS[f>>4&15]+HEX_CHARS[15&f]+HEX_CHARS[L>>28&15]+HEX_CHARS[L>>24&15]+HEX_CHARS[L>>20&15]+HEX_CHARS[L>>16&15]+HEX_CHARS[L>>12&15]+HEX_CHARS[L>>8&15]+HEX_CHARS[L>>4&15]+HEX_CHARS[15&L]+HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F];return this.is224||(q+=HEX_CHARS[B>>28&15]+HEX_CHARS[B>>24&15]+HEX_CHARS[B>>20&15]+HEX_CHARS[B>>16&15]+HEX_CHARS[B>>12&15]+HEX_CHARS[B>>8&15]+HEX_CHARS[B>>4&15]+HEX_CHARS[15&B]),q},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,f=this.h4,L=this.h5,F=this.h6,B=this.h7,q=[N>>24&255,N>>16&255,N>>8&255,255&N,z>>24&255,z>>16&255,z>>8&255,255&z,E>>24&255,E>>16&255,E>>8&255,255&E,M>>24&255,M>>16&255,M>>8&255,255&M,f>>24&255,f>>16&255,f>>8&255,255&f,L>>24&255,L>>16&255,L>>8&255,255&L,F>>24&255,F>>16&255,F>>8&255,255&F];return this.is224||q.push(B>>24&255,B>>16&255,B>>8&255,255&B),q},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var N=new ArrayBuffer(this.is224?28:32),z=new DataView(N);return z.setUint32(0,this.h0),z.setUint32(4,this.h1),z.setUint32(8,this.h2),z.setUint32(12,this.h3),z.setUint32(16,this.h4),z.setUint32(20,this.h5),z.setUint32(24,this.h6),this.is224||z.setUint32(28,this.h7),N},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var N=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(N),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(N){if("string"!=typeof N)throw new TypeError("expected string");var z,E=N,M=new Uint8Array(E.length);for(z=0;z{class N{calcHash(E,M){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})()}toHashString2(E){let M="";for(let f of E)M+=String.fromCharCode(f);return M}toHashString(E){const M=new Uint8Array(E);let f="";for(let L of M)f+=String.fromCharCode(L);return f}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})(),OAuthService=(()=>{class N extends AuthConfig{constructor(E,M,f,L,F,B,q,Q,ee,W){super(),this.ngZone=E,this.http=M,this.config=F,this.urlHelper=B,this.logger=q,this.crypto=Q,this.dateTimeService=W,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=ee,F||(F={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),L&&(this.tokenValidationHandler=L),F&&this.configure(F);try{f?this.setStorage(f):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(Y){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",Y)}if(this.checkLocalStorageAccessable()){const Y=window?.navigator?.userAgent;(Y?.includes("MSIE ")||Y?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const E="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(E,E),localStorage.removeItem(E),0))}catch{return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},M,f=!0){let L=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(F=>{"token_received"===F.type?L=!0:"logout"===F.type&&(L=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_expires"===F.type&&(null==M||"any"===M||F.info===M)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(F=>{L&&this.refreshInternal(E,f).catch(B=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,M){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,M):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(M=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(M=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const M=[],f=this.validateUrlForHttps(E),L=this.validateUrlAgainstIssuer(E);return f||M.push("https for all urls required. Also for urls received by discovery."),L||M.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),M}validateUrlForHttps(E){if(!E)return!0;const M=E.toLowerCase();return!(!1!==this.requireHttps&&(!M.match(/^http:\/\/localhost($|[:\/])/)&&!M.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||M.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,M){if(!E)throw new Error(`'${M}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${M}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),M=this.getAccessTokenStoredAt(),f=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(f)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),M=this.getIdTokenStoredAt(),f=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(f)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,M){const f=this.dateTimeService.now();return Math.max(0,(M-E)*this.timeoutFactor-(f-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((M,f)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(L=>{if(!this.validateDiscoveryDocument(L))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void f("discovery_document_validation_error");this.loginUrl=L.authorization_endpoint,this.logoutUrl=L.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=L.grant_types_supported,this.issuer=L.issuer,this.tokenEndpoint=L.token_endpoint,this.userinfoEndpoint=L.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=L.jwks_uri,this.sessionCheckIFrameUrl=L.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(L),this.revocationEndpoint=L.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(F=>{const q=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:L,jwks:F});this.eventsSubject.next(q),M(q)}).catch(F=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",F)),f(F)})},L=>{this.logger.error("error loading discovery document",L),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",L)),f(L)}):f("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,M)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(f=>{this.jwks=f,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(f)},f=>{this.logger.error("error loading jwks",f),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",f)),M(f)}):E(null)})}validateDiscoveryDocument(E){let M;return this.skipIssuerCheck||E.issuer===this.issuer?(M=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),M.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),M.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.token_endpoint),M.length>0&&this.logger.error("error validating token_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),M.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),M.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.jwks_uri),M.length>0?(this.logger.error("error validating jwks_uri in discovery document",M),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,M,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,M,f).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,M)=>{const f=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:f,observe:"response",responseType:"text"}).subscribe(L=>{if(this.debug("userinfo received",JSON.stringify(L)),L.headers.get("content-type").startsWith("application/json")){let F=JSON.parse(L.body);const B=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!B.sub||F.sub!==B.sub))return void M("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");F=Object.assign({},B,F),this._storage.setItem("id_token_claims_obj",JSON.stringify(F)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:F})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(L.body))},L=>{this.logger.error("error loading user info",L),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",L)),M(L)})})}fetchTokenUsingPasswordFlow(E,M,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:M},f)}fetchTokenUsingGrant(E,M,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let L=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);f=f.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(L=L.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(L=L.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))L=L.set(F,this.customQueryParams[F]);for(const F of Object.keys(M))L=L.set(F,M[F]);return f=f.set("Content-Type","application/x-www-form-urlencoded"),new Promise((F,B)=>{this.http.post(this.tokenEndpoint,L,{headers:f}).subscribe(q=>{this.debug("tokenResponse",q),this.storeAccessTokenResponse(q.access_token,q.refresh_token,q.expires_in||this.fallbackAccessTokenExpirationTimeInSec,q.scope,this.extractRecognizedCustomParameters(q)),this.oidc&&q.id_token&&this.processIdToken(q.id_token,q.access_token).then(Q=>{this.storeIdToken(Q),F(q)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),F(q)},q=>{this.logger.error("Error performing ${grantType} flow",q),this.eventsSubject.next(new OAuthErrorEvent("token_error",q)),B(q)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,M)=>{let f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),L=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);L=L.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(f=f.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(f=f.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))f=f.set(F,this.customQueryParams[F]);this.http.post(this.tokenEndpoint,f,{headers:L}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(F=>F.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(F.id_token,F.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(B=>this.storeIdToken(B)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(B=>F)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(F))).subscribe(F=>{this.debug("refresh tokenResponse",F),this.storeAccessTokenResponse(F.access_token,F.refresh_token,F.expires_in||this.fallbackAccessTokenExpirationTimeInSec,F.scope,this.extractRecognizedCustomParameters(F)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(F)},F=>{this.logger.error("Error refreshing token",F),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",F)),M(F)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const M=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:M,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(f=>this.debug("tryLogin during silent refresh failed",f))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},M=!0){const f=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const L=this.document.getElementById(this.silentRefreshIFrameName);L&&this.document.body.removeChild(L),this.silentRefreshSubject=f.sub;const F=this.document.createElement("iframe");F.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,M,E).then(W=>{F.setAttribute("src",W),this.silentRefreshShowIFrame||(F.style.display="none"),this.document.body.appendChild(F)});const q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>W instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>"token_received"===W.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),ee=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([q,Q,ee]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(W=>{if(W instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===W.type||(W=new OAuthErrorEvent("silent_refresh_error",W)),this.eventsSubject.next(W),W;return"token_received"===W.type&&(W=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(W)),W})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(M=>new Promise((f,L)=>{let q,B=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(B=E.windowRef,B.location.href=M):B=window.open(M,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const Q=re=>{this.tryLogin({customHashFragment:re,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{W(),f(!0)},oe=>{W(),L(oe)})};B?q=window.setInterval(()=>{(!B||B.closed)&&(W(),L(new OAuthErrorEvent("popup_closed",{})))},500):L(new OAuthErrorEvent("popup_blocked",{}));const W=()=>{window.clearInterval(q),window.removeEventListener("storage",G),window.removeEventListener("message",Y),null!==B&&B.close(),B=null},Y=re=>{const oe=this.processMessageEventMessage(re);oe&&null!==oe?(window.removeEventListener("storage",G),Q(oe)):console.log("false event firing")},G=re=>{"auth_hash"===re.key&&(window.removeEventListener("message",Y),Q(re.newValue))};window.addEventListener("message",Y),window.addEventListener("storage",G)}))}calculatePopupFeatures(E){const M=E.height||470,f=E.width||500,L=window.screenLeft+(window.outerWidth-f)/2;return`location=no,toolbar=no,width=${f},height=${M},top=${window.screenTop+(window.outerHeight-M)/2},left=${L}`}processMessageEventMessage(E){let M="#";if(this.silentRefreshMessagePrefix&&(M+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const f=E.data;return f.startsWith(M)?"#"+f.substr(M.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const M=E.origin.toLowerCase(),f=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),f.startsWith(M)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",M,"expected",f,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const M=this.document.createElement("iframe");M.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),M.setAttribute("src",this.sessionCheckIFrameUrl),M.style.display="none",this.document.body.appendChild(M),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const M=this.getSessionState();M||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+M,this.issuer)}createLoginUrl(E="",M="",f="",L=!1,F={}){var B=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const q=B;let Q;Q=f||B.redirectUri;const ee=yield B.createAndSaveNonce();if(E=E?ee+B.config.nonceStateSeparator+encodeURIComponent(E):ee,!B.requestAccessToken&&!B.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");B.responseType=B.config.responseType?B.config.responseType:B.oidc&&B.requestAccessToken?"id_token token":B.oidc&&!B.requestAccessToken?"id_token":"token";const W=q.loginUrl.indexOf("?")>-1?"&":"?";let Y=q.scope;B.oidc&&!Y.match(/(^|\s)openid($|\s)/)&&(Y="openid "+Y);let G=q.loginUrl+W+"response_type="+encodeURIComponent(q.responseType)+"&client_id="+encodeURIComponent(q.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(Q)+"&scope="+encodeURIComponent(Y);if(B.responseType.includes("code")&&!B.disablePKCE){const[re,oe]=yield B.createChallangeVerifierPairForPKCE();B.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",oe):B._storage.setItem("PKCE_verifier",oe),G+="&code_challenge="+re,G+="&code_challenge_method=S256"}M&&(G+="&login_hint="+encodeURIComponent(M)),q.resource&&(G+="&resource="+encodeURIComponent(q.resource)),q.oidc&&(G+="&nonce="+encodeURIComponent(ee)),L&&(G+="&prompt=none");for(const re of Object.keys(F))G+="&"+encodeURIComponent(re)+"="+encodeURIComponent(F[re]);if(B.customQueryParams)for(const re of Object.getOwnPropertyNames(B.customQueryParams))G+="&"+re+"="+encodeURIComponent(B.customQueryParams[re]);return G})()}initImplicitFlowInternal(E="",M=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let f={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(f=M),this.createLoginUrl(E,L,null,!1,f).then(this.config.openUri).catch(F=>{console.error("Error in initImplicitFlow",F),this.inImplicitFlow=!1})}initImplicitFlow(E="",M=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,M):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(f=>"discovery_document_loaded"===f.type)).subscribe(f=>this.initImplicitFlowInternal(E,M))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const M=this;if(E.onTokenReceived){const f={idClaims:M.getIdentityClaims(),idToken:M.getIdToken(),accessToken:M.getAccessToken(),state:M.state};E.onTokenReceived(f)}}storeAccessTokenResponse(E,M,f,L,F){if(this._storage.setItem("access_token",E),L&&!Array.isArray(L)?this._storage.setItem("granted_scopes",JSON.stringify(L.split(" "))):L&&Array.isArray(L)&&this._storage.setItem("granted_scopes",JSON.stringify(L)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),f){const B=1e3*f,Q=this.dateTimeService.new().getTime()+B;this._storage.setItem("expires_at",""+Q)}M&&this._storage.setItem("refresh_token",M),F&&F.forEach((B,q)=>{this._storage.setItem(q,B)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(M=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){var M=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const f=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,L=M.getCodePartsFromUrl(f),F=L.code,B=L.state,q=L.session_state;if(!E.preventClearHashAfterLogin){const W=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,W)}let[Q,ee]=M.parseState(B);if(M.state=ee,L.error){M.debug("error trying to login"),M.handleLoginError(E,L);const W=new OAuthErrorEvent("code_error",{},L);return M.eventsSubject.next(W),Promise.reject(W)}if(!E.disableNonceCheck){if(!Q)return M.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!M.validateNonce(Q)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return M.eventsSubject.next(Y),Promise.reject(Y)}return M.storeSessionState(q),F&&(yield M.getTokenFromCode(F,E),M.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,M){let f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",M.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let L;L=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),L?f=f.set("code_verifier",L):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(f,M)}fetchAndProcessToken(E,M){M=M||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let f=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const L=btoa(`${this.clientId}:${this.dummyClientSecret}`);f=f.set("Authorization","Basic "+L)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((L,F)=>{if(this.customQueryParams)for(let B of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(B,this.customQueryParams[B]);this.http.post(this.tokenEndpoint,E,{headers:f}).subscribe(B=>{this.debug("refresh tokenResponse",B),this.storeAccessTokenResponse(B.access_token,B.refresh_token,B.expires_in||this.fallbackAccessTokenExpirationTimeInSec,B.scope,this.extractRecognizedCustomParameters(B)),this.oidc&&B.id_token?this.processIdToken(B.id_token,B.access_token,M.disableNonceCheck).then(q=>{this.storeIdToken(q),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(B)}).catch(q=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",q)),console.error("Error validating tokens"),console.error(q),F(q)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(B))},B=>{console.error("Error getting token",B),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",B)),F(B)})})}tryLoginImplicitFlow(E=null){let M;M=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",M);const f=M.state;let[L,F]=this.parseState(f);if(this.state=F,M.error){this.debug("error trying to login"),this.handleLoginError(E,M);const W=new OAuthErrorEvent("token_error",{},M);return this.eventsSubject.next(W),Promise.reject(W)}const B=M.access_token,q=M.id_token,Q=M.session_state,ee=M.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!B||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!f||this.oidc&&!q)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!Q&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(L)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(Y),Promise.reject(Y)}return this.requestAccessToken&&this.storeAccessTokenResponse(B,null,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,ee),this.oidc?this.processIdToken(q,B,E.disableNonceCheck).then(W=>E.validationHandler?E.validationHandler({accessToken:B,idClaims:W.idTokenClaims,idToken:W.idToken,state:f}).then(Y=>W):W).then(W=>(this.storeIdToken(W),this.storeSessionState(Q),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(W=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",W)),this.logger.error("Error validating tokens"),this.logger.error(W),Promise.reject(W))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let M=E,f="";if(E){const L=E.indexOf(this.config.nonceStateSeparator);L>-1&&(M=E.substr(0,L),f=E.substr(L+this.config.nonceStateSeparator.length))}return[M,f]}validateNonce(E){let M;return M=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),M===E||(console.error("Validating access_token failed, wrong state/nonce.",M,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,M){E.onLoginError&&E.onLoginError(M),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,M,f=!1){const L=E.split("."),B=b64DecodeUnicode(this.padBase64(L[0])),q=JSON.parse(B),ee=b64DecodeUnicode(this.padBase64(L[1])),W=JSON.parse(ee);let Y;if(Y=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(W.aud)){if(W.aud.every(he=>he!==this.clientId)){const he="Wrong audience: "+W.aud.join(",");return this.logger.warn(he),Promise.reject(he)}}else if(W.aud!==this.clientId){const he="Wrong audience: "+W.aud;return this.logger.warn(he),Promise.reject(he)}if(!W.sub){const he="No sub claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==W.sub){const he=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${W.sub}`;return this.logger.warn(he),Promise.reject(he)}if(!W.iat){const he="No iat claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(!this.skipIssuerCheck&&W.iss!==this.issuer){const he="Wrong issuer: "+W.iss;return this.logger.warn(he),Promise.reject(he)}if(!f&&W.nonce!==Y){const he="Wrong nonce: "+W.nonce;return this.logger.warn(he),Promise.reject(he)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!W.at_hash){const he="An at_hash is needed!";return this.logger.warn(he),Promise.reject(he)}const G=this.dateTimeService.now(),re=1e3*W.iat,oe=1e3*W.exp,ie=this.getClockSkewInMsec();if(re-ie>=G||oe+ie<=G){const he="Token has expired";return console.error(he),console.error({now:G,issuedAtMSec:re,expiresAtMSec:oe}),Promise.reject(he)}const ae={accessToken:M,idToken:E,jwks:this.jwks,idTokenClaims:W,idTokenHeader:q,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ae).then(he=>({idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:B,idTokenExpiresAt:oe})):this.checkAtHash(ae).then(he=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!he){const fe="Wrong at_hash";return this.logger.warn(fe),Promise.reject(fe)}return this.checkSignature(ae).then(fe=>{const Oe={idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:B,idTokenExpiresAt:oe};return this.disableAtHashCheck?Oe:this.checkAtHash(ae).then(je=>{if(this.requestAccessToken&&!je){const Ae="Wrong at_hash";return this.logger.warn(Ae),Promise.reject(Ae)}return Oe})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),M=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},M=""){let f=!1;"boolean"==typeof E&&(f=E,E={});const L=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(B=>this._storage.removeItem(B)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||f||!L&&!this.postLogoutRedirectUri)return;let F;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)F=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(L)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});L&&(B=B.set("id_token_hint",L));const q=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";q&&(B=B.set("post_logout_redirect_uri",q),M&&(B=B.set("state",M)));for(let Q in E)B=B.set(Q,E[Q]);F=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+B.toString()}this.config.openUri(F)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(M){return E.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",M):E._storage.setItem("nonce",M),M})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const M=this.document.getElementById(this.sessionCheckIFrameName);M&&M.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let f=45,L="";const F=typeof self>"u"?null:self.crypto||self.msCrypto;if(F){let B=new Uint8Array(f);F.getRandomValues(B),B.map||(B.map=Array.prototype.map),B=B.map(q=>M.charCodeAt(q%M.length)),L=String.fromCharCode.apply(null,B)}else for(;0"discovery_document_loaded"===f.type)).subscribe(f=>this.initCodeFlowInternal(E,M))}initCodeFlowInternal(E="",M={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let f={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(f=M),this.createLoginUrl(E,L,null,!1,f).then(this.config.openUri).catch(F=>{console.error("Error in initAuthorizationCodeFlow"),console.error(F)})}createChallangeVerifierPairForPKCE(){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!E.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const M=yield E.createNonce();return[base64UrlEncode(yield E.crypto.calcHash(M,"sha-256")),M]})()}extractRecognizedCustomParameters(E){let M=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(f=>{E[f]&&M.set(f,JSON.stringify(E[f]))}),M}revokeTokenAndLogout(E={},M=!1){let f=this.revocationEndpoint,L=this.getAccessToken(),F=this.getRefreshToken();if(!L)return;let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),q=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const Q=btoa(`${this.clientId}:${this.dummyClientSecret}`);q=q.set("Authorization","Basic "+Q)}if(this.useHttpBasicAuth||(B=B.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(B=B.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const Q of Object.getOwnPropertyNames(this.customQueryParams))B=B.set(Q,this.customQueryParams[Q]);return new Promise((Q,ee)=>{let W,Y;if(L){let G=B.set("token",L).set("token_type_hint","access_token");W=this.http.post(f,G,{headers:q})}else W=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(F){let G=B.set("token",F).set("token_type_hint","refresh_token");Y=this.http.post(f,G,{headers:q})}else Y=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);M&&(W=W.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G))),Y=Y.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([W,Y]).subscribe(G=>{this.logOut(E),Q(G),this.logger.info("Token successfully revoked")},G=>{this.logger.error("Error revoking token",G),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",G)),ee(G)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(z){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(z)}}let DefaultOAuthInterceptor=(()=>{class N{constructor(E,M,f){this.oAuthService=E,this.errorHandler=M,this.moduleConfig=f}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(M=>E.toLowerCase().startsWith(M.toLowerCase()))}intercept(E,M){const f=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(f)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>!!F)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_received"===F.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(F=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(F=>{if(F){const q=E.headers.set("Authorization","Bearer "+F);E=E.clone({headers:q})}return M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(B=>this.errorHandler.handleError(B)))})):M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>this.errorHandler.handleError(F))):M.handle(E)}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class NullValidationHandler{validateSignature(z){return Promise.resolve(null)}validateAtHash(z){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class N{static forRoot(E=null,M=NullValidationHandler){return{ngModule:N,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:M},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:N}),N.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),N})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(N,z,E)=>{"use strict";function M(L,F,B,q,Q,ee,W){try{var Y=L[ee](W),G=Y.value}catch(re){return void B(re)}Y.done?F(G):Promise.resolve(G).then(q,Q)}function f(L){return function(){var F=this,B=arguments;return new Promise(function(q,Q){var ee=L.apply(F,B);function W(G){M(ee,q,Q,W,Y,"next",G)}function Y(G){M(ee,q,Q,W,Y,"throw",G)}W(void 0)})}}E.d(z,{Z:()=>f})},4147:N=>{"use strict";N.exports={i8:"10.4.3"}}},N=>{N(N.s=2540)}]); \ No newline at end of file diff --git a/dist/apps/publications/index.html b/dist/apps/publications/index.html index 361c199a4..9193824a1 100644 --- a/dist/apps/publications/index.html +++ b/dist/apps/publications/index.html @@ -40,5 +40,5 @@ - + diff --git a/dist/apps/publications/main.2efb5ba8f16a550e.js b/dist/apps/publications/main.2efb5ba8f16a550e.js deleted file mode 100644 index c903b9368..000000000 --- a/dist/apps/publications/main.2efb5ba8f16a550e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkpublications=self.webpackChunkpublications||[]).push([[179],{887:(z,W,E)=>{"use strict";var x=E(6895),n=E(4650);class P extends x.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class D extends P{static makeCurrent(){(0,x.HT)(new D)}onAndCancel(s,e,t){return s.addEventListener(e,t,!1),()=>{s.removeEventListener(e,t,!1)}}dispatchEvent(s,e){s.dispatchEvent(e)}remove(s){s.parentNode&&s.parentNode.removeChild(s)}createElement(s,e){return(e=e||this.getDefaultDocument()).createElement(s)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(s){return s.nodeType===Node.ELEMENT_NODE}isShadowRoot(s){return s instanceof DocumentFragment}getGlobalEventTarget(s,e){return"window"===e?window:"document"===e?s:"body"===e?s.body:null}getBaseHref(s){const e=function I(){return H=H||document.querySelector("base"),H?H.getAttribute("href"):null}();return null==e?null:function Y(i){B=B||document.createElement("a"),B.setAttribute("href",i);const s=B.pathname;return"/"===s.charAt(0)?s:`/${s}`}(e)}resetBaseElement(){H=null}getUserAgent(){return window.navigator.userAgent}getCookie(s){return(0,x.Mx)(document.cookie,s)}}let B,H=null;const G=new n.OlP("TRANSITION_ID"),te=[{provide:n.ip1,useFactory:function ee(i,s,e){return()=>{e.get(n.CZH).donePromise.then(()=>{const t=(0,x.q)(),r=s.querySelectorAll(`style[ng-transition="${i}"]`);for(let d=0;d{class i{build(){return new XMLHttpRequest}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const se=new n.OlP("EventManagerPlugins");let re=(()=>{class i{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let d=0;d{class i{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),t.add(r))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Me=(()=>{class i extends ye{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(d=>{const h=this._doc.createElement("style");h.textContent=d,r.push(t.appendChild(h))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Je),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Je))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function Je(i){(0,x.q)().remove(i)}const Ze={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ke=/%COMP%/g;function fe(i,s,e){for(let t=0;t{if("__ngUnwrap__"===s)return i;!1===i(s)&&(s.preventDefault(),s.returnValue=!1)}}let we=(()=>{class i{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ze(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case n.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new Kt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case n.ifc.ShadowDom:return new Qe(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=fe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(re),n.LFG(Me),n.LFG(n.AFp))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class ze{constructor(s){this.eventManager=s,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(s,e){return e?document.createElementNS(Ze[e]||e,s):document.createElement(s)}createComment(s){return document.createComment(s)}createText(s){return document.createTextNode(s)}appendChild(s,e){(Bt(s)?s.content:s).appendChild(e)}insertBefore(s,e,t){s&&(Bt(s)?s.content:s).insertBefore(e,t)}removeChild(s,e){s&&s.removeChild(e)}selectRootElement(s,e){let t="string"==typeof s?document.querySelector(s):s;if(!t)throw new Error(`The selector "${s}" did not match any elements`);return e||(t.textContent=""),t}parentNode(s){return s.parentNode}nextSibling(s){return s.nextSibling}setAttribute(s,e,t,r){if(r){e=r+":"+e;const d=Ze[r];d?s.setAttributeNS(d,e,t):s.setAttribute(e,t)}else s.setAttribute(e,t)}removeAttribute(s,e,t){if(t){const r=Ze[t];r?s.removeAttributeNS(r,e):s.removeAttribute(`${t}:${e}`)}else s.removeAttribute(e)}addClass(s,e){s.classList.add(e)}removeClass(s,e){s.classList.remove(e)}setStyle(s,e,t,r){r&(n.JOm.DashCase|n.JOm.Important)?s.style.setProperty(e,t,r&n.JOm.Important?"important":""):s.style[e]=t}removeStyle(s,e,t){t&n.JOm.DashCase?s.style.removeProperty(e):s.style[e]=""}setProperty(s,e,t){s[e]=t}setValue(s,e){s.nodeValue=e}listen(s,e,t){return"string"==typeof s?this.eventManager.addGlobalEventListener(s,e,ge(t)):this.eventManager.addEventListener(s,e,ge(t))}}function Bt(i){return"TEMPLATE"===i.tagName&&void 0!==i.content}class Kt extends ze{constructor(s,e,t,r){super(s),this.component=t;const d=fe(r+"-"+t.id,t.styles,[]);e.addStyles(d),this.contentAttr=function Ne(i){return"_ngcontent-%COMP%".replace(ke,i)}(r+"-"+t.id),this.hostAttr=function je(i){return"_nghost-%COMP%".replace(ke,i)}(r+"-"+t.id)}applyToHost(s){super.setAttribute(s,this.hostAttr,"")}createElement(s,e){const t=super.createElement(s,e);return super.setAttribute(t,this.contentAttr,""),t}}class Qe extends ze{constructor(s,e,t,r){super(s),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const d=fe(r.id,r.styles,[]);for(let h=0;h{class i extends _e{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Mi=["alt","control","meta","shift"],Xt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Cr={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},En={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey};let aa=(()=>{class i extends _e{constructor(e){super(e)}supports(e){return null!=i.parseEventName(e)}addEventListener(e,t,r){const d=i.parseEventName(t),h=i.eventCallback(d.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,x.q)().onAndCancel(e,d.domEventName,h))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const d=i._normalizeKey(t.pop());let h="";if(Mi.forEach(o=>{const a=t.indexOf(o);a>-1&&(t.splice(a,1),h+=o+".")}),h+=d,0!=t.length||0===d.length)return null;const c={};return c.domEventName=r,c.fullKey=h,c}static getEventFullKey(e){let t="",r=function Zl(i){let s=i.key;if(null==s){if(s=i.keyIdentifier,null==s)return"Unidentified";s.startsWith("U+")&&(s=String.fromCharCode(parseInt(s.substring(2),16)),3===i.location&&Cr.hasOwnProperty(s)&&(s=Cr[s]))}return Xt[s]||s}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Mi.forEach(d=>{d!=r&&(0,En[d])(e)&&(t+=d+".")}),t+=r,t}static eventCallback(e,t,r){return d=>{i.getEventFullKey(d)===e&&r.runGuarded(()=>t(d))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const pt=(0,n.eFA)(n._c5,"browser",[{provide:n.Lbi,useValue:x.bD},{provide:n.g9A,useValue:function Br(){D.makeCurrent()},multi:!0},{provide:x.K0,useFactory:function ds(){return(0,n.RDi)(document),document},deps:[]}]),ei=new n.OlP(""),Ar=[{provide:n.rWj,useClass:class ae{addToWindow(s){n.dqk.getAngularTestability=(t,r=!0)=>{const d=s.findTestabilityInTree(t,r);if(null==d)throw new Error("Could not find testability for element.");return d},n.dqk.getAllAngularTestabilities=()=>s.getAllTestabilities(),n.dqk.getAllAngularRootElements=()=>s.getAllRootElements(),n.dqk.frameworkStabilizers||(n.dqk.frameworkStabilizers=[]),n.dqk.frameworkStabilizers.push(t=>{const r=n.dqk.getAllAngularTestabilities();let d=r.length,h=!1;const c=function(o){h=h||o,d--,0==d&&t(h)};r.forEach(function(o){o.whenStable(c)})})}findTestabilityInTree(s,e,t){return null==e?null:s.getTestability(e)??(t?(0,x.q)().isShadowRoot(e)?this.findTestabilityInTree(s,e.host,!0):this.findTestabilityInTree(s,e.parentElement,!0):null)}},deps:[]},{provide:n.lri,useClass:n.dDg,deps:[n.R0b,n.eoX,n.rWj]},{provide:n.dDg,useClass:n.dDg,deps:[n.R0b,n.eoX,n.rWj]}],Wt=[{provide:n.zSh,useValue:"root"},{provide:n.qLn,useFactory:function Vr(){return new n.qLn},deps:[]},{provide:se,useClass:ci,multi:!0,deps:[x.K0,n.R0b,n.Lbi]},{provide:se,useClass:aa,multi:!0,deps:[x.K0]},{provide:we,useClass:we,deps:[re,Me,n.AFp]},{provide:n.FYo,useExisting:we},{provide:ye,useExisting:Me},{provide:Me,useClass:Me,deps:[x.K0]},{provide:re,useClass:re,deps:[se,n.R0b]},{provide:x.JF,useClass:ue,deps:[]},[]];let di=(()=>{class i{constructor(e){}static withServerTransition(e){return{ngModule:i,providers:[{provide:n.AFp,useValue:e.appId},{provide:G,useExisting:n.AFp},te]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(ei,12))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[...Wt,...Ar],imports:[x.ez,n.hGG]}),i})(),oe=(()=>{class i{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new e:function Re(){return new oe((0,n.LFG)(x.K0))}(),t},providedIn:"root"}),i})();typeof window<"u"&&window;let On=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new(e||i):n.LFG(st),t},providedIn:"root"}),i})(),st=(()=>{class i extends On{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case n.q3G.NONE:return t;case n.q3G.HTML:return(0,n.qzn)(t,"HTML")?(0,n.z3N)(t):(0,n.EiD)(this._doc,String(t)).toString();case n.q3G.STYLE:return(0,n.qzn)(t,"Style")?(0,n.z3N)(t):t;case n.q3G.SCRIPT:if((0,n.qzn)(t,"Script"))return(0,n.z3N)(t);throw new Error("unsafe value used in a script context");case n.q3G.URL:return(0,n.qzn)(t,"URL")?(0,n.z3N)(t):(0,n.mCW)(String(t));case n.q3G.RESOURCE_URL:if((0,n.qzn)(t,"ResourceURL"))return(0,n.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,n.JVY)(e)}bypassSecurityTrustStyle(e){return(0,n.L6k)(e)}bypassSecurityTrustScript(e){return(0,n.eBb)(e)}bypassSecurityTrustUrl(e){return(0,n.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,n.pB0)(e)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new e:function We(i){return new st(i.get(x.K0))}(n.LFG(n.zs3)),t},providedIn:"root"}),i})();var xe=E(9646),ln=E(9751),sn=E(576);function Vt(i){return!!i&&(i instanceof ln.y||(0,sn.m)(i.lift)&&(0,sn.m)(i.subscribe))}var Ft=E(4742),Qn=E(8421),en=E(3269),nt=E(5403),Si=E(3268),ji=E(1810);function oa(...i){const s=(0,en.jO)(i),{args:e,keys:t}=(0,Ft.D)(i),r=new ln.y(d=>{const{length:h}=e;if(!h)return void d.complete();const c=new Array(h);let o=h,a=h;for(let l=0;l{u||(u=!0,a--),c[l]=p},()=>o--,void 0,()=>{(!o||!u)&&(a||d.next(t?(0,ji.n)(t,c):c),d.complete())}))}});return s?r.pipe((0,Si.Z)(s)):r}var Ui=E(7272);function Cn(i){return new ln.y(s=>{(0,Qn.Xf)(i()).subscribe(s)})}var rt=E(5698),Se=E(7579),Ei=E(6063);class Nr extends Se.x{constructor(s=1/0,e=1/0,t=Ei.l){super(),this._bufferSize=s,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,s),this._windowTime=Math.max(1,e)}next(s){const{isStopped:e,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:d,_windowTime:h}=this;e||(t.push(s),!r&&t.push(d.now()+h)),this._trimBuffer(),super.next(s)}_subscribe(s){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(s),{_infiniteTimeWindow:t,_buffer:r}=this,d=r.slice();for(let h=0;hnew Nr(t,s,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}var _t=E(4004),Tr=E(4351),bn=E(3900);class Fr{}let la=(()=>{class i extends Fr{getTranslation(e){return(0,xe.of)({})}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class ca{}let dr=(()=>{class i{handle(e){return e.key}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function Bn(i,s){if(i===s)return!0;if(null===i||null===s)return!1;if(i!=i&&s!=s)return!0;let r,d,h,e=typeof i;if(e==typeof s&&"object"==e){if(!Array.isArray(i)){if(Array.isArray(s))return!1;for(d in h=Object.create(null),i){if(!Bn(i[d],s[d]))return!1;h[d]=!0}for(d in s)if(!(d in h)&&typeof s[d]<"u")return!1;return!0}if(!Array.isArray(s))return!1;if((r=i.length)==s.length){for(d=0;d{ni(s[t])?t in i?e[t]=Di(i[t],s[t]):Object.assign(e,{[t]:s[t]}):Object.assign(e,{[t]:s[t]})}),e}class Ki{}let qr=(()=>{class i extends Ki{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!Yr(e)||!Yr(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(r,d)=>{let h=this.getValue(t,d);return Yr(h)?h:r}):e}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class ur{}let Hi=(()=>{class i extends ur{compile(e,t){return e}compileTranslations(e,t){return e}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class da{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new n.vpe,this.onLangChange=new n.vpe,this.onDefaultLangChange=new n.vpe}}const zs=new n.OlP("USE_STORE"),hs=new n.OlP("USE_DEFAULT_LANG"),ua=new n.OlP("DEFAULT_LANGUAGE"),Xi=new n.OlP("USE_EXTEND");let mn=(()=>{class i{constructor(e,t,r,d,h,c=!0,o=!1,a=!1,l){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=d,this.missingTranslationHandler=h,this.useDefaultLang=c,this.isolate=o,this.extend=a,this.pending=!1,this._onTranslationChange=new n.vpe,this._onLangChange=new n.vpe,this._onDefaultLangChange=new n.vpe,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,rt.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,xe.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,rt.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,xe.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(tn(1),(0,rt.q)(1));return this.loadingTranslations=t.pipe((0,_t.U)(r=>this.compiler.compileTranslations(r,e)),tn(1),(0,rt.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Di(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let d;if(t instanceof Array){let h={},c=!1;for(let o of t)h[o]=this.getParsedResult(e,o,r),Vt(h[o])&&(c=!0);return c?oa(t.map(a=>Vt(h[a])?h[a]:(0,xe.of)(h[a]))).pipe((0,_t.U)(a=>{let l={};return a.forEach((u,p)=>{l[t[p]]=u}),l})):h}if(e&&(d=this.parser.interpolate(this.parser.getValue(e,t),r)),typeof d>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(d=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),typeof d>"u"){let h={key:t,translateService:this};typeof r<"u"&&(h.interpolateParams=r),d=this.missingTranslationHandler.handle(h)}return typeof d<"u"?d:t}get(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Tr.b)(r=>Vt(r=this.getParsedResult(r,e,t))?r:(0,xe.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return Vt(r)?r:(0,xe.of)(r)}}getStreamOnTranslationChange(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ui.z)(Cn(()=>this.get(e,t)),this.onTranslationChange.pipe((0,bn.w)(r=>{const d=this.getParsedResult(r.translations,e,t);return"function"==typeof d.subscribe?d:(0,xe.of)(d)})))}stream(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ui.z)(Cn(()=>this.get(e,t)),this.onLangChange.pipe((0,bn.w)(r=>{const d=this.getParsedResult(r.translations,e,t);return Vt(d)?d:(0,xe.of)(d)})))}instant(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(Vt(r)){if(e instanceof Array){let d={};return e.forEach((h,c)=>{d[e[c]]=e[c]}),d}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(da),n.LFG(Fr),n.LFG(ur),n.LFG(Ki),n.LFG(ca),n.LFG(hs),n.LFG(zs),n.LFG(Xi),n.LFG(ua))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),it=(()=>{class i{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let d=h=>{this.value=void 0!==h?h:e,this.lastKey=e,this._ref.markForCheck()};if(r){let h=this.translate.getParsedResult(r,e,t);Vt(h.subscribe)?h.subscribe(d):d(h)}this.translate.get(e,t).subscribe(d)}transform(e,...t){if(!e||!e.length)return e;if(Bn(e,this.lastKey)&&Bn(t,this.lastParams))return this.value;let r;if(Yr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let d=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(d)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(d=>{this.lastKey&&d.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,d.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(d=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,d.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(mn,16),n.Y36(n.sBO,16))},i.\u0275pipe=n.Yjl({name:"translate",type:i,pure:!1}),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Gs=(()=>{class i{static forRoot(e={}){return{ngModule:i,providers:[e.loader||{provide:Fr,useClass:la},e.compiler||{provide:ur,useClass:Hi},e.parser||{provide:Ki,useClass:qr},e.missingTranslationHandler||{provide:ca,useClass:dr},da,{provide:zs,useValue:e.isolate},{provide:hs,useValue:e.useDefaultLang},{provide:Xi,useValue:e.extend},{provide:ua,useValue:e.defaultLanguage},mn]}}static forChild(e={}){return{ngModule:i,providers:[e.loader||{provide:Fr,useClass:la},e.compiler||{provide:ur,useClass:Hi},e.parser||{provide:Ki,useClass:qr},e.missingTranslationHandler||{provide:ca,useClass:dr},{provide:zs,useValue:e.isolate},{provide:hs,useValue:e.useDefaultLang},{provide:Xi,useValue:e.extend},{provide:ua,useValue:e.defaultLanguage},mn]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),qu=(()=>{class i extends mn{instant(e,t){return String(super.instant(e,t))}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var v=E(529);class Vn{encodeKey(s){return encodeURIComponent(s)}encodeValue(s){return encodeURIComponent(s)}decodeKey(s){return decodeURIComponent(s)}decodeValue(s){return decodeURIComponent(s)}}const Dn=new n.OlP("basePath");class vt{constructor(s={}){this.apiKeys=s.apiKeys,this.username=s.username,this.password=s.password,this.accessToken=s.accessToken,this.basePath=s.basePath,this.withCredentials=s.withCredentials,this.encoder=s.encoder,this.credentials=s.credentials?s.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(s){if(0===s.length)return;const e=s.find(t=>this.isJsonMime(t));return void 0===e?s[0]:e}selectHeaderAccept(s){if(0===s.length)return;const e=s.find(t=>this.isJsonMime(t));return void 0===e?s[0]:e}isJsonMime(s){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==s&&(e.test(s)||"application/json-patch+json"===s.toLowerCase())}lookupCredential(s){const e=this.credentials[s];return"function"==typeof e?e():e}}let Ql=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}convertAttributeToNonunique(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}convertAttributeToUnique(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}createAttributeDefinition(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteAttributeDefinition(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteAttributeDefinitions(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attributes[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllAttributeDefinitions(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getAttribute(e,t,r,d,h,c,o,a,l,u,p,m=!1,g="body",f=!1,y){let j=new v.LE({encoder:this.encoder});null!=e&&(j=this.addToHttpParams(j,e,"attributeName")),null!=t&&(j=this.addToHttpParams(j,t,"attributeId")),null!=r&&(j=this.addToHttpParams(j,r,"facility")),null!=d&&(j=this.addToHttpParams(j,d,"user")),null!=h&&(j=this.addToHttpParams(j,h,"vo")),null!=c&&(j=this.addToHttpParams(j,c,"resource")),null!=o&&(j=this.addToHttpParams(j,o,"member")),null!=a&&(j=this.addToHttpParams(j,a,"group")),null!=l&&(j=this.addToHttpParams(j,l,"host")),null!=u&&(j=this.addToHttpParams(j,u,"userExtSource")),null!=p&&(j=this.addToHttpParams(j,p,"key"));let Be,le=this.defaultHeaders;Be=this.configuration.lookupCredential("BasicAuth"),Be&&(le=le.set("Authorization","Basic "+Be)),Be=this.configuration.lookupCredential("BearerAuth"),Be&&(le=le.set("Authorization","Bearer "+Be));let Mt=y&&y.httpHeaderAccept;void 0===Mt&&(Mt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Mt&&(le=le.set("Accept",Mt));let xi=y&&y.context;void 0===xi&&(xi=new v.qT);let Xn="json";Mt&&(Xn=Mt.startsWith("text")?"text":this.configuration.isJsonMime(Mt)?"json":"blob");let pi=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(m){let Or=new URL(pi),ls=Or.pathname.split("/");ls[1]="non",Or.pathname=ls.join("/"),pi=Or.toString()}return this.httpClient.get(pi,{context:xi,params:j,responseType:Xn,withCredentials:this.configuration.withCredentials,headers:le,observe:g,reportProgress:f})}getAttributeDefinitionById(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeDefinitionByName(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeDefinitionsByNamespace(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeModulesDependenciesForAttributeGraphText(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"format")),null!=t&&(o=this.addToHttpParams(o,t,"attrName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getAttributeModulesDependenciesGraphText(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributePolicyCollections(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeRights(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeRules(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributesDefinitionWithRights(e,t,r,d,h,c,o,a,l=!1,u="body",p=!1,m){let g=new v.LE({encoder:this.encoder});null!=e&&(g=this.addToHttpParams(g,e,"member")),null!=t&&(g=this.addToHttpParams(g,t,"user")),null!=r&&(g=this.addToHttpParams(g,r,"vo")),null!=d&&(g=this.addToHttpParams(g,d,"group")),null!=h&&(g=this.addToHttpParams(g,h,"resource")),null!=c&&(g=this.addToHttpParams(g,c,"facility")),null!=o&&(g=this.addToHttpParams(g,o,"host")),null!=a&&(g=this.addToHttpParams(g,a,"userExtSource"));let y,f=this.defaultHeaders;y=this.configuration.lookupCredential("BasicAuth"),y&&(f=f.set("Authorization","Basic "+y)),y=this.configuration.lookupCredential("BearerAuth"),y&&(f=f.set("Authorization","Bearer "+y));let j=m&&m.httpHeaderAccept;void 0===j&&(j=this.configuration.selectHeaderAccept(["application/json"])),void 0!==j&&(f=f.set("Accept",j));let le=m&&m.context;void 0===le&&(le=new v.qT);let Be="json";j&&(Be=j.startsWith("text")?"text":this.configuration.isJsonMime(j)?"json":"blob");let Mt=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(l){let xi=new URL(Mt),Xn=xi.pathname.split("/");Xn[1]="non",xi.pathname=Xn.join("/"),Mt=xi.toString()}return this.httpClient.get(Mt,{context:le,params:g,responseType:Be,withCredentials:this.configuration.withCredentials,headers:f,observe:u,reportProgress:p})}getEntitylessAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"key")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getEntitylessAttributesByKey(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getEntitylessAttributesByName(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getEntitylessAttributesWithKeys(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attrName")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"keys[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getEntitylessKeys(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFacilityAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getFacilityAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getFacilityAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFacilityAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getFacilityResourceUserMemberAttributes(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),null!=r&&(l=this.addToHttpParams(l,r,"user")),null!=d&&(l=this.addToHttpParams(l,d,"member"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getFacilityUserAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupResourceAttributeById(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getGroupResourceAttributeByName(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getGroupResourceAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getHostAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getHostAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getHostAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getHostAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getIdpAttributeDefinitions(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getLogins(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberAndUserAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"workWithUserAttributes"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getMemberAndUserAttributesByNames(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),t&&t.forEach(y=>{a=this.addToHttpParams(a,y,"attrNames[]")}),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getMemberAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getMemberAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getMemberGroupAndUserAttributesByNames(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(j=>{l=this.addToHttpParams(l,j,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getMemberGroupAttributeById(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberGroupAttributeByName(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberGroupAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getMemberGroupAttributesByNames(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),r&&r.forEach(y=>{a=this.addToHttpParams(a,y,"attrNames[]")});let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),r&&r.forEach(j=>{l=this.addToHttpParams(l,j,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getMemberResourceAttributeById(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberResourceAttributeByName(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberResourceAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesDefinition(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesFacility(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesFacilityService(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesFacilityServices(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let o=new v.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")}),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesGroupResourceService(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"service")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"group"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getRequiredAttributesHostService(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"host"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesMember(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"workWithUserAttributes"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesMemberGroup(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,r,d,h,c=!1,o="body",a=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let u=new v.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"service")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"group")),null!=d&&(u=this.addToHttpParams(u,d,"member")),null!=h&&(u=this.addToHttpParams(u,h,"workWithUserAttributes"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new v.qT);let y="json";g&&(y=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let j=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(c){let le=new URL(j),Be=le.pathname.split("/");Be[1]="non",le.pathname=Be.join("/"),j=le.toString()}return this.httpClient.get(j,{context:f,params:u,responseType:y,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:a})}getRequiredAttributesMemberGroupService(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service")),null!=t&&(l=this.addToHttpParams(l,t,"group")),null!=r&&(l=this.addToHttpParams(l,r,"member")),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getRequiredAttributesMemberResource(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),null!=r&&(l=this.addToHttpParams(l,r,"member")),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getRequiredAttributesResource(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesResourceService(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesResourceServices(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let o=new v.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")}),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesUserFacility(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesVoService(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getResourceAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getResourceAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getResourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourceAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getResourceGroupAndGroupAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==r)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"resource")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"workWithGroupAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==d)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(j=>{l=this.addToHttpParams(l,j,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithGroupAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getResourceGroupAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getResourceGroupMemberAttributesByNames(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource")),null!=t&&(l=this.addToHttpParams(l,t,"group")),null!=r&&(l=this.addToHttpParams(l,r,"member")),d&&d.forEach(j=>{l=this.addToHttpParams(l,j,"attrNames[]")});let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getUserAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSourceAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSourceAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserFacilityAttributeById(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"facility")),null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getUserFacilityAttributeByName(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"facility")),null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getUserFacilityAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getVoAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getVoAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getVoAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeAttributesForFacilityResourceGroupUserMember(e,t,r,d,h,c,o=!1,a="body",l=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==h)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let p=new v.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"facility")),null!=t&&(p=this.addToHttpParams(p,t,"resource")),null!=r&&(p=this.addToHttpParams(p,r,"group")),null!=d&&(p=this.addToHttpParams(p,d,"user")),null!=h&&(p=this.addToHttpParams(p,h,"member")),c&&c.forEach(Be=>{p=this.addToHttpParams(p,Be,"attributes[]")});let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=u&&u.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let y=u&&u.context;void 0===y&&(y=new v.qT);let j="json";f&&(j=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let le=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(o){let Be=new URL(le),Mt=Be.pathname.split("/");Mt[1]="non",Be.pathname=Mt.join("/"),le=Be.toString()}return this.httpClient.post(le,null,{context:y,params:p,responseType:j,withCredentials:this.configuration.withCredentials,headers:m,observe:a,reportProgress:l})}removeAttributesForFacilityResourceUserMember(e,t,r,d,h,c=!1,o="body",a=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==h)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let u=new v.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"facility")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"user")),null!=d&&(u=this.addToHttpParams(u,d,"member")),h&&h.forEach(le=>{u=this.addToHttpParams(u,le,"attributes[]")});let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new v.qT);let y="json";g&&(y=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let j=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(c){let le=new URL(j),Be=le.pathname.split("/");Be[1]="non",le.pathname=Be.join("/"),j=le.toString()}return this.httpClient.post(j,null,{context:f,params:u,responseType:y,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:a})}removeEntitylessAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"key")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeFacilityAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeFacilityAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeGroupAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeGroupAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeGroupResourceAttribute(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeGroupResourceAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),r&&r.forEach(y=>{a=this.addToHttpParams(a,y,"attributes[]")});let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==d)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),r&&r.forEach(j=>{l=this.addToHttpParams(l,j,"attributes[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithGroupAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.post(y,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}removeHostAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeHostAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeMemberAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeMemberAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeMemberAttributesWorkWithUserAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),t&&t.forEach(y=>{a=this.addToHttpParams(a,y,"attributes[]")}),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeMemberGroupAttribute(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeMemberGroupAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),r&&r.forEach(y=>{a=this.addToHttpParams(a,y,"attributes[]")});let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(j=>{l=this.addToHttpParams(l,j,"attributes[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.post(y,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}removeMemberResourceAttribute(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeMemberResourceAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),r&&r.forEach(y=>{a=this.addToHttpParams(a,y,"attributes[]")});let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeResourceAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeResourceAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUesAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUserAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUserAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUserExtSourceAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUserFacilityAttribute(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"facility")),null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeUserFacilityAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"facility")),r&&r.forEach(y=>{a=this.addToHttpParams(a,y,"attributes[]")});let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeVoAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeVoAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}setAttributeActionCriticality(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==r)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"attributeDefinition")),null!=t&&(a=this.addToHttpParams(a,t,"action")),null!=r&&(a=this.addToHttpParams(a,r,"critical"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}setAttributePolicyCollections(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setAttributeRights(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setEntitylessAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityResourceGroupUserMemberAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityResourceUserMemberAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupResourceAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupResourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setHostAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setHostAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupWithUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAndUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberWithUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceGroupAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceGroupWithGroupAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserExtSourceAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserExtSourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserFacilityAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserFacilityAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setVoAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setVoAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateAttributeDefinition(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Va=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAllPolicies(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getAllRolesManagementRules(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getAuthzAdminGroups(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"role")),null!=t&&(a=this.addToHttpParams(a,t,"complementaryObjectId")),null!=r&&(a=this.addToHttpParams(a,r,"complementaryObjectName"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getAuthzRichAdmins(e,t,r,d,h,c,o=!1,a="body",l=!1,u){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==d)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let p=new v.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"role")),null!=t&&(p=this.addToHttpParams(p,t,"complementaryObjectId")),null!=r&&(p=this.addToHttpParams(p,r,"complementaryObjectName")),d&&d.forEach(Be=>{p=this.addToHttpParams(p,Be,"specificAttributes")}),null!=h&&(p=this.addToHttpParams(p,h,"allUserAttributes")),null!=c&&(p=this.addToHttpParams(p,c,"onlyDirectAdmins"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=u&&u.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let y=u&&u.context;void 0===y&&(y=new v.qT);let j="json";f&&(j=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let le=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(o){let Be=new URL(le),Mt=Be.pathname.split("/");Mt[1]="non",Be.pathname=Mt.join("/"),le=Be.toString()}return this.httpClient.get(le,{context:y,params:p,responseType:j,withCredentials:this.configuration.withCredentials,headers:m,observe:a,reportProgress:l})}getFacilitiesWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupRoleNames(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupRoles(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getLoggedUser(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getMembersWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getPerunPrincipal(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPrincipalRoleNames(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getResourcesWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getSecurityTeamsWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserRoleNames(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserRoles(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}isFacilityAdmin(e,t=!1,r="body",d=!1,h){let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isGroupAdmin(e,t=!1,r="body",d=!1,h){let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isPerunAdmin(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}isVoAdmin(e,t=!1,r="body",d=!1,h){let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}keepAlive(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}loadAuthorizationComponents(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}refreshMfa(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}setRoleForGroup(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleForUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithGroupComplementaryObject(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithGroupComplementaryObjects(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithUserComplementaryObject(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithUserComplementaryObjects(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleForGroup(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleForUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithGroupComplementaryObject(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithGroupComplementaryObjects(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithUserComplementaryObject(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithUserComplementaryObjects(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),wn=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}createAutorship(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateAuthorship was null or undefined when calling createAutorship.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createAuthorship`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createCategoryCat(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateCategory was null or undefined when calling createCategoryCat.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createCategoryNR(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateCategoryNR was null or undefined when calling createCategoryNR.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createPublication(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreatePublication was null or undefined when calling createPublication.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createPublication`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createPublicationSystem(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createThanks(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateThanks was null or undefined when calling createThanks.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createThanks`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteAuthorship(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==t)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"publicationId")),null!=t&&(o=this.addToHttpParams(o,t,"userId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}deleteCategory(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deletePublication(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deletePublicationSystem(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteThanks(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findAllAuthors(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}findAuthorsByPublicationId(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findExternalPublications(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==t)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==r)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==d)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user")),null!=t&&(l=this.addToHttpParams(l,t,"yearSince")),null!=r&&(l=this.addToHttpParams(l,r,"yearTill")),null!=d&&(l=this.addToHttpParams(l,d,"pubSysNamespace"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}findNewAuthors(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findPublicationById(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/cabinetManager/findPublicationById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findPublicationsByFilter(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let a=new v.LE({encoder:this.encoder});null!=t&&(a=this.addToHttpParams(a,t,"yearSince")),null!=r&&(a=this.addToHttpParams(a,r,"yearTill")),null!=e&&(a=this.addToHttpParams(a,e,"userId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}findPublicationsByGUIFilter(e,t,r,d,h,c,o,a,l,u=!1,p="body",m=!1,g){let f=new v.LE({encoder:this.encoder});null!=e&&(f=this.addToHttpParams(f,e,"title")),null!=t&&(f=this.addToHttpParams(f,t,"isbn")),null!=r&&(f=this.addToHttpParams(f,r,"doi")),null!=d&&(f=this.addToHttpParams(f,d,"id")),null!=h&&(f=this.addToHttpParams(f,h,"year")),null!=c&&(f=this.addToHttpParams(f,c,"category")),null!=o&&(f=this.addToHttpParams(f,o,"yearSince")),null!=a&&(f=this.addToHttpParams(f,a,"yearTill")),null!=l&&(f=this.addToHttpParams(f,l,"userId"));let j,y=this.defaultHeaders;j=this.configuration.lookupCredential("BasicAuth"),j&&(y=y.set("Authorization","Basic "+j)),j=this.configuration.lookupCredential("BearerAuth"),j&&(y=y.set("Authorization","Bearer "+j));let le=g&&g.httpHeaderAccept;void 0===le&&(le=this.configuration.selectHeaderAccept(["application/json"])),void 0!==le&&(y=y.set("Accept",le));let Be=g&&g.context;void 0===Be&&(Be=new v.qT);let Mt="json";le&&(Mt=le.startsWith("text")?"text":this.configuration.isJsonMime(le)?"json":"blob");let xi=`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`;if(u){let Xn=new URL(xi),pi=Xn.pathname.split("/");pi[1]="non",Xn.pathname=pi.join("/"),xi=Xn.toString()}return this.httpClient.get(xi,{context:Be,params:f,responseType:Mt,withCredentials:this.configuration.withCredentials,headers:y,observe:p,reportProgress:m})}findSimilarPublications(e,t,r,d=!1,h="body",c=!1,o){let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"title")),null!=t&&(a=this.addToHttpParams(a,t,"doi")),null!=r&&(a=this.addToHttpParams(a,r,"isbn"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getCategories(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/cabinetManager/getCategories`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPublicationSystems(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getRank(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRank.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/cabinetManager/getRank`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichThanksByPublicationId(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}lockPublications(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputLockPublications was null or undefined when calling lockPublications.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/lockPublications`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateCategory(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputUpdateCategory was null or undefined when calling updateCategory.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/updateCategory`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updatePublication(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputUpdatePublication was null or undefined when calling updatePublication.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/updatePublication`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updatePublicationSystem(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Bo=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}createOwner(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/ownersManager/createOwner`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteOwner(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"owner")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}deleteOwners(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter owners was null or undefined when calling deleteOwners.");let o=new v.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"owners[]")}),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwners`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getAllOwners(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/ownersManager/getOwners`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getOwnerById(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/ownersManager/getOwnerById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getOwnerByName(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"owner"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/ownersManager/getOwnerByName`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Vo=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}sentMessageToRTWithMemberQueue(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"memberId")),null!=t&&(l=this.addToHttpParams(l,t,"queue")),null!=r&&(l=this.addToHttpParams(l,r,"subject")),null!=d&&(l=this.addToHttpParams(l,d,"text"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.post(y,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}sentMessageToRTWithQueue(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"queue")),null!=t&&(a=this.addToHttpParams(a,t,"subject")),null!=r&&(a=this.addToHttpParams(a,r,"text"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}sentMessageToRTWithVo(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"subject")),null!=r&&(a=this.addToHttpParams(a,r,"text"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"voId")),null!=t&&(l=this.addToHttpParams(l,t,"queue")),null!=r&&(l=this.addToHttpParams(l,r,"subject")),null!=d&&(l=this.addToHttpParams(l,d,"text"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.post(y,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Uo=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addSpecificUserOwner(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}addUserExtSource(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}anonymizeUser(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}changeNonAuthzPasswordByToken(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}changePasswordForLogin(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}changePasswordForUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}checkPasswordResetRequestByTokenIsValid(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}checkPasswordStrength(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createAlternativePassword(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createServiceUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteAlternativePassword(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==r)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"loginNamespace")),null!=r&&(a=this.addToHttpParams(a,r,"passwordId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}deletePasswordForLogin(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}deletePasswordForUser(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}deleteUser(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}findRichUsers(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findRichUsersWithAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"searchString")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrsNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}findUsers(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}generateAccountForName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"namespace")),null!=t&&(o=this.addToHttpParams(o,t,"name"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getAllRichUsersWithAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichResourcesForUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsForFacilityWhereUserIsActive(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupsForResourceWhereUserIsActive(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupsInVoWhereUserIsAdmin(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupsWhereUserIsAdmin(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getPendingPreferredEmailChanges(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUserExtSources(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUserWithAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersByIds(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersWithAttributesByIds(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersWithoutVoWithAttributes(e,t=!1,r="body",d=!1,h){let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attrsNames[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSpecificUsersByUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSponsorsForMember(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getSponsorsForMemberByVoAndLogin(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),null!=t&&(l=this.addToHttpParams(l,t,"extSourceName")),null!=r&&(l=this.addToHttpParams(l,r,"extLogin")),d&&d.forEach(j=>{l=this.addToHttpParams(l,j,"attrNames[]")});let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getUserByExtSourceNameAndExtLogin(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extLogin")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserById(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extSourceName")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceLogin"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSourceById(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeId")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeName")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSources(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourcesByIds(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsers(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/usersManager/getUsers`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getUsersByIds(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsersBySpecificUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsersPage(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getVosWhereUserIsAdmin(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosWhereUserIsMember(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isLoginAvailable(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"loginNamespace")),null!=t&&(o=this.addToHttpParams(o,t,"login"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}loginExist(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeSpecificUserOwner(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUserExtSource(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"userExtSource")),null!=r&&(a=this.addToHttpParams(a,r,"force"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeUserExtSources(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==t)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),t&&t.forEach(y=>{a=this.addToHttpParams(a,y,"userExtSources")}),null!=r&&(a=this.addToHttpParams(a,r,"force"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}requestPreferredEmailChange(e,t,r,d,h,c,o=!1,a="body",l=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let p=new v.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"user")),null!=t&&(p=this.addToHttpParams(p,t,"email")),null!=r&&(p=this.addToHttpParams(p,r,"lang")),null!=d&&(p=this.addToHttpParams(p,d,"linkPath")),null!=h&&(p=this.addToHttpParams(p,h,"customUrl")),null!=c&&(p=this.addToHttpParams(p,c,"idpFilter"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=u&&u.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let y=u&&u.context;void 0===y&&(y=new v.qT);let j="json";f&&(j=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let le=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(o){let Be=new URL(le),Mt=Be.pathname.split("/");Mt[1]="non",Be.pathname=Mt.join("/"),le=Be.toString()}return this.httpClient.post(le,null,{context:y,params:p,responseType:j,withCredentials:this.configuration.withCredentials,headers:m,observe:a,reportProgress:l})}reservePasswordForLogin(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}reservePasswordForUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}reserveRandomPassword(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}setLogin(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==r)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"login")),null!=r&&(a=this.addToHttpParams(a,r,"namespace"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}updateUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/updateUser`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateUserExtSourceLastAccess(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}validatePasswordForLogin(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}validatePasswordForUser(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}validatePreferredEmailChangeWithToken(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"token")),null!=t&&(o=this.addToHttpParams(o,t,"u"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ui=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAppsConfig(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getGuiConfiguration(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getNewGuiAlert(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPerunRPCVersion(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPerunStatistics(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPerunStatus(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPerunSystemTimeInMillis(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ii=(()=>{class i{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:i,providers:[{provide:vt,useFactory:e}]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(i,12),n.LFG(v.eN,8))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();var tt=(()=>{return(i=tt||(tt={})).PERUNADMIN="PERUNADMIN",i.PERUNOBSERVER="PERUNOBSERVER",i.VOADMIN="VOADMIN",i.GROUPADMIN="GROUPADMIN",i.GROUPOBSERVER="GROUPOBSERVER",i.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",i.SELF="SELF",i.FACILITYADMIN="FACILITYADMIN",i.FACILITIYOBSERVER="FACILITYOBSERVER",i.RESOURCEADMIN="RESOURCEADMIN",i.RESOURCESELFSERVICE="RESOURCESELFSERVICE",i.REGISTRAR="REGISTRAR",i.ENGINE="ENGINE",i.RPC="RPC",i.NOTIFICATIONS="NOTIFICATIONS",i.SERVICEUSER="SERVICEUSER",i.SPONSOR="SPONSOR",i.VOOBSERVER="VOOBSERVER",i.TOPGROUPCREATOR="TOPGROUPCREATOR",i.SECURITYADMIN="SECURITYADMIN",i.CABINETADMIN="CABINETADMIN",i.UNKNOWNROLENAME="UNKNOWNROLENAME",i.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",i.UNKNOWN="UNKNOWN",i.MEMBERSHIP="MEMBERSHIP",tt;var i})();let dn=(()=>{class i{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,r)=>t.roleName>r.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(r=>{this.allRolesManagementRules=r,e()},r=>t(r))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(r=>{r.primaryObject===t&&e.push(r)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let r=e.beanName;r.startsWith("Rich")&&(r=r.substring(4)),this.assignAvailableRoles(t,r);const d=new Map;this.setRolesAuthorization(t,e,d);for(const h of d.values())if(h.readAuth||h.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const d of e){let h=[],c=[],o=[];for(const m of this.allRolesManagementRules)if(m.roleName===d.roleName){h=h.concat(m.privilegedRolesToRead),c=c.concat(m.privilegedRolesToManage);for(const g of Object.keys(m.entitiesToManage))o="User"===g?[g].concat(o):o.concat(g);break}const a=this.fetchAllRelatedObjects([t]),l=this.resolveAuthorization(h,a),u=this.resolveAuthorization(c,a);r.set(d.roleName,{readAuth:l,manageAuth:u,modes:o})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],r=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(d=>{!r.includes(d.roleName)&&this.canManage(d)&&this.ruleHasMode(d,e)&&t.push(d)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(r=>r.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const r of e){let d=!0;for(const h of Object.keys(r)){const c=r[h];if(null===c)this.principalRoles.has(h)||(d=!1);else if(t[c]){for(const o of t[c])if(!this.principalHasRole(h,c,o)){d=!1;break}}else d=!1;if(!d)break}if(d)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const r of e){let d=r.beanName;switch(r.beanName.startsWith("Rich")&&(d=r.beanName.substring(4)),t[d]?t[d].push(r.id):t[d]=[r.id],d){case"Member":t.User?t.User.push(r.userId):t.User=[r.userId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Resource":t.Facility?t.Facility.push(r.facilityId):t.Facility=[r.facilityId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let r=[];for(r.push(e);0!==r.length;){const h=r.shift();if(t.has(h))continue;const c=this.getPerunPolicy(h);if(!c)return[];t.set(h,c),r=r.concat(c.includePolicies)}const d=[];for(const h of t.values())d.push(h);return d}voCustomSort(e){for(let t=0;t{let e=null;i._refCount++;const t=(0,nt.x)(s,void 0,void 0,void 0,()=>{if(!i||i._refCount<=0||0<--i._refCount)return void(e=null);const r=i._connection,d=e;e=null,r&&(!d||r===d)&&r.unsubscribe(),s.unsubscribe()});i.subscribe(t),t.closed||(e=i.connect())})}class nc extends ln.y{constructor(s,e){super(),this.source=s,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,Pi.A)(s)&&(this.lift=s.lift)}_subscribe(s){return this.getSubject().subscribe(s)}getSubject(){const s=this._subject;return(!s||s.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:s}=this;this._subject=this._connection=null,s?.unsubscribe()}connect(){let s=this._connection;if(!s){s=this._connection=new Rt.w0;const e=this.getSubject();s.add(this.source.subscribe((0,nt.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),s.closed&&(this._connection=null,s=Rt.w0.EMPTY)}return s}refCount(){return Qu()(this)}}function Zt(...i){const s=(0,en.yG)(i);return(0,Pi.e)((e,t)=>{(s?(0,Ui.z)(i,e,s):(0,Ui.z)(i,e)).subscribe(t)})}var gi=E(5577),jn=E(590),nn=E(8505),Ri=E(262);function Ks(i,s,e,t,r){return(d,h)=>{let c=e,o=s,a=0;d.subscribe((0,nt.x)(h,l=>{const u=a++;o=c?i(o,l,u):(c=!0,l),t&&h.next(o)},r&&(()=>{c&&h.next(o),h.complete()})))}}function Mr(i,s){return(0,Pi.e)(Ks(i,s,arguments.length>=2,!0))}function hn(i){return i<=0?()=>Pn.E:(0,Pi.e)((s,e)=>{let t=[];s.subscribe((0,nt.x)(e,r=>{t.push(r),i{for(const r of t)e.next(r);e.complete()},void 0,()=>{t=null}))})}var Ku=E(8068),_d=E(6590),bd=E(4671);function ic(i,s){const e=arguments.length>=2;return t=>t.pipe(i?(0,Ce.h)((r,d)=>i(r,d,t)):bd.y,hn(1),e?(0,_d.d)(s):(0,Ku.T)(()=>new xr.K))}function rc(i,s=!1){return(0,Pi.e)((e,t)=>{let r=0;e.subscribe((0,nt.x)(t,d=>{const h=i(d,r++);(h||s)&&t.next(d),!h&&t.complete()}))})}var ac=E(9718);function Sr(i){return(0,Pi.e)((s,e)=>{try{s.subscribe(e)}finally{e.add(i)}})}var sc=E(8189);const It="primary";class wd{constructor(s){this.params=s||{}}has(s){return Object.prototype.hasOwnProperty.call(this.params,s)}get(s){if(this.has(s)){const e=this.params[s];return Array.isArray(e)?e[0]:e}return null}getAll(s){if(this.has(s)){const e=this.params[s];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function zr(i){return new wd(i)}function Fo(i,s,e){const t=e.path.split("/");if(t.length>i.length||"full"===e.pathMatch&&(s.hasChildren()||t.lengtht[d]===r)}return i===s}function Xu(i){return Array.prototype.concat.apply([],i)}function lc(i){return i.length>0?i[i.length-1]:null}function gn(i,s){for(const e in i)i.hasOwnProperty(e)&&s(i[e],e)}function Qt(i){return(0,n.CqO)(i)?i:(0,n.QGY)(i)?(0,lt.D)(Promise.resolve(i)):(0,xe.of)(i)}const eh={exact:function qo(i,s,e){if(!ms(i.segments,s.segments)||!Wo(i.segments,s.segments,e)||i.numberOfChildren!==s.numberOfChildren)return!1;for(const t in s.children)if(!i.children[t]||!qo(i.children[t],s.children[t],e))return!1;return!0},subset:zo},th={exact:function uf(i,s){return Er(i,s)},subset:function dc(i,s){return Object.keys(s).length<=Object.keys(i).length&&Object.keys(s).every(e=>Yo(i[e],s[e]))},ignored:()=>!0};function nh(i,s,e){return eh[e.paths](i.root,s.root,e.matrixParams)&&th[e.queryParams](i.queryParams,s.queryParams)&&!("exact"===e.fragment&&i.fragment!==s.fragment)}function zo(i,s,e){return Go(i,s,s.segments,e)}function Go(i,s,e,t){if(i.segments.length>e.length){const r=i.segments.slice(0,e.length);return!(!ms(r,e)||s.hasChildren()||!Wo(r,e,t))}if(i.segments.length===e.length){if(!ms(i.segments,e)||!Wo(i.segments,e,t))return!1;for(const r in s.children)if(!i.children[r]||!zo(i.children[r],s.children[r],t))return!1;return!0}{const r=e.slice(0,i.segments.length),d=e.slice(i.segments.length);return!!(ms(i.segments,r)&&Wo(i.segments,r,t)&&i.children[It])&&Go(i.children[It],s,d,t)}}function Wo(i,s,e){return s.every((t,r)=>th[e](i[r].parameters,t.parameters))}class fs{constructor(s,e,t){this.root=s,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=zr(this.queryParams)),this._queryParamMap}toString(){return hf.serialize(this)}}class dt{constructor(s,e){this.segments=s,this.children=e,this.parent=null,gn(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return uc(this)}}class ki{constructor(s,e){this.path=s,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=zr(this.parameters)),this._parameterMap}toString(){return gs(this)}}function ms(i,s){return i.length===s.length&&i.every((e,t)=>e.path===s[t].path)}let $o=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(){return new yd},providedIn:"root"}),i})();class yd{parse(s){const e=new Gr(s);return new fs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(s){const e=`/${hc(s.root,!0)}`,t=function to(i){const s=Object.keys(i).map(e=>{const t=i[e];return Array.isArray(t)?t.map(r=>`${Zo(e)}=${Zo(r)}`).join("&"):`${Zo(e)}=${Zo(t)}`}).filter(e=>!!e);return s.length?`?${s.join("&")}`:""}(s.queryParams);return`${e}${t}${"string"==typeof s.fragment?`#${function rh(i){return encodeURI(i)}(s.fragment)}`:""}`}}const hf=new yd;function uc(i){return i.segments.map(s=>gs(s)).join("/")}function hc(i,s){if(!i.hasChildren())return uc(i);if(s){const e=i.children[It]?hc(i.children[It],!1):"",t=[];return gn(i.children,(r,d)=>{d!==It&&t.push(`${d}:${hc(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Xs(i,s){let e=[];return gn(i.children,(t,r)=>{r===It&&(e=e.concat(s(t,r)))}),gn(i.children,(t,r)=>{r!==It&&(e=e.concat(s(t,r)))}),e}(i,(t,r)=>r===It?[hc(i.children[It],!1)]:[`${r}:${hc(t,!1)}`]);return 1===Object.keys(i.children).length&&null!=i.children[It]?`${uc(i)}/${e[0]}`:`${uc(i)}/(${e.join("//")})`}}function Jo(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zo(i){return Jo(i).replace(/%3B/gi,";")}function eo(i){return Jo(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qo(i){return decodeURIComponent(i)}function Cd(i){return Qo(i.replace(/\+/g,"%20"))}function gs(i){return`${eo(i.path)}${function pf(i){return Object.keys(i).map(s=>`;${eo(s)}=${eo(i[s])}`).join("")}(i.parameters)}`}const Ad=/^[^\/()?;=#]+/;function _s(i){const s=i.match(Ad);return s?s[0]:""}const C_=/^[^=?&#]+/,Ko=/^[^&#]+/;class Gr{constructor(s){this.url=s,this.remaining=s}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dt([],{}):new dt([],this.parseChildren())}parseQueryParams(){const s={};if(this.consumeOptional("?"))do{this.parseQueryParam(s)}while(this.consumeOptional("&"));return s}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const s=[];for(this.peekStartsWith("(")||s.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),s.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(s.length>0||Object.keys(e).length>0)&&(t[It]=new dt(s,e)),t}parseSegment(){const s=_s(this.remaining);if(""===s&&this.peekStartsWith(";"))throw new n.vHH(4009,!1);return this.capture(s),new ki(Qo(s),this.parseMatrixParams())}parseMatrixParams(){const s={};for(;this.consumeOptional(";");)this.parseParam(s);return s}parseParam(s){const e=_s(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=_s(this.remaining);r&&(t=r,this.capture(t))}s[Qo(e)]=Qo(t)}parseQueryParam(s){const e=function ah(i){const s=i.match(C_);return s?s[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const h=function ff(i){const s=i.match(Ko);return s?s[0]:""}(this.remaining);h&&(t=h,this.capture(t))}const r=Cd(e),d=Cd(t);if(s.hasOwnProperty(r)){let h=s[r];Array.isArray(h)||(h=[h],s[r]=h),h.push(d)}else s[r]=d}parseParens(s){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=_s(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new n.vHH(4010,!1);let d;t.indexOf(":")>-1?(d=t.slice(0,t.indexOf(":")),this.capture(d),this.capture(":")):s&&(d=It);const h=this.parseChildren();e[d]=1===Object.keys(h).length?h[It]:new dt([],h),this.consumeOptional("//")}return e}peekStartsWith(s){return this.remaining.startsWith(s)}consumeOptional(s){return!!this.peekStartsWith(s)&&(this.remaining=this.remaining.substring(s.length),!0)}capture(s){if(!this.consumeOptional(s))throw new n.vHH(4011,!1)}}function vd(i){return i.segments.length>0?new dt([],{[It]:i}):i}function ja(i){const s={};for(const t of Object.keys(i.children)){const d=ja(i.children[t]);(d.segments.length>0||d.hasChildren())&&(s[t]=d)}return function Td(i){if(1===i.numberOfChildren&&i.children[It]){const s=i.children[It];return new dt(i.segments.concat(s.segments),s.children)}return i}(new dt(i.segments,s))}function fa(i){return i instanceof fs}function Sd(i,s,e,t,r){if(0===e.length)return ga(s.root,s.root,s.root,t,r);const d=function Ed(i){if("string"==typeof i[0]&&1===i.length&&"/"===i[0])return new Hr(!0,0,i);let s=0,e=!1;const t=i.reduce((r,d,h)=>{if("object"==typeof d&&null!=d){if(d.outlets){const c={};return gn(d.outlets,(o,a)=>{c[a]="string"==typeof o?o.split("/"):o}),[...r,{outlets:c}]}if(d.segmentPath)return[...r,d.segmentPath]}return"string"!=typeof d?[...r,d]:0===h?(d.split("/").forEach((c,o)=>{0==o&&"."===c||(0==o&&""===c?e=!0:".."===c?s++:""!=c&&r.push(c))}),r):[...r,d]},[]);return new Hr(e,s,t)}(e);return d.toRoot()?ga(s.root,s.root,new dt([],{}),t,r):function h(o){const a=function ro(i,s,e,t){if(i.isAbsolute)return new Ua(s.root,!0,0);if(-1===t)return new Ua(e,e===s.root,0);return function lh(i,s,e){let t=i,r=s,d=e;for(;d>r;){if(d-=r,t=t.parent,!t)throw new n.vHH(4005,!1);r=t.segments.length}return new Ua(t,!1,r-d)}(e,t+(ma(i.commands[0])?0:1),i.numberOfDoubleDots)}(d,s,i.snapshot?._urlSegment,o),l=a.processChildren?el(a.segmentGroup,a.index,d.commands):Xo(a.segmentGroup,a.index,d.commands);return ga(s.root,a.segmentGroup,l,t,r)}(i.snapshot?._lastPathIndex)}function ma(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function Dr(i){return"object"==typeof i&&null!=i&&i.outlets}function ga(i,s,e,t,r){let h,d={};t&&gn(t,(o,a)=>{d[a]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),h=i===s?e:io(i,s,e);const c=vd(ja(h));return new fs(c,d,r)}function io(i,s,e){const t={};return gn(i.children,(r,d)=>{t[d]=r===s?e:io(r,s,e)}),new dt(i.segments,t)}class Hr{constructor(s,e,t){if(this.isAbsolute=s,this.numberOfDoubleDots=e,this.commands=t,s&&t.length>0&&ma(t[0]))throw new n.vHH(4003,!1);const r=t.find(Dr);if(r&&r!==lc(t))throw new n.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ua{constructor(s,e,t){this.segmentGroup=s,this.processChildren=e,this.index=t}}function Xo(i,s,e){if(i||(i=new dt([],{})),0===i.segments.length&&i.hasChildren())return el(i,s,e);const t=function dh(i,s,e){let t=0,r=s;const d={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return d;const h=i.segments[r],c=e[t];if(Dr(c))break;const o=`${c}`,a=t0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!ws(o,a,h))return d;t+=2}else{if(!ws(o,{},h))return d;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(i,s,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof d&&(d=[d]),null!==d&&(r[h]=Xo(i.children[h],s,d))}),gn(i.children,(d,h)=>{void 0===t[h]&&(r[h]=d)}),new dt(i.segments,r)}}function tl(i,s,e){const t=i.segments.slice(0,s);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(s[t]=tl(new dt([],{}),0,e))}),s}function bs(i){const s={};return gn(i,(e,t)=>s[t]=`${e}`),s}function ws(i,s,e){return i==e.path&&Er(s,e.parameters)}class Wr{constructor(s,e){this.id=s,this.url=e}}class nl extends Wr{constructor(s,e,t="imperative",r=null){super(s,e),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ni extends Wr{constructor(s,e,t){super(s,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Dd extends Wr{constructor(s,e,t,r){super(s,e),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class uh extends Wr{constructor(s,e,t,r){super(s,e),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class pn extends Wr{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class A_ extends Wr{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class v_ extends Wr{constructor(s,e,t,r,d){super(s,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=d,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class T_ extends Wr{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class x_ extends Wr{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class M_{constructor(s){this.route=s,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class hh{constructor(s){this.route=s,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class S_{constructor(s){this.snapshot=s,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class il{constructor(s){this.snapshot=s,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class E_{constructor(s){this.snapshot=s,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ph{constructor(s){this.snapshot=s,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rn{constructor(s,e,t){this.routerEvent=s,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class so{constructor(s){this._root=s}get root(){return this._root.value}parent(s){const e=this.pathFromRoot(s);return e.length>1?e[e.length-2]:null}children(s){const e=fh(s,this._root);return e?e.children.map(t=>t.value):[]}firstChild(s){const e=fh(s,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(s){const e=Pd(s,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==s)}pathFromRoot(s){return Pd(s,this._root).map(e=>e.value)}}function fh(i,s){if(i===s.value)return s;for(const e of s.children){const t=fh(i,e);if(t)return t}return null}function Pd(i,s){if(i===s.value)return[s];for(const e of s.children){const t=Pd(i,e);if(t.length)return t.unshift(s),t}return[]}class zn{constructor(s,e){this.value=s,this.children=e}toString(){return`TreeNode(${this.value})`}}function Fi(i){const s={};return i&&i.children.forEach(e=>s[e.value.outlet]=e),s}class pc extends so{constructor(s,e){super(s),this.snapshot=e,sl(this,s)}toString(){return this.snapshot.toString()}}function rl(i,s){const e=function al(i,s){const h=new Rd([],{},{},"",{},It,s,null,i.root,-1,{});return new Na("",new zn(h,[]))}(i,s),t=new Hn([new ki("",{})]),r=new Hn({}),d=new Hn({}),h=new Hn({}),c=new Hn(""),o=new Li(t,r,h,c,d,It,s,e.root);return o.snapshot=e.root,new pc(new zn(o,[]),e)}class Li{constructor(s,e,t,r,d,h,c,o){this.url=s,this.params=e,this.queryParams=t,this.fragment=r,this.data=d,this.outlet=h,this.component=c,this._futureSnapshot=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,_t.U)(s=>zr(s)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,_t.U)(s=>zr(s)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function mh(i,s="emptyOnly"){const e=i.pathFromRoot;let t=0;if("always"!==s)for(t=e.length-1;t>=1;){const r=e[t],d=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(d.component)break;t--}}return function mf(i){return i.reduce((s,e)=>({params:{...s.params,...e.params},data:{...s.data,...e.data},resolve:{...e.data,...s.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class Rd{constructor(s,e,t,r,d,h,c,o,a,l,u,p){this.url=s,this.params=e,this.queryParams=t,this.fragment=r,this.data=d,this.outlet=h,this.component=c,this.routeConfig=o,this._urlSegment=a,this._lastPathIndex=l,this._correctedLastPathIndex=p??l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=zr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=zr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Na extends so{constructor(s,e){super(e),this.url=s,sl(this,e)}toString(){return Yi(this._root)}}function sl(i,s){s.value._routerState=i,s.children.forEach(e=>sl(i,e))}function Yi(i){const s=i.children.length>0?` { ${i.children.map(Yi).join(", ")} } `:"";return`${i.value}${s}`}function ol(i){if(i.snapshot){const s=i.snapshot,e=i._futureSnapshot;i.snapshot=e,Er(s.queryParams,e.queryParams)||i.queryParams.next(e.queryParams),s.fragment!==e.fragment&&i.fragment.next(e.fragment),Er(s.params,e.params)||i.params.next(e.params),function oc(i,s){if(i.length!==s.length)return!1;for(let e=0;eEr(e.parameters,s[t].parameters))}(i.url,s.url);return e&&!(!i.parent!=!s.parent)&&(!i.parent||Fa(i.parent,s.parent))}function oo(i,s,e){if(e&&i.shouldReuseRoute(s.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=s.value;const r=function gf(i,s,e){return s.children.map(t=>{for(const r of e.children)if(i.shouldReuseRoute(t.value,r.value.snapshot))return oo(i,t,r);return oo(i,t)})}(i,s,e);return new zn(t,r)}{if(i.shouldAttach(s.value)){const d=i.retrieve(s.value);if(null!==d){const h=d.route;return h.value._futureSnapshot=s.value,h.children=s.children.map(c=>oo(i,c)),h}}const t=function gh(i){return new Li(new Hn(i.url),new Hn(i.params),new Hn(i.queryParams),new Hn(i.fragment),new Hn(i.data),i.outlet,i.component,i)}(s.value),r=s.children.map(d=>oo(i,d));return new zn(t,r)}}const Ut="ngNavigationCancelingError";function ll(i,s){const{redirectTo:e,navigationBehaviorOptions:t}=fa(s)?{redirectTo:s,navigationBehaviorOptions:void 0}:s,r=kd(!1,0,s);return r.url=e,r.navigationBehaviorOptions=t,r}function kd(i,s,e){const t=new Error("NavigationCancelingError: "+(i||""));return t[Ut]=!0,t.cancellationCode=s,e&&(t.url=e),t}function fc(i){return mc(i)&&fa(i.url)}function mc(i){return i&&i[Ut]}class gc{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new _c,this.attachRef=null}}let _c=(()=>{class i{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new gc,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Ya=!1;let lo=(()=>{class i{constructor(e,t,r,d,h){this.parentContexts=e,this.location=t,this.changeDetector=d,this.environmentInjector=h,this.activated=null,this._activatedRoute=null,this.activateEvents=new n.vpe,this.deactivateEvents=new n.vpe,this.attachEvents=new n.vpe,this.detachEvents=new n.vpe,this.name=r||It,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new n.vHH(4012,Ya);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new n.vHH(4012,Ya);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new n.vHH(4012,Ya);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new n.vHH(4013,Ya);this._activatedRoute=e;const r=this.location,h=e._futureSnapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,o=new hr(e,c,r.injector);if(t&&function _f(i){return!!i.resolveComponentFactory}(t)){const a=t.resolveComponentFactory(h);this.activated=r.createComponent(a,r.length,o)}else this.activated=r.createComponent(h,{index:r.length,injector:o,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(_c),n.Y36(n.s_b),n.$8M("name"),n.Y36(n.sBO),n.Y36(n.lqb))},i.\u0275dir=n.lG2({type:i,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),i})();class hr{constructor(s,e,t){this.route=s,this.childContexts=e,this.parent=t}get(s,e){return s===Li?this.route:s===_c?this.childContexts:this.parent.get(s,e)}}let Ld=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&n._UZ(0,"router-outlet")},dependencies:[lo],encapsulation:2}),i})();function _h(i,s){return i.providers&&!i._injector&&(i._injector=(0,n.MMx)(i.providers,s,`Route: ${i.path}`)),i._injector??s}function ys(i){const s=i.children&&i.children.map(ys),e=s?{...i,children:s}:{...i};return!e.component&&!e.loadComponent&&(s||e.loadChildren)&&e.outlet&&e.outlet!==It&&(e.component=Ld),e}function pr(i){return i.outlet||It}function yh(i,s){const e=i.filter(t=>pr(t)===s);return e.push(...i.filter(t=>pr(t)!==s)),e}function Ch(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let s=i.parent;s;s=s.parent){const e=s.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class ul{constructor(s,e,t,r){this.routeReuseStrategy=s,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(s){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,s),ol(this.futureState.root),this.activateChildRoutes(e,t,s)}deactivateChildRoutes(s,e,t){const r=Fi(e);s.children.forEach(d=>{const h=d.value.outlet;this.deactivateRoutes(d,r[h],t),delete r[h]}),gn(r,(d,h)=>{this.deactivateRouteAndItsChildren(d,t)})}deactivateRoutes(s,e,t){const r=s.value,d=e?e.value:null;if(r===d)if(r.component){const h=t.getContext(r.outlet);h&&this.deactivateChildRoutes(s,e,h.children)}else this.deactivateChildRoutes(s,e,t);else d&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(s,e){s.value.component&&this.routeReuseStrategy.shouldDetach(s.value.snapshot)?this.detachAndStoreRouteSubtree(s,e):this.deactivateRouteAndOutlet(s,e)}detachAndStoreRouteSubtree(s,e){const t=e.getContext(s.value.outlet),r=t&&s.value.component?t.children:e,d=Fi(s);for(const h of Object.keys(d))this.deactivateRouteAndItsChildren(d[h],r);if(t&&t.outlet){const h=t.outlet.detach(),c=t.children.onOutletDeactivated();this.routeReuseStrategy.store(s.value.snapshot,{componentRef:h,route:s,contexts:c})}}deactivateRouteAndOutlet(s,e){const t=e.getContext(s.value.outlet),r=t&&s.value.component?t.children:e,d=Fi(s);for(const h of Object.keys(d))this.deactivateRouteAndItsChildren(d[h],r);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(s,e,t){const r=Fi(e);s.children.forEach(d=>{this.activateRoutes(d,r[d.value.outlet],t),this.forwardEvent(new ph(d.value.snapshot))}),s.children.length&&this.forwardEvent(new il(s.value.snapshot))}activateRoutes(s,e,t){const r=s.value,d=e?e.value:null;if(ol(r),r===d)if(r.component){const h=t.getOrCreateContext(r.outlet);this.activateChildRoutes(s,e,h.children)}else this.activateChildRoutes(s,e,t);else if(r.component){const h=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const c=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),h.children.onOutletReAttached(c.contexts),h.attachRef=c.componentRef,h.route=c.route.value,h.outlet&&h.outlet.attach(c.componentRef,c.route.value),ol(c.route.value),this.activateChildRoutes(s,null,h.children)}else{const c=Ch(r.snapshot),o=c?.get(n._Vd)??null;h.attachRef=null,h.route=r,h.resolver=o,h.injector=c,h.outlet&&h.outlet.activateWith(r,h.injector),this.activateChildRoutes(s,null,h.children)}}else this.activateChildRoutes(s,null,t)}}class Od{constructor(s){this.path=s,this.route=this.path[this.path.length-1]}}class qa{constructor(s,e){this.component=s,this.route=e}}function yf(i,s,e){const t=i._root;return qi(t,s?s._root:null,e,[t.value])}function za(i,s,e){return(Ch(s)??e).get(i)}function qi(i,s,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const d=Fi(s);return i.children.forEach(h=>{(function vh(i,s,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const d=i.value,h=s?s.value:null,c=e?e.getContext(i.value.outlet):null;if(h&&d.routeConfig===h.routeConfig){const o=function Cf(i,s,e){if("function"==typeof e)return e(i,s);switch(e){case"pathParamsChange":return!ms(i.url,s.url);case"pathParamsOrQueryParamsChange":return!ms(i.url,s.url)||!Er(i.queryParams,s.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fa(i,s)||!Er(i.queryParams,s.queryParams);default:return!Fa(i,s)}}(h,d,d.routeConfig.runGuardsAndResolvers);o?r.canActivateChecks.push(new Od(t)):(d.data=h.data,d._resolvedData=h._resolvedData),qi(i,s,d.component?c?c.children:null:e,t,r),o&&c&&c.outlet&&c.outlet.isActivated&&r.canDeactivateChecks.push(new qa(c.outlet.component,h))}else h&&hl(s,c,r),r.canActivateChecks.push(new Od(t)),qi(i,null,d.component?c?c.children:null:e,t,r)})(h,d[h.value.outlet],e,t.concat([h.value]),r),delete d[h.value.outlet]}),gn(d,(h,c)=>hl(h,e.getContext(c),r)),r}function hl(i,s,e){const t=Fi(i),r=i.value;gn(t,(d,h)=>{hl(d,r.component?s?s.children.getContext(h):null:s,e)}),e.canDeactivateChecks.push(new qa(r.component&&s&&s.outlet&&s.outlet.isActivated?s.outlet.component:null,r))}function $r(i){return"function"==typeof i}function Bd(i){return i instanceof xr.K||"EmptyError"===i?.name}const Cs=Symbol("INITIAL_VALUE");function As(){return(0,bn.w)(i=>(0,un.a)(i.map(s=>s.pipe((0,rt.q)(1),Zt(Cs)))).pipe((0,_t.U)(s=>{for(const e of s)if(!0!==e){if(e===Cs)return Cs;if(!1===e||e instanceof fs)return e}return!0}),(0,Ce.h)(s=>s!==Cs),(0,rt.q)(1)))}function ce(i){return(0,ps.z)((0,nn.b)(s=>{if(fa(s))throw ll(0,s)}),(0,_t.U)(s=>!0===s))}const ct={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function kt(i,s,e,t,r){const d=rn(i,s,e);return d.matched?function Ae(i,s,e,t){const r=s.canMatch;if(!r||0===r.length)return(0,xe.of)(!0);const d=r.map(h=>{const c=i.get(h),o=function fl(i){return i&&$r(i.canMatch)}(c)?c.canMatch(s,e):c(s,e);return Qt(o)});return(0,xe.of)(d).pipe(As(),ce())}(t=_h(s,t),s,e).pipe((0,_t.U)(h=>!0===h?d:{...ct})):(0,xe.of)(d)}function rn(i,s,e){if(""===s.path)return"full"===s.pathMatch&&(i.hasChildren()||e.length>0)?{...ct}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(s.matcher||Fo)(e,i,s);if(!r)return{...ct};const d={};gn(r.posParams,(c,o)=>{d[o]=c.path});const h=r.consumed.length>0?{...d,...r.consumed[r.consumed.length-1].parameters}:d;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:h,positionalParamSegments:r.posParams??{}}}function Gn(i,s,e,t,r="corrected"){if(e.length>0&&function P_(i,s,e){return e.some(t=>Ga(i,s,t)&&pr(t)!==It)}(i,e,t)){const h=new dt(s,function ba(i,s,e,t){const r={};r[It]=t,t._sourceSegment=i,t._segmentIndexShift=s.length;for(const d of e)if(""===d.path&&pr(d)!==It){const h=new dt([],{});h._sourceSegment=i,h._segmentIndexShift=s.length,r[pr(d)]=h}return r}(i,s,t,new dt(e,i.children)));return h._sourceSegment=i,h._segmentIndexShift=s.length,{segmentGroup:h,slicedSegments:[]}}if(0===e.length&&function R_(i,s,e){return e.some(t=>Ga(i,s,t))}(i,e,t)){const h=new dt(i.segments,function Rr(i,s,e,t,r,d){const h={};for(const c of t)if(Ga(i,e,c)&&!r[pr(c)]){const o=new dt([],{});o._sourceSegment=i,o._segmentIndexShift="legacy"===d?i.segments.length:s.length,h[pr(c)]=o}return{...r,...h}}(i,s,e,t,i.children,r));return h._sourceSegment=i,h._segmentIndexShift=s.length,{segmentGroup:h,slicedSegments:e}}const d=new dt(i.segments,i.children);return d._sourceSegment=i,d._segmentIndexShift=s.length,{segmentGroup:d,slicedSegments:e}}function Ga(i,s,e){return(!(i.hasChildren()||s.length>0)||"full"!==e.pathMatch)&&""===e.path}function k_(i,s,e,t){return!!(pr(i)===t||t!==It&&Ga(s,e,i))&&("**"===i.path||rn(s,i,e).matched)}function L_(i,s,e){return 0===s.length&&!i.children[e]}const xh=!1;class Mh{constructor(s){this.segmentGroup=s||null}}class I_{constructor(s){this.urlTree=s}}function kr(i){return(0,mi._)(new Mh(i))}function ml(i){return(0,mi._)(new I_(i))}class nA{constructor(s,e,t,r,d){this.injector=s,this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=d,this.allowRedirects=!0}apply(){const s=Gn(this.urlTree.root,[],[],this.config).segmentGroup,e=new dt(s.segments,s.children);return this.expandSegmentGroup(this.injector,this.config,e,It).pipe((0,_t.U)(d=>this.createUrlTree(ja(d),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Ri.K)(d=>{if(d instanceof I_)return this.allowRedirects=!1,this.match(d.urlTree);throw d instanceof Mh?this.noMatchError(d):d}))}match(s){return this.expandSegmentGroup(this.injector,this.config,s.root,It).pipe((0,_t.U)(r=>this.createUrlTree(ja(r),s.queryParams,s.fragment))).pipe((0,Ri.K)(r=>{throw r instanceof Mh?this.noMatchError(r):r}))}noMatchError(s){return new n.vHH(4002,xh)}createUrlTree(s,e,t){const r=vd(s);return new fs(r,e,t)}expandSegmentGroup(s,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(s,e,t).pipe((0,_t.U)(d=>new dt([],d))):this.expandSegment(s,t,e,t.segments,r,!0)}expandChildren(s,e,t){const r=[];for(const d of Object.keys(t.children))"primary"===d?r.unshift(d):r.push(d);return(0,lt.D)(r).pipe((0,Tr.b)(d=>{const h=t.children[d],c=yh(e,d);return this.expandSegmentGroup(s,c,h,d).pipe((0,_t.U)(o=>({segment:o,outlet:d})))}),Mr((d,h)=>(d[h.outlet]=h.segment,d),{}),ic())}expandSegment(s,e,t,r,d,h){return(0,lt.D)(t).pipe((0,Tr.b)(c=>this.expandSegmentAgainstRoute(s,e,t,c,r,d,h).pipe((0,Ri.K)(a=>{if(a instanceof Mh)return(0,xe.of)(null);throw a}))),(0,jn.P)(c=>!!c),(0,Ri.K)((c,o)=>{if(Bd(c))return L_(e,r,d)?(0,xe.of)(new dt([],{})):kr(e);throw c}))}expandSegmentAgainstRoute(s,e,t,r,d,h,c){return k_(r,e,d,h)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(s,e,r,d,h):c&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(s,e,t,r,d,h):kr(e):kr(e)}expandSegmentAgainstRouteUsingRedirect(s,e,t,r,d,h){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(s,t,r,h):this.expandRegularSegmentAgainstRouteUsingRedirect(s,e,t,r,d,h)}expandWildCardWithParamsAgainstRouteUsingRedirect(s,e,t,r){const d=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?ml(d):this.lineralizeSegments(t,d).pipe((0,gi.z)(h=>{const c=new dt(h,{});return this.expandSegment(s,c,e,h,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(s,e,t,r,d,h){const{matched:c,consumedSegments:o,remainingSegments:a,positionalParamSegments:l}=rn(e,r,d);if(!c)return kr(e);const u=this.applyRedirectCommands(o,r.redirectTo,l);return r.redirectTo.startsWith("/")?ml(u):this.lineralizeSegments(r,u).pipe((0,gi.z)(p=>this.expandSegment(s,e,t,p.concat(a),h,!1)))}matchSegmentAgainstRoute(s,e,t,r,d){return"**"===t.path?(s=_h(t,s),t.loadChildren?(t._loadedRoutes?(0,xe.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(s,t)).pipe((0,_t.U)(c=>(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,new dt(r,{})))):(0,xe.of)(new dt(r,{}))):kt(e,t,r,s).pipe((0,bn.w)(({matched:h,consumedSegments:c,remainingSegments:o})=>h?this.getChildConfig(s=t._injector??s,t,r).pipe((0,gi.z)(l=>{const u=l.injector??s,p=l.routes,{segmentGroup:m,slicedSegments:g}=Gn(e,c,o,p),f=new dt(m.segments,m.children);if(0===g.length&&f.hasChildren())return this.expandChildren(u,p,f).pipe((0,_t.U)(Be=>new dt(c,Be)));if(0===p.length&&0===g.length)return(0,xe.of)(new dt(c,{}));const y=pr(t)===d;return this.expandSegment(u,f,p,g,y?It:d,!0).pipe((0,_t.U)(le=>new dt(c.concat(le.segments),le.children)))})):kr(e)))}getChildConfig(s,e,t){return e.children?(0,xe.of)({routes:e.children,injector:s}):e.loadChildren?void 0!==e._loadedRoutes?(0,xe.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function Q(i,s,e,t){const r=s.canLoad;if(void 0===r||0===r.length)return(0,xe.of)(!0);const d=r.map(h=>{const c=i.get(h),o=function Af(i){return i&&$r(i.canLoad)}(c)?c.canLoad(s,e):c(s,e);return Qt(o)});return(0,xe.of)(d).pipe(As(),ce())}(s,e,t).pipe((0,gi.z)(r=>r?this.configLoader.loadChildren(s,e).pipe((0,nn.b)(d=>{e._loadedRoutes=d.routes,e._loadedInjector=d.injector})):function eA(i){return(0,mi._)(kd(xh,3))}())):(0,xe.of)({routes:[],injector:s})}lineralizeSegments(s,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,xe.of)(t);if(r.numberOfChildren>1||!r.children[It])return(0,mi._)(new n.vHH(4e3,xh));r=r.children[It]}}applyRedirectCommands(s,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),s,t)}applyRedirectCreateUrlTree(s,e,t,r){const d=this.createSegmentGroup(s,e.root,t,r);return new fs(d,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(s,e){const t={};return gn(s,(r,d)=>{if("string"==typeof r&&r.startsWith(":")){const c=r.substring(1);t[d]=e[c]}else t[d]=r}),t}createSegmentGroup(s,e,t,r){const d=this.createSegments(s,e.segments,t,r);let h={};return gn(e.children,(c,o)=>{h[o]=this.createSegmentGroup(s,c,t,r)}),new dt(d,h)}createSegments(s,e,t,r){return e.map(d=>d.path.startsWith(":")?this.findPosParam(s,d,r):this.findOrReturn(d,t))}findPosParam(s,e,t){const r=t[e.path.substring(1)];if(!r)throw new n.vHH(4001,xh);return r}findOrReturn(s,e){let t=0;for(const r of e){if(r.path===s.path)return e.splice(t),r;t++}return s}}class O_{}class sA{constructor(s,e,t,r,d,h,c,o){this.injector=s,this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=d,this.paramsInheritanceStrategy=h,this.relativeLinkResolution=c,this.urlSerializer=o}recognize(){const s=Gn(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,s,It).pipe((0,_t.U)(e=>{if(null===e)return null;const t=new Rd([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},It,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new zn(t,e),d=new Na(this.url,r);return this.inheritParamsAndData(d._root),d}))}inheritParamsAndData(s){const e=s.value,t=mh(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),s.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(s,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(s,e,t):this.processSegment(s,e,t,t.segments,r)}processChildren(s,e,t){return(0,lt.D)(Object.keys(t.children)).pipe((0,Tr.b)(r=>{const d=t.children[r],h=yh(e,r);return this.processSegmentGroup(s,h,d,r)}),Mr((r,d)=>r&&d?(r.push(...d),r):null),rc(r=>null!==r),(0,_d.d)(null),ic(),(0,_t.U)(r=>{if(null===r)return null;const d=bc(r);return function oA(i){i.sort((s,e)=>s.value.outlet===It?-1:e.value.outlet===It?1:s.value.outlet.localeCompare(e.value.outlet))}(d),d}))}processSegment(s,e,t,r,d){return(0,lt.D)(e).pipe((0,Tr.b)(h=>this.processSegmentAgainstRoute(h._injector??s,h,t,r,d)),(0,jn.P)(h=>!!h),(0,Ri.K)(h=>{if(Bd(h))return L_(t,r,d)?(0,xe.of)([]):(0,xe.of)(null);throw h}))}processSegmentAgainstRoute(s,e,t,r,d){if(e.redirectTo||!k_(e,t,r,d))return(0,xe.of)(null);let h;if("**"===e.path){const c=r.length>0?lc(r).parameters:{},o=wc(t)+r.length,a=new Rd(r,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xf(e),pr(e),e.component??e._loadedComponent??null,e,wa(t),o,Mf(e),o);h=(0,xe.of)({snapshot:a,consumedSegments:[],remainingSegments:[]})}else h=kt(t,e,r,s).pipe((0,_t.U)(({matched:c,consumedSegments:o,remainingSegments:a,parameters:l})=>{if(!c)return null;const u=wc(t)+o.length;return{snapshot:new Rd(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xf(e),pr(e),e.component??e._loadedComponent??null,e,wa(t),u,Mf(e),u),consumedSegments:o,remainingSegments:a}}));return h.pipe((0,bn.w)(c=>{if(null===c)return(0,xe.of)(null);const{snapshot:o,consumedSegments:a,remainingSegments:l}=c;s=e._injector??s;const u=e._loadedInjector??s,p=function YM(i){return i.children?i.children:i.loadChildren?i._loadedRoutes:[]}(e),{segmentGroup:m,slicedSegments:g}=Gn(t,a,l,p.filter(y=>void 0===y.redirectTo),this.relativeLinkResolution);if(0===g.length&&m.hasChildren())return this.processChildren(u,p,m).pipe((0,_t.U)(y=>null===y?null:[new zn(o,y)]));if(0===p.length&&0===g.length)return(0,xe.of)([new zn(o,[])]);const f=pr(e)===d;return this.processSegment(u,p,m,g,f?It:d).pipe((0,_t.U)(y=>null===y?null:[new zn(o,y)]))}))}}function lA(i){const s=i.value.routeConfig;return s&&""===s.path&&void 0===s.redirectTo}function bc(i){const s=[],e=new Set;for(const t of i){if(!lA(t)){s.push(t);continue}const r=s.find(d=>t.value.routeConfig===d.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):s.push(t)}for(const t of e){const r=bc(t.children);s.push(new zn(t.value,r))}return s.filter(t=>!e.has(t))}function wa(i){let s=i;for(;s._sourceSegment;)s=s._sourceSegment;return s}function wc(i){let s=i,e=s._segmentIndexShift??0;for(;s._sourceSegment;)s=s._sourceSegment,e+=s._segmentIndexShift??0;return e-1}function xf(i){return i.data||{}}function Mf(i){return i.resolve||{}}const V_=Symbol("RouteTitle");function cA(i){return"string"==typeof i.title||null===i.title}function Eh(i){return(0,bn.w)(s=>{const e=i(s);return e?(0,lt.D)(e).pipe((0,_t.U)(()=>s)):(0,xe.of)(s)})}let j_=(()=>{class i{buildTitle(e){let t,r=e.root;for(;void 0!==r;)t=this.getResolvedTitleForRoute(r)??t,r=r.children.find(d=>d.outlet===It);return t}getResolvedTitleForRoute(e){return e.data[V_]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(){return(0,n.f3M)(U_)},providedIn:"root"}),i})(),U_=(()=>{class i extends j_{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(oe))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class dA{}class N_ extends class uA{shouldDetach(s){return!1}store(s,e){}shouldAttach(s){return!1}retrieve(s){return null}shouldReuseRoute(s,e){return s.routeConfig===e.routeConfig}}{}const Hh=new n.OlP("",{providedIn:"root",factory:()=>({})}),Hf=new n.OlP("ROUTES");let Wn=(()=>{class i{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,xe.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Qt(e.loadComponent()).pipe((0,nn.b)(d=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=d}),Sr(()=>{this.componentLoaders.delete(e)})),r=new nc(t,()=>new Se.x).pipe(Qu());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,xe.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const d=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,_t.U)(c=>{this.onLoadEndListener&&this.onLoadEndListener(t);let o,a,l=!1;Array.isArray(c)?a=c:(o=c.create(e).injector,a=Xu(o.get(Hf,[],n.XFs.Self|n.XFs.Optional)));return{routes:a.map(ys),injector:o}}),Sr(()=>{this.childrenLoaders.delete(t)})),h=new nc(d,()=>new Se.x).pipe(Qu());return this.childrenLoaders.set(t,h),h}loadModuleFactoryOrRoutes(e){return Qt(e()).pipe((0,gi.z)(t=>t instanceof n.YKP||Array.isArray(t)?(0,xe.of)(t):(0,lt.D)(this.compiler.compileModuleAsync(t))))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.zs3),n.LFG(n.Sil))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class F_{}class hA{shouldProcessUrl(s){return!0}extract(s){return s}merge(s,e){return s}}function Y_(i){throw i}function pA(i,s,e){return s.parse("/")}const fA={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},mA={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function q_(){const i=(0,n.f3M)($o),s=(0,n.f3M)(_c),e=(0,n.f3M)(x.Ye),t=(0,n.f3M)(n.zs3),r=(0,n.f3M)(n.Sil),d=(0,n.f3M)(Hf,{optional:!0})??[],h=(0,n.f3M)(Hh,{optional:!0})??{},c=(0,n.f3M)(U_),o=(0,n.f3M)(j_,{optional:!0}),a=(0,n.f3M)(F_,{optional:!0}),l=(0,n.f3M)(dA,{optional:!0}),u=new $n(null,i,s,e,t,r,Xu(d));return a&&(u.urlHandlingStrategy=a),l&&(u.routeReuseStrategy=l),u.titleStrategy=o??c,function gA(i,s){i.errorHandler&&(s.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(s.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(s.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(s.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(s.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(s.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(s.canceledNavigationResolution=i.canceledNavigationResolution)}(h,u),u}let $n=(()=>{class i{constructor(e,t,r,d,h,c,o){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=d,this.config=o,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Se.x,this.errorHandler=Y_,this.malformedUriErrorHandler=pA,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,xe.of)(void 0),this.urlHandlingStrategy=new hA,this.routeReuseStrategy=new N_,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=h.get(Wn),this.configLoader.onLoadEndListener=p=>this.triggerEvent(new hh(p)),this.configLoader.onLoadStartListener=p=>this.triggerEvent(new M_(p)),this.ngModule=h.get(n.h0i),this.console=h.get(n.c2e);const u=h.get(n.R0b);this.isNgZoneEnabled=u instanceof n.R0b&&n.R0b.isInAngularZone(),this.resetConfig(o),this.currentUrlTree=function df(){return new fs(new dt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=rl(this.currentUrlTree,this.rootComponentType),this.transitions=new Hn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Ce.h)(r=>0!==r.id),(0,_t.U)(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,bn.w)(r=>{let d=!1,h=!1;return(0,xe.of)(r).pipe((0,nn.b)(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,bn.w)(c=>{const o=this.browserUrlTree.toString(),a=!this.navigated||c.extractedUrl.toString()!==o||o!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||a)&&this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return Cc(c.source)&&(this.browserUrlTree=c.extractedUrl),(0,xe.of)(c).pipe((0,bn.w)(u=>{const p=this.transitions.getValue();return t.next(new nl(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),p!==this.transitions.getValue()?Pn.E:Promise.resolve(u)}),function iA(i,s,e,t){return(0,bn.w)(r=>function tA(i,s,e,t,r){return new nA(i,s,e,t,r).apply()}(i,s,e,r.extractedUrl,t).pipe((0,_t.U)(d=>({...r,urlAfterRedirects:d}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,nn.b)(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},r.urlAfterRedirects=u.urlAfterRedirects}),function qM(i,s,e,t,r,d){return(0,gi.z)(h=>function aA(i,s,e,t,r,d,h="emptyOnly",c="legacy"){return new sA(i,s,e,t,r,h,c,d).recognize().pipe((0,bn.w)(o=>null===o?function rA(i){return new ln.y(s=>s.error(i))}(new O_):(0,xe.of)(o)))}(i,s,e,h.urlAfterRedirects,t.serialize(h.urlAfterRedirects),t,r,d).pipe((0,_t.U)(c=>({...h,targetSnapshot:c}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,nn.b)(u=>{if(r.targetSnapshot=u.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(m,u)}this.browserUrlTree=u.urlAfterRedirects}const p=new pn(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(p)}));if(a&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:m,source:g,restoredState:f,extras:y}=c,j=new nl(p,this.serializeUrl(m),g,f);t.next(j);const le=rl(m,this.rootComponentType).snapshot;return r={...c,targetSnapshot:le,urlAfterRedirects:m,extras:{...y,skipLocationChange:!1,replaceUrl:!1}},(0,xe.of)(r)}return this.rawUrlTree=c.rawUrl,c.resolve(null),Pn.E}),(0,nn.b)(c=>{const o=new A_(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(o)}),(0,_t.U)(c=>r={...c,guards:yf(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),function Vd(i,s){return(0,gi.z)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:d,canDeactivateChecks:h}}=e;return 0===h.length&&0===d.length?(0,xe.of)({...e,guardsResult:!0}):function vs(i,s,e,t){return(0,lt.D)(i).pipe((0,gi.z)(r=>function q(i,s,e,t,r){const d=s&&s.routeConfig?s.routeConfig.canDeactivate:null;if(!d||0===d.length)return(0,xe.of)(!0);const h=d.map(c=>{const o=za(c,s,r);return Qt(function _a(i){return i&&$r(i.canDeactivate)}(o)?o.canDeactivate(i,s,e,t):o(i,s,e,t)).pipe((0,jn.P)())});return(0,xe.of)(h).pipe(As())}(r.component,r.route,e,s,t)),(0,jn.P)(r=>!0!==r,!0))}(h,t,r,i).pipe((0,gi.z)(c=>c&&function pl(i){return"boolean"==typeof i}(c)?function jd(i,s,e,t){return(0,lt.D)(s).pipe((0,Tr.b)(r=>(0,Ui.z)(function S(i,s){return null!==i&&s&&s(new S_(i)),(0,xe.of)(!0)}(r.route.parent,t),function jt(i,s){return null!==i&&s&&s(new E_(i)),(0,xe.of)(!0)}(r.route,t),function V(i,s,e){const t=s[s.length-1],d=s.slice(0,s.length-1).reverse().map(h=>function Ah(i){const s=i.routeConfig?i.routeConfig.canActivateChild:null;return s&&0!==s.length?{node:i,guards:s}:null}(h)).filter(h=>null!==h).map(h=>Cn(()=>{const c=h.guards.map(o=>{const a=za(o,h.node,e);return Qt(function Th(i){return i&&$r(i.canActivateChild)}(a)?a.canActivateChild(t,i):a(t,i)).pipe((0,jn.P)())});return(0,xe.of)(c).pipe(As())}));return(0,xe.of)(d).pipe(As())}(i,r.path,e),function k(i,s,e){const t=s.routeConfig?s.routeConfig.canActivate:null;if(!t||0===t.length)return(0,xe.of)(!0);const r=t.map(d=>Cn(()=>{const h=za(d,s,e);return Qt(function D_(i){return i&&$r(i.canActivate)}(h)?h.canActivate(s,i):h(s,i)).pipe((0,jn.P)())}));return(0,xe.of)(r).pipe(As())}(i,r.route,e))),(0,jn.P)(r=>!0!==r,!0))}(t,d,i,s):(0,xe.of)(c)),(0,_t.U)(c=>({...e,guardsResult:c})))})}(this.ngModule.injector,c=>this.triggerEvent(c)),(0,nn.b)(c=>{if(r.guardsResult=c.guardsResult,fa(c.guardsResult))throw ll(0,c.guardsResult);const o=new v_(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.triggerEvent(o)}),(0,Ce.h)(c=>!!c.guardsResult||(this.restoreHistory(c),this.cancelNavigationTransition(c,"",3),!1)),Eh(c=>{if(c.guards.canActivateChecks.length)return(0,xe.of)(c).pipe((0,nn.b)(o=>{const a=new T_(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(a)}),(0,bn.w)(o=>{let a=!1;return(0,xe.of)(o).pipe(function zM(i,s){return(0,gi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,xe.of)(e);let d=0;return(0,lt.D)(r).pipe((0,Tr.b)(h=>function Sf(i,s,e,t){const r=i.routeConfig,d=i._resolve;return void 0!==r?.title&&!cA(r)&&(d[V_]=r.title),function Ef(i,s,e,t){const r=function Df(i){return[...Object.keys(i),...Object.getOwnPropertySymbols(i)]}(i);if(0===r.length)return(0,xe.of)({});const d={};return(0,lt.D)(r).pipe((0,gi.z)(h=>function GM(i,s,e,t){const r=za(i,s,t);return Qt(r.resolve?r.resolve(s,e):r(s,e))}(i[h],s,e,t).pipe((0,jn.P)(),(0,nn.b)(c=>{d[h]=c}))),hn(1),(0,ac.h)(d),(0,Ri.K)(h=>Bd(h)?Pn.E:(0,mi._)(h)))}(d,i,s,t).pipe((0,_t.U)(h=>(i._resolvedData=h,i.data=mh(i,e).resolve,r&&cA(r)&&(i.data[V_]=r.title),null)))}(h.route,t,i,s)),(0,nn.b)(()=>d++),hn(1),(0,gi.z)(h=>d===r.length?(0,xe.of)(e):Pn.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,nn.b)({next:()=>a=!0,complete:()=>{a||(this.restoreHistory(o),this.cancelNavigationTransition(o,"",2))}}))}),(0,nn.b)(o=>{const a=new x_(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(a)}))}),Eh(c=>{const o=a=>{const l=[];a.routeConfig?.loadComponent&&!a.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(a.routeConfig).pipe((0,nn.b)(u=>{a.component=u}),(0,_t.U)(()=>{})));for(const u of a.children)l.push(...o(u));return l};return(0,un.a)(o(c.targetSnapshot.root)).pipe((0,_d.d)(),(0,rt.q)(1))}),Eh(()=>this.afterPreactivation()),(0,_t.U)(c=>{const o=function Fe(i,s,e){const t=oo(i,s._root,e?e._root:void 0);return new pc(t,s)}(this.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return r={...c,targetRouterState:o}}),(0,nn.b)(c=>{this.currentUrlTree=c.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl),this.routerState=c.targetRouterState,"deferred"===this.urlUpdateStrategy&&(c.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,c),this.browserUrlTree=c.urlAfterRedirects)}),((i,s,e)=>(0,_t.U)(t=>(new ul(s,t.targetRouterState,t.currentRouterState,e).activate(i),t)))(this.rootContexts,this.routeReuseStrategy,c=>this.triggerEvent(c)),(0,nn.b)({next(){d=!0},complete(){d=!0}}),Sr(()=>{d||h||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),(0,Ri.K)(c=>{if(h=!0,mc(c)){fc(c)||(this.navigated=!0,this.restoreHistory(r,!0));const o=new Dd(r.id,this.serializeUrl(r.extractedUrl),c.message,c.cancellationCode);if(t.next(o),fc(c)){const a=this.urlHandlingStrategy.merge(c.url,this.rawUrlTree),l={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Cc(r.source)};this.scheduleNavigation(a,"imperative",null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const o=new uh(r.id,this.serializeUrl(r.extractedUrl),c,r.targetSnapshot??void 0);t.next(o);try{r.resolve(this.errorHandler(c))}catch(a){r.reject(a)}}return Pn.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const r={replaceUrl:!0},d=e.state?.navigationId?e.state:null;if(d){const c={...d};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(r.state=c)}const h=this.parseUrl(e.url);this.scheduleNavigation(h,t,d,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(ys),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:d,fragment:h,queryParamsHandling:c,preserveFragment:o}=t,a=r||this.routerState.root,l=o?this.currentUrlTree.fragment:h;let u=null;switch(c){case"merge":u={...this.currentUrlTree.queryParams,...d};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=d||null}return null!==u&&(u=this.removeEmptyProps(u)),Sd(a,this.currentUrlTree,e,u,l??null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=fa(e)?e:this.parseUrl(e),d=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(d,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function WM(i){for(let s=0;s{const d=e[r];return null!=d&&(t[r]=d),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Ni(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,d,h){if(this.disposed)return Promise.resolve(!1);let c,o,a;h?(c=h.resolve,o=h.reject,a=h.promise):a=new Promise((p,m)=>{c=p,o=m});const l=++this.navigationId;let u;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),u=r&&r.\u0275routerPageId?r.\u0275routerPageId:d.replaceUrl||d.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):u=0,this.setTransition({id:l,targetPageId:u,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:d,resolve:c,reject:o,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(p=>Promise.reject(p))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),d={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",d):this.location.go(r,"",d)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,r){const d=new Dd(e.id,this.serializeUrl(e.extractedUrl),t,r);this.triggerEvent(d),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:function(){return q_()},providedIn:"root"}),i})();function Cc(i){return"imperative"!==i}let Ts=(()=>{class i{constructor(e,t,r,d,h){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=d,this.el=h,this.commands=null,this.onChanges=new Se.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,n.D6c)(this.skipLocationChange),replaceUrl:(0,n.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,n.D6c)(this.preserveFragment)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($n),n.Y36(Li),n.$8M("tabindex"),n.Y36(n.Qsj),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.TTD]}),i})(),Ud=(()=>{class i{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new Se.x,this.subscription=e.events.subscribe(d=>{d instanceof Ni&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,d,h){if(0!==e||t||r||d||h||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const c={skipLocationChange:(0,n.D6c)(this.skipLocationChange),replaceUrl:(0,n.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,c),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,n.D6c)(this.preserveFragment)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($n),n.Y36(Li),n.Y36(x.S$))},i.\u0275dir=n.lG2({type:i,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t.onClick(d.button,d.ctrlKey,d.shiftKey,d.altKey,d.metaKey)}),2&e&&n.uIk("target",t.target)("href",t.href,n.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.TTD]}),i})();class W_{}let $_=(()=>{class i{preload(e,t){return(0,xe.of)(null)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Rh=(()=>{class i{constructor(e,t,r,d,h){this.router=e,this.injector=r,this.preloadingStrategy=d,this.loader=h}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ce.h)(e=>e instanceof Ni),(0,Tr.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const d of t){d.providers&&!d._injector&&(d._injector=(0,n.MMx)(d.providers,e,`Route: ${d.path}`));const h=d._injector??e,c=d._loadedInjector??h;d.loadChildren&&!d._loadedRoutes&&void 0===d.canLoad||d.loadComponent&&!d._loadedComponent?r.push(this.preloadConfig(h,d)):(d.children||d._loadedRoutes)&&r.push(this.processRoutes(c,d.children??d._loadedRoutes))}return(0,lt.D)(r).pipe((0,sc.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;r=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,xe.of)(null);const d=r.pipe((0,gi.z)(h=>null===h?(0,xe.of)(void 0):(t._loadedRoutes=h.routes,t._loadedInjector=h.injector,this.processRoutes(h.injector??e,h.routes))));if(t.loadComponent&&!t._loadedComponent){const h=this.loader.loadComponent(t);return(0,lt.D)([d,h]).pipe((0,sc.J)())}return d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG($n),n.LFG(n.Sil),n.LFG(n.lqb),n.LFG(W_),n.LFG(Wn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const bA=new n.OlP("");let wA=(()=>{class i{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof nl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Ni&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Rn&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Rn(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Pf=new n.OlP("ROUTER_FORROOT_GUARD"),co=new n.OlP(""),CA=[x.Ye,{provide:$o,useClass:yd},{provide:$n,useFactory:q_},_c,{provide:Li,useFactory:function Rf(i){return i.routerState.root},deps:[$n]},Wn];function kh(){return new n.PXZ("Router",$n)}let Lh=(()=>{class i{constructor(e){}static forRoot(e,t){return{ngModule:i,providers:[CA,[],Oh(e),{provide:Pf,useFactory:J_,deps:[[$n,new n.FiY,new n.tp0]]},{provide:Hh,useValue:t||{}},t?.useHash?{provide:x.S$,useClass:x.Do}:{provide:x.S$,useClass:x.b0},{provide:bA,useFactory:()=>{const i=(0,n.f3M)($n),s=(0,n.f3M)(x.EM),e=(0,n.f3M)(Hh);return e.scrollOffset&&s.setOffset(e.scrollOffset),new wA(i,s,e)}},t?.preloadingStrategy?xA(t.preloadingStrategy):[],{provide:n.PXZ,multi:!0,useFactory:kh},t?.initialNavigation?Q_(t):[],[{provide:Z_,useFactory:AA},{provide:n.tb,multi:!0,useExisting:Z_}]]}}static forChild(e){return{ngModule:i,providers:[Oh(e)]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Pf,8))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();function J_(i){return"guarded"}function Oh(i){return[{provide:Hf,multi:!0,useValue:i}]}function AA(){const i=(0,n.f3M)(n.zs3);return s=>{const e=i.get(n.z2F);if(s!==e.components[0])return;const t=i.get($n),r=i.get(K_);1===i.get(Lf)&&t.initialNavigation(),i.get(co,null,n.XFs.Optional)?.setUpPreloading(),i.get(bA,null,n.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),r.next(),r.complete()}}const Z_=new n.OlP("");function Q_(i){return["disabled"===i.initialNavigation?[{provide:n.ip1,multi:!0,useFactory:()=>{const i=(0,n.f3M)($n);return()=>{i.setUpLocationChangeListener()}}},{provide:Lf,useValue:2}]:[],"enabledBlocking"===i.initialNavigation?[{provide:Lf,useValue:0},{provide:n.ip1,multi:!0,deps:[n.zs3],useFactory:i=>{const s=i.get(x.V_,Promise.resolve(null));let e=!1;return()=>s.then(()=>new Promise(r=>{const d=i.get($n),h=i.get(K_);(function t(r){i.get($n).events.pipe((0,Ce.h)(h=>h instanceof Ni||h instanceof Dd||h instanceof uh),(0,_t.U)(h=>h instanceof Ni||h instanceof Dd&&(0===h.code||1===h.code)&&null),(0,Ce.h)(h=>null!==h),(0,rt.q)(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),d.afterPreactivation=()=>(r(!0),e||h.closed?(0,xe.of)(void 0):h),d.initialNavigation()}))}}]:[]]}const K_=new n.OlP("",{factory:()=>new Se.x}),Lf=new n.OlP("",{providedIn:"root",factory:()=>1});function xA(i){return[Rh,{provide:co,useExisting:Rh},{provide:W_,useExisting:i}]}let Of;try{Of=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Of=!1}let vc,yn=(()=>{class i{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,x.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Of)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.Lbi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Tc=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function X_(){if(vc)return vc;if("object"!=typeof document||!document)return vc=new Set(Tc),vc;let i=document.createElement("input");return vc=new Set(Tc.filter(s=>(i.setAttribute("type",s),i.type===s))),vc}let $a,Bf,uo,Vf;function Ja(i){return function Nd(){if(null==$a&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>$a=!0}))}finally{$a=$a||!1}return $a}()?i:!!i.capture}function eb(){if(null==uo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return uo=!1,uo;if("scrollBehavior"in document.documentElement.style)uo=!0;else{const i=Element.prototype.scrollTo;uo=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return uo}function Fd(){if("object"!=typeof document||!document)return 0;if(null==Bf){const i=document.createElement("div"),s=i.style;i.dir="rtl",s.width="1px",s.overflow="auto",s.visibility="hidden",s.pointerEvents="none",s.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",i.appendChild(e),document.body.appendChild(i),Bf=0,0===i.scrollLeft&&(i.scrollLeft=1,Bf=0===i.scrollLeft?1:2),i.remove()}return Bf}function Bh(i){if(function tb(){if(null==Vf){const i=typeof document<"u"?document.head:null;Vf=!(!i||!i.createShadowRoot&&!i.attachShadow)}return Vf}()){const s=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&s instanceof ShadowRoot)return s}return null}function ho(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){const s=i.shadowRoot.activeElement;if(s===i)break;i=s}return i}function ya(i){return i.composedPath?i.composedPath()[0]:i.target}function jf(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function ri(i,...s){return s.length?s.some(e=>i[e]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var Nh=E(8372);function Fh(i){return(0,Ce.h)((s,e)=>i<=e)}function mo(i,s=bd.y){return i=i??bb,(0,Pi.e)((e,t)=>{let r,d=!0;e.subscribe((0,nt.x)(t,h=>{const c=s(h);(d||!i(r,c))&&(d=!1,r=c,t.next(h))}))})}function bb(i,s){return i===s}var iv=E(5032);function Ke(i){return(0,Pi.e)((s,e)=>{(0,Qn.Xf)(i).subscribe((0,nt.x)(e,()=>e.complete(),iv.Z)),!e.closed&&s.subscribe(e)})}function Oe(i){return null!=i&&"false"!=`${i}`}function _n(i,s=0){return Gf(i)?Number(i):s}function Gf(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function Yh(i){return Array.isArray(i)?i:[i]}function hi(i){return null==i?"":"string"==typeof i?i:`${i}px`}function ai(i){return i instanceof n.SBq?i.nativeElement:i}let Wf=(()=>{class i{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),av=(()=>{class i{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ai(e);return new ln.y(r=>{const h=this._observeElement(t).subscribe(r);return()=>{h.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Se.x,r=this._mutationObserverFactory.create(d=>t.next(d));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Wf))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),qh=(()=>{class i{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new n.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Oe(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=_n(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Nh.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(av),n.Y36(n.SBq),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),i})(),$d=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Wf]}),i})();const $f=new Set;let _l,wb=(()=>{class i{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ov}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function sv(i){if(!$f.has(i))try{_l||(_l=document.createElement("style"),_l.setAttribute("type","text/css"),document.head.appendChild(_l)),_l.sheet&&(_l.sheet.insertRule(`@media ${i} {body{ }}`,0),$f.add(i))}catch(s){console.error(s)}}(e),this._matchMedia(e)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function ov(i){return{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{}}}let Jf=(()=>{class i{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Se.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return yb(Yh(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=yb(Yh(e)).map(h=>this._registerQuery(h).observable);let d=(0,un.a)(r);return d=(0,Ui.z)(d.pipe((0,rt.q)(1)),d.pipe(Fh(1),(0,Nh.b)(0))),d.pipe((0,_t.U)(h=>{const c={matches:!1,breakpoints:{}};return h.forEach(({matches:o,query:a})=>{c.matches=c.matches||o,c.breakpoints[a]=o}),c}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),d={observable:new ln.y(h=>{const c=o=>this._zone.run(()=>h.next(o));return t.addListener(c),()=>{t.removeListener(c)}}).pipe(Zt(t),(0,_t.U)(({matches:h})=>({query:e,matches:h})),Ke(this._destroySubject)),mql:t};return this._queries.set(e,d),d}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(wb),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function yb(i){return i.map(s=>s.split(",")).reduce((s,e)=>s.concat(e)).map(s=>s.trim())}function Jd(i,s){return(i.getAttribute(s)||"").match(/\S+/g)||[]}const go="cdk-describedby-message",zh="cdk-describedby-host";let Zd=0,Qd=(()=>{class i{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Zd++,this._document=e,this._id=(0,n.f3M)(n.AFp)+"-"+Zd++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const d=Zf(t,r);"string"!=typeof t?(dv(t,this._id),this._messageRegistry.set(d,{messageElement:t,referenceCount:0})):this._messageRegistry.has(d)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,d)||this._addMessageReference(e,d)}removeDescription(e,t,r){if(!t||!this._isElementNode(e))return;const d=Zf(t,r);if(this._isElementDescribedByMessage(e,d)&&this._removeMessageReference(e,d),"string"==typeof t){const h=this._messageRegistry.get(d);h&&0===h.referenceCount&&this._deleteMessageElement(d)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${zh}="${this._id}"]`);for(let t=0;t0!=r.indexOf(go));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function lv(i,s,e){const t=Jd(i,s);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),i.setAttribute(s,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(zh,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function LS(i,s,e){const r=Jd(i,s).filter(d=>d!=e.trim());r.length?i.setAttribute(s,r.join(" ")):i.removeAttribute(s)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(zh)}_isElementDescribedByMessage(e,t){const r=Jd(e,"aria-describedby"),d=this._messageRegistry.get(t),h=d&&d.messageElement.id;return!!h&&-1!=r.indexOf(h)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),d=e.getAttribute("aria-label");return!(!r||d&&d.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0),n.LFG(yn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function Zf(i,s){return"string"==typeof i?`${s||""}/${i}`:i}function dv(i,s){i.id||(i.id=`${go}-${s}-${Zd++}`)}class uv{constructor(s){this._items=s,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Se.x,this._typeaheadSubscription=Rt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Se.x,this.change=new Se.x,s instanceof n.n_E&&s.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(s){return this._skipPredicateFn=s,this}withWrap(s=!0){return this._wrap=s,this}withVerticalOrientation(s=!0){return this._vertical=s,this}withHorizontalOrientation(s){return this._horizontal=s,this}withAllowedModifierKeys(s){return this._allowedModifierKeys=s,this}withTypeAhead(s=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,nn.b)(e=>this._pressedLetters.push(e)),(0,Nh.b)(s),(0,Ce.h)(()=>this._pressedLetters.length>0),(0,_t.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!s[d]||this._allowedModifierKeys.indexOf(d)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||ri(s,"shiftKey"))&&(s.key&&1===s.key.length?this._letterKeyStream.next(s.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],s.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(s){const e=this._getItemsArray(),t="number"==typeof s?s:e.indexOf(s);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(s){this._wrap?this._setActiveInWrapMode(s):this._setActiveInDefaultMode(s)}_setActiveInWrapMode(s){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+s*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(s){this._setActiveItemByIndex(this._activeItemIndex+s,s)}_setActiveItemByIndex(s,e){const t=this._getItemsArray();if(t[s]){for(;this._skipPredicateFn(t[s]);)if(!t[s+=e])return;this.setActiveItem(s)}}_getItemsArray(){return this._items instanceof n.n_E?this._items.toArray():this._items}}class IS extends uv{setActiveItem(s){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(s),this.activeItem&&this.activeItem.setActiveStyles()}}class Sc extends uv{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(s){return this._origin=s,this}setActiveItem(s){super.setActiveItem(s),this.activeItem&&this.activeItem.focus(this._origin)}}let Gh=(()=>{class i{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Ec(i){return!!(i.offsetWidth||i.offsetHeight||"function"==typeof i.getClientRects&&i.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function pv(i){try{return i.frameElement}catch{return null}}(function bv(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}(e));if(t&&(-1===Mb(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),d=Mb(e);return e.hasAttribute("contenteditable")?-1!==d:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function gv(i){let s=i.nodeName.toLowerCase(),e="input"===s&&i.type;return"text"===e||"password"===e||"select"===s||"textarea"===s}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==d:"video"===r?-1!==d&&(null!==d||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function _v(i){return!function vb(i){return function mv(i){return"input"==i.nodeName.toLowerCase()}(i)&&"hidden"==i.type}(i)&&(function fv(i){let s=i.nodeName.toLowerCase();return"input"===s||"select"===s||"button"===s||"textarea"===s}(i)||function Wh(i){return function Tb(i){return"a"==i.nodeName.toLowerCase()}(i)&&i.hasAttribute("href")}(i)||i.hasAttribute("contenteditable")||xb(i))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function xb(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;let s=i.getAttribute("tabindex");return!(!s||isNaN(parseInt(s,10)))}function Mb(i){if(!xb(i))return null;const s=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(s)?-1:s}class Sb{constructor(s,e,t,r,d=!1){this._element=s,this._checker=e,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,d||this.attachAnchors()}get enabled(){return this._enabled}set enabled(s){this._enabled=s,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(s,this._startAnchor),this._toggleAnchorTabIndex(s,this._endAnchor))}destroy(){const s=this._startAnchor,e=this._endAnchor;s&&(s.removeEventListener("focus",this.startAnchorListener),s.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(s)))})}focusFirstTabbableElementWhenReady(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(s)))})}focusLastTabbableElementWhenReady(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(s)))})}_getRegionBoundary(s){const e=this._element.querySelectorAll(`[cdk-focus-region-${s}], [cdkFocusRegion${s}], [cdk-focus-${s}]`);return"start"==s?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(s){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(s),!!t}return e.focus(s),!0}return this.focusFirstTabbableElement(s)}focusFirstTabbableElement(s){const e=this._getRegionBoundary("start");return e&&e.focus(s),!!e}focusLastTabbableElement(s){const e=this._getRegionBoundary("end");return e&&e.focus(s),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(s){if(this._checker.isFocusable(s)&&this._checker.isTabbable(s))return s;const e=s.children;for(let t=0;t=0;t--){const r=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(r)return r}return null}_createAnchor(){const s=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,s),s.classList.add("cdk-visually-hidden"),s.classList.add("cdk-focus-trap-anchor"),s.setAttribute("aria-hidden","true"),s}_toggleAnchorTabIndex(s,e){s?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(s){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(s,this._startAnchor),this._toggleAnchorTabIndex(s,this._endAnchor))}_executeOnStable(s){this._ngZone.isStable?s():this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(s)}}let Kd=(()=>{class i{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new Sb(e,this._checker,this._ngZone,this._document,t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Gh),n.LFG(n.R0b),n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Eb=(()=>{class i{constructor(e,t,r){this._elementRef=e,this._focusTrapFactory=t,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=Oe(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=Oe(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=ho(),this.focusTrap.focusInitialElementWhenReady()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Kd),n.Y36(x.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[n.TTD]}),i})();function Qf(i){return 0===i.buttons||0===i.offsetX&&0===i.offsetY}function Ss(i){const s=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!(!s||-1!==s.identifier||null!=s.radiusX&&1!==s.radiusX||null!=s.radiusY&&1!==s.radiusY)}const Pb=new n.OlP("cdk-input-modality-detector-options"),Rb={ignoreKeys:[18,17,224,91,16]},zi=Ja({passive:!0,capture:!0});let kb=(()=>{class i{constructor(e,t,r,d){this._platform=e,this._mostRecentTarget=null,this._modality=new Hn(null),this._lastTouchMs=0,this._onKeydown=h=>{this._options?.ignoreKeys?.some(c=>c===h.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ya(h))},this._onMousedown=h=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Qf(h)?"keyboard":"mouse"),this._mostRecentTarget=ya(h))},this._onTouchstart=h=>{Ss(h)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ya(h))},this._options={...Rb,...d},this.modalityDetected=this._modality.pipe(Fh(1)),this.modalityChanged=this.modalityDetected.pipe(mo()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,zi),r.addEventListener("mousedown",this._onMousedown,zi),r.addEventListener("touchstart",this._onTouchstart,zi)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,zi),document.removeEventListener("mousedown",this._onMousedown,zi),document.removeEventListener("touchstart",this._onTouchstart,zi))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn),n.LFG(n.R0b),n.LFG(x.K0),n.LFG(Pb,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const yv=new n.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Kf(){return null}}),Es=new n.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Xf=(()=>{class i{constructor(e,t,r,d){this._ngZone=t,this._defaultOptions=d,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let d,h;return 1===t.length&&"number"==typeof t[0]?h=t[0]:[d,h]=t,this.clear(),clearTimeout(this._previousTimeout),d||(d=r&&r.politeness?r.politeness:"polite"),null==h&&r&&(h=r.duration),this._liveElement.setAttribute("aria-live",d),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof h&&(this._previousTimeout=setTimeout(()=>this.clear(),h)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let d=0;d{class i{constructor(e,t,r,d,h){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Se.x,this._rootNodeFocusAndBlurListener=c=>{for(let a=ya(c);a;a=a.parentElement)"focus"===c.type?this._onFocus(c,a):this._onBlur(c,a)},this._document=d,this._detectionMode=h?.detectionMode||0}monitor(e,t=!1){const r=ai(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,xe.of)(null);const d=Bh(r)||this._getDocument(),h=this._elementInfo.get(r);if(h)return t&&(h.checkChildren=!0),h.subject;const c={checkChildren:t,subject:new Se.x,rootNode:d};return this._elementInfo.set(r,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){const t=ai(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const d=ai(e);d===this._getDocument().activeElement?this._getClosestElementsInfo(d).forEach(([c,o])=>this._originChanged(c,t,o)):(this._setOrigin(t),"function"==typeof d.focus&&d.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),d=ya(e);!r||!r.checkChildren&&t!==d||this._originChanged(t,this._getFocusOrigin(d),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,tm),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,tm)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ke(this._stopInputModalityDetector)).subscribe(d=>{this._setOrigin(d,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,tm),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,tm),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,d)=>{(d===e||r.checkChildren&&d.contains(e))&&t.push([d,r])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const d=e.labels;if(d)for(let h=0;h{class i{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new n.vpe}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Ii))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),i})();const eu="cdk-high-contrast-black-on-white",tu="cdk-high-contrast-white-on-black",nu="cdk-high-contrast-active";let $h=(()=>{class i{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,n.f3M)(Jf).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,d=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),d){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(nu,eu,tu),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(nu,eu):2===t&&e.add(nu,tu)}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn),n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),bl=(()=>{class i{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG($h))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[$d]}),i})();const BS=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function vv(){return(0,n.f3M)(x.K0)}}),Tv=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let xn=(()=>{class i{constructor(e){if(this.value="ltr",this.change=new n.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function xv(i){const s=i?.toLowerCase()||"";return"auto"===s&&typeof navigator<"u"&&navigator?.language?Tv.test(navigator.language)?"rtl":"ltr":"rtl"===s?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(BS,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),iu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();function Ib(i,s){if(1&i&&n._UZ(0,"mat-pseudo-checkbox",4),2&i){const e=n.oxw();n.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function Ev(i,s){if(1&i&&(n.TgZ(0,"span",5),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij("(",e.group.label,")")}}const nm=["*"];let VS=(()=>{class i{}return i.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",i.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",i.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",i.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",i})(),jS=(()=>{class i{}return i.COMPLEX="375ms",i.ENTERING="225ms",i.EXITING="195ms",i})();const NS=new n.OlP("mat-sanity-checks",{providedIn:"root",factory:function US(){return!0}});let ht=(()=>{class i{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!jf()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return i.\u0275fac=function(e){return new(e||i)(n.LFG($h),n.LFG(NS,8),n.LFG(x.K0))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[iu,iu]}),i})();function Qr(i){return class extends i{constructor(...s){super(...s),this._disabled=!1}get disabled(){return this._disabled}set disabled(s){this._disabled=Oe(s)}}}function Ti(i,s){return class extends i{constructor(...e){super(...e),this.defaultColor=s,this.color=s}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function mr(i){return class extends i{constructor(...s){super(...s),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(s){this._disableRipple=Oe(s)}}}function wl(i,s=0){return class extends i{constructor(...e){super(...e),this._tabIndex=s,this.defaultTabIndex=s}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?_n(e):this.defaultTabIndex}}}function Jh(i){return class extends i{constructor(...s){super(...s),this.errorState=!1}updateErrorState(){const s=this.errorState,d=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);d!==s&&(this.errorState=d,this.stateChanges.next())}}}function Zh(i){return class extends i{constructor(...s){super(...s),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ln.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(s){s.next(),s.complete()}}}const _o=new n.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function im(){return(0,n.f3M)(n.soG)}});class Un{constructor(){this._localeChanges=new Se.x,this.localeChanges=this._localeChanges}getValidDateOrNull(s){return this.isDateInstance(s)&&this.isValid(s)?s:null}deserialize(s){return null==s||this.isDateInstance(s)&&this.isValid(s)?s:this.invalid()}setLocale(s){this.locale=s,this._localeChanges.next()}compareDate(s,e){return this.getYear(s)-this.getYear(e)||this.getMonth(s)-this.getMonth(e)||this.getDate(s)-this.getDate(e)}sameDate(s,e){if(s&&e){let t=this.isValid(s),r=this.isValid(e);return t&&r?!this.compareDate(s,e):t==r}return s==e}clampDate(s,e,t){return e&&this.compareDate(s,e)<0?e:t&&this.compareDate(s,t)>0?t:s}}const _i=new n.OlP("mat-date-formats"),Ob=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function rm(i,s){const e=Array(i);for(let t=0;t{class i extends Un{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return rm(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return rm(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return rm(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let d=this._createDateWithOverflow(e,t,r);return d.getMonth(),d}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Ob.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const d=new Date;return d.setFullYear(e,t,r),d.setHours(0,0,0,0),d}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(_o,8),n.LFG(yn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Hv={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Bb=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Un,useClass:Qh}]}),i})(),Vb=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:_i,useValue:Hv}],imports:[Bb]}),i})(),Ca=(()=>{class i{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),yl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),i})();function Qa(i,s,e){i.nativeElement.classList.toggle(s,e)}let Cl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})();class ru{constructor(s,e,t,r=!1){this._renderer=s,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const jb={enterDuration:225,exitDuration:150},Xh=Ja({passive:!0}),ep=["mousedown","touchstart"],tp=["mouseup","mouseleave","touchend","touchcancel"];class am{constructor(s,e,t,r){this._target=s,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=ai(t))}fadeInRipple(s,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),d={...jb,...t.animation};t.centered&&(s=r.left+r.width/2,e=r.top+r.height/2);const h=t.radius||function sm(i,s,e){const t=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),r=Math.max(Math.abs(s-e.top),Math.abs(s-e.bottom));return Math.sqrt(t*t+r*r)}(s,e,r),c=s-r.left,o=e-r.top,a=d.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=c-h+"px",l.style.top=o-h+"px",l.style.height=2*h+"px",l.style.width=2*h+"px",null!=t.color&&(l.style.backgroundColor=t.color),l.style.transitionDuration=`${a}ms`,this._containerElement.appendChild(l);const u=window.getComputedStyle(l),m=u.transitionDuration,g="none"===u.transitionProperty||"0s"===m||"0s, 0s"===m,f=new ru(this,l,t,g);l.style.transform="scale3d(1, 1, 1)",f.state=0,t.persistent||(this._mostRecentTransientRipple=f);let y=null;return!g&&(a||d.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const j=()=>this._finishRippleTransition(f),le=()=>this._destroyRipple(f);l.addEventListener("transitionend",j),l.addEventListener("transitioncancel",le),y={onTransitionEnd:j,onTransitionCancel:le}}),this._activeRipples.set(f,y),(g||!a)&&this._finishRippleTransition(f),f}fadeOutRipple(s){if(2===s.state||3===s.state)return;const e=s.element,t={...jb,...s.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",s.state=2,(s._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(s)}fadeOutAll(){this._getActiveRipples().forEach(s=>s.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(s=>{s.config.persistent||s.fadeOut()})}setupTriggerEvents(s){const e=ai(s);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(ep))}handleEvent(s){"mousedown"===s.type?this._onMousedown(s):"touchstart"===s.type?this._onTouchStart(s):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(tp),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(s){0===s.state?this._startFadeOutTransition(s):2===s.state&&this._destroyRipple(s)}_startFadeOutTransition(s){const e=s===this._mostRecentTransientRipple,{persistent:t}=s.config;s.state=1,!t&&(!e||!this._isPointerDown)&&s.fadeOut()}_destroyRipple(s){const e=this._activeRipples.get(s)??null;this._activeRipples.delete(s),this._activeRipples.size||(this._containerRect=null),s===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),s.state=3,null!==e&&(s.element.removeEventListener("transitionend",e.onTransitionEnd),s.element.removeEventListener("transitioncancel",e.onTransitionCancel)),s.element.remove()}_onMousedown(s){const e=Qf(s),t=this._lastTouchStartEvent&&Date.now(){!s.config.persistent&&(1===s.state||s.config.terminateOnPointerUp&&0===s.state)&&s.fadeOut()}))}_registerEvents(s){this._ngZone.runOutsideAngular(()=>{s.forEach(e=>{this._triggerElement.addEventListener(e,this,Xh)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(ep.forEach(s=>{this._triggerElement.removeEventListener(s,this,Xh)}),this._pointerUpEventsRegistered&&tp.forEach(s=>{this._triggerElement.removeEventListener(s,this,Xh)}))}}const Nb=new n.OlP("mat-ripple-global-options");let Lr=(()=>{class i{constructor(e,t,r,d,h){this._elementRef=e,this._animationMode=h,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=d||{},this._rippleRenderer=new am(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(yn),n.Y36(Nb,8),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),i})(),Kr=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})(),om=(()=>{class i{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&n.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),i})(),lm=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht]}),i})();const cm=new n.OlP("MAT_OPTION_PARENT_COMPONENT"),dm=new n.OlP("MatOptgroup");let zS=0;class Rv{constructor(s,e=!1){this.source=s,this.isUserInput=e}}let um=(()=>{class i{constructor(e,t,r,d){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=d,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+zS++,this.onSelectionChange=new n.vpe,this._stateChanges=new Se.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Oe(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!ri(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Rv(this,e))}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),i})(),Al=(()=>{class i extends um{constructor(e,t,r,d){super(e,t,r,d)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(cm,8),n.Y36(dm,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(d){return t._handleKeydown(d)}),2&e&&(n.Ikx("id",t.id),n.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),n.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[n.qOj],ngContentSelectors:nm,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,Ib,1,2,"mat-pseudo-checkbox",0),n.TgZ(1,"span",1),n.Hsn(2),n.qZA(),n.YNc(3,Ev,2,1,"span",2),n._UZ(4,"div",3)),2&e&&(n.Q6J("ngIf",t.multiple),n.xp6(3),n.Q6J("ngIf",t.group&&t.group._inert),n.xp6(1),n.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},dependencies:[Lr,x.O5,om],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),i})();function Fb(i,s,e){if(e.length){let t=s.toArray(),r=e.toArray(),d=0;for(let h=0;h{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Kr,x.ez,ht,lm]}),i})();const Yb=["mat-button",""],Lv=["*"],Bv=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],qb=Ti(Qr(mr(class{constructor(i){this._elementRef=i}})));let Ot=(()=>{class i extends qb{constructor(e,t,r){super(e),this._focusMonitor=t,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const d of Bv)this._hasHostAttributes(d)&&this._getHostElement().classList.add(d);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Ii),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&n.Gf(Lr,5),2&e){let r;n.iGM(r=n.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(n.uIk("disabled",t.disabled||null),n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.qOj],attrs:Yb,ngContentSelectors:Lv,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"span",0),n.Hsn(1),n.qZA(),n._UZ(2,"span",1)(3,"span",2)),2&e&&(n.xp6(2),n.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),n.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Lr],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),i})(),bi=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Kr,ht,ht]}),i})();var pm=E(1144);const Vv=["addListener","removeListener"],jv=["addEventListener","removeEventListener"],WS=["on","off"];function ea(i,s,e,t){if((0,sn.m)(e)&&(t=e,e=void 0),t)return ea(i,s,e).pipe((0,Si.Z)(t));const[r,d]=function fm(i){return(0,sn.m)(i.addEventListener)&&(0,sn.m)(i.removeEventListener)}(i)?jv.map(h=>c=>i[h](s,c,e)):function Uv(i){return(0,sn.m)(i.addListener)&&(0,sn.m)(i.removeListener)}(i)?Vv.map(zb(i,s)):function Nv(i){return(0,sn.m)(i.on)&&(0,sn.m)(i.off)}(i)?WS.map(zb(i,s)):[];if(!r&&(0,pm.z)(i))return(0,gi.z)(h=>ea(h,s,e))((0,Qn.Xf)(i));if(!r)throw new TypeError("Invalid event target");return new ln.y(h=>{const c=(...o)=>h.next(1d(c)})}function zb(i,s){return e=>t=>i[e](s,t)}var Gb=E(4408);const au={schedule(i){let s=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=au;t&&(s=t.requestAnimationFrame,e=t.cancelAnimationFrame);const r=s(d=>{e=void 0,i(d)});return new Rt.w0(()=>e?.(r))},requestAnimationFrame(...i){const{delegate:s}=au;return(s?.requestAnimationFrame||requestAnimationFrame)(...i)},cancelAnimationFrame(...i){const{delegate:s}=au;return(s?.cancelAnimationFrame||cancelAnimationFrame)(...i)},delegate:void 0};var ip=E(7565);const mm=new class Fv extends ip.v{flush(s){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;s=s||t.shift();do{if(r=s.execute(s.state,s.delay))break}while((s=t[0])&&s.id===e&&t.shift());if(this._active=!1,r){for(;(s=t[0])&&s.id===e&&t.shift();)s.unsubscribe();throw r}}}(class np extends Gb.o{constructor(s,e){super(s,e),this.scheduler=s,this.work=e}requestAsyncId(s,e,t=0){return null!==t&&t>0?super.requestAsyncId(s,e,t):(s.actions.push(this),s._scheduled||(s._scheduled=au.requestAnimationFrame(()=>s.flush(void 0))))}recycleAsyncId(s,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(s,e,t);s.actions.some(r=>r.id===e)||(au.cancelAnimationFrame(e),s._scheduled=void 0)}});let Jb,$b=1;const gm={};function rp(i){return i in gm&&(delete gm[i],!0)}const $S={setImmediate(i){const s=$b++;return gm[s]=!0,Jb||(Jb=Promise.resolve()),Jb.then(()=>rp(s)&&i()),s},clearImmediate(i){rp(i)}},{setImmediate:Zb,clearImmediate:Qb}=$S,su={setImmediate(...i){const{delegate:s}=su;return(s?.setImmediate||Zb)(...i)},clearImmediate(i){const{delegate:s}=su;return(s?.clearImmediate||Qb)(i)},delegate:void 0},Aa=new class _m extends ip.v{flush(s){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;s=s||t.shift();do{if(r=s.execute(s.state,s.delay))break}while((s=t[0])&&s.id===e&&t.shift());if(this._active=!1,r){for(;(s=t[0])&&s.id===e&&t.shift();)s.unsubscribe();throw r}}}(class Kb extends Gb.o{constructor(s,e){super(s,e),this.scheduler=s,this.work=e}requestAsyncId(s,e,t=0){return null!==t&&t>0?super.requestAsyncId(s,e,t):(s.actions.push(this),s._scheduled||(s._scheduled=su.setImmediate(s.flush.bind(s,void 0))))}recycleAsyncId(s,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(s,e,t);s.actions.some(r=>r.id===e)||(su.clearImmediate(e),s._scheduled=void 0)}});var ou=E(4986),wm=E(2805);function Dc(i,s=ou.z){return function lu(i){return(0,Pi.e)((s,e)=>{let t=!1,r=null,d=null,h=!1;const c=()=>{if(d?.unsubscribe(),d=null,t){t=!1;const a=r;r=null,e.next(a)}h&&e.complete()},o=()=>{d=null,h&&e.complete()};s.subscribe((0,nt.x)(e,a=>{t=!0,r=a,d||(0,Qn.Xf)(i(a)).subscribe(d=(0,nt.x)(e,c,o))},()=>{h=!0,(!t||!d||d.closed)&&e.complete()}))})}(()=>(0,wm.H)(i,s))}class ew{}function cu(i){return i&&"function"==typeof i.connect}class du extends ew{constructor(s){super(),this._data=s}connect(){return Vt(this._data)?this._data:(0,xe.of)(this._data)}disconnect(){}}class tw{applyChanges(s,e,t,r,d){s.forEachOperation((h,c,o)=>{let a,l;if(null==h.previousIndex){const u=t(h,c,o);a=e.createEmbeddedView(u.templateRef,u.context,u.index),l=1}else null==o?(e.remove(c),l=3):(a=e.get(c),e.move(a,o),l=2);d&&d({context:a?.context,operation:l,record:h})})}detach(){}}class nw{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(s,e,t,r,d){s.forEachOperation((h,c,o)=>{let a,l;null==h.previousIndex?(a=this._insertView(()=>t(h,c,o),o,e,r(h)),l=a?1:0):null==o?(this._detachAndCacheView(c,e),l=3):(a=this._moveView(c,o,e,r(h)),l=2),d&&d({context:a?.context,operation:l,record:h})})}detach(){for(const s of this._viewCache)s.destroy();this._viewCache=[]}_insertView(s,e,t,r){const d=this._insertViewFromCache(e,t);if(d)return void(d.context.$implicit=r);const h=s();return t.createEmbeddedView(h.templateRef,h.context,h.index)}_detachAndCacheView(s,e){const t=e.detach(s);this._maybeCacheView(t,e)}_moveView(s,e,t,r){const d=t.get(s);return t.move(d,e),d.context.$implicit=r,d}_maybeCacheView(s,e){if(this._viewCache.lengththis._markSelected(d)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...s){this._verifyValueAssignment(s),s.forEach(t=>this._markSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...s){this._verifyValueAssignment(s),s.forEach(t=>this._unmarkSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...s){this._verifyValueAssignment(s);const e=this.selected,t=new Set(s);s.forEach(d=>this._markSelected(d)),e.filter(d=>!t.has(d)).forEach(d=>this._unmarkSelected(d));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(s){return this.isSelected(s)?this.deselect(s):this.select(s)}clear(s=!0){this._unmarkAll();const e=this._hasQueuedChanges();return s&&this._emitChangeEvent(),e}isSelected(s){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,s))return!0;return!1}return this._selection.has(s)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(s){this._multiple&&this.selected&&this._selected.sort(s)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(s){this.isSelected(s)||(this._multiple||this._unmarkAll(),this.isSelected(s)||this._selection.add(s),this._emitChanges&&this._selectedToEmit.push(s))}_unmarkSelected(s){this.isSelected(s)&&(this._selection.delete(s),this._emitChanges&&this._deselectedToEmit.push(s))}_unmarkAll(){this.isEmpty()||this._selection.forEach(s=>this._unmarkSelected(s))}_verifyValueAssignment(s){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let ym=(()=>{class i{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const vl=new n.OlP("_ViewRepeater"),Yv=["contentWrapper"],qv=["*"],zv=new n.OlP("VIRTUAL_SCROLL_STRATEGY");class iw{constructor(s,e,t){this._scrolledIndexChange=new Se.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe(mo()),this._viewport=null,this._itemSize=s,this._minBufferPx=e,this._maxBufferPx=t}attach(s){this._viewport=s,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(s,e,t){this._itemSize=s,this._minBufferPx=e,this._maxBufferPx=t,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(s,e){this._viewport&&this._viewport.scrollToOffset(s*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const s=this._viewport.getRenderedRange(),e={start:s.start,end:s.end},t=this._viewport.getViewportSize(),r=this._viewport.getDataLength();let d=this._viewport.measureScrollOffset(),h=this._itemSize>0?d/this._itemSize:0;if(e.end>r){const o=Math.ceil(t/this._itemSize),a=Math.max(0,Math.min(h,r-o));h!=a&&(h=a,d=a*this._itemSize,e.start=Math.floor(h)),e.end=Math.max(0,Math.min(r,e.start+o))}const c=d-e.start*this._itemSize;if(c0&&(e.end=Math.min(r,e.end+a),e.start=Math.max(0,Math.floor(h-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(h))}}function Cm(i){return i._scrollStrategy}let Gv=(()=>{class i{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new iw(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=_n(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=_n(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=_n(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[n._Bn([{provide:zv,useFactory:Cm,deps:[(0,n.Gpc)(()=>i)]}]),n.TTD]}),i})(),Tl=(()=>{class i{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new Se.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ln.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Dc(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,xe.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Ce.h)(d=>!d||r.indexOf(d)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,d)=>{this._scrollableContainsElement(d,e)&&t.push(d)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=ai(t),d=e.getElementRef().nativeElement;do{if(r==d)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ea(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b),n.LFG(yn),n.LFG(x.K0,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),xl=(()=>{class i{constructor(e,t,r,d){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=d,this._destroyed=new Se.x,this._elementScrolled=new ln.y(h=>this.ngZone.runOutsideAngular(()=>ea(this.elementRef.nativeElement,"scroll").pipe(Ke(this._destroyed)).subscribe(h)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&0!=Fd()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Fd()?e.left=e.right:1==Fd()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;eb()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",d=this.elementRef.nativeElement;if("top"==e)return d.scrollTop;if("bottom"==e)return d.scrollHeight-d.clientHeight-d.scrollTop;const h=this.dir&&"rtl"==this.dir.value;return"start"==e?e=h?r:t:"end"==e&&(e=h?t:r),h&&2==Fd()?e==t?d.scrollWidth-d.clientWidth-d.scrollLeft:d.scrollLeft:h&&1==Fd()?e==t?d.scrollLeft+d.scrollWidth-d.clientWidth:-d.scrollLeft:e==t?d.scrollLeft:d.scrollWidth-d.clientWidth-d.scrollLeft}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Tl),n.Y36(n.R0b),n.Y36(xn,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),i})(),va=(()=>{class i{constructor(e,t,r){this._platform=e,this._change=new Se.x,this._changeListener=d=>{this._change.next(d)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const d=this._getWindow();d.addEventListener("resize",this._changeListener),d.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,d=r.getBoundingClientRect();return{top:-d.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-d.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Dc(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn),n.LFG(n.R0b),n.LFG(x.K0,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const $v=new n.OlP("VIRTUAL_SCROLLABLE");let rw=(()=>{class i extends xl{constructor(e,t,r,d){super(e,t,r,d)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Tl),n.Y36(n.R0b),n.Y36(xn,8))},i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const Ml=typeof requestAnimationFrame<"u"?mm:Aa;let Jv=(()=>{class i extends rw{constructor(e,t,r,d,h,c,o,a){super(e,c,r,h),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=d,this.scrollable=a,this._detachedSubject=new Se.x,this._renderedRangeSubject=new Se.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ln.y(l=>this._scrollStrategy.scrolledIndexChange.subscribe(u=>Promise.resolve().then(()=>this.ngZone.run(()=>l.next(u))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Rt.w0.EMPTY,this._viewportChanges=o.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Oe(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Zt(null),Dc(0,Ml)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(Ke(this._detachedSubject)).subscribe(t=>{const r=t.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function ap(i,s){return i.start==s.start&&i.end==s.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const d="horizontal"==this.orientation,h=d?"X":"Y";let o=`translate${h}(${Number((d&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(o+=` translate${h}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=o&&(this._renderedContentTransform=o,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const r={behavior:t};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const r="left",d="right",h="rtl"==this.dir?.value;t="start"==e?h?d:r:"end"==e?h?r:d:e||("horizontal"===this.orientation?"left":"top");const c=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-c}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(zv,8),n.Y36(xn,8),n.Y36(Tl),n.Y36(va),n.Y36($v,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&n.Gf(Yv,7),2&e){let r;n.iGM(r=n.CRH())&&(t._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[n._Bn([{provide:xl,useFactory:(s,e)=>s||e,deps:[rw,i]}]),n.qOj],ngContentSelectors:qv,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA(),n._UZ(3,"div",2)),2&e&&(n.xp6(3),n.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),i})();function Hc(i,s,e){if(!e.getBoundingClientRect)return 0;const r=e.getBoundingClientRect();return"horizontal"===i?"start"===s?r.left:r.right:"start"===s?r.top:r.bottom}let Zv=(()=>{class i{constructor(e,t,r,d,h,c){this._viewContainerRef=e,this._template=t,this._differs=r,this._viewRepeater=d,this._viewport=h,this.viewChange=new Se.x,this._dataSourceChanges=new Se.x,this.dataStream=this._dataSourceChanges.pipe(Zt(null),function Xb(){return(0,Pi.e)((i,s)=>{let e,t=!1;i.subscribe((0,nt.x)(s,r=>{const d=e;e=r,t&&s.next([d,r]),t=!0}))})}(),(0,bn.w)(([o,a])=>this._changeDataSource(o,a)),tn(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Se.x,this.dataStream.subscribe(o=>{this._data=o,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(Ke(this._destroyed)).subscribe(o=>{this._renderedRange=o,this.viewChange.observers.length&&c.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,cu(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new du(Vt(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,r)=>e(t+(this._renderedRange?this._renderedRange.start:0),r):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=_n(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const r=e.start-this._renderedRange.start,d=e.end-e.start;let h,c;for(let o=0;o-1;o--){const a=this._viewContainerRef.get(o+r);if(a&&a.rootNodes.length){c=a.rootNodes[a.rootNodes.length-1];break}}return h&&c?Hc(t,"end",c)-Hc(t,"start",h):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,xe.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const r=this._viewContainerRef.get(t);r.context.index=this._renderedRange.start+t,r.context.count=e,this._updateComputedContextProperties(r.context),r.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(d,h,c)=>this._getEmbeddedViewArgs(d,c),d=>d.item),e.forEachIdentityChange(d=>{this._viewContainerRef.get(d.currentIndex).context.$implicit=d.item});const t=this._data.length;let r=this._viewContainerRef.length;for(;r--;){const d=this._viewContainerRef.get(r);d.context.index=this._renderedRange.start+r,d.context.count=t,this._updateComputedContextProperties(d.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(vl),n.Y36(Jv,4),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[n._Bn([{provide:vl,useClass:nw}])]}),i})(),Ds=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),nr=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[iu,Ds,iu,Ds]}),i})();class bo{attach(s){return this._attachedHost=s,s.attach(this)}detach(){let s=this._attachedHost;null!=s&&(this._attachedHost=null,s.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(s){this._attachedHost=s}}class xa extends bo{constructor(s,e,t,r){super(),this.component=s,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class Ir extends bo{constructor(s,e,t,r){super(),this.templateRef=s,this.viewContainerRef=e,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(s,e=this.context){return this.context=e,super.attach(s)}detach(){return this.context=void 0,super.detach()}}class Rc extends bo{constructor(s){super(),this.element=s instanceof n.SBq?s.nativeElement:s}}class wo{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(s){return s instanceof xa?(this._attachedPortal=s,this.attachComponentPortal(s)):s instanceof Ir?(this._attachedPortal=s,this.attachTemplatePortal(s)):this.attachDomPortal&&s instanceof Rc?(this._attachedPortal=s,this.attachDomPortal(s)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(s){this._disposeFn=s}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class kc extends wo{constructor(s,e,t,r,d){super(),this.outletElement=s,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=h=>{const c=h.element,o=this._document.createComment("dom-portal");c.parentNode.insertBefore(o,c),this.outletElement.appendChild(c),this._attachedPortal=h,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(c,o)})},this._document=d}attachComponentPortal(s){const t=(s.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(s.component);let r;return s.viewContainerRef?(r=s.viewContainerRef.createComponent(t,s.viewContainerRef.length,s.injector||s.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(s.injector||this._defaultInjector||n.zs3.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=s,r}attachTemplatePortal(s){let e=s.viewContainerRef,t=e.createEmbeddedView(s.templateRef,s.context,{injector:s.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=s,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(s){return s.hostView.rootNodes[0]}}let Lc=(()=>{class i extends Ir{constructor(e,t){super(e,t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.s_b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.qOj]}),i})(),Ma=(()=>{class i extends wo{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new n.vpe,this.attachDomPortal=d=>{const h=d.element,c=this._document.createComment("dom-portal");d.setAttachedHost(this),h.parentNode.insertBefore(c,h),this._getRootNode().appendChild(h),this._attachedPortal=d,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(h,c)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,d=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),h=t.createComponent(d,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(h.hostView.rootNodes[0]),super.setDisposeFn(()=>h.destroy()),this._attachedPortal=e,this._attachedRef=h,this.attached.emit(h),h}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36(x.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.qOj]}),i})(),Hs=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();var Mn=E(6451);const Tm=eb();class ow{constructor(s,e){this._viewportRuler=s,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const s=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=s.style.left||"",this._previousHTMLStyles.top=s.style.top||"",s.style.left=hi(-this._previousScrollPosition.left),s.style.top=hi(-this._previousScrollPosition.top),s.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const s=this._document.documentElement,t=s.style,r=this._document.body.style,d=t.scrollBehavior||"",h=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,s.classList.remove("cdk-global-scrollblock"),Tm&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Tm&&(t.scrollBehavior=d,r.scrollBehavior=h)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class tT{constructor(s,e,t,r){this._scrollDispatcher=s,this._ngZone=e,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(s){this._overlayRef=s}enable(){if(this._scrollSubscription)return;const s=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=s.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=s.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class lw{enable(){}disable(){}attach(){}}function xm(i,s){return s.some(e=>i.bottome.bottom||i.righte.right)}function Mm(i,s){return s.some(e=>i.tope.bottom||i.lefte.right)}class nT{constructor(s,e,t,r){this._scrollDispatcher=s,this._viewportRuler=e,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(s){this._overlayRef=s}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();xm(e,[{width:t,height:r,bottom:r,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let cw=(()=>{class i{constructor(e,t,r,d){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new lw,this.close=h=>new tT(this._scrollDispatcher,this._ngZone,this._viewportRuler,h),this.block=()=>new ow(this._viewportRuler,this._document),this.reposition=h=>new nT(this._scrollDispatcher,this._viewportRuler,this._ngZone,h),this._document=d}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Tl),n.LFG(va),n.LFG(n.R0b),n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class Sl{constructor(s){if(this.scrollStrategy=new lw,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,s){const e=Object.keys(s);for(const t of e)void 0!==s[t]&&(this[t]=s[t])}}}class op{constructor(s,e){this.connectionPair=s,this.scrollableViewProperties=e}}let hw=(()=>{class i{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),lp=(()=>{class i extends hw{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const d=this._attachedOverlays;for(let h=d.length-1;h>-1;h--)if(d[h]._keydownEvents.observers.length>0){const c=d[h]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(r)):c.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0),n.LFG(n.R0b,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),cp=(()=>{class i extends hw{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=d=>{this._pointerDownEventTarget=ya(d)},this._clickListener=d=>{const h=ya(d),c="click"===d.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:h;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){const l=o[a];if(l._outsidePointerEvents.observers.length<1||!l.hasAttached())continue;if(l.overlayElement.contains(h)||l.overlayElement.contains(c))break;const u=l._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(d)):u.next(d)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0),n.LFG(yn),n.LFG(n.R0b,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ic=(()=>{class i{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||jf()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let d=0;dthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Se.x,this._outsidePointerEvents=new Se.x,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(s){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(s);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const s=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),s}dispose(){const s=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,s&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(s){s!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=s,this.hasAttached()&&(s.attach(this),this.updatePosition()))}updateSize(s){this._config={...this._config,...s},this._updateElementSize()}setDirection(s){this._config={...this._config,direction:s},this._updateElementDirection()}addPanelClass(s){this._pane&&this._toggleClasses(this._pane,s,!0)}removePanelClass(s){this._pane&&this._toggleClasses(this._pane,s,!1)}getDirection(){const s=this._config.direction;return s?"string"==typeof s?s:s.value:"ltr"}updateScrollStrategy(s){s!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=s,this.hasAttached()&&(s.attach(this),s.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const s=this._pane.style;s.width=hi(this._config.width),s.height=hi(this._config.height),s.minWidth=hi(this._config.minWidth),s.minHeight=hi(this._config.minHeight),s.maxWidth=hi(this._config.maxWidth),s.maxHeight=hi(this._config.maxHeight)}_togglePointerEvents(s){this._pane.style.pointerEvents=s?"":"none"}_attachBackdrop(){const s="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(s)})}):this._backdropElement.classList.add(s)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const s=this._backdropElement;if(s){if(this._animationsDisabled)return void this._disposeBackdrop(s);s.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{s.addEventListener("transitionend",this._backdropTransitionendHandler)}),s.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(s)},500))}}_toggleClasses(s,e,t){const r=Yh(e||[]).filter(d=>!!d);r.length&&(t?s.classList.add(...r):s.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const s=this._ngZone.onStable.pipe(Ke((0,Mn.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),s.unsubscribe())})})}_disposeScrollStrategy(){const s=this._scrollStrategy;s&&(s.disable(),s.detach&&s.detach())}_disposeBackdrop(s){s&&(s.removeEventListener("click",this._backdropClickHandler),s.removeEventListener("transitionend",this._backdropTransitionendHandler),s.remove(),this._backdropElement===s&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const dp="cdk-overlay-connected-position-bounding-box",pw=/([A-Za-z%]+)$/;class Em{constructor(s,e,t,r,d){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=d,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Se.x,this._resizeSubscription=Rt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(s)}get positions(){return this._preferredPositions}attach(s){this._validatePositions(),s.hostElement.classList.add(dp),this._overlayRef=s,this._boundingBox=s.hostElement,this._pane=s.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const s=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,d=[];let h;for(let c of this._preferredPositions){let o=this._getOriginPoint(s,r,c),a=this._getOverlayPoint(o,e,c),l=this._getOverlayFit(a,e,t,c);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(c,o);this._canFitWithFlexibleDimensions(l,a,t)?d.push({position:c,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,c)}):(!h||h.overlayFit.visibleAreao&&(o=l,c=a)}return this._isPushed=!1,void this._applyPosition(c.position,c.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(h.position,h.originPoint);this._applyPosition(h.position,h.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ps(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(dp),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const s=this._lastPosition;if(s){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,s);this._applyPosition(s,e)}else this.apply()}withScrollableContainers(s){return this._scrollables=s,this}withPositions(s){return this._preferredPositions=s,-1===s.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(s){return this._viewportMargin=s,this}withFlexibleDimensions(s=!0){return this._hasFlexibleDimensions=s,this}withGrowAfterOpen(s=!0){return this._growAfterOpen=s,this}withPush(s=!0){return this._canPush=s,this}withLockedPosition(s=!0){return this._positionLocked=s,this}setOrigin(s){return this._origin=s,this}withDefaultOffsetX(s){return this._offsetX=s,this}withDefaultOffsetY(s){return this._offsetY=s,this}withTransformOriginOn(s){return this._transformOriginSelector=s,this}_getOriginPoint(s,e,t){let r,d;if("center"==t.originX)r=s.left+s.width/2;else{const h=this._isRtl()?s.right:s.left,c=this._isRtl()?s.left:s.right;r="start"==t.originX?h:c}return e.left<0&&(r-=e.left),d="center"==t.originY?s.top+s.height/2:"top"==t.originY?s.top:s.bottom,e.top<0&&(d-=e.top),{x:r,y:d}}_getOverlayPoint(s,e,t){let r,d;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,d="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:s.x+r,y:s.y+d}}_getOverlayFit(s,e,t,r){const d=fw(e);let{x:h,y:c}=s,o=this._getOffset(r,"x"),a=this._getOffset(r,"y");o&&(h+=o),a&&(c+=a);let p=0-c,m=c+d.height-t.height,g=this._subtractOverflows(d.width,0-h,h+d.width-t.width),f=this._subtractOverflows(d.height,p,m),y=g*f;return{visibleArea:y,isCompletelyWithinViewport:d.width*d.height===y,fitsInViewportVertically:f===d.height,fitsInViewportHorizontally:g==d.width}}_canFitWithFlexibleDimensions(s,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,d=t.right-e.x,h=up(this._overlayRef.getConfig().minHeight),c=up(this._overlayRef.getConfig().minWidth),a=s.fitsInViewportHorizontally||null!=c&&c<=d;return(s.fitsInViewportVertically||null!=h&&h<=r)&&a}return!1}_pushOverlayOnScreen(s,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:s.x+this._previousPushAmount.x,y:s.y+this._previousPushAmount.y};const r=fw(e),d=this._viewportRect,h=Math.max(s.x+r.width-d.width,0),c=Math.max(s.y+r.height-d.height,0),o=Math.max(d.top-t.top-s.y,0),a=Math.max(d.left-t.left-s.x,0);let l=0,u=0;return l=r.width<=d.width?a||-h:s.xg&&!this._isInitialRender&&!this._growAfterOpen&&(h=s.y-g/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)p=t.width-s.x+this._viewportMargin,l=s.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)u=s.x,l=t.right-s.x;else{const m=Math.min(t.right-s.x+t.left,s.x),g=this._lastBoundingBoxSize.width;l=2*m,u=s.x-m,l>g&&!this._isInitialRender&&!this._growAfterOpen&&(u=s.x-g/2)}return{top:h,left:u,bottom:c,right:p,width:l,height:d}}_setBoundingBoxStyles(s,e){const t=this._calculateBoundingBoxRect(s,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const d=this._overlayRef.getConfig().maxHeight,h=this._overlayRef.getConfig().maxWidth;r.height=hi(t.height),r.top=hi(t.top),r.bottom=hi(t.bottom),r.width=hi(t.width),r.left=hi(t.left),r.right=hi(t.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",d&&(r.maxHeight=hi(d)),h&&(r.maxWidth=hi(h))}this._lastBoundingBoxSize=t,Ps(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Ps(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ps(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(s,e){const t={},r=this._hasExactPosition(),d=this._hasFlexibleDimensions,h=this._overlayRef.getConfig();if(r){const l=this._viewportRuler.getViewportScrollPosition();Ps(t,this._getExactOverlayY(e,s,l)),Ps(t,this._getExactOverlayX(e,s,l))}else t.position="static";let c="",o=this._getOffset(e,"x"),a=this._getOffset(e,"y");o&&(c+=`translateX(${o}px) `),a&&(c+=`translateY(${a}px)`),t.transform=c.trim(),h.maxHeight&&(r?t.maxHeight=hi(h.maxHeight):d&&(t.maxHeight="")),h.maxWidth&&(r?t.maxWidth=hi(h.maxWidth):d&&(t.maxWidth="")),Ps(this._pane.style,t)}_getExactOverlayY(s,e,t){let r={top:"",bottom:""},d=this._getOverlayPoint(e,this._overlayRect,s);return this._isPushed&&(d=this._pushOverlayOnScreen(d,this._overlayRect,t)),"bottom"===s.overlayY?r.bottom=this._document.documentElement.clientHeight-(d.y+this._overlayRect.height)+"px":r.top=hi(d.y),r}_getExactOverlayX(s,e,t){let h,r={left:"",right:""},d=this._getOverlayPoint(e,this._overlayRect,s);return this._isPushed&&(d=this._pushOverlayOnScreen(d,this._overlayRect,t)),h=this._isRtl()?"end"===s.overlayX?"left":"right":"end"===s.overlayX?"right":"left","right"===h?r.right=this._document.documentElement.clientWidth-(d.x+this._overlayRect.width)+"px":r.left=hi(d.x),r}_getScrollVisibility(){const s=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Mm(s,t),isOriginOutsideView:xm(s,t),isOverlayClipped:Mm(e,t),isOverlayOutsideView:xm(e,t)}}_subtractOverflows(s,...e){return e.reduce((t,r)=>t-Math.max(r,0),s)}_getNarrowedViewportRect(){const s=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+s-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:s-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(s,e){return"x"===e?s.offsetX??this._offsetX:s.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(s){this._pane&&Yh(s).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(s=>{this._pane.classList.remove(s)}),this._appliedPanelClasses=[])}_getOriginRect(){const s=this._origin;if(s instanceof n.SBq)return s.nativeElement.getBoundingClientRect();if(s instanceof Element)return s.getBoundingClientRect();const e=s.width||0,t=s.height||0;return{top:s.y,bottom:s.y+t,left:s.x,right:s.x+e,height:t,width:e}}}function Ps(i,s){for(let e in s)s.hasOwnProperty(e)&&(i[e]=s[e]);return i}function up(i){if("number"!=typeof i&&null!=i){const[s,e]=i.split(pw);return e&&"px"!==e?null:parseFloat(s)}return i||null}function fw(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}const Dm="cdk-global-overlay-wrapper";class mw{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(s){const e=s.getConfig();this._overlayRef=s,this._width&&!e.width&&s.updateSize({width:this._width}),this._height&&!e.height&&s.updateSize({height:this._height}),s.hostElement.classList.add(Dm),this._isDisposed=!1}top(s=""){return this._bottomOffset="",this._topOffset=s,this._alignItems="flex-start",this}left(s=""){return this._xOffset=s,this._xPosition="left",this}bottom(s=""){return this._topOffset="",this._bottomOffset=s,this._alignItems="flex-end",this}right(s=""){return this._xOffset=s,this._xPosition="right",this}start(s=""){return this._xOffset=s,this._xPosition="start",this}end(s=""){return this._xOffset=s,this._xPosition="end",this}width(s=""){return this._overlayRef?this._overlayRef.updateSize({width:s}):this._width=s,this}height(s=""){return this._overlayRef?this._overlayRef.updateSize({height:s}):this._height=s,this}centerHorizontally(s=""){return this.left(s),this._xPosition="center",this}centerVertically(s=""){return this.top(s),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const s=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:d,maxWidth:h,maxHeight:c}=t,o=!("100%"!==r&&"100vw"!==r||h&&"100%"!==h&&"100vw"!==h),a=!("100%"!==d&&"100vh"!==d||c&&"100%"!==c&&"100vh"!==c),l=this._xPosition,u=this._xOffset,p="rtl"===this._overlayRef.getConfig().direction;let m="",g="",f="";o?f="flex-start":"center"===l?(f="center",p?g=u:m=u):p?"left"===l||"end"===l?(f="flex-end",m=u):("right"===l||"start"===l)&&(f="flex-start",g=u):"left"===l||"start"===l?(f="flex-start",m=u):("right"===l||"end"===l)&&(f="flex-end",g=u),s.position=this._cssPosition,s.marginLeft=o?"0":m,s.marginTop=a?"0":this._topOffset,s.marginBottom=this._bottomOffset,s.marginRight=o?"0":g,e.justifyContent=f,e.alignItems=a?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const s=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Dm),t.justifyContent=t.alignItems=s.marginTop=s.marginBottom=s.marginLeft=s.marginRight=s.position="",this._overlayRef=null,this._isDisposed=!0}}let aT=(()=>{class i{constructor(e,t,r,d){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=d}global(){return new mw}flexibleConnectedTo(e){return new Em(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(va),n.LFG(x.K0),n.LFG(yn),n.LFG(Ic))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),gw=0,rr=(()=>{class i{constructor(e,t,r,d,h,c,o,a,l,u,p,m){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=d,this._keyboardDispatcher=h,this._injector=c,this._ngZone=o,this._document=a,this._directionality=l,this._location=u,this._outsideClickDispatcher=p,this._animationsModuleType=m}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),d=this._createPortalOutlet(r),h=new Sl(e);return h.direction=h.direction||this._directionality.value,new Oc(d,t,r,h,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+gw++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(n.z2F)),new kc(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(cw),n.LFG(Ic),n.LFG(n._Vd),n.LFG(aT),n.LFG(lp),n.LFG(n.zs3),n.LFG(n.R0b),n.LFG(x.K0),n.LFG(xn),n.LFG(x.Ye),n.LFG(cp),n.LFG(n.QbO,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Hm=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],hp=new n.OlP("cdk-connected-overlay-scroll-strategy");let Pm=(()=>{class i{constructor(e){this.elementRef=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i})(),Rm=(()=>{class i{constructor(e,t,r,d,h){this._overlay=e,this._dir=h,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Rt.w0.EMPTY,this._attachSubscription=Rt.w0.EMPTY,this._detachSubscription=Rt.w0.EMPTY,this._positionSubscription=Rt.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new n.vpe,this.positionChange=new n.vpe,this.attach=new n.vpe,this.detach=new n.vpe,this.overlayKeydown=new n.vpe,this.overlayOutsideClick=new n.vpe,this._templatePortal=new Ir(t,r),this._scrollStrategyFactory=d,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Oe(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Oe(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Oe(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Oe(e)}get push(){return this._push}set push(e){this._push=Oe(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Hm);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!ri(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Sl({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Pm?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(rc(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(hp),n.Y36(xn,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[n.TTD]}),i})();const bw={provide:hp,deps:[rr],useFactory:function _w(i){return()=>i.scrollStrategies.reposition()}};let El=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[rr,bw],imports:[iu,Hs,nr,nr]}),i})();class km{}const yo="*";function fn(i,s){return{type:7,name:i,definitions:s,options:{}}}function Tt(i,s=null){return{type:4,styles:s,timings:i}}function pu(i,s=null){return{type:3,steps:i,options:s}}function yw(i,s=null){return{type:2,steps:i,options:s}}function He(i){return{type:6,styles:i,offset:null}}function Pt(i,s,e){return{type:0,name:i,styles:s,options:e}}function Dl(i){return{type:5,steps:i}}function xt(i,s,e=null){return{type:1,expr:i,animation:s,options:e}}function pp(i=null){return{type:9,options:i}}function gr(i,s,e=null){return{type:11,selector:i,animation:s,options:e}}function Cw(i){Promise.resolve(null).then(i)}class mu{constructor(s=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=s+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Cw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(s=>s()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(s){this._position=this.totalTime?s*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(s){const e="start"==s?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Lm{constructor(s){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=s;let e=0,t=0,r=0;const d=this.players.length;0==d?Cw(()=>this._onFinish()):this.players.forEach(h=>{h.onDone(()=>{++e==d&&this._onFinish()}),h.onDestroy(()=>{++t==d&&this._onDestroy()}),h.onStart(()=>{++r==d&&this._onStart()})}),this.totalTime=this.players.reduce((h,c)=>Math.max(h,c.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this.players.forEach(s=>s.init())}onStart(s){this._onStartFns.push(s)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(s=>s()),this._onStartFns=[])}onDone(s){this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(s=>s.play())}pause(){this.players.forEach(s=>s.pause())}restart(){this.players.forEach(s=>s.restart())}finish(){this._onFinish(),this.players.forEach(s=>s.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(s=>s.destroy()),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this.players.forEach(s=>s.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(s){const e=s*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const s=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=s?s.getPosition():0}beforeDestroy(){this.players.forEach(s=>{s.beforeDestroy&&s.beforeDestroy()})}triggerCallback(s){const e="start"==s?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Aw=["connectionContainer"],KS=["inputContainer"],Om=["label"];function Bm(i,s){1&i&&(n.ynx(0),n.TgZ(1,"div",14),n._UZ(2,"div",15)(3,"div",16)(4,"div",17),n.qZA(),n.TgZ(5,"div",18),n._UZ(6,"div",15)(7,"div",16)(8,"div",17),n.qZA(),n.BQk())}function Ka(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",19),n.NdJ("cdkObserveContent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.updateOutlineGap())}),n.Hsn(1,1),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function cT(i,s){if(1&i&&(n.ynx(0),n.Hsn(1,2),n.TgZ(2,"span"),n._uU(3),n.qZA(),n.BQk()),2&i){const e=n.oxw(2);n.xp6(3),n.Oqu(e._control.placeholder)}}function vw(i,s){1&i&&n.Hsn(0,3,["*ngSwitchCase","true"])}function Xa(i,s){1&i&&(n.TgZ(0,"span",23),n._uU(1," *"),n.qZA())}function Sa(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"label",20,21),n.NdJ("cdkObserveContent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.updateOutlineGap())}),n.YNc(2,cT,4,1,"ng-container",12),n.YNc(3,vw,1,0,"ng-content",12),n.YNc(4,Xa,2,0,"span",22),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),n.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),n.uIk("for",e._control.id)("aria-owns",e._control.id),n.xp6(2),n.Q6J("ngSwitchCase",!1),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Ea(i,s){1&i&&(n.TgZ(0,"div",24),n.Hsn(1,4),n.qZA())}function Tw(i,s){if(1&i&&(n.TgZ(0,"div",25),n._UZ(1,"span",26),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function xw(i,s){if(1&i&&(n.TgZ(0,"div"),n.Hsn(1,5),n.qZA()),2&i){const e=n.oxw();n.Q6J("@transitionMessages",e._subscriptAnimationState)}}function dT(i,s){if(1&i&&(n.TgZ(0,"div",30),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.Q6J("id",e._hintLabelId),n.xp6(1),n.Oqu(e.hintLabel)}}function uT(i,s){if(1&i&&(n.TgZ(0,"div",27),n.YNc(1,dT,2,2,"div",28),n.Hsn(2,6),n._UZ(3,"div",29),n.Hsn(4,7),n.qZA()),2&i){const e=n.oxw();n.Q6J("@transitionMessages",e._subscriptAnimationState),n.xp6(1),n.Q6J("ngIf",e.hintLabel)}}const hT=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],pT=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Vm=0;const Bc=new n.OlP("MatError");let es=(()=>{class i{constructor(e,t){this.id="mat-error-"+Vm++,e||t.nativeElement.setAttribute("aria-live","polite")}}return i.\u0275fac=function(e){return new(e||i)(n.$8M("aria-live"),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&n.uIk("id",t.id)},inputs:{id:"id"},features:[n._Bn([{provide:Bc,useExisting:i}])]}),i})();const Mw={transitionMessages:fn("transitionMessages",[Pt("enter",He({opacity:1,transform:"translateY(0%)"})),xt("void => enter",[He({opacity:0,transform:"translateY(-5px)"}),Tt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let gu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i}),i})(),gT=0;const Um=new n.OlP("MatHint");let Sw=(()=>{class i{constructor(){this.align="start",this.id="mat-hint-"+gT++}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(n.uIk("id",t.id)("align",null),n.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[n._Bn([{provide:Um,useExisting:i}])]}),i})(),ta=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-label"]]}),i})(),fp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-placeholder"]]}),i})();const Nm=new n.OlP("MatPrefix"),Fm=new n.OlP("MatSuffix");let _u=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","matSuffix",""]],features:[n._Bn([{provide:Fm,useExisting:i}])]}),i})(),Ym=0;const Dw=Ti(class{constructor(i){this._elementRef=i}},"primary"),Hw=new n.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),mp=new n.OlP("MatFormField");let ar=(()=>{class i extends Dw{constructor(e,t,r,d,h,c,o){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=d,this._platform=h,this._ngZone=c,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Se.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Ym++,this._labelId="mat-form-field-label-"+Ym++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=d?.appearance||"legacy",d&&(this._hideRequiredMarker=Boolean(d.hideRequiredMarker),d.color&&(this.color=this.defaultColor=d.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Oe(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Zt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ke(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ke(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Mn.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Zt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Zt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ke(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,ea(this._label.nativeElement,"transitionend").pipe((0,rt.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(d=>"start"===d.align):null,r=this._hintChildren?this._hintChildren.find(d=>"end"===d.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",d=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const l=t.querySelectorAll(`${r}, ${d}`);for(let u=0;u0?.75*g+10:0}for(let l=0;l{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,ht,$d,ht]}),i})(),Pw=(()=>{class i{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Qsj),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i}),i})(),Pl=(()=>{class i extends Pw{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const sr=new n.OlP("NgValueAccessor"),wT={provide:sr,useExisting:(0,n.Gpc)(()=>Gi),multi:!0},CT=new n.OlP("CompositionEventMode");let Gi=(()=>{class i extends Pw{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function yT(){const i=(0,x.q)()?(0,x.q)().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(CT,8))},i.\u0275dir=n.lG2({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&n.NdJ("input",function(d){return t._handleInput(d.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(d){return t._compositionEnd(d.target.value)})},features:[n._Bn([wT]),n.qOj]}),i})();function Co(i){return null==i||("string"==typeof i||Array.isArray(i))&&0===i.length}function kw(i){return null!=i&&"number"==typeof i.length}const wi=new n.OlP("NgValidators"),Ao=new n.OlP("NgAsyncValidators"),Lw=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class kn{static min(s){return function zm(i){return s=>{if(Co(s.value)||Co(i))return null;const e=parseFloat(s.value);return!isNaN(e)&&e{if(Co(s.value)||Co(i))return null;const e=parseFloat(s.value);return!isNaN(e)&&e>i?{max:{max:i,actual:s.value}}:null}}(s)}static required(s){return Wm(s)}static requiredTrue(s){return function $m(i){return!0===i.value?null:{required:!0}}(s)}static email(s){return function Jm(i){return Co(i.value)||Lw.test(i.value)?null:{email:!0}}(s)}static minLength(s){return function Zm(i){return s=>Co(s.value)||!kw(s.value)?null:s.value.lengthkw(s.value)&&s.value.length>i?{maxlength:{requiredLength:i,actualLength:s.value.length}}:null}(s)}static pattern(s){return function gp(i){if(!i)return Vc;let s,e;return"string"==typeof i?(e="","^"!==i.charAt(0)&&(e+="^"),e+=i,"$"!==i.charAt(i.length-1)&&(e+="$"),s=new RegExp(e)):(e=i.toString(),s=i),t=>{if(Co(t.value))return null;const r=t.value;return s.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(s)}static nullValidator(s){return null}static compose(s){return vT(s)}static composeAsync(s){return Km(s)}}function Wm(i){return Co(i.value)?{required:!0}:null}function Vc(i){return null}function vo(i){return null!=i}function Iw(i){return(0,n.QGY)(i)?(0,lt.D)(i):i}function Ow(i){let s={};return i.forEach(e=>{s=null!=e?{...s,...e}:s}),0===Object.keys(s).length?null:s}function Rl(i,s){return s.map(e=>e(i))}function _p(i){return i.map(s=>function XS(i){return!i.validate}(s)?s:e=>s.validate(e))}function vT(i){if(!i)return null;const s=i.filter(vo);return 0==s.length?null:function(e){return Ow(Rl(e,s))}}function bp(i){return null!=i?vT(_p(i)):null}function Km(i){if(!i)return null;const s=i.filter(vo);return 0==s.length?null:function(e){return oa(Rl(e,s).map(Iw)).pipe((0,_t.U)(Ow))}}function Bw(i){return null!=i?Km(_p(i)):null}function bt(i,s){return null===i?[s]:Array.isArray(i)?[...i,s]:[i,s]}function Vw(i){return i._rawValidators}function jw(i){return i._rawAsyncValidators}function Xm(i){return i?Array.isArray(i)?i:[i]:[]}function Rs(i,s){return Array.isArray(i)?i.includes(s):i===s}function Uw(i,s){const e=Xm(s);return Xm(i).forEach(r=>{Rs(e,r)||e.push(r)}),e}function bu(i,s){return Xm(s).filter(e=>!Rs(i,e))}class wu{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(s){this._rawValidators=s||[],this._composedValidatorFn=bp(this._rawValidators)}_setAsyncValidators(s){this._rawAsyncValidators=s||[],this._composedAsyncValidatorFn=Bw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(s){this._onDestroyCallbacks.push(s)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(s=>s()),this._onDestroyCallbacks=[]}reset(s){this.control&&this.control.reset(s)}hasError(s,e){return!!this.control&&this.control.hasError(s,e)}getError(s,e){return this.control?this.control.getError(s,e):null}}class Nt extends wu{get formDirective(){return null}get path(){return null}}class ts extends wu{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class eg{constructor(s){this._cd=s}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Wi=(()=>{class i extends eg{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(ts,2))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&n.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[n.qOj]}),i})(),tg=(()=>{class i extends eg{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Nt,10))},i.\u0275dir=n.lG2({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&n.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[n.qOj]}),i})();const vu="VALID",Tu="INVALID",kl="PENDING",jc="DISABLED";function ag(i){return(lg(i)?i.validators:i)||null}function sg(i){return Array.isArray(i)?bp(i):i||null}function og(i,s){return(lg(s)?s.asyncValidators:i)||null}function Yw(i){return Array.isArray(i)?Bw(i):i||null}function lg(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}function HT(i,s,e){const t=i.controls;if(!(s?Object.keys(t):t).length)throw new n.vHH(1e3,"");if(!t[e])throw new n.vHH(1001,"")}function PT(i,s,e){i._forEachChild((t,r)=>{if(void 0===e[r])throw new n.vHH(1002,"")})}class cg{constructor(s,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=s,this._rawAsyncValidators=e,this._composedValidatorFn=sg(this._rawValidators),this._composedAsyncValidatorFn=Yw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(s){this._rawValidators=this._composedValidatorFn=s}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(s){this._rawAsyncValidators=this._composedAsyncValidatorFn=s}get parent(){return this._parent}get valid(){return this.status===vu}get invalid(){return this.status===Tu}get pending(){return this.status==kl}get disabled(){return this.status===jc}get enabled(){return this.status!==jc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(s){this._rawValidators=s,this._composedValidatorFn=sg(s)}setAsyncValidators(s){this._rawAsyncValidators=s,this._composedAsyncValidatorFn=Yw(s)}addValidators(s){this.setValidators(Uw(s,this._rawValidators))}addAsyncValidators(s){this.setAsyncValidators(Uw(s,this._rawAsyncValidators))}removeValidators(s){this.setValidators(bu(s,this._rawValidators))}removeAsyncValidators(s){this.setAsyncValidators(bu(s,this._rawAsyncValidators))}hasValidator(s){return Rs(this._rawValidators,s)}hasAsyncValidator(s){return Rs(this._rawAsyncValidators,s)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(s={}){this.touched=!0,this._parent&&!s.onlySelf&&this._parent.markAsTouched(s)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(s=>s.markAllAsTouched())}markAsUntouched(s={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!s.onlySelf&&this._parent._updateTouched(s)}markAsDirty(s={}){this.pristine=!1,this._parent&&!s.onlySelf&&this._parent.markAsDirty(s)}markAsPristine(s={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!s.onlySelf&&this._parent._updatePristine(s)}markAsPending(s={}){this.status=kl,!1!==s.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!s.onlySelf&&this._parent.markAsPending(s)}disable(s={}){const e=this._parentMarkedDirty(s.onlySelf);this.status=jc,this.errors=null,this._forEachChild(t=>{t.disable({...s,onlySelf:!0})}),this._updateValue(),!1!==s.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...s,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(s={}){const e=this._parentMarkedDirty(s.onlySelf);this.status=vu,this._forEachChild(t=>{t.enable({...s,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:s.emitEvent}),this._updateAncestors({...s,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(s){this._parent&&!s.onlySelf&&(this._parent.updateValueAndValidity(s),s.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(s){this._parent=s}getRawValue(){return this.value}updateValueAndValidity(s={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===vu||this.status===kl)&&this._runAsyncValidator(s.emitEvent)),!1!==s.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!s.onlySelf&&this._parent.updateValueAndValidity(s)}_updateTreeValidity(s={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(s)),this.updateValueAndValidity({onlySelf:!0,emitEvent:s.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?jc:vu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(s){if(this.asyncValidator){this.status=kl,this._hasOwnPendingAsyncValidator=!0;const e=Iw(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:s})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(s,e={}){this.errors=s,this._updateControlsErrors(!1!==e.emitEvent)}get(s){let e=s;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(s,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[s]:null}hasError(s,e){return!!this.getError(s,e)}get root(){let s=this;for(;s._parent;)s=s._parent;return s}_updateControlsErrors(s){this.status=this._calculateStatus(),s&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(s)}_initObservables(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}_calculateStatus(){return this._allControlsDisabled()?jc:this.errors?Tu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kl)?kl:this._anyControlsHaveStatus(Tu)?Tu:vu}_anyControlsHaveStatus(s){return this._anyControls(e=>e.status===s)}_anyControlsDirty(){return this._anyControls(s=>s.dirty)}_anyControlsTouched(){return this._anyControls(s=>s.touched)}_updatePristine(s={}){this.pristine=!this._anyControlsDirty(),this._parent&&!s.onlySelf&&this._parent._updatePristine(s)}_updateTouched(s={}){this.touched=this._anyControlsTouched(),this._parent&&!s.onlySelf&&this._parent._updateTouched(s)}_registerOnCollectionChange(s){this._onCollectionChange=s}_setUpdateStrategy(s){lg(s)&&null!=s.updateOn&&(this._updateOn=s.updateOn)}_parentMarkedDirty(s){return!s&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(s){return null}}class xu extends cg{constructor(s,e,t){super(ag(e),og(t,e)),this.controls=s,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(s,e){return this.controls[s]?this.controls[s]:(this.controls[s]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(s,e,t={}){this.registerControl(s,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(s,e={}){this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),delete this.controls[s],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(s,e,t={}){this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),delete this.controls[s],e&&this.registerControl(s,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(s){return this.controls.hasOwnProperty(s)&&this.controls[s].enabled}setValue(s,e={}){PT(this,0,s),Object.keys(s).forEach(t=>{HT(this,!0,t),this.controls[t].setValue(s[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(s,e={}){null!=s&&(Object.keys(s).forEach(t=>{const r=this.controls[t];r&&r.patchValue(s[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(s={},e={}){this._forEachChild((t,r)=>{t.reset(s[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(s,e,t)=>(s[t]=e.getRawValue(),s))}_syncPendingControls(){let s=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return s&&this.updateValueAndValidity({onlySelf:!0}),s}_forEachChild(s){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&s(t,e)})}_setUpControls(){this._forEachChild(s=>{s.setParent(this),s._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(s){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&s(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(s,e){let t=s;return this._forEachChild((r,d)=>{t=e(t,r,d)}),t}_allControlsDisabled(){for(const s of Object.keys(this.controls))if(this.controls[s].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(s){return this.controls.hasOwnProperty(s)?this.controls[s]:null}}function To(i,s){return[...s.path,i]}function Mu(i,s){ug(i,s),s.valueAccessor.writeValue(i.value),i.disabled&&s.valueAccessor.setDisabledState?.(!0),function IT(i,s){s.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&Ll(i,s)})}(i,s),function BT(i,s){const e=(t,r)=>{s.valueAccessor.writeValue(t),r&&s.viewToModelUpdate(t)};i.registerOnChange(e),s._registerOnDestroy(()=>{i._unregisterOnChange(e)})}(i,s),function OT(i,s){s.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&Ll(i,s),"submit"!==i.updateOn&&i.markAsTouched()})}(i,s),function LT(i,s){if(s.valueAccessor.setDisabledState){const e=t=>{s.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(e),s._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}(i,s)}function Cp(i,s,e=!0){const t=()=>{};s.valueAccessor&&(s.valueAccessor.registerOnChange(t),s.valueAccessor.registerOnTouched(t)),Su(i,s),i&&(s._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Ap(i,s){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(s)})}function ug(i,s){const e=Vw(i);null!==s.validator?i.setValidators(bt(e,s.validator)):"function"==typeof e&&i.setValidators([e]);const t=jw(i);null!==s.asyncValidator?i.setAsyncValidators(bt(t,s.asyncValidator)):"function"==typeof t&&i.setAsyncValidators([t]);const r=()=>i.updateValueAndValidity();Ap(s._rawValidators,r),Ap(s._rawAsyncValidators,r)}function Su(i,s){let e=!1;if(null!==i){if(null!==s.validator){const r=Vw(i);if(Array.isArray(r)&&r.length>0){const d=r.filter(h=>h!==s.validator);d.length!==r.length&&(e=!0,i.setValidators(d))}}if(null!==s.asyncValidator){const r=jw(i);if(Array.isArray(r)&&r.length>0){const d=r.filter(h=>h!==s.asyncValidator);d.length!==r.length&&(e=!0,i.setAsyncValidators(d))}}}const t=()=>{};return Ap(s._rawValidators,t),Ap(s._rawAsyncValidators,t),e}function Ll(i,s){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),s.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function hg(i,s){ug(i,s)}function Eu(i,s){if(!i.hasOwnProperty("model"))return!1;const e=i.model;return!!e.isFirstChange()||!Object.is(s,e.currentValue)}function fg(i,s){i._syncPendingControls(),s.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function vp(i,s){if(!s)return null;let e,t,r;return Array.isArray(s),s.forEach(d=>{d.constructor===Gi?e=d:function NT(i){return Object.getPrototypeOf(i.constructor)===Pl}(d)?t=d:r=d}),r||t||e||null}const YT={provide:Nt,useExisting:(0,n.Gpc)(()=>Ol)},Il=(()=>Promise.resolve(null))();let Ol=(()=>{class i extends Nt{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new n.vpe,this.form=new xu({},bp(e),Bw(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Il.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Mu(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Il.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Il.then(()=>{const t=this._findContainer(e.path),r=new xu({});hg(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Il.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Il.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,fg(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wi,10),n.Y36(Ao,10))},i.\u0275dir=n.lG2({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&n.NdJ("submit",function(d){return t.onSubmit(d)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([YT]),n.qOj]}),i})();function mg(i,s){const e=i.indexOf(s);e>-1&&i.splice(e,1)}function qw(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}const Nn=class extends cg{constructor(s=null,e,t){super(ag(e),og(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(s),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),lg(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=qw(s)?s.value:s)}setValue(s,e={}){this.value=this._pendingValue=s,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(s,e={}){this.setValue(s,e)}reset(s=this.defaultValue,e={}){this._applyFormState(s),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(s){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(s){this._onChange.push(s)}_unregisterOnChange(s){mg(this._onChange,s)}registerOnDisabledChange(s){this._onDisabledChange.push(s)}_unregisterOnDisabledChange(s){mg(this._onDisabledChange,s)}_forEachChild(s){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(s){qw(s)?(this.value=this._pendingValue=s.value,s.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=s}},gg=Nn,GT={provide:ts,useExisting:(0,n.Gpc)(()=>Uc)},_g=(()=>Promise.resolve(null))();let Uc=(()=>{class i extends ts{constructor(e,t,r,d,h){super(),this._changeDetectorRef=h,this.control=new Nn,this._registered=!1,this.update=new n.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=vp(0,d)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Eu(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Mu(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){_g.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&(0,n.D6c)(t);_g.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?To(e,this._parent):[e]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Nt,9),n.Y36(wi,10),n.Y36(Ao,10),n.Y36(sr,10),n.Y36(n.sBO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n._Bn([GT]),n.qOj,n.TTD]}),i})(),$w=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),i})(),xp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const Mp=new n.OlP("NgModelWithFormControlWarning"),Nc={provide:ts,useExisting:(0,n.Gpc)(()=>_r)};let _r=(()=>{class i extends ts{constructor(e,t,r,d){super(),this._ngModelWarningConfig=d,this.update=new n.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=vp(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Cp(t,this,!1),Mu(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Eu(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Cp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(e){return new(e||i)(n.Y36(wi,10),n.Y36(Ao,10),n.Y36(sr,10),n.Y36(Mp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n._Bn([Nc]),n.qOj,n.TTD]}),i})();const ZT={provide:Nt,useExisting:(0,n.Gpc)(()=>Fc)};let Fc=(()=>{class i extends Nt{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Su(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Mu(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Cp(e.control||null,e,!1),function FT(i,s){const e=i.indexOf(s);e>-1&&i.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,fg(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(Cp(t||null,e),(i=>i instanceof Nn)(r)&&(Mu(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);hg(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function VT(i,s){return Su(i,s)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ug(this.form,this),this._oldForm&&Su(this._oldForm,this)}_checkFormPresent(){}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wi,10),n.Y36(Ao,10))},i.\u0275dir=n.lG2({type:i,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&n.NdJ("submit",function(d){return t.onSubmit(d)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([ZT]),n.qOj,n.TTD]}),i})();const KT={provide:ts,useExisting:(0,n.Gpc)(()=>Pu)};let Pu=(()=>{class i extends ts{constructor(e,t,r,d,h){super(),this._ngModelWarningConfig=h,this._added=!1,this.update=new n.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=vp(0,d)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Eu(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return To(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(e){return new(e||i)(n.Y36(Nt,13),n.Y36(wi,10),n.Y36(Ao,10),n.Y36(sr,10),n.Y36(Mp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n._Bn([KT]),n.qOj,n.TTD]}),i})(),Yc=(()=>{class i{constructor(){this._validator=Vc}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Vc,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();const oy={provide:wi,useExisting:(0,n.Gpc)(()=>ns),multi:!0};let ns=(()=>{class i extends Yc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n.D6c,this.createValidator=e=>Wm}enabled(e){return e}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&n.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[n._Bn([oy]),n.qOj]}),i})(),vg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[xp]}),i})(),Tg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[vg]}),i})(),zc=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Mp,useValue:e.warnOnNgModelWithFormControl}]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[vg]}),i})();class xg extends cg{constructor(s,e,t){super(ag(e),og(t,e)),this.controls=s,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(s){return this.controls[this._adjustIndex(s)]}push(s,e={}){this.controls.push(s),this._registerControl(s),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(s,e,t={}){this.controls.splice(s,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(s,e={}){let t=this._adjustIndex(s);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(s,e,t={}){let r=this._adjustIndex(s);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(s,e={}){PT(this,0,s),s.forEach((t,r)=>{HT(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(s,e={}){null!=s&&(s.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(s=[],e={}){this._forEachChild((t,r)=>{t.reset(s[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(s=>s.getRawValue())}clear(s={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:s.emitEvent}))}_adjustIndex(s){return s<0?s+this.length:s}_syncPendingControls(){let s=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return s&&this.updateValueAndValidity({onlySelf:!0}),s}_forEachChild(s){this.controls.forEach((e,t)=>{s(e,t)})}_updateValue(){this.value=this.controls.filter(s=>s.enabled||this.disabled).map(s=>s.value)}_anyControls(s){return this.controls.some(e=>e.enabled&&s(e))}_setUpControls(){this._forEachChild(s=>this._registerControl(s))}_allControlsDisabled(){for(const s of this.controls)if(s.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(s){s.setParent(this),s._registerOnCollectionChange(this._onCollectionChange)}_find(s){return this.at(s)??null}}function hy(i){return!!i&&(void 0!==i.asyncValidators||void 0!==i.validators||void 0!==i.updateOn)}let p0=(()=>{class i{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new i;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let d={};return hy(t)?d=t:null!==t&&(d.validators=t.validator,d.asyncValidators=t.asyncValidator),new xu(r,d)}control(e,t,r){let d={};return this.useNonNullable?(hy(t)?d=t:(d.validators=t,d.asyncValidators=r),new Nn(e,{...d,nonNullable:!0})):new Nn(e,t,r)}array(e,t,r){const d=e.map(h=>this._createControl(h));return new xg(d,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return e instanceof Nn||e instanceof cg?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:zc}),i})(),f0=(()=>{class i extends p0{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:zc}),i})();const is=["trigger"],m0=["panel"];function Hp(i,s){if(1&i&&(n.TgZ(0,"span",8),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.placeholder)}}function Ru(i,s){if(1&i&&(n.TgZ(0,"span",12),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.triggerValue)}}function g0(i,s){1&i&&n.Hsn(0,0,["*ngSwitchCase","true"])}function _0(i,s){if(1&i&&(n.TgZ(0,"span",9),n.YNc(1,Ru,2,1,"span",10),n.YNc(2,g0,1,0,"ng-content",11),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngSwitch",!!e.customTrigger),n.xp6(2),n.Q6J("ngSwitchCase",!0)}}function b0(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",13)(1,"div",14,15),n.NdJ("@transformPanel.done",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._handleKeydown(r))}),n.Hsn(3,1),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("@transformPanelWrap",void 0),n.xp6(1),n.Gre("mat-select-panel ",e._getPanelTheme(),""),n.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),n.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),n.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const Pp=[[["mat-select-trigger"]],"*"],Rp=["mat-select-trigger","*"],fy={transformPanelWrap:fn("transformPanelWrap",[xt("* => void",gr("@transformPanel",[pp()],{optional:!0}))]),transformPanel:fn("transformPanel",[Pt("void",He({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Pt("showing",He({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Pt("showing-multiple",He({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),xt("void => *",Tt("120ms cubic-bezier(0, 0, 0.2, 1)")),xt("* => void",Tt("100ms 25ms linear",He({opacity:0})))])};let kp=0;const Mg=new n.OlP("mat-select-scroll-strategy"),Eg=new n.OlP("MAT_SELECT_CONFIG"),A0={provide:Mg,deps:[rr],useFactory:function Sg(i){return()=>i.scrollStrategies.reposition()}};class v0{constructor(s,e){this.source=s,this.value=e}}const T0=mr(wl(Qr(Jh(class{constructor(i,s,e,t,r){this._elementRef=i,this._defaultErrorStateMatcher=s,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new Se.x}})))),x0=new n.OlP("MatSelectTrigger");let Dg=(()=>{class i extends T0{constructor(e,t,r,d,h,c,o,a,l,u,p,m,g,f){super(h,d,o,a,u),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=c,this._parentFormField=l,this._liveAnnouncer=g,this._defaultOptions=f,this._panelOpen=!1,this._compareWith=(y,j)=>y===j,this._uid="mat-select-"+kp++,this._triggerAriaLabelledBy=null,this._destroy=new Se.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+kp++,this._panelDoneAnimatingStream=new Se.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=Cn(()=>{const y=this.options;return y?y.changes.pipe(Zt(y),(0,bn.w)(()=>(0,Mn.T)(...y.map(j=>j.onSelectionChange)))):this._ngZone.onStable.pipe((0,rt.q)(1),(0,bn.w)(()=>this.optionSelectionChanges))}),this.openedChange=new n.vpe,this._openedStream=this.openedChange.pipe((0,Ce.h)(y=>y),(0,_t.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Ce.h)(y=>!y),(0,_t.U)(()=>{})),this.selectionChange=new n.vpe,this.valueChange=new n.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=f?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=f.typeaheadDebounceInterval),this._scrollStrategyFactory=m,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(kn.required)??!1}set required(e){this._required=Oe(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Oe(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Oe(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=_n(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Kn(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(mo(),Ke(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Ke(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Zt(null),Ke(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,d=13===t||32===t,h=this._keyManager;if(!h.isTyping()&&d&&!ri(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const c=this.selected;h.onKeydown(e);const o=this.selected;o&&c!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,d=40===r||38===r,h=t.isTyping();if(d&&e.altKey)e.preventDefault(),this.close();else if(h||13!==r&&32!==r||!t.activeItem||ri(e))if(!h&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const c=this.options.some(o=>!o.disabled&&!o.selected);this.options.forEach(o=>{o.disabled||(c?o.select():o.deselect())})}else{const c=t.activeItemIndex;t.onKeydown(e),this._multiple&&d&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==c&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,rt.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new IS(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ke(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Ke(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=(0,Mn.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ke(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Mn.T)(...this.options.map(t=>t._stateChanges)).pipe(Ke(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(va),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(Ca),n.Y36(n.SBq),n.Y36(xn,8),n.Y36(Ol,8),n.Y36(Fc,8),n.Y36(mp,8),n.Y36(ts,10),n.$8M("tabindex"),n.Y36(Mg),n.Y36(Xf),n.Y36(Eg,8))},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&(n.Gf(is,5),n.Gf(m0,5),n.Gf(Rm,5)),2&e){let r;n.iGM(r=n.CRH())&&(t.trigger=r.first),n.iGM(r=n.CRH())&&(t.panel=r.first),n.iGM(r=n.CRH())&&(t._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[n.qOj,n.TTD]}),i})(),Jc=(()=>{class i extends Dg{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,t,r){const d=this._getItemHeight();return Math.min(Math.max(0,d*e-t+d/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Ke(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=Fb(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function kv(i,s,e,t){return ie+t?Math.max(0,i-t+s):e}((e+t)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new v0(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),d=this.multiple?56:32;let h;if(this.multiple)h=40;else if(this.disableOptionCentering)h=16;else{let a=this._selectionModel.selected[0]||this.options.first;h=a&&a.group?32:16}r||(h*=-1);const c=0-(e.left+h-(r?d:0)),o=e.right+h-t.width+(r?0:d);c>0?h+=c+8:o>0&&(h-=o+8),this._overlayDir.offsetX=Math.round(h),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const d=this._getItemHeight(),h=(d-this._triggerRect.height)/2,c=Math.floor(256/d);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*d:this._scrollTop===r?(e-(this._getItemCount()-c))*d+(d-(this._getItemCount()*d-256)%d):t-d/2,Math.round(-1*o-h))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),d=this._triggerRect.top-8,h=r.height-this._triggerRect.bottom-8,c=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-c-this._triggerRect.height;a>h?this._adjustPanelUp(a,h):c>d?this._adjustPanelDown(c,d,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const r=Math.round(e-t);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,r){const d=Math.round(e-t);if(this._scrollTop+=d,this._offsetY+=d,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),r=Math.min(t*e,256),h=t*e-r;let c;c=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),c+=Fb(c,this.options,this.optionGroups);const o=r/2;this._scrollTop=this._calculateOverlayScroll(c,o,h),this._offsetY=this._calculateOverlayOffsetY(c,o,h),this._checkOverlayWithinViewport(h)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,x0,5),n.Suo(r,Al,5),n.Suo(r,dm,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.customTrigger=d.first),n.iGM(d=n.CRH())&&(t.options=d),n.iGM(d=n.CRH())&&(t.optionGroups=d)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&n.NdJ("keydown",function(d){return t._handleKeydown(d)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(n.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-activedescendant",t._getAriaActiveDescendant()),n.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[n._Bn([{provide:gu,useExisting:i},{provide:cm,useExisting:i}]),n.qOj],ngContentSelectors:Rp,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(n.F$t(Pp),n.TgZ(0,"div",0,1),n.NdJ("click",function(){return t.toggle()}),n.TgZ(3,"div",2),n.YNc(4,Hp,2,1,"span",3),n.YNc(5,_0,3,2,"span",4),n.qZA(),n.TgZ(6,"div",5),n._UZ(7,"div",6),n.qZA()(),n.YNc(8,b0,4,14,"ng-template",7),n.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=n.MAs(1);n.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),n.xp6(3),n.Q6J("ngSwitch",t.empty),n.uIk("id",t._valueId),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1),n.xp6(3),n.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},dependencies:[x.mk,x.RF,x.n9,x.ED,Rm,Pm],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[fy.transformPanelWrap,fy.transformPanel]},changeDetection:0}),i})(),ku=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[A0],imports:[x.ez,El,hm,ht,Ds,Hl,hm,ht]}),i})();const my=["tooltip"],Hg="tooltip-panel",Pg=Ja({passive:!0}),Rg=new n.OlP("mat-tooltip-scroll-strategy"),Zc={provide:Rg,deps:[rr],useFactory:function or(i){return()=>i.scrollStrategies.reposition({scrollThrottle:20})}},D0=new n.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function H0(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let fE=(()=>{class i{constructor(e,t,r,d,h,c,o,a,l,u,p,m){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=d,this._ngZone=h,this._platform=c,this._ariaDescriber=o,this._focusMonitor=a,this._dir=u,this._defaultOptions=p,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Se.x,this._scrollStrategy=l,this._document=m,p&&(p.position&&(this.position=p.position),p.touchGestures&&(this.touchGestures=p.touchGestures)),u.change.pipe(Ke(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Oe(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=_n(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=_n(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ke(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,Pg)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new xa(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=t.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(Ke(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${Hg}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ke(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Ke(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!ri(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),d=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...d.main}),this._addOffset({...r.fallback,...d.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:d,y:h}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:d,originY:h}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:d,y:h}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:d,overlayY:h}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,rt.q)(1),Ke(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:d}=e;let h;if(h="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===d?"above":"below",h!==this._currentPosition){const c=this._overlayRef;if(c){const o=`${this._cssClassPrefix}-${Hg}-`;c.removePanelClass(o+this._currentPosition),c.addPanelClass(o+h)}this._currentPosition=h}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const r=t.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,Pg)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),i})(),ks=(()=>{class i extends fE{constructor(e,t,r,d,h,c,o,a,l,u,p,m){super(e,t,r,d,h,c,o,a,l,u,p,m),this._tooltipComponent=by}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.SBq),n.Y36(Tl),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(yn),n.Y36(Qd),n.Y36(Ii),n.Y36(Rg),n.Y36(xn,8),n.Y36(D0,8),n.Y36(x.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[n.qOj]}),i})(),_y=(()=>{class i{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Se.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,d=this._hideAnimation;if(t.classList.remove(e?d:r),t.classList.add(e?r:d),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const h=getComputedStyle(t);("0s"===h.getPropertyValue("animation-duration")||"none"===h.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i}),i})(),by=(()=>{class i extends _y{constructor(e,t,r){super(e,r),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(Jf),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&n.Gf(my,7),2&e){let r;n.iGM(r=n.CRH())&&(t._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&n.NdJ("mouseleave",function(d){return t._handleMouseLeave(d)}),2&e&&n.Udp("zoom",t.isVisible()?1:null)},features:[n.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(n.TgZ(0,"div",0,1),n.NdJ("animationend",function(d){return t._handleAnimationEnd(d)}),n.ALo(2,"async"),n._uU(3),n.qZA()),2&e){let r;n.ekj("mat-tooltip-handset",null==(r=n.lcZ(2,4,t._isHandset))?null:r.matches),n.Q6J("ngClass",t.tooltipClass),n.xp6(3),n.Oqu(t.message)}},dependencies:[x.mk,x.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),i})(),Ls=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Zc],imports:[bl,x.ez,El,ht,ht,Ds]}),i})();function kg(i,s){if(1&i&&(n.TgZ(0,"mat-option",19),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function P0(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",16)(1,"mat-select",17),n.NdJ("selectionChange",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d._changePageSize(r.value))}),n.YNc(2,kg,2,2,"mat-option",18),n.qZA()()}if(2&i){const e=n.oxw(2);n.Q6J("appearance",e._formFieldAppearance)("color",e.color),n.xp6(1),n.Q6J("value",e.pageSize)("disabled",e.disabled)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),n.xp6(1),n.Q6J("ngForOf",e._displayedPageSizeOptions)}}function wy(i,s){if(1&i&&(n.TgZ(0,"div",20),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.pageSize)}}function R0(i,s){if(1&i&&(n.TgZ(0,"div",12)(1,"div",13),n._uU(2),n.qZA(),n.YNc(3,P0,3,8,"mat-form-field",14),n.YNc(4,wy,2,1,"div",15),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",e._intl.itemsPerPageLabel," "),n.xp6(1),n.Q6J("ngIf",e._displayedPageSizeOptions.length>1),n.xp6(1),n.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function k0(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.firstPage())}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",22),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),n.uIk("aria-label",e._intl.firstPageLabel)}}function Qc(i,s){if(1&i){const e=n.EpF();n.O4$(),n.kcU(),n.TgZ(0,"button",23),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.lastPage())}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",24),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),n.uIk("aria-label",e._intl.lastPageLabel)}}let Ip=(()=>{class i{constructor(){this.changes=new Se.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const d=e*t;return`${d+1} \u2013 ${d<(r=Math.max(r,0))?Math.min(d+t,r):d+t} of ${r}`}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const yy={provide:Ip,deps:[[new n.FiY,new n.tp0,Ip]],useFactory:function Lg(i){return i||new Ip}},Og=new n.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),gE=Qr(Zh(class{}));let Ay=(()=>{class i extends gE{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new n.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:d,pageSizeOptions:h,hidePageSize:c,showFirstLastButtons:o}=r;null!=d&&(this._pageSize=d),null!=h&&(this._pageSizeOptions=h),null!=c&&(this._hidePageSize=c),null!=o&&(this._showFirstLastButtons=o)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(_n(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=_n(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(_n(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>_n(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Oe(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Oe(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[n.qOj]}),i})(),vy=(()=>{class i extends Ay{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ip),n.Y36(n.sBO),n.Y36(Og,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[n.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,R0,5,3,"div",2),n.TgZ(3,"div",3)(4,"div",4),n._uU(5),n.qZA(),n.YNc(6,k0,3,5,"button",5),n.TgZ(7,"button",6),n.NdJ("click",function(){return t.previousPage()}),n.O4$(),n.TgZ(8,"svg",7),n._UZ(9,"path",8),n.qZA()(),n.kcU(),n.TgZ(10,"button",9),n.NdJ("click",function(){return t.nextPage()}),n.O4$(),n.TgZ(11,"svg",7),n._UZ(12,"path",10),n.qZA()(),n.YNc(13,Qc,3,5,"button",11),n.qZA()()()),2&e&&(n.xp6(2),n.Q6J("ngIf",!t.hidePageSize),n.xp6(3),n.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),n.xp6(1),n.Q6J("ngIf",t.showFirstLastButtons),n.xp6(1),n.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),n.uIk("aria-label",t._intl.previousPageLabel),n.xp6(3),n.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),n.uIk("aria-label",t._intl.nextPageLabel),n.xp6(3),n.Q6J("ngIf",t.showFirstLastButtons))},dependencies:[x.sg,x.O5,Ot,ar,Jc,Al,ks],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),i})(),Lu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[yy],imports:[x.ez,bi,ku,Ls,ht]}),i})();var Bl=E(1005);const L0=["mat-menu-item",""];function Ty(i,s){1&i&&(n.O4$(),n.TgZ(0,"svg",2),n._UZ(1,"polygon",3),n.qZA())}const Op=["*"];function _E(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",0),n.NdJ("keydown",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._handleKeydown(r))})("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._onAnimationStart(r))})("@transformMenu.done",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._onAnimationDone(r))}),n.TgZ(1,"div",1),n.Hsn(2),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),n.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Bp={transformMenu:fn("transformMenu",[Pt("void",He({opacity:0,transform:"scale(0.8)"})),xt("void => enter",Tt("120ms cubic-bezier(0, 0, 0.2, 1)",He({opacity:1,transform:"scale(1)"}))),xt("* => void",Tt("100ms 25ms linear",He({opacity:0})))]),fadeInItems:fn("fadeInItems",[Pt("showing",He({opacity:1})),xt("void => *",[He({opacity:0}),Tt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},I0=new n.OlP("MatMenuContent"),Vp=new n.OlP("MAT_MENU_PANEL"),j0=mr(Qr(class{}));let Kc=(()=>{class i extends j0{constructor(e,t,r,d,h){super(),this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=d,this._changeDetectorRef=h,this.role="menuitem",this._hovered=new Se.x,this._focused=new Se.x,this._highlighted=!1,this._triggersSubmenu=!1,d?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class i{constructor(e,t,r,d){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._changeDetectorRef=d,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new n.n_E,this._tabSubscription=Rt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Se.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new n.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+xy++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Oe(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Oe(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Sc(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Zt(this._directDescendantItems),(0,bn.w)(e=>(0,Mn.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const r=e.toArray(),d=Math.max(0,Math.min(r.length-1,t.activeItemIndex||0));r[d]&&!r[d].disabled?t.setActiveItem(d):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Zt(this._directDescendantItems),(0,bn.w)(t=>(0,Mn.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:ri(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,d=Object.keys(this._classList).find(h=>h.startsWith(this._elevationPrefix));(!d||d===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,t=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===t,r["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Zt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Bg),n.Y36(n.sBO))},i.\u0275dir=n.lG2({type:i,contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,I0,5),n.Suo(r,Kc,5),n.Suo(r,Kc,4)),2&e){let d;n.iGM(d=n.CRH())&&(t.lazyContent=d.first),n.iGM(d=n.CRH())&&(t._allItems=d),n.iGM(d=n.CRH())&&(t.items=d)}},viewQuery:function(e,t){if(1&e&&n.Gf(n.Rgc,5),2&e){let r;n.iGM(r=n.CRH())&&(t.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),i})(),jp=(()=>{class i extends Xc{constructor(e,t,r,d){super(e,t,r,d),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Bg),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&n.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[n._Bn([{provide:Vp,useExisting:i}]),n.qOj],ngContentSelectors:Op,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,_E,3,6,"ng-template"))},dependencies:[x.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Bp.transformMenu,Bp.fadeInItems]},changeDetection:0}),i})();const Vg=new n.OlP("mat-menu-scroll-strategy"),F0={provide:Vg,deps:[rr],useFactory:function N0(i){return()=>i.scrollStrategies.reposition()}},jg=Ja({passive:!0});let CE=(()=>{class i{constructor(e,t,r,d,h,c,o,a,l){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=c,this._dir=o,this._focusMonitor=a,this._ngZone=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Rt.w0.EMPTY,this._hoverSubscription=Rt.w0.EMPTY,this._menuCloseSubscription=Rt.w0.EMPTY,this._handleTouchStart=u=>{Ss(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new n.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new n.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=d,this._parentMaterialMenu=h instanceof Xc?h:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,jg),c&&(c._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,jg),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),d=r.positionStrategy;this._setPosition(e,d),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Xc&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Ke(e.close)).subscribe(()=>{d.withLockedPosition(!1).reapplyLastPosition(),d.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof Xc?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Ce.h)(r=>"void"===r.toState),(0,rt.q)(1),Ke(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Sl({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const d="start"===r.connectionPair.overlayX?"after":"before",h="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(d,h)):e.setPositionClasses(d,h)})}_setPosition(e,t){let[r,d]="before"===e.xPosition?["end","start"]:["start","end"],[h,c]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[o,a]=[h,c],[l,u]=[r,d],p=0;if(this.triggersSubmenu()){if(u=r="before"===e.xPosition?"start":"end",d=l="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const m=this._parentMaterialMenu.items.first;this._parentInnerPadding=m?m._getHostElement().offsetTop:0}p="bottom"===h?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(o="top"===h?"bottom":"top",a="top"===c?"bottom":"top");t.withPositions([{originX:r,originY:o,overlayX:l,overlayY:h,offsetY:p},{originX:d,originY:o,overlayX:u,overlayY:h,offsetY:p},{originX:r,originY:a,overlayX:l,overlayY:c,offsetY:-p},{originX:d,originY:a,overlayX:u,overlayY:c,offsetY:-p}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,xe.of)(),d=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Ce.h)(h=>h!==this._menuItemInstance),(0,Ce.h)(()=>this._menuOpen)):(0,xe.of)();return(0,Mn.T)(e,r,d,t)}_handleMousedown(e){Qf(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Ce.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,Bl.g)(0,Aa)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Xc&&this.menu._isAnimating?this.menu._animationDone.pipe((0,rt.q)(1),(0,Bl.g)(0,Aa),Ke(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Ir(e.templateRef,this._viewContainerRef)),this._portal}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.SBq),n.Y36(n.s_b),n.Y36(Vg),n.Y36(Vp,8),n.Y36(Kc,10),n.Y36(xn,8),n.Y36(Ii),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,hostVars:3,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t._handleClick(d)})("mousedown",function(d){return t._handleMousedown(d)})("keydown",function(d){return t._handleKeydown(d)}),2&e&&n.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),i})(),My=(()=>{class i extends CE{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[n.qOj]}),i})(),Ug=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[F0],imports:[x.ez,ht,Kr,El,Ds,ht]}),i})();const AE=["*"];let Ng;function Up(i){return function vE(){if(void 0===Ng&&(Ng=null,typeof window<"u")){const i=window;void 0!==i.trustedTypes&&(Ng=i.trustedTypes.createPolicy("angular#components",{createHTML:s=>s}))}return Ng}()?.createHTML(i)||i}function Y0(i){return Error(`Unable to find icon with the name "${i}"`)}function q0(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function Fg(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}class rs{constructor(s,e,t){this.url=s,this.svgText=e,this.options=t}}let xo=(()=>{class i{constructor(e,t,r,d){this._httpClient=e,this._sanitizer=t,this._errorHandler=d,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,d){return this._addSvgIconConfig(e,t,new rs(r,null,d))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,d){const h=this._sanitizer.sanitize(n.q3G.HTML,r);if(!h)throw Fg(r);const c=Up(h);return this._addSvgIconConfig(e,t,new rs("",c,d))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new rs(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const d=this._sanitizer.sanitize(n.q3G.HTML,t);if(!d)throw Fg(t);const h=Up(d);return this._addSvgIconSetConfig(e,new rs("",h,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,e);if(!t)throw q0(e);const r=this._cachedIconsByUrl.get(t);return r?(0,xe.of)(ed(r)):this._loadSvgIconFromConfig(new rs(e,null)).pipe((0,nn.b)(d=>this._cachedIconsByUrl.set(t,d)),(0,_t.U)(d=>ed(d)))}getNamedSvgIcon(e,t=""){const r=Yg(t,e);let d=this._svgIconConfigs.get(r);if(d)return this._getSvgFromConfig(d);if(d=this._getIconConfigFromResolvers(t,e),d)return this._svgIconConfigs.set(r,d),this._getSvgFromConfig(d);const h=this._iconSetConfigs.get(t);return h?this._getSvgFromIconSetConfigs(e,h):(0,mi._)(Y0(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,xe.of)(ed(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,_t.U)(t=>ed(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,xe.of)(r):oa(t.filter(h=>!h.svgText).map(h=>this._loadSvgIconSetFromConfig(h).pipe((0,Ri.K)(c=>{const a=`Loading icon set URL: ${this._sanitizer.sanitize(n.q3G.RESOURCE_URL,h.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(a)),(0,xe.of)(null)})))).pipe((0,_t.U)(()=>{const h=this._extractIconWithNameFromAnySet(e,t);if(!h)throw Y0(e);return h}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const d=t[r];if(d.svgText&&d.svgText.toString().indexOf(e)>-1){const h=this._svgElementFromConfig(d),c=this._extractSvgIconFromSet(h,e,d.options);if(c)return c}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,nn.b)(t=>e.svgText=t),(0,_t.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,xe.of)(null):this._fetchIcon(e).pipe((0,nn.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const d=e.querySelector(`[id="${t}"]`);if(!d)return null;const h=d.cloneNode(!0);if(h.removeAttribute("id"),"svg"===h.nodeName.toLowerCase())return this._setSvgAttributes(h,r);if("symbol"===h.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(h),r);const c=this._svgElementFromString(Up(""));return c.appendChild(h),this._setSvgAttributes(c,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(Up("")),r=e.attributes;for(let d=0;dUp(a)),Sr(()=>this._inProgressUrlFetches.delete(h)),(0,qs.B)());return this._inProgressUrlFetches.set(h,o),o}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(Yg(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;rs?s.pathname+s.search:""}}}),Dy=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Fp=Dy.map(i=>`[${i}]`).join(", "),$0=/^url\(['"]?#(.*?)['"]?\)$/;let Ln=(()=>{class i extends Ey{constructor(e,t,r,d,h,c){super(e),this._iconRegistry=t,this._location=d,this._errorHandler=h,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Rt.w0.EMPTY,c&&(c.color&&(this.color=this.defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Oe(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,d)=>{r.forEach(h=>{d.setAttribute(h.name,`url('${e}#${h.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(Fp),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let d=0;d{const c=t[d],o=c.getAttribute(h),a=o?o.match($0):null;if(a){let l=r.get(c);l||(l=[],r.set(c,l)),l.push({name:h,value:a[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe((0,rt.q)(1)).subscribe(d=>this._setSvgElement(d),d=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${d.message}`))})}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(xo),n.$8M("aria-hidden"),n.Y36(G0),n.Y36(n.qLn),n.Y36(TE,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(n.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),n.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.qOj],ngContentSelectors:AE,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),i})(),Vl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})(),J0=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lu,Ug,Vl,bi,Gs,x.ez]}),i})();var Z0=E(5861);function Q0(i,s){}class Yp{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let Hy=(()=>{class i extends wo{constructor(e,t,r,d,h,c,o,a){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=d,this._interactivityChecker=h,this._ngZone=c,this._overlayRef=o,this._focusMonitor=a,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=l=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(l);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=ho(),d=this._elementRef.nativeElement;(!r||r===this._document.body||r===d||d.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=ho();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ho())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Kd),n.Y36(x.K0,8),n.Y36(Yp),n.Y36(Gh),n.Y36(n.R0b),n.Y36(Oc),n.Y36(Ii))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&n.Gf(Ma,7),2&e){let r;n.iGM(r=n.CRH())&&(t._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&n.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[n.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&n.YNc(0,Q0,0,0,"ng-template",0)},dependencies:[Ma],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),i})();class qp{constructor(s,e){this.overlayRef=s,this.config=e,this.closed=new Se.x,this.disableClose=e.disableClose,this.backdropClick=s.backdropClick(),this.keydownEvents=s.keydownEvents(),this.outsidePointerEvents=s.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!ri(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(s,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(s),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(s="",e=""){return this.overlayRef.updateSize({width:s,height:e}),this}addPanelClass(s){return this.overlayRef.addPanelClass(s),this}removePanelClass(s){return this.overlayRef.removePanelClass(s),this}}const qg=new n.OlP("DialogScrollStrategy"),xE=new n.OlP("DialogData"),Da=new n.OlP("DefaultDialogConfig"),zg={provide:qg,deps:[rr],useFactory:function K0(i){return()=>i.scrollStrategies.block()}};let X0=0,br=(()=>{class i{constructor(e,t,r,d,h,c){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=d,this._overlayContainer=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Se.x,this._afterOpenedAtThisLevel=new Se.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Cn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zt(void 0))),this._scrollStrategy=c}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Yp,...t}).id=t.id||"cdk-dialog-"+X0++,t.id&&this.getDialogById(t.id);const d=this._getOverlayConfig(t),h=this._overlay.create(d),c=new qp(h,t),o=this._attachContainer(h,c,t);return c.containerInstance=o,this._attachDialogContent(e,c,o,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(c),c.closed.subscribe(()=>this._removeOpenDialog(c,!0)),this.afterOpened.next(c),c}closeAll(){Gg(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){Gg(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),Gg(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Sl({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){const d=r.injector??r.viewContainerRef?.injector,h=[{provide:Yp,useValue:r},{provide:qp,useValue:t},{provide:Oc,useValue:e}];let c;r.container?"function"==typeof r.container?c=r.container:(c=r.container.type,h.push(...r.container.providers(r))):c=Hy;const o=new xa(c,r.viewContainerRef,n.zs3.create({parent:d||this._injector,providers:h}),r.componentFactoryResolver);return e.attach(o).instance}_attachDialogContent(e,t,r,d){const h=this._createInjector(d,t,r);if(e instanceof n.Rgc){let c={$implicit:d.data,dialogRef:t};d.templateContext&&(c={...c,..."function"==typeof d.templateContext?d.templateContext():d.templateContext}),r.attachTemplatePortal(new Ir(e,null,c,h))}else{const c=r.attachComponentPortal(new xa(e,d.viewContainerRef,h,d.componentFactoryResolver));t.componentInstance=c.instance}}_createInjector(e,t,r){const d=e&&e.viewContainerRef&&e.viewContainerRef.injector,h=[{provide:xE,useValue:e.data},{provide:qp,useValue:t}];return e.providers&&("function"==typeof e.providers?h.push(...e.providers(t,e,r)):h.push(...e.providers)),e.direction&&(!d||!d.get(xn,null,n.XFs.Optional))&&h.push({provide:xn,useValue:{value:e.direction,change:(0,xe.of)()}}),n.zs3.create({parent:e.injector||d||this._injector,providers:h})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((d,h)=>{d?h.setAttribute("aria-hidden",d):h.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const d=t[r];d!==e&&"SCRIPT"!==d.nodeName&&"STYLE"!==d.nodeName&&!d.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(d,d.getAttribute("aria-hidden")),d.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(rr),n.LFG(n.zs3),n.LFG(Da,8),n.LFG(i,12),n.LFG(Ic),n.LFG(qg))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function Gg(i,s){let e=i.length;for(;e--;)s(i[e])}let Wg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[br,zg],imports:[El,Hs,bl,Hs]}),i})();function ex(i,s){}const td={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},$g={dialogContainer:fn("dialogContainer",[Pt("void, exit",He({opacity:0,transform:"scale(0.7)"})),Pt("enter",He({transform:"none"})),xt("* => enter",pu([Tt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",He({transform:"none",opacity:1})),gr("@*",pp(),{optional:!0})]),td),xt("* => void, * => exit",pu([Tt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",He({opacity:0})),gr("@*",pp(),{optional:!0})]),td)])};class nd{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=td.params.enterAnimationDuration,this.exitAnimationDuration=td.params.exitAnimationDuration}}let Py=(()=>{class i extends Hy{constructor(e,t,r,d,h,c,o,a){super(e,t,r,d,h,c,o,a),this._animationStateChanged=new n.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Kd),n.Y36(x.K0,8),n.Y36(nd),n.Y36(Gh),n.Y36(n.R0b),n.Y36(Oc),n.Y36(Ii))},i.\u0275cmp=n.Xpm({type:i,selectors:[["ng-component"]],features:[n.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),i})(),tx=(()=>{class i extends Py{constructor(e,t,r,d,h,c,o,a,l){super(e,t,r,d,h,c,o,l),this._changeDetectorRef=a,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||td.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||td.params.exitAnimationDuration}}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Kd),n.Y36(x.K0,8),n.Y36(nd),n.Y36(Gh),n.Y36(n.R0b),n.Y36(Oc),n.Y36(n.sBO),n.Y36(Ii))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&n.WFA("@dialogContainer.start",function(d){return t._onAnimationStart(d)})("@dialogContainer.done",function(d){return t._onAnimationDone(d)}),2&e&&(n.Ikx("id",t._config.id),n.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),n.d8E("@dialogContainer",t._getAnimationState()))},features:[n.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&n.YNc(0,ex,0,0,"ng-template",0)},dependencies:[Ma],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[$g.dialogContainer]}}),i})();class si{constructor(s,e,t){this._ref=s,this._containerInstance=t,this._afterOpened=new Se.x,this._beforeClosed=new Se.x,this._state=0,this.disableClose=e.disableClose,this.id=s.id,t._animationStateChanged.pipe((0,Ce.h)(r=>"opened"===r.state),(0,rt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Ce.h)(r=>"closed"===r.state),(0,rt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),s.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Mn.T)(this.backdropClick(),this.keydownEvents().pipe((0,Ce.h)(r=>27===r.keyCode&&!this.disableClose&&!ri(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function Ry(i,s,e){i._closeInteractionType=s,i.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(s){this._result=s,this._containerInstance._animationStateChanged.pipe((0,Ce.h)(e=>"closing"===e.state),(0,rt.q)(1)).subscribe(e=>{this._beforeClosed.next(s),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(s){let e=this._ref.config.positionStrategy;return s&&(s.left||s.right)?s.left?e.left(s.left):e.right(s.right):e.centerHorizontally(),s&&(s.top||s.bottom)?s.top?e.top(s.top):e.bottom(s.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(s="",e=""){return this._ref.updateSize(s,e),this}addPanelClass(s){return this._ref.addPanelClass(s),this}removePanelClass(s){return this._ref.removePanelClass(s),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const wr=new n.OlP("MatDialogData"),ky=new n.OlP("mat-dialog-default-options"),Ly=new n.OlP("mat-dialog-scroll-strategy"),Oy={provide:Ly,deps:[rr],useFactory:function Mo(i){return()=>i.scrollStrategies.block()}};let Jg=0,Is=(()=>{class i{constructor(e,t,r,d,h,c,o,a,l,u){this._overlay=e,this._defaultOptions=r,this._parentDialog=d,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Se.x,this._afterOpenedAtThisLevel=new Se.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Cn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zt(void 0))),this._scrollStrategy=c,this._dialog=t.get(br)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let r;(t={...this._defaultOptions||new nd,...t}).id=t.id||`${this._idPrefix}${Jg++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const d=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:nd,useValue:t},{provide:Yp,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(h,c,o)=>(r=new this._dialogRefConstructor(h,t,o),r.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:c.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=d.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const h=this.openDialogs.indexOf(r);h>-1&&(this.openDialogs.splice(h,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),oi=(()=>{class i extends Is{constructor(e,t,r,d,h,c,o,a){super(e,t,d,c,o,h,si,tx,wr,a)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(rr),n.LFG(n.zs3),n.LFG(x.Ye,8),n.LFG(ky,8),n.LFG(Ly),n.LFG(i,12),n.LFG(Ic),n.LFG(n.QbO,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),ME=0,Oi=(()=>{class i{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+ME++}ngOnInit(){this._dialogRef||(this._dialogRef=function By(i,s){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?s.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si,8),n.Y36(n.SBq),n.Y36(oi))},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&n.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),i})(),$i=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),i})(),Bi=(()=>{class i{constructor(){this.align="start"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),i})(),Zg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[oi,Oy],imports:[Wg,El,Hs,ht,ht]}),i})();var Vy=E(4327);const jl=[5,10,25,100];function zp(){return(zp=(0,Z0.Z)(function*(i,s){yield Fy(i),s()})).apply(this,arguments)}function Fy(i){return new Promise(s=>setTimeout(s,i))}function Jn(){const i=new nd;return i.disableClose=!0,i.autoFocus=!1,i}const Xg=new Intl.Collator("cs",{numeric:!0});function So(i,s,e){const t=s.active,r=s.direction;return t&&""!==r?i.sort((d,h)=>{const c=e(d,t),o=e(h,t);return Xg.compare(c,o)*("asc"===r?1:-1)}):i}function Eo(i,s,e,t,r){s=s.toLowerCase();let d="";return e.forEach(h=>{d+=";"+t(i,h)}),r&&(d+=";"+t(i,"uuid")),d.toLowerCase().includes(s)}function Iu(i,s){let e="";return i?.forEach(t=>{t.friendlyName===s&&(e=t.value)}),e}function Ha(i,s,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return s=s.filter(d=>!r.includes(d)),i.forEach(d=>{const h={};s.forEach(c=>{h[c]=(e(d,c)??"").split('"').join("''").trim()}),t.push(h)}),t}function Pa(i,s="csv",e="export"){if("csv"===s){const t=(o,a)=>null===a?"":a,r=Object.keys(i[0]),d=i.map(o=>r.map(a=>JSON.stringify(o[a],t)).join(","));d.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const h=d.join("\r\n"),c=new Blob([h],{type:"text/csv"});(0,Vy.saveAs)(c,`${e}.${s}`)}}const $y="GUI_CONFIG.PREF_PAGE_SIZE.";let Jy=(()=>{class i{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),e_=(()=>{class i{constructor(e){this.guiConfigService=e,this.defaultTableSizes=new Map,this.defaultTableSizes.set(C,25),this.defaultTableSizes.set(_x,25)}getTablePageSize(e){const t=this.guiConfigService.getNumber($y+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?this.defaultTableSizes.get(e)??10:r}setTablePageSize(e,t){this.guiConfigService.setNumber($y+e,t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Jy))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const _x="8",C="25";function BP(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.exportAllData.emit("csv"))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let VP=(()=>{class i{constructor(){this.exportDisplayedData=new n.vpe,this.exportAllData=new n.vpe}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(e,t){if(1&e&&(n.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA()(),n.TgZ(4,"mat-menu",null,2)(6,"button",3),n._uU(7),n.ALo(8,"translate"),n.qZA()(),n.TgZ(9,"mat-menu",null,4)(11,"button",3),n._uU(12,"Csv"),n.qZA()(),n.TgZ(13,"mat-menu",5,6)(15,"button",7),n.NdJ("click",function(){return t.exportDisplayedData.emit("csv")}),n._uU(16),n.ALo(17,"translate"),n.qZA(),n.YNc(18,BP,3,3,"button",8),n.qZA()()),2&e){const r=n.MAs(5),d=n.MAs(10),h=n.MAs(14);n.xp6(1),n.Q6J("matMenuTriggerFor",r),n.xp6(5),n.Q6J("matMenuTriggerFor",d),n.xp6(1),n.hij(" ",n.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),n.xp6(4),n.Q6J("matMenuTriggerFor",h),n.xp6(5),n.hij(" ",n.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),n.xp6(2),n.Q6J("ngIf",t.allowExportAll)}},dependencies:[jp,Kc,My,Ln,Ot,x.O5,it]}),i})();const jP=["topNav"];function UP(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-table-options",7),n.NdJ("exportDisplayedData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportDisplayedData.emit(r))})("exportAllData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportAllData.emit(r))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("allowExportAll",e.allowExportAll)}}function NP(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-table-options",7),n.NdJ("exportDisplayedData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportDisplayedData.emit(r))})("exportAllData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportAllData.emit(r))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("allowExportAll",e.allowExportAll)}}const FP=["*"];let as=(()=>{class i{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=jl,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new n.vpe,this.exportAllData=new n.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5),this.paginator._changePageSize(this.pageSize)}pageChangedTop(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}pageChangedBottom(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.paginator.page.emit(e),this.pageSize=e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,e.pageSize),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(e_))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&(n.Gf(jP,5),n.Gf(vy,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.topNav=r.first),n.iGM(r=n.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:FP,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),n.NdJ("page",function(d){return t.pageChangedTop(d)}),n.qZA(),n.YNc(4,UP,1,1,"perun-web-apps-table-options",4),n.qZA(),n.TgZ(5,"div",5),n.Hsn(6),n.qZA(),n.TgZ(7,"div",1)(8,"mat-paginator",6),n.NdJ("page",function(d){return t.pageChangedBottom(d)}),n.qZA(),n.YNc(9,NP,1,1,"perun-web-apps-table-options",4),n.qZA()()),2&e&&(n.xp6(3),n.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),n.xp6(1),n.Q6J("ngIf",!t.hideExport),n.xp6(4),n.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),n.xp6(1),n.Q6J("ngIf",!t.hideExport))},dependencies:[vy,x.O5,VP]}),i})(),yi=(()=>{class i{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],r=this.defaultConfig[e];let d=null;for(const h of t)h&&null==d&&(d=h[e]);return null===d?r:this.addMissingValuesToProperty(d,r)}addMissingValuesToProperty(e,t){if(null==e)return t;if("object"==typeof e&&!Array.isArray(e))for(const r of Object.keys(t))e[r]=this.addMissingValuesToProperty(e[r],t[r]);return e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var Wp=E(1214);let Ou=(()=>{class i{constructor(e,t,r,d,h){this.injector=e,this.store=t,this.dialog=r,this.route=d,this.oauthService=h,setTimeout(()=>{this.router=this.injector.get($n),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(c=>{c.idpFilter&&(this.filterShortname=String(c.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),d=.5+.25*Math.random(),h=e?{acr_values:e}:{},c=this.store.getProperty("oidc_client");if(c.oauth_scopes.split(" ").includes("offline_access")&&c.oauth_offline_access_consent_prompt&&(h.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(h.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(h.prompt?h.prompt+=" login":h.prompt="login",h.max_age="0"),"Linker"===this.store.getProperty("application")){h.prompt?h.prompt+=" login":h.prompt="login";const o=function Wy(i,s){const e=s.split("&");for(const t of e){const[r,d]=t.split("=");if(r.includes(i))return d}return""}("idphint",location.search.substring(1));o&&(h.idphint=o)}return{requestAccessToken:!0,issuer:c.oauth_authority,clientId:c.oauth_client_id,redirectUri:c.oauth_redirect_uri,postLogoutRedirectUri:c.oauth_post_logout_redirect_uri,responseType:c.oauth_response_type,scope:c.oauth_scopes,clockSkewInSec:1,timeoutFactor:d,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:h}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let r=null;return e.forEach(d=>{const h=d.split("=");"idpFilter"===h[0]&&t[h[1]]&&(this.filterShortname=h[1],r=t[h[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}startIdpFilterKeeper(){this.router.events.pipe((0,Ce.h)(e=>e instanceof Ni)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.zs3),n.LFG(yi),n.LFG(oi),n.LFG(Li),n.LFG(Wp.Ct))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),YP=(()=>{class i{constructor(e){this.dialogRef=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(n.TgZ(0,"h2",0),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[$i,it]}),i})();var qP=E(930);function yx(i,s){const e="object"==typeof s;return new Promise((t,r)=>{const d=new qP.Hp({next:h=>{t(h),d.unsubscribe()},error:r,complete:()=>{e?t(s.defaultValue):r(new xr.K)}});i.subscribe(d)})}function zP(i,s){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," info "),n.qZA())}function GP(i,s){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," warning "),n.qZA())}function WP(i,s){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," dangerous "),n.qZA())}function $P(i,s){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," check_circle "),n.qZA())}const JP=["*"];let na=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:JP,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0),n.YNc(1,zP,2,0,"mat-icon",1),n.YNc(2,GP,2,0,"mat-icon",1),n.YNc(3,WP,2,0,"mat-icon",1),n.YNc(4,$P,2,0,"mat-icon",1),n.Hsn(5),n.qZA()),2&e&&(n.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),n.xp6(1),n.Q6J("ngIf","info"===t.alert_type),n.xp6(1),n.Q6J("ngIf","warn"===t.alert_type),n.xp6(1),n.Q6J("ngIf","error"===t.alert_type),n.xp6(1),n.Q6J("ngIf","success"===t.alert_type))},dependencies:[Ln,x.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),i})(),ZP=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"translate"),n.qZA()(),n.TgZ(8,"div",3)(9,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(13),n.ALo(14,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),n.xp6(4),n.hij(" ",t.data.mfaRoleException?n.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):n.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),n.xp6(4),n.Q6J("hidden",t.data.mfaRoleException),n.xp6(1),n.hij(" ",n.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),n.xp6(2),n.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),n.xp6(1),n.hij(" ",n.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Oi,$i,Bi,Ot,na,it]}),i})(),QP=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),n._uU(3," info "),n.qZA(),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div"),n._uU(7),n.ALo(8,"translate"),n.qZA()()),2&e&&(n.xp6(4),n.hij(" ",n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),n.xp6(3),n.hij(" ",n.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Ln,it],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),i})(),KP=(()=>{class i{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wr),n.Y36(si))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"div",3)(8,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(12),n.ALo(13,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),n.xp6(4),n.hij(" ",n.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),n.xp6(4),n.hij(" ",n.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),n.xp6(3),n.hij(" ",n.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Oi,$i,Bi,Ot,na,it]}),i})(),Cx=(()=>{class i{constructor(e,t,r,d){this.dialog=e,this.oauthService=t,this.authService=r,this.store=d}openMfaWindow(e){let t=null,r=null;const d=Jn();d.width="450px",d.data={mfaRoleException:e};const h=this.dialog.open(ZP,d);let c=!1;if(h.afterClosed().subscribe(o=>{if(o){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const a=Jn();a.width="450px",a.panelClass="noBorderDialog",r=this.dialog.open(QP,a)}}else c=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const o=Jn();o.width="450px",o.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(KP,o)}return new ln.y(o=>{const a=setInterval(()=>t?.closed?(clearInterval(a),r.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),o.next(!0)):c?(clearInterval(a),o.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,d=window.top;return window.open(e,"_blank",`width=600,height=600,top=${d.outerHeight/2+d.screenY-300}, left=${d.outerWidth/2+d.screenX-300}`)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(oi),n.LFG(Wp.Ct),n.LFG(Ou),n.LFG(yi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ax=(()=>{class i{constructor(e,t,r,d,h,c,o,a){this.authService=e,this.oauthService=t,this.storeService=r,this.authResolver=d,this.authzService=h,this.dialog=c,this.router=o,this.mfaHandlerService=a,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return yx(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=Jn();this.dialog.open(YP,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return yx(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const r={};return t.split("&").forEach(d=>{const h=d.split("=");r[h[0]]=h[1]}),this.router.navigate(["service-access"],{queryParams:r,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,Ce.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let d=[];r&&(d=r.split("&"));const h={};return d.forEach(c=>{const o=c.split("=");h[o[0]]=o[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:h,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ou),n.LFG(Wp.Ct),n.LFG(yi),n.LFG(dn),n.LFG(Va),n.LFG(oi),n.LFG($n),n.LFG(Cx))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),qE=(()=>{class i{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(xo),n.LFG(On))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),zE=(()=>{class i{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div",2)(7,"div",3)(8,"button",4),n.NdJ("click",function(){return t.close()}),n._uU(9),n.ALo(10,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),n.xp6(3),n.hij(" ",n.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),n.xp6(5),n.hij(" ",n.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Oi,$i,Bi,Ot,it]}),i})(),XP=(()=>{class i{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ji=(()=>{class i{constructor(e){this.translate=e,this.addNotification=new n.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,r,d,h){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===d&&void 0!==r?this.getDefaultActionMessage():d,delay:this.defaultErrorDelayMs,icon:"error_outline",action:h,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,d){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===r&&void 0!==t?this.getDefaultActionMessage():r,delay:this.defaultSuccessDelayMs,icon:"done",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(mn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),GE=(()=>{class i{constructor(e,t,r,d,h,c,o,a){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=d,this.dialog=h,this.initAuthService=c,this.mfaHandlerService=o,this.oauthService=a}intercept(e,t){const r=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const d=Jn();d.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(zE,d),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Sr(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const r=this.apiRequestConfiguration.shouldHandleError(),d="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,nn.b)(h=>{h instanceof v.Zn&&d&&this.initAuthService.loadPrincipal()}),(0,Ri.K)(h=>{const c=h.error;if("MfaPrivilegeException"===c.type||"MfaRolePrivilegeException"===c.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===c.type).pipe((0,bn.w)(o=>o?("MfaRolePrivilegeException"===c.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,mi._)(()=>c)));{this.handleInvalidAccessTokenError(h);const o=this.formatErrors(h,e);return void 0===o?(0,mi._)(()=>h):(r&&this.notificator.showRPCError(o),(0,mi._)(()=>o))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let r;console.error(e);const d=e.error;if(d.errorId&&(r=d),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){if(!this.isLoggedIn()||"invalid_token"===e.error.error||null!=this.dialogRefSessionExpiration)return;const t=Jn();this.dialogRefSessionExpiration=this.dialog.open(zE,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ou),n.LFG(XP),n.LFG(Ji),n.LFG(yi),n.LFG(oi),n.LFG(Ax),n.LFG(Cx),n.LFG(Wp.Ct))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),sC=(()=>{class i{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),eR=(()=>{class i{constructor(e,t,r,d){this.http=e,this.notificator=t,this.authService=r,this.storeService=d}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new v.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.get(r,{headers:this.getHeaders()}).pipe((0,Ri.K)(d=>this.formatErrors(d,r,null,t)))}put(e,t={},r=!0){const d=`${this.getApiUrl()}${e}`,h=JSON.stringify(t);return this.http.put(d,h,{headers:this.getHeaders()}).pipe((0,Ri.K)(c=>this.formatErrors(c,d,h,r)))}post(e,t={},r=!0){const d=`${this.getApiUrl()}${e}`,h=JSON.stringify(t);let c=this.getHeaders();return c=c.set("Content-Type","application/json; charset=utf-8"),this.http.post(d,h,{headers:c}).pipe((0,Ri.K)(o=>this.formatErrors(o,d,h,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,Ri.K)(d=>this.formatErrors(d,r,null,t)))}formatErrors(e,t,r,d){const h=e.error;return h.call=t,h.payload=r,d&&this.notificator.showRPCError(e.error),(0,mi._)(h)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Ji),n.LFG(Ou),n.LFG(yi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),$p=(()=>{class i{isAllSelected(e,t,r=(()=>!0)){const d=t.paginator.pageSize??0,h=t.paginator.pageIndex??0,c=t.paginator.hasNextPage(),o=t.data.length===t.filteredData.length;this.numCanBeSelected=0,this.pageStart=h*d,this.pageEnd=this.pageStart+d,this.numSelected=e,this.dataLength=o?t.data.length:t.filteredData.length;const a=t.sort;return c||(this.modulo=this.dataLength%d,this.pageEnd=0===this.modulo?this.pageStart+d:this.pageStart+this.modulo),this.pageIterator=0,(a?t.sortData(t.filteredData,a):t.filteredData).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?l(u)&&this.pageStart<=this.pageIterator&&this.pageIterator!0)){return t===e.data.reduce((d,h)=>d+Number(r(h)),0)}masterTogglePaginated(e,t,r,d=(()=>!0)){t.clear(),r&&e.data.forEach(h=>{d(h)&&t.select(h)})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),nR=(()=>{class i{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),r=navigator.languages.map(c=>c.split("-")[0]),d=location.search.substring(1).split("&");let h=null;for(const c of d){const o=c.split("=");"lang"===o[0]&&(h=o[1])}return h&&t.includes(h)?h:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Li),n.LFG(yi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),iR=(()=>{class i{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const d of e)if(d.newApps.admin===t||d.newApps.profile===t||d.newApps.pwdReset===t||d.newApps.consolidator===t||d.newApps.linker===t)return d;return e.filter(d=>"default"===d.name)[0]||e[0]}getUrlForOtherApplication(e,t){const d=window.location.href.split("/"),h=d[0]+"//"+d[2],c=i.getBrandContainingDomain(this.storeService.getAppsConfig().brands,h);let o;if(c.newApps[e])o=c.newApps[e],"pwdReset"===e&&(o+=`?login-namespace=${t}`);else switch(o=c.oldGuiDomain+"/fed",e){case"admin":o+="/gui/";break;case"profile":o+="/profile/";break;case"pwdReset":o+=`/pwd-reset/?login-namespace=${t}`}return o}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const oC=["*"],rR=["content"];function aR(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._onBackdropClicked())}),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function sR(i,s){1&i&&(n.TgZ(0,"mat-drawer-content"),n.Hsn(1,2),n.qZA())}const oR=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],lR=["mat-drawer","mat-drawer-content","*"];function cR(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._onBackdropClicked())}),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function dR(i,s){1&i&&(n.TgZ(0,"mat-sidenav-content"),n.Hsn(1,2),n.qZA())}const uR=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],hR=["mat-sidenav","mat-sidenav-content","*"],WE={transformDrawer:fn("transform",[Pt("open, open-instant",He({transform:"none",visibility:"visible"})),Pt("void",He({"box-shadow":"none",visibility:"hidden"})),xt("void => open-instant",Tt("0ms")),xt("void <=> open, open-instant => void",Tt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},fR=new n.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function mR(){return!1}}),vx=new n.OlP("MAT_DRAWER_CONTAINER");let lC=(()=>{class i extends xl{constructor(e,t,r,d,h){super(r,d,h),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(()=>JE)),n.Y36(n.SBq),n.Y36(Tl),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&n.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[n._Bn([{provide:xl,useExisting:i}]),n.qOj],ngContentSelectors:oC,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),i})(),$E=(()=>{class i{constructor(e,t,r,d,h,c,o,a){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=d,this._ngZone=h,this._interactivityChecker=c,this._doc=o,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Se.x,this._animationEnd=new Se.x,this._animationState="void",this.openedChange=new n.vpe(!0),this._openedStream=this.openedChange.pipe((0,Ce.h)(l=>l),(0,_t.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,Ce.h)(l=>l.fromState!==l.toState&&0===l.toState.indexOf("open")),(0,ac.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Ce.h)(l=>!l),(0,_t.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,Ce.h)(l=>l.fromState!==l.toState&&"void"===l.toState),(0,ac.h)(void 0)),this._destroyed=new Se.x,this.onPositionChanged=new n.vpe,this._modeChanged=new Se.x,this.openedChange.subscribe(l=>{l?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{ea(this._elementRef.nativeElement,"keydown").pipe((0,Ce.h)(l=>27===l.keyCode&&!this.disableClose&&!ri(l)),Ke(this._destroyed)).subscribe(l=>this._ngZone.run(()=>{this.close(),l.stopPropagation(),l.preventDefault()}))}),this._animationEnd.pipe(mo((l,u)=>l.fromState===u.fromState&&l.toState===u.toState)).subscribe(l=>{const{fromState:u,toState:p}=l;(0===p.indexOf("open")&&"void"===u||"void"===p&&0===u.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Oe(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Oe(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Oe(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(d=>{this.openedChange.pipe((0,rt.q)(1)).subscribe(h=>d(h?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Kd),n.Y36(Ii),n.Y36(yn),n.Y36(n.R0b),n.Y36(Gh),n.Y36(x.K0,8),n.Y36(vx,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&n.Gf(rR,5),2&e){let r;n.iGM(r=n.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&n.WFA("@transform.start",function(d){return t._animationStarted.next(d)})("@transform.done",function(d){return t._animationEnd.next(d)}),2&e&&(n.uIk("align",null),n.d8E("@transform",t._animationState),n.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:oC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},dependencies:[xl],encapsulation:2,data:{animation:[WE.transformDrawer]},changeDetection:0}),i})(),JE=(()=>{class i{constructor(e,t,r,d,h,c=!1,o){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=d,this._animationMode=o,this._drawers=new n.n_E,this.backdropClick=new n.vpe,this._destroyed=new Se.x,this._doCheckSubject=new Se.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Se.x,e&&e.change.pipe(Ke(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),h.change().pipe(Ke(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=c}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Oe(e)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(e){this._backdropOverride=null==e?null:Oe(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Zt(this._allDrawers),Ke(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Zt(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Nh.b)(10),Ke(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,Ce.h)(t=>t.fromState!==t.toState),Ke(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Ke(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Ke(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,rt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Ke((0,Mn.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(xn,8),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(va),n.Y36(fR),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,lC,5),n.Suo(r,$E,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._content=d.first),n.iGM(d=n.CRH())&&(t._allDrawers=d)}},viewQuery:function(e,t){if(1&e&&n.Gf(lC,5),2&e){let r;n.iGM(r=n.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[n._Bn([{provide:vx,useExisting:i}])],ngContentSelectors:lR,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(n.F$t(oR),n.YNc(0,aR,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,sR,2,0,"mat-drawer-content",1)),2&e&&(n.Q6J("ngIf",t.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!t._content))},dependencies:[x.O5,lC],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),i})(),Tx=(()=>{class i extends lC{constructor(e,t,r,d,h){super(e,t,r,d,h)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(()=>QE)),n.Y36(n.SBq),n.Y36(Tl),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&n.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[n._Bn([{provide:xl,useExisting:i}]),n.qOj],ngContentSelectors:oC,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),i})(),ZE=(()=>{class i extends $E{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Oe(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=_n(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=_n(e)}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(n.uIk("align",null),n.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),n.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[n.qOj],ngContentSelectors:oC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},dependencies:[xl],encapsulation:2,data:{animation:[WE.transformDrawer]},changeDetection:0}),i})(),QE=(()=>{class i extends JE{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,Tx,5),n.Suo(r,ZE,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._content=d.first),n.iGM(d=n.CRH())&&(t._allDrawers=d)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[n._Bn([{provide:vx,useExisting:i}]),n.qOj],ngContentSelectors:hR,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(n.F$t(uR),n.YNc(0,cR,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,dR,2,0,"mat-sidenav-content",1)),2&e&&(n.Q6J("ngIf",t.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!t._content))},dependencies:[x.O5,Tx],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),i})(),KE=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,ht,Ds,Ds,ht]}),i})();const XE=Ja({passive:!0});let gR=(()=>{class i{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Pn.E;const t=ai(e),r=this._monitoredElements.get(t);if(r)return r.subject;const d=new Se.x,h="cdk-text-field-autofilled",c=o=>{"cdk-text-field-autofill-start"!==o.animationName||t.classList.contains(h)?"cdk-text-field-autofill-end"===o.animationName&&t.classList.contains(h)&&(t.classList.remove(h),this._ngZone.run(()=>d.next({target:o.target,isAutofilled:!1}))):(t.classList.add(h),this._ngZone.run(()=>d.next({target:o.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",c,XE),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:d,unlisten:()=>{t.removeEventListener("animationstart",c,XE)}}),d}stopMonitoring(e){const t=ai(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),_R=(()=>{class i{constructor(e,t,r,d){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new Se.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=h=>{this._hasFocus="focus"===h.type},this._document=d,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=_n(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=_n(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=Oe(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{ea(this._getWindow(),"resize").pipe(Dc(16),Ke(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",r=this._platform.FIREFOX,d=r&&this._hasFocus,h=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";d&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(h);const c=e.scrollHeight-4;return e.classList.remove(h),d&&(e.style.marginBottom=t),c}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,r=t.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;const d=this._measureScrollHeight(),h=Math.max(d,this._cachedPlaceholderHeight||0);t.style.height=`${h}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,r)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(yn),n.Y36(n.R0b),n.Y36(x.K0,8))},i.\u0275dir=n.lG2({type:i,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&n.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),i})(),eD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const tD=new n.OlP("MAT_INPUT_VALUE_ACCESSOR"),bR=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let wR=0;const yR=Jh(class{constructor(i,s,e,t){this._defaultErrorStateMatcher=i,this._parentForm=s,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Se.x}});let Ra=(()=>{class i extends yR{constructor(e,t,r,d,h,c,o,a,l,u){super(c,d,h,r),this._elementRef=e,this._platform=t,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+wR++,this.focused=!1,this.stateChanges=new Se.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>X_().has(g)),this._iOSKeyupListener=g=>{const f=g.target;!f.value&&0===f.selectionStart&&0===f.selectionEnd&&(f.setSelectionRange(1,1),f.setSelectionRange(0,0))};const p=this._elementRef.nativeElement,m=p.nodeName.toLowerCase();this._inputValueAccessor=o||p,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&l.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===m,this._isTextarea="textarea"===m,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Oe(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(kn.required)??!1}set required(e){this._required=Oe(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&X_().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Oe(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=t,t?r.setAttribute("placeholder",t):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){bR.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(yn),n.Y36(ts,10),n.Y36(Ol,8),n.Y36(Fc,8),n.Y36(Ca),n.Y36(tD,10),n.Y36(gR),n.Y36(n.R0b),n.Y36(mp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&n.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(n.Ikx("disabled",t.disabled)("required",t.required),n.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),n.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[n._Bn([{provide:gu,useExisting:i}]),n.qOj,n.TTD]}),i})(),cC=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Ca],imports:[eD,Hl,ht,eD,Hl]}),i})();function CR(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let AR=(()=>{class i{constructor(e,t,r,d,h){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=d,this.storeService=h,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",E(4147).i8)}close(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(mn),n.Y36(Ji),n.Y36(Vo),n.Y36(yi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"input",2,3),n.NdJ("ngModelChange",function(d){return t.subject=d}),n.qZA(),n.YNc(10,CR,3,3,"mat-error",4),n.qZA(),n.TgZ(11,"mat-form-field")(12,"mat-label"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"textarea",5),n.NdJ("ngModelChange",function(d){return t.message=d}),n.ALo(16,"translate"),n._uU(17," "),n.qZA(),n.TgZ(18,"mat-hint"),n._uU(19),n.ALo(20,"translate"),n.qZA()()(),n.TgZ(21,"div",6)(22,"div",7)(23,"button",8),n.NdJ("click",function(){return t.close()}),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.TgZ(26,"button",9),n.NdJ("click",function(){return t.sendBugReport()}),n._uU(27),n.ALo(28,"translate"),n.qZA()()()),2&e){const r=n.MAs(9);n.xp6(1),n.Oqu(n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),n.xp6(5),n.Oqu(n.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),n.xp6(2),n.Q6J("ngModel",t.subject),n.xp6(2),n.Q6J("ngIf",r.invalid),n.xp6(3),n.Oqu(n.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),n.xp6(2),n.s9C("placeholder",n.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),n.Q6J("ngModel",t.message),n.xp6(4),n.Oqu(n.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),n.xp6(5),n.hij(" ",n.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",r.invalid),n.xp6(1),n.hij(" ",n.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[x.O5,Gi,Wi,ns,Uc,Ot,es,ar,Sw,ta,Ra,Oi,$i,Bi,it],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})(),vR=(()=>{class i{transform(e,t,r){return e[`${r}_${t}`]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"localisedText",type:i,pure:!0}),i})(),TR=(()=>{class i{transform(e,t){return e["link_"+t]||e.link_en}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"localisedLink",type:i,pure:!0}),i})(),xR=(()=>{class i{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"footerLogoPath",type:i,pure:!0}),i})();function MR(i,s){if(1&i&&(n.TgZ(0,"a",13),n.ALo(1,"localisedLink"),n._UZ(2,"img",14),n.ALo(3,"footerLogoPath"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("href",n.xi3(1,2,e,t.language),n.LSH),n.xp6(2),n.s9C("src",n.lcZ(3,5,e.logo),n.LSH)}}function SR(i,s){if(1&i&&(n.TgZ(0,"span"),n._UZ(1,"img",14),n.ALo(2,"footerLogoPath"),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.s9C("src",n.lcZ(2,1,e.logo),n.LSH)}}function ER(i,s){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,MR,4,7,"a",11),n.ALo(2,"localisedLink"),n.YNc(3,SR,3,3,"span",12),n.ALo(4,"localisedLink"),n.qZA()),2&i){const e=s.$implicit,t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",n.xi3(2,2,e,t.language)),n.xp6(2),n.Q6J("ngIf",!n.xi3(4,5,e,t.language))}}const DR=function(i){return{"min-height":i}};function HR(i,s){if(1&i&&(n.TgZ(0,"div",10),n.YNc(1,ER,5,8,"div",5),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw();n.Q6J("ngStyle",n.VKq(2,DR,t.columnContentHeight+"px")),n.xp6(1),n.Q6J("ngForOf",e.elements)}}const Ul=function(i){return{color:i}};function PR(i,s){if(1&i&&(n.TgZ(0,"i",20),n._uU(1),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(2,Ul,t.linksTextColor)),n.xp6(1),n.hij(" ",e.icon," ")}}function RR(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"span",21),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw(3);return n.KtG(d.openDialog(r.dialog))}),n._uU(1),n.ALo(2,"localisedText"),n.qZA()}if(2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,Ul,t.linksTextColor)),n.xp6(1),n.hij("",n.Dn7(2,2,e,t.language,"label")," ")}}function kR(i,s){if(1&i&&(n.TgZ(0,"a",22),n.ALo(1,"localisedLink"),n._uU(2),n.ALo(3,"localisedText"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("href",n.xi3(1,3,e,t.language),n.LSH)("ngStyle",n.VKq(10,Ul,t.linksTextColor)),n.xp6(2),n.Oqu(n.Dn7(3,6,e,t.language,"label"))}}function LR(i,s){if(1&i&&(n.TgZ(0,"span",10),n._uU(1),n.ALo(2,"localisedText"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,Ul,t.linksTextColor)),n.xp6(1),n.Oqu(n.Dn7(2,2,e,t.language,"label"))}}function IR(i,s){if(1&i&&(n.TgZ(0,"div",16),n.YNc(1,PR,2,4,"i",17),n.YNc(2,RR,3,8,"span",18),n.YNc(3,kR,4,12,"a",19),n.ALo(4,"localisedLink"),n.YNc(5,LR,3,8,"span",9),n.ALo(6,"localisedLink"),n.qZA()),2&i){const e=s.$implicit,t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",e.icon),n.xp6(1),n.Q6J("ngIf",e.dialog),n.xp6(1),n.Q6J("ngIf",n.xi3(4,4,e,t.language)&&!e.dialog),n.xp6(2),n.Q6J("ngIf",!n.xi3(6,7,e,t.language)&&!e.dialog)}}const OR=function(i){return{height:i}};function BR(i,s){if(1&i&&(n.TgZ(0,"div",10),n.YNc(1,IR,7,10,"div",15),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw();n.Q6J("ngStyle",n.VKq(2,OR,t.columnContentHeight+"px")),n.xp6(1),n.Q6J("ngForOf",e.elements)}}function VR(i,s){if(1&i&&(n.TgZ(0,"div",7)(1,"h6",8),n._uU(2),n.ALo(3,"localisedText"),n.qZA(),n.YNc(4,HR,2,4,"div",9),n.YNc(5,BR,2,4,"div",9),n.qZA()),2&i){const e=s.$implicit,t=n.oxw();n.ekj("my-auto",t.containsLogos),n.xp6(1),n.Q6J("ngStyle",n.VKq(10,Ul,t.headersTextColor)),n.xp6(1),n.hij(" ",n.Dn7(3,6,e,t.language,"title")," "),n.xp6(2),n.Q6J("ngIf",e.logos),n.xp6(1),n.Q6J("ngIf",e.elements&&!e.logos)}}function jR(i,s){if(1&i&&(n.TgZ(0,"span")(1,"a",6),n._uU(2),n.qZA()()),2&i){const e=s.$implicit,t=s.index,r=n.oxw();n.xp6(1),n.Q6J("href",e.url,n.LSH)("ngStyle",n.VKq(3,Ul,r.copyrightTextColor)),n.xp6(1),n.Oqu(t?", "+e.name:e.name)}}const UR=function(i){return{background:i}};let nD=(()=>{class i{constructor(e,t,r,d){this.storeService=e,this.translateService=t,this.utilsService=r,this.dialog=d,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="N/A",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=E(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=E(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(e=>{const t=e.match("\\bVersion:\\s*([^,\\s]+)");null!==t&&(this.backendVersion=t[1])}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(e){const t=Jn();"reportIssue"===e&&(t.width="550px",this.dialog.open(AR,t))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(yi),n.Y36(mn),n.Y36(ui),n.Y36(oi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(n.TgZ(0,"footer",0)(1,"div",1),n.YNc(2,VR,6,12,"div",2),n.qZA(),n._UZ(3,"hr",3),n.TgZ(4,"div",4),n._uU(5),n.YNc(6,jR,3,5,"span",5),n._uU(7,", web application: "),n.TgZ(8,"a",6),n._uU(9),n.qZA(),n._uU(10,", server: "),n.TgZ(11,"a",6),n._uU(12),n.qZA()()()),2&e&&(n.Q6J("ngStyle",n.VKq(11,UR,t.bgColor)),n.xp6(2),n.Q6J("ngForOf",t.footerColumns),n.xp6(2),n.Q6J("ngStyle",n.VKq(13,Ul,t.copyrightTextColor)),n.xp6(1),n.hij(" \xa9 ",t.currentYear," Copyright: "),n.xp6(1),n.Q6J("ngForOf",t.copyrightItems),n.xp6(2),n.Q6J("href",t.githubRepository,n.LSH)("ngStyle",n.VKq(15,Ul,t.copyrightTextColor)),n.xp6(1),n.Oqu(t.guiVersion),n.xp6(2),n.Q6J("href",t.githubBackendRepository,n.LSH)("ngStyle",n.VKq(17,Ul,t.copyrightTextColor)),n.xp6(1),n.Oqu(t.backendVersion))},dependencies:[x.sg,x.O5,x.PC,vR,TR,xR],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),i})();function NR(i,s){if(1&i&&(n.TgZ(0,"div",8),n._UZ(1,"div",9),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("innerHTML",e.logo,n.oJD)}}function FR(i,s){if(1&i&&(n.TgZ(0,"div",10),n._UZ(1,"div",11)(2,"mat-icon",12),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("innerHTML",e.logo,n.oJD)}}const YR=function(i){return{color:i}};function qR(i,s){if(1&i&&(n.TgZ(0,"p",13),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(2,YR,e.textColor)),n.xp6(1),n.hij(" ",e.headerTitle," ")}}const zR=function(i,s){return{background:i,color:s}},GR=function(i,s){return{"min-height":i,"background-color":s}};let WR=(()=>{class i{constructor(e,t,r,d){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=d,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(yi),n.Y36(On),n.Y36(nR),n.Y36(mn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,NR,2,1,"div",1),n.YNc(2,FR,3,1,"div",2),n.YNc(3,qR,2,4,"p",3),n.qZA(),n.TgZ(4,"div",4)(5,"div",5)(6,"div",6),n._UZ(7,"router-outlet"),n.qZA(),n.TgZ(8,"div",7),n._UZ(9,"perun-web-apps-footer"),n.qZA()()()),2&e&&(n.Q6J("ngStyle",n.WLB(5,zR,t.headerBackgroundColor,t.headerTextColor)),n.xp6(1),n.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),n.xp6(1),n.Q6J("ngIf","publications"===t.application),n.xp6(1),n.Q6J("ngIf",!!t.headerTitle),n.xp6(2),n.Q6J("ngStyle",n.WLB(8,GR,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[x.O5,x.PC,Ln,lo,nD],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),i})();fn("openClose",[Pt("open",He({overflow:"hidden"})),Pt("closed",He({height:"0px",overflow:"hidden"})),xt("open <=> closed",[Tt(".3s ease-in")])]);const $R=fn("flyInOut",[xt(":enter",[He({transform:"translateX(100%)"}),Tt(".25s")]),xt(":leave",[Tt(".5s",He({transform:"translateX(100%)"}))])]);fn("rollInOut",[xt(":enter",[He({height:"0px"}),Tt(".25s")]),xt(":leave",[Tt(".25s",He({height:"0px"}))])]),fn("routeAnimations",[xt("* => *",[He({position:"relative"}),gr(":enter",[He({width:"100%",opacity:0})],{optional:!0}),gr(":leave",[He({position:"absolute",width:"100%",opacity:1}),Tt("0.15s",He({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),gr(":enter",[He({position:"absolute",width:"100%",opacity:0}),Tt("0.15s",He({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),fn("tagsOpenClose",[Pt("open",He({})),Pt("closed",He({width:"0px",height:"0px"})),xt("open <=> closed",[Tt(".3s ease-in")])]),fn("switchAnimations",[xt("true => false",[gr(":enter, :leave",He({})),pu([gr(":enter",[He({transform:"translateX(-100%)"}),Tt("1s ease-in-out",He({transform:"translateX(0%)"}))],{optional:!0}),gr(":leave",[He({transform:"translateX(0%)",position:"absolute"}),Tt("1s ease-in-out",He({transform:"translateX(100%)"}))],{optional:!0})])]),xt("false => true",[gr(":enter, :leave",He({})),pu([gr(":enter",[He({transform:"translateX(100%)"}),Tt("1s ease-in-out",He({transform:"translateX(0%)"}))],{optional:!0}),gr(":leave",[He({transform:"translateX(0%)",position:"absolute"}),Tt("1s ease-in-out",He({transform:"translateX(-100%)"}))],{optional:!0})])])]),fn("slideInOutLeft",[xt(":enter",[He({transform:"translateX(-100%)",position:"relative"}),Tt("0.5s ease-in",He({transform:"translateX(0%)"}))]),xt(":leave",[Tt("0.5s ease-in",He({transform:"translateX(-100%)"}))])]),fn("slideInOutRight",[xt(":enter",[He({transform:"translateX(100%)",position:"fixed"}),Tt("0.5s ease-in",He({transform:"translateX(0%)"}))]),xt(":leave",[He({transform:"translateX(-100%)",position:"relative"}),Tt("0.5s ease-in",He({transform:"translateX(100%)"}))])]);let iD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez]}),i})(),rD=(()=>{class i{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const r=this.storage.getProperty("custom_labels");if(r)for(const d of r)if(d.label===e)return d[t];return e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(mn,16),n.Y36(yi,16))},i.\u0275pipe=n.Yjl({name:"customTranslate",type:i,pure:!0}),i})();function nk(i,s){if(1&i&&(n.O4$(),n._UZ(0,"circle",4)),2&i){const e=n.oxw(),t=n.MAs(1);n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),n.uIk("r",e._getCircleRadius())}}function ik(i,s){if(1&i&&(n.O4$(),n._UZ(0,"circle",4)),2&i){const e=n.oxw(),t=n.MAs(1);n.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),n.uIk("r",e._getCircleRadius())}}const ak=Ti(class{constructor(i){this._elementRef=i}},"primary"),sk=new n.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function ok(){return{diameter:100}}});class Sn extends ak{constructor(s,e,t,r,d,h,c,o){super(s),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Rt.w0.EMPTY,this.mode="determinate";const a=Sn._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),a.has(t.head)||a.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!d&&!d._forceAnimations,"mat-spinner"===s.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),d&&(d.color&&(this.color=this.defaultColor=d.color),d.diameter&&(this.diameter=d.diameter),d.strokeWidth&&(this.strokeWidth=d.strokeWidth)),e.isBrowser&&e.SAFARI&&c&&h&&o&&(this._resizeSubscription=c.change(150).subscribe(()=>{"indeterminate"===this.mode&&o.run(()=>h.markForCheck())}))}get diameter(){return this._diameter}set diameter(s){this._diameter=_n(s),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(s){this._strokeWidth=_n(s)}get value(){return"determinate"===this.mode?this._value:0}set value(s){this._value=Math.max(0,Math.min(100,_n(s)))}ngOnInit(){const s=this._elementRef.nativeElement;this._styleRoot=Bh(s)||this._document.head,this._attachStyleNode(),s.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const s=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${s} ${s}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(s){const e=50*(s.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const s=this._styleRoot,e=this._diameter,t=Sn._diameters;let r=t.get(s);if(!r||!r.has(e)){const d=this._document.createElement("style");d.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),d.textContent=this._getAnimationText(),s.appendChild(d),r||(r=new Set,t.set(s,r)),r.add(e)}}_getAnimationText(){const s=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*s).replace(/END_VALUE/g,""+.2*s).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Sn._diameters=new WeakMap,Sn.\u0275fac=function(s){return new(s||Sn)(n.Y36(n.SBq),n.Y36(yn),n.Y36(x.K0,8),n.Y36(n.QbO,8),n.Y36(sk),n.Y36(n.sBO),n.Y36(va),n.Y36(n.R0b))},Sn.\u0275cmp=n.Xpm({type:Sn,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(s,e){2&s&&(n.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[n.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(s,e){1&s&&(n.O4$(),n.TgZ(0,"svg",0,1),n.YNc(2,nk,1,11,"circle",2),n.YNc(3,ik,1,9,"circle",3),n.qZA()),2&s&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(2),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},dependencies:[x.RF,x.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let dC=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,x.ez,ht]}),i})();function ck(i,s){1&i&&n._UZ(0,"mat-spinner",7)}function dk(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function uk(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function hk(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"input",9,10),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.subject=r)}),n.qZA(),n.YNc(7,dk,3,3,"mat-error",11),n.qZA(),n.TgZ(8,"mat-form-field")(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"textarea",12,13),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.message=r)}),n.ALo(14,"translate"),n._uU(15," "),n.qZA(),n.YNc(16,uk,3,3,"mat-error",11),n.qZA()()}if(2&i){const e=n.MAs(6),t=n.MAs(13),r=n.oxw();n.xp6(3),n.Oqu(n.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),n.xp6(2),n.Q6J("ngModel",r.subject),n.xp6(2),n.Q6J("ngIf",e.invalid),n.xp6(3),n.Oqu(n.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),n.xp6(2),n.s9C("placeholder",n.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),n.Q6J("ngModel",r.message),n.xp6(4),n.Q6J("ngIf",t.invalid)}}let pk=(()=>{class i{constructor(e,t,r,d,h,c){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=d,this.data=h,this.storeService=c,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let d=JSON.stringify(this.data.error.payload);d=d.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+d+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",E(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(mn),n.Y36(Ji),n.Y36(Vo),n.Y36(wr),n.Y36(yi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.YNc(3,ck,1,0,"mat-spinner",1),n.YNc(4,hk,17,13,"div",2),n.TgZ(5,"div",3)(6,"div",4)(7,"button",5),n.NdJ("click",function(){return t.dialogRef.close()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",6),n.NdJ("click",function(){return t.sendBugReport()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(4),n.hij(" ",n.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),n.xp6(2),n.Q6J("disabled",""===t.message||""===t.subject||t.loading),n.xp6(1),n.hij(" ",n.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[x.O5,Oi,$i,Bi,Ot,es,ar,ta,Gi,Wi,ns,Uc,Ra,Sn,it],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})(),fk=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=Jn();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(pk,e)}),this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(oi),n.Y36(wr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1),n._uU(3),n.qZA(),n.TgZ(4,"div",2)(5,"div",3)(6,"button",4),n.NdJ("click",function(){return t.onBugReportClick()}),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.TgZ(9,"button",5),n.NdJ("click",function(){return t.onCloseClick()}),n._uU(10),n.ALo(11,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(t.data.title),n.xp6(2),n.hij(" ",t.data.description,"\n"),n.xp6(3),n.Q6J("hidden","error"!==t.data.type),n.xp6(1),n.hij(" ",n.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),n.xp6(3),n.hij(" ",n.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Oi,$i,Bi,Ot,it]}),i})();const wk=[[["caption"]],[["colgroup"],["col"]]],yk=["caption","colgroup, col"];function Mx(i){return class extends i{constructor(...s){super(...s),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(s){const e=this._sticky;this._sticky=Oe(s),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const s=this._hasStickyChanged;return this._hasStickyChanged=!1,s}resetStickyChanged(){this._hasStickyChanged=!1}}}const Jp=new n.OlP("CDK_TABLE");let Zp=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkCellDef",""]]}),i})(),Qp=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkHeaderCellDef",""]]}),i})(),uC=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkFooterCellDef",""]]}),i})();class Tk{}const xk=Mx(Tk);let Nl=(()=>{class i extends xk{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=Oe(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Jp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,Zp,5),n.Suo(r,Qp,5),n.Suo(r,uC,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.cell=d.first),n.iGM(d=n.CRH())&&(t.headerCell=d.first),n.iGM(d=n.CRH())&&(t.footerCell=d.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[n._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),n.qOj]}),i})();class Sx{constructor(s,e){e.nativeElement.classList.add(...s._columnCssClassName)}}let Ex=(()=>{class i extends Sx{constructor(e,t){super(e,t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Nl),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[n.qOj]}),i})(),Dx=(()=>{class i extends Sx{constructor(e,t){if(super(e,t),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Nl),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[n.qOj]}),i})();class sD{constructor(){this.tasks=[],this.endTasks=[]}}const Hx=new n.OlP("_COALESCED_STYLE_SCHEDULER");let oD=(()=>{class i{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Se.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new sD,this._getScheduleObservable().pipe(Ke(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new sD;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,lt.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,rt.q)(1))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Px=(()=>{class i{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof t_?e.headerCell.template:this instanceof n_?e.footerCell.template:e.cell.template}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4))},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();class Mk extends Px{}const Sk=Mx(Mk);let t_=(()=>{class i extends Sk{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(Jp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[n.qOj,n.TTD]}),i})();class Ek extends Px{}const Dk=Mx(Ek);let n_=(()=>{class i extends Dk{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(Jp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[n.qOj,n.TTD]}),i})(),hC=(()=>{class i extends Px{constructor(e,t,r){super(e,t),this._table=r}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(Jp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[n.qOj]}),i})(),Fl=(()=>{class i{constructor(e){this._viewContainer=e,i.mostRecentCellOutlet=this}ngOnDestroy(){i.mostRecentCellOutlet===this&&(i.mostRecentCellOutlet=null)}}return i.mostRecentCellOutlet=null,i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkCellOutlet",""]]}),i})(),Rx=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[Fl],encapsulation:2}),i})(),Lx=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[Fl],encapsulation:2}),i})(),pC=(()=>{class i{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","cdkNoDataRow",""]]}),i})();const lD=["top","bottom","left","right"];class Hk{constructor(s,e,t,r,d=!0,h=!0,c){this._isNativeHtmlTable=s,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=d,this._needsPositionStickyOnElement=h,this._positionListener=c,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(s,e){const t=[];for(const r of s)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let d=0;d{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(s,e,t,r=!0){if(!s.length||!this._isBrowser||!e.some(p=>p)&&!t.some(p=>p))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const d=s[0],h=d.children.length,c=this._getCellWidths(d,r),o=this._getStickyStartColumnPositions(c,e),a=this._getStickyEndColumnPositions(c,t),l=e.lastIndexOf(!0),u=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const p="rtl"===this.direction,m=p?"right":"left",g=p?"left":"right";for(const f of s)for(let y=0;ye[y]?f:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:c.slice(u).map((f,y)=>t[y+u]?f:null).reverse()}))})}stickRows(s,e,t){if(!this._isBrowser)return;const r="bottom"===t?s.slice().reverse():s,d="bottom"===t?e.slice().reverse():e,h=[],c=[],o=[];for(let l=0,u=0;l{for(let l=0;l{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(s,e){for(const r of e)s.style[r]="",s.classList.remove(this._borderCellCss[r]);lD.some(r=>-1===e.indexOf(r)&&s.style[r])?s.style.zIndex=this._getCalculatedZIndex(s):(s.style.zIndex="",this._needsPositionStickyOnElement&&(s.style.position=""),s.classList.remove(this._stickCellCss))}_addStickyStyle(s,e,t,r){s.classList.add(this._stickCellCss),r&&s.classList.add(this._borderCellCss[e]),s.style[e]=`${t}px`,s.style.zIndex=this._getCalculatedZIndex(s),this._needsPositionStickyOnElement&&(s.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(s){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of lD)s.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(s,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=s.children;for(let d=0;d0;d--)e[d]&&(t[d]=r,r+=s[d]);return t}}const Ix=new n.OlP("CDK_SPL");let fC=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","rowOutlet",""]]}),i})(),mC=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","headerRowOutlet",""]]}),i})(),gC=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","footerRowOutlet",""]]}),i})(),_C=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","noDataRowOutlet",""]]}),i})(),bC=(()=>{class i{constructor(e,t,r,d,h,c,o,a,l,u,p,m){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=h,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=l,this._viewportRuler=u,this._stickyPositioningListener=p,this._ngZone=m,this._onDestroy=new Se.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new n.vpe,this.viewChange=new Hn({start:0,end:Number.MAX_VALUE}),d||this._elementRef.nativeElement.setAttribute("role","table"),this._document=c,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Oe(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Oe(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(Ke(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),cu(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(r,d,h)=>this._getEmbeddedViewArgs(r.item,h),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{t.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&n.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,rt.q)(1),Ke(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const d=this._headerRowDefs.map(h=>h.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,d,"top"),this._headerRowDefs.forEach(h=>h.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const d=this._footerRowDefs.map(h=>h.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,d,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,d),this._footerRowDefs.forEach(h=>h.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((d,h)=>{this._addStickyColumnStyles([d],this._headerRowDefs[h])}),this._rowDefs.forEach(d=>{const h=[];for(let c=0;c{this._addStickyColumnStyles([d],this._footerRowDefs[h])}),Array.from(this._columnDefsByName.values()).forEach(d=>d.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const c=r&&r.has(h)?r.get(h):[];if(c.length){const o=c.shift();return o.dataIndex=t,o}return{data:e,rowDef:h,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),wC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=wC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=wC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=wC(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(h,c)=>h||!!c.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const d=this._footerRowDefs.reduce(e,!1);return d&&this._forceRenderFooterRows(),t||r||d}_switchDataSource(e){this._data=[],cu(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;cu(this.dataSource)?e=this.dataSource.connect(this):Vt(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,xe.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(Ke(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(c=>this._columnDefsByName.get(c)),d=r.map(c=>c.sticky),h=r.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(e,d,h,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!d.when||d.when(t,e));else{let d=this._rowDefs.find(h=>h.when&&h.when(t,e))||this._defaultRowDef;d&&r.push(d)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,d={}){const h=e.viewContainer.createEmbeddedView(t.template,d,r);return this._renderCellTemplateForItem(t,d),h}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))Fl.mostRecentCellOutlet&&Fl.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,r=e.length;t{const r=this._columnDefsByName.get(t);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of t){const d=this._document.createElement(r.tag);d.setAttribute("role","rowgroup");for(const h of r.outlets)d.appendChild(h.elementRef.nativeElement);e.appendChild(d)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,r)=>t||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Hk(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,xe.of)()).pipe(Ke(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const d=r.createEmbeddedView(e.templateRef),h=d.rootNodes[0];1===d.rootNodes.length&&h?.nodeType===this._document.ELEMENT_NODE&&(h.setAttribute("role","row"),h.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.ZZ4),n.Y36(n.sBO),n.Y36(n.SBq),n.$8M("role"),n.Y36(xn,8),n.Y36(x.K0),n.Y36(yn),n.Y36(vl),n.Y36(Hx),n.Y36(va),n.Y36(Ix,12),n.Y36(n.R0b,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,pC,5),n.Suo(r,Nl,5),n.Suo(r,hC,5),n.Suo(r,t_,5),n.Suo(r,n_,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._noDataRow=d.first),n.iGM(d=n.CRH())&&(t._contentColumnDefs=d),n.iGM(d=n.CRH())&&(t._contentRowDefs=d),n.iGM(d=n.CRH())&&(t._contentHeaderRowDefs=d),n.iGM(d=n.CRH())&&(t._contentFooterRowDefs=d)}},viewQuery:function(e,t){if(1&e&&(n.Gf(fC,7),n.Gf(mC,7),n.Gf(gC,7),n.Gf(_C,7)),2&e){let r;n.iGM(r=n.CRH())&&(t._rowOutlet=r.first),n.iGM(r=n.CRH())&&(t._headerRowOutlet=r.first),n.iGM(r=n.CRH())&&(t._footerRowOutlet=r.first),n.iGM(r=n.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[n._Bn([{provide:Jp,useExisting:i},{provide:vl,useClass:tw},{provide:Hx,useClass:oD},{provide:Ix,useValue:null}])],ngContentSelectors:yk,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(n.F$t(wk),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[fC,mC,gC,_C],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),i})();function wC(i,s){return i.concat(Array.from(s))}let Rk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[nr]}),i})();const kk=[[["caption"]],[["colgroup"],["col"]]],Lk=["caption","colgroup, col"];let Do=(()=>{class i extends bC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[n._Bn([{provide:vl,useClass:tw},{provide:bC,useExisting:i},{provide:Jp,useExisting:i},{provide:Hx,useClass:oD},{provide:Ix,useValue:null}]),n.qOj],ngContentSelectors:Lk,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(n.F$t(kk),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[fC,mC,gC,_C],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),i})(),Os=(()=>{class i extends Zp{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matCellDef",""]],features:[n._Bn([{provide:Zp,useExisting:i}]),n.qOj]}),i})(),Bs=(()=>{class i extends Qp{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matHeaderCellDef",""]],features:[n._Bn([{provide:Qp,useExisting:i}]),n.qOj]}),i})(),Vs=(()=>{class i extends Nl{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[n._Bn([{provide:Nl,useExisting:i},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),n.qOj]}),i})(),js=(()=>{class i extends Ex{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[n.qOj]}),i})(),Us=(()=>{class i extends Dx{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[n.qOj]}),i})(),Yl=(()=>{class i extends t_{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[n._Bn([{provide:t_,useExisting:i}]),n.qOj]}),i})(),Ho=(()=>{class i extends hC{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[n._Bn([{provide:hC,useExisting:i}]),n.qOj]}),i})(),ql=(()=>{class i extends Rx{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[n._Bn([{provide:Rx,useExisting:i}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[Fl],encapsulation:2}),i})(),Po=(()=>{class i extends Lx{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[n._Bn([{provide:Lx,useExisting:i}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[Fl],encapsulation:2}),i})(),yC=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Rk,ht,ht]}),i})();class zk extends ew{constructor(s=[]){super(),this._renderData=new Hn([]),this._filter=new Hn(""),this._internalPageChanges=new Se.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(Gf(r)){const d=Number(r);return d<9007199254740991?d:r}return r},this.sortData=(e,t)=>{const r=t.active,d=t.direction;return r&&""!=d?e.sort((h,c)=>{let o=this.sortingDataAccessor(h,r),a=this.sortingDataAccessor(c,r);const l=typeof o,u=typeof a;l!==u&&("number"===l&&(o+=""),"number"===u&&(a+=""));let p=0;return null!=o&&null!=a?o>a?p=1:o{const r=Object.keys(e).reduce((h,c)=>h+e[c]+"\u25ec","").toLowerCase(),d=t.trim().toLowerCase();return-1!=r.indexOf(d)},this._data=new Hn(s),this._updateChangeSubscription()}get data(){return this._data.value}set data(s){s=Array.isArray(s)?s:[],this._data.next(s),this._renderChangesSubscription||this._filterData(s)}get filter(){return this._filter.value}set filter(s){this._filter.next(s),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(s){this._sort=s,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(s){this._paginator=s,this._updateChangeSubscription()}_updateChangeSubscription(){const s=this._sort?(0,Mn.T)(this._sort.sortChange,this._sort.initialized):(0,xe.of)(null),e=this._paginator?(0,Mn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,xe.of)(null),r=(0,un.a)([this._data,this._filter]).pipe((0,_t.U)(([c])=>this._filterData(c))),d=(0,un.a)([r,s]).pipe((0,_t.U)(([c])=>this._orderData(c))),h=(0,un.a)([d,e]).pipe((0,_t.U)(([c])=>this._pageData(c)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=h.subscribe(c=>this._renderData.next(c))}_filterData(s){return this.filteredData=null==this.filter||""===this.filter?s:s.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(s){return this.sort?this.sortData(s.slice(),this.sort):s}_pageData(s){if(!this.paginator)return s;const e=this.paginator.pageIndex*this.paginator.pageSize;return s.slice(e,e+this.paginator.pageSize)}_updatePaginator(s){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=s,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class zl extends zk{}function Gk(i,s){1&i&&n._UZ(0,"mat-spinner",7)}function Wk(i,s){1&i&&(n.TgZ(0,"div",12),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function $k(i,s){1&i&&n._UZ(0,"th",19)}function Jk(i,s){if(1&i&&(n.TgZ(0,"td",20),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e)}}function Zk(i,s){1&i&&n._UZ(0,"tr",21)}function Qk(i,s){1&i&&n._UZ(0,"tr",22)}function Kk(i,s){if(1&i&&(n.TgZ(0,"table",13),n.ynx(1,14),n.YNc(2,$k,1,0,"th",15),n.YNc(3,Jk,2,1,"td",16),n.BQk(),n.YNc(4,Zk,1,0,"tr",17),n.YNc(5,Qk,1,0,"tr",18),n.qZA()),2&i){const e=n.oxw(2);n.Q6J("dataSource",e.dataSource),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}function Xk(i,s){if(1&i&&(n.TgZ(0,"perun-web-apps-alert",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i){const e=n.oxw(2);n.Q6J("alert_type","warn"),n.xp6(1),n.hij(" ",n.lcZ(2,2,e.data.alert)," ")}}function eL(i,s){if(1&i&&(n.TgZ(0,"div",8)(1,"p"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,Wk,3,3,"div",9),n.YNc(5,Kk,6,3,"table",10),n.YNc(6,Xk,3,4,"perun-web-apps-alert",11),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,4,e.data.description)," "),n.xp6(2),n.Q6J("ngIf",e.data.showAsk),n.xp6(1),n.Q6J("ngIf",e.data.items.length),n.xp6(1),n.Q6J("ngIf",e.data.alert)}}function tL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",24),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("disabled",e.loading),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function nL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",25),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("disabled",e.loading),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let Ox=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new zl(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-weight-bold",4,"ngIf"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,Gk,1,0,"mat-spinner",1),n.YNc(5,eL,7,6,"div",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.onCancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.YNc(10,tL,3,4,"button",5),n.YNc(11,nL,3,4,"button",6),n.qZA()()),2&e&&(n.Tol(t.theme),n.xp6(2),n.Oqu(n.lcZ(3,9,t.data.title)),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(3),n.hij(" ",n.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),n.xp6(2),n.Q6J("ngIf","remove"===t.data.type),n.xp6(1),n.Q6J("ngIf","confirmation"===t.data.type))},dependencies:[x.O5,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oi,$i,Bi,Ot,Sn,na,it]}),i})(),hL=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.theme=this.data.theme,this.message=this.data.message}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-universal-confirmation-dialog"]],decls:11,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",1)(5,"button",2),n.NdJ("click",function(){return t.onCancel()}),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"button",3),n.NdJ("click",function(){return t.onSubmit()}),n._uU(9),n.ALo(10,"translate"),n.qZA()()()),2&e&&(n.Tol(t.theme),n.xp6(2),n.Oqu(n.lcZ(3,6,t.message)),n.xp6(4),n.hij(" ",n.lcZ(7,8,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.CANCEL_BUTTON")," "),n.xp6(3),n.hij(" ",n.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Oi,Bi,Ot,it]}),i})();function bL(i,s){1&i&&(n.TgZ(0,"mat-error",8),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Gl{constructor(s,e,t){this.dialogRef=s,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new gg(null,[kn.required,kn.pattern(Gl.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const s=this.data.attribute?.value??[],e=this.sshControl.value;s.includes(e)||s.push(e),this.data.attribute.value=s,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{s.pop()})}}function TL(i,s){if(1&i&&(n.TgZ(0,"div",9),n._UZ(1,"perun-web-apps-notification",10),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Q6J("data",e)("inDialog",!0)}}function xL(i,s){if(1&i&&(n.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),n.YNc(2,TL,2,2,"div",8),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Q6J("cdkVirtualForOf",e.notifications)}}function ML(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",11),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}Gl.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],Gl.sshKeyPattern="^("+Gl.allowedSshKeys.join("|")+").+$",Gl.\u0275fac=function(s){return new(s||Gl)(n.Y36(si),n.Y36(wr),n.Y36(Ql))},Gl.\u0275cmp=n.Xpm({type:Gl,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(s,e){1&s&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),n._UZ(7,"textarea",3),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA(),n.YNc(10,bL,4,5,"mat-error",4),n.qZA()(),n.TgZ(11,"div",5)(12,"button",6),n.NdJ("click",function(){return e.onCancel()}),n._uU(13),n.ALo(14,"translate"),n.ALo(15,"customTranslate"),n.qZA(),n.TgZ(16,"button",7),n.NdJ("click",function(){return e.onSubmit()}),n._uU(17),n.ALo(18,"translate"),n.ALo(19,"customTranslate"),n.qZA()()),2&s&&(n.xp6(1),n.Oqu(n.lcZ(2,7,n.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),n.xp6(6),n.s9C("placeholder",n.lcZ(8,11,n.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),n.Q6J("formControl",e.sshControl),n.xp6(3),n.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),n.xp6(3),n.hij(" ",n.lcZ(14,15,n.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",e.sshControl.invalid),n.xp6(1),n.hij(" ",n.lcZ(18,19,n.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[x.O5,Gi,Wi,ns,Ot,es,ar,_r,_R,Ra,Oi,$i,Bi,it,rD],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let uD=(()=>{class i{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(sC))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,xL,3,1,"div",1),n.YNc(5,ML,4,5,"perun-web-apps-alert",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.onClear()}),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return t.onCancel()}),n._uU(12),n.ALo(13,"translate"),n.ALo(14,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,n.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),n.xp6(3),n.Q6J("ngIf",0!==t.notifications.length),n.xp6(1),n.Q6J("ngIf",0===t.notifications.length),n.xp6(3),n.hij(" ",n.lcZ(9,9,n.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),n.xp6(4),n.hij(" ",n.lcZ(13,13,n.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),i})();function SL(i,s){if(1&i&&(n.TgZ(0,"div",5)(1,"mat-icon"),n._uU(2),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Oqu(e.data.icon)}}function EL(i,s){if(1&i&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",e.showTimestamp()," ")}}let hD=(()=>{class i{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new n.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=Jn();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(fk,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function sx(i,s){zp.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(oi),n.Y36(sC))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"div",0),n.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),n.YNc(2,SL,3,1,"div",1),n.TgZ(3,"div",2),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,EL,2,1,"div",3),n.TgZ(7,"div",4),n.NdJ("click",function(){return t.waiting=!0,t.doAction()}),n._uU(8),n.qZA()()()),2&e&&(n.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),n.ekj("error","error"===t.data.type)("success","success"===t.data.type),n.xp6(2),n.Q6J("ngIf",null!==t.data.icon),n.xp6(2),n.hij(" ",n.lcZ(5,12,t.data.title)," "),n.xp6(2),n.Q6J("ngIf",t.inDialog),n.xp6(1),n.Q6J("hidden",t.alreadyPressed),n.xp6(1),n.hij(" ",t.data.actionText," "))},dependencies:[x.O5,Ln,it],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),i})();function DL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"perun-web-apps-notification",2),n.NdJ("closeNotification",function(){const d=n.CHM(e).index,h=n.oxw();return n.KtG(h.removeNotification(d))}),n.qZA()()}if(2&i){const e=s.$implicit;n.Q6J("@flyInOut",void 0),n.xp6(1),n.Q6J("data",e)("newNotification",!0)}}const HL=function(i){return{top:i}};let PL=(()=>{class i{constructor(e,t){this.notificator=e,this.notificationStorageService=t,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(r=>{this.processNotification(r)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(e){this.notifications.splice(e,1)}processNotification(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ji),n.Y36(sC))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&n.NdJ("resize",function(d){return t.getScreenSize(d)},!1,n.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,DL,2,3,"div",1),n.qZA()),2&e&&(n.Q6J("ngStyle",n.VKq(2,HL,t.getNotificatorTop())),n.xp6(1),n.Q6J("ngForOf",t.notifications))},dependencies:[x.sg,x.PC,hD],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:initial;bottom:0}}"],data:{animation:[$R]}}),i})();var Kp=(()=>{return(i=Kp||(Kp={})).Admin="admin",i.Profile="profile",i.PwdReset="pwdReset",i.Consolidator="consolidator",i.Linker="linker",Kp;var i})();const RL=["*",[["mat-toolbar-row"]]],kL=["*","mat-toolbar-row"],LL=Ti(class{constructor(i){this._elementRef=i}});let IL=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),i})(),OL=(()=>{class i extends LL{constructor(e,t,r){super(e),this._platform=t,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(yn),n.Y36(x.K0))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,IL,5),2&e){let d;n.iGM(d=n.CRH())&&(t._toolbarRows=d)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[n.qOj],ngContentSelectors:kL,decls:2,vars:0,template:function(e,t){1&e&&(n.F$t(RL),n.Hsn(0),n.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),i})(),pD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})(),BL=0;const VL=Qr(class{}),fD="mat-badge-content";let jL=(()=>{class i extends VL{constructor(e,t,r,d,h){super(),this._ngZone=e,this._elementRef=t,this._ariaDescriber=r,this._renderer=d,this._animationMode=h,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=BL++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=Oe(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=Oe(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(fD),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t)})}):e.classList.add(t),e}_updateRenderedContent(e){const t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${fD}`);for(const t of Array.from(e))t!==this._badgeElement&&t.remove()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(Qd),n.Y36(n.Qsj),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&n.ekj("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t.content)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[n.qOj]}),i})(),UL=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[bl,ht,ht]}),i})();const Bx=function(i){return{color:i}};function NL(i,s){if(1&i&&(n.TgZ(0,"button",8),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3," apps "),n.qZA()()),2&i){const e=n.oxw(),t=n.MAs(2);n.Q6J("matMenuTriggerFor",t)("matTooltip",n.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),n.xp6(2),n.Q6J("ngStyle",n.VKq(5,Bx,e.iconColor))}}function FL(i,s){if(1&i&&(n.TgZ(0,"span",9),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(6,Bx,e.textColor)),n.xp6(1),n.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function YL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onLogOut())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"NAV.LOGOUT")," "))}let qL=(()=>{class i{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ou))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(n.YNc(0,NL,4,7,"button",0),n.TgZ(1,"mat-menu",null,1)(3,"button",2),n.NdJ("click",function(){return t.redirectToUrl()})("auxclick",function(){return t.redirectToUrl()}),n.TgZ(4,"span"),n._uU(5),n.qZA()()(),n.TgZ(6,"button",3)(7,"mat-icon",4),n._uU(8," person "),n.qZA(),n.YNc(9,FL,2,8,"span",5),n.qZA(),n.TgZ(10,"mat-menu",null,6),n.YNc(12,YL,3,3,"button",7),n.qZA()),2&e){const r=n.MAs(11);n.Q6J("ngIf",t.url),n.xp6(5),n.Oqu(t.label),n.xp6(1),n.Q6J("matMenuTriggerFor",r),n.xp6(1),n.Q6J("ngStyle",n.VKq(6,Bx,t.iconColor)),n.xp6(2),n.Q6J("ngIf",null!==t.user),n.xp6(3),n.Q6J("ngIf",t.logoutEnabled)}},dependencies:[x.O5,x.PC,Ln,jp,Kc,My,Ot,ks,it],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),i})(),Vx=(()=>{class i extends Ts{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const e=Object.assign({},this.queryParams);delete e.applicationFormItems,this.queryParams=e}}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[n.qOj,n.TTD]}),i})();const Xp=function(i){return{color:i}};function zL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onToggleSidenav())}),n.TgZ(1,"mat-icon"),n._uU(2,"menu"),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(1,Xp,e.iconColor))}}function GL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),n._uU(3," language "),n.qZA()(),n.TgZ(4,"mat-menu",null,13)(6,"button",14),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeLanguage())}),n._uU(7),n.ALo(8,"translate"),n.qZA()()()}if(2&i){const e=n.MAs(5),t=n.oxw();n.Q6J("ngStyle",n.VKq(6,Xp,t.textColor)),n.xp6(1),n.Q6J("matMenuTriggerFor",e),n.xp6(1),n.Q6J("ngStyle",n.VKq(8,Xp,t.iconColor)),n.xp6(5),n.hij(" ",n.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function WL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",15),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.showNotificationHistory())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",16),n._uU(3),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",n.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),n.xp6(2),n.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),n.Q6J("ngStyle",n.VKq(7,Xp,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),n.xp6(1),n.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function $L(i,s){if(1&i&&n._UZ(0,"perun-web-apps-header-menu",17),2&i){const e=n.oxw();n.Q6J("url",e.otherAppUrl)("label",e.otherAppLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor)}}const JL=function(i){return{background:i}},ZL=function(){return[]},QL=function(){return["/"]};let KL=(()=>{class i{constructor(e,t,r,d,h,c,o){this.storeService=e,this.sanitizer=t,this.translateService=r,this.otherApplicationService=d,this.notificationStorageService=h,this.dialog=c,this.route=o,this.sidenavToggle=new n.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(e="en"){return this.storeService.getProperty(this.otherApp===Kp.Profile?"profile_label_en":"en"===e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===Kp.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0)}(this.otherApp!==Kp.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const e=Jn();e.width="520px",this.dialog.open(uD,e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(yi),n.Y36(On),n.Y36(mn),n.Y36(iR),n.Y36(sC),n.Y36(oi),n.Y36(Li))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-toolbar",0)(1,"div",1),n.YNc(2,zL,3,3,"button",2),n._UZ(3,"a",3),n.TgZ(4,"p",4),n._uU(5),n.qZA()(),n.TgZ(6,"div",5),n.YNc(7,GL,9,10,"div",6),n.YNc(8,WL,4,9,"button",7),n.YNc(9,$L,1,6,"perun-web-apps-header-menu",8),n.qZA()()),2&e&&(n.Q6J("ngStyle",n.VKq(11,JL,t.bgColor)),n.xp6(2),n.Q6J("ngIf",t.showToggle),n.xp6(1),n.Q6J("innerHTML",t.logo,n.oJD)("routerLink",t.disableLogo?n.DdM(13,ZL):n.DdM(14,QL))("queryParams",t.route.snapshot.queryParams),n.xp6(1),n.Q6J("ngStyle",n.VKq(15,Xp,t.textColor)),n.xp6(1),n.hij(" ",t.label," "),n.xp6(1),n.Q6J("ngStyle",n.VKq(17,Xp,t.navTextColor)),n.xp6(1),n.Q6J("ngIf",t.showLanguageMenu),n.xp6(1),n.Q6J("ngIf",t.showNotifications),n.xp6(1),n.Q6J("ngIf",t.showHeaderMenu))},dependencies:[x.O5,x.PC,Ud,Ln,jp,Kc,My,Ot,ks,OL,jL,qL,Vx,it],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),i})(),XL=(()=>{class i{constructor(e){this.authResolver=e}getSideMenuItems(){const e=[];return this.authResolver.isCabinetAdmin()&&e.push({label:"MENU_ITEMS.ALL_PUBLICATIONS",icon:"perun-publications-white",isSVG:!0,link:"/all-publications",activatedRegex:"^/all-publications",tabName:"all-publications"}),e.push({label:"MENU_ITEMS.MY_PUBLICATIONS",icon:"local_library",link:"/my-publications",activatedRegex:"^/my-publications",tabName:"my-publications"}),e.push({label:"MENU_ITEMS.CREATE_PUBLICATION",icon:"add_box",link:"/create-publication",activatedRegex:"^/create-publication",tabName:"create-publication"}),this.authResolver.isCabinetAdmin()&&(e.push({label:"MENU_ITEMS.AUTHORS",icon:"assignment_ind",link:"/authors",activatedRegex:"^/authors",tabName:"authors"}),e.push({label:"MENU_ITEMS.CATEGORIES",icon:"all_inbox",link:"/categories",activatedRegex:"^/categories$",tabName:"categories"}),e.push({label:"MENU_ITEMS.PUBLICATION_SYSTEMS",icon:"assignment",link:"/publication-systems",activatedRegex:"^/publication-systems$",tabName:"publication-systems"})),e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(dn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),jx=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})();const mD=["*"],tI=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],nI=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],oI=Qr(mr(class{})),lI=mr(class{}),cI=new n.OlP("MatList"),gD=new n.OlP("MatNavList");let dI=(()=>{class i extends oI{constructor(){super(...arguments),this._stateChanges=new Se.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[n._Bn([{provide:gD,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:mD,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),i})(),_D=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),i})(),bD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),i})(),uI=(()=>{class i extends lI{constructor(e,t,r,d){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new Se.x,this._disabled=!1,this._isInteractiveList=!!(r||d&&"action-list"===d._getListType()),this._list=r||d;const h=this._getHostElement();"button"===h.nodeName.toLowerCase()&&!h.hasAttribute("type")&&h.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Ke(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Oe(e)}ngAfterContentInit(){!function Kh(i,s,e="mat"){i.changes.pipe(Zt(i)).subscribe(({length:t})=>{Qa(s,`${e}-2-line`,!1),Qa(s,`${e}-3-line`,!1),Qa(s,`${e}-multi-line`,!1),2===t||3===t?Qa(s,`${e}-${t}-line`,!0):t>3&&Qa(s,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(gD,8),n.Y36(cI,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,_D,5),n.Suo(r,bD,5),n.Suo(r,yl,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._avatar=d.first),n.iGM(d=n.CRH())&&(t._icon=d.first),n.iGM(d=n.CRH())&&(t._lines=d)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[n.qOj],ngContentSelectors:nI,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(n.F$t(tI),n.TgZ(0,"span",0),n._UZ(1,"span",1),n.Hsn(2),n.TgZ(3,"span",2),n.Hsn(4,1),n.qZA(),n.Hsn(5,2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},dependencies:[Lr],encapsulation:2,changeDetection:0}),i})(),yD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Cl,Kr,ht,lm,x.ez,Cl,ht,lm,jx]}),i})();function _I(i,s){if(1&i&&n._UZ(0,"mat-icon",6),2&i){const e=n.oxw().$implicit;n.Q6J("svgIcon",e.icon)}}function bI(i,s){if(1&i&&(n.TgZ(0,"mat-icon"),n._uU(1),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.Oqu(e.icon)}}const wI=function(i){return{color:i}};function yI(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-list-item",2),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.shouldHideMenu())}),n.YNc(1,_I,1,1,"mat-icon",3),n.YNc(2,bI,2,1,"mat-icon",4),n.TgZ(3,"span",5),n._uU(4),n.ALo(5,"translate"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw();n.ekj("activated",t.isActive(e.activatedRegex)),n.s9C("routerLink",e.link),n.Q6J("ngStyle",n.VKq(10,wI,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),n.xp6(1),n.Q6J("ngIf",e.isSVG),n.xp6(1),n.Q6J("ngIf",!e.isSVG),n.xp6(2),n.Oqu(n.lcZ(5,8,e.label))}}let CI=(()=>{class i{constructor(e,t,r){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.items=[],this.textColor=this.storeService.getProperty("theme").sidemenu_text_color,this.currentUrl=r.url,r.events.subscribe(d=>{d instanceof Ni&&(this.currentUrl=d.url)})}ngOnInit(){this.items=this.sideMenuItemService.getSideMenuItems()}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(XL),n.Y36(yi),n.Y36($n))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["mat-ripple","","class","side-menu-item-height",3,"activated","ngStyle","matRippleColor","routerLink","click",4,"ngFor","ngForOf"],["mat-ripple","",1,"side-menu-item-height",3,"ngStyle","matRippleColor","routerLink","click"],["class","perun-icon",3,"svgIcon",4,"ngIf"],[4,"ngIf"],[1,"nav-caption","ml-3"],[1,"perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-nav-list",0),n.YNc(1,yI,6,12,"mat-list-item",1),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngForOf",t.items))},dependencies:[x.sg,x.O5,x.PC,Ln,dI,uI,Lr,Ts,it],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block}.side-menu-item-height[_ngcontent-%COMP%]{height:40px!important}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),i})();const AI=["footer"],CD=function(i){return{background:i}},vI=function(i){return{"min-height":i}};function TI(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"perun-web-apps-header",1),n.NdJ("sidenavToggle",function(){n.CHM(e);const r=n.MAs(4);return n.KtG(r.toggle())}),n.qZA(),n.TgZ(2,"mat-sidenav-container",2)(3,"mat-sidenav",3,4),n._UZ(5,"perun-web-apps-side-menu",5),n.qZA(),n.TgZ(6,"mat-sidenav-content",6)(7,"div",7),n._UZ(8,"router-outlet"),n.qZA(),n.TgZ(9,"div",null,8),n._UZ(11,"perun-web-apps-footer"),n.qZA()()()()}if(2&i){const e=n.MAs(4),t=n.oxw();n.xp6(3),n.Q6J("mode",t.sidebarMode)("ngStyle",n.VKq(6,CD,t.sideMenuBgColor))("opened",!t.isMobile()),n.xp6(2),n.Q6J("sideNav",e),n.xp6(1),n.Q6J("ngStyle",n.VKq(8,CD,t.contentBackgroundColor)),n.xp6(1),n.Q6J("ngStyle",n.VKq(10,vI,t.contentHeight))}}function xI(i,s){1&i&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-login-screen-base",9),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Q6J("application","publications")("headerTitle",n.lcZ(2,2,"HEADER.TITLE")))}let MI=(()=>{class i{constructor(e,t,r,d,h){this.store=e,this.initAuth=t,this.changeDetector=r,this.authResolver=d,this.router=h,this.sidebarMode="side",this.sideMenuBgColor=this.store.getProperty("theme").sidemenu_bg_color,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.contentHeight="calc(100vh - 64px)"}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout");const e=location.pathname;!this.authResolver.isCabinetAdmin()&&("/"===e||["/all-publications","/authors","/categories","/publication-systems"].some(r=>e.includes(r)))&&this.router.navigate(["my-publications"],{queryParamsHandling:"preserve"})}isMobile(){return window.innerWidth<=i.minWidth}setContentHeight(e){this.contentHeight="calc(100vh - 84px - "+String(e)+"px)",this.changeDetector.detectChanges()}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return i.minWidth=992,i.\u0275fac=function(e){return new(e||i)(n.Y36(yi),n.Y36(Ax),n.Y36(n.sBO),n.Y36(dn),n.Y36($n))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&n.Gf(AI,5),2&e){let r;n.iGM(r=n.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&n.NdJ("resize",function(d){return t.getScreenSize(d)},!1,n.Jf7)},decls:3,vars:2,consts:[[4,"ngIf"],[3,"sidenavToggle"],["autosize","true"],["fixedInViewport","","fixedTopGap","64",1,"side-menu-size",3,"mode","ngStyle","opened"],["sidenav",""],[1,"overflow-hidden",3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application","headerTitle"]],template:function(e,t){1&e&&(n._UZ(0,"perun-web-apps-notificator"),n.YNc(1,TI,12,12,"div",0),n.YNc(2,xI,3,4,"div",0)),2&e&&(n.xp6(1),n.Q6J("ngIf",!t.isLoginScreenShow&&!t.isServiceAccess&&!t.isServiceLogin()),n.xp6(1),n.Q6J("ngIf",t.isLoginScreenShow||t.isServiceAccess||t.isServiceLogin()))},dependencies:[x.O5,x.PC,ZE,QE,Tx,lo,WR,nD,PL,KL,CI,it],styles:["#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 600px){#content-wrap[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}}#content-inner[_ngcontent-%COMP%]{position:relative;overflow-x:hidden;padding-top:64px;min-height:calc(100vh - 128px)}#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}.side-menu-size[_ngcontent-%COMP%]{width:300px;height:auto}"]}),i})();class SI{constructor(s,e="/assets/i18n/",t=".json"){this.http=s,this.prefix=e,this.suffix=t}getTranslation(s){return this.http.get(`${this.prefix}${s}${this.suffix}`)}}let EI=(()=>{class i{constructor(e,t,r,d,h){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=d,this.utilsService=h}initializeColors(e,t){return new Promise(r=>{t.forEach(d=>{const h=this.storeService.getProperty("theme")[d.configValue];document.documentElement.style.setProperty(d.cssVariable,h)}),e.forEach(d=>{const h=this.storeService.getProperty("theme")[d.configValue];document.documentElement.style.setProperty(d.cssVariable,h),this.setEntityTheme(d.entity,h)}),r()})}setEntityTheme(e,t){const r=function DI(i){return[ia(tinycolor(i).lighten(52),"50"),ia(tinycolor(i).lighten(37),"100"),ia(tinycolor(i).lighten(26),"200"),ia(tinycolor(i).lighten(12),"300"),ia(tinycolor(i).lighten(6),"400"),ia(tinycolor(i),"500"),ia(tinycolor(i).darken(6),"600"),ia(tinycolor(i).darken(12),"700"),ia(tinycolor(i).darken(18),"800"),ia(tinycolor(i).darken(24),"900"),ia(tinycolor(i).lighten(50).saturate(30),"A100"),ia(tinycolor(i).lighten(30).saturate(30),"A200"),ia(tinycolor(i).lighten(10).saturate(15),"A400"),ia(tinycolor(i).lighten(5).saturate(5),"A700")]}(t);for(const d of r){const o=`--${e}-theme-primary-contrast-${d.name}`,a=d.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${d.name}`,`${d.red},${d.green},${d.blue}`),document.documentElement.style.setProperty(o,a)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const r=document.location.hostname;t?.brandings?.[r]&&this.storeService.setBanding(r),e()},()=>{e()})})}getNoCacheHeaders(){return new v.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(yi),n.LFG(Va),n.LFG(oe),n.LFG(ui))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function ia(i,s){const e=tinycolor(i),t=e.toRgb();return{name:s,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let HI=(()=>{class i{constructor(e,t,r,d,h,c){this.initAuthService=e,this.appConfigService=t,this.location=r,this.authzSevice=d,this.guiAuthResolver=h,this.mfaHandlerService=c,this.entityColorConfigs=[{entity:"user",configValue:"user_color",cssVariable:"--user-color"}],this.colorConfigs=[{configValue:"sidemenu_bg_color",cssVariable:"--side-bg"},{configValue:"sidemenu_hover_color",cssVariable:"--side-hover"},{configValue:"sidemenu_hover_text_color",cssVariable:"--side-text-hover"},{configValue:"sidemenu_active_color",cssVariable:"--side-active"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-text-active"}]}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().then(()=>this.loadPolicies()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}loadPolicies(){return yx(this.authzSevice.getAllPolicies()).then(e=>{this.guiAuthResolver.setPerunPolicies(e)})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ax),n.LFG(EI),n.LFG(x.Ye),n.LFG(Va),n.LFG(dn),n.LFG(Cx))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const PI=new n.OlP("perun-api-service");function AD(i){return new n.vHH(3e3,!1)}function hO(){return typeof window<"u"&&typeof window.document<"u"}function Ux(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ad(i){switch(i.length){case 0:return new mu;case 1:return i[0];default:return new Lm(i)}}function vD(i,s,e,t,r=new Map,d=new Map){const h=[],c=[];let o=-1,a=null;if(t.forEach(l=>{const u=l.get("offset"),p=u==o,m=p&&a||new Map;l.forEach((g,f)=>{let y=f,j=g;if("offset"!==f)switch(y=s.normalizePropertyName(y,h),j){case"!":j=r.get(f);break;case yo:j=d.get(f);break;default:j=s.normalizeStyleValue(f,y,j,h)}m.set(y,j)}),p||c.push(m),a=m,o=u}),h.length)throw function eO(i){return new n.vHH(3502,!1)}();return c}function Nx(i,s,e,t){switch(s){case"start":i.onStart(()=>t(e&&Fx(e,"start",i)));break;case"done":i.onDone(()=>t(e&&Fx(e,"done",i)));break;case"destroy":i.onDestroy(()=>t(e&&Fx(e,"destroy",i)))}}function Fx(i,s,e){const d=Yx(i.element,i.triggerName,i.fromState,i.toState,s||i.phaseName,e.totalTime??i.totalTime,!!e.disabled),h=i._data;return null!=h&&(d._data=h),d}function Yx(i,s,e,t,r="",d=0,h){return{element:i,triggerName:s,fromState:e,toState:t,phaseName:r,totalTime:d,disabled:!!h}}function ka(i,s,e){let t=i.get(s);return t||i.set(s,t=e),t}function TD(i){const s=i.indexOf(":");return[i.substring(1,s),i.slice(s+1)]}let qx=(i,s)=>!1,xD=(i,s,e)=>[],MD=null;function zx(i){const s=i.parentNode||i.host;return s===MD?null:s}(Ux()||typeof Element<"u")&&(hO()?(MD=(()=>document.documentElement)(),qx=(i,s)=>{for(;s;){if(s===i)return!0;s=zx(s)}return!1}):qx=(i,s)=>i.contains(s),xD=(i,s,e)=>{if(e)return Array.from(i.querySelectorAll(s));const t=i.querySelector(s);return t?[t]:[]});let Bu=null,SD=!1;const ED=qx,DD=xD;let HD=(()=>{class i{validateStyleProperty(e){return function fO(i){Bu||(Bu=function mO(){return typeof document<"u"?document.body:null}()||{},SD=!!Bu.style&&"WebkitAppearance"in Bu.style);let s=!0;return Bu.style&&!function pO(i){return"ebkit"==i.substring(1,6)}(i)&&(s=i in Bu.style,!s&&SD&&(s="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Bu.style)),s}(e)}matchesElement(e,t){return!1}containsElement(e,t){return ED(e,t)}getParentElement(e){return zx(e)}query(e,t,r){return DD(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,d,h,c=[],o){return new mu(r,d)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Gx=(()=>{class i{}return i.NOOP=new HD,i})();const Wx="ng-enter",CC="ng-leave",AC="ng-trigger",vC=".ng-trigger",RD="ng-animating",$x=".ng-animating";function sd(i){if("number"==typeof i)return i;const s=i.match(/^(-?[\.\d]+)(m?s)/);return!s||s.length<2?0:Jx(parseFloat(s[1]),s[2])}function Jx(i,s){return"s"===s?1e3*i:i}function TC(i,s,e){return i.hasOwnProperty("duration")?i:function bO(i,s,e){let r,d=0,h="";if("string"==typeof i){const c=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===c)return s.push(AD()),{duration:0,delay:0,easing:""};r=Jx(parseFloat(c[1]),c[2]);const o=c[3];null!=o&&(d=Jx(parseFloat(o),c[4]));const a=c[5];a&&(h=a)}else r=i;if(!e){let c=!1,o=s.length;r<0&&(s.push(function RI(){return new n.vHH(3100,!1)}()),c=!0),d<0&&(s.push(function kI(){return new n.vHH(3101,!1)}()),c=!0),c&&s.splice(o,0,AD())}return{duration:r,delay:d,easing:h}}(i,s,e)}function i_(i,s={}){return Object.keys(i).forEach(e=>{s[e]=i[e]}),s}function kD(i){const s=new Map;return Object.keys(i).forEach(e=>{s.set(e,i[e])}),s}function od(i,s=new Map,e){if(e)for(let[t,r]of e)s.set(t,r);for(let[t,r]of i)s.set(t,r);return s}function ID(i,s,e){return e?s+":"+e+";":""}function OD(i){let s="";for(let e=0;e{const d=Qx(r);e&&!e.has(r)&&e.set(r,i.style[d]),i.style[d]=t}),Ux()&&OD(i))}function Vu(i,s){i.style&&(s.forEach((e,t)=>{const r=Qx(t);i.style[r]=""}),Ux()&&OD(i))}function r_(i){return Array.isArray(i)?1==i.length?i[0]:yw(i):i}const Zx=new RegExp("{{\\s*(.+?)\\s*}}","g");function BD(i){let s=[];if("string"==typeof i){let e;for(;e=Zx.exec(i);)s.push(e[1]);Zx.lastIndex=0}return s}function xC(i,s,e){const t=i.toString(),r=t.replace(Zx,(d,h)=>{let c=s[h];return null==c&&(e.push(function II(i){return new n.vHH(3003,!1)}()),c=""),c.toString()});return r==t?i:r}function MC(i){const s=[];let e=i.next();for(;!e.done;)s.push(e.value),e=i.next();return s}const CO=/-+([a-z0-9])/g;function Qx(i){return i.replace(CO,(...s)=>s[1].toUpperCase())}function AO(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function La(i,s,e){switch(s.type){case 7:return i.visitTrigger(s,e);case 0:return i.visitState(s,e);case 1:return i.visitTransition(s,e);case 2:return i.visitSequence(s,e);case 3:return i.visitGroup(s,e);case 4:return i.visitAnimate(s,e);case 5:return i.visitKeyframes(s,e);case 6:return i.visitStyle(s,e);case 8:return i.visitReference(s,e);case 9:return i.visitAnimateChild(s,e);case 10:return i.visitAnimateRef(s,e);case 11:return i.visitQuery(s,e);case 12:return i.visitStagger(s,e);default:throw function OI(i){return new n.vHH(3004,!1)}()}}function VD(i,s){return window.getComputedStyle(i)[s]}function EO(i,s){const e=[];return"string"==typeof i?i.split(/\s*,\s*/).forEach(t=>function DO(i,s,e){if(":"==i[0]){const o=function HO(i,s){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(i,e);if("function"==typeof o)return void s.push(o);i=o}const t=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function JI(i){return new n.vHH(3015,!1)}()),s;const r=t[1],d=t[2],h=t[3];s.push(jD(r,h));"<"==d[0]&&!("*"==r&&"*"==h)&&s.push(jD(h,r))}(t,e,s)):e.push(i),e}const HC=new Set(["true","1"]),PC=new Set(["false","0"]);function jD(i,s){const e=HC.has(i)||PC.has(i),t=HC.has(s)||PC.has(s);return(r,d)=>{let h="*"==i||i==r,c="*"==s||s==d;return!h&&e&&"boolean"==typeof r&&(h=r?HC.has(i):PC.has(i)),!c&&t&&"boolean"==typeof d&&(c=d?HC.has(s):PC.has(s)),h&&c}}const PO=new RegExp("s*:selfs*,?","g");function Kx(i,s,e,t){return new RO(i).build(s,e,t)}class RO{constructor(s){this._driver=s}build(s,e,t){const r=new IO(e);return this._resetContextStyleTimingState(r),La(this,r_(s),r)}_resetContextStyleTimingState(s){s.currentQuerySelector="",s.collectedStyles=new Map,s.collectedStyles.set("",new Map),s.currentTime=0}visitTrigger(s,e){let t=e.queryCount=0,r=e.depCount=0;const d=[],h=[];return"@"==s.name.charAt(0)&&e.errors.push(function VI(){return new n.vHH(3006,!1)}()),s.definitions.forEach(c=>{if(this._resetContextStyleTimingState(e),0==c.type){const o=c,a=o.name;a.toString().split(/\s*,\s*/).forEach(l=>{o.name=l,d.push(this.visitState(o,e))}),o.name=a}else if(1==c.type){const o=this.visitTransition(c,e);t+=o.queryCount,r+=o.depCount,h.push(o)}else e.errors.push(function jI(){return new n.vHH(3007,!1)}())}),{type:7,name:s.name,states:d,transitions:h,queryCount:t,depCount:r,options:null}}visitState(s,e){const t=this.visitStyle(s.styles,e),r=s.options&&s.options.params||null;if(t.containsDynamicStyles){const d=new Set,h=r||{};t.styles.forEach(c=>{c instanceof Map&&c.forEach(o=>{BD(o).forEach(a=>{h.hasOwnProperty(a)||d.add(a)})})}),d.size&&(MC(d.values()),e.errors.push(function UI(i,s){return new n.vHH(3008,!1)}()))}return{type:0,name:s.name,style:t,options:r?{params:r}:null}}visitTransition(s,e){e.queryCount=0,e.depCount=0;const t=La(this,r_(s.animation),e);return{type:1,matchers:EO(s.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:ju(s.options)}}visitSequence(s,e){return{type:2,steps:s.steps.map(t=>La(this,t,e)),options:ju(s.options)}}visitGroup(s,e){const t=e.currentTime;let r=0;const d=s.steps.map(h=>{e.currentTime=t;const c=La(this,h,e);return r=Math.max(r,e.currentTime),c});return e.currentTime=r,{type:3,steps:d,options:ju(s.options)}}visitAnimate(s,e){const t=function BO(i,s){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return Xx(TC(i,s).duration,0,"");const e=i;if(e.split(/\s+/).some(d=>"{"==d.charAt(0)&&"{"==d.charAt(1))){const d=Xx(0,0,"");return d.dynamic=!0,d.strValue=e,d}const r=TC(e,s);return Xx(r.duration,r.delay,r.easing)}(s.timings,e.errors);e.currentAnimateTimings=t;let r,d=s.styles?s.styles:He({});if(5==d.type)r=this.visitKeyframes(d,e);else{let h=s.styles,c=!1;if(!h){c=!0;const a={};t.easing&&(a.easing=t.easing),h=He(a)}e.currentTime+=t.duration+t.delay;const o=this.visitStyle(h,e);o.isEmptyStep=c,r=o}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(s,e){const t=this._makeStyleAst(s,e);return this._validateStyleAst(t,e),t}_makeStyleAst(s,e){const t=[],r=Array.isArray(s.styles)?s.styles:[s.styles];for(let c of r)"string"==typeof c?c===yo?t.push(c):e.errors.push(new n.vHH(3002,!1)):t.push(kD(c));let d=!1,h=null;return t.forEach(c=>{if(c instanceof Map&&(c.has("easing")&&(h=c.get("easing"),c.delete("easing")),!d))for(let o of c.values())if(o.toString().indexOf("{{")>=0){d=!0;break}}),{type:6,styles:t,easing:h,offset:s.offset,containsDynamicStyles:d,options:null}}_validateStyleAst(s,e){const t=e.currentAnimateTimings;let r=e.currentTime,d=e.currentTime;t&&d>0&&(d-=t.duration+t.delay),s.styles.forEach(h=>{"string"!=typeof h&&h.forEach((c,o)=>{const a=e.collectedStyles.get(e.currentQuerySelector),l=a.get(o);let u=!0;l&&(d!=r&&d>=l.startTime&&r<=l.endTime&&(e.errors.push(function FI(i,s,e,t,r){return new n.vHH(3010,!1)}()),u=!1),d=l.startTime),u&&a.set(o,{startTime:d,endTime:r}),e.options&&function yO(i,s,e){const t=s.params||{},r=BD(i);r.length&&r.forEach(d=>{t.hasOwnProperty(d)||e.push(function LI(i){return new n.vHH(3001,!1)}())})}(c,e.options,e.errors)})})}visitKeyframes(s,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function YI(){return new n.vHH(3011,!1)}()),t;let d=0;const h=[];let c=!1,o=!1,a=0;const l=s.steps.map(j=>{const le=this._makeStyleAst(j,e);let Be=null!=le.offset?le.offset:function OO(i){if("string"==typeof i)return null;let s=null;if(Array.isArray(i))i.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;s=parseFloat(t.get("offset")),t.delete("offset")}});else if(i instanceof Map&&i.has("offset")){const e=i;s=parseFloat(e.get("offset")),e.delete("offset")}return s}(le.styles),Mt=0;return null!=Be&&(d++,Mt=le.offset=Be),o=o||Mt<0||Mt>1,c=c||Mt0&&d{const Be=p>0?le==m?1:p*le:h[le],Mt=Be*y;e.currentTime=g+f.delay+Mt,f.duration=Mt,this._validateStyleAst(j,e),j.offset=Be,t.styles.push(j)}),t}visitReference(s,e){return{type:8,animation:La(this,r_(s.animation),e),options:ju(s.options)}}visitAnimateChild(s,e){return e.depCount++,{type:9,options:ju(s.options)}}visitAnimateRef(s,e){return{type:10,animation:this.visitReference(s.animation,e),options:ju(s.options)}}visitQuery(s,e){const t=e.currentQuerySelector,r=s.options||{};e.queryCount++,e.currentQuery=s;const[d,h]=function kO(i){const s=!!i.split(/\s*,\s*/).find(e=>":self"==e);return s&&(i=i.replace(PO,"")),i=i.replace(/@\*/g,vC).replace(/@\w+/g,e=>vC+"-"+e.slice(1)).replace(/:animating/g,$x),[i,s]}(s.selector);e.currentQuerySelector=t.length?t+" "+d:d,ka(e.collectedStyles,e.currentQuerySelector,new Map);const c=La(this,r_(s.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:d,limit:r.limit||0,optional:!!r.optional,includeSelf:h,animation:c,originalSelector:s.selector,options:ju(s.options)}}visitStagger(s,e){e.currentQuery||e.errors.push(function WI(){return new n.vHH(3013,!1)}());const t="full"===s.timings?{duration:0,delay:0,easing:"full"}:TC(s.timings,e.errors,!0);return{type:12,animation:La(this,r_(s.animation),e),timings:t,options:null}}}class IO{constructor(s){this.errors=s,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 ju(i){return i?(i=i_(i)).params&&(i.params=function LO(i){return i?i_(i):null}(i.params)):i={},i}function Xx(i,s,e){return{duration:i,delay:s,easing:e}}function eM(i,s,e,t,r,d,h=null,c=!1){return{type:1,element:i,keyframes:s,preStyleProps:e,postStyleProps:t,duration:r,delay:d,totalTime:r+d,easing:h,subTimeline:c}}class RC{constructor(){this._map=new Map}get(s){return this._map.get(s)||[]}append(s,e){let t=this._map.get(s);t||this._map.set(s,t=[]),t.push(...e)}has(s){return this._map.has(s)}clear(){this._map.clear()}}const UO=new RegExp(":enter","g"),FO=new RegExp(":leave","g");function tM(i,s,e,t,r,d=new Map,h=new Map,c,o,a=[]){return(new YO).buildKeyframes(i,s,e,t,r,d,h,c,o,a)}class YO{buildKeyframes(s,e,t,r,d,h,c,o,a,l=[]){a=a||new RC;const u=new nM(s,e,a,r,d,l,[]);u.options=o;const p=o.delay?sd(o.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([h],null,u.errors,o),La(this,t,u);const m=u.timelines.filter(g=>g.containsAnimation());if(m.length&&c.size){let g;for(let f=m.length-1;f>=0;f--){const y=m[f];if(y.element===e){g=y;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([c],null,u.errors,o)}return m.length?m.map(g=>g.buildKeyframes()):[eM(e,[],[],[],0,p,"",!1)]}visitTrigger(s,e){}visitState(s,e){}visitTransition(s,e){}visitAnimateChild(s,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(s.options),d=e.currentTimeline.currentTime,h=this._visitSubInstructions(t,r,r.options);d!=h&&e.transformIntoNewTimeline(h)}e.previousNode=s}visitAnimateRef(s,e){const t=e.createSubContext(s.options);t.transformIntoNewTimeline(),this.visitReference(s.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=s}_visitSubInstructions(s,e,t){let d=e.currentTimeline.currentTime;const h=null!=t.duration?sd(t.duration):null,c=null!=t.delay?sd(t.delay):null;return 0!==h&&s.forEach(o=>{const a=e.appendInstructionToTimeline(o,h,c);d=Math.max(d,a.duration+a.delay)}),d}visitReference(s,e){e.updateOptions(s.options,!0),La(this,s.animation,e),e.previousNode=s}visitSequence(s,e){const t=e.subContextCount;let r=e;const d=s.options;if(d&&(d.params||d.delay)&&(r=e.createSubContext(d),r.transformIntoNewTimeline(),null!=d.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=kC);const h=sd(d.delay);r.delayNextStep(h)}s.steps.length&&(s.steps.forEach(h=>La(this,h,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=s}visitGroup(s,e){const t=[];let r=e.currentTimeline.currentTime;const d=s.options&&s.options.delay?sd(s.options.delay):0;s.steps.forEach(h=>{const c=e.createSubContext(s.options);d&&c.delayNextStep(d),La(this,h,c),r=Math.max(r,c.currentTimeline.currentTime),t.push(c.currentTimeline)}),t.forEach(h=>e.currentTimeline.mergeTimelineCollectedStyles(h)),e.transformIntoNewTimeline(r),e.previousNode=s}_visitTiming(s,e){if(s.dynamic){const t=s.strValue;return TC(e.params?xC(t,e.params,e.errors):t,e.errors)}return{duration:s.duration,delay:s.delay,easing:s.easing}}visitAnimate(s,e){const t=e.currentAnimateTimings=this._visitTiming(s.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const d=s.style;5==d.type?this.visitKeyframes(d,e):(e.incrementTime(t.duration),this.visitStyle(d,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=s}visitStyle(s,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();const d=r&&r.easing||s.easing;s.isEmptyStep?t.applyEmptyStep(d):t.setStyles(s.styles,d,e.errors,e.options),e.previousNode=s}visitKeyframes(s,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,d=t.duration,c=e.createSubContext().currentTimeline;c.easing=t.easing,s.styles.forEach(o=>{c.forwardTime((o.offset||0)*d),c.setStyles(o.styles,o.easing,e.errors,e.options),c.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(c),e.transformIntoNewTimeline(r+d),e.previousNode=s}visitQuery(s,e){const t=e.currentTimeline.currentTime,r=s.options||{},d=r.delay?sd(r.delay):0;d&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=kC);let h=t;const c=e.invokeQuery(s.selector,s.originalSelector,s.limit,s.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=c.length;let o=null;c.forEach((a,l)=>{e.currentQueryIndex=l;const u=e.createSubContext(s.options,a);d&&u.delayNextStep(d),a===e.element&&(o=u.currentTimeline),La(this,s.animation,u),u.currentTimeline.applyStylesToKeyframe(),h=Math.max(h,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(h),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=s}visitStagger(s,e){const t=e.parentContext,r=e.currentTimeline,d=s.timings,h=Math.abs(d.duration),c=h*(e.currentQueryTotal-1);let o=h*e.currentQueryIndex;switch(d.duration<0?"reverse":d.easing){case"reverse":o=c-o;break;case"full":o=t.currentStaggerTime}const l=e.currentTimeline;o&&l.delayNextStep(o);const u=l.currentTime;La(this,s.animation,e),e.previousNode=s,t.currentStaggerTime=r.currentTime-u+(r.startTime-t.currentTimeline.startTime)}}const kC={};class nM{constructor(s,e,t,r,d,h,c,o){this._driver=s,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=d,this.errors=h,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=kC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new LC(this._driver,e,0),c.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(s,e){if(!s)return;const t=s;let r=this.options;null!=t.duration&&(r.duration=sd(t.duration)),null!=t.delay&&(r.delay=sd(t.delay));const d=t.params;if(d){let h=r.params;h||(h=this.options.params={}),Object.keys(d).forEach(c=>{(!e||!h.hasOwnProperty(c))&&(h[c]=xC(d[c],h,this.errors))})}}_copyOptions(){const s={};if(this.options){const e=this.options.params;if(e){const t=s.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return s}createSubContext(s=null,e,t){const r=e||this.element,d=new nM(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return d.previousNode=this.previousNode,d.currentAnimateTimings=this.currentAnimateTimings,d.options=this._copyOptions(),d.updateOptions(s),d.currentQueryIndex=this.currentQueryIndex,d.currentQueryTotal=this.currentQueryTotal,d.parentContext=this,this.subContextCount++,d}transformIntoNewTimeline(s){return this.previousNode=kC,this.currentTimeline=this.currentTimeline.fork(this.element,s),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(s,e,t){const r={duration:e??s.duration,delay:this.currentTimeline.currentTime+(t??0)+s.delay,easing:""},d=new qO(this._driver,s.element,s.keyframes,s.preStyleProps,s.postStyleProps,r,s.stretchStartingKeyframe);return this.timelines.push(d),r}incrementTime(s){this.currentTimeline.forwardTime(this.currentTimeline.duration+s)}delayNextStep(s){s>0&&this.currentTimeline.delayNextStep(s)}invokeQuery(s,e,t,r,d,h){let c=[];if(r&&c.push(this.element),s.length>0){s=(s=s.replace(UO,"."+this._enterClassName)).replace(FO,"."+this._leaveClassName);let a=this._driver.query(this.element,s,1!=t);0!==t&&(a=t<0?a.slice(a.length+t,a.length):a.slice(0,t)),c.push(...a)}return!d&&0==c.length&&h.push(function $I(i){return new n.vHH(3014,!1)}()),c}}class LC{constructor(s,e,t,r){this._driver=s,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(s){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+s),e&&this.snapshotCurrentStyles()):this.startTime+=s}fork(s,e){return this.applyStylesToKeyframe(),new LC(this._driver,s,e||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+=1,this._loadKeyframe()}forwardTime(s){this.applyStylesToKeyframe(),this.duration=s,this._loadKeyframe()}_updateStyle(s,e){this._localTimelineStyles.set(s,e),this._globalTimelineStyles.set(s,e),this._styleSummary.set(s,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(s){s&&this._previousKeyframe.set("easing",s);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||yo),this._currentKeyframe.set(e,yo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(s,e,t,r){e&&this._previousKeyframe.set("easing",e);const d=r&&r.params||{},h=function zO(i,s){const e=new Map;let t;return i.forEach(r=>{if("*"===r){t=t||s.keys();for(let d of t)e.set(d,yo)}else od(r,e)}),e}(s,this._globalTimelineStyles);for(let[c,o]of h){const a=xC(o,d,t);this._pendingStyles.set(c,a),this._localTimelineStyles.has(c)||this._backFill.set(c,this._globalTimelineStyles.get(c)??yo),this._updateStyle(c,a)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((s,e)=>{this._currentKeyframe.set(e,s)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((s,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,s)}))}snapshotCurrentStyles(){for(let[s,e]of this._localTimelineStyles)this._pendingStyles.set(s,e),this._updateStyle(s,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const s=[];for(let e in this._currentKeyframe)s.push(e);return s}mergeTimelineCollectedStyles(s){s._styleSummary.forEach((e,t)=>{const r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const s=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((c,o)=>{const a=od(c,new Map,this._backFill);a.forEach((l,u)=>{"!"===l?s.add(u):l===yo&&e.add(u)}),t||a.set("offset",o/this.duration),r.push(a)});const d=s.size?MC(s.values()):[],h=e.size?MC(e.values()):[];if(t){const c=r[0],o=new Map(c);c.set("offset",0),o.set("offset",1),r=[c,o]}return eM(this.element,r,d,h,this.duration,this.startTime,this.easing,!1)}}class qO extends LC{constructor(s,e,t,r,d,h,c=!1){super(s,e,h.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=d,this._stretchStartingKeyframe=c,this.timings={duration:h.duration,delay:h.delay,easing:h.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let s=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const d=[],h=t+e,c=e/h,o=od(s[0]);o.set("offset",0),d.push(o);const a=od(s[0]);a.set("offset",FD(c)),d.push(a);const l=s.length-1;for(let u=1;u<=l;u++){let p=od(s[u]);const m=p.get("offset");p.set("offset",FD((e+m*t)/h)),d.push(p)}t=h,e=0,r="",s=d}return eM(this.element,s,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function FD(i,s=3){const e=Math.pow(10,s-1);return Math.round(i*e)/e}class iM{}const GO=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"]);class WO extends iM{normalizePropertyName(s,e){return Qx(s)}normalizeStyleValue(s,e,t,r){let d="";const h=t.toString().trim();if(GO.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)d="px";else{const c=t.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&r.push(function BI(i,s){return new n.vHH(3005,!1)}())}return h+d}}function YD(i,s,e,t,r,d,h,c,o,a,l,u,p){return{type:0,element:i,triggerName:s,isRemovalTransition:r,fromState:e,fromStyles:d,toState:t,toStyles:h,timelines:c,queriedElements:o,preStyleProps:a,postStyleProps:l,totalTime:u,errors:p}}const rM={};class qD{constructor(s,e,t){this._triggerName=s,this.ast=e,this._stateStyles=t}match(s,e,t,r){return function $O(i,s,e,t,r){return i.some(d=>d(s,e,t,r))}(this.ast.matchers,s,e,t,r)}buildStyles(s,e,t){let r=this._stateStyles.get("*");return void 0!==s&&(r=this._stateStyles.get(s?.toString())||r),r?r.buildStyles(e,t):new Map}build(s,e,t,r,d,h,c,o,a,l){const u=[],p=this.ast.options&&this.ast.options.params||rM,g=this.buildStyles(t,c&&c.params||rM,u),f=o&&o.params||rM,y=this.buildStyles(r,f,u),j=new Set,le=new Map,Be=new Map,Mt="void"===r,xi={params:JO(f,p),delay:this.ast.options?.delay},Xn=l?[]:tM(s,e,this.ast.animation,d,h,g,y,xi,a,u);let pi=0;if(Xn.forEach(ls=>{pi=Math.max(ls.duration+ls.delay,pi)}),u.length)return YD(e,this._triggerName,t,r,Mt,g,y,[],[],le,Be,pi,u);Xn.forEach(ls=>{const Jl=ls.element,GH=ka(le,Jl,new Set);ls.preStyleProps.forEach(Fu=>GH.add(Fu));const b_=ka(Be,Jl,new Set);ls.postStyleProps.forEach(Fu=>b_.add(Fu)),Jl!==e&&j.add(Jl)});const Or=MC(j.values());return YD(e,this._triggerName,t,r,Mt,g,y,Xn,Or,le,Be,pi)}}function JO(i,s){const e=i_(s);for(const t in i)i.hasOwnProperty(t)&&null!=i[t]&&(e[t]=i[t]);return e}class ZO{constructor(s,e,t){this.styles=s,this.defaultParams=e,this.normalizer=t}buildStyles(s,e){const t=new Map,r=i_(this.defaultParams);return Object.keys(s).forEach(d=>{const h=s[d];null!==h&&(r[d]=h)}),this.styles.styles.forEach(d=>{"string"!=typeof d&&d.forEach((h,c)=>{h&&(h=xC(h,r,e));const o=this.normalizer.normalizePropertyName(c,e);h=this.normalizer.normalizeStyleValue(c,o,h,e),t.set(o,h)})}),t}}class KO{constructor(s,e,t){this.name=s,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new ZO(r.style,r.options&&r.options.params||{},t))}),zD(this.states,"true","1"),zD(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new qD(s,r,this.states))}),this.fallbackTransition=function XO(i,s,e){return new qD(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(h,c)=>!0],options:null,queryCount:0,depCount:0},s)}(s,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(s,e,t,r){return this.transitionFactories.find(h=>h.match(s,e,t,r))||null}matchStyles(s,e,t){return this.fallbackTransition.buildStyles(s,e,t)}}function zD(i,s,e){i.has(s)?i.has(e)||i.set(e,i.get(s)):i.has(e)&&i.set(s,i.get(e))}const eB=new RC;class tB{constructor(s,e,t){this.bodyNode=s,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(s,e){const t=[],d=Kx(this._driver,e,t,[]);if(t.length)throw function tO(i){return new n.vHH(3503,!1)}();this._animations.set(s,d)}_buildPlayer(s,e,t){const r=s.element,d=vD(0,this._normalizer,0,s.keyframes,e,t);return this._driver.animate(r,d,s.duration,s.delay,s.easing,[],!0)}create(s,e,t={}){const r=[],d=this._animations.get(s);let h;const c=new Map;if(d?(h=tM(this._driver,e,d,Wx,CC,new Map,new Map,t,eB,r),h.forEach(l=>{const u=ka(c,l.element,new Map);l.postStyleProps.forEach(p=>u.set(p,null))})):(r.push(function nO(){return new n.vHH(3300,!1)}()),h=[]),r.length)throw function iO(i){return new n.vHH(3504,!1)}();c.forEach((l,u)=>{l.forEach((p,m)=>{l.set(m,this._driver.computeStyle(u,m,yo))})});const a=ad(h.map(l=>{const u=c.get(l.element);return this._buildPlayer(l,new Map,u)}));return this._playersById.set(s,a),a.onDestroy(()=>this.destroy(s)),this.players.push(a),a}destroy(s){const e=this._getPlayer(s);e.destroy(),this._playersById.delete(s);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(s){const e=this._playersById.get(s);if(!e)throw function rO(i){return new n.vHH(3301,!1)}();return e}listen(s,e,t,r){const d=Yx(e,"","","");return Nx(this._getPlayer(s),t,d,r),()=>{}}command(s,e,t,r){if("register"==t)return void this.register(s,r[0]);if("create"==t)return void this.create(s,e,r[0]||{});const d=this._getPlayer(s);switch(t){case"play":d.play();break;case"pause":d.pause();break;case"reset":d.reset();break;case"restart":d.restart();break;case"finish":d.finish();break;case"init":d.init();break;case"setPosition":d.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(s)}}}const GD="ng-animate-queued",aM="ng-animate-disabled",sB=[],WD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},oB={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ss="__ng_removed";class sM{constructor(s,e=""){this.namespaceId=e;const t=s&&s.hasOwnProperty("value");if(this.value=function uB(i){return i??null}(t?s.value:s),t){const d=i_(s);delete d.value,this.options=d}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(s){const e=s.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const a_="void",oM=new sM(a_);class lB{constructor(s,e,t){this.id=s,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+s,os(e,this._hostClassName)}listen(s,e,t,r){if(!this._triggers.has(e))throw function aO(i,s){return new n.vHH(3302,!1)}();if(null==t||0==t.length)throw function sO(i){return new n.vHH(3303,!1)}();if(!function hB(i){return"start"==i||"done"==i}(t))throw function oO(i,s){return new n.vHH(3400,!1)}();const d=ka(this._elementListeners,s,[]),h={name:e,phase:t,callback:r};d.push(h);const c=ka(this._engine.statesByElement,s,new Map);return c.has(e)||(os(s,AC),os(s,AC+"-"+e),c.set(e,oM)),()=>{this._engine.afterFlush(()=>{const o=d.indexOf(h);o>=0&&d.splice(o,1),this._triggers.has(e)||c.delete(e)})}}register(s,e){return!this._triggers.has(s)&&(this._triggers.set(s,e),!0)}_getTrigger(s){const e=this._triggers.get(s);if(!e)throw function lO(i){return new n.vHH(3401,!1)}();return e}trigger(s,e,t,r=!0){const d=this._getTrigger(e),h=new lM(this.id,e,s);let c=this._engine.statesByElement.get(s);c||(os(s,AC),os(s,AC+"-"+e),this._engine.statesByElement.set(s,c=new Map));let o=c.get(e);const a=new sM(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&o&&a.absorbOptions(o.options),c.set(e,a),o||(o=oM),a.value!==a_&&o.value===a.value){if(!function mB(i,s){const e=Object.keys(i),t=Object.keys(s);if(e.length!=t.length)return!1;for(let r=0;r{Vu(s,y),Ro(s,j)})}return}const p=ka(this._engine.playersByElement,s,[]);p.forEach(f=>{f.namespaceId==this.id&&f.triggerName==e&&f.queued&&f.destroy()});let m=d.matchTransition(o.value,a.value,s,a.params),g=!1;if(!m){if(!r)return;m=d.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:e,transition:m,fromState:o,toState:a,player:h,isFallbackTransition:g}),g||(os(s,GD),h.onStart(()=>{ef(s,GD)})),h.onDone(()=>{let f=this.players.indexOf(h);f>=0&&this.players.splice(f,1);const y=this._engine.playersByElement.get(s);if(y){let j=y.indexOf(h);j>=0&&y.splice(j,1)}}),this.players.push(h),p.push(h),h}deregister(s){this._triggers.delete(s),this._engine.statesByElement.forEach(e=>e.delete(s)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=s))})}clearElementCache(s){this._engine.statesByElement.delete(s),this._elementListeners.delete(s);const e=this._engine.playersByElement.get(s);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(s))}_signalRemovalForInnerTriggers(s,e){const t=this._engine.driver.query(s,vC,!0);t.forEach(r=>{if(r[ss])return;const d=this._engine.fetchNamespacesByElement(r);d.size?d.forEach(h=>h.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(s,e,t,r){const d=this._engine.statesByElement.get(s),h=new Map;if(d){const c=[];if(d.forEach((o,a)=>{if(h.set(a,o.value),this._triggers.has(a)){const l=this.trigger(s,a,a_,r);l&&c.push(l)}}),c.length)return this._engine.markElementAsRemoved(this.id,s,!0,e,h),t&&ad(c).onDone(()=>this._engine.processLeaveNode(s)),!0}return!1}prepareLeaveAnimationListeners(s){const e=this._elementListeners.get(s),t=this._engine.statesByElement.get(s);if(e&&t){const r=new Set;e.forEach(d=>{const h=d.name;if(r.has(h))return;r.add(h);const o=this._triggers.get(h).fallbackTransition,a=t.get(h)||oM,l=new sM(a_),u=new lM(this.id,h,s);this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:h,transition:o,fromState:a,toState:l,player:u,isFallbackTransition:!0})})}}removeNode(s,e){const t=this._engine;if(s.childElementCount&&this._signalRemovalForInnerTriggers(s,e),this.triggerLeaveAnimation(s,e,!0))return;let r=!1;if(t.totalAnimations){const d=t.players.length?t.playersByQueriedElement.get(s):[];if(d&&d.length)r=!0;else{let h=s;for(;h=h.parentNode;)if(t.statesByElement.get(h)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(s),r)t.markElementAsRemoved(this.id,s,!1,e);else{const d=s[ss];(!d||d===WD)&&(t.afterFlush(()=>this.clearElementCache(s)),t.destroyInnerAnimations(s),t._onRemovalComplete(s,e))}}insertNode(s,e){os(s,this._hostClassName)}drainQueuedTransitions(s){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const d=t.element,h=this._elementListeners.get(d);h&&h.forEach(c=>{if(c.name==t.triggerName){const o=Yx(d,t.triggerName,t.fromState.value,t.toState.value);o._data=s,Nx(t.player,c.phase,o,c.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const d=t.transition.ast.depCount,h=r.transition.ast.depCount;return 0==d||0==h?d-h:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(s){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,s)}elementContainsData(s){let e=!1;return this._elementListeners.has(s)&&(e=!0),e=!!this._queue.find(t=>t.element===s)||e,e}}class cB{constructor(s,e,t){this.bodyNode=s,this.driver=e,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=(r,d)=>{}}_onRemovalComplete(s,e){this.onRemovalComplete(s,e)}get queuedPlayers(){const s=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&s.push(t)})}),s}createNamespace(s,e){const t=new lB(s,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[s]=t}_balanceNamespaceList(s,e){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let h=!1,c=this.driver.getParentElement(e);for(;c;){const o=r.get(c);if(o){const a=t.indexOf(o);t.splice(a+1,0,s),h=!0;break}c=this.driver.getParentElement(c)}h||t.unshift(s)}else t.push(s);return r.set(e,s),s}register(s,e){let t=this._namespaceLookup[s];return t||(t=this.createNamespace(s,e)),t}registerTrigger(s,e,t){let r=this._namespaceLookup[s];r&&r.register(e,t)&&this.totalAnimations++}destroy(s,e){if(!s)return;const t=this._fetchNamespace(s);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[s];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(s){return this._namespaceLookup[s]}fetchNamespacesByElement(s){const e=new Set,t=this.statesByElement.get(s);if(t)for(let r of t.values())if(r.namespaceId){const d=this._fetchNamespace(r.namespaceId);d&&e.add(d)}return e}trigger(s,e,t,r){if(IC(e)){const d=this._fetchNamespace(s);if(d)return d.trigger(e,t,r),!0}return!1}insertNode(s,e,t,r){if(!IC(e))return;const d=e[ss];if(d&&d.setForRemoval){d.setForRemoval=!1,d.setForMove=!0;const h=this.collectedLeaveElements.indexOf(e);h>=0&&this.collectedLeaveElements.splice(h,1)}if(s){const h=this._fetchNamespace(s);h&&h.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(s){this.collectedEnterElements.push(s)}markElementAsDisabled(s,e){e?this.disabledNodes.has(s)||(this.disabledNodes.add(s),os(s,aM)):this.disabledNodes.has(s)&&(this.disabledNodes.delete(s),ef(s,aM))}removeNode(s,e,t,r){if(IC(e)){const d=s?this._fetchNamespace(s):null;if(d?d.removeNode(e,r):this.markElementAsRemoved(s,e,!1,r),t){const h=this.namespacesByHostElement.get(e);h&&h.id!==s&&h.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(s,e,t,r,d){this.collectedLeaveElements.push(e),e[ss]={namespaceId:s,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:d}}listen(s,e,t,r,d){return IC(e)?this._fetchNamespace(s).listen(e,t,r,d):()=>{}}_buildInstruction(s,e,t,r,d){return s.transition.build(this.driver,s.element,s.fromState.value,s.toState.value,t,r,s.fromState.options,s.toState.options,e,d)}destroyInnerAnimations(s){let e=this.driver.query(s,vC,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(s,$x,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(s){const e=this.playersByElement.get(s);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(s){const e=this.playersByQueriedElement.get(s);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(s=>{if(this.players.length)return ad(this.players).onDone(()=>s());s()})}processLeaveNode(s){const e=s[ss];if(e&&e.setForRemoval){if(s[ss]=WD,e.namespaceId){this.destroyInnerAnimations(s);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(s)}this._onRemovalComplete(s,e.setForRemoval)}s.classList?.contains(aM)&&this.markElementAsDisabled(s,!1),this.driver.query(s,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(s=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?ad(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(s){throw function cO(i){return new n.vHH(3402,!1)}()}_flushAnimations(s,e){const t=new RC,r=[],d=new Map,h=[],c=new Map,o=new Map,a=new Map,l=new Set;this.disabledNodes.forEach(ot=>{l.add(ot);const Ct=this.driver.query(ot,".ng-animate-queued",!0);for(let St=0;St{const St=Wx+f++;g.set(Ct,St),ot.forEach(an=>os(an,St))});const y=[],j=new Set,le=new Set;for(let ot=0;otj.add(an)):le.add(Ct))}const Be=new Map,Mt=ZD(p,Array.from(j));Mt.forEach((ot,Ct)=>{const St=CC+f++;Be.set(Ct,St),ot.forEach(an=>os(an,St))}),s.push(()=>{m.forEach((ot,Ct)=>{const St=g.get(Ct);ot.forEach(an=>ef(an,St))}),Mt.forEach((ot,Ct)=>{const St=Be.get(Ct);ot.forEach(an=>ef(an,St))}),y.forEach(ot=>{this.processLeaveNode(ot)})});const xi=[],Xn=[];for(let ot=this._namespaceList.length-1;ot>=0;ot--)this._namespaceList[ot].drainQueuedTransitions(e).forEach(St=>{const an=St.player,Zi=St.element;if(xi.push(an),this.collectedEnterElements.length){const yr=Zi[ss];if(yr&&yr.setForMove){if(yr.previousTriggersValues&&yr.previousTriggersValues.has(St.triggerName)){const Yu=yr.previousTriggersValues.get(St.triggerName),cs=this.statesByElement.get(St.element);if(cs&&cs.has(St.triggerName)){const KC=cs.get(St.triggerName);KC.value=Yu,cs.set(St.triggerName,KC)}}return void an.destroy()}}const Lo=!u||!this.driver.containsElement(u,Zi),Ba=Be.get(Zi),ud=g.get(Zi),li=this._buildInstruction(St,t,ud,Ba,Lo);if(li.errors&&li.errors.length)return void Xn.push(li);if(Lo)return an.onStart(()=>Vu(Zi,li.fromStyles)),an.onDestroy(()=>Ro(Zi,li.toStyles)),void r.push(an);if(St.isFallbackTransition)return an.onStart(()=>Vu(Zi,li.fromStyles)),an.onDestroy(()=>Ro(Zi,li.toStyles)),void r.push(an);const JH=[];li.timelines.forEach(yr=>{yr.stretchStartingKeyframe=!0,this.disabledNodes.has(yr.element)||JH.push(yr)}),li.timelines=JH,t.append(Zi,li.timelines),h.push({instruction:li,player:an,element:Zi}),li.queriedElements.forEach(yr=>ka(c,yr,[]).push(an)),li.preStyleProps.forEach((yr,Yu)=>{if(yr.size){let cs=o.get(Yu);cs||o.set(Yu,cs=new Set),yr.forEach((KC,FM)=>cs.add(FM))}}),li.postStyleProps.forEach((yr,Yu)=>{let cs=a.get(Yu);cs||a.set(Yu,cs=new Set),yr.forEach((KC,FM)=>cs.add(FM))})});if(Xn.length){const ot=[];Xn.forEach(Ct=>{ot.push(function dO(i,s){return new n.vHH(3505,!1)}())}),xi.forEach(Ct=>Ct.destroy()),this.reportError(ot)}const pi=new Map,Or=new Map;h.forEach(ot=>{const Ct=ot.element;t.has(Ct)&&(Or.set(Ct,Ct),this._beforeAnimationBuild(ot.player.namespaceId,ot.instruction,pi))}),r.forEach(ot=>{const Ct=ot.element;this._getPreviousPlayers(Ct,!1,ot.namespaceId,ot.triggerName,null).forEach(an=>{ka(pi,Ct,[]).push(an),an.destroy()})});const ls=y.filter(ot=>KD(ot,o,a)),Jl=new Map;JD(Jl,this.driver,le,a,yo).forEach(ot=>{KD(ot,o,a)&&ls.push(ot)});const b_=new Map;m.forEach((ot,Ct)=>{JD(b_,this.driver,new Set(ot),o,"!")}),ls.forEach(ot=>{const Ct=Jl.get(ot),St=b_.get(ot);Jl.set(ot,new Map([...Array.from(Ct?.entries()??[]),...Array.from(St?.entries()??[])]))});const Fu=[],WH=[],$H={};h.forEach(ot=>{const{element:Ct,player:St,instruction:an}=ot;if(t.has(Ct)){if(l.has(Ct))return St.onDestroy(()=>Ro(Ct,an.toStyles)),St.disabled=!0,St.overrideTotalTime(an.totalTime),void r.push(St);let Zi=$H;if(Or.size>1){let Ba=Ct;const ud=[];for(;Ba=Ba.parentNode;){const li=Or.get(Ba);if(li){Zi=li;break}ud.push(Ba)}ud.forEach(li=>Or.set(li,Zi))}const Lo=this._buildAnimation(St.namespaceId,an,pi,d,b_,Jl);if(St.setRealPlayer(Lo),Zi===$H)Fu.push(St);else{const Ba=this.playersByElement.get(Zi);Ba&&Ba.length&&(St.parentPlayer=ad(Ba)),r.push(St)}}else Vu(Ct,an.fromStyles),St.onDestroy(()=>Ro(Ct,an.toStyles)),WH.push(St),l.has(Ct)&&r.push(St)}),WH.forEach(ot=>{const Ct=d.get(ot.element);if(Ct&&Ct.length){const St=ad(Ct);ot.setRealPlayer(St)}}),r.forEach(ot=>{ot.parentPlayer?ot.syncPlayerEvents(ot.parentPlayer):ot.destroy()});for(let ot=0;ot!Lo.destroyed);Zi.length?pB(this,Ct,Zi):this.processLeaveNode(Ct)}return y.length=0,Fu.forEach(ot=>{this.players.push(ot),ot.onDone(()=>{ot.destroy();const Ct=this.players.indexOf(ot);this.players.splice(Ct,1)}),ot.play()}),Fu}elementContainsData(s,e){let t=!1;const r=e[ss];return r&&r.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(s).elementContainsData(e)||t}afterFlush(s){this._flushFns.push(s)}afterFlushAnimationsDone(s){this._whenQuietFns.push(s)}_getPreviousPlayers(s,e,t,r,d){let h=[];if(e){const c=this.playersByQueriedElement.get(s);c&&(h=c)}else{const c=this.playersByElement.get(s);if(c){const o=!d||d==a_;c.forEach(a=>{a.queued||!o&&a.triggerName!=r||h.push(a)})}}return(t||r)&&(h=h.filter(c=>!(t&&t!=c.namespaceId||r&&r!=c.triggerName))),h}_beforeAnimationBuild(s,e,t){const d=e.element,h=e.isRemovalTransition?void 0:s,c=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const a=o.element,l=a!==d,u=ka(t,a,[]);this._getPreviousPlayers(a,l,h,c,e.toState).forEach(m=>{const g=m.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),m.destroy(),u.push(m)})}Vu(d,e.fromStyles)}_buildAnimation(s,e,t,r,d,h){const c=e.triggerName,o=e.element,a=[],l=new Set,u=new Set,p=e.timelines.map(g=>{const f=g.element;l.add(f);const y=f[ss];if(y&&y.removedBeforeQueried)return new mu(g.duration,g.delay);const j=f!==o,le=function fB(i){const s=[];return QD(i,s),s}((t.get(f)||sB).map(pi=>pi.getRealPlayer())).filter(pi=>!!pi.element&&pi.element===f),Be=d.get(f),Mt=h.get(f),xi=vD(0,this._normalizer,0,g.keyframes,Be,Mt),Xn=this._buildPlayer(g,xi,le);if(g.subTimeline&&r&&u.add(f),j){const pi=new lM(s,c,f);pi.setRealPlayer(Xn),a.push(pi)}return Xn});a.forEach(g=>{ka(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function dB(i,s,e){let t=i.get(s);if(t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&i.delete(s)}return t}(this.playersByQueriedElement,g.element,g))}),l.forEach(g=>os(g,RD));const m=ad(p);return m.onDestroy(()=>{l.forEach(g=>ef(g,RD)),Ro(o,e.toStyles)}),u.forEach(g=>{ka(r,g,[]).push(m)}),m}_buildPlayer(s,e,t){return e.length>0?this.driver.animate(s.element,e,s.duration,s.delay,s.easing,t):new mu(s.duration,s.delay)}}class lM{constructor(s,e,t){this.namespaceId=s,this.triggerName=e,this.element=t,this._player=new mu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(s){this._containsRealPlayer||(this._player=s,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>Nx(s,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(s.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(s){this.totalTime=s}syncPlayerEvents(s){const e=this._player;e.triggerCallback&&s.onStart(()=>e.triggerCallback("start")),s.onDone(()=>this.finish()),s.onDestroy(()=>this.destroy())}_queueEvent(s,e){ka(this._queuedCallbacks,s,[]).push(e)}onDone(s){this.queued&&this._queueEvent("done",s),this._player.onDone(s)}onStart(s){this.queued&&this._queueEvent("start",s),this._player.onStart(s)}onDestroy(s){this.queued&&this._queueEvent("destroy",s),this._player.onDestroy(s)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(s){this.queued||this._player.setPosition(s)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(s){const e=this._player;e.triggerCallback&&e.triggerCallback(s)}}function IC(i){return i&&1===i.nodeType}function $D(i,s){const e=i.style.display;return i.style.display=s??"none",e}function JD(i,s,e,t,r){const d=[];e.forEach(o=>d.push($D(o)));const h=[];t.forEach((o,a)=>{const l=new Map;o.forEach(u=>{const p=s.computeStyle(a,u,r);l.set(u,p),(!p||0==p.length)&&(a[ss]=oB,h.push(a))}),i.set(a,l)});let c=0;return e.forEach(o=>$D(o,d[c++])),h}function ZD(i,s){const e=new Map;if(i.forEach(c=>e.set(c,[])),0==s.length)return e;const r=new Set(s),d=new Map;function h(c){if(!c)return 1;let o=d.get(c);if(o)return o;const a=c.parentNode;return o=e.has(a)?a:r.has(a)?1:h(a),d.set(c,o),o}return s.forEach(c=>{const o=h(c);1!==o&&e.get(o).push(c)}),e}function os(i,s){i.classList?.add(s)}function ef(i,s){i.classList?.remove(s)}function pB(i,s,e){ad(e).onDone(()=>i.processLeaveNode(s))}function QD(i,s){for(let e=0;er.add(d)):s.set(i,t),e.delete(i),!0}class OC{constructor(s,e,t){this.bodyNode=s,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,d)=>{},this._transitionEngine=new cB(s,e,t),this._timelineEngine=new tB(s,e,t),this._transitionEngine.onRemovalComplete=(r,d)=>this.onRemovalComplete(r,d)}registerTrigger(s,e,t,r,d){const h=s+"-"+r;let c=this._triggerCache[h];if(!c){const o=[],l=Kx(this._driver,d,o,[]);if(o.length)throw function XI(i,s){return new n.vHH(3404,!1)}();c=function QO(i,s,e){return new KO(i,s,e)}(r,l,this._normalizer),this._triggerCache[h]=c}this._transitionEngine.registerTrigger(e,r,c)}register(s,e){this._transitionEngine.register(s,e)}destroy(s,e){this._transitionEngine.destroy(s,e)}onInsert(s,e,t,r){this._transitionEngine.insertNode(s,e,t,r)}onRemove(s,e,t,r){this._transitionEngine.removeNode(s,e,r||!1,t)}disableAnimations(s,e){this._transitionEngine.markElementAsDisabled(s,e)}process(s,e,t,r){if("@"==t.charAt(0)){const[d,h]=TD(t);this._timelineEngine.command(d,e,h,r)}else this._transitionEngine.trigger(s,e,t,r)}listen(s,e,t,r,d){if("@"==t.charAt(0)){const[h,c]=TD(t);return this._timelineEngine.listen(h,e,c,d)}return this._transitionEngine.listen(s,e,t,r,d)}flush(s=-1){this._transitionEngine.flush(s)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let _B=(()=>{class i{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let d=i.initialStylesByElement.get(e);d||i.initialStylesByElement.set(e,d=new Map),this._initialStyles=d}start(){this._state<1&&(this._startStyles&&Ro(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ro(this._element,this._initialStyles),this._endStyles&&(Ro(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(Vu(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Vu(this._element,this._endStyles),this._endStyles=null),Ro(this._element,this._initialStyles),this._state=3)}}return i.initialStylesByElement=new WeakMap,i})();function cM(i){let s=null;return i.forEach((e,t)=>{(function bB(i){return"display"===i||"position"===i})(t)&&(s=s||new Map,s.set(t,e))}),s}class XD{constructor(s,e,t,r){this.element=s,this.keyframes=e,this.options=t,this._specialStyles=r,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(s=>s()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const s=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,s,this.options),this._finalKeyframe=s.length?s[s.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(s){const e=[];return s.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(s,e,t){return s.animate(this._convertKeyframesToObject(e),t)}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(s=>s()),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(s=>s()),this._onDestroyFns=[])}setPosition(s){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=s*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const s=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&s.set(r,this._finished?t:VD(this.element,r))}),this.currentSnapshot=s}triggerCallback(s){const e="start"===s?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class wB{validateStyleProperty(s){return!0}validateAnimatableStyleProperty(s){return!0}matchesElement(s,e){return!1}containsElement(s,e){return ED(s,e)}getParentElement(s){return zx(s)}query(s,e,t){return DD(s,e,t)}computeStyle(s,e,t){return window.getComputedStyle(s)[e]}animate(s,e,t,r,d,h=[]){const o={duration:t,delay:r,fill:0==r?"both":"forwards"};d&&(o.easing=d);const a=new Map,l=h.filter(m=>m instanceof XD);(function vO(i,s){return 0===i||0===s})(t,r)&&l.forEach(m=>{m.currentSnapshot.forEach((g,f)=>a.set(f,g))});let u=function wO(i){return i.length?i[0]instanceof Map?i:i.map(s=>kD(s)):[]}(e).map(m=>od(m));u=function TO(i,s,e){if(e.size&&s.length){let t=s[0],r=[];if(e.forEach((d,h)=>{t.has(h)||r.push(h),t.set(h,d)}),r.length)for(let d=1;dh.set(c,VD(i,c)))}}return s}(s,u,a);const p=function gB(i,s){let e=null,t=null;return Array.isArray(s)&&s.length?(e=cM(s[0]),s.length>1&&(t=cM(s[s.length-1]))):s instanceof Map&&(e=cM(s)),e||t?new _B(i,e,t):null}(s,u);return new XD(s,u,o,p)}}let yB=(()=>{class i extends km{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?yw(e):e;return e1(this._renderer,null,t,"register",[r]),new CB(t,this._renderer)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.FYo),n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class CB extends class ww{}{constructor(s,e){super(),this._id=s,this._renderer=e}create(s,e){return new AB(this._id,s,e||{},this._renderer)}}class AB{constructor(s,e,t,r){this.id=s,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(s,e){return this._renderer.listen(this.element,`@@${this.id}:${s}`,e)}_command(s,...e){return e1(this._renderer,this.element,this.id,s,e)}onDone(s){this._listen("done",s)}onStart(s){this._listen("start",s)}onDestroy(s){this._listen("destroy",s)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(s){this._command("setPosition",s)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function e1(i,s,e,t,r){return i.setProperty(s,`@@${e}:${t}`,r)}const t1="@.disabled";let vB=(()=>{class i{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(d,h)=>{const c=h?.parentNode(d);c&&h.removeChild(c,d)}}createRenderer(e,t){const d=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let l=this._rendererCache.get(d);return l||(l=new n1("",d,this.engine),this._rendererCache.set(d,l)),l}const h=t.id,c=t.id+"-"+this._currentId;this._currentId++,this.engine.register(c,e);const o=l=>{Array.isArray(l)?l.forEach(o):this.engine.registerTrigger(h,c,e,l.name,l)};return t.data.animation.forEach(o),new TB(this,c,d,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(d=>{const[h,c]=d;h(c)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.FYo),n.LFG(OC),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class n1{constructor(s,e,t){this.namespaceId=s,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(s,e){return this.delegate.createElement(s,e)}createComment(s){return this.delegate.createComment(s)}createText(s){return this.delegate.createText(s)}appendChild(s,e){this.delegate.appendChild(s,e),this.engine.onInsert(this.namespaceId,e,s,!1)}insertBefore(s,e,t,r=!0){this.delegate.insertBefore(s,e,t),this.engine.onInsert(this.namespaceId,e,s,r)}removeChild(s,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(s,e){return this.delegate.selectRootElement(s,e)}parentNode(s){return this.delegate.parentNode(s)}nextSibling(s){return this.delegate.nextSibling(s)}setAttribute(s,e,t,r){this.delegate.setAttribute(s,e,t,r)}removeAttribute(s,e,t){this.delegate.removeAttribute(s,e,t)}addClass(s,e){this.delegate.addClass(s,e)}removeClass(s,e){this.delegate.removeClass(s,e)}setStyle(s,e,t,r){this.delegate.setStyle(s,e,t,r)}removeStyle(s,e,t){this.delegate.removeStyle(s,e,t)}setProperty(s,e,t){"@"==e.charAt(0)&&e==t1?this.disableAnimations(s,!!t):this.delegate.setProperty(s,e,t)}setValue(s,e){this.delegate.setValue(s,e)}listen(s,e,t){return this.delegate.listen(s,e,t)}disableAnimations(s,e){this.engine.disableAnimations(s,e)}}class TB extends n1{constructor(s,e,t,r){super(e,t,r),this.factory=s,this.namespaceId=e}setProperty(s,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==t1?this.disableAnimations(s,t=void 0===t||!!t):this.engine.process(this.namespaceId,s,e.slice(1),t):this.delegate.setProperty(s,e,t)}listen(s,e,t){if("@"==e.charAt(0)){const r=function xB(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(s);let d=e.slice(1),h="";return"@"!=d.charAt(0)&&([d,h]=function MB(i){const s=i.indexOf(".");return[i.substring(0,s),i.slice(s+1)]}(d)),this.engine.listen(this.namespaceId,r,d,h,c=>{this.factory.scheduleListenerCallback(c._data||-1,t,c)})}return this.delegate.listen(s,e,t)}}const r1=[{provide:km,useClass:yB},{provide:iM,useFactory:function EB(){return new WO}},{provide:OC,useClass:(()=>{class i extends OC{constructor(e,t,r,d){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0),n.LFG(Gx),n.LFG(iM),n.LFG(n.z2F))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})()},{provide:n.FYo,useFactory:function DB(i,s,e){return new vB(i,s,e)},deps:[we,OC,n.R0b]}],dM=[{provide:Gx,useFactory:()=>new wB},{provide:n.QbO,useValue:"BrowserAnimations"},...r1],a1=[{provide:Gx,useClass:HD},{provide:n.QbO,useValue:"NoopAnimations"},...r1];let HB=(()=>{class i{static withConfig(e){return{ngModule:i,providers:e.disableAnimations?a1:dM}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:dM,imports:[di]}),i})(),PB=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,Zg,bi,Gs]}),i})();const RB=["*",[["mat-card-footer"]]],kB=["*","mat-card-footer"];let s1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),i})(),o1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),i})(),l1=(()=>{class i{constructor(e){this._animationMode=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:kB,decls:2,vars:0,template:function(e,t){1&e&&(n.F$t(RB),n.Hsn(0),n.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),i})(),c1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})();const LB=["input"],IB=["label"],OB=function(i){return{enterDuration:i}},BB=["*"],VB=new n.OlP("mat-checkbox-default-options",{providedIn:"root",factory:d1});function d1(){return{color:"accent",clickAction:"check-indeterminate"}}let jB=0;const u1=d1(),UB={provide:sr,useExisting:(0,n.Gpc)(()=>ld),multi:!0};class NB{}const FB=wl(Ti(mr(Qr(class{constructor(i){this._elementRef=i}}))));let YB=(()=>{class i extends FB{constructor(e,t,r,d,h,c,o){super(t),this._changeDetectorRef=r,this._ngZone=d,this._animationMode=c,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new n.vpe,this.indeterminateChange=new n.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||u1,this.color=this.defaultColor=this._options.color||u1.color,this.tabIndex=parseInt(h)||0,this.id=this._uniqueId=`${e}${++jB}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Oe(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const t=Oe(e);t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Oe(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Oe(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const d=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(d)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===t)return this._animationClasses.uncheckedToChecked;if(3==t)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===t?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===t?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===t?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&(n.Gf(LB,5),n.Gf(IB,5),n.Gf(Lr,5)),2&e){let r;n.iGM(r=n.CRH())&&(t._inputElement=r.first),n.iGM(r=n.CRH())&&(t._labelElement=r.first),n.iGM(r=n.CRH())&&(t.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[n.qOj]}),i})(),ld=(()=>{class i extends YB{constructor(e,t,r,d,h,c,o){super("mat-checkbox-",e,t,d,h,c,o),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const t=new NB;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Ii),n.Y36(n.R0b),n.$8M("tabindex"),n.Y36(n.QbO,8),n.Y36(VB,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,t){2&e&&(n.Ikx("id",t.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),n.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[n._Bn([UB]),n.qOj],ngContentSelectors:BB,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.NdJ("change",function(d){return t._onInteractionEvent(d)})("click",function(d){return t._onInputClick(d)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.qZA(),n._UZ(7,"span",7),n.TgZ(8,"span",8),n.O4$(),n.TgZ(9,"svg",9),n._UZ(10,"path",10),n.qZA(),n.kcU(),n._UZ(11,"span",11),n.qZA()(),n.TgZ(12,"span",12,13),n.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),n.TgZ(14,"span",14),n._uU(15,"\xa0"),n.qZA(),n.Hsn(16),n.qZA()()),2&e){const r=n.MAs(1),d=n.MAs(13);n.uIk("for",t.inputId),n.xp6(2),n.ekj("mat-checkbox-inner-container-no-side-margin",!d.textContent||!d.textContent.trim()),n.xp6(1),n.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),n.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",n.VKq(19,OB,"NoopAnimations"===t._animationMode?0:150))}},dependencies:[Lr,qh],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),i})(),h1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),VC=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Kr,ht,$d,h1,ht,h1]}),i})(),GB=0;const uM=new n.OlP("CdkAccordion");let WB=(()=>{class i{constructor(){this._stateChanges=new Se.x,this._openCloseAllActions=new Se.x,this.id="cdk-accordion-"+GB++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Oe(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:uM,useExisting:i}]),n.TTD]}),i})(),$B=0,JB=(()=>{class i{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=Rt.w0.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-"+$B++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((d,h)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===h&&this.id!==d&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Oe(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Oe(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(uM,12),n.Y36(n.sBO),n.Y36(ym))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:uM,useValue:void 0}])]}),i})(),ZB=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const QB=["body"];function KB(i,s){}const XB=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],eV=["mat-expansion-panel-header","*","mat-action-row"];function tV(i,s){if(1&i&&n._UZ(0,"span",2),2&i){const e=n.oxw();n.Q6J("@indicatorRotate",e._getExpandedState())}}const nV=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],iV=["mat-panel-title","mat-panel-description","*"],hM=new n.OlP("MAT_ACCORDION"),p1="225ms cubic-bezier(0.4,0.0,0.2,1)",f1={indicatorRotate:fn("indicatorRotate",[Pt("collapsed, void",He({transform:"rotate(0deg)"})),Pt("expanded",He({transform:"rotate(180deg)"})),xt("expanded <=> collapsed, void => collapsed",Tt(p1))]),bodyExpansion:fn("bodyExpansion",[Pt("collapsed, void",He({height:"0px",visibility:"hidden"})),Pt("expanded",He({height:"*",visibility:"visible"})),xt("expanded <=> collapsed, void => collapsed",Tt(p1))])},m1=new n.OlP("MAT_EXPANSION_PANEL");let rV=(()=>{class i{constructor(e,t){this._template=e,this._expansionPanel=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(m1,8))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","matExpansionPanelContent",""]]}),i})(),aV=0;const g1=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let _1=(()=>{class i extends JB{constructor(e,t,r,d,h,c,o){super(e,t,r),this._viewContainerRef=d,this._animationMode=c,this._hideToggle=!1,this.afterExpand=new n.vpe,this.afterCollapse=new n.vpe,this._inputChanges=new Se.x,this._headerId="mat-expansion-panel-header-"+aV++,this._bodyAnimationDone=new Se.x,this.accordion=e,this._document=h,this._bodyAnimationDone.pipe(mo((a,l)=>a.fromState===l.fromState&&a.toState===l.toState)).subscribe(a=>{"void"!==a.fromState&&("expanded"===a.toState?this.afterExpand.emit():"collapsed"===a.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Oe(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Zt(null),(0,Ce.h)(()=>this.expanded&&!this._portal),(0,rt.q)(1)).subscribe(()=>{this._portal=new Ir(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(hM,12),n.Y36(n.sBO),n.Y36(ym),n.Y36(n.s_b),n.Y36(x.K0),n.Y36(n.QbO,8),n.Y36(g1,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,rV,5),2&e){let d;n.iGM(d=n.CRH())&&(t._lazyContent=d.first)}},viewQuery:function(e,t){if(1&e&&n.Gf(QB,5),2&e){let r;n.iGM(r=n.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&n.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n._Bn([{provide:hM,useValue:void 0},{provide:m1,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:eV,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(n.F$t(XB),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(d){return t._bodyAnimationDone.next(d)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,KB,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),n.uIk("aria-labelledby",t._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",t._portal))},dependencies:[Ma],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[f1.bodyExpansion]},changeDetection:0}),i})();class sV{}const oV=wl(sV);let b1=(()=>{class i extends oV{constructor(e,t,r,d,h,c,o){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=d,this._animationMode=c,this._parentChangeSubscription=Rt.w0.EMPTY;const a=e.accordion?e.accordion._stateChanges.pipe((0,Ce.h)(l=>!(!l.hideToggle&&!l.togglePosition))):Pn.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,Mn.T)(e.opened,e.closed,a,e._inputChanges.pipe((0,Ce.h)(l=>!!(l.hideToggle||l.disabled||l.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,Ce.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),h&&(this.expandedHeight=h.expandedHeight,this.collapsedHeight=h.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:ri(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(_1,1),n.Y36(n.SBq),n.Y36(Ii),n.Y36(n.sBO),n.Y36(g1,8),n.Y36(n.QbO,8),n.$8M("tabindex"))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._toggle()})("keydown",function(d){return t._keydown(d)}),2&e&&(n.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),n.Udp("height",t._getHeaderHeight()),n.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[n.qOj],ngContentSelectors:iV,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(n.F$t(nV),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,tV,1,1,"span",1)),2&e&&(n.xp6(4),n.Q6J("ngIf",t._showToggle()))},dependencies:[x.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[f1.indicatorRotate]},changeDetection:0}),i})(),lV=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),i})(),cV=(()=>{class i extends WB{constructor(){super(...arguments),this._ownHeaders=new n.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Oe(e)}ngAfterContentInit(){this._headers.changes.pipe(Zt(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Sc(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,b1,5),2&e){let d;n.iGM(d=n.CRH())&&(t._headers=d)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[n._Bn([{provide:hM,useExisting:i}]),n.qOj]}),i})(),w1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,ht,ZB,Hs]}),i})(),C1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Cl,ht,Cl,ht]}),i})();function hV(i,s){1&i&&n.Hsn(0)}const pV=["*"];let A1=(()=>{class i{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),i})(),v1=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkStepLabel",""]]}),i})(),fV=0;const T1=new n.OlP("STEPPER_GLOBAL_OPTIONS");let pM=(()=>{class i{constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new n.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(e){this._editable=Oe(e)}get optional(){return this._optional}set optional(e){this._optional=Oe(e)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(e){this._completedOverride=Oe(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(e){this._customError=Oe(e)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return i.\u0275fac=function(e){return new(e||i)(n.Y36((0,n.Gpc)(()=>s_)),n.Y36(T1,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-step"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,v1,5),2&e){let d;n.iGM(d=n.CRH())&&(t.stepLabel=d.first)}},viewQuery:function(e,t){if(1&e&&n.Gf(n.Rgc,7),2&e){let r;n.iGM(r=n.CRH())&&(t.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[n.TTD],ngContentSelectors:pV,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.YNc(0,hV,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),i})(),s_=(()=>{class i{constructor(e,t,r){this._dir=e,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new Se.x,this.steps=new n.n_E,this._sortedHeaders=new n.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new n.vpe,this._orientation="horizontal",this._groupId=fV++}get linear(){return this._linear}set linear(e){this._linear=Oe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const t=_n(e);this.steps&&this._steps?(this._isValidIndex(t),this.selected?._markAsInteracted(),this._selectedIndex!==t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=t}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===e)}ngAfterContentInit(){this._steps.changes.pipe(Zt(this._steps),Ke(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Zt(this._stepHeader),Ke(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Sc(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,xe.of)()).pipe(Zt(this._layoutDirection()),Ke(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){const t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(e,t="number"){const r=this.steps.toArray()[e],d=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,d):this._getGuidelineLogic(r,d,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?"error":!e.completed||t?"number":e.editable?"edit":"done"}_getGuidelineLogic(e,t,r="number"){return e._showError()&&e.hasError&&!t?"error":e.completed&&!t?"done":e.completed&&t?r:e.editable&&t?"edit":r}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}_onKeydown(e){const t=ri(e),r=e.keyCode,d=this._keyManager;null==d.activeItemIndex||t||32!==r&&13!==r?d.onKeydown(e):(this.selectedIndex=d.activeItemIndex,e.preventDefault())}_anyControlsInvalidOrPending(e){return!!(this._linear&&e>=0)&&this.steps.toArray().slice(0,e).some(t=>{const r=t.stepControl;return(r?r.invalid||r.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const e=this._elementRef.nativeElement,t=ho();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{class i{constructor(e){this._stepper=e,this.type="submit"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(s_))},i.\u0275dir=n.lG2({type:i,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._stepper.next()}),2&e&&n.Ikx("type",t.type)},inputs:{type:"type"}}),i})(),gV=(()=>{class i{constructor(e){this._stepper=e,this.type="button"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(s_))},i.\u0275dir=n.lG2({type:i,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._stepper.previous()}),2&e&&n.Ikx("type",t.type)},inputs:{type:"type"}}),i})(),_V=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[iu]}),i})();function bV(i,s){if(1&i&&n.GkF(0,8),2&i){const e=n.oxw();n.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function wV(i,s){if(1&i&&(n.TgZ(0,"span",13),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e._getDefaultTextForState(e.state))}}function yV(i,s){if(1&i&&(n.TgZ(0,"span",14),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e._intl.completedLabel)}}function CV(i,s){if(1&i&&(n.TgZ(0,"span",14),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e._intl.editableLabel)}}function AV(i,s){if(1&i&&(n.TgZ(0,"mat-icon",13),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e._getDefaultTextForState(e.state))}}function vV(i,s){if(1&i&&(n.ynx(0,9),n.YNc(1,wV,2,1,"span",10),n.YNc(2,yV,2,1,"span",11),n.YNc(3,CV,2,1,"span",11),n.YNc(4,AV,2,1,"mat-icon",12),n.BQk()),2&i){const e=n.oxw();n.Q6J("ngSwitch",e.state),n.xp6(1),n.Q6J("ngSwitchCase","number"),n.xp6(1),n.Q6J("ngIf","done"===e.state),n.xp6(1),n.Q6J("ngIf","edit"===e.state)}}function TV(i,s){if(1&i&&(n.TgZ(0,"div",15),n.GkF(1,16),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",e._templateLabel().template)}}function xV(i,s){if(1&i&&(n.TgZ(0,"div",15),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.label)}}function MV(i,s){if(1&i&&(n.TgZ(0,"div",17),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e._intl.optionalLabel)}}function SV(i,s){if(1&i&&(n.TgZ(0,"div",18),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.errorMessage)}}function EV(i,s){}function DV(i,s){if(1&i&&(n.Hsn(0),n.YNc(1,EV,0,0,"ng-template",0)),2&i){const e=n.oxw();n.xp6(1),n.Q6J("cdkPortalOutlet",e._portal)}}const HV=["*"];function PV(i,s){1&i&&n._UZ(0,"div",11)}const x1=function(i,s){return{step:i,i:s}};function RV(i,s){if(1&i&&(n.ynx(0),n.GkF(1,9),n.YNc(2,PV,1,0,"div",10),n.BQk()),2&i){const e=s.$implicit,t=s.index,r=s.last;n.oxw(2);const d=n.MAs(4);n.xp6(1),n.Q6J("ngTemplateOutlet",d)("ngTemplateOutletContext",n.WLB(3,x1,e,t)),n.xp6(1),n.Q6J("ngIf",!r)}}const M1=function(i){return{animationDuration:i}},S1=function(i,s){return{value:i,params:s}};function kV(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",12),n.NdJ("@horizontalStepTransition.done",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d._animationDone.next(r))}),n.GkF(1,13),n.qZA()}if(2&i){const e=s.$implicit,t=s.index,r=n.oxw(2);n.Q6J("@horizontalStepTransition",n.WLB(7,S1,r._getAnimationDirection(t),n.VKq(5,M1,r._getAnimationDuration())))("id",r._getStepContentId(t)),n.uIk("aria-labelledby",r._getStepLabelId(t))("aria-expanded",r.selectedIndex===t),n.xp6(1),n.Q6J("ngTemplateOutlet",e.content)}}function LV(i,s){if(1&i&&(n.TgZ(0,"div",4)(1,"div",5),n.YNc(2,RV,3,6,"ng-container",6),n.qZA(),n.TgZ(3,"div",7),n.YNc(4,kV,2,10,"div",8),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Q6J("ngForOf",e.steps),n.xp6(2),n.Q6J("ngForOf",e.steps)}}function IV(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",15),n.GkF(1,9),n.TgZ(2,"div",16)(3,"div",17),n.NdJ("@verticalStepTransition.done",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d._animationDone.next(r))}),n.TgZ(4,"div",18),n.GkF(5,13),n.qZA()()()()}if(2&i){const e=s.$implicit,t=s.index,r=s.last,d=n.oxw(2),h=n.MAs(4);n.xp6(1),n.Q6J("ngTemplateOutlet",h)("ngTemplateOutletContext",n.WLB(9,x1,e,t)),n.xp6(1),n.ekj("mat-stepper-vertical-line",!r),n.xp6(1),n.Q6J("@verticalStepTransition",n.WLB(14,S1,d._getAnimationDirection(t),n.VKq(12,M1,d._getAnimationDuration())))("id",d._getStepContentId(t)),n.uIk("aria-labelledby",d._getStepLabelId(t))("aria-expanded",d.selectedIndex===t),n.xp6(2),n.Q6J("ngTemplateOutlet",e.content)}}function OV(i,s){if(1&i&&(n.ynx(0),n.YNc(1,IV,6,17,"div",14),n.BQk()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngForOf",e.steps)}}function BV(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-step-header",19),n.NdJ("click",function(){const d=n.CHM(e).step;return n.KtG(d.select())})("keydown",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._onKeydown(r))}),n.qZA()}if(2&i){const e=s.step,t=s.i,r=n.oxw();n.ekj("mat-horizontal-stepper-header","horizontal"===r.orientation)("mat-vertical-stepper-header","vertical"===r.orientation),n.Q6J("tabIndex",r._getFocusIndex()===t?0:-1)("id",r._getStepLabelId(t))("index",t)("state",r._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===t)("active",r._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple||!r._stepIsNavigable(t,e))("color",e.color||r.color),n.uIk("aria-posinset",t+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(t))("aria-selected",r.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",!r._stepIsNavigable(t,e)||null)}}let jC=(()=>{class i extends v1{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matStepLabel",""]],features:[n.qOj]}),i})(),UC=(()=>{class i{constructor(){this.changes=new Se.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const jV={provide:UC,deps:[[new n.FiY,new n.tp0,UC]],useFactory:function VV(i){return i||new UC}},UV=Ti(class extends A1{constructor(s){super(s)}},"primary");let E1=(()=>{class i extends UV{constructor(e,t,r,d){super(r),this._intl=e,this._focusMonitor=t,this._intlSubscription=e.changes.subscribe(()=>d.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof jC?null:this.label}_templateLabel(){return this.label instanceof jC?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return"number"==e?`${this.index+1}`:"edit"==e?"create":"error"==e?"warning":e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(UC),n.Y36(Ii),n.Y36(n.SBq),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[n.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(e,t){1&e&&(n._UZ(0,"div",0),n.TgZ(1,"div")(2,"div",1),n.YNc(3,bV,1,2,"ng-container",2),n.YNc(4,vV,5,4,"ng-container",3),n.qZA()(),n.TgZ(5,"div",4),n.YNc(6,TV,2,1,"div",5),n.YNc(7,xV,2,1,"div",5),n.YNc(8,MV,2,1,"div",6),n.YNc(9,SV,2,1,"div",7),n.qZA()),2&e&&(n.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),n.xp6(1),n.Gre("mat-step-icon-state-",t.state," mat-step-icon"),n.ekj("mat-step-icon-selected",t.selected),n.xp6(1),n.Q6J("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(2),n.ekj("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),n.xp6(1),n.Q6J("ngIf",t._templateLabel()),n.xp6(1),n.Q6J("ngIf",t._stringLabel()),n.xp6(1),n.Q6J("ngIf",t.optional&&"error"!=t.state),n.xp6(1),n.Q6J("ngIf","error"==t.state))},dependencies:[x.O5,x.tP,x.RF,x.n9,x.ED,Ln,Lr],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),i})();const P1={horizontalStepTransition:fn("horizontalStepTransition",[Pt("previous",He({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Pt("current",He({transform:"none",visibility:"inherit"})),Pt("next",He({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),xt("* => *",Tt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:fn("verticalStepTransition",[Pt("previous",He({height:"0px",visibility:"hidden"})),Pt("next",He({height:"0px",visibility:"hidden"})),Pt("current",He({height:"*",visibility:"inherit"})),xt("* <=> current",Tt("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let NV=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),i})(),FV=(()=>{class i{constructor(e){this._template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","matStepContent",""]]}),i})(),R1=(()=>{class i extends pM{constructor(e,t,r,d){super(e,d),this._errorStateMatcher=t,this._viewContainerRef=r,this._isSelected=Rt.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,bn.w)(()=>this._stepper.selectionChange.pipe((0,_t.U)(e=>e.selectedStep===this),Zt(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Ir(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36((0,n.Gpc)(()=>k1)),n.Y36(Ca,4),n.Y36(n.s_b),n.Y36(T1,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-step"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,jC,5),n.Suo(r,FV,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.stepLabel=d.first),n.iGM(d=n.CRH())&&(t._lazyContent=d.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[n._Bn([{provide:Ca,useExisting:i},{provide:pM,useExisting:i}]),n.qOj],ngContentSelectors:HV,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,DV,2,1,"ng-template"))},dependencies:[Ma],encapsulation:2,changeDetection:0}),i})(),k1=(()=>{class i extends s_{constructor(e,t,r){super(e,t,r),this.steps=new n.n_E,this.animationDone=new n.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new Se.x,this._animationDuration="";const d=r.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===d?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(Ke(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(mo((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),Ke(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(xn,8),n.Y36(n.sBO),n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,R1,5),n.Suo(r,NV,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._steps=d),n.iGM(d=n.CRH())&&(t._icons=d)}},viewQuery:function(e,t){if(1&e&&n.Gf(E1,5),2&e){let r;n.iGM(r=n.CRH())&&(t._stepHeader=r)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(e,t){2&e&&(n.uIk("aria-orientation",t.orientation),n.ekj("mat-stepper-horizontal","horizontal"===t.orientation)("mat-stepper-vertical","vertical"===t.orientation)("mat-stepper-label-position-end","horizontal"===t.orientation&&"end"==t.labelPosition)("mat-stepper-label-position-bottom","horizontal"===t.orientation&&"bottom"==t.labelPosition)("mat-stepper-header-position-bottom","bottom"===t.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[n._Bn([{provide:s_,useExisting:i}]),n.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(e,t){1&e&&(n.ynx(0,0),n.YNc(1,LV,5,2,"div",1),n.YNc(2,OV,2,1,"ng-container",2),n.BQk(),n.YNc(3,BV,1,23,"ng-template",null,3,n.W1O)),2&e&&(n.Q6J("ngSwitch",t.orientation),n.xp6(1),n.Q6J("ngSwitchCase","horizontal"),n.xp6(1),n.Q6J("ngSwitchCase","vertical"))},dependencies:[x.sg,x.O5,x.tP,x.RF,x.n9,E1],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[P1.horizontalStepTransition,P1.verticalStepTransition]},changeDetection:0}),i})(),YV=(()=>{class i extends mV{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(e,t){2&e&&n.Ikx("type",t.type)},inputs:{type:"type"},features:[n.qOj]}),i})(),qV=(()=>{class i extends gV{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(e,t){2&e&&n.Ikx("type",t.type)},inputs:{type:"type"},features:[n.qOj]}),i})(),L1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[jV,Ca],imports:[ht,x.ez,Hs,bi,_V,Vl,Kr,ht]}),i})();const zV=["mat-calendar-body",""];function GV(i,s){if(1&i&&(n.TgZ(0,"tr",2)(1,"td",3),n._uU(2),n.qZA()()),2&i){const e=n.oxw();n.xp6(1),n.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),n.uIk("colspan",e.numCols),n.xp6(1),n.hij(" ",e.label," ")}}function WV(i,s){if(1&i&&(n.TgZ(0,"td",3),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),n.uIk("colspan",e._firstRowOffset),n.xp6(1),n.hij(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function $V(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",7)(1,"button",8),n.NdJ("click",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(c._cellClicked(h,r))})("focus",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(c._emitActiveDateChange(h,r))}),n.TgZ(2,"div",9),n._uU(3),n.qZA(),n._UZ(4,"div",10),n.qZA()()}if(2&i){const e=s.$implicit,t=s.index,r=n.oxw().index,d=n.oxw();n.Udp("width",d._cellWidth)("padding-top",d._cellPadding)("padding-bottom",d._cellPadding),n.uIk("data-mat-row",r)("data-mat-col",t),n.xp6(1),n.ekj("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",d._isActiveCell(r,t))("mat-calendar-body-range-start",d._isRangeStart(e.compareValue))("mat-calendar-body-range-end",d._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",d._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",d._isComparisonBridgeStart(e.compareValue,r,t))("mat-calendar-body-comparison-bridge-end",d._isComparisonBridgeEnd(e.compareValue,r,t))("mat-calendar-body-comparison-start",d._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",d._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",d._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",d._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",d._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",d._isInPreview(e.compareValue)),n.Q6J("ngClass",e.cssClasses)("tabindex",d._isActiveCell(r,t)?0:-1),n.uIk("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",d._isSelected(e.compareValue))("aria-current",d.todayValue===e.compareValue?"date":null),n.xp6(1),n.ekj("mat-calendar-body-selected",d._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",d._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",d.todayValue===e.compareValue),n.xp6(1),n.hij(" ",e.displayValue," ")}}function JV(i,s){if(1&i&&(n.TgZ(0,"tr",4),n.YNc(1,WV,2,6,"td",5),n.YNc(2,$V,5,47,"td",6),n.qZA()),2&i){const e=s.$implicit,t=s.index,r=n.oxw();n.xp6(1),n.Q6J("ngIf",0===t&&r._firstRowOffset),n.xp6(1),n.Q6J("ngForOf",e)}}function ZV(i,s){if(1&i&&(n.TgZ(0,"th",5)(1,"span",6),n._uU(2),n.qZA(),n.TgZ(3,"span",7),n._uU(4),n.qZA()()),2&i){const e=s.$implicit;n.xp6(2),n.Oqu(e.long),n.xp6(2),n.Oqu(e.narrow)}}const QV=["*"];function KV(i,s){}function XV(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-month-view",5),n.NdJ("activeDateChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.activeDate=r)})("_userSelection",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._dateSelected(r))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function ej(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-year-view",6),n.NdJ("activeDateChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.activeDate=r)})("monthSelected",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._monthSelectedInYearView(r))})("selectedChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._goToDateInView(r,"month"))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function tj(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-multi-year-view",7),n.NdJ("activeDateChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.activeDate=r)})("yearSelected",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._yearSelectedInMultiYearView(r))})("selectedChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._goToDateInView(r,"year"))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function nj(i,s){}const ij=["button"];function rj(i,s){1&i&&(n.O4$(),n.TgZ(0,"svg",3),n._UZ(1,"path",4),n.qZA())}const aj=[[["","matDatepickerToggleIcon",""]]],sj=["[matDatepickerToggleIcon]"];let o_=(()=>{class i{constructor(){this.changes=new Se.x,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(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class fM{constructor(s,e,t,r,d={},h=s,c){this.value=s,this.displayValue=e,this.ariaLabel=t,this.enabled=r,this.cssClasses=d,this.compareValue=h,this.rawValue=c}}let tf=(()=>{class i{constructor(e,t){this._elementRef=e,this._ngZone=t,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new n.vpe,this.previewChange=new n.vpe,this.activeDateChange=new n.vpe,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const d=this._getCellFromElement(r.target);d&&this._ngZone.run(()=>this.previewChange.emit({value:d.enabled?d:null,event:r}))}},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&r.target&&this._getCellFromElement(r.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r}))},t.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(e,t){e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const t=e.numCols,{rows:r,numCols:d}=this;(e.rows||t)&&(this._firstRowOffset=r&&r.length&&r[0].length?d-r[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/d+"%"),(t||!this._cellWidth)&&(this._cellWidth=100/d+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,t){let r=e*this.numCols+t;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(()=>{setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return mM(e,this.startValue,this.endValue)}_isRangeEnd(e){return gM(e,this.startValue,this.endValue)}_isInRange(e){return _M(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return mM(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let d=this.rows[t][r-1];if(!d){const h=this.rows[t-1];d=h&&h[h.length-1]}return d&&!this._isRangeEnd(d.compareValue)}_isComparisonBridgeEnd(e,t,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let d=this.rows[t][r+1];if(!d){const h=this.rows[t+1];d=h&&h[0]}return d&&!this._isRangeStart(d.compareValue)}_isComparisonEnd(e){return gM(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return _M(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return mM(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return gM(e,this.previewStart,this.previewEnd)}_isInPreview(e){return _M(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let t;if(I1(e)?t=e:I1(e.parentNode)&&(t=e.parentNode),t){const r=t.getAttribute("data-mat-row"),d=t.getAttribute("data-mat-col");if(r&&d)return this.rows[parseInt(r)][parseInt(d)]}return null}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,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"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[n.TTD],attrs:zV,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,t){1&e&&(n.YNc(0,GV,3,6,"tr",0),n.YNc(1,JV,3,2,"tr",1)),2&e&&(n.Q6J("ngIf",t._firstRowOffset=s&&i===e}function _M(i,s,e,t){return t&&null!==s&&null!==e&&s!==e&&i>=s&&i<=e}class ra{constructor(s,e){this.start=s,this.end=e}}let cd=(()=>{class i{constructor(e,t){this.selection=e,this._adapter=t,this._selectionChanged=new Se.x,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,t){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),oj=(()=>{class i extends cd{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new i(this._adapter);return e.updateSelection(this.selection,this),e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Un))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const O1={provide:cd,deps:[[new n.FiY,new n.tp0,cd],Un],useFactory:function cj(i,s){return i||new oj(s)}},NC=new n.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let B1=(()=>{class i{constructor(e,t,r,d,h){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=d,this._rangeStrategy=h,this._rerenderSubscription=Rt.w0.EMPTY,this.selectedChange=new n.vpe,this._userSelection=new n.vpe,this.activeDateChange=new n.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const t=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof ra?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Zt(null)).subscribe(()=>this._init())}ngOnChanges(e){const t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const t=e.value,r=this._getDateFromDayOfMonth(t);let d,h;this._selected instanceof ra?(d=this._getDateInCurrentMonth(this._selected.start),h=this._getDateInCurrentMonth(this._selected.end)):d=h=this._getDateInCurrentMonth(this._selected),(d!==t||h!==t)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-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=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!ri(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),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 e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:t}){if(this._rangeStrategy){const d=this._rangeStrategy.createPreview(t?t.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(d.start),this._previewEnd=this._getCellCompareValue(d.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow");let d=this._dateAdapter.getDayOfWeekNames("long").map((h,c)=>({long:h,narrow:t[c]}));this._weekdays=d.slice(e).concat(d.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,d=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))}_getCellCompareValue(e){if(e){const t=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),d=this._dateAdapter.getDate(e);return new Date(t,r,d).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof ra?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(_i,8),n.Y36(Un,8),n.Y36(xn,8),n.Y36(NC,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-month-view"]],viewQuery:function(e,t){if(1&e&&n.Gf(tf,5),2&e){let r;n.iGM(r=n.CRH())&&(t._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[n.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,t){1&e&&(n.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),n.YNc(3,ZV,5,2,"th",2),n.qZA(),n.TgZ(4,"tr"),n._UZ(5,"th",3),n.qZA()(),n.TgZ(6,"tbody",4),n.NdJ("selectedValueChange",function(d){return t._dateSelected(d)})("activeDateChange",function(d){return t._updateActiveDate(d)})("previewChange",function(d){return t._previewChanged(d)})("keyup",function(d){return t._handleCalendarBodyKeyup(d)})("keydown",function(d){return t._handleCalendarBodyKeydown(d)}),n.qZA()()),2&e&&(n.xp6(3),n.Q6J("ngForOf",t._weekdays),n.xp6(3),n.Q6J("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("startValue",t._rangeStart)("endValue",t._rangeEnd)("comparisonStart",t._comparisonRangeStart)("comparisonEnd",t._comparisonRangeEnd)("previewStart",t._previewStart)("previewEnd",t._previewEnd)("isRange",t._isRange)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1))},dependencies:[x.sg,tf],encapsulation:2,changeDetection:0}),i})(),V1=(()=>{class i{constructor(e,t,r){this._changeDetectorRef=e,this._dateAdapter=t,this._dir=r,this._rerenderSubscription=Rt.w0.EMPTY,this.selectedChange=new n.vpe,this.yearSelected=new n.vpe,this.activeDateChange=new n.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),j1(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof ra?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Zt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-l_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,d=[];r<24;r++)d.push(t+r),4==d.length&&(this._years.push(d.map(h=>this._createCellForYear(h))),d=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const t=e.value,r=this._dateAdapter.createDate(t,0,1),d=this._getDateFromYear(t);this.yearSelected.emit(r),this.selectedChange.emit(d)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-l_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-l_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return l_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const t=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));return this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){const t=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(t),d=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new fM(e,r,r,this._shouldEnableYear(e),d)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class i{constructor(e,t,r,d){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=d,this._rerenderSubscription=Rt.w0.EMPTY,this.selectedChange=new n.vpe,this.monthSelected=new n.vpe,this.activeDateChange=new n.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof ra?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Zt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const t=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(r);const d=this._getDateFromMonth(t);this.selectedChange.emit(d)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-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,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(t);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,t){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),d=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),h=this.dateClass?this.dateClass(r,"year"):void 0;return new fM(e,t.toLocaleUpperCase(),d,this._shouldEnableMonth(e),h)}_shouldEnableMonth(e){const t=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;for(let d=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(d)==e;d=this._dateAdapter.addCalendarDays(d,1))if(this.dateFilter(d))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),d=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&t>d}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),d=this._dateAdapter.getMonth(this.minDate);return e{class i{constructor(e,t,r,d,h){this._intl=e,this.calendar=t,this._dateAdapter=r,this._dateFormats=d,this._buttonDescriptionId="mat-calendar-button-"+fj++,this.calendar.stateChanges.subscribe(()=>h.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-l_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=t+24-1,d=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),h=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(d,h)}get periodButtonLabel(){return"month"==this.calendar.currentView?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="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,t){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):j1(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(o_),n.Y36((0,n.Gpc)(()=>yM)),n.Y36(Un,8),n.Y36(_i,8),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:QV,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",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,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1)(2,"button",2),n.NdJ("click",function(){return t.currentPeriodClicked()}),n.TgZ(3,"span"),n._uU(4),n.qZA(),n.O4$(),n.TgZ(5,"svg",3),n._UZ(6,"polygon",4),n.qZA()(),n.kcU(),n._UZ(7,"div",5),n.Hsn(8),n.TgZ(9,"button",6),n.NdJ("click",function(){return t.previousClicked()}),n.qZA(),n.TgZ(10,"button",7),n.NdJ("click",function(){return t.nextClicked()}),n.qZA()()()),2&e&&(n.xp6(2),n.uIk("aria-label",t.periodButtonLabel)("aria-describedby",t._buttonDescriptionId),n.xp6(1),n.uIk("id",t._buttonDescriptionId),n.xp6(1),n.Oqu(t.periodButtonText),n.xp6(1),n.ekj("mat-calendar-invert","month"!==t.calendar.currentView),n.xp6(4),n.Q6J("disabled",!t.previousEnabled()),n.uIk("aria-label",t.prevButtonLabel),n.xp6(1),n.Q6J("disabled",!t.nextEnabled()),n.uIk("aria-label",t.nextButtonLabel))},dependencies:[Ot],encapsulation:2,changeDetection:0}),i})(),yM=(()=>{class i{constructor(e,t,r,d){this._dateAdapter=t,this._dateFormats=r,this._changeDetectorRef=d,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new n.vpe,this.yearSelected=new n.vpe,this.monthSelected=new n.vpe,this.viewChanged=new n.vpe(!0),this._userSelection=new n.vpe,this.stateChanges=new Se.x,this._intlChanges=e.changes.subscribe(()=>{d.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof ra?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),t&&this.viewChanged.emit(t)}ngAfterContentInit(){this._calendarHeaderPortal=new xa(this.headerComponent||mj),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(e){const t=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,d=t||r||e.dateFilter;if(d&&!d.firstChange){const h=this._getCurrentViewComponent();h&&(this._changeDetectorRef.detectChanges(),h._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const t=e.value;(this.selected instanceof ra||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,t){this.activeDate=e,this.currentView=t}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(o_),n.Y36(Un,8),n.Y36(_i,8),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-calendar"]],viewQuery:function(e,t){if(1&e&&(n.Gf(B1,5),n.Gf(N1,5),n.Gf(V1,5)),2&e){let r;n.iGM(r=n.CRH())&&(t.monthView=r.first),n.iGM(r=n.CRH())&&(t.yearView=r.first),n.iGM(r=n.CRH())&&(t.multiYearView=r.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"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[n._Bn([O1]),n.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,t){1&e&&(n.YNc(0,KV,0,0,"ng-template",0),n.TgZ(1,"div",1),n.YNc(2,XV,1,8,"mat-month-view",2),n.YNc(3,ej,1,6,"mat-year-view",3),n.YNc(4,tj,1,6,"mat-multi-year-view",4),n.qZA()),2&e&&(n.Q6J("cdkPortalOutlet",t._calendarHeaderPortal),n.xp6(1),n.Q6J("ngSwitch",t.currentView),n.xp6(1),n.Q6J("ngSwitchCase","month"),n.xp6(1),n.Q6J("ngSwitchCase","year"),n.xp6(1),n.Q6J("ngSwitchCase","multi-year"))},dependencies:[x.RF,x.n9,Av,Ma,B1,N1,V1],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.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-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}.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}.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}),i})();const F1={transformPanel:fn("transformPanel",[xt("void => enter-dropdown",Tt("120ms cubic-bezier(0, 0, 0.2, 1)",Dl([He({opacity:0,transform:"scale(1, 0.8)"}),He({opacity:1,transform:"scale(1, 1)"})]))),xt("void => enter-dialog",Tt("150ms cubic-bezier(0, 0, 0.2, 1)",Dl([He({opacity:0,transform:"scale(0.7)"}),He({transform:"none",opacity:1})]))),xt("* => void",Tt("100ms linear",He({opacity:0})))]),fadeInCalendar:fn("fadeInCalendar",[Pt("void",He({opacity:0})),Pt("enter",He({opacity:1})),xt("void => *",Tt("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let gj=0;const Y1=new n.OlP("mat-datepicker-scroll-strategy"),bj={provide:Y1,deps:[rr],useFactory:function _j(i){return()=>i.scrollStrategies.reposition()}},wj=Ti(class{constructor(i){this._elementRef=i}});let yj=(()=>{class i extends wj{constructor(e,t,r,d,h,c){super(e),this._changeDetectorRef=t,this._globalModel=r,this._dateAdapter=d,this._rangeSelectionStrategy=h,this._subscriptions=new Rt.w0,this._animationDone=new Se.x,this._actionsPortal=null,this._closeButtonText=c.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(e){const t=this._model.selection,r=e.value,d=t instanceof ra;if(d&&this._rangeSelectionStrategy){const h=this._rangeSelectionStrategy.selectionFinished(r,t,e.event);this._model.updateSelection(h,this)}else r&&(d||!this._dateAdapter.sameDate(r,t))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,t){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,t&&this._changeDetectorRef.detectChanges()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(cd),n.Y36(Un),n.Y36(NC,8),n.Y36(o_))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){if(1&e&&n.Gf(yM,5),2&e){let r;n.iGM(r=n.CRH())&&(t._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){1&e&&n.WFA("@transformPanel.done",function(){return t._animationDone.next()}),2&e&&(n.d8E("@transformPanel",t._animationState),n.ekj("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[n.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,t){if(1&e&&(n.TgZ(0,"div",0)(1,"mat-calendar",1),n.NdJ("yearSelected",function(d){return t.datepicker._selectYear(d)})("monthSelected",function(d){return t.datepicker._selectMonth(d)})("viewChanged",function(d){return t.datepicker._viewChanged(d)})("_userSelection",function(d){return t._handleUserSelection(d)}),n.qZA(),n.YNc(2,nj,0,0,"ng-template",2),n.TgZ(3,"button",3),n.NdJ("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),n._uU(4),n.qZA()()),2&e){let r;n.ekj("mat-datepicker-content-container-with-custom-header",t.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",t._actionsPortal),n.uIk("aria-modal",!0)("aria-labelledby",null!==(r=t._dialogLabelId)&&void 0!==r?r:void 0),n.xp6(1),n.Q6J("id",t.datepicker.id)("ngClass",t.datepicker.panelClass)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._getMinDate())("maxDate",t.datepicker._getMaxDate())("dateFilter",t.datepicker._getDateFilter())("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t._getSelected())("dateClass",t.datepicker.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("@fadeInCalendar","enter"),n.xp6(1),n.Q6J("cdkPortalOutlet",t._actionsPortal),n.xp6(1),n.ekj("cdk-visually-hidden",!t._closeButtonFocused),n.Q6J("color",t.color||"primary"),n.xp6(1),n.Oqu(t._closeButtonText)}},dependencies:[x.mk,Ot,Eb,Ma,yM],styles:[".mat-datepicker-content{display:block;border-radius:4px}.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;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:[F1.transformPanel,F1.fadeInCalendar]},changeDetection:0}),i})(),q1=(()=>{class i{constructor(e,t,r,d,h,c,o){this._overlay=e,this._ngZone=t,this._viewContainerRef=r,this._dateAdapter=h,this._dir=c,this._model=o,this._inputStateChanges=Rt.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new n.vpe,this.monthSelected=new n.vpe,this.viewChanged=new n.vpe(!0),this.openedStream=new n.vpe,this.closedStream=new n.vpe,this._opened=!1,this.id="mat-datepicker-"+gj++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new Se.x,this._scrollStrategy=d}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=Oe(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const t=Oe(e);t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=Oe(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=function rv(i,s=/\s+/){const e=[];if(null!=i){const t=Array.isArray(i)?i:`${i}`.split(s);for(const r of t){const d=`${r}`.trim();d&&e.push(d)}}return e}(e)}get opened(){return this._opened}set opened(e){Oe(e)?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}ngOnChanges(e){const t=e.xPosition||e.yPosition;if(t&&!t.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof Em&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=ho(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const t=this._componentRef.instance;t._startExitAnimation(),t._animationDone.pipe((0,rt.q)(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,t=new xa(yj,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new Sl({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(r).subscribe(d=>{d&&d.preventDefault(),this.close()}),r.keydownEvents().subscribe(d=>{const h=d.keyCode;(38===h||40===h||37===h||39===h||33===h||34===h)&&d.preventDefault()}),this._componentRef=r.attach(t),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(()=>r.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const t="end"===this.xPosition?"end":"start",r="start"===t?"end":"start",d="above"===this.yPosition?"bottom":"top",h="top"===d?"bottom":"top";return e.withPositions([{originX:t,originY:h,overlayX:t,overlayY:d},{originX:t,originY:d,overlayX:t,overlayY:h},{originX:r,originY:h,overlayX:r,overlayY:d},{originX:r,originY:d,overlayX:r,overlayY:h}])}_getCloseStream(e){return(0,Mn.T)(e.backdropClick(),e.detachments(),e.keydownEvents().pipe((0,Ce.h)(t=>27===t.keyCode&&!ri(t)||this.datepickerInput&&ri(t,"altKey")&&38===t.keyCode)))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(Y1),n.Y36(Un,8),n.Y36(xn,8),n.Y36(cd))},i.\u0275dir=n.lG2({type:i,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[n.TTD]}),i})(),CM=(()=>{class i extends q1{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[n._Bn([O1,{provide:q1,useExisting:i}]),n.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),i})();class FC{constructor(s,e){this.target=s,this.targetElement=e,this.value=this.target.value}}let Cj=(()=>{class i{constructor(e,t,r){this._elementRef=e,this._dateAdapter=t,this._dateFormats=r,this.dateChange=new n.vpe,this.dateInput=new n.vpe,this.stateChanges=new Se.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Rt.w0.EMPTY,this._localeSubscription=Rt.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=d=>{const h=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(d.value));return!h||this._matchesFilter(h)?null:{matDatepickerFilter:!0}},this._minValidator=d=>{const h=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(d.value)),c=this._getMinDate();return!c||!h||this._dateAdapter.compareDate(c,h)<=0?null:{matDatepickerMin:{min:c,actual:h}}},this._maxValidator=d=>{const h=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(d.value)),c=this._getMaxDate();return!c||!h||this._dateAdapter.compareDate(c,h)>=0?null:{matDatepickerMax:{max:c,actual:h}}},this._lastValueValid=!1,this._localeSubscription=t.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const t=Oe(e),r=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const r=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new FC(this,this._elementRef.nativeElement)),this.dateChange.emit(new FC(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function Aj(i,s){const e=Object.keys(i);for(let t of e){const{previousValue:r,currentValue:d}=i[t];if(!s.isDateInstance(r)||!s.isDateInstance(d))return!0;if(!s.sameDate(r,d))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const t=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);const d=!this._dateAdapter.sameDate(r,this.value);!r||d?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),t!==this._lastValueValid&&this._validatorOnChange()),d&&(this._assignValue(r),this.dateInput.emit(new FC(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new FC(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const t=this._getDateFilter();return!t||t(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Un,8),n.Y36(_i,8))},i.\u0275dir=n.lG2({type:i,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[n.TTD]}),i})();const vj={provide:sr,useExisting:(0,n.Gpc)(()=>c_),multi:!0},Tj={provide:wi,useExisting:(0,n.Gpc)(()=>c_),multi:!0};let c_=(()=>{class i extends Cj{constructor(e,t,r,d){super(e,t,r),this._formField=d,this._closedSubscription=Rt.w0.EMPTY,this._validator=kn.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())}get max(){return this._max}set max(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange()}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()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Un,8),n.Y36(_i,8),n.Y36(mp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,t){1&e&&n.NdJ("input",function(d){return t._onInput(d.target.value)})("change",function(){return t._onChange()})("blur",function(){return t._onBlur()})("keydown",function(d){return t._onKeydown(d)}),2&e&&(n.Ikx("disabled",t.disabled),n.uIk("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",(null==t._datepicker?null:t._datepicker.opened)&&t._datepicker.id||null)("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null)("data-mat-calendar",t._datepicker?t._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[n._Bn([vj,Tj,{provide:tD,useExisting:i}]),n.qOj]}),i})(),xj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","matDatepickerToggleIcon",""]]}),i})(),AM=(()=>{class i{constructor(e,t,r){this._intl=e,this._changeDetectorRef=t,this._stateChanges=Rt.w0.EMPTY;const d=Number(r);this.tabIndex=d||0===d?d:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=Oe(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:(0,xe.of)(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,xe.of)(),r=this.datepicker?(0,Mn.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,xe.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,Mn.T)(this._intl.changes,e,t,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(o_),n.Y36(n.sBO),n.$8M("tabindex"))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,xj,5),2&e){let d;n.iGM(d=n.CRH())&&(t._customIcon=d.first)}},viewQuery:function(e,t){if(1&e&&n.Gf(ij,5),2&e){let r;n.iGM(r=n.CRH())&&(t._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t._open(d)}),2&e&&(n.uIk("tabindex",null)("data-mat-calendar",t.datepicker?t.datepicker.id:null),n.ekj("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&"accent"===t.datepicker.color)("mat-warn",t.datepicker&&"warn"===t.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[n.TTD],ngContentSelectors:sj,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",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(e,t){1&e&&(n.F$t(aj),n.TgZ(0,"button",0,1),n.YNc(2,rj,2,0,"svg",2),n.Hsn(3),n.qZA()),2&e&&(n.Q6J("disabled",t.disabled)("disableRipple",t.disableRipple),n.uIk("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t.ariaLabel||t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),n.xp6(2),n.Q6J("ngIf",!t._customIcon))},dependencies:[x.O5,Ot],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),i})(),vM=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[o_,bj],imports:[x.ez,bi,El,bl,Hs,ht,Ds]}),i})();const Mj=["mat-sort-header",""];function Sj(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._disableViewStateAnimation=!1)}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6)(4,"div",7)(5,"div",8),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",e._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",e._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",e._getArrowDirectionState())}}const Ej=["*"],z1=new n.OlP("MAT_SORT_DEFAULT_OPTIONS"),Dj=Zh(Qr(class{}));let Oa=(()=>{class i extends Dj{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new Se.x,this.start="asc",this._direction="",this.sortChange=new n.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Oe(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let r=function Hj(i,s){let e=["asc","desc"];return"desc"==i&&e.reverse(),s||e.push(""),e}(e.start||this.start,e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),d=r.indexOf(this.direction)+1;return d>=r.length&&(d=0),r[d]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(z1,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.qOj,n.TTD]}),i})();const dd=jS.ENTERING+" "+VS.STANDARD_CURVE,nf={indicator:fn("indicator",[Pt("active-asc, asc",He({transform:"translateY(0px)"})),Pt("active-desc, desc",He({transform:"translateY(10px)"})),xt("active-asc <=> active-desc",Tt(dd))]),leftPointer:fn("leftPointer",[Pt("active-asc, asc",He({transform:"rotate(-45deg)"})),Pt("active-desc, desc",He({transform:"rotate(45deg)"})),xt("active-asc <=> active-desc",Tt(dd))]),rightPointer:fn("rightPointer",[Pt("active-asc, asc",He({transform:"rotate(45deg)"})),Pt("active-desc, desc",He({transform:"rotate(-45deg)"})),xt("active-asc <=> active-desc",Tt(dd))]),arrowOpacity:fn("arrowOpacity",[Pt("desc-to-active, asc-to-active, active",He({opacity:1})),Pt("desc-to-hint, asc-to-hint, hint",He({opacity:.54})),Pt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",He({opacity:0})),xt("* => asc, * => desc, * => active, * => hint, * => void",Tt("0ms")),xt("* <=> *",Tt(dd))]),arrowPosition:fn("arrowPosition",[xt("* => desc-to-hint, * => desc-to-active",Tt(dd,Dl([He({transform:"translateY(-25%)"}),He({transform:"translateY(0)"})]))),xt("* => hint-to-desc, * => active-to-desc",Tt(dd,Dl([He({transform:"translateY(0)"}),He({transform:"translateY(25%)"})]))),xt("* => asc-to-hint, * => asc-to-active",Tt(dd,Dl([He({transform:"translateY(25%)"}),He({transform:"translateY(0)"})]))),xt("* => hint-to-asc, * => active-to-asc",Tt(dd,Dl([He({transform:"translateY(0)"}),He({transform:"translateY(-25%)"})]))),Pt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",He({transform:"translateY(0)"})),Pt("hint-to-desc, active-to-desc, desc",He({transform:"translateY(-25%)"})),Pt("hint-to-asc, active-to-asc, asc",He({transform:"translateY(25%)"}))]),allowChildren:fn("allowChildren",[xt("* <=> *",[gr("@*",pp(),{optional:!0})])])};let YC=(()=>{class i{constructor(){this.changes=new Se.x}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Rj={provide:YC,deps:[[new n.FiY,new n.tp0,YC]],useFactory:function Pj(i){return i||new YC}},kj=Qr(class{});let rf=(()=>{class i extends kj{constructor(e,t,r,d,h,c,o,a){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=d,this._focusMonitor=h,this._elementRef=c,this._ariaDescriber=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",a?.arrowPosition&&(this.arrowPosition=a?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Oe(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,Mn.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(YC),n.Y36(n.sBO),n.Y36(Oa,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36(Ii),n.Y36(n.SBq),n.Y36(Qd,8),n.Y36(z1,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._handleClick()})("keydown",function(d){return t._handleKeydown(d)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(n.uIk("aria-sort",t._getAriaSortAttribute()),n.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[n.qOj],attrs:Mj,ngContentSelectors:Ej,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,Sj,6,6,"div",2),n.qZA()),2&e&&(n.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"===t.arrowPosition),n.uIk("tabindex",t._isDisabled()?null:0)("role",t._isDisabled()?null:"button"),n.xp6(3),n.Q6J("ngIf",t._renderArrow()))},dependencies:[x.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[nf.indicator,nf.leftPointer,nf.rightPointer,nf.arrowOpacity,nf.arrowPosition,nf.allowChildren]},changeDetection:0}),i})(),TM=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Rj],imports:[x.ez,ht]}),i})();function Lj(i,s){1&i&&n.Hsn(0)}const G1=["*"];function Ij(i,s){}const Oj=function(i){return{animationDuration:i}},Bj=function(i,s){return{value:i,params:s}},Vj=["tabListContainer"],jj=["tabList"],Uj=["tabListInner"],Nj=["nextPaginator"],Fj=["previousPaginator"],Yj=["tabBodyWrapper"],qj=["tabHeader"];function zj(i,s){}function Gj(i,s){if(1&i&&n.YNc(0,zj,0,0,"ng-template",10),2&i){const e=n.oxw().$implicit;n.Q6J("cdkPortalOutlet",e.templateLabel)}}function Wj(i,s){if(1&i&&n._uU(0),2&i){const e=n.oxw().$implicit;n.Oqu(e.textLabel)}}function $j(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",6),n.NdJ("click",function(){const r=n.CHM(e),d=r.$implicit,h=r.index,c=n.oxw(),o=n.MAs(1);return n.KtG(c._handleClick(d,o,h))})("cdkFocusChange",function(r){const h=n.CHM(e).index,c=n.oxw();return n.KtG(c._tabFocusChanged(r,h))}),n.TgZ(1,"div",7),n.YNc(2,Gj,1,1,"ng-template",8),n.YNc(3,Wj,1,1,"ng-template",null,9,n.W1O),n.qZA()()}if(2&i){const e=s.$implicit,t=s.index,r=n.MAs(4),d=n.oxw();n.ekj("mat-tab-label-active",d.selectedIndex===t),n.Q6J("id",d._getTabLabelId(t))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||d.disableRipple),n.uIk("tabIndex",d._getTabIndex(e,t))("aria-posinset",t+1)("aria-setsize",d._tabs.length)("aria-controls",d._getTabContentId(t))("aria-selected",d.selectedIndex===t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),n.xp6(2),n.Q6J("ngIf",e.templateLabel)("ngIfElse",r)}}function Jj(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-tab-body",11),n.NdJ("_onCentered",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._setTabBodyWrapperHeight(r))}),n.qZA()}if(2&i){const e=s.$implicit,t=s.index,r=n.oxw();n.ekj("mat-tab-body-active",r.selectedIndex===t),n.Q6J("id",r._getTabContentId(t))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),n.uIk("tabindex",null!=r.contentTabIndex&&r.selectedIndex===t?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(t))}}const Zj=new n.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Qj(){return s=>({left:s?(s.offsetLeft||0)+"px":"0",width:s?(s.offsetWidth||0)+"px":"0"})}});let W1=(()=>{class i{constructor(e,t,r,d){this._elementRef=e,this._ngZone=t,this._inkBarPositioner=r,this._animationMode=d}alignToElement(e){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(()=>{const t=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=t.left,r.style.width=t.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Zj),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),i})();const $1=new n.OlP("MatTabContent");let Kj=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","matTabContent",""]],features:[n._Bn([{provide:$1,useExisting:i}])]}),i})();const J1=new n.OlP("MatTabLabel"),Z1=new n.OlP("MAT_TAB");let Xj=(()=>{class i extends Lc{constructor(e,t,r){super(e,t),this._closestTab=r}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(Z1,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[n._Bn([{provide:J1,useExisting:i}]),n.qOj]}),i})();const e2=Qr(class{}),Q1=new n.OlP("MAT_TAB_GROUP");let K1=(()=>{class i extends e2{constructor(e,t){super(),this._viewContainerRef=e,this._closestTabGroup=t,this.textLabel="",this._contentPortal=null,this._stateChanges=new Se.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Ir(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(Q1,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tab"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,J1,5),n.Suo(r,$1,7,n.Rgc)),2&e){let d;n.iGM(d=n.CRH())&&(t.templateLabel=d.first),n.iGM(d=n.CRH())&&(t._explicitContent=d.first)}},viewQuery:function(e,t){if(1&e&&n.Gf(n.Rgc,7),2&e){let r;n.iGM(r=n.CRH())&&(t._implicitContent=r.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[n._Bn([{provide:Z1,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:G1,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.YNc(0,Lj,1,0,"ng-template"))},encapsulation:2}),i})();const t2={translateTab:fn("translateTab",[Pt("center, void, left-origin-center, right-origin-center",He({transform:"none"})),Pt("left",He({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Pt("right",He({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),xt("* => left, * => right, left => center, right => center",Tt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),xt("void => left-origin-center",[He({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Tt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),xt("void => right-origin-center",[He({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Tt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let n2=(()=>{class i extends Ma{constructor(e,t,r,d){super(e,t,d),this._host=r,this._centeringSub=Rt.w0.EMPTY,this._leavingSub=Rt.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Zt(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36((0,n.Gpc)(()=>X1)),n.Y36(x.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","matTabBodyHost",""]],features:[n.qOj]}),i})(),r2=(()=>{class i{constructor(e,t,r){this._elementRef=e,this._dir=t,this._dirChangeSubscription=Rt.w0.EMPTY,this._translateTabComplete=new Se.x,this._onCentering=new n.vpe,this._beforeCentering=new n.vpe,this._afterLeavingCenter=new n.vpe,this._onCentered=new n.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,t&&(this._dirChangeSubscription=t.change.subscribe(d=>{this._computePositionAnimationState(d),r.markForCheck()})),this._translateTabComplete.pipe(mo((d,h)=>d.fromState===h.fromState&&d.toState===h.toState)).subscribe(d=>{this._isCenterPosition(d.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(d.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(xn,8),n.Y36(n.sBO))},i.\u0275dir=n.lG2({type:i,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),i})(),X1=(()=>{class i extends r2{constructor(e,t,r){super(e,t,r)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(xn,8),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tab-body"]],viewQuery:function(e,t){if(1&e&&n.Gf(Ma,5),2&e){let r;n.iGM(r=n.CRH())&&(t._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[n.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(n.TgZ(0,"div",0,1),n.NdJ("@translateTab.start",function(d){return t._onTranslateTabStarted(d)})("@translateTab.done",function(d){return t._translateTabComplete.next(d)}),n.YNc(2,Ij,0,0,"ng-template",2),n.qZA()),2&e&&n.Q6J("@translateTab",n.WLB(3,Bj,t._position,n.VKq(1,Oj,t.animationDuration)))},dependencies:[n2],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[t2.translateTab]}}),i})();const eH=new n.OlP("MAT_TABS_CONFIG"),a2=Qr(class{});let tH=(()=>{class i extends a2{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(n.uIk("aria-disabled",!!t.disabled),n.ekj("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[n.qOj]}),i})();const nH=Ja({passive:!0});let l2=(()=>{class i{constructor(e,t,r,d,h,c,o){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=r,this._dir=d,this._ngZone=h,this._platform=c,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Se.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Se.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new n.vpe,this.indexFocused=new n.vpe,h.runOutsideAngular(()=>{ea(e.nativeElement,"mouseleave").pipe(Ke(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Oe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=_n(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){ea(this._previousPaginator.nativeElement,"touchstart",nH).pipe(Ke(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),ea(this._nextPaginator.nativeElement,"touchstart",nH).pipe(Ke(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:(0,xe.of)("ltr"),t=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Sc(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(r),(0,Mn.T)(e,t,this._items.changes,this._itemsResized()).pipe(Ke(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Ke(this._destroyed)).subscribe(d=>{this.indexFocused.emit(d),this._setTabFocus(d)})}_itemsResized(){return"function"!=typeof ResizeObserver?Pn.E:this._items.changes.pipe(Zt(this._items),(0,bn.w)(e=>new ln.y(t=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(()=>{t.next()});return e.forEach(d=>{r.observe(d.elementRef.nativeElement)}),()=>{r.disconnect()}}))),Fh(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!ri(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const t=this._tabListContainer.nativeElement;t.scrollLeft="ltr"==this._getLayoutDirection()?0:t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const t=this._items?this._items.toArray()[e]:null;if(!t)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:d,offsetWidth:h}=t.elementRef.nativeElement;let c,o;"ltr"==this._getLayoutDirection()?(c=d,o=c+h):(o=this._tabListInner.nativeElement.offsetWidth-d,c=o-h);const a=this.scrollDistance,l=this.scrollDistance+r;cl&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&null!=t.button&&0!==t.button||(this._stopInterval(),(0,wm.H)(650,100).pipe(Ke((0,Mn.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:d}=this._scrollHeader(e);(0===d||d>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(va),n.Y36(xn,8),n.Y36(n.R0b),n.Y36(yn),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,inputs:{disablePagination:"disablePagination"}}),i})(),c2=(()=>{class i extends l2{constructor(e,t,r,d,h,c,o){super(e,t,r,d,h,c,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Oe(e)}_itemSelected(e){e.preventDefault()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(va),n.Y36(xn,8),n.Y36(n.R0b),n.Y36(yn),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,inputs:{disableRipple:"disableRipple"},features:[n.qOj]}),i})(),d2=(()=>{class i extends c2{constructor(e,t,r,d,h,c,o){super(e,t,r,d,h,c,o)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(va),n.Y36(xn,8),n.Y36(n.R0b),n.Y36(yn),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tab-header"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,tH,4),2&e){let d;n.iGM(d=n.CRH())&&(t._items=d)}},viewQuery:function(e,t){if(1&e&&(n.Gf(W1,7),n.Gf(Vj,7),n.Gf(jj,7),n.Gf(Uj,7),n.Gf(Nj,5),n.Gf(Fj,5)),2&e){let r;n.iGM(r=n.CRH())&&(t._inkBar=r.first),n.iGM(r=n.CRH())&&(t._tabListContainer=r.first),n.iGM(r=n.CRH())&&(t._tabList=r.first),n.iGM(r=n.CRH())&&(t._tabListInner=r.first),n.iGM(r=n.CRH())&&(t._nextPaginator=r.first),n.iGM(r=n.CRH())&&(t._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[n.qOj],ngContentSelectors:G1,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"button",0,1),n.NdJ("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(d){return t._handlePaginatorPress("before",d)})("touchend",function(){return t._stopInterval()}),n._UZ(2,"div",2),n.qZA(),n.TgZ(3,"div",3,4),n.NdJ("keydown",function(d){return t._handleKeydown(d)}),n.TgZ(5,"div",5,6),n.NdJ("cdkObserveContent",function(){return t._onContentChanges()}),n.TgZ(7,"div",7,8),n.Hsn(9),n.qZA(),n._UZ(10,"mat-ink-bar"),n.qZA()(),n.TgZ(11,"button",9,10),n.NdJ("mousedown",function(d){return t._handlePaginatorPress("after",d)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),n._UZ(13,"div",2),n.qZA()),2&e&&(n.ekj("mat-tab-header-pagination-disabled",t._disableScrollBefore),n.Q6J("matRippleDisabled",t._disableScrollBefore||t.disableRipple)("disabled",t._disableScrollBefore||null),n.xp6(5),n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),n.xp6(6),n.ekj("mat-tab-header-pagination-disabled",t._disableScrollAfter),n.Q6J("matRippleDisabled",t._disableScrollAfter||t.disableRipple)("disabled",t._disableScrollAfter||null))},dependencies:[Lr,qh,W1],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),i})(),u2=0;class h2{}const p2=Ti(mr(class{constructor(i){this._elementRef=i}}),"primary");let f2=(()=>{class i extends p2{constructor(e,t,r,d){super(e),this._changeDetectorRef=t,this._animationMode=d,this._tabs=new n.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Rt.w0.EMPTY,this._tabLabelSubscription=Rt.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new n.vpe,this.focusChange=new n.vpe,this.animationDone=new n.vpe,this.selectedTabChange=new n.vpe(!0),this._groupId=u2++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Oe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=_n(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=_n(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Oe(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=Oe(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const t=this._elementRef.nativeElement;t.classList.remove(`mat-background-${this.backgroundColor}`),e&&t.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const t=null==this._selectedIndex;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,d)=>r.isActive=d===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((t,r)=>{t.position=r-e,null!=this._selectedIndex&&0==t.position&&!t.origin&&(t.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const t=this._tabs.toArray();let r;for(let d=0;d{t[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Zt(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const t=new h2;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Mn.T)(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,t,r){e.disabled||(this.selectedIndex=t.focusIndex=r)}_getTabIndex(e,t){return e.disabled?null:t===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,t){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(eH,8),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[n.qOj]}),i})(),m2=(()=>{class i extends f2{constructor(e,t,r,d){super(e,t,r,d)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(eH,8),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tab-group"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,K1,5),2&e){let d;n.iGM(d=n.CRH())&&(t._allTabs=d)}},viewQuery:function(e,t){if(1&e&&(n.Gf(Yj,5),n.Gf(qj,5)),2&e){let r;n.iGM(r=n.CRH())&&(t._tabBodyWrapper=r.first),n.iGM(r=n.CRH())&&(t._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[n._Bn([{provide:Q1,useExisting:i}]),n.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-tab-header",0,1),n.NdJ("indexFocused",function(d){return t._focusChanged(d)})("selectFocusedIndex",function(d){return t.selectedIndex=d}),n.YNc(2,$j,5,15,"div",2),n.qZA(),n.TgZ(3,"div",3,4),n.YNc(5,Jj,1,11,"mat-tab-body",5),n.qZA()),2&e&&(n.Q6J("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),n.xp6(2),n.Q6J("ngForOf",t._tabs),n.xp6(1),n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),n.xp6(2),n.Q6J("ngForOf",t._tabs))},dependencies:[x.mk,x.sg,x.O5,Ma,Lr,Av,tH,X1,d2],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),i})(),rH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,ht,Hs,Kr,$d,bl,ht]}),i})(),aH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),sH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[aH,Kr,ht,$d,aH,ht]}),i})();const dH=new n.OlP("mat-chips-default-options");let MM=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Ca,{provide:dH,useValue:{separatorKeyCodes:[13]}}],imports:[ht]}),i})(),uH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,c1,jx,w1,bi,C1,VC,Vl,yC,Zg,dC,Hl,cC,nr,Tg,zc,L1,vM,Vb,KE,yD,Ug,pD,TM,Lu,Ls,ku,Kr,yC,sH,MM,c1,jx,w1,bi,C1,VC,Vl,yC,Zg,dC,Hl,cC,nr,Tg,zc,L1,vM,Vb,KE,yD,Ug,pD,TM,Lu,Ls,ku,Kr,rH,sH,MM]}),i})();class U2{constructor(s,e){this._document=e;const t=this._textarea=this._document.createElement("textarea"),r=t.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",t.setAttribute("aria-hidden","true"),t.value=s,t.readOnly=!0,this._document.body.appendChild(t)}copy(){const s=this._textarea;let e=!1;try{if(s){const t=this._document.activeElement;s.select(),s.setSelectionRange(0,s.value.length),e=this._document.execCommand("copy"),t&&t.focus()}}catch{}return e}destroy(){const s=this._textarea;s&&(s.remove(),this._textarea=void 0)}}let N2=(()=>{class i{constructor(e){this._document=e}copy(e){const t=this.beginCopy(e),r=t.copy();return t.destroy(),r}beginCopy(e){return new U2(e,this._document)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),F2=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),Y2=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.data=t,this.clipboard=r}ngOnInit(){this.publication=this.data}close(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(N2))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-cite-dialog"]],decls:15,vars:10,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",2),n._uU(5),n.qZA(),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.close()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",5),n.NdJ("click",function(){return t.clipboard.copy(t.publication.main)}),n._uU(11),n.ALo(12,"translate"),n.TgZ(13,"mat-icon"),n._uU(14,"content_copy"),n.qZA()()()()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,4,"DIALOGS.SHOW_CITE.TITLE")),n.xp6(3),n.hij(" ",t.publication.main," "),n.xp6(3),n.hij(" ",n.lcZ(9,6,"DIALOGS.SHOW_CITE.CANCEL")," "),n.xp6(3),n.hij(" ",n.lcZ(12,8,"DIALOGS.SHOW_CITE.COPY")," "))},dependencies:[Ot,Ln,Oi,$i,Bi,it]}),i})(),hH=(()=>{class i{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&n.NdJ("mouseup",function(d){return t.onClick(d)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),i})(),qC=(()=>{class i{constructor(e){this.tableCheckboxService=e}transform(e,t,r){return 0!==t&&(function tR(i){return"allObjectCount"in i}(e)?t===e.getData().length:function q2(i){return"_count"in i}(e)?this.tableCheckboxService.isAllSelectedPaginated(e,t,r):this.tableCheckboxService.isAllSelected(t,e,r))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($p,16))},i.\u0275pipe=n.Yjl({name:"isAllSelected",type:i,pure:!0}),i})(),d_=(()=>{class i{transform(e){const t="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return e?t+"DESELECT_ROW":t+"SELECT_ROW"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"checkboxLabel",type:i,pure:!0}),i})(),zC=(()=>{class i{transform(e){const t="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return e?t+"DESELECT_ALL":t+"SELECT_ALL"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"masterCheckboxLabel",type:i,pure:!0}),i})(),z2=(()=>{class i{transform(e){const t=[];return e.forEach(r=>t.push(r.firstName+" "+r.lastName)),t.join(", ")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"authorsSeparatedByComma",type:i,pure:!0}),i})();function G2(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"th",21)(1,"mat-checkbox",22),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(r?d.masterToggle():null)}),n.ALo(2,"translate"),n.ALo(3,"masterCheckboxLabel"),n.qZA()()}if(2&i){const e=n.oxw().ngIf,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.lcZ(2,3,n.lcZ(3,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}const W2=function(i){return{name:i}};function $2(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",23)(1,"mat-checkbox",24),n.NdJ("change",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.itemSelectionToggle(h):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(7,W2,e.title)))("checked",t.selection.isSelected(e))}}function J2(i,s){1&i&&(n.ynx(0,18),n.YNc(1,G2,4,7,"th",19),n.YNc(2,$2,4,9,"td",20),n.BQk())}function Z2(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_ID")," "))}function Q2(i,s){if(1&i&&(n.TgZ(0,"td",26),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.id," ")}}function K2(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_LOCK")," "))}function X2(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",28),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.lockOrUnlockPublication(r))})("mouseenter",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.buttonPressed=!0)})("mouseleave",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.buttonPressed=!1)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"lock"),n.qZA()()}if(2&i){const e=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,2,"PUBLICATIONS_LIST.LOCKED")),n.Q6J("disabled",!e.lockAuth)}}function eU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",28),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.lockOrUnlockPublication(r))})("mouseenter",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.buttonPressed=!0)})("mouseleave",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.buttonPressed=!1)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"lock_open"),n.qZA()()}if(2&i){const e=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,2,"PUBLICATIONS_LIST.UNLOCKED")),n.Q6J("disabled",!e.lockAuth)}}function tU(i,s){if(1&i&&(n.TgZ(0,"td",26),n.YNc(1,X2,4,4,"button",27),n.YNc(2,eU,4,4,"button",27),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Q6J("ngIf",e.locked),n.xp6(1),n.Q6J("ngIf",!e.locked)}}function nU(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_TITLE")," "))}function iU(i,s){if(1&i&&(n.TgZ(0,"td",26),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.title," ")}}function rU(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_REPORTED_BY")," "))}function aU(i,s){if(1&i&&(n.TgZ(0,"td",26),n._uU(1),n.ALo(2,"authorsSeparatedByComma"),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,e.authors)," ")}}function sU(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_YEAR")," "))}function oU(i,s){if(1&i&&(n.TgZ(0,"td",26),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.year," ")}}function lU(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CATEGORY")," "))}function cU(i,s){if(1&i&&(n.TgZ(0,"td",26),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.categoryName," ")}}function dU(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_THANKEDTO")," "))}function uU(i,s){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n._UZ(2,"br"),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.ownerName,"")}}function hU(i,s){if(1&i&&(n.TgZ(0,"td",26),n.YNc(1,uU,3,1,"span",29),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Q6J("ngForOf",e.thanks)}}function pU(i,s){1&i&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CITE")))}function fU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",26)(1,"button",31),n.NdJ("click",function(){const d=n.CHM(e).$implicit,h=n.oxw();return n.KtG(h.showCite(d))})("mouseenter",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.buttonPressed=!0)})("mouseleave",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.buttonPressed=!1)}),n._uU(2),n.ALo(3,"translate"),n.qZA()()}2&i&&(n.xp6(2),n.hij(" ",n.lcZ(3,1,"PUBLICATIONS_LIST.SHOW_CITE")," "))}function mU(i,s){1&i&&n._UZ(0,"tr",32)}const pH=function(i,s){return[i,s]};function gU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"tr",33),n.NdJ("click",function(){const d=n.CHM(e).$implicit,h=n.oxw();return n.KtG(h.disabledRouting&&h.openInTab&&!h.buttonPressed?h.emitPublication(d):null)}),n.qZA()}if(2&i){const e=s.$implicit,t=n.oxw();n.ekj("cursor-pointer",!t.disabledRouting||t.openInTab),n.Q6J("perunWebAppsMiddleClickRouterLink",t.disabledRouting||t.buttonPressed?null:n.WLB(4,pH,t.routerPath,e.id))("routerLink",t.disabledRouting||t.buttonPressed?null:n.WLB(7,pH,t.routerPath,e.id))}}function _U(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",34),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.NO_PUBLICATIONS_FOUND"),"\n"))}const bU=function(i){return{all:i}};let af=(()=>{class i{constructor(e,t,r,d,h,c){this.tableCheckbox=e,this.cabinetService=t,this.dialog=r,this.notificator=d,this.translate=h,this.authResolver=c,this.selection=new Kn(!0,[]),this.displayedColumns=["select","id","lock","title","reportedBy","year","category","thankedTo","cite"],this.pageSizeOptions=jl,this.disabledRouting=!1,this.openInTab=!1,this.allowAlert=!0,this.publicationSelector=new n.vpe,this.buttonPressed=!1,this.lockAuth=!1,h.get("PUBLICATIONS_LIST.CHANGE_LOCK_SUCCESS").subscribe(o=>this.changeLockMessage=o),h.get("PUBLICATIONS_LIST.LOCKED").subscribe(o=>this.locked=o),h.get("PUBLICATIONS_LIST.UNLOCKED").subscribe(o=>this.unlocked=o),this.lockAuth=this.authResolver.isCabinetAdmin()}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"lock":return String(e.locked);case"title":return e.title;case"reportedBy":{let r="";return e.authors.forEach(d=>r+=d.firstName+" "+d.lastName+";"),r.slice(0,-1)}case"year":return e.year.toString();case"category":return e.categoryName;case"thankedTo":{let r="";return e.thanks.forEach(d=>r+=d.ownerName+";"),r.slice(0,-1)}default:return e[t]}}ngOnChanges(){this.dataSource=new zl(this.publications),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}itemSelectionToggle(e){this.selection.toggle(e)}showCite(e){const t=Jn();t.width="500px",t.data=e,this.dialog.open(Y2,t)}lockOrUnlockPublication(e){this.cabinetService.lockPublications({publications:[this.createPublication(e)],lock:!e.locked}).subscribe(()=>{this.notificator.showSuccess(e.locked?this.changeLockMessage+this.unlocked:this.changeLockMessage+this.locked),e.locked=!e.locked})}emitPublication(e){this.publicationSelector.emit(e)}setDataSource(){this.dataSource&&(this.dataSource.sortData=(e,t)=>So(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}createPublication(e){return{id:e.id,beanName:e.beanName,externalId:e.externalId,publicationSystemId:e.publicationSystemId,categoryId:e.categoryId,createdBy:e.createdBy,createdDate:e.createdDate,doi:e.doi,isbn:e.isbn,locked:e.locked,main:e.main,rank:e.rank,title:e.title,year:e.year}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($p),n.Y36(wn),n.Y36(oi),n.Y36(Ji),n.Y36(mn),n.Y36(dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publications-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{publications:"publications",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",pageSizeOptions:"pageSizeOptions",routerPath:"routerPath",disabledRouting:"disabledRouting",openInTab:"openInTab",allowAlert:"allowAlert"},outputs:{publicationSelector:"publicationSelector"},features:[n.TTD],decls:32,vars:14,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","title","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","lock"],["matColumnDef","title"],["matColumnDef","reportedBy"],["matColumnDef","year"],["matColumnDef","category"],["matColumnDef","thankedTo"],["matColumnDef","cite"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-icon-button","",3,"disabled","matTooltip","click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"disabled","matTooltip","click","mouseenter","mouseleave"],[4,"ngFor","ngForOf"],["mat-header-cell",""],["mat-stroked-button","",3,"click","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink","click"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,J2,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,Z2,3,3,"th",5),n.YNc(7,Q2,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,K2,3,3,"th",5),n.YNc(10,tU,3,2,"td",6),n.BQk(),n.ynx(11,8),n.YNc(12,nU,3,3,"th",5),n.YNc(13,iU,2,1,"td",6),n.BQk(),n.ynx(14,9),n.YNc(15,rU,3,3,"th",5),n.YNc(16,aU,3,3,"td",6),n.BQk(),n.ynx(17,10),n.YNc(18,sU,3,3,"th",5),n.YNc(19,oU,2,1,"td",6),n.BQk(),n.ynx(20,11),n.YNc(21,lU,3,3,"th",5),n.YNc(22,cU,2,1,"td",6),n.BQk(),n.ynx(23,12),n.YNc(24,dU,3,3,"th",5),n.YNc(25,hU,2,1,"td",6),n.BQk(),n.ynx(26,13),n.YNc(27,pU,3,3,"th",14),n.YNc(28,fU,4,3,"td",6),n.BQk(),n.YNc(29,mU,1,0,"tr",15),n.YNc(30,gU,1,10,"tr",16),n.qZA()()(),n.YNc(31,_U,3,3,"perun-web-apps-alert",17)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publications.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(12,bU,n.xi3(4,9,t.dataSource,t.selection.selected.length))),n.xp6(26),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.publications.length&&t.allowAlert))},dependencies:[x.sg,x.O5,Ot,ld,Ln,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,ks,Ts,na,as,hH,Vx,it,qC,d_,zC,z2],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function wU(i,s){1&i&&n._UZ(0,"mat-spinner",7)}const yU=function(){return["id","title","year"]};function CU(i,s){if(1&i&&(n.TgZ(0,"div",8),n._uU(1),n.ALo(2,"translate"),n._UZ(3,"perun-web-apps-publications-list",9),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,4,"DIALOGS.REMOVE_PUBLICATION.WARNING")," "),n.xp6(2),n.Q6J("publications",e.publications)("routerPath",null)("displayedColumns",n.DdM(6,yU))}}let SM=(()=>{class i{constructor(e,t,r,d,h){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=d,this.cabinetService=h,this.loading=!1}ngOnInit(){this.publications=this.data}cancel(){this.dialogRef.close()}remove(){this.loading=!0,this.cabinetService.deletePublication(this.publications.pop().id).subscribe(()=>{this.publications.length<=0?this.translate.get("DIALOGS.REMOVE_PUBLICATION.REMOVE_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)}):this.remove()},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(Ji),n.Y36(mn),n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-remove-publication-dialog"]],decls:13,vars:12,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"publications","routerPath","displayedColumns"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,wU,1,0,"mat-spinner",2),n.YNc(5,CU,4,7,"div",3),n.TgZ(6,"div",4)(7,"button",5),n.NdJ("click",function(){return t.cancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",6),n.NdJ("click",function(){return t.remove()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,6,"DIALOGS.REMOVE_PUBLICATION.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(3),n.hij(" ",n.lcZ(9,8,"DIALOGS.REMOVE_PUBLICATION.CANCEL")," "),n.xp6(2),n.Q6J("disabled",t.loading),n.xp6(1),n.hij(" ",n.lcZ(12,10,"DIALOGS.REMOVE_PUBLICATION.REMOVE")," "))},dependencies:[x.O5,Ot,Oi,$i,Bi,Sn,af,it]}),i})(),sf=(()=>{class i{constructor(){this.refresh=new n.vpe}onClickbutton(e){this.refresh.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(n.TgZ(0,"button",0),n.NdJ("click",function(d){return t.onClickbutton(d)}),n.ALo(1,"translate"),n._UZ(2,"mat-icon",1),n.qZA()),2&e&&(n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),n.Q6J("disabled",t.disabled),n.xp6(2),n.s9C("svgIcon",t.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},dependencies:[Ln,Ot,ks,it],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),i})();var lf=E(5439);const Nu=lf||E.t(lf,2),fH=new n.OlP("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function vU(){return{useUtc:!1}}});function TU(i,s){const e=Array(i);for(let t=0;t{class i extends Un{constructor(e,t){super(),this._options=t,this.setLocale(e||Nu.locale())}setLocale(e){super.setLocale(e);let t=Nu.localeData(e);this._localeData={firstDayOfWeek:t.firstDayOfWeek(),longMonths:t.months(),shortMonths:t.monthsShort(),dates:TU(31,r=>this.createDate(2017,0,r+1).format("D")),longDaysOfWeek:t.weekdays(),shortDaysOfWeek:t.weekdaysShort(),narrowDaysOfWeek:t.weekdaysMin()}}getYear(e){return this.clone(e).year()}getMonth(e){return this.clone(e).month()}getDate(e){return this.clone(e).date()}getDayOfWeek(e){return this.clone(e).day()}getMonthNames(e){return"long"==e?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(e){return"long"==e?this._localeData.longDaysOfWeek:"short"==e?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(e){return this.clone(e).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(e){return this.clone(e).daysInMonth()}clone(e){return e.clone().locale(this.locale)}createDate(e,t,r){const d=this._createMoment({year:e,month:t,date:r}).locale(this.locale);return d.isValid(),d}today(){return this._createMoment().locale(this.locale)}parse(e,t){return e&&"string"==typeof e?this._createMoment(e,t,this.locale):e?this._createMoment(e).locale(this.locale):null}format(e,t){return e=this.clone(e),this.isValid(e),e.format(t)}addCalendarYears(e,t){return this.clone(e).add({years:t})}addCalendarMonths(e,t){return this.clone(e).add({months:t})}addCalendarDays(e,t){return this.clone(e).add({days:t})}toIso8601(e){return this.clone(e).format()}deserialize(e){let t;if(e instanceof Date)t=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if("string"==typeof e){if(!e)return null;t=this._createMoment(e,Nu.ISO_8601).locale(this.locale)}return t&&this.isValid(t)?this._createMoment(t).locale(this.locale):super.deserialize(e)}isDateInstance(e){return Nu.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return Nu.invalid()}_createMoment(e,t,r){const{strict:d,useUtc:h}=this._options||{};return h?Nu.utc(e,t,r,d):Nu(e,t,r,d)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(_o,8),n.LFG(fH,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),xU=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Un,useClass:u_,deps:[_o,fH]}]}),i})(),mH=(()=>{class i{ngOnInit(){this.endMaxYear=new Date,this.startMaxYear=this.endYear.value.toDate(),this.startYear.setValue(null)}chosenYearHandler(e,t,r){e.setValue(t),this.startMaxYear=this.endYear.value.toDate(),this.endMinYear=this.startYear.value?this.startYear.value.toDate():null,r.close()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-year-range"]],inputs:{startYear:"startYear",endYear:"endYear"},decls:16,vars:15,consts:[[1,"year-field","mr-2",3,"click"],["matInput","","readonly","",1,"disable",3,"matDatepicker","max","formControl"],["matSuffix","",3,"for"],["startView","multi-year","panelClass","year-picker",3,"yearSelected"],["sdp",""],["matInput","","readonly","",3,"matDatepicker","min","max","formControl"],["edp",""]],template:function(e,t){if(1&e){const r=n.EpF();n.TgZ(0,"mat-form-field",0),n.NdJ("click",function(){n.CHM(r);const h=n.MAs(7);return n.KtG(h.open())}),n.TgZ(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"input",1)(5,"mat-datepicker-toggle",2),n.TgZ(6,"mat-datepicker",3,4),n.NdJ("yearSelected",function(h){n.CHM(r);const c=n.MAs(7);return n.KtG(t.chosenYearHandler(t.startYear,h,c))}),n.qZA()(),n.TgZ(8,"mat-form-field",0),n.NdJ("click",function(){n.CHM(r);const h=n.MAs(15);return n.KtG(h.open())}),n.TgZ(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n._UZ(12,"input",5)(13,"mat-datepicker-toggle",2),n.TgZ(14,"mat-datepicker",3,6),n.NdJ("yearSelected",function(h){n.CHM(r);const c=n.MAs(15);return n.KtG(t.chosenYearHandler(t.endYear,h,c))}),n.qZA()()}if(2&e){const r=n.MAs(7),d=n.MAs(15);n.xp6(2),n.Oqu(n.lcZ(3,11,"PUBLICATION_FILTER.START_YEAR")),n.xp6(2),n.Q6J("matDatepicker",r)("max",t.startMaxYear)("formControl",t.startYear),n.xp6(1),n.Q6J("for",r),n.xp6(5),n.Oqu(n.lcZ(11,13,"PUBLICATION_FILTER.END_YEAR")),n.xp6(2),n.Q6J("matDatepicker",d)("min",t.endMinYear)("max",t.endMaxYear)("formControl",t.endYear),n.xp6(1),n.Q6J("for",d)}},dependencies:[ar,ta,_u,Ra,Gi,Wi,_r,CM,c_,AM,it],styles:[".year-field{max-width:95px!important;width:100%!important;min-width:initial!important}.year-picker .mat-calendar-period-button{pointer-events:none}.year-picker .mat-calendar-arrow{display:none}\n"],encapsulation:2}),i})();function MU(i,s){if(1&i&&(n.TgZ(0,"mat-option",12),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.name," ")}}const EM=lf,SU={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let DM=(()=>{class i{constructor(e){this.cabinetService=e,this.filteredPublication=new n.vpe,this.title=new Nn(""),this.code=new Nn(""),this.startYear=new Nn(EM()),this.endYear=new Nn(EM())}ngOnInit(){this.title.setValue(""),this.code.setValue(""),this.selectedCategory="no_value",this.cabinetService.getCategories().subscribe(e=>{this.categories=e,this.selectedMode="isbn/issn"})}filter(){const e=this.code.value,t={title:this.title.value,isbnissn:"isbn/issn"===this.selectedMode?e:null,doi:"doi"===this.selectedMode?e:null,category:"no_value"!==this.selectedCategory?this.selectedCategory.id:null,startYear:(0,x.p6)(this.startYear.value?this.startYear.value.toDate():null,"yyyy","en-GB"),endYear:(0,x.p6)(this.endYear.value.toDate(),"yyyy","en-GB")};this.filteredPublication.emit(t)}clearFilter(){this.title.setValue(""),this.code.setValue(""),this.selectedMode="isbn/issn",this.selectedCategory="no_value",this.startYear.setValue(null),this.endYear.setValue(EM()),this.filteredPublication.emit({title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publication-filter"]],outputs:{filteredPublication:"filteredPublication"},features:[n._Bn([{provide:Un,useClass:u_,deps:[_o]},{provide:_i,useValue:SU}])],decls:38,vars:34,consts:[[1,"mt-2"],[1,"filter-field","mr-2"],["matInput","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","isbn/issn"],["value","doi"],[1,"year-field","mr-2"],["value","no_value"],[3,"value",4,"ngFor","ngForOf"],[3,"startYear","endYear"],["mat-stroked-button","",1,"mr-2",3,"click"],["mat-stroked-button","",3,"click"],[3,"value"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"mat-form-field",1),n._UZ(2,"input",2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-form-field",1)(5,"mat-label"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"mat-select",3),n.NdJ("valueChange",function(d){return t.selectedMode=d}),n.TgZ(9,"mat-option",4),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"mat-option",5),n._uU(13),n.ALo(14,"translate"),n.qZA()()(),n.TgZ(15,"mat-form-field",6),n._UZ(16,"input",2),n.ALo(17,"translate"),n.qZA(),n.TgZ(18,"mat-form-field",1)(19,"mat-label"),n._uU(20),n.ALo(21,"translate"),n.qZA(),n.TgZ(22,"mat-select",3),n.NdJ("valueChange",function(d){return t.selectedCategory=d}),n.TgZ(23,"mat-option",7),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.YNc(26,MU,2,2,"mat-option",8),n.qZA()(),n._UZ(27,"perun-web-apps-year-range",9),n.TgZ(28,"button",10),n.NdJ("click",function(){return t.filter()}),n.TgZ(29,"mat-icon"),n._uU(30,"search"),n.qZA(),n._uU(31),n.ALo(32,"translate"),n.qZA(),n.TgZ(33,"button",11),n.NdJ("click",function(){return t.clearFilter()}),n.TgZ(34,"mat-icon"),n._uU(35,"search_off"),n.qZA(),n._uU(36),n.ALo(37,"translate"),n.qZA()()),2&e&&(n.xp6(2),n.s9C("placeholder",n.lcZ(3,16,"PUBLICATION_FILTER.TITLE_PLACEHOLDER")),n.Q6J("formControl",t.title),n.xp6(4),n.Oqu(n.lcZ(7,18,"PUBLICATION_FILTER.SELECT_MODE")),n.xp6(2),n.Q6J("value",t.selectedMode),n.xp6(2),n.Oqu(n.lcZ(11,20,"PUBLICATION_FILTER.ISBN/ISSN")),n.xp6(3),n.Oqu(n.lcZ(14,22,"PUBLICATION_FILTER.DOI")),n.xp6(3),n.s9C("placeholder",n.lcZ(17,24,"PUBLICATION_FILTER.CODE_PLACEHOLDER")),n.Q6J("formControl",t.code),n.xp6(4),n.Oqu(n.lcZ(21,26,"PUBLICATION_FILTER.SELECT_CATEGORY")),n.xp6(2),n.Q6J("value",t.selectedCategory),n.xp6(2),n.Oqu(n.lcZ(25,28,"PUBLICATION_FILTER.NO_CATEGORY_SELECTED")),n.xp6(2),n.Q6J("ngForOf",t.categories),n.xp6(1),n.Q6J("startYear",t.startYear)("endYear",t.endYear),n.xp6(4),n.hij(" ",n.lcZ(32,30,"PUBLICATION_FILTER.FILTER")," "),n.xp6(5),n.hij(" ",n.lcZ(37,32,"PUBLICATION_FILTER.CLEAR_FILTER")," "))},dependencies:[x.sg,Ot,Ln,ar,ta,Ra,Gi,Wi,_r,Jc,Al,mH,it],styles:[".filter-field[_ngcontent-%COMP%]{max-width:250px!important;width:100%!important;min-width:initial!important}.disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:initial!important}"]}),i})();function EU(i,s){if(1&i&&n._UZ(0,"perun-web-apps-publications-list",10),2&i){const e=n.oxw();n.Q6J("publications",e.publications)("selection",e.selected)("routerPath","/all-publications")("tableId",e.tableId)}}function DU(i,s){1&i&&n._UZ(0,"mat-spinner",11)}let HU=(()=>{class i{constructor(e,t,r,d,h){this.route=e,this.cabinetService=t,this.dialog=r,this.matIconRegistry=d,this.domSanitizer=h,this.selected=new Kn(!0,[]),this.tableId="68",this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null},this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.refreshTable()}removePublication(){const e=Jn();e.width="500px",e.data=this.selected.selected,this.dialog.open(SM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,this.filter.isbnissn,this.filter.doi,null,null,this.filter.category,+this.filter.startYear,+this.filter.endYear,null).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.filter=e,this.refreshTable()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Li),n.Y36(wn),n.Y36(oi),n.Y36(xo),n.Y36(On))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-all-publications-page"]],decls:14,vars:9,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],["svgIcon","publications",1,"publications-icon"],[1,"ml-3","mt-1"],[1,"mt-4"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","routerPath","tableId",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publications","selection","routerPath","tableId"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._UZ(2,"mat-icon",2),n.TgZ(3,"span",3),n._uU(4),n.ALo(5,"translate"),n.qZA()(),n.TgZ(6,"div",4)(7,"perun-web-apps-refresh-button",5),n.NdJ("refresh",function(){return t.refreshTable()}),n.qZA(),n.TgZ(8,"button",6),n.NdJ("click",function(){return t.removePublication()}),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"perun-web-apps-publication-filter",7),n.NdJ("filteredPublication",function(d){return t.filterPublication(d)}),n.qZA()(),n.YNc(12,EU,1,4,"perun-web-apps-publications-list",8),n.YNc(13,DU,1,0,"mat-spinner",9),n.qZA()),2&e&&(n.xp6(4),n.Oqu(n.lcZ(5,5,"ALL_PUBLICATIONS.TITLE")),n.xp6(4),n.Q6J("disabled",0===t.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(10,7,"ALL_PUBLICATIONS.REMOVE")," "),n.xp6(3),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading))},dependencies:[x.O5,Ot,Ln,Sn,sf,af,DM,it],styles:[".publications-icon[_ngcontent-%COMP%]{height:32px;width:32px}"]}),i})();function PU(i,s){if(1&i&&n._UZ(0,"perun-web-apps-publications-list",11),2&i){const e=n.oxw(2);n.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/my-publications")}}function RU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",6)(2,"perun-web-apps-refresh-button",7),n.NdJ("refresh",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.refreshTable())}),n.qZA(),n.TgZ(3,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.removePublication())}),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"perun-web-apps-publication-filter",9),n.NdJ("filteredPublication",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.filterPublication(r))}),n.qZA()(),n.YNc(7,PU,1,4,"perun-web-apps-publications-list",10),n.qZA()}if(2&i){const e=n.oxw();n.xp6(3),n.Q6J("disabled",0===e.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(5,3,"MY_PUBLICATIONS.REMOVE")," "),n.xp6(3),n.Q6J("ngIf",!e.loading)}}function kU(i,s){1&i&&n._UZ(0,"mat-spinner",12)}let LU=(()=>{class i{constructor(e,t,r,d){this.route=e,this.cabinetService=t,this.dialog=r,this.authResolver=d,this.selected=new Kn(!0,[]),this.tableId="68",this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null}}ngOnInit(){this.initLoading=!0,this.authResolver.getPerunPrincipal().subscribe(e=>{this.authorId=e.userId,this.initLoading=!1,this.refreshTable()})}removePublication(){const e=Jn();e.width="500px",e.data=this.selected.selected,this.dialog.open(SM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,this.filter.isbnissn,this.filter.doi,null,null,this.filter.category,+this.filter.startYear,+this.filter.endYear,this.authorId).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.filter=e,this.refreshTable()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Li),n.Y36(wn),n.Y36(oi),n.Y36(Va))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-my-publications-page"]],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mt-4"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","tableId","routerPath",4,"ngIf"],[3,"publications","selection","tableId","routerPath"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),n._uU(3,"local_library"),n.qZA(),n.TgZ(4,"span",3),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.YNc(7,RU,8,5,"div",4),n.YNc(8,kU,1,0,"mat-spinner",5),n.qZA()),2&e&&(n.xp6(5),n.Oqu(n.lcZ(6,3,"MY_PUBLICATIONS.TITLE")),n.xp6(2),n.Q6J("ngIf",!t.initLoading),n.xp6(1),n.Q6J("ngIf",t.loading||t.initLoading))},dependencies:[x.O5,Ot,Ln,Sn,sf,af,DM,it]}),i})(),IU=(()=>{class i{constructor(e){this.router=e}importPublications(){this.router.navigate(["create-publication","import"],{queryParamsHandling:"preserve"})}createPublication(){this.router.navigate(["create-publication","create"],{queryParamsHandling:"preserve"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($n))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-create-publication-page"]],decls:32,vars:21,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],[1,"card-container"],[1,"align-cards"],[1,"mat-elevation-z3","card-height"],[1,"d-flex","flex-column"],["mat-flat-button","","color","accent",1,"align-self-end","action-button",3,"click"],["mat-flat-button","","color","accent",1,"align-self-end","action-button","create-button",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),n._uU(4,"add_box"),n.qZA(),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"div",3)(8,"div",4)(9,"mat-card",5)(10,"mat-card-title"),n._uU(11),n.ALo(12,"translate"),n.qZA(),n.TgZ(13,"mat-card-content",6)(14,"div"),n._uU(15),n.ALo(16,"translate"),n.qZA(),n.TgZ(17,"button",7),n.NdJ("click",function(){return t.importPublications()}),n._uU(18),n.ALo(19,"translate"),n.qZA()()()(),n.TgZ(20,"div",4)(21,"mat-card",5)(22,"mat-card-title"),n._uU(23),n.ALo(24,"translate"),n.qZA(),n.TgZ(25,"mat-card-content",6)(26,"div"),n._uU(27),n.ALo(28,"translate"),n.qZA(),n.TgZ(29,"button",8),n.NdJ("click",function(){return t.createPublication()}),n._uU(30),n.ALo(31,"translate"),n.qZA()()()()()()),2&e&&(n.xp6(5),n.hij(" ",n.lcZ(6,7,"CREATE_PUBLICATION.TITLE")," "),n.xp6(6),n.hij(" ",n.lcZ(12,9,"CREATE_PUBLICATION.IMPORT_TITLE")," "),n.xp6(4),n.hij(" ",n.lcZ(16,11,"CREATE_PUBLICATION.IMPORT_HINT")," "),n.xp6(3),n.hij(" ",n.lcZ(19,13,"CREATE_PUBLICATION.IMPORT")," "),n.xp6(5),n.hij(" ",n.lcZ(24,15,"CREATE_PUBLICATION.CREATE_TITLE")," "),n.xp6(4),n.hij(" ",n.lcZ(28,17,"CREATE_PUBLICATION.CREATE_HINT")," "),n.xp6(3),n.hij(" ",n.lcZ(31,19,"CREATE_PUBLICATION.CREATE")," "))},dependencies:[l1,s1,o1,Ot,Ln,it],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.card-container[_ngcontent-%COMP%]{margin:0 -1rem}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top;max-width:250px;max-height:200px}.card-height[_ngcontent-%COMP%]{height:200px}.create-button[_ngcontent-%COMP%]{display:flex;margin-top:21px}"]}),i})();const OU=["input"];let BU=(()=>{class i{constructor(){this.autoFocus=!1,this.control=new gg,this.filter=new n.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),ea(this.input.nativeElement,"keyup").pipe((0,_t.U)(e=>e.target.value),(0,Nh.b)(500),mo()).subscribe(e=>{this.control.invalid||this.filter.emit(e)})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(e,t){if(1&e&&n.Gf(OU,7),2&e){let r;n.iGM(r=n.CRH())&&(t.input=r.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","","data-cy","filter-input",3,"placeholder","formControl"],["input",""]],template:function(e,t){1&e&&(n.TgZ(0,"mat-form-field",0),n._UZ(1,"input",1,2),n.ALo(3,"translate"),n.TgZ(4,"mat-error"),n._uU(5),n.qZA()()),2&e&&(n.xp6(1),n.s9C("placeholder",n.lcZ(3,3,t.placeholder)),n.Q6J("formControl",t.control),n.xp6(4),n.hij(" ",t.error," "))},dependencies:[Gi,Wi,es,ar,_r,Ra,it],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),i})(),HM=(()=>{class i{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"userFullName",type:i,pure:!0}),i})();function VU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-checkbox",20),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(3);return n.KtG(r?d.masterToggle():null)}),n.ALo(1,"translate"),n.ALo(2,"masterCheckboxLabel"),n.qZA()}if(2&i){const e=n.oxw(2).ngIf,t=n.oxw();n.Q6J("aria-label",n.lcZ(1,3,n.lcZ(2,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function jU(i,s){if(1&i&&(n.TgZ(0,"th",18),n.YNc(1,VU,3,7,"mat-checkbox",19),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",e.selection.isMultipleSelection())}}const UU=function(i){return{name:i}};function NU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",21)(1,"mat-checkbox",22),n.NdJ("change",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.selection.toggle(h):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.ALo(4,"userFullName"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(9,UU,n.lcZ(4,7,e))))("checked",t.selection.isSelected(e))}}function FU(i,s){1&i&&(n.ynx(0,15),n.YNc(1,jU,2,1,"th",16),n.YNc(2,NU,5,11,"td",17),n.BQk())}function YU(i,s){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"AUTHORS_LIST.ID")))}function qU(i,s){if(1&i&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.id)}}function zU(i,s){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"AUTHORS_LIST.NAME")," "))}function GU(i,s){if(1&i&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,e))}}function WU(i,s){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"AUTHORS_LIST.ORGANIZATION")," "))}function $U(i,s){if(1&i&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&i){const e=s.$implicit,t=n.oxw();n.xp6(1),n.Oqu(t.parseAttribute(e,"organization"))}}function JU(i,s){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"AUTHORS_LIST.EMAIL")," "))}function ZU(i,s){if(1&i&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&i){const e=s.$implicit,t=n.oxw();n.xp6(1),n.Oqu(t.parseAttribute(e,"preferredMail"))}}function QU(i,s){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"AUTHORS_LIST.NUMBER_OF_PUBLICATIONS")," "))}function KU(i,s){if(1&i&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.authorships.length.toString())}}function XU(i,s){1&i&&n._UZ(0,"tr",26)}const gH=function(i){return["/authors",i]};function eN(i,s){if(1&i&&n._UZ(0,"tr",27),2&i){const e=s.$implicit,t=n.oxw();n.ekj("cursor-pointer",!t.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:n.VKq(4,gH,e.id))("routerLink",t.disableRouting?null:n.VKq(6,gH,e.id))}}function tN(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function nN(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"AUTHORS_LIST.NO_AUTHORS"),"\n"))}const iN=function(i){return{all:i}};let PM=(()=>{class i{constructor(e){this.tableCheckbox=e,this.authors=[],this.displayedColumns=["select","id","name","organization","email","numberOfPublications"],this.disableRouting=!1,this.selection=new Kn(!0,[]),this.pageSizeOptions=jl}set matSort(e){this.sort=e,this.setDataSource()}static getFilterDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return function Ny(i){let s="";return null!==i.firstName&&(s+=i.firstName+" "),null!==i.middleName&&(s+=i.middleName+" "),null!==i.lastName&&(s+=i.lastName+" "),s.endsWith(" ")&&(s=s.substring(0,s.length-1)),s}(e);case"organization":return Iu(e.attributes,"organization");case"email":return Iu(e.attributes,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getExportDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return function Uy(i){let s="";return null!==i.titleBefore&&(s+=i.titleBefore+" "),null!==i.firstName&&(s+=i.firstName+" "),null!==i.middleName&&(s+=i.middleName+" "),null!==i.lastName&&(s+=i.lastName+" "),null!==i.titleAfter&&(s+=i.titleAfter+" "),s.endsWith(" ")&&(s=s.substring(0,s.length-1)),s}(e);case"organization":return Iu(e.attributes,"organization");case"email":return Iu(e.attributes,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getSortDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.lastName?e.lastName:e.firstName??"";case"organization":return Iu(e.attributes,"organization");case"email":return Iu(e.attributes,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new zl(this.authors),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getExportDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getExportDataForColumn),e)}parseAttribute(e,t){let r="";return e.attributes&&e.attributes.forEach(d=>{d.friendlyName===t&&(r=d.value)}),r}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Eo(e,t,this.displayedColumns,i.getFilterDataForColumn),this.dataSource.sortData=(e,t)=>So(e,t,i.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($p))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-authors-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{authors:"authors",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",disableRouting:"disableRouting",reloadTable:"reloadTable",selection:"selection",pageSizeOptions:"pageSizeOptions"},features:[n.TTD],decls:24,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","numberOfPublications"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,FU,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,YU,3,3,"th",5),n.YNc(7,qU,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,zU,3,3,"th",5),n.YNc(10,GU,3,3,"td",8),n.BQk(),n.ynx(11,9),n.YNc(12,WU,3,3,"th",5),n.YNc(13,$U,2,1,"td",8),n.BQk(),n.ynx(14,10),n.YNc(15,JU,3,3,"th",5),n.YNc(16,ZU,2,1,"td",8),n.BQk(),n.ynx(17,11),n.YNc(18,QU,3,3,"th",5),n.YNc(19,KU,2,1,"td",8),n.BQk(),n.YNc(20,XU,1,0,"tr",12),n.YNc(21,eN,1,8,"tr",13),n.qZA()()(),n.YNc(22,tN,3,3,"perun-web-apps-alert",14),n.YNc(23,nN,3,3,"perun-web-apps-alert",14)),2&e&&(n.Q6J("hidden",0===t.authors.length||0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(13,iN,n.xi3(4,10,t.dataSource,t.selection.selected.length))),n.xp6(17),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0!==t.authors.length&&0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("ngIf",0===t.authors.length))},dependencies:[x.O5,ld,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,Ts,na,as,hH,Vx,it,HM,qC,d_,zC],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function rN(i,s){1&i&&n._UZ(0,"mat-spinner",8)}const aN=function(){return["id","name","organization","email","numberOfPublications"]};function sN(i,s){if(1&i&&n._UZ(0,"perun-web-apps-authors-list",9),2&i){const e=n.oxw();n.Q6J("authors",e.authors)("displayedColumns",n.DdM(4,aN))("filterValue",e.filterValue)("tableId",e.tableId)}}let oN=(()=>{class i{constructor(e){this.cabinetService=e,this.filterValue="",this.tableId="67"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetService.findAllAuthors().subscribe(e=>{this.authors=e,this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-authors-page"]],decls:11,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","displayedColumns","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"authors","displayedColumns","filterValue","tableId"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),n._uU(3,"assignment_ind"),n.qZA(),n.TgZ(4,"span",3),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"perun-web-apps-refresh-button",4),n.NdJ("refresh",function(){return t.refreshTable()}),n.qZA(),n.TgZ(8,"perun-web-apps-debounce-filter",5),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.qZA(),n.YNc(9,rN,1,0,"mat-spinner",6),n.YNc(10,sN,1,5,"perun-web-apps-authors-list",7),n.qZA()),2&e&&(n.xp6(5),n.Oqu(n.lcZ(6,4,"AUTHORS_PAGE.TITLE")),n.xp6(3),n.Q6J("placeholder","AUTHORS_PAGE.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ln,Sn,sf,BU,PM,it]}),i})();function lN(i,s){1&i&&n._UZ(0,"mat-spinner",4)}function cN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),n._UZ(3,"input",6),n.ALo(4,"translate"),n.TgZ(5,"mat-error"),n._uU(6),n.ALo(7,"translate"),n.qZA()(),n.TgZ(8,"mat-form-field"),n._UZ(9,"input",6),n.ALo(10,"translate"),n.TgZ(11,"mat-error"),n._uU(12),n.ALo(13,"translate"),n.qZA()(),n.TgZ(14,"p",7),n._uU(15),n.ALo(16,"translate"),n.qZA()(),n.TgZ(17,"div",8)(18,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(19),n.ALo(20,"translate"),n.qZA(),n.TgZ(21,"div",10),n.ALo(22,"translate"),n.TgZ(23,"button",11),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(24),n.ALo(25,"translate"),n.qZA()()()()}if(2&i){const e=n.oxw();n.xp6(3),n.s9C("placeholder",n.lcZ(4,12,"DIALOGS.ADD_CATEGORY.NAME")),n.Q6J("formControl",e.nameCtrl),n.xp6(3),n.hij(" ",n.lcZ(7,14,"DIALOGS.ADD_CATEGORY.FILL_NAME")," "),n.xp6(3),n.s9C("placeholder",n.lcZ(10,16,"DIALOGS.ADD_CATEGORY.RANK")),n.Q6J("formControl",e.rankCtrl),n.xp6(3),n.hij(" ",n.lcZ(13,18,"DIALOGS.ADD_CATEGORY.FILL_RANK")," "),n.xp6(3),n.Oqu(n.lcZ(16,20,"DIALOGS.ADD_CATEGORY.RANK_HINT")),n.xp6(4),n.hij(" ",n.lcZ(20,22,"DIALOGS.ADD_CATEGORY.CANCEL")," "),n.xp6(2),n.s9C("matTooltip",n.lcZ(22,24,"DIALOGS.ADD_CATEGORY.TOOLTIP")),n.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.rankCtrl.valid),n.xp6(2),n.Q6J("disabled",e.nameCtrl.invalid||e.rankCtrl.invalid),n.xp6(1),n.hij(" ",n.lcZ(25,26,"DIALOGS.ADD_CATEGORY.CREATE")," ")}}let dN=(()=>{class i{constructor(e,t,r,d){this.dialogRef=e,this.notificator=t,this.cabinetManagerService=r,this.translate=d,d.get("DIALOGS.ADD_CATEGORY.SUCCESS").subscribe(h=>this.successMessage=h)}ngOnInit(){this.nameCtrl=new Nn("",[kn.required,kn.pattern("^[\\w.-]+( [\\w.-]+)*$"),kn.maxLength(128)]),this.rankCtrl=new Nn(null,[kn.required,kn.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.cabinetManagerService.createCategoryCat({category:{id:0,beanName:"Category",name:this.nameCtrl.value,rank:this.rankCtrl.value}}).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(Ji),n.Y36(wn),n.Y36(mn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-category-dialog"]],decls:6,vars:5,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl"],[1,"mt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,lN,1,0,"mat-spinner",2),n.YNc(5,cN,26,28,"div",3),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,3,"DIALOGS.ADD_CATEGORY.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Oi,$i,Bi,Sn,es,ar,Ra,Gi,Wi,ns,_r,ks,it],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})();function uN(i,s){1&i&&n._UZ(0,"mat-spinner",5)}function hN(i,s){1&i&&n._UZ(0,"th",14)}function pN(i,s){if(1&i&&(n.TgZ(0,"td",15),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.name)}}function fN(i,s){1&i&&n._UZ(0,"tr",16)}function mN(i,s){1&i&&n._UZ(0,"tr",17)}function gN(i,s){if(1&i&&(n.TgZ(0,"div",6)(1,"p"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",7),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"table",8),n.ynx(8,9),n.YNc(9,hN,1,0,"th",10),n.YNc(10,pN,2,1,"td",11),n.BQk(),n.YNc(11,fN,1,0,"tr",12),n.YNc(12,mN,1,0,"tr",13),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,5,"DIALOGS.REMOVE_CATEGORY.DESCRIPTION")," "),n.xp6(3),n.hij(" ",n.lcZ(6,7,"DIALOGS.REMOVE_CATEGORY.ASK")," "),n.xp6(2),n.Q6J("dataSource",e.dataSource),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}function _N(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",18)(1,"button",19),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"button",20),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(5),n.ALo(6,"translate"),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,3,"DIALOGS.REMOVE_CATEGORY.CANCEL")," "),n.xp6(2),n.Q6J("disabled",e.loading),n.xp6(1),n.hij(" ",n.lcZ(6,5,"DIALOGS.REMOVE_CATEGORY.DELETE")," ")}}let bN=(()=>{class i{constructor(e,t,r,d,h){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=d,this.cabinetManagerService=h,this.displayedColumns=["name"],this.categories=[]}ngOnInit(){this.dataSource=new zl(this.data),this.categories=this.data}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.categories.length?this.cabinetManagerService.deleteCategory(this.categories.pop().id).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):this.translate.get("DIALOGS.REMOVE_CATEGORY.SUCCESS").subscribe(e=>{this.loading=!1,this.notificator.showSuccess(e),this.dialogRef.close(!0)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(Ji),n.Y36(mn),n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-remove-category-dialog"]],decls:7,vars:6,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,uN,1,0,"mat-spinner",2),n.YNc(5,gN,13,9,"div",3),n.YNc(6,_N,7,7,"div",4),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,4,"DIALOGS.REMOVE_CATEGORY.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oi,$i,Bi,Sn,it]}),i})(),wN=(()=>{class i{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","perunWebAppsAutoFocus",""]]}),i})();function yN(i,s){if(1&i&&(n._UZ(0,"input",3),n.ALo(1,"translate")),2&i){const e=n.oxw();n.s9C("placeholder",n.lcZ(1,2,e.placeholder)),n.Q6J("formControl",e.formControl)}}function CN(i,s){if(1&i&&(n._UZ(0,"input",4),n.ALo(1,"translate")),2&i){const e=n.oxw();n.s9C("placeholder",n.lcZ(1,2,e.placeholder)),n.Q6J("formControl",e.formControl)}}let h_=(()=>{class i{constructor(){this.filter=new n.vpe,this.autoFocus=!1,this.formControl=new gg}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-form-field",0),n.YNc(1,yN,2,4,"input",1),n.YNc(2,CN,2,4,"input",2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",t.autoFocus),n.xp6(1),n.Q6J("ngIf",!t.autoFocus))},dependencies:[x.O5,Gi,Wi,ar,_r,Ra,wN,it],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:initial!important}"]}),i})();function AN(i,s){1&i&&n._UZ(0,"mat-spinner",4)}function vN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),n._UZ(3,"input",6),n.ALo(4,"translate"),n.TgZ(5,"mat-error"),n._uU(6),n.ALo(7,"translate"),n.qZA()(),n.TgZ(8,"p",7),n._uU(9),n.ALo(10,"translate"),n.qZA()(),n.TgZ(11,"div",8)(12,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"div",10),n.ALo(16,"translate"),n.TgZ(17,"button",11),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(18),n.ALo(19,"translate"),n.qZA()()()()}if(2&i){const e=n.oxw();n.xp6(3),n.s9C("placeholder",n.lcZ(4,9,"DIALOGS.UPDATE_RANK.RANK")),n.Q6J("formControl",e.rankCtrl),n.xp6(3),n.hij(" ",n.lcZ(7,11,"DIALOGS.UPDATE_RANK.FILL_RANK")," "),n.xp6(3),n.Oqu(n.lcZ(10,13,"DIALOGS.UPDATE_RANK.RANK_HINT")),n.xp6(4),n.hij(" ",n.lcZ(14,15,"DIALOGS.UPDATE_RANK.CANCEL")," "),n.xp6(2),n.s9C("matTooltip",n.lcZ(16,17,"DIALOGS.UPDATE_RANK.TOOLTIP")),n.Q6J("matTooltipDisabled",e.rankCtrl.valid),n.xp6(2),n.Q6J("disabled",e.rankCtrl.invalid),n.xp6(1),n.hij(" ",n.lcZ(19,19,"DIALOGS.UPDATE_RANK.UPDATE")," ")}}let TN=(()=>{class i{constructor(e,t,r,d,h){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetManagerService=d,this.translate=h,this.categoryName="",h.get("DIALOGS.UPDATE_RANK.SUCCESS").subscribe(c=>this.successMessage=c)}ngOnInit(){this.categoryName=this.data.name,this.rankCtrl=new Nn(this.data.rank,[kn.required,kn.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.rank=this.rankCtrl.value,this.cabinetManagerService.updateCategory({category:this.data}).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(Ji),n.Y36(wn),n.Y36(mn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-update-rank-dialog"]],decls:6,vars:6,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl"],[1,"mt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,AN,1,0,"mat-spinner",2),n.YNc(5,vN,20,21,"div",3),n.qZA()),2&e&&(n.xp6(2),n.AsE("",n.lcZ(3,4,"DIALOGS.UPDATE_RANK.TITLE"),"",t.categoryName,""),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Oi,$i,Bi,Sn,es,ar,Ra,Gi,Wi,ns,_r,ks,it],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})();function xN(i,s){1&i&&n._UZ(0,"th",15)}const MN=function(i){return{name:i}};function SN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",16)(1,"mat-checkbox",17),n.NdJ("change",function(r){const h=n.CHM(e).$implicit,c=n.oxw();return n.KtG(r?c.itemSelectionToggle(h):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(7,MN,e.name)))("checked",t.selection.isSelected(e))}}function EN(i,s){1&i&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CATEGORIES_LIST.ID")," "))}function DN(i,s){if(1&i&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.id)}}function HN(i,s){1&i&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CATEGORIES_LIST.NAME")," "))}function PN(i,s){if(1&i&&(n.TgZ(0,"td",20),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.name)}}function RN(i,s){1&i&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CATEGORIES_LIST.RANK")," "))}function kN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",22),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.updateCategory(r))}),n.TgZ(1,"mat-icon"),n._uU(2,"edit"),n.qZA()()}}function LN(i,s){if(1&i&&(n.TgZ(0,"td",20),n._uU(1),n.YNc(2,kN,3,0,"button",21),n.qZA()),2&i){const e=s.$implicit,t=n.oxw();n.xp6(1),n.hij(" ",e.rank," "),n.xp6(1),n.Q6J("ngIf",t.editAuth)}}function IN(i,s){1&i&&n._UZ(0,"tr",23)}function ON(i,s){1&i&&n._UZ(0,"tr",24)}function BN(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CATEGORIES_PAGE.NO_FILTER_RESULTS"),"\n"))}let VN=(()=>{class i{constructor(e,t,r,d){this.guiAuthResolver=e,this.tableCheckbox=t,this.dialog=r,this.authResolver=d,this.categories=[],this.selection=new Kn(!0,[]),this.displayedColumns=["select","id","name","rank"],this.pageSizeOptions=jl,this.refreshTable=new n.vpe,this.editAuth=!1}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"rank":return e.rank.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new zl(this.categories),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Eo(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>So(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.editAuth=this.authResolver.isCabinetAdmin(),this.dataSource.paginator=this.child.paginator}itemSelectionToggle(e){this.selection.toggle(e)}updateCategory(e){const t=Jn();t.width="400px",t.data=e,this.dialog.open(TN,t).afterClosed().subscribe(d=>{d&&this.refreshTable.emit()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(dn),n.Y36($p),n.Y36(oi),n.Y36(dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-categories-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{categories:"categories",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},outputs:{refreshTable:"refreshTable"},features:[n.TTD],decls:18,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","rank"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,xN,1,0,"th",4),n.YNc(5,SN,4,9,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,EN,3,3,"th",7),n.YNc(8,DN,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,HN,3,3,"th",7),n.YNc(11,PN,2,1,"td",10),n.BQk(),n.ynx(12,11),n.YNc(13,RN,3,3,"th",7),n.YNc(14,LN,3,2,"td",10),n.BQk(),n.YNc(15,IN,1,0,"tr",12),n.YNc(16,ON,1,0,"tr",13),n.qZA()()(),n.YNc(17,BN,3,3,"perun-web-apps-alert",14)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.categories.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(13),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.categories.length))},dependencies:[x.O5,Ot,ld,Ln,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,na,as,it,d_]}),i})();function jN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.addCategory())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CATEGORIES_PAGE.CREATE")," "))}function UN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.removeCategory())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("disabled",!e.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(2,2,"CATEGORIES_PAGE.REMOVE")," ")}}function NN(i,s){1&i&&n._UZ(0,"mat-spinner",10)}const FN=function(){return["select","id","name","rank"]},YN=function(){return["name","rank"]};function qN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-categories-list",11),n.NdJ("refreshTable",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.refreshTable())}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("categories",e.categories)("filterValue",e.filterValue)("displayedColumns",e.removeAuth?n.DdM(5,FN):n.DdM(6,YN))("tableId",e.tableId)("selection",e.selected)}}let zN=(()=>{class i{constructor(e,t,r){this.cabinetManagerService=e,this.dialog=t,this.guiAuthResolver=r,this.categories=[],this.selected=new Kn(!0,[]),this.filterValue="",this.tableId="5"}ngOnInit(){this.setAuth(),this.refreshTable()}setAuth(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteCategory_Category_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createCategory_Category_policy",[])}refreshTable(){this.loading=!0,this.cabinetManagerService.getCategories().subscribe(e=>{this.categories=e,this.loading=!1})}applyFilter(e){this.filterValue=e}addCategory(){const e=Jn();e.width="400px",e.data={},this.dialog.open(dN,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}removeCategory(){const e=Jn();e.width="400px",e.data=this.selected.selected,this.dialog.open(bN,e).afterClosed().subscribe(r=>{r&&(this.selected.clear(),this.refreshTable())})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn),n.Y36(oi),n.Y36(dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-categories-page"]],decls:10,vars:8,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"categories","filterValue","displayedColumns","tableId","selection","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"categories","filterValue","displayedColumns","tableId","selection","refreshTable"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"perun-web-apps-refresh-button",2),n.NdJ("refresh",function(){return t.refreshTable()}),n.qZA(),n.YNc(5,jN,3,3,"button",3),n.YNc(6,UN,3,4,"button",4),n.TgZ(7,"perun-web-apps-immediate-filter",5),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.qZA(),n.YNc(8,NN,1,0,"mat-spinner",6),n.YNc(9,qN,1,7,"perun-web-apps-categories-list",7),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,6,"CATEGORIES_PAGE.TITLE")),n.xp6(3),n.Q6J("ngIf",t.addAuth),n.xp6(1),n.Q6J("ngIf",t.removeAuth),n.xp6(1),n.Q6J("placeholder","CATEGORIES_PAGE.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",t.categories&&!t.loading))},dependencies:[x.O5,Ot,Sn,sf,h_,VN,it]}),i})();function GN(i,s){1&i&&(n.TgZ(0,"th",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.ID")," "))}function WN(i,s){if(1&i&&(n.TgZ(0,"td",15),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.id)}}function $N(i,s){1&i&&(n.TgZ(0,"th",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.FRIENDLY_NAME")," "))}function JN(i,s){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.friendlyName)}}function ZN(i,s){1&i&&(n.TgZ(0,"th",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.LOGIN_NAMESPACE")," "))}function QN(i,s){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ","empty"===e.loginNamespace?"":e.loginNamespace," ")}}function KN(i,s){1&i&&(n.TgZ(0,"th",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.URL")," "))}function XN(i,s){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu("empty"===e.url?"":e.url)}}function eF(i,s){1&i&&(n.TgZ(0,"th",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.TYPE")," "))}function tF(i,s){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu("empty"===e.type?"":e.type)}}function nF(i,s){1&i&&n._UZ(0,"tr",17)}function iF(i,s){1&i&&n._UZ(0,"tr",18)}function rF(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",19),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let aF=(()=>{class i{constructor(){this.publicationSystems=[],this.displayedColumns=["id","friendlyName","loginNamespace","url","type"],this.pageSizeOptions=jl}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"url":return e.url;case"loginNamespace":return e.loginNamespace;case"type":return e.type;default:return e[t]}}ngOnChanges(){this.dataSource=new zl(this.publicationSystems),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Eo(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>So(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publication-systems-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{publicationSystems:"publicationSystems",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},features:[n.TTD],decls:21,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","loginNamespace"],["matColumnDef","url"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,GN,3,3,"th",4),n.YNc(5,WN,2,1,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,$N,3,3,"th",4),n.YNc(8,JN,2,1,"td",7),n.BQk(),n.ynx(9,8),n.YNc(10,ZN,3,3,"th",4),n.YNc(11,QN,2,1,"td",7),n.BQk(),n.ynx(12,9),n.YNc(13,KN,3,3,"th",4),n.YNc(14,XN,2,1,"td",7),n.BQk(),n.ynx(15,10),n.YNc(16,eF,3,3,"th",4),n.YNc(17,tF,2,1,"td",7),n.BQk(),n.YNc(18,nF,1,0,"tr",11),n.YNc(19,iF,1,0,"tr",12),n.qZA()()(),n.YNc(20,rF,3,3,"perun-web-apps-alert",13)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publicationSystems.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(16),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.publicationSystems.length))},dependencies:[x.O5,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,na,as,it]}),i})();function sF(i,s){1&i&&n._UZ(0,"mat-spinner",6)}function oF(i,s){if(1&i&&n._UZ(0,"perun-web-apps-publication-systems-list",7),2&i){const e=n.oxw();n.Q6J("publicationSystems",e.publicationSystems)("filterValue",e.filterValue)("tableId",e.tableId)}}let lF=(()=>{class i{constructor(e){this.cabinetManagerService=e,this.publicationSystems=[],this.filterValue="",this.tableId="5"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetManagerService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e,this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publication-systems-page"]],decls:8,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publicationSystems","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"publicationSystems","filterValue","tableId"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"perun-web-apps-refresh-button",2),n.NdJ("refresh",function(){return t.refreshTable()}),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",3),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.qZA(),n.YNc(6,sF,1,0,"mat-spinner",4),n.YNc(7,oF,1,3,"perun-web-apps-publication-systems-list",5),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,4,"PUBLICATION_SYSTEMS_PAGE.TITLE")),n.xp6(3),n.Q6J("placeholder","PUBLICATION_SYSTEMS_PAGE.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",t.publicationSystems&&!t.loading))},dependencies:[x.O5,Sn,sf,h_,aF,it]}),i})();function cF(i,s){if(1&i&&n._UZ(0,"perun-web-apps-publications-list",11),2&i){const e=n.oxw(2);n.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/authors/"+e.author.id+"/publication")}}function dF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"h5"),n._uU(2),n.ALo(3,"userFullName"),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"div",6)(6,"perun-web-apps-refresh-button",7),n.NdJ("refresh",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.refreshTable())}),n.qZA(),n.TgZ(7,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.removePublication())}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"perun-web-apps-publication-filter",9),n.NdJ("filteredPublication",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.filterPublication(r))}),n.qZA()(),n.YNc(11,cF,1,4,"perun-web-apps-publications-list",10),n.qZA()}if(2&i){const e=n.oxw();n.xp6(2),n.AsE("",n.lcZ(3,5,e.author),"",n.lcZ(4,7,"AUTHOR_DETAIL.TITLE"),""),n.xp6(5),n.Q6J("disabled",0===e.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(9,9,"AUTHOR_DETAIL.REMOVE")," "),n.xp6(3),n.Q6J("ngIf",!e.loading)}}function uF(i,s){1&i&&n._UZ(0,"mat-spinner",12)}let hF=(()=>{class i{constructor(e,t,r,d){this.route=e,this.cabinetService=t,this.userService=r,this.dialog=d,this.selected=new Kn(!0,[]),this.tableId="68"}ngOnInit(){this.initLoading=!0,this.route.params.subscribe(e=>{const t=Number(e.authorId);this.userService.getUserById(t).subscribe(r=>{this.author=r,this.initLoading=!1,this.refreshTable()})})}removePublication(){const e=Jn();e.width="500px",e.data=this.selected.selected,this.dialog.open(SM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(null,null,null,null,null,null,null,null,this.author.id).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(e.title,e.isbnissn,e.doi,null,null,e.category,+e.startYear,+e.endYear,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Li),n.Y36(wn),n.Y36(Uo),n.Y36(oi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-author-detail"]],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mt-3"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","tableId","routerPath",4,"ngIf"],[3,"publications","selection","tableId","routerPath"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),n._uU(3,"assignment_ind"),n.qZA(),n.TgZ(4,"span",3),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.YNc(7,dF,12,11,"div",4),n.YNc(8,uF,1,0,"mat-spinner",5),n.qZA()),2&e&&(n.xp6(5),n.Oqu(n.lcZ(6,3,"AUTHORS_PAGE.TITLE")),n.xp6(2),n.Q6J("ngIf",!t.initLoading),n.xp6(1),n.Q6J("ngIf",t.loading||t.initLoading))},dependencies:[x.O5,Ot,Ln,Sn,sf,af,DM,it,HM]}),i})();function pF(i,s){1&i&&n._UZ(0,"mat-spinner",2)}function fF(i,s){if(1&i&&(n.TgZ(0,"h3",15),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.publication.title)}}function mF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",16),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.editing=!r.editing)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",17),n._uU(3,"edit"),n.qZA()()}2&i&&n.s9C("matTooltip",n.lcZ(1,1,"PUBLICATION_DETAIL.LIST.EDIT"))}function gF(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.LIST.EMPTY_ERROR")," "))}function _F(i,s){if(1&i&&(n.TgZ(0,"mat-form-field",18),n._UZ(1,"textarea",19),n.YNc(2,gF,3,3,"mat-error",1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("formControl",e.titleControl),n.xp6(1),n.Q6J("ngIf",e.titleControl.invalid)}}function bF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",20),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.save())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",17),n._uU(3,"save"),n.qZA()()}if(2&i){const e=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,2,"PUBLICATION_DETAIL.LIST.SAVE")),n.Q6J("disabled",e.titleControl.invalid)}}function wF(i,s){1&i&&n._UZ(0,"th",21)}function yF(i,s){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij("",e.key,":")}}function CF(i,s){1&i&&n._UZ(0,"th",21)}function AF(i,s){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.TgZ(2,"span",24),n._uU(3),n.ALo(4,"translate"),n.qZA(),n._uU(5),n.TgZ(6,"span",24),n._uU(7),n.ALo(8,"translate"),n.qZA(),n._uU(9),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(2);n.xp6(1),n.hij(" ",e.value," / "),n.xp6(2),n.hij("",n.lcZ(4,5,"PUBLICATION_DETAIL.LIST.EXT_ID"),":"),n.xp6(2),n.hij(" ",t.publication.externalId," "),n.xp6(2),n.hij("",n.lcZ(8,7,"PUBLICATION_DETAIL.LIST.SYSTEM"),":"),n.xp6(2),n.hij(" ",t.publication.pubSystemName," ")}}function vF(i,s){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"date"),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.xi3(2,1,e.value,"dd/MM/yyyy")," ")}}function TF(i,s){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",e.value," ")}}function xF(i,s){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&i){const e=n.oxw(3).$implicit;n.xp6(1),n.hij(" ",e.value," ")}}function MF(i,s){if(1&i&&(n.TgZ(0,"span"),n.YNc(1,xF,2,1,"span",1),n.qZA()),2&i){const e=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngIf","Id / Origin"!==e.key&&"Create date"!==e.key&&"Created by"!==e.key)}}function SF(i,s){1&i&&(n.TgZ(0,"span"),n._uU(1," - "),n.qZA())}function EF(i,s){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,MF,2,1,"span",1),n.YNc(2,SF,2,0,"span",1),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngIf",null!==e.value&&""!==e.value),n.xp6(1),n.Q6J("ngIf",null===e.value||""===e.value)}}function DF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",26),n.NdJ("click",function(){n.CHM(e);const r=n.MAs(7);return n.KtG(r.open())}),n.TgZ(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"input",27)(5,"mat-datepicker-toggle",28),n.TgZ(6,"mat-datepicker",29,30),n.NdJ("yearSelected",function(r){n.CHM(e);const d=n.MAs(7),h=n.oxw(4);return n.KtG(h.chosenYearHandler(r,d))}),n.qZA()()}if(2&i){const e=n.MAs(7),t=n.oxw(4);n.xp6(2),n.Oqu(n.lcZ(3,5,"PUBLICATION_DETAIL.LIST.YEAR")),n.xp6(2),n.Q6J("max",t.maxYear)("matDatepicker",e)("formControl",t.yearControl),n.xp6(1),n.Q6J("for",e)}}function HF(i,s){if(1&i&&(n.TgZ(0,"mat-option",33),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.Q6J("value",e.name),n.xp6(1),n.hij(" ",e.name," ")}}function PF(i,s){if(1&i&&(n.TgZ(0,"mat-form-field")(1,"mat-select",31),n.YNc(2,HF,2,2,"mat-option",32),n.qZA()()),2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("formControl",e.categoryControl),n.xp6(1),n.Q6J("ngForOf",e.categories)}}function RF(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.LIST.RANK_ERROR")," "))}function kF(i,s){if(1&i&&(n.TgZ(0,"mat-form-field"),n._UZ(1,"input",34),n.YNc(2,RF,3,3,"mat-error",1),n.qZA()),2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("formControl",e.rankControl),n.xp6(1),n.Q6J("ngIf",e.rankControl.invalid)}}function LF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",18)(1,"input",35),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw(4);return n.KtG(d.publication.isbn=r)}),n.qZA()()}if(2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("ngModel",e.publication.isbn)}}function IF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",18)(1,"input",35),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw(4);return n.KtG(d.publication.doi=r)}),n.qZA()()}if(2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("ngModel",e.publication.doi)}}function OF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",18)(1,"textarea",36),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw(4);return n.KtG(d.publication.main=r)}),n.qZA()()}if(2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("ngModel",e.publication.main)}}function BF(i,s){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,DF,8,7,"mat-form-field",25),n.YNc(2,PF,3,2,"mat-form-field",1),n.YNc(3,kF,3,2,"mat-form-field",1),n.YNc(4,LF,2,1,"mat-form-field",6),n.YNc(5,IF,2,1,"mat-form-field",6),n.YNc(6,OF,2,1,"mat-form-field",6),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngIf","Year"===e.key),n.xp6(1),n.Q6J("ngIf","Category"===e.key),n.xp6(1),n.Q6J("ngIf","Rank"===e.key),n.xp6(1),n.Q6J("ngIf","ISBN / ISSN"===e.key),n.xp6(1),n.Q6J("ngIf","DOI"===e.key),n.xp6(1),n.Q6J("ngIf","Full cite"===e.key)}}function VF(i,s){if(1&i&&(n.TgZ(0,"td",23),n.YNc(1,AF,10,9,"span",1),n.YNc(2,vF,3,4,"span",1),n.YNc(3,TF,2,1,"span",1),n.YNc(4,EF,3,2,"div",1),n.YNc(5,BF,7,6,"div",1),n.qZA()),2&i){const e=s.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("ngIf","Id / Origin"===e.key),n.xp6(1),n.Q6J("ngIf","Create date"===e.key),n.xp6(1),n.Q6J("ngIf","Created by"===e.key),n.xp6(1),n.Q6J("ngIf",!t.editing),n.xp6(1),n.Q6J("ngIf",t.editing)}}function jF(i,s){1&i&&n._UZ(0,"tr",37)}function UF(i,s){if(1&i&&(n.TgZ(0,"div")(1,"div",3),n.YNc(2,fF,2,1,"h3",4),n.YNc(3,mF,4,3,"button",5),n.YNc(4,_F,3,2,"mat-form-field",6),n.YNc(5,bF,4,4,"button",7),n.qZA(),n.TgZ(6,"table",8),n.ynx(7,9),n.YNc(8,wF,1,0,"th",10),n.YNc(9,yF,2,1,"td",11),n.BQk(),n.ynx(10,12),n.YNc(11,CF,1,0,"th",10),n.YNc(12,VF,6,5,"td",13),n.BQk(),n.YNc(13,jF,1,0,"tr",14),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Q6J("ngIf",!e.editing),n.xp6(1),n.Q6J("ngIf",!e.editing&&!e.publication.locked&&!e.similarityCheck),n.xp6(1),n.Q6J("ngIf",e.editing),n.xp6(1),n.Q6J("ngIf",e.editing),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(7),n.Q6J("matRowDefColumns",e.displayedColumns)}}const _H=lf,NF={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let FF=(()=>{class i{constructor(e,t,r){this.cabinetService=e,this.notificator=t,this.translate=r,this.categories=[],this.similarityCheck=!1,this.edited=new n.vpe,this.loading=!1,this.dataSource=null,this.displayedColumns=["key","value"],this.map=[],this.editing=!1}ngOnInit(){this.loading=!0,this.keys=["Id / Origin","Year","Category","Rank","ISBN / ISSN","DOI","Full cite","Created by","Create date"],this.values=[this.publication.id.toString(),this.publication.year.toString(),this.publication.categoryName,this.publication.rank.toString(),this.publication.isbn,this.publication.doi,this.publication.main,this.publication.createdBy,this.publication.createdDate];for(let e=0;ed.name===this.categoryControl.value).id,t=this.yearControl.value.year();this.cabinetService.updatePublication({publication:{id:this.publication.id,beanName:this.publication.beanName,externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.titleControl.value,year:t,main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:e,rank:this.rankControl.value,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate}}).subscribe({next:()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(d=>{this.notificator.showSuccess(d),this.edited.emit(!0),this.loading=!1})},error:()=>this.loading=!1})}chosenYearHandler(e,t){const r=this.yearControl.value;r.year(e.year()),this.yearControl.setValue(r),t.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn),n.Y36(Ji),n.Y36(mn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publication-detail-list"]],inputs:{publication:"publication",categories:"categories",similarityCheck:"similarityCheck"},outputs:{edited:"edited"},features:[n._Bn([{provide:Un,useClass:u_,deps:[_o]},{provide:_i,useValue:NF}])],decls:3,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex"],["class","bigger-font w-75 mr-2",4,"ngIf"],["class","ml-auto","mat-icon-button","","matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["class","w-75",4,"ngIf"],["class","ml-auto","mat-icon-button","","matTooltipPosition","above",3,"disabled","matTooltip","click",4,"ngIf"],["mat-table","",1,"w-100","layout",3,"dataSource"],["matColumnDef","key"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"bigger-font","w-75","mr-2"],["mat-icon-button","","matTooltipPosition","above",1,"ml-auto",3,"matTooltip","click"],[1,"big-icon"],[1,"w-75"],["matInput","",1,"bigger-font","fix-height",3,"formControl"],["mat-icon-button","","matTooltipPosition","above",1,"ml-auto",3,"disabled","matTooltip","click"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],[1,"bold"],["class","mr-2",3,"click",4,"ngIf"],[1,"mr-2",3,"click"],["matInput","","readonly","",1,"disable",3,"max","matDatepicker","formControl"],["matSuffix","",3,"for"],["startView","multi-year",3,"yearSelected"],["sdp",""],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","",3,"formControl"],["matInput","",3,"ngModel","ngModelChange"],["matInput","",1,"fix-height",3,"ngModel","ngModelChange"],["mat-row",""]],template:function(e,t){1&e&&(n.TgZ(0,"div"),n.YNc(1,pF,1,0,"mat-spinner",0),n.YNc(2,UF,14,6,"div",1),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.sg,x.O5,Ot,Ln,Do,Bs,Vs,Os,Ho,js,Us,Po,Sn,es,ar,ta,_u,Ra,Gi,Wi,Uc,_r,CM,c_,AM,ks,Jc,Al,x.uU,it],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}.big-icon[_ngcontent-%COMP%]{font-size:40px}.fix-height[_ngcontent-%COMP%]{min-height:6ch}.layout[_ngcontent-%COMP%]{table-layout:fixed}"]}),i})();const YF=function(){return["select","id","name","organization","email"]};function qF(i,s){if(1&i&&n._UZ(0,"perun-web-apps-authors-list",13),2&i){const e=n.oxw(3);n.Q6J("authors",e.authors)("selection",e.selection)("disableRouting",!0)("tableId",e.tableIdAuthors)("displayedColumns",n.DdM(5,YF))}}function zF(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"DIALOGS.ADD_AUTHORS.SEARCH_INFO")," "))}function GF(i,s){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,qF,1,6,"perun-web-apps-authors-list",11),n.YNc(2,zF,3,3,"perun-web-apps-alert",12),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",e.firstSearchDone),n.xp6(1),n.Q6J("ngIf",!e.firstSearchDone)}}function WF(i,s){1&i&&n._UZ(0,"mat-spinner",15)}function $F(i,s){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,GF,3,2,"div",6),n.YNc(2,WF,1,0,"mat-spinner",7),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngIf",!e.searchLoading),n.xp6(1),n.Q6J("ngIf",e.searchLoading)}}function JF(i,s){1&i&&n._UZ(0,"mat-spinner",15)}let ZF=(()=>{class i{constructor(e,t,r,d,h){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetService=d,this.translate=h,this.searchControl=new Nn(""),this.loading=!1,this.searchLoading=!1,this.firstSearchDone=!1,this.authors=[],this.alreadyAddedAuthors=[],this.tableIdAuthors="67",this.selection=new Kn(!0,[]),h.get("DIALOGS.ADD_AUTHORS.SUCCESS_MESSAGE").subscribe(c=>this.successMessage=c),this.publicationId=t.publicationId,this.alreadyAddedAuthors=t.alreadyAddedAuthors}ngOnInit(){this.searchControl=new Nn("",[kn.required,kn.pattern(".*[\\S]+.*")])}onSearchByString(){!this.searchLoading&&""!==this.searchControl.value.trim()&&(this.searchLoading=!0,this.cabinetService.findNewAuthors(this.searchControl.value).subscribe({next:e=>{e=e.filter(t=>!this.alreadyAddedAuthors.map(r=>r.id).includes(t.id)),this.authors=e,this.firstSearchDone=!0,this.searchLoading=!1},error:()=>{this.searchLoading=!1}}))}onAdd(){if(this.loading=!0,this.selection.selected.length){const e=this.selection.selected.pop();this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publicationId,userId:e.id}}).subscribe({next:()=>{this.onAdd()},error:()=>this.loading=!1})}else this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(Ji),n.Y36(wn),n.Y36(mn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-authors-dialog"]],decls:24,vars:20,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"authors","selection","disableRouting","tableId","displayedColumns",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"authors","selection","disableRouting","tableId","displayedColumns"],["alert_type","info"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",2)(5,"mat-form-field",3)(6,"label")(7,"input",4),n.NdJ("keyup.enter",function(){return t.onSearchByString()}),n.ALo(8,"translate"),n.qZA()(),n.TgZ(9,"mat-error"),n._uU(10),n.ALo(11,"translate"),n.qZA()(),n.TgZ(12,"button",5),n.NdJ("click",function(){return t.onSearchByString()}),n.TgZ(13,"mat-icon"),n._uU(14,"search"),n.qZA()(),n.YNc(15,$F,3,2,"div",6),n.qZA(),n.YNc(16,JF,1,0,"mat-spinner",7),n.TgZ(17,"div",8)(18,"button",9),n.NdJ("click",function(){return t.onCancel()}),n._uU(19),n.ALo(20,"translate"),n.qZA(),n.TgZ(21,"button",10),n.NdJ("click",function(){return t.onAdd()}),n._uU(22),n.ALo(23,"translate"),n.qZA()()()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,10,"DIALOGS.ADD_AUTHORS.TITLE")),n.xp6(5),n.s9C("placeholder",n.lcZ(8,12,"DIALOGS.ADD_AUTHORS.SEARCH_PLACEHOLDER")),n.Q6J("formControl",t.searchControl),n.xp6(3),n.hij(" ",n.lcZ(11,14,"DIALOGS.ADD_AUTHORS.EMPTY_SEARCH_MESSAGE")," "),n.xp6(2),n.Q6J("disabled",t.searchLoading||""===t.searchControl.value.trim()),n.xp6(3),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(3),n.hij(" ",n.lcZ(20,16,"DIALOGS.ADD_AUTHORS.CANCEL")," "),n.xp6(2),n.Q6J("disabled",0===t.selection.selected.length||t.loading),n.xp6(1),n.hij(" ",n.lcZ(23,18,"DIALOGS.ADD_AUTHORS.ADD")," "))},dependencies:[x.O5,Ot,Ln,Oi,$i,Bi,Sn,es,ar,Ra,Gi,Wi,_r,na,PM,it],styles:[".top-margin[_ngcontent-%COMP%]{margin-top:15px}.adjust-width[_ngcontent-%COMP%]{width:300px}"]}),i})();function QF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",6),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onAddAuthors())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function KF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onRemoveAuthors())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("disabled",0===e.selection.selected.length||e.publication.locked),n.xp6(1),n.hij(" ",n.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function XF(i,s){1&i&&n._UZ(0,"mat-spinner",8)}const e3=function(){return["id","name","organization","email"]},t3=function(){return["select","id","name","organization","email"]};function n3(i,s){if(1&i&&n._UZ(0,"perun-web-apps-authors-list",9),2&i){const e=n.oxw();n.Q6J("authors",e.publication.authors)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)("disableRouting",e.disableRouting)("displayedColumns",e.publication.locked?n.DdM(6,e3):n.DdM(7,t3))}}let bH=(()=>{class i{constructor(e,t,r,d,h){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=d,this.storeService=h,this.selection=new Kn(!0,[]),this.disableRouting=!1,this.similarityCheck=!1,this.yourselfAsAnAuthor=new n.vpe,this.filterValue="",this.loading=!1,this.tableId="67"}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findAuthorsByPublicationId(this.publication.id).subscribe(e=>{this.yourselfAsAnAuthor.emit(e.some(t=>t.id===this.storeService.getPerunPrincipal().userId)),this.publication.authors=e,this.selection.clear(),this.loading=!1})}onAddAuthors(){const e=Jn();e.width="800px",e.data={publicationId:this.publication.id,alreadyAddedAuthors:this.publication.authors},this.dialog.open(ZF,e).afterClosed().subscribe(r=>{r&&(this.selection.clear(),this.refresh())})}onRemoveAuthors(){const e=Jn();e.width="800px",e.data={items:this.selection.selected.map(r=>`${r.titleBefore?r.titleBefore:""} ${r.firstName?r.firstName:""} ${r.lastName?r.lastName:""} ${r.titleAfter?r.titleAfter:""}`),title:"DIALOGS.REMOVE_AUTHORS.TITLE",description:"DIALOGS.REMOVE_AUTHORS.DESCRIPTION",theme:"user-theme",type:"remove",showAsk:!0},this.dialog.open(Ox,e).afterClosed().subscribe(r=>{r&&this.removeAuthors(this.selection.selected)})}removeAuthors(e){if(this.loading=!0,e.length){const t=e.pop();this.cabinetService.deleteAuthorship(this.publication.id,t.id).subscribe(()=>{this.removeAuthors(e)},()=>this.loading=!1)}else this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_AUTHORS.SUCCESS_MESSAGE")),this.selection.clear(),this.refresh()}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(oi),n.Y36(wn),n.Y36(Ji),n.Y36(mn),n.Y36(yi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-authors"]],inputs:{publication:"publication",selection:"selection",disableRouting:"disableRouting",similarityCheck:"similarityCheck"},outputs:{yourselfAsAnAuthor:"yourselfAsAnAuthor"},decls:6,vars:5,consts:[[1,"'user-theme'"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","selection","filterValue","tableId","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"authors","selection","filterValue","tableId","disableRouting","displayedColumns"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,QF,3,3,"button",1),n.YNc(2,KF,3,4,"button",2),n.TgZ(3,"perun-web-apps-immediate-filter",3),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.qZA(),n.YNc(4,XF,1,0,"mat-spinner",4),n.YNc(5,n3,1,8,"perun-web-apps-authors-list",5),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",!t.publication.locked),n.xp6(1),n.Q6J("ngIf",!t.publication.locked&&!t.similarityCheck),n.xp6(1),n.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Sn,h_,PM,it]}),i})();function r3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"th",17)(1,"mat-checkbox",18),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(r?d.masterToggle():null)}),n.ALo(2,"translate"),n.ALo(3,"masterCheckboxLabel"),n.qZA()()}if(2&i){const e=n.oxw().ngIf,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.lcZ(2,3,n.lcZ(3,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}const a3=function(i){return{name:i}};function s3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",19)(1,"mat-checkbox",20),n.NdJ("change",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.selection.toggle(h):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(7,a3,e.name)))("checked",t.selection.isSelected(e))}}function o3(i,s){1&i&&(n.ynx(0,14),n.YNc(1,r3,4,7,"th",15),n.YNc(2,s3,4,9,"td",16),n.BQk())}function l3(i,s){1&i&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function c3(i,s){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.id," ")}}function d3(i,s){1&i&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function u3(i,s){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.uIk("data-cy",e.name),n.xp6(1),n.Oqu(e.name)}}function h3(i,s){1&i&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function p3(i,s){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.contact)}}function f3(i,s){1&i&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function m3(i,s){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.type)}}function g3(i,s){1&i&&n._UZ(0,"tr",24)}function _3(i,s){1&i&&n._UZ(0,"tr",25)}function b3(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function w3(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}const y3=function(i){return{all:i}};let C3=(()=>{class i{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.owners=[],this.selection=new Kn(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=jl}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"contact":return e.contact;case"type":return e.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Eo(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>So(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new zl(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(dn),n.Y36($p))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[n.TTD],decls:21,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,o3,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,l3,3,3,"th",5),n.YNc(7,c3,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,d3,3,3,"th",5),n.YNc(10,u3,2,2,"td",8),n.BQk(),n.ynx(11,9),n.YNc(12,h3,3,3,"th",5),n.YNc(13,p3,2,1,"td",8),n.BQk(),n.ynx(14,10),n.YNc(15,f3,3,3,"th",5),n.YNc(16,m3,2,1,"td",8),n.BQk(),n.YNc(17,g3,1,0,"tr",11),n.YNc(18,_3,1,0,"tr",12),n.qZA()()(),n.YNc(19,b3,3,3,"perun-web-apps-alert",13),n.YNc(20,w3,3,3,"perun-web-apps-alert",13)),2&e&&(n.Q6J("hidden",0===t.owners.length||0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(13,y3,n.xi3(4,10,t.dataSource,t.selection.selected.length))),n.xp6(14),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",!t.owners.length),n.xp6(1),n.Q6J("ngIf",!t.dataSource.filteredData.length&&t.owners.length))},dependencies:[x.O5,ld,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,na,as,it,qC,d_,zC]}),i})();function A3(i,s){1&i&&n._UZ(0,"mat-spinner",4)}const v3=function(){return["select","id","name","contact"]};function T3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",5)(2,"perun-web-apps-immediate-filter",6),n.NdJ("filter",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.filterValue=r)}),n.qZA(),n._UZ(3,"perun-web-apps-owners-list",7),n.qZA(),n.TgZ(4,"div",8)(5,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(9),n.ALo(10,"translate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(2),n.Q6J("placeholder","DIALOGS.ADD_THANKS.FILTER"),n.xp6(1),n.Q6J("owners",e.owners)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",n.DdM(13,v3))("selection",e.selected),n.xp6(3),n.hij(" ",n.lcZ(7,9,"DIALOGS.ADD_THANKS.CANCEL")," "),n.xp6(2),n.Q6J("disabled",0===e.selected.selected.length||e.loading),n.xp6(1),n.hij(" ",n.lcZ(10,11,"DIALOGS.ADD_THANKS.ADD")," ")}}let x3=(()=>{class i{constructor(e,t,r,d,h,c,o){this.dialogRef=e,this.data=t,this.ownersManagerService=r,this.storeService=d,this.notificator=h,this.translate=c,this.cabinetManagerService=o,this.selected=new Kn(!0,[]),this.tableId="73"}ngOnInit(){this.loading=!0;const e=this.storeService.getProperty("allowed_owners_for_thanks");this.ownersManagerService.getAllOwners().subscribe(t=>{this.owners=0!==e.length?t.filter(r=>e.includes(String(r.id))):t,this.owners=this.owners.filter(r=>!this.data.thanks.map(d=>d.ownerId).includes(r.id)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,0===this.selected.selected.length?this.translate.get("DIALOGS.ADD_THANKS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)}):this.cabinetManagerService.createThanks({thanks:{publicationId:this.data.id,ownerId:this.selected.selected.pop().id,createdBy:this.storeService.getPerunPrincipal().actor,createdByUid:this.storeService.getPerunPrincipal().userId,createdDate:Date.now().toString(),id:0,beanName:"Thanks"}}).subscribe(()=>{this.onSubmit()},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(Bo),n.Y36(yi),n.Y36(Ji),n.Y36(mn),n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-thanks-dialog"]],decls:6,vars:5,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"owners","filterValue","tableId","displayedColumns","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,A3,1,0,"mat-spinner",2),n.YNc(5,T3,11,14,"div",3),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,3,"DIALOGS.ADD_THANKS.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Oi,$i,Bi,Sn,h_,C3,it]}),i})();function M3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"th",16)(1,"mat-checkbox",17),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(r?d.masterToggle():null)}),n.ALo(2,"translate"),n.ALo(3,"masterCheckboxLabel"),n.qZA()()}if(2&i){const e=n.oxw().ngIf,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.lcZ(2,3,n.lcZ(3,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}const S3=function(i){return{name:i}};function E3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",18)(1,"mat-checkbox",19),n.NdJ("change",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.selection.toggle(h):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(7,S3,e.ownerName)))("checked",t.selection.isSelected(e))}}function D3(i,s){1&i&&(n.ynx(0,13),n.YNc(1,M3,4,7,"th",14),n.YNc(2,E3,4,9,"td",15),n.BQk())}function H3(i,s){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"THANKS_LIST.ID")))}function P3(i,s){if(1&i&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.ownerId)}}function R3(i,s){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"THANKS_LIST.NAME")," "))}function k3(i,s){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.ownerName)}}function L3(i,s){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"THANKS_LIST.CREATED_BY")," "))}function I3(i,s){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.createdBy)}}function O3(i,s){1&i&&n._UZ(0,"tr",23)}function B3(i,s){1&i&&n._UZ(0,"tr",24)}function V3(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function j3(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"THANKS_LIST.NO_THANKS"),"\n"))}const U3=function(i){return{all:i}};let N3=(()=>{class i{constructor(e){this.tableCheckbox=e,this.thanks=[],this.filterValue="",this.displayedColumns=["select","id","name","createdBy"],this.pageSizeOptions=jl,this.selection=new Kn(!0,[])}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.ownerId.toString();case"name":return e.ownerName;default:return e[t]}}ngOnChanges(){this.dataSource=new zl(this.thanks),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Eo(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>So(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($p))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-thanks-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{thanks:"thanks",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions",selection:"selection"},features:[n.TTD],decls:18,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,D3,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,H3,3,3,"th",5),n.YNc(7,P3,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,R3,3,3,"th",5),n.YNc(10,k3,2,1,"td",8),n.BQk(),n.ynx(11,9),n.YNc(12,L3,3,3,"th",5),n.YNc(13,I3,2,1,"td",8),n.BQk(),n.YNc(14,O3,1,0,"tr",10),n.YNc(15,B3,1,0,"tr",11),n.qZA()()(),n.YNc(16,V3,3,3,"perun-web-apps-alert",12),n.YNc(17,j3,3,3,"perun-web-apps-alert",12)),2&e&&(n.Q6J("hidden",0===t.thanks.length||0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(13,U3,n.xi3(4,10,t.dataSource,t.selection.selected.length))),n.xp6(11),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0!==t.thanks.length&&0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("ngIf",0===t.thanks.length))},dependencies:[x.O5,ld,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,na,as,it,qC,d_,zC]}),i})();function F3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",6),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onAddThanks())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function Y3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onRemoveThanks())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("disabled",0===e.selection.selected.length),n.xp6(1),n.hij(" ",n.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function q3(i,s){1&i&&n._UZ(0,"mat-spinner",8)}const z3=function(){return["id","name","createdBy"]},G3=function(){return["select","id","name","createdBy"]};function W3(i,s){if(1&i&&n._UZ(0,"perun-web-apps-thanks-list",9),2&i){const e=n.oxw();n.Q6J("thanks",e.publication.thanks)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",e.publication.locked?n.DdM(5,z3):n.DdM(6,G3))("selection",e.selection)}}let wH=(()=>{class i{constructor(e,t,r,d){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=d,this.selection=new Kn(!0,[]),this.similarityCheck=!1,this.tableId="70",this.loading=!1,this.filterValue=""}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findPublicationById(this.publication.id).subscribe(e=>{this.publication=e,this.selection.clear(),this.loading=!1})}onAddThanks(){const e=Jn();e.width="800px",e.data=this.publication,this.dialog.open(x3,e).afterClosed().subscribe(r=>{r&&this.refresh()})}onRemoveThanks(){const e=Jn();e.width="450px",e.data={items:this.selection.selected.map(r=>r.ownerName),title:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_TITLE",description:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_DESCRIPTION",theme:"user-theme",type:"remove",showAsk:!0},this.dialog.open(Ox,e).afterClosed().subscribe(r=>{r&&(this.loading=!0,this.removeThank())})}removeThank(){0===this.selection.selected.length?this.translate.get("PUBLICATION_DETAIL.REMOVE_THANKS_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.refresh()}):this.cabinetService.deleteThanks(this.selection.selected.pop().id).subscribe(()=>{this.removeThank()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(oi),n.Y36(wn),n.Y36(Ji),n.Y36(mn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-thanks"]],inputs:{publication:"publication",selection:"selection",similarityCheck:"similarityCheck"},decls:6,vars:5,consts:[[1,"'user-theme'"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"thanks","filterValue","tableId","displayedColumns","selection",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"thanks","filterValue","tableId","displayedColumns","selection"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,F3,3,3,"button",1),n.YNc(2,Y3,3,4,"button",2),n.TgZ(3,"perun-web-apps-immediate-filter",3),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.qZA(),n.YNc(4,q3,1,0,"mat-spinner",4),n.YNc(5,W3,1,7,"perun-web-apps-thanks-list",5),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",!t.publication.locked&&!t.similarityCheck),n.xp6(1),n.Q6J("ngIf",!t.publication.locked&&!t.similarityCheck),n.xp6(1),n.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Sn,h_,N3,it]}),i})();function $3(i,s){1&i&&n._UZ(0,"mat-spinner",3)}function J3(i,s){1&i&&(n.TgZ(0,"h1",13)(1,"span")(2,"mat-icon",14),n._uU(3,"assignment_ind"),n.qZA(),n._uU(4),n.ALo(5,"translate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,"AUTHORS_PAGE.TITLE")," "))}function Z3(i,s){1&i&&(n.TgZ(0,"h1",13),n._UZ(1,"mat-icon",15),n.TgZ(2,"span",16),n._uU(3),n.ALo(4,"translate"),n.qZA()()),2&i&&(n.xp6(3),n.Oqu(n.lcZ(4,1,"ALL_PUBLICATIONS.TITLE")))}function Q3(i,s){1&i&&(n.TgZ(0,"h1",13)(1,"span")(2,"mat-icon",14),n._uU(3,"local_library"),n.qZA(),n._uU(4),n.ALo(5,"translate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,"MY_PUBLICATIONS.TITLE")," "))}function K3(i,s){if(1&i&&(n.TgZ(0,"h5",17),n._uU(1),n.ALo(2,"userFullName"),n.ALo(3,"translate"),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.AsE(" ",n.lcZ(2,2,e.mainAuthor),"",n.lcZ(3,4,"AUTHOR_DETAIL.TITLE")," ")}}function X3(i,s){1&i&&(n.TgZ(0,"span",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.LOCKED")," "))}function eY(i,s){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1," lock "),n.qZA())}function tY(i,s){1&i&&(n.TgZ(0,"span",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.UNLOCKED")," "))}function nY(i,s){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1," lock_open "),n.qZA())}function iY(i,s){1&i&&n._UZ(0,"mat-spinner",3)}function rY(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-publication-detail-list",19),n.NdJ("edited",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.refreshPublication())}),n.qZA()}if(2&i){const e=n.oxw(2);n.Q6J("publication",e.publication)("categories",e.categories)("similarityCheck",e.similarityCheck)}}function aY(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div"),n.YNc(1,J3,6,3,"h1",4),n.YNc(2,Z3,5,3,"h1",4),n.YNc(3,Q3,6,3,"h1",4),n.YNc(4,K3,4,6,"h5",5),n.TgZ(5,"h5"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"h6"),n._uU(9),n.ALo(10,"translate"),n.TgZ(11,"span",6),n.ALo(12,"translate"),n.TgZ(13,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeLock())}),n.YNc(14,X3,3,3,"span",8),n.YNc(15,eY,2,0,"mat-icon",2),n.YNc(16,tY,3,3,"span",8),n.YNc(17,nY,2,0,"mat-icon",2),n.qZA()()(),n.TgZ(18,"mat-card")(19,"mat-card-content"),n.YNc(20,iY,1,0,"mat-spinner",1),n.YNc(21,rY,1,3,"perun-web-apps-publication-detail-list",9),n.qZA()(),n.TgZ(22,"mat-card",10)(23,"mat-card-title"),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.TgZ(26,"mat-card-content"),n._UZ(27,"perun-web-apps-add-authors",11),n.qZA()(),n.TgZ(28,"mat-card",10)(29,"mat-card-title"),n._uU(30),n.ALo(31,"translate"),n.qZA(),n.TgZ(32,"mat-card-content"),n._UZ(33,"perun-web-apps-add-thanks",12),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngIf","authors"===e.mode),n.xp6(1),n.Q6J("ngIf","all"===e.mode),n.xp6(1),n.Q6J("ngIf","my"===e.mode),n.xp6(1),n.Q6J("ngIf",void 0!==e.mainAuthor),n.xp6(2),n.Oqu(n.lcZ(7,24,"PUBLICATION_DETAIL.TITLE")),n.xp6(3),n.hij(" ",n.lcZ(10,26,"PUBLICATION_DETAIL.LOCK_INFO")," "),n.xp6(2),n.s9C("matTooltip",n.lcZ(12,28,"PUBLICATION_DETAIL.LOCK_DISABLED_TOOLTIP")),n.Q6J("matTooltipDisabled",e.lockAuth),n.xp6(2),n.Q6J("disabled",!e.lockAuth),n.xp6(1),n.Q6J("ngIf",e.publication.locked),n.xp6(1),n.Q6J("ngIf",e.publication.locked),n.xp6(1),n.Q6J("ngIf",!e.publication.locked),n.xp6(1),n.Q6J("ngIf",!e.publication.locked),n.xp6(3),n.Q6J("ngIf",e.loading||e.pubLoading),n.xp6(1),n.Q6J("ngIf",!e.pubLoading&&!e.loading),n.xp6(3),n.hij(" ",n.lcZ(25,30,"PUBLICATION_DETAIL.AUTHORS")," "),n.xp6(3),n.Q6J("publication",e.publication)("selection",e.selectionAuthors)("disableRouting",e.disableRouting)("similarityCheck",e.similarityCheck),n.xp6(3),n.hij(" ",n.lcZ(31,32,"PUBLICATION_DETAIL.ACKNOWLEDGEMENT")," "),n.xp6(3),n.Q6J("publication",e.publication)("selection",e.selectionThanks)("similarityCheck",e.similarityCheck)}}let p_=(()=>{class i{constructor(e,t,r,d,h,c,o,a){this.route=e,this.cabinetService=t,this.matIconRegistry=r,this.domSanitizer=d,this.dialog=h,this.notificator=c,this.translate=o,this.authResolver=a,this.disableRouting=!1,this.similarityCheck=!1,this.loading=!1,this.pubLoading=!1,this.initLoading=!1,this.selectionAuthors=new Kn(!0,[]),this.selectionThanks=new Kn(!0,[]),this.lockAuth=!1,this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.initLoading=!0,this.disableRouting=this.disableRouting||!this.authResolver.isCabinetAdmin(),this.lockAuth=this.authResolver.isCabinetAdmin(),this.publicationId?(this.setMode(),this.loadAllData()):this.route.params.subscribe(e=>{this.publicationId=Number(e.publicationId),this.mainAuthorId=Number(e.authorId),this.setMode(),this.loadAllData()})}setMode(){const e=location.pathname;this.mode=e.includes("my")?"my":e.includes("all")?"all":e.includes("import")?"import":e.includes("create")?"create":"authors"}loadAllData(){this.loading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(e=>{this.publication=e,this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.loading=!1,this.initLoading=!1})})}refreshPublication(){this.pubLoading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(e=>{this.publication=e,this.pubLoading=!1})}changeLock(){this.pubLoading=!0,this.cabinetService.lockPublications({publications:[{id:this.publication.id,beanName:"Publication",externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.publication.title,year:this.publication.year,main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:this.publication.categoryId,rank:this.publication.rank,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate}],lock:!this.publication.locked}).subscribe(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.refreshPublication()})})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Li),n.Y36(wn),n.Y36(xo),n.Y36(On),n.Y36(oi),n.Y36(Ji),n.Y36(mn),n.Y36(dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publication-detail"]],inputs:{publicationId:"publicationId",disableRouting:"disableRouting",similarityCheck:"similarityCheck"},decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["class","page-subtitle d-flex",4,"ngIf"],["class","mb-2",4,"ngIf"],["matTooltipPosition","below",3,"matTooltip","matTooltipDisabled"],["mat-stroked-button","",1,"ml-2",3,"disabled","click"],["class","font-weight-bold",4,"ngIf"],[3,"publication","categories","similarityCheck","edited",4,"ngIf"],[1,"mt-4"],[3,"publication","selection","disableRouting","similarityCheck"],[3,"publication","selection","similarityCheck"],[1,"page-subtitle","d-flex"],[1,"title-icon","align-icon","mr-3"],["svgIcon","publications",1,"icon-size"],[1,"ml-3","mt-1"],[1,"mb-2"],[1,"font-weight-bold"],[3,"publication","categories","similarityCheck","edited"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,$3,1,0,"mat-spinner",1),n.YNc(2,aY,34,34,"div",2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",t.initLoading),n.xp6(1),n.Q6J("ngIf",!t.initLoading))},dependencies:[x.O5,l1,s1,o1,Ot,Ln,Sn,ks,FF,bH,wH,it,HM],styles:[".icon-size[_ngcontent-%COMP%]{width:32px;height:32px}.align-icon[_ngcontent-%COMP%]{vertical-align:text-top}"]}),i})(),RM=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Vl,x.ez]}),i})();function kM(i,s,e){for(let t in s)if(s.hasOwnProperty(t)){const r=s[t];r?i.setProperty(t,r,e?.has(t)?"important":""):i.removeProperty(t)}return i}function cf(i,s){const e=s?"":"none";kM(i.style,{"touch-action":s?"":"none","-webkit-user-drag":s?"":"none","-webkit-tap-highlight-color":s?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function yH(i,s,e){kM(i.style,{position:s?"":"fixed",top:s?"":"0",opacity:s?"":"0",left:s?"":"-999em"},e)}function GC(i,s){return s&&"none"!=s?i+" "+s:i}function CH(i){const s=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*s}function LM(i,s){return i.getPropertyValue(s).split(",").map(t=>t.trim())}function IM(i){const s=i.getBoundingClientRect();return{top:s.top,right:s.right,bottom:s.bottom,left:s.left,width:s.width,height:s.height,x:s.x,y:s.y}}function OM(i,s,e){const{top:t,bottom:r,left:d,right:h}=i;return e>=t&&e<=r&&s>=d&&s<=h}function f_(i,s,e){i.top+=s,i.bottom=i.top+i.height,i.left+=e,i.right=i.left+i.width}function AH(i,s,e,t){const{top:r,right:d,bottom:h,left:c,width:o,height:a}=i,l=o*s,u=a*s;return t>r-u&&tc-l&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:IM(e)})})}handleScroll(s){const e=ya(s),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let d,h;if(e===this._document){const a=this.getViewportScrollPosition();d=a.top,h=a.left}else d=e.scrollTop,h=e.scrollLeft;const c=r.top-d,o=r.left-h;return this.positions.forEach((a,l)=>{a.clientRect&&e!==l&&e.contains(l)&&f_(a.clientRect,c,o)}),r.top=d,r.left=h,{top:c,left:o}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function TH(i){const s=i.cloneNode(!0),e=s.querySelectorAll("[id]"),t=i.nodeName.toLowerCase();s.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const o=this._getTargetHandle(c);o&&!this._disabledHandles.has(o)&&!this.disabled&&this._initializeDragSequence(o,c)}else this.disabled||this._initializeDragSequence(this._rootElement,c)},this._pointerMove=c=>{const o=this._getPointerPositionOnPage(c);if(!this._hasStartedDragging){if(Math.abs(o.x-this._pickupPositionOnPage.x)+Math.abs(o.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const m=Date.now()>=this._dragStartTime+this._getDragStartDelay(c),g=this._dropContainer;if(!m)return void this._endDragSequence(c);(!g||!g.isDragging()&&!g.isReceiving())&&(c.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(c)))}return}c.preventDefault();const a=this._getConstrainedPointerPosition(o);if(this._hasMoved=!0,this._lastKnownPointerPosition=o,this._updatePointerDirectionDelta(a),this._dropContainer)this._updateActiveDropContainer(a,o);else{const l=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=a.x-l.x+this._passiveTransform.x,u.y=a.y-l.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:a,event:c,distance:this._getDragDistance(a),delta:this._pointerDirectionDelta})})},this._pointerUp=c=>{this._endDragSequence(c)},this._nativeDragStart=c=>{if(this._handles.length){const o=this._getTargetHandle(c);o&&!this._disabledHandles.has(o)&&!this.disabled&&c.preventDefault()}else this.disabled||c.preventDefault()},this.withRootElement(s).withParent(e.parentDragRef||null),this._parentPositions=new vH(t),h.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(s){const e=Oe(s);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>cf(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(s){this._handles=s.map(t=>ai(t)),this._handles.forEach(t=>cf(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(s){return this._previewTemplate=s,this}withPlaceholderTemplate(s){return this._placeholderTemplate=s,this}withRootElement(s){const e=ai(s);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,WC),e.addEventListener("touchstart",this._pointerDown,EH),e.addEventListener("dragstart",this._nativeDragStart,WC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(s){return this._boundaryElement=s?ai(s):null,this._resizeSubscription.unsubscribe(),s&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(s){return this._parentDragRef=s,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(s){!this._disabledHandles.has(s)&&this._handles.indexOf(s)>-1&&(this._disabledHandles.add(s),cf(s,!0))}enableHandle(s){this._disabledHandles.has(s)&&(this._disabledHandles.delete(s),cf(s,this.disabled))}withDirection(s){return this._direction=s,this}_withDropContainer(s){this._dropContainer=s}getFreeDragPosition(){const s=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:s.x,y:s.y}}setFreeDragPosition(s){return this._activeTransform={x:0,y:0},this._passiveTransform.x=s.x,this._passiveTransform.y=s.y,this._dropContainer||this._applyRootElementTransform(s.x,s.y),this}withPreviewContainer(s){return this._previewContainer=s,this}_sortFromLastPointerPosition(){const s=this._lastKnownPointerPosition;s&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(s),s)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(s){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:s}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(s),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(s);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:s})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(s){m_(s)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,d=this._placeholder=this._createPlaceholderElement(),h=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();r.insertBefore(h,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),yH(t,!1,BM),this._document.body.appendChild(r.replaceChild(d,t)),this._getPreviewInsertionPoint(r,c).appendChild(this._preview),this.started.next({source:this,event:s}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:s}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(s,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=m_(e),d=!r&&0!==e.button,h=this._rootElement,c=ya(e),o=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),a=r?Ss(e):Qf(e);if(c&&c.draggable&&"mousedown"===e.type&&e.preventDefault(),t||d||o||a)return;if(this._handles.length){const p=h.style;this._rootElementTapHighlight=p.webkitTapHighlightColor||"",p.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(p=>this._updateOnScroll(p)),this._boundaryElement&&(this._boundaryRect=IM(this._boundaryElement));const l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,s,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(s){yH(this._rootElement,!0,BM),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(s),d=this._getDragDistance(r),h=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:d,dropPoint:r,event:s}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:h,distance:d,dropPoint:r,event:s}),e.drop(this,t,this._initialIndex,this._initialContainer,h,d,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:s,y:e},{x:t,y:r}){let d=this._initialContainer._getSiblingContainerFromPosition(this,s,e);!d&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(s,e)&&(d=this._initialContainer),d&&d!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=d,this._dropContainer.enter(this,s,e,d===this._initialContainer&&d.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:d,currentIndex:d.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,s,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(s,e):this._applyPreviewTransform(s-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const s=this._previewTemplate,e=this.previewClass,t=s?s.template:null;let r;if(t&&s){const d=s.matchSize?this._initialClientRect:null,h=s.viewContainer.createEmbeddedView(t,s.context);h.detectChanges(),r=HH(h,this._document),this._previewRef=h,s.matchSize?PH(r,d):r.style.transform=$C(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=TH(this._rootElement),PH(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return kM(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},BM),cf(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(d=>r.classList.add(d)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const s=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(s.left,s.top);const e=function oY(i){const s=getComputedStyle(i),e=LM(s,"transition-property"),t=e.find(c=>"transform"===c||"all"===c);if(!t)return 0;const r=e.indexOf(t),d=LM(s,"transition-duration"),h=LM(s,"transition-delay");return CH(d[r])+CH(h[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=h=>{(!h||ya(h)===this._preview&&"transform"===h.propertyName)&&(this._preview?.removeEventListener("transitionend",r),t(),clearTimeout(d))},d=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const s=this._placeholderTemplate,e=s?s.template:null;let t;return e?(this._placeholderRef=s.viewContainer.createEmbeddedView(e,s.context),this._placeholderRef.detectChanges(),t=HH(this._placeholderRef,this._document)):t=TH(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(s,e,t){const r=e===this._rootElement?null:e,d=r?r.getBoundingClientRect():s,h=m_(t)?t.targetTouches[0]:t,c=this._getViewportScrollPosition();return{x:d.left-s.left+(h.pageX-d.left-c.left),y:d.top-s.top+(h.pageY-d.top-c.top)}}_getPointerPositionOnPage(s){const e=this._getViewportScrollPosition(),t=m_(s)?s.touches[0]||s.changedTouches[0]||{pageX:0,pageY:0}:s,r=t.pageX-e.left,d=t.pageY-e.top;if(this._ownerSVGElement){const h=this._ownerSVGElement.getScreenCTM();if(h){const c=this._ownerSVGElement.createSVGPoint();return c.x=r,c.y=d,c.matrixTransform(h.inverse())}}return{x:r,y:d}}_getConstrainedPointerPosition(s){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(s,this,this._initialClientRect,this._pickupPositionInElement):s;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:d,y:h}=this._pickupPositionInElement,c=this._boundaryRect,{width:o,height:a}=this._getPreviewRect(),l=c.top+h,u=c.bottom-(a-h);t=DH(t,c.left+d,c.right-(o-d)),r=DH(r,l,u)}return{x:t,y:r}}_updatePointerDirectionDelta(s){const{x:e,y:t}=s,r=this._pointerDirectionDelta,d=this._pointerPositionAtLastDirectionChange,h=Math.abs(e-d.x),c=Math.abs(t-d.y);return h>this._config.pointerDirectionChangeThreshold&&(r.x=e>d.x?1:-1,d.x=e),c>this._config.pointerDirectionChangeThreshold&&(r.y=t>d.y?1:-1,d.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const s=this._handles.length>0||!this.isDragging();s!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=s,cf(this._rootElement,s))}_removeRootElementListeners(s){s.removeEventListener("mousedown",this._pointerDown,WC),s.removeEventListener("touchstart",this._pointerDown,EH),s.removeEventListener("dragstart",this._nativeDragStart,WC)}_applyRootElementTransform(s,e){const t=$C(s,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=GC(t,this._initialTransform)}_applyPreviewTransform(s,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,r=$C(s,e);this._preview.style.transform=GC(r,t)}_getDragDistance(s){const e=this._pickupPositionOnPage;return e?{x:s.x-e.x,y:s.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:s,y:e}=this._passiveTransform;if(0===s&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const d=r.left-t.left,h=t.right-r.right,c=r.top-t.top,o=t.bottom-r.bottom;r.width>t.width?(d>0&&(s+=d),h>0&&(s-=h)):s=0,r.height>t.height?(c>0&&(e+=c),o>0&&(e-=o)):e=0,(s!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:s})}_getDragStartDelay(s){const e=this.dragStartDelay;return"number"==typeof e?e:m_(s)?e.touch:e?e.mouse:0}_updateOnScroll(s){const e=this._parentPositions.handleScroll(s);if(e){const t=ya(s);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&f_(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Bh(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(s,e){const t=this._previewContainer||"global";if("parent"===t)return s;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return ai(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(s){return this._handles.find(e=>s.target&&(s.target===e||e.contains(s.target)))}}function $C(i,s){return`translate3d(${Math.round(i)}px, ${Math.round(s)}px, 0)`}function DH(i,s,e){return Math.max(s,Math.min(e,i))}function m_(i){return"t"===i.type[0]}function HH(i,s){const e=i.rootNodes;if(1===e.length&&e[0].nodeType===s.ELEMENT_NODE)return e[0];const t=s.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function PH(i,s){i.style.width=`${s.width}px`,i.style.height=`${s.height}px`,i.style.transform=$C(s.left,s.top)}function g_(i,s){return Math.max(0,Math.min(s,i))}class hY{constructor(s,e){this._element=s,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(s){this.withItems(s)}sort(s,e,t,r){const d=this._itemPositions,h=this._getItemIndexFromPointerPosition(s,e,t,r);if(-1===h&&d.length>0)return null;const c="horizontal"===this.orientation,o=d.findIndex(y=>y.drag===s),a=d[h],u=a.clientRect,p=o>h?1:-1,m=this._getItemOffsetPx(d[o].clientRect,u,p),g=this._getSiblingOffsetPx(o,d,p),f=d.slice();return function uY(i,s,e){const t=g_(s,i.length-1),r=g_(e,i.length-1);if(t===r)return;const d=i[t],h=r{if(f[j]===y)return;const le=y.drag===s,Be=le?m:g,Mt=le?s.getPlaceholderElement():y.drag.getRootElement();y.offset+=Be,c?(Mt.style.transform=GC(`translate3d(${Math.round(y.offset)}px, 0, 0)`,y.initialTransform),f_(y.clientRect,0,Be)):(Mt.style.transform=GC(`translate3d(0, ${Math.round(y.offset)}px, 0)`,y.initialTransform),f_(y.clientRect,Be,0))}),this._previousSwap.overlaps=OM(u,e,t),this._previousSwap.drag=a.drag,this._previousSwap.delta=c?r.x:r.y,{previousIndex:o,currentIndex:h}}enter(s,e,t,r){const d=null==r||r<0?this._getItemIndexFromPointerPosition(s,e,t):r,h=this._activeDraggables,c=h.indexOf(s),o=s.getPlaceholderElement();let a=h[d];if(a===s&&(a=h[d+1]),!a&&(null==d||-1===d||d-1&&h.splice(c,1),a&&!this._dragDropRegistry.isDragging(a)){const l=a.getRootElement();l.parentElement.insertBefore(o,l),h.splice(d,0,s)}else ai(this._element).appendChild(o),h.push(s);o.style.transform="",this._cacheItemPositions()}withItems(s){this._activeDraggables=s.slice(),this._cacheItemPositions()}withSortPredicate(s){this._sortPredicate=s}reset(){this._activeDraggables.forEach(s=>{const e=s.getRootElement();if(e){const t=this._itemPositions.find(r=>r.drag===s)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(s){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===s)}updateOnScroll(s,e){this._itemPositions.forEach(({clientRect:t})=>{f_(t,s,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const s="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:IM(t)}}).sort((e,t)=>s?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(s,e,t){const r="horizontal"===this.orientation;let d=r?e.left-s.left:e.top-s.top;return-1===t&&(d+=r?e.width-s.width:e.height-s.height),d}_getSiblingOffsetPx(s,e,t){const r="horizontal"===this.orientation,d=e[s].clientRect,h=e[s+-1*t];let c=d[r?"width":"height"]*t;if(h){const o=r?"left":"top",a=r?"right":"bottom";-1===t?c-=h.clientRect[o]-d[a]:c+=d[o]-h.clientRect[a]}return c}_shouldEnterAsFirstChild(s,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const h=t[t.length-1].clientRect;return r?s>=h.right:e>=h.bottom}{const h=t[0].clientRect;return r?s<=h.left:e<=h.top}}_getItemIndexFromPointerPosition(s,e,t,r){const d="horizontal"===this.orientation,h=this._itemPositions.findIndex(({drag:c,clientRect:o})=>{if(c===s)return!1;if(r){const a=d?r.x:r.y;if(c===this._previousSwap.drag&&this._previousSwap.overlaps&&a===this._previousSwap.delta)return!1}return d?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Se.x,this.entered=new Se.x,this.exited=new Se.x,this.dropped=new Se.x,this.sorted=new Se.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Rt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Se.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function sY(i=0,s=ou.z){return i<0&&(i=0),(0,wm.H)(i,i,s)}(0,mm).pipe(Ke(this._stopScrollTimers)).subscribe(()=>{const h=this._scrollNode,c=this.autoScrollStep;1===this._verticalScrollDirection?h.scrollBy(0,-c):2===this._verticalScrollDirection&&h.scrollBy(0,c),1===this._horizontalScrollDirection?h.scrollBy(-c,0):2===this._horizontalScrollDirection&&h.scrollBy(c,0)})},this.element=ai(s),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new vH(t),this._sortStrategy=new hY(this.element,e),this._sortStrategy.withSortPredicate((h,c)=>this.sortPredicate(h,c,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(s,e,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(s)),this._sortStrategy.enter(s,e,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:s,container:this,currentIndex:this.getItemIndex(s)})}exit(s){this._reset(),this.exited.next({item:s,container:this})}drop(s,e,t,r,d,h,c,o={}){this._reset(),this.dropped.next({item:s,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:d,distance:h,dropPoint:c,event:o})}withItems(s){const e=this._draggables;return this._draggables=s,s.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===s.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(s){return this._sortStrategy.direction=s,this}connectedTo(s){return this._siblings=s.slice(),this}withOrientation(s){return this._sortStrategy.orientation=s,this}withScrollableParents(s){const e=ai(this.element);return this._scrollableElements=-1===s.indexOf(e)?[e,...s]:s.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(s){return this._isDragging?this._sortStrategy.getItemIndex(s):this._draggables.indexOf(s)}isReceiving(){return this._activeSiblings.size>0}_sortItem(s,e,t,r){if(this.sortingDisabled||!this._clientRect||!AH(this._clientRect,.05,e,t))return;const d=this._sortStrategy.sort(s,e,t,r);d&&this.sorted.next({previousIndex:d.previousIndex,currentIndex:d.currentIndex,container:this,item:s})}_startScrollingIfNecessary(s,e){if(this.autoScrollDisabled)return;let t,r=0,d=0;if(this._parentPositions.positions.forEach((h,c)=>{c===this._document||!h.clientRect||t||AH(h.clientRect,.05,s,e)&&([r,d]=function fY(i,s,e,t){const r=LH(s,t),d=IH(s,e);let h=0,c=0;if(r){const o=i.scrollTop;1===r?o>0&&(h=1):i.scrollHeight-o>i.clientHeight&&(h=2)}if(d){const o=i.scrollLeft;1===d?o>0&&(c=1):i.scrollWidth-o>i.clientWidth&&(c=2)}return[h,c]}(c,h.clientRect,s,e),(r||d)&&(t=c))}),!r&&!d){const{width:h,height:c}=this._viewportRuler.getViewportSize(),o={width:h,height:c,top:0,right:h,bottom:c,left:0};r=LH(o,e),d=IH(o,s),t=window}t&&(r!==this._verticalScrollDirection||d!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=d,this._scrollNode=t,(r||d)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const s=ai(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=s.msScrollSnapType||s.scrollSnapType||"",s.scrollSnapType=s.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const s=ai(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(s).clientRect}_reset(){this._isDragging=!1;const s=ai(this.element).style;s.scrollSnapType=s.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(s,e){return null!=this._clientRect&&OM(this._clientRect,s,e)}_getSiblingContainerFromPosition(s,e,t){return this._siblings.find(r=>r._canReceive(s,e,t))}_canReceive(s,e,t){if(!this._clientRect||!OM(this._clientRect,e,t)||!this.enterPredicate(s,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const d=ai(this.element);return r===d||d.contains(r)}_startReceiving(s,e){const t=this._activeSiblings;!t.has(s)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(s),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(s){this._activeSiblings.delete(s),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(s=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(s);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const s=Bh(ai(this.element));this._cachedShadowRoot=s||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const s=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,s))}}function LH(i,s){const{top:e,bottom:t,height:r}=i,d=.05*r;return s>=e-d&&s<=e+d?1:s>=t-d&&s<=t+d?2:0}function IH(i,s){const{left:e,right:t,width:r}=i,d=.05*r;return s>=e-d&&s<=e+d?1:s>=t-d&&s<=t+d?2:0}const JC=Ja({passive:!1,capture:!0});let mY=(()=>{class i{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Se.x,this.pointerUp=new Se.x,this.scroll=new Se.x,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,JC)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,JC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=t.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:d=>this.pointerUp.next(d),options:!0}).set("scroll",{handler:d=>this.scroll.next(d),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:JC}),r||this._globalListeners.set("mousemove",{handler:d=>this.pointerMove.next(d),options:JC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((d,h)=>{this._document.addEventListener(h,d.handler,d.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new ln.y(r=>this._ngZone.runOutsideAngular(()=>{const h=c=>{this._activeDragInstances.length&&r.next(c)};return e.addEventListener("scroll",h,!0),()=>{e.removeEventListener("scroll",h,!0)}}))),(0,Mn.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b),n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const gY={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let _Y=(()=>{class i{constructor(e,t,r,d){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=d}createDrag(e,t=gY){return new dY(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new pY(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0),n.LFG(n.R0b),n.LFG(va),n.LFG(mY))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),bY=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[_Y],imports:[Ds]}),i})(),vY=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),PY=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[vY,ht,ht]}),i})(),qY=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Kr,ht,ht]}),i})();new n.OlP("mat-selectsearch-default-options");let JY=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[x.ez,zc,bi,VC,Vl,dC,Ls]]}),i})(),ZY=(()=>{class i extends Qh{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const QY={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let jH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Un,useClass:ZY},{provide:_i,useValue:QY}],imports:[x.ez,VC,yC,Tg,MM,bY,Gs,Lh,TM,Lu,dC,RM,Vl,Ug,bi,Ls,Hl,zc,cC,Kr,iD,F2,PY,vM,qY,hm,ku,JY,nr,Zg,J0,uH,UL]}),i})();n.B6R(uD,[x.O5,na,Ot,Gv,Zv,Jv,Oi,Bi,hD],[it,rD]),new Date(324721404e5).valueOf();let y6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,bi,Vl,Lh,jH,Gs,Hl,zc,cC,RM]}),i})(),C6=(()=>{class i{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ou),n.Y36($n))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"button",4),n.NdJ("click",function(){return t.startAuth()}),n._uU(7),n.ALo(8,"translate"),n.TgZ(9,"mat-icon"),n._uU(10," login "),n.qZA()()()()()),2&e&&(n.xp6(4),n.hij(" ",n.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),n.xp6(3),n.hij(" ",n.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Ot,Ln,it],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),i})();function A6(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",8),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let v6=(()=>{class i{constructor(e,t,r){this.authzService=e,this.auth=t,this.router=r,this.usernameCtrl=new Nn(null,[kn.required]),this.passwordCtrl=new Nn(null,[kn.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Va),n.Y36(Ou),n.Y36($n))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl","keyup.enter"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,A6,3,3,"perun-web-apps-alert",3),n.TgZ(7,"mat-form-field",4)(8,"mat-label"),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"input",5),n.NdJ("keyup.enter",function(){return t.startAuth()}),n.qZA(),n.TgZ(12,"mat-error"),n._uU(13),n.ALo(14,"translate"),n.qZA()(),n.TgZ(15,"mat-form-field",4)(16,"mat-label"),n._uU(17),n.ALo(18,"translate"),n.qZA(),n.TgZ(19,"input",6),n.NdJ("keyup.enter",function(){return t.startAuth()}),n.qZA(),n.TgZ(20,"mat-error"),n._uU(21),n.ALo(22,"translate"),n.qZA()(),n.TgZ(23,"button",7),n.NdJ("click",function(){return t.startAuth()}),n._uU(24),n.ALo(25,"translate"),n.TgZ(26,"mat-icon"),n._uU(27," login "),n.qZA()()()()()),2&e&&(n.xp6(4),n.Oqu(n.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),n.xp6(2),n.Q6J("ngIf",t.wrongUsernameOrPassword),n.xp6(3),n.Oqu(n.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),n.xp6(2),n.Q6J("formControl",t.usernameCtrl),n.xp6(2),n.hij(" ",n.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),n.xp6(4),n.Oqu(n.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),n.xp6(2),n.Q6J("formControl",t.passwordCtrl)("type","password"),n.xp6(2),n.hij(" ",n.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),n.xp6(2),n.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),n.xp6(1),n.hij(" ",n.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[x.O5,Ot,Ln,es,ar,ta,Gi,Wi,ns,_r,Ra,na,it],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),i})(),T6=(()=>{class i{transform(e){return e.length>50?e.substring(0,50)+"...":e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"publicationTabLabel",type:i,pure:!0}),i})();const x6=["stepper"];function M6(i,s){1&i&&n._UZ(0,"mat-spinner",5)}function S6(i,s){1&i&&(n._uU(0),n.ALo(1,"translate")),2&i&&n.Oqu(n.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.PUBLICATION"))}function E6(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function D6(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function H6(i,s){if(1&i&&(n.TgZ(0,"mat-option",36),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.name," ")}}function P6(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function R6(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function k6(i,s){1&i&&(n._uU(0),n.ALo(1,"translate")),2&i&&n.hij(" ",n.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK")," ")}function L6(i,s){1&i&&(n.TgZ(0,"div",29),n._UZ(1,"mat-spinner",5),n.TgZ(2,"h5",37),n._uU(3),n.ALo(4,"translate"),n.qZA()()),2&i&&(n.xp6(3),n.hij(" ",n.lcZ(4,1,"CREATE_SINGLE_PUBLICATION.CHECK_PERFORM")," "))}function I6(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",38)(1,"div",29)(2,"span",39),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"span",40)(7,"mat-icon",41),n._uU(8,"fiber_manual_record"),n.qZA(),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"span",42)(12,"mat-icon",41),n._uU(13,"fiber_manual_record"),n.qZA(),n._uU(14),n.ALo(15,"translate"),n.qZA()()()),2&i&&(n.xp6(3),n.AsE(" ",n.lcZ(4,4,"CREATE_SINGLE_PUBLICATION.SIMILAR_FOUND"),". ",n.lcZ(5,6,"CREATE_SINGLE_PUBLICATION.CHECK_BELOW"),". "),n.xp6(6),n.hij(" ",n.lcZ(10,8,"CREATE_SINGLE_PUBLICATION.IS_BELOW")," "),n.xp6(5),n.hij(" ",n.lcZ(15,10,"CREATE_SINGLE_PUBLICATION.NOT_BELOW")," "))}function O6(i,s){1&i&&(n._uU(0),n.ALo(1,"translate")),2&i&&n.Oqu(n.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK"))}function B6(i,s){1&i&&n._UZ(0,"mat-spinner",5)}const V6=function(){return["id","lock","title","reportedBy","year","category","thankedTo","cite"]};function j6(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-publications-list",48),n.NdJ("publicationSelector",function(r){n.CHM(e),n.oxw(2);const d=n.MAs(1),h=n.oxw(2);return n.KtG(h.loadPublicationDetail(r,d))}),n.qZA()}if(2&i){const e=n.oxw(4);n.Q6J("displayedColumns",n.DdM(4,V6))("disabledRouting",!0)("openInTab",!0)("publications",e.filteredPublications)}}function U6(i,s){if(1&i&&(n.TgZ(0,"div",46),n.YNc(1,B6,1,0,"mat-spinner",3),n.YNc(2,j6,1,5,"perun-web-apps-publications-list",47),n.qZA()),2&i){const e=n.oxw(3);n.xp6(1),n.Q6J("ngIf",e.innerLoading),n.xp6(1),n.Q6J("ngIf",!e.innerLoading)}}function N6(i,s){if(1&i&&(n._uU(0),n.ALo(1,"publicationTabLabel")),2&i){const e=n.oxw(4);n.hij(" ",n.lcZ(1,1,e.selectedPubTitle)," ")}}function F6(i,s){if(1&i&&(n.TgZ(0,"div",49),n._UZ(1,"perun-web-apps-publication-detail",50),n.qZA()),2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("publicationId",e.selectedPubId)("disableRouting",!0)("similarityCheck",!0)}}function Y6(i,s){1&i&&(n.TgZ(0,"mat-tab"),n.YNc(1,N6,2,3,"ng-template",44),n.YNc(2,F6,2,3,"ng-template",45),n.qZA())}function q6(i,s){if(1&i&&(n.TgZ(0,"mat-tab-group",null,43)(2,"mat-tab"),n.YNc(3,O6,2,3,"ng-template",44),n.YNc(4,U6,3,2,"ng-template",45),n.qZA(),n.YNc(5,Y6,3,0,"mat-tab",15),n.qZA()),2&i){const e=n.oxw(2);n.xp6(5),n.Q6J("ngIf",null!==e.selectedPubId)}}function z6(i,s){1&i&&(n.TgZ(0,"div",29)(1,"mat-icon",51),n._uU(2,"check_circle"),n.qZA(),n.TgZ(3,"h5",52),n._uU(4),n.ALo(5,"translate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,"CREATE_SINGLE_PUBLICATION.NO_SIMILAR")," "))}function G6(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",26)(1,"button",53),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.redirect(["create-publication"]))}),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"button",54),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"button",55),n._uU(8),n.ALo(9,"translate"),n.qZA()()}2&i&&(n.xp6(2),n.hij(" ",n.lcZ(3,3,"CREATE_SINGLE_PUBLICATION.CANCEL")," "),n.xp6(3),n.hij(" ",n.lcZ(6,5,"CREATE_SINGLE_PUBLICATION.PREV")," "),n.xp6(3),n.hij(" ",n.lcZ(9,7,"CREATE_SINGLE_PUBLICATION.CREATE")," "))}function W6(i,s){1&i&&(n._uU(0),n.ALo(1,"translate")),2&i&&n.hij(" ",n.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.AUTHORS")," ")}function $6(i,s){1&i&&n._UZ(0,"mat-spinner",5)}function J6(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-add-authors",58),n.NdJ("yourselfAsAnAuthor",function(r){n.CHM(e);const d=n.oxw(3);return n.KtG(d.yourselfAsAnAuthor=r)}),n.qZA()}if(2&i){const e=n.oxw(3);n.Q6J("publication",e.publication)("selection",e.authorsSelection)("disableRouting",!0)}}function Z6(i,s){if(1&i&&(n.TgZ(0,"div")(1,"perun-web-apps-alert",56),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,J6,1,3,"perun-web-apps-add-authors",57),n.qZA()),2&i){const e=n.oxw(2);n.xp6(2),n.Oqu(n.lcZ(3,2,"CREATE_SINGLE_PUBLICATION.PUB_CREATED")),n.xp6(2),n.Q6J("ngIf",null!==e.publication)}}function Q6(i,s){1&i&&(n.TgZ(0,"div",26)(1,"button",59),n._uU(2),n.ALo(3,"translate"),n.qZA()()),2&i&&(n.xp6(2),n.hij(" ",n.lcZ(3,1,"CREATE_SINGLE_PUBLICATION.NEXT")," "))}function K6(i,s){1&i&&(n._uU(0),n.ALo(1,"translate")),2&i&&n.hij(" ",n.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.THANKS")," ")}function X6(i,s){if(1&i&&n._UZ(0,"perun-web-apps-add-thanks",60),2&i){const e=n.oxw(2);n.Q6J("publication",e.publication)("selection",e.thanksSelection)}}function ez(i,s){1&i&&n._UZ(0,"mat-spinner",5)}function tz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-horizontal-stepper",6,7),n.NdJ("selectionChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.stepChanged(r))}),n.TgZ(2,"mat-step",8),n.YNc(3,S6,2,3,"ng-template",9),n.TgZ(4,"form",10)(5,"h5",11),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"div",12)(9,"mat-checkbox",13),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"mat-form-field"),n._UZ(13,"input",14),n.ALo(14,"translate"),n.YNc(15,E6,3,3,"mat-error",15),n.qZA(),n.TgZ(16,"mat-form-field",16),n.NdJ("click",function(){n.CHM(e);const r=n.MAs(23);return n.KtG(r.open())}),n.TgZ(17,"mat-label"),n._uU(18),n.ALo(19,"translate"),n.qZA(),n._UZ(20,"input",17)(21,"mat-datepicker-toggle",18),n.TgZ(22,"mat-datepicker",19,20),n.NdJ("yearSelected",function(r){n.CHM(e);const d=n.MAs(23),h=n.oxw();return n.KtG(h.chosenYearHandler(r,d))}),n.qZA(),n.YNc(24,D6,3,3,"mat-error",15),n.qZA(),n.TgZ(25,"mat-form-field")(26,"mat-select",21),n.ALo(27,"translate"),n.YNc(28,H6,2,2,"mat-option",22),n.qZA(),n.YNc(29,P6,3,3,"mat-error",15),n.qZA(),n.TgZ(30,"mat-form-field"),n._UZ(31,"input",23),n.ALo(32,"translate"),n.qZA(),n.TgZ(33,"mat-form-field"),n._UZ(34,"input",24),n.ALo(35,"translate"),n.qZA(),n.TgZ(36,"mat-form-field")(37,"textarea",25),n.ALo(38,"translate"),n._uU(39," "),n.qZA(),n.YNc(40,R6,3,3,"mat-error",15),n.qZA()()(),n.TgZ(41,"div",26)(42,"button",27),n._uU(43),n.ALo(44,"translate"),n.qZA()()(),n.TgZ(45,"mat-step",28),n.YNc(46,k6,2,3,"ng-template",9),n.TgZ(47,"form",29)(48,"h5",11),n._uU(49),n.ALo(50,"translate"),n.qZA(),n.YNc(51,L6,5,3,"div",30),n.YNc(52,I6,16,12,"perun-web-apps-alert",31),n.YNc(53,q6,6,1,"mat-tab-group",15),n.YNc(54,z6,6,3,"div",30),n.qZA(),n.YNc(55,G6,10,9,"div",32),n.qZA(),n.TgZ(56,"mat-step"),n.YNc(57,W6,2,3,"ng-template",9),n.TgZ(58,"h5",11),n._uU(59),n.ALo(60,"translate"),n.qZA(),n.YNc(61,$6,1,0,"mat-spinner",3),n.YNc(62,Z6,5,4,"div",15),n.YNc(63,Q6,4,3,"div",32),n.qZA(),n.TgZ(64,"mat-step"),n.YNc(65,K6,2,3,"ng-template",9),n.TgZ(66,"h5",11),n._uU(67),n.ALo(68,"translate"),n.qZA(),n.YNc(69,X6,1,2,"perun-web-apps-add-thanks",33),n.YNc(70,ez,1,0,"mat-spinner",3),n.TgZ(71,"div",26)(72,"button",34),n._uU(73),n.ALo(74,"translate"),n.qZA(),n.TgZ(75,"button",35),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.showDialogAndRedirect(["all-publications"],r.publication.id))}),n._uU(76),n.ALo(77,"translate"),n.qZA()()()()}if(2&i){const e=n.MAs(23),t=n.oxw();n.xp6(2),n.Q6J("stepControl",t.publicationControl),n.xp6(2),n.Q6J("formGroup",t.publicationControl),n.xp6(2),n.hij(" ",n.lcZ(7,36,"CREATE_SINGLE_PUBLICATION.PUB_INFO")," "),n.xp6(4),n.hij(" ",n.lcZ(11,38,"CREATE_SINGLE_PUBLICATION.ADD_MYSELF")," "),n.xp6(3),n.s9C("placeholder",n.lcZ(14,40,"CREATE_SINGLE_PUBLICATION.SET_TITLE")),n.xp6(2),n.Q6J("ngIf",t.publicationControl.hasError("required","title")),n.xp6(3),n.Oqu(n.lcZ(19,42,"CREATE_SINGLE_PUBLICATION.YEAR")),n.xp6(2),n.Q6J("max",t.maxYear)("matDatepicker",e),n.xp6(1),n.Q6J("for",e),n.xp6(3),n.Q6J("ngIf",t.publicationControl.hasError("required","year")),n.xp6(2),n.s9C("placeholder",n.lcZ(27,44,"CREATE_SINGLE_PUBLICATION.CATEGORY")),n.xp6(2),n.Q6J("ngForOf",t.categories),n.xp6(1),n.Q6J("ngIf",t.publicationControl.hasError("required","category")),n.xp6(2),n.s9C("placeholder",n.lcZ(32,46,"CREATE_SINGLE_PUBLICATION.ISBN")),n.xp6(3),n.s9C("placeholder",n.lcZ(35,48,"CREATE_SINGLE_PUBLICATION.DOI")),n.xp6(3),n.s9C("placeholder",n.lcZ(38,50,"CREATE_SINGLE_PUBLICATION.CITE")),n.xp6(3),n.Q6J("ngIf",t.publicationControl.hasError("required","cite")),n.xp6(2),n.Q6J("disabled",t.publicationControl.invalid),n.xp6(1),n.hij(" ",n.lcZ(44,52,"CREATE_SINGLE_PUBLICATION.NEXT")," "),n.xp6(2),n.Q6J("editable",!t.duplicateCheck&&!t.publicationControl.invalid),n.xp6(4),n.hij(" ",n.lcZ(50,54,"CREATE_SINGLE_PUBLICATION.SIMILARITY_CHECK")," "),n.xp6(2),n.Q6J("ngIf",t.innerLoading),n.xp6(1),n.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),n.xp6(1),n.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),n.xp6(1),n.Q6J("ngIf",!t.innerLoading&&t.duplicateCheck),n.xp6(1),n.Q6J("ngIf",!t.innerLoading),n.xp6(4),n.hij(" ",n.lcZ(60,56,"CREATE_SINGLE_PUBLICATION.ADD_AUTHORS")," "),n.xp6(2),n.Q6J("ngIf",t.innerLoading),n.xp6(1),n.Q6J("ngIf",!t.innerLoading),n.xp6(1),n.Q6J("ngIf",!t.innerLoading),n.xp6(4),n.hij(" ",n.lcZ(68,58,"CREATE_SINGLE_PUBLICATION.ADD_THANKS")," "),n.xp6(2),n.Q6J("ngIf",null!==t.publication),n.xp6(1),n.Q6J("ngIf",t.innerLoading),n.xp6(3),n.hij(" ",n.lcZ(74,60,"CREATE_SINGLE_PUBLICATION.PREV")," "),n.xp6(3),n.hij(" ",n.lcZ(77,62,"CREATE_SINGLE_PUBLICATION.FINISH")," ")}}const nz=lf,iz={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let rz=(()=>{class i{constructor(e,t,r,d,h,c,o,a){this.formBuilder=e,this.cabinetService=t,this.dialog=r,this.router=d,this.notificator=h,this.translate=c,this.storeService=o,this.userService=a,this.similarPublications=[],this.filteredPublications=[],this.categories=[],this.publication=null,this.authorsSelection=new Kn(!0,[]),this.yourselfAsAnAuthor=!0,this.thanksSelection=new Kn(!0,[]),this.innerLoading=!1,this.loading=!1,this.duplicateCheck=!1,this.selectedPubId=null,this.selectedPubTitle=""}ngOnInit(){this.loading=!0,this.publicationControl=this.formBuilder.group({addAuthor:[!0],title:["",kn.required],year:["",kn.required],category:["",kn.required],isbn:[""],doi:[""],cite:["",kn.required]}),this.maxYear=nz(),this.cabinetService.getCategories().subscribe(e=>{this.categories=e,this.loading=!1})}chosenYearHandler(e,t){this.publicationControl.get("year").setValue(e),t.close()}createTimeout(){setTimeout(()=>{this.notificator.showSuccess(this.translate.instant("CREATE_SINGLE_PUBLICATION.SUCCESS")),this.duplicateCheck=!0,this.innerLoading=!1},1e3)}createPublication(){this.innerLoading=!0,this.duplicateCheck=!0;const e={publication:{id:0,beanName:"Publication",title:this.publicationControl.get("title").value,categoryId:this.publicationControl.get("category").value.id,year:this.publicationControl.get("year").value.year(),isbn:this.publicationControl.get("isbn").value,doi:this.publicationControl.get("doi").value,main:this.publicationControl.get("cite").value}};this.userService.getRichUserWithAttributes(this.storeService.getPerunPrincipal().userId).subscribe(t=>{const r=t.userAttributes.filter(d=>"preferredMail"===d.friendlyName);0!==r.length&&(e.publication.createdBy=r[0].value),this.cabinetService.createPublication(e).subscribe(d=>{this.publication=d,this.publicationControl.get("addAuthor").value?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publication.id,userId:t.id}}).subscribe(()=>{this.createTimeout()},()=>this.innerLoading=!1):this.createTimeout()},()=>this.innerLoading=!1)},()=>this.innerLoading=!1)}similarCheck(){this.innerLoading=!0;const e=this.publicationControl.get("title").value,t=this.publicationControl.get("doi").value?this.publicationControl.get("doi").value:null,r=this.publicationControl.get("isbn").value?this.publicationControl.get("isbn").value:null;this.cabinetService.findSimilarPublications(e,t,r).subscribe(d=>{this.similarPublications=d,this.filteredPublications=d,setTimeout(()=>{this.duplicateCheck=0===d.length,this.innerLoading=!1},2e3)})}stepChanged(e){1===e.selectedIndex&&this.similarCheck(),2===e.selectedIndex&&null===this.publication&&this.createPublication()}redirect(e){this.router.navigate(e,{queryParamsHandling:"preserve"})}showDialogAndRedirect(e,t){if(e.push(String(t)),this.yourselfAsAnAuthor)this.redirect(e);else{const r=Jn();r.width="500px",r.data={theme:"user-theme",title:this.translate.instant("CREATE_SINGLE_PUBLICATION.NOT_AN_AUTHOR_DIALOG_TITLE"),alert:this.translate.instant("CREATE_SINGLE_PUBLICATION.NOT_AN_AUTHOR_DIALOG_ALERT"),items:[],type:"confirmation",showAsk:!1},this.dialog.open(Ox,r).afterClosed().subscribe(h=>{h&&this.redirect(e)})}}loadPublicationDetail(e,t){this.selectedPubId=e.id,this.selectedPubTitle=e.title,t.selectedIndex=1}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(f0),n.Y36(wn),n.Y36(oi),n.Y36($n),n.Y36(Ji),n.Y36(qu),n.Y36(yi),n.Y36(Uo))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-create-single-publication-page"]],viewQuery:function(e,t){if(1&e&&n.Gf(x6,5),2&e){let r;n.iGM(r=n.CRH())&&(t.stepper=r.first)}},features:[n._Bn([{provide:Un,useClass:u_,deps:[_o]},{provide:_i,useValue:iz}])],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selectionChange",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selectionChange"],["stepper",""],[3,"stepControl"],["matStepLabel",""],[3,"formGroup"],[1,"mt-2"],[1,"dialog-container","w-50"],["labelPosition","before","formControlName","addAuthor",1,"mt-3"],["matInput","","formControlName","title","required","",3,"placeholder"],[4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","year","readonly","",1,"disable",3,"max","matDatepicker"],["matSuffix","",3,"for"],["startView","multi-year","panelClass","year-picker",3,"yearSelected"],["sdp",""],["required","","formControlName","category",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","isbn",3,"placeholder"],["matInput","","formControlName","doi",3,"placeholder"],["matInput","","formControlName","cite","required","",3,"placeholder"],[1,"actions"],["mat-flat-button","","color","accent","matStepperNext","",1,"ml-auto","mr-2",3,"disabled"],[3,"editable"],[1,"flex-container"],["class","flex-container",4,"ngIf"],["class","w-100","alert_type","warn",4,"ngIf"],["class","actions",4,"ngIf"],[3,"publication","selection",4,"ngIf"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],[3,"value"],[1,"ml-auto","mr-auto","mt-1","font-weight-bold"],["alert_type","warn",1,"w-100"],[1,"font-weight-bold"],[1,"mt-2","ml-3"],[1,"dot-icon"],[1,"ml-3"],["similarPublicationTabs",""],["matTabLabel",""],["matTabContent",""],[1,"flex-container","mb-2"],[3,"displayedColumns","disabledRouting","openInTab","publications","publicationSelector",4,"ngIf"],[3,"displayedColumns","disabledRouting","openInTab","publications","publicationSelector"],[1,"mt-4"],[3,"publicationId","disableRouting","similarityCheck"],[1,"ml-auto","mr-auto","passed-icon"],[1,"ml-auto","mr-auto","font-weight-bold"],["mat-flat-button","","type","button",1,"ml-2",3,"click"],["mat-flat-button","","type","button","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","color","accent","type","button","matStepperNext","",1,"ml-2"],["alert_type","info"],[3,"publication","selection","disableRouting","yourselfAsAnAuthor",4,"ngIf"],[3,"publication","selection","disableRouting","yourselfAsAnAuthor"],["mat-flat-button","","color","accent","matStepperNext","",1,"ml-auto"],[3,"publication","selection"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),n._uU(4,"add_box"),n.qZA(),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.YNc(7,M6,1,0,"mat-spinner",3),n.YNc(8,tz,78,64,"mat-horizontal-stepper",4),n.qZA()),2&e&&(n.xp6(5),n.hij(" ",n.lcZ(6,3,"CREATE_SINGLE_PUBLICATION.TITLE")," "),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.sg,x.O5,Ot,ld,Ln,Sn,es,ar,ta,_u,Ra,$w,Gi,Wi,tg,ns,Ol,Fc,Pu,R1,jC,k1,YV,qV,CM,c_,AM,Jc,Al,m2,Xj,K1,Kj,na,af,p_,bH,wH,it,T6],styles:[".add-icon{font-size:32px;vertical-align:text-top}.dot-icon{font-size:small;vertical-align:-1px}.passed-icon{font-size:130px;color:#288619;margin-bottom:130px;padding-right:120px}.flex-container{display:flex;flex-direction:column}.year-picker .mat-calendar-period-button{pointer-events:none}.year-picker .mat-calendar-arrow{display:none}.actions{background-color:#fff;display:flex;margin-top:20px}.mat-horizontal-stepper-header{pointer-events:none!important}\n"],encapsulation:2}),i})();function az(i,s){if(1&i&&(n.TgZ(0,"mat-option",14),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.Q6J("value",e),n.xp6(1),n.Oqu(e.friendlyName)}}function sz(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",15),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"IMPORT_PUBLICATIONS.INFO")," "))}function oz(i,s){if(1&i&&n._UZ(0,"perun-web-apps-publications-list",16),2&i){const e=n.oxw(2);n.Q6J("publications",e.publications)("displayedColumns",e.displayedColumns)("selection",e.selected)("tableId",e.tableId)("disabledRouting",!0)("allowAlert",e.firstSearchDone)}}function lz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div")(2,"mat-form-field",5)(3,"mat-label"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"mat-select",6),n.NdJ("closed",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.selectPubSystem())}),n.YNc(7,az,2,2,"mat-option",7),n.qZA()(),n._UZ(8,"perun-web-apps-year-range",8),n.TgZ(9,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.searchPublications())}),n.TgZ(10,"mat-icon"),n._uU(11,"search"),n.qZA(),n._uU(12),n.ALo(13,"translate"),n.qZA(),n.TgZ(14,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.importPublications(r.selected.selected))}),n._uU(15),n.ALo(16,"translate"),n.qZA(),n.TgZ(17,"mat-checkbox",11),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.userAsAuthor=r)}),n._uU(18),n.ALo(19,"translate"),n.qZA()(),n.YNc(20,sz,3,3,"perun-web-apps-alert",12),n.YNc(21,oz,1,6,"perun-web-apps-publications-list",13),n.qZA()}if(2&i){const e=n.oxw();n.xp6(4),n.Oqu(n.lcZ(5,12,"IMPORT_PUBLICATIONS.EXT_PUB_SYSTEM")),n.xp6(2),n.Q6J("formControl",e.pubSystem),n.xp6(1),n.Q6J("ngForOf",e.publicationSystems),n.xp6(1),n.Q6J("startYear",e.startYear)("endYear",e.endYear),n.xp6(4),n.hij(" ",n.lcZ(13,14,"IMPORT_PUBLICATIONS.SEARCH")," "),n.xp6(2),n.Q6J("disabled",0===e.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(16,16,"IMPORT_PUBLICATIONS.IMPORT")," "),n.xp6(2),n.Q6J("ngModel",e.userAsAuthor),n.xp6(1),n.hij(" ",n.lcZ(19,18,"IMPORT_PUBLICATIONS.ADD_MYSELF")," "),n.xp6(2),n.Q6J("ngIf",!e.firstSearchDone),n.xp6(1),n.Q6J("ngIf",!e.loading)}}function cz(i,s){1&i&&n._UZ(0,"mat-spinner",17)}function dz(i,s){1&i&&(n.TgZ(0,"i"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED")," "))}function uz(i,s){1&i&&(n.TgZ(0,"mat-icon",28),n._uU(1,"check_circle"),n.qZA())}function hz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",29),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(),d=r.$implicit,h=r.index,c=n.oxw(2);return n.KtG(c.completePublication(d.id,h))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECKED_BUTTON")," "))}function pz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",30),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw(2);return n.KtG(d.incompletePublication(r.id))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED_BUTTON")," "))}function fz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",22)(1,"mat-expansion-panel-header",23),n.NdJ("click",function(){const d=n.CHM(e).index,h=n.oxw(2);return n.KtG(h.editPublication(d))}),n.TgZ(2,"mat-panel-title"),n._uU(3),n.YNc(4,dz,3,3,"i",3),n.YNc(5,uz,2,0,"mat-icon",24),n.qZA()(),n._UZ(6,"perun-web-apps-publication-detail",25),n.TgZ(7,"div",26),n.YNc(8,hz,3,3,"button",20),n.YNc(9,pz,3,3,"button",27),n.qZA()()}if(2&i){const e=s.$implicit,t=s.index,r=n.oxw(2);n.Q6J("expanded",r.indexExpanded===t),n.xp6(3),n.hij(" ",e.title," "),n.xp6(1),n.Q6J("ngIf",!r.completePublications.includes(e.id)),n.xp6(1),n.Q6J("ngIf",r.completePublications.includes(e.id)),n.xp6(1),n.Q6J("publicationId",e.id),n.xp6(2),n.Q6J("ngIf",!r.completePublications.includes(e.id)),n.xp6(1),n.Q6J("ngIf",r.completePublications.includes(e.id))}}function mz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",29),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.completeAllPublications())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECK_ALL")," "))}function gz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",31),n.ALo(1,"translate"),n.TgZ(2,"button",32),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.onSubmit())}),n._uU(3),n.ALo(4,"translate"),n.qZA()()}if(2&i){const e=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,4,"IMPORT_PUBLICATIONS.SUBMIT_TOOLTIP")),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.completePublications.length===e.importedPublications.length),n.xp6(3),n.hij(" ",n.lcZ(4,6,"IMPORT_PUBLICATIONS.FINISH")," ")}}function _z(i,s){if(1&i&&(n.TgZ(0,"div")(1,"perun-web-apps-alert",15),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-accordion"),n.YNc(5,fz,10,7,"mat-expansion-panel",18),n.qZA(),n.TgZ(6,"div",19),n.YNc(7,mz,3,3,"button",20),n.qZA(),n.YNc(8,gz,5,8,"div",21),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,4,"IMPORT_PUBLICATIONS.IMPORTED_INFO")," "),n.xp6(3),n.Q6J("ngForOf",e.importedPublications),n.xp6(2),n.Q6J("ngIf",e.completePublications.length!==e.importedPublications.length),n.xp6(1),n.Q6J("ngIf",e.completePublications.length===e.importedPublications.length)}}const zH=lf,bz={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},wz=[{path:"",redirectTo:"all-publications",pathMatch:"full"},{path:"login",component:C6},{path:"service-access",component:v6},{path:"all-publications",component:HU},{path:"my-publications",component:LU},{path:"create-publication",component:IU},{path:"create-publication/import",component:(()=>{class i{constructor(e,t,r,d,h,c){this.cabinetService=e,this.storeService=t,this.notificator=r,this.translate=d,this.router=h,this.dialog=c,this.loading=!1,this.publicationSystems=[],this.publications=[],this.selected=new Kn(!0,[]),this.tableId="74",this.displayedColumns=["select","id","lock","title","reportedBy","year","category"],this.userAsAuthor=!0,this.importedPublications=[],this.importDone=!1,this.completePublications=[]}ngOnInit(){this.loading=!0,this.firstSearchDone=!1,this.userId=this.storeService.getPerunPrincipal().user.id,this.startYear=new Nn(zH().subtract(1,"year")),this.endYear=new Nn(zH()),this.cabinetService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e.filter(t=>"INTERNAL"!==t.friendlyName),this.pubSystem=new Nn(this.publicationSystems[0]),this.pubSystemNamespace=this.pubSystem.value.loginNamespace,this.loading=!1})}selectPubSystem(){this.pubSystemNamespace=this.pubSystem.value.loginNamespace}searchPublications(){this.loading=!0,this.firstSearchDone=!0,this.cabinetService.findExternalPublications(this.storeService.getPerunPrincipal().user.id,this.startYear.value.year(),this.endYear.value.year(),this.pubSystemNamespace).subscribe({next:e=>{this.publications=e,this.loading=!1},error:()=>this.loading=!1})}importPublications(e){if(this.loading=!0,0===e.length)return this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SUCCESS")),this.importDone=!0,this.indexExpanded=0,void(this.loading=!1);const t=e.shift();this.cabinetService.createPublication({publication:{id:0,beanName:"Publication",title:t.title,categoryId:t.categoryId,year:t.year,isbn:t.isbn,doi:t.doi,main:t.main}}).subscribe({next:d=>{this.userAsAuthor?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:d.id,userId:this.userId}}).subscribe({next:()=>{this.importedPublications.push(d),this.importPublications(e)},error:()=>this.loading=!1}):(this.importedPublications.push(d),this.importPublications(e))},error:()=>this.loading=!1})}editPublication(e){this.indexExpanded=e===this.indexExpanded?-1:e}completePublication(e,t){this.completePublications.includes(e)||this.completePublications.push(e),this.indexExpanded=t!==this.importedPublications.length-1?t+1:-1}incompletePublication(e){this.completePublications.includes(e)&&(this.completePublications=this.completePublications.filter(t=>t!==e)),this.indexExpanded=-1}completeAllPublications(){const e=Jn();e.width="500px",e.data={theme:"user-theme",message:this.translate.instant("IMPORT_PUBLICATIONS.CHECK_ALL_MESSAGE")},this.dialog.open(hL,e).afterClosed().subscribe(r=>{r&&this.onSubmit()})}onSubmit(){this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SHOW_FINISH")),this.router.navigate(["/my-publications"],{queryParamsHandling:"preserve"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn),n.Y36(yi),n.Y36(Ji),n.Y36(mn),n.Y36($n),n.Y36(oi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-import-publications-page"]],features:[n._Bn([{provide:Un,useClass:u_,deps:[_o]},{provide:_i,useValue:bz}])],decls:10,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"input-width-300","mr-2"],[3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[3,"startYear","endYear"],["mat-stroked-button","",1,"left-space",3,"click"],["mat-flat-button","","color","accent",1,"left-space",3,"disabled","click"],[1,"mt-3","left-space",3,"ngModel","ngModelChange"],["alert_type","info",4,"ngIf"],[3,"publications","displayedColumns","selection","tableId","disabledRouting","allowAlert",4,"ngIf"],[1,"group-theme",3,"value"],["alert_type","info"],[3,"publications","displayedColumns","selection","tableId","disabledRouting","allowAlert"],[1,"ml-auto","mr-auto"],[3,"expanded",4,"ngFor","ngForOf"],[1,"right-button"],["mat-flat-button","","class","width-100","color","accent",3,"click",4,"ngIf"],["class","right-button",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"ngIf"],[3,"expanded"],[3,"click"],["color","accent","class","checked-icon",4,"ngIf"],[3,"publicationId"],[1,"fit-content"],["mat-stroked-button","","class","width-100",3,"click",4,"ngIf"],["color","accent",1,"checked-icon"],["mat-flat-button","","color","accent",1,"width-100",3,"click"],["mat-stroked-button","",1,"width-100",3,"click"],[1,"right-button",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),n._uU(4,"add_box"),n.qZA(),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.YNc(7,lz,22,20,"div",3),n.YNc(8,cz,1,0,"mat-spinner",4),n.YNc(9,_z,9,6,"div",3),n.qZA()),2&e&&(n.xp6(5),n.hij(" ",n.lcZ(6,4,"IMPORT_PUBLICATIONS.TITLE")," "),n.xp6(2),n.Q6J("ngIf",!t.importDone),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",t.importDone))},dependencies:[x.sg,x.O5,cV,_1,b1,lV,Ot,ld,Ln,Sn,ar,ta,Wi,Uc,_r,ks,Jc,Al,na,af,p_,mH,it],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.input-width-300[_ngcontent-%COMP%]{width:300px}.left-space[_ngcontent-%COMP%]{margin-left:10px}mat-panel-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-left:5px}.checked-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}.right-button[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:20px;margin-left:auto;margin-right:0}.fit-content[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:15px}.width-100[_ngcontent-%COMP%]{width:100%}"]}),i})()},{path:"create-publication/create",component:rz},{path:"authors",component:oN},{path:"authors/:authorId",component:hF},{path:"authors/:authorId/publication/:publicationId",component:p_},{path:"all-publications/:publicationId",component:p_},{path:"my-publications/:publicationId",component:p_},{path:"categories",component:zN},{path:"publication-systems",component:lF}];let yz=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lh.forRoot(wz,{preloadingStrategy:$_,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),Lh]}),i})();const Cz={provide:v.TP,useExisting:(0,n.Gpc)(()=>GE),multi:!0};function Az(i){return new SI(i,"./assets/i18n/",".json")}function vz(i){const s={basePath:i.getProperty("api_url")};return new vt(s)}const Tz=i=>()=>i.loadConfigs();let xz=(()=>{class i{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(qE),n.LFG(mn))},i.\u0275mod=n.oAB({type:i,bootstrap:[MI]}),i.\u0275inj=n.cJS({providers:[qE,{provide:n.ip1,useFactory:Tz,multi:!0,deps:[HI]},{provide:vt,useFactory:vz,deps:[yi]},GE,Cz,{provide:PI,useClass:eR},xU,{provide:Wp.Hy,useFactory:()=>localStorage}],imports:[di,Gs.forRoot({loader:{provide:Fr,useFactory:Az,deps:[v.eN]}}),HB,uH,PB,ii,v.JF,yz,RM,iD,y6,rH,J0,Wp.zr.forRoot(),jH]}),i})();(0,n.G48)(),pt().bootstrapModule(xz).catch(i=>console.error(i))},1302:function(z,W,E){var x;!function(n,P){var D={};!function(n){"use strict";n.__esModule=!0,n.digestLength=32,n.blockSize=64;var P=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function D(ue,se,re,_e,ye){for(var Me,Je,Ze,ke,Ee,Pe,ut,Ve,Ne,je,fe,ge,Te;ye>=64;){for(Me=se[0],Je=se[1],Ze=se[2],ke=se[3],Ee=se[4],Pe=se[5],ut=se[6],Ve=se[7],je=0;je<16;je++)ue[je]=(255&re[fe=_e+4*je])<<24|(255&re[fe+1])<<16|(255&re[fe+2])<<8|255&re[fe+3];for(je=16;je<64;je++)ue[je]=((ge=((Ne=ue[je-2])>>>17|Ne<<15)^(Ne>>>19|Ne<<13)^Ne>>>10)+ue[je-7]|0)+((Te=((Ne=ue[je-15])>>>7|Ne<<25)^(Ne>>>18|Ne<<14)^Ne>>>3)+ue[je-16]|0);for(je=0;je<64;je++)ge=(((Ee>>>6|Ee<<26)^(Ee>>>11|Ee<<21)^(Ee>>>25|Ee<<7))+(Ee&Pe^~Ee&ut)|0)+(Ve+(P[je]+ue[je]|0)|0)|0,Te=((Me>>>2|Me<<30)^(Me>>>13|Me<<19)^(Me>>>22|Me<<10))+(Me&Je^Me&Ze^Je&Ze)|0,Ve=ut,ut=Pe,Pe=Ee,Ee=ke+ge|0,ke=Ze,Ze=Je,Je=Me,Me=ge+Te|0;se[0]+=Me,se[1]+=Je,se[2]+=Ze,se[3]+=ke,se[4]+=Ee,se[5]+=Pe,se[6]+=ut,se[7]+=Ve,_e+=64,ye-=64}return _e}var H=function(){function ue(){this.digestLength=n.digestLength,this.blockSize=n.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ue.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ue.prototype.clean=function(){for(var se=0;se0){for(;this.bufferLength<64&&re>0;)this.buffer[this.bufferLength++]=se[_e++],re--;64===this.bufferLength&&(D(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(re>=64&&(_e=D(this.temp,this.state,se,_e,re),re%=64);re>0;)this.buffer[this.bufferLength++]=se[_e++],re--;return this},ue.prototype.finish=function(se){if(!this.finished){var re=this.bytesHashed,_e=this.bufferLength,ye=re/536870912|0,Me=re<<3,Je=re%64<56?64:128;this.buffer[_e]=128;for(var Ze=_e+1;Ze>>24&255,this.buffer[Je-7]=ye>>>16&255,this.buffer[Je-6]=ye>>>8&255,this.buffer[Je-5]=ye>>>0&255,this.buffer[Je-4]=Me>>>24&255,this.buffer[Je-3]=Me>>>16&255,this.buffer[Je-2]=Me>>>8&255,this.buffer[Je-1]=Me>>>0&255,D(this.temp,this.state,this.buffer,0,Je),this.finished=!0}for(Ze=0;Ze<8;Ze++)se[4*Ze+0]=this.state[Ze]>>>24&255,se[4*Ze+1]=this.state[Ze]>>>16&255,se[4*Ze+2]=this.state[Ze]>>>8&255,se[4*Ze+3]=this.state[Ze]>>>0&255;return this},ue.prototype.digest=function(){var se=new Uint8Array(this.digestLength);return this.finish(se),se},ue.prototype._saveState=function(se){for(var re=0;rethis.blockSize)(new H).update(se).finish(re).clean();else for(var _e=0;_e1&&se.update(ue),re&&se.update(re),se.update(_e),se.finish(ue),_e[0]++}n.HMAC=I,n.hash=B,n.default=B,n.hmac=Y;var ee=new Uint8Array(n.digestLength);n.hkdf=function te(ue,se,re,_e){void 0===se&&(se=ee),void 0===_e&&(_e=32);for(var ye=new Uint8Array([1]),Me=Y(se,ue),Je=new I(Me),Ze=new Uint8Array(Je.digestLength),ke=Ze.length,Ee=new Uint8Array(_e),Pe=0;Pe<_e;Pe++)ke===Ze.length&&(G(Ze,Je,re,ye),ke=0),Ee[Pe]=Ze[ke++];return Je.clean(),Ze.fill(0),ye.fill(0),Ee},n.pbkdf2=function ae(ue,se,re,_e){for(var ye=new I(ue),Me=ye.digestLength,Je=new Uint8Array(4),Ze=new Uint8Array(Me),ke=new Uint8Array(Me),Ee=new Uint8Array(_e),Pe=0;Pe*Me<_e;Pe++){var ut=Pe+1;Je[0]=ut>>>24&255,Je[1]=ut>>>16&255,Je[2]=ut>>>8&255,Je[3]=ut>>>0&255,ye.reset(),ye.update(se),ye.update(Je),ye.finish(ke);for(var Ve=0;Ve=te.status}function I(ee){try{ee.dispatchEvent(new MouseEvent("click"))}catch{var te=document.createEvent("MouseEvents");te.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ee.dispatchEvent(te)}}var B="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Y=B.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=B.saveAs||("object"!=typeof window||window!==B?function(){}:"download"in HTMLAnchorElement.prototype&&!Y?function(ee,te,ae){var ue=B.URL||B.webkitURL,se=document.createElement("a");se.download=te=te||ee.name||"download",se.rel="noopener","string"==typeof ee?(se.href=ee,se.origin===location.origin?I(se):H(se.href)?D(ee,te,ae):I(se,se.target="_blank")):(se.href=ue.createObjectURL(ee),setTimeout(function(){ue.revokeObjectURL(se.href)},4e4),setTimeout(function(){I(se)},0))}:"msSaveOrOpenBlob"in navigator?function(ee,te,ae){if(te=te||ee.name||"download","string"!=typeof ee)navigator.msSaveOrOpenBlob(function P(ee,te){return typeof te>"u"?te={autoBom:!1}:"object"!=typeof te&&(console.warn("Deprecated: Expected third argument to be a object"),te={autoBom:!te}),te.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ee.type)?new Blob(["\ufeff",ee],{type:ee.type}):ee}(ee,ae),te);else if(H(ee))D(ee,te,ae);else{var ue=document.createElement("a");ue.href=ee,ue.target="_blank",setTimeout(function(){I(ue)})}}:function(ee,te,ae,ue){if((ue=ue||open("","_blank"))&&(ue.document.title=ue.document.body.innerText="downloading..."),"string"==typeof ee)return D(ee,te,ae);var se="application/octet-stream"===ee.type,re=/constructor/i.test(B.HTMLElement)||B.safari,_e=/CriOS\/[\d]+/.test(navigator.userAgent);if((_e||se&&re||Y)&&typeof FileReader<"u"){var ye=new FileReader;ye.onloadend=function(){var Ze=ye.result;Ze=_e?Ze:Ze.replace(/^data:[^;]*;/,"data:attachment/file;"),ue?ue.location.href=Ze:location=Ze,ue=null},ye.readAsDataURL(ee)}else{var Me=B.URL||B.webkitURL,Je=Me.createObjectURL(ee);ue?ue.location=Je:location.href=Je,ue=null,setTimeout(function(){Me.revokeObjectURL(Je)},4e4)}});B.saveAs=G.saveAs=G,z.exports=G}.apply(W,[]))&&(z.exports=n)},7088:function(z,W,E){!function(x){"use strict";x.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(P){return/^nm$/i.test(P)},meridiem:function(P,D,H){return P<12?H?"vm":"VM":H?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(P){return P+(1===P||8===P||P>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},2502:function(z,W,E){!function(x){"use strict";var n=function(B){return 0===B?0:1===B?1:2===B?2:B%100>=3&&B%100<=10?3:B%100>=11?4:5},P={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},D=function(B){return function(Y,G,ee,te){var ae=n(Y),ue=P[B][n(Y)];return 2===ae&&(ue=ue[G?0:1]),ue.replace(/%d/i,Y)}},H=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];x.defineLocale("ar-dz",{months:H,monthsShort:H,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(B){return"\u0645"===B},meridiem:function(B,Y,G){return B<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:D("s"),ss:D("s"),m:D("m"),mm:D("m"),h:D("h"),hh:D("h"),d:D("d"),dd:D("d"),M:D("M"),MM:D("M"),y:D("y"),yy:D("y")},postformat:function(B){return B.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(E(5439))},128:function(z,W,E){!function(x){"use strict";x.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(E(5439))},4519:function(z,W,E){!function(x){"use strict";var n={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},P=function(Y){return 0===Y?0:1===Y?1:2===Y?2:Y%100>=3&&Y%100<=10?3:Y%100>=11?4:5},D={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},H=function(Y){return function(G,ee,te,ae){var ue=P(G),se=D[Y][P(G)];return 2===ue&&(se=se[ee?0:1]),se.replace(/%d/i,G)}},I=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];x.defineLocale("ar-ly",{months:I,monthsShort:I,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(Y){return"\u0645"===Y},meridiem:function(Y,G,ee){return Y<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:H("s"),ss:H("s"),m:H("m"),mm:H("m"),h:H("h"),hh:H("h"),d:H("d"),dd:H("d"),M:H("M"),MM:H("M"),y:H("y"),yy:H("y")},preparse:function(Y){return Y.replace(/\u060c/g,",")},postformat:function(Y){return Y.replace(/\d/g,function(G){return n[G]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},5443:function(z,W,E){!function(x){"use strict";x.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(E(5439))},7642:function(z,W,E){!function(x){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},P={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};x.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(H){return"\u0645"===H},meridiem:function(H,I,B){return H<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(H){return H.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(I){return P[I]}).replace(/\u060c/g,",")},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(E(5439))},8592:function(z,W,E){!function(x){"use strict";x.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(E(5439))},7038:function(z,W,E){!function(x){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},P={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},D=function(G){return 0===G?0:1===G?1:2===G?2:G%100>=3&&G%100<=10?3:G%100>=11?4:5},H={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},I=function(G){return function(ee,te,ae,ue){var se=D(ee),re=H[G][D(ee)];return 2===se&&(re=re[te?0:1]),re.replace(/%d/i,ee)}},B=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];x.defineLocale("ar",{months:B,monthsShort:B,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(G){return"\u0645"===G},meridiem:function(G,ee,te){return G<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:I("s"),ss:I("s"),m:I("m"),mm:I("m"),h:I("h"),hh:I("h"),d:I("d"),dd:I("d"),M:I("M"),MM:I("M"),y:I("y"),yy:I("y")},preparse:function(G){return G.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(ee){return P[ee]}).replace(/\u060c/g,",")},postformat:function(G){return G.replace(/\d/g,function(ee){return n[ee]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},1213:function(z,W,E){!function(x){"use strict";var n={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};x.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(D){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(D)},meridiem:function(D,H,I){return D<4?"gec\u0259":D<12?"s\u0259h\u0259r":D<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(D){if(0===D)return D+"-\u0131nc\u0131";var H=D%10;return D+(n[H]||n[D%100-H]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},9191:function(z,W,E){!function(x){"use strict";function P(H,I,B){return"m"===B?I?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===B?I?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":H+" "+function n(H,I){var B=H.split("_");return I%10==1&&I%100!=11?B[0]:I%10>=2&&I%10<=4&&(I%100<10||I%100>=20)?B[1]:B[2]}({ss:I?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:I?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:I?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[B],+H)}x.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:P,mm:P,h:P,hh:P,d:"\u0434\u0437\u0435\u043d\u044c",dd:P,M:"\u043c\u0435\u0441\u044f\u0446",MM:P,y:"\u0433\u043e\u0434",yy:P},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(H){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(H)},meridiem:function(H,I,B){return H<4?"\u043d\u043e\u0447\u044b":H<12?"\u0440\u0430\u043d\u0456\u0446\u044b":H<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(H,I){switch(I){case"M":case"d":case"DDD":case"w":case"W":return H%10!=2&&H%10!=3||H%100==12||H%100==13?H+"-\u044b":H+"-\u0456";case"D":return H+"-\u0433\u0430";default:return H}},week:{dow:1,doy:7}})}(E(5439))},322:function(z,W,E){!function(x){"use strict";x.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(P){var D=P%10,H=P%100;return 0===P?P+"-\u0435\u0432":0===H?P+"-\u0435\u043d":H>10&&H<20?P+"-\u0442\u0438":1===D?P+"-\u0432\u0438":2===D?P+"-\u0440\u0438":7===D||8===D?P+"-\u043c\u0438":P+"-\u0442\u0438"},week:{dow:1,doy:7}})}(E(5439))},8042:function(z,W,E){!function(x){"use strict";x.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(E(5439))},5903:function(z,W,E){!function(x){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},P={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};x.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(H){return H.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u09b0\u09be\u09a4"===I?H<4?H:H+12:"\u09ad\u09cb\u09b0"===I||"\u09b8\u0995\u09be\u09b2"===I?H:"\u09a6\u09c1\u09aa\u09c1\u09b0"===I?H>=3?H:H+12:"\u09ac\u09bf\u0995\u09be\u09b2"===I||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===I?H+12:void 0},meridiem:function(H,I,B){return H<4?"\u09b0\u09be\u09a4":H<6?"\u09ad\u09cb\u09b0":H<12?"\u09b8\u0995\u09be\u09b2":H<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":H<18?"\u09ac\u09bf\u0995\u09be\u09b2":H<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(E(5439))},9620:function(z,W,E){!function(x){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},P={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};x.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(H){return H.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u09b0\u09be\u09a4"===I&&H>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===I&&H<5||"\u09ac\u09bf\u0995\u09be\u09b2"===I?H+12:H},meridiem:function(H,I,B){return H<4?"\u09b0\u09be\u09a4":H<10?"\u09b8\u0995\u09be\u09b2":H<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":H<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(E(5439))},9645:function(z,W,E){!function(x){"use strict";var n={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},P={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};x.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(H){return H.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===I&&H>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===I&&H<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===I?H+12:H},meridiem:function(H,I,B){return H<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":H<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":H<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":H<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(E(5439))},5020:function(z,W,E){!function(x){"use strict";function n(re,_e,ye){return re+" "+function H(re,_e){return 2===_e?function I(re){var _e={m:"v",b:"v",d:"z"};return void 0===_e[re.charAt(0)]?re:_e[re.charAt(0)]+re.substring(1)}(re):re}({mm:"munutenn",MM:"miz",dd:"devezh"}[ye],re)}function D(re){return re>9?D(re%10):re}var B=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],Y=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,ue=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];x.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:ue,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:ue,monthsRegex:Y,monthsShortRegex:Y,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:B,longMonthsParse:B,shortMonthsParse:B,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:n,h:"un eur",hh:"%d eur",d:"un devezh",dd:n,M:"ur miz",MM:n,y:"ur bloaz",yy:function P(re){switch(D(re)){case 1:case 3:case 4:case 5:case 9:return re+" bloaz";default:return re+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(re){return re+(1===re?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(re){return"g.m."===re},meridiem:function(re,_e,ye){return re<12?"a.m.":"g.m."}})}(E(5439))},4792:function(z,W,E){!function(x){"use strict";function n(D,H,I){var B=D+" ";switch(I){case"ss":return B+(1===D?"sekunda":2===D||3===D||4===D?"sekunde":"sekundi");case"m":return H?"jedna minuta":"jedne minute";case"mm":return B+(1===D?"minuta":2===D||3===D||4===D?"minute":"minuta");case"h":return H?"jedan sat":"jednog sata";case"hh":return B+(1===D?"sat":2===D||3===D||4===D?"sata":"sati");case"dd":return B+(1===D?"dan":"dana");case"MM":return B+(1===D?"mjesec":2===D||3===D||4===D?"mjeseca":"mjeseci");case"yy":return B+(1===D?"godina":2===D||3===D||4===D?"godine":"godina")}}x.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},7980:function(z,W,E){!function(x){"use strict";x.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(P,D){var H=1===P?"r":2===P?"n":3===P?"r":4===P?"t":"\xe8";return("w"===D||"W"===D)&&(H="a"),P+H},week:{dow:1,doy:4}})}(E(5439))},7322:function(z,W,E){!function(x){"use strict";var n={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},P="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),D=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],H=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function I(G){return G>1&&G<5&&1!=~~(G/10)}function B(G,ee,te,ae){var ue=G+" ";switch(te){case"s":return ee||ae?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return ee||ae?ue+(I(G)?"sekundy":"sekund"):ue+"sekundami";case"m":return ee?"minuta":ae?"minutu":"minutou";case"mm":return ee||ae?ue+(I(G)?"minuty":"minut"):ue+"minutami";case"h":return ee?"hodina":ae?"hodinu":"hodinou";case"hh":return ee||ae?ue+(I(G)?"hodiny":"hodin"):ue+"hodinami";case"d":return ee||ae?"den":"dnem";case"dd":return ee||ae?ue+(I(G)?"dny":"dn\xed"):ue+"dny";case"M":return ee||ae?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return ee||ae?ue+(I(G)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):ue+"m\u011bs\xedci";case"y":return ee||ae?"rok":"rokem";case"yy":return ee||ae?ue+(I(G)?"roky":"let"):ue+"lety"}}x.defineLocale("cs",{months:n,monthsShort:P,monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:B,ss:B,m:B,mm:B,h:B,hh:B,d:B,dd:B,M:B,MM:B,y:B,yy:B},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},365:function(z,W,E){!function(x){"use strict";x.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(P){return P+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(P)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(P)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(E(5439))},2092:function(z,W,E){!function(x){"use strict";x.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(P){var H="";return P>20?H=40===P||50===P||60===P||80===P||100===P?"fed":"ain":P>0&&(H=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][P]),P+H},week:{dow:1,doy:4}})}(E(5439))},7387:function(z,W,E){!function(x){"use strict";x.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9459:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return H?Y[I][0]:Y[I][1]}x.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3694:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return H?Y[I][0]:Y[I][1]}x.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},4307:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return H?Y[I][0]:Y[I][1]}x.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9659:function(z,W,E){!function(x){"use strict";var n=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],P=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];x.defineLocale("dv",{months:n,monthsShort:n,weekdays:P,weekdaysShort:P,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(H){return"\u0789\u078a"===H},meridiem:function(H,I,B){return H<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(H){return H.replace(/\u060c/g,",")},postformat:function(H){return H.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(E(5439))},3460:function(z,W,E){!function(x){"use strict";x.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(D,H){return D?"string"==typeof H&&/D/.test(H.substring(0,H.indexOf("MMMM")))?this._monthsGenitiveEl[D.month()]:this._monthsNominativeEl[D.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(D,H,I){return D>11?I?"\u03bc\u03bc":"\u039c\u039c":I?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(D){return"\u03bc"===(D+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(D,H){var I=this._calendarEl[D],B=H&&H.hours();return function n(D){return typeof Function<"u"&&D instanceof Function||"[object Function]"===Object.prototype.toString.call(D)}(I)&&(I=I.apply(H)),I.replace("{}",B%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(E(5439))},4369:function(z,W,E){!function(x){"use strict";x.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:0,doy:4}})}(E(5439))},530:function(z,W,E){!function(x){"use strict";x.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")}})}(E(5439))},9998:function(z,W,E){!function(x){"use strict";x.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},3391:function(z,W,E){!function(x){"use strict";x.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},5414:function(z,W,E){!function(x){"use strict";x.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")}})}(E(5439))},9615:function(z,W,E){!function(x){"use strict";x.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:0,doy:6}})}(E(5439))},1248:function(z,W,E){!function(x){"use strict";x.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},3767:function(z,W,E){!function(x){"use strict";x.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},4530:function(z,W,E){!function(x){"use strict";x.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(P){return"p"===P.charAt(0).toLowerCase()},meridiem:function(P,D,H){return P>11?H?"p.t.m.":"P.T.M.":H?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(E(5439))},8944:function(z,W,E){!function(x){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),P="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],H=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;x.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},9116:function(z,W,E){!function(x){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),P="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],H=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;x.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(E(5439))},3609:function(z,W,E){!function(x){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),P="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],H=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;x.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(E(5439))},6866:function(z,W,E){!function(x){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),P="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],H=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;x.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(E(5439))},6725:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[D+"sekundi",D+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[D+" minuti",D+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[D+" tunni",D+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[D+" kuu",D+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[D+" aasta",D+" aastat"]};return H?Y[I][2]?Y[I][2]:Y[I][1]:B?Y[I][0]:Y[I][1]}x.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:"%d p\xe4eva",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},7931:function(z,W,E){!function(x){"use strict";x.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6417:function(z,W,E){!function(x){"use strict";var n={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},P={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};x.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(H){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(H)},meridiem:function(H,I,B){return H<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(H){return H.replace(/[\u06f0-\u06f9]/g,function(I){return P[I]}).replace(/\u060c/g,",")},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(E(5439))},944:function(z,W,E){!function(x){"use strict";var n="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),P=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",n[7],n[8],n[9]];function D(B,Y,G,ee){var te="";switch(G){case"s":return ee?"muutaman sekunnin":"muutama sekunti";case"ss":te=ee?"sekunnin":"sekuntia";break;case"m":return ee?"minuutin":"minuutti";case"mm":te=ee?"minuutin":"minuuttia";break;case"h":return ee?"tunnin":"tunti";case"hh":te=ee?"tunnin":"tuntia";break;case"d":return ee?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":te=ee?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return ee?"kuukauden":"kuukausi";case"MM":te=ee?"kuukauden":"kuukautta";break;case"y":return ee?"vuoden":"vuosi";case"yy":te=ee?"vuoden":"vuotta"}return function H(B,Y){return B<10?Y?P[B]:n[B]:B}(B,ee)+" "+te}x.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},1766:function(z,W,E){!function(x){"use strict";x.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(P){return P},week:{dow:1,doy:4}})}(E(5439))},5867:function(z,W,E){!function(x){"use strict";x.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},6848:function(z,W,E){!function(x){"use strict";x.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(P,D){switch(D){default:case"M":case"Q":case"D":case"DDD":case"d":return P+(1===P?"er":"e");case"w":case"W":return P+(1===P?"re":"e")}}})}(E(5439))},7773:function(z,W,E){!function(x){"use strict";x.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(P,D){switch(D){default:case"M":case"Q":case"D":case"DDD":case"d":return P+(1===P?"er":"e");case"w":case"W":return P+(1===P?"re":"e")}},week:{dow:1,doy:4}})}(E(5439))},1636:function(z,W,E){!function(x){"use strict";var D=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,H=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];x.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:D,monthsShortRegex:D,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:H,longMonthsParse:H,shortMonthsParse:H,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(B,Y){switch(Y){case"D":return B+(1===B?"er":"");default:case"M":case"Q":case"DDD":case"d":return B+(1===B?"er":"e");case"w":case"W":return B+(1===B?"re":"e")}},week:{dow:1,doy:4}})}(E(5439))},4940:function(z,W,E){!function(x){"use strict";var n="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),P="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");x.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(H,I){return H?/-MMM-/.test(I)?P[H.month()]:n[H.month()]:n},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(H){return H+(1===H||8===H||H>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1402:function(z,W,E){!function(x){"use strict";x.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(Y){return Y+(1===Y?"d":Y%10==2?"na":"mh")},week:{dow:1,doy:4}})}(E(5439))},6924:function(z,W,E){!function(x){"use strict";x.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(Y){return Y+(1===Y?"d":Y%10==2?"na":"mh")},week:{dow:1,doy:4}})}(E(5439))},6398:function(z,W,E){!function(x){"use strict";x.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(P){return 0===P.indexOf("un")?"n"+P:"en "+P},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},2457:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[D+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",D+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[D+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",D+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[D+" \u0935\u0930\u093e\u0902\u0928\u0940",D+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[D+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",D+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[D+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",D+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[D+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",D+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return B?Y[I][0]:Y[I][1]}x.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(D,H){return"D"===H?D+"\u0935\u0947\u0930":D},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(D,H){return 12===D&&(D=0),"\u0930\u093e\u0924\u0940"===H?D<4?D:D+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===H?D:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===H?D>12?D:D+12:"\u0938\u093e\u0902\u091c\u0947"===H?D+12:void 0},meridiem:function(D,H,I){return D<4?"\u0930\u093e\u0924\u0940":D<12?"\u0938\u0915\u093e\u0933\u0940\u0902":D<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":D<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(E(5439))},2545:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={s:["thoddea sekondamni","thodde sekond"],ss:[D+" sekondamni",D+" sekond"],m:["eka mintan","ek minut"],mm:[D+" mintamni",D+" mintam"],h:["eka voran","ek vor"],hh:[D+" voramni",D+" voram"],d:["eka disan","ek dis"],dd:[D+" disamni",D+" dis"],M:["eka mhoinean","ek mhoino"],MM:[D+" mhoineamni",D+" mhoine"],y:["eka vorsan","ek voros"],yy:[D+" vorsamni",D+" vorsam"]};return B?Y[I][0]:Y[I][1]}x.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(D,H){return"D"===H?D+"er":D},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(D,H){return 12===D&&(D=0),"rati"===H?D<4?D:D+12:"sokallim"===H?D:"donparam"===H?D>12?D:D+12:"sanje"===H?D+12:void 0},meridiem:function(D,H,I){return D<4?"rati":D<12?"sokallim":D<16?"donparam":D<20?"sanje":"rati"}})}(E(5439))},2641:function(z,W,E){!function(x){"use strict";var n={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},P={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};x.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(H){return H.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u0ab0\u0abe\u0aa4"===I?H<4?H:H+12:"\u0ab8\u0ab5\u0abe\u0ab0"===I?H:"\u0aac\u0aaa\u0acb\u0ab0"===I?H>=10?H:H+12:"\u0ab8\u0abe\u0a82\u0a9c"===I?H+12:void 0},meridiem:function(H,I,B){return H<4?"\u0ab0\u0abe\u0aa4":H<10?"\u0ab8\u0ab5\u0abe\u0ab0":H<17?"\u0aac\u0aaa\u0acb\u0ab0":H<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(E(5439))},7536:function(z,W,E){!function(x){"use strict";x.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(P){return 2===P?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":P+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(P){return 2===P?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":P+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(P){return 2===P?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":P+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(P){return 2===P?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":P%10==0&&10!==P?P+" \u05e9\u05e0\u05d4":P+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(P){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(P)},meridiem:function(P,D,H){return P<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":P<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":P<12?H?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":P<18?H?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(E(5439))},6335:function(z,W,E){!function(x){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},P={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},D=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];x.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:D,longMonthsParse:D,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(B){return B.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(Y){return P[Y]})},postformat:function(B){return B.replace(/\d/g,function(Y){return n[Y]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(B,Y){return 12===B&&(B=0),"\u0930\u093e\u0924"===Y?B<4?B:B+12:"\u0938\u0941\u092c\u0939"===Y?B:"\u0926\u094b\u092a\u0939\u0930"===Y?B>=10?B:B+12:"\u0936\u093e\u092e"===Y?B+12:void 0},meridiem:function(B,Y,G){return B<4?"\u0930\u093e\u0924":B<10?"\u0938\u0941\u092c\u0939":B<17?"\u0926\u094b\u092a\u0939\u0930":B<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(E(5439))},7458:function(z,W,E){!function(x){"use strict";function n(D,H,I){var B=D+" ";switch(I){case"ss":return B+(1===D?"sekunda":2===D||3===D||4===D?"sekunde":"sekundi");case"m":return H?"jedna minuta":"jedne minute";case"mm":return B+(1===D?"minuta":2===D||3===D||4===D?"minute":"minuta");case"h":return H?"jedan sat":"jednog sata";case"hh":return B+(1===D?"sat":2===D||3===D||4===D?"sata":"sati");case"dd":return B+(1===D?"dan":"dana");case"MM":return B+(1===D?"mjesec":2===D||3===D||4===D?"mjeseca":"mjeseci");case"yy":return B+(1===D?"godina":2===D||3===D||4===D?"godine":"godina")}}x.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6540:function(z,W,E){!function(x){"use strict";var n="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function P(I,B,Y,G){var ee=I;switch(Y){case"s":return G||B?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return ee+(G||B)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(G||B?" perc":" perce");case"mm":return ee+(G||B?" perc":" perce");case"h":return"egy"+(G||B?" \xf3ra":" \xf3r\xe1ja");case"hh":return ee+(G||B?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(G||B?" nap":" napja");case"dd":return ee+(G||B?" nap":" napja");case"M":return"egy"+(G||B?" h\xf3nap":" h\xf3napja");case"MM":return ee+(G||B?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(G||B?" \xe9v":" \xe9ve");case"yy":return ee+(G||B?" \xe9v":" \xe9ve")}return""}function D(I){return(I?"":"[m\xfalt] ")+"["+n[this.day()]+"] LT[-kor]"}x.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(I){return"u"===I.charAt(1).toLowerCase()},meridiem:function(I,B,Y){return I<12?!0===Y?"de":"DE":!0===Y?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return D.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return D.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:P,ss:P,m:P,mm:P,h:P,hh:P,d:P,dd:P,M:P,MM:P,y:P,yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},5283:function(z,W,E){!function(x){"use strict";x.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(P){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(P)},meridiem:function(P){return P<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":P<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":P<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(P,D){switch(D){case"DDD":case"w":case"W":case"DDDo":return 1===P?P+"-\u056b\u0576":P+"-\u0580\u0564";default:return P}},week:{dow:1,doy:7}})}(E(5439))},8780:function(z,W,E){!function(x){"use strict";x.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(P,D){return 12===P&&(P=0),"pagi"===D?P:"siang"===D?P>=11?P:P+12:"sore"===D||"malam"===D?P+12:void 0},meridiem:function(P,D,H){return P<11?"pagi":P<15?"siang":P<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(E(5439))},4205:function(z,W,E){!function(x){"use strict";function n(H){return H%100==11||H%10!=1}function P(H,I,B,Y){var G=H+" ";switch(B){case"s":return I||Y?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return n(H)?G+(I||Y?"sek\xfandur":"sek\xfandum"):G+"sek\xfanda";case"m":return I?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return n(H)?G+(I||Y?"m\xedn\xfatur":"m\xedn\xfatum"):I?G+"m\xedn\xfata":G+"m\xedn\xfatu";case"hh":return n(H)?G+(I||Y?"klukkustundir":"klukkustundum"):G+"klukkustund";case"d":return I?"dagur":Y?"dag":"degi";case"dd":return n(H)?I?G+"dagar":G+(Y?"daga":"d\xf6gum"):I?G+"dagur":G+(Y?"dag":"degi");case"M":return I?"m\xe1nu\xf0ur":Y?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return n(H)?I?G+"m\xe1nu\xf0ir":G+(Y?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):I?G+"m\xe1nu\xf0ur":G+(Y?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return I||Y?"\xe1r":"\xe1ri";case"yy":return n(H)?G+(I||Y?"\xe1r":"\xe1rum"):G+(I||Y?"\xe1r":"\xe1ri")}}x.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:P,ss:P,m:P,mm:P,h:"klukkustund",hh:P,d:P,dd:P,M:P,MM:P,y:P,yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9985:function(z,W,E){!function(x){"use strict";x.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(P){return(/^[0-9].+$/.test(P)?"tra":"in")+" "+P},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},4211:function(z,W,E){!function(x){"use strict";x.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},1003:function(z,W,E){!function(x){"use strict";x.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(P,D){return"\u5143"===D[1]?1:parseInt(D[1]||P,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(P){return"\u5348\u5f8c"===P},meridiem:function(P,D,H){return P<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(P){return P.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(P){return this.week()!==P.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(P,D){switch(D){case"y":return 1===P?"\u5143\u5e74":P+"\u5e74";case"d":case"D":case"DDD":return P+"\u65e5";default:return P}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(E(5439))},420:function(z,W,E){!function(x){"use strict";x.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(P,D){return 12===P&&(P=0),"enjing"===D?P:"siyang"===D?P>=11?P:P+12:"sonten"===D||"ndalu"===D?P+12:void 0},meridiem:function(P,D,H){return P<11?"enjing":P<15?"siyang":P<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(E(5439))},851:function(z,W,E){!function(x){"use strict";x.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(P){return P.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(D,H,I){return"\u10d8"===I?H+"\u10e8\u10d8":H+I+"\u10e8\u10d8"})},past:function(P){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(P)?P.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(P)?P.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):P},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(P){return 0===P?P:1===P?P+"-\u10da\u10d8":P<20||P<=100&&P%20==0||P%100==0?"\u10db\u10d4-"+P:P+"-\u10d4"},week:{dow:1,doy:7}})}(E(5439))},6074:function(z,W,E){!function(x){"use strict";var n={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};x.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},3343:function(z,W,E){!function(x){"use strict";var n={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},P={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};x.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(H){return"\u179b\u17d2\u1784\u17b6\u1785"===H},meridiem:function(H,I,B){return H<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(H){return H.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},week:{dow:1,doy:4}})}(E(5439))},4799:function(z,W,E){!function(x){"use strict";var n={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},P={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};x.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(H){return H.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===I?H<4?H:H+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===I?H:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===I?H>=10?H:H+12:"\u0cb8\u0c82\u0c9c\u0cc6"===I?H+12:void 0},meridiem:function(H,I,B){return H<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":H<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":H<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":H<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(H){return H+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(E(5439))},3549:function(z,W,E){!function(x){"use strict";x.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"\uc77c";case"M":return P+"\uc6d4";case"w":case"W":return P+"\uc8fc";default:return P}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(P){return"\uc624\ud6c4"===P},meridiem:function(P,D,H){return P<12?"\uc624\uc804":"\uc624\ud6c4"}})}(E(5439))},1037:function(z,W,E){!function(x){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},P={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},D=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];x.defineLocale("ku",{months:D,monthsShort:D,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(I){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(I)},meridiem:function(I,B,Y){return I<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(I){return I.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(B){return P[B]}).replace(/\u060c/g,",")},postformat:function(I){return I.replace(/\d/g,function(B){return n[B]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},3125:function(z,W,E){!function(x){"use strict";var n={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};x.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},9586:function(z,W,E){!function(x){"use strict";function n(B,Y,G,ee){var te={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return Y?te[G][0]:te[G][1]}function H(B){if(B=parseInt(B,10),isNaN(B))return!1;if(B<0)return!0;if(B<10)return 4<=B&&B<=7;if(B<100){var Y=B%10;return H(0===Y?B/10:Y)}if(B<1e4){for(;B>=10;)B/=10;return H(B)}return H(B/=1e3)}x.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function P(B){return H(B.substr(0,B.indexOf(" ")))?"a "+B:"an "+B},past:function D(B){return H(B.substr(0,B.indexOf(" ")))?"viru "+B:"virun "+B},s:"e puer Sekonnen",ss:"%d Sekonnen",m:n,mm:"%d Minutten",h:n,hh:"%d Stonnen",d:n,dd:"%d Deeg",M:n,MM:"%d M\xe9int",y:n,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2349:function(z,W,E){!function(x){"use strict";x.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(P){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===P},meridiem:function(P,D,H){return P<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(P){return"\u0e97\u0eb5\u0ec8"+P}})}(E(5439))},2400:function(z,W,E){!function(x){"use strict";var n={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function D(G,ee,te,ae){return ee?I(te)[0]:ae?I(te)[1]:I(te)[2]}function H(G){return G%10==0||G>10&&G<20}function I(G){return n[G].split("_")}function B(G,ee,te,ae){var ue=G+" ";return 1===G?ue+D(0,ee,te[0],ae):ee?ue+(H(G)?I(te)[1]:I(te)[0]):ae?ue+I(te)[1]:ue+(H(G)?I(te)[1]:I(te)[2])}x.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function P(G,ee,te,ae){return ee?"kelios sekund\u0117s":ae?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:B,m:D,mm:B,h:D,hh:B,d:D,dd:B,M:D,MM:B,y:D,yy:B},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(G){return G+"-oji"},week:{dow:1,doy:4}})}(E(5439))},9991:function(z,W,E){!function(x){"use strict";var n={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function P(Y,G,ee){return ee?G%10==1&&G%100!=11?Y[2]:Y[3]:G%10==1&&G%100!=11?Y[0]:Y[1]}function D(Y,G,ee){return Y+" "+P(n[ee],Y,G)}function H(Y,G,ee){return P(n[ee],Y,G)}x.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function I(Y,G){return G?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:D,m:H,mm:D,h:H,hh:D,d:H,dd:D,M:H,MM:D,y:H,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8477:function(z,W,E){!function(x){"use strict";var n={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(D,H){return 1===D?H[0]:D>=2&&D<=4?H[1]:H[2]},translate:function(D,H,I){var B=n.words[I];return 1===I.length?H?B[0]:B[1]:D+" "+n.correctGrammaticalCase(D,B)}};x.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:"dan",dd:n.translate,M:"mjesec",MM:n.translate,y:"godinu",yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},5118:function(z,W,E){!function(x){"use strict";x.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},5943:function(z,W,E){!function(x){"use strict";x.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(P){var D=P%10,H=P%100;return 0===P?P+"-\u0435\u0432":0===H?P+"-\u0435\u043d":H>10&&H<20?P+"-\u0442\u0438":1===D?P+"-\u0432\u0438":2===D?P+"-\u0440\u0438":7===D||8===D?P+"-\u043c\u0438":P+"-\u0442\u0438"},week:{dow:1,doy:7}})}(E(5439))},3849:function(z,W,E){!function(x){"use strict";x.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(P,D){return 12===P&&(P=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===D&&P>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===D||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===D?P+12:P},meridiem:function(P,D,H){return P<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":P<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":P<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":P<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(E(5439))},1977:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){switch(I){case"s":return H?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return D+(H?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return D+(H?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return D+(H?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return D+(H?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return D+(H?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return D+(H?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return D}}x.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(D){return"\u04ae\u0425"===D},meridiem:function(D,H,I){return D<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(D,H){switch(H){case"d":case"D":case"DDD":return D+" \u04e9\u0434\u04e9\u0440";default:return D}}})}(E(5439))},6184:function(z,W,E){!function(x){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},P={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function D(I,B,Y,G){var ee="";if(B)switch(Y){case"s":ee="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":ee="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":ee="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":ee="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":ee="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":ee="%d \u0924\u093e\u0938";break;case"d":ee="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":ee="%d \u0926\u093f\u0935\u0938";break;case"M":ee="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":ee="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":ee="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":ee="%d \u0935\u0930\u094d\u0937\u0947"}else switch(Y){case"s":ee="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":ee="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":ee="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":ee="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":ee="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":ee="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":ee="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":ee="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":ee="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":ee="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":ee="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":ee="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return ee.replace(/%d/i,I)}x.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},preparse:function(I){return I.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(B){return P[B]})},postformat:function(I){return I.replace(/\d/g,function(B){return n[B]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(I,B){return 12===I&&(I=0),"\u092a\u0939\u093e\u091f\u0947"===B||"\u0938\u0915\u093e\u0933\u0940"===B?I:"\u0926\u0941\u092a\u093e\u0930\u0940"===B||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===B||"\u0930\u093e\u0924\u094d\u0930\u0940"===B?I>=12?I:I+12:void 0},meridiem:function(I,B,Y){return I>=0&&I<6?"\u092a\u0939\u093e\u091f\u0947":I<12?"\u0938\u0915\u093e\u0933\u0940":I<17?"\u0926\u0941\u092a\u093e\u0930\u0940":I<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(E(5439))},4524:function(z,W,E){!function(x){"use strict";x.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(P,D){return 12===P&&(P=0),"pagi"===D?P:"tengahari"===D?P>=11?P:P+12:"petang"===D||"malam"===D?P+12:void 0},meridiem:function(P,D,H){return P<11?"pagi":P<15?"tengahari":P<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(E(5439))},485:function(z,W,E){!function(x){"use strict";x.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(P,D){return 12===P&&(P=0),"pagi"===D?P:"tengahari"===D?P>=11?P:P+12:"petang"===D||"malam"===D?P+12:void 0},meridiem:function(P,D,H){return P<11?"pagi":P<15?"tengahari":P<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(E(5439))},6681:function(z,W,E){!function(x){"use strict";x.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},2024:function(z,W,E){!function(x){"use strict";var n={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},P={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};x.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(H){return H.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},week:{dow:1,doy:4}})}(E(5439))},2688:function(z,W,E){!function(x){"use strict";x.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8914:function(z,W,E){!function(x){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},P={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};x.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(H){return H.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u0930\u093e\u0924\u093f"===I?H<4?H:H+12:"\u092c\u093f\u0939\u093e\u0928"===I?H:"\u0926\u093f\u0909\u0901\u0938\u094b"===I?H>=10?H:H+12:"\u0938\u093e\u0901\u091d"===I?H+12:void 0},meridiem:function(H,I,B){return H<3?"\u0930\u093e\u0924\u093f":H<12?"\u092c\u093f\u0939\u093e\u0928":H<16?"\u0926\u093f\u0909\u0901\u0938\u094b":H<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(E(5439))},2272:function(z,W,E){!function(x){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),P="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),D=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],H=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;x.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(B){return B+(1===B||8===B||B>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1758:function(z,W,E){!function(x){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),P="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),D=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],H=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;x.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(B){return B+(1===B||8===B||B>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1510:function(z,W,E){!function(x){"use strict";x.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2797:function(z,W,E){!function(x){"use strict";x.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(P,D){var H=1===P?"r":2===P?"n":3===P?"r":4===P?"t":"\xe8";return("w"===D||"W"===D)&&(H="a"),P+H},week:{dow:1,doy:4}})}(E(5439))},7944:function(z,W,E){!function(x){"use strict";var n={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},P={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};x.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(H){return H.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u0a30\u0a3e\u0a24"===I?H<4?H:H+12:"\u0a38\u0a35\u0a47\u0a30"===I?H:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===I?H>=10?H:H+12:"\u0a38\u0a3c\u0a3e\u0a2e"===I?H+12:void 0},meridiem:function(H,I,B){return H<4?"\u0a30\u0a3e\u0a24":H<10?"\u0a38\u0a35\u0a47\u0a30":H<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":H<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(E(5439))},1605:function(z,W,E){!function(x){"use strict";var n="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),P="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),D=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function H(Y){return Y%10<5&&Y%10>1&&~~(Y/10)%10!=1}function I(Y,G,ee){var te=Y+" ";switch(ee){case"ss":return te+(H(Y)?"sekundy":"sekund");case"m":return G?"minuta":"minut\u0119";case"mm":return te+(H(Y)?"minuty":"minut");case"h":return G?"godzina":"godzin\u0119";case"hh":return te+(H(Y)?"godziny":"godzin");case"ww":return te+(H(Y)?"tygodnie":"tygodni");case"MM":return te+(H(Y)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return te+(H(Y)?"lata":"lat")}}x.defineLocale("pl",{months:function(Y,G){return Y?/D MMMM/.test(G)?P[Y.month()]:n[Y.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:I,m:I,mm:I,h:I,hh:I,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:I,M:"miesi\u0105c",MM:I,y:"rok",yy:I},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3840:function(z,W,E){!function(x){"use strict";x.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(E(5439))},4225:function(z,W,E){!function(x){"use strict";x.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},5128:function(z,W,E){!function(x){"use strict";function n(D,H,I){var Y=" ";return(D%100>=20||D>=100&&D%100==0)&&(Y=" de "),D+Y+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[I]}x.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:n,m:"un minut",mm:n,h:"o or\u0103",hh:n,d:"o zi",dd:n,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:n,M:"o lun\u0103",MM:n,y:"un an",yy:n},week:{dow:1,doy:7}})}(E(5439))},5127:function(z,W,E){!function(x){"use strict";function P(I,B,Y){return"m"===Y?B?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":I+" "+function n(I,B){var Y=I.split("_");return B%10==1&&B%100!=11?Y[0]:B%10>=2&&B%10<=4&&(B%100<10||B%100>=20)?Y[1]:Y[2]}({ss:B?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:B?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[Y],+I)}var D=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];x.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:D,longMonthsParse:D,shortMonthsParse:D,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(I){if(I.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(I){if(I.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:P,m:P,mm:P,h:"\u0447\u0430\u0441",hh:P,d:"\u0434\u0435\u043d\u044c",dd:P,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:P,M:"\u043c\u0435\u0441\u044f\u0446",MM:P,y:"\u0433\u043e\u0434",yy:P},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(I){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(I)},meridiem:function(I,B,Y){return I<4?"\u043d\u043e\u0447\u0438":I<12?"\u0443\u0442\u0440\u0430":I<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(I,B){switch(B){case"M":case"d":case"DDD":return I+"-\u0439";case"D":return I+"-\u0433\u043e";case"w":case"W":return I+"-\u044f";default:return I}},week:{dow:1,doy:4}})}(E(5439))},2525:function(z,W,E){!function(x){"use strict";var n=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],P=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];x.defineLocale("sd",{months:n,monthsShort:n,weekdays:P,weekdaysShort:P,weekdaysMin:P,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(H){return"\u0634\u0627\u0645"===H},meridiem:function(H,I,B){return H<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(H){return H.replace(/\u060c/g,",")},postformat:function(H){return H.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(E(5439))},9893:function(z,W,E){!function(x){"use strict";x.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3123:function(z,W,E){!function(x){"use strict";x.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(P){return P+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(P){return"\u0db4.\u0dc0."===P||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===P},meridiem:function(P,D,H){return P>11?H?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":H?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(E(5439))},3027:function(z,W,E){!function(x){"use strict";var n="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),P="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function D(B){return B>1&&B<5}function H(B,Y,G,ee){var te=B+" ";switch(G){case"s":return Y||ee?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return Y||ee?te+(D(B)?"sekundy":"sek\xfand"):te+"sekundami";case"m":return Y?"min\xfata":ee?"min\xfatu":"min\xfatou";case"mm":return Y||ee?te+(D(B)?"min\xfaty":"min\xfat"):te+"min\xfatami";case"h":return Y?"hodina":ee?"hodinu":"hodinou";case"hh":return Y||ee?te+(D(B)?"hodiny":"hod\xedn"):te+"hodinami";case"d":return Y||ee?"de\u0148":"d\u0148om";case"dd":return Y||ee?te+(D(B)?"dni":"dn\xed"):te+"d\u0148ami";case"M":return Y||ee?"mesiac":"mesiacom";case"MM":return Y||ee?te+(D(B)?"mesiace":"mesiacov"):te+"mesiacmi";case"y":return Y||ee?"rok":"rokom";case"yy":return Y||ee?te+(D(B)?"roky":"rokov"):te+"rokmi"}}x.defineLocale("sk",{months:n,monthsShort:P,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:H,ss:H,m:H,mm:H,h:H,hh:H,d:H,dd:H,M:H,MM:H,y:H,yy:H},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8106:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y=D+" ";switch(I){case"s":return H||B?"nekaj sekund":"nekaj sekundami";case"ss":return Y+(1===D?H?"sekundo":"sekundi":2===D?H||B?"sekundi":"sekundah":D<5?H||B?"sekunde":"sekundah":"sekund");case"m":return H?"ena minuta":"eno minuto";case"mm":return Y+(1===D?H?"minuta":"minuto":2===D?H||B?"minuti":"minutama":D<5?H||B?"minute":"minutami":H||B?"minut":"minutami");case"h":return H?"ena ura":"eno uro";case"hh":return Y+(1===D?H?"ura":"uro":2===D?H||B?"uri":"urama":D<5?H||B?"ure":"urami":H||B?"ur":"urami");case"d":return H||B?"en dan":"enim dnem";case"dd":return Y+(1===D?H||B?"dan":"dnem":2===D?H||B?"dni":"dnevoma":H||B?"dni":"dnevi");case"M":return H||B?"en mesec":"enim mesecem";case"MM":return Y+(1===D?H||B?"mesec":"mesecem":2===D?H||B?"meseca":"mesecema":D<5?H||B?"mesece":"meseci":H||B?"mesecev":"meseci");case"y":return H||B?"eno leto":"enim letom";case"yy":return Y+(1===D?H||B?"leto":"letom":2===D?H||B?"leti":"letoma":D<5?H||B?"leta":"leti":H||B?"let":"leti")}}x.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},8799:function(z,W,E){!function(x){"use strict";x.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(P){return"M"===P.charAt(0)},meridiem:function(P,D,H){return P<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2872:function(z,W,E){!function(x){"use strict";var n={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(D,H){return D%10>=1&&D%10<=4&&(D%100<10||D%100>=20)?D%10==1?H[0]:H[1]:H[2]},translate:function(D,H,I,B){var G,Y=n.words[I];return 1===I.length?"y"===I&&H?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":B||H?Y[0]:Y[1]:(G=n.correctGrammaticalCase(D,Y),"yy"===I&&H&&"\u0433\u043e\u0434\u0438\u043d\u0443"===G?D+" \u0433\u043e\u0434\u0438\u043d\u0430":D+" "+G)}};x.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},7949:function(z,W,E){!function(x){"use strict";var n={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(D,H){return D%10>=1&&D%10<=4&&(D%100<10||D%100>=20)?D%10==1?H[0]:H[1]:H[2]},translate:function(D,H,I,B){var G,Y=n.words[I];return 1===I.length?"y"===I&&H?"jedna godina":B||H?Y[0]:Y[1]:(G=n.correctGrammaticalCase(D,Y),"yy"===I&&H&&"godinu"===G?D+" godina":D+" "+G)}};x.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6167:function(z,W,E){!function(x){"use strict";x.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(P,D,H){return P<11?"ekuseni":P<15?"emini":P<19?"entsambama":"ebusuku"},meridiemHour:function(P,D){return 12===P&&(P=0),"ekuseni"===D?P:"emini"===D?P>=11?P:P+12:"entsambama"===D||"ebusuku"===D?0===P?0:P+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(E(5439))},9713:function(z,W,E){!function(x){"use strict";x.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?":e":1===D||2===D?":a":":e")},week:{dow:1,doy:4}})}(E(5439))},1982:function(z,W,E){!function(x){"use strict";x.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(E(5439))},2732:function(z,W,E){!function(x){"use strict";var n={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},P={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};x.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(H){return H+"\u0bb5\u0ba4\u0bc1"},preparse:function(H){return H.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(H,I,B){return H<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":H<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":H<10?" \u0b95\u0bbe\u0bb2\u0bc8":H<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":H<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":H<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(H,I){return 12===H&&(H=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===I?H<2?H:H+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===I||"\u0b95\u0bbe\u0bb2\u0bc8"===I||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===I&&H>=10?H:H+12},week:{dow:0,doy:6}})}(E(5439))},3636:function(z,W,E){!function(x){"use strict";x.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===D?P<4?P:P+12:"\u0c09\u0c26\u0c2f\u0c02"===D?P:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===D?P>=10?P:P+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===D?P+12:void 0},meridiem:function(P,D,H){return P<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":P<10?"\u0c09\u0c26\u0c2f\u0c02":P<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":P<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(E(5439))},2115:function(z,W,E){!function(x){"use strict";x.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},9801:function(z,W,E){!function(x){"use strict";var n={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};x.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(D,H){return 12===D&&(D=0),"\u0448\u0430\u0431"===H?D<4?D:D+12:"\u0441\u0443\u0431\u04b3"===H?D:"\u0440\u04ef\u0437"===H?D>=11?D:D+12:"\u0431\u0435\u0433\u043e\u04b3"===H?D+12:void 0},meridiem:function(D,H,I){return D<4?"\u0448\u0430\u0431":D<11?"\u0441\u0443\u0431\u04b3":D<16?"\u0440\u04ef\u0437":D<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},2868:function(z,W,E){!function(x){"use strict";x.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(P){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===P},meridiem:function(P,D,H){return P<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(E(5439))},1310:function(z,W,E){!function(x){"use strict";var n={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};x.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(D,H){switch(H){case"d":case"D":case"Do":case"DD":return D;default:if(0===D)return D+"'unjy";var I=D%10;return D+(n[I]||n[D%100-I]||n[D>=100?100:null])}},week:{dow:1,doy:7}})}(E(5439))},2360:function(z,W,E){!function(x){"use strict";x.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(P){return P},week:{dow:1,doy:4}})}(E(5439))},6645:function(z,W,E){!function(x){"use strict";var n="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function H(Y,G,ee,te){var ae=function I(Y){var G=Math.floor(Y%1e3/100),ee=Math.floor(Y%100/10),te=Y%10,ae="";return G>0&&(ae+=n[G]+"vatlh"),ee>0&&(ae+=(""!==ae?" ":"")+n[ee]+"maH"),te>0&&(ae+=(""!==ae?" ":"")+n[te]),""===ae?"pagh":ae}(Y);switch(ee){case"ss":return ae+" lup";case"mm":return ae+" tup";case"hh":return ae+" rep";case"dd":return ae+" jaj";case"MM":return ae+" jar";case"yy":return ae+" DIS"}}x.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function P(Y){var G=Y;return-1!==Y.indexOf("jaj")?G.slice(0,-3)+"leS":-1!==Y.indexOf("jar")?G.slice(0,-3)+"waQ":-1!==Y.indexOf("DIS")?G.slice(0,-3)+"nem":G+" pIq"},past:function D(Y){var G=Y;return-1!==Y.indexOf("jaj")?G.slice(0,-3)+"Hu\u2019":-1!==Y.indexOf("jar")?G.slice(0,-3)+"wen":-1!==Y.indexOf("DIS")?G.slice(0,-3)+"ben":G+" ret"},s:"puS lup",ss:H,m:"wa\u2019 tup",mm:H,h:"wa\u2019 rep",hh:H,d:"wa\u2019 jaj",dd:H,M:"wa\u2019 jar",MM:H,y:"wa\u2019 DIS",yy:H},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8374:function(z,W,E){!function(x){"use strict";var n={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};x.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(D,H,I){return D<12?I?"\xf6\xf6":"\xd6\xd6":I?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(D){return"\xf6s"===D||"\xd6S"===D},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(D,H){switch(H){case"d":case"D":case"Do":case"DD":return D;default:if(0===D)return D+"'\u0131nc\u0131";var I=D%10;return D+(n[I]||n[D%100-I]||n[D>=100?100:null])}},week:{dow:1,doy:7}})}(E(5439))},256:function(z,W,E){!function(x){"use strict";function P(D,H,I,B){var Y={s:["viensas secunds","'iensas secunds"],ss:[D+" secunds",D+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[D+" m\xeduts",D+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[D+" \xfeoras",D+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[D+" ziuas",D+" ziuas"],M:["'n mes","'iens mes"],MM:[D+" mesen",D+" mesen"],y:["'n ar","'iens ar"],yy:[D+" ars",D+" ars"]};return B||H?Y[I][0]:Y[I][1]}x.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(D){return"d'o"===D.toLowerCase()},meridiem:function(D,H,I){return D>11?I?"d'o":"D'O":I?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:P,ss:P,m:P,mm:P,h:P,hh:P,d:P,dd:P,M:P,MM:P,y:P,yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},1631:function(z,W,E){!function(x){"use strict";x.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(E(5439))},1595:function(z,W,E){!function(x){"use strict";x.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(E(5439))},6050:function(z,W,E){!function(x){"use strict";x.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===D||"\u0633\u06d5\u06be\u06d5\u0631"===D||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===D?P:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===D||"\u0643\u06d5\u0686"===D?P+12:P>=11?P:P+12},meridiem:function(P,D,H){var I=100*P+D;return I<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":I<900?"\u0633\u06d5\u06be\u06d5\u0631":I<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":I<1230?"\u0686\u06c8\u0634":I<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return P+"-\u06be\u06d5\u067e\u062a\u06d5";default:return P}},preparse:function(P){return P.replace(/\u060c/g,",")},postformat:function(P){return P.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(E(5439))},5610:function(z,W,E){!function(x){"use strict";function P(B,Y,G){return"m"===G?Y?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===G?Y?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":B+" "+function n(B,Y){var G=B.split("_");return Y%10==1&&Y%100!=11?G[0]:Y%10>=2&&Y%10<=4&&(Y%100<10||Y%100>=20)?G[1]:G[2]}({ss:Y?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:Y?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:Y?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[G],+B)}function H(B){return function(){return B+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}x.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function D(B,Y){var G={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===B?G.nominative.slice(1,7).concat(G.nominative.slice(0,1)):B?G[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(Y)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(Y)?"genitive":"nominative"][B.day()]:G.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:H("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:H("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:H("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:H("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return H("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return H("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:P,m:P,mm:P,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:P,d:"\u0434\u0435\u043d\u044c",dd:P,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:P,y:"\u0440\u0456\u043a",yy:P},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(B){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(B)},meridiem:function(B,Y,G){return B<4?"\u043d\u043e\u0447\u0456":B<12?"\u0440\u0430\u043d\u043a\u0443":B<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(B,Y){switch(Y){case"M":case"d":case"DDD":case"w":case"W":return B+"-\u0439";case"D":return B+"-\u0433\u043e";default:return B}},week:{dow:1,doy:7}})}(E(5439))},6077:function(z,W,E){!function(x){"use strict";var n=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],P=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];x.defineLocale("ur",{months:n,monthsShort:n,weekdays:P,weekdaysShort:P,weekdaysMin:P,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(H){return"\u0634\u0627\u0645"===H},meridiem:function(H,I,B){return H<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(H){return H.replace(/\u060c/g,",")},postformat:function(H){return H.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(E(5439))},2207:function(z,W,E){!function(x){"use strict";x.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(E(5439))},2862:function(z,W,E){!function(x){"use strict";x.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(E(5439))},8093:function(z,W,E){!function(x){"use strict";x.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(P){return/^ch$/i.test(P)},meridiem:function(P,D,H){return P<12?H?"sa":"SA":H?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(P){return P},week:{dow:1,doy:4}})}(E(5439))},5590:function(z,W,E){!function(x){"use strict";x.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},9058:function(z,W,E){!function(x){"use strict";x.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(E(5439))},7908:function(z,W,E){!function(x){"use strict";x.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?P:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?P+12:P>=11?P:P+12},meridiem:function(P,D,H){var I=100*P+D;return I<600?"\u51cc\u6668":I<900?"\u65e9\u4e0a":I<1130?"\u4e0a\u5348":I<1230?"\u4e2d\u5348":I<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(P){return P.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(P){return this.week()!==P.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"\u65e5";case"M":return P+"\u6708";case"w":case"W":return P+"\u5468";default:return P}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(E(5439))},8867:function(z,W,E){!function(x){"use strict";x.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?P:"\u4e2d\u5348"===D?P>=11?P:P+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?P+12:void 0},meridiem:function(P,D,H){var I=100*P+D;return I<600?"\u51cc\u6668":I<900?"\u65e9\u4e0a":I<1200?"\u4e0a\u5348":1200===I?"\u4e2d\u5348":I<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"\u65e5";case"M":return P+"\u6708";case"w":case"W":return P+"\u9031";default:return P}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},1133:function(z,W,E){!function(x){"use strict";x.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?P:"\u4e2d\u5348"===D?P>=11?P:P+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?P+12:void 0},meridiem:function(P,D,H){var I=100*P+D;return I<600?"\u51cc\u6668":I<900?"\u65e9\u4e0a":I<1130?"\u4e0a\u5348":I<1230?"\u4e2d\u5348":I<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"\u65e5";case"M":return P+"\u6708";case"w":case"W":return P+"\u9031";default:return P}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},3291:function(z,W,E){!function(x){"use strict";x.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?P:"\u4e2d\u5348"===D?P>=11?P:P+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?P+12:void 0},meridiem:function(P,D,H){var I=100*P+D;return I<600?"\u51cc\u6668":I<900?"\u65e9\u4e0a":I<1130?"\u4e0a\u5348":I<1230?"\u4e2d\u5348":I<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"\u65e5";case"M":return P+"\u6708";case"w":case"W":return P+"\u9031";default:return P}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},5439:function(z,W,E){(z=E.nmd(z)).exports=function(){"use strict";var x,_e;function n(){return x.apply(null,arguments)}function D(S){return S instanceof Array||"[object Array]"===Object.prototype.toString.call(S)}function H(S){return null!=S&&"[object Object]"===Object.prototype.toString.call(S)}function I(S,k){return Object.prototype.hasOwnProperty.call(S,k)}function B(S){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(S).length;var k;for(k in S)if(I(S,k))return!1;return!0}function Y(S){return void 0===S}function G(S){return"number"==typeof S||"[object Number]"===Object.prototype.toString.call(S)}function ee(S){return S instanceof Date||"[object Date]"===Object.prototype.toString.call(S)}function te(S,k){var q,V=[],Q=S.length;for(q=0;q>>0;for(q=0;q0)for(V=0;V=0?V?"+":"":"-")+Math.pow(10,Math.max(0,k-q.length)).toString().substr(1)+q}var Kt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Qe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ci={},Mi={};function Ge(S,k,V,q){var Q=q;"string"==typeof q&&(Q=function(){return this[q]()}),S&&(Mi[S]=Q),k&&(Mi[k[0]]=function(){return Bt(Q.apply(this,arguments),k[1],k[2])}),V&&(Mi[V]=function(){return this.localeData().ordinal(Q.apply(this,arguments),S)})}function Xt(S){return S.match(/\[[\s\S]/)?S.replace(/^\[|\]$/g,""):S.replace(/\\/g,"")}function En(S,k){return S.isValid()?(k=aa(k,S.localeData()),ci[k]=ci[k]||function Cr(S){var V,q,k=S.match(Kt);for(V=0,q=k.length;V=0&&Qe.test(S);)S=S.replace(Qe,q),Qe.lastIndex=0,V-=1;return S}var Ar={};function Wt(S,k){var V=S.toLowerCase();Ar[V]=Ar[V+"s"]=Ar[k]=S}function di(S){return"string"==typeof S?Ar[S]||Ar[S.toLowerCase()]:void 0}function Io(S){var V,q,k={};for(q in S)I(S,q)&&(V=di(q))&&(k[V]=S[q]);return k}var lr={};function zt(S,k){lr[S]=k}function oe(S){return S%4==0&&S%100!=0||S%400==0}function ie(S){return S<0?Math.ceil(S)||0:Math.floor(S)}function pe(S){var k=+S,V=0;return 0!==k&&isFinite(k)&&(V=ie(k)),V}function Ie(S,k){return function(V){return null!=V?(Dt(this,S,V),n.updateOffset(this,k),this):ft(this,S)}}function ft(S,k){return S.isValid()?S._d["get"+(S._isUTC?"UTC":"")+k]():NaN}function Dt(S,k,V){S.isValid()&&!isNaN(V)&&("FullYear"===k&&oe(S.year())&&1===S.month()&&29===S.date()?(V=pe(V),S._d["set"+(S._isUTC?"UTC":"")+k](V,S.month(),Se(V,S.month()))):S._d["set"+(S._isUTC?"UTC":"")+k](V))}var ti,In=/\d/,Ht=/\d\d/,Vi=/\d{3}/,yt=/\d{4}/,Gt=/[+-]?\d{6}/,wt=/\d\d?/,Qi=/\d\d\d\d?/,jr=/\d\d\d\d\d\d?/,Yn=/\d{1,3}/,Ur=/\d{1,4}/,vr=/[+-]?\d{1,6}/,cr=/\d+/,sa=/[+-]?\d+/,pd=/Z|[+-]\d\d:?\d\d/gi,us=/Z|[+-]\d\d(?::?\d\d)?/gi,Zn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function qe(S,k,V){ti[S]=fe(k)?k:function(q,Q){return q&&V?V:k}}function On(S,k){return I(ti,S)?ti[S](k._strict,k._locale):new RegExp(function We(S){return st(S.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(k,V,q,Q,ce){return V||q||Q||ce}))}(S))}function st(S){return S.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ti={};var Jt={};function xe(S,k){var V,Q,q=k;for("string"==typeof S&&(S=[S]),G(k)&&(q=function(ce,Ae){Ae[k]=pe(ce)}),Q=S.length,V=0;V68?1900:2e3)};var qr=Ie("FullYear",!0);function Hi(S,k,V,q,Q,ce,Ae){var ct;return S<100&&S>=0?(ct=new Date(S+400,k,V,q,Q,ce,Ae),isFinite(ct.getFullYear())&&ct.setFullYear(S)):ct=new Date(S,k,V,q,Q,ce,Ae),ct}function da(S){var k,V;return S<100&&S>=0?((V=Array.prototype.slice.call(arguments))[0]=S+400,k=new Date(Date.UTC.apply(null,V)),isFinite(k.getUTCFullYear())&&k.setUTCFullYear(S)):k=new Date(Date.UTC.apply(null,arguments)),k}function zs(S,k,V){var q=7+k-V;return-(7+da(S,0,q).getUTCDay()-k)%7+q-1}function hs(S,k,V,q,Q){var kt,rn,ct=1+7*(k-1)+(7+V-q)%7+zs(S,q,Q);return ct<=0?rn=Ki(kt=S-1)+ct:ct>Ki(S)?(kt=S+1,rn=ct-Ki(S)):(kt=S,rn=ct),{year:kt,dayOfYear:rn}}function ua(S,k,V){var ce,Ae,q=zs(S.year(),k,V),Q=Math.floor((S.dayOfYear()-q-1)/7)+1;return Q<1?ce=Q+Xi(Ae=S.year()-1,k,V):Q>Xi(S.year(),k,V)?(ce=Q-Xi(S.year(),k,V),Ae=S.year()+1):(Ae=S.year(),ce=Q),{week:ce,year:Ae}}function Xi(S,k,V){var q=zs(S,k,V),Q=zs(S+1,k,V);return(Ki(S)-q+Q)/7}Ge("w",["ww",2],"wo","week"),Ge("W",["WW",2],"Wo","isoWeek"),Wt("week","w"),Wt("isoWeek","W"),zt("week",5),zt("isoWeek",5),qe("w",wt),qe("ww",wt,Ht),qe("W",wt),qe("WW",wt,Ht),ln(["w","ww","W","WW"],function(S,k,V,q){k[q.substr(0,1)]=pe(S)});function fd(S,k){return S.slice(k,7).concat(S.slice(0,k))}Ge("d",0,"do","day"),Ge("dd",0,0,function(S){return this.localeData().weekdaysMin(this,S)}),Ge("ddd",0,0,function(S){return this.localeData().weekdaysShort(this,S)}),Ge("dddd",0,0,function(S){return this.localeData().weekdays(this,S)}),Ge("e",0,0,"weekday"),Ge("E",0,0,"isoWeekday"),Wt("day","d"),Wt("weekday","e"),Wt("isoWeekday","E"),zt("day",11),zt("weekday",11),zt("isoWeekday",11),qe("d",wt),qe("e",wt),qe("E",wt),qe("dd",function(S,k){return k.weekdaysMinRegex(S)}),qe("ddd",function(S,k){return k.weekdaysShortRegex(S)}),qe("dddd",function(S,k){return k.weekdaysRegex(S)}),ln(["dd","ddd","dddd"],function(S,k,V,q){var Q=V._locale.weekdaysParse(S,q,V._strict);null!=Q?k.d=Q:re(V).invalidWeekday=S}),ln(["d","e","E"],function(S,k,V,q){k[q]=pe(S)});var vt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ql="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),zu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Va=Zn,wn=Zn,Oo=Zn;function ha(S,k,V){var q,Q,ce,Ae=S.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],q=0;q<7;++q)ce=ue([2e3,1]).day(q),this._minWeekdaysParse[q]=this.weekdaysMin(ce,"").toLocaleLowerCase(),this._shortWeekdaysParse[q]=this.weekdaysShort(ce,"").toLocaleLowerCase(),this._weekdaysParse[q]=this.weekdays(ce,"").toLocaleLowerCase();return V?"dddd"===k?-1!==(Q=rt.call(this._weekdaysParse,Ae))?Q:null:"ddd"===k?-1!==(Q=rt.call(this._shortWeekdaysParse,Ae))?Q:null:-1!==(Q=rt.call(this._minWeekdaysParse,Ae))?Q:null:"dddd"===k?-1!==(Q=rt.call(this._weekdaysParse,Ae))||-1!==(Q=rt.call(this._shortWeekdaysParse,Ae))||-1!==(Q=rt.call(this._minWeekdaysParse,Ae))?Q:null:"ddd"===k?-1!==(Q=rt.call(this._shortWeekdaysParse,Ae))||-1!==(Q=rt.call(this._weekdaysParse,Ae))||-1!==(Q=rt.call(this._minWeekdaysParse,Ae))?Q:null:-1!==(Q=rt.call(this._minWeekdaysParse,Ae))||-1!==(Q=rt.call(this._weekdaysParse,Ae))||-1!==(Q=rt.call(this._shortWeekdaysParse,Ae))?Q:null}function jo(){function S(Gn,Rr){return Rr.length-Gn.length}var ce,Ae,ct,kt,rn,k=[],V=[],q=[],Q=[];for(ce=0;ce<7;ce++)Ae=ue([2e3,1]).day(ce),ct=st(this.weekdaysMin(Ae,"")),kt=st(this.weekdaysShort(Ae,"")),rn=st(this.weekdays(Ae,"")),k.push(ct),V.push(kt),q.push(rn),Q.push(ct),Q.push(kt),Q.push(rn);k.sort(S),V.sort(S),q.sort(S),Q.sort(S),this._weekdaysRegex=new RegExp("^("+Q.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+V.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+k.join("|")+")","i")}function Zs(){return this.hours()%12||12}function ui(S,k){Ge(S,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),k)})}function No(S,k){return k._meridiemParse}Ge("H",["HH",2],0,"hour"),Ge("h",["hh",2],0,Zs),Ge("k",["kk",2],0,function Uo(){return this.hours()||24}),Ge("hmm",0,0,function(){return""+Zs.apply(this)+Bt(this.minutes(),2)}),Ge("hmmss",0,0,function(){return""+Zs.apply(this)+Bt(this.minutes(),2)+Bt(this.seconds(),2)}),Ge("Hmm",0,0,function(){return""+this.hours()+Bt(this.minutes(),2)}),Ge("Hmmss",0,0,function(){return""+this.hours()+Bt(this.minutes(),2)+Bt(this.seconds(),2)}),ui("a",!0),ui("A",!1),Wt("hour","h"),zt("hour",13),qe("a",No),qe("A",No),qe("H",wt),qe("h",wt),qe("k",wt),qe("HH",wt,Ht),qe("hh",wt,Ht),qe("kk",wt,Ht),qe("hmm",Qi),qe("hmmss",jr),qe("Hmm",Qi),qe("Hmmss",jr),xe(["H","HH"],3),xe(["k","kk"],function(S,k,V){var q=pe(S);k[3]=24===q?0:q}),xe(["a","A"],function(S,k,V){V._isPm=V._locale.isPM(S),V._meridiem=S}),xe(["h","hh"],function(S,k,V){k[3]=pe(S),re(V).bigHour=!0}),xe("hmm",function(S,k,V){var q=S.length-2;k[3]=pe(S.substr(0,q)),k[4]=pe(S.substr(q)),re(V).bigHour=!0}),xe("hmmss",function(S,k,V){var q=S.length-4,Q=S.length-2;k[3]=pe(S.substr(0,q)),k[4]=pe(S.substr(q,2)),k[5]=pe(S.substr(Q)),re(V).bigHour=!0}),xe("Hmm",function(S,k,V){var q=S.length-2;k[3]=pe(S.substr(0,q)),k[4]=pe(S.substr(q))}),xe("Hmmss",function(S,k,V){var q=S.length-4,Q=S.length-2;k[3]=pe(S.substr(0,q)),k[4]=pe(S.substr(q,2)),k[5]=pe(S.substr(Q))});var Zu=Ie("Hours",!0);var pa,qn={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ei,monthsShort:Nr,week:{dow:0,doy:6},weekdays:vt,weekdaysMin:zu,weekdaysShort:Ql,meridiemParse:/[ap]\.?m?\.?/i},An={},Xl={};function er(S,k){var V,q=Math.min(S.length,k.length);for(V=0;V0;){if(Q=fi(ce.slice(0,V).join("-")))return Q;if(q&&q.length>=V&&er(ce,q)>=V-1)break;V--}k++}return pa}(S)}function ve(S){var k,V=S._a;return V&&-2===re(S).overflow&&(k=V[1]<0||V[1]>11?1:V[2]<1||V[2]>Se(V[0],V[1])?2:V[3]<0||V[3]>24||24===V[3]&&(0!==V[4]||0!==V[5]||0!==V[6])?3:V[4]<0||V[4]>59?4:V[5]<0||V[5]>59?5:V[6]<0||V[6]>999?6:-1,re(S)._overflowDayOfYear&&(k<0||k>2)&&(k=2),re(S)._overflowWeeks&&-1===k&&(k=7),re(S)._overflowWeekday&&-1===k&&(k=8),re(S).overflow=k),S}var be=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,at=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vn=/Z|[+-]\d\d(?::?\d\d)?/,on=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],cn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Yt=/^\/?Date\((-?\d+)/i,ii=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,tt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function dn(S){var k,V,ce,Ae,ct,kt,q=S._i,Q=be.exec(q)||at.exec(q),rn=on.length,Gn=cn.length;if(Q){for(re(S).iso=!0,k=0,V=rn;k7)&&(kt=!0)):(ce=S._locale._week.dow,Ae=S._locale._week.doy,rn=ua(hn(),ce,Ae),V=Pn(k.gg,S._a[0],rn.year),q=Pn(k.w,rn.week),null!=k.d?((Q=k.d)<0||Q>6)&&(kt=!0):null!=k.e?(Q=k.e+ce,(k.e<0||k.e>6)&&(kt=!0)):Q=ce),q<1||q>Xi(V,ce,Ae)?re(S)._overflowWeeks=!0:null!=kt?re(S)._overflowWeekday=!0:(ct=hs(V,q,Q,ce,Ae),S._a[0]=ct.year,S._dayOfYear=ct.dayOfYear)}(S),null!=S._dayOfYear&&(Ae=Pn(S._a[0],Q[0]),(S._dayOfYear>Ki(Ae)||0===S._dayOfYear)&&(re(S)._overflowDayOfYear=!0),V=da(Ae,0,S._dayOfYear),S._a[1]=V.getUTCMonth(),S._a[2]=V.getUTCDate()),k=0;k<3&&null==S._a[k];++k)S._a[k]=q[k]=Q[k];for(;k<7;k++)S._a[k]=q[k]=S._a[k]??(2===k?1:0);24===S._a[3]&&0===S._a[4]&&0===S._a[5]&&0===S._a[6]&&(S._nextDay=!0,S._a[3]=0),S._d=(S._useUTC?da:Hi).apply(null,q),ce=S._useUTC?S._d.getUTCDay():S._d.getDay(),null!=S._tzm&&S._d.setUTCMinutes(S._d.getUTCMinutes()-S._tzm),S._nextDay&&(S._a[3]=24),S._w&&typeof S._w.d<"u"&&S._w.d!==ce&&(re(S).weekdayMismatch=!0)}}function nc(S){if(S._f!==n.ISO_8601)if(S._f!==n.RFC_2822){S._a=[],re(S).empty=!0;var V,q,Q,ce,Ae,rn,Gn,k=""+S._i,ct=k.length,kt=0;for(Gn=(Q=aa(S._f,S._locale).match(Kt)||[]).length,V=0;V0&&re(S).unusedInput.push(Ae),k=k.slice(k.indexOf(q)+q.length),kt+=q.length),Mi[ce]?(q?re(S).empty=!1:re(S).unusedTokens.push(ce),sn(ce,q,S)):S._strict&&!q&&re(S).unusedTokens.push(ce);re(S).charsLeftOver=ct-kt,k.length>0&&re(S).unusedInput.push(k),S._a[3]<=12&&!0===re(S).bigHour&&S._a[3]>0&&(re(S).bigHour=void 0),re(S).parsedDateParts=S._a.slice(0),re(S).meridiem=S._meridiem,S._a[3]=function Zt(S,k,V){var q;return null==V?k:null!=S.meridiemHour?S.meridiemHour(k,V):(null!=S.isPM&&((q=S.isPM(V))&&k<12&&(k+=12),!q&&12===k&&(k=0)),k)}(S._locale,S._a[3],S._meridiem),null!==(rn=re(S).era)&&(S._a[0]=S._locale.erasConvertYear(rn,S._a[0])),Pi(S),ve(S)}else ps(S);else dn(S)}function Ri(S){var k=S._i,V=S._f;return S._locale=S._locale||X(S._l),null===k||void 0===V&&""===k?Me({nullInput:!0}):("string"==typeof k&&(S._i=k=S._locale.preparse(k)),Pe(k)?new Ee(ve(k)):(ee(k)?S._d=k:D(V)?function gi(S){var k,V,q,Q,ce,Ae,ct=!1,kt=S._f.length;if(0===kt)return re(S).invalidFormat=!0,void(S._d=new Date(NaN));for(Q=0;Qthis?this:S:Me()});function bd(S,k){var V,q;if(1===k.length&&D(k[0])&&(k=k[0]),!k.length)return hn();for(V=k[0],q=1;q=0?new Date(S+400,k,V)-io:new Date(S,k,V).valueOf()}function Ua(S,k,V){return S<100&&S>=0?Date.UTC(S+400,k,V)-io:Date.UTC(S,k,V)}function hh(S,k){return k.erasAbbrRegex(S)}function ph(){var Q,ce,S=[],k=[],V=[],q=[],Ae=this.eras();for(Q=0,ce=Ae.length;Q(ce=Xi(S,q,Q))&&(k=ce),rl.call(this,S,k,V,q,Q))}function rl(S,k,V,q,Q){var ce=hs(S,k,V,q,Q),Ae=da(ce.year,0,ce.dayOfYear);return this.year(Ae.getUTCFullYear()),this.month(Ae.getUTCMonth()),this.date(Ae.getUTCDate()),this}Ge("N",0,0,"eraAbbr"),Ge("NN",0,0,"eraAbbr"),Ge("NNN",0,0,"eraAbbr"),Ge("NNNN",0,0,"eraName"),Ge("NNNNN",0,0,"eraNarrow"),Ge("y",["y",1],"yo","eraYear"),Ge("y",["yy",2],0,"eraYear"),Ge("y",["yyy",3],0,"eraYear"),Ge("y",["yyyy",4],0,"eraYear"),qe("N",hh),qe("NN",hh),qe("NNN",hh),qe("NNNN",function S_(S,k){return k.erasNameRegex(S)}),qe("NNNNN",function il(S,k){return k.erasNarrowRegex(S)}),xe(["N","NN","NNN","NNNN","NNNNN"],function(S,k,V,q){var Q=V._locale.erasParse(S,q,V._strict);Q?re(V).era=Q:re(V).invalidEra=S}),qe("y",cr),qe("yy",cr),qe("yyy",cr),qe("yyyy",cr),qe("yo",function E_(S,k){return k._eraYearOrdinalRegex||cr}),xe(["y","yy","yyy","yyyy"],0),xe(["yo"],function(S,k,V,q){var Q;V._locale._eraYearOrdinalRegex&&(Q=S.match(V._locale._eraYearOrdinalRegex)),k[0]=V._locale.eraYearOrdinalParse?V._locale.eraYearOrdinalParse(S,Q):parseInt(S,10)}),Ge(0,["gg",2],0,function(){return this.weekYear()%100}),Ge(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Rn("gggg","weekYear"),Rn("ggggg","weekYear"),Rn("GGGG","isoWeekYear"),Rn("GGGGG","isoWeekYear"),Wt("weekYear","gg"),Wt("isoWeekYear","GG"),zt("weekYear",1),zt("isoWeekYear",1),qe("G",sa),qe("g",sa),qe("GG",wt,Ht),qe("gg",wt,Ht),qe("GGGG",Ur,yt),qe("gggg",Ur,yt),qe("GGGGG",vr,Gt),qe("ggggg",vr,Gt),ln(["gggg","ggggg","GGGG","GGGGG"],function(S,k,V,q){k[q.substr(0,2)]=pe(S)}),ln(["gg","GG"],function(S,k,V,q){k[q]=n.parseTwoDigitYear(S)}),Ge("Q",0,"Qo","quarter"),Wt("quarter","Q"),zt("quarter",7),qe("Q",In),xe("Q",function(S,k){k[1]=3*(pe(S)-1)}),Ge("D",["DD",2],"Do","date"),Wt("date","D"),zt("date",9),qe("D",wt),qe("DD",wt,Ht),qe("Do",function(S,k){return S?k._dayOfMonthOrdinalParse||k._ordinalParse:k._dayOfMonthOrdinalParseLenient}),xe(["D","DD"],2),xe("Do",function(S,k){k[2]=pe(S.match(wt)[0])});var Li=Ie("Date",!0);Ge("DDD",["DDDD",3],"DDDo","dayOfYear"),Wt("dayOfYear","DDD"),zt("dayOfYear",4),qe("DDD",Yn),qe("DDDD",Vi),xe(["DDD","DDDD"],function(S,k,V){V._dayOfYear=pe(S)}),Ge("m",["mm",2],0,"minute"),Wt("minute","m"),zt("minute",14),qe("m",wt),qe("mm",wt,Ht),xe(["m","mm"],4);var mf=Ie("Minutes",!1);Ge("s",["ss",2],0,"second"),Wt("second","s"),zt("second",15),qe("s",wt),qe("ss",wt,Ht),xe(["s","ss"],5);var Na,sl,Rd=Ie("Seconds",!1);for(Ge("S",0,0,function(){return~~(this.millisecond()/100)}),Ge(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ge(0,["SSS",3],0,"millisecond"),Ge(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Ge(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Ge(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Ge(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Ge(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Ge(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Wt("millisecond","ms"),zt("millisecond",16),qe("S",Yn,In),qe("SS",Yn,Ht),qe("SSS",Yn,Vi),Na="SSSS";Na.length<=9;Na+="S")qe(Na,cr);function Yi(S,k){k[6]=pe(1e3*("0."+S))}for(Na="S";Na.length<=9;Na+="S")xe(Na,Yi);sl=Ie("Milliseconds",!1),Ge("z",0,0,"zoneAbbr"),Ge("zz",0,0,"zoneName");var Fe=Ee.prototype;function gh(S){return S}Fe.add=yd,Fe.calendar=function Qo(S,k){1===arguments.length&&(arguments[0]?hc(arguments[0])?(S=arguments[0],k=void 0):rh(arguments[0])&&(k=arguments[0],S=void 0):(S=void 0,k=void 0));var V=S||hn(),q=Ci(V,this).startOf("day"),Q=n.calendarFormat(this,q)||"sameElse",ce=k&&(fe(k[Q])?k[Q].call(this,V):k[Q]);return this.format(ce||this.localeData().calendar(Q,this,hn(V)))},Fe.clone=function Cd(){return new Ee(this)},Fe.diff=function ah(S,k,V){var q,Q,ce;if(!this.isValid())return NaN;if(!(q=Ci(S,this)).isValid())return NaN;switch(Q=6e4*(q.utcOffset()-this.utcOffset()),k=di(k)){case"year":ce=Ko(this,q)/12;break;case"month":ce=Ko(this,q);break;case"quarter":ce=Ko(this,q)/3;break;case"second":ce=(this-q)/1e3;break;case"minute":ce=(this-q)/6e4;break;case"hour":ce=(this-q)/36e5;break;case"day":ce=(this-q-Q)/864e5;break;case"week":ce=(this-q-Q)/6048e5;break;default:ce=this-q}return V?ce:ie(ce)},Fe.endOf=function ro(S){var k,V;if(void 0===(S=di(S))||"millisecond"===S||!this.isValid())return this;switch(V=this._isUTC?Ua:Ed,S){case"year":k=V(this.year()+1,0,1)-1;break;case"quarter":k=V(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":k=V(this.year(),this.month()+1,1)-1;break;case"week":k=V(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":k=V(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":k=V(this.year(),this.month(),this.date()+1)-1;break;case"hour":k=this._d.valueOf(),k+=ga-Hr(k+(this._isUTC?0:this.utcOffset()*Dr),ga)-1;break;case"minute":k=this._d.valueOf(),k+=Dr-Hr(k,Dr)-1;break;case"second":k=this._d.valueOf(),k+=1e3-Hr(k,1e3)-1}return this._d.setTime(k),n.updateOffset(this,!0),this},Fe.format=function ja(S){S||(S=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var k=En(this,S);return this.localeData().postformat(k)},Fe.from=function Td(S,k){return this.isValid()&&(Pe(S)&&S.isValid()||hn(S).isValid())?dt({to:this,from:S}).locale(this.locale()).humanize(!k):this.localeData().invalidDate()},Fe.fromNow=function fa(S){return this.from(hn(),S)},Fe.to=function no(S,k){return this.isValid()&&(Pe(S)&&S.isValid()||hn(S).isValid())?dt({from:this,to:S}).locale(this.locale()).humanize(!k):this.localeData().invalidDate()},Fe.toNow=function xd(S){return this.to(hn(),S)},Fe.get=function et(S){return fe(this[S=di(S)])?this[S]():this},Fe.invalidAt=function ws(){return re(this).overflow},Fe.isAfter=function gs(S,k){var V=Pe(S)?S:hn(S);return!(!this.isValid()||!V.isValid())&&("millisecond"===(k=di(k)||"millisecond")?this.valueOf()>V.valueOf():V.valueOf()9999?En(V,k?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fe(Date.prototype.toISOString)?k?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",En(V,"Z")):En(V,k?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Fe.inspect=function vd(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var V,q,S="moment",k="";return this.isLocal()||(S=0===this.utcOffset()?"moment.utc":"moment.parseZone",k="Z"),V="["+S+'("]',q=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(V+q+"-MM-DD[T]HH:mm:ss.SSS"+k+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Fe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Fe.toJSON=function tl(){return this.isValid()?this.toISOString():null},Fe.toString=function ff(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Fe.unix=function ch(){return Math.floor(this.valueOf()/1e3)},Fe.valueOf=function lh(){return this._d.valueOf()-6e4*(this._offset||0)},Fe.creationData=function Wr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Fe.eraName=function uh(){var S,k,V,q=this.localeData().eras();for(S=0,k=q.length;Sthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Fe.isLocal=function dc(){return!!this.isValid()&&!this._isUTC},Fe.isUtcOffset=function zo(){return!!this.isValid()&&this._isUTC},Fe.isUtc=Go,Fe.isUTC=Go,Fe.zoneAbbr=function ol(){return this._isUTC?"UTC":""},Fe.zoneName=function Fa(){return this._isUTC?"Coordinated Universal Time":""},Fe.dates=Ve("dates accessor is deprecated. Use date instead.",Li),Fe.months=Ve("months accessor is deprecated. Use month instead",dr),Fe.years=Ve("years accessor is deprecated. Use year instead",qr),Fe.zone=Ve("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function cc(S,k){return null!=S?("string"!=typeof S&&(S=-S),this.utcOffset(S,k),this):-this.utcOffset()}),Fe.isDSTShifted=Ve("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function qo(){if(!Y(this._isDSTShifted))return this._isDSTShifted;var k,S={};return ke(S,this),(S=Ri(S))._a?(k=S._isUTC?ue(S._a):hn(S._a),this._isDSTShifted=this.isValid()&&function Er(S,k,V){var Ae,q=Math.min(S.length,k.length),Q=Math.abs(S.length-k.length),ce=0;for(Ae=0;Ae0):this._isDSTShifted=!1,this._isDSTShifted});var Ut=we.prototype;function ll(S,k,V,q){var Q=X(),ce=ue().set(q,k);return Q[V](ce,S)}function kd(S,k,V){if(G(S)&&(k=S,S=void 0),S=S||"",null!=k)return ll(S,k,V,"month");var q,Q=[];for(q=0;q<12;q++)Q[q]=ll(S,q,V,"month");return Q}function fc(S,k,V,q){"boolean"==typeof S?(G(k)&&(V=k,k=void 0),k=k||""):(V=k=S,S=!1,G(k)&&(V=k,k=void 0),k=k||"");var Ae,Q=X(),ce=S?Q._week.dow:0,ct=[];if(null!=V)return ll(k,(V+ce)%7,q,"day");for(Ae=0;Ae<7;Ae++)ct[Ae]=ll(k,(Ae+ce)%7,q,"day");return ct}Ut.calendar=function Et(S,k,V){var q=this._calendar[S]||this._calendar.sameElse;return fe(q)?q.call(k,V):q},Ut.longDateFormat=function Ns(S){var k=this._longDateFormat[S],V=this._longDateFormat[S.toUpperCase()];return k||!V?k:(this._longDateFormat[S]=V.match(Kt).map(function(q){return"MMMM"===q||"MM"===q||"DD"===q||"dddd"===q?q.slice(1):q}).join(""),this._longDateFormat[S])},Ut.invalidDate=function Fs(){return this._invalidDate},Ut.ordinal=function ds(S){return this._ordinal.replace("%d",S)},Ut.preparse=gh,Ut.postformat=gh,Ut.relativeTime=function pt(S,k,V,q){var Q=this._relativeTime[V];return fe(Q)?Q(S,k,V,q):Q.replace(/%d/i,S)},Ut.pastFuture=function ei(S,k){var V=this._relativeTime[S>0?"future":"past"];return fe(V)?V(k):V.replace(/%s/i,k)},Ut.set=function ge(S){var k,V;for(V in S)I(S,V)&&(fe(k=S[V])?this[V]=k:this["_"+V]=k);this._config=S,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ut.eras=function nl(S,k){var V,q,Q,ce=this._eras||X("en")._eras;for(V=0,q=ce.length;V=0)return ce[q]},Ut.erasConvertYear=function Dd(S,k){var V=S.since<=S.until?1:-1;return void 0===k?n(S.since).year():n(S.since).year()+(k-S.offset)*V},Ut.erasAbbrRegex=function x_(S){return I(this,"_erasAbbrRegex")||ph.call(this),S?this._erasAbbrRegex:this._erasRegex},Ut.erasNameRegex=function T_(S){return I(this,"_erasNameRegex")||ph.call(this),S?this._erasNameRegex:this._erasRegex},Ut.erasNarrowRegex=function M_(S){return I(this,"_erasNarrowRegex")||ph.call(this),S?this._erasNarrowRegex:this._erasRegex},Ut.months=function Tr(S,k){return S?D(this._months)?this._months[S.month()]:this._months[(this._months.isFormat||qs).test(k)?"format":"standalone"][S.month()]:D(this._months)?this._months:this._months.standalone},Ut.monthsShort=function bn(S,k){return S?D(this._monthsShort)?this._monthsShort[S.month()]:this._monthsShort[qs.test(k)?"format":"standalone"][S.month()]:D(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ut.monthsParse=function la(S,k,V){var q,Q,ce;if(this._monthsParseExact)return Fr.call(this,S,k,V);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),q=0;q<12;q++){if(Q=ue([2e3,q]),V&&!this._longMonthsParse[q]&&(this._longMonthsParse[q]=new RegExp("^"+this.months(Q,"").replace(".","")+"$","i"),this._shortMonthsParse[q]=new RegExp("^"+this.monthsShort(Q,"").replace(".","")+"$","i")),!V&&!this._monthsParse[q]&&(ce="^"+this.months(Q,"")+"|^"+this.monthsShort(Q,""),this._monthsParse[q]=new RegExp(ce.replace(".",""),"i")),V&&"MMMM"===k&&this._longMonthsParse[q].test(S))return q;if(V&&"MMM"===k&&this._shortMonthsParse[q].test(S))return q;if(!V&&this._monthsParse[q].test(S))return q}},Ut.monthsRegex=function ni(S){return this._monthsParseExact?(I(this,"_monthsRegex")||Di.call(this),S?this._monthsStrictRegex:this._monthsRegex):(I(this,"_monthsRegex")||(this._monthsRegex=_t),this._monthsStrictRegex&&S?this._monthsStrictRegex:this._monthsRegex)},Ut.monthsShortRegex=function Yr(S){return this._monthsParseExact?(I(this,"_monthsRegex")||Di.call(this),S?this._monthsShortStrictRegex:this._monthsShortRegex):(I(this,"_monthsShortRegex")||(this._monthsShortRegex=tn),this._monthsShortStrictRegex&&S?this._monthsShortStrictRegex:this._monthsShortRegex)},Ut.week=function mn(S){return ua(S,this._week.dow,this._week.doy).week},Ut.firstDayOfYear=function Gs(){return this._week.doy},Ut.firstDayOfWeek=function it(){return this._week.dow},Ut.weekdays=function Gu(S,k){var V=D(this._weekdays)?this._weekdays:this._weekdays[S&&!0!==S&&this._weekdays.isFormat.test(k)?"format":"standalone"];return!0===S?fd(V,this._week.dow):S?V[S.day()]:V},Ut.weekdaysMin=function $u(S){return!0===S?fd(this._weekdaysMin,this._week.dow):S?this._weekdaysMin[S.day()]:this._weekdaysMin},Ut.weekdaysShort=function Wu(S){return!0===S?fd(this._weekdaysShort,this._week.dow):S?this._weekdaysShort[S.day()]:this._weekdaysShort},Ut.weekdaysParse=function md(S,k,V){var q,Q,ce;if(this._weekdaysParseExact)return ha.call(this,S,k,V);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),q=0;q<7;q++){if(Q=ue([2e3,1]).day(q),V&&!this._fullWeekdaysParse[q]&&(this._fullWeekdaysParse[q]=new RegExp("^"+this.weekdays(Q,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[q]=new RegExp("^"+this.weekdaysShort(Q,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[q]=new RegExp("^"+this.weekdaysMin(Q,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[q]||(ce="^"+this.weekdays(Q,"")+"|^"+this.weekdaysShort(Q,"")+"|^"+this.weekdaysMin(Q,""),this._weekdaysParse[q]=new RegExp(ce.replace(".",""),"i")),V&&"dddd"===k&&this._fullWeekdaysParse[q].test(S))return q;if(V&&"ddd"===k&&this._shortWeekdaysParse[q].test(S))return q;if(V&&"dd"===k&&this._minWeekdaysParse[q].test(S))return q;if(!V&&this._weekdaysParse[q].test(S))return q}},Ut.weekdaysRegex=function gd(S){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||jo.call(this),S?this._weekdaysStrictRegex:this._weekdaysRegex):(I(this,"_weekdaysRegex")||(this._weekdaysRegex=Va),this._weekdaysStrictRegex&&S?this._weekdaysStrictRegex:this._weekdaysRegex)},Ut.weekdaysShortRegex=function $s(S){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||jo.call(this),S?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(I(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=wn),this._weekdaysShortStrictRegex&&S?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ut.weekdaysMinRegex=function Js(S){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||jo.call(this),S?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(I(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Oo),this._weekdaysMinStrictRegex&&S?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ut.isPM=function Ju(S){return"p"===(S+"").toLowerCase().charAt(0)},Ut.meridiem=function y_(S,k,V){return S>11?V?"pm":"PM":V?"am":"AM"},U("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(S){var k=S%10;return S+(1===pe(S%100/10)?"th":1===k?"st":2===k?"nd":3===k?"rd":"th")}}),n.lang=Ve("moment.lang is deprecated. Use moment.locale instead.",U),n.langData=Ve("moment.langData is deprecated. Use moment.localeData instead.",X);var hr=Math.abs;function Ld(S,k,V,q){var Q=dt(k,V);return S._milliseconds+=q*Q._milliseconds,S._days+=q*Q._days,S._months+=q*Q._months,S._bubble()}function cl(S){return S<0?Math.floor(S):Math.ceil(S)}function wf(S){return 4800*S/146097}function Tn(S){return 146097*S/4800}function Pr(S){return function(){return this.as(S)}}var ys=Pr("ms"),pr=Pr("s"),yh=Pr("m"),Ch=Pr("h"),Id=Pr("d"),ul=Pr("w"),Od=Pr("M"),qa=Pr("Q"),yf=Pr("y");function qi(S){return function(){return this.isValid()?this._data[S]:NaN}}var vh=qi("milliseconds"),Cf=qi("seconds"),hl=qi("minutes"),$r=qi("hours"),pl=qi("days"),Af=qi("months"),D_=qi("years");var _a=Math.round,fl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function H_(S,k,V,q,Q){return Q.relativeTime(k||1,!!V,S,q)}var Vd=Math.abs;function vs(S){return(S>0)-(S<0)||+S}function jd(){if(!this.isValid())return this.localeData().invalidDate();var q,Q,ce,Ae,kt,rn,Gn,Rr,S=Vd(this._milliseconds)/1e3,k=Vd(this._days),V=Vd(this._months),ct=this.asSeconds();return ct?(q=ie(S/60),Q=ie(q/60),S%=60,q%=60,ce=ie(V/12),V%=12,Ae=S?S.toFixed(3).replace(/\.?0+$/,""):"",kt=ct<0?"-":"",rn=vs(this._months)!==vs(ct)?"-":"",Gn=vs(this._days)!==vs(ct)?"-":"",Rr=vs(this._milliseconds)!==vs(ct)?"-":"",kt+"P"+(ce?rn+ce+"Y":"")+(V?rn+V+"M":"")+(k?Gn+k+"D":"")+(Q||q||S?"T":"")+(Q?Rr+Q+"H":"")+(q?Rr+q+"M":"")+(S?Rr+Ae+"S":"")):"P0D"}var jt=zr.prototype;return jt.isValid=function It(){return this._isValid},jt.abs=function _f(){var S=this._data;return this._milliseconds=hr(this._milliseconds),this._days=hr(this._days),this._months=hr(this._months),S.milliseconds=hr(S.milliseconds),S.seconds=hr(S.seconds),S.minutes=hr(S.minutes),S.hours=hr(S.hours),S.months=hr(S.months),S.years=hr(S.years),this},jt.add=function _h(S,k){return Ld(this,S,k,1)},jt.subtract=function bf(S,k){return Ld(this,S,k,-1)},jt.as=function bh(S){if(!this.isValid())return NaN;var k,V,q=this._milliseconds;if("month"===(S=di(S))||"quarter"===S||"year"===S)switch(k=this._days+q/864e5,V=this._months+wf(k),S){case"month":return V;case"quarter":return V/3;case"year":return V/12}else switch(k=this._days+Math.round(Tn(this._months)),S){case"week":return k/7+q/6048e5;case"day":return k+q/864e5;case"hour":return 24*k+q/36e5;case"minute":return 1440*k+q/6e4;case"second":return 86400*k+q/1e3;case"millisecond":return Math.floor(864e5*k)+q;default:throw new Error("Unknown unit "+S)}},jt.asMilliseconds=ys,jt.asSeconds=pr,jt.asMinutes=yh,jt.asHours=Ch,jt.asDays=Id,jt.asWeeks=ul,jt.asMonths=Od,jt.asQuarters=qa,jt.asYears=yf,jt.valueOf=function wh(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*pe(this._months/12):NaN},jt._bubble=function dl(){var Q,ce,Ae,ct,kt,S=this._milliseconds,k=this._days,V=this._months,q=this._data;return S>=0&&k>=0&&V>=0||S<=0&&k<=0&&V<=0||(S+=864e5*cl(Tn(V)+k),k=0,V=0),q.milliseconds=S%1e3,Q=ie(S/1e3),q.seconds=Q%60,ce=ie(Q/60),q.minutes=ce%60,Ae=ie(ce/60),q.hours=Ae%24,k+=ie(Ae/24),V+=kt=ie(wf(k)),k-=cl(Tn(kt)),ct=ie(V/12),V%=12,q.days=k,q.months=V,q.years=ct,this},jt.clone=function Ah(){return dt(this)},jt.get=function za(S){return S=di(S),this.isValid()?this[S+"s"]():NaN},jt.milliseconds=vh,jt.seconds=Cf,jt.minutes=hl,jt.hours=$r,jt.days=pl,jt.weeks=function Th(){return ie(this.days()/7)},jt.months=Af,jt.years=D_,jt.humanize=function As(S,k){if(!this.isValid())return this.localeData().invalidDate();var Q,ce,V=!1,q=fl;return"object"==typeof S&&(k=S,S=!1),"boolean"==typeof S&&(V=S),"object"==typeof k&&(q=Object.assign({},fl,k),null!=k.s&&null==k.ss&&(q.ss=k.s-1)),ce=function vf(S,k,V,q){var Q=dt(S).abs(),ce=_a(Q.as("s")),Ae=_a(Q.as("m")),ct=_a(Q.as("h")),kt=_a(Q.as("d")),rn=_a(Q.as("M")),Gn=_a(Q.as("w")),Rr=_a(Q.as("y")),ba=ce<=V.ss&&["s",ce]||ce0,ba[4]=q,H_.apply(null,ba)}(this,!V,q,Q=this.localeData()),V&&(ce=Q.pastFuture(+this,ce)),Q.postformat(ce)},jt.toISOString=jd,jt.toString=jd,jt.toJSON=jd,jt.locale=sh,jt.localeData=Sd,jt.toIsoString=Ve("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",jd),jt.lang=Md,Ge("X",0,0,"unix"),Ge("x",0,0,"valueOf"),qe("x",sa),qe("X",/[+-]?\d+(\.\d{1,3})?/),xe("X",function(S,k,V){V._d=new Date(1e3*parseFloat(S))}),xe("x",function(S,k,V){V._d=new Date(pe(S))}),n.version="2.29.4",function P(S){x=S}(hn),n.fn=Fe,n.min=function ic(){return bd("isBefore",[].slice.call(arguments,0))},n.max=function rc(){return bd("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=ue,n.unix=function oo(S){return hn(1e3*S)},n.months=function mc(S,k){return kd(S,k,"months")},n.isDate=ee,n.locale=U,n.invalid=Me,n.duration=dt,n.isMoment=Pe,n.weekdays=function _c(S,k,V){return fc(S,k,V,"weekdays")},n.parseZone=function gf(){return hn.apply(null,arguments).parseZone()},n.localeData=X,n.isDuration=Fo,n.monthsShort=function gc(S,k){return kd(S,k,"monthsShort")},n.weekdaysMin=function lo(S,k,V){return fc(S,k,V,"weekdaysMin")},n.defineLocale=J,n.updateLocale=function N(S,k){if(null!=k){var V,q,Q=qn;null!=An[S]&&null!=An[S].parentLocale?An[S].set(Te(An[S]._config,k)):(null!=(q=fi(S))&&(Q=q._config),k=Te(Q,k),null==q&&(k.abbr=S),(V=new we(k)).parentLocale=An[S],An[S]=V),U(S)}else null!=An[S]&&(null!=An[S].parentLocale?(An[S]=An[S].parentLocale,S===U()&&U(S)):null!=An[S]&&delete An[S]);return An[S]},n.locales=function he(){return ze(An)},n.weekdaysShort=function Ya(S,k,V){return fc(S,k,V,"weekdaysShort")},n.normalizeUnits=di,n.relativeTimeRounding=function Bd(S){return void 0===S?_a:"function"==typeof S&&(_a=S,!0)},n.relativeTimeThreshold=function Cs(S,k){return void 0!==fl[S]&&(void 0===k?fl[S]:(fl[S]=k,"s"===S&&(fl.ss=k-1),!0))},n.calendarFormat=function eo(S,k){var V=S.diff(k,"days",!0);return V<-6?"sameElse":V<-1?"lastWeek":V<0?"lastDay":V<1?"sameDay":V<2?"nextDay":V<7?"nextWeek":"sameElse"},n.prototype=Fe,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()},9751:(z,W,E)=>{"use strict";E.d(W,{y:()=>Y});var x=E(930),n=E(727),P=E(8822),D=E(9635),H=E(2416),I=E(576),B=E(2806);let Y=(()=>{class ae{constructor(se){se&&(this._subscribe=se)}lift(se){const re=new ae;return re.source=this,re.operator=se,re}subscribe(se,re,_e){const ye=function te(ae){return ae&&ae instanceof x.Lv||function ee(ae){return ae&&(0,I.m)(ae.next)&&(0,I.m)(ae.error)&&(0,I.m)(ae.complete)}(ae)&&(0,n.Nn)(ae)}(se)?se:new x.Hp(se,re,_e);return(0,B.x)(()=>{const{operator:Me,source:Je}=this;ye.add(Me?Me.call(ye,Je):Je?this._subscribe(ye):this._trySubscribe(ye))}),ye}_trySubscribe(se){try{return this._subscribe(se)}catch(re){se.error(re)}}forEach(se,re){return new(re=G(re))((_e,ye)=>{const Me=new x.Hp({next:Je=>{try{se(Je)}catch(Ze){ye(Ze),Me.unsubscribe()}},error:ye,complete:_e});this.subscribe(Me)})}_subscribe(se){var re;return null===(re=this.source)||void 0===re?void 0:re.subscribe(se)}[P.L](){return this}pipe(...se){return(0,D.U)(se)(this)}toPromise(se){return new(se=G(se))((re,_e)=>{let ye;this.subscribe(Me=>ye=Me,Me=>_e(Me),()=>re(ye))})}}return ae.create=ue=>new ae(ue),ae})();function G(ae){var ue;return null!==(ue=ae??H.v.Promise)&&void 0!==ue?ue:Promise}},7579:(z,W,E)=>{"use strict";E.d(W,{x:()=>B});var x=E(9751),n=E(727);const D=(0,E(3888).d)(G=>function(){G(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var H=E(8737),I=E(2806);let B=(()=>{class G extends x.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(te){const ae=new Y(this,this);return ae.operator=te,ae}_throwIfClosed(){if(this.closed)throw new D}next(te){(0,I.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ae of this.currentObservers)ae.next(te)}})}error(te){(0,I.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=te;const{observers:ae}=this;for(;ae.length;)ae.shift().error(te)}})}complete(){(0,I.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:te}=this;for(;te.length;)te.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var te;return(null===(te=this.observers)||void 0===te?void 0:te.length)>0}_trySubscribe(te){return this._throwIfClosed(),super._trySubscribe(te)}_subscribe(te){return this._throwIfClosed(),this._checkFinalizedStatuses(te),this._innerSubscribe(te)}_innerSubscribe(te){const{hasError:ae,isStopped:ue,observers:se}=this;return ae||ue?n.Lc:(this.currentObservers=null,se.push(te),new n.w0(()=>{this.currentObservers=null,(0,H.P)(se,te)}))}_checkFinalizedStatuses(te){const{hasError:ae,thrownError:ue,isStopped:se}=this;ae?te.error(ue):se&&te.complete()}asObservable(){const te=new x.y;return te.source=this,te}}return G.create=(ee,te)=>new Y(ee,te),G})();class Y extends B{constructor(ee,te){super(),this.destination=ee,this.source=te}next(ee){var te,ae;null===(ae=null===(te=this.destination)||void 0===te?void 0:te.next)||void 0===ae||ae.call(te,ee)}error(ee){var te,ae;null===(ae=null===(te=this.destination)||void 0===te?void 0:te.error)||void 0===ae||ae.call(te,ee)}complete(){var ee,te;null===(te=null===(ee=this.destination)||void 0===ee?void 0:ee.complete)||void 0===te||te.call(ee)}_subscribe(ee){var te,ae;return null!==(ae=null===(te=this.source)||void 0===te?void 0:te.subscribe(ee))&&void 0!==ae?ae:n.Lc}}},930:(z,W,E)=>{"use strict";E.d(W,{Hp:()=>_e,Lv:()=>ae});var x=E(576),n=E(727),P=E(2416),D=E(7849),H=E(5032);const I=G("C",void 0,void 0);function G(ke,Ee,Pe){return{kind:ke,value:Ee,error:Pe}}var ee=E(3410),te=E(2806);class ae extends n.w0{constructor(Ee){super(),this.isStopped=!1,Ee?(this.destination=Ee,(0,n.Nn)(Ee)&&Ee.add(this)):this.destination=Ze}static create(Ee,Pe,ut){return new _e(Ee,Pe,ut)}next(Ee){this.isStopped?Je(function Y(ke){return G("N",ke,void 0)}(Ee),this):this._next(Ee)}error(Ee){this.isStopped?Je(function B(ke){return G("E",void 0,ke)}(Ee),this):(this.isStopped=!0,this._error(Ee))}complete(){this.isStopped?Je(I,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ee){this.destination.next(Ee)}_error(Ee){try{this.destination.error(Ee)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ue=Function.prototype.bind;function se(ke,Ee){return ue.call(ke,Ee)}class re{constructor(Ee){this.partialObserver=Ee}next(Ee){const{partialObserver:Pe}=this;if(Pe.next)try{Pe.next(Ee)}catch(ut){ye(ut)}}error(Ee){const{partialObserver:Pe}=this;if(Pe.error)try{Pe.error(Ee)}catch(ut){ye(ut)}else ye(Ee)}complete(){const{partialObserver:Ee}=this;if(Ee.complete)try{Ee.complete()}catch(Pe){ye(Pe)}}}class _e extends ae{constructor(Ee,Pe,ut){let Ve;if(super(),(0,x.m)(Ee)||!Ee)Ve={next:Ee??void 0,error:Pe??void 0,complete:ut??void 0};else{let Ne;this&&P.v.useDeprecatedNextContext?(Ne=Object.create(Ee),Ne.unsubscribe=()=>this.unsubscribe(),Ve={next:Ee.next&&se(Ee.next,Ne),error:Ee.error&&se(Ee.error,Ne),complete:Ee.complete&&se(Ee.complete,Ne)}):Ve=Ee}this.destination=new re(Ve)}}function ye(ke){P.v.useDeprecatedSynchronousErrorHandling?(0,te.O)(ke):(0,D.h)(ke)}function Je(ke,Ee){const{onStoppedNotification:Pe}=P.v;Pe&&ee.z.setTimeout(()=>Pe(ke,Ee))}const Ze={closed:!0,next:H.Z,error:function Me(ke){throw ke},complete:H.Z}},727:(z,W,E)=>{"use strict";E.d(W,{Lc:()=>I,w0:()=>H,Nn:()=>B});var x=E(576);const P=(0,E(3888).d)(G=>function(te){G(this),this.message=te?`${te.length} errors occurred during unsubscription:\n${te.map((ae,ue)=>`${ue+1}) ${ae.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=te});var D=E(8737);class H{constructor(ee){this.initialTeardown=ee,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let ee;if(!this.closed){this.closed=!0;const{_parentage:te}=this;if(te)if(this._parentage=null,Array.isArray(te))for(const se of te)se.remove(this);else te.remove(this);const{initialTeardown:ae}=this;if((0,x.m)(ae))try{ae()}catch(se){ee=se instanceof P?se.errors:[se]}const{_finalizers:ue}=this;if(ue){this._finalizers=null;for(const se of ue)try{Y(se)}catch(re){ee=ee??[],re instanceof P?ee=[...ee,...re.errors]:ee.push(re)}}if(ee)throw new P(ee)}}add(ee){var te;if(ee&&ee!==this)if(this.closed)Y(ee);else{if(ee instanceof H){if(ee.closed||ee._hasParent(this))return;ee._addParent(this)}(this._finalizers=null!==(te=this._finalizers)&&void 0!==te?te:[]).push(ee)}}_hasParent(ee){const{_parentage:te}=this;return te===ee||Array.isArray(te)&&te.includes(ee)}_addParent(ee){const{_parentage:te}=this;this._parentage=Array.isArray(te)?(te.push(ee),te):te?[te,ee]:ee}_removeParent(ee){const{_parentage:te}=this;te===ee?this._parentage=null:Array.isArray(te)&&(0,D.P)(te,ee)}remove(ee){const{_finalizers:te}=this;te&&(0,D.P)(te,ee),ee instanceof H&&ee._removeParent(this)}}H.EMPTY=(()=>{const G=new H;return G.closed=!0,G})();const I=H.EMPTY;function B(G){return G instanceof H||G&&"closed"in G&&(0,x.m)(G.remove)&&(0,x.m)(G.add)&&(0,x.m)(G.unsubscribe)}function Y(G){(0,x.m)(G)?G():G.unsubscribe()}},2416:(z,W,E)=>{"use strict";E.d(W,{v:()=>x});const x={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(z,W,E)=>{"use strict";E.d(W,{a:()=>ee});var x=E(9751),n=E(4742),P=E(2076),D=E(4671),H=E(3268),I=E(3269),B=E(1810),Y=E(5403),G=E(9672);function ee(...ue){const se=(0,I.yG)(ue),re=(0,I.jO)(ue),{args:_e,keys:ye}=(0,n.D)(ue);if(0===_e.length)return(0,P.D)([],se);const Me=new x.y(function te(ue,se,re=D.y){return _e=>{ae(se,()=>{const{length:ye}=ue,Me=new Array(ye);let Je=ye,Ze=ye;for(let ke=0;ke{const Ee=(0,P.D)(ue[ke],se);let Pe=!1;Ee.subscribe((0,Y.x)(_e,ut=>{Me[ke]=ut,Pe||(Pe=!0,Ze--),Ze||_e.next(re(Me.slice()))},()=>{--Je||_e.complete()}))},_e)},_e)}}(_e,se,ye?Je=>(0,B.n)(ye,Je):D.y));return re?Me.pipe((0,H.Z)(re)):Me}function ae(ue,se,re){ue?(0,G.f)(re,ue,se):se()}},7272:(z,W,E)=>{"use strict";E.d(W,{z:()=>H});var x=E(8189),P=E(3269),D=E(2076);function H(...I){return function n(){return(0,x.J)(1)}()((0,D.D)(I,(0,P.yG)(I)))}},515:(z,W,E)=>{"use strict";E.d(W,{E:()=>n});const n=new(E(9751).y)(H=>H.complete())},2076:(z,W,E)=>{"use strict";E.d(W,{D:()=>ut});var x=E(8421),n=E(9672),P=E(4482),D=E(5403);function H(Ve,Ne=0){return(0,P.e)((je,fe)=>{je.subscribe((0,D.x)(fe,ge=>(0,n.f)(fe,Ve,()=>fe.next(ge),Ne),()=>(0,n.f)(fe,Ve,()=>fe.complete(),Ne),ge=>(0,n.f)(fe,Ve,()=>fe.error(ge),Ne)))})}function I(Ve,Ne=0){return(0,P.e)((je,fe)=>{fe.add(Ve.schedule(()=>je.subscribe(fe),Ne))})}var G=E(9751),te=E(2202),ae=E(576);function se(Ve,Ne){if(!Ve)throw new Error("Iterable cannot be null");return new G.y(je=>{(0,n.f)(je,Ne,()=>{const fe=Ve[Symbol.asyncIterator]();(0,n.f)(je,Ne,()=>{fe.next().then(ge=>{ge.done?je.complete():je.next(ge.value)})},0,!0)})})}var re=E(3670),_e=E(8239),ye=E(1144),Me=E(6495),Je=E(2206),Ze=E(4532),ke=E(3260);function ut(Ve,Ne){return Ne?function Pe(Ve,Ne){if(null!=Ve){if((0,re.c)(Ve))return function B(Ve,Ne){return(0,x.Xf)(Ve).pipe(I(Ne),H(Ne))}(Ve,Ne);if((0,ye.z)(Ve))return function ee(Ve,Ne){return new G.y(je=>{let fe=0;return Ne.schedule(function(){fe===Ve.length?je.complete():(je.next(Ve[fe++]),je.closed||this.schedule())})})}(Ve,Ne);if((0,_e.t)(Ve))return function Y(Ve,Ne){return(0,x.Xf)(Ve).pipe(I(Ne),H(Ne))}(Ve,Ne);if((0,Je.D)(Ve))return se(Ve,Ne);if((0,Me.T)(Ve))return function ue(Ve,Ne){return new G.y(je=>{let fe;return(0,n.f)(je,Ne,()=>{fe=Ve[te.h](),(0,n.f)(je,Ne,()=>{let ge,Te;try{({value:ge,done:Te}=fe.next())}catch(we){return void je.error(we)}Te?je.complete():je.next(ge)},0,!0)}),()=>(0,ae.m)(fe?.return)&&fe.return()})}(Ve,Ne);if((0,ke.L)(Ve))return function Ee(Ve,Ne){return se((0,ke.Q)(Ve),Ne)}(Ve,Ne)}throw(0,Ze.z)(Ve)}(Ve,Ne):(0,x.Xf)(Ve)}},8421:(z,W,E)=>{"use strict";E.d(W,{Xf:()=>ue});var x=E(655),n=E(1144),P=E(8239),D=E(9751),H=E(3670),I=E(2206),B=E(4532),Y=E(6495),G=E(3260),ee=E(576),te=E(7849),ae=E(8822);function ue(ke){if(ke instanceof D.y)return ke;if(null!=ke){if((0,H.c)(ke))return function se(ke){return new D.y(Ee=>{const Pe=ke[ae.L]();if((0,ee.m)(Pe.subscribe))return Pe.subscribe(Ee);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ke);if((0,n.z)(ke))return function re(ke){return new D.y(Ee=>{for(let Pe=0;Pe{ke.then(Pe=>{Ee.closed||(Ee.next(Pe),Ee.complete())},Pe=>Ee.error(Pe)).then(null,te.h)})}(ke);if((0,I.D)(ke))return Me(ke);if((0,Y.T)(ke))return function ye(ke){return new D.y(Ee=>{for(const Pe of ke)if(Ee.next(Pe),Ee.closed)return;Ee.complete()})}(ke);if((0,G.L)(ke))return function Je(ke){return Me((0,G.Q)(ke))}(ke)}throw(0,B.z)(ke)}function Me(ke){return new D.y(Ee=>{(function Ze(ke,Ee){var Pe,ut,Ve,Ne;return(0,x.mG)(this,void 0,void 0,function*(){try{for(Pe=(0,x.KL)(ke);!(ut=yield Pe.next()).done;)if(Ee.next(ut.value),Ee.closed)return}catch(je){Ve={error:je}}finally{try{ut&&!ut.done&&(Ne=Pe.return)&&(yield Ne.call(Pe))}finally{if(Ve)throw Ve.error}}Ee.complete()})})(ke,Ee).catch(Pe=>Ee.error(Pe))})}},6451:(z,W,E)=>{"use strict";E.d(W,{T:()=>I});var x=E(8189),n=E(8421),P=E(515),D=E(3269),H=E(2076);function I(...B){const Y=(0,D.yG)(B),G=(0,D._6)(B,1/0),ee=B;return ee.length?1===ee.length?(0,n.Xf)(ee[0]):(0,x.J)(G)((0,H.D)(ee,Y)):P.E}},9646:(z,W,E)=>{"use strict";E.d(W,{of:()=>P});var x=E(3269),n=E(2076);function P(...D){const H=(0,x.yG)(D);return(0,n.D)(D,H)}},102:(z,W,E)=>{"use strict";E.d(W,{S:()=>I});var x=E(9751),n=E(8421);const{isArray:P}=Array;var H=E(5403);function I(...Y){return 1===(Y=function D(Y){return 1===Y.length&&P(Y[0])?Y[0]:Y}(Y)).length?(0,n.Xf)(Y[0]):new x.y(function B(Y){return G=>{let ee=[];for(let te=0;ee&&!G.closed&&te{if(ee){for(let ue=0;ue{"use strict";E.d(W,{_:()=>P});var x=E(9751),n=E(576);function P(D,H){const I=(0,n.m)(D)?D:()=>D,B=Y=>Y.error(I());return new x.y(H?Y=>H.schedule(B,0,Y):B)}},2805:(z,W,E)=>{"use strict";E.d(W,{H:()=>H});var x=E(9751),n=E(4986),P=E(3532),D=E(1165);function H(I=0,B,Y=n.P){let G=-1;return null!=B&&((0,P.K)(B)?Y=B:G=B),new x.y(ee=>{let te=(0,D.q)(I)?+I-Y.now():I;te<0&&(te=0);let ae=0;return Y.schedule(function(){ee.closed||(ee.next(ae++),0<=G?this.schedule(void 0,G):ee.complete())},te)})}},5403:(z,W,E)=>{"use strict";E.d(W,{x:()=>n});var x=E(930);function n(D,H,I,B,Y){return new P(D,H,I,B,Y)}class P extends x.Lv{constructor(H,I,B,Y,G,ee){super(H),this.onFinalize=G,this.shouldUnsubscribe=ee,this._next=I?function(te){try{I(te)}catch(ae){H.error(ae)}}:super._next,this._error=Y?function(te){try{Y(te)}catch(ae){H.error(ae)}finally{this.unsubscribe()}}:super._error,this._complete=B?function(){try{B()}catch(te){H.error(te)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var H;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:I}=this;super.unsubscribe(),!I&&(null===(H=this.onFinalize)||void 0===H||H.call(this))}}}},262:(z,W,E)=>{"use strict";E.d(W,{K:()=>D});var x=E(8421),n=E(5403),P=E(4482);function D(H){return(0,P.e)((I,B)=>{let ee,Y=null,G=!1;Y=I.subscribe((0,n.x)(B,void 0,void 0,te=>{ee=(0,x.Xf)(H(te,D(H)(I))),Y?(Y.unsubscribe(),Y=null,ee.subscribe(B)):G=!0})),G&&(Y.unsubscribe(),Y=null,ee.subscribe(B))})}},4351:(z,W,E)=>{"use strict";E.d(W,{b:()=>P});var x=E(5577),n=E(576);function P(D,H){return(0,n.m)(H)?(0,x.z)(D,H,1):(0,x.z)(D,1)}},8372:(z,W,E)=>{"use strict";E.d(W,{b:()=>D});var x=E(4986),n=E(4482),P=E(5403);function D(H,I=x.z){return(0,n.e)((B,Y)=>{let G=null,ee=null,te=null;const ae=()=>{if(G){G.unsubscribe(),G=null;const se=ee;ee=null,Y.next(se)}};function ue(){const se=te+H,re=I.now();if(re{ee=se,te=I.now(),G||(G=I.schedule(ue,H),Y.add(G))},()=>{ae(),Y.complete()},void 0,()=>{ee=G=null}))})}},6590:(z,W,E)=>{"use strict";E.d(W,{d:()=>P});var x=E(4482),n=E(5403);function P(D){return(0,x.e)((H,I)=>{let B=!1;H.subscribe((0,n.x)(I,Y=>{B=!0,I.next(Y)},()=>{B||I.next(D),I.complete()}))})}},1005:(z,W,E)=>{"use strict";E.d(W,{g:()=>ae});var x=E(4986),n=E(7272),P=E(5698),D=E(4482),H=E(5403),I=E(5032),Y=E(9718),G=E(5577);function ee(ue,se){return se?re=>(0,n.z)(se.pipe((0,P.q)(1),function B(){return(0,D.e)((ue,se)=>{ue.subscribe((0,H.x)(se,I.Z))})}()),re.pipe(ee(ue))):(0,G.z)((re,_e)=>ue(re,_e).pipe((0,P.q)(1),(0,Y.h)(re)))}var te=E(2805);function ae(ue,se=x.z){const re=(0,te.H)(ue,se);return ee(()=>re)}},9300:(z,W,E)=>{"use strict";E.d(W,{h:()=>P});var x=E(4482),n=E(5403);function P(D,H){return(0,x.e)((I,B)=>{let Y=0;I.subscribe((0,n.x)(B,G=>D.call(H,G,Y++)&&B.next(G)))})}},590:(z,W,E)=>{"use strict";E.d(W,{P:()=>B});var x=E(6805),n=E(9300),P=E(5698),D=E(6590),H=E(8068),I=E(4671);function B(Y,G){const ee=arguments.length>=2;return te=>te.pipe(Y?(0,n.h)((ae,ue)=>Y(ae,ue,te)):I.y,(0,P.q)(1),ee?(0,D.d)(G):(0,H.T)(()=>new x.K))}},4004:(z,W,E)=>{"use strict";E.d(W,{U:()=>P});var x=E(4482),n=E(5403);function P(D,H){return(0,x.e)((I,B)=>{let Y=0;I.subscribe((0,n.x)(B,G=>{B.next(D.call(H,G,Y++))}))})}},9718:(z,W,E)=>{"use strict";E.d(W,{h:()=>n});var x=E(4004);function n(P){return(0,x.U)(()=>P)}},8189:(z,W,E)=>{"use strict";E.d(W,{J:()=>P});var x=E(5577),n=E(4671);function P(D=1/0){return(0,x.z)(n.y,D)}},5577:(z,W,E)=>{"use strict";E.d(W,{z:()=>Y});var x=E(4004),n=E(8421),P=E(4482),D=E(9672),H=E(5403),B=E(576);function Y(G,ee,te=1/0){return(0,B.m)(ee)?Y((ae,ue)=>(0,x.U)((se,re)=>ee(ae,se,ue,re))((0,n.Xf)(G(ae,ue))),te):("number"==typeof ee&&(te=ee),(0,P.e)((ae,ue)=>function I(G,ee,te,ae,ue,se,re,_e){const ye=[];let Me=0,Je=0,Ze=!1;const ke=()=>{Ze&&!ye.length&&!Me&&ee.complete()},Ee=ut=>Me{se&&ee.next(ut),Me++;let Ve=!1;(0,n.Xf)(te(ut,Je++)).subscribe((0,H.x)(ee,Ne=>{ue?.(Ne),se?Ee(Ne):ee.next(Ne)},()=>{Ve=!0},void 0,()=>{if(Ve)try{for(Me--;ye.length&&MePe(Ne)):Pe(Ne)}ke()}catch(Ne){ee.error(Ne)}}))};return G.subscribe((0,H.x)(ee,Ee,()=>{Ze=!0,ke()})),()=>{_e?.()}}(ae,ue,G,te)))}},3099:(z,W,E)=>{"use strict";E.d(W,{B:()=>H});var x=E(8421),n=E(7579),P=E(930),D=E(4482);function H(B={}){const{connector:Y=(()=>new n.x),resetOnError:G=!0,resetOnComplete:ee=!0,resetOnRefCountZero:te=!0}=B;return ae=>{let ue,se,re,_e=0,ye=!1,Me=!1;const Je=()=>{se?.unsubscribe(),se=void 0},Ze=()=>{Je(),ue=re=void 0,ye=Me=!1},ke=()=>{const Ee=ue;Ze(),Ee?.unsubscribe()};return(0,D.e)((Ee,Pe)=>{_e++,!Me&&!ye&&Je();const ut=re=re??Y();Pe.add(()=>{_e--,0===_e&&!Me&&!ye&&(se=I(ke,te))}),ut.subscribe(Pe),!ue&&_e>0&&(ue=new P.Hp({next:Ve=>ut.next(Ve),error:Ve=>{Me=!0,Je(),se=I(Ze,G,Ve),ut.error(Ve)},complete:()=>{ye=!0,Je(),se=I(Ze,ee),ut.complete()}}),(0,x.Xf)(Ee).subscribe(ue))})(ae)}}function I(B,Y,...G){if(!0===Y)return void B();if(!1===Y)return;const ee=new P.Hp({next:()=>{ee.unsubscribe(),B()}});return Y(...G).subscribe(ee)}},3900:(z,W,E)=>{"use strict";E.d(W,{w:()=>D});var x=E(8421),n=E(4482),P=E(5403);function D(H,I){return(0,n.e)((B,Y)=>{let G=null,ee=0,te=!1;const ae=()=>te&&!G&&Y.complete();B.subscribe((0,P.x)(Y,ue=>{G?.unsubscribe();let se=0;const re=ee++;(0,x.Xf)(H(ue,re)).subscribe(G=(0,P.x)(Y,_e=>Y.next(I?I(ue,_e,re,se++):_e),()=>{G=null,ae()}))},()=>{te=!0,ae()}))})}},5698:(z,W,E)=>{"use strict";E.d(W,{q:()=>D});var x=E(515),n=E(4482),P=E(5403);function D(H){return H<=0?()=>x.E:(0,n.e)((I,B)=>{let Y=0;I.subscribe((0,P.x)(B,G=>{++Y<=H&&(B.next(G),H<=Y&&B.complete())}))})}},8505:(z,W,E)=>{"use strict";E.d(W,{b:()=>H});var x=E(576),n=E(4482),P=E(5403),D=E(4671);function H(I,B,Y){const G=(0,x.m)(I)||B||Y?{next:I,error:B,complete:Y}:I;return G?(0,n.e)((ee,te)=>{var ae;null===(ae=G.subscribe)||void 0===ae||ae.call(G);let ue=!0;ee.subscribe((0,P.x)(te,se=>{var re;null===(re=G.next)||void 0===re||re.call(G,se),te.next(se)},()=>{var se;ue=!1,null===(se=G.complete)||void 0===se||se.call(G),te.complete()},se=>{var re;ue=!1,null===(re=G.error)||void 0===re||re.call(G,se),te.error(se)},()=>{var se,re;ue&&(null===(se=G.unsubscribe)||void 0===se||se.call(G)),null===(re=G.finalize)||void 0===re||re.call(G)}))}):D.y}},8068:(z,W,E)=>{"use strict";E.d(W,{T:()=>D});var x=E(6805),n=E(4482),P=E(5403);function D(I=H){return(0,n.e)((B,Y)=>{let G=!1;B.subscribe((0,P.x)(Y,ee=>{G=!0,Y.next(ee)},()=>G?Y.complete():Y.error(I())))})}function H(){return new x.K}},7414:(z,W,E)=>{"use strict";E.d(W,{V:()=>G});var x=E(4986),n=E(1165),P=E(4482),D=E(8421),H=E(3888),I=E(5403),B=E(9672);const Y=(0,H.d)(te=>function(ue=null){te(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ue});function G(te,ae){const{first:ue,each:se,with:re=ee,scheduler:_e=ae??x.z,meta:ye=null}=(0,n.q)(te)?{first:te}:"number"==typeof te?{each:te}:te;if(null==ue&&null==se)throw new TypeError("No timeout provided.");return(0,P.e)((Me,Je)=>{let Ze,ke,Ee=null,Pe=0;const ut=Ve=>{ke=(0,B.f)(Je,_e,()=>{try{Ze.unsubscribe(),(0,D.Xf)(re({meta:ye,lastValue:Ee,seen:Pe})).subscribe(Je)}catch(Ne){Je.error(Ne)}},Ve)};Ze=Me.subscribe((0,I.x)(Je,Ve=>{ke?.unsubscribe(),Pe++,Je.next(Ee=Ve),se>0&&ut(se)},void 0,void 0,()=>{ke?.closed||ke?.unsubscribe(),Ee=null})),!Pe&&ut(null!=ue?"number"==typeof ue?ue:+ue-_e.now():se)})}function ee(te){throw new Y(te)}},4408:(z,W,E)=>{"use strict";E.d(W,{o:()=>H});var x=E(727);class n extends x.w0{constructor(B,Y){super()}schedule(B,Y=0){return this}}const P={setInterval(I,B,...Y){const{delegate:G}=P;return G?.setInterval?G.setInterval(I,B,...Y):setInterval(I,B,...Y)},clearInterval(I){const{delegate:B}=P;return(B?.clearInterval||clearInterval)(I)},delegate:void 0};var D=E(8737);class H extends n{constructor(B,Y){super(B,Y),this.scheduler=B,this.work=Y,this.pending=!1}schedule(B,Y=0){if(this.closed)return this;this.state=B;const G=this.id,ee=this.scheduler;return null!=G&&(this.id=this.recycleAsyncId(ee,G,Y)),this.pending=!0,this.delay=Y,this.id=this.id||this.requestAsyncId(ee,this.id,Y),this}requestAsyncId(B,Y,G=0){return P.setInterval(B.flush.bind(B,this),G)}recycleAsyncId(B,Y,G=0){if(null!=G&&this.delay===G&&!1===this.pending)return Y;P.clearInterval(Y)}execute(B,Y){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const G=this._execute(B,Y);if(G)return G;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(B,Y){let ee,G=!1;try{this.work(B)}catch(te){G=!0,ee=te||new Error("Scheduled action threw falsy error")}if(G)return this.unsubscribe(),ee}unsubscribe(){if(!this.closed){const{id:B,scheduler:Y}=this,{actions:G}=Y;this.work=this.state=this.scheduler=null,this.pending=!1,(0,D.P)(G,this),null!=B&&(this.id=this.recycleAsyncId(Y,B,null)),this.delay=null,super.unsubscribe()}}}},7565:(z,W,E)=>{"use strict";E.d(W,{v:()=>P});var x=E(6063);class n{constructor(H,I=n.now){this.schedulerActionCtor=H,this.now=I}schedule(H,I=0,B){return new this.schedulerActionCtor(this,H).schedule(B,I)}}n.now=x.l.now;class P extends n{constructor(H,I=n.now){super(H,I),this.actions=[],this._active=!1,this._scheduled=void 0}flush(H){const{actions:I}=this;if(this._active)return void I.push(H);let B;this._active=!0;do{if(B=H.execute(H.state,H.delay))break}while(H=I.shift());if(this._active=!1,B){for(;H=I.shift();)H.unsubscribe();throw B}}}},4986:(z,W,E)=>{"use strict";E.d(W,{P:()=>D,z:()=>P});var x=E(4408);const P=new(E(7565).v)(x.o),D=P},6063:(z,W,E)=>{"use strict";E.d(W,{l:()=>x});const x={now:()=>(x.delegate||Date).now(),delegate:void 0}},3410:(z,W,E)=>{"use strict";E.d(W,{z:()=>x});const x={setTimeout(n,P,...D){const{delegate:H}=x;return H?.setTimeout?H.setTimeout(n,P,...D):setTimeout(n,P,...D)},clearTimeout(n){const{delegate:P}=x;return(P?.clearTimeout||clearTimeout)(n)},delegate:void 0}},2202:(z,W,E)=>{"use strict";E.d(W,{h:()=>n});const n=function x(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(z,W,E)=>{"use strict";E.d(W,{L:()=>x});const x="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(z,W,E)=>{"use strict";E.d(W,{K:()=>n});const n=(0,E(3888).d)(P=>function(){P(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(z,W,E)=>{"use strict";E.d(W,{_6:()=>I,jO:()=>D,yG:()=>H});var x=E(576),n=E(3532);function P(B){return B[B.length-1]}function D(B){return(0,x.m)(P(B))?B.pop():void 0}function H(B){return(0,n.K)(P(B))?B.pop():void 0}function I(B,Y){return"number"==typeof P(B)?B.pop():Y}},4742:(z,W,E)=>{"use strict";E.d(W,{D:()=>H});const{isArray:x}=Array,{getPrototypeOf:n,prototype:P,keys:D}=Object;function H(B){if(1===B.length){const Y=B[0];if(x(Y))return{args:Y,keys:null};if(function I(B){return B&&"object"==typeof B&&n(B)===P}(Y)){const G=D(Y);return{args:G.map(ee=>Y[ee]),keys:G}}}return{args:B,keys:null}}},8737:(z,W,E)=>{"use strict";function x(n,P){if(n){const D=n.indexOf(P);0<=D&&n.splice(D,1)}}E.d(W,{P:()=>x})},3888:(z,W,E)=>{"use strict";function x(n){const D=n(H=>{Error.call(H),H.stack=(new Error).stack});return D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D}E.d(W,{d:()=>x})},1810:(z,W,E)=>{"use strict";function x(n,P){return n.reduce((D,H,I)=>(D[H]=P[I],D),{})}E.d(W,{n:()=>x})},2806:(z,W,E)=>{"use strict";E.d(W,{O:()=>D,x:()=>P});var x=E(2416);let n=null;function P(H){if(x.v.useDeprecatedSynchronousErrorHandling){const I=!n;if(I&&(n={errorThrown:!1,error:null}),H(),I){const{errorThrown:B,error:Y}=n;if(n=null,B)throw Y}}else H()}function D(H){x.v.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=H)}},9672:(z,W,E)=>{"use strict";function x(n,P,D,H=0,I=!1){const B=P.schedule(function(){D(),I?n.add(this.schedule(null,H)):this.unsubscribe()},H);if(n.add(B),!I)return B}E.d(W,{f:()=>x})},4671:(z,W,E)=>{"use strict";function x(n){return n}E.d(W,{y:()=>x})},1144:(z,W,E)=>{"use strict";E.d(W,{z:()=>x});const x=n=>n&&"number"==typeof n.length&&"function"!=typeof n},2206:(z,W,E)=>{"use strict";E.d(W,{D:()=>n});var x=E(576);function n(P){return Symbol.asyncIterator&&(0,x.m)(P?.[Symbol.asyncIterator])}},1165:(z,W,E)=>{"use strict";function x(n){return n instanceof Date&&!isNaN(n)}E.d(W,{q:()=>x})},576:(z,W,E)=>{"use strict";function x(n){return"function"==typeof n}E.d(W,{m:()=>x})},3670:(z,W,E)=>{"use strict";E.d(W,{c:()=>P});var x=E(8822),n=E(576);function P(D){return(0,n.m)(D[x.L])}},6495:(z,W,E)=>{"use strict";E.d(W,{T:()=>P});var x=E(2202),n=E(576);function P(D){return(0,n.m)(D?.[x.h])}},8239:(z,W,E)=>{"use strict";E.d(W,{t:()=>n});var x=E(576);function n(P){return(0,x.m)(P?.then)}},3260:(z,W,E)=>{"use strict";E.d(W,{L:()=>D,Q:()=>P});var x=E(655),n=E(576);function P(H){return(0,x.FC)(this,arguments,function*(){const B=H.getReader();try{for(;;){const{value:Y,done:G}=yield(0,x.qq)(B.read());if(G)return yield(0,x.qq)(void 0);yield yield(0,x.qq)(Y)}}finally{B.releaseLock()}})}function D(H){return(0,n.m)(H?.getReader)}},3532:(z,W,E)=>{"use strict";E.d(W,{K:()=>n});var x=E(576);function n(P){return P&&(0,x.m)(P.schedule)}},4482:(z,W,E)=>{"use strict";E.d(W,{A:()=>n,e:()=>P});var x=E(576);function n(D){return(0,x.m)(D?.lift)}function P(D){return H=>{if(n(H))return H.lift(function(I){try{return D(I,this)}catch(B){this.error(B)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(z,W,E)=>{"use strict";E.d(W,{Z:()=>D});var x=E(4004);const{isArray:n}=Array;function D(H){return(0,x.U)(I=>function P(H,I){return n(I)?H(...I):H(I)}(H,I))}},5032:(z,W,E)=>{"use strict";function x(){}E.d(W,{Z:()=>x})},9635:(z,W,E)=>{"use strict";E.d(W,{U:()=>P,z:()=>n});var x=E(4671);function n(...D){return P(D)}function P(D){return 0===D.length?x.y:1===D.length?D[0]:function(I){return D.reduce((B,Y)=>Y(B),I)}}},7849:(z,W,E)=>{"use strict";E.d(W,{h:()=>P});var x=E(2416),n=E(3410);function P(D){n.z.setTimeout(()=>{const{onUnhandledError:H}=x.v;if(!H)throw D;H(D)})}},4532:(z,W,E)=>{"use strict";function x(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(W,{z:()=>x})},6700:(z,W,E)=>{var x={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function n(D){var H=P(D);return E(H)}function P(D){if(!E.o(x,D)){var H=new Error("Cannot find module '"+D+"'");throw H.code="MODULE_NOT_FOUND",H}return x[D]}n.keys=function(){return Object.keys(x)},n.resolve=P,z.exports=n,n.id=6700},655:(z,W,E)=>{"use strict";function Y(fe,ge,Te,we){return new(Te||(Te=Promise))(function(Ye,Et){function Bt(ci){try{Qe(we.next(ci))}catch(Mi){Et(Mi)}}function Kt(ci){try{Qe(we.throw(ci))}catch(Mi){Et(Mi)}}function Qe(ci){ci.done?Ye(ci.value):function ze(Ye){return Ye instanceof Te?Ye:new Te(function(Et){Et(Ye)})}(ci.value).then(Bt,Kt)}Qe((we=we.apply(fe,ge||[])).next())})}function ye(fe){return this instanceof ye?(this.v=fe,this):new ye(fe)}function Me(fe,ge,Te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ze,we=Te.apply(fe,ge||[]),Ye=[];return ze={},Et("next"),Et("throw"),Et("return"),ze[Symbol.asyncIterator]=function(){return this},ze;function Et(Ge){we[Ge]&&(ze[Ge]=function(Xt){return new Promise(function(Cr,En){Ye.push([Ge,Xt,Cr,En])>1||Bt(Ge,Xt)})})}function Bt(Ge,Xt){try{!function Kt(Ge){Ge.value instanceof ye?Promise.resolve(Ge.value.v).then(Qe,ci):Mi(Ye[0][2],Ge)}(we[Ge](Xt))}catch(Cr){Mi(Ye[0][3],Cr)}}function Qe(Ge){Bt("next",Ge)}function ci(Ge){Bt("throw",Ge)}function Mi(Ge,Xt){Ge(Xt),Ye.shift(),Ye.length&&Bt(Ye[0][0],Ye[0][1])}}function Ze(fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Te,ge=fe[Symbol.asyncIterator];return ge?ge.call(fe):(fe=function ae(fe){var ge="function"==typeof Symbol&&Symbol.iterator,Te=ge&&fe[ge],we=0;if(Te)return Te.call(fe);if(fe&&"number"==typeof fe.length)return{next:function(){return fe&&we>=fe.length&&(fe=void 0),{value:fe&&fe[we++],done:!fe}}};throw new TypeError(ge?"Object is not iterable.":"Symbol.iterator is not defined.")}(fe),Te={},we("next"),we("throw"),we("return"),Te[Symbol.asyncIterator]=function(){return this},Te);function we(Ye){Te[Ye]=fe[Ye]&&function(Et){return new Promise(function(Bt,Kt){!function ze(Ye,Et,Bt,Kt){Promise.resolve(Kt).then(function(Qe){Ye({value:Qe,done:Bt})},Et)}(Bt,Kt,(Et=fe[Ye](Et)).done,Et.value)})}}}E.d(W,{FC:()=>Me,KL:()=>Ze,mG:()=>Y,qq:()=>ye})},6895:(z,W,E)=>{"use strict";E.d(W,{Do:()=>Ze,ED:()=>da,EM:()=>pa,HT:()=>H,JF:()=>fi,K0:()=>B,Mx:()=>_t,NF:()=>Zu,O5:()=>ni,Ov:()=>Dn,PC:()=>Xi,RF:()=>ur,S$:()=>ye,V_:()=>ee,Ye:()=>ke,b0:()=>Je,bD:()=>ui,ez:()=>Uo,mk:()=>Tr,n9:()=>Hi,p6:()=>Ie,q:()=>P,sg:()=>dr,tP:()=>mn,uU:()=>wn,w_:()=>I});var x=E(4650);let n=null;function P(){return n}function H(U){n||(n=U)}class I{}const B=new x.OlP("DocumentToken");let Y=(()=>{class U{historyGo(N){throw new Error("Not implemented")}}return U.\u0275fac=function(N){return new(N||U)},U.\u0275prov=x.Yz7({token:U,factory:function(){return function G(){return(0,x.LFG)(te)}()},providedIn:"platform"}),U})();const ee=new x.OlP("Location Initialized");let te=(()=>{class U extends Y{constructor(N){super(),this._doc=N,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return P().getBaseHref(this._doc)}onPopState(N){const X=P().getGlobalEventTarget(this._doc,"window");return X.addEventListener("popstate",N,!1),()=>X.removeEventListener("popstate",N)}onHashChange(N){const X=P().getGlobalEventTarget(this._doc,"window");return X.addEventListener("hashchange",N,!1),()=>X.removeEventListener("hashchange",N)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(N){this.location.pathname=N}pushState(N,X,he){ae()?this._history.pushState(N,X,he):this.location.hash=he}replaceState(N,X,he){ae()?this._history.replaceState(N,X,he):this.location.hash=he}forward(){this._history.forward()}back(){this._history.back()}historyGo(N=0){this._history.go(N)}getState(){return this._history.state}}return U.\u0275fac=function(N){return new(N||U)(x.LFG(B))},U.\u0275prov=x.Yz7({token:U,factory:function(){return function ue(){return new te((0,x.LFG)(B))}()},providedIn:"platform"}),U})();function ae(){return!!window.history.pushState}function se(U,J){if(0==U.length)return J;if(0==J.length)return U;let N=0;return U.endsWith("/")&&N++,J.startsWith("/")&&N++,2==N?U+J.substring(1):1==N?U+J:U+"/"+J}function re(U){const J=U.match(/#|\?|$/),N=J&&J.index||U.length;return U.slice(0,N-("/"===U[N-1]?1:0))+U.slice(N)}function _e(U){return U&&"?"!==U[0]?"?"+U:U}let ye=(()=>{class U{historyGo(N){throw new Error("Not implemented")}}return U.\u0275fac=function(N){return new(N||U)},U.\u0275prov=x.Yz7({token:U,factory:function(){return(0,x.f3M)(Je)},providedIn:"root"}),U})();const Me=new x.OlP("appBaseHref");let Je=(()=>{class U extends ye{constructor(N,X){super(),this._platformLocation=N,this._removeListenerFns=[],this._baseHref=X??this._platformLocation.getBaseHrefFromDOM()??(0,x.f3M)(B).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(N){this._removeListenerFns.push(this._platformLocation.onPopState(N),this._platformLocation.onHashChange(N))}getBaseHref(){return this._baseHref}prepareExternalUrl(N){return se(this._baseHref,N)}path(N=!1){const X=this._platformLocation.pathname+_e(this._platformLocation.search),he=this._platformLocation.hash;return he&&N?`${X}${he}`:X}pushState(N,X,he,ve){const be=this.prepareExternalUrl(he+_e(ve));this._platformLocation.pushState(N,X,be)}replaceState(N,X,he,ve){const be=this.prepareExternalUrl(he+_e(ve));this._platformLocation.replaceState(N,X,be)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(N=0){this._platformLocation.historyGo?.(N)}}return U.\u0275fac=function(N){return new(N||U)(x.LFG(Y),x.LFG(Me,8))},U.\u0275prov=x.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),Ze=(()=>{class U extends ye{constructor(N,X){super(),this._platformLocation=N,this._baseHref="",this._removeListenerFns=[],null!=X&&(this._baseHref=X)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(N){this._removeListenerFns.push(this._platformLocation.onPopState(N),this._platformLocation.onHashChange(N))}getBaseHref(){return this._baseHref}path(N=!1){let X=this._platformLocation.hash;return null==X&&(X="#"),X.length>0?X.substring(1):X}prepareExternalUrl(N){const X=se(this._baseHref,N);return X.length>0?"#"+X:X}pushState(N,X,he,ve){let be=this.prepareExternalUrl(he+_e(ve));0==be.length&&(be=this._platformLocation.pathname),this._platformLocation.pushState(N,X,be)}replaceState(N,X,he,ve){let be=this.prepareExternalUrl(he+_e(ve));0==be.length&&(be=this._platformLocation.pathname),this._platformLocation.replaceState(N,X,be)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(N=0){this._platformLocation.historyGo?.(N)}}return U.\u0275fac=function(N){return new(N||U)(x.LFG(Y),x.LFG(Me,8))},U.\u0275prov=x.Yz7({token:U,factory:U.\u0275fac}),U})(),ke=(()=>{class U{constructor(N){this._subject=new x.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=N;const X=this._locationStrategy.getBaseHref();this._baseHref=re(ut(X)),this._locationStrategy.onPopState(he=>{this._subject.emit({url:this.path(!0),pop:!0,state:he.state,type:he.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(N=!1){return this.normalize(this._locationStrategy.path(N))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(N,X=""){return this.path()==this.normalize(N+_e(X))}normalize(N){return U.stripTrailingSlash(function Pe(U,J){return U&&J.startsWith(U)?J.substring(U.length):J}(this._baseHref,ut(N)))}prepareExternalUrl(N){return N&&"/"!==N[0]&&(N="/"+N),this._locationStrategy.prepareExternalUrl(N)}go(N,X="",he=null){this._locationStrategy.pushState(he,"",N,X),this._notifyUrlChangeListeners(this.prepareExternalUrl(N+_e(X)),he)}replaceState(N,X="",he=null){this._locationStrategy.replaceState(he,"",N,X),this._notifyUrlChangeListeners(this.prepareExternalUrl(N+_e(X)),he)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(N=0){this._locationStrategy.historyGo?.(N)}onUrlChange(N){return this._urlChangeListeners.push(N),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(X=>{this._notifyUrlChangeListeners(X.url,X.state)})),()=>{const X=this._urlChangeListeners.indexOf(N);this._urlChangeListeners.splice(X,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(N="",X){this._urlChangeListeners.forEach(he=>he(N,X))}subscribe(N,X,he){return this._subject.subscribe({next:N,error:X,complete:he})}}return U.normalizeQueryParams=_e,U.joinWithSlash=se,U.stripTrailingSlash=re,U.\u0275fac=function(N){return new(N||U)(x.LFG(ye))},U.\u0275prov=x.Yz7({token:U,factory:function(){return function Ee(){return new ke((0,x.LFG)(ye))}()},providedIn:"root"}),U})();function ut(U){return U.replace(/\/index.html$/,"")}var fe=(()=>((fe=fe||{})[fe.Format=0]="Format",fe[fe.Standalone=1]="Standalone",fe))(),ge=(()=>((ge=ge||{})[ge.Narrow=0]="Narrow",ge[ge.Abbreviated=1]="Abbreviated",ge[ge.Wide=2]="Wide",ge[ge.Short=3]="Short",ge))(),Te=(()=>((Te=Te||{})[Te.Short=0]="Short",Te[Te.Medium=1]="Medium",Te[Te.Long=2]="Long",Te[Te.Full=3]="Full",Te))(),we=(()=>((we=we||{})[we.Decimal=0]="Decimal",we[we.Group=1]="Group",we[we.List=2]="List",we[we.PercentSign=3]="PercentSign",we[we.PlusSign=4]="PlusSign",we[we.MinusSign=5]="MinusSign",we[we.Exponential=6]="Exponential",we[we.SuperscriptingExponent=7]="SuperscriptingExponent",we[we.PerMille=8]="PerMille",we[we.Infinity=9]="Infinity",we[we.NaN=10]="NaN",we[we.TimeSeparator=11]="TimeSeparator",we[we.CurrencyDecimal=12]="CurrencyDecimal",we[we.CurrencyGroup=13]="CurrencyGroup",we))();function Ge(U,J){return ei((0,x.cg1)(U)[x.wAp.DateFormat],J)}function Xt(U,J){return ei((0,x.cg1)(U)[x.wAp.TimeFormat],J)}function Cr(U,J){return ei((0,x.cg1)(U)[x.wAp.DateTimeFormat],J)}function En(U,J){const N=(0,x.cg1)(U),X=N[x.wAp.NumberSymbols][J];if(typeof X>"u"){if(J===we.CurrencyDecimal)return N[x.wAp.NumberSymbols][we.Decimal];if(J===we.CurrencyGroup)return N[x.wAp.NumberSymbols][we.Group]}return X}function Vr(U){if(!U[x.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${U[x.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ei(U,J){for(let N=J;N>-1;N--)if(typeof U[N]<"u")return U[N];throw new Error("Locale data API: locale data undefined")}function Ar(U){const[J,N]=U.split(":");return{hours:+J,minutes:+N}}const lr=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,zt={},Re=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var oe=(()=>((oe=oe||{})[oe.Short=0]="Short",oe[oe.ShortGMT=1]="ShortGMT",oe[oe.Long=2]="Long",oe[oe.Extended=3]="Extended",oe))(),ie=(()=>((ie=ie||{})[ie.FullYear=0]="FullYear",ie[ie.Month=1]="Month",ie[ie.Date=2]="Date",ie[ie.Hours=3]="Hours",ie[ie.Minutes=4]="Minutes",ie[ie.Seconds=5]="Seconds",ie[ie.FractionalSeconds=6]="FractionalSeconds",ie[ie.Day=7]="Day",ie))(),pe=(()=>((pe=pe||{})[pe.DayPeriods=0]="DayPeriods",pe[pe.Days=1]="Days",pe[pe.Months=2]="Months",pe[pe.Eras=3]="Eras",pe))();function Ie(U,J,N,X){let he=function ti(U){if(On(U))return U;if("number"==typeof U&&!isNaN(U))return new Date(U);if("string"==typeof U){if(U=U.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(U)){const[he,ve=1,be=1]=U.split("-").map(at=>+at);return ft(he,ve-1,be)}const N=parseFloat(U);if(!isNaN(U-N))return new Date(N);let X;if(X=U.match(lr))return function qe(U){const J=new Date(0);let N=0,X=0;const he=U[8]?J.setUTCFullYear:J.setFullYear,ve=U[8]?J.setUTCHours:J.setHours;U[9]&&(N=Number(U[9]+U[10]),X=Number(U[9]+U[11])),he.call(J,Number(U[1]),Number(U[2])-1,Number(U[3]));const be=Number(U[4]||0)-N,at=Number(U[5]||0)-X,vn=Number(U[6]||0),on=Math.floor(1e3*parseFloat("0."+(U[7]||0)));return ve.call(J,be,at,vn,on),J}(X)}const J=new Date(U);if(!On(J))throw new Error(`Unable to convert "${U}" into a date`);return J}(U);J=Dt(N,J)||J;let at,be=[];for(;J;){if(at=Re.exec(J),!at){be.push(J);break}{be=be.concat(at.slice(1));const cn=be.pop();if(!cn)break;J=cn}}let vn=he.getTimezoneOffset();X&&(vn=us(X,vn),he=function Zn(U,J,N){const X=N?-1:1,he=U.getTimezoneOffset();return function $t(U,J){return(U=new Date(U.getTime())).setMinutes(U.getMinutes()+J),U}(U,X*(us(J,he)-he))}(he,X,!0));let on="";return be.forEach(cn=>{const Yt=function pd(U){if(sa[U])return sa[U];let J;switch(U){case"G":case"GG":case"GGG":J=yt(pe.Eras,ge.Abbreviated);break;case"GGGG":J=yt(pe.Eras,ge.Wide);break;case"GGGGG":J=yt(pe.Eras,ge.Narrow);break;case"y":J=Ht(ie.FullYear,1,0,!1,!0);break;case"yy":J=Ht(ie.FullYear,2,0,!0,!0);break;case"yyy":J=Ht(ie.FullYear,3,0,!1,!0);break;case"yyyy":J=Ht(ie.FullYear,4,0,!1,!0);break;case"Y":J=cr(1);break;case"YY":J=cr(2,!0);break;case"YYY":J=cr(3);break;case"YYYY":J=cr(4);break;case"M":case"L":J=Ht(ie.Month,1,1);break;case"MM":case"LL":J=Ht(ie.Month,2,1);break;case"MMM":J=yt(pe.Months,ge.Abbreviated);break;case"MMMM":J=yt(pe.Months,ge.Wide);break;case"MMMMM":J=yt(pe.Months,ge.Narrow);break;case"LLL":J=yt(pe.Months,ge.Abbreviated,fe.Standalone);break;case"LLLL":J=yt(pe.Months,ge.Wide,fe.Standalone);break;case"LLLLL":J=yt(pe.Months,ge.Narrow,fe.Standalone);break;case"w":J=vr(1);break;case"ww":J=vr(2);break;case"W":J=vr(1,!0);break;case"d":J=Ht(ie.Date,1);break;case"dd":J=Ht(ie.Date,2);break;case"c":case"cc":J=Ht(ie.Day,1);break;case"ccc":J=yt(pe.Days,ge.Abbreviated,fe.Standalone);break;case"cccc":J=yt(pe.Days,ge.Wide,fe.Standalone);break;case"ccccc":J=yt(pe.Days,ge.Narrow,fe.Standalone);break;case"cccccc":J=yt(pe.Days,ge.Short,fe.Standalone);break;case"E":case"EE":case"EEE":J=yt(pe.Days,ge.Abbreviated);break;case"EEEE":J=yt(pe.Days,ge.Wide);break;case"EEEEE":J=yt(pe.Days,ge.Narrow);break;case"EEEEEE":J=yt(pe.Days,ge.Short);break;case"a":case"aa":case"aaa":J=yt(pe.DayPeriods,ge.Abbreviated);break;case"aaaa":J=yt(pe.DayPeriods,ge.Wide);break;case"aaaaa":J=yt(pe.DayPeriods,ge.Narrow);break;case"b":case"bb":case"bbb":J=yt(pe.DayPeriods,ge.Abbreviated,fe.Standalone,!0);break;case"bbbb":J=yt(pe.DayPeriods,ge.Wide,fe.Standalone,!0);break;case"bbbbb":J=yt(pe.DayPeriods,ge.Narrow,fe.Standalone,!0);break;case"B":case"BB":case"BBB":J=yt(pe.DayPeriods,ge.Abbreviated,fe.Format,!0);break;case"BBBB":J=yt(pe.DayPeriods,ge.Wide,fe.Format,!0);break;case"BBBBB":J=yt(pe.DayPeriods,ge.Narrow,fe.Format,!0);break;case"h":J=Ht(ie.Hours,1,-12);break;case"hh":J=Ht(ie.Hours,2,-12);break;case"H":J=Ht(ie.Hours,1);break;case"HH":J=Ht(ie.Hours,2);break;case"m":J=Ht(ie.Minutes,1);break;case"mm":J=Ht(ie.Minutes,2);break;case"s":J=Ht(ie.Seconds,1);break;case"ss":J=Ht(ie.Seconds,2);break;case"S":J=Ht(ie.FractionalSeconds,1);break;case"SS":J=Ht(ie.FractionalSeconds,2);break;case"SSS":J=Ht(ie.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":J=wt(oe.Short);break;case"ZZZZZ":J=wt(oe.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":J=wt(oe.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":J=wt(oe.Long);break;default:return null}return sa[U]=J,J}(cn);on+=Yt?Yt(he,N,vn):"''"===cn?"'":cn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),on}function ft(U,J,N){const X=new Date(0);return X.setFullYear(U,J,N),X.setHours(0,0,0),X}function Dt(U,J){const N=function Ye(U){return(0,x.cg1)(U)[x.wAp.LocaleId]}(U);if(zt[N]=zt[N]||{},zt[N][J])return zt[N][J];let X="";switch(J){case"shortDate":X=Ge(U,Te.Short);break;case"mediumDate":X=Ge(U,Te.Medium);break;case"longDate":X=Ge(U,Te.Long);break;case"fullDate":X=Ge(U,Te.Full);break;case"shortTime":X=Xt(U,Te.Short);break;case"mediumTime":X=Xt(U,Te.Medium);break;case"longTime":X=Xt(U,Te.Long);break;case"fullTime":X=Xt(U,Te.Full);break;case"short":const he=Dt(U,"shortTime"),ve=Dt(U,"shortDate");X=et(Cr(U,Te.Short),[he,ve]);break;case"medium":const be=Dt(U,"mediumTime"),at=Dt(U,"mediumDate");X=et(Cr(U,Te.Medium),[be,at]);break;case"long":const vn=Dt(U,"longTime"),on=Dt(U,"longDate");X=et(Cr(U,Te.Long),[vn,on]);break;case"full":const cn=Dt(U,"fullTime"),Yt=Dt(U,"fullDate");X=et(Cr(U,Te.Full),[cn,Yt])}return X&&(zt[N][J]=X),X}function et(U,J){return J&&(U=U.replace(/\{([^}]+)}/g,function(N,X){return null!=J&&X in J?J[X]:N})),U}function gt(U,J,N="-",X,he){let ve="";(U<0||he&&U<=0)&&(he?U=1-U:(U=-U,ve=N));let be=String(U);for(;be.length0||at>-N)&&(at+=N),U===ie.Hours)0===at&&-12===N&&(at=12);else if(U===ie.FractionalSeconds)return function In(U,J){return gt(U,3).substring(0,J)}(at,J);const vn=En(be,we.MinusSign);return gt(at,J,vn,X,he)}}function yt(U,J,N=fe.Format,X=!1){return function(he,ve){return function Gt(U,J,N,X,he,ve){switch(N){case pe.Months:return function Kt(U,J,N){const X=(0,x.cg1)(U),ve=ei([X[x.wAp.MonthsFormat],X[x.wAp.MonthsStandalone]],J);return ei(ve,N)}(J,he,X)[U.getMonth()];case pe.Days:return function Bt(U,J,N){const X=(0,x.cg1)(U),ve=ei([X[x.wAp.DaysFormat],X[x.wAp.DaysStandalone]],J);return ei(ve,N)}(J,he,X)[U.getDay()];case pe.DayPeriods:const be=U.getHours(),at=U.getMinutes();if(ve){const on=function ds(U){const J=(0,x.cg1)(U);return Vr(J),(J[x.wAp.ExtraData][2]||[]).map(X=>"string"==typeof X?Ar(X):[Ar(X[0]),Ar(X[1])])}(J),cn=function Ys(U,J,N){const X=(0,x.cg1)(U);Vr(X);const ve=ei([X[x.wAp.ExtraData][0],X[x.wAp.ExtraData][1]],J)||[];return ei(ve,N)||[]}(J,he,X),Yt=on.findIndex(ii=>{if(Array.isArray(ii)){const[tt,dn]=ii,Ce=be>=tt.hours&&at>=tt.minutes,lt=be0?Math.floor(he/60):Math.ceil(he/60);switch(U){case oe.Short:return(he>=0?"+":"")+gt(be,2,ve)+gt(Math.abs(he%60),2,ve);case oe.ShortGMT:return"GMT"+(he>=0?"+":"")+gt(be,1,ve);case oe.Long:return"GMT"+(he>=0?"+":"")+gt(be,2,ve)+":"+gt(Math.abs(he%60),2,ve);case oe.Extended:return 0===X?"Z":(he>=0?"+":"")+gt(be,2,ve)+":"+gt(Math.abs(he%60),2,ve);default:throw new Error(`Unknown zone width "${U}"`)}}}function Ur(U){return ft(U.getFullYear(),U.getMonth(),U.getDate()+(4-U.getDay()))}function vr(U,J=!1){return function(N,X){let he;if(J){const ve=new Date(N.getFullYear(),N.getMonth(),1).getDay()-1,be=N.getDate();he=1+Math.floor((be+ve)/7)}else{const ve=Ur(N),be=function Yn(U){const J=ft(U,0,1).getDay();return ft(U,0,1+(J<=4?4:11)-J)}(ve.getFullYear()),at=ve.getTime()-be.getTime();he=1+Math.round(at/6048e5)}return gt(he,U,En(X,we.MinusSign))}}function cr(U,J=!1){return function(N,X){return gt(Ur(N).getFullYear(),U,En(X,we.MinusSign),J)}}const sa={};function us(U,J){U=U.replace(/:/g,"");const N=Date.parse("Jan 01, 1970 00:00:00 "+U)/6e4;return isNaN(N)?J:N}function On(U){return U instanceof Date&&!isNaN(U.valueOf())}function _t(U,J){J=encodeURIComponent(J);for(const N of U.split(";")){const X=N.indexOf("="),[he,ve]=-1==X?[N,""]:[N.slice(0,X),N.slice(X+1)];if(he.trim()===J)return decodeURIComponent(ve)}return null}let Tr=(()=>{class U{constructor(N,X,he,ve){this._iterableDiffers=N,this._keyValueDiffers=X,this._ngEl=he,this._renderer=ve,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(N){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof N?N.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(N){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof N?N.split(/\s+/):N,this._rawClass&&((0,x.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const N=this._iterableDiffer.diff(this._rawClass);N&&this._applyIterableChanges(N)}else if(this._keyValueDiffer){const N=this._keyValueDiffer.diff(this._rawClass);N&&this._applyKeyValueChanges(N)}}_applyKeyValueChanges(N){N.forEachAddedItem(X=>this._toggleClass(X.key,X.currentValue)),N.forEachChangedItem(X=>this._toggleClass(X.key,X.currentValue)),N.forEachRemovedItem(X=>{X.previousValue&&this._toggleClass(X.key,!1)})}_applyIterableChanges(N){N.forEachAddedItem(X=>{if("string"!=typeof X.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,x.AaK)(X.item)}`);this._toggleClass(X.item,!0)}),N.forEachRemovedItem(X=>this._toggleClass(X.item,!1))}_applyClasses(N){N&&(Array.isArray(N)||N instanceof Set?N.forEach(X=>this._toggleClass(X,!0)):Object.keys(N).forEach(X=>this._toggleClass(X,!!N[X])))}_removeClasses(N){N&&(Array.isArray(N)||N instanceof Set?N.forEach(X=>this._toggleClass(X,!1)):Object.keys(N).forEach(X=>this._toggleClass(X,!1)))}_toggleClass(N,X){(N=N.trim())&&N.split(/\s+/g).forEach(he=>{X?this._renderer.addClass(this._ngEl.nativeElement,he):this._renderer.removeClass(this._ngEl.nativeElement,he)})}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.ZZ4),x.Y36(x.aQg),x.Y36(x.SBq),x.Y36(x.Qsj))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),U})();class ca{constructor(J,N,X,he){this.$implicit=J,this.ngForOf=N,this.index=X,this.count=he}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let dr=(()=>{class U{constructor(N,X,he){this._viewContainer=N,this._template=X,this._differs=he,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(N){this._ngForOf=N,this._ngForOfDirty=!0}set ngForTrackBy(N){this._trackByFn=N}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(N){N&&(this._template=N)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const N=this._ngForOf;!this._differ&&N&&(this._differ=this._differs.find(N).create(this.ngForTrackBy))}if(this._differ){const N=this._differ.diff(this._ngForOf);N&&this._applyChanges(N)}}_applyChanges(N){const X=this._viewContainer;N.forEachOperation((he,ve,be)=>{if(null==he.previousIndex)X.createEmbeddedView(this._template,new ca(he.item,this._ngForOf,-1,-1),null===be?void 0:be);else if(null==be)X.remove(null===ve?void 0:ve);else if(null!==ve){const at=X.get(ve);X.move(at,be),Bn(at,he)}});for(let he=0,ve=X.length;he{Bn(X.get(he.currentIndex),he)})}static ngTemplateContextGuard(N,X){return!0}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.s_b),x.Y36(x.Rgc),x.Y36(x.ZZ4))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),U})();function Bn(U,J){U.context.$implicit=J.item}let ni=(()=>{class U{constructor(N,X){this._viewContainer=N,this._context=new Di,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=X}set ngIf(N){this._context.$implicit=this._context.ngIf=N,this._updateView()}set ngIfThen(N){Ki("ngIfThen",N),this._thenTemplateRef=N,this._thenViewRef=null,this._updateView()}set ngIfElse(N){Ki("ngIfElse",N),this._elseTemplateRef=N,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(N,X){return!0}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.s_b),x.Y36(x.Rgc))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),U})();class Di{constructor(){this.$implicit=null,this.ngIf=null}}function Ki(U,J){if(J&&!J.createEmbeddedView)throw new Error(`${U} must be a TemplateRef, but received '${(0,x.AaK)(J)}'.`)}class qr{constructor(J,N){this._viewContainerRef=J,this._templateRef=N,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(J){J&&!this._created?this.create():!J&&this._created&&this.destroy()}}let ur=(()=>{class U{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(N){this._ngSwitch=N,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(N){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(N)}_matchCase(N){const X=N==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||X,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),X}_updateDefaultCases(N){if(this._defaultViews&&N!==this._defaultUsed){this._defaultUsed=N;for(let X=0;X{class U{constructor(N,X,he){this.ngSwitch=he,he._addCase(),this._view=new qr(N,X)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.s_b),x.Y36(x.Rgc),x.Y36(ur,9))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),U})(),da=(()=>{class U{constructor(N,X,he){he._addDefault(new qr(N,X))}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.s_b),x.Y36(x.Rgc),x.Y36(ur,9))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngSwitchDefault",""]],standalone:!0}),U})(),Xi=(()=>{class U{constructor(N,X,he){this._ngEl=N,this._differs=X,this._renderer=he,this._ngStyle=null,this._differ=null}set ngStyle(N){this._ngStyle=N,!this._differ&&N&&(this._differ=this._differs.find(N).create())}ngDoCheck(){if(this._differ){const N=this._differ.diff(this._ngStyle);N&&this._applyChanges(N)}}_setStyle(N,X){const[he,ve]=N.split("."),be=-1===he.indexOf("-")?void 0:x.JOm.DashCase;null!=X?this._renderer.setStyle(this._ngEl.nativeElement,he,ve?`${X}${ve}`:X,be):this._renderer.removeStyle(this._ngEl.nativeElement,he,be)}_applyChanges(N){N.forEachRemovedItem(X=>this._setStyle(X.key,null)),N.forEachAddedItem(X=>this._setStyle(X.key,X.currentValue)),N.forEachChangedItem(X=>this._setStyle(X.key,X.currentValue))}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.SBq),x.Y36(x.aQg),x.Y36(x.Qsj))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),U})(),mn=(()=>{class U{constructor(N){this._viewContainerRef=N,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(N){if(N.ngTemplateOutlet||N.ngTemplateOutletInjector){const X=this._viewContainerRef;if(this._viewRef&&X.remove(X.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:he,ngTemplateOutletContext:ve,ngTemplateOutletInjector:be}=this;this._viewRef=X.createEmbeddedView(he,ve,be?{injector:be}:void 0)}else this._viewRef=null}else this._viewRef&&N.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.s_b))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[x.TTD]}),U})();function it(U,J){return new x.vHH(2100,!1)}class Gs{createSubscription(J,N){return J.subscribe({next:N,error:X=>{throw X}})}dispose(J){J.unsubscribe()}}class qu{createSubscription(J,N){return J.then(N,X=>{throw X})}dispose(J){}}const v=new qu,Vn=new Gs;let Dn=(()=>{class U{constructor(N){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=N}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(N){return this._obj?N!==this._obj?(this._dispose(),this.transform(N)):this._latestValue:(N&&this._subscribe(N),this._latestValue)}_subscribe(N){this._obj=N,this._strategy=this._selectStrategy(N),this._subscription=this._strategy.createSubscription(N,X=>this._updateLatestValue(N,X))}_selectStrategy(N){if((0,x.QGY)(N))return v;if((0,x.F4k)(N))return Vn;throw it()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(N,X){N===this._obj&&(this._latestValue=X,this._ref.markForCheck())}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.sBO,16))},U.\u0275pipe=x.Yjl({name:"async",type:U,pure:!1,standalone:!0}),U})();const Va=new x.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let wn=(()=>{class U{constructor(N,X){this.locale=N,this.defaultTimezone=X}transform(N,X="mediumDate",he,ve){if(null==N||""===N||N!=N)return null;try{return Ie(N,X,ve||this.locale,he??this.defaultTimezone??void 0)}catch(be){throw it()}}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.soG,16),x.Y36(Va,24))},U.\u0275pipe=x.Yjl({name:"date",type:U,pure:!0,standalone:!0}),U})(),Uo=(()=>{class U{}return U.\u0275fac=function(N){return new(N||U)},U.\u0275mod=x.oAB({type:U}),U.\u0275inj=x.cJS({}),U})();const ui="browser";function Zu(U){return U===ui}let pa=(()=>{class U{}return U.\u0275prov=(0,x.Yz7)({token:U,providedIn:"root",factory:()=>new er((0,x.LFG)(B),window)}),U})();class er{constructor(J,N){this.document=J,this.window=N,this.offset=()=>[0,0]}setOffset(J){this.offset=Array.isArray(J)?()=>J:J}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(J){this.supportsScrolling()&&this.window.scrollTo(J[0],J[1])}scrollToAnchor(J){if(!this.supportsScrolling())return;const N=function tc(U,J){const N=U.getElementById(J)||U.getElementsByName(J)[0];if(N)return N;if("function"==typeof U.createTreeWalker&&U.body&&(U.body.createShadowRoot||U.body.attachShadow)){const X=U.createTreeWalker(U.body,NodeFilter.SHOW_ELEMENT);let he=X.currentNode;for(;he;){const ve=he.shadowRoot;if(ve){const be=ve.getElementById(J)||ve.querySelector(`[name="${J}"]`);if(be)return be}he=X.nextNode()}}return null}(this.document,J);N&&(this.scrollToElement(N),N.focus())}setHistoryScrollRestoration(J){if(this.supportScrollRestoration()){const N=this.window.history;N&&N.scrollRestoration&&(N.scrollRestoration=J)}}scrollToElement(J){const N=J.getBoundingClientRect(),X=N.left+this.window.pageXOffset,he=N.top+this.window.pageYOffset,ve=this.offset();this.window.scrollTo(X-ve[0],he-ve[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const J=ec(this.window.history)||ec(Object.getPrototypeOf(this.window.history));return!(!J||!J.writable&&!J.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ec(U){return Object.getOwnPropertyDescriptor(U,"scrollRestoration")}class fi{}},529:(z,W,E)=>{"use strict";E.d(W,{JF:()=>Io,LE:()=>Me,TP:()=>Bt,WM:()=>ee,Zn:()=>Te,eN:()=>Ye,qT:()=>Ze});var x=E(6895),n=E(4650),P=E(9646),D=E(9751),H=E(4351),I=E(9300),B=E(4004);class Y{}class G{}class ee{constructor(oe){this.normalizedNames=new Map,this.lazyUpdate=null,oe?this.lazyInit="string"==typeof oe?()=>{this.headers=new Map,oe.split("\n").forEach(ie=>{const pe=ie.indexOf(":");if(pe>0){const Ie=ie.slice(0,pe),ft=Ie.toLowerCase(),Dt=ie.slice(pe+1).trim();this.maybeSetNormalizedName(Ie,ft),this.headers.has(ft)?this.headers.get(ft).push(Dt):this.headers.set(ft,[Dt])}})}:()=>{this.headers=new Map,Object.keys(oe).forEach(ie=>{let pe=oe[ie];const Ie=ie.toLowerCase();"string"==typeof pe&&(pe=[pe]),pe.length>0&&(this.headers.set(Ie,pe),this.maybeSetNormalizedName(ie,Ie))})}:this.headers=new Map}has(oe){return this.init(),this.headers.has(oe.toLowerCase())}get(oe){this.init();const ie=this.headers.get(oe.toLowerCase());return ie&&ie.length>0?ie[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(oe){return this.init(),this.headers.get(oe.toLowerCase())||null}append(oe,ie){return this.clone({name:oe,value:ie,op:"a"})}set(oe,ie){return this.clone({name:oe,value:ie,op:"s"})}delete(oe,ie){return this.clone({name:oe,value:ie,op:"d"})}maybeSetNormalizedName(oe,ie){this.normalizedNames.has(ie)||this.normalizedNames.set(ie,oe)}init(){this.lazyInit&&(this.lazyInit instanceof ee?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(oe=>this.applyUpdate(oe)),this.lazyUpdate=null))}copyFrom(oe){oe.init(),Array.from(oe.headers.keys()).forEach(ie=>{this.headers.set(ie,oe.headers.get(ie)),this.normalizedNames.set(ie,oe.normalizedNames.get(ie))})}clone(oe){const ie=new ee;return ie.lazyInit=this.lazyInit&&this.lazyInit instanceof ee?this.lazyInit:this,ie.lazyUpdate=(this.lazyUpdate||[]).concat([oe]),ie}applyUpdate(oe){const ie=oe.name.toLowerCase();switch(oe.op){case"a":case"s":let pe=oe.value;if("string"==typeof pe&&(pe=[pe]),0===pe.length)return;this.maybeSetNormalizedName(oe.name,ie);const Ie=("a"===oe.op?this.headers.get(ie):void 0)||[];Ie.push(...pe),this.headers.set(ie,Ie);break;case"d":const ft=oe.value;if(ft){let Dt=this.headers.get(ie);if(!Dt)return;Dt=Dt.filter(et=>-1===ft.indexOf(et)),0===Dt.length?(this.headers.delete(ie),this.normalizedNames.delete(ie)):this.headers.set(ie,Dt)}else this.headers.delete(ie),this.normalizedNames.delete(ie)}}forEach(oe){this.init(),Array.from(this.normalizedNames.keys()).forEach(ie=>oe(this.normalizedNames.get(ie),this.headers.get(ie)))}}class ae{encodeKey(oe){return _e(oe)}encodeValue(oe){return _e(oe)}decodeKey(oe){return decodeURIComponent(oe)}decodeValue(oe){return decodeURIComponent(oe)}}const se=/%(\d[a-f0-9])/gi,re={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function _e(Re){return encodeURIComponent(Re).replace(se,(oe,ie)=>re[ie]??oe)}function ye(Re){return`${Re}`}class Me{constructor(oe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=oe.encoder||new ae,oe.fromString){if(oe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ue(Re,oe){const ie=new Map;return Re.length>0&&Re.replace(/^\?/,"").split("&").forEach(Ie=>{const ft=Ie.indexOf("="),[Dt,et]=-1==ft?[oe.decodeKey(Ie),""]:[oe.decodeKey(Ie.slice(0,ft)),oe.decodeValue(Ie.slice(ft+1))],gt=ie.get(Dt)||[];gt.push(et),ie.set(Dt,gt)}),ie}(oe.fromString,this.encoder)}else oe.fromObject?(this.map=new Map,Object.keys(oe.fromObject).forEach(ie=>{const pe=oe.fromObject[ie],Ie=Array.isArray(pe)?pe.map(ye):[ye(pe)];this.map.set(ie,Ie)})):this.map=null}has(oe){return this.init(),this.map.has(oe)}get(oe){this.init();const ie=this.map.get(oe);return ie?ie[0]:null}getAll(oe){return this.init(),this.map.get(oe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(oe,ie){return this.clone({param:oe,value:ie,op:"a"})}appendAll(oe){const ie=[];return Object.keys(oe).forEach(pe=>{const Ie=oe[pe];Array.isArray(Ie)?Ie.forEach(ft=>{ie.push({param:pe,value:ft,op:"a"})}):ie.push({param:pe,value:Ie,op:"a"})}),this.clone(ie)}set(oe,ie){return this.clone({param:oe,value:ie,op:"s"})}delete(oe,ie){return this.clone({param:oe,value:ie,op:"d"})}toString(){return this.init(),this.keys().map(oe=>{const ie=this.encoder.encodeKey(oe);return this.map.get(oe).map(pe=>ie+"="+this.encoder.encodeValue(pe)).join("&")}).filter(oe=>""!==oe).join("&")}clone(oe){const ie=new Me({encoder:this.encoder});return ie.cloneFrom=this.cloneFrom||this,ie.updates=(this.updates||[]).concat(oe),ie}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(oe=>this.map.set(oe,this.cloneFrom.map.get(oe))),this.updates.forEach(oe=>{switch(oe.op){case"a":case"s":const ie=("a"===oe.op?this.map.get(oe.param):void 0)||[];ie.push(ye(oe.value)),this.map.set(oe.param,ie);break;case"d":if(void 0===oe.value){this.map.delete(oe.param);break}{let pe=this.map.get(oe.param)||[];const Ie=pe.indexOf(ye(oe.value));-1!==Ie&&pe.splice(Ie,1),pe.length>0?this.map.set(oe.param,pe):this.map.delete(oe.param)}}}),this.cloneFrom=this.updates=null)}}class Ze{constructor(){this.map=new Map}set(oe,ie){return this.map.set(oe,ie),this}get(oe){return this.map.has(oe)||this.map.set(oe,oe.defaultValue()),this.map.get(oe)}delete(oe){return this.map.delete(oe),this}has(oe){return this.map.has(oe)}keys(){return this.map.keys()}}function Ee(Re){return typeof ArrayBuffer<"u"&&Re instanceof ArrayBuffer}function Pe(Re){return typeof Blob<"u"&&Re instanceof Blob}function ut(Re){return typeof FormData<"u"&&Re instanceof FormData}class Ne{constructor(oe,ie,pe,Ie){let ft;if(this.url=ie,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=oe.toUpperCase(),function ke(Re){switch(Re){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ie?(this.body=void 0!==pe?pe:null,ft=Ie):ft=pe,ft&&(this.reportProgress=!!ft.reportProgress,this.withCredentials=!!ft.withCredentials,ft.responseType&&(this.responseType=ft.responseType),ft.headers&&(this.headers=ft.headers),ft.context&&(this.context=ft.context),ft.params&&(this.params=ft.params)),this.headers||(this.headers=new ee),this.context||(this.context=new Ze),this.params){const Dt=this.params.toString();if(0===Dt.length)this.urlWithParams=ie;else{const et=ie.indexOf("?");this.urlWithParams=ie+(-1===et?"?":etVi.set(yt,oe.setHeaders[yt]),gt)),oe.setParams&&(In=Object.keys(oe.setParams).reduce((Vi,yt)=>Vi.set(yt,oe.setParams[yt]),In)),new Ne(ie,pe,ft,{params:In,headers:gt,context:Ht,reportProgress:et,responseType:Ie,withCredentials:Dt})}}var je=(()=>((je=je||{})[je.Sent=0]="Sent",je[je.UploadProgress=1]="UploadProgress",je[je.ResponseHeader=2]="ResponseHeader",je[je.DownloadProgress=3]="DownloadProgress",je[je.Response=4]="Response",je[je.User=5]="User",je))();class fe{constructor(oe,ie=200,pe="OK"){this.headers=oe.headers||new ee,this.status=void 0!==oe.status?oe.status:ie,this.statusText=oe.statusText||pe,this.url=oe.url||null,this.ok=this.status>=200&&this.status<300}}class ge extends fe{constructor(oe={}){super(oe),this.type=je.ResponseHeader}clone(oe={}){return new ge({headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class Te extends fe{constructor(oe={}){super(oe),this.type=je.Response,this.body=void 0!==oe.body?oe.body:null}clone(oe={}){return new Te({body:void 0!==oe.body?oe.body:this.body,headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class we extends fe{constructor(oe){super(oe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${oe.url||"(unknown url)"}`:`Http failure response for ${oe.url||"(unknown url)"}: ${oe.status} ${oe.statusText}`,this.error=oe.error||null}}function ze(Re,oe){return{body:oe,headers:Re.headers,context:Re.context,observe:Re.observe,params:Re.params,reportProgress:Re.reportProgress,responseType:Re.responseType,withCredentials:Re.withCredentials}}let Ye=(()=>{class Re{constructor(ie){this.handler=ie}request(ie,pe,Ie={}){let ft;if(ie instanceof Ne)ft=ie;else{let gt,In;gt=Ie.headers instanceof ee?Ie.headers:new ee(Ie.headers),Ie.params&&(In=Ie.params instanceof Me?Ie.params:new Me({fromObject:Ie.params})),ft=new Ne(ie,pe,void 0!==Ie.body?Ie.body:null,{headers:gt,context:Ie.context,params:In,reportProgress:Ie.reportProgress,responseType:Ie.responseType||"json",withCredentials:Ie.withCredentials})}const Dt=(0,P.of)(ft).pipe((0,H.b)(gt=>this.handler.handle(gt)));if(ie instanceof Ne||"events"===Ie.observe)return Dt;const et=Dt.pipe((0,I.h)(gt=>gt instanceof Te));switch(Ie.observe||"body"){case"body":switch(ft.responseType){case"arraybuffer":return et.pipe((0,B.U)(gt=>{if(null!==gt.body&&!(gt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return gt.body}));case"blob":return et.pipe((0,B.U)(gt=>{if(null!==gt.body&&!(gt.body instanceof Blob))throw new Error("Response is not a Blob.");return gt.body}));case"text":return et.pipe((0,B.U)(gt=>{if(null!==gt.body&&"string"!=typeof gt.body)throw new Error("Response is not a string.");return gt.body}));default:return et.pipe((0,B.U)(gt=>gt.body))}case"response":return et;default:throw new Error(`Unreachable: unhandled observe type ${Ie.observe}}`)}}delete(ie,pe={}){return this.request("DELETE",ie,pe)}get(ie,pe={}){return this.request("GET",ie,pe)}head(ie,pe={}){return this.request("HEAD",ie,pe)}jsonp(ie,pe){return this.request("JSONP",ie,{params:(new Me).append(pe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ie,pe={}){return this.request("OPTIONS",ie,pe)}patch(ie,pe,Ie={}){return this.request("PATCH",ie,ze(Ie,pe))}post(ie,pe,Ie={}){return this.request("POST",ie,ze(Ie,pe))}put(ie,pe,Ie={}){return this.request("PUT",ie,ze(Ie,pe))}}return Re.\u0275fac=function(ie){return new(ie||Re)(n.LFG(Y))},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class Et{constructor(oe,ie){this.next=oe,this.interceptor=ie}handle(oe){return this.interceptor.intercept(oe,this.next)}}const Bt=new n.OlP("HTTP_INTERCEPTORS");let Kt=(()=>{class Re{intercept(ie,pe){return pe.handle(ie)}}return Re.\u0275fac=function(ie){return new(ie||Re)},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Ns=/^\)\]\}',?\n/;let Fs=(()=>{class Re{constructor(ie){this.xhrFactory=ie}handle(ie){if("JSONP"===ie.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new D.y(pe=>{const Ie=this.xhrFactory.build();if(Ie.open(ie.method,ie.urlWithParams),ie.withCredentials&&(Ie.withCredentials=!0),ie.headers.forEach((Gt,wt)=>Ie.setRequestHeader(Gt,wt.join(","))),ie.headers.has("Accept")||Ie.setRequestHeader("Accept","application/json, text/plain, */*"),!ie.headers.has("Content-Type")){const Gt=ie.detectContentTypeHeader();null!==Gt&&Ie.setRequestHeader("Content-Type",Gt)}if(ie.responseType){const Gt=ie.responseType.toLowerCase();Ie.responseType="json"!==Gt?Gt:"text"}const ft=ie.serializeBody();let Dt=null;const et=()=>{if(null!==Dt)return Dt;const Gt=Ie.statusText||"OK",wt=new ee(Ie.getAllResponseHeaders()),Qi=function hd(Re){return"responseURL"in Re&&Re.responseURL?Re.responseURL:/^X-Request-URL:/m.test(Re.getAllResponseHeaders())?Re.getResponseHeader("X-Request-URL"):null}(Ie)||ie.url;return Dt=new ge({headers:wt,status:Ie.status,statusText:Gt,url:Qi}),Dt},gt=()=>{let{headers:Gt,status:wt,statusText:Qi,url:jr}=et(),Yn=null;204!==wt&&(Yn=typeof Ie.response>"u"?Ie.responseText:Ie.response),0===wt&&(wt=Yn?200:0);let Ur=wt>=200&&wt<300;if("json"===ie.responseType&&"string"==typeof Yn){const vr=Yn;Yn=Yn.replace(Ns,"");try{Yn=""!==Yn?JSON.parse(Yn):null}catch(cr){Yn=vr,Ur&&(Ur=!1,Yn={error:cr,text:Yn})}}Ur?(pe.next(new Te({body:Yn,headers:Gt,status:wt,statusText:Qi,url:jr||void 0})),pe.complete()):pe.error(new we({error:Yn,headers:Gt,status:wt,statusText:Qi,url:jr||void 0}))},In=Gt=>{const{url:wt}=et(),Qi=new we({error:Gt,status:Ie.status||0,statusText:Ie.statusText||"Unknown Error",url:wt||void 0});pe.error(Qi)};let Ht=!1;const Vi=Gt=>{Ht||(pe.next(et()),Ht=!0);let wt={type:je.DownloadProgress,loaded:Gt.loaded};Gt.lengthComputable&&(wt.total=Gt.total),"text"===ie.responseType&&!!Ie.responseText&&(wt.partialText=Ie.responseText),pe.next(wt)},yt=Gt=>{let wt={type:je.UploadProgress,loaded:Gt.loaded};Gt.lengthComputable&&(wt.total=Gt.total),pe.next(wt)};return Ie.addEventListener("load",gt),Ie.addEventListener("error",In),Ie.addEventListener("timeout",In),Ie.addEventListener("abort",In),ie.reportProgress&&(Ie.addEventListener("progress",Vi),null!==ft&&Ie.upload&&Ie.upload.addEventListener("progress",yt)),Ie.send(ft),pe.next({type:je.Sent}),()=>{Ie.removeEventListener("error",In),Ie.removeEventListener("abort",In),Ie.removeEventListener("load",gt),Ie.removeEventListener("timeout",In),ie.reportProgress&&(Ie.removeEventListener("progress",Vi),null!==ft&&Ie.upload&&Ie.upload.removeEventListener("progress",yt)),Ie.readyState!==Ie.DONE&&Ie.abort()}})}}return Re.\u0275fac=function(ie){return new(ie||Re)(n.LFG(x.JF))},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Br=new n.OlP("XSRF_COOKIE_NAME"),Vr=new n.OlP("XSRF_HEADER_NAME");class ds{}let Ys=(()=>{class Re{constructor(ie,pe,Ie){this.doc=ie,this.platform=pe,this.cookieName=Ie,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ie=this.doc.cookie||"";return ie!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,x.Mx)(ie,this.cookieName),this.lastCookieString=ie),this.lastToken}}return Re.\u0275fac=function(ie){return new(ie||Re)(n.LFG(x.K0),n.LFG(n.Lbi),n.LFG(Br))},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),pt=(()=>{class Re{constructor(ie,pe){this.tokenService=ie,this.headerName=pe}intercept(ie,pe){const Ie=ie.url.toLowerCase();if("GET"===ie.method||"HEAD"===ie.method||Ie.startsWith("http://")||Ie.startsWith("https://"))return pe.handle(ie);const ft=this.tokenService.getToken();return null!==ft&&!ie.headers.has(this.headerName)&&(ie=ie.clone({headers:ie.headers.set(this.headerName,ft)})),pe.handle(ie)}}return Re.\u0275fac=function(ie){return new(ie||Re)(n.LFG(ds),n.LFG(Vr))},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),ei=(()=>{class Re{constructor(ie,pe){this.backend=ie,this.injector=pe,this.chain=null}handle(ie){if(null===this.chain){const pe=this.injector.get(Bt,[]);this.chain=pe.reduceRight((Ie,ft)=>new Et(Ie,ft),this.backend)}return this.chain.handle(ie)}}return Re.\u0275fac=function(ie){return new(ie||Re)(n.LFG(G),n.LFG(n.zs3))},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),di=(()=>{class Re{static disable(){return{ngModule:Re,providers:[{provide:pt,useClass:Kt}]}}static withOptions(ie={}){return{ngModule:Re,providers:[ie.cookieName?{provide:Br,useValue:ie.cookieName}:[],ie.headerName?{provide:Vr,useValue:ie.headerName}:[]]}}}return Re.\u0275fac=function(ie){return new(ie||Re)},Re.\u0275mod=n.oAB({type:Re}),Re.\u0275inj=n.cJS({providers:[pt,{provide:Bt,useExisting:pt,multi:!0},{provide:ds,useClass:Ys},{provide:Br,useValue:"XSRF-TOKEN"},{provide:Vr,useValue:"X-XSRF-TOKEN"}]}),Re})(),Io=(()=>{class Re{}return Re.\u0275fac=function(ie){return new(ie||Re)},Re.\u0275mod=n.oAB({type:Re}),Re.\u0275inj=n.cJS({providers:[Ye,{provide:Y,useClass:ei},Fs,{provide:G,useExisting:Fs}],imports:[di.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Re})()},4650:(z,W,E)=>{"use strict";E.d(W,{$8M:()=>tl,$Z:()=>Pb,AFp:()=>xo,ALo:()=>vg,AaK:()=>Y,AsE:()=>Nm,B6R:()=>jr,BQk:()=>cp,CHM:()=>Hn,CRH:()=>gy,CZH:()=>rs,CqO:()=>Em,D6c:()=>FE,DdM:()=>Cg,Dn7:()=>h0,EJc:()=>$0,EiD:()=>Hh,EpF:()=>Oc,F$t:()=>gw,F4k:()=>pw,FYo:()=>uo,FiY:()=>ul,G48:()=>DE,Gf:()=>ku,GfV:()=>tb,GkF:()=>Ic,Gpc:()=>te,Gre:()=>Hw,Hsn:()=>rr,Ikx:()=>gp,JOm:()=>Ms,JVY:()=>eA,Jf7:()=>BA,KtG:()=>xr,L6k:()=>tA,LAX:()=>iA,LFG:()=>Tn,LSH:()=>yc,Lbi:()=>z0,Lck:()=>ZT,MAs:()=>cw,MMx:()=>Hu,NdJ:()=>Ps,O4$:()=>cc,OlP:()=>pn,Oqu:()=>ta,PXZ:()=>Oi,Q6J:()=>Sl,QGY:()=>dp,QP$:()=>Qc,QbO:()=>G0,Qsj:()=>eb,R0b:()=>br,RDi:()=>V,Rgc:()=>Ru,SBq:()=>Nd,Sil:()=>Q0,Suo:()=>my,TTD:()=>Ws,TgZ:()=>op,Tol:()=>vw,Udp:()=>Om,VKq:()=>oy,W1O:()=>Rg,WFA:()=>up,WLB:()=>ly,XFs:()=>pt,Xpm:()=>Qi,Xts:()=>Ts,Y36:()=>Ss,YKP:()=>_r,YNc:()=>Mm,Yjl:()=>us,Yz7:()=>Xt,ZZ4:()=>e_,_Bn:()=>Mp,_UZ:()=>uw,_Vd:()=>Tc,_c5:()=>NE,_uU:()=>Sw,aQg:()=>Zy,c2e:()=>W0,cJS:()=>En,cg1:()=>_p,d8E:()=>Vc,dDg:()=>wr,dqk:()=>pe,eBb:()=>nA,eFA:()=>Vy,ekj:()=>Bm,eoX:()=>ky,f3M:()=>wh,g9A:()=>Yg,h0i:()=>Nc,hGG:()=>_x,hij:()=>fp,iGM:()=>Jc,ifc:()=>ie,ip1:()=>Fg,kL8:()=>bp,kcU:()=>eh,lG2:()=>pd,lcZ:()=>xg,lqb:()=>gl,lri:()=>si,mCW:()=>bc,n5z:()=>ch,n_E:()=>Hp,oAB:()=>vr,oJD:()=>F_,oxw:()=>mw,pB0:()=>Sh,q3G:()=>Wn,qLn:()=>Zr,qOj:()=>Cm,qZA:()=>Sm,qzn:()=>ml,rWj:()=>Ry,s9C:()=>Hm,sBO:()=>ox,sIi:()=>Hc,s_b:()=>Rp,soG:()=>Fp,tb:()=>Ey,tp0:()=>qa,uIk:()=>sw,vHH:()=>re,vpe:()=>is,wAp:()=>bt,xDo:()=>_u,xi3:()=>u0,xp6:()=>$f,ynx:()=>lp,z2F:()=>Qg,z3N:()=>kr,zSh:()=>Rf,zs3:()=>go});var x=E(7579),n=E(727),P=E(9751),D=E(6451),H=E(3099);function I(_){for(let b in _)if(_[b]===I)return b;throw Error("Could not find renamed property on target object.")}function B(_,b){for(const w in b)b.hasOwnProperty(w)&&!_.hasOwnProperty(w)&&(_[w]=b[w])}function Y(_){if("string"==typeof _)return _;if(Array.isArray(_))return"["+_.map(Y).join(", ")+"]";if(null==_)return""+_;if(_.overriddenName)return`${_.overriddenName}`;if(_.name)return`${_.name}`;const b=_.toString();if(null==b)return""+b;const w=b.indexOf("\n");return-1===w?b:b.substring(0,w)}function G(_,b){return null==_||""===_?null===b?"":b:null==b||""===b?_:_+" "+b}const ee=I({__forward_ref__:I});function te(_){return _.__forward_ref__=te,_.toString=function(){return Y(this())},_}function ae(_){return ue(_)?_():_}function ue(_){return"function"==typeof _&&_.hasOwnProperty(ee)&&_.__forward_ref__===te}class re extends Error{constructor(b,w){super(function _e(_,b){return`NG0${Math.abs(_)}${b?": "+b.trim():""}`}(b,w)),this.code=b}}function ye(_){return"string"==typeof _?_:null==_?"":String(_)}function Ee(_,b){throw new re(-201,!1)}function Kt(_,b){null==_&&function Qe(_,b,w,C){throw new Error(`ASSERTION ERROR: ${_}`+(null==C?"":` [Expected=> ${w} ${C} ${b} <=Actual]`))}(b,_,null,"!=")}function Xt(_){return{token:_.token,providedIn:_.providedIn||null,factory:_.factory,value:void 0}}function En(_){return{providers:_.providers||[],imports:_.imports||[]}}function aa(_){return Zl(_,Br)||Zl(_,ds)}function Zl(_,b){return _.hasOwnProperty(b)?_[b]:null}function Fs(_){return _&&(_.hasOwnProperty(Vr)||_.hasOwnProperty(Ys))?_[Vr]:null}const Br=I({\u0275prov:I}),Vr=I({\u0275inj:I}),ds=I({ngInjectableDef:I}),Ys=I({ngInjectorDef:I});var pt=(()=>((pt=pt||{})[pt.Default=0]="Default",pt[pt.Host=1]="Host",pt[pt.Self=2]="Self",pt[pt.SkipSelf=4]="SkipSelf",pt[pt.Optional=8]="Optional",pt))();let ei;function Wt(_){const b=ei;return ei=_,b}function di(_,b,w){const C=aa(_);return C&&"root"==C.providedIn?void 0===C.value?C.value=C.factory():C.value:w&pt.Optional?null:void 0!==b?b:void Ee(Y(_))}function lr(_){return{toString:_}.toString()}var zt=(()=>((zt=zt||{})[zt.OnPush=0]="OnPush",zt[zt.Default=1]="Default",zt))(),ie=(()=>{return(_=ie||(ie={}))[_.Emulated=0]="Emulated",_[_.None=2]="None",_[_.ShadowDom=3]="ShadowDom",ie;var _})();const pe=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Dt={},et=[],gt=I({\u0275cmp:I}),In=I({\u0275dir:I}),Ht=I({\u0275pipe:I}),Vi=I({\u0275mod:I}),yt=I({\u0275fac:I}),Gt=I({__NG_ELEMENT_ID__:I});let wt=0;function Qi(_){return lr(()=>{const w=!0===_.standalone,C={},T={type:_.type,providersResolver:null,decls:_.decls,vars:_.vars,factory:null,template:_.template||null,consts:_.consts||null,ngContentSelectors:_.ngContentSelectors,hostBindings:_.hostBindings||null,hostVars:_.hostVars||0,hostAttrs:_.hostAttrs||null,contentQueries:_.contentQueries||null,declaredInputs:C,inputs:null,outputs:null,exportAs:_.exportAs||null,onPush:_.changeDetection===zt.OnPush,directiveDefs:null,pipeDefs:null,standalone:w,dependencies:w&&_.dependencies||null,getStandaloneInjector:null,selectors:_.selectors||et,viewQuery:_.viewQuery||null,features:_.features||null,data:_.data||{},encapsulation:_.encapsulation||ie.Emulated,id:"c"+wt++,styles:_.styles||et,_:null,setInput:null,schemas:_.schemas||null,tView:null},M=_.dependencies,R=_.features;return T.inputs=sa(_.inputs,C),T.outputs=sa(_.outputs),R&&R.forEach(L=>L(T)),T.directiveDefs=M?()=>("function"==typeof M?M():M).map(Yn).filter(Ur):null,T.pipeDefs=M?()=>("function"==typeof M?M():M).map(ti).filter(Ur):null,T})}function jr(_,b,w){const C=_.\u0275cmp;C.directiveDefs=()=>("function"==typeof b?b():b).map(Yn),C.pipeDefs=()=>("function"==typeof w?w():w).map(ti)}function Yn(_){return $t(_)||Zn(_)}function Ur(_){return null!==_}function vr(_){return lr(()=>({type:_.type,bootstrap:_.bootstrap||et,declarations:_.declarations||et,imports:_.imports||et,exports:_.exports||et,transitiveCompileScopes:null,schemas:_.schemas||null,id:_.id||null}))}function sa(_,b){if(null==_)return Dt;const w={};for(const C in _)if(_.hasOwnProperty(C)){let T=_[C],M=T;Array.isArray(T)&&(M=T[1],T=T[0]),w[T]=C,b&&(b[T]=M)}return w}const pd=Qi;function us(_){return{type:_.type,name:_.name,factory:null,pure:!1!==_.pure,standalone:!0===_.standalone,onDestroy:_.type.prototype.ngOnDestroy||null}}function $t(_){return _[gt]||null}function Zn(_){return _[In]||null}function ti(_){return _[Ht]||null}function qe(_,b){const w=_[Vi]||null;if(!w&&!0===b)throw new Error(`Type ${Y(_)} does not have '\u0275mod' property.`);return w}function ni(_){return Array.isArray(_)&&"object"==typeof _[1]}function Di(_){return Array.isArray(_)&&!0===_[1]}function Ki(_){return 0!=(8&_.flags)}function qr(_){return 2==(2&_.flags)}function ur(_){return 1==(1&_.flags)}function Hi(_){return null!==_.template}function da(_){return 0!=(256&_[2])}function ha(_,b){return _.hasOwnProperty(yt)?_[yt]:null}class md{constructor(b,w,C){this.previousValue=b,this.currentValue=w,this.firstChange=C}isFirstChange(){return this.firstChange}}function Ws(){return Bo}function Bo(_){return _.type.prototype.ngOnChanges&&(_.setInput=gd),Vo}function Vo(){const _=Js(this),b=_?.current;if(b){const w=_.previous;if(w===Dt)_.previous=b;else for(let C in b)w[C]=b[C];_.current=null,this.ngOnChanges(b)}}function gd(_,b,w,C){const T=Js(_)||function jo(_,b){return _[$s]=b}(_,{previous:Dt,current:null}),M=T.current||(T.current={}),R=T.previous,L=this.declaredInputs[w],O=R[L];M[L]=new md(O&&O.currentValue,b,R===Dt),_[C]=b}Ws.ngInherit=!0;const $s="__ngSimpleChanges__";function Js(_){return _[$s]||null}function qn(_){for(;Array.isArray(_);)_=_[0];return _}function pa(_,b){return qn(b[_])}function er(_,b){return qn(b[_.index])}function tc(_,b){return _.data[b]}function Qs(_,b){return _[b]}function fi(_,b){const w=b[_];return ni(w)?w:w[0]}function U(_){return 4==(4&_[2])}function J(_){return 64==(64&_[2])}function X(_,b){return null==b?null:_[b]}function he(_){_[18]=0}function ve(_,b){_[5]+=b;let w=_,C=_[3];for(;null!==C&&(1===b&&1===w[5]||-1===b&&0===w[5]);)C[5]+=b,w=C,C=C[3]}const be={lFrame:Fo(null),bindingsEnabled:!0};function ii(){return be.bindingsEnabled}function Ce(){return be.lFrame.lView}function lt(){return be.lFrame.tView}function Hn(_){return be.lFrame.contextLView=_,_[8]}function xr(_){return be.lFrame.contextLView=null,_}function un(){let _=ps();for(;null!==_&&64===_.type;)_=_.parent;return _}function ps(){return be.lFrame.currentTNode}function Pn(_,b){const w=be.lFrame;w.currentTNode=_,w.isParent=b}function Rt(){return be.lFrame.isParent}function Pi(){be.lFrame.isParent=!1}function jn(){const _=be.lFrame;let b=_.bindingRootIndex;return-1===b&&(b=_.bindingRootIndex=_.tView.bindingStartIndex),b}function nn(){return be.lFrame.bindingIndex}function Ks(){return be.lFrame.bindingIndex++}function Mr(_){const b=be.lFrame,w=b.bindingIndex;return b.bindingIndex=b.bindingIndex+_,w}function _d(_,b){const w=be.lFrame;w.bindingIndex=w.bindingRootIndex=_,ic(b)}function ic(_){be.lFrame.currentDirectiveIndex=_}function rc(_){const b=be.lFrame.currentDirectiveIndex;return-1===b?null:_[b]}function ac(){return be.lFrame.currentQueryIndex}function Sr(_){be.lFrame.currentQueryIndex=_}function sc(_){const b=_[1];return 2===b.type?b.declTNode:1===b.type?_[6]:null}function It(_,b,w){if(w&pt.SkipSelf){let T=b,M=_;for(;!(T=T.parent,null!==T||w&pt.Host||(T=sc(M),null===T||(M=M[15],10&T.type))););if(null===T)return!1;b=T,_=M}const C=be.lFrame=zr();return C.currentTNode=b,C.lView=_,!0}function wd(_){const b=zr(),w=_[1];be.lFrame=b,b.currentTNode=w.firstChild,b.lView=_,b.tView=w,b.contextLView=_,b.bindingIndex=w.bindingStartIndex,b.inI18n=!1}function zr(){const _=be.lFrame,b=null===_?null:_.child;return null===b?Fo(_):b}function Fo(_){const b={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:_,child:null,inI18n:!1};return null!==_&&(_.child=b),b}function oc(){const _=be.lFrame;return be.lFrame=_.parent,_.currentTNode=null,_.lView=null,_}const Er=oc;function Yo(){const _=oc();_.isParent=!0,_.tView=null,_.selectedIndex=-1,_.contextLView=null,_.elementDepthCount=0,_.currentDirectiveIndex=-1,_.currentNamespace=null,_.bindingRootIndex=-1,_.bindingIndex=-1,_.currentQueryIndex=0}function Ci(){return be.lFrame.selectedIndex}function gn(_){be.lFrame.selectedIndex=_}function Qt(){const _=be.lFrame;return tc(_.tView,_.selectedIndex)}function cc(){be.lFrame.currentNamespace="svg"}function eh(){!function th(){be.lFrame.currentNamespace=null}()}function qo(_,b){for(let w=b.directiveStart,C=b.directiveEnd;w=C)break}else b[O]<0&&(_[18]+=65536),(L>11<_[18]>>16&&(3&_[2])===b){_[2]+=2048;try{M.call(L)}finally{}}}else try{M.call(L)}finally{}}class ki{constructor(b,w,C){this.factory=b,this.resolving=!1,this.canSeeViewProviders=w,this.injectImpl=C}}function Jo(_,b,w){let C=0;for(;Cb){R=M-1;break}}}for(;M<_.length;){const L=_[M];if("number"==typeof L)break;if(L===w){if(null===C)return void(null!==T&&(_[M+1]=T));if(C===_[M+1])return void(_[M+2]=T)}M++,null!==C&&M++,null!==T&&M++}-1!==R&&(_.splice(R,0,b),M=R+1),_.splice(M++,0,w),null!==C&&_.splice(M++,0,C),null!==T&&_.splice(M++,0,T)}function Cd(_){return-1!==_}function gs(_){return 32767&_}function to(_,b){let w=function pf(_){return _>>16}(_),C=b;for(;w>0;)C=C[15],w--;return C}let Ad=!0;function _s(_){const b=Ad;return Ad=_,b}let ff=0;const Gr={};function ja(_,b){const w=fa(_,b);if(-1!==w)return w;const C=b[1];C.firstCreatePass&&(_.injectorIndex=b.length,Td(C.data,_),Td(b,null),Td(C.blueprint,null));const T=no(_,b),M=_.injectorIndex;if(Cd(T)){const R=gs(T),L=to(T,b),O=L[1].data;for(let F=0;F<8;F++)b[M+F]=L[R+F]|O[R+F]}return b[M+8]=T,M}function Td(_,b){_.push(0,0,0,0,0,0,0,0,b)}function fa(_,b){return-1===_.injectorIndex||_.parent&&_.parent.injectorIndex===_.injectorIndex||null===b[_.injectorIndex+8]?-1:_.injectorIndex}function no(_,b){if(_.parent&&-1!==_.parent.injectorIndex)return _.parent.injectorIndex;let w=0,C=null,T=b;for(;null!==T;){if(C=dh(T),null===C)return-1;if(w++,T=T[15],-1!==C.injectorIndex)return C.injectorIndex|w<<16}return-1}function xd(_,b,w){!function vd(_,b,w){let C;"string"==typeof w?C=w.charCodeAt(0)||0:w.hasOwnProperty(Gt)&&(C=w[Gt]),null==C&&(C=w[Gt]=ff++);const T=255&C;b.data[_+(T>>5)]|=1<=0?255&b:lh:b}(w);if("function"==typeof M){if(!It(b,_,C))return C&pt.Host?Md(T,0,C):Sd(b,w,C,T);try{const R=M(C);if(null!=R||C&pt.Optional)return R;Ee()}finally{Er()}}else if("number"==typeof M){let R=null,L=fa(_,b),O=-1,F=C&pt.Host?b[16][6]:null;for((-1===L||C&pt.SkipSelf)&&(O=-1===L?no(_,b):b[L+8],-1!==O&&oh(C,!1)?(R=b[1],L=gs(O),b=to(O,b)):L=-1);-1!==L;){const $=b[1];if(Ua(M,L,$.data)){const ne=ga(L,b,w,R,C,F);if(ne!==Gr)return ne}O=b[L+8],-1!==O&&oh(C,b[1].data[L+8]===F)&&Ua(M,L,b)?(R=$,L=gs(O),b=to(O,b)):L=-1}}return T}function ga(_,b,w,C,T,M){const R=b[1],L=R.data[_+8],$=io(L,R,w,null==C?qr(L)&&Ad:C!=R&&0!=(3&L.type),T&pt.Host&&M===L);return null!==$?Hr(b,R,$,L):Gr}function io(_,b,w,C,T){const M=_.providerIndexes,R=b.data,L=1048575&M,O=_.directiveStart,$=M>>20,de=T?L+$:_.directiveEnd;for(let me=C?L:L+$;me=O&&De.type===w)return me}if(T){const me=R[O];if(me&&Hi(me)&&me.type===w)return O}return null}function Hr(_,b,w,C){let T=_[w];const M=b.data;if(function ih(_){return _ instanceof ki}(T)){const R=T;R.resolving&&function Je(_,b){const w=b?`. Dependency path: ${b.join(" > ")} > ${_}`:"";throw new re(-200,`Circular dependency in DI detected for ${_}${w}`)}(function Me(_){return"function"==typeof _?_.name||_.toString():"object"==typeof _&&null!=_&&"function"==typeof _.type?_.type.name||_.type.toString():ye(_)}(M[w]));const L=_s(R.canSeeViewProviders);R.resolving=!0;const O=R.injectImpl?Wt(R.injectImpl):null;It(_,C,pt.Default);try{T=_[w]=R.factory(void 0,M,_,C),b.firstCreatePass&&w>=C.directiveStart&&function uf(_,b,w){const{ngOnChanges:C,ngOnInit:T,ngDoCheck:M}=b.type.prototype;if(C){const R=Bo(b);(w.preOrderHooks||(w.preOrderHooks=[])).push(_,R),(w.preOrderCheckHooks||(w.preOrderCheckHooks=[])).push(_,R)}T&&(w.preOrderHooks||(w.preOrderHooks=[])).push(0-_,T),M&&((w.preOrderHooks||(w.preOrderHooks=[])).push(_,M),(w.preOrderCheckHooks||(w.preOrderCheckHooks=[])).push(_,M))}(w,M[w],b)}finally{null!==O&&Wt(O),_s(L),R.resolving=!1,Er()}}return T}function Ua(_,b,w){return!!(w[b+(_>>5)]&1<<_)}function oh(_,b){return!(_&pt.Self||_&pt.Host&&b)}class ro{constructor(b,w){this._tNode=b,this._lView=w}get(b,w,C){return ma(this._tNode,this._lView,b,C,w)}}function lh(){return new ro(un(),Ce())}function ch(_){return lr(()=>{const b=_.prototype.constructor,w=b[yt]||Xo(b),C=Object.prototype;let T=Object.getPrototypeOf(_.prototype).constructor;for(;T&&T!==C;){const M=T[yt]||Xo(T);if(M&&M!==w)return M;T=Object.getPrototypeOf(T)}return M=>new M})}function Xo(_){return ue(_)?()=>{const b=Xo(ae(_));return b&&b()}:ha(_)}function dh(_){const b=_[1],w=b.type;return 2===w?b.declTNode:1===w?_[6]:null}function tl(_){return function sh(_,b){if("class"===b)return _.classes;if("style"===b)return _.styles;const w=_.attrs;if(w){const C=w.length;let T=0;for(;T{const C=function nl(_){return function(...w){if(_){const C=_(...w);for(const T in C)this[T]=C[T]}}}(b);function T(...M){if(this instanceof T)return C.apply(this,M),this;const R=new T(...M);return L.annotation=R,L;function L(O,F,$){const ne=O.hasOwnProperty(bs)?O[bs]:Object.defineProperty(O,bs,{value:[]})[bs];for(;ne.length<=$;)ne.push(null);return(ne[$]=ne[$]||[]).push(R),O}}return w&&(T.prototype=Object.create(w.prototype)),T.prototype.ngMetadataName=_,T.annotationCls=T,T})}class pn{constructor(b,w){this._desc=b,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof w?this.__NG_ELEMENT_ID__=w:void 0!==w&&(this.\u0275prov=Xt({token:this,providedIn:w.providedIn||"root",factory:w.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function zn(_,b){void 0===b&&(b=_);for(let w=0;w<_.length;w++){let C=_[w];Array.isArray(C)?(b===_&&(b=_.slice(0,w)),zn(C,b)):b!==_&&b.push(C)}return b}function Fi(_,b){_.forEach(w=>Array.isArray(w)?Fi(w,b):b(w))}function pc(_,b,w){b>=_.length?_.push(w):_.splice(b,0,w)}function rl(_,b){return b>=_.length-1?_.pop():_.splice(b,1)[0]}function al(_,b){const w=[];for(let C=0;C<_;C++)w.push(b);return w}function Yi(_,b,w){let C=Fa(_,b);return C>=0?_[1|C]=w:(C=~C,function mf(_,b,w,C){let T=_.length;if(T==b)_.push(w,C);else if(1===T)_.push(C,_[0]),_[0]=w;else{for(T--,_.push(_[T-1],_[T]);T>b;)_[T]=_[T-2],T--;_[b]=w,_[b+1]=C}}(_,C,b,w)),C}function ol(_,b){const w=Fa(_,b);if(w>=0)return _[1|w]}function Fa(_,b){return function oo(_,b,w){let C=0,T=_.length>>w;for(;T!==C;){const M=C+(T-C>>1),R=_[M<b?T=M:C=M+1}return~(T<_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Q}()?.createHTML(_)||_}function ba(_){return function Rr(){if(void 0===Gn&&(Gn=null,pe.trustedTypes))try{Gn=pe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:_=>_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Gn}()?.createHTML(_)||_}class Ga{constructor(b){this.changingThisBreaksApplicationSecurity=b}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class k_ extends Ga{getTypeName(){return"HTML"}}class L_ extends Ga{getTypeName(){return"Style"}}class xh extends Ga{getTypeName(){return"Script"}}class Mh extends Ga{getTypeName(){return"URL"}}class I_ extends Ga{getTypeName(){return"ResourceURL"}}function kr(_){return _ instanceof Ga?_.changingThisBreaksApplicationSecurity:_}function ml(_,b){const w=function XC(_){return _ instanceof Ga&&_.getTypeName()||null}(_);if(null!=w&&w!==b){if("ResourceURL"===w&&"URL"===b)return!0;throw new Error(`Required a safe ${b}, got a ${w} (see https://g.co/ng/security#xss)`)}return w===b}function eA(_){return new k_(_)}function tA(_){return new L_(_)}function nA(_){return new xh(_)}function iA(_){return new Mh(_)}function Sh(_){return new I_(_)}class rA{constructor(b){this.inertDocumentHelper=b}getInertBodyElement(b){b=""+b;try{const w=(new window.DOMParser).parseFromString(Ae(b),"text/html").body;return null===w?this.inertDocumentHelper.getInertBodyElement(b):(w.removeChild(w.firstChild),w)}catch{return null}}}class aA{constructor(b){if(this.defaultDoc=b,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const w=this.inertDocument.createElement("html");this.inertDocument.appendChild(w);const C=this.inertDocument.createElement("body");w.appendChild(C)}}getInertBodyElement(b){const w=this.inertDocument.createElement("template");if("content"in w)return w.innerHTML=Ae(b),w;const C=this.inertDocument.createElement("body");return C.innerHTML=Ae(b),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(C),C}stripCustomNsAttrs(b){const w=b.attributes;for(let T=w.length-1;0bc(b.trim())).join(", ")),this.buf.push(" ",R,'="',N_(O),'"')}var _;return this.buf.push(">"),!0}endElement(b){const w=b.nodeName.toLowerCase();Sf.hasOwnProperty(w)&&!Tf.hasOwnProperty(w)&&(this.buf.push(""))}chars(b){this.buf.push(N_(b))}checkClobberedElement(b,w){if(w&&(b.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${b.outerHTML}`);return w}}const dA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,uA=/([^\#-~ |!])/g;function N_(_){return _.replace(/&/g,"&").replace(dA,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(uA,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(//g,">")}let Dh;function Hh(_,b){let w=null;try{Dh=Dh||function O_(_){const b=new aA(_);return function sA(){try{return!!(new window.DOMParser).parseFromString(Ae(""),"text/html")}catch{return!1}}()?new rA(b):b}(_);let C=b?String(b):"";w=Dh.getInertBodyElement(C);let T=5,M=C;do{if(0===T)throw new Error("Failed to sanitize html because the input is unstable");T--,C=M,M=w.innerHTML,w=Dh.getInertBodyElement(C)}while(C!==M);return Ae((new U_).sanitizeChildren(Ph(w)||w))}finally{if(w){const C=Ph(w)||w;for(;C.firstChild;)C.removeChild(C.firstChild)}}}function Ph(_){return"content"in _&&function Hf(_){return _.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===_.nodeName}(_)?_.content:null}var Wn=(()=>((Wn=Wn||{})[Wn.NONE=0]="NONE",Wn[Wn.HTML=1]="HTML",Wn[Wn.STYLE=2]="STYLE",Wn[Wn.SCRIPT=3]="SCRIPT",Wn[Wn.URL=4]="URL",Wn[Wn.RESOURCE_URL=5]="RESOURCE_URL",Wn))();function F_(_){const b=Cc();return b?ba(b.sanitize(Wn.HTML,_)||""):ml(_,"HTML")?ba(kr(_)):Hh(function q(){return void 0!==k?k:typeof document<"u"?document:void 0}(),ye(_))}function yc(_){const b=Cc();return b?b.sanitize(Wn.URL,_)||"":ml(_,"URL")?kr(_):bc(ye(_))}function Cc(){const _=Ce();return _&&_[12]}const Ts=new pn("ENVIRONMENT_INITIALIZER"),Ud=new pn("INJECTOR",-1),z_=new pn("INJECTOR_DEF_TYPES");class G_{get(b,w=Ya){if(w===Ya){const C=new Error(`NullInjectorError: No provider for ${Y(b)}!`);throw C.name="NullInjectorError",C}return w}}function W_(..._){return{\u0275providers:_A(0,_)}}function _A(_,...b){const w=[],C=new Set;let T;return Fi(b,M=>{const R=M;Rh(R,w,[],C)&&(T||(T=[]),T.push(R))}),void 0!==T&&$_(T,w),w}function $_(_,b){for(let w=0;w<_.length;w++){const{providers:T}=_[w];Fi(T,M=>{b.push(M)})}}function Rh(_,b,w,C){if(!(_=ae(_)))return!1;let T=null,M=Fs(_);const R=!M&&$t(_);if(M||R){if(R&&!R.standalone)return!1;T=_}else{const O=_.ngModule;if(M=Fs(O),!M)return!1;T=O}const L=C.has(T);if(R){if(L)return!1;if(C.add(T),R.dependencies){const O="function"==typeof R.dependencies?R.dependencies():R.dependencies;for(const F of O)Rh(F,b,w,C)}}else{if(!M)return!1;{if(null!=M.imports&&!L){let F;C.add(T);try{Fi(M.imports,$=>{Rh($,b,w,C)&&(F||(F=[]),F.push($))})}finally{}void 0!==F&&$_(F,b)}if(!L){const F=ha(T)||(()=>new T);b.push({provide:T,useFactory:F,deps:et},{provide:z_,useValue:T,multi:!0},{provide:Ts,useValue:()=>Tn(T),multi:!0})}const O=M.providers;null==O||L||Fi(O,$=>{b.push($)})}}return T!==_&&void 0!==_.providers}const wA=I({provide:String,useValue:I});function Wa(_){return null!==_&&"object"==typeof _&&wA in _}function co(_){return"function"==typeof _}const Rf=new pn("Set Injector scope."),kh={},Lh={};let kf;function Ih(){return void 0===kf&&(kf=new G_),kf}class gl{}class J_ extends gl{constructor(b,w,C,T){super(),this.parent=w,this.source=C,this.scopes=T,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,If(b,R=>this.processProvider(R)),this.records.set(Ud,Ac(void 0,this)),T.has("environment")&&this.records.set(gl,Ac(void 0,this));const M=this.records.get(Rf);null!=M&&"string"==typeof M.value&&this.scopes.add(M.value),this.injectorDefTypes=new Set(this.get(z_.multi,et,pt.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();for(const b of this._onDestroyHooks)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(b){this._onDestroyHooks.push(b)}runInContext(b){this.assertNotDestroyed();const w=dl(this),C=Wt(void 0);try{return b()}finally{dl(w),Wt(C)}}get(b,w=Ya,C=pt.Default){this.assertNotDestroyed();const T=dl(this),M=Wt(void 0);try{if(!(C&pt.SkipSelf)){let L=this.records.get(b);if(void 0===L){const O=function Lf(_){return"function"==typeof _||"object"==typeof _&&_ instanceof pn}(b)&&aa(b);L=O&&this.injectableDefInScope(O)?Ac(Oh(b),kh):null,this.records.set(b,L)}if(null!=L)return this.hydrate(b,L)}return(C&pt.Self?Ih():this.parent).get(b,w=C&pt.Optional&&w===Ya?null:w)}catch(R){if("NullInjectorError"===R.name){if((R[hr]=R[hr]||[]).unshift(Y(b)),T)throw R;return function yh(_,b,w,C){const T=_[hr];throw b[bf]&&T.unshift(b[bf]),_.message=function Ch(_,b,w,C=null){_=_&&"\n"===_.charAt(0)&&"\u0275"==_.charAt(1)?_.slice(2):_;let T=Y(b);if(Array.isArray(b))T=b.map(Y).join(" -> ");else if("object"==typeof b){let M=[];for(let R in b)if(b.hasOwnProperty(R)){let L=b[R];M.push(R+":"+("string"==typeof L?JSON.stringify(L):Y(L)))}T=`{${M.join(", ")}}`}return`${w}${C?"("+C+")":""}[${T}]: ${_.replace(Ld,"\n ")}`}("\n"+_.message,T,w,C),_.ngTokenPath=T,_[hr]=null,_}(R,b,"R3InjectorError",this.source)}throw R}finally{Wt(M),dl(T)}}resolveInjectorInitializers(){const b=dl(this),w=Wt(void 0);try{const C=this.get(Ts.multi,et,pt.Self);for(const T of C)T()}finally{dl(b),Wt(w)}}toString(){const b=[],w=this.records;for(const C of w.keys())b.push(Y(C));return`R3Injector[${b.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new re(205,!1)}processProvider(b){let w=co(b=ae(b))?b:ae(b&&b.provide);const C=function Z_(_){return Wa(_)?Ac(void 0,_.useValue):Ac(Q_(_),kh)}(b);if(co(b)||!0!==b.multi)this.records.get(w);else{let T=this.records.get(w);T||(T=Ac(void 0,kh,!0),T.factory=()=>Pr(T.multi),this.records.set(w,T)),w=b,T.multi.push(b)}this.records.set(w,C)}hydrate(b,w){return w.value===kh&&(w.value=Lh,w.value=w.factory()),"object"==typeof w.value&&w.value&&function vA(_){return null!==_&&"object"==typeof _&&"function"==typeof _.ngOnDestroy}(w.value)&&this._ngOnDestroyHooks.add(w.value),w.value}injectableDefInScope(b){if(!b.providedIn)return!1;const w=ae(b.providedIn);return"string"==typeof w?"any"===w||this.scopes.has(w):this.injectorDefTypes.has(w)}}function Oh(_){const b=aa(_),w=null!==b?b.factory:ha(_);if(null!==w)return w;if(_ instanceof pn)throw new re(204,!1);if(_ instanceof Function)return function AA(_){const b=_.length;if(b>0)throw al(b,"?"),new re(204,!1);const w=function Ns(_){const b=_&&(_[Br]||_[ds]);if(b){const w=function hd(_){if(_.hasOwnProperty("name"))return _.name;const b=(""+_).match(/^function\s*([^\s(]+)/);return null===b?"":b[1]}(_);return console.warn(`DEPRECATED: DI is instantiating a token "${w}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${w}" class.`),b}return null}(_);return null!==w?()=>w.factory(_):()=>new _}(_);throw new re(204,!1)}function Q_(_,b,w){let C;if(co(_)){const T=ae(_);return ha(T)||Oh(T)}if(Wa(_))C=()=>ae(_.useValue);else if(function Pf(_){return!(!_||!_.useFactory)}(_))C=()=>_.useFactory(...Pr(_.deps||[]));else if(function yA(_){return!(!_||!_.useExisting)}(_))C=()=>Tn(ae(_.useExisting));else{const T=ae(_&&(_.useClass||_.provide));if(!function K_(_){return!!_.deps}(_))return ha(T)||Oh(T);C=()=>new T(...Pr(_.deps))}return C}function Ac(_,b,w=!1){return{factory:_,value:b,multi:w?[]:void 0}}function TA(_){return!!_.\u0275providers}function If(_,b){for(const w of _)Array.isArray(w)?If(w,b):TA(w)?If(w.\u0275providers,b):b(w)}class MA{}class vc{resolveComponentFactory(b){throw function Of(_){const b=Error(`No component factory found for ${Y(_)}. Did you add it to @NgModule.entryComponents?`);return b.ngComponent=_,b}(b)}}let Tc=(()=>{class _{}return _.NULL=new vc,_})();function X_(){return $a(un(),Ce())}function $a(_,b){return new Nd(er(_,b))}let Nd=(()=>{class _{constructor(w){this.nativeElement=w}}return _.__NG_ELEMENT_ID__=X_,_})();function Ja(_){return _ instanceof Nd?_.nativeElement:_}class uo{}let eb=(()=>{class _{}return _.__NG_ELEMENT_ID__=()=>function Fd(){const _=Ce(),w=fi(un().index,_);return(ni(w)?w:_)[11]}(),_})(),Vf=(()=>{class _{}return _.\u0275prov=Xt({token:_,providedIn:"root",factory:()=>null}),_})();class tb{constructor(b){this.full=b,this.major=b.split(".")[0],this.minor=b.split(".")[1],this.patch=b.split(".").slice(2).join(".")}}const Bh=new tb("14.1.2"),ho={};function Jr(_){return _.ngOriginalError}class Zr{constructor(){this._console=console}handleError(b){const w=this._findOriginalError(b);this._console.error("ERROR",b),w&&this._console.error("ORIGINAL ERROR",w)}_findOriginalError(b){let w=b&&Jr(b);for(;w&&Jr(w);)w=Jr(w);return w||null}}const ab=new Map;let nS=0;const ob="__ngContext__";function vi(_,b){ni(b)?(_[ob]=b[20],function rS(_){ab.set(_[20],_)}(b)):_[ob]=b}function Vh(_){const b=_[ob];return"number"==typeof b?function PA(_){return ab.get(_)||null}(b):b||null}function lb(_){const b=Vh(_);return b?ni(b)?b:b.lView:null}const hS=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(pe))();function BA(_){return _.ownerDocument.defaultView}function fo(_){return _ instanceof Function?_():_}var Ms=(()=>((Ms=Ms||{})[Ms.Important=1]="Important",Ms[Ms.DashCase=2]="DashCase",Ms))();function Nf(_,b){return undefined(_,b)}function jh(_){const b=_[3];return Di(b)?b[3]:b}function cb(_){return NA(_[13])}function db(_){return NA(_[4])}function NA(_){for(;null!==_&&!Di(_);)_=_[4];return _}function Wd(_,b,w,C,T){if(null!=C){let M,R=!1;Di(C)?M=C:ni(C)&&(R=!0,C=C[0]);const L=qn(C);0===_&&null!==w?null==T?WA(b,w,L):Mc(b,w,L,T||null,!0):1===_&&null!==w?Mc(b,w,L,T||null,!0):2===_?function ev(_,b,w){const C=Ff(_,b);C&&function DS(_,b,w,C){_.removeChild(b,w,C)}(_,C,b,w)}(b,L,R):3===_&&b.destroyNode(L),null!=M&&function RS(_,b,w,C,T){const M=w[7];M!==qn(w)&&Wd(b,_,C,M,T);for(let L=10;L0&&(_[w-1][4]=C[4]);const M=rl(_,10+b);!function CS(_,b){Uh(_,b,b[11],2,null,null),b[0]=null,b[6]=null}(C[1],C);const R=M[19];null!==R&&R.detachView(M[1]),C[3]=null,C[4]=null,C[2]&=-65}return C}function qA(_,b){if(!(128&b[2])){const w=b[11];w.destroyNode&&Uh(_,b,w,3,null,null),function TS(_){let b=_[13];if(!b)return fb(_[1],_);for(;b;){let w=null;if(ni(b))w=b[13];else{const C=b[10];C&&(w=C)}if(!w){for(;b&&!b[4]&&b!==_;)ni(b)&&fb(b[1],b),b=b[3];null===b&&(b=_),ni(b)&&fb(b[1],b),w=b&&b[4]}b=w}}(b)}}function fb(_,b){if(!(128&b[2])){b[2]&=-65,b[2]|=128,function ES(_,b){let w;if(null!=_&&null!=(w=_.destroyHooks))for(let C=0;C=0?C[T=F]():C[T=-F].unsubscribe(),M+=2}else{const R=C[T=w[M+1]];w[M].call(R)}if(null!==C){for(let M=T+1;MM?"":T[ne+1].toLowerCase();const me=8&C?de:null;if(me&&-1!==ri(me,F,0)||2&C&&F!==de){if(Oe(C))return!1;R=!0}}}}else{if(!R&&!Oe(C)&&!Oe(O))return!1;if(R&&Oe(O))continue;R=!1,C=O|1&C}}return Oe(C)||R}function Oe(_){return 0==(1&_)}function _n(_,b,w,C){if(null===b)return-1;let T=0;if(C||!w){let M=!1;for(;T-1)for(w++;w<_.length;){const C=_[w];if("number"==typeof C)return-1;if(C===b)return w;w++}return-1}(b,_)}function Gf(_,b,w=!1){for(let C=0;C0?'="'+L+'"':"")+"]"}else 8&C?T+="."+R:4&C&&(T+=" "+R);else""!==T&&!Oe(R)&&(b+=Wf(M,T),T=""),C=R,M=M||!Oe(C);w++}return""!==T&&(b+=Wf(M,T)),b}const Lt={};function $f(_){_l(lt(),Ce(),Ci()+_,!1)}function _l(_,b,w,C){if(!C)if(3==(3&b[2])){const M=_.preOrderCheckHooks;null!==M&&dc(b,M,w)}else{const M=_.preOrderHooks;null!==M&&zo(b,M,0,w)}gn(w)}function Jd(_,b=null,w=null,C){const T=cv(_,b,w,C);return T.resolveInjectorInitializers(),T}function cv(_,b=null,w=null,C,T=new Set){const M=[w||et,W_(_)];return C=C||("object"==typeof _?void 0:Y(_)),new J_(M,b||Ih(),C||null,T)}let go=(()=>{class _{static create(w,C){if(Array.isArray(w))return Jd({name:""},C,w,"");{const T=w.name??"";return Jd({name:T},w.parent,w.providers,T)}}}return _.THROW_IF_NOT_FOUND=Ya,_.NULL=new G_,_.\u0275prov=Xt({token:_,providedIn:"any",factory:()=>Tn(Ud)}),_.__NG_ELEMENT_ID__=-1,_})();function Ss(_,b=pt.Default){const w=Ce();return null===w?Tn(_,b):ma(un(),w,ae(_),b)}function Pb(){throw new Error("invalid")}function Xd(_,b){return _<<17|b<<2}function zi(_){return _>>17&32767}function Kf(_){return 2|_}function Es(_){return(131068&_)>>2}function Xf(_,b){return-131069&_|b<<2}function em(_){return 1|_}function Bb(_,b){const w=_.contentQueries;if(null!==w)for(let C=0;C22&&_l(_,b,22,!1),w(C,T)}finally{gn(M)}}function Xh(_,b,w){if(Ki(b)){const T=b.directiveEnd;for(let M=b.directiveStart;M0;){const w=_[--b];if("number"==typeof w&&w<0)return w}return 0})(L)!=O&&L.push(O),L.push(C,T,R)}}function Yb(_,b){null!==_.hostBindings&&_.hostBindings(1,b)}function Iv(_,b){b.flags|=2,(_.components||(_.components=[])).push(b.index)}function Bv(_,b,w){if(w){if(b.exportAs)for(let C=0;C0&&fm(w)}}function fm(_){for(let C=cb(_);null!==C;C=db(C))for(let T=10;T0&&fm(M)}const w=_[1].components;if(null!==w)for(let C=0;C0&&fm(T)}}function Gb(_,b){const w=fi(b,_),C=w[1];(function au(_,b){for(let w=b.length;w<_.blueprint.length;w++)b.push(_.blueprint[w])})(C,w),Cl(C,w,w[8])}function np(_,b){return _[13]?_[14][4]=b:_[13]=b,_[14]=b,b}function ip(_){for(;_;){_[2]|=32;const b=jh(_);if(da(_)&&!b)return _;_=b}return null}function $b(_){!function mm(_){for(let b=0;b<_.components.length;b++){const w=_.components[b],C=lb(w);if(null!==C){const T=C[1];jb(T,C,T.template,w)}}}(_[8])}function rp(_,b,w){Sr(0),b(_,w)}const JS=(()=>Promise.resolve(null))();function Zb(_){return _[7]||(_[7]=[])}function Qb(_){return _.cleanup||(_.cleanup=[])}function su(_,b,w){return(null===_||Hi(_))&&(w=function An(_){for(;Array.isArray(_);){if("object"==typeof _[1])return _;_=_[0]}return null}(w[b.index])),w[11]}function Kb(_,b){const w=_[9],C=w?w.get(Zr,null):null;C&&C.handleError(b)}function _m(_,b,w,C,T){for(let M=0;M-1&&(pb(b,C),rl(w,C))}this._attachedToViewContainer=!1}qA(this._lView[1],this._lView)}onDestroy(b){om(this._lView[1],this._lView,null,b)}markForCheck(){ip(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Wb(_,b,w){const C=b[10];C.begin&&C.begin();try{ru(_,b,_.template,w)}catch(T){throw Kb(b,T),T}finally{C.end&&C.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new re(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function vS(_,b){Uh(_,b,b[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(b){if(this._attachedToViewContainer)throw new re(902,!1);this._appRef=b}}class wm extends lu{constructor(b){super(b),this._view=b}detectChanges(){$b(this._view)}checkNoChanges(){}get context(){return null}}class Dc extends Tc{constructor(b){super(),this.ngModule=b}resolveComponentFactory(b){const w=$t(b);return new du(w,this.ngModule)}}function Xb(_){const b=[];for(let w in _)_.hasOwnProperty(w)&&b.push({propName:_[w],templateName:w});return b}class cu{constructor(b,w){this.injector=b,this.parentInjector=w}get(b,w,C){const T=this.injector.get(b,ho,C);return T!==ho||w===ho?T:this.parentInjector.get(b,w,C)}}class du extends MA{constructor(b,w){super(),this.componentDef=b,this.ngModule=w,this.componentType=b.type,this.selector=function qh(_){return _.map(av).join(",")}(b.selectors),this.ngContentSelectors=b.ngContentSelectors?b.ngContentSelectors:[],this.isBoundToModule=!!w}get inputs(){return Xb(this.componentDef.inputs)}get outputs(){return Xb(this.componentDef.outputs)}create(b,w,C,T){let M=(T=T||this.ngModule)instanceof gl?T:T?.injector;M&&null!==this.componentDef.getStandaloneInjector&&(M=this.componentDef.getStandaloneInjector(M)||M);const R=M?new cu(b,M):b,L=R.get(uo,null);if(null===L)throw new re(407,!1);const O=R.get(Vf,null),F=L.createRenderer(null,this.componentDef),$=this.componentDef.selectors[0][0]||"div",ne=C?function Kr(_,b,w){return _.selectRootElement(b,w===ie.ShadowDom)}(F,C,this.componentDef.encapsulation):hb(L.createRenderer(null,this.componentDef),$,function ew(_){const b=_.toLowerCase();return"svg"===b?"svg":"math"===b?"math":null}($)),de=this.componentDef.onPush?288:272,me=function Yv(_,b){return{components:[],scheduler:_||hS,clean:JS,playerHandler:b||null,flags:0}}(),De=sm(0,null,null,1,0,null,null,null,null,null),Ue=Ca(null,De,me,de,null,null,L,F,O,R,null);let $e,Xe;wd(Ue);try{const At=function ym(_,b,w,C,T,M){const R=w[1];w[22]=_;const O=yl(R,22,2,"#host",null),F=O.mergedAttrs=b.hostAttrs;null!==F&&(bm(O,F,!0),null!==_&&(Jo(T,_,F),null!==O.classes&&zf(T,_,O.classes),null!==O.styles&&nv(T,_,O.styles)));const $=C.createRenderer(_,b),ne=Ca(w,am(b),null,b.onPush?32:16,w[22],O,C,$,M||null,null,null);return R.firstCreatePass&&(xd(ja(O,w),R,b.type),Iv(R,O),qb(O,w.length,1)),np(w,ne),w[22]=ne}(ne,this.componentDef,Ue,L,F);if(ne)if(C)Jo(F,ne,["ng-version",Bh.full]);else{const{attrs:Le,classes:mt}=function $d(_){const b=[],w=[];let C=1,T=2;for(;C<_.length;){let M=_[C];if("string"==typeof M)2===T?""!==M&&b.push(M,_[++C]):8===T&&w.push(M);else{if(!Oe(T))break;T=M}C++}return{attrs:b,classes:w}}(this.componentDef.selectors[0]);Le&&Jo(F,ne,Le),mt&&mt.length>0&&zf(F,ne,mt.join(" "))}if(Xe=tc(De,22),void 0!==w){const Le=Xe.projection=[];for(let mt=0;mt=0;C--){const T=_[C];T.hostVars=b+=T.hostVars,T.hostAttrs=eo(T.hostAttrs,w=eo(w,T.hostAttrs))}}(C)}function Am(_){return _===Dt?{}:_===et?[]:_}function Tl(_,b){const w=_.viewQuery;_.viewQuery=w?(C,T)=>{b(C,T),w(C,T)}:b}function xl(_,b){const w=_.contentQueries;_.contentQueries=w?(C,T,M)=>{b(C,T,M),w(C,T,M)}:b}function Wv(_,b){const w=_.hostBindings;_.hostBindings=w?(C,T)=>{b(C,T),w(C,T)}:b}let ap=null;function Ml(){if(!ap){const _=pe.Symbol;if(_&&_.iterator)ap=_.iterator;else{const b=Object.getOwnPropertyNames(Map.prototype);for(let w=0;wL(qn(qt[C.index])):C.index;let mt=null;if(!L&&O&&(mt=function fw(_,b,w,C){const T=_.cleanup;if(null!=T)for(let M=0;MO?L[O]:null}"string"==typeof R&&(M+=2)}return null}(_,b,T,C.index)),null!==mt)(mt.__ngLastListenerFn__||mt).__ngNextListenerFn__=M,mt.__ngLastListenerFn__=M,me=!1;else{M=Dm(C,b,ne,M,!1);const qt=w.listen(Xe,T,M);de.push(M,qt),$&&$.push(T,Le,At,At+1)}}else M=Dm(C,b,ne,M,!1);const De=C.outputs;let Ue;if(me&&null!==De&&(Ue=De[T])){const $e=Ue.length;if($e)for(let Xe=0;Xe<$e;Xe+=2){const Fn=b[Ue[Xe]][Ue[Xe+1]].subscribe(M),rd=de.length;de.push(M,Fn),$&&$.push(T,C.index,rd,-(rd+1))}}}function rT(_,b,w,C){try{return!1!==w(C)}catch(T){return Kb(_,T),!1}}function Dm(_,b,w,C,T){return function M(R){if(R===Function)return C;ip(2&_.flags?fi(_.index,b):b);let O=rT(b,0,C,R),F=M.__ngNextListenerFn__;for(;F;)O=rT(b,0,F,R)&&O,F=F.__ngNextListenerFn__;return T&&!1===O&&(R.preventDefault(),R.returnValue=!1),O}}function mw(_=1){return function Xu(_){return(be.lFrame.contextLView=function lc(_,b){for(;_>0;)b=b[15],_--;return b}(_,be.lFrame.contextLView))[8]}(_)}function aT(_,b){let w=null;const C=function Yh(_){const b=_.attrs;if(null!=b){const w=b.indexOf(5);if(0==(1&w))return b[w+1]}return null}(_);for(let T=0;T=0}const He={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Pt(_){return _.substring(He.key,He.keyEnd)}function oT(_,b){const w=He.textEnd;return w===b?-1:(b=He.keyEnd=function Cw(_,b,w){for(;b32;)b++;return b}(_,He.key=b,w),fu(_,b,w))}function fu(_,b,w){for(;b=0;w=oT(b,w))Yi(_,Pt(b),!0)}function Sa(_,b,w,C){const T=Ce(),M=lt(),R=Mr(2);M.firstUpdatePass&&xw(M,_,R,C),b!==Lt&&ir(T,R,b)&&fT(M,M.data[Ci()],T,T[11],_,T[R+1]=function gT(_,b){return null==_||("string"==typeof b?_+=b:"object"==typeof _&&(_=Y(kr(_)))),_}(b,w),C,R)}function Ea(_,b,w,C){const T=lt(),M=Mr(2);T.firstUpdatePass&&xw(T,null,M,C);const R=Ce();if(w!==Lt&&ir(R,M,w)){const L=T.data[Ci()];if(Um(L,C)&&!Tw(T,M)){let O=C?L.classesWithoutHost:L.stylesWithoutHost;null!==O&&(w=G(O,w||"")),dw(T,L,R,w,C)}else!function gu(_,b,w,C,T,M,R,L){T===Lt&&(T=et);let O=0,F=0,$=0=_.expandoStartIndex}function xw(_,b,w,C){const T=_.data;if(null===T[w+1]){const M=T[Ci()],R=Tw(_,w);Um(M,C)&&null===b&&!R&&(b=!1),b=function dT(_,b,w,C){const T=rc(_);let M=C?b.residualClasses:b.residualStyles;if(null===T)0===(C?b.classBindings:b.styleBindings)&&(w=Bc(w=Vm(null,_,b,w,C),b.attrs,C),M=null);else{const R=b.directiveStylingLast;if(-1===R||_[R]!==T)if(w=Vm(T,_,b,w,C),null===M){let O=function uT(_,b,w){const C=w?b.classBindings:b.styleBindings;if(0!==Es(C))return _[zi(C)]}(_,b,C);void 0!==O&&Array.isArray(O)&&(O=Vm(null,_,b,O[1],C),O=Bc(O,b.attrs,C),function hT(_,b,w,C){_[zi(w?b.classBindings:b.styleBindings)]=C}(_,b,C,O))}else M=function pT(_,b,w){let C;const T=b.directiveEnd;for(let M=1+b.directiveStylingLast;M0)&&(F=!0)}else $=w;if(T)if(0!==O){const de=zi(_[L+1]);_[C+1]=Xd(de,L),0!==de&&(_[de+1]=Xf(_[de+1],C)),_[L+1]=function yv(_,b){return 131071&_|b<<17}(_[L+1],C)}else _[C+1]=Xd(L,0),0!==L&&(_[L+1]=Xf(_[L+1],C)),L=C;else _[C+1]=Xd(O,0),0===L?L=C:_[O+1]=Xf(_[O+1],C),O=C;F&&(_[C+1]=Kf(_[C+1])),pu(_,$,C,!0),pu(_,$,C,!1),function Tt(_,b,w,C,T){const M=T?_.residualClasses:_.residualStyles;null!=M&&"string"==typeof b&&Fa(M,b)>=0&&(w[C+1]=em(w[C+1]))}(b,$,_,C,M),R=Xd(L,O),M?b.classBindings=R:b.styleBindings=R}(T,M,b,w,R,C)}}function Vm(_,b,w,C,T){let M=null;const R=w.directiveEnd;let L=w.directiveStylingLast;for(-1===L?L=w.directiveStart:L++;L0;){const O=_[T],F=Array.isArray(O),$=F?O[1]:O,ne=null===$;let de=w[T+1];de===Lt&&(de=ne?et:void 0);let me=ne?ol(de,C):$===C?de:void 0;if(F&&!jm(me)&&(me=ol(O,C)),jm(me)&&(L=me,R))return L;const De=_[T+1];T=R?zi(De):Es(De)}if(null!==b){let O=M?b.residualClasses:b.residualStyles;null!=O&&(L=ol(O,C))}return L}function jm(_){return void 0!==_}function Um(_,b){return 0!=(_.flags&(b?16:32))}function Sw(_,b=""){const w=Ce(),C=lt(),T=_+22,M=C.firstCreatePass?yl(C,T,1,b,null):C.data[T],R=w[T]=function ub(_,b){return _.createText(b)}(w[11],b);Yf(C,w,R,M),Pn(M,!1)}function ta(_){return fp("",_,""),ta}function fp(_,b,w){const C=Ce(),T=xa(C,_,b,w);return T!==Lt&&Aa(C,Ci(),T),fp}function Nm(_,b,w,C,T){const M=Ce(),R=function Ir(_,b,w,C,T,M){const L=Pc(_,nn(),w,T);return Mr(2),L?b+ye(w)+C+ye(T)+M:Lt}(M,_,b,w,C,T);return R!==Lt&&Aa(M,Ci(),R),Nm}function _u(_,b,w,C,T,M,R,L,O,F,$){const ne=Ce(),de=uu(ne,_,b,w,C,T,M,R,L,O,F,$);return de!==Lt&&Aa(ne,Ci(),de),_u}function Hw(_,b,w){Ea(Yi,Xa,xa(Ce(),_,b,w),!0)}function gp(_,b,w){const C=Ce();return ir(C,Ks(),b)&&Xr(lt(),Qt(),C,_,b,C[11],w,!0),gp}function Vc(_,b,w){const C=Ce();if(ir(C,Ks(),b)){const M=lt(),R=Qt();Xr(M,R,C,_,b,su(rc(M.data),R,C),w,!0)}return Vc}const vo=void 0;var Ow=["en",[["a","p"],["AM","PM"],vo],[["AM","PM"],vo,vo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],vo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],vo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",vo,"{1} 'at' {0}",vo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Iw(_){const w=Math.floor(Math.abs(_)),C=_.toString().replace(/^[^.]*\.?/,"").length;return 1===w&&0===C?1:5}];let Rl={};function _p(_){const b=function Vw(_){return _.toLowerCase().replace(/_/g,"-")}(_);let w=Km(b);if(w)return w;const C=b.split("-")[0];if(w=Km(C),w)return w;if("en"===C)return Ow;throw new re(701,!1)}function bp(_){return _p(_)[bt.PluralCase]}function Km(_){return _ in Rl||(Rl[_]=pe.ng&&pe.ng.common&&pe.ng.common.locales&&pe.ng.common.locales[_]),Rl[_]}var bt=(()=>((bt=bt||{})[bt.LocaleId=0]="LocaleId",bt[bt.DayPeriodsFormat=1]="DayPeriodsFormat",bt[bt.DayPeriodsStandalone=2]="DayPeriodsStandalone",bt[bt.DaysFormat=3]="DaysFormat",bt[bt.DaysStandalone=4]="DaysStandalone",bt[bt.MonthsFormat=5]="MonthsFormat",bt[bt.MonthsStandalone=6]="MonthsStandalone",bt[bt.Eras=7]="Eras",bt[bt.FirstDayOfWeek=8]="FirstDayOfWeek",bt[bt.WeekendRange=9]="WeekendRange",bt[bt.DateFormat=10]="DateFormat",bt[bt.TimeFormat=11]="TimeFormat",bt[bt.DateTimeFormat=12]="DateTimeFormat",bt[bt.NumberSymbols=13]="NumberSymbols",bt[bt.NumberFormats=14]="NumberFormats",bt[bt.CurrencyCode=15]="CurrencyCode",bt[bt.CurrencySymbol=16]="CurrencySymbol",bt[bt.CurrencyName=17]="CurrencyName",bt[bt.Currencies=18]="Currencies",bt[bt.Directionality=19]="Directionality",bt[bt.PluralCase=20]="PluralCase",bt[bt.ExtraData=21]="ExtraData",bt))();const Rs="en-US";let eg=Rs;function Tp(_,b,w,C,T){if(_=ae(_),Array.isArray(_))for(let M=0;M<_.length;M++)Tp(_[M],b,w,C,T);else{const M=lt(),R=Ce();let L=co(_)?_:ae(_.provide),O=Q_(_);const F=un(),$=1048575&F.providerIndexes,ne=F.directiveStart,de=F.providerIndexes>>20;if(co(_)||!_.multi){const me=new ki(O,T,Ss),De=xp(L,b,T?$:$+de,ne);-1===De?(xd(ja(F,R),M,L),bg(M,_,b.length),b.push(L),F.directiveStart++,F.directiveEnd++,T&&(F.providerIndexes+=1048576),w.push(me),R.push(me)):(w[De]=me,R[De]=me)}else{const me=xp(L,b,$+de,ne),De=xp(L,b,$,$+de),Ue=me>=0&&w[me],$e=De>=0&&w[De];if(T&&!$e||!T&&!Ue){xd(ja(F,R),M,L);const Xe=function Zw(_,b,w,C,T){const M=new ki(_,w,Ss);return M.multi=[],M.index=b,M.componentProviders=0,$T(M,T,C&&!w),M}(T?Jw:JT,w.length,T,C,O);!T&&$e&&(w[De].providerFactory=Xe),bg(M,_,b.length,0),b.push(L),F.directiveStart++,F.directiveEnd++,T&&(F.providerIndexes+=1048576),w.push(Xe),R.push(Xe)}else bg(M,_,me>-1?me:De,$T(w[T?De:me],O,!T&&C));!T&&C&&$e&&w[De].componentProviders++}}}function bg(_,b,w,C){const T=co(b),M=function CA(_){return!!_.useClass}(b);if(T||M){const O=(M?ae(b.useClass):b).prototype.ngOnDestroy;if(O){const F=_.destroyHooks||(_.destroyHooks=[]);if(!T&&b.multi){const $=F.indexOf(w);-1===$?F.push(w,[C,O]):F[$+1].push(C,O)}else F.push(w,O)}}}function $T(_,b,w){return w&&_.componentProviders++,_.multi.push(b)-1}function xp(_,b,w,C){for(let T=w;T{w.providersResolver=(C,T)=>function WT(_,b,w){const C=lt();if(C.firstCreatePass){const T=Hi(_);Tp(w,C.data,C.blueprint,T,!0),Tp(b,C.data,C.blueprint,T,!1)}}(C,T?T(_):_,b)}}class Nc{}class _r{}function ZT(_,b){return new Qw(_,b??null)}class Qw extends Nc{constructor(b,w){super(),this._parent=w,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Dc(this);const C=qe(b);this._bootstrapComponents=fo(C.bootstrap),this._r3Injector=cv(b,w,[{provide:Nc,useValue:this},{provide:Tc,useValue:this.componentFactoryResolver}],Y(b),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(b)}get injector(){return this._r3Injector}destroy(){const b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(w=>w()),this.destroyCbs=null}onDestroy(b){this.destroyCbs.push(b)}}class Du extends _r{constructor(b){super(),this.moduleType=b}create(b){return new Qw(this.moduleType,b)}}class QT extends Nc{constructor(b,w,C){super(),this.componentFactoryResolver=new Dc(this),this.instance=null;const T=new J_([...b,{provide:Nc,useValue:this},{provide:Tc,useValue:this.componentFactoryResolver}],w||Ih(),C,new Set(["environment"]));this.injector=T,T.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(b){this.injector.onDestroy(b)}}function Hu(_,b,w=null){return new QT(_,b,w).injector}function Cg(_,b,w){const C=jn()+_,T=Ce();return T[C]===Lt?nr(T,C,w?b.call(w):b()):function sp(_,b){return _[b]}(T,C)}function oy(_,b,w,C){return uy(Ce(),jn(),_,b,w,C)}function ly(_,b,w,C,T){return Ag(Ce(),jn(),_,b,w,C,T)}function qc(_,b){const w=_[b];return w===Lt?void 0:w}function uy(_,b,w,C,T,M){const R=b+w;return ir(_,R,T)?nr(_,R+1,M?C.call(M,T):C(T)):qc(_,R+1)}function Ag(_,b,w,C,T,M,R){const L=b+w;return Pc(_,L,T,M)?nr(_,L+2,R?C.call(R,T,M):C(T,M)):qc(_,L+2)}function l0(_,b,w,C,T,M,R,L){const O=b+w;return function vm(_,b,w,C,T){const M=Pc(_,b,w,C);return ir(_,b+2,T)||M}(_,O,T,M,R)?nr(_,O+3,L?C.call(L,T,M,R):C(T,M,R)):qc(_,O+3)}function vg(_,b){const w=lt();let C;const T=_+22;w.firstCreatePass?(C=function Tg(_,b){if(b)for(let w=b.length-1;w>=0;w--){const C=b[w];if(_===C.name)return C}}(b,w.pipeRegistry),w.data[T]=C,C.onDestroy&&(w.destroyHooks||(w.destroyHooks=[])).push(T,C.onDestroy)):C=w.data[T];const M=C.factory||(C.factory=ha(C.type)),R=Wt(Ss);try{const L=_s(!1),O=M();return _s(L),function nT(_,b,w,C){w>=_.data.length&&(_.data[w]=null,_.blueprint[w]=null),b[w]=C}(w,Ce(),T,O),O}finally{Wt(R)}}function xg(_,b,w){const C=_+22,T=Ce(),M=Qs(T,C);return Dp(T,C)?uy(T,jn(),b,M.transform,w,M):M.transform(w)}function u0(_,b,w,C){const T=_+22,M=Ce(),R=Qs(M,T);return Dp(M,T)?Ag(M,jn(),b,R.transform,w,C,R):R.transform(w,C)}function h0(_,b,w,C,T){const M=_+22,R=Ce(),L=Qs(R,M);return Dp(R,M)?l0(R,jn(),b,L.transform,w,C,T,L):L.transform(w,C,T)}function Dp(_,b){return _[1].data[b].pure}function py(_){return b=>{setTimeout(_,void 0,b)}}const is=class f0 extends x.x{constructor(b=!1){super(),this.__isAsync=b}emit(b){super.next(b)}subscribe(b,w,C){let T=b,M=w||(()=>null),R=C;if(b&&"object"==typeof b){const O=b;T=O.next?.bind(O),M=O.error?.bind(O),R=O.complete?.bind(O)}this.__isAsync&&(M=py(M),T&&(T=py(T)),R&&(R=py(R)));const L=super.subscribe({next:T,error:M,complete:R});return b instanceof n.w0&&b.add(L),L}};function m0(){return this._results[Ml()]()}class Hp{constructor(b=!1){this._emitDistinctChangesOnly=b,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const w=Ml(),C=Hp.prototype;C[w]||(C[w]=m0)}get changes(){return this._changes||(this._changes=new is)}get(b){return this._results[b]}map(b){return this._results.map(b)}filter(b){return this._results.filter(b)}find(b){return this._results.find(b)}reduce(b,w){return this._results.reduce(b,w)}forEach(b){this._results.forEach(b)}some(b){return this._results.some(b)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(b,w){const C=this;C.dirty=!1;const T=zn(b);(this._changesDetected=!function Pd(_,b,w){if(_.length!==b.length)return!1;for(let C=0;C<_.length;C++){let T=_[C],M=b[C];if(w&&(T=w(T),M=w(M)),M!==T)return!1}return!0}(C._results,T,w))&&(C._results=T,C.length=T.length,C.last=T[this.length-1],C.first=T[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let Ru=(()=>{class _{}return _.__NG_ELEMENT_ID__=b0,_})();const g0=Ru,_0=class extends g0{constructor(b,w,C){super(),this._declarationLView=b,this._declarationTContainer=w,this.elementRef=C}createEmbeddedView(b,w){const C=this._declarationTContainer.tViews,T=Ca(this._declarationLView,C,b,16,null,C.declTNode,null,null,null,null,w||null);T[17]=this._declarationLView[this._declarationTContainer.index];const R=this._declarationLView[19];return null!==R&&(T[19]=R.createEmbeddedView(C)),Cl(C,T,b),new lu(T)}};function b0(){return Pp(un(),Ce())}function Pp(_,b){return 4&_.type?new _0(b,_,$a(_,b)):null}let Rp=(()=>{class _{}return _.__NG_ELEMENT_ID__=fy,_})();function fy(){return Gc(un(),Ce())}const uE=Rp,w0=class extends uE{constructor(b,w,C){super(),this._lContainer=b,this._hostTNode=w,this._hostLView=C}get element(){return $a(this._hostTNode,this._hostLView)}get injector(){return new ro(this._hostTNode,this._hostLView)}get parentInjector(){const b=no(this._hostTNode,this._hostLView);if(Cd(b)){const w=to(b,this._hostLView),C=gs(b);return new ro(w[1].data[C+8],w)}return new ro(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(b){const w=y0(this._lContainer);return null!==w&&w[b]||null}get length(){return this._lContainer.length-10}createEmbeddedView(b,w,C){let T,M;"number"==typeof C?T=C:null!=C&&(T=C.index,M=C.injector);const R=b.createEmbeddedView(w||{},M);return this.insert(R,T),R}createComponent(b,w,C,T,M){const R=b&&!function so(_){return"function"==typeof _}(b);let L;if(R)L=w;else{const ne=w||{};L=ne.index,C=ne.injector,T=ne.projectableNodes,M=ne.environmentInjector||ne.ngModuleRef}const O=R?b:new du($t(b)),F=C||this.parentInjector;if(!M&&null==O.ngModule){const de=(R?F:this.parentInjector).get(gl,null);de&&(M=de)}const $=O.create(F,T,void 0,M);return this.insert($.hostView,L),$}insert(b,w){const C=b._lView,T=C[1];if(function N(_){return Di(_[3])}(C)){const $=this.indexOf(b);if(-1!==$)this.detach($);else{const ne=C[3],de=new w0(ne,ne[6],ne[3]);de.detach(de.indexOf(b))}}const M=this._adjustIndex(w),R=this._lContainer;!function xS(_,b,w,C){const T=10+C,M=w.length;C>0&&(w[T-1][4]=b),C0)C.push(R[L/2]);else{const F=M[L+1],$=b[-O];for(let ne=10;ne<$.length;ne++){const de=$[ne];de[17]===de[3]&&Dg(de[1],de,F,C)}if(null!==$[9]){const ne=$[9];for(let de=0;de{class _{constructor(w){this.appInits=w,this.resolve=Np,this.reject=Np,this.initialized=!1,this.done=!1,this.donePromise=new Promise((C,T)=>{this.resolve=C,this.reject=T})}runInitializers(){if(this.initialized)return;const w=[],C=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let T=0;T{M.subscribe({complete:L,error:O})});w.push(R)}}Promise.all(w).then(()=>{C()}).catch(T=>{this.reject(T)}),0===w.length&&C(),this.initialized=!0}}return _.\u0275fac=function(w){return new(w||_)(Tn(Fg,8))},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const xo=new pn("AppId",{providedIn:"root",factory:function Sy(){return`${ed()}${ed()}${ed()}`}});function ed(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Yg=new pn("Platform Initializer"),z0=new pn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ey=new pn("appBootstrapListener"),G0=new pn("AnimationModuleType");let W0=(()=>{class _{log(w){console.log(w)}warn(w){console.warn(w)}}return _.\u0275fac=function(w){return new(w||_)},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();const Fp=new pn("LocaleId",{providedIn:"root",factory:()=>wh(Fp,pt.Optional|pt.SkipSelf)||function Dy(){return typeof $localize<"u"&&$localize.locale||Rs}()}),$0=new pn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Z0{constructor(b,w){this.ngModuleFactory=b,this.componentFactories=w}}let Q0=(()=>{class _{compileModuleSync(w){return new Du(w)}compileModuleAsync(w){return Promise.resolve(this.compileModuleSync(w))}compileModuleAndAllComponentsSync(w){const C=this.compileModuleSync(w),M=fo(qe(w).declarations).reduce((R,L)=>{const O=$t(L);return O&&R.push(new du(O)),R},[]);return new Z0(C,M)}compileModuleAndAllComponentsAsync(w){return Promise.resolve(this.compileModuleAndAllComponentsSync(w))}clearCache(){}clearCacheFor(w){}getModuleId(w){}}return _.\u0275fac=function(w){return new(w||_)},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const K0=(()=>Promise.resolve(0))();function zg(_){typeof Zone>"u"?K0.then(()=>{_&&_.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",_)}class br{constructor({enableLongStackTrace:b=!1,shouldCoalesceEventChangeDetection:w=!1,shouldCoalesceRunChangeDetection:C=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new is(!1),this.onMicrotaskEmpty=new is(!1),this.onStable=new is(!1),this.onError=new is(!1),typeof Zone>"u")throw new re(908,!1);Zone.assertZonePatched();const T=this;if(T._nesting=0,T._outer=T._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const M=Zone.AsyncStackTaggingZoneSpec;T._inner=T._inner.fork(new M("Angular"))}Zone.TaskTrackingZoneSpec&&(T._inner=T._inner.fork(new Zone.TaskTrackingZoneSpec)),b&&Zone.longStackTraceZoneSpec&&(T._inner=T._inner.fork(Zone.longStackTraceZoneSpec)),T.shouldCoalesceEventChangeDetection=!C&&w,T.shouldCoalesceRunChangeDetection=C,T.lastRequestAnimationFrameId=-1,T.nativeRequestAnimationFrame=function X0(){let _=pe.requestAnimationFrame,b=pe.cancelAnimationFrame;if(typeof Zone<"u"&&_&&b){const w=_[Zone.__symbol__("OriginalDelegate")];w&&(_=w);const C=b[Zone.__symbol__("OriginalDelegate")];C&&(b=C)}return{nativeRequestAnimationFrame:_,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function td(_){const b=()=>{!function ex(_){_.isCheckStableRunning||-1!==_.lastRequestAnimationFrameId||(_.lastRequestAnimationFrameId=_.nativeRequestAnimationFrame.call(pe,()=>{_.fakeTopEventTask||(_.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{_.lastRequestAnimationFrameId=-1,$g(_),_.isCheckStableRunning=!0,Wg(_),_.isCheckStableRunning=!1},void 0,()=>{},()=>{})),_.fakeTopEventTask.invoke()}),$g(_))}(_)};_._inner=_._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(w,C,T,M,R,L)=>{try{return nd(_),w.invokeTask(T,M,R,L)}finally{(_.shouldCoalesceEventChangeDetection&&"eventTask"===M.type||_.shouldCoalesceRunChangeDetection)&&b(),Py(_)}},onInvoke:(w,C,T,M,R,L,O)=>{try{return nd(_),w.invoke(T,M,R,L,O)}finally{_.shouldCoalesceRunChangeDetection&&b(),Py(_)}},onHasTask:(w,C,T,M)=>{w.hasTask(T,M),C===T&&("microTask"==M.change?(_._hasPendingMicrotasks=M.microTask,$g(_),Wg(_)):"macroTask"==M.change&&(_.hasPendingMacrotasks=M.macroTask))},onHandleError:(w,C,T,M)=>(w.handleError(T,M),_.runOutsideAngular(()=>_.onError.emit(M)),!1)})}(T)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!br.isInAngularZone())throw new re(909,!1)}static assertNotInAngularZone(){if(br.isInAngularZone())throw new re(909,!1)}run(b,w,C){return this._inner.run(b,w,C)}runTask(b,w,C,T){const M=this._inner,R=M.scheduleEventTask("NgZoneEvent: "+T,b,Gg,Np,Np);try{return M.runTask(R,w,C)}finally{M.cancelTask(R)}}runGuarded(b,w,C){return this._inner.runGuarded(b,w,C)}runOutsideAngular(b){return this._outer.run(b)}}const Gg={};function Wg(_){if(0==_._nesting&&!_.hasPendingMicrotasks&&!_.isStable)try{_._nesting++,_.onMicrotaskEmpty.emit(null)}finally{if(_._nesting--,!_.hasPendingMicrotasks)try{_.runOutsideAngular(()=>_.onStable.emit(null))}finally{_.isStable=!0}}}function $g(_){_.hasPendingMicrotasks=!!(_._hasPendingMicrotasks||(_.shouldCoalesceEventChangeDetection||_.shouldCoalesceRunChangeDetection)&&-1!==_.lastRequestAnimationFrameId)}function nd(_){_._nesting++,_.isStable&&(_.isStable=!1,_.onUnstable.emit(null))}function Py(_){_._nesting--,Wg(_)}class tx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new is,this.onMicrotaskEmpty=new is,this.onStable=new is,this.onError=new is}run(b,w,C){return b.apply(w,C)}runGuarded(b,w,C){return b.apply(w,C)}runOutsideAngular(b){return b()}runTask(b,w,C,T){return b.apply(w,C)}}const si=new pn(""),Ry=new pn("");let Iy,wr=(()=>{class _{constructor(w,C,T){this._ngZone=w,this.registry=C,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Iy||(function Ly(_){Iy=_}(T),T.addToWindow(C)),this._watchAngularEvents(),w.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{br.assertNotInAngularZone(),zg(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())zg(()=>{for(;0!==this._callbacks.length;){let w=this._callbacks.pop();clearTimeout(w.timeoutId),w.doneCb(this._didWork)}this._didWork=!1});else{let w=this.getPendingTasks();this._callbacks=this._callbacks.filter(C=>!C.updateCb||!C.updateCb(w)||(clearTimeout(C.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(w=>({source:w.source,creationLocation:w.creationLocation,data:w.data})):[]}addCallback(w,C,T){let M=-1;C&&C>0&&(M=setTimeout(()=>{this._callbacks=this._callbacks.filter(R=>R.timeoutId!==M),w(this._didWork,this.getPendingTasks())},C)),this._callbacks.push({doneCb:w,timeoutId:M,updateCb:T})}whenStable(w,C,T){if(T&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(w,C,T),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(w){this.registry.registerApplication(w,this)}unregisterApplication(w){this.registry.unregisterApplication(w)}findProviders(w,C,T){return[]}}return _.\u0275fac=function(w){return new(w||_)(Tn(br),Tn(ky),Tn(Ry))},_.\u0275prov=Xt({token:_,factory:_.\u0275fac}),_})(),ky=(()=>{class _{constructor(){this._applications=new Map}registerApplication(w,C){this._applications.set(w,C)}unregisterApplication(w){this._applications.delete(w)}unregisterAllApplications(){this._applications.clear()}getTestability(w){return this._applications.get(w)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(w,C=!0){return Iy?.findTestabilityInTree(this,w,C)??null}}return _.\u0275fac=function(w){return new(w||_)},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})(),Mo=null;const Oy=new pn("AllowMultipleToken"),Jg=new pn("PlatformDestroyListeners");class Oi{constructor(b,w){this.name=b,this.token=w}}function Vy(_,b,w=[]){const C=`Platform: ${b}`,T=new pn(C);return(M=[])=>{let R=jy();if(!R||R.injector.get(Oy,!1)){const L=[...w,...M,{provide:T,useValue:!0}];_?_(L):function $i(_){if(Mo&&!Mo.get(Oy,!1))throw new re(400,!1);Mo=_;const b=_.get(ix);(function By(_){const b=_.get(Yg,null);b&&b.forEach(w=>w())})(_)}(function nx(_=[],b){return go.create({name:b,providers:[{provide:Rf,useValue:"platform"},{provide:Jg,useValue:new Set([()=>Mo=null])},..._]})}(L,C))}return function jl(_){const b=jy();if(!b)throw new re(401,!1);return b}()}}function jy(){return Mo?.get(ix)??null}let ix=(()=>{class _{constructor(w){this._injector=w,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(w,C){const T=function EE(_,b){let w;return w="noop"===_?new tx:("zone.js"===_?void 0:_)||new br(b),w}(C?.ngZone,function rx(_){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!_||!_.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!_||!_.ngZoneRunCoalescing)||!1}}(C)),M=[{provide:br,useValue:T}];return T.run(()=>{const R=go.create({providers:M,parent:this.injector,name:w.moduleType.name}),L=w.create(R),O=L.injector.get(Zr,null);if(!O)throw new re(402,!1);return T.runOutsideAngular(()=>{const F=T.onError.subscribe({next:$=>{O.handleError($)}});L.onDestroy(()=>{Kg(this._modules,L),F.unsubscribe()})}),function Uy(_,b,w){try{const C=w();return dp(C)?C.catch(T=>{throw b.runOutsideAngular(()=>_.handleError(T)),T}):C}catch(C){throw b.runOutsideAngular(()=>_.handleError(C)),C}}(O,T,()=>{const F=L.injector.get(rs);return F.runInitializers(),F.donePromise.then(()=>(function TT(_){Kt(_,"Expected localeId to be defined"),"string"==typeof _&&(eg=_.toLowerCase().replace(/_/g,"-"))}(L.injector.get(Fp,Rs)||Rs),this._moduleDoBootstrap(L),L))})})}bootstrapModule(w,C=[]){const T=Ny({},C);return function oi(_,b,w){const C=new Du(w);return Promise.resolve(C)}(0,0,w).then(M=>this.bootstrapModuleFactory(M,T))}_moduleDoBootstrap(w){const C=w.injector.get(Qg);if(w._bootstrapComponents.length>0)w._bootstrapComponents.forEach(T=>C.bootstrap(T));else{if(!w.instance.ngDoBootstrap)throw new re(403,!1);w.instance.ngDoBootstrap(C)}this._modules.push(w)}onDestroy(w){this._destroyListeners.push(w)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new re(404,!1);this._modules.slice().forEach(C=>C.destroy()),this._destroyListeners.forEach(C=>C());const w=this._injector.get(Jg,null);w&&(w.forEach(C=>C()),w.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return _.\u0275fac=function(w){return new(w||_)(Tn(go))},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();function Ny(_,b){return Array.isArray(b)?b.reduce(Ny,_):{..._,...b}}let Qg=(()=>{class _{constructor(w,C,T){this._zone=w,this._injector=C,this._exceptionHandler=T,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const M=new P.y(L=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{L.next(this._stable),L.complete()})}),R=new P.y(L=>{let O;this._zone.runOutsideAngular(()=>{O=this._zone.onStable.subscribe(()=>{br.assertNotInAngularZone(),zg(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,L.next(!0))})})});const F=this._zone.onUnstable.subscribe(()=>{br.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{L.next(!1)}))});return()=>{O.unsubscribe(),F.unsubscribe()}});this.isStable=(0,D.T)(M,R.pipe((0,H.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(w,C){const T=w instanceof MA;if(!this._injector.get(rs).done)throw!T&&Qc(w),new re(405,false);let R;R=T?w:this._injector.get(Tc).resolveComponentFactory(w),this.componentTypes.push(R.componentType);const L=function SE(_){return _.isBoundToModule}(R)?void 0:this._injector.get(Nc),F=R.create(go.NULL,[],C||R.selector,L),$=F.location.nativeElement,ne=F.injector.get(si,null);return ne?.registerApplication($),F.onDestroy(()=>{this.detachView(F.hostView),Kg(this.components,F),ne?.unregisterApplication($)}),this._loadComponent(F),F}tick(){if(this._runningTick)throw new re(101,!1);try{this._runningTick=!0;for(let w of this._views)w.detectChanges()}catch(w){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(w))}finally{this._runningTick=!1}}attachView(w){const C=w;this._views.push(C),C.attachToAppRef(this)}detachView(w){const C=w;Kg(this._views,C),C.detachFromAppRef()}_loadComponent(w){this.attachView(w.hostView),this.tick(),this.components.push(w),this._injector.get(Ey,[]).concat(this._bootstrapListeners).forEach(T=>T(w))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(w=>w()),this._views.slice().forEach(w=>w.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(w){return this._destroyListeners.push(w),()=>Kg(this._destroyListeners,w)}destroy(){if(this._destroyed)throw new re(406,!1);const w=this._injector;w.destroy&&!w.destroyed&&w.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return _.\u0275fac=function(w){return new(w||_)(Tn(br),Tn(gl),Tn(Zr))},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function Kg(_,b){const w=_.indexOf(b);w>-1&&_.splice(w,1)}let zp=!0;function DE(){zp=!1}let ox=(()=>{class _{}return _.__NG_ELEMENT_ID__=HE,_})();function HE(_){return function PE(_,b,w){if(qr(_)&&!w){const C=fi(_.index,b);return new lu(C,C)}return 47&_.type?new lu(b[16],b):null}(un(),Ce(),16==(16&_))}class ux{constructor(){}supports(b){return Hc(b)}create(b){return new BE(b)}}const OE=(_,b)=>b;class BE{constructor(b){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=b||OE}forEachItem(b){let w;for(w=this._itHead;null!==w;w=w._next)b(w)}forEachOperation(b){let w=this._itHead,C=this._removalsHead,T=0,M=null;for(;w||C;){const R=!C||w&&w.currentIndex{R=this._trackByFn(T,L),null!==w&&Object.is(w.trackById,R)?(C&&(w=this._verifyReinsertion(w,L,R,T)),Object.is(w.item,L)||this._addIdentityChange(w,L)):(w=this._mismatch(w,L,R,T),C=!0),w=w._next,T++}),this.length=T;return this._truncate(w),this.collection=b,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let b;for(b=this._previousItHead=this._itHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._additionsHead;null!==b;b=b._nextAdded)b.previousIndex=b.currentIndex;for(this._additionsHead=this._additionsTail=null,b=this._movesHead;null!==b;b=b._nextMoved)b.previousIndex=b.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(b,w,C,T){let M;return null===b?M=this._itTail:(M=b._prev,this._remove(b)),null!==(b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(C,null))?(Object.is(b.item,w)||this._addIdentityChange(b,w),this._reinsertAfter(b,M,T)):null!==(b=null===this._linkedRecords?null:this._linkedRecords.get(C,T))?(Object.is(b.item,w)||this._addIdentityChange(b,w),this._moveAfter(b,M,T)):b=this._addAfter(new Gy(w,C),M,T),b}_verifyReinsertion(b,w,C,T){let M=null===this._unlinkedRecords?null:this._unlinkedRecords.get(C,null);return null!==M?b=this._reinsertAfter(M,b._prev,T):b.currentIndex!=T&&(b.currentIndex=T,this._addToMoves(b,T)),b}_truncate(b){for(;null!==b;){const w=b._next;this._addToRemovals(this._unlink(b)),b=w}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(b,w,C){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(b);const T=b._prevRemoved,M=b._nextRemoved;return null===T?this._removalsHead=M:T._nextRemoved=M,null===M?this._removalsTail=T:M._prevRemoved=T,this._insertAfter(b,w,C),this._addToMoves(b,C),b}_moveAfter(b,w,C){return this._unlink(b),this._insertAfter(b,w,C),this._addToMoves(b,C),b}_addAfter(b,w,C){return this._insertAfter(b,w,C),this._additionsTail=null===this._additionsTail?this._additionsHead=b:this._additionsTail._nextAdded=b,b}_insertAfter(b,w,C){const T=null===w?this._itHead:w._next;return b._next=T,b._prev=w,null===T?this._itTail=b:T._prev=b,null===w?this._itHead=b:w._next=b,null===this._linkedRecords&&(this._linkedRecords=new Wy),this._linkedRecords.put(b),b.currentIndex=C,b}_remove(b){return this._addToRemovals(this._unlink(b))}_unlink(b){null!==this._linkedRecords&&this._linkedRecords.remove(b);const w=b._prev,C=b._next;return null===w?this._itHead=C:w._next=C,null===C?this._itTail=w:C._prev=w,b}_addToMoves(b,w){return b.previousIndex===w||(this._movesTail=null===this._movesTail?this._movesHead=b:this._movesTail._nextMoved=b),b}_addToRemovals(b){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Wy),this._unlinkedRecords.put(b),b.currentIndex=null,b._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=b,b._prevRemoved=null):(b._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=b),b}_addIdentityChange(b,w){return b.item=w,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=b:this._identityChangesTail._nextIdentityChange=b,b}}class Gy{constructor(b,w){this.item=b,this.trackById=w,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class VE{constructor(){this._head=null,this._tail=null}add(b){null===this._head?(this._head=this._tail=b,b._nextDup=null,b._prevDup=null):(this._tail._nextDup=b,b._prevDup=this._tail,b._nextDup=null,this._tail=b)}get(b,w){let C;for(C=this._head;null!==C;C=C._nextDup)if((null===w||w<=C.currentIndex)&&Object.is(C.trackById,b))return C;return null}remove(b){const w=b._prevDup,C=b._nextDup;return null===w?this._head=C:w._nextDup=C,null===C?this._tail=w:C._prevDup=w,null===this._head}}class Wy{constructor(){this.map=new Map}put(b){const w=b.trackById;let C=this.map.get(w);C||(C=new VE,this.map.set(w,C)),C.add(b)}get(b,w){const T=this.map.get(b);return T?T.get(b,w):null}remove(b){const w=b.trackById;return this.map.get(w).remove(b)&&this.map.delete(w),b}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function hx(_,b,w){const C=_.previousIndex;if(null===C)return C;let T=0;return w&&C{if(w&&w.key===T)this._maybeAddToChanges(w,C),this._appendAfter=w,w=w._next;else{const M=this._getOrCreateRecordForKey(T,C);w=this._insertBeforeOrAppend(w,M)}}),w){w._prev&&(w._prev._next=null),this._removalsHead=w;for(let C=w;null!==C;C=C._nextRemoved)C===this._mapHead&&(this._mapHead=null),this._records.delete(C.key),C._nextRemoved=C._next,C.previousValue=C.currentValue,C.currentValue=null,C._prev=null,C._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(b,w){if(b){const C=b._prev;return w._next=b,w._prev=C,b._prev=w,C&&(C._next=w),b===this._mapHead&&(this._mapHead=w),this._appendAfter=b,b}return this._appendAfter?(this._appendAfter._next=w,w._prev=this._appendAfter):this._mapHead=w,this._appendAfter=w,null}_getOrCreateRecordForKey(b,w){if(this._records.has(b)){const T=this._records.get(b);this._maybeAddToChanges(T,w);const M=T._prev,R=T._next;return M&&(M._next=R),R&&(R._prev=M),T._next=null,T._prev=null,T}const C=new $y(b);return this._records.set(b,C),C.currentValue=w,this._addToAdditions(C),C}_reset(){if(this.isDirty){let b;for(this._previousMapHead=this._mapHead,b=this._previousMapHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._changesHead;null!==b;b=b._nextChanged)b.previousValue=b.currentValue;for(b=this._additionsHead;null!=b;b=b._nextAdded)b.previousValue=b.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(b,w){Object.is(w,b.currentValue)||(b.previousValue=b.currentValue,b.currentValue=w,this._addToChanges(b))}_addToAdditions(b){null===this._additionsHead?this._additionsHead=this._additionsTail=b:(this._additionsTail._nextAdded=b,this._additionsTail=b)}_addToChanges(b){null===this._changesHead?this._changesHead=this._changesTail=b:(this._changesTail._nextChanged=b,this._changesTail=b)}_forEach(b,w){b instanceof Map?b.forEach(w):Object.keys(b).forEach(C=>w(b[C],C))}}class $y{constructor(b){this.key=b,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Jy(){return new e_([new ux])}let e_=(()=>{class _{constructor(w){this.factories=w}static create(w,C){if(null!=C){const T=C.factories.slice();w=w.concat(T)}return new _(w)}static extend(w){return{provide:_,useFactory:C=>_.create(w,C||Jy()),deps:[[_,new qa,new ul]]}}find(w){const C=this.factories.find(T=>T.supports(w));if(null!=C)return C;throw new re(901,!1)}}return _.\u0275prov=Xt({token:_,providedIn:"root",factory:Jy}),_})();function mx(){return new Zy([new px])}let Zy=(()=>{class _{constructor(w){this.factories=w}static create(w,C){if(C){const T=C.factories.slice();w=w.concat(T)}return new _(w)}static extend(w){return{provide:_,useFactory:C=>_.create(w,C||mx()),deps:[[_,new qa,new ul]]}}find(w){const C=this.factories.find(T=>T.supports(w));if(C)return C;throw new re(901,!1)}}return _.\u0275prov=Xt({token:_,providedIn:"root",factory:mx}),_})();const NE=Vy(null,"core",[]);let _x=(()=>{class _{constructor(w){}}return _.\u0275fac=function(w){return new(w||_)(Tn(Qg))},_.\u0275mod=vr({type:_}),_.\u0275inj=En({}),_})();function FE(_){return"boolean"==typeof _?_:null!=_&&"false"!==_}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class z extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return z.\u0275fac=function(){let W;return function(x){return(W||(W=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(z)))(x||z)}}(),z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class z{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,x){this.data.set(E,x)}}return z.\u0275fac=function(E){return new(E||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class ReceivedTokens{}class OAuthEvent{constructor(W){this.type=W}}class OAuthSuccessEvent extends OAuthEvent{constructor(W,E=null){super(W),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(W,E=null){super(W),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(W,E,x=null){super(W),this.reason=E,this.params=x}}function b64DecodeUnicode(z){const W=z.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(W).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(z){return btoa(z).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(W){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},W&&Object.assign(this,W)}}class WebHttpUrlEncodingCodec{encodeKey(W){return encodeURIComponent(W)}encodeValue(W){return encodeURIComponent(W)}decodeKey(W){return decodeURIComponent(W)}decodeValue(W){return decodeURIComponent(W)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(W){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let x=E.inferHashAlgorithm(W.idTokenHeader),n=yield E.calcHash(W.accessToken,x),D=base64UrlEncode(n.substr(0,n.length/2)),H=W.idTokenClaims.at_hash.replace(/=/g,"");return D!==H&&(console.error("exptected at_hash: "+D),console.error("actual at_hash: "+H)),D===H})()}inferHashAlgorithm(W){let E=W.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class z{getHashFragmentParams(E){let x=E||window.location.hash;if(x=decodeURIComponent(x),0!==x.indexOf("#"))return{};const n=x.indexOf("?");return x=x.substr(n>-1?n+1:1),this.parseQueryString(x)}parseQueryString(E){const x={};let n,P,D,H,I,B,Y;if(null===E)return x;n=E.split("&");for(let G=0;G>6,P[H++]=128|63&I):I<55296||I>=57344?(P[H++]=224|I>>12,P[H++]=128|I>>6&63,P[H++]=128|63&I):(I=65536+((1023&I)<<10|1023&z.charCodeAt(++x)),P[H++]=240|I>>18,P[H++]=128|I>>12&63,P[H++]=128|I>>6&63,P[H++]=128|63&I);z=P}else{if("object"!==n)throw new Error(ERROR);if(null===z)throw new Error(ERROR);if(ARRAY_BUFFER&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!(Array.isArray(z)||ARRAY_BUFFER&&ArrayBuffer.isView(z)))throw new Error(ERROR)}z.length>64&&(z=new Sha256(W,!0).update(z).array());var B=[],Y=[];for(x=0;x<64;++x){var G=z[x]||0;B[x]=92^G,Y[x]=54^G}Sha256.call(this,W,E),this.update(Y),this.oKeyPad=B,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(z){if(!this.finalized){var W,E=typeof z;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===z)throw new Error(ERROR);if(ARRAY_BUFFER&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!(Array.isArray(z)||ARRAY_BUFFER&&ArrayBuffer.isView(z)))throw new Error(ERROR);W=!0}for(var x,P,n=0,D=z.length,H=this.blocks;n>2]|=z[n]<>2]|=x<>2]|=(192|x>>6)<>2]|=(128|63&x)<=57344?(H[P>>2]|=(224|x>>12)<>2]|=(128|x>>6&63)<>2]|=(128|63&x)<>2]|=(240|x>>18)<>2]|=(128|x>>12&63)<>2]|=(128|x>>6&63)<>2]|=(128|63&x)<=64?(this.block=H[16],this.start=P-64,this.hash(),this.hashed=!0):this.start=P}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var z=this.blocks,W=this.lastByteIndex;z[16]=this.block,z[W>>2]|=EXTRA[3&W],this.block=z[16],W>=56&&(this.hashed||this.hash(),z[0]=this.block,z[16]=z[1]=z[2]=z[3]=z[4]=z[5]=z[6]=z[7]=z[8]=z[9]=z[10]=z[11]=z[12]=z[13]=z[14]=z[15]=0),z[14]=this.hBytes<<3|this.bytes>>>29,z[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var B,te,se,re,_e,ye,z=this.h0,W=this.h1,E=this.h2,x=this.h3,n=this.h4,P=this.h5,D=this.h6,H=this.h7,I=this.blocks;for(B=16;B<64;++B)I[B]=I[B-16]+(((te=I[B-15])>>>7|te<<25)^(te>>>18|te<<14)^te>>>3)+I[B-7]+(((te=I[B-2])>>>17|te<<15)^(te>>>19|te<<13)^te>>>10)<<0;for(ye=W&E,B=0;B<64;B+=4)this.first?(this.is224?(se=300032,H=(te=I[0]-1413257819)-150054599<<0,x=te+24177077<<0):(se=704751109,H=(te=I[0]-210244248)-1521486534<<0,x=te+143694565<<0),this.first=!1):(H=x+(te=H+((n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7))+(n&P^~n&D)+K[B]+I[B])<<0,x=te+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((se=z&W)^z&E^ye))<<0),D=E+(te=D+((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&n^~H&P)+K[B+1]+I[B+1])<<0,E=te+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((re=x&z)^x&W^se))<<0,P=W+(te=P+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&H^~D&n)+K[B+2]+I[B+2])<<0,W=te+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((_e=E&x)^E&z^re))<<0,n=z+(te=n+((P>>>6|P<<26)^(P>>>11|P<<21)^(P>>>25|P<<7))+(P&D^~P&H)+K[B+3]+I[B+3])<<0,z=te+(((W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10))+((ye=W&E)^W&x^_e))<<0;this.h0=this.h0+z<<0,this.h1=this.h1+W<<0,this.h2=this.h2+E<<0,this.h3=this.h3+x<<0,this.h4=this.h4+n<<0,this.h5=this.h5+P<<0,this.h6=this.h6+D<<0,this.h7=this.h7+H<<0},Sha256.prototype.hex=function(){this.finalize();var z=this.h0,W=this.h1,E=this.h2,x=this.h3,n=this.h4,P=this.h5,D=this.h6,H=this.h7,I=HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[W>>28&15]+HEX_CHARS[W>>24&15]+HEX_CHARS[W>>20&15]+HEX_CHARS[W>>16&15]+HEX_CHARS[W>>12&15]+HEX_CHARS[W>>8&15]+HEX_CHARS[W>>4&15]+HEX_CHARS[15&W]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[P>>28&15]+HEX_CHARS[P>>24&15]+HEX_CHARS[P>>20&15]+HEX_CHARS[P>>16&15]+HEX_CHARS[P>>12&15]+HEX_CHARS[P>>8&15]+HEX_CHARS[P>>4&15]+HEX_CHARS[15&P]+HEX_CHARS[D>>28&15]+HEX_CHARS[D>>24&15]+HEX_CHARS[D>>20&15]+HEX_CHARS[D>>16&15]+HEX_CHARS[D>>12&15]+HEX_CHARS[D>>8&15]+HEX_CHARS[D>>4&15]+HEX_CHARS[15&D];return this.is224||(I+=HEX_CHARS[H>>28&15]+HEX_CHARS[H>>24&15]+HEX_CHARS[H>>20&15]+HEX_CHARS[H>>16&15]+HEX_CHARS[H>>12&15]+HEX_CHARS[H>>8&15]+HEX_CHARS[H>>4&15]+HEX_CHARS[15&H]),I},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var z=this.h0,W=this.h1,E=this.h2,x=this.h3,n=this.h4,P=this.h5,D=this.h6,H=this.h7,I=[z>>24&255,z>>16&255,z>>8&255,255&z,W>>24&255,W>>16&255,W>>8&255,255&W,E>>24&255,E>>16&255,E>>8&255,255&E,x>>24&255,x>>16&255,x>>8&255,255&x,n>>24&255,n>>16&255,n>>8&255,255&n,P>>24&255,P>>16&255,P>>8&255,255&P,D>>24&255,D>>16&255,D>>8&255,255&D];return this.is224||I.push(H>>24&255,H>>16&255,H>>8&255,255&H),I},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var z=new ArrayBuffer(this.is224?28:32),W=new DataView(z);return W.setUint32(0,this.h0),W.setUint32(4,this.h1),W.setUint32(8,this.h2),W.setUint32(12,this.h3),W.setUint32(16,this.h4),W.setUint32(20,this.h5),W.setUint32(24,this.h6),this.is224||W.setUint32(28,this.h7),z},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var z=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(z),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(z){if("string"!=typeof z)throw new TypeError("expected string");var W,E=z,x=new Uint8Array(E.length);for(W=0;W{class z{calcHash(E,x){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})()}toHashString2(E){let x="";for(let n of E)x+=String.fromCharCode(n);return x}toHashString(E){const x=new Uint8Array(E);let n="";for(let P of x)n+=String.fromCharCode(P);return n}}return z.\u0275fac=function(E){return new(E||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})(),OAuthService=(()=>{class z extends AuthConfig{constructor(E,x,n,P,D,H,I,B,Y,G){super(),this.ngZone=E,this.http=x,this.config=D,this.urlHelper=H,this.logger=I,this.crypto=B,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Y,D||(D={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),P&&(this.tokenValidationHandler=P),D&&this.configure(D);try{n?this.setStorage(n):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(ee){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",ee)}if(this.checkLocalStorageAccessable()){const ee=window?.navigator?.userAgent;(ee?.includes("MSIE ")||ee?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const E="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(E,E),localStorage.removeItem(E),0))}catch{return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},x,n=!0){let P=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(D=>{"token_received"===D.type?P=!0:"logout"===D.type&&(P=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>"token_expires"===D.type&&(null==x||"any"===x||D.info===x)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(D=>{P&&this.refreshInternal(E,n).catch(H=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,x){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,x):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(x=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(x=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const x=[],n=this.validateUrlForHttps(E),P=this.validateUrlAgainstIssuer(E);return n||x.push("https for all urls required. Also for urls received by discovery."),P||x.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),x}validateUrlForHttps(E){if(!E)return!0;const x=E.toLowerCase();return!(!1!==this.requireHttps&&(!x.match(/^http:\/\/localhost($|[:\/])/)&&!x.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||x.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,x){if(!E)throw new Error(`'${x}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${x}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),x=this.getAccessTokenStoredAt(),n=this.calcTimeout(x,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(n)).subscribe(P=>{this.ngZone.run(()=>{this.eventsSubject.next(P)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),x=this.getIdTokenStoredAt(),n=this.calcTimeout(x,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(n)).subscribe(P=>{this.ngZone.run(()=>{this.eventsSubject.next(P)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,x){const n=this.dateTimeService.now();return Math.max(0,(x-E)*this.timeoutFactor-(n-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((x,n)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(P=>{if(!this.validateDiscoveryDocument(P))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void n("discovery_document_validation_error");this.loginUrl=P.authorization_endpoint,this.logoutUrl=P.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=P.grant_types_supported,this.issuer=P.issuer,this.tokenEndpoint=P.token_endpoint,this.userinfoEndpoint=P.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=P.jwks_uri,this.sessionCheckIFrameUrl=P.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(P),this.revocationEndpoint=P.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(D=>{const I=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:P,jwks:D});this.eventsSubject.next(I),x(I)}).catch(D=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",D)),n(D)})},P=>{this.logger.error("error loading discovery document",P),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",P)),n(P)}):n("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,x)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(n=>{this.jwks=n,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(n)},n=>{this.logger.error("error loading jwks",n),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",n)),x(n)}):E(null)})}validateDiscoveryDocument(E){let x;return this.skipIssuerCheck||E.issuer===this.issuer?(x=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),x.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",x),!1):(x=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),x.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",x),!1):(x=this.validateUrlFromDiscoveryDocument(E.token_endpoint),x.length>0&&this.logger.error("error validating token_endpoint in discovery document",x),x=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),x.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",x),x=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),x.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",x),!1):(x=this.validateUrlFromDiscoveryDocument(E.jwks_uri),x.length>0?(this.logger.error("error validating jwks_uri in discovery document",x),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,x,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,x,n).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,x)=>{const n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:n,observe:"response",responseType:"text"}).subscribe(P=>{if(this.debug("userinfo received",JSON.stringify(P)),P.headers.get("content-type").startsWith("application/json")){let D=JSON.parse(P.body);const H=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!H.sub||D.sub!==H.sub))return void x("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");D=Object.assign({},H,D),this._storage.setItem("id_token_claims_obj",JSON.stringify(D)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:D})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(P.body))},P=>{this.logger.error("error loading user info",P),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",P)),x(P)})})}fetchTokenUsingPasswordFlow(E,x,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:x},n)}fetchTokenUsingGrant(E,x,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let P=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+D)}if(this.useHttpBasicAuth||(P=P.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(P=P.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const D of Object.getOwnPropertyNames(this.customQueryParams))P=P.set(D,this.customQueryParams[D]);for(const D of Object.keys(x))P=P.set(D,x[D]);return n=n.set("Content-Type","application/x-www-form-urlencoded"),new Promise((D,H)=>{this.http.post(this.tokenEndpoint,P,{headers:n}).subscribe(I=>{this.debug("tokenResponse",I),this.storeAccessTokenResponse(I.access_token,I.refresh_token,I.expires_in||this.fallbackAccessTokenExpirationTimeInSec,I.scope,this.extractRecognizedCustomParameters(I)),this.oidc&&I.id_token&&this.processIdToken(I.id_token,I.access_token).then(B=>{this.storeIdToken(B),D(I)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),D(I)},I=>{this.logger.error("Error performing ${grantType} flow",I),this.eventsSubject.next(new OAuthErrorEvent("token_error",I)),H(I)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,x)=>{let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),P=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);P=P.set("Authorization","Basic "+D)}if(this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const D of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(D,this.customQueryParams[D]);this.http.post(this.tokenEndpoint,n,{headers:P}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(D=>D.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(D.id_token,D.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(H=>this.storeIdToken(H)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(H=>D)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(D))).subscribe(D=>{this.debug("refresh tokenResponse",D),this.storeAccessTokenResponse(D.access_token,D.refresh_token,D.expires_in||this.fallbackAccessTokenExpirationTimeInSec,D.scope,this.extractRecognizedCustomParameters(D)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(D)},D=>{this.logger.error("Error refreshing token",D),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",D)),x(D)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const x=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:x,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(n=>this.debug("tryLogin during silent refresh failed",n))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},x=!0){const n=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const P=this.document.getElementById(this.silentRefreshIFrameName);P&&this.document.body.removeChild(P),this.silentRefreshSubject=n.sub;const D=this.document.createElement("iframe");D.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,x,E).then(G=>{D.setAttribute("src",G),this.silentRefreshShowIFrame||(D.style.display="none"),this.document.body.appendChild(D)});const I=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),B=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Y=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([I,B,Y]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(G=>{if(G instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===G.type||(G=new OAuthErrorEvent("silent_refresh_error",G)),this.eventsSubject.next(G),G;return"token_received"===G.type&&(G=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(G)),G})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(x=>new Promise((n,P)=>{let I,H=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(H=E.windowRef,H.location.href=x):H=window.open(x,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const B=ae=>{this.tryLogin({customHashFragment:ae,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),n(!0)},ue=>{G(),P(ue)})};H?I=window.setInterval(()=>{(!H||H.closed)&&(G(),P(new OAuthErrorEvent("popup_closed",{})))},500):P(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(I),window.removeEventListener("storage",te),window.removeEventListener("message",ee),null!==H&&H.close(),H=null},ee=ae=>{const ue=this.processMessageEventMessage(ae);ue&&null!==ue?(window.removeEventListener("storage",te),B(ue)):console.log("false event firing")},te=ae=>{"auth_hash"===ae.key&&(window.removeEventListener("message",ee),B(ae.newValue))};window.addEventListener("message",ee),window.addEventListener("storage",te)}))}calculatePopupFeatures(E){const x=E.height||470,n=E.width||500,P=window.screenLeft+(window.outerWidth-n)/2;return`location=no,toolbar=no,width=${n},height=${x},top=${window.screenTop+(window.outerHeight-x)/2},left=${P}`}processMessageEventMessage(E){let x="#";if(this.silentRefreshMessagePrefix&&(x+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const n=E.data;return n.startsWith(x)?"#"+n.substr(x.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const x=E.origin.toLowerCase(),n=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),n.startsWith(x)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",x,"expected",n,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const x=this.document.createElement("iframe");x.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),x.setAttribute("src",this.sessionCheckIFrameUrl),x.style.display="none",this.document.body.appendChild(x),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const x=this.getSessionState();x||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+x,this.issuer)}createLoginUrl(E="",x="",n="",P=!1,D={}){var H=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const I=H;let B;B=n||H.redirectUri;const Y=yield H.createAndSaveNonce();if(E=E?Y+H.config.nonceStateSeparator+encodeURIComponent(E):Y,!H.requestAccessToken&&!H.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");H.responseType=H.config.responseType?H.config.responseType:H.oidc&&H.requestAccessToken?"id_token token":H.oidc&&!H.requestAccessToken?"id_token":"token";const G=I.loginUrl.indexOf("?")>-1?"&":"?";let ee=I.scope;H.oidc&&!ee.match(/(^|\s)openid($|\s)/)&&(ee="openid "+ee);let te=I.loginUrl+G+"response_type="+encodeURIComponent(I.responseType)+"&client_id="+encodeURIComponent(I.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(B)+"&scope="+encodeURIComponent(ee);if(H.responseType.includes("code")&&!H.disablePKCE){const[ae,ue]=yield H.createChallangeVerifierPairForPKCE();H.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ue):H._storage.setItem("PKCE_verifier",ue),te+="&code_challenge="+ae,te+="&code_challenge_method=S256"}x&&(te+="&login_hint="+encodeURIComponent(x)),I.resource&&(te+="&resource="+encodeURIComponent(I.resource)),I.oidc&&(te+="&nonce="+encodeURIComponent(Y)),P&&(te+="&prompt=none");for(const ae of Object.keys(D))te+="&"+encodeURIComponent(ae)+"="+encodeURIComponent(D[ae]);if(H.customQueryParams)for(const ae of Object.getOwnPropertyNames(H.customQueryParams))te+="&"+ae+"="+encodeURIComponent(H.customQueryParams[ae]);return te})()}initImplicitFlowInternal(E="",x=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let n={},P=null;"string"==typeof x?P=x:"object"==typeof x&&(n=x),this.createLoginUrl(E,P,null,!1,n).then(this.config.openUri).catch(D=>{console.error("Error in initImplicitFlow",D),this.inImplicitFlow=!1})}initImplicitFlow(E="",x=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,x):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(n=>"discovery_document_loaded"===n.type)).subscribe(n=>this.initImplicitFlowInternal(E,x))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const x=this;if(E.onTokenReceived){const n={idClaims:x.getIdentityClaims(),idToken:x.getIdToken(),accessToken:x.getAccessToken(),state:x.state};E.onTokenReceived(n)}}storeAccessTokenResponse(E,x,n,P,D){if(this._storage.setItem("access_token",E),P&&!Array.isArray(P)?this._storage.setItem("granted_scopes",JSON.stringify(P.split(" "))):P&&Array.isArray(P)&&this._storage.setItem("granted_scopes",JSON.stringify(P)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),n){const H=1e3*n,B=this.dateTimeService.new().getTime()+H;this._storage.setItem("expires_at",""+B)}x&&this._storage.setItem("refresh_token",x),D&&D.forEach((H,I)=>{this._storage.setItem(I,H)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(x=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const n=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,P=x.getCodePartsFromUrl(n),D=P.code,H=P.state,I=P.session_state;if(!E.preventClearHashAfterLogin){const G=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,G)}let[B,Y]=x.parseState(H);if(x.state=Y,P.error){x.debug("error trying to login"),x.handleLoginError(E,P);const G=new OAuthErrorEvent("code_error",{},P);return x.eventsSubject.next(G),Promise.reject(G)}if(!E.disableNonceCheck){if(!B)return x.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!x.validateNonce(B)){const ee=new OAuthErrorEvent("invalid_nonce_in_state",null);return x.eventsSubject.next(ee),Promise.reject(ee)}return x.storeSessionState(I),D&&(yield x.getTokenFromCode(D,E),x.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,x){let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",x.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let P;P=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),P?n=n.set("code_verifier",P):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(n,x)}fetchAndProcessToken(E,x){x=x||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const P=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+P)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((P,D)=>{if(this.customQueryParams)for(let H of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(H,this.customQueryParams[H]);this.http.post(this.tokenEndpoint,E,{headers:n}).subscribe(H=>{this.debug("refresh tokenResponse",H),this.storeAccessTokenResponse(H.access_token,H.refresh_token,H.expires_in||this.fallbackAccessTokenExpirationTimeInSec,H.scope,this.extractRecognizedCustomParameters(H)),this.oidc&&H.id_token?this.processIdToken(H.id_token,H.access_token,x.disableNonceCheck).then(I=>{this.storeIdToken(I),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),P(H)}).catch(I=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",I)),console.error("Error validating tokens"),console.error(I),D(I)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),P(H))},H=>{console.error("Error getting token",H),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",H)),D(H)})})}tryLoginImplicitFlow(E=null){let x;x=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",x);const n=x.state;let[P,D]=this.parseState(n);if(this.state=D,x.error){this.debug("error trying to login"),this.handleLoginError(E,x);const G=new OAuthErrorEvent("token_error",{},x);return this.eventsSubject.next(G),Promise.reject(G)}const H=x.access_token,I=x.id_token,B=x.session_state,Y=x.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!H||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!n||this.oidc&&!I)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!B&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(P)){const ee=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(ee),Promise.reject(ee)}return this.requestAccessToken&&this.storeAccessTokenResponse(H,null,x.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Y),this.oidc?this.processIdToken(I,H,E.disableNonceCheck).then(G=>E.validationHandler?E.validationHandler({accessToken:H,idClaims:G.idTokenClaims,idToken:G.idToken,state:n}).then(ee=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(B),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(G=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",G)),this.logger.error("Error validating tokens"),this.logger.error(G),Promise.reject(G))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let x=E,n="";if(E){const P=E.indexOf(this.config.nonceStateSeparator);P>-1&&(x=E.substr(0,P),n=E.substr(P+this.config.nonceStateSeparator.length))}return[x,n]}validateNonce(E){let x;return x=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),x===E||(console.error("Validating access_token failed, wrong state/nonce.",x,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,x){E.onLoginError&&E.onLoginError(x),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,x,n=!1){const P=E.split("."),H=b64DecodeUnicode(this.padBase64(P[0])),I=JSON.parse(H),Y=b64DecodeUnicode(this.padBase64(P[1])),G=JSON.parse(Y);let ee;if(ee=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(_e=>_e!==this.clientId)){const _e="Wrong audience: "+G.aud.join(",");return this.logger.warn(_e),Promise.reject(_e)}}else if(G.aud!==this.clientId){const _e="Wrong audience: "+G.aud;return this.logger.warn(_e),Promise.reject(_e)}if(!G.sub){const _e="No sub claim in id_token";return this.logger.warn(_e),Promise.reject(_e)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const _e=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(_e),Promise.reject(_e)}if(!G.iat){const _e="No iat claim in id_token";return this.logger.warn(_e),Promise.reject(_e)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const _e="Wrong issuer: "+G.iss;return this.logger.warn(_e),Promise.reject(_e)}if(!n&&G.nonce!==ee){const _e="Wrong nonce: "+G.nonce;return this.logger.warn(_e),Promise.reject(_e)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!G.at_hash){const _e="An at_hash is needed!";return this.logger.warn(_e),Promise.reject(_e)}const te=this.dateTimeService.now(),ae=1e3*G.iat,ue=1e3*G.exp,se=this.getClockSkewInMsec();if(ae-se>=te||ue+se<=te){const _e="Token has expired";return console.error(_e),console.error({now:te,issuedAtMSec:ae,expiresAtMSec:ue}),Promise.reject(_e)}const re={accessToken:x,idToken:E,jwks:this.jwks,idTokenClaims:G,idTokenHeader:I,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(re).then(_e=>({idToken:E,idTokenClaims:G,idTokenClaimsJson:Y,idTokenHeader:I,idTokenHeaderJson:H,idTokenExpiresAt:ue})):this.checkAtHash(re).then(_e=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!_e){const ye="Wrong at_hash";return this.logger.warn(ye),Promise.reject(ye)}return this.checkSignature(re).then(ye=>{const Je={idToken:E,idTokenClaims:G,idTokenClaimsJson:Y,idTokenHeader:I,idTokenHeaderJson:H,idTokenExpiresAt:ue};return this.disableAtHashCheck?Je:this.checkAtHash(re).then(Ze=>{if(this.requestAccessToken&&!Ze){const ke="Wrong at_hash";return this.logger.warn(ke),Promise.reject(ke)}return Je})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),x=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},x=""){let n=!1;"boolean"==typeof E&&(n=E,E={});const P=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(H=>this._storage.removeItem(H)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||n||!P&&!this.postLogoutRedirectUri)return;let D;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)D=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(P)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let H=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});P&&(H=H.set("id_token_hint",P));const I=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";I&&(H=H.set("post_logout_redirect_uri",I),x&&(H=H.set("state",x)));for(let B in E)H=H.set(B,E[B]);D=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+H.toString()}this.config.openUri(D)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(x){return E.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",x):E._storage.setItem("nonce",x),x})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const x=this.document.getElementById(this.sessionCheckIFrameName);x&&x.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let n=45,P="";const D=typeof self>"u"?null:self.crypto||self.msCrypto;if(D){let H=new Uint8Array(n);D.getRandomValues(H),H.map||(H.map=Array.prototype.map),H=H.map(I=>x.charCodeAt(I%x.length)),P=String.fromCharCode.apply(null,H)}else for(;0"discovery_document_loaded"===n.type)).subscribe(n=>this.initCodeFlowInternal(E,x))}initCodeFlowInternal(E="",x={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let n={},P=null;"string"==typeof x?P=x:"object"==typeof x&&(n=x),this.createLoginUrl(E,P,null,!1,n).then(this.config.openUri).catch(D=>{console.error("Error in initAuthorizationCodeFlow"),console.error(D)})}createChallangeVerifierPairForPKCE(){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!E.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const x=yield E.createNonce();return[base64UrlEncode(yield E.crypto.calcHash(x,"sha-256")),x]})()}extractRecognizedCustomParameters(E){let x=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(n=>{E[n]&&x.set(n,JSON.stringify(E[n]))}),x}revokeTokenAndLogout(E={},x=!1){let n=this.revocationEndpoint,P=this.getAccessToken(),D=this.getRefreshToken();if(!P)return;let H=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),I=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const B=btoa(`${this.clientId}:${this.dummyClientSecret}`);I=I.set("Authorization","Basic "+B)}if(this.useHttpBasicAuth||(H=H.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(H=H.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const B of Object.getOwnPropertyNames(this.customQueryParams))H=H.set(B,this.customQueryParams[B]);return new Promise((B,Y)=>{let G,ee;if(P){let te=H.set("token",P).set("token_type_hint","access_token");G=this.http.post(n,te,{headers:I})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(D){let te=H.set("token",D).set("token_type_hint","refresh_token");ee=this.http.post(n,te,{headers:I})}else ee=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);x&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(te=>0===te.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(te))),ee=ee.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(te=>0===te.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(te)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([G,ee]).subscribe(te=>{this.logOut(E),B(te),this.logger.info("Token successfully revoked")},te=>{this.logger.error("Error revoking token",te),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",te)),Y(te)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return z.\u0275fac=function(E){return new(E||z)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(W){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(W)}}let DefaultOAuthInterceptor=(()=>{class z{constructor(E,x,n){this.oAuthService=E,this.errorHandler=x,this.moduleConfig=n}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(x=>E.toLowerCase().startsWith(x.toLowerCase()))}intercept(E,x){const n=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(n)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>!!D)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>"token_received"===D.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(D=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(D=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(D=>{if(D){const I=E.headers.set("Authorization","Bearer "+D);E=E.clone({headers:I})}return x.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(H=>this.errorHandler.handleError(H)))})):x.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(D=>this.errorHandler.handleError(D))):x.handle(E)}}return z.\u0275fac=function(E){return new(E||z)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class NullValidationHandler{validateSignature(W){return Promise.resolve(null)}validateAtHash(W){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class z{static forRoot(E=null,x=NullValidationHandler){return{ngModule:z,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:x},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return z.\u0275fac=function(E){return new(E||z)},z.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:z}),z.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),z})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(z,W,E)=>{"use strict";function x(P,D,H,I,B,Y,G){try{var ee=P[Y](G),te=ee.value}catch(ae){return void H(ae)}ee.done?D(te):Promise.resolve(te).then(I,B)}function n(P){return function(){var D=this,H=arguments;return new Promise(function(I,B){var Y=P.apply(D,H);function G(te){x(Y,I,B,G,ee,"next",te)}function ee(te){x(Y,I,B,G,ee,"throw",te)}G(void 0)})}}E.d(W,{Z:()=>n})},4147:z=>{"use strict";z.exports={i8:"10.4.3"}}},z=>{z(z.s=887)}]); \ No newline at end of file diff --git a/dist/apps/publications/main.395dea0fc73b2003.js b/dist/apps/publications/main.395dea0fc73b2003.js new file mode 100644 index 000000000..a6dd11854 --- /dev/null +++ b/dist/apps/publications/main.395dea0fc73b2003.js @@ -0,0 +1 @@ +(self.webpackChunkpublications=self.webpackChunkpublications||[]).push([[179],{887:(z,W,E)=>{"use strict";var x=E(6895),n=E(4650);class P extends x.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class D extends P{static makeCurrent(){(0,x.HT)(new D)}onAndCancel(s,e,t){return s.addEventListener(e,t,!1),()=>{s.removeEventListener(e,t,!1)}}dispatchEvent(s,e){s.dispatchEvent(e)}remove(s){s.parentNode&&s.parentNode.removeChild(s)}createElement(s,e){return(e=e||this.getDefaultDocument()).createElement(s)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(s){return s.nodeType===Node.ELEMENT_NODE}isShadowRoot(s){return s instanceof DocumentFragment}getGlobalEventTarget(s,e){return"window"===e?window:"document"===e?s:"body"===e?s.body:null}getBaseHref(s){const e=function I(){return H=H||document.querySelector("base"),H?H.getAttribute("href"):null}();return null==e?null:function Y(i){B=B||document.createElement("a"),B.setAttribute("href",i);const s=B.pathname;return"/"===s.charAt(0)?s:`/${s}`}(e)}resetBaseElement(){H=null}getUserAgent(){return window.navigator.userAgent}getCookie(s){return(0,x.Mx)(document.cookie,s)}}let B,H=null;const G=new n.OlP("TRANSITION_ID"),te=[{provide:n.ip1,useFactory:function ee(i,s,e){return()=>{e.get(n.CZH).donePromise.then(()=>{const t=(0,x.q)(),r=s.querySelectorAll(`style[ng-transition="${i}"]`);for(let d=0;d{class i{build(){return new XMLHttpRequest}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const se=new n.OlP("EventManagerPlugins");let re=(()=>{class i{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let d=0;d{class i{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),t.add(r))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Me=(()=>{class i extends ye{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(d=>{const h=this._doc.createElement("style");h.textContent=d,r.push(t.appendChild(h))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Je),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Je))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function Je(i){(0,x.q)().remove(i)}const Ze={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ke=/%COMP%/g;function fe(i,s,e){for(let t=0;t{if("__ngUnwrap__"===s)return i;!1===i(s)&&(s.preventDefault(),s.returnValue=!1)}}let we=(()=>{class i{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ze(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case n.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new Kt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case n.ifc.ShadowDom:return new Qe(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=fe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(re),n.LFG(Me),n.LFG(n.AFp))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class ze{constructor(s){this.eventManager=s,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(s,e){return e?document.createElementNS(Ze[e]||e,s):document.createElement(s)}createComment(s){return document.createComment(s)}createText(s){return document.createTextNode(s)}appendChild(s,e){(Bt(s)?s.content:s).appendChild(e)}insertBefore(s,e,t){s&&(Bt(s)?s.content:s).insertBefore(e,t)}removeChild(s,e){s&&s.removeChild(e)}selectRootElement(s,e){let t="string"==typeof s?document.querySelector(s):s;if(!t)throw new Error(`The selector "${s}" did not match any elements`);return e||(t.textContent=""),t}parentNode(s){return s.parentNode}nextSibling(s){return s.nextSibling}setAttribute(s,e,t,r){if(r){e=r+":"+e;const d=Ze[r];d?s.setAttributeNS(d,e,t):s.setAttribute(e,t)}else s.setAttribute(e,t)}removeAttribute(s,e,t){if(t){const r=Ze[t];r?s.removeAttributeNS(r,e):s.removeAttribute(`${t}:${e}`)}else s.removeAttribute(e)}addClass(s,e){s.classList.add(e)}removeClass(s,e){s.classList.remove(e)}setStyle(s,e,t,r){r&(n.JOm.DashCase|n.JOm.Important)?s.style.setProperty(e,t,r&n.JOm.Important?"important":""):s.style[e]=t}removeStyle(s,e,t){t&n.JOm.DashCase?s.style.removeProperty(e):s.style[e]=""}setProperty(s,e,t){s[e]=t}setValue(s,e){s.nodeValue=e}listen(s,e,t){return"string"==typeof s?this.eventManager.addGlobalEventListener(s,e,ge(t)):this.eventManager.addEventListener(s,e,ge(t))}}function Bt(i){return"TEMPLATE"===i.tagName&&void 0!==i.content}class Kt extends ze{constructor(s,e,t,r){super(s),this.component=t;const d=fe(r+"-"+t.id,t.styles,[]);e.addStyles(d),this.contentAttr=function Ne(i){return"_ngcontent-%COMP%".replace(ke,i)}(r+"-"+t.id),this.hostAttr=function je(i){return"_nghost-%COMP%".replace(ke,i)}(r+"-"+t.id)}applyToHost(s){super.setAttribute(s,this.hostAttr,"")}createElement(s,e){const t=super.createElement(s,e);return super.setAttribute(t,this.contentAttr,""),t}}class Qe extends ze{constructor(s,e,t,r){super(s),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const d=fe(r.id,r.styles,[]);for(let h=0;h{class i extends _e{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Mi=["alt","control","meta","shift"],Xt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Cr={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},En={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey};let aa=(()=>{class i extends _e{constructor(e){super(e)}supports(e){return null!=i.parseEventName(e)}addEventListener(e,t,r){const d=i.parseEventName(t),h=i.eventCallback(d.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,x.q)().onAndCancel(e,d.domEventName,h))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const d=i._normalizeKey(t.pop());let h="";if(Mi.forEach(o=>{const a=t.indexOf(o);a>-1&&(t.splice(a,1),h+=o+".")}),h+=d,0!=t.length||0===d.length)return null;const c={};return c.domEventName=r,c.fullKey=h,c}static getEventFullKey(e){let t="",r=function Zl(i){let s=i.key;if(null==s){if(s=i.keyIdentifier,null==s)return"Unidentified";s.startsWith("U+")&&(s=String.fromCharCode(parseInt(s.substring(2),16)),3===i.location&&Cr.hasOwnProperty(s)&&(s=Cr[s]))}return Xt[s]||s}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Mi.forEach(d=>{d!=r&&(0,En[d])(e)&&(t+=d+".")}),t+=r,t}static eventCallback(e,t,r){return d=>{i.getEventFullKey(d)===e&&r.runGuarded(()=>t(d))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const pt=(0,n.eFA)(n._c5,"browser",[{provide:n.Lbi,useValue:x.bD},{provide:n.g9A,useValue:function Br(){D.makeCurrent()},multi:!0},{provide:x.K0,useFactory:function ds(){return(0,n.RDi)(document),document},deps:[]}]),ei=new n.OlP(""),Ar=[{provide:n.rWj,useClass:class ae{addToWindow(s){n.dqk.getAngularTestability=(t,r=!0)=>{const d=s.findTestabilityInTree(t,r);if(null==d)throw new Error("Could not find testability for element.");return d},n.dqk.getAllAngularTestabilities=()=>s.getAllTestabilities(),n.dqk.getAllAngularRootElements=()=>s.getAllRootElements(),n.dqk.frameworkStabilizers||(n.dqk.frameworkStabilizers=[]),n.dqk.frameworkStabilizers.push(t=>{const r=n.dqk.getAllAngularTestabilities();let d=r.length,h=!1;const c=function(o){h=h||o,d--,0==d&&t(h)};r.forEach(function(o){o.whenStable(c)})})}findTestabilityInTree(s,e,t){return null==e?null:s.getTestability(e)??(t?(0,x.q)().isShadowRoot(e)?this.findTestabilityInTree(s,e.host,!0):this.findTestabilityInTree(s,e.parentElement,!0):null)}},deps:[]},{provide:n.lri,useClass:n.dDg,deps:[n.R0b,n.eoX,n.rWj]},{provide:n.dDg,useClass:n.dDg,deps:[n.R0b,n.eoX,n.rWj]}],Wt=[{provide:n.zSh,useValue:"root"},{provide:n.qLn,useFactory:function Vr(){return new n.qLn},deps:[]},{provide:se,useClass:ci,multi:!0,deps:[x.K0,n.R0b,n.Lbi]},{provide:se,useClass:aa,multi:!0,deps:[x.K0]},{provide:we,useClass:we,deps:[re,Me,n.AFp]},{provide:n.FYo,useExisting:we},{provide:ye,useExisting:Me},{provide:Me,useClass:Me,deps:[x.K0]},{provide:re,useClass:re,deps:[se,n.R0b]},{provide:x.JF,useClass:ue,deps:[]},[]];let di=(()=>{class i{constructor(e){}static withServerTransition(e){return{ngModule:i,providers:[{provide:n.AFp,useValue:e.appId},{provide:G,useExisting:n.AFp},te]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(ei,12))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[...Wt,...Ar],imports:[x.ez,n.hGG]}),i})(),oe=(()=>{class i{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new e:function Re(){return new oe((0,n.LFG)(x.K0))}(),t},providedIn:"root"}),i})();typeof window<"u"&&window;let On=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new(e||i):n.LFG(st),t},providedIn:"root"}),i})(),st=(()=>{class i extends On{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case n.q3G.NONE:return t;case n.q3G.HTML:return(0,n.qzn)(t,"HTML")?(0,n.z3N)(t):(0,n.EiD)(this._doc,String(t)).toString();case n.q3G.STYLE:return(0,n.qzn)(t,"Style")?(0,n.z3N)(t):t;case n.q3G.SCRIPT:if((0,n.qzn)(t,"Script"))return(0,n.z3N)(t);throw new Error("unsafe value used in a script context");case n.q3G.URL:return(0,n.qzn)(t,"URL")?(0,n.z3N)(t):(0,n.mCW)(String(t));case n.q3G.RESOURCE_URL:if((0,n.qzn)(t,"ResourceURL"))return(0,n.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,n.JVY)(e)}bypassSecurityTrustStyle(e){return(0,n.L6k)(e)}bypassSecurityTrustScript(e){return(0,n.eBb)(e)}bypassSecurityTrustUrl(e){return(0,n.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,n.pB0)(e)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new e:function We(i){return new st(i.get(x.K0))}(n.LFG(n.zs3)),t},providedIn:"root"}),i})();var xe=E(9646),ln=E(9751),sn=E(576);function Vt(i){return!!i&&(i instanceof ln.y||(0,sn.m)(i.lift)&&(0,sn.m)(i.subscribe))}var Ft=E(4742),Qn=E(8421),en=E(3269),nt=E(5403),Si=E(3268),ji=E(1810);function oa(...i){const s=(0,en.jO)(i),{args:e,keys:t}=(0,Ft.D)(i),r=new ln.y(d=>{const{length:h}=e;if(!h)return void d.complete();const c=new Array(h);let o=h,a=h;for(let l=0;l{u||(u=!0,a--),c[l]=p},()=>o--,void 0,()=>{(!o||!u)&&(a||d.next(t?(0,ji.n)(t,c):c),d.complete())}))}});return s?r.pipe((0,Si.Z)(s)):r}var Ui=E(7272);function Cn(i){return new ln.y(s=>{(0,Qn.Xf)(i()).subscribe(s)})}var rt=E(5698),Se=E(7579),Ei=E(6063);class Nr extends Se.x{constructor(s=1/0,e=1/0,t=Ei.l){super(),this._bufferSize=s,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,s),this._windowTime=Math.max(1,e)}next(s){const{isStopped:e,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:d,_windowTime:h}=this;e||(t.push(s),!r&&t.push(d.now()+h)),this._trimBuffer(),super.next(s)}_subscribe(s){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(s),{_infiniteTimeWindow:t,_buffer:r}=this,d=r.slice();for(let h=0;hnew Nr(t,s,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}var _t=E(4004),Tr=E(4351),_n=E(3900);class Fr{}let la=(()=>{class i extends Fr{getTranslation(e){return(0,xe.of)({})}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class ca{}let dr=(()=>{class i{handle(e){return e.key}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function Bn(i,s){if(i===s)return!0;if(null===i||null===s)return!1;if(i!=i&&s!=s)return!0;let r,d,h,e=typeof i;if(e==typeof s&&"object"==e){if(!Array.isArray(i)){if(Array.isArray(s))return!1;for(d in h=Object.create(null),i){if(!Bn(i[d],s[d]))return!1;h[d]=!0}for(d in s)if(!(d in h)&&typeof s[d]<"u")return!1;return!0}if(!Array.isArray(s))return!1;if((r=i.length)==s.length){for(d=0;d{ni(s[t])?t in i?e[t]=Di(i[t],s[t]):Object.assign(e,{[t]:s[t]}):Object.assign(e,{[t]:s[t]})}),e}class Ki{}let qr=(()=>{class i extends Ki{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!Yr(e)||!Yr(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(r,d)=>{let h=this.getValue(t,d);return Yr(h)?h:r}):e}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class ur{}let Hi=(()=>{class i extends ur{compile(e,t){return e}compileTranslations(e,t){return e}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class da{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new n.vpe,this.onLangChange=new n.vpe,this.onDefaultLangChange=new n.vpe}}const zs=new n.OlP("USE_STORE"),hs=new n.OlP("USE_DEFAULT_LANG"),ua=new n.OlP("DEFAULT_LANGUAGE"),Xi=new n.OlP("USE_EXTEND");let bn=(()=>{class i{constructor(e,t,r,d,h,c=!0,o=!1,a=!1,l){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=d,this.missingTranslationHandler=h,this.useDefaultLang=c,this.isolate=o,this.extend=a,this.pending=!1,this._onTranslationChange=new n.vpe,this._onLangChange=new n.vpe,this._onDefaultLangChange=new n.vpe,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,rt.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,xe.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,rt.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,xe.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(tn(1),(0,rt.q)(1));return this.loadingTranslations=t.pipe((0,_t.U)(r=>this.compiler.compileTranslations(r,e)),tn(1),(0,rt.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Di(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let d;if(t instanceof Array){let h={},c=!1;for(let o of t)h[o]=this.getParsedResult(e,o,r),Vt(h[o])&&(c=!0);return c?oa(t.map(a=>Vt(h[a])?h[a]:(0,xe.of)(h[a]))).pipe((0,_t.U)(a=>{let l={};return a.forEach((u,p)=>{l[t[p]]=u}),l})):h}if(e&&(d=this.parser.interpolate(this.parser.getValue(e,t),r)),typeof d>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(d=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),typeof d>"u"){let h={key:t,translateService:this};typeof r<"u"&&(h.interpolateParams=r),d=this.missingTranslationHandler.handle(h)}return typeof d<"u"?d:t}get(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Tr.b)(r=>Vt(r=this.getParsedResult(r,e,t))?r:(0,xe.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return Vt(r)?r:(0,xe.of)(r)}}getStreamOnTranslationChange(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ui.z)(Cn(()=>this.get(e,t)),this.onTranslationChange.pipe((0,_n.w)(r=>{const d=this.getParsedResult(r.translations,e,t);return"function"==typeof d.subscribe?d:(0,xe.of)(d)})))}stream(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ui.z)(Cn(()=>this.get(e,t)),this.onLangChange.pipe((0,_n.w)(r=>{const d=this.getParsedResult(r.translations,e,t);return Vt(d)?d:(0,xe.of)(d)})))}instant(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(Vt(r)){if(e instanceof Array){let d={};return e.forEach((h,c)=>{d[e[c]]=e[c]}),d}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(da),n.LFG(Fr),n.LFG(ur),n.LFG(Ki),n.LFG(ca),n.LFG(hs),n.LFG(zs),n.LFG(Xi),n.LFG(ua))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),it=(()=>{class i{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let d=h=>{this.value=void 0!==h?h:e,this.lastKey=e,this._ref.markForCheck()};if(r){let h=this.translate.getParsedResult(r,e,t);Vt(h.subscribe)?h.subscribe(d):d(h)}this.translate.get(e,t).subscribe(d)}transform(e,...t){if(!e||!e.length)return e;if(Bn(e,this.lastKey)&&Bn(t,this.lastParams))return this.value;let r;if(Yr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let d=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(d)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(d=>{this.lastKey&&d.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,d.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(d=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,d.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(bn,16),n.Y36(n.sBO,16))},i.\u0275pipe=n.Yjl({name:"translate",type:i,pure:!1}),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Gs=(()=>{class i{static forRoot(e={}){return{ngModule:i,providers:[e.loader||{provide:Fr,useClass:la},e.compiler||{provide:ur,useClass:Hi},e.parser||{provide:Ki,useClass:qr},e.missingTranslationHandler||{provide:ca,useClass:dr},da,{provide:zs,useValue:e.isolate},{provide:hs,useValue:e.useDefaultLang},{provide:Xi,useValue:e.extend},{provide:ua,useValue:e.defaultLanguage},bn]}}static forChild(e={}){return{ngModule:i,providers:[e.loader||{provide:Fr,useClass:la},e.compiler||{provide:ur,useClass:Hi},e.parser||{provide:Ki,useClass:qr},e.missingTranslationHandler||{provide:ca,useClass:dr},{provide:zs,useValue:e.isolate},{provide:hs,useValue:e.useDefaultLang},{provide:Xi,useValue:e.extend},{provide:ua,useValue:e.defaultLanguage},bn]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),fd=(()=>{class i extends bn{instant(e,t){return String(super.instant(e,t))}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var v=E(529);class Vn{encodeKey(s){return encodeURIComponent(s)}encodeValue(s){return encodeURIComponent(s)}decodeKey(s){return decodeURIComponent(s)}decodeValue(s){return decodeURIComponent(s)}}const Dn=new n.OlP("basePath");class vt{constructor(s={}){this.apiKeys=s.apiKeys,this.username=s.username,this.password=s.password,this.accessToken=s.accessToken,this.basePath=s.basePath,this.withCredentials=s.withCredentials,this.encoder=s.encoder,this.credentials=s.credentials?s.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(s){if(0===s.length)return;const e=s.find(t=>this.isJsonMime(t));return void 0===e?s[0]:e}selectHeaderAccept(s){if(0===s.length)return;const e=s.find(t=>this.isJsonMime(t));return void 0===e?s[0]:e}isJsonMime(s){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==s&&(e.test(s)||"application/json-patch+json"===s.toLowerCase())}lookupCredential(s){const e=this.credentials[s];return"function"==typeof e?e():e}}let Ql=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}convertAttributeToNonunique(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}convertAttributeToUnique(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}createAttributeDefinition(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteAttributeDefinition(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteAttributeDefinitions(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attributes[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllAttributeDefinitions(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getAttribute(e,t,r,d,h,c,o,a,l,u,p,m=!1,g="body",f=!1,y){let j=new v.LE({encoder:this.encoder});null!=e&&(j=this.addToHttpParams(j,e,"attributeName")),null!=t&&(j=this.addToHttpParams(j,t,"attributeId")),null!=r&&(j=this.addToHttpParams(j,r,"facility")),null!=d&&(j=this.addToHttpParams(j,d,"user")),null!=h&&(j=this.addToHttpParams(j,h,"vo")),null!=c&&(j=this.addToHttpParams(j,c,"resource")),null!=o&&(j=this.addToHttpParams(j,o,"member")),null!=a&&(j=this.addToHttpParams(j,a,"group")),null!=l&&(j=this.addToHttpParams(j,l,"host")),null!=u&&(j=this.addToHttpParams(j,u,"userExtSource")),null!=p&&(j=this.addToHttpParams(j,p,"key"));let Be,le=this.defaultHeaders;Be=this.configuration.lookupCredential("BasicAuth"),Be&&(le=le.set("Authorization","Basic "+Be)),Be=this.configuration.lookupCredential("BearerAuth"),Be&&(le=le.set("Authorization","Bearer "+Be));let Mt=y&&y.httpHeaderAccept;void 0===Mt&&(Mt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Mt&&(le=le.set("Accept",Mt));let xi=y&&y.context;void 0===xi&&(xi=new v.qT);let Xn="json";Mt&&(Xn=Mt.startsWith("text")?"text":this.configuration.isJsonMime(Mt)?"json":"blob");let pi=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(m){let Or=new URL(pi),ls=Or.pathname.split("/");ls[1]="non",Or.pathname=ls.join("/"),pi=Or.toString()}return this.httpClient.get(pi,{context:xi,params:j,responseType:Xn,withCredentials:this.configuration.withCredentials,headers:le,observe:g,reportProgress:f})}getAttributeDefinitionById(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeDefinitionByName(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeDefinitionsByNamespace(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeModulesDependenciesForAttributeGraphText(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"format")),null!=t&&(o=this.addToHttpParams(o,t,"attrName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getAttributeModulesDependenciesGraphText(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributePolicyCollections(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeRights(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeRules(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributesDefinitionWithRights(e,t,r,d,h,c,o,a,l=!1,u="body",p=!1,m){let g=new v.LE({encoder:this.encoder});null!=e&&(g=this.addToHttpParams(g,e,"member")),null!=t&&(g=this.addToHttpParams(g,t,"user")),null!=r&&(g=this.addToHttpParams(g,r,"vo")),null!=d&&(g=this.addToHttpParams(g,d,"group")),null!=h&&(g=this.addToHttpParams(g,h,"resource")),null!=c&&(g=this.addToHttpParams(g,c,"facility")),null!=o&&(g=this.addToHttpParams(g,o,"host")),null!=a&&(g=this.addToHttpParams(g,a,"userExtSource"));let y,f=this.defaultHeaders;y=this.configuration.lookupCredential("BasicAuth"),y&&(f=f.set("Authorization","Basic "+y)),y=this.configuration.lookupCredential("BearerAuth"),y&&(f=f.set("Authorization","Bearer "+y));let j=m&&m.httpHeaderAccept;void 0===j&&(j=this.configuration.selectHeaderAccept(["application/json"])),void 0!==j&&(f=f.set("Accept",j));let le=m&&m.context;void 0===le&&(le=new v.qT);let Be="json";j&&(Be=j.startsWith("text")?"text":this.configuration.isJsonMime(j)?"json":"blob");let Mt=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(l){let xi=new URL(Mt),Xn=xi.pathname.split("/");Xn[1]="non",xi.pathname=Xn.join("/"),Mt=xi.toString()}return this.httpClient.get(Mt,{context:le,params:g,responseType:Be,withCredentials:this.configuration.withCredentials,headers:f,observe:u,reportProgress:p})}getEntitylessAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"key")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getEntitylessAttributesByKey(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getEntitylessAttributesByName(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getEntitylessAttributesWithKeys(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attrName")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"keys[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getEntitylessKeys(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFacilityAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getFacilityAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getFacilityAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFacilityAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getFacilityResourceUserMemberAttributes(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),null!=r&&(l=this.addToHttpParams(l,r,"user")),null!=d&&(l=this.addToHttpParams(l,d,"member"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getFacilityUserAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupResourceAttributeById(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getGroupResourceAttributeByName(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getGroupResourceAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getHostAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getHostAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getHostAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getHostAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getIdpAttributeDefinitions(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getLogins(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberAndUserAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"workWithUserAttributes"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getMemberAndUserAttributesByNames(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),t&&t.forEach(y=>{a=this.addToHttpParams(a,y,"attrNames[]")}),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getMemberAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getMemberAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getMemberGroupAndUserAttributesByNames(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(j=>{l=this.addToHttpParams(l,j,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getMemberGroupAttributeById(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberGroupAttributeByName(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberGroupAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getMemberGroupAttributesByNames(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),r&&r.forEach(y=>{a=this.addToHttpParams(a,y,"attrNames[]")});let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),r&&r.forEach(j=>{l=this.addToHttpParams(l,j,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getMemberResourceAttributeById(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberResourceAttributeByName(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberResourceAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesDefinition(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesFacility(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesFacilityService(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesFacilityServices(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let o=new v.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")}),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesGroupResourceService(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"service")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"group"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getRequiredAttributesHostService(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"host"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesMember(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"workWithUserAttributes"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesMemberGroup(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,r,d,h,c=!1,o="body",a=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let u=new v.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"service")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"group")),null!=d&&(u=this.addToHttpParams(u,d,"member")),null!=h&&(u=this.addToHttpParams(u,h,"workWithUserAttributes"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new v.qT);let y="json";g&&(y=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let j=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(c){let le=new URL(j),Be=le.pathname.split("/");Be[1]="non",le.pathname=Be.join("/"),j=le.toString()}return this.httpClient.get(j,{context:f,params:u,responseType:y,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:a})}getRequiredAttributesMemberGroupService(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service")),null!=t&&(l=this.addToHttpParams(l,t,"group")),null!=r&&(l=this.addToHttpParams(l,r,"member")),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getRequiredAttributesMemberResource(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),null!=r&&(l=this.addToHttpParams(l,r,"member")),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getRequiredAttributesResource(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesResourceService(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesResourceServices(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let o=new v.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")}),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesUserFacility(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesVoService(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getResourceAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getResourceAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getResourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourceAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getResourceGroupAndGroupAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==r)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"resource")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"workWithGroupAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==d)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(j=>{l=this.addToHttpParams(l,j,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithGroupAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getResourceGroupAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getResourceGroupMemberAttributesByNames(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource")),null!=t&&(l=this.addToHttpParams(l,t,"group")),null!=r&&(l=this.addToHttpParams(l,r,"member")),d&&d.forEach(j=>{l=this.addToHttpParams(l,j,"attrNames[]")});let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getUserAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSourceAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSourceAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserFacilityAttributeById(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"facility")),null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getUserFacilityAttributeByName(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"facility")),null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getUserFacilityAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getVoAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getVoAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getVoAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeAttributesForFacilityResourceGroupUserMember(e,t,r,d,h,c,o=!1,a="body",l=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==h)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let p=new v.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"facility")),null!=t&&(p=this.addToHttpParams(p,t,"resource")),null!=r&&(p=this.addToHttpParams(p,r,"group")),null!=d&&(p=this.addToHttpParams(p,d,"user")),null!=h&&(p=this.addToHttpParams(p,h,"member")),c&&c.forEach(Be=>{p=this.addToHttpParams(p,Be,"attributes[]")});let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=u&&u.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let y=u&&u.context;void 0===y&&(y=new v.qT);let j="json";f&&(j=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let le=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(o){let Be=new URL(le),Mt=Be.pathname.split("/");Mt[1]="non",Be.pathname=Mt.join("/"),le=Be.toString()}return this.httpClient.post(le,null,{context:y,params:p,responseType:j,withCredentials:this.configuration.withCredentials,headers:m,observe:a,reportProgress:l})}removeAttributesForFacilityResourceUserMember(e,t,r,d,h,c=!1,o="body",a=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==h)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let u=new v.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"facility")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"user")),null!=d&&(u=this.addToHttpParams(u,d,"member")),h&&h.forEach(le=>{u=this.addToHttpParams(u,le,"attributes[]")});let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new v.qT);let y="json";g&&(y=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let j=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(c){let le=new URL(j),Be=le.pathname.split("/");Be[1]="non",le.pathname=Be.join("/"),j=le.toString()}return this.httpClient.post(j,null,{context:f,params:u,responseType:y,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:a})}removeEntitylessAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"key")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeFacilityAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeFacilityAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeGroupAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeGroupAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeGroupResourceAttribute(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeGroupResourceAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),r&&r.forEach(y=>{a=this.addToHttpParams(a,y,"attributes[]")});let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==d)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),r&&r.forEach(j=>{l=this.addToHttpParams(l,j,"attributes[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithGroupAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.post(y,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}removeHostAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeHostAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeMemberAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeMemberAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeMemberAttributesWorkWithUserAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),t&&t.forEach(y=>{a=this.addToHttpParams(a,y,"attributes[]")}),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeMemberGroupAttribute(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeMemberGroupAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),r&&r.forEach(y=>{a=this.addToHttpParams(a,y,"attributes[]")});let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(j=>{l=this.addToHttpParams(l,j,"attributes[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.post(y,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}removeMemberResourceAttribute(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeMemberResourceAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),r&&r.forEach(y=>{a=this.addToHttpParams(a,y,"attributes[]")});let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeResourceAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeResourceAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUesAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUserAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUserAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUserExtSourceAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUserFacilityAttribute(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"facility")),null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeUserFacilityAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"facility")),r&&r.forEach(y=>{a=this.addToHttpParams(a,y,"attributes[]")});let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeVoAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeVoAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}setAttributeActionCriticality(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==r)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"attributeDefinition")),null!=t&&(a=this.addToHttpParams(a,t,"action")),null!=r&&(a=this.addToHttpParams(a,r,"critical"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}setAttributePolicyCollections(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setAttributeRights(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setEntitylessAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityResourceGroupUserMemberAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityResourceUserMemberAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupResourceAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupResourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setHostAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setHostAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupWithUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAndUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberWithUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceGroupAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceGroupWithGroupAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserExtSourceAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserExtSourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserFacilityAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserFacilityAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setVoAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setVoAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateAttributeDefinition(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Va=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAllPolicies(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getAllRolesManagementRules(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getAuthzAdminGroups(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"role")),null!=t&&(a=this.addToHttpParams(a,t,"complementaryObjectId")),null!=r&&(a=this.addToHttpParams(a,r,"complementaryObjectName"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getAuthzRichAdmins(e,t,r,d,h,c,o=!1,a="body",l=!1,u){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==d)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let p=new v.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"role")),null!=t&&(p=this.addToHttpParams(p,t,"complementaryObjectId")),null!=r&&(p=this.addToHttpParams(p,r,"complementaryObjectName")),d&&d.forEach(Be=>{p=this.addToHttpParams(p,Be,"specificAttributes")}),null!=h&&(p=this.addToHttpParams(p,h,"allUserAttributes")),null!=c&&(p=this.addToHttpParams(p,c,"onlyDirectAdmins"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=u&&u.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let y=u&&u.context;void 0===y&&(y=new v.qT);let j="json";f&&(j=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let le=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(o){let Be=new URL(le),Mt=Be.pathname.split("/");Mt[1]="non",Be.pathname=Mt.join("/"),le=Be.toString()}return this.httpClient.get(le,{context:y,params:p,responseType:j,withCredentials:this.configuration.withCredentials,headers:m,observe:a,reportProgress:l})}getFacilitiesWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupRoleNames(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupRoles(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getLoggedUser(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getMembersWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getPerunPrincipal(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPrincipalRoleNames(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getResourcesWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getSecurityTeamsWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserRoleNames(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserRoles(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}isFacilityAdmin(e,t=!1,r="body",d=!1,h){let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isGroupAdmin(e,t=!1,r="body",d=!1,h){let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isPerunAdmin(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}isVoAdmin(e,t=!1,r="body",d=!1,h){let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}keepAlive(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}loadAuthorizationComponents(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}refreshMfa(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}setRoleForGroup(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleForUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithGroupComplementaryObject(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithGroupComplementaryObjects(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithUserComplementaryObject(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithUserComplementaryObjects(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleForGroup(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleForUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithGroupComplementaryObject(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithGroupComplementaryObjects(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithUserComplementaryObject(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithUserComplementaryObjects(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),wn=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}createAutorship(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateAuthorship was null or undefined when calling createAutorship.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createAuthorship`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createCategoryCat(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateCategory was null or undefined when calling createCategoryCat.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createCategoryNR(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateCategoryNR was null or undefined when calling createCategoryNR.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createPublication(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreatePublication was null or undefined when calling createPublication.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createPublication`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createPublicationSystem(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createThanks(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateThanks was null or undefined when calling createThanks.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createThanks`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteAuthorship(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==t)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"publicationId")),null!=t&&(o=this.addToHttpParams(o,t,"userId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}deleteCategory(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deletePublication(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deletePublicationSystem(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteThanks(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findAllAuthors(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}findAuthorsByPublicationId(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findExternalPublications(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==t)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==r)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==d)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user")),null!=t&&(l=this.addToHttpParams(l,t,"yearSince")),null!=r&&(l=this.addToHttpParams(l,r,"yearTill")),null!=d&&(l=this.addToHttpParams(l,d,"pubSysNamespace"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}findNewAuthors(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findPublicationById(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/cabinetManager/findPublicationById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findPublicationsByFilter(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let a=new v.LE({encoder:this.encoder});null!=t&&(a=this.addToHttpParams(a,t,"yearSince")),null!=r&&(a=this.addToHttpParams(a,r,"yearTill")),null!=e&&(a=this.addToHttpParams(a,e,"userId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}findPublicationsByGUIFilter(e,t,r,d,h,c,o,a,l,u=!1,p="body",m=!1,g){let f=new v.LE({encoder:this.encoder});null!=e&&(f=this.addToHttpParams(f,e,"title")),null!=t&&(f=this.addToHttpParams(f,t,"isbn")),null!=r&&(f=this.addToHttpParams(f,r,"doi")),null!=d&&(f=this.addToHttpParams(f,d,"id")),null!=h&&(f=this.addToHttpParams(f,h,"year")),null!=c&&(f=this.addToHttpParams(f,c,"category")),null!=o&&(f=this.addToHttpParams(f,o,"yearSince")),null!=a&&(f=this.addToHttpParams(f,a,"yearTill")),null!=l&&(f=this.addToHttpParams(f,l,"userId"));let j,y=this.defaultHeaders;j=this.configuration.lookupCredential("BasicAuth"),j&&(y=y.set("Authorization","Basic "+j)),j=this.configuration.lookupCredential("BearerAuth"),j&&(y=y.set("Authorization","Bearer "+j));let le=g&&g.httpHeaderAccept;void 0===le&&(le=this.configuration.selectHeaderAccept(["application/json"])),void 0!==le&&(y=y.set("Accept",le));let Be=g&&g.context;void 0===Be&&(Be=new v.qT);let Mt="json";le&&(Mt=le.startsWith("text")?"text":this.configuration.isJsonMime(le)?"json":"blob");let xi=`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`;if(u){let Xn=new URL(xi),pi=Xn.pathname.split("/");pi[1]="non",Xn.pathname=pi.join("/"),xi=Xn.toString()}return this.httpClient.get(xi,{context:Be,params:f,responseType:Mt,withCredentials:this.configuration.withCredentials,headers:y,observe:p,reportProgress:m})}findSimilarPublications(e,t,r,d=!1,h="body",c=!1,o){let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"title")),null!=t&&(a=this.addToHttpParams(a,t,"doi")),null!=r&&(a=this.addToHttpParams(a,r,"isbn"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getCategories(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/cabinetManager/getCategories`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPublicationSystems(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getRank(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRank.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/cabinetManager/getRank`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichThanksByPublicationId(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}lockPublications(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputLockPublications was null or undefined when calling lockPublications.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/lockPublications`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateCategory(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputUpdateCategory was null or undefined when calling updateCategory.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/updateCategory`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updatePublication(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputUpdatePublication was null or undefined when calling updatePublication.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/updatePublication`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updatePublicationSystem(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Bo=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}createOwner(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/ownersManager/createOwner`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteOwner(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"owner")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}deleteOwners(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter owners was null or undefined when calling deleteOwners.");let o=new v.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"owners[]")}),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwners`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getAllOwners(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/ownersManager/getOwners`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getOwnerById(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/ownersManager/getOwnerById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getOwnerByName(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"owner"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/ownersManager/getOwnerByName`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Vo=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}sentMessageToRTWithMemberQueue(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"memberId")),null!=t&&(l=this.addToHttpParams(l,t,"queue")),null!=r&&(l=this.addToHttpParams(l,r,"subject")),null!=d&&(l=this.addToHttpParams(l,d,"text"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.post(y,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}sentMessageToRTWithQueue(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"queue")),null!=t&&(a=this.addToHttpParams(a,t,"subject")),null!=r&&(a=this.addToHttpParams(a,r,"text"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}sentMessageToRTWithVo(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"subject")),null!=r&&(a=this.addToHttpParams(a,r,"text"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"voId")),null!=t&&(l=this.addToHttpParams(l,t,"queue")),null!=r&&(l=this.addToHttpParams(l,r,"subject")),null!=d&&(l=this.addToHttpParams(l,d,"text"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.post(y,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Uo=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addSpecificUserOwner(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}addUserExtSource(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}anonymizeUser(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}changeNonAuthzPasswordByToken(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}changePasswordForLogin(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}changePasswordForUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}checkPasswordResetRequestByTokenIsValid(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}checkPasswordStrength(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createAlternativePassword(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createServiceUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteAlternativePassword(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==r)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"loginNamespace")),null!=r&&(a=this.addToHttpParams(a,r,"passwordId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}deletePasswordForLogin(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}deletePasswordForUser(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}deleteUser(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}findRichUsers(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findRichUsersWithAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"searchString")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrsNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}findUsers(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}generateAccountForName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"namespace")),null!=t&&(o=this.addToHttpParams(o,t,"name"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getAllRichUsersWithAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichResourcesForUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsForFacilityWhereUserIsActive(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupsForResourceWhereUserIsActive(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupsInVoWhereUserIsAdmin(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupsWhereUserIsAdmin(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getPendingPreferredEmailChanges(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUserExtSources(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUserWithAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersByIds(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersWithAttributesByIds(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersWithoutVoWithAttributes(e,t=!1,r="body",d=!1,h){let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attrsNames[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSpecificUsersByUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSponsorsForMember(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getSponsorsForMemberByVoAndLogin(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),null!=t&&(l=this.addToHttpParams(l,t,"extSourceName")),null!=r&&(l=this.addToHttpParams(l,r,"extLogin")),d&&d.forEach(j=>{l=this.addToHttpParams(l,j,"attrNames[]")});let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getUserByExtSourceNameAndExtLogin(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extLogin")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserById(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extSourceName")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceLogin"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSourceById(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeId")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeName")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSources(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourcesByIds(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsers(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/usersManager/getUsers`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getUsersByIds(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsersBySpecificUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsersPage(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getVosWhereUserIsAdmin(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosWhereUserIsMember(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isLoginAvailable(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"loginNamespace")),null!=t&&(o=this.addToHttpParams(o,t,"login"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}loginExist(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeSpecificUserOwner(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUserExtSource(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"userExtSource")),null!=r&&(a=this.addToHttpParams(a,r,"force"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeUserExtSources(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==t)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),t&&t.forEach(y=>{a=this.addToHttpParams(a,y,"userExtSources")}),null!=r&&(a=this.addToHttpParams(a,r,"force"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}requestPreferredEmailChange(e,t,r,d,h,c,o=!1,a="body",l=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let p=new v.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"user")),null!=t&&(p=this.addToHttpParams(p,t,"email")),null!=r&&(p=this.addToHttpParams(p,r,"lang")),null!=d&&(p=this.addToHttpParams(p,d,"linkPath")),null!=h&&(p=this.addToHttpParams(p,h,"customUrl")),null!=c&&(p=this.addToHttpParams(p,c,"idpFilter"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=u&&u.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let y=u&&u.context;void 0===y&&(y=new v.qT);let j="json";f&&(j=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let le=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(o){let Be=new URL(le),Mt=Be.pathname.split("/");Mt[1]="non",Be.pathname=Mt.join("/"),le=Be.toString()}return this.httpClient.post(le,null,{context:y,params:p,responseType:j,withCredentials:this.configuration.withCredentials,headers:m,observe:a,reportProgress:l})}reservePasswordForLogin(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}reservePasswordForUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}reserveRandomPassword(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}setLogin(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==r)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"login")),null!=r&&(a=this.addToHttpParams(a,r,"namespace"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}updateUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/updateUser`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateUserExtSourceLastAccess(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}validatePasswordForLogin(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}validatePasswordForUser(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}validatePreferredEmailChangeWithToken(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"token")),null!=t&&(o=this.addToHttpParams(o,t,"u"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ui=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAppsConfig(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getGuiConfiguration(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getNewGuiAlert(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPerunRPCVersion(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPerunStatistics(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPerunStatus(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPerunSystemTimeInMillis(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ii=(()=>{class i{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:i,providers:[{provide:vt,useFactory:e}]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(i,12),n.LFG(v.eN,8))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();var tt=(()=>{return(i=tt||(tt={})).PERUNADMIN="PERUNADMIN",i.PERUNOBSERVER="PERUNOBSERVER",i.VOADMIN="VOADMIN",i.GROUPADMIN="GROUPADMIN",i.GROUPOBSERVER="GROUPOBSERVER",i.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",i.SELF="SELF",i.FACILITYADMIN="FACILITYADMIN",i.FACILITIYOBSERVER="FACILITYOBSERVER",i.RESOURCEADMIN="RESOURCEADMIN",i.RESOURCESELFSERVICE="RESOURCESELFSERVICE",i.REGISTRAR="REGISTRAR",i.ENGINE="ENGINE",i.RPC="RPC",i.NOTIFICATIONS="NOTIFICATIONS",i.SERVICEUSER="SERVICEUSER",i.SPONSOR="SPONSOR",i.VOOBSERVER="VOOBSERVER",i.TOPGROUPCREATOR="TOPGROUPCREATOR",i.SECURITYADMIN="SECURITYADMIN",i.CABINETADMIN="CABINETADMIN",i.UNKNOWNROLENAME="UNKNOWNROLENAME",i.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",i.UNKNOWN="UNKNOWN",i.MEMBERSHIP="MEMBERSHIP",tt;var i})();let dn=(()=>{class i{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,r)=>t.roleName>r.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(r=>{this.allRolesManagementRules=r,e()},r=>t(r))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(r=>{r.primaryObject===t&&e.push(r)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let r=e.beanName;r.startsWith("Rich")&&(r=r.substring(4)),this.assignAvailableRoles(t,r);const d=new Map;this.setRolesAuthorization(t,e,d);for(const h of d.values())if(h.readAuth||h.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const d of e){let h=[],c=[],o=[];for(const m of this.allRolesManagementRules)if(m.roleName===d.roleName){h=h.concat(m.privilegedRolesToRead),c=c.concat(m.privilegedRolesToManage);for(const g of Object.keys(m.entitiesToManage))o="User"===g?[g].concat(o):o.concat(g);break}const a=this.fetchAllRelatedObjects([t]),l=this.resolveAuthorization(h,a),u=this.resolveAuthorization(c,a);r.set(d.roleName,{readAuth:l,manageAuth:u,modes:o})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],r=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(d=>{!r.includes(d.roleName)&&this.canManage(d)&&this.ruleHasMode(d,e)&&t.push(d)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(r=>r.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const r of e){let d=!0;for(const h of Object.keys(r)){const c=r[h];if(null===c)this.principalRoles.has(h)||(d=!1);else if(t[c]){for(const o of t[c])if(!this.principalHasRole(h,c,o)){d=!1;break}}else d=!1;if(!d)break}if(d)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const r of e){let d=r.beanName;switch(r.beanName.startsWith("Rich")&&(d=r.beanName.substring(4)),t[d]?t[d].push(r.id):t[d]=[r.id],d){case"Member":t.User?t.User.push(r.userId):t.User=[r.userId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Resource":t.Facility?t.Facility.push(r.facilityId):t.Facility=[r.facilityId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let r=[];for(r.push(e);0!==r.length;){const h=r.shift();if(t.has(h))continue;const c=this.getPerunPolicy(h);if(!c)return[];t.set(h,c),r=r.concat(c.includePolicies)}const d=[];for(const h of t.values())d.push(h);return d}voCustomSort(e){for(let t=0;t{let e=null;i._refCount++;const t=(0,nt.x)(s,void 0,void 0,void 0,()=>{if(!i||i._refCount<=0||0<--i._refCount)return void(e=null);const r=i._connection,d=e;e=null,r&&(!d||r===d)&&r.unsubscribe(),s.unsubscribe()});i.subscribe(t),t.closed||(e=i.connect())})}class nc extends ln.y{constructor(s,e){super(),this.source=s,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,Pi.A)(s)&&(this.lift=s.lift)}_subscribe(s){return this.getSubject().subscribe(s)}getSubject(){const s=this._subject;return(!s||s.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:s}=this;this._subject=this._connection=null,s?.unsubscribe()}connect(){let s=this._connection;if(!s){s=this._connection=new Rt.w0;const e=this.getSubject();s.add(this.source.subscribe((0,nt.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),s.closed&&(this._connection=null,s=Rt.w0.EMPTY)}return s}refCount(){return Qu()(this)}}function Zt(...i){const s=(0,en.yG)(i);return(0,Pi.e)((e,t)=>{(s?(0,Ui.z)(i,e,s):(0,Ui.z)(i,e)).subscribe(t)})}var gi=E(5577),jn=E(590),nn=E(8505),Ri=E(262);function Ks(i,s,e,t,r){return(d,h)=>{let c=e,o=s,a=0;d.subscribe((0,nt.x)(h,l=>{const u=a++;o=c?i(o,l,u):(c=!0,l),t&&h.next(o)},r&&(()=>{c&&h.next(o),h.complete()})))}}function Mr(i,s){return(0,Pi.e)(Ks(i,s,arguments.length>=2,!0))}function hn(i){return i<=0?()=>Pn.E:(0,Pi.e)((s,e)=>{let t=[];s.subscribe((0,nt.x)(e,r=>{t.push(r),i{for(const r of t)e.next(r);e.complete()},void 0,()=>{t=null}))})}var Ku=E(8068),bd=E(6590),wd=E(4671);function ic(i,s){const e=arguments.length>=2;return t=>t.pipe(i?(0,Ce.h)((r,d)=>i(r,d,t)):wd.y,hn(1),e?(0,bd.d)(s):(0,Ku.T)(()=>new xr.K))}function rc(i,s=!1){return(0,Pi.e)((e,t)=>{let r=0;e.subscribe((0,nt.x)(t,d=>{const h=i(d,r++);(h||s)&&t.next(d),!h&&t.complete()}))})}var ac=E(9718);function Sr(i){return(0,Pi.e)((s,e)=>{try{s.subscribe(e)}finally{e.add(i)}})}var sc=E(8189);const It="primary";class yd{constructor(s){this.params=s||{}}has(s){return Object.prototype.hasOwnProperty.call(this.params,s)}get(s){if(this.has(s)){const e=this.params[s];return Array.isArray(e)?e[0]:e}return null}getAll(s){if(this.has(s)){const e=this.params[s];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function zr(i){return new yd(i)}function Fo(i,s,e){const t=e.path.split("/");if(t.length>i.length||"full"===e.pathMatch&&(s.hasChildren()||t.lengtht[d]===r)}return i===s}function Xu(i){return Array.prototype.concat.apply([],i)}function lc(i){return i.length>0?i[i.length-1]:null}function mn(i,s){for(const e in i)i.hasOwnProperty(e)&&s(i[e],e)}function Qt(i){return(0,n.CqO)(i)?i:(0,n.QGY)(i)?(0,lt.D)(Promise.resolve(i)):(0,xe.of)(i)}const eh={exact:function qo(i,s,e){if(!ms(i.segments,s.segments)||!Wo(i.segments,s.segments,e)||i.numberOfChildren!==s.numberOfChildren)return!1;for(const t in s.children)if(!i.children[t]||!qo(i.children[t],s.children[t],e))return!1;return!0},subset:zo},th={exact:function uf(i,s){return Er(i,s)},subset:function dc(i,s){return Object.keys(s).length<=Object.keys(i).length&&Object.keys(s).every(e=>Yo(i[e],s[e]))},ignored:()=>!0};function nh(i,s,e){return eh[e.paths](i.root,s.root,e.matrixParams)&&th[e.queryParams](i.queryParams,s.queryParams)&&!("exact"===e.fragment&&i.fragment!==s.fragment)}function zo(i,s,e){return Go(i,s,s.segments,e)}function Go(i,s,e,t){if(i.segments.length>e.length){const r=i.segments.slice(0,e.length);return!(!ms(r,e)||s.hasChildren()||!Wo(r,e,t))}if(i.segments.length===e.length){if(!ms(i.segments,e)||!Wo(i.segments,e,t))return!1;for(const r in s.children)if(!i.children[r]||!zo(i.children[r],s.children[r],t))return!1;return!0}{const r=e.slice(0,i.segments.length),d=e.slice(i.segments.length);return!!(ms(i.segments,r)&&Wo(i.segments,r,t)&&i.children[It])&&Go(i.children[It],s,d,t)}}function Wo(i,s,e){return s.every((t,r)=>th[e](i[r].parameters,t.parameters))}class fs{constructor(s,e,t){this.root=s,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=zr(this.queryParams)),this._queryParamMap}toString(){return hf.serialize(this)}}class dt{constructor(s,e){this.segments=s,this.children=e,this.parent=null,mn(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return uc(this)}}class ki{constructor(s,e){this.path=s,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=zr(this.parameters)),this._parameterMap}toString(){return gs(this)}}function ms(i,s){return i.length===s.length&&i.every((e,t)=>e.path===s[t].path)}let $o=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(){return new Cd},providedIn:"root"}),i})();class Cd{parse(s){const e=new Gr(s);return new fs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(s){const e=`/${hc(s.root,!0)}`,t=function to(i){const s=Object.keys(i).map(e=>{const t=i[e];return Array.isArray(t)?t.map(r=>`${Zo(e)}=${Zo(r)}`).join("&"):`${Zo(e)}=${Zo(t)}`}).filter(e=>!!e);return s.length?`?${s.join("&")}`:""}(s.queryParams);return`${e}${t}${"string"==typeof s.fragment?`#${function rh(i){return encodeURI(i)}(s.fragment)}`:""}`}}const hf=new Cd;function uc(i){return i.segments.map(s=>gs(s)).join("/")}function hc(i,s){if(!i.hasChildren())return uc(i);if(s){const e=i.children[It]?hc(i.children[It],!1):"",t=[];return mn(i.children,(r,d)=>{d!==It&&t.push(`${d}:${hc(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Xs(i,s){let e=[];return mn(i.children,(t,r)=>{r===It&&(e=e.concat(s(t,r)))}),mn(i.children,(t,r)=>{r!==It&&(e=e.concat(s(t,r)))}),e}(i,(t,r)=>r===It?[hc(i.children[It],!1)]:[`${r}:${hc(t,!1)}`]);return 1===Object.keys(i.children).length&&null!=i.children[It]?`${uc(i)}/${e[0]}`:`${uc(i)}/(${e.join("//")})`}}function Jo(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zo(i){return Jo(i).replace(/%3B/gi,";")}function eo(i){return Jo(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qo(i){return decodeURIComponent(i)}function Ad(i){return Qo(i.replace(/\+/g,"%20"))}function gs(i){return`${eo(i.path)}${function pf(i){return Object.keys(i).map(s=>`;${eo(s)}=${eo(i[s])}`).join("")}(i.parameters)}`}const vd=/^[^\/()?;=#]+/;function _s(i){const s=i.match(vd);return s?s[0]:""}const C_=/^[^=?&#]+/,Ko=/^[^&#]+/;class Gr{constructor(s){this.url=s,this.remaining=s}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dt([],{}):new dt([],this.parseChildren())}parseQueryParams(){const s={};if(this.consumeOptional("?"))do{this.parseQueryParam(s)}while(this.consumeOptional("&"));return s}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const s=[];for(this.peekStartsWith("(")||s.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),s.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(s.length>0||Object.keys(e).length>0)&&(t[It]=new dt(s,e)),t}parseSegment(){const s=_s(this.remaining);if(""===s&&this.peekStartsWith(";"))throw new n.vHH(4009,!1);return this.capture(s),new ki(Qo(s),this.parseMatrixParams())}parseMatrixParams(){const s={};for(;this.consumeOptional(";");)this.parseParam(s);return s}parseParam(s){const e=_s(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=_s(this.remaining);r&&(t=r,this.capture(t))}s[Qo(e)]=Qo(t)}parseQueryParam(s){const e=function ah(i){const s=i.match(C_);return s?s[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const h=function ff(i){const s=i.match(Ko);return s?s[0]:""}(this.remaining);h&&(t=h,this.capture(t))}const r=Ad(e),d=Ad(t);if(s.hasOwnProperty(r)){let h=s[r];Array.isArray(h)||(h=[h],s[r]=h),h.push(d)}else s[r]=d}parseParens(s){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=_s(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new n.vHH(4010,!1);let d;t.indexOf(":")>-1?(d=t.slice(0,t.indexOf(":")),this.capture(d),this.capture(":")):s&&(d=It);const h=this.parseChildren();e[d]=1===Object.keys(h).length?h[It]:new dt([],h),this.consumeOptional("//")}return e}peekStartsWith(s){return this.remaining.startsWith(s)}consumeOptional(s){return!!this.peekStartsWith(s)&&(this.remaining=this.remaining.substring(s.length),!0)}capture(s){if(!this.consumeOptional(s))throw new n.vHH(4011,!1)}}function Td(i){return i.segments.length>0?new dt([],{[It]:i}):i}function ja(i){const s={};for(const t of Object.keys(i.children)){const d=ja(i.children[t]);(d.segments.length>0||d.hasChildren())&&(s[t]=d)}return function xd(i){if(1===i.numberOfChildren&&i.children[It]){const s=i.children[It];return new dt(i.segments.concat(s.segments),s.children)}return i}(new dt(i.segments,s))}function fa(i){return i instanceof fs}function Ed(i,s,e,t,r){if(0===e.length)return ga(s.root,s.root,s.root,t,r);const d=function Dd(i){if("string"==typeof i[0]&&1===i.length&&"/"===i[0])return new Hr(!0,0,i);let s=0,e=!1;const t=i.reduce((r,d,h)=>{if("object"==typeof d&&null!=d){if(d.outlets){const c={};return mn(d.outlets,(o,a)=>{c[a]="string"==typeof o?o.split("/"):o}),[...r,{outlets:c}]}if(d.segmentPath)return[...r,d.segmentPath]}return"string"!=typeof d?[...r,d]:0===h?(d.split("/").forEach((c,o)=>{0==o&&"."===c||(0==o&&""===c?e=!0:".."===c?s++:""!=c&&r.push(c))}),r):[...r,d]},[]);return new Hr(e,s,t)}(e);return d.toRoot()?ga(s.root,s.root,new dt([],{}),t,r):function h(o){const a=function ro(i,s,e,t){if(i.isAbsolute)return new Ua(s.root,!0,0);if(-1===t)return new Ua(e,e===s.root,0);return function lh(i,s,e){let t=i,r=s,d=e;for(;d>r;){if(d-=r,t=t.parent,!t)throw new n.vHH(4005,!1);r=t.segments.length}return new Ua(t,!1,r-d)}(e,t+(ma(i.commands[0])?0:1),i.numberOfDoubleDots)}(d,s,i.snapshot?._urlSegment,o),l=a.processChildren?el(a.segmentGroup,a.index,d.commands):Xo(a.segmentGroup,a.index,d.commands);return ga(s.root,a.segmentGroup,l,t,r)}(i.snapshot?._lastPathIndex)}function ma(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function Dr(i){return"object"==typeof i&&null!=i&&i.outlets}function ga(i,s,e,t,r){let h,d={};t&&mn(t,(o,a)=>{d[a]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),h=i===s?e:io(i,s,e);const c=Td(ja(h));return new fs(c,d,r)}function io(i,s,e){const t={};return mn(i.children,(r,d)=>{t[d]=r===s?e:io(r,s,e)}),new dt(i.segments,t)}class Hr{constructor(s,e,t){if(this.isAbsolute=s,this.numberOfDoubleDots=e,this.commands=t,s&&t.length>0&&ma(t[0]))throw new n.vHH(4003,!1);const r=t.find(Dr);if(r&&r!==lc(t))throw new n.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ua{constructor(s,e,t){this.segmentGroup=s,this.processChildren=e,this.index=t}}function Xo(i,s,e){if(i||(i=new dt([],{})),0===i.segments.length&&i.hasChildren())return el(i,s,e);const t=function dh(i,s,e){let t=0,r=s;const d={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return d;const h=i.segments[r],c=e[t];if(Dr(c))break;const o=`${c}`,a=t0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!ws(o,a,h))return d;t+=2}else{if(!ws(o,{},h))return d;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(i,s,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof d&&(d=[d]),null!==d&&(r[h]=Xo(i.children[h],s,d))}),mn(i.children,(d,h)=>{void 0===t[h]&&(r[h]=d)}),new dt(i.segments,r)}}function tl(i,s,e){const t=i.segments.slice(0,s);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(s[t]=tl(new dt([],{}),0,e))}),s}function bs(i){const s={};return mn(i,(e,t)=>s[t]=`${e}`),s}function ws(i,s,e){return i==e.path&&Er(s,e.parameters)}class Wr{constructor(s,e){this.id=s,this.url=e}}class nl extends Wr{constructor(s,e,t="imperative",r=null){super(s,e),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ni extends Wr{constructor(s,e,t){super(s,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Hd extends Wr{constructor(s,e,t,r){super(s,e),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class uh extends Wr{constructor(s,e,t,r){super(s,e),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class pn extends Wr{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class A_ extends Wr{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class v_ extends Wr{constructor(s,e,t,r,d){super(s,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=d,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class T_ extends Wr{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class x_ extends Wr{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class M_{constructor(s){this.route=s,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class hh{constructor(s){this.route=s,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class S_{constructor(s){this.snapshot=s,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class il{constructor(s){this.snapshot=s,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class E_{constructor(s){this.snapshot=s,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ph{constructor(s){this.snapshot=s,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rn{constructor(s,e,t){this.routerEvent=s,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class so{constructor(s){this._root=s}get root(){return this._root.value}parent(s){const e=this.pathFromRoot(s);return e.length>1?e[e.length-2]:null}children(s){const e=fh(s,this._root);return e?e.children.map(t=>t.value):[]}firstChild(s){const e=fh(s,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(s){const e=Rd(s,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==s)}pathFromRoot(s){return Rd(s,this._root).map(e=>e.value)}}function fh(i,s){if(i===s.value)return s;for(const e of s.children){const t=fh(i,e);if(t)return t}return null}function Rd(i,s){if(i===s.value)return[s];for(const e of s.children){const t=Rd(i,e);if(t.length)return t.unshift(s),t}return[]}class zn{constructor(s,e){this.value=s,this.children=e}toString(){return`TreeNode(${this.value})`}}function Fi(i){const s={};return i&&i.children.forEach(e=>s[e.value.outlet]=e),s}class pc extends so{constructor(s,e){super(s),this.snapshot=e,sl(this,s)}toString(){return this.snapshot.toString()}}function rl(i,s){const e=function al(i,s){const h=new kd([],{},{},"",{},It,s,null,i.root,-1,{});return new Na("",new zn(h,[]))}(i,s),t=new Hn([new ki("",{})]),r=new Hn({}),d=new Hn({}),h=new Hn({}),c=new Hn(""),o=new Li(t,r,h,c,d,It,s,e.root);return o.snapshot=e.root,new pc(new zn(o,[]),e)}class Li{constructor(s,e,t,r,d,h,c,o){this.url=s,this.params=e,this.queryParams=t,this.fragment=r,this.data=d,this.outlet=h,this.component=c,this._futureSnapshot=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,_t.U)(s=>zr(s)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,_t.U)(s=>zr(s)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function mh(i,s="emptyOnly"){const e=i.pathFromRoot;let t=0;if("always"!==s)for(t=e.length-1;t>=1;){const r=e[t],d=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(d.component)break;t--}}return function mf(i){return i.reduce((s,e)=>({params:{...s.params,...e.params},data:{...s.data,...e.data},resolve:{...e.data,...s.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class kd{constructor(s,e,t,r,d,h,c,o,a,l,u,p){this.url=s,this.params=e,this.queryParams=t,this.fragment=r,this.data=d,this.outlet=h,this.component=c,this.routeConfig=o,this._urlSegment=a,this._lastPathIndex=l,this._correctedLastPathIndex=p??l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=zr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=zr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Na extends so{constructor(s,e){super(e),this.url=s,sl(this,e)}toString(){return Yi(this._root)}}function sl(i,s){s.value._routerState=i,s.children.forEach(e=>sl(i,e))}function Yi(i){const s=i.children.length>0?` { ${i.children.map(Yi).join(", ")} } `:"";return`${i.value}${s}`}function ol(i){if(i.snapshot){const s=i.snapshot,e=i._futureSnapshot;i.snapshot=e,Er(s.queryParams,e.queryParams)||i.queryParams.next(e.queryParams),s.fragment!==e.fragment&&i.fragment.next(e.fragment),Er(s.params,e.params)||i.params.next(e.params),function oc(i,s){if(i.length!==s.length)return!1;for(let e=0;eEr(e.parameters,s[t].parameters))}(i.url,s.url);return e&&!(!i.parent!=!s.parent)&&(!i.parent||Fa(i.parent,s.parent))}function oo(i,s,e){if(e&&i.shouldReuseRoute(s.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=s.value;const r=function gf(i,s,e){return s.children.map(t=>{for(const r of e.children)if(i.shouldReuseRoute(t.value,r.value.snapshot))return oo(i,t,r);return oo(i,t)})}(i,s,e);return new zn(t,r)}{if(i.shouldAttach(s.value)){const d=i.retrieve(s.value);if(null!==d){const h=d.route;return h.value._futureSnapshot=s.value,h.children=s.children.map(c=>oo(i,c)),h}}const t=function gh(i){return new Li(new Hn(i.url),new Hn(i.params),new Hn(i.queryParams),new Hn(i.fragment),new Hn(i.data),i.outlet,i.component,i)}(s.value),r=s.children.map(d=>oo(i,d));return new zn(t,r)}}const Ut="ngNavigationCancelingError";function ll(i,s){const{redirectTo:e,navigationBehaviorOptions:t}=fa(s)?{redirectTo:s,navigationBehaviorOptions:void 0}:s,r=Ld(!1,0,s);return r.url=e,r.navigationBehaviorOptions=t,r}function Ld(i,s,e){const t=new Error("NavigationCancelingError: "+(i||""));return t[Ut]=!0,t.cancellationCode=s,e&&(t.url=e),t}function fc(i){return mc(i)&&fa(i.url)}function mc(i){return i&&i[Ut]}class gc{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new _c,this.attachRef=null}}let _c=(()=>{class i{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new gc,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Ya=!1;let lo=(()=>{class i{constructor(e,t,r,d,h){this.parentContexts=e,this.location=t,this.changeDetector=d,this.environmentInjector=h,this.activated=null,this._activatedRoute=null,this.activateEvents=new n.vpe,this.deactivateEvents=new n.vpe,this.attachEvents=new n.vpe,this.detachEvents=new n.vpe,this.name=r||It,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new n.vHH(4012,Ya);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new n.vHH(4012,Ya);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new n.vHH(4012,Ya);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new n.vHH(4013,Ya);this._activatedRoute=e;const r=this.location,h=e._futureSnapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,o=new hr(e,c,r.injector);if(t&&function _f(i){return!!i.resolveComponentFactory}(t)){const a=t.resolveComponentFactory(h);this.activated=r.createComponent(a,r.length,o)}else this.activated=r.createComponent(h,{index:r.length,injector:o,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(_c),n.Y36(n.s_b),n.$8M("name"),n.Y36(n.sBO),n.Y36(n.lqb))},i.\u0275dir=n.lG2({type:i,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),i})();class hr{constructor(s,e,t){this.route=s,this.childContexts=e,this.parent=t}get(s,e){return s===Li?this.route:s===_c?this.childContexts:this.parent.get(s,e)}}let Id=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&n._UZ(0,"router-outlet")},dependencies:[lo],encapsulation:2}),i})();function _h(i,s){return i.providers&&!i._injector&&(i._injector=(0,n.MMx)(i.providers,s,`Route: ${i.path}`)),i._injector??s}function ys(i){const s=i.children&&i.children.map(ys),e=s?{...i,children:s}:{...i};return!e.component&&!e.loadComponent&&(s||e.loadChildren)&&e.outlet&&e.outlet!==It&&(e.component=Id),e}function pr(i){return i.outlet||It}function yh(i,s){const e=i.filter(t=>pr(t)===s);return e.push(...i.filter(t=>pr(t)!==s)),e}function Ch(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let s=i.parent;s;s=s.parent){const e=s.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class ul{constructor(s,e,t,r){this.routeReuseStrategy=s,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(s){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,s),ol(this.futureState.root),this.activateChildRoutes(e,t,s)}deactivateChildRoutes(s,e,t){const r=Fi(e);s.children.forEach(d=>{const h=d.value.outlet;this.deactivateRoutes(d,r[h],t),delete r[h]}),mn(r,(d,h)=>{this.deactivateRouteAndItsChildren(d,t)})}deactivateRoutes(s,e,t){const r=s.value,d=e?e.value:null;if(r===d)if(r.component){const h=t.getContext(r.outlet);h&&this.deactivateChildRoutes(s,e,h.children)}else this.deactivateChildRoutes(s,e,t);else d&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(s,e){s.value.component&&this.routeReuseStrategy.shouldDetach(s.value.snapshot)?this.detachAndStoreRouteSubtree(s,e):this.deactivateRouteAndOutlet(s,e)}detachAndStoreRouteSubtree(s,e){const t=e.getContext(s.value.outlet),r=t&&s.value.component?t.children:e,d=Fi(s);for(const h of Object.keys(d))this.deactivateRouteAndItsChildren(d[h],r);if(t&&t.outlet){const h=t.outlet.detach(),c=t.children.onOutletDeactivated();this.routeReuseStrategy.store(s.value.snapshot,{componentRef:h,route:s,contexts:c})}}deactivateRouteAndOutlet(s,e){const t=e.getContext(s.value.outlet),r=t&&s.value.component?t.children:e,d=Fi(s);for(const h of Object.keys(d))this.deactivateRouteAndItsChildren(d[h],r);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(s,e,t){const r=Fi(e);s.children.forEach(d=>{this.activateRoutes(d,r[d.value.outlet],t),this.forwardEvent(new ph(d.value.snapshot))}),s.children.length&&this.forwardEvent(new il(s.value.snapshot))}activateRoutes(s,e,t){const r=s.value,d=e?e.value:null;if(ol(r),r===d)if(r.component){const h=t.getOrCreateContext(r.outlet);this.activateChildRoutes(s,e,h.children)}else this.activateChildRoutes(s,e,t);else if(r.component){const h=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const c=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),h.children.onOutletReAttached(c.contexts),h.attachRef=c.componentRef,h.route=c.route.value,h.outlet&&h.outlet.attach(c.componentRef,c.route.value),ol(c.route.value),this.activateChildRoutes(s,null,h.children)}else{const c=Ch(r.snapshot),o=c?.get(n._Vd)??null;h.attachRef=null,h.route=r,h.resolver=o,h.injector=c,h.outlet&&h.outlet.activateWith(r,h.injector),this.activateChildRoutes(s,null,h.children)}}else this.activateChildRoutes(s,null,t)}}class Bd{constructor(s){this.path=s,this.route=this.path[this.path.length-1]}}class qa{constructor(s,e){this.component=s,this.route=e}}function yf(i,s,e){const t=i._root;return qi(t,s?s._root:null,e,[t.value])}function za(i,s,e){return(Ch(s)??e).get(i)}function qi(i,s,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const d=Fi(s);return i.children.forEach(h=>{(function vh(i,s,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const d=i.value,h=s?s.value:null,c=e?e.getContext(i.value.outlet):null;if(h&&d.routeConfig===h.routeConfig){const o=function Cf(i,s,e){if("function"==typeof e)return e(i,s);switch(e){case"pathParamsChange":return!ms(i.url,s.url);case"pathParamsOrQueryParamsChange":return!ms(i.url,s.url)||!Er(i.queryParams,s.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fa(i,s)||!Er(i.queryParams,s.queryParams);default:return!Fa(i,s)}}(h,d,d.routeConfig.runGuardsAndResolvers);o?r.canActivateChecks.push(new Bd(t)):(d.data=h.data,d._resolvedData=h._resolvedData),qi(i,s,d.component?c?c.children:null:e,t,r),o&&c&&c.outlet&&c.outlet.isActivated&&r.canDeactivateChecks.push(new qa(c.outlet.component,h))}else h&&hl(s,c,r),r.canActivateChecks.push(new Bd(t)),qi(i,null,d.component?c?c.children:null:e,t,r)})(h,d[h.value.outlet],e,t.concat([h.value]),r),delete d[h.value.outlet]}),mn(d,(h,c)=>hl(h,e.getContext(c),r)),r}function hl(i,s,e){const t=Fi(i),r=i.value;mn(t,(d,h)=>{hl(d,r.component?s?s.children.getContext(h):null:s,e)}),e.canDeactivateChecks.push(new qa(r.component&&s&&s.outlet&&s.outlet.isActivated?s.outlet.component:null,r))}function $r(i){return"function"==typeof i}function Vd(i){return i instanceof xr.K||"EmptyError"===i?.name}const Cs=Symbol("INITIAL_VALUE");function As(){return(0,_n.w)(i=>(0,un.a)(i.map(s=>s.pipe((0,rt.q)(1),Zt(Cs)))).pipe((0,_t.U)(s=>{for(const e of s)if(!0!==e){if(e===Cs)return Cs;if(!1===e||e instanceof fs)return e}return!0}),(0,Ce.h)(s=>s!==Cs),(0,rt.q)(1)))}function ce(i){return(0,ps.z)((0,nn.b)(s=>{if(fa(s))throw ll(0,s)}),(0,_t.U)(s=>!0===s))}const ct={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function kt(i,s,e,t,r){const d=rn(i,s,e);return d.matched?function Ae(i,s,e,t){const r=s.canMatch;if(!r||0===r.length)return(0,xe.of)(!0);const d=r.map(h=>{const c=i.get(h),o=function fl(i){return i&&$r(i.canMatch)}(c)?c.canMatch(s,e):c(s,e);return Qt(o)});return(0,xe.of)(d).pipe(As(),ce())}(t=_h(s,t),s,e).pipe((0,_t.U)(h=>!0===h?d:{...ct})):(0,xe.of)(d)}function rn(i,s,e){if(""===s.path)return"full"===s.pathMatch&&(i.hasChildren()||e.length>0)?{...ct}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(s.matcher||Fo)(e,i,s);if(!r)return{...ct};const d={};mn(r.posParams,(c,o)=>{d[o]=c.path});const h=r.consumed.length>0?{...d,...r.consumed[r.consumed.length-1].parameters}:d;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:h,positionalParamSegments:r.posParams??{}}}function Gn(i,s,e,t,r="corrected"){if(e.length>0&&function P_(i,s,e){return e.some(t=>Ga(i,s,t)&&pr(t)!==It)}(i,e,t)){const h=new dt(s,function ba(i,s,e,t){const r={};r[It]=t,t._sourceSegment=i,t._segmentIndexShift=s.length;for(const d of e)if(""===d.path&&pr(d)!==It){const h=new dt([],{});h._sourceSegment=i,h._segmentIndexShift=s.length,r[pr(d)]=h}return r}(i,s,t,new dt(e,i.children)));return h._sourceSegment=i,h._segmentIndexShift=s.length,{segmentGroup:h,slicedSegments:[]}}if(0===e.length&&function R_(i,s,e){return e.some(t=>Ga(i,s,t))}(i,e,t)){const h=new dt(i.segments,function Rr(i,s,e,t,r,d){const h={};for(const c of t)if(Ga(i,e,c)&&!r[pr(c)]){const o=new dt([],{});o._sourceSegment=i,o._segmentIndexShift="legacy"===d?i.segments.length:s.length,h[pr(c)]=o}return{...r,...h}}(i,s,e,t,i.children,r));return h._sourceSegment=i,h._segmentIndexShift=s.length,{segmentGroup:h,slicedSegments:e}}const d=new dt(i.segments,i.children);return d._sourceSegment=i,d._segmentIndexShift=s.length,{segmentGroup:d,slicedSegments:e}}function Ga(i,s,e){return(!(i.hasChildren()||s.length>0)||"full"!==e.pathMatch)&&""===e.path}function k_(i,s,e,t){return!!(pr(i)===t||t!==It&&Ga(s,e,i))&&("**"===i.path||rn(s,i,e).matched)}function L_(i,s,e){return 0===s.length&&!i.children[e]}const xh=!1;class Mh{constructor(s){this.segmentGroup=s||null}}class I_{constructor(s){this.urlTree=s}}function kr(i){return(0,mi._)(new Mh(i))}function ml(i){return(0,mi._)(new I_(i))}class nA{constructor(s,e,t,r,d){this.injector=s,this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=d,this.allowRedirects=!0}apply(){const s=Gn(this.urlTree.root,[],[],this.config).segmentGroup,e=new dt(s.segments,s.children);return this.expandSegmentGroup(this.injector,this.config,e,It).pipe((0,_t.U)(d=>this.createUrlTree(ja(d),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Ri.K)(d=>{if(d instanceof I_)return this.allowRedirects=!1,this.match(d.urlTree);throw d instanceof Mh?this.noMatchError(d):d}))}match(s){return this.expandSegmentGroup(this.injector,this.config,s.root,It).pipe((0,_t.U)(r=>this.createUrlTree(ja(r),s.queryParams,s.fragment))).pipe((0,Ri.K)(r=>{throw r instanceof Mh?this.noMatchError(r):r}))}noMatchError(s){return new n.vHH(4002,xh)}createUrlTree(s,e,t){const r=Td(s);return new fs(r,e,t)}expandSegmentGroup(s,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(s,e,t).pipe((0,_t.U)(d=>new dt([],d))):this.expandSegment(s,t,e,t.segments,r,!0)}expandChildren(s,e,t){const r=[];for(const d of Object.keys(t.children))"primary"===d?r.unshift(d):r.push(d);return(0,lt.D)(r).pipe((0,Tr.b)(d=>{const h=t.children[d],c=yh(e,d);return this.expandSegmentGroup(s,c,h,d).pipe((0,_t.U)(o=>({segment:o,outlet:d})))}),Mr((d,h)=>(d[h.outlet]=h.segment,d),{}),ic())}expandSegment(s,e,t,r,d,h){return(0,lt.D)(t).pipe((0,Tr.b)(c=>this.expandSegmentAgainstRoute(s,e,t,c,r,d,h).pipe((0,Ri.K)(a=>{if(a instanceof Mh)return(0,xe.of)(null);throw a}))),(0,jn.P)(c=>!!c),(0,Ri.K)((c,o)=>{if(Vd(c))return L_(e,r,d)?(0,xe.of)(new dt([],{})):kr(e);throw c}))}expandSegmentAgainstRoute(s,e,t,r,d,h,c){return k_(r,e,d,h)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(s,e,r,d,h):c&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(s,e,t,r,d,h):kr(e):kr(e)}expandSegmentAgainstRouteUsingRedirect(s,e,t,r,d,h){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(s,t,r,h):this.expandRegularSegmentAgainstRouteUsingRedirect(s,e,t,r,d,h)}expandWildCardWithParamsAgainstRouteUsingRedirect(s,e,t,r){const d=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?ml(d):this.lineralizeSegments(t,d).pipe((0,gi.z)(h=>{const c=new dt(h,{});return this.expandSegment(s,c,e,h,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(s,e,t,r,d,h){const{matched:c,consumedSegments:o,remainingSegments:a,positionalParamSegments:l}=rn(e,r,d);if(!c)return kr(e);const u=this.applyRedirectCommands(o,r.redirectTo,l);return r.redirectTo.startsWith("/")?ml(u):this.lineralizeSegments(r,u).pipe((0,gi.z)(p=>this.expandSegment(s,e,t,p.concat(a),h,!1)))}matchSegmentAgainstRoute(s,e,t,r,d){return"**"===t.path?(s=_h(t,s),t.loadChildren?(t._loadedRoutes?(0,xe.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(s,t)).pipe((0,_t.U)(c=>(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,new dt(r,{})))):(0,xe.of)(new dt(r,{}))):kt(e,t,r,s).pipe((0,_n.w)(({matched:h,consumedSegments:c,remainingSegments:o})=>h?this.getChildConfig(s=t._injector??s,t,r).pipe((0,gi.z)(l=>{const u=l.injector??s,p=l.routes,{segmentGroup:m,slicedSegments:g}=Gn(e,c,o,p),f=new dt(m.segments,m.children);if(0===g.length&&f.hasChildren())return this.expandChildren(u,p,f).pipe((0,_t.U)(Be=>new dt(c,Be)));if(0===p.length&&0===g.length)return(0,xe.of)(new dt(c,{}));const y=pr(t)===d;return this.expandSegment(u,f,p,g,y?It:d,!0).pipe((0,_t.U)(le=>new dt(c.concat(le.segments),le.children)))})):kr(e)))}getChildConfig(s,e,t){return e.children?(0,xe.of)({routes:e.children,injector:s}):e.loadChildren?void 0!==e._loadedRoutes?(0,xe.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function Q(i,s,e,t){const r=s.canLoad;if(void 0===r||0===r.length)return(0,xe.of)(!0);const d=r.map(h=>{const c=i.get(h),o=function Af(i){return i&&$r(i.canLoad)}(c)?c.canLoad(s,e):c(s,e);return Qt(o)});return(0,xe.of)(d).pipe(As(),ce())}(s,e,t).pipe((0,gi.z)(r=>r?this.configLoader.loadChildren(s,e).pipe((0,nn.b)(d=>{e._loadedRoutes=d.routes,e._loadedInjector=d.injector})):function eA(i){return(0,mi._)(Ld(xh,3))}())):(0,xe.of)({routes:[],injector:s})}lineralizeSegments(s,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,xe.of)(t);if(r.numberOfChildren>1||!r.children[It])return(0,mi._)(new n.vHH(4e3,xh));r=r.children[It]}}applyRedirectCommands(s,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),s,t)}applyRedirectCreateUrlTree(s,e,t,r){const d=this.createSegmentGroup(s,e.root,t,r);return new fs(d,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(s,e){const t={};return mn(s,(r,d)=>{if("string"==typeof r&&r.startsWith(":")){const c=r.substring(1);t[d]=e[c]}else t[d]=r}),t}createSegmentGroup(s,e,t,r){const d=this.createSegments(s,e.segments,t,r);let h={};return mn(e.children,(c,o)=>{h[o]=this.createSegmentGroup(s,c,t,r)}),new dt(d,h)}createSegments(s,e,t,r){return e.map(d=>d.path.startsWith(":")?this.findPosParam(s,d,r):this.findOrReturn(d,t))}findPosParam(s,e,t){const r=t[e.path.substring(1)];if(!r)throw new n.vHH(4001,xh);return r}findOrReturn(s,e){let t=0;for(const r of e){if(r.path===s.path)return e.splice(t),r;t++}return s}}class O_{}class sA{constructor(s,e,t,r,d,h,c,o){this.injector=s,this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=d,this.paramsInheritanceStrategy=h,this.relativeLinkResolution=c,this.urlSerializer=o}recognize(){const s=Gn(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,s,It).pipe((0,_t.U)(e=>{if(null===e)return null;const t=new kd([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},It,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new zn(t,e),d=new Na(this.url,r);return this.inheritParamsAndData(d._root),d}))}inheritParamsAndData(s){const e=s.value,t=mh(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),s.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(s,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(s,e,t):this.processSegment(s,e,t,t.segments,r)}processChildren(s,e,t){return(0,lt.D)(Object.keys(t.children)).pipe((0,Tr.b)(r=>{const d=t.children[r],h=yh(e,r);return this.processSegmentGroup(s,h,d,r)}),Mr((r,d)=>r&&d?(r.push(...d),r):null),rc(r=>null!==r),(0,bd.d)(null),ic(),(0,_t.U)(r=>{if(null===r)return null;const d=bc(r);return function oA(i){i.sort((s,e)=>s.value.outlet===It?-1:e.value.outlet===It?1:s.value.outlet.localeCompare(e.value.outlet))}(d),d}))}processSegment(s,e,t,r,d){return(0,lt.D)(e).pipe((0,Tr.b)(h=>this.processSegmentAgainstRoute(h._injector??s,h,t,r,d)),(0,jn.P)(h=>!!h),(0,Ri.K)(h=>{if(Vd(h))return L_(t,r,d)?(0,xe.of)([]):(0,xe.of)(null);throw h}))}processSegmentAgainstRoute(s,e,t,r,d){if(e.redirectTo||!k_(e,t,r,d))return(0,xe.of)(null);let h;if("**"===e.path){const c=r.length>0?lc(r).parameters:{},o=wc(t)+r.length,a=new kd(r,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xf(e),pr(e),e.component??e._loadedComponent??null,e,wa(t),o,Mf(e),o);h=(0,xe.of)({snapshot:a,consumedSegments:[],remainingSegments:[]})}else h=kt(t,e,r,s).pipe((0,_t.U)(({matched:c,consumedSegments:o,remainingSegments:a,parameters:l})=>{if(!c)return null;const u=wc(t)+o.length;return{snapshot:new kd(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xf(e),pr(e),e.component??e._loadedComponent??null,e,wa(t),u,Mf(e),u),consumedSegments:o,remainingSegments:a}}));return h.pipe((0,_n.w)(c=>{if(null===c)return(0,xe.of)(null);const{snapshot:o,consumedSegments:a,remainingSegments:l}=c;s=e._injector??s;const u=e._loadedInjector??s,p=function YM(i){return i.children?i.children:i.loadChildren?i._loadedRoutes:[]}(e),{segmentGroup:m,slicedSegments:g}=Gn(t,a,l,p.filter(y=>void 0===y.redirectTo),this.relativeLinkResolution);if(0===g.length&&m.hasChildren())return this.processChildren(u,p,m).pipe((0,_t.U)(y=>null===y?null:[new zn(o,y)]));if(0===p.length&&0===g.length)return(0,xe.of)([new zn(o,[])]);const f=pr(e)===d;return this.processSegment(u,p,m,g,f?It:d).pipe((0,_t.U)(y=>null===y?null:[new zn(o,y)]))}))}}function lA(i){const s=i.value.routeConfig;return s&&""===s.path&&void 0===s.redirectTo}function bc(i){const s=[],e=new Set;for(const t of i){if(!lA(t)){s.push(t);continue}const r=s.find(d=>t.value.routeConfig===d.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):s.push(t)}for(const t of e){const r=bc(t.children);s.push(new zn(t.value,r))}return s.filter(t=>!e.has(t))}function wa(i){let s=i;for(;s._sourceSegment;)s=s._sourceSegment;return s}function wc(i){let s=i,e=s._segmentIndexShift??0;for(;s._sourceSegment;)s=s._sourceSegment,e+=s._segmentIndexShift??0;return e-1}function xf(i){return i.data||{}}function Mf(i){return i.resolve||{}}const V_=Symbol("RouteTitle");function cA(i){return"string"==typeof i.title||null===i.title}function Eh(i){return(0,_n.w)(s=>{const e=i(s);return e?(0,lt.D)(e).pipe((0,_t.U)(()=>s)):(0,xe.of)(s)})}let j_=(()=>{class i{buildTitle(e){let t,r=e.root;for(;void 0!==r;)t=this.getResolvedTitleForRoute(r)??t,r=r.children.find(d=>d.outlet===It);return t}getResolvedTitleForRoute(e){return e.data[V_]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(){return(0,n.f3M)(U_)},providedIn:"root"}),i})(),U_=(()=>{class i extends j_{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(oe))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class dA{}class N_ extends class uA{shouldDetach(s){return!1}store(s,e){}shouldAttach(s){return!1}retrieve(s){return null}shouldReuseRoute(s,e){return s.routeConfig===e.routeConfig}}{}const Hh=new n.OlP("",{providedIn:"root",factory:()=>({})}),Hf=new n.OlP("ROUTES");let Wn=(()=>{class i{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,xe.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Qt(e.loadComponent()).pipe((0,nn.b)(d=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=d}),Sr(()=>{this.componentLoaders.delete(e)})),r=new nc(t,()=>new Se.x).pipe(Qu());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,xe.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const d=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,_t.U)(c=>{this.onLoadEndListener&&this.onLoadEndListener(t);let o,a,l=!1;Array.isArray(c)?a=c:(o=c.create(e).injector,a=Xu(o.get(Hf,[],n.XFs.Self|n.XFs.Optional)));return{routes:a.map(ys),injector:o}}),Sr(()=>{this.childrenLoaders.delete(t)})),h=new nc(d,()=>new Se.x).pipe(Qu());return this.childrenLoaders.set(t,h),h}loadModuleFactoryOrRoutes(e){return Qt(e()).pipe((0,gi.z)(t=>t instanceof n.YKP||Array.isArray(t)?(0,xe.of)(t):(0,lt.D)(this.compiler.compileModuleAsync(t))))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.zs3),n.LFG(n.Sil))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class F_{}class hA{shouldProcessUrl(s){return!0}extract(s){return s}merge(s,e){return s}}function Y_(i){throw i}function pA(i,s,e){return s.parse("/")}const fA={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},mA={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function q_(){const i=(0,n.f3M)($o),s=(0,n.f3M)(_c),e=(0,n.f3M)(x.Ye),t=(0,n.f3M)(n.zs3),r=(0,n.f3M)(n.Sil),d=(0,n.f3M)(Hf,{optional:!0})??[],h=(0,n.f3M)(Hh,{optional:!0})??{},c=(0,n.f3M)(U_),o=(0,n.f3M)(j_,{optional:!0}),a=(0,n.f3M)(F_,{optional:!0}),l=(0,n.f3M)(dA,{optional:!0}),u=new $n(null,i,s,e,t,r,Xu(d));return a&&(u.urlHandlingStrategy=a),l&&(u.routeReuseStrategy=l),u.titleStrategy=o??c,function gA(i,s){i.errorHandler&&(s.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(s.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(s.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(s.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(s.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(s.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(s.canceledNavigationResolution=i.canceledNavigationResolution)}(h,u),u}let $n=(()=>{class i{constructor(e,t,r,d,h,c,o){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=d,this.config=o,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Se.x,this.errorHandler=Y_,this.malformedUriErrorHandler=pA,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,xe.of)(void 0),this.urlHandlingStrategy=new hA,this.routeReuseStrategy=new N_,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=h.get(Wn),this.configLoader.onLoadEndListener=p=>this.triggerEvent(new hh(p)),this.configLoader.onLoadStartListener=p=>this.triggerEvent(new M_(p)),this.ngModule=h.get(n.h0i),this.console=h.get(n.c2e);const u=h.get(n.R0b);this.isNgZoneEnabled=u instanceof n.R0b&&n.R0b.isInAngularZone(),this.resetConfig(o),this.currentUrlTree=function df(){return new fs(new dt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=rl(this.currentUrlTree,this.rootComponentType),this.transitions=new Hn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Ce.h)(r=>0!==r.id),(0,_t.U)(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,_n.w)(r=>{let d=!1,h=!1;return(0,xe.of)(r).pipe((0,nn.b)(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,_n.w)(c=>{const o=this.browserUrlTree.toString(),a=!this.navigated||c.extractedUrl.toString()!==o||o!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||a)&&this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return Cc(c.source)&&(this.browserUrlTree=c.extractedUrl),(0,xe.of)(c).pipe((0,_n.w)(u=>{const p=this.transitions.getValue();return t.next(new nl(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),p!==this.transitions.getValue()?Pn.E:Promise.resolve(u)}),function iA(i,s,e,t){return(0,_n.w)(r=>function tA(i,s,e,t,r){return new nA(i,s,e,t,r).apply()}(i,s,e,r.extractedUrl,t).pipe((0,_t.U)(d=>({...r,urlAfterRedirects:d}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,nn.b)(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},r.urlAfterRedirects=u.urlAfterRedirects}),function qM(i,s,e,t,r,d){return(0,gi.z)(h=>function aA(i,s,e,t,r,d,h="emptyOnly",c="legacy"){return new sA(i,s,e,t,r,h,c,d).recognize().pipe((0,_n.w)(o=>null===o?function rA(i){return new ln.y(s=>s.error(i))}(new O_):(0,xe.of)(o)))}(i,s,e,h.urlAfterRedirects,t.serialize(h.urlAfterRedirects),t,r,d).pipe((0,_t.U)(c=>({...h,targetSnapshot:c}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,nn.b)(u=>{if(r.targetSnapshot=u.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(m,u)}this.browserUrlTree=u.urlAfterRedirects}const p=new pn(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(p)}));if(a&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:m,source:g,restoredState:f,extras:y}=c,j=new nl(p,this.serializeUrl(m),g,f);t.next(j);const le=rl(m,this.rootComponentType).snapshot;return r={...c,targetSnapshot:le,urlAfterRedirects:m,extras:{...y,skipLocationChange:!1,replaceUrl:!1}},(0,xe.of)(r)}return this.rawUrlTree=c.rawUrl,c.resolve(null),Pn.E}),(0,nn.b)(c=>{const o=new A_(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(o)}),(0,_t.U)(c=>r={...c,guards:yf(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),function jd(i,s){return(0,gi.z)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:d,canDeactivateChecks:h}}=e;return 0===h.length&&0===d.length?(0,xe.of)({...e,guardsResult:!0}):function vs(i,s,e,t){return(0,lt.D)(i).pipe((0,gi.z)(r=>function q(i,s,e,t,r){const d=s&&s.routeConfig?s.routeConfig.canDeactivate:null;if(!d||0===d.length)return(0,xe.of)(!0);const h=d.map(c=>{const o=za(c,s,r);return Qt(function _a(i){return i&&$r(i.canDeactivate)}(o)?o.canDeactivate(i,s,e,t):o(i,s,e,t)).pipe((0,jn.P)())});return(0,xe.of)(h).pipe(As())}(r.component,r.route,e,s,t)),(0,jn.P)(r=>!0!==r,!0))}(h,t,r,i).pipe((0,gi.z)(c=>c&&function pl(i){return"boolean"==typeof i}(c)?function Ud(i,s,e,t){return(0,lt.D)(s).pipe((0,Tr.b)(r=>(0,Ui.z)(function S(i,s){return null!==i&&s&&s(new S_(i)),(0,xe.of)(!0)}(r.route.parent,t),function jt(i,s){return null!==i&&s&&s(new E_(i)),(0,xe.of)(!0)}(r.route,t),function V(i,s,e){const t=s[s.length-1],d=s.slice(0,s.length-1).reverse().map(h=>function Ah(i){const s=i.routeConfig?i.routeConfig.canActivateChild:null;return s&&0!==s.length?{node:i,guards:s}:null}(h)).filter(h=>null!==h).map(h=>Cn(()=>{const c=h.guards.map(o=>{const a=za(o,h.node,e);return Qt(function Th(i){return i&&$r(i.canActivateChild)}(a)?a.canActivateChild(t,i):a(t,i)).pipe((0,jn.P)())});return(0,xe.of)(c).pipe(As())}));return(0,xe.of)(d).pipe(As())}(i,r.path,e),function k(i,s,e){const t=s.routeConfig?s.routeConfig.canActivate:null;if(!t||0===t.length)return(0,xe.of)(!0);const r=t.map(d=>Cn(()=>{const h=za(d,s,e);return Qt(function D_(i){return i&&$r(i.canActivate)}(h)?h.canActivate(s,i):h(s,i)).pipe((0,jn.P)())}));return(0,xe.of)(r).pipe(As())}(i,r.route,e))),(0,jn.P)(r=>!0!==r,!0))}(t,d,i,s):(0,xe.of)(c)),(0,_t.U)(c=>({...e,guardsResult:c})))})}(this.ngModule.injector,c=>this.triggerEvent(c)),(0,nn.b)(c=>{if(r.guardsResult=c.guardsResult,fa(c.guardsResult))throw ll(0,c.guardsResult);const o=new v_(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.triggerEvent(o)}),(0,Ce.h)(c=>!!c.guardsResult||(this.restoreHistory(c),this.cancelNavigationTransition(c,"",3),!1)),Eh(c=>{if(c.guards.canActivateChecks.length)return(0,xe.of)(c).pipe((0,nn.b)(o=>{const a=new T_(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(a)}),(0,_n.w)(o=>{let a=!1;return(0,xe.of)(o).pipe(function zM(i,s){return(0,gi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,xe.of)(e);let d=0;return(0,lt.D)(r).pipe((0,Tr.b)(h=>function Sf(i,s,e,t){const r=i.routeConfig,d=i._resolve;return void 0!==r?.title&&!cA(r)&&(d[V_]=r.title),function Ef(i,s,e,t){const r=function Df(i){return[...Object.keys(i),...Object.getOwnPropertySymbols(i)]}(i);if(0===r.length)return(0,xe.of)({});const d={};return(0,lt.D)(r).pipe((0,gi.z)(h=>function GM(i,s,e,t){const r=za(i,s,t);return Qt(r.resolve?r.resolve(s,e):r(s,e))}(i[h],s,e,t).pipe((0,jn.P)(),(0,nn.b)(c=>{d[h]=c}))),hn(1),(0,ac.h)(d),(0,Ri.K)(h=>Vd(h)?Pn.E:(0,mi._)(h)))}(d,i,s,t).pipe((0,_t.U)(h=>(i._resolvedData=h,i.data=mh(i,e).resolve,r&&cA(r)&&(i.data[V_]=r.title),null)))}(h.route,t,i,s)),(0,nn.b)(()=>d++),hn(1),(0,gi.z)(h=>d===r.length?(0,xe.of)(e):Pn.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,nn.b)({next:()=>a=!0,complete:()=>{a||(this.restoreHistory(o),this.cancelNavigationTransition(o,"",2))}}))}),(0,nn.b)(o=>{const a=new x_(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(a)}))}),Eh(c=>{const o=a=>{const l=[];a.routeConfig?.loadComponent&&!a.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(a.routeConfig).pipe((0,nn.b)(u=>{a.component=u}),(0,_t.U)(()=>{})));for(const u of a.children)l.push(...o(u));return l};return(0,un.a)(o(c.targetSnapshot.root)).pipe((0,bd.d)(),(0,rt.q)(1))}),Eh(()=>this.afterPreactivation()),(0,_t.U)(c=>{const o=function Fe(i,s,e){const t=oo(i,s._root,e?e._root:void 0);return new pc(t,s)}(this.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return r={...c,targetRouterState:o}}),(0,nn.b)(c=>{this.currentUrlTree=c.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl),this.routerState=c.targetRouterState,"deferred"===this.urlUpdateStrategy&&(c.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,c),this.browserUrlTree=c.urlAfterRedirects)}),((i,s,e)=>(0,_t.U)(t=>(new ul(s,t.targetRouterState,t.currentRouterState,e).activate(i),t)))(this.rootContexts,this.routeReuseStrategy,c=>this.triggerEvent(c)),(0,nn.b)({next(){d=!0},complete(){d=!0}}),Sr(()=>{d||h||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),(0,Ri.K)(c=>{if(h=!0,mc(c)){fc(c)||(this.navigated=!0,this.restoreHistory(r,!0));const o=new Hd(r.id,this.serializeUrl(r.extractedUrl),c.message,c.cancellationCode);if(t.next(o),fc(c)){const a=this.urlHandlingStrategy.merge(c.url,this.rawUrlTree),l={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Cc(r.source)};this.scheduleNavigation(a,"imperative",null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const o=new uh(r.id,this.serializeUrl(r.extractedUrl),c,r.targetSnapshot??void 0);t.next(o);try{r.resolve(this.errorHandler(c))}catch(a){r.reject(a)}}return Pn.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const r={replaceUrl:!0},d=e.state?.navigationId?e.state:null;if(d){const c={...d};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(r.state=c)}const h=this.parseUrl(e.url);this.scheduleNavigation(h,t,d,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(ys),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:d,fragment:h,queryParamsHandling:c,preserveFragment:o}=t,a=r||this.routerState.root,l=o?this.currentUrlTree.fragment:h;let u=null;switch(c){case"merge":u={...this.currentUrlTree.queryParams,...d};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=d||null}return null!==u&&(u=this.removeEmptyProps(u)),Ed(a,this.currentUrlTree,e,u,l??null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=fa(e)?e:this.parseUrl(e),d=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(d,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function WM(i){for(let s=0;s{const d=e[r];return null!=d&&(t[r]=d),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Ni(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,d,h){if(this.disposed)return Promise.resolve(!1);let c,o,a;h?(c=h.resolve,o=h.reject,a=h.promise):a=new Promise((p,m)=>{c=p,o=m});const l=++this.navigationId;let u;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),u=r&&r.\u0275routerPageId?r.\u0275routerPageId:d.replaceUrl||d.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):u=0,this.setTransition({id:l,targetPageId:u,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:d,resolve:c,reject:o,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(p=>Promise.reject(p))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),d={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",d):this.location.go(r,"",d)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,r){const d=new Hd(e.id,this.serializeUrl(e.extractedUrl),t,r);this.triggerEvent(d),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:function(){return q_()},providedIn:"root"}),i})();function Cc(i){return"imperative"!==i}let Ts=(()=>{class i{constructor(e,t,r,d,h){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=d,this.el=h,this.commands=null,this.onChanges=new Se.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,n.D6c)(this.skipLocationChange),replaceUrl:(0,n.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,n.D6c)(this.preserveFragment)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($n),n.Y36(Li),n.$8M("tabindex"),n.Y36(n.Qsj),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.TTD]}),i})(),Nd=(()=>{class i{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new Se.x,this.subscription=e.events.subscribe(d=>{d instanceof Ni&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,d,h){if(0!==e||t||r||d||h||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const c={skipLocationChange:(0,n.D6c)(this.skipLocationChange),replaceUrl:(0,n.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,c),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,n.D6c)(this.preserveFragment)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($n),n.Y36(Li),n.Y36(x.S$))},i.\u0275dir=n.lG2({type:i,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t.onClick(d.button,d.ctrlKey,d.shiftKey,d.altKey,d.metaKey)}),2&e&&n.uIk("target",t.target)("href",t.href,n.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.TTD]}),i})();class W_{}let $_=(()=>{class i{preload(e,t){return(0,xe.of)(null)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Rh=(()=>{class i{constructor(e,t,r,d,h){this.router=e,this.injector=r,this.preloadingStrategy=d,this.loader=h}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ce.h)(e=>e instanceof Ni),(0,Tr.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const d of t){d.providers&&!d._injector&&(d._injector=(0,n.MMx)(d.providers,e,`Route: ${d.path}`));const h=d._injector??e,c=d._loadedInjector??h;d.loadChildren&&!d._loadedRoutes&&void 0===d.canLoad||d.loadComponent&&!d._loadedComponent?r.push(this.preloadConfig(h,d)):(d.children||d._loadedRoutes)&&r.push(this.processRoutes(c,d.children??d._loadedRoutes))}return(0,lt.D)(r).pipe((0,sc.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;r=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,xe.of)(null);const d=r.pipe((0,gi.z)(h=>null===h?(0,xe.of)(void 0):(t._loadedRoutes=h.routes,t._loadedInjector=h.injector,this.processRoutes(h.injector??e,h.routes))));if(t.loadComponent&&!t._loadedComponent){const h=this.loader.loadComponent(t);return(0,lt.D)([d,h]).pipe((0,sc.J)())}return d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG($n),n.LFG(n.Sil),n.LFG(n.lqb),n.LFG(W_),n.LFG(Wn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const bA=new n.OlP("");let wA=(()=>{class i{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof nl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Ni&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Rn&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Rn(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Pf=new n.OlP("ROUTER_FORROOT_GUARD"),co=new n.OlP(""),CA=[x.Ye,{provide:$o,useClass:Cd},{provide:$n,useFactory:q_},_c,{provide:Li,useFactory:function Rf(i){return i.routerState.root},deps:[$n]},Wn];function kh(){return new n.PXZ("Router",$n)}let Lh=(()=>{class i{constructor(e){}static forRoot(e,t){return{ngModule:i,providers:[CA,[],Oh(e),{provide:Pf,useFactory:J_,deps:[[$n,new n.FiY,new n.tp0]]},{provide:Hh,useValue:t||{}},t?.useHash?{provide:x.S$,useClass:x.Do}:{provide:x.S$,useClass:x.b0},{provide:bA,useFactory:()=>{const i=(0,n.f3M)($n),s=(0,n.f3M)(x.EM),e=(0,n.f3M)(Hh);return e.scrollOffset&&s.setOffset(e.scrollOffset),new wA(i,s,e)}},t?.preloadingStrategy?xA(t.preloadingStrategy):[],{provide:n.PXZ,multi:!0,useFactory:kh},t?.initialNavigation?Q_(t):[],[{provide:Z_,useFactory:AA},{provide:n.tb,multi:!0,useExisting:Z_}]]}}static forChild(e){return{ngModule:i,providers:[Oh(e)]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Pf,8))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();function J_(i){return"guarded"}function Oh(i){return[{provide:Hf,multi:!0,useValue:i}]}function AA(){const i=(0,n.f3M)(n.zs3);return s=>{const e=i.get(n.z2F);if(s!==e.components[0])return;const t=i.get($n),r=i.get(K_);1===i.get(Lf)&&t.initialNavigation(),i.get(co,null,n.XFs.Optional)?.setUpPreloading(),i.get(bA,null,n.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),r.next(),r.complete()}}const Z_=new n.OlP("");function Q_(i){return["disabled"===i.initialNavigation?[{provide:n.ip1,multi:!0,useFactory:()=>{const i=(0,n.f3M)($n);return()=>{i.setUpLocationChangeListener()}}},{provide:Lf,useValue:2}]:[],"enabledBlocking"===i.initialNavigation?[{provide:Lf,useValue:0},{provide:n.ip1,multi:!0,deps:[n.zs3],useFactory:i=>{const s=i.get(x.V_,Promise.resolve(null));let e=!1;return()=>s.then(()=>new Promise(r=>{const d=i.get($n),h=i.get(K_);(function t(r){i.get($n).events.pipe((0,Ce.h)(h=>h instanceof Ni||h instanceof Hd||h instanceof uh),(0,_t.U)(h=>h instanceof Ni||h instanceof Hd&&(0===h.code||1===h.code)&&null),(0,Ce.h)(h=>null!==h),(0,rt.q)(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),d.afterPreactivation=()=>(r(!0),e||h.closed?(0,xe.of)(void 0):h),d.initialNavigation()}))}}]:[]]}const K_=new n.OlP("",{factory:()=>new Se.x}),Lf=new n.OlP("",{providedIn:"root",factory:()=>1});function xA(i){return[Rh,{provide:co,useExisting:Rh},{provide:W_,useExisting:i}]}let Of;try{Of=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Of=!1}let vc,yn=(()=>{class i{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,x.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Of)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.Lbi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Tc=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function X_(){if(vc)return vc;if("object"!=typeof document||!document)return vc=new Set(Tc),vc;let i=document.createElement("input");return vc=new Set(Tc.filter(s=>(i.setAttribute("type",s),i.type===s))),vc}let $a,Bf,uo,Vf;function Ja(i){return function Fd(){if(null==$a&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>$a=!0}))}finally{$a=$a||!1}return $a}()?i:!!i.capture}function eb(){if(null==uo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return uo=!1,uo;if("scrollBehavior"in document.documentElement.style)uo=!0;else{const i=Element.prototype.scrollTo;uo=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return uo}function Yd(){if("object"!=typeof document||!document)return 0;if(null==Bf){const i=document.createElement("div"),s=i.style;i.dir="rtl",s.width="1px",s.overflow="auto",s.visibility="hidden",s.pointerEvents="none",s.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",i.appendChild(e),document.body.appendChild(i),Bf=0,0===i.scrollLeft&&(i.scrollLeft=1,Bf=0===i.scrollLeft?1:2),i.remove()}return Bf}function Bh(i){if(function tb(){if(null==Vf){const i=typeof document<"u"?document.head:null;Vf=!(!i||!i.createShadowRoot&&!i.attachShadow)}return Vf}()){const s=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&s instanceof ShadowRoot)return s}return null}function ho(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){const s=i.shadowRoot.activeElement;if(s===i)break;i=s}return i}function ya(i){return i.composedPath?i.composedPath()[0]:i.target}function jf(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function ri(i,...s){return s.length?s.some(e=>i[e]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var Nh=E(8372);function Fh(i){return(0,Ce.h)((s,e)=>i<=e)}function mo(i,s=wd.y){return i=i??bb,(0,Pi.e)((e,t)=>{let r,d=!0;e.subscribe((0,nt.x)(t,h=>{const c=s(h);(d||!i(r,c))&&(d=!1,r=c,t.next(h))}))})}function bb(i,s){return i===s}var iv=E(5032);function Ke(i){return(0,Pi.e)((s,e)=>{(0,Qn.Xf)(i).subscribe((0,nt.x)(e,()=>e.complete(),iv.Z)),!e.closed&&s.subscribe(e)})}function Oe(i){return null!=i&&"false"!=`${i}`}function gn(i,s=0){return Gf(i)?Number(i):s}function Gf(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function Yh(i){return Array.isArray(i)?i:[i]}function hi(i){return null==i?"":"string"==typeof i?i:`${i}px`}function ai(i){return i instanceof n.SBq?i.nativeElement:i}let Wf=(()=>{class i{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),av=(()=>{class i{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ai(e);return new ln.y(r=>{const h=this._observeElement(t).subscribe(r);return()=>{h.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Se.x,r=this._mutationObserverFactory.create(d=>t.next(d));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Wf))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),qh=(()=>{class i{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new n.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Oe(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=gn(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Nh.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(av),n.Y36(n.SBq),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),i})(),Jd=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Wf]}),i})();const $f=new Set;let _l,wb=(()=>{class i{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ov}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function sv(i){if(!$f.has(i))try{_l||(_l=document.createElement("style"),_l.setAttribute("type","text/css"),document.head.appendChild(_l)),_l.sheet&&(_l.sheet.insertRule(`@media ${i} {body{ }}`,0),$f.add(i))}catch(s){console.error(s)}}(e),this._matchMedia(e)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function ov(i){return{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{}}}let Jf=(()=>{class i{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Se.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return yb(Yh(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=yb(Yh(e)).map(h=>this._registerQuery(h).observable);let d=(0,un.a)(r);return d=(0,Ui.z)(d.pipe((0,rt.q)(1)),d.pipe(Fh(1),(0,Nh.b)(0))),d.pipe((0,_t.U)(h=>{const c={matches:!1,breakpoints:{}};return h.forEach(({matches:o,query:a})=>{c.matches=c.matches||o,c.breakpoints[a]=o}),c}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),d={observable:new ln.y(h=>{const c=o=>this._zone.run(()=>h.next(o));return t.addListener(c),()=>{t.removeListener(c)}}).pipe(Zt(t),(0,_t.U)(({matches:h})=>({query:e,matches:h})),Ke(this._destroySubject)),mql:t};return this._queries.set(e,d),d}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(wb),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function yb(i){return i.map(s=>s.split(",")).reduce((s,e)=>s.concat(e)).map(s=>s.trim())}function Zd(i,s){return(i.getAttribute(s)||"").match(/\S+/g)||[]}const go="cdk-describedby-message",zh="cdk-describedby-host";let Qd=0,Kd=(()=>{class i{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Qd++,this._document=e,this._id=(0,n.f3M)(n.AFp)+"-"+Qd++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const d=Zf(t,r);"string"!=typeof t?(dv(t,this._id),this._messageRegistry.set(d,{messageElement:t,referenceCount:0})):this._messageRegistry.has(d)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,d)||this._addMessageReference(e,d)}removeDescription(e,t,r){if(!t||!this._isElementNode(e))return;const d=Zf(t,r);if(this._isElementDescribedByMessage(e,d)&&this._removeMessageReference(e,d),"string"==typeof t){const h=this._messageRegistry.get(d);h&&0===h.referenceCount&&this._deleteMessageElement(d)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${zh}="${this._id}"]`);for(let t=0;t0!=r.indexOf(go));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function lv(i,s,e){const t=Zd(i,s);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),i.setAttribute(s,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(zh,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function LS(i,s,e){const r=Zd(i,s).filter(d=>d!=e.trim());r.length?i.setAttribute(s,r.join(" ")):i.removeAttribute(s)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(zh)}_isElementDescribedByMessage(e,t){const r=Zd(e,"aria-describedby"),d=this._messageRegistry.get(t),h=d&&d.messageElement.id;return!!h&&-1!=r.indexOf(h)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),d=e.getAttribute("aria-label");return!(!r||d&&d.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0),n.LFG(yn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function Zf(i,s){return"string"==typeof i?`${s||""}/${i}`:i}function dv(i,s){i.id||(i.id=`${go}-${s}-${Qd++}`)}class uv{constructor(s){this._items=s,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Se.x,this._typeaheadSubscription=Rt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Se.x,this.change=new Se.x,s instanceof n.n_E&&s.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(s){return this._skipPredicateFn=s,this}withWrap(s=!0){return this._wrap=s,this}withVerticalOrientation(s=!0){return this._vertical=s,this}withHorizontalOrientation(s){return this._horizontal=s,this}withAllowedModifierKeys(s){return this._allowedModifierKeys=s,this}withTypeAhead(s=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,nn.b)(e=>this._pressedLetters.push(e)),(0,Nh.b)(s),(0,Ce.h)(()=>this._pressedLetters.length>0),(0,_t.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!s[d]||this._allowedModifierKeys.indexOf(d)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||ri(s,"shiftKey"))&&(s.key&&1===s.key.length?this._letterKeyStream.next(s.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],s.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(s){const e=this._getItemsArray(),t="number"==typeof s?s:e.indexOf(s);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(s){this._wrap?this._setActiveInWrapMode(s):this._setActiveInDefaultMode(s)}_setActiveInWrapMode(s){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+s*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(s){this._setActiveItemByIndex(this._activeItemIndex+s,s)}_setActiveItemByIndex(s,e){const t=this._getItemsArray();if(t[s]){for(;this._skipPredicateFn(t[s]);)if(!t[s+=e])return;this.setActiveItem(s)}}_getItemsArray(){return this._items instanceof n.n_E?this._items.toArray():this._items}}class IS extends uv{setActiveItem(s){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(s),this.activeItem&&this.activeItem.setActiveStyles()}}class Sc extends uv{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(s){return this._origin=s,this}setActiveItem(s){super.setActiveItem(s),this.activeItem&&this.activeItem.focus(this._origin)}}let Gh=(()=>{class i{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Ec(i){return!!(i.offsetWidth||i.offsetHeight||"function"==typeof i.getClientRects&&i.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function pv(i){try{return i.frameElement}catch{return null}}(function bv(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}(e));if(t&&(-1===Mb(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),d=Mb(e);return e.hasAttribute("contenteditable")?-1!==d:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function gv(i){let s=i.nodeName.toLowerCase(),e="input"===s&&i.type;return"text"===e||"password"===e||"select"===s||"textarea"===s}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==d:"video"===r?-1!==d&&(null!==d||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function _v(i){return!function vb(i){return function mv(i){return"input"==i.nodeName.toLowerCase()}(i)&&"hidden"==i.type}(i)&&(function fv(i){let s=i.nodeName.toLowerCase();return"input"===s||"select"===s||"button"===s||"textarea"===s}(i)||function Wh(i){return function Tb(i){return"a"==i.nodeName.toLowerCase()}(i)&&i.hasAttribute("href")}(i)||i.hasAttribute("contenteditable")||xb(i))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function xb(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;let s=i.getAttribute("tabindex");return!(!s||isNaN(parseInt(s,10)))}function Mb(i){if(!xb(i))return null;const s=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(s)?-1:s}class Sb{constructor(s,e,t,r,d=!1){this._element=s,this._checker=e,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,d||this.attachAnchors()}get enabled(){return this._enabled}set enabled(s){this._enabled=s,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(s,this._startAnchor),this._toggleAnchorTabIndex(s,this._endAnchor))}destroy(){const s=this._startAnchor,e=this._endAnchor;s&&(s.removeEventListener("focus",this.startAnchorListener),s.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(s)))})}focusFirstTabbableElementWhenReady(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(s)))})}focusLastTabbableElementWhenReady(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(s)))})}_getRegionBoundary(s){const e=this._element.querySelectorAll(`[cdk-focus-region-${s}], [cdkFocusRegion${s}], [cdk-focus-${s}]`);return"start"==s?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(s){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(s),!!t}return e.focus(s),!0}return this.focusFirstTabbableElement(s)}focusFirstTabbableElement(s){const e=this._getRegionBoundary("start");return e&&e.focus(s),!!e}focusLastTabbableElement(s){const e=this._getRegionBoundary("end");return e&&e.focus(s),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(s){if(this._checker.isFocusable(s)&&this._checker.isTabbable(s))return s;const e=s.children;for(let t=0;t=0;t--){const r=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(r)return r}return null}_createAnchor(){const s=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,s),s.classList.add("cdk-visually-hidden"),s.classList.add("cdk-focus-trap-anchor"),s.setAttribute("aria-hidden","true"),s}_toggleAnchorTabIndex(s,e){s?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(s){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(s,this._startAnchor),this._toggleAnchorTabIndex(s,this._endAnchor))}_executeOnStable(s){this._ngZone.isStable?s():this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(s)}}let Xd=(()=>{class i{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new Sb(e,this._checker,this._ngZone,this._document,t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Gh),n.LFG(n.R0b),n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Eb=(()=>{class i{constructor(e,t,r){this._elementRef=e,this._focusTrapFactory=t,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=Oe(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=Oe(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=ho(),this.focusTrap.focusInitialElementWhenReady()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Xd),n.Y36(x.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[n.TTD]}),i})();function Qf(i){return 0===i.buttons||0===i.offsetX&&0===i.offsetY}function Ss(i){const s=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!(!s||-1!==s.identifier||null!=s.radiusX&&1!==s.radiusX||null!=s.radiusY&&1!==s.radiusY)}const Pb=new n.OlP("cdk-input-modality-detector-options"),Rb={ignoreKeys:[18,17,224,91,16]},zi=Ja({passive:!0,capture:!0});let kb=(()=>{class i{constructor(e,t,r,d){this._platform=e,this._mostRecentTarget=null,this._modality=new Hn(null),this._lastTouchMs=0,this._onKeydown=h=>{this._options?.ignoreKeys?.some(c=>c===h.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ya(h))},this._onMousedown=h=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Qf(h)?"keyboard":"mouse"),this._mostRecentTarget=ya(h))},this._onTouchstart=h=>{Ss(h)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ya(h))},this._options={...Rb,...d},this.modalityDetected=this._modality.pipe(Fh(1)),this.modalityChanged=this.modalityDetected.pipe(mo()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,zi),r.addEventListener("mousedown",this._onMousedown,zi),r.addEventListener("touchstart",this._onTouchstart,zi)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,zi),document.removeEventListener("mousedown",this._onMousedown,zi),document.removeEventListener("touchstart",this._onTouchstart,zi))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn),n.LFG(n.R0b),n.LFG(x.K0),n.LFG(Pb,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const yv=new n.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Kf(){return null}}),Es=new n.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Xf=(()=>{class i{constructor(e,t,r,d){this._ngZone=t,this._defaultOptions=d,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let d,h;return 1===t.length&&"number"==typeof t[0]?h=t[0]:[d,h]=t,this.clear(),clearTimeout(this._previousTimeout),d||(d=r&&r.politeness?r.politeness:"polite"),null==h&&r&&(h=r.duration),this._liveElement.setAttribute("aria-live",d),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof h&&(this._previousTimeout=setTimeout(()=>this.clear(),h)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let d=0;d{class i{constructor(e,t,r,d,h){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Se.x,this._rootNodeFocusAndBlurListener=c=>{for(let a=ya(c);a;a=a.parentElement)"focus"===c.type?this._onFocus(c,a):this._onBlur(c,a)},this._document=d,this._detectionMode=h?.detectionMode||0}monitor(e,t=!1){const r=ai(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,xe.of)(null);const d=Bh(r)||this._getDocument(),h=this._elementInfo.get(r);if(h)return t&&(h.checkChildren=!0),h.subject;const c={checkChildren:t,subject:new Se.x,rootNode:d};return this._elementInfo.set(r,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){const t=ai(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const d=ai(e);d===this._getDocument().activeElement?this._getClosestElementsInfo(d).forEach(([c,o])=>this._originChanged(c,t,o)):(this._setOrigin(t),"function"==typeof d.focus&&d.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),d=ya(e);!r||!r.checkChildren&&t!==d||this._originChanged(t,this._getFocusOrigin(d),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,tm),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,tm)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ke(this._stopInputModalityDetector)).subscribe(d=>{this._setOrigin(d,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,tm),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,tm),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,d)=>{(d===e||r.checkChildren&&d.contains(e))&&t.push([d,r])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const d=e.labels;if(d)for(let h=0;h{class i{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new n.vpe}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Ii))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),i})();const tu="cdk-high-contrast-black-on-white",nu="cdk-high-contrast-white-on-black",iu="cdk-high-contrast-active";let $h=(()=>{class i{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,n.f3M)(Jf).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,d=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),d){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(iu,tu,nu),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(iu,tu):2===t&&e.add(iu,nu)}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn),n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),bl=(()=>{class i{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG($h))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Jd]}),i})();const BS=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function vv(){return(0,n.f3M)(x.K0)}}),Tv=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let xn=(()=>{class i{constructor(e){if(this.value="ltr",this.change=new n.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function xv(i){const s=i?.toLowerCase()||"";return"auto"===s&&typeof navigator<"u"&&navigator?.language?Tv.test(navigator.language)?"rtl":"ltr":"rtl"===s?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(BS,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ru=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();function Ib(i,s){if(1&i&&n._UZ(0,"mat-pseudo-checkbox",4),2&i){const e=n.oxw();n.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function Ev(i,s){if(1&i&&(n.TgZ(0,"span",5),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij("(",e.group.label,")")}}const nm=["*"];let VS=(()=>{class i{}return i.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",i.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",i.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",i.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",i})(),jS=(()=>{class i{}return i.COMPLEX="375ms",i.ENTERING="225ms",i.EXITING="195ms",i})();const NS=new n.OlP("mat-sanity-checks",{providedIn:"root",factory:function US(){return!0}});let ht=(()=>{class i{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!jf()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return i.\u0275fac=function(e){return new(e||i)(n.LFG($h),n.LFG(NS,8),n.LFG(x.K0))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ru,ru]}),i})();function Qr(i){return class extends i{constructor(...s){super(...s),this._disabled=!1}get disabled(){return this._disabled}set disabled(s){this._disabled=Oe(s)}}}function Ti(i,s){return class extends i{constructor(...e){super(...e),this.defaultColor=s,this.color=s}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function mr(i){return class extends i{constructor(...s){super(...s),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(s){this._disableRipple=Oe(s)}}}function wl(i,s=0){return class extends i{constructor(...e){super(...e),this._tabIndex=s,this.defaultTabIndex=s}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?gn(e):this.defaultTabIndex}}}function Jh(i){return class extends i{constructor(...s){super(...s),this.errorState=!1}updateErrorState(){const s=this.errorState,d=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);d!==s&&(this.errorState=d,this.stateChanges.next())}}}function Zh(i){return class extends i{constructor(...s){super(...s),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ln.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(s){s.next(),s.complete()}}}const _o=new n.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function im(){return(0,n.f3M)(n.soG)}});class Un{constructor(){this._localeChanges=new Se.x,this.localeChanges=this._localeChanges}getValidDateOrNull(s){return this.isDateInstance(s)&&this.isValid(s)?s:null}deserialize(s){return null==s||this.isDateInstance(s)&&this.isValid(s)?s:this.invalid()}setLocale(s){this.locale=s,this._localeChanges.next()}compareDate(s,e){return this.getYear(s)-this.getYear(e)||this.getMonth(s)-this.getMonth(e)||this.getDate(s)-this.getDate(e)}sameDate(s,e){if(s&&e){let t=this.isValid(s),r=this.isValid(e);return t&&r?!this.compareDate(s,e):t==r}return s==e}clampDate(s,e,t){return e&&this.compareDate(s,e)<0?e:t&&this.compareDate(s,t)>0?t:s}}const _i=new n.OlP("mat-date-formats"),Ob=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function rm(i,s){const e=Array(i);for(let t=0;t{class i extends Un{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return rm(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return rm(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return rm(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let d=this._createDateWithOverflow(e,t,r);return d.getMonth(),d}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Ob.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const d=new Date;return d.setFullYear(e,t,r),d.setHours(0,0,0,0),d}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(_o,8),n.LFG(yn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Hv={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Bb=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Un,useClass:Qh}]}),i})(),Vb=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:_i,useValue:Hv}],imports:[Bb]}),i})(),Ca=(()=>{class i{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),yl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),i})();function Qa(i,s,e){i.nativeElement.classList.toggle(s,e)}let Cl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})();class au{constructor(s,e,t,r=!1){this._renderer=s,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const jb={enterDuration:225,exitDuration:150},Xh=Ja({passive:!0}),ep=["mousedown","touchstart"],tp=["mouseup","mouseleave","touchend","touchcancel"];class am{constructor(s,e,t,r){this._target=s,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=ai(t))}fadeInRipple(s,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),d={...jb,...t.animation};t.centered&&(s=r.left+r.width/2,e=r.top+r.height/2);const h=t.radius||function sm(i,s,e){const t=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),r=Math.max(Math.abs(s-e.top),Math.abs(s-e.bottom));return Math.sqrt(t*t+r*r)}(s,e,r),c=s-r.left,o=e-r.top,a=d.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=c-h+"px",l.style.top=o-h+"px",l.style.height=2*h+"px",l.style.width=2*h+"px",null!=t.color&&(l.style.backgroundColor=t.color),l.style.transitionDuration=`${a}ms`,this._containerElement.appendChild(l);const u=window.getComputedStyle(l),m=u.transitionDuration,g="none"===u.transitionProperty||"0s"===m||"0s, 0s"===m,f=new au(this,l,t,g);l.style.transform="scale3d(1, 1, 1)",f.state=0,t.persistent||(this._mostRecentTransientRipple=f);let y=null;return!g&&(a||d.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const j=()=>this._finishRippleTransition(f),le=()=>this._destroyRipple(f);l.addEventListener("transitionend",j),l.addEventListener("transitioncancel",le),y={onTransitionEnd:j,onTransitionCancel:le}}),this._activeRipples.set(f,y),(g||!a)&&this._finishRippleTransition(f),f}fadeOutRipple(s){if(2===s.state||3===s.state)return;const e=s.element,t={...jb,...s.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",s.state=2,(s._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(s)}fadeOutAll(){this._getActiveRipples().forEach(s=>s.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(s=>{s.config.persistent||s.fadeOut()})}setupTriggerEvents(s){const e=ai(s);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(ep))}handleEvent(s){"mousedown"===s.type?this._onMousedown(s):"touchstart"===s.type?this._onTouchStart(s):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(tp),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(s){0===s.state?this._startFadeOutTransition(s):2===s.state&&this._destroyRipple(s)}_startFadeOutTransition(s){const e=s===this._mostRecentTransientRipple,{persistent:t}=s.config;s.state=1,!t&&(!e||!this._isPointerDown)&&s.fadeOut()}_destroyRipple(s){const e=this._activeRipples.get(s)??null;this._activeRipples.delete(s),this._activeRipples.size||(this._containerRect=null),s===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),s.state=3,null!==e&&(s.element.removeEventListener("transitionend",e.onTransitionEnd),s.element.removeEventListener("transitioncancel",e.onTransitionCancel)),s.element.remove()}_onMousedown(s){const e=Qf(s),t=this._lastTouchStartEvent&&Date.now(){!s.config.persistent&&(1===s.state||s.config.terminateOnPointerUp&&0===s.state)&&s.fadeOut()}))}_registerEvents(s){this._ngZone.runOutsideAngular(()=>{s.forEach(e=>{this._triggerElement.addEventListener(e,this,Xh)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(ep.forEach(s=>{this._triggerElement.removeEventListener(s,this,Xh)}),this._pointerUpEventsRegistered&&tp.forEach(s=>{this._triggerElement.removeEventListener(s,this,Xh)}))}}const Nb=new n.OlP("mat-ripple-global-options");let Lr=(()=>{class i{constructor(e,t,r,d,h){this._elementRef=e,this._animationMode=h,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=d||{},this._rippleRenderer=new am(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(yn),n.Y36(Nb,8),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),i})(),Kr=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})(),om=(()=>{class i{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&n.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),i})(),lm=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht]}),i})();const cm=new n.OlP("MAT_OPTION_PARENT_COMPONENT"),dm=new n.OlP("MatOptgroup");let zS=0;class Rv{constructor(s,e=!1){this.source=s,this.isUserInput=e}}let um=(()=>{class i{constructor(e,t,r,d){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=d,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+zS++,this.onSelectionChange=new n.vpe,this._stateChanges=new Se.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Oe(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!ri(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Rv(this,e))}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),i})(),Al=(()=>{class i extends um{constructor(e,t,r,d){super(e,t,r,d)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(cm,8),n.Y36(dm,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(d){return t._handleKeydown(d)}),2&e&&(n.Ikx("id",t.id),n.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),n.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[n.qOj],ngContentSelectors:nm,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,Ib,1,2,"mat-pseudo-checkbox",0),n.TgZ(1,"span",1),n.Hsn(2),n.qZA(),n.YNc(3,Ev,2,1,"span",2),n._UZ(4,"div",3)),2&e&&(n.Q6J("ngIf",t.multiple),n.xp6(3),n.Q6J("ngIf",t.group&&t.group._inert),n.xp6(1),n.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},dependencies:[Lr,x.O5,om],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),i})();function Fb(i,s,e){if(e.length){let t=s.toArray(),r=e.toArray(),d=0;for(let h=0;h{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Kr,x.ez,ht,lm]}),i})();const Yb=["mat-button",""],Lv=["*"],Bv=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],qb=Ti(Qr(mr(class{constructor(i){this._elementRef=i}})));let Ot=(()=>{class i extends qb{constructor(e,t,r){super(e),this._focusMonitor=t,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const d of Bv)this._hasHostAttributes(d)&&this._getHostElement().classList.add(d);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Ii),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&n.Gf(Lr,5),2&e){let r;n.iGM(r=n.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(n.uIk("disabled",t.disabled||null),n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.qOj],attrs:Yb,ngContentSelectors:Lv,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"span",0),n.Hsn(1),n.qZA(),n._UZ(2,"span",1)(3,"span",2)),2&e&&(n.xp6(2),n.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),n.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Lr],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),i})(),bi=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Kr,ht,ht]}),i})();var pm=E(1144);const Vv=["addListener","removeListener"],jv=["addEventListener","removeEventListener"],WS=["on","off"];function ea(i,s,e,t){if((0,sn.m)(e)&&(t=e,e=void 0),t)return ea(i,s,e).pipe((0,Si.Z)(t));const[r,d]=function fm(i){return(0,sn.m)(i.addEventListener)&&(0,sn.m)(i.removeEventListener)}(i)?jv.map(h=>c=>i[h](s,c,e)):function Uv(i){return(0,sn.m)(i.addListener)&&(0,sn.m)(i.removeListener)}(i)?Vv.map(zb(i,s)):function Nv(i){return(0,sn.m)(i.on)&&(0,sn.m)(i.off)}(i)?WS.map(zb(i,s)):[];if(!r&&(0,pm.z)(i))return(0,gi.z)(h=>ea(h,s,e))((0,Qn.Xf)(i));if(!r)throw new TypeError("Invalid event target");return new ln.y(h=>{const c=(...o)=>h.next(1d(c)})}function zb(i,s){return e=>t=>i[e](s,t)}var Gb=E(4408);const su={schedule(i){let s=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=su;t&&(s=t.requestAnimationFrame,e=t.cancelAnimationFrame);const r=s(d=>{e=void 0,i(d)});return new Rt.w0(()=>e?.(r))},requestAnimationFrame(...i){const{delegate:s}=su;return(s?.requestAnimationFrame||requestAnimationFrame)(...i)},cancelAnimationFrame(...i){const{delegate:s}=su;return(s?.cancelAnimationFrame||cancelAnimationFrame)(...i)},delegate:void 0};var ip=E(7565);const mm=new class Fv extends ip.v{flush(s){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;s=s||t.shift();do{if(r=s.execute(s.state,s.delay))break}while((s=t[0])&&s.id===e&&t.shift());if(this._active=!1,r){for(;(s=t[0])&&s.id===e&&t.shift();)s.unsubscribe();throw r}}}(class np extends Gb.o{constructor(s,e){super(s,e),this.scheduler=s,this.work=e}requestAsyncId(s,e,t=0){return null!==t&&t>0?super.requestAsyncId(s,e,t):(s.actions.push(this),s._scheduled||(s._scheduled=su.requestAnimationFrame(()=>s.flush(void 0))))}recycleAsyncId(s,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(s,e,t);s.actions.some(r=>r.id===e)||(su.cancelAnimationFrame(e),s._scheduled=void 0)}});let Jb,$b=1;const gm={};function rp(i){return i in gm&&(delete gm[i],!0)}const $S={setImmediate(i){const s=$b++;return gm[s]=!0,Jb||(Jb=Promise.resolve()),Jb.then(()=>rp(s)&&i()),s},clearImmediate(i){rp(i)}},{setImmediate:Zb,clearImmediate:Qb}=$S,ou={setImmediate(...i){const{delegate:s}=ou;return(s?.setImmediate||Zb)(...i)},clearImmediate(i){const{delegate:s}=ou;return(s?.clearImmediate||Qb)(i)},delegate:void 0},Aa=new class _m extends ip.v{flush(s){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;s=s||t.shift();do{if(r=s.execute(s.state,s.delay))break}while((s=t[0])&&s.id===e&&t.shift());if(this._active=!1,r){for(;(s=t[0])&&s.id===e&&t.shift();)s.unsubscribe();throw r}}}(class Kb extends Gb.o{constructor(s,e){super(s,e),this.scheduler=s,this.work=e}requestAsyncId(s,e,t=0){return null!==t&&t>0?super.requestAsyncId(s,e,t):(s.actions.push(this),s._scheduled||(s._scheduled=ou.setImmediate(s.flush.bind(s,void 0))))}recycleAsyncId(s,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(s,e,t);s.actions.some(r=>r.id===e)||(ou.clearImmediate(e),s._scheduled=void 0)}});var lu=E(4986),wm=E(2805);function Dc(i,s=lu.z){return function cu(i){return(0,Pi.e)((s,e)=>{let t=!1,r=null,d=null,h=!1;const c=()=>{if(d?.unsubscribe(),d=null,t){t=!1;const a=r;r=null,e.next(a)}h&&e.complete()},o=()=>{d=null,h&&e.complete()};s.subscribe((0,nt.x)(e,a=>{t=!0,r=a,d||(0,Qn.Xf)(i(a)).subscribe(d=(0,nt.x)(e,c,o))},()=>{h=!0,(!t||!d||d.closed)&&e.complete()}))})}(()=>(0,wm.H)(i,s))}class ew{}function du(i){return i&&"function"==typeof i.connect}class uu extends ew{constructor(s){super(),this._data=s}connect(){return Vt(this._data)?this._data:(0,xe.of)(this._data)}disconnect(){}}class tw{applyChanges(s,e,t,r,d){s.forEachOperation((h,c,o)=>{let a,l;if(null==h.previousIndex){const u=t(h,c,o);a=e.createEmbeddedView(u.templateRef,u.context,u.index),l=1}else null==o?(e.remove(c),l=3):(a=e.get(c),e.move(a,o),l=2);d&&d({context:a?.context,operation:l,record:h})})}detach(){}}class nw{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(s,e,t,r,d){s.forEachOperation((h,c,o)=>{let a,l;null==h.previousIndex?(a=this._insertView(()=>t(h,c,o),o,e,r(h)),l=a?1:0):null==o?(this._detachAndCacheView(c,e),l=3):(a=this._moveView(c,o,e,r(h)),l=2),d&&d({context:a?.context,operation:l,record:h})})}detach(){for(const s of this._viewCache)s.destroy();this._viewCache=[]}_insertView(s,e,t,r){const d=this._insertViewFromCache(e,t);if(d)return void(d.context.$implicit=r);const h=s();return t.createEmbeddedView(h.templateRef,h.context,h.index)}_detachAndCacheView(s,e){const t=e.detach(s);this._maybeCacheView(t,e)}_moveView(s,e,t,r){const d=t.get(s);return t.move(d,e),d.context.$implicit=r,d}_maybeCacheView(s,e){if(this._viewCache.lengththis._markSelected(d)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...s){this._verifyValueAssignment(s),s.forEach(t=>this._markSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...s){this._verifyValueAssignment(s),s.forEach(t=>this._unmarkSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...s){this._verifyValueAssignment(s);const e=this.selected,t=new Set(s);s.forEach(d=>this._markSelected(d)),e.filter(d=>!t.has(d)).forEach(d=>this._unmarkSelected(d));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(s){return this.isSelected(s)?this.deselect(s):this.select(s)}clear(s=!0){this._unmarkAll();const e=this._hasQueuedChanges();return s&&this._emitChangeEvent(),e}isSelected(s){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,s))return!0;return!1}return this._selection.has(s)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(s){this._multiple&&this.selected&&this._selected.sort(s)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(s){this.isSelected(s)||(this._multiple||this._unmarkAll(),this.isSelected(s)||this._selection.add(s),this._emitChanges&&this._selectedToEmit.push(s))}_unmarkSelected(s){this.isSelected(s)&&(this._selection.delete(s),this._emitChanges&&this._deselectedToEmit.push(s))}_unmarkAll(){this.isEmpty()||this._selection.forEach(s=>this._unmarkSelected(s))}_verifyValueAssignment(s){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let ym=(()=>{class i{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const vl=new n.OlP("_ViewRepeater"),Yv=["contentWrapper"],qv=["*"],zv=new n.OlP("VIRTUAL_SCROLL_STRATEGY");class iw{constructor(s,e,t){this._scrolledIndexChange=new Se.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe(mo()),this._viewport=null,this._itemSize=s,this._minBufferPx=e,this._maxBufferPx=t}attach(s){this._viewport=s,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(s,e,t){this._itemSize=s,this._minBufferPx=e,this._maxBufferPx=t,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(s,e){this._viewport&&this._viewport.scrollToOffset(s*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const s=this._viewport.getRenderedRange(),e={start:s.start,end:s.end},t=this._viewport.getViewportSize(),r=this._viewport.getDataLength();let d=this._viewport.measureScrollOffset(),h=this._itemSize>0?d/this._itemSize:0;if(e.end>r){const o=Math.ceil(t/this._itemSize),a=Math.max(0,Math.min(h,r-o));h!=a&&(h=a,d=a*this._itemSize,e.start=Math.floor(h)),e.end=Math.max(0,Math.min(r,e.start+o))}const c=d-e.start*this._itemSize;if(c0&&(e.end=Math.min(r,e.end+a),e.start=Math.max(0,Math.floor(h-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(h))}}function Cm(i){return i._scrollStrategy}let Gv=(()=>{class i{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new iw(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=gn(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=gn(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=gn(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[n._Bn([{provide:zv,useFactory:Cm,deps:[(0,n.Gpc)(()=>i)]}]),n.TTD]}),i})(),Tl=(()=>{class i{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new Se.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ln.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Dc(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,xe.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Ce.h)(d=>!d||r.indexOf(d)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,d)=>{this._scrollableContainsElement(d,e)&&t.push(d)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=ai(t),d=e.getElementRef().nativeElement;do{if(r==d)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ea(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b),n.LFG(yn),n.LFG(x.K0,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),xl=(()=>{class i{constructor(e,t,r,d){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=d,this._destroyed=new Se.x,this._elementScrolled=new ln.y(h=>this.ngZone.runOutsideAngular(()=>ea(this.elementRef.nativeElement,"scroll").pipe(Ke(this._destroyed)).subscribe(h)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&0!=Yd()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Yd()?e.left=e.right:1==Yd()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;eb()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",d=this.elementRef.nativeElement;if("top"==e)return d.scrollTop;if("bottom"==e)return d.scrollHeight-d.clientHeight-d.scrollTop;const h=this.dir&&"rtl"==this.dir.value;return"start"==e?e=h?r:t:"end"==e&&(e=h?t:r),h&&2==Yd()?e==t?d.scrollWidth-d.clientWidth-d.scrollLeft:d.scrollLeft:h&&1==Yd()?e==t?d.scrollLeft+d.scrollWidth-d.clientWidth:-d.scrollLeft:e==t?d.scrollLeft:d.scrollWidth-d.clientWidth-d.scrollLeft}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Tl),n.Y36(n.R0b),n.Y36(xn,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),i})(),va=(()=>{class i{constructor(e,t,r){this._platform=e,this._change=new Se.x,this._changeListener=d=>{this._change.next(d)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const d=this._getWindow();d.addEventListener("resize",this._changeListener),d.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,d=r.getBoundingClientRect();return{top:-d.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-d.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Dc(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn),n.LFG(n.R0b),n.LFG(x.K0,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const $v=new n.OlP("VIRTUAL_SCROLLABLE");let rw=(()=>{class i extends xl{constructor(e,t,r,d){super(e,t,r,d)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Tl),n.Y36(n.R0b),n.Y36(xn,8))},i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const Ml=typeof requestAnimationFrame<"u"?mm:Aa;let Jv=(()=>{class i extends rw{constructor(e,t,r,d,h,c,o,a){super(e,c,r,h),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=d,this.scrollable=a,this._detachedSubject=new Se.x,this._renderedRangeSubject=new Se.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ln.y(l=>this._scrollStrategy.scrolledIndexChange.subscribe(u=>Promise.resolve().then(()=>this.ngZone.run(()=>l.next(u))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Rt.w0.EMPTY,this._viewportChanges=o.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Oe(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Zt(null),Dc(0,Ml)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(Ke(this._detachedSubject)).subscribe(t=>{const r=t.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function ap(i,s){return i.start==s.start&&i.end==s.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const d="horizontal"==this.orientation,h=d?"X":"Y";let o=`translate${h}(${Number((d&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(o+=` translate${h}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=o&&(this._renderedContentTransform=o,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const r={behavior:t};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const r="left",d="right",h="rtl"==this.dir?.value;t="start"==e?h?d:r:"end"==e?h?r:d:e||("horizontal"===this.orientation?"left":"top");const c=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-c}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(zv,8),n.Y36(xn,8),n.Y36(Tl),n.Y36(va),n.Y36($v,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&n.Gf(Yv,7),2&e){let r;n.iGM(r=n.CRH())&&(t._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[n._Bn([{provide:xl,useFactory:(s,e)=>s||e,deps:[rw,i]}]),n.qOj],ngContentSelectors:qv,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA(),n._UZ(3,"div",2)),2&e&&(n.xp6(3),n.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),i})();function Hc(i,s,e){if(!e.getBoundingClientRect)return 0;const r=e.getBoundingClientRect();return"horizontal"===i?"start"===s?r.left:r.right:"start"===s?r.top:r.bottom}let Zv=(()=>{class i{constructor(e,t,r,d,h,c){this._viewContainerRef=e,this._template=t,this._differs=r,this._viewRepeater=d,this._viewport=h,this.viewChange=new Se.x,this._dataSourceChanges=new Se.x,this.dataStream=this._dataSourceChanges.pipe(Zt(null),function Xb(){return(0,Pi.e)((i,s)=>{let e,t=!1;i.subscribe((0,nt.x)(s,r=>{const d=e;e=r,t&&s.next([d,r]),t=!0}))})}(),(0,_n.w)(([o,a])=>this._changeDataSource(o,a)),tn(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Se.x,this.dataStream.subscribe(o=>{this._data=o,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(Ke(this._destroyed)).subscribe(o=>{this._renderedRange=o,this.viewChange.observers.length&&c.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,du(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new uu(Vt(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,r)=>e(t+(this._renderedRange?this._renderedRange.start:0),r):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=gn(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const r=e.start-this._renderedRange.start,d=e.end-e.start;let h,c;for(let o=0;o-1;o--){const a=this._viewContainerRef.get(o+r);if(a&&a.rootNodes.length){c=a.rootNodes[a.rootNodes.length-1];break}}return h&&c?Hc(t,"end",c)-Hc(t,"start",h):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,xe.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const r=this._viewContainerRef.get(t);r.context.index=this._renderedRange.start+t,r.context.count=e,this._updateComputedContextProperties(r.context),r.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(d,h,c)=>this._getEmbeddedViewArgs(d,c),d=>d.item),e.forEachIdentityChange(d=>{this._viewContainerRef.get(d.currentIndex).context.$implicit=d.item});const t=this._data.length;let r=this._viewContainerRef.length;for(;r--;){const d=this._viewContainerRef.get(r);d.context.index=this._renderedRange.start+r,d.context.count=t,this._updateComputedContextProperties(d.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(vl),n.Y36(Jv,4),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[n._Bn([{provide:vl,useClass:nw}])]}),i})(),Ds=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),nr=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ru,Ds,ru,Ds]}),i})();class bo{attach(s){return this._attachedHost=s,s.attach(this)}detach(){let s=this._attachedHost;null!=s&&(this._attachedHost=null,s.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(s){this._attachedHost=s}}class xa extends bo{constructor(s,e,t,r){super(),this.component=s,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class Ir extends bo{constructor(s,e,t,r){super(),this.templateRef=s,this.viewContainerRef=e,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(s,e=this.context){return this.context=e,super.attach(s)}detach(){return this.context=void 0,super.detach()}}class Rc extends bo{constructor(s){super(),this.element=s instanceof n.SBq?s.nativeElement:s}}class wo{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(s){return s instanceof xa?(this._attachedPortal=s,this.attachComponentPortal(s)):s instanceof Ir?(this._attachedPortal=s,this.attachTemplatePortal(s)):this.attachDomPortal&&s instanceof Rc?(this._attachedPortal=s,this.attachDomPortal(s)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(s){this._disposeFn=s}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class kc extends wo{constructor(s,e,t,r,d){super(),this.outletElement=s,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=h=>{const c=h.element,o=this._document.createComment("dom-portal");c.parentNode.insertBefore(o,c),this.outletElement.appendChild(c),this._attachedPortal=h,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(c,o)})},this._document=d}attachComponentPortal(s){const t=(s.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(s.component);let r;return s.viewContainerRef?(r=s.viewContainerRef.createComponent(t,s.viewContainerRef.length,s.injector||s.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(s.injector||this._defaultInjector||n.zs3.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=s,r}attachTemplatePortal(s){let e=s.viewContainerRef,t=e.createEmbeddedView(s.templateRef,s.context,{injector:s.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=s,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(s){return s.hostView.rootNodes[0]}}let Lc=(()=>{class i extends Ir{constructor(e,t){super(e,t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.s_b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.qOj]}),i})(),Ma=(()=>{class i extends wo{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new n.vpe,this.attachDomPortal=d=>{const h=d.element,c=this._document.createComment("dom-portal");d.setAttachedHost(this),h.parentNode.insertBefore(c,h),this._getRootNode().appendChild(h),this._attachedPortal=d,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(h,c)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,d=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),h=t.createComponent(d,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(h.hostView.rootNodes[0]),super.setDisposeFn(()=>h.destroy()),this._attachedPortal=e,this._attachedRef=h,this.attached.emit(h),h}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36(x.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.qOj]}),i})(),Hs=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();var Mn=E(6451);const Tm=eb();class ow{constructor(s,e){this._viewportRuler=s,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const s=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=s.style.left||"",this._previousHTMLStyles.top=s.style.top||"",s.style.left=hi(-this._previousScrollPosition.left),s.style.top=hi(-this._previousScrollPosition.top),s.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const s=this._document.documentElement,t=s.style,r=this._document.body.style,d=t.scrollBehavior||"",h=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,s.classList.remove("cdk-global-scrollblock"),Tm&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Tm&&(t.scrollBehavior=d,r.scrollBehavior=h)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class tT{constructor(s,e,t,r){this._scrollDispatcher=s,this._ngZone=e,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(s){this._overlayRef=s}enable(){if(this._scrollSubscription)return;const s=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=s.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=s.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class lw{enable(){}disable(){}attach(){}}function xm(i,s){return s.some(e=>i.bottome.bottom||i.righte.right)}function Mm(i,s){return s.some(e=>i.tope.bottom||i.lefte.right)}class nT{constructor(s,e,t,r){this._scrollDispatcher=s,this._viewportRuler=e,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(s){this._overlayRef=s}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();xm(e,[{width:t,height:r,bottom:r,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let cw=(()=>{class i{constructor(e,t,r,d){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new lw,this.close=h=>new tT(this._scrollDispatcher,this._ngZone,this._viewportRuler,h),this.block=()=>new ow(this._viewportRuler,this._document),this.reposition=h=>new nT(this._scrollDispatcher,this._viewportRuler,this._ngZone,h),this._document=d}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Tl),n.LFG(va),n.LFG(n.R0b),n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class Sl{constructor(s){if(this.scrollStrategy=new lw,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,s){const e=Object.keys(s);for(const t of e)void 0!==s[t]&&(this[t]=s[t])}}}class op{constructor(s,e){this.connectionPair=s,this.scrollableViewProperties=e}}let hw=(()=>{class i{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),lp=(()=>{class i extends hw{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const d=this._attachedOverlays;for(let h=d.length-1;h>-1;h--)if(d[h]._keydownEvents.observers.length>0){const c=d[h]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(r)):c.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0),n.LFG(n.R0b,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),cp=(()=>{class i extends hw{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=d=>{this._pointerDownEventTarget=ya(d)},this._clickListener=d=>{const h=ya(d),c="click"===d.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:h;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){const l=o[a];if(l._outsidePointerEvents.observers.length<1||!l.hasAttached())continue;if(l.overlayElement.contains(h)||l.overlayElement.contains(c))break;const u=l._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(d)):u.next(d)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0),n.LFG(yn),n.LFG(n.R0b,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ic=(()=>{class i{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||jf()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let d=0;dthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Se.x,this._outsidePointerEvents=new Se.x,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(s){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(s);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const s=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),s}dispose(){const s=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,s&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(s){s!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=s,this.hasAttached()&&(s.attach(this),this.updatePosition()))}updateSize(s){this._config={...this._config,...s},this._updateElementSize()}setDirection(s){this._config={...this._config,direction:s},this._updateElementDirection()}addPanelClass(s){this._pane&&this._toggleClasses(this._pane,s,!0)}removePanelClass(s){this._pane&&this._toggleClasses(this._pane,s,!1)}getDirection(){const s=this._config.direction;return s?"string"==typeof s?s:s.value:"ltr"}updateScrollStrategy(s){s!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=s,this.hasAttached()&&(s.attach(this),s.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const s=this._pane.style;s.width=hi(this._config.width),s.height=hi(this._config.height),s.minWidth=hi(this._config.minWidth),s.minHeight=hi(this._config.minHeight),s.maxWidth=hi(this._config.maxWidth),s.maxHeight=hi(this._config.maxHeight)}_togglePointerEvents(s){this._pane.style.pointerEvents=s?"":"none"}_attachBackdrop(){const s="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(s)})}):this._backdropElement.classList.add(s)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const s=this._backdropElement;if(s){if(this._animationsDisabled)return void this._disposeBackdrop(s);s.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{s.addEventListener("transitionend",this._backdropTransitionendHandler)}),s.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(s)},500))}}_toggleClasses(s,e,t){const r=Yh(e||[]).filter(d=>!!d);r.length&&(t?s.classList.add(...r):s.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const s=this._ngZone.onStable.pipe(Ke((0,Mn.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),s.unsubscribe())})})}_disposeScrollStrategy(){const s=this._scrollStrategy;s&&(s.disable(),s.detach&&s.detach())}_disposeBackdrop(s){s&&(s.removeEventListener("click",this._backdropClickHandler),s.removeEventListener("transitionend",this._backdropTransitionendHandler),s.remove(),this._backdropElement===s&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const dp="cdk-overlay-connected-position-bounding-box",pw=/([A-Za-z%]+)$/;class Em{constructor(s,e,t,r,d){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=d,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Se.x,this._resizeSubscription=Rt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(s)}get positions(){return this._preferredPositions}attach(s){this._validatePositions(),s.hostElement.classList.add(dp),this._overlayRef=s,this._boundingBox=s.hostElement,this._pane=s.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const s=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,d=[];let h;for(let c of this._preferredPositions){let o=this._getOriginPoint(s,r,c),a=this._getOverlayPoint(o,e,c),l=this._getOverlayFit(a,e,t,c);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(c,o);this._canFitWithFlexibleDimensions(l,a,t)?d.push({position:c,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,c)}):(!h||h.overlayFit.visibleAreao&&(o=l,c=a)}return this._isPushed=!1,void this._applyPosition(c.position,c.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(h.position,h.originPoint);this._applyPosition(h.position,h.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ps(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(dp),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const s=this._lastPosition;if(s){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,s);this._applyPosition(s,e)}else this.apply()}withScrollableContainers(s){return this._scrollables=s,this}withPositions(s){return this._preferredPositions=s,-1===s.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(s){return this._viewportMargin=s,this}withFlexibleDimensions(s=!0){return this._hasFlexibleDimensions=s,this}withGrowAfterOpen(s=!0){return this._growAfterOpen=s,this}withPush(s=!0){return this._canPush=s,this}withLockedPosition(s=!0){return this._positionLocked=s,this}setOrigin(s){return this._origin=s,this}withDefaultOffsetX(s){return this._offsetX=s,this}withDefaultOffsetY(s){return this._offsetY=s,this}withTransformOriginOn(s){return this._transformOriginSelector=s,this}_getOriginPoint(s,e,t){let r,d;if("center"==t.originX)r=s.left+s.width/2;else{const h=this._isRtl()?s.right:s.left,c=this._isRtl()?s.left:s.right;r="start"==t.originX?h:c}return e.left<0&&(r-=e.left),d="center"==t.originY?s.top+s.height/2:"top"==t.originY?s.top:s.bottom,e.top<0&&(d-=e.top),{x:r,y:d}}_getOverlayPoint(s,e,t){let r,d;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,d="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:s.x+r,y:s.y+d}}_getOverlayFit(s,e,t,r){const d=fw(e);let{x:h,y:c}=s,o=this._getOffset(r,"x"),a=this._getOffset(r,"y");o&&(h+=o),a&&(c+=a);let p=0-c,m=c+d.height-t.height,g=this._subtractOverflows(d.width,0-h,h+d.width-t.width),f=this._subtractOverflows(d.height,p,m),y=g*f;return{visibleArea:y,isCompletelyWithinViewport:d.width*d.height===y,fitsInViewportVertically:f===d.height,fitsInViewportHorizontally:g==d.width}}_canFitWithFlexibleDimensions(s,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,d=t.right-e.x,h=up(this._overlayRef.getConfig().minHeight),c=up(this._overlayRef.getConfig().minWidth),a=s.fitsInViewportHorizontally||null!=c&&c<=d;return(s.fitsInViewportVertically||null!=h&&h<=r)&&a}return!1}_pushOverlayOnScreen(s,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:s.x+this._previousPushAmount.x,y:s.y+this._previousPushAmount.y};const r=fw(e),d=this._viewportRect,h=Math.max(s.x+r.width-d.width,0),c=Math.max(s.y+r.height-d.height,0),o=Math.max(d.top-t.top-s.y,0),a=Math.max(d.left-t.left-s.x,0);let l=0,u=0;return l=r.width<=d.width?a||-h:s.xg&&!this._isInitialRender&&!this._growAfterOpen&&(h=s.y-g/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)p=t.width-s.x+this._viewportMargin,l=s.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)u=s.x,l=t.right-s.x;else{const m=Math.min(t.right-s.x+t.left,s.x),g=this._lastBoundingBoxSize.width;l=2*m,u=s.x-m,l>g&&!this._isInitialRender&&!this._growAfterOpen&&(u=s.x-g/2)}return{top:h,left:u,bottom:c,right:p,width:l,height:d}}_setBoundingBoxStyles(s,e){const t=this._calculateBoundingBoxRect(s,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const d=this._overlayRef.getConfig().maxHeight,h=this._overlayRef.getConfig().maxWidth;r.height=hi(t.height),r.top=hi(t.top),r.bottom=hi(t.bottom),r.width=hi(t.width),r.left=hi(t.left),r.right=hi(t.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",d&&(r.maxHeight=hi(d)),h&&(r.maxWidth=hi(h))}this._lastBoundingBoxSize=t,Ps(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Ps(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ps(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(s,e){const t={},r=this._hasExactPosition(),d=this._hasFlexibleDimensions,h=this._overlayRef.getConfig();if(r){const l=this._viewportRuler.getViewportScrollPosition();Ps(t,this._getExactOverlayY(e,s,l)),Ps(t,this._getExactOverlayX(e,s,l))}else t.position="static";let c="",o=this._getOffset(e,"x"),a=this._getOffset(e,"y");o&&(c+=`translateX(${o}px) `),a&&(c+=`translateY(${a}px)`),t.transform=c.trim(),h.maxHeight&&(r?t.maxHeight=hi(h.maxHeight):d&&(t.maxHeight="")),h.maxWidth&&(r?t.maxWidth=hi(h.maxWidth):d&&(t.maxWidth="")),Ps(this._pane.style,t)}_getExactOverlayY(s,e,t){let r={top:"",bottom:""},d=this._getOverlayPoint(e,this._overlayRect,s);return this._isPushed&&(d=this._pushOverlayOnScreen(d,this._overlayRect,t)),"bottom"===s.overlayY?r.bottom=this._document.documentElement.clientHeight-(d.y+this._overlayRect.height)+"px":r.top=hi(d.y),r}_getExactOverlayX(s,e,t){let h,r={left:"",right:""},d=this._getOverlayPoint(e,this._overlayRect,s);return this._isPushed&&(d=this._pushOverlayOnScreen(d,this._overlayRect,t)),h=this._isRtl()?"end"===s.overlayX?"left":"right":"end"===s.overlayX?"right":"left","right"===h?r.right=this._document.documentElement.clientWidth-(d.x+this._overlayRect.width)+"px":r.left=hi(d.x),r}_getScrollVisibility(){const s=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Mm(s,t),isOriginOutsideView:xm(s,t),isOverlayClipped:Mm(e,t),isOverlayOutsideView:xm(e,t)}}_subtractOverflows(s,...e){return e.reduce((t,r)=>t-Math.max(r,0),s)}_getNarrowedViewportRect(){const s=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+s-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:s-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(s,e){return"x"===e?s.offsetX??this._offsetX:s.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(s){this._pane&&Yh(s).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(s=>{this._pane.classList.remove(s)}),this._appliedPanelClasses=[])}_getOriginRect(){const s=this._origin;if(s instanceof n.SBq)return s.nativeElement.getBoundingClientRect();if(s instanceof Element)return s.getBoundingClientRect();const e=s.width||0,t=s.height||0;return{top:s.y,bottom:s.y+t,left:s.x,right:s.x+e,height:t,width:e}}}function Ps(i,s){for(let e in s)s.hasOwnProperty(e)&&(i[e]=s[e]);return i}function up(i){if("number"!=typeof i&&null!=i){const[s,e]=i.split(pw);return e&&"px"!==e?null:parseFloat(s)}return i||null}function fw(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}const Dm="cdk-global-overlay-wrapper";class mw{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(s){const e=s.getConfig();this._overlayRef=s,this._width&&!e.width&&s.updateSize({width:this._width}),this._height&&!e.height&&s.updateSize({height:this._height}),s.hostElement.classList.add(Dm),this._isDisposed=!1}top(s=""){return this._bottomOffset="",this._topOffset=s,this._alignItems="flex-start",this}left(s=""){return this._xOffset=s,this._xPosition="left",this}bottom(s=""){return this._topOffset="",this._bottomOffset=s,this._alignItems="flex-end",this}right(s=""){return this._xOffset=s,this._xPosition="right",this}start(s=""){return this._xOffset=s,this._xPosition="start",this}end(s=""){return this._xOffset=s,this._xPosition="end",this}width(s=""){return this._overlayRef?this._overlayRef.updateSize({width:s}):this._width=s,this}height(s=""){return this._overlayRef?this._overlayRef.updateSize({height:s}):this._height=s,this}centerHorizontally(s=""){return this.left(s),this._xPosition="center",this}centerVertically(s=""){return this.top(s),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const s=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:d,maxWidth:h,maxHeight:c}=t,o=!("100%"!==r&&"100vw"!==r||h&&"100%"!==h&&"100vw"!==h),a=!("100%"!==d&&"100vh"!==d||c&&"100%"!==c&&"100vh"!==c),l=this._xPosition,u=this._xOffset,p="rtl"===this._overlayRef.getConfig().direction;let m="",g="",f="";o?f="flex-start":"center"===l?(f="center",p?g=u:m=u):p?"left"===l||"end"===l?(f="flex-end",m=u):("right"===l||"start"===l)&&(f="flex-start",g=u):"left"===l||"start"===l?(f="flex-start",m=u):("right"===l||"end"===l)&&(f="flex-end",g=u),s.position=this._cssPosition,s.marginLeft=o?"0":m,s.marginTop=a?"0":this._topOffset,s.marginBottom=this._bottomOffset,s.marginRight=o?"0":g,e.justifyContent=f,e.alignItems=a?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const s=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Dm),t.justifyContent=t.alignItems=s.marginTop=s.marginBottom=s.marginLeft=s.marginRight=s.position="",this._overlayRef=null,this._isDisposed=!0}}let aT=(()=>{class i{constructor(e,t,r,d){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=d}global(){return new mw}flexibleConnectedTo(e){return new Em(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(va),n.LFG(x.K0),n.LFG(yn),n.LFG(Ic))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),gw=0,rr=(()=>{class i{constructor(e,t,r,d,h,c,o,a,l,u,p,m){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=d,this._keyboardDispatcher=h,this._injector=c,this._ngZone=o,this._document=a,this._directionality=l,this._location=u,this._outsideClickDispatcher=p,this._animationsModuleType=m}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),d=this._createPortalOutlet(r),h=new Sl(e);return h.direction=h.direction||this._directionality.value,new Oc(d,t,r,h,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+gw++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(n.z2F)),new kc(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(cw),n.LFG(Ic),n.LFG(n._Vd),n.LFG(aT),n.LFG(lp),n.LFG(n.zs3),n.LFG(n.R0b),n.LFG(x.K0),n.LFG(xn),n.LFG(x.Ye),n.LFG(cp),n.LFG(n.QbO,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Hm=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],hp=new n.OlP("cdk-connected-overlay-scroll-strategy");let Pm=(()=>{class i{constructor(e){this.elementRef=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i})(),Rm=(()=>{class i{constructor(e,t,r,d,h){this._overlay=e,this._dir=h,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Rt.w0.EMPTY,this._attachSubscription=Rt.w0.EMPTY,this._detachSubscription=Rt.w0.EMPTY,this._positionSubscription=Rt.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new n.vpe,this.positionChange=new n.vpe,this.attach=new n.vpe,this.detach=new n.vpe,this.overlayKeydown=new n.vpe,this.overlayOutsideClick=new n.vpe,this._templatePortal=new Ir(t,r),this._scrollStrategyFactory=d,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Oe(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Oe(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Oe(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Oe(e)}get push(){return this._push}set push(e){this._push=Oe(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Hm);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!ri(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Sl({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Pm?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(rc(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(hp),n.Y36(xn,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[n.TTD]}),i})();const bw={provide:hp,deps:[rr],useFactory:function _w(i){return()=>i.scrollStrategies.reposition()}};let El=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[rr,bw],imports:[ru,Hs,nr,nr]}),i})();class km{}const yo="*";function fn(i,s){return{type:7,name:i,definitions:s,options:{}}}function Tt(i,s=null){return{type:4,styles:s,timings:i}}function fu(i,s=null){return{type:3,steps:i,options:s}}function yw(i,s=null){return{type:2,steps:i,options:s}}function He(i){return{type:6,styles:i,offset:null}}function Pt(i,s,e){return{type:0,name:i,styles:s,options:e}}function Dl(i){return{type:5,steps:i}}function xt(i,s,e=null){return{type:1,expr:i,animation:s,options:e}}function pp(i=null){return{type:9,options:i}}function gr(i,s,e=null){return{type:11,selector:i,animation:s,options:e}}function Cw(i){Promise.resolve(null).then(i)}class gu{constructor(s=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=s+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Cw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(s=>s()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(s){this._position=this.totalTime?s*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(s){const e="start"==s?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Lm{constructor(s){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=s;let e=0,t=0,r=0;const d=this.players.length;0==d?Cw(()=>this._onFinish()):this.players.forEach(h=>{h.onDone(()=>{++e==d&&this._onFinish()}),h.onDestroy(()=>{++t==d&&this._onDestroy()}),h.onStart(()=>{++r==d&&this._onStart()})}),this.totalTime=this.players.reduce((h,c)=>Math.max(h,c.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this.players.forEach(s=>s.init())}onStart(s){this._onStartFns.push(s)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(s=>s()),this._onStartFns=[])}onDone(s){this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(s=>s.play())}pause(){this.players.forEach(s=>s.pause())}restart(){this.players.forEach(s=>s.restart())}finish(){this._onFinish(),this.players.forEach(s=>s.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(s=>s.destroy()),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this.players.forEach(s=>s.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(s){const e=s*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const s=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=s?s.getPosition():0}beforeDestroy(){this.players.forEach(s=>{s.beforeDestroy&&s.beforeDestroy()})}triggerCallback(s){const e="start"==s?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Aw=["connectionContainer"],KS=["inputContainer"],Om=["label"];function Bm(i,s){1&i&&(n.ynx(0),n.TgZ(1,"div",14),n._UZ(2,"div",15)(3,"div",16)(4,"div",17),n.qZA(),n.TgZ(5,"div",18),n._UZ(6,"div",15)(7,"div",16)(8,"div",17),n.qZA(),n.BQk())}function Ka(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",19),n.NdJ("cdkObserveContent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.updateOutlineGap())}),n.Hsn(1,1),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function cT(i,s){if(1&i&&(n.ynx(0),n.Hsn(1,2),n.TgZ(2,"span"),n._uU(3),n.qZA(),n.BQk()),2&i){const e=n.oxw(2);n.xp6(3),n.Oqu(e._control.placeholder)}}function vw(i,s){1&i&&n.Hsn(0,3,["*ngSwitchCase","true"])}function Xa(i,s){1&i&&(n.TgZ(0,"span",23),n._uU(1," *"),n.qZA())}function Sa(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"label",20,21),n.NdJ("cdkObserveContent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.updateOutlineGap())}),n.YNc(2,cT,4,1,"ng-container",12),n.YNc(3,vw,1,0,"ng-content",12),n.YNc(4,Xa,2,0,"span",22),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),n.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),n.uIk("for",e._control.id)("aria-owns",e._control.id),n.xp6(2),n.Q6J("ngSwitchCase",!1),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Ea(i,s){1&i&&(n.TgZ(0,"div",24),n.Hsn(1,4),n.qZA())}function Tw(i,s){if(1&i&&(n.TgZ(0,"div",25),n._UZ(1,"span",26),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function xw(i,s){if(1&i&&(n.TgZ(0,"div"),n.Hsn(1,5),n.qZA()),2&i){const e=n.oxw();n.Q6J("@transitionMessages",e._subscriptAnimationState)}}function dT(i,s){if(1&i&&(n.TgZ(0,"div",30),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.Q6J("id",e._hintLabelId),n.xp6(1),n.Oqu(e.hintLabel)}}function uT(i,s){if(1&i&&(n.TgZ(0,"div",27),n.YNc(1,dT,2,2,"div",28),n.Hsn(2,6),n._UZ(3,"div",29),n.Hsn(4,7),n.qZA()),2&i){const e=n.oxw();n.Q6J("@transitionMessages",e._subscriptAnimationState),n.xp6(1),n.Q6J("ngIf",e.hintLabel)}}const hT=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],pT=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Vm=0;const Bc=new n.OlP("MatError");let es=(()=>{class i{constructor(e,t){this.id="mat-error-"+Vm++,e||t.nativeElement.setAttribute("aria-live","polite")}}return i.\u0275fac=function(e){return new(e||i)(n.$8M("aria-live"),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&n.uIk("id",t.id)},inputs:{id:"id"},features:[n._Bn([{provide:Bc,useExisting:i}])]}),i})();const Mw={transitionMessages:fn("transitionMessages",[Pt("enter",He({opacity:1,transform:"translateY(0%)"})),xt("void => enter",[He({opacity:0,transform:"translateY(-5px)"}),Tt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let _u=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i}),i})(),gT=0;const Um=new n.OlP("MatHint");let Sw=(()=>{class i{constructor(){this.align="start",this.id="mat-hint-"+gT++}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(n.uIk("id",t.id)("align",null),n.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[n._Bn([{provide:Um,useExisting:i}])]}),i})(),ta=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-label"]]}),i})(),fp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-placeholder"]]}),i})();const Nm=new n.OlP("MatPrefix"),Fm=new n.OlP("MatSuffix");let bu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","matSuffix",""]],features:[n._Bn([{provide:Fm,useExisting:i}])]}),i})(),Ym=0;const Dw=Ti(class{constructor(i){this._elementRef=i}},"primary"),Hw=new n.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),mp=new n.OlP("MatFormField");let ar=(()=>{class i extends Dw{constructor(e,t,r,d,h,c,o){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=d,this._platform=h,this._ngZone=c,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Se.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Ym++,this._labelId="mat-form-field-label-"+Ym++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=d?.appearance||"legacy",d&&(this._hideRequiredMarker=Boolean(d.hideRequiredMarker),d.color&&(this.color=this.defaultColor=d.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Oe(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Zt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ke(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ke(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Mn.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Zt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Zt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ke(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,ea(this._label.nativeElement,"transitionend").pipe((0,rt.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(d=>"start"===d.align):null,r=this._hintChildren?this._hintChildren.find(d=>"end"===d.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",d=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const l=t.querySelectorAll(`${r}, ${d}`);for(let u=0;u0?.75*g+10:0}for(let l=0;l{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,ht,Jd,ht]}),i})(),Pw=(()=>{class i{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Qsj),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i}),i})(),Pl=(()=>{class i extends Pw{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const sr=new n.OlP("NgValueAccessor"),wT={provide:sr,useExisting:(0,n.Gpc)(()=>Gi),multi:!0},CT=new n.OlP("CompositionEventMode");let Gi=(()=>{class i extends Pw{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function yT(){const i=(0,x.q)()?(0,x.q)().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(CT,8))},i.\u0275dir=n.lG2({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&n.NdJ("input",function(d){return t._handleInput(d.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(d){return t._compositionEnd(d.target.value)})},features:[n._Bn([wT]),n.qOj]}),i})();function Co(i){return null==i||("string"==typeof i||Array.isArray(i))&&0===i.length}function kw(i){return null!=i&&"number"==typeof i.length}const wi=new n.OlP("NgValidators"),Ao=new n.OlP("NgAsyncValidators"),Lw=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class kn{static min(s){return function zm(i){return s=>{if(Co(s.value)||Co(i))return null;const e=parseFloat(s.value);return!isNaN(e)&&e{if(Co(s.value)||Co(i))return null;const e=parseFloat(s.value);return!isNaN(e)&&e>i?{max:{max:i,actual:s.value}}:null}}(s)}static required(s){return Wm(s)}static requiredTrue(s){return function $m(i){return!0===i.value?null:{required:!0}}(s)}static email(s){return function Jm(i){return Co(i.value)||Lw.test(i.value)?null:{email:!0}}(s)}static minLength(s){return function Zm(i){return s=>Co(s.value)||!kw(s.value)?null:s.value.lengthkw(s.value)&&s.value.length>i?{maxlength:{requiredLength:i,actualLength:s.value.length}}:null}(s)}static pattern(s){return function gp(i){if(!i)return Vc;let s,e;return"string"==typeof i?(e="","^"!==i.charAt(0)&&(e+="^"),e+=i,"$"!==i.charAt(i.length-1)&&(e+="$"),s=new RegExp(e)):(e=i.toString(),s=i),t=>{if(Co(t.value))return null;const r=t.value;return s.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(s)}static nullValidator(s){return null}static compose(s){return vT(s)}static composeAsync(s){return Km(s)}}function Wm(i){return Co(i.value)?{required:!0}:null}function Vc(i){return null}function vo(i){return null!=i}function Iw(i){return(0,n.QGY)(i)?(0,lt.D)(i):i}function Ow(i){let s={};return i.forEach(e=>{s=null!=e?{...s,...e}:s}),0===Object.keys(s).length?null:s}function Rl(i,s){return s.map(e=>e(i))}function _p(i){return i.map(s=>function XS(i){return!i.validate}(s)?s:e=>s.validate(e))}function vT(i){if(!i)return null;const s=i.filter(vo);return 0==s.length?null:function(e){return Ow(Rl(e,s))}}function bp(i){return null!=i?vT(_p(i)):null}function Km(i){if(!i)return null;const s=i.filter(vo);return 0==s.length?null:function(e){return oa(Rl(e,s).map(Iw)).pipe((0,_t.U)(Ow))}}function Bw(i){return null!=i?Km(_p(i)):null}function bt(i,s){return null===i?[s]:Array.isArray(i)?[...i,s]:[i,s]}function Vw(i){return i._rawValidators}function jw(i){return i._rawAsyncValidators}function Xm(i){return i?Array.isArray(i)?i:[i]:[]}function Rs(i,s){return Array.isArray(i)?i.includes(s):i===s}function Uw(i,s){const e=Xm(s);return Xm(i).forEach(r=>{Rs(e,r)||e.push(r)}),e}function wu(i,s){return Xm(s).filter(e=>!Rs(i,e))}class yu{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(s){this._rawValidators=s||[],this._composedValidatorFn=bp(this._rawValidators)}_setAsyncValidators(s){this._rawAsyncValidators=s||[],this._composedAsyncValidatorFn=Bw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(s){this._onDestroyCallbacks.push(s)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(s=>s()),this._onDestroyCallbacks=[]}reset(s){this.control&&this.control.reset(s)}hasError(s,e){return!!this.control&&this.control.hasError(s,e)}getError(s,e){return this.control?this.control.getError(s,e):null}}class Nt extends yu{get formDirective(){return null}get path(){return null}}class ts extends yu{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class eg{constructor(s){this._cd=s}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Wi=(()=>{class i extends eg{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(ts,2))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&n.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[n.qOj]}),i})(),tg=(()=>{class i extends eg{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Nt,10))},i.\u0275dir=n.lG2({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&n.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[n.qOj]}),i})();const Tu="VALID",xu="INVALID",kl="PENDING",jc="DISABLED";function ag(i){return(lg(i)?i.validators:i)||null}function sg(i){return Array.isArray(i)?bp(i):i||null}function og(i,s){return(lg(s)?s.asyncValidators:i)||null}function Yw(i){return Array.isArray(i)?Bw(i):i||null}function lg(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}function HT(i,s,e){const t=i.controls;if(!(s?Object.keys(t):t).length)throw new n.vHH(1e3,"");if(!t[e])throw new n.vHH(1001,"")}function PT(i,s,e){i._forEachChild((t,r)=>{if(void 0===e[r])throw new n.vHH(1002,"")})}class cg{constructor(s,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=s,this._rawAsyncValidators=e,this._composedValidatorFn=sg(this._rawValidators),this._composedAsyncValidatorFn=Yw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(s){this._rawValidators=this._composedValidatorFn=s}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(s){this._rawAsyncValidators=this._composedAsyncValidatorFn=s}get parent(){return this._parent}get valid(){return this.status===Tu}get invalid(){return this.status===xu}get pending(){return this.status==kl}get disabled(){return this.status===jc}get enabled(){return this.status!==jc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(s){this._rawValidators=s,this._composedValidatorFn=sg(s)}setAsyncValidators(s){this._rawAsyncValidators=s,this._composedAsyncValidatorFn=Yw(s)}addValidators(s){this.setValidators(Uw(s,this._rawValidators))}addAsyncValidators(s){this.setAsyncValidators(Uw(s,this._rawAsyncValidators))}removeValidators(s){this.setValidators(wu(s,this._rawValidators))}removeAsyncValidators(s){this.setAsyncValidators(wu(s,this._rawAsyncValidators))}hasValidator(s){return Rs(this._rawValidators,s)}hasAsyncValidator(s){return Rs(this._rawAsyncValidators,s)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(s={}){this.touched=!0,this._parent&&!s.onlySelf&&this._parent.markAsTouched(s)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(s=>s.markAllAsTouched())}markAsUntouched(s={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!s.onlySelf&&this._parent._updateTouched(s)}markAsDirty(s={}){this.pristine=!1,this._parent&&!s.onlySelf&&this._parent.markAsDirty(s)}markAsPristine(s={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!s.onlySelf&&this._parent._updatePristine(s)}markAsPending(s={}){this.status=kl,!1!==s.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!s.onlySelf&&this._parent.markAsPending(s)}disable(s={}){const e=this._parentMarkedDirty(s.onlySelf);this.status=jc,this.errors=null,this._forEachChild(t=>{t.disable({...s,onlySelf:!0})}),this._updateValue(),!1!==s.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...s,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(s={}){const e=this._parentMarkedDirty(s.onlySelf);this.status=Tu,this._forEachChild(t=>{t.enable({...s,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:s.emitEvent}),this._updateAncestors({...s,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(s){this._parent&&!s.onlySelf&&(this._parent.updateValueAndValidity(s),s.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(s){this._parent=s}getRawValue(){return this.value}updateValueAndValidity(s={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Tu||this.status===kl)&&this._runAsyncValidator(s.emitEvent)),!1!==s.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!s.onlySelf&&this._parent.updateValueAndValidity(s)}_updateTreeValidity(s={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(s)),this.updateValueAndValidity({onlySelf:!0,emitEvent:s.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?jc:Tu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(s){if(this.asyncValidator){this.status=kl,this._hasOwnPendingAsyncValidator=!0;const e=Iw(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:s})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(s,e={}){this.errors=s,this._updateControlsErrors(!1!==e.emitEvent)}get(s){let e=s;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(s,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[s]:null}hasError(s,e){return!!this.getError(s,e)}get root(){let s=this;for(;s._parent;)s=s._parent;return s}_updateControlsErrors(s){this.status=this._calculateStatus(),s&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(s)}_initObservables(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}_calculateStatus(){return this._allControlsDisabled()?jc:this.errors?xu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kl)?kl:this._anyControlsHaveStatus(xu)?xu:Tu}_anyControlsHaveStatus(s){return this._anyControls(e=>e.status===s)}_anyControlsDirty(){return this._anyControls(s=>s.dirty)}_anyControlsTouched(){return this._anyControls(s=>s.touched)}_updatePristine(s={}){this.pristine=!this._anyControlsDirty(),this._parent&&!s.onlySelf&&this._parent._updatePristine(s)}_updateTouched(s={}){this.touched=this._anyControlsTouched(),this._parent&&!s.onlySelf&&this._parent._updateTouched(s)}_registerOnCollectionChange(s){this._onCollectionChange=s}_setUpdateStrategy(s){lg(s)&&null!=s.updateOn&&(this._updateOn=s.updateOn)}_parentMarkedDirty(s){return!s&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(s){return null}}class Mu extends cg{constructor(s,e,t){super(ag(e),og(t,e)),this.controls=s,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(s,e){return this.controls[s]?this.controls[s]:(this.controls[s]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(s,e,t={}){this.registerControl(s,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(s,e={}){this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),delete this.controls[s],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(s,e,t={}){this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),delete this.controls[s],e&&this.registerControl(s,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(s){return this.controls.hasOwnProperty(s)&&this.controls[s].enabled}setValue(s,e={}){PT(this,0,s),Object.keys(s).forEach(t=>{HT(this,!0,t),this.controls[t].setValue(s[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(s,e={}){null!=s&&(Object.keys(s).forEach(t=>{const r=this.controls[t];r&&r.patchValue(s[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(s={},e={}){this._forEachChild((t,r)=>{t.reset(s[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(s,e,t)=>(s[t]=e.getRawValue(),s))}_syncPendingControls(){let s=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return s&&this.updateValueAndValidity({onlySelf:!0}),s}_forEachChild(s){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&s(t,e)})}_setUpControls(){this._forEachChild(s=>{s.setParent(this),s._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(s){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&s(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(s,e){let t=s;return this._forEachChild((r,d)=>{t=e(t,r,d)}),t}_allControlsDisabled(){for(const s of Object.keys(this.controls))if(this.controls[s].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(s){return this.controls.hasOwnProperty(s)?this.controls[s]:null}}function To(i,s){return[...s.path,i]}function Su(i,s){ug(i,s),s.valueAccessor.writeValue(i.value),i.disabled&&s.valueAccessor.setDisabledState?.(!0),function IT(i,s){s.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&Ll(i,s)})}(i,s),function BT(i,s){const e=(t,r)=>{s.valueAccessor.writeValue(t),r&&s.viewToModelUpdate(t)};i.registerOnChange(e),s._registerOnDestroy(()=>{i._unregisterOnChange(e)})}(i,s),function OT(i,s){s.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&Ll(i,s),"submit"!==i.updateOn&&i.markAsTouched()})}(i,s),function LT(i,s){if(s.valueAccessor.setDisabledState){const e=t=>{s.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(e),s._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}(i,s)}function Cp(i,s,e=!0){const t=()=>{};s.valueAccessor&&(s.valueAccessor.registerOnChange(t),s.valueAccessor.registerOnTouched(t)),Eu(i,s),i&&(s._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Ap(i,s){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(s)})}function ug(i,s){const e=Vw(i);null!==s.validator?i.setValidators(bt(e,s.validator)):"function"==typeof e&&i.setValidators([e]);const t=jw(i);null!==s.asyncValidator?i.setAsyncValidators(bt(t,s.asyncValidator)):"function"==typeof t&&i.setAsyncValidators([t]);const r=()=>i.updateValueAndValidity();Ap(s._rawValidators,r),Ap(s._rawAsyncValidators,r)}function Eu(i,s){let e=!1;if(null!==i){if(null!==s.validator){const r=Vw(i);if(Array.isArray(r)&&r.length>0){const d=r.filter(h=>h!==s.validator);d.length!==r.length&&(e=!0,i.setValidators(d))}}if(null!==s.asyncValidator){const r=jw(i);if(Array.isArray(r)&&r.length>0){const d=r.filter(h=>h!==s.asyncValidator);d.length!==r.length&&(e=!0,i.setAsyncValidators(d))}}}const t=()=>{};return Ap(s._rawValidators,t),Ap(s._rawAsyncValidators,t),e}function Ll(i,s){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),s.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function hg(i,s){ug(i,s)}function Du(i,s){if(!i.hasOwnProperty("model"))return!1;const e=i.model;return!!e.isFirstChange()||!Object.is(s,e.currentValue)}function fg(i,s){i._syncPendingControls(),s.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function vp(i,s){if(!s)return null;let e,t,r;return Array.isArray(s),s.forEach(d=>{d.constructor===Gi?e=d:function NT(i){return Object.getPrototypeOf(i.constructor)===Pl}(d)?t=d:r=d}),r||t||e||null}const YT={provide:Nt,useExisting:(0,n.Gpc)(()=>Ol)},Il=(()=>Promise.resolve(null))();let Ol=(()=>{class i extends Nt{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new n.vpe,this.form=new Mu({},bp(e),Bw(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Il.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Su(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Il.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Il.then(()=>{const t=this._findContainer(e.path),r=new Mu({});hg(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Il.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Il.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,fg(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wi,10),n.Y36(Ao,10))},i.\u0275dir=n.lG2({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&n.NdJ("submit",function(d){return t.onSubmit(d)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([YT]),n.qOj]}),i})();function mg(i,s){const e=i.indexOf(s);e>-1&&i.splice(e,1)}function qw(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}const Nn=class extends cg{constructor(s=null,e,t){super(ag(e),og(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(s),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),lg(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=qw(s)?s.value:s)}setValue(s,e={}){this.value=this._pendingValue=s,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(s,e={}){this.setValue(s,e)}reset(s=this.defaultValue,e={}){this._applyFormState(s),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(s){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(s){this._onChange.push(s)}_unregisterOnChange(s){mg(this._onChange,s)}registerOnDisabledChange(s){this._onDisabledChange.push(s)}_unregisterOnDisabledChange(s){mg(this._onDisabledChange,s)}_forEachChild(s){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(s){qw(s)?(this.value=this._pendingValue=s.value,s.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=s}},gg=Nn,GT={provide:ts,useExisting:(0,n.Gpc)(()=>Uc)},_g=(()=>Promise.resolve(null))();let Uc=(()=>{class i extends ts{constructor(e,t,r,d,h){super(),this._changeDetectorRef=h,this.control=new Nn,this._registered=!1,this.update=new n.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=vp(0,d)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Du(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Su(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){_g.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&(0,n.D6c)(t);_g.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?To(e,this._parent):[e]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Nt,9),n.Y36(wi,10),n.Y36(Ao,10),n.Y36(sr,10),n.Y36(n.sBO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n._Bn([GT]),n.qOj,n.TTD]}),i})(),$w=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),i})(),xp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const Mp=new n.OlP("NgModelWithFormControlWarning"),Nc={provide:ts,useExisting:(0,n.Gpc)(()=>_r)};let _r=(()=>{class i extends ts{constructor(e,t,r,d){super(),this._ngModelWarningConfig=d,this.update=new n.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=vp(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Cp(t,this,!1),Su(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Du(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Cp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(e){return new(e||i)(n.Y36(wi,10),n.Y36(Ao,10),n.Y36(sr,10),n.Y36(Mp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n._Bn([Nc]),n.qOj,n.TTD]}),i})();const ZT={provide:Nt,useExisting:(0,n.Gpc)(()=>Fc)};let Fc=(()=>{class i extends Nt{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Eu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Su(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Cp(e.control||null,e,!1),function FT(i,s){const e=i.indexOf(s);e>-1&&i.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,fg(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(Cp(t||null,e),(i=>i instanceof Nn)(r)&&(Su(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);hg(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function VT(i,s){return Eu(i,s)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ug(this.form,this),this._oldForm&&Eu(this._oldForm,this)}_checkFormPresent(){}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wi,10),n.Y36(Ao,10))},i.\u0275dir=n.lG2({type:i,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&n.NdJ("submit",function(d){return t.onSubmit(d)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([ZT]),n.qOj,n.TTD]}),i})();const KT={provide:ts,useExisting:(0,n.Gpc)(()=>Ru)};let Ru=(()=>{class i extends ts{constructor(e,t,r,d,h){super(),this._ngModelWarningConfig=h,this._added=!1,this.update=new n.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=vp(0,d)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Du(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return To(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(e){return new(e||i)(n.Y36(Nt,13),n.Y36(wi,10),n.Y36(Ao,10),n.Y36(sr,10),n.Y36(Mp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n._Bn([KT]),n.qOj,n.TTD]}),i})(),Yc=(()=>{class i{constructor(){this._validator=Vc}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Vc,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();const oy={provide:wi,useExisting:(0,n.Gpc)(()=>ns),multi:!0};let ns=(()=>{class i extends Yc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n.D6c,this.createValidator=e=>Wm}enabled(e){return e}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&n.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[n._Bn([oy]),n.qOj]}),i})(),vg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[xp]}),i})(),Tg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[vg]}),i})(),zc=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Mp,useValue:e.warnOnNgModelWithFormControl}]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[vg]}),i})();class xg extends cg{constructor(s,e,t){super(ag(e),og(t,e)),this.controls=s,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(s){return this.controls[this._adjustIndex(s)]}push(s,e={}){this.controls.push(s),this._registerControl(s),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(s,e,t={}){this.controls.splice(s,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(s,e={}){let t=this._adjustIndex(s);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(s,e,t={}){let r=this._adjustIndex(s);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(s,e={}){PT(this,0,s),s.forEach((t,r)=>{HT(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(s,e={}){null!=s&&(s.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(s=[],e={}){this._forEachChild((t,r)=>{t.reset(s[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(s=>s.getRawValue())}clear(s={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:s.emitEvent}))}_adjustIndex(s){return s<0?s+this.length:s}_syncPendingControls(){let s=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return s&&this.updateValueAndValidity({onlySelf:!0}),s}_forEachChild(s){this.controls.forEach((e,t)=>{s(e,t)})}_updateValue(){this.value=this.controls.filter(s=>s.enabled||this.disabled).map(s=>s.value)}_anyControls(s){return this.controls.some(e=>e.enabled&&s(e))}_setUpControls(){this._forEachChild(s=>this._registerControl(s))}_allControlsDisabled(){for(const s of this.controls)if(s.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(s){s.setParent(this),s._registerOnCollectionChange(this._onCollectionChange)}_find(s){return this.at(s)??null}}function hy(i){return!!i&&(void 0!==i.asyncValidators||void 0!==i.validators||void 0!==i.updateOn)}let p0=(()=>{class i{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new i;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let d={};return hy(t)?d=t:null!==t&&(d.validators=t.validator,d.asyncValidators=t.asyncValidator),new Mu(r,d)}control(e,t,r){let d={};return this.useNonNullable?(hy(t)?d=t:(d.validators=t,d.asyncValidators=r),new Nn(e,{...d,nonNullable:!0})):new Nn(e,t,r)}array(e,t,r){const d=e.map(h=>this._createControl(h));return new xg(d,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return e instanceof Nn||e instanceof cg?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:zc}),i})(),f0=(()=>{class i extends p0{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:zc}),i})();const is=["trigger"],m0=["panel"];function Hp(i,s){if(1&i&&(n.TgZ(0,"span",8),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.placeholder)}}function ku(i,s){if(1&i&&(n.TgZ(0,"span",12),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.triggerValue)}}function g0(i,s){1&i&&n.Hsn(0,0,["*ngSwitchCase","true"])}function _0(i,s){if(1&i&&(n.TgZ(0,"span",9),n.YNc(1,ku,2,1,"span",10),n.YNc(2,g0,1,0,"ng-content",11),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngSwitch",!!e.customTrigger),n.xp6(2),n.Q6J("ngSwitchCase",!0)}}function b0(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",13)(1,"div",14,15),n.NdJ("@transformPanel.done",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._handleKeydown(r))}),n.Hsn(3,1),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("@transformPanelWrap",void 0),n.xp6(1),n.Gre("mat-select-panel ",e._getPanelTheme(),""),n.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),n.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),n.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const Pp=[[["mat-select-trigger"]],"*"],Rp=["mat-select-trigger","*"],fy={transformPanelWrap:fn("transformPanelWrap",[xt("* => void",gr("@transformPanel",[pp()],{optional:!0}))]),transformPanel:fn("transformPanel",[Pt("void",He({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Pt("showing",He({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Pt("showing-multiple",He({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),xt("void => *",Tt("120ms cubic-bezier(0, 0, 0.2, 1)")),xt("* => void",Tt("100ms 25ms linear",He({opacity:0})))])};let kp=0;const Mg=new n.OlP("mat-select-scroll-strategy"),Eg=new n.OlP("MAT_SELECT_CONFIG"),A0={provide:Mg,deps:[rr],useFactory:function Sg(i){return()=>i.scrollStrategies.reposition()}};class v0{constructor(s,e){this.source=s,this.value=e}}const T0=mr(wl(Qr(Jh(class{constructor(i,s,e,t,r){this._elementRef=i,this._defaultErrorStateMatcher=s,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new Se.x}})))),x0=new n.OlP("MatSelectTrigger");let Dg=(()=>{class i extends T0{constructor(e,t,r,d,h,c,o,a,l,u,p,m,g,f){super(h,d,o,a,u),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=c,this._parentFormField=l,this._liveAnnouncer=g,this._defaultOptions=f,this._panelOpen=!1,this._compareWith=(y,j)=>y===j,this._uid="mat-select-"+kp++,this._triggerAriaLabelledBy=null,this._destroy=new Se.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+kp++,this._panelDoneAnimatingStream=new Se.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=Cn(()=>{const y=this.options;return y?y.changes.pipe(Zt(y),(0,_n.w)(()=>(0,Mn.T)(...y.map(j=>j.onSelectionChange)))):this._ngZone.onStable.pipe((0,rt.q)(1),(0,_n.w)(()=>this.optionSelectionChanges))}),this.openedChange=new n.vpe,this._openedStream=this.openedChange.pipe((0,Ce.h)(y=>y),(0,_t.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Ce.h)(y=>!y),(0,_t.U)(()=>{})),this.selectionChange=new n.vpe,this.valueChange=new n.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=f?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=f.typeaheadDebounceInterval),this._scrollStrategyFactory=m,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(kn.required)??!1}set required(e){this._required=Oe(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Oe(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Oe(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=gn(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Kn(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(mo(),Ke(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Ke(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Zt(null),Ke(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,d=13===t||32===t,h=this._keyManager;if(!h.isTyping()&&d&&!ri(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const c=this.selected;h.onKeydown(e);const o=this.selected;o&&c!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,d=40===r||38===r,h=t.isTyping();if(d&&e.altKey)e.preventDefault(),this.close();else if(h||13!==r&&32!==r||!t.activeItem||ri(e))if(!h&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const c=this.options.some(o=>!o.disabled&&!o.selected);this.options.forEach(o=>{o.disabled||(c?o.select():o.deselect())})}else{const c=t.activeItemIndex;t.onKeydown(e),this._multiple&&d&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==c&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,rt.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new IS(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ke(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Ke(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=(0,Mn.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ke(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Mn.T)(...this.options.map(t=>t._stateChanges)).pipe(Ke(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(va),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(Ca),n.Y36(n.SBq),n.Y36(xn,8),n.Y36(Ol,8),n.Y36(Fc,8),n.Y36(mp,8),n.Y36(ts,10),n.$8M("tabindex"),n.Y36(Mg),n.Y36(Xf),n.Y36(Eg,8))},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&(n.Gf(is,5),n.Gf(m0,5),n.Gf(Rm,5)),2&e){let r;n.iGM(r=n.CRH())&&(t.trigger=r.first),n.iGM(r=n.CRH())&&(t.panel=r.first),n.iGM(r=n.CRH())&&(t._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[n.qOj,n.TTD]}),i})(),Jc=(()=>{class i extends Dg{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,t,r){const d=this._getItemHeight();return Math.min(Math.max(0,d*e-t+d/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Ke(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=Fb(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function kv(i,s,e,t){return ie+t?Math.max(0,i-t+s):e}((e+t)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new v0(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),d=this.multiple?56:32;let h;if(this.multiple)h=40;else if(this.disableOptionCentering)h=16;else{let a=this._selectionModel.selected[0]||this.options.first;h=a&&a.group?32:16}r||(h*=-1);const c=0-(e.left+h-(r?d:0)),o=e.right+h-t.width+(r?0:d);c>0?h+=c+8:o>0&&(h-=o+8),this._overlayDir.offsetX=Math.round(h),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const d=this._getItemHeight(),h=(d-this._triggerRect.height)/2,c=Math.floor(256/d);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*d:this._scrollTop===r?(e-(this._getItemCount()-c))*d+(d-(this._getItemCount()*d-256)%d):t-d/2,Math.round(-1*o-h))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),d=this._triggerRect.top-8,h=r.height-this._triggerRect.bottom-8,c=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-c-this._triggerRect.height;a>h?this._adjustPanelUp(a,h):c>d?this._adjustPanelDown(c,d,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const r=Math.round(e-t);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,r){const d=Math.round(e-t);if(this._scrollTop+=d,this._offsetY+=d,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),r=Math.min(t*e,256),h=t*e-r;let c;c=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),c+=Fb(c,this.options,this.optionGroups);const o=r/2;this._scrollTop=this._calculateOverlayScroll(c,o,h),this._offsetY=this._calculateOverlayOffsetY(c,o,h),this._checkOverlayWithinViewport(h)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,x0,5),n.Suo(r,Al,5),n.Suo(r,dm,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.customTrigger=d.first),n.iGM(d=n.CRH())&&(t.options=d),n.iGM(d=n.CRH())&&(t.optionGroups=d)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&n.NdJ("keydown",function(d){return t._handleKeydown(d)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(n.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-activedescendant",t._getAriaActiveDescendant()),n.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[n._Bn([{provide:_u,useExisting:i},{provide:cm,useExisting:i}]),n.qOj],ngContentSelectors:Rp,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(n.F$t(Pp),n.TgZ(0,"div",0,1),n.NdJ("click",function(){return t.toggle()}),n.TgZ(3,"div",2),n.YNc(4,Hp,2,1,"span",3),n.YNc(5,_0,3,2,"span",4),n.qZA(),n.TgZ(6,"div",5),n._UZ(7,"div",6),n.qZA()(),n.YNc(8,b0,4,14,"ng-template",7),n.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=n.MAs(1);n.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),n.xp6(3),n.Q6J("ngSwitch",t.empty),n.uIk("id",t._valueId),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1),n.xp6(3),n.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},dependencies:[x.mk,x.RF,x.n9,x.ED,Rm,Pm],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[fy.transformPanelWrap,fy.transformPanel]},changeDetection:0}),i})(),Lu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[A0],imports:[x.ez,El,hm,ht,Ds,Hl,hm,ht]}),i})();const my=["tooltip"],Hg="tooltip-panel",Pg=Ja({passive:!0}),Rg=new n.OlP("mat-tooltip-scroll-strategy"),Zc={provide:Rg,deps:[rr],useFactory:function or(i){return()=>i.scrollStrategies.reposition({scrollThrottle:20})}},D0=new n.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function H0(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let fE=(()=>{class i{constructor(e,t,r,d,h,c,o,a,l,u,p,m){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=d,this._ngZone=h,this._platform=c,this._ariaDescriber=o,this._focusMonitor=a,this._dir=u,this._defaultOptions=p,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Se.x,this._scrollStrategy=l,this._document=m,p&&(p.position&&(this.position=p.position),p.touchGestures&&(this.touchGestures=p.touchGestures)),u.change.pipe(Ke(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Oe(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=gn(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=gn(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ke(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,Pg)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new xa(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=t.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(Ke(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${Hg}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ke(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Ke(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!ri(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),d=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...d.main}),this._addOffset({...r.fallback,...d.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:d,y:h}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:d,originY:h}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:d,y:h}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:d,overlayY:h}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,rt.q)(1),Ke(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:d}=e;let h;if(h="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===d?"above":"below",h!==this._currentPosition){const c=this._overlayRef;if(c){const o=`${this._cssClassPrefix}-${Hg}-`;c.removePanelClass(o+this._currentPosition),c.addPanelClass(o+h)}this._currentPosition=h}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const r=t.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,Pg)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),i})(),ks=(()=>{class i extends fE{constructor(e,t,r,d,h,c,o,a,l,u,p,m){super(e,t,r,d,h,c,o,a,l,u,p,m),this._tooltipComponent=by}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.SBq),n.Y36(Tl),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(yn),n.Y36(Kd),n.Y36(Ii),n.Y36(Rg),n.Y36(xn,8),n.Y36(D0,8),n.Y36(x.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[n.qOj]}),i})(),_y=(()=>{class i{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Se.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,d=this._hideAnimation;if(t.classList.remove(e?d:r),t.classList.add(e?r:d),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const h=getComputedStyle(t);("0s"===h.getPropertyValue("animation-duration")||"none"===h.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i}),i})(),by=(()=>{class i extends _y{constructor(e,t,r){super(e,r),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(Jf),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&n.Gf(my,7),2&e){let r;n.iGM(r=n.CRH())&&(t._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&n.NdJ("mouseleave",function(d){return t._handleMouseLeave(d)}),2&e&&n.Udp("zoom",t.isVisible()?1:null)},features:[n.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(n.TgZ(0,"div",0,1),n.NdJ("animationend",function(d){return t._handleAnimationEnd(d)}),n.ALo(2,"async"),n._uU(3),n.qZA()),2&e){let r;n.ekj("mat-tooltip-handset",null==(r=n.lcZ(2,4,t._isHandset))?null:r.matches),n.Q6J("ngClass",t.tooltipClass),n.xp6(3),n.Oqu(t.message)}},dependencies:[x.mk,x.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),i})(),Ls=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Zc],imports:[bl,x.ez,El,ht,ht,Ds]}),i})();function kg(i,s){if(1&i&&(n.TgZ(0,"mat-option",19),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function P0(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",16)(1,"mat-select",17),n.NdJ("selectionChange",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d._changePageSize(r.value))}),n.YNc(2,kg,2,2,"mat-option",18),n.qZA()()}if(2&i){const e=n.oxw(2);n.Q6J("appearance",e._formFieldAppearance)("color",e.color),n.xp6(1),n.Q6J("value",e.pageSize)("disabled",e.disabled)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),n.xp6(1),n.Q6J("ngForOf",e._displayedPageSizeOptions)}}function wy(i,s){if(1&i&&(n.TgZ(0,"div",20),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.pageSize)}}function R0(i,s){if(1&i&&(n.TgZ(0,"div",12)(1,"div",13),n._uU(2),n.qZA(),n.YNc(3,P0,3,8,"mat-form-field",14),n.YNc(4,wy,2,1,"div",15),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",e._intl.itemsPerPageLabel," "),n.xp6(1),n.Q6J("ngIf",e._displayedPageSizeOptions.length>1),n.xp6(1),n.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function k0(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.firstPage())}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",22),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),n.uIk("aria-label",e._intl.firstPageLabel)}}function Qc(i,s){if(1&i){const e=n.EpF();n.O4$(),n.kcU(),n.TgZ(0,"button",23),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.lastPage())}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",24),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),n.uIk("aria-label",e._intl.lastPageLabel)}}let Ip=(()=>{class i{constructor(){this.changes=new Se.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const d=e*t;return`${d+1} \u2013 ${d<(r=Math.max(r,0))?Math.min(d+t,r):d+t} of ${r}`}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const yy={provide:Ip,deps:[[new n.FiY,new n.tp0,Ip]],useFactory:function Lg(i){return i||new Ip}},Og=new n.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),gE=Qr(Zh(class{}));let Ay=(()=>{class i extends gE{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new n.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:d,pageSizeOptions:h,hidePageSize:c,showFirstLastButtons:o}=r;null!=d&&(this._pageSize=d),null!=h&&(this._pageSizeOptions=h),null!=c&&(this._hidePageSize=c),null!=o&&(this._showFirstLastButtons=o)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(gn(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=gn(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(gn(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>gn(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Oe(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Oe(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[n.qOj]}),i})(),vy=(()=>{class i extends Ay{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ip),n.Y36(n.sBO),n.Y36(Og,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[n.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,R0,5,3,"div",2),n.TgZ(3,"div",3)(4,"div",4),n._uU(5),n.qZA(),n.YNc(6,k0,3,5,"button",5),n.TgZ(7,"button",6),n.NdJ("click",function(){return t.previousPage()}),n.O4$(),n.TgZ(8,"svg",7),n._UZ(9,"path",8),n.qZA()(),n.kcU(),n.TgZ(10,"button",9),n.NdJ("click",function(){return t.nextPage()}),n.O4$(),n.TgZ(11,"svg",7),n._UZ(12,"path",10),n.qZA()(),n.YNc(13,Qc,3,5,"button",11),n.qZA()()()),2&e&&(n.xp6(2),n.Q6J("ngIf",!t.hidePageSize),n.xp6(3),n.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),n.xp6(1),n.Q6J("ngIf",t.showFirstLastButtons),n.xp6(1),n.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),n.uIk("aria-label",t._intl.previousPageLabel),n.xp6(3),n.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),n.uIk("aria-label",t._intl.nextPageLabel),n.xp6(3),n.Q6J("ngIf",t.showFirstLastButtons))},dependencies:[x.sg,x.O5,Ot,ar,Jc,Al,ks],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),i})(),Iu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[yy],imports:[x.ez,bi,Lu,Ls,ht]}),i})();var Bl=E(1005);const L0=["mat-menu-item",""];function Ty(i,s){1&i&&(n.O4$(),n.TgZ(0,"svg",2),n._UZ(1,"polygon",3),n.qZA())}const Op=["*"];function _E(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",0),n.NdJ("keydown",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._handleKeydown(r))})("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._onAnimationStart(r))})("@transformMenu.done",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._onAnimationDone(r))}),n.TgZ(1,"div",1),n.Hsn(2),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),n.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Bp={transformMenu:fn("transformMenu",[Pt("void",He({opacity:0,transform:"scale(0.8)"})),xt("void => enter",Tt("120ms cubic-bezier(0, 0, 0.2, 1)",He({opacity:1,transform:"scale(1)"}))),xt("* => void",Tt("100ms 25ms linear",He({opacity:0})))]),fadeInItems:fn("fadeInItems",[Pt("showing",He({opacity:1})),xt("void => *",[He({opacity:0}),Tt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},I0=new n.OlP("MatMenuContent"),Vp=new n.OlP("MAT_MENU_PANEL"),j0=mr(Qr(class{}));let Kc=(()=>{class i extends j0{constructor(e,t,r,d,h){super(),this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=d,this._changeDetectorRef=h,this.role="menuitem",this._hovered=new Se.x,this._focused=new Se.x,this._highlighted=!1,this._triggersSubmenu=!1,d?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class i{constructor(e,t,r,d){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._changeDetectorRef=d,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new n.n_E,this._tabSubscription=Rt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Se.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new n.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+xy++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Oe(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Oe(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Sc(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Zt(this._directDescendantItems),(0,_n.w)(e=>(0,Mn.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const r=e.toArray(),d=Math.max(0,Math.min(r.length-1,t.activeItemIndex||0));r[d]&&!r[d].disabled?t.setActiveItem(d):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Zt(this._directDescendantItems),(0,_n.w)(t=>(0,Mn.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:ri(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,d=Object.keys(this._classList).find(h=>h.startsWith(this._elevationPrefix));(!d||d===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,t=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===t,r["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Zt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Bg),n.Y36(n.sBO))},i.\u0275dir=n.lG2({type:i,contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,I0,5),n.Suo(r,Kc,5),n.Suo(r,Kc,4)),2&e){let d;n.iGM(d=n.CRH())&&(t.lazyContent=d.first),n.iGM(d=n.CRH())&&(t._allItems=d),n.iGM(d=n.CRH())&&(t.items=d)}},viewQuery:function(e,t){if(1&e&&n.Gf(n.Rgc,5),2&e){let r;n.iGM(r=n.CRH())&&(t.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),i})(),jp=(()=>{class i extends Xc{constructor(e,t,r,d){super(e,t,r,d),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Bg),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&n.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[n._Bn([{provide:Vp,useExisting:i}]),n.qOj],ngContentSelectors:Op,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,_E,3,6,"ng-template"))},dependencies:[x.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Bp.transformMenu,Bp.fadeInItems]},changeDetection:0}),i})();const Vg=new n.OlP("mat-menu-scroll-strategy"),F0={provide:Vg,deps:[rr],useFactory:function N0(i){return()=>i.scrollStrategies.reposition()}},jg=Ja({passive:!0});let CE=(()=>{class i{constructor(e,t,r,d,h,c,o,a,l){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=c,this._dir=o,this._focusMonitor=a,this._ngZone=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Rt.w0.EMPTY,this._hoverSubscription=Rt.w0.EMPTY,this._menuCloseSubscription=Rt.w0.EMPTY,this._handleTouchStart=u=>{Ss(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new n.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new n.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=d,this._parentMaterialMenu=h instanceof Xc?h:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,jg),c&&(c._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,jg),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),d=r.positionStrategy;this._setPosition(e,d),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Xc&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Ke(e.close)).subscribe(()=>{d.withLockedPosition(!1).reapplyLastPosition(),d.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof Xc?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Ce.h)(r=>"void"===r.toState),(0,rt.q)(1),Ke(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Sl({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const d="start"===r.connectionPair.overlayX?"after":"before",h="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(d,h)):e.setPositionClasses(d,h)})}_setPosition(e,t){let[r,d]="before"===e.xPosition?["end","start"]:["start","end"],[h,c]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[o,a]=[h,c],[l,u]=[r,d],p=0;if(this.triggersSubmenu()){if(u=r="before"===e.xPosition?"start":"end",d=l="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const m=this._parentMaterialMenu.items.first;this._parentInnerPadding=m?m._getHostElement().offsetTop:0}p="bottom"===h?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(o="top"===h?"bottom":"top",a="top"===c?"bottom":"top");t.withPositions([{originX:r,originY:o,overlayX:l,overlayY:h,offsetY:p},{originX:d,originY:o,overlayX:u,overlayY:h,offsetY:p},{originX:r,originY:a,overlayX:l,overlayY:c,offsetY:-p},{originX:d,originY:a,overlayX:u,overlayY:c,offsetY:-p}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,xe.of)(),d=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Ce.h)(h=>h!==this._menuItemInstance),(0,Ce.h)(()=>this._menuOpen)):(0,xe.of)();return(0,Mn.T)(e,r,d,t)}_handleMousedown(e){Qf(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Ce.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,Bl.g)(0,Aa)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Xc&&this.menu._isAnimating?this.menu._animationDone.pipe((0,rt.q)(1),(0,Bl.g)(0,Aa),Ke(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Ir(e.templateRef,this._viewContainerRef)),this._portal}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.SBq),n.Y36(n.s_b),n.Y36(Vg),n.Y36(Vp,8),n.Y36(Kc,10),n.Y36(xn,8),n.Y36(Ii),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,hostVars:3,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t._handleClick(d)})("mousedown",function(d){return t._handleMousedown(d)})("keydown",function(d){return t._handleKeydown(d)}),2&e&&n.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),i})(),My=(()=>{class i extends CE{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[n.qOj]}),i})(),Ug=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[F0],imports:[x.ez,ht,Kr,El,Ds,ht]}),i})();const AE=["*"];let Ng;function Up(i){return function vE(){if(void 0===Ng&&(Ng=null,typeof window<"u")){const i=window;void 0!==i.trustedTypes&&(Ng=i.trustedTypes.createPolicy("angular#components",{createHTML:s=>s}))}return Ng}()?.createHTML(i)||i}function Y0(i){return Error(`Unable to find icon with the name "${i}"`)}function q0(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function Fg(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}class rs{constructor(s,e,t){this.url=s,this.svgText=e,this.options=t}}let xo=(()=>{class i{constructor(e,t,r,d){this._httpClient=e,this._sanitizer=t,this._errorHandler=d,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,d){return this._addSvgIconConfig(e,t,new rs(r,null,d))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,d){const h=this._sanitizer.sanitize(n.q3G.HTML,r);if(!h)throw Fg(r);const c=Up(h);return this._addSvgIconConfig(e,t,new rs("",c,d))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new rs(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const d=this._sanitizer.sanitize(n.q3G.HTML,t);if(!d)throw Fg(t);const h=Up(d);return this._addSvgIconSetConfig(e,new rs("",h,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,e);if(!t)throw q0(e);const r=this._cachedIconsByUrl.get(t);return r?(0,xe.of)(ed(r)):this._loadSvgIconFromConfig(new rs(e,null)).pipe((0,nn.b)(d=>this._cachedIconsByUrl.set(t,d)),(0,_t.U)(d=>ed(d)))}getNamedSvgIcon(e,t=""){const r=Yg(t,e);let d=this._svgIconConfigs.get(r);if(d)return this._getSvgFromConfig(d);if(d=this._getIconConfigFromResolvers(t,e),d)return this._svgIconConfigs.set(r,d),this._getSvgFromConfig(d);const h=this._iconSetConfigs.get(t);return h?this._getSvgFromIconSetConfigs(e,h):(0,mi._)(Y0(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,xe.of)(ed(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,_t.U)(t=>ed(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,xe.of)(r):oa(t.filter(h=>!h.svgText).map(h=>this._loadSvgIconSetFromConfig(h).pipe((0,Ri.K)(c=>{const a=`Loading icon set URL: ${this._sanitizer.sanitize(n.q3G.RESOURCE_URL,h.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(a)),(0,xe.of)(null)})))).pipe((0,_t.U)(()=>{const h=this._extractIconWithNameFromAnySet(e,t);if(!h)throw Y0(e);return h}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const d=t[r];if(d.svgText&&d.svgText.toString().indexOf(e)>-1){const h=this._svgElementFromConfig(d),c=this._extractSvgIconFromSet(h,e,d.options);if(c)return c}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,nn.b)(t=>e.svgText=t),(0,_t.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,xe.of)(null):this._fetchIcon(e).pipe((0,nn.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const d=e.querySelector(`[id="${t}"]`);if(!d)return null;const h=d.cloneNode(!0);if(h.removeAttribute("id"),"svg"===h.nodeName.toLowerCase())return this._setSvgAttributes(h,r);if("symbol"===h.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(h),r);const c=this._svgElementFromString(Up(""));return c.appendChild(h),this._setSvgAttributes(c,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(Up("")),r=e.attributes;for(let d=0;dUp(a)),Sr(()=>this._inProgressUrlFetches.delete(h)),(0,qs.B)());return this._inProgressUrlFetches.set(h,o),o}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(Yg(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;rs?s.pathname+s.search:""}}}),Dy=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Fp=Dy.map(i=>`[${i}]`).join(", "),$0=/^url\(['"]?#(.*?)['"]?\)$/;let Ln=(()=>{class i extends Ey{constructor(e,t,r,d,h,c){super(e),this._iconRegistry=t,this._location=d,this._errorHandler=h,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Rt.w0.EMPTY,c&&(c.color&&(this.color=this.defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Oe(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,d)=>{r.forEach(h=>{d.setAttribute(h.name,`url('${e}#${h.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(Fp),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let d=0;d{const c=t[d],o=c.getAttribute(h),a=o?o.match($0):null;if(a){let l=r.get(c);l||(l=[],r.set(c,l)),l.push({name:h,value:a[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe((0,rt.q)(1)).subscribe(d=>this._setSvgElement(d),d=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${d.message}`))})}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(xo),n.$8M("aria-hidden"),n.Y36(G0),n.Y36(n.qLn),n.Y36(TE,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(n.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),n.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.qOj],ngContentSelectors:AE,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),i})(),Vl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})(),J0=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Iu,Ug,Vl,bi,Gs,x.ez]}),i})();var Z0=E(5861);function Q0(i,s){}class Yp{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let Hy=(()=>{class i extends wo{constructor(e,t,r,d,h,c,o,a){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=d,this._interactivityChecker=h,this._ngZone=c,this._overlayRef=o,this._focusMonitor=a,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=l=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(l);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=ho(),d=this._elementRef.nativeElement;(!r||r===this._document.body||r===d||d.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=ho();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ho())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Xd),n.Y36(x.K0,8),n.Y36(Yp),n.Y36(Gh),n.Y36(n.R0b),n.Y36(Oc),n.Y36(Ii))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&n.Gf(Ma,7),2&e){let r;n.iGM(r=n.CRH())&&(t._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&n.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[n.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&n.YNc(0,Q0,0,0,"ng-template",0)},dependencies:[Ma],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),i})();class qp{constructor(s,e){this.overlayRef=s,this.config=e,this.closed=new Se.x,this.disableClose=e.disableClose,this.backdropClick=s.backdropClick(),this.keydownEvents=s.keydownEvents(),this.outsidePointerEvents=s.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!ri(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(s,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(s),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(s="",e=""){return this.overlayRef.updateSize({width:s,height:e}),this}addPanelClass(s){return this.overlayRef.addPanelClass(s),this}removePanelClass(s){return this.overlayRef.removePanelClass(s),this}}const qg=new n.OlP("DialogScrollStrategy"),xE=new n.OlP("DialogData"),Da=new n.OlP("DefaultDialogConfig"),zg={provide:qg,deps:[rr],useFactory:function K0(i){return()=>i.scrollStrategies.block()}};let X0=0,br=(()=>{class i{constructor(e,t,r,d,h,c){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=d,this._overlayContainer=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Se.x,this._afterOpenedAtThisLevel=new Se.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Cn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zt(void 0))),this._scrollStrategy=c}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Yp,...t}).id=t.id||"cdk-dialog-"+X0++,t.id&&this.getDialogById(t.id);const d=this._getOverlayConfig(t),h=this._overlay.create(d),c=new qp(h,t),o=this._attachContainer(h,c,t);return c.containerInstance=o,this._attachDialogContent(e,c,o,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(c),c.closed.subscribe(()=>this._removeOpenDialog(c,!0)),this.afterOpened.next(c),c}closeAll(){Gg(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){Gg(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),Gg(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Sl({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){const d=r.injector??r.viewContainerRef?.injector,h=[{provide:Yp,useValue:r},{provide:qp,useValue:t},{provide:Oc,useValue:e}];let c;r.container?"function"==typeof r.container?c=r.container:(c=r.container.type,h.push(...r.container.providers(r))):c=Hy;const o=new xa(c,r.viewContainerRef,n.zs3.create({parent:d||this._injector,providers:h}),r.componentFactoryResolver);return e.attach(o).instance}_attachDialogContent(e,t,r,d){const h=this._createInjector(d,t,r);if(e instanceof n.Rgc){let c={$implicit:d.data,dialogRef:t};d.templateContext&&(c={...c,..."function"==typeof d.templateContext?d.templateContext():d.templateContext}),r.attachTemplatePortal(new Ir(e,null,c,h))}else{const c=r.attachComponentPortal(new xa(e,d.viewContainerRef,h,d.componentFactoryResolver));t.componentInstance=c.instance}}_createInjector(e,t,r){const d=e&&e.viewContainerRef&&e.viewContainerRef.injector,h=[{provide:xE,useValue:e.data},{provide:qp,useValue:t}];return e.providers&&("function"==typeof e.providers?h.push(...e.providers(t,e,r)):h.push(...e.providers)),e.direction&&(!d||!d.get(xn,null,n.XFs.Optional))&&h.push({provide:xn,useValue:{value:e.direction,change:(0,xe.of)()}}),n.zs3.create({parent:e.injector||d||this._injector,providers:h})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((d,h)=>{d?h.setAttribute("aria-hidden",d):h.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const d=t[r];d!==e&&"SCRIPT"!==d.nodeName&&"STYLE"!==d.nodeName&&!d.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(d,d.getAttribute("aria-hidden")),d.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(rr),n.LFG(n.zs3),n.LFG(Da,8),n.LFG(i,12),n.LFG(Ic),n.LFG(qg))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function Gg(i,s){let e=i.length;for(;e--;)s(i[e])}let Wg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[br,zg],imports:[El,Hs,bl,Hs]}),i})();function ex(i,s){}const td={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},$g={dialogContainer:fn("dialogContainer",[Pt("void, exit",He({opacity:0,transform:"scale(0.7)"})),Pt("enter",He({transform:"none"})),xt("* => enter",fu([Tt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",He({transform:"none",opacity:1})),gr("@*",pp(),{optional:!0})]),td),xt("* => void, * => exit",fu([Tt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",He({opacity:0})),gr("@*",pp(),{optional:!0})]),td)])};class nd{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=td.params.enterAnimationDuration,this.exitAnimationDuration=td.params.exitAnimationDuration}}let Py=(()=>{class i extends Hy{constructor(e,t,r,d,h,c,o,a){super(e,t,r,d,h,c,o,a),this._animationStateChanged=new n.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Xd),n.Y36(x.K0,8),n.Y36(nd),n.Y36(Gh),n.Y36(n.R0b),n.Y36(Oc),n.Y36(Ii))},i.\u0275cmp=n.Xpm({type:i,selectors:[["ng-component"]],features:[n.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),i})(),tx=(()=>{class i extends Py{constructor(e,t,r,d,h,c,o,a,l){super(e,t,r,d,h,c,o,l),this._changeDetectorRef=a,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||td.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||td.params.exitAnimationDuration}}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Xd),n.Y36(x.K0,8),n.Y36(nd),n.Y36(Gh),n.Y36(n.R0b),n.Y36(Oc),n.Y36(n.sBO),n.Y36(Ii))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&n.WFA("@dialogContainer.start",function(d){return t._onAnimationStart(d)})("@dialogContainer.done",function(d){return t._onAnimationDone(d)}),2&e&&(n.Ikx("id",t._config.id),n.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),n.d8E("@dialogContainer",t._getAnimationState()))},features:[n.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&n.YNc(0,ex,0,0,"ng-template",0)},dependencies:[Ma],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[$g.dialogContainer]}}),i})();class si{constructor(s,e,t){this._ref=s,this._containerInstance=t,this._afterOpened=new Se.x,this._beforeClosed=new Se.x,this._state=0,this.disableClose=e.disableClose,this.id=s.id,t._animationStateChanged.pipe((0,Ce.h)(r=>"opened"===r.state),(0,rt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Ce.h)(r=>"closed"===r.state),(0,rt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),s.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Mn.T)(this.backdropClick(),this.keydownEvents().pipe((0,Ce.h)(r=>27===r.keyCode&&!this.disableClose&&!ri(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function Ry(i,s,e){i._closeInteractionType=s,i.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(s){this._result=s,this._containerInstance._animationStateChanged.pipe((0,Ce.h)(e=>"closing"===e.state),(0,rt.q)(1)).subscribe(e=>{this._beforeClosed.next(s),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(s){let e=this._ref.config.positionStrategy;return s&&(s.left||s.right)?s.left?e.left(s.left):e.right(s.right):e.centerHorizontally(),s&&(s.top||s.bottom)?s.top?e.top(s.top):e.bottom(s.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(s="",e=""){return this._ref.updateSize(s,e),this}addPanelClass(s){return this._ref.addPanelClass(s),this}removePanelClass(s){return this._ref.removePanelClass(s),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const wr=new n.OlP("MatDialogData"),ky=new n.OlP("mat-dialog-default-options"),Ly=new n.OlP("mat-dialog-scroll-strategy"),Oy={provide:Ly,deps:[rr],useFactory:function Mo(i){return()=>i.scrollStrategies.block()}};let Jg=0,Is=(()=>{class i{constructor(e,t,r,d,h,c,o,a,l,u){this._overlay=e,this._defaultOptions=r,this._parentDialog=d,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Se.x,this._afterOpenedAtThisLevel=new Se.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Cn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zt(void 0))),this._scrollStrategy=c,this._dialog=t.get(br)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let r;(t={...this._defaultOptions||new nd,...t}).id=t.id||`${this._idPrefix}${Jg++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const d=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:nd,useValue:t},{provide:Yp,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(h,c,o)=>(r=new this._dialogRefConstructor(h,t,o),r.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:c.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=d.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const h=this.openDialogs.indexOf(r);h>-1&&(this.openDialogs.splice(h,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),oi=(()=>{class i extends Is{constructor(e,t,r,d,h,c,o,a){super(e,t,d,c,o,h,si,tx,wr,a)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(rr),n.LFG(n.zs3),n.LFG(x.Ye,8),n.LFG(ky,8),n.LFG(Ly),n.LFG(i,12),n.LFG(Ic),n.LFG(n.QbO,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),ME=0,Oi=(()=>{class i{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+ME++}ngOnInit(){this._dialogRef||(this._dialogRef=function By(i,s){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?s.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si,8),n.Y36(n.SBq),n.Y36(oi))},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&n.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),i})(),$i=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),i})(),Bi=(()=>{class i{constructor(){this.align="start"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),i})(),Zg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[oi,Oy],imports:[Wg,El,Hs,ht,ht]}),i})();var Vy=E(4327);const jl=[5,10,25,100];function zp(){return(zp=(0,Z0.Z)(function*(i,s){yield Fy(i),s()})).apply(this,arguments)}function Fy(i){return new Promise(s=>setTimeout(s,i))}function Jn(){const i=new nd;return i.disableClose=!0,i.autoFocus=!1,i}const Xg=new Intl.Collator("cs",{numeric:!0});function So(i,s,e){const t=s.active,r=s.direction;return t&&""!==r?i.sort((d,h)=>{const c=e(d,t),o=e(h,t);return Xg.compare(c,o)*("asc"===r?1:-1)}):i}function Eo(i,s,e,t,r){s=s.toLowerCase();let d="";return e.forEach(h=>{d+=";"+t(i,h)}),r&&(d+=";"+t(i,"uuid")),d.toLowerCase().includes(s)}function Ou(i,s){let e="";return i?.forEach(t=>{t.friendlyName===s&&(e=t.value)}),e}function Ha(i,s,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return s=s.filter(d=>!r.includes(d)),i.forEach(d=>{const h={};s.forEach(c=>{h[c]=(e(d,c)??"").split('"').join("''").trim()}),t.push(h)}),t}function Pa(i,s="csv",e="export"){if("csv"===s){const t=(o,a)=>null===a?"":a,r=Object.keys(i[0]),d=i.map(o=>r.map(a=>JSON.stringify(o[a],t)).join(","));d.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const h=d.join("\r\n"),c=new Blob([h],{type:"text/csv"});(0,Vy.saveAs)(c,`${e}.${s}`)}}const $y="GUI_CONFIG.PREF_PAGE_SIZE.";let Jy=(()=>{class i{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),e_=(()=>{class i{constructor(e){this.guiConfigService=e,this.defaultTableSizes=new Map,this.defaultTableSizes.set(C,25),this.defaultTableSizes.set(_x,25)}getTablePageSize(e){const t=this.guiConfigService.getNumber($y+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?this.defaultTableSizes.get(e)??10:r}setTablePageSize(e,t){this.guiConfigService.setNumber($y+e,t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Jy))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const _x="8",C="25";function BP(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.exportAllData.emit("csv"))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let VP=(()=>{class i{constructor(){this.exportDisplayedData=new n.vpe,this.exportAllData=new n.vpe}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(e,t){if(1&e&&(n.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA()(),n.TgZ(4,"mat-menu",null,2)(6,"button",3),n._uU(7),n.ALo(8,"translate"),n.qZA()(),n.TgZ(9,"mat-menu",null,4)(11,"button",3),n._uU(12,"Csv"),n.qZA()(),n.TgZ(13,"mat-menu",5,6)(15,"button",7),n.NdJ("click",function(){return t.exportDisplayedData.emit("csv")}),n._uU(16),n.ALo(17,"translate"),n.qZA(),n.YNc(18,BP,3,3,"button",8),n.qZA()()),2&e){const r=n.MAs(5),d=n.MAs(10),h=n.MAs(14);n.xp6(1),n.Q6J("matMenuTriggerFor",r),n.xp6(5),n.Q6J("matMenuTriggerFor",d),n.xp6(1),n.hij(" ",n.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),n.xp6(4),n.Q6J("matMenuTriggerFor",h),n.xp6(5),n.hij(" ",n.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),n.xp6(2),n.Q6J("ngIf",t.allowExportAll)}},dependencies:[jp,Kc,My,Ln,Ot,x.O5,it]}),i})();const jP=["topNav"];function UP(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-table-options",7),n.NdJ("exportDisplayedData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportDisplayedData.emit(r))})("exportAllData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportAllData.emit(r))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("allowExportAll",e.allowExportAll)}}function NP(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-table-options",7),n.NdJ("exportDisplayedData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportDisplayedData.emit(r))})("exportAllData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportAllData.emit(r))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("allowExportAll",e.allowExportAll)}}const FP=["*"];let as=(()=>{class i{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=jl,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new n.vpe,this.exportAllData=new n.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5),this.paginator._changePageSize(this.pageSize)}pageChangedTop(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}pageChangedBottom(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.paginator.page.emit(e),this.pageSize=e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,e.pageSize),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(e_))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&(n.Gf(jP,5),n.Gf(vy,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.topNav=r.first),n.iGM(r=n.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:FP,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),n.NdJ("page",function(d){return t.pageChangedTop(d)}),n.qZA(),n.YNc(4,UP,1,1,"perun-web-apps-table-options",4),n.qZA(),n.TgZ(5,"div",5),n.Hsn(6),n.qZA(),n.TgZ(7,"div",1)(8,"mat-paginator",6),n.NdJ("page",function(d){return t.pageChangedBottom(d)}),n.qZA(),n.YNc(9,NP,1,1,"perun-web-apps-table-options",4),n.qZA()()),2&e&&(n.xp6(3),n.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),n.xp6(1),n.Q6J("ngIf",!t.hideExport),n.xp6(4),n.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),n.xp6(1),n.Q6J("ngIf",!t.hideExport))},dependencies:[vy,x.O5,VP]}),i})(),yi=(()=>{class i{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],r=this.defaultConfig[e];let d=null;for(const h of t)h&&null==d&&(d=h[e]);return null===d?r:this.addMissingValuesToProperty(d,r)}addMissingValuesToProperty(e,t){if(null==e)return t;if("object"==typeof e&&!Array.isArray(e))for(const r of Object.keys(t))e[r]=this.addMissingValuesToProperty(e[r],t[r]);return e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var Wp=E(1214);let Bu=(()=>{class i{constructor(e,t,r,d,h){this.injector=e,this.store=t,this.dialog=r,this.route=d,this.oauthService=h,setTimeout(()=>{this.router=this.injector.get($n),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(c=>{c.idpFilter&&(this.filterShortname=String(c.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),d=.5+.25*Math.random(),h=e?{acr_values:e}:{},c=this.store.getProperty("oidc_client");if(c.oauth_scopes.split(" ").includes("offline_access")&&c.oauth_offline_access_consent_prompt&&(h.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(h.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(h.prompt?h.prompt+=" login":h.prompt="login",h.max_age="0"),"Linker"===this.store.getProperty("application")){h.prompt?h.prompt+=" login":h.prompt="login";const o=function Wy(i,s){const e=s.split("&");for(const t of e){const[r,d]=t.split("=");if(r.includes(i))return d}return""}("idphint",location.search.substring(1));o&&(h.idphint=o)}return{requestAccessToken:!0,issuer:c.oauth_authority,clientId:c.oauth_client_id,redirectUri:c.oauth_redirect_uri,postLogoutRedirectUri:c.oauth_post_logout_redirect_uri,responseType:c.oauth_response_type,scope:c.oauth_scopes,clockSkewInSec:1,timeoutFactor:d,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:h}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let r=null;return e.forEach(d=>{const h=d.split("=");"idpFilter"===h[0]&&t[h[1]]&&(this.filterShortname=h[1],r=t[h[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}startIdpFilterKeeper(){this.router.events.pipe((0,Ce.h)(e=>e instanceof Ni)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.zs3),n.LFG(yi),n.LFG(oi),n.LFG(Li),n.LFG(Wp.Ct))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),YP=(()=>{class i{constructor(e){this.dialogRef=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(n.TgZ(0,"h2",0),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[$i,it]}),i})();var qP=E(930);function yx(i,s){const e="object"==typeof s;return new Promise((t,r)=>{const d=new qP.Hp({next:h=>{t(h),d.unsubscribe()},error:r,complete:()=>{e?t(s.defaultValue):r(new xr.K)}});i.subscribe(d)})}function zP(i,s){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," info "),n.qZA())}function GP(i,s){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," warning "),n.qZA())}function WP(i,s){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," dangerous "),n.qZA())}function $P(i,s){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," check_circle "),n.qZA())}const JP=["*"];let na=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:JP,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0),n.YNc(1,zP,2,0,"mat-icon",1),n.YNc(2,GP,2,0,"mat-icon",1),n.YNc(3,WP,2,0,"mat-icon",1),n.YNc(4,$P,2,0,"mat-icon",1),n.Hsn(5),n.qZA()),2&e&&(n.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),n.xp6(1),n.Q6J("ngIf","info"===t.alert_type),n.xp6(1),n.Q6J("ngIf","warn"===t.alert_type),n.xp6(1),n.Q6J("ngIf","error"===t.alert_type),n.xp6(1),n.Q6J("ngIf","success"===t.alert_type))},dependencies:[Ln,x.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),i})(),ZP=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"translate"),n.qZA()(),n.TgZ(8,"div",3)(9,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(13),n.ALo(14,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),n.xp6(4),n.hij(" ",t.data.mfaRoleException?n.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):n.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),n.xp6(4),n.Q6J("hidden",t.data.mfaRoleException),n.xp6(1),n.hij(" ",n.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),n.xp6(2),n.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),n.xp6(1),n.hij(" ",n.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Oi,$i,Bi,Ot,na,it]}),i})(),QP=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),n._uU(3," info "),n.qZA(),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div"),n._uU(7),n.ALo(8,"translate"),n.qZA()()),2&e&&(n.xp6(4),n.hij(" ",n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),n.xp6(3),n.hij(" ",n.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Ln,it],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),i})(),KP=(()=>{class i{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wr),n.Y36(si))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"div",3)(8,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(12),n.ALo(13,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),n.xp6(4),n.hij(" ",n.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),n.xp6(4),n.hij(" ",n.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),n.xp6(3),n.hij(" ",n.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Oi,$i,Bi,Ot,na,it]}),i})(),Cx=(()=>{class i{constructor(e,t,r,d){this.dialog=e,this.oauthService=t,this.authService=r,this.store=d}openMfaWindow(e){let t=null,r=null;const d=Jn();d.width="450px",d.data={mfaRoleException:e};const h=this.dialog.open(ZP,d);let c=!1;if(h.afterClosed().subscribe(o=>{if(o){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const a=Jn();a.width="450px",a.panelClass="noBorderDialog",r=this.dialog.open(QP,a)}}else c=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const o=Jn();o.width="450px",o.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(KP,o)}return new ln.y(o=>{const a=setInterval(()=>t?.closed?(clearInterval(a),r.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),o.next(!0)):c?(clearInterval(a),o.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,d=window.top;return window.open(e,"_blank",`width=600,height=600,top=${d.outerHeight/2+d.screenY-300}, left=${d.outerWidth/2+d.screenX-300}`)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(oi),n.LFG(Wp.Ct),n.LFG(Bu),n.LFG(yi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ax=(()=>{class i{constructor(e,t,r,d,h,c,o,a){this.authService=e,this.oauthService=t,this.storeService=r,this.authResolver=d,this.authzService=h,this.dialog=c,this.router=o,this.mfaHandlerService=a,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return yx(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=Jn();this.dialog.open(YP,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return yx(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const r={};return t.split("&").forEach(d=>{const h=d.split("=");r[h[0]]=h[1]}),this.router.navigate(["service-access"],{queryParams:r,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,Ce.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let d=[];r&&(d=r.split("&"));const h={};return d.forEach(c=>{const o=c.split("=");h[o[0]]=o[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:h,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Bu),n.LFG(Wp.Ct),n.LFG(yi),n.LFG(dn),n.LFG(Va),n.LFG(oi),n.LFG($n),n.LFG(Cx))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),qE=(()=>{class i{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(xo),n.LFG(On))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),zE=(()=>{class i{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div",2)(7,"div",3)(8,"button",4),n.NdJ("click",function(){return t.close()}),n._uU(9),n.ALo(10,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),n.xp6(3),n.hij(" ",n.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),n.xp6(5),n.hij(" ",n.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Oi,$i,Bi,Ot,it]}),i})(),XP=(()=>{class i{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ji=(()=>{class i{constructor(e){this.translate=e,this.addNotification=new n.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){this.showInstantError("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR",null,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC")}showError(e,t,r,d,h){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===d&&void 0!==r?this.getDefaultActionMessage():d,delay:this.defaultErrorDelayMs,icon:"error_outline",action:h,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showInstantError(e,t,r,d,h){const c=r?this.translate.instant(r):null,o=d?this.translate.instant(d):null;o?this.showError(this.translate.instant(e),t,c,o,h):this.showError(this.translate.instant(e),t,c)}showSuccess(e,t,r,d){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===r&&void 0!==t?this.getDefaultActionMessage():r,delay:this.defaultSuccessDelayMs,icon:"done",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showInstantSuccess(e,t,r,d){const h=t?this.translate.instant(t):null,c=r?this.translate.instant(r):null;c?this.showSuccess(this.translate.instant(e),h,c,d):this.showSuccess(this.translate.instant(e),h)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(fd))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),GE=(()=>{class i{constructor(e,t,r,d,h,c,o,a){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=d,this.dialog=h,this.initAuthService=c,this.mfaHandlerService=o,this.oauthService=a}intercept(e,t){const r=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const d=Jn();d.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(zE,d),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Sr(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const r=this.apiRequestConfiguration.shouldHandleError(),d="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,nn.b)(h=>{h instanceof v.Zn&&d&&this.initAuthService.loadPrincipal()}),(0,Ri.K)(h=>{const c=h.error;if("MfaPrivilegeException"===c.type||"MfaRolePrivilegeException"===c.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===c.type).pipe((0,_n.w)(o=>o?("MfaRolePrivilegeException"===c.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,mi._)(()=>c)));{this.handleInvalidAccessTokenError(h);const o=this.formatErrors(h,e);return void 0===o?(0,mi._)(()=>h):(r&&this.notificator.showRPCError(o),(0,mi._)(()=>o))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let r;console.error(e);const d=e.error;if(d.errorId&&(r=d),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){if(!this.isLoggedIn()||"invalid_token"===e.error.error||null!=this.dialogRefSessionExpiration)return;const t=Jn();this.dialogRefSessionExpiration=this.dialog.open(zE,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Bu),n.LFG(XP),n.LFG(Ji),n.LFG(yi),n.LFG(oi),n.LFG(Ax),n.LFG(Cx),n.LFG(Wp.Ct))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),sC=(()=>{class i{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),eR=(()=>{class i{constructor(e,t,r,d){this.http=e,this.notificator=t,this.authService=r,this.storeService=d}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new v.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.get(r,{headers:this.getHeaders()}).pipe((0,Ri.K)(d=>this.formatErrors(d,r,null,t)))}put(e,t={},r=!0){const d=`${this.getApiUrl()}${e}`,h=JSON.stringify(t);return this.http.put(d,h,{headers:this.getHeaders()}).pipe((0,Ri.K)(c=>this.formatErrors(c,d,h,r)))}post(e,t={},r=!0){const d=`${this.getApiUrl()}${e}`,h=JSON.stringify(t);let c=this.getHeaders();return c=c.set("Content-Type","application/json; charset=utf-8"),this.http.post(d,h,{headers:c}).pipe((0,Ri.K)(o=>this.formatErrors(o,d,h,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,Ri.K)(d=>this.formatErrors(d,r,null,t)))}formatErrors(e,t,r,d){const h=e.error;return h.call=t,h.payload=r,d&&this.notificator.showRPCError(e.error),(0,mi._)(h)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Ji),n.LFG(Bu),n.LFG(yi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),$p=(()=>{class i{isAllSelected(e,t,r=(()=>!0)){const d=t.paginator.pageSize??0,h=t.paginator.pageIndex??0,c=t.paginator.hasNextPage(),o=t.data.length===t.filteredData.length;this.numCanBeSelected=0,this.pageStart=h*d,this.pageEnd=this.pageStart+d,this.numSelected=e,this.dataLength=o?t.data.length:t.filteredData.length;const a=t.sort;return c||(this.modulo=this.dataLength%d,this.pageEnd=0===this.modulo?this.pageStart+d:this.pageStart+this.modulo),this.pageIterator=0,(a?t.sortData(t.filteredData,a):t.filteredData).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?l(u)&&this.pageStart<=this.pageIterator&&this.pageIterator!0)){return t===e.data.reduce((d,h)=>d+Number(r(h)),0)}masterTogglePaginated(e,t,r,d=(()=>!0)){t.clear(),r&&e.data.forEach(h=>{d(h)&&t.select(h)})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),nR=(()=>{class i{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),r=navigator.languages.map(c=>c.split("-")[0]),d=location.search.substring(1).split("&");let h=null;for(const c of d){const o=c.split("=");"lang"===o[0]&&(h=o[1])}return h&&t.includes(h)?h:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Li),n.LFG(yi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),iR=(()=>{class i{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const d of e)if(d.newApps.admin===t||d.newApps.profile===t||d.newApps.pwdReset===t||d.newApps.consolidator===t||d.newApps.linker===t)return d;return e.filter(d=>"default"===d.name)[0]||e[0]}getUrlForOtherApplication(e,t){const d=window.location.href.split("/"),h=d[0]+"//"+d[2],c=i.getBrandContainingDomain(this.storeService.getAppsConfig().brands,h);let o;if(c.newApps[e])o=c.newApps[e],"pwdReset"===e&&(o+=`?login-namespace=${t}`);else switch(o=c.oldGuiDomain+"/fed",e){case"admin":o+="/gui/";break;case"profile":o+="/profile/";break;case"pwdReset":o+=`/pwd-reset/?login-namespace=${t}`}return o}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const oC=["*"],rR=["content"];function aR(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._onBackdropClicked())}),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function sR(i,s){1&i&&(n.TgZ(0,"mat-drawer-content"),n.Hsn(1,2),n.qZA())}const oR=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],lR=["mat-drawer","mat-drawer-content","*"];function cR(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._onBackdropClicked())}),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function dR(i,s){1&i&&(n.TgZ(0,"mat-sidenav-content"),n.Hsn(1,2),n.qZA())}const uR=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],hR=["mat-sidenav","mat-sidenav-content","*"],WE={transformDrawer:fn("transform",[Pt("open, open-instant",He({transform:"none",visibility:"visible"})),Pt("void",He({"box-shadow":"none",visibility:"hidden"})),xt("void => open-instant",Tt("0ms")),xt("void <=> open, open-instant => void",Tt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},fR=new n.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function mR(){return!1}}),vx=new n.OlP("MAT_DRAWER_CONTAINER");let lC=(()=>{class i extends xl{constructor(e,t,r,d,h){super(r,d,h),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(()=>JE)),n.Y36(n.SBq),n.Y36(Tl),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&n.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[n._Bn([{provide:xl,useExisting:i}]),n.qOj],ngContentSelectors:oC,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),i})(),$E=(()=>{class i{constructor(e,t,r,d,h,c,o,a){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=d,this._ngZone=h,this._interactivityChecker=c,this._doc=o,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Se.x,this._animationEnd=new Se.x,this._animationState="void",this.openedChange=new n.vpe(!0),this._openedStream=this.openedChange.pipe((0,Ce.h)(l=>l),(0,_t.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,Ce.h)(l=>l.fromState!==l.toState&&0===l.toState.indexOf("open")),(0,ac.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Ce.h)(l=>!l),(0,_t.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,Ce.h)(l=>l.fromState!==l.toState&&"void"===l.toState),(0,ac.h)(void 0)),this._destroyed=new Se.x,this.onPositionChanged=new n.vpe,this._modeChanged=new Se.x,this.openedChange.subscribe(l=>{l?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{ea(this._elementRef.nativeElement,"keydown").pipe((0,Ce.h)(l=>27===l.keyCode&&!this.disableClose&&!ri(l)),Ke(this._destroyed)).subscribe(l=>this._ngZone.run(()=>{this.close(),l.stopPropagation(),l.preventDefault()}))}),this._animationEnd.pipe(mo((l,u)=>l.fromState===u.fromState&&l.toState===u.toState)).subscribe(l=>{const{fromState:u,toState:p}=l;(0===p.indexOf("open")&&"void"===u||"void"===p&&0===u.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Oe(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Oe(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Oe(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(d=>{this.openedChange.pipe((0,rt.q)(1)).subscribe(h=>d(h?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Xd),n.Y36(Ii),n.Y36(yn),n.Y36(n.R0b),n.Y36(Gh),n.Y36(x.K0,8),n.Y36(vx,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&n.Gf(rR,5),2&e){let r;n.iGM(r=n.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&n.WFA("@transform.start",function(d){return t._animationStarted.next(d)})("@transform.done",function(d){return t._animationEnd.next(d)}),2&e&&(n.uIk("align",null),n.d8E("@transform",t._animationState),n.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:oC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},dependencies:[xl],encapsulation:2,data:{animation:[WE.transformDrawer]},changeDetection:0}),i})(),JE=(()=>{class i{constructor(e,t,r,d,h,c=!1,o){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=d,this._animationMode=o,this._drawers=new n.n_E,this.backdropClick=new n.vpe,this._destroyed=new Se.x,this._doCheckSubject=new Se.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Se.x,e&&e.change.pipe(Ke(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),h.change().pipe(Ke(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=c}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Oe(e)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(e){this._backdropOverride=null==e?null:Oe(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Zt(this._allDrawers),Ke(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Zt(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Nh.b)(10),Ke(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,Ce.h)(t=>t.fromState!==t.toState),Ke(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Ke(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Ke(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,rt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Ke((0,Mn.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(xn,8),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(va),n.Y36(fR),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,lC,5),n.Suo(r,$E,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._content=d.first),n.iGM(d=n.CRH())&&(t._allDrawers=d)}},viewQuery:function(e,t){if(1&e&&n.Gf(lC,5),2&e){let r;n.iGM(r=n.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[n._Bn([{provide:vx,useExisting:i}])],ngContentSelectors:lR,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(n.F$t(oR),n.YNc(0,aR,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,sR,2,0,"mat-drawer-content",1)),2&e&&(n.Q6J("ngIf",t.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!t._content))},dependencies:[x.O5,lC],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),i})(),Tx=(()=>{class i extends lC{constructor(e,t,r,d,h){super(e,t,r,d,h)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(()=>QE)),n.Y36(n.SBq),n.Y36(Tl),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&n.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[n._Bn([{provide:xl,useExisting:i}]),n.qOj],ngContentSelectors:oC,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),i})(),ZE=(()=>{class i extends $E{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Oe(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=gn(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=gn(e)}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(n.uIk("align",null),n.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),n.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[n.qOj],ngContentSelectors:oC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},dependencies:[xl],encapsulation:2,data:{animation:[WE.transformDrawer]},changeDetection:0}),i})(),QE=(()=>{class i extends JE{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,Tx,5),n.Suo(r,ZE,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._content=d.first),n.iGM(d=n.CRH())&&(t._allDrawers=d)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[n._Bn([{provide:vx,useExisting:i}]),n.qOj],ngContentSelectors:hR,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(n.F$t(uR),n.YNc(0,cR,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,dR,2,0,"mat-sidenav-content",1)),2&e&&(n.Q6J("ngIf",t.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!t._content))},dependencies:[x.O5,Tx],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),i})(),KE=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,ht,Ds,Ds,ht]}),i})();const XE=Ja({passive:!0});let gR=(()=>{class i{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Pn.E;const t=ai(e),r=this._monitoredElements.get(t);if(r)return r.subject;const d=new Se.x,h="cdk-text-field-autofilled",c=o=>{"cdk-text-field-autofill-start"!==o.animationName||t.classList.contains(h)?"cdk-text-field-autofill-end"===o.animationName&&t.classList.contains(h)&&(t.classList.remove(h),this._ngZone.run(()=>d.next({target:o.target,isAutofilled:!1}))):(t.classList.add(h),this._ngZone.run(()=>d.next({target:o.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",c,XE),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:d,unlisten:()=>{t.removeEventListener("animationstart",c,XE)}}),d}stopMonitoring(e){const t=ai(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),_R=(()=>{class i{constructor(e,t,r,d){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new Se.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=h=>{this._hasFocus="focus"===h.type},this._document=d,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=gn(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=gn(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=Oe(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{ea(this._getWindow(),"resize").pipe(Dc(16),Ke(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",r=this._platform.FIREFOX,d=r&&this._hasFocus,h=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";d&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(h);const c=e.scrollHeight-4;return e.classList.remove(h),d&&(e.style.marginBottom=t),c}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,r=t.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;const d=this._measureScrollHeight(),h=Math.max(d,this._cachedPlaceholderHeight||0);t.style.height=`${h}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,r)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(yn),n.Y36(n.R0b),n.Y36(x.K0,8))},i.\u0275dir=n.lG2({type:i,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&n.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),i})(),eD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const tD=new n.OlP("MAT_INPUT_VALUE_ACCESSOR"),bR=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let wR=0;const yR=Jh(class{constructor(i,s,e,t){this._defaultErrorStateMatcher=i,this._parentForm=s,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Se.x}});let Ra=(()=>{class i extends yR{constructor(e,t,r,d,h,c,o,a,l,u){super(c,d,h,r),this._elementRef=e,this._platform=t,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+wR++,this.focused=!1,this.stateChanges=new Se.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>X_().has(g)),this._iOSKeyupListener=g=>{const f=g.target;!f.value&&0===f.selectionStart&&0===f.selectionEnd&&(f.setSelectionRange(1,1),f.setSelectionRange(0,0))};const p=this._elementRef.nativeElement,m=p.nodeName.toLowerCase();this._inputValueAccessor=o||p,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&l.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===m,this._isTextarea="textarea"===m,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Oe(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(kn.required)??!1}set required(e){this._required=Oe(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&X_().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Oe(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=t,t?r.setAttribute("placeholder",t):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){bR.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(yn),n.Y36(ts,10),n.Y36(Ol,8),n.Y36(Fc,8),n.Y36(Ca),n.Y36(tD,10),n.Y36(gR),n.Y36(n.R0b),n.Y36(mp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&n.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(n.Ikx("disabled",t.disabled)("required",t.required),n.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),n.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[n._Bn([{provide:_u,useExisting:i}]),n.qOj,n.TTD]}),i})(),cC=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Ca],imports:[eD,Hl,ht,eD,Hl]}),i})();function CR(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let AR=(()=>{class i{constructor(e,t,r,d,h){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=d,this.storeService=h,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",E(4147).i8)}close(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(bn),n.Y36(Ji),n.Y36(Vo),n.Y36(yi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"input",2,3),n.NdJ("ngModelChange",function(d){return t.subject=d}),n.qZA(),n.YNc(10,CR,3,3,"mat-error",4),n.qZA(),n.TgZ(11,"mat-form-field")(12,"mat-label"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"textarea",5),n.NdJ("ngModelChange",function(d){return t.message=d}),n.ALo(16,"translate"),n._uU(17," "),n.qZA(),n.TgZ(18,"mat-hint"),n._uU(19),n.ALo(20,"translate"),n.qZA()()(),n.TgZ(21,"div",6)(22,"div",7)(23,"button",8),n.NdJ("click",function(){return t.close()}),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.TgZ(26,"button",9),n.NdJ("click",function(){return t.sendBugReport()}),n._uU(27),n.ALo(28,"translate"),n.qZA()()()),2&e){const r=n.MAs(9);n.xp6(1),n.Oqu(n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),n.xp6(5),n.Oqu(n.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),n.xp6(2),n.Q6J("ngModel",t.subject),n.xp6(2),n.Q6J("ngIf",r.invalid),n.xp6(3),n.Oqu(n.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),n.xp6(2),n.s9C("placeholder",n.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),n.Q6J("ngModel",t.message),n.xp6(4),n.Oqu(n.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),n.xp6(5),n.hij(" ",n.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",r.invalid),n.xp6(1),n.hij(" ",n.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[x.O5,Gi,Wi,ns,Uc,Ot,es,ar,Sw,ta,Ra,Oi,$i,Bi,it],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})(),vR=(()=>{class i{transform(e,t,r){return e[`${r}_${t}`]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"localisedText",type:i,pure:!0}),i})(),TR=(()=>{class i{transform(e,t){return e["link_"+t]||e.link_en}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"localisedLink",type:i,pure:!0}),i})(),xR=(()=>{class i{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"footerLogoPath",type:i,pure:!0}),i})();function MR(i,s){if(1&i&&(n.TgZ(0,"a",13),n.ALo(1,"localisedLink"),n._UZ(2,"img",14),n.ALo(3,"footerLogoPath"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("href",n.xi3(1,2,e,t.language),n.LSH),n.xp6(2),n.s9C("src",n.lcZ(3,5,e.logo),n.LSH)}}function SR(i,s){if(1&i&&(n.TgZ(0,"span"),n._UZ(1,"img",14),n.ALo(2,"footerLogoPath"),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.s9C("src",n.lcZ(2,1,e.logo),n.LSH)}}function ER(i,s){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,MR,4,7,"a",11),n.ALo(2,"localisedLink"),n.YNc(3,SR,3,3,"span",12),n.ALo(4,"localisedLink"),n.qZA()),2&i){const e=s.$implicit,t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",n.xi3(2,2,e,t.language)),n.xp6(2),n.Q6J("ngIf",!n.xi3(4,5,e,t.language))}}const DR=function(i){return{"min-height":i}};function HR(i,s){if(1&i&&(n.TgZ(0,"div",10),n.YNc(1,ER,5,8,"div",5),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw();n.Q6J("ngStyle",n.VKq(2,DR,t.columnContentHeight+"px")),n.xp6(1),n.Q6J("ngForOf",e.elements)}}const Ul=function(i){return{color:i}};function PR(i,s){if(1&i&&(n.TgZ(0,"i",20),n._uU(1),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(2,Ul,t.linksTextColor)),n.xp6(1),n.hij(" ",e.icon," ")}}function RR(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"span",21),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw(3);return n.KtG(d.openDialog(r.dialog))}),n._uU(1),n.ALo(2,"localisedText"),n.qZA()}if(2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,Ul,t.linksTextColor)),n.xp6(1),n.hij("",n.Dn7(2,2,e,t.language,"label")," ")}}function kR(i,s){if(1&i&&(n.TgZ(0,"a",22),n.ALo(1,"localisedLink"),n._uU(2),n.ALo(3,"localisedText"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("href",n.xi3(1,3,e,t.language),n.LSH)("ngStyle",n.VKq(10,Ul,t.linksTextColor)),n.xp6(2),n.Oqu(n.Dn7(3,6,e,t.language,"label"))}}function LR(i,s){if(1&i&&(n.TgZ(0,"span",10),n._uU(1),n.ALo(2,"localisedText"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,Ul,t.linksTextColor)),n.xp6(1),n.Oqu(n.Dn7(2,2,e,t.language,"label"))}}function IR(i,s){if(1&i&&(n.TgZ(0,"div",16),n.YNc(1,PR,2,4,"i",17),n.YNc(2,RR,3,8,"span",18),n.YNc(3,kR,4,12,"a",19),n.ALo(4,"localisedLink"),n.YNc(5,LR,3,8,"span",9),n.ALo(6,"localisedLink"),n.qZA()),2&i){const e=s.$implicit,t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",e.icon),n.xp6(1),n.Q6J("ngIf",e.dialog),n.xp6(1),n.Q6J("ngIf",n.xi3(4,4,e,t.language)&&!e.dialog),n.xp6(2),n.Q6J("ngIf",!n.xi3(6,7,e,t.language)&&!e.dialog)}}const OR=function(i){return{height:i}};function BR(i,s){if(1&i&&(n.TgZ(0,"div",10),n.YNc(1,IR,7,10,"div",15),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw();n.Q6J("ngStyle",n.VKq(2,OR,t.columnContentHeight+"px")),n.xp6(1),n.Q6J("ngForOf",e.elements)}}function VR(i,s){if(1&i&&(n.TgZ(0,"div",7)(1,"h6",8),n._uU(2),n.ALo(3,"localisedText"),n.qZA(),n.YNc(4,HR,2,4,"div",9),n.YNc(5,BR,2,4,"div",9),n.qZA()),2&i){const e=s.$implicit,t=n.oxw();n.ekj("my-auto",t.containsLogos),n.xp6(1),n.Q6J("ngStyle",n.VKq(10,Ul,t.headersTextColor)),n.xp6(1),n.hij(" ",n.Dn7(3,6,e,t.language,"title")," "),n.xp6(2),n.Q6J("ngIf",e.logos),n.xp6(1),n.Q6J("ngIf",e.elements&&!e.logos)}}function jR(i,s){if(1&i&&(n.TgZ(0,"span")(1,"a",6),n._uU(2),n.qZA()()),2&i){const e=s.$implicit,t=s.index,r=n.oxw();n.xp6(1),n.Q6J("href",e.url,n.LSH)("ngStyle",n.VKq(3,Ul,r.copyrightTextColor)),n.xp6(1),n.Oqu(t?", "+e.name:e.name)}}const UR=function(i){return{background:i}};let nD=(()=>{class i{constructor(e,t,r,d){this.storeService=e,this.translateService=t,this.utilsService=r,this.dialog=d,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="N/A",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=E(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=E(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(e=>{const t=e.match("\\bVersion:\\s*([^,\\s]+)");null!==t&&(this.backendVersion=t[1])}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(e){const t=Jn();"reportIssue"===e&&(t.width="550px",this.dialog.open(AR,t))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(yi),n.Y36(bn),n.Y36(ui),n.Y36(oi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(n.TgZ(0,"footer",0)(1,"div",1),n.YNc(2,VR,6,12,"div",2),n.qZA(),n._UZ(3,"hr",3),n.TgZ(4,"div",4),n._uU(5),n.YNc(6,jR,3,5,"span",5),n._uU(7,", web application: "),n.TgZ(8,"a",6),n._uU(9),n.qZA(),n._uU(10,", server: "),n.TgZ(11,"a",6),n._uU(12),n.qZA()()()),2&e&&(n.Q6J("ngStyle",n.VKq(11,UR,t.bgColor)),n.xp6(2),n.Q6J("ngForOf",t.footerColumns),n.xp6(2),n.Q6J("ngStyle",n.VKq(13,Ul,t.copyrightTextColor)),n.xp6(1),n.hij(" \xa9 ",t.currentYear," Copyright: "),n.xp6(1),n.Q6J("ngForOf",t.copyrightItems),n.xp6(2),n.Q6J("href",t.githubRepository,n.LSH)("ngStyle",n.VKq(15,Ul,t.copyrightTextColor)),n.xp6(1),n.Oqu(t.guiVersion),n.xp6(2),n.Q6J("href",t.githubBackendRepository,n.LSH)("ngStyle",n.VKq(17,Ul,t.copyrightTextColor)),n.xp6(1),n.Oqu(t.backendVersion))},dependencies:[x.sg,x.O5,x.PC,vR,TR,xR],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),i})();function NR(i,s){if(1&i&&(n.TgZ(0,"div",8),n._UZ(1,"div",9),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("innerHTML",e.logo,n.oJD)}}function FR(i,s){if(1&i&&(n.TgZ(0,"div",10),n._UZ(1,"div",11)(2,"mat-icon",12),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("innerHTML",e.logo,n.oJD)}}const YR=function(i){return{color:i}};function qR(i,s){if(1&i&&(n.TgZ(0,"p",13),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(2,YR,e.textColor)),n.xp6(1),n.hij(" ",e.headerTitle," ")}}const zR=function(i,s){return{background:i,color:s}},GR=function(i,s){return{"min-height":i,"background-color":s}};let WR=(()=>{class i{constructor(e,t,r,d){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=d,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(yi),n.Y36(On),n.Y36(nR),n.Y36(bn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,NR,2,1,"div",1),n.YNc(2,FR,3,1,"div",2),n.YNc(3,qR,2,4,"p",3),n.qZA(),n.TgZ(4,"div",4)(5,"div",5)(6,"div",6),n._UZ(7,"router-outlet"),n.qZA(),n.TgZ(8,"div",7),n._UZ(9,"perun-web-apps-footer"),n.qZA()()()),2&e&&(n.Q6J("ngStyle",n.WLB(5,zR,t.headerBackgroundColor,t.headerTextColor)),n.xp6(1),n.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),n.xp6(1),n.Q6J("ngIf","publications"===t.application),n.xp6(1),n.Q6J("ngIf",!!t.headerTitle),n.xp6(2),n.Q6J("ngStyle",n.WLB(8,GR,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[x.O5,x.PC,Ln,lo,nD],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),i})();fn("openClose",[Pt("open",He({overflow:"hidden"})),Pt("closed",He({height:"0px",overflow:"hidden"})),xt("open <=> closed",[Tt(".3s ease-in")])]);const $R=fn("flyInOut",[xt(":enter",[He({transform:"translateX(100%)"}),Tt(".25s")]),xt(":leave",[Tt(".5s",He({transform:"translateX(100%)"}))])]);fn("rollInOut",[xt(":enter",[He({height:"0px"}),Tt(".25s")]),xt(":leave",[Tt(".25s",He({height:"0px"}))])]),fn("routeAnimations",[xt("* => *",[He({position:"relative"}),gr(":enter",[He({width:"100%",opacity:0})],{optional:!0}),gr(":leave",[He({position:"absolute",width:"100%",opacity:1}),Tt("0.15s",He({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),gr(":enter",[He({position:"absolute",width:"100%",opacity:0}),Tt("0.15s",He({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),fn("tagsOpenClose",[Pt("open",He({})),Pt("closed",He({width:"0px",height:"0px"})),xt("open <=> closed",[Tt(".3s ease-in")])]),fn("switchAnimations",[xt("true => false",[gr(":enter, :leave",He({})),fu([gr(":enter",[He({transform:"translateX(-100%)"}),Tt("1s ease-in-out",He({transform:"translateX(0%)"}))],{optional:!0}),gr(":leave",[He({transform:"translateX(0%)",position:"absolute"}),Tt("1s ease-in-out",He({transform:"translateX(100%)"}))],{optional:!0})])]),xt("false => true",[gr(":enter, :leave",He({})),fu([gr(":enter",[He({transform:"translateX(100%)"}),Tt("1s ease-in-out",He({transform:"translateX(0%)"}))],{optional:!0}),gr(":leave",[He({transform:"translateX(0%)",position:"absolute"}),Tt("1s ease-in-out",He({transform:"translateX(-100%)"}))],{optional:!0})])])]),fn("slideInOutLeft",[xt(":enter",[He({transform:"translateX(-100%)",position:"relative"}),Tt("0.5s ease-in",He({transform:"translateX(0%)"}))]),xt(":leave",[Tt("0.5s ease-in",He({transform:"translateX(-100%)"}))])]),fn("slideInOutRight",[xt(":enter",[He({transform:"translateX(100%)",position:"fixed"}),Tt("0.5s ease-in",He({transform:"translateX(0%)"}))]),xt(":leave",[He({transform:"translateX(-100%)",position:"relative"}),Tt("0.5s ease-in",He({transform:"translateX(100%)"}))])]);let iD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez]}),i})(),rD=(()=>{class i{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const r=this.storage.getProperty("custom_labels");if(r)for(const d of r)if(d.label===e)return d[t];return e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(bn,16),n.Y36(yi,16))},i.\u0275pipe=n.Yjl({name:"customTranslate",type:i,pure:!0}),i})();function nk(i,s){if(1&i&&(n.O4$(),n._UZ(0,"circle",4)),2&i){const e=n.oxw(),t=n.MAs(1);n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),n.uIk("r",e._getCircleRadius())}}function ik(i,s){if(1&i&&(n.O4$(),n._UZ(0,"circle",4)),2&i){const e=n.oxw(),t=n.MAs(1);n.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),n.uIk("r",e._getCircleRadius())}}const ak=Ti(class{constructor(i){this._elementRef=i}},"primary"),sk=new n.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function ok(){return{diameter:100}}});class Sn extends ak{constructor(s,e,t,r,d,h,c,o){super(s),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Rt.w0.EMPTY,this.mode="determinate";const a=Sn._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),a.has(t.head)||a.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!d&&!d._forceAnimations,"mat-spinner"===s.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),d&&(d.color&&(this.color=this.defaultColor=d.color),d.diameter&&(this.diameter=d.diameter),d.strokeWidth&&(this.strokeWidth=d.strokeWidth)),e.isBrowser&&e.SAFARI&&c&&h&&o&&(this._resizeSubscription=c.change(150).subscribe(()=>{"indeterminate"===this.mode&&o.run(()=>h.markForCheck())}))}get diameter(){return this._diameter}set diameter(s){this._diameter=gn(s),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(s){this._strokeWidth=gn(s)}get value(){return"determinate"===this.mode?this._value:0}set value(s){this._value=Math.max(0,Math.min(100,gn(s)))}ngOnInit(){const s=this._elementRef.nativeElement;this._styleRoot=Bh(s)||this._document.head,this._attachStyleNode(),s.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const s=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${s} ${s}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(s){const e=50*(s.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const s=this._styleRoot,e=this._diameter,t=Sn._diameters;let r=t.get(s);if(!r||!r.has(e)){const d=this._document.createElement("style");d.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),d.textContent=this._getAnimationText(),s.appendChild(d),r||(r=new Set,t.set(s,r)),r.add(e)}}_getAnimationText(){const s=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*s).replace(/END_VALUE/g,""+.2*s).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Sn._diameters=new WeakMap,Sn.\u0275fac=function(s){return new(s||Sn)(n.Y36(n.SBq),n.Y36(yn),n.Y36(x.K0,8),n.Y36(n.QbO,8),n.Y36(sk),n.Y36(n.sBO),n.Y36(va),n.Y36(n.R0b))},Sn.\u0275cmp=n.Xpm({type:Sn,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(s,e){2&s&&(n.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[n.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(s,e){1&s&&(n.O4$(),n.TgZ(0,"svg",0,1),n.YNc(2,nk,1,11,"circle",2),n.YNc(3,ik,1,9,"circle",3),n.qZA()),2&s&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(2),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},dependencies:[x.RF,x.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let dC=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,x.ez,ht]}),i})();function ck(i,s){1&i&&n._UZ(0,"mat-spinner",7)}function dk(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function uk(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function hk(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"input",9,10),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.subject=r)}),n.qZA(),n.YNc(7,dk,3,3,"mat-error",11),n.qZA(),n.TgZ(8,"mat-form-field")(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"textarea",12,13),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.message=r)}),n.ALo(14,"translate"),n._uU(15," "),n.qZA(),n.YNc(16,uk,3,3,"mat-error",11),n.qZA()()}if(2&i){const e=n.MAs(6),t=n.MAs(13),r=n.oxw();n.xp6(3),n.Oqu(n.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),n.xp6(2),n.Q6J("ngModel",r.subject),n.xp6(2),n.Q6J("ngIf",e.invalid),n.xp6(3),n.Oqu(n.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),n.xp6(2),n.s9C("placeholder",n.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),n.Q6J("ngModel",r.message),n.xp6(4),n.Q6J("ngIf",t.invalid)}}let pk=(()=>{class i{constructor(e,t,r,d,h,c){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=d,this.data=h,this.storeService=c,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let d=JSON.stringify(this.data.error.payload);d=d.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+d+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",E(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(bn),n.Y36(Ji),n.Y36(Vo),n.Y36(wr),n.Y36(yi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.YNc(3,ck,1,0,"mat-spinner",1),n.YNc(4,hk,17,13,"div",2),n.TgZ(5,"div",3)(6,"div",4)(7,"button",5),n.NdJ("click",function(){return t.dialogRef.close()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",6),n.NdJ("click",function(){return t.sendBugReport()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(4),n.hij(" ",n.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),n.xp6(2),n.Q6J("disabled",""===t.message||""===t.subject||t.loading),n.xp6(1),n.hij(" ",n.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[x.O5,Oi,$i,Bi,Ot,es,ar,ta,Gi,Wi,ns,Uc,Ra,Sn,it],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})(),fk=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=Jn();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(pk,e)}),this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(oi),n.Y36(wr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1),n._uU(3),n.qZA(),n.TgZ(4,"div",2)(5,"div",3)(6,"button",4),n.NdJ("click",function(){return t.onBugReportClick()}),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.TgZ(9,"button",5),n.NdJ("click",function(){return t.onCloseClick()}),n._uU(10),n.ALo(11,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(t.data.title),n.xp6(2),n.hij(" ",t.data.description,"\n"),n.xp6(3),n.Q6J("hidden","error"!==t.data.type),n.xp6(1),n.hij(" ",n.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),n.xp6(3),n.hij(" ",n.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Oi,$i,Bi,Ot,it]}),i})();const wk=[[["caption"]],[["colgroup"],["col"]]],yk=["caption","colgroup, col"];function Mx(i){return class extends i{constructor(...s){super(...s),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(s){const e=this._sticky;this._sticky=Oe(s),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const s=this._hasStickyChanged;return this._hasStickyChanged=!1,s}resetStickyChanged(){this._hasStickyChanged=!1}}}const Jp=new n.OlP("CDK_TABLE");let Zp=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkCellDef",""]]}),i})(),Qp=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkHeaderCellDef",""]]}),i})(),uC=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkFooterCellDef",""]]}),i})();class Tk{}const xk=Mx(Tk);let Nl=(()=>{class i extends xk{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=Oe(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Jp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,Zp,5),n.Suo(r,Qp,5),n.Suo(r,uC,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.cell=d.first),n.iGM(d=n.CRH())&&(t.headerCell=d.first),n.iGM(d=n.CRH())&&(t.footerCell=d.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[n._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),n.qOj]}),i})();class Sx{constructor(s,e){e.nativeElement.classList.add(...s._columnCssClassName)}}let Ex=(()=>{class i extends Sx{constructor(e,t){super(e,t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Nl),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[n.qOj]}),i})(),Dx=(()=>{class i extends Sx{constructor(e,t){if(super(e,t),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Nl),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[n.qOj]}),i})();class sD{constructor(){this.tasks=[],this.endTasks=[]}}const Hx=new n.OlP("_COALESCED_STYLE_SCHEDULER");let oD=(()=>{class i{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Se.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new sD,this._getScheduleObservable().pipe(Ke(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new sD;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,lt.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,rt.q)(1))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Px=(()=>{class i{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof t_?e.headerCell.template:this instanceof n_?e.footerCell.template:e.cell.template}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4))},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();class Mk extends Px{}const Sk=Mx(Mk);let t_=(()=>{class i extends Sk{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(Jp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[n.qOj,n.TTD]}),i})();class Ek extends Px{}const Dk=Mx(Ek);let n_=(()=>{class i extends Dk{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(Jp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[n.qOj,n.TTD]}),i})(),hC=(()=>{class i extends Px{constructor(e,t,r){super(e,t),this._table=r}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(Jp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[n.qOj]}),i})(),Fl=(()=>{class i{constructor(e){this._viewContainer=e,i.mostRecentCellOutlet=this}ngOnDestroy(){i.mostRecentCellOutlet===this&&(i.mostRecentCellOutlet=null)}}return i.mostRecentCellOutlet=null,i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkCellOutlet",""]]}),i})(),Rx=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[Fl],encapsulation:2}),i})(),Lx=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[Fl],encapsulation:2}),i})(),pC=(()=>{class i{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","cdkNoDataRow",""]]}),i})();const lD=["top","bottom","left","right"];class Hk{constructor(s,e,t,r,d=!0,h=!0,c){this._isNativeHtmlTable=s,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=d,this._needsPositionStickyOnElement=h,this._positionListener=c,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(s,e){const t=[];for(const r of s)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let d=0;d{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(s,e,t,r=!0){if(!s.length||!this._isBrowser||!e.some(p=>p)&&!t.some(p=>p))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const d=s[0],h=d.children.length,c=this._getCellWidths(d,r),o=this._getStickyStartColumnPositions(c,e),a=this._getStickyEndColumnPositions(c,t),l=e.lastIndexOf(!0),u=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const p="rtl"===this.direction,m=p?"right":"left",g=p?"left":"right";for(const f of s)for(let y=0;ye[y]?f:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:c.slice(u).map((f,y)=>t[y+u]?f:null).reverse()}))})}stickRows(s,e,t){if(!this._isBrowser)return;const r="bottom"===t?s.slice().reverse():s,d="bottom"===t?e.slice().reverse():e,h=[],c=[],o=[];for(let l=0,u=0;l{for(let l=0;l{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(s,e){for(const r of e)s.style[r]="",s.classList.remove(this._borderCellCss[r]);lD.some(r=>-1===e.indexOf(r)&&s.style[r])?s.style.zIndex=this._getCalculatedZIndex(s):(s.style.zIndex="",this._needsPositionStickyOnElement&&(s.style.position=""),s.classList.remove(this._stickCellCss))}_addStickyStyle(s,e,t,r){s.classList.add(this._stickCellCss),r&&s.classList.add(this._borderCellCss[e]),s.style[e]=`${t}px`,s.style.zIndex=this._getCalculatedZIndex(s),this._needsPositionStickyOnElement&&(s.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(s){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of lD)s.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(s,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=s.children;for(let d=0;d0;d--)e[d]&&(t[d]=r,r+=s[d]);return t}}const Ix=new n.OlP("CDK_SPL");let fC=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","rowOutlet",""]]}),i})(),mC=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","headerRowOutlet",""]]}),i})(),gC=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","footerRowOutlet",""]]}),i})(),_C=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","noDataRowOutlet",""]]}),i})(),bC=(()=>{class i{constructor(e,t,r,d,h,c,o,a,l,u,p,m){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=h,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=l,this._viewportRuler=u,this._stickyPositioningListener=p,this._ngZone=m,this._onDestroy=new Se.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new n.vpe,this.viewChange=new Hn({start:0,end:Number.MAX_VALUE}),d||this._elementRef.nativeElement.setAttribute("role","table"),this._document=c,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Oe(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Oe(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(Ke(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),du(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(r,d,h)=>this._getEmbeddedViewArgs(r.item,h),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{t.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&n.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,rt.q)(1),Ke(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const d=this._headerRowDefs.map(h=>h.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,d,"top"),this._headerRowDefs.forEach(h=>h.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const d=this._footerRowDefs.map(h=>h.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,d,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,d),this._footerRowDefs.forEach(h=>h.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((d,h)=>{this._addStickyColumnStyles([d],this._headerRowDefs[h])}),this._rowDefs.forEach(d=>{const h=[];for(let c=0;c{this._addStickyColumnStyles([d],this._footerRowDefs[h])}),Array.from(this._columnDefsByName.values()).forEach(d=>d.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const c=r&&r.has(h)?r.get(h):[];if(c.length){const o=c.shift();return o.dataIndex=t,o}return{data:e,rowDef:h,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),wC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=wC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=wC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=wC(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(h,c)=>h||!!c.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const d=this._footerRowDefs.reduce(e,!1);return d&&this._forceRenderFooterRows(),t||r||d}_switchDataSource(e){this._data=[],du(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;du(this.dataSource)?e=this.dataSource.connect(this):Vt(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,xe.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(Ke(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(c=>this._columnDefsByName.get(c)),d=r.map(c=>c.sticky),h=r.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(e,d,h,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!d.when||d.when(t,e));else{let d=this._rowDefs.find(h=>h.when&&h.when(t,e))||this._defaultRowDef;d&&r.push(d)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,d={}){const h=e.viewContainer.createEmbeddedView(t.template,d,r);return this._renderCellTemplateForItem(t,d),h}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))Fl.mostRecentCellOutlet&&Fl.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,r=e.length;t{const r=this._columnDefsByName.get(t);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of t){const d=this._document.createElement(r.tag);d.setAttribute("role","rowgroup");for(const h of r.outlets)d.appendChild(h.elementRef.nativeElement);e.appendChild(d)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,r)=>t||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Hk(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,xe.of)()).pipe(Ke(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const d=r.createEmbeddedView(e.templateRef),h=d.rootNodes[0];1===d.rootNodes.length&&h?.nodeType===this._document.ELEMENT_NODE&&(h.setAttribute("role","row"),h.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.ZZ4),n.Y36(n.sBO),n.Y36(n.SBq),n.$8M("role"),n.Y36(xn,8),n.Y36(x.K0),n.Y36(yn),n.Y36(vl),n.Y36(Hx),n.Y36(va),n.Y36(Ix,12),n.Y36(n.R0b,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,pC,5),n.Suo(r,Nl,5),n.Suo(r,hC,5),n.Suo(r,t_,5),n.Suo(r,n_,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._noDataRow=d.first),n.iGM(d=n.CRH())&&(t._contentColumnDefs=d),n.iGM(d=n.CRH())&&(t._contentRowDefs=d),n.iGM(d=n.CRH())&&(t._contentHeaderRowDefs=d),n.iGM(d=n.CRH())&&(t._contentFooterRowDefs=d)}},viewQuery:function(e,t){if(1&e&&(n.Gf(fC,7),n.Gf(mC,7),n.Gf(gC,7),n.Gf(_C,7)),2&e){let r;n.iGM(r=n.CRH())&&(t._rowOutlet=r.first),n.iGM(r=n.CRH())&&(t._headerRowOutlet=r.first),n.iGM(r=n.CRH())&&(t._footerRowOutlet=r.first),n.iGM(r=n.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[n._Bn([{provide:Jp,useExisting:i},{provide:vl,useClass:tw},{provide:Hx,useClass:oD},{provide:Ix,useValue:null}])],ngContentSelectors:yk,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(n.F$t(wk),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[fC,mC,gC,_C],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),i})();function wC(i,s){return i.concat(Array.from(s))}let Rk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[nr]}),i})();const kk=[[["caption"]],[["colgroup"],["col"]]],Lk=["caption","colgroup, col"];let Do=(()=>{class i extends bC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[n._Bn([{provide:vl,useClass:tw},{provide:bC,useExisting:i},{provide:Jp,useExisting:i},{provide:Hx,useClass:oD},{provide:Ix,useValue:null}]),n.qOj],ngContentSelectors:Lk,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(n.F$t(kk),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[fC,mC,gC,_C],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),i})(),Os=(()=>{class i extends Zp{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matCellDef",""]],features:[n._Bn([{provide:Zp,useExisting:i}]),n.qOj]}),i})(),Bs=(()=>{class i extends Qp{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matHeaderCellDef",""]],features:[n._Bn([{provide:Qp,useExisting:i}]),n.qOj]}),i})(),Vs=(()=>{class i extends Nl{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[n._Bn([{provide:Nl,useExisting:i},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),n.qOj]}),i})(),js=(()=>{class i extends Ex{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[n.qOj]}),i})(),Us=(()=>{class i extends Dx{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[n.qOj]}),i})(),Yl=(()=>{class i extends t_{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[n._Bn([{provide:t_,useExisting:i}]),n.qOj]}),i})(),Ho=(()=>{class i extends hC{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[n._Bn([{provide:hC,useExisting:i}]),n.qOj]}),i})(),ql=(()=>{class i extends Rx{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[n._Bn([{provide:Rx,useExisting:i}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[Fl],encapsulation:2}),i})(),Po=(()=>{class i extends Lx{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[n._Bn([{provide:Lx,useExisting:i}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[Fl],encapsulation:2}),i})(),yC=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Rk,ht,ht]}),i})();class zk extends ew{constructor(s=[]){super(),this._renderData=new Hn([]),this._filter=new Hn(""),this._internalPageChanges=new Se.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(Gf(r)){const d=Number(r);return d<9007199254740991?d:r}return r},this.sortData=(e,t)=>{const r=t.active,d=t.direction;return r&&""!=d?e.sort((h,c)=>{let o=this.sortingDataAccessor(h,r),a=this.sortingDataAccessor(c,r);const l=typeof o,u=typeof a;l!==u&&("number"===l&&(o+=""),"number"===u&&(a+=""));let p=0;return null!=o&&null!=a?o>a?p=1:o{const r=Object.keys(e).reduce((h,c)=>h+e[c]+"\u25ec","").toLowerCase(),d=t.trim().toLowerCase();return-1!=r.indexOf(d)},this._data=new Hn(s),this._updateChangeSubscription()}get data(){return this._data.value}set data(s){s=Array.isArray(s)?s:[],this._data.next(s),this._renderChangesSubscription||this._filterData(s)}get filter(){return this._filter.value}set filter(s){this._filter.next(s),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(s){this._sort=s,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(s){this._paginator=s,this._updateChangeSubscription()}_updateChangeSubscription(){const s=this._sort?(0,Mn.T)(this._sort.sortChange,this._sort.initialized):(0,xe.of)(null),e=this._paginator?(0,Mn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,xe.of)(null),r=(0,un.a)([this._data,this._filter]).pipe((0,_t.U)(([c])=>this._filterData(c))),d=(0,un.a)([r,s]).pipe((0,_t.U)(([c])=>this._orderData(c))),h=(0,un.a)([d,e]).pipe((0,_t.U)(([c])=>this._pageData(c)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=h.subscribe(c=>this._renderData.next(c))}_filterData(s){return this.filteredData=null==this.filter||""===this.filter?s:s.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(s){return this.sort?this.sortData(s.slice(),this.sort):s}_pageData(s){if(!this.paginator)return s;const e=this.paginator.pageIndex*this.paginator.pageSize;return s.slice(e,e+this.paginator.pageSize)}_updatePaginator(s){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=s,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class zl extends zk{}function Gk(i,s){1&i&&n._UZ(0,"mat-spinner",7)}function Wk(i,s){1&i&&(n.TgZ(0,"div",12),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function $k(i,s){1&i&&n._UZ(0,"th",19)}function Jk(i,s){if(1&i&&(n.TgZ(0,"td",20),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e)}}function Zk(i,s){1&i&&n._UZ(0,"tr",21)}function Qk(i,s){1&i&&n._UZ(0,"tr",22)}function Kk(i,s){if(1&i&&(n.TgZ(0,"table",13),n.ynx(1,14),n.YNc(2,$k,1,0,"th",15),n.YNc(3,Jk,2,1,"td",16),n.BQk(),n.YNc(4,Zk,1,0,"tr",17),n.YNc(5,Qk,1,0,"tr",18),n.qZA()),2&i){const e=n.oxw(2);n.Q6J("dataSource",e.dataSource),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}function Xk(i,s){if(1&i&&(n.TgZ(0,"perun-web-apps-alert",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i){const e=n.oxw(2);n.Q6J("alert_type","warn"),n.xp6(1),n.hij(" ",n.lcZ(2,2,e.data.alert)," ")}}function eL(i,s){if(1&i&&(n.TgZ(0,"div",8)(1,"p"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,Wk,3,3,"div",9),n.YNc(5,Kk,6,3,"table",10),n.YNc(6,Xk,3,4,"perun-web-apps-alert",11),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,4,e.data.description)," "),n.xp6(2),n.Q6J("ngIf",e.data.showAsk),n.xp6(1),n.Q6J("ngIf",e.data.items.length),n.xp6(1),n.Q6J("ngIf",e.data.alert)}}function tL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",24),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("disabled",e.loading),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function nL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",25),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("disabled",e.loading),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let Ox=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new zl(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-weight-bold",4,"ngIf"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,Gk,1,0,"mat-spinner",1),n.YNc(5,eL,7,6,"div",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.onCancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.YNc(10,tL,3,4,"button",5),n.YNc(11,nL,3,4,"button",6),n.qZA()()),2&e&&(n.Tol(t.theme),n.xp6(2),n.Oqu(n.lcZ(3,9,t.data.title)),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(3),n.hij(" ",n.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),n.xp6(2),n.Q6J("ngIf","remove"===t.data.type),n.xp6(1),n.Q6J("ngIf","confirmation"===t.data.type))},dependencies:[x.O5,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oi,$i,Bi,Ot,Sn,na,it]}),i})(),hL=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.theme=this.data.theme,this.message=this.data.message}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-universal-confirmation-dialog"]],decls:11,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",1)(5,"button",2),n.NdJ("click",function(){return t.onCancel()}),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"button",3),n.NdJ("click",function(){return t.onSubmit()}),n._uU(9),n.ALo(10,"translate"),n.qZA()()()),2&e&&(n.Tol(t.theme),n.xp6(2),n.Oqu(n.lcZ(3,6,t.message)),n.xp6(4),n.hij(" ",n.lcZ(7,8,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.CANCEL_BUTTON")," "),n.xp6(3),n.hij(" ",n.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Oi,Bi,Ot,it]}),i})();function bL(i,s){1&i&&(n.TgZ(0,"mat-error",8),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Gl{constructor(s,e,t){this.dialogRef=s,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new gg(null,[kn.required,kn.pattern(Gl.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const s=this.data.attribute?.value??[],e=this.sshControl.value;s.includes(e)||s.push(e),this.data.attribute.value=s,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{s.pop()})}}function TL(i,s){if(1&i&&(n.TgZ(0,"div",9),n._UZ(1,"perun-web-apps-notification",10),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Q6J("data",e)("inDialog",!0)}}function xL(i,s){if(1&i&&(n.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),n.YNc(2,TL,2,2,"div",8),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Q6J("cdkVirtualForOf",e.notifications)}}function ML(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",11),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}Gl.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],Gl.sshKeyPattern="^("+Gl.allowedSshKeys.join("|")+").+$",Gl.\u0275fac=function(s){return new(s||Gl)(n.Y36(si),n.Y36(wr),n.Y36(Ql))},Gl.\u0275cmp=n.Xpm({type:Gl,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(s,e){1&s&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),n._UZ(7,"textarea",3),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA(),n.YNc(10,bL,4,5,"mat-error",4),n.qZA()(),n.TgZ(11,"div",5)(12,"button",6),n.NdJ("click",function(){return e.onCancel()}),n._uU(13),n.ALo(14,"translate"),n.ALo(15,"customTranslate"),n.qZA(),n.TgZ(16,"button",7),n.NdJ("click",function(){return e.onSubmit()}),n._uU(17),n.ALo(18,"translate"),n.ALo(19,"customTranslate"),n.qZA()()),2&s&&(n.xp6(1),n.Oqu(n.lcZ(2,7,n.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),n.xp6(6),n.s9C("placeholder",n.lcZ(8,11,n.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),n.Q6J("formControl",e.sshControl),n.xp6(3),n.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),n.xp6(3),n.hij(" ",n.lcZ(14,15,n.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",e.sshControl.invalid),n.xp6(1),n.hij(" ",n.lcZ(18,19,n.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[x.O5,Gi,Wi,ns,Ot,es,ar,_r,_R,Ra,Oi,$i,Bi,it,rD],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let uD=(()=>{class i{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(sC))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,xL,3,1,"div",1),n.YNc(5,ML,4,5,"perun-web-apps-alert",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.onClear()}),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return t.onCancel()}),n._uU(12),n.ALo(13,"translate"),n.ALo(14,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,n.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),n.xp6(3),n.Q6J("ngIf",0!==t.notifications.length),n.xp6(1),n.Q6J("ngIf",0===t.notifications.length),n.xp6(3),n.hij(" ",n.lcZ(9,9,n.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),n.xp6(4),n.hij(" ",n.lcZ(13,13,n.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),i})();function SL(i,s){if(1&i&&(n.TgZ(0,"div",5)(1,"mat-icon"),n._uU(2),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Oqu(e.data.icon)}}function EL(i,s){if(1&i&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",e.showTimestamp()," ")}}let hD=(()=>{class i{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new n.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=Jn();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(fk,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function sx(i,s){zp.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(oi),n.Y36(sC))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"div",0),n.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),n.YNc(2,SL,3,1,"div",1),n.TgZ(3,"div",2),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,EL,2,1,"div",3),n.TgZ(7,"div",4),n.NdJ("click",function(){return t.waiting=!0,t.doAction()}),n._uU(8),n.qZA()()()),2&e&&(n.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),n.ekj("error","error"===t.data.type)("success","success"===t.data.type),n.xp6(2),n.Q6J("ngIf",null!==t.data.icon),n.xp6(2),n.hij(" ",n.lcZ(5,12,t.data.title)," "),n.xp6(2),n.Q6J("ngIf",t.inDialog),n.xp6(1),n.Q6J("hidden",t.alreadyPressed),n.xp6(1),n.hij(" ",t.data.actionText," "))},dependencies:[x.O5,Ln,it],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),i})();function DL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"perun-web-apps-notification",2),n.NdJ("closeNotification",function(){const d=n.CHM(e).index,h=n.oxw();return n.KtG(h.removeNotification(d))}),n.qZA()()}if(2&i){const e=s.$implicit;n.Q6J("@flyInOut",void 0),n.xp6(1),n.Q6J("data",e)("newNotification",!0)}}const HL=function(i){return{top:i}};let PL=(()=>{class i{constructor(e,t){this.notificator=e,this.notificationStorageService=t,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(r=>{this.processNotification(r)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(e){this.notifications.splice(e,1)}processNotification(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ji),n.Y36(sC))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&n.NdJ("resize",function(d){return t.getScreenSize(d)},!1,n.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,DL,2,3,"div",1),n.qZA()),2&e&&(n.Q6J("ngStyle",n.VKq(2,HL,t.getNotificatorTop())),n.xp6(1),n.Q6J("ngForOf",t.notifications))},dependencies:[x.sg,x.PC,hD],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:initial;bottom:0}}"],data:{animation:[$R]}}),i})();var Kp=(()=>{return(i=Kp||(Kp={})).Admin="admin",i.Profile="profile",i.PwdReset="pwdReset",i.Consolidator="consolidator",i.Linker="linker",Kp;var i})();const RL=["*",[["mat-toolbar-row"]]],kL=["*","mat-toolbar-row"],LL=Ti(class{constructor(i){this._elementRef=i}});let IL=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),i})(),OL=(()=>{class i extends LL{constructor(e,t,r){super(e),this._platform=t,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(yn),n.Y36(x.K0))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,IL,5),2&e){let d;n.iGM(d=n.CRH())&&(t._toolbarRows=d)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[n.qOj],ngContentSelectors:kL,decls:2,vars:0,template:function(e,t){1&e&&(n.F$t(RL),n.Hsn(0),n.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),i})(),pD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})(),BL=0;const VL=Qr(class{}),fD="mat-badge-content";let jL=(()=>{class i extends VL{constructor(e,t,r,d,h){super(),this._ngZone=e,this._elementRef=t,this._ariaDescriber=r,this._renderer=d,this._animationMode=h,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=BL++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=Oe(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=Oe(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(fD),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t)})}):e.classList.add(t),e}_updateRenderedContent(e){const t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${fD}`);for(const t of Array.from(e))t!==this._badgeElement&&t.remove()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(Kd),n.Y36(n.Qsj),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&n.ekj("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t.content)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[n.qOj]}),i})(),UL=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[bl,ht,ht]}),i})();const Bx=function(i){return{color:i}};function NL(i,s){if(1&i&&(n.TgZ(0,"button",8),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3," apps "),n.qZA()()),2&i){const e=n.oxw(),t=n.MAs(2);n.Q6J("matMenuTriggerFor",t)("matTooltip",n.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),n.xp6(2),n.Q6J("ngStyle",n.VKq(5,Bx,e.iconColor))}}function FL(i,s){if(1&i&&(n.TgZ(0,"span",9),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(6,Bx,e.textColor)),n.xp6(1),n.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function YL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onLogOut())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"NAV.LOGOUT")," "))}let qL=(()=>{class i{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Bu))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(n.YNc(0,NL,4,7,"button",0),n.TgZ(1,"mat-menu",null,1)(3,"button",2),n.NdJ("click",function(){return t.redirectToUrl()})("auxclick",function(){return t.redirectToUrl()}),n.TgZ(4,"span"),n._uU(5),n.qZA()()(),n.TgZ(6,"button",3)(7,"mat-icon",4),n._uU(8," person "),n.qZA(),n.YNc(9,FL,2,8,"span",5),n.qZA(),n.TgZ(10,"mat-menu",null,6),n.YNc(12,YL,3,3,"button",7),n.qZA()),2&e){const r=n.MAs(11);n.Q6J("ngIf",t.url),n.xp6(5),n.Oqu(t.label),n.xp6(1),n.Q6J("matMenuTriggerFor",r),n.xp6(1),n.Q6J("ngStyle",n.VKq(6,Bx,t.iconColor)),n.xp6(2),n.Q6J("ngIf",null!==t.user),n.xp6(3),n.Q6J("ngIf",t.logoutEnabled)}},dependencies:[x.O5,x.PC,Ln,jp,Kc,My,Ot,ks,it],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),i})(),Vx=(()=>{class i extends Ts{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const e=Object.assign({},this.queryParams);delete e.applicationFormItems,this.queryParams=e}}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[n.qOj,n.TTD]}),i})();const Xp=function(i){return{color:i}};function zL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onToggleSidenav())}),n.TgZ(1,"mat-icon"),n._uU(2,"menu"),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(1,Xp,e.iconColor))}}function GL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),n._uU(3," language "),n.qZA()(),n.TgZ(4,"mat-menu",null,13)(6,"button",14),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeLanguage())}),n._uU(7),n.ALo(8,"translate"),n.qZA()()()}if(2&i){const e=n.MAs(5),t=n.oxw();n.Q6J("ngStyle",n.VKq(6,Xp,t.textColor)),n.xp6(1),n.Q6J("matMenuTriggerFor",e),n.xp6(1),n.Q6J("ngStyle",n.VKq(8,Xp,t.iconColor)),n.xp6(5),n.hij(" ",n.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function WL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",15),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.showNotificationHistory())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",16),n._uU(3),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",n.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),n.xp6(2),n.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),n.Q6J("ngStyle",n.VKq(7,Xp,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),n.xp6(1),n.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function $L(i,s){if(1&i&&n._UZ(0,"perun-web-apps-header-menu",17),2&i){const e=n.oxw();n.Q6J("url",e.otherAppUrl)("label",e.otherAppLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor)}}const JL=function(i){return{background:i}},ZL=function(){return[]},QL=function(){return["/"]};let KL=(()=>{class i{constructor(e,t,r,d,h,c,o){this.storeService=e,this.sanitizer=t,this.translateService=r,this.otherApplicationService=d,this.notificationStorageService=h,this.dialog=c,this.route=o,this.sidenavToggle=new n.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(e="en"){return this.storeService.getProperty(this.otherApp===Kp.Profile?"profile_label_en":"en"===e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===Kp.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0)}(this.otherApp!==Kp.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const e=Jn();e.width="520px",this.dialog.open(uD,e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(yi),n.Y36(On),n.Y36(bn),n.Y36(iR),n.Y36(sC),n.Y36(oi),n.Y36(Li))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-toolbar",0)(1,"div",1),n.YNc(2,zL,3,3,"button",2),n._UZ(3,"a",3),n.TgZ(4,"p",4),n._uU(5),n.qZA()(),n.TgZ(6,"div",5),n.YNc(7,GL,9,10,"div",6),n.YNc(8,WL,4,9,"button",7),n.YNc(9,$L,1,6,"perun-web-apps-header-menu",8),n.qZA()()),2&e&&(n.Q6J("ngStyle",n.VKq(11,JL,t.bgColor)),n.xp6(2),n.Q6J("ngIf",t.showToggle),n.xp6(1),n.Q6J("innerHTML",t.logo,n.oJD)("routerLink",t.disableLogo?n.DdM(13,ZL):n.DdM(14,QL))("queryParams",t.route.snapshot.queryParams),n.xp6(1),n.Q6J("ngStyle",n.VKq(15,Xp,t.textColor)),n.xp6(1),n.hij(" ",t.label," "),n.xp6(1),n.Q6J("ngStyle",n.VKq(17,Xp,t.navTextColor)),n.xp6(1),n.Q6J("ngIf",t.showLanguageMenu),n.xp6(1),n.Q6J("ngIf",t.showNotifications),n.xp6(1),n.Q6J("ngIf",t.showHeaderMenu))},dependencies:[x.O5,x.PC,Nd,Ln,jp,Kc,My,Ot,ks,OL,jL,qL,Vx,it],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),i})(),XL=(()=>{class i{constructor(e){this.authResolver=e}getSideMenuItems(){const e=[];return this.authResolver.isCabinetAdmin()&&e.push({label:"MENU_ITEMS.ALL_PUBLICATIONS",icon:"perun-publications-white",isSVG:!0,link:"/all-publications",activatedRegex:"^/all-publications",tabName:"all-publications"}),e.push({label:"MENU_ITEMS.MY_PUBLICATIONS",icon:"local_library",link:"/my-publications",activatedRegex:"^/my-publications",tabName:"my-publications"}),e.push({label:"MENU_ITEMS.CREATE_PUBLICATION",icon:"add_box",link:"/create-publication",activatedRegex:"^/create-publication",tabName:"create-publication"}),this.authResolver.isCabinetAdmin()&&(e.push({label:"MENU_ITEMS.AUTHORS",icon:"assignment_ind",link:"/authors",activatedRegex:"^/authors",tabName:"authors"}),e.push({label:"MENU_ITEMS.CATEGORIES",icon:"all_inbox",link:"/categories",activatedRegex:"^/categories$",tabName:"categories"}),e.push({label:"MENU_ITEMS.PUBLICATION_SYSTEMS",icon:"assignment",link:"/publication-systems",activatedRegex:"^/publication-systems$",tabName:"publication-systems"})),e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(dn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),jx=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})();const mD=["*"],tI=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],nI=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],oI=Qr(mr(class{})),lI=mr(class{}),cI=new n.OlP("MatList"),gD=new n.OlP("MatNavList");let dI=(()=>{class i extends oI{constructor(){super(...arguments),this._stateChanges=new Se.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[n._Bn([{provide:gD,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:mD,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),i})(),_D=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),i})(),bD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),i})(),uI=(()=>{class i extends lI{constructor(e,t,r,d){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new Se.x,this._disabled=!1,this._isInteractiveList=!!(r||d&&"action-list"===d._getListType()),this._list=r||d;const h=this._getHostElement();"button"===h.nodeName.toLowerCase()&&!h.hasAttribute("type")&&h.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Ke(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Oe(e)}ngAfterContentInit(){!function Kh(i,s,e="mat"){i.changes.pipe(Zt(i)).subscribe(({length:t})=>{Qa(s,`${e}-2-line`,!1),Qa(s,`${e}-3-line`,!1),Qa(s,`${e}-multi-line`,!1),2===t||3===t?Qa(s,`${e}-${t}-line`,!0):t>3&&Qa(s,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(gD,8),n.Y36(cI,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,_D,5),n.Suo(r,bD,5),n.Suo(r,yl,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._avatar=d.first),n.iGM(d=n.CRH())&&(t._icon=d.first),n.iGM(d=n.CRH())&&(t._lines=d)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[n.qOj],ngContentSelectors:nI,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(n.F$t(tI),n.TgZ(0,"span",0),n._UZ(1,"span",1),n.Hsn(2),n.TgZ(3,"span",2),n.Hsn(4,1),n.qZA(),n.Hsn(5,2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},dependencies:[Lr],encapsulation:2,changeDetection:0}),i})(),yD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Cl,Kr,ht,lm,x.ez,Cl,ht,lm,jx]}),i})();function _I(i,s){if(1&i&&n._UZ(0,"mat-icon",6),2&i){const e=n.oxw().$implicit;n.Q6J("svgIcon",e.icon)}}function bI(i,s){if(1&i&&(n.TgZ(0,"mat-icon"),n._uU(1),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.Oqu(e.icon)}}const wI=function(i){return{color:i}};function yI(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-list-item",2),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.shouldHideMenu())}),n.YNc(1,_I,1,1,"mat-icon",3),n.YNc(2,bI,2,1,"mat-icon",4),n.TgZ(3,"span",5),n._uU(4),n.ALo(5,"translate"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw();n.ekj("activated",t.isActive(e.activatedRegex)),n.s9C("routerLink",e.link),n.Q6J("ngStyle",n.VKq(10,wI,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),n.xp6(1),n.Q6J("ngIf",e.isSVG),n.xp6(1),n.Q6J("ngIf",!e.isSVG),n.xp6(2),n.Oqu(n.lcZ(5,8,e.label))}}let CI=(()=>{class i{constructor(e,t,r){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.items=[],this.textColor=this.storeService.getProperty("theme").sidemenu_text_color,this.currentUrl=r.url,r.events.subscribe(d=>{d instanceof Ni&&(this.currentUrl=d.url)})}ngOnInit(){this.items=this.sideMenuItemService.getSideMenuItems()}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(XL),n.Y36(yi),n.Y36($n))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["mat-ripple","","class","side-menu-item-height",3,"activated","ngStyle","matRippleColor","routerLink","click",4,"ngFor","ngForOf"],["mat-ripple","",1,"side-menu-item-height",3,"ngStyle","matRippleColor","routerLink","click"],["class","perun-icon",3,"svgIcon",4,"ngIf"],[4,"ngIf"],[1,"nav-caption","ml-3"],[1,"perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-nav-list",0),n.YNc(1,yI,6,12,"mat-list-item",1),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngForOf",t.items))},dependencies:[x.sg,x.O5,x.PC,Ln,dI,uI,Lr,Ts,it],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block}.side-menu-item-height[_ngcontent-%COMP%]{height:40px!important}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),i})();const AI=["footer"],CD=function(i){return{background:i}},vI=function(i){return{"min-height":i}};function TI(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"perun-web-apps-header",1),n.NdJ("sidenavToggle",function(){n.CHM(e);const r=n.MAs(4);return n.KtG(r.toggle())}),n.qZA(),n.TgZ(2,"mat-sidenav-container",2)(3,"mat-sidenav",3,4),n._UZ(5,"perun-web-apps-side-menu",5),n.qZA(),n.TgZ(6,"mat-sidenav-content",6)(7,"div",7),n._UZ(8,"router-outlet"),n.qZA(),n.TgZ(9,"div",null,8),n._UZ(11,"perun-web-apps-footer"),n.qZA()()()()}if(2&i){const e=n.MAs(4),t=n.oxw();n.xp6(3),n.Q6J("mode",t.sidebarMode)("ngStyle",n.VKq(6,CD,t.sideMenuBgColor))("opened",!t.isMobile()),n.xp6(2),n.Q6J("sideNav",e),n.xp6(1),n.Q6J("ngStyle",n.VKq(8,CD,t.contentBackgroundColor)),n.xp6(1),n.Q6J("ngStyle",n.VKq(10,vI,t.contentHeight))}}function xI(i,s){1&i&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-login-screen-base",9),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Q6J("application","publications")("headerTitle",n.lcZ(2,2,"HEADER.TITLE")))}let MI=(()=>{class i{constructor(e,t,r,d,h){this.store=e,this.initAuth=t,this.changeDetector=r,this.authResolver=d,this.router=h,this.sidebarMode="side",this.sideMenuBgColor=this.store.getProperty("theme").sidemenu_bg_color,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.contentHeight="calc(100vh - 64px)"}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout");const e=location.pathname;!this.authResolver.isCabinetAdmin()&&("/"===e||["/all-publications","/authors","/categories","/publication-systems"].some(r=>e.includes(r)))&&this.router.navigate(["my-publications"],{queryParamsHandling:"preserve"})}isMobile(){return window.innerWidth<=i.minWidth}setContentHeight(e){this.contentHeight="calc(100vh - 84px - "+String(e)+"px)",this.changeDetector.detectChanges()}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return i.minWidth=992,i.\u0275fac=function(e){return new(e||i)(n.Y36(yi),n.Y36(Ax),n.Y36(n.sBO),n.Y36(dn),n.Y36($n))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&n.Gf(AI,5),2&e){let r;n.iGM(r=n.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&n.NdJ("resize",function(d){return t.getScreenSize(d)},!1,n.Jf7)},decls:3,vars:2,consts:[[4,"ngIf"],[3,"sidenavToggle"],["autosize","true"],["fixedInViewport","","fixedTopGap","64",1,"side-menu-size",3,"mode","ngStyle","opened"],["sidenav",""],[1,"overflow-hidden",3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application","headerTitle"]],template:function(e,t){1&e&&(n._UZ(0,"perun-web-apps-notificator"),n.YNc(1,TI,12,12,"div",0),n.YNc(2,xI,3,4,"div",0)),2&e&&(n.xp6(1),n.Q6J("ngIf",!t.isLoginScreenShow&&!t.isServiceAccess&&!t.isServiceLogin()),n.xp6(1),n.Q6J("ngIf",t.isLoginScreenShow||t.isServiceAccess||t.isServiceLogin()))},dependencies:[x.O5,x.PC,ZE,QE,Tx,lo,WR,nD,PL,KL,CI,it],styles:["#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 600px){#content-wrap[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}}#content-inner[_ngcontent-%COMP%]{position:relative;overflow-x:hidden;padding-top:64px;min-height:calc(100vh - 128px)}#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}.side-menu-size[_ngcontent-%COMP%]{width:300px;height:auto}"]}),i})();class SI{constructor(s,e="/assets/i18n/",t=".json"){this.http=s,this.prefix=e,this.suffix=t}getTranslation(s){return this.http.get(`${this.prefix}${s}${this.suffix}`)}}let EI=(()=>{class i{constructor(e,t,r,d,h){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=d,this.utilsService=h}initializeColors(e,t){return new Promise(r=>{t.forEach(d=>{const h=this.storeService.getProperty("theme")[d.configValue];document.documentElement.style.setProperty(d.cssVariable,h)}),e.forEach(d=>{const h=this.storeService.getProperty("theme")[d.configValue];document.documentElement.style.setProperty(d.cssVariable,h),this.setEntityTheme(d.entity,h)}),r()})}setEntityTheme(e,t){const r=function DI(i){return[ia(tinycolor(i).lighten(52),"50"),ia(tinycolor(i).lighten(37),"100"),ia(tinycolor(i).lighten(26),"200"),ia(tinycolor(i).lighten(12),"300"),ia(tinycolor(i).lighten(6),"400"),ia(tinycolor(i),"500"),ia(tinycolor(i).darken(6),"600"),ia(tinycolor(i).darken(12),"700"),ia(tinycolor(i).darken(18),"800"),ia(tinycolor(i).darken(24),"900"),ia(tinycolor(i).lighten(50).saturate(30),"A100"),ia(tinycolor(i).lighten(30).saturate(30),"A200"),ia(tinycolor(i).lighten(10).saturate(15),"A400"),ia(tinycolor(i).lighten(5).saturate(5),"A700")]}(t);for(const d of r){const o=`--${e}-theme-primary-contrast-${d.name}`,a=d.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${d.name}`,`${d.red},${d.green},${d.blue}`),document.documentElement.style.setProperty(o,a)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const r=document.location.hostname;t?.brandings?.[r]&&this.storeService.setBanding(r),e()},()=>{e()})})}getNoCacheHeaders(){return new v.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(yi),n.LFG(Va),n.LFG(oe),n.LFG(ui))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function ia(i,s){const e=tinycolor(i),t=e.toRgb();return{name:s,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let HI=(()=>{class i{constructor(e,t,r,d,h,c){this.initAuthService=e,this.appConfigService=t,this.location=r,this.authzSevice=d,this.guiAuthResolver=h,this.mfaHandlerService=c,this.entityColorConfigs=[{entity:"user",configValue:"user_color",cssVariable:"--user-color"}],this.colorConfigs=[{configValue:"sidemenu_bg_color",cssVariable:"--side-bg"},{configValue:"sidemenu_hover_color",cssVariable:"--side-hover"},{configValue:"sidemenu_hover_text_color",cssVariable:"--side-text-hover"},{configValue:"sidemenu_active_color",cssVariable:"--side-active"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-text-active"}]}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().then(()=>this.loadPolicies()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}loadPolicies(){return yx(this.authzSevice.getAllPolicies()).then(e=>{this.guiAuthResolver.setPerunPolicies(e)})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ax),n.LFG(EI),n.LFG(x.Ye),n.LFG(Va),n.LFG(dn),n.LFG(Cx))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const PI=new n.OlP("perun-api-service");function AD(i){return new n.vHH(3e3,!1)}function hO(){return typeof window<"u"&&typeof window.document<"u"}function Ux(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ad(i){switch(i.length){case 0:return new gu;case 1:return i[0];default:return new Lm(i)}}function vD(i,s,e,t,r=new Map,d=new Map){const h=[],c=[];let o=-1,a=null;if(t.forEach(l=>{const u=l.get("offset"),p=u==o,m=p&&a||new Map;l.forEach((g,f)=>{let y=f,j=g;if("offset"!==f)switch(y=s.normalizePropertyName(y,h),j){case"!":j=r.get(f);break;case yo:j=d.get(f);break;default:j=s.normalizeStyleValue(f,y,j,h)}m.set(y,j)}),p||c.push(m),a=m,o=u}),h.length)throw function eO(i){return new n.vHH(3502,!1)}();return c}function Nx(i,s,e,t){switch(s){case"start":i.onStart(()=>t(e&&Fx(e,"start",i)));break;case"done":i.onDone(()=>t(e&&Fx(e,"done",i)));break;case"destroy":i.onDestroy(()=>t(e&&Fx(e,"destroy",i)))}}function Fx(i,s,e){const d=Yx(i.element,i.triggerName,i.fromState,i.toState,s||i.phaseName,e.totalTime??i.totalTime,!!e.disabled),h=i._data;return null!=h&&(d._data=h),d}function Yx(i,s,e,t,r="",d=0,h){return{element:i,triggerName:s,fromState:e,toState:t,phaseName:r,totalTime:d,disabled:!!h}}function ka(i,s,e){let t=i.get(s);return t||i.set(s,t=e),t}function TD(i){const s=i.indexOf(":");return[i.substring(1,s),i.slice(s+1)]}let qx=(i,s)=>!1,xD=(i,s,e)=>[],MD=null;function zx(i){const s=i.parentNode||i.host;return s===MD?null:s}(Ux()||typeof Element<"u")&&(hO()?(MD=(()=>document.documentElement)(),qx=(i,s)=>{for(;s;){if(s===i)return!0;s=zx(s)}return!1}):qx=(i,s)=>i.contains(s),xD=(i,s,e)=>{if(e)return Array.from(i.querySelectorAll(s));const t=i.querySelector(s);return t?[t]:[]});let Vu=null,SD=!1;const ED=qx,DD=xD;let HD=(()=>{class i{validateStyleProperty(e){return function fO(i){Vu||(Vu=function mO(){return typeof document<"u"?document.body:null}()||{},SD=!!Vu.style&&"WebkitAppearance"in Vu.style);let s=!0;return Vu.style&&!function pO(i){return"ebkit"==i.substring(1,6)}(i)&&(s=i in Vu.style,!s&&SD&&(s="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Vu.style)),s}(e)}matchesElement(e,t){return!1}containsElement(e,t){return ED(e,t)}getParentElement(e){return zx(e)}query(e,t,r){return DD(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,d,h,c=[],o){return new gu(r,d)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Gx=(()=>{class i{}return i.NOOP=new HD,i})();const Wx="ng-enter",CC="ng-leave",AC="ng-trigger",vC=".ng-trigger",RD="ng-animating",$x=".ng-animating";function sd(i){if("number"==typeof i)return i;const s=i.match(/^(-?[\.\d]+)(m?s)/);return!s||s.length<2?0:Jx(parseFloat(s[1]),s[2])}function Jx(i,s){return"s"===s?1e3*i:i}function TC(i,s,e){return i.hasOwnProperty("duration")?i:function bO(i,s,e){let r,d=0,h="";if("string"==typeof i){const c=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===c)return s.push(AD()),{duration:0,delay:0,easing:""};r=Jx(parseFloat(c[1]),c[2]);const o=c[3];null!=o&&(d=Jx(parseFloat(o),c[4]));const a=c[5];a&&(h=a)}else r=i;if(!e){let c=!1,o=s.length;r<0&&(s.push(function RI(){return new n.vHH(3100,!1)}()),c=!0),d<0&&(s.push(function kI(){return new n.vHH(3101,!1)}()),c=!0),c&&s.splice(o,0,AD())}return{duration:r,delay:d,easing:h}}(i,s,e)}function i_(i,s={}){return Object.keys(i).forEach(e=>{s[e]=i[e]}),s}function kD(i){const s=new Map;return Object.keys(i).forEach(e=>{s.set(e,i[e])}),s}function od(i,s=new Map,e){if(e)for(let[t,r]of e)s.set(t,r);for(let[t,r]of i)s.set(t,r);return s}function ID(i,s,e){return e?s+":"+e+";":""}function OD(i){let s="";for(let e=0;e{const d=Qx(r);e&&!e.has(r)&&e.set(r,i.style[d]),i.style[d]=t}),Ux()&&OD(i))}function ju(i,s){i.style&&(s.forEach((e,t)=>{const r=Qx(t);i.style[r]=""}),Ux()&&OD(i))}function r_(i){return Array.isArray(i)?1==i.length?i[0]:yw(i):i}const Zx=new RegExp("{{\\s*(.+?)\\s*}}","g");function BD(i){let s=[];if("string"==typeof i){let e;for(;e=Zx.exec(i);)s.push(e[1]);Zx.lastIndex=0}return s}function xC(i,s,e){const t=i.toString(),r=t.replace(Zx,(d,h)=>{let c=s[h];return null==c&&(e.push(function II(i){return new n.vHH(3003,!1)}()),c=""),c.toString()});return r==t?i:r}function MC(i){const s=[];let e=i.next();for(;!e.done;)s.push(e.value),e=i.next();return s}const CO=/-+([a-z0-9])/g;function Qx(i){return i.replace(CO,(...s)=>s[1].toUpperCase())}function AO(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function La(i,s,e){switch(s.type){case 7:return i.visitTrigger(s,e);case 0:return i.visitState(s,e);case 1:return i.visitTransition(s,e);case 2:return i.visitSequence(s,e);case 3:return i.visitGroup(s,e);case 4:return i.visitAnimate(s,e);case 5:return i.visitKeyframes(s,e);case 6:return i.visitStyle(s,e);case 8:return i.visitReference(s,e);case 9:return i.visitAnimateChild(s,e);case 10:return i.visitAnimateRef(s,e);case 11:return i.visitQuery(s,e);case 12:return i.visitStagger(s,e);default:throw function OI(i){return new n.vHH(3004,!1)}()}}function VD(i,s){return window.getComputedStyle(i)[s]}function EO(i,s){const e=[];return"string"==typeof i?i.split(/\s*,\s*/).forEach(t=>function DO(i,s,e){if(":"==i[0]){const o=function HO(i,s){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(i,e);if("function"==typeof o)return void s.push(o);i=o}const t=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function JI(i){return new n.vHH(3015,!1)}()),s;const r=t[1],d=t[2],h=t[3];s.push(jD(r,h));"<"==d[0]&&!("*"==r&&"*"==h)&&s.push(jD(h,r))}(t,e,s)):e.push(i),e}const HC=new Set(["true","1"]),PC=new Set(["false","0"]);function jD(i,s){const e=HC.has(i)||PC.has(i),t=HC.has(s)||PC.has(s);return(r,d)=>{let h="*"==i||i==r,c="*"==s||s==d;return!h&&e&&"boolean"==typeof r&&(h=r?HC.has(i):PC.has(i)),!c&&t&&"boolean"==typeof d&&(c=d?HC.has(s):PC.has(s)),h&&c}}const PO=new RegExp("s*:selfs*,?","g");function Kx(i,s,e,t){return new RO(i).build(s,e,t)}class RO{constructor(s){this._driver=s}build(s,e,t){const r=new IO(e);return this._resetContextStyleTimingState(r),La(this,r_(s),r)}_resetContextStyleTimingState(s){s.currentQuerySelector="",s.collectedStyles=new Map,s.collectedStyles.set("",new Map),s.currentTime=0}visitTrigger(s,e){let t=e.queryCount=0,r=e.depCount=0;const d=[],h=[];return"@"==s.name.charAt(0)&&e.errors.push(function VI(){return new n.vHH(3006,!1)}()),s.definitions.forEach(c=>{if(this._resetContextStyleTimingState(e),0==c.type){const o=c,a=o.name;a.toString().split(/\s*,\s*/).forEach(l=>{o.name=l,d.push(this.visitState(o,e))}),o.name=a}else if(1==c.type){const o=this.visitTransition(c,e);t+=o.queryCount,r+=o.depCount,h.push(o)}else e.errors.push(function jI(){return new n.vHH(3007,!1)}())}),{type:7,name:s.name,states:d,transitions:h,queryCount:t,depCount:r,options:null}}visitState(s,e){const t=this.visitStyle(s.styles,e),r=s.options&&s.options.params||null;if(t.containsDynamicStyles){const d=new Set,h=r||{};t.styles.forEach(c=>{c instanceof Map&&c.forEach(o=>{BD(o).forEach(a=>{h.hasOwnProperty(a)||d.add(a)})})}),d.size&&(MC(d.values()),e.errors.push(function UI(i,s){return new n.vHH(3008,!1)}()))}return{type:0,name:s.name,style:t,options:r?{params:r}:null}}visitTransition(s,e){e.queryCount=0,e.depCount=0;const t=La(this,r_(s.animation),e);return{type:1,matchers:EO(s.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Uu(s.options)}}visitSequence(s,e){return{type:2,steps:s.steps.map(t=>La(this,t,e)),options:Uu(s.options)}}visitGroup(s,e){const t=e.currentTime;let r=0;const d=s.steps.map(h=>{e.currentTime=t;const c=La(this,h,e);return r=Math.max(r,e.currentTime),c});return e.currentTime=r,{type:3,steps:d,options:Uu(s.options)}}visitAnimate(s,e){const t=function BO(i,s){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return Xx(TC(i,s).duration,0,"");const e=i;if(e.split(/\s+/).some(d=>"{"==d.charAt(0)&&"{"==d.charAt(1))){const d=Xx(0,0,"");return d.dynamic=!0,d.strValue=e,d}const r=TC(e,s);return Xx(r.duration,r.delay,r.easing)}(s.timings,e.errors);e.currentAnimateTimings=t;let r,d=s.styles?s.styles:He({});if(5==d.type)r=this.visitKeyframes(d,e);else{let h=s.styles,c=!1;if(!h){c=!0;const a={};t.easing&&(a.easing=t.easing),h=He(a)}e.currentTime+=t.duration+t.delay;const o=this.visitStyle(h,e);o.isEmptyStep=c,r=o}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(s,e){const t=this._makeStyleAst(s,e);return this._validateStyleAst(t,e),t}_makeStyleAst(s,e){const t=[],r=Array.isArray(s.styles)?s.styles:[s.styles];for(let c of r)"string"==typeof c?c===yo?t.push(c):e.errors.push(new n.vHH(3002,!1)):t.push(kD(c));let d=!1,h=null;return t.forEach(c=>{if(c instanceof Map&&(c.has("easing")&&(h=c.get("easing"),c.delete("easing")),!d))for(let o of c.values())if(o.toString().indexOf("{{")>=0){d=!0;break}}),{type:6,styles:t,easing:h,offset:s.offset,containsDynamicStyles:d,options:null}}_validateStyleAst(s,e){const t=e.currentAnimateTimings;let r=e.currentTime,d=e.currentTime;t&&d>0&&(d-=t.duration+t.delay),s.styles.forEach(h=>{"string"!=typeof h&&h.forEach((c,o)=>{const a=e.collectedStyles.get(e.currentQuerySelector),l=a.get(o);let u=!0;l&&(d!=r&&d>=l.startTime&&r<=l.endTime&&(e.errors.push(function FI(i,s,e,t,r){return new n.vHH(3010,!1)}()),u=!1),d=l.startTime),u&&a.set(o,{startTime:d,endTime:r}),e.options&&function yO(i,s,e){const t=s.params||{},r=BD(i);r.length&&r.forEach(d=>{t.hasOwnProperty(d)||e.push(function LI(i){return new n.vHH(3001,!1)}())})}(c,e.options,e.errors)})})}visitKeyframes(s,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function YI(){return new n.vHH(3011,!1)}()),t;let d=0;const h=[];let c=!1,o=!1,a=0;const l=s.steps.map(j=>{const le=this._makeStyleAst(j,e);let Be=null!=le.offset?le.offset:function OO(i){if("string"==typeof i)return null;let s=null;if(Array.isArray(i))i.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;s=parseFloat(t.get("offset")),t.delete("offset")}});else if(i instanceof Map&&i.has("offset")){const e=i;s=parseFloat(e.get("offset")),e.delete("offset")}return s}(le.styles),Mt=0;return null!=Be&&(d++,Mt=le.offset=Be),o=o||Mt<0||Mt>1,c=c||Mt0&&d{const Be=p>0?le==m?1:p*le:h[le],Mt=Be*y;e.currentTime=g+f.delay+Mt,f.duration=Mt,this._validateStyleAst(j,e),j.offset=Be,t.styles.push(j)}),t}visitReference(s,e){return{type:8,animation:La(this,r_(s.animation),e),options:Uu(s.options)}}visitAnimateChild(s,e){return e.depCount++,{type:9,options:Uu(s.options)}}visitAnimateRef(s,e){return{type:10,animation:this.visitReference(s.animation,e),options:Uu(s.options)}}visitQuery(s,e){const t=e.currentQuerySelector,r=s.options||{};e.queryCount++,e.currentQuery=s;const[d,h]=function kO(i){const s=!!i.split(/\s*,\s*/).find(e=>":self"==e);return s&&(i=i.replace(PO,"")),i=i.replace(/@\*/g,vC).replace(/@\w+/g,e=>vC+"-"+e.slice(1)).replace(/:animating/g,$x),[i,s]}(s.selector);e.currentQuerySelector=t.length?t+" "+d:d,ka(e.collectedStyles,e.currentQuerySelector,new Map);const c=La(this,r_(s.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:d,limit:r.limit||0,optional:!!r.optional,includeSelf:h,animation:c,originalSelector:s.selector,options:Uu(s.options)}}visitStagger(s,e){e.currentQuery||e.errors.push(function WI(){return new n.vHH(3013,!1)}());const t="full"===s.timings?{duration:0,delay:0,easing:"full"}:TC(s.timings,e.errors,!0);return{type:12,animation:La(this,r_(s.animation),e),timings:t,options:null}}}class IO{constructor(s){this.errors=s,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 Uu(i){return i?(i=i_(i)).params&&(i.params=function LO(i){return i?i_(i):null}(i.params)):i={},i}function Xx(i,s,e){return{duration:i,delay:s,easing:e}}function eM(i,s,e,t,r,d,h=null,c=!1){return{type:1,element:i,keyframes:s,preStyleProps:e,postStyleProps:t,duration:r,delay:d,totalTime:r+d,easing:h,subTimeline:c}}class RC{constructor(){this._map=new Map}get(s){return this._map.get(s)||[]}append(s,e){let t=this._map.get(s);t||this._map.set(s,t=[]),t.push(...e)}has(s){return this._map.has(s)}clear(){this._map.clear()}}const UO=new RegExp(":enter","g"),FO=new RegExp(":leave","g");function tM(i,s,e,t,r,d=new Map,h=new Map,c,o,a=[]){return(new YO).buildKeyframes(i,s,e,t,r,d,h,c,o,a)}class YO{buildKeyframes(s,e,t,r,d,h,c,o,a,l=[]){a=a||new RC;const u=new nM(s,e,a,r,d,l,[]);u.options=o;const p=o.delay?sd(o.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([h],null,u.errors,o),La(this,t,u);const m=u.timelines.filter(g=>g.containsAnimation());if(m.length&&c.size){let g;for(let f=m.length-1;f>=0;f--){const y=m[f];if(y.element===e){g=y;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([c],null,u.errors,o)}return m.length?m.map(g=>g.buildKeyframes()):[eM(e,[],[],[],0,p,"",!1)]}visitTrigger(s,e){}visitState(s,e){}visitTransition(s,e){}visitAnimateChild(s,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(s.options),d=e.currentTimeline.currentTime,h=this._visitSubInstructions(t,r,r.options);d!=h&&e.transformIntoNewTimeline(h)}e.previousNode=s}visitAnimateRef(s,e){const t=e.createSubContext(s.options);t.transformIntoNewTimeline(),this.visitReference(s.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=s}_visitSubInstructions(s,e,t){let d=e.currentTimeline.currentTime;const h=null!=t.duration?sd(t.duration):null,c=null!=t.delay?sd(t.delay):null;return 0!==h&&s.forEach(o=>{const a=e.appendInstructionToTimeline(o,h,c);d=Math.max(d,a.duration+a.delay)}),d}visitReference(s,e){e.updateOptions(s.options,!0),La(this,s.animation,e),e.previousNode=s}visitSequence(s,e){const t=e.subContextCount;let r=e;const d=s.options;if(d&&(d.params||d.delay)&&(r=e.createSubContext(d),r.transformIntoNewTimeline(),null!=d.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=kC);const h=sd(d.delay);r.delayNextStep(h)}s.steps.length&&(s.steps.forEach(h=>La(this,h,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=s}visitGroup(s,e){const t=[];let r=e.currentTimeline.currentTime;const d=s.options&&s.options.delay?sd(s.options.delay):0;s.steps.forEach(h=>{const c=e.createSubContext(s.options);d&&c.delayNextStep(d),La(this,h,c),r=Math.max(r,c.currentTimeline.currentTime),t.push(c.currentTimeline)}),t.forEach(h=>e.currentTimeline.mergeTimelineCollectedStyles(h)),e.transformIntoNewTimeline(r),e.previousNode=s}_visitTiming(s,e){if(s.dynamic){const t=s.strValue;return TC(e.params?xC(t,e.params,e.errors):t,e.errors)}return{duration:s.duration,delay:s.delay,easing:s.easing}}visitAnimate(s,e){const t=e.currentAnimateTimings=this._visitTiming(s.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const d=s.style;5==d.type?this.visitKeyframes(d,e):(e.incrementTime(t.duration),this.visitStyle(d,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=s}visitStyle(s,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();const d=r&&r.easing||s.easing;s.isEmptyStep?t.applyEmptyStep(d):t.setStyles(s.styles,d,e.errors,e.options),e.previousNode=s}visitKeyframes(s,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,d=t.duration,c=e.createSubContext().currentTimeline;c.easing=t.easing,s.styles.forEach(o=>{c.forwardTime((o.offset||0)*d),c.setStyles(o.styles,o.easing,e.errors,e.options),c.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(c),e.transformIntoNewTimeline(r+d),e.previousNode=s}visitQuery(s,e){const t=e.currentTimeline.currentTime,r=s.options||{},d=r.delay?sd(r.delay):0;d&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=kC);let h=t;const c=e.invokeQuery(s.selector,s.originalSelector,s.limit,s.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=c.length;let o=null;c.forEach((a,l)=>{e.currentQueryIndex=l;const u=e.createSubContext(s.options,a);d&&u.delayNextStep(d),a===e.element&&(o=u.currentTimeline),La(this,s.animation,u),u.currentTimeline.applyStylesToKeyframe(),h=Math.max(h,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(h),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=s}visitStagger(s,e){const t=e.parentContext,r=e.currentTimeline,d=s.timings,h=Math.abs(d.duration),c=h*(e.currentQueryTotal-1);let o=h*e.currentQueryIndex;switch(d.duration<0?"reverse":d.easing){case"reverse":o=c-o;break;case"full":o=t.currentStaggerTime}const l=e.currentTimeline;o&&l.delayNextStep(o);const u=l.currentTime;La(this,s.animation,e),e.previousNode=s,t.currentStaggerTime=r.currentTime-u+(r.startTime-t.currentTimeline.startTime)}}const kC={};class nM{constructor(s,e,t,r,d,h,c,o){this._driver=s,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=d,this.errors=h,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=kC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new LC(this._driver,e,0),c.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(s,e){if(!s)return;const t=s;let r=this.options;null!=t.duration&&(r.duration=sd(t.duration)),null!=t.delay&&(r.delay=sd(t.delay));const d=t.params;if(d){let h=r.params;h||(h=this.options.params={}),Object.keys(d).forEach(c=>{(!e||!h.hasOwnProperty(c))&&(h[c]=xC(d[c],h,this.errors))})}}_copyOptions(){const s={};if(this.options){const e=this.options.params;if(e){const t=s.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return s}createSubContext(s=null,e,t){const r=e||this.element,d=new nM(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return d.previousNode=this.previousNode,d.currentAnimateTimings=this.currentAnimateTimings,d.options=this._copyOptions(),d.updateOptions(s),d.currentQueryIndex=this.currentQueryIndex,d.currentQueryTotal=this.currentQueryTotal,d.parentContext=this,this.subContextCount++,d}transformIntoNewTimeline(s){return this.previousNode=kC,this.currentTimeline=this.currentTimeline.fork(this.element,s),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(s,e,t){const r={duration:e??s.duration,delay:this.currentTimeline.currentTime+(t??0)+s.delay,easing:""},d=new qO(this._driver,s.element,s.keyframes,s.preStyleProps,s.postStyleProps,r,s.stretchStartingKeyframe);return this.timelines.push(d),r}incrementTime(s){this.currentTimeline.forwardTime(this.currentTimeline.duration+s)}delayNextStep(s){s>0&&this.currentTimeline.delayNextStep(s)}invokeQuery(s,e,t,r,d,h){let c=[];if(r&&c.push(this.element),s.length>0){s=(s=s.replace(UO,"."+this._enterClassName)).replace(FO,"."+this._leaveClassName);let a=this._driver.query(this.element,s,1!=t);0!==t&&(a=t<0?a.slice(a.length+t,a.length):a.slice(0,t)),c.push(...a)}return!d&&0==c.length&&h.push(function $I(i){return new n.vHH(3014,!1)}()),c}}class LC{constructor(s,e,t,r){this._driver=s,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(s){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+s),e&&this.snapshotCurrentStyles()):this.startTime+=s}fork(s,e){return this.applyStylesToKeyframe(),new LC(this._driver,s,e||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+=1,this._loadKeyframe()}forwardTime(s){this.applyStylesToKeyframe(),this.duration=s,this._loadKeyframe()}_updateStyle(s,e){this._localTimelineStyles.set(s,e),this._globalTimelineStyles.set(s,e),this._styleSummary.set(s,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(s){s&&this._previousKeyframe.set("easing",s);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||yo),this._currentKeyframe.set(e,yo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(s,e,t,r){e&&this._previousKeyframe.set("easing",e);const d=r&&r.params||{},h=function zO(i,s){const e=new Map;let t;return i.forEach(r=>{if("*"===r){t=t||s.keys();for(let d of t)e.set(d,yo)}else od(r,e)}),e}(s,this._globalTimelineStyles);for(let[c,o]of h){const a=xC(o,d,t);this._pendingStyles.set(c,a),this._localTimelineStyles.has(c)||this._backFill.set(c,this._globalTimelineStyles.get(c)??yo),this._updateStyle(c,a)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((s,e)=>{this._currentKeyframe.set(e,s)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((s,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,s)}))}snapshotCurrentStyles(){for(let[s,e]of this._localTimelineStyles)this._pendingStyles.set(s,e),this._updateStyle(s,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const s=[];for(let e in this._currentKeyframe)s.push(e);return s}mergeTimelineCollectedStyles(s){s._styleSummary.forEach((e,t)=>{const r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const s=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((c,o)=>{const a=od(c,new Map,this._backFill);a.forEach((l,u)=>{"!"===l?s.add(u):l===yo&&e.add(u)}),t||a.set("offset",o/this.duration),r.push(a)});const d=s.size?MC(s.values()):[],h=e.size?MC(e.values()):[];if(t){const c=r[0],o=new Map(c);c.set("offset",0),o.set("offset",1),r=[c,o]}return eM(this.element,r,d,h,this.duration,this.startTime,this.easing,!1)}}class qO extends LC{constructor(s,e,t,r,d,h,c=!1){super(s,e,h.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=d,this._stretchStartingKeyframe=c,this.timings={duration:h.duration,delay:h.delay,easing:h.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let s=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const d=[],h=t+e,c=e/h,o=od(s[0]);o.set("offset",0),d.push(o);const a=od(s[0]);a.set("offset",FD(c)),d.push(a);const l=s.length-1;for(let u=1;u<=l;u++){let p=od(s[u]);const m=p.get("offset");p.set("offset",FD((e+m*t)/h)),d.push(p)}t=h,e=0,r="",s=d}return eM(this.element,s,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function FD(i,s=3){const e=Math.pow(10,s-1);return Math.round(i*e)/e}class iM{}const GO=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"]);class WO extends iM{normalizePropertyName(s,e){return Qx(s)}normalizeStyleValue(s,e,t,r){let d="";const h=t.toString().trim();if(GO.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)d="px";else{const c=t.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&r.push(function BI(i,s){return new n.vHH(3005,!1)}())}return h+d}}function YD(i,s,e,t,r,d,h,c,o,a,l,u,p){return{type:0,element:i,triggerName:s,isRemovalTransition:r,fromState:e,fromStyles:d,toState:t,toStyles:h,timelines:c,queriedElements:o,preStyleProps:a,postStyleProps:l,totalTime:u,errors:p}}const rM={};class qD{constructor(s,e,t){this._triggerName=s,this.ast=e,this._stateStyles=t}match(s,e,t,r){return function $O(i,s,e,t,r){return i.some(d=>d(s,e,t,r))}(this.ast.matchers,s,e,t,r)}buildStyles(s,e,t){let r=this._stateStyles.get("*");return void 0!==s&&(r=this._stateStyles.get(s?.toString())||r),r?r.buildStyles(e,t):new Map}build(s,e,t,r,d,h,c,o,a,l){const u=[],p=this.ast.options&&this.ast.options.params||rM,g=this.buildStyles(t,c&&c.params||rM,u),f=o&&o.params||rM,y=this.buildStyles(r,f,u),j=new Set,le=new Map,Be=new Map,Mt="void"===r,xi={params:JO(f,p),delay:this.ast.options?.delay},Xn=l?[]:tM(s,e,this.ast.animation,d,h,g,y,xi,a,u);let pi=0;if(Xn.forEach(ls=>{pi=Math.max(ls.duration+ls.delay,pi)}),u.length)return YD(e,this._triggerName,t,r,Mt,g,y,[],[],le,Be,pi,u);Xn.forEach(ls=>{const Jl=ls.element,GH=ka(le,Jl,new Set);ls.preStyleProps.forEach(Yu=>GH.add(Yu));const b_=ka(Be,Jl,new Set);ls.postStyleProps.forEach(Yu=>b_.add(Yu)),Jl!==e&&j.add(Jl)});const Or=MC(j.values());return YD(e,this._triggerName,t,r,Mt,g,y,Xn,Or,le,Be,pi)}}function JO(i,s){const e=i_(s);for(const t in i)i.hasOwnProperty(t)&&null!=i[t]&&(e[t]=i[t]);return e}class ZO{constructor(s,e,t){this.styles=s,this.defaultParams=e,this.normalizer=t}buildStyles(s,e){const t=new Map,r=i_(this.defaultParams);return Object.keys(s).forEach(d=>{const h=s[d];null!==h&&(r[d]=h)}),this.styles.styles.forEach(d=>{"string"!=typeof d&&d.forEach((h,c)=>{h&&(h=xC(h,r,e));const o=this.normalizer.normalizePropertyName(c,e);h=this.normalizer.normalizeStyleValue(c,o,h,e),t.set(o,h)})}),t}}class KO{constructor(s,e,t){this.name=s,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new ZO(r.style,r.options&&r.options.params||{},t))}),zD(this.states,"true","1"),zD(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new qD(s,r,this.states))}),this.fallbackTransition=function XO(i,s,e){return new qD(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(h,c)=>!0],options:null,queryCount:0,depCount:0},s)}(s,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(s,e,t,r){return this.transitionFactories.find(h=>h.match(s,e,t,r))||null}matchStyles(s,e,t){return this.fallbackTransition.buildStyles(s,e,t)}}function zD(i,s,e){i.has(s)?i.has(e)||i.set(e,i.get(s)):i.has(e)&&i.set(s,i.get(e))}const eB=new RC;class tB{constructor(s,e,t){this.bodyNode=s,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(s,e){const t=[],d=Kx(this._driver,e,t,[]);if(t.length)throw function tO(i){return new n.vHH(3503,!1)}();this._animations.set(s,d)}_buildPlayer(s,e,t){const r=s.element,d=vD(0,this._normalizer,0,s.keyframes,e,t);return this._driver.animate(r,d,s.duration,s.delay,s.easing,[],!0)}create(s,e,t={}){const r=[],d=this._animations.get(s);let h;const c=new Map;if(d?(h=tM(this._driver,e,d,Wx,CC,new Map,new Map,t,eB,r),h.forEach(l=>{const u=ka(c,l.element,new Map);l.postStyleProps.forEach(p=>u.set(p,null))})):(r.push(function nO(){return new n.vHH(3300,!1)}()),h=[]),r.length)throw function iO(i){return new n.vHH(3504,!1)}();c.forEach((l,u)=>{l.forEach((p,m)=>{l.set(m,this._driver.computeStyle(u,m,yo))})});const a=ad(h.map(l=>{const u=c.get(l.element);return this._buildPlayer(l,new Map,u)}));return this._playersById.set(s,a),a.onDestroy(()=>this.destroy(s)),this.players.push(a),a}destroy(s){const e=this._getPlayer(s);e.destroy(),this._playersById.delete(s);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(s){const e=this._playersById.get(s);if(!e)throw function rO(i){return new n.vHH(3301,!1)}();return e}listen(s,e,t,r){const d=Yx(e,"","","");return Nx(this._getPlayer(s),t,d,r),()=>{}}command(s,e,t,r){if("register"==t)return void this.register(s,r[0]);if("create"==t)return void this.create(s,e,r[0]||{});const d=this._getPlayer(s);switch(t){case"play":d.play();break;case"pause":d.pause();break;case"reset":d.reset();break;case"restart":d.restart();break;case"finish":d.finish();break;case"init":d.init();break;case"setPosition":d.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(s)}}}const GD="ng-animate-queued",aM="ng-animate-disabled",sB=[],WD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},oB={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ss="__ng_removed";class sM{constructor(s,e=""){this.namespaceId=e;const t=s&&s.hasOwnProperty("value");if(this.value=function uB(i){return i??null}(t?s.value:s),t){const d=i_(s);delete d.value,this.options=d}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(s){const e=s.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const a_="void",oM=new sM(a_);class lB{constructor(s,e,t){this.id=s,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+s,os(e,this._hostClassName)}listen(s,e,t,r){if(!this._triggers.has(e))throw function aO(i,s){return new n.vHH(3302,!1)}();if(null==t||0==t.length)throw function sO(i){return new n.vHH(3303,!1)}();if(!function hB(i){return"start"==i||"done"==i}(t))throw function oO(i,s){return new n.vHH(3400,!1)}();const d=ka(this._elementListeners,s,[]),h={name:e,phase:t,callback:r};d.push(h);const c=ka(this._engine.statesByElement,s,new Map);return c.has(e)||(os(s,AC),os(s,AC+"-"+e),c.set(e,oM)),()=>{this._engine.afterFlush(()=>{const o=d.indexOf(h);o>=0&&d.splice(o,1),this._triggers.has(e)||c.delete(e)})}}register(s,e){return!this._triggers.has(s)&&(this._triggers.set(s,e),!0)}_getTrigger(s){const e=this._triggers.get(s);if(!e)throw function lO(i){return new n.vHH(3401,!1)}();return e}trigger(s,e,t,r=!0){const d=this._getTrigger(e),h=new lM(this.id,e,s);let c=this._engine.statesByElement.get(s);c||(os(s,AC),os(s,AC+"-"+e),this._engine.statesByElement.set(s,c=new Map));let o=c.get(e);const a=new sM(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&o&&a.absorbOptions(o.options),c.set(e,a),o||(o=oM),a.value!==a_&&o.value===a.value){if(!function mB(i,s){const e=Object.keys(i),t=Object.keys(s);if(e.length!=t.length)return!1;for(let r=0;r{ju(s,y),Ro(s,j)})}return}const p=ka(this._engine.playersByElement,s,[]);p.forEach(f=>{f.namespaceId==this.id&&f.triggerName==e&&f.queued&&f.destroy()});let m=d.matchTransition(o.value,a.value,s,a.params),g=!1;if(!m){if(!r)return;m=d.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:e,transition:m,fromState:o,toState:a,player:h,isFallbackTransition:g}),g||(os(s,GD),h.onStart(()=>{ef(s,GD)})),h.onDone(()=>{let f=this.players.indexOf(h);f>=0&&this.players.splice(f,1);const y=this._engine.playersByElement.get(s);if(y){let j=y.indexOf(h);j>=0&&y.splice(j,1)}}),this.players.push(h),p.push(h),h}deregister(s){this._triggers.delete(s),this._engine.statesByElement.forEach(e=>e.delete(s)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=s))})}clearElementCache(s){this._engine.statesByElement.delete(s),this._elementListeners.delete(s);const e=this._engine.playersByElement.get(s);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(s))}_signalRemovalForInnerTriggers(s,e){const t=this._engine.driver.query(s,vC,!0);t.forEach(r=>{if(r[ss])return;const d=this._engine.fetchNamespacesByElement(r);d.size?d.forEach(h=>h.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(s,e,t,r){const d=this._engine.statesByElement.get(s),h=new Map;if(d){const c=[];if(d.forEach((o,a)=>{if(h.set(a,o.value),this._triggers.has(a)){const l=this.trigger(s,a,a_,r);l&&c.push(l)}}),c.length)return this._engine.markElementAsRemoved(this.id,s,!0,e,h),t&&ad(c).onDone(()=>this._engine.processLeaveNode(s)),!0}return!1}prepareLeaveAnimationListeners(s){const e=this._elementListeners.get(s),t=this._engine.statesByElement.get(s);if(e&&t){const r=new Set;e.forEach(d=>{const h=d.name;if(r.has(h))return;r.add(h);const o=this._triggers.get(h).fallbackTransition,a=t.get(h)||oM,l=new sM(a_),u=new lM(this.id,h,s);this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:h,transition:o,fromState:a,toState:l,player:u,isFallbackTransition:!0})})}}removeNode(s,e){const t=this._engine;if(s.childElementCount&&this._signalRemovalForInnerTriggers(s,e),this.triggerLeaveAnimation(s,e,!0))return;let r=!1;if(t.totalAnimations){const d=t.players.length?t.playersByQueriedElement.get(s):[];if(d&&d.length)r=!0;else{let h=s;for(;h=h.parentNode;)if(t.statesByElement.get(h)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(s),r)t.markElementAsRemoved(this.id,s,!1,e);else{const d=s[ss];(!d||d===WD)&&(t.afterFlush(()=>this.clearElementCache(s)),t.destroyInnerAnimations(s),t._onRemovalComplete(s,e))}}insertNode(s,e){os(s,this._hostClassName)}drainQueuedTransitions(s){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const d=t.element,h=this._elementListeners.get(d);h&&h.forEach(c=>{if(c.name==t.triggerName){const o=Yx(d,t.triggerName,t.fromState.value,t.toState.value);o._data=s,Nx(t.player,c.phase,o,c.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const d=t.transition.ast.depCount,h=r.transition.ast.depCount;return 0==d||0==h?d-h:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(s){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,s)}elementContainsData(s){let e=!1;return this._elementListeners.has(s)&&(e=!0),e=!!this._queue.find(t=>t.element===s)||e,e}}class cB{constructor(s,e,t){this.bodyNode=s,this.driver=e,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=(r,d)=>{}}_onRemovalComplete(s,e){this.onRemovalComplete(s,e)}get queuedPlayers(){const s=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&s.push(t)})}),s}createNamespace(s,e){const t=new lB(s,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[s]=t}_balanceNamespaceList(s,e){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let h=!1,c=this.driver.getParentElement(e);for(;c;){const o=r.get(c);if(o){const a=t.indexOf(o);t.splice(a+1,0,s),h=!0;break}c=this.driver.getParentElement(c)}h||t.unshift(s)}else t.push(s);return r.set(e,s),s}register(s,e){let t=this._namespaceLookup[s];return t||(t=this.createNamespace(s,e)),t}registerTrigger(s,e,t){let r=this._namespaceLookup[s];r&&r.register(e,t)&&this.totalAnimations++}destroy(s,e){if(!s)return;const t=this._fetchNamespace(s);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[s];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(s){return this._namespaceLookup[s]}fetchNamespacesByElement(s){const e=new Set,t=this.statesByElement.get(s);if(t)for(let r of t.values())if(r.namespaceId){const d=this._fetchNamespace(r.namespaceId);d&&e.add(d)}return e}trigger(s,e,t,r){if(IC(e)){const d=this._fetchNamespace(s);if(d)return d.trigger(e,t,r),!0}return!1}insertNode(s,e,t,r){if(!IC(e))return;const d=e[ss];if(d&&d.setForRemoval){d.setForRemoval=!1,d.setForMove=!0;const h=this.collectedLeaveElements.indexOf(e);h>=0&&this.collectedLeaveElements.splice(h,1)}if(s){const h=this._fetchNamespace(s);h&&h.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(s){this.collectedEnterElements.push(s)}markElementAsDisabled(s,e){e?this.disabledNodes.has(s)||(this.disabledNodes.add(s),os(s,aM)):this.disabledNodes.has(s)&&(this.disabledNodes.delete(s),ef(s,aM))}removeNode(s,e,t,r){if(IC(e)){const d=s?this._fetchNamespace(s):null;if(d?d.removeNode(e,r):this.markElementAsRemoved(s,e,!1,r),t){const h=this.namespacesByHostElement.get(e);h&&h.id!==s&&h.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(s,e,t,r,d){this.collectedLeaveElements.push(e),e[ss]={namespaceId:s,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:d}}listen(s,e,t,r,d){return IC(e)?this._fetchNamespace(s).listen(e,t,r,d):()=>{}}_buildInstruction(s,e,t,r,d){return s.transition.build(this.driver,s.element,s.fromState.value,s.toState.value,t,r,s.fromState.options,s.toState.options,e,d)}destroyInnerAnimations(s){let e=this.driver.query(s,vC,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(s,$x,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(s){const e=this.playersByElement.get(s);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(s){const e=this.playersByQueriedElement.get(s);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(s=>{if(this.players.length)return ad(this.players).onDone(()=>s());s()})}processLeaveNode(s){const e=s[ss];if(e&&e.setForRemoval){if(s[ss]=WD,e.namespaceId){this.destroyInnerAnimations(s);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(s)}this._onRemovalComplete(s,e.setForRemoval)}s.classList?.contains(aM)&&this.markElementAsDisabled(s,!1),this.driver.query(s,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(s=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?ad(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(s){throw function cO(i){return new n.vHH(3402,!1)}()}_flushAnimations(s,e){const t=new RC,r=[],d=new Map,h=[],c=new Map,o=new Map,a=new Map,l=new Set;this.disabledNodes.forEach(ot=>{l.add(ot);const Ct=this.driver.query(ot,".ng-animate-queued",!0);for(let St=0;St{const St=Wx+f++;g.set(Ct,St),ot.forEach(an=>os(an,St))});const y=[],j=new Set,le=new Set;for(let ot=0;otj.add(an)):le.add(Ct))}const Be=new Map,Mt=ZD(p,Array.from(j));Mt.forEach((ot,Ct)=>{const St=CC+f++;Be.set(Ct,St),ot.forEach(an=>os(an,St))}),s.push(()=>{m.forEach((ot,Ct)=>{const St=g.get(Ct);ot.forEach(an=>ef(an,St))}),Mt.forEach((ot,Ct)=>{const St=Be.get(Ct);ot.forEach(an=>ef(an,St))}),y.forEach(ot=>{this.processLeaveNode(ot)})});const xi=[],Xn=[];for(let ot=this._namespaceList.length-1;ot>=0;ot--)this._namespaceList[ot].drainQueuedTransitions(e).forEach(St=>{const an=St.player,Zi=St.element;if(xi.push(an),this.collectedEnterElements.length){const yr=Zi[ss];if(yr&&yr.setForMove){if(yr.previousTriggersValues&&yr.previousTriggersValues.has(St.triggerName)){const qu=yr.previousTriggersValues.get(St.triggerName),cs=this.statesByElement.get(St.element);if(cs&&cs.has(St.triggerName)){const KC=cs.get(St.triggerName);KC.value=qu,cs.set(St.triggerName,KC)}}return void an.destroy()}}const Lo=!u||!this.driver.containsElement(u,Zi),Ba=Be.get(Zi),ud=g.get(Zi),li=this._buildInstruction(St,t,ud,Ba,Lo);if(li.errors&&li.errors.length)return void Xn.push(li);if(Lo)return an.onStart(()=>ju(Zi,li.fromStyles)),an.onDestroy(()=>Ro(Zi,li.toStyles)),void r.push(an);if(St.isFallbackTransition)return an.onStart(()=>ju(Zi,li.fromStyles)),an.onDestroy(()=>Ro(Zi,li.toStyles)),void r.push(an);const JH=[];li.timelines.forEach(yr=>{yr.stretchStartingKeyframe=!0,this.disabledNodes.has(yr.element)||JH.push(yr)}),li.timelines=JH,t.append(Zi,li.timelines),h.push({instruction:li,player:an,element:Zi}),li.queriedElements.forEach(yr=>ka(c,yr,[]).push(an)),li.preStyleProps.forEach((yr,qu)=>{if(yr.size){let cs=o.get(qu);cs||o.set(qu,cs=new Set),yr.forEach((KC,FM)=>cs.add(FM))}}),li.postStyleProps.forEach((yr,qu)=>{let cs=a.get(qu);cs||a.set(qu,cs=new Set),yr.forEach((KC,FM)=>cs.add(FM))})});if(Xn.length){const ot=[];Xn.forEach(Ct=>{ot.push(function dO(i,s){return new n.vHH(3505,!1)}())}),xi.forEach(Ct=>Ct.destroy()),this.reportError(ot)}const pi=new Map,Or=new Map;h.forEach(ot=>{const Ct=ot.element;t.has(Ct)&&(Or.set(Ct,Ct),this._beforeAnimationBuild(ot.player.namespaceId,ot.instruction,pi))}),r.forEach(ot=>{const Ct=ot.element;this._getPreviousPlayers(Ct,!1,ot.namespaceId,ot.triggerName,null).forEach(an=>{ka(pi,Ct,[]).push(an),an.destroy()})});const ls=y.filter(ot=>KD(ot,o,a)),Jl=new Map;JD(Jl,this.driver,le,a,yo).forEach(ot=>{KD(ot,o,a)&&ls.push(ot)});const b_=new Map;m.forEach((ot,Ct)=>{JD(b_,this.driver,new Set(ot),o,"!")}),ls.forEach(ot=>{const Ct=Jl.get(ot),St=b_.get(ot);Jl.set(ot,new Map([...Array.from(Ct?.entries()??[]),...Array.from(St?.entries()??[])]))});const Yu=[],WH=[],$H={};h.forEach(ot=>{const{element:Ct,player:St,instruction:an}=ot;if(t.has(Ct)){if(l.has(Ct))return St.onDestroy(()=>Ro(Ct,an.toStyles)),St.disabled=!0,St.overrideTotalTime(an.totalTime),void r.push(St);let Zi=$H;if(Or.size>1){let Ba=Ct;const ud=[];for(;Ba=Ba.parentNode;){const li=Or.get(Ba);if(li){Zi=li;break}ud.push(Ba)}ud.forEach(li=>Or.set(li,Zi))}const Lo=this._buildAnimation(St.namespaceId,an,pi,d,b_,Jl);if(St.setRealPlayer(Lo),Zi===$H)Yu.push(St);else{const Ba=this.playersByElement.get(Zi);Ba&&Ba.length&&(St.parentPlayer=ad(Ba)),r.push(St)}}else ju(Ct,an.fromStyles),St.onDestroy(()=>Ro(Ct,an.toStyles)),WH.push(St),l.has(Ct)&&r.push(St)}),WH.forEach(ot=>{const Ct=d.get(ot.element);if(Ct&&Ct.length){const St=ad(Ct);ot.setRealPlayer(St)}}),r.forEach(ot=>{ot.parentPlayer?ot.syncPlayerEvents(ot.parentPlayer):ot.destroy()});for(let ot=0;ot!Lo.destroyed);Zi.length?pB(this,Ct,Zi):this.processLeaveNode(Ct)}return y.length=0,Yu.forEach(ot=>{this.players.push(ot),ot.onDone(()=>{ot.destroy();const Ct=this.players.indexOf(ot);this.players.splice(Ct,1)}),ot.play()}),Yu}elementContainsData(s,e){let t=!1;const r=e[ss];return r&&r.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(s).elementContainsData(e)||t}afterFlush(s){this._flushFns.push(s)}afterFlushAnimationsDone(s){this._whenQuietFns.push(s)}_getPreviousPlayers(s,e,t,r,d){let h=[];if(e){const c=this.playersByQueriedElement.get(s);c&&(h=c)}else{const c=this.playersByElement.get(s);if(c){const o=!d||d==a_;c.forEach(a=>{a.queued||!o&&a.triggerName!=r||h.push(a)})}}return(t||r)&&(h=h.filter(c=>!(t&&t!=c.namespaceId||r&&r!=c.triggerName))),h}_beforeAnimationBuild(s,e,t){const d=e.element,h=e.isRemovalTransition?void 0:s,c=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const a=o.element,l=a!==d,u=ka(t,a,[]);this._getPreviousPlayers(a,l,h,c,e.toState).forEach(m=>{const g=m.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),m.destroy(),u.push(m)})}ju(d,e.fromStyles)}_buildAnimation(s,e,t,r,d,h){const c=e.triggerName,o=e.element,a=[],l=new Set,u=new Set,p=e.timelines.map(g=>{const f=g.element;l.add(f);const y=f[ss];if(y&&y.removedBeforeQueried)return new gu(g.duration,g.delay);const j=f!==o,le=function fB(i){const s=[];return QD(i,s),s}((t.get(f)||sB).map(pi=>pi.getRealPlayer())).filter(pi=>!!pi.element&&pi.element===f),Be=d.get(f),Mt=h.get(f),xi=vD(0,this._normalizer,0,g.keyframes,Be,Mt),Xn=this._buildPlayer(g,xi,le);if(g.subTimeline&&r&&u.add(f),j){const pi=new lM(s,c,f);pi.setRealPlayer(Xn),a.push(pi)}return Xn});a.forEach(g=>{ka(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function dB(i,s,e){let t=i.get(s);if(t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&i.delete(s)}return t}(this.playersByQueriedElement,g.element,g))}),l.forEach(g=>os(g,RD));const m=ad(p);return m.onDestroy(()=>{l.forEach(g=>ef(g,RD)),Ro(o,e.toStyles)}),u.forEach(g=>{ka(r,g,[]).push(m)}),m}_buildPlayer(s,e,t){return e.length>0?this.driver.animate(s.element,e,s.duration,s.delay,s.easing,t):new gu(s.duration,s.delay)}}class lM{constructor(s,e,t){this.namespaceId=s,this.triggerName=e,this.element=t,this._player=new gu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(s){this._containsRealPlayer||(this._player=s,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>Nx(s,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(s.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(s){this.totalTime=s}syncPlayerEvents(s){const e=this._player;e.triggerCallback&&s.onStart(()=>e.triggerCallback("start")),s.onDone(()=>this.finish()),s.onDestroy(()=>this.destroy())}_queueEvent(s,e){ka(this._queuedCallbacks,s,[]).push(e)}onDone(s){this.queued&&this._queueEvent("done",s),this._player.onDone(s)}onStart(s){this.queued&&this._queueEvent("start",s),this._player.onStart(s)}onDestroy(s){this.queued&&this._queueEvent("destroy",s),this._player.onDestroy(s)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(s){this.queued||this._player.setPosition(s)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(s){const e=this._player;e.triggerCallback&&e.triggerCallback(s)}}function IC(i){return i&&1===i.nodeType}function $D(i,s){const e=i.style.display;return i.style.display=s??"none",e}function JD(i,s,e,t,r){const d=[];e.forEach(o=>d.push($D(o)));const h=[];t.forEach((o,a)=>{const l=new Map;o.forEach(u=>{const p=s.computeStyle(a,u,r);l.set(u,p),(!p||0==p.length)&&(a[ss]=oB,h.push(a))}),i.set(a,l)});let c=0;return e.forEach(o=>$D(o,d[c++])),h}function ZD(i,s){const e=new Map;if(i.forEach(c=>e.set(c,[])),0==s.length)return e;const r=new Set(s),d=new Map;function h(c){if(!c)return 1;let o=d.get(c);if(o)return o;const a=c.parentNode;return o=e.has(a)?a:r.has(a)?1:h(a),d.set(c,o),o}return s.forEach(c=>{const o=h(c);1!==o&&e.get(o).push(c)}),e}function os(i,s){i.classList?.add(s)}function ef(i,s){i.classList?.remove(s)}function pB(i,s,e){ad(e).onDone(()=>i.processLeaveNode(s))}function QD(i,s){for(let e=0;er.add(d)):s.set(i,t),e.delete(i),!0}class OC{constructor(s,e,t){this.bodyNode=s,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,d)=>{},this._transitionEngine=new cB(s,e,t),this._timelineEngine=new tB(s,e,t),this._transitionEngine.onRemovalComplete=(r,d)=>this.onRemovalComplete(r,d)}registerTrigger(s,e,t,r,d){const h=s+"-"+r;let c=this._triggerCache[h];if(!c){const o=[],l=Kx(this._driver,d,o,[]);if(o.length)throw function XI(i,s){return new n.vHH(3404,!1)}();c=function QO(i,s,e){return new KO(i,s,e)}(r,l,this._normalizer),this._triggerCache[h]=c}this._transitionEngine.registerTrigger(e,r,c)}register(s,e){this._transitionEngine.register(s,e)}destroy(s,e){this._transitionEngine.destroy(s,e)}onInsert(s,e,t,r){this._transitionEngine.insertNode(s,e,t,r)}onRemove(s,e,t,r){this._transitionEngine.removeNode(s,e,r||!1,t)}disableAnimations(s,e){this._transitionEngine.markElementAsDisabled(s,e)}process(s,e,t,r){if("@"==t.charAt(0)){const[d,h]=TD(t);this._timelineEngine.command(d,e,h,r)}else this._transitionEngine.trigger(s,e,t,r)}listen(s,e,t,r,d){if("@"==t.charAt(0)){const[h,c]=TD(t);return this._timelineEngine.listen(h,e,c,d)}return this._transitionEngine.listen(s,e,t,r,d)}flush(s=-1){this._transitionEngine.flush(s)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let _B=(()=>{class i{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let d=i.initialStylesByElement.get(e);d||i.initialStylesByElement.set(e,d=new Map),this._initialStyles=d}start(){this._state<1&&(this._startStyles&&Ro(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ro(this._element,this._initialStyles),this._endStyles&&(Ro(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(ju(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ju(this._element,this._endStyles),this._endStyles=null),Ro(this._element,this._initialStyles),this._state=3)}}return i.initialStylesByElement=new WeakMap,i})();function cM(i){let s=null;return i.forEach((e,t)=>{(function bB(i){return"display"===i||"position"===i})(t)&&(s=s||new Map,s.set(t,e))}),s}class XD{constructor(s,e,t,r){this.element=s,this.keyframes=e,this.options=t,this._specialStyles=r,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(s=>s()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const s=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,s,this.options),this._finalKeyframe=s.length?s[s.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(s){const e=[];return s.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(s,e,t){return s.animate(this._convertKeyframesToObject(e),t)}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(s=>s()),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(s=>s()),this._onDestroyFns=[])}setPosition(s){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=s*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const s=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&s.set(r,this._finished?t:VD(this.element,r))}),this.currentSnapshot=s}triggerCallback(s){const e="start"===s?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class wB{validateStyleProperty(s){return!0}validateAnimatableStyleProperty(s){return!0}matchesElement(s,e){return!1}containsElement(s,e){return ED(s,e)}getParentElement(s){return zx(s)}query(s,e,t){return DD(s,e,t)}computeStyle(s,e,t){return window.getComputedStyle(s)[e]}animate(s,e,t,r,d,h=[]){const o={duration:t,delay:r,fill:0==r?"both":"forwards"};d&&(o.easing=d);const a=new Map,l=h.filter(m=>m instanceof XD);(function vO(i,s){return 0===i||0===s})(t,r)&&l.forEach(m=>{m.currentSnapshot.forEach((g,f)=>a.set(f,g))});let u=function wO(i){return i.length?i[0]instanceof Map?i:i.map(s=>kD(s)):[]}(e).map(m=>od(m));u=function TO(i,s,e){if(e.size&&s.length){let t=s[0],r=[];if(e.forEach((d,h)=>{t.has(h)||r.push(h),t.set(h,d)}),r.length)for(let d=1;dh.set(c,VD(i,c)))}}return s}(s,u,a);const p=function gB(i,s){let e=null,t=null;return Array.isArray(s)&&s.length?(e=cM(s[0]),s.length>1&&(t=cM(s[s.length-1]))):s instanceof Map&&(e=cM(s)),e||t?new _B(i,e,t):null}(s,u);return new XD(s,u,o,p)}}let yB=(()=>{class i extends km{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?yw(e):e;return e1(this._renderer,null,t,"register",[r]),new CB(t,this._renderer)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.FYo),n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class CB extends class ww{}{constructor(s,e){super(),this._id=s,this._renderer=e}create(s,e){return new AB(this._id,s,e||{},this._renderer)}}class AB{constructor(s,e,t,r){this.id=s,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(s,e){return this._renderer.listen(this.element,`@@${this.id}:${s}`,e)}_command(s,...e){return e1(this._renderer,this.element,this.id,s,e)}onDone(s){this._listen("done",s)}onStart(s){this._listen("start",s)}onDestroy(s){this._listen("destroy",s)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(s){this._command("setPosition",s)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function e1(i,s,e,t,r){return i.setProperty(s,`@@${e}:${t}`,r)}const t1="@.disabled";let vB=(()=>{class i{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(d,h)=>{const c=h?.parentNode(d);c&&h.removeChild(c,d)}}createRenderer(e,t){const d=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let l=this._rendererCache.get(d);return l||(l=new n1("",d,this.engine),this._rendererCache.set(d,l)),l}const h=t.id,c=t.id+"-"+this._currentId;this._currentId++,this.engine.register(c,e);const o=l=>{Array.isArray(l)?l.forEach(o):this.engine.registerTrigger(h,c,e,l.name,l)};return t.data.animation.forEach(o),new TB(this,c,d,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(d=>{const[h,c]=d;h(c)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.FYo),n.LFG(OC),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class n1{constructor(s,e,t){this.namespaceId=s,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(s,e){return this.delegate.createElement(s,e)}createComment(s){return this.delegate.createComment(s)}createText(s){return this.delegate.createText(s)}appendChild(s,e){this.delegate.appendChild(s,e),this.engine.onInsert(this.namespaceId,e,s,!1)}insertBefore(s,e,t,r=!0){this.delegate.insertBefore(s,e,t),this.engine.onInsert(this.namespaceId,e,s,r)}removeChild(s,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(s,e){return this.delegate.selectRootElement(s,e)}parentNode(s){return this.delegate.parentNode(s)}nextSibling(s){return this.delegate.nextSibling(s)}setAttribute(s,e,t,r){this.delegate.setAttribute(s,e,t,r)}removeAttribute(s,e,t){this.delegate.removeAttribute(s,e,t)}addClass(s,e){this.delegate.addClass(s,e)}removeClass(s,e){this.delegate.removeClass(s,e)}setStyle(s,e,t,r){this.delegate.setStyle(s,e,t,r)}removeStyle(s,e,t){this.delegate.removeStyle(s,e,t)}setProperty(s,e,t){"@"==e.charAt(0)&&e==t1?this.disableAnimations(s,!!t):this.delegate.setProperty(s,e,t)}setValue(s,e){this.delegate.setValue(s,e)}listen(s,e,t){return this.delegate.listen(s,e,t)}disableAnimations(s,e){this.engine.disableAnimations(s,e)}}class TB extends n1{constructor(s,e,t,r){super(e,t,r),this.factory=s,this.namespaceId=e}setProperty(s,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==t1?this.disableAnimations(s,t=void 0===t||!!t):this.engine.process(this.namespaceId,s,e.slice(1),t):this.delegate.setProperty(s,e,t)}listen(s,e,t){if("@"==e.charAt(0)){const r=function xB(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(s);let d=e.slice(1),h="";return"@"!=d.charAt(0)&&([d,h]=function MB(i){const s=i.indexOf(".");return[i.substring(0,s),i.slice(s+1)]}(d)),this.engine.listen(this.namespaceId,r,d,h,c=>{this.factory.scheduleListenerCallback(c._data||-1,t,c)})}return this.delegate.listen(s,e,t)}}const r1=[{provide:km,useClass:yB},{provide:iM,useFactory:function EB(){return new WO}},{provide:OC,useClass:(()=>{class i extends OC{constructor(e,t,r,d){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0),n.LFG(Gx),n.LFG(iM),n.LFG(n.z2F))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})()},{provide:n.FYo,useFactory:function DB(i,s,e){return new vB(i,s,e)},deps:[we,OC,n.R0b]}],dM=[{provide:Gx,useFactory:()=>new wB},{provide:n.QbO,useValue:"BrowserAnimations"},...r1],a1=[{provide:Gx,useClass:HD},{provide:n.QbO,useValue:"NoopAnimations"},...r1];let HB=(()=>{class i{static withConfig(e){return{ngModule:i,providers:e.disableAnimations?a1:dM}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:dM,imports:[di]}),i})(),PB=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,Zg,bi,Gs]}),i})();const RB=["*",[["mat-card-footer"]]],kB=["*","mat-card-footer"];let s1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),i})(),o1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),i})(),l1=(()=>{class i{constructor(e){this._animationMode=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:kB,decls:2,vars:0,template:function(e,t){1&e&&(n.F$t(RB),n.Hsn(0),n.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),i})(),c1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})();const LB=["input"],IB=["label"],OB=function(i){return{enterDuration:i}},BB=["*"],VB=new n.OlP("mat-checkbox-default-options",{providedIn:"root",factory:d1});function d1(){return{color:"accent",clickAction:"check-indeterminate"}}let jB=0;const u1=d1(),UB={provide:sr,useExisting:(0,n.Gpc)(()=>ld),multi:!0};class NB{}const FB=wl(Ti(mr(Qr(class{constructor(i){this._elementRef=i}}))));let YB=(()=>{class i extends FB{constructor(e,t,r,d,h,c,o){super(t),this._changeDetectorRef=r,this._ngZone=d,this._animationMode=c,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new n.vpe,this.indeterminateChange=new n.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||u1,this.color=this.defaultColor=this._options.color||u1.color,this.tabIndex=parseInt(h)||0,this.id=this._uniqueId=`${e}${++jB}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Oe(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const t=Oe(e);t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Oe(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Oe(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const d=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(d)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===t)return this._animationClasses.uncheckedToChecked;if(3==t)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===t?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===t?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===t?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&(n.Gf(LB,5),n.Gf(IB,5),n.Gf(Lr,5)),2&e){let r;n.iGM(r=n.CRH())&&(t._inputElement=r.first),n.iGM(r=n.CRH())&&(t._labelElement=r.first),n.iGM(r=n.CRH())&&(t.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[n.qOj]}),i})(),ld=(()=>{class i extends YB{constructor(e,t,r,d,h,c,o){super("mat-checkbox-",e,t,d,h,c,o),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const t=new NB;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Ii),n.Y36(n.R0b),n.$8M("tabindex"),n.Y36(n.QbO,8),n.Y36(VB,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,t){2&e&&(n.Ikx("id",t.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),n.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[n._Bn([UB]),n.qOj],ngContentSelectors:BB,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.NdJ("change",function(d){return t._onInteractionEvent(d)})("click",function(d){return t._onInputClick(d)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.qZA(),n._UZ(7,"span",7),n.TgZ(8,"span",8),n.O4$(),n.TgZ(9,"svg",9),n._UZ(10,"path",10),n.qZA(),n.kcU(),n._UZ(11,"span",11),n.qZA()(),n.TgZ(12,"span",12,13),n.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),n.TgZ(14,"span",14),n._uU(15,"\xa0"),n.qZA(),n.Hsn(16),n.qZA()()),2&e){const r=n.MAs(1),d=n.MAs(13);n.uIk("for",t.inputId),n.xp6(2),n.ekj("mat-checkbox-inner-container-no-side-margin",!d.textContent||!d.textContent.trim()),n.xp6(1),n.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),n.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",n.VKq(19,OB,"NoopAnimations"===t._animationMode?0:150))}},dependencies:[Lr,qh],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),i})(),h1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),VC=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Kr,ht,Jd,h1,ht,h1]}),i})(),GB=0;const uM=new n.OlP("CdkAccordion");let WB=(()=>{class i{constructor(){this._stateChanges=new Se.x,this._openCloseAllActions=new Se.x,this.id="cdk-accordion-"+GB++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Oe(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:uM,useExisting:i}]),n.TTD]}),i})(),$B=0,JB=(()=>{class i{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=Rt.w0.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-"+$B++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((d,h)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===h&&this.id!==d&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Oe(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Oe(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(uM,12),n.Y36(n.sBO),n.Y36(ym))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:uM,useValue:void 0}])]}),i})(),ZB=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const QB=["body"];function KB(i,s){}const XB=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],eV=["mat-expansion-panel-header","*","mat-action-row"];function tV(i,s){if(1&i&&n._UZ(0,"span",2),2&i){const e=n.oxw();n.Q6J("@indicatorRotate",e._getExpandedState())}}const nV=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],iV=["mat-panel-title","mat-panel-description","*"],hM=new n.OlP("MAT_ACCORDION"),p1="225ms cubic-bezier(0.4,0.0,0.2,1)",f1={indicatorRotate:fn("indicatorRotate",[Pt("collapsed, void",He({transform:"rotate(0deg)"})),Pt("expanded",He({transform:"rotate(180deg)"})),xt("expanded <=> collapsed, void => collapsed",Tt(p1))]),bodyExpansion:fn("bodyExpansion",[Pt("collapsed, void",He({height:"0px",visibility:"hidden"})),Pt("expanded",He({height:"*",visibility:"visible"})),xt("expanded <=> collapsed, void => collapsed",Tt(p1))])},m1=new n.OlP("MAT_EXPANSION_PANEL");let rV=(()=>{class i{constructor(e,t){this._template=e,this._expansionPanel=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(m1,8))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","matExpansionPanelContent",""]]}),i})(),aV=0;const g1=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let _1=(()=>{class i extends JB{constructor(e,t,r,d,h,c,o){super(e,t,r),this._viewContainerRef=d,this._animationMode=c,this._hideToggle=!1,this.afterExpand=new n.vpe,this.afterCollapse=new n.vpe,this._inputChanges=new Se.x,this._headerId="mat-expansion-panel-header-"+aV++,this._bodyAnimationDone=new Se.x,this.accordion=e,this._document=h,this._bodyAnimationDone.pipe(mo((a,l)=>a.fromState===l.fromState&&a.toState===l.toState)).subscribe(a=>{"void"!==a.fromState&&("expanded"===a.toState?this.afterExpand.emit():"collapsed"===a.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Oe(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Zt(null),(0,Ce.h)(()=>this.expanded&&!this._portal),(0,rt.q)(1)).subscribe(()=>{this._portal=new Ir(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(hM,12),n.Y36(n.sBO),n.Y36(ym),n.Y36(n.s_b),n.Y36(x.K0),n.Y36(n.QbO,8),n.Y36(g1,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,rV,5),2&e){let d;n.iGM(d=n.CRH())&&(t._lazyContent=d.first)}},viewQuery:function(e,t){if(1&e&&n.Gf(QB,5),2&e){let r;n.iGM(r=n.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&n.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n._Bn([{provide:hM,useValue:void 0},{provide:m1,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:eV,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(n.F$t(XB),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(d){return t._bodyAnimationDone.next(d)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,KB,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),n.uIk("aria-labelledby",t._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",t._portal))},dependencies:[Ma],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[f1.bodyExpansion]},changeDetection:0}),i})();class sV{}const oV=wl(sV);let b1=(()=>{class i extends oV{constructor(e,t,r,d,h,c,o){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=d,this._animationMode=c,this._parentChangeSubscription=Rt.w0.EMPTY;const a=e.accordion?e.accordion._stateChanges.pipe((0,Ce.h)(l=>!(!l.hideToggle&&!l.togglePosition))):Pn.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,Mn.T)(e.opened,e.closed,a,e._inputChanges.pipe((0,Ce.h)(l=>!!(l.hideToggle||l.disabled||l.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,Ce.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),h&&(this.expandedHeight=h.expandedHeight,this.collapsedHeight=h.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:ri(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(_1,1),n.Y36(n.SBq),n.Y36(Ii),n.Y36(n.sBO),n.Y36(g1,8),n.Y36(n.QbO,8),n.$8M("tabindex"))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._toggle()})("keydown",function(d){return t._keydown(d)}),2&e&&(n.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),n.Udp("height",t._getHeaderHeight()),n.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[n.qOj],ngContentSelectors:iV,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(n.F$t(nV),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,tV,1,1,"span",1)),2&e&&(n.xp6(4),n.Q6J("ngIf",t._showToggle()))},dependencies:[x.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[f1.indicatorRotate]},changeDetection:0}),i})(),lV=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),i})(),cV=(()=>{class i extends WB{constructor(){super(...arguments),this._ownHeaders=new n.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Oe(e)}ngAfterContentInit(){this._headers.changes.pipe(Zt(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Sc(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,b1,5),2&e){let d;n.iGM(d=n.CRH())&&(t._headers=d)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[n._Bn([{provide:hM,useExisting:i}]),n.qOj]}),i})(),w1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,ht,ZB,Hs]}),i})(),C1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Cl,ht,Cl,ht]}),i})();function hV(i,s){1&i&&n.Hsn(0)}const pV=["*"];let A1=(()=>{class i{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),i})(),v1=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkStepLabel",""]]}),i})(),fV=0;const T1=new n.OlP("STEPPER_GLOBAL_OPTIONS");let pM=(()=>{class i{constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new n.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(e){this._editable=Oe(e)}get optional(){return this._optional}set optional(e){this._optional=Oe(e)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(e){this._completedOverride=Oe(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(e){this._customError=Oe(e)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return i.\u0275fac=function(e){return new(e||i)(n.Y36((0,n.Gpc)(()=>s_)),n.Y36(T1,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-step"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,v1,5),2&e){let d;n.iGM(d=n.CRH())&&(t.stepLabel=d.first)}},viewQuery:function(e,t){if(1&e&&n.Gf(n.Rgc,7),2&e){let r;n.iGM(r=n.CRH())&&(t.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[n.TTD],ngContentSelectors:pV,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.YNc(0,hV,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),i})(),s_=(()=>{class i{constructor(e,t,r){this._dir=e,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new Se.x,this.steps=new n.n_E,this._sortedHeaders=new n.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new n.vpe,this._orientation="horizontal",this._groupId=fV++}get linear(){return this._linear}set linear(e){this._linear=Oe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const t=gn(e);this.steps&&this._steps?(this._isValidIndex(t),this.selected?._markAsInteracted(),this._selectedIndex!==t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=t}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===e)}ngAfterContentInit(){this._steps.changes.pipe(Zt(this._steps),Ke(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Zt(this._stepHeader),Ke(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Sc(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,xe.of)()).pipe(Zt(this._layoutDirection()),Ke(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){const t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(e,t="number"){const r=this.steps.toArray()[e],d=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,d):this._getGuidelineLogic(r,d,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?"error":!e.completed||t?"number":e.editable?"edit":"done"}_getGuidelineLogic(e,t,r="number"){return e._showError()&&e.hasError&&!t?"error":e.completed&&!t?"done":e.completed&&t?r:e.editable&&t?"edit":r}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}_onKeydown(e){const t=ri(e),r=e.keyCode,d=this._keyManager;null==d.activeItemIndex||t||32!==r&&13!==r?d.onKeydown(e):(this.selectedIndex=d.activeItemIndex,e.preventDefault())}_anyControlsInvalidOrPending(e){return!!(this._linear&&e>=0)&&this.steps.toArray().slice(0,e).some(t=>{const r=t.stepControl;return(r?r.invalid||r.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const e=this._elementRef.nativeElement,t=ho();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{class i{constructor(e){this._stepper=e,this.type="submit"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(s_))},i.\u0275dir=n.lG2({type:i,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._stepper.next()}),2&e&&n.Ikx("type",t.type)},inputs:{type:"type"}}),i})(),gV=(()=>{class i{constructor(e){this._stepper=e,this.type="button"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(s_))},i.\u0275dir=n.lG2({type:i,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._stepper.previous()}),2&e&&n.Ikx("type",t.type)},inputs:{type:"type"}}),i})(),_V=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ru]}),i})();function bV(i,s){if(1&i&&n.GkF(0,8),2&i){const e=n.oxw();n.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function wV(i,s){if(1&i&&(n.TgZ(0,"span",13),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e._getDefaultTextForState(e.state))}}function yV(i,s){if(1&i&&(n.TgZ(0,"span",14),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e._intl.completedLabel)}}function CV(i,s){if(1&i&&(n.TgZ(0,"span",14),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e._intl.editableLabel)}}function AV(i,s){if(1&i&&(n.TgZ(0,"mat-icon",13),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e._getDefaultTextForState(e.state))}}function vV(i,s){if(1&i&&(n.ynx(0,9),n.YNc(1,wV,2,1,"span",10),n.YNc(2,yV,2,1,"span",11),n.YNc(3,CV,2,1,"span",11),n.YNc(4,AV,2,1,"mat-icon",12),n.BQk()),2&i){const e=n.oxw();n.Q6J("ngSwitch",e.state),n.xp6(1),n.Q6J("ngSwitchCase","number"),n.xp6(1),n.Q6J("ngIf","done"===e.state),n.xp6(1),n.Q6J("ngIf","edit"===e.state)}}function TV(i,s){if(1&i&&(n.TgZ(0,"div",15),n.GkF(1,16),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",e._templateLabel().template)}}function xV(i,s){if(1&i&&(n.TgZ(0,"div",15),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.label)}}function MV(i,s){if(1&i&&(n.TgZ(0,"div",17),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e._intl.optionalLabel)}}function SV(i,s){if(1&i&&(n.TgZ(0,"div",18),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.errorMessage)}}function EV(i,s){}function DV(i,s){if(1&i&&(n.Hsn(0),n.YNc(1,EV,0,0,"ng-template",0)),2&i){const e=n.oxw();n.xp6(1),n.Q6J("cdkPortalOutlet",e._portal)}}const HV=["*"];function PV(i,s){1&i&&n._UZ(0,"div",11)}const x1=function(i,s){return{step:i,i:s}};function RV(i,s){if(1&i&&(n.ynx(0),n.GkF(1,9),n.YNc(2,PV,1,0,"div",10),n.BQk()),2&i){const e=s.$implicit,t=s.index,r=s.last;n.oxw(2);const d=n.MAs(4);n.xp6(1),n.Q6J("ngTemplateOutlet",d)("ngTemplateOutletContext",n.WLB(3,x1,e,t)),n.xp6(1),n.Q6J("ngIf",!r)}}const M1=function(i){return{animationDuration:i}},S1=function(i,s){return{value:i,params:s}};function kV(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",12),n.NdJ("@horizontalStepTransition.done",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d._animationDone.next(r))}),n.GkF(1,13),n.qZA()}if(2&i){const e=s.$implicit,t=s.index,r=n.oxw(2);n.Q6J("@horizontalStepTransition",n.WLB(7,S1,r._getAnimationDirection(t),n.VKq(5,M1,r._getAnimationDuration())))("id",r._getStepContentId(t)),n.uIk("aria-labelledby",r._getStepLabelId(t))("aria-expanded",r.selectedIndex===t),n.xp6(1),n.Q6J("ngTemplateOutlet",e.content)}}function LV(i,s){if(1&i&&(n.TgZ(0,"div",4)(1,"div",5),n.YNc(2,RV,3,6,"ng-container",6),n.qZA(),n.TgZ(3,"div",7),n.YNc(4,kV,2,10,"div",8),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Q6J("ngForOf",e.steps),n.xp6(2),n.Q6J("ngForOf",e.steps)}}function IV(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",15),n.GkF(1,9),n.TgZ(2,"div",16)(3,"div",17),n.NdJ("@verticalStepTransition.done",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d._animationDone.next(r))}),n.TgZ(4,"div",18),n.GkF(5,13),n.qZA()()()()}if(2&i){const e=s.$implicit,t=s.index,r=s.last,d=n.oxw(2),h=n.MAs(4);n.xp6(1),n.Q6J("ngTemplateOutlet",h)("ngTemplateOutletContext",n.WLB(9,x1,e,t)),n.xp6(1),n.ekj("mat-stepper-vertical-line",!r),n.xp6(1),n.Q6J("@verticalStepTransition",n.WLB(14,S1,d._getAnimationDirection(t),n.VKq(12,M1,d._getAnimationDuration())))("id",d._getStepContentId(t)),n.uIk("aria-labelledby",d._getStepLabelId(t))("aria-expanded",d.selectedIndex===t),n.xp6(2),n.Q6J("ngTemplateOutlet",e.content)}}function OV(i,s){if(1&i&&(n.ynx(0),n.YNc(1,IV,6,17,"div",14),n.BQk()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngForOf",e.steps)}}function BV(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-step-header",19),n.NdJ("click",function(){const d=n.CHM(e).step;return n.KtG(d.select())})("keydown",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._onKeydown(r))}),n.qZA()}if(2&i){const e=s.step,t=s.i,r=n.oxw();n.ekj("mat-horizontal-stepper-header","horizontal"===r.orientation)("mat-vertical-stepper-header","vertical"===r.orientation),n.Q6J("tabIndex",r._getFocusIndex()===t?0:-1)("id",r._getStepLabelId(t))("index",t)("state",r._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===t)("active",r._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple||!r._stepIsNavigable(t,e))("color",e.color||r.color),n.uIk("aria-posinset",t+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(t))("aria-selected",r.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",!r._stepIsNavigable(t,e)||null)}}let jC=(()=>{class i extends v1{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matStepLabel",""]],features:[n.qOj]}),i})(),UC=(()=>{class i{constructor(){this.changes=new Se.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const jV={provide:UC,deps:[[new n.FiY,new n.tp0,UC]],useFactory:function VV(i){return i||new UC}},UV=Ti(class extends A1{constructor(s){super(s)}},"primary");let E1=(()=>{class i extends UV{constructor(e,t,r,d){super(r),this._intl=e,this._focusMonitor=t,this._intlSubscription=e.changes.subscribe(()=>d.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof jC?null:this.label}_templateLabel(){return this.label instanceof jC?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return"number"==e?`${this.index+1}`:"edit"==e?"create":"error"==e?"warning":e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(UC),n.Y36(Ii),n.Y36(n.SBq),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[n.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(e,t){1&e&&(n._UZ(0,"div",0),n.TgZ(1,"div")(2,"div",1),n.YNc(3,bV,1,2,"ng-container",2),n.YNc(4,vV,5,4,"ng-container",3),n.qZA()(),n.TgZ(5,"div",4),n.YNc(6,TV,2,1,"div",5),n.YNc(7,xV,2,1,"div",5),n.YNc(8,MV,2,1,"div",6),n.YNc(9,SV,2,1,"div",7),n.qZA()),2&e&&(n.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),n.xp6(1),n.Gre("mat-step-icon-state-",t.state," mat-step-icon"),n.ekj("mat-step-icon-selected",t.selected),n.xp6(1),n.Q6J("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(2),n.ekj("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),n.xp6(1),n.Q6J("ngIf",t._templateLabel()),n.xp6(1),n.Q6J("ngIf",t._stringLabel()),n.xp6(1),n.Q6J("ngIf",t.optional&&"error"!=t.state),n.xp6(1),n.Q6J("ngIf","error"==t.state))},dependencies:[x.O5,x.tP,x.RF,x.n9,x.ED,Ln,Lr],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),i})();const P1={horizontalStepTransition:fn("horizontalStepTransition",[Pt("previous",He({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Pt("current",He({transform:"none",visibility:"inherit"})),Pt("next",He({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),xt("* => *",Tt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:fn("verticalStepTransition",[Pt("previous",He({height:"0px",visibility:"hidden"})),Pt("next",He({height:"0px",visibility:"hidden"})),Pt("current",He({height:"*",visibility:"inherit"})),xt("* <=> current",Tt("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let NV=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),i})(),FV=(()=>{class i{constructor(e){this._template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","matStepContent",""]]}),i})(),R1=(()=>{class i extends pM{constructor(e,t,r,d){super(e,d),this._errorStateMatcher=t,this._viewContainerRef=r,this._isSelected=Rt.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,_n.w)(()=>this._stepper.selectionChange.pipe((0,_t.U)(e=>e.selectedStep===this),Zt(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Ir(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36((0,n.Gpc)(()=>k1)),n.Y36(Ca,4),n.Y36(n.s_b),n.Y36(T1,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-step"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,jC,5),n.Suo(r,FV,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.stepLabel=d.first),n.iGM(d=n.CRH())&&(t._lazyContent=d.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[n._Bn([{provide:Ca,useExisting:i},{provide:pM,useExisting:i}]),n.qOj],ngContentSelectors:HV,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,DV,2,1,"ng-template"))},dependencies:[Ma],encapsulation:2,changeDetection:0}),i})(),k1=(()=>{class i extends s_{constructor(e,t,r){super(e,t,r),this.steps=new n.n_E,this.animationDone=new n.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new Se.x,this._animationDuration="";const d=r.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===d?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(Ke(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(mo((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),Ke(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(xn,8),n.Y36(n.sBO),n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,R1,5),n.Suo(r,NV,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._steps=d),n.iGM(d=n.CRH())&&(t._icons=d)}},viewQuery:function(e,t){if(1&e&&n.Gf(E1,5),2&e){let r;n.iGM(r=n.CRH())&&(t._stepHeader=r)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(e,t){2&e&&(n.uIk("aria-orientation",t.orientation),n.ekj("mat-stepper-horizontal","horizontal"===t.orientation)("mat-stepper-vertical","vertical"===t.orientation)("mat-stepper-label-position-end","horizontal"===t.orientation&&"end"==t.labelPosition)("mat-stepper-label-position-bottom","horizontal"===t.orientation&&"bottom"==t.labelPosition)("mat-stepper-header-position-bottom","bottom"===t.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[n._Bn([{provide:s_,useExisting:i}]),n.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(e,t){1&e&&(n.ynx(0,0),n.YNc(1,LV,5,2,"div",1),n.YNc(2,OV,2,1,"ng-container",2),n.BQk(),n.YNc(3,BV,1,23,"ng-template",null,3,n.W1O)),2&e&&(n.Q6J("ngSwitch",t.orientation),n.xp6(1),n.Q6J("ngSwitchCase","horizontal"),n.xp6(1),n.Q6J("ngSwitchCase","vertical"))},dependencies:[x.sg,x.O5,x.tP,x.RF,x.n9,E1],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[P1.horizontalStepTransition,P1.verticalStepTransition]},changeDetection:0}),i})(),YV=(()=>{class i extends mV{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(e,t){2&e&&n.Ikx("type",t.type)},inputs:{type:"type"},features:[n.qOj]}),i})(),qV=(()=>{class i extends gV{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(e,t){2&e&&n.Ikx("type",t.type)},inputs:{type:"type"},features:[n.qOj]}),i})(),L1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[jV,Ca],imports:[ht,x.ez,Hs,bi,_V,Vl,Kr,ht]}),i})();const zV=["mat-calendar-body",""];function GV(i,s){if(1&i&&(n.TgZ(0,"tr",2)(1,"td",3),n._uU(2),n.qZA()()),2&i){const e=n.oxw();n.xp6(1),n.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),n.uIk("colspan",e.numCols),n.xp6(1),n.hij(" ",e.label," ")}}function WV(i,s){if(1&i&&(n.TgZ(0,"td",3),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),n.uIk("colspan",e._firstRowOffset),n.xp6(1),n.hij(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function $V(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",7)(1,"button",8),n.NdJ("click",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(c._cellClicked(h,r))})("focus",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(c._emitActiveDateChange(h,r))}),n.TgZ(2,"div",9),n._uU(3),n.qZA(),n._UZ(4,"div",10),n.qZA()()}if(2&i){const e=s.$implicit,t=s.index,r=n.oxw().index,d=n.oxw();n.Udp("width",d._cellWidth)("padding-top",d._cellPadding)("padding-bottom",d._cellPadding),n.uIk("data-mat-row",r)("data-mat-col",t),n.xp6(1),n.ekj("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",d._isActiveCell(r,t))("mat-calendar-body-range-start",d._isRangeStart(e.compareValue))("mat-calendar-body-range-end",d._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",d._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",d._isComparisonBridgeStart(e.compareValue,r,t))("mat-calendar-body-comparison-bridge-end",d._isComparisonBridgeEnd(e.compareValue,r,t))("mat-calendar-body-comparison-start",d._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",d._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",d._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",d._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",d._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",d._isInPreview(e.compareValue)),n.Q6J("ngClass",e.cssClasses)("tabindex",d._isActiveCell(r,t)?0:-1),n.uIk("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",d._isSelected(e.compareValue))("aria-current",d.todayValue===e.compareValue?"date":null),n.xp6(1),n.ekj("mat-calendar-body-selected",d._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",d._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",d.todayValue===e.compareValue),n.xp6(1),n.hij(" ",e.displayValue," ")}}function JV(i,s){if(1&i&&(n.TgZ(0,"tr",4),n.YNc(1,WV,2,6,"td",5),n.YNc(2,$V,5,47,"td",6),n.qZA()),2&i){const e=s.$implicit,t=s.index,r=n.oxw();n.xp6(1),n.Q6J("ngIf",0===t&&r._firstRowOffset),n.xp6(1),n.Q6J("ngForOf",e)}}function ZV(i,s){if(1&i&&(n.TgZ(0,"th",5)(1,"span",6),n._uU(2),n.qZA(),n.TgZ(3,"span",7),n._uU(4),n.qZA()()),2&i){const e=s.$implicit;n.xp6(2),n.Oqu(e.long),n.xp6(2),n.Oqu(e.narrow)}}const QV=["*"];function KV(i,s){}function XV(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-month-view",5),n.NdJ("activeDateChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.activeDate=r)})("_userSelection",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._dateSelected(r))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function ej(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-year-view",6),n.NdJ("activeDateChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.activeDate=r)})("monthSelected",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._monthSelectedInYearView(r))})("selectedChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._goToDateInView(r,"month"))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function tj(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-multi-year-view",7),n.NdJ("activeDateChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.activeDate=r)})("yearSelected",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._yearSelectedInMultiYearView(r))})("selectedChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._goToDateInView(r,"year"))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function nj(i,s){}const ij=["button"];function rj(i,s){1&i&&(n.O4$(),n.TgZ(0,"svg",3),n._UZ(1,"path",4),n.qZA())}const aj=[[["","matDatepickerToggleIcon",""]]],sj=["[matDatepickerToggleIcon]"];let o_=(()=>{class i{constructor(){this.changes=new Se.x,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(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class fM{constructor(s,e,t,r,d={},h=s,c){this.value=s,this.displayValue=e,this.ariaLabel=t,this.enabled=r,this.cssClasses=d,this.compareValue=h,this.rawValue=c}}let tf=(()=>{class i{constructor(e,t){this._elementRef=e,this._ngZone=t,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new n.vpe,this.previewChange=new n.vpe,this.activeDateChange=new n.vpe,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const d=this._getCellFromElement(r.target);d&&this._ngZone.run(()=>this.previewChange.emit({value:d.enabled?d:null,event:r}))}},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&r.target&&this._getCellFromElement(r.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r}))},t.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(e,t){e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const t=e.numCols,{rows:r,numCols:d}=this;(e.rows||t)&&(this._firstRowOffset=r&&r.length&&r[0].length?d-r[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/d+"%"),(t||!this._cellWidth)&&(this._cellWidth=100/d+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,t){let r=e*this.numCols+t;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(()=>{setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return mM(e,this.startValue,this.endValue)}_isRangeEnd(e){return gM(e,this.startValue,this.endValue)}_isInRange(e){return _M(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return mM(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let d=this.rows[t][r-1];if(!d){const h=this.rows[t-1];d=h&&h[h.length-1]}return d&&!this._isRangeEnd(d.compareValue)}_isComparisonBridgeEnd(e,t,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let d=this.rows[t][r+1];if(!d){const h=this.rows[t+1];d=h&&h[0]}return d&&!this._isRangeStart(d.compareValue)}_isComparisonEnd(e){return gM(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return _M(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return mM(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return gM(e,this.previewStart,this.previewEnd)}_isInPreview(e){return _M(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let t;if(I1(e)?t=e:I1(e.parentNode)&&(t=e.parentNode),t){const r=t.getAttribute("data-mat-row"),d=t.getAttribute("data-mat-col");if(r&&d)return this.rows[parseInt(r)][parseInt(d)]}return null}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,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"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[n.TTD],attrs:zV,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,t){1&e&&(n.YNc(0,GV,3,6,"tr",0),n.YNc(1,JV,3,2,"tr",1)),2&e&&(n.Q6J("ngIf",t._firstRowOffset=s&&i===e}function _M(i,s,e,t){return t&&null!==s&&null!==e&&s!==e&&i>=s&&i<=e}class ra{constructor(s,e){this.start=s,this.end=e}}let cd=(()=>{class i{constructor(e,t){this.selection=e,this._adapter=t,this._selectionChanged=new Se.x,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,t){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),oj=(()=>{class i extends cd{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new i(this._adapter);return e.updateSelection(this.selection,this),e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Un))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const O1={provide:cd,deps:[[new n.FiY,new n.tp0,cd],Un],useFactory:function cj(i,s){return i||new oj(s)}},NC=new n.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let B1=(()=>{class i{constructor(e,t,r,d,h){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=d,this._rangeStrategy=h,this._rerenderSubscription=Rt.w0.EMPTY,this.selectedChange=new n.vpe,this._userSelection=new n.vpe,this.activeDateChange=new n.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const t=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof ra?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Zt(null)).subscribe(()=>this._init())}ngOnChanges(e){const t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const t=e.value,r=this._getDateFromDayOfMonth(t);let d,h;this._selected instanceof ra?(d=this._getDateInCurrentMonth(this._selected.start),h=this._getDateInCurrentMonth(this._selected.end)):d=h=this._getDateInCurrentMonth(this._selected),(d!==t||h!==t)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-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=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!ri(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),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 e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:t}){if(this._rangeStrategy){const d=this._rangeStrategy.createPreview(t?t.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(d.start),this._previewEnd=this._getCellCompareValue(d.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow");let d=this._dateAdapter.getDayOfWeekNames("long").map((h,c)=>({long:h,narrow:t[c]}));this._weekdays=d.slice(e).concat(d.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,d=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))}_getCellCompareValue(e){if(e){const t=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),d=this._dateAdapter.getDate(e);return new Date(t,r,d).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof ra?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(_i,8),n.Y36(Un,8),n.Y36(xn,8),n.Y36(NC,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-month-view"]],viewQuery:function(e,t){if(1&e&&n.Gf(tf,5),2&e){let r;n.iGM(r=n.CRH())&&(t._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[n.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,t){1&e&&(n.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),n.YNc(3,ZV,5,2,"th",2),n.qZA(),n.TgZ(4,"tr"),n._UZ(5,"th",3),n.qZA()(),n.TgZ(6,"tbody",4),n.NdJ("selectedValueChange",function(d){return t._dateSelected(d)})("activeDateChange",function(d){return t._updateActiveDate(d)})("previewChange",function(d){return t._previewChanged(d)})("keyup",function(d){return t._handleCalendarBodyKeyup(d)})("keydown",function(d){return t._handleCalendarBodyKeydown(d)}),n.qZA()()),2&e&&(n.xp6(3),n.Q6J("ngForOf",t._weekdays),n.xp6(3),n.Q6J("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("startValue",t._rangeStart)("endValue",t._rangeEnd)("comparisonStart",t._comparisonRangeStart)("comparisonEnd",t._comparisonRangeEnd)("previewStart",t._previewStart)("previewEnd",t._previewEnd)("isRange",t._isRange)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1))},dependencies:[x.sg,tf],encapsulation:2,changeDetection:0}),i})(),V1=(()=>{class i{constructor(e,t,r){this._changeDetectorRef=e,this._dateAdapter=t,this._dir=r,this._rerenderSubscription=Rt.w0.EMPTY,this.selectedChange=new n.vpe,this.yearSelected=new n.vpe,this.activeDateChange=new n.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),j1(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof ra?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Zt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-l_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,d=[];r<24;r++)d.push(t+r),4==d.length&&(this._years.push(d.map(h=>this._createCellForYear(h))),d=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const t=e.value,r=this._dateAdapter.createDate(t,0,1),d=this._getDateFromYear(t);this.yearSelected.emit(r),this.selectedChange.emit(d)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-l_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-l_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return l_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const t=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));return this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){const t=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(t),d=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new fM(e,r,r,this._shouldEnableYear(e),d)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class i{constructor(e,t,r,d){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=d,this._rerenderSubscription=Rt.w0.EMPTY,this.selectedChange=new n.vpe,this.monthSelected=new n.vpe,this.activeDateChange=new n.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof ra?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Zt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const t=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(r);const d=this._getDateFromMonth(t);this.selectedChange.emit(d)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-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,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(t);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,t){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),d=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),h=this.dateClass?this.dateClass(r,"year"):void 0;return new fM(e,t.toLocaleUpperCase(),d,this._shouldEnableMonth(e),h)}_shouldEnableMonth(e){const t=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;for(let d=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(d)==e;d=this._dateAdapter.addCalendarDays(d,1))if(this.dateFilter(d))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),d=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&t>d}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),d=this._dateAdapter.getMonth(this.minDate);return e{class i{constructor(e,t,r,d,h){this._intl=e,this.calendar=t,this._dateAdapter=r,this._dateFormats=d,this._buttonDescriptionId="mat-calendar-button-"+fj++,this.calendar.stateChanges.subscribe(()=>h.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-l_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=t+24-1,d=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),h=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(d,h)}get periodButtonLabel(){return"month"==this.calendar.currentView?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="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,t){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):j1(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(o_),n.Y36((0,n.Gpc)(()=>yM)),n.Y36(Un,8),n.Y36(_i,8),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:QV,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",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,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1)(2,"button",2),n.NdJ("click",function(){return t.currentPeriodClicked()}),n.TgZ(3,"span"),n._uU(4),n.qZA(),n.O4$(),n.TgZ(5,"svg",3),n._UZ(6,"polygon",4),n.qZA()(),n.kcU(),n._UZ(7,"div",5),n.Hsn(8),n.TgZ(9,"button",6),n.NdJ("click",function(){return t.previousClicked()}),n.qZA(),n.TgZ(10,"button",7),n.NdJ("click",function(){return t.nextClicked()}),n.qZA()()()),2&e&&(n.xp6(2),n.uIk("aria-label",t.periodButtonLabel)("aria-describedby",t._buttonDescriptionId),n.xp6(1),n.uIk("id",t._buttonDescriptionId),n.xp6(1),n.Oqu(t.periodButtonText),n.xp6(1),n.ekj("mat-calendar-invert","month"!==t.calendar.currentView),n.xp6(4),n.Q6J("disabled",!t.previousEnabled()),n.uIk("aria-label",t.prevButtonLabel),n.xp6(1),n.Q6J("disabled",!t.nextEnabled()),n.uIk("aria-label",t.nextButtonLabel))},dependencies:[Ot],encapsulation:2,changeDetection:0}),i})(),yM=(()=>{class i{constructor(e,t,r,d){this._dateAdapter=t,this._dateFormats=r,this._changeDetectorRef=d,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new n.vpe,this.yearSelected=new n.vpe,this.monthSelected=new n.vpe,this.viewChanged=new n.vpe(!0),this._userSelection=new n.vpe,this.stateChanges=new Se.x,this._intlChanges=e.changes.subscribe(()=>{d.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof ra?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),t&&this.viewChanged.emit(t)}ngAfterContentInit(){this._calendarHeaderPortal=new xa(this.headerComponent||mj),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(e){const t=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,d=t||r||e.dateFilter;if(d&&!d.firstChange){const h=this._getCurrentViewComponent();h&&(this._changeDetectorRef.detectChanges(),h._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const t=e.value;(this.selected instanceof ra||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,t){this.activeDate=e,this.currentView=t}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(o_),n.Y36(Un,8),n.Y36(_i,8),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-calendar"]],viewQuery:function(e,t){if(1&e&&(n.Gf(B1,5),n.Gf(N1,5),n.Gf(V1,5)),2&e){let r;n.iGM(r=n.CRH())&&(t.monthView=r.first),n.iGM(r=n.CRH())&&(t.yearView=r.first),n.iGM(r=n.CRH())&&(t.multiYearView=r.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"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[n._Bn([O1]),n.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,t){1&e&&(n.YNc(0,KV,0,0,"ng-template",0),n.TgZ(1,"div",1),n.YNc(2,XV,1,8,"mat-month-view",2),n.YNc(3,ej,1,6,"mat-year-view",3),n.YNc(4,tj,1,6,"mat-multi-year-view",4),n.qZA()),2&e&&(n.Q6J("cdkPortalOutlet",t._calendarHeaderPortal),n.xp6(1),n.Q6J("ngSwitch",t.currentView),n.xp6(1),n.Q6J("ngSwitchCase","month"),n.xp6(1),n.Q6J("ngSwitchCase","year"),n.xp6(1),n.Q6J("ngSwitchCase","multi-year"))},dependencies:[x.RF,x.n9,Av,Ma,B1,N1,V1],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.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-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}.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}.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}),i})();const F1={transformPanel:fn("transformPanel",[xt("void => enter-dropdown",Tt("120ms cubic-bezier(0, 0, 0.2, 1)",Dl([He({opacity:0,transform:"scale(1, 0.8)"}),He({opacity:1,transform:"scale(1, 1)"})]))),xt("void => enter-dialog",Tt("150ms cubic-bezier(0, 0, 0.2, 1)",Dl([He({opacity:0,transform:"scale(0.7)"}),He({transform:"none",opacity:1})]))),xt("* => void",Tt("100ms linear",He({opacity:0})))]),fadeInCalendar:fn("fadeInCalendar",[Pt("void",He({opacity:0})),Pt("enter",He({opacity:1})),xt("void => *",Tt("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let gj=0;const Y1=new n.OlP("mat-datepicker-scroll-strategy"),bj={provide:Y1,deps:[rr],useFactory:function _j(i){return()=>i.scrollStrategies.reposition()}},wj=Ti(class{constructor(i){this._elementRef=i}});let yj=(()=>{class i extends wj{constructor(e,t,r,d,h,c){super(e),this._changeDetectorRef=t,this._globalModel=r,this._dateAdapter=d,this._rangeSelectionStrategy=h,this._subscriptions=new Rt.w0,this._animationDone=new Se.x,this._actionsPortal=null,this._closeButtonText=c.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(e){const t=this._model.selection,r=e.value,d=t instanceof ra;if(d&&this._rangeSelectionStrategy){const h=this._rangeSelectionStrategy.selectionFinished(r,t,e.event);this._model.updateSelection(h,this)}else r&&(d||!this._dateAdapter.sameDate(r,t))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,t){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,t&&this._changeDetectorRef.detectChanges()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(cd),n.Y36(Un),n.Y36(NC,8),n.Y36(o_))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){if(1&e&&n.Gf(yM,5),2&e){let r;n.iGM(r=n.CRH())&&(t._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){1&e&&n.WFA("@transformPanel.done",function(){return t._animationDone.next()}),2&e&&(n.d8E("@transformPanel",t._animationState),n.ekj("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[n.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,t){if(1&e&&(n.TgZ(0,"div",0)(1,"mat-calendar",1),n.NdJ("yearSelected",function(d){return t.datepicker._selectYear(d)})("monthSelected",function(d){return t.datepicker._selectMonth(d)})("viewChanged",function(d){return t.datepicker._viewChanged(d)})("_userSelection",function(d){return t._handleUserSelection(d)}),n.qZA(),n.YNc(2,nj,0,0,"ng-template",2),n.TgZ(3,"button",3),n.NdJ("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),n._uU(4),n.qZA()()),2&e){let r;n.ekj("mat-datepicker-content-container-with-custom-header",t.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",t._actionsPortal),n.uIk("aria-modal",!0)("aria-labelledby",null!==(r=t._dialogLabelId)&&void 0!==r?r:void 0),n.xp6(1),n.Q6J("id",t.datepicker.id)("ngClass",t.datepicker.panelClass)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._getMinDate())("maxDate",t.datepicker._getMaxDate())("dateFilter",t.datepicker._getDateFilter())("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t._getSelected())("dateClass",t.datepicker.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("@fadeInCalendar","enter"),n.xp6(1),n.Q6J("cdkPortalOutlet",t._actionsPortal),n.xp6(1),n.ekj("cdk-visually-hidden",!t._closeButtonFocused),n.Q6J("color",t.color||"primary"),n.xp6(1),n.Oqu(t._closeButtonText)}},dependencies:[x.mk,Ot,Eb,Ma,yM],styles:[".mat-datepicker-content{display:block;border-radius:4px}.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;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:[F1.transformPanel,F1.fadeInCalendar]},changeDetection:0}),i})(),q1=(()=>{class i{constructor(e,t,r,d,h,c,o){this._overlay=e,this._ngZone=t,this._viewContainerRef=r,this._dateAdapter=h,this._dir=c,this._model=o,this._inputStateChanges=Rt.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new n.vpe,this.monthSelected=new n.vpe,this.viewChanged=new n.vpe(!0),this.openedStream=new n.vpe,this.closedStream=new n.vpe,this._opened=!1,this.id="mat-datepicker-"+gj++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new Se.x,this._scrollStrategy=d}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=Oe(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const t=Oe(e);t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=Oe(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=function rv(i,s=/\s+/){const e=[];if(null!=i){const t=Array.isArray(i)?i:`${i}`.split(s);for(const r of t){const d=`${r}`.trim();d&&e.push(d)}}return e}(e)}get opened(){return this._opened}set opened(e){Oe(e)?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}ngOnChanges(e){const t=e.xPosition||e.yPosition;if(t&&!t.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof Em&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=ho(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const t=this._componentRef.instance;t._startExitAnimation(),t._animationDone.pipe((0,rt.q)(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,t=new xa(yj,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new Sl({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(r).subscribe(d=>{d&&d.preventDefault(),this.close()}),r.keydownEvents().subscribe(d=>{const h=d.keyCode;(38===h||40===h||37===h||39===h||33===h||34===h)&&d.preventDefault()}),this._componentRef=r.attach(t),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(()=>r.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const t="end"===this.xPosition?"end":"start",r="start"===t?"end":"start",d="above"===this.yPosition?"bottom":"top",h="top"===d?"bottom":"top";return e.withPositions([{originX:t,originY:h,overlayX:t,overlayY:d},{originX:t,originY:d,overlayX:t,overlayY:h},{originX:r,originY:h,overlayX:r,overlayY:d},{originX:r,originY:d,overlayX:r,overlayY:h}])}_getCloseStream(e){return(0,Mn.T)(e.backdropClick(),e.detachments(),e.keydownEvents().pipe((0,Ce.h)(t=>27===t.keyCode&&!ri(t)||this.datepickerInput&&ri(t,"altKey")&&38===t.keyCode)))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(Y1),n.Y36(Un,8),n.Y36(xn,8),n.Y36(cd))},i.\u0275dir=n.lG2({type:i,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[n.TTD]}),i})(),CM=(()=>{class i extends q1{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[n._Bn([O1,{provide:q1,useExisting:i}]),n.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),i})();class FC{constructor(s,e){this.target=s,this.targetElement=e,this.value=this.target.value}}let Cj=(()=>{class i{constructor(e,t,r){this._elementRef=e,this._dateAdapter=t,this._dateFormats=r,this.dateChange=new n.vpe,this.dateInput=new n.vpe,this.stateChanges=new Se.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Rt.w0.EMPTY,this._localeSubscription=Rt.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=d=>{const h=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(d.value));return!h||this._matchesFilter(h)?null:{matDatepickerFilter:!0}},this._minValidator=d=>{const h=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(d.value)),c=this._getMinDate();return!c||!h||this._dateAdapter.compareDate(c,h)<=0?null:{matDatepickerMin:{min:c,actual:h}}},this._maxValidator=d=>{const h=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(d.value)),c=this._getMaxDate();return!c||!h||this._dateAdapter.compareDate(c,h)>=0?null:{matDatepickerMax:{max:c,actual:h}}},this._lastValueValid=!1,this._localeSubscription=t.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const t=Oe(e),r=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const r=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new FC(this,this._elementRef.nativeElement)),this.dateChange.emit(new FC(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function Aj(i,s){const e=Object.keys(i);for(let t of e){const{previousValue:r,currentValue:d}=i[t];if(!s.isDateInstance(r)||!s.isDateInstance(d))return!0;if(!s.sameDate(r,d))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const t=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);const d=!this._dateAdapter.sameDate(r,this.value);!r||d?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),t!==this._lastValueValid&&this._validatorOnChange()),d&&(this._assignValue(r),this.dateInput.emit(new FC(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new FC(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const t=this._getDateFilter();return!t||t(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Un,8),n.Y36(_i,8))},i.\u0275dir=n.lG2({type:i,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[n.TTD]}),i})();const vj={provide:sr,useExisting:(0,n.Gpc)(()=>c_),multi:!0},Tj={provide:wi,useExisting:(0,n.Gpc)(()=>c_),multi:!0};let c_=(()=>{class i extends Cj{constructor(e,t,r,d){super(e,t,r),this._formField=d,this._closedSubscription=Rt.w0.EMPTY,this._validator=kn.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())}get max(){return this._max}set max(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange()}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()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Un,8),n.Y36(_i,8),n.Y36(mp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,t){1&e&&n.NdJ("input",function(d){return t._onInput(d.target.value)})("change",function(){return t._onChange()})("blur",function(){return t._onBlur()})("keydown",function(d){return t._onKeydown(d)}),2&e&&(n.Ikx("disabled",t.disabled),n.uIk("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",(null==t._datepicker?null:t._datepicker.opened)&&t._datepicker.id||null)("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null)("data-mat-calendar",t._datepicker?t._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[n._Bn([vj,Tj,{provide:tD,useExisting:i}]),n.qOj]}),i})(),xj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","matDatepickerToggleIcon",""]]}),i})(),AM=(()=>{class i{constructor(e,t,r){this._intl=e,this._changeDetectorRef=t,this._stateChanges=Rt.w0.EMPTY;const d=Number(r);this.tabIndex=d||0===d?d:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=Oe(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:(0,xe.of)(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,xe.of)(),r=this.datepicker?(0,Mn.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,xe.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,Mn.T)(this._intl.changes,e,t,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(o_),n.Y36(n.sBO),n.$8M("tabindex"))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,xj,5),2&e){let d;n.iGM(d=n.CRH())&&(t._customIcon=d.first)}},viewQuery:function(e,t){if(1&e&&n.Gf(ij,5),2&e){let r;n.iGM(r=n.CRH())&&(t._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t._open(d)}),2&e&&(n.uIk("tabindex",null)("data-mat-calendar",t.datepicker?t.datepicker.id:null),n.ekj("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&"accent"===t.datepicker.color)("mat-warn",t.datepicker&&"warn"===t.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[n.TTD],ngContentSelectors:sj,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",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(e,t){1&e&&(n.F$t(aj),n.TgZ(0,"button",0,1),n.YNc(2,rj,2,0,"svg",2),n.Hsn(3),n.qZA()),2&e&&(n.Q6J("disabled",t.disabled)("disableRipple",t.disableRipple),n.uIk("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t.ariaLabel||t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),n.xp6(2),n.Q6J("ngIf",!t._customIcon))},dependencies:[x.O5,Ot],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),i})(),vM=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[o_,bj],imports:[x.ez,bi,El,bl,Hs,ht,Ds]}),i})();const Mj=["mat-sort-header",""];function Sj(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._disableViewStateAnimation=!1)}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6)(4,"div",7)(5,"div",8),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",e._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",e._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",e._getArrowDirectionState())}}const Ej=["*"],z1=new n.OlP("MAT_SORT_DEFAULT_OPTIONS"),Dj=Zh(Qr(class{}));let Oa=(()=>{class i extends Dj{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new Se.x,this.start="asc",this._direction="",this.sortChange=new n.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Oe(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let r=function Hj(i,s){let e=["asc","desc"];return"desc"==i&&e.reverse(),s||e.push(""),e}(e.start||this.start,e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),d=r.indexOf(this.direction)+1;return d>=r.length&&(d=0),r[d]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(z1,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.qOj,n.TTD]}),i})();const dd=jS.ENTERING+" "+VS.STANDARD_CURVE,nf={indicator:fn("indicator",[Pt("active-asc, asc",He({transform:"translateY(0px)"})),Pt("active-desc, desc",He({transform:"translateY(10px)"})),xt("active-asc <=> active-desc",Tt(dd))]),leftPointer:fn("leftPointer",[Pt("active-asc, asc",He({transform:"rotate(-45deg)"})),Pt("active-desc, desc",He({transform:"rotate(45deg)"})),xt("active-asc <=> active-desc",Tt(dd))]),rightPointer:fn("rightPointer",[Pt("active-asc, asc",He({transform:"rotate(45deg)"})),Pt("active-desc, desc",He({transform:"rotate(-45deg)"})),xt("active-asc <=> active-desc",Tt(dd))]),arrowOpacity:fn("arrowOpacity",[Pt("desc-to-active, asc-to-active, active",He({opacity:1})),Pt("desc-to-hint, asc-to-hint, hint",He({opacity:.54})),Pt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",He({opacity:0})),xt("* => asc, * => desc, * => active, * => hint, * => void",Tt("0ms")),xt("* <=> *",Tt(dd))]),arrowPosition:fn("arrowPosition",[xt("* => desc-to-hint, * => desc-to-active",Tt(dd,Dl([He({transform:"translateY(-25%)"}),He({transform:"translateY(0)"})]))),xt("* => hint-to-desc, * => active-to-desc",Tt(dd,Dl([He({transform:"translateY(0)"}),He({transform:"translateY(25%)"})]))),xt("* => asc-to-hint, * => asc-to-active",Tt(dd,Dl([He({transform:"translateY(25%)"}),He({transform:"translateY(0)"})]))),xt("* => hint-to-asc, * => active-to-asc",Tt(dd,Dl([He({transform:"translateY(0)"}),He({transform:"translateY(-25%)"})]))),Pt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",He({transform:"translateY(0)"})),Pt("hint-to-desc, active-to-desc, desc",He({transform:"translateY(-25%)"})),Pt("hint-to-asc, active-to-asc, asc",He({transform:"translateY(25%)"}))]),allowChildren:fn("allowChildren",[xt("* <=> *",[gr("@*",pp(),{optional:!0})])])};let YC=(()=>{class i{constructor(){this.changes=new Se.x}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Rj={provide:YC,deps:[[new n.FiY,new n.tp0,YC]],useFactory:function Pj(i){return i||new YC}},kj=Qr(class{});let rf=(()=>{class i extends kj{constructor(e,t,r,d,h,c,o,a){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=d,this._focusMonitor=h,this._elementRef=c,this._ariaDescriber=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",a?.arrowPosition&&(this.arrowPosition=a?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Oe(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,Mn.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(YC),n.Y36(n.sBO),n.Y36(Oa,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36(Ii),n.Y36(n.SBq),n.Y36(Kd,8),n.Y36(z1,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._handleClick()})("keydown",function(d){return t._handleKeydown(d)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(n.uIk("aria-sort",t._getAriaSortAttribute()),n.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[n.qOj],attrs:Mj,ngContentSelectors:Ej,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,Sj,6,6,"div",2),n.qZA()),2&e&&(n.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"===t.arrowPosition),n.uIk("tabindex",t._isDisabled()?null:0)("role",t._isDisabled()?null:"button"),n.xp6(3),n.Q6J("ngIf",t._renderArrow()))},dependencies:[x.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[nf.indicator,nf.leftPointer,nf.rightPointer,nf.arrowOpacity,nf.arrowPosition,nf.allowChildren]},changeDetection:0}),i})(),TM=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Rj],imports:[x.ez,ht]}),i})();function Lj(i,s){1&i&&n.Hsn(0)}const G1=["*"];function Ij(i,s){}const Oj=function(i){return{animationDuration:i}},Bj=function(i,s){return{value:i,params:s}},Vj=["tabListContainer"],jj=["tabList"],Uj=["tabListInner"],Nj=["nextPaginator"],Fj=["previousPaginator"],Yj=["tabBodyWrapper"],qj=["tabHeader"];function zj(i,s){}function Gj(i,s){if(1&i&&n.YNc(0,zj,0,0,"ng-template",10),2&i){const e=n.oxw().$implicit;n.Q6J("cdkPortalOutlet",e.templateLabel)}}function Wj(i,s){if(1&i&&n._uU(0),2&i){const e=n.oxw().$implicit;n.Oqu(e.textLabel)}}function $j(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",6),n.NdJ("click",function(){const r=n.CHM(e),d=r.$implicit,h=r.index,c=n.oxw(),o=n.MAs(1);return n.KtG(c._handleClick(d,o,h))})("cdkFocusChange",function(r){const h=n.CHM(e).index,c=n.oxw();return n.KtG(c._tabFocusChanged(r,h))}),n.TgZ(1,"div",7),n.YNc(2,Gj,1,1,"ng-template",8),n.YNc(3,Wj,1,1,"ng-template",null,9,n.W1O),n.qZA()()}if(2&i){const e=s.$implicit,t=s.index,r=n.MAs(4),d=n.oxw();n.ekj("mat-tab-label-active",d.selectedIndex===t),n.Q6J("id",d._getTabLabelId(t))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||d.disableRipple),n.uIk("tabIndex",d._getTabIndex(e,t))("aria-posinset",t+1)("aria-setsize",d._tabs.length)("aria-controls",d._getTabContentId(t))("aria-selected",d.selectedIndex===t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),n.xp6(2),n.Q6J("ngIf",e.templateLabel)("ngIfElse",r)}}function Jj(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-tab-body",11),n.NdJ("_onCentered",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._setTabBodyWrapperHeight(r))}),n.qZA()}if(2&i){const e=s.$implicit,t=s.index,r=n.oxw();n.ekj("mat-tab-body-active",r.selectedIndex===t),n.Q6J("id",r._getTabContentId(t))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),n.uIk("tabindex",null!=r.contentTabIndex&&r.selectedIndex===t?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(t))}}const Zj=new n.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Qj(){return s=>({left:s?(s.offsetLeft||0)+"px":"0",width:s?(s.offsetWidth||0)+"px":"0"})}});let W1=(()=>{class i{constructor(e,t,r,d){this._elementRef=e,this._ngZone=t,this._inkBarPositioner=r,this._animationMode=d}alignToElement(e){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(()=>{const t=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=t.left,r.style.width=t.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Zj),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),i})();const $1=new n.OlP("MatTabContent");let Kj=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","matTabContent",""]],features:[n._Bn([{provide:$1,useExisting:i}])]}),i})();const J1=new n.OlP("MatTabLabel"),Z1=new n.OlP("MAT_TAB");let Xj=(()=>{class i extends Lc{constructor(e,t,r){super(e,t),this._closestTab=r}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(Z1,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[n._Bn([{provide:J1,useExisting:i}]),n.qOj]}),i})();const e2=Qr(class{}),Q1=new n.OlP("MAT_TAB_GROUP");let K1=(()=>{class i extends e2{constructor(e,t){super(),this._viewContainerRef=e,this._closestTabGroup=t,this.textLabel="",this._contentPortal=null,this._stateChanges=new Se.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Ir(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(Q1,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tab"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,J1,5),n.Suo(r,$1,7,n.Rgc)),2&e){let d;n.iGM(d=n.CRH())&&(t.templateLabel=d.first),n.iGM(d=n.CRH())&&(t._explicitContent=d.first)}},viewQuery:function(e,t){if(1&e&&n.Gf(n.Rgc,7),2&e){let r;n.iGM(r=n.CRH())&&(t._implicitContent=r.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[n._Bn([{provide:Z1,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:G1,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.YNc(0,Lj,1,0,"ng-template"))},encapsulation:2}),i})();const t2={translateTab:fn("translateTab",[Pt("center, void, left-origin-center, right-origin-center",He({transform:"none"})),Pt("left",He({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Pt("right",He({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),xt("* => left, * => right, left => center, right => center",Tt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),xt("void => left-origin-center",[He({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Tt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),xt("void => right-origin-center",[He({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Tt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let n2=(()=>{class i extends Ma{constructor(e,t,r,d){super(e,t,d),this._host=r,this._centeringSub=Rt.w0.EMPTY,this._leavingSub=Rt.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Zt(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36((0,n.Gpc)(()=>X1)),n.Y36(x.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","matTabBodyHost",""]],features:[n.qOj]}),i})(),r2=(()=>{class i{constructor(e,t,r){this._elementRef=e,this._dir=t,this._dirChangeSubscription=Rt.w0.EMPTY,this._translateTabComplete=new Se.x,this._onCentering=new n.vpe,this._beforeCentering=new n.vpe,this._afterLeavingCenter=new n.vpe,this._onCentered=new n.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,t&&(this._dirChangeSubscription=t.change.subscribe(d=>{this._computePositionAnimationState(d),r.markForCheck()})),this._translateTabComplete.pipe(mo((d,h)=>d.fromState===h.fromState&&d.toState===h.toState)).subscribe(d=>{this._isCenterPosition(d.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(d.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(xn,8),n.Y36(n.sBO))},i.\u0275dir=n.lG2({type:i,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),i})(),X1=(()=>{class i extends r2{constructor(e,t,r){super(e,t,r)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(xn,8),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tab-body"]],viewQuery:function(e,t){if(1&e&&n.Gf(Ma,5),2&e){let r;n.iGM(r=n.CRH())&&(t._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[n.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(n.TgZ(0,"div",0,1),n.NdJ("@translateTab.start",function(d){return t._onTranslateTabStarted(d)})("@translateTab.done",function(d){return t._translateTabComplete.next(d)}),n.YNc(2,Ij,0,0,"ng-template",2),n.qZA()),2&e&&n.Q6J("@translateTab",n.WLB(3,Bj,t._position,n.VKq(1,Oj,t.animationDuration)))},dependencies:[n2],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[t2.translateTab]}}),i})();const eH=new n.OlP("MAT_TABS_CONFIG"),a2=Qr(class{});let tH=(()=>{class i extends a2{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(n.uIk("aria-disabled",!!t.disabled),n.ekj("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[n.qOj]}),i})();const nH=Ja({passive:!0});let l2=(()=>{class i{constructor(e,t,r,d,h,c,o){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=r,this._dir=d,this._ngZone=h,this._platform=c,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Se.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Se.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new n.vpe,this.indexFocused=new n.vpe,h.runOutsideAngular(()=>{ea(e.nativeElement,"mouseleave").pipe(Ke(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Oe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=gn(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){ea(this._previousPaginator.nativeElement,"touchstart",nH).pipe(Ke(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),ea(this._nextPaginator.nativeElement,"touchstart",nH).pipe(Ke(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:(0,xe.of)("ltr"),t=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Sc(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(r),(0,Mn.T)(e,t,this._items.changes,this._itemsResized()).pipe(Ke(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Ke(this._destroyed)).subscribe(d=>{this.indexFocused.emit(d),this._setTabFocus(d)})}_itemsResized(){return"function"!=typeof ResizeObserver?Pn.E:this._items.changes.pipe(Zt(this._items),(0,_n.w)(e=>new ln.y(t=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(()=>{t.next()});return e.forEach(d=>{r.observe(d.elementRef.nativeElement)}),()=>{r.disconnect()}}))),Fh(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!ri(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const t=this._tabListContainer.nativeElement;t.scrollLeft="ltr"==this._getLayoutDirection()?0:t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const t=this._items?this._items.toArray()[e]:null;if(!t)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:d,offsetWidth:h}=t.elementRef.nativeElement;let c,o;"ltr"==this._getLayoutDirection()?(c=d,o=c+h):(o=this._tabListInner.nativeElement.offsetWidth-d,c=o-h);const a=this.scrollDistance,l=this.scrollDistance+r;cl&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&null!=t.button&&0!==t.button||(this._stopInterval(),(0,wm.H)(650,100).pipe(Ke((0,Mn.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:d}=this._scrollHeader(e);(0===d||d>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(va),n.Y36(xn,8),n.Y36(n.R0b),n.Y36(yn),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,inputs:{disablePagination:"disablePagination"}}),i})(),c2=(()=>{class i extends l2{constructor(e,t,r,d,h,c,o){super(e,t,r,d,h,c,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Oe(e)}_itemSelected(e){e.preventDefault()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(va),n.Y36(xn,8),n.Y36(n.R0b),n.Y36(yn),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,inputs:{disableRipple:"disableRipple"},features:[n.qOj]}),i})(),d2=(()=>{class i extends c2{constructor(e,t,r,d,h,c,o){super(e,t,r,d,h,c,o)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(va),n.Y36(xn,8),n.Y36(n.R0b),n.Y36(yn),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tab-header"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,tH,4),2&e){let d;n.iGM(d=n.CRH())&&(t._items=d)}},viewQuery:function(e,t){if(1&e&&(n.Gf(W1,7),n.Gf(Vj,7),n.Gf(jj,7),n.Gf(Uj,7),n.Gf(Nj,5),n.Gf(Fj,5)),2&e){let r;n.iGM(r=n.CRH())&&(t._inkBar=r.first),n.iGM(r=n.CRH())&&(t._tabListContainer=r.first),n.iGM(r=n.CRH())&&(t._tabList=r.first),n.iGM(r=n.CRH())&&(t._tabListInner=r.first),n.iGM(r=n.CRH())&&(t._nextPaginator=r.first),n.iGM(r=n.CRH())&&(t._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[n.qOj],ngContentSelectors:G1,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"button",0,1),n.NdJ("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(d){return t._handlePaginatorPress("before",d)})("touchend",function(){return t._stopInterval()}),n._UZ(2,"div",2),n.qZA(),n.TgZ(3,"div",3,4),n.NdJ("keydown",function(d){return t._handleKeydown(d)}),n.TgZ(5,"div",5,6),n.NdJ("cdkObserveContent",function(){return t._onContentChanges()}),n.TgZ(7,"div",7,8),n.Hsn(9),n.qZA(),n._UZ(10,"mat-ink-bar"),n.qZA()(),n.TgZ(11,"button",9,10),n.NdJ("mousedown",function(d){return t._handlePaginatorPress("after",d)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),n._UZ(13,"div",2),n.qZA()),2&e&&(n.ekj("mat-tab-header-pagination-disabled",t._disableScrollBefore),n.Q6J("matRippleDisabled",t._disableScrollBefore||t.disableRipple)("disabled",t._disableScrollBefore||null),n.xp6(5),n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),n.xp6(6),n.ekj("mat-tab-header-pagination-disabled",t._disableScrollAfter),n.Q6J("matRippleDisabled",t._disableScrollAfter||t.disableRipple)("disabled",t._disableScrollAfter||null))},dependencies:[Lr,qh,W1],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),i})(),u2=0;class h2{}const p2=Ti(mr(class{constructor(i){this._elementRef=i}}),"primary");let f2=(()=>{class i extends p2{constructor(e,t,r,d){super(e),this._changeDetectorRef=t,this._animationMode=d,this._tabs=new n.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Rt.w0.EMPTY,this._tabLabelSubscription=Rt.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new n.vpe,this.focusChange=new n.vpe,this.animationDone=new n.vpe,this.selectedTabChange=new n.vpe(!0),this._groupId=u2++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Oe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=gn(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=gn(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Oe(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=Oe(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const t=this._elementRef.nativeElement;t.classList.remove(`mat-background-${this.backgroundColor}`),e&&t.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const t=null==this._selectedIndex;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,d)=>r.isActive=d===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((t,r)=>{t.position=r-e,null!=this._selectedIndex&&0==t.position&&!t.origin&&(t.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const t=this._tabs.toArray();let r;for(let d=0;d{t[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Zt(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const t=new h2;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Mn.T)(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,t,r){e.disabled||(this.selectedIndex=t.focusIndex=r)}_getTabIndex(e,t){return e.disabled?null:t===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,t){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(eH,8),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[n.qOj]}),i})(),m2=(()=>{class i extends f2{constructor(e,t,r,d){super(e,t,r,d)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(eH,8),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tab-group"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,K1,5),2&e){let d;n.iGM(d=n.CRH())&&(t._allTabs=d)}},viewQuery:function(e,t){if(1&e&&(n.Gf(Yj,5),n.Gf(qj,5)),2&e){let r;n.iGM(r=n.CRH())&&(t._tabBodyWrapper=r.first),n.iGM(r=n.CRH())&&(t._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[n._Bn([{provide:Q1,useExisting:i}]),n.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-tab-header",0,1),n.NdJ("indexFocused",function(d){return t._focusChanged(d)})("selectFocusedIndex",function(d){return t.selectedIndex=d}),n.YNc(2,$j,5,15,"div",2),n.qZA(),n.TgZ(3,"div",3,4),n.YNc(5,Jj,1,11,"mat-tab-body",5),n.qZA()),2&e&&(n.Q6J("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),n.xp6(2),n.Q6J("ngForOf",t._tabs),n.xp6(1),n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),n.xp6(2),n.Q6J("ngForOf",t._tabs))},dependencies:[x.mk,x.sg,x.O5,Ma,Lr,Av,tH,X1,d2],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),i})(),rH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,ht,Hs,Kr,Jd,bl,ht]}),i})(),aH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),sH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[aH,Kr,ht,Jd,aH,ht]}),i})();const dH=new n.OlP("mat-chips-default-options");let MM=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Ca,{provide:dH,useValue:{separatorKeyCodes:[13]}}],imports:[ht]}),i})(),uH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,c1,jx,w1,bi,C1,VC,Vl,yC,Zg,dC,Hl,cC,nr,Tg,zc,L1,vM,Vb,KE,yD,Ug,pD,TM,Iu,Ls,Lu,Kr,yC,sH,MM,c1,jx,w1,bi,C1,VC,Vl,yC,Zg,dC,Hl,cC,nr,Tg,zc,L1,vM,Vb,KE,yD,Ug,pD,TM,Iu,Ls,Lu,Kr,rH,sH,MM]}),i})();class U2{constructor(s,e){this._document=e;const t=this._textarea=this._document.createElement("textarea"),r=t.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",t.setAttribute("aria-hidden","true"),t.value=s,t.readOnly=!0,this._document.body.appendChild(t)}copy(){const s=this._textarea;let e=!1;try{if(s){const t=this._document.activeElement;s.select(),s.setSelectionRange(0,s.value.length),e=this._document.execCommand("copy"),t&&t.focus()}}catch{}return e}destroy(){const s=this._textarea;s&&(s.remove(),this._textarea=void 0)}}let N2=(()=>{class i{constructor(e){this._document=e}copy(e){const t=this.beginCopy(e),r=t.copy();return t.destroy(),r}beginCopy(e){return new U2(e,this._document)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),F2=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),Y2=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.data=t,this.clipboard=r}ngOnInit(){this.publication=this.data}close(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(N2))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-cite-dialog"]],decls:15,vars:10,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",2),n._uU(5),n.qZA(),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.close()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",5),n.NdJ("click",function(){return t.clipboard.copy(t.publication.main)}),n._uU(11),n.ALo(12,"translate"),n.TgZ(13,"mat-icon"),n._uU(14,"content_copy"),n.qZA()()()()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,4,"DIALOGS.SHOW_CITE.TITLE")),n.xp6(3),n.hij(" ",t.publication.main," "),n.xp6(3),n.hij(" ",n.lcZ(9,6,"DIALOGS.SHOW_CITE.CANCEL")," "),n.xp6(3),n.hij(" ",n.lcZ(12,8,"DIALOGS.SHOW_CITE.COPY")," "))},dependencies:[Ot,Ln,Oi,$i,Bi,it]}),i})(),hH=(()=>{class i{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&n.NdJ("mouseup",function(d){return t.onClick(d)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),i})(),qC=(()=>{class i{constructor(e){this.tableCheckboxService=e}transform(e,t,r){return 0!==t&&(function tR(i){return"allObjectCount"in i}(e)?t===e.getData().length:function q2(i){return"_count"in i}(e)?this.tableCheckboxService.isAllSelectedPaginated(e,t,r):this.tableCheckboxService.isAllSelected(t,e,r))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($p,16))},i.\u0275pipe=n.Yjl({name:"isAllSelected",type:i,pure:!0}),i})(),d_=(()=>{class i{transform(e){const t="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return e?t+"DESELECT_ROW":t+"SELECT_ROW"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"checkboxLabel",type:i,pure:!0}),i})(),zC=(()=>{class i{transform(e){const t="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return e?t+"DESELECT_ALL":t+"SELECT_ALL"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"masterCheckboxLabel",type:i,pure:!0}),i})(),z2=(()=>{class i{transform(e){const t=[];return e.forEach(r=>t.push(r.firstName+" "+r.lastName)),t.join(", ")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"authorsSeparatedByComma",type:i,pure:!0}),i})();function G2(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"th",21)(1,"mat-checkbox",22),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(r?d.masterToggle():null)}),n.ALo(2,"translate"),n.ALo(3,"masterCheckboxLabel"),n.qZA()()}if(2&i){const e=n.oxw().ngIf,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.lcZ(2,3,n.lcZ(3,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}const W2=function(i){return{name:i}};function $2(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",23)(1,"mat-checkbox",24),n.NdJ("change",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.itemSelectionToggle(h):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(7,W2,e.title)))("checked",t.selection.isSelected(e))}}function J2(i,s){1&i&&(n.ynx(0,18),n.YNc(1,G2,4,7,"th",19),n.YNc(2,$2,4,9,"td",20),n.BQk())}function Z2(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_ID")," "))}function Q2(i,s){if(1&i&&(n.TgZ(0,"td",26),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.id," ")}}function K2(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_LOCK")," "))}function X2(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",28),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.lockOrUnlockPublication(r))})("mouseenter",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.buttonPressed=!0)})("mouseleave",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.buttonPressed=!1)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"lock"),n.qZA()()}if(2&i){const e=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,2,"PUBLICATIONS_LIST.LOCKED")),n.Q6J("disabled",!e.lockAuth)}}function eU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",28),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.lockOrUnlockPublication(r))})("mouseenter",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.buttonPressed=!0)})("mouseleave",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.buttonPressed=!1)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"lock_open"),n.qZA()()}if(2&i){const e=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,2,"PUBLICATIONS_LIST.UNLOCKED")),n.Q6J("disabled",!e.lockAuth)}}function tU(i,s){if(1&i&&(n.TgZ(0,"td",26),n.YNc(1,X2,4,4,"button",27),n.YNc(2,eU,4,4,"button",27),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Q6J("ngIf",e.locked),n.xp6(1),n.Q6J("ngIf",!e.locked)}}function nU(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_TITLE")," "))}function iU(i,s){if(1&i&&(n.TgZ(0,"td",26),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.title," ")}}function rU(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_REPORTED_BY")," "))}function aU(i,s){if(1&i&&(n.TgZ(0,"td",26),n._uU(1),n.ALo(2,"authorsSeparatedByComma"),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,e.authors)," ")}}function sU(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_YEAR")," "))}function oU(i,s){if(1&i&&(n.TgZ(0,"td",26),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.year," ")}}function lU(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CATEGORY")," "))}function cU(i,s){if(1&i&&(n.TgZ(0,"td",26),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.categoryName," ")}}function dU(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_THANKEDTO")," "))}function uU(i,s){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n._UZ(2,"br"),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.ownerName,"")}}function hU(i,s){if(1&i&&(n.TgZ(0,"td",26),n.YNc(1,uU,3,1,"span",29),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Q6J("ngForOf",e.thanks)}}function pU(i,s){1&i&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CITE")))}function fU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",26)(1,"button",31),n.NdJ("click",function(){const d=n.CHM(e).$implicit,h=n.oxw();return n.KtG(h.showCite(d))})("mouseenter",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.buttonPressed=!0)})("mouseleave",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.buttonPressed=!1)}),n._uU(2),n.ALo(3,"translate"),n.qZA()()}2&i&&(n.xp6(2),n.hij(" ",n.lcZ(3,1,"PUBLICATIONS_LIST.SHOW_CITE")," "))}function mU(i,s){1&i&&n._UZ(0,"tr",32)}const pH=function(i,s){return[i,s]};function gU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"tr",33),n.NdJ("click",function(){const d=n.CHM(e).$implicit,h=n.oxw();return n.KtG(h.disabledRouting&&h.openInTab&&!h.buttonPressed?h.emitPublication(d):null)}),n.qZA()}if(2&i){const e=s.$implicit,t=n.oxw();n.ekj("cursor-pointer",!t.disabledRouting||t.openInTab),n.Q6J("perunWebAppsMiddleClickRouterLink",t.disabledRouting||t.buttonPressed?null:n.WLB(4,pH,t.routerPath,e.id))("routerLink",t.disabledRouting||t.buttonPressed?null:n.WLB(7,pH,t.routerPath,e.id))}}function _U(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",34),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.NO_PUBLICATIONS_FOUND"),"\n"))}const bU=function(i){return{all:i}};let af=(()=>{class i{constructor(e,t,r,d,h,c){this.tableCheckbox=e,this.cabinetService=t,this.dialog=r,this.notificator=d,this.translate=h,this.authResolver=c,this.selection=new Kn(!0,[]),this.displayedColumns=["select","id","lock","title","reportedBy","year","category","thankedTo","cite"],this.pageSizeOptions=jl,this.disabledRouting=!1,this.openInTab=!1,this.allowAlert=!0,this.publicationSelector=new n.vpe,this.buttonPressed=!1,this.lockAuth=!1,h.get("PUBLICATIONS_LIST.CHANGE_LOCK_SUCCESS").subscribe(o=>this.changeLockMessage=o),h.get("PUBLICATIONS_LIST.LOCKED").subscribe(o=>this.locked=o),h.get("PUBLICATIONS_LIST.UNLOCKED").subscribe(o=>this.unlocked=o),this.lockAuth=this.authResolver.isCabinetAdmin()}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"lock":return String(e.locked);case"title":return e.title;case"reportedBy":{let r="";return e.authors.forEach(d=>r+=d.firstName+" "+d.lastName+";"),r.slice(0,-1)}case"year":return e.year.toString();case"category":return e.categoryName;case"thankedTo":{let r="";return e.thanks.forEach(d=>r+=d.ownerName+";"),r.slice(0,-1)}default:return e[t]}}ngOnChanges(){this.dataSource=new zl(this.publications),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}itemSelectionToggle(e){this.selection.toggle(e)}showCite(e){const t=Jn();t.width="500px",t.data=e,this.dialog.open(Y2,t)}lockOrUnlockPublication(e){this.cabinetService.lockPublications({publications:[this.createPublication(e)],lock:!e.locked}).subscribe(()=>{this.notificator.showSuccess(e.locked?this.changeLockMessage+this.unlocked:this.changeLockMessage+this.locked),e.locked=!e.locked})}emitPublication(e){this.publicationSelector.emit(e)}setDataSource(){this.dataSource&&(this.dataSource.sortData=(e,t)=>So(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}createPublication(e){return{id:e.id,beanName:e.beanName,externalId:e.externalId,publicationSystemId:e.publicationSystemId,categoryId:e.categoryId,createdBy:e.createdBy,createdDate:e.createdDate,doi:e.doi,isbn:e.isbn,locked:e.locked,main:e.main,rank:e.rank,title:e.title,year:e.year}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($p),n.Y36(wn),n.Y36(oi),n.Y36(Ji),n.Y36(bn),n.Y36(dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publications-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{publications:"publications",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",pageSizeOptions:"pageSizeOptions",routerPath:"routerPath",disabledRouting:"disabledRouting",openInTab:"openInTab",allowAlert:"allowAlert"},outputs:{publicationSelector:"publicationSelector"},features:[n.TTD],decls:32,vars:14,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","title","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","lock"],["matColumnDef","title"],["matColumnDef","reportedBy"],["matColumnDef","year"],["matColumnDef","category"],["matColumnDef","thankedTo"],["matColumnDef","cite"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-icon-button","",3,"disabled","matTooltip","click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"disabled","matTooltip","click","mouseenter","mouseleave"],[4,"ngFor","ngForOf"],["mat-header-cell",""],["mat-stroked-button","",3,"click","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink","click"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,J2,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,Z2,3,3,"th",5),n.YNc(7,Q2,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,K2,3,3,"th",5),n.YNc(10,tU,3,2,"td",6),n.BQk(),n.ynx(11,8),n.YNc(12,nU,3,3,"th",5),n.YNc(13,iU,2,1,"td",6),n.BQk(),n.ynx(14,9),n.YNc(15,rU,3,3,"th",5),n.YNc(16,aU,3,3,"td",6),n.BQk(),n.ynx(17,10),n.YNc(18,sU,3,3,"th",5),n.YNc(19,oU,2,1,"td",6),n.BQk(),n.ynx(20,11),n.YNc(21,lU,3,3,"th",5),n.YNc(22,cU,2,1,"td",6),n.BQk(),n.ynx(23,12),n.YNc(24,dU,3,3,"th",5),n.YNc(25,hU,2,1,"td",6),n.BQk(),n.ynx(26,13),n.YNc(27,pU,3,3,"th",14),n.YNc(28,fU,4,3,"td",6),n.BQk(),n.YNc(29,mU,1,0,"tr",15),n.YNc(30,gU,1,10,"tr",16),n.qZA()()(),n.YNc(31,_U,3,3,"perun-web-apps-alert",17)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publications.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(12,bU,n.xi3(4,9,t.dataSource,t.selection.selected.length))),n.xp6(26),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.publications.length&&t.allowAlert))},dependencies:[x.sg,x.O5,Ot,ld,Ln,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,ks,Ts,na,as,hH,Vx,it,qC,d_,zC,z2],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function wU(i,s){1&i&&n._UZ(0,"mat-spinner",7)}const yU=function(){return["id","title","year"]};function CU(i,s){if(1&i&&(n.TgZ(0,"div",8),n._uU(1),n.ALo(2,"translate"),n._UZ(3,"perun-web-apps-publications-list",9),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,4,"DIALOGS.REMOVE_PUBLICATION.WARNING")," "),n.xp6(2),n.Q6J("publications",e.publications)("routerPath",null)("displayedColumns",n.DdM(6,yU))}}let SM=(()=>{class i{constructor(e,t,r,d,h){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=d,this.cabinetService=h,this.loading=!1}ngOnInit(){this.publications=this.data}cancel(){this.dialogRef.close()}remove(){this.loading=!0,this.cabinetService.deletePublication(this.publications.pop().id).subscribe(()=>{this.publications.length<=0?this.translate.get("DIALOGS.REMOVE_PUBLICATION.REMOVE_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)}):this.remove()},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(Ji),n.Y36(bn),n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-remove-publication-dialog"]],decls:13,vars:12,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"publications","routerPath","displayedColumns"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,wU,1,0,"mat-spinner",2),n.YNc(5,CU,4,7,"div",3),n.TgZ(6,"div",4)(7,"button",5),n.NdJ("click",function(){return t.cancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",6),n.NdJ("click",function(){return t.remove()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,6,"DIALOGS.REMOVE_PUBLICATION.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(3),n.hij(" ",n.lcZ(9,8,"DIALOGS.REMOVE_PUBLICATION.CANCEL")," "),n.xp6(2),n.Q6J("disabled",t.loading),n.xp6(1),n.hij(" ",n.lcZ(12,10,"DIALOGS.REMOVE_PUBLICATION.REMOVE")," "))},dependencies:[x.O5,Ot,Oi,$i,Bi,Sn,af,it]}),i})(),sf=(()=>{class i{constructor(){this.refresh=new n.vpe}onClickbutton(e){this.refresh.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(n.TgZ(0,"button",0),n.NdJ("click",function(d){return t.onClickbutton(d)}),n.ALo(1,"translate"),n._UZ(2,"mat-icon",1),n.qZA()),2&e&&(n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),n.Q6J("disabled",t.disabled),n.xp6(2),n.s9C("svgIcon",t.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},dependencies:[Ln,Ot,ks,it],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),i})();var lf=E(5439);const Fu=lf||E.t(lf,2),fH=new n.OlP("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function vU(){return{useUtc:!1}}});function TU(i,s){const e=Array(i);for(let t=0;t{class i extends Un{constructor(e,t){super(),this._options=t,this.setLocale(e||Fu.locale())}setLocale(e){super.setLocale(e);let t=Fu.localeData(e);this._localeData={firstDayOfWeek:t.firstDayOfWeek(),longMonths:t.months(),shortMonths:t.monthsShort(),dates:TU(31,r=>this.createDate(2017,0,r+1).format("D")),longDaysOfWeek:t.weekdays(),shortDaysOfWeek:t.weekdaysShort(),narrowDaysOfWeek:t.weekdaysMin()}}getYear(e){return this.clone(e).year()}getMonth(e){return this.clone(e).month()}getDate(e){return this.clone(e).date()}getDayOfWeek(e){return this.clone(e).day()}getMonthNames(e){return"long"==e?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(e){return"long"==e?this._localeData.longDaysOfWeek:"short"==e?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(e){return this.clone(e).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(e){return this.clone(e).daysInMonth()}clone(e){return e.clone().locale(this.locale)}createDate(e,t,r){const d=this._createMoment({year:e,month:t,date:r}).locale(this.locale);return d.isValid(),d}today(){return this._createMoment().locale(this.locale)}parse(e,t){return e&&"string"==typeof e?this._createMoment(e,t,this.locale):e?this._createMoment(e).locale(this.locale):null}format(e,t){return e=this.clone(e),this.isValid(e),e.format(t)}addCalendarYears(e,t){return this.clone(e).add({years:t})}addCalendarMonths(e,t){return this.clone(e).add({months:t})}addCalendarDays(e,t){return this.clone(e).add({days:t})}toIso8601(e){return this.clone(e).format()}deserialize(e){let t;if(e instanceof Date)t=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if("string"==typeof e){if(!e)return null;t=this._createMoment(e,Fu.ISO_8601).locale(this.locale)}return t&&this.isValid(t)?this._createMoment(t).locale(this.locale):super.deserialize(e)}isDateInstance(e){return Fu.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return Fu.invalid()}_createMoment(e,t,r){const{strict:d,useUtc:h}=this._options||{};return h?Fu.utc(e,t,r,d):Fu(e,t,r,d)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(_o,8),n.LFG(fH,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),xU=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Un,useClass:u_,deps:[_o,fH]}]}),i})(),mH=(()=>{class i{ngOnInit(){this.endMaxYear=new Date,this.startMaxYear=this.endYear.value.toDate(),this.startYear.setValue(null)}chosenYearHandler(e,t,r){e.setValue(t),this.startMaxYear=this.endYear.value.toDate(),this.endMinYear=this.startYear.value?this.startYear.value.toDate():null,r.close()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-year-range"]],inputs:{startYear:"startYear",endYear:"endYear"},decls:16,vars:15,consts:[[1,"year-field","mr-2",3,"click"],["matInput","","readonly","",1,"disable",3,"matDatepicker","max","formControl"],["matSuffix","",3,"for"],["startView","multi-year","panelClass","year-picker",3,"yearSelected"],["sdp",""],["matInput","","readonly","",3,"matDatepicker","min","max","formControl"],["edp",""]],template:function(e,t){if(1&e){const r=n.EpF();n.TgZ(0,"mat-form-field",0),n.NdJ("click",function(){n.CHM(r);const h=n.MAs(7);return n.KtG(h.open())}),n.TgZ(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"input",1)(5,"mat-datepicker-toggle",2),n.TgZ(6,"mat-datepicker",3,4),n.NdJ("yearSelected",function(h){n.CHM(r);const c=n.MAs(7);return n.KtG(t.chosenYearHandler(t.startYear,h,c))}),n.qZA()(),n.TgZ(8,"mat-form-field",0),n.NdJ("click",function(){n.CHM(r);const h=n.MAs(15);return n.KtG(h.open())}),n.TgZ(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n._UZ(12,"input",5)(13,"mat-datepicker-toggle",2),n.TgZ(14,"mat-datepicker",3,6),n.NdJ("yearSelected",function(h){n.CHM(r);const c=n.MAs(15);return n.KtG(t.chosenYearHandler(t.endYear,h,c))}),n.qZA()()}if(2&e){const r=n.MAs(7),d=n.MAs(15);n.xp6(2),n.Oqu(n.lcZ(3,11,"PUBLICATION_FILTER.START_YEAR")),n.xp6(2),n.Q6J("matDatepicker",r)("max",t.startMaxYear)("formControl",t.startYear),n.xp6(1),n.Q6J("for",r),n.xp6(5),n.Oqu(n.lcZ(11,13,"PUBLICATION_FILTER.END_YEAR")),n.xp6(2),n.Q6J("matDatepicker",d)("min",t.endMinYear)("max",t.endMaxYear)("formControl",t.endYear),n.xp6(1),n.Q6J("for",d)}},dependencies:[ar,ta,bu,Ra,Gi,Wi,_r,CM,c_,AM,it],styles:[".year-field{max-width:95px!important;width:100%!important;min-width:initial!important}.year-picker .mat-calendar-period-button{pointer-events:none}.year-picker .mat-calendar-arrow{display:none}\n"],encapsulation:2}),i})();function MU(i,s){if(1&i&&(n.TgZ(0,"mat-option",12),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.name," ")}}const EM=lf,SU={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let DM=(()=>{class i{constructor(e){this.cabinetService=e,this.filteredPublication=new n.vpe,this.title=new Nn(""),this.code=new Nn(""),this.startYear=new Nn(EM()),this.endYear=new Nn(EM())}ngOnInit(){this.title.setValue(""),this.code.setValue(""),this.selectedCategory="no_value",this.cabinetService.getCategories().subscribe(e=>{this.categories=e,this.selectedMode="isbn/issn"})}filter(){const e=this.code.value,t={title:this.title.value,isbnissn:"isbn/issn"===this.selectedMode?e:null,doi:"doi"===this.selectedMode?e:null,category:"no_value"!==this.selectedCategory?this.selectedCategory.id:null,startYear:(0,x.p6)(this.startYear.value?this.startYear.value.toDate():null,"yyyy","en-GB"),endYear:(0,x.p6)(this.endYear.value.toDate(),"yyyy","en-GB")};this.filteredPublication.emit(t)}clearFilter(){this.title.setValue(""),this.code.setValue(""),this.selectedMode="isbn/issn",this.selectedCategory="no_value",this.startYear.setValue(null),this.endYear.setValue(EM()),this.filteredPublication.emit({title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publication-filter"]],outputs:{filteredPublication:"filteredPublication"},features:[n._Bn([{provide:Un,useClass:u_,deps:[_o]},{provide:_i,useValue:SU}])],decls:38,vars:34,consts:[[1,"mt-2"],[1,"filter-field","mr-2"],["matInput","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","isbn/issn"],["value","doi"],[1,"year-field","mr-2"],["value","no_value"],[3,"value",4,"ngFor","ngForOf"],[3,"startYear","endYear"],["mat-stroked-button","",1,"mr-2",3,"click"],["mat-stroked-button","",3,"click"],[3,"value"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"mat-form-field",1),n._UZ(2,"input",2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-form-field",1)(5,"mat-label"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"mat-select",3),n.NdJ("valueChange",function(d){return t.selectedMode=d}),n.TgZ(9,"mat-option",4),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"mat-option",5),n._uU(13),n.ALo(14,"translate"),n.qZA()()(),n.TgZ(15,"mat-form-field",6),n._UZ(16,"input",2),n.ALo(17,"translate"),n.qZA(),n.TgZ(18,"mat-form-field",1)(19,"mat-label"),n._uU(20),n.ALo(21,"translate"),n.qZA(),n.TgZ(22,"mat-select",3),n.NdJ("valueChange",function(d){return t.selectedCategory=d}),n.TgZ(23,"mat-option",7),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.YNc(26,MU,2,2,"mat-option",8),n.qZA()(),n._UZ(27,"perun-web-apps-year-range",9),n.TgZ(28,"button",10),n.NdJ("click",function(){return t.filter()}),n.TgZ(29,"mat-icon"),n._uU(30,"search"),n.qZA(),n._uU(31),n.ALo(32,"translate"),n.qZA(),n.TgZ(33,"button",11),n.NdJ("click",function(){return t.clearFilter()}),n.TgZ(34,"mat-icon"),n._uU(35,"search_off"),n.qZA(),n._uU(36),n.ALo(37,"translate"),n.qZA()()),2&e&&(n.xp6(2),n.s9C("placeholder",n.lcZ(3,16,"PUBLICATION_FILTER.TITLE_PLACEHOLDER")),n.Q6J("formControl",t.title),n.xp6(4),n.Oqu(n.lcZ(7,18,"PUBLICATION_FILTER.SELECT_MODE")),n.xp6(2),n.Q6J("value",t.selectedMode),n.xp6(2),n.Oqu(n.lcZ(11,20,"PUBLICATION_FILTER.ISBN/ISSN")),n.xp6(3),n.Oqu(n.lcZ(14,22,"PUBLICATION_FILTER.DOI")),n.xp6(3),n.s9C("placeholder",n.lcZ(17,24,"PUBLICATION_FILTER.CODE_PLACEHOLDER")),n.Q6J("formControl",t.code),n.xp6(4),n.Oqu(n.lcZ(21,26,"PUBLICATION_FILTER.SELECT_CATEGORY")),n.xp6(2),n.Q6J("value",t.selectedCategory),n.xp6(2),n.Oqu(n.lcZ(25,28,"PUBLICATION_FILTER.NO_CATEGORY_SELECTED")),n.xp6(2),n.Q6J("ngForOf",t.categories),n.xp6(1),n.Q6J("startYear",t.startYear)("endYear",t.endYear),n.xp6(4),n.hij(" ",n.lcZ(32,30,"PUBLICATION_FILTER.FILTER")," "),n.xp6(5),n.hij(" ",n.lcZ(37,32,"PUBLICATION_FILTER.CLEAR_FILTER")," "))},dependencies:[x.sg,Ot,Ln,ar,ta,Ra,Gi,Wi,_r,Jc,Al,mH,it],styles:[".filter-field[_ngcontent-%COMP%]{max-width:250px!important;width:100%!important;min-width:initial!important}.disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:initial!important}"]}),i})();function EU(i,s){if(1&i&&n._UZ(0,"perun-web-apps-publications-list",10),2&i){const e=n.oxw();n.Q6J("publications",e.publications)("selection",e.selected)("routerPath","/all-publications")("tableId",e.tableId)}}function DU(i,s){1&i&&n._UZ(0,"mat-spinner",11)}let HU=(()=>{class i{constructor(e,t,r,d,h){this.route=e,this.cabinetService=t,this.dialog=r,this.matIconRegistry=d,this.domSanitizer=h,this.selected=new Kn(!0,[]),this.tableId="68",this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null},this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.refreshTable()}removePublication(){const e=Jn();e.width="500px",e.data=this.selected.selected,this.dialog.open(SM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,this.filter.isbnissn,this.filter.doi,null,null,this.filter.category,+this.filter.startYear,+this.filter.endYear,null).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.filter=e,this.refreshTable()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Li),n.Y36(wn),n.Y36(oi),n.Y36(xo),n.Y36(On))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-all-publications-page"]],decls:14,vars:9,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],["svgIcon","publications",1,"publications-icon"],[1,"ml-3","mt-1"],[1,"mt-4"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","routerPath","tableId",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publications","selection","routerPath","tableId"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._UZ(2,"mat-icon",2),n.TgZ(3,"span",3),n._uU(4),n.ALo(5,"translate"),n.qZA()(),n.TgZ(6,"div",4)(7,"perun-web-apps-refresh-button",5),n.NdJ("refresh",function(){return t.refreshTable()}),n.qZA(),n.TgZ(8,"button",6),n.NdJ("click",function(){return t.removePublication()}),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"perun-web-apps-publication-filter",7),n.NdJ("filteredPublication",function(d){return t.filterPublication(d)}),n.qZA()(),n.YNc(12,EU,1,4,"perun-web-apps-publications-list",8),n.YNc(13,DU,1,0,"mat-spinner",9),n.qZA()),2&e&&(n.xp6(4),n.Oqu(n.lcZ(5,5,"ALL_PUBLICATIONS.TITLE")),n.xp6(4),n.Q6J("disabled",0===t.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(10,7,"ALL_PUBLICATIONS.REMOVE")," "),n.xp6(3),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading))},dependencies:[x.O5,Ot,Ln,Sn,sf,af,DM,it],styles:[".publications-icon[_ngcontent-%COMP%]{height:32px;width:32px}"]}),i})();function PU(i,s){if(1&i&&n._UZ(0,"perun-web-apps-publications-list",11),2&i){const e=n.oxw(2);n.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/my-publications")}}function RU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",6)(2,"perun-web-apps-refresh-button",7),n.NdJ("refresh",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.refreshTable())}),n.qZA(),n.TgZ(3,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.removePublication())}),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"perun-web-apps-publication-filter",9),n.NdJ("filteredPublication",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.filterPublication(r))}),n.qZA()(),n.YNc(7,PU,1,4,"perun-web-apps-publications-list",10),n.qZA()}if(2&i){const e=n.oxw();n.xp6(3),n.Q6J("disabled",0===e.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(5,3,"MY_PUBLICATIONS.REMOVE")," "),n.xp6(3),n.Q6J("ngIf",!e.loading)}}function kU(i,s){1&i&&n._UZ(0,"mat-spinner",12)}let LU=(()=>{class i{constructor(e,t,r,d){this.route=e,this.cabinetService=t,this.dialog=r,this.authResolver=d,this.selected=new Kn(!0,[]),this.tableId="68",this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null}}ngOnInit(){this.initLoading=!0,this.authResolver.getPerunPrincipal().subscribe(e=>{this.authorId=e.userId,this.initLoading=!1,this.refreshTable()})}removePublication(){const e=Jn();e.width="500px",e.data=this.selected.selected,this.dialog.open(SM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,this.filter.isbnissn,this.filter.doi,null,null,this.filter.category,+this.filter.startYear,+this.filter.endYear,this.authorId).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.filter=e,this.refreshTable()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Li),n.Y36(wn),n.Y36(oi),n.Y36(Va))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-my-publications-page"]],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mt-4"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","tableId","routerPath",4,"ngIf"],[3,"publications","selection","tableId","routerPath"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),n._uU(3,"local_library"),n.qZA(),n.TgZ(4,"span",3),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.YNc(7,RU,8,5,"div",4),n.YNc(8,kU,1,0,"mat-spinner",5),n.qZA()),2&e&&(n.xp6(5),n.Oqu(n.lcZ(6,3,"MY_PUBLICATIONS.TITLE")),n.xp6(2),n.Q6J("ngIf",!t.initLoading),n.xp6(1),n.Q6J("ngIf",t.loading||t.initLoading))},dependencies:[x.O5,Ot,Ln,Sn,sf,af,DM,it]}),i})(),IU=(()=>{class i{constructor(e){this.router=e}importPublications(){this.router.navigate(["create-publication","import"],{queryParamsHandling:"preserve"})}createPublication(){this.router.navigate(["create-publication","create"],{queryParamsHandling:"preserve"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($n))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-create-publication-page"]],decls:32,vars:21,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],[1,"card-container"],[1,"align-cards"],[1,"mat-elevation-z3","card-height"],[1,"d-flex","flex-column"],["mat-flat-button","","color","accent",1,"align-self-end","action-button",3,"click"],["mat-flat-button","","color","accent",1,"align-self-end","action-button","create-button",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),n._uU(4,"add_box"),n.qZA(),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"div",3)(8,"div",4)(9,"mat-card",5)(10,"mat-card-title"),n._uU(11),n.ALo(12,"translate"),n.qZA(),n.TgZ(13,"mat-card-content",6)(14,"div"),n._uU(15),n.ALo(16,"translate"),n.qZA(),n.TgZ(17,"button",7),n.NdJ("click",function(){return t.importPublications()}),n._uU(18),n.ALo(19,"translate"),n.qZA()()()(),n.TgZ(20,"div",4)(21,"mat-card",5)(22,"mat-card-title"),n._uU(23),n.ALo(24,"translate"),n.qZA(),n.TgZ(25,"mat-card-content",6)(26,"div"),n._uU(27),n.ALo(28,"translate"),n.qZA(),n.TgZ(29,"button",8),n.NdJ("click",function(){return t.createPublication()}),n._uU(30),n.ALo(31,"translate"),n.qZA()()()()()()),2&e&&(n.xp6(5),n.hij(" ",n.lcZ(6,7,"CREATE_PUBLICATION.TITLE")," "),n.xp6(6),n.hij(" ",n.lcZ(12,9,"CREATE_PUBLICATION.IMPORT_TITLE")," "),n.xp6(4),n.hij(" ",n.lcZ(16,11,"CREATE_PUBLICATION.IMPORT_HINT")," "),n.xp6(3),n.hij(" ",n.lcZ(19,13,"CREATE_PUBLICATION.IMPORT")," "),n.xp6(5),n.hij(" ",n.lcZ(24,15,"CREATE_PUBLICATION.CREATE_TITLE")," "),n.xp6(4),n.hij(" ",n.lcZ(28,17,"CREATE_PUBLICATION.CREATE_HINT")," "),n.xp6(3),n.hij(" ",n.lcZ(31,19,"CREATE_PUBLICATION.CREATE")," "))},dependencies:[l1,s1,o1,Ot,Ln,it],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.card-container[_ngcontent-%COMP%]{margin:0 -1rem}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top;max-width:250px;max-height:200px}.card-height[_ngcontent-%COMP%]{height:200px}.create-button[_ngcontent-%COMP%]{display:flex;margin-top:21px}"]}),i})();const OU=["input"];let BU=(()=>{class i{constructor(){this.autoFocus=!1,this.control=new gg,this.filter=new n.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),ea(this.input.nativeElement,"keyup").pipe((0,_t.U)(e=>e.target.value),(0,Nh.b)(500),mo()).subscribe(e=>{this.control.invalid||this.filter.emit(e)})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(e,t){if(1&e&&n.Gf(OU,7),2&e){let r;n.iGM(r=n.CRH())&&(t.input=r.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","","data-cy","filter-input",3,"placeholder","formControl"],["input",""]],template:function(e,t){1&e&&(n.TgZ(0,"mat-form-field",0),n._UZ(1,"input",1,2),n.ALo(3,"translate"),n.TgZ(4,"mat-error"),n._uU(5),n.qZA()()),2&e&&(n.xp6(1),n.s9C("placeholder",n.lcZ(3,3,t.placeholder)),n.Q6J("formControl",t.control),n.xp6(4),n.hij(" ",t.error," "))},dependencies:[Gi,Wi,es,ar,_r,Ra,it],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),i})(),HM=(()=>{class i{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"userFullName",type:i,pure:!0}),i})();function VU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-checkbox",20),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(3);return n.KtG(r?d.masterToggle():null)}),n.ALo(1,"translate"),n.ALo(2,"masterCheckboxLabel"),n.qZA()}if(2&i){const e=n.oxw(2).ngIf,t=n.oxw();n.Q6J("aria-label",n.lcZ(1,3,n.lcZ(2,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function jU(i,s){if(1&i&&(n.TgZ(0,"th",18),n.YNc(1,VU,3,7,"mat-checkbox",19),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",e.selection.isMultipleSelection())}}const UU=function(i){return{name:i}};function NU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",21)(1,"mat-checkbox",22),n.NdJ("change",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.selection.toggle(h):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.ALo(4,"userFullName"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(9,UU,n.lcZ(4,7,e))))("checked",t.selection.isSelected(e))}}function FU(i,s){1&i&&(n.ynx(0,15),n.YNc(1,jU,2,1,"th",16),n.YNc(2,NU,5,11,"td",17),n.BQk())}function YU(i,s){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"AUTHORS_LIST.ID")))}function qU(i,s){if(1&i&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.id)}}function zU(i,s){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"AUTHORS_LIST.NAME")," "))}function GU(i,s){if(1&i&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,e))}}function WU(i,s){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"AUTHORS_LIST.ORGANIZATION")," "))}function $U(i,s){if(1&i&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&i){const e=s.$implicit,t=n.oxw();n.xp6(1),n.Oqu(t.parseAttribute(e,"organization"))}}function JU(i,s){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"AUTHORS_LIST.EMAIL")," "))}function ZU(i,s){if(1&i&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&i){const e=s.$implicit,t=n.oxw();n.xp6(1),n.Oqu(t.parseAttribute(e,"preferredMail"))}}function QU(i,s){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"AUTHORS_LIST.NUMBER_OF_PUBLICATIONS")," "))}function KU(i,s){if(1&i&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.authorships.length.toString())}}function XU(i,s){1&i&&n._UZ(0,"tr",26)}const gH=function(i){return["/authors",i]};function eN(i,s){if(1&i&&n._UZ(0,"tr",27),2&i){const e=s.$implicit,t=n.oxw();n.ekj("cursor-pointer",!t.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:n.VKq(4,gH,e.id))("routerLink",t.disableRouting?null:n.VKq(6,gH,e.id))}}function tN(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function nN(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"AUTHORS_LIST.NO_AUTHORS"),"\n"))}const iN=function(i){return{all:i}};let PM=(()=>{class i{constructor(e){this.tableCheckbox=e,this.authors=[],this.displayedColumns=["select","id","name","organization","email","numberOfPublications"],this.disableRouting=!1,this.selection=new Kn(!0,[]),this.pageSizeOptions=jl}set matSort(e){this.sort=e,this.setDataSource()}static getFilterDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return function Ny(i){let s="";return null!==i.firstName&&(s+=i.firstName+" "),null!==i.middleName&&(s+=i.middleName+" "),null!==i.lastName&&(s+=i.lastName+" "),s.endsWith(" ")&&(s=s.substring(0,s.length-1)),s}(e);case"organization":return Ou(e.attributes,"organization");case"email":return Ou(e.attributes,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getExportDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return function Uy(i){let s="";return null!==i.titleBefore&&(s+=i.titleBefore+" "),null!==i.firstName&&(s+=i.firstName+" "),null!==i.middleName&&(s+=i.middleName+" "),null!==i.lastName&&(s+=i.lastName+" "),null!==i.titleAfter&&(s+=i.titleAfter+" "),s.endsWith(" ")&&(s=s.substring(0,s.length-1)),s}(e);case"organization":return Ou(e.attributes,"organization");case"email":return Ou(e.attributes,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getSortDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.lastName?e.lastName:e.firstName??"";case"organization":return Ou(e.attributes,"organization");case"email":return Ou(e.attributes,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new zl(this.authors),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getExportDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getExportDataForColumn),e)}parseAttribute(e,t){let r="";return e.attributes&&e.attributes.forEach(d=>{d.friendlyName===t&&(r=d.value)}),r}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Eo(e,t,this.displayedColumns,i.getFilterDataForColumn),this.dataSource.sortData=(e,t)=>So(e,t,i.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($p))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-authors-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{authors:"authors",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",disableRouting:"disableRouting",reloadTable:"reloadTable",selection:"selection",pageSizeOptions:"pageSizeOptions"},features:[n.TTD],decls:24,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","numberOfPublications"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,FU,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,YU,3,3,"th",5),n.YNc(7,qU,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,zU,3,3,"th",5),n.YNc(10,GU,3,3,"td",8),n.BQk(),n.ynx(11,9),n.YNc(12,WU,3,3,"th",5),n.YNc(13,$U,2,1,"td",8),n.BQk(),n.ynx(14,10),n.YNc(15,JU,3,3,"th",5),n.YNc(16,ZU,2,1,"td",8),n.BQk(),n.ynx(17,11),n.YNc(18,QU,3,3,"th",5),n.YNc(19,KU,2,1,"td",8),n.BQk(),n.YNc(20,XU,1,0,"tr",12),n.YNc(21,eN,1,8,"tr",13),n.qZA()()(),n.YNc(22,tN,3,3,"perun-web-apps-alert",14),n.YNc(23,nN,3,3,"perun-web-apps-alert",14)),2&e&&(n.Q6J("hidden",0===t.authors.length||0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(13,iN,n.xi3(4,10,t.dataSource,t.selection.selected.length))),n.xp6(17),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0!==t.authors.length&&0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("ngIf",0===t.authors.length))},dependencies:[x.O5,ld,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,Ts,na,as,hH,Vx,it,HM,qC,d_,zC],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function rN(i,s){1&i&&n._UZ(0,"mat-spinner",8)}const aN=function(){return["id","name","organization","email","numberOfPublications"]};function sN(i,s){if(1&i&&n._UZ(0,"perun-web-apps-authors-list",9),2&i){const e=n.oxw();n.Q6J("authors",e.authors)("displayedColumns",n.DdM(4,aN))("filterValue",e.filterValue)("tableId",e.tableId)}}let oN=(()=>{class i{constructor(e){this.cabinetService=e,this.filterValue="",this.tableId="67"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetService.findAllAuthors().subscribe(e=>{this.authors=e,this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-authors-page"]],decls:11,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","displayedColumns","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"authors","displayedColumns","filterValue","tableId"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),n._uU(3,"assignment_ind"),n.qZA(),n.TgZ(4,"span",3),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"perun-web-apps-refresh-button",4),n.NdJ("refresh",function(){return t.refreshTable()}),n.qZA(),n.TgZ(8,"perun-web-apps-debounce-filter",5),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.qZA(),n.YNc(9,rN,1,0,"mat-spinner",6),n.YNc(10,sN,1,5,"perun-web-apps-authors-list",7),n.qZA()),2&e&&(n.xp6(5),n.Oqu(n.lcZ(6,4,"AUTHORS_PAGE.TITLE")),n.xp6(3),n.Q6J("placeholder","AUTHORS_PAGE.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ln,Sn,sf,BU,PM,it]}),i})();function lN(i,s){1&i&&n._UZ(0,"mat-spinner",4)}function cN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),n._UZ(3,"input",6),n.ALo(4,"translate"),n.TgZ(5,"mat-error"),n._uU(6),n.ALo(7,"translate"),n.qZA()(),n.TgZ(8,"mat-form-field"),n._UZ(9,"input",6),n.ALo(10,"translate"),n.TgZ(11,"mat-error"),n._uU(12),n.ALo(13,"translate"),n.qZA()(),n.TgZ(14,"p",7),n._uU(15),n.ALo(16,"translate"),n.qZA()(),n.TgZ(17,"div",8)(18,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(19),n.ALo(20,"translate"),n.qZA(),n.TgZ(21,"div",10),n.ALo(22,"translate"),n.TgZ(23,"button",11),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(24),n.ALo(25,"translate"),n.qZA()()()()}if(2&i){const e=n.oxw();n.xp6(3),n.s9C("placeholder",n.lcZ(4,12,"DIALOGS.ADD_CATEGORY.NAME")),n.Q6J("formControl",e.nameCtrl),n.xp6(3),n.hij(" ",n.lcZ(7,14,"DIALOGS.ADD_CATEGORY.FILL_NAME")," "),n.xp6(3),n.s9C("placeholder",n.lcZ(10,16,"DIALOGS.ADD_CATEGORY.RANK")),n.Q6J("formControl",e.rankCtrl),n.xp6(3),n.hij(" ",n.lcZ(13,18,"DIALOGS.ADD_CATEGORY.FILL_RANK")," "),n.xp6(3),n.Oqu(n.lcZ(16,20,"DIALOGS.ADD_CATEGORY.RANK_HINT")),n.xp6(4),n.hij(" ",n.lcZ(20,22,"DIALOGS.ADD_CATEGORY.CANCEL")," "),n.xp6(2),n.s9C("matTooltip",n.lcZ(22,24,"DIALOGS.ADD_CATEGORY.TOOLTIP")),n.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.rankCtrl.valid),n.xp6(2),n.Q6J("disabled",e.nameCtrl.invalid||e.rankCtrl.invalid),n.xp6(1),n.hij(" ",n.lcZ(25,26,"DIALOGS.ADD_CATEGORY.CREATE")," ")}}let dN=(()=>{class i{constructor(e,t,r,d){this.dialogRef=e,this.notificator=t,this.cabinetManagerService=r,this.translate=d,d.get("DIALOGS.ADD_CATEGORY.SUCCESS").subscribe(h=>this.successMessage=h)}ngOnInit(){this.nameCtrl=new Nn("",[kn.required,kn.pattern("^[\\w.-]+( [\\w.-]+)*$"),kn.maxLength(128)]),this.rankCtrl=new Nn(null,[kn.required,kn.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.cabinetManagerService.createCategoryCat({category:{id:0,beanName:"Category",name:this.nameCtrl.value,rank:this.rankCtrl.value}}).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(Ji),n.Y36(wn),n.Y36(bn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-category-dialog"]],decls:6,vars:5,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl"],[1,"mt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,lN,1,0,"mat-spinner",2),n.YNc(5,cN,26,28,"div",3),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,3,"DIALOGS.ADD_CATEGORY.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Oi,$i,Bi,Sn,es,ar,Ra,Gi,Wi,ns,_r,ks,it],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})();function uN(i,s){1&i&&n._UZ(0,"mat-spinner",5)}function hN(i,s){1&i&&n._UZ(0,"th",14)}function pN(i,s){if(1&i&&(n.TgZ(0,"td",15),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.name)}}function fN(i,s){1&i&&n._UZ(0,"tr",16)}function mN(i,s){1&i&&n._UZ(0,"tr",17)}function gN(i,s){if(1&i&&(n.TgZ(0,"div",6)(1,"p"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",7),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"table",8),n.ynx(8,9),n.YNc(9,hN,1,0,"th",10),n.YNc(10,pN,2,1,"td",11),n.BQk(),n.YNc(11,fN,1,0,"tr",12),n.YNc(12,mN,1,0,"tr",13),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,5,"DIALOGS.REMOVE_CATEGORY.DESCRIPTION")," "),n.xp6(3),n.hij(" ",n.lcZ(6,7,"DIALOGS.REMOVE_CATEGORY.ASK")," "),n.xp6(2),n.Q6J("dataSource",e.dataSource),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}function _N(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",18)(1,"button",19),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"button",20),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(5),n.ALo(6,"translate"),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,3,"DIALOGS.REMOVE_CATEGORY.CANCEL")," "),n.xp6(2),n.Q6J("disabled",e.loading),n.xp6(1),n.hij(" ",n.lcZ(6,5,"DIALOGS.REMOVE_CATEGORY.DELETE")," ")}}let bN=(()=>{class i{constructor(e,t,r,d,h){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=d,this.cabinetManagerService=h,this.displayedColumns=["name"],this.categories=[]}ngOnInit(){this.dataSource=new zl(this.data),this.categories=this.data}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.categories.length?this.cabinetManagerService.deleteCategory(this.categories.pop().id).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):this.translate.get("DIALOGS.REMOVE_CATEGORY.SUCCESS").subscribe(e=>{this.loading=!1,this.notificator.showSuccess(e),this.dialogRef.close(!0)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(Ji),n.Y36(bn),n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-remove-category-dialog"]],decls:7,vars:6,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,uN,1,0,"mat-spinner",2),n.YNc(5,gN,13,9,"div",3),n.YNc(6,_N,7,7,"div",4),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,4,"DIALOGS.REMOVE_CATEGORY.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oi,$i,Bi,Sn,it]}),i})(),wN=(()=>{class i{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","perunWebAppsAutoFocus",""]]}),i})();function yN(i,s){if(1&i&&(n._UZ(0,"input",3),n.ALo(1,"translate")),2&i){const e=n.oxw();n.s9C("placeholder",n.lcZ(1,2,e.placeholder)),n.Q6J("formControl",e.formControl)}}function CN(i,s){if(1&i&&(n._UZ(0,"input",4),n.ALo(1,"translate")),2&i){const e=n.oxw();n.s9C("placeholder",n.lcZ(1,2,e.placeholder)),n.Q6J("formControl",e.formControl)}}let h_=(()=>{class i{constructor(){this.filter=new n.vpe,this.autoFocus=!1,this.formControl=new gg}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-form-field",0),n.YNc(1,yN,2,4,"input",1),n.YNc(2,CN,2,4,"input",2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",t.autoFocus),n.xp6(1),n.Q6J("ngIf",!t.autoFocus))},dependencies:[x.O5,Gi,Wi,ar,_r,Ra,wN,it],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:initial!important}"]}),i})();function AN(i,s){1&i&&n._UZ(0,"mat-spinner",4)}function vN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),n._UZ(3,"input",6),n.ALo(4,"translate"),n.TgZ(5,"mat-error"),n._uU(6),n.ALo(7,"translate"),n.qZA()(),n.TgZ(8,"p",7),n._uU(9),n.ALo(10,"translate"),n.qZA()(),n.TgZ(11,"div",8)(12,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"div",10),n.ALo(16,"translate"),n.TgZ(17,"button",11),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(18),n.ALo(19,"translate"),n.qZA()()()()}if(2&i){const e=n.oxw();n.xp6(3),n.s9C("placeholder",n.lcZ(4,9,"DIALOGS.UPDATE_RANK.RANK")),n.Q6J("formControl",e.rankCtrl),n.xp6(3),n.hij(" ",n.lcZ(7,11,"DIALOGS.UPDATE_RANK.FILL_RANK")," "),n.xp6(3),n.Oqu(n.lcZ(10,13,"DIALOGS.UPDATE_RANK.RANK_HINT")),n.xp6(4),n.hij(" ",n.lcZ(14,15,"DIALOGS.UPDATE_RANK.CANCEL")," "),n.xp6(2),n.s9C("matTooltip",n.lcZ(16,17,"DIALOGS.UPDATE_RANK.TOOLTIP")),n.Q6J("matTooltipDisabled",e.rankCtrl.valid),n.xp6(2),n.Q6J("disabled",e.rankCtrl.invalid),n.xp6(1),n.hij(" ",n.lcZ(19,19,"DIALOGS.UPDATE_RANK.UPDATE")," ")}}let TN=(()=>{class i{constructor(e,t,r,d,h){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetManagerService=d,this.translate=h,this.categoryName="",h.get("DIALOGS.UPDATE_RANK.SUCCESS").subscribe(c=>this.successMessage=c)}ngOnInit(){this.categoryName=this.data.name,this.rankCtrl=new Nn(this.data.rank,[kn.required,kn.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.rank=this.rankCtrl.value,this.cabinetManagerService.updateCategory({category:this.data}).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(Ji),n.Y36(wn),n.Y36(bn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-update-rank-dialog"]],decls:6,vars:6,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl"],[1,"mt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,AN,1,0,"mat-spinner",2),n.YNc(5,vN,20,21,"div",3),n.qZA()),2&e&&(n.xp6(2),n.AsE("",n.lcZ(3,4,"DIALOGS.UPDATE_RANK.TITLE"),"",t.categoryName,""),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Oi,$i,Bi,Sn,es,ar,Ra,Gi,Wi,ns,_r,ks,it],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})();function xN(i,s){1&i&&n._UZ(0,"th",15)}const MN=function(i){return{name:i}};function SN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",16)(1,"mat-checkbox",17),n.NdJ("change",function(r){const h=n.CHM(e).$implicit,c=n.oxw();return n.KtG(r?c.itemSelectionToggle(h):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(7,MN,e.name)))("checked",t.selection.isSelected(e))}}function EN(i,s){1&i&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CATEGORIES_LIST.ID")," "))}function DN(i,s){if(1&i&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.id)}}function HN(i,s){1&i&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CATEGORIES_LIST.NAME")," "))}function PN(i,s){if(1&i&&(n.TgZ(0,"td",20),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.name)}}function RN(i,s){1&i&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CATEGORIES_LIST.RANK")," "))}function kN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",22),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.updateCategory(r))}),n.TgZ(1,"mat-icon"),n._uU(2,"edit"),n.qZA()()}}function LN(i,s){if(1&i&&(n.TgZ(0,"td",20),n._uU(1),n.YNc(2,kN,3,0,"button",21),n.qZA()),2&i){const e=s.$implicit,t=n.oxw();n.xp6(1),n.hij(" ",e.rank," "),n.xp6(1),n.Q6J("ngIf",t.editAuth)}}function IN(i,s){1&i&&n._UZ(0,"tr",23)}function ON(i,s){1&i&&n._UZ(0,"tr",24)}function BN(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CATEGORIES_PAGE.NO_FILTER_RESULTS"),"\n"))}let VN=(()=>{class i{constructor(e,t,r,d){this.guiAuthResolver=e,this.tableCheckbox=t,this.dialog=r,this.authResolver=d,this.categories=[],this.selection=new Kn(!0,[]),this.displayedColumns=["select","id","name","rank"],this.pageSizeOptions=jl,this.refreshTable=new n.vpe,this.editAuth=!1}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"rank":return e.rank.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new zl(this.categories),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Eo(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>So(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.editAuth=this.authResolver.isCabinetAdmin(),this.dataSource.paginator=this.child.paginator}itemSelectionToggle(e){this.selection.toggle(e)}updateCategory(e){const t=Jn();t.width="400px",t.data=e,this.dialog.open(TN,t).afterClosed().subscribe(d=>{d&&this.refreshTable.emit()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(dn),n.Y36($p),n.Y36(oi),n.Y36(dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-categories-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{categories:"categories",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},outputs:{refreshTable:"refreshTable"},features:[n.TTD],decls:18,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","rank"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,xN,1,0,"th",4),n.YNc(5,SN,4,9,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,EN,3,3,"th",7),n.YNc(8,DN,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,HN,3,3,"th",7),n.YNc(11,PN,2,1,"td",10),n.BQk(),n.ynx(12,11),n.YNc(13,RN,3,3,"th",7),n.YNc(14,LN,3,2,"td",10),n.BQk(),n.YNc(15,IN,1,0,"tr",12),n.YNc(16,ON,1,0,"tr",13),n.qZA()()(),n.YNc(17,BN,3,3,"perun-web-apps-alert",14)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.categories.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(13),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.categories.length))},dependencies:[x.O5,Ot,ld,Ln,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,na,as,it,d_]}),i})();function jN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.addCategory())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CATEGORIES_PAGE.CREATE")," "))}function UN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.removeCategory())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("disabled",!e.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(2,2,"CATEGORIES_PAGE.REMOVE")," ")}}function NN(i,s){1&i&&n._UZ(0,"mat-spinner",10)}const FN=function(){return["select","id","name","rank"]},YN=function(){return["name","rank"]};function qN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-categories-list",11),n.NdJ("refreshTable",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.refreshTable())}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("categories",e.categories)("filterValue",e.filterValue)("displayedColumns",e.removeAuth?n.DdM(5,FN):n.DdM(6,YN))("tableId",e.tableId)("selection",e.selected)}}let zN=(()=>{class i{constructor(e,t,r){this.cabinetManagerService=e,this.dialog=t,this.guiAuthResolver=r,this.categories=[],this.selected=new Kn(!0,[]),this.filterValue="",this.tableId="5"}ngOnInit(){this.setAuth(),this.refreshTable()}setAuth(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteCategory_Category_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createCategory_Category_policy",[])}refreshTable(){this.loading=!0,this.cabinetManagerService.getCategories().subscribe(e=>{this.categories=e,this.loading=!1})}applyFilter(e){this.filterValue=e}addCategory(){const e=Jn();e.width="400px",e.data={},this.dialog.open(dN,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}removeCategory(){const e=Jn();e.width="400px",e.data=this.selected.selected,this.dialog.open(bN,e).afterClosed().subscribe(r=>{r&&(this.selected.clear(),this.refreshTable())})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn),n.Y36(oi),n.Y36(dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-categories-page"]],decls:10,vars:8,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"categories","filterValue","displayedColumns","tableId","selection","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"categories","filterValue","displayedColumns","tableId","selection","refreshTable"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"perun-web-apps-refresh-button",2),n.NdJ("refresh",function(){return t.refreshTable()}),n.qZA(),n.YNc(5,jN,3,3,"button",3),n.YNc(6,UN,3,4,"button",4),n.TgZ(7,"perun-web-apps-immediate-filter",5),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.qZA(),n.YNc(8,NN,1,0,"mat-spinner",6),n.YNc(9,qN,1,7,"perun-web-apps-categories-list",7),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,6,"CATEGORIES_PAGE.TITLE")),n.xp6(3),n.Q6J("ngIf",t.addAuth),n.xp6(1),n.Q6J("ngIf",t.removeAuth),n.xp6(1),n.Q6J("placeholder","CATEGORIES_PAGE.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",t.categories&&!t.loading))},dependencies:[x.O5,Ot,Sn,sf,h_,VN,it]}),i})();function GN(i,s){1&i&&(n.TgZ(0,"th",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.ID")," "))}function WN(i,s){if(1&i&&(n.TgZ(0,"td",15),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.id)}}function $N(i,s){1&i&&(n.TgZ(0,"th",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.FRIENDLY_NAME")," "))}function JN(i,s){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.friendlyName)}}function ZN(i,s){1&i&&(n.TgZ(0,"th",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.LOGIN_NAMESPACE")," "))}function QN(i,s){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ","empty"===e.loginNamespace?"":e.loginNamespace," ")}}function KN(i,s){1&i&&(n.TgZ(0,"th",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.URL")," "))}function XN(i,s){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu("empty"===e.url?"":e.url)}}function eF(i,s){1&i&&(n.TgZ(0,"th",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.TYPE")," "))}function tF(i,s){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu("empty"===e.type?"":e.type)}}function nF(i,s){1&i&&n._UZ(0,"tr",17)}function iF(i,s){1&i&&n._UZ(0,"tr",18)}function rF(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",19),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let aF=(()=>{class i{constructor(){this.publicationSystems=[],this.displayedColumns=["id","friendlyName","loginNamespace","url","type"],this.pageSizeOptions=jl}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"url":return e.url;case"loginNamespace":return e.loginNamespace;case"type":return e.type;default:return e[t]}}ngOnChanges(){this.dataSource=new zl(this.publicationSystems),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Eo(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>So(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publication-systems-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{publicationSystems:"publicationSystems",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},features:[n.TTD],decls:21,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","loginNamespace"],["matColumnDef","url"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,GN,3,3,"th",4),n.YNc(5,WN,2,1,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,$N,3,3,"th",4),n.YNc(8,JN,2,1,"td",7),n.BQk(),n.ynx(9,8),n.YNc(10,ZN,3,3,"th",4),n.YNc(11,QN,2,1,"td",7),n.BQk(),n.ynx(12,9),n.YNc(13,KN,3,3,"th",4),n.YNc(14,XN,2,1,"td",7),n.BQk(),n.ynx(15,10),n.YNc(16,eF,3,3,"th",4),n.YNc(17,tF,2,1,"td",7),n.BQk(),n.YNc(18,nF,1,0,"tr",11),n.YNc(19,iF,1,0,"tr",12),n.qZA()()(),n.YNc(20,rF,3,3,"perun-web-apps-alert",13)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publicationSystems.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(16),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.publicationSystems.length))},dependencies:[x.O5,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,na,as,it]}),i})();function sF(i,s){1&i&&n._UZ(0,"mat-spinner",6)}function oF(i,s){if(1&i&&n._UZ(0,"perun-web-apps-publication-systems-list",7),2&i){const e=n.oxw();n.Q6J("publicationSystems",e.publicationSystems)("filterValue",e.filterValue)("tableId",e.tableId)}}let lF=(()=>{class i{constructor(e){this.cabinetManagerService=e,this.publicationSystems=[],this.filterValue="",this.tableId="5"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetManagerService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e,this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publication-systems-page"]],decls:8,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publicationSystems","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"publicationSystems","filterValue","tableId"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"perun-web-apps-refresh-button",2),n.NdJ("refresh",function(){return t.refreshTable()}),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",3),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.qZA(),n.YNc(6,sF,1,0,"mat-spinner",4),n.YNc(7,oF,1,3,"perun-web-apps-publication-systems-list",5),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,4,"PUBLICATION_SYSTEMS_PAGE.TITLE")),n.xp6(3),n.Q6J("placeholder","PUBLICATION_SYSTEMS_PAGE.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",t.publicationSystems&&!t.loading))},dependencies:[x.O5,Sn,sf,h_,aF,it]}),i})();function cF(i,s){if(1&i&&n._UZ(0,"perun-web-apps-publications-list",11),2&i){const e=n.oxw(2);n.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/authors/"+e.author.id+"/publication")}}function dF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"h5"),n._uU(2),n.ALo(3,"userFullName"),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"div",6)(6,"perun-web-apps-refresh-button",7),n.NdJ("refresh",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.refreshTable())}),n.qZA(),n.TgZ(7,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.removePublication())}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"perun-web-apps-publication-filter",9),n.NdJ("filteredPublication",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.filterPublication(r))}),n.qZA()(),n.YNc(11,cF,1,4,"perun-web-apps-publications-list",10),n.qZA()}if(2&i){const e=n.oxw();n.xp6(2),n.AsE("",n.lcZ(3,5,e.author),"",n.lcZ(4,7,"AUTHOR_DETAIL.TITLE"),""),n.xp6(5),n.Q6J("disabled",0===e.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(9,9,"AUTHOR_DETAIL.REMOVE")," "),n.xp6(3),n.Q6J("ngIf",!e.loading)}}function uF(i,s){1&i&&n._UZ(0,"mat-spinner",12)}let hF=(()=>{class i{constructor(e,t,r,d){this.route=e,this.cabinetService=t,this.userService=r,this.dialog=d,this.selected=new Kn(!0,[]),this.tableId="68"}ngOnInit(){this.initLoading=!0,this.route.params.subscribe(e=>{const t=Number(e.authorId);this.userService.getUserById(t).subscribe(r=>{this.author=r,this.initLoading=!1,this.refreshTable()})})}removePublication(){const e=Jn();e.width="500px",e.data=this.selected.selected,this.dialog.open(SM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(null,null,null,null,null,null,null,null,this.author.id).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(e.title,e.isbnissn,e.doi,null,null,e.category,+e.startYear,+e.endYear,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Li),n.Y36(wn),n.Y36(Uo),n.Y36(oi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-author-detail"]],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mt-3"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","tableId","routerPath",4,"ngIf"],[3,"publications","selection","tableId","routerPath"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),n._uU(3,"assignment_ind"),n.qZA(),n.TgZ(4,"span",3),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.YNc(7,dF,12,11,"div",4),n.YNc(8,uF,1,0,"mat-spinner",5),n.qZA()),2&e&&(n.xp6(5),n.Oqu(n.lcZ(6,3,"AUTHORS_PAGE.TITLE")),n.xp6(2),n.Q6J("ngIf",!t.initLoading),n.xp6(1),n.Q6J("ngIf",t.loading||t.initLoading))},dependencies:[x.O5,Ot,Ln,Sn,sf,af,DM,it,HM]}),i})();function pF(i,s){1&i&&n._UZ(0,"mat-spinner",2)}function fF(i,s){if(1&i&&(n.TgZ(0,"h3",15),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.publication.title)}}function mF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",16),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.editing=!r.editing)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",17),n._uU(3,"edit"),n.qZA()()}2&i&&n.s9C("matTooltip",n.lcZ(1,1,"PUBLICATION_DETAIL.LIST.EDIT"))}function gF(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.LIST.EMPTY_ERROR")," "))}function _F(i,s){if(1&i&&(n.TgZ(0,"mat-form-field",18),n._UZ(1,"textarea",19),n.YNc(2,gF,3,3,"mat-error",1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("formControl",e.titleControl),n.xp6(1),n.Q6J("ngIf",e.titleControl.invalid)}}function bF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",20),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.save())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",17),n._uU(3,"save"),n.qZA()()}if(2&i){const e=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,2,"PUBLICATION_DETAIL.LIST.SAVE")),n.Q6J("disabled",e.titleControl.invalid)}}function wF(i,s){1&i&&n._UZ(0,"th",21)}function yF(i,s){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij("",e.key,":")}}function CF(i,s){1&i&&n._UZ(0,"th",21)}function AF(i,s){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.TgZ(2,"span",24),n._uU(3),n.ALo(4,"translate"),n.qZA(),n._uU(5),n.TgZ(6,"span",24),n._uU(7),n.ALo(8,"translate"),n.qZA(),n._uU(9),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(2);n.xp6(1),n.hij(" ",e.value," / "),n.xp6(2),n.hij("",n.lcZ(4,5,"PUBLICATION_DETAIL.LIST.EXT_ID"),":"),n.xp6(2),n.hij(" ",t.publication.externalId," "),n.xp6(2),n.hij("",n.lcZ(8,7,"PUBLICATION_DETAIL.LIST.SYSTEM"),":"),n.xp6(2),n.hij(" ",t.publication.pubSystemName," ")}}function vF(i,s){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"date"),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.xi3(2,1,e.value,"dd/MM/yyyy")," ")}}function TF(i,s){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",e.value," ")}}function xF(i,s){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&i){const e=n.oxw(3).$implicit;n.xp6(1),n.hij(" ",e.value," ")}}function MF(i,s){if(1&i&&(n.TgZ(0,"span"),n.YNc(1,xF,2,1,"span",1),n.qZA()),2&i){const e=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngIf","Id / Origin"!==e.key&&"Create date"!==e.key&&"Created by"!==e.key)}}function SF(i,s){1&i&&(n.TgZ(0,"span"),n._uU(1," - "),n.qZA())}function EF(i,s){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,MF,2,1,"span",1),n.YNc(2,SF,2,0,"span",1),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngIf",null!==e.value&&""!==e.value),n.xp6(1),n.Q6J("ngIf",null===e.value||""===e.value)}}function DF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",26),n.NdJ("click",function(){n.CHM(e);const r=n.MAs(7);return n.KtG(r.open())}),n.TgZ(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"input",27)(5,"mat-datepicker-toggle",28),n.TgZ(6,"mat-datepicker",29,30),n.NdJ("yearSelected",function(r){n.CHM(e);const d=n.MAs(7),h=n.oxw(4);return n.KtG(h.chosenYearHandler(r,d))}),n.qZA()()}if(2&i){const e=n.MAs(7),t=n.oxw(4);n.xp6(2),n.Oqu(n.lcZ(3,5,"PUBLICATION_DETAIL.LIST.YEAR")),n.xp6(2),n.Q6J("max",t.maxYear)("matDatepicker",e)("formControl",t.yearControl),n.xp6(1),n.Q6J("for",e)}}function HF(i,s){if(1&i&&(n.TgZ(0,"mat-option",33),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.Q6J("value",e.name),n.xp6(1),n.hij(" ",e.name," ")}}function PF(i,s){if(1&i&&(n.TgZ(0,"mat-form-field")(1,"mat-select",31),n.YNc(2,HF,2,2,"mat-option",32),n.qZA()()),2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("formControl",e.categoryControl),n.xp6(1),n.Q6J("ngForOf",e.categories)}}function RF(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.LIST.RANK_ERROR")," "))}function kF(i,s){if(1&i&&(n.TgZ(0,"mat-form-field"),n._UZ(1,"input",34),n.YNc(2,RF,3,3,"mat-error",1),n.qZA()),2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("formControl",e.rankControl),n.xp6(1),n.Q6J("ngIf",e.rankControl.invalid)}}function LF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",18)(1,"input",35),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw(4);return n.KtG(d.publication.isbn=r)}),n.qZA()()}if(2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("ngModel",e.publication.isbn)}}function IF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",18)(1,"input",35),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw(4);return n.KtG(d.publication.doi=r)}),n.qZA()()}if(2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("ngModel",e.publication.doi)}}function OF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",18)(1,"textarea",36),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw(4);return n.KtG(d.publication.main=r)}),n.qZA()()}if(2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("ngModel",e.publication.main)}}function BF(i,s){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,DF,8,7,"mat-form-field",25),n.YNc(2,PF,3,2,"mat-form-field",1),n.YNc(3,kF,3,2,"mat-form-field",1),n.YNc(4,LF,2,1,"mat-form-field",6),n.YNc(5,IF,2,1,"mat-form-field",6),n.YNc(6,OF,2,1,"mat-form-field",6),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngIf","Year"===e.key),n.xp6(1),n.Q6J("ngIf","Category"===e.key),n.xp6(1),n.Q6J("ngIf","Rank"===e.key),n.xp6(1),n.Q6J("ngIf","ISBN / ISSN"===e.key),n.xp6(1),n.Q6J("ngIf","DOI"===e.key),n.xp6(1),n.Q6J("ngIf","Full cite"===e.key)}}function VF(i,s){if(1&i&&(n.TgZ(0,"td",23),n.YNc(1,AF,10,9,"span",1),n.YNc(2,vF,3,4,"span",1),n.YNc(3,TF,2,1,"span",1),n.YNc(4,EF,3,2,"div",1),n.YNc(5,BF,7,6,"div",1),n.qZA()),2&i){const e=s.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("ngIf","Id / Origin"===e.key),n.xp6(1),n.Q6J("ngIf","Create date"===e.key),n.xp6(1),n.Q6J("ngIf","Created by"===e.key),n.xp6(1),n.Q6J("ngIf",!t.editing),n.xp6(1),n.Q6J("ngIf",t.editing)}}function jF(i,s){1&i&&n._UZ(0,"tr",37)}function UF(i,s){if(1&i&&(n.TgZ(0,"div")(1,"div",3),n.YNc(2,fF,2,1,"h3",4),n.YNc(3,mF,4,3,"button",5),n.YNc(4,_F,3,2,"mat-form-field",6),n.YNc(5,bF,4,4,"button",7),n.qZA(),n.TgZ(6,"table",8),n.ynx(7,9),n.YNc(8,wF,1,0,"th",10),n.YNc(9,yF,2,1,"td",11),n.BQk(),n.ynx(10,12),n.YNc(11,CF,1,0,"th",10),n.YNc(12,VF,6,5,"td",13),n.BQk(),n.YNc(13,jF,1,0,"tr",14),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Q6J("ngIf",!e.editing),n.xp6(1),n.Q6J("ngIf",!e.editing&&!e.publication.locked&&!e.similarityCheck),n.xp6(1),n.Q6J("ngIf",e.editing),n.xp6(1),n.Q6J("ngIf",e.editing),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(7),n.Q6J("matRowDefColumns",e.displayedColumns)}}const _H=lf,NF={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let FF=(()=>{class i{constructor(e,t,r){this.cabinetService=e,this.notificator=t,this.translate=r,this.categories=[],this.similarityCheck=!1,this.edited=new n.vpe,this.loading=!1,this.dataSource=null,this.displayedColumns=["key","value"],this.map=[],this.editing=!1}ngOnInit(){this.loading=!0,this.keys=["Id / Origin","Year","Category","Rank","ISBN / ISSN","DOI","Full cite","Created by","Create date"],this.values=[this.publication.id.toString(),this.publication.year.toString(),this.publication.categoryName,this.publication.rank.toString(),this.publication.isbn,this.publication.doi,this.publication.main,this.publication.createdBy,this.publication.createdDate];for(let e=0;ed.name===this.categoryControl.value).id,t=this.yearControl.value.year();this.cabinetService.updatePublication({publication:{id:this.publication.id,beanName:this.publication.beanName,externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.titleControl.value,year:t,main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:e,rank:this.rankControl.value,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate}}).subscribe({next:()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(d=>{this.notificator.showSuccess(d),this.edited.emit(!0),this.loading=!1})},error:()=>this.loading=!1})}chosenYearHandler(e,t){const r=this.yearControl.value;r.year(e.year()),this.yearControl.setValue(r),t.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn),n.Y36(Ji),n.Y36(bn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publication-detail-list"]],inputs:{publication:"publication",categories:"categories",similarityCheck:"similarityCheck"},outputs:{edited:"edited"},features:[n._Bn([{provide:Un,useClass:u_,deps:[_o]},{provide:_i,useValue:NF}])],decls:3,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex"],["class","bigger-font w-75 mr-2",4,"ngIf"],["class","ml-auto","mat-icon-button","","matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["class","w-75",4,"ngIf"],["class","ml-auto","mat-icon-button","","matTooltipPosition","above",3,"disabled","matTooltip","click",4,"ngIf"],["mat-table","",1,"w-100","layout",3,"dataSource"],["matColumnDef","key"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"bigger-font","w-75","mr-2"],["mat-icon-button","","matTooltipPosition","above",1,"ml-auto",3,"matTooltip","click"],[1,"big-icon"],[1,"w-75"],["matInput","",1,"bigger-font","fix-height",3,"formControl"],["mat-icon-button","","matTooltipPosition","above",1,"ml-auto",3,"disabled","matTooltip","click"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],[1,"bold"],["class","mr-2",3,"click",4,"ngIf"],[1,"mr-2",3,"click"],["matInput","","readonly","",1,"disable",3,"max","matDatepicker","formControl"],["matSuffix","",3,"for"],["startView","multi-year",3,"yearSelected"],["sdp",""],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","",3,"formControl"],["matInput","",3,"ngModel","ngModelChange"],["matInput","",1,"fix-height",3,"ngModel","ngModelChange"],["mat-row",""]],template:function(e,t){1&e&&(n.TgZ(0,"div"),n.YNc(1,pF,1,0,"mat-spinner",0),n.YNc(2,UF,14,6,"div",1),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.sg,x.O5,Ot,Ln,Do,Bs,Vs,Os,Ho,js,Us,Po,Sn,es,ar,ta,bu,Ra,Gi,Wi,Uc,_r,CM,c_,AM,ks,Jc,Al,x.uU,it],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}.big-icon[_ngcontent-%COMP%]{font-size:40px}.fix-height[_ngcontent-%COMP%]{min-height:6ch}.layout[_ngcontent-%COMP%]{table-layout:fixed}"]}),i})();const YF=function(){return["select","id","name","organization","email"]};function qF(i,s){if(1&i&&n._UZ(0,"perun-web-apps-authors-list",13),2&i){const e=n.oxw(3);n.Q6J("authors",e.authors)("selection",e.selection)("disableRouting",!0)("tableId",e.tableIdAuthors)("displayedColumns",n.DdM(5,YF))}}function zF(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"DIALOGS.ADD_AUTHORS.SEARCH_INFO")," "))}function GF(i,s){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,qF,1,6,"perun-web-apps-authors-list",11),n.YNc(2,zF,3,3,"perun-web-apps-alert",12),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",e.firstSearchDone),n.xp6(1),n.Q6J("ngIf",!e.firstSearchDone)}}function WF(i,s){1&i&&n._UZ(0,"mat-spinner",15)}function $F(i,s){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,GF,3,2,"div",6),n.YNc(2,WF,1,0,"mat-spinner",7),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngIf",!e.searchLoading),n.xp6(1),n.Q6J("ngIf",e.searchLoading)}}function JF(i,s){1&i&&n._UZ(0,"mat-spinner",15)}let ZF=(()=>{class i{constructor(e,t,r,d,h){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetService=d,this.translate=h,this.searchControl=new Nn(""),this.loading=!1,this.searchLoading=!1,this.firstSearchDone=!1,this.authors=[],this.alreadyAddedAuthors=[],this.tableIdAuthors="67",this.selection=new Kn(!0,[]),h.get("DIALOGS.ADD_AUTHORS.SUCCESS_MESSAGE").subscribe(c=>this.successMessage=c),this.publicationId=t.publicationId,this.alreadyAddedAuthors=t.alreadyAddedAuthors}ngOnInit(){this.searchControl=new Nn("",[kn.required,kn.pattern(".*[\\S]+.*")])}onSearchByString(){!this.searchLoading&&""!==this.searchControl.value.trim()&&(this.searchLoading=!0,this.cabinetService.findNewAuthors(this.searchControl.value).subscribe({next:e=>{e=e.filter(t=>!this.alreadyAddedAuthors.map(r=>r.id).includes(t.id)),this.authors=e,this.firstSearchDone=!0,this.searchLoading=!1},error:()=>{this.searchLoading=!1}}))}onAdd(){if(this.loading=!0,this.selection.selected.length){const e=this.selection.selected.pop();this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publicationId,userId:e.id}}).subscribe({next:()=>{this.onAdd()},error:()=>this.loading=!1})}else this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(Ji),n.Y36(wn),n.Y36(bn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-authors-dialog"]],decls:24,vars:20,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"authors","selection","disableRouting","tableId","displayedColumns",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"authors","selection","disableRouting","tableId","displayedColumns"],["alert_type","info"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",2)(5,"mat-form-field",3)(6,"label")(7,"input",4),n.NdJ("keyup.enter",function(){return t.onSearchByString()}),n.ALo(8,"translate"),n.qZA()(),n.TgZ(9,"mat-error"),n._uU(10),n.ALo(11,"translate"),n.qZA()(),n.TgZ(12,"button",5),n.NdJ("click",function(){return t.onSearchByString()}),n.TgZ(13,"mat-icon"),n._uU(14,"search"),n.qZA()(),n.YNc(15,$F,3,2,"div",6),n.qZA(),n.YNc(16,JF,1,0,"mat-spinner",7),n.TgZ(17,"div",8)(18,"button",9),n.NdJ("click",function(){return t.onCancel()}),n._uU(19),n.ALo(20,"translate"),n.qZA(),n.TgZ(21,"button",10),n.NdJ("click",function(){return t.onAdd()}),n._uU(22),n.ALo(23,"translate"),n.qZA()()()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,10,"DIALOGS.ADD_AUTHORS.TITLE")),n.xp6(5),n.s9C("placeholder",n.lcZ(8,12,"DIALOGS.ADD_AUTHORS.SEARCH_PLACEHOLDER")),n.Q6J("formControl",t.searchControl),n.xp6(3),n.hij(" ",n.lcZ(11,14,"DIALOGS.ADD_AUTHORS.EMPTY_SEARCH_MESSAGE")," "),n.xp6(2),n.Q6J("disabled",t.searchLoading||""===t.searchControl.value.trim()),n.xp6(3),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(3),n.hij(" ",n.lcZ(20,16,"DIALOGS.ADD_AUTHORS.CANCEL")," "),n.xp6(2),n.Q6J("disabled",0===t.selection.selected.length||t.loading),n.xp6(1),n.hij(" ",n.lcZ(23,18,"DIALOGS.ADD_AUTHORS.ADD")," "))},dependencies:[x.O5,Ot,Ln,Oi,$i,Bi,Sn,es,ar,Ra,Gi,Wi,_r,na,PM,it],styles:[".top-margin[_ngcontent-%COMP%]{margin-top:15px}.adjust-width[_ngcontent-%COMP%]{width:300px}"]}),i})();function QF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",6),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onAddAuthors())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function KF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onRemoveAuthors())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("disabled",0===e.selection.selected.length||e.publication.locked),n.xp6(1),n.hij(" ",n.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function XF(i,s){1&i&&n._UZ(0,"mat-spinner",8)}const e3=function(){return["id","name","organization","email"]},t3=function(){return["select","id","name","organization","email"]};function n3(i,s){if(1&i&&n._UZ(0,"perun-web-apps-authors-list",9),2&i){const e=n.oxw();n.Q6J("authors",e.publication.authors)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)("disableRouting",e.disableRouting)("displayedColumns",e.publication.locked?n.DdM(6,e3):n.DdM(7,t3))}}let bH=(()=>{class i{constructor(e,t,r,d,h){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=d,this.storeService=h,this.selection=new Kn(!0,[]),this.disableRouting=!1,this.similarityCheck=!1,this.yourselfAsAnAuthor=new n.vpe,this.filterValue="",this.loading=!1,this.tableId="67"}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findAuthorsByPublicationId(this.publication.id).subscribe(e=>{this.yourselfAsAnAuthor.emit(e.some(t=>t.id===this.storeService.getPerunPrincipal().userId)),this.publication.authors=e,this.selection.clear(),this.loading=!1})}onAddAuthors(){const e=Jn();e.width="800px",e.data={publicationId:this.publication.id,alreadyAddedAuthors:this.publication.authors},this.dialog.open(ZF,e).afterClosed().subscribe(r=>{r&&(this.selection.clear(),this.refresh())})}onRemoveAuthors(){const e=Jn();e.width="800px",e.data={items:this.selection.selected.map(r=>`${r.titleBefore?r.titleBefore:""} ${r.firstName?r.firstName:""} ${r.lastName?r.lastName:""} ${r.titleAfter?r.titleAfter:""}`),title:"DIALOGS.REMOVE_AUTHORS.TITLE",description:"DIALOGS.REMOVE_AUTHORS.DESCRIPTION",theme:"user-theme",type:"remove",showAsk:!0},this.dialog.open(Ox,e).afterClosed().subscribe(r=>{r&&this.removeAuthors(this.selection.selected)})}removeAuthors(e){if(this.loading=!0,e.length){const t=e.pop();this.cabinetService.deleteAuthorship(this.publication.id,t.id).subscribe(()=>{this.removeAuthors(e)},()=>this.loading=!1)}else this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_AUTHORS.SUCCESS_MESSAGE")),this.selection.clear(),this.refresh()}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(oi),n.Y36(wn),n.Y36(Ji),n.Y36(bn),n.Y36(yi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-authors"]],inputs:{publication:"publication",selection:"selection",disableRouting:"disableRouting",similarityCheck:"similarityCheck"},outputs:{yourselfAsAnAuthor:"yourselfAsAnAuthor"},decls:6,vars:5,consts:[[1,"'user-theme'"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","selection","filterValue","tableId","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"authors","selection","filterValue","tableId","disableRouting","displayedColumns"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,QF,3,3,"button",1),n.YNc(2,KF,3,4,"button",2),n.TgZ(3,"perun-web-apps-immediate-filter",3),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.qZA(),n.YNc(4,XF,1,0,"mat-spinner",4),n.YNc(5,n3,1,8,"perun-web-apps-authors-list",5),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",!t.publication.locked),n.xp6(1),n.Q6J("ngIf",!t.publication.locked&&!t.similarityCheck),n.xp6(1),n.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Sn,h_,PM,it]}),i})();function r3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"th",17)(1,"mat-checkbox",18),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(r?d.masterToggle():null)}),n.ALo(2,"translate"),n.ALo(3,"masterCheckboxLabel"),n.qZA()()}if(2&i){const e=n.oxw().ngIf,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.lcZ(2,3,n.lcZ(3,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}const a3=function(i){return{name:i}};function s3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",19)(1,"mat-checkbox",20),n.NdJ("change",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.selection.toggle(h):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(7,a3,e.name)))("checked",t.selection.isSelected(e))}}function o3(i,s){1&i&&(n.ynx(0,14),n.YNc(1,r3,4,7,"th",15),n.YNc(2,s3,4,9,"td",16),n.BQk())}function l3(i,s){1&i&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function c3(i,s){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.id," ")}}function d3(i,s){1&i&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function u3(i,s){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.uIk("data-cy",e.name),n.xp6(1),n.Oqu(e.name)}}function h3(i,s){1&i&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function p3(i,s){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.contact)}}function f3(i,s){1&i&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function m3(i,s){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.type)}}function g3(i,s){1&i&&n._UZ(0,"tr",24)}function _3(i,s){1&i&&n._UZ(0,"tr",25)}function b3(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function w3(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}const y3=function(i){return{all:i}};let C3=(()=>{class i{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.owners=[],this.selection=new Kn(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=jl}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"contact":return e.contact;case"type":return e.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Eo(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>So(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new zl(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(dn),n.Y36($p))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[n.TTD],decls:21,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,o3,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,l3,3,3,"th",5),n.YNc(7,c3,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,d3,3,3,"th",5),n.YNc(10,u3,2,2,"td",8),n.BQk(),n.ynx(11,9),n.YNc(12,h3,3,3,"th",5),n.YNc(13,p3,2,1,"td",8),n.BQk(),n.ynx(14,10),n.YNc(15,f3,3,3,"th",5),n.YNc(16,m3,2,1,"td",8),n.BQk(),n.YNc(17,g3,1,0,"tr",11),n.YNc(18,_3,1,0,"tr",12),n.qZA()()(),n.YNc(19,b3,3,3,"perun-web-apps-alert",13),n.YNc(20,w3,3,3,"perun-web-apps-alert",13)),2&e&&(n.Q6J("hidden",0===t.owners.length||0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(13,y3,n.xi3(4,10,t.dataSource,t.selection.selected.length))),n.xp6(14),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",!t.owners.length),n.xp6(1),n.Q6J("ngIf",!t.dataSource.filteredData.length&&t.owners.length))},dependencies:[x.O5,ld,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,na,as,it,qC,d_,zC]}),i})();function A3(i,s){1&i&&n._UZ(0,"mat-spinner",4)}const v3=function(){return["select","id","name","contact"]};function T3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",5)(2,"perun-web-apps-immediate-filter",6),n.NdJ("filter",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.filterValue=r)}),n.qZA(),n._UZ(3,"perun-web-apps-owners-list",7),n.qZA(),n.TgZ(4,"div",8)(5,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(9),n.ALo(10,"translate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(2),n.Q6J("placeholder","DIALOGS.ADD_THANKS.FILTER"),n.xp6(1),n.Q6J("owners",e.owners)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",n.DdM(13,v3))("selection",e.selected),n.xp6(3),n.hij(" ",n.lcZ(7,9,"DIALOGS.ADD_THANKS.CANCEL")," "),n.xp6(2),n.Q6J("disabled",0===e.selected.selected.length||e.loading),n.xp6(1),n.hij(" ",n.lcZ(10,11,"DIALOGS.ADD_THANKS.ADD")," ")}}let x3=(()=>{class i{constructor(e,t,r,d,h,c,o){this.dialogRef=e,this.data=t,this.ownersManagerService=r,this.storeService=d,this.notificator=h,this.translate=c,this.cabinetManagerService=o,this.selected=new Kn(!0,[]),this.tableId="73"}ngOnInit(){this.loading=!0;const e=this.storeService.getProperty("allowed_owners_for_thanks");this.ownersManagerService.getAllOwners().subscribe(t=>{this.owners=0!==e.length?t.filter(r=>e.includes(String(r.id))):t,this.owners=this.owners.filter(r=>!this.data.thanks.map(d=>d.ownerId).includes(r.id)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,0===this.selected.selected.length?this.translate.get("DIALOGS.ADD_THANKS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)}):this.cabinetManagerService.createThanks({thanks:{publicationId:this.data.id,ownerId:this.selected.selected.pop().id,createdBy:this.storeService.getPerunPrincipal().actor,createdByUid:this.storeService.getPerunPrincipal().userId,createdDate:Date.now().toString(),id:0,beanName:"Thanks"}}).subscribe(()=>{this.onSubmit()},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(Bo),n.Y36(yi),n.Y36(Ji),n.Y36(bn),n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-thanks-dialog"]],decls:6,vars:5,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"owners","filterValue","tableId","displayedColumns","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,A3,1,0,"mat-spinner",2),n.YNc(5,T3,11,14,"div",3),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,3,"DIALOGS.ADD_THANKS.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Oi,$i,Bi,Sn,h_,C3,it]}),i})();function M3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"th",16)(1,"mat-checkbox",17),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(r?d.masterToggle():null)}),n.ALo(2,"translate"),n.ALo(3,"masterCheckboxLabel"),n.qZA()()}if(2&i){const e=n.oxw().ngIf,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.lcZ(2,3,n.lcZ(3,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}const S3=function(i){return{name:i}};function E3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",18)(1,"mat-checkbox",19),n.NdJ("change",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.selection.toggle(h):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(7,S3,e.ownerName)))("checked",t.selection.isSelected(e))}}function D3(i,s){1&i&&(n.ynx(0,13),n.YNc(1,M3,4,7,"th",14),n.YNc(2,E3,4,9,"td",15),n.BQk())}function H3(i,s){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"THANKS_LIST.ID")))}function P3(i,s){if(1&i&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.ownerId)}}function R3(i,s){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"THANKS_LIST.NAME")," "))}function k3(i,s){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.ownerName)}}function L3(i,s){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"THANKS_LIST.CREATED_BY")," "))}function I3(i,s){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.createdBy)}}function O3(i,s){1&i&&n._UZ(0,"tr",23)}function B3(i,s){1&i&&n._UZ(0,"tr",24)}function V3(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function j3(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"THANKS_LIST.NO_THANKS"),"\n"))}const U3=function(i){return{all:i}};let N3=(()=>{class i{constructor(e){this.tableCheckbox=e,this.thanks=[],this.filterValue="",this.displayedColumns=["select","id","name","createdBy"],this.pageSizeOptions=jl,this.selection=new Kn(!0,[])}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.ownerId.toString();case"name":return e.ownerName;default:return e[t]}}ngOnChanges(){this.dataSource=new zl(this.thanks),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Eo(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>So(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($p))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-thanks-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{thanks:"thanks",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions",selection:"selection"},features:[n.TTD],decls:18,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,D3,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,H3,3,3,"th",5),n.YNc(7,P3,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,R3,3,3,"th",5),n.YNc(10,k3,2,1,"td",8),n.BQk(),n.ynx(11,9),n.YNc(12,L3,3,3,"th",5),n.YNc(13,I3,2,1,"td",8),n.BQk(),n.YNc(14,O3,1,0,"tr",10),n.YNc(15,B3,1,0,"tr",11),n.qZA()()(),n.YNc(16,V3,3,3,"perun-web-apps-alert",12),n.YNc(17,j3,3,3,"perun-web-apps-alert",12)),2&e&&(n.Q6J("hidden",0===t.thanks.length||0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(13,U3,n.xi3(4,10,t.dataSource,t.selection.selected.length))),n.xp6(11),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0!==t.thanks.length&&0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("ngIf",0===t.thanks.length))},dependencies:[x.O5,ld,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,na,as,it,qC,d_,zC]}),i})();function F3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",6),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onAddThanks())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function Y3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onRemoveThanks())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("disabled",0===e.selection.selected.length),n.xp6(1),n.hij(" ",n.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function q3(i,s){1&i&&n._UZ(0,"mat-spinner",8)}const z3=function(){return["id","name","createdBy"]},G3=function(){return["select","id","name","createdBy"]};function W3(i,s){if(1&i&&n._UZ(0,"perun-web-apps-thanks-list",9),2&i){const e=n.oxw();n.Q6J("thanks",e.publication.thanks)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",e.publication.locked?n.DdM(5,z3):n.DdM(6,G3))("selection",e.selection)}}let wH=(()=>{class i{constructor(e,t,r,d){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=d,this.selection=new Kn(!0,[]),this.similarityCheck=!1,this.tableId="70",this.loading=!1,this.filterValue=""}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findPublicationById(this.publication.id).subscribe(e=>{this.publication=e,this.selection.clear(),this.loading=!1})}onAddThanks(){const e=Jn();e.width="800px",e.data=this.publication,this.dialog.open(x3,e).afterClosed().subscribe(r=>{r&&this.refresh()})}onRemoveThanks(){const e=Jn();e.width="450px",e.data={items:this.selection.selected.map(r=>r.ownerName),title:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_TITLE",description:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_DESCRIPTION",theme:"user-theme",type:"remove",showAsk:!0},this.dialog.open(Ox,e).afterClosed().subscribe(r=>{r&&(this.loading=!0,this.removeThank())})}removeThank(){0===this.selection.selected.length?this.translate.get("PUBLICATION_DETAIL.REMOVE_THANKS_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.refresh()}):this.cabinetService.deleteThanks(this.selection.selected.pop().id).subscribe(()=>{this.removeThank()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(oi),n.Y36(wn),n.Y36(Ji),n.Y36(bn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-thanks"]],inputs:{publication:"publication",selection:"selection",similarityCheck:"similarityCheck"},decls:6,vars:5,consts:[[1,"'user-theme'"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"thanks","filterValue","tableId","displayedColumns","selection",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"thanks","filterValue","tableId","displayedColumns","selection"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,F3,3,3,"button",1),n.YNc(2,Y3,3,4,"button",2),n.TgZ(3,"perun-web-apps-immediate-filter",3),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.qZA(),n.YNc(4,q3,1,0,"mat-spinner",4),n.YNc(5,W3,1,7,"perun-web-apps-thanks-list",5),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",!t.publication.locked&&!t.similarityCheck),n.xp6(1),n.Q6J("ngIf",!t.publication.locked&&!t.similarityCheck),n.xp6(1),n.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Sn,h_,N3,it]}),i})();function $3(i,s){1&i&&n._UZ(0,"mat-spinner",3)}function J3(i,s){1&i&&(n.TgZ(0,"h1",13)(1,"span")(2,"mat-icon",14),n._uU(3,"assignment_ind"),n.qZA(),n._uU(4),n.ALo(5,"translate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,"AUTHORS_PAGE.TITLE")," "))}function Z3(i,s){1&i&&(n.TgZ(0,"h1",13),n._UZ(1,"mat-icon",15),n.TgZ(2,"span",16),n._uU(3),n.ALo(4,"translate"),n.qZA()()),2&i&&(n.xp6(3),n.Oqu(n.lcZ(4,1,"ALL_PUBLICATIONS.TITLE")))}function Q3(i,s){1&i&&(n.TgZ(0,"h1",13)(1,"span")(2,"mat-icon",14),n._uU(3,"local_library"),n.qZA(),n._uU(4),n.ALo(5,"translate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,"MY_PUBLICATIONS.TITLE")," "))}function K3(i,s){if(1&i&&(n.TgZ(0,"h5",17),n._uU(1),n.ALo(2,"userFullName"),n.ALo(3,"translate"),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.AsE(" ",n.lcZ(2,2,e.mainAuthor),"",n.lcZ(3,4,"AUTHOR_DETAIL.TITLE")," ")}}function X3(i,s){1&i&&(n.TgZ(0,"span",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.LOCKED")," "))}function eY(i,s){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1," lock "),n.qZA())}function tY(i,s){1&i&&(n.TgZ(0,"span",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.UNLOCKED")," "))}function nY(i,s){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1," lock_open "),n.qZA())}function iY(i,s){1&i&&n._UZ(0,"mat-spinner",3)}function rY(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-publication-detail-list",19),n.NdJ("edited",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.refreshPublication())}),n.qZA()}if(2&i){const e=n.oxw(2);n.Q6J("publication",e.publication)("categories",e.categories)("similarityCheck",e.similarityCheck)}}function aY(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div"),n.YNc(1,J3,6,3,"h1",4),n.YNc(2,Z3,5,3,"h1",4),n.YNc(3,Q3,6,3,"h1",4),n.YNc(4,K3,4,6,"h5",5),n.TgZ(5,"h5"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"h6"),n._uU(9),n.ALo(10,"translate"),n.TgZ(11,"span",6),n.ALo(12,"translate"),n.TgZ(13,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeLock())}),n.YNc(14,X3,3,3,"span",8),n.YNc(15,eY,2,0,"mat-icon",2),n.YNc(16,tY,3,3,"span",8),n.YNc(17,nY,2,0,"mat-icon",2),n.qZA()()(),n.TgZ(18,"mat-card")(19,"mat-card-content"),n.YNc(20,iY,1,0,"mat-spinner",1),n.YNc(21,rY,1,3,"perun-web-apps-publication-detail-list",9),n.qZA()(),n.TgZ(22,"mat-card",10)(23,"mat-card-title"),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.TgZ(26,"mat-card-content"),n._UZ(27,"perun-web-apps-add-authors",11),n.qZA()(),n.TgZ(28,"mat-card",10)(29,"mat-card-title"),n._uU(30),n.ALo(31,"translate"),n.qZA(),n.TgZ(32,"mat-card-content"),n._UZ(33,"perun-web-apps-add-thanks",12),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngIf","authors"===e.mode),n.xp6(1),n.Q6J("ngIf","all"===e.mode),n.xp6(1),n.Q6J("ngIf","my"===e.mode),n.xp6(1),n.Q6J("ngIf",void 0!==e.mainAuthor),n.xp6(2),n.Oqu(n.lcZ(7,24,"PUBLICATION_DETAIL.TITLE")),n.xp6(3),n.hij(" ",n.lcZ(10,26,"PUBLICATION_DETAIL.LOCK_INFO")," "),n.xp6(2),n.s9C("matTooltip",n.lcZ(12,28,"PUBLICATION_DETAIL.LOCK_DISABLED_TOOLTIP")),n.Q6J("matTooltipDisabled",e.lockAuth),n.xp6(2),n.Q6J("disabled",!e.lockAuth),n.xp6(1),n.Q6J("ngIf",e.publication.locked),n.xp6(1),n.Q6J("ngIf",e.publication.locked),n.xp6(1),n.Q6J("ngIf",!e.publication.locked),n.xp6(1),n.Q6J("ngIf",!e.publication.locked),n.xp6(3),n.Q6J("ngIf",e.loading||e.pubLoading),n.xp6(1),n.Q6J("ngIf",!e.pubLoading&&!e.loading),n.xp6(3),n.hij(" ",n.lcZ(25,30,"PUBLICATION_DETAIL.AUTHORS")," "),n.xp6(3),n.Q6J("publication",e.publication)("selection",e.selectionAuthors)("disableRouting",e.disableRouting)("similarityCheck",e.similarityCheck),n.xp6(3),n.hij(" ",n.lcZ(31,32,"PUBLICATION_DETAIL.ACKNOWLEDGEMENT")," "),n.xp6(3),n.Q6J("publication",e.publication)("selection",e.selectionThanks)("similarityCheck",e.similarityCheck)}}let p_=(()=>{class i{constructor(e,t,r,d,h,c,o,a){this.route=e,this.cabinetService=t,this.matIconRegistry=r,this.domSanitizer=d,this.dialog=h,this.notificator=c,this.translate=o,this.authResolver=a,this.disableRouting=!1,this.similarityCheck=!1,this.loading=!1,this.pubLoading=!1,this.initLoading=!1,this.selectionAuthors=new Kn(!0,[]),this.selectionThanks=new Kn(!0,[]),this.lockAuth=!1,this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.initLoading=!0,this.disableRouting=this.disableRouting||!this.authResolver.isCabinetAdmin(),this.lockAuth=this.authResolver.isCabinetAdmin(),this.publicationId?(this.setMode(),this.loadAllData()):this.route.params.subscribe(e=>{this.publicationId=Number(e.publicationId),this.mainAuthorId=Number(e.authorId),this.setMode(),this.loadAllData()})}setMode(){const e=location.pathname;this.mode=e.includes("my")?"my":e.includes("all")?"all":e.includes("import")?"import":e.includes("create")?"create":"authors"}loadAllData(){this.loading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(e=>{this.publication=e,this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.loading=!1,this.initLoading=!1})})}refreshPublication(){this.pubLoading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(e=>{this.publication=e,this.pubLoading=!1})}changeLock(){this.pubLoading=!0,this.cabinetService.lockPublications({publications:[{id:this.publication.id,beanName:"Publication",externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.publication.title,year:this.publication.year,main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:this.publication.categoryId,rank:this.publication.rank,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate}],lock:!this.publication.locked}).subscribe(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.refreshPublication()})})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Li),n.Y36(wn),n.Y36(xo),n.Y36(On),n.Y36(oi),n.Y36(Ji),n.Y36(bn),n.Y36(dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publication-detail"]],inputs:{publicationId:"publicationId",disableRouting:"disableRouting",similarityCheck:"similarityCheck"},decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["class","page-subtitle d-flex",4,"ngIf"],["class","mb-2",4,"ngIf"],["matTooltipPosition","below",3,"matTooltip","matTooltipDisabled"],["mat-stroked-button","",1,"ml-2",3,"disabled","click"],["class","font-weight-bold",4,"ngIf"],[3,"publication","categories","similarityCheck","edited",4,"ngIf"],[1,"mt-4"],[3,"publication","selection","disableRouting","similarityCheck"],[3,"publication","selection","similarityCheck"],[1,"page-subtitle","d-flex"],[1,"title-icon","align-icon","mr-3"],["svgIcon","publications",1,"icon-size"],[1,"ml-3","mt-1"],[1,"mb-2"],[1,"font-weight-bold"],[3,"publication","categories","similarityCheck","edited"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,$3,1,0,"mat-spinner",1),n.YNc(2,aY,34,34,"div",2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",t.initLoading),n.xp6(1),n.Q6J("ngIf",!t.initLoading))},dependencies:[x.O5,l1,s1,o1,Ot,Ln,Sn,ks,FF,bH,wH,it,HM],styles:[".icon-size[_ngcontent-%COMP%]{width:32px;height:32px}.align-icon[_ngcontent-%COMP%]{vertical-align:text-top}"]}),i})(),RM=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Vl,x.ez]}),i})();function kM(i,s,e){for(let t in s)if(s.hasOwnProperty(t)){const r=s[t];r?i.setProperty(t,r,e?.has(t)?"important":""):i.removeProperty(t)}return i}function cf(i,s){const e=s?"":"none";kM(i.style,{"touch-action":s?"":"none","-webkit-user-drag":s?"":"none","-webkit-tap-highlight-color":s?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function yH(i,s,e){kM(i.style,{position:s?"":"fixed",top:s?"":"0",opacity:s?"":"0",left:s?"":"-999em"},e)}function GC(i,s){return s&&"none"!=s?i+" "+s:i}function CH(i){const s=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*s}function LM(i,s){return i.getPropertyValue(s).split(",").map(t=>t.trim())}function IM(i){const s=i.getBoundingClientRect();return{top:s.top,right:s.right,bottom:s.bottom,left:s.left,width:s.width,height:s.height,x:s.x,y:s.y}}function OM(i,s,e){const{top:t,bottom:r,left:d,right:h}=i;return e>=t&&e<=r&&s>=d&&s<=h}function f_(i,s,e){i.top+=s,i.bottom=i.top+i.height,i.left+=e,i.right=i.left+i.width}function AH(i,s,e,t){const{top:r,right:d,bottom:h,left:c,width:o,height:a}=i,l=o*s,u=a*s;return t>r-u&&tc-l&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:IM(e)})})}handleScroll(s){const e=ya(s),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let d,h;if(e===this._document){const a=this.getViewportScrollPosition();d=a.top,h=a.left}else d=e.scrollTop,h=e.scrollLeft;const c=r.top-d,o=r.left-h;return this.positions.forEach((a,l)=>{a.clientRect&&e!==l&&e.contains(l)&&f_(a.clientRect,c,o)}),r.top=d,r.left=h,{top:c,left:o}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function TH(i){const s=i.cloneNode(!0),e=s.querySelectorAll("[id]"),t=i.nodeName.toLowerCase();s.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const o=this._getTargetHandle(c);o&&!this._disabledHandles.has(o)&&!this.disabled&&this._initializeDragSequence(o,c)}else this.disabled||this._initializeDragSequence(this._rootElement,c)},this._pointerMove=c=>{const o=this._getPointerPositionOnPage(c);if(!this._hasStartedDragging){if(Math.abs(o.x-this._pickupPositionOnPage.x)+Math.abs(o.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const m=Date.now()>=this._dragStartTime+this._getDragStartDelay(c),g=this._dropContainer;if(!m)return void this._endDragSequence(c);(!g||!g.isDragging()&&!g.isReceiving())&&(c.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(c)))}return}c.preventDefault();const a=this._getConstrainedPointerPosition(o);if(this._hasMoved=!0,this._lastKnownPointerPosition=o,this._updatePointerDirectionDelta(a),this._dropContainer)this._updateActiveDropContainer(a,o);else{const l=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=a.x-l.x+this._passiveTransform.x,u.y=a.y-l.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:a,event:c,distance:this._getDragDistance(a),delta:this._pointerDirectionDelta})})},this._pointerUp=c=>{this._endDragSequence(c)},this._nativeDragStart=c=>{if(this._handles.length){const o=this._getTargetHandle(c);o&&!this._disabledHandles.has(o)&&!this.disabled&&c.preventDefault()}else this.disabled||c.preventDefault()},this.withRootElement(s).withParent(e.parentDragRef||null),this._parentPositions=new vH(t),h.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(s){const e=Oe(s);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>cf(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(s){this._handles=s.map(t=>ai(t)),this._handles.forEach(t=>cf(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(s){return this._previewTemplate=s,this}withPlaceholderTemplate(s){return this._placeholderTemplate=s,this}withRootElement(s){const e=ai(s);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,WC),e.addEventListener("touchstart",this._pointerDown,EH),e.addEventListener("dragstart",this._nativeDragStart,WC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(s){return this._boundaryElement=s?ai(s):null,this._resizeSubscription.unsubscribe(),s&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(s){return this._parentDragRef=s,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(s){!this._disabledHandles.has(s)&&this._handles.indexOf(s)>-1&&(this._disabledHandles.add(s),cf(s,!0))}enableHandle(s){this._disabledHandles.has(s)&&(this._disabledHandles.delete(s),cf(s,this.disabled))}withDirection(s){return this._direction=s,this}_withDropContainer(s){this._dropContainer=s}getFreeDragPosition(){const s=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:s.x,y:s.y}}setFreeDragPosition(s){return this._activeTransform={x:0,y:0},this._passiveTransform.x=s.x,this._passiveTransform.y=s.y,this._dropContainer||this._applyRootElementTransform(s.x,s.y),this}withPreviewContainer(s){return this._previewContainer=s,this}_sortFromLastPointerPosition(){const s=this._lastKnownPointerPosition;s&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(s),s)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(s){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:s}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(s),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(s);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:s})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(s){m_(s)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,d=this._placeholder=this._createPlaceholderElement(),h=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();r.insertBefore(h,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),yH(t,!1,BM),this._document.body.appendChild(r.replaceChild(d,t)),this._getPreviewInsertionPoint(r,c).appendChild(this._preview),this.started.next({source:this,event:s}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:s}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(s,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=m_(e),d=!r&&0!==e.button,h=this._rootElement,c=ya(e),o=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),a=r?Ss(e):Qf(e);if(c&&c.draggable&&"mousedown"===e.type&&e.preventDefault(),t||d||o||a)return;if(this._handles.length){const p=h.style;this._rootElementTapHighlight=p.webkitTapHighlightColor||"",p.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(p=>this._updateOnScroll(p)),this._boundaryElement&&(this._boundaryRect=IM(this._boundaryElement));const l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,s,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(s){yH(this._rootElement,!0,BM),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(s),d=this._getDragDistance(r),h=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:d,dropPoint:r,event:s}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:h,distance:d,dropPoint:r,event:s}),e.drop(this,t,this._initialIndex,this._initialContainer,h,d,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:s,y:e},{x:t,y:r}){let d=this._initialContainer._getSiblingContainerFromPosition(this,s,e);!d&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(s,e)&&(d=this._initialContainer),d&&d!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=d,this._dropContainer.enter(this,s,e,d===this._initialContainer&&d.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:d,currentIndex:d.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,s,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(s,e):this._applyPreviewTransform(s-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const s=this._previewTemplate,e=this.previewClass,t=s?s.template:null;let r;if(t&&s){const d=s.matchSize?this._initialClientRect:null,h=s.viewContainer.createEmbeddedView(t,s.context);h.detectChanges(),r=HH(h,this._document),this._previewRef=h,s.matchSize?PH(r,d):r.style.transform=$C(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=TH(this._rootElement),PH(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return kM(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},BM),cf(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(d=>r.classList.add(d)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const s=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(s.left,s.top);const e=function oY(i){const s=getComputedStyle(i),e=LM(s,"transition-property"),t=e.find(c=>"transform"===c||"all"===c);if(!t)return 0;const r=e.indexOf(t),d=LM(s,"transition-duration"),h=LM(s,"transition-delay");return CH(d[r])+CH(h[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=h=>{(!h||ya(h)===this._preview&&"transform"===h.propertyName)&&(this._preview?.removeEventListener("transitionend",r),t(),clearTimeout(d))},d=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const s=this._placeholderTemplate,e=s?s.template:null;let t;return e?(this._placeholderRef=s.viewContainer.createEmbeddedView(e,s.context),this._placeholderRef.detectChanges(),t=HH(this._placeholderRef,this._document)):t=TH(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(s,e,t){const r=e===this._rootElement?null:e,d=r?r.getBoundingClientRect():s,h=m_(t)?t.targetTouches[0]:t,c=this._getViewportScrollPosition();return{x:d.left-s.left+(h.pageX-d.left-c.left),y:d.top-s.top+(h.pageY-d.top-c.top)}}_getPointerPositionOnPage(s){const e=this._getViewportScrollPosition(),t=m_(s)?s.touches[0]||s.changedTouches[0]||{pageX:0,pageY:0}:s,r=t.pageX-e.left,d=t.pageY-e.top;if(this._ownerSVGElement){const h=this._ownerSVGElement.getScreenCTM();if(h){const c=this._ownerSVGElement.createSVGPoint();return c.x=r,c.y=d,c.matrixTransform(h.inverse())}}return{x:r,y:d}}_getConstrainedPointerPosition(s){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(s,this,this._initialClientRect,this._pickupPositionInElement):s;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:d,y:h}=this._pickupPositionInElement,c=this._boundaryRect,{width:o,height:a}=this._getPreviewRect(),l=c.top+h,u=c.bottom-(a-h);t=DH(t,c.left+d,c.right-(o-d)),r=DH(r,l,u)}return{x:t,y:r}}_updatePointerDirectionDelta(s){const{x:e,y:t}=s,r=this._pointerDirectionDelta,d=this._pointerPositionAtLastDirectionChange,h=Math.abs(e-d.x),c=Math.abs(t-d.y);return h>this._config.pointerDirectionChangeThreshold&&(r.x=e>d.x?1:-1,d.x=e),c>this._config.pointerDirectionChangeThreshold&&(r.y=t>d.y?1:-1,d.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const s=this._handles.length>0||!this.isDragging();s!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=s,cf(this._rootElement,s))}_removeRootElementListeners(s){s.removeEventListener("mousedown",this._pointerDown,WC),s.removeEventListener("touchstart",this._pointerDown,EH),s.removeEventListener("dragstart",this._nativeDragStart,WC)}_applyRootElementTransform(s,e){const t=$C(s,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=GC(t,this._initialTransform)}_applyPreviewTransform(s,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,r=$C(s,e);this._preview.style.transform=GC(r,t)}_getDragDistance(s){const e=this._pickupPositionOnPage;return e?{x:s.x-e.x,y:s.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:s,y:e}=this._passiveTransform;if(0===s&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const d=r.left-t.left,h=t.right-r.right,c=r.top-t.top,o=t.bottom-r.bottom;r.width>t.width?(d>0&&(s+=d),h>0&&(s-=h)):s=0,r.height>t.height?(c>0&&(e+=c),o>0&&(e-=o)):e=0,(s!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:s})}_getDragStartDelay(s){const e=this.dragStartDelay;return"number"==typeof e?e:m_(s)?e.touch:e?e.mouse:0}_updateOnScroll(s){const e=this._parentPositions.handleScroll(s);if(e){const t=ya(s);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&f_(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Bh(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(s,e){const t=this._previewContainer||"global";if("parent"===t)return s;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return ai(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(s){return this._handles.find(e=>s.target&&(s.target===e||e.contains(s.target)))}}function $C(i,s){return`translate3d(${Math.round(i)}px, ${Math.round(s)}px, 0)`}function DH(i,s,e){return Math.max(s,Math.min(e,i))}function m_(i){return"t"===i.type[0]}function HH(i,s){const e=i.rootNodes;if(1===e.length&&e[0].nodeType===s.ELEMENT_NODE)return e[0];const t=s.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function PH(i,s){i.style.width=`${s.width}px`,i.style.height=`${s.height}px`,i.style.transform=$C(s.left,s.top)}function g_(i,s){return Math.max(0,Math.min(s,i))}class hY{constructor(s,e){this._element=s,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(s){this.withItems(s)}sort(s,e,t,r){const d=this._itemPositions,h=this._getItemIndexFromPointerPosition(s,e,t,r);if(-1===h&&d.length>0)return null;const c="horizontal"===this.orientation,o=d.findIndex(y=>y.drag===s),a=d[h],u=a.clientRect,p=o>h?1:-1,m=this._getItemOffsetPx(d[o].clientRect,u,p),g=this._getSiblingOffsetPx(o,d,p),f=d.slice();return function uY(i,s,e){const t=g_(s,i.length-1),r=g_(e,i.length-1);if(t===r)return;const d=i[t],h=r{if(f[j]===y)return;const le=y.drag===s,Be=le?m:g,Mt=le?s.getPlaceholderElement():y.drag.getRootElement();y.offset+=Be,c?(Mt.style.transform=GC(`translate3d(${Math.round(y.offset)}px, 0, 0)`,y.initialTransform),f_(y.clientRect,0,Be)):(Mt.style.transform=GC(`translate3d(0, ${Math.round(y.offset)}px, 0)`,y.initialTransform),f_(y.clientRect,Be,0))}),this._previousSwap.overlaps=OM(u,e,t),this._previousSwap.drag=a.drag,this._previousSwap.delta=c?r.x:r.y,{previousIndex:o,currentIndex:h}}enter(s,e,t,r){const d=null==r||r<0?this._getItemIndexFromPointerPosition(s,e,t):r,h=this._activeDraggables,c=h.indexOf(s),o=s.getPlaceholderElement();let a=h[d];if(a===s&&(a=h[d+1]),!a&&(null==d||-1===d||d-1&&h.splice(c,1),a&&!this._dragDropRegistry.isDragging(a)){const l=a.getRootElement();l.parentElement.insertBefore(o,l),h.splice(d,0,s)}else ai(this._element).appendChild(o),h.push(s);o.style.transform="",this._cacheItemPositions()}withItems(s){this._activeDraggables=s.slice(),this._cacheItemPositions()}withSortPredicate(s){this._sortPredicate=s}reset(){this._activeDraggables.forEach(s=>{const e=s.getRootElement();if(e){const t=this._itemPositions.find(r=>r.drag===s)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(s){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===s)}updateOnScroll(s,e){this._itemPositions.forEach(({clientRect:t})=>{f_(t,s,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const s="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:IM(t)}}).sort((e,t)=>s?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(s,e,t){const r="horizontal"===this.orientation;let d=r?e.left-s.left:e.top-s.top;return-1===t&&(d+=r?e.width-s.width:e.height-s.height),d}_getSiblingOffsetPx(s,e,t){const r="horizontal"===this.orientation,d=e[s].clientRect,h=e[s+-1*t];let c=d[r?"width":"height"]*t;if(h){const o=r?"left":"top",a=r?"right":"bottom";-1===t?c-=h.clientRect[o]-d[a]:c+=d[o]-h.clientRect[a]}return c}_shouldEnterAsFirstChild(s,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const h=t[t.length-1].clientRect;return r?s>=h.right:e>=h.bottom}{const h=t[0].clientRect;return r?s<=h.left:e<=h.top}}_getItemIndexFromPointerPosition(s,e,t,r){const d="horizontal"===this.orientation,h=this._itemPositions.findIndex(({drag:c,clientRect:o})=>{if(c===s)return!1;if(r){const a=d?r.x:r.y;if(c===this._previousSwap.drag&&this._previousSwap.overlaps&&a===this._previousSwap.delta)return!1}return d?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Se.x,this.entered=new Se.x,this.exited=new Se.x,this.dropped=new Se.x,this.sorted=new Se.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Rt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Se.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function sY(i=0,s=lu.z){return i<0&&(i=0),(0,wm.H)(i,i,s)}(0,mm).pipe(Ke(this._stopScrollTimers)).subscribe(()=>{const h=this._scrollNode,c=this.autoScrollStep;1===this._verticalScrollDirection?h.scrollBy(0,-c):2===this._verticalScrollDirection&&h.scrollBy(0,c),1===this._horizontalScrollDirection?h.scrollBy(-c,0):2===this._horizontalScrollDirection&&h.scrollBy(c,0)})},this.element=ai(s),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new vH(t),this._sortStrategy=new hY(this.element,e),this._sortStrategy.withSortPredicate((h,c)=>this.sortPredicate(h,c,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(s,e,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(s)),this._sortStrategy.enter(s,e,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:s,container:this,currentIndex:this.getItemIndex(s)})}exit(s){this._reset(),this.exited.next({item:s,container:this})}drop(s,e,t,r,d,h,c,o={}){this._reset(),this.dropped.next({item:s,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:d,distance:h,dropPoint:c,event:o})}withItems(s){const e=this._draggables;return this._draggables=s,s.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===s.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(s){return this._sortStrategy.direction=s,this}connectedTo(s){return this._siblings=s.slice(),this}withOrientation(s){return this._sortStrategy.orientation=s,this}withScrollableParents(s){const e=ai(this.element);return this._scrollableElements=-1===s.indexOf(e)?[e,...s]:s.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(s){return this._isDragging?this._sortStrategy.getItemIndex(s):this._draggables.indexOf(s)}isReceiving(){return this._activeSiblings.size>0}_sortItem(s,e,t,r){if(this.sortingDisabled||!this._clientRect||!AH(this._clientRect,.05,e,t))return;const d=this._sortStrategy.sort(s,e,t,r);d&&this.sorted.next({previousIndex:d.previousIndex,currentIndex:d.currentIndex,container:this,item:s})}_startScrollingIfNecessary(s,e){if(this.autoScrollDisabled)return;let t,r=0,d=0;if(this._parentPositions.positions.forEach((h,c)=>{c===this._document||!h.clientRect||t||AH(h.clientRect,.05,s,e)&&([r,d]=function fY(i,s,e,t){const r=LH(s,t),d=IH(s,e);let h=0,c=0;if(r){const o=i.scrollTop;1===r?o>0&&(h=1):i.scrollHeight-o>i.clientHeight&&(h=2)}if(d){const o=i.scrollLeft;1===d?o>0&&(c=1):i.scrollWidth-o>i.clientWidth&&(c=2)}return[h,c]}(c,h.clientRect,s,e),(r||d)&&(t=c))}),!r&&!d){const{width:h,height:c}=this._viewportRuler.getViewportSize(),o={width:h,height:c,top:0,right:h,bottom:c,left:0};r=LH(o,e),d=IH(o,s),t=window}t&&(r!==this._verticalScrollDirection||d!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=d,this._scrollNode=t,(r||d)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const s=ai(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=s.msScrollSnapType||s.scrollSnapType||"",s.scrollSnapType=s.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const s=ai(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(s).clientRect}_reset(){this._isDragging=!1;const s=ai(this.element).style;s.scrollSnapType=s.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(s,e){return null!=this._clientRect&&OM(this._clientRect,s,e)}_getSiblingContainerFromPosition(s,e,t){return this._siblings.find(r=>r._canReceive(s,e,t))}_canReceive(s,e,t){if(!this._clientRect||!OM(this._clientRect,e,t)||!this.enterPredicate(s,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const d=ai(this.element);return r===d||d.contains(r)}_startReceiving(s,e){const t=this._activeSiblings;!t.has(s)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(s),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(s){this._activeSiblings.delete(s),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(s=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(s);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const s=Bh(ai(this.element));this._cachedShadowRoot=s||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const s=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,s))}}function LH(i,s){const{top:e,bottom:t,height:r}=i,d=.05*r;return s>=e-d&&s<=e+d?1:s>=t-d&&s<=t+d?2:0}function IH(i,s){const{left:e,right:t,width:r}=i,d=.05*r;return s>=e-d&&s<=e+d?1:s>=t-d&&s<=t+d?2:0}const JC=Ja({passive:!1,capture:!0});let mY=(()=>{class i{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Se.x,this.pointerUp=new Se.x,this.scroll=new Se.x,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,JC)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,JC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=t.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:d=>this.pointerUp.next(d),options:!0}).set("scroll",{handler:d=>this.scroll.next(d),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:JC}),r||this._globalListeners.set("mousemove",{handler:d=>this.pointerMove.next(d),options:JC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((d,h)=>{this._document.addEventListener(h,d.handler,d.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new ln.y(r=>this._ngZone.runOutsideAngular(()=>{const h=c=>{this._activeDragInstances.length&&r.next(c)};return e.addEventListener("scroll",h,!0),()=>{e.removeEventListener("scroll",h,!0)}}))),(0,Mn.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b),n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const gY={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let _Y=(()=>{class i{constructor(e,t,r,d){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=d}createDrag(e,t=gY){return new dY(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new pY(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0),n.LFG(n.R0b),n.LFG(va),n.LFG(mY))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),bY=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[_Y],imports:[Ds]}),i})(),vY=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),PY=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[vY,ht,ht]}),i})(),qY=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Kr,ht,ht]}),i})();new n.OlP("mat-selectsearch-default-options");let JY=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[x.ez,zc,bi,VC,Vl,dC,Ls]]}),i})(),ZY=(()=>{class i extends Qh{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const QY={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let jH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Un,useClass:ZY},{provide:_i,useValue:QY}],imports:[x.ez,VC,yC,Tg,MM,bY,Gs,Lh,TM,Iu,dC,RM,Vl,Ug,bi,Ls,Hl,zc,cC,Kr,iD,F2,PY,vM,qY,hm,Lu,JY,nr,Zg,J0,uH,UL]}),i})();n.B6R(uD,[x.O5,na,Ot,Gv,Zv,Jv,Oi,Bi,hD],[it,rD]),new Date(324721404e5).valueOf();let y6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,bi,Vl,Lh,jH,Gs,Hl,zc,cC,RM]}),i})(),C6=(()=>{class i{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Bu),n.Y36($n))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"button",4),n.NdJ("click",function(){return t.startAuth()}),n._uU(7),n.ALo(8,"translate"),n.TgZ(9,"mat-icon"),n._uU(10," login "),n.qZA()()()()()),2&e&&(n.xp6(4),n.hij(" ",n.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),n.xp6(3),n.hij(" ",n.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Ot,Ln,it],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),i})();function A6(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",8),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let v6=(()=>{class i{constructor(e,t,r){this.authzService=e,this.auth=t,this.router=r,this.usernameCtrl=new Nn(null,[kn.required]),this.passwordCtrl=new Nn(null,[kn.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Va),n.Y36(Bu),n.Y36($n))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl","keyup.enter"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,A6,3,3,"perun-web-apps-alert",3),n.TgZ(7,"mat-form-field",4)(8,"mat-label"),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"input",5),n.NdJ("keyup.enter",function(){return t.startAuth()}),n.qZA(),n.TgZ(12,"mat-error"),n._uU(13),n.ALo(14,"translate"),n.qZA()(),n.TgZ(15,"mat-form-field",4)(16,"mat-label"),n._uU(17),n.ALo(18,"translate"),n.qZA(),n.TgZ(19,"input",6),n.NdJ("keyup.enter",function(){return t.startAuth()}),n.qZA(),n.TgZ(20,"mat-error"),n._uU(21),n.ALo(22,"translate"),n.qZA()(),n.TgZ(23,"button",7),n.NdJ("click",function(){return t.startAuth()}),n._uU(24),n.ALo(25,"translate"),n.TgZ(26,"mat-icon"),n._uU(27," login "),n.qZA()()()()()),2&e&&(n.xp6(4),n.Oqu(n.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),n.xp6(2),n.Q6J("ngIf",t.wrongUsernameOrPassword),n.xp6(3),n.Oqu(n.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),n.xp6(2),n.Q6J("formControl",t.usernameCtrl),n.xp6(2),n.hij(" ",n.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),n.xp6(4),n.Oqu(n.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),n.xp6(2),n.Q6J("formControl",t.passwordCtrl)("type","password"),n.xp6(2),n.hij(" ",n.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),n.xp6(2),n.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),n.xp6(1),n.hij(" ",n.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[x.O5,Ot,Ln,es,ar,ta,Gi,Wi,ns,_r,Ra,na,it],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),i})(),T6=(()=>{class i{transform(e){return e.length>50?e.substring(0,50)+"...":e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"publicationTabLabel",type:i,pure:!0}),i})();const x6=["stepper"];function M6(i,s){1&i&&n._UZ(0,"mat-spinner",5)}function S6(i,s){1&i&&(n._uU(0),n.ALo(1,"translate")),2&i&&n.Oqu(n.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.PUBLICATION"))}function E6(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function D6(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function H6(i,s){if(1&i&&(n.TgZ(0,"mat-option",36),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.name," ")}}function P6(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function R6(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function k6(i,s){1&i&&(n._uU(0),n.ALo(1,"translate")),2&i&&n.hij(" ",n.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK")," ")}function L6(i,s){1&i&&(n.TgZ(0,"div",29),n._UZ(1,"mat-spinner",5),n.TgZ(2,"h5",37),n._uU(3),n.ALo(4,"translate"),n.qZA()()),2&i&&(n.xp6(3),n.hij(" ",n.lcZ(4,1,"CREATE_SINGLE_PUBLICATION.CHECK_PERFORM")," "))}function I6(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",38)(1,"div",29)(2,"span",39),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"span",40)(7,"mat-icon",41),n._uU(8,"fiber_manual_record"),n.qZA(),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"span",42)(12,"mat-icon",41),n._uU(13,"fiber_manual_record"),n.qZA(),n._uU(14),n.ALo(15,"translate"),n.qZA()()()),2&i&&(n.xp6(3),n.AsE(" ",n.lcZ(4,4,"CREATE_SINGLE_PUBLICATION.SIMILAR_FOUND"),". ",n.lcZ(5,6,"CREATE_SINGLE_PUBLICATION.CHECK_BELOW"),". "),n.xp6(6),n.hij(" ",n.lcZ(10,8,"CREATE_SINGLE_PUBLICATION.IS_BELOW")," "),n.xp6(5),n.hij(" ",n.lcZ(15,10,"CREATE_SINGLE_PUBLICATION.NOT_BELOW")," "))}function O6(i,s){1&i&&(n._uU(0),n.ALo(1,"translate")),2&i&&n.Oqu(n.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK"))}function B6(i,s){1&i&&n._UZ(0,"mat-spinner",5)}const V6=function(){return["id","lock","title","reportedBy","year","category","thankedTo","cite"]};function j6(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-publications-list",48),n.NdJ("publicationSelector",function(r){n.CHM(e),n.oxw(2);const d=n.MAs(1),h=n.oxw(2);return n.KtG(h.loadPublicationDetail(r,d))}),n.qZA()}if(2&i){const e=n.oxw(4);n.Q6J("displayedColumns",n.DdM(4,V6))("disabledRouting",!0)("openInTab",!0)("publications",e.filteredPublications)}}function U6(i,s){if(1&i&&(n.TgZ(0,"div",46),n.YNc(1,B6,1,0,"mat-spinner",3),n.YNc(2,j6,1,5,"perun-web-apps-publications-list",47),n.qZA()),2&i){const e=n.oxw(3);n.xp6(1),n.Q6J("ngIf",e.innerLoading),n.xp6(1),n.Q6J("ngIf",!e.innerLoading)}}function N6(i,s){if(1&i&&(n._uU(0),n.ALo(1,"publicationTabLabel")),2&i){const e=n.oxw(4);n.hij(" ",n.lcZ(1,1,e.selectedPubTitle)," ")}}function F6(i,s){if(1&i&&(n.TgZ(0,"div",49),n._UZ(1,"perun-web-apps-publication-detail",50),n.qZA()),2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("publicationId",e.selectedPubId)("disableRouting",!0)("similarityCheck",!0)}}function Y6(i,s){1&i&&(n.TgZ(0,"mat-tab"),n.YNc(1,N6,2,3,"ng-template",44),n.YNc(2,F6,2,3,"ng-template",45),n.qZA())}function q6(i,s){if(1&i&&(n.TgZ(0,"mat-tab-group",null,43)(2,"mat-tab"),n.YNc(3,O6,2,3,"ng-template",44),n.YNc(4,U6,3,2,"ng-template",45),n.qZA(),n.YNc(5,Y6,3,0,"mat-tab",15),n.qZA()),2&i){const e=n.oxw(2);n.xp6(5),n.Q6J("ngIf",null!==e.selectedPubId)}}function z6(i,s){1&i&&(n.TgZ(0,"div",29)(1,"mat-icon",51),n._uU(2,"check_circle"),n.qZA(),n.TgZ(3,"h5",52),n._uU(4),n.ALo(5,"translate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,"CREATE_SINGLE_PUBLICATION.NO_SIMILAR")," "))}function G6(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",26)(1,"button",53),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.redirect(["create-publication"]))}),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"button",54),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"button",55),n._uU(8),n.ALo(9,"translate"),n.qZA()()}2&i&&(n.xp6(2),n.hij(" ",n.lcZ(3,3,"CREATE_SINGLE_PUBLICATION.CANCEL")," "),n.xp6(3),n.hij(" ",n.lcZ(6,5,"CREATE_SINGLE_PUBLICATION.PREV")," "),n.xp6(3),n.hij(" ",n.lcZ(9,7,"CREATE_SINGLE_PUBLICATION.CREATE")," "))}function W6(i,s){1&i&&(n._uU(0),n.ALo(1,"translate")),2&i&&n.hij(" ",n.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.AUTHORS")," ")}function $6(i,s){1&i&&n._UZ(0,"mat-spinner",5)}function J6(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-add-authors",58),n.NdJ("yourselfAsAnAuthor",function(r){n.CHM(e);const d=n.oxw(3);return n.KtG(d.yourselfAsAnAuthor=r)}),n.qZA()}if(2&i){const e=n.oxw(3);n.Q6J("publication",e.publication)("selection",e.authorsSelection)("disableRouting",!0)}}function Z6(i,s){if(1&i&&(n.TgZ(0,"div")(1,"perun-web-apps-alert",56),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,J6,1,3,"perun-web-apps-add-authors",57),n.qZA()),2&i){const e=n.oxw(2);n.xp6(2),n.Oqu(n.lcZ(3,2,"CREATE_SINGLE_PUBLICATION.PUB_CREATED")),n.xp6(2),n.Q6J("ngIf",null!==e.publication)}}function Q6(i,s){1&i&&(n.TgZ(0,"div",26)(1,"button",59),n._uU(2),n.ALo(3,"translate"),n.qZA()()),2&i&&(n.xp6(2),n.hij(" ",n.lcZ(3,1,"CREATE_SINGLE_PUBLICATION.NEXT")," "))}function K6(i,s){1&i&&(n._uU(0),n.ALo(1,"translate")),2&i&&n.hij(" ",n.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.THANKS")," ")}function X6(i,s){if(1&i&&n._UZ(0,"perun-web-apps-add-thanks",60),2&i){const e=n.oxw(2);n.Q6J("publication",e.publication)("selection",e.thanksSelection)}}function ez(i,s){1&i&&n._UZ(0,"mat-spinner",5)}function tz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-horizontal-stepper",6,7),n.NdJ("selectionChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.stepChanged(r))}),n.TgZ(2,"mat-step",8),n.YNc(3,S6,2,3,"ng-template",9),n.TgZ(4,"form",10)(5,"h5",11),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"div",12)(9,"mat-checkbox",13),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"mat-form-field"),n._UZ(13,"input",14),n.ALo(14,"translate"),n.YNc(15,E6,3,3,"mat-error",15),n.qZA(),n.TgZ(16,"mat-form-field",16),n.NdJ("click",function(){n.CHM(e);const r=n.MAs(23);return n.KtG(r.open())}),n.TgZ(17,"mat-label"),n._uU(18),n.ALo(19,"translate"),n.qZA(),n._UZ(20,"input",17)(21,"mat-datepicker-toggle",18),n.TgZ(22,"mat-datepicker",19,20),n.NdJ("yearSelected",function(r){n.CHM(e);const d=n.MAs(23),h=n.oxw();return n.KtG(h.chosenYearHandler(r,d))}),n.qZA(),n.YNc(24,D6,3,3,"mat-error",15),n.qZA(),n.TgZ(25,"mat-form-field")(26,"mat-select",21),n.ALo(27,"translate"),n.YNc(28,H6,2,2,"mat-option",22),n.qZA(),n.YNc(29,P6,3,3,"mat-error",15),n.qZA(),n.TgZ(30,"mat-form-field"),n._UZ(31,"input",23),n.ALo(32,"translate"),n.qZA(),n.TgZ(33,"mat-form-field"),n._UZ(34,"input",24),n.ALo(35,"translate"),n.qZA(),n.TgZ(36,"mat-form-field")(37,"textarea",25),n.ALo(38,"translate"),n._uU(39," "),n.qZA(),n.YNc(40,R6,3,3,"mat-error",15),n.qZA()()(),n.TgZ(41,"div",26)(42,"button",27),n._uU(43),n.ALo(44,"translate"),n.qZA()()(),n.TgZ(45,"mat-step",28),n.YNc(46,k6,2,3,"ng-template",9),n.TgZ(47,"form",29)(48,"h5",11),n._uU(49),n.ALo(50,"translate"),n.qZA(),n.YNc(51,L6,5,3,"div",30),n.YNc(52,I6,16,12,"perun-web-apps-alert",31),n.YNc(53,q6,6,1,"mat-tab-group",15),n.YNc(54,z6,6,3,"div",30),n.qZA(),n.YNc(55,G6,10,9,"div",32),n.qZA(),n.TgZ(56,"mat-step"),n.YNc(57,W6,2,3,"ng-template",9),n.TgZ(58,"h5",11),n._uU(59),n.ALo(60,"translate"),n.qZA(),n.YNc(61,$6,1,0,"mat-spinner",3),n.YNc(62,Z6,5,4,"div",15),n.YNc(63,Q6,4,3,"div",32),n.qZA(),n.TgZ(64,"mat-step"),n.YNc(65,K6,2,3,"ng-template",9),n.TgZ(66,"h5",11),n._uU(67),n.ALo(68,"translate"),n.qZA(),n.YNc(69,X6,1,2,"perun-web-apps-add-thanks",33),n.YNc(70,ez,1,0,"mat-spinner",3),n.TgZ(71,"div",26)(72,"button",34),n._uU(73),n.ALo(74,"translate"),n.qZA(),n.TgZ(75,"button",35),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.showDialogAndRedirect(["all-publications"],r.publication.id))}),n._uU(76),n.ALo(77,"translate"),n.qZA()()()()}if(2&i){const e=n.MAs(23),t=n.oxw();n.xp6(2),n.Q6J("stepControl",t.publicationControl),n.xp6(2),n.Q6J("formGroup",t.publicationControl),n.xp6(2),n.hij(" ",n.lcZ(7,36,"CREATE_SINGLE_PUBLICATION.PUB_INFO")," "),n.xp6(4),n.hij(" ",n.lcZ(11,38,"CREATE_SINGLE_PUBLICATION.ADD_MYSELF")," "),n.xp6(3),n.s9C("placeholder",n.lcZ(14,40,"CREATE_SINGLE_PUBLICATION.SET_TITLE")),n.xp6(2),n.Q6J("ngIf",t.publicationControl.hasError("required","title")),n.xp6(3),n.Oqu(n.lcZ(19,42,"CREATE_SINGLE_PUBLICATION.YEAR")),n.xp6(2),n.Q6J("max",t.maxYear)("matDatepicker",e),n.xp6(1),n.Q6J("for",e),n.xp6(3),n.Q6J("ngIf",t.publicationControl.hasError("required","year")),n.xp6(2),n.s9C("placeholder",n.lcZ(27,44,"CREATE_SINGLE_PUBLICATION.CATEGORY")),n.xp6(2),n.Q6J("ngForOf",t.categories),n.xp6(1),n.Q6J("ngIf",t.publicationControl.hasError("required","category")),n.xp6(2),n.s9C("placeholder",n.lcZ(32,46,"CREATE_SINGLE_PUBLICATION.ISBN")),n.xp6(3),n.s9C("placeholder",n.lcZ(35,48,"CREATE_SINGLE_PUBLICATION.DOI")),n.xp6(3),n.s9C("placeholder",n.lcZ(38,50,"CREATE_SINGLE_PUBLICATION.CITE")),n.xp6(3),n.Q6J("ngIf",t.publicationControl.hasError("required","cite")),n.xp6(2),n.Q6J("disabled",t.publicationControl.invalid),n.xp6(1),n.hij(" ",n.lcZ(44,52,"CREATE_SINGLE_PUBLICATION.NEXT")," "),n.xp6(2),n.Q6J("editable",!t.duplicateCheck&&!t.publicationControl.invalid),n.xp6(4),n.hij(" ",n.lcZ(50,54,"CREATE_SINGLE_PUBLICATION.SIMILARITY_CHECK")," "),n.xp6(2),n.Q6J("ngIf",t.innerLoading),n.xp6(1),n.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),n.xp6(1),n.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),n.xp6(1),n.Q6J("ngIf",!t.innerLoading&&t.duplicateCheck),n.xp6(1),n.Q6J("ngIf",!t.innerLoading),n.xp6(4),n.hij(" ",n.lcZ(60,56,"CREATE_SINGLE_PUBLICATION.ADD_AUTHORS")," "),n.xp6(2),n.Q6J("ngIf",t.innerLoading),n.xp6(1),n.Q6J("ngIf",!t.innerLoading),n.xp6(1),n.Q6J("ngIf",!t.innerLoading),n.xp6(4),n.hij(" ",n.lcZ(68,58,"CREATE_SINGLE_PUBLICATION.ADD_THANKS")," "),n.xp6(2),n.Q6J("ngIf",null!==t.publication),n.xp6(1),n.Q6J("ngIf",t.innerLoading),n.xp6(3),n.hij(" ",n.lcZ(74,60,"CREATE_SINGLE_PUBLICATION.PREV")," "),n.xp6(3),n.hij(" ",n.lcZ(77,62,"CREATE_SINGLE_PUBLICATION.FINISH")," ")}}const nz=lf,iz={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let rz=(()=>{class i{constructor(e,t,r,d,h,c,o,a){this.formBuilder=e,this.cabinetService=t,this.dialog=r,this.router=d,this.notificator=h,this.translate=c,this.storeService=o,this.userService=a,this.similarPublications=[],this.filteredPublications=[],this.categories=[],this.publication=null,this.authorsSelection=new Kn(!0,[]),this.yourselfAsAnAuthor=!0,this.thanksSelection=new Kn(!0,[]),this.innerLoading=!1,this.loading=!1,this.duplicateCheck=!1,this.selectedPubId=null,this.selectedPubTitle=""}ngOnInit(){this.loading=!0,this.publicationControl=this.formBuilder.group({addAuthor:[!0],title:["",kn.required],year:["",kn.required],category:["",kn.required],isbn:[""],doi:[""],cite:["",kn.required]}),this.maxYear=nz(),this.cabinetService.getCategories().subscribe(e=>{this.categories=e,this.loading=!1})}chosenYearHandler(e,t){this.publicationControl.get("year").setValue(e),t.close()}createTimeout(){setTimeout(()=>{this.notificator.showSuccess(this.translate.instant("CREATE_SINGLE_PUBLICATION.SUCCESS")),this.duplicateCheck=!0,this.innerLoading=!1},1e3)}createPublication(){this.innerLoading=!0,this.duplicateCheck=!0;const e={publication:{id:0,beanName:"Publication",title:this.publicationControl.get("title").value,categoryId:this.publicationControl.get("category").value.id,year:this.publicationControl.get("year").value.year(),isbn:this.publicationControl.get("isbn").value,doi:this.publicationControl.get("doi").value,main:this.publicationControl.get("cite").value}};this.userService.getRichUserWithAttributes(this.storeService.getPerunPrincipal().userId).subscribe(t=>{const r=t.userAttributes.filter(d=>"preferredMail"===d.friendlyName);0!==r.length&&(e.publication.createdBy=r[0].value),this.cabinetService.createPublication(e).subscribe(d=>{this.publication=d,this.publicationControl.get("addAuthor").value?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publication.id,userId:t.id}}).subscribe(()=>{this.createTimeout()},()=>this.innerLoading=!1):this.createTimeout()},()=>this.innerLoading=!1)},()=>this.innerLoading=!1)}similarCheck(){this.innerLoading=!0;const e=this.publicationControl.get("title").value,t=this.publicationControl.get("doi").value?this.publicationControl.get("doi").value:null,r=this.publicationControl.get("isbn").value?this.publicationControl.get("isbn").value:null;this.cabinetService.findSimilarPublications(e,t,r).subscribe(d=>{this.similarPublications=d,this.filteredPublications=d,setTimeout(()=>{this.duplicateCheck=0===d.length,this.innerLoading=!1},2e3)})}stepChanged(e){1===e.selectedIndex&&this.similarCheck(),2===e.selectedIndex&&null===this.publication&&this.createPublication()}redirect(e){this.router.navigate(e,{queryParamsHandling:"preserve"})}showDialogAndRedirect(e,t){if(e.push(String(t)),this.yourselfAsAnAuthor)this.redirect(e);else{const r=Jn();r.width="500px",r.data={theme:"user-theme",title:this.translate.instant("CREATE_SINGLE_PUBLICATION.NOT_AN_AUTHOR_DIALOG_TITLE"),alert:this.translate.instant("CREATE_SINGLE_PUBLICATION.NOT_AN_AUTHOR_DIALOG_ALERT"),items:[],type:"confirmation",showAsk:!1},this.dialog.open(Ox,r).afterClosed().subscribe(h=>{h&&this.redirect(e)})}}loadPublicationDetail(e,t){this.selectedPubId=e.id,this.selectedPubTitle=e.title,t.selectedIndex=1}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(f0),n.Y36(wn),n.Y36(oi),n.Y36($n),n.Y36(Ji),n.Y36(fd),n.Y36(yi),n.Y36(Uo))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-create-single-publication-page"]],viewQuery:function(e,t){if(1&e&&n.Gf(x6,5),2&e){let r;n.iGM(r=n.CRH())&&(t.stepper=r.first)}},features:[n._Bn([{provide:Un,useClass:u_,deps:[_o]},{provide:_i,useValue:iz}])],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selectionChange",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selectionChange"],["stepper",""],[3,"stepControl"],["matStepLabel",""],[3,"formGroup"],[1,"mt-2"],[1,"dialog-container","w-50"],["labelPosition","before","formControlName","addAuthor",1,"mt-3"],["matInput","","formControlName","title","required","",3,"placeholder"],[4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","year","readonly","",1,"disable",3,"max","matDatepicker"],["matSuffix","",3,"for"],["startView","multi-year","panelClass","year-picker",3,"yearSelected"],["sdp",""],["required","","formControlName","category",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","isbn",3,"placeholder"],["matInput","","formControlName","doi",3,"placeholder"],["matInput","","formControlName","cite","required","",3,"placeholder"],[1,"actions"],["mat-flat-button","","color","accent","matStepperNext","",1,"ml-auto","mr-2",3,"disabled"],[3,"editable"],[1,"flex-container"],["class","flex-container",4,"ngIf"],["class","w-100","alert_type","warn",4,"ngIf"],["class","actions",4,"ngIf"],[3,"publication","selection",4,"ngIf"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],[3,"value"],[1,"ml-auto","mr-auto","mt-1","font-weight-bold"],["alert_type","warn",1,"w-100"],[1,"font-weight-bold"],[1,"mt-2","ml-3"],[1,"dot-icon"],[1,"ml-3"],["similarPublicationTabs",""],["matTabLabel",""],["matTabContent",""],[1,"flex-container","mb-2"],[3,"displayedColumns","disabledRouting","openInTab","publications","publicationSelector",4,"ngIf"],[3,"displayedColumns","disabledRouting","openInTab","publications","publicationSelector"],[1,"mt-4"],[3,"publicationId","disableRouting","similarityCheck"],[1,"ml-auto","mr-auto","passed-icon"],[1,"ml-auto","mr-auto","font-weight-bold"],["mat-flat-button","","type","button",1,"ml-2",3,"click"],["mat-flat-button","","type","button","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","color","accent","type","button","matStepperNext","",1,"ml-2"],["alert_type","info"],[3,"publication","selection","disableRouting","yourselfAsAnAuthor",4,"ngIf"],[3,"publication","selection","disableRouting","yourselfAsAnAuthor"],["mat-flat-button","","color","accent","matStepperNext","",1,"ml-auto"],[3,"publication","selection"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),n._uU(4,"add_box"),n.qZA(),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.YNc(7,M6,1,0,"mat-spinner",3),n.YNc(8,tz,78,64,"mat-horizontal-stepper",4),n.qZA()),2&e&&(n.xp6(5),n.hij(" ",n.lcZ(6,3,"CREATE_SINGLE_PUBLICATION.TITLE")," "),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.sg,x.O5,Ot,ld,Ln,Sn,es,ar,ta,bu,Ra,$w,Gi,Wi,tg,ns,Ol,Fc,Ru,R1,jC,k1,YV,qV,CM,c_,AM,Jc,Al,m2,Xj,K1,Kj,na,af,p_,bH,wH,it,T6],styles:[".add-icon{font-size:32px;vertical-align:text-top}.dot-icon{font-size:small;vertical-align:-1px}.passed-icon{font-size:130px;color:#288619;margin-bottom:130px;padding-right:120px}.flex-container{display:flex;flex-direction:column}.year-picker .mat-calendar-period-button{pointer-events:none}.year-picker .mat-calendar-arrow{display:none}.actions{background-color:#fff;display:flex;margin-top:20px}.mat-horizontal-stepper-header{pointer-events:none!important}\n"],encapsulation:2}),i})();function az(i,s){if(1&i&&(n.TgZ(0,"mat-option",14),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.Q6J("value",e),n.xp6(1),n.Oqu(e.friendlyName)}}function sz(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",15),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"IMPORT_PUBLICATIONS.INFO")," "))}function oz(i,s){if(1&i&&n._UZ(0,"perun-web-apps-publications-list",16),2&i){const e=n.oxw(2);n.Q6J("publications",e.publications)("displayedColumns",e.displayedColumns)("selection",e.selected)("tableId",e.tableId)("disabledRouting",!0)("allowAlert",e.firstSearchDone)}}function lz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div")(2,"mat-form-field",5)(3,"mat-label"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"mat-select",6),n.NdJ("closed",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.selectPubSystem())}),n.YNc(7,az,2,2,"mat-option",7),n.qZA()(),n._UZ(8,"perun-web-apps-year-range",8),n.TgZ(9,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.searchPublications())}),n.TgZ(10,"mat-icon"),n._uU(11,"search"),n.qZA(),n._uU(12),n.ALo(13,"translate"),n.qZA(),n.TgZ(14,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.importPublications(r.selected.selected))}),n._uU(15),n.ALo(16,"translate"),n.qZA(),n.TgZ(17,"mat-checkbox",11),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.userAsAuthor=r)}),n._uU(18),n.ALo(19,"translate"),n.qZA()(),n.YNc(20,sz,3,3,"perun-web-apps-alert",12),n.YNc(21,oz,1,6,"perun-web-apps-publications-list",13),n.qZA()}if(2&i){const e=n.oxw();n.xp6(4),n.Oqu(n.lcZ(5,12,"IMPORT_PUBLICATIONS.EXT_PUB_SYSTEM")),n.xp6(2),n.Q6J("formControl",e.pubSystem),n.xp6(1),n.Q6J("ngForOf",e.publicationSystems),n.xp6(1),n.Q6J("startYear",e.startYear)("endYear",e.endYear),n.xp6(4),n.hij(" ",n.lcZ(13,14,"IMPORT_PUBLICATIONS.SEARCH")," "),n.xp6(2),n.Q6J("disabled",0===e.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(16,16,"IMPORT_PUBLICATIONS.IMPORT")," "),n.xp6(2),n.Q6J("ngModel",e.userAsAuthor),n.xp6(1),n.hij(" ",n.lcZ(19,18,"IMPORT_PUBLICATIONS.ADD_MYSELF")," "),n.xp6(2),n.Q6J("ngIf",!e.firstSearchDone),n.xp6(1),n.Q6J("ngIf",!e.loading)}}function cz(i,s){1&i&&n._UZ(0,"mat-spinner",17)}function dz(i,s){1&i&&(n.TgZ(0,"i"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED")," "))}function uz(i,s){1&i&&(n.TgZ(0,"mat-icon",28),n._uU(1,"check_circle"),n.qZA())}function hz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",29),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(),d=r.$implicit,h=r.index,c=n.oxw(2);return n.KtG(c.completePublication(d.id,h))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECKED_BUTTON")," "))}function pz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",30),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw(2);return n.KtG(d.incompletePublication(r.id))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED_BUTTON")," "))}function fz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",22)(1,"mat-expansion-panel-header",23),n.NdJ("click",function(){const d=n.CHM(e).index,h=n.oxw(2);return n.KtG(h.editPublication(d))}),n.TgZ(2,"mat-panel-title"),n._uU(3),n.YNc(4,dz,3,3,"i",3),n.YNc(5,uz,2,0,"mat-icon",24),n.qZA()(),n._UZ(6,"perun-web-apps-publication-detail",25),n.TgZ(7,"div",26),n.YNc(8,hz,3,3,"button",20),n.YNc(9,pz,3,3,"button",27),n.qZA()()}if(2&i){const e=s.$implicit,t=s.index,r=n.oxw(2);n.Q6J("expanded",r.indexExpanded===t),n.xp6(3),n.hij(" ",e.title," "),n.xp6(1),n.Q6J("ngIf",!r.completePublications.includes(e.id)),n.xp6(1),n.Q6J("ngIf",r.completePublications.includes(e.id)),n.xp6(1),n.Q6J("publicationId",e.id),n.xp6(2),n.Q6J("ngIf",!r.completePublications.includes(e.id)),n.xp6(1),n.Q6J("ngIf",r.completePublications.includes(e.id))}}function mz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",29),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.completeAllPublications())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECK_ALL")," "))}function gz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",31),n.ALo(1,"translate"),n.TgZ(2,"button",32),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.onSubmit())}),n._uU(3),n.ALo(4,"translate"),n.qZA()()}if(2&i){const e=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,4,"IMPORT_PUBLICATIONS.SUBMIT_TOOLTIP")),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.completePublications.length===e.importedPublications.length),n.xp6(3),n.hij(" ",n.lcZ(4,6,"IMPORT_PUBLICATIONS.FINISH")," ")}}function _z(i,s){if(1&i&&(n.TgZ(0,"div")(1,"perun-web-apps-alert",15),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-accordion"),n.YNc(5,fz,10,7,"mat-expansion-panel",18),n.qZA(),n.TgZ(6,"div",19),n.YNc(7,mz,3,3,"button",20),n.qZA(),n.YNc(8,gz,5,8,"div",21),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,4,"IMPORT_PUBLICATIONS.IMPORTED_INFO")," "),n.xp6(3),n.Q6J("ngForOf",e.importedPublications),n.xp6(2),n.Q6J("ngIf",e.completePublications.length!==e.importedPublications.length),n.xp6(1),n.Q6J("ngIf",e.completePublications.length===e.importedPublications.length)}}const zH=lf,bz={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},wz=[{path:"",redirectTo:"all-publications",pathMatch:"full"},{path:"login",component:C6},{path:"service-access",component:v6},{path:"all-publications",component:HU},{path:"my-publications",component:LU},{path:"create-publication",component:IU},{path:"create-publication/import",component:(()=>{class i{constructor(e,t,r,d,h,c){this.cabinetService=e,this.storeService=t,this.notificator=r,this.translate=d,this.router=h,this.dialog=c,this.loading=!1,this.publicationSystems=[],this.publications=[],this.selected=new Kn(!0,[]),this.tableId="74",this.displayedColumns=["select","id","lock","title","reportedBy","year","category"],this.userAsAuthor=!0,this.importedPublications=[],this.importDone=!1,this.completePublications=[]}ngOnInit(){this.loading=!0,this.firstSearchDone=!1,this.userId=this.storeService.getPerunPrincipal().user.id,this.startYear=new Nn(zH().subtract(1,"year")),this.endYear=new Nn(zH()),this.cabinetService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e.filter(t=>"INTERNAL"!==t.friendlyName),this.pubSystem=new Nn(this.publicationSystems[0]),this.pubSystemNamespace=this.pubSystem.value.loginNamespace,this.loading=!1})}selectPubSystem(){this.pubSystemNamespace=this.pubSystem.value.loginNamespace}searchPublications(){this.loading=!0,this.firstSearchDone=!0,this.cabinetService.findExternalPublications(this.storeService.getPerunPrincipal().user.id,this.startYear.value.year(),this.endYear.value.year(),this.pubSystemNamespace).subscribe({next:e=>{this.publications=e,this.loading=!1},error:()=>this.loading=!1})}importPublications(e){if(this.loading=!0,0===e.length)return this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SUCCESS")),this.importDone=!0,this.indexExpanded=0,void(this.loading=!1);const t=e.shift();this.cabinetService.createPublication({publication:{id:0,beanName:"Publication",title:t.title,categoryId:t.categoryId,year:t.year,isbn:t.isbn,doi:t.doi,main:t.main}}).subscribe({next:d=>{this.userAsAuthor?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:d.id,userId:this.userId}}).subscribe({next:()=>{this.importedPublications.push(d),this.importPublications(e)},error:()=>this.loading=!1}):(this.importedPublications.push(d),this.importPublications(e))},error:()=>this.loading=!1})}editPublication(e){this.indexExpanded=e===this.indexExpanded?-1:e}completePublication(e,t){this.completePublications.includes(e)||this.completePublications.push(e),this.indexExpanded=t!==this.importedPublications.length-1?t+1:-1}incompletePublication(e){this.completePublications.includes(e)&&(this.completePublications=this.completePublications.filter(t=>t!==e)),this.indexExpanded=-1}completeAllPublications(){const e=Jn();e.width="500px",e.data={theme:"user-theme",message:this.translate.instant("IMPORT_PUBLICATIONS.CHECK_ALL_MESSAGE")},this.dialog.open(hL,e).afterClosed().subscribe(r=>{r&&this.onSubmit()})}onSubmit(){this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SHOW_FINISH")),this.router.navigate(["/my-publications"],{queryParamsHandling:"preserve"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn),n.Y36(yi),n.Y36(Ji),n.Y36(bn),n.Y36($n),n.Y36(oi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-import-publications-page"]],features:[n._Bn([{provide:Un,useClass:u_,deps:[_o]},{provide:_i,useValue:bz}])],decls:10,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"input-width-300","mr-2"],[3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[3,"startYear","endYear"],["mat-stroked-button","",1,"left-space",3,"click"],["mat-flat-button","","color","accent",1,"left-space",3,"disabled","click"],[1,"mt-3","left-space",3,"ngModel","ngModelChange"],["alert_type","info",4,"ngIf"],[3,"publications","displayedColumns","selection","tableId","disabledRouting","allowAlert",4,"ngIf"],[1,"group-theme",3,"value"],["alert_type","info"],[3,"publications","displayedColumns","selection","tableId","disabledRouting","allowAlert"],[1,"ml-auto","mr-auto"],[3,"expanded",4,"ngFor","ngForOf"],[1,"right-button"],["mat-flat-button","","class","width-100","color","accent",3,"click",4,"ngIf"],["class","right-button",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"ngIf"],[3,"expanded"],[3,"click"],["color","accent","class","checked-icon",4,"ngIf"],[3,"publicationId"],[1,"fit-content"],["mat-stroked-button","","class","width-100",3,"click",4,"ngIf"],["color","accent",1,"checked-icon"],["mat-flat-button","","color","accent",1,"width-100",3,"click"],["mat-stroked-button","",1,"width-100",3,"click"],[1,"right-button",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),n._uU(4,"add_box"),n.qZA(),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.YNc(7,lz,22,20,"div",3),n.YNc(8,cz,1,0,"mat-spinner",4),n.YNc(9,_z,9,6,"div",3),n.qZA()),2&e&&(n.xp6(5),n.hij(" ",n.lcZ(6,4,"IMPORT_PUBLICATIONS.TITLE")," "),n.xp6(2),n.Q6J("ngIf",!t.importDone),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",t.importDone))},dependencies:[x.sg,x.O5,cV,_1,b1,lV,Ot,ld,Ln,Sn,ar,ta,Wi,Uc,_r,ks,Jc,Al,na,af,p_,mH,it],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.input-width-300[_ngcontent-%COMP%]{width:300px}.left-space[_ngcontent-%COMP%]{margin-left:10px}mat-panel-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-left:5px}.checked-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}.right-button[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:20px;margin-left:auto;margin-right:0}.fit-content[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:15px}.width-100[_ngcontent-%COMP%]{width:100%}"]}),i})()},{path:"create-publication/create",component:rz},{path:"authors",component:oN},{path:"authors/:authorId",component:hF},{path:"authors/:authorId/publication/:publicationId",component:p_},{path:"all-publications/:publicationId",component:p_},{path:"my-publications/:publicationId",component:p_},{path:"categories",component:zN},{path:"publication-systems",component:lF}];let yz=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lh.forRoot(wz,{preloadingStrategy:$_,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),Lh]}),i})();const Cz={provide:v.TP,useExisting:(0,n.Gpc)(()=>GE),multi:!0};function Az(i){return new SI(i,"./assets/i18n/",".json")}function vz(i){const s={basePath:i.getProperty("api_url")};return new vt(s)}const Tz=i=>()=>i.loadConfigs();let xz=(()=>{class i{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(qE),n.LFG(bn))},i.\u0275mod=n.oAB({type:i,bootstrap:[MI]}),i.\u0275inj=n.cJS({providers:[qE,{provide:n.ip1,useFactory:Tz,multi:!0,deps:[HI]},{provide:vt,useFactory:vz,deps:[yi]},GE,Cz,{provide:PI,useClass:eR},xU,{provide:Wp.Hy,useFactory:()=>localStorage}],imports:[di,Gs.forRoot({loader:{provide:Fr,useFactory:Az,deps:[v.eN]}}),HB,uH,PB,ii,v.JF,yz,RM,iD,y6,rH,J0,Wp.zr.forRoot(),jH]}),i})();(0,n.G48)(),pt().bootstrapModule(xz).catch(i=>console.error(i))},1302:function(z,W,E){var x;!function(n,P){var D={};!function(n){"use strict";n.__esModule=!0,n.digestLength=32,n.blockSize=64;var P=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function D(ue,se,re,_e,ye){for(var Me,Je,Ze,ke,Ee,Pe,ut,Ve,Ne,je,fe,ge,Te;ye>=64;){for(Me=se[0],Je=se[1],Ze=se[2],ke=se[3],Ee=se[4],Pe=se[5],ut=se[6],Ve=se[7],je=0;je<16;je++)ue[je]=(255&re[fe=_e+4*je])<<24|(255&re[fe+1])<<16|(255&re[fe+2])<<8|255&re[fe+3];for(je=16;je<64;je++)ue[je]=((ge=((Ne=ue[je-2])>>>17|Ne<<15)^(Ne>>>19|Ne<<13)^Ne>>>10)+ue[je-7]|0)+((Te=((Ne=ue[je-15])>>>7|Ne<<25)^(Ne>>>18|Ne<<14)^Ne>>>3)+ue[je-16]|0);for(je=0;je<64;je++)ge=(((Ee>>>6|Ee<<26)^(Ee>>>11|Ee<<21)^(Ee>>>25|Ee<<7))+(Ee&Pe^~Ee&ut)|0)+(Ve+(P[je]+ue[je]|0)|0)|0,Te=((Me>>>2|Me<<30)^(Me>>>13|Me<<19)^(Me>>>22|Me<<10))+(Me&Je^Me&Ze^Je&Ze)|0,Ve=ut,ut=Pe,Pe=Ee,Ee=ke+ge|0,ke=Ze,Ze=Je,Je=Me,Me=ge+Te|0;se[0]+=Me,se[1]+=Je,se[2]+=Ze,se[3]+=ke,se[4]+=Ee,se[5]+=Pe,se[6]+=ut,se[7]+=Ve,_e+=64,ye-=64}return _e}var H=function(){function ue(){this.digestLength=n.digestLength,this.blockSize=n.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ue.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ue.prototype.clean=function(){for(var se=0;se0){for(;this.bufferLength<64&&re>0;)this.buffer[this.bufferLength++]=se[_e++],re--;64===this.bufferLength&&(D(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(re>=64&&(_e=D(this.temp,this.state,se,_e,re),re%=64);re>0;)this.buffer[this.bufferLength++]=se[_e++],re--;return this},ue.prototype.finish=function(se){if(!this.finished){var re=this.bytesHashed,_e=this.bufferLength,ye=re/536870912|0,Me=re<<3,Je=re%64<56?64:128;this.buffer[_e]=128;for(var Ze=_e+1;Ze>>24&255,this.buffer[Je-7]=ye>>>16&255,this.buffer[Je-6]=ye>>>8&255,this.buffer[Je-5]=ye>>>0&255,this.buffer[Je-4]=Me>>>24&255,this.buffer[Je-3]=Me>>>16&255,this.buffer[Je-2]=Me>>>8&255,this.buffer[Je-1]=Me>>>0&255,D(this.temp,this.state,this.buffer,0,Je),this.finished=!0}for(Ze=0;Ze<8;Ze++)se[4*Ze+0]=this.state[Ze]>>>24&255,se[4*Ze+1]=this.state[Ze]>>>16&255,se[4*Ze+2]=this.state[Ze]>>>8&255,se[4*Ze+3]=this.state[Ze]>>>0&255;return this},ue.prototype.digest=function(){var se=new Uint8Array(this.digestLength);return this.finish(se),se},ue.prototype._saveState=function(se){for(var re=0;rethis.blockSize)(new H).update(se).finish(re).clean();else for(var _e=0;_e1&&se.update(ue),re&&se.update(re),se.update(_e),se.finish(ue),_e[0]++}n.HMAC=I,n.hash=B,n.default=B,n.hmac=Y;var ee=new Uint8Array(n.digestLength);n.hkdf=function te(ue,se,re,_e){void 0===se&&(se=ee),void 0===_e&&(_e=32);for(var ye=new Uint8Array([1]),Me=Y(se,ue),Je=new I(Me),Ze=new Uint8Array(Je.digestLength),ke=Ze.length,Ee=new Uint8Array(_e),Pe=0;Pe<_e;Pe++)ke===Ze.length&&(G(Ze,Je,re,ye),ke=0),Ee[Pe]=Ze[ke++];return Je.clean(),Ze.fill(0),ye.fill(0),Ee},n.pbkdf2=function ae(ue,se,re,_e){for(var ye=new I(ue),Me=ye.digestLength,Je=new Uint8Array(4),Ze=new Uint8Array(Me),ke=new Uint8Array(Me),Ee=new Uint8Array(_e),Pe=0;Pe*Me<_e;Pe++){var ut=Pe+1;Je[0]=ut>>>24&255,Je[1]=ut>>>16&255,Je[2]=ut>>>8&255,Je[3]=ut>>>0&255,ye.reset(),ye.update(se),ye.update(Je),ye.finish(ke);for(var Ve=0;Ve=te.status}function I(ee){try{ee.dispatchEvent(new MouseEvent("click"))}catch{var te=document.createEvent("MouseEvents");te.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ee.dispatchEvent(te)}}var B="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Y=B.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=B.saveAs||("object"!=typeof window||window!==B?function(){}:"download"in HTMLAnchorElement.prototype&&!Y?function(ee,te,ae){var ue=B.URL||B.webkitURL,se=document.createElement("a");se.download=te=te||ee.name||"download",se.rel="noopener","string"==typeof ee?(se.href=ee,se.origin===location.origin?I(se):H(se.href)?D(ee,te,ae):I(se,se.target="_blank")):(se.href=ue.createObjectURL(ee),setTimeout(function(){ue.revokeObjectURL(se.href)},4e4),setTimeout(function(){I(se)},0))}:"msSaveOrOpenBlob"in navigator?function(ee,te,ae){if(te=te||ee.name||"download","string"!=typeof ee)navigator.msSaveOrOpenBlob(function P(ee,te){return typeof te>"u"?te={autoBom:!1}:"object"!=typeof te&&(console.warn("Deprecated: Expected third argument to be a object"),te={autoBom:!te}),te.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ee.type)?new Blob(["\ufeff",ee],{type:ee.type}):ee}(ee,ae),te);else if(H(ee))D(ee,te,ae);else{var ue=document.createElement("a");ue.href=ee,ue.target="_blank",setTimeout(function(){I(ue)})}}:function(ee,te,ae,ue){if((ue=ue||open("","_blank"))&&(ue.document.title=ue.document.body.innerText="downloading..."),"string"==typeof ee)return D(ee,te,ae);var se="application/octet-stream"===ee.type,re=/constructor/i.test(B.HTMLElement)||B.safari,_e=/CriOS\/[\d]+/.test(navigator.userAgent);if((_e||se&&re||Y)&&typeof FileReader<"u"){var ye=new FileReader;ye.onloadend=function(){var Ze=ye.result;Ze=_e?Ze:Ze.replace(/^data:[^;]*;/,"data:attachment/file;"),ue?ue.location.href=Ze:location=Ze,ue=null},ye.readAsDataURL(ee)}else{var Me=B.URL||B.webkitURL,Je=Me.createObjectURL(ee);ue?ue.location=Je:location.href=Je,ue=null,setTimeout(function(){Me.revokeObjectURL(Je)},4e4)}});B.saveAs=G.saveAs=G,z.exports=G}.apply(W,[]))&&(z.exports=n)},7088:function(z,W,E){!function(x){"use strict";x.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(P){return/^nm$/i.test(P)},meridiem:function(P,D,H){return P<12?H?"vm":"VM":H?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(P){return P+(1===P||8===P||P>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},2502:function(z,W,E){!function(x){"use strict";var n=function(B){return 0===B?0:1===B?1:2===B?2:B%100>=3&&B%100<=10?3:B%100>=11?4:5},P={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},D=function(B){return function(Y,G,ee,te){var ae=n(Y),ue=P[B][n(Y)];return 2===ae&&(ue=ue[G?0:1]),ue.replace(/%d/i,Y)}},H=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];x.defineLocale("ar-dz",{months:H,monthsShort:H,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(B){return"\u0645"===B},meridiem:function(B,Y,G){return B<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:D("s"),ss:D("s"),m:D("m"),mm:D("m"),h:D("h"),hh:D("h"),d:D("d"),dd:D("d"),M:D("M"),MM:D("M"),y:D("y"),yy:D("y")},postformat:function(B){return B.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(E(5439))},128:function(z,W,E){!function(x){"use strict";x.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(E(5439))},4519:function(z,W,E){!function(x){"use strict";var n={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},P=function(Y){return 0===Y?0:1===Y?1:2===Y?2:Y%100>=3&&Y%100<=10?3:Y%100>=11?4:5},D={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},H=function(Y){return function(G,ee,te,ae){var ue=P(G),se=D[Y][P(G)];return 2===ue&&(se=se[ee?0:1]),se.replace(/%d/i,G)}},I=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];x.defineLocale("ar-ly",{months:I,monthsShort:I,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(Y){return"\u0645"===Y},meridiem:function(Y,G,ee){return Y<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:H("s"),ss:H("s"),m:H("m"),mm:H("m"),h:H("h"),hh:H("h"),d:H("d"),dd:H("d"),M:H("M"),MM:H("M"),y:H("y"),yy:H("y")},preparse:function(Y){return Y.replace(/\u060c/g,",")},postformat:function(Y){return Y.replace(/\d/g,function(G){return n[G]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},5443:function(z,W,E){!function(x){"use strict";x.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(E(5439))},7642:function(z,W,E){!function(x){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},P={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};x.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(H){return"\u0645"===H},meridiem:function(H,I,B){return H<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(H){return H.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(I){return P[I]}).replace(/\u060c/g,",")},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(E(5439))},8592:function(z,W,E){!function(x){"use strict";x.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(E(5439))},7038:function(z,W,E){!function(x){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},P={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},D=function(G){return 0===G?0:1===G?1:2===G?2:G%100>=3&&G%100<=10?3:G%100>=11?4:5},H={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},I=function(G){return function(ee,te,ae,ue){var se=D(ee),re=H[G][D(ee)];return 2===se&&(re=re[te?0:1]),re.replace(/%d/i,ee)}},B=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];x.defineLocale("ar",{months:B,monthsShort:B,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(G){return"\u0645"===G},meridiem:function(G,ee,te){return G<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:I("s"),ss:I("s"),m:I("m"),mm:I("m"),h:I("h"),hh:I("h"),d:I("d"),dd:I("d"),M:I("M"),MM:I("M"),y:I("y"),yy:I("y")},preparse:function(G){return G.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(ee){return P[ee]}).replace(/\u060c/g,",")},postformat:function(G){return G.replace(/\d/g,function(ee){return n[ee]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},1213:function(z,W,E){!function(x){"use strict";var n={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};x.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(D){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(D)},meridiem:function(D,H,I){return D<4?"gec\u0259":D<12?"s\u0259h\u0259r":D<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(D){if(0===D)return D+"-\u0131nc\u0131";var H=D%10;return D+(n[H]||n[D%100-H]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},9191:function(z,W,E){!function(x){"use strict";function P(H,I,B){return"m"===B?I?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===B?I?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":H+" "+function n(H,I){var B=H.split("_");return I%10==1&&I%100!=11?B[0]:I%10>=2&&I%10<=4&&(I%100<10||I%100>=20)?B[1]:B[2]}({ss:I?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:I?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:I?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[B],+H)}x.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:P,mm:P,h:P,hh:P,d:"\u0434\u0437\u0435\u043d\u044c",dd:P,M:"\u043c\u0435\u0441\u044f\u0446",MM:P,y:"\u0433\u043e\u0434",yy:P},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(H){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(H)},meridiem:function(H,I,B){return H<4?"\u043d\u043e\u0447\u044b":H<12?"\u0440\u0430\u043d\u0456\u0446\u044b":H<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(H,I){switch(I){case"M":case"d":case"DDD":case"w":case"W":return H%10!=2&&H%10!=3||H%100==12||H%100==13?H+"-\u044b":H+"-\u0456";case"D":return H+"-\u0433\u0430";default:return H}},week:{dow:1,doy:7}})}(E(5439))},322:function(z,W,E){!function(x){"use strict";x.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(P){var D=P%10,H=P%100;return 0===P?P+"-\u0435\u0432":0===H?P+"-\u0435\u043d":H>10&&H<20?P+"-\u0442\u0438":1===D?P+"-\u0432\u0438":2===D?P+"-\u0440\u0438":7===D||8===D?P+"-\u043c\u0438":P+"-\u0442\u0438"},week:{dow:1,doy:7}})}(E(5439))},8042:function(z,W,E){!function(x){"use strict";x.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(E(5439))},5903:function(z,W,E){!function(x){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},P={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};x.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(H){return H.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u09b0\u09be\u09a4"===I?H<4?H:H+12:"\u09ad\u09cb\u09b0"===I||"\u09b8\u0995\u09be\u09b2"===I?H:"\u09a6\u09c1\u09aa\u09c1\u09b0"===I?H>=3?H:H+12:"\u09ac\u09bf\u0995\u09be\u09b2"===I||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===I?H+12:void 0},meridiem:function(H,I,B){return H<4?"\u09b0\u09be\u09a4":H<6?"\u09ad\u09cb\u09b0":H<12?"\u09b8\u0995\u09be\u09b2":H<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":H<18?"\u09ac\u09bf\u0995\u09be\u09b2":H<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(E(5439))},9620:function(z,W,E){!function(x){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},P={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};x.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(H){return H.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u09b0\u09be\u09a4"===I&&H>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===I&&H<5||"\u09ac\u09bf\u0995\u09be\u09b2"===I?H+12:H},meridiem:function(H,I,B){return H<4?"\u09b0\u09be\u09a4":H<10?"\u09b8\u0995\u09be\u09b2":H<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":H<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(E(5439))},9645:function(z,W,E){!function(x){"use strict";var n={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},P={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};x.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(H){return H.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===I&&H>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===I&&H<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===I?H+12:H},meridiem:function(H,I,B){return H<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":H<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":H<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":H<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(E(5439))},5020:function(z,W,E){!function(x){"use strict";function n(re,_e,ye){return re+" "+function H(re,_e){return 2===_e?function I(re){var _e={m:"v",b:"v",d:"z"};return void 0===_e[re.charAt(0)]?re:_e[re.charAt(0)]+re.substring(1)}(re):re}({mm:"munutenn",MM:"miz",dd:"devezh"}[ye],re)}function D(re){return re>9?D(re%10):re}var B=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],Y=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,ue=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];x.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:ue,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:ue,monthsRegex:Y,monthsShortRegex:Y,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:B,longMonthsParse:B,shortMonthsParse:B,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:n,h:"un eur",hh:"%d eur",d:"un devezh",dd:n,M:"ur miz",MM:n,y:"ur bloaz",yy:function P(re){switch(D(re)){case 1:case 3:case 4:case 5:case 9:return re+" bloaz";default:return re+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(re){return re+(1===re?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(re){return"g.m."===re},meridiem:function(re,_e,ye){return re<12?"a.m.":"g.m."}})}(E(5439))},4792:function(z,W,E){!function(x){"use strict";function n(D,H,I){var B=D+" ";switch(I){case"ss":return B+(1===D?"sekunda":2===D||3===D||4===D?"sekunde":"sekundi");case"m":return H?"jedna minuta":"jedne minute";case"mm":return B+(1===D?"minuta":2===D||3===D||4===D?"minute":"minuta");case"h":return H?"jedan sat":"jednog sata";case"hh":return B+(1===D?"sat":2===D||3===D||4===D?"sata":"sati");case"dd":return B+(1===D?"dan":"dana");case"MM":return B+(1===D?"mjesec":2===D||3===D||4===D?"mjeseca":"mjeseci");case"yy":return B+(1===D?"godina":2===D||3===D||4===D?"godine":"godina")}}x.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},7980:function(z,W,E){!function(x){"use strict";x.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(P,D){var H=1===P?"r":2===P?"n":3===P?"r":4===P?"t":"\xe8";return("w"===D||"W"===D)&&(H="a"),P+H},week:{dow:1,doy:4}})}(E(5439))},7322:function(z,W,E){!function(x){"use strict";var n={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},P="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),D=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],H=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function I(G){return G>1&&G<5&&1!=~~(G/10)}function B(G,ee,te,ae){var ue=G+" ";switch(te){case"s":return ee||ae?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return ee||ae?ue+(I(G)?"sekundy":"sekund"):ue+"sekundami";case"m":return ee?"minuta":ae?"minutu":"minutou";case"mm":return ee||ae?ue+(I(G)?"minuty":"minut"):ue+"minutami";case"h":return ee?"hodina":ae?"hodinu":"hodinou";case"hh":return ee||ae?ue+(I(G)?"hodiny":"hodin"):ue+"hodinami";case"d":return ee||ae?"den":"dnem";case"dd":return ee||ae?ue+(I(G)?"dny":"dn\xed"):ue+"dny";case"M":return ee||ae?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return ee||ae?ue+(I(G)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):ue+"m\u011bs\xedci";case"y":return ee||ae?"rok":"rokem";case"yy":return ee||ae?ue+(I(G)?"roky":"let"):ue+"lety"}}x.defineLocale("cs",{months:n,monthsShort:P,monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:B,ss:B,m:B,mm:B,h:B,hh:B,d:B,dd:B,M:B,MM:B,y:B,yy:B},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},365:function(z,W,E){!function(x){"use strict";x.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(P){return P+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(P)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(P)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(E(5439))},2092:function(z,W,E){!function(x){"use strict";x.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(P){var H="";return P>20?H=40===P||50===P||60===P||80===P||100===P?"fed":"ain":P>0&&(H=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][P]),P+H},week:{dow:1,doy:4}})}(E(5439))},7387:function(z,W,E){!function(x){"use strict";x.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9459:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return H?Y[I][0]:Y[I][1]}x.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3694:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return H?Y[I][0]:Y[I][1]}x.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},4307:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return H?Y[I][0]:Y[I][1]}x.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9659:function(z,W,E){!function(x){"use strict";var n=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],P=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];x.defineLocale("dv",{months:n,monthsShort:n,weekdays:P,weekdaysShort:P,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(H){return"\u0789\u078a"===H},meridiem:function(H,I,B){return H<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(H){return H.replace(/\u060c/g,",")},postformat:function(H){return H.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(E(5439))},3460:function(z,W,E){!function(x){"use strict";x.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(D,H){return D?"string"==typeof H&&/D/.test(H.substring(0,H.indexOf("MMMM")))?this._monthsGenitiveEl[D.month()]:this._monthsNominativeEl[D.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(D,H,I){return D>11?I?"\u03bc\u03bc":"\u039c\u039c":I?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(D){return"\u03bc"===(D+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(D,H){var I=this._calendarEl[D],B=H&&H.hours();return function n(D){return typeof Function<"u"&&D instanceof Function||"[object Function]"===Object.prototype.toString.call(D)}(I)&&(I=I.apply(H)),I.replace("{}",B%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(E(5439))},4369:function(z,W,E){!function(x){"use strict";x.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:0,doy:4}})}(E(5439))},530:function(z,W,E){!function(x){"use strict";x.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")}})}(E(5439))},9998:function(z,W,E){!function(x){"use strict";x.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},3391:function(z,W,E){!function(x){"use strict";x.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},5414:function(z,W,E){!function(x){"use strict";x.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")}})}(E(5439))},9615:function(z,W,E){!function(x){"use strict";x.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:0,doy:6}})}(E(5439))},1248:function(z,W,E){!function(x){"use strict";x.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},3767:function(z,W,E){!function(x){"use strict";x.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},4530:function(z,W,E){!function(x){"use strict";x.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(P){return"p"===P.charAt(0).toLowerCase()},meridiem:function(P,D,H){return P>11?H?"p.t.m.":"P.T.M.":H?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(E(5439))},8944:function(z,W,E){!function(x){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),P="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],H=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;x.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},9116:function(z,W,E){!function(x){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),P="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],H=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;x.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(E(5439))},3609:function(z,W,E){!function(x){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),P="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],H=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;x.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(E(5439))},6866:function(z,W,E){!function(x){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),P="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],H=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;x.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(E(5439))},6725:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[D+"sekundi",D+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[D+" minuti",D+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[D+" tunni",D+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[D+" kuu",D+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[D+" aasta",D+" aastat"]};return H?Y[I][2]?Y[I][2]:Y[I][1]:B?Y[I][0]:Y[I][1]}x.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:"%d p\xe4eva",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},7931:function(z,W,E){!function(x){"use strict";x.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6417:function(z,W,E){!function(x){"use strict";var n={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},P={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};x.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(H){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(H)},meridiem:function(H,I,B){return H<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(H){return H.replace(/[\u06f0-\u06f9]/g,function(I){return P[I]}).replace(/\u060c/g,",")},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(E(5439))},944:function(z,W,E){!function(x){"use strict";var n="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),P=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",n[7],n[8],n[9]];function D(B,Y,G,ee){var te="";switch(G){case"s":return ee?"muutaman sekunnin":"muutama sekunti";case"ss":te=ee?"sekunnin":"sekuntia";break;case"m":return ee?"minuutin":"minuutti";case"mm":te=ee?"minuutin":"minuuttia";break;case"h":return ee?"tunnin":"tunti";case"hh":te=ee?"tunnin":"tuntia";break;case"d":return ee?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":te=ee?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return ee?"kuukauden":"kuukausi";case"MM":te=ee?"kuukauden":"kuukautta";break;case"y":return ee?"vuoden":"vuosi";case"yy":te=ee?"vuoden":"vuotta"}return function H(B,Y){return B<10?Y?P[B]:n[B]:B}(B,ee)+" "+te}x.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},1766:function(z,W,E){!function(x){"use strict";x.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(P){return P},week:{dow:1,doy:4}})}(E(5439))},5867:function(z,W,E){!function(x){"use strict";x.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},6848:function(z,W,E){!function(x){"use strict";x.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(P,D){switch(D){default:case"M":case"Q":case"D":case"DDD":case"d":return P+(1===P?"er":"e");case"w":case"W":return P+(1===P?"re":"e")}}})}(E(5439))},7773:function(z,W,E){!function(x){"use strict";x.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(P,D){switch(D){default:case"M":case"Q":case"D":case"DDD":case"d":return P+(1===P?"er":"e");case"w":case"W":return P+(1===P?"re":"e")}},week:{dow:1,doy:4}})}(E(5439))},1636:function(z,W,E){!function(x){"use strict";var D=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,H=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];x.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:D,monthsShortRegex:D,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:H,longMonthsParse:H,shortMonthsParse:H,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(B,Y){switch(Y){case"D":return B+(1===B?"er":"");default:case"M":case"Q":case"DDD":case"d":return B+(1===B?"er":"e");case"w":case"W":return B+(1===B?"re":"e")}},week:{dow:1,doy:4}})}(E(5439))},4940:function(z,W,E){!function(x){"use strict";var n="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),P="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");x.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(H,I){return H?/-MMM-/.test(I)?P[H.month()]:n[H.month()]:n},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(H){return H+(1===H||8===H||H>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1402:function(z,W,E){!function(x){"use strict";x.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(Y){return Y+(1===Y?"d":Y%10==2?"na":"mh")},week:{dow:1,doy:4}})}(E(5439))},6924:function(z,W,E){!function(x){"use strict";x.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(Y){return Y+(1===Y?"d":Y%10==2?"na":"mh")},week:{dow:1,doy:4}})}(E(5439))},6398:function(z,W,E){!function(x){"use strict";x.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(P){return 0===P.indexOf("un")?"n"+P:"en "+P},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},2457:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[D+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",D+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[D+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",D+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[D+" \u0935\u0930\u093e\u0902\u0928\u0940",D+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[D+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",D+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[D+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",D+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[D+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",D+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return B?Y[I][0]:Y[I][1]}x.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(D,H){return"D"===H?D+"\u0935\u0947\u0930":D},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(D,H){return 12===D&&(D=0),"\u0930\u093e\u0924\u0940"===H?D<4?D:D+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===H?D:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===H?D>12?D:D+12:"\u0938\u093e\u0902\u091c\u0947"===H?D+12:void 0},meridiem:function(D,H,I){return D<4?"\u0930\u093e\u0924\u0940":D<12?"\u0938\u0915\u093e\u0933\u0940\u0902":D<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":D<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(E(5439))},2545:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={s:["thoddea sekondamni","thodde sekond"],ss:[D+" sekondamni",D+" sekond"],m:["eka mintan","ek minut"],mm:[D+" mintamni",D+" mintam"],h:["eka voran","ek vor"],hh:[D+" voramni",D+" voram"],d:["eka disan","ek dis"],dd:[D+" disamni",D+" dis"],M:["eka mhoinean","ek mhoino"],MM:[D+" mhoineamni",D+" mhoine"],y:["eka vorsan","ek voros"],yy:[D+" vorsamni",D+" vorsam"]};return B?Y[I][0]:Y[I][1]}x.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(D,H){return"D"===H?D+"er":D},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(D,H){return 12===D&&(D=0),"rati"===H?D<4?D:D+12:"sokallim"===H?D:"donparam"===H?D>12?D:D+12:"sanje"===H?D+12:void 0},meridiem:function(D,H,I){return D<4?"rati":D<12?"sokallim":D<16?"donparam":D<20?"sanje":"rati"}})}(E(5439))},2641:function(z,W,E){!function(x){"use strict";var n={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},P={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};x.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(H){return H.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u0ab0\u0abe\u0aa4"===I?H<4?H:H+12:"\u0ab8\u0ab5\u0abe\u0ab0"===I?H:"\u0aac\u0aaa\u0acb\u0ab0"===I?H>=10?H:H+12:"\u0ab8\u0abe\u0a82\u0a9c"===I?H+12:void 0},meridiem:function(H,I,B){return H<4?"\u0ab0\u0abe\u0aa4":H<10?"\u0ab8\u0ab5\u0abe\u0ab0":H<17?"\u0aac\u0aaa\u0acb\u0ab0":H<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(E(5439))},7536:function(z,W,E){!function(x){"use strict";x.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(P){return 2===P?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":P+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(P){return 2===P?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":P+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(P){return 2===P?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":P+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(P){return 2===P?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":P%10==0&&10!==P?P+" \u05e9\u05e0\u05d4":P+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(P){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(P)},meridiem:function(P,D,H){return P<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":P<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":P<12?H?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":P<18?H?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(E(5439))},6335:function(z,W,E){!function(x){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},P={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},D=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];x.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:D,longMonthsParse:D,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(B){return B.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(Y){return P[Y]})},postformat:function(B){return B.replace(/\d/g,function(Y){return n[Y]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(B,Y){return 12===B&&(B=0),"\u0930\u093e\u0924"===Y?B<4?B:B+12:"\u0938\u0941\u092c\u0939"===Y?B:"\u0926\u094b\u092a\u0939\u0930"===Y?B>=10?B:B+12:"\u0936\u093e\u092e"===Y?B+12:void 0},meridiem:function(B,Y,G){return B<4?"\u0930\u093e\u0924":B<10?"\u0938\u0941\u092c\u0939":B<17?"\u0926\u094b\u092a\u0939\u0930":B<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(E(5439))},7458:function(z,W,E){!function(x){"use strict";function n(D,H,I){var B=D+" ";switch(I){case"ss":return B+(1===D?"sekunda":2===D||3===D||4===D?"sekunde":"sekundi");case"m":return H?"jedna minuta":"jedne minute";case"mm":return B+(1===D?"minuta":2===D||3===D||4===D?"minute":"minuta");case"h":return H?"jedan sat":"jednog sata";case"hh":return B+(1===D?"sat":2===D||3===D||4===D?"sata":"sati");case"dd":return B+(1===D?"dan":"dana");case"MM":return B+(1===D?"mjesec":2===D||3===D||4===D?"mjeseca":"mjeseci");case"yy":return B+(1===D?"godina":2===D||3===D||4===D?"godine":"godina")}}x.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6540:function(z,W,E){!function(x){"use strict";var n="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function P(I,B,Y,G){var ee=I;switch(Y){case"s":return G||B?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return ee+(G||B)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(G||B?" perc":" perce");case"mm":return ee+(G||B?" perc":" perce");case"h":return"egy"+(G||B?" \xf3ra":" \xf3r\xe1ja");case"hh":return ee+(G||B?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(G||B?" nap":" napja");case"dd":return ee+(G||B?" nap":" napja");case"M":return"egy"+(G||B?" h\xf3nap":" h\xf3napja");case"MM":return ee+(G||B?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(G||B?" \xe9v":" \xe9ve");case"yy":return ee+(G||B?" \xe9v":" \xe9ve")}return""}function D(I){return(I?"":"[m\xfalt] ")+"["+n[this.day()]+"] LT[-kor]"}x.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(I){return"u"===I.charAt(1).toLowerCase()},meridiem:function(I,B,Y){return I<12?!0===Y?"de":"DE":!0===Y?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return D.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return D.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:P,ss:P,m:P,mm:P,h:P,hh:P,d:P,dd:P,M:P,MM:P,y:P,yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},5283:function(z,W,E){!function(x){"use strict";x.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(P){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(P)},meridiem:function(P){return P<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":P<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":P<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(P,D){switch(D){case"DDD":case"w":case"W":case"DDDo":return 1===P?P+"-\u056b\u0576":P+"-\u0580\u0564";default:return P}},week:{dow:1,doy:7}})}(E(5439))},8780:function(z,W,E){!function(x){"use strict";x.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(P,D){return 12===P&&(P=0),"pagi"===D?P:"siang"===D?P>=11?P:P+12:"sore"===D||"malam"===D?P+12:void 0},meridiem:function(P,D,H){return P<11?"pagi":P<15?"siang":P<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(E(5439))},4205:function(z,W,E){!function(x){"use strict";function n(H){return H%100==11||H%10!=1}function P(H,I,B,Y){var G=H+" ";switch(B){case"s":return I||Y?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return n(H)?G+(I||Y?"sek\xfandur":"sek\xfandum"):G+"sek\xfanda";case"m":return I?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return n(H)?G+(I||Y?"m\xedn\xfatur":"m\xedn\xfatum"):I?G+"m\xedn\xfata":G+"m\xedn\xfatu";case"hh":return n(H)?G+(I||Y?"klukkustundir":"klukkustundum"):G+"klukkustund";case"d":return I?"dagur":Y?"dag":"degi";case"dd":return n(H)?I?G+"dagar":G+(Y?"daga":"d\xf6gum"):I?G+"dagur":G+(Y?"dag":"degi");case"M":return I?"m\xe1nu\xf0ur":Y?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return n(H)?I?G+"m\xe1nu\xf0ir":G+(Y?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):I?G+"m\xe1nu\xf0ur":G+(Y?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return I||Y?"\xe1r":"\xe1ri";case"yy":return n(H)?G+(I||Y?"\xe1r":"\xe1rum"):G+(I||Y?"\xe1r":"\xe1ri")}}x.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:P,ss:P,m:P,mm:P,h:"klukkustund",hh:P,d:P,dd:P,M:P,MM:P,y:P,yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9985:function(z,W,E){!function(x){"use strict";x.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(P){return(/^[0-9].+$/.test(P)?"tra":"in")+" "+P},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},4211:function(z,W,E){!function(x){"use strict";x.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},1003:function(z,W,E){!function(x){"use strict";x.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(P,D){return"\u5143"===D[1]?1:parseInt(D[1]||P,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(P){return"\u5348\u5f8c"===P},meridiem:function(P,D,H){return P<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(P){return P.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(P){return this.week()!==P.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(P,D){switch(D){case"y":return 1===P?"\u5143\u5e74":P+"\u5e74";case"d":case"D":case"DDD":return P+"\u65e5";default:return P}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(E(5439))},420:function(z,W,E){!function(x){"use strict";x.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(P,D){return 12===P&&(P=0),"enjing"===D?P:"siyang"===D?P>=11?P:P+12:"sonten"===D||"ndalu"===D?P+12:void 0},meridiem:function(P,D,H){return P<11?"enjing":P<15?"siyang":P<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(E(5439))},851:function(z,W,E){!function(x){"use strict";x.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(P){return P.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(D,H,I){return"\u10d8"===I?H+"\u10e8\u10d8":H+I+"\u10e8\u10d8"})},past:function(P){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(P)?P.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(P)?P.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):P},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(P){return 0===P?P:1===P?P+"-\u10da\u10d8":P<20||P<=100&&P%20==0||P%100==0?"\u10db\u10d4-"+P:P+"-\u10d4"},week:{dow:1,doy:7}})}(E(5439))},6074:function(z,W,E){!function(x){"use strict";var n={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};x.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},3343:function(z,W,E){!function(x){"use strict";var n={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},P={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};x.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(H){return"\u179b\u17d2\u1784\u17b6\u1785"===H},meridiem:function(H,I,B){return H<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(H){return H.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},week:{dow:1,doy:4}})}(E(5439))},4799:function(z,W,E){!function(x){"use strict";var n={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},P={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};x.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(H){return H.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===I?H<4?H:H+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===I?H:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===I?H>=10?H:H+12:"\u0cb8\u0c82\u0c9c\u0cc6"===I?H+12:void 0},meridiem:function(H,I,B){return H<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":H<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":H<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":H<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(H){return H+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(E(5439))},3549:function(z,W,E){!function(x){"use strict";x.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"\uc77c";case"M":return P+"\uc6d4";case"w":case"W":return P+"\uc8fc";default:return P}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(P){return"\uc624\ud6c4"===P},meridiem:function(P,D,H){return P<12?"\uc624\uc804":"\uc624\ud6c4"}})}(E(5439))},1037:function(z,W,E){!function(x){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},P={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},D=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];x.defineLocale("ku",{months:D,monthsShort:D,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(I){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(I)},meridiem:function(I,B,Y){return I<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(I){return I.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(B){return P[B]}).replace(/\u060c/g,",")},postformat:function(I){return I.replace(/\d/g,function(B){return n[B]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},3125:function(z,W,E){!function(x){"use strict";var n={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};x.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},9586:function(z,W,E){!function(x){"use strict";function n(B,Y,G,ee){var te={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return Y?te[G][0]:te[G][1]}function H(B){if(B=parseInt(B,10),isNaN(B))return!1;if(B<0)return!0;if(B<10)return 4<=B&&B<=7;if(B<100){var Y=B%10;return H(0===Y?B/10:Y)}if(B<1e4){for(;B>=10;)B/=10;return H(B)}return H(B/=1e3)}x.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function P(B){return H(B.substr(0,B.indexOf(" ")))?"a "+B:"an "+B},past:function D(B){return H(B.substr(0,B.indexOf(" ")))?"viru "+B:"virun "+B},s:"e puer Sekonnen",ss:"%d Sekonnen",m:n,mm:"%d Minutten",h:n,hh:"%d Stonnen",d:n,dd:"%d Deeg",M:n,MM:"%d M\xe9int",y:n,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2349:function(z,W,E){!function(x){"use strict";x.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(P){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===P},meridiem:function(P,D,H){return P<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(P){return"\u0e97\u0eb5\u0ec8"+P}})}(E(5439))},2400:function(z,W,E){!function(x){"use strict";var n={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function D(G,ee,te,ae){return ee?I(te)[0]:ae?I(te)[1]:I(te)[2]}function H(G){return G%10==0||G>10&&G<20}function I(G){return n[G].split("_")}function B(G,ee,te,ae){var ue=G+" ";return 1===G?ue+D(0,ee,te[0],ae):ee?ue+(H(G)?I(te)[1]:I(te)[0]):ae?ue+I(te)[1]:ue+(H(G)?I(te)[1]:I(te)[2])}x.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function P(G,ee,te,ae){return ee?"kelios sekund\u0117s":ae?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:B,m:D,mm:B,h:D,hh:B,d:D,dd:B,M:D,MM:B,y:D,yy:B},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(G){return G+"-oji"},week:{dow:1,doy:4}})}(E(5439))},9991:function(z,W,E){!function(x){"use strict";var n={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function P(Y,G,ee){return ee?G%10==1&&G%100!=11?Y[2]:Y[3]:G%10==1&&G%100!=11?Y[0]:Y[1]}function D(Y,G,ee){return Y+" "+P(n[ee],Y,G)}function H(Y,G,ee){return P(n[ee],Y,G)}x.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function I(Y,G){return G?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:D,m:H,mm:D,h:H,hh:D,d:H,dd:D,M:H,MM:D,y:H,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8477:function(z,W,E){!function(x){"use strict";var n={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(D,H){return 1===D?H[0]:D>=2&&D<=4?H[1]:H[2]},translate:function(D,H,I){var B=n.words[I];return 1===I.length?H?B[0]:B[1]:D+" "+n.correctGrammaticalCase(D,B)}};x.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:"dan",dd:n.translate,M:"mjesec",MM:n.translate,y:"godinu",yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},5118:function(z,W,E){!function(x){"use strict";x.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},5943:function(z,W,E){!function(x){"use strict";x.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(P){var D=P%10,H=P%100;return 0===P?P+"-\u0435\u0432":0===H?P+"-\u0435\u043d":H>10&&H<20?P+"-\u0442\u0438":1===D?P+"-\u0432\u0438":2===D?P+"-\u0440\u0438":7===D||8===D?P+"-\u043c\u0438":P+"-\u0442\u0438"},week:{dow:1,doy:7}})}(E(5439))},3849:function(z,W,E){!function(x){"use strict";x.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(P,D){return 12===P&&(P=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===D&&P>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===D||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===D?P+12:P},meridiem:function(P,D,H){return P<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":P<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":P<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":P<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(E(5439))},1977:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){switch(I){case"s":return H?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return D+(H?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return D+(H?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return D+(H?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return D+(H?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return D+(H?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return D+(H?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return D}}x.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(D){return"\u04ae\u0425"===D},meridiem:function(D,H,I){return D<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(D,H){switch(H){case"d":case"D":case"DDD":return D+" \u04e9\u0434\u04e9\u0440";default:return D}}})}(E(5439))},6184:function(z,W,E){!function(x){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},P={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function D(I,B,Y,G){var ee="";if(B)switch(Y){case"s":ee="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":ee="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":ee="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":ee="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":ee="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":ee="%d \u0924\u093e\u0938";break;case"d":ee="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":ee="%d \u0926\u093f\u0935\u0938";break;case"M":ee="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":ee="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":ee="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":ee="%d \u0935\u0930\u094d\u0937\u0947"}else switch(Y){case"s":ee="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":ee="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":ee="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":ee="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":ee="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":ee="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":ee="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":ee="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":ee="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":ee="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":ee="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":ee="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return ee.replace(/%d/i,I)}x.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},preparse:function(I){return I.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(B){return P[B]})},postformat:function(I){return I.replace(/\d/g,function(B){return n[B]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(I,B){return 12===I&&(I=0),"\u092a\u0939\u093e\u091f\u0947"===B||"\u0938\u0915\u093e\u0933\u0940"===B?I:"\u0926\u0941\u092a\u093e\u0930\u0940"===B||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===B||"\u0930\u093e\u0924\u094d\u0930\u0940"===B?I>=12?I:I+12:void 0},meridiem:function(I,B,Y){return I>=0&&I<6?"\u092a\u0939\u093e\u091f\u0947":I<12?"\u0938\u0915\u093e\u0933\u0940":I<17?"\u0926\u0941\u092a\u093e\u0930\u0940":I<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(E(5439))},4524:function(z,W,E){!function(x){"use strict";x.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(P,D){return 12===P&&(P=0),"pagi"===D?P:"tengahari"===D?P>=11?P:P+12:"petang"===D||"malam"===D?P+12:void 0},meridiem:function(P,D,H){return P<11?"pagi":P<15?"tengahari":P<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(E(5439))},485:function(z,W,E){!function(x){"use strict";x.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(P,D){return 12===P&&(P=0),"pagi"===D?P:"tengahari"===D?P>=11?P:P+12:"petang"===D||"malam"===D?P+12:void 0},meridiem:function(P,D,H){return P<11?"pagi":P<15?"tengahari":P<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(E(5439))},6681:function(z,W,E){!function(x){"use strict";x.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},2024:function(z,W,E){!function(x){"use strict";var n={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},P={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};x.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(H){return H.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},week:{dow:1,doy:4}})}(E(5439))},2688:function(z,W,E){!function(x){"use strict";x.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8914:function(z,W,E){!function(x){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},P={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};x.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(H){return H.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u0930\u093e\u0924\u093f"===I?H<4?H:H+12:"\u092c\u093f\u0939\u093e\u0928"===I?H:"\u0926\u093f\u0909\u0901\u0938\u094b"===I?H>=10?H:H+12:"\u0938\u093e\u0901\u091d"===I?H+12:void 0},meridiem:function(H,I,B){return H<3?"\u0930\u093e\u0924\u093f":H<12?"\u092c\u093f\u0939\u093e\u0928":H<16?"\u0926\u093f\u0909\u0901\u0938\u094b":H<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(E(5439))},2272:function(z,W,E){!function(x){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),P="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),D=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],H=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;x.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(B){return B+(1===B||8===B||B>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1758:function(z,W,E){!function(x){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),P="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),D=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],H=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;x.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(B){return B+(1===B||8===B||B>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1510:function(z,W,E){!function(x){"use strict";x.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2797:function(z,W,E){!function(x){"use strict";x.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(P,D){var H=1===P?"r":2===P?"n":3===P?"r":4===P?"t":"\xe8";return("w"===D||"W"===D)&&(H="a"),P+H},week:{dow:1,doy:4}})}(E(5439))},7944:function(z,W,E){!function(x){"use strict";var n={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},P={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};x.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(H){return H.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u0a30\u0a3e\u0a24"===I?H<4?H:H+12:"\u0a38\u0a35\u0a47\u0a30"===I?H:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===I?H>=10?H:H+12:"\u0a38\u0a3c\u0a3e\u0a2e"===I?H+12:void 0},meridiem:function(H,I,B){return H<4?"\u0a30\u0a3e\u0a24":H<10?"\u0a38\u0a35\u0a47\u0a30":H<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":H<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(E(5439))},1605:function(z,W,E){!function(x){"use strict";var n="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),P="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),D=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function H(Y){return Y%10<5&&Y%10>1&&~~(Y/10)%10!=1}function I(Y,G,ee){var te=Y+" ";switch(ee){case"ss":return te+(H(Y)?"sekundy":"sekund");case"m":return G?"minuta":"minut\u0119";case"mm":return te+(H(Y)?"minuty":"minut");case"h":return G?"godzina":"godzin\u0119";case"hh":return te+(H(Y)?"godziny":"godzin");case"ww":return te+(H(Y)?"tygodnie":"tygodni");case"MM":return te+(H(Y)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return te+(H(Y)?"lata":"lat")}}x.defineLocale("pl",{months:function(Y,G){return Y?/D MMMM/.test(G)?P[Y.month()]:n[Y.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:I,m:I,mm:I,h:I,hh:I,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:I,M:"miesi\u0105c",MM:I,y:"rok",yy:I},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3840:function(z,W,E){!function(x){"use strict";x.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(E(5439))},4225:function(z,W,E){!function(x){"use strict";x.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},5128:function(z,W,E){!function(x){"use strict";function n(D,H,I){var Y=" ";return(D%100>=20||D>=100&&D%100==0)&&(Y=" de "),D+Y+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[I]}x.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:n,m:"un minut",mm:n,h:"o or\u0103",hh:n,d:"o zi",dd:n,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:n,M:"o lun\u0103",MM:n,y:"un an",yy:n},week:{dow:1,doy:7}})}(E(5439))},5127:function(z,W,E){!function(x){"use strict";function P(I,B,Y){return"m"===Y?B?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":I+" "+function n(I,B){var Y=I.split("_");return B%10==1&&B%100!=11?Y[0]:B%10>=2&&B%10<=4&&(B%100<10||B%100>=20)?Y[1]:Y[2]}({ss:B?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:B?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[Y],+I)}var D=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];x.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:D,longMonthsParse:D,shortMonthsParse:D,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(I){if(I.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(I){if(I.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:P,m:P,mm:P,h:"\u0447\u0430\u0441",hh:P,d:"\u0434\u0435\u043d\u044c",dd:P,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:P,M:"\u043c\u0435\u0441\u044f\u0446",MM:P,y:"\u0433\u043e\u0434",yy:P},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(I){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(I)},meridiem:function(I,B,Y){return I<4?"\u043d\u043e\u0447\u0438":I<12?"\u0443\u0442\u0440\u0430":I<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(I,B){switch(B){case"M":case"d":case"DDD":return I+"-\u0439";case"D":return I+"-\u0433\u043e";case"w":case"W":return I+"-\u044f";default:return I}},week:{dow:1,doy:4}})}(E(5439))},2525:function(z,W,E){!function(x){"use strict";var n=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],P=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];x.defineLocale("sd",{months:n,monthsShort:n,weekdays:P,weekdaysShort:P,weekdaysMin:P,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(H){return"\u0634\u0627\u0645"===H},meridiem:function(H,I,B){return H<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(H){return H.replace(/\u060c/g,",")},postformat:function(H){return H.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(E(5439))},9893:function(z,W,E){!function(x){"use strict";x.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3123:function(z,W,E){!function(x){"use strict";x.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(P){return P+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(P){return"\u0db4.\u0dc0."===P||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===P},meridiem:function(P,D,H){return P>11?H?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":H?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(E(5439))},3027:function(z,W,E){!function(x){"use strict";var n="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),P="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function D(B){return B>1&&B<5}function H(B,Y,G,ee){var te=B+" ";switch(G){case"s":return Y||ee?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return Y||ee?te+(D(B)?"sekundy":"sek\xfand"):te+"sekundami";case"m":return Y?"min\xfata":ee?"min\xfatu":"min\xfatou";case"mm":return Y||ee?te+(D(B)?"min\xfaty":"min\xfat"):te+"min\xfatami";case"h":return Y?"hodina":ee?"hodinu":"hodinou";case"hh":return Y||ee?te+(D(B)?"hodiny":"hod\xedn"):te+"hodinami";case"d":return Y||ee?"de\u0148":"d\u0148om";case"dd":return Y||ee?te+(D(B)?"dni":"dn\xed"):te+"d\u0148ami";case"M":return Y||ee?"mesiac":"mesiacom";case"MM":return Y||ee?te+(D(B)?"mesiace":"mesiacov"):te+"mesiacmi";case"y":return Y||ee?"rok":"rokom";case"yy":return Y||ee?te+(D(B)?"roky":"rokov"):te+"rokmi"}}x.defineLocale("sk",{months:n,monthsShort:P,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:H,ss:H,m:H,mm:H,h:H,hh:H,d:H,dd:H,M:H,MM:H,y:H,yy:H},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8106:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y=D+" ";switch(I){case"s":return H||B?"nekaj sekund":"nekaj sekundami";case"ss":return Y+(1===D?H?"sekundo":"sekundi":2===D?H||B?"sekundi":"sekundah":D<5?H||B?"sekunde":"sekundah":"sekund");case"m":return H?"ena minuta":"eno minuto";case"mm":return Y+(1===D?H?"minuta":"minuto":2===D?H||B?"minuti":"minutama":D<5?H||B?"minute":"minutami":H||B?"minut":"minutami");case"h":return H?"ena ura":"eno uro";case"hh":return Y+(1===D?H?"ura":"uro":2===D?H||B?"uri":"urama":D<5?H||B?"ure":"urami":H||B?"ur":"urami");case"d":return H||B?"en dan":"enim dnem";case"dd":return Y+(1===D?H||B?"dan":"dnem":2===D?H||B?"dni":"dnevoma":H||B?"dni":"dnevi");case"M":return H||B?"en mesec":"enim mesecem";case"MM":return Y+(1===D?H||B?"mesec":"mesecem":2===D?H||B?"meseca":"mesecema":D<5?H||B?"mesece":"meseci":H||B?"mesecev":"meseci");case"y":return H||B?"eno leto":"enim letom";case"yy":return Y+(1===D?H||B?"leto":"letom":2===D?H||B?"leti":"letoma":D<5?H||B?"leta":"leti":H||B?"let":"leti")}}x.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},8799:function(z,W,E){!function(x){"use strict";x.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(P){return"M"===P.charAt(0)},meridiem:function(P,D,H){return P<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2872:function(z,W,E){!function(x){"use strict";var n={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(D,H){return D%10>=1&&D%10<=4&&(D%100<10||D%100>=20)?D%10==1?H[0]:H[1]:H[2]},translate:function(D,H,I,B){var G,Y=n.words[I];return 1===I.length?"y"===I&&H?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":B||H?Y[0]:Y[1]:(G=n.correctGrammaticalCase(D,Y),"yy"===I&&H&&"\u0433\u043e\u0434\u0438\u043d\u0443"===G?D+" \u0433\u043e\u0434\u0438\u043d\u0430":D+" "+G)}};x.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},7949:function(z,W,E){!function(x){"use strict";var n={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(D,H){return D%10>=1&&D%10<=4&&(D%100<10||D%100>=20)?D%10==1?H[0]:H[1]:H[2]},translate:function(D,H,I,B){var G,Y=n.words[I];return 1===I.length?"y"===I&&H?"jedna godina":B||H?Y[0]:Y[1]:(G=n.correctGrammaticalCase(D,Y),"yy"===I&&H&&"godinu"===G?D+" godina":D+" "+G)}};x.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6167:function(z,W,E){!function(x){"use strict";x.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(P,D,H){return P<11?"ekuseni":P<15?"emini":P<19?"entsambama":"ebusuku"},meridiemHour:function(P,D){return 12===P&&(P=0),"ekuseni"===D?P:"emini"===D?P>=11?P:P+12:"entsambama"===D||"ebusuku"===D?0===P?0:P+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(E(5439))},9713:function(z,W,E){!function(x){"use strict";x.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?":e":1===D||2===D?":a":":e")},week:{dow:1,doy:4}})}(E(5439))},1982:function(z,W,E){!function(x){"use strict";x.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(E(5439))},2732:function(z,W,E){!function(x){"use strict";var n={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},P={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};x.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(H){return H+"\u0bb5\u0ba4\u0bc1"},preparse:function(H){return H.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(H,I,B){return H<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":H<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":H<10?" \u0b95\u0bbe\u0bb2\u0bc8":H<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":H<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":H<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(H,I){return 12===H&&(H=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===I?H<2?H:H+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===I||"\u0b95\u0bbe\u0bb2\u0bc8"===I||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===I&&H>=10?H:H+12},week:{dow:0,doy:6}})}(E(5439))},3636:function(z,W,E){!function(x){"use strict";x.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===D?P<4?P:P+12:"\u0c09\u0c26\u0c2f\u0c02"===D?P:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===D?P>=10?P:P+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===D?P+12:void 0},meridiem:function(P,D,H){return P<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":P<10?"\u0c09\u0c26\u0c2f\u0c02":P<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":P<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(E(5439))},2115:function(z,W,E){!function(x){"use strict";x.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},9801:function(z,W,E){!function(x){"use strict";var n={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};x.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(D,H){return 12===D&&(D=0),"\u0448\u0430\u0431"===H?D<4?D:D+12:"\u0441\u0443\u0431\u04b3"===H?D:"\u0440\u04ef\u0437"===H?D>=11?D:D+12:"\u0431\u0435\u0433\u043e\u04b3"===H?D+12:void 0},meridiem:function(D,H,I){return D<4?"\u0448\u0430\u0431":D<11?"\u0441\u0443\u0431\u04b3":D<16?"\u0440\u04ef\u0437":D<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},2868:function(z,W,E){!function(x){"use strict";x.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(P){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===P},meridiem:function(P,D,H){return P<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(E(5439))},1310:function(z,W,E){!function(x){"use strict";var n={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};x.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(D,H){switch(H){case"d":case"D":case"Do":case"DD":return D;default:if(0===D)return D+"'unjy";var I=D%10;return D+(n[I]||n[D%100-I]||n[D>=100?100:null])}},week:{dow:1,doy:7}})}(E(5439))},2360:function(z,W,E){!function(x){"use strict";x.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(P){return P},week:{dow:1,doy:4}})}(E(5439))},6645:function(z,W,E){!function(x){"use strict";var n="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function H(Y,G,ee,te){var ae=function I(Y){var G=Math.floor(Y%1e3/100),ee=Math.floor(Y%100/10),te=Y%10,ae="";return G>0&&(ae+=n[G]+"vatlh"),ee>0&&(ae+=(""!==ae?" ":"")+n[ee]+"maH"),te>0&&(ae+=(""!==ae?" ":"")+n[te]),""===ae?"pagh":ae}(Y);switch(ee){case"ss":return ae+" lup";case"mm":return ae+" tup";case"hh":return ae+" rep";case"dd":return ae+" jaj";case"MM":return ae+" jar";case"yy":return ae+" DIS"}}x.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function P(Y){var G=Y;return-1!==Y.indexOf("jaj")?G.slice(0,-3)+"leS":-1!==Y.indexOf("jar")?G.slice(0,-3)+"waQ":-1!==Y.indexOf("DIS")?G.slice(0,-3)+"nem":G+" pIq"},past:function D(Y){var G=Y;return-1!==Y.indexOf("jaj")?G.slice(0,-3)+"Hu\u2019":-1!==Y.indexOf("jar")?G.slice(0,-3)+"wen":-1!==Y.indexOf("DIS")?G.slice(0,-3)+"ben":G+" ret"},s:"puS lup",ss:H,m:"wa\u2019 tup",mm:H,h:"wa\u2019 rep",hh:H,d:"wa\u2019 jaj",dd:H,M:"wa\u2019 jar",MM:H,y:"wa\u2019 DIS",yy:H},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8374:function(z,W,E){!function(x){"use strict";var n={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};x.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(D,H,I){return D<12?I?"\xf6\xf6":"\xd6\xd6":I?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(D){return"\xf6s"===D||"\xd6S"===D},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(D,H){switch(H){case"d":case"D":case"Do":case"DD":return D;default:if(0===D)return D+"'\u0131nc\u0131";var I=D%10;return D+(n[I]||n[D%100-I]||n[D>=100?100:null])}},week:{dow:1,doy:7}})}(E(5439))},256:function(z,W,E){!function(x){"use strict";function P(D,H,I,B){var Y={s:["viensas secunds","'iensas secunds"],ss:[D+" secunds",D+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[D+" m\xeduts",D+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[D+" \xfeoras",D+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[D+" ziuas",D+" ziuas"],M:["'n mes","'iens mes"],MM:[D+" mesen",D+" mesen"],y:["'n ar","'iens ar"],yy:[D+" ars",D+" ars"]};return B||H?Y[I][0]:Y[I][1]}x.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(D){return"d'o"===D.toLowerCase()},meridiem:function(D,H,I){return D>11?I?"d'o":"D'O":I?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:P,ss:P,m:P,mm:P,h:P,hh:P,d:P,dd:P,M:P,MM:P,y:P,yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},1631:function(z,W,E){!function(x){"use strict";x.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(E(5439))},1595:function(z,W,E){!function(x){"use strict";x.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(E(5439))},6050:function(z,W,E){!function(x){"use strict";x.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===D||"\u0633\u06d5\u06be\u06d5\u0631"===D||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===D?P:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===D||"\u0643\u06d5\u0686"===D?P+12:P>=11?P:P+12},meridiem:function(P,D,H){var I=100*P+D;return I<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":I<900?"\u0633\u06d5\u06be\u06d5\u0631":I<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":I<1230?"\u0686\u06c8\u0634":I<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return P+"-\u06be\u06d5\u067e\u062a\u06d5";default:return P}},preparse:function(P){return P.replace(/\u060c/g,",")},postformat:function(P){return P.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(E(5439))},5610:function(z,W,E){!function(x){"use strict";function P(B,Y,G){return"m"===G?Y?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===G?Y?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":B+" "+function n(B,Y){var G=B.split("_");return Y%10==1&&Y%100!=11?G[0]:Y%10>=2&&Y%10<=4&&(Y%100<10||Y%100>=20)?G[1]:G[2]}({ss:Y?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:Y?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:Y?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[G],+B)}function H(B){return function(){return B+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}x.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function D(B,Y){var G={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===B?G.nominative.slice(1,7).concat(G.nominative.slice(0,1)):B?G[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(Y)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(Y)?"genitive":"nominative"][B.day()]:G.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:H("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:H("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:H("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:H("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return H("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return H("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:P,m:P,mm:P,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:P,d:"\u0434\u0435\u043d\u044c",dd:P,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:P,y:"\u0440\u0456\u043a",yy:P},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(B){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(B)},meridiem:function(B,Y,G){return B<4?"\u043d\u043e\u0447\u0456":B<12?"\u0440\u0430\u043d\u043a\u0443":B<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(B,Y){switch(Y){case"M":case"d":case"DDD":case"w":case"W":return B+"-\u0439";case"D":return B+"-\u0433\u043e";default:return B}},week:{dow:1,doy:7}})}(E(5439))},6077:function(z,W,E){!function(x){"use strict";var n=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],P=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];x.defineLocale("ur",{months:n,monthsShort:n,weekdays:P,weekdaysShort:P,weekdaysMin:P,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(H){return"\u0634\u0627\u0645"===H},meridiem:function(H,I,B){return H<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(H){return H.replace(/\u060c/g,",")},postformat:function(H){return H.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(E(5439))},2207:function(z,W,E){!function(x){"use strict";x.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(E(5439))},2862:function(z,W,E){!function(x){"use strict";x.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(E(5439))},8093:function(z,W,E){!function(x){"use strict";x.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(P){return/^ch$/i.test(P)},meridiem:function(P,D,H){return P<12?H?"sa":"SA":H?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(P){return P},week:{dow:1,doy:4}})}(E(5439))},5590:function(z,W,E){!function(x){"use strict";x.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},9058:function(z,W,E){!function(x){"use strict";x.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(E(5439))},7908:function(z,W,E){!function(x){"use strict";x.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?P:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?P+12:P>=11?P:P+12},meridiem:function(P,D,H){var I=100*P+D;return I<600?"\u51cc\u6668":I<900?"\u65e9\u4e0a":I<1130?"\u4e0a\u5348":I<1230?"\u4e2d\u5348":I<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(P){return P.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(P){return this.week()!==P.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"\u65e5";case"M":return P+"\u6708";case"w":case"W":return P+"\u5468";default:return P}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(E(5439))},8867:function(z,W,E){!function(x){"use strict";x.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?P:"\u4e2d\u5348"===D?P>=11?P:P+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?P+12:void 0},meridiem:function(P,D,H){var I=100*P+D;return I<600?"\u51cc\u6668":I<900?"\u65e9\u4e0a":I<1200?"\u4e0a\u5348":1200===I?"\u4e2d\u5348":I<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"\u65e5";case"M":return P+"\u6708";case"w":case"W":return P+"\u9031";default:return P}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},1133:function(z,W,E){!function(x){"use strict";x.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?P:"\u4e2d\u5348"===D?P>=11?P:P+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?P+12:void 0},meridiem:function(P,D,H){var I=100*P+D;return I<600?"\u51cc\u6668":I<900?"\u65e9\u4e0a":I<1130?"\u4e0a\u5348":I<1230?"\u4e2d\u5348":I<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"\u65e5";case"M":return P+"\u6708";case"w":case"W":return P+"\u9031";default:return P}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},3291:function(z,W,E){!function(x){"use strict";x.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?P:"\u4e2d\u5348"===D?P>=11?P:P+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?P+12:void 0},meridiem:function(P,D,H){var I=100*P+D;return I<600?"\u51cc\u6668":I<900?"\u65e9\u4e0a":I<1130?"\u4e0a\u5348":I<1230?"\u4e2d\u5348":I<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"\u65e5";case"M":return P+"\u6708";case"w":case"W":return P+"\u9031";default:return P}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},5439:function(z,W,E){(z=E.nmd(z)).exports=function(){"use strict";var x,_e;function n(){return x.apply(null,arguments)}function D(S){return S instanceof Array||"[object Array]"===Object.prototype.toString.call(S)}function H(S){return null!=S&&"[object Object]"===Object.prototype.toString.call(S)}function I(S,k){return Object.prototype.hasOwnProperty.call(S,k)}function B(S){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(S).length;var k;for(k in S)if(I(S,k))return!1;return!0}function Y(S){return void 0===S}function G(S){return"number"==typeof S||"[object Number]"===Object.prototype.toString.call(S)}function ee(S){return S instanceof Date||"[object Date]"===Object.prototype.toString.call(S)}function te(S,k){var q,V=[],Q=S.length;for(q=0;q>>0;for(q=0;q0)for(V=0;V=0?V?"+":"":"-")+Math.pow(10,Math.max(0,k-q.length)).toString().substr(1)+q}var Kt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Qe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ci={},Mi={};function Ge(S,k,V,q){var Q=q;"string"==typeof q&&(Q=function(){return this[q]()}),S&&(Mi[S]=Q),k&&(Mi[k[0]]=function(){return Bt(Q.apply(this,arguments),k[1],k[2])}),V&&(Mi[V]=function(){return this.localeData().ordinal(Q.apply(this,arguments),S)})}function Xt(S){return S.match(/\[[\s\S]/)?S.replace(/^\[|\]$/g,""):S.replace(/\\/g,"")}function En(S,k){return S.isValid()?(k=aa(k,S.localeData()),ci[k]=ci[k]||function Cr(S){var V,q,k=S.match(Kt);for(V=0,q=k.length;V=0&&Qe.test(S);)S=S.replace(Qe,q),Qe.lastIndex=0,V-=1;return S}var Ar={};function Wt(S,k){var V=S.toLowerCase();Ar[V]=Ar[V+"s"]=Ar[k]=S}function di(S){return"string"==typeof S?Ar[S]||Ar[S.toLowerCase()]:void 0}function Io(S){var V,q,k={};for(q in S)I(S,q)&&(V=di(q))&&(k[V]=S[q]);return k}var lr={};function zt(S,k){lr[S]=k}function oe(S){return S%4==0&&S%100!=0||S%400==0}function ie(S){return S<0?Math.ceil(S)||0:Math.floor(S)}function pe(S){var k=+S,V=0;return 0!==k&&isFinite(k)&&(V=ie(k)),V}function Ie(S,k){return function(V){return null!=V?(Dt(this,S,V),n.updateOffset(this,k),this):ft(this,S)}}function ft(S,k){return S.isValid()?S._d["get"+(S._isUTC?"UTC":"")+k]():NaN}function Dt(S,k,V){S.isValid()&&!isNaN(V)&&("FullYear"===k&&oe(S.year())&&1===S.month()&&29===S.date()?(V=pe(V),S._d["set"+(S._isUTC?"UTC":"")+k](V,S.month(),Se(V,S.month()))):S._d["set"+(S._isUTC?"UTC":"")+k](V))}var ti,In=/\d/,Ht=/\d\d/,Vi=/\d{3}/,yt=/\d{4}/,Gt=/[+-]?\d{6}/,wt=/\d\d?/,Qi=/\d\d\d\d?/,jr=/\d\d\d\d\d\d?/,Yn=/\d{1,3}/,Ur=/\d{1,4}/,vr=/[+-]?\d{1,6}/,cr=/\d+/,sa=/[+-]?\d+/,pd=/Z|[+-]\d\d:?\d\d/gi,us=/Z|[+-]\d\d(?::?\d\d)?/gi,Zn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function qe(S,k,V){ti[S]=fe(k)?k:function(q,Q){return q&&V?V:k}}function On(S,k){return I(ti,S)?ti[S](k._strict,k._locale):new RegExp(function We(S){return st(S.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(k,V,q,Q,ce){return V||q||Q||ce}))}(S))}function st(S){return S.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ti={};var Jt={};function xe(S,k){var V,Q,q=k;for("string"==typeof S&&(S=[S]),G(k)&&(q=function(ce,Ae){Ae[k]=pe(ce)}),Q=S.length,V=0;V68?1900:2e3)};var qr=Ie("FullYear",!0);function Hi(S,k,V,q,Q,ce,Ae){var ct;return S<100&&S>=0?(ct=new Date(S+400,k,V,q,Q,ce,Ae),isFinite(ct.getFullYear())&&ct.setFullYear(S)):ct=new Date(S,k,V,q,Q,ce,Ae),ct}function da(S){var k,V;return S<100&&S>=0?((V=Array.prototype.slice.call(arguments))[0]=S+400,k=new Date(Date.UTC.apply(null,V)),isFinite(k.getUTCFullYear())&&k.setUTCFullYear(S)):k=new Date(Date.UTC.apply(null,arguments)),k}function zs(S,k,V){var q=7+k-V;return-(7+da(S,0,q).getUTCDay()-k)%7+q-1}function hs(S,k,V,q,Q){var kt,rn,ct=1+7*(k-1)+(7+V-q)%7+zs(S,q,Q);return ct<=0?rn=Ki(kt=S-1)+ct:ct>Ki(S)?(kt=S+1,rn=ct-Ki(S)):(kt=S,rn=ct),{year:kt,dayOfYear:rn}}function ua(S,k,V){var ce,Ae,q=zs(S.year(),k,V),Q=Math.floor((S.dayOfYear()-q-1)/7)+1;return Q<1?ce=Q+Xi(Ae=S.year()-1,k,V):Q>Xi(S.year(),k,V)?(ce=Q-Xi(S.year(),k,V),Ae=S.year()+1):(Ae=S.year(),ce=Q),{week:ce,year:Ae}}function Xi(S,k,V){var q=zs(S,k,V),Q=zs(S+1,k,V);return(Ki(S)-q+Q)/7}Ge("w",["ww",2],"wo","week"),Ge("W",["WW",2],"Wo","isoWeek"),Wt("week","w"),Wt("isoWeek","W"),zt("week",5),zt("isoWeek",5),qe("w",wt),qe("ww",wt,Ht),qe("W",wt),qe("WW",wt,Ht),ln(["w","ww","W","WW"],function(S,k,V,q){k[q.substr(0,1)]=pe(S)});function md(S,k){return S.slice(k,7).concat(S.slice(0,k))}Ge("d",0,"do","day"),Ge("dd",0,0,function(S){return this.localeData().weekdaysMin(this,S)}),Ge("ddd",0,0,function(S){return this.localeData().weekdaysShort(this,S)}),Ge("dddd",0,0,function(S){return this.localeData().weekdays(this,S)}),Ge("e",0,0,"weekday"),Ge("E",0,0,"isoWeekday"),Wt("day","d"),Wt("weekday","e"),Wt("isoWeekday","E"),zt("day",11),zt("weekday",11),zt("isoWeekday",11),qe("d",wt),qe("e",wt),qe("E",wt),qe("dd",function(S,k){return k.weekdaysMinRegex(S)}),qe("ddd",function(S,k){return k.weekdaysShortRegex(S)}),qe("dddd",function(S,k){return k.weekdaysRegex(S)}),ln(["dd","ddd","dddd"],function(S,k,V,q){var Q=V._locale.weekdaysParse(S,q,V._strict);null!=Q?k.d=Q:re(V).invalidWeekday=S}),ln(["d","e","E"],function(S,k,V,q){k[q]=pe(S)});var vt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ql="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),zu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Va=Zn,wn=Zn,Oo=Zn;function ha(S,k,V){var q,Q,ce,Ae=S.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],q=0;q<7;++q)ce=ue([2e3,1]).day(q),this._minWeekdaysParse[q]=this.weekdaysMin(ce,"").toLocaleLowerCase(),this._shortWeekdaysParse[q]=this.weekdaysShort(ce,"").toLocaleLowerCase(),this._weekdaysParse[q]=this.weekdays(ce,"").toLocaleLowerCase();return V?"dddd"===k?-1!==(Q=rt.call(this._weekdaysParse,Ae))?Q:null:"ddd"===k?-1!==(Q=rt.call(this._shortWeekdaysParse,Ae))?Q:null:-1!==(Q=rt.call(this._minWeekdaysParse,Ae))?Q:null:"dddd"===k?-1!==(Q=rt.call(this._weekdaysParse,Ae))||-1!==(Q=rt.call(this._shortWeekdaysParse,Ae))||-1!==(Q=rt.call(this._minWeekdaysParse,Ae))?Q:null:"ddd"===k?-1!==(Q=rt.call(this._shortWeekdaysParse,Ae))||-1!==(Q=rt.call(this._weekdaysParse,Ae))||-1!==(Q=rt.call(this._minWeekdaysParse,Ae))?Q:null:-1!==(Q=rt.call(this._minWeekdaysParse,Ae))||-1!==(Q=rt.call(this._weekdaysParse,Ae))||-1!==(Q=rt.call(this._shortWeekdaysParse,Ae))?Q:null}function jo(){function S(Gn,Rr){return Rr.length-Gn.length}var ce,Ae,ct,kt,rn,k=[],V=[],q=[],Q=[];for(ce=0;ce<7;ce++)Ae=ue([2e3,1]).day(ce),ct=st(this.weekdaysMin(Ae,"")),kt=st(this.weekdaysShort(Ae,"")),rn=st(this.weekdays(Ae,"")),k.push(ct),V.push(kt),q.push(rn),Q.push(ct),Q.push(kt),Q.push(rn);k.sort(S),V.sort(S),q.sort(S),Q.sort(S),this._weekdaysRegex=new RegExp("^("+Q.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+V.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+k.join("|")+")","i")}function Zs(){return this.hours()%12||12}function ui(S,k){Ge(S,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),k)})}function No(S,k){return k._meridiemParse}Ge("H",["HH",2],0,"hour"),Ge("h",["hh",2],0,Zs),Ge("k",["kk",2],0,function Uo(){return this.hours()||24}),Ge("hmm",0,0,function(){return""+Zs.apply(this)+Bt(this.minutes(),2)}),Ge("hmmss",0,0,function(){return""+Zs.apply(this)+Bt(this.minutes(),2)+Bt(this.seconds(),2)}),Ge("Hmm",0,0,function(){return""+this.hours()+Bt(this.minutes(),2)}),Ge("Hmmss",0,0,function(){return""+this.hours()+Bt(this.minutes(),2)+Bt(this.seconds(),2)}),ui("a",!0),ui("A",!1),Wt("hour","h"),zt("hour",13),qe("a",No),qe("A",No),qe("H",wt),qe("h",wt),qe("k",wt),qe("HH",wt,Ht),qe("hh",wt,Ht),qe("kk",wt,Ht),qe("hmm",Qi),qe("hmmss",jr),qe("Hmm",Qi),qe("Hmmss",jr),xe(["H","HH"],3),xe(["k","kk"],function(S,k,V){var q=pe(S);k[3]=24===q?0:q}),xe(["a","A"],function(S,k,V){V._isPm=V._locale.isPM(S),V._meridiem=S}),xe(["h","hh"],function(S,k,V){k[3]=pe(S),re(V).bigHour=!0}),xe("hmm",function(S,k,V){var q=S.length-2;k[3]=pe(S.substr(0,q)),k[4]=pe(S.substr(q)),re(V).bigHour=!0}),xe("hmmss",function(S,k,V){var q=S.length-4,Q=S.length-2;k[3]=pe(S.substr(0,q)),k[4]=pe(S.substr(q,2)),k[5]=pe(S.substr(Q)),re(V).bigHour=!0}),xe("Hmm",function(S,k,V){var q=S.length-2;k[3]=pe(S.substr(0,q)),k[4]=pe(S.substr(q))}),xe("Hmmss",function(S,k,V){var q=S.length-4,Q=S.length-2;k[3]=pe(S.substr(0,q)),k[4]=pe(S.substr(q,2)),k[5]=pe(S.substr(Q))});var Zu=Ie("Hours",!0);var pa,qn={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ei,monthsShort:Nr,week:{dow:0,doy:6},weekdays:vt,weekdaysMin:zu,weekdaysShort:Ql,meridiemParse:/[ap]\.?m?\.?/i},An={},Xl={};function er(S,k){var V,q=Math.min(S.length,k.length);for(V=0;V0;){if(Q=fi(ce.slice(0,V).join("-")))return Q;if(q&&q.length>=V&&er(ce,q)>=V-1)break;V--}k++}return pa}(S)}function ve(S){var k,V=S._a;return V&&-2===re(S).overflow&&(k=V[1]<0||V[1]>11?1:V[2]<1||V[2]>Se(V[0],V[1])?2:V[3]<0||V[3]>24||24===V[3]&&(0!==V[4]||0!==V[5]||0!==V[6])?3:V[4]<0||V[4]>59?4:V[5]<0||V[5]>59?5:V[6]<0||V[6]>999?6:-1,re(S)._overflowDayOfYear&&(k<0||k>2)&&(k=2),re(S)._overflowWeeks&&-1===k&&(k=7),re(S)._overflowWeekday&&-1===k&&(k=8),re(S).overflow=k),S}var be=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,at=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vn=/Z|[+-]\d\d(?::?\d\d)?/,on=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],cn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Yt=/^\/?Date\((-?\d+)/i,ii=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,tt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function dn(S){var k,V,ce,Ae,ct,kt,q=S._i,Q=be.exec(q)||at.exec(q),rn=on.length,Gn=cn.length;if(Q){for(re(S).iso=!0,k=0,V=rn;k7)&&(kt=!0)):(ce=S._locale._week.dow,Ae=S._locale._week.doy,rn=ua(hn(),ce,Ae),V=Pn(k.gg,S._a[0],rn.year),q=Pn(k.w,rn.week),null!=k.d?((Q=k.d)<0||Q>6)&&(kt=!0):null!=k.e?(Q=k.e+ce,(k.e<0||k.e>6)&&(kt=!0)):Q=ce),q<1||q>Xi(V,ce,Ae)?re(S)._overflowWeeks=!0:null!=kt?re(S)._overflowWeekday=!0:(ct=hs(V,q,Q,ce,Ae),S._a[0]=ct.year,S._dayOfYear=ct.dayOfYear)}(S),null!=S._dayOfYear&&(Ae=Pn(S._a[0],Q[0]),(S._dayOfYear>Ki(Ae)||0===S._dayOfYear)&&(re(S)._overflowDayOfYear=!0),V=da(Ae,0,S._dayOfYear),S._a[1]=V.getUTCMonth(),S._a[2]=V.getUTCDate()),k=0;k<3&&null==S._a[k];++k)S._a[k]=q[k]=Q[k];for(;k<7;k++)S._a[k]=q[k]=S._a[k]??(2===k?1:0);24===S._a[3]&&0===S._a[4]&&0===S._a[5]&&0===S._a[6]&&(S._nextDay=!0,S._a[3]=0),S._d=(S._useUTC?da:Hi).apply(null,q),ce=S._useUTC?S._d.getUTCDay():S._d.getDay(),null!=S._tzm&&S._d.setUTCMinutes(S._d.getUTCMinutes()-S._tzm),S._nextDay&&(S._a[3]=24),S._w&&typeof S._w.d<"u"&&S._w.d!==ce&&(re(S).weekdayMismatch=!0)}}function nc(S){if(S._f!==n.ISO_8601)if(S._f!==n.RFC_2822){S._a=[],re(S).empty=!0;var V,q,Q,ce,Ae,rn,Gn,k=""+S._i,ct=k.length,kt=0;for(Gn=(Q=aa(S._f,S._locale).match(Kt)||[]).length,V=0;V0&&re(S).unusedInput.push(Ae),k=k.slice(k.indexOf(q)+q.length),kt+=q.length),Mi[ce]?(q?re(S).empty=!1:re(S).unusedTokens.push(ce),sn(ce,q,S)):S._strict&&!q&&re(S).unusedTokens.push(ce);re(S).charsLeftOver=ct-kt,k.length>0&&re(S).unusedInput.push(k),S._a[3]<=12&&!0===re(S).bigHour&&S._a[3]>0&&(re(S).bigHour=void 0),re(S).parsedDateParts=S._a.slice(0),re(S).meridiem=S._meridiem,S._a[3]=function Zt(S,k,V){var q;return null==V?k:null!=S.meridiemHour?S.meridiemHour(k,V):(null!=S.isPM&&((q=S.isPM(V))&&k<12&&(k+=12),!q&&12===k&&(k=0)),k)}(S._locale,S._a[3],S._meridiem),null!==(rn=re(S).era)&&(S._a[0]=S._locale.erasConvertYear(rn,S._a[0])),Pi(S),ve(S)}else ps(S);else dn(S)}function Ri(S){var k=S._i,V=S._f;return S._locale=S._locale||X(S._l),null===k||void 0===V&&""===k?Me({nullInput:!0}):("string"==typeof k&&(S._i=k=S._locale.preparse(k)),Pe(k)?new Ee(ve(k)):(ee(k)?S._d=k:D(V)?function gi(S){var k,V,q,Q,ce,Ae,ct=!1,kt=S._f.length;if(0===kt)return re(S).invalidFormat=!0,void(S._d=new Date(NaN));for(Q=0;Qthis?this:S:Me()});function wd(S,k){var V,q;if(1===k.length&&D(k[0])&&(k=k[0]),!k.length)return hn();for(V=k[0],q=1;q=0?new Date(S+400,k,V)-io:new Date(S,k,V).valueOf()}function Ua(S,k,V){return S<100&&S>=0?Date.UTC(S+400,k,V)-io:Date.UTC(S,k,V)}function hh(S,k){return k.erasAbbrRegex(S)}function ph(){var Q,ce,S=[],k=[],V=[],q=[],Ae=this.eras();for(Q=0,ce=Ae.length;Q(ce=Xi(S,q,Q))&&(k=ce),rl.call(this,S,k,V,q,Q))}function rl(S,k,V,q,Q){var ce=hs(S,k,V,q,Q),Ae=da(ce.year,0,ce.dayOfYear);return this.year(Ae.getUTCFullYear()),this.month(Ae.getUTCMonth()),this.date(Ae.getUTCDate()),this}Ge("N",0,0,"eraAbbr"),Ge("NN",0,0,"eraAbbr"),Ge("NNN",0,0,"eraAbbr"),Ge("NNNN",0,0,"eraName"),Ge("NNNNN",0,0,"eraNarrow"),Ge("y",["y",1],"yo","eraYear"),Ge("y",["yy",2],0,"eraYear"),Ge("y",["yyy",3],0,"eraYear"),Ge("y",["yyyy",4],0,"eraYear"),qe("N",hh),qe("NN",hh),qe("NNN",hh),qe("NNNN",function S_(S,k){return k.erasNameRegex(S)}),qe("NNNNN",function il(S,k){return k.erasNarrowRegex(S)}),xe(["N","NN","NNN","NNNN","NNNNN"],function(S,k,V,q){var Q=V._locale.erasParse(S,q,V._strict);Q?re(V).era=Q:re(V).invalidEra=S}),qe("y",cr),qe("yy",cr),qe("yyy",cr),qe("yyyy",cr),qe("yo",function E_(S,k){return k._eraYearOrdinalRegex||cr}),xe(["y","yy","yyy","yyyy"],0),xe(["yo"],function(S,k,V,q){var Q;V._locale._eraYearOrdinalRegex&&(Q=S.match(V._locale._eraYearOrdinalRegex)),k[0]=V._locale.eraYearOrdinalParse?V._locale.eraYearOrdinalParse(S,Q):parseInt(S,10)}),Ge(0,["gg",2],0,function(){return this.weekYear()%100}),Ge(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Rn("gggg","weekYear"),Rn("ggggg","weekYear"),Rn("GGGG","isoWeekYear"),Rn("GGGGG","isoWeekYear"),Wt("weekYear","gg"),Wt("isoWeekYear","GG"),zt("weekYear",1),zt("isoWeekYear",1),qe("G",sa),qe("g",sa),qe("GG",wt,Ht),qe("gg",wt,Ht),qe("GGGG",Ur,yt),qe("gggg",Ur,yt),qe("GGGGG",vr,Gt),qe("ggggg",vr,Gt),ln(["gggg","ggggg","GGGG","GGGGG"],function(S,k,V,q){k[q.substr(0,2)]=pe(S)}),ln(["gg","GG"],function(S,k,V,q){k[q]=n.parseTwoDigitYear(S)}),Ge("Q",0,"Qo","quarter"),Wt("quarter","Q"),zt("quarter",7),qe("Q",In),xe("Q",function(S,k){k[1]=3*(pe(S)-1)}),Ge("D",["DD",2],"Do","date"),Wt("date","D"),zt("date",9),qe("D",wt),qe("DD",wt,Ht),qe("Do",function(S,k){return S?k._dayOfMonthOrdinalParse||k._ordinalParse:k._dayOfMonthOrdinalParseLenient}),xe(["D","DD"],2),xe("Do",function(S,k){k[2]=pe(S.match(wt)[0])});var Li=Ie("Date",!0);Ge("DDD",["DDDD",3],"DDDo","dayOfYear"),Wt("dayOfYear","DDD"),zt("dayOfYear",4),qe("DDD",Yn),qe("DDDD",Vi),xe(["DDD","DDDD"],function(S,k,V){V._dayOfYear=pe(S)}),Ge("m",["mm",2],0,"minute"),Wt("minute","m"),zt("minute",14),qe("m",wt),qe("mm",wt,Ht),xe(["m","mm"],4);var mf=Ie("Minutes",!1);Ge("s",["ss",2],0,"second"),Wt("second","s"),zt("second",15),qe("s",wt),qe("ss",wt,Ht),xe(["s","ss"],5);var Na,sl,kd=Ie("Seconds",!1);for(Ge("S",0,0,function(){return~~(this.millisecond()/100)}),Ge(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ge(0,["SSS",3],0,"millisecond"),Ge(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Ge(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Ge(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Ge(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Ge(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Ge(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Wt("millisecond","ms"),zt("millisecond",16),qe("S",Yn,In),qe("SS",Yn,Ht),qe("SSS",Yn,Vi),Na="SSSS";Na.length<=9;Na+="S")qe(Na,cr);function Yi(S,k){k[6]=pe(1e3*("0."+S))}for(Na="S";Na.length<=9;Na+="S")xe(Na,Yi);sl=Ie("Milliseconds",!1),Ge("z",0,0,"zoneAbbr"),Ge("zz",0,0,"zoneName");var Fe=Ee.prototype;function gh(S){return S}Fe.add=Cd,Fe.calendar=function Qo(S,k){1===arguments.length&&(arguments[0]?hc(arguments[0])?(S=arguments[0],k=void 0):rh(arguments[0])&&(k=arguments[0],S=void 0):(S=void 0,k=void 0));var V=S||hn(),q=Ci(V,this).startOf("day"),Q=n.calendarFormat(this,q)||"sameElse",ce=k&&(fe(k[Q])?k[Q].call(this,V):k[Q]);return this.format(ce||this.localeData().calendar(Q,this,hn(V)))},Fe.clone=function Ad(){return new Ee(this)},Fe.diff=function ah(S,k,V){var q,Q,ce;if(!this.isValid())return NaN;if(!(q=Ci(S,this)).isValid())return NaN;switch(Q=6e4*(q.utcOffset()-this.utcOffset()),k=di(k)){case"year":ce=Ko(this,q)/12;break;case"month":ce=Ko(this,q);break;case"quarter":ce=Ko(this,q)/3;break;case"second":ce=(this-q)/1e3;break;case"minute":ce=(this-q)/6e4;break;case"hour":ce=(this-q)/36e5;break;case"day":ce=(this-q-Q)/864e5;break;case"week":ce=(this-q-Q)/6048e5;break;default:ce=this-q}return V?ce:ie(ce)},Fe.endOf=function ro(S){var k,V;if(void 0===(S=di(S))||"millisecond"===S||!this.isValid())return this;switch(V=this._isUTC?Ua:Dd,S){case"year":k=V(this.year()+1,0,1)-1;break;case"quarter":k=V(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":k=V(this.year(),this.month()+1,1)-1;break;case"week":k=V(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":k=V(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":k=V(this.year(),this.month(),this.date()+1)-1;break;case"hour":k=this._d.valueOf(),k+=ga-Hr(k+(this._isUTC?0:this.utcOffset()*Dr),ga)-1;break;case"minute":k=this._d.valueOf(),k+=Dr-Hr(k,Dr)-1;break;case"second":k=this._d.valueOf(),k+=1e3-Hr(k,1e3)-1}return this._d.setTime(k),n.updateOffset(this,!0),this},Fe.format=function ja(S){S||(S=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var k=En(this,S);return this.localeData().postformat(k)},Fe.from=function xd(S,k){return this.isValid()&&(Pe(S)&&S.isValid()||hn(S).isValid())?dt({to:this,from:S}).locale(this.locale()).humanize(!k):this.localeData().invalidDate()},Fe.fromNow=function fa(S){return this.from(hn(),S)},Fe.to=function no(S,k){return this.isValid()&&(Pe(S)&&S.isValid()||hn(S).isValid())?dt({from:this,to:S}).locale(this.locale()).humanize(!k):this.localeData().invalidDate()},Fe.toNow=function Md(S){return this.to(hn(),S)},Fe.get=function et(S){return fe(this[S=di(S)])?this[S]():this},Fe.invalidAt=function ws(){return re(this).overflow},Fe.isAfter=function gs(S,k){var V=Pe(S)?S:hn(S);return!(!this.isValid()||!V.isValid())&&("millisecond"===(k=di(k)||"millisecond")?this.valueOf()>V.valueOf():V.valueOf()9999?En(V,k?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fe(Date.prototype.toISOString)?k?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",En(V,"Z")):En(V,k?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Fe.inspect=function Td(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var V,q,S="moment",k="";return this.isLocal()||(S=0===this.utcOffset()?"moment.utc":"moment.parseZone",k="Z"),V="["+S+'("]',q=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(V+q+"-MM-DD[T]HH:mm:ss.SSS"+k+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Fe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Fe.toJSON=function tl(){return this.isValid()?this.toISOString():null},Fe.toString=function ff(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Fe.unix=function ch(){return Math.floor(this.valueOf()/1e3)},Fe.valueOf=function lh(){return this._d.valueOf()-6e4*(this._offset||0)},Fe.creationData=function Wr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Fe.eraName=function uh(){var S,k,V,q=this.localeData().eras();for(S=0,k=q.length;Sthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Fe.isLocal=function dc(){return!!this.isValid()&&!this._isUTC},Fe.isUtcOffset=function zo(){return!!this.isValid()&&this._isUTC},Fe.isUtc=Go,Fe.isUTC=Go,Fe.zoneAbbr=function ol(){return this._isUTC?"UTC":""},Fe.zoneName=function Fa(){return this._isUTC?"Coordinated Universal Time":""},Fe.dates=Ve("dates accessor is deprecated. Use date instead.",Li),Fe.months=Ve("months accessor is deprecated. Use month instead",dr),Fe.years=Ve("years accessor is deprecated. Use year instead",qr),Fe.zone=Ve("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function cc(S,k){return null!=S?("string"!=typeof S&&(S=-S),this.utcOffset(S,k),this):-this.utcOffset()}),Fe.isDSTShifted=Ve("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function qo(){if(!Y(this._isDSTShifted))return this._isDSTShifted;var k,S={};return ke(S,this),(S=Ri(S))._a?(k=S._isUTC?ue(S._a):hn(S._a),this._isDSTShifted=this.isValid()&&function Er(S,k,V){var Ae,q=Math.min(S.length,k.length),Q=Math.abs(S.length-k.length),ce=0;for(Ae=0;Ae0):this._isDSTShifted=!1,this._isDSTShifted});var Ut=we.prototype;function ll(S,k,V,q){var Q=X(),ce=ue().set(q,k);return Q[V](ce,S)}function Ld(S,k,V){if(G(S)&&(k=S,S=void 0),S=S||"",null!=k)return ll(S,k,V,"month");var q,Q=[];for(q=0;q<12;q++)Q[q]=ll(S,q,V,"month");return Q}function fc(S,k,V,q){"boolean"==typeof S?(G(k)&&(V=k,k=void 0),k=k||""):(V=k=S,S=!1,G(k)&&(V=k,k=void 0),k=k||"");var Ae,Q=X(),ce=S?Q._week.dow:0,ct=[];if(null!=V)return ll(k,(V+ce)%7,q,"day");for(Ae=0;Ae<7;Ae++)ct[Ae]=ll(k,(Ae+ce)%7,q,"day");return ct}Ut.calendar=function Et(S,k,V){var q=this._calendar[S]||this._calendar.sameElse;return fe(q)?q.call(k,V):q},Ut.longDateFormat=function Ns(S){var k=this._longDateFormat[S],V=this._longDateFormat[S.toUpperCase()];return k||!V?k:(this._longDateFormat[S]=V.match(Kt).map(function(q){return"MMMM"===q||"MM"===q||"DD"===q||"dddd"===q?q.slice(1):q}).join(""),this._longDateFormat[S])},Ut.invalidDate=function Fs(){return this._invalidDate},Ut.ordinal=function ds(S){return this._ordinal.replace("%d",S)},Ut.preparse=gh,Ut.postformat=gh,Ut.relativeTime=function pt(S,k,V,q){var Q=this._relativeTime[V];return fe(Q)?Q(S,k,V,q):Q.replace(/%d/i,S)},Ut.pastFuture=function ei(S,k){var V=this._relativeTime[S>0?"future":"past"];return fe(V)?V(k):V.replace(/%s/i,k)},Ut.set=function ge(S){var k,V;for(V in S)I(S,V)&&(fe(k=S[V])?this[V]=k:this["_"+V]=k);this._config=S,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ut.eras=function nl(S,k){var V,q,Q,ce=this._eras||X("en")._eras;for(V=0,q=ce.length;V=0)return ce[q]},Ut.erasConvertYear=function Hd(S,k){var V=S.since<=S.until?1:-1;return void 0===k?n(S.since).year():n(S.since).year()+(k-S.offset)*V},Ut.erasAbbrRegex=function x_(S){return I(this,"_erasAbbrRegex")||ph.call(this),S?this._erasAbbrRegex:this._erasRegex},Ut.erasNameRegex=function T_(S){return I(this,"_erasNameRegex")||ph.call(this),S?this._erasNameRegex:this._erasRegex},Ut.erasNarrowRegex=function M_(S){return I(this,"_erasNarrowRegex")||ph.call(this),S?this._erasNarrowRegex:this._erasRegex},Ut.months=function Tr(S,k){return S?D(this._months)?this._months[S.month()]:this._months[(this._months.isFormat||qs).test(k)?"format":"standalone"][S.month()]:D(this._months)?this._months:this._months.standalone},Ut.monthsShort=function _n(S,k){return S?D(this._monthsShort)?this._monthsShort[S.month()]:this._monthsShort[qs.test(k)?"format":"standalone"][S.month()]:D(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ut.monthsParse=function la(S,k,V){var q,Q,ce;if(this._monthsParseExact)return Fr.call(this,S,k,V);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),q=0;q<12;q++){if(Q=ue([2e3,q]),V&&!this._longMonthsParse[q]&&(this._longMonthsParse[q]=new RegExp("^"+this.months(Q,"").replace(".","")+"$","i"),this._shortMonthsParse[q]=new RegExp("^"+this.monthsShort(Q,"").replace(".","")+"$","i")),!V&&!this._monthsParse[q]&&(ce="^"+this.months(Q,"")+"|^"+this.monthsShort(Q,""),this._monthsParse[q]=new RegExp(ce.replace(".",""),"i")),V&&"MMMM"===k&&this._longMonthsParse[q].test(S))return q;if(V&&"MMM"===k&&this._shortMonthsParse[q].test(S))return q;if(!V&&this._monthsParse[q].test(S))return q}},Ut.monthsRegex=function ni(S){return this._monthsParseExact?(I(this,"_monthsRegex")||Di.call(this),S?this._monthsStrictRegex:this._monthsRegex):(I(this,"_monthsRegex")||(this._monthsRegex=_t),this._monthsStrictRegex&&S?this._monthsStrictRegex:this._monthsRegex)},Ut.monthsShortRegex=function Yr(S){return this._monthsParseExact?(I(this,"_monthsRegex")||Di.call(this),S?this._monthsShortStrictRegex:this._monthsShortRegex):(I(this,"_monthsShortRegex")||(this._monthsShortRegex=tn),this._monthsShortStrictRegex&&S?this._monthsShortStrictRegex:this._monthsShortRegex)},Ut.week=function bn(S){return ua(S,this._week.dow,this._week.doy).week},Ut.firstDayOfYear=function Gs(){return this._week.doy},Ut.firstDayOfWeek=function it(){return this._week.dow},Ut.weekdays=function Gu(S,k){var V=D(this._weekdays)?this._weekdays:this._weekdays[S&&!0!==S&&this._weekdays.isFormat.test(k)?"format":"standalone"];return!0===S?md(V,this._week.dow):S?V[S.day()]:V},Ut.weekdaysMin=function $u(S){return!0===S?md(this._weekdaysMin,this._week.dow):S?this._weekdaysMin[S.day()]:this._weekdaysMin},Ut.weekdaysShort=function Wu(S){return!0===S?md(this._weekdaysShort,this._week.dow):S?this._weekdaysShort[S.day()]:this._weekdaysShort},Ut.weekdaysParse=function gd(S,k,V){var q,Q,ce;if(this._weekdaysParseExact)return ha.call(this,S,k,V);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),q=0;q<7;q++){if(Q=ue([2e3,1]).day(q),V&&!this._fullWeekdaysParse[q]&&(this._fullWeekdaysParse[q]=new RegExp("^"+this.weekdays(Q,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[q]=new RegExp("^"+this.weekdaysShort(Q,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[q]=new RegExp("^"+this.weekdaysMin(Q,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[q]||(ce="^"+this.weekdays(Q,"")+"|^"+this.weekdaysShort(Q,"")+"|^"+this.weekdaysMin(Q,""),this._weekdaysParse[q]=new RegExp(ce.replace(".",""),"i")),V&&"dddd"===k&&this._fullWeekdaysParse[q].test(S))return q;if(V&&"ddd"===k&&this._shortWeekdaysParse[q].test(S))return q;if(V&&"dd"===k&&this._minWeekdaysParse[q].test(S))return q;if(!V&&this._weekdaysParse[q].test(S))return q}},Ut.weekdaysRegex=function _d(S){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||jo.call(this),S?this._weekdaysStrictRegex:this._weekdaysRegex):(I(this,"_weekdaysRegex")||(this._weekdaysRegex=Va),this._weekdaysStrictRegex&&S?this._weekdaysStrictRegex:this._weekdaysRegex)},Ut.weekdaysShortRegex=function $s(S){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||jo.call(this),S?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(I(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=wn),this._weekdaysShortStrictRegex&&S?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ut.weekdaysMinRegex=function Js(S){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||jo.call(this),S?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(I(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Oo),this._weekdaysMinStrictRegex&&S?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ut.isPM=function Ju(S){return"p"===(S+"").toLowerCase().charAt(0)},Ut.meridiem=function y_(S,k,V){return S>11?V?"pm":"PM":V?"am":"AM"},U("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(S){var k=S%10;return S+(1===pe(S%100/10)?"th":1===k?"st":2===k?"nd":3===k?"rd":"th")}}),n.lang=Ve("moment.lang is deprecated. Use moment.locale instead.",U),n.langData=Ve("moment.langData is deprecated. Use moment.localeData instead.",X);var hr=Math.abs;function Id(S,k,V,q){var Q=dt(k,V);return S._milliseconds+=q*Q._milliseconds,S._days+=q*Q._days,S._months+=q*Q._months,S._bubble()}function cl(S){return S<0?Math.floor(S):Math.ceil(S)}function wf(S){return 4800*S/146097}function Tn(S){return 146097*S/4800}function Pr(S){return function(){return this.as(S)}}var ys=Pr("ms"),pr=Pr("s"),yh=Pr("m"),Ch=Pr("h"),Od=Pr("d"),ul=Pr("w"),Bd=Pr("M"),qa=Pr("Q"),yf=Pr("y");function qi(S){return function(){return this.isValid()?this._data[S]:NaN}}var vh=qi("milliseconds"),Cf=qi("seconds"),hl=qi("minutes"),$r=qi("hours"),pl=qi("days"),Af=qi("months"),D_=qi("years");var _a=Math.round,fl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function H_(S,k,V,q,Q){return Q.relativeTime(k||1,!!V,S,q)}var jd=Math.abs;function vs(S){return(S>0)-(S<0)||+S}function Ud(){if(!this.isValid())return this.localeData().invalidDate();var q,Q,ce,Ae,kt,rn,Gn,Rr,S=jd(this._milliseconds)/1e3,k=jd(this._days),V=jd(this._months),ct=this.asSeconds();return ct?(q=ie(S/60),Q=ie(q/60),S%=60,q%=60,ce=ie(V/12),V%=12,Ae=S?S.toFixed(3).replace(/\.?0+$/,""):"",kt=ct<0?"-":"",rn=vs(this._months)!==vs(ct)?"-":"",Gn=vs(this._days)!==vs(ct)?"-":"",Rr=vs(this._milliseconds)!==vs(ct)?"-":"",kt+"P"+(ce?rn+ce+"Y":"")+(V?rn+V+"M":"")+(k?Gn+k+"D":"")+(Q||q||S?"T":"")+(Q?Rr+Q+"H":"")+(q?Rr+q+"M":"")+(S?Rr+Ae+"S":"")):"P0D"}var jt=zr.prototype;return jt.isValid=function It(){return this._isValid},jt.abs=function _f(){var S=this._data;return this._milliseconds=hr(this._milliseconds),this._days=hr(this._days),this._months=hr(this._months),S.milliseconds=hr(S.milliseconds),S.seconds=hr(S.seconds),S.minutes=hr(S.minutes),S.hours=hr(S.hours),S.months=hr(S.months),S.years=hr(S.years),this},jt.add=function _h(S,k){return Id(this,S,k,1)},jt.subtract=function bf(S,k){return Id(this,S,k,-1)},jt.as=function bh(S){if(!this.isValid())return NaN;var k,V,q=this._milliseconds;if("month"===(S=di(S))||"quarter"===S||"year"===S)switch(k=this._days+q/864e5,V=this._months+wf(k),S){case"month":return V;case"quarter":return V/3;case"year":return V/12}else switch(k=this._days+Math.round(Tn(this._months)),S){case"week":return k/7+q/6048e5;case"day":return k+q/864e5;case"hour":return 24*k+q/36e5;case"minute":return 1440*k+q/6e4;case"second":return 86400*k+q/1e3;case"millisecond":return Math.floor(864e5*k)+q;default:throw new Error("Unknown unit "+S)}},jt.asMilliseconds=ys,jt.asSeconds=pr,jt.asMinutes=yh,jt.asHours=Ch,jt.asDays=Od,jt.asWeeks=ul,jt.asMonths=Bd,jt.asQuarters=qa,jt.asYears=yf,jt.valueOf=function wh(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*pe(this._months/12):NaN},jt._bubble=function dl(){var Q,ce,Ae,ct,kt,S=this._milliseconds,k=this._days,V=this._months,q=this._data;return S>=0&&k>=0&&V>=0||S<=0&&k<=0&&V<=0||(S+=864e5*cl(Tn(V)+k),k=0,V=0),q.milliseconds=S%1e3,Q=ie(S/1e3),q.seconds=Q%60,ce=ie(Q/60),q.minutes=ce%60,Ae=ie(ce/60),q.hours=Ae%24,k+=ie(Ae/24),V+=kt=ie(wf(k)),k-=cl(Tn(kt)),ct=ie(V/12),V%=12,q.days=k,q.months=V,q.years=ct,this},jt.clone=function Ah(){return dt(this)},jt.get=function za(S){return S=di(S),this.isValid()?this[S+"s"]():NaN},jt.milliseconds=vh,jt.seconds=Cf,jt.minutes=hl,jt.hours=$r,jt.days=pl,jt.weeks=function Th(){return ie(this.days()/7)},jt.months=Af,jt.years=D_,jt.humanize=function As(S,k){if(!this.isValid())return this.localeData().invalidDate();var Q,ce,V=!1,q=fl;return"object"==typeof S&&(k=S,S=!1),"boolean"==typeof S&&(V=S),"object"==typeof k&&(q=Object.assign({},fl,k),null!=k.s&&null==k.ss&&(q.ss=k.s-1)),ce=function vf(S,k,V,q){var Q=dt(S).abs(),ce=_a(Q.as("s")),Ae=_a(Q.as("m")),ct=_a(Q.as("h")),kt=_a(Q.as("d")),rn=_a(Q.as("M")),Gn=_a(Q.as("w")),Rr=_a(Q.as("y")),ba=ce<=V.ss&&["s",ce]||ce0,ba[4]=q,H_.apply(null,ba)}(this,!V,q,Q=this.localeData()),V&&(ce=Q.pastFuture(+this,ce)),Q.postformat(ce)},jt.toISOString=Ud,jt.toString=Ud,jt.toJSON=Ud,jt.locale=sh,jt.localeData=Ed,jt.toIsoString=Ve("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ud),jt.lang=Sd,Ge("X",0,0,"unix"),Ge("x",0,0,"valueOf"),qe("x",sa),qe("X",/[+-]?\d+(\.\d{1,3})?/),xe("X",function(S,k,V){V._d=new Date(1e3*parseFloat(S))}),xe("x",function(S,k,V){V._d=new Date(pe(S))}),n.version="2.29.4",function P(S){x=S}(hn),n.fn=Fe,n.min=function ic(){return wd("isBefore",[].slice.call(arguments,0))},n.max=function rc(){return wd("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=ue,n.unix=function oo(S){return hn(1e3*S)},n.months=function mc(S,k){return Ld(S,k,"months")},n.isDate=ee,n.locale=U,n.invalid=Me,n.duration=dt,n.isMoment=Pe,n.weekdays=function _c(S,k,V){return fc(S,k,V,"weekdays")},n.parseZone=function gf(){return hn.apply(null,arguments).parseZone()},n.localeData=X,n.isDuration=Fo,n.monthsShort=function gc(S,k){return Ld(S,k,"monthsShort")},n.weekdaysMin=function lo(S,k,V){return fc(S,k,V,"weekdaysMin")},n.defineLocale=J,n.updateLocale=function N(S,k){if(null!=k){var V,q,Q=qn;null!=An[S]&&null!=An[S].parentLocale?An[S].set(Te(An[S]._config,k)):(null!=(q=fi(S))&&(Q=q._config),k=Te(Q,k),null==q&&(k.abbr=S),(V=new we(k)).parentLocale=An[S],An[S]=V),U(S)}else null!=An[S]&&(null!=An[S].parentLocale?(An[S]=An[S].parentLocale,S===U()&&U(S)):null!=An[S]&&delete An[S]);return An[S]},n.locales=function he(){return ze(An)},n.weekdaysShort=function Ya(S,k,V){return fc(S,k,V,"weekdaysShort")},n.normalizeUnits=di,n.relativeTimeRounding=function Vd(S){return void 0===S?_a:"function"==typeof S&&(_a=S,!0)},n.relativeTimeThreshold=function Cs(S,k){return void 0!==fl[S]&&(void 0===k?fl[S]:(fl[S]=k,"s"===S&&(fl.ss=k-1),!0))},n.calendarFormat=function eo(S,k){var V=S.diff(k,"days",!0);return V<-6?"sameElse":V<-1?"lastWeek":V<0?"lastDay":V<1?"sameDay":V<2?"nextDay":V<7?"nextWeek":"sameElse"},n.prototype=Fe,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()},9751:(z,W,E)=>{"use strict";E.d(W,{y:()=>Y});var x=E(930),n=E(727),P=E(8822),D=E(9635),H=E(2416),I=E(576),B=E(2806);let Y=(()=>{class ae{constructor(se){se&&(this._subscribe=se)}lift(se){const re=new ae;return re.source=this,re.operator=se,re}subscribe(se,re,_e){const ye=function te(ae){return ae&&ae instanceof x.Lv||function ee(ae){return ae&&(0,I.m)(ae.next)&&(0,I.m)(ae.error)&&(0,I.m)(ae.complete)}(ae)&&(0,n.Nn)(ae)}(se)?se:new x.Hp(se,re,_e);return(0,B.x)(()=>{const{operator:Me,source:Je}=this;ye.add(Me?Me.call(ye,Je):Je?this._subscribe(ye):this._trySubscribe(ye))}),ye}_trySubscribe(se){try{return this._subscribe(se)}catch(re){se.error(re)}}forEach(se,re){return new(re=G(re))((_e,ye)=>{const Me=new x.Hp({next:Je=>{try{se(Je)}catch(Ze){ye(Ze),Me.unsubscribe()}},error:ye,complete:_e});this.subscribe(Me)})}_subscribe(se){var re;return null===(re=this.source)||void 0===re?void 0:re.subscribe(se)}[P.L](){return this}pipe(...se){return(0,D.U)(se)(this)}toPromise(se){return new(se=G(se))((re,_e)=>{let ye;this.subscribe(Me=>ye=Me,Me=>_e(Me),()=>re(ye))})}}return ae.create=ue=>new ae(ue),ae})();function G(ae){var ue;return null!==(ue=ae??H.v.Promise)&&void 0!==ue?ue:Promise}},7579:(z,W,E)=>{"use strict";E.d(W,{x:()=>B});var x=E(9751),n=E(727);const D=(0,E(3888).d)(G=>function(){G(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var H=E(8737),I=E(2806);let B=(()=>{class G extends x.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(te){const ae=new Y(this,this);return ae.operator=te,ae}_throwIfClosed(){if(this.closed)throw new D}next(te){(0,I.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ae of this.currentObservers)ae.next(te)}})}error(te){(0,I.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=te;const{observers:ae}=this;for(;ae.length;)ae.shift().error(te)}})}complete(){(0,I.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:te}=this;for(;te.length;)te.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var te;return(null===(te=this.observers)||void 0===te?void 0:te.length)>0}_trySubscribe(te){return this._throwIfClosed(),super._trySubscribe(te)}_subscribe(te){return this._throwIfClosed(),this._checkFinalizedStatuses(te),this._innerSubscribe(te)}_innerSubscribe(te){const{hasError:ae,isStopped:ue,observers:se}=this;return ae||ue?n.Lc:(this.currentObservers=null,se.push(te),new n.w0(()=>{this.currentObservers=null,(0,H.P)(se,te)}))}_checkFinalizedStatuses(te){const{hasError:ae,thrownError:ue,isStopped:se}=this;ae?te.error(ue):se&&te.complete()}asObservable(){const te=new x.y;return te.source=this,te}}return G.create=(ee,te)=>new Y(ee,te),G})();class Y extends B{constructor(ee,te){super(),this.destination=ee,this.source=te}next(ee){var te,ae;null===(ae=null===(te=this.destination)||void 0===te?void 0:te.next)||void 0===ae||ae.call(te,ee)}error(ee){var te,ae;null===(ae=null===(te=this.destination)||void 0===te?void 0:te.error)||void 0===ae||ae.call(te,ee)}complete(){var ee,te;null===(te=null===(ee=this.destination)||void 0===ee?void 0:ee.complete)||void 0===te||te.call(ee)}_subscribe(ee){var te,ae;return null!==(ae=null===(te=this.source)||void 0===te?void 0:te.subscribe(ee))&&void 0!==ae?ae:n.Lc}}},930:(z,W,E)=>{"use strict";E.d(W,{Hp:()=>_e,Lv:()=>ae});var x=E(576),n=E(727),P=E(2416),D=E(7849),H=E(5032);const I=G("C",void 0,void 0);function G(ke,Ee,Pe){return{kind:ke,value:Ee,error:Pe}}var ee=E(3410),te=E(2806);class ae extends n.w0{constructor(Ee){super(),this.isStopped=!1,Ee?(this.destination=Ee,(0,n.Nn)(Ee)&&Ee.add(this)):this.destination=Ze}static create(Ee,Pe,ut){return new _e(Ee,Pe,ut)}next(Ee){this.isStopped?Je(function Y(ke){return G("N",ke,void 0)}(Ee),this):this._next(Ee)}error(Ee){this.isStopped?Je(function B(ke){return G("E",void 0,ke)}(Ee),this):(this.isStopped=!0,this._error(Ee))}complete(){this.isStopped?Je(I,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ee){this.destination.next(Ee)}_error(Ee){try{this.destination.error(Ee)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ue=Function.prototype.bind;function se(ke,Ee){return ue.call(ke,Ee)}class re{constructor(Ee){this.partialObserver=Ee}next(Ee){const{partialObserver:Pe}=this;if(Pe.next)try{Pe.next(Ee)}catch(ut){ye(ut)}}error(Ee){const{partialObserver:Pe}=this;if(Pe.error)try{Pe.error(Ee)}catch(ut){ye(ut)}else ye(Ee)}complete(){const{partialObserver:Ee}=this;if(Ee.complete)try{Ee.complete()}catch(Pe){ye(Pe)}}}class _e extends ae{constructor(Ee,Pe,ut){let Ve;if(super(),(0,x.m)(Ee)||!Ee)Ve={next:Ee??void 0,error:Pe??void 0,complete:ut??void 0};else{let Ne;this&&P.v.useDeprecatedNextContext?(Ne=Object.create(Ee),Ne.unsubscribe=()=>this.unsubscribe(),Ve={next:Ee.next&&se(Ee.next,Ne),error:Ee.error&&se(Ee.error,Ne),complete:Ee.complete&&se(Ee.complete,Ne)}):Ve=Ee}this.destination=new re(Ve)}}function ye(ke){P.v.useDeprecatedSynchronousErrorHandling?(0,te.O)(ke):(0,D.h)(ke)}function Je(ke,Ee){const{onStoppedNotification:Pe}=P.v;Pe&&ee.z.setTimeout(()=>Pe(ke,Ee))}const Ze={closed:!0,next:H.Z,error:function Me(ke){throw ke},complete:H.Z}},727:(z,W,E)=>{"use strict";E.d(W,{Lc:()=>I,w0:()=>H,Nn:()=>B});var x=E(576);const P=(0,E(3888).d)(G=>function(te){G(this),this.message=te?`${te.length} errors occurred during unsubscription:\n${te.map((ae,ue)=>`${ue+1}) ${ae.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=te});var D=E(8737);class H{constructor(ee){this.initialTeardown=ee,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let ee;if(!this.closed){this.closed=!0;const{_parentage:te}=this;if(te)if(this._parentage=null,Array.isArray(te))for(const se of te)se.remove(this);else te.remove(this);const{initialTeardown:ae}=this;if((0,x.m)(ae))try{ae()}catch(se){ee=se instanceof P?se.errors:[se]}const{_finalizers:ue}=this;if(ue){this._finalizers=null;for(const se of ue)try{Y(se)}catch(re){ee=ee??[],re instanceof P?ee=[...ee,...re.errors]:ee.push(re)}}if(ee)throw new P(ee)}}add(ee){var te;if(ee&&ee!==this)if(this.closed)Y(ee);else{if(ee instanceof H){if(ee.closed||ee._hasParent(this))return;ee._addParent(this)}(this._finalizers=null!==(te=this._finalizers)&&void 0!==te?te:[]).push(ee)}}_hasParent(ee){const{_parentage:te}=this;return te===ee||Array.isArray(te)&&te.includes(ee)}_addParent(ee){const{_parentage:te}=this;this._parentage=Array.isArray(te)?(te.push(ee),te):te?[te,ee]:ee}_removeParent(ee){const{_parentage:te}=this;te===ee?this._parentage=null:Array.isArray(te)&&(0,D.P)(te,ee)}remove(ee){const{_finalizers:te}=this;te&&(0,D.P)(te,ee),ee instanceof H&&ee._removeParent(this)}}H.EMPTY=(()=>{const G=new H;return G.closed=!0,G})();const I=H.EMPTY;function B(G){return G instanceof H||G&&"closed"in G&&(0,x.m)(G.remove)&&(0,x.m)(G.add)&&(0,x.m)(G.unsubscribe)}function Y(G){(0,x.m)(G)?G():G.unsubscribe()}},2416:(z,W,E)=>{"use strict";E.d(W,{v:()=>x});const x={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(z,W,E)=>{"use strict";E.d(W,{a:()=>ee});var x=E(9751),n=E(4742),P=E(2076),D=E(4671),H=E(3268),I=E(3269),B=E(1810),Y=E(5403),G=E(9672);function ee(...ue){const se=(0,I.yG)(ue),re=(0,I.jO)(ue),{args:_e,keys:ye}=(0,n.D)(ue);if(0===_e.length)return(0,P.D)([],se);const Me=new x.y(function te(ue,se,re=D.y){return _e=>{ae(se,()=>{const{length:ye}=ue,Me=new Array(ye);let Je=ye,Ze=ye;for(let ke=0;ke{const Ee=(0,P.D)(ue[ke],se);let Pe=!1;Ee.subscribe((0,Y.x)(_e,ut=>{Me[ke]=ut,Pe||(Pe=!0,Ze--),Ze||_e.next(re(Me.slice()))},()=>{--Je||_e.complete()}))},_e)},_e)}}(_e,se,ye?Je=>(0,B.n)(ye,Je):D.y));return re?Me.pipe((0,H.Z)(re)):Me}function ae(ue,se,re){ue?(0,G.f)(re,ue,se):se()}},7272:(z,W,E)=>{"use strict";E.d(W,{z:()=>H});var x=E(8189),P=E(3269),D=E(2076);function H(...I){return function n(){return(0,x.J)(1)}()((0,D.D)(I,(0,P.yG)(I)))}},515:(z,W,E)=>{"use strict";E.d(W,{E:()=>n});const n=new(E(9751).y)(H=>H.complete())},2076:(z,W,E)=>{"use strict";E.d(W,{D:()=>ut});var x=E(8421),n=E(9672),P=E(4482),D=E(5403);function H(Ve,Ne=0){return(0,P.e)((je,fe)=>{je.subscribe((0,D.x)(fe,ge=>(0,n.f)(fe,Ve,()=>fe.next(ge),Ne),()=>(0,n.f)(fe,Ve,()=>fe.complete(),Ne),ge=>(0,n.f)(fe,Ve,()=>fe.error(ge),Ne)))})}function I(Ve,Ne=0){return(0,P.e)((je,fe)=>{fe.add(Ve.schedule(()=>je.subscribe(fe),Ne))})}var G=E(9751),te=E(2202),ae=E(576);function se(Ve,Ne){if(!Ve)throw new Error("Iterable cannot be null");return new G.y(je=>{(0,n.f)(je,Ne,()=>{const fe=Ve[Symbol.asyncIterator]();(0,n.f)(je,Ne,()=>{fe.next().then(ge=>{ge.done?je.complete():je.next(ge.value)})},0,!0)})})}var re=E(3670),_e=E(8239),ye=E(1144),Me=E(6495),Je=E(2206),Ze=E(4532),ke=E(3260);function ut(Ve,Ne){return Ne?function Pe(Ve,Ne){if(null!=Ve){if((0,re.c)(Ve))return function B(Ve,Ne){return(0,x.Xf)(Ve).pipe(I(Ne),H(Ne))}(Ve,Ne);if((0,ye.z)(Ve))return function ee(Ve,Ne){return new G.y(je=>{let fe=0;return Ne.schedule(function(){fe===Ve.length?je.complete():(je.next(Ve[fe++]),je.closed||this.schedule())})})}(Ve,Ne);if((0,_e.t)(Ve))return function Y(Ve,Ne){return(0,x.Xf)(Ve).pipe(I(Ne),H(Ne))}(Ve,Ne);if((0,Je.D)(Ve))return se(Ve,Ne);if((0,Me.T)(Ve))return function ue(Ve,Ne){return new G.y(je=>{let fe;return(0,n.f)(je,Ne,()=>{fe=Ve[te.h](),(0,n.f)(je,Ne,()=>{let ge,Te;try{({value:ge,done:Te}=fe.next())}catch(we){return void je.error(we)}Te?je.complete():je.next(ge)},0,!0)}),()=>(0,ae.m)(fe?.return)&&fe.return()})}(Ve,Ne);if((0,ke.L)(Ve))return function Ee(Ve,Ne){return se((0,ke.Q)(Ve),Ne)}(Ve,Ne)}throw(0,Ze.z)(Ve)}(Ve,Ne):(0,x.Xf)(Ve)}},8421:(z,W,E)=>{"use strict";E.d(W,{Xf:()=>ue});var x=E(655),n=E(1144),P=E(8239),D=E(9751),H=E(3670),I=E(2206),B=E(4532),Y=E(6495),G=E(3260),ee=E(576),te=E(7849),ae=E(8822);function ue(ke){if(ke instanceof D.y)return ke;if(null!=ke){if((0,H.c)(ke))return function se(ke){return new D.y(Ee=>{const Pe=ke[ae.L]();if((0,ee.m)(Pe.subscribe))return Pe.subscribe(Ee);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ke);if((0,n.z)(ke))return function re(ke){return new D.y(Ee=>{for(let Pe=0;Pe{ke.then(Pe=>{Ee.closed||(Ee.next(Pe),Ee.complete())},Pe=>Ee.error(Pe)).then(null,te.h)})}(ke);if((0,I.D)(ke))return Me(ke);if((0,Y.T)(ke))return function ye(ke){return new D.y(Ee=>{for(const Pe of ke)if(Ee.next(Pe),Ee.closed)return;Ee.complete()})}(ke);if((0,G.L)(ke))return function Je(ke){return Me((0,G.Q)(ke))}(ke)}throw(0,B.z)(ke)}function Me(ke){return new D.y(Ee=>{(function Ze(ke,Ee){var Pe,ut,Ve,Ne;return(0,x.mG)(this,void 0,void 0,function*(){try{for(Pe=(0,x.KL)(ke);!(ut=yield Pe.next()).done;)if(Ee.next(ut.value),Ee.closed)return}catch(je){Ve={error:je}}finally{try{ut&&!ut.done&&(Ne=Pe.return)&&(yield Ne.call(Pe))}finally{if(Ve)throw Ve.error}}Ee.complete()})})(ke,Ee).catch(Pe=>Ee.error(Pe))})}},6451:(z,W,E)=>{"use strict";E.d(W,{T:()=>I});var x=E(8189),n=E(8421),P=E(515),D=E(3269),H=E(2076);function I(...B){const Y=(0,D.yG)(B),G=(0,D._6)(B,1/0),ee=B;return ee.length?1===ee.length?(0,n.Xf)(ee[0]):(0,x.J)(G)((0,H.D)(ee,Y)):P.E}},9646:(z,W,E)=>{"use strict";E.d(W,{of:()=>P});var x=E(3269),n=E(2076);function P(...D){const H=(0,x.yG)(D);return(0,n.D)(D,H)}},102:(z,W,E)=>{"use strict";E.d(W,{S:()=>I});var x=E(9751),n=E(8421);const{isArray:P}=Array;var H=E(5403);function I(...Y){return 1===(Y=function D(Y){return 1===Y.length&&P(Y[0])?Y[0]:Y}(Y)).length?(0,n.Xf)(Y[0]):new x.y(function B(Y){return G=>{let ee=[];for(let te=0;ee&&!G.closed&&te{if(ee){for(let ue=0;ue{"use strict";E.d(W,{_:()=>P});var x=E(9751),n=E(576);function P(D,H){const I=(0,n.m)(D)?D:()=>D,B=Y=>Y.error(I());return new x.y(H?Y=>H.schedule(B,0,Y):B)}},2805:(z,W,E)=>{"use strict";E.d(W,{H:()=>H});var x=E(9751),n=E(4986),P=E(3532),D=E(1165);function H(I=0,B,Y=n.P){let G=-1;return null!=B&&((0,P.K)(B)?Y=B:G=B),new x.y(ee=>{let te=(0,D.q)(I)?+I-Y.now():I;te<0&&(te=0);let ae=0;return Y.schedule(function(){ee.closed||(ee.next(ae++),0<=G?this.schedule(void 0,G):ee.complete())},te)})}},5403:(z,W,E)=>{"use strict";E.d(W,{x:()=>n});var x=E(930);function n(D,H,I,B,Y){return new P(D,H,I,B,Y)}class P extends x.Lv{constructor(H,I,B,Y,G,ee){super(H),this.onFinalize=G,this.shouldUnsubscribe=ee,this._next=I?function(te){try{I(te)}catch(ae){H.error(ae)}}:super._next,this._error=Y?function(te){try{Y(te)}catch(ae){H.error(ae)}finally{this.unsubscribe()}}:super._error,this._complete=B?function(){try{B()}catch(te){H.error(te)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var H;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:I}=this;super.unsubscribe(),!I&&(null===(H=this.onFinalize)||void 0===H||H.call(this))}}}},262:(z,W,E)=>{"use strict";E.d(W,{K:()=>D});var x=E(8421),n=E(5403),P=E(4482);function D(H){return(0,P.e)((I,B)=>{let ee,Y=null,G=!1;Y=I.subscribe((0,n.x)(B,void 0,void 0,te=>{ee=(0,x.Xf)(H(te,D(H)(I))),Y?(Y.unsubscribe(),Y=null,ee.subscribe(B)):G=!0})),G&&(Y.unsubscribe(),Y=null,ee.subscribe(B))})}},4351:(z,W,E)=>{"use strict";E.d(W,{b:()=>P});var x=E(5577),n=E(576);function P(D,H){return(0,n.m)(H)?(0,x.z)(D,H,1):(0,x.z)(D,1)}},8372:(z,W,E)=>{"use strict";E.d(W,{b:()=>D});var x=E(4986),n=E(4482),P=E(5403);function D(H,I=x.z){return(0,n.e)((B,Y)=>{let G=null,ee=null,te=null;const ae=()=>{if(G){G.unsubscribe(),G=null;const se=ee;ee=null,Y.next(se)}};function ue(){const se=te+H,re=I.now();if(re{ee=se,te=I.now(),G||(G=I.schedule(ue,H),Y.add(G))},()=>{ae(),Y.complete()},void 0,()=>{ee=G=null}))})}},6590:(z,W,E)=>{"use strict";E.d(W,{d:()=>P});var x=E(4482),n=E(5403);function P(D){return(0,x.e)((H,I)=>{let B=!1;H.subscribe((0,n.x)(I,Y=>{B=!0,I.next(Y)},()=>{B||I.next(D),I.complete()}))})}},1005:(z,W,E)=>{"use strict";E.d(W,{g:()=>ae});var x=E(4986),n=E(7272),P=E(5698),D=E(4482),H=E(5403),I=E(5032),Y=E(9718),G=E(5577);function ee(ue,se){return se?re=>(0,n.z)(se.pipe((0,P.q)(1),function B(){return(0,D.e)((ue,se)=>{ue.subscribe((0,H.x)(se,I.Z))})}()),re.pipe(ee(ue))):(0,G.z)((re,_e)=>ue(re,_e).pipe((0,P.q)(1),(0,Y.h)(re)))}var te=E(2805);function ae(ue,se=x.z){const re=(0,te.H)(ue,se);return ee(()=>re)}},9300:(z,W,E)=>{"use strict";E.d(W,{h:()=>P});var x=E(4482),n=E(5403);function P(D,H){return(0,x.e)((I,B)=>{let Y=0;I.subscribe((0,n.x)(B,G=>D.call(H,G,Y++)&&B.next(G)))})}},590:(z,W,E)=>{"use strict";E.d(W,{P:()=>B});var x=E(6805),n=E(9300),P=E(5698),D=E(6590),H=E(8068),I=E(4671);function B(Y,G){const ee=arguments.length>=2;return te=>te.pipe(Y?(0,n.h)((ae,ue)=>Y(ae,ue,te)):I.y,(0,P.q)(1),ee?(0,D.d)(G):(0,H.T)(()=>new x.K))}},4004:(z,W,E)=>{"use strict";E.d(W,{U:()=>P});var x=E(4482),n=E(5403);function P(D,H){return(0,x.e)((I,B)=>{let Y=0;I.subscribe((0,n.x)(B,G=>{B.next(D.call(H,G,Y++))}))})}},9718:(z,W,E)=>{"use strict";E.d(W,{h:()=>n});var x=E(4004);function n(P){return(0,x.U)(()=>P)}},8189:(z,W,E)=>{"use strict";E.d(W,{J:()=>P});var x=E(5577),n=E(4671);function P(D=1/0){return(0,x.z)(n.y,D)}},5577:(z,W,E)=>{"use strict";E.d(W,{z:()=>Y});var x=E(4004),n=E(8421),P=E(4482),D=E(9672),H=E(5403),B=E(576);function Y(G,ee,te=1/0){return(0,B.m)(ee)?Y((ae,ue)=>(0,x.U)((se,re)=>ee(ae,se,ue,re))((0,n.Xf)(G(ae,ue))),te):("number"==typeof ee&&(te=ee),(0,P.e)((ae,ue)=>function I(G,ee,te,ae,ue,se,re,_e){const ye=[];let Me=0,Je=0,Ze=!1;const ke=()=>{Ze&&!ye.length&&!Me&&ee.complete()},Ee=ut=>Me{se&&ee.next(ut),Me++;let Ve=!1;(0,n.Xf)(te(ut,Je++)).subscribe((0,H.x)(ee,Ne=>{ue?.(Ne),se?Ee(Ne):ee.next(Ne)},()=>{Ve=!0},void 0,()=>{if(Ve)try{for(Me--;ye.length&&MePe(Ne)):Pe(Ne)}ke()}catch(Ne){ee.error(Ne)}}))};return G.subscribe((0,H.x)(ee,Ee,()=>{Ze=!0,ke()})),()=>{_e?.()}}(ae,ue,G,te)))}},3099:(z,W,E)=>{"use strict";E.d(W,{B:()=>H});var x=E(8421),n=E(7579),P=E(930),D=E(4482);function H(B={}){const{connector:Y=(()=>new n.x),resetOnError:G=!0,resetOnComplete:ee=!0,resetOnRefCountZero:te=!0}=B;return ae=>{let ue,se,re,_e=0,ye=!1,Me=!1;const Je=()=>{se?.unsubscribe(),se=void 0},Ze=()=>{Je(),ue=re=void 0,ye=Me=!1},ke=()=>{const Ee=ue;Ze(),Ee?.unsubscribe()};return(0,D.e)((Ee,Pe)=>{_e++,!Me&&!ye&&Je();const ut=re=re??Y();Pe.add(()=>{_e--,0===_e&&!Me&&!ye&&(se=I(ke,te))}),ut.subscribe(Pe),!ue&&_e>0&&(ue=new P.Hp({next:Ve=>ut.next(Ve),error:Ve=>{Me=!0,Je(),se=I(Ze,G,Ve),ut.error(Ve)},complete:()=>{ye=!0,Je(),se=I(Ze,ee),ut.complete()}}),(0,x.Xf)(Ee).subscribe(ue))})(ae)}}function I(B,Y,...G){if(!0===Y)return void B();if(!1===Y)return;const ee=new P.Hp({next:()=>{ee.unsubscribe(),B()}});return Y(...G).subscribe(ee)}},3900:(z,W,E)=>{"use strict";E.d(W,{w:()=>D});var x=E(8421),n=E(4482),P=E(5403);function D(H,I){return(0,n.e)((B,Y)=>{let G=null,ee=0,te=!1;const ae=()=>te&&!G&&Y.complete();B.subscribe((0,P.x)(Y,ue=>{G?.unsubscribe();let se=0;const re=ee++;(0,x.Xf)(H(ue,re)).subscribe(G=(0,P.x)(Y,_e=>Y.next(I?I(ue,_e,re,se++):_e),()=>{G=null,ae()}))},()=>{te=!0,ae()}))})}},5698:(z,W,E)=>{"use strict";E.d(W,{q:()=>D});var x=E(515),n=E(4482),P=E(5403);function D(H){return H<=0?()=>x.E:(0,n.e)((I,B)=>{let Y=0;I.subscribe((0,P.x)(B,G=>{++Y<=H&&(B.next(G),H<=Y&&B.complete())}))})}},8505:(z,W,E)=>{"use strict";E.d(W,{b:()=>H});var x=E(576),n=E(4482),P=E(5403),D=E(4671);function H(I,B,Y){const G=(0,x.m)(I)||B||Y?{next:I,error:B,complete:Y}:I;return G?(0,n.e)((ee,te)=>{var ae;null===(ae=G.subscribe)||void 0===ae||ae.call(G);let ue=!0;ee.subscribe((0,P.x)(te,se=>{var re;null===(re=G.next)||void 0===re||re.call(G,se),te.next(se)},()=>{var se;ue=!1,null===(se=G.complete)||void 0===se||se.call(G),te.complete()},se=>{var re;ue=!1,null===(re=G.error)||void 0===re||re.call(G,se),te.error(se)},()=>{var se,re;ue&&(null===(se=G.unsubscribe)||void 0===se||se.call(G)),null===(re=G.finalize)||void 0===re||re.call(G)}))}):D.y}},8068:(z,W,E)=>{"use strict";E.d(W,{T:()=>D});var x=E(6805),n=E(4482),P=E(5403);function D(I=H){return(0,n.e)((B,Y)=>{let G=!1;B.subscribe((0,P.x)(Y,ee=>{G=!0,Y.next(ee)},()=>G?Y.complete():Y.error(I())))})}function H(){return new x.K}},7414:(z,W,E)=>{"use strict";E.d(W,{V:()=>G});var x=E(4986),n=E(1165),P=E(4482),D=E(8421),H=E(3888),I=E(5403),B=E(9672);const Y=(0,H.d)(te=>function(ue=null){te(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ue});function G(te,ae){const{first:ue,each:se,with:re=ee,scheduler:_e=ae??x.z,meta:ye=null}=(0,n.q)(te)?{first:te}:"number"==typeof te?{each:te}:te;if(null==ue&&null==se)throw new TypeError("No timeout provided.");return(0,P.e)((Me,Je)=>{let Ze,ke,Ee=null,Pe=0;const ut=Ve=>{ke=(0,B.f)(Je,_e,()=>{try{Ze.unsubscribe(),(0,D.Xf)(re({meta:ye,lastValue:Ee,seen:Pe})).subscribe(Je)}catch(Ne){Je.error(Ne)}},Ve)};Ze=Me.subscribe((0,I.x)(Je,Ve=>{ke?.unsubscribe(),Pe++,Je.next(Ee=Ve),se>0&&ut(se)},void 0,void 0,()=>{ke?.closed||ke?.unsubscribe(),Ee=null})),!Pe&&ut(null!=ue?"number"==typeof ue?ue:+ue-_e.now():se)})}function ee(te){throw new Y(te)}},4408:(z,W,E)=>{"use strict";E.d(W,{o:()=>H});var x=E(727);class n extends x.w0{constructor(B,Y){super()}schedule(B,Y=0){return this}}const P={setInterval(I,B,...Y){const{delegate:G}=P;return G?.setInterval?G.setInterval(I,B,...Y):setInterval(I,B,...Y)},clearInterval(I){const{delegate:B}=P;return(B?.clearInterval||clearInterval)(I)},delegate:void 0};var D=E(8737);class H extends n{constructor(B,Y){super(B,Y),this.scheduler=B,this.work=Y,this.pending=!1}schedule(B,Y=0){if(this.closed)return this;this.state=B;const G=this.id,ee=this.scheduler;return null!=G&&(this.id=this.recycleAsyncId(ee,G,Y)),this.pending=!0,this.delay=Y,this.id=this.id||this.requestAsyncId(ee,this.id,Y),this}requestAsyncId(B,Y,G=0){return P.setInterval(B.flush.bind(B,this),G)}recycleAsyncId(B,Y,G=0){if(null!=G&&this.delay===G&&!1===this.pending)return Y;P.clearInterval(Y)}execute(B,Y){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const G=this._execute(B,Y);if(G)return G;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(B,Y){let ee,G=!1;try{this.work(B)}catch(te){G=!0,ee=te||new Error("Scheduled action threw falsy error")}if(G)return this.unsubscribe(),ee}unsubscribe(){if(!this.closed){const{id:B,scheduler:Y}=this,{actions:G}=Y;this.work=this.state=this.scheduler=null,this.pending=!1,(0,D.P)(G,this),null!=B&&(this.id=this.recycleAsyncId(Y,B,null)),this.delay=null,super.unsubscribe()}}}},7565:(z,W,E)=>{"use strict";E.d(W,{v:()=>P});var x=E(6063);class n{constructor(H,I=n.now){this.schedulerActionCtor=H,this.now=I}schedule(H,I=0,B){return new this.schedulerActionCtor(this,H).schedule(B,I)}}n.now=x.l.now;class P extends n{constructor(H,I=n.now){super(H,I),this.actions=[],this._active=!1,this._scheduled=void 0}flush(H){const{actions:I}=this;if(this._active)return void I.push(H);let B;this._active=!0;do{if(B=H.execute(H.state,H.delay))break}while(H=I.shift());if(this._active=!1,B){for(;H=I.shift();)H.unsubscribe();throw B}}}},4986:(z,W,E)=>{"use strict";E.d(W,{P:()=>D,z:()=>P});var x=E(4408);const P=new(E(7565).v)(x.o),D=P},6063:(z,W,E)=>{"use strict";E.d(W,{l:()=>x});const x={now:()=>(x.delegate||Date).now(),delegate:void 0}},3410:(z,W,E)=>{"use strict";E.d(W,{z:()=>x});const x={setTimeout(n,P,...D){const{delegate:H}=x;return H?.setTimeout?H.setTimeout(n,P,...D):setTimeout(n,P,...D)},clearTimeout(n){const{delegate:P}=x;return(P?.clearTimeout||clearTimeout)(n)},delegate:void 0}},2202:(z,W,E)=>{"use strict";E.d(W,{h:()=>n});const n=function x(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(z,W,E)=>{"use strict";E.d(W,{L:()=>x});const x="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(z,W,E)=>{"use strict";E.d(W,{K:()=>n});const n=(0,E(3888).d)(P=>function(){P(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(z,W,E)=>{"use strict";E.d(W,{_6:()=>I,jO:()=>D,yG:()=>H});var x=E(576),n=E(3532);function P(B){return B[B.length-1]}function D(B){return(0,x.m)(P(B))?B.pop():void 0}function H(B){return(0,n.K)(P(B))?B.pop():void 0}function I(B,Y){return"number"==typeof P(B)?B.pop():Y}},4742:(z,W,E)=>{"use strict";E.d(W,{D:()=>H});const{isArray:x}=Array,{getPrototypeOf:n,prototype:P,keys:D}=Object;function H(B){if(1===B.length){const Y=B[0];if(x(Y))return{args:Y,keys:null};if(function I(B){return B&&"object"==typeof B&&n(B)===P}(Y)){const G=D(Y);return{args:G.map(ee=>Y[ee]),keys:G}}}return{args:B,keys:null}}},8737:(z,W,E)=>{"use strict";function x(n,P){if(n){const D=n.indexOf(P);0<=D&&n.splice(D,1)}}E.d(W,{P:()=>x})},3888:(z,W,E)=>{"use strict";function x(n){const D=n(H=>{Error.call(H),H.stack=(new Error).stack});return D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D}E.d(W,{d:()=>x})},1810:(z,W,E)=>{"use strict";function x(n,P){return n.reduce((D,H,I)=>(D[H]=P[I],D),{})}E.d(W,{n:()=>x})},2806:(z,W,E)=>{"use strict";E.d(W,{O:()=>D,x:()=>P});var x=E(2416);let n=null;function P(H){if(x.v.useDeprecatedSynchronousErrorHandling){const I=!n;if(I&&(n={errorThrown:!1,error:null}),H(),I){const{errorThrown:B,error:Y}=n;if(n=null,B)throw Y}}else H()}function D(H){x.v.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=H)}},9672:(z,W,E)=>{"use strict";function x(n,P,D,H=0,I=!1){const B=P.schedule(function(){D(),I?n.add(this.schedule(null,H)):this.unsubscribe()},H);if(n.add(B),!I)return B}E.d(W,{f:()=>x})},4671:(z,W,E)=>{"use strict";function x(n){return n}E.d(W,{y:()=>x})},1144:(z,W,E)=>{"use strict";E.d(W,{z:()=>x});const x=n=>n&&"number"==typeof n.length&&"function"!=typeof n},2206:(z,W,E)=>{"use strict";E.d(W,{D:()=>n});var x=E(576);function n(P){return Symbol.asyncIterator&&(0,x.m)(P?.[Symbol.asyncIterator])}},1165:(z,W,E)=>{"use strict";function x(n){return n instanceof Date&&!isNaN(n)}E.d(W,{q:()=>x})},576:(z,W,E)=>{"use strict";function x(n){return"function"==typeof n}E.d(W,{m:()=>x})},3670:(z,W,E)=>{"use strict";E.d(W,{c:()=>P});var x=E(8822),n=E(576);function P(D){return(0,n.m)(D[x.L])}},6495:(z,W,E)=>{"use strict";E.d(W,{T:()=>P});var x=E(2202),n=E(576);function P(D){return(0,n.m)(D?.[x.h])}},8239:(z,W,E)=>{"use strict";E.d(W,{t:()=>n});var x=E(576);function n(P){return(0,x.m)(P?.then)}},3260:(z,W,E)=>{"use strict";E.d(W,{L:()=>D,Q:()=>P});var x=E(655),n=E(576);function P(H){return(0,x.FC)(this,arguments,function*(){const B=H.getReader();try{for(;;){const{value:Y,done:G}=yield(0,x.qq)(B.read());if(G)return yield(0,x.qq)(void 0);yield yield(0,x.qq)(Y)}}finally{B.releaseLock()}})}function D(H){return(0,n.m)(H?.getReader)}},3532:(z,W,E)=>{"use strict";E.d(W,{K:()=>n});var x=E(576);function n(P){return P&&(0,x.m)(P.schedule)}},4482:(z,W,E)=>{"use strict";E.d(W,{A:()=>n,e:()=>P});var x=E(576);function n(D){return(0,x.m)(D?.lift)}function P(D){return H=>{if(n(H))return H.lift(function(I){try{return D(I,this)}catch(B){this.error(B)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(z,W,E)=>{"use strict";E.d(W,{Z:()=>D});var x=E(4004);const{isArray:n}=Array;function D(H){return(0,x.U)(I=>function P(H,I){return n(I)?H(...I):H(I)}(H,I))}},5032:(z,W,E)=>{"use strict";function x(){}E.d(W,{Z:()=>x})},9635:(z,W,E)=>{"use strict";E.d(W,{U:()=>P,z:()=>n});var x=E(4671);function n(...D){return P(D)}function P(D){return 0===D.length?x.y:1===D.length?D[0]:function(I){return D.reduce((B,Y)=>Y(B),I)}}},7849:(z,W,E)=>{"use strict";E.d(W,{h:()=>P});var x=E(2416),n=E(3410);function P(D){n.z.setTimeout(()=>{const{onUnhandledError:H}=x.v;if(!H)throw D;H(D)})}},4532:(z,W,E)=>{"use strict";function x(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(W,{z:()=>x})},6700:(z,W,E)=>{var x={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function n(D){var H=P(D);return E(H)}function P(D){if(!E.o(x,D)){var H=new Error("Cannot find module '"+D+"'");throw H.code="MODULE_NOT_FOUND",H}return x[D]}n.keys=function(){return Object.keys(x)},n.resolve=P,z.exports=n,n.id=6700},655:(z,W,E)=>{"use strict";function Y(fe,ge,Te,we){return new(Te||(Te=Promise))(function(Ye,Et){function Bt(ci){try{Qe(we.next(ci))}catch(Mi){Et(Mi)}}function Kt(ci){try{Qe(we.throw(ci))}catch(Mi){Et(Mi)}}function Qe(ci){ci.done?Ye(ci.value):function ze(Ye){return Ye instanceof Te?Ye:new Te(function(Et){Et(Ye)})}(ci.value).then(Bt,Kt)}Qe((we=we.apply(fe,ge||[])).next())})}function ye(fe){return this instanceof ye?(this.v=fe,this):new ye(fe)}function Me(fe,ge,Te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ze,we=Te.apply(fe,ge||[]),Ye=[];return ze={},Et("next"),Et("throw"),Et("return"),ze[Symbol.asyncIterator]=function(){return this},ze;function Et(Ge){we[Ge]&&(ze[Ge]=function(Xt){return new Promise(function(Cr,En){Ye.push([Ge,Xt,Cr,En])>1||Bt(Ge,Xt)})})}function Bt(Ge,Xt){try{!function Kt(Ge){Ge.value instanceof ye?Promise.resolve(Ge.value.v).then(Qe,ci):Mi(Ye[0][2],Ge)}(we[Ge](Xt))}catch(Cr){Mi(Ye[0][3],Cr)}}function Qe(Ge){Bt("next",Ge)}function ci(Ge){Bt("throw",Ge)}function Mi(Ge,Xt){Ge(Xt),Ye.shift(),Ye.length&&Bt(Ye[0][0],Ye[0][1])}}function Ze(fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Te,ge=fe[Symbol.asyncIterator];return ge?ge.call(fe):(fe=function ae(fe){var ge="function"==typeof Symbol&&Symbol.iterator,Te=ge&&fe[ge],we=0;if(Te)return Te.call(fe);if(fe&&"number"==typeof fe.length)return{next:function(){return fe&&we>=fe.length&&(fe=void 0),{value:fe&&fe[we++],done:!fe}}};throw new TypeError(ge?"Object is not iterable.":"Symbol.iterator is not defined.")}(fe),Te={},we("next"),we("throw"),we("return"),Te[Symbol.asyncIterator]=function(){return this},Te);function we(Ye){Te[Ye]=fe[Ye]&&function(Et){return new Promise(function(Bt,Kt){!function ze(Ye,Et,Bt,Kt){Promise.resolve(Kt).then(function(Qe){Ye({value:Qe,done:Bt})},Et)}(Bt,Kt,(Et=fe[Ye](Et)).done,Et.value)})}}}E.d(W,{FC:()=>Me,KL:()=>Ze,mG:()=>Y,qq:()=>ye})},6895:(z,W,E)=>{"use strict";E.d(W,{Do:()=>Ze,ED:()=>da,EM:()=>pa,HT:()=>H,JF:()=>fi,K0:()=>B,Mx:()=>_t,NF:()=>Zu,O5:()=>ni,Ov:()=>Dn,PC:()=>Xi,RF:()=>ur,S$:()=>ye,V_:()=>ee,Ye:()=>ke,b0:()=>Je,bD:()=>ui,ez:()=>Uo,mk:()=>Tr,n9:()=>Hi,p6:()=>Ie,q:()=>P,sg:()=>dr,tP:()=>bn,uU:()=>wn,w_:()=>I});var x=E(4650);let n=null;function P(){return n}function H(U){n||(n=U)}class I{}const B=new x.OlP("DocumentToken");let Y=(()=>{class U{historyGo(N){throw new Error("Not implemented")}}return U.\u0275fac=function(N){return new(N||U)},U.\u0275prov=x.Yz7({token:U,factory:function(){return function G(){return(0,x.LFG)(te)}()},providedIn:"platform"}),U})();const ee=new x.OlP("Location Initialized");let te=(()=>{class U extends Y{constructor(N){super(),this._doc=N,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return P().getBaseHref(this._doc)}onPopState(N){const X=P().getGlobalEventTarget(this._doc,"window");return X.addEventListener("popstate",N,!1),()=>X.removeEventListener("popstate",N)}onHashChange(N){const X=P().getGlobalEventTarget(this._doc,"window");return X.addEventListener("hashchange",N,!1),()=>X.removeEventListener("hashchange",N)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(N){this.location.pathname=N}pushState(N,X,he){ae()?this._history.pushState(N,X,he):this.location.hash=he}replaceState(N,X,he){ae()?this._history.replaceState(N,X,he):this.location.hash=he}forward(){this._history.forward()}back(){this._history.back()}historyGo(N=0){this._history.go(N)}getState(){return this._history.state}}return U.\u0275fac=function(N){return new(N||U)(x.LFG(B))},U.\u0275prov=x.Yz7({token:U,factory:function(){return function ue(){return new te((0,x.LFG)(B))}()},providedIn:"platform"}),U})();function ae(){return!!window.history.pushState}function se(U,J){if(0==U.length)return J;if(0==J.length)return U;let N=0;return U.endsWith("/")&&N++,J.startsWith("/")&&N++,2==N?U+J.substring(1):1==N?U+J:U+"/"+J}function re(U){const J=U.match(/#|\?|$/),N=J&&J.index||U.length;return U.slice(0,N-("/"===U[N-1]?1:0))+U.slice(N)}function _e(U){return U&&"?"!==U[0]?"?"+U:U}let ye=(()=>{class U{historyGo(N){throw new Error("Not implemented")}}return U.\u0275fac=function(N){return new(N||U)},U.\u0275prov=x.Yz7({token:U,factory:function(){return(0,x.f3M)(Je)},providedIn:"root"}),U})();const Me=new x.OlP("appBaseHref");let Je=(()=>{class U extends ye{constructor(N,X){super(),this._platformLocation=N,this._removeListenerFns=[],this._baseHref=X??this._platformLocation.getBaseHrefFromDOM()??(0,x.f3M)(B).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(N){this._removeListenerFns.push(this._platformLocation.onPopState(N),this._platformLocation.onHashChange(N))}getBaseHref(){return this._baseHref}prepareExternalUrl(N){return se(this._baseHref,N)}path(N=!1){const X=this._platformLocation.pathname+_e(this._platformLocation.search),he=this._platformLocation.hash;return he&&N?`${X}${he}`:X}pushState(N,X,he,ve){const be=this.prepareExternalUrl(he+_e(ve));this._platformLocation.pushState(N,X,be)}replaceState(N,X,he,ve){const be=this.prepareExternalUrl(he+_e(ve));this._platformLocation.replaceState(N,X,be)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(N=0){this._platformLocation.historyGo?.(N)}}return U.\u0275fac=function(N){return new(N||U)(x.LFG(Y),x.LFG(Me,8))},U.\u0275prov=x.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),Ze=(()=>{class U extends ye{constructor(N,X){super(),this._platformLocation=N,this._baseHref="",this._removeListenerFns=[],null!=X&&(this._baseHref=X)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(N){this._removeListenerFns.push(this._platformLocation.onPopState(N),this._platformLocation.onHashChange(N))}getBaseHref(){return this._baseHref}path(N=!1){let X=this._platformLocation.hash;return null==X&&(X="#"),X.length>0?X.substring(1):X}prepareExternalUrl(N){const X=se(this._baseHref,N);return X.length>0?"#"+X:X}pushState(N,X,he,ve){let be=this.prepareExternalUrl(he+_e(ve));0==be.length&&(be=this._platformLocation.pathname),this._platformLocation.pushState(N,X,be)}replaceState(N,X,he,ve){let be=this.prepareExternalUrl(he+_e(ve));0==be.length&&(be=this._platformLocation.pathname),this._platformLocation.replaceState(N,X,be)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(N=0){this._platformLocation.historyGo?.(N)}}return U.\u0275fac=function(N){return new(N||U)(x.LFG(Y),x.LFG(Me,8))},U.\u0275prov=x.Yz7({token:U,factory:U.\u0275fac}),U})(),ke=(()=>{class U{constructor(N){this._subject=new x.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=N;const X=this._locationStrategy.getBaseHref();this._baseHref=re(ut(X)),this._locationStrategy.onPopState(he=>{this._subject.emit({url:this.path(!0),pop:!0,state:he.state,type:he.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(N=!1){return this.normalize(this._locationStrategy.path(N))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(N,X=""){return this.path()==this.normalize(N+_e(X))}normalize(N){return U.stripTrailingSlash(function Pe(U,J){return U&&J.startsWith(U)?J.substring(U.length):J}(this._baseHref,ut(N)))}prepareExternalUrl(N){return N&&"/"!==N[0]&&(N="/"+N),this._locationStrategy.prepareExternalUrl(N)}go(N,X="",he=null){this._locationStrategy.pushState(he,"",N,X),this._notifyUrlChangeListeners(this.prepareExternalUrl(N+_e(X)),he)}replaceState(N,X="",he=null){this._locationStrategy.replaceState(he,"",N,X),this._notifyUrlChangeListeners(this.prepareExternalUrl(N+_e(X)),he)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(N=0){this._locationStrategy.historyGo?.(N)}onUrlChange(N){return this._urlChangeListeners.push(N),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(X=>{this._notifyUrlChangeListeners(X.url,X.state)})),()=>{const X=this._urlChangeListeners.indexOf(N);this._urlChangeListeners.splice(X,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(N="",X){this._urlChangeListeners.forEach(he=>he(N,X))}subscribe(N,X,he){return this._subject.subscribe({next:N,error:X,complete:he})}}return U.normalizeQueryParams=_e,U.joinWithSlash=se,U.stripTrailingSlash=re,U.\u0275fac=function(N){return new(N||U)(x.LFG(ye))},U.\u0275prov=x.Yz7({token:U,factory:function(){return function Ee(){return new ke((0,x.LFG)(ye))}()},providedIn:"root"}),U})();function ut(U){return U.replace(/\/index.html$/,"")}var fe=(()=>((fe=fe||{})[fe.Format=0]="Format",fe[fe.Standalone=1]="Standalone",fe))(),ge=(()=>((ge=ge||{})[ge.Narrow=0]="Narrow",ge[ge.Abbreviated=1]="Abbreviated",ge[ge.Wide=2]="Wide",ge[ge.Short=3]="Short",ge))(),Te=(()=>((Te=Te||{})[Te.Short=0]="Short",Te[Te.Medium=1]="Medium",Te[Te.Long=2]="Long",Te[Te.Full=3]="Full",Te))(),we=(()=>((we=we||{})[we.Decimal=0]="Decimal",we[we.Group=1]="Group",we[we.List=2]="List",we[we.PercentSign=3]="PercentSign",we[we.PlusSign=4]="PlusSign",we[we.MinusSign=5]="MinusSign",we[we.Exponential=6]="Exponential",we[we.SuperscriptingExponent=7]="SuperscriptingExponent",we[we.PerMille=8]="PerMille",we[we.Infinity=9]="Infinity",we[we.NaN=10]="NaN",we[we.TimeSeparator=11]="TimeSeparator",we[we.CurrencyDecimal=12]="CurrencyDecimal",we[we.CurrencyGroup=13]="CurrencyGroup",we))();function Ge(U,J){return ei((0,x.cg1)(U)[x.wAp.DateFormat],J)}function Xt(U,J){return ei((0,x.cg1)(U)[x.wAp.TimeFormat],J)}function Cr(U,J){return ei((0,x.cg1)(U)[x.wAp.DateTimeFormat],J)}function En(U,J){const N=(0,x.cg1)(U),X=N[x.wAp.NumberSymbols][J];if(typeof X>"u"){if(J===we.CurrencyDecimal)return N[x.wAp.NumberSymbols][we.Decimal];if(J===we.CurrencyGroup)return N[x.wAp.NumberSymbols][we.Group]}return X}function Vr(U){if(!U[x.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${U[x.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ei(U,J){for(let N=J;N>-1;N--)if(typeof U[N]<"u")return U[N];throw new Error("Locale data API: locale data undefined")}function Ar(U){const[J,N]=U.split(":");return{hours:+J,minutes:+N}}const lr=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,zt={},Re=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var oe=(()=>((oe=oe||{})[oe.Short=0]="Short",oe[oe.ShortGMT=1]="ShortGMT",oe[oe.Long=2]="Long",oe[oe.Extended=3]="Extended",oe))(),ie=(()=>((ie=ie||{})[ie.FullYear=0]="FullYear",ie[ie.Month=1]="Month",ie[ie.Date=2]="Date",ie[ie.Hours=3]="Hours",ie[ie.Minutes=4]="Minutes",ie[ie.Seconds=5]="Seconds",ie[ie.FractionalSeconds=6]="FractionalSeconds",ie[ie.Day=7]="Day",ie))(),pe=(()=>((pe=pe||{})[pe.DayPeriods=0]="DayPeriods",pe[pe.Days=1]="Days",pe[pe.Months=2]="Months",pe[pe.Eras=3]="Eras",pe))();function Ie(U,J,N,X){let he=function ti(U){if(On(U))return U;if("number"==typeof U&&!isNaN(U))return new Date(U);if("string"==typeof U){if(U=U.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(U)){const[he,ve=1,be=1]=U.split("-").map(at=>+at);return ft(he,ve-1,be)}const N=parseFloat(U);if(!isNaN(U-N))return new Date(N);let X;if(X=U.match(lr))return function qe(U){const J=new Date(0);let N=0,X=0;const he=U[8]?J.setUTCFullYear:J.setFullYear,ve=U[8]?J.setUTCHours:J.setHours;U[9]&&(N=Number(U[9]+U[10]),X=Number(U[9]+U[11])),he.call(J,Number(U[1]),Number(U[2])-1,Number(U[3]));const be=Number(U[4]||0)-N,at=Number(U[5]||0)-X,vn=Number(U[6]||0),on=Math.floor(1e3*parseFloat("0."+(U[7]||0)));return ve.call(J,be,at,vn,on),J}(X)}const J=new Date(U);if(!On(J))throw new Error(`Unable to convert "${U}" into a date`);return J}(U);J=Dt(N,J)||J;let at,be=[];for(;J;){if(at=Re.exec(J),!at){be.push(J);break}{be=be.concat(at.slice(1));const cn=be.pop();if(!cn)break;J=cn}}let vn=he.getTimezoneOffset();X&&(vn=us(X,vn),he=function Zn(U,J,N){const X=N?-1:1,he=U.getTimezoneOffset();return function $t(U,J){return(U=new Date(U.getTime())).setMinutes(U.getMinutes()+J),U}(U,X*(us(J,he)-he))}(he,X,!0));let on="";return be.forEach(cn=>{const Yt=function pd(U){if(sa[U])return sa[U];let J;switch(U){case"G":case"GG":case"GGG":J=yt(pe.Eras,ge.Abbreviated);break;case"GGGG":J=yt(pe.Eras,ge.Wide);break;case"GGGGG":J=yt(pe.Eras,ge.Narrow);break;case"y":J=Ht(ie.FullYear,1,0,!1,!0);break;case"yy":J=Ht(ie.FullYear,2,0,!0,!0);break;case"yyy":J=Ht(ie.FullYear,3,0,!1,!0);break;case"yyyy":J=Ht(ie.FullYear,4,0,!1,!0);break;case"Y":J=cr(1);break;case"YY":J=cr(2,!0);break;case"YYY":J=cr(3);break;case"YYYY":J=cr(4);break;case"M":case"L":J=Ht(ie.Month,1,1);break;case"MM":case"LL":J=Ht(ie.Month,2,1);break;case"MMM":J=yt(pe.Months,ge.Abbreviated);break;case"MMMM":J=yt(pe.Months,ge.Wide);break;case"MMMMM":J=yt(pe.Months,ge.Narrow);break;case"LLL":J=yt(pe.Months,ge.Abbreviated,fe.Standalone);break;case"LLLL":J=yt(pe.Months,ge.Wide,fe.Standalone);break;case"LLLLL":J=yt(pe.Months,ge.Narrow,fe.Standalone);break;case"w":J=vr(1);break;case"ww":J=vr(2);break;case"W":J=vr(1,!0);break;case"d":J=Ht(ie.Date,1);break;case"dd":J=Ht(ie.Date,2);break;case"c":case"cc":J=Ht(ie.Day,1);break;case"ccc":J=yt(pe.Days,ge.Abbreviated,fe.Standalone);break;case"cccc":J=yt(pe.Days,ge.Wide,fe.Standalone);break;case"ccccc":J=yt(pe.Days,ge.Narrow,fe.Standalone);break;case"cccccc":J=yt(pe.Days,ge.Short,fe.Standalone);break;case"E":case"EE":case"EEE":J=yt(pe.Days,ge.Abbreviated);break;case"EEEE":J=yt(pe.Days,ge.Wide);break;case"EEEEE":J=yt(pe.Days,ge.Narrow);break;case"EEEEEE":J=yt(pe.Days,ge.Short);break;case"a":case"aa":case"aaa":J=yt(pe.DayPeriods,ge.Abbreviated);break;case"aaaa":J=yt(pe.DayPeriods,ge.Wide);break;case"aaaaa":J=yt(pe.DayPeriods,ge.Narrow);break;case"b":case"bb":case"bbb":J=yt(pe.DayPeriods,ge.Abbreviated,fe.Standalone,!0);break;case"bbbb":J=yt(pe.DayPeriods,ge.Wide,fe.Standalone,!0);break;case"bbbbb":J=yt(pe.DayPeriods,ge.Narrow,fe.Standalone,!0);break;case"B":case"BB":case"BBB":J=yt(pe.DayPeriods,ge.Abbreviated,fe.Format,!0);break;case"BBBB":J=yt(pe.DayPeriods,ge.Wide,fe.Format,!0);break;case"BBBBB":J=yt(pe.DayPeriods,ge.Narrow,fe.Format,!0);break;case"h":J=Ht(ie.Hours,1,-12);break;case"hh":J=Ht(ie.Hours,2,-12);break;case"H":J=Ht(ie.Hours,1);break;case"HH":J=Ht(ie.Hours,2);break;case"m":J=Ht(ie.Minutes,1);break;case"mm":J=Ht(ie.Minutes,2);break;case"s":J=Ht(ie.Seconds,1);break;case"ss":J=Ht(ie.Seconds,2);break;case"S":J=Ht(ie.FractionalSeconds,1);break;case"SS":J=Ht(ie.FractionalSeconds,2);break;case"SSS":J=Ht(ie.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":J=wt(oe.Short);break;case"ZZZZZ":J=wt(oe.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":J=wt(oe.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":J=wt(oe.Long);break;default:return null}return sa[U]=J,J}(cn);on+=Yt?Yt(he,N,vn):"''"===cn?"'":cn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),on}function ft(U,J,N){const X=new Date(0);return X.setFullYear(U,J,N),X.setHours(0,0,0),X}function Dt(U,J){const N=function Ye(U){return(0,x.cg1)(U)[x.wAp.LocaleId]}(U);if(zt[N]=zt[N]||{},zt[N][J])return zt[N][J];let X="";switch(J){case"shortDate":X=Ge(U,Te.Short);break;case"mediumDate":X=Ge(U,Te.Medium);break;case"longDate":X=Ge(U,Te.Long);break;case"fullDate":X=Ge(U,Te.Full);break;case"shortTime":X=Xt(U,Te.Short);break;case"mediumTime":X=Xt(U,Te.Medium);break;case"longTime":X=Xt(U,Te.Long);break;case"fullTime":X=Xt(U,Te.Full);break;case"short":const he=Dt(U,"shortTime"),ve=Dt(U,"shortDate");X=et(Cr(U,Te.Short),[he,ve]);break;case"medium":const be=Dt(U,"mediumTime"),at=Dt(U,"mediumDate");X=et(Cr(U,Te.Medium),[be,at]);break;case"long":const vn=Dt(U,"longTime"),on=Dt(U,"longDate");X=et(Cr(U,Te.Long),[vn,on]);break;case"full":const cn=Dt(U,"fullTime"),Yt=Dt(U,"fullDate");X=et(Cr(U,Te.Full),[cn,Yt])}return X&&(zt[N][J]=X),X}function et(U,J){return J&&(U=U.replace(/\{([^}]+)}/g,function(N,X){return null!=J&&X in J?J[X]:N})),U}function gt(U,J,N="-",X,he){let ve="";(U<0||he&&U<=0)&&(he?U=1-U:(U=-U,ve=N));let be=String(U);for(;be.length0||at>-N)&&(at+=N),U===ie.Hours)0===at&&-12===N&&(at=12);else if(U===ie.FractionalSeconds)return function In(U,J){return gt(U,3).substring(0,J)}(at,J);const vn=En(be,we.MinusSign);return gt(at,J,vn,X,he)}}function yt(U,J,N=fe.Format,X=!1){return function(he,ve){return function Gt(U,J,N,X,he,ve){switch(N){case pe.Months:return function Kt(U,J,N){const X=(0,x.cg1)(U),ve=ei([X[x.wAp.MonthsFormat],X[x.wAp.MonthsStandalone]],J);return ei(ve,N)}(J,he,X)[U.getMonth()];case pe.Days:return function Bt(U,J,N){const X=(0,x.cg1)(U),ve=ei([X[x.wAp.DaysFormat],X[x.wAp.DaysStandalone]],J);return ei(ve,N)}(J,he,X)[U.getDay()];case pe.DayPeriods:const be=U.getHours(),at=U.getMinutes();if(ve){const on=function ds(U){const J=(0,x.cg1)(U);return Vr(J),(J[x.wAp.ExtraData][2]||[]).map(X=>"string"==typeof X?Ar(X):[Ar(X[0]),Ar(X[1])])}(J),cn=function Ys(U,J,N){const X=(0,x.cg1)(U);Vr(X);const ve=ei([X[x.wAp.ExtraData][0],X[x.wAp.ExtraData][1]],J)||[];return ei(ve,N)||[]}(J,he,X),Yt=on.findIndex(ii=>{if(Array.isArray(ii)){const[tt,dn]=ii,Ce=be>=tt.hours&&at>=tt.minutes,lt=be0?Math.floor(he/60):Math.ceil(he/60);switch(U){case oe.Short:return(he>=0?"+":"")+gt(be,2,ve)+gt(Math.abs(he%60),2,ve);case oe.ShortGMT:return"GMT"+(he>=0?"+":"")+gt(be,1,ve);case oe.Long:return"GMT"+(he>=0?"+":"")+gt(be,2,ve)+":"+gt(Math.abs(he%60),2,ve);case oe.Extended:return 0===X?"Z":(he>=0?"+":"")+gt(be,2,ve)+":"+gt(Math.abs(he%60),2,ve);default:throw new Error(`Unknown zone width "${U}"`)}}}function Ur(U){return ft(U.getFullYear(),U.getMonth(),U.getDate()+(4-U.getDay()))}function vr(U,J=!1){return function(N,X){let he;if(J){const ve=new Date(N.getFullYear(),N.getMonth(),1).getDay()-1,be=N.getDate();he=1+Math.floor((be+ve)/7)}else{const ve=Ur(N),be=function Yn(U){const J=ft(U,0,1).getDay();return ft(U,0,1+(J<=4?4:11)-J)}(ve.getFullYear()),at=ve.getTime()-be.getTime();he=1+Math.round(at/6048e5)}return gt(he,U,En(X,we.MinusSign))}}function cr(U,J=!1){return function(N,X){return gt(Ur(N).getFullYear(),U,En(X,we.MinusSign),J)}}const sa={};function us(U,J){U=U.replace(/:/g,"");const N=Date.parse("Jan 01, 1970 00:00:00 "+U)/6e4;return isNaN(N)?J:N}function On(U){return U instanceof Date&&!isNaN(U.valueOf())}function _t(U,J){J=encodeURIComponent(J);for(const N of U.split(";")){const X=N.indexOf("="),[he,ve]=-1==X?[N,""]:[N.slice(0,X),N.slice(X+1)];if(he.trim()===J)return decodeURIComponent(ve)}return null}let Tr=(()=>{class U{constructor(N,X,he,ve){this._iterableDiffers=N,this._keyValueDiffers=X,this._ngEl=he,this._renderer=ve,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(N){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof N?N.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(N){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof N?N.split(/\s+/):N,this._rawClass&&((0,x.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const N=this._iterableDiffer.diff(this._rawClass);N&&this._applyIterableChanges(N)}else if(this._keyValueDiffer){const N=this._keyValueDiffer.diff(this._rawClass);N&&this._applyKeyValueChanges(N)}}_applyKeyValueChanges(N){N.forEachAddedItem(X=>this._toggleClass(X.key,X.currentValue)),N.forEachChangedItem(X=>this._toggleClass(X.key,X.currentValue)),N.forEachRemovedItem(X=>{X.previousValue&&this._toggleClass(X.key,!1)})}_applyIterableChanges(N){N.forEachAddedItem(X=>{if("string"!=typeof X.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,x.AaK)(X.item)}`);this._toggleClass(X.item,!0)}),N.forEachRemovedItem(X=>this._toggleClass(X.item,!1))}_applyClasses(N){N&&(Array.isArray(N)||N instanceof Set?N.forEach(X=>this._toggleClass(X,!0)):Object.keys(N).forEach(X=>this._toggleClass(X,!!N[X])))}_removeClasses(N){N&&(Array.isArray(N)||N instanceof Set?N.forEach(X=>this._toggleClass(X,!1)):Object.keys(N).forEach(X=>this._toggleClass(X,!1)))}_toggleClass(N,X){(N=N.trim())&&N.split(/\s+/g).forEach(he=>{X?this._renderer.addClass(this._ngEl.nativeElement,he):this._renderer.removeClass(this._ngEl.nativeElement,he)})}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.ZZ4),x.Y36(x.aQg),x.Y36(x.SBq),x.Y36(x.Qsj))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),U})();class ca{constructor(J,N,X,he){this.$implicit=J,this.ngForOf=N,this.index=X,this.count=he}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let dr=(()=>{class U{constructor(N,X,he){this._viewContainer=N,this._template=X,this._differs=he,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(N){this._ngForOf=N,this._ngForOfDirty=!0}set ngForTrackBy(N){this._trackByFn=N}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(N){N&&(this._template=N)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const N=this._ngForOf;!this._differ&&N&&(this._differ=this._differs.find(N).create(this.ngForTrackBy))}if(this._differ){const N=this._differ.diff(this._ngForOf);N&&this._applyChanges(N)}}_applyChanges(N){const X=this._viewContainer;N.forEachOperation((he,ve,be)=>{if(null==he.previousIndex)X.createEmbeddedView(this._template,new ca(he.item,this._ngForOf,-1,-1),null===be?void 0:be);else if(null==be)X.remove(null===ve?void 0:ve);else if(null!==ve){const at=X.get(ve);X.move(at,be),Bn(at,he)}});for(let he=0,ve=X.length;he{Bn(X.get(he.currentIndex),he)})}static ngTemplateContextGuard(N,X){return!0}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.s_b),x.Y36(x.Rgc),x.Y36(x.ZZ4))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),U})();function Bn(U,J){U.context.$implicit=J.item}let ni=(()=>{class U{constructor(N,X){this._viewContainer=N,this._context=new Di,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=X}set ngIf(N){this._context.$implicit=this._context.ngIf=N,this._updateView()}set ngIfThen(N){Ki("ngIfThen",N),this._thenTemplateRef=N,this._thenViewRef=null,this._updateView()}set ngIfElse(N){Ki("ngIfElse",N),this._elseTemplateRef=N,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(N,X){return!0}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.s_b),x.Y36(x.Rgc))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),U})();class Di{constructor(){this.$implicit=null,this.ngIf=null}}function Ki(U,J){if(J&&!J.createEmbeddedView)throw new Error(`${U} must be a TemplateRef, but received '${(0,x.AaK)(J)}'.`)}class qr{constructor(J,N){this._viewContainerRef=J,this._templateRef=N,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(J){J&&!this._created?this.create():!J&&this._created&&this.destroy()}}let ur=(()=>{class U{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(N){this._ngSwitch=N,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(N){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(N)}_matchCase(N){const X=N==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||X,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),X}_updateDefaultCases(N){if(this._defaultViews&&N!==this._defaultUsed){this._defaultUsed=N;for(let X=0;X{class U{constructor(N,X,he){this.ngSwitch=he,he._addCase(),this._view=new qr(N,X)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.s_b),x.Y36(x.Rgc),x.Y36(ur,9))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),U})(),da=(()=>{class U{constructor(N,X,he){he._addDefault(new qr(N,X))}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.s_b),x.Y36(x.Rgc),x.Y36(ur,9))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngSwitchDefault",""]],standalone:!0}),U})(),Xi=(()=>{class U{constructor(N,X,he){this._ngEl=N,this._differs=X,this._renderer=he,this._ngStyle=null,this._differ=null}set ngStyle(N){this._ngStyle=N,!this._differ&&N&&(this._differ=this._differs.find(N).create())}ngDoCheck(){if(this._differ){const N=this._differ.diff(this._ngStyle);N&&this._applyChanges(N)}}_setStyle(N,X){const[he,ve]=N.split("."),be=-1===he.indexOf("-")?void 0:x.JOm.DashCase;null!=X?this._renderer.setStyle(this._ngEl.nativeElement,he,ve?`${X}${ve}`:X,be):this._renderer.removeStyle(this._ngEl.nativeElement,he,be)}_applyChanges(N){N.forEachRemovedItem(X=>this._setStyle(X.key,null)),N.forEachAddedItem(X=>this._setStyle(X.key,X.currentValue)),N.forEachChangedItem(X=>this._setStyle(X.key,X.currentValue))}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.SBq),x.Y36(x.aQg),x.Y36(x.Qsj))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),U})(),bn=(()=>{class U{constructor(N){this._viewContainerRef=N,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(N){if(N.ngTemplateOutlet||N.ngTemplateOutletInjector){const X=this._viewContainerRef;if(this._viewRef&&X.remove(X.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:he,ngTemplateOutletContext:ve,ngTemplateOutletInjector:be}=this;this._viewRef=X.createEmbeddedView(he,ve,be?{injector:be}:void 0)}else this._viewRef=null}else this._viewRef&&N.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.s_b))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[x.TTD]}),U})();function it(U,J){return new x.vHH(2100,!1)}class Gs{createSubscription(J,N){return J.subscribe({next:N,error:X=>{throw X}})}dispose(J){J.unsubscribe()}}class fd{createSubscription(J,N){return J.then(N,X=>{throw X})}dispose(J){}}const v=new fd,Vn=new Gs;let Dn=(()=>{class U{constructor(N){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=N}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(N){return this._obj?N!==this._obj?(this._dispose(),this.transform(N)):this._latestValue:(N&&this._subscribe(N),this._latestValue)}_subscribe(N){this._obj=N,this._strategy=this._selectStrategy(N),this._subscription=this._strategy.createSubscription(N,X=>this._updateLatestValue(N,X))}_selectStrategy(N){if((0,x.QGY)(N))return v;if((0,x.F4k)(N))return Vn;throw it()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(N,X){N===this._obj&&(this._latestValue=X,this._ref.markForCheck())}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.sBO,16))},U.\u0275pipe=x.Yjl({name:"async",type:U,pure:!1,standalone:!0}),U})();const Va=new x.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let wn=(()=>{class U{constructor(N,X){this.locale=N,this.defaultTimezone=X}transform(N,X="mediumDate",he,ve){if(null==N||""===N||N!=N)return null;try{return Ie(N,X,ve||this.locale,he??this.defaultTimezone??void 0)}catch(be){throw it()}}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.soG,16),x.Y36(Va,24))},U.\u0275pipe=x.Yjl({name:"date",type:U,pure:!0,standalone:!0}),U})(),Uo=(()=>{class U{}return U.\u0275fac=function(N){return new(N||U)},U.\u0275mod=x.oAB({type:U}),U.\u0275inj=x.cJS({}),U})();const ui="browser";function Zu(U){return U===ui}let pa=(()=>{class U{}return U.\u0275prov=(0,x.Yz7)({token:U,providedIn:"root",factory:()=>new er((0,x.LFG)(B),window)}),U})();class er{constructor(J,N){this.document=J,this.window=N,this.offset=()=>[0,0]}setOffset(J){this.offset=Array.isArray(J)?()=>J:J}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(J){this.supportsScrolling()&&this.window.scrollTo(J[0],J[1])}scrollToAnchor(J){if(!this.supportsScrolling())return;const N=function tc(U,J){const N=U.getElementById(J)||U.getElementsByName(J)[0];if(N)return N;if("function"==typeof U.createTreeWalker&&U.body&&(U.body.createShadowRoot||U.body.attachShadow)){const X=U.createTreeWalker(U.body,NodeFilter.SHOW_ELEMENT);let he=X.currentNode;for(;he;){const ve=he.shadowRoot;if(ve){const be=ve.getElementById(J)||ve.querySelector(`[name="${J}"]`);if(be)return be}he=X.nextNode()}}return null}(this.document,J);N&&(this.scrollToElement(N),N.focus())}setHistoryScrollRestoration(J){if(this.supportScrollRestoration()){const N=this.window.history;N&&N.scrollRestoration&&(N.scrollRestoration=J)}}scrollToElement(J){const N=J.getBoundingClientRect(),X=N.left+this.window.pageXOffset,he=N.top+this.window.pageYOffset,ve=this.offset();this.window.scrollTo(X-ve[0],he-ve[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const J=ec(this.window.history)||ec(Object.getPrototypeOf(this.window.history));return!(!J||!J.writable&&!J.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ec(U){return Object.getOwnPropertyDescriptor(U,"scrollRestoration")}class fi{}},529:(z,W,E)=>{"use strict";E.d(W,{JF:()=>Io,LE:()=>Me,TP:()=>Bt,WM:()=>ee,Zn:()=>Te,eN:()=>Ye,qT:()=>Ze});var x=E(6895),n=E(4650),P=E(9646),D=E(9751),H=E(4351),I=E(9300),B=E(4004);class Y{}class G{}class ee{constructor(oe){this.normalizedNames=new Map,this.lazyUpdate=null,oe?this.lazyInit="string"==typeof oe?()=>{this.headers=new Map,oe.split("\n").forEach(ie=>{const pe=ie.indexOf(":");if(pe>0){const Ie=ie.slice(0,pe),ft=Ie.toLowerCase(),Dt=ie.slice(pe+1).trim();this.maybeSetNormalizedName(Ie,ft),this.headers.has(ft)?this.headers.get(ft).push(Dt):this.headers.set(ft,[Dt])}})}:()=>{this.headers=new Map,Object.keys(oe).forEach(ie=>{let pe=oe[ie];const Ie=ie.toLowerCase();"string"==typeof pe&&(pe=[pe]),pe.length>0&&(this.headers.set(Ie,pe),this.maybeSetNormalizedName(ie,Ie))})}:this.headers=new Map}has(oe){return this.init(),this.headers.has(oe.toLowerCase())}get(oe){this.init();const ie=this.headers.get(oe.toLowerCase());return ie&&ie.length>0?ie[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(oe){return this.init(),this.headers.get(oe.toLowerCase())||null}append(oe,ie){return this.clone({name:oe,value:ie,op:"a"})}set(oe,ie){return this.clone({name:oe,value:ie,op:"s"})}delete(oe,ie){return this.clone({name:oe,value:ie,op:"d"})}maybeSetNormalizedName(oe,ie){this.normalizedNames.has(ie)||this.normalizedNames.set(ie,oe)}init(){this.lazyInit&&(this.lazyInit instanceof ee?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(oe=>this.applyUpdate(oe)),this.lazyUpdate=null))}copyFrom(oe){oe.init(),Array.from(oe.headers.keys()).forEach(ie=>{this.headers.set(ie,oe.headers.get(ie)),this.normalizedNames.set(ie,oe.normalizedNames.get(ie))})}clone(oe){const ie=new ee;return ie.lazyInit=this.lazyInit&&this.lazyInit instanceof ee?this.lazyInit:this,ie.lazyUpdate=(this.lazyUpdate||[]).concat([oe]),ie}applyUpdate(oe){const ie=oe.name.toLowerCase();switch(oe.op){case"a":case"s":let pe=oe.value;if("string"==typeof pe&&(pe=[pe]),0===pe.length)return;this.maybeSetNormalizedName(oe.name,ie);const Ie=("a"===oe.op?this.headers.get(ie):void 0)||[];Ie.push(...pe),this.headers.set(ie,Ie);break;case"d":const ft=oe.value;if(ft){let Dt=this.headers.get(ie);if(!Dt)return;Dt=Dt.filter(et=>-1===ft.indexOf(et)),0===Dt.length?(this.headers.delete(ie),this.normalizedNames.delete(ie)):this.headers.set(ie,Dt)}else this.headers.delete(ie),this.normalizedNames.delete(ie)}}forEach(oe){this.init(),Array.from(this.normalizedNames.keys()).forEach(ie=>oe(this.normalizedNames.get(ie),this.headers.get(ie)))}}class ae{encodeKey(oe){return _e(oe)}encodeValue(oe){return _e(oe)}decodeKey(oe){return decodeURIComponent(oe)}decodeValue(oe){return decodeURIComponent(oe)}}const se=/%(\d[a-f0-9])/gi,re={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function _e(Re){return encodeURIComponent(Re).replace(se,(oe,ie)=>re[ie]??oe)}function ye(Re){return`${Re}`}class Me{constructor(oe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=oe.encoder||new ae,oe.fromString){if(oe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ue(Re,oe){const ie=new Map;return Re.length>0&&Re.replace(/^\?/,"").split("&").forEach(Ie=>{const ft=Ie.indexOf("="),[Dt,et]=-1==ft?[oe.decodeKey(Ie),""]:[oe.decodeKey(Ie.slice(0,ft)),oe.decodeValue(Ie.slice(ft+1))],gt=ie.get(Dt)||[];gt.push(et),ie.set(Dt,gt)}),ie}(oe.fromString,this.encoder)}else oe.fromObject?(this.map=new Map,Object.keys(oe.fromObject).forEach(ie=>{const pe=oe.fromObject[ie],Ie=Array.isArray(pe)?pe.map(ye):[ye(pe)];this.map.set(ie,Ie)})):this.map=null}has(oe){return this.init(),this.map.has(oe)}get(oe){this.init();const ie=this.map.get(oe);return ie?ie[0]:null}getAll(oe){return this.init(),this.map.get(oe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(oe,ie){return this.clone({param:oe,value:ie,op:"a"})}appendAll(oe){const ie=[];return Object.keys(oe).forEach(pe=>{const Ie=oe[pe];Array.isArray(Ie)?Ie.forEach(ft=>{ie.push({param:pe,value:ft,op:"a"})}):ie.push({param:pe,value:Ie,op:"a"})}),this.clone(ie)}set(oe,ie){return this.clone({param:oe,value:ie,op:"s"})}delete(oe,ie){return this.clone({param:oe,value:ie,op:"d"})}toString(){return this.init(),this.keys().map(oe=>{const ie=this.encoder.encodeKey(oe);return this.map.get(oe).map(pe=>ie+"="+this.encoder.encodeValue(pe)).join("&")}).filter(oe=>""!==oe).join("&")}clone(oe){const ie=new Me({encoder:this.encoder});return ie.cloneFrom=this.cloneFrom||this,ie.updates=(this.updates||[]).concat(oe),ie}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(oe=>this.map.set(oe,this.cloneFrom.map.get(oe))),this.updates.forEach(oe=>{switch(oe.op){case"a":case"s":const ie=("a"===oe.op?this.map.get(oe.param):void 0)||[];ie.push(ye(oe.value)),this.map.set(oe.param,ie);break;case"d":if(void 0===oe.value){this.map.delete(oe.param);break}{let pe=this.map.get(oe.param)||[];const Ie=pe.indexOf(ye(oe.value));-1!==Ie&&pe.splice(Ie,1),pe.length>0?this.map.set(oe.param,pe):this.map.delete(oe.param)}}}),this.cloneFrom=this.updates=null)}}class Ze{constructor(){this.map=new Map}set(oe,ie){return this.map.set(oe,ie),this}get(oe){return this.map.has(oe)||this.map.set(oe,oe.defaultValue()),this.map.get(oe)}delete(oe){return this.map.delete(oe),this}has(oe){return this.map.has(oe)}keys(){return this.map.keys()}}function Ee(Re){return typeof ArrayBuffer<"u"&&Re instanceof ArrayBuffer}function Pe(Re){return typeof Blob<"u"&&Re instanceof Blob}function ut(Re){return typeof FormData<"u"&&Re instanceof FormData}class Ne{constructor(oe,ie,pe,Ie){let ft;if(this.url=ie,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=oe.toUpperCase(),function ke(Re){switch(Re){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ie?(this.body=void 0!==pe?pe:null,ft=Ie):ft=pe,ft&&(this.reportProgress=!!ft.reportProgress,this.withCredentials=!!ft.withCredentials,ft.responseType&&(this.responseType=ft.responseType),ft.headers&&(this.headers=ft.headers),ft.context&&(this.context=ft.context),ft.params&&(this.params=ft.params)),this.headers||(this.headers=new ee),this.context||(this.context=new Ze),this.params){const Dt=this.params.toString();if(0===Dt.length)this.urlWithParams=ie;else{const et=ie.indexOf("?");this.urlWithParams=ie+(-1===et?"?":etVi.set(yt,oe.setHeaders[yt]),gt)),oe.setParams&&(In=Object.keys(oe.setParams).reduce((Vi,yt)=>Vi.set(yt,oe.setParams[yt]),In)),new Ne(ie,pe,ft,{params:In,headers:gt,context:Ht,reportProgress:et,responseType:Ie,withCredentials:Dt})}}var je=(()=>((je=je||{})[je.Sent=0]="Sent",je[je.UploadProgress=1]="UploadProgress",je[je.ResponseHeader=2]="ResponseHeader",je[je.DownloadProgress=3]="DownloadProgress",je[je.Response=4]="Response",je[je.User=5]="User",je))();class fe{constructor(oe,ie=200,pe="OK"){this.headers=oe.headers||new ee,this.status=void 0!==oe.status?oe.status:ie,this.statusText=oe.statusText||pe,this.url=oe.url||null,this.ok=this.status>=200&&this.status<300}}class ge extends fe{constructor(oe={}){super(oe),this.type=je.ResponseHeader}clone(oe={}){return new ge({headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class Te extends fe{constructor(oe={}){super(oe),this.type=je.Response,this.body=void 0!==oe.body?oe.body:null}clone(oe={}){return new Te({body:void 0!==oe.body?oe.body:this.body,headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class we extends fe{constructor(oe){super(oe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${oe.url||"(unknown url)"}`:`Http failure response for ${oe.url||"(unknown url)"}: ${oe.status} ${oe.statusText}`,this.error=oe.error||null}}function ze(Re,oe){return{body:oe,headers:Re.headers,context:Re.context,observe:Re.observe,params:Re.params,reportProgress:Re.reportProgress,responseType:Re.responseType,withCredentials:Re.withCredentials}}let Ye=(()=>{class Re{constructor(ie){this.handler=ie}request(ie,pe,Ie={}){let ft;if(ie instanceof Ne)ft=ie;else{let gt,In;gt=Ie.headers instanceof ee?Ie.headers:new ee(Ie.headers),Ie.params&&(In=Ie.params instanceof Me?Ie.params:new Me({fromObject:Ie.params})),ft=new Ne(ie,pe,void 0!==Ie.body?Ie.body:null,{headers:gt,context:Ie.context,params:In,reportProgress:Ie.reportProgress,responseType:Ie.responseType||"json",withCredentials:Ie.withCredentials})}const Dt=(0,P.of)(ft).pipe((0,H.b)(gt=>this.handler.handle(gt)));if(ie instanceof Ne||"events"===Ie.observe)return Dt;const et=Dt.pipe((0,I.h)(gt=>gt instanceof Te));switch(Ie.observe||"body"){case"body":switch(ft.responseType){case"arraybuffer":return et.pipe((0,B.U)(gt=>{if(null!==gt.body&&!(gt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return gt.body}));case"blob":return et.pipe((0,B.U)(gt=>{if(null!==gt.body&&!(gt.body instanceof Blob))throw new Error("Response is not a Blob.");return gt.body}));case"text":return et.pipe((0,B.U)(gt=>{if(null!==gt.body&&"string"!=typeof gt.body)throw new Error("Response is not a string.");return gt.body}));default:return et.pipe((0,B.U)(gt=>gt.body))}case"response":return et;default:throw new Error(`Unreachable: unhandled observe type ${Ie.observe}}`)}}delete(ie,pe={}){return this.request("DELETE",ie,pe)}get(ie,pe={}){return this.request("GET",ie,pe)}head(ie,pe={}){return this.request("HEAD",ie,pe)}jsonp(ie,pe){return this.request("JSONP",ie,{params:(new Me).append(pe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ie,pe={}){return this.request("OPTIONS",ie,pe)}patch(ie,pe,Ie={}){return this.request("PATCH",ie,ze(Ie,pe))}post(ie,pe,Ie={}){return this.request("POST",ie,ze(Ie,pe))}put(ie,pe,Ie={}){return this.request("PUT",ie,ze(Ie,pe))}}return Re.\u0275fac=function(ie){return new(ie||Re)(n.LFG(Y))},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class Et{constructor(oe,ie){this.next=oe,this.interceptor=ie}handle(oe){return this.interceptor.intercept(oe,this.next)}}const Bt=new n.OlP("HTTP_INTERCEPTORS");let Kt=(()=>{class Re{intercept(ie,pe){return pe.handle(ie)}}return Re.\u0275fac=function(ie){return new(ie||Re)},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Ns=/^\)\]\}',?\n/;let Fs=(()=>{class Re{constructor(ie){this.xhrFactory=ie}handle(ie){if("JSONP"===ie.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new D.y(pe=>{const Ie=this.xhrFactory.build();if(Ie.open(ie.method,ie.urlWithParams),ie.withCredentials&&(Ie.withCredentials=!0),ie.headers.forEach((Gt,wt)=>Ie.setRequestHeader(Gt,wt.join(","))),ie.headers.has("Accept")||Ie.setRequestHeader("Accept","application/json, text/plain, */*"),!ie.headers.has("Content-Type")){const Gt=ie.detectContentTypeHeader();null!==Gt&&Ie.setRequestHeader("Content-Type",Gt)}if(ie.responseType){const Gt=ie.responseType.toLowerCase();Ie.responseType="json"!==Gt?Gt:"text"}const ft=ie.serializeBody();let Dt=null;const et=()=>{if(null!==Dt)return Dt;const Gt=Ie.statusText||"OK",wt=new ee(Ie.getAllResponseHeaders()),Qi=function hd(Re){return"responseURL"in Re&&Re.responseURL?Re.responseURL:/^X-Request-URL:/m.test(Re.getAllResponseHeaders())?Re.getResponseHeader("X-Request-URL"):null}(Ie)||ie.url;return Dt=new ge({headers:wt,status:Ie.status,statusText:Gt,url:Qi}),Dt},gt=()=>{let{headers:Gt,status:wt,statusText:Qi,url:jr}=et(),Yn=null;204!==wt&&(Yn=typeof Ie.response>"u"?Ie.responseText:Ie.response),0===wt&&(wt=Yn?200:0);let Ur=wt>=200&&wt<300;if("json"===ie.responseType&&"string"==typeof Yn){const vr=Yn;Yn=Yn.replace(Ns,"");try{Yn=""!==Yn?JSON.parse(Yn):null}catch(cr){Yn=vr,Ur&&(Ur=!1,Yn={error:cr,text:Yn})}}Ur?(pe.next(new Te({body:Yn,headers:Gt,status:wt,statusText:Qi,url:jr||void 0})),pe.complete()):pe.error(new we({error:Yn,headers:Gt,status:wt,statusText:Qi,url:jr||void 0}))},In=Gt=>{const{url:wt}=et(),Qi=new we({error:Gt,status:Ie.status||0,statusText:Ie.statusText||"Unknown Error",url:wt||void 0});pe.error(Qi)};let Ht=!1;const Vi=Gt=>{Ht||(pe.next(et()),Ht=!0);let wt={type:je.DownloadProgress,loaded:Gt.loaded};Gt.lengthComputable&&(wt.total=Gt.total),"text"===ie.responseType&&!!Ie.responseText&&(wt.partialText=Ie.responseText),pe.next(wt)},yt=Gt=>{let wt={type:je.UploadProgress,loaded:Gt.loaded};Gt.lengthComputable&&(wt.total=Gt.total),pe.next(wt)};return Ie.addEventListener("load",gt),Ie.addEventListener("error",In),Ie.addEventListener("timeout",In),Ie.addEventListener("abort",In),ie.reportProgress&&(Ie.addEventListener("progress",Vi),null!==ft&&Ie.upload&&Ie.upload.addEventListener("progress",yt)),Ie.send(ft),pe.next({type:je.Sent}),()=>{Ie.removeEventListener("error",In),Ie.removeEventListener("abort",In),Ie.removeEventListener("load",gt),Ie.removeEventListener("timeout",In),ie.reportProgress&&(Ie.removeEventListener("progress",Vi),null!==ft&&Ie.upload&&Ie.upload.removeEventListener("progress",yt)),Ie.readyState!==Ie.DONE&&Ie.abort()}})}}return Re.\u0275fac=function(ie){return new(ie||Re)(n.LFG(x.JF))},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Br=new n.OlP("XSRF_COOKIE_NAME"),Vr=new n.OlP("XSRF_HEADER_NAME");class ds{}let Ys=(()=>{class Re{constructor(ie,pe,Ie){this.doc=ie,this.platform=pe,this.cookieName=Ie,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ie=this.doc.cookie||"";return ie!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,x.Mx)(ie,this.cookieName),this.lastCookieString=ie),this.lastToken}}return Re.\u0275fac=function(ie){return new(ie||Re)(n.LFG(x.K0),n.LFG(n.Lbi),n.LFG(Br))},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),pt=(()=>{class Re{constructor(ie,pe){this.tokenService=ie,this.headerName=pe}intercept(ie,pe){const Ie=ie.url.toLowerCase();if("GET"===ie.method||"HEAD"===ie.method||Ie.startsWith("http://")||Ie.startsWith("https://"))return pe.handle(ie);const ft=this.tokenService.getToken();return null!==ft&&!ie.headers.has(this.headerName)&&(ie=ie.clone({headers:ie.headers.set(this.headerName,ft)})),pe.handle(ie)}}return Re.\u0275fac=function(ie){return new(ie||Re)(n.LFG(ds),n.LFG(Vr))},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),ei=(()=>{class Re{constructor(ie,pe){this.backend=ie,this.injector=pe,this.chain=null}handle(ie){if(null===this.chain){const pe=this.injector.get(Bt,[]);this.chain=pe.reduceRight((Ie,ft)=>new Et(Ie,ft),this.backend)}return this.chain.handle(ie)}}return Re.\u0275fac=function(ie){return new(ie||Re)(n.LFG(G),n.LFG(n.zs3))},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),di=(()=>{class Re{static disable(){return{ngModule:Re,providers:[{provide:pt,useClass:Kt}]}}static withOptions(ie={}){return{ngModule:Re,providers:[ie.cookieName?{provide:Br,useValue:ie.cookieName}:[],ie.headerName?{provide:Vr,useValue:ie.headerName}:[]]}}}return Re.\u0275fac=function(ie){return new(ie||Re)},Re.\u0275mod=n.oAB({type:Re}),Re.\u0275inj=n.cJS({providers:[pt,{provide:Bt,useExisting:pt,multi:!0},{provide:ds,useClass:Ys},{provide:Br,useValue:"XSRF-TOKEN"},{provide:Vr,useValue:"X-XSRF-TOKEN"}]}),Re})(),Io=(()=>{class Re{}return Re.\u0275fac=function(ie){return new(ie||Re)},Re.\u0275mod=n.oAB({type:Re}),Re.\u0275inj=n.cJS({providers:[Ye,{provide:Y,useClass:ei},Fs,{provide:G,useExisting:Fs}],imports:[di.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Re})()},4650:(z,W,E)=>{"use strict";E.d(W,{$8M:()=>tl,$Z:()=>Pb,AFp:()=>xo,ALo:()=>vg,AaK:()=>Y,AsE:()=>Nm,B6R:()=>jr,BQk:()=>cp,CHM:()=>Hn,CRH:()=>gy,CZH:()=>rs,CqO:()=>Em,D6c:()=>FE,DdM:()=>Cg,Dn7:()=>h0,EJc:()=>$0,EiD:()=>Hh,EpF:()=>Oc,F$t:()=>gw,F4k:()=>pw,FYo:()=>uo,FiY:()=>ul,G48:()=>DE,Gf:()=>Lu,GfV:()=>tb,GkF:()=>Ic,Gpc:()=>te,Gre:()=>Hw,Hsn:()=>rr,Ikx:()=>gp,JOm:()=>Ms,JVY:()=>eA,Jf7:()=>BA,KtG:()=>xr,L6k:()=>tA,LAX:()=>iA,LFG:()=>Tn,LSH:()=>yc,Lbi:()=>z0,Lck:()=>ZT,MAs:()=>cw,MMx:()=>Pu,NdJ:()=>Ps,O4$:()=>cc,OlP:()=>pn,Oqu:()=>ta,PXZ:()=>Oi,Q6J:()=>Sl,QGY:()=>dp,QP$:()=>Qc,QbO:()=>G0,Qsj:()=>eb,R0b:()=>br,RDi:()=>V,Rgc:()=>ku,SBq:()=>Fd,Sil:()=>Q0,Suo:()=>my,TTD:()=>Ws,TgZ:()=>op,Tol:()=>vw,Udp:()=>Om,VKq:()=>oy,W1O:()=>Rg,WFA:()=>up,WLB:()=>ly,XFs:()=>pt,Xpm:()=>Qi,Xts:()=>Ts,Y36:()=>Ss,YKP:()=>_r,YNc:()=>Mm,Yjl:()=>us,Yz7:()=>Xt,ZZ4:()=>e_,_Bn:()=>Mp,_UZ:()=>uw,_Vd:()=>Tc,_c5:()=>NE,_uU:()=>Sw,aQg:()=>Zy,c2e:()=>W0,cJS:()=>En,cg1:()=>_p,d8E:()=>Vc,dDg:()=>wr,dqk:()=>pe,eBb:()=>nA,eFA:()=>Vy,ekj:()=>Bm,eoX:()=>ky,f3M:()=>wh,g9A:()=>Yg,h0i:()=>Nc,hGG:()=>_x,hij:()=>fp,iGM:()=>Jc,ifc:()=>ie,ip1:()=>Fg,kL8:()=>bp,kcU:()=>eh,lG2:()=>pd,lcZ:()=>xg,lqb:()=>gl,lri:()=>si,mCW:()=>bc,n5z:()=>ch,n_E:()=>Hp,oAB:()=>vr,oJD:()=>F_,oxw:()=>mw,pB0:()=>Sh,q3G:()=>Wn,qLn:()=>Zr,qOj:()=>Cm,qZA:()=>Sm,qzn:()=>ml,rWj:()=>Ry,s9C:()=>Hm,sBO:()=>ox,sIi:()=>Hc,s_b:()=>Rp,soG:()=>Fp,tb:()=>Ey,tp0:()=>qa,uIk:()=>sw,vHH:()=>re,vpe:()=>is,wAp:()=>bt,xDo:()=>bu,xi3:()=>u0,xp6:()=>$f,ynx:()=>lp,z2F:()=>Qg,z3N:()=>kr,zSh:()=>Rf,zs3:()=>go});var x=E(7579),n=E(727),P=E(9751),D=E(6451),H=E(3099);function I(_){for(let b in _)if(_[b]===I)return b;throw Error("Could not find renamed property on target object.")}function B(_,b){for(const w in b)b.hasOwnProperty(w)&&!_.hasOwnProperty(w)&&(_[w]=b[w])}function Y(_){if("string"==typeof _)return _;if(Array.isArray(_))return"["+_.map(Y).join(", ")+"]";if(null==_)return""+_;if(_.overriddenName)return`${_.overriddenName}`;if(_.name)return`${_.name}`;const b=_.toString();if(null==b)return""+b;const w=b.indexOf("\n");return-1===w?b:b.substring(0,w)}function G(_,b){return null==_||""===_?null===b?"":b:null==b||""===b?_:_+" "+b}const ee=I({__forward_ref__:I});function te(_){return _.__forward_ref__=te,_.toString=function(){return Y(this())},_}function ae(_){return ue(_)?_():_}function ue(_){return"function"==typeof _&&_.hasOwnProperty(ee)&&_.__forward_ref__===te}class re extends Error{constructor(b,w){super(function _e(_,b){return`NG0${Math.abs(_)}${b?": "+b.trim():""}`}(b,w)),this.code=b}}function ye(_){return"string"==typeof _?_:null==_?"":String(_)}function Ee(_,b){throw new re(-201,!1)}function Kt(_,b){null==_&&function Qe(_,b,w,C){throw new Error(`ASSERTION ERROR: ${_}`+(null==C?"":` [Expected=> ${w} ${C} ${b} <=Actual]`))}(b,_,null,"!=")}function Xt(_){return{token:_.token,providedIn:_.providedIn||null,factory:_.factory,value:void 0}}function En(_){return{providers:_.providers||[],imports:_.imports||[]}}function aa(_){return Zl(_,Br)||Zl(_,ds)}function Zl(_,b){return _.hasOwnProperty(b)?_[b]:null}function Fs(_){return _&&(_.hasOwnProperty(Vr)||_.hasOwnProperty(Ys))?_[Vr]:null}const Br=I({\u0275prov:I}),Vr=I({\u0275inj:I}),ds=I({ngInjectableDef:I}),Ys=I({ngInjectorDef:I});var pt=(()=>((pt=pt||{})[pt.Default=0]="Default",pt[pt.Host=1]="Host",pt[pt.Self=2]="Self",pt[pt.SkipSelf=4]="SkipSelf",pt[pt.Optional=8]="Optional",pt))();let ei;function Wt(_){const b=ei;return ei=_,b}function di(_,b,w){const C=aa(_);return C&&"root"==C.providedIn?void 0===C.value?C.value=C.factory():C.value:w&pt.Optional?null:void 0!==b?b:void Ee(Y(_))}function lr(_){return{toString:_}.toString()}var zt=(()=>((zt=zt||{})[zt.OnPush=0]="OnPush",zt[zt.Default=1]="Default",zt))(),ie=(()=>{return(_=ie||(ie={}))[_.Emulated=0]="Emulated",_[_.None=2]="None",_[_.ShadowDom=3]="ShadowDom",ie;var _})();const pe=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Dt={},et=[],gt=I({\u0275cmp:I}),In=I({\u0275dir:I}),Ht=I({\u0275pipe:I}),Vi=I({\u0275mod:I}),yt=I({\u0275fac:I}),Gt=I({__NG_ELEMENT_ID__:I});let wt=0;function Qi(_){return lr(()=>{const w=!0===_.standalone,C={},T={type:_.type,providersResolver:null,decls:_.decls,vars:_.vars,factory:null,template:_.template||null,consts:_.consts||null,ngContentSelectors:_.ngContentSelectors,hostBindings:_.hostBindings||null,hostVars:_.hostVars||0,hostAttrs:_.hostAttrs||null,contentQueries:_.contentQueries||null,declaredInputs:C,inputs:null,outputs:null,exportAs:_.exportAs||null,onPush:_.changeDetection===zt.OnPush,directiveDefs:null,pipeDefs:null,standalone:w,dependencies:w&&_.dependencies||null,getStandaloneInjector:null,selectors:_.selectors||et,viewQuery:_.viewQuery||null,features:_.features||null,data:_.data||{},encapsulation:_.encapsulation||ie.Emulated,id:"c"+wt++,styles:_.styles||et,_:null,setInput:null,schemas:_.schemas||null,tView:null},M=_.dependencies,R=_.features;return T.inputs=sa(_.inputs,C),T.outputs=sa(_.outputs),R&&R.forEach(L=>L(T)),T.directiveDefs=M?()=>("function"==typeof M?M():M).map(Yn).filter(Ur):null,T.pipeDefs=M?()=>("function"==typeof M?M():M).map(ti).filter(Ur):null,T})}function jr(_,b,w){const C=_.\u0275cmp;C.directiveDefs=()=>("function"==typeof b?b():b).map(Yn),C.pipeDefs=()=>("function"==typeof w?w():w).map(ti)}function Yn(_){return $t(_)||Zn(_)}function Ur(_){return null!==_}function vr(_){return lr(()=>({type:_.type,bootstrap:_.bootstrap||et,declarations:_.declarations||et,imports:_.imports||et,exports:_.exports||et,transitiveCompileScopes:null,schemas:_.schemas||null,id:_.id||null}))}function sa(_,b){if(null==_)return Dt;const w={};for(const C in _)if(_.hasOwnProperty(C)){let T=_[C],M=T;Array.isArray(T)&&(M=T[1],T=T[0]),w[T]=C,b&&(b[T]=M)}return w}const pd=Qi;function us(_){return{type:_.type,name:_.name,factory:null,pure:!1!==_.pure,standalone:!0===_.standalone,onDestroy:_.type.prototype.ngOnDestroy||null}}function $t(_){return _[gt]||null}function Zn(_){return _[In]||null}function ti(_){return _[Ht]||null}function qe(_,b){const w=_[Vi]||null;if(!w&&!0===b)throw new Error(`Type ${Y(_)} does not have '\u0275mod' property.`);return w}function ni(_){return Array.isArray(_)&&"object"==typeof _[1]}function Di(_){return Array.isArray(_)&&!0===_[1]}function Ki(_){return 0!=(8&_.flags)}function qr(_){return 2==(2&_.flags)}function ur(_){return 1==(1&_.flags)}function Hi(_){return null!==_.template}function da(_){return 0!=(256&_[2])}function ha(_,b){return _.hasOwnProperty(yt)?_[yt]:null}class gd{constructor(b,w,C){this.previousValue=b,this.currentValue=w,this.firstChange=C}isFirstChange(){return this.firstChange}}function Ws(){return Bo}function Bo(_){return _.type.prototype.ngOnChanges&&(_.setInput=_d),Vo}function Vo(){const _=Js(this),b=_?.current;if(b){const w=_.previous;if(w===Dt)_.previous=b;else for(let C in b)w[C]=b[C];_.current=null,this.ngOnChanges(b)}}function _d(_,b,w,C){const T=Js(_)||function jo(_,b){return _[$s]=b}(_,{previous:Dt,current:null}),M=T.current||(T.current={}),R=T.previous,L=this.declaredInputs[w],O=R[L];M[L]=new gd(O&&O.currentValue,b,R===Dt),_[C]=b}Ws.ngInherit=!0;const $s="__ngSimpleChanges__";function Js(_){return _[$s]||null}function qn(_){for(;Array.isArray(_);)_=_[0];return _}function pa(_,b){return qn(b[_])}function er(_,b){return qn(b[_.index])}function tc(_,b){return _.data[b]}function Qs(_,b){return _[b]}function fi(_,b){const w=b[_];return ni(w)?w:w[0]}function U(_){return 4==(4&_[2])}function J(_){return 64==(64&_[2])}function X(_,b){return null==b?null:_[b]}function he(_){_[18]=0}function ve(_,b){_[5]+=b;let w=_,C=_[3];for(;null!==C&&(1===b&&1===w[5]||-1===b&&0===w[5]);)C[5]+=b,w=C,C=C[3]}const be={lFrame:Fo(null),bindingsEnabled:!0};function ii(){return be.bindingsEnabled}function Ce(){return be.lFrame.lView}function lt(){return be.lFrame.tView}function Hn(_){return be.lFrame.contextLView=_,_[8]}function xr(_){return be.lFrame.contextLView=null,_}function un(){let _=ps();for(;null!==_&&64===_.type;)_=_.parent;return _}function ps(){return be.lFrame.currentTNode}function Pn(_,b){const w=be.lFrame;w.currentTNode=_,w.isParent=b}function Rt(){return be.lFrame.isParent}function Pi(){be.lFrame.isParent=!1}function jn(){const _=be.lFrame;let b=_.bindingRootIndex;return-1===b&&(b=_.bindingRootIndex=_.tView.bindingStartIndex),b}function nn(){return be.lFrame.bindingIndex}function Ks(){return be.lFrame.bindingIndex++}function Mr(_){const b=be.lFrame,w=b.bindingIndex;return b.bindingIndex=b.bindingIndex+_,w}function bd(_,b){const w=be.lFrame;w.bindingIndex=w.bindingRootIndex=_,ic(b)}function ic(_){be.lFrame.currentDirectiveIndex=_}function rc(_){const b=be.lFrame.currentDirectiveIndex;return-1===b?null:_[b]}function ac(){return be.lFrame.currentQueryIndex}function Sr(_){be.lFrame.currentQueryIndex=_}function sc(_){const b=_[1];return 2===b.type?b.declTNode:1===b.type?_[6]:null}function It(_,b,w){if(w&pt.SkipSelf){let T=b,M=_;for(;!(T=T.parent,null!==T||w&pt.Host||(T=sc(M),null===T||(M=M[15],10&T.type))););if(null===T)return!1;b=T,_=M}const C=be.lFrame=zr();return C.currentTNode=b,C.lView=_,!0}function yd(_){const b=zr(),w=_[1];be.lFrame=b,b.currentTNode=w.firstChild,b.lView=_,b.tView=w,b.contextLView=_,b.bindingIndex=w.bindingStartIndex,b.inI18n=!1}function zr(){const _=be.lFrame,b=null===_?null:_.child;return null===b?Fo(_):b}function Fo(_){const b={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:_,child:null,inI18n:!1};return null!==_&&(_.child=b),b}function oc(){const _=be.lFrame;return be.lFrame=_.parent,_.currentTNode=null,_.lView=null,_}const Er=oc;function Yo(){const _=oc();_.isParent=!0,_.tView=null,_.selectedIndex=-1,_.contextLView=null,_.elementDepthCount=0,_.currentDirectiveIndex=-1,_.currentNamespace=null,_.bindingRootIndex=-1,_.bindingIndex=-1,_.currentQueryIndex=0}function Ci(){return be.lFrame.selectedIndex}function mn(_){be.lFrame.selectedIndex=_}function Qt(){const _=be.lFrame;return tc(_.tView,_.selectedIndex)}function cc(){be.lFrame.currentNamespace="svg"}function eh(){!function th(){be.lFrame.currentNamespace=null}()}function qo(_,b){for(let w=b.directiveStart,C=b.directiveEnd;w=C)break}else b[O]<0&&(_[18]+=65536),(L>11<_[18]>>16&&(3&_[2])===b){_[2]+=2048;try{M.call(L)}finally{}}}else try{M.call(L)}finally{}}class ki{constructor(b,w,C){this.factory=b,this.resolving=!1,this.canSeeViewProviders=w,this.injectImpl=C}}function Jo(_,b,w){let C=0;for(;Cb){R=M-1;break}}}for(;M<_.length;){const L=_[M];if("number"==typeof L)break;if(L===w){if(null===C)return void(null!==T&&(_[M+1]=T));if(C===_[M+1])return void(_[M+2]=T)}M++,null!==C&&M++,null!==T&&M++}-1!==R&&(_.splice(R,0,b),M=R+1),_.splice(M++,0,w),null!==C&&_.splice(M++,0,C),null!==T&&_.splice(M++,0,T)}function Ad(_){return-1!==_}function gs(_){return 32767&_}function to(_,b){let w=function pf(_){return _>>16}(_),C=b;for(;w>0;)C=C[15],w--;return C}let vd=!0;function _s(_){const b=vd;return vd=_,b}let ff=0;const Gr={};function ja(_,b){const w=fa(_,b);if(-1!==w)return w;const C=b[1];C.firstCreatePass&&(_.injectorIndex=b.length,xd(C.data,_),xd(b,null),xd(C.blueprint,null));const T=no(_,b),M=_.injectorIndex;if(Ad(T)){const R=gs(T),L=to(T,b),O=L[1].data;for(let F=0;F<8;F++)b[M+F]=L[R+F]|O[R+F]}return b[M+8]=T,M}function xd(_,b){_.push(0,0,0,0,0,0,0,0,b)}function fa(_,b){return-1===_.injectorIndex||_.parent&&_.parent.injectorIndex===_.injectorIndex||null===b[_.injectorIndex+8]?-1:_.injectorIndex}function no(_,b){if(_.parent&&-1!==_.parent.injectorIndex)return _.parent.injectorIndex;let w=0,C=null,T=b;for(;null!==T;){if(C=dh(T),null===C)return-1;if(w++,T=T[15],-1!==C.injectorIndex)return C.injectorIndex|w<<16}return-1}function Md(_,b,w){!function Td(_,b,w){let C;"string"==typeof w?C=w.charCodeAt(0)||0:w.hasOwnProperty(Gt)&&(C=w[Gt]),null==C&&(C=w[Gt]=ff++);const T=255&C;b.data[_+(T>>5)]|=1<=0?255&b:lh:b}(w);if("function"==typeof M){if(!It(b,_,C))return C&pt.Host?Sd(T,0,C):Ed(b,w,C,T);try{const R=M(C);if(null!=R||C&pt.Optional)return R;Ee()}finally{Er()}}else if("number"==typeof M){let R=null,L=fa(_,b),O=-1,F=C&pt.Host?b[16][6]:null;for((-1===L||C&pt.SkipSelf)&&(O=-1===L?no(_,b):b[L+8],-1!==O&&oh(C,!1)?(R=b[1],L=gs(O),b=to(O,b)):L=-1);-1!==L;){const $=b[1];if(Ua(M,L,$.data)){const ne=ga(L,b,w,R,C,F);if(ne!==Gr)return ne}O=b[L+8],-1!==O&&oh(C,b[1].data[L+8]===F)&&Ua(M,L,b)?(R=$,L=gs(O),b=to(O,b)):L=-1}}return T}function ga(_,b,w,C,T,M){const R=b[1],L=R.data[_+8],$=io(L,R,w,null==C?qr(L)&&vd:C!=R&&0!=(3&L.type),T&pt.Host&&M===L);return null!==$?Hr(b,R,$,L):Gr}function io(_,b,w,C,T){const M=_.providerIndexes,R=b.data,L=1048575&M,O=_.directiveStart,$=M>>20,de=T?L+$:_.directiveEnd;for(let me=C?L:L+$;me=O&&De.type===w)return me}if(T){const me=R[O];if(me&&Hi(me)&&me.type===w)return O}return null}function Hr(_,b,w,C){let T=_[w];const M=b.data;if(function ih(_){return _ instanceof ki}(T)){const R=T;R.resolving&&function Je(_,b){const w=b?`. Dependency path: ${b.join(" > ")} > ${_}`:"";throw new re(-200,`Circular dependency in DI detected for ${_}${w}`)}(function Me(_){return"function"==typeof _?_.name||_.toString():"object"==typeof _&&null!=_&&"function"==typeof _.type?_.type.name||_.type.toString():ye(_)}(M[w]));const L=_s(R.canSeeViewProviders);R.resolving=!0;const O=R.injectImpl?Wt(R.injectImpl):null;It(_,C,pt.Default);try{T=_[w]=R.factory(void 0,M,_,C),b.firstCreatePass&&w>=C.directiveStart&&function uf(_,b,w){const{ngOnChanges:C,ngOnInit:T,ngDoCheck:M}=b.type.prototype;if(C){const R=Bo(b);(w.preOrderHooks||(w.preOrderHooks=[])).push(_,R),(w.preOrderCheckHooks||(w.preOrderCheckHooks=[])).push(_,R)}T&&(w.preOrderHooks||(w.preOrderHooks=[])).push(0-_,T),M&&((w.preOrderHooks||(w.preOrderHooks=[])).push(_,M),(w.preOrderCheckHooks||(w.preOrderCheckHooks=[])).push(_,M))}(w,M[w],b)}finally{null!==O&&Wt(O),_s(L),R.resolving=!1,Er()}}return T}function Ua(_,b,w){return!!(w[b+(_>>5)]&1<<_)}function oh(_,b){return!(_&pt.Self||_&pt.Host&&b)}class ro{constructor(b,w){this._tNode=b,this._lView=w}get(b,w,C){return ma(this._tNode,this._lView,b,C,w)}}function lh(){return new ro(un(),Ce())}function ch(_){return lr(()=>{const b=_.prototype.constructor,w=b[yt]||Xo(b),C=Object.prototype;let T=Object.getPrototypeOf(_.prototype).constructor;for(;T&&T!==C;){const M=T[yt]||Xo(T);if(M&&M!==w)return M;T=Object.getPrototypeOf(T)}return M=>new M})}function Xo(_){return ue(_)?()=>{const b=Xo(ae(_));return b&&b()}:ha(_)}function dh(_){const b=_[1],w=b.type;return 2===w?b.declTNode:1===w?_[6]:null}function tl(_){return function sh(_,b){if("class"===b)return _.classes;if("style"===b)return _.styles;const w=_.attrs;if(w){const C=w.length;let T=0;for(;T{const C=function nl(_){return function(...w){if(_){const C=_(...w);for(const T in C)this[T]=C[T]}}}(b);function T(...M){if(this instanceof T)return C.apply(this,M),this;const R=new T(...M);return L.annotation=R,L;function L(O,F,$){const ne=O.hasOwnProperty(bs)?O[bs]:Object.defineProperty(O,bs,{value:[]})[bs];for(;ne.length<=$;)ne.push(null);return(ne[$]=ne[$]||[]).push(R),O}}return w&&(T.prototype=Object.create(w.prototype)),T.prototype.ngMetadataName=_,T.annotationCls=T,T})}class pn{constructor(b,w){this._desc=b,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof w?this.__NG_ELEMENT_ID__=w:void 0!==w&&(this.\u0275prov=Xt({token:this,providedIn:w.providedIn||"root",factory:w.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function zn(_,b){void 0===b&&(b=_);for(let w=0;w<_.length;w++){let C=_[w];Array.isArray(C)?(b===_&&(b=_.slice(0,w)),zn(C,b)):b!==_&&b.push(C)}return b}function Fi(_,b){_.forEach(w=>Array.isArray(w)?Fi(w,b):b(w))}function pc(_,b,w){b>=_.length?_.push(w):_.splice(b,0,w)}function rl(_,b){return b>=_.length-1?_.pop():_.splice(b,1)[0]}function al(_,b){const w=[];for(let C=0;C<_;C++)w.push(b);return w}function Yi(_,b,w){let C=Fa(_,b);return C>=0?_[1|C]=w:(C=~C,function mf(_,b,w,C){let T=_.length;if(T==b)_.push(w,C);else if(1===T)_.push(C,_[0]),_[0]=w;else{for(T--,_.push(_[T-1],_[T]);T>b;)_[T]=_[T-2],T--;_[b]=w,_[b+1]=C}}(_,C,b,w)),C}function ol(_,b){const w=Fa(_,b);if(w>=0)return _[1|w]}function Fa(_,b){return function oo(_,b,w){let C=0,T=_.length>>w;for(;T!==C;){const M=C+(T-C>>1),R=_[M<b?T=M:C=M+1}return~(T<_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Q}()?.createHTML(_)||_}function ba(_){return function Rr(){if(void 0===Gn&&(Gn=null,pe.trustedTypes))try{Gn=pe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:_=>_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Gn}()?.createHTML(_)||_}class Ga{constructor(b){this.changingThisBreaksApplicationSecurity=b}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class k_ extends Ga{getTypeName(){return"HTML"}}class L_ extends Ga{getTypeName(){return"Style"}}class xh extends Ga{getTypeName(){return"Script"}}class Mh extends Ga{getTypeName(){return"URL"}}class I_ extends Ga{getTypeName(){return"ResourceURL"}}function kr(_){return _ instanceof Ga?_.changingThisBreaksApplicationSecurity:_}function ml(_,b){const w=function XC(_){return _ instanceof Ga&&_.getTypeName()||null}(_);if(null!=w&&w!==b){if("ResourceURL"===w&&"URL"===b)return!0;throw new Error(`Required a safe ${b}, got a ${w} (see https://g.co/ng/security#xss)`)}return w===b}function eA(_){return new k_(_)}function tA(_){return new L_(_)}function nA(_){return new xh(_)}function iA(_){return new Mh(_)}function Sh(_){return new I_(_)}class rA{constructor(b){this.inertDocumentHelper=b}getInertBodyElement(b){b=""+b;try{const w=(new window.DOMParser).parseFromString(Ae(b),"text/html").body;return null===w?this.inertDocumentHelper.getInertBodyElement(b):(w.removeChild(w.firstChild),w)}catch{return null}}}class aA{constructor(b){if(this.defaultDoc=b,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const w=this.inertDocument.createElement("html");this.inertDocument.appendChild(w);const C=this.inertDocument.createElement("body");w.appendChild(C)}}getInertBodyElement(b){const w=this.inertDocument.createElement("template");if("content"in w)return w.innerHTML=Ae(b),w;const C=this.inertDocument.createElement("body");return C.innerHTML=Ae(b),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(C),C}stripCustomNsAttrs(b){const w=b.attributes;for(let T=w.length-1;0bc(b.trim())).join(", ")),this.buf.push(" ",R,'="',N_(O),'"')}var _;return this.buf.push(">"),!0}endElement(b){const w=b.nodeName.toLowerCase();Sf.hasOwnProperty(w)&&!Tf.hasOwnProperty(w)&&(this.buf.push(""))}chars(b){this.buf.push(N_(b))}checkClobberedElement(b,w){if(w&&(b.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${b.outerHTML}`);return w}}const dA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,uA=/([^\#-~ |!])/g;function N_(_){return _.replace(/&/g,"&").replace(dA,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(uA,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(//g,">")}let Dh;function Hh(_,b){let w=null;try{Dh=Dh||function O_(_){const b=new aA(_);return function sA(){try{return!!(new window.DOMParser).parseFromString(Ae(""),"text/html")}catch{return!1}}()?new rA(b):b}(_);let C=b?String(b):"";w=Dh.getInertBodyElement(C);let T=5,M=C;do{if(0===T)throw new Error("Failed to sanitize html because the input is unstable");T--,C=M,M=w.innerHTML,w=Dh.getInertBodyElement(C)}while(C!==M);return Ae((new U_).sanitizeChildren(Ph(w)||w))}finally{if(w){const C=Ph(w)||w;for(;C.firstChild;)C.removeChild(C.firstChild)}}}function Ph(_){return"content"in _&&function Hf(_){return _.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===_.nodeName}(_)?_.content:null}var Wn=(()=>((Wn=Wn||{})[Wn.NONE=0]="NONE",Wn[Wn.HTML=1]="HTML",Wn[Wn.STYLE=2]="STYLE",Wn[Wn.SCRIPT=3]="SCRIPT",Wn[Wn.URL=4]="URL",Wn[Wn.RESOURCE_URL=5]="RESOURCE_URL",Wn))();function F_(_){const b=Cc();return b?ba(b.sanitize(Wn.HTML,_)||""):ml(_,"HTML")?ba(kr(_)):Hh(function q(){return void 0!==k?k:typeof document<"u"?document:void 0}(),ye(_))}function yc(_){const b=Cc();return b?b.sanitize(Wn.URL,_)||"":ml(_,"URL")?kr(_):bc(ye(_))}function Cc(){const _=Ce();return _&&_[12]}const Ts=new pn("ENVIRONMENT_INITIALIZER"),Nd=new pn("INJECTOR",-1),z_=new pn("INJECTOR_DEF_TYPES");class G_{get(b,w=Ya){if(w===Ya){const C=new Error(`NullInjectorError: No provider for ${Y(b)}!`);throw C.name="NullInjectorError",C}return w}}function W_(..._){return{\u0275providers:_A(0,_)}}function _A(_,...b){const w=[],C=new Set;let T;return Fi(b,M=>{const R=M;Rh(R,w,[],C)&&(T||(T=[]),T.push(R))}),void 0!==T&&$_(T,w),w}function $_(_,b){for(let w=0;w<_.length;w++){const{providers:T}=_[w];Fi(T,M=>{b.push(M)})}}function Rh(_,b,w,C){if(!(_=ae(_)))return!1;let T=null,M=Fs(_);const R=!M&&$t(_);if(M||R){if(R&&!R.standalone)return!1;T=_}else{const O=_.ngModule;if(M=Fs(O),!M)return!1;T=O}const L=C.has(T);if(R){if(L)return!1;if(C.add(T),R.dependencies){const O="function"==typeof R.dependencies?R.dependencies():R.dependencies;for(const F of O)Rh(F,b,w,C)}}else{if(!M)return!1;{if(null!=M.imports&&!L){let F;C.add(T);try{Fi(M.imports,$=>{Rh($,b,w,C)&&(F||(F=[]),F.push($))})}finally{}void 0!==F&&$_(F,b)}if(!L){const F=ha(T)||(()=>new T);b.push({provide:T,useFactory:F,deps:et},{provide:z_,useValue:T,multi:!0},{provide:Ts,useValue:()=>Tn(T),multi:!0})}const O=M.providers;null==O||L||Fi(O,$=>{b.push($)})}}return T!==_&&void 0!==_.providers}const wA=I({provide:String,useValue:I});function Wa(_){return null!==_&&"object"==typeof _&&wA in _}function co(_){return"function"==typeof _}const Rf=new pn("Set Injector scope."),kh={},Lh={};let kf;function Ih(){return void 0===kf&&(kf=new G_),kf}class gl{}class J_ extends gl{constructor(b,w,C,T){super(),this.parent=w,this.source=C,this.scopes=T,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,If(b,R=>this.processProvider(R)),this.records.set(Nd,Ac(void 0,this)),T.has("environment")&&this.records.set(gl,Ac(void 0,this));const M=this.records.get(Rf);null!=M&&"string"==typeof M.value&&this.scopes.add(M.value),this.injectorDefTypes=new Set(this.get(z_.multi,et,pt.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();for(const b of this._onDestroyHooks)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(b){this._onDestroyHooks.push(b)}runInContext(b){this.assertNotDestroyed();const w=dl(this),C=Wt(void 0);try{return b()}finally{dl(w),Wt(C)}}get(b,w=Ya,C=pt.Default){this.assertNotDestroyed();const T=dl(this),M=Wt(void 0);try{if(!(C&pt.SkipSelf)){let L=this.records.get(b);if(void 0===L){const O=function Lf(_){return"function"==typeof _||"object"==typeof _&&_ instanceof pn}(b)&&aa(b);L=O&&this.injectableDefInScope(O)?Ac(Oh(b),kh):null,this.records.set(b,L)}if(null!=L)return this.hydrate(b,L)}return(C&pt.Self?Ih():this.parent).get(b,w=C&pt.Optional&&w===Ya?null:w)}catch(R){if("NullInjectorError"===R.name){if((R[hr]=R[hr]||[]).unshift(Y(b)),T)throw R;return function yh(_,b,w,C){const T=_[hr];throw b[bf]&&T.unshift(b[bf]),_.message=function Ch(_,b,w,C=null){_=_&&"\n"===_.charAt(0)&&"\u0275"==_.charAt(1)?_.slice(2):_;let T=Y(b);if(Array.isArray(b))T=b.map(Y).join(" -> ");else if("object"==typeof b){let M=[];for(let R in b)if(b.hasOwnProperty(R)){let L=b[R];M.push(R+":"+("string"==typeof L?JSON.stringify(L):Y(L)))}T=`{${M.join(", ")}}`}return`${w}${C?"("+C+")":""}[${T}]: ${_.replace(Id,"\n ")}`}("\n"+_.message,T,w,C),_.ngTokenPath=T,_[hr]=null,_}(R,b,"R3InjectorError",this.source)}throw R}finally{Wt(M),dl(T)}}resolveInjectorInitializers(){const b=dl(this),w=Wt(void 0);try{const C=this.get(Ts.multi,et,pt.Self);for(const T of C)T()}finally{dl(b),Wt(w)}}toString(){const b=[],w=this.records;for(const C of w.keys())b.push(Y(C));return`R3Injector[${b.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new re(205,!1)}processProvider(b){let w=co(b=ae(b))?b:ae(b&&b.provide);const C=function Z_(_){return Wa(_)?Ac(void 0,_.useValue):Ac(Q_(_),kh)}(b);if(co(b)||!0!==b.multi)this.records.get(w);else{let T=this.records.get(w);T||(T=Ac(void 0,kh,!0),T.factory=()=>Pr(T.multi),this.records.set(w,T)),w=b,T.multi.push(b)}this.records.set(w,C)}hydrate(b,w){return w.value===kh&&(w.value=Lh,w.value=w.factory()),"object"==typeof w.value&&w.value&&function vA(_){return null!==_&&"object"==typeof _&&"function"==typeof _.ngOnDestroy}(w.value)&&this._ngOnDestroyHooks.add(w.value),w.value}injectableDefInScope(b){if(!b.providedIn)return!1;const w=ae(b.providedIn);return"string"==typeof w?"any"===w||this.scopes.has(w):this.injectorDefTypes.has(w)}}function Oh(_){const b=aa(_),w=null!==b?b.factory:ha(_);if(null!==w)return w;if(_ instanceof pn)throw new re(204,!1);if(_ instanceof Function)return function AA(_){const b=_.length;if(b>0)throw al(b,"?"),new re(204,!1);const w=function Ns(_){const b=_&&(_[Br]||_[ds]);if(b){const w=function hd(_){if(_.hasOwnProperty("name"))return _.name;const b=(""+_).match(/^function\s*([^\s(]+)/);return null===b?"":b[1]}(_);return console.warn(`DEPRECATED: DI is instantiating a token "${w}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${w}" class.`),b}return null}(_);return null!==w?()=>w.factory(_):()=>new _}(_);throw new re(204,!1)}function Q_(_,b,w){let C;if(co(_)){const T=ae(_);return ha(T)||Oh(T)}if(Wa(_))C=()=>ae(_.useValue);else if(function Pf(_){return!(!_||!_.useFactory)}(_))C=()=>_.useFactory(...Pr(_.deps||[]));else if(function yA(_){return!(!_||!_.useExisting)}(_))C=()=>Tn(ae(_.useExisting));else{const T=ae(_&&(_.useClass||_.provide));if(!function K_(_){return!!_.deps}(_))return ha(T)||Oh(T);C=()=>new T(...Pr(_.deps))}return C}function Ac(_,b,w=!1){return{factory:_,value:b,multi:w?[]:void 0}}function TA(_){return!!_.\u0275providers}function If(_,b){for(const w of _)Array.isArray(w)?If(w,b):TA(w)?If(w.\u0275providers,b):b(w)}class MA{}class vc{resolveComponentFactory(b){throw function Of(_){const b=Error(`No component factory found for ${Y(_)}. Did you add it to @NgModule.entryComponents?`);return b.ngComponent=_,b}(b)}}let Tc=(()=>{class _{}return _.NULL=new vc,_})();function X_(){return $a(un(),Ce())}function $a(_,b){return new Fd(er(_,b))}let Fd=(()=>{class _{constructor(w){this.nativeElement=w}}return _.__NG_ELEMENT_ID__=X_,_})();function Ja(_){return _ instanceof Fd?_.nativeElement:_}class uo{}let eb=(()=>{class _{}return _.__NG_ELEMENT_ID__=()=>function Yd(){const _=Ce(),w=fi(un().index,_);return(ni(w)?w:_)[11]}(),_})(),Vf=(()=>{class _{}return _.\u0275prov=Xt({token:_,providedIn:"root",factory:()=>null}),_})();class tb{constructor(b){this.full=b,this.major=b.split(".")[0],this.minor=b.split(".")[1],this.patch=b.split(".").slice(2).join(".")}}const Bh=new tb("14.1.2"),ho={};function Jr(_){return _.ngOriginalError}class Zr{constructor(){this._console=console}handleError(b){const w=this._findOriginalError(b);this._console.error("ERROR",b),w&&this._console.error("ORIGINAL ERROR",w)}_findOriginalError(b){let w=b&&Jr(b);for(;w&&Jr(w);)w=Jr(w);return w||null}}const ab=new Map;let nS=0;const ob="__ngContext__";function vi(_,b){ni(b)?(_[ob]=b[20],function rS(_){ab.set(_[20],_)}(b)):_[ob]=b}function Vh(_){const b=_[ob];return"number"==typeof b?function PA(_){return ab.get(_)||null}(b):b||null}function lb(_){const b=Vh(_);return b?ni(b)?b:b.lView:null}const hS=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(pe))();function BA(_){return _.ownerDocument.defaultView}function fo(_){return _ instanceof Function?_():_}var Ms=(()=>((Ms=Ms||{})[Ms.Important=1]="Important",Ms[Ms.DashCase=2]="DashCase",Ms))();function Nf(_,b){return undefined(_,b)}function jh(_){const b=_[3];return Di(b)?b[3]:b}function cb(_){return NA(_[13])}function db(_){return NA(_[4])}function NA(_){for(;null!==_&&!Di(_);)_=_[4];return _}function $d(_,b,w,C,T){if(null!=C){let M,R=!1;Di(C)?M=C:ni(C)&&(R=!0,C=C[0]);const L=qn(C);0===_&&null!==w?null==T?WA(b,w,L):Mc(b,w,L,T||null,!0):1===_&&null!==w?Mc(b,w,L,T||null,!0):2===_?function ev(_,b,w){const C=Ff(_,b);C&&function DS(_,b,w,C){_.removeChild(b,w,C)}(_,C,b,w)}(b,L,R):3===_&&b.destroyNode(L),null!=M&&function RS(_,b,w,C,T){const M=w[7];M!==qn(w)&&$d(b,_,C,M,T);for(let L=10;L0&&(_[w-1][4]=C[4]);const M=rl(_,10+b);!function CS(_,b){Uh(_,b,b[11],2,null,null),b[0]=null,b[6]=null}(C[1],C);const R=M[19];null!==R&&R.detachView(M[1]),C[3]=null,C[4]=null,C[2]&=-65}return C}function qA(_,b){if(!(128&b[2])){const w=b[11];w.destroyNode&&Uh(_,b,w,3,null,null),function TS(_){let b=_[13];if(!b)return fb(_[1],_);for(;b;){let w=null;if(ni(b))w=b[13];else{const C=b[10];C&&(w=C)}if(!w){for(;b&&!b[4]&&b!==_;)ni(b)&&fb(b[1],b),b=b[3];null===b&&(b=_),ni(b)&&fb(b[1],b),w=b&&b[4]}b=w}}(b)}}function fb(_,b){if(!(128&b[2])){b[2]&=-65,b[2]|=128,function ES(_,b){let w;if(null!=_&&null!=(w=_.destroyHooks))for(let C=0;C=0?C[T=F]():C[T=-F].unsubscribe(),M+=2}else{const R=C[T=w[M+1]];w[M].call(R)}if(null!==C){for(let M=T+1;MM?"":T[ne+1].toLowerCase();const me=8&C?de:null;if(me&&-1!==ri(me,F,0)||2&C&&F!==de){if(Oe(C))return!1;R=!0}}}}else{if(!R&&!Oe(C)&&!Oe(O))return!1;if(R&&Oe(O))continue;R=!1,C=O|1&C}}return Oe(C)||R}function Oe(_){return 0==(1&_)}function gn(_,b,w,C){if(null===b)return-1;let T=0;if(C||!w){let M=!1;for(;T-1)for(w++;w<_.length;){const C=_[w];if("number"==typeof C)return-1;if(C===b)return w;w++}return-1}(b,_)}function Gf(_,b,w=!1){for(let C=0;C0?'="'+L+'"':"")+"]"}else 8&C?T+="."+R:4&C&&(T+=" "+R);else""!==T&&!Oe(R)&&(b+=Wf(M,T),T=""),C=R,M=M||!Oe(C);w++}return""!==T&&(b+=Wf(M,T)),b}const Lt={};function $f(_){_l(lt(),Ce(),Ci()+_,!1)}function _l(_,b,w,C){if(!C)if(3==(3&b[2])){const M=_.preOrderCheckHooks;null!==M&&dc(b,M,w)}else{const M=_.preOrderHooks;null!==M&&zo(b,M,0,w)}mn(w)}function Zd(_,b=null,w=null,C){const T=cv(_,b,w,C);return T.resolveInjectorInitializers(),T}function cv(_,b=null,w=null,C,T=new Set){const M=[w||et,W_(_)];return C=C||("object"==typeof _?void 0:Y(_)),new J_(M,b||Ih(),C||null,T)}let go=(()=>{class _{static create(w,C){if(Array.isArray(w))return Zd({name:""},C,w,"");{const T=w.name??"";return Zd({name:T},w.parent,w.providers,T)}}}return _.THROW_IF_NOT_FOUND=Ya,_.NULL=new G_,_.\u0275prov=Xt({token:_,providedIn:"any",factory:()=>Tn(Nd)}),_.__NG_ELEMENT_ID__=-1,_})();function Ss(_,b=pt.Default){const w=Ce();return null===w?Tn(_,b):ma(un(),w,ae(_),b)}function Pb(){throw new Error("invalid")}function eu(_,b){return _<<17|b<<2}function zi(_){return _>>17&32767}function Kf(_){return 2|_}function Es(_){return(131068&_)>>2}function Xf(_,b){return-131069&_|b<<2}function em(_){return 1|_}function Bb(_,b){const w=_.contentQueries;if(null!==w)for(let C=0;C22&&_l(_,b,22,!1),w(C,T)}finally{mn(M)}}function Xh(_,b,w){if(Ki(b)){const T=b.directiveEnd;for(let M=b.directiveStart;M0;){const w=_[--b];if("number"==typeof w&&w<0)return w}return 0})(L)!=O&&L.push(O),L.push(C,T,R)}}function Yb(_,b){null!==_.hostBindings&&_.hostBindings(1,b)}function Iv(_,b){b.flags|=2,(_.components||(_.components=[])).push(b.index)}function Bv(_,b,w){if(w){if(b.exportAs)for(let C=0;C0&&fm(w)}}function fm(_){for(let C=cb(_);null!==C;C=db(C))for(let T=10;T0&&fm(M)}const w=_[1].components;if(null!==w)for(let C=0;C0&&fm(T)}}function Gb(_,b){const w=fi(b,_),C=w[1];(function su(_,b){for(let w=b.length;w<_.blueprint.length;w++)b.push(_.blueprint[w])})(C,w),Cl(C,w,w[8])}function np(_,b){return _[13]?_[14][4]=b:_[13]=b,_[14]=b,b}function ip(_){for(;_;){_[2]|=32;const b=jh(_);if(da(_)&&!b)return _;_=b}return null}function $b(_){!function mm(_){for(let b=0;b<_.components.length;b++){const w=_.components[b],C=lb(w);if(null!==C){const T=C[1];jb(T,C,T.template,w)}}}(_[8])}function rp(_,b,w){Sr(0),b(_,w)}const JS=(()=>Promise.resolve(null))();function Zb(_){return _[7]||(_[7]=[])}function Qb(_){return _.cleanup||(_.cleanup=[])}function ou(_,b,w){return(null===_||Hi(_))&&(w=function An(_){for(;Array.isArray(_);){if("object"==typeof _[1])return _;_=_[0]}return null}(w[b.index])),w[11]}function Kb(_,b){const w=_[9],C=w?w.get(Zr,null):null;C&&C.handleError(b)}function _m(_,b,w,C,T){for(let M=0;M-1&&(pb(b,C),rl(w,C))}this._attachedToViewContainer=!1}qA(this._lView[1],this._lView)}onDestroy(b){om(this._lView[1],this._lView,null,b)}markForCheck(){ip(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Wb(_,b,w){const C=b[10];C.begin&&C.begin();try{au(_,b,_.template,w)}catch(T){throw Kb(b,T),T}finally{C.end&&C.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new re(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function vS(_,b){Uh(_,b,b[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(b){if(this._attachedToViewContainer)throw new re(902,!1);this._appRef=b}}class wm extends cu{constructor(b){super(b),this._view=b}detectChanges(){$b(this._view)}checkNoChanges(){}get context(){return null}}class Dc extends Tc{constructor(b){super(),this.ngModule=b}resolveComponentFactory(b){const w=$t(b);return new uu(w,this.ngModule)}}function Xb(_){const b=[];for(let w in _)_.hasOwnProperty(w)&&b.push({propName:_[w],templateName:w});return b}class du{constructor(b,w){this.injector=b,this.parentInjector=w}get(b,w,C){const T=this.injector.get(b,ho,C);return T!==ho||w===ho?T:this.parentInjector.get(b,w,C)}}class uu extends MA{constructor(b,w){super(),this.componentDef=b,this.ngModule=w,this.componentType=b.type,this.selector=function qh(_){return _.map(av).join(",")}(b.selectors),this.ngContentSelectors=b.ngContentSelectors?b.ngContentSelectors:[],this.isBoundToModule=!!w}get inputs(){return Xb(this.componentDef.inputs)}get outputs(){return Xb(this.componentDef.outputs)}create(b,w,C,T){let M=(T=T||this.ngModule)instanceof gl?T:T?.injector;M&&null!==this.componentDef.getStandaloneInjector&&(M=this.componentDef.getStandaloneInjector(M)||M);const R=M?new du(b,M):b,L=R.get(uo,null);if(null===L)throw new re(407,!1);const O=R.get(Vf,null),F=L.createRenderer(null,this.componentDef),$=this.componentDef.selectors[0][0]||"div",ne=C?function Kr(_,b,w){return _.selectRootElement(b,w===ie.ShadowDom)}(F,C,this.componentDef.encapsulation):hb(L.createRenderer(null,this.componentDef),$,function ew(_){const b=_.toLowerCase();return"svg"===b?"svg":"math"===b?"math":null}($)),de=this.componentDef.onPush?288:272,me=function Yv(_,b){return{components:[],scheduler:_||hS,clean:JS,playerHandler:b||null,flags:0}}(),De=sm(0,null,null,1,0,null,null,null,null,null),Ue=Ca(null,De,me,de,null,null,L,F,O,R,null);let $e,Xe;yd(Ue);try{const At=function ym(_,b,w,C,T,M){const R=w[1];w[22]=_;const O=yl(R,22,2,"#host",null),F=O.mergedAttrs=b.hostAttrs;null!==F&&(bm(O,F,!0),null!==_&&(Jo(T,_,F),null!==O.classes&&zf(T,_,O.classes),null!==O.styles&&nv(T,_,O.styles)));const $=C.createRenderer(_,b),ne=Ca(w,am(b),null,b.onPush?32:16,w[22],O,C,$,M||null,null,null);return R.firstCreatePass&&(Md(ja(O,w),R,b.type),Iv(R,O),qb(O,w.length,1)),np(w,ne),w[22]=ne}(ne,this.componentDef,Ue,L,F);if(ne)if(C)Jo(F,ne,["ng-version",Bh.full]);else{const{attrs:Le,classes:mt}=function Jd(_){const b=[],w=[];let C=1,T=2;for(;C<_.length;){let M=_[C];if("string"==typeof M)2===T?""!==M&&b.push(M,_[++C]):8===T&&w.push(M);else{if(!Oe(T))break;T=M}C++}return{attrs:b,classes:w}}(this.componentDef.selectors[0]);Le&&Jo(F,ne,Le),mt&&mt.length>0&&zf(F,ne,mt.join(" "))}if(Xe=tc(De,22),void 0!==w){const Le=Xe.projection=[];for(let mt=0;mt=0;C--){const T=_[C];T.hostVars=b+=T.hostVars,T.hostAttrs=eo(T.hostAttrs,w=eo(w,T.hostAttrs))}}(C)}function Am(_){return _===Dt?{}:_===et?[]:_}function Tl(_,b){const w=_.viewQuery;_.viewQuery=w?(C,T)=>{b(C,T),w(C,T)}:b}function xl(_,b){const w=_.contentQueries;_.contentQueries=w?(C,T,M)=>{b(C,T,M),w(C,T,M)}:b}function Wv(_,b){const w=_.hostBindings;_.hostBindings=w?(C,T)=>{b(C,T),w(C,T)}:b}let ap=null;function Ml(){if(!ap){const _=pe.Symbol;if(_&&_.iterator)ap=_.iterator;else{const b=Object.getOwnPropertyNames(Map.prototype);for(let w=0;wL(qn(qt[C.index])):C.index;let mt=null;if(!L&&O&&(mt=function fw(_,b,w,C){const T=_.cleanup;if(null!=T)for(let M=0;MO?L[O]:null}"string"==typeof R&&(M+=2)}return null}(_,b,T,C.index)),null!==mt)(mt.__ngLastListenerFn__||mt).__ngNextListenerFn__=M,mt.__ngLastListenerFn__=M,me=!1;else{M=Dm(C,b,ne,M,!1);const qt=w.listen(Xe,T,M);de.push(M,qt),$&&$.push(T,Le,At,At+1)}}else M=Dm(C,b,ne,M,!1);const De=C.outputs;let Ue;if(me&&null!==De&&(Ue=De[T])){const $e=Ue.length;if($e)for(let Xe=0;Xe<$e;Xe+=2){const Fn=b[Ue[Xe]][Ue[Xe+1]].subscribe(M),rd=de.length;de.push(M,Fn),$&&$.push(T,C.index,rd,-(rd+1))}}}function rT(_,b,w,C){try{return!1!==w(C)}catch(T){return Kb(_,T),!1}}function Dm(_,b,w,C,T){return function M(R){if(R===Function)return C;ip(2&_.flags?fi(_.index,b):b);let O=rT(b,0,C,R),F=M.__ngNextListenerFn__;for(;F;)O=rT(b,0,F,R)&&O,F=F.__ngNextListenerFn__;return T&&!1===O&&(R.preventDefault(),R.returnValue=!1),O}}function mw(_=1){return function Xu(_){return(be.lFrame.contextLView=function lc(_,b){for(;_>0;)b=b[15],_--;return b}(_,be.lFrame.contextLView))[8]}(_)}function aT(_,b){let w=null;const C=function Yh(_){const b=_.attrs;if(null!=b){const w=b.indexOf(5);if(0==(1&w))return b[w+1]}return null}(_);for(let T=0;T=0}const He={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Pt(_){return _.substring(He.key,He.keyEnd)}function oT(_,b){const w=He.textEnd;return w===b?-1:(b=He.keyEnd=function Cw(_,b,w){for(;b32;)b++;return b}(_,He.key=b,w),mu(_,b,w))}function mu(_,b,w){for(;b=0;w=oT(b,w))Yi(_,Pt(b),!0)}function Sa(_,b,w,C){const T=Ce(),M=lt(),R=Mr(2);M.firstUpdatePass&&xw(M,_,R,C),b!==Lt&&ir(T,R,b)&&fT(M,M.data[Ci()],T,T[11],_,T[R+1]=function gT(_,b){return null==_||("string"==typeof b?_+=b:"object"==typeof _&&(_=Y(kr(_)))),_}(b,w),C,R)}function Ea(_,b,w,C){const T=lt(),M=Mr(2);T.firstUpdatePass&&xw(T,null,M,C);const R=Ce();if(w!==Lt&&ir(R,M,w)){const L=T.data[Ci()];if(Um(L,C)&&!Tw(T,M)){let O=C?L.classesWithoutHost:L.stylesWithoutHost;null!==O&&(w=G(O,w||"")),dw(T,L,R,w,C)}else!function _u(_,b,w,C,T,M,R,L){T===Lt&&(T=et);let O=0,F=0,$=0=_.expandoStartIndex}function xw(_,b,w,C){const T=_.data;if(null===T[w+1]){const M=T[Ci()],R=Tw(_,w);Um(M,C)&&null===b&&!R&&(b=!1),b=function dT(_,b,w,C){const T=rc(_);let M=C?b.residualClasses:b.residualStyles;if(null===T)0===(C?b.classBindings:b.styleBindings)&&(w=Bc(w=Vm(null,_,b,w,C),b.attrs,C),M=null);else{const R=b.directiveStylingLast;if(-1===R||_[R]!==T)if(w=Vm(T,_,b,w,C),null===M){let O=function uT(_,b,w){const C=w?b.classBindings:b.styleBindings;if(0!==Es(C))return _[zi(C)]}(_,b,C);void 0!==O&&Array.isArray(O)&&(O=Vm(null,_,b,O[1],C),O=Bc(O,b.attrs,C),function hT(_,b,w,C){_[zi(w?b.classBindings:b.styleBindings)]=C}(_,b,C,O))}else M=function pT(_,b,w){let C;const T=b.directiveEnd;for(let M=1+b.directiveStylingLast;M0)&&(F=!0)}else $=w;if(T)if(0!==O){const de=zi(_[L+1]);_[C+1]=eu(de,L),0!==de&&(_[de+1]=Xf(_[de+1],C)),_[L+1]=function yv(_,b){return 131071&_|b<<17}(_[L+1],C)}else _[C+1]=eu(L,0),0!==L&&(_[L+1]=Xf(_[L+1],C)),L=C;else _[C+1]=eu(O,0),0===L?L=C:_[O+1]=Xf(_[O+1],C),O=C;F&&(_[C+1]=Kf(_[C+1])),fu(_,$,C,!0),fu(_,$,C,!1),function Tt(_,b,w,C,T){const M=T?_.residualClasses:_.residualStyles;null!=M&&"string"==typeof b&&Fa(M,b)>=0&&(w[C+1]=em(w[C+1]))}(b,$,_,C,M),R=eu(L,O),M?b.classBindings=R:b.styleBindings=R}(T,M,b,w,R,C)}}function Vm(_,b,w,C,T){let M=null;const R=w.directiveEnd;let L=w.directiveStylingLast;for(-1===L?L=w.directiveStart:L++;L0;){const O=_[T],F=Array.isArray(O),$=F?O[1]:O,ne=null===$;let de=w[T+1];de===Lt&&(de=ne?et:void 0);let me=ne?ol(de,C):$===C?de:void 0;if(F&&!jm(me)&&(me=ol(O,C)),jm(me)&&(L=me,R))return L;const De=_[T+1];T=R?zi(De):Es(De)}if(null!==b){let O=M?b.residualClasses:b.residualStyles;null!=O&&(L=ol(O,C))}return L}function jm(_){return void 0!==_}function Um(_,b){return 0!=(_.flags&(b?16:32))}function Sw(_,b=""){const w=Ce(),C=lt(),T=_+22,M=C.firstCreatePass?yl(C,T,1,b,null):C.data[T],R=w[T]=function ub(_,b){return _.createText(b)}(w[11],b);Yf(C,w,R,M),Pn(M,!1)}function ta(_){return fp("",_,""),ta}function fp(_,b,w){const C=Ce(),T=xa(C,_,b,w);return T!==Lt&&Aa(C,Ci(),T),fp}function Nm(_,b,w,C,T){const M=Ce(),R=function Ir(_,b,w,C,T,M){const L=Pc(_,nn(),w,T);return Mr(2),L?b+ye(w)+C+ye(T)+M:Lt}(M,_,b,w,C,T);return R!==Lt&&Aa(M,Ci(),R),Nm}function bu(_,b,w,C,T,M,R,L,O,F,$){const ne=Ce(),de=hu(ne,_,b,w,C,T,M,R,L,O,F,$);return de!==Lt&&Aa(ne,Ci(),de),bu}function Hw(_,b,w){Ea(Yi,Xa,xa(Ce(),_,b,w),!0)}function gp(_,b,w){const C=Ce();return ir(C,Ks(),b)&&Xr(lt(),Qt(),C,_,b,C[11],w,!0),gp}function Vc(_,b,w){const C=Ce();if(ir(C,Ks(),b)){const M=lt(),R=Qt();Xr(M,R,C,_,b,ou(rc(M.data),R,C),w,!0)}return Vc}const vo=void 0;var Ow=["en",[["a","p"],["AM","PM"],vo],[["AM","PM"],vo,vo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],vo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],vo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",vo,"{1} 'at' {0}",vo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Iw(_){const w=Math.floor(Math.abs(_)),C=_.toString().replace(/^[^.]*\.?/,"").length;return 1===w&&0===C?1:5}];let Rl={};function _p(_){const b=function Vw(_){return _.toLowerCase().replace(/_/g,"-")}(_);let w=Km(b);if(w)return w;const C=b.split("-")[0];if(w=Km(C),w)return w;if("en"===C)return Ow;throw new re(701,!1)}function bp(_){return _p(_)[bt.PluralCase]}function Km(_){return _ in Rl||(Rl[_]=pe.ng&&pe.ng.common&&pe.ng.common.locales&&pe.ng.common.locales[_]),Rl[_]}var bt=(()=>((bt=bt||{})[bt.LocaleId=0]="LocaleId",bt[bt.DayPeriodsFormat=1]="DayPeriodsFormat",bt[bt.DayPeriodsStandalone=2]="DayPeriodsStandalone",bt[bt.DaysFormat=3]="DaysFormat",bt[bt.DaysStandalone=4]="DaysStandalone",bt[bt.MonthsFormat=5]="MonthsFormat",bt[bt.MonthsStandalone=6]="MonthsStandalone",bt[bt.Eras=7]="Eras",bt[bt.FirstDayOfWeek=8]="FirstDayOfWeek",bt[bt.WeekendRange=9]="WeekendRange",bt[bt.DateFormat=10]="DateFormat",bt[bt.TimeFormat=11]="TimeFormat",bt[bt.DateTimeFormat=12]="DateTimeFormat",bt[bt.NumberSymbols=13]="NumberSymbols",bt[bt.NumberFormats=14]="NumberFormats",bt[bt.CurrencyCode=15]="CurrencyCode",bt[bt.CurrencySymbol=16]="CurrencySymbol",bt[bt.CurrencyName=17]="CurrencyName",bt[bt.Currencies=18]="Currencies",bt[bt.Directionality=19]="Directionality",bt[bt.PluralCase=20]="PluralCase",bt[bt.ExtraData=21]="ExtraData",bt))();const Rs="en-US";let eg=Rs;function Tp(_,b,w,C,T){if(_=ae(_),Array.isArray(_))for(let M=0;M<_.length;M++)Tp(_[M],b,w,C,T);else{const M=lt(),R=Ce();let L=co(_)?_:ae(_.provide),O=Q_(_);const F=un(),$=1048575&F.providerIndexes,ne=F.directiveStart,de=F.providerIndexes>>20;if(co(_)||!_.multi){const me=new ki(O,T,Ss),De=xp(L,b,T?$:$+de,ne);-1===De?(Md(ja(F,R),M,L),bg(M,_,b.length),b.push(L),F.directiveStart++,F.directiveEnd++,T&&(F.providerIndexes+=1048576),w.push(me),R.push(me)):(w[De]=me,R[De]=me)}else{const me=xp(L,b,$+de,ne),De=xp(L,b,$,$+de),Ue=me>=0&&w[me],$e=De>=0&&w[De];if(T&&!$e||!T&&!Ue){Md(ja(F,R),M,L);const Xe=function Zw(_,b,w,C,T){const M=new ki(_,w,Ss);return M.multi=[],M.index=b,M.componentProviders=0,$T(M,T,C&&!w),M}(T?Jw:JT,w.length,T,C,O);!T&&$e&&(w[De].providerFactory=Xe),bg(M,_,b.length,0),b.push(L),F.directiveStart++,F.directiveEnd++,T&&(F.providerIndexes+=1048576),w.push(Xe),R.push(Xe)}else bg(M,_,me>-1?me:De,$T(w[T?De:me],O,!T&&C));!T&&C&&$e&&w[De].componentProviders++}}}function bg(_,b,w,C){const T=co(b),M=function CA(_){return!!_.useClass}(b);if(T||M){const O=(M?ae(b.useClass):b).prototype.ngOnDestroy;if(O){const F=_.destroyHooks||(_.destroyHooks=[]);if(!T&&b.multi){const $=F.indexOf(w);-1===$?F.push(w,[C,O]):F[$+1].push(C,O)}else F.push(w,O)}}}function $T(_,b,w){return w&&_.componentProviders++,_.multi.push(b)-1}function xp(_,b,w,C){for(let T=w;T{w.providersResolver=(C,T)=>function WT(_,b,w){const C=lt();if(C.firstCreatePass){const T=Hi(_);Tp(w,C.data,C.blueprint,T,!0),Tp(b,C.data,C.blueprint,T,!1)}}(C,T?T(_):_,b)}}class Nc{}class _r{}function ZT(_,b){return new Qw(_,b??null)}class Qw extends Nc{constructor(b,w){super(),this._parent=w,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Dc(this);const C=qe(b);this._bootstrapComponents=fo(C.bootstrap),this._r3Injector=cv(b,w,[{provide:Nc,useValue:this},{provide:Tc,useValue:this.componentFactoryResolver}],Y(b),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(b)}get injector(){return this._r3Injector}destroy(){const b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(w=>w()),this.destroyCbs=null}onDestroy(b){this.destroyCbs.push(b)}}class Hu extends _r{constructor(b){super(),this.moduleType=b}create(b){return new Qw(this.moduleType,b)}}class QT extends Nc{constructor(b,w,C){super(),this.componentFactoryResolver=new Dc(this),this.instance=null;const T=new J_([...b,{provide:Nc,useValue:this},{provide:Tc,useValue:this.componentFactoryResolver}],w||Ih(),C,new Set(["environment"]));this.injector=T,T.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(b){this.injector.onDestroy(b)}}function Pu(_,b,w=null){return new QT(_,b,w).injector}function Cg(_,b,w){const C=jn()+_,T=Ce();return T[C]===Lt?nr(T,C,w?b.call(w):b()):function sp(_,b){return _[b]}(T,C)}function oy(_,b,w,C){return uy(Ce(),jn(),_,b,w,C)}function ly(_,b,w,C,T){return Ag(Ce(),jn(),_,b,w,C,T)}function qc(_,b){const w=_[b];return w===Lt?void 0:w}function uy(_,b,w,C,T,M){const R=b+w;return ir(_,R,T)?nr(_,R+1,M?C.call(M,T):C(T)):qc(_,R+1)}function Ag(_,b,w,C,T,M,R){const L=b+w;return Pc(_,L,T,M)?nr(_,L+2,R?C.call(R,T,M):C(T,M)):qc(_,L+2)}function l0(_,b,w,C,T,M,R,L){const O=b+w;return function vm(_,b,w,C,T){const M=Pc(_,b,w,C);return ir(_,b+2,T)||M}(_,O,T,M,R)?nr(_,O+3,L?C.call(L,T,M,R):C(T,M,R)):qc(_,O+3)}function vg(_,b){const w=lt();let C;const T=_+22;w.firstCreatePass?(C=function Tg(_,b){if(b)for(let w=b.length-1;w>=0;w--){const C=b[w];if(_===C.name)return C}}(b,w.pipeRegistry),w.data[T]=C,C.onDestroy&&(w.destroyHooks||(w.destroyHooks=[])).push(T,C.onDestroy)):C=w.data[T];const M=C.factory||(C.factory=ha(C.type)),R=Wt(Ss);try{const L=_s(!1),O=M();return _s(L),function nT(_,b,w,C){w>=_.data.length&&(_.data[w]=null,_.blueprint[w]=null),b[w]=C}(w,Ce(),T,O),O}finally{Wt(R)}}function xg(_,b,w){const C=_+22,T=Ce(),M=Qs(T,C);return Dp(T,C)?uy(T,jn(),b,M.transform,w,M):M.transform(w)}function u0(_,b,w,C){const T=_+22,M=Ce(),R=Qs(M,T);return Dp(M,T)?Ag(M,jn(),b,R.transform,w,C,R):R.transform(w,C)}function h0(_,b,w,C,T){const M=_+22,R=Ce(),L=Qs(R,M);return Dp(R,M)?l0(R,jn(),b,L.transform,w,C,T,L):L.transform(w,C,T)}function Dp(_,b){return _[1].data[b].pure}function py(_){return b=>{setTimeout(_,void 0,b)}}const is=class f0 extends x.x{constructor(b=!1){super(),this.__isAsync=b}emit(b){super.next(b)}subscribe(b,w,C){let T=b,M=w||(()=>null),R=C;if(b&&"object"==typeof b){const O=b;T=O.next?.bind(O),M=O.error?.bind(O),R=O.complete?.bind(O)}this.__isAsync&&(M=py(M),T&&(T=py(T)),R&&(R=py(R)));const L=super.subscribe({next:T,error:M,complete:R});return b instanceof n.w0&&b.add(L),L}};function m0(){return this._results[Ml()]()}class Hp{constructor(b=!1){this._emitDistinctChangesOnly=b,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const w=Ml(),C=Hp.prototype;C[w]||(C[w]=m0)}get changes(){return this._changes||(this._changes=new is)}get(b){return this._results[b]}map(b){return this._results.map(b)}filter(b){return this._results.filter(b)}find(b){return this._results.find(b)}reduce(b,w){return this._results.reduce(b,w)}forEach(b){this._results.forEach(b)}some(b){return this._results.some(b)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(b,w){const C=this;C.dirty=!1;const T=zn(b);(this._changesDetected=!function Rd(_,b,w){if(_.length!==b.length)return!1;for(let C=0;C<_.length;C++){let T=_[C],M=b[C];if(w&&(T=w(T),M=w(M)),M!==T)return!1}return!0}(C._results,T,w))&&(C._results=T,C.length=T.length,C.last=T[this.length-1],C.first=T[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let ku=(()=>{class _{}return _.__NG_ELEMENT_ID__=b0,_})();const g0=ku,_0=class extends g0{constructor(b,w,C){super(),this._declarationLView=b,this._declarationTContainer=w,this.elementRef=C}createEmbeddedView(b,w){const C=this._declarationTContainer.tViews,T=Ca(this._declarationLView,C,b,16,null,C.declTNode,null,null,null,null,w||null);T[17]=this._declarationLView[this._declarationTContainer.index];const R=this._declarationLView[19];return null!==R&&(T[19]=R.createEmbeddedView(C)),Cl(C,T,b),new cu(T)}};function b0(){return Pp(un(),Ce())}function Pp(_,b){return 4&_.type?new _0(b,_,$a(_,b)):null}let Rp=(()=>{class _{}return _.__NG_ELEMENT_ID__=fy,_})();function fy(){return Gc(un(),Ce())}const uE=Rp,w0=class extends uE{constructor(b,w,C){super(),this._lContainer=b,this._hostTNode=w,this._hostLView=C}get element(){return $a(this._hostTNode,this._hostLView)}get injector(){return new ro(this._hostTNode,this._hostLView)}get parentInjector(){const b=no(this._hostTNode,this._hostLView);if(Ad(b)){const w=to(b,this._hostLView),C=gs(b);return new ro(w[1].data[C+8],w)}return new ro(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(b){const w=y0(this._lContainer);return null!==w&&w[b]||null}get length(){return this._lContainer.length-10}createEmbeddedView(b,w,C){let T,M;"number"==typeof C?T=C:null!=C&&(T=C.index,M=C.injector);const R=b.createEmbeddedView(w||{},M);return this.insert(R,T),R}createComponent(b,w,C,T,M){const R=b&&!function so(_){return"function"==typeof _}(b);let L;if(R)L=w;else{const ne=w||{};L=ne.index,C=ne.injector,T=ne.projectableNodes,M=ne.environmentInjector||ne.ngModuleRef}const O=R?b:new uu($t(b)),F=C||this.parentInjector;if(!M&&null==O.ngModule){const de=(R?F:this.parentInjector).get(gl,null);de&&(M=de)}const $=O.create(F,T,void 0,M);return this.insert($.hostView,L),$}insert(b,w){const C=b._lView,T=C[1];if(function N(_){return Di(_[3])}(C)){const $=this.indexOf(b);if(-1!==$)this.detach($);else{const ne=C[3],de=new w0(ne,ne[6],ne[3]);de.detach(de.indexOf(b))}}const M=this._adjustIndex(w),R=this._lContainer;!function xS(_,b,w,C){const T=10+C,M=w.length;C>0&&(w[T-1][4]=b),C0)C.push(R[L/2]);else{const F=M[L+1],$=b[-O];for(let ne=10;ne<$.length;ne++){const de=$[ne];de[17]===de[3]&&Dg(de[1],de,F,C)}if(null!==$[9]){const ne=$[9];for(let de=0;de{class _{constructor(w){this.appInits=w,this.resolve=Np,this.reject=Np,this.initialized=!1,this.done=!1,this.donePromise=new Promise((C,T)=>{this.resolve=C,this.reject=T})}runInitializers(){if(this.initialized)return;const w=[],C=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let T=0;T{M.subscribe({complete:L,error:O})});w.push(R)}}Promise.all(w).then(()=>{C()}).catch(T=>{this.reject(T)}),0===w.length&&C(),this.initialized=!0}}return _.\u0275fac=function(w){return new(w||_)(Tn(Fg,8))},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const xo=new pn("AppId",{providedIn:"root",factory:function Sy(){return`${ed()}${ed()}${ed()}`}});function ed(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Yg=new pn("Platform Initializer"),z0=new pn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ey=new pn("appBootstrapListener"),G0=new pn("AnimationModuleType");let W0=(()=>{class _{log(w){console.log(w)}warn(w){console.warn(w)}}return _.\u0275fac=function(w){return new(w||_)},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();const Fp=new pn("LocaleId",{providedIn:"root",factory:()=>wh(Fp,pt.Optional|pt.SkipSelf)||function Dy(){return typeof $localize<"u"&&$localize.locale||Rs}()}),$0=new pn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Z0{constructor(b,w){this.ngModuleFactory=b,this.componentFactories=w}}let Q0=(()=>{class _{compileModuleSync(w){return new Hu(w)}compileModuleAsync(w){return Promise.resolve(this.compileModuleSync(w))}compileModuleAndAllComponentsSync(w){const C=this.compileModuleSync(w),M=fo(qe(w).declarations).reduce((R,L)=>{const O=$t(L);return O&&R.push(new uu(O)),R},[]);return new Z0(C,M)}compileModuleAndAllComponentsAsync(w){return Promise.resolve(this.compileModuleAndAllComponentsSync(w))}clearCache(){}clearCacheFor(w){}getModuleId(w){}}return _.\u0275fac=function(w){return new(w||_)},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const K0=(()=>Promise.resolve(0))();function zg(_){typeof Zone>"u"?K0.then(()=>{_&&_.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",_)}class br{constructor({enableLongStackTrace:b=!1,shouldCoalesceEventChangeDetection:w=!1,shouldCoalesceRunChangeDetection:C=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new is(!1),this.onMicrotaskEmpty=new is(!1),this.onStable=new is(!1),this.onError=new is(!1),typeof Zone>"u")throw new re(908,!1);Zone.assertZonePatched();const T=this;if(T._nesting=0,T._outer=T._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const M=Zone.AsyncStackTaggingZoneSpec;T._inner=T._inner.fork(new M("Angular"))}Zone.TaskTrackingZoneSpec&&(T._inner=T._inner.fork(new Zone.TaskTrackingZoneSpec)),b&&Zone.longStackTraceZoneSpec&&(T._inner=T._inner.fork(Zone.longStackTraceZoneSpec)),T.shouldCoalesceEventChangeDetection=!C&&w,T.shouldCoalesceRunChangeDetection=C,T.lastRequestAnimationFrameId=-1,T.nativeRequestAnimationFrame=function X0(){let _=pe.requestAnimationFrame,b=pe.cancelAnimationFrame;if(typeof Zone<"u"&&_&&b){const w=_[Zone.__symbol__("OriginalDelegate")];w&&(_=w);const C=b[Zone.__symbol__("OriginalDelegate")];C&&(b=C)}return{nativeRequestAnimationFrame:_,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function td(_){const b=()=>{!function ex(_){_.isCheckStableRunning||-1!==_.lastRequestAnimationFrameId||(_.lastRequestAnimationFrameId=_.nativeRequestAnimationFrame.call(pe,()=>{_.fakeTopEventTask||(_.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{_.lastRequestAnimationFrameId=-1,$g(_),_.isCheckStableRunning=!0,Wg(_),_.isCheckStableRunning=!1},void 0,()=>{},()=>{})),_.fakeTopEventTask.invoke()}),$g(_))}(_)};_._inner=_._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(w,C,T,M,R,L)=>{try{return nd(_),w.invokeTask(T,M,R,L)}finally{(_.shouldCoalesceEventChangeDetection&&"eventTask"===M.type||_.shouldCoalesceRunChangeDetection)&&b(),Py(_)}},onInvoke:(w,C,T,M,R,L,O)=>{try{return nd(_),w.invoke(T,M,R,L,O)}finally{_.shouldCoalesceRunChangeDetection&&b(),Py(_)}},onHasTask:(w,C,T,M)=>{w.hasTask(T,M),C===T&&("microTask"==M.change?(_._hasPendingMicrotasks=M.microTask,$g(_),Wg(_)):"macroTask"==M.change&&(_.hasPendingMacrotasks=M.macroTask))},onHandleError:(w,C,T,M)=>(w.handleError(T,M),_.runOutsideAngular(()=>_.onError.emit(M)),!1)})}(T)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!br.isInAngularZone())throw new re(909,!1)}static assertNotInAngularZone(){if(br.isInAngularZone())throw new re(909,!1)}run(b,w,C){return this._inner.run(b,w,C)}runTask(b,w,C,T){const M=this._inner,R=M.scheduleEventTask("NgZoneEvent: "+T,b,Gg,Np,Np);try{return M.runTask(R,w,C)}finally{M.cancelTask(R)}}runGuarded(b,w,C){return this._inner.runGuarded(b,w,C)}runOutsideAngular(b){return this._outer.run(b)}}const Gg={};function Wg(_){if(0==_._nesting&&!_.hasPendingMicrotasks&&!_.isStable)try{_._nesting++,_.onMicrotaskEmpty.emit(null)}finally{if(_._nesting--,!_.hasPendingMicrotasks)try{_.runOutsideAngular(()=>_.onStable.emit(null))}finally{_.isStable=!0}}}function $g(_){_.hasPendingMicrotasks=!!(_._hasPendingMicrotasks||(_.shouldCoalesceEventChangeDetection||_.shouldCoalesceRunChangeDetection)&&-1!==_.lastRequestAnimationFrameId)}function nd(_){_._nesting++,_.isStable&&(_.isStable=!1,_.onUnstable.emit(null))}function Py(_){_._nesting--,Wg(_)}class tx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new is,this.onMicrotaskEmpty=new is,this.onStable=new is,this.onError=new is}run(b,w,C){return b.apply(w,C)}runGuarded(b,w,C){return b.apply(w,C)}runOutsideAngular(b){return b()}runTask(b,w,C,T){return b.apply(w,C)}}const si=new pn(""),Ry=new pn("");let Iy,wr=(()=>{class _{constructor(w,C,T){this._ngZone=w,this.registry=C,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Iy||(function Ly(_){Iy=_}(T),T.addToWindow(C)),this._watchAngularEvents(),w.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{br.assertNotInAngularZone(),zg(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())zg(()=>{for(;0!==this._callbacks.length;){let w=this._callbacks.pop();clearTimeout(w.timeoutId),w.doneCb(this._didWork)}this._didWork=!1});else{let w=this.getPendingTasks();this._callbacks=this._callbacks.filter(C=>!C.updateCb||!C.updateCb(w)||(clearTimeout(C.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(w=>({source:w.source,creationLocation:w.creationLocation,data:w.data})):[]}addCallback(w,C,T){let M=-1;C&&C>0&&(M=setTimeout(()=>{this._callbacks=this._callbacks.filter(R=>R.timeoutId!==M),w(this._didWork,this.getPendingTasks())},C)),this._callbacks.push({doneCb:w,timeoutId:M,updateCb:T})}whenStable(w,C,T){if(T&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(w,C,T),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(w){this.registry.registerApplication(w,this)}unregisterApplication(w){this.registry.unregisterApplication(w)}findProviders(w,C,T){return[]}}return _.\u0275fac=function(w){return new(w||_)(Tn(br),Tn(ky),Tn(Ry))},_.\u0275prov=Xt({token:_,factory:_.\u0275fac}),_})(),ky=(()=>{class _{constructor(){this._applications=new Map}registerApplication(w,C){this._applications.set(w,C)}unregisterApplication(w){this._applications.delete(w)}unregisterAllApplications(){this._applications.clear()}getTestability(w){return this._applications.get(w)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(w,C=!0){return Iy?.findTestabilityInTree(this,w,C)??null}}return _.\u0275fac=function(w){return new(w||_)},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})(),Mo=null;const Oy=new pn("AllowMultipleToken"),Jg=new pn("PlatformDestroyListeners");class Oi{constructor(b,w){this.name=b,this.token=w}}function Vy(_,b,w=[]){const C=`Platform: ${b}`,T=new pn(C);return(M=[])=>{let R=jy();if(!R||R.injector.get(Oy,!1)){const L=[...w,...M,{provide:T,useValue:!0}];_?_(L):function $i(_){if(Mo&&!Mo.get(Oy,!1))throw new re(400,!1);Mo=_;const b=_.get(ix);(function By(_){const b=_.get(Yg,null);b&&b.forEach(w=>w())})(_)}(function nx(_=[],b){return go.create({name:b,providers:[{provide:Rf,useValue:"platform"},{provide:Jg,useValue:new Set([()=>Mo=null])},..._]})}(L,C))}return function jl(_){const b=jy();if(!b)throw new re(401,!1);return b}()}}function jy(){return Mo?.get(ix)??null}let ix=(()=>{class _{constructor(w){this._injector=w,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(w,C){const T=function EE(_,b){let w;return w="noop"===_?new tx:("zone.js"===_?void 0:_)||new br(b),w}(C?.ngZone,function rx(_){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!_||!_.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!_||!_.ngZoneRunCoalescing)||!1}}(C)),M=[{provide:br,useValue:T}];return T.run(()=>{const R=go.create({providers:M,parent:this.injector,name:w.moduleType.name}),L=w.create(R),O=L.injector.get(Zr,null);if(!O)throw new re(402,!1);return T.runOutsideAngular(()=>{const F=T.onError.subscribe({next:$=>{O.handleError($)}});L.onDestroy(()=>{Kg(this._modules,L),F.unsubscribe()})}),function Uy(_,b,w){try{const C=w();return dp(C)?C.catch(T=>{throw b.runOutsideAngular(()=>_.handleError(T)),T}):C}catch(C){throw b.runOutsideAngular(()=>_.handleError(C)),C}}(O,T,()=>{const F=L.injector.get(rs);return F.runInitializers(),F.donePromise.then(()=>(function TT(_){Kt(_,"Expected localeId to be defined"),"string"==typeof _&&(eg=_.toLowerCase().replace(/_/g,"-"))}(L.injector.get(Fp,Rs)||Rs),this._moduleDoBootstrap(L),L))})})}bootstrapModule(w,C=[]){const T=Ny({},C);return function oi(_,b,w){const C=new Hu(w);return Promise.resolve(C)}(0,0,w).then(M=>this.bootstrapModuleFactory(M,T))}_moduleDoBootstrap(w){const C=w.injector.get(Qg);if(w._bootstrapComponents.length>0)w._bootstrapComponents.forEach(T=>C.bootstrap(T));else{if(!w.instance.ngDoBootstrap)throw new re(403,!1);w.instance.ngDoBootstrap(C)}this._modules.push(w)}onDestroy(w){this._destroyListeners.push(w)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new re(404,!1);this._modules.slice().forEach(C=>C.destroy()),this._destroyListeners.forEach(C=>C());const w=this._injector.get(Jg,null);w&&(w.forEach(C=>C()),w.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return _.\u0275fac=function(w){return new(w||_)(Tn(go))},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();function Ny(_,b){return Array.isArray(b)?b.reduce(Ny,_):{..._,...b}}let Qg=(()=>{class _{constructor(w,C,T){this._zone=w,this._injector=C,this._exceptionHandler=T,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const M=new P.y(L=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{L.next(this._stable),L.complete()})}),R=new P.y(L=>{let O;this._zone.runOutsideAngular(()=>{O=this._zone.onStable.subscribe(()=>{br.assertNotInAngularZone(),zg(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,L.next(!0))})})});const F=this._zone.onUnstable.subscribe(()=>{br.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{L.next(!1)}))});return()=>{O.unsubscribe(),F.unsubscribe()}});this.isStable=(0,D.T)(M,R.pipe((0,H.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(w,C){const T=w instanceof MA;if(!this._injector.get(rs).done)throw!T&&Qc(w),new re(405,false);let R;R=T?w:this._injector.get(Tc).resolveComponentFactory(w),this.componentTypes.push(R.componentType);const L=function SE(_){return _.isBoundToModule}(R)?void 0:this._injector.get(Nc),F=R.create(go.NULL,[],C||R.selector,L),$=F.location.nativeElement,ne=F.injector.get(si,null);return ne?.registerApplication($),F.onDestroy(()=>{this.detachView(F.hostView),Kg(this.components,F),ne?.unregisterApplication($)}),this._loadComponent(F),F}tick(){if(this._runningTick)throw new re(101,!1);try{this._runningTick=!0;for(let w of this._views)w.detectChanges()}catch(w){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(w))}finally{this._runningTick=!1}}attachView(w){const C=w;this._views.push(C),C.attachToAppRef(this)}detachView(w){const C=w;Kg(this._views,C),C.detachFromAppRef()}_loadComponent(w){this.attachView(w.hostView),this.tick(),this.components.push(w),this._injector.get(Ey,[]).concat(this._bootstrapListeners).forEach(T=>T(w))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(w=>w()),this._views.slice().forEach(w=>w.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(w){return this._destroyListeners.push(w),()=>Kg(this._destroyListeners,w)}destroy(){if(this._destroyed)throw new re(406,!1);const w=this._injector;w.destroy&&!w.destroyed&&w.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return _.\u0275fac=function(w){return new(w||_)(Tn(br),Tn(gl),Tn(Zr))},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function Kg(_,b){const w=_.indexOf(b);w>-1&&_.splice(w,1)}let zp=!0;function DE(){zp=!1}let ox=(()=>{class _{}return _.__NG_ELEMENT_ID__=HE,_})();function HE(_){return function PE(_,b,w){if(qr(_)&&!w){const C=fi(_.index,b);return new cu(C,C)}return 47&_.type?new cu(b[16],b):null}(un(),Ce(),16==(16&_))}class ux{constructor(){}supports(b){return Hc(b)}create(b){return new BE(b)}}const OE=(_,b)=>b;class BE{constructor(b){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=b||OE}forEachItem(b){let w;for(w=this._itHead;null!==w;w=w._next)b(w)}forEachOperation(b){let w=this._itHead,C=this._removalsHead,T=0,M=null;for(;w||C;){const R=!C||w&&w.currentIndex{R=this._trackByFn(T,L),null!==w&&Object.is(w.trackById,R)?(C&&(w=this._verifyReinsertion(w,L,R,T)),Object.is(w.item,L)||this._addIdentityChange(w,L)):(w=this._mismatch(w,L,R,T),C=!0),w=w._next,T++}),this.length=T;return this._truncate(w),this.collection=b,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let b;for(b=this._previousItHead=this._itHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._additionsHead;null!==b;b=b._nextAdded)b.previousIndex=b.currentIndex;for(this._additionsHead=this._additionsTail=null,b=this._movesHead;null!==b;b=b._nextMoved)b.previousIndex=b.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(b,w,C,T){let M;return null===b?M=this._itTail:(M=b._prev,this._remove(b)),null!==(b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(C,null))?(Object.is(b.item,w)||this._addIdentityChange(b,w),this._reinsertAfter(b,M,T)):null!==(b=null===this._linkedRecords?null:this._linkedRecords.get(C,T))?(Object.is(b.item,w)||this._addIdentityChange(b,w),this._moveAfter(b,M,T)):b=this._addAfter(new Gy(w,C),M,T),b}_verifyReinsertion(b,w,C,T){let M=null===this._unlinkedRecords?null:this._unlinkedRecords.get(C,null);return null!==M?b=this._reinsertAfter(M,b._prev,T):b.currentIndex!=T&&(b.currentIndex=T,this._addToMoves(b,T)),b}_truncate(b){for(;null!==b;){const w=b._next;this._addToRemovals(this._unlink(b)),b=w}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(b,w,C){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(b);const T=b._prevRemoved,M=b._nextRemoved;return null===T?this._removalsHead=M:T._nextRemoved=M,null===M?this._removalsTail=T:M._prevRemoved=T,this._insertAfter(b,w,C),this._addToMoves(b,C),b}_moveAfter(b,w,C){return this._unlink(b),this._insertAfter(b,w,C),this._addToMoves(b,C),b}_addAfter(b,w,C){return this._insertAfter(b,w,C),this._additionsTail=null===this._additionsTail?this._additionsHead=b:this._additionsTail._nextAdded=b,b}_insertAfter(b,w,C){const T=null===w?this._itHead:w._next;return b._next=T,b._prev=w,null===T?this._itTail=b:T._prev=b,null===w?this._itHead=b:w._next=b,null===this._linkedRecords&&(this._linkedRecords=new Wy),this._linkedRecords.put(b),b.currentIndex=C,b}_remove(b){return this._addToRemovals(this._unlink(b))}_unlink(b){null!==this._linkedRecords&&this._linkedRecords.remove(b);const w=b._prev,C=b._next;return null===w?this._itHead=C:w._next=C,null===C?this._itTail=w:C._prev=w,b}_addToMoves(b,w){return b.previousIndex===w||(this._movesTail=null===this._movesTail?this._movesHead=b:this._movesTail._nextMoved=b),b}_addToRemovals(b){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Wy),this._unlinkedRecords.put(b),b.currentIndex=null,b._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=b,b._prevRemoved=null):(b._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=b),b}_addIdentityChange(b,w){return b.item=w,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=b:this._identityChangesTail._nextIdentityChange=b,b}}class Gy{constructor(b,w){this.item=b,this.trackById=w,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class VE{constructor(){this._head=null,this._tail=null}add(b){null===this._head?(this._head=this._tail=b,b._nextDup=null,b._prevDup=null):(this._tail._nextDup=b,b._prevDup=this._tail,b._nextDup=null,this._tail=b)}get(b,w){let C;for(C=this._head;null!==C;C=C._nextDup)if((null===w||w<=C.currentIndex)&&Object.is(C.trackById,b))return C;return null}remove(b){const w=b._prevDup,C=b._nextDup;return null===w?this._head=C:w._nextDup=C,null===C?this._tail=w:C._prevDup=w,null===this._head}}class Wy{constructor(){this.map=new Map}put(b){const w=b.trackById;let C=this.map.get(w);C||(C=new VE,this.map.set(w,C)),C.add(b)}get(b,w){const T=this.map.get(b);return T?T.get(b,w):null}remove(b){const w=b.trackById;return this.map.get(w).remove(b)&&this.map.delete(w),b}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function hx(_,b,w){const C=_.previousIndex;if(null===C)return C;let T=0;return w&&C{if(w&&w.key===T)this._maybeAddToChanges(w,C),this._appendAfter=w,w=w._next;else{const M=this._getOrCreateRecordForKey(T,C);w=this._insertBeforeOrAppend(w,M)}}),w){w._prev&&(w._prev._next=null),this._removalsHead=w;for(let C=w;null!==C;C=C._nextRemoved)C===this._mapHead&&(this._mapHead=null),this._records.delete(C.key),C._nextRemoved=C._next,C.previousValue=C.currentValue,C.currentValue=null,C._prev=null,C._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(b,w){if(b){const C=b._prev;return w._next=b,w._prev=C,b._prev=w,C&&(C._next=w),b===this._mapHead&&(this._mapHead=w),this._appendAfter=b,b}return this._appendAfter?(this._appendAfter._next=w,w._prev=this._appendAfter):this._mapHead=w,this._appendAfter=w,null}_getOrCreateRecordForKey(b,w){if(this._records.has(b)){const T=this._records.get(b);this._maybeAddToChanges(T,w);const M=T._prev,R=T._next;return M&&(M._next=R),R&&(R._prev=M),T._next=null,T._prev=null,T}const C=new $y(b);return this._records.set(b,C),C.currentValue=w,this._addToAdditions(C),C}_reset(){if(this.isDirty){let b;for(this._previousMapHead=this._mapHead,b=this._previousMapHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._changesHead;null!==b;b=b._nextChanged)b.previousValue=b.currentValue;for(b=this._additionsHead;null!=b;b=b._nextAdded)b.previousValue=b.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(b,w){Object.is(w,b.currentValue)||(b.previousValue=b.currentValue,b.currentValue=w,this._addToChanges(b))}_addToAdditions(b){null===this._additionsHead?this._additionsHead=this._additionsTail=b:(this._additionsTail._nextAdded=b,this._additionsTail=b)}_addToChanges(b){null===this._changesHead?this._changesHead=this._changesTail=b:(this._changesTail._nextChanged=b,this._changesTail=b)}_forEach(b,w){b instanceof Map?b.forEach(w):Object.keys(b).forEach(C=>w(b[C],C))}}class $y{constructor(b){this.key=b,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Jy(){return new e_([new ux])}let e_=(()=>{class _{constructor(w){this.factories=w}static create(w,C){if(null!=C){const T=C.factories.slice();w=w.concat(T)}return new _(w)}static extend(w){return{provide:_,useFactory:C=>_.create(w,C||Jy()),deps:[[_,new qa,new ul]]}}find(w){const C=this.factories.find(T=>T.supports(w));if(null!=C)return C;throw new re(901,!1)}}return _.\u0275prov=Xt({token:_,providedIn:"root",factory:Jy}),_})();function mx(){return new Zy([new px])}let Zy=(()=>{class _{constructor(w){this.factories=w}static create(w,C){if(C){const T=C.factories.slice();w=w.concat(T)}return new _(w)}static extend(w){return{provide:_,useFactory:C=>_.create(w,C||mx()),deps:[[_,new qa,new ul]]}}find(w){const C=this.factories.find(T=>T.supports(w));if(C)return C;throw new re(901,!1)}}return _.\u0275prov=Xt({token:_,providedIn:"root",factory:mx}),_})();const NE=Vy(null,"core",[]);let _x=(()=>{class _{constructor(w){}}return _.\u0275fac=function(w){return new(w||_)(Tn(Qg))},_.\u0275mod=vr({type:_}),_.\u0275inj=En({}),_})();function FE(_){return"boolean"==typeof _?_:null!=_&&"false"!==_}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class z extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return z.\u0275fac=function(){let W;return function(x){return(W||(W=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(z)))(x||z)}}(),z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class z{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,x){this.data.set(E,x)}}return z.\u0275fac=function(E){return new(E||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class ReceivedTokens{}class OAuthEvent{constructor(W){this.type=W}}class OAuthSuccessEvent extends OAuthEvent{constructor(W,E=null){super(W),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(W,E=null){super(W),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(W,E,x=null){super(W),this.reason=E,this.params=x}}function b64DecodeUnicode(z){const W=z.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(W).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(z){return btoa(z).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(W){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},W&&Object.assign(this,W)}}class WebHttpUrlEncodingCodec{encodeKey(W){return encodeURIComponent(W)}encodeValue(W){return encodeURIComponent(W)}decodeKey(W){return decodeURIComponent(W)}decodeValue(W){return decodeURIComponent(W)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(W){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let x=E.inferHashAlgorithm(W.idTokenHeader),n=yield E.calcHash(W.accessToken,x),D=base64UrlEncode(n.substr(0,n.length/2)),H=W.idTokenClaims.at_hash.replace(/=/g,"");return D!==H&&(console.error("exptected at_hash: "+D),console.error("actual at_hash: "+H)),D===H})()}inferHashAlgorithm(W){let E=W.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class z{getHashFragmentParams(E){let x=E||window.location.hash;if(x=decodeURIComponent(x),0!==x.indexOf("#"))return{};const n=x.indexOf("?");return x=x.substr(n>-1?n+1:1),this.parseQueryString(x)}parseQueryString(E){const x={};let n,P,D,H,I,B,Y;if(null===E)return x;n=E.split("&");for(let G=0;G>6,P[H++]=128|63&I):I<55296||I>=57344?(P[H++]=224|I>>12,P[H++]=128|I>>6&63,P[H++]=128|63&I):(I=65536+((1023&I)<<10|1023&z.charCodeAt(++x)),P[H++]=240|I>>18,P[H++]=128|I>>12&63,P[H++]=128|I>>6&63,P[H++]=128|63&I);z=P}else{if("object"!==n)throw new Error(ERROR);if(null===z)throw new Error(ERROR);if(ARRAY_BUFFER&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!(Array.isArray(z)||ARRAY_BUFFER&&ArrayBuffer.isView(z)))throw new Error(ERROR)}z.length>64&&(z=new Sha256(W,!0).update(z).array());var B=[],Y=[];for(x=0;x<64;++x){var G=z[x]||0;B[x]=92^G,Y[x]=54^G}Sha256.call(this,W,E),this.update(Y),this.oKeyPad=B,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(z){if(!this.finalized){var W,E=typeof z;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===z)throw new Error(ERROR);if(ARRAY_BUFFER&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!(Array.isArray(z)||ARRAY_BUFFER&&ArrayBuffer.isView(z)))throw new Error(ERROR);W=!0}for(var x,P,n=0,D=z.length,H=this.blocks;n>2]|=z[n]<>2]|=x<>2]|=(192|x>>6)<>2]|=(128|63&x)<=57344?(H[P>>2]|=(224|x>>12)<>2]|=(128|x>>6&63)<>2]|=(128|63&x)<>2]|=(240|x>>18)<>2]|=(128|x>>12&63)<>2]|=(128|x>>6&63)<>2]|=(128|63&x)<=64?(this.block=H[16],this.start=P-64,this.hash(),this.hashed=!0):this.start=P}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var z=this.blocks,W=this.lastByteIndex;z[16]=this.block,z[W>>2]|=EXTRA[3&W],this.block=z[16],W>=56&&(this.hashed||this.hash(),z[0]=this.block,z[16]=z[1]=z[2]=z[3]=z[4]=z[5]=z[6]=z[7]=z[8]=z[9]=z[10]=z[11]=z[12]=z[13]=z[14]=z[15]=0),z[14]=this.hBytes<<3|this.bytes>>>29,z[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var B,te,se,re,_e,ye,z=this.h0,W=this.h1,E=this.h2,x=this.h3,n=this.h4,P=this.h5,D=this.h6,H=this.h7,I=this.blocks;for(B=16;B<64;++B)I[B]=I[B-16]+(((te=I[B-15])>>>7|te<<25)^(te>>>18|te<<14)^te>>>3)+I[B-7]+(((te=I[B-2])>>>17|te<<15)^(te>>>19|te<<13)^te>>>10)<<0;for(ye=W&E,B=0;B<64;B+=4)this.first?(this.is224?(se=300032,H=(te=I[0]-1413257819)-150054599<<0,x=te+24177077<<0):(se=704751109,H=(te=I[0]-210244248)-1521486534<<0,x=te+143694565<<0),this.first=!1):(H=x+(te=H+((n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7))+(n&P^~n&D)+K[B]+I[B])<<0,x=te+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((se=z&W)^z&E^ye))<<0),D=E+(te=D+((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&n^~H&P)+K[B+1]+I[B+1])<<0,E=te+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((re=x&z)^x&W^se))<<0,P=W+(te=P+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&H^~D&n)+K[B+2]+I[B+2])<<0,W=te+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((_e=E&x)^E&z^re))<<0,n=z+(te=n+((P>>>6|P<<26)^(P>>>11|P<<21)^(P>>>25|P<<7))+(P&D^~P&H)+K[B+3]+I[B+3])<<0,z=te+(((W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10))+((ye=W&E)^W&x^_e))<<0;this.h0=this.h0+z<<0,this.h1=this.h1+W<<0,this.h2=this.h2+E<<0,this.h3=this.h3+x<<0,this.h4=this.h4+n<<0,this.h5=this.h5+P<<0,this.h6=this.h6+D<<0,this.h7=this.h7+H<<0},Sha256.prototype.hex=function(){this.finalize();var z=this.h0,W=this.h1,E=this.h2,x=this.h3,n=this.h4,P=this.h5,D=this.h6,H=this.h7,I=HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[W>>28&15]+HEX_CHARS[W>>24&15]+HEX_CHARS[W>>20&15]+HEX_CHARS[W>>16&15]+HEX_CHARS[W>>12&15]+HEX_CHARS[W>>8&15]+HEX_CHARS[W>>4&15]+HEX_CHARS[15&W]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[P>>28&15]+HEX_CHARS[P>>24&15]+HEX_CHARS[P>>20&15]+HEX_CHARS[P>>16&15]+HEX_CHARS[P>>12&15]+HEX_CHARS[P>>8&15]+HEX_CHARS[P>>4&15]+HEX_CHARS[15&P]+HEX_CHARS[D>>28&15]+HEX_CHARS[D>>24&15]+HEX_CHARS[D>>20&15]+HEX_CHARS[D>>16&15]+HEX_CHARS[D>>12&15]+HEX_CHARS[D>>8&15]+HEX_CHARS[D>>4&15]+HEX_CHARS[15&D];return this.is224||(I+=HEX_CHARS[H>>28&15]+HEX_CHARS[H>>24&15]+HEX_CHARS[H>>20&15]+HEX_CHARS[H>>16&15]+HEX_CHARS[H>>12&15]+HEX_CHARS[H>>8&15]+HEX_CHARS[H>>4&15]+HEX_CHARS[15&H]),I},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var z=this.h0,W=this.h1,E=this.h2,x=this.h3,n=this.h4,P=this.h5,D=this.h6,H=this.h7,I=[z>>24&255,z>>16&255,z>>8&255,255&z,W>>24&255,W>>16&255,W>>8&255,255&W,E>>24&255,E>>16&255,E>>8&255,255&E,x>>24&255,x>>16&255,x>>8&255,255&x,n>>24&255,n>>16&255,n>>8&255,255&n,P>>24&255,P>>16&255,P>>8&255,255&P,D>>24&255,D>>16&255,D>>8&255,255&D];return this.is224||I.push(H>>24&255,H>>16&255,H>>8&255,255&H),I},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var z=new ArrayBuffer(this.is224?28:32),W=new DataView(z);return W.setUint32(0,this.h0),W.setUint32(4,this.h1),W.setUint32(8,this.h2),W.setUint32(12,this.h3),W.setUint32(16,this.h4),W.setUint32(20,this.h5),W.setUint32(24,this.h6),this.is224||W.setUint32(28,this.h7),z},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var z=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(z),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(z){if("string"!=typeof z)throw new TypeError("expected string");var W,E=z,x=new Uint8Array(E.length);for(W=0;W{class z{calcHash(E,x){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})()}toHashString2(E){let x="";for(let n of E)x+=String.fromCharCode(n);return x}toHashString(E){const x=new Uint8Array(E);let n="";for(let P of x)n+=String.fromCharCode(P);return n}}return z.\u0275fac=function(E){return new(E||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})(),OAuthService=(()=>{class z extends AuthConfig{constructor(E,x,n,P,D,H,I,B,Y,G){super(),this.ngZone=E,this.http=x,this.config=D,this.urlHelper=H,this.logger=I,this.crypto=B,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Y,D||(D={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),P&&(this.tokenValidationHandler=P),D&&this.configure(D);try{n?this.setStorage(n):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(ee){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",ee)}if(this.checkLocalStorageAccessable()){const ee=window?.navigator?.userAgent;(ee?.includes("MSIE ")||ee?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const E="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(E,E),localStorage.removeItem(E),0))}catch{return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},x,n=!0){let P=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(D=>{"token_received"===D.type?P=!0:"logout"===D.type&&(P=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>"token_expires"===D.type&&(null==x||"any"===x||D.info===x)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(D=>{P&&this.refreshInternal(E,n).catch(H=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,x){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,x):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(x=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(x=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const x=[],n=this.validateUrlForHttps(E),P=this.validateUrlAgainstIssuer(E);return n||x.push("https for all urls required. Also for urls received by discovery."),P||x.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),x}validateUrlForHttps(E){if(!E)return!0;const x=E.toLowerCase();return!(!1!==this.requireHttps&&(!x.match(/^http:\/\/localhost($|[:\/])/)&&!x.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||x.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,x){if(!E)throw new Error(`'${x}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${x}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),x=this.getAccessTokenStoredAt(),n=this.calcTimeout(x,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(n)).subscribe(P=>{this.ngZone.run(()=>{this.eventsSubject.next(P)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),x=this.getIdTokenStoredAt(),n=this.calcTimeout(x,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(n)).subscribe(P=>{this.ngZone.run(()=>{this.eventsSubject.next(P)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,x){const n=this.dateTimeService.now();return Math.max(0,(x-E)*this.timeoutFactor-(n-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((x,n)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(P=>{if(!this.validateDiscoveryDocument(P))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void n("discovery_document_validation_error");this.loginUrl=P.authorization_endpoint,this.logoutUrl=P.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=P.grant_types_supported,this.issuer=P.issuer,this.tokenEndpoint=P.token_endpoint,this.userinfoEndpoint=P.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=P.jwks_uri,this.sessionCheckIFrameUrl=P.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(P),this.revocationEndpoint=P.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(D=>{const I=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:P,jwks:D});this.eventsSubject.next(I),x(I)}).catch(D=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",D)),n(D)})},P=>{this.logger.error("error loading discovery document",P),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",P)),n(P)}):n("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,x)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(n=>{this.jwks=n,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(n)},n=>{this.logger.error("error loading jwks",n),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",n)),x(n)}):E(null)})}validateDiscoveryDocument(E){let x;return this.skipIssuerCheck||E.issuer===this.issuer?(x=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),x.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",x),!1):(x=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),x.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",x),!1):(x=this.validateUrlFromDiscoveryDocument(E.token_endpoint),x.length>0&&this.logger.error("error validating token_endpoint in discovery document",x),x=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),x.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",x),x=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),x.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",x),!1):(x=this.validateUrlFromDiscoveryDocument(E.jwks_uri),x.length>0?(this.logger.error("error validating jwks_uri in discovery document",x),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,x,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,x,n).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,x)=>{const n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:n,observe:"response",responseType:"text"}).subscribe(P=>{if(this.debug("userinfo received",JSON.stringify(P)),P.headers.get("content-type").startsWith("application/json")){let D=JSON.parse(P.body);const H=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!H.sub||D.sub!==H.sub))return void x("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");D=Object.assign({},H,D),this._storage.setItem("id_token_claims_obj",JSON.stringify(D)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:D})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(P.body))},P=>{this.logger.error("error loading user info",P),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",P)),x(P)})})}fetchTokenUsingPasswordFlow(E,x,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:x},n)}fetchTokenUsingGrant(E,x,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let P=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+D)}if(this.useHttpBasicAuth||(P=P.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(P=P.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const D of Object.getOwnPropertyNames(this.customQueryParams))P=P.set(D,this.customQueryParams[D]);for(const D of Object.keys(x))P=P.set(D,x[D]);return n=n.set("Content-Type","application/x-www-form-urlencoded"),new Promise((D,H)=>{this.http.post(this.tokenEndpoint,P,{headers:n}).subscribe(I=>{this.debug("tokenResponse",I),this.storeAccessTokenResponse(I.access_token,I.refresh_token,I.expires_in||this.fallbackAccessTokenExpirationTimeInSec,I.scope,this.extractRecognizedCustomParameters(I)),this.oidc&&I.id_token&&this.processIdToken(I.id_token,I.access_token).then(B=>{this.storeIdToken(B),D(I)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),D(I)},I=>{this.logger.error("Error performing ${grantType} flow",I),this.eventsSubject.next(new OAuthErrorEvent("token_error",I)),H(I)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,x)=>{let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),P=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);P=P.set("Authorization","Basic "+D)}if(this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const D of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(D,this.customQueryParams[D]);this.http.post(this.tokenEndpoint,n,{headers:P}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(D=>D.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(D.id_token,D.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(H=>this.storeIdToken(H)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(H=>D)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(D))).subscribe(D=>{this.debug("refresh tokenResponse",D),this.storeAccessTokenResponse(D.access_token,D.refresh_token,D.expires_in||this.fallbackAccessTokenExpirationTimeInSec,D.scope,this.extractRecognizedCustomParameters(D)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(D)},D=>{this.logger.error("Error refreshing token",D),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",D)),x(D)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const x=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:x,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(n=>this.debug("tryLogin during silent refresh failed",n))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},x=!0){const n=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const P=this.document.getElementById(this.silentRefreshIFrameName);P&&this.document.body.removeChild(P),this.silentRefreshSubject=n.sub;const D=this.document.createElement("iframe");D.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,x,E).then(G=>{D.setAttribute("src",G),this.silentRefreshShowIFrame||(D.style.display="none"),this.document.body.appendChild(D)});const I=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),B=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Y=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([I,B,Y]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(G=>{if(G instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===G.type||(G=new OAuthErrorEvent("silent_refresh_error",G)),this.eventsSubject.next(G),G;return"token_received"===G.type&&(G=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(G)),G})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(x=>new Promise((n,P)=>{let I,H=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(H=E.windowRef,H.location.href=x):H=window.open(x,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const B=ae=>{this.tryLogin({customHashFragment:ae,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),n(!0)},ue=>{G(),P(ue)})};H?I=window.setInterval(()=>{(!H||H.closed)&&(G(),P(new OAuthErrorEvent("popup_closed",{})))},500):P(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(I),window.removeEventListener("storage",te),window.removeEventListener("message",ee),null!==H&&H.close(),H=null},ee=ae=>{const ue=this.processMessageEventMessage(ae);ue&&null!==ue?(window.removeEventListener("storage",te),B(ue)):console.log("false event firing")},te=ae=>{"auth_hash"===ae.key&&(window.removeEventListener("message",ee),B(ae.newValue))};window.addEventListener("message",ee),window.addEventListener("storage",te)}))}calculatePopupFeatures(E){const x=E.height||470,n=E.width||500,P=window.screenLeft+(window.outerWidth-n)/2;return`location=no,toolbar=no,width=${n},height=${x},top=${window.screenTop+(window.outerHeight-x)/2},left=${P}`}processMessageEventMessage(E){let x="#";if(this.silentRefreshMessagePrefix&&(x+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const n=E.data;return n.startsWith(x)?"#"+n.substr(x.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const x=E.origin.toLowerCase(),n=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),n.startsWith(x)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",x,"expected",n,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const x=this.document.createElement("iframe");x.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),x.setAttribute("src",this.sessionCheckIFrameUrl),x.style.display="none",this.document.body.appendChild(x),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const x=this.getSessionState();x||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+x,this.issuer)}createLoginUrl(E="",x="",n="",P=!1,D={}){var H=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const I=H;let B;B=n||H.redirectUri;const Y=yield H.createAndSaveNonce();if(E=E?Y+H.config.nonceStateSeparator+encodeURIComponent(E):Y,!H.requestAccessToken&&!H.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");H.responseType=H.config.responseType?H.config.responseType:H.oidc&&H.requestAccessToken?"id_token token":H.oidc&&!H.requestAccessToken?"id_token":"token";const G=I.loginUrl.indexOf("?")>-1?"&":"?";let ee=I.scope;H.oidc&&!ee.match(/(^|\s)openid($|\s)/)&&(ee="openid "+ee);let te=I.loginUrl+G+"response_type="+encodeURIComponent(I.responseType)+"&client_id="+encodeURIComponent(I.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(B)+"&scope="+encodeURIComponent(ee);if(H.responseType.includes("code")&&!H.disablePKCE){const[ae,ue]=yield H.createChallangeVerifierPairForPKCE();H.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ue):H._storage.setItem("PKCE_verifier",ue),te+="&code_challenge="+ae,te+="&code_challenge_method=S256"}x&&(te+="&login_hint="+encodeURIComponent(x)),I.resource&&(te+="&resource="+encodeURIComponent(I.resource)),I.oidc&&(te+="&nonce="+encodeURIComponent(Y)),P&&(te+="&prompt=none");for(const ae of Object.keys(D))te+="&"+encodeURIComponent(ae)+"="+encodeURIComponent(D[ae]);if(H.customQueryParams)for(const ae of Object.getOwnPropertyNames(H.customQueryParams))te+="&"+ae+"="+encodeURIComponent(H.customQueryParams[ae]);return te})()}initImplicitFlowInternal(E="",x=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let n={},P=null;"string"==typeof x?P=x:"object"==typeof x&&(n=x),this.createLoginUrl(E,P,null,!1,n).then(this.config.openUri).catch(D=>{console.error("Error in initImplicitFlow",D),this.inImplicitFlow=!1})}initImplicitFlow(E="",x=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,x):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(n=>"discovery_document_loaded"===n.type)).subscribe(n=>this.initImplicitFlowInternal(E,x))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const x=this;if(E.onTokenReceived){const n={idClaims:x.getIdentityClaims(),idToken:x.getIdToken(),accessToken:x.getAccessToken(),state:x.state};E.onTokenReceived(n)}}storeAccessTokenResponse(E,x,n,P,D){if(this._storage.setItem("access_token",E),P&&!Array.isArray(P)?this._storage.setItem("granted_scopes",JSON.stringify(P.split(" "))):P&&Array.isArray(P)&&this._storage.setItem("granted_scopes",JSON.stringify(P)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),n){const H=1e3*n,B=this.dateTimeService.new().getTime()+H;this._storage.setItem("expires_at",""+B)}x&&this._storage.setItem("refresh_token",x),D&&D.forEach((H,I)=>{this._storage.setItem(I,H)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(x=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const n=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,P=x.getCodePartsFromUrl(n),D=P.code,H=P.state,I=P.session_state;if(!E.preventClearHashAfterLogin){const G=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,G)}let[B,Y]=x.parseState(H);if(x.state=Y,P.error){x.debug("error trying to login"),x.handleLoginError(E,P);const G=new OAuthErrorEvent("code_error",{},P);return x.eventsSubject.next(G),Promise.reject(G)}if(!E.disableNonceCheck){if(!B)return x.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!x.validateNonce(B)){const ee=new OAuthErrorEvent("invalid_nonce_in_state",null);return x.eventsSubject.next(ee),Promise.reject(ee)}return x.storeSessionState(I),D&&(yield x.getTokenFromCode(D,E),x.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,x){let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",x.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let P;P=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),P?n=n.set("code_verifier",P):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(n,x)}fetchAndProcessToken(E,x){x=x||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const P=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+P)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((P,D)=>{if(this.customQueryParams)for(let H of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(H,this.customQueryParams[H]);this.http.post(this.tokenEndpoint,E,{headers:n}).subscribe(H=>{this.debug("refresh tokenResponse",H),this.storeAccessTokenResponse(H.access_token,H.refresh_token,H.expires_in||this.fallbackAccessTokenExpirationTimeInSec,H.scope,this.extractRecognizedCustomParameters(H)),this.oidc&&H.id_token?this.processIdToken(H.id_token,H.access_token,x.disableNonceCheck).then(I=>{this.storeIdToken(I),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),P(H)}).catch(I=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",I)),console.error("Error validating tokens"),console.error(I),D(I)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),P(H))},H=>{console.error("Error getting token",H),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",H)),D(H)})})}tryLoginImplicitFlow(E=null){let x;x=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",x);const n=x.state;let[P,D]=this.parseState(n);if(this.state=D,x.error){this.debug("error trying to login"),this.handleLoginError(E,x);const G=new OAuthErrorEvent("token_error",{},x);return this.eventsSubject.next(G),Promise.reject(G)}const H=x.access_token,I=x.id_token,B=x.session_state,Y=x.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!H||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!n||this.oidc&&!I)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!B&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(P)){const ee=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(ee),Promise.reject(ee)}return this.requestAccessToken&&this.storeAccessTokenResponse(H,null,x.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Y),this.oidc?this.processIdToken(I,H,E.disableNonceCheck).then(G=>E.validationHandler?E.validationHandler({accessToken:H,idClaims:G.idTokenClaims,idToken:G.idToken,state:n}).then(ee=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(B),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(G=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",G)),this.logger.error("Error validating tokens"),this.logger.error(G),Promise.reject(G))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let x=E,n="";if(E){const P=E.indexOf(this.config.nonceStateSeparator);P>-1&&(x=E.substr(0,P),n=E.substr(P+this.config.nonceStateSeparator.length))}return[x,n]}validateNonce(E){let x;return x=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),x===E||(console.error("Validating access_token failed, wrong state/nonce.",x,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,x){E.onLoginError&&E.onLoginError(x),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,x,n=!1){const P=E.split("."),H=b64DecodeUnicode(this.padBase64(P[0])),I=JSON.parse(H),Y=b64DecodeUnicode(this.padBase64(P[1])),G=JSON.parse(Y);let ee;if(ee=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(_e=>_e!==this.clientId)){const _e="Wrong audience: "+G.aud.join(",");return this.logger.warn(_e),Promise.reject(_e)}}else if(G.aud!==this.clientId){const _e="Wrong audience: "+G.aud;return this.logger.warn(_e),Promise.reject(_e)}if(!G.sub){const _e="No sub claim in id_token";return this.logger.warn(_e),Promise.reject(_e)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const _e=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(_e),Promise.reject(_e)}if(!G.iat){const _e="No iat claim in id_token";return this.logger.warn(_e),Promise.reject(_e)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const _e="Wrong issuer: "+G.iss;return this.logger.warn(_e),Promise.reject(_e)}if(!n&&G.nonce!==ee){const _e="Wrong nonce: "+G.nonce;return this.logger.warn(_e),Promise.reject(_e)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!G.at_hash){const _e="An at_hash is needed!";return this.logger.warn(_e),Promise.reject(_e)}const te=this.dateTimeService.now(),ae=1e3*G.iat,ue=1e3*G.exp,se=this.getClockSkewInMsec();if(ae-se>=te||ue+se<=te){const _e="Token has expired";return console.error(_e),console.error({now:te,issuedAtMSec:ae,expiresAtMSec:ue}),Promise.reject(_e)}const re={accessToken:x,idToken:E,jwks:this.jwks,idTokenClaims:G,idTokenHeader:I,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(re).then(_e=>({idToken:E,idTokenClaims:G,idTokenClaimsJson:Y,idTokenHeader:I,idTokenHeaderJson:H,idTokenExpiresAt:ue})):this.checkAtHash(re).then(_e=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!_e){const ye="Wrong at_hash";return this.logger.warn(ye),Promise.reject(ye)}return this.checkSignature(re).then(ye=>{const Je={idToken:E,idTokenClaims:G,idTokenClaimsJson:Y,idTokenHeader:I,idTokenHeaderJson:H,idTokenExpiresAt:ue};return this.disableAtHashCheck?Je:this.checkAtHash(re).then(Ze=>{if(this.requestAccessToken&&!Ze){const ke="Wrong at_hash";return this.logger.warn(ke),Promise.reject(ke)}return Je})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),x=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},x=""){let n=!1;"boolean"==typeof E&&(n=E,E={});const P=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(H=>this._storage.removeItem(H)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||n||!P&&!this.postLogoutRedirectUri)return;let D;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)D=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(P)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let H=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});P&&(H=H.set("id_token_hint",P));const I=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";I&&(H=H.set("post_logout_redirect_uri",I),x&&(H=H.set("state",x)));for(let B in E)H=H.set(B,E[B]);D=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+H.toString()}this.config.openUri(D)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(x){return E.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",x):E._storage.setItem("nonce",x),x})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const x=this.document.getElementById(this.sessionCheckIFrameName);x&&x.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let n=45,P="";const D=typeof self>"u"?null:self.crypto||self.msCrypto;if(D){let H=new Uint8Array(n);D.getRandomValues(H),H.map||(H.map=Array.prototype.map),H=H.map(I=>x.charCodeAt(I%x.length)),P=String.fromCharCode.apply(null,H)}else for(;0"discovery_document_loaded"===n.type)).subscribe(n=>this.initCodeFlowInternal(E,x))}initCodeFlowInternal(E="",x={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let n={},P=null;"string"==typeof x?P=x:"object"==typeof x&&(n=x),this.createLoginUrl(E,P,null,!1,n).then(this.config.openUri).catch(D=>{console.error("Error in initAuthorizationCodeFlow"),console.error(D)})}createChallangeVerifierPairForPKCE(){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!E.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const x=yield E.createNonce();return[base64UrlEncode(yield E.crypto.calcHash(x,"sha-256")),x]})()}extractRecognizedCustomParameters(E){let x=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(n=>{E[n]&&x.set(n,JSON.stringify(E[n]))}),x}revokeTokenAndLogout(E={},x=!1){let n=this.revocationEndpoint,P=this.getAccessToken(),D=this.getRefreshToken();if(!P)return;let H=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),I=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const B=btoa(`${this.clientId}:${this.dummyClientSecret}`);I=I.set("Authorization","Basic "+B)}if(this.useHttpBasicAuth||(H=H.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(H=H.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const B of Object.getOwnPropertyNames(this.customQueryParams))H=H.set(B,this.customQueryParams[B]);return new Promise((B,Y)=>{let G,ee;if(P){let te=H.set("token",P).set("token_type_hint","access_token");G=this.http.post(n,te,{headers:I})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(D){let te=H.set("token",D).set("token_type_hint","refresh_token");ee=this.http.post(n,te,{headers:I})}else ee=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);x&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(te=>0===te.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(te))),ee=ee.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(te=>0===te.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(te)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([G,ee]).subscribe(te=>{this.logOut(E),B(te),this.logger.info("Token successfully revoked")},te=>{this.logger.error("Error revoking token",te),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",te)),Y(te)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return z.\u0275fac=function(E){return new(E||z)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(W){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(W)}}let DefaultOAuthInterceptor=(()=>{class z{constructor(E,x,n){this.oAuthService=E,this.errorHandler=x,this.moduleConfig=n}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(x=>E.toLowerCase().startsWith(x.toLowerCase()))}intercept(E,x){const n=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(n)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>!!D)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>"token_received"===D.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(D=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(D=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(D=>{if(D){const I=E.headers.set("Authorization","Bearer "+D);E=E.clone({headers:I})}return x.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(H=>this.errorHandler.handleError(H)))})):x.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(D=>this.errorHandler.handleError(D))):x.handle(E)}}return z.\u0275fac=function(E){return new(E||z)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class NullValidationHandler{validateSignature(W){return Promise.resolve(null)}validateAtHash(W){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class z{static forRoot(E=null,x=NullValidationHandler){return{ngModule:z,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:x},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return z.\u0275fac=function(E){return new(E||z)},z.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:z}),z.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),z})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(z,W,E)=>{"use strict";function x(P,D,H,I,B,Y,G){try{var ee=P[Y](G),te=ee.value}catch(ae){return void H(ae)}ee.done?D(te):Promise.resolve(te).then(I,B)}function n(P){return function(){var D=this,H=arguments;return new Promise(function(I,B){var Y=P.apply(D,H);function G(te){x(Y,I,B,G,ee,"next",te)}function ee(te){x(Y,I,B,G,ee,"throw",te)}G(void 0)})}}E.d(W,{Z:()=>n})},4147:z=>{"use strict";z.exports={i8:"10.5.0"}}},z=>{z(z.s=887)}]); \ No newline at end of file diff --git a/dist/apps/user-profile/index.html b/dist/apps/user-profile/index.html index 4025df8a3..a624ac8b7 100644 --- a/dist/apps/user-profile/index.html +++ b/dist/apps/user-profile/index.html @@ -13,5 +13,5 @@
- + diff --git a/dist/apps/user-profile/main.05b408dd82998862.js b/dist/apps/user-profile/main.05b408dd82998862.js new file mode 100644 index 000000000..055e128e8 --- /dev/null +++ b/dist/apps/user-profile/main.05b408dd82998862.js @@ -0,0 +1 @@ +(self.webpackChunkuser_profile=self.webpackChunkuser_profile||[]).push([[179],{5882:(Y,G,E)=>{"use strict";var T=E(6895),n=E(4650);class H extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class D extends H{static makeCurrent(){(0,T.HT)(new D)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function O(){return L=L||document.querySelector("base"),L?L.getAttribute("href"):null}();return null==e?null:function U(i){B=B||document.createElement("a"),B.setAttribute("href",i);const a=B.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){L=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,T.Mx)(document.cookie,a)}}let B,L=null;const W=new n.OlP("TRANSITION_ID"),te=[{provide:n.ip1,useFactory:function ee(i,a,e){return()=>{e.get(n.CZH).donePromise.then(()=>{const t=(0,T.q)(),r=a.querySelectorAll(`style[ng-transition="${i}"]`);for(let d=0;d{class i{build(){return new XMLHttpRequest}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const oe=new n.OlP("EventManagerPlugins");let re=(()=>{class i{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let d=0;d{class i{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),t.add(r))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),xe=(()=>{class i extends we{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(d=>{const u=this._doc.createElement("style");u.textContent=d,r.push(t.appendChild(u))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Xe),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Xe))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function Xe(i){(0,T.q)().remove(i)}const et={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ke=/%COMP%/g;function me(i,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return i;!1===i(a)&&(a.preventDefault(),a.returnValue=!1)}}let Me=(()=>{class i{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new $e(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case n.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new cn(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case n.ifc.ShadowDom:return new tt(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=me(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(re),n.LFG(xe),n.LFG(n.AFp))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class $e{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(et[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){(Ft(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(Ft(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,r){if(r){e=r+":"+e;const d=et[r];d?a.setAttributeNS(d,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const r=et[t];r?a.removeAttributeNS(r,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,r){r&(n.JOm.DashCase|n.JOm.Important)?a.style.setProperty(e,t,r&n.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&n.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,_e(t)):this.eventManager.addEventListener(a,e,_e(t))}}function Ft(i){return"TEMPLATE"===i.tagName&&void 0!==i.content}class cn extends $e{constructor(a,e,t,r){super(a),this.component=t;const d=me(r+"-"+t.id,t.styles,[]);e.addStyles(d),this.contentAttr=function ze(i){return"_ngcontent-%COMP%".replace(ke,i)}(r+"-"+t.id),this.hostAttr=function Fe(i){return"_nghost-%COMP%".replace(ke,i)}(r+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class tt extends $e{constructor(a,e,t,r){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const d=me(r.id,r.styles,[]);for(let u=0;u{class i extends be{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Oi=["alt","control","meta","shift"],dn={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Gi={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Tn={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey};let Ii=(()=>{class i extends be{constructor(e){super(e)}supports(e){return null!=i.parseEventName(e)}addEventListener(e,t,r){const d=i.parseEventName(t),u=i.eventCallback(d.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,d.domEventName,u))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const d=i._normalizeKey(t.pop());let u="";if(Oi.forEach(o=>{const s=t.indexOf(o);s>-1&&(t.splice(s,1),u+=o+".")}),u+=d,0!=t.length||0===d.length)return null;const c={};return c.domEventName=r,c.fullKey=u,c}static getEventFullKey(e){let t="",r=function hn(i){let a=i.key;if(null==a){if(a=i.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===i.location&&Gi.hasOwnProperty(a)&&(a=Gi[a]))}return dn[a]||a}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Oi.forEach(d=>{d!=r&&(0,Tn[d])(e)&&(t+=d+".")}),t+=r,t}static eventCallback(e,t,r){return d=>{i.getEventFullKey(d)===e&&r.runGuarded(()=>t(d))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const ye=(0,n.eFA)(n._c5,"browser",[{provide:n.Lbi,useValue:T.bD},{provide:n.g9A,useValue:function Cr(){D.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function pe(){return(0,n.RDi)(document),document},deps:[]}]),Ye=new n.OlP(""),lt=[{provide:n.rWj,useClass:class ae{addToWindow(a){n.dqk.getAngularTestability=(t,r=!0)=>{const d=a.findTestabilityInTree(t,r);if(null==d)throw new Error("Could not find testability for element.");return d},n.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),n.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),n.dqk.frameworkStabilizers||(n.dqk.frameworkStabilizers=[]),n.dqk.frameworkStabilizers.push(t=>{const r=n.dqk.getAllAngularTestabilities();let d=r.length,u=!1;const c=function(o){u=u||o,d--,0==d&&t(u)};r.forEach(function(o){o.whenStable(c)})})}findTestabilityInTree(a,e,t){return null==e?null:a.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null)}},deps:[]},{provide:n.lri,useClass:n.dDg,deps:[n.R0b,n.eoX,n.rWj]},{provide:n.dDg,useClass:n.dDg,deps:[n.R0b,n.eoX,n.rWj]}],ct=[{provide:n.zSh,useValue:"root"},{provide:n.qLn,useFactory:function zi(){return new n.qLn},deps:[]},{provide:oe,useClass:ai,multi:!0,deps:[T.K0,n.R0b,n.Lbi]},{provide:oe,useClass:Ii,multi:!0,deps:[T.K0]},{provide:Me,useClass:Me,deps:[re,xe,n.AFp]},{provide:n.FYo,useExisting:Me},{provide:we,useExisting:xe},{provide:xe,useClass:xe,deps:[T.K0]},{provide:re,useClass:re,deps:[oe,n.R0b]},{provide:T.JF,useClass:ue,deps:[]},[]];let Zt=(()=>{class i{constructor(e){}static withServerTransition(e){return{ngModule:i,providers:[{provide:n.AFp,useValue:e.appId},{provide:W,useExisting:n.AFp},te]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ye,12))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[...ct,...lt],imports:[T.ez,n.hGG]}),i})(),ce=(()=>{class i{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new e:function Oe(){return new ce((0,n.LFG)(T.K0))}(),t},providedIn:"root"}),i})();typeof window<"u"&&window;let ei=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new(e||i):n.LFG(ft),t},providedIn:"root"}),i})(),ft=(()=>{class i extends ei{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case n.q3G.NONE:return t;case n.q3G.HTML:return(0,n.qzn)(t,"HTML")?(0,n.z3N)(t):(0,n.EiD)(this._doc,String(t)).toString();case n.q3G.STYLE:return(0,n.qzn)(t,"Style")?(0,n.z3N)(t):t;case n.q3G.SCRIPT:if((0,n.qzn)(t,"Script"))return(0,n.z3N)(t);throw new Error("unsafe value used in a script context");case n.q3G.URL:return(0,n.qzn)(t,"URL")?(0,n.z3N)(t):(0,n.mCW)(String(t));case n.q3G.RESOURCE_URL:if((0,n.qzn)(t,"ResourceURL"))return(0,n.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,n.JVY)(e)}bypassSecurityTrustStyle(e){return(0,n.L6k)(e)}bypassSecurityTrustScript(e){return(0,n.eBb)(e)}bypassSecurityTrustUrl(e){return(0,n.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,n.pB0)(e)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new e:function nt(i){return new ft(i.get(T.K0))}(n.LFG(n.zs3)),t},providedIn:"root"}),i})();var Ee=E(9646),yn=E(9751),wn=E(576);function $t(i){return!!i&&(i instanceof yn.y||(0,wn.m)(i.lift)&&(0,wn.m)(i.subscribe))}var en=E(4742),oi=E(8421),_n=E(3269),at=E(5403),$i=E(3268),er=E(1810);function ma(...i){const a=(0,_n.jO)(i),{args:e,keys:t}=(0,en.D)(i),r=new yn.y(d=>{const{length:u}=e;if(!u)return void d.complete();const c=new Array(u);let o=u,s=u;for(let l=0;l{h||(h=!0,s--),c[l]=p},()=>o--,void 0,()=>{(!o||!h)&&(s||d.next(t?(0,er.n)(t,c):c),d.complete())}))}});return a?r.pipe((0,$i.Z)(a)):r}var tr=E(7272);function Rn(i){return new yn.y(a=>{(0,oi.Xf)(i()).subscribe(a)})}var ht=E(5698),Le=E(7579),Zi=E(6063);class Kr extends Le.x{constructor(a=1/0,e=1/0,t=Zi.l){super(),this._bufferSize=a,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,e)}next(a){const{isStopped:e,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:d,_windowTime:u}=this;e||(t.push(a),!r&&t.push(d.now()+u)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(a),{_infiniteTimeWindow:t,_buffer:r}=this,d=r.slice();for(let u=0;unew Kr(t,a,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}var Mt=E(4004),Fr=E(4351),An=E(3900);class ea{}let ga=(()=>{class i extends ea{getTranslation(e){return(0,Ee.of)({})}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class _a{}let xr=(()=>{class i{handle(e){return e.key}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function Yn(i,a){if(i===a)return!0;if(null===i||null===a)return!1;if(i!=i&&a!=a)return!0;let r,d,u,e=typeof i;if(e==typeof a&&"object"==e){if(!Array.isArray(i)){if(Array.isArray(a))return!1;for(d in u=Object.create(null),i){if(!Yn(i[d],a[d]))return!1;u[d]=!0}for(d in a)if(!(d in u)&&typeof a[d]<"u")return!1;return!0}if(!Array.isArray(a))return!1;if((r=i.length)==a.length){for(d=0;d{fi(a[t])?t in i?e[t]=Ji(i[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class cr{}let na=(()=>{class i extends cr{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!ta(e)||!ta(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(r,d)=>{let u=this.getValue(t,d);return ta(u)?u:r}):e}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class Sr{}let Qi=(()=>{class i extends Sr{compile(e,t){return e}compileTranslations(e,t){return e}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class ba{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new n.vpe,this.onLangChange=new n.vpe,this.onDefaultLangChange=new n.vpe}}const ho=new n.OlP("USE_STORE"),bs=new n.OlP("USE_DEFAULT_LANG"),Aa=new n.OlP("DEFAULT_LANGUAGE"),dr=new n.OlP("USE_EXTEND");let sn=(()=>{class i{constructor(e,t,r,d,u,c=!0,o=!1,s=!1,l){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=d,this.missingTranslationHandler=u,this.useDefaultLang=c,this.isolate=o,this.extend=s,this.pending=!1,this._onTranslationChange=new n.vpe,this._onLangChange=new n.vpe,this._onDefaultLangChange=new n.vpe,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,ht.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Ee.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,ht.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Ee.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(bn(1),(0,ht.q)(1));return this.loadingTranslations=t.pipe((0,Mt.U)(r=>this.compiler.compileTranslations(r,e)),bn(1),(0,ht.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Ji(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let d;if(t instanceof Array){let u={},c=!1;for(let o of t)u[o]=this.getParsedResult(e,o,r),$t(u[o])&&(c=!0);return c?ma(t.map(s=>$t(u[s])?u[s]:(0,Ee.of)(u[s]))).pipe((0,Mt.U)(s=>{let l={};return s.forEach((h,p)=>{l[t[p]]=h}),l})):u}if(e&&(d=this.parser.interpolate(this.parser.getValue(e,t),r)),typeof d>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(d=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),typeof d>"u"){let u={key:t,translateService:this};typeof r<"u"&&(u.interpolateParams=r),d=this.missingTranslationHandler.handle(u)}return typeof d<"u"?d:t}get(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Fr.b)(r=>$t(r=this.getParsedResult(r,e,t))?r:(0,Ee.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return $t(r)?r:(0,Ee.of)(r)}}getStreamOnTranslationChange(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');return(0,tr.z)(Rn(()=>this.get(e,t)),this.onTranslationChange.pipe((0,An.w)(r=>{const d=this.getParsedResult(r.translations,e,t);return"function"==typeof d.subscribe?d:(0,Ee.of)(d)})))}stream(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');return(0,tr.z)(Rn(()=>this.get(e,t)),this.onLangChange.pipe((0,An.w)(r=>{const d=this.getParsedResult(r.translations,e,t);return $t(d)?d:(0,Ee.of)(d)})))}instant(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if($t(r)){if(e instanceof Array){let d={};return e.forEach((u,c)=>{d[e[c]]=e[c]}),d}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(ba),n.LFG(ea),n.LFG(Sr),n.LFG(cr),n.LFG(_a),n.LFG(bs),n.LFG(ho),n.LFG(dr),n.LFG(Aa))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Ke=(()=>{class i{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let d=u=>{this.value=void 0!==u?u:e,this.lastKey=e,this._ref.markForCheck()};if(r){let u=this.translate.getParsedResult(r,e,t);$t(u.subscribe)?u.subscribe(d):d(u)}this.translate.get(e,t).subscribe(d)}transform(e,...t){if(!e||!e.length)return e;if(Yn(e,this.lastKey)&&Yn(t,this.lastParams))return this.value;let r;if(ta(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let d=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(d)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(d=>{this.lastKey&&d.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,d.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(d=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,d.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(sn,16),n.Y36(n.sBO,16))},i.\u0275pipe=n.Yjl({name:"translate",type:i,pure:!1}),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),po=(()=>{class i{static forRoot(e={}){return{ngModule:i,providers:[e.loader||{provide:ea,useClass:ga},e.compiler||{provide:Sr,useClass:Qi},e.parser||{provide:cr,useClass:na},e.missingTranslationHandler||{provide:_a,useClass:xr},ba,{provide:ho,useValue:e.isolate},{provide:bs,useValue:e.useDefaultLang},{provide:dr,useValue:e.extend},{provide:Aa,useValue:e.defaultLanguage},sn]}}static forChild(e={}){return{ngModule:i,providers:[e.loader||{provide:ea,useClass:ga},e.compiler||{provide:Sr,useClass:Qi},e.parser||{provide:cr,useClass:na},e.missingTranslationHandler||{provide:_a,useClass:xr},{provide:ho,useValue:e.isolate},{provide:bs,useValue:e.useDefaultLang},{provide:dr,useValue:e.extend},{provide:Aa,useValue:e.defaultLanguage},sn]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),ac=(()=>{class i extends sn{instant(e,t){return String(super.instant(e,t))}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var C=E(529);class Wn{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const Vn=new n.OlP("basePath");class It{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let jn=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}convertAttributeToNonunique(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}convertAttributeToUnique(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}createAttributeDefinition(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteAttributeDefinition(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteAttributeDefinitions(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attributes[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllAttributeDefinitions(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAttribute(e,t,r,d,u,c,o,s,l,h,p,m=!1,g="body",f=!1,w){let N=new C.LE({encoder:this.encoder});null!=e&&(N=this.addToHttpParams(N,e,"attributeName")),null!=t&&(N=this.addToHttpParams(N,t,"attributeId")),null!=r&&(N=this.addToHttpParams(N,r,"facility")),null!=d&&(N=this.addToHttpParams(N,d,"user")),null!=u&&(N=this.addToHttpParams(N,u,"vo")),null!=c&&(N=this.addToHttpParams(N,c,"resource")),null!=o&&(N=this.addToHttpParams(N,o,"member")),null!=s&&(N=this.addToHttpParams(N,s,"group")),null!=l&&(N=this.addToHttpParams(N,l,"host")),null!=h&&(N=this.addToHttpParams(N,h,"userExtSource")),null!=p&&(N=this.addToHttpParams(N,p,"key"));let Pe,se=this.defaultHeaders;Pe=this.configuration.lookupCredential("BasicAuth"),Pe&&(se=se.set("Authorization","Basic "+Pe)),Pe=this.configuration.lookupCredential("BearerAuth"),Pe&&(se=se.set("Authorization","Bearer "+Pe));let ot=w&&w.httpHeaderAccept;void 0===ot&&(ot=this.configuration.selectHeaderAccept(["application/json"])),void 0!==ot&&(se=se.set("Accept",ot));let Mi=w&&w.context;void 0===Mi&&(Mi=new C.qT);let Pi="json";ot&&(Pi=ot.startsWith("text")?"text":this.configuration.isJsonMime(ot)?"json":"blob");let Fi=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(m){let or=new URL(Fi),Xu=or.pathname.split("/");Xu[1]="non",or.pathname=Xu.join("/"),Fi=or.toString()}return this.httpClient.get(Fi,{context:Mi,params:N,responseType:Pi,withCredentials:this.configuration.withCredentials,headers:se,observe:g,reportProgress:f})}getAttributeDefinitionById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeDefinitionByName(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeDefinitionsByNamespace(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeModulesDependenciesForAttributeGraphText(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"format")),null!=t&&(o=this.addToHttpParams(o,t,"attrName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAttributeModulesDependenciesGraphText(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributePolicyCollections(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeRights(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeRules(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributesDefinitionWithRights(e,t,r,d,u,c,o,s,l=!1,h="body",p=!1,m){let g=new C.LE({encoder:this.encoder});null!=e&&(g=this.addToHttpParams(g,e,"member")),null!=t&&(g=this.addToHttpParams(g,t,"user")),null!=r&&(g=this.addToHttpParams(g,r,"vo")),null!=d&&(g=this.addToHttpParams(g,d,"group")),null!=u&&(g=this.addToHttpParams(g,u,"resource")),null!=c&&(g=this.addToHttpParams(g,c,"facility")),null!=o&&(g=this.addToHttpParams(g,o,"host")),null!=s&&(g=this.addToHttpParams(g,s,"userExtSource"));let w,f=this.defaultHeaders;w=this.configuration.lookupCredential("BasicAuth"),w&&(f=f.set("Authorization","Basic "+w)),w=this.configuration.lookupCredential("BearerAuth"),w&&(f=f.set("Authorization","Bearer "+w));let N=m&&m.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let se=m&&m.context;void 0===se&&(se=new C.qT);let Pe="json";N&&(Pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob");let ot=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(l){let Mi=new URL(ot),Pi=Mi.pathname.split("/");Pi[1]="non",Mi.pathname=Pi.join("/"),ot=Mi.toString()}return this.httpClient.get(ot,{context:se,params:g,responseType:Pe,withCredentials:this.configuration.withCredentials,headers:f,observe:h,reportProgress:p})}getEntitylessAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"key")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEntitylessAttributesByKey(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getEntitylessAttributesByName(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getEntitylessAttributesWithKeys(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attrName")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"keys[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEntitylessKeys(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFacilityAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getFacilityAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getFacilityAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFacilityAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getFacilityResourceUserMemberAttributes(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),null!=r&&(l=this.addToHttpParams(l,r,"user")),null!=d&&(l=this.addToHttpParams(l,d,"member"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getFacilityUserAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupResourceAttributeById(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attributeId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getGroupResourceAttributeByName(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attributeName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getGroupResourceAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getHostAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getHostAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getHostAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getHostAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getIdpAttributeDefinitions(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getLogins(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberAndUserAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"workWithUserAttributes"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberAndUserAttributesByNames(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"attrNames[]")}),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberGroupAndUserAttributesByNames(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getMemberGroupAttributeById(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"attributeId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberGroupAttributeByName(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"attributeName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberGroupAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberGroupAttributesByNames(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attrNames[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getMemberResourceAttributeById(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attributeId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberResourceAttributeByName(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attributeName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberResourceAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesDefinition(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesFacility(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesFacilityService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesFacilityServices(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")}),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesGroupResourceService(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"group"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getRequiredAttributesHostService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"host"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"workWithUserAttributes"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesMemberGroup(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"service")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"group")),null!=d&&(h=this.addToHttpParams(h,d,"member")),null!=u&&(h=this.addToHttpParams(h,u,"workWithUserAttributes"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.get(N,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}getRequiredAttributesMemberGroupService(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service")),null!=t&&(l=this.addToHttpParams(l,t,"group")),null!=r&&(l=this.addToHttpParams(l,r,"member")),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getRequiredAttributesMemberResource(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),null!=r&&(l=this.addToHttpParams(l,r,"member")),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getRequiredAttributesResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesResourceService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesResourceServices(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")}),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesUserFacility(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesVoService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourceAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceGroupAndGroupAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==r)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"workWithGroupAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==d)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithGroupAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getResourceGroupAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceGroupMemberAttributesByNames(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource")),null!=t&&(l=this.addToHttpParams(l,t,"group")),null!=r&&(l=this.addToHttpParams(l,r,"member")),d&&d.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")});let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getUserAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSourceAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSourceAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserFacilityAttributeById(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility")),null!=r&&(s=this.addToHttpParams(s,r,"attributeId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getUserFacilityAttributeByName(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility")),null!=r&&(s=this.addToHttpParams(s,r,"attributeName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getUserFacilityAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getVoAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getVoAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getVoAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeAttributesForFacilityResourceGroupUserMember(e,t,r,d,u,c,o=!1,s="body",l=!1,h){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let p=new C.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"facility")),null!=t&&(p=this.addToHttpParams(p,t,"resource")),null!=r&&(p=this.addToHttpParams(p,r,"group")),null!=d&&(p=this.addToHttpParams(p,d,"user")),null!=u&&(p=this.addToHttpParams(p,u,"member")),c&&c.forEach(Pe=>{p=this.addToHttpParams(p,Pe,"attributes[]")});let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=h&&h.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=h&&h.context;void 0===w&&(w=new C.qT);let N="json";f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let se=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(o){let Pe=new URL(se),ot=Pe.pathname.split("/");ot[1]="non",Pe.pathname=ot.join("/"),se=Pe.toString()}return this.httpClient.post(se,null,{context:w,params:p,responseType:N,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:l})}removeAttributesForFacilityResourceUserMember(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"user")),null!=d&&(h=this.addToHttpParams(h,d,"member")),u&&u.forEach(se=>{h=this.addToHttpParams(h,se,"attributes[]")});let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}removeEntitylessAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"key")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeFacilityAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeFacilityAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupResourceAttribute(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attribute"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeGroupResourceAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attributes[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==d)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attributes[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithGroupAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}removeHostAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeHostAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeMemberAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeMemberAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeMemberAttributesWorkWithUserAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"attributes[]")}),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeMemberGroupAttribute(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"attribute"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeMemberGroupAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attributes[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attributes[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}removeMemberResourceAttribute(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attribute"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeMemberResourceAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attributes[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeResourceAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeResourceAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUesAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserExtSourceAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserFacilityAttribute(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility")),null!=r&&(s=this.addToHttpParams(s,r,"attribute"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeUserFacilityAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attributes[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeVoAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeVoAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}setAttributeActionCriticality(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==r)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeDefinition")),null!=t&&(s=this.addToHttpParams(s,t,"action")),null!=r&&(s=this.addToHttpParams(s,r,"critical"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}setAttributePolicyCollections(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setAttributeRights(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setEntitylessAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityResourceGroupUserMemberAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityResourceUserMemberAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupResourceAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupResourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setHostAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setHostAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupWithUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAndUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberWithUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceGroupAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceGroupWithGroupAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserExtSourceAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserExtSourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserFacilityAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserFacilityAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setVoAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setVoAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateAttributeDefinition(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),As=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAllPolicies(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllRolesManagementRules(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAuthzAdminGroups(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"role")),null!=t&&(s=this.addToHttpParams(s,t,"complementaryObjectId")),null!=r&&(s=this.addToHttpParams(s,r,"complementaryObjectName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getAuthzRichAdmins(e,t,r,d,u,c,o=!1,s="body",l=!1,h){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==d)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let p=new C.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"role")),null!=t&&(p=this.addToHttpParams(p,t,"complementaryObjectId")),null!=r&&(p=this.addToHttpParams(p,r,"complementaryObjectName")),d&&d.forEach(Pe=>{p=this.addToHttpParams(p,Pe,"specificAttributes")}),null!=u&&(p=this.addToHttpParams(p,u,"allUserAttributes")),null!=c&&(p=this.addToHttpParams(p,c,"onlyDirectAdmins"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=h&&h.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=h&&h.context;void 0===w&&(w=new C.qT);let N="json";f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let se=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(o){let Pe=new URL(se),ot=Pe.pathname.split("/");ot[1]="non",Pe.pathname=ot.join("/"),se=Pe.toString()}return this.httpClient.get(se,{context:w,params:p,responseType:N,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:l})}getFacilitiesWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupRoleNames(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupRoles(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getLoggedUser(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getMembersWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getPerunPrincipal(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getPrincipalRoleNames(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getResourcesWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getSecurityTeamsWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserRoleNames(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserRoles(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}isFacilityAdmin(e,t=!1,r="body",d=!1,u){let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isGroupAdmin(e,t=!1,r="body",d=!1,u){let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isPerunAdmin(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}isVoAdmin(e,t=!1,r="body",d=!1,u){let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}keepAlive(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}loadAuthorizationComponents(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}refreshMfa(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}setRoleForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithGroupComplementaryObject(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithGroupComplementaryObjects(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithUserComplementaryObject(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithUserComplementaryObjects(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithGroupComplementaryObject(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithGroupComplementaryObjects(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithUserComplementaryObject(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithUserComplementaryObjects(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ys=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}changeConsentStatus(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"consent")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}evaluateConsentsForConsentHub(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"consentHub"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}evaluateConsentsForConsentHubs(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter consentHubs was null or undefined when calling evaluateConsentsForConsentHubs.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"consentHubs[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHubs`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}evaluateConsentsForService(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllConsentHubs(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllConsents(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/consentsManager/getAllConsents`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getConsentById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentForUserAndConsentHub(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==r)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"consentHub")),null!=r&&(s=this.addToHttpParams(s,r,"status"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getConsentHubByFacility(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentHubById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentHubById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentHubByName(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"name"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentsForConsentHub(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"consentHub"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentsForConsentHubWithStatus(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"consentHub")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getConsentsForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentsForUserAndConsentHub(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"consentHub"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getConsentsForUserWithStatus(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}updateConsentHub(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/consentsManager/updateConsentHub`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),zr=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling addMember.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"member"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addMembers(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling addMembers.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"members[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}allowGroupToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}allowGroupsToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling allowGroupsToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupsToHierarchicalVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}canExtendMembershipInGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyMembers(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter sourceGroup was null or undefined when calling copyMembers.");if(null==t)throw new Error("Required parameter destinationGroups was null or undefined when calling copyMembers.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"sourceGroup")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"destinationGroups")}),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"members")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/groupsManager/copyMembers`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}createGroupUnion(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resultGroup")),null!=t&&(o=this.addToHttpParams(o,t,"operandGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}createGroupWithParentGroupNameDescription(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==t)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==r)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"parentGroup")),null!=t&&(s=this.addToHttpParams(s,t,"name")),null!=r&&(s=this.addToHttpParams(s,r,"description"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}createGroupWithVoNameDescription(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==t)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==r)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"name")),null!=r&&(s=this.addToHttpParams(s,r,"description"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}deleteGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deleteGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/deleteGroups`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}disallowGroupToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}disallowGroupsToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling disallowGroupsToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling disallowGroupsToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupsToHierarchicalVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}extendMembershipInGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}forceAllSubGroupsSynchronization(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}forceGroupStructureSynchronization(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}forceGroupSynchronization(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllAllowedGroupsToHierarchicalVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getAllGroups`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllGroupsFromAllVos(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllMemberGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllRichGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attrNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllRichGroupsWithAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAllRichSubGroupsWithGroupAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==t)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"name"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getGroupByName`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupDirectMembersCount(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupDirectMembersCount.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupDirectMembersCount`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupMemberById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==t)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"member"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupMembersCount(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupMembersCountsByGroupStatus(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupMembersCountsByVoStatus(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupRichMembersByIds(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==t)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"members[]")}),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attrNames[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getGroupUnions(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==t)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"reverseDirection"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getGroupUnions`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupsByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsPage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getGroupsPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getGroupsWhereMemberIsActive(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getIndirectMembershipPaths(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getMemberGroups`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberRichGroupsWithAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getParentGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getParentGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getParentGroup`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichGroupByIdWithAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"groupId")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getSubgroupsPage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getVoAllAllowedGroupsToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"memberVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}isAllowedGroupToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}isGroupMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==t)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/isGroupMember`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}moveGroupWithDestinationGroupMovingGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"destinationGroup")),null!=e&&(o=this.addToHttpParams(o,e,"movingGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupUnion(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resultGroup")),null!=t&&(o=this.addToHttpParams(o,t,"operandGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMember.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"member"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeMembers(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"members[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}setGroupsMemberStatus(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==t)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==r)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"status"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}updateGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/updateGroup`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Er=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMemberCandidates(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAddMemberCandidates was null or undefined when calling addMemberCandidates.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/addMemberCandidates`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}canExtendMembership(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/canExtendMembership`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}createMemberForCandidate(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createMember/c`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createMemberForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createMember/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createMemberFromExtSource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createMember/extSource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createSpecificMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createSpecificMember`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createSponsoredMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createSponsoredMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createSponsoredMembersFromCSV(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"members[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}extendMembership(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findCompleteRichMembersByAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let s=new C.LE({encoder:this.encoder});e&&e.forEach(w=>{s=this.addToHttpParams(s,w,"attrsNames[]")}),null!=t&&(s=this.addToHttpParams(s,t,"searchString")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"allowedStatuses[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}findCompleteRichMembersForGroup(e,t,r,d,u,c,o=!1,s="body",l=!1,h){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==d)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let p=new C.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"group")),t&&t.forEach(Pe=>{p=this.addToHttpParams(p,Pe,"attrsNames[]")}),u&&u.forEach(Pe=>{p=this.addToHttpParams(p,Pe,"allowedStatuses[]")}),c&&c.forEach(Pe=>{p=this.addToHttpParams(p,Pe,"allowedGroupStatuses[]")}),null!=r&&(p=this.addToHttpParams(p,r,"searchString")),null!=d&&(p=this.addToHttpParams(p,d,"lookingInParentGroup"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=h&&h.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=h&&h.context;void 0===w&&(w=new C.qT);let N="json";f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let se=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`;if(o){let Pe=new URL(se),ot=Pe.pathname.split("/");ot[1]="non",Pe.pathname=ot.join("/"),se=Pe.toString()}return this.httpClient.get(se,{context:w,params:p,responseType:N,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:l})}findCompleteRichMembersForVo(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),t&&t.forEach(N=>{l=this.addToHttpParams(l,N,"attrsNames[]")}),d&&d.forEach(N=>{l=this.addToHttpParams(l,N,"allowedStatuses[]")}),null!=r&&(l=this.addToHttpParams(l,r,"searchString"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}findMembersInVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"searchString"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/findMembersInVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}findSponsoredCompleteRichMembersForVo(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==d)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),t&&t.forEach(N=>{l=this.addToHttpParams(l,N,"attrsNames[]")}),null!=r&&(l=this.addToHttpParams(l,r,"searchString")),null!=d&&(l=this.addToHttpParams(l,d,"onlySponsored"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getAllMembers(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/membersManager/getAllMembers`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllNamespacesRules(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllSponsoredMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllSponsoredMembersAndTheirSponsors(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getCompleteRichMembersForGroup(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==t)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"group")),r&&r.forEach(se=>{h=this.addToHttpParams(h,se,"allowedStatuses[]")}),d&&d.forEach(se=>{h=this.addToHttpParams(h,se,"allowedGroupStatuses[]")}),null!=t&&(h=this.addToHttpParams(h,t,"lookingInParentGroup")),u&&u.forEach(se=>{h=this.addToHttpParams(h,se,"attrsNames[]")});let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.get(N,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}getCompleteRichMembersForGroupResource(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==d)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attrsNames[]")}),d&&d.forEach(N=>{l=this.addToHttpParams(l,N,"allowedStatuses[]")});let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getCompleteRichMembersForVo(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"allowedStatuses[]")}),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attrsNames[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberByExtSourceNameAndExtLogin(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"extLogin")),null!=r&&(s=this.addToHttpParams(s,r,"extSourceName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getMemberById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberByUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getMemberByUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMembers(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getMembers`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMembersByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getMembersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMembersByUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getMembersByUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMembersCount(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getMembersCount`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMembersPage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getMembersPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getMembersWithStatusCount(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getMembersCount/status`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRichMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getRichMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichMemberWithAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichMembersByIds(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"ids[]")}),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRichMembersNoUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSponsoredMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSponsoredMembersAndTheirSponsors(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getSponsorsByMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getSponsors/member`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getSponsorsByVo(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),null!=t&&(l=this.addToHttpParams(l,t,"extSourceName")),null!=r&&(l=this.addToHttpParams(l,r,"extLogin")),d&&d.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")});let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/membersManager/getSponsors/vo`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}moveMembership(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==t)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==r)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"sourceUser")),null!=r&&(s=this.addToHttpParams(s,r,"targetUser"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeSponsor(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeSponsors(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeSponsors.");if(null==t)throw new Error("Required parameter sponsorIds was null or undefined when calling removeSponsors.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"sponsorIds")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsors`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}sendAccountActivationLinkEmail(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==r)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==d)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"namespace")),null!=r&&(l=this.addToHttpParams(l,r,"emailAttributeURN")),null!=d&&(l=this.addToHttpParams(l,d,"language"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}sendPasswordResetLinkEmail(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==r)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==d)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"member")),null!=t&&(h=this.addToHttpParams(h,t,"namespace")),null!=r&&(h=this.addToHttpParams(h,r,"emailAttributeURN")),null!=d&&(h=this.addToHttpParams(h,d,"language")),null!=u&&(h=this.addToHttpParams(h,u,"baseUrl"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}setSponsoredMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/setSponsoredMember`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setSponsorshipForMember(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"sponsoredMember")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor")),null!=r&&(s=this.addToHttpParams(s,r,"validityTo"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}setStatus(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling setStatus.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}sponsorMember(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor")),null!=r&&(s=this.addToHttpParams(s,r,"validityTo"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}sponsorMembers(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter members was null or undefined when calling sponsorMembers.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMembers.");let s=new C.LE({encoder:this.encoder});e&&e.forEach(w=>{s=this.addToHttpParams(s,w,"members[]")}),null!=t&&(s=this.addToHttpParams(s,t,"sponsor")),null!=r&&(s=this.addToHttpParams(s,r,"validityTo"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMembers`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}updateSponsorshipValidity(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor")),null!=r&&(s=this.addToHttpParams(s,r,"validityTo"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}validateMemberAsync(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),fo=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}sentMessageToRTWithMemberQueue(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"memberId")),null!=t&&(l=this.addToHttpParams(l,t,"queue")),null!=r&&(l=this.addToHttpParams(l,r,"subject")),null!=d&&(l=this.addToHttpParams(l,d,"text"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}sentMessageToRTWithQueue(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"queue")),null!=t&&(s=this.addToHttpParams(s,t,"subject")),null!=r&&(s=this.addToHttpParams(s,r,"text"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}sentMessageToRTWithVo(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"voId")),null!=t&&(s=this.addToHttpParams(s,t,"subject")),null!=r&&(s=this.addToHttpParams(s,r,"text"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"voId")),null!=t&&(l=this.addToHttpParams(l,t,"queue")),null!=r&&(l=this.addToHttpParams(l,r,"subject")),null!=d&&(l=this.addToHttpParams(l,d,"text"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),lc=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addApplicationMailForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}addApplicationMailForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}addGroupsToAutoRegistration(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"groups[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}approveApplication(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}checkForSimilarRichIdentities(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.post(h,null,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}checkForSimilarUsersWithAuthInfo(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.post(h,null,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}consolidate(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/consolidate`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}consolidateIdentityUsingToken(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}copyFormFromGroupToGroup(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromGroup")),null!=t&&(o=this.addToHttpParams(o,t,"toGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyFormFromGroupToVo(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromGroup")),null!=t&&(o=this.addToHttpParams(o,t,"toVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyFormFromVoToGroup(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromVo")),null!=t&&(o=this.addToHttpParams(o,t,"toGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyFormFromVoToVo(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromVo")),null!=t&&(o=this.addToHttpParams(o,t,"toVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyMailsFromGroupToGroup(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromGroup")),null!=t&&(o=this.addToHttpParams(o,t,"toGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyMailsFromGroupToVo(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromGroup")),null!=t&&(o=this.addToHttpParams(o,t,"toVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyMailsFromVoToGroup(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromVo")),null!=t&&(o=this.addToHttpParams(o,t,"toGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyMailsFromVoToVo(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromVo")),null!=t&&(o=this.addToHttpParams(o,t,"toVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}createApplicationFormInGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}createApplicationFormInVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteApplication(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteApplicationMailForGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"id"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deleteApplicationMailForVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"id"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deleteGroupsFromAutoRegistration(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"groups[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getApplicationById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getApplicationDataById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getApplicationMailsForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getApplicationMailsForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getApplicationsForGroup(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group")),t&&t.forEach(N=>{l=this.addToHttpParams(l,N,"state[]")}),null!=r&&(l=this.addToHttpParams(l,r,"dateFrom")),null!=d&&(l=this.addToHttpParams(l,d,"dateTo"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getApplicationsForMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getApplicationsForVo(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),t&&t.forEach(N=>{l=this.addToHttpParams(l,N,"state[]")}),null!=r&&(l=this.addToHttpParams(l,r,"dateFrom")),null!=d&&(l=this.addToHttpParams(l,d,"dateTo"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getApplicationsPage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getConsolidatorToken(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getFormItemsForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFormItemsForGroupWithType(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"type"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getFormItemsForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFormItemsForVoWithType(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"type"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupApplicationForm(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsToAutoRegistration(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoApplicationForm(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}invitationFormExists(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling invitationFormExists.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/invitationFormExists`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}inviteMemberCandidates(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputInviteMemberCandidates was null or undefined when calling inviteMemberCandidates.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/inviteMemberCandidates`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}rejectApplication(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"id")),null!=t&&(o=this.addToHttpParams(o,t,"reason"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}sendInvitation(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let l=new C.LE({encoder:this.encoder});null!=r&&(l=this.addToHttpParams(l,r,"voId")),null!=d&&(l=this.addToHttpParams(l,d,"name")),null!=e&&(l=this.addToHttpParams(l,e,"email")),null!=t&&(l=this.addToHttpParams(l,t,"language"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}sendInvitationForGroup(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let h=new C.LE({encoder:this.encoder});null!=r&&(h=this.addToHttpParams(h,r,"voId")),null!=d&&(h=this.addToHttpParams(h,d,"groupId")),null!=u&&(h=this.addToHttpParams(h,u,"name")),null!=e&&(h=this.addToHttpParams(h,e,"email")),null!=t&&(h=this.addToHttpParams(h,t,"language"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}sendInvitationGroupToExistingUser(e,t,r,d=!1,u="body",c=!1,o){let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userId")),null!=t&&(s=this.addToHttpParams(s,t,"voId")),null!=r&&(s=this.addToHttpParams(s,r,"groupId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}sendInvitationToExistingUser(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userId")),null!=t&&(o=this.addToHttpParams(o,t,"voId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}sendInvitationsFromCsv(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}sendMessage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/sendMessage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setSendingEnabled(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}submitApplication(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/submitApplication`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateApplicationMail(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateForm(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateForm`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateFormItemData(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItemData`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateFormItemsData(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateFormItemsForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateFormItemsForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}verifyApplication(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ia=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}activateGroupResourceAssignment(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"async"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}addAdminToGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addAdminToUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addResourceSelfServiceGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addResourceSelfServiceUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}allowGroupsToResources(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let s=new C.LE({encoder:this.encoder});e&&e.forEach(w=>{s=this.addToHttpParams(s,w,"groups[]")}),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"resources[]")}),null!=r&&(s=this.addToHttpParams(s,r,"async"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}assignGroupToResource(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"group")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"async")),null!=d&&(h=this.addToHttpParams(h,d,"assignInactive")),null!=u&&(h=this.addToHttpParams(h,u,"autoAssignSubgroups"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}assignGroupToResources(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"group")),t&&t.forEach(se=>{h=this.addToHttpParams(h,se,"resources[]")}),null!=r&&(h=this.addToHttpParams(h,r,"async")),null!=d&&(h=this.addToHttpParams(h,d,"assignInactive")),null!=u&&(h=this.addToHttpParams(h,u,"autoAssignSubgroups"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}assignGroupsToResource(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let h=new C.LE({encoder:this.encoder});e&&e.forEach(se=>{h=this.addToHttpParams(h,se,"groups[]")}),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"async")),null!=d&&(h=this.addToHttpParams(h,d,"assignInactive")),null!=u&&(h=this.addToHttpParams(h,u,"autoAssignSubgroups"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}assignResourceTagToResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}assignResourceTagsToResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAssignResourceTagsToResource was null or undefined when calling assignResourceTagsToResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/assignResourceTagsToResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}assignService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling assignService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"service"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}assignServices(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling assignServices.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}assignServicesPackage(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"servicesPackage"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/copyResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createResource(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==r)throw new Error("Required parameter name was null or undefined when calling createResource.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),null!=t&&(l=this.addToHttpParams(l,t,"facility")),null!=r&&(l=this.addToHttpParams(l,r,"name")),null!=d&&(l=this.addToHttpParams(l,d,"description"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}createResourceTagWithResourceTag(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createResourceTagWithTagName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"tagName")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deactivateGroupResourceAssignment(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deleteAllResources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteAllResourcesTagsForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteResourceTag(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getAdminGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAdmins(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==t)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"onlyDirectAdmins"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getAdmins`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAllResources(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/resourcesManager/getAllResources`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllResourcesByResourceTag(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getAllResourcesTagsForResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllResourcesTagsForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllResourcesWhereUserIsAdmin(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllowedMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllowedResources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllowedUsersOfResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedGroups(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"member"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAssignedMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedMembersWithStatus(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedResourcesWithGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedResourcesWithMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedResourcesWithStatus(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichResourcesWithGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichResourcesWithMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichResourcesWithMemberService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"service"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAssignedServicesToResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getBansForMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getBansForMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getBansForResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getBansForResource`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getEnrichedBansForResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getEnrichedBansForResource.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForResource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedBansForUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getEnrichedBansForUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedResourceById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"id")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedResourcesForFacility(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedResourcesForVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getFacility(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getFacility`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupAssignments(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMailingServiceRichResourcesWithMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourceAssignments(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceBan(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getBan`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceBanById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getBanById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourceById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getResourceById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourceByName(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==r)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"facility")),null!=r&&(s=this.addToHttpParams(s,r,"name"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/resourcesManager/getResourceByName`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getResources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourcesByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourcesCountForAll(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getResourcesCountForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourcesFromVoWhereUserIsAdmin(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourcesWhereGroupIsAdmin(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"vo")),null!=r&&(s=this.addToHttpParams(s,r,"group"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getResourcesWhereUserIsAdmin(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"vo")),null!=r&&(s=this.addToHttpParams(s,r,"user"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getRichAdmins(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==t)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==r)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==d)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource")),t&&t.forEach(N=>{l=this.addToHttpParams(l,N,"specificAttributes")}),null!=r&&(l=this.addToHttpParams(l,r,"allUserAttributes")),null!=d&&(l=this.addToHttpParams(l,d,"onlyDirectAdmins"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getRichResourceById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichResources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getRichResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichResourcesByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getVo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}removeAllResourceTagsFromResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}removeBanByMemberAndResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupAdminResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupFromResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupFromResources(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"resources[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupsFromResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeResourceBanById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}removeResourceSelfServiceGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeResourceSelfServiceUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeResourceTagFromResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}removeResourceTagsFromResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputRemoveResourceTagsFromResource was null or undefined when calling removeResourceTagsFromResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/removeResourceTagsFromResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}removeService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling removeService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"service"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeServiceForResources(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeServiceForResources.");if(null==t)throw new Error("Required parameter service was null or undefined when calling removeServiceForResources.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"resources[]")}),null!=t&&(o=this.addToHttpParams(o,t,"service"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService/forResources`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeServices(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling removeServices.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeServicesPackage(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"servicesPackage"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserAdminResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}setResourceBan(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/setBan`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unallowGroupsFromResources(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"resources[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}updateResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/updateResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateResourceBan(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/updateBan`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateResourceTag(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),li=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addSpecificUserOwner(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addUserExtSource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}anonymizeUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}changeNonAuthzPasswordByToken(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}changePasswordForLogin(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}changePasswordForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}checkPasswordResetRequestByTokenIsValid(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}checkPasswordStrength(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createAlternativePassword(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createServiceUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteAlternativePassword(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==r)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"loginNamespace")),null!=r&&(s=this.addToHttpParams(s,r,"passwordId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}deletePasswordForLogin(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deletePasswordForUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deleteUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}findRichUsers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findRichUsersWithAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"searchString")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrsNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}findUsers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}generateAccountForName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"namespace")),null!=t&&(o=this.addToHttpParams(o,t,"name"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAllRichUsersWithAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichResourcesForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsForFacilityWhereUserIsActive(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupsForResourceWhereUserIsActive(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupsInVoWhereUserIsAdmin(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupsWhereUserIsAdmin(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getPendingPreferredEmailChanges(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUserExtSources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUserWithAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersWithAttributesByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersWithoutVoWithAttributes(e,t=!1,r="body",d=!1,u){let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attrsNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSpecificUsersByUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSponsorsForMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getSponsorsForMemberByVoAndLogin(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),null!=t&&(l=this.addToHttpParams(l,t,"extSourceName")),null!=r&&(l=this.addToHttpParams(l,r,"extLogin")),d&&d.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")});let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getUserByExtSourceNameAndExtLogin(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extLogin")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extSourceName")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceLogin"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSourceById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeId")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeName")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourcesByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsers(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/usersManager/getUsers`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getUsersByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsersBySpecificUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsersPage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getVosWhereUserIsAdmin(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosWhereUserIsMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isLoginAvailable(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"loginNamespace")),null!=t&&(o=this.addToHttpParams(o,t,"login"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}loginExist(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeSpecificUserOwner(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserExtSource(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"userExtSource")),null!=r&&(s=this.addToHttpParams(s,r,"force"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeUserExtSources(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==t)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"userExtSources")}),null!=r&&(s=this.addToHttpParams(s,r,"force"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}requestPreferredEmailChange(e,t,r,d,u,c,o=!1,s="body",l=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let p=new C.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"user")),null!=t&&(p=this.addToHttpParams(p,t,"email")),null!=r&&(p=this.addToHttpParams(p,r,"lang")),null!=d&&(p=this.addToHttpParams(p,d,"linkPath")),null!=u&&(p=this.addToHttpParams(p,u,"customUrl")),null!=c&&(p=this.addToHttpParams(p,c,"idpFilter"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=h&&h.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=h&&h.context;void 0===w&&(w=new C.qT);let N="json";f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let se=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(o){let Pe=new URL(se),ot=Pe.pathname.split("/");ot[1]="non",Pe.pathname=ot.join("/"),se=Pe.toString()}return this.httpClient.post(se,null,{context:w,params:p,responseType:N,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:l})}reservePasswordForLogin(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}reservePasswordForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}reserveRandomPassword(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}setLogin(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==r)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"login")),null!=r&&(s=this.addToHttpParams(s,r,"namespace"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}updateUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/updateUser`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateUserExtSourceLastAccess(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}validatePasswordForLogin(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}validatePasswordForUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}validatePreferredEmailChangeWithToken(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"token")),null!=t&&(o=this.addToHttpParams(o,t,"u"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ti=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAppsConfig(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getGuiConfiguration(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getNewGuiAlert(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getPerunRPCVersion(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getPerunStatistics(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getPerunStatus(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getPerunSystemTimeInMillis(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ws=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMemberVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"memberVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addSponsorRoleToGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addSponsorRoleToUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addVoAdminGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addVoAdminUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}createVoWithName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==t)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"name")),null!=t&&(o=this.addToHttpParams(o,t,"shortName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}createVoWithVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/createVo/withVo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}findCandidates(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"id")),null!=t&&(s=this.addToHttpParams(s,t,"searchString")),null!=r&&(s=this.addToHttpParams(s,r,"maxNumOfResults"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/vosManager/findCandidates`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}findCandidatesForGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"searchString"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAllVos(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/vosManager/getAllVos`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getCompleteCandidatesForGroup(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"attrNames[]")}),null!=r&&(s=this.addToHttpParams(s,r,"searchString"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getCompleteCandidatesForVo(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"attrNames[]")}),null!=r&&(s=this.addToHttpParams(s,r,"searchString"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getEnrichedBansForVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedBansForVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/getEnrichedBansForVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedVoBansForUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getEnrichedVoBansForUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/getEnrichedBansForUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedVoById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberVos(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getMemberVos`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMyEnrichedVos(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/vosManager/getEnrichedVos`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getMyVos(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/vosManager/getVos`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getParentVos(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getParentVos`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichAdminsForVo(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==d)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"vo")),null!=t&&(h=this.addToHttpParams(h,t,"role")),r&&r.forEach(se=>{h=this.addToHttpParams(h,se,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=u&&(h=this.addToHttpParams(h,u,"onlyDirectAdmins"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/json/vosManager/getRichAdmins`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.get(N,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}getVoAdminGroups(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"role"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/getAdminGroups`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getVoAdminUsers(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"role")),null!=r&&(s=this.addToHttpParams(s,r,"onlyDirectAdmins"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/vosManager/getAdmins`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getVoBanById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getBanById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoBanForMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getBanForMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoBansForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getBansForVo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getVoById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getVoById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoByShortName(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"shortName"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getVoByShortName`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoMembersCountsByStatus(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getVosByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosCount(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/vosManager/getVosCount`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}removeMemberVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"memberVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeSponsorRoleFromGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeSponsorRoleFromUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeVoAdminGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeVoAdminUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeVoBan(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}removeVoBanForMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}setVoBan(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/setBan`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/updateVo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateVoBan(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateBan1 was null or undefined when calling updateVoBan.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/updateBan`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var gt=(()=>{return(i=gt||(gt={})).PERUNADMIN="PERUNADMIN",i.PERUNOBSERVER="PERUNOBSERVER",i.VOADMIN="VOADMIN",i.GROUPADMIN="GROUPADMIN",i.GROUPOBSERVER="GROUPOBSERVER",i.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",i.SELF="SELF",i.FACILITYADMIN="FACILITYADMIN",i.FACILITIYOBSERVER="FACILITYOBSERVER",i.RESOURCEADMIN="RESOURCEADMIN",i.RESOURCESELFSERVICE="RESOURCESELFSERVICE",i.REGISTRAR="REGISTRAR",i.ENGINE="ENGINE",i.RPC="RPC",i.NOTIFICATIONS="NOTIFICATIONS",i.SERVICEUSER="SERVICEUSER",i.SPONSOR="SPONSOR",i.VOOBSERVER="VOOBSERVER",i.TOPGROUPCREATOR="TOPGROUPCREATOR",i.SECURITYADMIN="SECURITYADMIN",i.CABINETADMIN="CABINETADMIN",i.UNKNOWNROLENAME="UNKNOWNROLENAME",i.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",i.UNKNOWN="UNKNOWN",i.MEMBERSHIP="MEMBERSHIP",gt;var i})();let Cn=(()=>{class i{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,r)=>t.roleName>r.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(r=>{this.allRolesManagementRules=r,e()},r=>t(r))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(r=>{r.primaryObject===t&&e.push(r)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let r=e.beanName;r.startsWith("Rich")&&(r=r.substring(4)),this.assignAvailableRoles(t,r);const d=new Map;this.setRolesAuthorization(t,e,d);for(const u of d.values())if(u.readAuth||u.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const d of e){let u=[],c=[],o=[];for(const m of this.allRolesManagementRules)if(m.roleName===d.roleName){u=u.concat(m.privilegedRolesToRead),c=c.concat(m.privilegedRolesToManage);for(const g of Object.keys(m.entitiesToManage))o="User"===g?[g].concat(o):o.concat(g);break}const s=this.fetchAllRelatedObjects([t]),l=this.resolveAuthorization(u,s),h=this.resolveAuthorization(c,s);r.set(d.roleName,{readAuth:l,manageAuth:h,modes:o})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],r=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(d=>{!r.includes(d.roleName)&&this.canManage(d)&&this.ruleHasMode(d,e)&&t.push(d)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(r=>r.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const r of e){let d=!0;for(const u of Object.keys(r)){const c=r[u];if(null===c)this.principalRoles.has(u)||(d=!1);else if(t[c]){for(const o of t[c])if(!this.principalHasRole(u,c,o)){d=!1;break}}else d=!1;if(!d)break}if(d)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const r of e){let d=r.beanName;switch(r.beanName.startsWith("Rich")&&(d=r.beanName.substring(4)),t[d]?t[d].push(r.id):t[d]=[r.id],d){case"Member":t.User?t.User.push(r.userId):t.User=[r.userId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Resource":t.Facility?t.Facility.push(r.facilityId):t.Facility=[r.facilityId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let r=[];for(r.push(e);0!==r.length;){const u=r.shift();if(t.has(u))continue;const c=this.getPerunPolicy(u);if(!c)return[];t.set(u,c),r=r.concat(c.includePolicies)}const d=[];for(const u of t.values())d.push(u);return d}voCustomSort(e){for(let t=0;t{let e=null;i._refCount++;const t=(0,at.x)(a,void 0,void 0,void 0,()=>{if(!i||i._refCount<=0||0<--i._refCount)return void(e=null);const r=i._connection,d=e;e=null,r&&(!d||r===d)&&r.unsubscribe(),a.unsubscribe()});i.subscribe(t),t.closed||(e=i.connect())})}class mf extends yn.y{constructor(a,e){super(),this.source=a,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,hr.A)(a)&&(this.lift=a.lift)}_subscribe(a){return this.getSubject().subscribe(a)}getSubject(){const a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:a}=this;this._subject=this._connection=null,a?.unsubscribe()}connect(){let a=this._connection;if(!a){a=this._connection=new Nt.w0;const e=this.getSubject();a.add(this.source.subscribe((0,at.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),a.closed&&(this._connection=null,a=Nt.w0.EMPTY)}return a}refCount(){return Ms()(this)}}function vn(...i){const a=(0,_n.yG)(i);return(0,hr.e)((e,t)=>{(a?(0,tr.z)(i,e,a):(0,tr.z)(i,e)).subscribe(t)})}var pr=E(5577),Ur=E(590),Wt=E(8505),Fn=E(262);function Rd(i,a,e,t,r){return(d,u)=>{let c=e,o=a,s=0;d.subscribe((0,at.x)(u,l=>{const h=s++;o=c?i(o,l,h):(c=!0,l),t&&u.next(o)},r&&(()=>{c&&u.next(o),u.complete()})))}}function Cs(i,a){return(0,hr.e)(Rd(i,a,arguments.length>=2,!0))}function Dr(i){return i<=0?()=>Xi.E:(0,hr.e)((a,e)=>{let t=[];a.subscribe((0,at.x)(e,r=>{t.push(r),i{for(const r of t)e.next(r);e.complete()},void 0,()=>{t=null}))})}var Pn=E(8068),pc=E(6590),ah=E(4671);function Pd(i,a){const e=arguments.length>=2;return t=>t.pipe(i?(0,bt.h)((r,d)=>i(r,d,t)):ah.y,Dr(1),e?(0,pc.d)(a):(0,Pn.T)(()=>new wa.K))}function fc(i,a=!1){return(0,hr.e)((e,t)=>{let r=0;e.subscribe((0,at.x)(t,d=>{const u=i(d,r++);(u||a)&&t.next(d),!u&&t.complete()}))})}var tl=E(9718);function bo(i){return(0,hr.e)((a,e)=>{try{a.subscribe(e)}finally{e.add(i)}})}var ra=E(8189);const qt="primary";class sh{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ya(i){return new sh(i)}function nl(i,a,e){const t=e.path.split("/");if(t.length>i.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[d]===r)}return i===a}function rl(i){return Array.prototype.concat.apply([],i)}function oh(i){return i.length>0?i[i.length-1]:null}function nn(i,a){for(const e in i)i.hasOwnProperty(e)&&a(i[e],e)}function xi(i){return(0,n.CqO)(i)?i:(0,n.QGY)(i)?(0,Se.D)(Promise.resolve(i)):(0,Ee.of)(i)}const gf={exact:function uh(i,a,e){if(!Ga(i.segments,a.segments)||!vs(i.segments,a.segments,e)||i.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!i.children[t]||!uh(i.children[t],a.children[t],e))return!1;return!0},subset:al},Od={exact:function _f(i,a){return fr(i,a)},subset:function mc(i,a){return Object.keys(a).length<=Object.keys(i).length&&Object.keys(a).every(e=>kd(i[e],a[e]))},ignored:()=>!0};function dh(i,a,e){return gf[e.paths](i.root,a.root,e.matrixParams)&&Od[e.queryParams](i.queryParams,a.queryParams)&&!("exact"===e.fragment&&i.fragment!==a.fragment)}function al(i,a,e){return sl(i,a,a.segments,e)}function sl(i,a,e,t){if(i.segments.length>e.length){const r=i.segments.slice(0,e.length);return!(!Ga(r,e)||a.hasChildren()||!vs(r,e,t))}if(i.segments.length===e.length){if(!Ga(i.segments,e)||!vs(i.segments,e,t))return!1;for(const r in a.children)if(!i.children[r]||!al(i.children[r],a.children[r],t))return!1;return!0}{const r=e.slice(0,i.segments.length),d=e.slice(i.segments.length);return!!(Ga(i.segments,r)&&vs(i.segments,r,t)&&i.children[qt])&&sl(i.children[qt],a,d,t)}}function vs(i,a,e){return a.every((t,r)=>Od[e](i[r].parameters,t.parameters))}class Wa{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ya(this.queryParams)),this._queryParamMap}toString(){return Af.serialize(this)}}class Gt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,nn(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return gc(this)}}class $n{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ya(this.parameters)),this._parameterMap}toString(){return Bd(this)}}function Ga(i,a){return i.length===a.length&&i.every((e,t)=>e.path===a[t].path)}let Ts=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(){return new Ao},providedIn:"root"}),i})();class Ao{parse(a){const e=new Mf(a);return new Wa(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${ol(a.root,!0)}`,t=function wf(i){const a=Object.keys(i).map(e=>{const t=i[e];return Array.isArray(t)?t.map(r=>`${xs(e)}=${xs(r)}`).join("&"):`${xs(e)}=${xs(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function hh(i){return encodeURI(i)}(a.fragment)}`:""}`}}const Af=new Ao;function gc(i){return i.segments.map(a=>Bd(a)).join("/")}function ol(i,a){if(!i.hasChildren())return gc(i);if(a){const e=i.children[qt]?ol(i.children[qt],!1):"",t=[];return nn(i.children,(r,d)=>{d!==qt&&t.push(`${d}:${ol(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function bf(i,a){let e=[];return nn(i.children,(t,r)=>{r===qt&&(e=e.concat(a(t,r)))}),nn(i.children,(t,r)=>{r!==qt&&(e=e.concat(a(t,r)))}),e}(i,(t,r)=>r===qt?[ol(i.children[qt],!1)]:[`${r}:${ol(t,!1)}`]);return 1===Object.keys(i.children).length&&null!=i.children[qt]?`${gc(i)}/${e[0]}`:`${gc(i)}/(${e.join("//")})`}}function yf(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xs(i){return yf(i).replace(/%3B/gi,";")}function _c(i){return yf(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ss(i){return decodeURIComponent(i)}function Id(i){return Ss(i.replace(/\+/g,"%20"))}function Bd(i){return`${_c(i.path)}${function yo(i){return Object.keys(i).map(a=>`;${_c(a)}=${_c(i[a])}`).join("")}(i.parameters)}`}const wo=/^[^\/()?;=#]+/;function Mo(i){const a=i.match(wo);return a?a[0]:""}const bc=/^[^=?&#]+/,ph=/^[^&#]+/;class Mf{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Gt([],{}):new Gt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[qt]=new Gt(a,e)),t}parseSegment(){const a=Mo(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new n.vHH(4009,!1);return this.capture(a),new $n(Ss(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Mo(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=Mo(this.remaining);r&&(t=r,this.capture(t))}a[Ss(e)]=Ss(t)}parseQueryParam(a){const e=function Rg(i){const a=i.match(bc);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const u=function ll(i){const a=i.match(ph);return a?a[0]:""}(this.remaining);u&&(t=u,this.capture(t))}const r=Id(e),d=Id(t);if(a.hasOwnProperty(r)){let u=a[r];Array.isArray(u)||(u=[u],a[r]=u),u.push(d)}else a[r]=d}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Mo(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new n.vHH(4010,!1);let d;t.indexOf(":")>-1?(d=t.slice(0,t.indexOf(":")),this.capture(d),this.capture(":")):a&&(d=qt);const u=this.parseChildren();e[d]=1===Object.keys(u).length?u[qt]:new Gt([],u),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new n.vHH(4011,!1)}}function Lr(i){return i.segments.length>0?new Gt([],{[qt]:i}):i}function Ac(i){const a={};for(const t of Object.keys(i.children)){const d=Ac(i.children[t]);(d.segments.length>0||d.hasChildren())&&(a[t]=d)}return function cl(i){if(1===i.numberOfChildren&&i.children[qt]){const a=i.children[qt];return new Gt(i.segments.concat(a.segments),a.children)}return i}(new Gt(i.segments,a))}function Ma(i){return i instanceof Wa}function Vd(i,a,e,t,r){var d;if(0===e.length)return Hr(a.root,a.root,a.root,t,r);const u=function Yr(i){if("string"==typeof i[0]&&1===i.length&&"/"===i[0])return new Co(!0,0,i);let a=0,e=!1;const t=i.reduce((r,d,u)=>{if("object"==typeof d&&null!=d){if(d.outlets){const c={};return nn(d.outlets,(o,s)=>{c[s]="string"==typeof o?o.split("/"):o}),[...r,{outlets:c}]}if(d.segmentPath)return[...r,d.segmentPath]}return"string"!=typeof d?[...r,d]:0===u?(d.split("/").forEach((c,o)=>{0==o&&"."===c||(0==o&&""===c?e=!0:".."===c?a++:""!=c&&r.push(c))}),r):[...r,d]},[]);return new Co(e,a,t)}(e);if(u.toRoot())return Hr(a.root,a.root,new Gt([],{}),t,r);const o=function c(l){var h;const p=function mh(i,a,e,t){if(i.isAbsolute)return new Ds(a.root,!0,0);if(-1===t)return new Ds(e,e===a.root,0);return function Ls(i,a,e){let t=i,r=a,d=e;for(;d>r;){if(d-=r,t=t.parent,!t)throw new n.vHH(4005,!1);r=t.segments.length}return new Ds(t,!1,r-d)}(e,t+(Es(i.commands[0])?0:1),i.numberOfDoubleDots)}(u,a,null===(h=i.snapshot)||void 0===h?void 0:h._urlSegment,l),m=p.processChildren?Hs(p.segmentGroup,p.index,u.commands):wc(p.segmentGroup,p.index,u.commands);return Hr(a.root,p.segmentGroup,m,t,r)}(null===(d=i.snapshot)||void 0===d?void 0:d._lastPathIndex);return o}function Es(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function Ca(i){return"object"==typeof i&&null!=i&&i.outlets}function Hr(i,a,e,t,r){let u,d={};t&&nn(t,(o,s)=>{d[s]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),u=i===a?e:ul(i,a,e);const c=Lr(Ac(u));return new Wa(c,d,r)}function ul(i,a,e){const t={};return nn(i.children,(r,d)=>{t[d]=r===a?e:ul(r,a,e)}),new Gt(i.segments,t)}class Co{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&Es(t[0]))throw new n.vHH(4003,!1);const r=t.find(Ca);if(r&&r!==oh(t))throw new n.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ds{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function wc(i,a,e){if(i||(i=new Gt([],{})),0===i.segments.length&&i.hasChildren())return Hs(i,a,e);const t=function vf(i,a,e){let t=0,r=a;const d={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return d;const u=i.segments[r],c=e[t];if(Ca(c))break;const o=`${c}`,s=t0&&void 0===o)break;if(o&&s&&"object"==typeof s&&void 0===s.outlets){if(!Ps(o,s,u))return d;t+=2}else{if(!Ps(o,{},u))return d;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(i,a,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof d&&(d=[d]),null!==d&&(r[u]=wc(i.children[u],a,d))}),nn(i.children,(d,u)=>{void 0===t[u]&&(r[u]=d)}),new Gt(i.segments,r)}}function Mc(i,a,e){const t=i.segments.slice(0,a);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=Mc(new Gt([],{}),0,e))}),a}function Rs(i){const a={};return nn(i,(e,t)=>a[t]=`${e}`),a}function Ps(i,a,e){return i==e.path&&fr(a,e.parameters)}class ir{constructor(a,e){this.id=a,this.url=e}}class Cc extends ir{constructor(a,e,t="imperative",r=null){super(a,e),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Rr extends ir{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class va extends ir{constructor(a,e,t,r){super(a,e),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Tf extends ir{constructor(a,e,t,r){super(a,e),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class xf extends ir{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sn extends ir{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pg extends ir{constructor(a,e,t,r,d){super(a,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=d,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class kg extends ir{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Og extends ir{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ig{constructor(a){this.route=a,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Bg{constructor(a){this.route=a,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class gh{constructor(a){this.snapshot=a,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ng{constructor(a){this.snapshot=a,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hl{constructor(a){this.snapshot=a,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vg{constructor(a){this.snapshot=a,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zd{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class vc{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=ks(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=ks(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=_h(a,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==a)}pathFromRoot(a){return _h(a,this._root).map(e=>e.value)}}function ks(i,a){if(i===a.value)return a;for(const e of a.children){const t=ks(i,e);if(t)return t}return null}function _h(i,a){if(i===a.value)return[a];for(const e of a.children){const t=_h(i,e);if(t.length)return t.unshift(a),t}return[]}class Ta{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Si(i){const a={};return i&&i.children.forEach(e=>a[e.value.outlet]=e),a}class aa extends vc{constructor(a,e){super(a),this.snapshot=e,xa(this,a)}toString(){return this.snapshot.toString()}}function Tc(i,a){const e=function xc(i,a){const u=new Ec([],{},{},"",{},qt,a,null,i.root,-1,{});return new Ef("",new Ta(u,[]))}(i,a),t=new pt([new $n("",{})]),r=new pt({}),d=new pt({}),u=new pt({}),c=new pt(""),o=new mi(t,r,u,c,d,qt,a,e.root);return o.snapshot=e.root,new aa(new Ta(o,[]),e)}class mi{constructor(a,e,t,r,d,u,c,o){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=d,this.outlet=u,this.component=c,this._futureSnapshot=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Mt.U)(a=>Ya(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Mt.U)(a=>Ya(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Sc(i,a="emptyOnly"){const e=i.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const r=e[t],d=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(d.component)break;t--}}return function Sf(i){return i.reduce((a,e)=>{var t;return{params:{...a.params,...e.params},data:{...a.data,...e.data},resolve:{...e.data,...a.resolve,...null===(t=e.routeConfig)||void 0===t?void 0:t.data,...e._resolvedData}}},{params:{},data:{},resolve:{}})}(e.slice(t))}class Ec{constructor(a,e,t,r,d,u,c,o,s,l,h,p){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=d,this.outlet=u,this.component=c,this.routeConfig=o,this._urlSegment=s,this._lastPathIndex=l,this._correctedLastPathIndex=p??l,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ya(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ya(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ef extends vc{constructor(a,e){super(e),this.url=a,xa(this,e)}toString(){return Dc(this._root)}}function xa(i,a){a.value._routerState=i,a.children.forEach(e=>xa(i,e))}function Dc(i){const a=i.children.length>0?` { ${i.children.map(Dc).join(", ")} } `:"";return`${i.value}${a}`}function Ki(i){if(i.snapshot){const a=i.snapshot,e=i._futureSnapshot;i.snapshot=e,fr(a.queryParams,e.queryParams)||i.queryParams.next(e.queryParams),a.fragment!==e.fragment&&i.fragment.next(e.fragment),fr(a.params,e.params)||i.params.next(e.params),function il(i,a){if(i.length!==a.length)return!1;for(let e=0;efr(e.parameters,a[t].parameters))}(i.url,a.url);return e&&!(!i.parent!=!a.parent)&&(!i.parent||pl(i.parent,a.parent))}function Ue(i,a,e){if(e&&i.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const r=function bh(i,a,e){return a.children.map(t=>{for(const r of e.children)if(i.shouldReuseRoute(t.value,r.value.snapshot))return Ue(i,t,r);return Ue(i,t)})}(i,a,e);return new Ta(t,r)}{if(i.shouldAttach(a.value)){const d=i.retrieve(a.value);if(null!==d){const u=d.route;return u.value._futureSnapshot=a.value,u.children=a.children.map(c=>Ue(i,c)),u}}const t=function Df(i){return new mi(new pt(i.url),new pt(i.params),new pt(i.queryParams),new pt(i.fragment),new pt(i.data),i.outlet,i.component,i)}(a.value),r=a.children.map(d=>Ue(i,d));return new Ta(t,r)}}const Lc="ngNavigationCancelingError";function rn(i,a){const{redirectTo:e,navigationBehaviorOptions:t}=Ma(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,r=fl(!1,0,a);return r.url=e,r.navigationBehaviorOptions=t,r}function fl(i,a,e){const t=new Error("NavigationCancelingError: "+(i||""));return t[Lc]=!0,t.cancellationCode=a,e&&(t.url=e),t}function Ud(i){return Hc(i)&&Ma(i.url)}function Hc(i){return i&&i[Lc]}class qd{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new $a,this.attachRef=null}}let $a=(()=>{class i{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new qd,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Yd=!1;let Wr=(()=>{class i{constructor(e,t,r,d,u){this.parentContexts=e,this.location=t,this.changeDetector=d,this.environmentInjector=u,this.activated=null,this._activatedRoute=null,this.activateEvents=new n.vpe,this.deactivateEvents=new n.vpe,this.attachEvents=new n.vpe,this.detachEvents=new n.vpe,this.name=r||qt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new n.vHH(4012,Yd);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new n.vHH(4012,Yd);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new n.vHH(4012,Yd);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new n.vHH(4013,Yd);this._activatedRoute=e;const r=this.location,u=e._futureSnapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,o=new Wd(e,c,r.injector);if(t&&function Pr(i){return!!i.resolveComponentFactory}(t)){const s=t.resolveComponentFactory(u);this.activated=r.createComponent(s,r.length,o)}else this.activated=r.createComponent(u,{index:r.length,injector:o,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($a),n.Y36(n.s_b),n.$8M("name"),n.Y36(n.sBO),n.Y36(n.lqb))},i.\u0275dir=n.lG2({type:i,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),i})();class Wd{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===mi?this.route:a===$a?this.childContexts:this.parent.get(a,e)}}let Ah=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&n._UZ(0,"router-outlet")},dependencies:[Wr],encapsulation:2}),i})();function Gd(i,a){var e;return i.providers&&!i._injector&&(i._injector=(0,n.MMx)(i.providers,a,`Route: ${i.path}`)),null!==(e=i._injector)&&void 0!==e?e:a}function mr(i){const a=i.children&&i.children.map(mr),e=a?{...i,children:a}:{...i};return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==qt&&(e.component=Ah),e}function qi(i){return i.outlet||qt}function Mh(i,a){const e=i.filter(t=>qi(t)===a);return e.push(...i.filter(t=>qi(t)!==a)),e}function Ch(i){var a;if(!i)return null;if(null!==(a=i.routeConfig)&&void 0!==a&&a._injector)return i.routeConfig._injector;for(let e=i.parent;e;e=e.parent){const t=e.routeConfig;if(null!=t&&t._loadedInjector)return t._loadedInjector;if(null!=t&&t._injector)return t._injector}return null}class $d{constructor(a,e,t,r){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),Ki(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const r=Si(e);a.children.forEach(d=>{const u=d.value.outlet;this.deactivateRoutes(d,r[u],t),delete r[u]}),nn(r,(d,u)=>{this.deactivateRouteAndItsChildren(d,t)})}deactivateRoutes(a,e,t){const r=a.value,d=e?e.value:null;if(r===d)if(r.component){const u=t.getContext(r.outlet);u&&this.deactivateChildRoutes(a,e,u.children)}else this.deactivateChildRoutes(a,e,t);else d&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,d=Si(a);for(const u of Object.keys(d))this.deactivateRouteAndItsChildren(d[u],r);if(t&&t.outlet){const u=t.outlet.detach(),c=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:u,route:a,contexts:c})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,d=Si(a);for(const u of Object.keys(d))this.deactivateRouteAndItsChildren(d[u],r);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const r=Si(e);a.children.forEach(d=>{this.activateRoutes(d,r[d.value.outlet],t),this.forwardEvent(new Vg(d.value.snapshot))}),a.children.length&&this.forwardEvent(new Ng(a.value.snapshot))}activateRoutes(a,e,t){const r=a.value,d=e?e.value:null;if(Ki(r),r===d)if(r.component){const c=t.getOrCreateContext(r.outlet);this.activateChildRoutes(a,e,c.children)}else this.activateChildRoutes(a,e,t);else if(r.component){const c=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),c.children.onOutletReAttached(o.contexts),c.attachRef=o.componentRef,c.route=o.route.value,c.outlet&&c.outlet.attach(o.componentRef,o.route.value),Ki(o.route.value),this.activateChildRoutes(a,null,c.children)}else{var u;const o=Ch(r.snapshot),s=null!==(u=o?.get(n._Vd))&&void 0!==u?u:null;c.attachRef=null,c.route=r,c.resolver=s,c.injector=o,c.outlet&&c.outlet.activateWith(r,c.injector),this.activateChildRoutes(a,null,c.children)}}else this.activateChildRoutes(a,null,t)}}class To{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class _l{constructor(a,e){this.component=a,this.route=e}}function bl(i,a,e){const t=i._root;return Sa(t,a?a._root:null,e,[t.value])}function Al(i,a,e){return(Ch(a)??e).get(i)}function Sa(i,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const d=Si(a);return i.children.forEach(u=>{(function sa(i,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const d=i.value,u=a?a.value:null,c=e?e.getContext(i.value.outlet):null;if(u&&d.routeConfig===u.routeConfig){const o=function vh(i,a,e){if("function"==typeof e)return e(i,a);switch(e){case"pathParamsChange":return!Ga(i.url,a.url);case"pathParamsOrQueryParamsChange":return!Ga(i.url,a.url)||!fr(i.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!pl(i,a)||!fr(i.queryParams,a.queryParams);default:return!pl(i,a)}}(u,d,d.routeConfig.runGuardsAndResolvers);o?r.canActivateChecks.push(new To(t)):(d.data=u.data,d._resolvedData=u._resolvedData),Sa(i,a,d.component?c?c.children:null:e,t,r),o&&c&&c.outlet&&c.outlet.isActivated&&r.canDeactivateChecks.push(new _l(c.outlet.component,u))}else u&&yl(a,c,r),r.canActivateChecks.push(new To(t)),Sa(i,null,d.component?c?c.children:null:e,t,r)})(u,d[u.value.outlet],e,t.concat([u.value]),r),delete d[u.value.outlet]}),nn(d,(u,c)=>yl(u,e.getContext(c),r)),r}function yl(i,a,e){const t=Si(i),r=i.value;nn(t,(d,u)=>{yl(d,r.component?a?a.children.getContext(u):null:a,e)}),e.canDeactivateChecks.push(new _l(r.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,r))}function wl(i){return"function"==typeof i}function Zd(i){return i instanceof wa.K||"EmptyError"===i?.name}const kc=Symbol("INITIAL_VALUE");function Da(){return(0,An.w)(i=>(0,nr.a)(i.map(a=>a.pipe((0,ht.q)(1),vn(kc)))).pipe((0,Mt.U)(a=>{for(const e of a)if(!0!==e){if(e===kc)return kc;if(!1===e||e instanceof Wa)return e}return!0}),(0,bt.h)(a=>a!==kc),(0,ht.q)(1)))}function Q(i){return(0,Gn.z)((0,Wt.b)(a=>{if(Ma(a))throw rn(0,a)}),(0,Mt.U)(a=>!0===a))}const ve={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function At(i,a,e,t,r){const d=jt(i,a,e);return d.matched?function he(i,a,e,t){const r=a.canMatch;if(!r||0===r.length)return(0,Ee.of)(!0);const d=r.map(u=>{const c=i.get(u),o=function Ea(i){return i&&wl(i.canMatch)}(c)?c.canMatch(a,e):c(a,e);return xi(o)});return(0,Ee.of)(d).pipe(Da(),Q())}(t=Gd(a,t),a,e).pipe((0,Mt.U)(u=>!0===u?d:{...ve})):(0,Ee.of)(d)}function jt(i,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(i.hasChildren()||e.length>0)?{...ve}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const d=(a.matcher||nl)(e,i,a);if(!d)return{...ve};const u={};nn(d.posParams,(o,s)=>{u[s]=o.path});const c=d.consumed.length>0?{...u,...d.consumed[d.consumed.length-1].parameters}:u;return{matched:!0,consumedSegments:d.consumed,remainingSegments:e.slice(d.consumed.length),parameters:c,positionalParamSegments:null!==(t=d.posParams)&&void 0!==t?t:{}}}function mn(i,a,e,t,r="corrected"){if(e.length>0&&function La(i,a,e){return e.some(t=>Xd(i,a,t)&&qi(t)!==qt)}(i,e,t)){const u=new Gt(a,function Gr(i,a,e,t){const r={};r[qt]=t,t._sourceSegment=i,t._segmentIndexShift=a.length;for(const d of e)if(""===d.path&&qi(d)!==qt){const u=new Gt([],{});u._sourceSegment=i,u._segmentIndexShift=a.length,r[qi(d)]=u}return r}(i,a,t,new Gt(e,i.children)));return u._sourceSegment=i,u._segmentIndexShift=a.length,{segmentGroup:u,slicedSegments:[]}}if(0===e.length&&function zg(i,a,e){return e.some(t=>Xd(i,a,t))}(i,e,t)){const u=new Gt(i.segments,function Ei(i,a,e,t,r,d){const u={};for(const c of t)if(Xd(i,e,c)&&!r[qi(c)]){const o=new Gt([],{});o._sourceSegment=i,o._segmentIndexShift="legacy"===d?i.segments.length:a.length,u[qi(c)]=o}return{...r,...u}}(i,a,e,t,i.children,r));return u._sourceSegment=i,u._segmentIndexShift=a.length,{segmentGroup:u,slicedSegments:e}}const d=new Gt(i.segments,i.children);return d._sourceSegment=i,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}function Xd(i,a,e){return(!(i.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function So(i,a,e,t){return!!(qi(i)===t||t!==qt&&Xd(a,e,i))&&("**"===i.path||jt(a,i,e).matched)}function Ug(i,a,e){return 0===a.length&&!i.children[e]}const Sh=!1;class Eh{constructor(a){this.segmentGroup=a||null}}class qg{constructor(a){this.urlTree=a}}function Kd(i){return(0,Ui._)(new Eh(i))}function Za(i){return(0,Ui._)(new qg(i))}class uy{constructor(a,e,t,r,d){this.injector=a,this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=d,this.allowRedirects=!0}apply(){const a=mn(this.urlTree.root,[],[],this.config).segmentGroup,e=new Gt(a.segments,a.children);return this.expandSegmentGroup(this.injector,this.config,e,qt).pipe((0,Mt.U)(d=>this.createUrlTree(Ac(d),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Fn.K)(d=>{if(d instanceof qg)return this.allowRedirects=!1,this.match(d.urlTree);throw d instanceof Eh?this.noMatchError(d):d}))}match(a){return this.expandSegmentGroup(this.injector,this.config,a.root,qt).pipe((0,Mt.U)(r=>this.createUrlTree(Ac(r),a.queryParams,a.fragment))).pipe((0,Fn.K)(r=>{throw r instanceof Eh?this.noMatchError(r):r}))}noMatchError(a){return new n.vHH(4002,Sh)}createUrlTree(a,e,t){const r=Lr(a);return new Wa(r,e,t)}expandSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,Mt.U)(d=>new Gt([],d))):this.expandSegment(a,t,e,t.segments,r,!0)}expandChildren(a,e,t){const r=[];for(const d of Object.keys(t.children))"primary"===d?r.unshift(d):r.push(d);return(0,Se.D)(r).pipe((0,Fr.b)(d=>{const u=t.children[d],c=Mh(e,d);return this.expandSegmentGroup(a,c,u,d).pipe((0,Mt.U)(o=>({segment:o,outlet:d})))}),Cs((d,u)=>(d[u.outlet]=u.segment,d),{}),Pd())}expandSegment(a,e,t,r,d,u){return(0,Se.D)(t).pipe((0,Fr.b)(c=>this.expandSegmentAgainstRoute(a,e,t,c,r,d,u).pipe((0,Fn.K)(s=>{if(s instanceof Eh)return(0,Ee.of)(null);throw s}))),(0,Ur.P)(c=>!!c),(0,Fn.K)((c,o)=>{if(Zd(c))return Ug(e,r,d)?(0,Ee.of)(new Gt([],{})):Kd(e);throw c}))}expandSegmentAgainstRoute(a,e,t,r,d,u,c){return So(r,e,d,u)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(a,e,r,d,u):c&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,r,d,u):Kd(e):Kd(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,r,d,u){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,r,u):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,d,u)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,r){const d=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Za(d):this.lineralizeSegments(t,d).pipe((0,pr.z)(u=>{const c=new Gt(u,{});return this.expandSegment(a,c,e,u,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,d,u){const{matched:c,consumedSegments:o,remainingSegments:s,positionalParamSegments:l}=jt(e,r,d);if(!c)return Kd(e);const h=this.applyRedirectCommands(o,r.redirectTo,l);return r.redirectTo.startsWith("/")?Za(h):this.lineralizeSegments(r,h).pipe((0,pr.z)(p=>this.expandSegment(a,e,t,p.concat(s),u,!1)))}matchSegmentAgainstRoute(a,e,t,r,d){return"**"===t.path?(a=Gd(t,a),t.loadChildren?(t._loadedRoutes?(0,Ee.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(a,t)).pipe((0,Mt.U)(c=>(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,new Gt(r,{})))):(0,Ee.of)(new Gt(r,{}))):At(e,t,r,a).pipe((0,An.w)(({matched:u,consumedSegments:c,remainingSegments:o})=>{var s;return u?(a=null!==(s=t._injector)&&void 0!==s?s:a,this.getChildConfig(a,t,r).pipe((0,pr.z)(h=>{var p;const m=null!==(p=h.injector)&&void 0!==p?p:a,g=h.routes,{segmentGroup:f,slicedSegments:w}=mn(e,c,o,g),N=new Gt(f.segments,f.children);if(0===w.length&&N.hasChildren())return this.expandChildren(m,g,N).pipe((0,Mt.U)(Mi=>new Gt(c,Mi)));if(0===g.length&&0===w.length)return(0,Ee.of)(new Gt(c,{}));const se=qi(t)===d;return this.expandSegment(m,N,g,w,se?qt:d,!0).pipe((0,Mt.U)(ot=>new Gt(c.concat(ot.segments),ot.children)))}))):Kd(e)}))}getChildConfig(a,e,t){return e.children?(0,Ee.of)({routes:e.children,injector:a}):e.loadChildren?void 0!==e._loadedRoutes?(0,Ee.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function q(i,a,e,t){const r=a.canLoad;if(void 0===r||0===r.length)return(0,Ee.of)(!0);const d=r.map(u=>{const c=i.get(u),o=function Ml(i){return i&&wl(i.canLoad)}(c)?c.canLoad(a,e):c(a,e);return xi(o)});return(0,Ee.of)(d).pipe(Da(),Q())}(a,e,t).pipe((0,pr.z)(r=>r?this.configLoader.loadChildren(a,e).pipe((0,Wt.b)(d=>{e._loadedRoutes=d.routes,e._loadedInjector=d.injector})):function cy(i){return(0,Ui._)(fl(Sh,3))}())):(0,Ee.of)({routes:[],injector:a})}lineralizeSegments(a,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,Ee.of)(t);if(r.numberOfChildren>1||!r.children[qt])return(0,Ui._)(new n.vHH(4e3,Sh));r=r.children[qt]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreateUrlTree(a,e,t,r){const d=this.createSegmentGroup(a,e.root,t,r);return new Wa(d,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return nn(a,(r,d)=>{if("string"==typeof r&&r.startsWith(":")){const c=r.substring(1);t[d]=e[c]}else t[d]=r}),t}createSegmentGroup(a,e,t,r){const d=this.createSegments(a,e.segments,t,r);let u={};return nn(e.children,(c,o)=>{u[o]=this.createSegmentGroup(a,c,t,r)}),new Gt(d,u)}createSegments(a,e,t,r){return e.map(d=>d.path.startsWith(":")?this.findPosParam(a,d,r):this.findOrReturn(d,t))}findPosParam(a,e,t){const r=t[e.path.substring(1)];if(!r)throw new n.vHH(4001,Sh);return r}findOrReturn(a,e){let t=0;for(const r of e){if(r.path===a.path)return e.splice(t),r;t++}return a}}class py{}class my{constructor(a,e,t,r,d,u,c,o){this.injector=a,this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=d,this.paramsInheritanceStrategy=u,this.relativeLinkResolution=c,this.urlSerializer=o}recognize(){const a=mn(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,a,qt).pipe((0,Mt.U)(e=>{if(null===e)return null;const t=new Ec([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},qt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ta(t,e),d=new Ef(this.url,r);return this.inheritParamsAndData(d._root),d}))}inheritParamsAndData(a){const e=a.value,t=Sc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(a,e,t):this.processSegment(a,e,t,t.segments,r)}processChildren(a,e,t){return(0,Se.D)(Object.keys(t.children)).pipe((0,Fr.b)(r=>{const d=t.children[r],u=Mh(e,r);return this.processSegmentGroup(a,u,d,r)}),Cs((r,d)=>r&&d?(r.push(...d),r):null),fc(r=>null!==r),(0,pc.d)(null),Pd(),(0,Mt.U)(r=>{if(null===r)return null;const d=Wg(r);return function gy(i){i.sort((a,e)=>a.value.outlet===qt?-1:e.value.outlet===qt?1:a.value.outlet.localeCompare(e.value.outlet))}(d),d}))}processSegment(a,e,t,r,d){return(0,Se.D)(e).pipe((0,Fr.b)(u=>{var c;return this.processSegmentAgainstRoute(null!==(c=u._injector)&&void 0!==c?c:a,u,t,r,d)}),(0,Ur.P)(u=>!!u),(0,Fn.K)(u=>{if(Zd(u))return Ug(t,r,d)?(0,Ee.of)([]):(0,Ee.of)(null);throw u}))}processSegmentAgainstRoute(a,e,t,r,d){if(e.redirectTo||!So(e,t,r,d))return(0,Ee.of)(null);let u;if("**"===e.path){var c,o;const s=r.length>0?oh(r).parameters:{},l=Ha(t)+r.length,h=new Ec(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,If(e),qi(e),null!==(c=null!==(o=e.component)&&void 0!==o?o:e._loadedComponent)&&void 0!==c?c:null,e,Of(t),l,Bf(e),l);u=(0,Ee.of)({snapshot:h,consumedSegments:[],remainingSegments:[]})}else u=At(t,e,r,a).pipe((0,Mt.U)(({matched:s,consumedSegments:l,remainingSegments:h,parameters:p})=>{var m,g;if(!s)return null;const f=Ha(t)+l.length;return{snapshot:new Ec(l,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,If(e),qi(e),null!==(m=null!==(g=e.component)&&void 0!==g?g:e._loadedComponent)&&void 0!==m?m:null,e,Of(t),f,Bf(e),f),consumedSegments:l,remainingSegments:h}}));return u.pipe((0,An.w)(s=>{var l,h;if(null===s)return(0,Ee.of)(null);const{snapshot:p,consumedSegments:m,remainingSegments:g}=s;a=null!==(l=e._injector)&&void 0!==l?l:a;const f=null!==(h=e._loadedInjector)&&void 0!==h?h:a,w=function _y(i){return i.children?i.children:i.loadChildren?i._loadedRoutes:[]}(e),{segmentGroup:N,slicedSegments:se}=mn(t,m,g,w.filter(ot=>void 0===ot.redirectTo),this.relativeLinkResolution);if(0===se.length&&N.hasChildren())return this.processChildren(f,w,N).pipe((0,Mt.U)(ot=>null===ot?null:[new Ta(p,ot)]));if(0===w.length&&0===se.length)return(0,Ee.of)([new Ta(p,[])]);const Pe=qi(e)===d;return this.processSegment(f,w,N,se,Pe?qt:d).pipe((0,Mt.U)(ot=>null===ot?null:[new Ta(p,ot)]))}))}}function QT(i){const a=i.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function Wg(i){const a=[],e=new Set;for(const t of i){if(!QT(t)){a.push(t);continue}const r=a.find(d=>t.value.routeConfig===d.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):a.push(t)}for(const t of e){const r=Wg(t.children);a.push(new Ta(t.value,r))}return a.filter(t=>!e.has(t))}function Of(i){let a=i;for(;a._sourceSegment;)a=a._sourceSegment;return a}function Ha(i){var a;let e=i,t=null!==(a=e._segmentIndexShift)&&void 0!==a?a:0;for(;e._sourceSegment;){var r;e=e._sourceSegment,t+=null!==(r=e._segmentIndexShift)&&void 0!==r?r:0}return t-1}function If(i){return i.data||{}}function Bf(i){return i.resolve||{}}const $g=Symbol("RouteTitle");function by(i){return"string"==typeof i.title||null===i.title}function Zg(i){return(0,An.w)(a=>{const e=i(a);return e?(0,Se.D)(e).pipe((0,Mt.U)(()=>a)):(0,Ee.of)(a)})}let Ff=(()=>{class i{buildTitle(e){let t,r=e.root;for(;void 0!==r;){var d;t=null!==(d=this.getResolvedTitleForRoute(r))&&void 0!==d?d:t,r=r.children.find(u=>u.outlet===qt)}return t}getResolvedTitleForRoute(e){return e.data[$g]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(){return(0,n.f3M)(Jg)},providedIn:"root"}),i})(),Jg=(()=>{class i extends Ff{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(ce))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class Ay{}class wy extends class yy{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Bc=new n.OlP("",{providedIn:"root",factory:()=>({})}),tu=new n.OlP("ROUTES");let Uf=(()=>{class i{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Ee.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=xi(e.loadComponent()).pipe((0,Wt.b)(d=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=d}),bo(()=>{this.componentLoaders.delete(e)})),r=new mf(t,()=>new Le.x).pipe(Ms());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Ee.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const d=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,Mt.U)(c=>{this.onLoadEndListener&&this.onLoadEndListener(t);let o,s,l=!1;Array.isArray(c)?s=c:(o=c.create(e).injector,s=rl(o.get(tu,[],n.XFs.Self|n.XFs.Optional)));return{routes:s.map(mr),injector:o}}),bo(()=>{this.childrenLoaders.delete(t)})),u=new mf(d,()=>new Le.x).pipe(Ms());return this.childrenLoaders.set(t,u),u}loadModuleFactoryOrRoutes(e){return xi(e()).pipe((0,pr.z)(t=>t instanceof n.YKP||Array.isArray(t)?(0,Ee.of)(t):(0,Se.D)(this.compiler.compileModuleAsync(t))))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.zs3),n.LFG(n.Sil))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class gi{}class Xg{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function qf(i){throw i}function Kg(i,a,e){return a.parse("/")}const My={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Cy={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function e1(){var i,a;const e=(0,n.f3M)(Ts),t=(0,n.f3M)($a),r=(0,n.f3M)(T.Ye),d=(0,n.f3M)(n.zs3),u=(0,n.f3M)(n.Sil),c=null!==(i=(0,n.f3M)(tu,{optional:!0}))&&void 0!==i?i:[],o=null!==(a=(0,n.f3M)(Bc,{optional:!0}))&&void 0!==a?a:{},s=(0,n.f3M)(Jg),l=(0,n.f3M)(Ff,{optional:!0}),h=(0,n.f3M)(gi,{optional:!0}),p=(0,n.f3M)(Ay,{optional:!0}),m=new Dn(null,e,t,r,d,u,rl(c));return h&&(m.urlHandlingStrategy=h),p&&(m.routeReuseStrategy=p),m.titleStrategy=l??s,function vy(i,a){i.errorHandler&&(a.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(a.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(a.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(a.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(a.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(a.canceledNavigationResolution=i.canceledNavigationResolution)}(o,m),m}let Dn=(()=>{class i{constructor(e,t,r,d,u,c,o){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=d,this.config=o,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Le.x,this.errorHandler=qf,this.malformedUriErrorHandler=Kg,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Ee.of)(void 0),this.urlHandlingStrategy=new Xg,this.routeReuseStrategy=new wy,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=u.get(Uf),this.configLoader.onLoadEndListener=p=>this.triggerEvent(new Bg(p)),this.configLoader.onLoadStartListener=p=>this.triggerEvent(new Ig(p)),this.ngModule=u.get(n.h0i),this.console=u.get(n.c2e);const h=u.get(n.R0b);this.isNgZoneEnabled=h instanceof n.R0b&&n.R0b.isInAngularZone(),this.resetConfig(o),this.currentUrlTree=function ch(){return new Wa(new Gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Tc(this.currentUrlTree,this.rootComponentType),this.transitions=new pt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,bt.h)(r=>0!==r.id),(0,Mt.U)(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,An.w)(r=>{let d=!1,u=!1;return(0,Ee.of)(r).pipe((0,Wt.b)(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,An.w)(c=>{const o=this.browserUrlTree.toString(),s=!this.navigated||c.extractedUrl.toString()!==o||o!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||s)&&this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return Ty(c.source)&&(this.browserUrlTree=c.extractedUrl),(0,Ee.of)(c).pipe((0,An.w)(h=>{const p=this.transitions.getValue();return t.next(new Cc(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),p!==this.transitions.getValue()?Xi.E:Promise.resolve(h)}),function hy(i,a,e,t){return(0,An.w)(r=>function dy(i,a,e,t,r){return new uy(i,a,e,t,r).apply()}(i,a,e,r.extractedUrl,t).pipe((0,Mt.U)(d=>({...r,urlAfterRedirects:d}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Wt.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},r.urlAfterRedirects=h.urlAfterRedirects}),function Gg(i,a,e,t,r,d){return(0,pr.z)(u=>function fy(i,a,e,t,r,d,u="emptyOnly",c="legacy"){return new my(i,a,e,t,r,u,c,d).recognize().pipe((0,An.w)(o=>null===o?function Yg(i){return new yn.y(a=>a.error(i))}(new py):(0,Ee.of)(o)))}(i,a,e,u.urlAfterRedirects,t.serialize(u.urlAfterRedirects),t,r,d).pipe((0,Mt.U)(c=>({...u,targetSnapshot:c}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Wt.b)(h=>{if(r.targetSnapshot=h.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(m,h)}this.browserUrlTree=h.urlAfterRedirects}const p=new xf(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(p)}));if(s&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:m,source:g,restoredState:f,extras:w}=c,N=new Cc(p,this.serializeUrl(m),g,f);t.next(N);const se=Tc(m,this.rootComponentType).snapshot;return r={...c,targetSnapshot:se,urlAfterRedirects:m,extras:{...w,skipLocationChange:!1,replaceUrl:!1}},(0,Ee.of)(r)}return this.rawUrlTree=c.rawUrl,c.resolve(null),Xi.E}),(0,Wt.b)(c=>{const o=new Sn(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(o)}),(0,Mt.U)(c=>r={...c,guards:bl(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),function xh(i,a){return(0,pr.z)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:d,canDeactivateChecks:u}}=e;return 0===u.length&&0===d.length?(0,Ee.of)({...e,guardsResult:!0}):function Jd(i,a,e,t){return(0,Se.D)(i).pipe((0,pr.z)(r=>function V(i,a,e,t,r){const d=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!d||0===d.length)return(0,Ee.of)(!0);const u=d.map(c=>{const o=Al(c,a,r);return xi(function Th(i){return i&&wl(i.canDeactivate)}(o)?o.canDeactivate(i,a,e,t):o(i,a,e,t)).pipe((0,Ur.P)())});return(0,Ee.of)(u).pipe(Da())}(r.component,r.route,e,a,t)),(0,Ur.P)(r=>!0!==r,!0))}(u,t,r,i).pipe((0,pr.z)(c=>c&&function xo(i){return"boolean"==typeof i}(c)?function Os(i,a,e,t){return(0,Se.D)(a).pipe((0,Fr.b)(r=>(0,tr.z)(function Jt(i,a){return null!==i&&a&&a(new gh(i)),(0,Ee.of)(!0)}(r.route.parent,t),function Qd(i,a){return null!==i&&a&&a(new hl(i)),(0,Ee.of)(!0)}(r.route,t),function P(i,a,e){const t=a[a.length-1],d=a.slice(0,a.length-1).reverse().map(u=>function Rf(i){const a=i.routeConfig?i.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:i,guards:a}:null}(u)).filter(u=>null!==u).map(u=>Rn(()=>{const c=u.guards.map(o=>{const s=Al(o,u.node,e);return xi(function Fg(i){return i&&wl(i.canActivateChild)}(s)?s.canActivateChild(t,i):s(t,i)).pipe((0,Ur.P)())});return(0,Ee.of)(c).pipe(Da())}));return(0,Ee.of)(d).pipe(Da())}(i,r.path,e),function S(i,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Ee.of)(!0);const r=t.map(d=>Rn(()=>{const u=Al(d,a,e);return xi(function Pf(i){return i&&wl(i.canActivate)}(u)?u.canActivate(a,i):u(a,i)).pipe((0,Ur.P)())}));return(0,Ee.of)(r).pipe(Da())}(i,r.route,e))),(0,Ur.P)(r=>!0!==r,!0))}(t,d,i,a):(0,Ee.of)(c)),(0,Mt.U)(c=>({...e,guardsResult:c})))})}(this.ngModule.injector,c=>this.triggerEvent(c)),(0,Wt.b)(c=>{if(r.guardsResult=c.guardsResult,Ma(c.guardsResult))throw rn(0,c.guardsResult);const o=new Pg(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.triggerEvent(o)}),(0,bt.h)(c=>!!c.guardsResult||(this.restoreHistory(c),this.cancelNavigationTransition(c,"",3),!1)),Zg(c=>{if(c.guards.canActivateChecks.length)return(0,Ee.of)(c).pipe((0,Wt.b)(o=>{const s=new kg(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(s)}),(0,An.w)(o=>{let s=!1;return(0,Ee.of)(o).pipe(function XT(i,a){return(0,pr.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,Ee.of)(e);let d=0;return(0,Se.D)(r).pipe((0,Fr.b)(u=>function KT(i,a,e,t){const r=i.routeConfig,d=i._resolve;return void 0!==r?.title&&!by(r)&&(d[$g]=r.title),function Nf(i,a,e,t){const r=function Vf(i){return[...Object.keys(i),...Object.getOwnPropertySymbols(i)]}(i);if(0===r.length)return(0,Ee.of)({});const d={};return(0,Se.D)(r).pipe((0,pr.z)(u=>function jf(i,a,e,t){const r=Al(i,a,t);return xi(r.resolve?r.resolve(a,e):r(a,e))}(i[u],a,e,t).pipe((0,Ur.P)(),(0,Wt.b)(c=>{d[u]=c}))),Dr(1),(0,tl.h)(d),(0,Fn.K)(u=>Zd(u)?Xi.E:(0,Ui._)(u)))}(d,i,a,t).pipe((0,Mt.U)(u=>(i._resolvedData=u,i.data=Sc(i,e).resolve,r&&by(r)&&(i.data[$g]=r.title),null)))}(u.route,t,i,a)),(0,Wt.b)(()=>d++),Dr(1),(0,pr.z)(u=>d===r.length?(0,Ee.of)(e):Xi.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Wt.b)({next:()=>s=!0,complete:()=>{s||(this.restoreHistory(o),this.cancelNavigationTransition(o,"",2))}}))}),(0,Wt.b)(o=>{const s=new Og(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(s)}))}),Zg(c=>{const o=s=>{var l;const h=[];null!==(l=s.routeConfig)&&void 0!==l&&l.loadComponent&&!s.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(s.routeConfig).pipe((0,Wt.b)(p=>{s.component=p}),(0,Mt.U)(()=>{})));for(const p of s.children)h.push(...o(p));return h};return(0,nr.a)(o(c.targetSnapshot.root)).pipe((0,pc.d)(),(0,ht.q)(1))}),Zg(()=>this.afterPreactivation()),(0,Mt.U)(c=>{const o=function vo(i,a,e){const t=Ue(i,a._root,e?e._root:void 0);return new aa(t,a)}(this.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return r={...c,targetRouterState:o}}),(0,Wt.b)(c=>{this.currentUrlTree=c.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl),this.routerState=c.targetRouterState,"deferred"===this.urlUpdateStrategy&&(c.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,c),this.browserUrlTree=c.urlAfterRedirects)}),((i,a,e)=>(0,Mt.U)(t=>(new $d(a,t.targetRouterState,t.currentRouterState,e).activate(i),t)))(this.rootContexts,this.routeReuseStrategy,c=>this.triggerEvent(c)),(0,Wt.b)({next(){d=!0},complete(){d=!0}}),bo(()=>{var c;d||u||this.cancelNavigationTransition(r,"",1),(null===(c=this.currentNavigation)||void 0===c?void 0:c.id)===r.id&&(this.currentNavigation=null)}),(0,Fn.K)(c=>{if(u=!0,Hc(c)){Ud(c)||(this.navigated=!0,this.restoreHistory(r,!0));const s=new va(r.id,this.serializeUrl(r.extractedUrl),c.message,c.cancellationCode);if(t.next(s),Ud(c)){const l=this.urlHandlingStrategy.merge(c.url,this.rawUrlTree),h={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Ty(r.source)};this.scheduleNavigation(l,"imperative",null,h,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{var o;this.restoreHistory(r,!0);const s=new Tf(r.id,this.serializeUrl(r.extractedUrl),c,null!==(o=r.targetSnapshot)&&void 0!==o?o:void 0);t.next(s);try{r.resolve(this.errorHandler(c))}catch(l){r.reject(l)}}return Xi.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{var r;const d={replaceUrl:!0},u=null!==(r=e.state)&&void 0!==r&&r.navigationId?e.state:null;if(u){const o={...u};delete o.navigationId,delete o.\u0275routerPageId,0!==Object.keys(o).length&&(d.state=o)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,u,d)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(mr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:d,fragment:u,queryParamsHandling:c,preserveFragment:o}=t,s=r||this.routerState.root,l=o?this.currentUrlTree.fragment:u;let h=null;switch(c){case"merge":h={...this.currentUrlTree.queryParams,...d};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=d||null}return null!==h&&(h=this.removeEmptyProps(h)),Vd(s,this.currentUrlTree,e,h,l??null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=Ma(e)?e:this.parseUrl(e),d=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(d,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function ex(i){for(let a=0;a{const d=e[r];return null!=d&&(t[r]=d),t},{})}processNavigations(){this.navigations.subscribe(e=>{var t;this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Rr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(t=this.titleStrategy)||void 0===t||t.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,d,u){if(this.disposed)return Promise.resolve(!1);let c,o,s;u?(c=u.resolve,o=u.reject,s=u.promise):s=new Promise((g,f)=>{c=g,o=f});const l=++this.navigationId;let h;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(r=this.location.getState()),r&&r.\u0275routerPageId)h=r.\u0275routerPageId;else if(d.replaceUrl||d.skipLocationChange){var p;h=null!==(p=this.browserPageId)&&void 0!==p?p:0}else{var m;h=(null!==(m=this.browserPageId)&&void 0!==m?m:0)+1}else h=0;return this.setTransition({id:l,targetPageId:h,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:d,resolve:c,reject:o,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(g=>Promise.reject(g))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),d={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",d):this.location.go(r,"",d)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){var r,d;const u=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===u?this.currentUrlTree===(null===(d=this.currentNavigation)||void 0===d?void 0:d.finalUrl)&&0===u&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(u)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,r){const d=new va(e.id,this.serializeUrl(e.extractedUrl),t,r);this.triggerEvent(d),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:function(){return e1()},providedIn:"root"}),i})();function Ty(i){return"imperative"!==i}let oa=(()=>{class i{constructor(e,t,r,d,u){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=d,this.el=u,this.commands=null,this.onChanges=new Le.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,n.D6c)(this.skipLocationChange),replaceUrl:(0,n.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,n.D6c)(this.preserveFragment)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Dn),n.Y36(mi),n.$8M("tabindex"),n.Y36(n.Qsj),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.TTD]}),i})(),Cl=(()=>{class i{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new Le.x,this.subscription=e.events.subscribe(d=>{d instanceof Rr&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,d,u){if(0!==e||t||r||d||u||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const c={skipLocationChange:(0,n.D6c)(this.skipLocationChange),replaceUrl:(0,n.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,c),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,n.D6c)(this.preserveFragment)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Dn),n.Y36(mi),n.Y36(T.S$))},i.\u0275dir=n.lG2({type:i,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t.onClick(d.button,d.ctrlKey,d.shiftKey,d.altKey,d.metaKey)}),2&e&&n.uIk("target",t.target)("href",t.href,n.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.TTD]}),i})();class Yf{}let xy=(()=>{class i{preload(e,t){return t().pipe((0,Fn.K)(()=>(0,Ee.of)(null)))}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Wf=(()=>{class i{constructor(e,t,r,d,u){this.router=e,this.injector=r,this.preloadingStrategy=d,this.loader=u}setUpPreloading(){this.subscription=this.router.events.pipe((0,bt.h)(e=>e instanceof Rr),(0,Fr.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const o of t){var d,u;o.providers&&!o._injector&&(o._injector=(0,n.MMx)(o.providers,e,`Route: ${o.path}`));const s=null!==(d=o._injector)&&void 0!==d?d:e,l=null!==(u=o._loadedInjector)&&void 0!==u?u:s;if(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)r.push(this.preloadConfig(s,o));else if(o.children||o._loadedRoutes){var c;r.push(this.processRoutes(l,null!==(c=o.children)&&void 0!==c?c:o._loadedRoutes))}}return(0,Se.D)(r).pipe((0,ra.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;r=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Ee.of)(null);const d=r.pipe((0,pr.z)(u=>{var c;return null===u?(0,Ee.of)(void 0):(t._loadedRoutes=u.routes,t._loadedInjector=u.injector,this.processRoutes(null!==(c=u.injector)&&void 0!==c?c:e,u.routes))}));if(t.loadComponent&&!t._loadedComponent){const u=this.loader.loadComponent(t);return(0,Se.D)([d,u]).pipe((0,ra.J)())}return d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Dn),n.LFG(n.Sil),n.LFG(n.lqb),n.LFG(Yf),n.LFG(Uf))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Hh=new n.OlP("");let tx=(()=>{class i{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Cc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Rr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof zd&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new zd(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Gf=new n.OlP("ROUTER_FORROOT_GUARD"),$f=new n.OlP(""),vl=[T.Ye,{provide:Ts,useClass:Ao},{provide:Dn,useFactory:e1},$a,{provide:mi,useFactory:function Ey(i){return i.routerState.root},deps:[Dn]},Uf];function Zf(){return new n.PXZ("Router",Dn)}let Tl=(()=>{class i{constructor(e){}static forRoot(e,t){return{ngModule:i,providers:[vl,[],Qf(e),{provide:Gf,useFactory:xl,deps:[[Dn,new n.FiY,new n.tp0]]},{provide:Bc,useValue:t||{}},null!=t&&t.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:Hh,useFactory:()=>{const i=(0,n.f3M)(Dn),a=(0,n.f3M)(T.EM),e=(0,n.f3M)(Bc);return e.scrollOffset&&a.setOffset(e.scrollOffset),new tx(i,a,e)}},null!=t&&t.preloadingStrategy?e0(t.preloadingStrategy):[],{provide:n.PXZ,multi:!0,useFactory:Zf},null!=t&&t.initialNavigation?Ly(t):[],[{provide:a1,useFactory:Xf},{provide:n.tb,multi:!0,useExisting:a1}]]}}static forChild(e){return{ngModule:i,providers:[Qf(e)]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Gf,8))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();function xl(i){return"guarded"}function Qf(i){return[{provide:tu,multi:!0,useValue:i}]}function Xf(){const i=(0,n.f3M)(n.zs3);return a=>{var e,t;const r=i.get(n.z2F);if(a!==r.components[0])return;const d=i.get(Dn),u=i.get(Sl);1===i.get(Kf)&&d.initialNavigation(),null===(e=i.get($f,null,n.XFs.Optional))||void 0===e||e.setUpPreloading(),null===(t=i.get(Hh,null,n.XFs.Optional))||void 0===t||t.init(),d.resetRootComponentType(r.componentTypes[0]),u.next(),u.complete()}}const a1=new n.OlP("");function Ly(i){return["disabled"===i.initialNavigation?[{provide:n.ip1,multi:!0,useFactory:()=>{const i=(0,n.f3M)(Dn);return()=>{i.setUpLocationChangeListener()}}},{provide:Kf,useValue:2}]:[],"enabledBlocking"===i.initialNavigation?[{provide:Kf,useValue:0},{provide:n.ip1,multi:!0,deps:[n.zs3],useFactory:i=>{const a=i.get(T.V_,Promise.resolve(null));let e=!1;return()=>a.then(()=>new Promise(r=>{const d=i.get(Dn),u=i.get(Sl);(function t(r){i.get(Dn).events.pipe((0,bt.h)(u=>u instanceof Rr||u instanceof va||u instanceof Tf),(0,Mt.U)(u=>u instanceof Rr||u instanceof va&&(0===u.code||1===u.code)&&null),(0,bt.h)(u=>null!==u),(0,ht.q)(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),d.afterPreactivation=()=>(r(!0),e||u.closed?(0,Ee.of)(void 0):u),d.initialNavigation()}))}}]:[]]}const Sl=new n.OlP("",{factory:()=>new Le.x}),Kf=new n.OlP("",{providedIn:"root",factory:()=>1});function e0(i){return[Wf,{provide:$f,useExisting:Wf},{provide:Yf,useExisting:i}]}let Ph;try{Ph=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ph=!1}let nu,Qn=(()=>{class i{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,T.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Ph)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.Lbi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const o1=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Nc(){if(nu)return nu;if("object"!=typeof document||!document)return nu=new Set(o1),nu;let i=document.createElement("input");return nu=new Set(o1.filter(a=>(i.setAttribute("type",a),i.type===a))),nu}let iu,kh,jc,n0;function kr(i){return function Vc(){if(null==iu&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>iu=!0}))}finally{iu=iu||!1}return iu}()?i:!!i.capture}function t0(){if(null==jc){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return jc=!1,jc;if("scrollBehavior"in document.documentElement.style)jc=!0;else{const i=Element.prototype.scrollTo;jc=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return jc}function ru(){if("object"!=typeof document||!document)return 0;if(null==kh){const i=document.createElement("div"),a=i.style;i.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",i.appendChild(e),document.body.appendChild(i),kh=0,0===i.scrollLeft&&(i.scrollLeft=1,kh=0===i.scrollLeft?1:2),i.remove()}return kh}function au(i){if(function Oy(){if(null==n0){const i=typeof document<"u"?document.head:null;n0=!(!i||!i.createShadowRoot&&!i.attachShadow)}return n0}()){const a=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function r0(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){const a=i.shadowRoot.activeElement;if(a===i)break;i=a}return i}function Or(i){return i.composedPath?i.composedPath()[0]:i.target}function a0(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Di(i,...a){return a.length?a.some(e=>i[e]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var du=E(8372);function cw(i){return(0,bt.h)((a,e)=>i<=e)}function qc(i,a=ah.y){return i=i??dw,(0,hr.e)((e,t)=>{let r,d=!0;e.subscribe((0,at.x)(t,u=>{const c=a(u);(d||!i(r,c))&&(d=!1,r=c,t.next(u))}))})}function dw(i,a){return i===a}var S1=E(5032);function rt(i){return(0,hr.e)((a,e)=>{(0,oi.Xf)(i).subscribe((0,at.x)(e,()=>e.complete(),S1.Z)),!e.closed&&a.subscribe(e)})}function Ge(i){return null!=i&&"false"!=`${i}`}function Qt(i,a=0){return E1(i)?Number(i):a}function E1(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function Yc(i){return Array.isArray(i)?i:[i]}function Li(i){return null==i?"":"string"==typeof i?i:`${i}px`}function ci(i){return i instanceof n.SBq?i.nativeElement:i}let D1=(()=>{class i{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),L1=(()=>{class i{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ci(e);return new yn.y(r=>{const u=this._observeElement(t).subscribe(r);return()=>{u.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Le.x,r=this._mutationObserverFactory.create(d=>t.next(d));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(D1))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),c0=(()=>{class i{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new n.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ge(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Qt(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,du.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(L1),n.Y36(n.SBq),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),i})(),uu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[D1]}),i})();const Vt=new Set;let Dl,H1=(()=>{class i{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):hw}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function R1(i){if(!Vt.has(i))try{Dl||(Dl=document.createElement("style"),Dl.setAttribute("type","text/css"),document.head.appendChild(Dl)),Dl.sheet&&(Dl.sheet.insertRule(`@media ${i} {body{ }}`,0),Vt.add(i))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function hw(i){return{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{}}}let P1=(()=>{class i{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Le.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return d0(Yc(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=d0(Yc(e)).map(u=>this._registerQuery(u).observable);let d=(0,nr.a)(r);return d=(0,tr.z)(d.pipe((0,ht.q)(1)),d.pipe(cw(1),(0,du.b)(0))),d.pipe((0,Mt.U)(u=>{const c={matches:!1,breakpoints:{}};return u.forEach(({matches:o,query:s})=>{c.matches=c.matches||o,c.breakpoints[s]=o}),c}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),d={observable:new yn.y(u=>{const c=o=>this._zone.run(()=>u.next(o));return t.addListener(c),()=>{t.removeListener(c)}}).pipe(vn(t),(0,Mt.U)(({matches:u})=>({query:e,matches:u})),rt(this._destroySubject)),mql:t};return this._queries.set(e,d),d}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(H1),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function d0(i){return i.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}function h0(i,a){return(i.getAttribute(a)||"").match(/\S+/g)||[]}const p0="cdk-describedby-message",Qa="cdk-describedby-host";let f0=0,hu=(()=>{class i{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+f0++,this._document=e,this._id=(0,n.f3M)(n.AFp)+"-"+f0++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const d=pu(t,r);"string"!=typeof t?(k1(t,this._id),this._messageRegistry.set(d,{messageElement:t,referenceCount:0})):this._messageRegistry.has(d)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,d)||this._addMessageReference(e,d)}removeDescription(e,t,r){var d;if(!t||!this._isElementNode(e))return;const u=pu(t,r);if(this._isElementDescribedByMessage(e,u)&&this._removeMessageReference(e,u),"string"==typeof t){const c=this._messageRegistry.get(u);c&&0===c.referenceCount&&this._deleteMessageElement(u)}0===(null===(d=this._messagesContainer)||void 0===d?void 0:d.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${Qa}="${this._id}"]`);for(let r=0;r0!=r.indexOf(p0));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function fw(i,a,e){const t=h0(i,a);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),i.setAttribute(a,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Qa,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function mw(i,a,e){const r=h0(i,a).filter(d=>d!=e.trim());r.length?i.setAttribute(a,r.join(" ")):i.removeAttribute(a)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Qa)}_isElementDescribedByMessage(e,t){const r=h0(e,"aria-describedby"),d=this._messageRegistry.get(t),u=d&&d.messageElement.id;return!!u&&-1!=r.indexOf(u)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),d=e.getAttribute("aria-label");return!(!r||d&&d.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0),n.LFG(Qn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function pu(i,a){return"string"==typeof i?`${a||""}/${i}`:i}function k1(i,a){i.id||(i.id=`${p0}-${a}-${f0++}`)}class _w{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Le.x,this._typeaheadSubscription=Nt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Le.x,this.change=new Le.x,a instanceof n.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Wt.b)(e=>this._pressedLetters.push(e)),(0,du.b)(a),(0,bt.h)(()=>this._pressedLetters.length>0),(0,Mt.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!a[d]||this._allowedModifierKeys.indexOf(d)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Di(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof n.n_E?this._items.toArray():this._items}}class bw extends _w{setActiveItem(a){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(a),this.activeItem&&this.activeItem.setActiveStyles()}}class m0 extends _w{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let Wc=(()=>{class i{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Aw(i){return!!(i.offsetWidth||i.offsetHeight||"function"==typeof i.getClientRects&&i.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function Gx(i){try{return i.frameElement}catch{return null}}(function vw(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}(e));if(t&&(-1===I1(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),d=I1(e);return e.hasAttribute("contenteditable")?-1!==d:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function Mw(i){let a=i.nodeName.toLowerCase(),e="input"===a&&i.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==d:"video"===r?-1!==d&&(null!==d||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function Cw(i){return!function yw(i){return function Vh(i){return"input"==i.nodeName.toLowerCase()}(i)&&"hidden"==i.type}(i)&&(function Gc(i){let a=i.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(i)||function O1(i){return function ww(i){return"a"==i.nodeName.toLowerCase()}(i)&&i.hasAttribute("href")}(i)||i.hasAttribute("contenteditable")||g0(i))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function g0(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;let a=i.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function I1(i){if(!g0(i))return null;const a=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class Tw{constructor(a,e,t,r,d=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,d||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const r=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(r)return r}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,ht.q)(1)).subscribe(a)}}let fu=(()=>{class i{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new Tw(e,this._checker,this._ngZone,this._document,t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Wc),n.LFG(n.R0b),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function jh(i){return 0===i.buttons||0===i.offsetX&&0===i.offsetY}function _0(i){const a=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const $c=new n.OlP("cdk-input-modality-detector-options"),V1={ignoreKeys:[18,17,224,91,16]},Bs=kr({passive:!0,capture:!0});let Pa=(()=>{class i{constructor(e,t,r,d){this._platform=e,this._mostRecentTarget=null,this._modality=new pt(null),this._lastTouchMs=0,this._onKeydown=u=>{var c,o;null!==(c=this._options)&&void 0!==c&&null!==(o=c.ignoreKeys)&&void 0!==o&&o.some(s=>s===u.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Or(u))},this._onMousedown=u=>{Date.now()-this._lastTouchMs<650||(this._modality.next(jh(u)?"keyboard":"mouse"),this._mostRecentTarget=Or(u))},this._onTouchstart=u=>{_0(u)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Or(u))},this._options={...V1,...d},this.modalityDetected=this._modality.pipe(cw(1)),this.modalityChanged=this.modalityDetected.pipe(qc()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Bs),r.addEventListener("mousedown",this._onMousedown,Bs),r.addEventListener("touchstart",this._onTouchstart,Bs)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Bs),document.removeEventListener("mousedown",this._onMousedown,Bs),document.removeEventListener("touchstart",this._onTouchstart,Bs))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn),n.LFG(n.R0b),n.LFG(T.K0),n.LFG($c,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const j1=new n.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Ew(){return null}}),A0=new n.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Ns=(()=>{class i{constructor(e,t,r,d){this._ngZone=t,this._defaultOptions=d,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let d,u;return 1===t.length&&"number"==typeof t[0]?u=t[0]:[d,u]=t,this.clear(),clearTimeout(this._previousTimeout),d||(d=r&&r.politeness?r.politeness:"polite"),null==u&&r&&(u=r.duration),this._liveElement.setAttribute("aria-live",d),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof u&&(this._previousTimeout=setTimeout(()=>this.clear(),u)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,t;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(t=this._currentResolve)||void 0===t||t.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let d=0;d{class i{constructor(e,t,r,d,u){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Le.x,this._rootNodeFocusAndBlurListener=c=>{for(let s=Or(c);s;s=s.parentElement)"focus"===c.type?this._onFocus(c,s):this._onBlur(c,s)},this._document=d,this._detectionMode=u?.detectionMode||0}monitor(e,t=!1){const r=ci(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,Ee.of)(null);const d=au(r)||this._getDocument(),u=this._elementInfo.get(r);if(u)return t&&(u.checkChildren=!0),u.subject;const c={checkChildren:t,subject:new Le.x,rootNode:d};return this._elementInfo.set(r,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){const t=ci(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const d=ci(e);d===this._getDocument().activeElement?this._getClosestElementsInfo(d).forEach(([c,o])=>this._originChanged(c,t,o)):(this._setOrigin(t),"function"==typeof d.focus&&d.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!(null==e||!e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),d=Or(e);!r||!r.checkChildren&&t!==d||this._originChanged(t,this._getFocusOrigin(d),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Zc),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Zc)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(rt(this._stopInputModalityDetector)).subscribe(d=>{this._setOrigin(d,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Zc),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Zc),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,d)=>{(d===e||r.checkChildren&&d.contains(e))&&t.push([d,r])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const d=e.labels;if(d)for(let u=0;u{class i{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,n.f3M)(P1).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,d=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),d){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Jc,Lw,mu),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(Jc,Lw):2===t&&e.add(Jc,mu)}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ll=(()=>{class i{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Fh))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[uu]}),i})();const y0=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function Zx(){return(0,n.f3M)(T.K0)}}),Hw=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Hi=(()=>{class i{constructor(e){if(this.value="ltr",this.change=new n.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function Rw(i){var a;const e=i?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&null!==(a=navigator)&&void 0!==a&&a.language?Hw.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(y0,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ho=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();function U1(i,a){if(1&i&&n._UZ(0,"mat-pseudo-checkbox",4),2&i){const e=n.oxw();n.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function q1(i,a){if(1&i&&(n.TgZ(0,"span",5),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij("(",e.group.label,")")}}const kw=["*"];let Xx=(()=>{class i{}return i.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",i.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",i.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",i.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",i})(),Kx=(()=>{class i{}return i.COMPLEX="375ms",i.ENTERING="225ms",i.EXITING="195ms",i})();const tS=new n.OlP("mat-sanity-checks",{providedIn:"root",factory:function eS(){return!0}});let wt=(()=>{class i{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!a0()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Fh),n.LFG(tS,8),n.LFG(T.K0))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Ho,Ho]}),i})();function Xa(i){return class extends i{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=Ge(a)}}}function Hl(i,a){return class extends i{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Ni(i){return class extends i{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=Ge(a)}}}function Vs(i,a=0){return class extends i{constructor(...e){super(...e),this._tabIndex=a,this.defaultTabIndex=a}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Qt(e):this.defaultTabIndex}}}function w0(i){return class extends i{constructor(...a){super(...a),this.errorState=!1}updateErrorState(){const a=this.errorState,d=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);d!==a&&(this.errorState=d,this.stateChanges.next())}}}function M0(i){return class extends i{constructor(...a){super(...a),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new yn.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(a){a.next(),a.complete()}}}const C0=new n.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Y1(){return(0,n.f3M)(n.soG)}});class Zr{constructor(){this._localeChanges=new Le.x,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),r=this.isValid(e);return t&&r?!this.compareDate(a,e):t==r}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const Uh=new n.OlP("mat-date-formats"),Ro=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function qh(i,a){const e=Array(i);for(let t=0;t{class i extends Zr{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return qh(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return qh(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return qh(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let d=this._createDateWithOverflow(e,t,r);return d.getMonth(),d}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Ro.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const d=new Date;return d.setFullYear(e,t,r),d.setHours(0,0,0,0),d}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C0,8),n.LFG(Qn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const v0={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Ow=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Zr,useClass:W1}]}),i})(),T0=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Uh,useValue:v0}],imports:[Ow]}),i})(),Qc=(()=>{class i{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),gu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),i})();function Pl(i,a,e){i.nativeElement.classList.toggle(a,e)}let js=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})();class Yh{constructor(a,e,t,r=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Xc={enterDuration:225,exitDuration:150},Wh=kr({passive:!0}),x0=["mousedown","touchstart"],Gh=["mouseup","mouseleave","touchend","touchcancel"];class $h{constructor(a,e,t,r){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=ci(t))}fadeInRipple(a,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),d={...Xc,...t.animation};t.centered&&(a=r.left+r.width/2,e=r.top+r.height/2);const u=t.radius||function G1(i,a,e){const t=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),r=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+r*r)}(a,e,r),c=a-r.left,o=e-r.top,s=d.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=c-u+"px",l.style.top=o-u+"px",l.style.height=2*u+"px",l.style.width=2*u+"px",null!=t.color&&(l.style.backgroundColor=t.color),l.style.transitionDuration=`${s}ms`,this._containerElement.appendChild(l);const h=window.getComputedStyle(l),m=h.transitionDuration,g="none"===h.transitionProperty||"0s"===m||"0s, 0s"===m,f=new Yh(this,l,t,g);l.style.transform="scale3d(1, 1, 1)",f.state=0,t.persistent||(this._mostRecentTransientRipple=f);let w=null;return!g&&(s||d.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const N=()=>this._finishRippleTransition(f),se=()=>this._destroyRipple(f);l.addEventListener("transitionend",N),l.addEventListener("transitioncancel",se),w={onTransitionEnd:N,onTransitionCancel:se}}),this._activeRipples.set(f,w),(g||!s)&&this._finishRippleTransition(f),f}fadeOutRipple(a){if(2===a.state||3===a.state)return;const e=a.element,t={...Xc,...a.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=2,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=ci(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(x0))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Gh),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)}_startFadeOutTransition(a){const e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=1,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){var e;const t=null!==(e=this._activeRipples.get(a))&&void 0!==e?e:null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=3,null!==t&&(a.element.removeEventListener("transitionend",t.onTransitionEnd),a.element.removeEventListener("transitioncancel",t.onTransitionCancel)),a.element.remove()}_onMousedown(a){const e=jh(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,Wh)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(x0.forEach(a=>{this._triggerElement.removeEventListener(a,this,Wh)}),this._pointerUpEventsRegistered&&Gh.forEach(a=>{this._triggerElement.removeEventListener(a,this,Wh)}))}}const Zh=new n.OlP("mat-ripple-global-options");let Jr=(()=>{class i{constructor(e,t,r,d,u){this._elementRef=e,this._animationMode=u,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=d||{},this._rippleRenderer=new $h(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Qn),n.Y36(Zh,8),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),i})(),ca=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})(),$1=(()=>{class i{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&n.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),i})(),Jh=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt]}),i})();const S0=new n.OlP("MAT_OPTION_PARENT_COMPONENT"),_r=new n.OlP("MatOptgroup");let jw=0;class Fw{constructor(a,e=!1){this.source=a,this.isUserInput=e}}let zw=(()=>{class i{constructor(e,t,r,d){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=d,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+jw++,this.onSelectionChange=new n.vpe,this._stateChanges=new Le.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Ge(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Di(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Fw(this,e))}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),i})(),Fs=(()=>{class i extends zw{constructor(e,t,r,d){super(e,t,r,d)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(S0,8),n.Y36(_r,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(d){return t._handleKeydown(d)}),2&e&&(n.Ikx("id",t.id),n.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),n.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[n.qOj],ngContentSelectors:kw,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,U1,1,2,"mat-pseudo-checkbox",0),n.TgZ(1,"span",1),n.Hsn(2),n.qZA(),n.YNc(3,q1,2,1,"span",2),n._UZ(4,"div",3)),2&e&&(n.Q6J("ngIf",t.multiple),n.xp6(3),n.Q6J("ngIf",t.group&&t.group._inert),n.xp6(1),n.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},dependencies:[Jr,T.O5,$1],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),i})();function Qh(i,a,e){if(e.length){let t=a.toArray(),r=e.toArray(),d=0;for(let u=0;ue+t?Math.max(0,i-t+a):e}let _u=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ca,T.ez,wt,Jh]}),i})();const Uw=["mat-button",""],J1=["*"],qw=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Yw=Hl(Xa(Ni(class{constructor(i){this._elementRef=i}})));let Ht=(()=>{class i extends Yw{constructor(e,t,r){super(e),this._focusMonitor=t,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const d of qw)this._hasHostAttributes(d)&&this._getHostElement().classList.add(d);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36($r),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&n.Gf(Jr,5),2&e){let r;n.iGM(r=n.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(n.uIk("disabled",t.disabled||null),n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.qOj],attrs:Uw,ngContentSelectors:J1,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"span",0),n.Hsn(1),n.qZA(),n._UZ(2,"span",1)(3,"span",2)),2&e&&(n.xp6(2),n.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),n.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Jr],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),i})(),Ka=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ca,wt,wt]}),i})();var es=E(1144);const E0=["addListener","removeListener"],Gw=["addEventListener","removeEventListener"],$w=["on","off"];function zs(i,a,e,t){if((0,wn.m)(e)&&(t=e,e=void 0),t)return zs(i,a,e).pipe((0,$i.Z)(t));const[r,d]=function Qw(i){return(0,wn.m)(i.addEventListener)&&(0,wn.m)(i.removeEventListener)}(i)?Gw.map(u=>c=>i[u](a,c,e)):function Zw(i){return(0,wn.m)(i.addListener)&&(0,wn.m)(i.removeListener)}(i)?E0.map(D0(i,a)):function Jw(i){return(0,wn.m)(i.on)&&(0,wn.m)(i.off)}(i)?$w.map(D0(i,a)):[];if(!r&&(0,es.z)(i))return(0,pr.z)(u=>zs(u,a,e))((0,oi.Xf)(i));if(!r)throw new TypeError("Invalid event target");return new yn.y(u=>{const c=(...o)=>u.next(1d(c)})}function D0(i,a){return e=>t=>i[e](a,t)}var Xh=E(4408);const bu={schedule(i){let a=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=bu;t&&(a=t.requestAnimationFrame,e=t.cancelAnimationFrame);const r=a(d=>{e=void 0,i(d)});return new Nt.w0(()=>e?.(r))},requestAnimationFrame(...i){const{delegate:a}=bu;return(a?.requestAnimationFrame||requestAnimationFrame)(...i)},cancelAnimationFrame(...i){const{delegate:a}=bu;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...i)},delegate:void 0};var Au=E(7565);const X1=new class L0 extends Au.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;a=a||t.shift();do{if(r=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,r){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw r}}}(class Xw extends Xh.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=bu.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(r=>r.id===e)||(bu.cancelAnimationFrame(e),a._scheduled=void 0)}});let Kh,H0=1;const R0={};function eM(i){return i in R0&&(delete R0[i],!0)}const P0={setImmediate(i){const a=H0++;return R0[a]=!0,Kh||(Kh=Promise.resolve()),Kh.then(()=>eM(a)&&i()),a},clearImmediate(i){eM(i)}},{setImmediate:tM,clearImmediate:K1}=P0,yu={setImmediate(...i){const{delegate:a}=yu;return(a?.setImmediate||tM)(...i)},clearImmediate(i){const{delegate:a}=yu;return(a?.clearImmediate||K1)(i)},delegate:void 0},wu=new class t_ extends Au.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;a=a||t.shift();do{if(r=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,r){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw r}}}(class e_ extends Xh.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=yu.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(r=>r.id===e)||(yu.clearImmediate(e),a._scheduled=void 0)}});var Mu=E(4986),kl=E(2805);function tp(i,a=Mu.z){return function ep(i){return(0,hr.e)((a,e)=>{let t=!1,r=null,d=null,u=!1;const c=()=>{if(d?.unsubscribe(),d=null,t){t=!1;const s=r;r=null,e.next(s)}u&&e.complete()},o=()=>{d=null,u&&e.complete()};a.subscribe((0,at.x)(e,s=>{t=!0,r=s,d||(0,oi.Xf)(i(s)).subscribe(d=(0,at.x)(e,c,o))},()=>{u=!0,(!t||!d||d.closed)&&e.complete()}))})}(()=>(0,kl.H)(i,a))}class O0{}function Cu(i){return i&&"function"==typeof i.connect}class nM extends O0{constructor(a){super(),this._data=a}connect(){return $t(this._data)?this._data:(0,Ee.of)(this._data)}disconnect(){}}class Kc{applyChanges(a,e,t,r,d){a.forEachOperation((u,c,o)=>{let s,l;if(null==u.previousIndex){const p=t(u,c,o);s=e.createEmbeddedView(p.templateRef,p.context,p.index),l=1}else null==o?(e.remove(c),l=3):(s=e.get(c),e.move(s,o),l=2);var h;d&&d({context:null===(h=s)||void 0===h?void 0:h.context,operation:l,record:u})})}detach(){}}class I0{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(a,e,t,r,d){a.forEachOperation((u,c,o)=>{let s,l;var h;null==u.previousIndex?(s=this._insertView(()=>t(u,c,o),o,e,r(u)),l=s?1:0):null==o?(this._detachAndCacheView(c,e),l=3):(s=this._moveView(c,o,e,r(u)),l=2),d&&d({context:null===(h=s)||void 0===h?void 0:h.context,operation:l,record:u})})}detach(){for(const a of this._viewCache)a.destroy();this._viewCache=[]}_insertView(a,e,t,r){const d=this._insertViewFromCache(e,t);if(d)return void(d.context.$implicit=r);const u=a();return t.createEmbeddedView(u.templateRef,u.context,u.index)}_detachAndCacheView(a,e){const t=e.detach(a);this._maybeCacheView(t,e)}_moveView(a,e,t,r){const d=t.get(a);return t.move(d,e),d.context.$implicit=r,d}_maybeCacheView(a,e){if(this._viewCache.lengththis._markSelected(d)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...a){this._verifyValueAssignment(a),a.forEach(t=>this._markSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...a){this._verifyValueAssignment(a),a.forEach(t=>this._unmarkSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...a){this._verifyValueAssignment(a);const e=this.selected,t=new Set(a);a.forEach(d=>this._markSelected(d)),e.filter(d=>!t.has(d)).forEach(d=>this._unmarkSelected(d));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(a){return this.isSelected(a)?this.deselect(a):this.select(a)}clear(a=!0){this._unmarkAll();const e=this._hasQueuedChanges();return a&&this._emitChangeEvent(),e}isSelected(a){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,a))return!0;return!1}return this._selection.has(a)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(a){this._multiple&&this.selected&&this._selected.sort(a)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(a){this.isSelected(a)||(this._multiple||this._unmarkAll(),this.isSelected(a)||this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))}_unmarkSelected(a){this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))}_unmarkAll(){this.isEmpty()||this._selection.forEach(a=>this._unmarkSelected(a))}_verifyValueAssignment(a){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let n_=(()=>{class i{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Ol=new n.OlP("_ViewRepeater"),iM=["contentWrapper"],rM=["*"],i_=new n.OlP("VIRTUAL_SCROLL_STRATEGY");class sS{constructor(a,e,t){this._scrolledIndexChange=new Le.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe(qc()),this._viewport=null,this._itemSize=a,this._minBufferPx=e,this._maxBufferPx=t}attach(a){this._viewport=a,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(a,e,t){this._itemSize=a,this._minBufferPx=e,this._maxBufferPx=t,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(a,e){this._viewport&&this._viewport.scrollToOffset(a*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const a=this._viewport.getRenderedRange(),e={start:a.start,end:a.end},t=this._viewport.getViewportSize(),r=this._viewport.getDataLength();let d=this._viewport.measureScrollOffset(),u=this._itemSize>0?d/this._itemSize:0;if(e.end>r){const o=Math.ceil(t/this._itemSize),s=Math.max(0,Math.min(u,r-o));u!=s&&(u=s,d=s*this._itemSize,e.start=Math.floor(u)),e.end=Math.max(0,Math.min(r,e.start+o))}const c=d-e.start*this._itemSize;if(c0&&(e.end=Math.min(r,e.end+s),e.start=Math.max(0,Math.floor(u-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(u))}}function r_(i){return i._scrollStrategy}let B0=(()=>{class i{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new sS(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=Qt(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=Qt(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=Qt(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[n._Bn([{provide:i_,useFactory:r_,deps:[(0,n.Gpc)(()=>i)]}]),n.TTD]}),i})(),ts=(()=>{class i{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new Le.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new yn.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(tp(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ee.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,bt.h)(d=>!d||r.indexOf(d)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,d)=>{this._scrollableContainsElement(d,e)&&t.push(d)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=ci(t),d=e.getElementRef().nativeElement;do{if(r==d)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>zs(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b),n.LFG(Qn),n.LFG(T.K0,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Il=(()=>{class i{constructor(e,t,r,d){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=d,this._destroyed=new Le.x,this._elementScrolled=new yn.y(u=>this.ngZone.runOutsideAngular(()=>zs(this.elementRef.nativeElement,"scroll").pipe(rt(this._destroyed)).subscribe(u)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&0!=ru()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==ru()?e.left=e.right:1==ru()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;t0()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",d=this.elementRef.nativeElement;if("top"==e)return d.scrollTop;if("bottom"==e)return d.scrollHeight-d.clientHeight-d.scrollTop;const u=this.dir&&"rtl"==this.dir.value;return"start"==e?e=u?r:t:"end"==e&&(e=u?t:r),u&&2==ru()?e==t?d.scrollWidth-d.clientWidth-d.scrollLeft:d.scrollLeft:u&&1==ru()?e==t?d.scrollLeft+d.scrollWidth-d.clientWidth:-d.scrollLeft:e==t?d.scrollLeft:d.scrollWidth-d.clientWidth-d.scrollLeft}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(ts),n.Y36(n.R0b),n.Y36(Hi,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),i})(),Us=(()=>{class i{constructor(e,t,r){this._platform=e,this._change=new Le.x,this._changeListener=d=>{this._change.next(d)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const d=this._getWindow();d.addEventListener("resize",this._changeListener),d.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,d=r.getBoundingClientRect();return{top:-d.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-d.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(tp(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn),n.LFG(n.R0b),n.LFG(T.K0,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const oM=new n.OlP("VIRTUAL_SCROLLABLE");let a_=(()=>{class i extends Il{constructor(e,t,r,d){super(e,t,r,d)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(ts),n.Y36(n.R0b),n.Y36(Hi,8))},i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const np=typeof requestAnimationFrame<"u"?X1:wu;let ko=(()=>{class i extends a_{constructor(e,t,r,d,u,c,o,s){super(e,c,r,u),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=d,this.scrollable=s,this._detachedSubject=new Le.x,this._renderedRangeSubject=new Le.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new yn.y(l=>this._scrollStrategy.scrolledIndexChange.subscribe(h=>Promise.resolve().then(()=>this.ngZone.run(()=>l.next(h))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Nt.w0.EMPTY,this._viewportChanges=o.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Ge(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(vn(null),tp(0,np)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(rt(this._detachedSubject)).subscribe(t=>{const r=t.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function lM(i,a){return i.start==a.start&&i.end==a.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const d="horizontal"==this.orientation,u=d?"X":"Y";let o=`translate${u}(${Number((d&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(o+=` translate${u}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=o&&(this._renderedContentTransform=o,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const r={behavior:t};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){var t;let r;const d="left",u="right",c="rtl"==(null===(t=this.dir)||void 0===t?void 0:t.value);r="start"==e?c?u:d:"end"==e?c?d:u:e||("horizontal"===this.orientation?"left":"top");const o=this.scrollable.measureBoundingClientRectWithScrollOffset(r);return this.elementRef.nativeElement.getBoundingClientRect()[r]-o}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(i_,8),n.Y36(Hi,8),n.Y36(ts),n.Y36(Us),n.Y36(oM,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&n.Gf(iM,7),2&e){let r;n.iGM(r=n.CRH())&&(t._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[n._Bn([{provide:Il,useFactory:(a,e)=>a||e,deps:[a_,i]}]),n.qOj],ngContentSelectors:rM,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA(),n._UZ(3,"div",2)),2&e&&(n.xp6(3),n.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),i})();function cM(i,a,e){if(!e.getBoundingClientRect)return 0;const r=e.getBoundingClientRect();return"horizontal"===i?"start"===a?r.left:r.right:"start"===a?r.top:r.bottom}let vu=(()=>{class i{constructor(e,t,r,d,u,c){this._viewContainerRef=e,this._template=t,this._differs=r,this._viewRepeater=d,this._viewport=u,this.viewChange=new Le.x,this._dataSourceChanges=new Le.x,this.dataStream=this._dataSourceChanges.pipe(vn(null),function k0(){return(0,hr.e)((i,a)=>{let e,t=!1;i.subscribe((0,at.x)(a,r=>{const d=e;e=r,t&&a.next([d,r]),t=!0}))})}(),(0,An.w)(([o,s])=>this._changeDataSource(o,s)),bn(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Le.x,this.dataStream.subscribe(o=>{this._data=o,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(rt(this._destroyed)).subscribe(o=>{this._renderedRange=o,this.viewChange.observers.length&&c.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,Cu(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new nM($t(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,r)=>e(t+(this._renderedRange?this._renderedRange.start:0),r):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Qt(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const r=e.start-this._renderedRange.start,d=e.end-e.start;let u,c;for(let o=0;o-1;o--){const s=this._viewContainerRef.get(o+r);if(s&&s.rootNodes.length){c=s.rootNodes[s.rootNodes.length-1];break}}return u&&c?cM(t,"end",c)-cM(t,"start",u):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,Ee.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const r=this._viewContainerRef.get(t);r.context.index=this._renderedRange.start+t,r.context.count=e,this._updateComputedContextProperties(r.context),r.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(d,u,c)=>this._getEmbeddedViewArgs(d,c),d=>d.item),e.forEachIdentityChange(d=>{this._viewContainerRef.get(d.currentIndex).context.$implicit=d.item});const t=this._data.length;let r=this._viewContainerRef.length;for(;r--;){const d=this._viewContainerRef.get(r);d.context.index=this._renderedRange.start+r,d.context.count=t,this._updateComputedContextProperties(d.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(Ol),n.Y36(ko,4),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[n._Bn([{provide:Ol,useClass:I0}])]}),i})(),da=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),ed=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Ho,da,Ho,da]}),i})();class Tu{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class Ys extends Tu{constructor(a,e,t,r){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class Oa extends Tu{constructor(a,e,t,r){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class nd extends Tu{constructor(a){super(),this.element=a instanceof n.SBq?a.nativeElement:a}}class Oo{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof Ys?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof Oa?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof nd?(this._attachedPortal=a,this.attachDomPortal(a)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class id extends Oo{constructor(a,e,t,r,d){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=u=>{const c=u.element,o=this._document.createComment("dom-portal");c.parentNode.insertBefore(o,c),this.outletElement.appendChild(c),this._attachedPortal=u,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(c,o)})},this._document=d}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let r;return a.viewContainerRef?(r=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(a.injector||this._defaultInjector||n.zs3.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=a,r}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let rd=(()=>{class i extends Oo{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new n.vpe,this.attachDomPortal=d=>{const u=d.element,c=this._document.createComment("dom-portal");d.setAttachedHost(this),u.parentNode.insertBefore(c,u),this._getRootNode().appendChild(u),this._attachedPortal=d,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(u,c)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,d=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),u=t.createComponent(d,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(u.hostView.rootNodes[0]),super.setDisposeFn(()=>u.destroy()),this._attachedPortal=e,this._attachedRef=u,this.attached.emit(u),u}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36(T.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.qOj]}),i})(),Ws=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();var kn=E(6451);const V0=t0();class s_{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=Li(-this._previousScrollPosition.left),a.style.top=Li(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,r=this._document.body.style,d=t.scrollBehavior||"",u=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),V0&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),V0&&(t.scrollBehavior=d,r.scrollBehavior=u)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class o_{constructor(a,e,t,r){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class l_{enable(){}disable(){}attach(){}}function j0(i,a){return a.some(e=>i.bottome.bottom||i.righte.right)}function c_(i,a){return a.some(e=>i.tope.bottom||i.lefte.right)}class d_{constructor(a,e,t,r){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(a){this._overlayRef=a}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();j0(e,[{width:t,height:r,bottom:r,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let pM=(()=>{class i{constructor(e,t,r,d){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new l_,this.close=u=>new o_(this._scrollDispatcher,this._ngZone,this._viewportRuler,u),this.block=()=>new s_(this._viewportRuler,this._document),this.reposition=u=>new d_(this._scrollDispatcher,this._viewportRuler,this._ngZone,u),this._document=d}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(ts),n.LFG(Us),n.LFG(n.R0b),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class ad{constructor(a){if(this.scrollStrategy=new l_,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class fM{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}let rp=(()=>{class i{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),mM=(()=>{class i extends rp{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const d=this._attachedOverlays;for(let u=d.length-1;u>-1;u--)if(d[u]._keydownEvents.observers.length>0){const c=d[u]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(r)):c.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0),n.LFG(n.R0b,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ap=(()=>{class i extends rp{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=d=>{this._pointerDownEventTarget=Or(d)},this._clickListener=d=>{const u=Or(d),c="click"===d.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:u;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){const l=o[s];if(l._outsidePointerEvents.observers.length<1||!l.hasAttached())continue;if(l.overlayElement.contains(u)||l.overlayElement.contains(c))break;const h=l._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(d)):h.next(d)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0),n.LFG(Qn),n.LFG(n.R0b,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Bl=(()=>{class i{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||a0()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let d=0;dthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new Le.x,this._outsidePointerEvents=new Le.x,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ht.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){var a;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(a=this._host)||void 0===a||a.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config={...this._config,...a},this._updateElementSize()}setDirection(a){this._config={...this._config,direction:a},this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=Li(this._config.width),a.height=Li(this._config.height),a.minWidth=Li(this._config.minWidth),a.minHeight=Li(this._config.minHeight),a.maxWidth=Li(this._config.maxWidth),a.maxHeight=Li(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(a){if(this._animationsDisabled)return void this._disposeBackdrop(a);a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",this._backdropTransitionendHandler)}),a.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(a)},500))}}_toggleClasses(a,e,t){const r=Yc(e||[]).filter(d=>!!d);r.length&&(t?a.classList.add(...r):a.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(rt((0,kn.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const U0="cdk-overlay-connected-position-bounding-box",q0=/([A-Za-z%]+)$/;class p_{constructor(a,e,t,r,d){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=d,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Le.x,this._resizeSubscription=Nt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(a)}get positions(){return this._preferredPositions}attach(a){this._validatePositions(),a.hostElement.classList.add(U0),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,d=[];let u;for(let c of this._preferredPositions){let o=this._getOriginPoint(a,r,c),s=this._getOverlayPoint(o,e,c),l=this._getOverlayFit(s,e,t,c);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(c,o);this._canFitWithFlexibleDimensions(l,s,t)?d.push({position:c,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,c)}):(!u||u.overlayFit.visibleAreao&&(o=l,c=s)}return this._isPushed=!1,void this._applyPosition(c.position,c.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(u.position,u.originPoint);this._applyPosition(u.position,u.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Io(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(U0),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let r,d;if("center"==t.originX)r=a.left+a.width/2;else{const u=this._isRtl()?a.right:a.left,c=this._isRtl()?a.left:a.right;r="start"==t.originX?u:c}return e.left<0&&(r-=e.left),d="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(d-=e.top),{x:r,y:d}}_getOverlayPoint(a,e,t){let r,d;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,d="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+r,y:a.y+d}}_getOverlayFit(a,e,t,r){const d=op(e);let{x:u,y:c}=a,o=this._getOffset(r,"x"),s=this._getOffset(r,"y");o&&(u+=o),s&&(c+=s);let p=0-c,m=c+d.height-t.height,g=this._subtractOverflows(d.width,0-u,u+d.width-t.width),f=this._subtractOverflows(d.height,p,m),w=g*f;return{visibleArea:w,isCompletelyWithinViewport:d.width*d.height===w,fitsInViewportVertically:f===d.height,fitsInViewportHorizontally:g==d.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,d=t.right-e.x,u=sp(this._overlayRef.getConfig().minHeight),c=sp(this._overlayRef.getConfig().minWidth),s=a.fitsInViewportHorizontally||null!=c&&c<=d;return(a.fitsInViewportVertically||null!=u&&u<=r)&&s}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const r=op(e),d=this._viewportRect,u=Math.max(a.x+r.width-d.width,0),c=Math.max(a.y+r.height-d.height,0),o=Math.max(d.top-t.top-a.y,0),s=Math.max(d.left-t.left-a.x,0);let l=0,h=0;return l=r.width<=d.width?s||-u:a.xg&&!this._isInitialRender&&!this._growAfterOpen&&(u=a.y-g/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)p=t.width-a.x+this._viewportMargin,l=a.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=a.x,l=t.right-a.x;else{const m=Math.min(t.right-a.x+t.left,a.x),g=this._lastBoundingBoxSize.width;l=2*m,h=a.x-m,l>g&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-g/2)}return{top:u,left:h,bottom:c,right:p,width:l,height:d}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const d=this._overlayRef.getConfig().maxHeight,u=this._overlayRef.getConfig().maxWidth;r.height=Li(t.height),r.top=Li(t.top),r.bottom=Li(t.bottom),r.width=Li(t.width),r.left=Li(t.left),r.right=Li(t.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",d&&(r.maxHeight=Li(d)),u&&(r.maxWidth=Li(u))}this._lastBoundingBoxSize=t,Io(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Io(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Io(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},r=this._hasExactPosition(),d=this._hasFlexibleDimensions,u=this._overlayRef.getConfig();if(r){const l=this._viewportRuler.getViewportScrollPosition();Io(t,this._getExactOverlayY(e,a,l)),Io(t,this._getExactOverlayX(e,a,l))}else t.position="static";let c="",o=this._getOffset(e,"x"),s=this._getOffset(e,"y");o&&(c+=`translateX(${o}px) `),s&&(c+=`translateY(${s}px)`),t.transform=c.trim(),u.maxHeight&&(r?t.maxHeight=Li(u.maxHeight):d&&(t.maxHeight="")),u.maxWidth&&(r?t.maxWidth=Li(u.maxWidth):d&&(t.maxWidth="")),Io(this._pane.style,t)}_getExactOverlayY(a,e,t){let r={top:"",bottom:""},d=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(d=this._pushOverlayOnScreen(d,this._overlayRect,t)),"bottom"===a.overlayY?r.bottom=this._document.documentElement.clientHeight-(d.y+this._overlayRect.height)+"px":r.top=Li(d.y),r}_getExactOverlayX(a,e,t){let u,r={left:"",right:""},d=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(d=this._pushOverlayOnScreen(d,this._overlayRect,t)),u=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===u?r.right=this._document.documentElement.clientWidth-(d.x+this._overlayRect.width)+"px":r.left=Li(d.x),r}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:c_(a,t),isOriginOutsideView:j0(a,t),isOverlayClipped:c_(e,t),isOverlayOutsideView:j0(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,r)=>t-Math.max(r,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?a.offsetX??this._offsetX:a.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&Yc(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof n.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function Io(i,a){for(let e in a)a.hasOwnProperty(e)&&(i[e]=a[e]);return i}function sp(i){if("number"!=typeof i&&null!=i){const[a,e]=i.split(q0);return e&&"px"!==e?null:parseFloat(a)}return i||null}function op(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}const Y0="cdk-global-overlay-wrapper";class f_{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(Y0),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:d,maxWidth:u,maxHeight:c}=t,o=!("100%"!==r&&"100vw"!==r||u&&"100%"!==u&&"100vw"!==u),s=!("100%"!==d&&"100vh"!==d||c&&"100%"!==c&&"100vh"!==c),l=this._xPosition,h=this._xOffset,p="rtl"===this._overlayRef.getConfig().direction;let m="",g="",f="";o?f="flex-start":"center"===l?(f="center",p?g=h:m=h):p?"left"===l||"end"===l?(f="flex-end",m=h):("right"===l||"start"===l)&&(f="flex-start",g=h):"left"===l||"start"===l?(f="flex-start",m=h):("right"===l||"end"===l)&&(f="flex-end",g=h),a.position=this._cssPosition,a.marginLeft=o?"0":m,a.marginTop=s?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=o?"0":g,e.justifyContent=f,e.alignItems=s?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Y0),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let m_=(()=>{class i{constructor(e,t,r,d){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=d}global(){return new f_}flexibleConnectedTo(e){return new p_(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Us),n.LFG(T.K0),n.LFG(Qn),n.LFG(Bl))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),_M=0,rr=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p,m){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=d,this._keyboardDispatcher=u,this._injector=c,this._ngZone=o,this._document=s,this._directionality=l,this._location=h,this._outsideClickDispatcher=p,this._animationsModuleType=m}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),d=this._createPortalOutlet(r),u=new ad(e);return u.direction=u.direction||this._directionality.value,new Nl(d,t,r,u,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+_M++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(n.z2F)),new id(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(pM),n.LFG(Bl),n.LFG(n._Vd),n.LFG(m_),n.LFG(mM),n.LFG(n.zs3),n.LFG(n.R0b),n.LFG(T.K0),n.LFG(Hi),n.LFG(T.Ye),n.LFG(ap),n.LFG(n.QbO,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const g_=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],lp=new n.OlP("cdk-connected-overlay-scroll-strategy");let Lu=(()=>{class i{constructor(e){this.elementRef=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i})(),cp=(()=>{class i{constructor(e,t,r,d,u){this._overlay=e,this._dir=u,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Nt.w0.EMPTY,this._attachSubscription=Nt.w0.EMPTY,this._detachSubscription=Nt.w0.EMPTY,this._positionSubscription=Nt.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new n.vpe,this.positionChange=new n.vpe,this.attach=new n.vpe,this.detach=new n.vpe,this.overlayKeydown=new n.vpe,this.overlayOutsideClick=new n.vpe,this._templatePortal=new Oa(t,r),this._scrollStrategyFactory=d,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ge(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Ge(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Ge(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Ge(e)}get push(){return this._push}set push(e){this._push=Ge(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=g_);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!Di(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new ad({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Lu?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(fc(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(lp),n.Y36(Hi,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[n.TTD]}),i})();const b_={provide:lp,deps:[rr],useFactory:function __(i){return()=>i.scrollStrategies.reposition()}};let Bo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[rr,b_],imports:[Ho,Ws,ed,ed]}),i})();class W0{}const ns="*";function En(i,a){return{type:7,name:i,definitions:a,options:{}}}function Rt(i,a=null){return{type:4,styles:a,timings:i}}function dp(i,a=null){return{type:3,steps:i,options:a}}function G0(i,a=null){return{type:2,steps:i,options:a}}function je(i){return{type:6,styles:i,offset:null}}function ut(i,a,e){return{type:0,name:i,styles:a,options:e}}function No(i){return{type:5,steps:i}}function Ot(i,a,e=null){return{type:1,expr:i,animation:a,options:e}}function Hu(i=null){return{type:9,options:i}}function Br(i,a,e=null){return{type:11,selector:i,animation:a,options:e}}function Vl(i){Promise.resolve(null).then(i)}class Ru{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Vl(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class y_{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,r=0;const d=this.players.length;0==d?Vl(()=>this._onFinish()):this.players.forEach(u=>{u.onDone(()=>{++e==d&&this._onFinish()}),u.onDestroy(()=>{++t==d&&this._onDestroy()}),u.onStart(()=>{++r==d&&this._onStart()})}),this.totalTime=this.players.reduce((u,c)=>Math.max(u,c.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const yM=["connectionContainer"],w_=["inputContainer"],hS=["label"];function $0(i,a){1&i&&(n.ynx(0),n.TgZ(1,"div",14),n._UZ(2,"div",15)(3,"div",16)(4,"div",17),n.qZA(),n.TgZ(5,"div",18),n._UZ(6,"div",15)(7,"div",16)(8,"div",17),n.qZA(),n.BQk())}function Z0(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",19),n.NdJ("cdkObserveContent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.updateOutlineGap())}),n.Hsn(1,1),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function is(i,a){if(1&i&&(n.ynx(0),n.Hsn(1,2),n.TgZ(2,"span"),n._uU(3),n.qZA(),n.BQk()),2&i){const e=n.oxw(2);n.xp6(3),n.Oqu(e._control.placeholder)}}function wM(i,a){1&i&&n.Hsn(0,3,["*ngSwitchCase","true"])}function M_(i,a){1&i&&(n.TgZ(0,"span",23),n._uU(1," *"),n.qZA())}function rs(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"label",20,21),n.NdJ("cdkObserveContent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.updateOutlineGap())}),n.YNc(2,is,4,1,"ng-container",12),n.YNc(3,wM,1,0,"ng-content",12),n.YNc(4,M_,2,0,"span",22),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),n.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),n.uIk("for",e._control.id)("aria-owns",e._control.id),n.xp6(2),n.Q6J("ngSwitchCase",!1),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Ia(i,a){1&i&&(n.TgZ(0,"div",24),n.Hsn(1,4),n.qZA())}function Ba(i,a){if(1&i&&(n.TgZ(0,"div",25),n._UZ(1,"span",26),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function C_(i,a){if(1&i&&(n.TgZ(0,"div"),n.Hsn(1,5),n.qZA()),2&i){const e=n.oxw();n.Q6J("@transitionMessages",e._subscriptAnimationState)}}function v_(i,a){if(1&i&&(n.TgZ(0,"div",30),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.Q6J("id",e._hintLabelId),n.xp6(1),n.Oqu(e.hintLabel)}}function MM(i,a){if(1&i&&(n.TgZ(0,"div",27),n.YNc(1,v_,2,2,"div",28),n.Hsn(2,6),n._UZ(3,"div",29),n.Hsn(4,7),n.qZA()),2&i){const e=n.oxw();n.Q6J("@transitionMessages",e._subscriptAnimationState),n.xp6(1),n.Q6J("ngIf",e.hintLabel)}}const CM=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],vM=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let TM=0;const hp=new n.OlP("MatError");let Na=(()=>{class i{constructor(e,t){this.id="mat-error-"+TM++,e||t.nativeElement.setAttribute("aria-live","polite")}}return i.\u0275fac=function(e){return new(e||i)(n.$8M("aria-live"),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&n.uIk("id",t.id)},inputs:{id:"id"},features:[n._Bn([{provide:hp,useExisting:i}])]}),i})();const xM={transitionMessages:En("transitionMessages",[ut("enter",je({opacity:1,transform:"translateY(0%)"})),Ot("void => enter",[je({opacity:0,transform:"translateY(-5px)"}),Rt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let sd=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i}),i})(),pp=0;const T_=new n.OlP("MatHint");let x_=(()=>{class i{constructor(){this.align="start",this.id="mat-hint-"+pp++}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(n.uIk("id",t.id)("align",null),n.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[n._Bn([{provide:T_,useExisting:i}])]}),i})(),as=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-label"]]}),i})(),J0=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-placeholder"]]}),i})();const fp=new n.OlP("MatPrefix"),Q0=new n.OlP("MatSuffix");let X0=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","matSuffix",""]],features:[n._Bn([{provide:Q0,useExisting:i}])]}),i})(),mp=0;const D_=Hl(class{constructor(i){this._elementRef=i}},"primary"),L_=new n.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),od=new n.OlP("MatFormField");let di=(()=>{class i extends D_{constructor(e,t,r,d,u,c,o){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=d,this._platform=u,this._ngZone=c,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Le.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+mp++,this._labelId="mat-form-field-label-"+mp++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=d?.appearance||"legacy",d&&(this._hideRequiredMarker=Boolean(d.hideRequiredMarker),d.color&&(this.color=this.defaultColor=d.color))}get appearance(){return this._appearance}set appearance(e){var t;const r=this._appearance;this._appearance=e||(null===(t=this._defaults)||void 0===t?void 0:t.appearance)||"legacy","outline"===this._appearance&&r!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ge(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(vn(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(rt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(rt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,kn.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(vn(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(vn(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(rt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,zs(this._label.nativeElement,"transitionend").pipe((0,ht.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(d=>"start"===d.align):null,r=this._hintChildren?this._hintChildren.find(d=>"end"===d.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",d=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const l=t.querySelectorAll(`${r}, ${d}`);for(let h=0;h0?.75*g+10:0}for(let l=0;l{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,wt,uu,wt]}),i})(),H_=(()=>{class i{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Qsj),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i}),i})(),jl=(()=>{class i extends H_{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const ar=new n.OlP("NgValueAccessor"),LM={provide:ar,useExisting:(0,n.Gpc)(()=>_i),multi:!0},RM=new n.OlP("CompositionEventMode");let _i=(()=>{class i extends H_{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function HM(){const i=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(RM,8))},i.\u0275dir=n.lG2({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&n.NdJ("input",function(d){return t._handleInput(d.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(d){return t._compositionEnd(d.target.value)})},features:[n._Bn([LM]),n.qOj]}),i})();function Vo(i){return null==i||("string"==typeof i||Array.isArray(i))&&0===i.length}function P_(i){return null!=i&&"number"==typeof i.length}const Vi=new n.OlP("NgValidators"),jo=new n.OlP("NgAsyncValidators"),kM=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class bi{static min(a){return function em(i){return a=>{if(Vo(a.value)||Vo(i))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(Vo(a.value)||Vo(i))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>i?{max:{max:i,actual:a.value}}:null}}(a)}static required(a){return nm(a)}static requiredTrue(a){return function im(i){return!0===i.value?null:{required:!0}}(a)}static email(a){return function rm(i){return Vo(i.value)||kM.test(i.value)?null:{email:!0}}(a)}static minLength(a){return function am(i){return a=>Vo(a.value)||!P_(a.value)?null:a.value.lengthP_(a.value)&&a.value.length>i?{maxlength:{requiredLength:i,actualLength:a.value.length}}:null}(a)}static pattern(a){return function om(i){if(!i)return ld;let a,e;return"string"==typeof i?(e="","^"!==i.charAt(0)&&(e+="^"),e+=i,"$"!==i.charAt(i.length-1)&&(e+="$"),a=new RegExp(e)):(e=i.toString(),a=i),t=>{if(Vo(t.value))return null;const r=t.value;return a.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(a)}static nullValidator(a){return null}static compose(a){return _p(a)}static composeAsync(a){return lm(a)}}function nm(i){return Vo(i.value)?{required:!0}:null}function ld(i){return null}function gp(i){return null!=i}function Fo(i){return(0,n.QGY)(i)?(0,Se.D)(i):i}function k_(i){let a={};return i.forEach(e=>{a=null!=e?{...a,...e}:a}),0===Object.keys(a).length?null:a}function O_(i,a){return a.map(e=>e(i))}function OM(i){return i.map(a=>function cd(i){return!i.validate}(a)?a:e=>a.validate(e))}function _p(i){if(!i)return null;const a=i.filter(gp);return 0==a.length?null:function(e){return k_(O_(e,a))}}function I_(i){return null!=i?_p(OM(i)):null}function lm(i){if(!i)return null;const a=i.filter(gp);return 0==a.length?null:function(e){return ma(O_(e,a).map(Fo)).pipe((0,Mt.U)(k_))}}function bp(i){return null!=i?lm(OM(i)):null}function IM(i,a){return null===i?[a]:Array.isArray(i)?[...i,a]:[i,a]}function vt(i){return i._rawValidators}function B_(i){return i._rawAsyncValidators}function cm(i){return i?Array.isArray(i)?i:[i]:[]}function Ap(i,a){return Array.isArray(i)?i.includes(a):i===a}function Fl(i,a){const e=cm(a);return cm(i).forEach(r=>{Ap(e,r)||e.push(r)}),e}function N_(i,a){return cm(a).filter(e=>!Ap(i,e))}class Pu{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(a){this._rawValidators=a||[],this._composedValidatorFn=I_(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=bp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Wi extends Pu{get formDirective(){return null}get path(){return null}}class gn extends Pu{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class BM{constructor(a){this._cd=a}get isTouched(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.touched)}get isUntouched(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.untouched)}get isPristine(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.pristine)}get isDirty(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.dirty)}get isValid(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.valid)}get isInvalid(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.invalid)}get isPending(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.pending)}get isSubmitted(){var a;return!(null===(a=this._cd)||void 0===a||!a.submitted)}}let Ai=(()=>{class i extends BM{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(gn,2))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&n.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[n.qOj]}),i})(),dd=(()=>{class i extends BM{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Wi,10))},i.\u0275dir=n.lG2({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&n.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[n.qOj]}),i})();const Bu="VALID",Mp="INVALID",zl="PENDING",ud="DISABLED";function Cp(i){return(Tp(i)?i.validators:i)||null}function F_(i){return Array.isArray(i)?I_(i):i||null}function vp(i,a){return(Tp(a)?a.asyncValidators:i)||null}function z_(i){return Array.isArray(i)?bp(i):i||null}function Tp(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}function UM(i,a,e){const t=i.controls;if(!(a?Object.keys(t):t).length)throw new n.vHH(1e3,"");if(!t[e])throw new n.vHH(1001,"")}function qM(i,a,e){i._forEachChild((t,r)=>{if(void 0===e[r])throw new n.vHH(1002,"")})}class fm{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=F_(this._rawValidators),this._composedAsyncValidatorFn=z_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===Bu}get invalid(){return this.status===Mp}get pending(){return this.status==zl}get disabled(){return this.status===ud}get enabled(){return this.status!==ud}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=F_(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=z_(a)}addValidators(a){this.setValidators(Fl(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(Fl(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(N_(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(N_(a,this._rawAsyncValidators))}hasValidator(a){return Ap(this._rawValidators,a)}hasAsyncValidator(a){return Ap(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=zl,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=ud,this.errors=null,this._forEachChild(t=>{t.disable({...a,onlySelf:!0})}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Bu,this._forEachChild(t=>{t.enable({...a,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Bu||this.status===zl)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ud:Bu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=zl,this._hasOwnPendingAsyncValidator=!0;const e=Fo(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){let e=a;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}_calculateStatus(){return this._allControlsDisabled()?ud:this.errors?Mp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(zl)?zl:this._anyControlsHaveStatus(Mp)?Mp:Bu}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){Tp(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(a){return null}}class mm extends fm{constructor(a,e,t){super(Cp(e),vp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){qM(this,0,a),Object.keys(a).forEach(t=>{UM(this,!0,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{const r=this.controls[t];r&&r.patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=e.getRawValue(),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&a(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(a,e){let t=a;return this._forEachChild((r,d)=>{t=e(t,r,d)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null}}function Nu(i,a){return[...a.path,i]}function $s(i,a){var e,t;_m(i,a),a.valueAccessor.writeValue(i.value),i.disabled&&(null===(e=(t=a.valueAccessor).setDisabledState)||void 0===e||e.call(t,!0)),function U_(i,a){a.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&q_(i,a)})}(i,a),function hd(i,a){const e=(t,r)=>{a.valueAccessor.writeValue(t),r&&a.viewToModelUpdate(t)};i.registerOnChange(e),a._registerOnDestroy(()=>{i._unregisterOnChange(e)})}(i,a),function $M(i,a){a.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&q_(i,a),"submit"!==i.updateOn&&i.markAsTouched()})}(i,a),function GM(i,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(e),a._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}(i,a)}function xp(i,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),Ep(i,a),i&&(a._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Sp(i,a){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function _m(i,a){const e=vt(i);null!==a.validator?i.setValidators(IM(e,a.validator)):"function"==typeof e&&i.setValidators([e]);const t=B_(i);null!==a.asyncValidator?i.setAsyncValidators(IM(t,a.asyncValidator)):"function"==typeof t&&i.setAsyncValidators([t]);const r=()=>i.updateValueAndValidity();Sp(a._rawValidators,r),Sp(a._rawAsyncValidators,r)}function Ep(i,a){let e=!1;if(null!==i){if(null!==a.validator){const r=vt(i);if(Array.isArray(r)&&r.length>0){const d=r.filter(u=>u!==a.validator);d.length!==r.length&&(e=!0,i.setValidators(d))}}if(null!==a.asyncValidator){const r=B_(i);if(Array.isArray(r)&&r.length>0){const d=r.filter(u=>u!==a.asyncValidator);d.length!==r.length&&(e=!0,i.setAsyncValidators(d))}}}const t=()=>{};return Sp(a._rawValidators,t),Sp(a._rawAsyncValidators,t),e}function q_(i,a){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Y_(i,a){_m(i,a)}function bm(i,a){if(!i.hasOwnProperty("model"))return!1;const e=i.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function Z_(i,a){i._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Dp(i,a){if(!a)return null;let e,t,r;return Array.isArray(a),a.forEach(d=>{d.constructor===_i?e=d:function Am(i){return Object.getPrototypeOf(i.constructor)===jl}(d)?t=d:r=d}),r||t||e||null}const JM={provide:Wi,useExisting:(0,n.Gpc)(()=>Zs)},Vu=(()=>Promise.resolve(null))();let Zs=(()=>{class i extends Wi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new n.vpe,this.form=new mm({},I_(e),bp(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Vu.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),$s(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Vu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Vu.then(()=>{const t=this._findContainer(e.path),r=new mm({});Y_(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Vu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Vu.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Z_(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Vi,10),n.Y36(jo,10))},i.\u0275dir=n.lG2({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&n.NdJ("submit",function(d){return t.onSubmit(d)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([JM]),n.qOj]}),i})();function Q_(i,a){const e=i.indexOf(a);e>-1&&i.splice(e,1)}function ym(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}const zo=class extends fm{constructor(a=null,e,t){super(Cp(e),vp(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Tp(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=ym(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){Q_(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){Q_(this._onDisabledChange,a)}_forEachChild(a){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(a){ym(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}},Js=zo,XM={provide:gn,useExisting:(0,n.Gpc)(()=>ua)},eb=(()=>Promise.resolve(null))();let ua=(()=>{class i extends gn{constructor(e,t,r,d,u){super(),this._changeDetectorRef=u,this.control=new zo,this._registered=!1,this.update=new n.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Dp(0,d)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),bm(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){$s(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){eb.then(()=>{var t;this.control.setValue(e,{emitViewToModelChange:!1}),null===(t=this._changeDetectorRef)||void 0===t||t.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&(0,n.D6c)(t);eb.then(()=>{var d;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(d=this._changeDetectorRef)||void 0===d||d.markForCheck()})}_getPath(e){return this._parent?Nu(e,this._parent):[e]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Wi,9),n.Y36(Vi,10),n.Y36(jo,10),n.Y36(ar,10),n.Y36(n.sBO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n._Bn([XM]),n.qOj,n.TTD]}),i})(),Mm=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),i})();const KM={provide:ar,useExisting:(0,n.Gpc)(()=>Lp),multi:!0};let Lp=(()=>{class i extends jl{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&n.NdJ("input",function(d){return t.onChange(d.target.value)})("blur",function(){return t.onTouched()})},features:[n._Bn([KM]),n.qOj]}),i})(),vm=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const xm=new n.OlP("NgModelWithFormControlWarning"),ib={provide:gn,useExisting:(0,n.Gpc)(()=>sr)};let sr=(()=>{class i extends gn{constructor(e,t,r,d){super(),this._ngModelWarningConfig=d,this.update=new n.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Dp(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&xp(t,this,!1),$s(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}bm(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&xp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(e){return new(e||i)(n.Y36(Vi,10),n.Y36(jo,10),n.Y36(ar,10),n.Y36(xm,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n._Bn([ib]),n.qOj,n.TTD]}),i})();const rb={provide:Wi,useExisting:(0,n.Gpc)(()=>Qs)};let Qs=(()=>{class i extends Wi{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ep(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return $s(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){xp(e.control||null,e,!1),function J_(i,a){const e=i.indexOf(a);e>-1&&i.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Z_(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(xp(t||null,e),(i=>i instanceof zo)(r)&&($s(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Y_(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function W_(i,a){return Ep(i,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_m(this.form,this),this._oldForm&&Ep(this._oldForm,this)}_checkFormPresent(){}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Vi,10),n.Y36(jo,10))},i.\u0275dir=n.lG2({type:i,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&n.NdJ("submit",function(d){return t.onSubmit(d)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([rb]),n.qOj,n.TTD]}),i})();const tC={provide:gn,useExisting:(0,n.Gpc)(()=>kp)};let kp=(()=>{class i extends gn{constructor(e,t,r,d,u){super(),this._ngModelWarningConfig=u,this._added=!1,this.update=new n.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Dp(0,d)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),bm(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Nu(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(e){return new(e||i)(n.Y36(Wi,13),n.Y36(Vi,10),n.Y36(jo,10),n.Y36(ar,10),n.Y36(xm,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n._Bn([tC]),n.qOj,n.TTD]}),i})(),Ul=(()=>{class i{constructor(){this._validator=ld}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):ld,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();const db={provide:Vi,useExisting:(0,n.Gpc)(()=>Nr),multi:!0};let Nr=(()=>{class i extends Ul{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n.D6c,this.createValidator=e=>nm}enabled(e){return e}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&n.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[n._Bn([db]),n.qOj]}),i})(),Pm=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[vm]}),i})(),Fu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Pm]}),i})(),Xs=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:xm,useValue:e.warnOnNgModelWithFormControl}]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Pm]}),i})();class hC extends fm{constructor(a,e,t){super(Cp(e),vp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[this._adjustIndex(a)]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){let t=this._adjustIndex(a);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){let r=this._adjustIndex(a);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){qM(this,0,a),a.forEach((t,r)=>{UM(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>a.getRawValue())}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_adjustIndex(a){return a<0?a+this.length:a}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}_find(a){var e;return null!==(e=this.at(a))&&void 0!==e?e:null}}function km(i){return!!i&&(void 0!==i.asyncValidators||void 0!==i.validators||void 0!==i.updateOn)}let mC=(()=>{class i{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new i;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let d={};return km(t)?d=t:null!==t&&(d.validators=t.validator,d.asyncValidators=t.asyncValidator),new mm(r,d)}control(e,t,r){let d={};return this.useNonNullable?(km(t)?d=t:(d.validators=t,d.asyncValidators=r),new zo(e,{...d,nonNullable:!0})):new zo(e,t,r)}array(e,t,r){const d=e.map(u=>this._createControl(u));return new hC(d,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return e instanceof zo||e instanceof fm?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:Xs}),i})(),pd=(()=>{class i extends mC{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:Xs}),i})();const Om=["trigger"],ss=["panel"];function gC(i,a){if(1&i&&(n.TgZ(0,"span",8),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.placeholder)}}function Np(i,a){if(1&i&&(n.TgZ(0,"span",12),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.triggerValue)}}function zu(i,a){1&i&&n.Hsn(0,0,["*ngSwitchCase","true"])}function _C(i,a){if(1&i&&(n.TgZ(0,"span",9),n.YNc(1,Np,2,1,"span",10),n.YNc(2,zu,1,0,"ng-content",11),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngSwitch",!!e.customTrigger),n.xp6(2),n.Q6J("ngSwitchCase",!0)}}function bC(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",13)(1,"div",14,15),n.NdJ("@transformPanel.done",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._handleKeydown(r))}),n.Hsn(3,1),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("@transformPanelWrap",void 0),n.xp6(1),n.Gre("mat-select-panel ",e._getPanelTheme(),""),n.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),n.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),n.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const AC=[[["mat-select-trigger"]],"*"],Vp=["mat-select-trigger","*"],Uu={transformPanelWrap:En("transformPanelWrap",[Ot("* => void",Br("@transformPanel",[Hu()],{optional:!0}))]),transformPanel:En("transformPanel",[ut("void",je({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),ut("showing",je({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),ut("showing-multiple",je({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ot("void => *",Rt("120ms cubic-bezier(0, 0, 0.2, 1)")),Ot("* => void",Rt("100ms 25ms linear",je({opacity:0})))])};let Im=0;const jp=new n.OlP("mat-select-scroll-strategy"),Bm=new n.OlP("MAT_SELECT_CONFIG"),Nm={provide:jp,deps:[rr],useFactory:function mb(i){return()=>i.scrollStrategies.reposition()}};class vC{constructor(a,e){this.source=a,this.value=e}}const TC=Ni(Vs(Xa(w0(class{constructor(i,a,e,t,r){this._elementRef=i,this._defaultErrorStateMatcher=a,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new Le.x}})))),xC=new n.OlP("MatSelectTrigger");let gb=(()=>{class i extends TC{constructor(e,t,r,d,u,c,o,s,l,h,p,m,g,f){var w,N,se;super(u,d,o,s,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=c,this._parentFormField=l,this._liveAnnouncer=g,this._defaultOptions=f,this._panelOpen=!1,this._compareWith=(Pe,ot)=>Pe===ot,this._uid="mat-select-"+Im++,this._triggerAriaLabelledBy=null,this._destroy=new Le.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Im++,this._panelDoneAnimatingStream=new Le.x,this._overlayPanelClass=(null===(w=this._defaultOptions)||void 0===w?void 0:w.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(N=null===(se=this._defaultOptions)||void 0===se?void 0:se.disableOptionCentering)&&void 0!==N&&N,this.ariaLabel="",this.optionSelectionChanges=Rn(()=>{const Pe=this.options;return Pe?Pe.changes.pipe(vn(Pe),(0,An.w)(()=>(0,kn.T)(...Pe.map(ot=>ot.onSelectionChange)))):this._ngZone.onStable.pipe((0,ht.q)(1),(0,An.w)(()=>this.optionSelectionChanges))}),this.openedChange=new n.vpe,this._openedStream=this.openedChange.pipe((0,bt.h)(Pe=>Pe),(0,Mt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,bt.h)(Pe=>!Pe),(0,Mt.U)(()=>{})),this.selectionChange=new n.vpe,this.valueChange=new n.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=f?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=f.typeaheadDebounceInterval),this._scrollStrategyFactory=m,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,t,r,d;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(d=r.control)||void 0===d?void 0:d.hasValidator(bi.required))&&void 0!==e&&e}set required(e){this._required=Ge(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Ge(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Ge(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Qt(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Yi(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(qc(),rt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(rt(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(vn(null),rt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,d=13===t||32===t,u=this._keyManager;if(!u.isTyping()&&d&&!Di(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const c=this.selected;u.onKeydown(e);const o=this.selected;o&&c!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,d=40===r||38===r,u=t.isTyping();if(d&&e.altKey)e.preventDefault(),this.close();else if(u||13!==r&&32!==r||!t.activeItem||Di(e))if(!u&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const c=this.options.some(o=>!o.disabled&&!o.selected);this.options.forEach(o=>{o.disabled||(c?o.select():o.deselect())})}else{const c=t.activeItemIndex;t.onKeydown(e),this._multiple&&d&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==c&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,ht.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new bw(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(rt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(rt(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=(0,kn.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(rt(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,kn.T)(...this.options.map(t=>t._stateChanges)).pipe(rt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Us),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(Qc),n.Y36(n.SBq),n.Y36(Hi,8),n.Y36(Zs,8),n.Y36(Qs,8),n.Y36(od,8),n.Y36(gn,10),n.$8M("tabindex"),n.Y36(jp),n.Y36(Ns),n.Y36(Bm,8))},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&(n.Gf(Om,5),n.Gf(ss,5),n.Gf(cp,5)),2&e){let r;n.iGM(r=n.CRH())&&(t.trigger=r.first),n.iGM(r=n.CRH())&&(t.panel=r.first),n.iGM(r=n.CRH())&&(t._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[n.qOj,n.TTD]}),i})(),md=(()=>{class i extends gb{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,t,r){const d=this._getItemHeight();return Math.min(Math.max(0,d*e-t+d/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(rt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,ht.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=Qh(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:Z1((e+t)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new vC(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),d=this.multiple?56:32;let u;if(this.multiple)u=40;else if(this.disableOptionCentering)u=16;else{let s=this._selectionModel.selected[0]||this.options.first;u=s&&s.group?32:16}r||(u*=-1);const c=0-(e.left+u-(r?d:0)),o=e.right+u-t.width+(r?0:d);c>0?u+=c+8:o>0&&(u-=o+8),this._overlayDir.offsetX=Math.round(u),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const d=this._getItemHeight(),u=(d-this._triggerRect.height)/2,c=Math.floor(256/d);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*d:this._scrollTop===r?(e-(this._getItemCount()-c))*d+(d-(this._getItemCount()*d-256)%d):t-d/2,Math.round(-1*o-u))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),d=this._triggerRect.top-8,u=r.height-this._triggerRect.bottom-8,c=Math.abs(this._offsetY),s=Math.min(this._getItemCount()*t,256)-c-this._triggerRect.height;s>u?this._adjustPanelUp(s,u):c>d?this._adjustPanelDown(c,d,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const r=Math.round(e-t);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,r){const d=Math.round(e-t);if(this._scrollTop+=d,this._offsetY+=d,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),r=Math.min(t*e,256),u=t*e-r;let c;c=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),c+=Qh(c,this.options,this.optionGroups);const o=r/2;this._scrollTop=this._calculateOverlayScroll(c,o,u),this._offsetY=this._calculateOverlayOffsetY(c,o,u),this._checkOverlayWithinViewport(u)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,xC,5),n.Suo(r,Fs,5),n.Suo(r,_r,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.customTrigger=d.first),n.iGM(d=n.CRH())&&(t.options=d),n.iGM(d=n.CRH())&&(t.optionGroups=d)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&n.NdJ("keydown",function(d){return t._handleKeydown(d)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(n.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-activedescendant",t._getAriaActiveDescendant()),n.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[n._Bn([{provide:sd,useExisting:i},{provide:S0,useExisting:i}]),n.qOj],ngContentSelectors:Vp,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(n.F$t(AC),n.TgZ(0,"div",0,1),n.NdJ("click",function(){return t.toggle()}),n.TgZ(3,"div",2),n.YNc(4,gC,2,1,"span",3),n.YNc(5,_C,3,2,"span",4),n.qZA(),n.TgZ(6,"div",5),n._UZ(7,"div",6),n.qZA()(),n.YNc(8,bC,4,14,"ng-template",7),n.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=n.MAs(1);n.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),n.xp6(3),n.Q6J("ngSwitch",t.empty),n.uIk("id",t._valueId),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1),n.xp6(3),n.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},dependencies:[T.mk,T.RF,T.n9,T.ED,cp,Lu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Uu.transformPanelWrap,Uu.transformPanel]},changeDetection:0}),i})(),gd=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Nm],imports:[T.ez,Bo,_u,wt,da,Gs,_u,wt]}),i})();const _b=["tooltip"],Ab="tooltip-panel",Vm=kr({passive:!0}),jm=new n.OlP("mat-tooltip-scroll-strategy"),Ar={provide:jm,deps:[rr],useFactory:function EC(i){return()=>i.scrollStrategies.reposition({scrollThrottle:20})}},_d=new n.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function DC(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let LC=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p,m){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=d,this._ngZone=u,this._platform=c,this._ariaDescriber=o,this._focusMonitor=s,this._dir=h,this._defaultOptions=p,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Le.x,this._scrollStrategy=l,this._document=m,p&&(p.position&&(this.position=p.position),p.touchGestures&&(this.touchGestures=p.touchGestures)),h.change.pipe(rt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var t;e!==this._position&&(this._position=e,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition())}get disabled(){return this._disabled}set disabled(e){this._disabled=Ge(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Qt(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Qt(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(rt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,Vm)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new Ys(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=t.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(rt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return r.positionChanges.pipe(rt(this._destroyed)).subscribe(d=>{this._updateCurrentPositionClass(d.connectionPair),this._tooltipInstance&&d.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${Ab}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(rt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(rt(this._destroyed)).subscribe(()=>{var d;return null===(d=this._tooltipInstance)||void 0===d?void 0:d._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(rt(this._destroyed)).subscribe(d=>{this._isTooltipVisible()&&27===d.keyCode&&!Di(d)&&(d.preventDefault(),d.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(e=this._defaultOptions)&&void 0!==e&&e.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),d=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...d.main}),this._addOffset({...r.fallback,...d.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:d,y:u}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:d,originY:u}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:d,y:u}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:d,overlayY:u}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,ht.q)(1),rt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:d}=e;let u;if(u="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===d?"above":"below",u!==this._currentPosition){const c=this._overlayRef;if(c){const o=`${this._cssClassPrefix}-${Ab}-`;c.removePanelClass(o+this._currentPosition),c.addPanelClass(o+u)}this._currentPosition=u}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{var r;const d=t.relatedTarget;(!d||null===(r=this._overlayRef)||void 0===r||!r.overlayElement.contains(d))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,Vm)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),i})(),yr=(()=>{class i extends LC{constructor(e,t,r,d,u,c,o,s,l,h,p,m){super(e,t,r,d,u,c,o,s,l,h,p,m),this._tooltipComponent=wb}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.SBq),n.Y36(ts),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(Qn),n.Y36(hu),n.Y36($r),n.Y36(jm),n.Y36(Hi,8),n.Y36(_d,8),n.Y36(T.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[n.qOj]}),i})(),OS=(()=>{class i{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Le.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,d=this._hideAnimation;if(t.classList.remove(e?d:r),t.classList.add(e?r:d),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const u=getComputedStyle(t);("0s"===u.getPropertyValue("animation-duration")||"none"===u.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i}),i})(),wb=(()=>{class i extends OS{constructor(e,t,r){super(e,r),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(P1),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&n.Gf(_b,7),2&e){let r;n.iGM(r=n.CRH())&&(t._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&n.NdJ("mouseleave",function(d){return t._handleMouseLeave(d)}),2&e&&n.Udp("zoom",t.isVisible()?1:null)},features:[n.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(n.TgZ(0,"div",0,1),n.NdJ("animationend",function(d){return t._handleAnimationEnd(d)}),n.ALo(2,"async"),n._uU(3),n.qZA()),2&e){let r;n.ekj("mat-tooltip-handset",null==(r=n.lcZ(2,4,t._isHandset))?null:r.matches),n.Q6J("ngClass",t.tooltipClass),n.xp6(3),n.Oqu(t.message)}},dependencies:[T.mk,T.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),i})(),Uo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Ar],imports:[Ll,T.ez,Bo,wt,wt,da]}),i})();function HC(i,a){if(1&i&&(n.TgZ(0,"mat-option",19),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function Fm(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",16)(1,"mat-select",17),n.NdJ("selectionChange",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d._changePageSize(r.value))}),n.YNc(2,HC,2,2,"mat-option",18),n.qZA()()}if(2&i){const e=n.oxw(2);n.Q6J("appearance",e._formFieldAppearance)("color",e.color),n.xp6(1),n.Q6J("value",e.pageSize)("disabled",e.disabled)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),n.xp6(1),n.Q6J("ngForOf",e._displayedPageSizeOptions)}}function RC(i,a){if(1&i&&(n.TgZ(0,"div",20),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.pageSize)}}function Mb(i,a){if(1&i&&(n.TgZ(0,"div",12)(1,"div",13),n._uU(2),n.qZA(),n.YNc(3,Fm,3,8,"mat-form-field",14),n.YNc(4,RC,2,1,"div",15),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",e._intl.itemsPerPageLabel," "),n.xp6(1),n.Q6J("ngIf",e._displayedPageSizeOptions.length>1),n.xp6(1),n.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function PC(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.firstPage())}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",22),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),n.uIk("aria-label",e._intl.firstPageLabel)}}function kC(i,a){if(1&i){const e=n.EpF();n.O4$(),n.kcU(),n.TgZ(0,"button",23),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.lastPage())}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",24),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),n.uIk("aria-label",e._intl.lastPageLabel)}}let Ks=(()=>{class i{constructor(){this.changes=new Le.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const d=e*t;return`${d+1} \u2013 ${d<(r=Math.max(r,0))?Math.min(d+t,r):d+t} of ${r}`}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const zm={provide:Ks,deps:[[new n.FiY,new n.tp0,Ks]],useFactory:function OC(i){return i||new Ks}},zp=new n.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Um=Xa(M0(class{}));let IS=(()=>{class i extends Um{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new n.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:d,pageSizeOptions:u,hidePageSize:c,showFirstLastButtons:o}=r;null!=d&&(this._pageSize=d),null!=u&&(this._pageSizeOptions=u),null!=c&&(this._hidePageSize=c),null!=o&&(this._showFirstLastButtons=o)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Qt(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Qt(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Qt(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>Qt(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Ge(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Ge(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[n.qOj]}),i})(),qm=(()=>{class i extends IS{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ks),n.Y36(n.sBO),n.Y36(zp,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[n.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,Mb,5,3,"div",2),n.TgZ(3,"div",3)(4,"div",4),n._uU(5),n.qZA(),n.YNc(6,PC,3,5,"button",5),n.TgZ(7,"button",6),n.NdJ("click",function(){return t.previousPage()}),n.O4$(),n.TgZ(8,"svg",7),n._UZ(9,"path",8),n.qZA()(),n.kcU(),n.TgZ(10,"button",9),n.NdJ("click",function(){return t.nextPage()}),n.O4$(),n.TgZ(11,"svg",7),n._UZ(12,"path",10),n.qZA()(),n.YNc(13,kC,3,5,"button",11),n.qZA()()()),2&e&&(n.xp6(2),n.Q6J("ngIf",!t.hidePageSize),n.xp6(3),n.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),n.xp6(1),n.Q6J("ngIf",t.showFirstLastButtons),n.xp6(1),n.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),n.uIk("aria-label",t._intl.previousPageLabel),n.xp6(3),n.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),n.uIk("aria-label",t._intl.nextPageLabel),n.xp6(3),n.Q6J("ngIf",t.showFirstLastButtons))},dependencies:[T.sg,T.O5,Ht,di,md,Fs,yr],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),i})(),qu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[zm],imports:[T.ez,Ka,gd,Uo,wt]}),i})();var Up=E(1005);const bd=["mat-menu-item",""];function BC(i,a){1&i&&(n.O4$(),n.TgZ(0,"svg",2),n._UZ(1,"polygon",3),n.qZA())}const Ym=["*"];function Wm(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",0),n.NdJ("keydown",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._handleKeydown(r))})("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._onAnimationStart(r))})("@transformMenu.done",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._onAnimationDone(r))}),n.TgZ(1,"div",1),n.Hsn(2),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),n.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Gm={transformMenu:En("transformMenu",[ut("void",je({opacity:0,transform:"scale(0.8)"})),Ot("void => enter",Rt("120ms cubic-bezier(0, 0, 0.2, 1)",je({opacity:1,transform:"scale(1)"}))),Ot("* => void",Rt("100ms 25ms linear",je({opacity:0})))]),fadeInItems:En("fadeInItems",[ut("showing",je({opacity:1})),Ot("void => *",[je({opacity:0}),Rt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},NC=new n.OlP("MatMenuContent"),qp=new n.OlP("MAT_MENU_PANEL"),vb=Ni(Xa(class{}));let Ad=(()=>{class i extends vb{constructor(e,t,r,d,u){var c;super(),this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=d,this._changeDetectorRef=u,this.role="menuitem",this._hovered=new Le.x,this._focused=new Le.x,this._highlighted=!1,this._triggersSubmenu=!1,null==d||null===(c=d.addItem)||void 0===c||c.call(d,this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const t=this._elementRef.nativeElement.cloneNode(!0),r=t.querySelectorAll("mat-icon, .material-icons");for(let d=0;d{class i{constructor(e,t,r,d){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._changeDetectorRef=d,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new n.n_E,this._tabSubscription=Nt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Le.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new n.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+FC++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ge(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ge(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new m0(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(vn(this._directDescendantItems),(0,An.w)(e=>(0,kn.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var t;const r=this._keyManager;if("enter"===this._panelAnimationState&&null!==(t=r.activeItem)&&void 0!==t&&t._hasFocus()){const d=e.toArray(),u=Math.max(0,Math.min(d.length-1,r.activeItemIndex||0));d[u]&&!d[u].disabled?r.setActiveItem(u):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(vn(this._directDescendantItems),(0,An.w)(t=>(0,kn.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:Di(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,ht.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,d=Object.keys(this._classList).find(u=>u.startsWith(this._elevationPrefix));(!d||d===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,t=this.yPosition){var r;const d=this._classList;d["mat-menu-before"]="before"===e,d["mat-menu-after"]="after"===e,d["mat-menu-above"]="above"===t,d["mat-menu-below"]="below"===t,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(vn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Tb),n.Y36(n.sBO))},i.\u0275dir=n.lG2({type:i,contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,NC,5),n.Suo(r,Ad,5),n.Suo(r,Ad,4)),2&e){let d;n.iGM(d=n.CRH())&&(t.lazyContent=d.first),n.iGM(d=n.CRH())&&(t._allItems=d),n.iGM(d=n.CRH())&&(t.items=d)}},viewQuery:function(e,t){if(1&e&&n.Gf(n.Rgc,5),2&e){let r;n.iGM(r=n.CRH())&&(t.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),i})(),Yp=(()=>{class i extends yd{constructor(e,t,r,d){super(e,t,r,d),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Tb),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&n.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[n._Bn([{provide:qp,useExisting:i}]),n.qOj],ngContentSelectors:Ym,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,Wm,3,6,"ng-template"))},dependencies:[T.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Gm.transformMenu,Gm.fadeInItems]},changeDetection:0}),i})();const $m=new n.OlP("mat-menu-scroll-strategy"),zC={provide:$m,deps:[rr],useFactory:function Sb(i){return()=>i.scrollStrategies.reposition()}},UC=kr({passive:!0});let Eb=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=c,this._dir=o,this._focusMonitor=s,this._ngZone=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Nt.w0.EMPTY,this._hoverSubscription=Nt.w0.EMPTY,this._menuCloseSubscription=Nt.w0.EMPTY,this._handleTouchStart=h=>{_0(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new n.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new n.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=d,this._parentMaterialMenu=u instanceof yd?u:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,UC),c&&(c._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,UC),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),d=r.positionStrategy;this._setPosition(e,d),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof yd&&(e._startAnimation(),e._directDescendantItems.changes.pipe(rt(e.close)).subscribe(()=>{d.withLockedPosition(!1).reapplyLastPosition(),d.withLockedPosition(!0)}))}closeMenu(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;var r;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof yd?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,bt.h)(d=>"void"===d.toState),(0,ht.q)(1),rt(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==t||null===(r=t.lazyContent)||void 0===r||r.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new ad({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const d="start"===r.connectionPair.overlayX?"after":"before",u="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(d,u)):e.setPositionClasses(d,u)})}_setPosition(e,t){let[r,d]="before"===e.xPosition?["end","start"]:["start","end"],[u,c]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[o,s]=[u,c],[l,h]=[r,d],p=0;if(this.triggersSubmenu()){if(h=r="before"===e.xPosition?"start":"end",d=l="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const m=this._parentMaterialMenu.items.first;this._parentInnerPadding=m?m._getHostElement().offsetTop:0}p="bottom"===u?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(o="top"===u?"bottom":"top",s="top"===c?"bottom":"top");t.withPositions([{originX:r,originY:o,overlayX:l,overlayY:u,offsetY:p},{originX:d,originY:o,overlayX:h,overlayY:u,offsetY:p},{originX:r,originY:s,overlayX:l,overlayY:c,offsetY:-p},{originX:d,originY:s,overlayX:h,overlayY:c,offsetY:-p}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Ee.of)(),d=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,bt.h)(u=>u!==this._menuItemInstance),(0,bt.h)(()=>this._menuOpen)):(0,Ee.of)();return(0,kn.T)(e,r,d,t)}_handleMousedown(e){jh(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,bt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,Up.g)(0,wu)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof yd&&this.menu._isAnimating?this.menu._animationDone.pipe((0,ht.q)(1),(0,Up.g)(0,wu),rt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Oa(e.templateRef,this._viewContainerRef)),this._portal}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.SBq),n.Y36(n.s_b),n.Y36($m),n.Y36(qp,8),n.Y36(Ad,10),n.Y36(Hi,8),n.Y36($r),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,hostVars:3,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t._handleClick(d)})("mousedown",function(d){return t._handleMousedown(d)})("keydown",function(d){return t._handleKeydown(d)}),2&e&&n.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),i})(),Db=(()=>{class i extends Eb{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[n.qOj]}),i})(),Wp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[zC],imports:[T.ez,wt,ca,Bo,da,wt]}),i})();const zS=["*"];let Zm;function Gp(i){var a;return(null===(a=function US(){if(void 0===Zm&&(Zm=null,typeof window<"u")){const i=window;void 0!==i.trustedTypes&&(Zm=i.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return Zm}())||void 0===a?void 0:a.createHTML(i))||i}function qC(i){return Error(`Unable to find icon with the name "${i}"`)}function Yu(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function YC(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}class qo{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let Yo=(()=>{class i{constructor(e,t,r,d){this._httpClient=e,this._sanitizer=t,this._errorHandler=d,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,d){return this._addSvgIconConfig(e,t,new qo(r,null,d))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,d){const u=this._sanitizer.sanitize(n.q3G.HTML,r);if(!u)throw YC(r);const c=Gp(u);return this._addSvgIconConfig(e,t,new qo("",c,d))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new qo(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const d=this._sanitizer.sanitize(n.q3G.HTML,t);if(!d)throw YC(t);const u=Gp(d);return this._addSvgIconSetConfig(e,new qo("",u,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,e);if(!t)throw Yu(e);const r=this._cachedIconsByUrl.get(t);return r?(0,Ee.of)(Jm(r)):this._loadSvgIconFromConfig(new qo(e,null)).pipe((0,Wt.b)(d=>this._cachedIconsByUrl.set(t,d)),(0,Mt.U)(d=>Jm(d)))}getNamedSvgIcon(e,t=""){const r=$p(t,e);let d=this._svgIconConfigs.get(r);if(d)return this._getSvgFromConfig(d);if(d=this._getIconConfigFromResolvers(t,e),d)return this._svgIconConfigs.set(r,d),this._getSvgFromConfig(d);const u=this._iconSetConfigs.get(t);return u?this._getSvgFromIconSetConfigs(e,u):(0,Ui._)(qC(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Ee.of)(Jm(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,Mt.U)(t=>Jm(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,Ee.of)(r):ma(t.filter(u=>!u.svgText).map(u=>this._loadSvgIconSetFromConfig(u).pipe((0,Fn.K)(c=>{const s=`Loading icon set URL: ${this._sanitizer.sanitize(n.q3G.RESOURCE_URL,u.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(s)),(0,Ee.of)(null)})))).pipe((0,Mt.U)(()=>{const u=this._extractIconWithNameFromAnySet(e,t);if(!u)throw qC(e);return u}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const d=t[r];if(d.svgText&&d.svgText.toString().indexOf(e)>-1){const u=this._svgElementFromConfig(d),c=this._extractSvgIconFromSet(u,e,d.options);if(c)return c}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Wt.b)(t=>e.svgText=t),(0,Mt.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Ee.of)(null):this._fetchIcon(e).pipe((0,Wt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const d=e.querySelector(`[id="${t}"]`);if(!d)return null;const u=d.cloneNode(!0);if(u.removeAttribute("id"),"svg"===u.nodeName.toLowerCase())return this._setSvgAttributes(u,r);if("symbol"===u.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(u),r);const c=this._svgElementFromString(Gp(""));return c.appendChild(u),this._setSvgAttributes(c,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(Gp("")),r=e.attributes;for(let d=0;dGp(l)),bo(()=>this._inProgressUrlFetches.delete(c)),(0,uo.B)());return this._inProgressUrlFetches.set(c,s),s}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set($p(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;ra?a.pathname+a.search:""}}}),Pb=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ZC=Pb.map(i=>`[${i}]`).join(", "),Zp=/^url\(['"]?#(.*?)['"]?\)$/;let zn=(()=>{class i extends GC{constructor(e,t,r,d,u,c){super(e),this._iconRegistry=t,this._location=d,this._errorHandler=u,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Nt.w0.EMPTY,c&&(c.color&&(this.color=this.defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Ge(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,d)=>{r.forEach(u=>{d.setAttribute(u.name,`url('${e}#${u.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(ZC),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let d=0;d{const c=t[d],o=c.getAttribute(u),s=o?o.match(Zp):null;if(s){let l=r.get(c);l||(l=[],r.set(c,l)),l.push({name:u,value:s[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe((0,ht.q)(1)).subscribe(d=>this._setSvgElement(d),d=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${d.message}`))})}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Yo),n.$8M("aria-hidden"),n.Y36(YS),n.Y36(n.qLn),n.Y36(Rb,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(n.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),n.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.qOj],ngContentSelectors:zS,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),i})(),eo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})(),JC=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[qu,Wp,eo,Ka,po,T.ez]}),i})();var WS=E(5861);function QC(i,a){}class Jp{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let XC=(()=>{class i extends Oo{constructor(e,t,r,d,u,c,o,s){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=d,this._interactivityChecker=u,this._ngZone=c,this._overlayRef=o,this._focusMonitor=s,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=l=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(l);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=r0(),d=this._elementRef.nativeElement;(!r||r===this._document.body||r===d||d.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=r0();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=r0())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(fu),n.Y36(T.K0,8),n.Y36(Jp),n.Y36(Wc),n.Y36(n.R0b),n.Y36(Nl),n.Y36($r))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&n.Gf(rd,7),2&e){let r;n.iGM(r=n.CRH())&&(t._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&n.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[n.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&n.YNc(0,QC,0,0,"ng-template",0)},dependencies:[rd],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),i})();class Qm{constructor(a,e){this.overlayRef=a,this.config=e,this.closed=new Le.x,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!Di(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(a,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}}const Xm=new n.OlP("DialogScrollStrategy"),kb=new n.OlP("DialogData"),$S=new n.OlP("DefaultDialogConfig"),KC={provide:Xm,deps:[rr],useFactory:function Va(i){return()=>i.scrollStrategies.block()}};let Km=0,Ob=(()=>{class i{constructor(e,t,r,d,u,c){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=d,this._overlayContainer=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Le.x,this._afterOpenedAtThisLevel=new Le.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Rn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(vn(void 0))),this._scrollStrategy=c}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Jp,...t}).id=t.id||"cdk-dialog-"+Km++,t.id&&this.getDialogById(t.id);const d=this._getOverlayConfig(t),u=this._overlay.create(d),c=new Qm(u,t),o=this._attachContainer(u,c,t);return c.containerInstance=o,this._attachDialogContent(e,c,o,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(c),c.closed.subscribe(()=>this._removeOpenDialog(c,!0)),this.afterOpened.next(c),c}closeAll(){wr(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){wr(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),wr(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new ad({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){var d,u;const c=null!==(d=r.injector)&&void 0!==d?d:null===(u=r.viewContainerRef)||void 0===u?void 0:u.injector,o=[{provide:Jp,useValue:r},{provide:Qm,useValue:t},{provide:Nl,useValue:e}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,o.push(...r.container.providers(r))):s=XC;const l=new Ys(s,r.viewContainerRef,n.zs3.create({parent:c||this._injector,providers:o}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,t,r,d){const u=this._createInjector(d,t,r);if(e instanceof n.Rgc){let c={$implicit:d.data,dialogRef:t};d.templateContext&&(c={...c,..."function"==typeof d.templateContext?d.templateContext():d.templateContext}),r.attachTemplatePortal(new Oa(e,null,c,u))}else{const c=r.attachComponentPortal(new Ys(e,d.viewContainerRef,u,d.componentFactoryResolver));t.componentInstance=c.instance}}_createInjector(e,t,r){const d=e&&e.viewContainerRef&&e.viewContainerRef.injector,u=[{provide:kb,useValue:e.data},{provide:Qm,useValue:t}];return e.providers&&("function"==typeof e.providers?u.push(...e.providers(t,e,r)):u.push(...e.providers)),e.direction&&(!d||!d.get(Hi,null,n.XFs.Optional))&&u.push({provide:Hi,useValue:{value:e.direction,change:(0,Ee.of)()}}),n.zs3.create({parent:e.injector||d||this._injector,providers:u})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((d,u)=>{d?u.setAttribute("aria-hidden",d):u.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const d=t[r];d!==e&&"SCRIPT"!==d.nodeName&&"STYLE"!==d.nodeName&&!d.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(d,d.getAttribute("aria-hidden")),d.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(rr),n.LFG(n.zs3),n.LFG($S,8),n.LFG(i,12),n.LFG(Bl),n.LFG(Xm))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function wr(i,a){let e=i.length;for(;e--;)a(i[e])}let ev=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Ob,KC],imports:[Bo,Ws,Ll,Ws]}),i})();function eg(i,a){}const wd={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},tv={dialogContainer:En("dialogContainer",[ut("void, exit",je({opacity:0,transform:"scale(0.7)"})),ut("enter",je({transform:"none"})),Ot("* => enter",dp([Rt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",je({transform:"none",opacity:1})),Br("@*",Hu(),{optional:!0})]),wd),Ot("* => void, * => exit",dp([Rt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",je({opacity:0})),Br("@*",Hu(),{optional:!0})]),wd)])};class Wl{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=wd.params.enterAnimationDuration,this.exitAnimationDuration=wd.params.exitAnimationDuration}}let Ib=(()=>{class i extends XC{constructor(e,t,r,d,u,c,o,s){super(e,t,r,d,u,c,o,s),this._animationStateChanged=new n.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(fu),n.Y36(T.K0,8),n.Y36(Wl),n.Y36(Wc),n.Y36(n.R0b),n.Y36(Nl),n.Y36($r))},i.\u0275cmp=n.Xpm({type:i,selectors:[["ng-component"]],features:[n.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),i})(),Bb=(()=>{class i extends Ib{constructor(e,t,r,d,u,c,o,s,l){super(e,t,r,d,u,c,o,l),this._changeDetectorRef=s,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||wd.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||wd.params.exitAnimationDuration}}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(fu),n.Y36(T.K0,8),n.Y36(Wl),n.Y36(Wc),n.Y36(n.R0b),n.Y36(Nl),n.Y36(n.sBO),n.Y36($r))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&n.WFA("@dialogContainer.start",function(d){return t._onAnimationStart(d)})("@dialogContainer.done",function(d){return t._onAnimationDone(d)}),2&e&&(n.Ikx("id",t._config.id),n.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),n.d8E("@dialogContainer",t._getAnimationState()))},features:[n.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&n.YNc(0,eg,0,0,"ng-template",0)},dependencies:[rd],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[tv.dialogContainer]}}),i})();class Ln{constructor(a,e,t){this._ref=a,this._containerInstance=t,this._afterOpened=new Le.x,this._beforeClosed=new Le.x,this._state=0,this.disableClose=e.disableClose,this.id=a.id,t._animationStateChanged.pipe((0,bt.h)(r=>"opened"===r.state),(0,ht.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,bt.h)(r=>"closed"===r.state),(0,ht.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,kn.T)(this.backdropClick(),this.keydownEvents().pipe((0,bt.h)(r=>27===r.keyCode&&!this.disableClose&&!Di(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function Nb(i,a,e){i._closeInteractionType=a,i.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,bt.h)(e=>"closing"===e.state),(0,ht.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const ni=new n.OlP("MatDialogData"),nv=new n.OlP("mat-dialog-default-options"),tg=new n.OlP("mat-dialog-scroll-strategy"),Wo={provide:tg,deps:[rr],useFactory:function ng(i){return()=>i.scrollStrategies.block()}};let Vb=0,ig=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h){this._overlay=e,this._defaultOptions=r,this._parentDialog=d,this._dialogRefConstructor=o,this._dialogContainerType=s,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Le.x,this._afterOpenedAtThisLevel=new Le.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Rn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(vn(void 0))),this._scrollStrategy=c,this._dialog=t.get(Ob)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let r;(t={...this._defaultOptions||new Wl,...t}).id=t.id||`${this._idPrefix}${Vb++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const d=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Wl,useValue:t},{provide:Jp,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(u,c,o)=>{var s;return r=new this._dialogRefConstructor(u,t,o),r.updatePosition(null===(s=t)||void 0===s?void 0:s.position),[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:c.data},{provide:this._dialogRefConstructor,useValue:r}]}});return r.componentInstance=d.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const u=this.openDialogs.indexOf(r);u>-1&&(this.openDialogs.splice(u,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),on=(()=>{class i extends ig{constructor(e,t,r,d,u,c,o,s){super(e,t,d,c,o,u,Ln,Bb,ni,s)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(rr),n.LFG(n.zs3),n.LFG(T.Ye,8),n.LFG(nv,8),n.LFG(tg),n.LFG(i,12),n.LFG(Bl),n.LFG(n.QbO,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),iv=0,Xn=(()=>{class i{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+iv++}ngOnInit(){this._dialogRef||(this._dialogRef=function rv(i,a){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln,8),n.Y36(n.SBq),n.Y36(on))},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&n.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),i})(),ii=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),i})(),Un=(()=>{class i{constructor(){this.align="start"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),i})(),Wu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[on,Wo],imports:[ev,Bo,Ws,wt,wt]}),i})();var JS=E(4327);const Gl=[5,10,25,100];function sg(){return(sg=(0,WS.Z)(function*(i,a){yield zb(i),a()})).apply(this,arguments)}function zb(i){return new Promise(a=>setTimeout(a,i))}function ln(){const i=new Wl;return i.disableClose=!0,i.autoFocus=!1,i}function to(i){return"virt"===i.namespace.split(":")[4]}const mv=new Intl.Collator("cs",{numeric:!0});function $l(i,a,e){const t=a.active,r=a.direction;return t&&""!==r?i.sort((d,u)=>{const c=e(d,t),o=e(u,t);return mv.compare(c,o)*("asc"===r?1:-1)}):i}function Zl(i,a,e,t,r){a=a.toLowerCase();let d="";return e.forEach(u=>{d+=";"+t(i,u)}),r&&(d+=";"+t(i,"uuid")),d.toLowerCase().includes(a)}function ja(i,a,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(d=>!r.includes(d)),i.forEach(d=>{const u={};a.forEach(c=>{u[c]=(e(d,c)??"").split('"').join("''").trim()}),t.push(u)}),t}function Fa(i,a="csv",e="export"){if("csv"===a){const t=(o,s)=>null===s?"":s,r=Object.keys(i[0]),d=i.map(o=>r.map(s=>JSON.stringify(o[s],t)).join(","));d.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const u=d.join("\r\n"),c=new Blob([u],{type:"text/csv"});(0,JS.saveAs)(c,`${e}.${a}`)}}function gv(i,a){return i.name.toLowerCase()>a.name.toLowerCase()?1:i.name.toLowerCase()===a.name.toLowerCase()?0:-1}const $b="GUI_CONFIG.PREF_PAGE_SIZE.";let wv=(()=>{class i{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Zb=(()=>{class i{constructor(e){this.guiConfigService=e,this.defaultTableSizes=new Map,this.defaultTableSizes.set(y,25),this.defaultTableSizes.set(Cv,25)}getTablePageSize(e){const t=this.guiConfigService.getNumber($b+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?this.defaultTableSizes.get(e)??10:r}setTablePageSize(e,t){this.guiConfigService.setNumber($b+e,t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(wv))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Cv="8",y="25";function p2(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.exportAllData.emit("csv"))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let f2=(()=>{class i{constructor(){this.exportDisplayedData=new n.vpe,this.exportAllData=new n.vpe}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(e,t){if(1&e&&(n.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA()(),n.TgZ(4,"mat-menu",null,2)(6,"button",3),n._uU(7),n.ALo(8,"translate"),n.qZA()(),n.TgZ(9,"mat-menu",null,4)(11,"button",3),n._uU(12,"Csv"),n.qZA()(),n.TgZ(13,"mat-menu",5,6)(15,"button",7),n.NdJ("click",function(){return t.exportDisplayedData.emit("csv")}),n._uU(16),n.ALo(17,"translate"),n.qZA(),n.YNc(18,p2,3,3,"button",8),n.qZA()()),2&e){const r=n.MAs(5),d=n.MAs(10),u=n.MAs(14);n.xp6(1),n.Q6J("matMenuTriggerFor",r),n.xp6(5),n.Q6J("matMenuTriggerFor",d),n.xp6(1),n.hij(" ",n.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),n.xp6(4),n.Q6J("matMenuTriggerFor",u),n.xp6(5),n.hij(" ",n.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),n.xp6(2),n.Q6J("ngIf",t.allowExportAll)}},dependencies:[Yp,Ad,Db,zn,Ht,T.O5,Ke]}),i})();const m2=["topNav"];function g2(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-table-options",7),n.NdJ("exportDisplayedData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportDisplayedData.emit(r))})("exportAllData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportAllData.emit(r))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("allowExportAll",e.allowExportAll)}}function _2(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-table-options",7),n.NdJ("exportDisplayedData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportDisplayedData.emit(r))})("exportAllData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportAllData.emit(r))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("allowExportAll",e.allowExportAll)}}const b2=["*"];let os=(()=>{class i{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=Gl,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new n.vpe,this.exportAllData=new n.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5),this.paginator._changePageSize(this.pageSize)}pageChangedTop(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}pageChangedBottom(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.paginator.page.emit(e),this.pageSize=e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,e.pageSize),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Zb))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&(n.Gf(m2,5),n.Gf(qm,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.topNav=r.first),n.iGM(r=n.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:b2,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),n.NdJ("page",function(d){return t.pageChangedTop(d)}),n.qZA(),n.YNc(4,g2,1,1,"perun-web-apps-table-options",4),n.qZA(),n.TgZ(5,"div",5),n.Hsn(6),n.qZA(),n.TgZ(7,"div",1)(8,"mat-paginator",6),n.NdJ("page",function(d){return t.pageChangedBottom(d)}),n.qZA(),n.YNc(9,_2,1,1,"perun-web-apps-table-options",4),n.qZA()()),2&e&&(n.xp6(3),n.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),n.xp6(1),n.Q6J("ngIf",!t.hideExport),n.xp6(4),n.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),n.xp6(1),n.Q6J("ngIf",!t.hideExport))},dependencies:[qm,T.O5,f2]}),i})();class hE{static passwordMatchValidator(a){const e=a.get("passwordCtrl").value,t=a.get("passwordAgainCtrl").value;return a.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(a){return e=>{if(!e.value)return null;let t=0;for(const r of a)t+=r.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}let Ut=(()=>{class i{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],r=this.defaultConfig[e];let d=null;for(const u of t)u&&null==d&&(d=u[e]);return null===d?r:this.addMissingValuesToProperty(d,r)}addMissingValuesToProperty(e,t){if(null==e)return t;if("object"==typeof e&&!Array.isArray(e))for(const r of Object.keys(t))e[r]=this.addMissingValuesToProperty(e[r],t[r]);return e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var Jl=E(1214);let Ql=(()=>{class i{constructor(e,t,r,d,u){this.injector=e,this.store=t,this.dialog=r,this.route=d,this.oauthService=u,setTimeout(()=>{this.router=this.injector.get(Dn),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(c=>{c.idpFilter&&(this.filterShortname=String(c.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),d=.5+.25*Math.random(),u=e?{acr_values:e}:{},c=this.store.getProperty("oidc_client");if(c.oauth_scopes.split(" ").includes("offline_access")&&c.oauth_offline_access_consent_prompt&&(u.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(u.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(u.prompt?u.prompt+=" login":u.prompt="login",u.max_age="0"),"Linker"===this.store.getProperty("application")){u.prompt?u.prompt+=" login":u.prompt="login";const o=function bv(i,a){const e=a.split("&");for(const t of e){const[r,d]=t.split("=");if(r.includes(i))return d}return""}("idphint",location.search.substring(1));o&&(u.idphint=o)}return{requestAccessToken:!0,issuer:c.oauth_authority,clientId:c.oauth_client_id,redirectUri:c.oauth_redirect_uri,postLogoutRedirectUri:c.oauth_post_logout_redirect_uri,responseType:c.oauth_response_type,scope:c.oauth_scopes,clockSkewInSec:1,timeoutFactor:d,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:u}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let r=null;return e.forEach(d=>{const u=d.split("=");"idpFilter"===u[0]&&t[u[1]]&&(this.filterShortname=u[1],r=t[u[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}startIdpFilterKeeper(){this.router.events.pipe((0,bt.h)(e=>e instanceof Rr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.zs3),n.LFG(Ut),n.LFG(on),n.LFG(mi),n.LFG(Jl.Ct))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),A2=(()=>{class i{constructor(e){this.dialogRef=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(n.TgZ(0,"h2",0),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[ii,Ke]}),i})();var y2=E(930);function pE(i,a){const e="object"==typeof a;return new Promise((t,r)=>{const d=new y2.Hp({next:u=>{t(u),d.unsubscribe()},error:r,complete:()=>{e?t(a.defaultValue):r(new wa.K)}});i.subscribe(d)})}function w2(i,a){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," info "),n.qZA())}function M2(i,a){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," warning "),n.qZA())}function C2(i,a){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," dangerous "),n.qZA())}function v2(i,a){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," check_circle "),n.qZA())}const T2=["*"];let yi=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:T2,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0),n.YNc(1,w2,2,0,"mat-icon",1),n.YNc(2,M2,2,0,"mat-icon",1),n.YNc(3,C2,2,0,"mat-icon",1),n.YNc(4,v2,2,0,"mat-icon",1),n.Hsn(5),n.qZA()),2&e&&(n.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),n.xp6(1),n.Q6J("ngIf","info"===t.alert_type),n.xp6(1),n.Q6J("ngIf","warn"===t.alert_type),n.xp6(1),n.Q6J("ngIf","error"===t.alert_type),n.xp6(1),n.Q6J("ngIf","success"===t.alert_type))},dependencies:[zn,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),i})(),x2=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"translate"),n.qZA()(),n.TgZ(8,"div",3)(9,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(13),n.ALo(14,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),n.xp6(4),n.hij(" ",t.data.mfaRoleException?n.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):n.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),n.xp6(4),n.Q6J("hidden",t.data.mfaRoleException),n.xp6(1),n.hij(" ",n.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),n.xp6(2),n.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),n.xp6(1),n.hij(" ",n.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Xn,ii,Un,Ht,yi,Ke]}),i})(),S2=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),n._uU(3," info "),n.qZA(),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div"),n._uU(7),n.ALo(8,"translate"),n.qZA()()),2&e&&(n.xp6(4),n.hij(" ",n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),n.xp6(3),n.hij(" ",n.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[zn,Ke],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),i})(),E2=(()=>{class i{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(ni),n.Y36(Ln))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"div",3)(8,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(12),n.ALo(13,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),n.xp6(4),n.hij(" ",n.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),n.xp6(4),n.hij(" ",n.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),n.xp6(3),n.hij(" ",n.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Xn,ii,Un,Ht,yi,Ke]}),i})(),vv=(()=>{class i{constructor(e,t,r,d){this.dialog=e,this.oauthService=t,this.authService=r,this.store=d}openMfaWindow(e){let t=null,r=null;const d=ln();d.width="450px",d.data={mfaRoleException:e};const u=this.dialog.open(x2,d);let c=!1;if(u.afterClosed().subscribe(o=>{if(o){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const s=ln();s.width="450px",s.panelClass="noBorderDialog",r=this.dialog.open(S2,s)}}else c=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const o=ln();o.width="450px",o.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(E2,o)}return new yn.y(o=>{const s=setInterval(()=>t?.closed?(clearInterval(s),r.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),o.next(!0)):c?(clearInterval(s),o.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,d=window.top;return window.open(e,"_blank",`width=600,height=600,top=${d.outerHeight/2+d.screenY-300}, left=${d.outerWidth/2+d.screenX-300}`)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(on),n.LFG(Jl.Ct),n.LFG(Ql),n.LFG(Ut))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Tv=(()=>{class i{constructor(e,t,r,d,u,c,o,s){this.authService=e,this.oauthService=t,this.storeService=r,this.authResolver=d,this.authzService=u,this.dialog=c,this.router=o,this.mfaHandlerService=s,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return pE(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=ln();this.dialog.open(A2,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return pE(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const r={};return t.split("&").forEach(d=>{const u=d.split("=");r[u[0]]=u[1]}),this.router.navigate(["service-access"],{queryParams:r,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,bt.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let d=[];r&&(d=r.split("&"));const u={};return d.forEach(c=>{const o=c.split("=");u[o[0]]=o[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:u,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ql),n.LFG(Jl.Ct),n.LFG(Ut),n.LFG(Cn),n.LFG(As),n.LFG(on),n.LFG(Dn),n.LFG(vv))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),fE=(()=>{class i{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Yo),n.LFG(ei))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),mE=(()=>{class i{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div",2)(7,"div",3)(8,"button",4),n.NdJ("click",function(){return t.close()}),n._uU(9),n.ALo(10,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),n.xp6(3),n.hij(" ",n.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),n.xp6(5),n.hij(" ",n.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Xn,ii,Un,Ht,Ke]}),i})(),cg=(()=>{class i{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Mr=(()=>{class i{constructor(e){this.translate=e,this.addNotification=new n.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){this.showInstantError("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR",null,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC")}showError(e,t,r,d,u){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===d&&void 0!==r?this.getDefaultActionMessage():d,delay:this.defaultErrorDelayMs,icon:"error_outline",action:u,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showInstantError(e,t,r,d,u){const c=r?this.translate.instant(r):null,o=d?this.translate.instant(d):null;o?this.showError(this.translate.instant(e),t,c,o,u):this.showError(this.translate.instant(e),t,c)}showSuccess(e,t,r,d){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===r&&void 0!==t?this.getDefaultActionMessage():r,delay:this.defaultSuccessDelayMs,icon:"done",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showInstantSuccess(e,t,r,d){const u=t?this.translate.instant(t):null,c=r?this.translate.instant(r):null;c?this.showSuccess(this.translate.instant(e),u,c,d):this.showSuccess(this.translate.instant(e),u)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(ac))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),gE=(()=>{class i{constructor(e,t,r,d,u,c,o,s){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=d,this.dialog=u,this.initAuthService=c,this.mfaHandlerService=o,this.oauthService=s}intercept(e,t){const r=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const d=ln();d.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(mE,d),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{bo(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const r=this.apiRequestConfiguration.shouldHandleError(),d="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Wt.b)(u=>{u instanceof C.Zn&&d&&this.initAuthService.loadPrincipal()}),(0,Fn.K)(u=>{const c=u.error;if("MfaPrivilegeException"===c.type||"MfaRolePrivilegeException"===c.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===c.type).pipe((0,An.w)(o=>o?("MfaRolePrivilegeException"===c.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,Ui._)(()=>c)));{this.handleInvalidAccessTokenError(u);const o=this.formatErrors(u,e);return void 0===o?(0,Ui._)(()=>u):(r&&this.notificator.showRPCError(o),(0,Ui._)(()=>o))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let r;console.error(e);const d=e.error;if(d.errorId&&(r=d),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){if(!this.isLoggedIn()||"invalid_token"===e.error.error||null!=this.dialogRefSessionExpiration)return;const t=ln();this.dialogRefSessionExpiration=this.dialog.open(mE,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ql),n.LFG(cg),n.LFG(Mr),n.LFG(Ut),n.LFG(on),n.LFG(Tv),n.LFG(vv),n.LFG(Jl.Ct))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),oA=(()=>{class i{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),D2=(()=>{class i{constructor(e,t,r,d){this.http=e,this.notificator=t,this.authService=r,this.storeService=d}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new C.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.get(r,{headers:this.getHeaders()}).pipe((0,Fn.K)(d=>this.formatErrors(d,r,null,t)))}put(e,t={},r=!0){const d=`${this.getApiUrl()}${e}`,u=JSON.stringify(t);return this.http.put(d,u,{headers:this.getHeaders()}).pipe((0,Fn.K)(c=>this.formatErrors(c,d,u,r)))}post(e,t={},r=!0){const d=`${this.getApiUrl()}${e}`,u=JSON.stringify(t);let c=this.getHeaders();return c=c.set("Content-Type","application/json; charset=utf-8"),this.http.post(d,u,{headers:c}).pipe((0,Fn.K)(o=>this.formatErrors(o,d,u,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,Fn.K)(d=>this.formatErrors(d,r,null,t)))}formatErrors(e,t,r,d){const u=e.error;return u.call=t,u.payload=r,d&&this.notificator.showRPCError(e.error),(0,Ui._)(u)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Mr),n.LFG(Ql),n.LFG(Ut))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),lA=(()=>{class i{isAllSelected(e,t,r=(()=>!0)){const d=t.paginator.pageSize??0,u=t.paginator.pageIndex??0,c=t.paginator.hasNextPage(),o=t.data.length===t.filteredData.length;this.numCanBeSelected=0,this.pageStart=u*d,this.pageEnd=this.pageStart+d,this.numSelected=e,this.dataLength=o?t.data.length:t.filteredData.length;const s=t.sort;return c||(this.modulo=this.dataLength%d,this.pageEnd=0===this.modulo?this.pageStart+d:this.pageStart+this.modulo),this.pageIterator=0,(s?t.sortData(t.filteredData,s):t.filteredData).forEach(h=>{this.pageStart<=this.pageIterator&&this.pageIterator{s?l(h)&&this.pageStart<=this.pageIterator&&this.pageIterator!0)){return t===e.data.reduce((d,u)=>d+Number(r(u)),0)}masterTogglePaginated(e,t,r,d=(()=>!0)){t.clear(),r&&e.data.forEach(u=>{d(u)&&t.select(u)})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),xv=(()=>{class i{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),r=navigator.languages.map(c=>c.split("-")[0]),d=location.search.substring(1).split("&");let u=null;for(const c of d){const o=c.split("=");"lang"===o[0]&&(u=o[1])}return u&&t.includes(u)?u:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(mi),n.LFG(Ut))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),cA=(()=>{class i{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const d of e)if(d.newApps.admin===t||d.newApps.profile===t||d.newApps.pwdReset===t||d.newApps.consolidator===t||d.newApps.linker===t)return d;return e.filter(d=>"default"===d.name)[0]||e[0]}getUrlForOtherApplication(e,t){const d=window.location.href.split("/"),u=d[0]+"//"+d[2],c=i.getBrandContainingDomain(this.storeService.getAppsConfig().brands,u);let o;if(c.newApps[e])o=c.newApps[e],"pwdReset"===e&&(o+=`?login-namespace=${t}`);else switch(o=c.oldGuiDomain+"/fed",e){case"admin":o+="/gui/";break;case"profile":o+="/profile/";break;case"pwdReset":o+=`/pwd-reset/?login-namespace=${t}`}return o}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ut))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Sv=(()=>{class i{setEntity(e){this.entity=e}getEntity(){return this.entity}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),H2=(()=>{class i{constructor(e,t,r){this.store=e,this.oauthService=t,this.httpClient=r,this.mfaApiUrl=this.store.getProperty("mfa").api_url}isMfaAvailable(){return this.httpClient.get(this.mfaApiUrl+"mfaAvailable",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}getCategories(){return this.httpClient.get(this.mfaApiUrl+"categories",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}getSettings(){return this.httpClient.get(this.mfaApiUrl+"settings",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}enforceMfaForAllServices(e){const t=`value=${String(e)}`;return this.httpClient.put(this.mfaApiUrl+"mfaEnforced",t,{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}updateDetailSettings(e){return this.httpClient.put(this.mfaApiUrl+"settings",e,{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken(),"content-type":"application/json"}})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ut),n.LFG(Jl.Ct),n.LFG(C.eN))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var Go=(()=>{return(i=Go||(Go={})).Admin="admin",i.Profile="profile",i.PwdReset="pwdReset",i.Consolidator="consolidator",i.Linker="linker",Go;var i})();const dA=["*"],R2=["content"];function P2(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._onBackdropClicked())}),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function k2(i,a){1&i&&(n.TgZ(0,"mat-drawer-content"),n.Hsn(1,2),n.qZA())}const O2=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],I2=["mat-drawer","mat-drawer-content","*"];function B2(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._onBackdropClicked())}),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function N2(i,a){1&i&&(n.TgZ(0,"mat-sidenav-content"),n.Hsn(1,2),n.qZA())}const V2=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],j2=["mat-sidenav","mat-sidenav-content","*"],_E={transformDrawer:En("transform",[ut("open, open-instant",je({transform:"none",visibility:"visible"})),ut("void",je({"box-shadow":"none",visibility:"hidden"})),Ot("void => open-instant",Rt("0ms")),Ot("void <=> open, open-instant => void",Rt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},z2=new n.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function U2(){return!1}}),Ev=new n.OlP("MAT_DRAWER_CONTAINER");let uA=(()=>{class i extends Il{constructor(e,t,r,d,u){super(r,d,u),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(()=>AE)),n.Y36(n.SBq),n.Y36(ts),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&n.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[n._Bn([{provide:Il,useExisting:i}]),n.qOj],ngContentSelectors:dA,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),i})(),bE=(()=>{class i{constructor(e,t,r,d,u,c,o,s){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=d,this._ngZone=u,this._interactivityChecker=c,this._doc=o,this._container=s,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Le.x,this._animationEnd=new Le.x,this._animationState="void",this.openedChange=new n.vpe(!0),this._openedStream=this.openedChange.pipe((0,bt.h)(l=>l),(0,Mt.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,bt.h)(l=>l.fromState!==l.toState&&0===l.toState.indexOf("open")),(0,tl.h)(void 0)),this._closedStream=this.openedChange.pipe((0,bt.h)(l=>!l),(0,Mt.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,bt.h)(l=>l.fromState!==l.toState&&"void"===l.toState),(0,tl.h)(void 0)),this._destroyed=new Le.x,this.onPositionChanged=new n.vpe,this._modeChanged=new Le.x,this.openedChange.subscribe(l=>{l?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{zs(this._elementRef.nativeElement,"keydown").pipe((0,bt.h)(l=>27===l.keyCode&&!this.disableClose&&!Di(l)),rt(this._destroyed)).subscribe(l=>this._ngZone.run(()=>{this.close(),l.stopPropagation(),l.preventDefault()}))}),this._animationEnd.pipe(qc((l,h)=>l.fromState===h.fromState&&l.toState===h.toState)).subscribe(l=>{const{fromState:h,toState:p}=l;(0===p.indexOf("open")&&"void"===h||"void"===p&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Ge(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Ge(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Ge(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(d=>{this.openedChange.pipe((0,ht.q)(1)).subscribe(u=>d(u?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(fu),n.Y36($r),n.Y36(Qn),n.Y36(n.R0b),n.Y36(Wc),n.Y36(T.K0,8),n.Y36(Ev,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&n.Gf(R2,5),2&e){let r;n.iGM(r=n.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&n.WFA("@transform.start",function(d){return t._animationStarted.next(d)})("@transform.done",function(d){return t._animationEnd.next(d)}),2&e&&(n.uIk("align",null),n.d8E("@transform",t._animationState),n.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:dA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},dependencies:[Il],encapsulation:2,data:{animation:[_E.transformDrawer]},changeDetection:0}),i})(),AE=(()=>{class i{constructor(e,t,r,d,u,c=!1,o){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=d,this._animationMode=o,this._drawers=new n.n_E,this.backdropClick=new n.vpe,this._destroyed=new Le.x,this._doCheckSubject=new Le.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Le.x,e&&e.change.pipe(rt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),u.change().pipe(rt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=c}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Ge(e)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(e){this._backdropOverride=null==e?null:Ge(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(vn(this._allDrawers),rt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(vn(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,du.b)(10),rt(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,bt.h)(t=>t.fromState!==t.toState),rt(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(rt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(rt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,ht.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(rt((0,kn.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Hi,8),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(Us),n.Y36(z2),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,uA,5),n.Suo(r,bE,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._content=d.first),n.iGM(d=n.CRH())&&(t._allDrawers=d)}},viewQuery:function(e,t){if(1&e&&n.Gf(uA,5),2&e){let r;n.iGM(r=n.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[n._Bn([{provide:Ev,useExisting:i}])],ngContentSelectors:I2,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(n.F$t(O2),n.YNc(0,P2,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,k2,2,0,"mat-drawer-content",1)),2&e&&(n.Q6J("ngIf",t.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!t._content))},dependencies:[T.O5,uA],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),i})(),Dv=(()=>{class i extends uA{constructor(e,t,r,d,u){super(e,t,r,d,u)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(()=>wE)),n.Y36(n.SBq),n.Y36(ts),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&n.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[n._Bn([{provide:Il,useExisting:i}]),n.qOj],ngContentSelectors:dA,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),i})(),yE=(()=>{class i extends bE{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Ge(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Qt(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Qt(e)}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(n.uIk("align",null),n.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),n.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[n.qOj],ngContentSelectors:dA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},dependencies:[Il],encapsulation:2,data:{animation:[_E.transformDrawer]},changeDetection:0}),i})(),wE=(()=>{class i extends AE{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,Dv,5),n.Suo(r,yE,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._content=d.first),n.iGM(d=n.CRH())&&(t._allDrawers=d)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[n._Bn([{provide:Ev,useExisting:i}]),n.qOj],ngContentSelectors:j2,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(n.F$t(V2),n.YNc(0,B2,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,N2,2,0,"mat-sidenav-content",1)),2&e&&(n.Q6J("ngIf",t.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!t._content))},dependencies:[T.O5,Dv],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),i})(),Lv=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,wt,da,da,wt]}),i})();function ME(i){for(let e in i){var a;let t=null!==(a=i[e])&&void 0!==a?a:"";switch(e){case"display":i.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":i["-webkit-"+e]=t;break;case"flex-direction":i["-webkit-flex-direction"]=t,i["flex-direction"]=t;break;case"order":i.order=i["-webkit-"+e]=isNaN(+t)?"0":t}}return i}const Hv="inline",hA=["row","column","row-reverse","column-reverse"];function CE(i){let[a,e,t]=function vE(i){var a,e;i=null!==(a=null===(e=i)||void 0===e?void 0:e.toLowerCase())&&void 0!==a?a:"";let[t,r,d]=i.split(" ");return hA.find(u=>u===t)||(t=hA[0]),r===Hv&&(r=d!==Hv?d:"",d=Hv),[t,q2(r),!!d]}(i);return function Y2(i,a=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":i,"flex-wrap":a||null}}(a,e,t)}function q2(i){if(i)switch(i.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":i="wrap-reverse";break;case"no":case"none":case"nowrap":i="nowrap";break;default:i="wrap"}return i}const G2={provide:n.tb,useFactory:function W2(i,a){return()=>{if((0,T.NF)(a)){const e=Array.from(i.querySelectorAll(`[class*=${TE}]`)),t=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${TE}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(t,"")})}}},deps:[T.K0,n.Lbi],multi:!0},TE="flex-layout-";let Rv=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[G2]}),i})();class Gu{constructor(a=!1,e="all",t="",r="",d=0){this.matches=a,this.mediaQuery=e,this.mqAlias=t,this.suffix=r,this.priority=d,this.property=""}clone(){return new Gu(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let $2=(()=>{class i{constructor(){this.stylesheet=new Map}addStyleToElement(e,t,r){const d=this.stylesheet.get(e);d?d.set(t,r):this.stylesheet.set(e,new Map([[t,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,t){const r=this.stylesheet.get(e);let d="";if(r){const u=r.get(t);("number"==typeof u||"string"==typeof u)&&(d=u+"")}return d}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Pv={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},no=new n.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Pv}),Qp=new n.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),kv=new n.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function xE(i,a){var e,t;return i=null!==(e=null===(t=i)||void 0===t?void 0:t.clone())&&void 0!==e?e:new Gu,a&&(i.mqAlias=a.alias,i.mediaQuery=a.mediaQuery,i.suffix=a.suffix,i.priority=a.priority),i}class Ri{constructor(){this.shouldCache=!0}sideEffect(a,e,t){}}let ri=(()=>{class i{constructor(e,t,r,d){this._serverStylesheet=e,this._serverModuleLoaded=t,this._platformId=r,this.layoutConfig=d}applyStyleToElement(e,t,r=null){let d={};"string"==typeof t&&(d[t]=r,t=d),d=this.layoutConfig.disableVendorPrefixes?t:ME(t),this._applyMultiValueStyleToElement(d,e)}applyStyleToElements(e,t=[]){const r=this.layoutConfig.disableVendorPrefixes?e:ME(e);t.forEach(d=>{this._applyMultiValueStyleToElement(r,d)})}getFlowDirection(e){const t="flex-direction";let r=this.lookupStyle(e,t);return[r||"row",this.lookupInlineStyle(e,t)||(0,T.PM)(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,t){var r;return null!==(r=e.getAttribute(t))&&void 0!==r?r:""}lookupInlineStyle(e,t){return(0,T.NF)(this._platformId)?e.style.getPropertyValue(t):function Z2(i,a){var e;return null!==(e=SE(i)[a])&&void 0!==e?e:""}(e,t)}lookupStyle(e,t,r=!1){let d="";return e&&((d=this.lookupInlineStyle(e,t))||((0,T.NF)(this._platformId)?r||(d=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(d=this._serverStylesheet.getStyleForElement(e,t)))),d?d.trim():""}_applyMultiValueStyleToElement(e,t){Object.keys(e).sort().forEach(r=>{const d=e[r],u=Array.isArray(d)?d:[d];u.sort();for(let c of u)c=c?c+"":"",(0,T.NF)(this._platformId)||!this._serverModuleLoaded?(0,T.NF)(this._platformId)?t.style.setProperty(r,c):J2(t,r,c):this._serverStylesheet.addStyleToElement(t,r,c)})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG($2),n.LFG(Qp),n.LFG(n.Lbi),n.LFG(no))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function J2(i,a,e){a=a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const t=SE(i);t[a]=e??"",function Q2(i,a){let e="";for(const t in a)a[t]&&(e+=`${t}:${a[t]};`);i.setAttribute("style",e)}(i,t)}function SE(i){const a={},e=i.getAttribute("style");if(e){const t=e.split(/;+/g);for(let r=0;r0){const u=d.indexOf(":");if(-1===u)throw new Error(`Invalid CSS style: ${d}`);a[d.substr(0,u).trim()]=d.substr(u+1).trim()}}}return a}function ug(i,a){return(a&&a.priority||0)-(i&&i.priority||0)}function X2(i,a){return(i.priority||0)-(a.priority||0)}let Ov=(()=>{class i{constructor(e,t,r){this._zone=e,this._platformId=t,this._document=r,this.source=new pt(new Gu(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((t,r)=>{t.matches&&e.push(r)}),e}isActive(e){var t;return null!==(t=this.registry.get(e)?.matches)&&void 0!==t?t:this.registerQuery(e).some(d=>d.matches)}observe(e,t=!1){if(e&&e.length){const r=this._observable$.pipe((0,bt.h)(u=>!t||e.indexOf(u.mediaQuery)>-1)),d=new yn.y(u=>{const c=this.registerQuery(e);if(c.length){const o=c.pop();c.forEach(s=>{u.next(s)}),this.source.next(o)}u.complete()});return(0,kn.T)(d,r)}return this._observable$}registerQuery(e){const t=Array.isArray(e)?e:[e],r=[];return function K2(i,a){const e=i.filter(t=>!EE[t]);if(e.length>0){const t=e.join(", ");try{const r=a.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(a.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),a.head.appendChild(r),e.forEach(d=>EE[d]=r)}catch(r){console.error(r)}}}(t,this._document),t.forEach(d=>{const u=o=>{this._zone.run(()=>this.source.next(new Gu(o.matches,d)))};let c=this.registry.get(d);c||(c=this.buildMQL(d),c.addListener(u),this.pendingRemoveListenerFns.push(()=>c.removeListener(u)),this.registry.set(d,c)),c.matches&&r.push(new Gu(!0,d))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function eR(i,a){return a&&window.matchMedia("all").addListener?window.matchMedia(i):{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,(0,T.NF)(this._platformId))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b),n.LFG(n.Lbi),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const EE={},tR=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],DE="(orientation: portrait) and (max-width: 599.98px)",LE="(orientation: landscape) and (max-width: 959.98px)",HE="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",RE="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",PE="(orientation: portrait) and (min-width: 840px)",kE="(orientation: landscape) and (min-width: 1280px)",Kl={HANDSET:`${DE}, ${LE}`,TABLET:`${HE} , ${RE}`,WEB:`${PE}, ${kE} `,HANDSET_PORTRAIT:`${DE}`,TABLET_PORTRAIT:`${HE} `,WEB_PORTRAIT:`${PE}`,HANDSET_LANDSCAPE:`${LE}`,TABLET_LANDSCAPE:`${RE}`,WEB_LANDSCAPE:`${kE}`},nR=[{alias:"handset",priority:2e3,mediaQuery:Kl.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Kl.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Kl.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Kl.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Kl.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Kl.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Kl.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Kl.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Kl.WEB_PORTRAIT,overlapping:!0}],iR=/(\.|-|_)/g;function rR(i){let a=i.length>0?i.charAt(0):"",e=i.length>1?i.slice(1):"";return a.toUpperCase()+e}const lR=new n.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const i=(0,n.f3M)(kv),a=(0,n.f3M)(no),e=[].concat.apply([],(i||[]).map(r=>Array.isArray(r)?r:[r]));return function oR(i,a=[]){const e={};return i.forEach(t=>{e[t.alias]=t}),a.forEach(t=>{e[t.alias]?function Xl(i,...a){if(null==i)throw TypeError("Cannot convert undefined or null to object");for(let e of a)if(null!=e)for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}(e[t.alias],t):e[t.alias]=t}),function sR(i){return i.forEach(a=>{a.suffix||(a.suffix=function aR(i){return i.replace(iR,"|").split("|").map(rR).join("")}(a.alias),a.overlapping=!!a.overlapping)}),i}(Object.keys(e).map(t=>e[t]))}((a.disableDefaultBps?[]:tR).concat(a.addOrientationBps?nR:[]),e)}});let Iv=(()=>{class i{constructor(e){this.findByMap=new Map,this.items=[...e].sort(X2)}findByAlias(e){return e?this.findWithPredicate(e,t=>t.alias===e):null}findByQuery(e){return this.findWithPredicate(e,t=>t.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var t;return null!==(t=e?.suffix)&&void 0!==t?t:""})}findWithPredicate(e,t){var r;let d=this.findByMap.get(e);var u;return d||(d=null!==(u=this.items.find(t))&&void 0!==u?u:null,this.findByMap.set(e,d)),null!==(r=d)&&void 0!==r?r:null}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(lR))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Xp="print",cR={alias:Xp,mediaQuery:Xp,priority:1e3};let dR=(()=>{class i{constructor(e,t,r){this.breakpoints=e,this.layoutConfig=t,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new uR,this.deactivations=[]}withPrintQuery(e){return[...e,Xp]}isPrintEvent(e){return e.mediaQuery.startsWith(Xp)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const t=this.breakpoints.findByQuery(e);return(t?[...this.printBreakPoints,t]:this.printBreakPoints).sort(ug)}updateEvent(e){let t=this.breakpoints.findByQuery(e.mediaQuery);var r,d;return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(r=null===(d=t)||void 0===d?void 0:d.mediaQuery)&&void 0!==r?r:""),xE(e,t)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const t=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new Gu(!0,Xp))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",t),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(t),this.afterPrintEventListeners.push(r)}interceptEvents(e){return t=>{this.isPrintEvent(t)?t.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(t)),e.updateStyles()):!t.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,t)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,t){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!t.matches){const r=this.breakpoints.findByQuery(t.mediaQuery);if(r){const d=this.formerActivations&&this.formerActivations.includes(r),u=!this.formerActivations&&e.activatedBreakpoints.includes(r);(d||u)&&(this.deactivations.push(r),this.deactivations.sort(ug))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Iv),n.LFG(no),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class uR{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(a){return a.push(cR),a.sort(ug),a.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(a){a&&void 0===this.printBreakpoints.find(t=>t.mediaQuery===a.mediaQuery)&&(this.printBreakpoints=function hR(i){var a;return null!==(a=i?.mediaQuery.startsWith(Xp))&&void 0!==a&&a}(a)?[a,...this.printBreakpoints]:[...this.printBreakpoints,a])}clear(){this.printBreakpoints=[]}}let ui=(()=>{class i{constructor(e,t,r){this.matchMedia=e,this.breakpoints=t,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new Le.x,this.observeActivations()}get activatedAlias(){var e,t;return null!==(e=null===(t=this.activatedBreakpoints[0])||void 0===t?void 0:t.alias)&&void 0!==e?e:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const t=this.findByQuery(e.mediaQuery);if(t){e=xE(e,t);const r=this.activatedBreakpoints.indexOf(t);e.matches&&-1===r?(this._activatedBreakpoints.push(t),this._activatedBreakpoints.sort(ug),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(ug),this.updateStyles())}}init(e,t,r,d,u=[]){OE(this.updateMap,e,t,r),OE(this.clearMap,e,t,d),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,u)}getValue(e,t,r){const d=this.elementMap.get(e);if(d){const u=void 0!==r?d.get(r):this.getActivatedValues(d,t);if(u)return u.get(t)}}hasValue(e,t){const r=this.elementMap.get(e);if(r){const d=this.getActivatedValues(r,t);if(d)return void 0!==d.get(t)||!1}return!1}setValue(e,t,r,d){let u=this.elementMap.get(e);if(u){var c;const s=(null!==(c=u.get(d))&&void 0!==c?c:new Map).set(t,r);u.set(d,s),this.elementMap.set(e,u)}else u=(new Map).set(d,(new Map).set(t,r)),this.elementMap.set(e,u);const o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}trackValue(e,t){return this.subject.asObservable().pipe((0,bt.h)(r=>r.element===e&&r.key===t))}updateStyles(){this.elementMap.forEach((e,t)=>{const r=new Set(this.elementKeyMap.get(t));let d=this.getActivatedValues(e);d&&d.forEach((u,c)=>{this.updateElement(t,c,u),r.delete(c)}),r.forEach(u=>{if(d=this.getActivatedValues(e,u),d){const c=d.get(u);this.updateElement(t,u,c)}else this.clearElement(t,u)})})}clearElement(e,t){const r=this.clearMap.get(e);if(r){const d=r.get(t);d&&(d(),this.subject.next({element:e,key:t,value:""}))}}updateElement(e,t,r){const d=this.updateMap.get(e);if(d){const u=d.get(t);u&&(u(r),this.subject.next({element:e,key:t,value:r}))}}releaseElement(e){const t=this.watcherMap.get(e);t&&(t.forEach(d=>d.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((d,u)=>r.delete(u)),this.elementMap.delete(e))}triggerUpdate(e,t){const r=this.elementMap.get(e);if(r){const d=this.getActivatedValues(r,t);d&&(t?this.updateElement(e,t,d.get(t)):d.forEach((u,c)=>this.updateElement(e,c,u)))}}buildElementKeyMap(e,t){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(t)}watchExtraTriggers(e,t,r){if(r&&r.length){let d=this.watcherMap.get(e);if(d||(d=new Map,this.watcherMap.set(e,d)),!d.get(t)){const c=(0,kn.T)(...r).subscribe(()=>{const o=this.getValue(e,t);this.updateElement(e,t,o)});d.set(t,c)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,t){for(let d=0;dt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe((0,Wt.b)(this.hook.interceptEvents(this)),(0,bt.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ov),n.LFG(Iv),n.LFG(dR))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function OE(i,a,e,t){if(void 0!==t){var r;const d=null!==(r=i.get(a))&&void 0!==r?r:new Map;d.set(e,t),i.set(a,d)}}let wi=(()=>{class i{constructor(e,t,r,d){this.elementRef=e,this.styleBuilder=t,this.styler=r,this.marshal=d,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Le.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(t=>{if(-1!==this.inputs.indexOf(t)){const r=t.split(".").slice(1).join(".");this.setValue(e[t].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,t){const r=this.styleBuilder,d=r.shouldCache;let u=this.styleCache.get(e);(!u||!d)&&(u=r.buildStyles(e,t),d&&this.styleCache.set(e,u)),this.mru={...u},this.applyStyleToElement(u),r.sideEffect(e,u,t)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,t=!1){if(e){const[r,d]=this.styler.getFlowDirection(e);if(!d&&t){const u=CE(r);this.styler.applyStyleToElements(u,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,t,r=this.nativeElement){this.styler.applyStyleToElement(r,e,t)}setValue(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Ri),n.Y36(ri),n.Y36(ui))},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();class SR{constructor(a,e,t=!0){this.key=a,this.value=e,this.key=t?a.replace(/['"]/g,"").trim():a.trim(),this.value=t?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function VE(i){let a=typeof i;return"object"===a?i.constructor===Array?"array":i.constructor===Set?"set":"object":a}function FE(i){const[a,...e]=i.split(":");return new SR(a,e.join(":"))}function zE(i,a){return a.key&&(i[a.key]=a.value),i}let LR=(()=>{class i extends wi{constructor(e,t,r,d,u,c,o,s,l){var h;super(e,null,t,r),this.sanitizer=d,this.ngStyleInstance=o,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new T.PC(e,u,c)),this.init();const p=null!==(h=this.nativeElement.getAttribute("style"))&&void 0!==h?h:"";this.fallbackStyles=this.buildStyleMap(p),this.isServer=s&&(0,T.PM)(l)}updateWithValue(e){const t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...t},this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const t=r=>{var d;return null!==(d=this.sanitizer.sanitize(n.q3G.STYLE,r))&&void 0!==d?d:""};if(e)switch(VE(e)){case"string":return UE(function ER(i,a=";"){return String(i).trim().split(a).map(e=>e.trim()).filter(e=>""!==e)}(e),t);case"array":return UE(e,t);default:return function jE(i,a){let e=[];return"set"===VE(i)?i.forEach(t=>e.push(t)):Object.keys(i).forEach(t=>{e.push(`${t}:${i[t]}`)}),function DR(i,a){return i.map(FE).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(zE,{})}(e,a)}(e,t)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(ri),n.Y36(ui),n.Y36(ei),n.Y36(n.aQg),n.Y36(n.Qsj),n.Y36(T.PC,10),n.Y36(Qp),n.Y36(n.Lbi))},i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const HR=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let Nv=(()=>{class i extends LR{constructor(){super(...arguments),this.inputs=HR}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[n.qOj]}),i})();function UE(i,a){return i.map(FE).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(zE,{})}let qE=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Rv]}),i})();const YE=kr({passive:!0});let RR=(()=>{class i{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Xi.E;const t=ci(e),r=this._monitoredElements.get(t);if(r)return r.subject;const d=new Le.x,u="cdk-text-field-autofilled",c=o=>{"cdk-text-field-autofill-start"!==o.animationName||t.classList.contains(u)?"cdk-text-field-autofill-end"===o.animationName&&t.classList.contains(u)&&(t.classList.remove(u),this._ngZone.run(()=>d.next({target:o.target,isAutofilled:!1}))):(t.classList.add(u),this._ngZone.run(()=>d.next({target:o.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",c,YE),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:d,unlisten:()=>{t.removeEventListener("animationstart",c,YE)}}),d}stopMonitoring(e){const t=ci(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),fA=(()=>{class i{constructor(e,t,r,d){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new Le.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=u=>{this._hasFocus="focus"===u.type},this._document=d,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=Qt(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Qt(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=Ge(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{zs(this._getWindow(),"resize").pipe(tp(16),rt(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",r=this._platform.FIREFOX,d=r&&this._hasFocus,u=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";d&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(u);const c=e.scrollHeight-4;return e.classList.remove(u),d&&(e.style.marginBottom=t),c}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,r=t.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;const d=this._measureScrollHeight(),u=Math.max(d,this._cachedPlaceholderHeight||0);t.style.height=`${u}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,r)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Qn),n.Y36(n.R0b),n.Y36(T.K0,8))},i.\u0275dir=n.lG2({type:i,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&n.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),i})(),WE=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const GE=new n.OlP("MAT_INPUT_VALUE_ACCESSOR"),PR=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let kR=0;const OR=w0(class{constructor(i,a,e,t){this._defaultErrorStateMatcher=i,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Le.x}});let ji=(()=>{class i extends OR{constructor(e,t,r,d,u,c,o,s,l,h){super(c,d,u,r),this._elementRef=e,this._platform=t,this._autofillMonitor=s,this._formField=h,this._uid="mat-input-"+kR++,this.focused=!1,this.stateChanges=new Le.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>Nc().has(g)),this._iOSKeyupListener=g=>{const f=g.target;!f.value&&0===f.selectionStart&&0===f.selectionEnd&&(f.setSelectionRange(1,1),f.setSelectionRange(0,0))};const p=this._elementRef.nativeElement,m=p.nodeName.toLowerCase();this._inputValueAccessor=o||p,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&l.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===m,this._isTextarea="textarea"===m,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ge(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,t,r,d;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(d=r.control)||void 0===d?void 0:d.hasValidator(bi.required))&&void 0!==e&&e}set required(e){this._required=Ge(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Nc().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ge(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e;const t=this._formField,r=!t||"legacy"!==t.appearance||null!==(e=t._hasLabel)&&void 0!==e&&e.call(t)?this.placeholder:null;if(r!==this._previousPlaceholder){const d=this._elementRef.nativeElement;this._previousPlaceholder=r,r?d.setAttribute("placeholder",r):d.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){PR.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Qn),n.Y36(gn,10),n.Y36(Zs,8),n.Y36(Qs,8),n.Y36(Qc),n.Y36(GE,10),n.Y36(RR),n.Y36(n.R0b),n.Y36(od,8))},i.\u0275dir=n.lG2({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&n.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(n.Ikx("disabled",t.disabled)("required",t.required),n.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),n.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[n._Bn([{provide:sd,useExisting:i}]),n.qOj,n.TTD]}),i})(),Kp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Qc],imports:[WE,Gs,wt,WE,Gs]}),i})();function IR(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let BR=(()=>{class i{constructor(e,t,r,d,u){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=d,this.storeService=u,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",E(4147).i8)}close(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(sn),n.Y36(Mr),n.Y36(fo),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"input",2,3),n.NdJ("ngModelChange",function(d){return t.subject=d}),n.qZA(),n.YNc(10,IR,3,3,"mat-error",4),n.qZA(),n.TgZ(11,"mat-form-field")(12,"mat-label"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"textarea",5),n.NdJ("ngModelChange",function(d){return t.message=d}),n.ALo(16,"translate"),n._uU(17," "),n.qZA(),n.TgZ(18,"mat-hint"),n._uU(19),n.ALo(20,"translate"),n.qZA()()(),n.TgZ(21,"div",6)(22,"div",7)(23,"button",8),n.NdJ("click",function(){return t.close()}),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.TgZ(26,"button",9),n.NdJ("click",function(){return t.sendBugReport()}),n._uU(27),n.ALo(28,"translate"),n.qZA()()()),2&e){const r=n.MAs(9);n.xp6(1),n.Oqu(n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),n.xp6(5),n.Oqu(n.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),n.xp6(2),n.Q6J("ngModel",t.subject),n.xp6(2),n.Q6J("ngIf",r.invalid),n.xp6(3),n.Oqu(n.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),n.xp6(2),n.s9C("placeholder",n.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),n.Q6J("ngModel",t.message),n.xp6(4),n.Oqu(n.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),n.xp6(5),n.hij(" ",n.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",r.invalid),n.xp6(1),n.hij(" ",n.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[T.O5,_i,Ai,Nr,ua,Ht,Na,di,x_,as,ji,Xn,ii,Un,Ke],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})(),$E=(()=>{class i{transform(e,t,r){return e[`${r}_${t}`]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"localisedText",type:i,pure:!0}),i})(),NR=(()=>{class i{transform(e,t){return e["link_"+t]||e.link_en}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"localisedLink",type:i,pure:!0}),i})(),VR=(()=>{class i{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"footerLogoPath",type:i,pure:!0}),i})();function jR(i,a){if(1&i&&(n.TgZ(0,"a",13),n.ALo(1,"localisedLink"),n._UZ(2,"img",14),n.ALo(3,"footerLogoPath"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("href",n.xi3(1,2,e,t.language),n.LSH),n.xp6(2),n.s9C("src",n.lcZ(3,5,e.logo),n.LSH)}}function FR(i,a){if(1&i&&(n.TgZ(0,"span"),n._UZ(1,"img",14),n.ALo(2,"footerLogoPath"),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.s9C("src",n.lcZ(2,1,e.logo),n.LSH)}}function zR(i,a){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,jR,4,7,"a",11),n.ALo(2,"localisedLink"),n.YNc(3,FR,3,3,"span",12),n.ALo(4,"localisedLink"),n.qZA()),2&i){const e=a.$implicit,t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",n.xi3(2,2,e,t.language)),n.xp6(2),n.Q6J("ngIf",!n.xi3(4,5,e,t.language))}}const UR=function(i){return{"min-height":i}};function qR(i,a){if(1&i&&(n.TgZ(0,"div",10),n.YNc(1,zR,5,8,"div",5),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw();n.Q6J("ngStyle",n.VKq(2,UR,t.columnContentHeight+"px")),n.xp6(1),n.Q6J("ngForOf",e.elements)}}const ec=function(i){return{color:i}};function YR(i,a){if(1&i&&(n.TgZ(0,"i",20),n._uU(1),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(2,ec,t.linksTextColor)),n.xp6(1),n.hij(" ",e.icon," ")}}function WR(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"span",21),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw(3);return n.KtG(d.openDialog(r.dialog))}),n._uU(1),n.ALo(2,"localisedText"),n.qZA()}if(2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,ec,t.linksTextColor)),n.xp6(1),n.hij("",n.Dn7(2,2,e,t.language,"label")," ")}}function GR(i,a){if(1&i&&(n.TgZ(0,"a",22),n.ALo(1,"localisedLink"),n._uU(2),n.ALo(3,"localisedText"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("href",n.xi3(1,3,e,t.language),n.LSH)("ngStyle",n.VKq(10,ec,t.linksTextColor)),n.xp6(2),n.Oqu(n.Dn7(3,6,e,t.language,"label"))}}function $R(i,a){if(1&i&&(n.TgZ(0,"span",10),n._uU(1),n.ALo(2,"localisedText"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,ec,t.linksTextColor)),n.xp6(1),n.Oqu(n.Dn7(2,2,e,t.language,"label"))}}function ZR(i,a){if(1&i&&(n.TgZ(0,"div",16),n.YNc(1,YR,2,4,"i",17),n.YNc(2,WR,3,8,"span",18),n.YNc(3,GR,4,12,"a",19),n.ALo(4,"localisedLink"),n.YNc(5,$R,3,8,"span",9),n.ALo(6,"localisedLink"),n.qZA()),2&i){const e=a.$implicit,t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",e.icon),n.xp6(1),n.Q6J("ngIf",e.dialog),n.xp6(1),n.Q6J("ngIf",n.xi3(4,4,e,t.language)&&!e.dialog),n.xp6(2),n.Q6J("ngIf",!n.xi3(6,7,e,t.language)&&!e.dialog)}}const JR=function(i){return{height:i}};function QR(i,a){if(1&i&&(n.TgZ(0,"div",10),n.YNc(1,ZR,7,10,"div",15),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw();n.Q6J("ngStyle",n.VKq(2,JR,t.columnContentHeight+"px")),n.xp6(1),n.Q6J("ngForOf",e.elements)}}function XR(i,a){if(1&i&&(n.TgZ(0,"div",7)(1,"h6",8),n._uU(2),n.ALo(3,"localisedText"),n.qZA(),n.YNc(4,qR,2,4,"div",9),n.YNc(5,QR,2,4,"div",9),n.qZA()),2&i){const e=a.$implicit,t=n.oxw();n.ekj("my-auto",t.containsLogos),n.xp6(1),n.Q6J("ngStyle",n.VKq(10,ec,t.headersTextColor)),n.xp6(1),n.hij(" ",n.Dn7(3,6,e,t.language,"title")," "),n.xp6(2),n.Q6J("ngIf",e.logos),n.xp6(1),n.Q6J("ngIf",e.elements&&!e.logos)}}function KR(i,a){if(1&i&&(n.TgZ(0,"span")(1,"a",6),n._uU(2),n.qZA()()),2&i){const e=a.$implicit,t=a.index,r=n.oxw();n.xp6(1),n.Q6J("href",e.url,n.LSH)("ngStyle",n.VKq(3,ec,r.copyrightTextColor)),n.xp6(1),n.Oqu(t?", "+e.name:e.name)}}const eP=function(i){return{background:i}};let ZE=(()=>{class i{constructor(e,t,r,d){this.storeService=e,this.translateService=t,this.utilsService=r,this.dialog=d,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="N/A",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=E(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=E(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(e=>{const t=e.match("\\bVersion:\\s*([^,\\s]+)");null!==t&&(this.backendVersion=t[1])}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(e){const t=ln();"reportIssue"===e&&(t.width="550px",this.dialog.open(BR,t))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(sn),n.Y36(Ti),n.Y36(on))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(n.TgZ(0,"footer",0)(1,"div",1),n.YNc(2,XR,6,12,"div",2),n.qZA(),n._UZ(3,"hr",3),n.TgZ(4,"div",4),n._uU(5),n.YNc(6,KR,3,5,"span",5),n._uU(7,", web application: "),n.TgZ(8,"a",6),n._uU(9),n.qZA(),n._uU(10,", server: "),n.TgZ(11,"a",6),n._uU(12),n.qZA()()()),2&e&&(n.Q6J("ngStyle",n.VKq(11,eP,t.bgColor)),n.xp6(2),n.Q6J("ngForOf",t.footerColumns),n.xp6(2),n.Q6J("ngStyle",n.VKq(13,ec,t.copyrightTextColor)),n.xp6(1),n.hij(" \xa9 ",t.currentYear," Copyright: "),n.xp6(1),n.Q6J("ngForOf",t.copyrightItems),n.xp6(2),n.Q6J("href",t.githubRepository,n.LSH)("ngStyle",n.VKq(15,ec,t.copyrightTextColor)),n.xp6(1),n.Oqu(t.guiVersion),n.xp6(2),n.Q6J("href",t.githubBackendRepository,n.LSH)("ngStyle",n.VKq(17,ec,t.copyrightTextColor)),n.xp6(1),n.Oqu(t.backendVersion))},dependencies:[T.sg,T.O5,T.PC,$E,NR,VR],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),i})();En("openClose",[ut("open",je({overflow:"hidden"})),ut("closed",je({height:"0px",overflow:"hidden"})),Ot("open <=> closed",[Rt(".3s ease-in")])]);const tP=En("flyInOut",[Ot(":enter",[je({transform:"translateX(100%)"}),Rt(".25s")]),Ot(":leave",[Rt(".5s",je({transform:"translateX(100%)"}))])]);En("rollInOut",[Ot(":enter",[je({height:"0px"}),Rt(".25s")]),Ot(":leave",[Rt(".25s",je({height:"0px"}))])]),En("routeAnimations",[Ot("* => *",[je({position:"relative"}),Br(":enter",[je({width:"100%",opacity:0})],{optional:!0}),Br(":leave",[je({position:"absolute",width:"100%",opacity:1}),Rt("0.15s",je({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Br(":enter",[je({position:"absolute",width:"100%",opacity:0}),Rt("0.15s",je({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),En("tagsOpenClose",[ut("open",je({})),ut("closed",je({width:"0px",height:"0px"})),Ot("open <=> closed",[Rt(".3s ease-in")])]),En("switchAnimations",[Ot("true => false",[Br(":enter, :leave",je({})),dp([Br(":enter",[je({transform:"translateX(-100%)"}),Rt("1s ease-in-out",je({transform:"translateX(0%)"}))],{optional:!0}),Br(":leave",[je({transform:"translateX(0%)",position:"absolute"}),Rt("1s ease-in-out",je({transform:"translateX(100%)"}))],{optional:!0})])]),Ot("false => true",[Br(":enter, :leave",je({})),dp([Br(":enter",[je({transform:"translateX(100%)"}),Rt("1s ease-in-out",je({transform:"translateX(0%)"}))],{optional:!0}),Br(":leave",[je({transform:"translateX(0%)",position:"absolute"}),Rt("1s ease-in-out",je({transform:"translateX(-100%)"}))],{optional:!0})])])]),En("slideInOutLeft",[Ot(":enter",[je({transform:"translateX(-100%)",position:"relative"}),Rt("0.5s ease-in",je({transform:"translateX(0%)"}))]),Ot(":leave",[Rt("0.5s ease-in",je({transform:"translateX(-100%)"}))])]),En("slideInOutRight",[Ot(":enter",[je({transform:"translateX(100%)",position:"fixed"}),Rt("0.5s ease-in",je({transform:"translateX(0%)"}))]),Ot(":leave",[je({transform:"translateX(-100%)",position:"relative"}),Rt("0.5s ease-in",je({transform:"translateX(100%)"}))])]);let JE=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez]}),i})(),mA=(()=>{class i{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"userFullName",type:i,pure:!0}),i})(),Xt=(()=>{class i{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const r=this.storage.getProperty("custom_labels");if(r)for(const d of r)if(d.label===e)return d[t];return e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(sn,16),n.Y36(Ut,16))},i.\u0275pipe=n.Yjl({name:"customTranslate",type:i,pure:!0}),i})();function nP(i,a){if(1&i&&(n.O4$(),n._UZ(0,"circle",4)),2&i){const e=n.oxw(),t=n.MAs(1);n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),n.uIk("r",e._getCircleRadius())}}function iP(i,a){if(1&i&&(n.O4$(),n._UZ(0,"circle",4)),2&i){const e=n.oxw(),t=n.MAs(1);n.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),n.uIk("r",e._getCircleRadius())}}const aP=Hl(class{constructor(i){this._elementRef=i}},"primary"),sP=new n.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function oP(){return{diameter:100}}});class Hn extends aP{constructor(a,e,t,r,d,u,c,o){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Nt.w0.EMPTY,this.mode="determinate";const s=Hn._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),s.has(t.head)||s.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!d&&!d._forceAnimations,"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),d&&(d.color&&(this.color=this.defaultColor=d.color),d.diameter&&(this.diameter=d.diameter),d.strokeWidth&&(this.strokeWidth=d.strokeWidth)),e.isBrowser&&e.SAFARI&&c&&u&&o&&(this._resizeSubscription=c.change(150).subscribe(()=>{"indeterminate"===this.mode&&o.run(()=>u.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=Qt(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=Qt(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,Qt(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=au(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){var e;const t=50*(null!==(e=a.currentScale)&&void 0!==e?e:1);return`${t}% ${t}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Hn._diameters;let r=t.get(a);if(!r||!r.has(e)){const d=this._document.createElement("style");d.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),d.textContent=this._getAnimationText(),a.appendChild(d),r||(r=new Set,t.set(a,r)),r.add(e)}}_getAnimationText(){const a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Hn._diameters=new WeakMap,Hn.\u0275fac=function(a){return new(a||Hn)(n.Y36(n.SBq),n.Y36(Qn),n.Y36(T.K0,8),n.Y36(n.QbO,8),n.Y36(sP),n.Y36(n.sBO),n.Y36(Us),n.Y36(n.R0b))},Hn.\u0275cmp=n.Xpm({type:Hn,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(n.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[n.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(n.O4$(),n.TgZ(0,"svg",0,1),n.YNc(2,nP,1,11,"circle",2),n.YNc(3,iP,1,9,"circle",3),n.qZA()),2&a&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(2),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let ef=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,T.ez,wt]}),i})(),gA=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[eo,T.ez]}),i})(),cP=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,Gs,Uo,Xs,Kp,po,ef,eo,gA]}),i})();class dP{isErrorState(a){return!(!a?.invalid||!a?.dirty)}}const QE=(i,a,e,t=!1,r=500)=>d=>(0,kl.H)(r).pipe((0,An.w)(()=>(e.dontHandleErrorForNext(),i&&"No namespace"!==i?a.checkPasswordStrength({password:d.value,namespace:i},t):(0,Ee.of)(null))),(0,Mt.U)(()=>null),(0,Fn.K)(u=>{const c={backendError:u.message.substring(u.message.indexOf(":")+1)};return(0,Ee.of)(c)}));function uP(i,a){1&i&&n._UZ(0,"mat-spinner",12),2&i&&n.Q6J("diameter",18)}function hP(i,a){if(1&i&&(n.TgZ(0,"mat-icon",13),n._uU(1," error "),n.qZA()),2&i){const e=n.oxw();n.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function pP(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function fP(i,a){if(1&i&&(n.TgZ(0,"mat-error",14),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.Q6J("matTooltip",e.getErrorTooltip()),n.xp6(1),n.Oqu(e.getErrorTooltip())}}function mP(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function gP(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let XE=(()=>{class i{constructor(e,t,r){this.translator=e,this.usersManagerService=t,this.store=r,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new dP,this.allPasswordRequirements=this.store.getProperty("password_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const t=e.userAttributes.find(r=>"preferredLanguage"===r.friendlyName);this.language=t?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}changeHelp(){this.passwordRequirement=this.allPasswordRequirements[this.namespace],this.passwordRequirement||(this.passwordRequirement=this.allPasswordRequirements.default)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(sn),n.Y36(li),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",language:"language"},features:[n.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"mat-form-field",1),n._UZ(2,"input",2),n.ALo(3,"translate"),n.YNc(4,uP,1,1,"mat-spinner",3),n.TgZ(5,"mat-icon",4),n.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),n._uU(6),n.qZA(),n.YNc(7,hP,2,2,"mat-icon",5),n.YNc(8,pP,3,3,"mat-error",6),n.YNc(9,fP,2,2,"mat-error",7),n.qZA(),n.TgZ(10,"mat-form-field",8)(11,"mat-label"),n._uU(12),n.ALo(13,"translate"),n.qZA(),n._UZ(14,"input",9),n.TgZ(15,"mat-icon",4),n.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),n._uU(16),n.qZA(),n.YNc(17,mP,3,3,"mat-error",6),n.YNc(18,gP,3,3,"mat-error",6),n.qZA(),n.TgZ(19,"perun-web-apps-alert",10),n._UZ(20,"div",11),n.qZA()()),2&e&&(n.Q6J("formGroup",t.formGroup),n.xp6(1),n.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled||t.tooltipPwdDisabledForNamespace),n.xp6(1),n.s9C("placeholder",n.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),n.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),n.xp6(2),n.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),n.xp6(2),n.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),n.xp6(1),n.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),n.xp6(1),n.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),n.xp6(1),n.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),n.xp6(3),n.Oqu(n.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),n.xp6(2),n.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),n.xp6(2),n.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),n.xp6(1),n.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),n.xp6(1),n.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),n.xp6(2),n.Q6J("innerHTML",t.passwordRequirement,n.oJD))},dependencies:[T.O5,Na,di,as,X0,yr,_i,Ai,dd,Nr,Qs,kp,ji,Hn,zn,yi,Ke],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),i})();function vP(i,a){1&i&&n._UZ(0,"mat-spinner",7)}function TP(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function xP(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function SP(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"input",9,10),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.subject=r)}),n.qZA(),n.YNc(7,TP,3,3,"mat-error",11),n.qZA(),n.TgZ(8,"mat-form-field")(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"textarea",12,13),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.message=r)}),n.ALo(14,"translate"),n._uU(15," "),n.qZA(),n.YNc(16,xP,3,3,"mat-error",11),n.qZA()()}if(2&i){const e=n.MAs(6),t=n.MAs(13),r=n.oxw();n.xp6(3),n.Oqu(n.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),n.xp6(2),n.Q6J("ngModel",r.subject),n.xp6(2),n.Q6J("ngIf",e.invalid),n.xp6(3),n.Oqu(n.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),n.xp6(2),n.s9C("placeholder",n.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),n.Q6J("ngModel",r.message),n.xp6(4),n.Q6J("ngIf",t.invalid)}}let EP=(()=>{class i{constructor(e,t,r,d,u,c){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=d,this.data=u,this.storeService=c,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let d=JSON.stringify(this.data.error.payload);d=d.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+d+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",E(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(sn),n.Y36(Mr),n.Y36(fo),n.Y36(ni),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.YNc(3,vP,1,0,"mat-spinner",1),n.YNc(4,SP,17,13,"div",2),n.TgZ(5,"div",3)(6,"div",4)(7,"button",5),n.NdJ("click",function(){return t.dialogRef.close()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",6),n.NdJ("click",function(){return t.sendBugReport()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(4),n.hij(" ",n.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),n.xp6(2),n.Q6J("disabled",""===t.message||""===t.subject||t.loading),n.xp6(1),n.hij(" ",n.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[T.O5,Xn,ii,Un,Ht,Na,di,as,_i,Ai,Nr,ua,ji,Hn,Ke],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})(),DP=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=ln();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(EP,e)}),this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(on),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1),n._uU(3),n.qZA(),n.TgZ(4,"div",2)(5,"div",3)(6,"button",4),n.NdJ("click",function(){return t.onBugReportClick()}),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.TgZ(9,"button",5),n.NdJ("click",function(){return t.onCloseClick()}),n._uU(10),n.ALo(11,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(t.data.title),n.xp6(2),n.hij(" ",t.data.description,"\n"),n.xp6(3),n.Q6J("hidden","error"!==t.data.type),n.xp6(1),n.hij(" ",n.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),n.xp6(3),n.hij(" ",n.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Xn,ii,Un,Ht,Ke]}),i})();const LP=[[["caption"]],[["colgroup"],["col"]]],HP=["caption","colgroup, col"];function jv(i){return class extends i{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=Ge(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const tf=new n.OlP("CDK_TABLE");let nf=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkCellDef",""]]}),i})(),rf=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkHeaderCellDef",""]]}),i})(),_A=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkFooterCellDef",""]]}),i})();class OP{}const IP=jv(OP);let tc=(()=>{class i extends IP{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=Ge(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tf,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,nf,5),n.Suo(r,rf,5),n.Suo(r,_A,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.cell=d.first),n.iGM(d=n.CRH())&&(t.headerCell=d.first),n.iGM(d=n.CRH())&&(t.footerCell=d.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[n._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),n.qOj]}),i})();class Fv{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let zv=(()=>{class i extends Fv{constructor(e,t){super(e,t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tc),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[n.qOj]}),i})(),Uv=(()=>{class i extends Fv{constructor(e,t){var r;if(super(e,t),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const d=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===d||"treegrid"===d?"gridcell":"cell")}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tc),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[n.qOj]}),i})();class eD{constructor(){this.tasks=[],this.endTasks=[]}}const qv=new n.OlP("_COALESCED_STYLE_SCHEDULER");let tD=(()=>{class i{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Le.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new eD,this._getScheduleObservable().pipe(rt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new eD;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,Se.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,ht.q)(1))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Yv=(()=>{class i{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof hg?e.headerCell.template:this instanceof pg?e.footerCell.template:e.cell.template}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4))},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();class BP extends Yv{}const NP=jv(BP);let hg=(()=>{class i extends NP{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(tf,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[n.qOj,n.TTD]}),i})();class VP extends Yv{}const jP=jv(VP);let pg=(()=>{class i extends jP{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(tf,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[n.qOj,n.TTD]}),i})(),bA=(()=>{class i extends Yv{constructor(e,t,r){super(e,t),this._table=r}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(tf,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[n.qOj]}),i})(),nc=(()=>{class i{constructor(e){this._viewContainer=e,i.mostRecentCellOutlet=this}ngOnDestroy(){i.mostRecentCellOutlet===this&&(i.mostRecentCellOutlet=null)}}return i.mostRecentCellOutlet=null,i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkCellOutlet",""]]}),i})(),Wv=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[nc],encapsulation:2}),i})(),$v=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[nc],encapsulation:2}),i})(),AA=(()=>{class i{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","cdkNoDataRow",""]]}),i})();const nD=["top","bottom","left","right"];class FP{constructor(a,e,t,r,d=!0,u=!0,c){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=d,this._needsPositionStickyOnElement=u,this._positionListener=c,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(a,e){const t=[];for(const r of a)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let d=0;d{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(a,e,t,r=!0){if(!a.length||!this._isBrowser||!e.some(p=>p)&&!t.some(p=>p))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const d=a[0],u=d.children.length,c=this._getCellWidths(d,r),o=this._getStickyStartColumnPositions(c,e),s=this._getStickyEndColumnPositions(c,t),l=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const p="rtl"===this.direction,m=p?"right":"left",g=p?"left":"right";for(const f of a)for(let w=0;we[w]?f:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:c.slice(h).map((f,w)=>t[w+h]?f:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const r="bottom"===t?a.slice().reverse():a,d="bottom"===t?e.slice().reverse():e,u=[],c=[],o=[];for(let l=0,h=0;l{for(let p=0;p{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(a,e){for(const r of e)a.style[r]="",a.classList.remove(this._borderCellCss[r]);nD.some(r=>-1===e.indexOf(r)&&a.style[r])?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}_addStickyStyle(a,e,t,r){a.classList.add(this._stickCellCss),r&&a.classList.add(this._borderCellCss[e]),a.style[e]=`${t}px`,a.style.zIndex=this._getCalculatedZIndex(a),this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(a){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of nD)a.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(a,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=a.children;for(let d=0;d0;d--)e[d]&&(t[d]=r,r+=a[d]);return t}}const Zv=new n.OlP("CDK_SPL");let yA=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","rowOutlet",""]]}),i})(),wA=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","headerRowOutlet",""]]}),i})(),MA=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","footerRowOutlet",""]]}),i})(),CA=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","noDataRowOutlet",""]]}),i})(),vA=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p,m){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=u,this._platform=o,this._viewRepeater=s,this._coalescedStyleScheduler=l,this._viewportRuler=h,this._stickyPositioningListener=p,this._ngZone=m,this._onDestroy=new Le.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new n.vpe,this.viewChange=new pt({start:0,end:Number.MAX_VALUE}),d||this._elementRef.nativeElement.setAttribute("role","table"),this._document=c,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Ge(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Ge(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(rt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Cu(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(r,d,u)=>this._getEmbeddedViewArgs(r.item,u),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{t.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&n.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,ht.q)(1),rt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const d=this._headerRowDefs.map(u=>u.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,d,"top"),this._headerRowDefs.forEach(u=>u.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const d=this._footerRowDefs.map(u=>u.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,d,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,d),this._footerRowDefs.forEach(u=>u.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((d,u)=>{this._addStickyColumnStyles([d],this._headerRowDefs[u])}),this._rowDefs.forEach(d=>{const u=[];for(let c=0;c{this._addStickyColumnStyles([d],this._footerRowDefs[u])}),Array.from(this._columnDefsByName.values()).forEach(d=>d.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const c=r&&r.has(u)?r.get(u):[];if(c.length){const o=c.shift();return o.dataIndex=t,o}return{data:e,rowDef:u,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),TA(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=TA(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=TA(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=TA(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(u,c)=>u||!!c.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const d=this._footerRowDefs.reduce(e,!1);return d&&this._forceRenderFooterRows(),t||r||d}_switchDataSource(e){this._data=[],Cu(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Cu(this.dataSource)?e=this.dataSource.connect(this):$t(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,Ee.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(rt(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(c=>this._columnDefsByName.get(c)),d=r.map(c=>c.sticky),u=r.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(e,d,u,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!d.when||d.when(t,e));else{let d=this._rowDefs.find(u=>u.when&&u.when(t,e))||this._defaultRowDef;d&&r.push(d)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,d={}){const u=e.viewContainer.createEmbeddedView(t.template,d,r);return this._renderCellTemplateForItem(t,d),u}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))nc.mostRecentCellOutlet&&nc.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,r=e.length;t{const r=this._columnDefsByName.get(t);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of t){const d=this._document.createElement(r.tag);d.setAttribute("role","rowgroup");for(const u of r.outlets)d.appendChild(u.elementRef.nativeElement);e.appendChild(d)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,r)=>t||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new FP(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,Ee.of)()).pipe(rt(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const d=r.createEmbeddedView(e.templateRef),u=d.rootNodes[0];1===d.rootNodes.length&&u?.nodeType===this._document.ELEMENT_NODE&&(u.setAttribute("role","row"),u.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.ZZ4),n.Y36(n.sBO),n.Y36(n.SBq),n.$8M("role"),n.Y36(Hi,8),n.Y36(T.K0),n.Y36(Qn),n.Y36(Ol),n.Y36(qv),n.Y36(Us),n.Y36(Zv,12),n.Y36(n.R0b,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,AA,5),n.Suo(r,tc,5),n.Suo(r,bA,5),n.Suo(r,hg,5),n.Suo(r,pg,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._noDataRow=d.first),n.iGM(d=n.CRH())&&(t._contentColumnDefs=d),n.iGM(d=n.CRH())&&(t._contentRowDefs=d),n.iGM(d=n.CRH())&&(t._contentHeaderRowDefs=d),n.iGM(d=n.CRH())&&(t._contentFooterRowDefs=d)}},viewQuery:function(e,t){if(1&e&&(n.Gf(yA,7),n.Gf(wA,7),n.Gf(MA,7),n.Gf(CA,7)),2&e){let r;n.iGM(r=n.CRH())&&(t._rowOutlet=r.first),n.iGM(r=n.CRH())&&(t._headerRowOutlet=r.first),n.iGM(r=n.CRH())&&(t._footerRowOutlet=r.first),n.iGM(r=n.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[n._Bn([{provide:tf,useExisting:i},{provide:Ol,useClass:Kc},{provide:qv,useClass:tD},{provide:Zv,useValue:null}])],ngContentSelectors:HP,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(n.F$t(LP),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[yA,wA,MA,CA],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),i})();function TA(i,a){return i.concat(Array.from(a))}let UP=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ed]}),i})();const qP=[[["caption"]],[["colgroup"],["col"]]],YP=["caption","colgroup, col"];let io=(()=>{class i extends vA{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[n._Bn([{provide:Ol,useClass:Kc},{provide:vA,useExisting:i},{provide:tf,useExisting:i},{provide:qv,useClass:tD},{provide:Zv,useValue:null}]),n.qOj],ngContentSelectors:YP,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(n.F$t(qP),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[yA,wA,MA,CA],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),i})(),ls=(()=>{class i extends nf{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matCellDef",""]],features:[n._Bn([{provide:nf,useExisting:i}]),n.qOj]}),i})(),cs=(()=>{class i extends rf{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matHeaderCellDef",""]],features:[n._Bn([{provide:rf,useExisting:i}]),n.qOj]}),i})(),ds=(()=>{class i extends tc{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[n._Bn([{provide:tc,useExisting:i},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),n.qOj]}),i})(),us=(()=>{class i extends zv{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[n.qOj]}),i})(),hs=(()=>{class i extends Uv{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[n.qOj]}),i})(),ro=(()=>{class i extends hg{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[n._Bn([{provide:hg,useExisting:i}]),n.qOj]}),i})(),ao=(()=>{class i extends bA{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[n._Bn([{provide:bA,useExisting:i}]),n.qOj]}),i})(),so=(()=>{class i extends Wv{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[n._Bn([{provide:Wv,useExisting:i}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[nc],encapsulation:2}),i})(),oo=(()=>{class i extends $v{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[n._Bn([{provide:$v,useExisting:i}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[nc],encapsulation:2}),i})(),fg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[UP,wt,wt]}),i})();class nk extends O0{constructor(a=[]){super(),this._renderData=new pt([]),this._filter=new pt(""),this._internalPageChanges=new Le.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(E1(r)){const d=Number(r);return d<9007199254740991?d:r}return r},this.sortData=(e,t)=>{const r=t.active,d=t.direction;return r&&""!=d?e.sort((u,c)=>{let o=this.sortingDataAccessor(u,r),s=this.sortingDataAccessor(c,r);const l=typeof o,h=typeof s;l!==h&&("number"===l&&(o+=""),"number"===h&&(s+=""));let p=0;return null!=o&&null!=s?o>s?p=1:o{const r=Object.keys(e).reduce((u,c)=>u+e[c]+"\u25ec","").toLowerCase(),d=t.trim().toLowerCase();return-1!=r.indexOf(d)},this._data=new pt(a),this._updateChangeSubscription()}get data(){return this._data.value}set data(a){a=Array.isArray(a)?a:[],this._data.next(a),this._renderChangesSubscription||this._filterData(a)}get filter(){return this._filter.value}set filter(a){this._filter.next(a),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(a){this._sort=a,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(a){this._paginator=a,this._updateChangeSubscription()}_updateChangeSubscription(){var a;const e=this._sort?(0,kn.T)(this._sort.sortChange,this._sort.initialized):(0,Ee.of)(null),t=this._paginator?(0,kn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Ee.of)(null),d=(0,nr.a)([this._data,this._filter]).pipe((0,Mt.U)(([o])=>this._filterData(o))),u=(0,nr.a)([d,e]).pipe((0,Mt.U)(([o])=>this._orderData(o))),c=(0,nr.a)([u,t]).pipe((0,Mt.U)(([o])=>this._pageData(o)));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=c.subscribe(o=>this._renderData.next(o))}_filterData(a){return this.filteredData=null==this.filter||""===this.filter?a:a.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(a){return this.sort?this.sortData(a.slice(),this.sort):a}_pageData(a){if(!this.paginator)return a;const e=this.paginator.pageIndex*this.paginator.pageSize;return a.slice(e,e+this.paginator.pageSize)}_updatePaginator(a){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=a,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var a;null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=null}}class $o extends nk{}function ik(i,a){1&i&&n._UZ(0,"mat-spinner",3)}function rk(i,a){1&i&&n._UZ(0,"th",15)}function ak(i,a){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.userExtSource.extSource.name," ")}}function sk(i,a){1&i&&n._UZ(0,"tr",17)}function ok(i,a){1&i&&n._UZ(0,"tr",18)}function lk(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",4)(2,"p"),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"customTranslate"),n.qZA(),n.TgZ(6,"div",5),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA(),n.TgZ(10,"table",6),n.ynx(11,7),n.YNc(12,rk,1,0,"th",8),n.YNc(13,ak,2,1,"td",9),n.BQk(),n.YNc(14,sk,1,0,"tr",10),n.YNc(15,ok,1,0,"tr",11),n.qZA()(),n.TgZ(16,"div",12)(17,"button",13),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(18),n.ALo(19,"translate"),n.ALo(20,"customTranslate"),n.qZA(),n.TgZ(21,"button",14),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(22),n.ALo(23,"translate"),n.ALo(24,"customTranslate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(3),n.hij(" ",n.lcZ(4,7,n.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),n.xp6(4),n.hij(" ",n.lcZ(8,11,n.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),n.xp6(3),n.Q6J("dataSource",e.dataSource),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(3),n.hij(" ",n.lcZ(19,15,n.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),n.xp6(4),n.hij(" ",n.lcZ(23,19,n.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let ck=(()=>{class i{constructor(e,t,r,d,u){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.translate=d,this.notificator=u,this.force=!1,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new $o(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=this.data.extSources.map(t=>t.userExtSource.id);this.usersManagerService.removeUserExtSources(this.data.userId,e,this.force).subscribe({next:()=>{this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(li),n.Y36(ac),n.Y36(Mr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div"),n.YNc(5,ik,1,0,"mat-spinner",1),n.YNc(6,lk,25,23,"div",2),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,6,n.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),n.xp6(3),n.Tol(t.theme),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,io,cs,ro,ds,ls,ao,us,hs,so,oo,Xn,ii,Un,Ht,Hn,Ke,Xt]}),i})();class dk{constructor(a,e){this._document=e;const t=this._textarea=this._document.createElement("textarea"),r=t.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",t.setAttribute("aria-hidden","true"),t.value=a,t.readOnly=!0,this._document.body.appendChild(t)}copy(){const a=this._textarea;let e=!1;try{if(a){const t=this._document.activeElement;a.select(),a.setSelectionRange(0,a.value.length),e=this._document.execCommand("copy"),t&&t.focus()}}catch{}return e}destroy(){const a=this._textarea;a&&(a.remove(),this._textarea=void 0)}}let uk=(()=>{class i{constructor(e){this._document=e}copy(e){const t=this.beginCopy(e),r=t.copy();return t.destroy(),r}beginCopy(e){return new dk(e,this._document)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const hk=new n.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let Jv=(()=>{class i{constructor(e,t,r){this._clipboard=e,this._ngZone=t,this.text="",this.attempts=1,this.copied=new n.vpe,this._pending=new Set,r&&null!=r.attempts&&(this.attempts=r.attempts)}copy(e=this.attempts){if(e>1){let t=e;const r=this._clipboard.beginCopy(this.text);this._pending.add(r);const d=()=>{const u=r.copy();u||!--t||this._destroyed?(this._currentTimeout=null,this._pending.delete(r),r.destroy(),this.copied.emit(u)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(d,1))};d()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(e=>e.destroy()),this._pending.clear(),this._destroyed=!0}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(uk),n.Y36(n.R0b),n.Y36(hk,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),i})(),rD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),xA=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"textarea",2),n._uU(4),n.qZA()(),n.TgZ(5,"div",3)(6,"button",4),n.NdJ("click",function(){return t.onCancel()}),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.TgZ(9,"button",5),n._uU(10),n.ALo(11,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(t.title),n.xp6(3),n.Oqu(t.value),n.xp6(3),n.hij(" ",n.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),n.xp6(2),n.Q6J("cdkCopyToClipboard",t.value),n.xp6(1),n.hij(" ",n.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},dependencies:[Xn,ii,Un,Ht,fA,ji,Jv,Ke],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),i})(),pk=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h5",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"mat-form-field")(5,"textarea",2),n.NdJ("ngModelChange",function(d){return t.attributeValue=d}),n.qZA()()(),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),n.xp6(4),n.Q6J("ngModel",t.attributeValue),n.xp6(3),n.hij(" ",n.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),n.xp6(3),n.hij(" ",n.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Xn,ii,Un,Ht,di,_i,Ai,ua,fA,ji,Ke]}),i})(),fk=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h5",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"div"),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"div",2),n._uU(8),n.qZA()(),n.TgZ(9,"div",3)(10,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(11),n.ALo(12,"translate"),n.qZA(),n.TgZ(13,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(14),n.ALo(15,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),n.xp6(4),n.hij(" ",n.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),n.xp6(3),n.hij(" ",t.data.name," "),n.xp6(3),n.hij(" ",n.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),n.xp6(3),n.hij(" ",n.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Xn,ii,Un,Ht,Ke]}),i})();function mk(i,a){if(1&i&&(n.TgZ(0,"perun-web-apps-alert",9),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.pendingEmailsMessage)}}function gk(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let _k=(()=>{class i{constructor(e,t,r,d,u,c){this.dialogRef=e,this.data=t,this.translate=r,this.notificator=d,this.usersManagerService=u,this.authService=c,this.pendingMails=[],r.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(o=>this.successMessage=o),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(o=>this.pendingEmailsMessageStart=o),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(o=>this.pendingEmailsMessageEnd=o)}ngOnInit(){this.emailControl=new Js(null,[bi.required,bi.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(e=>{this.pendingMails=e.filter((r,d,u)=>d===u.indexOf(r));let t="";this.pendingMails.forEach(r=>t+=`${r===this.pendingMails[0]?"":", "}${r}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+t+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const t=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",t[0]+"//"+t[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(sn),n.Y36(Mr),n.Y36(li),n.Y36(Ql))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,mk,2,1,"perun-web-apps-alert",2),n.TgZ(6,"mat-form-field",3)(7,"label",3),n._UZ(8,"input",4),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA(),n.YNc(11,gk,4,5,"mat-error",5),n.qZA()(),n.TgZ(12,"div",6)(13,"button",7),n.NdJ("click",function(){return t.onCancel()}),n._uU(14),n.ALo(15,"translate"),n.ALo(16,"customTranslate"),n.qZA(),n.TgZ(17,"button",8),n.NdJ("click",function(){return t.onSubmit()}),n._uU(18),n.ALo(19,"translate"),n.ALo(20,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,8,n.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),n.xp6(4),n.Q6J("ngIf",t.pendingMails.length),n.xp6(3),n.s9C("placeholder",n.lcZ(9,12,n.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),n.Q6J("formControl",t.emailControl),n.xp6(3),n.Q6J("ngIf",t.emailControl.invalid),n.xp6(3),n.hij(" ",n.lcZ(15,16,n.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",!t.emailControl.valid),n.xp6(1),n.hij(" ",n.lcZ(19,20,n.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},dependencies:[T.O5,Xn,ii,Un,Ht,Na,di,_i,Ai,Nr,ji,sr,yi,Ke,Xt]}),i})(),xk=(()=>{class i{constructor(e,t){this.dialogRef=e,this.router=t}onClose(){this.router.navigate([],{queryParamsHandling:"preserve"}),this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(Dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"div",3)(8,"button",4),n.NdJ("click",function(){return t.onClose()}),n._uU(9),n.ALo(10,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),n.xp6(4),n.Oqu(n.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),n.xp6(4),n.hij(" ",n.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},dependencies:[Xn,ii,Un,Ht,yi,Ke]}),i})();function Sk(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function Ek(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"form",5)(1,"div",6)(2,"mat-form-field")(3,"mat-label"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n._UZ(6,"input",7),n.TgZ(7,"mat-icon",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.showOldPassword=!r.showOldPassword)}),n._uU(8),n.qZA(),n.YNc(9,Sk,3,3,"mat-error",9),n.qZA(),n._UZ(10,"perun-web-apps-password-form",10),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("formGroup",e.formGroup),n.xp6(4),n.Oqu(n.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),n.xp6(2),n.Q6J("type",e.showOldPassword?"text":"password"),n.xp6(2),n.hij(" ",e.showOldPassword?"visibility_off":"visibility"," "),n.xp6(1),n.Q6J("ngIf",e.oldPwd.hasError("required")),n.xp6(1),n.Q6J("formGroup",e.formGroup)("namespace",e.data.namespace)}}function Dk(i,a){1&i&&n._UZ(0,"mat-spinner",11)}function Lk(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",12)(1,"div",13)(2,"button",14),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.close())}),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"button",15),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changePassword())}),n._uU(6),n.ALo(7,"translate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(3),n.hij(" ",n.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),n.xp6(2),n.Q6J("disabled",e.formGroup.invalid||e.formGroup.pending),n.xp6(1),n.hij(" ",n.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let Hk=(()=>{class i{constructor(e,t,r,d,u,c,o){this.dialogRef=e,this.data=t,this._formBuilder=r,this.usersManagerService=d,this.apiRequestConfiguration=u,this.notificator=c,this.translate=o,this.showOldPassword=!1,o.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",bi.required],passwordCtrl:["",bi.required,[QE(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:hE.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(pd),n.Y36(li),n.Y36(cg),n.Y36(Mr),n.Y36(sn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n.YNc(4,Ek,11,9,"form",2),n.YNc(5,Dk,1,0,"mat-spinner",3),n.qZA(),n.YNc(6,Lk,8,7,"div",4)),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),n.xp6(3),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,Xn,ii,Un,Ht,Na,di,as,X0,Mm,_i,Ai,dd,Nr,ji,Hn,Qs,kp,zn,XE,Ke],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),i})();const Rk=["input"],Pk=function(i){return{enterDuration:i}},kk=["*"],Ok=new n.OlP("mat-radio-default-options",{providedIn:"root",factory:function Ik(){return{color:"accent"}}});let sD=0;const Bk={provide:ar,useExisting:(0,n.Gpc)(()=>cD),multi:!0};class oD{constructor(a,e){this.source=a,this.value=e}}const lD=new n.OlP("MatRadioGroup");let Nk=(()=>{class i{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+sD++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new n.vpe}get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=Ge(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=Ge(e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new oD(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO))},i.\u0275dir=n.lG2({type:i,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),i})(),cD=(()=>{class i extends Nk{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-radio-group"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,dD,5),2&e){let d;n.iGM(d=n.CRH())&&(t._radios=d)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[n._Bn([Bk,{provide:lD,useExisting:i}]),n.qOj]}),i})();class Vk{constructor(a){this._elementRef=a}}const jk=Ni(Vs(Vk));let Fk=(()=>{class i extends jk{constructor(e,t,r,d,u,c,o,s){super(t),this._changeDetector=r,this._focusMonitor=d,this._radioDispatcher=u,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++sD,this.id=this._uniqueId,this.change=new n.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===c,s&&(this.tabIndex=Qt(s,0)),this._removeUniqueSelectionListener=u.listen((l,h)=>{l!==this.id&&h===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const t=Ge(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(Ge(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=Ge(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new oD(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let t;if(t=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,t!==this._previousTabIndex){var r;const d=null===(r=this._inputElement)||void 0===r?void 0:r.nativeElement;d&&(d.setAttribute("tabindex",t+""),this._previousTabIndex=t)}}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&n.Gf(Rk,5),2&e){let r;n.iGM(r=n.CRH())&&(t._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[n.qOj]}),i})(),dD=(()=>{class i extends Fk{constructor(e,t,r,d,u,c,o,s){super(e,t,r,d,u,c,o,s)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(lD,8),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36($r),n.Y36(n_),n.Y36(n.QbO,8),n.Y36(Ok,8),n.$8M("tabindex"))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&n.NdJ("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(n.uIk("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.ekj("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable",t._noopAnimations)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.qOj],ngContentSelectors:kk,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2),n._UZ(3,"span",3)(4,"span",4),n.TgZ(5,"input",5,6),n.NdJ("change",function(d){return t._onInputInteraction(d)})("click",function(d){return t._onInputClick(d)}),n.qZA(),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA()(),n.TgZ(9,"span",9)(10,"span",10),n._uU(11,"\xa0"),n.qZA(),n.Hsn(12),n.qZA()()),2&e){const r=n.MAs(1);n.uIk("for",t.inputId),n.xp6(5),n.Q6J("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("required",t.required),n.uIk("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(17,Pk,t._noopAnimations?0:150)),n.xp6(2),n.ekj("mat-radio-label-before","before"==t.labelPosition)}},dependencies:[Jr],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),i})(),uD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ca,wt,wt]}),i})();function zk(i,a){1&i&&n._UZ(0,"mat-spinner",4)}function Uk(i,a){1&i&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function qk(i,a){1&i&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function Yk(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-radio-group",12),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d.asyncValidation=r)}),n.TgZ(1,"span",13),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-radio-button",14),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"mat-radio-button",14),n._uU(8),n.ALo(9,"translate"),n.qZA()()}if(2&i){const e=n.oxw(2);n.Q6J("ngModel",e.asyncValidation),n.xp6(2),n.hij(" ",n.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),n.xp6(2),n.Q6J("value",!1),n.xp6(1),n.hij(" ",n.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),n.xp6(2),n.Q6J("value",!0),n.xp6(1),n.hij(" ",n.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function Wk(i,a){1&i&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function Gk(i,a){1&i&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function $k(i,a){if(1&i&&(n.TgZ(0,"div",5)(1,"p",6),n._uU(2),n.TgZ(3,"span",7),n._uU(4),n.qZA(),n._uU(5),n.TgZ(6,"span",7),n._uU(7),n.qZA()(),n.TgZ(8,"p")(9,"strong",8),n._uU(10),n.ALo(11,"translate"),n.qZA(),n._uU(12),n.qZA(),n.TgZ(13,"p")(14,"strong",8),n._uU(15),n.ALo(16,"translate"),n.qZA(),n._uU(17),n.qZA(),n.YNc(18,Uk,3,3,"span",9),n.YNc(19,qk,3,3,"span",9),n.YNc(20,Yk,10,12,"mat-radio-group",10),n.YNc(21,Wk,3,3,"span",9),n.YNc(22,Gk,3,3,"span",9),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",e.group.name," "),n.xp6(2),n.hij("#",e.group.id,""),n.xp6(1),n.hij(" - ",e.resource.name," "),n.xp6(2),n.hij("#",e.resource.id,""),n.xp6(3),n.hij(" ",n.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),n.xp6(2),n.hij(" ",e.status," "),n.xp6(3),n.hij(" ",n.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),n.xp6(2),n.hij(" ",e.getReversedStatus()," "),n.xp6(1),n.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),n.xp6(1),n.Q6J("ngIf","ACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),n.xp6(1),n.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!1===e.asyncValidation),n.xp6(1),n.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!0===e.asyncValidation)}}function Zk(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",15)(1,"button",16),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"button",17),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(5),n.ALo(6,"translate"),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),n.xp6(2),n.Q6J("disabled",e.loading),n.xp6(1),n.hij(" ",n.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===e.status?"DEACTIVATE":"ACTIVATE"))," ")}}let Jk=(()=>{class i{constructor(e,t,r,d){this.dialogRef=e,this.data=t,this.resourceService=r,this.groupService=d,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(e=>{this.resource=e,this.groupService.getGroupById(this.data.groupId).subscribe(t=>{this.group=t,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(ia),n.Y36(zr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["data-cy","change-status-button","mat-flat-button","","color","accent",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,zk,1,0,"mat-spinner",1),n.YNc(5,$k,23,17,"div",2),n.YNc(6,Zk,7,7,"div",3),n.qZA()),2&e&&(n.Tol(t.theme),n.xp6(2),n.hij(" ",n.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,Xn,ii,Un,Ht,Ai,ua,Hn,cD,dD,Ke],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),i})();function Qk(i,a){if(1&i&&(n.TgZ(0,"mat-option",13),n._uU(1),n.qZA()),2&i){const e=a.$implicit,t=n.oxw();n.Q6J("value",t.selectedUnit),n.xp6(1),n.hij(" ",e," ")}}let Xk=(()=>{class i{constructor(e,t,r,d,u){this.dialogRef=e,this.data=t,this.rtMessagesService=r,this.notificator=d,this.translate=u,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",u.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(c=>this.successMessage=c)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new Js(null,[bi.required]),this.newValueControl=new Js(null,[bi.required,bi.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const r=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new mA).transform(this.data.user)} (user ID: ${this.data.user.id})\u21b5 VO: ${this.data.vo.shortName} / ${this.data.vo.name} (vo ID: ${this.data.vo.id})\u21b5 Resource: ${this.data.resource.name} (resource ID: ${this.data.resource.id})\u21b5 Data quota\u21b5 Requested quota: ${this.newValueControl.value}\u21b5 Reason: ${this.reasonControl.value}\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI`;this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",r).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(fo),n.Y36(Mr),n.Y36(sn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-request-change-data-quota-dialog"]],decls:42,vars:42,consts:[["mat-dialog-title","",1,"mb-3"],[1,"user-theme"],[1,"column-size"],["fxLayout","row","fxFlexAlign","center center"],[1,"label-width"],["matInput","","required","","type","number",3,"placeholder","formControl"],[1,"select-width","mt-auto","mb-auto","ml-2",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"form-width"],["matInput","","required","","rows","4",3,"placeholder","formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"div")(6,"p",2),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA(),n.TgZ(10,"p"),n._uU(11),n.qZA()(),n.TgZ(12,"div")(13,"p",2),n._uU(14),n.ALo(15,"translate"),n.ALo(16,"customTranslate"),n.qZA(),n.TgZ(17,"p"),n._uU(18),n.qZA()(),n.TgZ(19,"div",3)(20,"mat-form-field")(21,"label",4),n._UZ(22,"input",5),n.ALo(23,"translate"),n.ALo(24,"customTranslate"),n.qZA()(),n.TgZ(25,"mat-select",6),n.NdJ("valueChange",function(d){return t.selectedUnit=d}),n.YNc(26,Qk,2,2,"mat-option",7),n.qZA()(),n.TgZ(27,"div")(28,"mat-form-field",8)(29,"label",4),n._UZ(30,"textarea",9),n.ALo(31,"translate"),n.ALo(32,"customTranslate"),n.qZA()()(),n.TgZ(33,"div",10)(34,"button",11),n.NdJ("click",function(){return t.onCancel()}),n._uU(35),n.ALo(36,"translate"),n.ALo(37,"customTranslate"),n.qZA(),n.TgZ(38,"button",12),n.NdJ("click",function(){return t.onSubmit()}),n._uU(39),n.ALo(40,"translate"),n.ALo(41,"customTranslate"),n.qZA()()()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,14,n.lcZ(3,16,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),n.xp6(6),n.hij(" ",n.lcZ(8,18,n.lcZ(9,20,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),n.xp6(4),n.Oqu(t.resource),n.xp6(3),n.hij(" ",n.lcZ(15,22,n.lcZ(16,24,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),n.xp6(4),n.Oqu(t.currentQuota),n.xp6(4),n.s9C("placeholder",n.lcZ(23,26,n.lcZ(24,28,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),n.Q6J("formControl",t.newValueControl),n.xp6(3),n.Q6J("value",t.selectedUnit),n.xp6(1),n.Q6J("ngForOf",t.units),n.xp6(4),n.s9C("placeholder",n.lcZ(31,30,n.lcZ(32,32,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),n.Q6J("formControl",t.reasonControl),n.xp6(5),n.hij(" ",n.lcZ(36,34,n.lcZ(37,36,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",t.reasonControl.invalid),n.xp6(1),n.hij(" ",n.lcZ(40,38,n.lcZ(41,40,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},dependencies:[T.sg,Xn,Un,Ht,di,_i,Lp,Ai,Nr,ji,sr,md,Fs,Ke,Xt],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.form-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}.label-width[_ngcontent-%COMP%]{width:100%}.select-width[_ngcontent-%COMP%]{width:4rem}.mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%], .mat-input-ripple.mat-form-field-ripple[_ngcontent-%COMP%]{display:none}"]}),i})();function Kk(i,a){1&i&&(n.TgZ(0,"mat-error",8),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Zo{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Js(null,[bi.required,bi.pattern(Zo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const a=this.data.attribute?.value??[],e=this.sshControl.value;a.includes(e)||a.push(e),this.data.attribute.value=a,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{a.pop()})}}function eO(i,a){1&i&&n._UZ(0,"mat-spinner",4)}function tO(i,a){1&i&&n._UZ(0,"th",17)}function nO(i,a){if(1&i&&(n.TgZ(0,"td",18),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e)}}function iO(i,a){1&i&&n._UZ(0,"tr",19)}function rO(i,a){1&i&&n._UZ(0,"tr",20)}function aO(i,a){if(1&i&&(n.TgZ(0,"table",11),n.ynx(1,12),n.YNc(2,tO,1,0,"th",13),n.YNc(3,nO,2,1,"td",14),n.BQk(),n.YNc(4,iO,1,0,"tr",15),n.YNc(5,rO,1,0,"tr",16),n.qZA()),2&i){const e=n.oxw(2);n.Q6J("dataSource",e.dataSource),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}function sO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",1)(1,"div",5)(2,"p"),n._uU(3),n.qZA(),n.TgZ(4,"div",6),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.YNc(8,aO,6,3,"table",7),n.qZA(),n.TgZ(9,"div",8)(10,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(11),n.ALo(12,"translate"),n.ALo(13,"customTranslate"),n.qZA(),n.TgZ(14,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(3),n.hij(" ",e.description," "),n.xp6(2),n.hij(" ",n.lcZ(6,5,n.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),n.xp6(3),n.Q6J("ngIf",e.dataSource.data.length),n.xp6(3),n.hij(" ",n.lcZ(12,9,n.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),n.xp6(4),n.hij(" ",n.lcZ(16,13,n.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}Zo.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],Zo.sshKeyPattern="^("+Zo.allowedSshKeys.join("|")+").+$",Zo.\u0275fac=function(a){return new(a||Zo)(n.Y36(Ln),n.Y36(ni),n.Y36(jn))},Zo.\u0275cmp=n.Xpm({type:Zo,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(a,e){1&a&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),n._UZ(7,"textarea",3),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA(),n.YNc(10,Kk,4,5,"mat-error",4),n.qZA()(),n.TgZ(11,"div",5)(12,"button",6),n.NdJ("click",function(){return e.onCancel()}),n._uU(13),n.ALo(14,"translate"),n.ALo(15,"customTranslate"),n.qZA(),n.TgZ(16,"button",7),n.NdJ("click",function(){return e.onSubmit()}),n._uU(17),n.ALo(18,"translate"),n.ALo(19,"customTranslate"),n.qZA()()),2&a&&(n.xp6(1),n.Oqu(n.lcZ(2,7,n.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),n.xp6(6),n.s9C("placeholder",n.lcZ(8,11,n.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),n.Q6J("formControl",e.sshControl),n.xp6(3),n.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),n.xp6(3),n.hij(" ",n.lcZ(14,15,n.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",e.sshControl.invalid),n.xp6(1),n.hij(" ",n.lcZ(18,19,n.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[T.O5,_i,Ai,Nr,Ht,Na,di,sr,fA,ji,Xn,ii,Un,Ke,Xt],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let SA=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new $o(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let e=this.data.attribute?.value??[];void 0!==this.data.valueIndex?e.splice(this.data.valueIndex,1):e=e.filter(t=>!this.data.values.find(r=>r===t)),this.data.attribute.value=e}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(jn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-remove-string-value-dialog"]],decls:5,vars:3,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","user-theme",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1),n.YNc(3,eO,1,0,"mat-spinner",2),n.qZA(),n.YNc(4,sO,18,17,"div",3)),2&e&&(n.xp6(1),n.Oqu(t.title),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,io,cs,ro,ds,ls,ao,us,hs,so,oo,Hn,Ht,Xn,ii,Un,Ke,Xt]}),i})(),oO=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-ssh-dialog"]],decls:8,vars:6,consts:[[1,"user-theme"],["matInput","","cdkTextareaAutosize","","readonly","",1,"w-100","display-fix"],["mat-flat-button","","color","warn",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"textarea",1),n._uU(2),n.qZA()(),n.TgZ(3,"mat-dialog-actions")(4,"button",2),n.NdJ("click",function(){return t.onClose()}),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA()()),2&e&&(n.xp6(2),n.Oqu(t.sshKey),n.xp6(3),n.hij(" ",n.lcZ(6,2,n.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},dependencies:[Ht,fA,ji,Un,Ke,Xt],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),i})();function lO(i,a){if(1&i&&(n.TgZ(0,"div",9),n._UZ(1,"perun-web-apps-notification",10),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Q6J("data",e)("inDialog",!0)}}function cO(i,a){if(1&i&&(n.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),n.YNc(2,lO,2,2,"div",8),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Q6J("cdkVirtualForOf",e.notifications)}}function dO(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",11),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}let hD=(()=>{class i{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(oA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,cO,3,1,"div",1),n.YNc(5,dO,4,5,"perun-web-apps-alert",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.onClear()}),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return t.onCancel()}),n._uU(12),n.ALo(13,"translate"),n.ALo(14,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,n.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),n.xp6(3),n.Q6J("ngIf",0!==t.notifications.length),n.xp6(1),n.Q6J("ngIf",0===t.notifications.length),n.xp6(3),n.hij(" ",n.lcZ(9,9,n.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),n.xp6(4),n.hij(" ",n.lcZ(13,13,n.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),i})();function uO(i,a){if(1&i&&(n.TgZ(0,"div",5)(1,"mat-icon"),n._uU(2),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Oqu(e.data.icon)}}function hO(i,a){if(1&i&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",e.showTimestamp()," ")}}let pD=(()=>{class i{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new n.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=ln();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(DP,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function Fb(i,a){sg.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on),n.Y36(oA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"div",0),n.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),n.YNc(2,uO,3,1,"div",1),n.TgZ(3,"div",2),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,hO,2,1,"div",3),n.TgZ(7,"div",4),n.NdJ("click",function(){return t.waiting=!0,t.doAction()}),n._uU(8),n.qZA()()()),2&e&&(n.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),n.ekj("error","error"===t.data.type)("success","success"===t.data.type),n.xp6(2),n.Q6J("ngIf",null!==t.data.icon),n.xp6(2),n.hij(" ",n.lcZ(5,12,t.data.title)," "),n.xp6(2),n.Q6J("ngIf",t.inDialog),n.xp6(1),n.Q6J("hidden",t.alreadyPressed),n.xp6(1),n.hij(" ",t.data.actionText," "))},dependencies:[T.O5,zn,Ke],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),i})();function pO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"perun-web-apps-notification",2),n.NdJ("closeNotification",function(){const d=n.CHM(e).index,u=n.oxw();return n.KtG(u.removeNotification(d))}),n.qZA()()}if(2&i){const e=a.$implicit;n.Q6J("@flyInOut",void 0),n.xp6(1),n.Q6J("data",e)("newNotification",!0)}}const fO=function(i){return{top:i}};let mO=(()=>{class i{constructor(e,t){this.notificator=e,this.notificationStorageService=t,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(r=>{this.processNotification(r)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(e){this.notifications.splice(e,1)}processNotification(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Mr),n.Y36(oA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&n.NdJ("resize",function(d){return t.getScreenSize(d)},!1,n.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,pO,2,3,"div",1),n.qZA()),2&e&&(n.Q6J("ngStyle",n.VKq(2,fO,t.getNotificatorTop())),n.xp6(1),n.Q6J("ngForOf",t.notifications))},dependencies:[T.sg,T.PC,pD],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;top:initial;bottom:0}}"],data:{animation:[tP]}}),i})();const gO=["*",[["mat-toolbar-row"]]],_O=["*","mat-toolbar-row"],bO=Hl(class{constructor(i){this._elementRef=i}});let AO=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),i})(),yO=(()=>{class i extends bO{constructor(e,t,r){super(e),this._platform=t,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Qn),n.Y36(T.K0))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,AO,5),2&e){let d;n.iGM(d=n.CRH())&&(t._toolbarRows=d)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[n.qOj],ngContentSelectors:_O,decls:2,vars:0,template:function(e,t){1&e&&(n.F$t(gO),n.Hsn(0),n.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),i})(),Qv=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})(),wO=0;const MO=Xa(class{}),fD="mat-badge-content";let CO=(()=>{class i extends MO{constructor(e,t,r,d,u){super(),this._ngZone=e,this._elementRef=t,this._ariaDescriber=r,this._renderer=d,this._animationMode=u,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=wO++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=Ge(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=Ge(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(fD),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t)})}):e.classList.add(t),e}_updateRenderedContent(e){const t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${fD}`);for(const t of Array.from(e))t!==this._badgeElement&&t.remove()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(hu),n.Y36(n.Qsj),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&n.ekj("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t.content)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[n.qOj]}),i})(),vO=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Ll,wt,wt]}),i})();const Xv=function(i){return{color:i}};function TO(i,a){if(1&i&&(n.TgZ(0,"button",8),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3," apps "),n.qZA()()),2&i){const e=n.oxw(),t=n.MAs(2);n.Q6J("matMenuTriggerFor",t)("matTooltip",n.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),n.xp6(2),n.Q6J("ngStyle",n.VKq(5,Xv,e.iconColor))}}function xO(i,a){if(1&i&&(n.TgZ(0,"span",9),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(6,Xv,e.textColor)),n.xp6(1),n.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function SO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onLogOut())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"NAV.LOGOUT")," "))}let EO=(()=>{class i{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ql))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(n.YNc(0,TO,4,7,"button",0),n.TgZ(1,"mat-menu",null,1)(3,"button",2),n.NdJ("click",function(){return t.redirectToUrl()})("auxclick",function(){return t.redirectToUrl()}),n.TgZ(4,"span"),n._uU(5),n.qZA()()(),n.TgZ(6,"button",3)(7,"mat-icon",4),n._uU(8," person "),n.qZA(),n.YNc(9,xO,2,8,"span",5),n.qZA(),n.TgZ(10,"mat-menu",null,6),n.YNc(12,SO,3,3,"button",7),n.qZA()),2&e){const r=n.MAs(11);n.Q6J("ngIf",t.url),n.xp6(5),n.Oqu(t.label),n.xp6(1),n.Q6J("matMenuTriggerFor",r),n.xp6(1),n.Q6J("ngStyle",n.VKq(6,Xv,t.iconColor)),n.xp6(2),n.Q6J("ngIf",null!==t.user),n.xp6(3),n.Q6J("ngIf",t.logoutEnabled)}},dependencies:[T.O5,T.PC,zn,Yp,Ad,Db,Ht,yr,Ke],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),i})(),EA=(()=>{class i extends oa{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const e=Object.assign({},this.queryParams);delete e.applicationFormItems,this.queryParams=e}}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[n.qOj,n.TTD]}),i})();const af=function(i){return{color:i}};function DO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onToggleSidenav())}),n.TgZ(1,"mat-icon"),n._uU(2,"menu"),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(1,af,e.iconColor))}}function LO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),n._uU(3," language "),n.qZA()(),n.TgZ(4,"mat-menu",null,13)(6,"button",14),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeLanguage())}),n._uU(7),n.ALo(8,"translate"),n.qZA()()()}if(2&i){const e=n.MAs(5),t=n.oxw();n.Q6J("ngStyle",n.VKq(6,af,t.textColor)),n.xp6(1),n.Q6J("matMenuTriggerFor",e),n.xp6(1),n.Q6J("ngStyle",n.VKq(8,af,t.iconColor)),n.xp6(5),n.hij(" ",n.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function HO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",15),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.showNotificationHistory())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",16),n._uU(3),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",n.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),n.xp6(2),n.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),n.Q6J("ngStyle",n.VKq(7,af,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),n.xp6(1),n.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function RO(i,a){if(1&i&&n._UZ(0,"perun-web-apps-header-menu",17),2&i){const e=n.oxw();n.Q6J("url",e.otherAppUrl)("label",e.otherAppLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor)}}const PO=function(i){return{background:i}},kO=function(){return[]},OO=function(){return["/"]};let IO=(()=>{class i{constructor(e,t,r,d,u,c,o){this.storeService=e,this.sanitizer=t,this.translateService=r,this.otherApplicationService=d,this.notificationStorageService=u,this.dialog=c,this.route=o,this.sidenavToggle=new n.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(e="en"){return this.storeService.getProperty(this.otherApp===Go.Profile?"profile_label_en":"en"===e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===Go.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0)}(this.otherApp!==Go.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const e=ln();e.width="520px",this.dialog.open(hD,e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(ei),n.Y36(sn),n.Y36(cA),n.Y36(oA),n.Y36(on),n.Y36(mi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-toolbar",0)(1,"div",1),n.YNc(2,DO,3,3,"button",2),n._UZ(3,"a",3),n.TgZ(4,"p",4),n._uU(5),n.qZA()(),n.TgZ(6,"div",5),n.YNc(7,LO,9,10,"div",6),n.YNc(8,HO,4,9,"button",7),n.YNc(9,RO,1,6,"perun-web-apps-header-menu",8),n.qZA()()),2&e&&(n.Q6J("ngStyle",n.VKq(11,PO,t.bgColor)),n.xp6(2),n.Q6J("ngIf",t.showToggle),n.xp6(1),n.Q6J("innerHTML",t.logo,n.oJD)("routerLink",t.disableLogo?n.DdM(13,kO):n.DdM(14,OO))("queryParams",t.route.snapshot.queryParams),n.xp6(1),n.Q6J("ngStyle",n.VKq(15,af,t.textColor)),n.xp6(1),n.hij(" ",t.label," "),n.xp6(1),n.Q6J("ngStyle",n.VKq(17,af,t.navTextColor)),n.xp6(1),n.Q6J("ngIf",t.showLanguageMenu),n.xp6(1),n.Q6J("ngIf",t.showNotifications),n.xp6(1),n.Q6J("ngIf",t.showHeaderMenu))},dependencies:[T.O5,T.PC,Cl,zn,Yp,Ad,Db,Ht,yr,yO,CO,EO,EA,Ke],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),i})();function BO(i,a){if(1&i&&(n.TgZ(0,"div",8),n._UZ(1,"div",9),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("innerHTML",e.logo,n.oJD)}}function NO(i,a){if(1&i&&(n.TgZ(0,"div",10),n._UZ(1,"div",11)(2,"mat-icon",12),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("innerHTML",e.logo,n.oJD)}}const VO=function(i){return{color:i}};function jO(i,a){if(1&i&&(n.TgZ(0,"p",13),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(2,VO,e.textColor)),n.xp6(1),n.hij(" ",e.headerTitle," ")}}const FO=function(i,a){return{background:i,color:a}},zO=function(i,a){return{"min-height":i,"background-color":a}};let UO=(()=>{class i{constructor(e,t,r,d){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=d,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(ei),n.Y36(xv),n.Y36(sn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,BO,2,1,"div",1),n.YNc(2,NO,3,1,"div",2),n.YNc(3,jO,2,4,"p",3),n.qZA(),n.TgZ(4,"div",4)(5,"div",5)(6,"div",6),n._UZ(7,"router-outlet"),n.qZA(),n.TgZ(8,"div",7),n._UZ(9,"perun-web-apps-footer"),n.qZA()()()),2&e&&(n.Q6J("ngStyle",n.WLB(5,FO,t.headerBackgroundColor,t.headerTextColor)),n.xp6(1),n.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),n.xp6(1),n.Q6J("ngIf","publications"===t.application),n.xp6(1),n.Q6J("ngIf",!!t.headerTitle),n.xp6(2),n.Q6J("ngStyle",n.WLB(8,zO,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[T.O5,T.PC,zn,Wr,ZE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),i})(),qO=(()=>{class i{constructor(e){this.store=e}getSideMenuItems(){const e=this.store.getProperty("displayed_tabs"),t=[];return e.forEach(d=>{switch(d){case"profile":t.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":t.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":t.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":t.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":t.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":t.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"consents":t.push({label:"MENU_ITEMS.CONSENTS",icon:"fact_check",link:"/profile/consents",activatedRegex:"^/profile/consents",tabName:"consents"});break;case"settings":t.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.getProperty("external_services").forEach(d=>{const u={icon:"insert_link",link:d.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};this.store.getProperty("supported_languages").forEach(o=>{u[`label_${o}`]=String(d[`label_${o}`])??d.label_en}),t.push(u)}),t}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ut))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Kv=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})();const eT=["*"],YO=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],WO=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],gD=Xa(Ni(class{})),QO=Ni(class{}),_D=new n.OlP("MatList"),bD=new n.OlP("MatNavList");let XO=(()=>{class i extends gD{constructor(){super(...arguments),this._stateChanges=new Le.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[n._Bn([{provide:bD,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:eT,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),i})(),tT=(()=>{class i extends gD{constructor(e){super(),this._elementRef=e,this._stateChanges=new Le.x,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[n._Bn([{provide:_D,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:eT,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),i})(),AD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),i})(),yD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),i})(),DA=(()=>{class i extends QO{constructor(e,t,r,d){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new Le.x,this._disabled=!1,this._isInteractiveList=!!(r||d&&"action-list"===d._getListType()),this._list=r||d;const u=this._getHostElement();"button"===u.nodeName.toLowerCase()&&!u.hasAttribute("type")&&u.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(rt(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Ge(e)}ngAfterContentInit(){!function Rl(i,a,e="mat"){i.changes.pipe(vn(i)).subscribe(({length:t})=>{Pl(a,`${e}-2-line`,!1),Pl(a,`${e}-3-line`,!1),Pl(a,`${e}-multi-line`,!1),2===t||3===t?Pl(a,`${e}-${t}-line`,!0):t>3&&Pl(a,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(bD,8),n.Y36(_D,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,AD,5),n.Suo(r,yD,5),n.Suo(r,gu,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._avatar=d.first),n.iGM(d=n.CRH())&&(t._icon=d.first),n.iGM(d=n.CRH())&&(t._lines=d)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[n.qOj],ngContentSelectors:WO,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(n.F$t(YO),n.TgZ(0,"span",0),n._UZ(1,"span",1),n.Hsn(2),n.TgZ(3,"span",2),n.Hsn(4,1),n.qZA(),n.Hsn(5,2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},dependencies:[Jr],encapsulation:2,changeDetection:0}),i})(),nT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[js,ca,wt,Jh,T.ez,js,wt,Jh,Kv]}),i})();const rI=function(i){return{color:i}};function aI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-list-item",2),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(d.external?u.goToURL(d.link):u.shouldHideMenu())}),n.TgZ(1,"mat-icon"),n._uU(2),n.qZA(),n.TgZ(3,"span",3),n._uU(4),n.ALo(5,"localisedText"),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.ekj("activated",t.isActive(e.activatedRegex)),n.s9C("routerLink",e.external?null:e.link),n.Q6J("ngStyle",n.VKq(16,rI,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),n.xp6(2),n.Oqu(e.icon),n.xp6(2),n.Oqu(e.external?n.Dn7(5,7,e,t.lang,"label"):n.lcZ(6,11,n.xi3(7,13,e.label,t.lang)))}}let sI=(()=>{class i{constructor(e,t,r,d){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.translateService=d,this.items=[],this.lang="en",this.textColor=this.storeService.getProperty("theme").sidemenu_text_color,this.currentUrl=r.url,r.events.subscribe(u=>{u instanceof Rr&&(this.currentUrl=u.url)})}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{const{lang:r}=t;this.lang=r});const e=this.storeService.getProperty("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(t=>e.includes(t.tabName))}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}goToURL(e){window.open(e,"_blank")}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(qO),n.Y36(Ut),n.Y36(Dn),n.Y36(sn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["mat-ripple","","class","side-menu-item-height","queryParamsHandling","merge",3,"activated","ngStyle","matRippleColor","routerLink","click",4,"ngFor","ngForOf"],["mat-ripple","","queryParamsHandling","merge",1,"side-menu-item-height",3,"ngStyle","matRippleColor","routerLink","click"],[1,"nav-caption","ml-3"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-nav-list",0),n.YNc(1,aI,8,18,"mat-list-item",1),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngForOf",t.items))},dependencies:[T.sg,T.PC,zn,XO,DA,oa,Nv,Jr,Ke,Xt,$E],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block;padding-left:6px}.side-menu-item-height[_ngcontent-%COMP%]{height:40px!important}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),i})();function oI(i,a){if(1&i&&(n.TgZ(0,"span",1)(1,"a",2),n._uU(2),n.qZA()()),2&i){const e=a.$implicit;n.xp6(1),n.Q6J("routerLink",e.routerLink),n.xp6(1),n.Oqu(e.label)}}let lI=(()=>{class i{constructor(e,t,r){this.router=e,this.activatedRoute=t,this.translate=r,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}ngOnInit(){this.router.events.pipe((0,bt.h)(e=>e instanceof Rr)).subscribe(()=>{this.menuItems=[],this.createBreadcrumbs(this.activatedRoute.root)})}createBreadcrumbs(e,t=""){const r=e.children;0===r.length||"service-access"===r[0].snapshot.routeConfig.path||r.forEach(d=>{const u=d.snapshot.url.map(o=>o.path).join("/");""!==u&&(t+=`/${u}`);const c=this.translate.instant(d.snapshot.data[i.ROUTE_DATA_BREADCRUMB]);return c&&(!this.menuItems[this.menuItems.length-1]||c!==this.menuItems[this.menuItems.length-1].label)&&this.menuItems.push({label:c,routerLink:t}),this.createBreadcrumbs(d,t)})}}return i.ROUTE_DATA_BREADCRUMB="breadcrumb",i.\u0275fac=function(e){return new(e||i)(n.Y36(Dn),n.Y36(mi),n.Y36(sn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-breadcrumbs"]],decls:1,vars:1,consts:[["class","custom-breadcrumb",4,"ngFor","ngForOf"],[1,"custom-breadcrumb"],[1,"breadcrumb-text",3,"routerLink"]],template:function(e,t){1&e&&n.YNc(0,oI,3,2,"span",0),2&e&&n.Q6J("ngForOf",t.menuItems)},dependencies:[T.sg,Cl,EA],styles:['.custom-breadcrumb[_ngcontent-%COMP%]{display:inline-block}.custom-breadcrumb[_ngcontent-%COMP%]:first-child:before{display:none}.custom-breadcrumb[_ngcontent-%COMP%]:before{content:">";vertical-align:center;display:inline-block;margin:0 10px 10px 8px;-webkit-font-smoothing:antialiased}.breadcrumb-text[_ngcontent-%COMP%]{text-decoration:none!important;color:#2c2c2c}']}),i})();const cI=["footer"],MD=function(i){return{background:i}},dI=function(i){return{"min-height":i}};function uI(i,a){if(1&i){const e=n.EpF();n._UZ(0,"perun-web-apps-notificator"),n.TgZ(1,"div",2)(2,"perun-web-apps-header",3),n.NdJ("sidenavToggle",function(){n.CHM(e);const r=n.MAs(5);return n.KtG(r.toggle())}),n.qZA(),n.TgZ(3,"mat-sidenav-container",4)(4,"mat-sidenav",5,6),n._UZ(6,"perun-web-apps-side-menu",7),n.qZA(),n.TgZ(7,"mat-sidenav-content",8)(8,"div",9),n._UZ(9,"perun-web-apps-breadcrumbs")(10,"router-outlet"),n.qZA(),n.TgZ(11,"div",null,10),n._UZ(13,"perun-web-apps-footer"),n.qZA()()()()}if(2&i){const e=n.MAs(5),t=n.oxw();n.xp6(2),n.Q6J("otherApp",t.otherApp),n.xp6(2),n.Q6J("mode",t.sidebarMode)("ngStyle",n.VKq(7,MD,t.sideMenuBgColor))("opened",!t.isMobile()),n.xp6(2),n.Q6J("sideNav",e),n.xp6(1),n.Q6J("ngStyle",n.VKq(9,MD,t.contentBackgroundColor)),n.xp6(1),n.Q6J("ngStyle",n.VKq(11,dI,t.contentHeight))}}function hI(i,a){if(1&i&&n._UZ(0,"perun-web-apps-login-screen-base",11),2&i){const e=n.oxw();n.Q6J("application","user-profile")("headerTitle",e.headerLabel)}}let pI=(()=>{class i{constructor(e,t,r,d,u,c,o,s){this.store=e,this.attributesManagerService=t,this.translateService=r,this.initAuth=d,this.changeDetector=u,this.preferredLangService=c,this.titleService=o,this.document=s,this.sidebarMode="side",this.sideMenuBgColor=this.store.getProperty("theme").sidemenu_bg_color,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.contentHeight="calc(100vh - 84px)",this.headerLabel=this.store.getProperty("header_label_en"),this.otherApp=Go.Admin,this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){if(this.translateService.onLangChange.subscribe(e=>{const t=this.store.getProperty("document_title");this.titleService.setTitle("en"===e.lang?t.en:t.cs),this.document.documentElement.lang=e.lang}),this.isLoginScreenShown=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),this.isLoginScreenShown||this.isServiceAccess){const e=this.preferredLangService.getPreferredLanguage(null);this.headerLabel=this.store.getProperty("en"===e?"header_label_en":"header_label_cs")}else this.attributesManagerService.getUserAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const r=e.find(u=>"preferredLanguage"===u.friendlyName)?.value??null,d=this.preferredLangService.getPreferredLanguage(r);this.translateService.use(d)})}isMobile(){return window.innerWidth<=i.minWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return i.minWidth=992,i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(jn),n.Y36(sn),n.Y36(Tv),n.Y36(n.sBO),n.Y36(xv),n.Y36(ce),n.Y36(T.K0))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&n.Gf(cI,5),2&e){let r;n.iGM(r=n.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&n.NdJ("resize",function(d){return t.getScreenSize(d)},!1,n.Jf7)},decls:2,vars:2,consts:[[3,"ngIf"],[3,"application","headerTitle",4,"ngIf"],[1,"app-min-width"],[3,"otherApp","sidenavToggle"],["autosize","true"],["fixedInViewport","","fixedTopGap","64",1,"side-menu-size",3,"mode","ngStyle","opened"],["sidenav",""],[1,"overflow-hidden",3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application","headerTitle"]],template:function(e,t){1&e&&(n.YNc(0,uI,14,13,"ng-template",0),n.YNc(1,hI,1,2,"perun-web-apps-login-screen-base",1)),2&e&&(n.Q6J("ngIf",!t.isLoginScreenShown&&!t.isServiceAccess&&!t.isServiceLogin()),n.xp6(1),n.Q6J("ngIf",t.isLoginScreenShown||t.isServiceAccess||t.isServiceLogin()))},dependencies:[T.O5,T.PC,yE,wE,Dv,Wr,Nv,ZE,mO,IO,UO,sI,lI],styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 600px){#content-wrap[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}}a[_ngcontent-%COMP%]{text-decoration:none;color:#000}.side-menu-size[_ngcontent-%COMP%]{width:300px;height:auto}"]}),i})();var CD=E(1158);function fI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",15),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().index,d=n.oxw();return n.KtG(d.removeValue(r))}),n.TgZ(1,"mat-icon"),n._uU(2," indeterminate_check_box "),n.qZA()()}}function mI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",9)(1,"mat-form-field",10),n._UZ(2,"label",11),n.TgZ(3,"input",12),n.NdJ("click",function(){const d=n.CHM(e).index,u=n.oxw();return n.KtG(u.readonly&&u.attribute.displayName&&u.showValue(u.keys[d],u.attribute.displayName))})("ngModelChange",function(r){const u=n.CHM(e).index,c=n.oxw();return n.KtG(c.keys[u]=r)}),n.qZA()(),n.TgZ(4,"mat-form-field",10),n._UZ(5,"label",11),n.TgZ(6,"input",13),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.readonly&&void 0!==u.attribute.displayName&&u.showValue(d,u.attribute.displayName))})("ngModelChange",function(r){const u=n.CHM(e).index,c=n.oxw();return n.KtG(c.values[u]=r)}),n.qZA()(),n.YNc(7,fI,3,0,"button",14),n.qZA()}if(2&i){const e=a.index,t=n.oxw();n.xp6(1),n.s9C("appearance",t.readonly?"none":"standard"),n.xp6(1),n.hYB("for","",t.attribute.id,"-key-",e,""),n.xp6(1),n.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),n.hYB("id","",t.attribute.id,"-key-",e,""),n.MGl("name","key-",e,""),n.Q6J("ngModel",t.keys[e])("readonly",t.readonly),n.xp6(1),n.s9C("appearance",t.readonly?"none":"standard"),n.xp6(1),n.hYB("for","",t.attribute.id,"-value-",e,""),n.xp6(1),n.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),n.MGl("name","value-",e,""),n.hYB("id","",t.attribute.id,"-value-",e,""),n.Q6J("readonly",t.readonly)("ngModel",t.values[e]),n.xp6(1),n.Q6J("ngIf",!t.readonly)}}function gI(i,a){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function _I(i,a){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function bI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",16),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onShowChange())}),n.YNc(1,gI,2,0,"mat-icon",17),n.YNc(2,_I,2,0,"mat-icon",17),n.qZA()}if(2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngIf",!e.showMore),n.xp6(1),n.Q6J("ngIf",e.showMore)}}function AI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",18),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.addValue())}),n.TgZ(1,"mat-icon"),n._uU(2," add_box "),n.qZA()()}}let yI=(()=>{class i{constructor(e){this.dialog=e,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const e=new Map(Object.entries(this.attribute.value));for(const[t,r]of e.entries())this.keys.push(t),this.values.push(r)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=to(this.attribute))}customTrackBy(e){return e}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(e){this.keys.splice(e,1),this.values.splice(e,1)}updateAttribute(){const e={};for(let t=0;tt.defaultItemsShown),n.xp6(1),n.Q6J("ngIf",!t.readonly))},dependencies:[T.sg,T.O5,Mm,_i,Ai,dd,Nr,ua,Zs,zn,Ht,yr,di,ji],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),i})();const wI=["input"],MI=["label"],CI=function(i){return{enterDuration:i}},vI=["*"],TI=new n.OlP("mat-checkbox-default-options",{providedIn:"root",factory:vD});function vD(){return{color:"accent",clickAction:"check-indeterminate"}}let xI=0;const TD=vD(),SI={provide:ar,useExisting:(0,n.Gpc)(()=>ic),multi:!0};class EI{}const DI=Vs(Hl(Ni(Xa(class{constructor(i){this._elementRef=i}}))));let LI=(()=>{class i extends DI{constructor(e,t,r,d,u,c,o){super(t),this._changeDetectorRef=r,this._ngZone=d,this._animationMode=c,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new n.vpe,this.indeterminateChange=new n.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||TD,this.color=this.defaultColor=this._options.color||TD.color,this.tabIndex=parseInt(u)||0,this.id=this._uniqueId=`${e}${++xI}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Ge(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const t=Ge(e);t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Ge(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Ge(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const d=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(d)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){var e;const t=null===(e=this._options)||void 0===e?void 0:e.clickAction;this.disabled||"noop"===t?!this.disabled&&"noop"===t&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==t&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===t)return this._animationClasses.uncheckedToChecked;if(3==t)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===t?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===t?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===t?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&(n.Gf(wI,5),n.Gf(MI,5),n.Gf(Jr,5)),2&e){let r;n.iGM(r=n.CRH())&&(t._inputElement=r.first),n.iGM(r=n.CRH())&&(t._labelElement=r.first),n.iGM(r=n.CRH())&&(t.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[n.qOj]}),i})(),ic=(()=>{class i extends LI{constructor(e,t,r,d,u,c,o){super("mat-checkbox-",e,t,d,u,c,o),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const t=new EI;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36($r),n.Y36(n.R0b),n.$8M("tabindex"),n.Y36(n.QbO,8),n.Y36(TI,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,t){2&e&&(n.Ikx("id",t.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),n.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[n._Bn([SI]),n.qOj],ngContentSelectors:vI,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.NdJ("change",function(d){return t._onInteractionEvent(d)})("click",function(d){return t._onInputClick(d)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.qZA(),n._UZ(7,"span",7),n.TgZ(8,"span",8),n.O4$(),n.TgZ(9,"svg",9),n._UZ(10,"path",10),n.qZA(),n.kcU(),n._UZ(11,"span",11),n.qZA()(),n.TgZ(12,"span",12,13),n.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),n.TgZ(14,"span",14),n._uU(15,"\xa0"),n.qZA(),n.Hsn(16),n.qZA()()),2&e){const r=n.MAs(1),d=n.MAs(13);n.uIk("for",t.inputId),n.xp6(2),n.ekj("mat-checkbox-inner-container-no-side-margin",!d.textContent||!d.textContent.trim()),n.xp6(1),n.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),n.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",n.VKq(19,CI,"NoopAnimations"===t._animationMode?0:150))}},dependencies:[Jr,c0],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),i})(),xD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),mg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ca,wt,uu,xD,wt,xD]}),i})(),iT=(()=>{class i{transform(e){return e.replace(/\s/g,"-").replace(/\./g,"-").toLowerCase()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"multiWordDataCy",type:i,pure:!0}),i})();function PI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-checkbox",2),n.NdJ("change",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent())})("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.attribute.value=r)}),n.ALo(1,"multiWordDataCy"),n.qZA()}if(2&i){const e=n.oxw();n.Q2q("data-cy","",n.lcZ(1,2,e.attribute.displayName),"-value"),n.Q6J("ngModel",e.attribute.value)}}function kI(i,a){if(1&i&&(n.TgZ(0,"mat-label"),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.attribute.value)}}let OI=(()=>{class i{constructor(){this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.readonly||(this.readonly=to(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(e,t){1&e&&(n.TgZ(0,"div"),n.YNc(1,PI,2,4,"mat-checkbox",0),n.YNc(2,kI,2,1,"mat-label",1),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",!t.readonly),n.xp6(1),n.Q6J("ngIf",t.readonly))},dependencies:[T.O5,ic,Ai,ua,as,iT]}),i})();function rT(i,a,e){for(let t in a)if(a.hasOwnProperty(t)){const r=a[t];r?i.setProperty(t,r,null!=e&&e.has(t)?"important":""):i.removeProperty(t)}return i}function sf(i,a){const e=a?"":"none";rT(i.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function SD(i,a,e){rT(i.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function LA(i,a){return a&&"none"!=a?i+" "+a:i}function ED(i){const a=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*a}function aT(i,a){return i.getPropertyValue(a).split(",").map(t=>t.trim())}function sT(i){const a=i.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function oT(i,a,e){const{top:t,bottom:r,left:d,right:u}=i;return e>=t&&e<=r&&a>=d&&a<=u}function gg(i,a,e){i.top+=a,i.bottom=i.top+i.height,i.left+=e,i.right=i.left+i.width}function DD(i,a,e,t){const{top:r,right:d,bottom:u,left:c,width:o,height:s}=i,l=o*a,h=s*a;return t>r-h&&tc-l&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:sT(e)})})}handleScroll(a){const e=Or(a),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let d,u;if(e===this._document){const s=this.getViewportScrollPosition();d=s.top,u=s.left}else d=e.scrollTop,u=e.scrollLeft;const c=r.top-d,o=r.left-u;return this.positions.forEach((s,l)=>{s.clientRect&&e!==l&&e.contains(l)&&gg(s.clientRect,c,o)}),r.top=d,r.left=u,{top:c,left:o}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function HD(i){const a=i.cloneNode(!0),e=a.querySelectorAll("[id]"),t=i.nodeName.toLowerCase();a.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const o=this._getTargetHandle(c);o&&!this._disabledHandles.has(o)&&!this.disabled&&this._initializeDragSequence(o,c)}else this.disabled||this._initializeDragSequence(this._rootElement,c)},this._pointerMove=c=>{const o=this._getPointerPositionOnPage(c);if(!this._hasStartedDragging){if(Math.abs(o.x-this._pickupPositionOnPage.x)+Math.abs(o.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const m=Date.now()>=this._dragStartTime+this._getDragStartDelay(c),g=this._dropContainer;if(!m)return void this._endDragSequence(c);(!g||!g.isDragging()&&!g.isReceiving())&&(c.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(c)))}return}c.preventDefault();const s=this._getConstrainedPointerPosition(o);if(this._hasMoved=!0,this._lastKnownPointerPosition=o,this._updatePointerDirectionDelta(s),this._dropContainer)this._updateActiveDropContainer(s,o);else{const l=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=s.x-l.x+this._passiveTransform.x,h.y=s.y-l.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:s,event:c,distance:this._getDragDistance(s),delta:this._pointerDirectionDelta})})},this._pointerUp=c=>{this._endDragSequence(c)},this._nativeDragStart=c=>{if(this._handles.length){const o=this._getTargetHandle(c);o&&!this._disabledHandles.has(o)&&!this.disabled&&c.preventDefault()}else this.disabled||c.preventDefault()},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new LD(t),u.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=Ge(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>sf(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>ci(t)),this._handles.forEach(t=>sf(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=ci(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,HA),e.addEventListener("touchstart",this._pointerDown,OD),e.addEventListener("dragstart",this._nativeDragStart,HA)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?ci(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){var a,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(e=this._rootElement)||void 0===e||e.remove()),null===(a=this._anchor)||void 0===a||a.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),sf(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),sf(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var a,e;null===(a=this._preview)||void 0===a||a.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var a,e;null===(a=this._placeholder)||void 0===a||a.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){_g(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,d=this._placeholder=this._createPlaceholderElement(),u=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();r.insertBefore(u,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),SD(t,!1,lT),this._document.body.appendChild(r.replaceChild(d,t)),this._getPreviewInsertionPoint(r,c).appendChild(this._preview),this.started.next({source:this,event:a}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=_g(e),d=!r&&0!==e.button,u=this._rootElement,c=Or(e),o=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),s=r?_0(e):jh(e);if(c&&c.draggable&&"mousedown"===e.type&&e.preventDefault(),t||d||o||s)return;if(this._handles.length){const p=u.style;this._rootElementTapHighlight=p.webkitTapHighlightColor||"",p.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(p=>this._updateOnScroll(p)),this._boundaryElement&&(this._boundaryRect=sT(this._boundaryElement));const l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){SD(this._rootElement,!0,lT),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(a),d=this._getDragDistance(r),u=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:d,dropPoint:r,event:a}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:u,distance:d,dropPoint:r,event:a}),e.drop(this,t,this._initialIndex,this._initialContainer,u,d,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:r}){let d=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!d&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(d=this._initialContainer),d&&d!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=d,this._dropContainer.enter(this,a,e,d===this._initialContainer&&d.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:d,currentIndex:d.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,e):this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let r;if(t&&a){const d=a.matchSize?this._initialClientRect:null,u=a.viewContainer.createEmbeddedView(t,a.context);u.detectChanges(),r=BD(u,this._document),this._previewRef=u,a.matchSize?ND(r,d):r.style.transform=RA(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=HD(this._rootElement),ND(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return rT(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},lT),sf(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(d=>r.classList.add(d)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function BI(i){const a=getComputedStyle(i),e=aT(a,"transition-property"),t=e.find(c=>"transform"===c||"all"===c);if(!t)return 0;const r=e.indexOf(t),d=aT(a,"transition-duration"),u=aT(a,"transition-delay");return ED(d[r])+ED(u[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=u=>{var c;(!u||Or(u)===this._preview&&"transform"===u.propertyName)&&(null===(c=this._preview)||void 0===c||c.removeEventListener("transitionend",r),t(),clearTimeout(d))},d=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=BD(this._placeholderRef,this._document)):t=HD(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e,t){const r=e===this._rootElement?null:e,d=r?r.getBoundingClientRect():a,u=_g(t)?t.targetTouches[0]:t,c=this._getViewportScrollPosition();return{x:d.left-a.left+(u.pageX-d.left-c.left),y:d.top-a.top+(u.pageY-d.top-c.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=_g(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,r=t.pageX-e.left,d=t.pageY-e.top;if(this._ownerSVGElement){const u=this._ownerSVGElement.getScreenCTM();if(u){const c=this._ownerSVGElement.createSVGPoint();return c.x=r,c.y=d,c.matrixTransform(u.inverse())}}return{x:r,y:d}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(a,this,this._initialClientRect,this._pickupPositionInElement):a;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:d,y:u}=this._pickupPositionInElement,c=this._boundaryRect,{width:o,height:s}=this._getPreviewRect(),l=c.top+u,h=c.bottom-(s-u);t=ID(t,c.left+d,c.right-(o-d)),r=ID(r,l,h)}return{x:t,y:r}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,r=this._pointerDirectionDelta,d=this._pointerPositionAtLastDirectionChange,u=Math.abs(e-d.x),c=Math.abs(t-d.y);return u>this._config.pointerDirectionChangeThreshold&&(r.x=e>d.x?1:-1,d.x=e),c>this._config.pointerDirectionChangeThreshold&&(r.y=t>d.y?1:-1,d.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,sf(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,HA),a.removeEventListener("touchstart",this._pointerDown,OD),a.removeEventListener("dragstart",this._nativeDragStart,HA)}_applyRootElementTransform(a,e){const t=RA(a,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=LA(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const r=null!==(t=this._previewTemplate)&&void 0!==t&&t.template?void 0:this._initialTransform,d=RA(a,e);this._preview.style.transform=LA(d,r)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const d=r.left-t.left,u=t.right-r.right,c=r.top-t.top,o=t.bottom-r.bottom;r.width>t.width?(d>0&&(a+=d),u>0&&(a-=u)):a=0,r.height>t.height?(c>0&&(e+=c),o>0&&(e-=o)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:_g(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=Or(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&gg(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var a;return(null===(a=this._parentPositions.positions.get(this._document))||void 0===a?void 0:a.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=au(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return ci(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(a){return this._handles.find(e=>a.target&&(a.target===e||e.contains(a.target)))}}function RA(i,a){return`translate3d(${Math.round(i)}px, ${Math.round(a)}px, 0)`}function ID(i,a,e){return Math.max(a,Math.min(e,i))}function _g(i){return"t"===i.type[0]}function BD(i,a){const e=i.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function ND(i,a){i.style.width=`${a.width}px`,i.style.height=`${a.height}px`,i.style.transform=RA(a.left,a.top)}function VD(i,a,e){const t=bg(a,i.length-1),r=bg(e,i.length-1);if(t===r)return;const d=i[t],u=r0)return null;const c="horizontal"===this.orientation,o=d.findIndex(w=>w.drag===a),s=d[u],h=s.clientRect,p=o>u?1:-1,m=this._getItemOffsetPx(d[o].clientRect,h,p),g=this._getSiblingOffsetPx(o,d,p),f=d.slice();return VD(d,o,u),d.forEach((w,N)=>{if(f[N]===w)return;const se=w.drag===a,Pe=se?m:g,ot=se?a.getPlaceholderElement():w.drag.getRootElement();w.offset+=Pe,c?(ot.style.transform=LA(`translate3d(${Math.round(w.offset)}px, 0, 0)`,w.initialTransform),gg(w.clientRect,0,Pe)):(ot.style.transform=LA(`translate3d(0, ${Math.round(w.offset)}px, 0)`,w.initialTransform),gg(w.clientRect,Pe,0))}),this._previousSwap.overlaps=oT(h,e,t),this._previousSwap.drag=s.drag,this._previousSwap.delta=c?r.x:r.y,{previousIndex:o,currentIndex:u}}enter(a,e,t,r){const d=null==r||r<0?this._getItemIndexFromPointerPosition(a,e,t):r,u=this._activeDraggables,c=u.indexOf(a),o=a.getPlaceholderElement();let s=u[d];if(s===a&&(s=u[d+1]),!s&&(null==d||-1===d||d-1&&u.splice(c,1),s&&!this._dragDropRegistry.isDragging(s)){const l=s.getRootElement();l.parentElement.insertBefore(o,l),u.splice(d,0,a)}else ci(this._element).appendChild(o),u.push(a);o.style.transform="",this._cacheItemPositions()}withItems(a){this._activeDraggables=a.slice(),this._cacheItemPositions()}withSortPredicate(a){this._sortPredicate=a}reset(){this._activeDraggables.forEach(a=>{const e=a.getRootElement();if(e){var t;const r=null===(t=this._itemPositions.find(d=>d.drag===a))||void 0===t?void 0:t.initialTransform;e.style.transform=r||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a)}updateOnScroll(a,e){this._itemPositions.forEach(({clientRect:t})=>{gg(t,a,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:sT(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(a,e,t){const r="horizontal"===this.orientation;let d=r?e.left-a.left:e.top-a.top;return-1===t&&(d+=r?e.width-a.width:e.height-a.height),d}_getSiblingOffsetPx(a,e,t){const r="horizontal"===this.orientation,d=e[a].clientRect,u=e[a+-1*t];let c=d[r?"width":"height"]*t;if(u){const o=r?"left":"top",s=r?"right":"bottom";-1===t?c-=u.clientRect[o]-d[s]:c+=d[o]-u.clientRect[s]}return c}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const u=t[t.length-1].clientRect;return r?a>=u.right:e>=u.bottom}{const u=t[0].clientRect;return r?a<=u.left:e<=u.top}}_getItemIndexFromPointerPosition(a,e,t,r){const d="horizontal"===this.orientation,u=this._itemPositions.findIndex(({drag:c,clientRect:o})=>{if(c===a)return!1;if(r){const s=d?r.x:r.y;if(c===this._previousSwap.drag&&this._previousSwap.overlaps&&s===this._previousSwap.delta)return!1}return d?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Le.x,this.entered=new Le.x,this.exited=new Le.x,this.dropped=new Le.x,this.sorted=new Le.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Nt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Le.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function II(i=0,a=Mu.z){return i<0&&(i=0),(0,kl.H)(i,i,a)}(0,X1).pipe(rt(this._stopScrollTimers)).subscribe(()=>{const u=this._scrollNode,c=this.autoScrollStep;1===this._verticalScrollDirection?u.scrollBy(0,-c):2===this._verticalScrollDirection&&u.scrollBy(0,c),1===this._horizontalScrollDirection?u.scrollBy(-c,0):2===this._horizontalScrollDirection&&u.scrollBy(c,0)})},this.element=ci(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new LD(t),this._sortStrategy=new FI(this.element,e),this._sortStrategy.withSortPredicate((u,c)=>this.sortPredicate(u,c,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(a)),this._sortStrategy.enter(a,e,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,r,d,u,c,o={}){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:d,distance:u,dropPoint:c,event:o})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===a.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(a){return this._sortStrategy.direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._sortStrategy.orientation=a,this}withScrollableParents(a){const e=ci(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,r){if(this.sortingDisabled||!this._clientRect||!DD(this._clientRect,.05,e,t))return;const d=this._sortStrategy.sort(a,e,t,r);d&&this.sorted.next({previousIndex:d.previousIndex,currentIndex:d.currentIndex,container:this,item:a})}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,r=0,d=0;if(this._parentPositions.positions.forEach((u,c)=>{c===this._document||!u.clientRect||t||DD(u.clientRect,.05,a,e)&&([r,d]=function UI(i,a,e,t){const r=zD(a,t),d=UD(a,e);let u=0,c=0;if(r){const o=i.scrollTop;1===r?o>0&&(u=1):i.scrollHeight-o>i.clientHeight&&(u=2)}if(d){const o=i.scrollLeft;1===d?o>0&&(c=1):i.scrollWidth-o>i.clientWidth&&(c=2)}return[u,c]}(c,u.clientRect,a,e),(r||d)&&(t=c))}),!r&&!d){const{width:u,height:c}=this._viewportRuler.getViewportSize(),o={width:u,height:c,top:0,right:u,bottom:c,left:0};r=zD(o,e),d=UD(o,a),t=window}t&&(r!==this._verticalScrollDirection||d!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=d,this._scrollNode=t,(r||d)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=ci(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=ci(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_reset(){this._isDragging=!1;const a=ci(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(a,e){return null!=this._clientRect&&oT(this._clientRect,a,e)}_getSiblingContainerFromPosition(a,e,t){return this._siblings.find(r=>r._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!oT(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const d=ci(this.element);return r===d||d.contains(r)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=au(ci(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function zD(i,a){const{top:e,bottom:t,height:r}=i,d=.05*r;return a>=e-d&&a<=e+d?1:a>=t-d&&a<=t+d?2:0}function UD(i,a){const{left:e,right:t,width:r}=i,d=.05*r;return a>=e-d&&a<=e+d?1:a>=t-d&&a<=t+d?2:0}const PA=kr({passive:!1,capture:!0});let qI=(()=>{class i{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Le.x,this.pointerUp=new Le.x,this.scroll=new Le.x,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,PA)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,PA)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=t.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:d=>this.pointerUp.next(d),options:!0}).set("scroll",{handler:d=>this.scroll.next(d),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:PA}),r||this._globalListeners.set("mousemove",{handler:d=>this.pointerMove.next(d),options:PA}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((d,u)=>{this._document.addEventListener(u,d.handler,d.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new yn.y(r=>this._ngZone.runOutsideAngular(()=>{const u=c=>{this._activeDragInstances.length&&r.next(c)};return e.addEventListener("scroll",u,!0),()=>{e.removeEventListener("scroll",u,!0)}}))),(0,kn.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const YI={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let cT=(()=>{class i{constructor(e,t,r,d){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=d}createDrag(e,t=YI){return new jI(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new zI(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0),n.LFG(n.R0b),n.LFG(Us),n.LFG(qI))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const qD=new n.OlP("CDK_DRAG_PARENT"),YD=new n.OlP("CdkDropListGroup"),WD=new n.OlP("CDK_DRAG_CONFIG");let WI=0;const GD=new n.OlP("CdkDropList");let GI=(()=>{class i{constructor(e,t,r,d,u,c,o){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=d,this._dir=u,this._group=c,this._destroyed=new Le.x,this.connectedTo=[],this.id="cdk-drop-list-"+WI++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.sorted=new n.vpe,this._unsortedItems=new Set,this._dropListRef=t.createDropList(e),this._dropListRef.data=this,o&&this._assignDefaults(o),this._dropListRef.enterPredicate=(s,l)=>this.enterPredicate(s.data,l.data),this._dropListRef.sortPredicate=(s,l,h)=>this.sortPredicate(s,l.data,h.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),i._dropLists.push(this),c&&c._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=Ge(e)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,t)=>e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=i._dropLists.indexOf(this);e>-1&&i._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(vn(this._dir.value),rt(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const t=Yc(this.connectedTo).map(r=>"string"==typeof r?i._dropLists.find(u=>u.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===t.indexOf(r)&&t.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(d=>d.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=Ge(this.sortingDisabled),e.autoScrollDisabled=Ge(this.autoScrollDisabled),e.autoScrollStep=Qt(this.autoScrollStep,2),e.connectedTo(t.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:t,draggingDisabled:r,sortingDisabled:d,listAutoScrollDisabled:u,listOrientation:c}=e;this.disabled=r??!1,this.sortingDisabled=d??!1,this.autoScrollDisabled=u??!1,this.orientation=c||"vertical",t&&(this.lockAxis=t)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return i._dropLists=[],i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(cT),n.Y36(n.sBO),n.Y36(ts),n.Y36(Hi,8),n.Y36(YD,12),n.Y36(WD,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(n.uIk("id",t.id),n.ekj("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[n._Bn([{provide:YD,useValue:void 0},{provide:GD,useExisting:i}])]}),i})();const $D=new n.OlP("CdkDragHandle"),$I=new n.OlP("CdkDragPlaceholder"),ZI=new n.OlP("CdkDragPreview");let QI=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p){this.element=e,this.dropContainer=t,this._ngZone=d,this._viewContainerRef=u,this._dir=o,this._changeDetectorRef=l,this._selfHandle=h,this._parentDrag=p,this._destroyed=new Le.x,this.started=new n.vpe,this.released=new n.vpe,this.ended=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.dropped=new n.vpe,this.moved=new yn.y(m=>{const g=this._dragRef.moved.pipe((0,Mt.U)(f=>({source:this,pointerPosition:f.pointerPosition,event:f.event,delta:f.delta,distance:f.distance}))).subscribe(m);return()=>{g.unsubscribe()}}),this._dragRef=s.createDrag(e,{dragStartThreshold:c&&null!=c.dragStartThreshold?c.dragStartThreshold:5,pointerDirectionChangeThreshold:c&&null!=c.pointerDirectionChangeThreshold?c.pointerDirectionChangeThreshold:5,zIndex:c?.zIndex}),this._dragRef.data=this,i._dragInstances.push(this),c&&this._assignDefaults(c),t&&(this._dragRef._withDropContainer(t._dropListRef),t.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=Ge(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ht.q)(1),rt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const t=e.rootElementSelector,r=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=i._dragInstances.indexOf(this);e>-1&&i._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let t=e;var r;this.rootElementSelector&&(t=void 0!==e.closest?e.closest(this.rootElementSelector):null===(r=e.parentElement)||void 0===r?void 0:r.closest(this.rootElementSelector)),this._dragRef.withRootElement(t||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):ci(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,r=this.dragStartDelay,d=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,u=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:Qt(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(d).withPreviewTemplate(u).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,ht.q)(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let t=this.element.nativeElement.parentElement;for(;t;){if(t.classList.contains("cdk-drag")){var r;e.withParent((null===(r=i._dragInstances.find(d=>d.element.nativeElement===t))||void 0===r?void 0:r._dragRef)||null);break}t=t.parentElement}})}_handleEvents(e){e.started.subscribe(t=>{this.started.emit({source:this,event:t.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(t=>{this.released.emit({source:this,event:t.event})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:r,constrainPosition:d,previewClass:u,boundaryElement:c,draggingDisabled:o,rootElementSelector:s,previewContainer:l}=e;this.disabled=o??!1,this.dragStartDelay=r||0,t&&(this.lockAxis=t),d&&(this.constrainPosition=d),u&&(this.previewClass=u),c&&(this.boundaryElement=c),s&&(this.rootElementSelector=s),l&&(this.previewContainer=l)}_setupHandlesListener(){this._handles.changes.pipe(vn(this._handles),(0,Wt.b)(e=>{const t=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),(0,An.w)(e=>(0,kn.T)(...e.map(t=>t._stateChanges.pipe(vn(t))))),rt(this._destroyed)).subscribe(e=>{const t=this._dragRef,r=e.element.nativeElement;e.disabled?t.disableHandle(r):t.enableHandle(r)})}}return i._dragInstances=[],i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(GD,12),n.Y36(T.K0),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(WD,8),n.Y36(Hi,8),n.Y36(cT),n.Y36(n.sBO),n.Y36($D,10),n.Y36(qD,12))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,ZI,5),n.Suo(r,$I,5),n.Suo(r,$D,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._previewTemplate=d.first),n.iGM(d=n.CRH())&&(t._placeholderTemplate=d.first),n.iGM(d=n.CRH())&&(t._handles=d)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[n._Bn([{provide:qD,useExisting:i}]),n.TTD]}),i})(),XI=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[cT],imports:[da]}),i})();const KI=["*"],ZD=new n.OlP("MatChipRemove"),JD=new n.OlP("MatChipAvatar"),QD=new n.OlP("MatChipTrailingIcon");class eB{constructor(a){this._elementRef=a}}const tB=Vs(Hl(Ni(eB),"primary"),-1);let kA=(()=>{class i extends tB{constructor(e,t,r,d,u,c,o,s){super(e),this._ngZone=t,this._changeDetectorRef=u,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new Le.x,this._onBlur=new Le.x,this.selectionChange=new n.vpe,this.destroyed=new n.vpe,this.removed=new n.vpe,this._addHostClassName(),this._chipRippleTarget=c.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new $h(this,t,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=d||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=s&&parseInt(s)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const t=Ge(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=Ge(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=Ge(e)}get removable(){return this._removable}set removable(e){this._removable=Ge(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",t=this._elementRef.nativeElement;t.hasAttribute(e)||t.tagName.toLowerCase()===e?t.classList.add(e):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,ht.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Qn),n.Y36(Zh,8),n.Y36(n.sBO),n.Y36(T.K0),n.Y36(n.QbO,8),n.$8M("tabindex"))},i.\u0275dir=n.lG2({type:i,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,JD,5),n.Suo(r,QD,5),n.Suo(r,ZD,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.avatar=d.first),n.iGM(d=n.CRH())&&(t.trailingIcon=d.first),n.iGM(d=n.CRH())&&(t.removeIcon=d.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t._handleClick(d)})("keydown",function(d){return t._handleKeydown(d)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(n.uIk("tabindex",t.disabled?null:t.tabIndex)("role",t.role)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),n.ekj("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[n.qOj]}),i})();const XD=new n.OlP("mat-chips-default-options"),aB=w0(class{constructor(i,a,e,t){this._defaultErrorStateMatcher=i,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Le.x}});let sB=0;class oB{constructor(a,e){this.source=a,this.value=e}}let KD=(()=>{class i extends aB{constructor(e,t,r,d,u,c,o){super(c,d,u,o),this._elementRef=e,this._changeDetectorRef=t,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new Le.x,this._uid="mat-chip-list-"+sB++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(s,l)=>s===l,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new n.vpe,this.valueChange=new n.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(e){this._explicitRole=e}get multiple(){return this._multiple}set multiple(e){this._multiple=Ge(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var e,t,r,d;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(d=r.control)||void 0===d?void 0:d.hasValidator(bi.required))&&void 0!==e&&e}set required(e){this._required=Ge(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ge(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=Ge(e),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return(0,kn.T)(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return(0,kn.T)(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return(0,kn.T)(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return(0,kn.T)(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new m0(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(rt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(rt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(vn(null),rt(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new Yi(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,t)),this._sortValues();else{const r=this._selectValue(e,t);r&&t&&this._keyManager.setActiveItem(r)}}_selectValue(e,t=!0){const r=this.chips.find(d=>null!=d.value&&this._compareWith(d.value,e));return r&&(t?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(t=>{t!==e&&t.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let t=null;t=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.change.emit(new oB(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let t=this.chips.toArray().indexOf(e.chip);this._isValidIndex(t)&&this._keyManager.updateActiveItem(t),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const t=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&t._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let t=e.target;for(;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Hi,8),n.Y36(Zs,8),n.Y36(Qs,8),n.Y36(Qc),n.Y36(gn,10))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-chip-list"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,kA,5),2&e){let d;n.iGM(d=n.CRH())&&(t.chips=d)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(e,t){1&e&&n.NdJ("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(d){return t._keydown(d)}),2&e&&(n.Ikx("id",t._uid),n.uIk("tabindex",t.disabled?null:t._tabIndex)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),n.ekj("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[n._Bn([{provide:sd,useExisting:i}]),n.qOj],ngContentSelectors:KI,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),i})(),lB=0,eL=(()=>{class i{constructor(e,t){this._elementRef=e,this._defaultOptions=t,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new n.vpe,this.placeholder="",this.id="mat-chip-list-input-"+lB++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=Ge(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=Ge(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!Di(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!Di(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(XD))},i.\u0275dir=n.lG2({type:i,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&n.NdJ("keydown",function(d){return t._keydown(d)})("keyup",function(d){return t._keyup(d)})("blur",function(){return t._blur()})("focus",function(){return t._focus()})("input",function(){return t._onInput()}),2&e&&(n.Ikx("id",t.id),n.uIk("disabled",t.disabled||null)("placeholder",t.placeholder||null)("aria-invalid",t._chipList&&t._chipList.ngControl?t._chipList.ngControl.invalid:null)("aria-required",t._chipList&&t._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[n.TTD]}),i})(),dT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Qc,{provide:XD,useValue:{separatorKeyCodes:[13]}}],imports:[wt]}),i})();function cB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-icon",9),n.NdJ("mousedown",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.dragDisabled=!1)}),n._uU(1,"drag_indicator"),n.qZA()}}function dB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-icon",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.edit(r))}),n._uU(1,"edit"),n.qZA()}}function uB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-icon",11),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.remove(r))}),n._uU(1,"cancel"),n.qZA()}}function hB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-chip",4),n.NdJ("removed",function(){const d=n.CHM(e).$implicit,u=n.oxw();return u.remove(d),n.KtG(u._sendEventToParent())}),n.YNc(1,cB,2,0,"mat-icon",5),n.TgZ(2,"div",6),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.readonly&&void 0!==u.attribute.displayName&&u.showValue(d,u.attribute.displayName))}),n._uU(3),n.qZA(),n.YNc(4,dB,2,0,"mat-icon",7),n.YNc(5,uB,2,0,"mat-icon",8),n.qZA()}if(2&i){const e=a.$implicit,t=n.oxw();n.Q6J("selectable",t.selectable)("cdkDragData",e)("removable",t.removable),n.xp6(1),n.Q6J("ngIf",t.removable),n.xp6(1),n.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),n.xp6(1),n.hij(" ",e," "),n.xp6(1),n.Q6J("ngIf",t.removable),n.xp6(1),n.Q6J("ngIf",t.removable)}}function pB(i,a){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function fB(i,a){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function mB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",12)(1,"span",13)(2,"button",14),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onShowChange())}),n.YNc(3,pB,2,0,"mat-icon",15),n.YNc(4,fB,2,0,"mat-icon",15),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(1),n.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.xp6(2),n.Q6J("ngIf",!e.showMore),n.xp6(1),n.Q6J("ngIf",e.showMore)}}function gB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",12)(1,"input",16),n.NdJ("matChipInputTokenEnd",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.add(r))})("change",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent())}),n.qZA()()}if(2&i){const e=n.oxw(),t=n.MAs(2);n.xp6(1),n.Q6J("matChipInputFor",t)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur)}}let _B=(()=>{class i{constructor(e,t){this.dialog=e,this.changeDetector=t,this.readonly=!1,this.sendEventToParent=new n.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!to(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=to(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(e){const t=e.input,r=e.value;(r||"").trim()&&(this.attribute.value.push(r.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),t&&(t.value=""),this.sendEventToParent.emit()}remove(e){const t=ln();t.width="400px",t.data={name:e},this.dialog.open(fk,t).afterClosed().subscribe(d=>{if(d){const u=this.attribute.value.indexOf(e);this.attribute.value.splice(u,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(e){this.dragDisabled=!0,VD(this.attribute.value,e.previousIndex,e.currentIndex),this.values=this.attribute.value}edit(e){const t=this.attribute.value.indexOf(e),r=ln();r.width="600px",r.data={attribute:this.attribute,index:t},this.dialog.open(pk,r).afterClosed().subscribe(u=>{u&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(e,t){const r=ln();r.width="350px",r.data={value:e,title:t},this.dialog.open(xA,r)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:6,vars:4,consts:[["cdkDropList","","cdkDropListOrientation","vertical",1,"mat-chip-list-stacked",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],["class","chip-word-break","cdkDrag","",3,"selectable","cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["cdkDrag","",1,"chip-word-break",3,"selectable","cdkDragData","removable","removed"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text","overflow-ellipsis",3,"click"],["class","edit-delete-icon ml-2",3,"click",4,"ngIf"],["class","edit-delete-icon",3,"click",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ml-2",3,"click"],[1,"edit-delete-icon",3,"click"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ml-auto",3,"click"],[4,"ngIf"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"mat-chip-list",0,1),n.NdJ("cdkDropListDropped",function(d){return t.drop(d),t._sendEventToParent()}),n.YNc(3,hB,6,9,"mat-chip",2),n.YNc(4,mB,5,4,"div",3),n.YNc(5,gB,2,3,"mat-form-field",3),n.qZA()()),2&e&&(n.xp6(1),n.Q6J("cdkDropListDisabled",t.dragDisabled),n.xp6(2),n.Q6J("ngForOf",t.values.slice(0,t.itemsShown)),n.xp6(1),n.Q6J("ngIf",t.values.length>t.defaultItemsShown),n.xp6(1),n.Q6J("ngIf",!t.readonly))},dependencies:[T.sg,T.O5,KD,kA,eL,GI,QI,zn,Ht,yr,di,ji],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),i})(),bB=(()=>{class i{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=to(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e,t){const r=ln();r.width="350px",r.data={value:e,title:t},this.dialog.open(xA,r)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-form-field",0)(1,"input",1),n.NdJ("click",function(){return t.readonly&&void 0!==t.value&&t.showValue(t.value,t.attribute.displayName)})("ngModelChange",function(d){return t.attribute.value=d})("keydown",function(){return t._sendEventToParent()}),n.ALo(2,"multiWordDataCy"),n.qZA()()),2&e&&(n.s9C("appearance",t.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",t.readonly&&void 0!==t.value),n.Q2q("data-cy","",n.lcZ(2,6,t.attribute.displayName),"-value"),n.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},dependencies:[_i,Ai,ua,di,ji,iT],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),i})(),AB=(()=>{class i{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.readonly||(this.readonly=to(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e){const t=ln();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(xA,t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-form-field",0)(1,"input",1),n.NdJ("click",function(){return t.readonly&&void 0!==t.attribute.value&&t.showValue(t.attribute)})("ngModelChange",function(d){return t.attribute.value=d})("keydown",function(){return t._sendEventToParent()}),n.qZA()()),2&e&&(n.s9C("appearance",t.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.value),n.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},dependencies:[_i,Lp,Ai,ua,di,ji],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();const yB=["map"];function wB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-boolean",3),n.NdJ("sendEventToParent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent2())}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function MB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-list",3),n.NdJ("sendEventToParent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent2())}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function CB(i,a){if(1&i&&n._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&i){const e=n.oxw();n.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function vB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-string",3),n.NdJ("sendEventToParent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent2())}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function TB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-integer",3),n.NdJ("sendEventToParent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent2())}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("attribute",e.attribute)("readonly",e.readonly)}}let uT=(()=>{class i{constructor(){this.readonly=!1,this.sendEventToParent2=new n.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(e,t){if(1&e&&n.Gf(yB,5),2&e){let r;n.iGM(r=n.CRH())&&(t.mapComponent=r.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(e,t){1&e&&(n.TgZ(0,"div"),n.YNc(1,wB,1,2,"perun-web-apps-attribute-value-boolean",0),n.YNc(2,MB,1,2,"perun-web-apps-attribute-value-list",0),n.TgZ(3,"div",1),n.NdJ("click",function(){return t._sendEventToParent2()}),n.YNc(4,CB,2,2,"perun-web-apps-attribute-value-map",2),n.qZA(),n.YNc(5,vB,1,2,"perun-web-apps-attribute-value-string",0),n.YNc(6,TB,1,2,"perun-web-apps-attribute-value-integer",0),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf","java.lang.Boolean"===t.attribute.type),n.xp6(1),n.Q6J("ngIf","java.util.ArrayList"===t.attribute.type),n.xp6(2),n.Q6J("ngIf","java.util.LinkedHashMap"===t.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.String"===t.attribute.type||"java.lang.LargeString"===t.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.Integer"===t.attribute.type))},dependencies:[T.O5,OI,_B,yI,bB,AB]}),i})();function xB(i,a){1&i&&n._UZ(0,"mat-spinner",3)}function SB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-option",16),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw(4);return n.KtG(u.changeLanguage(d))}),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"uppercase"),n.qZA()}if(2&i){const e=a.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",n.lcZ(2,2,n.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function EB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",13)(1,"mat-select",14),n.NdJ("valueChange",function(r){n.CHM(e);const d=n.oxw(3);return n.KtG(d.currentLang=r)}),n.YNc(2,SB,4,6,"mat-option",15),n.qZA()()}if(2&i){const e=n.oxw(3);n.xp6(1),n.Q6J("value",e.currentLang),n.xp6(1),n.Q6J("ngForOf",e.languages)}}function DB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"a",17),n._uU(2),n.qZA(),n.TgZ(3,"button",18),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(3);return n.KtG(r.changeEmail())}),n.TgZ(4,"mat-icon"),n._uU(5," edit "),n.qZA()()()}if(2&i){const e=n.oxw(3);n.xp6(1),n.MGl("href","mailto:",e.email,"",n.LSH),n.xp6(1),n.Oqu(e.email)}}function LB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-option",16),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw(4);return n.KtG(u.changeTimeZone(d))}),n._uU(1),n.qZA()}if(2&i){const e=a.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function HB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",13)(1,"mat-select",19),n.NdJ("valueChange",function(r){n.CHM(e);const d=n.oxw(3);return n.KtG(d.currentTimezone=r)}),n.YNc(2,LB,2,2,"mat-option",15),n.qZA()()}if(2&i){const e=n.oxw(3);n.xp6(1),n.Q6J("value",e.currentTimezone),n.xp6(1),n.Q6J("ngForOf",e.timeZones)}}function RB(i,a){1&i&&(n.TgZ(0,"p"),n._uU(1,"-"),n.qZA())}function PB(i,a){if(1&i&&n._UZ(0,"perun-web-apps-attribute-value",22),2&i){const e=n.oxw(2).$implicit;n.Q6J("attribute",e.attribute)("readonly",!0)}}function kB(i,a){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,RB,2,0,"p",20),n.YNc(2,PB,1,2,"perun-web-apps-attribute-value",21),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngIf",!e.attribute.value),n.xp6(1),n.Q6J("ngIf",e.attribute.value)}}function OB(i,a){if(1&i&&(n.TgZ(0,"tr")(1,"td",7)(2,"div",8),n._uU(3),n.qZA()(),n.TgZ(4,"td",9),n.YNc(5,EB,3,2,"mat-form-field",10),n.YNc(6,DB,6,2,"div",11),n.YNc(7,HB,3,2,"mat-form-field",10),n.YNc(8,kB,3,2,"div",12),n.qZA()()),2&i){const e=a.$implicit,t=n.oxw(2);n.xp6(2),n.Q6J("matTooltip",e["tooltip_"+t.currentLang]),n.xp6(1),n.hij(" ",e["displayName_"+t.currentLang]," "),n.xp6(1),n.Q6J("ngSwitch",e.attribute.friendlyName),n.xp6(1),n.Q6J("ngSwitchCase","preferredLanguage"),n.xp6(1),n.Q6J("ngSwitchCase","preferredMail"),n.xp6(1),n.Q6J("ngSwitchCase","timezone")}}function IB(i,a){if(1&i&&(n.TgZ(0,"table",4)(1,"tbody")(2,"tr")(3,"td",5),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA(),n.TgZ(7,"td"),n._uU(8),n.qZA()(),n.YNc(9,OB,9,6,"tr",6),n.qZA()()),2&i){const e=n.oxw();n.xp6(4),n.Oqu(n.lcZ(5,3,n.lcZ(6,5,"PROFILE_PAGE.NAME"))),n.xp6(4),n.Oqu(e.fullName),n.xp6(1),n.Q6J("ngForOf",e.additionalAttributes)}}let BB=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p){this.translateService=e,this.dialog=t,this.authzResolverService=r,this.attributesManagerService=d,this.usersManagerService=u,this.route=c,this.router=o,this.notificator=s,this.storeService=l,this.apiRequestConfiguration=h,this.preferredLangService=p,this.currentLang="en",this.languages=this.storeService.getProperty("supported_languages"),this.timeZones=CD.tz.names().filter(m=>!m.startsWith("Etc/")),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",e.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(m=>this.successMessage=m)}ngOnInit(){const e=this.route.snapshot.queryParamMap,t=e.get("token"),r=e.get("u");this.loading=!0,t&&r?(this.apiRequestConfiguration.dontHandleErrorForNext(),this.usersManagerService.validatePreferredEmailChangeWithToken(t,Number.parseInt(r,10)).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.router.navigate([],{replaceUrl:!0,queryParamsHandling:"preserve"}),this.getData()},error:()=>{const d=ln();d.width="600px",this.dialog.open(xk,d).afterClosed().subscribe(()=>{this.getData()})}})):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(e=>{this.userId=e.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.fullName=(new mA).transform(t);const r=t.userAttributes.find(l=>"preferredMail"===l.friendlyName);this.email=r?.value??"-",this.languageAttribute=t.userAttributes.find(l=>"preferredLanguage"===l.friendlyName);const u=this.preferredLangService.getPreferredLanguage(this.languageAttribute?.value??null);this.translateService.use(u),this.currentLang=u,this.timezoneAttribute=t.userAttributes.find(l=>"timezone"===l.friendlyName),this.currentTimezone=this.timezoneAttribute?.value??"-";const c=this.storeService.getProperty("profile_page_attributes");let o=0;const s=this.storeService.getProperty("supported_languages");c.forEach(l=>{const h=t.userAttributes.find(p=>p.friendlyName===l.friendly_name);h?(o++,this.addAttribute(h,l,s)):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${l.is_virtual?"virt":"def"}:${l.friendly_name}`).subscribe(p=>{this.addAttribute(p,l,s),o++,this.loading=o!==c.length}),this.loading=o!==c.length})})})}changeLanguage(e){this.currentLang=e,this.translateService.use(this.currentLang),this.languageAttribute?this.setLanguage():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:preferredLanguage").subscribe(t=>{this.languageAttribute=t,this.setLanguage()})}setLanguage(){this.languageAttribute.value=this.currentLang,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.languageAttribute}).subscribe(()=>{this.router.navigate([],{queryParams:{lang:null},queryParamsHandling:"merge"})})}changeTimeZone(e){this.currentTimezone=e,this.timezoneAttribute?this.setTimeZone():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:timezone").subscribe(t=>{this.timezoneAttribute=t,this.setTimeZone()})}setTimeZone(){this.timezoneAttribute.value=this.currentTimezone,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.timezoneAttribute}).subscribe(()=>{})}changeEmail(){const e=ln();e.width="350px",e.data={userId:this.userId},this.dialog.open(_k,e).afterClosed().subscribe(r=>{r&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(e=>{this.email=e?.value??"-"})}addAttribute(e,t,r){const d={attribute:e};for(const u of r)d[`displayName_${u}`]=t?.[`display_name_${u}`]?.length?t[`display_name_${u}`]:e.displayName,d[`tooltip_${u}`]=t[`tooltip_${u}`]??"";this.additionalAttributes.push(d)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(sn),n.Y36(on),n.Y36(As),n.Y36(jn),n.Y36(li),n.Y36(mi),n.Y36(Dn),n.Y36(Mr),n.Y36(Ut),n.Y36(cg),n.Y36(xv))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-profile-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3 word-break-all",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"mt-3","word-break-all"],[1,"font-weight-bold"],[4,"ngFor","ngForOf"],[1,"font-weight-bold","att-name-width"],["matTooltipPosition","above",3,"matTooltip"],[1,"w-100",3,"ngSwitch"],["class","center-self",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"center-self"],[1,"mb-auto",3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"center-self",3,"href"],["mat-icon-button","",1,"ml-2",3,"click"],[3,"value","valueChange"],[4,"ngIf"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,xB,1,0,"mat-spinner",1),n.YNc(2,IB,10,7,"table",2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.sg,T.O5,T.RF,T.n9,T.ED,zn,Ht,uT,di,md,Fs,Hn,yr,T.gd,Ke,Xt],styles:[".center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.word-break-all[_ngcontent-%COMP%]{word-break:break-all}td[_ngcontent-%COMP%]{padding-right:1rem!important}.att-name-width[_ngcontent-%COMP%]{min-width:200px}"]}),i})(),NB=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-focus-on-linker-dialog"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),n._uU(3," info "),n.qZA(),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div"),n._uU(7),n.ALo(8,"translate"),n.qZA()()),2&e&&(n.xp6(4),n.hij(" ",n.lcZ(5,2,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL")," "),n.xp6(3),n.hij(" ",n.lcZ(8,4,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL_WARNING")," "))},dependencies:[zn,Ke],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),i})(),VB=(()=>{class i{constructor(e,t,r,d){this.otherApplicationsService=e,this.storeService=t,this.oauthService=r,this.dialog=d}openLinkerWindow(e,t){let r=this.otherApplicationsService.getUrlForOtherApplication(Go.Linker);this.storeService.getProperty("use_localhost_linker_url")&&(r="http://localhost:4201/");let d=r+"?formerToken="+this.oauthService.getAccessToken();t&&0!==t.length&&(d+="&idphint="+t.toString());const o=window.top,h=window.open(d,"_blank",`width=600,height=600,top=${o.outerHeight/2+o.screenY-300}, left=${o.outerWidth/2+o.screenX-300}`);let p;if(h){const g=ln();g.width="450px",g.panelClass="noBorderDialog",p=this.dialog.open(NB,g)}window.addEventListener("message",g=>{sessionStorage.setItem("linkedResult",g.data)});const m=setInterval(()=>{if(h.closed){clearInterval(m),p.close();const g=sessionStorage.getItem("linkedResult");sessionStorage.removeItem("linkedResult"),e(g)}},1e3)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(cA),n.LFG(Ut),n.LFG(Jl.Ct),n.LFG(on))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),hT=(()=>{class i{}return i.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",i.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",i.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",i.MEMBER_GROUP_STATUS_INDIRECT="urn:perun:member_group:attribute-def:virt:groupStatusIndirect",i.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",i.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",i.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",i.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",i.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",i.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",i.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",i.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",i.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",i.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",i.USER_DEF_CERTIFICATES="urn:perun:user:attribute-def:def:userCertificates",i.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",i.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",i.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",i.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",i.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",i.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",i.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",i.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",i.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",i.GROUP_SYNC_INTERVAL="urn:perun:group:attribute-def:def:synchronizationInterval",i.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",i.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",i.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",i.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",i.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",i})();const jB=["mat-sort-header",""];function FB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._disableViewStateAnimation=!1)}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6)(4,"div",7)(5,"div",8),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",e._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",e._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",e._getArrowDirectionState())}}const zB=["*"],tL=new n.OlP("MAT_SORT_DEFAULT_OPTIONS"),UB=M0(Xa(class{}));let ps=(()=>{class i extends UB{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new Le.x,this.start="asc",this._direction="",this.sortChange=new n.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ge(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var t,r,d;if(!e)return"";const u=null!==(t=null!==(r=e?.disableClear)&&void 0!==r?r:this.disableClear)&&void 0!==t?t:!(null===(d=this._defaultOptions)||void 0===d||!d.disableClear);let c=function qB(i,a){let e=["asc","desc"];return"desc"==i&&e.reverse(),a||e.push(""),e}(e.start||this.start,u),o=c.indexOf(this.direction)+1;return o>=c.length&&(o=0),c[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tL,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.qOj,n.TTD]}),i})();const vd=Kx.ENTERING+" "+Xx.STANDARD_CURVE,lf={indicator:En("indicator",[ut("active-asc, asc",je({transform:"translateY(0px)"})),ut("active-desc, desc",je({transform:"translateY(10px)"})),Ot("active-asc <=> active-desc",Rt(vd))]),leftPointer:En("leftPointer",[ut("active-asc, asc",je({transform:"rotate(-45deg)"})),ut("active-desc, desc",je({transform:"rotate(45deg)"})),Ot("active-asc <=> active-desc",Rt(vd))]),rightPointer:En("rightPointer",[ut("active-asc, asc",je({transform:"rotate(45deg)"})),ut("active-desc, desc",je({transform:"rotate(-45deg)"})),Ot("active-asc <=> active-desc",Rt(vd))]),arrowOpacity:En("arrowOpacity",[ut("desc-to-active, asc-to-active, active",je({opacity:1})),ut("desc-to-hint, asc-to-hint, hint",je({opacity:.54})),ut("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",je({opacity:0})),Ot("* => asc, * => desc, * => active, * => hint, * => void",Rt("0ms")),Ot("* <=> *",Rt(vd))]),arrowPosition:En("arrowPosition",[Ot("* => desc-to-hint, * => desc-to-active",Rt(vd,No([je({transform:"translateY(-25%)"}),je({transform:"translateY(0)"})]))),Ot("* => hint-to-desc, * => active-to-desc",Rt(vd,No([je({transform:"translateY(0)"}),je({transform:"translateY(25%)"})]))),Ot("* => asc-to-hint, * => asc-to-active",Rt(vd,No([je({transform:"translateY(25%)"}),je({transform:"translateY(0)"})]))),Ot("* => hint-to-asc, * => active-to-asc",Rt(vd,No([je({transform:"translateY(0)"}),je({transform:"translateY(-25%)"})]))),ut("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",je({transform:"translateY(0)"})),ut("hint-to-desc, active-to-desc, desc",je({transform:"translateY(-25%)"})),ut("hint-to-asc, active-to-asc, asc",je({transform:"translateY(25%)"}))]),allowChildren:En("allowChildren",[Ot("* <=> *",[Br("@*",Hu(),{optional:!0})])])};let OA=(()=>{class i{constructor(){this.changes=new Le.x}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const WB={provide:OA,deps:[[new n.FiY,new n.tp0,OA]],useFactory:function YB(i){return i||new OA}},GB=Xa(class{});let Ag=(()=>{class i extends GB{constructor(e,t,r,d,u,c,o,s){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=d,this._focusMonitor=u,this._elementRef=c,this._ariaDescriber=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=s&&s.arrowPosition&&(this.arrowPosition=s?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ge(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var t,r;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,kn.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(OA),n.Y36(n.sBO),n.Y36(ps,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36($r),n.Y36(n.SBq),n.Y36(hu,8),n.Y36(tL,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._handleClick()})("keydown",function(d){return t._handleKeydown(d)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(n.uIk("aria-sort",t._getAriaSortAttribute()),n.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[n.qOj],attrs:jB,ngContentSelectors:zB,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,FB,6,6,"div",2),n.qZA()),2&e&&(n.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"===t.arrowPosition),n.uIk("tabindex",t._isDisabled()?null:0)("role",t._isDisabled()?null:"button"),n.xp6(3),n.Q6J("ngIf",t._renderArrow()))},dependencies:[T.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[lf.indicator,lf.leftPointer,lf.rightPointer,lf.arrowOpacity,lf.arrowPosition,lf.allowChildren]},changeDetection:0}),i})(),IA=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[WB],imports:[T.ez,wt]}),i})(),nL=(()=>{class i{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&n.NdJ("mouseup",function(d){return t.onClick(d)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),i})(),$B=(()=>{class i{transform(e){return e.find(r=>"mail"===r.friendlyName)?.value??""}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"getMailFromAttributes",type:i,pure:!0}),i})(),yg=(()=>{class i{transform(e){const t="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return e?t+"DESELECT_ROW":t+"SELECT_ROW"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"checkboxLabel",type:i,pure:!0}),i})();function ZB(i,a){1&i&&n._UZ(0,"th",18)}const JB=function(i){return{name:i}};function QB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",19)(1,"span",20),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.TgZ(4,"mat-checkbox",21),n.NdJ("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw();return n.KtG(r?c.selection.toggle(u):null)})("click",function(r){return r.stopPropagation()}),n.ALo(5,"translate"),n.ALo(6,"checkboxLabel"),n.qZA()()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,n.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!e.userExtSource.persistent),n.xp6(3),n.Q6J("aria-label",n.xi3(5,10,n.lcZ(6,13,t.selection.isSelected(e)),n.VKq(15,JB,e.userExtSource.extSource.name)))("checked",t.selection.isSelected(e))("disabled",e.userExtSource.persistent)}}function XB(i,a){1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function KB(i,a){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.userExtSource.id," ")}}function eN(i,a){1&i&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function tN(i,a){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.ALo(2,"getMailFromAttributes"),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,e.attributes)," ")}}function nN(i,a){if(1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,e.extSourceNameHeader?e.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function iN(i,a){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.userExtSource.extSource.name," ")}}function rN(i,a){if(1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,e.loginHeader?e.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function aN(i,a){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.userExtSource.login," ")}}function sN(i,a){1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function oN(i,a){if(1&i&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"date"),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",n.xi3(2,1,e.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function lN(i,a){1&i&&n._UZ(0,"tr",26)}const iL=function(i,a){return["/admin","users",i,"identities",a]};function cN(i,a){if(1&i&&n._UZ(0,"tr",27),2&i){const e=a.$implicit,t=n.oxw();n.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:n.WLB(6,iL,t.userId.toString(),e.userExtSource.id.toString()))("routerLink",t.disableRouting?null:n.WLB(9,iL,t.userId,e.userExtSource.id))}}function dN(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function uN(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",28),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let hN=(()=>{class i{constructor(e,t){this.route=e,this.authResolver=t,this.selection=new Yi,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=Gl}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.userExtSource.id.toString();case"mail":{const r=e.attributes.find(d=>"mail"===d.friendlyName);return r?r.value:"N/A"}case"extSourceName":return e.userExtSource.extSource.name;case"login":return e.userExtSource.login;case"lastAccess":return e.userExtSource.lastAccess.split(".")[0];default:return e[t]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new $o(this.userExtSources),this.setDataSource()}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Zl(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>$l(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(mi),n.Y36(Cn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(os,7),n.Gf(ps,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[n.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,ZB,1,0,"th",4),n.YNc(5,QB,7,17,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,XB,4,5,"th",7),n.YNc(8,KB,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,eN,4,5,"th",10),n.YNc(11,tN,3,3,"td",8),n.BQk(),n.ynx(12,11),n.YNc(13,nN,4,5,"th",7),n.YNc(14,iN,2,1,"td",8),n.BQk(),n.ynx(15,12),n.YNc(16,rN,4,5,"th",7),n.YNc(17,aN,2,1,"td",8),n.BQk(),n.ynx(18,13),n.YNc(19,sN,4,5,"th",7),n.YNc(20,oN,3,4,"td",14),n.BQk(),n.YNc(21,lN,1,0,"tr",15),n.YNc(22,cN,1,12,"tr",16),n.qZA()()(),n.YNc(23,dN,3,3,"perun-web-apps-alert",17),n.YNc(24,uN,4,5,"perun-web-apps-alert",17)),2&e&&(n.Q6J("hidden",0===t.userExtSources.length||0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(19),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.userExtSources.length),n.xp6(1),n.Q6J("ngIf",0===t.userExtSources.length))},dependencies:[T.O5,ic,io,cs,ro,ds,ls,ao,us,hs,so,oo,oa,ps,Ag,yi,yr,os,nL,EA,T.uU,Ke,$B,Xt,yg],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),i})();function pN(i,a){1&i&&n._UZ(0,"mat-spinner",4)}function fN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"h1",8),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"button",5),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.addIdentity())}),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n.TgZ(9,"button",6),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.removeIdentity(r.certSelection))}),n._uU(10),n.ALo(11,"translate"),n.ALo(12,"customTranslate"),n.qZA(),n._UZ(13,"perun-web-apps-user-ext-sources-list",11),n.qZA()}if(2&i){const e=n.oxw(2);n.xp6(2),n.Oqu(n.lcZ(3,10,n.lcZ(4,12,"IDENTITIES.CERT"))),n.xp6(4),n.hij(" ",n.lcZ(7,14,n.lcZ(8,16,"IDENTITIES.ADD"))," "),n.xp6(3),n.Q6J("disabled",0===e.certSelection.selected.length),n.xp6(1),n.hij(" ",n.lcZ(11,18,n.lcZ(12,20,"IDENTITIES.REMOVE"))," "),n.xp6(3),n.Q6J("userExtSources",e.certExtSources)("selection",e.certSelection)("extSourceNameHeader",e.extSourceNameCert)("loginHeader",e.loginCert)("displayedColumns",e.displayedColumnsCert)("disableRouting",!0)}}function mN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"button",5),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.addIdentity())}),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"button",6),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.removeIdentity(r.idpSelection))}),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n._UZ(9,"perun-web-apps-user-ext-sources-list",7),n.YNc(10,fN,14,22,"div",3),n.TgZ(11,"h1",8),n._uU(12),n.ALo(13,"translate"),n.ALo(14,"customTranslate"),n.TgZ(15,"mat-icon",9),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n._uU(18," info_outline "),n.qZA()(),n._UZ(19,"perun-web-apps-user-ext-sources-list",10),n.qZA()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,16,n.lcZ(4,18,"IDENTITIES.ADD"))," "),n.xp6(3),n.Q6J("disabled",0===e.idpSelection.selected.length),n.xp6(1),n.hij(" ",n.lcZ(7,20,n.lcZ(8,22,"IDENTITIES.REMOVE"))," "),n.xp6(3),n.Q6J("userExtSources",e.idpExtSources)("selection",e.idpSelection)("displayedColumns",e.displayedColumnsIdp)("loginHeader",e.loginIdp)("disableRouting",!0),n.xp6(1),n.Q6J("ngIf",e.displayCertificates),n.xp6(2),n.hij(" ",n.lcZ(13,24,n.lcZ(14,26,"IDENTITIES.OTHER"))," "),n.xp6(3),n.Q6J("matTooltip",n.lcZ(16,28,n.lcZ(17,30,"IDENTITIES.OTHER_TOOLTIP"))),n.xp6(4),n.Q6J("userExtSources",e.otherExtSources)("selection",e.otherSelection)("extSourceNameHeader",e.extSourceNameOther)("displayedColumns",e.displayedColumnsOther)("disableRouting",!0)}}let gN=(()=>{class i{constructor(e,t,r,d,u,c,o,s){this.usersManagerService=e,this.storage=t,this.dialog=r,this.attributesManagerService=d,this.translate=u,this.notificator=c,this.registrarManagerService=o,this.openLinkerService=s,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new Yi(!0,[]),this.certSelection=new Yi(!0,[]),this.otherSelection=new Yi(!0,[]),this.loginIdp="IDENTITIES.LOGIN_IDP",this.extSourceNameCert="IDENTITIES.EXT_SOURCE_NAME_CERT",this.loginCert="IDENTITIES.LOGIN_CERT",this.extSourceNameOther="IDENTITIES.EXT_SOURCE_NAME_OTHER",this.displayedColumnsIdp=["select","extSourceName","login","mail","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["extSourceName","login","lastAccess"]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.getProperty("display_identity_certificates"),this.refreshTables()}refreshTables(){this.loading=!0,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{let t=e.length;e.forEach(r=>{this.attributesManagerService.getUserExtSourceAttributesByNames(r.userExtSource.id,[hT.UES_SOURCE_IDP_NAME,hT.UES_DEF_MAIL]).subscribe(d=>{let u;d.filter(c=>"mail"===c.baseFriendlyName&&null===c.value).map(c=>r.attributes.push(c)),d.filter(c=>"sourceIdPName"===c.baseFriendlyName&&c?.value).map(c=>u=c.value),u?(r.userExtSource.extSource.name=u,t--,this.loading=0!==t,this.addToList(r)):this.attributesManagerService.getUserExtSourceAttributeByName(r.userExtSource.id,hT.UES_IDP_ORGANIZATION_NAME).subscribe(c=>{t--,c?.value&&(r.userExtSource.extSource.name=c.value),this.loading=0!==t,this.addToList(r)})})})})}removeIdentity(e){const t=ln();t.width="600px",t.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(ck,t).afterClosed().subscribe(d=>{d&&(e.clear(),this.refreshTables())})}addIdentity(){this.storage.getProperty("use_new_consolidator")?this.openLinkerService.openLinkerWindow(e=>{"TOKEN_EXPIRED"===e?location.reload():"OK"===e?(this.notificator.showSuccess(this.translate.instant("IDENTITIES.SUCCESSFULLY_ADDED")),this.refreshTables()):"MESSAGE_SENT_TO_SUPPORT"===e&&this.notificator.showSuccess(this.translate.instant("IDENTITIES.MESSAGE_SENT_TO_SUPPORT"))}):this.registrarManagerService.getConsolidatorToken().subscribe(e=>{const t=this.storage.getPerunPrincipal().extSourceType,r=this.storage.getProperty("consolidator_base_url");window.location.href=`${r}${t?.endsWith("X509")?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${e}`})}addToList(e){e.userExtSource.extSource.type.endsWith("Idp")?this.idpExtSources.push(e):e.userExtSource.extSource.type.endsWith("X509")?this.certExtSources.push(e):this.otherExtSources.push(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Ut),n.Y36(on),n.Y36(jn),n.Y36(sn),n.Y36(Mr),n.Y36(lc),n.Y36(VB))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-identities-page"]],decls:7,vars:7,consts:[[1,"user-theme"],[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-flat-button","","color","accent",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"userExtSources","selection","displayedColumns","loginHeader","disableRouting"],[1,"page-title","mt-5"],["matTooltipPosition","above",1,"center-icon",3,"matTooltip"],[3,"userExtSources","selection","extSourceNameHeader","displayedColumns","disableRouting"],[3,"userExtSources","selection","extSourceNameHeader","loginHeader","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.YNc(5,pN,1,0,"mat-spinner",2),n.YNc(6,mN,20,32,"div",3),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,3,n.lcZ(4,5,"IDENTITIES.IDP"))),n.xp6(3),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,zn,Ht,hN,Hn,yr,Ke,Xt],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),i})();const _N=["panel"];function bN(i,a){if(1&i&&(n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA()),2&i){const e=a.id,t=n.oxw();n.Q6J("id",t.id)("ngClass",t._classList),n.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(e))}}const AN=["*"];let yN=0;class wN{constructor(a,e){this.source=a,this.option=e}}const MN=Ni(class{}),rL=new n.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function CN(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let vN=(()=>{class i extends MN{constructor(e,t,r,d){super(),this._changeDetectorRef=e,this._elementRef=t,this._activeOptionChanges=Nt.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new n.vpe,this.opened=new n.vpe,this.closed=new n.vpe,this.optionActivated=new n.vpe,this._classList={},this.id="mat-autocomplete-"+yN++,this.inertGroups=d?.SAFARI||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption,this._autoSelectActiveOption=!!r.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=Ge(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=Ge(e)}set classList(e){this._classList=e&&e.length?function uw(i,a=/\s+/){const e=[];if(null!=i){const t=Array.isArray(i)?i:`${i}`.split(a);for(const r of t){const d=`${r}`.trim();d&&e.push(d)}}return e}(e).reduce((t,r)=>(t[r]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new bw(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const t=new wN(this,e);this.optionSelected.emit(t)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(rL),n.Y36(Qn))},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&(n.Gf(n.Rgc,7),n.Gf(_N,5)),2&e){let r;n.iGM(r=n.CRH())&&(t.template=r.first),n.iGM(r=n.CRH())&&(t.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[n.qOj]}),i})(),TN=(()=>{class i extends vN{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,_r,5),n.Suo(r,Fs,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.optionGroups=d),n.iGM(d=n.CRH())&&(t.options=d)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[n._Bn([{provide:S0,useExisting:i}]),n.qOj],ngContentSelectors:AN,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,bN,3,4,"ng-template"))},dependencies:[T.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),i})();const aL=new n.OlP("mat-autocomplete-scroll-strategy"),SN={provide:aL,deps:[rr],useFactory:function xN(i){return()=>i.scrollStrategies.reposition()}},EN={provide:ar,useExisting:(0,n.Gpc)(()=>sL),multi:!0};let DN=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p){this._element=e,this._overlay=t,this._viewContainerRef=r,this._zone=d,this._changeDetectorRef=u,this._dir=o,this._formField=s,this._document=l,this._viewportRuler=h,this._defaults=p,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Nt.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Le.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Rn(()=>{const m=this.autocomplete?this.autocomplete.options:null;return m?m.changes.pipe(vn(m),(0,An.w)(()=>(0,kn.T)(...m.map(g=>g.onSelectionChange)))):this._zone.onStable.pipe((0,ht.q)(1),(0,An.w)(()=>this.optionSelections))}),this._scrollStrategy=c}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=Ge(e)}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,kn.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,bt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,bt.h)(()=>this._overlayAttached)):(0,Ee.of)()).pipe((0,Mt.U)(e=>e instanceof Fw?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,kn.T)(zs(this._document,"click"),zs(this._document,"auxclick"),zs(this._document,"touchend")).pipe((0,bt.h)(e=>{const t=Or(e),r=this._formField?this._formField._elementRef.nativeElement:null,d=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&t!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(t))&&(!d||!d.contains(t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(t)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const t=e.keyCode,r=Di(e);if(27===t&&!r&&e.preventDefault(),this.activeOption&&13===t&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const d=this.autocomplete._keyManager.activeItem,u=38===t||40===t;9===t||u&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):u&&this._canOpen()&&this.openPanel(),(u||this.autocomplete._keyManager.activeItem!==d)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let t=e.target,r=t.value;"number"===t.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const e=this._zone.onStable.pipe((0,ht.q)(1)),t=this.autocomplete.options.changes.pipe((0,Wt.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Up.g)(0));return(0,kn.T)(e,t).pipe((0,An.w)(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,ht.q)(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(t??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const t=e?e.source:this._pendingAutoselectedOption;t&&(this._clearPreviousSelectedOption(t),this._assignOptionValue(t.value),this._onChange(t.value),this.autocomplete._emitSelectEvent(t),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(t=>{t!==e&&t.selected&&t.deselect()})}_attachOverlay(){let e=this._overlayRef;var t;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Oa(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new ad({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const t=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,d=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let u;u="above"===this.position?d:"below"===this.position?t:[...t,...d],e.withPositions(u)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}_scrollToOption(e){const t=this.autocomplete,r=Qh(e,t.options,t.optionGroups);if(0===e&&1===r)t._setScrollTop(0);else if(t.panel){const d=t.options.toArray()[e];if(d){const u=d._getHostElement(),c=Z1(u.offsetTop,u.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(c)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(t=>{var r;(27===t.keyCode&&!Di(t)||38===t.keyCode&&Di(t,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(null!==(r=this._valueBeforeAutoSelection)&&void 0!==r?r:""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),t.stopPropagation(),t.preventDefault())}),e.outsidePointerEvents().subscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(rr),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(aL),n.Y36(Hi,8),n.Y36(od,9),n.Y36(T.K0,8),n.Y36(Us),n.Y36(rL,8))},i.\u0275dir=n.lG2({type:i,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[n.TTD]}),i})(),sL=(()=>{class i extends DN{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&n.NdJ("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(d){return t._handleInput(d)})("keydown",function(d){return t._handleKeydown(d)})("click",function(){return t._handleClick()}),2&e&&n.uIk("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-owns",t.autocompleteDisabled||!t.panelOpen||null==t.autocomplete?null:t.autocomplete.id)("aria-haspopup",t.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[n._Bn([EN]),n.qOj]}),i})(),LN=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[SN],imports:[Bo,_u,wt,T.ez,da,_u,wt]}),i})(),HN=(()=>{class i{transform(e){return e?.value??"never"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"validateExpiration",type:i,pure:!0}),i})();function RN(i,a){1&i&&n._UZ(0,"th",17)}const PN=function(i){return{name:i}};function kN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",18)(1,"mat-checkbox",19),n.NdJ("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw();return n.KtG(r?c.selection.toggle(u):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.ALo(4,"validateExpiration"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.xi3(2,3,n.lcZ(3,6,t.selection.isSelected(e)),n.VKq(10,PN,e.entity.name)))("checked",t.selection.isSelected(e))("disabled","never"===n.lcZ(4,8,e.expirationAttribute))}}function ON(i,a){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"MEMBERSHIP_LIST.NAME"))," "))}function IN(i,a){if(1&i&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.entity.name)}}function BN(i,a){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))," "))}function NN(i,a){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.entity.description)}}function VN(i,a){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"MEMBERSHIP_LIST.EXPIRATION"))," "))}function jN(i,a){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.ALo(2,"validateExpiration"),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,e.expirationAttribute)," ")}}function FN(i,a){1&i&&n._UZ(0,"th",20)}function zN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",22)(1,"button",24),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.extend(d))}),n.ALo(2,"validateExpiration"),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"customTranslate"),n.qZA()()}if(2&i){const e=a.$implicit;n.xp6(1),n.Q6J("disabled","never"===n.lcZ(2,2,e.expirationAttribute)),n.xp6(2),n.hij(" ",n.lcZ(4,4,n.lcZ(5,6,"MEMBERSHIP_LIST.EXTEND"))," ")}}function UN(i,a){1&i&&n._UZ(0,"tr",25)}function qN(i,a){1&i&&n._UZ(0,"tr",26)}function YN(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",27),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}let oL=(()=>{class i{constructor(){this.members=[],this.searchString="",this.selection=new Yi(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.filterValue="",this.extendMembership=new n.vpe,this.pageSizeOptions=Gl}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"name":return e.entity.name;case"description":return"description"in e.entity?e.entity.description:"";case"expirationAttribute":return e?.expirationAttribute?.value??"never";default:return""}}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new $o(this.members),this.setDataSource()}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Zl(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>$l(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}extend(e){this.extendMembership.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(os,7),n.Gf(ps,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[n.TTD],decls:21,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","expirationAttribute","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["matColumnDef","expirationAttribute"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","extend"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell","","mat-sort-header",""],["color","accent","mat-flat-button","",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,RN,1,0,"th",4),n.YNc(5,kN,5,12,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,ON,4,5,"th",7),n.YNc(8,IN,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,BN,4,5,"th",7),n.YNc(11,NN,2,1,"td",10),n.BQk(),n.ynx(12,11),n.YNc(13,VN,4,5,"th",12),n.YNc(14,jN,3,3,"td",10),n.BQk(),n.ynx(15,13),n.YNc(16,FN,1,0,"th",7),n.YNc(17,zN,6,8,"td",10),n.BQk(),n.YNc(18,UN,1,0,"tr",14),n.YNc(19,qN,1,0,"tr",15),n.qZA()()(),n.YNc(20,YN,4,5,"perun-web-apps-alert",16)),2&e&&(n.Q6J("hidden",!t.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(16),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",!t.dataSource.filteredData.length))},dependencies:[T.O5,Ht,yi,io,cs,ro,ds,ls,ao,us,hs,so,oo,ic,ps,Ag,os,Ke,Xt,yg,HN]}),i})();function WN(i,a){if(1&i&&(n.TgZ(0,"mat-option",13),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.name," ")}}function GN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",7)(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"input",8),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.TgZ(7,"mat-autocomplete",9,10),n.NdJ("optionSelected",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.filterByVo(r))}),n.TgZ(9,"mat-option",11),n._uU(10),n.ALo(11,"translate"),n.ALo(12,"customTranslate"),n.qZA(),n.YNc(13,WN,2,2,"mat-option",12),n.ALo(14,"async"),n.qZA()()}if(2&i){const e=n.MAs(8),t=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,7,"GROUPS.SELECT_VO")),n.xp6(2),n.s9C("placeholder",n.lcZ(5,9,n.lcZ(6,11,"GROUPS.SELECT_VO"))),n.Q6J("formControl",t.myControl)("matAutocomplete",e),n.xp6(3),n.Q6J("displayWith",t.displayFn),n.xp6(3),n.Oqu(n.lcZ(11,13,n.lcZ(12,15,"GROUPS.ALL"))),n.xp6(3),n.Q6J("ngForOf",n.lcZ(14,17,t.filteredVos))}}function $N(i,a){1&i&&n._UZ(0,"mat-spinner",14)}function ZN(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",15),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"GROUPS.NO_GROUPS"))))}const JN=function(){return["name","description","expirationAttribute","extend"]};function QN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"h4",16),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"perun-web-apps-membership-list",17),n.NdJ("extendMembership",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.extendMembership(r))}),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,4,n.lcZ(4,6,"GROUPS.MEMBER_GROUPS"))),n.xp6(3),n.Q6J("members",e.userMemberships)("selection",e.selection)("displayedColumns",n.DdM(8,JN))}}const XN=function(){return["name","description"]};function KN(i,a){if(1&i&&(n.TgZ(0,"div",18)(1,"h4",16),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n._UZ(5,"perun-web-apps-membership-list",19),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,3,n.lcZ(4,5,"GROUPS.ADMINS_GROUPS"))),n.xp6(3),n.Q6J("members",e.adminMemberships)("displayedColumns",n.DdM(7,XN))}}let e3=(()=>{class i{constructor(e,t,r,d,u,c){this.usersService=e,this.memberService=t,this.groupService=r,this.store=d,this.vosManagerService=u,this.attributesManagerService=c,this.loading=!1,this.vos=[],this.myControl=new Js,this.selection=new Yi(!1,[]),this.displayedColumns=["id","name"],this.userMemberships=[],this.adminMemberships=[]}ngOnInit(){this.loading=!0,this.userId=this.store.getPerunPrincipal().userId,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=this.myControl.valueChanges.pipe(vn(""),(0,Mt.U)(t=>this._filter(t))),this.getAllGroups()})}getAllGroups(){this.loading=!0;let e=0,t=0;this.userMemberships=[],this.adminMemberships=[];const r=this.store.getPerunPrincipal().roles.SELF.Member;r.length?t=r.length:this.loading=!1,r.forEach(d=>{t--,this.groupService.getMemberGroups(d).subscribe(u=>{e+=u.length,this.loading=0===e&&0!==t,u.forEach(c=>{this.attributesManagerService.getMemberGroupAttributes(d,c.id).subscribe(o=>{e--,this.userMemberships.push({entity:c,expirationAttribute:o.find(s=>"groupMembershipExpiration"===s.friendlyName)}),this.loading=0!==e})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(d=>{d.forEach(u=>{this.adminMemberships.push({entity:u,expirationAttribute:null})})})}displayFn(e){return e?e.name:null}filterByVo(e){if("all"===e.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;const t=e.option.value;this.memberService.getMemberByUser(t.id,this.userId).subscribe(r=>{this.groupService.getMemberGroups(r.id).subscribe(d=>{let u=d.length;this.loading=0!==u,d.forEach(c=>{this.attributesManagerService.getMemberGroupAttributes(r.id,c.id).subscribe(o=>{u--,this.userMemberships.push({entity:c,expirationAttribute:o.find(s=>"groupMembershipExpiration"===s.friendlyName)}),this.loading=0!==u})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,t.id).subscribe(r=>{r.forEach(d=>{this.adminMemberships.push({entity:d,expirationAttribute:null})})})}}extendMembership(e){const t=this.store.getProperty("registrar_base_url"),r=e.entity,d=this.vos.find(u=>u.id===r.voId).shortName;window.location.href=`${t}?vo=${d}&group=${e.entity.shortName}`}_filter(e){const t="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.vos.filter(r=>r.name.toLowerCase().includes(t))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Er),n.Y36(zr),n.Y36(Ut),n.Y36(ws),n.Y36(jn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-groups-page"]],decls:10,vars:10,consts:[[1,"page-title","pt-2"],[1,"user-theme"],["class","mr-2 w-75",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"mr-2","w-75"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mr-auto","ml-auto"],["alert_type","warn"],[1,"page-subtitle"],[3,"members","selection","displayedColumns","extendMembership"],[1,"mt-5"],[3,"members","displayedColumns"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,GN,15,19,"mat-form-field",2),n.YNc(6,$N,1,0,"mat-spinner",3),n.YNc(7,ZN,4,5,"perun-web-apps-alert",4),n.YNc(8,QN,6,9,"div",5),n.YNc(9,KN,6,8,"div",6),n.qZA()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,6,n.lcZ(3,8,"GROUPS.TITLE"))),n.xp6(4),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.userMemberships.length&&!t.adminMemberships.length&&!t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading&&0!==t.userMemberships.length),n.xp6(1),n.Q6J("ngIf",!t.loading&&0!==t.adminMemberships.length))},dependencies:[T.sg,T.O5,yi,di,as,Fs,ji,_i,Ai,sr,Hn,TN,sL,oL,T.Ov,Ke,Xt]}),i})(),t3=(()=>{class i{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","perunWebAppsAutoFocus",""]]}),i})();function n3(i,a){if(1&i&&(n._UZ(0,"input",3),n.ALo(1,"translate")),2&i){const e=n.oxw();n.s9C("placeholder",n.lcZ(1,2,e.placeholder)),n.Q6J("formControl",e.formControl)}}function r3(i,a){if(1&i&&(n._UZ(0,"input",4),n.ALo(1,"translate")),2&i){const e=n.oxw();n.s9C("placeholder",n.lcZ(1,2,e.placeholder)),n.Q6J("formControl",e.formControl)}}let cf=(()=>{class i{constructor(){this.filter=new n.vpe,this.autoFocus=!1,this.formControl=new Js}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-form-field",0),n.YNc(1,n3,2,4,"input",1),n.YNc(2,r3,2,4,"input",2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",t.autoFocus),n.xp6(1),n.Q6J("ngIf",!t.autoFocus))},dependencies:[T.O5,_i,Ai,di,sr,ji,t3,Ke],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),i})();function a3(i,a){1&i&&(n.TgZ(0,"mat-icon",1),n.ALo(1,"translate"),n._uU(2," visibility\n"),n.qZA()),2&i&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let s3=(()=>{class i{constructor(){this.recentIds=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(e,t){1&e&&n.YNc(0,a3,3,3,"mat-icon",0),2&e&&n.Q6J("ngIf",t.recentIds.indexOf(t.id)>-1)},dependencies:[T.O5,zn,yr,Ke],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),i})();function o3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeStatus())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3,"check_circle_outline"),n.qZA()()}if(2&i){const e=n.oxw();n.s9C("matTooltip",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE")),n.Q2q("data-cy","",e.groupName,"-active")}}function l3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeStatus())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",5),n._uU(3,"block"),n.qZA()()}if(2&i){const e=n.oxw();n.s9C("matTooltip",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE")),n.Q2q("data-cy","",e.groupName,"-inactive")}}function c3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeStatus())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",6),n._uU(3,"report"),n.qZA()()}if(2&i){const e=n.oxw();n.hYB("matTooltip","",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",e.failureCause,"")}}function d3(i,a){1&i&&(n.TgZ(0,"span",7),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",8),n._uU(3,"autorenew"),n.qZA()()),2&i&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let u3=(()=>{class i{constructor(e){this.dialog=e,this.status="",this.groupName="",this.statusChange=new n.vpe}changeStatus(){const e=ln();e.width="500px",e.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(Jk,e).afterClosed().subscribe(r=>{r&&this.statusChange.emit()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",groupName:"groupName",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,o3,4,4,"span",1),n.YNc(2,l3,4,4,"span",1),n.YNc(3,c3,4,4,"span",1),n.YNc(4,d3,4,3,"span",2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf","ACTIVE"===t.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===t.status),n.xp6(1),n.Q6J("ngIf","FAILED"===t.status),n.xp6(1),n.Q6J("ngIf","PROCESSING"===t.status))},dependencies:[T.O5,zn,yr,Ke]}),i})(),h3=(()=>{class i{transform(e){if(null==e)return null;let r="";return e.forEach(function(d){r=r.concat(d.tagName)}),r}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"resourceTagsToString",type:i,pure:!0}),i})(),p3=(()=>{class i{transform(e,t){return t?`/organizations/${e.voId}/resources/${e.id}`:`/facilities/${e.facilityId}/resources/${e.id}`}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"getResourceRoute",type:i,pure:!0}),i})(),pT=(()=>{class i{constructor(e){this.tableCheckboxService=e}transform(e,t,r){return 0!==t&&(function L2(i){return"allObjectCount"in i}(e)?t===e.getData().length:function f3(i){return"_count"in i}(e)?this.tableCheckboxService.isAllSelectedPaginated(e,t,r):this.tableCheckboxService.isAllSelected(t,e,r))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(lA,16))},i.\u0275pipe=n.Yjl({name:"isAllSelected",type:i,pure:!0}),i})(),lL=(()=>{class i{transform(e){const t="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return e?t+"DESELECT_ALL":t+"SELECT_ALL"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"masterCheckboxLabel",type:i,pure:!0}),i})();function m3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-checkbox",27),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(3);return n.KtG(r?d.masterToggle():null)}),n.ALo(1,"translate"),n.ALo(2,"masterCheckboxLabel"),n.qZA()}if(2&i){const e=n.oxw(2).ngIf,t=n.oxw();n.Q6J("aria-label",n.lcZ(1,3,n.lcZ(2,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function g3(i,a){if(1&i&&(n.TgZ(0,"th",25),n.YNc(1,m3,3,7,"mat-checkbox",26),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",e.selection.isMultipleSelection())}}const _3=function(i){return{name:i}};function b3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",28)(1,"span",29),n.ALo(2,"translate"),n.TgZ(3,"mat-checkbox",30),n.NdJ("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.itemSelectionToggle(u):null)})("click",function(r){return r.stopPropagation()}),n.ALo(4,"translate"),n.ALo(5,"checkboxLabel"),n.qZA()()()}if(2&i){const e=a.$implicit,t=n.oxw(2);n.xp6(1),n.s9C("matTooltip",n.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!t.disableSelect(e)),n.xp6(2),n.Q2q("data-cy","",e.name,"-checkbox"),n.Q6J("aria-label",n.xi3(4,9,n.lcZ(5,12,t.selection.isSelected(e)),n.VKq(14,_3,e.name)))("checked",t.selection.isSelected(e))("disabled",t.disableSelect(e))}}function A3(i,a){1&i&&(n.ynx(0,22),n.YNc(1,g3,2,1,"th",23),n.YNc(2,b3,6,16,"td",24),n.BQk())}function y3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function w3(i,a){if(1&i&&(n.TgZ(0,"td",32),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.id)}}function M3(i,a){1&i&&n._UZ(0,"th",33)}function C3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._UZ(1,"perun-web-apps-recently-viewed-icon",35),n.qZA()),2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("recentIds",t.recentIds)("id",e.id)}}function v3(i,a){1&i&&n._UZ(0,"th",33)}function T3(i,a){1&i&&(n.TgZ(0,"mat-icon",37),n.ALo(1,"translate"),n._uU(2,"account_tree"),n.qZA()),2&i&&n.Q6J("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function x3(i,a){if(1&i&&(n.TgZ(0,"td",34),n.YNc(1,T3,3,3,"mat-icon",36),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Q6J("ngIf",e.sourceGroupId)}}function S3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function E3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.uIk("data-cy",e.name),n.xp6(1),n.hij(" ",e.name," ")}}function D3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function L3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.vo.name)}}function H3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function R3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.voId)}}function P3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function k3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",34)(1,"perun-web-apps-group-resource-status",38),n.NdJ("mouseenter",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.disabledRouting=!0)})("mouseleave",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.disabledRouting=r.disableRouting)})("statusChange",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.refreshTable.emit())}),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("theme","group-theme")("resourceId",e.id)("groupId",t.groupId)("failureCause",e.failureCause)("status",e.status)}}function O3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function I3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.facility.name)}}function B3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function N3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.facilityId)}}function V3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function j3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.ALo(2,"resourceTagsToString"),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,e.resourceTags)," ")}}function F3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function z3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.description)}}function U3(i,a){1&i&&n._UZ(0,"tr",39)}const q3=function(i){return[i]};function Y3(i,a){if(1&i&&(n._UZ(0,"tr",40),n.ALo(1,"getResourceRoute"),n.ALo(2,"getResourceRoute")),2&i){const e=a.$implicit,t=n.oxw();n.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disabledRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",n.VKq(12,q3,t.disabledRouting?null:n.xi3(1,6,e,t.routingVo)))("routerLink",t.disabledRouting?null:n.xi3(2,9,e,t.routingVo))}}function W3(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",41),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function G3(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",41),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}const $3=function(i){return{all:i}};let Z3=(()=>{class i{constructor(e,t){this.guiAuthResolver=e,this.tableCheckbox=t,this.resources=[],this.selection=new Yi(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=Gl,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new n.vpe,this.allSelected=new n.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(r,d)=>i.getDataForColumn(r,d,this.recentIds),this.canBeSelected=r=>!this.disableSelect(r)}set matSort(e){this.sort=e}static getDataForColumn(e,t,r){switch(t){case"id":return e.id.toString();case"vo":return e.vo.name;case"name":return e.name;case"facility":return e.facility.name;case"description":return e.description;case"recent":return r&&r.includes(e.id)?"#".repeat(r.indexOf(e.id)):e.name;case"tags":{if(!e.resourceTags)return e[t];let u="";return e.resourceTags.forEach(function(c){u=u.concat(c.tagName)}),u}case"status":return e.status;case"uuid":return e.uuid;default:return e[t]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.setDataSource(),this.setAuth()}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,this.getDataForColumnFun),e)}setDataSource(){this.dataSource||(this.dataSource=new $o,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(e,t)=>Zl(e,t,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(e,t)=>$l(e,t,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const e=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected);return this.allSelected.emit(e),e}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}setAuth(){const e=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((t,r)=>t&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",e.concat([r])),!0),this.addAuth=this.selection.selected.reduce((t,r)=>t&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",e.concat([r])),!0)}itemSelectionToggle(e){this.selection.toggle(e),this.setAuth()}disableSelect(e){return this.resourcesToDisableCheckbox.has(e.id)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Cn),n.Y36(lA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(os,7),n.Gf(ps,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[n.TTD],decls:42,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,A3,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,y3,3,3,"th",5),n.YNc(7,w3,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,M3,1,0,"th",8),n.YNc(10,C3,2,2,"td",9),n.BQk(),n.ynx(11,10),n.YNc(12,v3,1,0,"th",8),n.YNc(13,x3,2,1,"td",9),n.BQk(),n.ynx(14,11),n.YNc(15,S3,3,3,"th",5),n.YNc(16,E3,2,2,"td",9),n.BQk(),n.ynx(17,12),n.YNc(18,D3,3,3,"th",5),n.YNc(19,L3,2,1,"td",9),n.BQk(),n.ynx(20,13),n.YNc(21,H3,3,3,"th",5),n.YNc(22,R3,2,1,"td",9),n.BQk(),n.ynx(23,14),n.YNc(24,P3,3,3,"th",5),n.YNc(25,k3,2,5,"td",9),n.BQk(),n.ynx(26,15),n.YNc(27,O3,3,3,"th",5),n.YNc(28,I3,2,1,"td",9),n.BQk(),n.ynx(29,16),n.YNc(30,B3,3,3,"th",5),n.YNc(31,N3,2,1,"td",9),n.BQk(),n.ynx(32,17),n.YNc(33,V3,3,3,"th",5),n.YNc(34,j3,3,3,"td",9),n.BQk(),n.ynx(35,18),n.YNc(36,F3,3,3,"th",5),n.YNc(37,z3,2,1,"td",9),n.BQk(),n.YNc(38,U3,1,0,"tr",19),n.YNc(39,Y3,3,14,"tr",20),n.qZA()()(),n.YNc(40,W3,3,3,"perun-web-apps-alert",21),n.YNc(41,G3,3,3,"perun-web-apps-alert",21)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.resources.length),n.xp6(1),n.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(14,$3,n.Dn7(4,10,t.dataSource,t.selection.selected.length,t.canBeSelected))),n.xp6(35),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resources.length),n.xp6(1),n.Q6J("ngIf",0===t.resources.length))},dependencies:[T.O5,ic,io,cs,ro,ds,ls,ao,us,hs,so,oo,oa,ps,Ag,yi,zn,yr,os,nL,s3,u3,EA,Ke,h3,p3,pT,yg,lL],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),i})(),J3=0;const fT=new n.OlP("CdkAccordion");let Q3=(()=>{class i{constructor(){this._stateChanges=new Le.x,this._openCloseAllActions=new Le.x,this.id="cdk-accordion-"+J3++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Ge(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:fT,useExisting:i}]),n.TTD]}),i})(),X3=0,K3=(()=>{class i{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=Nt.w0.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-"+X3++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((d,u)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===u&&this.id!==d&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Ge(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Ge(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(fT,12),n.Y36(n.sBO),n.Y36(n_))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:fT,useValue:void 0}])]}),i})(),eV=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const tV=["body"];function nV(i,a){}const iV=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],rV=["mat-expansion-panel-header","*","mat-action-row"];function aV(i,a){if(1&i&&n._UZ(0,"span",2),2&i){const e=n.oxw();n.Q6J("@indicatorRotate",e._getExpandedState())}}const sV=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],oV=["mat-panel-title","mat-panel-description","*"],mT=new n.OlP("MAT_ACCORDION"),cL="225ms cubic-bezier(0.4,0.0,0.2,1)",dL={indicatorRotate:En("indicatorRotate",[ut("collapsed, void",je({transform:"rotate(0deg)"})),ut("expanded",je({transform:"rotate(180deg)"})),Ot("expanded <=> collapsed, void => collapsed",Rt(cL))]),bodyExpansion:En("bodyExpansion",[ut("collapsed, void",je({height:"0px",visibility:"hidden"})),ut("expanded",je({height:"*",visibility:"visible"})),Ot("expanded <=> collapsed, void => collapsed",Rt(cL))])},uL=new n.OlP("MAT_EXPANSION_PANEL");let wg=(()=>{class i{constructor(e,t){this._template=e,this._expansionPanel=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(uL,8))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","matExpansionPanelContent",""]]}),i})(),lV=0;const hL=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Mg=(()=>{class i extends K3{constructor(e,t,r,d,u,c,o){super(e,t,r),this._viewContainerRef=d,this._animationMode=c,this._hideToggle=!1,this.afterExpand=new n.vpe,this.afterCollapse=new n.vpe,this._inputChanges=new Le.x,this._headerId="mat-expansion-panel-header-"+lV++,this._bodyAnimationDone=new Le.x,this.accordion=e,this._document=u,this._bodyAnimationDone.pipe(qc((s,l)=>s.fromState===l.fromState&&s.toState===l.toState)).subscribe(s=>{"void"!==s.fromState&&("expanded"===s.toState?this.afterExpand.emit():"collapsed"===s.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Ge(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(vn(null),(0,bt.h)(()=>this.expanded&&!this._portal),(0,ht.q)(1)).subscribe(()=>{this._portal=new Oa(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(mT,12),n.Y36(n.sBO),n.Y36(n_),n.Y36(n.s_b),n.Y36(T.K0),n.Y36(n.QbO,8),n.Y36(hL,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,wg,5),2&e){let d;n.iGM(d=n.CRH())&&(t._lazyContent=d.first)}},viewQuery:function(e,t){if(1&e&&n.Gf(tV,5),2&e){let r;n.iGM(r=n.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&n.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n._Bn([{provide:mT,useValue:void 0},{provide:uL,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:rV,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(n.F$t(iV),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(d){return t._bodyAnimationDone.next(d)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,nV,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),n.uIk("aria-labelledby",t._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",t._portal))},dependencies:[rd],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[dL.bodyExpansion]},changeDetection:0}),i})();class cV{}const dV=Vs(cV);let Cg=(()=>{class i extends dV{constructor(e,t,r,d,u,c,o){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=d,this._animationMode=c,this._parentChangeSubscription=Nt.w0.EMPTY;const s=e.accordion?e.accordion._stateChanges.pipe((0,bt.h)(l=>!(!l.hideToggle&&!l.togglePosition))):Xi.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,kn.T)(e.opened,e.closed,s,e._inputChanges.pipe((0,bt.h)(l=>!!(l.hideToggle||l.disabled||l.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,bt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),u&&(this.expandedHeight=u.expandedHeight,this.collapsedHeight=u.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Di(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Mg,1),n.Y36(n.SBq),n.Y36($r),n.Y36(n.sBO),n.Y36(hL,8),n.Y36(n.QbO,8),n.$8M("tabindex"))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._toggle()})("keydown",function(d){return t._keydown(d)}),2&e&&(n.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),n.Udp("height",t._getHeaderHeight()),n.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[n.qOj],ngContentSelectors:oV,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(n.F$t(sV),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,aV,1,1,"span",1)),2&e&&(n.xp6(4),n.Q6J("ngIf",t._showToggle()))},dependencies:[T.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[dL.indicatorRotate]},changeDetection:0}),i})(),BA=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),i})(),NA=(()=>{class i extends Q3{constructor(){super(...arguments),this._ownHeaders=new n.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Ge(e)}ngAfterContentInit(){this._headers.changes.pipe(vn(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new m0(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,Cg,5),2&e){let d;n.iGM(d=n.CRH())&&(t._headers=d)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[n._Bn([{provide:mT,useExisting:i}]),n.qOj]}),i})(),gT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,wt,eV,Ws]}),i})();function uV(i,a){1&i&&n._UZ(0,"mat-spinner",8)}const hV=function(){return["name","description"]};function pV(i,a){if(1&i&&n._UZ(0,"perun-web-apps-resources-list",9),2&i){const e=n.oxw(3);n.Q6J("resources",e.resources)("displayedColumns",n.DdM(3,hV))("disableRouting",!0)}}function fV(i,a){if(1&i&&(n.YNc(0,uV,1,0,"mat-spinner",6),n.YNc(1,pV,1,4,"perun-web-apps-resources-list",7)),2&i){const e=n.oxw(2);n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",!e.loading)}}function mV(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",4),n.NdJ("opened",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.getMemberData(d))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.qZA()(),n.YNc(4,fV,2,2,"ng-template",5),n.qZA()}if(2&i){const e=a.$implicit;n.xp6(3),n.hij(" ",e.name," ")}}let gV=(()=>{class i{constructor(e,t,r,d){this.usersManagerService=e,this.membersManagerService=t,this.resourcesManagerService=r,this.storage=d,this.resources=[],this.filteredVos=[]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=e})}getMemberData(e){this.loading=!0,this.membersManagerService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{this.resources=r,this.loading=!1})})}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Er),n.Y36(ia),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-services-page"]],decls:10,vars:11,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"resources","displayedColumns","disableRouting",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"resources","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.TgZ(8,"mat-accordion"),n.YNc(9,mV,5,1,"mat-expansion-panel",3),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,3,n.lcZ(3,5,"SERVICES.TITLE"))),n.xp6(4),n.Q6J("placeholder",n.lcZ(6,7,n.lcZ(7,9,"SERVICES.FILTER"))),n.xp6(4),n.Q6J("ngForOf",t.filteredVos))},dependencies:[T.sg,T.O5,cf,Z3,NA,Mg,Cg,BA,wg,Hn,Ke,Xt]}),i})();function _V(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-immediate-filter",5),n.NdJ("filter",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.applyFilter(r))}),n.qZA()}2&i&&n.Q6J("placeholder","ORGANIZATIONS.FILTER")}function bV(i,a){1&i&&n._UZ(0,"mat-spinner",6)}const AV=function(){return["name","expirationAttribute","extend"]};function yV(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"perun-web-apps-membership-list",11),n.NdJ("extendMembership",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d.extendMembership(r))}),n.qZA()()}if(2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("members",e.userMemberships)("selection",e.selection)("filterValue",e.filterValue)("displayedColumns",n.DdM(4,AV))}}function wV(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",12),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function MV(i,a){if(1&i&&(n.TgZ(0,"div",7)(1,"h1",8),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.YNc(5,yV,2,5,"div",9),n.YNc(6,wV,4,5,"perun-web-apps-alert",10),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,3,n.lcZ(4,5,"ORGANIZATIONS.IS_MEMBER"))),n.xp6(3),n.Q6J("ngIf",0!==e.userMemberships.length),n.xp6(1),n.Q6J("ngIf",0===e.userMemberships.length)}}function CV(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",12),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}const vV=function(){return["name"]};function TV(i,a){if(1&i&&n._UZ(0,"perun-web-apps-membership-list",14),2&i){const e=n.oxw(2);n.Q6J("members",e.adminMemberships)("filterValue",e.filterValue)("displayedColumns",n.DdM(3,vV))}}function xV(i,a){if(1&i&&(n.TgZ(0,"div",7)(1,"h1",8),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.YNc(5,CV,4,5,"perun-web-apps-alert",10),n.YNc(6,TV,1,4,"perun-web-apps-membership-list",13),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,3,n.lcZ(4,5,"ORGANIZATIONS.IS_ADMIN"))),n.xp6(3),n.Q6J("ngIf",!e.adminMemberships.length),n.xp6(1),n.Q6J("ngIf",e.adminMemberships.length)}}let SV=(()=>{class i{constructor(e,t,r){this.usersService=e,this.store=t,this.membersService=r,this.filterValue="",this.selection=new Yi(!1,[]),this.userMemberships=[],this.adminMemberships=[],this.vosCount=0}ngOnInit(){this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.user.id,this.refreshTable()}refreshTable(){this.loading=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(t=>{this.vosCount=e.length+t.length,this.fillMemberships(e,this.userMemberships),this.fillMemberships(t,this.adminMemberships)})})}applyFilter(e){this.filterValue=e}isEverythingLoaded(){this.vosCount--,this.loading=0!==this.vosCount}extendMembership(e){const t=this.store.getProperty("registrar_base_url");window.location.href=`${t}?vo=${e.entity.shortName}`}fillMemberships(e,t){this.membersService.getMembersByUser(this.userId).subscribe(r=>{e.forEach(d=>{const u=r.find(c=>c.voId===d.id);u?this.membersService.getRichMemberWithAttributes(u.id).subscribe(c=>{const o=c.memberAttributes.find(s=>"membershipExpiration"===s.friendlyName);t.push({entity:d,expirationAttribute:o}),this.isEverythingLoaded()}):(t.push({entity:d,expirationAttribute:null}),this.isEverythingLoaded())})})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Ut),n.Y36(Er))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-vos-page"]],decls:9,vars:9,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-5",4,"ngIf"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-5"],[1,"page-subtitle"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"members","selection","filterValue","displayedColumns","extendMembership"],["alert_type","warn"],[3,"members","filterValue","displayedColumns",4,"ngIf"],[3,"members","filterValue","displayedColumns"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,_V,1,1,"perun-web-apps-immediate-filter",2),n.YNc(6,bV,1,0,"mat-spinner",3),n.YNc(7,MV,7,7,"div",4),n.YNc(8,xV,7,7,"div",4),n.qZA()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,n.lcZ(3,7,"ORGANIZATIONS.TITLE"))),n.xp6(4),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,cf,yi,Hn,oL,Ke,Xt]}),i})(),EV=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n._UZ(1,"router-outlet"),n.qZA())},dependencies:[Wr]}),i})(),DV=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t,this.password=""}ngOnInit(){this.password=this.data.password}onClose(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-generated-password-dialog"]],decls:20,vars:22,consts:[["mat-dialog-title","",1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"user-theme"],["disabled","",1,"center-text",3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"p"),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n.TgZ(9,"label"),n._UZ(10,"input",2),n.qZA()(),n.TgZ(11,"div",3)(12,"button",4),n.NdJ("click",function(){return t.onClose()}),n._uU(13),n.ALo(14,"translate"),n.ALo(15,"customTranslate"),n.qZA(),n.TgZ(16,"button",5),n._uU(17),n.ALo(18,"translate"),n.ALo(19,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,6,n.lcZ(3,8,"DIALOGS.SHOW_PASSWORD.TITLE")),"\n"),n.xp6(5),n.Oqu(n.lcZ(7,10,n.lcZ(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),n.xp6(4),n.Q6J("value",t.password),n.xp6(3),n.hij(" ",n.lcZ(14,14,n.lcZ(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),n.xp6(3),n.Q6J("cdkCopyToClipboard",t.password),n.xp6(1),n.hij(" ",n.lcZ(18,18,n.lcZ(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},dependencies:[Ht,Xn,ii,Un,Jv,Ke,Xt],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),i})();function LV(i,a){1&i&&n._UZ(0,"mat-spinner",7)}function HV(i,a){1&i&&n._UZ(0,"th",16)}function RV(i,a){if(1&i&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e)}}function PV(i,a){1&i&&n._UZ(0,"tr",18)}function kV(i,a){1&i&&n._UZ(0,"tr",19)}function OV(i,a){if(1&i&&(n.TgZ(0,"div",8)(1,"p"),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"div",9),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n.TgZ(9,"table",10),n.ynx(10,11),n.YNc(11,HV,1,0,"th",12),n.YNc(12,RV,2,1,"td",13),n.BQk(),n.YNc(13,PV,1,0,"tr",14),n.YNc(14,kV,1,0,"tr",15),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,5,n.lcZ(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),n.xp6(4),n.hij(" ",n.lcZ(7,9,n.lcZ(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),n.xp6(3),n.Q6J("dataSource",e.dataSource),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}let IV=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new $o(this.data.description)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(li))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-remove-alt-password-dialog"]],decls:16,vars:17,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"user-theme"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","description"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,LV,1,0,"mat-spinner",2),n.qZA(),n.YNc(6,OV,15,13,"div",3),n.TgZ(7,"div",4)(8,"button",5),n.NdJ("click",function(){return t.onCancel()}),n._uU(9),n.ALo(10,"translate"),n.ALo(11,"customTranslate"),n.qZA(),n.TgZ(12,"button",6),n.NdJ("click",function(){return t.onSubmit()}),n._uU(13),n.ALo(14,"translate"),n.ALo(15,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,n.lcZ(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),n.xp6(4),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(3),n.hij(" ",n.lcZ(10,9,n.lcZ(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),n.xp6(4),n.hij(" ",n.lcZ(14,13,n.lcZ(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},dependencies:[T.O5,Ht,Xn,ii,Un,io,cs,ro,ds,ls,ao,us,hs,so,oo,Hn,Ke,Xt]}),i})();function BV(i,a){1&i&&n._UZ(0,"th",12)}const NV=function(i){return{name:i}};function VV(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",13)(1,"mat-checkbox",14),n.NdJ("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw();return n.KtG(r?c.selection.toggle(u):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(7,NV,e)))("checked",t.selection.isSelected(e))}}function jV(i,a){if(1&i&&(n.TgZ(0,"th",15),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.headerColumnText)}}function FV(i,a){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e)}}function zV(i,a){1&i&&n._UZ(0,"tr",17)}function UV(i,a){1&i&&n._UZ(0,"tr",18)}function qV(i,a){if(1&i&&(n.TgZ(0,"perun-web-apps-alert",19),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",e.alertText,"\n")}}let pL=(()=>{class i{constructor(){this.values=[],this.selection=new Yi(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"]}static getExportDataForColumn(e){return e}ngOnChanges(){this.values=this.values?this.values:[],this.dataSource=new $o(this.values),this.setDataSource()}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,i.getExportDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getExportDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.setDataSource()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-string-list"]],viewQuery:function(e,t){if(1&e&&n.Gf(os,7),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first)}},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[n.TTD],decls:12,vars:6,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","exportDisplayedData","exportAllData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pl-3","mat-header-cell","",4,"matHeaderCellDef"],["class","truncate pl-3","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","",1,"pl-3"],["mat-cell","",1,"truncate","pl-3"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,BV,1,0,"th",4),n.YNc(5,VV,4,9,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,jV,2,1,"th",7),n.YNc(8,FV,2,1,"td",8),n.BQk(),n.YNc(9,zV,1,0,"tr",9),n.YNc(10,UV,1,0,"tr",10),n.qZA()()(),n.YNc(11,qV,2,1,"perun-web-apps-alert",11)),2&e&&(n.Q6J("hidden",!t.values.length),n.xp6(1),n.Q6J("dataLength",t.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(7),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.values.length))},dependencies:[T.O5,yi,io,cs,ro,ds,ls,ao,us,hs,so,oo,ic,os,Ke,yg],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),i})();function YV(i,a){if(1&i&&n._UZ(0,"perun-web-apps-string-list",10),2&i){const e=n.oxw();n.Q6J("values",e.displayedValues)("selection",e.selection)("alertText",e.alertText)("headerColumnText",e.headerColumnText)}}function WV(i,a){1&i&&n._UZ(0,"mat-spinner",11)}let GV=(()=>{class i{constructor(e,t,r,d,u){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=d,this.usersManagerService=u,this.altPasswordCtrl=new Js(null,[bi.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new Yi(!1,[]),d.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(c=>this.removeDialogDescription=c),d.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),d.get("ALERTS.NO_ALT_PASSWORDS").subscribe(c=>this.alertText=c),d.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(c=>this.headerColumnText=c)}ngOnInit(){this.getAltPasswords()}createPassword(){const e=this.generatePassword();this.usersManagerService.createAlternativePassword({user:this.userId,description:this.altPasswordCtrl.value,loginNamespace:"einfra",password:e}).subscribe(()=>{const t=ln();t.width="600px",t.data={password:e},this.dialog.open(DV,t),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let r="",d=0;const u=t.length;for(;d<16;++d)r+=t.charAt(Math.random()*u);return r.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),r}alreadyContainsValue(e){return this.passwordDescriptions.has(e)}removeAltPasswords(){const e=ln();e.width="600px",e.data={description:this.selection.selected,passwordId:this.altPasswordsAttributeValue.get(this.selection.selected[0]),userId:this.userId},this.dialog.open(IV,e).afterClosed().subscribe(r=>{r&&(this.getAltPasswords(),this.selection.clear())})}getAltPasswords(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(e=>{if(e.value){this.altPasswordsAttributeValue=new Map(Object.entries(e.value));const t=this.altPasswordsAttributeValue.keys();this.passwordDescriptions=new Set(t),this.displayedValues=Array.from(this.passwordDescriptions.values())}else this.displayedValues=[];this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(jn),n.Y36(on),n.Y36(sn),n.Y36(li))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-alternative-passwords"]],decls:28,vars:35,consts:[[1,"ml-3"],[1,"page-title"],[1,"input-width"],["matInput","","type","text",3,"placeholder","formControl"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["alert_type","info"],[1,"page-subtitle"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"values","selection","alertText","headerColumnText"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"mat-form-field",2)(6,"label",2),n._UZ(7,"input",3),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA()(),n.TgZ(10,"button",4),n.NdJ("click",function(){return t.createPassword()}),n._uU(11),n.ALo(12,"translate"),n.ALo(13,"customTranslate"),n.qZA(),n.TgZ(14,"perun-web-apps-alert",5),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA(),n.TgZ(18,"h1",6),n._uU(19),n.ALo(20,"translate"),n.ALo(21,"customTranslate"),n.qZA(),n.TgZ(22,"button",7),n.NdJ("click",function(){return t.removeAltPasswords()}),n._uU(23),n.ALo(24,"translate"),n.ALo(25,"customTranslate"),n.qZA(),n.YNc(26,YV,1,4,"perun-web-apps-string-list",8),n.YNc(27,WV,1,0,"mat-spinner",9),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,11,n.lcZ(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),n.xp6(5),n.s9C("placeholder",n.lcZ(8,15,n.lcZ(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),n.Q6J("formControl",t.altPasswordCtrl),n.xp6(3),n.Q6J("disabled",!t.altPasswordCtrl.valid||t.alreadyContainsValue(t.altPasswordCtrl.value)),n.xp6(1),n.hij(" ",n.lcZ(12,19,n.lcZ(13,21,"ALT_PASSWORDS.GENERATE"))," "),n.xp6(4),n.Oqu(n.lcZ(16,23,n.lcZ(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),n.xp6(4),n.Oqu(n.lcZ(20,27,n.lcZ(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),n.xp6(3),n.Q6J("disabled",t.selection.isEmpty()),n.xp6(1),n.hij(" ",n.lcZ(24,31,n.lcZ(25,33,"ALT_PASSWORDS.REMOVE"))," "),n.xp6(3),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading))},dependencies:[T.O5,Ht,yi,di,ji,_i,Ai,sr,Hn,pL,Ke,Xt]}),i})();function $V(i,a){if(1&i&&(n.TgZ(0,"mat-list-item",1)(1,"mat-icon"),n._uU(2),n.qZA(),n.TgZ(3,"p",2),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA()()),2&i){const e=a.$implicit;n.Q6J("routerLink",e.url),n.xp6(2),n.Oqu(e.icon),n.xp6(2),n.Oqu(n.lcZ(5,3,n.lcZ(6,5,e.label)))}}let ZV=(()=>{class i{constructor(e){this.storeService=e,this.items=[]}ngOnInit(){this.initItems();const e=this.storeService.getProperty("displayed_tabs");this.items=this.items.filter(t=>e.includes(t.tabName))}initItems(){this.items=[{icon:"lock_open",url:"/profile/settings/altPasswords",label:"SETTINGS.ALTERNATIVE_PASSWORDS",tabName:"alt_passwords"},{icon:"admin_panel_settings",url:"/profile/settings/auth",label:"SETTINGS.AUTHENTICATION",tabName:"auth"},{icon:"storage",url:"/profile/settings/dataQuotas",label:"SETTINGS.DATA_QUOTAS",tabName:"data_quotas"},{icon:"face",url:"/profile/settings/localAccount",label:"SETTINGS.LOCAL_ACCOUNT",tabName:"local_acc"},{icon:"unsubscribe",url:"/profile/settings/mailingLists",label:"SETTINGS.MAILING_LISTS",tabName:"opt_out"},{icon:"chevron_right",url:"/profile/settings/prefShells",label:"SETTINGS.PREFERRED_SHELLS",tabName:"pref_shells"},{icon:"group",url:"/profile/settings/prefGroupNames",label:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES",tabName:"pref_group_names"},{icon:"lock_open",url:"/profile/settings/sambaPassword",label:"SETTINGS.SAMBA_PASSWORD",tabName:"samba"},{icon:"vpn_key",url:"/profile/settings/sshKeys",label:"SETTINGS.SSH_KEYS",tabName:"ssh_keys"},{icon:"lock",url:"/profile/settings/passwordReset",label:"SETTINGS.PASSWORD_RESET",tabName:"password_reset"}]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-overview"]],decls:2,vars:1,consts:[["matRipple","","queryParamsHandling","merge",3,"routerLink",4,"ngFor","ngForOf"],["matRipple","","queryParamsHandling","merge",3,"routerLink"],[1,"ml-2","mt-auto","mb-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-list"),n.YNc(1,$V,7,7,"mat-list-item",0),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngForOf",t.items))},dependencies:[T.sg,zn,tT,DA,oa,Jr,Ke,Xt],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-hover)!important;cursor:pointer}"]}),i})();function JV(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",5),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function QV(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-option",11),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(3);return n.KtG(r.changeValue())}),n._uU(1),n.qZA()}if(2&i){const e=a.$implicit;n.Q6J("value",e),n.xp6(1),n.Oqu(e)}}function XV(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-list-item")(1,"mat-form-field",7)(2,"mat-select",8),n.NdJ("valueChange",function(r){const u=n.CHM(e).index,c=n.oxw(2);return n.KtG(c.shells[u]=r)}),n.YNc(3,QV,2,2,"mat-option",9),n.qZA()(),n.TgZ(4,"button",10),n.NdJ("click",function(){const d=n.CHM(e).index,u=n.oxw(2);return n.KtG(u.removeShell(d))}),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA()()}if(2&i){const e=a.index,t=n.oxw(2);n.xp6(2),n.Q6J("value",t.shells[e]),n.xp6(1),n.Q6J("ngForOf",t.defaultShells),n.xp6(2),n.hij(" ",n.lcZ(6,3,n.lcZ(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON"))," ")}}function KV(i,a){if(1&i&&(n.TgZ(0,"mat-list"),n.YNc(1,XV,8,7,"mat-list-item",6),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngForOf",e.shells)}}let ej=(()=>{class i{constructor(e,t,r,d){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=d,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],d.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(u=>this.removeDialogDescription=u),d.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(u=>this.removeDialogTitle=u)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e)}),this.getAttribute()}addShell(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{})}removeShell(e){const t=ln();t.width="600px",t.data={valueIndex:e,values:[this.shells[e]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(SA,t).afterClosed().subscribe(d=>{d&&this.getAttribute()})}changeValue(){this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe({next:()=>{this.getAttribute()},error:()=>this.loading=!1})}getAttribute(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(e=>{this.prefShellsAttribute=e,this.shells=this.prefShellsAttribute?.value??[],this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(jn),n.Y36(on),n.Y36(sn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-preferred-shells"]],decls:14,vars:17,consts:[[1,"page-title"],["alert_type","info"],["mat-flat-button","","color","accent",3,"click"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],["alert_type","warn"],[4,"ngFor","ngForOf"],[1,"w-100"],[3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[3,"value","click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"perun-web-apps-alert",1),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.TgZ(8,"button",2),n.NdJ("click",function(){return t.addShell()}),n._uU(9),n.ALo(10,"translate"),n.ALo(11,"customTranslate"),n.qZA(),n.YNc(12,JV,4,5,"perun-web-apps-alert",3),n.YNc(13,KV,2,1,"mat-list",4)),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,n.lcZ(3,7,"PREFERRED_SHELLS.TITLE"))),n.xp6(4),n.hij(" ",n.lcZ(6,9,n.lcZ(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),n.xp6(4),n.hij(" ",n.lcZ(10,13,n.lcZ(11,15,"PREFERRED_SHELLS.NEW_BUTTON")),"\n"),n.xp6(3),n.Q6J("ngIf",!t.loading&&0===t.shells.length),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.sg,T.O5,tT,DA,Ht,yi,di,md,Fs,Ke,Xt]}),i})();function tj(i,a){1&i&&n._UZ(0,"mat-spinner",4)}function nj(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",5)(2,"mat-form-field",6)(3,"label",6),n._UZ(4,"input",7),n.qZA()()(),n.TgZ(5,"div",8)(6,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA(),n.TgZ(10,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(11),n.ALo(12,"translate"),n.ALo(13,"customTranslate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(4),n.Q6J("formControl",e.inputControl),n.xp6(3),n.hij(" ",n.lcZ(8,4,n.lcZ(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",!e.inputControl.valid||e.groups.includes(e.inputControl.value)),n.xp6(1),n.hij(" ",n.lcZ(12,8,n.lcZ(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}let ij=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.groups=[]}ngOnInit(){this.inputControl=new Js(null,bi.required),this.groups=this.data.groups}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.data.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${this.data.namespace}`).subscribe(e=>{const t=e?.value??[];t.push(this.inputControl.value),e.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:e}).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(jn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-unix-group-dialog"]],decls:7,vars:7,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","","required","",1,"w-100",3,"formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,tj,1,0,"mat-spinner",2),n.YNc(6,nj,14,12,"div",3),n.qZA()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,3,n.lcZ(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),n.xp6(4),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,Ht,di,Xn,ii,Un,ji,_i,Ai,Nr,sr,Hn,Ke,Xt]}),i})();function rj(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",2)(1,"h4"),n._uU(2),n.qZA(),n.TgZ(3,"button",3),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.addGroupName(d))}),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA(),n.TgZ(7,"button",4),n.NdJ("click",function(){const r=n.CHM(e),d=r.$implicit,u=r.index,c=n.oxw();return n.KtG(c.removeGroupName(d,u))}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n._UZ(10,"perun-web-apps-string-list",5),n.qZA()}if(2&i){const e=a.$implicit,t=a.index,r=n.oxw();n.xp6(2),n.Oqu(e),n.xp6(2),n.hij(" ",n.lcZ(5,8,n.lcZ(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))," "),n.xp6(3),n.Q6J("disabled",0===r.selectionList[t].selected.length),n.xp6(1),n.hij(" ",n.lcZ(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")," "),n.xp6(2),n.Q6J("values",r.groupNames.get(e))("selection",r.selectionList[t])("alertText",r.alertText)("headerColumnText",r.headerColumnText)}}let aj=(()=>{class i{constructor(e,t,r,d){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=d,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],d.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(u=>this.removeDialogDescription=u),d.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(u=>this.removeDialogTitle=u),d.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(u=>this.alertText=u),d.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(u=>this.headerColumnText=u)}ngOnInit(){this.namespaces=this.store.getProperty("preferred_unix_group_names"),this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(e=>this.alertText=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.initSelection(),this.namespaces.forEach(e=>{this.getAttribute(e)})}initSelection(){this.namespaces.forEach(()=>{this.selectionList.push(new Yi(!0,[]))})}getAttribute(e){this.attributesManagerService.getUserAttributeByName(this.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${e}`).subscribe(t=>{this.groupNames.set(e,t?.value??[]),this.groupNameAttributes.push(t)})}addGroupName(e){const t=this.groupNames.get(e),r=ln();r.width="400px",r.data={groups:t,namespace:e,userId:this.userId},this.dialog.open(ij,r).afterClosed().subscribe(u=>{u&&this.getAttribute(e)})}removeGroupName(e,t){const r=ln();r.width="600px",r.data={values:this.selectionList[t].selected,attribute:this.groupNameAttributes[t],userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(SA,r).afterClosed().subscribe(u=>{u&&(this.selectionList[t].clear(),this.getAttribute(e))})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(jn),n.Y36(on),n.Y36(sn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-preferred-unix-group-names"]],decls:5,vars:6,consts:[[1,"page-title"],["class","mt-4",4,"ngFor","ngForOf"],[1,"mt-4"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,rj,11,14,"div",1)),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,2,n.lcZ(3,4,"PREFERRED_UNIX_GROUP_NAMES.TITLE"))),n.xp6(3),n.Q6J("ngForOf",t.namespaces))},dependencies:[T.sg,Ht,pL,Ke,Xt]}),i})();function sj(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",7),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"ALERTS.NO_SAMBA")),"\n"))}function oj(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",7),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"ALERTS.SAMBA_EXISTS")),"\n"))}function lj(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",8),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SAMBA_PASSWORD.PASSWORD_VALIDATION"))))}let cj=(()=>{class i{constructor(e,t,r,d,u){this.attributesManagerService=e,this.store=t,this.usersManagerService=r,this.notificator=d,this.translate=u,u.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(c=>this.successMessage=c),u.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(c=>this.showPwdTooltip=c),u.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(c=>this.hidePwdTooltip=c)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new Js("",[bi.pattern("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")]),this.getSambaAttribute()}setSambaPassword(){this.sambaAttribute.value=this.sambaControl.value;const e=(new Date).getTime().toString();this.usersManagerService.createAlternativePassword({user:this.userId,description:e,loginNamespace:"samba-du",password:this.sambaControl.value}).subscribe(()=>{this.sambaControl.setValue(""),this.getSambaAttribute(),this.notificator.showSuccess(this.successMessage)})}getSambaAttribute(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:samba-du").subscribe(e=>{this.sambaExists=!!e.value,this.sambaAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(jn),n.Y36(Ut),n.Y36(li),n.Y36(Mr),n.Y36(sn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-samba-password"]],decls:19,vars:23,consts:[[1,"page-title"],["alert_type","warn",4,"ngIf"],[1,"input-width"],["matInput","",3,"formControl","type","placeholder"],["disableRipple","","mat-icon-button","",3,"matTooltip","click"],["color","accent","mat-flat-button","",3,"disabled","click"],["alert_type","error",4,"ngIf"],["alert_type","warn"],["alert_type","error"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,sj,4,5,"perun-web-apps-alert",1),n.YNc(5,oj,4,5,"perun-web-apps-alert",1),n.TgZ(6,"mat-form-field",2)(7,"label",2),n._UZ(8,"input",3),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA()(),n.TgZ(11,"button",4),n.NdJ("click",function(){return t.showPassword=!t.showPassword}),n.TgZ(12,"mat-icon"),n._uU(13),n.qZA()(),n.TgZ(14,"button",5),n.NdJ("click",function(){return t.setSambaPassword()}),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA(),n.YNc(18,lj,4,5,"perun-web-apps-alert",6)),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,11,n.lcZ(3,13,"SAMBA_PASSWORD.TITLE"))),n.xp6(3),n.Q6J("ngIf",!t.sambaExists),n.xp6(1),n.Q6J("ngIf",t.sambaExists),n.xp6(3),n.s9C("placeholder",n.lcZ(9,15,n.lcZ(10,17,"SAMBA_PASSWORD.INPUT_PLACEHOLDER"))),n.Q6J("formControl",t.sambaControl)("type",t.showPassword?"text":"password"),n.xp6(3),n.Q6J("matTooltip",t.showPassword?t.hidePwdTooltip:t.showPwdTooltip),n.xp6(2),n.Oqu(t.showPassword?"visibility_off":"visibility"),n.xp6(1),n.Q6J("disabled",0===t.sambaControl.value.length||t.sambaControl.invalid),n.xp6(1),n.hij(" ",n.lcZ(16,19,n.lcZ(17,21,"SAMBA_PASSWORD.SET_PASSWORD")),"\n"),n.xp6(3),n.Q6J("ngIf",t.sambaControl.invalid))},dependencies:[T.O5,zn,Ht,yi,di,ji,_i,Ai,sr,yr,Ke,Xt]}),i})(),fj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),Mj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[fj,wt,wt]}),i})(),Tj=(()=>{class i{constructor(){this.changes=new Le.x,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(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Oj={provide:new n.OlP("mat-datepicker-scroll-strategy"),deps:[rr],useFactory:function kj(i){return()=>i.scrollStrategies.reposition()}};let wT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Tj,Oj],imports:[T.ez,Ka,Bo,Ll,Ws,wt,da]}),i})();new n.OlP("mat-selectsearch-default-options");let qj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[T.ez,Xs,Ka,mg,eo,ef,Uo]]}),i})(),MT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})(),bL=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[js,wt,js,wt]}),i})(),Gj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Ho]}),i})(),CT=(()=>{class i{constructor(){this.changes=new Le.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const rF={provide:CT,deps:[[new n.FiY,new n.tp0,CT]],useFactory:function iF(i){return i||new CT}};let ML=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[rF,Qc],imports:[wt,T.ez,Ws,Ka,Gj,eo,ca,wt]}),i})(),cF=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,wt,Ws,ca,uu,Ll,wt]}),i})();const dF=["input"],uF=function(i){return{enterDuration:i}},hF=["*"],pF=new n.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let fF=0;const mF={provide:ar,useExisting:(0,n.Gpc)(()=>CL),multi:!0};class gF{constructor(a,e){this.source=a,this.checked=e}}const _F=Vs(Hl(Ni(Xa(class{constructor(i){this._elementRef=i}}))));let bF=(()=>{class i extends _F{constructor(e,t,r,d,u,c,o){super(e),this._focusMonitor=t,this._changeDetectorRef=r,this.defaults=u,this._onChange=s=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new n.vpe,this.toggleChange=new n.vpe,this.tabIndex=parseInt(d)||0,this.color=this.defaultColor=u.color||"accent",this._noopAnimations="NoopAnimations"===c,this.id=this._uniqueId=`${o}${++fF}`}get required(){return this._required}set required(e){this._required=Ge(e)}get checked(){return this._checked}set checked(e){this._checked=Ge(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?this._focused=!0:e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[n.qOj]}),i})(),CL=(()=>{class i extends bF{constructor(e,t,r,d,u,c){super(e,t,r,d,u,c,"mat-slide-toggle-")}_createChangeEvent(e){return new gF(this,e)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36($r),n.Y36(n.sBO),n.$8M("tabindex"),n.Y36(pF),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){if(1&e&&n.Gf(dF,5),2&e){let r;n.iGM(r=n.CRH())&&(t._inputElement=r.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(e,t){2&e&&(n.Ikx("id",t.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),n.ekj("mat-checked",t.checked)("mat-disabled",t.disabled)("mat-slide-toggle-label-before","before"==t.labelPosition)("_mat-animation-noopable",t._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[n._Bn([mF]),n.qOj],ngContentSelectors:hF,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,t){if(1&e&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.NdJ("change",function(d){return t._onChangeEvent(d)})("click",function(d){return t._onInputClick(d)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA()()(),n.TgZ(9,"span",9,10),n.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),n.TgZ(11,"span",11),n._uU(12,"\xa0"),n.qZA(),n.Hsn(13),n.qZA()()),2&e){const r=n.MAs(1),d=n.MAs(10);n.uIk("for",t.inputId),n.xp6(2),n.ekj("mat-slide-toggle-bar-no-side-margin",!d.textContent||!d.textContent.trim()),n.xp6(1),n.Q6J("id",t.inputId)("required",t.required)("tabIndex",t.tabIndex)("checked",t.checked)("disabled",t.disabled),n.uIk("name",t.name)("aria-checked",t.checked)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),n.xp6(4),n.Q6J("matRippleTrigger",r)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(18,uF,t._noopAnimations?0:150))}},dependencies:[Jr,c0],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),i})(),vL=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),vT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[vL,ca,wt,uu,vL,wt]}),i})(),wF=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,MT,Kv,gT,Ka,bL,mg,eo,fg,Wu,ef,Gs,Kp,ed,Fu,Xs,ML,wT,T0,Lv,nT,Wp,Qv,IA,qu,Uo,gd,ca,fg,vT,dT,MT,Kv,gT,Ka,bL,mg,eo,fg,Wu,ef,Gs,Kp,ed,Fu,Xs,ML,wT,T0,Lv,nT,Wp,Qv,IA,qu,Uo,gd,ca,cF,vT,dT]}),i})(),MF=(()=>{class i extends W1{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const CF={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let TL=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Zr,useClass:MF},{provide:Uh,useValue:CF}],imports:[T.ez,mg,fg,Fu,dT,XI,po,Tl,IA,qu,ef,gA,eo,Wp,Ka,Uo,Gs,Xs,Kp,ca,JE,rD,Mj,wT,uD,_u,gd,qj,ed,Wu,JC,wF,vO]}),i})();n.B6R(hD,[T.O5,yi,Ht,B0,vu,ko,Xn,Un,pD],[Ke,Xt]);let vF=(()=>{class i{transform(e){return"virt"===e.namespace.split(":")[4]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"isVirtualAttribute",type:i,pure:!0}),i})();function TF(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"th",18)(1,"mat-checkbox",19),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(r?d.masterToggle():null)}),n.ALo(2,"translate"),n.ALo(3,"masterCheckboxLabel"),n.qZA()()}if(2&i){const e=n.oxw().ngIf,t=n.oxw();n.xp6(1),n.Q6J("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)("aria-label",n.lcZ(2,3,n.lcZ(3,5,e.all)))}}const xF=function(i){return{name:i}};function SF(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",20)(1,"mat-checkbox",21),n.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.selection.toggle(u):null)}),n.ALo(2,"multiWordDataCy"),n.ALo(3,"isVirtualAttribute"),n.ALo(4,"translate"),n.ALo(5,"checkboxLabel"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw(2);n.xp6(1),n.Q2q("data-cy","",n.lcZ(2,4,e.displayName),"-checkbox"),n.Q6J("checked",t.selection.isSelected(e))("disabled",n.lcZ(3,6,e)||!e.writable)("aria-label",n.xi3(4,8,n.lcZ(5,11,t.selection.isSelected(e)),n.VKq(13,xF,e.displayName)))}}function EF(i,a){1&i&&(n.ynx(0,15),n.YNc(1,TF,4,7,"th",16),n.YNc(2,SF,6,15,"td",17),n.BQk())}function DF(i,a){1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function LF(i,a){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.id)}}function HF(i,a){1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function RF(i,a){if(1&i&&(n.TgZ(0,"td",24),n.ALo(1,"multiWordDataCy"),n.TgZ(2,"div",25),n._uU(3),n.qZA()()),2&i){const e=a.$implicit,t=n.oxw();n.Q2q("data-cy","",n.lcZ(1,3,e.friendlyName),"-friendlyName"),n.xp6(2),n.s9C("matTooltip",t.getAttributeFullName(e)),n.xp6(1),n.hij(" ",e.displayName," ")}}function PF(i,a){1&i&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function kF(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",24)(1,"perun-web-apps-attribute-value",27),n.NdJ("sendEventToParent2",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.onValueChange(d))}),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("attribute",e)("readonly",t.readonly||!e.writable)}}function OF(i,a){1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function IF(i,a){if(1&i&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.description)}}function BF(i,a){1&i&&n._UZ(0,"tr",28)}function NF(i,a){if(1&i&&(n._UZ(0,"tr",29),n.ALo(1,"translate")),2&i){const e=a.$implicit,t=n.oxw();n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),n.Q6J("matTooltipPosition","before")("matTooltipDisabled",e.writable||t.readonly)}}function VF(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function jF(i,a){if(1&i&&(n.TgZ(0,"perun-web-apps-alert",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,1,e.emptyListText),"\n")}}const FF=function(i){return{all:i}};let zF=(()=>{class i{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.attributes=[],this.selection=new Yi(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=Gl}set matSort(e){this.sort=e,this.setDataSource()}static canBeSelected(e){return!to(e)&&e.writable}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"displayName":return e.displayName;case"description":return e.description;case"value":return JSON.stringify(e.value);case"urn":return e.namespace+":"+e.baseFriendlyName;default:return""}}canBeSelected(e){return!to(e)&&e.writable}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new $o(function uv(i){return i.filter(a=>!a.namespace.includes("def:core"))}(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(e=>!this.hiddenColumns.includes(e)),this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Zl(e,t,this.displayedColumns.concat("urn"),i.getDataForColumn),this.dataSource.sortData=(e,t)=>$l(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,i.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,i.canBeSelected)}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}onValueChange(e){i.canBeSelected(e)&&this.selection.select(e)}getAttributeFullName(e){return`${e.namespace}:${e.friendlyName}`}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Cn),n.Y36(lA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(os,7),n.Gf(ps,7),n.Gf(uT,5)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first),n.iGM(r=n.CRH())&&(t.items=r)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[n.TTD],decls:21,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","displayName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,EF,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,DF,3,3,"th",5),n.YNc(7,LF,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,HF,3,3,"th",5),n.YNc(10,RF,4,5,"td",8),n.BQk(),n.ynx(11,9),n.YNc(12,PF,3,3,"th",10),n.YNc(13,kF,2,2,"td",8),n.BQk(),n.ynx(14,11),n.YNc(15,OF,3,3,"th",5),n.YNc(16,IF,2,1,"td",8),n.BQk(),n.YNc(17,BF,1,0,"tr",12),n.YNc(18,NF,2,5,"tr",13),n.qZA()()(),n.YNc(19,VF,3,3,"perun-web-apps-alert",14),n.YNc(20,jF,3,3,"perun-web-apps-alert",14)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(14,FF,n.Dn7(4,10,t.dataSource,t.selection.selected.length,t.canBeSelected))),n.xp6(14),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.data.length))},dependencies:[T.O5,ic,io,cs,ro,ds,ls,ao,us,hs,so,oo,ps,Ag,yi,yr,os,uT,Ke,vF,iT,pT,yg,lL],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),i})();function UF(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function qF(i,a){1&i&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function YF(i,a){if(1&i&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.friendlyNameParameter)}}function WF(i,a){1&i&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function GF(i,a){if(1&i&&(n.TgZ(0,"td",18),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.value)}}function $F(i,a){1&i&&n._UZ(0,"th",16)}function ZF(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",19)(1,"button",20),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.resetPassword(d.friendlyNameParameter))}),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("disabled",!t.logins.includes(e)),n.xp6(1),n.hij(" ",n.lcZ(3,2,n.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function JF(i,a){1&i&&n._UZ(0,"th",16)}function QF(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",19)(1,"button",21),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.changePassword(d))}),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("disabled",!t.logins.includes(e)),n.xp6(1),n.hij(" ",n.lcZ(3,2,n.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function XF(i,a){1&i&&n._UZ(0,"tr",22)}function KF(i,a){1&i&&n._UZ(0,"tr",23)}let ez=(()=>{class i{constructor(e,t,r,d,u,c,o){this.attributesManagerService=e,this.store=t,this.dialog=r,this.route=d,this.router=u,this.otherApplicationService=c,this.entityStorageService=o,this.authenticationPage=!1,this.filteredNamespaces=new n.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.getProperty("password_namespace_attributes").map(e=>{const t=e.split(":");return t[t.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe(e=>{if(this.logins=e.filter(t=>this.nameSpaces.includes(t.friendlyNameParameter)),this.filteredNamespaces.emit(e.map(t=>t.friendlyNameParameter)),this.dataSource=new $o(e),!this.authenticationPage){const r=this.route.snapshot.queryParamMap.get("namespace");if(r){const d=this.logins.find(u=>u.friendlyNameParameter===r);d&&this.changePassword(d)}}})}resetPassword(e){window.open(this.otherApplicationService.getUrlForOtherApplication(Go.PwdReset,e),"_blank")}changePassword(e){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:e.friendlyNameParameter},queryParamsHandling:"merge"});const t=ln();t.width="600px",t.data={login:String(e.value),namespace:e.friendlyName.split(":")[1]},this.dialog.open(Hk,t).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(jn),n.Y36(Ut),n.Y36(on),n.Y36(mi),n.Y36(Dn),n.Y36(cA),n.Y36(Sv))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,UF,4,5,"perun-web-apps-alert",1),n.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),n.ynx(9,6),n.YNc(10,qF,4,5,"th",7),n.YNc(11,YF,2,1,"td",8),n.BQk(),n.ynx(12,9),n.YNc(13,WF,4,5,"th",7),n.YNc(14,GF,2,1,"td",10),n.BQk(),n.ynx(15,11),n.YNc(16,$F,1,0,"th",7),n.YNc(17,ZF,5,6,"td",12),n.BQk(),n.ynx(18,13),n.YNc(19,JF,1,0,"th",7),n.YNc(20,QF,5,6,"td",12),n.BQk(),n.YNc(21,XF,1,0,"tr",14),n.YNc(22,KF,1,0,"tr",15),n.qZA()()()()),2&e&&(n.xp6(1),n.hij(" ",t.authenticationPage?"":n.lcZ(2,5,n.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),n.xp6(3),n.Q6J("ngIf",!t.logins.length&&!t.authenticationPage),n.xp6(4),n.Q6J("dataSource",t.dataSource),n.xp6(13),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns))},dependencies:[T.O5,io,cs,ro,ds,ls,ao,us,hs,so,oo,ps,yi,Ht,Ke,Xt],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),i})();function Cz(i,a){1&i&&n._UZ(0,"mat-spinner",8)}function vz(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",9),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))))}function Tz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"p")(2,"strong"),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"customTranslate"),n.qZA(),n._uU(6),n.qZA(),n.TgZ(7,"p",10),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA(),n.TgZ(11,"button",11),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw(3).$implicit,u=n.oxw();return n.KtG(u.requestChangeQuota(d,r))}),n._uU(12),n.ALo(13,"translate"),n.ALo(14,"customTranslate"),n.qZA()()}if(2&i){const e=n.oxw(5);n.xp6(3),n.Oqu(n.lcZ(4,4,n.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA"))),n.xp6(3),n.hij(" ",e.quotasMarkup," "),n.xp6(2),n.hij(" ",n.lcZ(9,8,n.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA_INFO"))," "),n.xp6(4),n.hij(" ",n.lcZ(13,12,n.lcZ(14,14,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.CHANGE"))," ")}}function xz(i,a){1&i&&(n.TgZ(0,"p"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))," "))}function Sz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",3),n.NdJ("opened",function(){const d=n.CHM(e).$implicit,u=n.oxw(4);return n.KtG(u.getResAttributes(d.id))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.qZA()(),n.YNc(4,Tz,15,16,"div",7),n.YNc(5,xz,4,5,"p",7),n.qZA()}if(2&i){const e=a.$implicit,t=n.oxw(4);n.xp6(3),n.hij(" ",e.name," "),n.xp6(1),n.Q6J("ngIf",t.defaultQuota),n.xp6(1),n.Q6J("ngIf",!t.defaultQuota)}}function Ez(i,a){if(1&i&&(n.TgZ(0,"mat-accordion"),n.YNc(1,Sz,6,3,"mat-expansion-panel",2),n.qZA()),2&i){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.resources)}}function Dz(i,a){if(1&i&&(n.YNc(0,Cz,1,0,"mat-spinner",5),n.YNc(1,vz,4,5,"perun-web-apps-alert",6),n.YNc(2,Ez,2,1,"mat-accordion",7)),2&i){const e=n.oxw(2);n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",0===e.resources.length&&!e.loading),n.xp6(1),n.Q6J("ngIf",e.resources.length&&!e.loading)}}function Lz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",3),n.NdJ("opened",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.getMembersResources(d))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.qZA()(),n.YNc(4,Dz,3,3,"ng-template",4),n.qZA()}if(2&i){const e=a.$implicit;n.xp6(3),n.hij(" ",e.name," ")}}let Hz=(()=>{class i{constructor(e,t,r,d,u,c,o){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=d,this.attributesManagerService=u,this.dialog=c,this.entityStorageService=o,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(e=>{this.vos=e,this.filteredVos=e})}getMembersResources(e){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{let d=r.length;d||(this.loading=!1),r.forEach(u=>{this.attributesManagerService.getResourceAttributes(u.id).subscribe(c=>{d--,c.find(o=>"defaultDataQuotas"===o.friendlyName)&&this.resources.push(u),this.loading=0!==d})})})})}getResAttributes(e){this.attributesManagerService.getResourceAttributes(e).subscribe(t=>{let r=t.find(d=>"dataQuotas"===d.friendlyName);if(r?.value){const d=Object.entries(r.value).map(u=>String(u[1]));this.currentQuota=d[0]}else this.currentQuota="";if(r=t.find(d=>"defaultDataQuotas"===d.friendlyName),r?.value){const d=Object.entries(r.value).map(u=>String(u[1]));this.defaultQuota=d[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(e,t){const r=ln();r.width="400px",r.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(Xk,r)}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}parseMarkup(){let e="";e+=this.currentQuota,e+=` (default: ${this.defaultQuota})`,e=e.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(li),n.Y36(Er),n.Y36(ia),n.Y36(jn),n.Y36(on),n.Y36(Sv))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-data-quotas"]],inputs:{user:"user"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"color-gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"perun-web-apps-immediate-filter",1),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA(),n.TgZ(7,"mat-accordion"),n.YNc(8,Lz,5,1,"mat-expansion-panel",2),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,3,n.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.TITLE")),"\n"),n.xp6(3),n.Q6J("placeholder",n.lcZ(5,7,n.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.FILTER"))),n.xp6(4),n.Q6J("ngForOf",t.filteredVos))},dependencies:[T.sg,T.O5,Hn,yi,Ht,NA,Mg,Cg,BA,wg,cf,Ke,Xt],styles:[".color-gray[_ngcontent-%COMP%]{color:gray}"]}),i})();function Rz(i,a){1&i&&n._UZ(0,"mat-spinner",8)}function Pz(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",9),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function kz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",3),n.NdJ("closed",function(){n.CHM(e);const r=n.oxw(4);return n.KtG(r.deselectResource())})("afterExpand",function(){const d=n.CHM(e).$implicit,u=n.oxw(4);return n.KtG(u.changeSelectedResource(d))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.qZA()(),n.TgZ(4,"div",10)(5,"mat-checkbox",11),n.NdJ("change",function(){n.CHM(e);const r=n.oxw(4);return n.KtG(r.setOptOut())}),n.qZA(),n.TgZ(6,"p"),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA()()()}if(2&i){const e=a.$implicit,t=n.oxw(4);n.Q6J("expanded",e.name===t.selectedResource),n.xp6(3),n.hij(" ",e.name," "),n.xp6(2),n.Q6J("checked",t.optOutAttribute&&null!==t.optOutAttribute.value),n.xp6(2),n.hij(" ",n.lcZ(8,4,n.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))," ")}}function Oz(i,a){if(1&i&&(n.TgZ(0,"mat-accordion"),n.YNc(1,kz,10,8,"mat-expansion-panel",2),n.qZA()),2&i){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.resources)}}function Iz(i,a){if(1&i&&(n.YNc(0,Rz,1,0,"mat-spinner",5),n.YNc(1,Pz,4,5,"perun-web-apps-alert",6),n.YNc(2,Oz,2,1,"mat-accordion",7)),2&i){const e=n.oxw(2);n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",0===e.resources.length&&!e.loading),n.xp6(1),n.Q6J("ngIf",e.resources.length&&!e.loading)}}function Bz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",3),n.NdJ("closed",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.deselectVo())})("afterExpand",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.changeSelectedVo(d))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.qZA()(),n.YNc(4,Iz,3,3,"ng-template",4),n.qZA()}if(2&i){const e=a.$implicit,t=n.oxw();n.Q6J("expanded",e.shortName===t.selectedVo),n.xp6(3),n.hij(" ",e.name," ")}}let Nz=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=d,this.attributesManagerService=u,this.route=c,this.router=o,this.notificator=s,this.translate=l,this.vos=[],this.resources=[],this.optOuts=[],this.filteredVos=[],this.loading=!0,this.selectedVo=null,this.selectedResource=null}ngOnDestroy(){this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:null,resource:null},replaceUrl:!0,queryParamsHandling:"merge"})}ngOnInit(){this.route.queryParams.subscribe(e=>{this.selectedVo=String(e.vo),this.selectedResource=String(e.resource),this.changeOptOut=String(e.action),this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{if(this.vos=t.sort(gv),this.filteredVos=t,void 0!==this.selectedResource){const r=this.vos.find(d=>d.shortName===this.selectedVo);r&&this.getMailingLists(r)}else if(void 0!==this.selectedVo){const r=this.vos.find(d=>d.shortName===this.selectedVo);r&&(this.getMailingLists(r),this.changeSelectedVo(r))}})}).unsubscribe()}changeSelectedResource(e){this.selectedResource!==e.name&&this.getOptOutAttribute(e),this.isService||(this.changeOptOut&&("subscribe"===this.changeOptOut?this.subscribe():"unsubscribe"===this.changeOptOut&&this.unsubscribe(),this.changeOptOut=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource,action:null},queryParamsHandling:"merge"}))}changeSelectedVo(e){this.selectedVo!==e.shortName&&(this.getMailingLists(e),this.selectedResource=null),this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}getMailingLists(e){this.selectedVo=e.shortName,this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getMailingServiceRichResourcesWithMember(t.id).subscribe(r=>{let d=r.length;d||(this.loading=!1),r.forEach(u=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,u.id).subscribe(c=>{this.attributesManagerService.getResourceAttributeByName(u.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(o=>{d--;const s=c.find(l=>"optOutMailingList"===l.friendlyName);s&&"true"!==o?.value&&(this.optOuts.push({resource:u.id,member:t.id,attribute:s}),this.resources.push(u),this.selectedResource===u.name&&(this.getOptOutAttribute(u),this.changeSelectedResource(u))),this.loading=0!==d})})})}),this.resources.sort(gv)})}getOptOutAttribute(e){this.selectedResource=e.name,this.index=this.resources.indexOf(e),this.optOutAttribute=this.optOuts[this.index].attribute}unsubscribe(){const e=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value="true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.UNSUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=e})}subscribe(){const e=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value=null,this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.SUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=e})}setOptOut(){this.optOutAttribute.value?this.subscribe():this.unsubscribe()}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}deselectVo(){this.loading=!0,this.selectedVo=null,this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}deselectResource(){this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(li),n.Y36(Er),n.Y36(ia),n.Y36(jn),n.Y36(mi),n.Y36(Dn),n.Y36(Mr),n.Y36(sn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-mailing-lists"]],inputs:{user:"user",isService:"isService"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"expanded","closed","afterExpand",4,"ngFor","ngForOf"],[3,"expanded","closed","afterExpand"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"row"],[1,"ml-3","mr-2",3,"checked","change"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"perun-web-apps-immediate-filter",1),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA(),n.TgZ(7,"mat-accordion"),n.YNc(8,Bz,5,2,"mat-expansion-panel",2),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,3,n.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.TITLE")),"\n"),n.xp6(3),n.Q6J("placeholder",n.lcZ(5,7,n.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.FILTER"))),n.xp6(4),n.Q6J("ngForOf",t.filteredVos))},dependencies:[T.sg,T.O5,ic,Hn,yi,NA,Mg,Cg,BA,wg,cf,Ke,Xt]}),i})();function Vz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-list-item",4)(1,"p",5),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.showWholeKey(d))}),n._uU(2),n.qZA(),n.TgZ(3,"button",6),n.ALo(4,"translate"),n.ALo(5,"customTranslate"),n.TgZ(6,"mat-icon"),n._uU(7," file_copy "),n.qZA()(),n.TgZ(8,"button",7),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.removeKey(d,!1))}),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.TgZ(11,"mat-icon"),n._uU(12," delete "),n.qZA()()()}if(2&i){const e=a.$implicit;n.xp6(2),n.Oqu(e),n.xp6(1),n.s9C("matTooltip",n.lcZ(4,4,n.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.COPY_TOOLTIP"))),n.Q6J("cdkCopyToClipboard",e),n.xp6(5),n.s9C("matTooltip",n.lcZ(9,8,n.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_TOOLTIP")))}}function jz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-list-item",4)(1,"label",8),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.showWholeKey(d))}),n._uU(2),n.qZA(),n.TgZ(3,"button",9)(4,"mat-icon"),n._uU(5," file_copy "),n.qZA()(),n.TgZ(6,"button",10),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.removeKey(d,!0))}),n.TgZ(7,"mat-icon"),n._uU(8," delete "),n.qZA()()()}if(2&i){const e=a.$implicit;n.xp6(2),n.Oqu(e),n.xp6(1),n.Q6J("cdkCopyToClipboard",e)}}let Fz=(()=>{class i{constructor(e,t,r,d,u){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=d,this.entityStorageService=u,this.adminKeys=[],this.userKeys=[],this.userUrn="urn:perun:user:attribute-def:def:sshPublicKey",this.adminUrn="urn:perun:user:attribute-def:def:sshPublicAdminKey",this.selection=new Yi(!1,[]),this.selectionAdmin=new Yi(!1,[]),d.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(c=>this.removeDialogDescription=c),d.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),d.get("ALERTS.NO_ALT_PASSWORDS").subscribe(c=>this.alertText=c),d.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(c=>this.headerColumnText=c)}ngOnInit(){this.userId=window.location.pathname.startsWith("/myProfile")?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(e=>this.alertText=e),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(e){const t=ln();t.width="850px",t.data={attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Zo,t).afterClosed().subscribe(d=>{d&&(e?this.getAdminSSH():this.getUserSSH())})}removeKey(e,t){const r=ln();r.width="600px",r.data={values:[e],attribute:t?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(SA,r).afterClosed().subscribe(u=>{u&&(this.loading=!0,t?(this.getAdminSSH(),this.selectionAdmin.clear()):(this.getUserSSH(),this.selection.clear()))})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(e=>{this.userKeyAttribute=e,this.userKeys=e.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(e=>{this.adminKeyAttribute=e,this.adminKeys=e.value,this.loading=!1})}showWholeKey(e){const t=ln();t.width="600px",t.data={value:e},this.dialog.open(oO,t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(jn),n.Y36(on),n.Y36(sn),n.Y36(Sv))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:28,vars:32,consts:[[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["class","dark-hover-list-item w-auto","matRipple","",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item","w-auto"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ml-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ml-2","center-content",3,"matTooltip","click"],[1,"truncate","center-content",3,"click"],["mat-icon-button","","color","accent",1,"ml-auto","center-content",3,"cdkCopyToClipboard"],["mat-icon-button","","color","warn",1,"ml-2","center-content",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"p"),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.TgZ(8,"button",1),n.NdJ("click",function(){return t.addKey(!1)}),n._uU(9),n.ALo(10,"translate"),n.ALo(11,"customTranslate"),n.qZA(),n.TgZ(12,"mat-list"),n.YNc(13,Vz,13,12,"mat-list-item",2),n.qZA(),n.TgZ(14,"h1",3),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA(),n.TgZ(18,"p"),n._uU(19),n.ALo(20,"translate"),n.ALo(21,"customTranslate"),n.qZA(),n.TgZ(22,"button",1),n.NdJ("click",function(){return t.addKey(!0)}),n._uU(23),n.ALo(24,"translate"),n.ALo(25,"customTranslate"),n.qZA(),n.TgZ(26,"mat-list"),n.YNc(27,jz,9,2,"mat-list-item",2),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,8,n.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_TITLE")),"\n"),n.xp6(4),n.Oqu(n.lcZ(6,12,n.lcZ(7,14,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_DESCRIPTION"))),n.xp6(4),n.hij(" ",n.lcZ(10,16,n.lcZ(11,18,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),n.xp6(4),n.Q6J("ngForOf",t.userKeys),n.xp6(2),n.hij(" ",n.lcZ(16,20,n.lcZ(17,22,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.ADMIN_SSH_KEYS_TITLE")),"\n"),n.xp6(4),n.hij(" ",n.lcZ(20,24,n.lcZ(21,26,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION")),"\n"),n.xp6(4),n.hij(" ",n.lcZ(24,28,n.lcZ(25,30,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),n.xp6(4),n.Q6J("ngForOf",t.adminKeys))},dependencies:[T.sg,zn,Ht,yr,Jr,Jv,tT,DA,Ke,Xt],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}label[_ngcontent-%COMP%]:hover, .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function uU(i,a){1&i&&n._UZ(0,"mat-spinner",5)}function hU(i,a){1&i&&n._UZ(0,"mat-spinner",5)}function pU(i,a){if(1&i&&n._UZ(0,"perun-web-apps-attributes-list",10),2&i){const e=n.oxw(3);n.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function fU(i,a){if(1&i&&(n.YNc(0,hU,1,0,"mat-spinner",3),n.YNc(1,pU,1,3,"perun-web-apps-attributes-list",9)),2&i){const e=n.oxw(2);n.Q6J("ngIf",e.innerLoading),n.xp6(1),n.Q6J("ngIf",!e.innerLoading)}}function mU(i,a){1&i&&n._UZ(0,"mat-spinner",5)}function gU(i,a){if(1&i&&n._UZ(0,"perun-web-apps-attributes-list",10),2&i){const e=n.oxw(4);n.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function _U(i,a){if(1&i&&(n.YNc(0,mU,1,0,"mat-spinner",3),n.YNc(1,gU,1,3,"perun-web-apps-attributes-list",9)),2&i){const e=n.oxw(3);n.Q6J("ngIf",e.innerLoading),n.xp6(1),n.Q6J("ngIf",!e.innerLoading)}}function bU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",6),n.NdJ("opened",function(){const d=n.CHM(e).$implicit,u=n.oxw(2);return n.KtG(u.getMemberData(d))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"customTranslate"),n.qZA()(),n.YNc(6,_U,2,2,"ng-template",7),n.qZA()}if(2&i){const e=a.$implicit;n.xp6(3),n.AsE(" ",n.lcZ(4,2,n.lcZ(5,4,"PRIVACY.DATA")),"",e.name," ")}}function AU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",6),n.NdJ("opened",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.getUserData())}),n.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA()(),n.YNc(7,fU,2,2,"ng-template",7),n.qZA(),n.YNc(8,bU,7,6,"mat-expansion-panel",8),n.qZA()}if(2&i){const e=n.oxw();n.xp6(4),n.hij(" ",n.lcZ(5,2,n.lcZ(6,4,"PRIVACY.USER_INFO"))," "),n.xp6(4),n.Q6J("ngForOf",e.filteredVos)}}new Date(324721404e5).valueOf();let yU=(()=>{class i{constructor(e,t,r,d){this.usersManagerService=e,this.membersService=t,this.attributesManagerService=r,this.storage=d,this.vos=[],this.attributes=[],this.username="",this.hiddenColumns=["select","id"],this.filteredVos=[]}ngOnInit(){this.outerLoading=!0,this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=e,this.outerLoading=!1})}getUserData(){this.innerLoading=!0,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(e=>{this.user=e,this.attributes=e.userAttributes,this.username=(new mA).transform(e),this.innerLoading=!1})}getMemberData(e){this.innerLoading=!0,this.membersService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.membersService.getRichMemberWithAttributes(t.id).subscribe(r=>{this.attributes=r.memberAttributes,this.innerLoading=!1})})}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Er),n.Y36(jn),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-privacy-page"]],decls:10,vars:12,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"opened"],["matExpansionPanelContent",""],[3,"opened",4,"ngFor","ngForOf"],[3,"attributes","readonly","hiddenColumns",4,"ngIf"],[3,"attributes","readonly","hiddenColumns"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.YNc(8,uU,1,0,"mat-spinner",3),n.YNc(9,AU,9,6,"mat-accordion",4),n.qZA()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,4,n.lcZ(3,6,"PRIVACY.TITLE"))),n.xp6(4),n.Q6J("placeholder",n.lcZ(6,8,n.lcZ(7,10,"SERVICES.FILTER"))),n.xp6(3),n.Q6J("ngIf",t.outerLoading),n.xp6(1),n.Q6J("ngIf",!t.outerLoading))},dependencies:[T.sg,T.O5,cf,zF,NA,Mg,Cg,BA,wg,Hn,Ke,Xt]}),i})(),wU=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-home-page"]],decls:1,vars:0,template:function(e,t){1&e&&n._UZ(0,"router-outlet")},dependencies:[Wr]}),i})();function MU(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",11),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.INFO"))))}function CU(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",12),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.IMG_TOO_LONG"))))}function vU(i,a){if(1&i&&(n.TgZ(0,"div",13),n._UZ(1,"img",14),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("src",e.newImage,n.LSH)}}function TU(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",11),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.DELAY_INFO"))))}let SU=(()=>{class i{constructor(e,t,r,d){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.store=d,this.newImage=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.newImage=this.attribute.value}handleInputChange(e){const t=e.dataTransfer?.files[0]??e.target?.files[0],d=new FileReader;t.type.match(/image-*/)?(d.onload=this._handleReaderLoaded.bind(this),this.imageType=t.type,d.readAsDataURL(t)):alert("invalid format")}_handleReaderLoaded(e){const t=e.target;let r=100;const d=()=>{u(t.result).then(c=>{r>50&&c.length>6144?(r-=10,d()):(this.newImage=c,this.imgTooLong=this.newImage.length>=6144)}).catch(c=>console.error(c))},u=c=>new Promise((o,s)=>{const l=new Image;l.src=c,l.onload=()=>{const h=document.createElement("canvas");let p=l.width,m=l.height;p>m?p>r&&(m*=r/p,p=r):m>r&&(p*=r/m,m=r),h.width=p,h.height=m;const g=h.getContext("2d");g.drawImage(l,0,0,p,m);const f=g.canvas.toDataURL();o(f)},l.onerror=h=>s(h)});d()}onAdd(){this.attribute.value=this.newImage,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe(()=>{this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}generateImg(){function s(p,m,g,f){f.beginPath(),f.rect(20*p,20*m,20,20),f.fillStyle="rgb("+g.join(",")+")",f.fill()}this.newImage=function h(){const p=function o(){const p=document.createElement("canvas");p.width=100,p.height=100;const m=p.getContext("2d");return m.beginPath(),m.rect(0,0,100,100),m.fillStyle="#FFFFFF",m.fill(),p}(),m=p.getContext("2d"),g=function l(){const p=[];for(let m=0;m<3;m++){const g=Math.floor(256*Math.random()),f=Math.max(120,g),w=Math.min(200,f);p.push(w)}return p}();for(let f=0;f{class i{constructor(e,t,r,d){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.store=d,this.securityText=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.attribute.value&&(this.securityText=String(this.attribute.value))}onAdd(){this.attribute.value=this.securityText,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe(()=>{this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(jn),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-auth-text-dialog"]],decls:18,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"w-100"],["matInput","","autofocus","",3,"ngModel","ngModelChange"],["alert_type","info"],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"input",3),n.NdJ("ngModelChange",function(d){return t.securityText=d}),n.qZA()(),n.TgZ(7,"perun-web-apps-alert",4),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA()(),n.TgZ(11,"div",5)(12,"button",6),n.NdJ("click",function(){return t.onCancel()}),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"button",7),n.NdJ("click",function(){return t.onAdd()}),n._uU(16),n.ALo(17,"translate"),n.qZA()()()),2&e&&(n.Tol(t.theme),n.xp6(2),n.Oqu(n.lcZ(3,9,"DIALOGS.ADD_AUTH_TEXT.TITLE")),n.xp6(4),n.Q6J("ngModel",t.securityText),n.xp6(2),n.hij(" ",n.lcZ(9,11,n.lcZ(10,13,"DIALOGS.ADD_AUTH_TEXT.DELAY_INFO"))," "),n.xp6(5),n.hij(" ",n.lcZ(14,15,"DIALOGS.ADD_AUTH_TEXT.CANCEL")," "),n.xp6(2),n.Q6J("disabled",""===t.securityText.trim()),n.xp6(1),n.hij(" ",n.lcZ(17,17,"DIALOGS.ADD_AUTH_TEXT.ADD")," "))},dependencies:[Ht,yi,di,Xn,ii,Un,ji,_i,Ai,ua,Ke,Xt]}),i})(),DU=(()=>{class i{constructor(e){this.translate=e}transform(e){return this.translate.currentLang in e?e[this.translate.currentLang]:this.translate.defaultLang in e?e[this.translate.defaultLang]:e[Object.keys(e)[0]]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(sn,16))},i.\u0275pipe=n.Yjl({name:"categoryLabel",type:i,pure:!0}),i})();const LU=["toggle"];function HU(i,a){1&i&&n._UZ(0,"mat-spinner",8)}function RU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"mat-slide-toggle",13),n.NdJ("toggleChange",function(){const d=n.CHM(e).$implicit,u=n.oxw(2).$implicit,c=n.oxw(2);return n.KtG(c.toggleRps(u,d.key))}),n._uU(2),n.ALo(3,"categoryLabel"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw(2).$implicit;n.xp6(1),n.Q6J("checked",null==t?null:t.value.rps_value[e.key]),n.xp6(1),n.hij(" ",n.lcZ(3,2,e.value)," ")}}function PU(i,a){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,RU,4,4,"div",9),n.ALo(2,"keyvalue"),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngForOf",n.lcZ(2,1,null==e?null:e.value.rps))}}function kU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"span",10)(2,"mat-slide-toggle",11),n.NdJ("toggleChange",function(){const d=n.CHM(e).$implicit,u=n.oxw(2);return n.KtG(u.toggleCategory(d.value))}),n._uU(3),n.ALo(4,"categoryLabel"),n.qZA(),n.TgZ(5,"button",12),n.NdJ("click",function(){const d=n.CHM(e).$implicit;return n.KtG(d.value.show=!d.value.show)}),n.TgZ(6,"mat-icon"),n._uU(7),n.qZA()()(),n.YNc(8,PU,3,3,"div",7),n.qZA()}if(2&i){const e=a.$implicit;n.xp6(2),n.Q6J("checked",e.value.value),n.xp6(1),n.hij(" ",n.lcZ(4,4,e.value.label)," "),n.xp6(4),n.hij(" ",e.value.show?"keyboard_arrow_up":"keyboard_arrow_down"," "),n.xp6(1),n.Q6J("ngIf",e.value.show)}}function OU(i,a){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,kU,9,6,"div",9),n.ALo(2,"keyvalue"),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngForOf",n.lcZ(2,1,e.categories))}}function IU(i,a){1&i&&n._UZ(0,"mat-spinner",8)}let BU=(()=>{class i{constructor(e,t,r,d,u,c,o){this.translate=e,this.attributesManagerService=t,this.store=r,this.oauthService=d,this.authService=u,this.httpClient=c,this.mfaApiService=o,this.mfaAvailable=!1,this.loadingMfa=!1,this.showDetail=!1,this.loadingCategories=!1,this.includeCategories=[],this.excludeRps=[],this.allCategories=!1,this.unchangedSettings=!0,this.unchangedEnforce=!0,this.categories={}}ngOnInit(){this.loadingMfa=!0,this.enableDetailSettings=this.store.getProperty("mfa").enable_detail_settings,this.mfaApiService.isMfaAvailable().subscribe({next:e=>{this.mfaAvailable=e,e?this.loadMfa():this.loadingMfa=!1},error:e=>{console.error(e),this.loadingMfa=!1}})}loadMfa(){if(sessionStorage.getItem("mfa_route")){const t=sessionStorage.getItem("enforce_mfa");t&&this.changeEnforceMfa("true"===t),sessionStorage.getItem("settings_mfa")&&this.updateDetailSettings()}else{const t=this.store.getProperty("mfa").enforce_mfa_attribute;this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe({next:r=>{r.value?(this.enforceMfa=!0,this.toggle.toggle()):this.enforceMfa=!1,this.loadingMfa=!1},error:r=>{console.error(r),this.loadingMfa=!1}})}}getCategoriesAndSettings(){this.loadingCategories=!0,this.mfaApiService.getCategories().subscribe({next:e=>{this.categories=e,this.getSettings()},error:e=>{console.error(e),this.loadingCategories=!1}})}getSettings(){this.unchangedEnforce?this.mfaApiService.getSettings().subscribe({next:e=>{0!==e.length&&(e.all?this.allCategories=!0:(this.includeCategories=e.include_categories?e.include_categories:[],this.excludeRps=e.exclude_rps?e.exclude_rps:[])),this.setValuesFromSetting(),this.showDetail=!this.showDetail,this.loadingCategories=!1},error:e=>{console.error(e),this.loadingCategories=!1}}):(this.includeCategories=[],this.allCategories=this.toggle.checked,this.setValuesFromSetting(),this.showDetail=!this.showDetail,this.loadingCategories=!1)}setValuesFromSetting(){if(0===this.includeCategories.length){const e=this.allCategories;for(const t in this.categories){this.categories[t].value=e,this.categories[t].show=!1,this.categories[t].rps_value={};for(const r in this.categories[t].rps)this.categories[t].rps_value[r]=e}}else for(const e in this.categories){this.categories[e].value=this.includeCategories.includes(e),this.categories[e].show=!1,this.categories[e].rps_value={};for(const t in this.categories[e].rps)this.categories[e].rps_value[t]=!!this.categories[e].value&&!this.excludeRps.includes(t)}}showDetailSettings(){this.showDetail||0!==Object.keys(this.categories).length?this.showDetail=!this.showDetail:this.getCategoriesAndSettings()}toggleEnableMfa(){this.unchangedEnforce=!1,this.includeCategories=[],this.allCategories=!this.toggle.checked,this.setValuesFromSetting()}toggleCategory(e,t=!1){if(this.unchangedSettings=!1,this.checkAllCategoriesSelected()&&this.toggle.checked&&!t&&this.toggle.toggle(),e.value=!e.value,!t)for(const r in e.rps_value)e.rps_value[r]=e.value;this.checkAllCategoriesSelected()&&!this.toggle.checked&&!t&&this.toggle.toggle()}checkAllCategoriesSelected(){let e=!0;for(const t in this.categories)this.categories[t].value||(e=!1);return e}toggleRps(e,t){t=String(t),this.unchangedSettings=!1,this.checkAllRpsDeselectedForCategory(String(e.key))&&this.toggleCategory(e.value,!0),this.checkAllRpsSelected()&&this.toggle.toggle(),e.value.rps_value[t]=!e.value.rps_value[t],this.checkAllRpsDeselectedForCategory(String(e.key))&&this.toggleCategory(e.value,!0),this.checkAllRpsSelected()&&this.toggle.toggle()}checkAllRpsDeselectedForCategory(e){let t=!0;for(const r in this.categories[e].rps)this.categories[e].rps_value[r]&&(t=!1);return t}checkAllRpsSelected(){let e=!0;for(const t in this.categories){if(!this.categories[t].value)return!1;for(const r in this.categories[t].rps)this.categories[t].rps_value[r]||(e=!1)}return e}saveSettings(e=!1){this.oauthService.getIdTokenExpiration()-(0,CD.now)()>0&&!e?(this.enforceMfa!==this.toggle.checked&&(this.loadingMfa=!0,this.changeEnforceMfa(this.toggle.checked)),this.unchangedSettings||(this.loadingMfa=!0,this.saveDetailSettings(),this.updateDetailSettings())):(this.saveEnforceMfa(),this.unchangedSettings||this.saveDetailSettings(),this.reAuthenticate())}saveEnforceMfa(){this.enforceMfa!==this.toggle.checked&&sessionStorage.setItem("enforce_mfa",this.toggle.checked.toString())}saveDetailSettings(){let r,e=!0,t=!1;this.includeCategories=[],this.excludeRps=[];for(const d in this.categories)if(this.categories[d].value){t=!0,this.includeCategories.push(d);for(const u in this.categories[d].rps)this.categories[d].rps_value[u]?t=!0:(e=!1,this.excludeRps.push(u))}else e=!1;r=e===t?e?JSON.stringify({all:!0}):"{}":JSON.stringify({include_categories:this.includeCategories,exclude_rps:this.excludeRps}),sessionStorage.setItem("settings_mfa",r)}reAuthenticate(){sessionStorage.setItem("mfa_route","/profile/settings/auth"),this.oauthService.logOut(!0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.loadOidcConfigData(),this.oauthService.loadDiscoveryDocumentAndLogin()}changeEnforceMfa(e){this.mfaApiService.enforceMfaForAllServices(e).subscribe({next:()=>{e?(this.enforceMfa=!0,this.toggle.checked||this.toggle.toggle()):this.enforceMfa=!1,this.unchangedSettings=!0,this.unchangedEnforce=!0,sessionStorage.removeItem("enforce_mfa"),sessionStorage.removeItem("mfa_route"),this.loadingMfa=!1},error:t=>{"MFA is required"===t.error.error?this.saveSettings(!0):this.loadingMfa=!1}})}updateDetailSettings(){const e=sessionStorage.getItem("settings_mfa");this.mfaApiService.updateDetailSettings(e).subscribe({next:()=>{this.unchangedSettings=!0,this.unchangedEnforce=!0,sessionStorage.removeItem("settings_mfa"),sessionStorage.removeItem("mfa_route"),this.loadingMfa=!1},error:t=>{"MFA is required"===t.error.error?this.saveSettings(!0):this.loadingMfa=!1}})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(sn),n.Y36(jn),n.Y36(Ut),n.Y36(Jl.Ct),n.Y36(Ql),n.Y36(C.eN),n.Y36(H2))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-mfa-settings"]],viewQuery:function(e,t){if(1&e&&n.Gf(LU,5),2&e){let r;n.iGM(r=n.CRH())&&(t.toggle=r.first)}},decls:18,vars:23,consts:[["class","ml-auto mr-auto mt-2",4,"ngIf"],[3,"hidden"],["matTooltipPosition","right",1,"toggle-and-button",3,"matTooltip","matTooltipDisabled"],[1,"toggle-ellipsis",3,"disabled","toggleChange"],["toggle",""],["mat-icon-button","",1,"show-button",3,"hidden","disabled","click"],["mat-flat-button","","color","accent",1,"ml-3",3,"disabled","click"],[4,"ngIf"],[1,"ml-auto","mr-auto","mt-2"],[4,"ngFor","ngForOf"],[1,"toggle-and-button"],[1,"ml-4","toggle-ellipsis",3,"checked","toggleChange"],["mat-icon-button","",1,"show-button",3,"click"],[1,"ml-5",3,"checked","toggleChange"]],template:function(e,t){1&e&&(n.YNc(0,HU,1,0,"mat-spinner",0),n.TgZ(1,"div",1)(2,"span",2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.TgZ(5,"mat-slide-toggle",3,4),n.NdJ("toggleChange",function(){return t.toggleEnableMfa()}),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.TgZ(10,"button",5),n.NdJ("click",function(){return t.showDetailSettings()}),n.TgZ(11,"mat-icon"),n._uU(12),n.qZA()()()(),n.TgZ(13,"button",6),n.NdJ("click",function(){return t.saveSettings()}),n._uU(14),n.ALo(15,"translate"),n.qZA(),n.YNc(16,OU,3,3,"div",7),n.YNc(17,IU,1,0,"mat-spinner",0),n.qZA()),2&e&&(n.Q6J("ngIf",t.loadingMfa),n.xp6(1),n.Q6J("hidden",t.loadingMfa),n.xp6(1),n.Q6J("matTooltip",n.lcZ(3,13,n.lcZ(4,15,"AUTHENTICATION.MFA_DISABLED")))("matTooltipDisabled",t.mfaAvailable),n.xp6(3),n.Q6J("disabled",!t.mfaAvailable),n.xp6(2),n.hij("",n.lcZ(8,17,n.lcZ(9,19,"AUTHENTICATION.MFA_TOGGLE"))," "),n.xp6(3),n.Q6J("hidden",!t.enableDetailSettings)("disabled",!t.mfaAvailable),n.xp6(2),n.Oqu(t.showDetail?"keyboard_arrow_up":"keyboard_arrow_down"),n.xp6(1),n.Q6J("disabled",t.unchangedSettings&&t.unchangedEnforce),n.xp6(1),n.hij(" ",n.lcZ(15,21,"AUTHENTICATION.MFA_SAVE")," "),n.xp6(2),n.Q6J("ngIf",t.showDetail),n.xp6(1),n.Q6J("ngIf",t.loadingCategories))},dependencies:[T.sg,T.O5,zn,Ht,Hn,yr,CL,T.Nd,Ke,Xt,DU],styles:[".toggle-and-button[_ngcontent-%COMP%]{display:inline-flex;max-width:100%}.toggle-ellipsis[_ngcontent-%COMP%]{height:40px;display:inline-block;vertical-align:middle;overflow:hidden}.show-button[_ngcontent-%COMP%]{white-space:nowrap}"]}),i})();const NU=["toggle"];function VU(i,a){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"img",9),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("src",e.imageSrc,n.LSH)}}function jU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",5)(1,"h1",2),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"p"),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n.YNc(9,VU,2,1,"div",6),n.TgZ(10,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onAddAttribute(r.imgAtt,r.imgAttrName,"AddAuthImgDialogComponent","IMG"))}),n._uU(11),n.ALo(12,"translate"),n.ALo(13,"customTranslate"),n.qZA(),n.TgZ(14,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onDeleteAttribute(r.imgAtt,r.imgAttrName,"IMG"))}),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,6,n.lcZ(4,8,"AUTHENTICATION.TITLE"))),n.xp6(4),n.Oqu(n.lcZ(7,10,n.lcZ(8,12,"AUTHENTICATION.ANTI_PHISHING_INFO"))),n.xp6(3),n.Q6J("ngIf",e.imageSrc&&e.imageSrc.length),n.xp6(2),n.hij(" ",n.lcZ(12,14,n.lcZ(13,16,"AUTHENTICATION.NEW_IMG"))," "),n.xp6(3),n.Q6J("disabled",!e.imgAtt||!e.imgAtt.value),n.xp6(1),n.hij(" ",n.lcZ(16,18,n.lcZ(17,20,"AUTHENTICATION.DELETE_IMG"))," ")}}function FU(i,a){if(1&i&&(n.TgZ(0,"h4",11),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.textAtt.value)}}function zU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",5)(1,"h1",2),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"p"),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n.YNc(9,FU,2,1,"h4",10),n.TgZ(10,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onAddAttribute(r.textAtt,r.textAttrName,"AddAuthTextDialogComponent","TEXT"))}),n._uU(11),n.ALo(12,"translate"),n.ALo(13,"customTranslate"),n.qZA(),n.TgZ(14,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onDeleteAttribute(r.textAtt,r.textAttrName,"TEXT"))}),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,6,n.lcZ(4,8,"AUTHENTICATION.TITLE_TEXT"))),n.xp6(4),n.Oqu(n.lcZ(7,10,n.lcZ(8,12,"AUTHENTICATION.ANTI_PHISHING_INFO_TEXT"))),n.xp6(3),n.Q6J("ngIf",e.textAtt),n.xp6(2),n.hij(" ",n.lcZ(12,14,n.lcZ(13,16,"AUTHENTICATION.NEW_TEXT"))," "),n.xp6(3),n.Q6J("disabled",!e.textAtt||!e.textAtt.value),n.xp6(1),n.hij(" ",n.lcZ(16,18,n.lcZ(17,20,"AUTHENTICATION.DELETE_TEXT"))," ")}}function UU(i,a){1&i&&n._UZ(0,"mat-spinner",12)}let qU=(()=>{class i{constructor(e,t,r,d,u){this.dialog=e,this.attributesManagerService=t,this.store=r,this.translate=d,this.notificatorService=u,this.imageSrc="",this.mfaUrl="",this.loading=!1}ngOnInit(){const e=this.store.getProperty("mfa");this.imgAttrName=this.store.getProperty("mfa").security_image_attribute,this.textAttrName=this.store.getProperty("mfa").security_text_attribute,this.componentMapper={AddAuthImgDialogComponent:SU,AddAuthTextDialogComponent:EU},this.translate.onLangChange.subscribe(()=>{this.mfaUrl="en"===this.translate.currentLang?e.url_en:e.url_cs}),this.mfaUrl="en"===this.translate.currentLang?e.url_en:e.url_cs,this.displayImageBlock=this.store.getProperty("mfa").enable_security_image,this.displayImageBlock&&this.loadSecurityAttribute(this.imgAttrName,!0).subscribe(t=>{this.imgAtt=t}),this.displayTextBlock=this.store.getProperty("mfa").enable_security_text,this.displayTextBlock&&this.loadSecurityAttribute(this.textAttrName).subscribe(t=>{this.textAtt=t})}loadSecurityAttribute(e,t=!1){this.loading=!0;const r=new Le.x;return this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,e).subscribe({next:d=>{d?(t&&(this.imageSrc=d.value),r.next(d)):this.attributesManagerService.getAttributeDefinitionByName(e).subscribe(u=>{r.next(u)}),this.loading=!1},error:d=>{console.error(d),this.loading=!1}}),r.asObservable()}onAddAttribute(e,t,r,d){const u=ln();u.width="500px",u.data={theme:"user-theme",attribute:e},this.dialog.open(this.componentMapper[r],u).afterClosed().subscribe(o=>{o&&(this.notificatorService.showSuccess(this.translate.instant(`AUTHENTICATION.SAVE_${d}_SUCCESS`)),this.loadSecurityAttribute(t,"IMG"===d).subscribe(s=>{e=s}))})}onDeleteAttribute(e,t,r){const d=ln();d.width="600px";const u=this.translate.instant(`AUTHENTICATION.DELETE_${r}_DIALOG_TITLE`),c=this.translate.instant(`AUTHENTICATION.DELETE_${r}_DIALOG_DESC`);d.data={doNotShowValues:!0,attribute:e,userId:this.store.getPerunPrincipal().userId,title:u,description:c},this.dialog.open(SA,d).afterClosed().subscribe(s=>{s&&(this.notificatorService.showSuccess(this.translate.instant(`AUTHENTICATION.REMOVE_${r}_SUCCESS`)),this.loadSecurityAttribute(t,"IMG"===r).subscribe(l=>{e=l}))})}redirectToMfa(){window.open(this.mfaUrl,"_blank")}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on),n.Y36(jn),n.Y36(Ut),n.Y36(ac),n.Y36(Mr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-authentication"]],viewQuery:function(e,t){if(1&e&&n.Gf(NU,5),2&e){let r;n.iGM(r=n.CRH())&&(t.toggle=r.first)}},decls:13,vars:12,consts:[[3,"hidden"],["class","mb-5",4,"ngIf"],[1,"page-subtitle"],["mat-flat-button","","color","accent",1,"mb-2",3,"click"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mb-5"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-1","action-button",3,"click"],["color","warn","mat-flat-button","",3,"disabled","click"],["alt","",3,"src"],["class","security-text",4,"ngIf"],[1,"security-text"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,jU,18,22,"div",1),n.YNc(2,zU,18,22,"div",1),n.TgZ(3,"h1",2),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA(),n.TgZ(7,"button",3),n.NdJ("click",function(){return t.redirectToMfa()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n._UZ(10,"br")(11,"perun-web-apps-mfa-settings"),n.qZA(),n.YNc(12,UU,1,0,"mat-spinner",4)),2&e&&(n.Q6J("hidden",t.loading),n.xp6(1),n.Q6J("ngIf",t.displayImageBlock),n.xp6(1),n.Q6J("ngIf",t.displayTextBlock),n.xp6(2),n.Oqu(n.lcZ(5,6,n.lcZ(6,8,"AUTHENTICATION.MFA"))),n.xp6(4),n.hij(" ",n.lcZ(9,10,"AUTHENTICATION.MFA_INFO")," "),n.xp6(4),n.Q6J("ngIf",t.loading))},dependencies:[T.O5,Ht,Hn,BU,Ke,Xt],styles:[".security-text[_ngcontent-%COMP%]{font-family:FreeMono,monospace;color:gray}"]}),i})(),YU=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,Ka,eo,Tl,TL,po,Gs,Xs,Kp,gA]}),i})(),WU=(()=>{class i{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ql),n.Y36(Dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"button",4),n.NdJ("click",function(){return t.startAuth()}),n._uU(7),n.ALo(8,"translate"),n.TgZ(9,"mat-icon"),n._uU(10," login "),n.qZA()()()()()),2&e&&(n.xp6(4),n.hij(" ",n.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),n.xp6(3),n.hij(" ",n.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Ht,zn,Ke],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),i})();function GU(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",8),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let $U=(()=>{class i{constructor(e,t,r){this.authzService=e,this.auth=t,this.router=r,this.usernameCtrl=new zo(null,[bi.required]),this.passwordCtrl=new zo(null,[bi.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(As),n.Y36(Ql),n.Y36(Dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl","keyup.enter"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,GU,3,3,"perun-web-apps-alert",3),n.TgZ(7,"mat-form-field",4)(8,"mat-label"),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"input",5),n.NdJ("keyup.enter",function(){return t.startAuth()}),n.qZA(),n.TgZ(12,"mat-error"),n._uU(13),n.ALo(14,"translate"),n.qZA()(),n.TgZ(15,"mat-form-field",4)(16,"mat-label"),n._uU(17),n.ALo(18,"translate"),n.qZA(),n.TgZ(19,"input",6),n.NdJ("keyup.enter",function(){return t.startAuth()}),n.qZA(),n.TgZ(20,"mat-error"),n._uU(21),n.ALo(22,"translate"),n.qZA()(),n.TgZ(23,"button",7),n.NdJ("click",function(){return t.startAuth()}),n._uU(24),n.ALo(25,"translate"),n.TgZ(26,"mat-icon"),n._uU(27," login "),n.qZA()()()()()),2&e&&(n.xp6(4),n.Oqu(n.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),n.xp6(2),n.Q6J("ngIf",t.wrongUsernameOrPassword),n.xp6(3),n.Oqu(n.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),n.xp6(2),n.Q6J("formControl",t.usernameCtrl),n.xp6(2),n.hij(" ",n.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),n.xp6(4),n.Oqu(n.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),n.xp6(2),n.Q6J("formControl",t.passwordCtrl)("type","password"),n.xp6(2),n.hij(" ",n.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),n.xp6(2),n.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),n.xp6(1),n.hij(" ",n.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[T.O5,Ht,zn,Na,di,as,_i,Ai,Nr,sr,ji,yi,Ke],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),i})(),ZU=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-consents-page"]],decls:1,vars:0,template:function(e,t){1&e&&n._UZ(0,"router-outlet")},dependencies:[Wr]}),i})();function JU(i,a){1&i&&n._UZ(0,"mat-spinner",4)}function QU(i,a){if(1&i&&(n.TgZ(0,"li"),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.displayName," ")}}function XU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"h1",5),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"div",6),n._uU(6),n.qZA(),n.TgZ(7,"div"),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.TgZ(11,"ul"),n.YNc(12,QU,2,1,"li",7),n.qZA()(),n.TgZ(13,"div",0)(14,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.rejectConsent())}),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA(),n.TgZ(18,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.grantConsent())}),n._uU(19),n.ALo(20,"translate"),n.ALo(21,"customTranslate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,6,n.lcZ(4,8,"CONSENTS.REQUEST.TITLE"))," "),n.xp6(4),n.Oqu(e.consent.consentHub.name),n.xp6(2),n.hij(" ",n.lcZ(9,10,n.lcZ(10,12,"CONSENTS.REQUEST.CONSENT_TEXT_UNSIGNED")),": "),n.xp6(4),n.Q6J("ngForOf",e.consent.attributes),n.xp6(3),n.hij(" ",n.lcZ(16,14,n.lcZ(17,16,"CONSENTS.REQUEST.REJECT_CONSENT_BUTTON"))," "),n.xp6(4),n.hij(" ",n.lcZ(20,18,n.lcZ(21,20,"CONSENTS.REQUEST.GRANT_CONSENT_BUTTON"))," ")}}let KU=(()=>{class i{constructor(e,t,r,d,u,c){this.notificator=e,this.translate=t,this.consentService=r,this.route=d,this.apiRequest=u,this.router=c,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const t=Number(e.consentId);this.apiRequest.dontHandleErrorForNext(),this.consentService.getConsentById(t).subscribe({next:r=>{this.consent=r,"UNSIGNED"!==this.consent.status&&this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"}),this.loading=!1},error:r=>{this.loading=!1,"ConsentNotExistsException"!==r.name&&this.notificator.showRPCError(r),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})}})})}grantConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"GRANTED").subscribe(()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},()=>this.loading=!1)}rejectConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"REVOKED").subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_REJECTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Mr),n.Y36(sn),n.Y36(ys),n.Y36(mi),n.Y36(cg),n.Y36(Dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-consent-request"]],decls:4,vars:2,consts:[[1,"d-flex"],[1,"card","p-4","mat-elevation-z3","ml-auto","mr-auto"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],[1,"page-subtitle"],[4,"ngFor","ngForOf"],["mat-flat-button","","color","warn",1,"mr-2","ml-auto",3,"click"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,JU,1,0,"mat-spinner",2),n.YNc(3,XU,22,22,"div",3),n.qZA()()),2&e&&(n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.sg,T.O5,Ht,Hn,Ke,Xt],styles:[".minimize-checkbox{font-size:.7rem;color:gray}\n"],encapsulation:2}),i})();function eq(i,a){1&i&&(n.TgZ(0,"span")(1,"mat-icon",1),n._uU(2,"priority_high"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,n.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function tq(i,a){1&i&&(n.TgZ(0,"span")(1,"mat-icon",1),n._uU(2,"close"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,n.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function nq(i,a){1&i&&(n.TgZ(0,"span")(1,"mat-icon",2),n._uU(2,"check"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,n.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let iq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-consent-status"]],inputs:{consentStatus:"consentStatus"},decls:3,vars:3,consts:[[4,"ngIf"],["color","warn"],["color","accent"]],template:function(e,t){1&e&&(n.YNc(0,eq,7,5,"span",0),n.YNc(1,tq,7,5,"span",0),n.YNc(2,nq,7,5,"span",0)),2&e&&(n.Q6J("ngIf","UNSIGNED"===t.consentStatus),n.xp6(1),n.Q6J("ngIf","REVOKED"===t.consentStatus),n.xp6(1),n.Q6J("ngIf","GRANTED"===t.consentStatus))},dependencies:[T.O5,zn,Ke,Xt],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),i})();function rq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"th",16)(1,"mat-checkbox",17),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(r?d.masterToggle():null)}),n.qZA()()}if(2&i){const e=n.oxw().ngIf,t=n.oxw();n.xp6(1),n.Q6J("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function aq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",18)(1,"mat-checkbox",19),n.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.selection.toggle(u):null)}),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("checked",t.selection.isSelected(e))}}function sq(i,a){1&i&&(n.ynx(0,13),n.YNc(1,rq,2,2,"th",14),n.YNc(2,aq,2,1,"td",15),n.BQk())}function oq(i,a){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.STATUS"))," "))}function lq(i,a){if(1&i&&(n.TgZ(0,"td",21),n._UZ(1,"perun-web-apps-consent-status",22),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Q6J("consentStatus",e.status)}}function cq(i,a){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.SERVICE_NAME"))," "))}function dq(i,a){if(1&i&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.consentHub.name," ")}}function uq(i,a){1&i&&(n.TgZ(0,"div"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANTED_TEXT"))," : "))}function hq(i,a){1&i&&(n.TgZ(0,"div"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKED_TEXT"))," : "))}function pq(i,a){1&i&&(n.TgZ(0,"div"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.UNSIGNED_TEXT"))," : "))}function fq(i,a){if(1&i&&(n.TgZ(0,"li"),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.displayName," ")}}function mq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",30),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.rejectConsent.emit(r.id))}),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()}if(2&i){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"UNSIGNED"===e.status?"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REJECT_CONSENT_BUTTON":"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKE_CONSENT_BUTTON"))," ")}}function gq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",31),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.grantConsent.emit(r.id))}),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANT_CONSENT_BUTTON"))," "))}function _q(i,a){if(1&i&&(n.TgZ(0,"td",21)(1,"div",23)(2,"div",24),n.YNc(3,uq,4,5,"div",25),n.YNc(4,hq,4,5,"div",25),n.YNc(5,pq,4,5,"div",25),n.TgZ(6,"ul"),n.YNc(7,fq,2,1,"li",26),n.qZA(),n.TgZ(8,"div",27),n.YNc(9,mq,4,5,"button",28),n.YNc(10,gq,4,5,"button",29),n.qZA()()()()),2&i){const e=a.$implicit,t=n.oxw();n.uIk("colspan",t.displayedColumns.length),n.xp6(1),n.Q6J("@detailExpand",e===t.expandedConsent?"expanded":"collapsed"),n.xp6(2),n.Q6J("ngIf","GRANTED"===e.status),n.xp6(1),n.Q6J("ngIf","REVOKED"===e.status),n.xp6(1),n.Q6J("ngIf","UNSIGNED"===e.status),n.xp6(2),n.Q6J("ngForOf",e.attributes),n.xp6(2),n.Q6J("ngIf","REVOKED"!==e.status),n.xp6(1),n.Q6J("ngIf","GRANTED"!==e.status)}}function bq(i,a){1&i&&n._UZ(0,"tr",32)}function Aq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"tr",33),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.expandedConsent=u.expandedConsent===d?null:d)}),n.qZA()}if(2&i){const e=a.$implicit,t=n.oxw();n.ekj("example-expanded-row",t.expandedConsent===e)}}function yq(i,a){1&i&&n._UZ(0,"tr",34)}function wq(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",35),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT")),"\n"))}function Mq(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",35),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.NO_CONSENTS")),"\n"))}const Cq=function(i){return{all:i}},vq=function(){return["expandedDetail"]};let Tq=(()=>{class i{constructor(e){this.tableCheckbox=e,this.filterValue="",this.consents=[],this.selection=new Yi(!0,[]),this.displayedColumns=["select","status","name"],this.grantConsent=new n.vpe,this.rejectConsent=new n.vpe,this.pageSizeOptions=Gl}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"name":return e.consentHub.name;case"status":return e.status;default:return""}}ngOnChanges(){this.dataSource=new $o(this.consents),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Zl(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>$l(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(lA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-consents-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(os,7),n.Gf(ps,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{filterValue:"filterValue",tableId:"tableId",consents:"consents",selection:"selection",displayedColumns:"displayedColumns"},outputs:{grantConsent:"grantConsent",rejectConsent:"rejectConsent"},features:[n.TTD],decls:18,vars:17,consts:[[1,"card",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","status","matSortDirection","asc","matSortDisableClear","","multiTemplateDataRows","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item consent-row",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","consent-detail-row",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"consentStatus"],[1,"consent-detail"],[1,"p-3"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"d-flex"],["mat-flat-button","","class","mr-2","color","warn",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item","consent-row",3,"click"],["mat-row","",1,"consent-detail-row"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,sq,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,oq,4,5,"th",5),n.YNc(7,lq,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,cq,4,5,"th",5),n.YNc(10,dq,2,1,"td",6),n.BQk(),n.ynx(11,8),n.YNc(12,_q,11,8,"td",6),n.BQk(),n.YNc(13,bq,1,0,"tr",9),n.YNc(14,Aq,1,2,"tr",10),n.YNc(15,yq,1,0,"tr",11),n.qZA()()(),n.YNc(16,wq,4,5,"perun-web-apps-alert",12),n.YNc(17,Mq,4,5,"perun-web-apps-alert",12)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(14,Cq,n.xi3(4,11,t.dataSource,t.selection.selected.length))),n.xp6(10),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",n.DdM(16,vq)),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.data.length))},dependencies:[T.sg,T.O5,ic,io,cs,ro,ds,ls,ao,us,hs,so,oo,ps,Ag,yi,Ht,os,iq,Ke,Xt,pT],styles:["tr.consent-detail-row[_ngcontent-%COMP%]{height:0!important}.consent-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{cursor:pointer;border-bottom-width:0!important}.consent-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex;flex-direction:column}th[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%]{padding:0!important}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:1rem!important}"],data:{animation:[En("detailExpand",[ut("collapsed",je({height:"0px",minHeight:"0"})),ut("expanded",je({height:"*"})),Ot("expanded <=> collapsed",Rt("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),i})();const HL=function(){return["status","name"]};function xq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",4),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",5),n.NdJ("filter",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.applyFilterUnsigned(r))}),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.TgZ(8,"perun-web-apps-consents-list",6),n.NdJ("grantConsent",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.grantConsent(r))})("rejectConsent",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.rejectConsent(r))}),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,6,n.lcZ(4,8,"CONSENTS.UNSIGNED_CONSENTS"))," "),n.xp6(3),n.Q6J("placeholder",n.lcZ(6,10,n.lcZ(7,12,"CONSENTS.FILTER"))),n.xp6(3),n.Q6J("consents",e.unsignedConsents)("filterValue",e.filterValueUnsigned)("tableId","TABLE_USER_CONSENTS")("displayedColumns",n.DdM(14,HL))}}function Sq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",7),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",5),n.NdJ("filter",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.applyFilterSigned(r))}),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.TgZ(8,"perun-web-apps-consents-list",8),n.NdJ("grantConsent",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.grantConsent(r))})("rejectConsent",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.rejectConsent(r))}),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,6,n.lcZ(4,8,"CONSENTS.PROCESSED_CONSENTS"))," "),n.xp6(3),n.Q6J("placeholder",n.lcZ(6,10,n.lcZ(7,12,"CONSENTS.FILTER"))),n.xp6(3),n.Q6J("consents",e.signedConsents)("tableId","TABLE_USER_CONSENTS")("filterValue",e.filterValueSigned)("displayedColumns",n.DdM(14,HL))}}function Eq(i,a){1&i&&n._UZ(0,"mat-spinner",9)}let Dq=(()=>{class i{constructor(e,t,r,d,u){this.router=e,this.notificator=t,this.translate=r,this.storeService=d,this.consentService=u,this.loading=!1,this.unsignedConsents=[],this.signedConsents=[],this.filterValueUnsigned="",this.filterValueSigned=""}ngOnInit(){this.loading=!0,this.consentService.getConsentsForUser(this.storeService.getPerunPrincipal().userId).subscribe(e=>{this.unsignedConsents=e.filter(t=>"UNSIGNED"===t.status),this.signedConsents=e.filter(t=>"UNSIGNED"!==t.status),this.loading=!1},()=>this.loading=!1)}grantAll(){this.loading=!0,this.notificator.showSuccess(this.translate.instant("CONSENTS.GRANT_ALL_NOTIFICATION")),this.loading=!1}rejectConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"REVOKED").subscribe(()=>{const t=this.unsignedConsents.find(d=>d.id===e)??this.signedConsents.find(d=>d.id===e);this.moveConsent(t);const r=this.translate.instant("GRANTED"===t.status?"CONSENTS.CONSENT_REVOKED":"CONSENTS.CONSENT_REJECTED");t.status="REVOKED",this.notificator.showSuccess(r+t.consentHub.name),this.loading=!1},()=>this.loading=!1)}moveConsent(e){"UNSIGNED"===e.status&&(this.signedConsents=[...this.signedConsents,e],this.unsignedConsents=this.unsignedConsents.filter(t=>t.id!==e.id))}grantConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"GRANTED").subscribe(()=>{const t=this.unsignedConsents.find(r=>r.id===e)??this.signedConsents.find(r=>r.id===e);this.moveConsent(t),t.status="GRANTED",this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+t.consentHub.name),this.loading=!1},()=>this.loading=!1)}applyFilterUnsigned(e){this.filterValueUnsigned=e}applyFilterSigned(e){this.filterValueSigned=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Dn),n.Y36(Mr),n.Y36(sn),n.Y36(Ut),n.Y36(ys))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-consents-preview"]],decls:8,vars:8,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"page-subtitle"],[3,"placeholder","filter"],[3,"consents","filterValue","tableId","displayedColumns","grantConsent","rejectConsent"],[1,"page-subtitle","mt-4"],[3,"consents","tableId","filterValue","displayedColumns","grantConsent","rejectConsent"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,xq,9,15,"div",2),n.YNc(6,Sq,9,15,"div",2),n.YNc(7,Eq,1,0,"mat-spinner",3),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,4,n.lcZ(3,6,"CONSENTS.TITLE")),"\n"),n.xp6(4),n.Q6J("ngIf",!t.loading&&0!==t.unsignedConsents.length),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading))},dependencies:[T.O5,cf,Tq,Hn,Ke,Xt]}),i})();function Lq(i,a){1&i&&n._UZ(0,"mat-spinner",6)}function Hq(i,a){if(1&i&&(n.TgZ(0,"div",7),n._UZ(1,"perun-web-apps-password-form",8),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("formGroup",e.pwdForm)("namespace",e.data.namespace)("language",e.lang)}}let Rq=(()=>{class i{constructor(e,t,r,d,u,c,o){this.dialogRef=e,this.data=t,this.userManager=r,this.notificator=d,this.translate=u,this.formBuilder=c,this.apiRequestConfiguration=o,this.loading=!1,this.lang=this.translate.currentLang,this.pwdForm=this.formBuilder.group({passwordCtrl:["",bi.required,[QE(this.data.namespace,this.userManager,this.apiRequestConfiguration)]],passwordAgainCtrl:["",bi.required]},{validators:hE.passwordMatchValidator})}cancel(){this.dialogRef.close()}activate(){this.loading=!0;const e=this.pwdForm.get("passwordCtrl").value;this.userManager.reservePasswordForUser({user:this.data.userId,namespace:this.data.namespace,password:e}).pipe((0,An.w)(()=>this.userManager.validatePasswordForUser(this.data.userId,this.data.namespace))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ACTIVATE_LOCAL_ACCOUNT.SUCCESS")),this.dialogRef.close()},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(li),n.Y36(Mr),n.Y36(sn),n.Y36(pd),n.Y36(cg))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-activate-local-account-dialog"]],decls:15,vars:18,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup","namespace","language"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,Lq,1,0,"mat-spinner",1),n.YNc(5,Hq,2,3,"div",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return t.activate()}),n._uU(12),n.ALo(13,"translate"),n.ALo(14,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,6,n.lcZ(3,8,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.TITLE"))),n.xp6(3),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(3),n.hij(" ",n.lcZ(9,10,n.lcZ(10,12,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",t.loading||t.pwdForm.invalid),n.xp6(1),n.hij(" ",n.lcZ(13,14,n.lcZ(14,16,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.ACTIVATE"))," "))},dependencies:[T.O5,Ht,Xn,ii,Un,dd,Qs,Hn,XE,Ke,Xt]}),i})();function Pq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",4),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.openPwdReset())}),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"LOCAL_ACCOUNT.CHANGE_PWD"))," "))}function kq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",4),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.activateAccount())}),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"LOCAL_ACCOUNT.ACTIVATE"))," "))}function Oq(i,a){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,Pq,4,5,"button",3),n.YNc(2,kq,4,5,"button",3),n.qZA()),2&i){const e=a.ngIf;n.xp6(1),n.Q6J("ngIf",e.exists),n.xp6(1),n.Q6J("ngIf",!e.exists)}}const Iq=function(i){return{exists:i}},Bq=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"login",component:WU},{path:"service-access",component:$U},{path:"profile",component:wU,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:BB,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:gN,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:e3,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:gV,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:SV,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:yU,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"consents",component:ZU,data:{breadcrumb:"MENU_ITEMS.CONSENTS"},children:[{path:"",component:Dq,data:{breadcrumb:"MENU_ITEMS.CONSENTS"}},{path:":consentId",component:KU,data:{breadcrumb:"MENU_ITEMS.CONSENT_REQUEST"}}]},{path:"settings",component:EV,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:ZV,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:GV,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:qU,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:(()=>{class i{constructor(e){this.store=e}ngOnInit(){this.user=this.store.getPerunPrincipal().user}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-data-quotas"]],decls:1,vars:1,consts:[[3,"user"]],template:function(e,t){1&e&&n._UZ(0,"perun-web-apps-data-quotas",0),2&e&&n.Q6J("user",t.user)},dependencies:[Hz]}),i})(),data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"localAccount",component:(()=>{class i{constructor(e,t,r,d,u){this.userService=e,this.store=t,this.appUrlService=r,this.dialog=d,this.router=u,this.userId=this.store.getPerunPrincipal().userId,this.namespace=this.store.getProperty("local_account_namespace"),this.loginExists$=this.userService.loginExist(this.userId,this.namespace)}openPwdReset(){let e=this.appUrlService.getUrlForOtherApplication(Go.PwdReset,this.namespace);e+="&reset=true",window.open(e,"_blank")}activateAccount(){const e=ln();e.width="550px",e.data={userId:this.userId,namespace:this.namespace},this.dialog.open(Rq,e).afterClosed().subscribe(()=>{this.router.navigate(["/profile","settings","localAccount"],{queryParamsHandling:"merge"})})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Ut),n.Y36(cA),n.Y36(on),n.Y36(Dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-local-account"]],decls:10,vars:15,consts:[[1,"page-title"],[1,"page-subtitle"],[4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.YNc(8,Oq,3,2,"div",2),n.ALo(9,"async")),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,3,n.lcZ(3,5,"LOCAL_ACCOUNT.TITLE"))),n.xp6(4),n.hij(" ",n.lcZ(6,7,n.lcZ(7,9,"LOCAL_ACCOUNT.DESC")),"\n"),n.xp6(3),n.Q6J("ngIf",n.VKq(13,Iq,n.lcZ(9,11,t.loginExists$))))},dependencies:[T.O5,Ht,T.Ov,Ke,Xt]}),i})(),data:{breadcrumb:"SETTINGS.LOCAL_ACCOUNT"}},{path:"mailingLists",component:(()=>{class i{constructor(e){this.store=e}ngOnInit(){this.user=this.store.getPerunPrincipal().user}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-mailing-lists"]],decls:1,vars:2,consts:[[3,"user","isService"]],template:function(e,t){1&e&&n._UZ(0,"perun-web-apps-mailing-lists",0),2&e&&n.Q6J("user",t.user)("isService",!1)},dependencies:[Nz]}),i})(),data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:ej,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:aj,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:cj,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:Fz,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:ez,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let Nq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Tl.forRoot(Bq,{preloadingStrategy:xy,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})]}),i})();class Vq{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}function RL(i){return new n.vHH(3e3,!1)}function w4(){return typeof window<"u"&&typeof window.document<"u"}function TT(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Td(i){switch(i.length){case 0:return new Ru;case 1:return i[0];default:return new y_(i)}}function PL(i,a,e,t,r=new Map,d=new Map){const u=[],c=[];let o=-1,s=null;if(t.forEach(l=>{const h=l.get("offset"),p=h==o,m=p&&s||new Map;l.forEach((g,f)=>{let w=f,N=g;if("offset"!==f)switch(w=a.normalizePropertyName(w,u),N){case"!":N=r.get(f);break;case ns:N=d.get(f);break;default:N=a.normalizeStyleValue(f,w,N,u)}m.set(w,N)}),p||c.push(m),s=m,o=h}),u.length)throw function c4(i){return new n.vHH(3502,!1)}();return c}function xT(i,a,e,t){switch(a){case"start":i.onStart(()=>t(e&&ST(e,"start",i)));break;case"done":i.onDone(()=>t(e&&ST(e,"done",i)));break;case"destroy":i.onDestroy(()=>t(e&&ST(e,"destroy",i)))}}function ST(i,a,e){const d=ET(i.element,i.triggerName,i.fromState,i.toState,a||i.phaseName,e.totalTime??i.totalTime,!!e.disabled),u=i._data;return null!=u&&(d._data=u),d}function ET(i,a,e,t,r="",d=0,u){return{element:i,triggerName:a,fromState:e,toState:t,phaseName:r,totalTime:d,disabled:!!u}}function za(i,a,e){let t=i.get(a);return t||i.set(a,t=e),t}function kL(i){const a=i.indexOf(":");return[i.substring(1,a),i.slice(a+1)]}let DT=(i,a)=>!1,OL=(i,a,e)=>[],IL=null;function LT(i){const a=i.parentNode||i.host;return a===IL?null:a}(TT()||typeof Element<"u")&&(w4()?(IL=(()=>document.documentElement)(),DT=(i,a)=>{for(;a;){if(a===i)return!0;a=LT(a)}return!1}):DT=(i,a)=>i.contains(a),OL=(i,a,e)=>{if(e)return Array.from(i.querySelectorAll(a));const t=i.querySelector(a);return t?[t]:[]});let Zu=null,BL=!1;const NL=DT,VL=OL;let jL=(()=>{class i{validateStyleProperty(e){return function C4(i){Zu||(Zu=function v4(){return typeof document<"u"?document.body:null}()||{},BL=!!Zu.style&&"WebkitAppearance"in Zu.style);let a=!0;return Zu.style&&!function M4(i){return"ebkit"==i.substring(1,6)}(i)&&(a=i in Zu.style,!a&&BL&&(a="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Zu.style)),a}(e)}matchesElement(e,t){return!1}containsElement(e,t){return NL(e,t)}getParentElement(e){return LT(e)}query(e,t,r){return VL(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,d,u,c=[],o){return new Ru(r,d)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),HT=(()=>{class i{}return i.NOOP=new jL,i})();const RT="ng-enter",qA="ng-leave",YA="ng-trigger",WA=".ng-trigger",zL="ng-animating",PT=".ng-animating";function xd(i){if("number"==typeof i)return i;const a=i.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:kT(parseFloat(a[1]),a[2])}function kT(i,a){return"s"===a?1e3*i:i}function GA(i,a,e){return i.hasOwnProperty("duration")?i:function S4(i,a,e){let r,d=0,u="";if("string"==typeof i){const c=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===c)return a.push(RL()),{duration:0,delay:0,easing:""};r=kT(parseFloat(c[1]),c[2]);const o=c[3];null!=o&&(d=kT(parseFloat(o),c[4]));const s=c[5];s&&(u=s)}else r=i;if(!e){let c=!1,o=a.length;r<0&&(a.push(function jq(){return new n.vHH(3100,!1)}()),c=!0),d<0&&(a.push(function Fq(){return new n.vHH(3101,!1)}()),c=!0),c&&a.splice(o,0,RL())}return{duration:r,delay:d,easing:u}}(i,a,e)}function Tg(i,a={}){return Object.keys(i).forEach(e=>{a[e]=i[e]}),a}function UL(i){const a=new Map;return Object.keys(i).forEach(e=>{a.set(e,i[e])}),a}function Sd(i,a=new Map,e){if(e)for(let[t,r]of e)a.set(t,r);for(let[t,r]of i)a.set(t,r);return a}function YL(i,a,e){return e?a+":"+e+";":""}function WL(i){let a="";for(let e=0;e{const d=IT(r);e&&!e.has(r)&&e.set(r,i.style[d]),i.style[d]=t}),TT()&&WL(i))}function Ju(i,a){i.style&&(a.forEach((e,t)=>{const r=IT(t);i.style[r]=""}),TT()&&WL(i))}function xg(i){return Array.isArray(i)?1==i.length?i[0]:G0(i):i}const OT=new RegExp("{{\\s*(.+?)\\s*}}","g");function GL(i){let a=[];if("string"==typeof i){let e;for(;e=OT.exec(i);)a.push(e[1]);OT.lastIndex=0}return a}function $A(i,a,e){const t=i.toString(),r=t.replace(OT,(d,u)=>{let c=a[u];return null==c&&(e.push(function Uq(i){return new n.vHH(3003,!1)}()),c=""),c.toString()});return r==t?i:r}function ZA(i){const a=[];let e=i.next();for(;!e.done;)a.push(e.value),e=i.next();return a}const L4=/-+([a-z0-9])/g;function IT(i){return i.replace(L4,(...a)=>a[1].toUpperCase())}function H4(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ua(i,a,e){switch(a.type){case 7:return i.visitTrigger(a,e);case 0:return i.visitState(a,e);case 1:return i.visitTransition(a,e);case 2:return i.visitSequence(a,e);case 3:return i.visitGroup(a,e);case 4:return i.visitAnimate(a,e);case 5:return i.visitKeyframes(a,e);case 6:return i.visitStyle(a,e);case 8:return i.visitReference(a,e);case 9:return i.visitAnimateChild(a,e);case 10:return i.visitAnimateRef(a,e);case 11:return i.visitQuery(a,e);case 12:return i.visitStagger(a,e);default:throw function qq(i){return new n.vHH(3004,!1)}()}}function $L(i,a){return window.getComputedStyle(i)[a]}function B4(i,a){const e=[];return"string"==typeof i?i.split(/\s*,\s*/).forEach(t=>function N4(i,a,e){if(":"==i[0]){const o=function V4(i,a){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(i,e);if("function"==typeof o)return void a.push(o);i=o}const t=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function r4(i){return new n.vHH(3015,!1)}()),a;const r=t[1],d=t[2],u=t[3];a.push(ZL(r,u));"<"==d[0]&&!("*"==r&&"*"==u)&&a.push(ZL(u,r))}(t,e,a)):e.push(i),e}const KA=new Set(["true","1"]),ey=new Set(["false","0"]);function ZL(i,a){const e=KA.has(i)||ey.has(i),t=KA.has(a)||ey.has(a);return(r,d)=>{let u="*"==i||i==r,c="*"==a||a==d;return!u&&e&&"boolean"==typeof r&&(u=r?KA.has(i):ey.has(i)),!c&&t&&"boolean"==typeof d&&(c=d?KA.has(a):ey.has(a)),u&&c}}const j4=new RegExp("s*:selfs*,?","g");function BT(i,a,e,t){return new F4(i).build(a,e,t)}class F4{constructor(a){this._driver=a}build(a,e,t){const r=new q4(e);return this._resetContextStyleTimingState(r),Ua(this,xg(a),r)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,r=e.depCount=0;const d=[],u=[];return"@"==a.name.charAt(0)&&e.errors.push(function Wq(){return new n.vHH(3006,!1)}()),a.definitions.forEach(c=>{if(this._resetContextStyleTimingState(e),0==c.type){const o=c,s=o.name;s.toString().split(/\s*,\s*/).forEach(l=>{o.name=l,d.push(this.visitState(o,e))}),o.name=s}else if(1==c.type){const o=this.visitTransition(c,e);t+=o.queryCount,r+=o.depCount,u.push(o)}else e.errors.push(function Gq(){return new n.vHH(3007,!1)}())}),{type:7,name:a.name,states:d,transitions:u,queryCount:t,depCount:r,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),r=a.options&&a.options.params||null;if(t.containsDynamicStyles){const d=new Set,u=r||{};t.styles.forEach(c=>{c instanceof Map&&c.forEach(o=>{GL(o).forEach(s=>{u.hasOwnProperty(s)||d.add(s)})})}),d.size&&(ZA(d.values()),e.errors.push(function $q(i,a){return new n.vHH(3008,!1)}()))}return{type:0,name:a.name,style:t,options:r?{params:r}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Ua(this,xg(a.animation),e);return{type:1,matchers:B4(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Qu(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Ua(this,t,e)),options:Qu(a.options)}}visitGroup(a,e){const t=e.currentTime;let r=0;const d=a.steps.map(u=>{e.currentTime=t;const c=Ua(this,u,e);return r=Math.max(r,e.currentTime),c});return e.currentTime=r,{type:3,steps:d,options:Qu(a.options)}}visitAnimate(a,e){const t=function W4(i,a){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return NT(GA(i,a).duration,0,"");const e=i;if(e.split(/\s+/).some(d=>"{"==d.charAt(0)&&"{"==d.charAt(1))){const d=NT(0,0,"");return d.dynamic=!0,d.strValue=e,d}const r=GA(e,a);return NT(r.duration,r.delay,r.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let r,d=a.styles?a.styles:je({});if(5==d.type)r=this.visitKeyframes(d,e);else{let u=a.styles,c=!1;if(!u){c=!0;const s={};t.easing&&(s.easing=t.easing),u=je(s)}e.currentTime+=t.duration+t.delay;const o=this.visitStyle(u,e);o.isEmptyStep=c,r=o}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[],r=Array.isArray(a.styles)?a.styles:[a.styles];for(let c of r)"string"==typeof c?c===ns?t.push(c):e.errors.push(new n.vHH(3002,!1)):t.push(UL(c));let d=!1,u=null;return t.forEach(c=>{if(c instanceof Map&&(c.has("easing")&&(u=c.get("easing"),c.delete("easing")),!d))for(let o of c.values())if(o.toString().indexOf("{{")>=0){d=!0;break}}),{type:6,styles:t,easing:u,offset:a.offset,containsDynamicStyles:d,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let r=e.currentTime,d=e.currentTime;t&&d>0&&(d-=t.duration+t.delay),a.styles.forEach(u=>{"string"!=typeof u&&u.forEach((c,o)=>{const s=e.collectedStyles.get(e.currentQuerySelector),l=s.get(o);let h=!0;l&&(d!=r&&d>=l.startTime&&r<=l.endTime&&(e.errors.push(function Jq(i,a,e,t,r){return new n.vHH(3010,!1)}()),h=!1),d=l.startTime),h&&s.set(o,{startTime:d,endTime:r}),e.options&&function D4(i,a,e){const t=a.params||{},r=GL(i);r.length&&r.forEach(d=>{t.hasOwnProperty(d)||e.push(function zq(i){return new n.vHH(3001,!1)}())})}(c,e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Qq(){return new n.vHH(3011,!1)}()),t;let d=0;const u=[];let c=!1,o=!1,s=0;const l=a.steps.map(N=>{const se=this._makeStyleAst(N,e);let Pe=null!=se.offset?se.offset:function Y4(i){if("string"==typeof i)return null;let a=null;if(Array.isArray(i))i.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;a=parseFloat(t.get("offset")),t.delete("offset")}});else if(i instanceof Map&&i.has("offset")){const e=i;a=parseFloat(e.get("offset")),e.delete("offset")}return a}(se.styles),ot=0;return null!=Pe&&(d++,ot=se.offset=Pe),o=o||ot<0||ot>1,c=c||ot0&&d{const Pe=p>0?se==m?1:p*se:u[se],ot=Pe*w;e.currentTime=g+f.delay+ot,f.duration=ot,this._validateStyleAst(N,e),N.offset=Pe,t.styles.push(N)}),t}visitReference(a,e){return{type:8,animation:Ua(this,xg(a.animation),e),options:Qu(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:Qu(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:Qu(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,r=a.options||{};e.queryCount++,e.currentQuery=a;const[d,u]=function z4(i){const a=!!i.split(/\s*,\s*/).find(e=>":self"==e);return a&&(i=i.replace(j4,"")),i=i.replace(/@\*/g,WA).replace(/@\w+/g,e=>WA+"-"+e.slice(1)).replace(/:animating/g,PT),[i,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+d:d,za(e.collectedStyles,e.currentQuerySelector,new Map);const c=Ua(this,xg(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:d,limit:r.limit||0,optional:!!r.optional,includeSelf:u,animation:c,originalSelector:a.selector,options:Qu(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push(function t4(){return new n.vHH(3013,!1)}());const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:GA(a.timings,e.errors,!0);return{type:12,animation:Ua(this,xg(a.animation),e),timings:t,options:null}}}class q4{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Qu(i){return i?(i=Tg(i)).params&&(i.params=function U4(i){return i?Tg(i):null}(i.params)):i={},i}function NT(i,a,e){return{duration:i,delay:a,easing:e}}function VT(i,a,e,t,r,d,u=null,c=!1){return{type:1,element:i,keyframes:a,preStyleProps:e,postStyleProps:t,duration:r,delay:d,totalTime:r+d,easing:u,subTimeline:c}}class ty{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const Z4=new RegExp(":enter","g"),Q4=new RegExp(":leave","g");function jT(i,a,e,t,r,d=new Map,u=new Map,c,o,s=[]){return(new X4).buildKeyframes(i,a,e,t,r,d,u,c,o,s)}class X4{buildKeyframes(a,e,t,r,d,u,c,o,s,l=[]){s=s||new ty;const h=new FT(a,e,s,r,d,l,[]);h.options=o;const p=o.delay?xd(o.delay):0;h.currentTimeline.delayNextStep(p),h.currentTimeline.setStyles([u],null,h.errors,o),Ua(this,t,h);const m=h.timelines.filter(g=>g.containsAnimation());if(m.length&&c.size){let g;for(let f=m.length-1;f>=0;f--){const w=m[f];if(w.element===e){g=w;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([c],null,h.errors,o)}return m.length?m.map(g=>g.buildKeyframes()):[VT(e,[],[],[],0,p,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(a.options),d=e.currentTimeline.currentTime,u=this._visitSubInstructions(t,r,r.options);d!=u&&e.transformIntoNewTimeline(u)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let d=e.currentTimeline.currentTime;const u=null!=t.duration?xd(t.duration):null,c=null!=t.delay?xd(t.delay):null;return 0!==u&&a.forEach(o=>{const s=e.appendInstructionToTimeline(o,u,c);d=Math.max(d,s.duration+s.delay)}),d}visitReference(a,e){e.updateOptions(a.options,!0),Ua(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let r=e;const d=a.options;if(d&&(d.params||d.delay)&&(r=e.createSubContext(d),r.transformIntoNewTimeline(),null!=d.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ny);const u=xd(d.delay);r.delayNextStep(u)}a.steps.length&&(a.steps.forEach(u=>Ua(this,u,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let r=e.currentTimeline.currentTime;const d=a.options&&a.options.delay?xd(a.options.delay):0;a.steps.forEach(u=>{const c=e.createSubContext(a.options);d&&c.delayNextStep(d),Ua(this,u,c),r=Math.max(r,c.currentTimeline.currentTime),t.push(c.currentTimeline)}),t.forEach(u=>e.currentTimeline.mergeTimelineCollectedStyles(u)),e.transformIntoNewTimeline(r),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return GA(e.params?$A(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const d=a.style;5==d.type?this.visitKeyframes(d,e):(e.incrementTime(t.duration),this.visitStyle(d,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();const d=r&&r.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(d):t.setStyles(a.styles,d,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,d=t.duration,c=e.createSubContext().currentTimeline;c.easing=t.easing,a.styles.forEach(o=>{c.forwardTime((o.offset||0)*d),c.setStyles(o.styles,o.easing,e.errors,e.options),c.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(c),e.transformIntoNewTimeline(r+d),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,r=a.options||{},d=r.delay?xd(r.delay):0;d&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ny);let u=t;const c=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=c.length;let o=null;c.forEach((s,l)=>{e.currentQueryIndex=l;const h=e.createSubContext(a.options,s);d&&h.delayNextStep(d),s===e.element&&(o=h.currentTimeline),Ua(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),u=Math.max(u,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(u),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,r=e.currentTimeline,d=a.timings,u=Math.abs(d.duration),c=u*(e.currentQueryTotal-1);let o=u*e.currentQueryIndex;switch(d.duration<0?"reverse":d.easing){case"reverse":o=c-o;break;case"full":o=t.currentStaggerTime}const l=e.currentTimeline;o&&l.delayNextStep(o);const h=l.currentTime;Ua(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const ny={};class FT{constructor(a,e,t,r,d,u,c,o){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=d,this.errors=u,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ny,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new iy(this._driver,e,0),c.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let r=this.options;null!=t.duration&&(r.duration=xd(t.duration)),null!=t.delay&&(r.delay=xd(t.delay));const d=t.params;if(d){let u=r.params;u||(u=this.options.params={}),Object.keys(d).forEach(c=>{(!e||!u.hasOwnProperty(c))&&(u[c]=$A(d[c],u,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return a}createSubContext(a=null,e,t){const r=e||this.element,d=new FT(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return d.previousNode=this.previousNode,d.currentAnimateTimings=this.currentAnimateTimings,d.options=this._copyOptions(),d.updateOptions(a),d.currentQueryIndex=this.currentQueryIndex,d.currentQueryTotal=this.currentQueryTotal,d.parentContext=this,this.subContextCount++,d}transformIntoNewTimeline(a){return this.previousNode=ny,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const r={duration:e??a.duration,delay:this.currentTimeline.currentTime+(t??0)+a.delay,easing:""},d=new K4(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,r,a.stretchStartingKeyframe);return this.timelines.push(d),r}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,r,d,u){let c=[];if(r&&c.push(this.element),a.length>0){a=(a=a.replace(Z4,"."+this._enterClassName)).replace(Q4,"."+this._leaveClassName);let s=this._driver.query(this.element,a,1!=t);0!==t&&(s=t<0?s.slice(s.length+t,s.length):s.slice(0,t)),c.push(...s)}return!d&&0==c.length&&u.push(function n4(i){return new n.vHH(3014,!1)}()),c}}class iy{constructor(a,e,t,r){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(a){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new iy(this._driver,a,e||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+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles.set(a,e),this._globalTimelineStyles.set(a,e),this._styleSummary.set(a,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||ns),this._currentKeyframe.set(e,ns);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,r){e&&this._previousKeyframe.set("easing",e);const d=r&&r.params||{},u=function e6(i,a){const e=new Map;let t;return i.forEach(r=>{if("*"===r){t=t||a.keys();for(let d of t)e.set(d,ns)}else Sd(r,e)}),e}(a,this._globalTimelineStyles);for(let[o,s]of u){const l=$A(s,d,t);var c;this._pendingStyles.set(o,l),this._localTimelineStyles.has(o)||this._backFill.set(o,null!==(c=this._globalTimelineStyles.get(o))&&void 0!==c?c:ns),this._updateStyle(o,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,e)=>{this._currentKeyframe.set(e,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,a)}))}snapshotCurrentStyles(){for(let[a,e]of this._localTimelineStyles)this._pendingStyles.set(a,e),this._updateStyle(a,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((e,t)=>{const r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((c,o)=>{const s=Sd(c,new Map,this._backFill);s.forEach((l,h)=>{"!"===l?a.add(h):l===ns&&e.add(h)}),t||s.set("offset",o/this.duration),r.push(s)});const d=a.size?ZA(a.values()):[],u=e.size?ZA(e.values()):[];if(t){const c=r[0],o=new Map(c);c.set("offset",0),o.set("offset",1),r=[c,o]}return VT(this.element,r,d,u,this.duration,this.startTime,this.easing,!1)}}class K4 extends iy{constructor(a,e,t,r,d,u,c=!1){super(a,e,u.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=d,this._stretchStartingKeyframe=c,this.timings={duration:u.duration,delay:u.delay,easing:u.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const d=[],u=t+e,c=e/u,o=Sd(a[0]);o.set("offset",0),d.push(o);const s=Sd(a[0]);s.set("offset",XL(c)),d.push(s);const l=a.length-1;for(let h=1;h<=l;h++){let p=Sd(a[h]);const m=p.get("offset");p.set("offset",XL((e+m*t)/u)),d.push(p)}t=u,e=0,r="",a=d}return VT(this.element,a,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function XL(i,a=3){const e=Math.pow(10,a-1);return Math.round(i*e)/e}class zT{}const t6=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"]);class n6 extends zT{normalizePropertyName(a,e){return IT(a)}normalizeStyleValue(a,e,t,r){let d="";const u=t.toString().trim();if(t6.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)d="px";else{const c=t.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&r.push(function Yq(i,a){return new n.vHH(3005,!1)}())}return u+d}}function KL(i,a,e,t,r,d,u,c,o,s,l,h,p){return{type:0,element:i,triggerName:a,isRemovalTransition:r,fromState:e,fromStyles:d,toState:t,toStyles:u,timelines:c,queriedElements:o,preStyleProps:s,postStyleProps:l,totalTime:h,errors:p}}const UT={};class eH{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,r){return function r6(i,a,e,t,r){return i.some(d=>d(a,e,t,r))}(this.ast.matchers,a,e,t,r)}buildStyles(a,e,t){let r=this._stateStyles.get("*");return void 0!==a&&(r=this._stateStyles.get(a?.toString())||r),r?r.buildStyles(e,t):new Map}build(a,e,t,r,d,u,c,o,s,l){var h;const p=[],m=this.ast.options&&this.ast.options.params||UT,f=this.buildStyles(t,c&&c.params||UT,p),w=o&&o.params||UT,N=this.buildStyles(r,w,p),se=new Set,Pe=new Map,ot=new Map,Mi="void"===r,Pi={params:a6(w,m),delay:null===(h=this.ast.options)||void 0===h?void 0:h.delay},Fi=l?[]:jT(a,e,this.ast.animation,d,u,f,N,Pi,s,p);let or=0;if(Fi.forEach(lo=>{or=Math.max(lo.duration+lo.delay,or)}),p.length)return KL(e,this._triggerName,t,r,Mi,f,N,[],[],Pe,ot,or,p);Fi.forEach(lo=>{const Eg=lo.element,Dg=za(Pe,Eg,new Set);lo.preStyleProps.forEach(pf=>Dg.add(pf));const Lg=za(ot,Eg,new Set);lo.postStyleProps.forEach(pf=>Lg.add(pf)),Eg!==e&&se.add(Eg)});const Xu=ZA(se.values());return KL(e,this._triggerName,t,r,Mi,f,N,Fi,Xu,Pe,ot,or)}}function a6(i,a){const e=Tg(a);for(const t in i)i.hasOwnProperty(t)&&null!=i[t]&&(e[t]=i[t]);return e}class s6{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t=new Map,r=Tg(this.defaultParams);return Object.keys(a).forEach(d=>{const u=a[d];null!==u&&(r[d]=u)}),this.styles.styles.forEach(d=>{"string"!=typeof d&&d.forEach((u,c)=>{u&&(u=$A(u,r,e));const o=this.normalizer.normalizePropertyName(c,e);u=this.normalizer.normalizeStyleValue(c,o,u,e),t.set(o,u)})}),t}}class l6{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new s6(r.style,r.options&&r.options.params||{},t))}),tH(this.states,"true","1"),tH(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new eH(a,r,this.states))}),this.fallbackTransition=function c6(i,a,e){return new eH(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(u,c)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,r){return this.transitionFactories.find(u=>u.match(a,e,t,r))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function tH(i,a,e){i.has(a)?i.has(e)||i.set(e,i.get(a)):i.has(e)&&i.set(a,i.get(e))}const d6=new ty;class u6{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,e){const t=[],d=BT(this._driver,e,t,[]);if(t.length)throw function d4(i){return new n.vHH(3503,!1)}();this._animations.set(a,d)}_buildPlayer(a,e,t){const r=a.element,d=PL(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(r,d,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const r=[],d=this._animations.get(a);let u;const c=new Map;if(d?(u=jT(this._driver,e,d,RT,qA,new Map,new Map,t,d6,r),u.forEach(l=>{const h=za(c,l.element,new Map);l.postStyleProps.forEach(p=>h.set(p,null))})):(r.push(function u4(){return new n.vHH(3300,!1)}()),u=[]),r.length)throw function h4(i){return new n.vHH(3504,!1)}();c.forEach((l,h)=>{l.forEach((p,m)=>{l.set(m,this._driver.computeStyle(h,m,ns))})});const s=Td(u.map(l=>{const h=c.get(l.element);return this._buildPlayer(l,new Map,h)}));return this._playersById.set(a,s),s.onDestroy(()=>this.destroy(a)),this.players.push(s),s}destroy(a){const e=this._getPlayer(a);e.destroy(),this._playersById.delete(a);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById.get(a);if(!e)throw function p4(i){return new n.vHH(3301,!1)}();return e}listen(a,e,t,r){const d=ET(e,"","","");return xT(this._getPlayer(a),t,d,r),()=>{}}command(a,e,t,r){if("register"==t)return void this.register(a,r[0]);if("create"==t)return void this.create(a,e,r[0]||{});const d=this._getPlayer(a);switch(t){case"play":d.play();break;case"pause":d.pause();break;case"reset":d.reset();break;case"restart":d.restart();break;case"finish":d.finish();break;case"init":d.init();break;case"setPosition":d.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(a)}}}const nH="ng-animate-queued",qT="ng-animate-disabled",g6=[],iH={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_6={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},fs="__ng_removed";class YT{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function w6(i){return i??null}(t?a.value:a),t){const d=Tg(a);delete d.value,this.options=d}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const Sg="void",WT=new YT(Sg);class b6{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,ms(e,this._hostClassName)}listen(a,e,t,r){if(!this._triggers.has(e))throw function f4(i,a){return new n.vHH(3302,!1)}();if(null==t||0==t.length)throw function m4(i){return new n.vHH(3303,!1)}();if(!function M6(i){return"start"==i||"done"==i}(t))throw function g4(i,a){return new n.vHH(3400,!1)}();const d=za(this._elementListeners,a,[]),u={name:e,phase:t,callback:r};d.push(u);const c=za(this._engine.statesByElement,a,new Map);return c.has(e)||(ms(a,YA),ms(a,YA+"-"+e),c.set(e,WT)),()=>{this._engine.afterFlush(()=>{const o=d.indexOf(u);o>=0&&d.splice(o,1),this._triggers.has(e)||c.delete(e)})}}register(a,e){return!this._triggers.has(a)&&(this._triggers.set(a,e),!0)}_getTrigger(a){const e=this._triggers.get(a);if(!e)throw function _4(i){return new n.vHH(3401,!1)}();return e}trigger(a,e,t,r=!0){const d=this._getTrigger(e),u=new GT(this.id,e,a);let c=this._engine.statesByElement.get(a);c||(ms(a,YA),ms(a,YA+"-"+e),this._engine.statesByElement.set(a,c=new Map));let o=c.get(e);const s=new YT(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&o&&s.absorbOptions(o.options),c.set(e,s),o||(o=WT),s.value!==Sg&&o.value===s.value){if(!function T6(i,a){const e=Object.keys(i),t=Object.keys(a);if(e.length!=t.length)return!1;for(let r=0;r{Ju(a,w),Qo(a,N)})}return}const p=za(this._engine.playersByElement,a,[]);p.forEach(f=>{f.namespaceId==this.id&&f.triggerName==e&&f.queued&&f.destroy()});let m=d.matchTransition(o.value,s.value,a,s.params),g=!1;if(!m){if(!r)return;m=d.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:m,fromState:o,toState:s,player:u,isFallbackTransition:g}),g||(ms(a,nH),u.onStart(()=>{hf(a,nH)})),u.onDone(()=>{let f=this.players.indexOf(u);f>=0&&this.players.splice(f,1);const w=this._engine.playersByElement.get(a);if(w){let N=w.indexOf(u);N>=0&&w.splice(N,1)}}),this.players.push(u),p.push(u),u}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(e=>e.delete(a)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,WA,!0);t.forEach(r=>{if(r[fs])return;const d=this._engine.fetchNamespacesByElement(r);d.size?d.forEach(u=>u.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(a,e,t,r){const d=this._engine.statesByElement.get(a),u=new Map;if(d){const c=[];if(d.forEach((o,s)=>{if(u.set(s,o.value),this._triggers.has(s)){const l=this.trigger(a,s,Sg,r);l&&c.push(l)}}),c.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,u),t&&Td(c).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const r=new Set;e.forEach(d=>{const u=d.name;if(r.has(u))return;r.add(u);const o=this._triggers.get(u).fallbackTransition,s=t.get(u)||WT,l=new YT(Sg),h=new GT(this.id,u,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:u,transition:o,fromState:s,toState:l,player:h,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let r=!1;if(t.totalAnimations){const d=t.players.length?t.playersByQueriedElement.get(a):[];if(d&&d.length)r=!0;else{let u=a;for(;u=u.parentNode;)if(t.statesByElement.get(u)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(a),r)t.markElementAsRemoved(this.id,a,!1,e);else{const d=a[fs];(!d||d===iH)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){ms(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const d=t.element,u=this._elementListeners.get(d);u&&u.forEach(c=>{if(c.name==t.triggerName){const o=ET(d,t.triggerName,t.fromState.value,t.toState.value);o._data=a,xT(t.player,c.phase,o,c.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const d=t.transition.ast.depCount,u=r.transition.ast.depCount;return 0==d||0==u?d-u:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class A6{constructor(a,e,t){this.bodyNode=a,this.driver=e,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=(r,d)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new b6(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let u=!1,c=this.driver.getParentElement(e);for(;c;){const o=r.get(c);if(o){const s=t.indexOf(o);t.splice(s+1,0,a),u=!0;break}c=this.driver.getParentElement(c)}u||t.unshift(a)}else t.push(a);return r.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let r=this._namespaceLookup[a];r&&r.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t)for(let r of t.values())if(r.namespaceId){const d=this._fetchNamespace(r.namespaceId);d&&e.add(d)}return e}trigger(a,e,t,r){if(ry(e)){const d=this._fetchNamespace(a);if(d)return d.trigger(e,t,r),!0}return!1}insertNode(a,e,t,r){if(!ry(e))return;const d=e[fs];if(d&&d.setForRemoval){d.setForRemoval=!1,d.setForMove=!0;const u=this.collectedLeaveElements.indexOf(e);u>=0&&this.collectedLeaveElements.splice(u,1)}if(a){const u=this._fetchNamespace(a);u&&u.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),ms(a,qT)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),hf(a,qT))}removeNode(a,e,t,r){if(ry(e)){const d=a?this._fetchNamespace(a):null;if(d?d.removeNode(e,r):this.markElementAsRemoved(a,e,!1,r),t){const u=this.namespacesByHostElement.get(e);u&&u.id!==a&&u.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(a,e,t,r,d){this.collectedLeaveElements.push(e),e[fs]={namespaceId:a,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:d}}listen(a,e,t,r,d){return ry(e)?this._fetchNamespace(a).listen(e,t,r,d):()=>{}}_buildInstruction(a,e,t,r,d){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,r,a.fromState.options,a.toState.options,e,d)}destroyInnerAnimations(a){let e=this.driver.query(a,WA,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,PT,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Td(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[fs];if(t&&t.setForRemoval){if(a[fs]=iH,t.namespaceId){this.destroyInnerAnimations(a);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(a)}this._onRemovalComplete(a,t.setForRemoval)}null!==(e=a.classList)&&void 0!==e&&e.contains(qT)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Td(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(a){throw function b4(i){return new n.vHH(3402,!1)}()}_flushAnimations(a,e){const t=new ty,r=[],d=new Map,u=[],c=new Map,o=new Map,s=new Map,l=new Set;this.disabledNodes.forEach(mt=>{l.add(mt);const xt=this.driver.query(mt,".ng-animate-queued",!0);for(let Pt=0;Pt{const Pt=RT+f++;g.set(xt,Pt),mt.forEach(an=>ms(an,Pt))});const w=[],N=new Set,se=new Set;for(let mt=0;mtN.add(an)):se.add(xt))}const Pe=new Map,ot=sH(p,Array.from(N));ot.forEach((mt,xt)=>{const Pt=qA+f++;Pe.set(xt,Pt),mt.forEach(an=>ms(an,Pt))}),a.push(()=>{m.forEach((mt,xt)=>{const Pt=g.get(xt);mt.forEach(an=>hf(an,Pt))}),ot.forEach((mt,xt)=>{const Pt=Pe.get(xt);mt.forEach(an=>hf(an,Pt))}),w.forEach(mt=>{this.processLeaveNode(mt)})});const Mi=[],Pi=[];for(let mt=this._namespaceList.length-1;mt>=0;mt--)this._namespaceList[mt].drainQueuedTransitions(e).forEach(Pt=>{const an=Pt.player,ki=Pt.element;if(Mi.push(an),this.collectedEnterElements.length){const Vr=ki[fs];if(Vr&&Vr.setForMove){if(Vr.previousTriggersValues&&Vr.previousTriggersValues.has(Pt.triggerName)){const Ku=Vr.previousTriggersValues.get(Pt.triggerName),gs=this.statesByElement.get(Pt.element);if(gs&&gs.has(Pt.triggerName)){const ly=gs.get(Pt.triggerName);ly.value=Ku,gs.set(Pt.triggerName,ly)}}return void an.destroy()}}const Xo=!h||!this.driver.containsElement(h,ki),qa=Pe.get(ki),Ed=g.get(ki),Ci=this._buildInstruction(Pt,t,Ed,qa,Xo);if(Ci.errors&&Ci.errors.length)return void Pi.push(Ci);if(Xo)return an.onStart(()=>Ju(ki,Ci.fromStyles)),an.onDestroy(()=>Qo(ki,Ci.toStyles)),void r.push(an);if(Pt.isFallbackTransition)return an.onStart(()=>Ju(ki,Ci.fromStyles)),an.onDestroy(()=>Qo(ki,Ci.toStyles)),void r.push(an);const EH=[];Ci.timelines.forEach(Vr=>{Vr.stretchStartingKeyframe=!0,this.disabledNodes.has(Vr.element)||EH.push(Vr)}),Ci.timelines=EH,t.append(ki,Ci.timelines),u.push({instruction:Ci,player:an,element:ki}),Ci.queriedElements.forEach(Vr=>za(c,Vr,[]).push(an)),Ci.preStyleProps.forEach((Vr,Ku)=>{if(Vr.size){let gs=o.get(Ku);gs||o.set(Ku,gs=new Set),Vr.forEach((ly,JT)=>gs.add(JT))}}),Ci.postStyleProps.forEach((Vr,Ku)=>{let gs=s.get(Ku);gs||s.set(Ku,gs=new Set),Vr.forEach((ly,JT)=>gs.add(JT))})});if(Pi.length){const mt=[];Pi.forEach(xt=>{mt.push(function A4(i,a){return new n.vHH(3505,!1)}())}),Mi.forEach(xt=>xt.destroy()),this.reportError(mt)}const Fi=new Map,or=new Map;u.forEach(mt=>{const xt=mt.element;t.has(xt)&&(or.set(xt,xt),this._beforeAnimationBuild(mt.player.namespaceId,mt.instruction,Fi))}),r.forEach(mt=>{const xt=mt.element;this._getPreviousPlayers(xt,!1,mt.namespaceId,mt.triggerName,null).forEach(an=>{za(Fi,xt,[]).push(an),an.destroy()})});const Xu=w.filter(mt=>lH(mt,o,s)),lo=new Map;aH(lo,this.driver,se,s,ns).forEach(mt=>{lH(mt,o,s)&&Xu.push(mt)});const Dg=new Map;m.forEach((mt,xt)=>{aH(Dg,this.driver,new Set(mt),o,"!")}),Xu.forEach(mt=>{var xt,Pt;const an=lo.get(mt),ki=Dg.get(mt);lo.set(mt,new Map([...Array.from(null!==(xt=an?.entries())&&void 0!==xt?xt:[]),...Array.from(null!==(Pt=ki?.entries())&&void 0!==Pt?Pt:[])]))});const Lg=[],pf=[],SH={};u.forEach(mt=>{const{element:xt,player:Pt,instruction:an}=mt;if(t.has(xt)){if(l.has(xt))return Pt.onDestroy(()=>Qo(xt,an.toStyles)),Pt.disabled=!0,Pt.overrideTotalTime(an.totalTime),void r.push(Pt);let ki=SH;if(or.size>1){let qa=xt;const Ed=[];for(;qa=qa.parentNode;){const Ci=or.get(qa);if(Ci){ki=Ci;break}Ed.push(qa)}Ed.forEach(Ci=>or.set(Ci,ki))}const Xo=this._buildAnimation(Pt.namespaceId,an,Fi,d,Dg,lo);if(Pt.setRealPlayer(Xo),ki===SH)Lg.push(Pt);else{const qa=this.playersByElement.get(ki);qa&&qa.length&&(Pt.parentPlayer=Td(qa)),r.push(Pt)}}else Ju(xt,an.fromStyles),Pt.onDestroy(()=>Qo(xt,an.toStyles)),pf.push(Pt),l.has(xt)&&r.push(Pt)}),pf.forEach(mt=>{const xt=d.get(mt.element);if(xt&&xt.length){const Pt=Td(xt);mt.setRealPlayer(Pt)}}),r.forEach(mt=>{mt.parentPlayer?mt.syncPlayerEvents(mt.parentPlayer):mt.destroy()});for(let mt=0;mt!Xo.destroyed);ki.length?C6(this,xt,ki):this.processLeaveNode(xt)}return w.length=0,Lg.forEach(mt=>{this.players.push(mt),mt.onDone(()=>{mt.destroy();const xt=this.players.indexOf(mt);this.players.splice(xt,1)}),mt.play()}),Lg}elementContainsData(a,e){let t=!1;const r=e[fs];return r&&r.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,r,d){let u=[];if(e){const c=this.playersByQueriedElement.get(a);c&&(u=c)}else{const c=this.playersByElement.get(a);if(c){const o=!d||d==Sg;c.forEach(s=>{s.queued||!o&&s.triggerName!=r||u.push(s)})}}return(t||r)&&(u=u.filter(c=>!(t&&t!=c.namespaceId||r&&r!=c.triggerName))),u}_beforeAnimationBuild(a,e,t){const d=e.element,u=e.isRemovalTransition?void 0:a,c=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const s=o.element,l=s!==d,h=za(t,s,[]);this._getPreviousPlayers(s,l,u,c,e.toState).forEach(m=>{const g=m.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),m.destroy(),h.push(m)})}Ju(d,e.fromStyles)}_buildAnimation(a,e,t,r,d,u){const c=e.triggerName,o=e.element,s=[],l=new Set,h=new Set,p=e.timelines.map(g=>{const f=g.element;l.add(f);const w=f[fs];if(w&&w.removedBeforeQueried)return new Ru(g.duration,g.delay);const N=f!==o,se=function v6(i){const a=[];return oH(i,a),a}((t.get(f)||g6).map(Fi=>Fi.getRealPlayer())).filter(Fi=>!!Fi.element&&Fi.element===f),Pe=d.get(f),ot=u.get(f),Mi=PL(0,this._normalizer,0,g.keyframes,Pe,ot),Pi=this._buildPlayer(g,Mi,se);if(g.subTimeline&&r&&h.add(f),N){const Fi=new GT(a,c,f);Fi.setRealPlayer(Pi),s.push(Fi)}return Pi});s.forEach(g=>{za(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function y6(i,a,e){let t=i.get(a);if(t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&i.delete(a)}return t}(this.playersByQueriedElement,g.element,g))}),l.forEach(g=>ms(g,zL));const m=Td(p);return m.onDestroy(()=>{l.forEach(g=>hf(g,zL)),Qo(o,e.toStyles)}),h.forEach(g=>{za(r,g,[]).push(m)}),m}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new Ru(a.duration,a.delay)}}class GT{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new Ru,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>xT(a,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){za(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function ry(i){return i&&1===i.nodeType}function rH(i,a){const e=i.style.display;return i.style.display=a??"none",e}function aH(i,a,e,t,r){const d=[];e.forEach(o=>d.push(rH(o)));const u=[];t.forEach((o,s)=>{const l=new Map;o.forEach(h=>{const p=a.computeStyle(s,h,r);l.set(h,p),(!p||0==p.length)&&(s[fs]=_6,u.push(s))}),i.set(s,l)});let c=0;return e.forEach(o=>rH(o,d[c++])),u}function sH(i,a){const e=new Map;if(i.forEach(c=>e.set(c,[])),0==a.length)return e;const r=new Set(a),d=new Map;function u(c){if(!c)return 1;let o=d.get(c);if(o)return o;const s=c.parentNode;return o=e.has(s)?s:r.has(s)?1:u(s),d.set(c,o),o}return a.forEach(c=>{const o=u(c);1!==o&&e.get(o).push(c)}),e}function ms(i,a){var e;null===(e=i.classList)||void 0===e||e.add(a)}function hf(i,a){var e;null===(e=i.classList)||void 0===e||e.remove(a)}function C6(i,a,e){Td(e).onDone(()=>i.processLeaveNode(a))}function oH(i,a){for(let e=0;er.add(d)):a.set(i,t),e.delete(i),!0}class ay{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,d)=>{},this._transitionEngine=new A6(a,e,t),this._timelineEngine=new u6(a,e,t),this._transitionEngine.onRemovalComplete=(r,d)=>this.onRemovalComplete(r,d)}registerTrigger(a,e,t,r,d){const u=a+"-"+r;let c=this._triggerCache[u];if(!c){const o=[],l=BT(this._driver,d,o,[]);if(o.length)throw function l4(i,a){return new n.vHH(3404,!1)}();c=function o6(i,a,e){return new l6(i,a,e)}(r,l,this._normalizer),this._triggerCache[u]=c}this._transitionEngine.registerTrigger(e,r,c)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,r){this._transitionEngine.insertNode(a,e,t,r)}onRemove(a,e,t,r){this._transitionEngine.removeNode(a,e,r||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,r){if("@"==t.charAt(0)){const[d,u]=kL(t);this._timelineEngine.command(d,e,u,r)}else this._transitionEngine.trigger(a,e,t,r)}listen(a,e,t,r,d){if("@"==t.charAt(0)){const[u,c]=kL(t);return this._timelineEngine.listen(u,e,c,d)}return this._transitionEngine.listen(a,e,t,r,d)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let S6=(()=>{class i{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let d=i.initialStylesByElement.get(e);d||i.initialStylesByElement.set(e,d=new Map),this._initialStyles=d}start(){this._state<1&&(this._startStyles&&Qo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Qo(this._element,this._initialStyles),this._endStyles&&(Qo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(Ju(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ju(this._element,this._endStyles),this._endStyles=null),Qo(this._element,this._initialStyles),this._state=3)}}return i.initialStylesByElement=new WeakMap,i})();function $T(i){let a=null;return i.forEach((e,t)=>{(function E6(i){return"display"===i||"position"===i})(t)&&(a=a||new Map,a.set(t,e))}),a}class cH{constructor(a,e,t,r){this.element=a,this.keyframes=e,this.options=t,this._specialStyles=r,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(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const e=[];return a.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(a,e,t){return a.animate(this._convertKeyframesToObject(e),t)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&a.set(r,this._finished?t:$L(this.element,r))}),this.currentSnapshot=a}triggerCallback(a){const e="start"===a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class D6{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,e){return!1}containsElement(a,e){return NL(a,e)}getParentElement(a){return LT(a)}query(a,e,t){return VL(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,r,d,u=[]){const o={duration:t,delay:r,fill:0==r?"both":"forwards"};d&&(o.easing=d);const s=new Map,l=u.filter(m=>m instanceof cH);(function R4(i,a){return 0===i||0===a})(t,r)&&l.forEach(m=>{m.currentSnapshot.forEach((g,f)=>s.set(f,g))});let h=function E4(i){return i.length?i[0]instanceof Map?i:i.map(a=>UL(a)):[]}(e).map(m=>Sd(m));h=function P4(i,a,e){if(e.size&&a.length){let t=a[0],r=[];if(e.forEach((d,u)=>{t.has(u)||r.push(u),t.set(u,d)}),r.length)for(let d=1;du.set(c,$L(i,c)))}}return a}(a,h,s);const p=function x6(i,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=$T(a[0]),a.length>1&&(t=$T(a[a.length-1]))):a instanceof Map&&(e=$T(a)),e||t?new S6(i,e,t):null}(a,h);return new cH(a,h,o,p)}}let L6=(()=>{class i extends W0{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?G0(e):e;return dH(this._renderer,null,t,"register",[r]),new H6(t,this._renderer)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.FYo),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class H6 extends class A_{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new R6(this._id,a,e||{},this._renderer)}}class R6{constructor(a,e,t,r){this.id=a,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return dH(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,e;return null!==(a=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==a?a:0}}function dH(i,a,e,t,r){return i.setProperty(a,`@@${e}:${t}`,r)}const uH="@.disabled";let P6=(()=>{class i{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(d,u)=>{const c=u?.parentNode(d);c&&u.removeChild(c,d)}}createRenderer(e,t){const d=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let l=this._rendererCache.get(d);return l||(l=new hH("",d,this.engine),this._rendererCache.set(d,l)),l}const u=t.id,c=t.id+"-"+this._currentId;this._currentId++,this.engine.register(c,e);const o=l=>{Array.isArray(l)?l.forEach(o):this.engine.registerTrigger(u,c,e,l.name,l)};return t.data.animation.forEach(o),new k6(this,c,d,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(d=>{const[u,c]=d;u(c)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.FYo),n.LFG(ay),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class hH{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,r=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,r)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,r){this.delegate.setAttribute(a,e,t,r)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,r){this.delegate.setStyle(a,e,t,r)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==uH?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class k6 extends hH{constructor(a,e,t,r){super(e,t,r),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==uH?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.slice(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const r=function O6(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(a);let d=e.slice(1),u="";return"@"!=d.charAt(0)&&([d,u]=function I6(i){const a=i.indexOf(".");return[i.substring(0,a),i.slice(a+1)]}(d)),this.engine.listen(this.namespaceId,r,d,u,c=>{this.factory.scheduleListenerCallback(c._data||-1,t,c)})}return this.delegate.listen(a,e,t)}}const pH=[{provide:W0,useClass:L6},{provide:zT,useFactory:function N6(){return new n6}},{provide:ay,useClass:(()=>{class i extends ay{constructor(e,t,r,d){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0),n.LFG(HT),n.LFG(zT),n.LFG(n.z2F))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})()},{provide:n.FYo,useFactory:function V6(i,a,e){return new P6(i,a,e)},deps:[Me,ay,n.R0b]}],ZT=[{provide:HT,useFactory:()=>new D6},{provide:n.QbO,useValue:"BrowserAnimations"},...pH],fH=[{provide:HT,useClass:jL},{provide:n.QbO,useValue:"NoopAnimations"},...pH];let j6=(()=>{class i{static withConfig(e){return{ngModule:i,providers:e.disableAnimations?fH:ZT}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:ZT,imports:[Zt]}),i})(),F6=(()=>{class i{constructor(e,t,r,d,u){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=d,this.utilsService=u}initializeColors(e,t){return new Promise(r=>{t.forEach(d=>{const u=this.storeService.getProperty("theme")[d.configValue];document.documentElement.style.setProperty(d.cssVariable,u)}),e.forEach(d=>{const u=this.storeService.getProperty("theme")[d.configValue];document.documentElement.style.setProperty(d.cssVariable,u),this.setEntityTheme(d.entity,u)}),r()})}setEntityTheme(e,t){const r=function z6(i){return[ha(tinycolor(i).lighten(52),"50"),ha(tinycolor(i).lighten(37),"100"),ha(tinycolor(i).lighten(26),"200"),ha(tinycolor(i).lighten(12),"300"),ha(tinycolor(i).lighten(6),"400"),ha(tinycolor(i),"500"),ha(tinycolor(i).darken(6),"600"),ha(tinycolor(i).darken(12),"700"),ha(tinycolor(i).darken(18),"800"),ha(tinycolor(i).darken(24),"900"),ha(tinycolor(i).lighten(50).saturate(30),"A100"),ha(tinycolor(i).lighten(30).saturate(30),"A200"),ha(tinycolor(i).lighten(10).saturate(15),"A400"),ha(tinycolor(i).lighten(5).saturate(5),"A700")]}(t);for(const d of r){const o=`--${e}-theme-primary-contrast-${d.name}`,s=d.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${d.name}`,`${d.red},${d.green},${d.blue}`),document.documentElement.style.setProperty(o,s)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const r=document.location.hostname;t?.brandings?.[r]&&this.storeService.setBanding(r),e()},()=>{e()})})}getNoCacheHeaders(){return new C.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Ut),n.LFG(As),n.LFG(ce),n.LFG(Ti))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function ha(i,a){const e=tinycolor(i),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let U6=(()=>{class i{constructor(e,t,r,d){this.initAuthService=e,this.appConfigService=t,this.location=r,this.mfaHandlerService=d,this.entityColorConfigs=[{entity:"user",configValue:"user_color",cssVariable:"--user-color"}],this.colorConfigs=[{configValue:"sidemenu_bg_color",cssVariable:"--side-bg"},{configValue:"sidemenu_hover_color",cssVariable:"--side-hover"},{configValue:"sidemenu_hover_text_color",cssVariable:"--side-text-hover"},{configValue:"sidemenu_active_color",cssVariable:"--side-active"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-text-active"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Tv),n.LFG(F6),n.LFG(T.Ye),n.LFG(vv))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),bH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Rv,Ho]}),i})(),xH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Rv]}),i})(),mW=(()=>{class i{constructor(e,t){(0,T.PM)(t)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,t=[]){return{ngModule:i,providers:e.serverLoaded?[{provide:no,useValue:{...Pv,...e}},{provide:kv,useValue:t,multi:!0},{provide:Qp,useValue:!0}]:[{provide:no,useValue:{...Pv,...e}},{provide:kv,useValue:t,multi:!0}]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qp),n.LFG(n.Lbi))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[bH,qE,xH,bH,qE,xH]}),i})();const gW=new n.OlP("perun-api-service"),_W={provide:C.TP,useExisting:(0,n.Gpc)(()=>gE),multi:!0};function bW(i){return new Vq(i,"./assets/i18n/",".json")}function AW(i){const a={basePath:i.getProperty("api_url")};return new It(a)}const yW=i=>()=>i.initialize();let wW=(()=>{class i{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(fE),n.LFG(sn))},i.\u0275mod=n.oAB({type:i,bootstrap:[pI]}),i.\u0275inj=n.cJS({providers:[fE,{provide:n.ip1,useFactory:yW,multi:!0,deps:[U6]},{provide:It,useFactory:AW,deps:[Ut]},mA,gE,_W,{provide:gW,useClass:D2},ce,{provide:Jl.Hy,useFactory:()=>localStorage}],imports:[Zt,j6,C.JF,po.forRoot({loader:{provide:ea,useFactory:bW,deps:[C.eN]}}),Nq,eo,Lv,nT,Tl,Ka,mW,Qv,TL,gA,gT,Gs,gd,Wu,fg,Kp,Xs,mg,qu,ef,IA,MT,rD,JE,LN,ca,Uo,vT,uD,Fu,YU,JC,Wp,Jl.zr.forRoot(),cP]}),i})();(0,n.G48)(),ye().bootstrapModule(wW).catch(i=>console.error(i))},1302:function(Y,G,E){var T;!function(n,H){var D={};!function(n){"use strict";n.__esModule=!0,n.digestLength=32,n.blockSize=64;var H=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function D(ue,oe,re,be,we){for(var xe,Xe,et,ke,De,Re,_t,Ve,ze,Fe,me,_e,Te;we>=64;){for(xe=oe[0],Xe=oe[1],et=oe[2],ke=oe[3],De=oe[4],Re=oe[5],_t=oe[6],Ve=oe[7],Fe=0;Fe<16;Fe++)ue[Fe]=(255&re[me=be+4*Fe])<<24|(255&re[me+1])<<16|(255&re[me+2])<<8|255&re[me+3];for(Fe=16;Fe<64;Fe++)ue[Fe]=((_e=((ze=ue[Fe-2])>>>17|ze<<15)^(ze>>>19|ze<<13)^ze>>>10)+ue[Fe-7]|0)+((Te=((ze=ue[Fe-15])>>>7|ze<<25)^(ze>>>18|ze<<14)^ze>>>3)+ue[Fe-16]|0);for(Fe=0;Fe<64;Fe++)_e=(((De>>>6|De<<26)^(De>>>11|De<<21)^(De>>>25|De<<7))+(De&Re^~De&_t)|0)+(Ve+(H[Fe]+ue[Fe]|0)|0)|0,Te=((xe>>>2|xe<<30)^(xe>>>13|xe<<19)^(xe>>>22|xe<<10))+(xe&Xe^xe&et^Xe&et)|0,Ve=_t,_t=Re,Re=De,De=ke+_e|0,ke=et,et=Xe,Xe=xe,xe=_e+Te|0;oe[0]+=xe,oe[1]+=Xe,oe[2]+=et,oe[3]+=ke,oe[4]+=De,oe[5]+=Re,oe[6]+=_t,oe[7]+=Ve,be+=64,we-=64}return be}var L=function(){function ue(){this.digestLength=n.digestLength,this.blockSize=n.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ue.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ue.prototype.clean=function(){for(var oe=0;oe0){for(;this.bufferLength<64&&re>0;)this.buffer[this.bufferLength++]=oe[be++],re--;64===this.bufferLength&&(D(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(re>=64&&(be=D(this.temp,this.state,oe,be,re),re%=64);re>0;)this.buffer[this.bufferLength++]=oe[be++],re--;return this},ue.prototype.finish=function(oe){if(!this.finished){var re=this.bytesHashed,be=this.bufferLength,we=re/536870912|0,xe=re<<3,Xe=re%64<56?64:128;this.buffer[be]=128;for(var et=be+1;et>>24&255,this.buffer[Xe-7]=we>>>16&255,this.buffer[Xe-6]=we>>>8&255,this.buffer[Xe-5]=we>>>0&255,this.buffer[Xe-4]=xe>>>24&255,this.buffer[Xe-3]=xe>>>16&255,this.buffer[Xe-2]=xe>>>8&255,this.buffer[Xe-1]=xe>>>0&255,D(this.temp,this.state,this.buffer,0,Xe),this.finished=!0}for(et=0;et<8;et++)oe[4*et+0]=this.state[et]>>>24&255,oe[4*et+1]=this.state[et]>>>16&255,oe[4*et+2]=this.state[et]>>>8&255,oe[4*et+3]=this.state[et]>>>0&255;return this},ue.prototype.digest=function(){var oe=new Uint8Array(this.digestLength);return this.finish(oe),oe},ue.prototype._saveState=function(oe){for(var re=0;rethis.blockSize)(new L).update(oe).finish(re).clean();else for(var be=0;be1&&oe.update(ue),re&&oe.update(re),oe.update(be),oe.finish(ue),be[0]++}n.HMAC=O,n.hash=B,n.default=B,n.hmac=U;var ee=new Uint8Array(n.digestLength);n.hkdf=function te(ue,oe,re,be){void 0===oe&&(oe=ee),void 0===be&&(be=32);for(var we=new Uint8Array([1]),xe=U(oe,ue),Xe=new O(xe),et=new Uint8Array(Xe.digestLength),ke=et.length,De=new Uint8Array(be),Re=0;Re>>24&255,Xe[1]=_t>>>16&255,Xe[2]=_t>>>8&255,Xe[3]=_t>>>0&255,we.reset(),we.update(oe),we.update(Xe),we.finish(ke);for(var Ve=0;Ve=te.status}function O(ee){try{ee.dispatchEvent(new MouseEvent("click"))}catch{var te=document.createEvent("MouseEvents");te.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ee.dispatchEvent(te)}}var B="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,U=B.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),W=B.saveAs||("object"!=typeof window||window!==B?function(){}:"download"in HTMLAnchorElement.prototype&&!U?function(ee,te,ae){var ue=B.URL||B.webkitURL,oe=document.createElement("a");oe.download=te=te||ee.name||"download",oe.rel="noopener","string"==typeof ee?(oe.href=ee,oe.origin===location.origin?O(oe):L(oe.href)?D(ee,te,ae):O(oe,oe.target="_blank")):(oe.href=ue.createObjectURL(ee),setTimeout(function(){ue.revokeObjectURL(oe.href)},4e4),setTimeout(function(){O(oe)},0))}:"msSaveOrOpenBlob"in navigator?function(ee,te,ae){if(te=te||ee.name||"download","string"!=typeof ee)navigator.msSaveOrOpenBlob(function H(ee,te){return typeof te>"u"?te={autoBom:!1}:"object"!=typeof te&&(console.warn("Deprecated: Expected third argument to be a object"),te={autoBom:!te}),te.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ee.type)?new Blob(["\ufeff",ee],{type:ee.type}):ee}(ee,ae),te);else if(L(ee))D(ee,te,ae);else{var ue=document.createElement("a");ue.href=ee,ue.target="_blank",setTimeout(function(){O(ue)})}}:function(ee,te,ae,ue){if((ue=ue||open("","_blank"))&&(ue.document.title=ue.document.body.innerText="downloading..."),"string"==typeof ee)return D(ee,te,ae);var oe="application/octet-stream"===ee.type,re=/constructor/i.test(B.HTMLElement)||B.safari,be=/CriOS\/[\d]+/.test(navigator.userAgent);if((be||oe&&re||U)&&typeof FileReader<"u"){var we=new FileReader;we.onloadend=function(){var et=we.result;et=be?et:et.replace(/^data:[^;]*;/,"data:attachment/file;"),ue?ue.location.href=et:location=et,ue=null},we.readAsDataURL(ee)}else{var xe=B.URL||B.webkitURL,Xe=xe.createObjectURL(ee);ue?ue.location=Xe:location.href=Xe,ue=null,setTimeout(function(){xe.revokeObjectURL(Xe)},4e4)}});B.saveAs=W.saveAs=W,Y.exports=W}.apply(G,[]))&&(Y.exports=n)},1158:(Y,G,E)=>{(Y.exports=E(7867)).tz.load(E(1128))},7867:function(Y,G,E){var T,n,H;!function(D,L){"use strict";Y.exports?Y.exports=L(E(5439)):(n=[E(5439)],void 0!==(H="function"==typeof(T=L)?T.apply(G,n):T)&&(Y.exports=H))}(0,function(D){"use strict";void 0===D.version&&D.default&&(D=D.default);var te,O={},B={},U={},W={},ee={};(!D||"string"!=typeof D.version)&&Ii("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var ae=D.version.split("."),ue=+ae[0],oe=+ae[1];function re(pe){return pe>96?pe-87:pe>64?pe-29:pe-48}function be(pe){var Ie=0,ye=pe.split("."),Ye=ye[0],lt=ye[1]||"",ct=1,hi=0,un=1;for(45===pe.charCodeAt(0)&&(Ie=1,un=-1);Ie= 2.6.0. You are using Moment.js "+D.version+". See momentjs.com"),ke.prototype={_set:function(pe){this.name=pe.name,this.abbrs=pe.abbrs,this.untils=pe.untils,this.offsets=pe.offsets,this.population=pe.population},_index:function(pe){var Ye,Ie=+pe,ye=this.untils;for(Ye=0;Yehi&&hn.moveInvalidForward&&(ct=hi),Ie3){var Ie=W[$e(pe)];if(Ie)return Ie;Ii("Moment Timezone found "+pe+" from the Intl api, but did not have that data loaded.")}}catch{}var Zt,hi,un,ye=function ze(){var Ye,lt,ct,pe=(new Date).getFullYear()-2,Ie=new Re(new Date(pe,0,1)),ye=[Ie];for(ct=1;ct<48;ct++)(lt=new Re(new Date(pe,ct,1))).offset!==Ie.offset&&(Ye=Ve(Ie,lt),ye.push(Ye),ye.push(new Re(new Date(Ye.at+6e4)))),Ie=lt;for(ct=0;ct<4;ct++)ye.push(new Re(new Date(pe+ct,0,1))),ye.push(new Re(new Date(pe+ct,6,1)));return ye}(),Ye=ye.length,lt=function _e(pe){var lt,ct,Zt,Ie=pe.length,ye={},Ye=[];for(lt=0;lt0?ct[0].zone.name:void 0}()),te},hn.names=function Ft(){var pe,Ie=[];for(pe in W)W.hasOwnProperty(pe)&&(O[pe]||O[B[pe]])&&W[pe]&&Ie.push(W[pe]);return Ie.sort()},hn.Zone=ke,hn.unpack=et,hn.unpackBase60=be,hn.needsOffset=Tn,hn.moveInvalidForward=!0,hn.moveAmbiguousForward=!1,hn.countries=function cn(){return Object.keys(U)},hn.zonesForCountry=function Je(pe,Ie){if(!(pe=function Oi(pe){return pe=pe.toUpperCase(),U[pe]||null}(pe)))return null;var ye=pe.zones.sort();return Ie?ye.map(function(Ye){return{name:Ye,offset:yt(Ye).utcOffset(new Date)}}):ye};var vi=D.fn;function co(pe){return function(){return this._z?this._z.abbr(this):pe.call(this)}}function pa(pe){return function(){return this._z=null,pe.apply(this,arguments)}}D.tz=hn,D.defaultZone=null,D.updateOffset=function(pe,Ie){var Ye,ye=D.defaultZone;if(void 0===pe._z&&(ye&&Tn(pe)&&!pe._isUTC&&(pe._d=D.utc(pe._a)._d,pe.utc().add(ye.parse(pe),"minutes")),pe._z=ye),pe._z)if(Ye=pe._z.utcOffset(pe),Math.abs(Ye)<16&&(Ye/=60),void 0!==pe.utcOffset){var lt=pe._z;pe.utcOffset(-Ye,Ie),pe._z=lt}else pe.zone(Ye,Ie)},vi.tz=function(pe,Ie){if(pe){if("string"!=typeof pe)throw new Error("Time zone name must be a string, got "+pe+" ["+typeof pe+"]");return this._z=yt(pe),this._z?D.updateOffset(this,Ie):Ii("Moment Timezone has no data for "+pe+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},vi.zoneName=co(vi.zoneName),vi.zoneAbbr=co(vi.zoneAbbr),vi.utc=pa(vi.utc),vi.local=pa(vi.local),vi.utcOffset=function Cr(pe){return function(){return arguments.length>0&&(this._z=null),pe.apply(this,arguments)}}(vi.utcOffset),D.tz.setDefault=function(pe){return(ue<2||2===ue&&oe<9)&&Ii("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+D.version+"."),D.defaultZone=pe?yt(pe):null,D};var zi=D.momentProperties;return"[object Array]"===Object.prototype.toString.call(zi)?(zi.push("_z"),zi.push("_a")):zi&&(zi._z=null),D})},7088:function(Y,G,E){!function(T){"use strict";T.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(H){return/^nm$/i.test(H)},meridiem:function(H,D,L){return H<12?L?"vm":"VM":L?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(H){return H+(1===H||8===H||H>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},2502:function(Y,G,E){!function(T){"use strict";var n=function(B){return 0===B?0:1===B?1:2===B?2:B%100>=3&&B%100<=10?3:B%100>=11?4:5},H={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},D=function(B){return function(U,W,ee,te){var ae=n(U),ue=H[B][n(U)];return 2===ae&&(ue=ue[W?0:1]),ue.replace(/%d/i,U)}},L=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar-dz",{months:L,monthsShort:L,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(B){return"\u0645"===B},meridiem:function(B,U,W){return B<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:D("s"),ss:D("s"),m:D("m"),mm:D("m"),h:D("h"),hh:D("h"),d:D("d"),dd:D("d"),M:D("M"),MM:D("M"),y:D("y"),yy:D("y")},postformat:function(B){return B.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(E(5439))},128:function(Y,G,E){!function(T){"use strict";T.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(E(5439))},4519:function(Y,G,E){!function(T){"use strict";var n={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},H=function(U){return 0===U?0:1===U?1:2===U?2:U%100>=3&&U%100<=10?3:U%100>=11?4:5},D={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},L=function(U){return function(W,ee,te,ae){var ue=H(W),oe=D[U][H(W)];return 2===ue&&(oe=oe[ee?0:1]),oe.replace(/%d/i,W)}},O=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar-ly",{months:O,monthsShort:O,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(U){return"\u0645"===U},meridiem:function(U,W,ee){return U<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:L("s"),ss:L("s"),m:L("m"),mm:L("m"),h:L("h"),hh:L("h"),d:L("d"),dd:L("d"),M:L("M"),MM:L("M"),y:L("y"),yy:L("y")},preparse:function(U){return U.replace(/\u060c/g,",")},postformat:function(U){return U.replace(/\d/g,function(W){return n[W]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},5443:function(Y,G,E){!function(T){"use strict";T.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(E(5439))},7642:function(Y,G,E){!function(T){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},H={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};T.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(L){return"\u0645"===L},meridiem:function(L,O,B){return L<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(L){return L.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(O){return H[O]}).replace(/\u060c/g,",")},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(E(5439))},8592:function(Y,G,E){!function(T){"use strict";T.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(E(5439))},7038:function(Y,G,E){!function(T){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},H={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},D=function(W){return 0===W?0:1===W?1:2===W?2:W%100>=3&&W%100<=10?3:W%100>=11?4:5},L={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},O=function(W){return function(ee,te,ae,ue){var oe=D(ee),re=L[W][D(ee)];return 2===oe&&(re=re[te?0:1]),re.replace(/%d/i,ee)}},B=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar",{months:B,monthsShort:B,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(W){return"\u0645"===W},meridiem:function(W,ee,te){return W<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:O("s"),ss:O("s"),m:O("m"),mm:O("m"),h:O("h"),hh:O("h"),d:O("d"),dd:O("d"),M:O("M"),MM:O("M"),y:O("y"),yy:O("y")},preparse:function(W){return W.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(ee){return H[ee]}).replace(/\u060c/g,",")},postformat:function(W){return W.replace(/\d/g,function(ee){return n[ee]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},1213:function(Y,G,E){!function(T){"use strict";var n={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};T.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(D){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(D)},meridiem:function(D,L,O){return D<4?"gec\u0259":D<12?"s\u0259h\u0259r":D<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(D){if(0===D)return D+"-\u0131nc\u0131";var L=D%10;return D+(n[L]||n[D%100-L]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},9191:function(Y,G,E){!function(T){"use strict";function H(L,O,B){return"m"===B?O?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===B?O?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":L+" "+function n(L,O){var B=L.split("_");return O%10==1&&O%100!=11?B[0]:O%10>=2&&O%10<=4&&(O%100<10||O%100>=20)?B[1]:B[2]}({ss:O?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:O?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:O?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[B],+L)}T.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:H,mm:H,h:H,hh:H,d:"\u0434\u0437\u0435\u043d\u044c",dd:H,M:"\u043c\u0435\u0441\u044f\u0446",MM:H,y:"\u0433\u043e\u0434",yy:H},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(L)},meridiem:function(L,O,B){return L<4?"\u043d\u043e\u0447\u044b":L<12?"\u0440\u0430\u043d\u0456\u0446\u044b":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(L,O){switch(O){case"M":case"d":case"DDD":case"w":case"W":return L%10!=2&&L%10!=3||L%100==12||L%100==13?L+"-\u044b":L+"-\u0456";case"D":return L+"-\u0433\u0430";default:return L}},week:{dow:1,doy:7}})}(E(5439))},322:function(Y,G,E){!function(T){"use strict";T.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(H){var D=H%10,L=H%100;return 0===H?H+"-\u0435\u0432":0===L?H+"-\u0435\u043d":L>10&&L<20?H+"-\u0442\u0438":1===D?H+"-\u0432\u0438":2===D?H+"-\u0440\u0438":7===D||8===D?H+"-\u043c\u0438":H+"-\u0442\u0438"},week:{dow:1,doy:7}})}(E(5439))},8042:function(Y,G,E){!function(T){"use strict";T.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(E(5439))},5903:function(Y,G,E){!function(T){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},H={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};T.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(L){return L.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u09b0\u09be\u09a4"===O?L<4?L:L+12:"\u09ad\u09cb\u09b0"===O||"\u09b8\u0995\u09be\u09b2"===O?L:"\u09a6\u09c1\u09aa\u09c1\u09b0"===O?L>=3?L:L+12:"\u09ac\u09bf\u0995\u09be\u09b2"===O||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===O?L+12:void 0},meridiem:function(L,O,B){return L<4?"\u09b0\u09be\u09a4":L<6?"\u09ad\u09cb\u09b0":L<12?"\u09b8\u0995\u09be\u09b2":L<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":L<18?"\u09ac\u09bf\u0995\u09be\u09b2":L<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(E(5439))},9620:function(Y,G,E){!function(T){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},H={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};T.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(L){return L.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u09b0\u09be\u09a4"===O&&L>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===O&&L<5||"\u09ac\u09bf\u0995\u09be\u09b2"===O?L+12:L},meridiem:function(L,O,B){return L<4?"\u09b0\u09be\u09a4":L<10?"\u09b8\u0995\u09be\u09b2":L<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":L<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(E(5439))},9645:function(Y,G,E){!function(T){"use strict";var n={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},H={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};T.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(L){return L.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===O&&L>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===O&&L<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===O?L+12:L},meridiem:function(L,O,B){return L<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":L<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":L<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":L<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(E(5439))},5020:function(Y,G,E){!function(T){"use strict";function n(re,be,we){return re+" "+function L(re,be){return 2===be?function O(re){var be={m:"v",b:"v",d:"z"};return void 0===be[re.charAt(0)]?re:be[re.charAt(0)]+re.substring(1)}(re):re}({mm:"munutenn",MM:"miz",dd:"devezh"}[we],re)}function D(re){return re>9?D(re%10):re}var B=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],U=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,ue=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];T.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:ue,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:ue,monthsRegex:U,monthsShortRegex:U,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:B,longMonthsParse:B,shortMonthsParse:B,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:n,h:"un eur",hh:"%d eur",d:"un devezh",dd:n,M:"ur miz",MM:n,y:"ur bloaz",yy:function H(re){switch(D(re)){case 1:case 3:case 4:case 5:case 9:return re+" bloaz";default:return re+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(re){return re+(1===re?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(re){return"g.m."===re},meridiem:function(re,be,we){return re<12?"a.m.":"g.m."}})}(E(5439))},4792:function(Y,G,E){!function(T){"use strict";function n(D,L,O){var B=D+" ";switch(O){case"ss":return B+(1===D?"sekunda":2===D||3===D||4===D?"sekunde":"sekundi");case"m":return L?"jedna minuta":"jedne minute";case"mm":return B+(1===D?"minuta":2===D||3===D||4===D?"minute":"minuta");case"h":return L?"jedan sat":"jednog sata";case"hh":return B+(1===D?"sat":2===D||3===D||4===D?"sata":"sati");case"dd":return B+(1===D?"dan":"dana");case"MM":return B+(1===D?"mjesec":2===D||3===D||4===D?"mjeseca":"mjeseci");case"yy":return B+(1===D?"godina":2===D||3===D||4===D?"godine":"godina")}}T.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},7980:function(Y,G,E){!function(T){"use strict";T.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(H,D){var L=1===H?"r":2===H?"n":3===H?"r":4===H?"t":"\xe8";return("w"===D||"W"===D)&&(L="a"),H+L},week:{dow:1,doy:4}})}(E(5439))},7322:function(Y,G,E){!function(T){"use strict";var n={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},H="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),D=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],L=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function O(W){return W>1&&W<5&&1!=~~(W/10)}function B(W,ee,te,ae){var ue=W+" ";switch(te){case"s":return ee||ae?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return ee||ae?ue+(O(W)?"sekundy":"sekund"):ue+"sekundami";case"m":return ee?"minuta":ae?"minutu":"minutou";case"mm":return ee||ae?ue+(O(W)?"minuty":"minut"):ue+"minutami";case"h":return ee?"hodina":ae?"hodinu":"hodinou";case"hh":return ee||ae?ue+(O(W)?"hodiny":"hodin"):ue+"hodinami";case"d":return ee||ae?"den":"dnem";case"dd":return ee||ae?ue+(O(W)?"dny":"dn\xed"):ue+"dny";case"M":return ee||ae?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return ee||ae?ue+(O(W)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):ue+"m\u011bs\xedci";case"y":return ee||ae?"rok":"rokem";case"yy":return ee||ae?ue+(O(W)?"roky":"let"):ue+"lety"}}T.defineLocale("cs",{months:n,monthsShort:H,monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:B,ss:B,m:B,mm:B,h:B,hh:B,d:B,dd:B,M:B,MM:B,y:B,yy:B},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},365:function(Y,G,E){!function(T){"use strict";T.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(H){return H+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(H)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(H)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(E(5439))},2092:function(Y,G,E){!function(T){"use strict";T.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(H){var L="";return H>20?L=40===H||50===H||60===H||80===H||100===H?"fed":"ain":H>0&&(L=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][H]),H+L},week:{dow:1,doy:4}})}(E(5439))},7387:function(Y,G,E){!function(T){"use strict";T.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9459:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return L?U[O][0]:U[O][1]}T.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3694:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return L?U[O][0]:U[O][1]}T.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},4307:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return L?U[O][0]:U[O][1]}T.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9659:function(Y,G,E){!function(T){"use strict";var n=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],H=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];T.defineLocale("dv",{months:n,monthsShort:n,weekdays:H,weekdaysShort:H,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(L){return"\u0789\u078a"===L},meridiem:function(L,O,B){return L<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(L){return L.replace(/\u060c/g,",")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(E(5439))},3460:function(Y,G,E){!function(T){"use strict";T.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(D,L){return D?"string"==typeof L&&/D/.test(L.substring(0,L.indexOf("MMMM")))?this._monthsGenitiveEl[D.month()]:this._monthsNominativeEl[D.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(D,L,O){return D>11?O?"\u03bc\u03bc":"\u039c\u039c":O?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(D){return"\u03bc"===(D+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(D,L){var O=this._calendarEl[D],B=L&&L.hours();return function n(D){return typeof Function<"u"&&D instanceof Function||"[object Function]"===Object.prototype.toString.call(D)}(O)&&(O=O.apply(L)),O.replace("{}",B%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(E(5439))},4369:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:0,doy:4}})}(E(5439))},530:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")}})}(E(5439))},9998:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},3391:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},5414:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")}})}(E(5439))},9615:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:0,doy:6}})}(E(5439))},1248:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},3767:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},4530:function(Y,G,E){!function(T){"use strict";T.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(H){return"p"===H.charAt(0).toLowerCase()},meridiem:function(H,D,L){return H>11?L?"p.t.m.":"P.T.M.":L?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(E(5439))},8944:function(Y,G,E){!function(T){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),H="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],L=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},9116:function(Y,G,E){!function(T){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),H="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],L=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(E(5439))},3609:function(Y,G,E){!function(T){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),H="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],L=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(E(5439))},6866:function(Y,G,E){!function(T){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),H="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],L=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(E(5439))},6725:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[D+"sekundi",D+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[D+" minuti",D+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[D+" tunni",D+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[D+" kuu",D+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[D+" aasta",D+" aastat"]};return L?U[O][2]?U[O][2]:U[O][1]:B?U[O][0]:U[O][1]}T.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:"%d p\xe4eva",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},7931:function(Y,G,E){!function(T){"use strict";T.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6417:function(Y,G,E){!function(T){"use strict";var n={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},H={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};T.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(L){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(L)},meridiem:function(L,O,B){return L<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(L){return L.replace(/[\u06f0-\u06f9]/g,function(O){return H[O]}).replace(/\u060c/g,",")},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(E(5439))},944:function(Y,G,E){!function(T){"use strict";var n="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),H=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",n[7],n[8],n[9]];function D(B,U,W,ee){var te="";switch(W){case"s":return ee?"muutaman sekunnin":"muutama sekunti";case"ss":te=ee?"sekunnin":"sekuntia";break;case"m":return ee?"minuutin":"minuutti";case"mm":te=ee?"minuutin":"minuuttia";break;case"h":return ee?"tunnin":"tunti";case"hh":te=ee?"tunnin":"tuntia";break;case"d":return ee?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":te=ee?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return ee?"kuukauden":"kuukausi";case"MM":te=ee?"kuukauden":"kuukautta";break;case"y":return ee?"vuoden":"vuosi";case"yy":te=ee?"vuoden":"vuotta"}return function L(B,U){return B<10?U?H[B]:n[B]:B}(B,ee)+" "+te}T.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},1766:function(Y,G,E){!function(T){"use strict";T.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(H){return H},week:{dow:1,doy:4}})}(E(5439))},5867:function(Y,G,E){!function(T){"use strict";T.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},6848:function(Y,G,E){!function(T){"use strict";T.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(H,D){switch(D){default:case"M":case"Q":case"D":case"DDD":case"d":return H+(1===H?"er":"e");case"w":case"W":return H+(1===H?"re":"e")}}})}(E(5439))},7773:function(Y,G,E){!function(T){"use strict";T.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(H,D){switch(D){default:case"M":case"Q":case"D":case"DDD":case"d":return H+(1===H?"er":"e");case"w":case"W":return H+(1===H?"re":"e")}},week:{dow:1,doy:4}})}(E(5439))},1636:function(Y,G,E){!function(T){"use strict";var D=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,L=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];T.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:D,monthsShortRegex:D,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:L,longMonthsParse:L,shortMonthsParse:L,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(B,U){switch(U){case"D":return B+(1===B?"er":"");default:case"M":case"Q":case"DDD":case"d":return B+(1===B?"er":"e");case"w":case"W":return B+(1===B?"re":"e")}},week:{dow:1,doy:4}})}(E(5439))},4940:function(Y,G,E){!function(T){"use strict";var n="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),H="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");T.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(L,O){return L?/-MMM-/.test(O)?H[L.month()]:n[L.month()]:n},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1402:function(Y,G,E){!function(T){"use strict";T.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(U){return U+(1===U?"d":U%10==2?"na":"mh")},week:{dow:1,doy:4}})}(E(5439))},6924:function(Y,G,E){!function(T){"use strict";T.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(U){return U+(1===U?"d":U%10==2?"na":"mh")},week:{dow:1,doy:4}})}(E(5439))},6398:function(Y,G,E){!function(T){"use strict";T.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(H){return 0===H.indexOf("un")?"n"+H:"en "+H},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},2457:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[D+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",D+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[D+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",D+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[D+" \u0935\u0930\u093e\u0902\u0928\u0940",D+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[D+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",D+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[D+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",D+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[D+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",D+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return B?U[O][0]:U[O][1]}T.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(D,L){return"D"===L?D+"\u0935\u0947\u0930":D},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(D,L){return 12===D&&(D=0),"\u0930\u093e\u0924\u0940"===L?D<4?D:D+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===L?D:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===L?D>12?D:D+12:"\u0938\u093e\u0902\u091c\u0947"===L?D+12:void 0},meridiem:function(D,L,O){return D<4?"\u0930\u093e\u0924\u0940":D<12?"\u0938\u0915\u093e\u0933\u0940\u0902":D<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":D<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(E(5439))},2545:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={s:["thoddea sekondamni","thodde sekond"],ss:[D+" sekondamni",D+" sekond"],m:["eka mintan","ek minut"],mm:[D+" mintamni",D+" mintam"],h:["eka voran","ek vor"],hh:[D+" voramni",D+" voram"],d:["eka disan","ek dis"],dd:[D+" disamni",D+" dis"],M:["eka mhoinean","ek mhoino"],MM:[D+" mhoineamni",D+" mhoine"],y:["eka vorsan","ek voros"],yy:[D+" vorsamni",D+" vorsam"]};return B?U[O][0]:U[O][1]}T.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(D,L){return"D"===L?D+"er":D},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(D,L){return 12===D&&(D=0),"rati"===L?D<4?D:D+12:"sokallim"===L?D:"donparam"===L?D>12?D:D+12:"sanje"===L?D+12:void 0},meridiem:function(D,L,O){return D<4?"rati":D<12?"sokallim":D<16?"donparam":D<20?"sanje":"rati"}})}(E(5439))},2641:function(Y,G,E){!function(T){"use strict";var n={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},H={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};T.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(L){return L.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u0ab0\u0abe\u0aa4"===O?L<4?L:L+12:"\u0ab8\u0ab5\u0abe\u0ab0"===O?L:"\u0aac\u0aaa\u0acb\u0ab0"===O?L>=10?L:L+12:"\u0ab8\u0abe\u0a82\u0a9c"===O?L+12:void 0},meridiem:function(L,O,B){return L<4?"\u0ab0\u0abe\u0aa4":L<10?"\u0ab8\u0ab5\u0abe\u0ab0":L<17?"\u0aac\u0aaa\u0acb\u0ab0":L<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(E(5439))},7536:function(Y,G,E){!function(T){"use strict";T.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(H){return 2===H?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":H+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(H){return 2===H?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":H+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(H){return 2===H?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":H+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(H){return 2===H?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":H%10==0&&10!==H?H+" \u05e9\u05e0\u05d4":H+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(H){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(H)},meridiem:function(H,D,L){return H<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":H<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":H<12?L?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":H<18?L?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(E(5439))},6335:function(Y,G,E){!function(T){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},H={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},D=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];T.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:D,longMonthsParse:D,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(B){return B.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(U){return H[U]})},postformat:function(B){return B.replace(/\d/g,function(U){return n[U]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(B,U){return 12===B&&(B=0),"\u0930\u093e\u0924"===U?B<4?B:B+12:"\u0938\u0941\u092c\u0939"===U?B:"\u0926\u094b\u092a\u0939\u0930"===U?B>=10?B:B+12:"\u0936\u093e\u092e"===U?B+12:void 0},meridiem:function(B,U,W){return B<4?"\u0930\u093e\u0924":B<10?"\u0938\u0941\u092c\u0939":B<17?"\u0926\u094b\u092a\u0939\u0930":B<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(E(5439))},7458:function(Y,G,E){!function(T){"use strict";function n(D,L,O){var B=D+" ";switch(O){case"ss":return B+(1===D?"sekunda":2===D||3===D||4===D?"sekunde":"sekundi");case"m":return L?"jedna minuta":"jedne minute";case"mm":return B+(1===D?"minuta":2===D||3===D||4===D?"minute":"minuta");case"h":return L?"jedan sat":"jednog sata";case"hh":return B+(1===D?"sat":2===D||3===D||4===D?"sata":"sati");case"dd":return B+(1===D?"dan":"dana");case"MM":return B+(1===D?"mjesec":2===D||3===D||4===D?"mjeseca":"mjeseci");case"yy":return B+(1===D?"godina":2===D||3===D||4===D?"godine":"godina")}}T.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6540:function(Y,G,E){!function(T){"use strict";var n="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function H(O,B,U,W){var ee=O;switch(U){case"s":return W||B?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return ee+(W||B)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(W||B?" perc":" perce");case"mm":return ee+(W||B?" perc":" perce");case"h":return"egy"+(W||B?" \xf3ra":" \xf3r\xe1ja");case"hh":return ee+(W||B?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(W||B?" nap":" napja");case"dd":return ee+(W||B?" nap":" napja");case"M":return"egy"+(W||B?" h\xf3nap":" h\xf3napja");case"MM":return ee+(W||B?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(W||B?" \xe9v":" \xe9ve");case"yy":return ee+(W||B?" \xe9v":" \xe9ve")}return""}function D(O){return(O?"":"[m\xfalt] ")+"["+n[this.day()]+"] LT[-kor]"}T.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(O){return"u"===O.charAt(1).toLowerCase()},meridiem:function(O,B,U){return O<12?!0===U?"de":"DE":!0===U?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return D.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return D.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:H,ss:H,m:H,mm:H,h:H,hh:H,d:H,dd:H,M:H,MM:H,y:H,yy:H},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},5283:function(Y,G,E){!function(T){"use strict";T.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(H){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(H)},meridiem:function(H){return H<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":H<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":H<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(H,D){switch(D){case"DDD":case"w":case"W":case"DDDo":return 1===H?H+"-\u056b\u0576":H+"-\u0580\u0564";default:return H}},week:{dow:1,doy:7}})}(E(5439))},8780:function(Y,G,E){!function(T){"use strict";T.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(H,D){return 12===H&&(H=0),"pagi"===D?H:"siang"===D?H>=11?H:H+12:"sore"===D||"malam"===D?H+12:void 0},meridiem:function(H,D,L){return H<11?"pagi":H<15?"siang":H<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(E(5439))},4205:function(Y,G,E){!function(T){"use strict";function n(L){return L%100==11||L%10!=1}function H(L,O,B,U){var W=L+" ";switch(B){case"s":return O||U?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return n(L)?W+(O||U?"sek\xfandur":"sek\xfandum"):W+"sek\xfanda";case"m":return O?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return n(L)?W+(O||U?"m\xedn\xfatur":"m\xedn\xfatum"):O?W+"m\xedn\xfata":W+"m\xedn\xfatu";case"hh":return n(L)?W+(O||U?"klukkustundir":"klukkustundum"):W+"klukkustund";case"d":return O?"dagur":U?"dag":"degi";case"dd":return n(L)?O?W+"dagar":W+(U?"daga":"d\xf6gum"):O?W+"dagur":W+(U?"dag":"degi");case"M":return O?"m\xe1nu\xf0ur":U?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return n(L)?O?W+"m\xe1nu\xf0ir":W+(U?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):O?W+"m\xe1nu\xf0ur":W+(U?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return O||U?"\xe1r":"\xe1ri";case"yy":return n(L)?W+(O||U?"\xe1r":"\xe1rum"):W+(O||U?"\xe1r":"\xe1ri")}}T.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:H,ss:H,m:H,mm:H,h:"klukkustund",hh:H,d:H,dd:H,M:H,MM:H,y:H,yy:H},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9985:function(Y,G,E){!function(T){"use strict";T.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(H){return(/^[0-9].+$/.test(H)?"tra":"in")+" "+H},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},4211:function(Y,G,E){!function(T){"use strict";T.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},1003:function(Y,G,E){!function(T){"use strict";T.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(H,D){return"\u5143"===D[1]?1:parseInt(D[1]||H,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(H){return"\u5348\u5f8c"===H},meridiem:function(H,D,L){return H<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(H){return H.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(H){return this.week()!==H.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(H,D){switch(D){case"y":return 1===H?"\u5143\u5e74":H+"\u5e74";case"d":case"D":case"DDD":return H+"\u65e5";default:return H}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(E(5439))},420:function(Y,G,E){!function(T){"use strict";T.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(H,D){return 12===H&&(H=0),"enjing"===D?H:"siyang"===D?H>=11?H:H+12:"sonten"===D||"ndalu"===D?H+12:void 0},meridiem:function(H,D,L){return H<11?"enjing":H<15?"siyang":H<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(E(5439))},851:function(Y,G,E){!function(T){"use strict";T.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(H){return H.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(D,L,O){return"\u10d8"===O?L+"\u10e8\u10d8":L+O+"\u10e8\u10d8"})},past:function(H){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(H)?H.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(H)?H.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):H},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(H){return 0===H?H:1===H?H+"-\u10da\u10d8":H<20||H<=100&&H%20==0||H%100==0?"\u10db\u10d4-"+H:H+"-\u10d4"},week:{dow:1,doy:7}})}(E(5439))},6074:function(Y,G,E){!function(T){"use strict";var n={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};T.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},3343:function(Y,G,E){!function(T){"use strict";var n={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},H={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};T.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(L){return"\u179b\u17d2\u1784\u17b6\u1785"===L},meridiem:function(L,O,B){return L<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(L){return L.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},week:{dow:1,doy:4}})}(E(5439))},4799:function(Y,G,E){!function(T){"use strict";var n={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},H={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};T.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(L){return L.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===O?L<4?L:L+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===O?L:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===O?L>=10?L:L+12:"\u0cb8\u0c82\u0c9c\u0cc6"===O?L+12:void 0},meridiem:function(L,O,B){return L<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":L<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":L<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":L<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(L){return L+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(E(5439))},3549:function(Y,G,E){!function(T){"use strict";T.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"\uc77c";case"M":return H+"\uc6d4";case"w":case"W":return H+"\uc8fc";default:return H}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(H){return"\uc624\ud6c4"===H},meridiem:function(H,D,L){return H<12?"\uc624\uc804":"\uc624\ud6c4"}})}(E(5439))},1037:function(Y,G,E){!function(T){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},H={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},D=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];T.defineLocale("ku",{months:D,monthsShort:D,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(O){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(O)},meridiem:function(O,B,U){return O<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(O){return O.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(B){return H[B]}).replace(/\u060c/g,",")},postformat:function(O){return O.replace(/\d/g,function(B){return n[B]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},3125:function(Y,G,E){!function(T){"use strict";var n={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};T.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},9586:function(Y,G,E){!function(T){"use strict";function n(B,U,W,ee){var te={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return U?te[W][0]:te[W][1]}function L(B){if(B=parseInt(B,10),isNaN(B))return!1;if(B<0)return!0;if(B<10)return 4<=B&&B<=7;if(B<100){var U=B%10;return L(0===U?B/10:U)}if(B<1e4){for(;B>=10;)B/=10;return L(B)}return L(B/=1e3)}T.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function H(B){return L(B.substr(0,B.indexOf(" ")))?"a "+B:"an "+B},past:function D(B){return L(B.substr(0,B.indexOf(" ")))?"viru "+B:"virun "+B},s:"e puer Sekonnen",ss:"%d Sekonnen",m:n,mm:"%d Minutten",h:n,hh:"%d Stonnen",d:n,dd:"%d Deeg",M:n,MM:"%d M\xe9int",y:n,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2349:function(Y,G,E){!function(T){"use strict";T.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(H){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===H},meridiem:function(H,D,L){return H<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(H){return"\u0e97\u0eb5\u0ec8"+H}})}(E(5439))},2400:function(Y,G,E){!function(T){"use strict";var n={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function D(W,ee,te,ae){return ee?O(te)[0]:ae?O(te)[1]:O(te)[2]}function L(W){return W%10==0||W>10&&W<20}function O(W){return n[W].split("_")}function B(W,ee,te,ae){var ue=W+" ";return 1===W?ue+D(0,ee,te[0],ae):ee?ue+(L(W)?O(te)[1]:O(te)[0]):ae?ue+O(te)[1]:ue+(L(W)?O(te)[1]:O(te)[2])}T.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function H(W,ee,te,ae){return ee?"kelios sekund\u0117s":ae?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:B,m:D,mm:B,h:D,hh:B,d:D,dd:B,M:D,MM:B,y:D,yy:B},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(W){return W+"-oji"},week:{dow:1,doy:4}})}(E(5439))},9991:function(Y,G,E){!function(T){"use strict";var n={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function H(U,W,ee){return ee?W%10==1&&W%100!=11?U[2]:U[3]:W%10==1&&W%100!=11?U[0]:U[1]}function D(U,W,ee){return U+" "+H(n[ee],U,W)}function L(U,W,ee){return H(n[ee],U,W)}T.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function O(U,W){return W?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:D,m:L,mm:D,h:L,hh:D,d:L,dd:D,M:L,MM:D,y:L,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8477:function(Y,G,E){!function(T){"use strict";var n={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(D,L){return 1===D?L[0]:D>=2&&D<=4?L[1]:L[2]},translate:function(D,L,O){var B=n.words[O];return 1===O.length?L?B[0]:B[1]:D+" "+n.correctGrammaticalCase(D,B)}};T.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:"dan",dd:n.translate,M:"mjesec",MM:n.translate,y:"godinu",yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},5118:function(Y,G,E){!function(T){"use strict";T.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},5943:function(Y,G,E){!function(T){"use strict";T.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(H){var D=H%10,L=H%100;return 0===H?H+"-\u0435\u0432":0===L?H+"-\u0435\u043d":L>10&&L<20?H+"-\u0442\u0438":1===D?H+"-\u0432\u0438":2===D?H+"-\u0440\u0438":7===D||8===D?H+"-\u043c\u0438":H+"-\u0442\u0438"},week:{dow:1,doy:7}})}(E(5439))},3849:function(Y,G,E){!function(T){"use strict";T.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(H,D){return 12===H&&(H=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===D&&H>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===D||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===D?H+12:H},meridiem:function(H,D,L){return H<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":H<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":H<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":H<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(E(5439))},1977:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){switch(O){case"s":return L?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return D+(L?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return D+(L?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return D+(L?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return D+(L?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return D+(L?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return D+(L?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return D}}T.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(D){return"\u04ae\u0425"===D},meridiem:function(D,L,O){return D<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(D,L){switch(L){case"d":case"D":case"DDD":return D+" \u04e9\u0434\u04e9\u0440";default:return D}}})}(E(5439))},6184:function(Y,G,E){!function(T){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},H={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function D(O,B,U,W){var ee="";if(B)switch(U){case"s":ee="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":ee="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":ee="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":ee="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":ee="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":ee="%d \u0924\u093e\u0938";break;case"d":ee="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":ee="%d \u0926\u093f\u0935\u0938";break;case"M":ee="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":ee="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":ee="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":ee="%d \u0935\u0930\u094d\u0937\u0947"}else switch(U){case"s":ee="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":ee="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":ee="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":ee="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":ee="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":ee="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":ee="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":ee="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":ee="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":ee="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":ee="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":ee="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return ee.replace(/%d/i,O)}T.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},preparse:function(O){return O.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(B){return H[B]})},postformat:function(O){return O.replace(/\d/g,function(B){return n[B]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(O,B){return 12===O&&(O=0),"\u092a\u0939\u093e\u091f\u0947"===B||"\u0938\u0915\u093e\u0933\u0940"===B?O:"\u0926\u0941\u092a\u093e\u0930\u0940"===B||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===B||"\u0930\u093e\u0924\u094d\u0930\u0940"===B?O>=12?O:O+12:void 0},meridiem:function(O,B,U){return O>=0&&O<6?"\u092a\u0939\u093e\u091f\u0947":O<12?"\u0938\u0915\u093e\u0933\u0940":O<17?"\u0926\u0941\u092a\u093e\u0930\u0940":O<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(E(5439))},4524:function(Y,G,E){!function(T){"use strict";T.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(H,D){return 12===H&&(H=0),"pagi"===D?H:"tengahari"===D?H>=11?H:H+12:"petang"===D||"malam"===D?H+12:void 0},meridiem:function(H,D,L){return H<11?"pagi":H<15?"tengahari":H<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(E(5439))},485:function(Y,G,E){!function(T){"use strict";T.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(H,D){return 12===H&&(H=0),"pagi"===D?H:"tengahari"===D?H>=11?H:H+12:"petang"===D||"malam"===D?H+12:void 0},meridiem:function(H,D,L){return H<11?"pagi":H<15?"tengahari":H<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(E(5439))},6681:function(Y,G,E){!function(T){"use strict";T.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},2024:function(Y,G,E){!function(T){"use strict";var n={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},H={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};T.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(L){return L.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},week:{dow:1,doy:4}})}(E(5439))},2688:function(Y,G,E){!function(T){"use strict";T.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8914:function(Y,G,E){!function(T){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},H={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};T.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u0930\u093e\u0924\u093f"===O?L<4?L:L+12:"\u092c\u093f\u0939\u093e\u0928"===O?L:"\u0926\u093f\u0909\u0901\u0938\u094b"===O?L>=10?L:L+12:"\u0938\u093e\u0901\u091d"===O?L+12:void 0},meridiem:function(L,O,B){return L<3?"\u0930\u093e\u0924\u093f":L<12?"\u092c\u093f\u0939\u093e\u0928":L<16?"\u0926\u093f\u0909\u0901\u0938\u094b":L<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(E(5439))},2272:function(Y,G,E){!function(T){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),H="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),D=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],L=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;T.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(B){return B+(1===B||8===B||B>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1758:function(Y,G,E){!function(T){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),H="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),D=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],L=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;T.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(B){return B+(1===B||8===B||B>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1510:function(Y,G,E){!function(T){"use strict";T.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2797:function(Y,G,E){!function(T){"use strict";T.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(H,D){var L=1===H?"r":2===H?"n":3===H?"r":4===H?"t":"\xe8";return("w"===D||"W"===D)&&(L="a"),H+L},week:{dow:1,doy:4}})}(E(5439))},7944:function(Y,G,E){!function(T){"use strict";var n={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},H={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};T.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(L){return L.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u0a30\u0a3e\u0a24"===O?L<4?L:L+12:"\u0a38\u0a35\u0a47\u0a30"===O?L:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===O?L>=10?L:L+12:"\u0a38\u0a3c\u0a3e\u0a2e"===O?L+12:void 0},meridiem:function(L,O,B){return L<4?"\u0a30\u0a3e\u0a24":L<10?"\u0a38\u0a35\u0a47\u0a30":L<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":L<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(E(5439))},1605:function(Y,G,E){!function(T){"use strict";var n="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),H="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),D=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function L(U){return U%10<5&&U%10>1&&~~(U/10)%10!=1}function O(U,W,ee){var te=U+" ";switch(ee){case"ss":return te+(L(U)?"sekundy":"sekund");case"m":return W?"minuta":"minut\u0119";case"mm":return te+(L(U)?"minuty":"minut");case"h":return W?"godzina":"godzin\u0119";case"hh":return te+(L(U)?"godziny":"godzin");case"ww":return te+(L(U)?"tygodnie":"tygodni");case"MM":return te+(L(U)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return te+(L(U)?"lata":"lat")}}T.defineLocale("pl",{months:function(U,W){return U?/D MMMM/.test(W)?H[U.month()]:n[U.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:O,m:O,mm:O,h:O,hh:O,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:O,M:"miesi\u0105c",MM:O,y:"rok",yy:O},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3840:function(Y,G,E){!function(T){"use strict";T.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(E(5439))},4225:function(Y,G,E){!function(T){"use strict";T.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},5128:function(Y,G,E){!function(T){"use strict";function n(D,L,O){var U=" ";return(D%100>=20||D>=100&&D%100==0)&&(U=" de "),D+U+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[O]}T.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:n,m:"un minut",mm:n,h:"o or\u0103",hh:n,d:"o zi",dd:n,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:n,M:"o lun\u0103",MM:n,y:"un an",yy:n},week:{dow:1,doy:7}})}(E(5439))},5127:function(Y,G,E){!function(T){"use strict";function H(O,B,U){return"m"===U?B?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":O+" "+function n(O,B){var U=O.split("_");return B%10==1&&B%100!=11?U[0]:B%10>=2&&B%10<=4&&(B%100<10||B%100>=20)?U[1]:U[2]}({ss:B?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:B?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[U],+O)}var D=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];T.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:D,longMonthsParse:D,shortMonthsParse:D,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(O){if(O.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(O){if(O.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:H,m:H,mm:H,h:"\u0447\u0430\u0441",hh:H,d:"\u0434\u0435\u043d\u044c",dd:H,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:H,M:"\u043c\u0435\u0441\u044f\u0446",MM:H,y:"\u0433\u043e\u0434",yy:H},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(O){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(O)},meridiem:function(O,B,U){return O<4?"\u043d\u043e\u0447\u0438":O<12?"\u0443\u0442\u0440\u0430":O<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(O,B){switch(B){case"M":case"d":case"DDD":return O+"-\u0439";case"D":return O+"-\u0433\u043e";case"w":case"W":return O+"-\u044f";default:return O}},week:{dow:1,doy:4}})}(E(5439))},2525:function(Y,G,E){!function(T){"use strict";var n=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],H=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];T.defineLocale("sd",{months:n,monthsShort:n,weekdays:H,weekdaysShort:H,weekdaysMin:H,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(L){return"\u0634\u0627\u0645"===L},meridiem:function(L,O,B){return L<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(L){return L.replace(/\u060c/g,",")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(E(5439))},9893:function(Y,G,E){!function(T){"use strict";T.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3123:function(Y,G,E){!function(T){"use strict";T.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(H){return H+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(H){return"\u0db4.\u0dc0."===H||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===H},meridiem:function(H,D,L){return H>11?L?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":L?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(E(5439))},3027:function(Y,G,E){!function(T){"use strict";var n="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),H="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function D(B){return B>1&&B<5}function L(B,U,W,ee){var te=B+" ";switch(W){case"s":return U||ee?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return U||ee?te+(D(B)?"sekundy":"sek\xfand"):te+"sekundami";case"m":return U?"min\xfata":ee?"min\xfatu":"min\xfatou";case"mm":return U||ee?te+(D(B)?"min\xfaty":"min\xfat"):te+"min\xfatami";case"h":return U?"hodina":ee?"hodinu":"hodinou";case"hh":return U||ee?te+(D(B)?"hodiny":"hod\xedn"):te+"hodinami";case"d":return U||ee?"de\u0148":"d\u0148om";case"dd":return U||ee?te+(D(B)?"dni":"dn\xed"):te+"d\u0148ami";case"M":return U||ee?"mesiac":"mesiacom";case"MM":return U||ee?te+(D(B)?"mesiace":"mesiacov"):te+"mesiacmi";case"y":return U||ee?"rok":"rokom";case"yy":return U||ee?te+(D(B)?"roky":"rokov"):te+"rokmi"}}T.defineLocale("sk",{months:n,monthsShort:H,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:L,ss:L,m:L,mm:L,h:L,hh:L,d:L,dd:L,M:L,MM:L,y:L,yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8106:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U=D+" ";switch(O){case"s":return L||B?"nekaj sekund":"nekaj sekundami";case"ss":return U+(1===D?L?"sekundo":"sekundi":2===D?L||B?"sekundi":"sekundah":D<5?L||B?"sekunde":"sekundah":"sekund");case"m":return L?"ena minuta":"eno minuto";case"mm":return U+(1===D?L?"minuta":"minuto":2===D?L||B?"minuti":"minutama":D<5?L||B?"minute":"minutami":L||B?"minut":"minutami");case"h":return L?"ena ura":"eno uro";case"hh":return U+(1===D?L?"ura":"uro":2===D?L||B?"uri":"urama":D<5?L||B?"ure":"urami":L||B?"ur":"urami");case"d":return L||B?"en dan":"enim dnem";case"dd":return U+(1===D?L||B?"dan":"dnem":2===D?L||B?"dni":"dnevoma":L||B?"dni":"dnevi");case"M":return L||B?"en mesec":"enim mesecem";case"MM":return U+(1===D?L||B?"mesec":"mesecem":2===D?L||B?"meseca":"mesecema":D<5?L||B?"mesece":"meseci":L||B?"mesecev":"meseci");case"y":return L||B?"eno leto":"enim letom";case"yy":return U+(1===D?L||B?"leto":"letom":2===D?L||B?"leti":"letoma":D<5?L||B?"leta":"leti":L||B?"let":"leti")}}T.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},8799:function(Y,G,E){!function(T){"use strict";T.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(H){return"M"===H.charAt(0)},meridiem:function(H,D,L){return H<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2872:function(Y,G,E){!function(T){"use strict";var n={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(D,L){return D%10>=1&&D%10<=4&&(D%100<10||D%100>=20)?D%10==1?L[0]:L[1]:L[2]},translate:function(D,L,O,B){var W,U=n.words[O];return 1===O.length?"y"===O&&L?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":B||L?U[0]:U[1]:(W=n.correctGrammaticalCase(D,U),"yy"===O&&L&&"\u0433\u043e\u0434\u0438\u043d\u0443"===W?D+" \u0433\u043e\u0434\u0438\u043d\u0430":D+" "+W)}};T.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},7949:function(Y,G,E){!function(T){"use strict";var n={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(D,L){return D%10>=1&&D%10<=4&&(D%100<10||D%100>=20)?D%10==1?L[0]:L[1]:L[2]},translate:function(D,L,O,B){var W,U=n.words[O];return 1===O.length?"y"===O&&L?"jedna godina":B||L?U[0]:U[1]:(W=n.correctGrammaticalCase(D,U),"yy"===O&&L&&"godinu"===W?D+" godina":D+" "+W)}};T.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6167:function(Y,G,E){!function(T){"use strict";T.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(H,D,L){return H<11?"ekuseni":H<15?"emini":H<19?"entsambama":"ebusuku"},meridiemHour:function(H,D){return 12===H&&(H=0),"ekuseni"===D?H:"emini"===D?H>=11?H:H+12:"entsambama"===D||"ebusuku"===D?0===H?0:H+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(E(5439))},9713:function(Y,G,E){!function(T){"use strict";T.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?":e":1===D||2===D?":a":":e")},week:{dow:1,doy:4}})}(E(5439))},1982:function(Y,G,E){!function(T){"use strict";T.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(E(5439))},2732:function(Y,G,E){!function(T){"use strict";var n={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},H={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};T.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(L){return L+"\u0bb5\u0ba4\u0bc1"},preparse:function(L){return L.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(L,O,B){return L<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":L<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":L<10?" \u0b95\u0bbe\u0bb2\u0bc8":L<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":L<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":L<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(L,O){return 12===L&&(L=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===O?L<2?L:L+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===O||"\u0b95\u0bbe\u0bb2\u0bc8"===O||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===O&&L>=10?L:L+12},week:{dow:0,doy:6}})}(E(5439))},3636:function(Y,G,E){!function(T){"use strict";T.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===D?H<4?H:H+12:"\u0c09\u0c26\u0c2f\u0c02"===D?H:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===D?H>=10?H:H+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===D?H+12:void 0},meridiem:function(H,D,L){return H<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":H<10?"\u0c09\u0c26\u0c2f\u0c02":H<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":H<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(E(5439))},2115:function(Y,G,E){!function(T){"use strict";T.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},9801:function(Y,G,E){!function(T){"use strict";var n={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};T.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(D,L){return 12===D&&(D=0),"\u0448\u0430\u0431"===L?D<4?D:D+12:"\u0441\u0443\u0431\u04b3"===L?D:"\u0440\u04ef\u0437"===L?D>=11?D:D+12:"\u0431\u0435\u0433\u043e\u04b3"===L?D+12:void 0},meridiem:function(D,L,O){return D<4?"\u0448\u0430\u0431":D<11?"\u0441\u0443\u0431\u04b3":D<16?"\u0440\u04ef\u0437":D<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},2868:function(Y,G,E){!function(T){"use strict";T.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(H){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===H},meridiem:function(H,D,L){return H<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(E(5439))},1310:function(Y,G,E){!function(T){"use strict";var n={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};T.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(D,L){switch(L){case"d":case"D":case"Do":case"DD":return D;default:if(0===D)return D+"'unjy";var O=D%10;return D+(n[O]||n[D%100-O]||n[D>=100?100:null])}},week:{dow:1,doy:7}})}(E(5439))},2360:function(Y,G,E){!function(T){"use strict";T.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(H){return H},week:{dow:1,doy:4}})}(E(5439))},6645:function(Y,G,E){!function(T){"use strict";var n="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function L(U,W,ee,te){var ae=function O(U){var W=Math.floor(U%1e3/100),ee=Math.floor(U%100/10),te=U%10,ae="";return W>0&&(ae+=n[W]+"vatlh"),ee>0&&(ae+=(""!==ae?" ":"")+n[ee]+"maH"),te>0&&(ae+=(""!==ae?" ":"")+n[te]),""===ae?"pagh":ae}(U);switch(ee){case"ss":return ae+" lup";case"mm":return ae+" tup";case"hh":return ae+" rep";case"dd":return ae+" jaj";case"MM":return ae+" jar";case"yy":return ae+" DIS"}}T.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function H(U){var W=U;return-1!==U.indexOf("jaj")?W.slice(0,-3)+"leS":-1!==U.indexOf("jar")?W.slice(0,-3)+"waQ":-1!==U.indexOf("DIS")?W.slice(0,-3)+"nem":W+" pIq"},past:function D(U){var W=U;return-1!==U.indexOf("jaj")?W.slice(0,-3)+"Hu\u2019":-1!==U.indexOf("jar")?W.slice(0,-3)+"wen":-1!==U.indexOf("DIS")?W.slice(0,-3)+"ben":W+" ret"},s:"puS lup",ss:L,m:"wa\u2019 tup",mm:L,h:"wa\u2019 rep",hh:L,d:"wa\u2019 jaj",dd:L,M:"wa\u2019 jar",MM:L,y:"wa\u2019 DIS",yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8374:function(Y,G,E){!function(T){"use strict";var n={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};T.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(D,L,O){return D<12?O?"\xf6\xf6":"\xd6\xd6":O?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(D){return"\xf6s"===D||"\xd6S"===D},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(D,L){switch(L){case"d":case"D":case"Do":case"DD":return D;default:if(0===D)return D+"'\u0131nc\u0131";var O=D%10;return D+(n[O]||n[D%100-O]||n[D>=100?100:null])}},week:{dow:1,doy:7}})}(E(5439))},256:function(Y,G,E){!function(T){"use strict";function H(D,L,O,B){var U={s:["viensas secunds","'iensas secunds"],ss:[D+" secunds",D+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[D+" m\xeduts",D+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[D+" \xfeoras",D+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[D+" ziuas",D+" ziuas"],M:["'n mes","'iens mes"],MM:[D+" mesen",D+" mesen"],y:["'n ar","'iens ar"],yy:[D+" ars",D+" ars"]};return B||L?U[O][0]:U[O][1]}T.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(D){return"d'o"===D.toLowerCase()},meridiem:function(D,L,O){return D>11?O?"d'o":"D'O":O?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:H,ss:H,m:H,mm:H,h:H,hh:H,d:H,dd:H,M:H,MM:H,y:H,yy:H},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},1631:function(Y,G,E){!function(T){"use strict";T.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(E(5439))},1595:function(Y,G,E){!function(T){"use strict";T.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(E(5439))},6050:function(Y,G,E){!function(T){"use strict";T.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===D||"\u0633\u06d5\u06be\u06d5\u0631"===D||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===D?H:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===D||"\u0643\u06d5\u0686"===D?H+12:H>=11?H:H+12},meridiem:function(H,D,L){var O=100*H+D;return O<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":O<900?"\u0633\u06d5\u06be\u06d5\u0631":O<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":O<1230?"\u0686\u06c8\u0634":O<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return H+"-\u06be\u06d5\u067e\u062a\u06d5";default:return H}},preparse:function(H){return H.replace(/\u060c/g,",")},postformat:function(H){return H.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(E(5439))},5610:function(Y,G,E){!function(T){"use strict";function H(B,U,W){return"m"===W?U?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===W?U?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":B+" "+function n(B,U){var W=B.split("_");return U%10==1&&U%100!=11?W[0]:U%10>=2&&U%10<=4&&(U%100<10||U%100>=20)?W[1]:W[2]}({ss:U?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:U?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:U?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[W],+B)}function L(B){return function(){return B+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}T.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function D(B,U){var W={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===B?W.nominative.slice(1,7).concat(W.nominative.slice(0,1)):B?W[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(U)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(U)?"genitive":"nominative"][B.day()]:W.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:L("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:L("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:L("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:L("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return L("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return L("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:H,m:H,mm:H,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:H,d:"\u0434\u0435\u043d\u044c",dd:H,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:H,y:"\u0440\u0456\u043a",yy:H},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(B){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(B)},meridiem:function(B,U,W){return B<4?"\u043d\u043e\u0447\u0456":B<12?"\u0440\u0430\u043d\u043a\u0443":B<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(B,U){switch(U){case"M":case"d":case"DDD":case"w":case"W":return B+"-\u0439";case"D":return B+"-\u0433\u043e";default:return B}},week:{dow:1,doy:7}})}(E(5439))},6077:function(Y,G,E){!function(T){"use strict";var n=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],H=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];T.defineLocale("ur",{months:n,monthsShort:n,weekdays:H,weekdaysShort:H,weekdaysMin:H,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(L){return"\u0634\u0627\u0645"===L},meridiem:function(L,O,B){return L<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(L){return L.replace(/\u060c/g,",")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(E(5439))},2207:function(Y,G,E){!function(T){"use strict";T.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(E(5439))},2862:function(Y,G,E){!function(T){"use strict";T.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(E(5439))},8093:function(Y,G,E){!function(T){"use strict";T.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(H){return/^ch$/i.test(H)},meridiem:function(H,D,L){return H<12?L?"sa":"SA":L?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(H){return H},week:{dow:1,doy:4}})}(E(5439))},5590:function(Y,G,E){!function(T){"use strict";T.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},9058:function(Y,G,E){!function(T){"use strict";T.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(E(5439))},7908:function(Y,G,E){!function(T){"use strict";T.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?H:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?H+12:H>=11?H:H+12},meridiem:function(H,D,L){var O=100*H+D;return O<600?"\u51cc\u6668":O<900?"\u65e9\u4e0a":O<1130?"\u4e0a\u5348":O<1230?"\u4e2d\u5348":O<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(H){return H.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(H){return this.week()!==H.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"\u65e5";case"M":return H+"\u6708";case"w":case"W":return H+"\u5468";default:return H}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(E(5439))},8867:function(Y,G,E){!function(T){"use strict";T.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?H:"\u4e2d\u5348"===D?H>=11?H:H+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?H+12:void 0},meridiem:function(H,D,L){var O=100*H+D;return O<600?"\u51cc\u6668":O<900?"\u65e9\u4e0a":O<1200?"\u4e0a\u5348":1200===O?"\u4e2d\u5348":O<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"\u65e5";case"M":return H+"\u6708";case"w":case"W":return H+"\u9031";default:return H}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},1133:function(Y,G,E){!function(T){"use strict";T.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?H:"\u4e2d\u5348"===D?H>=11?H:H+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?H+12:void 0},meridiem:function(H,D,L){var O=100*H+D;return O<600?"\u51cc\u6668":O<900?"\u65e9\u4e0a":O<1130?"\u4e0a\u5348":O<1230?"\u4e2d\u5348":O<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"\u65e5";case"M":return H+"\u6708";case"w":case"W":return H+"\u9031";default:return H}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},3291:function(Y,G,E){!function(T){"use strict";T.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?H:"\u4e2d\u5348"===D?H>=11?H:H+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?H+12:void 0},meridiem:function(H,D,L){var O=100*H+D;return O<600?"\u51cc\u6668":O<900?"\u65e9\u4e0a":O<1130?"\u4e0a\u5348":O<1230?"\u4e2d\u5348":O<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"\u65e5";case"M":return H+"\u6708";case"w":case"W":return H+"\u9031";default:return H}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},5439:function(Y,G,E){(Y=E.nmd(Y)).exports=function(){"use strict";var T,be;function n(){return T.apply(null,arguments)}function D(S){return S instanceof Array||"[object Array]"===Object.prototype.toString.call(S)}function L(S){return null!=S&&"[object Object]"===Object.prototype.toString.call(S)}function O(S,P){return Object.prototype.hasOwnProperty.call(S,P)}function B(S){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(S).length;var P;for(P in S)if(O(S,P))return!1;return!0}function U(S){return void 0===S}function W(S){return"number"==typeof S||"[object Number]"===Object.prototype.toString.call(S)}function ee(S){return S instanceof Date||"[object Date]"===Object.prototype.toString.call(S)}function te(S,P){var q,V=[],Q=S.length;for(q=0;q>>0;for(q=0;q0)for(V=0;V=0?V?"+":"":"-")+Math.pow(10,Math.max(0,P-q.length)).toString().substr(1)+q}var cn=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,tt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ai={},Oi={};function Je(S,P,V,q){var Q=q;"string"==typeof q&&(Q=function(){return this[q]()}),S&&(Oi[S]=Q),P&&(Oi[P[0]]=function(){return Ft(Q.apply(this,arguments),P[1],P[2])}),V&&(Oi[V]=function(){return this.localeData().ordinal(Q.apply(this,arguments),S)})}function dn(S){return S.match(/\[[\s\S]/)?S.replace(/^\[|\]$/g,""):S.replace(/\\/g,"")}function Tn(S,P){return S.isValid()?(P=Ii(P,S.localeData()),ai[P]=ai[P]||function Gi(S){var V,q,P=S.match(cn);for(V=0,q=P.length;V=0&&tt.test(S);)S=S.replace(tt,q),tt.lastIndex=0,V-=1;return S}var lt={};function ct(S,P){var V=S.toLowerCase();lt[V]=lt[V+"s"]=lt[P]=S}function Zt(S){return"string"==typeof S?lt[S]||lt[S.toLowerCase()]:void 0}function hi(S){var V,q,P={};for(q in S)O(S,q)&&(V=Zt(q))&&(P[V]=S[q]);return P}var un={};function Kt(S,P){un[S]=P}function ce(S){return S%4==0&&S%100!=0||S%400==0}function ie(S){return S<0?Math.ceil(S)||0:Math.floor(S)}function fe(S){var P=+S,V=0;return 0!==P&&isFinite(P)&&(V=ie(P)),V}function Be(S,P){return function(V){return null!=V?(Bt(this,S,V),n.updateOffset(this,P),this):Ct(this,S)}}function Ct(S,P){return S.isValid()?S._d["get"+(S._isUTC?"UTC":"")+P]():NaN}function Bt(S,P,V){S.isValid()&&!isNaN(V)&&("FullYear"===P&&ce(S.year())&&1===S.month()&&29===S.date()?(V=fe(V),S._d["set"+(S._isUTC?"UTC":"")+P](V,S.month(),Le(V,S.month()))):S._d["set"+(S._isUTC?"UTC":"")+P](V))}var pi,qn=/\d/,kt=/\d\d/,vr=/\d{3}/,Lt=/\d{4}/,Yt=/[+-]?\d{6}/,St=/\d\d?/,lr=/\d\d\d\d?/,Qr=/\d\d\d\d\d\d?/,Kn=/\d{1,3}/,Xr=/\d{1,4}/,jr=/[+-]?\d{1,6}/,Tr=/\d+/,fa=/[+-]?\d+/,Dd=/Z|[+-]\d\d:?\d\d/gi,_s=/Z|[+-]\d\d(?::?\d\d)?/gi,si=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ze(S,P,V){pi[S]=me(P)?P:function(q,Q){return q&&V?V:P}}function ei(S,P){return O(pi,S)?pi[S](P._strict,P._locale):new RegExp(function nt(S){return ft(S.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(P,V,q,Q,he){return V||q||Q||he}))}(S))}function ft(S){return S.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}pi={};var fn={};function Ee(S,P){var V,Q,q=P;for("string"==typeof S&&(S=[S]),W(P)&&(q=function(he,ve){ve[P]=fe(he)}),Q=S.length,V=0;V68?1900:2e3)};var na=Be("FullYear",!0);function Qi(S,P,V,q,Q,he,ve){var At;return S<100&&S>=0?(At=new Date(S+400,P,V,q,Q,he,ve),isFinite(At.getFullYear())&&At.setFullYear(S)):At=new Date(S,P,V,q,Q,he,ve),At}function ba(S){var P,V;return S<100&&S>=0?((V=Array.prototype.slice.call(arguments))[0]=S+400,P=new Date(Date.UTC.apply(null,V)),isFinite(P.getUTCFullYear())&&P.setUTCFullYear(S)):P=new Date(Date.UTC.apply(null,arguments)),P}function ho(S,P,V){var q=7+P-V;return-(7+ba(S,0,q).getUTCDay()-P)%7+q-1}function bs(S,P,V,q,Q){var jt,mn,At=1+7*(P-1)+(7+V-q)%7+ho(S,q,Q);return At<=0?mn=cr(jt=S-1)+At:At>cr(S)?(jt=S+1,mn=At-cr(S)):(jt=S,mn=At),{year:jt,dayOfYear:mn}}function Aa(S,P,V){var he,ve,q=ho(S.year(),P,V),Q=Math.floor((S.dayOfYear()-q-1)/7)+1;return Q<1?he=Q+dr(ve=S.year()-1,P,V):Q>dr(S.year(),P,V)?(he=Q-dr(S.year(),P,V),ve=S.year()+1):(ve=S.year(),he=Q),{week:he,year:ve}}function dr(S,P,V){var q=ho(S,P,V),Q=ho(S+1,P,V);return(cr(S)-q+Q)/7}Je("w",["ww",2],"wo","week"),Je("W",["WW",2],"Wo","isoWeek"),ct("week","w"),ct("isoWeek","W"),Kt("week",5),Kt("isoWeek",5),Ze("w",St),Ze("ww",St,kt),Ze("W",St),Ze("WW",St,kt),yn(["w","ww","W","WW"],function(S,P,V,q){P[q.substr(0,1)]=fe(S)});function Ld(S,P){return S.slice(P,7).concat(S.slice(0,P))}Je("d",0,"do","day"),Je("dd",0,0,function(S){return this.localeData().weekdaysMin(this,S)}),Je("ddd",0,0,function(S){return this.localeData().weekdaysShort(this,S)}),Je("dddd",0,0,function(S){return this.localeData().weekdays(this,S)}),Je("e",0,0,"weekday"),Je("E",0,0,"isoWeekday"),ct("day","d"),ct("weekday","e"),ct("isoWeekday","E"),Kt("day",11),Kt("weekday",11),Kt("isoWeekday",11),Ze("d",St),Ze("e",St),Ze("E",St),Ze("dd",function(S,P){return P.weekdaysMinRegex(S)}),Ze("ddd",function(S,P){return P.weekdaysShortRegex(S)}),Ze("dddd",function(S,P){return P.weekdaysRegex(S)}),yn(["dd","ddd","dddd"],function(S,P,V,q){var Q=V._locale.weekdaysParse(S,q,V._strict);null!=Q?P.d=Q:re(V).invalidWeekday=S}),yn(["d","e","E"],function(S,P,V,q){P[q]=fe(S)});var It="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Hd="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),As=si,Ko=si,ys=si;function zr(S,P,V){var q,Q,he,ve=S.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],q=0;q<7;++q)he=ue([2e3,1]).day(q),this._minWeekdaysParse[q]=this.weekdaysMin(he,"").toLocaleLowerCase(),this._shortWeekdaysParse[q]=this.weekdaysShort(he,"").toLocaleLowerCase(),this._weekdaysParse[q]=this.weekdays(he,"").toLocaleLowerCase();return V?"dddd"===P?-1!==(Q=ht.call(this._weekdaysParse,ve))?Q:null:"ddd"===P?-1!==(Q=ht.call(this._shortWeekdaysParse,ve))?Q:null:-1!==(Q=ht.call(this._minWeekdaysParse,ve))?Q:null:"dddd"===P?-1!==(Q=ht.call(this._weekdaysParse,ve))||-1!==(Q=ht.call(this._shortWeekdaysParse,ve))||-1!==(Q=ht.call(this._minWeekdaysParse,ve))?Q:null:"ddd"===P?-1!==(Q=ht.call(this._shortWeekdaysParse,ve))||-1!==(Q=ht.call(this._weekdaysParse,ve))||-1!==(Q=ht.call(this._minWeekdaysParse,ve))?Q:null:-1!==(Q=ht.call(this._minWeekdaysParse,ve))||-1!==(Q=ht.call(this._weekdaysParse,ve))||-1!==(Q=ht.call(this._shortWeekdaysParse,ve))?Q:null}function el(){function S(Ei,Gr){return Gr.length-Ei.length}var he,ve,At,jt,mn,P=[],V=[],q=[],Q=[];for(he=0;he<7;he++)ve=ue([2e3,1]).day(he),At=ft(this.weekdaysMin(ve,"")),jt=ft(this.weekdaysShort(ve,"")),mn=ft(this.weekdays(ve,"")),P.push(At),V.push(jt),q.push(mn),Q.push(At),Q.push(jt),Q.push(mn);P.sort(S),V.sort(S),q.sort(S),Q.sort(S),this._weekdaysRegex=new RegExp("^("+Q.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+V.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+P.join("|")+")","i")}function go(){return this.hours()%12||12}function Ti(S,P){Je(S,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),P)})}function ws(S,P){return P._meridiemParse}Je("H",["HH",2],0,"hour"),Je("h",["hh",2],0,go),Je("k",["kk",2],0,function li(){return this.hours()||24}),Je("hmm",0,0,function(){return""+go.apply(this)+Ft(this.minutes(),2)}),Je("hmmss",0,0,function(){return""+go.apply(this)+Ft(this.minutes(),2)+Ft(this.seconds(),2)}),Je("Hmm",0,0,function(){return""+this.hours()+Ft(this.minutes(),2)}),Je("Hmmss",0,0,function(){return""+this.hours()+Ft(this.minutes(),2)+Ft(this.seconds(),2)}),Ti("a",!0),Ti("A",!1),ct("hour","h"),Kt("hour",13),Ze("a",ws),Ze("A",ws),Ze("H",St),Ze("h",St),Ze("k",St),Ze("HH",St,kt),Ze("hh",St,kt),Ze("kk",St,kt),Ze("hmm",lr),Ze("hmmss",Qr),Ze("Hmm",lr),Ze("Hmmss",Qr),Ee(["H","HH"],3),Ee(["k","kk"],function(S,P,V){var q=fe(S);P[3]=24===q?0:q}),Ee(["a","A"],function(S,P,V){V._isPm=V._locale.isPM(S),V._meridiem=S}),Ee(["h","hh"],function(S,P,V){P[3]=fe(S),re(V).bigHour=!0}),Ee("hmm",function(S,P,V){var q=S.length-2;P[3]=fe(S.substr(0,q)),P[4]=fe(S.substr(q)),re(V).bigHour=!0}),Ee("hmmss",function(S,P,V){var q=S.length-4,Q=S.length-2;P[3]=fe(S.substr(0,q)),P[4]=fe(S.substr(q,2)),P[5]=fe(S.substr(Q)),re(V).bigHour=!0}),Ee("Hmm",function(S,P,V){var q=S.length-2;P[3]=fe(S.substr(0,q)),P[4]=fe(S.substr(q))}),Ee("Hmmss",function(S,P,V){var q=S.length-4,Q=S.length-2;P[3]=fe(S.substr(0,q)),P[4]=fe(S.substr(q,2)),P[5]=fe(S.substr(Q))});var rh=Be("Hours",!0);var ya,ti={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Zi,monthsShort:Kr,week:{dow:0,doy:6},weekdays:It,weekdaysMin:Hd,weekdaysShort:jn,meridiemParse:/[ap]\.?m?\.?/i},In={},dc={};function ur(S,P){var V,q=Math.min(S.length,P.length);for(V=0;V0;){if(Q=Bi(he.slice(0,V).join("-")))return Q;if(q&&q.length>=V&&ur(he,q)>=V-1)break;V--}P++}return ya}(S)}function Ce(S){var P,V=S._a;return V&&-2===re(S).overflow&&(P=V[1]<0||V[1]>11?1:V[2]<1||V[2]>Le(V[0],V[1])?2:V[3]<0||V[3]>24||24===V[3]&&(0!==V[4]||0!==V[5]||0!==V[6])?3:V[4]<0||V[4]>59?4:V[5]<0||V[5]>59?5:V[6]<0||V[6]>999?6:-1,re(S)._overflowDayOfYear&&(P<0||P>2)&&(P=2),re(S)._overflowWeeks&&-1===P&&(P=7),re(S)._overflowWeekday&&-1===P&&(P=8),re(S).overflow=P),S}var Ae=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Bn=/Z|[+-]\d\d(?::?\d\d)?/,Mn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],tn=/^\/?Date\((-?\d+)/i,gt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Cn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bt(S){var P,V,he,ve,At,jt,q=S._i,Q=Ae.exec(q)||dt.exec(q),mn=Mn.length,Ei=xn.length;if(Q){for(re(S).iso=!0,P=0,V=mn;P7)&&(jt=!0)):(he=S._locale._week.dow,ve=S._locale._week.doy,mn=Aa(Pn(),he,ve),V=Nt(P.gg,S._a[0],mn.year),q=Nt(P.w,mn.week),null!=P.d?((Q=P.d)<0||Q>6)&&(jt=!0):null!=P.e?(Q=P.e+he,(P.e<0||P.e>6)&&(jt=!0)):Q=he),q<1||q>dr(V,he,ve)?re(S)._overflowWeeks=!0:null!=jt?re(S)._overflowWeekday=!0:(At=bs(V,q,Q,he,ve),S._a[0]=At.year,S._dayOfYear=At.dayOfYear)}(S),null!=S._dayOfYear&&(ve=Nt(S._a[0],Q[0]),(S._dayOfYear>cr(ve)||0===S._dayOfYear)&&(re(S)._overflowDayOfYear=!0),V=ba(ve,0,S._dayOfYear),S._a[1]=V.getUTCMonth(),S._a[2]=V.getUTCDate()),P=0;P<3&&null==S._a[P];++P)S._a[P]=q[P]=Q[P];for(;P<7;P++)S._a[P]=q[P]=S._a[P]??(2===P?1:0);24===S._a[3]&&0===S._a[4]&&0===S._a[5]&&0===S._a[6]&&(S._nextDay=!0,S._a[3]=0),S._d=(S._useUTC?ba:Qi).apply(null,q),he=S._useUTC?S._d.getUTCDay():S._d.getDay(),null!=S._tzm&&S._d.setUTCMinutes(S._d.getUTCMinutes()-S._tzm),S._nextDay&&(S._a[3]=24),S._w&&typeof S._w.d<"u"&&S._w.d!==he&&(re(S).weekdayMismatch=!0)}}function vn(S){if(S._f!==n.ISO_8601)if(S._f!==n.RFC_2822){S._a=[],re(S).empty=!0;var V,q,Q,he,ve,mn,Ei,P=""+S._i,At=P.length,jt=0;for(Ei=(Q=Ii(S._f,S._locale).match(cn)||[]).length,V=0;V0&&re(S).unusedInput.push(ve),P=P.slice(P.indexOf(q)+q.length),jt+=q.length),Oi[he]?(q?re(S).empty=!1:re(S).unusedTokens.push(he),wn(he,q,S)):S._strict&&!q&&re(S).unusedTokens.push(he);re(S).charsLeftOver=At-jt,P.length>0&&re(S).unusedInput.push(P),S._a[3]<=12&&!0===re(S).bigHour&&S._a[3]>0&&(re(S).bigHour=void 0),re(S).parsedDateParts=S._a.slice(0),re(S).meridiem=S._meridiem,S._a[3]=function pr(S,P,V){var q;return null==V?P:null!=S.meridiemHour?S.meridiemHour(P,V):(null!=S.isPM&&((q=S.isPM(V))&&P<12&&(P+=12),!q&&12===P&&(P=0)),P)}(S._locale,S._a[3],S._meridiem),null!==(mn=re(S).era)&&(S._a[0]=S._locale.erasConvertYear(mn,S._a[0])),Ms(S),Ce(S)}else Ui(S);else bt(S)}function Rd(S){var P=S._i,V=S._f;return S._locale=S._locale||X(S._l),null===P||void 0===V&&""===P?xe({nullInput:!0}):("string"==typeof P&&(S._i=P=S._locale.preparse(P)),Re(P)?new De(Ce(P)):(ee(P)?S._d=P:D(V)?function Ur(S){var P,V,q,Q,he,ve,At=!1,jt=S._f.length;if(0===jt)return re(S).invalidFormat=!0,void(S._d=new Date(NaN));for(Q=0;Qthis?this:S:xe()});function Pd(S,P){var V,q;if(1===P.length&&D(P[0])&&(P=P[0]),!P.length)return Pn();for(V=P[0],q=1;q=0?new Date(S+400,P,V)-Co:new Date(S,P,V).valueOf()}function jd(S,P,V){return S<100&&S>=0?Date.UTC(S+400,P,V)-Co:Date.UTC(S,P,V)}function gh(S,P){return P.erasAbbrRegex(S)}function zd(){var Q,he,S=[],P=[],V=[],q=[],ve=this.eras();for(Q=0,he=ve.length;Q(he=dr(S,q,Q))&&(P=he),xc.call(this,S,P,V,q,Q))}function xc(S,P,V,q,Q){var he=bs(S,P,V,q,Q),ve=ba(he.year,0,he.dayOfYear);return this.year(ve.getUTCFullYear()),this.month(ve.getUTCMonth()),this.date(ve.getUTCDate()),this}Je("N",0,0,"eraAbbr"),Je("NN",0,0,"eraAbbr"),Je("NNN",0,0,"eraAbbr"),Je("NNNN",0,0,"eraName"),Je("NNNNN",0,0,"eraNarrow"),Je("y",["y",1],"yo","eraYear"),Je("y",["yy",2],0,"eraYear"),Je("y",["yyy",3],0,"eraYear"),Je("y",["yyyy",4],0,"eraYear"),Ze("N",gh),Ze("NN",gh),Ze("NNN",gh),Ze("NNNN",function Ng(S,P){return P.erasNameRegex(S)}),Ze("NNNNN",function hl(S,P){return P.erasNarrowRegex(S)}),Ee(["N","NN","NNN","NNNN","NNNNN"],function(S,P,V,q){var Q=V._locale.erasParse(S,q,V._strict);Q?re(V).era=Q:re(V).invalidEra=S}),Ze("y",Tr),Ze("yy",Tr),Ze("yyy",Tr),Ze("yyyy",Tr),Ze("yo",function Vg(S,P){return P._eraYearOrdinalRegex||Tr}),Ee(["y","yy","yyy","yyyy"],0),Ee(["yo"],function(S,P,V,q){var Q;V._locale._eraYearOrdinalRegex&&(Q=S.match(V._locale._eraYearOrdinalRegex)),P[0]=V._locale.eraYearOrdinalParse?V._locale.eraYearOrdinalParse(S,Q):parseInt(S,10)}),Je(0,["gg",2],0,function(){return this.weekYear()%100}),Je(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Zn("gggg","weekYear"),Zn("ggggg","weekYear"),Zn("GGGG","isoWeekYear"),Zn("GGGGG","isoWeekYear"),ct("weekYear","gg"),ct("isoWeekYear","GG"),Kt("weekYear",1),Kt("isoWeekYear",1),Ze("G",fa),Ze("g",fa),Ze("GG",St,kt),Ze("gg",St,kt),Ze("GGGG",Xr,Lt),Ze("gggg",Xr,Lt),Ze("GGGGG",jr,Yt),Ze("ggggg",jr,Yt),yn(["gggg","ggggg","GGGG","GGGGG"],function(S,P,V,q){P[q.substr(0,2)]=fe(S)}),yn(["gg","GG"],function(S,P,V,q){P[q]=n.parseTwoDigitYear(S)}),Je("Q",0,"Qo","quarter"),ct("quarter","Q"),Kt("quarter",7),Ze("Q",qn),Ee("Q",function(S,P){P[1]=3*(fe(S)-1)}),Je("D",["DD",2],"Do","date"),ct("date","D"),Kt("date",9),Ze("D",St),Ze("DD",St,kt),Ze("Do",function(S,P){return S?P._dayOfMonthOrdinalParse||P._ordinalParse:P._dayOfMonthOrdinalParseLenient}),Ee(["D","DD"],2),Ee("Do",function(S,P){P[2]=fe(S.match(St)[0])});var Sc=Be("Date",!0);Je("DDD",["DDDD",3],"DDDo","dayOfYear"),ct("dayOfYear","DDD"),Kt("dayOfYear",4),Ze("DDD",Kn),Ze("DDDD",vr),Ee(["DDD","DDDD"],function(S,P,V){V._dayOfYear=fe(S)}),Je("m",["mm",2],0,"minute"),ct("minute","m"),Kt("minute",14),Ze("m",St),Ze("mm",St,kt),Ee(["m","mm"],4);var Ec=Be("Minutes",!1);Je("s",["ss",2],0,"second"),ct("second","s"),Kt("second",15),Ze("s",St),Ze("ss",St,kt),Ee(["s","ss"],5);var xa,Dc,Ef=Be("Seconds",!1);for(Je("S",0,0,function(){return~~(this.millisecond()/100)}),Je(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Je(0,["SSS",3],0,"millisecond"),Je(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Je(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Je(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Je(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Je(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Je(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ct("millisecond","ms"),Kt("millisecond",16),Ze("S",Kn,qn),Ze("SS",Kn,kt),Ze("SSS",Kn,vr),xa="SSSS";xa.length<=9;xa+="S")Ze(xa,Tr);function Ki(S,P){P[6]=fe(1e3*("0."+S))}for(xa="S";xa.length<=9;xa+="S")Ee(xa,Ki);Dc=Be("Milliseconds",!1),Je("z",0,0,"zoneAbbr"),Je("zz",0,0,"zoneName");var Ue=De.prototype;function Lc(S){return S}Ue.add=Af,Ue.calendar=function Id(S,P){1===arguments.length&&(arguments[0]?yf(arguments[0])?(S=arguments[0],P=void 0):_c(arguments[0])&&(P=arguments[0],S=void 0):(S=void 0,P=void 0));var V=S||Pn(),q=nn(V,this).startOf("day"),Q=n.calendarFormat(this,q)||"sameElse",he=P&&(me(P[Q])?P[Q].call(this,V):P[Q]);return this.format(he||this.localeData().calendar(Q,this,Pn(V)))},Ue.clone=function Bd(){return new De(this)},Ue.diff=function ph(S,P,V){var q,Q,he;if(!this.isValid())return NaN;if(!(q=nn(S,this)).isValid())return NaN;switch(Q=6e4*(q.utcOffset()-this.utcOffset()),P=Zt(P)){case"year":he=ll(this,q)/12;break;case"month":he=ll(this,q);break;case"quarter":he=ll(this,q)/3;break;case"second":he=(this-q)/1e3;break;case"minute":he=(this-q)/6e4;break;case"hour":he=(this-q)/36e5;break;case"day":he=(this-q-Q)/864e5;break;case"week":he=(this-q-Q)/6048e5;break;default:he=this-q}return V?he:ie(he)},Ue.endOf=function Ls(S){var P,V;if(void 0===(S=Zt(S))||"millisecond"===S||!this.isValid())return this;switch(V=this._isUTC?jd:Ds,S){case"year":P=V(this.year()+1,0,1)-1;break;case"quarter":P=V(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":P=V(this.year(),this.month()+1,1)-1;break;case"week":P=V(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":P=V(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":P=V(this.year(),this.month(),this.date()+1)-1;break;case"hour":P=this._d.valueOf(),P+=ul-Yr(P+(this._isUTC?0:this.utcOffset()*Hr),ul)-1;break;case"minute":P=this._d.valueOf(),P+=Hr-Yr(P,Hr)-1;break;case"second":P=this._d.valueOf(),P+=1e3-Yr(P,1e3)-1}return this._d.setTime(P),n.updateOffset(this,!0),this},Ue.format=function cl(S){S||(S=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var P=Tn(this,S);return this.localeData().postformat(P)},Ue.from=function Ma(S,P){return this.isValid()&&(Re(S)&&S.isValid()||Pn(S).isValid())?$n({to:this,from:S}).locale(this.locale()).humanize(!P):this.localeData().invalidDate()},Ue.fromNow=function dl(S){return this.from(Pn(),S)},Ue.to=function Nd(S,P){return this.isValid()&&(Re(S)&&S.isValid()||Pn(S).isValid())?$n({from:this,to:S}).locale(this.locale()).humanize(!P):this.localeData().invalidDate()},Ue.toNow=function yc(S){return this.to(Pn(),S)},Ue.get=function it(S){return me(this[S=Zt(S)])?this[S]():this},Ue.invalidAt=function ir(){return re(this).overflow},Ue.isAfter=function yo(S,P){var V=Re(S)?S:Pn(S);return!(!this.isValid()||!V.isValid())&&("millisecond"===(P=Zt(P)||"millisecond")?this.valueOf()>V.valueOf():V.valueOf()9999?Tn(V,P?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):me(Date.prototype.toISOString)?P?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Tn(V,"Z")):Tn(V,P?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ue.inspect=function Ac(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var V,q,S="moment",P="";return this.isLocal()||(S=0===this.utcOffset()?"moment.utc":"moment.parseZone",P="Z"),V="["+S+'("]',q=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(V+q+"-MM-DD[T]HH:mm:ss.SSS"+P+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Ue[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ue.toJSON=function Fd(){return this.isValid()?this.toISOString():null},Ue.toString=function Mf(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ue.unix=function wc(){return Math.floor(this.valueOf()/1e3)},Ue.valueOf=function Cf(){return this._d.valueOf()-6e4*(this._offset||0)},Ue.creationData=function Cc(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ue.eraName=function xf(){var S,P,V,q=this.localeData().eras();for(S=0,P=q.length;Sthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ue.isLocal=function al(){return!!this.isValid()&&!this._isUTC},Ue.isUtcOffset=function sl(){return!!this.isValid()&&this._isUTC},Ue.isUtc=vs,Ue.isUTC=vs,Ue.zoneAbbr=function pl(){return this._isUTC?"UTC":""},Ue.zoneName=function vo(){return this._isUTC?"Coordinated Universal Time":""},Ue.dates=Ve("dates accessor is deprecated. Use date instead.",Sc),Ue.months=Ve("months accessor is deprecated. Use month instead",xr),Ue.years=Ve("years accessor is deprecated. Use year instead",na),Ue.zone=Ve("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function ch(S,P){return null!=S?("string"!=typeof S&&(S=-S),this.utcOffset(S,P),this):-this.utcOffset()}),Ue.isDSTShifted=Ve("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function mc(){if(!U(this._isDSTShifted))return this._isDSTShifted;var P,S={};return ke(S,this),(S=Rd(S))._a?(P=S._isUTC?ue(S._a):Pn(S._a),this._isDSTShifted=this.isValid()&&function kd(S,P,V){var ve,q=Math.min(S.length,P.length),Q=Math.abs(S.length-P.length),he=0;for(ve=0;ve0):this._isDSTShifted=!1,this._isDSTShifted});var rn=Me.prototype;function fl(S,P,V,q){var Q=X(),he=ue().set(q,P);return Q[V](he,S)}function Ud(S,P,V){if(W(S)&&(P=S,S=void 0),S=S||"",null!=P)return fl(S,P,V,"month");var q,Q=[];for(q=0;q<12;q++)Q[q]=fl(S,q,V,"month");return Q}function Hc(S,P,V,q){"boolean"==typeof S?(W(P)&&(V=P,P=void 0),P=P||""):(V=P=S,S=!1,W(P)&&(V=P,P=void 0),P=P||"");var ve,Q=X(),he=S?Q._week.dow:0,At=[];if(null!=V)return fl(P,(V+he)%7,q,"day");for(ve=0;ve<7;ve++)At[ve]=fl(P,(ve+he)%7,q,"day");return At}rn.calendar=function yt(S,P,V){var q=this._calendar[S]||this._calendar.sameElse;return me(q)?q.call(P,V):q},rn.longDateFormat=function vi(S){var P=this._longDateFormat[S],V=this._longDateFormat[S.toUpperCase()];return P||!V?P:(this._longDateFormat[S]=V.match(cn).map(function(q){return"MMMM"===q||"MM"===q||"DD"===q||"dddd"===q?q.slice(1):q}).join(""),this._longDateFormat[S])},rn.invalidDate=function pa(){return this._invalidDate},rn.ordinal=function pe(S){return this._ordinal.replace("%d",S)},rn.preparse=Lc,rn.postformat=Lc,rn.relativeTime=function ye(S,P,V,q){var Q=this._relativeTime[V];return me(Q)?Q(S,P,V,q):Q.replace(/%d/i,S)},rn.pastFuture=function Ye(S,P){var V=this._relativeTime[S>0?"future":"past"];return me(V)?V(P):V.replace(/%s/i,P)},rn.set=function _e(S){var P,V;for(V in S)O(S,V)&&(me(P=S[V])?this[V]=P:this["_"+V]=P);this._config=S,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},rn.eras=function Rr(S,P){var V,q,Q,he=this._eras||X("en")._eras;for(V=0,q=he.length;V=0)return he[q]},rn.erasConvertYear=function Tf(S,P){var V=S.since<=S.until?1:-1;return void 0===P?n(S.since).year():n(S.since).year()+(P-S.offset)*V},rn.erasAbbrRegex=function Ig(S){return O(this,"_erasAbbrRegex")||zd.call(this),S?this._erasAbbrRegex:this._erasRegex},rn.erasNameRegex=function Og(S){return O(this,"_erasNameRegex")||zd.call(this),S?this._erasNameRegex:this._erasRegex},rn.erasNarrowRegex=function Bg(S){return O(this,"_erasNarrowRegex")||zd.call(this),S?this._erasNarrowRegex:this._erasRegex},rn.months=function Fr(S,P){return S?D(this._months)?this._months[S.month()]:this._months[(this._months.isFormat||uo).test(P)?"format":"standalone"][S.month()]:D(this._months)?this._months:this._months.standalone},rn.monthsShort=function An(S,P){return S?D(this._monthsShort)?this._monthsShort[S.month()]:this._monthsShort[uo.test(P)?"format":"standalone"][S.month()]:D(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},rn.monthsParse=function ga(S,P,V){var q,Q,he;if(this._monthsParseExact)return ea.call(this,S,P,V);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),q=0;q<12;q++){if(Q=ue([2e3,q]),V&&!this._longMonthsParse[q]&&(this._longMonthsParse[q]=new RegExp("^"+this.months(Q,"").replace(".","")+"$","i"),this._shortMonthsParse[q]=new RegExp("^"+this.monthsShort(Q,"").replace(".","")+"$","i")),!V&&!this._monthsParse[q]&&(he="^"+this.months(Q,"")+"|^"+this.monthsShort(Q,""),this._monthsParse[q]=new RegExp(he.replace(".",""),"i")),V&&"MMMM"===P&&this._longMonthsParse[q].test(S))return q;if(V&&"MMM"===P&&this._shortMonthsParse[q].test(S))return q;if(!V&&this._monthsParse[q].test(S))return q}},rn.monthsRegex=function fi(S){return this._monthsParseExact?(O(this,"_monthsRegex")||Ji.call(this),S?this._monthsStrictRegex:this._monthsRegex):(O(this,"_monthsRegex")||(this._monthsRegex=Mt),this._monthsStrictRegex&&S?this._monthsStrictRegex:this._monthsRegex)},rn.monthsShortRegex=function ta(S){return this._monthsParseExact?(O(this,"_monthsRegex")||Ji.call(this),S?this._monthsShortStrictRegex:this._monthsShortRegex):(O(this,"_monthsShortRegex")||(this._monthsShortRegex=bn),this._monthsShortStrictRegex&&S?this._monthsShortStrictRegex:this._monthsShortRegex)},rn.week=function sn(S){return Aa(S,this._week.dow,this._week.doy).week},rn.firstDayOfYear=function po(){return this._week.doy},rn.firstDayOfWeek=function Ke(){return this._week.dow},rn.weekdays=function eh(S,P){var V=D(this._weekdays)?this._weekdays:this._weekdays[S&&!0!==S&&this._weekdays.isFormat.test(P)?"format":"standalone"];return!0===S?Ld(V,this._week.dow):S?V[S.day()]:V},rn.weekdaysMin=function nh(S){return!0===S?Ld(this._weekdaysMin,this._week.dow):S?this._weekdaysMin[S.day()]:this._weekdaysMin},rn.weekdaysShort=function th(S){return!0===S?Ld(this._weekdaysShort,this._week.dow):S?this._weekdaysShort[S.day()]:this._weekdaysShort},rn.weekdaysParse=function sc(S,P,V){var q,Q,he;if(this._weekdaysParseExact)return zr.call(this,S,P,V);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),q=0;q<7;q++){if(Q=ue([2e3,1]).day(q),V&&!this._fullWeekdaysParse[q]&&(this._fullWeekdaysParse[q]=new RegExp("^"+this.weekdays(Q,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[q]=new RegExp("^"+this.weekdaysShort(Q,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[q]=new RegExp("^"+this.weekdaysMin(Q,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[q]||(he="^"+this.weekdays(Q,"")+"|^"+this.weekdaysShort(Q,"")+"|^"+this.weekdaysMin(Q,""),this._weekdaysParse[q]=new RegExp(he.replace(".",""),"i")),V&&"dddd"===P&&this._fullWeekdaysParse[q].test(S))return q;if(V&&"ddd"===P&&this._shortWeekdaysParse[q].test(S))return q;if(V&&"dd"===P&&this._minWeekdaysParse[q].test(S))return q;if(!V&&this._weekdaysParse[q].test(S))return q}},rn.weekdaysRegex=function lc(S){return this._weekdaysParseExact?(O(this,"_weekdaysRegex")||el.call(this),S?this._weekdaysStrictRegex:this._weekdaysRegex):(O(this,"_weekdaysRegex")||(this._weekdaysRegex=As),this._weekdaysStrictRegex&&S?this._weekdaysStrictRegex:this._weekdaysRegex)},rn.weekdaysShortRegex=function ia(S){return this._weekdaysParseExact?(O(this,"_weekdaysRegex")||el.call(this),S?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(O(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ko),this._weekdaysShortStrictRegex&&S?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},rn.weekdaysMinRegex=function mo(S){return this._weekdaysParseExact?(O(this,"_weekdaysRegex")||el.call(this),S?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(O(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ys),this._weekdaysMinStrictRegex&&S?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},rn.isPM=function ih(S){return"p"===(S+"").toLowerCase().charAt(0)},rn.meridiem=function ff(S,P,V){return S>11?V?"pm":"PM":V?"am":"AM"},j("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(S){var P=S%10;return S+(1===fe(S%100/10)?"th":1===P?"st":2===P?"nd":3===P?"rd":"th")}}),n.lang=Ve("moment.lang is deprecated. Use moment.locale instead.",j),n.langData=Ve("moment.langData is deprecated. Use moment.localeData instead.",X);var Pr=Math.abs;function Gd(S,P,V,q){var Q=$n(P,V);return S._milliseconds+=q*Q._milliseconds,S._days+=q*Q._days,S._months+=q*Q._months,S._bubble()}function ml(S){return S<0?Math.floor(S):Math.ceil(S)}function Rc(S){return 4800*S/146097}function Jn(S){return 146097*S/4800}function mr(S){return function(){return this.as(S)}}var qi=mr("ms"),Mh=mr("s"),Ch=mr("m"),Hf=mr("h"),$d=mr("d"),To=mr("w"),_l=mr("M"),bl=mr("Q"),Rf=mr("y");function sa(S){return function(){return this.isValid()?this._data[S]:NaN}}var vh=sa("milliseconds"),yl=sa("seconds"),wl=sa("minutes"),xo=sa("hours"),Ml=sa("days"),Pf=sa("months"),Fg=sa("years");var Ea=Math.round,Pc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kf(S,P,V,q,Q){return Q.relativeTime(P||1,!!V,S,q)}var Jd=Math.abs;function Os(S){return(S>0)-(S<0)||+S}function Qd(){if(!this.isValid())return this.localeData().invalidDate();var q,Q,he,ve,jt,mn,Ei,Gr,S=Jd(this._milliseconds)/1e3,P=Jd(this._days),V=Jd(this._months),At=this.asSeconds();return At?(q=ie(S/60),Q=ie(q/60),S%=60,q%=60,he=ie(V/12),V%=12,ve=S?S.toFixed(3).replace(/\.?0+$/,""):"",jt=At<0?"-":"",mn=Os(this._months)!==Os(At)?"-":"",Ei=Os(this._days)!==Os(At)?"-":"",Gr=Os(this._milliseconds)!==Os(At)?"-":"",jt+"P"+(he?mn+he+"Y":"")+(V?mn+V+"M":"")+(P?Ei+P+"D":"")+(Q||q||S?"T":"")+(Q?Gr+Q+"H":"")+(q?Gr+q+"M":"")+(S?Gr+ve+"S":"")):"P0D"}var Jt=nl.prototype;return Jt.isValid=function sh(){return this._isValid},Jt.abs=function Ah(){var S=this._data;return this._milliseconds=Pr(this._milliseconds),this._days=Pr(this._days),this._months=Pr(this._months),S.milliseconds=Pr(S.milliseconds),S.seconds=Pr(S.seconds),S.minutes=Pr(S.minutes),S.hours=Pr(S.hours),S.months=Pr(S.months),S.years=Pr(S.years),this},Jt.add=function jg(S,P){return Gd(this,S,P,1)},Jt.subtract=function Lf(S,P){return Gd(this,S,P,-1)},Jt.as=function yh(S){if(!this.isValid())return NaN;var P,V,q=this._milliseconds;if("month"===(S=Zt(S))||"quarter"===S||"year"===S)switch(P=this._days+q/864e5,V=this._months+Rc(P),S){case"month":return V;case"quarter":return V/3;case"year":return V/12}else switch(P=this._days+Math.round(Jn(this._months)),S){case"week":return P/7+q/6048e5;case"day":return P+q/864e5;case"hour":return 24*P+q/36e5;case"minute":return 1440*P+q/6e4;case"second":return 86400*P+q/1e3;case"millisecond":return Math.floor(864e5*P)+q;default:throw new Error("Unknown unit "+S)}},Jt.asMilliseconds=qi,Jt.asSeconds=Mh,Jt.asMinutes=Ch,Jt.asHours=Hf,Jt.asDays=$d,Jt.asWeeks=To,Jt.asMonths=_l,Jt.asQuarters=bl,Jt.asYears=Rf,Jt.valueOf=function wh(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*fe(this._months/12):NaN},Jt._bubble=function gl(){var Q,he,ve,At,jt,S=this._milliseconds,P=this._days,V=this._months,q=this._data;return S>=0&&P>=0&&V>=0||S<=0&&P<=0&&V<=0||(S+=864e5*ml(Jn(V)+P),P=0,V=0),q.milliseconds=S%1e3,Q=ie(S/1e3),q.seconds=Q%60,he=ie(Q/60),q.minutes=he%60,ve=ie(he/60),q.hours=ve%24,P+=ie(ve/24),V+=jt=ie(Rc(P)),P-=ml(Jn(jt)),At=ie(V/12),V%=12,q.days=P,q.months=V,q.years=At,this},Jt.clone=function Al(){return $n(this)},Jt.get=function Sa(S){return S=Zt(S),this.isValid()?this[S+"s"]():NaN},Jt.milliseconds=vh,Jt.seconds=yl,Jt.minutes=wl,Jt.hours=xo,Jt.days=Ml,Jt.weeks=function Th(){return ie(this.days()/7)},Jt.months=Pf,Jt.years=Fg,Jt.humanize=function xh(S,P){if(!this.isValid())return this.localeData().invalidDate();var Q,he,V=!1,q=Pc;return"object"==typeof S&&(P=S,S=!1),"boolean"==typeof S&&(V=S),"object"==typeof P&&(q=Object.assign({},Pc,P),null!=P.s&&null==P.ss&&(q.ss=P.s-1)),he=function Zd(S,P,V,q){var Q=$n(S).abs(),he=Ea(Q.as("s")),ve=Ea(Q.as("m")),At=Ea(Q.as("h")),jt=Ea(Q.as("d")),mn=Ea(Q.as("M")),Ei=Ea(Q.as("w")),Gr=Ea(Q.as("y")),La=he<=V.ss&&["s",he]||he0,La[4]=q,kf.apply(null,La)}(this,!V,q,Q=this.localeData()),V&&(he=Q.pastFuture(+this,he)),Q.postformat(he)},Jt.toISOString=Qd,Jt.toString=Qd,Jt.toJSON=Qd,Jt.locale=fh,Jt.localeData=Es,Jt.toIsoString=Ve("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qd),Jt.lang=Vd,Je("X",0,0,"unix"),Je("x",0,0,"valueOf"),Ze("x",fa),Ze("X",/[+-]?\d+(\.\d{1,3})?/),Ee("X",function(S,P,V){V._d=new Date(1e3*parseFloat(S))}),Ee("x",function(S,P,V){V._d=new Date(fe(S))}),n.version="2.29.4",function H(S){T=S}(Pn),n.fn=Ue,n.min=function fc(){return Pd("isBefore",[].slice.call(arguments,0))},n.max=function tl(){return Pd("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=ue,n.unix=function bh(S){return Pn(1e3*S)},n.months=function qd(S,P){return Ud(S,P,"months")},n.isDate=ee,n.locale=j,n.invalid=xe,n.duration=$n,n.isMoment=Re,n.weekdays=function Yd(S,P,V){return Hc(S,P,V,"weekdays")},n.parseZone=function Df(){return Pn.apply(null,arguments).parseZone()},n.localeData=X,n.isDuration=il,n.monthsShort=function $a(S,P){return Ud(S,P,"monthsShort")},n.weekdaysMin=function Wd(S,P,V){return Hc(S,P,V,"weekdaysMin")},n.defineLocale=J,n.updateLocale=function F(S,P){if(null!=P){var V,q,Q=ti;null!=In[S]&&null!=In[S].parentLocale?In[S].set(Te(In[S]._config,P)):(null!=(q=Bi(S))&&(Q=q._config),P=Te(Q,P),null==q&&(P.abbr=S),(V=new Me(P)).parentLocale=In[S],In[S]=V),j(S)}else null!=In[S]&&(null!=In[S].parentLocale?(In[S]=In[S].parentLocale,S===j()&&j(S)):null!=In[S]&&delete In[S]);return In[S]},n.locales=function le(){return $e(In)},n.weekdaysShort=function Wr(S,P,V){return Hc(S,P,V,"weekdaysShort")},n.normalizeUnits=Zt,n.relativeTimeRounding=function kc(S){return void 0===S?Ea:"function"==typeof S&&(Ea=S,!0)},n.relativeTimeThreshold=function Da(S,P){return void 0!==Pc[S]&&(void 0===P?Pc[S]:(Pc[S]=P,"s"===S&&(Pc.ss=P-1),!0))},n.calendarFormat=function Ss(S,P){var V=S.diff(P,"days",!0);return V<-6?"sameElse":V<-1?"lastWeek":V<0?"lastDay":V<1?"sameDay":V<2?"nextDay":V<7?"nextWeek":"sameElse"},n.prototype=Ue,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()},9751:(Y,G,E)=>{"use strict";E.d(G,{y:()=>U});var T=E(930),n=E(727),H=E(8822),D=E(9635),L=E(2416),O=E(576),B=E(2806);let U=(()=>{class ae{constructor(oe){oe&&(this._subscribe=oe)}lift(oe){const re=new ae;return re.source=this,re.operator=oe,re}subscribe(oe,re,be){const we=function te(ae){return ae&&ae instanceof T.Lv||function ee(ae){return ae&&(0,O.m)(ae.next)&&(0,O.m)(ae.error)&&(0,O.m)(ae.complete)}(ae)&&(0,n.Nn)(ae)}(oe)?oe:new T.Hp(oe,re,be);return(0,B.x)(()=>{const{operator:xe,source:Xe}=this;we.add(xe?xe.call(we,Xe):Xe?this._subscribe(we):this._trySubscribe(we))}),we}_trySubscribe(oe){try{return this._subscribe(oe)}catch(re){oe.error(re)}}forEach(oe,re){return new(re=W(re))((be,we)=>{const xe=new T.Hp({next:Xe=>{try{oe(Xe)}catch(et){we(et),xe.unsubscribe()}},error:we,complete:be});this.subscribe(xe)})}_subscribe(oe){var re;return null===(re=this.source)||void 0===re?void 0:re.subscribe(oe)}[H.L](){return this}pipe(...oe){return(0,D.U)(oe)(this)}toPromise(oe){return new(oe=W(oe))((re,be)=>{let we;this.subscribe(xe=>we=xe,xe=>be(xe),()=>re(we))})}}return ae.create=ue=>new ae(ue),ae})();function W(ae){var ue;return null!==(ue=ae??L.v.Promise)&&void 0!==ue?ue:Promise}},7579:(Y,G,E)=>{"use strict";E.d(G,{x:()=>B});var T=E(9751),n=E(727);const D=(0,E(3888).d)(W=>function(){W(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var L=E(8737),O=E(2806);let B=(()=>{class W extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(te){const ae=new U(this,this);return ae.operator=te,ae}_throwIfClosed(){if(this.closed)throw new D}next(te){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ae of this.currentObservers)ae.next(te)}})}error(te){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=te;const{observers:ae}=this;for(;ae.length;)ae.shift().error(te)}})}complete(){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:te}=this;for(;te.length;)te.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var te;return(null===(te=this.observers)||void 0===te?void 0:te.length)>0}_trySubscribe(te){return this._throwIfClosed(),super._trySubscribe(te)}_subscribe(te){return this._throwIfClosed(),this._checkFinalizedStatuses(te),this._innerSubscribe(te)}_innerSubscribe(te){const{hasError:ae,isStopped:ue,observers:oe}=this;return ae||ue?n.Lc:(this.currentObservers=null,oe.push(te),new n.w0(()=>{this.currentObservers=null,(0,L.P)(oe,te)}))}_checkFinalizedStatuses(te){const{hasError:ae,thrownError:ue,isStopped:oe}=this;ae?te.error(ue):oe&&te.complete()}asObservable(){const te=new T.y;return te.source=this,te}}return W.create=(ee,te)=>new U(ee,te),W})();class U extends B{constructor(ee,te){super(),this.destination=ee,this.source=te}next(ee){var te,ae;null===(ae=null===(te=this.destination)||void 0===te?void 0:te.next)||void 0===ae||ae.call(te,ee)}error(ee){var te,ae;null===(ae=null===(te=this.destination)||void 0===te?void 0:te.error)||void 0===ae||ae.call(te,ee)}complete(){var ee,te;null===(te=null===(ee=this.destination)||void 0===ee?void 0:ee.complete)||void 0===te||te.call(ee)}_subscribe(ee){var te,ae;return null!==(ae=null===(te=this.source)||void 0===te?void 0:te.subscribe(ee))&&void 0!==ae?ae:n.Lc}}},930:(Y,G,E)=>{"use strict";E.d(G,{Hp:()=>be,Lv:()=>ae});var T=E(576),n=E(727),H=E(2416),D=E(7849),L=E(5032);const O=W("C",void 0,void 0);function W(ke,De,Re){return{kind:ke,value:De,error:Re}}var ee=E(3410),te=E(2806);class ae extends n.w0{constructor(De){super(),this.isStopped=!1,De?(this.destination=De,(0,n.Nn)(De)&&De.add(this)):this.destination=et}static create(De,Re,_t){return new be(De,Re,_t)}next(De){this.isStopped?Xe(function U(ke){return W("N",ke,void 0)}(De),this):this._next(De)}error(De){this.isStopped?Xe(function B(ke){return W("E",void 0,ke)}(De),this):(this.isStopped=!0,this._error(De))}complete(){this.isStopped?Xe(O,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(De){this.destination.next(De)}_error(De){try{this.destination.error(De)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ue=Function.prototype.bind;function oe(ke,De){return ue.call(ke,De)}class re{constructor(De){this.partialObserver=De}next(De){const{partialObserver:Re}=this;if(Re.next)try{Re.next(De)}catch(_t){we(_t)}}error(De){const{partialObserver:Re}=this;if(Re.error)try{Re.error(De)}catch(_t){we(_t)}else we(De)}complete(){const{partialObserver:De}=this;if(De.complete)try{De.complete()}catch(Re){we(Re)}}}class be extends ae{constructor(De,Re,_t){let Ve;if(super(),(0,T.m)(De)||!De)Ve={next:De??void 0,error:Re??void 0,complete:_t??void 0};else{let ze;this&&H.v.useDeprecatedNextContext?(ze=Object.create(De),ze.unsubscribe=()=>this.unsubscribe(),Ve={next:De.next&&oe(De.next,ze),error:De.error&&oe(De.error,ze),complete:De.complete&&oe(De.complete,ze)}):Ve=De}this.destination=new re(Ve)}}function we(ke){H.v.useDeprecatedSynchronousErrorHandling?(0,te.O)(ke):(0,D.h)(ke)}function Xe(ke,De){const{onStoppedNotification:Re}=H.v;Re&&ee.z.setTimeout(()=>Re(ke,De))}const et={closed:!0,next:L.Z,error:function xe(ke){throw ke},complete:L.Z}},727:(Y,G,E)=>{"use strict";E.d(G,{Lc:()=>O,w0:()=>L,Nn:()=>B});var T=E(576);const H=(0,E(3888).d)(W=>function(te){W(this),this.message=te?`${te.length} errors occurred during unsubscription:\n${te.map((ae,ue)=>`${ue+1}) ${ae.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=te});var D=E(8737);class L{constructor(ee){this.initialTeardown=ee,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let ee;if(!this.closed){this.closed=!0;const{_parentage:te}=this;if(te)if(this._parentage=null,Array.isArray(te))for(const oe of te)oe.remove(this);else te.remove(this);const{initialTeardown:ae}=this;if((0,T.m)(ae))try{ae()}catch(oe){ee=oe instanceof H?oe.errors:[oe]}const{_finalizers:ue}=this;if(ue){this._finalizers=null;for(const oe of ue)try{U(oe)}catch(re){ee=ee??[],re instanceof H?ee=[...ee,...re.errors]:ee.push(re)}}if(ee)throw new H(ee)}}add(ee){var te;if(ee&&ee!==this)if(this.closed)U(ee);else{if(ee instanceof L){if(ee.closed||ee._hasParent(this))return;ee._addParent(this)}(this._finalizers=null!==(te=this._finalizers)&&void 0!==te?te:[]).push(ee)}}_hasParent(ee){const{_parentage:te}=this;return te===ee||Array.isArray(te)&&te.includes(ee)}_addParent(ee){const{_parentage:te}=this;this._parentage=Array.isArray(te)?(te.push(ee),te):te?[te,ee]:ee}_removeParent(ee){const{_parentage:te}=this;te===ee?this._parentage=null:Array.isArray(te)&&(0,D.P)(te,ee)}remove(ee){const{_finalizers:te}=this;te&&(0,D.P)(te,ee),ee instanceof L&&ee._removeParent(this)}}L.EMPTY=(()=>{const W=new L;return W.closed=!0,W})();const O=L.EMPTY;function B(W){return W instanceof L||W&&"closed"in W&&(0,T.m)(W.remove)&&(0,T.m)(W.add)&&(0,T.m)(W.unsubscribe)}function U(W){(0,T.m)(W)?W():W.unsubscribe()}},2416:(Y,G,E)=>{"use strict";E.d(G,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Y,G,E)=>{"use strict";E.d(G,{a:()=>ee});var T=E(9751),n=E(4742),H=E(2076),D=E(4671),L=E(3268),O=E(3269),B=E(1810),U=E(5403),W=E(9672);function ee(...ue){const oe=(0,O.yG)(ue),re=(0,O.jO)(ue),{args:be,keys:we}=(0,n.D)(ue);if(0===be.length)return(0,H.D)([],oe);const xe=new T.y(function te(ue,oe,re=D.y){return be=>{ae(oe,()=>{const{length:we}=ue,xe=new Array(we);let Xe=we,et=we;for(let ke=0;ke{const De=(0,H.D)(ue[ke],oe);let Re=!1;De.subscribe((0,U.x)(be,_t=>{xe[ke]=_t,Re||(Re=!0,et--),et||be.next(re(xe.slice()))},()=>{--Xe||be.complete()}))},be)},be)}}(be,oe,we?Xe=>(0,B.n)(we,Xe):D.y));return re?xe.pipe((0,L.Z)(re)):xe}function ae(ue,oe,re){ue?(0,W.f)(re,ue,oe):oe()}},7272:(Y,G,E)=>{"use strict";E.d(G,{z:()=>L});var T=E(8189),H=E(3269),D=E(2076);function L(...O){return function n(){return(0,T.J)(1)}()((0,D.D)(O,(0,H.yG)(O)))}},515:(Y,G,E)=>{"use strict";E.d(G,{E:()=>n});const n=new(E(9751).y)(L=>L.complete())},2076:(Y,G,E)=>{"use strict";E.d(G,{D:()=>_t});var T=E(8421),n=E(9672),H=E(4482),D=E(5403);function L(Ve,ze=0){return(0,H.e)((Fe,me)=>{Fe.subscribe((0,D.x)(me,_e=>(0,n.f)(me,Ve,()=>me.next(_e),ze),()=>(0,n.f)(me,Ve,()=>me.complete(),ze),_e=>(0,n.f)(me,Ve,()=>me.error(_e),ze)))})}function O(Ve,ze=0){return(0,H.e)((Fe,me)=>{me.add(Ve.schedule(()=>Fe.subscribe(me),ze))})}var W=E(9751),te=E(2202),ae=E(576);function oe(Ve,ze){if(!Ve)throw new Error("Iterable cannot be null");return new W.y(Fe=>{(0,n.f)(Fe,ze,()=>{const me=Ve[Symbol.asyncIterator]();(0,n.f)(Fe,ze,()=>{me.next().then(_e=>{_e.done?Fe.complete():Fe.next(_e.value)})},0,!0)})})}var re=E(3670),be=E(8239),we=E(1144),xe=E(6495),Xe=E(2206),et=E(4532),ke=E(3260);function _t(Ve,ze){return ze?function Re(Ve,ze){if(null!=Ve){if((0,re.c)(Ve))return function B(Ve,ze){return(0,T.Xf)(Ve).pipe(O(ze),L(ze))}(Ve,ze);if((0,we.z)(Ve))return function ee(Ve,ze){return new W.y(Fe=>{let me=0;return ze.schedule(function(){me===Ve.length?Fe.complete():(Fe.next(Ve[me++]),Fe.closed||this.schedule())})})}(Ve,ze);if((0,be.t)(Ve))return function U(Ve,ze){return(0,T.Xf)(Ve).pipe(O(ze),L(ze))}(Ve,ze);if((0,Xe.D)(Ve))return oe(Ve,ze);if((0,xe.T)(Ve))return function ue(Ve,ze){return new W.y(Fe=>{let me;return(0,n.f)(Fe,ze,()=>{me=Ve[te.h](),(0,n.f)(Fe,ze,()=>{let _e,Te;try{({value:_e,done:Te}=me.next())}catch(Me){return void Fe.error(Me)}Te?Fe.complete():Fe.next(_e)},0,!0)}),()=>(0,ae.m)(me?.return)&&me.return()})}(Ve,ze);if((0,ke.L)(Ve))return function De(Ve,ze){return oe((0,ke.Q)(Ve),ze)}(Ve,ze)}throw(0,et.z)(Ve)}(Ve,ze):(0,T.Xf)(Ve)}},8421:(Y,G,E)=>{"use strict";E.d(G,{Xf:()=>ue});var T=E(655),n=E(1144),H=E(8239),D=E(9751),L=E(3670),O=E(2206),B=E(4532),U=E(6495),W=E(3260),ee=E(576),te=E(7849),ae=E(8822);function ue(ke){if(ke instanceof D.y)return ke;if(null!=ke){if((0,L.c)(ke))return function oe(ke){return new D.y(De=>{const Re=ke[ae.L]();if((0,ee.m)(Re.subscribe))return Re.subscribe(De);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ke);if((0,n.z)(ke))return function re(ke){return new D.y(De=>{for(let Re=0;Re{ke.then(Re=>{De.closed||(De.next(Re),De.complete())},Re=>De.error(Re)).then(null,te.h)})}(ke);if((0,O.D)(ke))return xe(ke);if((0,U.T)(ke))return function we(ke){return new D.y(De=>{for(const Re of ke)if(De.next(Re),De.closed)return;De.complete()})}(ke);if((0,W.L)(ke))return function Xe(ke){return xe((0,W.Q)(ke))}(ke)}throw(0,B.z)(ke)}function xe(ke){return new D.y(De=>{(function et(ke,De){var Re,_t,Ve,ze;return(0,T.mG)(this,void 0,void 0,function*(){try{for(Re=(0,T.KL)(ke);!(_t=yield Re.next()).done;)if(De.next(_t.value),De.closed)return}catch(Fe){Ve={error:Fe}}finally{try{_t&&!_t.done&&(ze=Re.return)&&(yield ze.call(Re))}finally{if(Ve)throw Ve.error}}De.complete()})})(ke,De).catch(Re=>De.error(Re))})}},6451:(Y,G,E)=>{"use strict";E.d(G,{T:()=>O});var T=E(8189),n=E(8421),H=E(515),D=E(3269),L=E(2076);function O(...B){const U=(0,D.yG)(B),W=(0,D._6)(B,1/0),ee=B;return ee.length?1===ee.length?(0,n.Xf)(ee[0]):(0,T.J)(W)((0,L.D)(ee,U)):H.E}},9646:(Y,G,E)=>{"use strict";E.d(G,{of:()=>H});var T=E(3269),n=E(2076);function H(...D){const L=(0,T.yG)(D);return(0,n.D)(D,L)}},102:(Y,G,E)=>{"use strict";E.d(G,{S:()=>O});var T=E(9751),n=E(8421);const{isArray:H}=Array;var L=E(5403);function O(...U){return 1===(U=function D(U){return 1===U.length&&H(U[0])?U[0]:U}(U)).length?(0,n.Xf)(U[0]):new T.y(function B(U){return W=>{let ee=[];for(let te=0;ee&&!W.closed&&te{if(ee){for(let ue=0;ue{"use strict";E.d(G,{_:()=>H});var T=E(9751),n=E(576);function H(D,L){const O=(0,n.m)(D)?D:()=>D,B=U=>U.error(O());return new T.y(L?U=>L.schedule(B,0,U):B)}},2805:(Y,G,E)=>{"use strict";E.d(G,{H:()=>L});var T=E(9751),n=E(4986),H=E(3532),D=E(1165);function L(O=0,B,U=n.P){let W=-1;return null!=B&&((0,H.K)(B)?U=B:W=B),new T.y(ee=>{let te=(0,D.q)(O)?+O-U.now():O;te<0&&(te=0);let ae=0;return U.schedule(function(){ee.closed||(ee.next(ae++),0<=W?this.schedule(void 0,W):ee.complete())},te)})}},5403:(Y,G,E)=>{"use strict";E.d(G,{x:()=>n});var T=E(930);function n(D,L,O,B,U){return new H(D,L,O,B,U)}class H extends T.Lv{constructor(L,O,B,U,W,ee){super(L),this.onFinalize=W,this.shouldUnsubscribe=ee,this._next=O?function(te){try{O(te)}catch(ae){L.error(ae)}}:super._next,this._error=U?function(te){try{U(te)}catch(ae){L.error(ae)}finally{this.unsubscribe()}}:super._error,this._complete=B?function(){try{B()}catch(te){L.error(te)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var L;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:O}=this;super.unsubscribe(),!O&&(null===(L=this.onFinalize)||void 0===L||L.call(this))}}}},262:(Y,G,E)=>{"use strict";E.d(G,{K:()=>D});var T=E(8421),n=E(5403),H=E(4482);function D(L){return(0,H.e)((O,B)=>{let ee,U=null,W=!1;U=O.subscribe((0,n.x)(B,void 0,void 0,te=>{ee=(0,T.Xf)(L(te,D(L)(O))),U?(U.unsubscribe(),U=null,ee.subscribe(B)):W=!0})),W&&(U.unsubscribe(),U=null,ee.subscribe(B))})}},4351:(Y,G,E)=>{"use strict";E.d(G,{b:()=>H});var T=E(5577),n=E(576);function H(D,L){return(0,n.m)(L)?(0,T.z)(D,L,1):(0,T.z)(D,1)}},8372:(Y,G,E)=>{"use strict";E.d(G,{b:()=>D});var T=E(4986),n=E(4482),H=E(5403);function D(L,O=T.z){return(0,n.e)((B,U)=>{let W=null,ee=null,te=null;const ae=()=>{if(W){W.unsubscribe(),W=null;const oe=ee;ee=null,U.next(oe)}};function ue(){const oe=te+L,re=O.now();if(re{ee=oe,te=O.now(),W||(W=O.schedule(ue,L),U.add(W))},()=>{ae(),U.complete()},void 0,()=>{ee=W=null}))})}},6590:(Y,G,E)=>{"use strict";E.d(G,{d:()=>H});var T=E(4482),n=E(5403);function H(D){return(0,T.e)((L,O)=>{let B=!1;L.subscribe((0,n.x)(O,U=>{B=!0,O.next(U)},()=>{B||O.next(D),O.complete()}))})}},1005:(Y,G,E)=>{"use strict";E.d(G,{g:()=>ae});var T=E(4986),n=E(7272),H=E(5698),D=E(4482),L=E(5403),O=E(5032),U=E(9718),W=E(5577);function ee(ue,oe){return oe?re=>(0,n.z)(oe.pipe((0,H.q)(1),function B(){return(0,D.e)((ue,oe)=>{ue.subscribe((0,L.x)(oe,O.Z))})}()),re.pipe(ee(ue))):(0,W.z)((re,be)=>ue(re,be).pipe((0,H.q)(1),(0,U.h)(re)))}var te=E(2805);function ae(ue,oe=T.z){const re=(0,te.H)(ue,oe);return ee(()=>re)}},9300:(Y,G,E)=>{"use strict";E.d(G,{h:()=>H});var T=E(4482),n=E(5403);function H(D,L){return(0,T.e)((O,B)=>{let U=0;O.subscribe((0,n.x)(B,W=>D.call(L,W,U++)&&B.next(W)))})}},590:(Y,G,E)=>{"use strict";E.d(G,{P:()=>B});var T=E(6805),n=E(9300),H=E(5698),D=E(6590),L=E(8068),O=E(4671);function B(U,W){const ee=arguments.length>=2;return te=>te.pipe(U?(0,n.h)((ae,ue)=>U(ae,ue,te)):O.y,(0,H.q)(1),ee?(0,D.d)(W):(0,L.T)(()=>new T.K))}},4004:(Y,G,E)=>{"use strict";E.d(G,{U:()=>H});var T=E(4482),n=E(5403);function H(D,L){return(0,T.e)((O,B)=>{let U=0;O.subscribe((0,n.x)(B,W=>{B.next(D.call(L,W,U++))}))})}},9718:(Y,G,E)=>{"use strict";E.d(G,{h:()=>n});var T=E(4004);function n(H){return(0,T.U)(()=>H)}},8189:(Y,G,E)=>{"use strict";E.d(G,{J:()=>H});var T=E(5577),n=E(4671);function H(D=1/0){return(0,T.z)(n.y,D)}},5577:(Y,G,E)=>{"use strict";E.d(G,{z:()=>U});var T=E(4004),n=E(8421),H=E(4482),D=E(9672),L=E(5403),B=E(576);function U(W,ee,te=1/0){return(0,B.m)(ee)?U((ae,ue)=>(0,T.U)((oe,re)=>ee(ae,oe,ue,re))((0,n.Xf)(W(ae,ue))),te):("number"==typeof ee&&(te=ee),(0,H.e)((ae,ue)=>function O(W,ee,te,ae,ue,oe,re,be){const we=[];let xe=0,Xe=0,et=!1;const ke=()=>{et&&!we.length&&!xe&&ee.complete()},De=_t=>xe{oe&&ee.next(_t),xe++;let Ve=!1;(0,n.Xf)(te(_t,Xe++)).subscribe((0,L.x)(ee,ze=>{ue?.(ze),oe?De(ze):ee.next(ze)},()=>{Ve=!0},void 0,()=>{if(Ve)try{for(xe--;we.length&&xeRe(ze)):Re(ze)}ke()}catch(ze){ee.error(ze)}}))};return W.subscribe((0,L.x)(ee,De,()=>{et=!0,ke()})),()=>{be?.()}}(ae,ue,W,te)))}},3099:(Y,G,E)=>{"use strict";E.d(G,{B:()=>L});var T=E(8421),n=E(7579),H=E(930),D=E(4482);function L(B={}){const{connector:U=(()=>new n.x),resetOnError:W=!0,resetOnComplete:ee=!0,resetOnRefCountZero:te=!0}=B;return ae=>{let ue,oe,re,be=0,we=!1,xe=!1;const Xe=()=>{oe?.unsubscribe(),oe=void 0},et=()=>{Xe(),ue=re=void 0,we=xe=!1},ke=()=>{const De=ue;et(),De?.unsubscribe()};return(0,D.e)((De,Re)=>{be++,!xe&&!we&&Xe();const _t=re=re??U();Re.add(()=>{be--,0===be&&!xe&&!we&&(oe=O(ke,te))}),_t.subscribe(Re),!ue&&be>0&&(ue=new H.Hp({next:Ve=>_t.next(Ve),error:Ve=>{xe=!0,Xe(),oe=O(et,W,Ve),_t.error(Ve)},complete:()=>{we=!0,Xe(),oe=O(et,ee),_t.complete()}}),(0,T.Xf)(De).subscribe(ue))})(ae)}}function O(B,U,...W){if(!0===U)return void B();if(!1===U)return;const ee=new H.Hp({next:()=>{ee.unsubscribe(),B()}});return U(...W).subscribe(ee)}},3900:(Y,G,E)=>{"use strict";E.d(G,{w:()=>D});var T=E(8421),n=E(4482),H=E(5403);function D(L,O){return(0,n.e)((B,U)=>{let W=null,ee=0,te=!1;const ae=()=>te&&!W&&U.complete();B.subscribe((0,H.x)(U,ue=>{W?.unsubscribe();let oe=0;const re=ee++;(0,T.Xf)(L(ue,re)).subscribe(W=(0,H.x)(U,be=>U.next(O?O(ue,be,re,oe++):be),()=>{W=null,ae()}))},()=>{te=!0,ae()}))})}},5698:(Y,G,E)=>{"use strict";E.d(G,{q:()=>D});var T=E(515),n=E(4482),H=E(5403);function D(L){return L<=0?()=>T.E:(0,n.e)((O,B)=>{let U=0;O.subscribe((0,H.x)(B,W=>{++U<=L&&(B.next(W),L<=U&&B.complete())}))})}},8505:(Y,G,E)=>{"use strict";E.d(G,{b:()=>L});var T=E(576),n=E(4482),H=E(5403),D=E(4671);function L(O,B,U){const W=(0,T.m)(O)||B||U?{next:O,error:B,complete:U}:O;return W?(0,n.e)((ee,te)=>{var ae;null===(ae=W.subscribe)||void 0===ae||ae.call(W);let ue=!0;ee.subscribe((0,H.x)(te,oe=>{var re;null===(re=W.next)||void 0===re||re.call(W,oe),te.next(oe)},()=>{var oe;ue=!1,null===(oe=W.complete)||void 0===oe||oe.call(W),te.complete()},oe=>{var re;ue=!1,null===(re=W.error)||void 0===re||re.call(W,oe),te.error(oe)},()=>{var oe,re;ue&&(null===(oe=W.unsubscribe)||void 0===oe||oe.call(W)),null===(re=W.finalize)||void 0===re||re.call(W)}))}):D.y}},8068:(Y,G,E)=>{"use strict";E.d(G,{T:()=>D});var T=E(6805),n=E(4482),H=E(5403);function D(O=L){return(0,n.e)((B,U)=>{let W=!1;B.subscribe((0,H.x)(U,ee=>{W=!0,U.next(ee)},()=>W?U.complete():U.error(O())))})}function L(){return new T.K}},7414:(Y,G,E)=>{"use strict";E.d(G,{V:()=>W});var T=E(4986),n=E(1165),H=E(4482),D=E(8421),L=E(3888),O=E(5403),B=E(9672);const U=(0,L.d)(te=>function(ue=null){te(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ue});function W(te,ae){const{first:ue,each:oe,with:re=ee,scheduler:be=ae??T.z,meta:we=null}=(0,n.q)(te)?{first:te}:"number"==typeof te?{each:te}:te;if(null==ue&&null==oe)throw new TypeError("No timeout provided.");return(0,H.e)((xe,Xe)=>{let et,ke,De=null,Re=0;const _t=Ve=>{ke=(0,B.f)(Xe,be,()=>{try{et.unsubscribe(),(0,D.Xf)(re({meta:we,lastValue:De,seen:Re})).subscribe(Xe)}catch(ze){Xe.error(ze)}},Ve)};et=xe.subscribe((0,O.x)(Xe,Ve=>{ke?.unsubscribe(),Re++,Xe.next(De=Ve),oe>0&&_t(oe)},void 0,void 0,()=>{ke?.closed||ke?.unsubscribe(),De=null})),!Re&&_t(null!=ue?"number"==typeof ue?ue:+ue-be.now():oe)})}function ee(te){throw new U(te)}},4408:(Y,G,E)=>{"use strict";E.d(G,{o:()=>L});var T=E(727);class n extends T.w0{constructor(B,U){super()}schedule(B,U=0){return this}}const H={setInterval(O,B,...U){const{delegate:W}=H;return W?.setInterval?W.setInterval(O,B,...U):setInterval(O,B,...U)},clearInterval(O){const{delegate:B}=H;return(B?.clearInterval||clearInterval)(O)},delegate:void 0};var D=E(8737);class L extends n{constructor(B,U){super(B,U),this.scheduler=B,this.work=U,this.pending=!1}schedule(B,U=0){if(this.closed)return this;this.state=B;const W=this.id,ee=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(ee,W,U)),this.pending=!0,this.delay=U,this.id=this.id||this.requestAsyncId(ee,this.id,U),this}requestAsyncId(B,U,W=0){return H.setInterval(B.flush.bind(B,this),W)}recycleAsyncId(B,U,W=0){if(null!=W&&this.delay===W&&!1===this.pending)return U;H.clearInterval(U)}execute(B,U){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(B,U);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(B,U){let ee,W=!1;try{this.work(B)}catch(te){W=!0,ee=te||new Error("Scheduled action threw falsy error")}if(W)return this.unsubscribe(),ee}unsubscribe(){if(!this.closed){const{id:B,scheduler:U}=this,{actions:W}=U;this.work=this.state=this.scheduler=null,this.pending=!1,(0,D.P)(W,this),null!=B&&(this.id=this.recycleAsyncId(U,B,null)),this.delay=null,super.unsubscribe()}}}},7565:(Y,G,E)=>{"use strict";E.d(G,{v:()=>H});var T=E(6063);class n{constructor(L,O=n.now){this.schedulerActionCtor=L,this.now=O}schedule(L,O=0,B){return new this.schedulerActionCtor(this,L).schedule(B,O)}}n.now=T.l.now;class H extends n{constructor(L,O=n.now){super(L,O),this.actions=[],this._active=!1,this._scheduled=void 0}flush(L){const{actions:O}=this;if(this._active)return void O.push(L);let B;this._active=!0;do{if(B=L.execute(L.state,L.delay))break}while(L=O.shift());if(this._active=!1,B){for(;L=O.shift();)L.unsubscribe();throw B}}}},4986:(Y,G,E)=>{"use strict";E.d(G,{P:()=>D,z:()=>H});var T=E(4408);const H=new(E(7565).v)(T.o),D=H},6063:(Y,G,E)=>{"use strict";E.d(G,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(Y,G,E)=>{"use strict";E.d(G,{z:()=>T});const T={setTimeout(n,H,...D){const{delegate:L}=T;return L?.setTimeout?L.setTimeout(n,H,...D):setTimeout(n,H,...D)},clearTimeout(n){const{delegate:H}=T;return(H?.clearTimeout||clearTimeout)(n)},delegate:void 0}},2202:(Y,G,E)=>{"use strict";E.d(G,{h:()=>n});const n=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Y,G,E)=>{"use strict";E.d(G,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Y,G,E)=>{"use strict";E.d(G,{K:()=>n});const n=(0,E(3888).d)(H=>function(){H(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Y,G,E)=>{"use strict";E.d(G,{_6:()=>O,jO:()=>D,yG:()=>L});var T=E(576),n=E(3532);function H(B){return B[B.length-1]}function D(B){return(0,T.m)(H(B))?B.pop():void 0}function L(B){return(0,n.K)(H(B))?B.pop():void 0}function O(B,U){return"number"==typeof H(B)?B.pop():U}},4742:(Y,G,E)=>{"use strict";E.d(G,{D:()=>L});const{isArray:T}=Array,{getPrototypeOf:n,prototype:H,keys:D}=Object;function L(B){if(1===B.length){const U=B[0];if(T(U))return{args:U,keys:null};if(function O(B){return B&&"object"==typeof B&&n(B)===H}(U)){const W=D(U);return{args:W.map(ee=>U[ee]),keys:W}}}return{args:B,keys:null}}},8737:(Y,G,E)=>{"use strict";function T(n,H){if(n){const D=n.indexOf(H);0<=D&&n.splice(D,1)}}E.d(G,{P:()=>T})},3888:(Y,G,E)=>{"use strict";function T(n){const D=n(L=>{Error.call(L),L.stack=(new Error).stack});return D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D}E.d(G,{d:()=>T})},1810:(Y,G,E)=>{"use strict";function T(n,H){return n.reduce((D,L,O)=>(D[L]=H[O],D),{})}E.d(G,{n:()=>T})},2806:(Y,G,E)=>{"use strict";E.d(G,{O:()=>D,x:()=>H});var T=E(2416);let n=null;function H(L){if(T.v.useDeprecatedSynchronousErrorHandling){const O=!n;if(O&&(n={errorThrown:!1,error:null}),L(),O){const{errorThrown:B,error:U}=n;if(n=null,B)throw U}}else L()}function D(L){T.v.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=L)}},9672:(Y,G,E)=>{"use strict";function T(n,H,D,L=0,O=!1){const B=H.schedule(function(){D(),O?n.add(this.schedule(null,L)):this.unsubscribe()},L);if(n.add(B),!O)return B}E.d(G,{f:()=>T})},4671:(Y,G,E)=>{"use strict";function T(n){return n}E.d(G,{y:()=>T})},1144:(Y,G,E)=>{"use strict";E.d(G,{z:()=>T});const T=n=>n&&"number"==typeof n.length&&"function"!=typeof n},2206:(Y,G,E)=>{"use strict";E.d(G,{D:()=>n});var T=E(576);function n(H){return Symbol.asyncIterator&&(0,T.m)(H?.[Symbol.asyncIterator])}},1165:(Y,G,E)=>{"use strict";function T(n){return n instanceof Date&&!isNaN(n)}E.d(G,{q:()=>T})},576:(Y,G,E)=>{"use strict";function T(n){return"function"==typeof n}E.d(G,{m:()=>T})},3670:(Y,G,E)=>{"use strict";E.d(G,{c:()=>H});var T=E(8822),n=E(576);function H(D){return(0,n.m)(D[T.L])}},6495:(Y,G,E)=>{"use strict";E.d(G,{T:()=>H});var T=E(2202),n=E(576);function H(D){return(0,n.m)(D?.[T.h])}},8239:(Y,G,E)=>{"use strict";E.d(G,{t:()=>n});var T=E(576);function n(H){return(0,T.m)(H?.then)}},3260:(Y,G,E)=>{"use strict";E.d(G,{L:()=>D,Q:()=>H});var T=E(655),n=E(576);function H(L){return(0,T.FC)(this,arguments,function*(){const B=L.getReader();try{for(;;){const{value:U,done:W}=yield(0,T.qq)(B.read());if(W)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(U)}}finally{B.releaseLock()}})}function D(L){return(0,n.m)(L?.getReader)}},3532:(Y,G,E)=>{"use strict";E.d(G,{K:()=>n});var T=E(576);function n(H){return H&&(0,T.m)(H.schedule)}},4482:(Y,G,E)=>{"use strict";E.d(G,{A:()=>n,e:()=>H});var T=E(576);function n(D){return(0,T.m)(D?.lift)}function H(D){return L=>{if(n(L))return L.lift(function(O){try{return D(O,this)}catch(B){this.error(B)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Y,G,E)=>{"use strict";E.d(G,{Z:()=>D});var T=E(4004);const{isArray:n}=Array;function D(L){return(0,T.U)(O=>function H(L,O){return n(O)?L(...O):L(O)}(L,O))}},5032:(Y,G,E)=>{"use strict";function T(){}E.d(G,{Z:()=>T})},9635:(Y,G,E)=>{"use strict";E.d(G,{U:()=>H,z:()=>n});var T=E(4671);function n(...D){return H(D)}function H(D){return 0===D.length?T.y:1===D.length?D[0]:function(O){return D.reduce((B,U)=>U(B),O)}}},7849:(Y,G,E)=>{"use strict";E.d(G,{h:()=>H});var T=E(2416),n=E(3410);function H(D){n.z.setTimeout(()=>{const{onUnhandledError:L}=T.v;if(!L)throw D;L(D)})}},4532:(Y,G,E)=>{"use strict";function T(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(G,{z:()=>T})},6700:(Y,G,E)=>{var T={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function n(D){var L=H(D);return E(L)}function H(D){if(!E.o(T,D)){var L=new Error("Cannot find module '"+D+"'");throw L.code="MODULE_NOT_FOUND",L}return T[D]}n.keys=function(){return Object.keys(T)},n.resolve=H,Y.exports=n,n.id=6700},655:(Y,G,E)=>{"use strict";function U(me,_e,Te,Me){return new(Te||(Te=Promise))(function(We,yt){function Ft(ai){try{tt(Me.next(ai))}catch(Oi){yt(Oi)}}function cn(ai){try{tt(Me.throw(ai))}catch(Oi){yt(Oi)}}function tt(ai){ai.done?We(ai.value):function $e(We){return We instanceof Te?We:new Te(function(yt){yt(We)})}(ai.value).then(Ft,cn)}tt((Me=Me.apply(me,_e||[])).next())})}function we(me){return this instanceof we?(this.v=me,this):new we(me)}function xe(me,_e,Te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $e,Me=Te.apply(me,_e||[]),We=[];return $e={},yt("next"),yt("throw"),yt("return"),$e[Symbol.asyncIterator]=function(){return this},$e;function yt(Je){Me[Je]&&($e[Je]=function(dn){return new Promise(function(Gi,Tn){We.push([Je,dn,Gi,Tn])>1||Ft(Je,dn)})})}function Ft(Je,dn){try{!function cn(Je){Je.value instanceof we?Promise.resolve(Je.value.v).then(tt,ai):Oi(We[0][2],Je)}(Me[Je](dn))}catch(Gi){Oi(We[0][3],Gi)}}function tt(Je){Ft("next",Je)}function ai(Je){Ft("throw",Je)}function Oi(Je,dn){Je(dn),We.shift(),We.length&&Ft(We[0][0],We[0][1])}}function et(me){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Te,_e=me[Symbol.asyncIterator];return _e?_e.call(me):(me=function ae(me){var _e="function"==typeof Symbol&&Symbol.iterator,Te=_e&&me[_e],Me=0;if(Te)return Te.call(me);if(me&&"number"==typeof me.length)return{next:function(){return me&&Me>=me.length&&(me=void 0),{value:me&&me[Me++],done:!me}}};throw new TypeError(_e?"Object is not iterable.":"Symbol.iterator is not defined.")}(me),Te={},Me("next"),Me("throw"),Me("return"),Te[Symbol.asyncIterator]=function(){return this},Te);function Me(We){Te[We]=me[We]&&function(yt){return new Promise(function(Ft,cn){!function $e(We,yt,Ft,cn){Promise.resolve(cn).then(function(tt){We({value:tt,done:Ft})},yt)}(Ft,cn,(yt=me[We](yt)).done,yt.value)})}}}E.d(G,{FC:()=>xe,KL:()=>et,mG:()=>U,qq:()=>we})},6895:(Y,G,E)=>{"use strict";E.d(G,{Do:()=>et,ED:()=>ba,EM:()=>ya,HT:()=>L,JF:()=>Bi,K0:()=>B,Mx:()=>Mt,NF:()=>rh,Nd:()=>sc,O5:()=>fi,Ov:()=>Vn,PC:()=>dr,PM:()=>ff,RF:()=>Sr,S$:()=>we,V_:()=>ee,Ye:()=>ke,b0:()=>Xe,bD:()=>Ti,ez:()=>li,gd:()=>Hd,mk:()=>Fr,n9:()=>Qi,q:()=>H,sg:()=>xr,uU:()=>Ko,w_:()=>O});var T=E(4650);let n=null;function H(){return n}function L(j){n||(n=j)}class O{}const B=new T.OlP("DocumentToken");let U=(()=>{class j{historyGo(F){throw new Error("Not implemented")}}return j.\u0275fac=function(F){return new(F||j)},j.\u0275prov=T.Yz7({token:j,factory:function(){return function W(){return(0,T.LFG)(te)}()},providedIn:"platform"}),j})();const ee=new T.OlP("Location Initialized");let te=(()=>{class j extends U{constructor(F){super(),this._doc=F,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return H().getBaseHref(this._doc)}onPopState(F){const X=H().getGlobalEventTarget(this._doc,"window");return X.addEventListener("popstate",F,!1),()=>X.removeEventListener("popstate",F)}onHashChange(F){const X=H().getGlobalEventTarget(this._doc,"window");return X.addEventListener("hashchange",F,!1),()=>X.removeEventListener("hashchange",F)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(F){this.location.pathname=F}pushState(F,X,le){ae()?this._history.pushState(F,X,le):this.location.hash=le}replaceState(F,X,le){ae()?this._history.replaceState(F,X,le):this.location.hash=le}forward(){this._history.forward()}back(){this._history.back()}historyGo(F=0){this._history.go(F)}getState(){return this._history.state}}return j.\u0275fac=function(F){return new(F||j)(T.LFG(B))},j.\u0275prov=T.Yz7({token:j,factory:function(){return function ue(){return new te((0,T.LFG)(B))}()},providedIn:"platform"}),j})();function ae(){return!!window.history.pushState}function oe(j,J){if(0==j.length)return J;if(0==J.length)return j;let F=0;return j.endsWith("/")&&F++,J.startsWith("/")&&F++,2==F?j+J.substring(1):1==F?j+J:j+"/"+J}function re(j){const J=j.match(/#|\?|$/),F=J&&J.index||j.length;return j.slice(0,F-("/"===j[F-1]?1:0))+j.slice(F)}function be(j){return j&&"?"!==j[0]?"?"+j:j}let we=(()=>{class j{historyGo(F){throw new Error("Not implemented")}}return j.\u0275fac=function(F){return new(F||j)},j.\u0275prov=T.Yz7({token:j,factory:function(){return(0,T.f3M)(Xe)},providedIn:"root"}),j})();const xe=new T.OlP("appBaseHref");let Xe=(()=>{class j extends we{constructor(F,X){var le,Ce,Ae;super(),this._platformLocation=F,this._removeListenerFns=[],this._baseHref=null!==(le=null!==(Ce=X??this._platformLocation.getBaseHrefFromDOM())&&void 0!==Ce?Ce:null===(Ae=(0,T.f3M)(B).location)||void 0===Ae?void 0:Ae.origin)&&void 0!==le?le:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}prepareExternalUrl(F){return oe(this._baseHref,F)}path(F=!1){const X=this._platformLocation.pathname+be(this._platformLocation.search),le=this._platformLocation.hash;return le&&F?`${X}${le}`:X}pushState(F,X,le,Ce){const Ae=this.prepareExternalUrl(le+be(Ce));this._platformLocation.pushState(F,X,Ae)}replaceState(F,X,le,Ce){const Ae=this.prepareExternalUrl(le+be(Ce));this._platformLocation.replaceState(F,X,Ae)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var X,le;null===(X=(le=this._platformLocation).historyGo)||void 0===X||X.call(le,F)}}return j.\u0275fac=function(F){return new(F||j)(T.LFG(U),T.LFG(xe,8))},j.\u0275prov=T.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})(),et=(()=>{class j extends we{constructor(F,X){super(),this._platformLocation=F,this._baseHref="",this._removeListenerFns=[],null!=X&&(this._baseHref=X)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}path(F=!1){let X=this._platformLocation.hash;return null==X&&(X="#"),X.length>0?X.substring(1):X}prepareExternalUrl(F){const X=oe(this._baseHref,F);return X.length>0?"#"+X:X}pushState(F,X,le,Ce){let Ae=this.prepareExternalUrl(le+be(Ce));0==Ae.length&&(Ae=this._platformLocation.pathname),this._platformLocation.pushState(F,X,Ae)}replaceState(F,X,le,Ce){let Ae=this.prepareExternalUrl(le+be(Ce));0==Ae.length&&(Ae=this._platformLocation.pathname),this._platformLocation.replaceState(F,X,Ae)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var X,le;null===(X=(le=this._platformLocation).historyGo)||void 0===X||X.call(le,F)}}return j.\u0275fac=function(F){return new(F||j)(T.LFG(U),T.LFG(xe,8))},j.\u0275prov=T.Yz7({token:j,factory:j.\u0275fac}),j})(),ke=(()=>{class j{constructor(F){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=F;const X=this._locationStrategy.getBaseHref();this._baseHref=re(_t(X)),this._locationStrategy.onPopState(le=>{this._subject.emit({url:this.path(!0),pop:!0,state:le.state,type:le.type})})}ngOnDestroy(){var F;null===(F=this._urlChangeSubscription)||void 0===F||F.unsubscribe(),this._urlChangeListeners=[]}path(F=!1){return this.normalize(this._locationStrategy.path(F))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(F,X=""){return this.path()==this.normalize(F+be(X))}normalize(F){return j.stripTrailingSlash(function Re(j,J){return j&&J.startsWith(j)?J.substring(j.length):J}(this._baseHref,_t(F)))}prepareExternalUrl(F){return F&&"/"!==F[0]&&(F="/"+F),this._locationStrategy.prepareExternalUrl(F)}go(F,X="",le=null){this._locationStrategy.pushState(le,"",F,X),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+be(X)),le)}replaceState(F,X="",le=null){this._locationStrategy.replaceState(le,"",F,X),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+be(X)),le)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(F=0){var X,le;null===(X=(le=this._locationStrategy).historyGo)||void 0===X||X.call(le,F)}onUrlChange(F){return this._urlChangeListeners.push(F),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(X=>{this._notifyUrlChangeListeners(X.url,X.state)})),()=>{const X=this._urlChangeListeners.indexOf(F);var le;this._urlChangeListeners.splice(X,1),0===this._urlChangeListeners.length&&(null===(le=this._urlChangeSubscription)||void 0===le||le.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(F="",X){this._urlChangeListeners.forEach(le=>le(F,X))}subscribe(F,X,le){return this._subject.subscribe({next:F,error:X,complete:le})}}return j.normalizeQueryParams=be,j.joinWithSlash=oe,j.stripTrailingSlash=re,j.\u0275fac=function(F){return new(F||j)(T.LFG(we))},j.\u0275prov=T.Yz7({token:j,factory:function(){return function De(){return new ke((0,T.LFG)(we))}()},providedIn:"root"}),j})();function _t(j){return j.replace(/\/index.html$/,"")}var me=(()=>((me=me||{})[me.Format=0]="Format",me[me.Standalone=1]="Standalone",me))(),_e=(()=>((_e=_e||{})[_e.Narrow=0]="Narrow",_e[_e.Abbreviated=1]="Abbreviated",_e[_e.Wide=2]="Wide",_e[_e.Short=3]="Short",_e))(),Te=(()=>((Te=Te||{})[Te.Short=0]="Short",Te[Te.Medium=1]="Medium",Te[Te.Long=2]="Long",Te[Te.Full=3]="Full",Te))(),Me=(()=>((Me=Me||{})[Me.Decimal=0]="Decimal",Me[Me.Group=1]="Group",Me[Me.List=2]="List",Me[Me.PercentSign=3]="PercentSign",Me[Me.PlusSign=4]="PlusSign",Me[Me.MinusSign=5]="MinusSign",Me[Me.Exponential=6]="Exponential",Me[Me.SuperscriptingExponent=7]="SuperscriptingExponent",Me[Me.PerMille=8]="PerMille",Me[Me.Infinity=9]="Infinity",Me[Me.NaN=10]="NaN",Me[Me.TimeSeparator=11]="TimeSeparator",Me[Me.CurrencyDecimal=12]="CurrencyDecimal",Me[Me.CurrencyGroup=13]="CurrencyGroup",Me))();function Je(j,J){return Ye((0,T.cg1)(j)[T.wAp.DateFormat],J)}function dn(j,J){return Ye((0,T.cg1)(j)[T.wAp.TimeFormat],J)}function Gi(j,J){return Ye((0,T.cg1)(j)[T.wAp.DateTimeFormat],J)}function Tn(j,J){const F=(0,T.cg1)(j),X=F[T.wAp.NumberSymbols][J];if(typeof X>"u"){if(J===Me.CurrencyDecimal)return F[T.wAp.NumberSymbols][Me.Decimal];if(J===Me.CurrencyGroup)return F[T.wAp.NumberSymbols][Me.Group]}return X}function zi(j){if(!j[T.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${j[T.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ye(j,J){for(let F=J;F>-1;F--)if(typeof j[F]<"u")return j[F];throw new Error("Locale data API: locale data undefined")}function lt(j){const[J,F]=j.split(":");return{hours:+J,minutes:+F}}const un=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Kt={},Oe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ce=(()=>((ce=ce||{})[ce.Short=0]="Short",ce[ce.ShortGMT=1]="ShortGMT",ce[ce.Long=2]="Long",ce[ce.Extended=3]="Extended",ce))(),ie=(()=>((ie=ie||{})[ie.FullYear=0]="FullYear",ie[ie.Month=1]="Month",ie[ie.Date=2]="Date",ie[ie.Hours=3]="Hours",ie[ie.Minutes=4]="Minutes",ie[ie.Seconds=5]="Seconds",ie[ie.FractionalSeconds=6]="FractionalSeconds",ie[ie.Day=7]="Day",ie))(),fe=(()=>((fe=fe||{})[fe.DayPeriods=0]="DayPeriods",fe[fe.Days=1]="Days",fe[fe.Months=2]="Months",fe[fe.Eras=3]="Eras",fe))();function Be(j,J,F,X){let le=function pi(j){if(ei(j))return j;if("number"==typeof j&&!isNaN(j))return new Date(j);if("string"==typeof j){if(j=j.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(j)){const[le,Ce=1,Ae=1]=j.split("-").map(dt=>+dt);return Ct(le,Ce-1,Ae)}const F=parseFloat(j);if(!isNaN(j-F))return new Date(F);let X;if(X=j.match(un))return function Ze(j){const J=new Date(0);let F=0,X=0;const le=j[8]?J.setUTCFullYear:J.setFullYear,Ce=j[8]?J.setUTCHours:J.setHours;j[9]&&(F=Number(j[9]+j[10]),X=Number(j[9]+j[11])),le.call(J,Number(j[1]),Number(j[2])-1,Number(j[3]));const Ae=Number(j[4]||0)-F,dt=Number(j[5]||0)-X,Bn=Number(j[6]||0),Mn=Math.floor(1e3*parseFloat("0."+(j[7]||0)));return Ce.call(J,Ae,dt,Bn,Mn),J}(X)}const J=new Date(j);if(!ei(J))throw new Error(`Unable to convert "${j}" into a date`);return J}(j);J=Bt(F,J)||J;let dt,Ae=[];for(;J;){if(dt=Oe.exec(J),!dt){Ae.push(J);break}{Ae=Ae.concat(dt.slice(1));const xn=Ae.pop();if(!xn)break;J=xn}}let Bn=le.getTimezoneOffset();X&&(Bn=_s(X,Bn),le=function si(j,J,F){const X=F?-1:1,le=j.getTimezoneOffset();return function pn(j,J){return(j=new Date(j.getTime())).setMinutes(j.getMinutes()+J),j}(j,X*(_s(J,le)-le))}(le,X,!0));let Mn="";return Ae.forEach(xn=>{const tn=function Dd(j){if(fa[j])return fa[j];let J;switch(j){case"G":case"GG":case"GGG":J=Lt(fe.Eras,_e.Abbreviated);break;case"GGGG":J=Lt(fe.Eras,_e.Wide);break;case"GGGGG":J=Lt(fe.Eras,_e.Narrow);break;case"y":J=kt(ie.FullYear,1,0,!1,!0);break;case"yy":J=kt(ie.FullYear,2,0,!0,!0);break;case"yyy":J=kt(ie.FullYear,3,0,!1,!0);break;case"yyyy":J=kt(ie.FullYear,4,0,!1,!0);break;case"Y":J=Tr(1);break;case"YY":J=Tr(2,!0);break;case"YYY":J=Tr(3);break;case"YYYY":J=Tr(4);break;case"M":case"L":J=kt(ie.Month,1,1);break;case"MM":case"LL":J=kt(ie.Month,2,1);break;case"MMM":J=Lt(fe.Months,_e.Abbreviated);break;case"MMMM":J=Lt(fe.Months,_e.Wide);break;case"MMMMM":J=Lt(fe.Months,_e.Narrow);break;case"LLL":J=Lt(fe.Months,_e.Abbreviated,me.Standalone);break;case"LLLL":J=Lt(fe.Months,_e.Wide,me.Standalone);break;case"LLLLL":J=Lt(fe.Months,_e.Narrow,me.Standalone);break;case"w":J=jr(1);break;case"ww":J=jr(2);break;case"W":J=jr(1,!0);break;case"d":J=kt(ie.Date,1);break;case"dd":J=kt(ie.Date,2);break;case"c":case"cc":J=kt(ie.Day,1);break;case"ccc":J=Lt(fe.Days,_e.Abbreviated,me.Standalone);break;case"cccc":J=Lt(fe.Days,_e.Wide,me.Standalone);break;case"ccccc":J=Lt(fe.Days,_e.Narrow,me.Standalone);break;case"cccccc":J=Lt(fe.Days,_e.Short,me.Standalone);break;case"E":case"EE":case"EEE":J=Lt(fe.Days,_e.Abbreviated);break;case"EEEE":J=Lt(fe.Days,_e.Wide);break;case"EEEEE":J=Lt(fe.Days,_e.Narrow);break;case"EEEEEE":J=Lt(fe.Days,_e.Short);break;case"a":case"aa":case"aaa":J=Lt(fe.DayPeriods,_e.Abbreviated);break;case"aaaa":J=Lt(fe.DayPeriods,_e.Wide);break;case"aaaaa":J=Lt(fe.DayPeriods,_e.Narrow);break;case"b":case"bb":case"bbb":J=Lt(fe.DayPeriods,_e.Abbreviated,me.Standalone,!0);break;case"bbbb":J=Lt(fe.DayPeriods,_e.Wide,me.Standalone,!0);break;case"bbbbb":J=Lt(fe.DayPeriods,_e.Narrow,me.Standalone,!0);break;case"B":case"BB":case"BBB":J=Lt(fe.DayPeriods,_e.Abbreviated,me.Format,!0);break;case"BBBB":J=Lt(fe.DayPeriods,_e.Wide,me.Format,!0);break;case"BBBBB":J=Lt(fe.DayPeriods,_e.Narrow,me.Format,!0);break;case"h":J=kt(ie.Hours,1,-12);break;case"hh":J=kt(ie.Hours,2,-12);break;case"H":J=kt(ie.Hours,1);break;case"HH":J=kt(ie.Hours,2);break;case"m":J=kt(ie.Minutes,1);break;case"mm":J=kt(ie.Minutes,2);break;case"s":J=kt(ie.Seconds,1);break;case"ss":J=kt(ie.Seconds,2);break;case"S":J=kt(ie.FractionalSeconds,1);break;case"SS":J=kt(ie.FractionalSeconds,2);break;case"SSS":J=kt(ie.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":J=St(ce.Short);break;case"ZZZZZ":J=St(ce.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":J=St(ce.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":J=St(ce.Long);break;default:return null}return fa[j]=J,J}(xn);Mn+=tn?tn(le,F,Bn):"''"===xn?"'":xn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Mn}function Ct(j,J,F){const X=new Date(0);return X.setFullYear(j,J,F),X.setHours(0,0,0),X}function Bt(j,J){const F=function We(j){return(0,T.cg1)(j)[T.wAp.LocaleId]}(j);if(Kt[F]=Kt[F]||{},Kt[F][J])return Kt[F][J];let X="";switch(J){case"shortDate":X=Je(j,Te.Short);break;case"mediumDate":X=Je(j,Te.Medium);break;case"longDate":X=Je(j,Te.Long);break;case"fullDate":X=Je(j,Te.Full);break;case"shortTime":X=dn(j,Te.Short);break;case"mediumTime":X=dn(j,Te.Medium);break;case"longTime":X=dn(j,Te.Long);break;case"fullTime":X=dn(j,Te.Full);break;case"short":const le=Bt(j,"shortTime"),Ce=Bt(j,"shortDate");X=it(Gi(j,Te.Short),[le,Ce]);break;case"medium":const Ae=Bt(j,"mediumTime"),dt=Bt(j,"mediumDate");X=it(Gi(j,Te.Medium),[Ae,dt]);break;case"long":const Bn=Bt(j,"longTime"),Mn=Bt(j,"longDate");X=it(Gi(j,Te.Long),[Bn,Mn]);break;case"full":const xn=Bt(j,"fullTime"),tn=Bt(j,"fullDate");X=it(Gi(j,Te.Full),[xn,tn])}return X&&(Kt[F][J]=X),X}function it(j,J){return J&&(j=j.replace(/\{([^}]+)}/g,function(F,X){return null!=J&&X in J?J[X]:F})),j}function Et(j,J,F="-",X,le){let Ce="";(j<0||le&&j<=0)&&(le?j=1-j:(j=-j,Ce=F));let Ae=String(j);for(;Ae.length0||dt>-F)&&(dt+=F),j===ie.Hours)0===dt&&-12===F&&(dt=12);else if(j===ie.FractionalSeconds)return function qn(j,J){return Et(j,3).substring(0,J)}(dt,J);const Bn=Tn(Ae,Me.MinusSign);return Et(dt,J,Bn,X,le)}}function Lt(j,J,F=me.Format,X=!1){return function(le,Ce){return function Yt(j,J,F,X,le,Ce){switch(F){case fe.Months:return function cn(j,J,F){const X=(0,T.cg1)(j),Ce=Ye([X[T.wAp.MonthsFormat],X[T.wAp.MonthsStandalone]],J);return Ye(Ce,F)}(J,le,X)[j.getMonth()];case fe.Days:return function Ft(j,J,F){const X=(0,T.cg1)(j),Ce=Ye([X[T.wAp.DaysFormat],X[T.wAp.DaysStandalone]],J);return Ye(Ce,F)}(J,le,X)[j.getDay()];case fe.DayPeriods:const Ae=j.getHours(),dt=j.getMinutes();if(Ce){const Mn=function pe(j){const J=(0,T.cg1)(j);return zi(J),(J[T.wAp.ExtraData][2]||[]).map(X=>"string"==typeof X?lt(X):[lt(X[0]),lt(X[1])])}(J),xn=function Ie(j,J,F){const X=(0,T.cg1)(j);zi(X);const Ce=Ye([X[T.wAp.ExtraData][0],X[T.wAp.ExtraData][1]],J)||[];return Ye(Ce,F)||[]}(J,le,X),tn=Mn.findIndex(gt=>{if(Array.isArray(gt)){const[Cn,bt]=gt,Se=Ae>=Cn.hours&&dt>=Cn.minutes,pt=Ae0?Math.floor(le/60):Math.ceil(le/60);switch(j){case ce.Short:return(le>=0?"+":"")+Et(Ae,2,Ce)+Et(Math.abs(le%60),2,Ce);case ce.ShortGMT:return"GMT"+(le>=0?"+":"")+Et(Ae,1,Ce);case ce.Long:return"GMT"+(le>=0?"+":"")+Et(Ae,2,Ce)+":"+Et(Math.abs(le%60),2,Ce);case ce.Extended:return 0===X?"Z":(le>=0?"+":"")+Et(Ae,2,Ce)+":"+Et(Math.abs(le%60),2,Ce);default:throw new Error(`Unknown zone width "${j}"`)}}}function Xr(j){return Ct(j.getFullYear(),j.getMonth(),j.getDate()+(4-j.getDay()))}function jr(j,J=!1){return function(F,X){let le;if(J){const Ce=new Date(F.getFullYear(),F.getMonth(),1).getDay()-1,Ae=F.getDate();le=1+Math.floor((Ae+Ce)/7)}else{const Ce=Xr(F),Ae=function Kn(j){const J=Ct(j,0,1).getDay();return Ct(j,0,1+(J<=4?4:11)-J)}(Ce.getFullYear()),dt=Ce.getTime()-Ae.getTime();le=1+Math.round(dt/6048e5)}return Et(le,j,Tn(X,Me.MinusSign))}}function Tr(j,J=!1){return function(F,X){return Et(Xr(F).getFullYear(),j,Tn(X,Me.MinusSign),J)}}const fa={};function _s(j,J){j=j.replace(/:/g,"");const F=Date.parse("Jan 01, 1970 00:00:00 "+j)/6e4;return isNaN(F)?J:F}function ei(j){return j instanceof Date&&!isNaN(j.valueOf())}function Mt(j,J){J=encodeURIComponent(J);for(const F of j.split(";")){const X=F.indexOf("="),[le,Ce]=-1==X?[F,""]:[F.slice(0,X),F.slice(X+1)];if(le.trim()===J)return decodeURIComponent(Ce)}return null}let Fr=(()=>{class j{constructor(F,X,le,Ce){this._iterableDiffers=F,this._keyValueDiffers=X,this._ngEl=le,this._renderer=Ce,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(F){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof F?F.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(F){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof F?F.split(/\s+/):F,this._rawClass&&((0,T.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const F=this._iterableDiffer.diff(this._rawClass);F&&this._applyIterableChanges(F)}else if(this._keyValueDiffer){const F=this._keyValueDiffer.diff(this._rawClass);F&&this._applyKeyValueChanges(F)}}_applyKeyValueChanges(F){F.forEachAddedItem(X=>this._toggleClass(X.key,X.currentValue)),F.forEachChangedItem(X=>this._toggleClass(X.key,X.currentValue)),F.forEachRemovedItem(X=>{X.previousValue&&this._toggleClass(X.key,!1)})}_applyIterableChanges(F){F.forEachAddedItem(X=>{if("string"!=typeof X.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(X.item)}`);this._toggleClass(X.item,!0)}),F.forEachRemovedItem(X=>this._toggleClass(X.item,!1))}_applyClasses(F){F&&(Array.isArray(F)||F instanceof Set?F.forEach(X=>this._toggleClass(X,!0)):Object.keys(F).forEach(X=>this._toggleClass(X,!!F[X])))}_removeClasses(F){F&&(Array.isArray(F)||F instanceof Set?F.forEach(X=>this._toggleClass(X,!1)):Object.keys(F).forEach(X=>this._toggleClass(X,!1)))}_toggleClass(F,X){(F=F.trim())&&F.split(/\s+/g).forEach(le=>{X?this._renderer.addClass(this._ngEl.nativeElement,le):this._renderer.removeClass(this._ngEl.nativeElement,le)})}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),j})();class _a{constructor(J,F,X,le){this.$implicit=J,this.ngForOf=F,this.index=X,this.count=le}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let xr=(()=>{class j{constructor(F,X,le){this._viewContainer=F,this._template=X,this._differs=le,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(F){this._ngForOf=F,this._ngForOfDirty=!0}set ngForTrackBy(F){this._trackByFn=F}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(F){F&&(this._template=F)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const F=this._ngForOf;!this._differ&&F&&(this._differ=this._differs.find(F).create(this.ngForTrackBy))}if(this._differ){const F=this._differ.diff(this._ngForOf);F&&this._applyChanges(F)}}_applyChanges(F){const X=this._viewContainer;F.forEachOperation((le,Ce,Ae)=>{if(null==le.previousIndex)X.createEmbeddedView(this._template,new _a(le.item,this._ngForOf,-1,-1),null===Ae?void 0:Ae);else if(null==Ae)X.remove(null===Ce?void 0:Ce);else if(null!==Ce){const dt=X.get(Ce);X.move(dt,Ae),Yn(dt,le)}});for(let le=0,Ce=X.length;le{Yn(X.get(le.currentIndex),le)})}static ngTemplateContextGuard(F,X){return!0}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),j})();function Yn(j,J){j.context.$implicit=J.item}let fi=(()=>{class j{constructor(F,X){this._viewContainer=F,this._context=new Ji,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=X}set ngIf(F){this._context.$implicit=this._context.ngIf=F,this._updateView()}set ngIfThen(F){cr("ngIfThen",F),this._thenTemplateRef=F,this._thenViewRef=null,this._updateView()}set ngIfElse(F){cr("ngIfElse",F),this._elseTemplateRef=F,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(F,X){return!0}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.s_b),T.Y36(T.Rgc))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),j})();class Ji{constructor(){this.$implicit=null,this.ngIf=null}}function cr(j,J){if(J&&!J.createEmbeddedView)throw new Error(`${j} must be a TemplateRef, but received '${(0,T.AaK)(J)}'.`)}class na{constructor(J,F){this._viewContainerRef=J,this._templateRef=F,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(J){J&&!this._created?this.create():!J&&this._created&&this.destroy()}}let Sr=(()=>{class j{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(F){this._ngSwitch=F,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(F){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(F)}_matchCase(F){const X=F==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||X,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),X}_updateDefaultCases(F){if(this._defaultViews&&F!==this._defaultUsed){this._defaultUsed=F;for(let X=0;X{class j{constructor(F,X,le){this.ngSwitch=le,le._addCase(),this._view=new na(F,X)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Sr,9))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),j})(),ba=(()=>{class j{constructor(F,X,le){le._addDefault(new na(F,X))}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Sr,9))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngSwitchDefault",""]],standalone:!0}),j})(),dr=(()=>{class j{constructor(F,X,le){this._ngEl=F,this._differs=X,this._renderer=le,this._ngStyle=null,this._differ=null}set ngStyle(F){this._ngStyle=F,!this._differ&&F&&(this._differ=this._differs.find(F).create())}ngDoCheck(){if(this._differ){const F=this._differ.diff(this._ngStyle);F&&this._applyChanges(F)}}_setStyle(F,X){const[le,Ce]=F.split("."),Ae=-1===le.indexOf("-")?void 0:T.JOm.DashCase;null!=X?this._renderer.setStyle(this._ngEl.nativeElement,le,Ce?`${X}${Ce}`:X,Ae):this._renderer.removeStyle(this._ngEl.nativeElement,le,Ae)}_applyChanges(F){F.forEachRemovedItem(X=>this._setStyle(X.key,null)),F.forEachAddedItem(X=>this._setStyle(X.key,X.currentValue)),F.forEachChangedItem(X=>this._setStyle(X.key,X.currentValue))}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),j})();function Ke(j,J){return new T.vHH(2100,!1)}class po{createSubscription(J,F){return J.subscribe({next:F,error:X=>{throw X}})}dispose(J){J.unsubscribe()}}class ac{createSubscription(J,F){return J.then(F,X=>{throw X})}dispose(J){}}const C=new ac,Wn=new po;let Vn=(()=>{class j{constructor(F){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=F}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(F){return this._obj?F!==this._obj?(this._dispose(),this.transform(F)):this._latestValue:(F&&this._subscribe(F),this._latestValue)}_subscribe(F){this._obj=F,this._strategy=this._selectStrategy(F),this._subscription=this._strategy.createSubscription(F,X=>this._updateLatestValue(F,X))}_selectStrategy(F){if((0,T.QGY)(F))return C;if((0,T.F4k)(F))return Wn;throw Ke()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(F,X){F===this._obj&&(this._latestValue=X,this._ref.markForCheck())}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.sBO,16))},j.\u0275pipe=T.Yjl({name:"async",type:j,pure:!1,standalone:!0}),j})(),Hd=(()=>{class j{transform(F){if(null==F)return null;if("string"!=typeof F)throw Ke();return F.toUpperCase()}}return j.\u0275fac=function(F){return new(F||j)},j.\u0275pipe=T.Yjl({name:"uppercase",type:j,pure:!0,standalone:!0}),j})();const As=new T.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ko=(()=>{class j{constructor(F,X){this.locale=F,this.defaultTimezone=X}transform(F,X="mediumDate",le,Ce){if(null==F||""===F||F!=F)return null;try{var Ae;return Be(F,X,Ce||this.locale,null!==(Ae=le??this.defaultTimezone)&&void 0!==Ae?Ae:void 0)}catch(dt){throw Ke()}}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.soG,16),T.Y36(As,24))},j.\u0275pipe=T.Yjl({name:"date",type:j,pure:!0,standalone:!0}),j})(),sc=(()=>{class j{constructor(F){this.differs=F,this.keyValues=[],this.compareFn=Er}transform(F,X=Er){if(!F||!(F instanceof Map)&&"object"!=typeof F)return null;this.differ||(this.differ=this.differs.find(F).create());const le=this.differ.diff(F),Ce=X!==this.compareFn;return le&&(this.keyValues=[],le.forEachItem(Ae=>{this.keyValues.push(function zr(j,J){return{key:j,value:J}}(Ae.key,Ae.currentValue))})),(le||Ce)&&(this.keyValues.sort(X),this.compareFn=X),this.keyValues}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.aQg,16))},j.\u0275pipe=T.Yjl({name:"keyvalue",type:j,pure:!1,standalone:!0}),j})();function Er(j,J){const F=j.key,X=J.key;if(F===X)return 0;if(void 0===F)return 1;if(void 0===X)return-1;if(null===F)return 1;if(null===X)return-1;if("string"==typeof F&&"string"==typeof X)return F{class j{}return j.\u0275fac=function(F){return new(F||j)},j.\u0275mod=T.oAB({type:j}),j.\u0275inj=T.cJS({}),j})();const Ti="browser";function rh(j){return j===Ti}function ff(j){return"server"===j}let ya=(()=>{class j{}return j.\u0275prov=(0,T.Yz7)({token:j,providedIn:"root",factory:()=>new ur((0,T.LFG)(B),window)}),j})();class ur{constructor(J,F){this.document=J,this.window=F,this.offset=()=>[0,0]}setOffset(J){this.offset=Array.isArray(J)?()=>J:J}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(J){this.supportsScrolling()&&this.window.scrollTo(J[0],J[1])}scrollToAnchor(J){if(!this.supportsScrolling())return;const F=function hc(j,J){const F=j.getElementById(J)||j.getElementsByName(J)[0];if(F)return F;if("function"==typeof j.createTreeWalker&&j.body&&(j.body.createShadowRoot||j.body.attachShadow)){const X=j.createTreeWalker(j.body,NodeFilter.SHOW_ELEMENT);let le=X.currentNode;for(;le;){const Ce=le.shadowRoot;if(Ce){const Ae=Ce.getElementById(J)||Ce.querySelector(`[name="${J}"]`);if(Ae)return Ae}le=X.nextNode()}}return null}(this.document,J);F&&(this.scrollToElement(F),F.focus())}setHistoryScrollRestoration(J){if(this.supportScrollRestoration()){const F=this.window.history;F&&F.scrollRestoration&&(F.scrollRestoration=J)}}scrollToElement(J){const F=J.getBoundingClientRect(),X=F.left+this.window.pageXOffset,le=F.top+this.window.pageYOffset,Ce=this.offset();this.window.scrollTo(X-Ce[0],le-Ce[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const J=uc(this.window.history)||uc(Object.getPrototypeOf(this.window.history));return!(!J||!J.writable&&!J.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function uc(j){return Object.getOwnPropertyDescriptor(j,"scrollRestoration")}class Bi{}},529:(Y,G,E)=>{"use strict";E.d(G,{JF:()=>hi,LE:()=>xe,TP:()=>Ft,WM:()=>ee,Zn:()=>Te,eN:()=>We,qT:()=>et});var T=E(6895),n=E(4650),H=E(9646),D=E(9751),L=E(4351),O=E(9300),B=E(4004);class U{}class W{}class ee{constructor(ce){this.normalizedNames=new Map,this.lazyUpdate=null,ce?this.lazyInit="string"==typeof ce?()=>{this.headers=new Map,ce.split("\n").forEach(ie=>{const fe=ie.indexOf(":");if(fe>0){const Be=ie.slice(0,fe),Ct=Be.toLowerCase(),Bt=ie.slice(fe+1).trim();this.maybeSetNormalizedName(Be,Ct),this.headers.has(Ct)?this.headers.get(Ct).push(Bt):this.headers.set(Ct,[Bt])}})}:()=>{this.headers=new Map,Object.keys(ce).forEach(ie=>{let fe=ce[ie];const Be=ie.toLowerCase();"string"==typeof fe&&(fe=[fe]),fe.length>0&&(this.headers.set(Be,fe),this.maybeSetNormalizedName(ie,Be))})}:this.headers=new Map}has(ce){return this.init(),this.headers.has(ce.toLowerCase())}get(ce){this.init();const ie=this.headers.get(ce.toLowerCase());return ie&&ie.length>0?ie[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ce){return this.init(),this.headers.get(ce.toLowerCase())||null}append(ce,ie){return this.clone({name:ce,value:ie,op:"a"})}set(ce,ie){return this.clone({name:ce,value:ie,op:"s"})}delete(ce,ie){return this.clone({name:ce,value:ie,op:"d"})}maybeSetNormalizedName(ce,ie){this.normalizedNames.has(ie)||this.normalizedNames.set(ie,ce)}init(){this.lazyInit&&(this.lazyInit instanceof ee?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ce=>this.applyUpdate(ce)),this.lazyUpdate=null))}copyFrom(ce){ce.init(),Array.from(ce.headers.keys()).forEach(ie=>{this.headers.set(ie,ce.headers.get(ie)),this.normalizedNames.set(ie,ce.normalizedNames.get(ie))})}clone(ce){const ie=new ee;return ie.lazyInit=this.lazyInit&&this.lazyInit instanceof ee?this.lazyInit:this,ie.lazyUpdate=(this.lazyUpdate||[]).concat([ce]),ie}applyUpdate(ce){const ie=ce.name.toLowerCase();switch(ce.op){case"a":case"s":let fe=ce.value;if("string"==typeof fe&&(fe=[fe]),0===fe.length)return;this.maybeSetNormalizedName(ce.name,ie);const Be=("a"===ce.op?this.headers.get(ie):void 0)||[];Be.push(...fe),this.headers.set(ie,Be);break;case"d":const Ct=ce.value;if(Ct){let Bt=this.headers.get(ie);if(!Bt)return;Bt=Bt.filter(it=>-1===Ct.indexOf(it)),0===Bt.length?(this.headers.delete(ie),this.normalizedNames.delete(ie)):this.headers.set(ie,Bt)}else this.headers.delete(ie),this.normalizedNames.delete(ie)}}forEach(ce){this.init(),Array.from(this.normalizedNames.keys()).forEach(ie=>ce(this.normalizedNames.get(ie),this.headers.get(ie)))}}class ae{encodeKey(ce){return be(ce)}encodeValue(ce){return be(ce)}decodeKey(ce){return decodeURIComponent(ce)}decodeValue(ce){return decodeURIComponent(ce)}}const oe=/%(\d[a-f0-9])/gi,re={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function be(Oe){return encodeURIComponent(Oe).replace(oe,(ce,ie)=>{var fe;return null!==(fe=re[ie])&&void 0!==fe?fe:ce})}function we(Oe){return`${Oe}`}class xe{constructor(ce={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ce.encoder||new ae,ce.fromString){if(ce.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ue(Oe,ce){const ie=new Map;return Oe.length>0&&Oe.replace(/^\?/,"").split("&").forEach(Be=>{const Ct=Be.indexOf("="),[Bt,it]=-1==Ct?[ce.decodeKey(Be),""]:[ce.decodeKey(Be.slice(0,Ct)),ce.decodeValue(Be.slice(Ct+1))],Et=ie.get(Bt)||[];Et.push(it),ie.set(Bt,Et)}),ie}(ce.fromString,this.encoder)}else ce.fromObject?(this.map=new Map,Object.keys(ce.fromObject).forEach(ie=>{const fe=ce.fromObject[ie],Be=Array.isArray(fe)?fe.map(we):[we(fe)];this.map.set(ie,Be)})):this.map=null}has(ce){return this.init(),this.map.has(ce)}get(ce){this.init();const ie=this.map.get(ce);return ie?ie[0]:null}getAll(ce){return this.init(),this.map.get(ce)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ce,ie){return this.clone({param:ce,value:ie,op:"a"})}appendAll(ce){const ie=[];return Object.keys(ce).forEach(fe=>{const Be=ce[fe];Array.isArray(Be)?Be.forEach(Ct=>{ie.push({param:fe,value:Ct,op:"a"})}):ie.push({param:fe,value:Be,op:"a"})}),this.clone(ie)}set(ce,ie){return this.clone({param:ce,value:ie,op:"s"})}delete(ce,ie){return this.clone({param:ce,value:ie,op:"d"})}toString(){return this.init(),this.keys().map(ce=>{const ie=this.encoder.encodeKey(ce);return this.map.get(ce).map(fe=>ie+"="+this.encoder.encodeValue(fe)).join("&")}).filter(ce=>""!==ce).join("&")}clone(ce){const ie=new xe({encoder:this.encoder});return ie.cloneFrom=this.cloneFrom||this,ie.updates=(this.updates||[]).concat(ce),ie}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ce=>this.map.set(ce,this.cloneFrom.map.get(ce))),this.updates.forEach(ce=>{switch(ce.op){case"a":case"s":const ie=("a"===ce.op?this.map.get(ce.param):void 0)||[];ie.push(we(ce.value)),this.map.set(ce.param,ie);break;case"d":if(void 0===ce.value){this.map.delete(ce.param);break}{let fe=this.map.get(ce.param)||[];const Be=fe.indexOf(we(ce.value));-1!==Be&&fe.splice(Be,1),fe.length>0?this.map.set(ce.param,fe):this.map.delete(ce.param)}}}),this.cloneFrom=this.updates=null)}}class et{constructor(){this.map=new Map}set(ce,ie){return this.map.set(ce,ie),this}get(ce){return this.map.has(ce)||this.map.set(ce,ce.defaultValue()),this.map.get(ce)}delete(ce){return this.map.delete(ce),this}has(ce){return this.map.has(ce)}keys(){return this.map.keys()}}function De(Oe){return typeof ArrayBuffer<"u"&&Oe instanceof ArrayBuffer}function Re(Oe){return typeof Blob<"u"&&Oe instanceof Blob}function _t(Oe){return typeof FormData<"u"&&Oe instanceof FormData}class ze{constructor(ce,ie,fe,Be){let Ct;if(this.url=ie,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ce.toUpperCase(),function ke(Oe){switch(Oe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Be?(this.body=void 0!==fe?fe:null,Ct=Be):Ct=fe,Ct&&(this.reportProgress=!!Ct.reportProgress,this.withCredentials=!!Ct.withCredentials,Ct.responseType&&(this.responseType=Ct.responseType),Ct.headers&&(this.headers=Ct.headers),Ct.context&&(this.context=Ct.context),Ct.params&&(this.params=Ct.params)),this.headers||(this.headers=new ee),this.context||(this.context=new et),this.params){const Bt=this.params.toString();if(0===Bt.length)this.urlWithParams=ie;else{const it=ie.indexOf("?");this.urlWithParams=ie+(-1===it?"?":itLt.set(Yt,ce.setHeaders[Yt]),qn)),ce.setParams&&(kt=Object.keys(ce.setParams).reduce((Lt,Yt)=>Lt.set(Yt,ce.setParams[Yt]),kt)),new ze(fe,Be,Bt,{params:kt,headers:qn,context:vr,reportProgress:Et,responseType:Ct,withCredentials:it})}}var Fe=(()=>((Fe=Fe||{})[Fe.Sent=0]="Sent",Fe[Fe.UploadProgress=1]="UploadProgress",Fe[Fe.ResponseHeader=2]="ResponseHeader",Fe[Fe.DownloadProgress=3]="DownloadProgress",Fe[Fe.Response=4]="Response",Fe[Fe.User=5]="User",Fe))();class me{constructor(ce,ie=200,fe="OK"){this.headers=ce.headers||new ee,this.status=void 0!==ce.status?ce.status:ie,this.statusText=ce.statusText||fe,this.url=ce.url||null,this.ok=this.status>=200&&this.status<300}}class _e extends me{constructor(ce={}){super(ce),this.type=Fe.ResponseHeader}clone(ce={}){return new _e({headers:ce.headers||this.headers,status:void 0!==ce.status?ce.status:this.status,statusText:ce.statusText||this.statusText,url:ce.url||this.url||void 0})}}class Te extends me{constructor(ce={}){super(ce),this.type=Fe.Response,this.body=void 0!==ce.body?ce.body:null}clone(ce={}){return new Te({body:void 0!==ce.body?ce.body:this.body,headers:ce.headers||this.headers,status:void 0!==ce.status?ce.status:this.status,statusText:ce.statusText||this.statusText,url:ce.url||this.url||void 0})}}class Me extends me{constructor(ce){super(ce,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ce.url||"(unknown url)"}`:`Http failure response for ${ce.url||"(unknown url)"}: ${ce.status} ${ce.statusText}`,this.error=ce.error||null}}function $e(Oe,ce){return{body:ce,headers:Oe.headers,context:Oe.context,observe:Oe.observe,params:Oe.params,reportProgress:Oe.reportProgress,responseType:Oe.responseType,withCredentials:Oe.withCredentials}}let We=(()=>{class Oe{constructor(ie){this.handler=ie}request(ie,fe,Be={}){let Ct;if(ie instanceof ze)Ct=ie;else{let Et,qn;Et=Be.headers instanceof ee?Be.headers:new ee(Be.headers),Be.params&&(qn=Be.params instanceof xe?Be.params:new xe({fromObject:Be.params})),Ct=new ze(ie,fe,void 0!==Be.body?Be.body:null,{headers:Et,context:Be.context,params:qn,reportProgress:Be.reportProgress,responseType:Be.responseType||"json",withCredentials:Be.withCredentials})}const Bt=(0,H.of)(Ct).pipe((0,L.b)(Et=>this.handler.handle(Et)));if(ie instanceof ze||"events"===Be.observe)return Bt;const it=Bt.pipe((0,O.h)(Et=>Et instanceof Te));switch(Be.observe||"body"){case"body":switch(Ct.responseType){case"arraybuffer":return it.pipe((0,B.U)(Et=>{if(null!==Et.body&&!(Et.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Et.body}));case"blob":return it.pipe((0,B.U)(Et=>{if(null!==Et.body&&!(Et.body instanceof Blob))throw new Error("Response is not a Blob.");return Et.body}));case"text":return it.pipe((0,B.U)(Et=>{if(null!==Et.body&&"string"!=typeof Et.body)throw new Error("Response is not a string.");return Et.body}));default:return it.pipe((0,B.U)(Et=>Et.body))}case"response":return it;default:throw new Error(`Unreachable: unhandled observe type ${Be.observe}}`)}}delete(ie,fe={}){return this.request("DELETE",ie,fe)}get(ie,fe={}){return this.request("GET",ie,fe)}head(ie,fe={}){return this.request("HEAD",ie,fe)}jsonp(ie,fe){return this.request("JSONP",ie,{params:(new xe).append(fe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ie,fe={}){return this.request("OPTIONS",ie,fe)}patch(ie,fe,Be={}){return this.request("PATCH",ie,$e(Be,fe))}post(ie,fe,Be={}){return this.request("POST",ie,$e(Be,fe))}put(ie,fe,Be={}){return this.request("PUT",ie,$e(Be,fe))}}return Oe.\u0275fac=function(ie){return new(ie||Oe)(n.LFG(U))},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();class yt{constructor(ce,ie){this.next=ce,this.interceptor=ie}handle(ce){return this.interceptor.intercept(ce,this.next)}}const Ft=new n.OlP("HTTP_INTERCEPTORS");let cn=(()=>{class Oe{intercept(ie,fe){return fe.handle(ie)}}return Oe.\u0275fac=function(ie){return new(ie||Oe)},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();const vi=/^\)\]\}',?\n/;let pa=(()=>{class Oe{constructor(ie){this.xhrFactory=ie}handle(ie){if("JSONP"===ie.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new D.y(fe=>{const Be=this.xhrFactory.build();if(Be.open(ie.method,ie.urlWithParams),ie.withCredentials&&(Be.withCredentials=!0),ie.headers.forEach((Yt,St)=>Be.setRequestHeader(Yt,St.join(","))),ie.headers.has("Accept")||Be.setRequestHeader("Accept","application/json, text/plain, */*"),!ie.headers.has("Content-Type")){const Yt=ie.detectContentTypeHeader();null!==Yt&&Be.setRequestHeader("Content-Type",Yt)}if(ie.responseType){const Yt=ie.responseType.toLowerCase();Be.responseType="json"!==Yt?Yt:"text"}const Ct=ie.serializeBody();let Bt=null;const it=()=>{if(null!==Bt)return Bt;const Yt=Be.statusText||"OK",St=new ee(Be.getAllResponseHeaders()),lr=function co(Oe){return"responseURL"in Oe&&Oe.responseURL?Oe.responseURL:/^X-Request-URL:/m.test(Oe.getAllResponseHeaders())?Oe.getResponseHeader("X-Request-URL"):null}(Be)||ie.url;return Bt=new _e({headers:St,status:Be.status,statusText:Yt,url:lr}),Bt},Et=()=>{let{headers:Yt,status:St,statusText:lr,url:Qr}=it(),Kn=null;204!==St&&(Kn=typeof Be.response>"u"?Be.responseText:Be.response),0===St&&(St=Kn?200:0);let Xr=St>=200&&St<300;if("json"===ie.responseType&&"string"==typeof Kn){const jr=Kn;Kn=Kn.replace(vi,"");try{Kn=""!==Kn?JSON.parse(Kn):null}catch(Tr){Kn=jr,Xr&&(Xr=!1,Kn={error:Tr,text:Kn})}}Xr?(fe.next(new Te({body:Kn,headers:Yt,status:St,statusText:lr,url:Qr||void 0})),fe.complete()):fe.error(new Me({error:Kn,headers:Yt,status:St,statusText:lr,url:Qr||void 0}))},qn=Yt=>{const{url:St}=it(),lr=new Me({error:Yt,status:Be.status||0,statusText:Be.statusText||"Unknown Error",url:St||void 0});fe.error(lr)};let kt=!1;const vr=Yt=>{kt||(fe.next(it()),kt=!0);let St={type:Fe.DownloadProgress,loaded:Yt.loaded};Yt.lengthComputable&&(St.total=Yt.total),"text"===ie.responseType&&!!Be.responseText&&(St.partialText=Be.responseText),fe.next(St)},Lt=Yt=>{let St={type:Fe.UploadProgress,loaded:Yt.loaded};Yt.lengthComputable&&(St.total=Yt.total),fe.next(St)};return Be.addEventListener("load",Et),Be.addEventListener("error",qn),Be.addEventListener("timeout",qn),Be.addEventListener("abort",qn),ie.reportProgress&&(Be.addEventListener("progress",vr),null!==Ct&&Be.upload&&Be.upload.addEventListener("progress",Lt)),Be.send(Ct),fe.next({type:Fe.Sent}),()=>{Be.removeEventListener("error",qn),Be.removeEventListener("abort",qn),Be.removeEventListener("load",Et),Be.removeEventListener("timeout",qn),ie.reportProgress&&(Be.removeEventListener("progress",vr),null!==Ct&&Be.upload&&Be.upload.removeEventListener("progress",Lt)),Be.readyState!==Be.DONE&&Be.abort()}})}}return Oe.\u0275fac=function(ie){return new(ie||Oe)(n.LFG(T.JF))},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();const Cr=new n.OlP("XSRF_COOKIE_NAME"),zi=new n.OlP("XSRF_HEADER_NAME");class pe{}let Ie=(()=>{class Oe{constructor(ie,fe,Be){this.doc=ie,this.platform=fe,this.cookieName=Be,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ie=this.doc.cookie||"";return ie!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(ie,this.cookieName),this.lastCookieString=ie),this.lastToken}}return Oe.\u0275fac=function(ie){return new(ie||Oe)(n.LFG(T.K0),n.LFG(n.Lbi),n.LFG(Cr))},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),ye=(()=>{class Oe{constructor(ie,fe){this.tokenService=ie,this.headerName=fe}intercept(ie,fe){const Be=ie.url.toLowerCase();if("GET"===ie.method||"HEAD"===ie.method||Be.startsWith("http://")||Be.startsWith("https://"))return fe.handle(ie);const Ct=this.tokenService.getToken();return null!==Ct&&!ie.headers.has(this.headerName)&&(ie=ie.clone({headers:ie.headers.set(this.headerName,Ct)})),fe.handle(ie)}}return Oe.\u0275fac=function(ie){return new(ie||Oe)(n.LFG(pe),n.LFG(zi))},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),Ye=(()=>{class Oe{constructor(ie,fe){this.backend=ie,this.injector=fe,this.chain=null}handle(ie){if(null===this.chain){const fe=this.injector.get(Ft,[]);this.chain=fe.reduceRight((Be,Ct)=>new yt(Be,Ct),this.backend)}return this.chain.handle(ie)}}return Oe.\u0275fac=function(ie){return new(ie||Oe)(n.LFG(W),n.LFG(n.zs3))},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),Zt=(()=>{class Oe{static disable(){return{ngModule:Oe,providers:[{provide:ye,useClass:cn}]}}static withOptions(ie={}){return{ngModule:Oe,providers:[ie.cookieName?{provide:Cr,useValue:ie.cookieName}:[],ie.headerName?{provide:zi,useValue:ie.headerName}:[]]}}}return Oe.\u0275fac=function(ie){return new(ie||Oe)},Oe.\u0275mod=n.oAB({type:Oe}),Oe.\u0275inj=n.cJS({providers:[ye,{provide:Ft,useExisting:ye,multi:!0},{provide:pe,useClass:Ie},{provide:Cr,useValue:"XSRF-TOKEN"},{provide:zi,useValue:"X-XSRF-TOKEN"}]}),Oe})(),hi=(()=>{class Oe{}return Oe.\u0275fac=function(ie){return new(ie||Oe)},Oe.\u0275mod=n.oAB({type:Oe}),Oe.\u0275inj=n.cJS({providers:[We,{provide:U,useClass:Ye},pa,{provide:W,useExisting:pa}],imports:[Zt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Oe})()},4650:(Y,G,E)=>{"use strict";E.d(G,{$8M:()=>Fd,$Z:()=>V1,AFp:()=>Lb,ALo:()=>Fu,AaK:()=>U,AsE:()=>S_,B6R:()=>Qr,BQk:()=>Bl,CHM:()=>wa,CRH:()=>SC,CZH:()=>Yo,CqO:()=>Io,D6c:()=>dE,DdM:()=>db,Dn7:()=>km,EJc:()=>zn,EiD:()=>zf,EpF:()=>U0,F$t:()=>rr,F4k:()=>p_,FYo:()=>t0,FiY:()=>To,G48:()=>KS,Gf:()=>_b,GfV:()=>au,GkF:()=>Nl,Gpc:()=>te,Gre:()=>od,Hsn:()=>g_,Ikx:()=>ld,JOm:()=>Ja,JVY:()=>dy,Jf7:()=>qy,KtG:()=>nr,L6k:()=>uy,LAX:()=>Dh,LFG:()=>Jn,LSH:()=>qf,Lbi:()=>GC,Lck:()=>Qs,MAs:()=>ad,MGl:()=>Lu,MMx:()=>Pp,NdJ:()=>sp,O4$:()=>ch,OlP:()=>Sn,Oqu:()=>J0,PXZ:()=>ii,Q2q:()=>rd,Q6J:()=>u_,QGY:()=>q0,QP$:()=>Ks,QbO:()=>$C,Qsj:()=>ru,R0b:()=>wr,RDi:()=>V,Rgc:()=>zu,SBq:()=>kr,Sil:()=>Jp,Suo:()=>bb,TTD:()=>Er,TgZ:()=>F0,Tol:()=>M_,Udp:()=>$0,VKq:()=>ub,WFA:()=>op,WLB:()=>Nr,XFs:()=>ye,Xpm:()=>lr,Xts:()=>Cl,Y36:()=>$c,YKP:()=>rb,YNc:()=>d_,Yjl:()=>_s,Yz7:()=>dn,ZZ4:()=>Jb,_Bn:()=>ib,_UZ:()=>rp,_Vd:()=>Nc,_c5:()=>Cv,_uU:()=>as,aQg:()=>Qb,c2e:()=>Pb,cJS:()=>Tn,cg1:()=>_p,d8E:()=>gp,dDg:()=>nv,dqk:()=>fe,eBb:()=>hy,eFA:()=>Gl,ekj:()=>Z0,eoX:()=>tg,f3M:()=>wh,g9A:()=>Hb,h0i:()=>sr,hGG:()=>cE,hYB:()=>cp,hij:()=>fp,iGM:()=>gd,ifc:()=>ie,ip1:()=>qo,kL8:()=>lm,kcU:()=>Od,lG2:()=>Dd,lcZ:()=>pC,lqb:()=>xl,lri:()=>Nb,mCW:()=>eu,n5z:()=>wc,n_E:()=>Np,oAB:()=>jr,oJD:()=>Xg,oxw:()=>m_,pB0:()=>py,q3G:()=>gi,qLn:()=>Ra,qOj:()=>B0,qZA:()=>z0,qzn:()=>Oc,rWj:()=>ni,s9C:()=>lp,sBO:()=>tE,sIi:()=>vu,s_b:()=>Uu,soG:()=>Zp,tb:()=>Rb,tp0:()=>bl,uIk:()=>Tu,vHH:()=>re,vpe:()=>ss,wAp:()=>vt,xDo:()=>mp,xi3:()=>fC,xp6:()=>Dl,ynx:()=>ap,z2F:()=>rg,z3N:()=>Za,zSh:()=>Zf,zs3:()=>Qa});var T=E(7579),n=E(727),H=E(9751),D=E(6451),L=E(3099);function O(_){for(let b in _)if(_[b]===O)return b;throw Error("Could not find renamed property on target object.")}function B(_,b){for(const y in b)b.hasOwnProperty(y)&&!_.hasOwnProperty(y)&&(_[y]=b[y])}function U(_){if("string"==typeof _)return _;if(Array.isArray(_))return"["+_.map(U).join(", ")+"]";if(null==_)return""+_;if(_.overriddenName)return`${_.overriddenName}`;if(_.name)return`${_.name}`;const b=_.toString();if(null==b)return""+b;const y=b.indexOf("\n");return-1===y?b:b.substring(0,y)}function W(_,b){return null==_||""===_?null===b?"":b:null==b||""===b?_:_+" "+b}const ee=O({__forward_ref__:O});function te(_){return _.__forward_ref__=te,_.toString=function(){return U(this())},_}function ae(_){return ue(_)?_():_}function ue(_){return"function"==typeof _&&_.hasOwnProperty(ee)&&_.__forward_ref__===te}class re extends Error{constructor(b,y){super(function be(_,b){return`NG0${Math.abs(_)}${b?": "+b.trim():""}`}(b,y)),this.code=b}}function we(_){return"string"==typeof _?_:null==_?"":String(_)}function De(_,b){throw new re(-201,!1)}function cn(_,b){null==_&&function tt(_,b,y,M){throw new Error(`ASSERTION ERROR: ${_}`+(null==M?"":` [Expected=> ${y} ${M} ${b} <=Actual]`))}(b,_,null,"!=")}function dn(_){return{token:_.token,providedIn:_.providedIn||null,factory:_.factory,value:void 0}}function Tn(_){return{providers:_.providers||[],imports:_.imports||[]}}function Ii(_){return hn(_,Cr)||hn(_,pe)}function hn(_,b){return _.hasOwnProperty(b)?_[b]:null}function pa(_){return _&&(_.hasOwnProperty(zi)||_.hasOwnProperty(Ie))?_[zi]:null}const Cr=O({\u0275prov:O}),zi=O({\u0275inj:O}),pe=O({ngInjectableDef:O}),Ie=O({ngInjectorDef:O});var ye=(()=>((ye=ye||{})[ye.Default=0]="Default",ye[ye.Host=1]="Host",ye[ye.Self=2]="Self",ye[ye.SkipSelf=4]="SkipSelf",ye[ye.Optional=8]="Optional",ye))();let Ye;function ct(_){const b=Ye;return Ye=_,b}function Zt(_,b,y){const M=Ii(_);return M&&"root"==M.providedIn?void 0===M.value?M.value=M.factory():M.value:y&ye.Optional?null:void 0!==b?b:void De(U(_))}function un(_){return{toString:_}.toString()}var Kt=(()=>((Kt=Kt||{})[Kt.OnPush=0]="OnPush",Kt[Kt.Default=1]="Default",Kt))(),ie=(()=>{return(_=ie||(ie={}))[_.Emulated=0]="Emulated",_[_.None=2]="None",_[_.ShadowDom=3]="ShadowDom",ie;var _})();const fe=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Bt={},it=[],Et=O({\u0275cmp:O}),qn=O({\u0275dir:O}),kt=O({\u0275pipe:O}),vr=O({\u0275mod:O}),Lt=O({\u0275fac:O}),Yt=O({__NG_ELEMENT_ID__:O});let St=0;function lr(_){return un(()=>{const y=!0===_.standalone,M={},v={type:_.type,providersResolver:null,decls:_.decls,vars:_.vars,factory:null,template:_.template||null,consts:_.consts||null,ngContentSelectors:_.ngContentSelectors,hostBindings:_.hostBindings||null,hostVars:_.hostVars||0,hostAttrs:_.hostAttrs||null,contentQueries:_.contentQueries||null,declaredInputs:M,inputs:null,outputs:null,exportAs:_.exportAs||null,onPush:_.changeDetection===Kt.OnPush,directiveDefs:null,pipeDefs:null,standalone:y,dependencies:y&&_.dependencies||null,getStandaloneInjector:null,selectors:_.selectors||it,viewQuery:_.viewQuery||null,features:_.features||null,data:_.data||{},encapsulation:_.encapsulation||ie.Emulated,id:"c"+St++,styles:_.styles||it,_:null,setInput:null,schemas:_.schemas||null,tView:null},x=_.dependencies,R=_.features;return v.inputs=fa(_.inputs,M),v.outputs=fa(_.outputs),R&&R.forEach(k=>k(v)),v.directiveDefs=x?()=>("function"==typeof x?x():x).map(Kn).filter(Xr):null,v.pipeDefs=x?()=>("function"==typeof x?x():x).map(pi).filter(Xr):null,v})}function Qr(_,b,y){const M=_.\u0275cmp;M.directiveDefs=()=>("function"==typeof b?b():b).map(Kn),M.pipeDefs=()=>("function"==typeof y?y():y).map(pi)}function Kn(_){return pn(_)||si(_)}function Xr(_){return null!==_}function jr(_){return un(()=>({type:_.type,bootstrap:_.bootstrap||it,declarations:_.declarations||it,imports:_.imports||it,exports:_.exports||it,transitiveCompileScopes:null,schemas:_.schemas||null,id:_.id||null}))}function fa(_,b){if(null==_)return Bt;const y={};for(const M in _)if(_.hasOwnProperty(M)){let v=_[M],x=v;Array.isArray(v)&&(x=v[1],v=v[0]),y[v]=M,b&&(b[v]=x)}return y}const Dd=lr;function _s(_){return{type:_.type,name:_.name,factory:null,pure:!1!==_.pure,standalone:!0===_.standalone,onDestroy:_.type.prototype.ngOnDestroy||null}}function pn(_){return _[Et]||null}function si(_){return _[qn]||null}function pi(_){return _[kt]||null}function Ze(_,b){const y=_[vr]||null;if(!y&&!0===b)throw new Error(`Type ${U(_)} does not have '\u0275mod' property.`);return y}function fi(_){return Array.isArray(_)&&"object"==typeof _[1]}function Ji(_){return Array.isArray(_)&&!0===_[1]}function cr(_){return 0!=(8&_.flags)}function na(_){return 2==(2&_.flags)}function Sr(_){return 1==(1&_.flags)}function Qi(_){return null!==_.template}function ba(_){return 0!=(256&_[2])}function zr(_,b){return _.hasOwnProperty(Lt)?_[Lt]:null}class sc{constructor(b,y,M){this.previousValue=b,this.currentValue=y,this.firstChange=M}isFirstChange(){return this.firstChange}}function Er(){return oc}function oc(_){return _.type.prototype.ngOnChanges&&(_.setInput=lc),fo}function fo(){const _=mo(this),b=_?.current;if(b){const y=_.previous;if(y===Bt)_.previous=b;else for(let M in b)y[M]=b[M];_.current=null,this.ngOnChanges(b)}}function lc(_,b,y,M){const v=mo(_)||function el(_,b){return _[ia]=b}(_,{previous:Bt,current:null}),x=v.current||(v.current={}),R=v.previous,k=this.declaredInputs[y],I=R[k];x[k]=new sc(I&&I.currentValue,b,R===Bt),_[M]=b}Er.ngInherit=!0;const ia="__ngSimpleChanges__";function mo(_){return _[ia]||null}function ti(_){for(;Array.isArray(_);)_=_[0];return _}function ya(_,b){return ti(b[_])}function ur(_,b){return ti(b[_.index])}function hc(_,b){return _.data[b]}function _o(_,b){return _[b]}function Bi(_,b){const y=b[_];return fi(y)?y:y[0]}function j(_){return 4==(4&_[2])}function J(_){return 64==(64&_[2])}function X(_,b){return null==b?null:_[b]}function le(_){_[18]=0}function Ce(_,b){_[5]+=b;let y=_,M=_[3];for(;null!==M&&(1===b&&1===y[5]||-1===b&&0===y[5]);)M[5]+=b,y=M,M=M[3]}const Ae={lFrame:il(null),bindingsEnabled:!0};function gt(){return Ae.bindingsEnabled}function Se(){return Ae.lFrame.lView}function pt(){return Ae.lFrame.tView}function wa(_){return Ae.lFrame.contextLView=_,_[8]}function nr(_){return Ae.lFrame.contextLView=null,_}function Gn(){let _=Ui();for(;null!==_&&64===_.type;)_=_.parent;return _}function Ui(){return Ae.lFrame.currentTNode}function Nt(_,b){const y=Ae.lFrame;y.currentTNode=_,y.isParent=b}function hr(){return Ae.lFrame.isParent}function Ms(){Ae.lFrame.isParent=!1}function Wt(){const _=Ae.lFrame;let b=_.bindingRootIndex;return-1===b&&(b=_.bindingRootIndex=_.tView.bindingStartIndex),b}function Fn(){return Ae.lFrame.bindingIndex}function Cs(){return Ae.lFrame.bindingIndex++}function Dr(_){const b=Ae.lFrame,y=b.bindingIndex;return b.bindingIndex=b.bindingIndex+_,y}function ah(_,b){const y=Ae.lFrame;y.bindingIndex=y.bindingRootIndex=_,fc(b)}function fc(_){Ae.lFrame.currentDirectiveIndex=_}function tl(_){const b=Ae.lFrame.currentDirectiveIndex;return-1===b?null:_[b]}function bo(){return Ae.lFrame.currentQueryIndex}function ra(_){Ae.lFrame.currentQueryIndex=_}function qt(_){const b=_[1];return 2===b.type?b.declTNode:1===b.type?_[6]:null}function sh(_,b,y){if(y&ye.SkipSelf){let v=b,x=_;for(;!(v=v.parent,null!==v||y&ye.Host||(v=qt(x),null===v||(x=x[15],10&v.type))););if(null===v)return!1;b=v,_=x}const M=Ae.lFrame=nl();return M.currentTNode=b,M.lView=_,!0}function Ya(_){const b=nl(),y=_[1];Ae.lFrame=b,b.currentTNode=y.firstChild,b.lView=_,b.tView=y,b.contextLView=_,b.bindingIndex=y.bindingStartIndex,b.inI18n=!1}function nl(){const _=Ae.lFrame,b=null===_?null:_.child;return null===b?il(_):b}function il(_){const b={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:_,child:null,inI18n:!1};return null!==_&&(_.child=b),b}function fr(){const _=Ae.lFrame;return Ae.lFrame=_.parent,_.currentTNode=null,_.lView=null,_}const kd=fr;function rl(){const _=fr();_.isParent=!0,_.tView=null,_.selectedIndex=-1,_.contextLView=null,_.elementDepthCount=0,_.currentDirectiveIndex=-1,_.currentNamespace=null,_.bindingRootIndex=-1,_.bindingIndex=-1,_.currentQueryIndex=0}function nn(){return Ae.lFrame.selectedIndex}function xi(_){Ae.lFrame.selectedIndex=_}function Nn(){const _=Ae.lFrame;return hc(_.tView,_.selectedIndex)}function ch(){Ae.lFrame.currentNamespace="svg"}function Od(){!function dh(){Ae.lFrame.currentNamespace=null}()}function mc(_,b){for(let y=b.directiveStart,M=b.directiveEnd;y=M)break}else b[I]<0&&(_[18]+=65536),(k>11<_[18]>>16&&(3&_[2])===b){_[2]+=2048;try{x.call(k)}finally{}}}else try{x.call(k)}finally{}}class qr{constructor(b,y,M){this.factory=b,this.resolving=!1,this.canSeeViewProviders=y,this.injectImpl=M}}function xs(_,b,y){let M=0;for(;Mb){R=x-1;break}}}for(;x<_.length;){const k=_[x];if("number"==typeof k)break;if(k===y){if(null===M)return void(null!==v&&(_[x+1]=v));if(M===_[x+1])return void(_[x+2]=v)}x++,null!==M&&x++,null!==v&&x++}-1!==R&&(_.splice(R,0,b),x=R+1),_.splice(x++,0,y),null!==M&&_.splice(x++,0,M),null!==v&&_.splice(x++,0,v)}function Bd(_){return-1!==_}function yo(_){return 32767&_}function wo(_,b){let y=function wf(_){return _>>16}(_),M=b;for(;y>0;)M=M[15],y--;return M}let Mo=!0;function bc(_){const b=Mo;return Mo=_,b}let Mf=0;const Lr={};function cl(_,b){const y=dl(_,b);if(-1!==y)return y;const M=b[1];M.firstCreatePass&&(_.injectorIndex=b.length,Ma(M.data,_),Ma(b,null),Ma(M.blueprint,null));const v=Nd(_,b),x=_.injectorIndex;if(Bd(v)){const R=yo(v),k=wo(v,b),I=k[1].data;for(let z=0;z<8;z++)b[x+z]=k[R+z]|I[R+z]}return b[x+8]=v,x}function Ma(_,b){_.push(0,0,0,0,0,0,0,0,b)}function dl(_,b){return-1===_.injectorIndex||_.parent&&_.parent.injectorIndex===_.injectorIndex||null===b[_.injectorIndex+8]?-1:_.injectorIndex}function Nd(_,b){if(_.parent&&-1!==_.parent.injectorIndex)return _.parent.injectorIndex;let y=0,M=null,v=b;for(;null!==v;){if(M=Mc(v),null===M)return-1;if(y++,v=v[15],-1!==M.injectorIndex)return M.injectorIndex|y<<16}return-1}function yc(_,b,y){!function Ac(_,b,y){let M;"string"==typeof y?M=y.charCodeAt(0)||0:y.hasOwnProperty(Yt)&&(M=y[Yt]),null==M&&(M=y[Yt]=Mf++);const v=255&M;b.data[_+(v>>5)]|=1<=0?255&b:Cf:b}(y);if("function"==typeof x){if(!sh(b,_,M))return M&ye.Host?Vd(v,0,M):Es(b,y,M,v);try{const R=x(M);if(null!=R||M&ye.Optional)return R;De()}finally{kd()}}else if("number"==typeof x){let R=null,k=dl(_,b),I=-1,z=M&ye.Host?b[16][6]:null;for((-1===k||M&ye.SkipSelf)&&(I=-1===k?Nd(_,b):b[k+8],-1!==I&&mh(M,!1)?(R=b[1],k=yo(I),b=wo(I,b)):k=-1);-1!==k;){const $=b[1];if(jd(x,k,$.data)){const ne=ul(k,b,y,R,M,z);if(ne!==Lr)return ne}I=b[k+8],-1!==I&&mh(M,b[1].data[k+8]===z)&&jd(x,k,b)?(R=$,k=yo(I),b=wo(I,b)):k=-1}}return v}function ul(_,b,y,M,v,x){const R=b[1],k=R.data[_+8],$=Co(k,R,y,null==M?na(k)&&Mo:M!=R&&0!=(3&k.type),v&ye.Host&&x===k);return null!==$?Yr(b,R,$,k):Lr}function Co(_,b,y,M,v){const x=_.providerIndexes,R=b.data,k=1048575&x,I=_.directiveStart,$=x>>20,de=v?k+$:_.directiveEnd;for(let ge=M?k:k+$;ge=I&&He.type===y)return ge}if(v){const ge=R[I];if(ge&&Qi(ge)&&ge.type===y)return I}return null}function Yr(_,b,y,M){let v=_[y];const x=b.data;if(function Ga(_){return _ instanceof qr}(v)){const R=v;R.resolving&&function Xe(_,b){const y=b?`. Dependency path: ${b.join(" > ")} > ${_}`:"";throw new re(-200,`Circular dependency in DI detected for ${_}${y}`)}(function xe(_){return"function"==typeof _?_.name||_.toString():"object"==typeof _&&null!=_&&"function"==typeof _.type?_.type.name||_.type.toString():we(_)}(x[y]));const k=bc(R.canSeeViewProviders);R.resolving=!0;const I=R.injectImpl?ct(R.injectImpl):null;sh(_,M,ye.Default);try{v=_[y]=R.factory(void 0,x,_,M),b.firstCreatePass&&y>=M.directiveStart&&function uh(_,b,y){const{ngOnChanges:M,ngOnInit:v,ngDoCheck:x}=b.type.prototype;if(M){const R=oc(b);(y.preOrderHooks||(y.preOrderHooks=[])).push(_,R),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(_,R)}v&&(y.preOrderHooks||(y.preOrderHooks=[])).push(0-_,v),x&&((y.preOrderHooks||(y.preOrderHooks=[])).push(_,x),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(_,x))}(y,x[y],b)}finally{null!==I&&ct(I),bc(k),R.resolving=!1,kd()}}return v}function jd(_,b,y){return!!(y[b+(_>>5)]&1<<_)}function mh(_,b){return!(_&ye.Self||_&ye.Host&&b)}class Ls{constructor(b,y){this._tNode=b,this._lView=y}get(b,y,M){return Ca(this._tNode,this._lView,b,M,y)}}function Cf(){return new Ls(Gn(),Se())}function wc(_){return un(()=>{const b=_.prototype.constructor,y=b[Lt]||Hs(b),M=Object.prototype;let v=Object.getPrototypeOf(_.prototype).constructor;for(;v&&v!==M;){const x=v[Lt]||Hs(v);if(x&&x!==y)return x;v=Object.getPrototypeOf(v)}return x=>new x})}function Hs(_){return ue(_)?()=>{const b=Hs(ae(_));return b&&b()}:zr(_)}function Mc(_){const b=_[1],y=b.type;return 2===y?b.declTNode:1===y?_[6]:null}function Fd(_){return function fh(_,b){if("class"===b)return _.classes;if("style"===b)return _.styles;const y=_.attrs;if(y){const M=y.length;let v=0;for(;v{const M=function Rr(_){return function(...y){if(_){const M=_(...y);for(const v in M)this[v]=M[v]}}}(b);function v(...x){if(this instanceof v)return M.apply(this,x),this;const R=new v(...x);return k.annotation=R,k;function k(I,z,$){const ne=I.hasOwnProperty(Ps)?I[Ps]:Object.defineProperty(I,Ps,{value:[]})[Ps];for(;ne.length<=$;)ne.push(null);return(ne[$]=ne[$]||[]).push(R),I}}return y&&(v.prototype=Object.create(y.prototype)),v.prototype.ngMetadataName=_,v.annotationCls=v,v})}class Sn{constructor(b,y){this._desc=b,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof y?this.__NG_ELEMENT_ID__=y:void 0!==y&&(this.\u0275prov=dn({token:this,providedIn:y.providedIn||"root",factory:y.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Si(_,b){void 0===b&&(b=_);for(let y=0;y<_.length;y++){let M=_[y];Array.isArray(M)?(b===_&&(b=_.slice(0,y)),Si(M,b)):b!==_&&b.push(M)}return b}function aa(_,b){_.forEach(y=>Array.isArray(y)?aa(y,b):b(y))}function Tc(_,b,y){b>=_.length?_.push(y):_.splice(b,0,y)}function xc(_,b){return b>=_.length-1?_.pop():_.splice(b,1)[0]}function mi(_,b){const y=[];for(let M=0;M<_;M++)y.push(b);return y}function Ki(_,b,y){let M=vo(_,b);return M>=0?_[1|M]=y:(M=~M,function Ec(_,b,y,M){let v=_.length;if(v==b)_.push(y,M);else if(1===v)_.push(M,_[0]),_[0]=y;else{for(v--,_.push(_[v-1],_[v]);v>b;)_[v]=_[v-2],v--;_[b]=y,_[b+1]=M}}(_,M,b,y)),M}function pl(_,b){const y=vo(_,b);if(y>=0)return _[1|y]}function vo(_,b){return function bh(_,b,y){let M=0,v=_.length>>y;for(;v!==M;){const x=M+(v-M>>1),R=_[x<b?v=x:M=x+1}return~(v<_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Q}())||void 0===b?void 0:b.createHTML(_))||_}function La(_){var b;return(null===(b=function Gr(){if(void 0===Ei&&(Ei=null,fe.trustedTypes))try{Ei=fe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:_=>_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Ei}())||void 0===b?void 0:b.createHTML(_))||_}class So{constructor(b){this.changingThisBreaksApplicationSecurity=b}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Ug extends So{getTypeName(){return"HTML"}}class Sh extends So{getTypeName(){return"Style"}}class Eh extends So{getTypeName(){return"Script"}}class qg extends So{getTypeName(){return"URL"}}class Kd extends So{getTypeName(){return"ResourceURL"}}function Za(_){return _ instanceof So?_.changingThisBreaksApplicationSecurity:_}function Oc(_,b){const y=function cy(_){return _ instanceof So&&_.getTypeName()||null}(_);if(null!=y&&y!==b){if("ResourceURL"===y&&"URL"===b)return!0;throw new Error(`Required a safe ${b}, got a ${y} (see https://g.co/ng/security#xss)`)}return y===b}function dy(_){return new Ug(_)}function uy(_){return new Sh(_)}function hy(_){return new Eh(_)}function Dh(_){return new qg(_)}function py(_){return new Kd(_)}class fy{constructor(b){this.inertDocumentHelper=b}getInertBodyElement(b){b=""+b;try{const y=(new window.DOMParser).parseFromString(ve(b),"text/html").body;return null===y?this.inertDocumentHelper.getInertBodyElement(b):(y.removeChild(y.firstChild),y)}catch{return null}}}class my{constructor(b){if(this.defaultDoc=b,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const y=this.inertDocument.createElement("html");this.inertDocument.appendChild(y);const M=this.inertDocument.createElement("body");y.appendChild(M)}}getInertBodyElement(b){const y=this.inertDocument.createElement("template");if("content"in y)return y.innerHTML=ve(b),y;const M=this.inertDocument.createElement("body");return M.innerHTML=ve(b),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(M),M}stripCustomNsAttrs(b){const y=b.attributes;for(let v=y.length-1;0eu(b.trim())).join(", ")),this.buf.push(" ",R,'="',Qg(I),'"')}var _;return this.buf.push(">"),!0}endElement(b){const y=b.nodeName.toLowerCase();Nf.hasOwnProperty(y)&&!If.hasOwnProperty(y)&&(this.buf.push(""))}chars(b){this.buf.push(Qg(b))}checkClobberedElement(b,y){if(y&&(b.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${b.outerHTML}`);return y}}const yy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wy=/([^\#-~ |!])/g;function Qg(_){return _.replace(/&/g,"&").replace(yy,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(wy,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(//g,">")}let Bc;function zf(_,b){let y=null;try{Bc=Bc||function Yg(_){const b=new my(_);return function gy(){try{return!!(new window.DOMParser).parseFromString(ve(""),"text/html")}catch{return!1}}()?new fy(b):b}(_);let M=b?String(b):"";y=Bc.getInertBodyElement(M);let v=5,x=M;do{if(0===v)throw new Error("Failed to sanitize html because the input is unstable");v--,M=x,x=y.innerHTML,y=Bc.getInertBodyElement(M)}while(M!==x);return ve((new Ay).sanitizeChildren(tu(y)||y))}finally{if(y){const M=tu(y)||y;for(;M.firstChild;)M.removeChild(M.firstChild)}}}function tu(_){return"content"in _&&function Uf(_){return _.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===_.nodeName}(_)?_.content:null}var gi=(()=>((gi=gi||{})[gi.NONE=0]="NONE",gi[gi.HTML=1]="HTML",gi[gi.STYLE=2]="STYLE",gi[gi.SCRIPT=3]="SCRIPT",gi[gi.URL=4]="URL",gi[gi.RESOURCE_URL=5]="RESOURCE_URL",gi))();function Xg(_){const b=oa();return b?La(b.sanitize(gi.HTML,_)||""):Oc(_,"HTML")?La(Za(_)):zf(function q(){return void 0!==P?P:typeof document<"u"?document:void 0}(),we(_))}function qf(_){const b=oa();return b?b.sanitize(gi.URL,_)||"":Oc(_,"URL")?Za(_):eu(we(_))}function oa(){const _=Se();return _&&_[12]}const Cl=new Sn("ENVIRONMENT_INITIALIZER"),t1=new Sn("INJECTOR",-1),n1=new Sn("INJECTOR_DEF_TYPES");class Yf{get(b,y=Wr){if(y===Wr){const M=new Error(`NullInjectorError: No provider for ${U(b)}!`);throw M.name="NullInjectorError",M}return y}}function xy(..._){return{\u0275providers:Sy(0,_)}}function Sy(_,...b){const y=[],M=new Set;let v;return aa(b,x=>{const R=x;Hh(R,y,[],M)&&(v||(v=[]),v.push(R))}),void 0!==v&&Wf(v,y),y}function Wf(_,b){for(let y=0;y<_.length;y++){const{providers:v}=_[y];aa(v,x=>{b.push(x)})}}function Hh(_,b,y,M){if(!(_=ae(_)))return!1;let v=null,x=pa(_);const R=!x&&pn(_);if(x||R){if(R&&!R.standalone)return!1;v=_}else{const I=_.ngModule;if(x=pa(I),!x)return!1;v=I}const k=M.has(v);if(R){if(k)return!1;if(M.add(v),R.dependencies){const I="function"==typeof R.dependencies?R.dependencies():R.dependencies;for(const z of I)Hh(z,b,y,M)}}else{if(!x)return!1;{if(null!=x.imports&&!k){let z;M.add(v);try{aa(x.imports,$=>{Hh($,b,y,M)&&(z||(z=[]),z.push($))})}finally{}void 0!==z&&Wf(z,b)}if(!k){const z=zr(v)||(()=>new v);b.push({provide:v,useFactory:z,deps:it},{provide:n1,useValue:v,multi:!0},{provide:Cl,useValue:()=>Jn(v),multi:!0})}const I=x.providers;null==I||k||aa(I,$=>{b.push($)})}}return v!==_&&void 0!==_.providers}const Eo=O({provide:String,useValue:O});function r1(_){return null!==_&&"object"==typeof _&&Eo in _}function vl(_){return"function"==typeof _}const Zf=new Sn("Set Injector scope."),Tl={},Dy={};let Jf;function Rh(){return void 0===Jf&&(Jf=new Yf),Jf}class xl{}class Qf extends xl{constructor(b,y,M,v){super(),this.parent=y,this.source=M,this.scopes=v,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,e0(b,R=>this.processProvider(R)),this.records.set(t1,Sl(void 0,this)),v.has("environment")&&this.records.set(xl,Sl(void 0,this));const x=this.records.get(Zf);null!=x&&"string"==typeof x.value&&this.scopes.add(x.value),this.injectorDefTypes=new Set(this.get(n1.multi,it,ye.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();for(const b of this._onDestroyHooks)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(b){this._onDestroyHooks.push(b)}runInContext(b){this.assertNotDestroyed();const y=gl(this),M=ct(void 0);try{return b()}finally{gl(y),ct(M)}}get(b,y=Wr,M=ye.Default){this.assertNotDestroyed();const v=gl(this),x=ct(void 0);try{if(!(M&ye.SkipSelf)){let k=this.records.get(b);if(void 0===k){const I=function Ry(_){return"function"==typeof _||"object"==typeof _&&_ instanceof Sn}(b)&&Ii(b);k=I&&this.injectableDefInScope(I)?Sl(Xf(b),Tl):null,this.records.set(b,k)}if(null!=k)return this.hydrate(b,k)}return(M&ye.Self?Rh():this.parent).get(b,y=M&ye.Optional&&y===Wr?null:y)}catch(R){if("NullInjectorError"===R.name){if((R[Pr]=R[Pr]||[]).unshift(U(b)),v)throw R;return function Ch(_,b,y,M){const v=_[Pr];throw b[Lf]&&v.unshift(b[Lf]),_.message=function Hf(_,b,y,M=null){_=_&&"\n"===_.charAt(0)&&"\u0275"==_.charAt(1)?_.slice(2):_;let v=U(b);if(Array.isArray(b))v=b.map(U).join(" -> ");else if("object"==typeof b){let x=[];for(let R in b)if(b.hasOwnProperty(R)){let k=b[R];x.push(R+":"+("string"==typeof k?JSON.stringify(k):U(k)))}v=`{${x.join(", ")}}`}return`${y}${M?"("+M+")":""}[${v}]: ${_.replace(Gd,"\n ")}`}("\n"+_.message,v,y,M),_.ngTokenPath=v,_[Pr]=null,_}(R,b,"R3InjectorError",this.source)}throw R}finally{ct(x),gl(v)}}resolveInjectorInitializers(){const b=gl(this),y=ct(void 0);try{const M=this.get(Cl.multi,it,ye.Self);for(const v of M)v()}finally{gl(b),ct(y)}}toString(){const b=[],y=this.records;for(const M of y.keys())b.push(U(M));return`R3Injector[${b.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new re(205,!1)}processProvider(b){let y=vl(b=ae(b))?b:ae(b&&b.provide);const M=function Ly(_){return r1(_)?Sl(void 0,_.useValue):Sl(s1(_),Tl)}(b);if(vl(b)||!0!==b.multi)this.records.get(y);else{let v=this.records.get(y);v||(v=Sl(void 0,Tl,!0),v.factory=()=>mr(v.multi),this.records.set(y,v)),y=b,v.multi.push(b)}this.records.set(y,M)}hydrate(b,y){return y.value===Tl&&(y.value=Dy,y.value=y.factory()),"object"==typeof y.value&&y.value&&function Kf(_){return null!==_&&"object"==typeof _&&"function"==typeof _.ngOnDestroy}(y.value)&&this._ngOnDestroyHooks.add(y.value),y.value}injectableDefInScope(b){if(!b.providedIn)return!1;const y=ae(b.providedIn);return"string"==typeof y?"any"===y||this.scopes.has(y):this.injectorDefTypes.has(y)}}function Xf(_){const b=Ii(_),y=null!==b?b.factory:zr(_);if(null!==y)return y;if(_ instanceof Sn)throw new re(204,!1);if(_ instanceof Function)return function a1(_){const b=_.length;if(b>0)throw mi(b,"?"),new re(204,!1);const y=function vi(_){const b=_&&(_[Cr]||_[pe]);if(b){const y=function co(_){if(_.hasOwnProperty("name"))return _.name;const b=(""+_).match(/^function\s*([^\s(]+)/);return null===b?"":b[1]}(_);return console.warn(`DEPRECATED: DI is instantiating a token "${y}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${y}" class.`),b}return null}(_);return null!==y?()=>y.factory(_):()=>new _}(_);throw new re(204,!1)}function s1(_,b,y){let M;if(vl(_)){const v=ae(_);return zr(v)||Xf(v)}if(r1(_))M=()=>ae(_.useValue);else if(function $f(_){return!(!_||!_.useFactory)}(_))M=()=>_.useFactory(...mr(_.deps||[]));else if(function Gf(_){return!(!_||!_.useExisting)}(_))M=()=>Jn(ae(_.useExisting));else{const v=ae(_&&(_.useClass||_.provide));if(!function Hy(_){return!!_.deps}(_))return zr(v)||Xf(v);M=()=>new v(...mr(_.deps))}return M}function Sl(_,b,y=!1){return{factory:_,value:b,multi:y?[]:void 0}}function Py(_){return!!_.\u0275providers}function e0(_,b){for(const y of _)Array.isArray(y)?e0(y,b):Py(y)?e0(y.\u0275providers,b):b(y)}class Ph{}class o1{resolveComponentFactory(b){throw function Qn(_){const b=Error(`No component factory found for ${U(_)}. Did you add it to @NgModule.entryComponents?`);return b.ngComponent=_,b}(b)}}let Nc=(()=>{class _{}return _.NULL=new o1,_})();function iu(){return Vc(Gn(),Se())}function Vc(_,b){return new kr(ur(_,b))}let kr=(()=>{class _{constructor(y){this.nativeElement=y}}return _.__NG_ELEMENT_ID__=iu,_})();function kh(_){return _ instanceof kr?_.nativeElement:_}class t0{}let ru=(()=>{class _{}return _.__NG_ELEMENT_ID__=()=>function n0(){const _=Se(),y=Bi(Gn().index,_);return(fi(y)?y:_)[11]}(),_})(),Oy=(()=>{class _{}return _.\u0275prov=dn({token:_,providedIn:"root",factory:()=>null}),_})();class au{constructor(b){this.full=b,this.major=b.split(".")[0],this.minor=b.split(".")[1],this.patch=b.split(".").slice(2).join(".")}}const r0=new au("14.1.2"),Or={};function zc(_){return _.ngOriginalError}class Ra{constructor(){this._console=console}handleError(b){const y=this._findOriginalError(b);this._console.error("ERROR",b),y&&this._console.error("ORIGINAL ERROR",y)}_findOriginalError(b){let y=b&&zc(b);for(;y&&zc(y);)y=zc(y);return y||null}}const p1=new Map;let px=0;const ou="__ngContext__";function gr(_,b){fi(b)?(_[ou]=b[20],function mx(_){p1.set(_[20],_)}(b)):_[ou]=b}function Oh(_){const b=_[ou];return"number"==typeof b?function Ny(_){return p1.get(_)||null}(b):b||null}function m1(_){const b=Oh(_);return b?fi(b)?b:b.lView:null}const Cx=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(fe))();function qy(_){return _.ownerDocument.defaultView}function Lo(_){return _ instanceof Function?_():_}var Ja=(()=>((Ja=Ja||{})[Ja.Important=1]="Important",Ja[Ja.DashCase=2]="DashCase",Ja))();function g1(_,b){return undefined(_,b)}function Ih(_){const b=_[3];return Ji(b)?b[3]:b}function _1(_){return $y(_[13])}function b1(_){return $y(_[4])}function $y(_){for(;null!==_&&!Ji(_);)_=_[4];return _}function cu(_,b,y,M,v){if(null!=M){let x,R=!1;Ji(M)?x=M:fi(M)&&(R=!0,M=M[0]);const k=ti(M);0===_&&null!==y?null==v?ew(b,y,k):Uc(b,y,k,v||null,!0):1===_&&null!==y?Uc(b,y,k,v||null,!0):2===_?function ow(_,b,y){const M=o0(_,b);M&&function jx(_,b,y,M){_.removeChild(b,y,M)}(_,M,b,y)}(b,k,R):3===_&&b.destroyNode(k),null!=x&&function Ux(_,b,y,M,v){const x=y[7];x!==ti(y)&&cu(b,_,M,x,v);for(let k=10;k0&&(_[y-1][4]=M[4]);const x=xc(_,10+b);!function Rx(_,b){Nh(_,b,b[11],2,null,null),b[0]=null,b[6]=null}(M[1],M);const R=x[19];null!==R&&R.detachView(x[1]),M[3]=null,M[4]=null,M[2]&=-65}return M}function Qy(_,b){if(!(128&b[2])){const y=b[11];y.destroyNode&&Nh(_,b,y,3,null,null),function Ox(_){let b=_[13];if(!b)return M1(_[1],_);for(;b;){let y=null;if(fi(b))y=b[13];else{const M=b[10];M&&(y=M)}if(!y){for(;b&&!b[4]&&b!==_;)fi(b)&&M1(b[1],b),b=b[3];null===b&&(b=_),fi(b)&&M1(b[1],b),y=b&&b[4]}b=y}}(b)}}function M1(_,b){if(!(128&b[2])){b[2]&=-65,b[2]|=128,function Vx(_,b){let y;if(null!=_&&null!=(y=_.destroyHooks))for(let M=0;M=0?M[v=z]():M[v=-z].unsubscribe(),x+=2}else{const R=M[v=y[x+1]];y[x].call(R)}if(null!==M){for(let x=v+1;xx?"":v[ne+1].toLowerCase();const ge=8&M?de:null;if(ge&&-1!==du(ge,z,0)||2&M&&z!==de){if(Qt(M))return!1;R=!0}}}}else{if(!R&&!Qt(M)&&!Qt(I))return!1;if(R&&Qt(I))continue;R=!1,M=I|1&M}}return Qt(M)||R}function Qt(_){return 0==(1&_)}function E1(_,b,y,M){if(null===b)return-1;let v=0;if(M||!y){let x=!1;for(;v-1)for(y++;y<_.length;){const M=_[y];if("number"==typeof M)return-1;if(M===b)return y;y++}return-1}(b,_)}function Yc(_,b,y=!1){for(let M=0;M0?'="'+k+'"':"")+"]"}else 8&M?v+="."+R:4&M&&(v+=" "+R);else""!==v&&!Qt(R)&&(b+=L1(x,v),v=""),M=R,x=x||!Qt(M);y++}return""!==v&&(b+=L1(x,v)),b}const Vt={};function Dl(_){H1(pt(),Se(),nn()+_,!1)}function H1(_,b,y,M){if(!M)if(3==(3&b[2])){const x=_.preOrderCheckHooks;null!==x&&al(b,x,y)}else{const x=_.preOrderHooks;null!==x&&sl(b,x,0,y)}xi(y)}function gw(_,b=null,y=null,M){const v=p0(_,b,y,M);return v.resolveInjectorInitializers(),v}function p0(_,b=null,y=null,M,v=new Set){const x=[y||it,xy(_)];return M=M||("object"==typeof _?void 0:U(_)),new Qf(x,b||Rh(),M||null,v)}let Qa=(()=>{class _{static create(y,M){if(Array.isArray(y))return gw({name:""},M,y,"");{var v;const x=null!==(v=y.name)&&void 0!==v?v:"";return gw({name:x},y.parent,y.providers,x)}}}return _.THROW_IF_NOT_FOUND=Wr,_.NULL=new Yf,_.\u0275prov=dn({token:_,providedIn:"any",factory:()=>Jn(t1)}),_.__NG_ELEMENT_ID__=-1,_})();function $c(_,b=ye.Default){const y=Se();return null===y?Jn(_,b):Ca(Gn(),y,ae(_),b)}function V1(){throw new Error("invalid")}function Bs(_,b){return _<<17|b<<2}function Pa(_){return _>>17&32767}function A0(_){return 2|_}function Ns(_){return(131068&_)>>2}function F1(_,b){return-131069&_|b<<2}function Zc(_){return 1|_}function T0(_,b){const y=_.contentQueries;if(null!==y)for(let M=0;M22&&H1(_,b,22,!1),y(M,v)}finally{xi(x)}}function x0(_,b,y){if(cr(b)){const v=b.directiveEnd;for(let x=b.directiveStart;x0;){const y=_[--b];if("number"==typeof y&&y<0)return y}return 0})(k)!=I&&k.push(I),k.push(M,v,R)}}function J1(_,b){null!==_.hostBindings&&_.hostBindings(1,b)}function Q1(_,b){b.flags|=2,(_.components||(_.components=[])).push(b.index)}function Yw(_,b,y){if(y){if(b.exportAs)for(let M=0;M0&&Xh(y)}}function Xh(_){for(let M=_1(_);null!==M;M=b1(M))for(let v=10;v0&&Xh(x)}const y=_[1].components;if(null!==y)for(let M=0;M0&&Xh(v)}}function bu(_,b){const y=Bi(b,_),M=y[1];(function Xw(_,b){for(let y=b.length;y<_.blueprint.length;y++)b.push(_.blueprint[y])})(M,y),Yh(M,y,y[8])}function Au(_,b){return _[13]?_[14][4]=b:_[13]=b,_[14]=b,b}function L0(_){for(;_;){_[2]|=32;const b=Ih(_);if(ba(_)&&!b)return _;_=b}return null}function Kh(_){!function Kw(_){for(let b=0;b<_.components.length;b++){const y=_.components[b],M=m1(y);if(null!==M){const v=M[1];Iw(v,M,v.template,y)}}}(_[8])}function P0(_,b,y){ra(0),b(_,y)}const tM=(()=>Promise.resolve(null))();function K1(_){return _[7]||(_[7]=[])}function yu(_){return _.cleanup||(_.cleanup=[])}function e_(_,b,y){return(null===_||Qi(_))&&(y=function In(_){for(;Array.isArray(_);){if("object"==typeof _[1])return _;_=_[0]}return null}(y[b.index])),y[11]}function t_(_,b){const y=_[9],M=y?y.get(Ra,null):null;M&&M.handleError(b)}function wu(_,b,y,M,v){for(let x=0;x-1&&(w1(b,M),xc(y,M))}this._attachedToViewContainer=!1}Qy(this._lView[1],this._lView)}onDestroy(b){Jh(this._lView[1],this._lView,null,b)}markForCheck(){L0(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function H0(_,b,y){const M=b[10];M.begin&&M.begin();try{Xc(_,b,_.template,y)}catch(v){throw t_(b,v),v}finally{M.end&&M.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new re(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function kx(_,b){Nh(_,b,b[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(b){if(this._attachedToViewContainer)throw new re(902,!1);this._appRef=b}}class tp extends kl{constructor(b){super(b),this._view=b}detectChanges(){Kh(this._view)}checkNoChanges(){}get context(){return null}}class k0 extends Nc{constructor(b){super(),this.ngModule=b}resolveComponentFactory(b){const y=pn(b);return new Kc(y,this.ngModule)}}function O0(_){const b=[];for(let y in _)_.hasOwnProperty(y)&&b.push({propName:_[y],templateName:y});return b}class nM{constructor(b,y){this.injector=b,this.parentInjector=y}get(b,y,M){const v=this.injector.get(b,Or,M);return v!==Or||y===Or?v:this.parentInjector.get(b,y,M)}}class Kc extends Ph{constructor(b,y){super(),this.componentDef=b,this.ngModule=y,this.componentType=b.type,this.selector=function uu(_){return _.map(c0).join(",")}(b.selectors),this.ngContentSelectors=b.ngContentSelectors?b.ngContentSelectors:[],this.isBoundToModule=!!y}get inputs(){return O0(this.componentDef.inputs)}get outputs(){return O0(this.componentDef.outputs)}create(b,y,M,v){var x;let R=(v=v||this.ngModule)instanceof xl?v:null===(x=v)||void 0===x?void 0:x.injector;R&&null!==this.componentDef.getStandaloneInjector&&(R=this.componentDef.getStandaloneInjector(R)||R);const k=R?new nM(b,R):b,I=k.get(t0,null);if(null===I)throw new re(407,!1);const z=k.get(Oy,null),$=I.createRenderer(null,this.componentDef),ne=this.componentDef.selectors[0][0]||"div",de=M?function $1(_,b,y){return _.selectRootElement(b,y===ie.ShadowDom)}($,M,this.componentDef.encapsulation):y1(I.createRenderer(null,this.componentDef),ne,function Cu(_){const b=_.toLowerCase();return"svg"===b?"svg":"math"===b?"math":null}(ne)),ge=this.componentDef.onPush?288:272,He=function rM(_,b){return{components:[],scheduler:_||Cx,clean:tM,playerHandler:b||null,flags:0}}(),qe=Zh(0,null,null,1,0,null,null,null,null,null),Qe=gu(null,qe,He,ge,null,null,I,$,z,k,null);let st,Tt;Ya(Qe);try{const Ne=function Ol(_,b,y,M,v,x){const R=y[1];y[22]=_;const I=Rl(R,22,2,"#host",null),z=I.mergedAttrs=b.hostAttrs;null!==z&&(Mu(I,z,!0),null!==_&&(xs(v,_,z),null!==I.classes&&Di(v,_,I.classes),null!==I.styles&&x1(v,_,I.styles)));const $=M.createRenderer(_,b),ne=gu(y,G1(b),null,b.onPush?32:16,y[22],I,M,$,x||null,null,null);return R.firstCreatePass&&(yc(cl(I,y),R,b.type),Q1(R,I),Ht(I,y.length,1)),Au(y,ne),y[22]=ne}(de,this.componentDef,Qe,I,$);if(de)if(M)xs($,de,["ng-version",r0.full]);else{const{attrs:Dt,classes:zt}=function Yx(_){const b=[],y=[];let M=1,v=2;for(;M<_.length;){let x=_[M];if("string"==typeof x)2===v?""!==x&&b.push(x,_[++M]):8===v&&y.push(x);else{if(!Qt(v))break;v=x}M++}return{attrs:b,classes:y}}(this.componentDef.selectors[0]);Dt&&xs($,de,Dt),zt&&zt.length>0&&Di($,de,zt.join(" "))}if(Tt=hc(qe,22),void 0!==y){const Dt=Tt.projection=[];for(let zt=0;zt=0;M--){const v=_[M];v.hostVars=b+=v.hostVars,v.hostAttrs=Ss(v.hostAttrs,y=Ss(y,v.hostAttrs))}}(M)}function ts(_){return _===Bt?{}:_===it?[]:_}function Il(_,b){const y=_.viewQuery;_.viewQuery=y?(M,v)=>{b(M,v),y(M,v)}:b}function sM(_,b){const y=_.contentQueries;_.contentQueries=y?(M,v,x)=>{b(M,v,x),y(M,v,x)}:b}function Us(_,b){const y=_.hostBindings;_.hostBindings=y?(M,v)=>{b(M,v),y(M,v)}:b}let np=null;function ko(){if(!np){const _=fe.Symbol;if(_&&_.iterator)np=_.iterator;else{const b=Object.getOwnPropertyNames(Map.prototype);for(let y=0;yk(ti(zt[M.index])):M.index;let Dt=null;if(!k&&I&&(Dt=function cS(_,b,y,M){const v=_.cleanup;if(null!=v)for(let x=0;xI?k[I]:null}"string"==typeof R&&(x+=2)}return null}(_,b,v,M.index)),null!==Dt)(Dt.__ngLastListenerFn__||Dt).__ngNextListenerFn__=x,Dt.__ngLastListenerFn__=x,ge=!1;else{x=f_(M,b,ne,x,!1);const zt=y.listen(st,v,x);de.push(x,zt),$&&$.push(v,Ne,Tt,Tt+1)}}else x=f_(M,b,ne,x,!1);const He=M.outputs;let qe;if(ge&&null!==He&&(qe=He[v])){const Qe=qe.length;if(Qe)for(let st=0;st0;)b=b[15],_--;return b}(_,Ae.lFrame.contextLView))[8]}(_)}function _M(_,b){let y=null;const M=function Li(_){const b=_.attrs;if(null!=b){const y=b.indexOf(5);if(0==(1&y))return b[y+1]}return null}(_);for(let v=0;v=0}const ut={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function No(_){return _.substring(ut.key,ut.keyEnd)}function Hu(_,b){const y=ut.textEnd;return y===b?-1:(b=ut.keyEnd=function Ru(_,b,y){for(;b32;)b++;return b}(_,ut.key=b,y),Vl(_,b,y))}function Vl(_,b,y){for(;b=0;y=Hu(b,y))Ki(_,No(b),!0)}function Ia(_,b,y,M){const v=Se(),x=pt(),R=Dr(2);x.firstUpdatePass&&v_(x,_,R,M),b!==Vt&&br(v,R,b)&&SM(x,x.data[nn()],v,v[11],_,v[R+1]=function T_(_,b){return null==_||("string"==typeof b?_+=b:"object"==typeof _&&(_=U(Za(_)))),_}(b,y),M,R)}function Ba(_,b,y,M){const v=pt(),x=Dr(2);v.firstUpdatePass&&v_(v,null,x,M);const R=Se();if(y!==Vt&&br(R,x,y)){const k=v.data[nn()];if(x_(k,M)&&!C_(v,x)){let I=M?k.classesWithoutHost:k.stylesWithoutHost;null!==I&&(y=W(I,y||"")),h_(v,k,R,y,M)}else!function pS(_,b,y,M,v,x,R,k){v===Vt&&(v=it);let I=0,z=0,$=0=_.expandoStartIndex}function v_(_,b,y,M){const v=_.data;if(null===v[y+1]){const x=v[nn()],R=C_(_,y);x_(x,M)&&null===b&&!R&&(b=!1),b=function MM(_,b,y,M){const v=tl(_);let x=M?b.residualClasses:b.residualStyles;if(null===v)0===(M?b.classBindings:b.styleBindings)&&(y=Na(y=hp(null,_,b,y,M),b.attrs,M),x=null);else{const R=b.directiveStylingLast;if(-1===R||_[R]!==v)if(y=hp(v,_,b,y,M),null===x){let I=function CM(_,b,y){const M=y?b.classBindings:b.styleBindings;if(0!==Ns(M))return _[Pa(M)]}(_,b,M);void 0!==I&&Array.isArray(I)&&(I=hp(null,_,b,I[1],M),I=Na(I,b.attrs,M),function vM(_,b,y,M){_[Pa(y?b.classBindings:b.styleBindings)]=M}(_,b,M,I))}else x=function TM(_,b,y){let M;const v=b.directiveEnd;for(let x=1+b.directiveStylingLast;x0)&&(z=!0)}else $=y;if(v)if(0!==I){const de=Pa(_[k+1]);_[M+1]=Bs(de,k),0!==de&&(_[de+1]=F1(_[de+1],M)),_[k+1]=function Ew(_,b){return 131071&_|b<<17}(_[k+1],M)}else _[M+1]=Bs(k,0),0!==k&&(_[k+1]=F1(_[k+1],M)),k=M;else _[M+1]=Bs(I,0),0===k?k=M:_[I+1]=F1(_[I+1],M),I=M;z&&(_[M+1]=A0(_[M+1])),G0(_,$,M,!0),G0(_,$,M,!1),function dp(_,b,y,M,v){const x=v?_.residualClasses:_.residualStyles;null!=x&&"string"==typeof b&&vo(x,b)>=0&&(y[M+1]=Zc(y[M+1]))}(b,$,_,M,x),R=Bs(k,I),x?b.classBindings=R:b.styleBindings=R}(v,x,b,y,R,M)}}function hp(_,b,y,M,v){let x=null;const R=y.directiveEnd;let k=y.directiveStylingLast;for(-1===k?k=y.directiveStart:k++;k0;){const I=_[v],z=Array.isArray(I),$=z?I[1]:I,ne=null===$;let de=y[v+1];de===Vt&&(de=ne?it:void 0);let ge=ne?pl(de,M):$===M?de:void 0;if(z&&!pp(ge)&&(ge=pl(I,M)),pp(ge)&&(k=ge,R))return k;const He=_[v+1];v=R?Pa(He):Ns(He)}if(null!==b){let I=x?b.residualClasses:b.residualStyles;null!=I&&(k=pl(I,M))}return k}function pp(_){return void 0!==_}function x_(_,b){return 0!=(_.flags&(b?16:32))}function as(_,b=""){const y=Se(),M=pt(),v=_+22,x=M.firstCreatePass?Rl(M,v,1,b,null):M.data[v],R=y[v]=function A1(_,b){return _.createText(b)}(y[11],b);l0(M,y,R,x),Nt(x,!1)}function J0(_){return fp("",_,""),J0}function fp(_,b,y){const M=Se(),v=Oa(M,_,b,y);return v!==Vt&&Po(M,nn(),v),fp}function S_(_,b,y,M,v){const x=Se(),R=nd(x,_,b,y,M,v);return R!==Vt&&Po(x,nn(),R),S_}function mp(_,b,y,M,v,x,R,k,I,z,$){const ne=Se(),de=id(ne,_,b,y,M,v,x,R,k,I,z,$);return de!==Vt&&Po(ne,nn(),de),mp}function od(_,b,y){Ba(Ki,rs,Oa(Se(),_,b,y),!0)}function ld(_,b,y){const M=Se();return br(M,Cs(),b)&&_r(pt(),Nn(),M,_,b,M[11],y,!0),ld}function gp(_,b,y){const M=Se();if(br(M,Cs(),b)){const x=pt(),R=Nn();_r(x,R,M,_,b,e_(tl(x.data),R,M),y,!0)}return gp}const Fo=void 0;var O_=["en",[["a","p"],["AM","PM"],Fo],[["AM","PM"],Fo,Fo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Fo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Fo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Fo,"{1} 'at' {0}",Fo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function k_(_){const y=Math.floor(Math.abs(_)),M=_.toString().replace(/^[^.]*\.?/,"").length;return 1===y&&0===M?1:5}];let cd={};function _p(_){const b=function B_(_){return _.toLowerCase().replace(/_/g,"-")}(_);let y=bp(b);if(y)return y;const M=b.split("-")[0];if(y=bp(M),y)return y;if("en"===M)return O_;throw new re(701,!1)}function lm(_){return _p(_)[vt.PluralCase]}function bp(_){return _ in cd||(cd[_]=fe.ng&&fe.ng.common&&fe.ng.common.locales&&fe.ng.common.locales[_]),cd[_]}var vt=(()=>((vt=vt||{})[vt.LocaleId=0]="LocaleId",vt[vt.DayPeriodsFormat=1]="DayPeriodsFormat",vt[vt.DayPeriodsStandalone=2]="DayPeriodsStandalone",vt[vt.DaysFormat=3]="DaysFormat",vt[vt.DaysStandalone=4]="DaysStandalone",vt[vt.MonthsFormat=5]="MonthsFormat",vt[vt.MonthsStandalone=6]="MonthsStandalone",vt[vt.Eras=7]="Eras",vt[vt.FirstDayOfWeek=8]="FirstDayOfWeek",vt[vt.WeekendRange=9]="WeekendRange",vt[vt.DateFormat=10]="DateFormat",vt[vt.TimeFormat=11]="TimeFormat",vt[vt.DateTimeFormat=12]="DateTimeFormat",vt[vt.NumberSymbols=13]="NumberSymbols",vt[vt.NumberFormats=14]="NumberFormats",vt[vt.CurrencyCode=15]="CurrencyCode",vt[vt.CurrencySymbol=16]="CurrencySymbol",vt[vt.CurrencyName=17]="CurrencyName",vt[vt.Currencies=18]="Currencies",vt[vt.Directionality=19]="Directionality",vt[vt.PluralCase=20]="PluralCase",vt[vt.ExtraData=21]="ExtraData",vt))();const Fl="en-US";let NM=Fl;function Cm(_,b,y,M,v){if(_=ae(_),Array.isArray(_))for(let x=0;x<_.length;x++)Cm(_[x],b,y,M,v);else{const x=pt(),R=Se();let k=vl(_)?_:ae(_.provide),I=s1(_);const z=Gn(),$=1048575&z.providerIndexes,ne=z.directiveStart,de=z.providerIndexes>>20;if(vl(_)||!_.multi){const ge=new qr(I,v,$c),He=Tm(k,b,v?$:$+de,ne);-1===He?(yc(cl(z,R),x,k),tb(x,_,b.length),b.push(k),z.directiveStart++,z.directiveEnd++,v&&(z.providerIndexes+=1048576),y.push(ge),R.push(ge)):(y[He]=ge,R[He]=ge)}else{const ge=Tm(k,b,$+de,ne),He=Tm(k,b,$,$+de),qe=ge>=0&&y[ge],Qe=He>=0&&y[He];if(v&&!Qe||!v&&!qe){yc(cl(z,R),x,k);const st=function xm(_,b,y,M,v){const x=new qr(_,y,$c);return x.multi=[],x.index=b,x.componentProviders=0,vm(x,v,M&&!y),x}(v?eC:nb,y.length,v,M,I);!v&&Qe&&(y[He].providerFactory=st),tb(x,_,b.length,0),b.push(k),z.directiveStart++,z.directiveEnd++,v&&(z.providerIndexes+=1048576),y.push(st),R.push(st)}else tb(x,_,ge>-1?ge:He,vm(y[v?He:ge],I,!v&&M));!v&&M&&Qe&&y[He].componentProviders++}}}function tb(_,b,y,M){const v=vl(b),x=function Ey(_){return!!_.useClass}(b);if(v||x){const I=(x?ae(b.useClass):b).prototype.ngOnDestroy;if(I){const z=_.destroyHooks||(_.destroyHooks=[]);if(!v&&b.multi){const $=z.indexOf(y);-1===$?z.push(y,[M,I]):z[$+1].push(M,I)}else z.push(y,I)}}}function vm(_,b,y){return y&&_.componentProviders++,_.multi.push(b)-1}function Tm(_,b,y,M){for(let v=y;v{y.providersResolver=(M,v)=>function Lp(_,b,y){const M=pt();if(M.firstCreatePass){const v=Qi(_);Cm(y,M.data,M.blueprint,v,!0),Cm(b,M.data,M.blueprint,v,!1)}}(M,v?v(_):_,b)}}class sr{}class rb{}function Qs(_,b){return new Rp(_,b??null)}class Rp extends sr{constructor(b,y){super(),this._parent=y,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new k0(this);const M=Ze(b);this._bootstrapComponents=Lo(M.bootstrap),this._r3Injector=p0(b,y,[{provide:sr,useValue:this},{provide:Nc,useValue:this.componentFactoryResolver}],U(b),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(b)}get injector(){return this._r3Injector}destroy(){const b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(y=>y()),this.destroyCbs=null}onDestroy(b){this.destroyCbs.push(b)}}class Sm extends rb{constructor(b){super(),this.moduleType=b}create(b){return new Rp(this.moduleType,b)}}class Em extends sr{constructor(b,y,M){super(),this.componentFactoryResolver=new k0(this),this.instance=null;const v=new Qf([...b,{provide:sr,useValue:this},{provide:Nc,useValue:this.componentFactoryResolver}],y||Rh(),M,new Set(["environment"]));this.injector=v,v.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(b){this.injector.onDestroy(b)}}function Pp(_,b,y=null){return new Em(_,b,y).injector}function db(_,b,y){const M=Wt()+_,v=Se();return v[M]===Vt?qs(v,M,y?b.call(y):b()):function ip(_,b){return _[b]}(v,M)}function ub(_,b,y,M){return Rm(Se(),Wt(),_,b,y,M)}function Nr(_,b,y,M,v){return cC(Se(),Wt(),_,b,y,M,v)}function ju(_,b){const y=_[b];return y===Vt?void 0:y}function Rm(_,b,y,M,v,x){const R=b+y;return br(_,R,v)?qs(_,R+1,x?M.call(x,v):M(v)):ju(_,R+1)}function cC(_,b,y,M,v,x,R){const k=b+y;return td(_,k,v,x)?qs(_,k+2,R?M.call(R,v,x):M(v,x)):ju(_,k+2)}function dC(_,b,y,M,v,x,R,k){const I=b+y;return function N0(_,b,y,M,v){const x=td(_,b,y,M);return br(_,b+2,v)||x}(_,I,v,x,R)?qs(_,I+3,k?M.call(k,v,x,R):M(v,x,R)):ju(_,I+3)}function Fu(_,b){const y=pt();let M;const v=_+22;y.firstCreatePass?(M=function Xs(_,b){if(b)for(let y=b.length-1;y>=0;y--){const M=b[y];if(_===M.name)return M}}(b,y.pipeRegistry),y.data[v]=M,M.onDestroy&&(y.destroyHooks||(y.destroyHooks=[])).push(v,M.onDestroy)):M=y.data[v];const x=M.factory||(M.factory=zr(M.type)),R=ct($c);try{const k=bc(!1),I=x();return bc(k),function pM(_,b,y,M){y>=_.data.length&&(_.data[y]=null,_.blueprint[y]=null),b[y]=M}(y,Se(),v,I),I}finally{ct(R)}}function pC(_,b,y){const M=_+22,v=Se(),x=_o(v,M);return pd(v,M)?Rm(v,Wt(),b,x.transform,y,x):x.transform(y)}function fC(_,b,y,M){const v=_+22,x=Se(),R=_o(x,v);return pd(x,v)?cC(x,Wt(),b,R.transform,y,M,R):R.transform(y,M)}function km(_,b,y,M,v){const x=_+22,R=Se(),k=_o(R,x);return pd(R,x)?dC(R,Wt(),b,k.transform,y,M,v,k):k.transform(y,M,v)}function pd(_,b){return _[1].data[b].pure}function Om(_){return b=>{setTimeout(_,void 0,b)}}const ss=class LS extends T.x{constructor(b=!1){super(),this.__isAsync=b}emit(b){super.next(b)}subscribe(b,y,M){let v=b,x=y||(()=>null),R=M;if(b&&"object"==typeof b){var k,I,z;const ne=b;v=null===(k=ne.next)||void 0===k?void 0:k.bind(ne),x=null===(I=ne.error)||void 0===I?void 0:I.bind(ne),R=null===(z=ne.complete)||void 0===z?void 0:z.bind(ne)}this.__isAsync&&(x=Om(x),v&&(v=Om(v)),R&&(R=Om(R)));const $=super.subscribe({next:v,error:x,complete:R});return b instanceof n.w0&&b.add($),$}};function gC(){return this._results[ko()]()}class Np{constructor(b=!1){this._emitDistinctChangesOnly=b,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const y=ko(),M=Np.prototype;M[y]||(M[y]=gC)}get changes(){return this._changes||(this._changes=new ss)}get(b){return this._results[b]}map(b){return this._results.map(b)}filter(b){return this._results.filter(b)}find(b){return this._results.find(b)}reduce(b,y){return this._results.reduce(b,y)}forEach(b){this._results.forEach(b)}some(b){return this._results.some(b)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(b,y){const M=this;M.dirty=!1;const v=Si(b);(this._changesDetected=!function Ta(_,b,y){if(_.length!==b.length)return!1;for(let M=0;M<_.length;M++){let v=_[M],x=b[M];if(y&&(v=y(v),x=y(x)),x!==v)return!1}return!0}(M._results,v,y))&&(M._results=v,M.length=v.length,M.last=v[this.length-1],M.first=v[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let zu=(()=>{class _{}return _.__NG_ELEMENT_ID__=AC,_})();const _C=zu,bC=class extends _C{constructor(b,y,M){super(),this._declarationLView=b,this._declarationTContainer=y,this.elementRef=M}createEmbeddedView(b,y){const M=this._declarationTContainer.tViews,v=gu(this._declarationLView,M,b,16,null,M.declTNode,null,null,null,null,y||null);v[17]=this._declarationLView[this._declarationTContainer.index];const R=this._declarationLView[19];return null!==R&&(v[19]=R.createEmbeddedView(M)),Yh(M,v,b),new kl(v)}};function AC(){return Vp(Gn(),Se())}function Vp(_,b){return 4&_.type?new bC(b,_,Vc(_,b)):null}let Uu=(()=>{class _{}return _.__NG_ELEMENT_ID__=HS,_})();function HS(){return Yl(Gn(),Se())}const RS=Uu,yC=class extends RS{constructor(b,y,M){super(),this._lContainer=b,this._hostTNode=y,this._hostLView=M}get element(){return Vc(this._hostTNode,this._hostLView)}get injector(){return new Ls(this._hostTNode,this._hostLView)}get parentInjector(){const b=Nd(this._hostTNode,this._hostLView);if(Bd(b)){const y=wo(b,this._hostLView),M=yo(b);return new Ls(y[1].data[M+8],y)}return new Ls(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(b){const y=Im(this._lContainer);return null!==y&&y[b]||null}get length(){return this._lContainer.length-10}createEmbeddedView(b,y,M){let v,x;"number"==typeof M?v=M:null!=M&&(v=M.index,x=M.injector);const R=b.createEmbeddedView(y||{},x);return this.insert(R,v),R}createComponent(b,y,M,v,x){const R=b&&!function ks(_){return"function"==typeof _}(b);let k;if(R)k=y;else{const ne=y||{};k=ne.index,M=ne.injector,v=ne.projectableNodes,x=ne.environmentInjector||ne.ngModuleRef}const I=R?b:new Kc(pn(b)),z=M||this.parentInjector;if(!x&&null==I.ngModule){const de=(R?z:this.parentInjector).get(xl,null);de&&(x=de)}const $=I.create(z,v,void 0,x);return this.insert($.hostView,k),$}insert(b,y){const M=b._lView,v=M[1];if(function F(_){return Ji(_[3])}(M)){const $=this.indexOf(b);if(-1!==$)this.detach($);else{const ne=M[3],de=new yC(ne,ne[6],ne[3]);de.detach(de.indexOf(b))}}const x=this._adjustIndex(y),R=this._lContainer;!function Ix(_,b,y,M){const v=10+M,x=y.length;M>0&&(y[v-1][4]=b),M0)M.push(R[k/2]);else{const z=x[k+1],$=b[-I];for(let ne=10;ne<$.length;ne++){const de=$[ne];de[17]===de[3]&&md(de[1],de,z,M)}if(null!==$[9]){const ne=$[9];for(let de=0;de{class _{constructor(y){this.appInits=y,this.resolve=Yu,this.reject=Yu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((M,v)=>{this.resolve=M,this.reject=v})}runInitializers(){if(this.initialized)return;const y=[],M=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let v=0;v{x.subscribe({complete:k,error:I})});y.push(R)}}Promise.all(y).then(()=>{M()}).catch(v=>{this.reject(v)}),0===y.length&&M(),this.initialized=!0}}return _.\u0275fac=function(y){return new(y||_)(Jn(qo,8))},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const Lb=new Sn("AppId",{providedIn:"root",factory:function WC(){return`${$p()}${$p()}${$p()}`}});function $p(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Hb=new Sn("Platform Initializer"),GC=new Sn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Rb=new Sn("appBootstrapListener"),$C=new Sn("AnimationModuleType");let Pb=(()=>{class _{log(y){console.log(y)}warn(y){console.warn(y)}}return _.\u0275fac=function(y){return new(y||_)},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();const Zp=new Sn("LocaleId",{providedIn:"root",factory:()=>wh(Zp,ye.Optional|ye.SkipSelf)||function ZC(){return typeof $localize<"u"&&$localize.locale||Fl}()}),zn=new Sn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class QC{constructor(b,y){this.ngModuleFactory=b,this.componentFactories=y}}let Jp=(()=>{class _{compileModuleSync(y){return new Sm(y)}compileModuleAsync(y){return Promise.resolve(this.compileModuleSync(y))}compileModuleAndAllComponentsSync(y){const M=this.compileModuleSync(y),x=Lo(Ze(y).declarations).reduce((R,k)=>{const I=pn(k);return I&&R.push(new Kc(I)),R},[]);return new QC(M,x)}compileModuleAndAllComponentsAsync(y){return Promise.resolve(this.compileModuleAndAllComponentsSync(y))}clearCache(){}clearCacheFor(y){}getModuleId(y){}}return _.\u0275fac=function(y){return new(y||_)},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const KC=(()=>Promise.resolve(0))();function Km(_){typeof Zone>"u"?KC.then(()=>{_&&_.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",_)}class wr{constructor({enableLongStackTrace:b=!1,shouldCoalesceEventChangeDetection:y=!1,shouldCoalesceRunChangeDetection:M=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ss(!1),this.onMicrotaskEmpty=new ss(!1),this.onStable=new ss(!1),this.onError=new ss(!1),typeof Zone>"u")throw new re(908,!1);Zone.assertZonePatched();const v=this;if(v._nesting=0,v._outer=v._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const x=Zone.AsyncStackTaggingZoneSpec;v._inner=v._inner.fork(new x("Angular"))}Zone.TaskTrackingZoneSpec&&(v._inner=v._inner.fork(new Zone.TaskTrackingZoneSpec)),b&&Zone.longStackTraceZoneSpec&&(v._inner=v._inner.fork(Zone.longStackTraceZoneSpec)),v.shouldCoalesceEventChangeDetection=!M&&y,v.shouldCoalesceRunChangeDetection=M,v.lastRequestAnimationFrameId=-1,v.nativeRequestAnimationFrame=function Ob(){let _=fe.requestAnimationFrame,b=fe.cancelAnimationFrame;if(typeof Zone<"u"&&_&&b){const y=_[Zone.__symbol__("OriginalDelegate")];y&&(_=y);const M=b[Zone.__symbol__("OriginalDelegate")];M&&(b=M)}return{nativeRequestAnimationFrame:_,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function tv(_){const b=()=>{!function wd(_){_.isCheckStableRunning||-1!==_.lastRequestAnimationFrameId||(_.lastRequestAnimationFrameId=_.nativeRequestAnimationFrame.call(fe,()=>{_.fakeTopEventTask||(_.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{_.lastRequestAnimationFrameId=-1,Wl(_),_.isCheckStableRunning=!0,eg(_),_.isCheckStableRunning=!1},void 0,()=>{},()=>{})),_.fakeTopEventTask.invoke()}),Wl(_))}(_)};_._inner=_._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(y,M,v,x,R,k)=>{try{return Ib(_),y.invokeTask(v,x,R,k)}finally{(_.shouldCoalesceEventChangeDetection&&"eventTask"===x.type||_.shouldCoalesceRunChangeDetection)&&b(),Bb(_)}},onInvoke:(y,M,v,x,R,k,I)=>{try{return Ib(_),y.invoke(v,x,R,k,I)}finally{_.shouldCoalesceRunChangeDetection&&b(),Bb(_)}},onHasTask:(y,M,v,x)=>{y.hasTask(v,x),M===v&&("microTask"==x.change?(_._hasPendingMicrotasks=x.microTask,Wl(_),eg(_)):"macroTask"==x.change&&(_.hasPendingMacrotasks=x.macroTask))},onHandleError:(y,M,v,x)=>(y.handleError(v,x),_.runOutsideAngular(()=>_.onError.emit(x)),!1)})}(v)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!wr.isInAngularZone())throw new re(909,!1)}static assertNotInAngularZone(){if(wr.isInAngularZone())throw new re(909,!1)}run(b,y,M){return this._inner.run(b,y,M)}runTask(b,y,M,v){const x=this._inner,R=x.scheduleEventTask("NgZoneEvent: "+v,b,ev,Yu,Yu);try{return x.runTask(R,y,M)}finally{x.cancelTask(R)}}runGuarded(b,y,M){return this._inner.runGuarded(b,y,M)}runOutsideAngular(b){return this._outer.run(b)}}const ev={};function eg(_){if(0==_._nesting&&!_.hasPendingMicrotasks&&!_.isStable)try{_._nesting++,_.onMicrotaskEmpty.emit(null)}finally{if(_._nesting--,!_.hasPendingMicrotasks)try{_.runOutsideAngular(()=>_.onStable.emit(null))}finally{_.isStable=!0}}}function Wl(_){_.hasPendingMicrotasks=!!(_._hasPendingMicrotasks||(_.shouldCoalesceEventChangeDetection||_.shouldCoalesceRunChangeDetection)&&-1!==_.lastRequestAnimationFrameId)}function Ib(_){_._nesting++,_.isStable&&(_.isStable=!1,_.onUnstable.emit(null))}function Bb(_){_._nesting--,eg(_)}class Ln{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ss,this.onMicrotaskEmpty=new ss,this.onStable=new ss,this.onError=new ss}run(b,y,M){return b.apply(y,M)}runGuarded(b,y,M){return b.apply(y,M)}runOutsideAngular(b){return b()}runTask(b,y,M,v){return b.apply(y,M)}}const Nb=new Sn(""),ni=new Sn("");let ng,nv=(()=>{class _{constructor(y,M,v){this._ngZone=y,this.registry=M,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,ng||(function ZS(_){ng=_}(v),v.addToWindow(M)),this._watchAngularEvents(),y.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{wr.assertNotInAngularZone(),Km(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Km(()=>{for(;0!==this._callbacks.length;){let y=this._callbacks.pop();clearTimeout(y.timeoutId),y.doneCb(this._didWork)}this._didWork=!1});else{let y=this.getPendingTasks();this._callbacks=this._callbacks.filter(M=>!M.updateCb||!M.updateCb(y)||(clearTimeout(M.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(y=>({source:y.source,creationLocation:y.creationLocation,data:y.data})):[]}addCallback(y,M,v){let x=-1;M&&M>0&&(x=setTimeout(()=>{this._callbacks=this._callbacks.filter(R=>R.timeoutId!==x),y(this._didWork,this.getPendingTasks())},M)),this._callbacks.push({doneCb:y,timeoutId:x,updateCb:v})}whenStable(y,M,v){if(v&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(y,M,v),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(y){this.registry.registerApplication(y,this)}unregisterApplication(y){this.registry.unregisterApplication(y)}findProviders(y,M,v){return[]}}return _.\u0275fac=function(y){return new(y||_)(Jn(wr),Jn(tg),Jn(ni))},_.\u0275prov=dn({token:_,factory:_.\u0275fac}),_})(),tg=(()=>{class _{constructor(){this._applications=new Map}registerApplication(y,M){this._applications.set(y,M)}unregisterApplication(y){this._applications.delete(y)}unregisterAllApplications(){this._applications.clear()}getTestability(y){return this._applications.get(y)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(y,M=!0){var v,x;return null!==(v=null===(x=ng)||void 0===x?void 0:x.findTestabilityInTree(this,y,M))&&void 0!==v?v:null}}return _.\u0275fac=function(y){return new(y||_)},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})(),Wo=null;const Vb=new Sn("AllowMultipleToken"),ig=new Sn("PlatformDestroyListeners");class ii{constructor(b,y){this.name=b,this.token=y}}function Gl(_,b,y=[]){const M=`Platform: ${b}`,v=new Sn(M);return(x=[])=>{let R=jb();if(!R||R.injector.get(Vb,!1)){const k=[...y,...x,{provide:v,useValue:!0}];_?_(k):function Un(_){if(Wo&&!Wo.get(Vb,!1))throw new re(400,!1);Wo=_;const b=_.get(sv);(function Wu(_){const b=_.get(Hb,null);b&&b.forEach(y=>y())})(_)}(function av(_=[],b){return Qa.create({name:b,providers:[{provide:Zf,useValue:"platform"},{provide:ig,useValue:new Set([()=>Wo=null])},..._]})}(k,M))}return function QS(_){const b=jb();if(!b)throw new re(401,!1);return b}()}}function jb(){var _,b;return null!==(_=null===(b=Wo)||void 0===b?void 0:b.get(sv))&&void 0!==_?_:null}let sv=(()=>{class _{constructor(y){this._injector=y,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(y,M){const v=function XS(_,b){let y;return y="noop"===_?new Ln:("zone.js"===_?void 0:_)||new wr(b),y}(M?.ngZone,function ov(_){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!_||!_.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!_||!_.ngZoneRunCoalescing)||!1}}(M)),x=[{provide:wr,useValue:v}];return v.run(()=>{const R=Qa.create({providers:x,parent:this.injector,name:y.moduleType.name}),k=y.create(R),I=k.injector.get(Ra,null);if(!I)throw new re(402,!1);return v.runOutsideAngular(()=>{const z=v.onError.subscribe({next:$=>{I.handleError($)}});k.onDestroy(()=>{ag(this._modules,k),z.unsubscribe()})}),function lv(_,b,y){try{const M=y();return q0(M)?M.catch(v=>{throw b.runOutsideAngular(()=>_.handleError(v)),v}):M}catch(M){throw b.runOutsideAngular(()=>_.handleError(M)),M}}(I,v,()=>{const z=k.injector.get(Yo);return z.runInitializers(),z.donePromise.then(()=>(function VM(_){cn(_,"Expected localeId to be defined"),"string"==typeof _&&(NM=_.toLowerCase().replace(/_/g,"-"))}(k.injector.get(Zp,Fl)||Fl),this._moduleDoBootstrap(k),k))})})}bootstrapModule(y,M=[]){const v=cv({},M);return function iv(_,b,y){const M=new Sm(y);return Promise.resolve(M)}(0,0,y).then(x=>this.bootstrapModuleFactory(x,v))}_moduleDoBootstrap(y){const M=y.injector.get(rg);if(y._bootstrapComponents.length>0)y._bootstrapComponents.forEach(v=>M.bootstrap(v));else{if(!y.instance.ngDoBootstrap)throw new re(403,!1);y.instance.ngDoBootstrap(M)}this._modules.push(y)}onDestroy(y){this._destroyListeners.push(y)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new re(404,!1);this._modules.slice().forEach(M=>M.destroy()),this._destroyListeners.forEach(M=>M());const y=this._injector.get(ig,null);y&&(y.forEach(M=>M()),y.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return _.\u0275fac=function(y){return new(y||_)(Jn(Qa))},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();function cv(_,b){return Array.isArray(b)?b.reduce(cv,_):{..._,...b}}let rg=(()=>{class _{constructor(y,M,v){this._zone=y,this._injector=M,this._exceptionHandler=v,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const x=new H.y(k=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{k.next(this._stable),k.complete()})}),R=new H.y(k=>{let I;this._zone.runOutsideAngular(()=>{I=this._zone.onStable.subscribe(()=>{wr.assertNotInAngularZone(),Km(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,k.next(!0))})})});const z=this._zone.onUnstable.subscribe(()=>{wr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{k.next(!1)}))});return()=>{I.unsubscribe(),z.unsubscribe()}});this.isStable=(0,D.T)(x,R.pipe((0,L.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(y,M){const v=y instanceof Ph;if(!this._injector.get(Yo).done)throw!v&&Ks(y),new re(405,false);let R;R=v?y:this._injector.get(Nc).resolveComponentFactory(y),this.componentTypes.push(R.componentType);const k=function Xn(_){return _.isBoundToModule}(R)?void 0:this._injector.get(sr),z=R.create(Qa.NULL,[],M||R.selector,k),$=z.location.nativeElement,ne=z.injector.get(Nb,null);return ne?.registerApplication($),z.onDestroy(()=>{this.detachView(z.hostView),ag(this.components,z),ne?.unregisterApplication($)}),this._loadComponent(z),z}tick(){if(this._runningTick)throw new re(101,!1);try{this._runningTick=!0;for(let y of this._views)y.detectChanges()}catch(y){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(y))}finally{this._runningTick=!1}}attachView(y){const M=y;this._views.push(M),M.attachToAppRef(this)}detachView(y){const M=y;ag(this._views,M),M.detachFromAppRef()}_loadComponent(y){this.attachView(y.hostView),this.tick(),this.components.push(y),this._injector.get(Rb,[]).concat(this._bootstrapListeners).forEach(v=>v(y))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(y=>y()),this._views.slice().forEach(y=>y.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(y){return this._destroyListeners.push(y),()=>ag(this._destroyListeners,y)}destroy(){if(this._destroyed)throw new re(406,!1);const y=this._injector;y.destroy&&!y.destroyed&&y.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return _.\u0275fac=function(y){return new(y||_)(Jn(wr),Jn(xl),Jn(Ra))},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function ag(_,b){const y=_.indexOf(b);y>-1&&_.splice(y,1)}let zb=!0;function KS(){zb=!1}let tE=(()=>{class _{}return _.__NG_ELEMENT_ID__=uv,_})();function uv(_){return function hv(_,b,y){if(na(_)&&!y){const M=Bi(_.index,b);return new kl(M,M)}return 47&_.type?new kl(b[16],b):null}(Gn(),Se(),16==(16&_))}class _v{constructor(){}supports(b){return vu(b)}create(b){return new Wb(b)}}const aE=(_,b)=>b;class Wb{constructor(b){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=b||aE}forEachItem(b){let y;for(y=this._itHead;null!==y;y=y._next)b(y)}forEachOperation(b){let y=this._itHead,M=this._removalsHead,v=0,x=null;for(;y||M;){const R=!M||y&&y.currentIndex{R=this._trackByFn(v,k),null!==y&&Object.is(y.trackById,R)?(M&&(y=this._verifyReinsertion(y,k,R,v)),Object.is(y.item,k)||this._addIdentityChange(y,k)):(y=this._mismatch(y,k,R,v),M=!0),y=y._next,v++}),this.length=v;return this._truncate(y),this.collection=b,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let b;for(b=this._previousItHead=this._itHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._additionsHead;null!==b;b=b._nextAdded)b.previousIndex=b.currentIndex;for(this._additionsHead=this._additionsTail=null,b=this._movesHead;null!==b;b=b._nextMoved)b.previousIndex=b.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(b,y,M,v){let x;return null===b?x=this._itTail:(x=b._prev,this._remove(b)),null!==(b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(M,null))?(Object.is(b.item,y)||this._addIdentityChange(b,y),this._reinsertAfter(b,x,v)):null!==(b=null===this._linkedRecords?null:this._linkedRecords.get(M,v))?(Object.is(b.item,y)||this._addIdentityChange(b,y),this._moveAfter(b,x,v)):b=this._addAfter(new sE(y,M),x,v),b}_verifyReinsertion(b,y,M,v){let x=null===this._unlinkedRecords?null:this._unlinkedRecords.get(M,null);return null!==x?b=this._reinsertAfter(x,b._prev,v):b.currentIndex!=v&&(b.currentIndex=v,this._addToMoves(b,v)),b}_truncate(b){for(;null!==b;){const y=b._next;this._addToRemovals(this._unlink(b)),b=y}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(b,y,M){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(b);const v=b._prevRemoved,x=b._nextRemoved;return null===v?this._removalsHead=x:v._nextRemoved=x,null===x?this._removalsTail=v:x._prevRemoved=v,this._insertAfter(b,y,M),this._addToMoves(b,M),b}_moveAfter(b,y,M){return this._unlink(b),this._insertAfter(b,y,M),this._addToMoves(b,M),b}_addAfter(b,y,M){return this._insertAfter(b,y,M),this._additionsTail=null===this._additionsTail?this._additionsHead=b:this._additionsTail._nextAdded=b,b}_insertAfter(b,y,M){const v=null===y?this._itHead:y._next;return b._next=v,b._prev=y,null===v?this._itTail=b:v._prev=b,null===y?this._itHead=b:y._next=b,null===this._linkedRecords&&(this._linkedRecords=new Av),this._linkedRecords.put(b),b.currentIndex=M,b}_remove(b){return this._addToRemovals(this._unlink(b))}_unlink(b){null!==this._linkedRecords&&this._linkedRecords.remove(b);const y=b._prev,M=b._next;return null===y?this._itHead=M:y._next=M,null===M?this._itTail=y:M._prev=y,b}_addToMoves(b,y){return b.previousIndex===y||(this._movesTail=null===this._movesTail?this._movesHead=b:this._movesTail._nextMoved=b),b}_addToRemovals(b){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Av),this._unlinkedRecords.put(b),b.currentIndex=null,b._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=b,b._prevRemoved=null):(b._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=b),b}_addIdentityChange(b,y){return b.item=y,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=b:this._identityChangesTail._nextIdentityChange=b,b}}class sE{constructor(b,y){this.item=b,this.trackById=y,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class bv{constructor(){this._head=null,this._tail=null}add(b){null===this._head?(this._head=this._tail=b,b._nextDup=null,b._prevDup=null):(this._tail._nextDup=b,b._prevDup=this._tail,b._nextDup=null,this._tail=b)}get(b,y){let M;for(M=this._head;null!==M;M=M._nextDup)if((null===y||y<=M.currentIndex)&&Object.is(M.trackById,b))return M;return null}remove(b){const y=b._prevDup,M=b._nextDup;return null===y?this._head=M:y._nextDup=M,null===M?this._tail=y:M._prevDup=y,null===this._head}}class Av{constructor(){this.map=new Map}put(b){const y=b.trackById;let M=this.map.get(y);M||(M=new bv,this.map.set(y,M)),M.add(b)}get(b,y){const v=this.map.get(b);return v?v.get(b,y):null}remove(b){const y=b.trackById;return this.map.get(y).remove(b)&&this.map.delete(y),b}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function yv(_,b,y){const M=_.previousIndex;if(null===M)return M;let v=0;return y&&M{if(y&&y.key===v)this._maybeAddToChanges(y,M),this._appendAfter=y,y=y._next;else{const x=this._getOrCreateRecordForKey(v,M);y=this._insertBeforeOrAppend(y,x)}}),y){y._prev&&(y._prev._next=null),this._removalsHead=y;for(let M=y;null!==M;M=M._nextRemoved)M===this._mapHead&&(this._mapHead=null),this._records.delete(M.key),M._nextRemoved=M._next,M.previousValue=M.currentValue,M.currentValue=null,M._prev=null,M._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(b,y){if(b){const M=b._prev;return y._next=b,y._prev=M,b._prev=y,M&&(M._next=y),b===this._mapHead&&(this._mapHead=y),this._appendAfter=b,b}return this._appendAfter?(this._appendAfter._next=y,y._prev=this._appendAfter):this._mapHead=y,this._appendAfter=y,null}_getOrCreateRecordForKey(b,y){if(this._records.has(b)){const v=this._records.get(b);this._maybeAddToChanges(v,y);const x=v._prev,R=v._next;return x&&(x._next=R),R&&(R._prev=x),v._next=null,v._prev=null,v}const M=new wv(b);return this._records.set(b,M),M.currentValue=y,this._addToAdditions(M),M}_reset(){if(this.isDirty){let b;for(this._previousMapHead=this._mapHead,b=this._previousMapHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._changesHead;null!==b;b=b._nextChanged)b.previousValue=b.currentValue;for(b=this._additionsHead;null!=b;b=b._nextAdded)b.previousValue=b.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(b,y){Object.is(y,b.currentValue)||(b.previousValue=b.currentValue,b.currentValue=y,this._addToChanges(b))}_addToAdditions(b){null===this._additionsHead?this._additionsHead=this._additionsTail=b:(this._additionsTail._nextAdded=b,this._additionsTail=b)}_addToChanges(b){null===this._changesHead?this._changesHead=this._changesTail=b:(this._changesTail._nextChanged=b,this._changesTail=b)}_forEach(b,y){b instanceof Map?b.forEach(y):Object.keys(b).forEach(M=>y(b[M],M))}}class wv{constructor(b){this.key=b,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Zb(){return new Jb([new _v])}let Jb=(()=>{class _{constructor(y){this.factories=y}static create(y,M){if(null!=M){const v=M.factories.slice();y=y.concat(v)}return new _(y)}static extend(y){return{provide:_,useFactory:M=>_.create(y,M||Zb()),deps:[[_,new bl,new To]]}}find(y){const M=this.factories.find(v=>v.supports(y));if(null!=M)return M;throw new re(901,!1)}}return _.\u0275prov=dn({token:_,providedIn:"root",factory:Zb}),_})();function Mv(){return new Qb([new Gb])}let Qb=(()=>{class _{constructor(y){this.factories=y}static create(y,M){if(M){const v=M.factories.slice();y=y.concat(v)}return new _(y)}static extend(y){return{provide:_,useFactory:M=>_.create(y,M||Mv()),deps:[[_,new bl,new To]]}}find(y){const M=this.factories.find(v=>v.supports(y));if(M)return M;throw new re(901,!1)}}return _.\u0275prov=dn({token:_,providedIn:"root",factory:Mv}),_})();const Cv=Gl(null,"core",[]);let cE=(()=>{class _{constructor(y){}}return _.\u0275fac=function(y){return new(y||_)(Jn(rg))},_.\u0275mod=jr({type:_}),_.\u0275inj=Tn({}),_})();function dE(_){return"boolean"==typeof _?_:null!=_&&"false"!==_}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Y extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Y.\u0275fac=function(){let G;return function(T){return(G||(G=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Y)))(T||Y)}}(),Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class Y{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,T){this.data.set(E,T)}}return Y.\u0275fac=function(E){return new(E||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class ReceivedTokens{}class OAuthEvent{constructor(G){this.type=G}}class OAuthSuccessEvent extends OAuthEvent{constructor(G,E=null){super(G),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(G,E=null){super(G),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(G,E,T=null){super(G),this.reason=E,this.params=T}}function b64DecodeUnicode(Y){const G=Y.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(G).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Y){return btoa(Y).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(G){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},G&&Object.assign(this,G)}}class WebHttpUrlEncodingCodec{encodeKey(G){return encodeURIComponent(G)}encodeValue(G){return encodeURIComponent(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(G){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=E.inferHashAlgorithm(G.idTokenHeader),n=yield E.calcHash(G.accessToken,T),D=base64UrlEncode(n.substr(0,n.length/2)),L=G.idTokenClaims.at_hash.replace(/=/g,"");return D!==L&&(console.error("exptected at_hash: "+D),console.error("actual at_hash: "+L)),D===L})()}inferHashAlgorithm(G){let E=G.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class Y{getHashFragmentParams(E){let T=E||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const n=T.indexOf("?");return T=T.substr(n>-1?n+1:1),this.parseQueryString(T)}parseQueryString(E){const T={};let n,H,D,L,O,B,U;if(null===E)return T;n=E.split("&");for(let W=0;W>6,H[L++]=128|63&O):O<55296||O>=57344?(H[L++]=224|O>>12,H[L++]=128|O>>6&63,H[L++]=128|63&O):(O=65536+((1023&O)<<10|1023&Y.charCodeAt(++T)),H[L++]=240|O>>18,H[L++]=128|O>>12&63,H[L++]=128|O>>6&63,H[L++]=128|63&O);Y=H}else{if("object"!==n)throw new Error(ERROR);if(null===Y)throw new Error(ERROR);if(ARRAY_BUFFER&&Y.constructor===ArrayBuffer)Y=new Uint8Array(Y);else if(!(Array.isArray(Y)||ARRAY_BUFFER&&ArrayBuffer.isView(Y)))throw new Error(ERROR)}Y.length>64&&(Y=new Sha256(G,!0).update(Y).array());var B=[],U=[];for(T=0;T<64;++T){var W=Y[T]||0;B[T]=92^W,U[T]=54^W}Sha256.call(this,G,E),this.update(U),this.oKeyPad=B,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(Y){if(!this.finalized){var G,E=typeof Y;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===Y)throw new Error(ERROR);if(ARRAY_BUFFER&&Y.constructor===ArrayBuffer)Y=new Uint8Array(Y);else if(!(Array.isArray(Y)||ARRAY_BUFFER&&ArrayBuffer.isView(Y)))throw new Error(ERROR);G=!0}for(var T,H,n=0,D=Y.length,L=this.blocks;n>2]|=Y[n]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(L[H>>2]|=(224|T>>12)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<>2]|=(240|T>>18)<>2]|=(128|T>>12&63)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<=64?(this.block=L[16],this.start=H-64,this.hash(),this.hashed=!0):this.start=H}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Y=this.blocks,G=this.lastByteIndex;Y[16]=this.block,Y[G>>2]|=EXTRA[3&G],this.block=Y[16],G>=56&&(this.hashed||this.hash(),Y[0]=this.block,Y[16]=Y[1]=Y[2]=Y[3]=Y[4]=Y[5]=Y[6]=Y[7]=Y[8]=Y[9]=Y[10]=Y[11]=Y[12]=Y[13]=Y[14]=Y[15]=0),Y[14]=this.hBytes<<3|this.bytes>>>29,Y[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var B,te,oe,re,be,we,Y=this.h0,G=this.h1,E=this.h2,T=this.h3,n=this.h4,H=this.h5,D=this.h6,L=this.h7,O=this.blocks;for(B=16;B<64;++B)O[B]=O[B-16]+(((te=O[B-15])>>>7|te<<25)^(te>>>18|te<<14)^te>>>3)+O[B-7]+(((te=O[B-2])>>>17|te<<15)^(te>>>19|te<<13)^te>>>10)<<0;for(we=G&E,B=0;B<64;B+=4)this.first?(this.is224?(oe=300032,L=(te=O[0]-1413257819)-150054599<<0,T=te+24177077<<0):(oe=704751109,L=(te=O[0]-210244248)-1521486534<<0,T=te+143694565<<0),this.first=!1):(L=T+(te=L+((n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7))+(n&H^~n&D)+K[B]+O[B])<<0,T=te+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((oe=Y&G)^Y&E^we))<<0),D=E+(te=D+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&n^~L&H)+K[B+1]+O[B+1])<<0,E=te+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((re=T&Y)^T&G^oe))<<0,H=G+(te=H+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&L^~D&n)+K[B+2]+O[B+2])<<0,G=te+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((be=E&T)^E&Y^re))<<0,n=Y+(te=n+((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&D^~H&L)+K[B+3]+O[B+3])<<0,Y=te+(((G>>>2|G<<30)^(G>>>13|G<<19)^(G>>>22|G<<10))+((we=G&E)^G&T^be))<<0;this.h0=this.h0+Y<<0,this.h1=this.h1+G<<0,this.h2=this.h2+E<<0,this.h3=this.h3+T<<0,this.h4=this.h4+n<<0,this.h5=this.h5+H<<0,this.h6=this.h6+D<<0,this.h7=this.h7+L<<0},Sha256.prototype.hex=function(){this.finalize();var Y=this.h0,G=this.h1,E=this.h2,T=this.h3,n=this.h4,H=this.h5,D=this.h6,L=this.h7,O=HEX_CHARS[Y>>28&15]+HEX_CHARS[Y>>24&15]+HEX_CHARS[Y>>20&15]+HEX_CHARS[Y>>16&15]+HEX_CHARS[Y>>12&15]+HEX_CHARS[Y>>8&15]+HEX_CHARS[Y>>4&15]+HEX_CHARS[15&Y]+HEX_CHARS[G>>28&15]+HEX_CHARS[G>>24&15]+HEX_CHARS[G>>20&15]+HEX_CHARS[G>>16&15]+HEX_CHARS[G>>12&15]+HEX_CHARS[G>>8&15]+HEX_CHARS[G>>4&15]+HEX_CHARS[15&G]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[H>>28&15]+HEX_CHARS[H>>24&15]+HEX_CHARS[H>>20&15]+HEX_CHARS[H>>16&15]+HEX_CHARS[H>>12&15]+HEX_CHARS[H>>8&15]+HEX_CHARS[H>>4&15]+HEX_CHARS[15&H]+HEX_CHARS[D>>28&15]+HEX_CHARS[D>>24&15]+HEX_CHARS[D>>20&15]+HEX_CHARS[D>>16&15]+HEX_CHARS[D>>12&15]+HEX_CHARS[D>>8&15]+HEX_CHARS[D>>4&15]+HEX_CHARS[15&D];return this.is224||(O+=HEX_CHARS[L>>28&15]+HEX_CHARS[L>>24&15]+HEX_CHARS[L>>20&15]+HEX_CHARS[L>>16&15]+HEX_CHARS[L>>12&15]+HEX_CHARS[L>>8&15]+HEX_CHARS[L>>4&15]+HEX_CHARS[15&L]),O},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Y=this.h0,G=this.h1,E=this.h2,T=this.h3,n=this.h4,H=this.h5,D=this.h6,L=this.h7,O=[Y>>24&255,Y>>16&255,Y>>8&255,255&Y,G>>24&255,G>>16&255,G>>8&255,255&G,E>>24&255,E>>16&255,E>>8&255,255&E,T>>24&255,T>>16&255,T>>8&255,255&T,n>>24&255,n>>16&255,n>>8&255,255&n,H>>24&255,H>>16&255,H>>8&255,255&H,D>>24&255,D>>16&255,D>>8&255,255&D];return this.is224||O.push(L>>24&255,L>>16&255,L>>8&255,255&L),O},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Y=new ArrayBuffer(this.is224?28:32),G=new DataView(Y);return G.setUint32(0,this.h0),G.setUint32(4,this.h1),G.setUint32(8,this.h2),G.setUint32(12,this.h3),G.setUint32(16,this.h4),G.setUint32(20,this.h5),G.setUint32(24,this.h6),this.is224||G.setUint32(28,this.h7),Y},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Y=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Y),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(Y){if("string"!=typeof Y)throw new TypeError("expected string");var G,E=Y,T=new Uint8Array(E.length);for(G=0;G{class Y{calcHash(E,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})()}toHashString2(E){let T="";for(let n of E)T+=String.fromCharCode(n);return T}toHashString(E){const T=new Uint8Array(E);let n="";for(let H of T)n+=String.fromCharCode(H);return n}}return Y.\u0275fac=function(E){return new(E||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),OAuthService=(()=>{class Y extends AuthConfig{constructor(E,T,n,H,D,L,O,B,U,W){super(),this.ngZone=E,this.http=T,this.config=D,this.urlHelper=L,this.logger=O,this.crypto=B,this.dateTimeService=W,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=U,D||(D={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),H&&(this.tokenValidationHandler=H),D&&this.configure(D);try{n?this.setStorage(n):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(ae){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",ae)}if(this.checkLocalStorageAccessable()){var ee,te;const ae=null===(ee=window)||void 0===ee||null===(te=ee.navigator)||void 0===te?void 0:te.userAgent;(ae?.includes("MSIE ")||ae?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const E="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(E,E),localStorage.removeItem(E),0))}catch{return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},T,n=!0){let H=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(D=>{"token_received"===D.type?H=!0:"logout"===D.type&&(H=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>"token_expires"===D.type&&(null==T||"any"===T||D.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(D=>{H&&this.refreshInternal(E,n).catch(L=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const T=[],n=this.validateUrlForHttps(E),H=this.validateUrlAgainstIssuer(E);return n||T.push("https for all urls required. Also for urls received by discovery."),H||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(E){if(!E)return!0;const T=E.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,T){if(!E)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${T}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),n=this.calcTimeout(T,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(n)).subscribe(H=>{this.ngZone.run(()=>{this.eventsSubject.next(H)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),n=this.calcTimeout(T,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(n)).subscribe(H=>{this.ngZone.run(()=>{this.eventsSubject.next(H)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,T){const n=this.dateTimeService.now();return Math.max(0,(T-E)*this.timeoutFactor-(n-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((T,n)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(H=>{if(!this.validateDiscoveryDocument(H))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void n("discovery_document_validation_error");this.loginUrl=H.authorization_endpoint,this.logoutUrl=H.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=H.grant_types_supported,this.issuer=H.issuer,this.tokenEndpoint=H.token_endpoint,this.userinfoEndpoint=H.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=H.jwks_uri,this.sessionCheckIFrameUrl=H.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(H),this.revocationEndpoint=H.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(D=>{const O=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:H,jwks:D});this.eventsSubject.next(O),T(O)}).catch(D=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",D)),n(D)})},H=>{this.logger.error("error loading discovery document",H),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",H)),n(H)}):n("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(n=>{this.jwks=n,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(n)},n=>{this.logger.error("error loading jwks",n),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",n)),T(n)}):E(null)})}validateDiscoveryDocument(E){let T;return this.skipIssuerCheck||E.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(E.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(E.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,T,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,T,n).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,T)=>{const n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:n,observe:"response",responseType:"text"}).subscribe(H=>{if(this.debug("userinfo received",JSON.stringify(H)),H.headers.get("content-type").startsWith("application/json")){let D=JSON.parse(H.body);const L=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!L.sub||D.sub!==L.sub))return void T("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");D=Object.assign({},L,D),this._storage.setItem("id_token_claims_obj",JSON.stringify(D)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:D})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(H.body))},H=>{this.logger.error("error loading user info",H),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",H)),T(H)})})}fetchTokenUsingPasswordFlow(E,T,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:T},n)}fetchTokenUsingGrant(E,T,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let H=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+D)}if(this.useHttpBasicAuth||(H=H.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(H=H.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const D of Object.getOwnPropertyNames(this.customQueryParams))H=H.set(D,this.customQueryParams[D]);for(const D of Object.keys(T))H=H.set(D,T[D]);return n=n.set("Content-Type","application/x-www-form-urlencoded"),new Promise((D,L)=>{this.http.post(this.tokenEndpoint,H,{headers:n}).subscribe(O=>{this.debug("tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.oidc&&O.id_token&&this.processIdToken(O.id_token,O.access_token).then(B=>{this.storeIdToken(B),D(O)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),D(O)},O=>{this.logger.error("Error performing ${grantType} flow",O),this.eventsSubject.next(new OAuthErrorEvent("token_error",O)),L(O)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,T)=>{let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),H=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);H=H.set("Authorization","Basic "+D)}if(this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const D of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(D,this.customQueryParams[D]);this.http.post(this.tokenEndpoint,n,{headers:H}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(D=>D.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(D.id_token,D.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(L=>this.storeIdToken(L)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(L=>D)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(D))).subscribe(D=>{this.debug("refresh tokenResponse",D),this.storeAccessTokenResponse(D.access_token,D.refresh_token,D.expires_in||this.fallbackAccessTokenExpirationTimeInSec,D.scope,this.extractRecognizedCustomParameters(D)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(D)},D=>{this.logger.error("Error refreshing token",D),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",D)),T(D)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const T=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(n=>this.debug("tryLogin during silent refresh failed",n))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},T=!0){const n=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const H=this.document.getElementById(this.silentRefreshIFrameName);H&&this.document.body.removeChild(H),this.silentRefreshSubject=n.sub;const D=this.document.createElement("iframe");D.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,E).then(W=>{D.setAttribute("src",W),this.silentRefreshShowIFrame||(D.style.display="none"),this.document.body.appendChild(D)});const O=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>W instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),B=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>"token_received"===W.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([O,B,U]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(W=>{if(W instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===W.type||(W=new OAuthErrorEvent("silent_refresh_error",W)),this.eventsSubject.next(W),W;return"token_received"===W.type&&(W=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(W)),W})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((n,H)=>{let O,L=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(L=E.windowRef,L.location.href=T):L=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const B=ae=>{this.tryLogin({customHashFragment:ae,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{W(),n(!0)},ue=>{W(),H(ue)})};L?O=window.setInterval(()=>{(!L||L.closed)&&(W(),H(new OAuthErrorEvent("popup_closed",{})))},500):H(new OAuthErrorEvent("popup_blocked",{}));const W=()=>{window.clearInterval(O),window.removeEventListener("storage",te),window.removeEventListener("message",ee),null!==L&&L.close(),L=null},ee=ae=>{const ue=this.processMessageEventMessage(ae);ue&&null!==ue?(window.removeEventListener("storage",te),B(ue)):console.log("false event firing")},te=ae=>{"auth_hash"===ae.key&&(window.removeEventListener("message",ee),B(ae.newValue))};window.addEventListener("message",ee),window.addEventListener("storage",te)}))}calculatePopupFeatures(E){const T=E.height||470,n=E.width||500,H=window.screenLeft+(window.outerWidth-n)/2;return`location=no,toolbar=no,width=${n},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${H}`}processMessageEventMessage(E){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const n=E.data;return n.startsWith(T)?"#"+n.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const T=E.origin.toLowerCase(),n=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),n.startsWith(T)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",n,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const T=this.document.createElement("iframe");T.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),T.setAttribute("src",this.sessionCheckIFrameUrl),T.style.display="none",this.document.body.appendChild(T),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(E="",T="",n="",H=!1,D={}){var L=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const O=L;let B;B=n||L.redirectUri;const U=yield L.createAndSaveNonce();if(E=E?U+L.config.nonceStateSeparator+encodeURIComponent(E):U,!L.requestAccessToken&&!L.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");L.responseType=L.config.responseType?L.config.responseType:L.oidc&&L.requestAccessToken?"id_token token":L.oidc&&!L.requestAccessToken?"id_token":"token";const W=O.loginUrl.indexOf("?")>-1?"&":"?";let ee=O.scope;L.oidc&&!ee.match(/(^|\s)openid($|\s)/)&&(ee="openid "+ee);let te=O.loginUrl+W+"response_type="+encodeURIComponent(O.responseType)+"&client_id="+encodeURIComponent(O.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(B)+"&scope="+encodeURIComponent(ee);if(L.responseType.includes("code")&&!L.disablePKCE){const[ae,ue]=yield L.createChallangeVerifierPairForPKCE();L.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ue):L._storage.setItem("PKCE_verifier",ue),te+="&code_challenge="+ae,te+="&code_challenge_method=S256"}T&&(te+="&login_hint="+encodeURIComponent(T)),O.resource&&(te+="&resource="+encodeURIComponent(O.resource)),O.oidc&&(te+="&nonce="+encodeURIComponent(U)),H&&(te+="&prompt=none");for(const ae of Object.keys(D))te+="&"+encodeURIComponent(ae)+"="+encodeURIComponent(D[ae]);if(L.customQueryParams)for(const ae of Object.getOwnPropertyNames(L.customQueryParams))te+="&"+ae+"="+encodeURIComponent(L.customQueryParams[ae]);return te})()}initImplicitFlowInternal(E="",T=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let n={},H=null;"string"==typeof T?H=T:"object"==typeof T&&(n=T),this.createLoginUrl(E,H,null,!1,n).then(this.config.openUri).catch(D=>{console.error("Error in initImplicitFlow",D),this.inImplicitFlow=!1})}initImplicitFlow(E="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(n=>"discovery_document_loaded"===n.type)).subscribe(n=>this.initImplicitFlowInternal(E,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const T=this;if(E.onTokenReceived){const n={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};E.onTokenReceived(n)}}storeAccessTokenResponse(E,T,n,H,D){if(this._storage.setItem("access_token",E),H&&!Array.isArray(H)?this._storage.setItem("granted_scopes",JSON.stringify(H.split(" "))):H&&Array.isArray(H)&&this._storage.setItem("granted_scopes",JSON.stringify(H)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),n){const L=1e3*n,B=this.dateTimeService.new().getTime()+L;this._storage.setItem("expires_at",""+B)}T&&this._storage.setItem("refresh_token",T),D&&D.forEach((L,O)=>{this._storage.setItem(O,L)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(T=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const n=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,H=T.getCodePartsFromUrl(n),D=H.code,L=H.state,O=H.session_state;if(!E.preventClearHashAfterLogin){const W=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,W)}let[B,U]=T.parseState(L);if(T.state=U,H.error){T.debug("error trying to login"),T.handleLoginError(E,H);const W=new OAuthErrorEvent("code_error",{},H);return T.eventsSubject.next(W),Promise.reject(W)}if(!E.disableNonceCheck){if(!B)return T.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!T.validateNonce(B)){const ee=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next(ee),Promise.reject(ee)}return T.storeSessionState(O),D&&(yield T.getTokenFromCode(D,E),T.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,T){let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let H;H=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),H?n=n.set("code_verifier",H):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(n,T)}fetchAndProcessToken(E,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const H=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+H)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((H,D)=>{if(this.customQueryParams)for(let L of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(L,this.customQueryParams[L]);this.http.post(this.tokenEndpoint,E,{headers:n}).subscribe(L=>{this.debug("refresh tokenResponse",L),this.storeAccessTokenResponse(L.access_token,L.refresh_token,L.expires_in||this.fallbackAccessTokenExpirationTimeInSec,L.scope,this.extractRecognizedCustomParameters(L)),this.oidc&&L.id_token?this.processIdToken(L.id_token,L.access_token,T.disableNonceCheck).then(O=>{this.storeIdToken(O),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),H(L)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",O)),console.error("Error validating tokens"),console.error(O),D(O)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),H(L))},L=>{console.error("Error getting token",L),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",L)),D(L)})})}tryLoginImplicitFlow(E=null){let T;T=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const n=T.state;let[H,D]=this.parseState(n);if(this.state=D,T.error){this.debug("error trying to login"),this.handleLoginError(E,T);const W=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(W),Promise.reject(W)}const L=T.access_token,O=T.id_token,B=T.session_state,U=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!L||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!n||this.oidc&&!O)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!B&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(H)){const ee=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(ee),Promise.reject(ee)}return this.requestAccessToken&&this.storeAccessTokenResponse(L,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,U),this.oidc?this.processIdToken(O,L,E.disableNonceCheck).then(W=>E.validationHandler?E.validationHandler({accessToken:L,idClaims:W.idTokenClaims,idToken:W.idToken,state:n}).then(ee=>W):W).then(W=>(this.storeIdToken(W),this.storeSessionState(B),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(W=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",W)),this.logger.error("Error validating tokens"),this.logger.error(W),Promise.reject(W))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let T=E,n="";if(E){const H=E.indexOf(this.config.nonceStateSeparator);H>-1&&(T=E.substr(0,H),n=E.substr(H+this.config.nonceStateSeparator.length))}return[T,n]}validateNonce(E){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===E||(console.error("Validating access_token failed, wrong state/nonce.",T,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,T){E.onLoginError&&E.onLoginError(T),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,T,n=!1){const H=E.split("."),L=b64DecodeUnicode(this.padBase64(H[0])),O=JSON.parse(L),U=b64DecodeUnicode(this.padBase64(H[1])),W=JSON.parse(U);let ee;if(ee=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(W.aud)){if(W.aud.every(be=>be!==this.clientId)){const be="Wrong audience: "+W.aud.join(",");return this.logger.warn(be),Promise.reject(be)}}else if(W.aud!==this.clientId){const be="Wrong audience: "+W.aud;return this.logger.warn(be),Promise.reject(be)}if(!W.sub){const be="No sub claim in id_token";return this.logger.warn(be),Promise.reject(be)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==W.sub){const be=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${W.sub}`;return this.logger.warn(be),Promise.reject(be)}if(!W.iat){const be="No iat claim in id_token";return this.logger.warn(be),Promise.reject(be)}if(!this.skipIssuerCheck&&W.iss!==this.issuer){const be="Wrong issuer: "+W.iss;return this.logger.warn(be),Promise.reject(be)}if(!n&&W.nonce!==ee){const be="Wrong nonce: "+W.nonce;return this.logger.warn(be),Promise.reject(be)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!W.at_hash){const be="An at_hash is needed!";return this.logger.warn(be),Promise.reject(be)}const te=this.dateTimeService.now(),ae=1e3*W.iat,ue=1e3*W.exp,oe=this.getClockSkewInMsec();if(ae-oe>=te||ue+oe<=te){const be="Token has expired";return console.error(be),console.error({now:te,issuedAtMSec:ae,expiresAtMSec:ue}),Promise.reject(be)}const re={accessToken:T,idToken:E,jwks:this.jwks,idTokenClaims:W,idTokenHeader:O,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(re).then(be=>({idToken:E,idTokenClaims:W,idTokenClaimsJson:U,idTokenHeader:O,idTokenHeaderJson:L,idTokenExpiresAt:ue})):this.checkAtHash(re).then(be=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!be){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}return this.checkSignature(re).then(we=>{const Xe={idToken:E,idTokenClaims:W,idTokenClaimsJson:U,idTokenHeader:O,idTokenHeaderJson:L,idTokenExpiresAt:ue};return this.disableAtHashCheck?Xe:this.checkAtHash(re).then(et=>{if(this.requestAccessToken&&!et){const ke="Wrong at_hash";return this.logger.warn(ke),Promise.reject(ke)}return Xe})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},T=""){let n=!1;"boolean"==typeof E&&(n=E,E={});const H=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(L=>this._storage.removeItem(L)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||n||!H&&!this.postLogoutRedirectUri)return;let D;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)D=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(H)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let L=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});H&&(L=L.set("id_token_hint",H));const O=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";O&&(L=L.set("post_logout_redirect_uri",O),T&&(L=L.set("state",T)));for(let B in E)L=L.set(B,E[B]);D=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+L.toString()}this.config.openUri(D)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(T){return E.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",T):E._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let n=45,H="";const D=typeof self>"u"?null:self.crypto||self.msCrypto;if(D){let L=new Uint8Array(n);D.getRandomValues(L),L.map||(L.map=Array.prototype.map),L=L.map(O=>T.charCodeAt(O%T.length)),H=String.fromCharCode.apply(null,L)}else for(;0"discovery_document_loaded"===n.type)).subscribe(n=>this.initCodeFlowInternal(E,T))}initCodeFlowInternal(E="",T={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let n={},H=null;"string"==typeof T?H=T:"object"==typeof T&&(n=T),this.createLoginUrl(E,H,null,!1,n).then(this.config.openUri).catch(D=>{console.error("Error in initAuthorizationCodeFlow"),console.error(D)})}createChallangeVerifierPairForPKCE(){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!E.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield E.createNonce();return[base64UrlEncode(yield E.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(E){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(n=>{E[n]&&T.set(n,JSON.stringify(E[n]))}),T}revokeTokenAndLogout(E={},T=!1){let n=this.revocationEndpoint,H=this.getAccessToken(),D=this.getRefreshToken();if(!H)return;let L=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),O=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const B=btoa(`${this.clientId}:${this.dummyClientSecret}`);O=O.set("Authorization","Basic "+B)}if(this.useHttpBasicAuth||(L=L.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(L=L.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const B of Object.getOwnPropertyNames(this.customQueryParams))L=L.set(B,this.customQueryParams[B]);return new Promise((B,U)=>{let W,ee;if(H){let te=L.set("token",H).set("token_type_hint","access_token");W=this.http.post(n,te,{headers:O})}else W=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(D){let te=L.set("token",D).set("token_type_hint","refresh_token");ee=this.http.post(n,te,{headers:O})}else ee=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(W=W.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(te=>0===te.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(te))),ee=ee.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(te=>0===te.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(te)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([W,ee]).subscribe(te=>{this.logOut(E),B(te),this.logger.info("Token successfully revoked")},te=>{this.logger.error("Error revoking token",te),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",te)),U(te)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Y.\u0275fac=function(E){return new(E||Y)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(G){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)}}let DefaultOAuthInterceptor=(()=>{class Y{constructor(E,T,n){this.oAuthService=E,this.errorHandler=T,this.moduleConfig=n}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>E.toLowerCase().startsWith(T.toLowerCase()))}intercept(E,T){const n=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(n)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>!!D)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>"token_received"===D.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(D=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(D=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(D=>{if(D){const O=E.headers.set("Authorization","Bearer "+D);E=E.clone({headers:O})}return T.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(L=>this.errorHandler.handleError(L)))})):T.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(D=>this.errorHandler.handleError(D))):T.handle(E)}}return Y.\u0275fac=function(E){return new(E||Y)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class NullValidationHandler{validateSignature(G){return Promise.resolve(null)}validateAtHash(G){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Y{static forRoot(E=null,T=NullValidationHandler){return{ngModule:Y,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:T},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Y.\u0275fac=function(E){return new(E||Y)},Y.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Y}),Y.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Y})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(Y,G,E)=>{"use strict";function T(H,D,L,O,B,U,W){try{var ee=H[U](W),te=ee.value}catch(ae){return void L(ae)}ee.done?D(te):Promise.resolve(te).then(O,B)}function n(H){return function(){var D=this,L=arguments;return new Promise(function(O,B){var U=H.apply(D,L);function W(te){T(U,O,B,W,ee,"next",te)}function ee(te){T(U,O,B,W,ee,"throw",te)}W(void 0)})}}E.d(G,{Z:()=>n})},1128:Y=>{"use strict";Y.exports=JSON.parse('{"version":"2021e","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|32e5","Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|20e4","Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT AST ADT -0330|3W.t 40 30 3u|0121213121212121|-2m4k1.v 1eAN1.v RB0 1Bz0 Op0 1rb0 11d0 1jJc0 IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5","America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2","America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|0121212121212121212121212121212121212121212121212121212121212121212121212132121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5","America/Guyana|LMT -04 -0345 -03|3Q.D 40 3J 30|01231|-2mf87.l 8Hc7.l 2r7bJ Ey0f|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010401054541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5","America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4","America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5","America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2","America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842","America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452","America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3","America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","Antarctica/Casey|-00 +08 +11|0 -80 -b0|0121212121212|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Pacific/Port_Moresby|+10|-a0|0||25e4","Antarctica/Macquarie|AEST AEDT -00|-a0 -b0 0|010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25","Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5","Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1C00 LA0 1C00|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4","Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|CST CDT|-80 -90|01010101010101010101010101010|-23uw0 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|01010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|IMT EET EEST +03 +04|-1U.U -20 -30 -30 -40|0121212121212121212121212121212121212121212121234312121212121212121212121212121212121212121212121212121212121212123|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|01212121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5","Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|BMT BST AST ADT|4j.i 3j.i 40 30|010102323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28p7E.G 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4","Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4","Atlantic/South_Georgia|-02|20|0||30","Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Hobart|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293iJ xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293i0 xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2","CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","EST|EST|50|0||","EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Etc/GMT-11|+11|-b0|0||","Pacific/Tarawa|+12|-c0|0||29e3","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Indian/Christmas|+07|-70|0||21e2","Etc/GMT-8|+08|-80|0||","Pacific/Palau|+09|-90|0||21e3","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5","Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5","Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5","Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5","Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5","Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4","Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|CET CEST EET EEST MSK MSD +03|-10 -20 -20 -30 -30 -40 -30|01010101010101232454545454545454543232323232323232323232323232323232323232323262|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5","Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2n5c9.l cFX9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3","Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6","Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4","Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5","Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4","Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|0123232323232323212121212121212121212121212121212121212121212121|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5","Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4","HST|HST|a0|0||","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Cocos|+0630|-6u|0||596","Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130","Indian/Mahe|LMT +04|-3F.M -40|01|-2xorF.M|79e3","Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4","Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3","MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","MST|MST|70|0||","MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0|37e3","Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4","Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-00 -12 -11 +13|0 c0 b0 -d0|0123|-1iIo0 1GsA0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|01212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0 4q00 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00|88e4","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4","Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2","Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|LMT -1120 -11|bj.E bk b0|012|-FScE.k suo0.k|12e2","Pacific/Norfolk|+1112 +1130 +1230 +11 +12|-bc -bu -cu -b0 -c0|012134343434343434343434343434343434343434|-Kgbc W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56","Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3","Pacific/Rarotonga|LMT -1030 -0930 -10|aD.4 au 9u a0|0123232323232323232323232323|-FSdk.U 13tbO.U IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|LMT +1220 +13 +14|-cj.c -ck -d0 -e0|01232323232|-XbMj.c BgLX.c 1yndk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3","PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|"],"links":["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/St_Helena","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Chicago|US/Central","America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Godthab|America/Nuuk","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Atikokan","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Phoenix|America/Creston","America/Phoenix|US/Arizona","America/Puerto_Rico|America/Anguilla","America/Puerto_Rico|America/Antigua","America/Puerto_Rico|America/Aruba","America/Puerto_Rico|America/Blanc-Sablon","America/Puerto_Rico|America/Curacao","America/Puerto_Rico|America/Dominica","America/Puerto_Rico|America/Grenada","America/Puerto_Rico|America/Guadeloupe","America/Puerto_Rico|America/Kralendijk","America/Puerto_Rico|America/Lower_Princes","America/Puerto_Rico|America/Marigot","America/Puerto_Rico|America/Montserrat","America/Puerto_Rico|America/Port_of_Spain","America/Puerto_Rico|America/St_Barthelemy","America/Puerto_Rico|America/St_Kitts","America/Puerto_Rico|America/St_Lucia","America/Puerto_Rico|America/St_Thomas","America/Puerto_Rico|America/St_Vincent","America/Puerto_Rico|America/Tortola","America/Puerto_Rico|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|America/Nassau","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Riyadh|Antarctica/Syowa","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Atlantic/Reykjavik|Iceland","Atlantic/South_Georgia|Etc/GMT+2","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Currie","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Oslo|Arctic/Longyearbyen","Europe/Oslo|Atlantic/Jan_Mayen","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Christmas|Etc/GMT-7","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Chuuk|Pacific/Truk","Pacific/Chuuk|Pacific/Yap","Pacific/Easter|Chile/EasterIsland","Pacific/Enderbury|Pacific/Kanton","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Palau|Etc/GMT-9","Pacific/Pohnpei|Pacific/Ponape","Pacific/Port_Moresby|Antarctica/DumontDUrville","Pacific/Port_Moresby|Etc/GMT-10","Pacific/Tarawa|Etc/GMT-12","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],"countries":["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Port_of_Spain America/Antigua","AI|America/Port_of_Spain America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Pacific/Auckland Antarctica/McMurdo","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla","AW|America/Curacao America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Port_of_Spain America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Brunei","BO|America/La_Paz","BQ|America/Curacao America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Blanc-Sablon America/Toronto America/Nipigon America/Thunder_Bay America/Iqaluit America/Pangnirtung America/Atikokan America/Winnipeg America/Rainy_River America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Creston America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver","CC|Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Curacao","CX|Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Copenhagen","DM|America/Port_of_Spain America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Chuuk Pacific/Pohnpei Pacific/Kosrae","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Port_of_Spain America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Accra","GI|Europe/Gibraltar","GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Port_of_Spain America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Enderbury Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Port_of_Spain America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Port_of_Spain America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Port_of_Spain America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Majuro Pacific/Kwajalein","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd Asia/Choibalsan","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Port_of_Spain America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Mazatlan America/Chihuahua America/Ojinaga America/Hermosillo America/Tijuana America/Bahia_Banderas","MY|Asia/Kuala_Lumpur Asia/Kuching","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Amsterdam","NO|Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Volgograd Europe/Astrakhan Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Oslo Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Curacao America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Indian/Reunion Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Port_of_Spain","TV|Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kiev Europe/Uzhgorod Europe/Zaporozhye","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Wake Pacific/Honolulu Pacific/Midway","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Port_of_Spain America/St_Vincent","VE|America/Caracas","VG|America/Port_of_Spain America/Tortola","VI|America/Port_of_Spain America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"]}')},4147:Y=>{"use strict";Y.exports={i8:"10.5.0"}}},Y=>{Y(Y.s=5882)}]); \ No newline at end of file diff --git a/dist/apps/user-profile/main.23eb62dee0f373c6.js b/dist/apps/user-profile/main.23eb62dee0f373c6.js deleted file mode 100644 index 66d5ba1b1..000000000 --- a/dist/apps/user-profile/main.23eb62dee0f373c6.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkuser_profile=self.webpackChunkuser_profile||[]).push([[179],{5882:(Y,G,E)=>{"use strict";var T=E(6895),n=E(4650);class H extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class D extends H{static makeCurrent(){(0,T.HT)(new D)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function O(){return L=L||document.querySelector("base"),L?L.getAttribute("href"):null}();return null==e?null:function U(i){B=B||document.createElement("a"),B.setAttribute("href",i);const a=B.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){L=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,T.Mx)(document.cookie,a)}}let B,L=null;const W=new n.OlP("TRANSITION_ID"),te=[{provide:n.ip1,useFactory:function ee(i,a,e){return()=>{e.get(n.CZH).donePromise.then(()=>{const t=(0,T.q)(),r=a.querySelectorAll(`style[ng-transition="${i}"]`);for(let d=0;d{class i{build(){return new XMLHttpRequest}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const oe=new n.OlP("EventManagerPlugins");let re=(()=>{class i{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let d=0;d{class i{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),t.add(r))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),xe=(()=>{class i extends we{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(d=>{const u=this._doc.createElement("style");u.textContent=d,r.push(t.appendChild(u))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Xe),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Xe))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function Xe(i){(0,T.q)().remove(i)}const et={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ke=/%COMP%/g;function me(i,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return i;!1===i(a)&&(a.preventDefault(),a.returnValue=!1)}}let Me=(()=>{class i{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new $e(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case n.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new cn(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case n.ifc.ShadowDom:return new tt(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=me(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(re),n.LFG(xe),n.LFG(n.AFp))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class $e{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(et[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){(Ft(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(Ft(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,r){if(r){e=r+":"+e;const d=et[r];d?a.setAttributeNS(d,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const r=et[t];r?a.removeAttributeNS(r,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,r){r&(n.JOm.DashCase|n.JOm.Important)?a.style.setProperty(e,t,r&n.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&n.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,_e(t)):this.eventManager.addEventListener(a,e,_e(t))}}function Ft(i){return"TEMPLATE"===i.tagName&&void 0!==i.content}class cn extends $e{constructor(a,e,t,r){super(a),this.component=t;const d=me(r+"-"+t.id,t.styles,[]);e.addStyles(d),this.contentAttr=function ze(i){return"_ngcontent-%COMP%".replace(ke,i)}(r+"-"+t.id),this.hostAttr=function Fe(i){return"_nghost-%COMP%".replace(ke,i)}(r+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class tt extends $e{constructor(a,e,t,r){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const d=me(r.id,r.styles,[]);for(let u=0;u{class i extends be{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Oi=["alt","control","meta","shift"],dn={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Gi={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Tn={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey};let Ii=(()=>{class i extends be{constructor(e){super(e)}supports(e){return null!=i.parseEventName(e)}addEventListener(e,t,r){const d=i.parseEventName(t),u=i.eventCallback(d.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,d.domEventName,u))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const d=i._normalizeKey(t.pop());let u="";if(Oi.forEach(o=>{const s=t.indexOf(o);s>-1&&(t.splice(s,1),u+=o+".")}),u+=d,0!=t.length||0===d.length)return null;const c={};return c.domEventName=r,c.fullKey=u,c}static getEventFullKey(e){let t="",r=function hn(i){let a=i.key;if(null==a){if(a=i.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===i.location&&Gi.hasOwnProperty(a)&&(a=Gi[a]))}return dn[a]||a}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Oi.forEach(d=>{d!=r&&(0,Tn[d])(e)&&(t+=d+".")}),t+=r,t}static eventCallback(e,t,r){return d=>{i.getEventFullKey(d)===e&&r.runGuarded(()=>t(d))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const ye=(0,n.eFA)(n._c5,"browser",[{provide:n.Lbi,useValue:T.bD},{provide:n.g9A,useValue:function Cr(){D.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function pe(){return(0,n.RDi)(document),document},deps:[]}]),Ye=new n.OlP(""),lt=[{provide:n.rWj,useClass:class ae{addToWindow(a){n.dqk.getAngularTestability=(t,r=!0)=>{const d=a.findTestabilityInTree(t,r);if(null==d)throw new Error("Could not find testability for element.");return d},n.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),n.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),n.dqk.frameworkStabilizers||(n.dqk.frameworkStabilizers=[]),n.dqk.frameworkStabilizers.push(t=>{const r=n.dqk.getAllAngularTestabilities();let d=r.length,u=!1;const c=function(o){u=u||o,d--,0==d&&t(u)};r.forEach(function(o){o.whenStable(c)})})}findTestabilityInTree(a,e,t){return null==e?null:a.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null)}},deps:[]},{provide:n.lri,useClass:n.dDg,deps:[n.R0b,n.eoX,n.rWj]},{provide:n.dDg,useClass:n.dDg,deps:[n.R0b,n.eoX,n.rWj]}],ct=[{provide:n.zSh,useValue:"root"},{provide:n.qLn,useFactory:function zi(){return new n.qLn},deps:[]},{provide:oe,useClass:ai,multi:!0,deps:[T.K0,n.R0b,n.Lbi]},{provide:oe,useClass:Ii,multi:!0,deps:[T.K0]},{provide:Me,useClass:Me,deps:[re,xe,n.AFp]},{provide:n.FYo,useExisting:Me},{provide:we,useExisting:xe},{provide:xe,useClass:xe,deps:[T.K0]},{provide:re,useClass:re,deps:[oe,n.R0b]},{provide:T.JF,useClass:ue,deps:[]},[]];let Zt=(()=>{class i{constructor(e){}static withServerTransition(e){return{ngModule:i,providers:[{provide:n.AFp,useValue:e.appId},{provide:W,useExisting:n.AFp},te]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ye,12))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[...ct,...lt],imports:[T.ez,n.hGG]}),i})(),ce=(()=>{class i{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new e:function Oe(){return new ce((0,n.LFG)(T.K0))}(),t},providedIn:"root"}),i})();typeof window<"u"&&window;let ei=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new(e||i):n.LFG(ft),t},providedIn:"root"}),i})(),ft=(()=>{class i extends ei{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case n.q3G.NONE:return t;case n.q3G.HTML:return(0,n.qzn)(t,"HTML")?(0,n.z3N)(t):(0,n.EiD)(this._doc,String(t)).toString();case n.q3G.STYLE:return(0,n.qzn)(t,"Style")?(0,n.z3N)(t):t;case n.q3G.SCRIPT:if((0,n.qzn)(t,"Script"))return(0,n.z3N)(t);throw new Error("unsafe value used in a script context");case n.q3G.URL:return(0,n.qzn)(t,"URL")?(0,n.z3N)(t):(0,n.mCW)(String(t));case n.q3G.RESOURCE_URL:if((0,n.qzn)(t,"ResourceURL"))return(0,n.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,n.JVY)(e)}bypassSecurityTrustStyle(e){return(0,n.L6k)(e)}bypassSecurityTrustScript(e){return(0,n.eBb)(e)}bypassSecurityTrustUrl(e){return(0,n.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,n.pB0)(e)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new e:function nt(i){return new ft(i.get(T.K0))}(n.LFG(n.zs3)),t},providedIn:"root"}),i})();var Ee=E(9646),yn=E(9751),wn=E(576);function $t(i){return!!i&&(i instanceof yn.y||(0,wn.m)(i.lift)&&(0,wn.m)(i.subscribe))}var en=E(4742),oi=E(8421),_n=E(3269),at=E(5403),$i=E(3268),er=E(1810);function ma(...i){const a=(0,_n.jO)(i),{args:e,keys:t}=(0,en.D)(i),r=new yn.y(d=>{const{length:u}=e;if(!u)return void d.complete();const c=new Array(u);let o=u,s=u;for(let l=0;l{h||(h=!0,s--),c[l]=p},()=>o--,void 0,()=>{(!o||!h)&&(s||d.next(t?(0,er.n)(t,c):c),d.complete())}))}});return a?r.pipe((0,$i.Z)(a)):r}var tr=E(7272);function Rn(i){return new yn.y(a=>{(0,oi.Xf)(i()).subscribe(a)})}var ht=E(5698),Le=E(7579),Zi=E(6063);class Kr extends Le.x{constructor(a=1/0,e=1/0,t=Zi.l){super(),this._bufferSize=a,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,e)}next(a){const{isStopped:e,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:d,_windowTime:u}=this;e||(t.push(a),!r&&t.push(d.now()+u)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(a),{_infiniteTimeWindow:t,_buffer:r}=this,d=r.slice();for(let u=0;unew Kr(t,a,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}var Mt=E(4004),Fr=E(4351),An=E(3900);class ea{}let ga=(()=>{class i extends ea{getTranslation(e){return(0,Ee.of)({})}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class _a{}let xr=(()=>{class i{handle(e){return e.key}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function Yn(i,a){if(i===a)return!0;if(null===i||null===a)return!1;if(i!=i&&a!=a)return!0;let r,d,u,e=typeof i;if(e==typeof a&&"object"==e){if(!Array.isArray(i)){if(Array.isArray(a))return!1;for(d in u=Object.create(null),i){if(!Yn(i[d],a[d]))return!1;u[d]=!0}for(d in a)if(!(d in u)&&typeof a[d]<"u")return!1;return!0}if(!Array.isArray(a))return!1;if((r=i.length)==a.length){for(d=0;d{fi(a[t])?t in i?e[t]=Ji(i[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class cr{}let na=(()=>{class i extends cr{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!ta(e)||!ta(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(r,d)=>{let u=this.getValue(t,d);return ta(u)?u:r}):e}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class Sr{}let Qi=(()=>{class i extends Sr{compile(e,t){return e}compileTranslations(e,t){return e}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class ba{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new n.vpe,this.onLangChange=new n.vpe,this.onDefaultLangChange=new n.vpe}}const ho=new n.OlP("USE_STORE"),bs=new n.OlP("USE_DEFAULT_LANG"),Aa=new n.OlP("DEFAULT_LANGUAGE"),dr=new n.OlP("USE_EXTEND");let tn=(()=>{class i{constructor(e,t,r,d,u,c=!0,o=!1,s=!1,l){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=d,this.missingTranslationHandler=u,this.useDefaultLang=c,this.isolate=o,this.extend=s,this.pending=!1,this._onTranslationChange=new n.vpe,this._onLangChange=new n.vpe,this._onDefaultLangChange=new n.vpe,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,ht.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Ee.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,ht.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Ee.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(bn(1),(0,ht.q)(1));return this.loadingTranslations=t.pipe((0,Mt.U)(r=>this.compiler.compileTranslations(r,e)),bn(1),(0,ht.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Ji(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let d;if(t instanceof Array){let u={},c=!1;for(let o of t)u[o]=this.getParsedResult(e,o,r),$t(u[o])&&(c=!0);return c?ma(t.map(s=>$t(u[s])?u[s]:(0,Ee.of)(u[s]))).pipe((0,Mt.U)(s=>{let l={};return s.forEach((h,p)=>{l[t[p]]=h}),l})):u}if(e&&(d=this.parser.interpolate(this.parser.getValue(e,t),r)),typeof d>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(d=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),typeof d>"u"){let u={key:t,translateService:this};typeof r<"u"&&(u.interpolateParams=r),d=this.missingTranslationHandler.handle(u)}return typeof d<"u"?d:t}get(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Fr.b)(r=>$t(r=this.getParsedResult(r,e,t))?r:(0,Ee.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return $t(r)?r:(0,Ee.of)(r)}}getStreamOnTranslationChange(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');return(0,tr.z)(Rn(()=>this.get(e,t)),this.onTranslationChange.pipe((0,An.w)(r=>{const d=this.getParsedResult(r.translations,e,t);return"function"==typeof d.subscribe?d:(0,Ee.of)(d)})))}stream(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');return(0,tr.z)(Rn(()=>this.get(e,t)),this.onLangChange.pipe((0,An.w)(r=>{const d=this.getParsedResult(r.translations,e,t);return $t(d)?d:(0,Ee.of)(d)})))}instant(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if($t(r)){if(e instanceof Array){let d={};return e.forEach((u,c)=>{d[e[c]]=e[c]}),d}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(ba),n.LFG(ea),n.LFG(Sr),n.LFG(cr),n.LFG(_a),n.LFG(bs),n.LFG(ho),n.LFG(dr),n.LFG(Aa))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Ke=(()=>{class i{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let d=u=>{this.value=void 0!==u?u:e,this.lastKey=e,this._ref.markForCheck()};if(r){let u=this.translate.getParsedResult(r,e,t);$t(u.subscribe)?u.subscribe(d):d(u)}this.translate.get(e,t).subscribe(d)}transform(e,...t){if(!e||!e.length)return e;if(Yn(e,this.lastKey)&&Yn(t,this.lastParams))return this.value;let r;if(ta(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let d=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(d)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(d=>{this.lastKey&&d.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,d.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(d=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,d.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tn,16),n.Y36(n.sBO,16))},i.\u0275pipe=n.Yjl({name:"translate",type:i,pure:!1}),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),po=(()=>{class i{static forRoot(e={}){return{ngModule:i,providers:[e.loader||{provide:ea,useClass:ga},e.compiler||{provide:Sr,useClass:Qi},e.parser||{provide:cr,useClass:na},e.missingTranslationHandler||{provide:_a,useClass:xr},ba,{provide:ho,useValue:e.isolate},{provide:bs,useValue:e.useDefaultLang},{provide:dr,useValue:e.extend},{provide:Aa,useValue:e.defaultLanguage},tn]}}static forChild(e={}){return{ngModule:i,providers:[e.loader||{provide:ea,useClass:ga},e.compiler||{provide:Sr,useClass:Qi},e.parser||{provide:cr,useClass:na},e.missingTranslationHandler||{provide:_a,useClass:xr},{provide:ho,useValue:e.isolate},{provide:bs,useValue:e.useDefaultLang},{provide:dr,useValue:e.extend},{provide:Aa,useValue:e.defaultLanguage},tn]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),Dd=(()=>{class i extends tn{instant(e,t){return String(super.instant(e,t))}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var C=E(529);class Wn{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const Vn=new n.OlP("basePath");class It{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let jn=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}convertAttributeToNonunique(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}convertAttributeToUnique(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}createAttributeDefinition(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteAttributeDefinition(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteAttributeDefinitions(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attributes[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllAttributeDefinitions(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAttribute(e,t,r,d,u,c,o,s,l,h,p,m=!1,g="body",f=!1,w){let N=new C.LE({encoder:this.encoder});null!=e&&(N=this.addToHttpParams(N,e,"attributeName")),null!=t&&(N=this.addToHttpParams(N,t,"attributeId")),null!=r&&(N=this.addToHttpParams(N,r,"facility")),null!=d&&(N=this.addToHttpParams(N,d,"user")),null!=u&&(N=this.addToHttpParams(N,u,"vo")),null!=c&&(N=this.addToHttpParams(N,c,"resource")),null!=o&&(N=this.addToHttpParams(N,o,"member")),null!=s&&(N=this.addToHttpParams(N,s,"group")),null!=l&&(N=this.addToHttpParams(N,l,"host")),null!=h&&(N=this.addToHttpParams(N,h,"userExtSource")),null!=p&&(N=this.addToHttpParams(N,p,"key"));let Pe,se=this.defaultHeaders;Pe=this.configuration.lookupCredential("BasicAuth"),Pe&&(se=se.set("Authorization","Basic "+Pe)),Pe=this.configuration.lookupCredential("BearerAuth"),Pe&&(se=se.set("Authorization","Bearer "+Pe));let ot=w&&w.httpHeaderAccept;void 0===ot&&(ot=this.configuration.selectHeaderAccept(["application/json"])),void 0!==ot&&(se=se.set("Accept",ot));let Mi=w&&w.context;void 0===Mi&&(Mi=new C.qT);let Pi="json";ot&&(Pi=ot.startsWith("text")?"text":this.configuration.isJsonMime(ot)?"json":"blob");let Fi=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(m){let or=new URL(Fi),Xu=or.pathname.split("/");Xu[1]="non",or.pathname=Xu.join("/"),Fi=or.toString()}return this.httpClient.get(Fi,{context:Mi,params:N,responseType:Pi,withCredentials:this.configuration.withCredentials,headers:se,observe:g,reportProgress:f})}getAttributeDefinitionById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeDefinitionByName(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeDefinitionsByNamespace(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeModulesDependenciesForAttributeGraphText(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"format")),null!=t&&(o=this.addToHttpParams(o,t,"attrName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAttributeModulesDependenciesGraphText(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributePolicyCollections(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeRights(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeRules(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributesDefinitionWithRights(e,t,r,d,u,c,o,s,l=!1,h="body",p=!1,m){let g=new C.LE({encoder:this.encoder});null!=e&&(g=this.addToHttpParams(g,e,"member")),null!=t&&(g=this.addToHttpParams(g,t,"user")),null!=r&&(g=this.addToHttpParams(g,r,"vo")),null!=d&&(g=this.addToHttpParams(g,d,"group")),null!=u&&(g=this.addToHttpParams(g,u,"resource")),null!=c&&(g=this.addToHttpParams(g,c,"facility")),null!=o&&(g=this.addToHttpParams(g,o,"host")),null!=s&&(g=this.addToHttpParams(g,s,"userExtSource"));let w,f=this.defaultHeaders;w=this.configuration.lookupCredential("BasicAuth"),w&&(f=f.set("Authorization","Basic "+w)),w=this.configuration.lookupCredential("BearerAuth"),w&&(f=f.set("Authorization","Bearer "+w));let N=m&&m.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let se=m&&m.context;void 0===se&&(se=new C.qT);let Pe="json";N&&(Pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob");let ot=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(l){let Mi=new URL(ot),Pi=Mi.pathname.split("/");Pi[1]="non",Mi.pathname=Pi.join("/"),ot=Mi.toString()}return this.httpClient.get(ot,{context:se,params:g,responseType:Pe,withCredentials:this.configuration.withCredentials,headers:f,observe:h,reportProgress:p})}getEntitylessAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"key")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEntitylessAttributesByKey(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getEntitylessAttributesByName(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getEntitylessAttributesWithKeys(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attrName")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"keys[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEntitylessKeys(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFacilityAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getFacilityAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getFacilityAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFacilityAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getFacilityResourceUserMemberAttributes(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),null!=r&&(l=this.addToHttpParams(l,r,"user")),null!=d&&(l=this.addToHttpParams(l,d,"member"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getFacilityUserAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupResourceAttributeById(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attributeId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getGroupResourceAttributeByName(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attributeName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getGroupResourceAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getHostAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getHostAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getHostAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getHostAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getIdpAttributeDefinitions(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getLogins(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberAndUserAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"workWithUserAttributes"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberAndUserAttributesByNames(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"attrNames[]")}),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberGroupAndUserAttributesByNames(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getMemberGroupAttributeById(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"attributeId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberGroupAttributeByName(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"attributeName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberGroupAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberGroupAttributesByNames(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attrNames[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getMemberResourceAttributeById(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attributeId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberResourceAttributeByName(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attributeName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberResourceAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesDefinition(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesFacility(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesFacilityService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesFacilityServices(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")}),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesGroupResourceService(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"group"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getRequiredAttributesHostService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"host"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"workWithUserAttributes"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesMemberGroup(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"service")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"group")),null!=d&&(h=this.addToHttpParams(h,d,"member")),null!=u&&(h=this.addToHttpParams(h,u,"workWithUserAttributes"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.get(N,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}getRequiredAttributesMemberGroupService(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service")),null!=t&&(l=this.addToHttpParams(l,t,"group")),null!=r&&(l=this.addToHttpParams(l,r,"member")),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getRequiredAttributesMemberResource(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),null!=r&&(l=this.addToHttpParams(l,r,"member")),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getRequiredAttributesResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesResourceService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesResourceServices(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")}),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesUserFacility(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesVoService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourceAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceGroupAndGroupAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==r)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"workWithGroupAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==d)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithGroupAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getResourceGroupAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceGroupMemberAttributesByNames(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource")),null!=t&&(l=this.addToHttpParams(l,t,"group")),null!=r&&(l=this.addToHttpParams(l,r,"member")),d&&d.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")});let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getUserAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSourceAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSourceAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserFacilityAttributeById(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility")),null!=r&&(s=this.addToHttpParams(s,r,"attributeId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getUserFacilityAttributeByName(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility")),null!=r&&(s=this.addToHttpParams(s,r,"attributeName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getUserFacilityAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getVoAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getVoAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getVoAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeAttributesForFacilityResourceGroupUserMember(e,t,r,d,u,c,o=!1,s="body",l=!1,h){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let p=new C.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"facility")),null!=t&&(p=this.addToHttpParams(p,t,"resource")),null!=r&&(p=this.addToHttpParams(p,r,"group")),null!=d&&(p=this.addToHttpParams(p,d,"user")),null!=u&&(p=this.addToHttpParams(p,u,"member")),c&&c.forEach(Pe=>{p=this.addToHttpParams(p,Pe,"attributes[]")});let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=h&&h.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=h&&h.context;void 0===w&&(w=new C.qT);let N="json";f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let se=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(o){let Pe=new URL(se),ot=Pe.pathname.split("/");ot[1]="non",Pe.pathname=ot.join("/"),se=Pe.toString()}return this.httpClient.post(se,null,{context:w,params:p,responseType:N,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:l})}removeAttributesForFacilityResourceUserMember(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"user")),null!=d&&(h=this.addToHttpParams(h,d,"member")),u&&u.forEach(se=>{h=this.addToHttpParams(h,se,"attributes[]")});let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}removeEntitylessAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"key")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeFacilityAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeFacilityAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupResourceAttribute(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attribute"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeGroupResourceAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attributes[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==d)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attributes[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithGroupAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}removeHostAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeHostAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeMemberAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeMemberAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeMemberAttributesWorkWithUserAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"attributes[]")}),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeMemberGroupAttribute(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"attribute"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeMemberGroupAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attributes[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attributes[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}removeMemberResourceAttribute(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attribute"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeMemberResourceAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attributes[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeResourceAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeResourceAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUesAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserExtSourceAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserFacilityAttribute(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility")),null!=r&&(s=this.addToHttpParams(s,r,"attribute"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeUserFacilityAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attributes[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeVoAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeVoAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}setAttributeActionCriticality(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==r)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeDefinition")),null!=t&&(s=this.addToHttpParams(s,t,"action")),null!=r&&(s=this.addToHttpParams(s,r,"critical"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}setAttributePolicyCollections(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setAttributeRights(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setEntitylessAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityResourceGroupUserMemberAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityResourceUserMemberAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupResourceAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupResourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setHostAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setHostAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupWithUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAndUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberWithUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceGroupAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceGroupWithGroupAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserExtSourceAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserExtSourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserFacilityAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserFacilityAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setVoAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setVoAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateAttributeDefinition(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),As=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAllPolicies(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllRolesManagementRules(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAuthzAdminGroups(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"role")),null!=t&&(s=this.addToHttpParams(s,t,"complementaryObjectId")),null!=r&&(s=this.addToHttpParams(s,r,"complementaryObjectName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getAuthzRichAdmins(e,t,r,d,u,c,o=!1,s="body",l=!1,h){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==d)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let p=new C.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"role")),null!=t&&(p=this.addToHttpParams(p,t,"complementaryObjectId")),null!=r&&(p=this.addToHttpParams(p,r,"complementaryObjectName")),d&&d.forEach(Pe=>{p=this.addToHttpParams(p,Pe,"specificAttributes")}),null!=u&&(p=this.addToHttpParams(p,u,"allUserAttributes")),null!=c&&(p=this.addToHttpParams(p,c,"onlyDirectAdmins"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=h&&h.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=h&&h.context;void 0===w&&(w=new C.qT);let N="json";f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let se=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(o){let Pe=new URL(se),ot=Pe.pathname.split("/");ot[1]="non",Pe.pathname=ot.join("/"),se=Pe.toString()}return this.httpClient.get(se,{context:w,params:p,responseType:N,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:l})}getFacilitiesWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupRoleNames(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupRoles(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getLoggedUser(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getMembersWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getPerunPrincipal(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getPrincipalRoleNames(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getResourcesWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getSecurityTeamsWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserRoleNames(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserRoles(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}isFacilityAdmin(e,t=!1,r="body",d=!1,u){let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isGroupAdmin(e,t=!1,r="body",d=!1,u){let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isPerunAdmin(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}isVoAdmin(e,t=!1,r="body",d=!1,u){let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}keepAlive(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}loadAuthorizationComponents(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}refreshMfa(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}setRoleForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithGroupComplementaryObject(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithGroupComplementaryObjects(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithUserComplementaryObject(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithUserComplementaryObjects(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithGroupComplementaryObject(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithGroupComplementaryObjects(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithUserComplementaryObject(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithUserComplementaryObjects(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ys=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}changeConsentStatus(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"consent")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}evaluateConsentsForConsentHub(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"consentHub"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}evaluateConsentsForConsentHubs(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter consentHubs was null or undefined when calling evaluateConsentsForConsentHubs.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"consentHubs[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHubs`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}evaluateConsentsForService(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllConsentHubs(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllConsents(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/consentsManager/getAllConsents`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getConsentById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentForUserAndConsentHub(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==r)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"consentHub")),null!=r&&(s=this.addToHttpParams(s,r,"status"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getConsentHubByFacility(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentHubById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentHubById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentHubByName(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"name"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentsForConsentHub(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"consentHub"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentsForConsentHubWithStatus(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"consentHub")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getConsentsForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentsForUserAndConsentHub(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"consentHub"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getConsentsForUserWithStatus(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}updateConsentHub(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/consentsManager/updateConsentHub`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),zr=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling addMember.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"member"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addMembers(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling addMembers.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"members[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}allowGroupToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}allowGroupsToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling allowGroupsToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupsToHierarchicalVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}canExtendMembershipInGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyMembers(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter sourceGroup was null or undefined when calling copyMembers.");if(null==t)throw new Error("Required parameter destinationGroups was null or undefined when calling copyMembers.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"sourceGroup")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"destinationGroups")}),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"members")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/groupsManager/copyMembers`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}createGroupUnion(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resultGroup")),null!=t&&(o=this.addToHttpParams(o,t,"operandGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}createGroupWithParentGroupNameDescription(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==t)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==r)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"parentGroup")),null!=t&&(s=this.addToHttpParams(s,t,"name")),null!=r&&(s=this.addToHttpParams(s,r,"description"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}createGroupWithVoNameDescription(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==t)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==r)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"name")),null!=r&&(s=this.addToHttpParams(s,r,"description"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}deleteGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deleteGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/deleteGroups`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}disallowGroupToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}disallowGroupsToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling disallowGroupsToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling disallowGroupsToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupsToHierarchicalVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}extendMembershipInGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}forceAllSubGroupsSynchronization(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}forceGroupStructureSynchronization(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}forceGroupSynchronization(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllAllowedGroupsToHierarchicalVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getAllGroups`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllGroupsFromAllVos(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllMemberGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllRichGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attrNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllRichGroupsWithAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAllRichSubGroupsWithGroupAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==t)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"name"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getGroupByName`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupDirectMembersCount(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupDirectMembersCount.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupDirectMembersCount`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupMemberById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==t)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"member"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupMembersCount(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupMembersCountsByGroupStatus(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupMembersCountsByVoStatus(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupRichMembersByIds(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==t)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"members[]")}),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attrNames[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getGroupUnions(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==t)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"reverseDirection"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getGroupUnions`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupsByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsPage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getGroupsPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getGroupsWhereMemberIsActive(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getIndirectMembershipPaths(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getMemberGroups`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberRichGroupsWithAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getParentGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getParentGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getParentGroup`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichGroupByIdWithAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"groupId")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getSubgroupsPage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getVoAllAllowedGroupsToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"memberVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}isAllowedGroupToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}isGroupMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==t)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/isGroupMember`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}moveGroupWithDestinationGroupMovingGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"destinationGroup")),null!=e&&(o=this.addToHttpParams(o,e,"movingGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupUnion(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resultGroup")),null!=t&&(o=this.addToHttpParams(o,t,"operandGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMember.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"member"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeMembers(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"members[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}setGroupsMemberStatus(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==t)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==r)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"status"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}updateGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/updateGroup`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Er=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}canExtendMembership(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/canExtendMembership`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}createMemberForCandidate(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createMember/c`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createMemberForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createMember/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createMemberFromExtSource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createMember/extSource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createSpecificMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createSpecificMember`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createSponsoredMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createSponsoredMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createSponsoredMembersFromCSV(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"members[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}extendMembership(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findCompleteRichMembersByAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let s=new C.LE({encoder:this.encoder});e&&e.forEach(w=>{s=this.addToHttpParams(s,w,"attrsNames[]")}),null!=t&&(s=this.addToHttpParams(s,t,"searchString")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"allowedStatuses[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}findCompleteRichMembersForGroup(e,t,r,d,u,c,o=!1,s="body",l=!1,h){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==d)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let p=new C.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"group")),t&&t.forEach(Pe=>{p=this.addToHttpParams(p,Pe,"attrsNames[]")}),u&&u.forEach(Pe=>{p=this.addToHttpParams(p,Pe,"allowedStatuses[]")}),c&&c.forEach(Pe=>{p=this.addToHttpParams(p,Pe,"allowedGroupStatuses[]")}),null!=r&&(p=this.addToHttpParams(p,r,"searchString")),null!=d&&(p=this.addToHttpParams(p,d,"lookingInParentGroup"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=h&&h.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=h&&h.context;void 0===w&&(w=new C.qT);let N="json";f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let se=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`;if(o){let Pe=new URL(se),ot=Pe.pathname.split("/");ot[1]="non",Pe.pathname=ot.join("/"),se=Pe.toString()}return this.httpClient.get(se,{context:w,params:p,responseType:N,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:l})}findCompleteRichMembersForVo(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),t&&t.forEach(N=>{l=this.addToHttpParams(l,N,"attrsNames[]")}),d&&d.forEach(N=>{l=this.addToHttpParams(l,N,"allowedStatuses[]")}),null!=r&&(l=this.addToHttpParams(l,r,"searchString"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}findMembersInVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"searchString"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/findMembersInVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}findSponsoredCompleteRichMembersForVo(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==d)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),t&&t.forEach(N=>{l=this.addToHttpParams(l,N,"attrsNames[]")}),null!=r&&(l=this.addToHttpParams(l,r,"searchString")),null!=d&&(l=this.addToHttpParams(l,d,"onlySponsored"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getAllMembers(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/membersManager/getAllMembers`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllNamespacesRules(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllSponsoredMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllSponsoredMembersAndTheirSponsors(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getCompleteRichMembersForGroup(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==t)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"group")),r&&r.forEach(se=>{h=this.addToHttpParams(h,se,"allowedStatuses[]")}),d&&d.forEach(se=>{h=this.addToHttpParams(h,se,"allowedGroupStatuses[]")}),null!=t&&(h=this.addToHttpParams(h,t,"lookingInParentGroup")),u&&u.forEach(se=>{h=this.addToHttpParams(h,se,"attrsNames[]")});let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.get(N,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}getCompleteRichMembersForGroupResource(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==d)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attrsNames[]")}),d&&d.forEach(N=>{l=this.addToHttpParams(l,N,"allowedStatuses[]")});let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getCompleteRichMembersForVo(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"allowedStatuses[]")}),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attrsNames[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberByExtSourceNameAndExtLogin(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"extLogin")),null!=r&&(s=this.addToHttpParams(s,r,"extSourceName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getMemberById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberByUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getMemberByUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMembers(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getMembers`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMembersByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getMembersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMembersByUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getMembersByUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMembersCount(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getMembersCount`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMembersPage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getMembersPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getMembersWithStatusCount(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getMembersCount/status`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRichMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getRichMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichMemberWithAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichMembersByIds(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"ids[]")}),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRichMembersNoUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSponsoredMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSponsoredMembersAndTheirSponsors(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getSponsorsByMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getSponsors/member`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getSponsorsByVo(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),null!=t&&(l=this.addToHttpParams(l,t,"extSourceName")),null!=r&&(l=this.addToHttpParams(l,r,"extLogin")),d&&d.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")});let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/membersManager/getSponsors/vo`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}moveMembership(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==t)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==r)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"sourceUser")),null!=r&&(s=this.addToHttpParams(s,r,"targetUser"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeSponsor(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeSponsors(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeSponsors.");if(null==t)throw new Error("Required parameter sponsorIds was null or undefined when calling removeSponsors.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"sponsorIds")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsors`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}sendAccountActivationLinkEmail(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==r)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==d)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"namespace")),null!=r&&(l=this.addToHttpParams(l,r,"emailAttributeURN")),null!=d&&(l=this.addToHttpParams(l,d,"language"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}sendPasswordResetLinkEmail(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==r)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==d)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"member")),null!=t&&(h=this.addToHttpParams(h,t,"namespace")),null!=r&&(h=this.addToHttpParams(h,r,"emailAttributeURN")),null!=d&&(h=this.addToHttpParams(h,d,"language")),null!=u&&(h=this.addToHttpParams(h,u,"baseUrl"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}setSponsoredMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/setSponsoredMember`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setSponsorshipForMember(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"sponsoredMember")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor")),null!=r&&(s=this.addToHttpParams(s,r,"validityTo"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}setStatus(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling setStatus.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}sponsorMember(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor")),null!=r&&(s=this.addToHttpParams(s,r,"validityTo"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}sponsorMembers(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter members was null or undefined when calling sponsorMembers.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMembers.");let s=new C.LE({encoder:this.encoder});e&&e.forEach(w=>{s=this.addToHttpParams(s,w,"members[]")}),null!=t&&(s=this.addToHttpParams(s,t,"sponsor")),null!=r&&(s=this.addToHttpParams(s,r,"validityTo"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMembers`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}updateSponsorshipValidity(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor")),null!=r&&(s=this.addToHttpParams(s,r,"validityTo"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}validateMemberAsync(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),fo=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}sentMessageToRTWithMemberQueue(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"memberId")),null!=t&&(l=this.addToHttpParams(l,t,"queue")),null!=r&&(l=this.addToHttpParams(l,r,"subject")),null!=d&&(l=this.addToHttpParams(l,d,"text"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}sentMessageToRTWithQueue(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"queue")),null!=t&&(s=this.addToHttpParams(s,t,"subject")),null!=r&&(s=this.addToHttpParams(s,r,"text"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}sentMessageToRTWithVo(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"voId")),null!=t&&(s=this.addToHttpParams(s,t,"subject")),null!=r&&(s=this.addToHttpParams(s,r,"text"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"voId")),null!=t&&(l=this.addToHttpParams(l,t,"queue")),null!=r&&(l=this.addToHttpParams(l,r,"subject")),null!=d&&(l=this.addToHttpParams(l,d,"text"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),oc=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addApplicationMailForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}addApplicationMailForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}addGroupsToAutoRegistration(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"groups[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}approveApplication(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}checkForSimilarRichIdentities(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.post(h,null,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}checkForSimilarUsersWithAuthInfo(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.post(h,null,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}consolidate(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/consolidate`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}consolidateIdentityUsingToken(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}copyFormFromGroupToGroup(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromGroup")),null!=t&&(o=this.addToHttpParams(o,t,"toGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyFormFromGroupToVo(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromGroup")),null!=t&&(o=this.addToHttpParams(o,t,"toVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyFormFromVoToGroup(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromVo")),null!=t&&(o=this.addToHttpParams(o,t,"toGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyFormFromVoToVo(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromVo")),null!=t&&(o=this.addToHttpParams(o,t,"toVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyMailsFromGroupToGroup(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromGroup")),null!=t&&(o=this.addToHttpParams(o,t,"toGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyMailsFromGroupToVo(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromGroup")),null!=t&&(o=this.addToHttpParams(o,t,"toVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyMailsFromVoToGroup(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromVo")),null!=t&&(o=this.addToHttpParams(o,t,"toGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyMailsFromVoToVo(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromVo")),null!=t&&(o=this.addToHttpParams(o,t,"toVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}createApplicationFormInGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}createApplicationFormInVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteApplication(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteApplicationMailForGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"id"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deleteApplicationMailForVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"id"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deleteGroupsFromAutoRegistration(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"groups[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getApplicationById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getApplicationDataById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getApplicationMailsForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getApplicationMailsForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getApplicationsForGroup(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group")),t&&t.forEach(N=>{l=this.addToHttpParams(l,N,"state[]")}),null!=r&&(l=this.addToHttpParams(l,r,"dateFrom")),null!=d&&(l=this.addToHttpParams(l,d,"dateTo"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getApplicationsForMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getApplicationsForVo(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),t&&t.forEach(N=>{l=this.addToHttpParams(l,N,"state[]")}),null!=r&&(l=this.addToHttpParams(l,r,"dateFrom")),null!=d&&(l=this.addToHttpParams(l,d,"dateTo"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getApplicationsPage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getConsolidatorToken(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getFormItemsForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFormItemsForGroupWithType(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"type"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getFormItemsForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFormItemsForVoWithType(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"type"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupApplicationForm(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsToAutoRegistration(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoApplicationForm(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}rejectApplication(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"id")),null!=t&&(o=this.addToHttpParams(o,t,"reason"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}sendInvitation(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let l=new C.LE({encoder:this.encoder});null!=r&&(l=this.addToHttpParams(l,r,"voId")),null!=d&&(l=this.addToHttpParams(l,d,"name")),null!=e&&(l=this.addToHttpParams(l,e,"email")),null!=t&&(l=this.addToHttpParams(l,t,"language"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}sendInvitationForGroup(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let h=new C.LE({encoder:this.encoder});null!=r&&(h=this.addToHttpParams(h,r,"voId")),null!=d&&(h=this.addToHttpParams(h,d,"groupId")),null!=u&&(h=this.addToHttpParams(h,u,"name")),null!=e&&(h=this.addToHttpParams(h,e,"email")),null!=t&&(h=this.addToHttpParams(h,t,"language"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}sendInvitationGroupToExistingUser(e,t,r,d=!1,u="body",c=!1,o){let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userId")),null!=t&&(s=this.addToHttpParams(s,t,"voId")),null!=r&&(s=this.addToHttpParams(s,r,"groupId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}sendInvitationToExistingUser(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userId")),null!=t&&(o=this.addToHttpParams(o,t,"voId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}sendInvitationsFromCsv(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}sendMessage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/sendMessage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setSendingEnabled(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}submitApplication(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/submitApplication`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateApplicationMail(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateForm(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateForm`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateFormItemData(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItemData`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateFormItemsData(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateFormItemsForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateFormItemsForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}verifyApplication(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ia=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}activateGroupResourceAssignment(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"async"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}addAdminToGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addAdminToUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addResourceSelfServiceGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addResourceSelfServiceUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}allowGroupsToResources(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let s=new C.LE({encoder:this.encoder});e&&e.forEach(w=>{s=this.addToHttpParams(s,w,"groups[]")}),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"resources[]")}),null!=r&&(s=this.addToHttpParams(s,r,"async"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}assignGroupToResource(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"group")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"async")),null!=d&&(h=this.addToHttpParams(h,d,"assignInactive")),null!=u&&(h=this.addToHttpParams(h,u,"autoAssignSubgroups"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}assignGroupToResources(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"group")),t&&t.forEach(se=>{h=this.addToHttpParams(h,se,"resources[]")}),null!=r&&(h=this.addToHttpParams(h,r,"async")),null!=d&&(h=this.addToHttpParams(h,d,"assignInactive")),null!=u&&(h=this.addToHttpParams(h,u,"autoAssignSubgroups"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}assignGroupsToResource(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let h=new C.LE({encoder:this.encoder});e&&e.forEach(se=>{h=this.addToHttpParams(h,se,"groups[]")}),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"async")),null!=d&&(h=this.addToHttpParams(h,d,"assignInactive")),null!=u&&(h=this.addToHttpParams(h,u,"autoAssignSubgroups"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}assignResourceTagToResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}assignResourceTagsToResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAssignResourceTagsToResource was null or undefined when calling assignResourceTagsToResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/assignResourceTagsToResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}assignService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling assignService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"service"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}assignServices(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling assignServices.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}assignServicesPackage(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"servicesPackage"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/copyResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createResource(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==r)throw new Error("Required parameter name was null or undefined when calling createResource.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),null!=t&&(l=this.addToHttpParams(l,t,"facility")),null!=r&&(l=this.addToHttpParams(l,r,"name")),null!=d&&(l=this.addToHttpParams(l,d,"description"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}createResourceTagWithResourceTag(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createResourceTagWithTagName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"tagName")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deactivateGroupResourceAssignment(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deleteAllResources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteAllResourcesTagsForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteResourceTag(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getAdminGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAdmins(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==t)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"onlyDirectAdmins"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getAdmins`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAllResources(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/resourcesManager/getAllResources`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllResourcesByResourceTag(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getAllResourcesTagsForResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllResourcesTagsForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllResourcesWhereUserIsAdmin(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllowedMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllowedResources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllowedUsersOfResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedGroups(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"member"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAssignedMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedMembersWithStatus(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedResourcesWithGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedResourcesWithMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedResourcesWithStatus(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichResourcesWithGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichResourcesWithMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichResourcesWithMemberService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"service"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAssignedServicesToResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getBansForMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getBansForMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getBansForResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getBansForResource`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getEnrichedBansForResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getEnrichedBansForResource.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForResource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedBansForUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getEnrichedBansForUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedResourceById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"id")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedResourcesForFacility(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedResourcesForVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getFacility(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getFacility`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupAssignments(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMailingServiceRichResourcesWithMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourceAssignments(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceBan(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getBan`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceBanById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getBanById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourceById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getResourceById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourceByName(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==r)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"facility")),null!=r&&(s=this.addToHttpParams(s,r,"name"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/resourcesManager/getResourceByName`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getResources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourcesByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourcesCountForAll(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getResourcesCountForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourcesFromVoWhereUserIsAdmin(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourcesWhereGroupIsAdmin(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"vo")),null!=r&&(s=this.addToHttpParams(s,r,"group"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getResourcesWhereUserIsAdmin(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"vo")),null!=r&&(s=this.addToHttpParams(s,r,"user"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getRichAdmins(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==t)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==r)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==d)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource")),t&&t.forEach(N=>{l=this.addToHttpParams(l,N,"specificAttributes")}),null!=r&&(l=this.addToHttpParams(l,r,"allUserAttributes")),null!=d&&(l=this.addToHttpParams(l,d,"onlyDirectAdmins"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getRichResourceById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichResources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getRichResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichResourcesByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getVo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}removeAllResourceTagsFromResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}removeBanByMemberAndResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupAdminResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupFromResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupFromResources(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"resources[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupsFromResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeResourceBanById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}removeResourceSelfServiceGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeResourceSelfServiceUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeResourceTagFromResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}removeResourceTagsFromResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputRemoveResourceTagsFromResource was null or undefined when calling removeResourceTagsFromResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/removeResourceTagsFromResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}removeService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling removeService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"service"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeServiceForResources(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeServiceForResources.");if(null==t)throw new Error("Required parameter service was null or undefined when calling removeServiceForResources.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"resources[]")}),null!=t&&(o=this.addToHttpParams(o,t,"service"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService/forResources`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeServices(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling removeServices.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeServicesPackage(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"servicesPackage"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserAdminResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}setResourceBan(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/setBan`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unallowGroupsFromResources(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"resources[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}updateResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/updateResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateResourceBan(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/updateBan`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateResourceTag(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),li=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addSpecificUserOwner(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addUserExtSource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}anonymizeUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}changeNonAuthzPasswordByToken(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}changePasswordForLogin(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}changePasswordForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}checkPasswordResetRequestByTokenIsValid(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}checkPasswordStrength(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createAlternativePassword(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createServiceUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteAlternativePassword(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==r)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"loginNamespace")),null!=r&&(s=this.addToHttpParams(s,r,"passwordId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}deletePasswordForLogin(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deletePasswordForUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deleteUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}findRichUsers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findRichUsersWithAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"searchString")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrsNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}findUsers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}generateAccountForName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"namespace")),null!=t&&(o=this.addToHttpParams(o,t,"name"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAllRichUsersWithAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichResourcesForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsForFacilityWhereUserIsActive(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupsForResourceWhereUserIsActive(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupsInVoWhereUserIsAdmin(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupsWhereUserIsAdmin(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getPendingPreferredEmailChanges(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUserExtSources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUserWithAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersWithAttributesByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersWithoutVoWithAttributes(e,t=!1,r="body",d=!1,u){let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attrsNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSpecificUsersByUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSponsorsForMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getSponsorsForMemberByVoAndLogin(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),null!=t&&(l=this.addToHttpParams(l,t,"extSourceName")),null!=r&&(l=this.addToHttpParams(l,r,"extLogin")),d&&d.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")});let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getUserByExtSourceNameAndExtLogin(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extLogin")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extSourceName")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceLogin"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSourceById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeId")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeName")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourcesByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsers(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/usersManager/getUsers`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getUsersByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsersBySpecificUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsersPage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getVosWhereUserIsAdmin(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosWhereUserIsMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isLoginAvailable(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"loginNamespace")),null!=t&&(o=this.addToHttpParams(o,t,"login"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}loginExist(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeSpecificUserOwner(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserExtSource(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"userExtSource")),null!=r&&(s=this.addToHttpParams(s,r,"force"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeUserExtSources(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==t)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"userExtSources")}),null!=r&&(s=this.addToHttpParams(s,r,"force"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}requestPreferredEmailChange(e,t,r,d,u,c,o=!1,s="body",l=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let p=new C.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"user")),null!=t&&(p=this.addToHttpParams(p,t,"email")),null!=r&&(p=this.addToHttpParams(p,r,"lang")),null!=d&&(p=this.addToHttpParams(p,d,"linkPath")),null!=u&&(p=this.addToHttpParams(p,u,"customUrl")),null!=c&&(p=this.addToHttpParams(p,c,"idpFilter"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=h&&h.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=h&&h.context;void 0===w&&(w=new C.qT);let N="json";f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let se=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(o){let Pe=new URL(se),ot=Pe.pathname.split("/");ot[1]="non",Pe.pathname=ot.join("/"),se=Pe.toString()}return this.httpClient.post(se,null,{context:w,params:p,responseType:N,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:l})}reservePasswordForLogin(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}reservePasswordForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}reserveRandomPassword(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}setLogin(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==r)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"login")),null!=r&&(s=this.addToHttpParams(s,r,"namespace"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}updateUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/updateUser`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateUserExtSourceLastAccess(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}validatePasswordForLogin(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}validatePasswordForUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}validatePreferredEmailChangeWithToken(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"token")),null!=t&&(o=this.addToHttpParams(o,t,"u"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ti=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAppsConfig(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getGuiConfiguration(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getNewGuiAlert(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getPerunRPCVersion(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getPerunStatistics(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getPerunStatus(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getPerunSystemTimeInMillis(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ws=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMemberVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"memberVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addSponsorRoleToGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addSponsorRoleToUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addVoAdminGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addVoAdminUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}createVoWithName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==t)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"name")),null!=t&&(o=this.addToHttpParams(o,t,"shortName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}createVoWithVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/createVo/withVo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}findCandidates(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"id")),null!=t&&(s=this.addToHttpParams(s,t,"searchString")),null!=r&&(s=this.addToHttpParams(s,r,"maxNumOfResults"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/vosManager/findCandidates`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}findCandidatesForGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"searchString"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAllVos(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/vosManager/getAllVos`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getCompleteCandidatesForGroup(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"attrNames[]")}),null!=r&&(s=this.addToHttpParams(s,r,"searchString"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getCompleteCandidatesForVo(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"attrNames[]")}),null!=r&&(s=this.addToHttpParams(s,r,"searchString"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getEnrichedBansForVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedBansForVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/getEnrichedBansForVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedVoBansForUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getEnrichedVoBansForUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/getEnrichedBansForUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedVoById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberVos(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getMemberVos`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMyEnrichedVos(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/vosManager/getEnrichedVos`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getMyVos(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/vosManager/getVos`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getParentVos(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getParentVos`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichAdminsForVo(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==d)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"vo")),null!=t&&(h=this.addToHttpParams(h,t,"role")),r&&r.forEach(se=>{h=this.addToHttpParams(h,se,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=u&&(h=this.addToHttpParams(h,u,"onlyDirectAdmins"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/json/vosManager/getRichAdmins`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.get(N,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}getVoAdminGroups(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"role"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/getAdminGroups`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getVoAdminUsers(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"role")),null!=r&&(s=this.addToHttpParams(s,r,"onlyDirectAdmins"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/vosManager/getAdmins`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getVoBanById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getBanById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoBanForMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getBanForMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoBansForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getBansForVo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getVoById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getVoById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoByShortName(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"shortName"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getVoByShortName`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoMembersCountsByStatus(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getVosByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosCount(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/vosManager/getVosCount`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}removeMemberVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"memberVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeSponsorRoleFromGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeSponsorRoleFromUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeVoAdminGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeVoAdminUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeVoBan(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}removeVoBanForMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}setVoBan(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/setBan`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/updateVo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateVoBan(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateBan1 was null or undefined when calling updateVoBan.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/updateBan`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var gt=(()=>{return(i=gt||(gt={})).PERUNADMIN="PERUNADMIN",i.PERUNOBSERVER="PERUNOBSERVER",i.VOADMIN="VOADMIN",i.GROUPADMIN="GROUPADMIN",i.GROUPOBSERVER="GROUPOBSERVER",i.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",i.SELF="SELF",i.FACILITYADMIN="FACILITYADMIN",i.FACILITIYOBSERVER="FACILITYOBSERVER",i.RESOURCEADMIN="RESOURCEADMIN",i.RESOURCESELFSERVICE="RESOURCESELFSERVICE",i.REGISTRAR="REGISTRAR",i.ENGINE="ENGINE",i.RPC="RPC",i.NOTIFICATIONS="NOTIFICATIONS",i.SERVICEUSER="SERVICEUSER",i.SPONSOR="SPONSOR",i.VOOBSERVER="VOOBSERVER",i.TOPGROUPCREATOR="TOPGROUPCREATOR",i.SECURITYADMIN="SECURITYADMIN",i.CABINETADMIN="CABINETADMIN",i.UNKNOWNROLENAME="UNKNOWNROLENAME",i.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",i.UNKNOWN="UNKNOWN",i.MEMBERSHIP="MEMBERSHIP",gt;var i})();let Cn=(()=>{class i{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,r)=>t.roleName>r.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(r=>{this.allRolesManagementRules=r,e()},r=>t(r))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(r=>{r.primaryObject===t&&e.push(r)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let r=e.beanName;r.startsWith("Rich")&&(r=r.substring(4)),this.assignAvailableRoles(t,r);const d=new Map;this.setRolesAuthorization(t,e,d);for(const u of d.values())if(u.readAuth||u.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const d of e){let u=[],c=[],o=[];for(const m of this.allRolesManagementRules)if(m.roleName===d.roleName){u=u.concat(m.privilegedRolesToRead),c=c.concat(m.privilegedRolesToManage);for(const g of Object.keys(m.entitiesToManage))o="User"===g?[g].concat(o):o.concat(g);break}const s=this.fetchAllRelatedObjects([t]),l=this.resolveAuthorization(u,s),h=this.resolveAuthorization(c,s);r.set(d.roleName,{readAuth:l,manageAuth:h,modes:o})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],r=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(d=>{!r.includes(d.roleName)&&this.canManage(d)&&this.ruleHasMode(d,e)&&t.push(d)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(r=>r.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const r of e){let d=!0;for(const u of Object.keys(r)){const c=r[u];if(null===c)this.principalRoles.has(u)||(d=!1);else if(t[c]){for(const o of t[c])if(!this.principalHasRole(u,c,o)){d=!1;break}}else d=!1;if(!d)break}if(d)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const r of e){let d=r.beanName;switch(r.beanName.startsWith("Rich")&&(d=r.beanName.substring(4)),t[d]?t[d].push(r.id):t[d]=[r.id],d){case"Member":t.User?t.User.push(r.userId):t.User=[r.userId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Resource":t.Facility?t.Facility.push(r.facilityId):t.Facility=[r.facilityId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let r=[];for(r.push(e);0!==r.length;){const u=r.shift();if(t.has(u))continue;const c=this.getPerunPolicy(u);if(!c)return[];t.set(u,c),r=r.concat(c.includePolicies)}const d=[];for(const u of t.values())d.push(u);return d}voCustomSort(e){for(let t=0;t{let e=null;i._refCount++;const t=(0,at.x)(a,void 0,void 0,void 0,()=>{if(!i||i._refCount<=0||0<--i._refCount)return void(e=null);const r=i._connection,d=e;e=null,r&&(!d||r===d)&&r.unsubscribe(),a.unsubscribe()});i.subscribe(t),t.closed||(e=i.connect())})}class mf extends yn.y{constructor(a,e){super(),this.source=a,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,hr.A)(a)&&(this.lift=a.lift)}_subscribe(a){return this.getSubject().subscribe(a)}getSubject(){const a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:a}=this;this._subject=this._connection=null,a?.unsubscribe()}connect(){let a=this._connection;if(!a){a=this._connection=new Nt.w0;const e=this.getSubject();a.add(this.source.subscribe((0,at.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),a.closed&&(this._connection=null,a=Nt.w0.EMPTY)}return a}refCount(){return Ms()(this)}}function vn(...i){const a=(0,_n.yG)(i);return(0,hr.e)((e,t)=>{(a?(0,tr.z)(i,e,a):(0,tr.z)(i,e)).subscribe(t)})}var pr=E(5577),Ur=E(590),Wt=E(8505),Fn=E(262);function Rd(i,a,e,t,r){return(d,u)=>{let c=e,o=a,s=0;d.subscribe((0,at.x)(u,l=>{const h=s++;o=c?i(o,l,h):(c=!0,l),t&&u.next(o)},r&&(()=>{c&&u.next(o),u.complete()})))}}function Cs(i,a){return(0,hr.e)(Rd(i,a,arguments.length>=2,!0))}function Dr(i){return i<=0?()=>Xi.E:(0,hr.e)((a,e)=>{let t=[];a.subscribe((0,at.x)(e,r=>{t.push(r),i{for(const r of t)e.next(r);e.complete()},void 0,()=>{t=null}))})}var Pn=E(8068),hc=E(6590),ah=E(4671);function Pd(i,a){const e=arguments.length>=2;return t=>t.pipe(i?(0,bt.h)((r,d)=>i(r,d,t)):ah.y,Dr(1),e?(0,hc.d)(a):(0,Pn.T)(()=>new wa.K))}function pc(i,a=!1){return(0,hr.e)((e,t)=>{let r=0;e.subscribe((0,at.x)(t,d=>{const u=i(d,r++);(u||a)&&t.next(d),!u&&t.complete()}))})}var tl=E(9718);function bo(i){return(0,hr.e)((a,e)=>{try{a.subscribe(e)}finally{e.add(i)}})}var ra=E(8189);const qt="primary";class sh{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ya(i){return new sh(i)}function nl(i,a,e){const t=e.path.split("/");if(t.length>i.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[d]===r)}return i===a}function rl(i){return Array.prototype.concat.apply([],i)}function oh(i){return i.length>0?i[i.length-1]:null}function rn(i,a){for(const e in i)i.hasOwnProperty(e)&&a(i[e],e)}function xi(i){return(0,n.CqO)(i)?i:(0,n.QGY)(i)?(0,Se.D)(Promise.resolve(i)):(0,Ee.of)(i)}const gf={exact:function uh(i,a,e){if(!Ga(i.segments,a.segments)||!vs(i.segments,a.segments,e)||i.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!i.children[t]||!uh(i.children[t],a.children[t],e))return!1;return!0},subset:al},Od={exact:function _f(i,a){return fr(i,a)},subset:function fc(i,a){return Object.keys(a).length<=Object.keys(i).length&&Object.keys(a).every(e=>kd(i[e],a[e]))},ignored:()=>!0};function dh(i,a,e){return gf[e.paths](i.root,a.root,e.matrixParams)&&Od[e.queryParams](i.queryParams,a.queryParams)&&!("exact"===e.fragment&&i.fragment!==a.fragment)}function al(i,a,e){return sl(i,a,a.segments,e)}function sl(i,a,e,t){if(i.segments.length>e.length){const r=i.segments.slice(0,e.length);return!(!Ga(r,e)||a.hasChildren()||!vs(r,e,t))}if(i.segments.length===e.length){if(!Ga(i.segments,e)||!vs(i.segments,e,t))return!1;for(const r in a.children)if(!i.children[r]||!al(i.children[r],a.children[r],t))return!1;return!0}{const r=e.slice(0,i.segments.length),d=e.slice(i.segments.length);return!!(Ga(i.segments,r)&&vs(i.segments,r,t)&&i.children[qt])&&sl(i.children[qt],a,d,t)}}function vs(i,a,e){return a.every((t,r)=>Od[e](i[r].parameters,t.parameters))}class Wa{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ya(this.queryParams)),this._queryParamMap}toString(){return Af.serialize(this)}}class Gt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,rn(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return mc(this)}}class $n{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ya(this.parameters)),this._parameterMap}toString(){return Bd(this)}}function Ga(i,a){return i.length===a.length&&i.every((e,t)=>e.path===a[t].path)}let Ts=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(){return new Ao},providedIn:"root"}),i})();class Ao{parse(a){const e=new Mf(a);return new Wa(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${ol(a.root,!0)}`,t=function wf(i){const a=Object.keys(i).map(e=>{const t=i[e];return Array.isArray(t)?t.map(r=>`${xs(e)}=${xs(r)}`).join("&"):`${xs(e)}=${xs(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function hh(i){return encodeURI(i)}(a.fragment)}`:""}`}}const Af=new Ao;function mc(i){return i.segments.map(a=>Bd(a)).join("/")}function ol(i,a){if(!i.hasChildren())return mc(i);if(a){const e=i.children[qt]?ol(i.children[qt],!1):"",t=[];return rn(i.children,(r,d)=>{d!==qt&&t.push(`${d}:${ol(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function bf(i,a){let e=[];return rn(i.children,(t,r)=>{r===qt&&(e=e.concat(a(t,r)))}),rn(i.children,(t,r)=>{r!==qt&&(e=e.concat(a(t,r)))}),e}(i,(t,r)=>r===qt?[ol(i.children[qt],!1)]:[`${r}:${ol(t,!1)}`]);return 1===Object.keys(i.children).length&&null!=i.children[qt]?`${mc(i)}/${e[0]}`:`${mc(i)}/(${e.join("//")})`}}function yf(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xs(i){return yf(i).replace(/%3B/gi,";")}function gc(i){return yf(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ss(i){return decodeURIComponent(i)}function Id(i){return Ss(i.replace(/\+/g,"%20"))}function Bd(i){return`${gc(i.path)}${function yo(i){return Object.keys(i).map(a=>`;${gc(a)}=${gc(i[a])}`).join("")}(i.parameters)}`}const wo=/^[^\/()?;=#]+/;function Mo(i){const a=i.match(wo);return a?a[0]:""}const _c=/^[^=?&#]+/,ph=/^[^&#]+/;class Mf{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Gt([],{}):new Gt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[qt]=new Gt(a,e)),t}parseSegment(){const a=Mo(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new n.vHH(4009,!1);return this.capture(a),new $n(Ss(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Mo(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=Mo(this.remaining);r&&(t=r,this.capture(t))}a[Ss(e)]=Ss(t)}parseQueryParam(a){const e=function Rg(i){const a=i.match(_c);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const u=function ll(i){const a=i.match(ph);return a?a[0]:""}(this.remaining);u&&(t=u,this.capture(t))}const r=Id(e),d=Id(t);if(a.hasOwnProperty(r)){let u=a[r];Array.isArray(u)||(u=[u],a[r]=u),u.push(d)}else a[r]=d}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Mo(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new n.vHH(4010,!1);let d;t.indexOf(":")>-1?(d=t.slice(0,t.indexOf(":")),this.capture(d),this.capture(":")):a&&(d=qt);const u=this.parseChildren();e[d]=1===Object.keys(u).length?u[qt]:new Gt([],u),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new n.vHH(4011,!1)}}function Lr(i){return i.segments.length>0?new Gt([],{[qt]:i}):i}function bc(i){const a={};for(const t of Object.keys(i.children)){const d=bc(i.children[t]);(d.segments.length>0||d.hasChildren())&&(a[t]=d)}return function cl(i){if(1===i.numberOfChildren&&i.children[qt]){const a=i.children[qt];return new Gt(i.segments.concat(a.segments),a.children)}return i}(new Gt(i.segments,a))}function Ma(i){return i instanceof Wa}function Vd(i,a,e,t,r){var d;if(0===e.length)return Hr(a.root,a.root,a.root,t,r);const u=function Yr(i){if("string"==typeof i[0]&&1===i.length&&"/"===i[0])return new Co(!0,0,i);let a=0,e=!1;const t=i.reduce((r,d,u)=>{if("object"==typeof d&&null!=d){if(d.outlets){const c={};return rn(d.outlets,(o,s)=>{c[s]="string"==typeof o?o.split("/"):o}),[...r,{outlets:c}]}if(d.segmentPath)return[...r,d.segmentPath]}return"string"!=typeof d?[...r,d]:0===u?(d.split("/").forEach((c,o)=>{0==o&&"."===c||(0==o&&""===c?e=!0:".."===c?a++:""!=c&&r.push(c))}),r):[...r,d]},[]);return new Co(e,a,t)}(e);if(u.toRoot())return Hr(a.root,a.root,new Gt([],{}),t,r);const o=function c(l){var h;const p=function mh(i,a,e,t){if(i.isAbsolute)return new Ds(a.root,!0,0);if(-1===t)return new Ds(e,e===a.root,0);return function Ls(i,a,e){let t=i,r=a,d=e;for(;d>r;){if(d-=r,t=t.parent,!t)throw new n.vHH(4005,!1);r=t.segments.length}return new Ds(t,!1,r-d)}(e,t+(Es(i.commands[0])?0:1),i.numberOfDoubleDots)}(u,a,null===(h=i.snapshot)||void 0===h?void 0:h._urlSegment,l),m=p.processChildren?Hs(p.segmentGroup,p.index,u.commands):yc(p.segmentGroup,p.index,u.commands);return Hr(a.root,p.segmentGroup,m,t,r)}(null===(d=i.snapshot)||void 0===d?void 0:d._lastPathIndex);return o}function Es(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function Ca(i){return"object"==typeof i&&null!=i&&i.outlets}function Hr(i,a,e,t,r){let u,d={};t&&rn(t,(o,s)=>{d[s]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),u=i===a?e:ul(i,a,e);const c=Lr(bc(u));return new Wa(c,d,r)}function ul(i,a,e){const t={};return rn(i.children,(r,d)=>{t[d]=r===a?e:ul(r,a,e)}),new Gt(i.segments,t)}class Co{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&Es(t[0]))throw new n.vHH(4003,!1);const r=t.find(Ca);if(r&&r!==oh(t))throw new n.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ds{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function yc(i,a,e){if(i||(i=new Gt([],{})),0===i.segments.length&&i.hasChildren())return Hs(i,a,e);const t=function vf(i,a,e){let t=0,r=a;const d={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return d;const u=i.segments[r],c=e[t];if(Ca(c))break;const o=`${c}`,s=t0&&void 0===o)break;if(o&&s&&"object"==typeof s&&void 0===s.outlets){if(!Ps(o,s,u))return d;t+=2}else{if(!Ps(o,{},u))return d;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(i,a,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof d&&(d=[d]),null!==d&&(r[u]=yc(i.children[u],a,d))}),rn(i.children,(d,u)=>{void 0===t[u]&&(r[u]=d)}),new Gt(i.segments,r)}}function wc(i,a,e){const t=i.segments.slice(0,a);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=wc(new Gt([],{}),0,e))}),a}function Rs(i){const a={};return rn(i,(e,t)=>a[t]=`${e}`),a}function Ps(i,a,e){return i==e.path&&fr(a,e.parameters)}class ir{constructor(a,e){this.id=a,this.url=e}}class Mc extends ir{constructor(a,e,t="imperative",r=null){super(a,e),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Rr extends ir{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class va extends ir{constructor(a,e,t,r){super(a,e),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Tf extends ir{constructor(a,e,t,r){super(a,e),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class xf extends ir{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sn extends ir{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pg extends ir{constructor(a,e,t,r,d){super(a,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=d,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class kg extends ir{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Og extends ir{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ig{constructor(a){this.route=a,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Bg{constructor(a){this.route=a,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class gh{constructor(a){this.snapshot=a,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ng{constructor(a){this.snapshot=a,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hl{constructor(a){this.snapshot=a,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vg{constructor(a){this.snapshot=a,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zd{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Cc{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=ks(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=ks(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=_h(a,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==a)}pathFromRoot(a){return _h(a,this._root).map(e=>e.value)}}function ks(i,a){if(i===a.value)return a;for(const e of a.children){const t=ks(i,e);if(t)return t}return null}function _h(i,a){if(i===a.value)return[a];for(const e of a.children){const t=_h(i,e);if(t.length)return t.unshift(a),t}return[]}class Ta{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Si(i){const a={};return i&&i.children.forEach(e=>a[e.value.outlet]=e),a}class aa extends Cc{constructor(a,e){super(a),this.snapshot=e,xa(this,a)}toString(){return this.snapshot.toString()}}function vc(i,a){const e=function Tc(i,a){const u=new Sc([],{},{},"",{},qt,a,null,i.root,-1,{});return new Ef("",new Ta(u,[]))}(i,a),t=new pt([new $n("",{})]),r=new pt({}),d=new pt({}),u=new pt({}),c=new pt(""),o=new mi(t,r,u,c,d,qt,a,e.root);return o.snapshot=e.root,new aa(new Ta(o,[]),e)}class mi{constructor(a,e,t,r,d,u,c,o){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=d,this.outlet=u,this.component=c,this._futureSnapshot=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Mt.U)(a=>Ya(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Mt.U)(a=>Ya(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function xc(i,a="emptyOnly"){const e=i.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const r=e[t],d=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(d.component)break;t--}}return function Sf(i){return i.reduce((a,e)=>{var t;return{params:{...a.params,...e.params},data:{...a.data,...e.data},resolve:{...e.data,...a.resolve,...null===(t=e.routeConfig)||void 0===t?void 0:t.data,...e._resolvedData}}},{params:{},data:{},resolve:{}})}(e.slice(t))}class Sc{constructor(a,e,t,r,d,u,c,o,s,l,h,p){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=d,this.outlet=u,this.component=c,this.routeConfig=o,this._urlSegment=s,this._lastPathIndex=l,this._correctedLastPathIndex=p??l,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ya(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ya(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ef extends Cc{constructor(a,e){super(e),this.url=a,xa(this,e)}toString(){return Ec(this._root)}}function xa(i,a){a.value._routerState=i,a.children.forEach(e=>xa(i,e))}function Ec(i){const a=i.children.length>0?` { ${i.children.map(Ec).join(", ")} } `:"";return`${i.value}${a}`}function Ki(i){if(i.snapshot){const a=i.snapshot,e=i._futureSnapshot;i.snapshot=e,fr(a.queryParams,e.queryParams)||i.queryParams.next(e.queryParams),a.fragment!==e.fragment&&i.fragment.next(e.fragment),fr(a.params,e.params)||i.params.next(e.params),function il(i,a){if(i.length!==a.length)return!1;for(let e=0;efr(e.parameters,a[t].parameters))}(i.url,a.url);return e&&!(!i.parent!=!a.parent)&&(!i.parent||pl(i.parent,a.parent))}function Ue(i,a,e){if(e&&i.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const r=function bh(i,a,e){return a.children.map(t=>{for(const r of e.children)if(i.shouldReuseRoute(t.value,r.value.snapshot))return Ue(i,t,r);return Ue(i,t)})}(i,a,e);return new Ta(t,r)}{if(i.shouldAttach(a.value)){const d=i.retrieve(a.value);if(null!==d){const u=d.route;return u.value._futureSnapshot=a.value,u.children=a.children.map(c=>Ue(i,c)),u}}const t=function Df(i){return new mi(new pt(i.url),new pt(i.params),new pt(i.queryParams),new pt(i.fragment),new pt(i.data),i.outlet,i.component,i)}(a.value),r=a.children.map(d=>Ue(i,d));return new Ta(t,r)}}const Dc="ngNavigationCancelingError";function an(i,a){const{redirectTo:e,navigationBehaviorOptions:t}=Ma(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,r=fl(!1,0,a);return r.url=e,r.navigationBehaviorOptions=t,r}function fl(i,a,e){const t=new Error("NavigationCancelingError: "+(i||""));return t[Dc]=!0,t.cancellationCode=a,e&&(t.url=e),t}function Ud(i){return Lc(i)&&Ma(i.url)}function Lc(i){return i&&i[Dc]}class qd{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new $a,this.attachRef=null}}let $a=(()=>{class i{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new qd,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Yd=!1;let Wr=(()=>{class i{constructor(e,t,r,d,u){this.parentContexts=e,this.location=t,this.changeDetector=d,this.environmentInjector=u,this.activated=null,this._activatedRoute=null,this.activateEvents=new n.vpe,this.deactivateEvents=new n.vpe,this.attachEvents=new n.vpe,this.detachEvents=new n.vpe,this.name=r||qt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new n.vHH(4012,Yd);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new n.vHH(4012,Yd);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new n.vHH(4012,Yd);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new n.vHH(4013,Yd);this._activatedRoute=e;const r=this.location,u=e._futureSnapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,o=new Wd(e,c,r.injector);if(t&&function Pr(i){return!!i.resolveComponentFactory}(t)){const s=t.resolveComponentFactory(u);this.activated=r.createComponent(s,r.length,o)}else this.activated=r.createComponent(u,{index:r.length,injector:o,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($a),n.Y36(n.s_b),n.$8M("name"),n.Y36(n.sBO),n.Y36(n.lqb))},i.\u0275dir=n.lG2({type:i,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),i})();class Wd{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===mi?this.route:a===$a?this.childContexts:this.parent.get(a,e)}}let Ah=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&n._UZ(0,"router-outlet")},dependencies:[Wr],encapsulation:2}),i})();function Gd(i,a){var e;return i.providers&&!i._injector&&(i._injector=(0,n.MMx)(i.providers,a,`Route: ${i.path}`)),null!==(e=i._injector)&&void 0!==e?e:a}function mr(i){const a=i.children&&i.children.map(mr),e=a?{...i,children:a}:{...i};return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==qt&&(e.component=Ah),e}function qi(i){return i.outlet||qt}function Mh(i,a){const e=i.filter(t=>qi(t)===a);return e.push(...i.filter(t=>qi(t)!==a)),e}function Ch(i){var a;if(!i)return null;if(null!==(a=i.routeConfig)&&void 0!==a&&a._injector)return i.routeConfig._injector;for(let e=i.parent;e;e=e.parent){const t=e.routeConfig;if(null!=t&&t._loadedInjector)return t._loadedInjector;if(null!=t&&t._injector)return t._injector}return null}class $d{constructor(a,e,t,r){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),Ki(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const r=Si(e);a.children.forEach(d=>{const u=d.value.outlet;this.deactivateRoutes(d,r[u],t),delete r[u]}),rn(r,(d,u)=>{this.deactivateRouteAndItsChildren(d,t)})}deactivateRoutes(a,e,t){const r=a.value,d=e?e.value:null;if(r===d)if(r.component){const u=t.getContext(r.outlet);u&&this.deactivateChildRoutes(a,e,u.children)}else this.deactivateChildRoutes(a,e,t);else d&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,d=Si(a);for(const u of Object.keys(d))this.deactivateRouteAndItsChildren(d[u],r);if(t&&t.outlet){const u=t.outlet.detach(),c=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:u,route:a,contexts:c})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,d=Si(a);for(const u of Object.keys(d))this.deactivateRouteAndItsChildren(d[u],r);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const r=Si(e);a.children.forEach(d=>{this.activateRoutes(d,r[d.value.outlet],t),this.forwardEvent(new Vg(d.value.snapshot))}),a.children.length&&this.forwardEvent(new Ng(a.value.snapshot))}activateRoutes(a,e,t){const r=a.value,d=e?e.value:null;if(Ki(r),r===d)if(r.component){const c=t.getOrCreateContext(r.outlet);this.activateChildRoutes(a,e,c.children)}else this.activateChildRoutes(a,e,t);else if(r.component){const c=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),c.children.onOutletReAttached(o.contexts),c.attachRef=o.componentRef,c.route=o.route.value,c.outlet&&c.outlet.attach(o.componentRef,o.route.value),Ki(o.route.value),this.activateChildRoutes(a,null,c.children)}else{var u;const o=Ch(r.snapshot),s=null!==(u=o?.get(n._Vd))&&void 0!==u?u:null;c.attachRef=null,c.route=r,c.resolver=s,c.injector=o,c.outlet&&c.outlet.activateWith(r,c.injector),this.activateChildRoutes(a,null,c.children)}}else this.activateChildRoutes(a,null,t)}}class To{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class _l{constructor(a,e){this.component=a,this.route=e}}function bl(i,a,e){const t=i._root;return Sa(t,a?a._root:null,e,[t.value])}function Al(i,a,e){return(Ch(a)??e).get(i)}function Sa(i,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const d=Si(a);return i.children.forEach(u=>{(function sa(i,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const d=i.value,u=a?a.value:null,c=e?e.getContext(i.value.outlet):null;if(u&&d.routeConfig===u.routeConfig){const o=function vh(i,a,e){if("function"==typeof e)return e(i,a);switch(e){case"pathParamsChange":return!Ga(i.url,a.url);case"pathParamsOrQueryParamsChange":return!Ga(i.url,a.url)||!fr(i.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!pl(i,a)||!fr(i.queryParams,a.queryParams);default:return!pl(i,a)}}(u,d,d.routeConfig.runGuardsAndResolvers);o?r.canActivateChecks.push(new To(t)):(d.data=u.data,d._resolvedData=u._resolvedData),Sa(i,a,d.component?c?c.children:null:e,t,r),o&&c&&c.outlet&&c.outlet.isActivated&&r.canDeactivateChecks.push(new _l(c.outlet.component,u))}else u&&yl(a,c,r),r.canActivateChecks.push(new To(t)),Sa(i,null,d.component?c?c.children:null:e,t,r)})(u,d[u.value.outlet],e,t.concat([u.value]),r),delete d[u.value.outlet]}),rn(d,(u,c)=>yl(u,e.getContext(c),r)),r}function yl(i,a,e){const t=Si(i),r=i.value;rn(t,(d,u)=>{yl(d,r.component?a?a.children.getContext(u):null:a,e)}),e.canDeactivateChecks.push(new _l(r.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,r))}function wl(i){return"function"==typeof i}function Zd(i){return i instanceof wa.K||"EmptyError"===i?.name}const Pc=Symbol("INITIAL_VALUE");function Da(){return(0,An.w)(i=>(0,nr.a)(i.map(a=>a.pipe((0,ht.q)(1),vn(Pc)))).pipe((0,Mt.U)(a=>{for(const e of a)if(!0!==e){if(e===Pc)return Pc;if(!1===e||e instanceof Wa)return e}return!0}),(0,bt.h)(a=>a!==Pc),(0,ht.q)(1)))}function Q(i){return(0,Gn.z)((0,Wt.b)(a=>{if(Ma(a))throw an(0,a)}),(0,Mt.U)(a=>!0===a))}const ve={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function At(i,a,e,t,r){const d=jt(i,a,e);return d.matched?function he(i,a,e,t){const r=a.canMatch;if(!r||0===r.length)return(0,Ee.of)(!0);const d=r.map(u=>{const c=i.get(u),o=function Ea(i){return i&&wl(i.canMatch)}(c)?c.canMatch(a,e):c(a,e);return xi(o)});return(0,Ee.of)(d).pipe(Da(),Q())}(t=Gd(a,t),a,e).pipe((0,Mt.U)(u=>!0===u?d:{...ve})):(0,Ee.of)(d)}function jt(i,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(i.hasChildren()||e.length>0)?{...ve}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const d=(a.matcher||nl)(e,i,a);if(!d)return{...ve};const u={};rn(d.posParams,(o,s)=>{u[s]=o.path});const c=d.consumed.length>0?{...u,...d.consumed[d.consumed.length-1].parameters}:u;return{matched:!0,consumedSegments:d.consumed,remainingSegments:e.slice(d.consumed.length),parameters:c,positionalParamSegments:null!==(t=d.posParams)&&void 0!==t?t:{}}}function mn(i,a,e,t,r="corrected"){if(e.length>0&&function La(i,a,e){return e.some(t=>Xd(i,a,t)&&qi(t)!==qt)}(i,e,t)){const u=new Gt(a,function Gr(i,a,e,t){const r={};r[qt]=t,t._sourceSegment=i,t._segmentIndexShift=a.length;for(const d of e)if(""===d.path&&qi(d)!==qt){const u=new Gt([],{});u._sourceSegment=i,u._segmentIndexShift=a.length,r[qi(d)]=u}return r}(i,a,t,new Gt(e,i.children)));return u._sourceSegment=i,u._segmentIndexShift=a.length,{segmentGroup:u,slicedSegments:[]}}if(0===e.length&&function zg(i,a,e){return e.some(t=>Xd(i,a,t))}(i,e,t)){const u=new Gt(i.segments,function Ei(i,a,e,t,r,d){const u={};for(const c of t)if(Xd(i,e,c)&&!r[qi(c)]){const o=new Gt([],{});o._sourceSegment=i,o._segmentIndexShift="legacy"===d?i.segments.length:a.length,u[qi(c)]=o}return{...r,...u}}(i,a,e,t,i.children,r));return u._sourceSegment=i,u._segmentIndexShift=a.length,{segmentGroup:u,slicedSegments:e}}const d=new Gt(i.segments,i.children);return d._sourceSegment=i,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}function Xd(i,a,e){return(!(i.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function So(i,a,e,t){return!!(qi(i)===t||t!==qt&&Xd(a,e,i))&&("**"===i.path||jt(a,i,e).matched)}function Ug(i,a,e){return 0===a.length&&!i.children[e]}const Sh=!1;class Eh{constructor(a){this.segmentGroup=a||null}}class qg{constructor(a){this.urlTree=a}}function Kd(i){return(0,Ui._)(new Eh(i))}function Za(i){return(0,Ui._)(new qg(i))}class uy{constructor(a,e,t,r,d){this.injector=a,this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=d,this.allowRedirects=!0}apply(){const a=mn(this.urlTree.root,[],[],this.config).segmentGroup,e=new Gt(a.segments,a.children);return this.expandSegmentGroup(this.injector,this.config,e,qt).pipe((0,Mt.U)(d=>this.createUrlTree(bc(d),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Fn.K)(d=>{if(d instanceof qg)return this.allowRedirects=!1,this.match(d.urlTree);throw d instanceof Eh?this.noMatchError(d):d}))}match(a){return this.expandSegmentGroup(this.injector,this.config,a.root,qt).pipe((0,Mt.U)(r=>this.createUrlTree(bc(r),a.queryParams,a.fragment))).pipe((0,Fn.K)(r=>{throw r instanceof Eh?this.noMatchError(r):r}))}noMatchError(a){return new n.vHH(4002,Sh)}createUrlTree(a,e,t){const r=Lr(a);return new Wa(r,e,t)}expandSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,Mt.U)(d=>new Gt([],d))):this.expandSegment(a,t,e,t.segments,r,!0)}expandChildren(a,e,t){const r=[];for(const d of Object.keys(t.children))"primary"===d?r.unshift(d):r.push(d);return(0,Se.D)(r).pipe((0,Fr.b)(d=>{const u=t.children[d],c=Mh(e,d);return this.expandSegmentGroup(a,c,u,d).pipe((0,Mt.U)(o=>({segment:o,outlet:d})))}),Cs((d,u)=>(d[u.outlet]=u.segment,d),{}),Pd())}expandSegment(a,e,t,r,d,u){return(0,Se.D)(t).pipe((0,Fr.b)(c=>this.expandSegmentAgainstRoute(a,e,t,c,r,d,u).pipe((0,Fn.K)(s=>{if(s instanceof Eh)return(0,Ee.of)(null);throw s}))),(0,Ur.P)(c=>!!c),(0,Fn.K)((c,o)=>{if(Zd(c))return Ug(e,r,d)?(0,Ee.of)(new Gt([],{})):Kd(e);throw c}))}expandSegmentAgainstRoute(a,e,t,r,d,u,c){return So(r,e,d,u)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(a,e,r,d,u):c&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,r,d,u):Kd(e):Kd(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,r,d,u){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,r,u):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,d,u)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,r){const d=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Za(d):this.lineralizeSegments(t,d).pipe((0,pr.z)(u=>{const c=new Gt(u,{});return this.expandSegment(a,c,e,u,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,d,u){const{matched:c,consumedSegments:o,remainingSegments:s,positionalParamSegments:l}=jt(e,r,d);if(!c)return Kd(e);const h=this.applyRedirectCommands(o,r.redirectTo,l);return r.redirectTo.startsWith("/")?Za(h):this.lineralizeSegments(r,h).pipe((0,pr.z)(p=>this.expandSegment(a,e,t,p.concat(s),u,!1)))}matchSegmentAgainstRoute(a,e,t,r,d){return"**"===t.path?(a=Gd(t,a),t.loadChildren?(t._loadedRoutes?(0,Ee.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(a,t)).pipe((0,Mt.U)(c=>(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,new Gt(r,{})))):(0,Ee.of)(new Gt(r,{}))):At(e,t,r,a).pipe((0,An.w)(({matched:u,consumedSegments:c,remainingSegments:o})=>{var s;return u?(a=null!==(s=t._injector)&&void 0!==s?s:a,this.getChildConfig(a,t,r).pipe((0,pr.z)(h=>{var p;const m=null!==(p=h.injector)&&void 0!==p?p:a,g=h.routes,{segmentGroup:f,slicedSegments:w}=mn(e,c,o,g),N=new Gt(f.segments,f.children);if(0===w.length&&N.hasChildren())return this.expandChildren(m,g,N).pipe((0,Mt.U)(Mi=>new Gt(c,Mi)));if(0===g.length&&0===w.length)return(0,Ee.of)(new Gt(c,{}));const se=qi(t)===d;return this.expandSegment(m,N,g,w,se?qt:d,!0).pipe((0,Mt.U)(ot=>new Gt(c.concat(ot.segments),ot.children)))}))):Kd(e)}))}getChildConfig(a,e,t){return e.children?(0,Ee.of)({routes:e.children,injector:a}):e.loadChildren?void 0!==e._loadedRoutes?(0,Ee.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function q(i,a,e,t){const r=a.canLoad;if(void 0===r||0===r.length)return(0,Ee.of)(!0);const d=r.map(u=>{const c=i.get(u),o=function Ml(i){return i&&wl(i.canLoad)}(c)?c.canLoad(a,e):c(a,e);return xi(o)});return(0,Ee.of)(d).pipe(Da(),Q())}(a,e,t).pipe((0,pr.z)(r=>r?this.configLoader.loadChildren(a,e).pipe((0,Wt.b)(d=>{e._loadedRoutes=d.routes,e._loadedInjector=d.injector})):function cy(i){return(0,Ui._)(fl(Sh,3))}())):(0,Ee.of)({routes:[],injector:a})}lineralizeSegments(a,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,Ee.of)(t);if(r.numberOfChildren>1||!r.children[qt])return(0,Ui._)(new n.vHH(4e3,Sh));r=r.children[qt]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreateUrlTree(a,e,t,r){const d=this.createSegmentGroup(a,e.root,t,r);return new Wa(d,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return rn(a,(r,d)=>{if("string"==typeof r&&r.startsWith(":")){const c=r.substring(1);t[d]=e[c]}else t[d]=r}),t}createSegmentGroup(a,e,t,r){const d=this.createSegments(a,e.segments,t,r);let u={};return rn(e.children,(c,o)=>{u[o]=this.createSegmentGroup(a,c,t,r)}),new Gt(d,u)}createSegments(a,e,t,r){return e.map(d=>d.path.startsWith(":")?this.findPosParam(a,d,r):this.findOrReturn(d,t))}findPosParam(a,e,t){const r=t[e.path.substring(1)];if(!r)throw new n.vHH(4001,Sh);return r}findOrReturn(a,e){let t=0;for(const r of e){if(r.path===a.path)return e.splice(t),r;t++}return a}}class py{}class my{constructor(a,e,t,r,d,u,c,o){this.injector=a,this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=d,this.paramsInheritanceStrategy=u,this.relativeLinkResolution=c,this.urlSerializer=o}recognize(){const a=mn(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,a,qt).pipe((0,Mt.U)(e=>{if(null===e)return null;const t=new Sc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},qt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ta(t,e),d=new Ef(this.url,r);return this.inheritParamsAndData(d._root),d}))}inheritParamsAndData(a){const e=a.value,t=xc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(a,e,t):this.processSegment(a,e,t,t.segments,r)}processChildren(a,e,t){return(0,Se.D)(Object.keys(t.children)).pipe((0,Fr.b)(r=>{const d=t.children[r],u=Mh(e,r);return this.processSegmentGroup(a,u,d,r)}),Cs((r,d)=>r&&d?(r.push(...d),r):null),pc(r=>null!==r),(0,hc.d)(null),Pd(),(0,Mt.U)(r=>{if(null===r)return null;const d=Wg(r);return function gy(i){i.sort((a,e)=>a.value.outlet===qt?-1:e.value.outlet===qt?1:a.value.outlet.localeCompare(e.value.outlet))}(d),d}))}processSegment(a,e,t,r,d){return(0,Se.D)(e).pipe((0,Fr.b)(u=>{var c;return this.processSegmentAgainstRoute(null!==(c=u._injector)&&void 0!==c?c:a,u,t,r,d)}),(0,Ur.P)(u=>!!u),(0,Fn.K)(u=>{if(Zd(u))return Ug(t,r,d)?(0,Ee.of)([]):(0,Ee.of)(null);throw u}))}processSegmentAgainstRoute(a,e,t,r,d){if(e.redirectTo||!So(e,t,r,d))return(0,Ee.of)(null);let u;if("**"===e.path){var c,o;const s=r.length>0?oh(r).parameters:{},l=Ha(t)+r.length,h=new Sc(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,If(e),qi(e),null!==(c=null!==(o=e.component)&&void 0!==o?o:e._loadedComponent)&&void 0!==c?c:null,e,Of(t),l,Bf(e),l);u=(0,Ee.of)({snapshot:h,consumedSegments:[],remainingSegments:[]})}else u=At(t,e,r,a).pipe((0,Mt.U)(({matched:s,consumedSegments:l,remainingSegments:h,parameters:p})=>{var m,g;if(!s)return null;const f=Ha(t)+l.length;return{snapshot:new Sc(l,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,If(e),qi(e),null!==(m=null!==(g=e.component)&&void 0!==g?g:e._loadedComponent)&&void 0!==m?m:null,e,Of(t),f,Bf(e),f),consumedSegments:l,remainingSegments:h}}));return u.pipe((0,An.w)(s=>{var l,h;if(null===s)return(0,Ee.of)(null);const{snapshot:p,consumedSegments:m,remainingSegments:g}=s;a=null!==(l=e._injector)&&void 0!==l?l:a;const f=null!==(h=e._loadedInjector)&&void 0!==h?h:a,w=function _y(i){return i.children?i.children:i.loadChildren?i._loadedRoutes:[]}(e),{segmentGroup:N,slicedSegments:se}=mn(t,m,g,w.filter(ot=>void 0===ot.redirectTo),this.relativeLinkResolution);if(0===se.length&&N.hasChildren())return this.processChildren(f,w,N).pipe((0,Mt.U)(ot=>null===ot?null:[new Ta(p,ot)]));if(0===w.length&&0===se.length)return(0,Ee.of)([new Ta(p,[])]);const Pe=qi(e)===d;return this.processSegment(f,w,N,se,Pe?qt:d).pipe((0,Mt.U)(ot=>null===ot?null:[new Ta(p,ot)]))}))}}function QT(i){const a=i.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function Wg(i){const a=[],e=new Set;for(const t of i){if(!QT(t)){a.push(t);continue}const r=a.find(d=>t.value.routeConfig===d.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):a.push(t)}for(const t of e){const r=Wg(t.children);a.push(new Ta(t.value,r))}return a.filter(t=>!e.has(t))}function Of(i){let a=i;for(;a._sourceSegment;)a=a._sourceSegment;return a}function Ha(i){var a;let e=i,t=null!==(a=e._segmentIndexShift)&&void 0!==a?a:0;for(;e._sourceSegment;){var r;e=e._sourceSegment,t+=null!==(r=e._segmentIndexShift)&&void 0!==r?r:0}return t-1}function If(i){return i.data||{}}function Bf(i){return i.resolve||{}}const $g=Symbol("RouteTitle");function by(i){return"string"==typeof i.title||null===i.title}function Zg(i){return(0,An.w)(a=>{const e=i(a);return e?(0,Se.D)(e).pipe((0,Mt.U)(()=>a)):(0,Ee.of)(a)})}let Ff=(()=>{class i{buildTitle(e){let t,r=e.root;for(;void 0!==r;){var d;t=null!==(d=this.getResolvedTitleForRoute(r))&&void 0!==d?d:t,r=r.children.find(u=>u.outlet===qt)}return t}getResolvedTitleForRoute(e){return e.data[$g]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(){return(0,n.f3M)(Jg)},providedIn:"root"}),i})(),Jg=(()=>{class i extends Ff{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(ce))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class Ay{}class wy extends class yy{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Ic=new n.OlP("",{providedIn:"root",factory:()=>({})}),tu=new n.OlP("ROUTES");let Uf=(()=>{class i{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Ee.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=xi(e.loadComponent()).pipe((0,Wt.b)(d=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=d}),bo(()=>{this.componentLoaders.delete(e)})),r=new mf(t,()=>new Le.x).pipe(Ms());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Ee.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const d=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,Mt.U)(c=>{this.onLoadEndListener&&this.onLoadEndListener(t);let o,s,l=!1;Array.isArray(c)?s=c:(o=c.create(e).injector,s=rl(o.get(tu,[],n.XFs.Self|n.XFs.Optional)));return{routes:s.map(mr),injector:o}}),bo(()=>{this.childrenLoaders.delete(t)})),u=new mf(d,()=>new Le.x).pipe(Ms());return this.childrenLoaders.set(t,u),u}loadModuleFactoryOrRoutes(e){return xi(e()).pipe((0,pr.z)(t=>t instanceof n.YKP||Array.isArray(t)?(0,Ee.of)(t):(0,Se.D)(this.compiler.compileModuleAsync(t))))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.zs3),n.LFG(n.Sil))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class gi{}class Xg{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function qf(i){throw i}function Kg(i,a,e){return a.parse("/")}const My={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Cy={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function e1(){var i,a;const e=(0,n.f3M)(Ts),t=(0,n.f3M)($a),r=(0,n.f3M)(T.Ye),d=(0,n.f3M)(n.zs3),u=(0,n.f3M)(n.Sil),c=null!==(i=(0,n.f3M)(tu,{optional:!0}))&&void 0!==i?i:[],o=null!==(a=(0,n.f3M)(Ic,{optional:!0}))&&void 0!==a?a:{},s=(0,n.f3M)(Jg),l=(0,n.f3M)(Ff,{optional:!0}),h=(0,n.f3M)(gi,{optional:!0}),p=(0,n.f3M)(Ay,{optional:!0}),m=new Dn(null,e,t,r,d,u,rl(c));return h&&(m.urlHandlingStrategy=h),p&&(m.routeReuseStrategy=p),m.titleStrategy=l??s,function vy(i,a){i.errorHandler&&(a.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(a.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(a.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(a.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(a.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(a.canceledNavigationResolution=i.canceledNavigationResolution)}(o,m),m}let Dn=(()=>{class i{constructor(e,t,r,d,u,c,o){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=d,this.config=o,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Le.x,this.errorHandler=qf,this.malformedUriErrorHandler=Kg,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Ee.of)(void 0),this.urlHandlingStrategy=new Xg,this.routeReuseStrategy=new wy,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=u.get(Uf),this.configLoader.onLoadEndListener=p=>this.triggerEvent(new Bg(p)),this.configLoader.onLoadStartListener=p=>this.triggerEvent(new Ig(p)),this.ngModule=u.get(n.h0i),this.console=u.get(n.c2e);const h=u.get(n.R0b);this.isNgZoneEnabled=h instanceof n.R0b&&n.R0b.isInAngularZone(),this.resetConfig(o),this.currentUrlTree=function ch(){return new Wa(new Gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=vc(this.currentUrlTree,this.rootComponentType),this.transitions=new pt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,bt.h)(r=>0!==r.id),(0,Mt.U)(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,An.w)(r=>{let d=!1,u=!1;return(0,Ee.of)(r).pipe((0,Wt.b)(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,An.w)(c=>{const o=this.browserUrlTree.toString(),s=!this.navigated||c.extractedUrl.toString()!==o||o!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||s)&&this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return Ty(c.source)&&(this.browserUrlTree=c.extractedUrl),(0,Ee.of)(c).pipe((0,An.w)(h=>{const p=this.transitions.getValue();return t.next(new Mc(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),p!==this.transitions.getValue()?Xi.E:Promise.resolve(h)}),function hy(i,a,e,t){return(0,An.w)(r=>function dy(i,a,e,t,r){return new uy(i,a,e,t,r).apply()}(i,a,e,r.extractedUrl,t).pipe((0,Mt.U)(d=>({...r,urlAfterRedirects:d}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Wt.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},r.urlAfterRedirects=h.urlAfterRedirects}),function Gg(i,a,e,t,r,d){return(0,pr.z)(u=>function fy(i,a,e,t,r,d,u="emptyOnly",c="legacy"){return new my(i,a,e,t,r,u,c,d).recognize().pipe((0,An.w)(o=>null===o?function Yg(i){return new yn.y(a=>a.error(i))}(new py):(0,Ee.of)(o)))}(i,a,e,u.urlAfterRedirects,t.serialize(u.urlAfterRedirects),t,r,d).pipe((0,Mt.U)(c=>({...u,targetSnapshot:c}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Wt.b)(h=>{if(r.targetSnapshot=h.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(m,h)}this.browserUrlTree=h.urlAfterRedirects}const p=new xf(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(p)}));if(s&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:m,source:g,restoredState:f,extras:w}=c,N=new Mc(p,this.serializeUrl(m),g,f);t.next(N);const se=vc(m,this.rootComponentType).snapshot;return r={...c,targetSnapshot:se,urlAfterRedirects:m,extras:{...w,skipLocationChange:!1,replaceUrl:!1}},(0,Ee.of)(r)}return this.rawUrlTree=c.rawUrl,c.resolve(null),Xi.E}),(0,Wt.b)(c=>{const o=new Sn(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(o)}),(0,Mt.U)(c=>r={...c,guards:bl(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),function xh(i,a){return(0,pr.z)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:d,canDeactivateChecks:u}}=e;return 0===u.length&&0===d.length?(0,Ee.of)({...e,guardsResult:!0}):function Jd(i,a,e,t){return(0,Se.D)(i).pipe((0,pr.z)(r=>function V(i,a,e,t,r){const d=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!d||0===d.length)return(0,Ee.of)(!0);const u=d.map(c=>{const o=Al(c,a,r);return xi(function Th(i){return i&&wl(i.canDeactivate)}(o)?o.canDeactivate(i,a,e,t):o(i,a,e,t)).pipe((0,Ur.P)())});return(0,Ee.of)(u).pipe(Da())}(r.component,r.route,e,a,t)),(0,Ur.P)(r=>!0!==r,!0))}(u,t,r,i).pipe((0,pr.z)(c=>c&&function xo(i){return"boolean"==typeof i}(c)?function Os(i,a,e,t){return(0,Se.D)(a).pipe((0,Fr.b)(r=>(0,tr.z)(function Jt(i,a){return null!==i&&a&&a(new gh(i)),(0,Ee.of)(!0)}(r.route.parent,t),function Qd(i,a){return null!==i&&a&&a(new hl(i)),(0,Ee.of)(!0)}(r.route,t),function P(i,a,e){const t=a[a.length-1],d=a.slice(0,a.length-1).reverse().map(u=>function Rf(i){const a=i.routeConfig?i.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:i,guards:a}:null}(u)).filter(u=>null!==u).map(u=>Rn(()=>{const c=u.guards.map(o=>{const s=Al(o,u.node,e);return xi(function Fg(i){return i&&wl(i.canActivateChild)}(s)?s.canActivateChild(t,i):s(t,i)).pipe((0,Ur.P)())});return(0,Ee.of)(c).pipe(Da())}));return(0,Ee.of)(d).pipe(Da())}(i,r.path,e),function S(i,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Ee.of)(!0);const r=t.map(d=>Rn(()=>{const u=Al(d,a,e);return xi(function Pf(i){return i&&wl(i.canActivate)}(u)?u.canActivate(a,i):u(a,i)).pipe((0,Ur.P)())}));return(0,Ee.of)(r).pipe(Da())}(i,r.route,e))),(0,Ur.P)(r=>!0!==r,!0))}(t,d,i,a):(0,Ee.of)(c)),(0,Mt.U)(c=>({...e,guardsResult:c})))})}(this.ngModule.injector,c=>this.triggerEvent(c)),(0,Wt.b)(c=>{if(r.guardsResult=c.guardsResult,Ma(c.guardsResult))throw an(0,c.guardsResult);const o=new Pg(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.triggerEvent(o)}),(0,bt.h)(c=>!!c.guardsResult||(this.restoreHistory(c),this.cancelNavigationTransition(c,"",3),!1)),Zg(c=>{if(c.guards.canActivateChecks.length)return(0,Ee.of)(c).pipe((0,Wt.b)(o=>{const s=new kg(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(s)}),(0,An.w)(o=>{let s=!1;return(0,Ee.of)(o).pipe(function XT(i,a){return(0,pr.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,Ee.of)(e);let d=0;return(0,Se.D)(r).pipe((0,Fr.b)(u=>function KT(i,a,e,t){const r=i.routeConfig,d=i._resolve;return void 0!==r?.title&&!by(r)&&(d[$g]=r.title),function Nf(i,a,e,t){const r=function Vf(i){return[...Object.keys(i),...Object.getOwnPropertySymbols(i)]}(i);if(0===r.length)return(0,Ee.of)({});const d={};return(0,Se.D)(r).pipe((0,pr.z)(u=>function jf(i,a,e,t){const r=Al(i,a,t);return xi(r.resolve?r.resolve(a,e):r(a,e))}(i[u],a,e,t).pipe((0,Ur.P)(),(0,Wt.b)(c=>{d[u]=c}))),Dr(1),(0,tl.h)(d),(0,Fn.K)(u=>Zd(u)?Xi.E:(0,Ui._)(u)))}(d,i,a,t).pipe((0,Mt.U)(u=>(i._resolvedData=u,i.data=xc(i,e).resolve,r&&by(r)&&(i.data[$g]=r.title),null)))}(u.route,t,i,a)),(0,Wt.b)(()=>d++),Dr(1),(0,pr.z)(u=>d===r.length?(0,Ee.of)(e):Xi.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Wt.b)({next:()=>s=!0,complete:()=>{s||(this.restoreHistory(o),this.cancelNavigationTransition(o,"",2))}}))}),(0,Wt.b)(o=>{const s=new Og(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(s)}))}),Zg(c=>{const o=s=>{var l;const h=[];null!==(l=s.routeConfig)&&void 0!==l&&l.loadComponent&&!s.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(s.routeConfig).pipe((0,Wt.b)(p=>{s.component=p}),(0,Mt.U)(()=>{})));for(const p of s.children)h.push(...o(p));return h};return(0,nr.a)(o(c.targetSnapshot.root)).pipe((0,hc.d)(),(0,ht.q)(1))}),Zg(()=>this.afterPreactivation()),(0,Mt.U)(c=>{const o=function vo(i,a,e){const t=Ue(i,a._root,e?e._root:void 0);return new aa(t,a)}(this.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return r={...c,targetRouterState:o}}),(0,Wt.b)(c=>{this.currentUrlTree=c.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl),this.routerState=c.targetRouterState,"deferred"===this.urlUpdateStrategy&&(c.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,c),this.browserUrlTree=c.urlAfterRedirects)}),((i,a,e)=>(0,Mt.U)(t=>(new $d(a,t.targetRouterState,t.currentRouterState,e).activate(i),t)))(this.rootContexts,this.routeReuseStrategy,c=>this.triggerEvent(c)),(0,Wt.b)({next(){d=!0},complete(){d=!0}}),bo(()=>{var c;d||u||this.cancelNavigationTransition(r,"",1),(null===(c=this.currentNavigation)||void 0===c?void 0:c.id)===r.id&&(this.currentNavigation=null)}),(0,Fn.K)(c=>{if(u=!0,Lc(c)){Ud(c)||(this.navigated=!0,this.restoreHistory(r,!0));const s=new va(r.id,this.serializeUrl(r.extractedUrl),c.message,c.cancellationCode);if(t.next(s),Ud(c)){const l=this.urlHandlingStrategy.merge(c.url,this.rawUrlTree),h={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Ty(r.source)};this.scheduleNavigation(l,"imperative",null,h,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{var o;this.restoreHistory(r,!0);const s=new Tf(r.id,this.serializeUrl(r.extractedUrl),c,null!==(o=r.targetSnapshot)&&void 0!==o?o:void 0);t.next(s);try{r.resolve(this.errorHandler(c))}catch(l){r.reject(l)}}return Xi.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{var r;const d={replaceUrl:!0},u=null!==(r=e.state)&&void 0!==r&&r.navigationId?e.state:null;if(u){const o={...u};delete o.navigationId,delete o.\u0275routerPageId,0!==Object.keys(o).length&&(d.state=o)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,u,d)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(mr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:d,fragment:u,queryParamsHandling:c,preserveFragment:o}=t,s=r||this.routerState.root,l=o?this.currentUrlTree.fragment:u;let h=null;switch(c){case"merge":h={...this.currentUrlTree.queryParams,...d};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=d||null}return null!==h&&(h=this.removeEmptyProps(h)),Vd(s,this.currentUrlTree,e,h,l??null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=Ma(e)?e:this.parseUrl(e),d=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(d,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function ex(i){for(let a=0;a{const d=e[r];return null!=d&&(t[r]=d),t},{})}processNavigations(){this.navigations.subscribe(e=>{var t;this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Rr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(t=this.titleStrategy)||void 0===t||t.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,d,u){if(this.disposed)return Promise.resolve(!1);let c,o,s;u?(c=u.resolve,o=u.reject,s=u.promise):s=new Promise((g,f)=>{c=g,o=f});const l=++this.navigationId;let h;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(r=this.location.getState()),r&&r.\u0275routerPageId)h=r.\u0275routerPageId;else if(d.replaceUrl||d.skipLocationChange){var p;h=null!==(p=this.browserPageId)&&void 0!==p?p:0}else{var m;h=(null!==(m=this.browserPageId)&&void 0!==m?m:0)+1}else h=0;return this.setTransition({id:l,targetPageId:h,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:d,resolve:c,reject:o,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(g=>Promise.reject(g))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),d={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",d):this.location.go(r,"",d)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){var r,d;const u=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===u?this.currentUrlTree===(null===(d=this.currentNavigation)||void 0===d?void 0:d.finalUrl)&&0===u&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(u)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,r){const d=new va(e.id,this.serializeUrl(e.extractedUrl),t,r);this.triggerEvent(d),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:function(){return e1()},providedIn:"root"}),i})();function Ty(i){return"imperative"!==i}let oa=(()=>{class i{constructor(e,t,r,d,u){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=d,this.el=u,this.commands=null,this.onChanges=new Le.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,n.D6c)(this.skipLocationChange),replaceUrl:(0,n.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,n.D6c)(this.preserveFragment)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Dn),n.Y36(mi),n.$8M("tabindex"),n.Y36(n.Qsj),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.TTD]}),i})(),Cl=(()=>{class i{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new Le.x,this.subscription=e.events.subscribe(d=>{d instanceof Rr&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,d,u){if(0!==e||t||r||d||u||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const c={skipLocationChange:(0,n.D6c)(this.skipLocationChange),replaceUrl:(0,n.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,c),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,n.D6c)(this.preserveFragment)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Dn),n.Y36(mi),n.Y36(T.S$))},i.\u0275dir=n.lG2({type:i,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t.onClick(d.button,d.ctrlKey,d.shiftKey,d.altKey,d.metaKey)}),2&e&&n.uIk("target",t.target)("href",t.href,n.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.TTD]}),i})();class Yf{}let xy=(()=>{class i{preload(e,t){return t().pipe((0,Fn.K)(()=>(0,Ee.of)(null)))}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Wf=(()=>{class i{constructor(e,t,r,d,u){this.router=e,this.injector=r,this.preloadingStrategy=d,this.loader=u}setUpPreloading(){this.subscription=this.router.events.pipe((0,bt.h)(e=>e instanceof Rr),(0,Fr.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const o of t){var d,u;o.providers&&!o._injector&&(o._injector=(0,n.MMx)(o.providers,e,`Route: ${o.path}`));const s=null!==(d=o._injector)&&void 0!==d?d:e,l=null!==(u=o._loadedInjector)&&void 0!==u?u:s;if(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)r.push(this.preloadConfig(s,o));else if(o.children||o._loadedRoutes){var c;r.push(this.processRoutes(l,null!==(c=o.children)&&void 0!==c?c:o._loadedRoutes))}}return(0,Se.D)(r).pipe((0,ra.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;r=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Ee.of)(null);const d=r.pipe((0,pr.z)(u=>{var c;return null===u?(0,Ee.of)(void 0):(t._loadedRoutes=u.routes,t._loadedInjector=u.injector,this.processRoutes(null!==(c=u.injector)&&void 0!==c?c:e,u.routes))}));if(t.loadComponent&&!t._loadedComponent){const u=this.loader.loadComponent(t);return(0,Se.D)([d,u]).pipe((0,ra.J)())}return d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Dn),n.LFG(n.Sil),n.LFG(n.lqb),n.LFG(Yf),n.LFG(Uf))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Hh=new n.OlP("");let tx=(()=>{class i{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Mc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Rr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof zd&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new zd(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Gf=new n.OlP("ROUTER_FORROOT_GUARD"),$f=new n.OlP(""),vl=[T.Ye,{provide:Ts,useClass:Ao},{provide:Dn,useFactory:e1},$a,{provide:mi,useFactory:function Ey(i){return i.routerState.root},deps:[Dn]},Uf];function Zf(){return new n.PXZ("Router",Dn)}let Tl=(()=>{class i{constructor(e){}static forRoot(e,t){return{ngModule:i,providers:[vl,[],Qf(e),{provide:Gf,useFactory:xl,deps:[[Dn,new n.FiY,new n.tp0]]},{provide:Ic,useValue:t||{}},null!=t&&t.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:Hh,useFactory:()=>{const i=(0,n.f3M)(Dn),a=(0,n.f3M)(T.EM),e=(0,n.f3M)(Ic);return e.scrollOffset&&a.setOffset(e.scrollOffset),new tx(i,a,e)}},null!=t&&t.preloadingStrategy?e0(t.preloadingStrategy):[],{provide:n.PXZ,multi:!0,useFactory:Zf},null!=t&&t.initialNavigation?Ly(t):[],[{provide:a1,useFactory:Xf},{provide:n.tb,multi:!0,useExisting:a1}]]}}static forChild(e){return{ngModule:i,providers:[Qf(e)]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Gf,8))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();function xl(i){return"guarded"}function Qf(i){return[{provide:tu,multi:!0,useValue:i}]}function Xf(){const i=(0,n.f3M)(n.zs3);return a=>{var e,t;const r=i.get(n.z2F);if(a!==r.components[0])return;const d=i.get(Dn),u=i.get(Sl);1===i.get(Kf)&&d.initialNavigation(),null===(e=i.get($f,null,n.XFs.Optional))||void 0===e||e.setUpPreloading(),null===(t=i.get(Hh,null,n.XFs.Optional))||void 0===t||t.init(),d.resetRootComponentType(r.componentTypes[0]),u.next(),u.complete()}}const a1=new n.OlP("");function Ly(i){return["disabled"===i.initialNavigation?[{provide:n.ip1,multi:!0,useFactory:()=>{const i=(0,n.f3M)(Dn);return()=>{i.setUpLocationChangeListener()}}},{provide:Kf,useValue:2}]:[],"enabledBlocking"===i.initialNavigation?[{provide:Kf,useValue:0},{provide:n.ip1,multi:!0,deps:[n.zs3],useFactory:i=>{const a=i.get(T.V_,Promise.resolve(null));let e=!1;return()=>a.then(()=>new Promise(r=>{const d=i.get(Dn),u=i.get(Sl);(function t(r){i.get(Dn).events.pipe((0,bt.h)(u=>u instanceof Rr||u instanceof va||u instanceof Tf),(0,Mt.U)(u=>u instanceof Rr||u instanceof va&&(0===u.code||1===u.code)&&null),(0,bt.h)(u=>null!==u),(0,ht.q)(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),d.afterPreactivation=()=>(r(!0),e||u.closed?(0,Ee.of)(void 0):u),d.initialNavigation()}))}}]:[]]}const Sl=new n.OlP("",{factory:()=>new Le.x}),Kf=new n.OlP("",{providedIn:"root",factory:()=>1});function e0(i){return[Wf,{provide:$f,useExisting:Wf},{provide:Yf,useExisting:i}]}let Ph;try{Ph=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ph=!1}let nu,Qn=(()=>{class i{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,T.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Ph)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.Lbi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const o1=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Bc(){if(nu)return nu;if("object"!=typeof document||!document)return nu=new Set(o1),nu;let i=document.createElement("input");return nu=new Set(o1.filter(a=>(i.setAttribute("type",a),i.type===a))),nu}let iu,kh,Vc,n0;function kr(i){return function Nc(){if(null==iu&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>iu=!0}))}finally{iu=iu||!1}return iu}()?i:!!i.capture}function t0(){if(null==Vc){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Vc=!1,Vc;if("scrollBehavior"in document.documentElement.style)Vc=!0;else{const i=Element.prototype.scrollTo;Vc=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return Vc}function ru(){if("object"!=typeof document||!document)return 0;if(null==kh){const i=document.createElement("div"),a=i.style;i.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",i.appendChild(e),document.body.appendChild(i),kh=0,0===i.scrollLeft&&(i.scrollLeft=1,kh=0===i.scrollLeft?1:2),i.remove()}return kh}function au(i){if(function Oy(){if(null==n0){const i=typeof document<"u"?document.head:null;n0=!(!i||!i.createShadowRoot&&!i.attachShadow)}return n0}()){const a=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function r0(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){const a=i.shadowRoot.activeElement;if(a===i)break;i=a}return i}function Or(i){return i.composedPath?i.composedPath()[0]:i.target}function a0(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Di(i,...a){return a.length?a.some(e=>i[e]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var du=E(8372);function cw(i){return(0,bt.h)((a,e)=>i<=e)}function Uc(i,a=ah.y){return i=i??dw,(0,hr.e)((e,t)=>{let r,d=!0;e.subscribe((0,at.x)(t,u=>{const c=a(u);(d||!i(r,c))&&(d=!1,r=c,t.next(u))}))})}function dw(i,a){return i===a}var S1=E(5032);function rt(i){return(0,hr.e)((a,e)=>{(0,oi.Xf)(i).subscribe((0,at.x)(e,()=>e.complete(),S1.Z)),!e.closed&&a.subscribe(e)})}function Ge(i){return null!=i&&"false"!=`${i}`}function Qt(i,a=0){return E1(i)?Number(i):a}function E1(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function qc(i){return Array.isArray(i)?i:[i]}function Li(i){return null==i?"":"string"==typeof i?i:`${i}px`}function ci(i){return i instanceof n.SBq?i.nativeElement:i}let D1=(()=>{class i{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),L1=(()=>{class i{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ci(e);return new yn.y(r=>{const u=this._observeElement(t).subscribe(r);return()=>{u.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Le.x,r=this._mutationObserverFactory.create(d=>t.next(d));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(D1))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),c0=(()=>{class i{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new n.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ge(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Qt(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,du.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(L1),n.Y36(n.SBq),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),i})(),uu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[D1]}),i})();const Vt=new Set;let Dl,H1=(()=>{class i{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):hw}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function R1(i){if(!Vt.has(i))try{Dl||(Dl=document.createElement("style"),Dl.setAttribute("type","text/css"),document.head.appendChild(Dl)),Dl.sheet&&(Dl.sheet.insertRule(`@media ${i} {body{ }}`,0),Vt.add(i))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function hw(i){return{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{}}}let P1=(()=>{class i{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Le.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return d0(qc(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=d0(qc(e)).map(u=>this._registerQuery(u).observable);let d=(0,nr.a)(r);return d=(0,tr.z)(d.pipe((0,ht.q)(1)),d.pipe(cw(1),(0,du.b)(0))),d.pipe((0,Mt.U)(u=>{const c={matches:!1,breakpoints:{}};return u.forEach(({matches:o,query:s})=>{c.matches=c.matches||o,c.breakpoints[s]=o}),c}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),d={observable:new yn.y(u=>{const c=o=>this._zone.run(()=>u.next(o));return t.addListener(c),()=>{t.removeListener(c)}}).pipe(vn(t),(0,Mt.U)(({matches:u})=>({query:e,matches:u})),rt(this._destroySubject)),mql:t};return this._queries.set(e,d),d}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(H1),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function d0(i){return i.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}function h0(i,a){return(i.getAttribute(a)||"").match(/\S+/g)||[]}const p0="cdk-describedby-message",Qa="cdk-describedby-host";let f0=0,hu=(()=>{class i{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+f0++,this._document=e,this._id=(0,n.f3M)(n.AFp)+"-"+f0++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const d=pu(t,r);"string"!=typeof t?(k1(t,this._id),this._messageRegistry.set(d,{messageElement:t,referenceCount:0})):this._messageRegistry.has(d)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,d)||this._addMessageReference(e,d)}removeDescription(e,t,r){var d;if(!t||!this._isElementNode(e))return;const u=pu(t,r);if(this._isElementDescribedByMessage(e,u)&&this._removeMessageReference(e,u),"string"==typeof t){const c=this._messageRegistry.get(u);c&&0===c.referenceCount&&this._deleteMessageElement(u)}0===(null===(d=this._messagesContainer)||void 0===d?void 0:d.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${Qa}="${this._id}"]`);for(let r=0;r0!=r.indexOf(p0));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function fw(i,a,e){const t=h0(i,a);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),i.setAttribute(a,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Qa,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function mw(i,a,e){const r=h0(i,a).filter(d=>d!=e.trim());r.length?i.setAttribute(a,r.join(" ")):i.removeAttribute(a)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Qa)}_isElementDescribedByMessage(e,t){const r=h0(e,"aria-describedby"),d=this._messageRegistry.get(t),u=d&&d.messageElement.id;return!!u&&-1!=r.indexOf(u)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),d=e.getAttribute("aria-label");return!(!r||d&&d.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0),n.LFG(Qn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function pu(i,a){return"string"==typeof i?`${a||""}/${i}`:i}function k1(i,a){i.id||(i.id=`${p0}-${a}-${f0++}`)}class _w{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Le.x,this._typeaheadSubscription=Nt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Le.x,this.change=new Le.x,a instanceof n.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Wt.b)(e=>this._pressedLetters.push(e)),(0,du.b)(a),(0,bt.h)(()=>this._pressedLetters.length>0),(0,Mt.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!a[d]||this._allowedModifierKeys.indexOf(d)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Di(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof n.n_E?this._items.toArray():this._items}}class bw extends _w{setActiveItem(a){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(a),this.activeItem&&this.activeItem.setActiveStyles()}}class m0 extends _w{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let Yc=(()=>{class i{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Aw(i){return!!(i.offsetWidth||i.offsetHeight||"function"==typeof i.getClientRects&&i.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function Gx(i){try{return i.frameElement}catch{return null}}(function vw(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}(e));if(t&&(-1===I1(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),d=I1(e);return e.hasAttribute("contenteditable")?-1!==d:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function Mw(i){let a=i.nodeName.toLowerCase(),e="input"===a&&i.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==d:"video"===r?-1!==d&&(null!==d||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function Cw(i){return!function yw(i){return function Vh(i){return"input"==i.nodeName.toLowerCase()}(i)&&"hidden"==i.type}(i)&&(function Wc(i){let a=i.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(i)||function O1(i){return function ww(i){return"a"==i.nodeName.toLowerCase()}(i)&&i.hasAttribute("href")}(i)||i.hasAttribute("contenteditable")||g0(i))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function g0(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;let a=i.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function I1(i){if(!g0(i))return null;const a=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class Tw{constructor(a,e,t,r,d=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,d||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const r=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(r)return r}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,ht.q)(1)).subscribe(a)}}let fu=(()=>{class i{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new Tw(e,this._checker,this._ngZone,this._document,t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Yc),n.LFG(n.R0b),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function jh(i){return 0===i.buttons||0===i.offsetX&&0===i.offsetY}function _0(i){const a=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const Gc=new n.OlP("cdk-input-modality-detector-options"),V1={ignoreKeys:[18,17,224,91,16]},Bs=kr({passive:!0,capture:!0});let Pa=(()=>{class i{constructor(e,t,r,d){this._platform=e,this._mostRecentTarget=null,this._modality=new pt(null),this._lastTouchMs=0,this._onKeydown=u=>{var c,o;null!==(c=this._options)&&void 0!==c&&null!==(o=c.ignoreKeys)&&void 0!==o&&o.some(s=>s===u.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Or(u))},this._onMousedown=u=>{Date.now()-this._lastTouchMs<650||(this._modality.next(jh(u)?"keyboard":"mouse"),this._mostRecentTarget=Or(u))},this._onTouchstart=u=>{_0(u)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Or(u))},this._options={...V1,...d},this.modalityDetected=this._modality.pipe(cw(1)),this.modalityChanged=this.modalityDetected.pipe(Uc()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Bs),r.addEventListener("mousedown",this._onMousedown,Bs),r.addEventListener("touchstart",this._onTouchstart,Bs)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Bs),document.removeEventListener("mousedown",this._onMousedown,Bs),document.removeEventListener("touchstart",this._onTouchstart,Bs))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn),n.LFG(n.R0b),n.LFG(T.K0),n.LFG(Gc,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const j1=new n.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Ew(){return null}}),A0=new n.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Ns=(()=>{class i{constructor(e,t,r,d){this._ngZone=t,this._defaultOptions=d,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let d,u;return 1===t.length&&"number"==typeof t[0]?u=t[0]:[d,u]=t,this.clear(),clearTimeout(this._previousTimeout),d||(d=r&&r.politeness?r.politeness:"polite"),null==u&&r&&(u=r.duration),this._liveElement.setAttribute("aria-live",d),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof u&&(this._previousTimeout=setTimeout(()=>this.clear(),u)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,t;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(t=this._currentResolve)||void 0===t||t.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let d=0;d{class i{constructor(e,t,r,d,u){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Le.x,this._rootNodeFocusAndBlurListener=c=>{for(let s=Or(c);s;s=s.parentElement)"focus"===c.type?this._onFocus(c,s):this._onBlur(c,s)},this._document=d,this._detectionMode=u?.detectionMode||0}monitor(e,t=!1){const r=ci(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,Ee.of)(null);const d=au(r)||this._getDocument(),u=this._elementInfo.get(r);if(u)return t&&(u.checkChildren=!0),u.subject;const c={checkChildren:t,subject:new Le.x,rootNode:d};return this._elementInfo.set(r,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){const t=ci(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const d=ci(e);d===this._getDocument().activeElement?this._getClosestElementsInfo(d).forEach(([c,o])=>this._originChanged(c,t,o)):(this._setOrigin(t),"function"==typeof d.focus&&d.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!(null==e||!e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),d=Or(e);!r||!r.checkChildren&&t!==d||this._originChanged(t,this._getFocusOrigin(d),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,$c),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,$c)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(rt(this._stopInputModalityDetector)).subscribe(d=>{this._setOrigin(d,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,$c),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,$c),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,d)=>{(d===e||r.checkChildren&&d.contains(e))&&t.push([d,r])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const d=e.labels;if(d)for(let u=0;u{class i{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,n.f3M)(P1).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,d=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),d){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Zc,Lw,mu),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(Zc,Lw):2===t&&e.add(Zc,mu)}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ll=(()=>{class i{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Fh))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[uu]}),i})();const y0=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function Zx(){return(0,n.f3M)(T.K0)}}),Hw=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Hi=(()=>{class i{constructor(e){if(this.value="ltr",this.change=new n.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function Rw(i){var a;const e=i?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&null!==(a=navigator)&&void 0!==a&&a.language?Hw.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(y0,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ho=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();function U1(i,a){if(1&i&&n._UZ(0,"mat-pseudo-checkbox",4),2&i){const e=n.oxw();n.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function q1(i,a){if(1&i&&(n.TgZ(0,"span",5),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij("(",e.group.label,")")}}const kw=["*"];let Xx=(()=>{class i{}return i.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",i.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",i.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",i.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",i})(),Kx=(()=>{class i{}return i.COMPLEX="375ms",i.ENTERING="225ms",i.EXITING="195ms",i})();const tS=new n.OlP("mat-sanity-checks",{providedIn:"root",factory:function eS(){return!0}});let wt=(()=>{class i{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!a0()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Fh),n.LFG(tS,8),n.LFG(T.K0))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Ho,Ho]}),i})();function Xa(i){return class extends i{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=Ge(a)}}}function Hl(i,a){return class extends i{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Ni(i){return class extends i{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=Ge(a)}}}function Vs(i,a=0){return class extends i{constructor(...e){super(...e),this._tabIndex=a,this.defaultTabIndex=a}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Qt(e):this.defaultTabIndex}}}function w0(i){return class extends i{constructor(...a){super(...a),this.errorState=!1}updateErrorState(){const a=this.errorState,d=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);d!==a&&(this.errorState=d,this.stateChanges.next())}}}function M0(i){return class extends i{constructor(...a){super(...a),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new yn.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(a){a.next(),a.complete()}}}const C0=new n.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Y1(){return(0,n.f3M)(n.soG)}});class Zr{constructor(){this._localeChanges=new Le.x,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),r=this.isValid(e);return t&&r?!this.compareDate(a,e):t==r}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const Uh=new n.OlP("mat-date-formats"),Ro=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function qh(i,a){const e=Array(i);for(let t=0;t{class i extends Zr{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return qh(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return qh(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return qh(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let d=this._createDateWithOverflow(e,t,r);return d.getMonth(),d}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Ro.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const d=new Date;return d.setFullYear(e,t,r),d.setHours(0,0,0,0),d}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C0,8),n.LFG(Qn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const v0={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Ow=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Zr,useClass:W1}]}),i})(),T0=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Uh,useValue:v0}],imports:[Ow]}),i})(),Jc=(()=>{class i{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),gu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),i})();function Pl(i,a,e){i.nativeElement.classList.toggle(a,e)}let js=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})();class Yh{constructor(a,e,t,r=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Qc={enterDuration:225,exitDuration:150},Wh=kr({passive:!0}),x0=["mousedown","touchstart"],Gh=["mouseup","mouseleave","touchend","touchcancel"];class $h{constructor(a,e,t,r){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=ci(t))}fadeInRipple(a,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),d={...Qc,...t.animation};t.centered&&(a=r.left+r.width/2,e=r.top+r.height/2);const u=t.radius||function G1(i,a,e){const t=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),r=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+r*r)}(a,e,r),c=a-r.left,o=e-r.top,s=d.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=c-u+"px",l.style.top=o-u+"px",l.style.height=2*u+"px",l.style.width=2*u+"px",null!=t.color&&(l.style.backgroundColor=t.color),l.style.transitionDuration=`${s}ms`,this._containerElement.appendChild(l);const h=window.getComputedStyle(l),m=h.transitionDuration,g="none"===h.transitionProperty||"0s"===m||"0s, 0s"===m,f=new Yh(this,l,t,g);l.style.transform="scale3d(1, 1, 1)",f.state=0,t.persistent||(this._mostRecentTransientRipple=f);let w=null;return!g&&(s||d.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const N=()=>this._finishRippleTransition(f),se=()=>this._destroyRipple(f);l.addEventListener("transitionend",N),l.addEventListener("transitioncancel",se),w={onTransitionEnd:N,onTransitionCancel:se}}),this._activeRipples.set(f,w),(g||!s)&&this._finishRippleTransition(f),f}fadeOutRipple(a){if(2===a.state||3===a.state)return;const e=a.element,t={...Qc,...a.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=2,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=ci(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(x0))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Gh),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)}_startFadeOutTransition(a){const e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=1,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){var e;const t=null!==(e=this._activeRipples.get(a))&&void 0!==e?e:null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=3,null!==t&&(a.element.removeEventListener("transitionend",t.onTransitionEnd),a.element.removeEventListener("transitioncancel",t.onTransitionCancel)),a.element.remove()}_onMousedown(a){const e=jh(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,Wh)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(x0.forEach(a=>{this._triggerElement.removeEventListener(a,this,Wh)}),this._pointerUpEventsRegistered&&Gh.forEach(a=>{this._triggerElement.removeEventListener(a,this,Wh)}))}}const Zh=new n.OlP("mat-ripple-global-options");let Jr=(()=>{class i{constructor(e,t,r,d,u){this._elementRef=e,this._animationMode=u,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=d||{},this._rippleRenderer=new $h(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Qn),n.Y36(Zh,8),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),i})(),ca=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})(),$1=(()=>{class i{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&n.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),i})(),Jh=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt]}),i})();const S0=new n.OlP("MAT_OPTION_PARENT_COMPONENT"),_r=new n.OlP("MatOptgroup");let jw=0;class Fw{constructor(a,e=!1){this.source=a,this.isUserInput=e}}let zw=(()=>{class i{constructor(e,t,r,d){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=d,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+jw++,this.onSelectionChange=new n.vpe,this._stateChanges=new Le.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Ge(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Di(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Fw(this,e))}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),i})(),Fs=(()=>{class i extends zw{constructor(e,t,r,d){super(e,t,r,d)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(S0,8),n.Y36(_r,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(d){return t._handleKeydown(d)}),2&e&&(n.Ikx("id",t.id),n.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),n.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[n.qOj],ngContentSelectors:kw,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,U1,1,2,"mat-pseudo-checkbox",0),n.TgZ(1,"span",1),n.Hsn(2),n.qZA(),n.YNc(3,q1,2,1,"span",2),n._UZ(4,"div",3)),2&e&&(n.Q6J("ngIf",t.multiple),n.xp6(3),n.Q6J("ngIf",t.group&&t.group._inert),n.xp6(1),n.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},dependencies:[Jr,T.O5,$1],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),i})();function Qh(i,a,e){if(e.length){let t=a.toArray(),r=e.toArray(),d=0;for(let u=0;ue+t?Math.max(0,i-t+a):e}let _u=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ca,T.ez,wt,Jh]}),i})();const Uw=["mat-button",""],J1=["*"],qw=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Yw=Hl(Xa(Ni(class{constructor(i){this._elementRef=i}})));let Ht=(()=>{class i extends Yw{constructor(e,t,r){super(e),this._focusMonitor=t,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const d of qw)this._hasHostAttributes(d)&&this._getHostElement().classList.add(d);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36($r),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&n.Gf(Jr,5),2&e){let r;n.iGM(r=n.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(n.uIk("disabled",t.disabled||null),n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.qOj],attrs:Uw,ngContentSelectors:J1,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"span",0),n.Hsn(1),n.qZA(),n._UZ(2,"span",1)(3,"span",2)),2&e&&(n.xp6(2),n.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),n.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Jr],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),i})(),Ka=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ca,wt,wt]}),i})();var es=E(1144);const E0=["addListener","removeListener"],Gw=["addEventListener","removeEventListener"],$w=["on","off"];function zs(i,a,e,t){if((0,wn.m)(e)&&(t=e,e=void 0),t)return zs(i,a,e).pipe((0,$i.Z)(t));const[r,d]=function Qw(i){return(0,wn.m)(i.addEventListener)&&(0,wn.m)(i.removeEventListener)}(i)?Gw.map(u=>c=>i[u](a,c,e)):function Zw(i){return(0,wn.m)(i.addListener)&&(0,wn.m)(i.removeListener)}(i)?E0.map(D0(i,a)):function Jw(i){return(0,wn.m)(i.on)&&(0,wn.m)(i.off)}(i)?$w.map(D0(i,a)):[];if(!r&&(0,es.z)(i))return(0,pr.z)(u=>zs(u,a,e))((0,oi.Xf)(i));if(!r)throw new TypeError("Invalid event target");return new yn.y(u=>{const c=(...o)=>u.next(1d(c)})}function D0(i,a){return e=>t=>i[e](a,t)}var Xh=E(4408);const bu={schedule(i){let a=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=bu;t&&(a=t.requestAnimationFrame,e=t.cancelAnimationFrame);const r=a(d=>{e=void 0,i(d)});return new Nt.w0(()=>e?.(r))},requestAnimationFrame(...i){const{delegate:a}=bu;return(a?.requestAnimationFrame||requestAnimationFrame)(...i)},cancelAnimationFrame(...i){const{delegate:a}=bu;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...i)},delegate:void 0};var Au=E(7565);const X1=new class L0 extends Au.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;a=a||t.shift();do{if(r=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,r){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw r}}}(class Xw extends Xh.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=bu.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(r=>r.id===e)||(bu.cancelAnimationFrame(e),a._scheduled=void 0)}});let Kh,H0=1;const R0={};function eM(i){return i in R0&&(delete R0[i],!0)}const P0={setImmediate(i){const a=H0++;return R0[a]=!0,Kh||(Kh=Promise.resolve()),Kh.then(()=>eM(a)&&i()),a},clearImmediate(i){eM(i)}},{setImmediate:tM,clearImmediate:K1}=P0,yu={setImmediate(...i){const{delegate:a}=yu;return(a?.setImmediate||tM)(...i)},clearImmediate(i){const{delegate:a}=yu;return(a?.clearImmediate||K1)(i)},delegate:void 0},wu=new class t_ extends Au.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;a=a||t.shift();do{if(r=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,r){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw r}}}(class e_ extends Xh.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=yu.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(r=>r.id===e)||(yu.clearImmediate(e),a._scheduled=void 0)}});var Mu=E(4986),kl=E(2805);function tp(i,a=Mu.z){return function ep(i){return(0,hr.e)((a,e)=>{let t=!1,r=null,d=null,u=!1;const c=()=>{if(d?.unsubscribe(),d=null,t){t=!1;const s=r;r=null,e.next(s)}u&&e.complete()},o=()=>{d=null,u&&e.complete()};a.subscribe((0,at.x)(e,s=>{t=!0,r=s,d||(0,oi.Xf)(i(s)).subscribe(d=(0,at.x)(e,c,o))},()=>{u=!0,(!t||!d||d.closed)&&e.complete()}))})}(()=>(0,kl.H)(i,a))}class O0{}function Cu(i){return i&&"function"==typeof i.connect}class nM extends O0{constructor(a){super(),this._data=a}connect(){return $t(this._data)?this._data:(0,Ee.of)(this._data)}disconnect(){}}class Xc{applyChanges(a,e,t,r,d){a.forEachOperation((u,c,o)=>{let s,l;if(null==u.previousIndex){const p=t(u,c,o);s=e.createEmbeddedView(p.templateRef,p.context,p.index),l=1}else null==o?(e.remove(c),l=3):(s=e.get(c),e.move(s,o),l=2);var h;d&&d({context:null===(h=s)||void 0===h?void 0:h.context,operation:l,record:u})})}detach(){}}class I0{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(a,e,t,r,d){a.forEachOperation((u,c,o)=>{let s,l;var h;null==u.previousIndex?(s=this._insertView(()=>t(u,c,o),o,e,r(u)),l=s?1:0):null==o?(this._detachAndCacheView(c,e),l=3):(s=this._moveView(c,o,e,r(u)),l=2),d&&d({context:null===(h=s)||void 0===h?void 0:h.context,operation:l,record:u})})}detach(){for(const a of this._viewCache)a.destroy();this._viewCache=[]}_insertView(a,e,t,r){const d=this._insertViewFromCache(e,t);if(d)return void(d.context.$implicit=r);const u=a();return t.createEmbeddedView(u.templateRef,u.context,u.index)}_detachAndCacheView(a,e){const t=e.detach(a);this._maybeCacheView(t,e)}_moveView(a,e,t,r){const d=t.get(a);return t.move(d,e),d.context.$implicit=r,d}_maybeCacheView(a,e){if(this._viewCache.lengththis._markSelected(d)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...a){this._verifyValueAssignment(a),a.forEach(t=>this._markSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...a){this._verifyValueAssignment(a),a.forEach(t=>this._unmarkSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...a){this._verifyValueAssignment(a);const e=this.selected,t=new Set(a);a.forEach(d=>this._markSelected(d)),e.filter(d=>!t.has(d)).forEach(d=>this._unmarkSelected(d));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(a){return this.isSelected(a)?this.deselect(a):this.select(a)}clear(a=!0){this._unmarkAll();const e=this._hasQueuedChanges();return a&&this._emitChangeEvent(),e}isSelected(a){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,a))return!0;return!1}return this._selection.has(a)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(a){this._multiple&&this.selected&&this._selected.sort(a)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(a){this.isSelected(a)||(this._multiple||this._unmarkAll(),this.isSelected(a)||this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))}_unmarkSelected(a){this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))}_unmarkAll(){this.isEmpty()||this._selection.forEach(a=>this._unmarkSelected(a))}_verifyValueAssignment(a){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let n_=(()=>{class i{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Ol=new n.OlP("_ViewRepeater"),iM=["contentWrapper"],rM=["*"],i_=new n.OlP("VIRTUAL_SCROLL_STRATEGY");class sS{constructor(a,e,t){this._scrolledIndexChange=new Le.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe(Uc()),this._viewport=null,this._itemSize=a,this._minBufferPx=e,this._maxBufferPx=t}attach(a){this._viewport=a,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(a,e,t){this._itemSize=a,this._minBufferPx=e,this._maxBufferPx=t,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(a,e){this._viewport&&this._viewport.scrollToOffset(a*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const a=this._viewport.getRenderedRange(),e={start:a.start,end:a.end},t=this._viewport.getViewportSize(),r=this._viewport.getDataLength();let d=this._viewport.measureScrollOffset(),u=this._itemSize>0?d/this._itemSize:0;if(e.end>r){const o=Math.ceil(t/this._itemSize),s=Math.max(0,Math.min(u,r-o));u!=s&&(u=s,d=s*this._itemSize,e.start=Math.floor(u)),e.end=Math.max(0,Math.min(r,e.start+o))}const c=d-e.start*this._itemSize;if(c0&&(e.end=Math.min(r,e.end+s),e.start=Math.max(0,Math.floor(u-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(u))}}function r_(i){return i._scrollStrategy}let B0=(()=>{class i{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new sS(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=Qt(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=Qt(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=Qt(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[n._Bn([{provide:i_,useFactory:r_,deps:[(0,n.Gpc)(()=>i)]}]),n.TTD]}),i})(),ts=(()=>{class i{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new Le.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new yn.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(tp(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ee.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,bt.h)(d=>!d||r.indexOf(d)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,d)=>{this._scrollableContainsElement(d,e)&&t.push(d)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=ci(t),d=e.getElementRef().nativeElement;do{if(r==d)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>zs(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b),n.LFG(Qn),n.LFG(T.K0,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Il=(()=>{class i{constructor(e,t,r,d){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=d,this._destroyed=new Le.x,this._elementScrolled=new yn.y(u=>this.ngZone.runOutsideAngular(()=>zs(this.elementRef.nativeElement,"scroll").pipe(rt(this._destroyed)).subscribe(u)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&0!=ru()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==ru()?e.left=e.right:1==ru()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;t0()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",d=this.elementRef.nativeElement;if("top"==e)return d.scrollTop;if("bottom"==e)return d.scrollHeight-d.clientHeight-d.scrollTop;const u=this.dir&&"rtl"==this.dir.value;return"start"==e?e=u?r:t:"end"==e&&(e=u?t:r),u&&2==ru()?e==t?d.scrollWidth-d.clientWidth-d.scrollLeft:d.scrollLeft:u&&1==ru()?e==t?d.scrollLeft+d.scrollWidth-d.clientWidth:-d.scrollLeft:e==t?d.scrollLeft:d.scrollWidth-d.clientWidth-d.scrollLeft}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(ts),n.Y36(n.R0b),n.Y36(Hi,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),i})(),Us=(()=>{class i{constructor(e,t,r){this._platform=e,this._change=new Le.x,this._changeListener=d=>{this._change.next(d)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const d=this._getWindow();d.addEventListener("resize",this._changeListener),d.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,d=r.getBoundingClientRect();return{top:-d.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-d.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(tp(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn),n.LFG(n.R0b),n.LFG(T.K0,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const oM=new n.OlP("VIRTUAL_SCROLLABLE");let a_=(()=>{class i extends Il{constructor(e,t,r,d){super(e,t,r,d)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(ts),n.Y36(n.R0b),n.Y36(Hi,8))},i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const np=typeof requestAnimationFrame<"u"?X1:wu;let ko=(()=>{class i extends a_{constructor(e,t,r,d,u,c,o,s){super(e,c,r,u),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=d,this.scrollable=s,this._detachedSubject=new Le.x,this._renderedRangeSubject=new Le.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new yn.y(l=>this._scrollStrategy.scrolledIndexChange.subscribe(h=>Promise.resolve().then(()=>this.ngZone.run(()=>l.next(h))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Nt.w0.EMPTY,this._viewportChanges=o.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Ge(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(vn(null),tp(0,np)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(rt(this._detachedSubject)).subscribe(t=>{const r=t.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function lM(i,a){return i.start==a.start&&i.end==a.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const d="horizontal"==this.orientation,u=d?"X":"Y";let o=`translate${u}(${Number((d&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(o+=` translate${u}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=o&&(this._renderedContentTransform=o,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const r={behavior:t};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){var t;let r;const d="left",u="right",c="rtl"==(null===(t=this.dir)||void 0===t?void 0:t.value);r="start"==e?c?u:d:"end"==e?c?d:u:e||("horizontal"===this.orientation?"left":"top");const o=this.scrollable.measureBoundingClientRectWithScrollOffset(r);return this.elementRef.nativeElement.getBoundingClientRect()[r]-o}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(i_,8),n.Y36(Hi,8),n.Y36(ts),n.Y36(Us),n.Y36(oM,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&n.Gf(iM,7),2&e){let r;n.iGM(r=n.CRH())&&(t._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[n._Bn([{provide:Il,useFactory:(a,e)=>a||e,deps:[a_,i]}]),n.qOj],ngContentSelectors:rM,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA(),n._UZ(3,"div",2)),2&e&&(n.xp6(3),n.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),i})();function cM(i,a,e){if(!e.getBoundingClientRect)return 0;const r=e.getBoundingClientRect();return"horizontal"===i?"start"===a?r.left:r.right:"start"===a?r.top:r.bottom}let vu=(()=>{class i{constructor(e,t,r,d,u,c){this._viewContainerRef=e,this._template=t,this._differs=r,this._viewRepeater=d,this._viewport=u,this.viewChange=new Le.x,this._dataSourceChanges=new Le.x,this.dataStream=this._dataSourceChanges.pipe(vn(null),function k0(){return(0,hr.e)((i,a)=>{let e,t=!1;i.subscribe((0,at.x)(a,r=>{const d=e;e=r,t&&a.next([d,r]),t=!0}))})}(),(0,An.w)(([o,s])=>this._changeDataSource(o,s)),bn(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Le.x,this.dataStream.subscribe(o=>{this._data=o,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(rt(this._destroyed)).subscribe(o=>{this._renderedRange=o,this.viewChange.observers.length&&c.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,Cu(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new nM($t(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,r)=>e(t+(this._renderedRange?this._renderedRange.start:0),r):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Qt(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const r=e.start-this._renderedRange.start,d=e.end-e.start;let u,c;for(let o=0;o-1;o--){const s=this._viewContainerRef.get(o+r);if(s&&s.rootNodes.length){c=s.rootNodes[s.rootNodes.length-1];break}}return u&&c?cM(t,"end",c)-cM(t,"start",u):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,Ee.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const r=this._viewContainerRef.get(t);r.context.index=this._renderedRange.start+t,r.context.count=e,this._updateComputedContextProperties(r.context),r.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(d,u,c)=>this._getEmbeddedViewArgs(d,c),d=>d.item),e.forEachIdentityChange(d=>{this._viewContainerRef.get(d.currentIndex).context.$implicit=d.item});const t=this._data.length;let r=this._viewContainerRef.length;for(;r--;){const d=this._viewContainerRef.get(r);d.context.index=this._renderedRange.start+r,d.context.count=t,this._updateComputedContextProperties(d.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(Ol),n.Y36(ko,4),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[n._Bn([{provide:Ol,useClass:I0}])]}),i})(),da=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),Kc=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Ho,da,Ho,da]}),i})();class Tu{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class Ys extends Tu{constructor(a,e,t,r){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class Oa extends Tu{constructor(a,e,t,r){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class td extends Tu{constructor(a){super(),this.element=a instanceof n.SBq?a.nativeElement:a}}class Oo{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof Ys?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof Oa?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof td?(this._attachedPortal=a,this.attachDomPortal(a)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class nd extends Oo{constructor(a,e,t,r,d){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=u=>{const c=u.element,o=this._document.createComment("dom-portal");c.parentNode.insertBefore(o,c),this.outletElement.appendChild(c),this._attachedPortal=u,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(c,o)})},this._document=d}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let r;return a.viewContainerRef?(r=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(a.injector||this._defaultInjector||n.zs3.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=a,r}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let id=(()=>{class i extends Oo{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new n.vpe,this.attachDomPortal=d=>{const u=d.element,c=this._document.createComment("dom-portal");d.setAttachedHost(this),u.parentNode.insertBefore(c,u),this._getRootNode().appendChild(u),this._attachedPortal=d,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(u,c)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,d=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),u=t.createComponent(d,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(u.hostView.rootNodes[0]),super.setDisposeFn(()=>u.destroy()),this._attachedPortal=e,this._attachedRef=u,this.attached.emit(u),u}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36(T.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.qOj]}),i})(),Ws=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();var kn=E(6451);const V0=t0();class s_{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=Li(-this._previousScrollPosition.left),a.style.top=Li(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,r=this._document.body.style,d=t.scrollBehavior||"",u=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),V0&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),V0&&(t.scrollBehavior=d,r.scrollBehavior=u)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class o_{constructor(a,e,t,r){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class l_{enable(){}disable(){}attach(){}}function j0(i,a){return a.some(e=>i.bottome.bottom||i.righte.right)}function c_(i,a){return a.some(e=>i.tope.bottom||i.lefte.right)}class d_{constructor(a,e,t,r){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(a){this._overlayRef=a}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();j0(e,[{width:t,height:r,bottom:r,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let pM=(()=>{class i{constructor(e,t,r,d){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new l_,this.close=u=>new o_(this._scrollDispatcher,this._ngZone,this._viewportRuler,u),this.block=()=>new s_(this._viewportRuler,this._document),this.reposition=u=>new d_(this._scrollDispatcher,this._viewportRuler,this._ngZone,u),this._document=d}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(ts),n.LFG(Us),n.LFG(n.R0b),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class rd{constructor(a){if(this.scrollStrategy=new l_,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class fM{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}let rp=(()=>{class i{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),mM=(()=>{class i extends rp{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const d=this._attachedOverlays;for(let u=d.length-1;u>-1;u--)if(d[u]._keydownEvents.observers.length>0){const c=d[u]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(r)):c.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0),n.LFG(n.R0b,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ap=(()=>{class i extends rp{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=d=>{this._pointerDownEventTarget=Or(d)},this._clickListener=d=>{const u=Or(d),c="click"===d.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:u;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){const l=o[s];if(l._outsidePointerEvents.observers.length<1||!l.hasAttached())continue;if(l.overlayElement.contains(u)||l.overlayElement.contains(c))break;const h=l._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(d)):h.next(d)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0),n.LFG(Qn),n.LFG(n.R0b,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Bl=(()=>{class i{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||a0()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let d=0;dthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new Le.x,this._outsidePointerEvents=new Le.x,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ht.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){var a;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(a=this._host)||void 0===a||a.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config={...this._config,...a},this._updateElementSize()}setDirection(a){this._config={...this._config,direction:a},this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=Li(this._config.width),a.height=Li(this._config.height),a.minWidth=Li(this._config.minWidth),a.minHeight=Li(this._config.minHeight),a.maxWidth=Li(this._config.maxWidth),a.maxHeight=Li(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(a){if(this._animationsDisabled)return void this._disposeBackdrop(a);a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",this._backdropTransitionendHandler)}),a.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(a)},500))}}_toggleClasses(a,e,t){const r=qc(e||[]).filter(d=>!!d);r.length&&(t?a.classList.add(...r):a.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(rt((0,kn.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const U0="cdk-overlay-connected-position-bounding-box",q0=/([A-Za-z%]+)$/;class p_{constructor(a,e,t,r,d){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=d,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Le.x,this._resizeSubscription=Nt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(a)}get positions(){return this._preferredPositions}attach(a){this._validatePositions(),a.hostElement.classList.add(U0),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,d=[];let u;for(let c of this._preferredPositions){let o=this._getOriginPoint(a,r,c),s=this._getOverlayPoint(o,e,c),l=this._getOverlayFit(s,e,t,c);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(c,o);this._canFitWithFlexibleDimensions(l,s,t)?d.push({position:c,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,c)}):(!u||u.overlayFit.visibleAreao&&(o=l,c=s)}return this._isPushed=!1,void this._applyPosition(c.position,c.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(u.position,u.originPoint);this._applyPosition(u.position,u.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Io(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(U0),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let r,d;if("center"==t.originX)r=a.left+a.width/2;else{const u=this._isRtl()?a.right:a.left,c=this._isRtl()?a.left:a.right;r="start"==t.originX?u:c}return e.left<0&&(r-=e.left),d="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(d-=e.top),{x:r,y:d}}_getOverlayPoint(a,e,t){let r,d;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,d="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+r,y:a.y+d}}_getOverlayFit(a,e,t,r){const d=op(e);let{x:u,y:c}=a,o=this._getOffset(r,"x"),s=this._getOffset(r,"y");o&&(u+=o),s&&(c+=s);let p=0-c,m=c+d.height-t.height,g=this._subtractOverflows(d.width,0-u,u+d.width-t.width),f=this._subtractOverflows(d.height,p,m),w=g*f;return{visibleArea:w,isCompletelyWithinViewport:d.width*d.height===w,fitsInViewportVertically:f===d.height,fitsInViewportHorizontally:g==d.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,d=t.right-e.x,u=sp(this._overlayRef.getConfig().minHeight),c=sp(this._overlayRef.getConfig().minWidth),s=a.fitsInViewportHorizontally||null!=c&&c<=d;return(a.fitsInViewportVertically||null!=u&&u<=r)&&s}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const r=op(e),d=this._viewportRect,u=Math.max(a.x+r.width-d.width,0),c=Math.max(a.y+r.height-d.height,0),o=Math.max(d.top-t.top-a.y,0),s=Math.max(d.left-t.left-a.x,0);let l=0,h=0;return l=r.width<=d.width?s||-u:a.xg&&!this._isInitialRender&&!this._growAfterOpen&&(u=a.y-g/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)p=t.width-a.x+this._viewportMargin,l=a.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=a.x,l=t.right-a.x;else{const m=Math.min(t.right-a.x+t.left,a.x),g=this._lastBoundingBoxSize.width;l=2*m,h=a.x-m,l>g&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-g/2)}return{top:u,left:h,bottom:c,right:p,width:l,height:d}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const d=this._overlayRef.getConfig().maxHeight,u=this._overlayRef.getConfig().maxWidth;r.height=Li(t.height),r.top=Li(t.top),r.bottom=Li(t.bottom),r.width=Li(t.width),r.left=Li(t.left),r.right=Li(t.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",d&&(r.maxHeight=Li(d)),u&&(r.maxWidth=Li(u))}this._lastBoundingBoxSize=t,Io(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Io(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Io(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},r=this._hasExactPosition(),d=this._hasFlexibleDimensions,u=this._overlayRef.getConfig();if(r){const l=this._viewportRuler.getViewportScrollPosition();Io(t,this._getExactOverlayY(e,a,l)),Io(t,this._getExactOverlayX(e,a,l))}else t.position="static";let c="",o=this._getOffset(e,"x"),s=this._getOffset(e,"y");o&&(c+=`translateX(${o}px) `),s&&(c+=`translateY(${s}px)`),t.transform=c.trim(),u.maxHeight&&(r?t.maxHeight=Li(u.maxHeight):d&&(t.maxHeight="")),u.maxWidth&&(r?t.maxWidth=Li(u.maxWidth):d&&(t.maxWidth="")),Io(this._pane.style,t)}_getExactOverlayY(a,e,t){let r={top:"",bottom:""},d=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(d=this._pushOverlayOnScreen(d,this._overlayRect,t)),"bottom"===a.overlayY?r.bottom=this._document.documentElement.clientHeight-(d.y+this._overlayRect.height)+"px":r.top=Li(d.y),r}_getExactOverlayX(a,e,t){let u,r={left:"",right:""},d=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(d=this._pushOverlayOnScreen(d,this._overlayRect,t)),u=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===u?r.right=this._document.documentElement.clientWidth-(d.x+this._overlayRect.width)+"px":r.left=Li(d.x),r}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:c_(a,t),isOriginOutsideView:j0(a,t),isOverlayClipped:c_(e,t),isOverlayOutsideView:j0(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,r)=>t-Math.max(r,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?a.offsetX??this._offsetX:a.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&qc(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof n.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function Io(i,a){for(let e in a)a.hasOwnProperty(e)&&(i[e]=a[e]);return i}function sp(i){if("number"!=typeof i&&null!=i){const[a,e]=i.split(q0);return e&&"px"!==e?null:parseFloat(a)}return i||null}function op(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}const Y0="cdk-global-overlay-wrapper";class f_{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(Y0),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:d,maxWidth:u,maxHeight:c}=t,o=!("100%"!==r&&"100vw"!==r||u&&"100%"!==u&&"100vw"!==u),s=!("100%"!==d&&"100vh"!==d||c&&"100%"!==c&&"100vh"!==c),l=this._xPosition,h=this._xOffset,p="rtl"===this._overlayRef.getConfig().direction;let m="",g="",f="";o?f="flex-start":"center"===l?(f="center",p?g=h:m=h):p?"left"===l||"end"===l?(f="flex-end",m=h):("right"===l||"start"===l)&&(f="flex-start",g=h):"left"===l||"start"===l?(f="flex-start",m=h):("right"===l||"end"===l)&&(f="flex-end",g=h),a.position=this._cssPosition,a.marginLeft=o?"0":m,a.marginTop=s?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=o?"0":g,e.justifyContent=f,e.alignItems=s?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Y0),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let m_=(()=>{class i{constructor(e,t,r,d){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=d}global(){return new f_}flexibleConnectedTo(e){return new p_(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Us),n.LFG(T.K0),n.LFG(Qn),n.LFG(Bl))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),_M=0,rr=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p,m){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=d,this._keyboardDispatcher=u,this._injector=c,this._ngZone=o,this._document=s,this._directionality=l,this._location=h,this._outsideClickDispatcher=p,this._animationsModuleType=m}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),d=this._createPortalOutlet(r),u=new rd(e);return u.direction=u.direction||this._directionality.value,new Nl(d,t,r,u,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+_M++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(n.z2F)),new nd(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(pM),n.LFG(Bl),n.LFG(n._Vd),n.LFG(m_),n.LFG(mM),n.LFG(n.zs3),n.LFG(n.R0b),n.LFG(T.K0),n.LFG(Hi),n.LFG(T.Ye),n.LFG(ap),n.LFG(n.QbO,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const g_=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],lp=new n.OlP("cdk-connected-overlay-scroll-strategy");let Lu=(()=>{class i{constructor(e){this.elementRef=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i})(),cp=(()=>{class i{constructor(e,t,r,d,u){this._overlay=e,this._dir=u,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Nt.w0.EMPTY,this._attachSubscription=Nt.w0.EMPTY,this._detachSubscription=Nt.w0.EMPTY,this._positionSubscription=Nt.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new n.vpe,this.positionChange=new n.vpe,this.attach=new n.vpe,this.detach=new n.vpe,this.overlayKeydown=new n.vpe,this.overlayOutsideClick=new n.vpe,this._templatePortal=new Oa(t,r),this._scrollStrategyFactory=d,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ge(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Ge(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Ge(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Ge(e)}get push(){return this._push}set push(e){this._push=Ge(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=g_);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!Di(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new rd({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Lu?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(pc(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(lp),n.Y36(Hi,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[n.TTD]}),i})();const b_={provide:lp,deps:[rr],useFactory:function __(i){return()=>i.scrollStrategies.reposition()}};let Bo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[rr,b_],imports:[Ho,Ws,Kc,Kc]}),i})();class W0{}const ns="*";function En(i,a){return{type:7,name:i,definitions:a,options:{}}}function Rt(i,a=null){return{type:4,styles:a,timings:i}}function dp(i,a=null){return{type:3,steps:i,options:a}}function G0(i,a=null){return{type:2,steps:i,options:a}}function je(i){return{type:6,styles:i,offset:null}}function ut(i,a,e){return{type:0,name:i,styles:a,options:e}}function No(i){return{type:5,steps:i}}function Ot(i,a,e=null){return{type:1,expr:i,animation:a,options:e}}function Hu(i=null){return{type:9,options:i}}function Br(i,a,e=null){return{type:11,selector:i,animation:a,options:e}}function Vl(i){Promise.resolve(null).then(i)}class Ru{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Vl(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class y_{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,r=0;const d=this.players.length;0==d?Vl(()=>this._onFinish()):this.players.forEach(u=>{u.onDone(()=>{++e==d&&this._onFinish()}),u.onDestroy(()=>{++t==d&&this._onDestroy()}),u.onStart(()=>{++r==d&&this._onStart()})}),this.totalTime=this.players.reduce((u,c)=>Math.max(u,c.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const yM=["connectionContainer"],w_=["inputContainer"],hS=["label"];function $0(i,a){1&i&&(n.ynx(0),n.TgZ(1,"div",14),n._UZ(2,"div",15)(3,"div",16)(4,"div",17),n.qZA(),n.TgZ(5,"div",18),n._UZ(6,"div",15)(7,"div",16)(8,"div",17),n.qZA(),n.BQk())}function Z0(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",19),n.NdJ("cdkObserveContent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.updateOutlineGap())}),n.Hsn(1,1),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function is(i,a){if(1&i&&(n.ynx(0),n.Hsn(1,2),n.TgZ(2,"span"),n._uU(3),n.qZA(),n.BQk()),2&i){const e=n.oxw(2);n.xp6(3),n.Oqu(e._control.placeholder)}}function wM(i,a){1&i&&n.Hsn(0,3,["*ngSwitchCase","true"])}function M_(i,a){1&i&&(n.TgZ(0,"span",23),n._uU(1," *"),n.qZA())}function rs(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"label",20,21),n.NdJ("cdkObserveContent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.updateOutlineGap())}),n.YNc(2,is,4,1,"ng-container",12),n.YNc(3,wM,1,0,"ng-content",12),n.YNc(4,M_,2,0,"span",22),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),n.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),n.uIk("for",e._control.id)("aria-owns",e._control.id),n.xp6(2),n.Q6J("ngSwitchCase",!1),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Ia(i,a){1&i&&(n.TgZ(0,"div",24),n.Hsn(1,4),n.qZA())}function Ba(i,a){if(1&i&&(n.TgZ(0,"div",25),n._UZ(1,"span",26),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function C_(i,a){if(1&i&&(n.TgZ(0,"div"),n.Hsn(1,5),n.qZA()),2&i){const e=n.oxw();n.Q6J("@transitionMessages",e._subscriptAnimationState)}}function v_(i,a){if(1&i&&(n.TgZ(0,"div",30),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.Q6J("id",e._hintLabelId),n.xp6(1),n.Oqu(e.hintLabel)}}function MM(i,a){if(1&i&&(n.TgZ(0,"div",27),n.YNc(1,v_,2,2,"div",28),n.Hsn(2,6),n._UZ(3,"div",29),n.Hsn(4,7),n.qZA()),2&i){const e=n.oxw();n.Q6J("@transitionMessages",e._subscriptAnimationState),n.xp6(1),n.Q6J("ngIf",e.hintLabel)}}const CM=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],vM=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let TM=0;const hp=new n.OlP("MatError");let Na=(()=>{class i{constructor(e,t){this.id="mat-error-"+TM++,e||t.nativeElement.setAttribute("aria-live","polite")}}return i.\u0275fac=function(e){return new(e||i)(n.$8M("aria-live"),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&n.uIk("id",t.id)},inputs:{id:"id"},features:[n._Bn([{provide:hp,useExisting:i}])]}),i})();const xM={transitionMessages:En("transitionMessages",[ut("enter",je({opacity:1,transform:"translateY(0%)"})),Ot("void => enter",[je({opacity:0,transform:"translateY(-5px)"}),Rt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ad=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i}),i})(),pp=0;const T_=new n.OlP("MatHint");let x_=(()=>{class i{constructor(){this.align="start",this.id="mat-hint-"+pp++}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(n.uIk("id",t.id)("align",null),n.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[n._Bn([{provide:T_,useExisting:i}])]}),i})(),as=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-label"]]}),i})(),J0=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-placeholder"]]}),i})();const fp=new n.OlP("MatPrefix"),Q0=new n.OlP("MatSuffix");let X0=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","matSuffix",""]],features:[n._Bn([{provide:Q0,useExisting:i}])]}),i})(),mp=0;const D_=Hl(class{constructor(i){this._elementRef=i}},"primary"),L_=new n.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),sd=new n.OlP("MatFormField");let di=(()=>{class i extends D_{constructor(e,t,r,d,u,c,o){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=d,this._platform=u,this._ngZone=c,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Le.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+mp++,this._labelId="mat-form-field-label-"+mp++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=d?.appearance||"legacy",d&&(this._hideRequiredMarker=Boolean(d.hideRequiredMarker),d.color&&(this.color=this.defaultColor=d.color))}get appearance(){return this._appearance}set appearance(e){var t;const r=this._appearance;this._appearance=e||(null===(t=this._defaults)||void 0===t?void 0:t.appearance)||"legacy","outline"===this._appearance&&r!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ge(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(vn(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(rt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(rt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,kn.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(vn(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(vn(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(rt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,zs(this._label.nativeElement,"transitionend").pipe((0,ht.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(d=>"start"===d.align):null,r=this._hintChildren?this._hintChildren.find(d=>"end"===d.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",d=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const l=t.querySelectorAll(`${r}, ${d}`);for(let h=0;h0?.75*g+10:0}for(let l=0;l{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,wt,uu,wt]}),i})(),H_=(()=>{class i{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Qsj),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i}),i})(),jl=(()=>{class i extends H_{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const ar=new n.OlP("NgValueAccessor"),LM={provide:ar,useExisting:(0,n.Gpc)(()=>_i),multi:!0},RM=new n.OlP("CompositionEventMode");let _i=(()=>{class i extends H_{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function HM(){const i=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(RM,8))},i.\u0275dir=n.lG2({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&n.NdJ("input",function(d){return t._handleInput(d.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(d){return t._compositionEnd(d.target.value)})},features:[n._Bn([LM]),n.qOj]}),i})();function Vo(i){return null==i||("string"==typeof i||Array.isArray(i))&&0===i.length}function P_(i){return null!=i&&"number"==typeof i.length}const Vi=new n.OlP("NgValidators"),jo=new n.OlP("NgAsyncValidators"),kM=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class bi{static min(a){return function em(i){return a=>{if(Vo(a.value)||Vo(i))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(Vo(a.value)||Vo(i))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>i?{max:{max:i,actual:a.value}}:null}}(a)}static required(a){return nm(a)}static requiredTrue(a){return function im(i){return!0===i.value?null:{required:!0}}(a)}static email(a){return function rm(i){return Vo(i.value)||kM.test(i.value)?null:{email:!0}}(a)}static minLength(a){return function am(i){return a=>Vo(a.value)||!P_(a.value)?null:a.value.lengthP_(a.value)&&a.value.length>i?{maxlength:{requiredLength:i,actualLength:a.value.length}}:null}(a)}static pattern(a){return function om(i){if(!i)return od;let a,e;return"string"==typeof i?(e="","^"!==i.charAt(0)&&(e+="^"),e+=i,"$"!==i.charAt(i.length-1)&&(e+="$"),a=new RegExp(e)):(e=i.toString(),a=i),t=>{if(Vo(t.value))return null;const r=t.value;return a.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(a)}static nullValidator(a){return null}static compose(a){return _p(a)}static composeAsync(a){return lm(a)}}function nm(i){return Vo(i.value)?{required:!0}:null}function od(i){return null}function gp(i){return null!=i}function Fo(i){return(0,n.QGY)(i)?(0,Se.D)(i):i}function k_(i){let a={};return i.forEach(e=>{a=null!=e?{...a,...e}:a}),0===Object.keys(a).length?null:a}function O_(i,a){return a.map(e=>e(i))}function OM(i){return i.map(a=>function ld(i){return!i.validate}(a)?a:e=>a.validate(e))}function _p(i){if(!i)return null;const a=i.filter(gp);return 0==a.length?null:function(e){return k_(O_(e,a))}}function I_(i){return null!=i?_p(OM(i)):null}function lm(i){if(!i)return null;const a=i.filter(gp);return 0==a.length?null:function(e){return ma(O_(e,a).map(Fo)).pipe((0,Mt.U)(k_))}}function bp(i){return null!=i?lm(OM(i)):null}function IM(i,a){return null===i?[a]:Array.isArray(i)?[...i,a]:[i,a]}function vt(i){return i._rawValidators}function B_(i){return i._rawAsyncValidators}function cm(i){return i?Array.isArray(i)?i:[i]:[]}function Ap(i,a){return Array.isArray(i)?i.includes(a):i===a}function Fl(i,a){const e=cm(a);return cm(i).forEach(r=>{Ap(e,r)||e.push(r)}),e}function N_(i,a){return cm(a).filter(e=>!Ap(i,e))}class Pu{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(a){this._rawValidators=a||[],this._composedValidatorFn=I_(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=bp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Wi extends Pu{get formDirective(){return null}get path(){return null}}class gn extends Pu{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class BM{constructor(a){this._cd=a}get isTouched(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.touched)}get isUntouched(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.untouched)}get isPristine(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.pristine)}get isDirty(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.dirty)}get isValid(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.valid)}get isInvalid(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.invalid)}get isPending(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.pending)}get isSubmitted(){var a;return!(null===(a=this._cd)||void 0===a||!a.submitted)}}let Ai=(()=>{class i extends BM{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(gn,2))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&n.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[n.qOj]}),i})(),cd=(()=>{class i extends BM{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Wi,10))},i.\u0275dir=n.lG2({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&n.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[n.qOj]}),i})();const Bu="VALID",Mp="INVALID",zl="PENDING",dd="DISABLED";function Cp(i){return(Tp(i)?i.validators:i)||null}function F_(i){return Array.isArray(i)?I_(i):i||null}function vp(i,a){return(Tp(a)?a.asyncValidators:i)||null}function z_(i){return Array.isArray(i)?bp(i):i||null}function Tp(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}function UM(i,a,e){const t=i.controls;if(!(a?Object.keys(t):t).length)throw new n.vHH(1e3,"");if(!t[e])throw new n.vHH(1001,"")}function qM(i,a,e){i._forEachChild((t,r)=>{if(void 0===e[r])throw new n.vHH(1002,"")})}class fm{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=F_(this._rawValidators),this._composedAsyncValidatorFn=z_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===Bu}get invalid(){return this.status===Mp}get pending(){return this.status==zl}get disabled(){return this.status===dd}get enabled(){return this.status!==dd}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=F_(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=z_(a)}addValidators(a){this.setValidators(Fl(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(Fl(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(N_(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(N_(a,this._rawAsyncValidators))}hasValidator(a){return Ap(this._rawValidators,a)}hasAsyncValidator(a){return Ap(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=zl,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=dd,this.errors=null,this._forEachChild(t=>{t.disable({...a,onlySelf:!0})}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Bu,this._forEachChild(t=>{t.enable({...a,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Bu||this.status===zl)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?dd:Bu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=zl,this._hasOwnPendingAsyncValidator=!0;const e=Fo(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){let e=a;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}_calculateStatus(){return this._allControlsDisabled()?dd:this.errors?Mp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(zl)?zl:this._anyControlsHaveStatus(Mp)?Mp:Bu}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){Tp(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(a){return null}}class mm extends fm{constructor(a,e,t){super(Cp(e),vp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){qM(this,0,a),Object.keys(a).forEach(t=>{UM(this,!0,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{const r=this.controls[t];r&&r.patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=e.getRawValue(),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&a(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(a,e){let t=a;return this._forEachChild((r,d)=>{t=e(t,r,d)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null}}function Nu(i,a){return[...a.path,i]}function $s(i,a){var e,t;_m(i,a),a.valueAccessor.writeValue(i.value),i.disabled&&(null===(e=(t=a.valueAccessor).setDisabledState)||void 0===e||e.call(t,!0)),function U_(i,a){a.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&q_(i,a)})}(i,a),function ud(i,a){const e=(t,r)=>{a.valueAccessor.writeValue(t),r&&a.viewToModelUpdate(t)};i.registerOnChange(e),a._registerOnDestroy(()=>{i._unregisterOnChange(e)})}(i,a),function $M(i,a){a.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&q_(i,a),"submit"!==i.updateOn&&i.markAsTouched()})}(i,a),function GM(i,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(e),a._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}(i,a)}function xp(i,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),Ep(i,a),i&&(a._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Sp(i,a){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function _m(i,a){const e=vt(i);null!==a.validator?i.setValidators(IM(e,a.validator)):"function"==typeof e&&i.setValidators([e]);const t=B_(i);null!==a.asyncValidator?i.setAsyncValidators(IM(t,a.asyncValidator)):"function"==typeof t&&i.setAsyncValidators([t]);const r=()=>i.updateValueAndValidity();Sp(a._rawValidators,r),Sp(a._rawAsyncValidators,r)}function Ep(i,a){let e=!1;if(null!==i){if(null!==a.validator){const r=vt(i);if(Array.isArray(r)&&r.length>0){const d=r.filter(u=>u!==a.validator);d.length!==r.length&&(e=!0,i.setValidators(d))}}if(null!==a.asyncValidator){const r=B_(i);if(Array.isArray(r)&&r.length>0){const d=r.filter(u=>u!==a.asyncValidator);d.length!==r.length&&(e=!0,i.setAsyncValidators(d))}}}const t=()=>{};return Sp(a._rawValidators,t),Sp(a._rawAsyncValidators,t),e}function q_(i,a){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Y_(i,a){_m(i,a)}function bm(i,a){if(!i.hasOwnProperty("model"))return!1;const e=i.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function Z_(i,a){i._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Dp(i,a){if(!a)return null;let e,t,r;return Array.isArray(a),a.forEach(d=>{d.constructor===_i?e=d:function Am(i){return Object.getPrototypeOf(i.constructor)===jl}(d)?t=d:r=d}),r||t||e||null}const JM={provide:Wi,useExisting:(0,n.Gpc)(()=>Zs)},Vu=(()=>Promise.resolve(null))();let Zs=(()=>{class i extends Wi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new n.vpe,this.form=new mm({},I_(e),bp(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Vu.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),$s(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Vu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Vu.then(()=>{const t=this._findContainer(e.path),r=new mm({});Y_(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Vu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Vu.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Z_(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Vi,10),n.Y36(jo,10))},i.\u0275dir=n.lG2({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&n.NdJ("submit",function(d){return t.onSubmit(d)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([JM]),n.qOj]}),i})();function Q_(i,a){const e=i.indexOf(a);e>-1&&i.splice(e,1)}function ym(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}const zo=class extends fm{constructor(a=null,e,t){super(Cp(e),vp(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Tp(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=ym(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){Q_(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){Q_(this._onDisabledChange,a)}_forEachChild(a){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(a){ym(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}},Js=zo,XM={provide:gn,useExisting:(0,n.Gpc)(()=>ua)},eb=(()=>Promise.resolve(null))();let ua=(()=>{class i extends gn{constructor(e,t,r,d,u){super(),this._changeDetectorRef=u,this.control=new zo,this._registered=!1,this.update=new n.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Dp(0,d)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),bm(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){$s(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){eb.then(()=>{var t;this.control.setValue(e,{emitViewToModelChange:!1}),null===(t=this._changeDetectorRef)||void 0===t||t.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&(0,n.D6c)(t);eb.then(()=>{var d;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(d=this._changeDetectorRef)||void 0===d||d.markForCheck()})}_getPath(e){return this._parent?Nu(e,this._parent):[e]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Wi,9),n.Y36(Vi,10),n.Y36(jo,10),n.Y36(ar,10),n.Y36(n.sBO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n._Bn([XM]),n.qOj,n.TTD]}),i})(),Mm=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),i})();const KM={provide:ar,useExisting:(0,n.Gpc)(()=>Lp),multi:!0};let Lp=(()=>{class i extends jl{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&n.NdJ("input",function(d){return t.onChange(d.target.value)})("blur",function(){return t.onTouched()})},features:[n._Bn([KM]),n.qOj]}),i})(),vm=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const xm=new n.OlP("NgModelWithFormControlWarning"),ib={provide:gn,useExisting:(0,n.Gpc)(()=>sr)};let sr=(()=>{class i extends gn{constructor(e,t,r,d){super(),this._ngModelWarningConfig=d,this.update=new n.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Dp(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&xp(t,this,!1),$s(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}bm(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&xp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(e){return new(e||i)(n.Y36(Vi,10),n.Y36(jo,10),n.Y36(ar,10),n.Y36(xm,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n._Bn([ib]),n.qOj,n.TTD]}),i})();const rb={provide:Wi,useExisting:(0,n.Gpc)(()=>Qs)};let Qs=(()=>{class i extends Wi{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ep(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return $s(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){xp(e.control||null,e,!1),function J_(i,a){const e=i.indexOf(a);e>-1&&i.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Z_(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(xp(t||null,e),(i=>i instanceof zo)(r)&&($s(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Y_(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function W_(i,a){return Ep(i,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_m(this.form,this),this._oldForm&&Ep(this._oldForm,this)}_checkFormPresent(){}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Vi,10),n.Y36(jo,10))},i.\u0275dir=n.lG2({type:i,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&n.NdJ("submit",function(d){return t.onSubmit(d)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([rb]),n.qOj,n.TTD]}),i})();const tC={provide:gn,useExisting:(0,n.Gpc)(()=>kp)};let kp=(()=>{class i extends gn{constructor(e,t,r,d,u){super(),this._ngModelWarningConfig=u,this._added=!1,this.update=new n.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Dp(0,d)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),bm(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Nu(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(e){return new(e||i)(n.Y36(Wi,13),n.Y36(Vi,10),n.Y36(jo,10),n.Y36(ar,10),n.Y36(xm,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n._Bn([tC]),n.qOj,n.TTD]}),i})(),Ul=(()=>{class i{constructor(){this._validator=od}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):od,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();const db={provide:Vi,useExisting:(0,n.Gpc)(()=>Nr),multi:!0};let Nr=(()=>{class i extends Ul{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n.D6c,this.createValidator=e=>nm}enabled(e){return e}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&n.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[n._Bn([db]),n.qOj]}),i})(),Pm=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[vm]}),i})(),Fu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Pm]}),i})(),Xs=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:xm,useValue:e.warnOnNgModelWithFormControl}]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Pm]}),i})();class hC extends fm{constructor(a,e,t){super(Cp(e),vp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[this._adjustIndex(a)]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){let t=this._adjustIndex(a);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){let r=this._adjustIndex(a);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){qM(this,0,a),a.forEach((t,r)=>{UM(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>a.getRawValue())}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_adjustIndex(a){return a<0?a+this.length:a}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}_find(a){var e;return null!==(e=this.at(a))&&void 0!==e?e:null}}function km(i){return!!i&&(void 0!==i.asyncValidators||void 0!==i.validators||void 0!==i.updateOn)}let mC=(()=>{class i{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new i;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let d={};return km(t)?d=t:null!==t&&(d.validators=t.validator,d.asyncValidators=t.asyncValidator),new mm(r,d)}control(e,t,r){let d={};return this.useNonNullable?(km(t)?d=t:(d.validators=t,d.asyncValidators=r),new zo(e,{...d,nonNullable:!0})):new zo(e,t,r)}array(e,t,r){const d=e.map(u=>this._createControl(u));return new hC(d,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return e instanceof zo||e instanceof fm?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:Xs}),i})(),hd=(()=>{class i extends mC{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:Xs}),i})();const Om=["trigger"],ss=["panel"];function gC(i,a){if(1&i&&(n.TgZ(0,"span",8),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.placeholder)}}function Np(i,a){if(1&i&&(n.TgZ(0,"span",12),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.triggerValue)}}function zu(i,a){1&i&&n.Hsn(0,0,["*ngSwitchCase","true"])}function _C(i,a){if(1&i&&(n.TgZ(0,"span",9),n.YNc(1,Np,2,1,"span",10),n.YNc(2,zu,1,0,"ng-content",11),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngSwitch",!!e.customTrigger),n.xp6(2),n.Q6J("ngSwitchCase",!0)}}function bC(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",13)(1,"div",14,15),n.NdJ("@transformPanel.done",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._handleKeydown(r))}),n.Hsn(3,1),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("@transformPanelWrap",void 0),n.xp6(1),n.Gre("mat-select-panel ",e._getPanelTheme(),""),n.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),n.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),n.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const AC=[[["mat-select-trigger"]],"*"],Vp=["mat-select-trigger","*"],Uu={transformPanelWrap:En("transformPanelWrap",[Ot("* => void",Br("@transformPanel",[Hu()],{optional:!0}))]),transformPanel:En("transformPanel",[ut("void",je({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),ut("showing",je({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),ut("showing-multiple",je({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ot("void => *",Rt("120ms cubic-bezier(0, 0, 0.2, 1)")),Ot("* => void",Rt("100ms 25ms linear",je({opacity:0})))])};let Im=0;const jp=new n.OlP("mat-select-scroll-strategy"),Bm=new n.OlP("MAT_SELECT_CONFIG"),Nm={provide:jp,deps:[rr],useFactory:function mb(i){return()=>i.scrollStrategies.reposition()}};class vC{constructor(a,e){this.source=a,this.value=e}}const TC=Ni(Vs(Xa(w0(class{constructor(i,a,e,t,r){this._elementRef=i,this._defaultErrorStateMatcher=a,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new Le.x}})))),xC=new n.OlP("MatSelectTrigger");let gb=(()=>{class i extends TC{constructor(e,t,r,d,u,c,o,s,l,h,p,m,g,f){var w,N,se;super(u,d,o,s,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=c,this._parentFormField=l,this._liveAnnouncer=g,this._defaultOptions=f,this._panelOpen=!1,this._compareWith=(Pe,ot)=>Pe===ot,this._uid="mat-select-"+Im++,this._triggerAriaLabelledBy=null,this._destroy=new Le.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Im++,this._panelDoneAnimatingStream=new Le.x,this._overlayPanelClass=(null===(w=this._defaultOptions)||void 0===w?void 0:w.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(N=null===(se=this._defaultOptions)||void 0===se?void 0:se.disableOptionCentering)&&void 0!==N&&N,this.ariaLabel="",this.optionSelectionChanges=Rn(()=>{const Pe=this.options;return Pe?Pe.changes.pipe(vn(Pe),(0,An.w)(()=>(0,kn.T)(...Pe.map(ot=>ot.onSelectionChange)))):this._ngZone.onStable.pipe((0,ht.q)(1),(0,An.w)(()=>this.optionSelectionChanges))}),this.openedChange=new n.vpe,this._openedStream=this.openedChange.pipe((0,bt.h)(Pe=>Pe),(0,Mt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,bt.h)(Pe=>!Pe),(0,Mt.U)(()=>{})),this.selectionChange=new n.vpe,this.valueChange=new n.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=f?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=f.typeaheadDebounceInterval),this._scrollStrategyFactory=m,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,t,r,d;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(d=r.control)||void 0===d?void 0:d.hasValidator(bi.required))&&void 0!==e&&e}set required(e){this._required=Ge(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Ge(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Ge(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Qt(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Yi(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Uc(),rt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(rt(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(vn(null),rt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,d=13===t||32===t,u=this._keyManager;if(!u.isTyping()&&d&&!Di(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const c=this.selected;u.onKeydown(e);const o=this.selected;o&&c!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,d=40===r||38===r,u=t.isTyping();if(d&&e.altKey)e.preventDefault(),this.close();else if(u||13!==r&&32!==r||!t.activeItem||Di(e))if(!u&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const c=this.options.some(o=>!o.disabled&&!o.selected);this.options.forEach(o=>{o.disabled||(c?o.select():o.deselect())})}else{const c=t.activeItemIndex;t.onKeydown(e),this._multiple&&d&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==c&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,ht.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new bw(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(rt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(rt(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=(0,kn.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(rt(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,kn.T)(...this.options.map(t=>t._stateChanges)).pipe(rt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Us),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(Jc),n.Y36(n.SBq),n.Y36(Hi,8),n.Y36(Zs,8),n.Y36(Qs,8),n.Y36(sd,8),n.Y36(gn,10),n.$8M("tabindex"),n.Y36(jp),n.Y36(Ns),n.Y36(Bm,8))},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&(n.Gf(Om,5),n.Gf(ss,5),n.Gf(cp,5)),2&e){let r;n.iGM(r=n.CRH())&&(t.trigger=r.first),n.iGM(r=n.CRH())&&(t.panel=r.first),n.iGM(r=n.CRH())&&(t._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[n.qOj,n.TTD]}),i})(),fd=(()=>{class i extends gb{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,t,r){const d=this._getItemHeight();return Math.min(Math.max(0,d*e-t+d/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(rt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,ht.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=Qh(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:Z1((e+t)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new vC(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),d=this.multiple?56:32;let u;if(this.multiple)u=40;else if(this.disableOptionCentering)u=16;else{let s=this._selectionModel.selected[0]||this.options.first;u=s&&s.group?32:16}r||(u*=-1);const c=0-(e.left+u-(r?d:0)),o=e.right+u-t.width+(r?0:d);c>0?u+=c+8:o>0&&(u-=o+8),this._overlayDir.offsetX=Math.round(u),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const d=this._getItemHeight(),u=(d-this._triggerRect.height)/2,c=Math.floor(256/d);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*d:this._scrollTop===r?(e-(this._getItemCount()-c))*d+(d-(this._getItemCount()*d-256)%d):t-d/2,Math.round(-1*o-u))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),d=this._triggerRect.top-8,u=r.height-this._triggerRect.bottom-8,c=Math.abs(this._offsetY),s=Math.min(this._getItemCount()*t,256)-c-this._triggerRect.height;s>u?this._adjustPanelUp(s,u):c>d?this._adjustPanelDown(c,d,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const r=Math.round(e-t);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,r){const d=Math.round(e-t);if(this._scrollTop+=d,this._offsetY+=d,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),r=Math.min(t*e,256),u=t*e-r;let c;c=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),c+=Qh(c,this.options,this.optionGroups);const o=r/2;this._scrollTop=this._calculateOverlayScroll(c,o,u),this._offsetY=this._calculateOverlayOffsetY(c,o,u),this._checkOverlayWithinViewport(u)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,xC,5),n.Suo(r,Fs,5),n.Suo(r,_r,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.customTrigger=d.first),n.iGM(d=n.CRH())&&(t.options=d),n.iGM(d=n.CRH())&&(t.optionGroups=d)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&n.NdJ("keydown",function(d){return t._handleKeydown(d)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(n.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-activedescendant",t._getAriaActiveDescendant()),n.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[n._Bn([{provide:ad,useExisting:i},{provide:S0,useExisting:i}]),n.qOj],ngContentSelectors:Vp,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(n.F$t(AC),n.TgZ(0,"div",0,1),n.NdJ("click",function(){return t.toggle()}),n.TgZ(3,"div",2),n.YNc(4,gC,2,1,"span",3),n.YNc(5,_C,3,2,"span",4),n.qZA(),n.TgZ(6,"div",5),n._UZ(7,"div",6),n.qZA()(),n.YNc(8,bC,4,14,"ng-template",7),n.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=n.MAs(1);n.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),n.xp6(3),n.Q6J("ngSwitch",t.empty),n.uIk("id",t._valueId),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1),n.xp6(3),n.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},dependencies:[T.mk,T.RF,T.n9,T.ED,cp,Lu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Uu.transformPanelWrap,Uu.transformPanel]},changeDetection:0}),i})(),md=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Nm],imports:[T.ez,Bo,_u,wt,da,Gs,_u,wt]}),i})();const _b=["tooltip"],Ab="tooltip-panel",Vm=kr({passive:!0}),jm=new n.OlP("mat-tooltip-scroll-strategy"),Ar={provide:jm,deps:[rr],useFactory:function EC(i){return()=>i.scrollStrategies.reposition({scrollThrottle:20})}},gd=new n.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function DC(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let LC=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p,m){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=d,this._ngZone=u,this._platform=c,this._ariaDescriber=o,this._focusMonitor=s,this._dir=h,this._defaultOptions=p,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Le.x,this._scrollStrategy=l,this._document=m,p&&(p.position&&(this.position=p.position),p.touchGestures&&(this.touchGestures=p.touchGestures)),h.change.pipe(rt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var t;e!==this._position&&(this._position=e,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition())}get disabled(){return this._disabled}set disabled(e){this._disabled=Ge(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Qt(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Qt(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(rt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,Vm)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new Ys(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=t.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(rt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return r.positionChanges.pipe(rt(this._destroyed)).subscribe(d=>{this._updateCurrentPositionClass(d.connectionPair),this._tooltipInstance&&d.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${Ab}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(rt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(rt(this._destroyed)).subscribe(()=>{var d;return null===(d=this._tooltipInstance)||void 0===d?void 0:d._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(rt(this._destroyed)).subscribe(d=>{this._isTooltipVisible()&&27===d.keyCode&&!Di(d)&&(d.preventDefault(),d.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(e=this._defaultOptions)&&void 0!==e&&e.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),d=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...d.main}),this._addOffset({...r.fallback,...d.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:d,y:u}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:d,originY:u}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:d,y:u}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:d,overlayY:u}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,ht.q)(1),rt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:d}=e;let u;if(u="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===d?"above":"below",u!==this._currentPosition){const c=this._overlayRef;if(c){const o=`${this._cssClassPrefix}-${Ab}-`;c.removePanelClass(o+this._currentPosition),c.addPanelClass(o+u)}this._currentPosition=u}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{var r;const d=t.relatedTarget;(!d||null===(r=this._overlayRef)||void 0===r||!r.overlayElement.contains(d))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,Vm)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),i})(),yr=(()=>{class i extends LC{constructor(e,t,r,d,u,c,o,s,l,h,p,m){super(e,t,r,d,u,c,o,s,l,h,p,m),this._tooltipComponent=wb}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.SBq),n.Y36(ts),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(Qn),n.Y36(hu),n.Y36($r),n.Y36(jm),n.Y36(Hi,8),n.Y36(gd,8),n.Y36(T.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[n.qOj]}),i})(),OS=(()=>{class i{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Le.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,d=this._hideAnimation;if(t.classList.remove(e?d:r),t.classList.add(e?r:d),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const u=getComputedStyle(t);("0s"===u.getPropertyValue("animation-duration")||"none"===u.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i}),i})(),wb=(()=>{class i extends OS{constructor(e,t,r){super(e,r),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(P1),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&n.Gf(_b,7),2&e){let r;n.iGM(r=n.CRH())&&(t._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&n.NdJ("mouseleave",function(d){return t._handleMouseLeave(d)}),2&e&&n.Udp("zoom",t.isVisible()?1:null)},features:[n.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(n.TgZ(0,"div",0,1),n.NdJ("animationend",function(d){return t._handleAnimationEnd(d)}),n.ALo(2,"async"),n._uU(3),n.qZA()),2&e){let r;n.ekj("mat-tooltip-handset",null==(r=n.lcZ(2,4,t._isHandset))?null:r.matches),n.Q6J("ngClass",t.tooltipClass),n.xp6(3),n.Oqu(t.message)}},dependencies:[T.mk,T.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),i})(),Uo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Ar],imports:[Ll,T.ez,Bo,wt,wt,da]}),i})();function HC(i,a){if(1&i&&(n.TgZ(0,"mat-option",19),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function Fm(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",16)(1,"mat-select",17),n.NdJ("selectionChange",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d._changePageSize(r.value))}),n.YNc(2,HC,2,2,"mat-option",18),n.qZA()()}if(2&i){const e=n.oxw(2);n.Q6J("appearance",e._formFieldAppearance)("color",e.color),n.xp6(1),n.Q6J("value",e.pageSize)("disabled",e.disabled)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),n.xp6(1),n.Q6J("ngForOf",e._displayedPageSizeOptions)}}function RC(i,a){if(1&i&&(n.TgZ(0,"div",20),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.pageSize)}}function Mb(i,a){if(1&i&&(n.TgZ(0,"div",12)(1,"div",13),n._uU(2),n.qZA(),n.YNc(3,Fm,3,8,"mat-form-field",14),n.YNc(4,RC,2,1,"div",15),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",e._intl.itemsPerPageLabel," "),n.xp6(1),n.Q6J("ngIf",e._displayedPageSizeOptions.length>1),n.xp6(1),n.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function PC(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.firstPage())}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",22),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),n.uIk("aria-label",e._intl.firstPageLabel)}}function kC(i,a){if(1&i){const e=n.EpF();n.O4$(),n.kcU(),n.TgZ(0,"button",23),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.lastPage())}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",24),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),n.uIk("aria-label",e._intl.lastPageLabel)}}let Ks=(()=>{class i{constructor(){this.changes=new Le.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const d=e*t;return`${d+1} \u2013 ${d<(r=Math.max(r,0))?Math.min(d+t,r):d+t} of ${r}`}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const zm={provide:Ks,deps:[[new n.FiY,new n.tp0,Ks]],useFactory:function OC(i){return i||new Ks}},zp=new n.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Um=Xa(M0(class{}));let IS=(()=>{class i extends Um{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new n.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:d,pageSizeOptions:u,hidePageSize:c,showFirstLastButtons:o}=r;null!=d&&(this._pageSize=d),null!=u&&(this._pageSizeOptions=u),null!=c&&(this._hidePageSize=c),null!=o&&(this._showFirstLastButtons=o)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Qt(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Qt(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Qt(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>Qt(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Ge(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Ge(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[n.qOj]}),i})(),qm=(()=>{class i extends IS{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ks),n.Y36(n.sBO),n.Y36(zp,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[n.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,Mb,5,3,"div",2),n.TgZ(3,"div",3)(4,"div",4),n._uU(5),n.qZA(),n.YNc(6,PC,3,5,"button",5),n.TgZ(7,"button",6),n.NdJ("click",function(){return t.previousPage()}),n.O4$(),n.TgZ(8,"svg",7),n._UZ(9,"path",8),n.qZA()(),n.kcU(),n.TgZ(10,"button",9),n.NdJ("click",function(){return t.nextPage()}),n.O4$(),n.TgZ(11,"svg",7),n._UZ(12,"path",10),n.qZA()(),n.YNc(13,kC,3,5,"button",11),n.qZA()()()),2&e&&(n.xp6(2),n.Q6J("ngIf",!t.hidePageSize),n.xp6(3),n.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),n.xp6(1),n.Q6J("ngIf",t.showFirstLastButtons),n.xp6(1),n.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),n.uIk("aria-label",t._intl.previousPageLabel),n.xp6(3),n.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),n.uIk("aria-label",t._intl.nextPageLabel),n.xp6(3),n.Q6J("ngIf",t.showFirstLastButtons))},dependencies:[T.sg,T.O5,Ht,di,fd,Fs,yr],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),i})(),qu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[zm],imports:[T.ez,Ka,md,Uo,wt]}),i})();var Up=E(1005);const _d=["mat-menu-item",""];function BC(i,a){1&i&&(n.O4$(),n.TgZ(0,"svg",2),n._UZ(1,"polygon",3),n.qZA())}const Ym=["*"];function Wm(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",0),n.NdJ("keydown",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._handleKeydown(r))})("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._onAnimationStart(r))})("@transformMenu.done",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._onAnimationDone(r))}),n.TgZ(1,"div",1),n.Hsn(2),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),n.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Gm={transformMenu:En("transformMenu",[ut("void",je({opacity:0,transform:"scale(0.8)"})),Ot("void => enter",Rt("120ms cubic-bezier(0, 0, 0.2, 1)",je({opacity:1,transform:"scale(1)"}))),Ot("* => void",Rt("100ms 25ms linear",je({opacity:0})))]),fadeInItems:En("fadeInItems",[ut("showing",je({opacity:1})),Ot("void => *",[je({opacity:0}),Rt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},NC=new n.OlP("MatMenuContent"),qp=new n.OlP("MAT_MENU_PANEL"),vb=Ni(Xa(class{}));let bd=(()=>{class i extends vb{constructor(e,t,r,d,u){var c;super(),this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=d,this._changeDetectorRef=u,this.role="menuitem",this._hovered=new Le.x,this._focused=new Le.x,this._highlighted=!1,this._triggersSubmenu=!1,null==d||null===(c=d.addItem)||void 0===c||c.call(d,this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const t=this._elementRef.nativeElement.cloneNode(!0),r=t.querySelectorAll("mat-icon, .material-icons");for(let d=0;d{class i{constructor(e,t,r,d){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._changeDetectorRef=d,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new n.n_E,this._tabSubscription=Nt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Le.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new n.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+FC++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ge(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ge(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new m0(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(vn(this._directDescendantItems),(0,An.w)(e=>(0,kn.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var t;const r=this._keyManager;if("enter"===this._panelAnimationState&&null!==(t=r.activeItem)&&void 0!==t&&t._hasFocus()){const d=e.toArray(),u=Math.max(0,Math.min(d.length-1,r.activeItemIndex||0));d[u]&&!d[u].disabled?r.setActiveItem(u):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(vn(this._directDescendantItems),(0,An.w)(t=>(0,kn.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:Di(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,ht.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,d=Object.keys(this._classList).find(u=>u.startsWith(this._elevationPrefix));(!d||d===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,t=this.yPosition){var r;const d=this._classList;d["mat-menu-before"]="before"===e,d["mat-menu-after"]="after"===e,d["mat-menu-above"]="above"===t,d["mat-menu-below"]="below"===t,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(vn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Tb),n.Y36(n.sBO))},i.\u0275dir=n.lG2({type:i,contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,NC,5),n.Suo(r,bd,5),n.Suo(r,bd,4)),2&e){let d;n.iGM(d=n.CRH())&&(t.lazyContent=d.first),n.iGM(d=n.CRH())&&(t._allItems=d),n.iGM(d=n.CRH())&&(t.items=d)}},viewQuery:function(e,t){if(1&e&&n.Gf(n.Rgc,5),2&e){let r;n.iGM(r=n.CRH())&&(t.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),i})(),Yp=(()=>{class i extends Ad{constructor(e,t,r,d){super(e,t,r,d),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Tb),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&n.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[n._Bn([{provide:qp,useExisting:i}]),n.qOj],ngContentSelectors:Ym,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,Wm,3,6,"ng-template"))},dependencies:[T.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Gm.transformMenu,Gm.fadeInItems]},changeDetection:0}),i})();const $m=new n.OlP("mat-menu-scroll-strategy"),zC={provide:$m,deps:[rr],useFactory:function Sb(i){return()=>i.scrollStrategies.reposition()}},UC=kr({passive:!0});let Eb=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=c,this._dir=o,this._focusMonitor=s,this._ngZone=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Nt.w0.EMPTY,this._hoverSubscription=Nt.w0.EMPTY,this._menuCloseSubscription=Nt.w0.EMPTY,this._handleTouchStart=h=>{_0(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new n.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new n.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=d,this._parentMaterialMenu=u instanceof Ad?u:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,UC),c&&(c._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,UC),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),d=r.positionStrategy;this._setPosition(e,d),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Ad&&(e._startAnimation(),e._directDescendantItems.changes.pipe(rt(e.close)).subscribe(()=>{d.withLockedPosition(!1).reapplyLastPosition(),d.withLockedPosition(!0)}))}closeMenu(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;var r;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof Ad?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,bt.h)(d=>"void"===d.toState),(0,ht.q)(1),rt(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==t||null===(r=t.lazyContent)||void 0===r||r.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new rd({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const d="start"===r.connectionPair.overlayX?"after":"before",u="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(d,u)):e.setPositionClasses(d,u)})}_setPosition(e,t){let[r,d]="before"===e.xPosition?["end","start"]:["start","end"],[u,c]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[o,s]=[u,c],[l,h]=[r,d],p=0;if(this.triggersSubmenu()){if(h=r="before"===e.xPosition?"start":"end",d=l="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const m=this._parentMaterialMenu.items.first;this._parentInnerPadding=m?m._getHostElement().offsetTop:0}p="bottom"===u?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(o="top"===u?"bottom":"top",s="top"===c?"bottom":"top");t.withPositions([{originX:r,originY:o,overlayX:l,overlayY:u,offsetY:p},{originX:d,originY:o,overlayX:h,overlayY:u,offsetY:p},{originX:r,originY:s,overlayX:l,overlayY:c,offsetY:-p},{originX:d,originY:s,overlayX:h,overlayY:c,offsetY:-p}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Ee.of)(),d=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,bt.h)(u=>u!==this._menuItemInstance),(0,bt.h)(()=>this._menuOpen)):(0,Ee.of)();return(0,kn.T)(e,r,d,t)}_handleMousedown(e){jh(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,bt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,Up.g)(0,wu)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ad&&this.menu._isAnimating?this.menu._animationDone.pipe((0,ht.q)(1),(0,Up.g)(0,wu),rt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Oa(e.templateRef,this._viewContainerRef)),this._portal}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.SBq),n.Y36(n.s_b),n.Y36($m),n.Y36(qp,8),n.Y36(bd,10),n.Y36(Hi,8),n.Y36($r),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,hostVars:3,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t._handleClick(d)})("mousedown",function(d){return t._handleMousedown(d)})("keydown",function(d){return t._handleKeydown(d)}),2&e&&n.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),i})(),Db=(()=>{class i extends Eb{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[n.qOj]}),i})(),Wp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[zC],imports:[T.ez,wt,ca,Bo,da,wt]}),i})();const zS=["*"];let Zm;function Gp(i){var a;return(null===(a=function US(){if(void 0===Zm&&(Zm=null,typeof window<"u")){const i=window;void 0!==i.trustedTypes&&(Zm=i.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return Zm}())||void 0===a?void 0:a.createHTML(i))||i}function qC(i){return Error(`Unable to find icon with the name "${i}"`)}function Yu(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function YC(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}class qo{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let Yo=(()=>{class i{constructor(e,t,r,d){this._httpClient=e,this._sanitizer=t,this._errorHandler=d,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,d){return this._addSvgIconConfig(e,t,new qo(r,null,d))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,d){const u=this._sanitizer.sanitize(n.q3G.HTML,r);if(!u)throw YC(r);const c=Gp(u);return this._addSvgIconConfig(e,t,new qo("",c,d))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new qo(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const d=this._sanitizer.sanitize(n.q3G.HTML,t);if(!d)throw YC(t);const u=Gp(d);return this._addSvgIconSetConfig(e,new qo("",u,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,e);if(!t)throw Yu(e);const r=this._cachedIconsByUrl.get(t);return r?(0,Ee.of)(Jm(r)):this._loadSvgIconFromConfig(new qo(e,null)).pipe((0,Wt.b)(d=>this._cachedIconsByUrl.set(t,d)),(0,Mt.U)(d=>Jm(d)))}getNamedSvgIcon(e,t=""){const r=$p(t,e);let d=this._svgIconConfigs.get(r);if(d)return this._getSvgFromConfig(d);if(d=this._getIconConfigFromResolvers(t,e),d)return this._svgIconConfigs.set(r,d),this._getSvgFromConfig(d);const u=this._iconSetConfigs.get(t);return u?this._getSvgFromIconSetConfigs(e,u):(0,Ui._)(qC(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Ee.of)(Jm(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,Mt.U)(t=>Jm(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,Ee.of)(r):ma(t.filter(u=>!u.svgText).map(u=>this._loadSvgIconSetFromConfig(u).pipe((0,Fn.K)(c=>{const s=`Loading icon set URL: ${this._sanitizer.sanitize(n.q3G.RESOURCE_URL,u.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(s)),(0,Ee.of)(null)})))).pipe((0,Mt.U)(()=>{const u=this._extractIconWithNameFromAnySet(e,t);if(!u)throw qC(e);return u}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const d=t[r];if(d.svgText&&d.svgText.toString().indexOf(e)>-1){const u=this._svgElementFromConfig(d),c=this._extractSvgIconFromSet(u,e,d.options);if(c)return c}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Wt.b)(t=>e.svgText=t),(0,Mt.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Ee.of)(null):this._fetchIcon(e).pipe((0,Wt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const d=e.querySelector(`[id="${t}"]`);if(!d)return null;const u=d.cloneNode(!0);if(u.removeAttribute("id"),"svg"===u.nodeName.toLowerCase())return this._setSvgAttributes(u,r);if("symbol"===u.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(u),r);const c=this._svgElementFromString(Gp(""));return c.appendChild(u),this._setSvgAttributes(c,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(Gp("")),r=e.attributes;for(let d=0;dGp(l)),bo(()=>this._inProgressUrlFetches.delete(c)),(0,uo.B)());return this._inProgressUrlFetches.set(c,s),s}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set($p(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;ra?a.pathname+a.search:""}}}),Pb=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ZC=Pb.map(i=>`[${i}]`).join(", "),Zp=/^url\(['"]?#(.*?)['"]?\)$/;let zn=(()=>{class i extends GC{constructor(e,t,r,d,u,c){super(e),this._iconRegistry=t,this._location=d,this._errorHandler=u,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Nt.w0.EMPTY,c&&(c.color&&(this.color=this.defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Ge(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,d)=>{r.forEach(u=>{d.setAttribute(u.name,`url('${e}#${u.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(ZC),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let d=0;d{const c=t[d],o=c.getAttribute(u),s=o?o.match(Zp):null;if(s){let l=r.get(c);l||(l=[],r.set(c,l)),l.push({name:u,value:s[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe((0,ht.q)(1)).subscribe(d=>this._setSvgElement(d),d=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${d.message}`))})}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Yo),n.$8M("aria-hidden"),n.Y36(YS),n.Y36(n.qLn),n.Y36(Rb,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(n.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),n.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.qOj],ngContentSelectors:zS,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),i})(),eo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})(),JC=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[qu,Wp,eo,Ka,po,T.ez]}),i})();var WS=E(5861);function QC(i,a){}class Jp{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let XC=(()=>{class i extends Oo{constructor(e,t,r,d,u,c,o,s){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=d,this._interactivityChecker=u,this._ngZone=c,this._overlayRef=o,this._focusMonitor=s,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=l=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(l);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=r0(),d=this._elementRef.nativeElement;(!r||r===this._document.body||r===d||d.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=r0();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=r0())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(fu),n.Y36(T.K0,8),n.Y36(Jp),n.Y36(Yc),n.Y36(n.R0b),n.Y36(Nl),n.Y36($r))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&n.Gf(id,7),2&e){let r;n.iGM(r=n.CRH())&&(t._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&n.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[n.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&n.YNc(0,QC,0,0,"ng-template",0)},dependencies:[id],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),i})();class Qm{constructor(a,e){this.overlayRef=a,this.config=e,this.closed=new Le.x,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!Di(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(a,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}}const Xm=new n.OlP("DialogScrollStrategy"),kb=new n.OlP("DialogData"),$S=new n.OlP("DefaultDialogConfig"),KC={provide:Xm,deps:[rr],useFactory:function Va(i){return()=>i.scrollStrategies.block()}};let Km=0,Ob=(()=>{class i{constructor(e,t,r,d,u,c){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=d,this._overlayContainer=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Le.x,this._afterOpenedAtThisLevel=new Le.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Rn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(vn(void 0))),this._scrollStrategy=c}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Jp,...t}).id=t.id||"cdk-dialog-"+Km++,t.id&&this.getDialogById(t.id);const d=this._getOverlayConfig(t),u=this._overlay.create(d),c=new Qm(u,t),o=this._attachContainer(u,c,t);return c.containerInstance=o,this._attachDialogContent(e,c,o,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(c),c.closed.subscribe(()=>this._removeOpenDialog(c,!0)),this.afterOpened.next(c),c}closeAll(){wr(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){wr(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),wr(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new rd({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){var d,u;const c=null!==(d=r.injector)&&void 0!==d?d:null===(u=r.viewContainerRef)||void 0===u?void 0:u.injector,o=[{provide:Jp,useValue:r},{provide:Qm,useValue:t},{provide:Nl,useValue:e}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,o.push(...r.container.providers(r))):s=XC;const l=new Ys(s,r.viewContainerRef,n.zs3.create({parent:c||this._injector,providers:o}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,t,r,d){const u=this._createInjector(d,t,r);if(e instanceof n.Rgc){let c={$implicit:d.data,dialogRef:t};d.templateContext&&(c={...c,..."function"==typeof d.templateContext?d.templateContext():d.templateContext}),r.attachTemplatePortal(new Oa(e,null,c,u))}else{const c=r.attachComponentPortal(new Ys(e,d.viewContainerRef,u,d.componentFactoryResolver));t.componentInstance=c.instance}}_createInjector(e,t,r){const d=e&&e.viewContainerRef&&e.viewContainerRef.injector,u=[{provide:kb,useValue:e.data},{provide:Qm,useValue:t}];return e.providers&&("function"==typeof e.providers?u.push(...e.providers(t,e,r)):u.push(...e.providers)),e.direction&&(!d||!d.get(Hi,null,n.XFs.Optional))&&u.push({provide:Hi,useValue:{value:e.direction,change:(0,Ee.of)()}}),n.zs3.create({parent:e.injector||d||this._injector,providers:u})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((d,u)=>{d?u.setAttribute("aria-hidden",d):u.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const d=t[r];d!==e&&"SCRIPT"!==d.nodeName&&"STYLE"!==d.nodeName&&!d.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(d,d.getAttribute("aria-hidden")),d.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(rr),n.LFG(n.zs3),n.LFG($S,8),n.LFG(i,12),n.LFG(Bl),n.LFG(Xm))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function wr(i,a){let e=i.length;for(;e--;)a(i[e])}let ev=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Ob,KC],imports:[Bo,Ws,Ll,Ws]}),i})();function eg(i,a){}const yd={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},tv={dialogContainer:En("dialogContainer",[ut("void, exit",je({opacity:0,transform:"scale(0.7)"})),ut("enter",je({transform:"none"})),Ot("* => enter",dp([Rt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",je({transform:"none",opacity:1})),Br("@*",Hu(),{optional:!0})]),yd),Ot("* => void, * => exit",dp([Rt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",je({opacity:0})),Br("@*",Hu(),{optional:!0})]),yd)])};class Wl{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=yd.params.enterAnimationDuration,this.exitAnimationDuration=yd.params.exitAnimationDuration}}let Ib=(()=>{class i extends XC{constructor(e,t,r,d,u,c,o,s){super(e,t,r,d,u,c,o,s),this._animationStateChanged=new n.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(fu),n.Y36(T.K0,8),n.Y36(Wl),n.Y36(Yc),n.Y36(n.R0b),n.Y36(Nl),n.Y36($r))},i.\u0275cmp=n.Xpm({type:i,selectors:[["ng-component"]],features:[n.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),i})(),Bb=(()=>{class i extends Ib{constructor(e,t,r,d,u,c,o,s,l){super(e,t,r,d,u,c,o,l),this._changeDetectorRef=s,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||yd.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||yd.params.exitAnimationDuration}}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(fu),n.Y36(T.K0,8),n.Y36(Wl),n.Y36(Yc),n.Y36(n.R0b),n.Y36(Nl),n.Y36(n.sBO),n.Y36($r))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&n.WFA("@dialogContainer.start",function(d){return t._onAnimationStart(d)})("@dialogContainer.done",function(d){return t._onAnimationDone(d)}),2&e&&(n.Ikx("id",t._config.id),n.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),n.d8E("@dialogContainer",t._getAnimationState()))},features:[n.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&n.YNc(0,eg,0,0,"ng-template",0)},dependencies:[id],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[tv.dialogContainer]}}),i})();class Ln{constructor(a,e,t){this._ref=a,this._containerInstance=t,this._afterOpened=new Le.x,this._beforeClosed=new Le.x,this._state=0,this.disableClose=e.disableClose,this.id=a.id,t._animationStateChanged.pipe((0,bt.h)(r=>"opened"===r.state),(0,ht.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,bt.h)(r=>"closed"===r.state),(0,ht.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,kn.T)(this.backdropClick(),this.keydownEvents().pipe((0,bt.h)(r=>27===r.keyCode&&!this.disableClose&&!Di(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function Nb(i,a,e){i._closeInteractionType=a,i.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,bt.h)(e=>"closing"===e.state),(0,ht.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const ni=new n.OlP("MatDialogData"),nv=new n.OlP("mat-dialog-default-options"),tg=new n.OlP("mat-dialog-scroll-strategy"),Wo={provide:tg,deps:[rr],useFactory:function ng(i){return()=>i.scrollStrategies.block()}};let Vb=0,ig=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h){this._overlay=e,this._defaultOptions=r,this._parentDialog=d,this._dialogRefConstructor=o,this._dialogContainerType=s,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Le.x,this._afterOpenedAtThisLevel=new Le.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Rn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(vn(void 0))),this._scrollStrategy=c,this._dialog=t.get(Ob)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let r;(t={...this._defaultOptions||new Wl,...t}).id=t.id||`${this._idPrefix}${Vb++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const d=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Wl,useValue:t},{provide:Jp,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(u,c,o)=>{var s;return r=new this._dialogRefConstructor(u,t,o),r.updatePosition(null===(s=t)||void 0===s?void 0:s.position),[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:c.data},{provide:this._dialogRefConstructor,useValue:r}]}});return r.componentInstance=d.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const u=this.openDialogs.indexOf(r);u>-1&&(this.openDialogs.splice(u,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),on=(()=>{class i extends ig{constructor(e,t,r,d,u,c,o,s){super(e,t,d,c,o,u,Ln,Bb,ni,s)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(rr),n.LFG(n.zs3),n.LFG(T.Ye,8),n.LFG(nv,8),n.LFG(tg),n.LFG(i,12),n.LFG(Bl),n.LFG(n.QbO,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),iv=0,Xn=(()=>{class i{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+iv++}ngOnInit(){this._dialogRef||(this._dialogRef=function rv(i,a){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln,8),n.Y36(n.SBq),n.Y36(on))},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&n.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),i})(),ii=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),i})(),Un=(()=>{class i{constructor(){this.align="start"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),i})(),Wu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[on,Wo],imports:[ev,Bo,Ws,wt,wt]}),i})();var JS=E(4327);const Gl=[5,10,25,100];function sg(){return(sg=(0,WS.Z)(function*(i,a){yield zb(i),a()})).apply(this,arguments)}function zb(i){return new Promise(a=>setTimeout(a,i))}function ln(){const i=new Wl;return i.disableClose=!0,i.autoFocus=!1,i}function to(i){return"virt"===i.namespace.split(":")[4]}const mv=new Intl.Collator("cs",{numeric:!0});function $l(i,a,e){const t=a.active,r=a.direction;return t&&""!==r?i.sort((d,u)=>{const c=e(d,t),o=e(u,t);return mv.compare(c,o)*("asc"===r?1:-1)}):i}function Zl(i,a,e,t,r){a=a.toLowerCase();let d="";return e.forEach(u=>{d+=";"+t(i,u)}),r&&(d+=";"+t(i,"uuid")),d.toLowerCase().includes(a)}function ja(i,a,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(d=>!r.includes(d)),i.forEach(d=>{const u={};a.forEach(c=>{u[c]=(e(d,c)??"").split('"').join("''").trim()}),t.push(u)}),t}function Fa(i,a="csv",e="export"){if("csv"===a){const t=(o,s)=>null===s?"":s,r=Object.keys(i[0]),d=i.map(o=>r.map(s=>JSON.stringify(o[s],t)).join(","));d.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const u=d.join("\r\n"),c=new Blob([u],{type:"text/csv"});(0,JS.saveAs)(c,`${e}.${a}`)}}function gv(i,a){return i.name.toLowerCase()>a.name.toLowerCase()?1:i.name.toLowerCase()===a.name.toLowerCase()?0:-1}const $b="GUI_CONFIG.PREF_PAGE_SIZE.";let wv=(()=>{class i{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Zb=(()=>{class i{constructor(e){this.guiConfigService=e,this.defaultTableSizes=new Map,this.defaultTableSizes.set(y,25),this.defaultTableSizes.set(Cv,25)}getTablePageSize(e){const t=this.guiConfigService.getNumber($b+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?this.defaultTableSizes.get(e)??10:r}setTablePageSize(e,t){this.guiConfigService.setNumber($b+e,t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(wv))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Cv="8",y="25";function p2(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.exportAllData.emit("csv"))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let f2=(()=>{class i{constructor(){this.exportDisplayedData=new n.vpe,this.exportAllData=new n.vpe}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(e,t){if(1&e&&(n.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA()(),n.TgZ(4,"mat-menu",null,2)(6,"button",3),n._uU(7),n.ALo(8,"translate"),n.qZA()(),n.TgZ(9,"mat-menu",null,4)(11,"button",3),n._uU(12,"Csv"),n.qZA()(),n.TgZ(13,"mat-menu",5,6)(15,"button",7),n.NdJ("click",function(){return t.exportDisplayedData.emit("csv")}),n._uU(16),n.ALo(17,"translate"),n.qZA(),n.YNc(18,p2,3,3,"button",8),n.qZA()()),2&e){const r=n.MAs(5),d=n.MAs(10),u=n.MAs(14);n.xp6(1),n.Q6J("matMenuTriggerFor",r),n.xp6(5),n.Q6J("matMenuTriggerFor",d),n.xp6(1),n.hij(" ",n.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),n.xp6(4),n.Q6J("matMenuTriggerFor",u),n.xp6(5),n.hij(" ",n.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),n.xp6(2),n.Q6J("ngIf",t.allowExportAll)}},dependencies:[Yp,bd,Db,zn,Ht,T.O5,Ke]}),i})();const m2=["topNav"];function g2(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-table-options",7),n.NdJ("exportDisplayedData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportDisplayedData.emit(r))})("exportAllData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportAllData.emit(r))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("allowExportAll",e.allowExportAll)}}function _2(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-table-options",7),n.NdJ("exportDisplayedData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportDisplayedData.emit(r))})("exportAllData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportAllData.emit(r))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("allowExportAll",e.allowExportAll)}}const b2=["*"];let os=(()=>{class i{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=Gl,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new n.vpe,this.exportAllData=new n.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5),this.paginator._changePageSize(this.pageSize)}pageChangedTop(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}pageChangedBottom(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.paginator.page.emit(e),this.pageSize=e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,e.pageSize),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Zb))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&(n.Gf(m2,5),n.Gf(qm,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.topNav=r.first),n.iGM(r=n.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:b2,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),n.NdJ("page",function(d){return t.pageChangedTop(d)}),n.qZA(),n.YNc(4,g2,1,1,"perun-web-apps-table-options",4),n.qZA(),n.TgZ(5,"div",5),n.Hsn(6),n.qZA(),n.TgZ(7,"div",1)(8,"mat-paginator",6),n.NdJ("page",function(d){return t.pageChangedBottom(d)}),n.qZA(),n.YNc(9,_2,1,1,"perun-web-apps-table-options",4),n.qZA()()),2&e&&(n.xp6(3),n.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),n.xp6(1),n.Q6J("ngIf",!t.hideExport),n.xp6(4),n.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),n.xp6(1),n.Q6J("ngIf",!t.hideExport))},dependencies:[qm,T.O5,f2]}),i})();class hE{static passwordMatchValidator(a){const e=a.get("passwordCtrl").value,t=a.get("passwordAgainCtrl").value;return a.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(a){return e=>{if(!e.value)return null;let t=0;for(const r of a)t+=r.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}let Ut=(()=>{class i{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],r=this.defaultConfig[e];let d=null;for(const u of t)u&&null==d&&(d=u[e]);return null===d?r:this.addMissingValuesToProperty(d,r)}addMissingValuesToProperty(e,t){if(null==e)return t;if("object"==typeof e&&!Array.isArray(e))for(const r of Object.keys(t))e[r]=this.addMissingValuesToProperty(e[r],t[r]);return e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var Jl=E(1214);let Ql=(()=>{class i{constructor(e,t,r,d,u){this.injector=e,this.store=t,this.dialog=r,this.route=d,this.oauthService=u,setTimeout(()=>{this.router=this.injector.get(Dn),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(c=>{c.idpFilter&&(this.filterShortname=String(c.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),d=.5+.25*Math.random(),u=e?{acr_values:e}:{},c=this.store.getProperty("oidc_client");if(c.oauth_scopes.split(" ").includes("offline_access")&&c.oauth_offline_access_consent_prompt&&(u.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(u.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(u.prompt?u.prompt+=" login":u.prompt="login",u.max_age="0"),"Linker"===this.store.getProperty("application")){u.prompt?u.prompt+=" login":u.prompt="login";const o=function bv(i,a){const e=a.split("&");for(const t of e){const[r,d]=t.split("=");if(r.includes(i))return d}return""}("idphint",location.search.substring(1));o&&(u.idphint=o)}return{requestAccessToken:!0,issuer:c.oauth_authority,clientId:c.oauth_client_id,redirectUri:c.oauth_redirect_uri,postLogoutRedirectUri:c.oauth_post_logout_redirect_uri,responseType:c.oauth_response_type,scope:c.oauth_scopes,clockSkewInSec:1,timeoutFactor:d,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:u}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let r=null;return e.forEach(d=>{const u=d.split("=");"idpFilter"===u[0]&&t[u[1]]&&(this.filterShortname=u[1],r=t[u[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}startIdpFilterKeeper(){this.router.events.pipe((0,bt.h)(e=>e instanceof Rr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.zs3),n.LFG(Ut),n.LFG(on),n.LFG(mi),n.LFG(Jl.Ct))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),A2=(()=>{class i{constructor(e){this.dialogRef=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(n.TgZ(0,"h2",0),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[ii,Ke]}),i})();var y2=E(930);function pE(i,a){const e="object"==typeof a;return new Promise((t,r)=>{const d=new y2.Hp({next:u=>{t(u),d.unsubscribe()},error:r,complete:()=>{e?t(a.defaultValue):r(new wa.K)}});i.subscribe(d)})}function w2(i,a){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," info "),n.qZA())}function M2(i,a){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," warning "),n.qZA())}function C2(i,a){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," dangerous "),n.qZA())}function v2(i,a){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," check_circle "),n.qZA())}const T2=["*"];let yi=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:T2,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0),n.YNc(1,w2,2,0,"mat-icon",1),n.YNc(2,M2,2,0,"mat-icon",1),n.YNc(3,C2,2,0,"mat-icon",1),n.YNc(4,v2,2,0,"mat-icon",1),n.Hsn(5),n.qZA()),2&e&&(n.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),n.xp6(1),n.Q6J("ngIf","info"===t.alert_type),n.xp6(1),n.Q6J("ngIf","warn"===t.alert_type),n.xp6(1),n.Q6J("ngIf","error"===t.alert_type),n.xp6(1),n.Q6J("ngIf","success"===t.alert_type))},dependencies:[zn,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),i})(),x2=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"translate"),n.qZA()(),n.TgZ(8,"div",3)(9,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(13),n.ALo(14,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),n.xp6(4),n.hij(" ",t.data.mfaRoleException?n.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):n.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),n.xp6(4),n.Q6J("hidden",t.data.mfaRoleException),n.xp6(1),n.hij(" ",n.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),n.xp6(2),n.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),n.xp6(1),n.hij(" ",n.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Xn,ii,Un,Ht,yi,Ke]}),i})(),S2=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),n._uU(3," info "),n.qZA(),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div"),n._uU(7),n.ALo(8,"translate"),n.qZA()()),2&e&&(n.xp6(4),n.hij(" ",n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),n.xp6(3),n.hij(" ",n.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[zn,Ke],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),i})(),E2=(()=>{class i{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(ni),n.Y36(Ln))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"div",3)(8,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(12),n.ALo(13,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),n.xp6(4),n.hij(" ",n.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),n.xp6(4),n.hij(" ",n.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),n.xp6(3),n.hij(" ",n.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Xn,ii,Un,Ht,yi,Ke]}),i})(),vv=(()=>{class i{constructor(e,t,r,d){this.dialog=e,this.oauthService=t,this.authService=r,this.store=d}openMfaWindow(e){let t=null,r=null;const d=ln();d.width="450px",d.data={mfaRoleException:e};const u=this.dialog.open(x2,d);let c=!1;if(u.afterClosed().subscribe(o=>{if(o){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const s=ln();s.width="450px",s.panelClass="noBorderDialog",r=this.dialog.open(S2,s)}}else c=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const o=ln();o.width="450px",o.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(E2,o)}return new yn.y(o=>{const s=setInterval(()=>t?.closed?(clearInterval(s),r.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),o.next(!0)):c?(clearInterval(s),o.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,d=window.top;return window.open(e,"_blank",`width=600,height=600,top=${d.outerHeight/2+d.screenY-300}, left=${d.outerWidth/2+d.screenX-300}`)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(on),n.LFG(Jl.Ct),n.LFG(Ql),n.LFG(Ut))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Tv=(()=>{class i{constructor(e,t,r,d,u,c,o,s){this.authService=e,this.oauthService=t,this.storeService=r,this.authResolver=d,this.authzService=u,this.dialog=c,this.router=o,this.mfaHandlerService=s,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return pE(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=ln();this.dialog.open(A2,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return pE(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const r={};return t.split("&").forEach(d=>{const u=d.split("=");r[u[0]]=u[1]}),this.router.navigate(["service-access"],{queryParams:r,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,bt.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let d=[];r&&(d=r.split("&"));const u={};return d.forEach(c=>{const o=c.split("=");u[o[0]]=o[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:u,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ql),n.LFG(Jl.Ct),n.LFG(Ut),n.LFG(Cn),n.LFG(As),n.LFG(on),n.LFG(Dn),n.LFG(vv))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),fE=(()=>{class i{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Yo),n.LFG(ei))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),mE=(()=>{class i{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div",2)(7,"div",3)(8,"button",4),n.NdJ("click",function(){return t.close()}),n._uU(9),n.ALo(10,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),n.xp6(3),n.hij(" ",n.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),n.xp6(5),n.hij(" ",n.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Xn,ii,Un,Ht,Ke]}),i})(),cg=(()=>{class i{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Mr=(()=>{class i{constructor(e){this.translate=e,this.addNotification=new n.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,r,d,u){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===d&&void 0!==r?this.getDefaultActionMessage():d,delay:this.defaultErrorDelayMs,icon:"error_outline",action:u,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,d){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===r&&void 0!==t?this.getDefaultActionMessage():r,delay:this.defaultSuccessDelayMs,icon:"done",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(tn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),gE=(()=>{class i{constructor(e,t,r,d,u,c,o,s){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=d,this.dialog=u,this.initAuthService=c,this.mfaHandlerService=o,this.oauthService=s}intercept(e,t){const r=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const d=ln();d.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(mE,d),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{bo(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const r=this.apiRequestConfiguration.shouldHandleError(),d="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Wt.b)(u=>{u instanceof C.Zn&&d&&this.initAuthService.loadPrincipal()}),(0,Fn.K)(u=>{const c=u.error;if("MfaPrivilegeException"===c.type||"MfaRolePrivilegeException"===c.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===c.type).pipe((0,An.w)(o=>o?("MfaRolePrivilegeException"===c.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,Ui._)(()=>c)));{this.handleInvalidAccessTokenError(u);const o=this.formatErrors(u,e);return void 0===o?(0,Ui._)(()=>u):(r&&this.notificator.showRPCError(o),(0,Ui._)(()=>o))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let r;console.error(e);const d=e.error;if(d.errorId&&(r=d),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){if(!this.isLoggedIn()||"invalid_token"===e.error.error||null!=this.dialogRefSessionExpiration)return;const t=ln();this.dialogRefSessionExpiration=this.dialog.open(mE,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ql),n.LFG(cg),n.LFG(Mr),n.LFG(Ut),n.LFG(on),n.LFG(Tv),n.LFG(vv),n.LFG(Jl.Ct))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),oA=(()=>{class i{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),D2=(()=>{class i{constructor(e,t,r,d){this.http=e,this.notificator=t,this.authService=r,this.storeService=d}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new C.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.get(r,{headers:this.getHeaders()}).pipe((0,Fn.K)(d=>this.formatErrors(d,r,null,t)))}put(e,t={},r=!0){const d=`${this.getApiUrl()}${e}`,u=JSON.stringify(t);return this.http.put(d,u,{headers:this.getHeaders()}).pipe((0,Fn.K)(c=>this.formatErrors(c,d,u,r)))}post(e,t={},r=!0){const d=`${this.getApiUrl()}${e}`,u=JSON.stringify(t);let c=this.getHeaders();return c=c.set("Content-Type","application/json; charset=utf-8"),this.http.post(d,u,{headers:c}).pipe((0,Fn.K)(o=>this.formatErrors(o,d,u,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,Fn.K)(d=>this.formatErrors(d,r,null,t)))}formatErrors(e,t,r,d){const u=e.error;return u.call=t,u.payload=r,d&&this.notificator.showRPCError(e.error),(0,Ui._)(u)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Mr),n.LFG(Ql),n.LFG(Ut))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),lA=(()=>{class i{isAllSelected(e,t,r=(()=>!0)){const d=t.paginator.pageSize??0,u=t.paginator.pageIndex??0,c=t.paginator.hasNextPage(),o=t.data.length===t.filteredData.length;this.numCanBeSelected=0,this.pageStart=u*d,this.pageEnd=this.pageStart+d,this.numSelected=e,this.dataLength=o?t.data.length:t.filteredData.length;const s=t.sort;return c||(this.modulo=this.dataLength%d,this.pageEnd=0===this.modulo?this.pageStart+d:this.pageStart+this.modulo),this.pageIterator=0,(s?t.sortData(t.filteredData,s):t.filteredData).forEach(h=>{this.pageStart<=this.pageIterator&&this.pageIterator{s?l(h)&&this.pageStart<=this.pageIterator&&this.pageIterator!0)){return t===e.data.reduce((d,u)=>d+Number(r(u)),0)}masterTogglePaginated(e,t,r,d=(()=>!0)){t.clear(),r&&e.data.forEach(u=>{d(u)&&t.select(u)})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),xv=(()=>{class i{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),r=navigator.languages.map(c=>c.split("-")[0]),d=location.search.substring(1).split("&");let u=null;for(const c of d){const o=c.split("=");"lang"===o[0]&&(u=o[1])}return u&&t.includes(u)?u:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(mi),n.LFG(Ut))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),cA=(()=>{class i{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const d of e)if(d.newApps.admin===t||d.newApps.profile===t||d.newApps.pwdReset===t||d.newApps.consolidator===t||d.newApps.linker===t)return d;return e.filter(d=>"default"===d.name)[0]||e[0]}getUrlForOtherApplication(e,t){const d=window.location.href.split("/"),u=d[0]+"//"+d[2],c=i.getBrandContainingDomain(this.storeService.getAppsConfig().brands,u);let o;if(c.newApps[e])o=c.newApps[e],"pwdReset"===e&&(o+=`?login-namespace=${t}`);else switch(o=c.oldGuiDomain+"/fed",e){case"admin":o+="/gui/";break;case"profile":o+="/profile/";break;case"pwdReset":o+=`/pwd-reset/?login-namespace=${t}`}return o}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ut))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Sv=(()=>{class i{setEntity(e){this.entity=e}getEntity(){return this.entity}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),H2=(()=>{class i{constructor(e,t,r){this.store=e,this.oauthService=t,this.httpClient=r,this.mfaApiUrl=this.store.getProperty("mfa").api_url}isMfaAvailable(){return this.httpClient.get(this.mfaApiUrl+"mfaAvailable",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}getCategories(){return this.httpClient.get(this.mfaApiUrl+"categories",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}getSettings(){return this.httpClient.get(this.mfaApiUrl+"settings",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}enforceMfaForAllServices(e){const t=`value=${String(e)}`;return this.httpClient.put(this.mfaApiUrl+"mfaEnforced",t,{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}updateDetailSettings(e){return this.httpClient.put(this.mfaApiUrl+"settings",e,{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken(),"content-type":"application/json"}})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ut),n.LFG(Jl.Ct),n.LFG(C.eN))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var Go=(()=>{return(i=Go||(Go={})).Admin="admin",i.Profile="profile",i.PwdReset="pwdReset",i.Consolidator="consolidator",i.Linker="linker",Go;var i})();const dA=["*"],R2=["content"];function P2(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._onBackdropClicked())}),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function k2(i,a){1&i&&(n.TgZ(0,"mat-drawer-content"),n.Hsn(1,2),n.qZA())}const O2=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],I2=["mat-drawer","mat-drawer-content","*"];function B2(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._onBackdropClicked())}),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function N2(i,a){1&i&&(n.TgZ(0,"mat-sidenav-content"),n.Hsn(1,2),n.qZA())}const V2=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],j2=["mat-sidenav","mat-sidenav-content","*"],_E={transformDrawer:En("transform",[ut("open, open-instant",je({transform:"none",visibility:"visible"})),ut("void",je({"box-shadow":"none",visibility:"hidden"})),Ot("void => open-instant",Rt("0ms")),Ot("void <=> open, open-instant => void",Rt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},z2=new n.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function U2(){return!1}}),Ev=new n.OlP("MAT_DRAWER_CONTAINER");let uA=(()=>{class i extends Il{constructor(e,t,r,d,u){super(r,d,u),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(()=>AE)),n.Y36(n.SBq),n.Y36(ts),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&n.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[n._Bn([{provide:Il,useExisting:i}]),n.qOj],ngContentSelectors:dA,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),i})(),bE=(()=>{class i{constructor(e,t,r,d,u,c,o,s){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=d,this._ngZone=u,this._interactivityChecker=c,this._doc=o,this._container=s,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Le.x,this._animationEnd=new Le.x,this._animationState="void",this.openedChange=new n.vpe(!0),this._openedStream=this.openedChange.pipe((0,bt.h)(l=>l),(0,Mt.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,bt.h)(l=>l.fromState!==l.toState&&0===l.toState.indexOf("open")),(0,tl.h)(void 0)),this._closedStream=this.openedChange.pipe((0,bt.h)(l=>!l),(0,Mt.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,bt.h)(l=>l.fromState!==l.toState&&"void"===l.toState),(0,tl.h)(void 0)),this._destroyed=new Le.x,this.onPositionChanged=new n.vpe,this._modeChanged=new Le.x,this.openedChange.subscribe(l=>{l?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{zs(this._elementRef.nativeElement,"keydown").pipe((0,bt.h)(l=>27===l.keyCode&&!this.disableClose&&!Di(l)),rt(this._destroyed)).subscribe(l=>this._ngZone.run(()=>{this.close(),l.stopPropagation(),l.preventDefault()}))}),this._animationEnd.pipe(Uc((l,h)=>l.fromState===h.fromState&&l.toState===h.toState)).subscribe(l=>{const{fromState:h,toState:p}=l;(0===p.indexOf("open")&&"void"===h||"void"===p&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Ge(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Ge(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Ge(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(d=>{this.openedChange.pipe((0,ht.q)(1)).subscribe(u=>d(u?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(fu),n.Y36($r),n.Y36(Qn),n.Y36(n.R0b),n.Y36(Yc),n.Y36(T.K0,8),n.Y36(Ev,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&n.Gf(R2,5),2&e){let r;n.iGM(r=n.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&n.WFA("@transform.start",function(d){return t._animationStarted.next(d)})("@transform.done",function(d){return t._animationEnd.next(d)}),2&e&&(n.uIk("align",null),n.d8E("@transform",t._animationState),n.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:dA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},dependencies:[Il],encapsulation:2,data:{animation:[_E.transformDrawer]},changeDetection:0}),i})(),AE=(()=>{class i{constructor(e,t,r,d,u,c=!1,o){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=d,this._animationMode=o,this._drawers=new n.n_E,this.backdropClick=new n.vpe,this._destroyed=new Le.x,this._doCheckSubject=new Le.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Le.x,e&&e.change.pipe(rt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),u.change().pipe(rt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=c}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Ge(e)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(e){this._backdropOverride=null==e?null:Ge(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(vn(this._allDrawers),rt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(vn(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,du.b)(10),rt(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,bt.h)(t=>t.fromState!==t.toState),rt(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(rt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(rt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,ht.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(rt((0,kn.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Hi,8),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(Us),n.Y36(z2),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,uA,5),n.Suo(r,bE,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._content=d.first),n.iGM(d=n.CRH())&&(t._allDrawers=d)}},viewQuery:function(e,t){if(1&e&&n.Gf(uA,5),2&e){let r;n.iGM(r=n.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[n._Bn([{provide:Ev,useExisting:i}])],ngContentSelectors:I2,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(n.F$t(O2),n.YNc(0,P2,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,k2,2,0,"mat-drawer-content",1)),2&e&&(n.Q6J("ngIf",t.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!t._content))},dependencies:[T.O5,uA],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),i})(),Dv=(()=>{class i extends uA{constructor(e,t,r,d,u){super(e,t,r,d,u)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(()=>wE)),n.Y36(n.SBq),n.Y36(ts),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&n.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[n._Bn([{provide:Il,useExisting:i}]),n.qOj],ngContentSelectors:dA,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),i})(),yE=(()=>{class i extends bE{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Ge(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Qt(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Qt(e)}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(n.uIk("align",null),n.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),n.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[n.qOj],ngContentSelectors:dA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},dependencies:[Il],encapsulation:2,data:{animation:[_E.transformDrawer]},changeDetection:0}),i})(),wE=(()=>{class i extends AE{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,Dv,5),n.Suo(r,yE,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._content=d.first),n.iGM(d=n.CRH())&&(t._allDrawers=d)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[n._Bn([{provide:Ev,useExisting:i}]),n.qOj],ngContentSelectors:j2,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(n.F$t(V2),n.YNc(0,B2,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,N2,2,0,"mat-sidenav-content",1)),2&e&&(n.Q6J("ngIf",t.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!t._content))},dependencies:[T.O5,Dv],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),i})(),Lv=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,wt,da,da,wt]}),i})();function ME(i){for(let e in i){var a;let t=null!==(a=i[e])&&void 0!==a?a:"";switch(e){case"display":i.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":i["-webkit-"+e]=t;break;case"flex-direction":i["-webkit-flex-direction"]=t,i["flex-direction"]=t;break;case"order":i.order=i["-webkit-"+e]=isNaN(+t)?"0":t}}return i}const Hv="inline",hA=["row","column","row-reverse","column-reverse"];function CE(i){let[a,e,t]=function vE(i){var a,e;i=null!==(a=null===(e=i)||void 0===e?void 0:e.toLowerCase())&&void 0!==a?a:"";let[t,r,d]=i.split(" ");return hA.find(u=>u===t)||(t=hA[0]),r===Hv&&(r=d!==Hv?d:"",d=Hv),[t,q2(r),!!d]}(i);return function Y2(i,a=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":i,"flex-wrap":a||null}}(a,e,t)}function q2(i){if(i)switch(i.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":i="wrap-reverse";break;case"no":case"none":case"nowrap":i="nowrap";break;default:i="wrap"}return i}const G2={provide:n.tb,useFactory:function W2(i,a){return()=>{if((0,T.NF)(a)){const e=Array.from(i.querySelectorAll(`[class*=${TE}]`)),t=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${TE}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(t,"")})}}},deps:[T.K0,n.Lbi],multi:!0},TE="flex-layout-";let Rv=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[G2]}),i})();class Gu{constructor(a=!1,e="all",t="",r="",d=0){this.matches=a,this.mediaQuery=e,this.mqAlias=t,this.suffix=r,this.priority=d,this.property=""}clone(){return new Gu(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let $2=(()=>{class i{constructor(){this.stylesheet=new Map}addStyleToElement(e,t,r){const d=this.stylesheet.get(e);d?d.set(t,r):this.stylesheet.set(e,new Map([[t,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,t){const r=this.stylesheet.get(e);let d="";if(r){const u=r.get(t);("number"==typeof u||"string"==typeof u)&&(d=u+"")}return d}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Pv={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},no=new n.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Pv}),Qp=new n.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),kv=new n.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function xE(i,a){var e,t;return i=null!==(e=null===(t=i)||void 0===t?void 0:t.clone())&&void 0!==e?e:new Gu,a&&(i.mqAlias=a.alias,i.mediaQuery=a.mediaQuery,i.suffix=a.suffix,i.priority=a.priority),i}class Ri{constructor(){this.shouldCache=!0}sideEffect(a,e,t){}}let ri=(()=>{class i{constructor(e,t,r,d){this._serverStylesheet=e,this._serverModuleLoaded=t,this._platformId=r,this.layoutConfig=d}applyStyleToElement(e,t,r=null){let d={};"string"==typeof t&&(d[t]=r,t=d),d=this.layoutConfig.disableVendorPrefixes?t:ME(t),this._applyMultiValueStyleToElement(d,e)}applyStyleToElements(e,t=[]){const r=this.layoutConfig.disableVendorPrefixes?e:ME(e);t.forEach(d=>{this._applyMultiValueStyleToElement(r,d)})}getFlowDirection(e){const t="flex-direction";let r=this.lookupStyle(e,t);return[r||"row",this.lookupInlineStyle(e,t)||(0,T.PM)(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,t){var r;return null!==(r=e.getAttribute(t))&&void 0!==r?r:""}lookupInlineStyle(e,t){return(0,T.NF)(this._platformId)?e.style.getPropertyValue(t):function Z2(i,a){var e;return null!==(e=SE(i)[a])&&void 0!==e?e:""}(e,t)}lookupStyle(e,t,r=!1){let d="";return e&&((d=this.lookupInlineStyle(e,t))||((0,T.NF)(this._platformId)?r||(d=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(d=this._serverStylesheet.getStyleForElement(e,t)))),d?d.trim():""}_applyMultiValueStyleToElement(e,t){Object.keys(e).sort().forEach(r=>{const d=e[r],u=Array.isArray(d)?d:[d];u.sort();for(let c of u)c=c?c+"":"",(0,T.NF)(this._platformId)||!this._serverModuleLoaded?(0,T.NF)(this._platformId)?t.style.setProperty(r,c):J2(t,r,c):this._serverStylesheet.addStyleToElement(t,r,c)})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG($2),n.LFG(Qp),n.LFG(n.Lbi),n.LFG(no))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function J2(i,a,e){a=a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const t=SE(i);t[a]=e??"",function Q2(i,a){let e="";for(const t in a)a[t]&&(e+=`${t}:${a[t]};`);i.setAttribute("style",e)}(i,t)}function SE(i){const a={},e=i.getAttribute("style");if(e){const t=e.split(/;+/g);for(let r=0;r0){const u=d.indexOf(":");if(-1===u)throw new Error(`Invalid CSS style: ${d}`);a[d.substr(0,u).trim()]=d.substr(u+1).trim()}}}return a}function ug(i,a){return(a&&a.priority||0)-(i&&i.priority||0)}function X2(i,a){return(i.priority||0)-(a.priority||0)}let Ov=(()=>{class i{constructor(e,t,r){this._zone=e,this._platformId=t,this._document=r,this.source=new pt(new Gu(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((t,r)=>{t.matches&&e.push(r)}),e}isActive(e){var t;return null!==(t=this.registry.get(e)?.matches)&&void 0!==t?t:this.registerQuery(e).some(d=>d.matches)}observe(e,t=!1){if(e&&e.length){const r=this._observable$.pipe((0,bt.h)(u=>!t||e.indexOf(u.mediaQuery)>-1)),d=new yn.y(u=>{const c=this.registerQuery(e);if(c.length){const o=c.pop();c.forEach(s=>{u.next(s)}),this.source.next(o)}u.complete()});return(0,kn.T)(d,r)}return this._observable$}registerQuery(e){const t=Array.isArray(e)?e:[e],r=[];return function K2(i,a){const e=i.filter(t=>!EE[t]);if(e.length>0){const t=e.join(", ");try{const r=a.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(a.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),a.head.appendChild(r),e.forEach(d=>EE[d]=r)}catch(r){console.error(r)}}}(t,this._document),t.forEach(d=>{const u=o=>{this._zone.run(()=>this.source.next(new Gu(o.matches,d)))};let c=this.registry.get(d);c||(c=this.buildMQL(d),c.addListener(u),this.pendingRemoveListenerFns.push(()=>c.removeListener(u)),this.registry.set(d,c)),c.matches&&r.push(new Gu(!0,d))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function eR(i,a){return a&&window.matchMedia("all").addListener?window.matchMedia(i):{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,(0,T.NF)(this._platformId))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b),n.LFG(n.Lbi),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const EE={},tR=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],DE="(orientation: portrait) and (max-width: 599.98px)",LE="(orientation: landscape) and (max-width: 959.98px)",HE="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",RE="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",PE="(orientation: portrait) and (min-width: 840px)",kE="(orientation: landscape) and (min-width: 1280px)",Kl={HANDSET:`${DE}, ${LE}`,TABLET:`${HE} , ${RE}`,WEB:`${PE}, ${kE} `,HANDSET_PORTRAIT:`${DE}`,TABLET_PORTRAIT:`${HE} `,WEB_PORTRAIT:`${PE}`,HANDSET_LANDSCAPE:`${LE}`,TABLET_LANDSCAPE:`${RE}`,WEB_LANDSCAPE:`${kE}`},nR=[{alias:"handset",priority:2e3,mediaQuery:Kl.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Kl.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Kl.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Kl.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Kl.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Kl.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Kl.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Kl.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Kl.WEB_PORTRAIT,overlapping:!0}],iR=/(\.|-|_)/g;function rR(i){let a=i.length>0?i.charAt(0):"",e=i.length>1?i.slice(1):"";return a.toUpperCase()+e}const lR=new n.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const i=(0,n.f3M)(kv),a=(0,n.f3M)(no),e=[].concat.apply([],(i||[]).map(r=>Array.isArray(r)?r:[r]));return function oR(i,a=[]){const e={};return i.forEach(t=>{e[t.alias]=t}),a.forEach(t=>{e[t.alias]?function Xl(i,...a){if(null==i)throw TypeError("Cannot convert undefined or null to object");for(let e of a)if(null!=e)for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}(e[t.alias],t):e[t.alias]=t}),function sR(i){return i.forEach(a=>{a.suffix||(a.suffix=function aR(i){return i.replace(iR,"|").split("|").map(rR).join("")}(a.alias),a.overlapping=!!a.overlapping)}),i}(Object.keys(e).map(t=>e[t]))}((a.disableDefaultBps?[]:tR).concat(a.addOrientationBps?nR:[]),e)}});let Iv=(()=>{class i{constructor(e){this.findByMap=new Map,this.items=[...e].sort(X2)}findByAlias(e){return e?this.findWithPredicate(e,t=>t.alias===e):null}findByQuery(e){return this.findWithPredicate(e,t=>t.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var t;return null!==(t=e?.suffix)&&void 0!==t?t:""})}findWithPredicate(e,t){var r;let d=this.findByMap.get(e);var u;return d||(d=null!==(u=this.items.find(t))&&void 0!==u?u:null,this.findByMap.set(e,d)),null!==(r=d)&&void 0!==r?r:null}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(lR))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Xp="print",cR={alias:Xp,mediaQuery:Xp,priority:1e3};let dR=(()=>{class i{constructor(e,t,r){this.breakpoints=e,this.layoutConfig=t,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new uR,this.deactivations=[]}withPrintQuery(e){return[...e,Xp]}isPrintEvent(e){return e.mediaQuery.startsWith(Xp)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const t=this.breakpoints.findByQuery(e);return(t?[...this.printBreakPoints,t]:this.printBreakPoints).sort(ug)}updateEvent(e){let t=this.breakpoints.findByQuery(e.mediaQuery);var r,d;return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(r=null===(d=t)||void 0===d?void 0:d.mediaQuery)&&void 0!==r?r:""),xE(e,t)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const t=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new Gu(!0,Xp))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",t),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(t),this.afterPrintEventListeners.push(r)}interceptEvents(e){return t=>{this.isPrintEvent(t)?t.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(t)),e.updateStyles()):!t.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,t)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,t){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!t.matches){const r=this.breakpoints.findByQuery(t.mediaQuery);if(r){const d=this.formerActivations&&this.formerActivations.includes(r),u=!this.formerActivations&&e.activatedBreakpoints.includes(r);(d||u)&&(this.deactivations.push(r),this.deactivations.sort(ug))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Iv),n.LFG(no),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class uR{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(a){return a.push(cR),a.sort(ug),a.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(a){a&&void 0===this.printBreakpoints.find(t=>t.mediaQuery===a.mediaQuery)&&(this.printBreakpoints=function hR(i){var a;return null!==(a=i?.mediaQuery.startsWith(Xp))&&void 0!==a&&a}(a)?[a,...this.printBreakpoints]:[...this.printBreakpoints,a])}clear(){this.printBreakpoints=[]}}let ui=(()=>{class i{constructor(e,t,r){this.matchMedia=e,this.breakpoints=t,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new Le.x,this.observeActivations()}get activatedAlias(){var e,t;return null!==(e=null===(t=this.activatedBreakpoints[0])||void 0===t?void 0:t.alias)&&void 0!==e?e:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const t=this.findByQuery(e.mediaQuery);if(t){e=xE(e,t);const r=this.activatedBreakpoints.indexOf(t);e.matches&&-1===r?(this._activatedBreakpoints.push(t),this._activatedBreakpoints.sort(ug),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(ug),this.updateStyles())}}init(e,t,r,d,u=[]){OE(this.updateMap,e,t,r),OE(this.clearMap,e,t,d),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,u)}getValue(e,t,r){const d=this.elementMap.get(e);if(d){const u=void 0!==r?d.get(r):this.getActivatedValues(d,t);if(u)return u.get(t)}}hasValue(e,t){const r=this.elementMap.get(e);if(r){const d=this.getActivatedValues(r,t);if(d)return void 0!==d.get(t)||!1}return!1}setValue(e,t,r,d){let u=this.elementMap.get(e);if(u){var c;const s=(null!==(c=u.get(d))&&void 0!==c?c:new Map).set(t,r);u.set(d,s),this.elementMap.set(e,u)}else u=(new Map).set(d,(new Map).set(t,r)),this.elementMap.set(e,u);const o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}trackValue(e,t){return this.subject.asObservable().pipe((0,bt.h)(r=>r.element===e&&r.key===t))}updateStyles(){this.elementMap.forEach((e,t)=>{const r=new Set(this.elementKeyMap.get(t));let d=this.getActivatedValues(e);d&&d.forEach((u,c)=>{this.updateElement(t,c,u),r.delete(c)}),r.forEach(u=>{if(d=this.getActivatedValues(e,u),d){const c=d.get(u);this.updateElement(t,u,c)}else this.clearElement(t,u)})})}clearElement(e,t){const r=this.clearMap.get(e);if(r){const d=r.get(t);d&&(d(),this.subject.next({element:e,key:t,value:""}))}}updateElement(e,t,r){const d=this.updateMap.get(e);if(d){const u=d.get(t);u&&(u(r),this.subject.next({element:e,key:t,value:r}))}}releaseElement(e){const t=this.watcherMap.get(e);t&&(t.forEach(d=>d.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((d,u)=>r.delete(u)),this.elementMap.delete(e))}triggerUpdate(e,t){const r=this.elementMap.get(e);if(r){const d=this.getActivatedValues(r,t);d&&(t?this.updateElement(e,t,d.get(t)):d.forEach((u,c)=>this.updateElement(e,c,u)))}}buildElementKeyMap(e,t){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(t)}watchExtraTriggers(e,t,r){if(r&&r.length){let d=this.watcherMap.get(e);if(d||(d=new Map,this.watcherMap.set(e,d)),!d.get(t)){const c=(0,kn.T)(...r).subscribe(()=>{const o=this.getValue(e,t);this.updateElement(e,t,o)});d.set(t,c)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,t){for(let d=0;dt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe((0,Wt.b)(this.hook.interceptEvents(this)),(0,bt.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ov),n.LFG(Iv),n.LFG(dR))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function OE(i,a,e,t){if(void 0!==t){var r;const d=null!==(r=i.get(a))&&void 0!==r?r:new Map;d.set(e,t),i.set(a,d)}}let wi=(()=>{class i{constructor(e,t,r,d){this.elementRef=e,this.styleBuilder=t,this.styler=r,this.marshal=d,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Le.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(t=>{if(-1!==this.inputs.indexOf(t)){const r=t.split(".").slice(1).join(".");this.setValue(e[t].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,t){const r=this.styleBuilder,d=r.shouldCache;let u=this.styleCache.get(e);(!u||!d)&&(u=r.buildStyles(e,t),d&&this.styleCache.set(e,u)),this.mru={...u},this.applyStyleToElement(u),r.sideEffect(e,u,t)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,t=!1){if(e){const[r,d]=this.styler.getFlowDirection(e);if(!d&&t){const u=CE(r);this.styler.applyStyleToElements(u,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,t,r=this.nativeElement){this.styler.applyStyleToElement(r,e,t)}setValue(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Ri),n.Y36(ri),n.Y36(ui))},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();class SR{constructor(a,e,t=!0){this.key=a,this.value=e,this.key=t?a.replace(/['"]/g,"").trim():a.trim(),this.value=t?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function VE(i){let a=typeof i;return"object"===a?i.constructor===Array?"array":i.constructor===Set?"set":"object":a}function FE(i){const[a,...e]=i.split(":");return new SR(a,e.join(":"))}function zE(i,a){return a.key&&(i[a.key]=a.value),i}let LR=(()=>{class i extends wi{constructor(e,t,r,d,u,c,o,s,l){var h;super(e,null,t,r),this.sanitizer=d,this.ngStyleInstance=o,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new T.PC(e,u,c)),this.init();const p=null!==(h=this.nativeElement.getAttribute("style"))&&void 0!==h?h:"";this.fallbackStyles=this.buildStyleMap(p),this.isServer=s&&(0,T.PM)(l)}updateWithValue(e){const t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...t},this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const t=r=>{var d;return null!==(d=this.sanitizer.sanitize(n.q3G.STYLE,r))&&void 0!==d?d:""};if(e)switch(VE(e)){case"string":return UE(function ER(i,a=";"){return String(i).trim().split(a).map(e=>e.trim()).filter(e=>""!==e)}(e),t);case"array":return UE(e,t);default:return function jE(i,a){let e=[];return"set"===VE(i)?i.forEach(t=>e.push(t)):Object.keys(i).forEach(t=>{e.push(`${t}:${i[t]}`)}),function DR(i,a){return i.map(FE).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(zE,{})}(e,a)}(e,t)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(ri),n.Y36(ui),n.Y36(ei),n.Y36(n.aQg),n.Y36(n.Qsj),n.Y36(T.PC,10),n.Y36(Qp),n.Y36(n.Lbi))},i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const HR=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let Nv=(()=>{class i extends LR{constructor(){super(...arguments),this.inputs=HR}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[n.qOj]}),i})();function UE(i,a){return i.map(FE).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(zE,{})}let qE=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Rv]}),i})();const YE=kr({passive:!0});let RR=(()=>{class i{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Xi.E;const t=ci(e),r=this._monitoredElements.get(t);if(r)return r.subject;const d=new Le.x,u="cdk-text-field-autofilled",c=o=>{"cdk-text-field-autofill-start"!==o.animationName||t.classList.contains(u)?"cdk-text-field-autofill-end"===o.animationName&&t.classList.contains(u)&&(t.classList.remove(u),this._ngZone.run(()=>d.next({target:o.target,isAutofilled:!1}))):(t.classList.add(u),this._ngZone.run(()=>d.next({target:o.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",c,YE),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:d,unlisten:()=>{t.removeEventListener("animationstart",c,YE)}}),d}stopMonitoring(e){const t=ci(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),fA=(()=>{class i{constructor(e,t,r,d){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new Le.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=u=>{this._hasFocus="focus"===u.type},this._document=d,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=Qt(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Qt(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=Ge(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{zs(this._getWindow(),"resize").pipe(tp(16),rt(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",r=this._platform.FIREFOX,d=r&&this._hasFocus,u=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";d&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(u);const c=e.scrollHeight-4;return e.classList.remove(u),d&&(e.style.marginBottom=t),c}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,r=t.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;const d=this._measureScrollHeight(),u=Math.max(d,this._cachedPlaceholderHeight||0);t.style.height=`${u}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,r)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Qn),n.Y36(n.R0b),n.Y36(T.K0,8))},i.\u0275dir=n.lG2({type:i,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&n.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),i})(),WE=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const GE=new n.OlP("MAT_INPUT_VALUE_ACCESSOR"),PR=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let kR=0;const OR=w0(class{constructor(i,a,e,t){this._defaultErrorStateMatcher=i,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Le.x}});let ji=(()=>{class i extends OR{constructor(e,t,r,d,u,c,o,s,l,h){super(c,d,u,r),this._elementRef=e,this._platform=t,this._autofillMonitor=s,this._formField=h,this._uid="mat-input-"+kR++,this.focused=!1,this.stateChanges=new Le.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>Bc().has(g)),this._iOSKeyupListener=g=>{const f=g.target;!f.value&&0===f.selectionStart&&0===f.selectionEnd&&(f.setSelectionRange(1,1),f.setSelectionRange(0,0))};const p=this._elementRef.nativeElement,m=p.nodeName.toLowerCase();this._inputValueAccessor=o||p,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&l.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===m,this._isTextarea="textarea"===m,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ge(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,t,r,d;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(d=r.control)||void 0===d?void 0:d.hasValidator(bi.required))&&void 0!==e&&e}set required(e){this._required=Ge(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Bc().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ge(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e;const t=this._formField,r=!t||"legacy"!==t.appearance||null!==(e=t._hasLabel)&&void 0!==e&&e.call(t)?this.placeholder:null;if(r!==this._previousPlaceholder){const d=this._elementRef.nativeElement;this._previousPlaceholder=r,r?d.setAttribute("placeholder",r):d.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){PR.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Qn),n.Y36(gn,10),n.Y36(Zs,8),n.Y36(Qs,8),n.Y36(Jc),n.Y36(GE,10),n.Y36(RR),n.Y36(n.R0b),n.Y36(sd,8))},i.\u0275dir=n.lG2({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&n.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(n.Ikx("disabled",t.disabled)("required",t.required),n.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),n.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[n._Bn([{provide:ad,useExisting:i}]),n.qOj,n.TTD]}),i})(),Kp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Jc],imports:[WE,Gs,wt,WE,Gs]}),i})();function IR(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let BR=(()=>{class i{constructor(e,t,r,d,u){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=d,this.storeService=u,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",E(4147).i8)}close(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(tn),n.Y36(Mr),n.Y36(fo),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"input",2,3),n.NdJ("ngModelChange",function(d){return t.subject=d}),n.qZA(),n.YNc(10,IR,3,3,"mat-error",4),n.qZA(),n.TgZ(11,"mat-form-field")(12,"mat-label"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"textarea",5),n.NdJ("ngModelChange",function(d){return t.message=d}),n.ALo(16,"translate"),n._uU(17," "),n.qZA(),n.TgZ(18,"mat-hint"),n._uU(19),n.ALo(20,"translate"),n.qZA()()(),n.TgZ(21,"div",6)(22,"div",7)(23,"button",8),n.NdJ("click",function(){return t.close()}),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.TgZ(26,"button",9),n.NdJ("click",function(){return t.sendBugReport()}),n._uU(27),n.ALo(28,"translate"),n.qZA()()()),2&e){const r=n.MAs(9);n.xp6(1),n.Oqu(n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),n.xp6(5),n.Oqu(n.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),n.xp6(2),n.Q6J("ngModel",t.subject),n.xp6(2),n.Q6J("ngIf",r.invalid),n.xp6(3),n.Oqu(n.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),n.xp6(2),n.s9C("placeholder",n.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),n.Q6J("ngModel",t.message),n.xp6(4),n.Oqu(n.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),n.xp6(5),n.hij(" ",n.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",r.invalid),n.xp6(1),n.hij(" ",n.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[T.O5,_i,Ai,Nr,ua,Ht,Na,di,x_,as,ji,Xn,ii,Un,Ke],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})(),$E=(()=>{class i{transform(e,t,r){return e[`${r}_${t}`]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"localisedText",type:i,pure:!0}),i})(),NR=(()=>{class i{transform(e,t){return e["link_"+t]||e.link_en}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"localisedLink",type:i,pure:!0}),i})(),VR=(()=>{class i{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"footerLogoPath",type:i,pure:!0}),i})();function jR(i,a){if(1&i&&(n.TgZ(0,"a",13),n.ALo(1,"localisedLink"),n._UZ(2,"img",14),n.ALo(3,"footerLogoPath"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("href",n.xi3(1,2,e,t.language),n.LSH),n.xp6(2),n.s9C("src",n.lcZ(3,5,e.logo),n.LSH)}}function FR(i,a){if(1&i&&(n.TgZ(0,"span"),n._UZ(1,"img",14),n.ALo(2,"footerLogoPath"),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.s9C("src",n.lcZ(2,1,e.logo),n.LSH)}}function zR(i,a){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,jR,4,7,"a",11),n.ALo(2,"localisedLink"),n.YNc(3,FR,3,3,"span",12),n.ALo(4,"localisedLink"),n.qZA()),2&i){const e=a.$implicit,t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",n.xi3(2,2,e,t.language)),n.xp6(2),n.Q6J("ngIf",!n.xi3(4,5,e,t.language))}}const UR=function(i){return{"min-height":i}};function qR(i,a){if(1&i&&(n.TgZ(0,"div",10),n.YNc(1,zR,5,8,"div",5),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw();n.Q6J("ngStyle",n.VKq(2,UR,t.columnContentHeight+"px")),n.xp6(1),n.Q6J("ngForOf",e.elements)}}const ec=function(i){return{color:i}};function YR(i,a){if(1&i&&(n.TgZ(0,"i",20),n._uU(1),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(2,ec,t.linksTextColor)),n.xp6(1),n.hij(" ",e.icon," ")}}function WR(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"span",21),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw(3);return n.KtG(d.openDialog(r.dialog))}),n._uU(1),n.ALo(2,"localisedText"),n.qZA()}if(2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,ec,t.linksTextColor)),n.xp6(1),n.hij("",n.Dn7(2,2,e,t.language,"label")," ")}}function GR(i,a){if(1&i&&(n.TgZ(0,"a",22),n.ALo(1,"localisedLink"),n._uU(2),n.ALo(3,"localisedText"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("href",n.xi3(1,3,e,t.language),n.LSH)("ngStyle",n.VKq(10,ec,t.linksTextColor)),n.xp6(2),n.Oqu(n.Dn7(3,6,e,t.language,"label"))}}function $R(i,a){if(1&i&&(n.TgZ(0,"span",10),n._uU(1),n.ALo(2,"localisedText"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,ec,t.linksTextColor)),n.xp6(1),n.Oqu(n.Dn7(2,2,e,t.language,"label"))}}function ZR(i,a){if(1&i&&(n.TgZ(0,"div",16),n.YNc(1,YR,2,4,"i",17),n.YNc(2,WR,3,8,"span",18),n.YNc(3,GR,4,12,"a",19),n.ALo(4,"localisedLink"),n.YNc(5,$R,3,8,"span",9),n.ALo(6,"localisedLink"),n.qZA()),2&i){const e=a.$implicit,t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",e.icon),n.xp6(1),n.Q6J("ngIf",e.dialog),n.xp6(1),n.Q6J("ngIf",n.xi3(4,4,e,t.language)&&!e.dialog),n.xp6(2),n.Q6J("ngIf",!n.xi3(6,7,e,t.language)&&!e.dialog)}}const JR=function(i){return{height:i}};function QR(i,a){if(1&i&&(n.TgZ(0,"div",10),n.YNc(1,ZR,7,10,"div",15),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw();n.Q6J("ngStyle",n.VKq(2,JR,t.columnContentHeight+"px")),n.xp6(1),n.Q6J("ngForOf",e.elements)}}function XR(i,a){if(1&i&&(n.TgZ(0,"div",7)(1,"h6",8),n._uU(2),n.ALo(3,"localisedText"),n.qZA(),n.YNc(4,qR,2,4,"div",9),n.YNc(5,QR,2,4,"div",9),n.qZA()),2&i){const e=a.$implicit,t=n.oxw();n.ekj("my-auto",t.containsLogos),n.xp6(1),n.Q6J("ngStyle",n.VKq(10,ec,t.headersTextColor)),n.xp6(1),n.hij(" ",n.Dn7(3,6,e,t.language,"title")," "),n.xp6(2),n.Q6J("ngIf",e.logos),n.xp6(1),n.Q6J("ngIf",e.elements&&!e.logos)}}function KR(i,a){if(1&i&&(n.TgZ(0,"span")(1,"a",6),n._uU(2),n.qZA()()),2&i){const e=a.$implicit,t=a.index,r=n.oxw();n.xp6(1),n.Q6J("href",e.url,n.LSH)("ngStyle",n.VKq(3,ec,r.copyrightTextColor)),n.xp6(1),n.Oqu(t?", "+e.name:e.name)}}const eP=function(i){return{background:i}};let ZE=(()=>{class i{constructor(e,t,r,d){this.storeService=e,this.translateService=t,this.utilsService=r,this.dialog=d,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="N/A",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=E(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=E(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(e=>{const t=e.match("\\bVersion:\\s*([^,\\s]+)");null!==t&&(this.backendVersion=t[1])}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(e){const t=ln();"reportIssue"===e&&(t.width="550px",this.dialog.open(BR,t))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(tn),n.Y36(Ti),n.Y36(on))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(n.TgZ(0,"footer",0)(1,"div",1),n.YNc(2,XR,6,12,"div",2),n.qZA(),n._UZ(3,"hr",3),n.TgZ(4,"div",4),n._uU(5),n.YNc(6,KR,3,5,"span",5),n._uU(7,", web application: "),n.TgZ(8,"a",6),n._uU(9),n.qZA(),n._uU(10,", server: "),n.TgZ(11,"a",6),n._uU(12),n.qZA()()()),2&e&&(n.Q6J("ngStyle",n.VKq(11,eP,t.bgColor)),n.xp6(2),n.Q6J("ngForOf",t.footerColumns),n.xp6(2),n.Q6J("ngStyle",n.VKq(13,ec,t.copyrightTextColor)),n.xp6(1),n.hij(" \xa9 ",t.currentYear," Copyright: "),n.xp6(1),n.Q6J("ngForOf",t.copyrightItems),n.xp6(2),n.Q6J("href",t.githubRepository,n.LSH)("ngStyle",n.VKq(15,ec,t.copyrightTextColor)),n.xp6(1),n.Oqu(t.guiVersion),n.xp6(2),n.Q6J("href",t.githubBackendRepository,n.LSH)("ngStyle",n.VKq(17,ec,t.copyrightTextColor)),n.xp6(1),n.Oqu(t.backendVersion))},dependencies:[T.sg,T.O5,T.PC,$E,NR,VR],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),i})();En("openClose",[ut("open",je({overflow:"hidden"})),ut("closed",je({height:"0px",overflow:"hidden"})),Ot("open <=> closed",[Rt(".3s ease-in")])]);const tP=En("flyInOut",[Ot(":enter",[je({transform:"translateX(100%)"}),Rt(".25s")]),Ot(":leave",[Rt(".5s",je({transform:"translateX(100%)"}))])]);En("rollInOut",[Ot(":enter",[je({height:"0px"}),Rt(".25s")]),Ot(":leave",[Rt(".25s",je({height:"0px"}))])]),En("routeAnimations",[Ot("* => *",[je({position:"relative"}),Br(":enter",[je({width:"100%",opacity:0})],{optional:!0}),Br(":leave",[je({position:"absolute",width:"100%",opacity:1}),Rt("0.15s",je({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Br(":enter",[je({position:"absolute",width:"100%",opacity:0}),Rt("0.15s",je({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),En("tagsOpenClose",[ut("open",je({})),ut("closed",je({width:"0px",height:"0px"})),Ot("open <=> closed",[Rt(".3s ease-in")])]),En("switchAnimations",[Ot("true => false",[Br(":enter, :leave",je({})),dp([Br(":enter",[je({transform:"translateX(-100%)"}),Rt("1s ease-in-out",je({transform:"translateX(0%)"}))],{optional:!0}),Br(":leave",[je({transform:"translateX(0%)",position:"absolute"}),Rt("1s ease-in-out",je({transform:"translateX(100%)"}))],{optional:!0})])]),Ot("false => true",[Br(":enter, :leave",je({})),dp([Br(":enter",[je({transform:"translateX(100%)"}),Rt("1s ease-in-out",je({transform:"translateX(0%)"}))],{optional:!0}),Br(":leave",[je({transform:"translateX(0%)",position:"absolute"}),Rt("1s ease-in-out",je({transform:"translateX(-100%)"}))],{optional:!0})])])]),En("slideInOutLeft",[Ot(":enter",[je({transform:"translateX(-100%)",position:"relative"}),Rt("0.5s ease-in",je({transform:"translateX(0%)"}))]),Ot(":leave",[Rt("0.5s ease-in",je({transform:"translateX(-100%)"}))])]),En("slideInOutRight",[Ot(":enter",[je({transform:"translateX(100%)",position:"fixed"}),Rt("0.5s ease-in",je({transform:"translateX(0%)"}))]),Ot(":leave",[je({transform:"translateX(-100%)",position:"relative"}),Rt("0.5s ease-in",je({transform:"translateX(100%)"}))])]);let JE=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez]}),i})(),mA=(()=>{class i{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"userFullName",type:i,pure:!0}),i})(),Xt=(()=>{class i{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const r=this.storage.getProperty("custom_labels");if(r)for(const d of r)if(d.label===e)return d[t];return e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tn,16),n.Y36(Ut,16))},i.\u0275pipe=n.Yjl({name:"customTranslate",type:i,pure:!0}),i})();function nP(i,a){if(1&i&&(n.O4$(),n._UZ(0,"circle",4)),2&i){const e=n.oxw(),t=n.MAs(1);n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),n.uIk("r",e._getCircleRadius())}}function iP(i,a){if(1&i&&(n.O4$(),n._UZ(0,"circle",4)),2&i){const e=n.oxw(),t=n.MAs(1);n.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),n.uIk("r",e._getCircleRadius())}}const aP=Hl(class{constructor(i){this._elementRef=i}},"primary"),sP=new n.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function oP(){return{diameter:100}}});class Hn extends aP{constructor(a,e,t,r,d,u,c,o){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Nt.w0.EMPTY,this.mode="determinate";const s=Hn._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),s.has(t.head)||s.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!d&&!d._forceAnimations,"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),d&&(d.color&&(this.color=this.defaultColor=d.color),d.diameter&&(this.diameter=d.diameter),d.strokeWidth&&(this.strokeWidth=d.strokeWidth)),e.isBrowser&&e.SAFARI&&c&&u&&o&&(this._resizeSubscription=c.change(150).subscribe(()=>{"indeterminate"===this.mode&&o.run(()=>u.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=Qt(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=Qt(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,Qt(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=au(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){var e;const t=50*(null!==(e=a.currentScale)&&void 0!==e?e:1);return`${t}% ${t}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Hn._diameters;let r=t.get(a);if(!r||!r.has(e)){const d=this._document.createElement("style");d.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),d.textContent=this._getAnimationText(),a.appendChild(d),r||(r=new Set,t.set(a,r)),r.add(e)}}_getAnimationText(){const a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Hn._diameters=new WeakMap,Hn.\u0275fac=function(a){return new(a||Hn)(n.Y36(n.SBq),n.Y36(Qn),n.Y36(T.K0,8),n.Y36(n.QbO,8),n.Y36(sP),n.Y36(n.sBO),n.Y36(Us),n.Y36(n.R0b))},Hn.\u0275cmp=n.Xpm({type:Hn,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(n.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[n.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(n.O4$(),n.TgZ(0,"svg",0,1),n.YNc(2,nP,1,11,"circle",2),n.YNc(3,iP,1,9,"circle",3),n.qZA()),2&a&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(2),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let ef=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,T.ez,wt]}),i})(),gA=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[eo,T.ez]}),i})(),cP=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,Gs,Uo,Xs,Kp,po,ef,eo,gA]}),i})();class dP{isErrorState(a){return!(!a?.invalid||!a?.dirty)}}const QE=(i,a,e,t=!1,r=500)=>d=>(0,kl.H)(r).pipe((0,An.w)(()=>(e.dontHandleErrorForNext(),i&&"No namespace"!==i?a.checkPasswordStrength({password:d.value,namespace:i},t):(0,Ee.of)(null))),(0,Mt.U)(()=>null),(0,Fn.K)(u=>{const c={backendError:u.message.substring(u.message.indexOf(":")+1)};return(0,Ee.of)(c)}));function uP(i,a){1&i&&n._UZ(0,"mat-spinner",12),2&i&&n.Q6J("diameter",18)}function hP(i,a){if(1&i&&(n.TgZ(0,"mat-icon",13),n._uU(1," error "),n.qZA()),2&i){const e=n.oxw();n.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function pP(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function fP(i,a){if(1&i&&(n.TgZ(0,"mat-error",14),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.Q6J("matTooltip",e.getErrorTooltip()),n.xp6(1),n.Oqu(e.getErrorTooltip())}}function mP(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function gP(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let XE=(()=>{class i{constructor(e,t,r){this.translator=e,this.usersManagerService=t,this.store=r,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new dP,this.allPasswordRequirements=this.store.getProperty("password_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const t=e.userAttributes.find(r=>"preferredLanguage"===r.friendlyName);this.language=t?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}changeHelp(){this.passwordRequirement=this.allPasswordRequirements[this.namespace],this.passwordRequirement||(this.passwordRequirement=this.allPasswordRequirements.default)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tn),n.Y36(li),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",language:"language"},features:[n.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"mat-form-field",1),n._UZ(2,"input",2),n.ALo(3,"translate"),n.YNc(4,uP,1,1,"mat-spinner",3),n.TgZ(5,"mat-icon",4),n.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),n._uU(6),n.qZA(),n.YNc(7,hP,2,2,"mat-icon",5),n.YNc(8,pP,3,3,"mat-error",6),n.YNc(9,fP,2,2,"mat-error",7),n.qZA(),n.TgZ(10,"mat-form-field",8)(11,"mat-label"),n._uU(12),n.ALo(13,"translate"),n.qZA(),n._UZ(14,"input",9),n.TgZ(15,"mat-icon",4),n.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),n._uU(16),n.qZA(),n.YNc(17,mP,3,3,"mat-error",6),n.YNc(18,gP,3,3,"mat-error",6),n.qZA(),n.TgZ(19,"perun-web-apps-alert",10),n._UZ(20,"div",11),n.qZA()()),2&e&&(n.Q6J("formGroup",t.formGroup),n.xp6(1),n.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled||t.tooltipPwdDisabledForNamespace),n.xp6(1),n.s9C("placeholder",n.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),n.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),n.xp6(2),n.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),n.xp6(2),n.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),n.xp6(1),n.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),n.xp6(1),n.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),n.xp6(1),n.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),n.xp6(3),n.Oqu(n.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),n.xp6(2),n.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),n.xp6(2),n.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),n.xp6(1),n.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),n.xp6(1),n.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),n.xp6(2),n.Q6J("innerHTML",t.passwordRequirement,n.oJD))},dependencies:[T.O5,Na,di,as,X0,yr,_i,Ai,cd,Nr,Qs,kp,ji,Hn,zn,yi,Ke],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),i})();function vP(i,a){1&i&&n._UZ(0,"mat-spinner",7)}function TP(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function xP(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function SP(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"input",9,10),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.subject=r)}),n.qZA(),n.YNc(7,TP,3,3,"mat-error",11),n.qZA(),n.TgZ(8,"mat-form-field")(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"textarea",12,13),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.message=r)}),n.ALo(14,"translate"),n._uU(15," "),n.qZA(),n.YNc(16,xP,3,3,"mat-error",11),n.qZA()()}if(2&i){const e=n.MAs(6),t=n.MAs(13),r=n.oxw();n.xp6(3),n.Oqu(n.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),n.xp6(2),n.Q6J("ngModel",r.subject),n.xp6(2),n.Q6J("ngIf",e.invalid),n.xp6(3),n.Oqu(n.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),n.xp6(2),n.s9C("placeholder",n.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),n.Q6J("ngModel",r.message),n.xp6(4),n.Q6J("ngIf",t.invalid)}}let EP=(()=>{class i{constructor(e,t,r,d,u,c){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=d,this.data=u,this.storeService=c,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let d=JSON.stringify(this.data.error.payload);d=d.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+d+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",E(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(tn),n.Y36(Mr),n.Y36(fo),n.Y36(ni),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.YNc(3,vP,1,0,"mat-spinner",1),n.YNc(4,SP,17,13,"div",2),n.TgZ(5,"div",3)(6,"div",4)(7,"button",5),n.NdJ("click",function(){return t.dialogRef.close()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",6),n.NdJ("click",function(){return t.sendBugReport()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(4),n.hij(" ",n.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),n.xp6(2),n.Q6J("disabled",""===t.message||""===t.subject||t.loading),n.xp6(1),n.hij(" ",n.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[T.O5,Xn,ii,Un,Ht,Na,di,as,_i,Ai,Nr,ua,ji,Hn,Ke],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})(),DP=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=ln();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(EP,e)}),this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(on),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1),n._uU(3),n.qZA(),n.TgZ(4,"div",2)(5,"div",3)(6,"button",4),n.NdJ("click",function(){return t.onBugReportClick()}),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.TgZ(9,"button",5),n.NdJ("click",function(){return t.onCloseClick()}),n._uU(10),n.ALo(11,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(t.data.title),n.xp6(2),n.hij(" ",t.data.description,"\n"),n.xp6(3),n.Q6J("hidden","error"!==t.data.type),n.xp6(1),n.hij(" ",n.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),n.xp6(3),n.hij(" ",n.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Xn,ii,Un,Ht,Ke]}),i})();const LP=[[["caption"]],[["colgroup"],["col"]]],HP=["caption","colgroup, col"];function jv(i){return class extends i{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=Ge(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const tf=new n.OlP("CDK_TABLE");let nf=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkCellDef",""]]}),i})(),rf=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkHeaderCellDef",""]]}),i})(),_A=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkFooterCellDef",""]]}),i})();class OP{}const IP=jv(OP);let tc=(()=>{class i extends IP{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=Ge(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tf,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,nf,5),n.Suo(r,rf,5),n.Suo(r,_A,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.cell=d.first),n.iGM(d=n.CRH())&&(t.headerCell=d.first),n.iGM(d=n.CRH())&&(t.footerCell=d.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[n._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),n.qOj]}),i})();class Fv{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let zv=(()=>{class i extends Fv{constructor(e,t){super(e,t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tc),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[n.qOj]}),i})(),Uv=(()=>{class i extends Fv{constructor(e,t){var r;if(super(e,t),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const d=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===d||"treegrid"===d?"gridcell":"cell")}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tc),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[n.qOj]}),i})();class eD{constructor(){this.tasks=[],this.endTasks=[]}}const qv=new n.OlP("_COALESCED_STYLE_SCHEDULER");let tD=(()=>{class i{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Le.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new eD,this._getScheduleObservable().pipe(rt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new eD;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,Se.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,ht.q)(1))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Yv=(()=>{class i{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof hg?e.headerCell.template:this instanceof pg?e.footerCell.template:e.cell.template}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4))},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();class BP extends Yv{}const NP=jv(BP);let hg=(()=>{class i extends NP{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(tf,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[n.qOj,n.TTD]}),i})();class VP extends Yv{}const jP=jv(VP);let pg=(()=>{class i extends jP{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(tf,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[n.qOj,n.TTD]}),i})(),bA=(()=>{class i extends Yv{constructor(e,t,r){super(e,t),this._table=r}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(tf,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[n.qOj]}),i})(),nc=(()=>{class i{constructor(e){this._viewContainer=e,i.mostRecentCellOutlet=this}ngOnDestroy(){i.mostRecentCellOutlet===this&&(i.mostRecentCellOutlet=null)}}return i.mostRecentCellOutlet=null,i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkCellOutlet",""]]}),i})(),Wv=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[nc],encapsulation:2}),i})(),$v=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[nc],encapsulation:2}),i})(),AA=(()=>{class i{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","cdkNoDataRow",""]]}),i})();const nD=["top","bottom","left","right"];class FP{constructor(a,e,t,r,d=!0,u=!0,c){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=d,this._needsPositionStickyOnElement=u,this._positionListener=c,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(a,e){const t=[];for(const r of a)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let d=0;d{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(a,e,t,r=!0){if(!a.length||!this._isBrowser||!e.some(p=>p)&&!t.some(p=>p))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const d=a[0],u=d.children.length,c=this._getCellWidths(d,r),o=this._getStickyStartColumnPositions(c,e),s=this._getStickyEndColumnPositions(c,t),l=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const p="rtl"===this.direction,m=p?"right":"left",g=p?"left":"right";for(const f of a)for(let w=0;we[w]?f:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:c.slice(h).map((f,w)=>t[w+h]?f:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const r="bottom"===t?a.slice().reverse():a,d="bottom"===t?e.slice().reverse():e,u=[],c=[],o=[];for(let l=0,h=0;l{for(let p=0;p{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(a,e){for(const r of e)a.style[r]="",a.classList.remove(this._borderCellCss[r]);nD.some(r=>-1===e.indexOf(r)&&a.style[r])?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}_addStickyStyle(a,e,t,r){a.classList.add(this._stickCellCss),r&&a.classList.add(this._borderCellCss[e]),a.style[e]=`${t}px`,a.style.zIndex=this._getCalculatedZIndex(a),this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(a){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of nD)a.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(a,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=a.children;for(let d=0;d0;d--)e[d]&&(t[d]=r,r+=a[d]);return t}}const Zv=new n.OlP("CDK_SPL");let yA=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","rowOutlet",""]]}),i})(),wA=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","headerRowOutlet",""]]}),i})(),MA=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","footerRowOutlet",""]]}),i})(),CA=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","noDataRowOutlet",""]]}),i})(),vA=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p,m){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=u,this._platform=o,this._viewRepeater=s,this._coalescedStyleScheduler=l,this._viewportRuler=h,this._stickyPositioningListener=p,this._ngZone=m,this._onDestroy=new Le.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new n.vpe,this.viewChange=new pt({start:0,end:Number.MAX_VALUE}),d||this._elementRef.nativeElement.setAttribute("role","table"),this._document=c,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Ge(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Ge(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(rt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Cu(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(r,d,u)=>this._getEmbeddedViewArgs(r.item,u),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{t.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&n.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,ht.q)(1),rt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const d=this._headerRowDefs.map(u=>u.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,d,"top"),this._headerRowDefs.forEach(u=>u.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const d=this._footerRowDefs.map(u=>u.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,d,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,d),this._footerRowDefs.forEach(u=>u.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((d,u)=>{this._addStickyColumnStyles([d],this._headerRowDefs[u])}),this._rowDefs.forEach(d=>{const u=[];for(let c=0;c{this._addStickyColumnStyles([d],this._footerRowDefs[u])}),Array.from(this._columnDefsByName.values()).forEach(d=>d.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const c=r&&r.has(u)?r.get(u):[];if(c.length){const o=c.shift();return o.dataIndex=t,o}return{data:e,rowDef:u,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),TA(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=TA(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=TA(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=TA(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(u,c)=>u||!!c.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const d=this._footerRowDefs.reduce(e,!1);return d&&this._forceRenderFooterRows(),t||r||d}_switchDataSource(e){this._data=[],Cu(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Cu(this.dataSource)?e=this.dataSource.connect(this):$t(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,Ee.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(rt(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(c=>this._columnDefsByName.get(c)),d=r.map(c=>c.sticky),u=r.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(e,d,u,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!d.when||d.when(t,e));else{let d=this._rowDefs.find(u=>u.when&&u.when(t,e))||this._defaultRowDef;d&&r.push(d)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,d={}){const u=e.viewContainer.createEmbeddedView(t.template,d,r);return this._renderCellTemplateForItem(t,d),u}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))nc.mostRecentCellOutlet&&nc.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,r=e.length;t{const r=this._columnDefsByName.get(t);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of t){const d=this._document.createElement(r.tag);d.setAttribute("role","rowgroup");for(const u of r.outlets)d.appendChild(u.elementRef.nativeElement);e.appendChild(d)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,r)=>t||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new FP(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,Ee.of)()).pipe(rt(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const d=r.createEmbeddedView(e.templateRef),u=d.rootNodes[0];1===d.rootNodes.length&&u?.nodeType===this._document.ELEMENT_NODE&&(u.setAttribute("role","row"),u.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.ZZ4),n.Y36(n.sBO),n.Y36(n.SBq),n.$8M("role"),n.Y36(Hi,8),n.Y36(T.K0),n.Y36(Qn),n.Y36(Ol),n.Y36(qv),n.Y36(Us),n.Y36(Zv,12),n.Y36(n.R0b,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,AA,5),n.Suo(r,tc,5),n.Suo(r,bA,5),n.Suo(r,hg,5),n.Suo(r,pg,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._noDataRow=d.first),n.iGM(d=n.CRH())&&(t._contentColumnDefs=d),n.iGM(d=n.CRH())&&(t._contentRowDefs=d),n.iGM(d=n.CRH())&&(t._contentHeaderRowDefs=d),n.iGM(d=n.CRH())&&(t._contentFooterRowDefs=d)}},viewQuery:function(e,t){if(1&e&&(n.Gf(yA,7),n.Gf(wA,7),n.Gf(MA,7),n.Gf(CA,7)),2&e){let r;n.iGM(r=n.CRH())&&(t._rowOutlet=r.first),n.iGM(r=n.CRH())&&(t._headerRowOutlet=r.first),n.iGM(r=n.CRH())&&(t._footerRowOutlet=r.first),n.iGM(r=n.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[n._Bn([{provide:tf,useExisting:i},{provide:Ol,useClass:Xc},{provide:qv,useClass:tD},{provide:Zv,useValue:null}])],ngContentSelectors:HP,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(n.F$t(LP),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[yA,wA,MA,CA],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),i})();function TA(i,a){return i.concat(Array.from(a))}let UP=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Kc]}),i})();const qP=[[["caption"]],[["colgroup"],["col"]]],YP=["caption","colgroup, col"];let io=(()=>{class i extends vA{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[n._Bn([{provide:Ol,useClass:Xc},{provide:vA,useExisting:i},{provide:tf,useExisting:i},{provide:qv,useClass:tD},{provide:Zv,useValue:null}]),n.qOj],ngContentSelectors:YP,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(n.F$t(qP),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[yA,wA,MA,CA],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),i})(),ls=(()=>{class i extends nf{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matCellDef",""]],features:[n._Bn([{provide:nf,useExisting:i}]),n.qOj]}),i})(),cs=(()=>{class i extends rf{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matHeaderCellDef",""]],features:[n._Bn([{provide:rf,useExisting:i}]),n.qOj]}),i})(),ds=(()=>{class i extends tc{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[n._Bn([{provide:tc,useExisting:i},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),n.qOj]}),i})(),us=(()=>{class i extends zv{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[n.qOj]}),i})(),hs=(()=>{class i extends Uv{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[n.qOj]}),i})(),ro=(()=>{class i extends hg{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[n._Bn([{provide:hg,useExisting:i}]),n.qOj]}),i})(),ao=(()=>{class i extends bA{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[n._Bn([{provide:bA,useExisting:i}]),n.qOj]}),i})(),so=(()=>{class i extends Wv{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[n._Bn([{provide:Wv,useExisting:i}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[nc],encapsulation:2}),i})(),oo=(()=>{class i extends $v{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[n._Bn([{provide:$v,useExisting:i}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[nc],encapsulation:2}),i})(),fg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[UP,wt,wt]}),i})();class nk extends O0{constructor(a=[]){super(),this._renderData=new pt([]),this._filter=new pt(""),this._internalPageChanges=new Le.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(E1(r)){const d=Number(r);return d<9007199254740991?d:r}return r},this.sortData=(e,t)=>{const r=t.active,d=t.direction;return r&&""!=d?e.sort((u,c)=>{let o=this.sortingDataAccessor(u,r),s=this.sortingDataAccessor(c,r);const l=typeof o,h=typeof s;l!==h&&("number"===l&&(o+=""),"number"===h&&(s+=""));let p=0;return null!=o&&null!=s?o>s?p=1:o{const r=Object.keys(e).reduce((u,c)=>u+e[c]+"\u25ec","").toLowerCase(),d=t.trim().toLowerCase();return-1!=r.indexOf(d)},this._data=new pt(a),this._updateChangeSubscription()}get data(){return this._data.value}set data(a){a=Array.isArray(a)?a:[],this._data.next(a),this._renderChangesSubscription||this._filterData(a)}get filter(){return this._filter.value}set filter(a){this._filter.next(a),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(a){this._sort=a,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(a){this._paginator=a,this._updateChangeSubscription()}_updateChangeSubscription(){var a;const e=this._sort?(0,kn.T)(this._sort.sortChange,this._sort.initialized):(0,Ee.of)(null),t=this._paginator?(0,kn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Ee.of)(null),d=(0,nr.a)([this._data,this._filter]).pipe((0,Mt.U)(([o])=>this._filterData(o))),u=(0,nr.a)([d,e]).pipe((0,Mt.U)(([o])=>this._orderData(o))),c=(0,nr.a)([u,t]).pipe((0,Mt.U)(([o])=>this._pageData(o)));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=c.subscribe(o=>this._renderData.next(o))}_filterData(a){return this.filteredData=null==this.filter||""===this.filter?a:a.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(a){return this.sort?this.sortData(a.slice(),this.sort):a}_pageData(a){if(!this.paginator)return a;const e=this.paginator.pageIndex*this.paginator.pageSize;return a.slice(e,e+this.paginator.pageSize)}_updatePaginator(a){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=a,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var a;null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=null}}class $o extends nk{}function ik(i,a){1&i&&n._UZ(0,"mat-spinner",3)}function rk(i,a){1&i&&n._UZ(0,"th",15)}function ak(i,a){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.userExtSource.extSource.name," ")}}function sk(i,a){1&i&&n._UZ(0,"tr",17)}function ok(i,a){1&i&&n._UZ(0,"tr",18)}function lk(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",4)(2,"p"),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"customTranslate"),n.qZA(),n.TgZ(6,"div",5),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA(),n.TgZ(10,"table",6),n.ynx(11,7),n.YNc(12,rk,1,0,"th",8),n.YNc(13,ak,2,1,"td",9),n.BQk(),n.YNc(14,sk,1,0,"tr",10),n.YNc(15,ok,1,0,"tr",11),n.qZA()(),n.TgZ(16,"div",12)(17,"button",13),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(18),n.ALo(19,"translate"),n.ALo(20,"customTranslate"),n.qZA(),n.TgZ(21,"button",14),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(22),n.ALo(23,"translate"),n.ALo(24,"customTranslate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(3),n.hij(" ",n.lcZ(4,7,n.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),n.xp6(4),n.hij(" ",n.lcZ(8,11,n.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),n.xp6(3),n.Q6J("dataSource",e.dataSource),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(3),n.hij(" ",n.lcZ(19,15,n.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),n.xp6(4),n.hij(" ",n.lcZ(23,19,n.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let ck=(()=>{class i{constructor(e,t,r,d,u){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.translate=d,this.notificator=u,this.force=!1,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new $o(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=this.data.extSources.map(t=>t.userExtSource.id);this.usersManagerService.removeUserExtSources(this.data.userId,e,this.force).subscribe({next:()=>{this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(li),n.Y36(Dd),n.Y36(Mr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div"),n.YNc(5,ik,1,0,"mat-spinner",1),n.YNc(6,lk,25,23,"div",2),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,6,n.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),n.xp6(3),n.Tol(t.theme),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,io,cs,ro,ds,ls,ao,us,hs,so,oo,Xn,ii,Un,Ht,Hn,Ke,Xt]}),i})();class dk{constructor(a,e){this._document=e;const t=this._textarea=this._document.createElement("textarea"),r=t.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",t.setAttribute("aria-hidden","true"),t.value=a,t.readOnly=!0,this._document.body.appendChild(t)}copy(){const a=this._textarea;let e=!1;try{if(a){const t=this._document.activeElement;a.select(),a.setSelectionRange(0,a.value.length),e=this._document.execCommand("copy"),t&&t.focus()}}catch{}return e}destroy(){const a=this._textarea;a&&(a.remove(),this._textarea=void 0)}}let uk=(()=>{class i{constructor(e){this._document=e}copy(e){const t=this.beginCopy(e),r=t.copy();return t.destroy(),r}beginCopy(e){return new dk(e,this._document)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const hk=new n.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let Jv=(()=>{class i{constructor(e,t,r){this._clipboard=e,this._ngZone=t,this.text="",this.attempts=1,this.copied=new n.vpe,this._pending=new Set,r&&null!=r.attempts&&(this.attempts=r.attempts)}copy(e=this.attempts){if(e>1){let t=e;const r=this._clipboard.beginCopy(this.text);this._pending.add(r);const d=()=>{const u=r.copy();u||!--t||this._destroyed?(this._currentTimeout=null,this._pending.delete(r),r.destroy(),this.copied.emit(u)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(d,1))};d()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(e=>e.destroy()),this._pending.clear(),this._destroyed=!0}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(uk),n.Y36(n.R0b),n.Y36(hk,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),i})(),rD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),xA=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"textarea",2),n._uU(4),n.qZA()(),n.TgZ(5,"div",3)(6,"button",4),n.NdJ("click",function(){return t.onCancel()}),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.TgZ(9,"button",5),n._uU(10),n.ALo(11,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(t.title),n.xp6(3),n.Oqu(t.value),n.xp6(3),n.hij(" ",n.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),n.xp6(2),n.Q6J("cdkCopyToClipboard",t.value),n.xp6(1),n.hij(" ",n.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},dependencies:[Xn,ii,Un,Ht,fA,ji,Jv,Ke],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),i})(),pk=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h5",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"mat-form-field")(5,"textarea",2),n.NdJ("ngModelChange",function(d){return t.attributeValue=d}),n.qZA()()(),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),n.xp6(4),n.Q6J("ngModel",t.attributeValue),n.xp6(3),n.hij(" ",n.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),n.xp6(3),n.hij(" ",n.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Xn,ii,Un,Ht,di,_i,Ai,ua,fA,ji,Ke]}),i})(),fk=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h5",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"div"),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"div",2),n._uU(8),n.qZA()(),n.TgZ(9,"div",3)(10,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(11),n.ALo(12,"translate"),n.qZA(),n.TgZ(13,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(14),n.ALo(15,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),n.xp6(4),n.hij(" ",n.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),n.xp6(3),n.hij(" ",t.data.name," "),n.xp6(3),n.hij(" ",n.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),n.xp6(3),n.hij(" ",n.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Xn,ii,Un,Ht,Ke]}),i})();function mk(i,a){if(1&i&&(n.TgZ(0,"perun-web-apps-alert",9),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.pendingEmailsMessage)}}function gk(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let _k=(()=>{class i{constructor(e,t,r,d,u,c){this.dialogRef=e,this.data=t,this.translate=r,this.notificator=d,this.usersManagerService=u,this.authService=c,this.pendingMails=[],r.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(o=>this.successMessage=o),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(o=>this.pendingEmailsMessageStart=o),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(o=>this.pendingEmailsMessageEnd=o)}ngOnInit(){this.emailControl=new Js(null,[bi.required,bi.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(e=>{this.pendingMails=e.filter((r,d,u)=>d===u.indexOf(r));let t="";this.pendingMails.forEach(r=>t+=`${r===this.pendingMails[0]?"":", "}${r}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+t+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const t=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",t[0]+"//"+t[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(tn),n.Y36(Mr),n.Y36(li),n.Y36(Ql))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,mk,2,1,"perun-web-apps-alert",2),n.TgZ(6,"mat-form-field",3)(7,"label",3),n._UZ(8,"input",4),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA(),n.YNc(11,gk,4,5,"mat-error",5),n.qZA()(),n.TgZ(12,"div",6)(13,"button",7),n.NdJ("click",function(){return t.onCancel()}),n._uU(14),n.ALo(15,"translate"),n.ALo(16,"customTranslate"),n.qZA(),n.TgZ(17,"button",8),n.NdJ("click",function(){return t.onSubmit()}),n._uU(18),n.ALo(19,"translate"),n.ALo(20,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,8,n.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),n.xp6(4),n.Q6J("ngIf",t.pendingMails.length),n.xp6(3),n.s9C("placeholder",n.lcZ(9,12,n.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),n.Q6J("formControl",t.emailControl),n.xp6(3),n.Q6J("ngIf",t.emailControl.invalid),n.xp6(3),n.hij(" ",n.lcZ(15,16,n.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",!t.emailControl.valid),n.xp6(1),n.hij(" ",n.lcZ(19,20,n.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},dependencies:[T.O5,Xn,ii,Un,Ht,Na,di,_i,Ai,Nr,ji,sr,yi,Ke,Xt]}),i})(),xk=(()=>{class i{constructor(e,t){this.dialogRef=e,this.router=t}onClose(){this.router.navigate([],{queryParamsHandling:"preserve"}),this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(Dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"div",3)(8,"button",4),n.NdJ("click",function(){return t.onClose()}),n._uU(9),n.ALo(10,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),n.xp6(4),n.Oqu(n.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),n.xp6(4),n.hij(" ",n.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},dependencies:[Xn,ii,Un,Ht,yi,Ke]}),i})();function Sk(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function Ek(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"form",5)(1,"div",6)(2,"mat-form-field")(3,"mat-label"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n._UZ(6,"input",7),n.TgZ(7,"mat-icon",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.showOldPassword=!r.showOldPassword)}),n._uU(8),n.qZA(),n.YNc(9,Sk,3,3,"mat-error",9),n.qZA(),n._UZ(10,"perun-web-apps-password-form",10),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("formGroup",e.formGroup),n.xp6(4),n.Oqu(n.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),n.xp6(2),n.Q6J("type",e.showOldPassword?"text":"password"),n.xp6(2),n.hij(" ",e.showOldPassword?"visibility_off":"visibility"," "),n.xp6(1),n.Q6J("ngIf",e.oldPwd.hasError("required")),n.xp6(1),n.Q6J("formGroup",e.formGroup)("namespace",e.data.namespace)}}function Dk(i,a){1&i&&n._UZ(0,"mat-spinner",11)}function Lk(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",12)(1,"div",13)(2,"button",14),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.close())}),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"button",15),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changePassword())}),n._uU(6),n.ALo(7,"translate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(3),n.hij(" ",n.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),n.xp6(2),n.Q6J("disabled",e.formGroup.invalid||e.formGroup.pending),n.xp6(1),n.hij(" ",n.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let Hk=(()=>{class i{constructor(e,t,r,d,u,c,o){this.dialogRef=e,this.data=t,this._formBuilder=r,this.usersManagerService=d,this.apiRequestConfiguration=u,this.notificator=c,this.translate=o,this.showOldPassword=!1,o.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",bi.required],passwordCtrl:["",bi.required,[QE(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:hE.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(hd),n.Y36(li),n.Y36(cg),n.Y36(Mr),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n.YNc(4,Ek,11,9,"form",2),n.YNc(5,Dk,1,0,"mat-spinner",3),n.qZA(),n.YNc(6,Lk,8,7,"div",4)),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),n.xp6(3),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,Xn,ii,Un,Ht,Na,di,as,X0,Mm,_i,Ai,cd,Nr,ji,Hn,Qs,kp,zn,XE,Ke],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),i})();const Rk=["input"],Pk=function(i){return{enterDuration:i}},kk=["*"],Ok=new n.OlP("mat-radio-default-options",{providedIn:"root",factory:function Ik(){return{color:"accent"}}});let sD=0;const Bk={provide:ar,useExisting:(0,n.Gpc)(()=>cD),multi:!0};class oD{constructor(a,e){this.source=a,this.value=e}}const lD=new n.OlP("MatRadioGroup");let Nk=(()=>{class i{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+sD++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new n.vpe}get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=Ge(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=Ge(e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new oD(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO))},i.\u0275dir=n.lG2({type:i,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),i})(),cD=(()=>{class i extends Nk{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-radio-group"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,dD,5),2&e){let d;n.iGM(d=n.CRH())&&(t._radios=d)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[n._Bn([Bk,{provide:lD,useExisting:i}]),n.qOj]}),i})();class Vk{constructor(a){this._elementRef=a}}const jk=Ni(Vs(Vk));let Fk=(()=>{class i extends jk{constructor(e,t,r,d,u,c,o,s){super(t),this._changeDetector=r,this._focusMonitor=d,this._radioDispatcher=u,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++sD,this.id=this._uniqueId,this.change=new n.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===c,s&&(this.tabIndex=Qt(s,0)),this._removeUniqueSelectionListener=u.listen((l,h)=>{l!==this.id&&h===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const t=Ge(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(Ge(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=Ge(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new oD(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let t;if(t=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,t!==this._previousTabIndex){var r;const d=null===(r=this._inputElement)||void 0===r?void 0:r.nativeElement;d&&(d.setAttribute("tabindex",t+""),this._previousTabIndex=t)}}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&n.Gf(Rk,5),2&e){let r;n.iGM(r=n.CRH())&&(t._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[n.qOj]}),i})(),dD=(()=>{class i extends Fk{constructor(e,t,r,d,u,c,o,s){super(e,t,r,d,u,c,o,s)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(lD,8),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36($r),n.Y36(n_),n.Y36(n.QbO,8),n.Y36(Ok,8),n.$8M("tabindex"))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&n.NdJ("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(n.uIk("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.ekj("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable",t._noopAnimations)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.qOj],ngContentSelectors:kk,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2),n._UZ(3,"span",3)(4,"span",4),n.TgZ(5,"input",5,6),n.NdJ("change",function(d){return t._onInputInteraction(d)})("click",function(d){return t._onInputClick(d)}),n.qZA(),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA()(),n.TgZ(9,"span",9)(10,"span",10),n._uU(11,"\xa0"),n.qZA(),n.Hsn(12),n.qZA()()),2&e){const r=n.MAs(1);n.uIk("for",t.inputId),n.xp6(5),n.Q6J("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("required",t.required),n.uIk("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(17,Pk,t._noopAnimations?0:150)),n.xp6(2),n.ekj("mat-radio-label-before","before"==t.labelPosition)}},dependencies:[Jr],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),i})(),uD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ca,wt,wt]}),i})();function zk(i,a){1&i&&n._UZ(0,"mat-spinner",4)}function Uk(i,a){1&i&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function qk(i,a){1&i&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function Yk(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-radio-group",12),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d.asyncValidation=r)}),n.TgZ(1,"span",13),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-radio-button",14),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"mat-radio-button",14),n._uU(8),n.ALo(9,"translate"),n.qZA()()}if(2&i){const e=n.oxw(2);n.Q6J("ngModel",e.asyncValidation),n.xp6(2),n.hij(" ",n.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),n.xp6(2),n.Q6J("value",!1),n.xp6(1),n.hij(" ",n.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),n.xp6(2),n.Q6J("value",!0),n.xp6(1),n.hij(" ",n.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function Wk(i,a){1&i&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function Gk(i,a){1&i&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function $k(i,a){if(1&i&&(n.TgZ(0,"div",5)(1,"p",6),n._uU(2),n.TgZ(3,"span",7),n._uU(4),n.qZA(),n._uU(5),n.TgZ(6,"span",7),n._uU(7),n.qZA()(),n.TgZ(8,"p")(9,"strong",8),n._uU(10),n.ALo(11,"translate"),n.qZA(),n._uU(12),n.qZA(),n.TgZ(13,"p")(14,"strong",8),n._uU(15),n.ALo(16,"translate"),n.qZA(),n._uU(17),n.qZA(),n.YNc(18,Uk,3,3,"span",9),n.YNc(19,qk,3,3,"span",9),n.YNc(20,Yk,10,12,"mat-radio-group",10),n.YNc(21,Wk,3,3,"span",9),n.YNc(22,Gk,3,3,"span",9),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",e.group.name," "),n.xp6(2),n.hij("#",e.group.id,""),n.xp6(1),n.hij(" - ",e.resource.name," "),n.xp6(2),n.hij("#",e.resource.id,""),n.xp6(3),n.hij(" ",n.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),n.xp6(2),n.hij(" ",e.status," "),n.xp6(3),n.hij(" ",n.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),n.xp6(2),n.hij(" ",e.getReversedStatus()," "),n.xp6(1),n.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),n.xp6(1),n.Q6J("ngIf","ACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),n.xp6(1),n.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!1===e.asyncValidation),n.xp6(1),n.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!0===e.asyncValidation)}}function Zk(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",15)(1,"button",16),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"button",17),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(5),n.ALo(6,"translate"),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),n.xp6(2),n.Q6J("disabled",e.loading),n.xp6(1),n.hij(" ",n.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===e.status?"DEACTIVATE":"ACTIVATE"))," ")}}let Jk=(()=>{class i{constructor(e,t,r,d){this.dialogRef=e,this.data=t,this.resourceService=r,this.groupService=d,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(e=>{this.resource=e,this.groupService.getGroupById(this.data.groupId).subscribe(t=>{this.group=t,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(ia),n.Y36(zr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["data-cy","change-status-button","mat-flat-button","","color","accent",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,zk,1,0,"mat-spinner",1),n.YNc(5,$k,23,17,"div",2),n.YNc(6,Zk,7,7,"div",3),n.qZA()),2&e&&(n.Tol(t.theme),n.xp6(2),n.hij(" ",n.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,Xn,ii,Un,Ht,Ai,ua,Hn,cD,dD,Ke],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),i})();function Qk(i,a){if(1&i&&(n.TgZ(0,"mat-option",13),n._uU(1),n.qZA()),2&i){const e=a.$implicit,t=n.oxw();n.Q6J("value",t.selectedUnit),n.xp6(1),n.hij(" ",e," ")}}let Xk=(()=>{class i{constructor(e,t,r,d,u){this.dialogRef=e,this.data=t,this.rtMessagesService=r,this.notificator=d,this.translate=u,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",u.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(c=>this.successMessage=c)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new Js(null,[bi.required]),this.newValueControl=new Js(null,[bi.required,bi.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const r=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new mA).transform(this.data.user)} (user ID: ${this.data.user.id})\u21b5 VO: ${this.data.vo.shortName} / ${this.data.vo.name} (vo ID: ${this.data.vo.id})\u21b5 Resource: ${this.data.resource.name} (resource ID: ${this.data.resource.id})\u21b5 Data quota\u21b5 Requested quota: ${this.newValueControl.value}\u21b5 Reason: ${this.reasonControl.value}\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI`;this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",r).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(fo),n.Y36(Mr),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-request-change-data-quota-dialog"]],decls:42,vars:42,consts:[["mat-dialog-title","",1,"mb-3"],[1,"user-theme"],[1,"column-size"],["fxLayout","row","fxFlexAlign","center center"],[1,"label-width"],["matInput","","required","","type","number",3,"placeholder","formControl"],[1,"select-width","mt-auto","mb-auto","ml-2",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"form-width"],["matInput","","required","","rows","4",3,"placeholder","formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"div")(6,"p",2),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA(),n.TgZ(10,"p"),n._uU(11),n.qZA()(),n.TgZ(12,"div")(13,"p",2),n._uU(14),n.ALo(15,"translate"),n.ALo(16,"customTranslate"),n.qZA(),n.TgZ(17,"p"),n._uU(18),n.qZA()(),n.TgZ(19,"div",3)(20,"mat-form-field")(21,"label",4),n._UZ(22,"input",5),n.ALo(23,"translate"),n.ALo(24,"customTranslate"),n.qZA()(),n.TgZ(25,"mat-select",6),n.NdJ("valueChange",function(d){return t.selectedUnit=d}),n.YNc(26,Qk,2,2,"mat-option",7),n.qZA()(),n.TgZ(27,"div")(28,"mat-form-field",8)(29,"label",4),n._UZ(30,"textarea",9),n.ALo(31,"translate"),n.ALo(32,"customTranslate"),n.qZA()()(),n.TgZ(33,"div",10)(34,"button",11),n.NdJ("click",function(){return t.onCancel()}),n._uU(35),n.ALo(36,"translate"),n.ALo(37,"customTranslate"),n.qZA(),n.TgZ(38,"button",12),n.NdJ("click",function(){return t.onSubmit()}),n._uU(39),n.ALo(40,"translate"),n.ALo(41,"customTranslate"),n.qZA()()()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,14,n.lcZ(3,16,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),n.xp6(6),n.hij(" ",n.lcZ(8,18,n.lcZ(9,20,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),n.xp6(4),n.Oqu(t.resource),n.xp6(3),n.hij(" ",n.lcZ(15,22,n.lcZ(16,24,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),n.xp6(4),n.Oqu(t.currentQuota),n.xp6(4),n.s9C("placeholder",n.lcZ(23,26,n.lcZ(24,28,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),n.Q6J("formControl",t.newValueControl),n.xp6(3),n.Q6J("value",t.selectedUnit),n.xp6(1),n.Q6J("ngForOf",t.units),n.xp6(4),n.s9C("placeholder",n.lcZ(31,30,n.lcZ(32,32,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),n.Q6J("formControl",t.reasonControl),n.xp6(5),n.hij(" ",n.lcZ(36,34,n.lcZ(37,36,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",t.reasonControl.invalid),n.xp6(1),n.hij(" ",n.lcZ(40,38,n.lcZ(41,40,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},dependencies:[T.sg,Xn,Un,Ht,di,_i,Lp,Ai,Nr,ji,sr,fd,Fs,Ke,Xt],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.form-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}.label-width[_ngcontent-%COMP%]{width:100%}.select-width[_ngcontent-%COMP%]{width:4rem}.mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%], .mat-input-ripple.mat-form-field-ripple[_ngcontent-%COMP%]{display:none}"]}),i})();function Kk(i,a){1&i&&(n.TgZ(0,"mat-error",8),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Zo{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Js(null,[bi.required,bi.pattern(Zo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const a=this.data.attribute?.value??[],e=this.sshControl.value;a.includes(e)||a.push(e),this.data.attribute.value=a,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{a.pop()})}}function eO(i,a){1&i&&n._UZ(0,"mat-spinner",4)}function tO(i,a){1&i&&n._UZ(0,"th",17)}function nO(i,a){if(1&i&&(n.TgZ(0,"td",18),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e)}}function iO(i,a){1&i&&n._UZ(0,"tr",19)}function rO(i,a){1&i&&n._UZ(0,"tr",20)}function aO(i,a){if(1&i&&(n.TgZ(0,"table",11),n.ynx(1,12),n.YNc(2,tO,1,0,"th",13),n.YNc(3,nO,2,1,"td",14),n.BQk(),n.YNc(4,iO,1,0,"tr",15),n.YNc(5,rO,1,0,"tr",16),n.qZA()),2&i){const e=n.oxw(2);n.Q6J("dataSource",e.dataSource),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}function sO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",1)(1,"div",5)(2,"p"),n._uU(3),n.qZA(),n.TgZ(4,"div",6),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.YNc(8,aO,6,3,"table",7),n.qZA(),n.TgZ(9,"div",8)(10,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(11),n.ALo(12,"translate"),n.ALo(13,"customTranslate"),n.qZA(),n.TgZ(14,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(3),n.hij(" ",e.description," "),n.xp6(2),n.hij(" ",n.lcZ(6,5,n.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),n.xp6(3),n.Q6J("ngIf",e.dataSource.data.length),n.xp6(3),n.hij(" ",n.lcZ(12,9,n.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),n.xp6(4),n.hij(" ",n.lcZ(16,13,n.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}Zo.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],Zo.sshKeyPattern="^("+Zo.allowedSshKeys.join("|")+").+$",Zo.\u0275fac=function(a){return new(a||Zo)(n.Y36(Ln),n.Y36(ni),n.Y36(jn))},Zo.\u0275cmp=n.Xpm({type:Zo,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(a,e){1&a&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),n._UZ(7,"textarea",3),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA(),n.YNc(10,Kk,4,5,"mat-error",4),n.qZA()(),n.TgZ(11,"div",5)(12,"button",6),n.NdJ("click",function(){return e.onCancel()}),n._uU(13),n.ALo(14,"translate"),n.ALo(15,"customTranslate"),n.qZA(),n.TgZ(16,"button",7),n.NdJ("click",function(){return e.onSubmit()}),n._uU(17),n.ALo(18,"translate"),n.ALo(19,"customTranslate"),n.qZA()()),2&a&&(n.xp6(1),n.Oqu(n.lcZ(2,7,n.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),n.xp6(6),n.s9C("placeholder",n.lcZ(8,11,n.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),n.Q6J("formControl",e.sshControl),n.xp6(3),n.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),n.xp6(3),n.hij(" ",n.lcZ(14,15,n.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",e.sshControl.invalid),n.xp6(1),n.hij(" ",n.lcZ(18,19,n.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[T.O5,_i,Ai,Nr,Ht,Na,di,sr,fA,ji,Xn,ii,Un,Ke,Xt],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let SA=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new $o(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let e=this.data.attribute?.value??[];void 0!==this.data.valueIndex?e.splice(this.data.valueIndex,1):e=e.filter(t=>!this.data.values.find(r=>r===t)),this.data.attribute.value=e}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(jn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-remove-string-value-dialog"]],decls:5,vars:3,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","user-theme",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1),n.YNc(3,eO,1,0,"mat-spinner",2),n.qZA(),n.YNc(4,sO,18,17,"div",3)),2&e&&(n.xp6(1),n.Oqu(t.title),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,io,cs,ro,ds,ls,ao,us,hs,so,oo,Hn,Ht,Xn,ii,Un,Ke,Xt]}),i})(),oO=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-ssh-dialog"]],decls:8,vars:6,consts:[[1,"user-theme"],["matInput","","cdkTextareaAutosize","","readonly","",1,"w-100","display-fix"],["mat-flat-button","","color","warn",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"textarea",1),n._uU(2),n.qZA()(),n.TgZ(3,"mat-dialog-actions")(4,"button",2),n.NdJ("click",function(){return t.onClose()}),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA()()),2&e&&(n.xp6(2),n.Oqu(t.sshKey),n.xp6(3),n.hij(" ",n.lcZ(6,2,n.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},dependencies:[Ht,fA,ji,Un,Ke,Xt],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),i})();function lO(i,a){if(1&i&&(n.TgZ(0,"div",9),n._UZ(1,"perun-web-apps-notification",10),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Q6J("data",e)("inDialog",!0)}}function cO(i,a){if(1&i&&(n.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),n.YNc(2,lO,2,2,"div",8),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Q6J("cdkVirtualForOf",e.notifications)}}function dO(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",11),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}let hD=(()=>{class i{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(oA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,cO,3,1,"div",1),n.YNc(5,dO,4,5,"perun-web-apps-alert",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.onClear()}),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return t.onCancel()}),n._uU(12),n.ALo(13,"translate"),n.ALo(14,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,n.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),n.xp6(3),n.Q6J("ngIf",0!==t.notifications.length),n.xp6(1),n.Q6J("ngIf",0===t.notifications.length),n.xp6(3),n.hij(" ",n.lcZ(9,9,n.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),n.xp6(4),n.hij(" ",n.lcZ(13,13,n.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),i})();function uO(i,a){if(1&i&&(n.TgZ(0,"div",5)(1,"mat-icon"),n._uU(2),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Oqu(e.data.icon)}}function hO(i,a){if(1&i&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",e.showTimestamp()," ")}}let pD=(()=>{class i{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new n.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=ln();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(DP,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function Fb(i,a){sg.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on),n.Y36(oA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"div",0),n.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),n.YNc(2,uO,3,1,"div",1),n.TgZ(3,"div",2),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,hO,2,1,"div",3),n.TgZ(7,"div",4),n.NdJ("click",function(){return t.waiting=!0,t.doAction()}),n._uU(8),n.qZA()()()),2&e&&(n.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),n.ekj("error","error"===t.data.type)("success","success"===t.data.type),n.xp6(2),n.Q6J("ngIf",null!==t.data.icon),n.xp6(2),n.hij(" ",n.lcZ(5,12,t.data.title)," "),n.xp6(2),n.Q6J("ngIf",t.inDialog),n.xp6(1),n.Q6J("hidden",t.alreadyPressed),n.xp6(1),n.hij(" ",t.data.actionText," "))},dependencies:[T.O5,zn,Ke],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),i})();function pO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"perun-web-apps-notification",2),n.NdJ("closeNotification",function(){const d=n.CHM(e).index,u=n.oxw();return n.KtG(u.removeNotification(d))}),n.qZA()()}if(2&i){const e=a.$implicit;n.Q6J("@flyInOut",void 0),n.xp6(1),n.Q6J("data",e)("newNotification",!0)}}const fO=function(i){return{top:i}};let mO=(()=>{class i{constructor(e,t){this.notificator=e,this.notificationStorageService=t,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(r=>{this.processNotification(r)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(e){this.notifications.splice(e,1)}processNotification(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Mr),n.Y36(oA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&n.NdJ("resize",function(d){return t.getScreenSize(d)},!1,n.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,pO,2,3,"div",1),n.qZA()),2&e&&(n.Q6J("ngStyle",n.VKq(2,fO,t.getNotificatorTop())),n.xp6(1),n.Q6J("ngForOf",t.notifications))},dependencies:[T.sg,T.PC,pD],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;top:initial;bottom:0}}"],data:{animation:[tP]}}),i})();const gO=["*",[["mat-toolbar-row"]]],_O=["*","mat-toolbar-row"],bO=Hl(class{constructor(i){this._elementRef=i}});let AO=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),i})(),yO=(()=>{class i extends bO{constructor(e,t,r){super(e),this._platform=t,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Qn),n.Y36(T.K0))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,AO,5),2&e){let d;n.iGM(d=n.CRH())&&(t._toolbarRows=d)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[n.qOj],ngContentSelectors:_O,decls:2,vars:0,template:function(e,t){1&e&&(n.F$t(gO),n.Hsn(0),n.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),i})(),Qv=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})(),wO=0;const MO=Xa(class{}),fD="mat-badge-content";let CO=(()=>{class i extends MO{constructor(e,t,r,d,u){super(),this._ngZone=e,this._elementRef=t,this._ariaDescriber=r,this._renderer=d,this._animationMode=u,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=wO++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=Ge(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=Ge(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(fD),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t)})}):e.classList.add(t),e}_updateRenderedContent(e){const t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${fD}`);for(const t of Array.from(e))t!==this._badgeElement&&t.remove()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(hu),n.Y36(n.Qsj),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&n.ekj("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t.content)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[n.qOj]}),i})(),vO=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Ll,wt,wt]}),i})();const Xv=function(i){return{color:i}};function TO(i,a){if(1&i&&(n.TgZ(0,"button",8),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3," apps "),n.qZA()()),2&i){const e=n.oxw(),t=n.MAs(2);n.Q6J("matMenuTriggerFor",t)("matTooltip",n.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),n.xp6(2),n.Q6J("ngStyle",n.VKq(5,Xv,e.iconColor))}}function xO(i,a){if(1&i&&(n.TgZ(0,"span",9),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(6,Xv,e.textColor)),n.xp6(1),n.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function SO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onLogOut())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"NAV.LOGOUT")," "))}let EO=(()=>{class i{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ql))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(n.YNc(0,TO,4,7,"button",0),n.TgZ(1,"mat-menu",null,1)(3,"button",2),n.NdJ("click",function(){return t.redirectToUrl()})("auxclick",function(){return t.redirectToUrl()}),n.TgZ(4,"span"),n._uU(5),n.qZA()()(),n.TgZ(6,"button",3)(7,"mat-icon",4),n._uU(8," person "),n.qZA(),n.YNc(9,xO,2,8,"span",5),n.qZA(),n.TgZ(10,"mat-menu",null,6),n.YNc(12,SO,3,3,"button",7),n.qZA()),2&e){const r=n.MAs(11);n.Q6J("ngIf",t.url),n.xp6(5),n.Oqu(t.label),n.xp6(1),n.Q6J("matMenuTriggerFor",r),n.xp6(1),n.Q6J("ngStyle",n.VKq(6,Xv,t.iconColor)),n.xp6(2),n.Q6J("ngIf",null!==t.user),n.xp6(3),n.Q6J("ngIf",t.logoutEnabled)}},dependencies:[T.O5,T.PC,zn,Yp,bd,Db,Ht,yr,Ke],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),i})(),EA=(()=>{class i extends oa{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const e=Object.assign({},this.queryParams);delete e.applicationFormItems,this.queryParams=e}}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[n.qOj,n.TTD]}),i})();const af=function(i){return{color:i}};function DO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onToggleSidenav())}),n.TgZ(1,"mat-icon"),n._uU(2,"menu"),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(1,af,e.iconColor))}}function LO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),n._uU(3," language "),n.qZA()(),n.TgZ(4,"mat-menu",null,13)(6,"button",14),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeLanguage())}),n._uU(7),n.ALo(8,"translate"),n.qZA()()()}if(2&i){const e=n.MAs(5),t=n.oxw();n.Q6J("ngStyle",n.VKq(6,af,t.textColor)),n.xp6(1),n.Q6J("matMenuTriggerFor",e),n.xp6(1),n.Q6J("ngStyle",n.VKq(8,af,t.iconColor)),n.xp6(5),n.hij(" ",n.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function HO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",15),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.showNotificationHistory())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",16),n._uU(3),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",n.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),n.xp6(2),n.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),n.Q6J("ngStyle",n.VKq(7,af,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),n.xp6(1),n.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function RO(i,a){if(1&i&&n._UZ(0,"perun-web-apps-header-menu",17),2&i){const e=n.oxw();n.Q6J("url",e.otherAppUrl)("label",e.otherAppLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor)}}const PO=function(i){return{background:i}},kO=function(){return[]},OO=function(){return["/"]};let IO=(()=>{class i{constructor(e,t,r,d,u,c,o){this.storeService=e,this.sanitizer=t,this.translateService=r,this.otherApplicationService=d,this.notificationStorageService=u,this.dialog=c,this.route=o,this.sidenavToggle=new n.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(e="en"){return this.storeService.getProperty(this.otherApp===Go.Profile?"profile_label_en":"en"===e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===Go.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0)}(this.otherApp!==Go.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const e=ln();e.width="520px",this.dialog.open(hD,e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(ei),n.Y36(tn),n.Y36(cA),n.Y36(oA),n.Y36(on),n.Y36(mi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-toolbar",0)(1,"div",1),n.YNc(2,DO,3,3,"button",2),n._UZ(3,"a",3),n.TgZ(4,"p",4),n._uU(5),n.qZA()(),n.TgZ(6,"div",5),n.YNc(7,LO,9,10,"div",6),n.YNc(8,HO,4,9,"button",7),n.YNc(9,RO,1,6,"perun-web-apps-header-menu",8),n.qZA()()),2&e&&(n.Q6J("ngStyle",n.VKq(11,PO,t.bgColor)),n.xp6(2),n.Q6J("ngIf",t.showToggle),n.xp6(1),n.Q6J("innerHTML",t.logo,n.oJD)("routerLink",t.disableLogo?n.DdM(13,kO):n.DdM(14,OO))("queryParams",t.route.snapshot.queryParams),n.xp6(1),n.Q6J("ngStyle",n.VKq(15,af,t.textColor)),n.xp6(1),n.hij(" ",t.label," "),n.xp6(1),n.Q6J("ngStyle",n.VKq(17,af,t.navTextColor)),n.xp6(1),n.Q6J("ngIf",t.showLanguageMenu),n.xp6(1),n.Q6J("ngIf",t.showNotifications),n.xp6(1),n.Q6J("ngIf",t.showHeaderMenu))},dependencies:[T.O5,T.PC,Cl,zn,Yp,bd,Db,Ht,yr,yO,CO,EO,EA,Ke],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),i})();function BO(i,a){if(1&i&&(n.TgZ(0,"div",8),n._UZ(1,"div",9),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("innerHTML",e.logo,n.oJD)}}function NO(i,a){if(1&i&&(n.TgZ(0,"div",10),n._UZ(1,"div",11)(2,"mat-icon",12),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("innerHTML",e.logo,n.oJD)}}const VO=function(i){return{color:i}};function jO(i,a){if(1&i&&(n.TgZ(0,"p",13),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(2,VO,e.textColor)),n.xp6(1),n.hij(" ",e.headerTitle," ")}}const FO=function(i,a){return{background:i,color:a}},zO=function(i,a){return{"min-height":i,"background-color":a}};let UO=(()=>{class i{constructor(e,t,r,d){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=d,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(ei),n.Y36(xv),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,BO,2,1,"div",1),n.YNc(2,NO,3,1,"div",2),n.YNc(3,jO,2,4,"p",3),n.qZA(),n.TgZ(4,"div",4)(5,"div",5)(6,"div",6),n._UZ(7,"router-outlet"),n.qZA(),n.TgZ(8,"div",7),n._UZ(9,"perun-web-apps-footer"),n.qZA()()()),2&e&&(n.Q6J("ngStyle",n.WLB(5,FO,t.headerBackgroundColor,t.headerTextColor)),n.xp6(1),n.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),n.xp6(1),n.Q6J("ngIf","publications"===t.application),n.xp6(1),n.Q6J("ngIf",!!t.headerTitle),n.xp6(2),n.Q6J("ngStyle",n.WLB(8,zO,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[T.O5,T.PC,zn,Wr,ZE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),i})(),qO=(()=>{class i{constructor(e){this.store=e}getSideMenuItems(){const e=this.store.getProperty("displayed_tabs"),t=[];return e.forEach(d=>{switch(d){case"profile":t.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":t.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":t.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":t.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":t.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":t.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"consents":t.push({label:"MENU_ITEMS.CONSENTS",icon:"fact_check",link:"/profile/consents",activatedRegex:"^/profile/consents",tabName:"consents"});break;case"settings":t.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.getProperty("external_services").forEach(d=>{const u={icon:"insert_link",link:d.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};this.store.getProperty("supported_languages").forEach(o=>{u[`label_${o}`]=String(d[`label_${o}`])??d.label_en}),t.push(u)}),t}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ut))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Kv=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})();const eT=["*"],YO=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],WO=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],gD=Xa(Ni(class{})),QO=Ni(class{}),_D=new n.OlP("MatList"),bD=new n.OlP("MatNavList");let XO=(()=>{class i extends gD{constructor(){super(...arguments),this._stateChanges=new Le.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[n._Bn([{provide:bD,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:eT,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),i})(),tT=(()=>{class i extends gD{constructor(e){super(),this._elementRef=e,this._stateChanges=new Le.x,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[n._Bn([{provide:_D,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:eT,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),i})(),AD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),i})(),yD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),i})(),DA=(()=>{class i extends QO{constructor(e,t,r,d){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new Le.x,this._disabled=!1,this._isInteractiveList=!!(r||d&&"action-list"===d._getListType()),this._list=r||d;const u=this._getHostElement();"button"===u.nodeName.toLowerCase()&&!u.hasAttribute("type")&&u.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(rt(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Ge(e)}ngAfterContentInit(){!function Rl(i,a,e="mat"){i.changes.pipe(vn(i)).subscribe(({length:t})=>{Pl(a,`${e}-2-line`,!1),Pl(a,`${e}-3-line`,!1),Pl(a,`${e}-multi-line`,!1),2===t||3===t?Pl(a,`${e}-${t}-line`,!0):t>3&&Pl(a,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(bD,8),n.Y36(_D,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,AD,5),n.Suo(r,yD,5),n.Suo(r,gu,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._avatar=d.first),n.iGM(d=n.CRH())&&(t._icon=d.first),n.iGM(d=n.CRH())&&(t._lines=d)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[n.qOj],ngContentSelectors:WO,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(n.F$t(YO),n.TgZ(0,"span",0),n._UZ(1,"span",1),n.Hsn(2),n.TgZ(3,"span",2),n.Hsn(4,1),n.qZA(),n.Hsn(5,2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},dependencies:[Jr],encapsulation:2,changeDetection:0}),i})(),nT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[js,ca,wt,Jh,T.ez,js,wt,Jh,Kv]}),i})();const rI=function(i){return{color:i}};function aI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-list-item",2),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(d.external?u.goToURL(d.link):u.shouldHideMenu())}),n.TgZ(1,"mat-icon"),n._uU(2),n.qZA(),n.TgZ(3,"span",3),n._uU(4),n.ALo(5,"localisedText"),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.ekj("activated",t.isActive(e.activatedRegex)),n.s9C("routerLink",e.external?null:e.link),n.Q6J("ngStyle",n.VKq(16,rI,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),n.xp6(2),n.Oqu(e.icon),n.xp6(2),n.Oqu(e.external?n.Dn7(5,7,e,t.lang,"label"):n.lcZ(6,11,n.xi3(7,13,e.label,t.lang)))}}let sI=(()=>{class i{constructor(e,t,r,d){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.translateService=d,this.items=[],this.lang="en",this.textColor=this.storeService.getProperty("theme").sidemenu_text_color,this.currentUrl=r.url,r.events.subscribe(u=>{u instanceof Rr&&(this.currentUrl=u.url)})}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{const{lang:r}=t;this.lang=r});const e=this.storeService.getProperty("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(t=>e.includes(t.tabName))}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}goToURL(e){window.open(e,"_blank")}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(qO),n.Y36(Ut),n.Y36(Dn),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["mat-ripple","","class","side-menu-item-height","queryParamsHandling","merge",3,"activated","ngStyle","matRippleColor","routerLink","click",4,"ngFor","ngForOf"],["mat-ripple","","queryParamsHandling","merge",1,"side-menu-item-height",3,"ngStyle","matRippleColor","routerLink","click"],[1,"nav-caption","ml-3"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-nav-list",0),n.YNc(1,aI,8,18,"mat-list-item",1),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngForOf",t.items))},dependencies:[T.sg,T.PC,zn,XO,DA,oa,Nv,Jr,Ke,Xt,$E],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block;padding-left:6px}.side-menu-item-height[_ngcontent-%COMP%]{height:40px!important}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),i})();function oI(i,a){if(1&i&&(n.TgZ(0,"span",1)(1,"a",2),n._uU(2),n.qZA()()),2&i){const e=a.$implicit;n.xp6(1),n.Q6J("routerLink",e.routerLink),n.xp6(1),n.Oqu(e.label)}}let lI=(()=>{class i{constructor(e,t,r){this.router=e,this.activatedRoute=t,this.translate=r,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}ngOnInit(){this.router.events.pipe((0,bt.h)(e=>e instanceof Rr)).subscribe(()=>{this.menuItems=[],this.createBreadcrumbs(this.activatedRoute.root)})}createBreadcrumbs(e,t=""){const r=e.children;0===r.length||"service-access"===r[0].snapshot.routeConfig.path||r.forEach(d=>{const u=d.snapshot.url.map(o=>o.path).join("/");""!==u&&(t+=`/${u}`);const c=this.translate.instant(d.snapshot.data[i.ROUTE_DATA_BREADCRUMB]);return c&&(!this.menuItems[this.menuItems.length-1]||c!==this.menuItems[this.menuItems.length-1].label)&&this.menuItems.push({label:c,routerLink:t}),this.createBreadcrumbs(d,t)})}}return i.ROUTE_DATA_BREADCRUMB="breadcrumb",i.\u0275fac=function(e){return new(e||i)(n.Y36(Dn),n.Y36(mi),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-breadcrumbs"]],decls:1,vars:1,consts:[["class","custom-breadcrumb",4,"ngFor","ngForOf"],[1,"custom-breadcrumb"],[1,"breadcrumb-text",3,"routerLink"]],template:function(e,t){1&e&&n.YNc(0,oI,3,2,"span",0),2&e&&n.Q6J("ngForOf",t.menuItems)},dependencies:[T.sg,Cl,EA],styles:['.custom-breadcrumb[_ngcontent-%COMP%]{display:inline-block}.custom-breadcrumb[_ngcontent-%COMP%]:first-child:before{display:none}.custom-breadcrumb[_ngcontent-%COMP%]:before{content:">";vertical-align:center;display:inline-block;margin:0 10px 10px 8px;-webkit-font-smoothing:antialiased}.breadcrumb-text[_ngcontent-%COMP%]{text-decoration:none!important;color:#2c2c2c}']}),i})();const cI=["footer"],MD=function(i){return{background:i}},dI=function(i){return{"min-height":i}};function uI(i,a){if(1&i){const e=n.EpF();n._UZ(0,"perun-web-apps-notificator"),n.TgZ(1,"div",2)(2,"perun-web-apps-header",3),n.NdJ("sidenavToggle",function(){n.CHM(e);const r=n.MAs(5);return n.KtG(r.toggle())}),n.qZA(),n.TgZ(3,"mat-sidenav-container",4)(4,"mat-sidenav",5,6),n._UZ(6,"perun-web-apps-side-menu",7),n.qZA(),n.TgZ(7,"mat-sidenav-content",8)(8,"div",9),n._UZ(9,"perun-web-apps-breadcrumbs")(10,"router-outlet"),n.qZA(),n.TgZ(11,"div",null,10),n._UZ(13,"perun-web-apps-footer"),n.qZA()()()()}if(2&i){const e=n.MAs(5),t=n.oxw();n.xp6(2),n.Q6J("otherApp",t.otherApp),n.xp6(2),n.Q6J("mode",t.sidebarMode)("ngStyle",n.VKq(7,MD,t.sideMenuBgColor))("opened",!t.isMobile()),n.xp6(2),n.Q6J("sideNav",e),n.xp6(1),n.Q6J("ngStyle",n.VKq(9,MD,t.contentBackgroundColor)),n.xp6(1),n.Q6J("ngStyle",n.VKq(11,dI,t.contentHeight))}}function hI(i,a){if(1&i&&n._UZ(0,"perun-web-apps-login-screen-base",11),2&i){const e=n.oxw();n.Q6J("application","user-profile")("headerTitle",e.headerLabel)}}let pI=(()=>{class i{constructor(e,t,r,d,u,c,o,s){this.store=e,this.attributesManagerService=t,this.translateService=r,this.initAuth=d,this.changeDetector=u,this.preferredLangService=c,this.titleService=o,this.document=s,this.sidebarMode="side",this.sideMenuBgColor=this.store.getProperty("theme").sidemenu_bg_color,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.contentHeight="calc(100vh - 84px)",this.headerLabel=this.store.getProperty("header_label_en"),this.otherApp=Go.Admin,this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){if(this.translateService.onLangChange.subscribe(e=>{const t=this.store.getProperty("document_title");this.titleService.setTitle("en"===e.lang?t.en:t.cs),this.document.documentElement.lang=e.lang}),this.isLoginScreenShown=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),this.isLoginScreenShown||this.isServiceAccess){const e=this.preferredLangService.getPreferredLanguage(null);this.headerLabel=this.store.getProperty("en"===e?"header_label_en":"header_label_cs")}else this.attributesManagerService.getUserAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const r=e.find(u=>"preferredLanguage"===u.friendlyName)?.value??null,d=this.preferredLangService.getPreferredLanguage(r);this.translateService.use(d)})}isMobile(){return window.innerWidth<=i.minWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return i.minWidth=992,i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(jn),n.Y36(tn),n.Y36(Tv),n.Y36(n.sBO),n.Y36(xv),n.Y36(ce),n.Y36(T.K0))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&n.Gf(cI,5),2&e){let r;n.iGM(r=n.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&n.NdJ("resize",function(d){return t.getScreenSize(d)},!1,n.Jf7)},decls:2,vars:2,consts:[[3,"ngIf"],[3,"application","headerTitle",4,"ngIf"],[1,"app-min-width"],[3,"otherApp","sidenavToggle"],["autosize","true"],["fixedInViewport","","fixedTopGap","64",1,"side-menu-size",3,"mode","ngStyle","opened"],["sidenav",""],[1,"overflow-hidden",3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application","headerTitle"]],template:function(e,t){1&e&&(n.YNc(0,uI,14,13,"ng-template",0),n.YNc(1,hI,1,2,"perun-web-apps-login-screen-base",1)),2&e&&(n.Q6J("ngIf",!t.isLoginScreenShown&&!t.isServiceAccess&&!t.isServiceLogin()),n.xp6(1),n.Q6J("ngIf",t.isLoginScreenShown||t.isServiceAccess||t.isServiceLogin()))},dependencies:[T.O5,T.PC,yE,wE,Dv,Wr,Nv,ZE,mO,IO,UO,sI,lI],styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 600px){#content-wrap[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}}a[_ngcontent-%COMP%]{text-decoration:none;color:#000}.side-menu-size[_ngcontent-%COMP%]{width:300px;height:auto}"]}),i})();var CD=E(1158);function fI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",15),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().index,d=n.oxw();return n.KtG(d.removeValue(r))}),n.TgZ(1,"mat-icon"),n._uU(2," indeterminate_check_box "),n.qZA()()}}function mI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",9)(1,"mat-form-field",10),n._UZ(2,"label",11),n.TgZ(3,"input",12),n.NdJ("click",function(){const d=n.CHM(e).index,u=n.oxw();return n.KtG(u.readonly&&u.attribute.displayName&&u.showValue(u.keys[d],u.attribute.displayName))})("ngModelChange",function(r){const u=n.CHM(e).index,c=n.oxw();return n.KtG(c.keys[u]=r)}),n.qZA()(),n.TgZ(4,"mat-form-field",10),n._UZ(5,"label",11),n.TgZ(6,"input",13),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.readonly&&void 0!==u.attribute.displayName&&u.showValue(d,u.attribute.displayName))})("ngModelChange",function(r){const u=n.CHM(e).index,c=n.oxw();return n.KtG(c.values[u]=r)}),n.qZA()(),n.YNc(7,fI,3,0,"button",14),n.qZA()}if(2&i){const e=a.index,t=n.oxw();n.xp6(1),n.s9C("appearance",t.readonly?"none":"standard"),n.xp6(1),n.hYB("for","",t.attribute.id,"-key-",e,""),n.xp6(1),n.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),n.hYB("id","",t.attribute.id,"-key-",e,""),n.MGl("name","key-",e,""),n.Q6J("ngModel",t.keys[e])("readonly",t.readonly),n.xp6(1),n.s9C("appearance",t.readonly?"none":"standard"),n.xp6(1),n.hYB("for","",t.attribute.id,"-value-",e,""),n.xp6(1),n.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),n.MGl("name","value-",e,""),n.hYB("id","",t.attribute.id,"-value-",e,""),n.Q6J("readonly",t.readonly)("ngModel",t.values[e]),n.xp6(1),n.Q6J("ngIf",!t.readonly)}}function gI(i,a){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function _I(i,a){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function bI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",16),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onShowChange())}),n.YNc(1,gI,2,0,"mat-icon",17),n.YNc(2,_I,2,0,"mat-icon",17),n.qZA()}if(2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngIf",!e.showMore),n.xp6(1),n.Q6J("ngIf",e.showMore)}}function AI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",18),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.addValue())}),n.TgZ(1,"mat-icon"),n._uU(2," add_box "),n.qZA()()}}let yI=(()=>{class i{constructor(e){this.dialog=e,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const e=new Map(Object.entries(this.attribute.value));for(const[t,r]of e.entries())this.keys.push(t),this.values.push(r)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=to(this.attribute))}customTrackBy(e){return e}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(e){this.keys.splice(e,1),this.values.splice(e,1)}updateAttribute(){const e={};for(let t=0;tt.defaultItemsShown),n.xp6(1),n.Q6J("ngIf",!t.readonly))},dependencies:[T.sg,T.O5,Mm,_i,Ai,cd,Nr,ua,Zs,zn,Ht,yr,di,ji],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),i})();const wI=["input"],MI=["label"],CI=function(i){return{enterDuration:i}},vI=["*"],TI=new n.OlP("mat-checkbox-default-options",{providedIn:"root",factory:vD});function vD(){return{color:"accent",clickAction:"check-indeterminate"}}let xI=0;const TD=vD(),SI={provide:ar,useExisting:(0,n.Gpc)(()=>ic),multi:!0};class EI{}const DI=Vs(Hl(Ni(Xa(class{constructor(i){this._elementRef=i}}))));let LI=(()=>{class i extends DI{constructor(e,t,r,d,u,c,o){super(t),this._changeDetectorRef=r,this._ngZone=d,this._animationMode=c,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new n.vpe,this.indeterminateChange=new n.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||TD,this.color=this.defaultColor=this._options.color||TD.color,this.tabIndex=parseInt(u)||0,this.id=this._uniqueId=`${e}${++xI}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Ge(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const t=Ge(e);t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Ge(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Ge(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const d=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(d)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){var e;const t=null===(e=this._options)||void 0===e?void 0:e.clickAction;this.disabled||"noop"===t?!this.disabled&&"noop"===t&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==t&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===t)return this._animationClasses.uncheckedToChecked;if(3==t)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===t?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===t?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===t?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&(n.Gf(wI,5),n.Gf(MI,5),n.Gf(Jr,5)),2&e){let r;n.iGM(r=n.CRH())&&(t._inputElement=r.first),n.iGM(r=n.CRH())&&(t._labelElement=r.first),n.iGM(r=n.CRH())&&(t.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[n.qOj]}),i})(),ic=(()=>{class i extends LI{constructor(e,t,r,d,u,c,o){super("mat-checkbox-",e,t,d,u,c,o),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const t=new EI;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36($r),n.Y36(n.R0b),n.$8M("tabindex"),n.Y36(n.QbO,8),n.Y36(TI,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,t){2&e&&(n.Ikx("id",t.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),n.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[n._Bn([SI]),n.qOj],ngContentSelectors:vI,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.NdJ("change",function(d){return t._onInteractionEvent(d)})("click",function(d){return t._onInputClick(d)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.qZA(),n._UZ(7,"span",7),n.TgZ(8,"span",8),n.O4$(),n.TgZ(9,"svg",9),n._UZ(10,"path",10),n.qZA(),n.kcU(),n._UZ(11,"span",11),n.qZA()(),n.TgZ(12,"span",12,13),n.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),n.TgZ(14,"span",14),n._uU(15,"\xa0"),n.qZA(),n.Hsn(16),n.qZA()()),2&e){const r=n.MAs(1),d=n.MAs(13);n.uIk("for",t.inputId),n.xp6(2),n.ekj("mat-checkbox-inner-container-no-side-margin",!d.textContent||!d.textContent.trim()),n.xp6(1),n.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),n.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",n.VKq(19,CI,"NoopAnimations"===t._animationMode?0:150))}},dependencies:[Jr,c0],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),i})(),xD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),mg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ca,wt,uu,xD,wt,xD]}),i})(),iT=(()=>{class i{transform(e){return e.replace(/\s/g,"-").replace(/\./g,"-").toLowerCase()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"multiWordDataCy",type:i,pure:!0}),i})();function PI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-checkbox",2),n.NdJ("change",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent())})("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.attribute.value=r)}),n.ALo(1,"multiWordDataCy"),n.qZA()}if(2&i){const e=n.oxw();n.Q2q("data-cy","",n.lcZ(1,2,e.attribute.displayName),"-value"),n.Q6J("ngModel",e.attribute.value)}}function kI(i,a){if(1&i&&(n.TgZ(0,"mat-label"),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.attribute.value)}}let OI=(()=>{class i{constructor(){this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.readonly||(this.readonly=to(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(e,t){1&e&&(n.TgZ(0,"div"),n.YNc(1,PI,2,4,"mat-checkbox",0),n.YNc(2,kI,2,1,"mat-label",1),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",!t.readonly),n.xp6(1),n.Q6J("ngIf",t.readonly))},dependencies:[T.O5,ic,Ai,ua,as,iT]}),i})();function rT(i,a,e){for(let t in a)if(a.hasOwnProperty(t)){const r=a[t];r?i.setProperty(t,r,null!=e&&e.has(t)?"important":""):i.removeProperty(t)}return i}function sf(i,a){const e=a?"":"none";rT(i.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function SD(i,a,e){rT(i.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function LA(i,a){return a&&"none"!=a?i+" "+a:i}function ED(i){const a=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*a}function aT(i,a){return i.getPropertyValue(a).split(",").map(t=>t.trim())}function sT(i){const a=i.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function oT(i,a,e){const{top:t,bottom:r,left:d,right:u}=i;return e>=t&&e<=r&&a>=d&&a<=u}function gg(i,a,e){i.top+=a,i.bottom=i.top+i.height,i.left+=e,i.right=i.left+i.width}function DD(i,a,e,t){const{top:r,right:d,bottom:u,left:c,width:o,height:s}=i,l=o*a,h=s*a;return t>r-h&&tc-l&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:sT(e)})})}handleScroll(a){const e=Or(a),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let d,u;if(e===this._document){const s=this.getViewportScrollPosition();d=s.top,u=s.left}else d=e.scrollTop,u=e.scrollLeft;const c=r.top-d,o=r.left-u;return this.positions.forEach((s,l)=>{s.clientRect&&e!==l&&e.contains(l)&&gg(s.clientRect,c,o)}),r.top=d,r.left=u,{top:c,left:o}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function HD(i){const a=i.cloneNode(!0),e=a.querySelectorAll("[id]"),t=i.nodeName.toLowerCase();a.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const o=this._getTargetHandle(c);o&&!this._disabledHandles.has(o)&&!this.disabled&&this._initializeDragSequence(o,c)}else this.disabled||this._initializeDragSequence(this._rootElement,c)},this._pointerMove=c=>{const o=this._getPointerPositionOnPage(c);if(!this._hasStartedDragging){if(Math.abs(o.x-this._pickupPositionOnPage.x)+Math.abs(o.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const m=Date.now()>=this._dragStartTime+this._getDragStartDelay(c),g=this._dropContainer;if(!m)return void this._endDragSequence(c);(!g||!g.isDragging()&&!g.isReceiving())&&(c.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(c)))}return}c.preventDefault();const s=this._getConstrainedPointerPosition(o);if(this._hasMoved=!0,this._lastKnownPointerPosition=o,this._updatePointerDirectionDelta(s),this._dropContainer)this._updateActiveDropContainer(s,o);else{const l=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=s.x-l.x+this._passiveTransform.x,h.y=s.y-l.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:s,event:c,distance:this._getDragDistance(s),delta:this._pointerDirectionDelta})})},this._pointerUp=c=>{this._endDragSequence(c)},this._nativeDragStart=c=>{if(this._handles.length){const o=this._getTargetHandle(c);o&&!this._disabledHandles.has(o)&&!this.disabled&&c.preventDefault()}else this.disabled||c.preventDefault()},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new LD(t),u.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=Ge(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>sf(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>ci(t)),this._handles.forEach(t=>sf(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=ci(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,HA),e.addEventListener("touchstart",this._pointerDown,OD),e.addEventListener("dragstart",this._nativeDragStart,HA)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?ci(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){var a,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(e=this._rootElement)||void 0===e||e.remove()),null===(a=this._anchor)||void 0===a||a.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),sf(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),sf(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var a,e;null===(a=this._preview)||void 0===a||a.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var a,e;null===(a=this._placeholder)||void 0===a||a.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){_g(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,d=this._placeholder=this._createPlaceholderElement(),u=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();r.insertBefore(u,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),SD(t,!1,lT),this._document.body.appendChild(r.replaceChild(d,t)),this._getPreviewInsertionPoint(r,c).appendChild(this._preview),this.started.next({source:this,event:a}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=_g(e),d=!r&&0!==e.button,u=this._rootElement,c=Or(e),o=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),s=r?_0(e):jh(e);if(c&&c.draggable&&"mousedown"===e.type&&e.preventDefault(),t||d||o||s)return;if(this._handles.length){const p=u.style;this._rootElementTapHighlight=p.webkitTapHighlightColor||"",p.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(p=>this._updateOnScroll(p)),this._boundaryElement&&(this._boundaryRect=sT(this._boundaryElement));const l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){SD(this._rootElement,!0,lT),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(a),d=this._getDragDistance(r),u=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:d,dropPoint:r,event:a}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:u,distance:d,dropPoint:r,event:a}),e.drop(this,t,this._initialIndex,this._initialContainer,u,d,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:r}){let d=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!d&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(d=this._initialContainer),d&&d!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=d,this._dropContainer.enter(this,a,e,d===this._initialContainer&&d.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:d,currentIndex:d.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,e):this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let r;if(t&&a){const d=a.matchSize?this._initialClientRect:null,u=a.viewContainer.createEmbeddedView(t,a.context);u.detectChanges(),r=BD(u,this._document),this._previewRef=u,a.matchSize?ND(r,d):r.style.transform=RA(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=HD(this._rootElement),ND(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return rT(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},lT),sf(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(d=>r.classList.add(d)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function BI(i){const a=getComputedStyle(i),e=aT(a,"transition-property"),t=e.find(c=>"transform"===c||"all"===c);if(!t)return 0;const r=e.indexOf(t),d=aT(a,"transition-duration"),u=aT(a,"transition-delay");return ED(d[r])+ED(u[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=u=>{var c;(!u||Or(u)===this._preview&&"transform"===u.propertyName)&&(null===(c=this._preview)||void 0===c||c.removeEventListener("transitionend",r),t(),clearTimeout(d))},d=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=BD(this._placeholderRef,this._document)):t=HD(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e,t){const r=e===this._rootElement?null:e,d=r?r.getBoundingClientRect():a,u=_g(t)?t.targetTouches[0]:t,c=this._getViewportScrollPosition();return{x:d.left-a.left+(u.pageX-d.left-c.left),y:d.top-a.top+(u.pageY-d.top-c.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=_g(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,r=t.pageX-e.left,d=t.pageY-e.top;if(this._ownerSVGElement){const u=this._ownerSVGElement.getScreenCTM();if(u){const c=this._ownerSVGElement.createSVGPoint();return c.x=r,c.y=d,c.matrixTransform(u.inverse())}}return{x:r,y:d}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(a,this,this._initialClientRect,this._pickupPositionInElement):a;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:d,y:u}=this._pickupPositionInElement,c=this._boundaryRect,{width:o,height:s}=this._getPreviewRect(),l=c.top+u,h=c.bottom-(s-u);t=ID(t,c.left+d,c.right-(o-d)),r=ID(r,l,h)}return{x:t,y:r}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,r=this._pointerDirectionDelta,d=this._pointerPositionAtLastDirectionChange,u=Math.abs(e-d.x),c=Math.abs(t-d.y);return u>this._config.pointerDirectionChangeThreshold&&(r.x=e>d.x?1:-1,d.x=e),c>this._config.pointerDirectionChangeThreshold&&(r.y=t>d.y?1:-1,d.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,sf(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,HA),a.removeEventListener("touchstart",this._pointerDown,OD),a.removeEventListener("dragstart",this._nativeDragStart,HA)}_applyRootElementTransform(a,e){const t=RA(a,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=LA(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const r=null!==(t=this._previewTemplate)&&void 0!==t&&t.template?void 0:this._initialTransform,d=RA(a,e);this._preview.style.transform=LA(d,r)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const d=r.left-t.left,u=t.right-r.right,c=r.top-t.top,o=t.bottom-r.bottom;r.width>t.width?(d>0&&(a+=d),u>0&&(a-=u)):a=0,r.height>t.height?(c>0&&(e+=c),o>0&&(e-=o)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:_g(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=Or(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&gg(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var a;return(null===(a=this._parentPositions.positions.get(this._document))||void 0===a?void 0:a.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=au(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return ci(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(a){return this._handles.find(e=>a.target&&(a.target===e||e.contains(a.target)))}}function RA(i,a){return`translate3d(${Math.round(i)}px, ${Math.round(a)}px, 0)`}function ID(i,a,e){return Math.max(a,Math.min(e,i))}function _g(i){return"t"===i.type[0]}function BD(i,a){const e=i.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function ND(i,a){i.style.width=`${a.width}px`,i.style.height=`${a.height}px`,i.style.transform=RA(a.left,a.top)}function VD(i,a,e){const t=bg(a,i.length-1),r=bg(e,i.length-1);if(t===r)return;const d=i[t],u=r0)return null;const c="horizontal"===this.orientation,o=d.findIndex(w=>w.drag===a),s=d[u],h=s.clientRect,p=o>u?1:-1,m=this._getItemOffsetPx(d[o].clientRect,h,p),g=this._getSiblingOffsetPx(o,d,p),f=d.slice();return VD(d,o,u),d.forEach((w,N)=>{if(f[N]===w)return;const se=w.drag===a,Pe=se?m:g,ot=se?a.getPlaceholderElement():w.drag.getRootElement();w.offset+=Pe,c?(ot.style.transform=LA(`translate3d(${Math.round(w.offset)}px, 0, 0)`,w.initialTransform),gg(w.clientRect,0,Pe)):(ot.style.transform=LA(`translate3d(0, ${Math.round(w.offset)}px, 0)`,w.initialTransform),gg(w.clientRect,Pe,0))}),this._previousSwap.overlaps=oT(h,e,t),this._previousSwap.drag=s.drag,this._previousSwap.delta=c?r.x:r.y,{previousIndex:o,currentIndex:u}}enter(a,e,t,r){const d=null==r||r<0?this._getItemIndexFromPointerPosition(a,e,t):r,u=this._activeDraggables,c=u.indexOf(a),o=a.getPlaceholderElement();let s=u[d];if(s===a&&(s=u[d+1]),!s&&(null==d||-1===d||d-1&&u.splice(c,1),s&&!this._dragDropRegistry.isDragging(s)){const l=s.getRootElement();l.parentElement.insertBefore(o,l),u.splice(d,0,a)}else ci(this._element).appendChild(o),u.push(a);o.style.transform="",this._cacheItemPositions()}withItems(a){this._activeDraggables=a.slice(),this._cacheItemPositions()}withSortPredicate(a){this._sortPredicate=a}reset(){this._activeDraggables.forEach(a=>{const e=a.getRootElement();if(e){var t;const r=null===(t=this._itemPositions.find(d=>d.drag===a))||void 0===t?void 0:t.initialTransform;e.style.transform=r||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a)}updateOnScroll(a,e){this._itemPositions.forEach(({clientRect:t})=>{gg(t,a,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:sT(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(a,e,t){const r="horizontal"===this.orientation;let d=r?e.left-a.left:e.top-a.top;return-1===t&&(d+=r?e.width-a.width:e.height-a.height),d}_getSiblingOffsetPx(a,e,t){const r="horizontal"===this.orientation,d=e[a].clientRect,u=e[a+-1*t];let c=d[r?"width":"height"]*t;if(u){const o=r?"left":"top",s=r?"right":"bottom";-1===t?c-=u.clientRect[o]-d[s]:c+=d[o]-u.clientRect[s]}return c}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const u=t[t.length-1].clientRect;return r?a>=u.right:e>=u.bottom}{const u=t[0].clientRect;return r?a<=u.left:e<=u.top}}_getItemIndexFromPointerPosition(a,e,t,r){const d="horizontal"===this.orientation,u=this._itemPositions.findIndex(({drag:c,clientRect:o})=>{if(c===a)return!1;if(r){const s=d?r.x:r.y;if(c===this._previousSwap.drag&&this._previousSwap.overlaps&&s===this._previousSwap.delta)return!1}return d?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Le.x,this.entered=new Le.x,this.exited=new Le.x,this.dropped=new Le.x,this.sorted=new Le.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Nt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Le.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function II(i=0,a=Mu.z){return i<0&&(i=0),(0,kl.H)(i,i,a)}(0,X1).pipe(rt(this._stopScrollTimers)).subscribe(()=>{const u=this._scrollNode,c=this.autoScrollStep;1===this._verticalScrollDirection?u.scrollBy(0,-c):2===this._verticalScrollDirection&&u.scrollBy(0,c),1===this._horizontalScrollDirection?u.scrollBy(-c,0):2===this._horizontalScrollDirection&&u.scrollBy(c,0)})},this.element=ci(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new LD(t),this._sortStrategy=new FI(this.element,e),this._sortStrategy.withSortPredicate((u,c)=>this.sortPredicate(u,c,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(a)),this._sortStrategy.enter(a,e,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,r,d,u,c,o={}){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:d,distance:u,dropPoint:c,event:o})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===a.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(a){return this._sortStrategy.direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._sortStrategy.orientation=a,this}withScrollableParents(a){const e=ci(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,r){if(this.sortingDisabled||!this._clientRect||!DD(this._clientRect,.05,e,t))return;const d=this._sortStrategy.sort(a,e,t,r);d&&this.sorted.next({previousIndex:d.previousIndex,currentIndex:d.currentIndex,container:this,item:a})}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,r=0,d=0;if(this._parentPositions.positions.forEach((u,c)=>{c===this._document||!u.clientRect||t||DD(u.clientRect,.05,a,e)&&([r,d]=function UI(i,a,e,t){const r=zD(a,t),d=UD(a,e);let u=0,c=0;if(r){const o=i.scrollTop;1===r?o>0&&(u=1):i.scrollHeight-o>i.clientHeight&&(u=2)}if(d){const o=i.scrollLeft;1===d?o>0&&(c=1):i.scrollWidth-o>i.clientWidth&&(c=2)}return[u,c]}(c,u.clientRect,a,e),(r||d)&&(t=c))}),!r&&!d){const{width:u,height:c}=this._viewportRuler.getViewportSize(),o={width:u,height:c,top:0,right:u,bottom:c,left:0};r=zD(o,e),d=UD(o,a),t=window}t&&(r!==this._verticalScrollDirection||d!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=d,this._scrollNode=t,(r||d)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=ci(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=ci(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_reset(){this._isDragging=!1;const a=ci(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(a,e){return null!=this._clientRect&&oT(this._clientRect,a,e)}_getSiblingContainerFromPosition(a,e,t){return this._siblings.find(r=>r._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!oT(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const d=ci(this.element);return r===d||d.contains(r)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=au(ci(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function zD(i,a){const{top:e,bottom:t,height:r}=i,d=.05*r;return a>=e-d&&a<=e+d?1:a>=t-d&&a<=t+d?2:0}function UD(i,a){const{left:e,right:t,width:r}=i,d=.05*r;return a>=e-d&&a<=e+d?1:a>=t-d&&a<=t+d?2:0}const PA=kr({passive:!1,capture:!0});let qI=(()=>{class i{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Le.x,this.pointerUp=new Le.x,this.scroll=new Le.x,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,PA)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,PA)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=t.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:d=>this.pointerUp.next(d),options:!0}).set("scroll",{handler:d=>this.scroll.next(d),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:PA}),r||this._globalListeners.set("mousemove",{handler:d=>this.pointerMove.next(d),options:PA}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((d,u)=>{this._document.addEventListener(u,d.handler,d.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new yn.y(r=>this._ngZone.runOutsideAngular(()=>{const u=c=>{this._activeDragInstances.length&&r.next(c)};return e.addEventListener("scroll",u,!0),()=>{e.removeEventListener("scroll",u,!0)}}))),(0,kn.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const YI={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let cT=(()=>{class i{constructor(e,t,r,d){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=d}createDrag(e,t=YI){return new jI(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new zI(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0),n.LFG(n.R0b),n.LFG(Us),n.LFG(qI))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const qD=new n.OlP("CDK_DRAG_PARENT"),YD=new n.OlP("CdkDropListGroup"),WD=new n.OlP("CDK_DRAG_CONFIG");let WI=0;const GD=new n.OlP("CdkDropList");let GI=(()=>{class i{constructor(e,t,r,d,u,c,o){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=d,this._dir=u,this._group=c,this._destroyed=new Le.x,this.connectedTo=[],this.id="cdk-drop-list-"+WI++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.sorted=new n.vpe,this._unsortedItems=new Set,this._dropListRef=t.createDropList(e),this._dropListRef.data=this,o&&this._assignDefaults(o),this._dropListRef.enterPredicate=(s,l)=>this.enterPredicate(s.data,l.data),this._dropListRef.sortPredicate=(s,l,h)=>this.sortPredicate(s,l.data,h.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),i._dropLists.push(this),c&&c._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=Ge(e)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,t)=>e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=i._dropLists.indexOf(this);e>-1&&i._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(vn(this._dir.value),rt(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const t=qc(this.connectedTo).map(r=>"string"==typeof r?i._dropLists.find(u=>u.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===t.indexOf(r)&&t.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(d=>d.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=Ge(this.sortingDisabled),e.autoScrollDisabled=Ge(this.autoScrollDisabled),e.autoScrollStep=Qt(this.autoScrollStep,2),e.connectedTo(t.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:t,draggingDisabled:r,sortingDisabled:d,listAutoScrollDisabled:u,listOrientation:c}=e;this.disabled=r??!1,this.sortingDisabled=d??!1,this.autoScrollDisabled=u??!1,this.orientation=c||"vertical",t&&(this.lockAxis=t)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return i._dropLists=[],i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(cT),n.Y36(n.sBO),n.Y36(ts),n.Y36(Hi,8),n.Y36(YD,12),n.Y36(WD,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(n.uIk("id",t.id),n.ekj("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[n._Bn([{provide:YD,useValue:void 0},{provide:GD,useExisting:i}])]}),i})();const $D=new n.OlP("CdkDragHandle"),$I=new n.OlP("CdkDragPlaceholder"),ZI=new n.OlP("CdkDragPreview");let QI=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p){this.element=e,this.dropContainer=t,this._ngZone=d,this._viewContainerRef=u,this._dir=o,this._changeDetectorRef=l,this._selfHandle=h,this._parentDrag=p,this._destroyed=new Le.x,this.started=new n.vpe,this.released=new n.vpe,this.ended=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.dropped=new n.vpe,this.moved=new yn.y(m=>{const g=this._dragRef.moved.pipe((0,Mt.U)(f=>({source:this,pointerPosition:f.pointerPosition,event:f.event,delta:f.delta,distance:f.distance}))).subscribe(m);return()=>{g.unsubscribe()}}),this._dragRef=s.createDrag(e,{dragStartThreshold:c&&null!=c.dragStartThreshold?c.dragStartThreshold:5,pointerDirectionChangeThreshold:c&&null!=c.pointerDirectionChangeThreshold?c.pointerDirectionChangeThreshold:5,zIndex:c?.zIndex}),this._dragRef.data=this,i._dragInstances.push(this),c&&this._assignDefaults(c),t&&(this._dragRef._withDropContainer(t._dropListRef),t.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=Ge(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ht.q)(1),rt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const t=e.rootElementSelector,r=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=i._dragInstances.indexOf(this);e>-1&&i._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let t=e;var r;this.rootElementSelector&&(t=void 0!==e.closest?e.closest(this.rootElementSelector):null===(r=e.parentElement)||void 0===r?void 0:r.closest(this.rootElementSelector)),this._dragRef.withRootElement(t||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):ci(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,r=this.dragStartDelay,d=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,u=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:Qt(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(d).withPreviewTemplate(u).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,ht.q)(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let t=this.element.nativeElement.parentElement;for(;t;){if(t.classList.contains("cdk-drag")){var r;e.withParent((null===(r=i._dragInstances.find(d=>d.element.nativeElement===t))||void 0===r?void 0:r._dragRef)||null);break}t=t.parentElement}})}_handleEvents(e){e.started.subscribe(t=>{this.started.emit({source:this,event:t.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(t=>{this.released.emit({source:this,event:t.event})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:r,constrainPosition:d,previewClass:u,boundaryElement:c,draggingDisabled:o,rootElementSelector:s,previewContainer:l}=e;this.disabled=o??!1,this.dragStartDelay=r||0,t&&(this.lockAxis=t),d&&(this.constrainPosition=d),u&&(this.previewClass=u),c&&(this.boundaryElement=c),s&&(this.rootElementSelector=s),l&&(this.previewContainer=l)}_setupHandlesListener(){this._handles.changes.pipe(vn(this._handles),(0,Wt.b)(e=>{const t=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),(0,An.w)(e=>(0,kn.T)(...e.map(t=>t._stateChanges.pipe(vn(t))))),rt(this._destroyed)).subscribe(e=>{const t=this._dragRef,r=e.element.nativeElement;e.disabled?t.disableHandle(r):t.enableHandle(r)})}}return i._dragInstances=[],i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(GD,12),n.Y36(T.K0),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(WD,8),n.Y36(Hi,8),n.Y36(cT),n.Y36(n.sBO),n.Y36($D,10),n.Y36(qD,12))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,ZI,5),n.Suo(r,$I,5),n.Suo(r,$D,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._previewTemplate=d.first),n.iGM(d=n.CRH())&&(t._placeholderTemplate=d.first),n.iGM(d=n.CRH())&&(t._handles=d)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[n._Bn([{provide:qD,useExisting:i}]),n.TTD]}),i})(),XI=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[cT],imports:[da]}),i})();const KI=["*"],ZD=new n.OlP("MatChipRemove"),JD=new n.OlP("MatChipAvatar"),QD=new n.OlP("MatChipTrailingIcon");class eB{constructor(a){this._elementRef=a}}const tB=Vs(Hl(Ni(eB),"primary"),-1);let kA=(()=>{class i extends tB{constructor(e,t,r,d,u,c,o,s){super(e),this._ngZone=t,this._changeDetectorRef=u,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new Le.x,this._onBlur=new Le.x,this.selectionChange=new n.vpe,this.destroyed=new n.vpe,this.removed=new n.vpe,this._addHostClassName(),this._chipRippleTarget=c.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new $h(this,t,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=d||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=s&&parseInt(s)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const t=Ge(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=Ge(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=Ge(e)}get removable(){return this._removable}set removable(e){this._removable=Ge(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",t=this._elementRef.nativeElement;t.hasAttribute(e)||t.tagName.toLowerCase()===e?t.classList.add(e):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,ht.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Qn),n.Y36(Zh,8),n.Y36(n.sBO),n.Y36(T.K0),n.Y36(n.QbO,8),n.$8M("tabindex"))},i.\u0275dir=n.lG2({type:i,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,JD,5),n.Suo(r,QD,5),n.Suo(r,ZD,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.avatar=d.first),n.iGM(d=n.CRH())&&(t.trailingIcon=d.first),n.iGM(d=n.CRH())&&(t.removeIcon=d.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t._handleClick(d)})("keydown",function(d){return t._handleKeydown(d)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(n.uIk("tabindex",t.disabled?null:t.tabIndex)("role",t.role)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),n.ekj("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[n.qOj]}),i})();const XD=new n.OlP("mat-chips-default-options"),aB=w0(class{constructor(i,a,e,t){this._defaultErrorStateMatcher=i,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Le.x}});let sB=0;class oB{constructor(a,e){this.source=a,this.value=e}}let KD=(()=>{class i extends aB{constructor(e,t,r,d,u,c,o){super(c,d,u,o),this._elementRef=e,this._changeDetectorRef=t,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new Le.x,this._uid="mat-chip-list-"+sB++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(s,l)=>s===l,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new n.vpe,this.valueChange=new n.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(e){this._explicitRole=e}get multiple(){return this._multiple}set multiple(e){this._multiple=Ge(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var e,t,r,d;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(d=r.control)||void 0===d?void 0:d.hasValidator(bi.required))&&void 0!==e&&e}set required(e){this._required=Ge(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ge(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=Ge(e),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return(0,kn.T)(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return(0,kn.T)(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return(0,kn.T)(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return(0,kn.T)(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new m0(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(rt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(rt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(vn(null),rt(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new Yi(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,t)),this._sortValues();else{const r=this._selectValue(e,t);r&&t&&this._keyManager.setActiveItem(r)}}_selectValue(e,t=!0){const r=this.chips.find(d=>null!=d.value&&this._compareWith(d.value,e));return r&&(t?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(t=>{t!==e&&t.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let t=null;t=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.change.emit(new oB(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let t=this.chips.toArray().indexOf(e.chip);this._isValidIndex(t)&&this._keyManager.updateActiveItem(t),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const t=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&t._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let t=e.target;for(;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Hi,8),n.Y36(Zs,8),n.Y36(Qs,8),n.Y36(Jc),n.Y36(gn,10))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-chip-list"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,kA,5),2&e){let d;n.iGM(d=n.CRH())&&(t.chips=d)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(e,t){1&e&&n.NdJ("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(d){return t._keydown(d)}),2&e&&(n.Ikx("id",t._uid),n.uIk("tabindex",t.disabled?null:t._tabIndex)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),n.ekj("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[n._Bn([{provide:ad,useExisting:i}]),n.qOj],ngContentSelectors:KI,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),i})(),lB=0,eL=(()=>{class i{constructor(e,t){this._elementRef=e,this._defaultOptions=t,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new n.vpe,this.placeholder="",this.id="mat-chip-list-input-"+lB++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=Ge(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=Ge(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!Di(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!Di(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(XD))},i.\u0275dir=n.lG2({type:i,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&n.NdJ("keydown",function(d){return t._keydown(d)})("keyup",function(d){return t._keyup(d)})("blur",function(){return t._blur()})("focus",function(){return t._focus()})("input",function(){return t._onInput()}),2&e&&(n.Ikx("id",t.id),n.uIk("disabled",t.disabled||null)("placeholder",t.placeholder||null)("aria-invalid",t._chipList&&t._chipList.ngControl?t._chipList.ngControl.invalid:null)("aria-required",t._chipList&&t._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[n.TTD]}),i})(),dT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Jc,{provide:XD,useValue:{separatorKeyCodes:[13]}}],imports:[wt]}),i})();function cB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-icon",9),n.NdJ("mousedown",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.dragDisabled=!1)}),n._uU(1,"drag_indicator"),n.qZA()}}function dB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-icon",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.edit(r))}),n._uU(1,"edit"),n.qZA()}}function uB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-icon",11),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.remove(r))}),n._uU(1,"cancel"),n.qZA()}}function hB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-chip",4),n.NdJ("removed",function(){const d=n.CHM(e).$implicit,u=n.oxw();return u.remove(d),n.KtG(u._sendEventToParent())}),n.YNc(1,cB,2,0,"mat-icon",5),n.TgZ(2,"div",6),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.readonly&&void 0!==u.attribute.displayName&&u.showValue(d,u.attribute.displayName))}),n._uU(3),n.qZA(),n.YNc(4,dB,2,0,"mat-icon",7),n.YNc(5,uB,2,0,"mat-icon",8),n.qZA()}if(2&i){const e=a.$implicit,t=n.oxw();n.Q6J("selectable",t.selectable)("cdkDragData",e)("removable",t.removable),n.xp6(1),n.Q6J("ngIf",t.removable),n.xp6(1),n.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),n.xp6(1),n.hij(" ",e," "),n.xp6(1),n.Q6J("ngIf",t.removable),n.xp6(1),n.Q6J("ngIf",t.removable)}}function pB(i,a){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function fB(i,a){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function mB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",12)(1,"span",13)(2,"button",14),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onShowChange())}),n.YNc(3,pB,2,0,"mat-icon",15),n.YNc(4,fB,2,0,"mat-icon",15),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(1),n.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.xp6(2),n.Q6J("ngIf",!e.showMore),n.xp6(1),n.Q6J("ngIf",e.showMore)}}function gB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",12)(1,"input",16),n.NdJ("matChipInputTokenEnd",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.add(r))})("change",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent())}),n.qZA()()}if(2&i){const e=n.oxw(),t=n.MAs(2);n.xp6(1),n.Q6J("matChipInputFor",t)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur)}}let _B=(()=>{class i{constructor(e,t){this.dialog=e,this.changeDetector=t,this.readonly=!1,this.sendEventToParent=new n.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!to(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=to(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(e){const t=e.input,r=e.value;(r||"").trim()&&(this.attribute.value.push(r.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),t&&(t.value=""),this.sendEventToParent.emit()}remove(e){const t=ln();t.width="400px",t.data={name:e},this.dialog.open(fk,t).afterClosed().subscribe(d=>{if(d){const u=this.attribute.value.indexOf(e);this.attribute.value.splice(u,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(e){this.dragDisabled=!0,VD(this.attribute.value,e.previousIndex,e.currentIndex),this.values=this.attribute.value}edit(e){const t=this.attribute.value.indexOf(e),r=ln();r.width="600px",r.data={attribute:this.attribute,index:t},this.dialog.open(pk,r).afterClosed().subscribe(u=>{u&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(e,t){const r=ln();r.width="350px",r.data={value:e,title:t},this.dialog.open(xA,r)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:6,vars:4,consts:[["cdkDropList","","cdkDropListOrientation","vertical",1,"mat-chip-list-stacked",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],["class","chip-word-break","cdkDrag","",3,"selectable","cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["cdkDrag","",1,"chip-word-break",3,"selectable","cdkDragData","removable","removed"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text","overflow-ellipsis",3,"click"],["class","edit-delete-icon ml-2",3,"click",4,"ngIf"],["class","edit-delete-icon",3,"click",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ml-2",3,"click"],[1,"edit-delete-icon",3,"click"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ml-auto",3,"click"],[4,"ngIf"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"mat-chip-list",0,1),n.NdJ("cdkDropListDropped",function(d){return t.drop(d),t._sendEventToParent()}),n.YNc(3,hB,6,9,"mat-chip",2),n.YNc(4,mB,5,4,"div",3),n.YNc(5,gB,2,3,"mat-form-field",3),n.qZA()()),2&e&&(n.xp6(1),n.Q6J("cdkDropListDisabled",t.dragDisabled),n.xp6(2),n.Q6J("ngForOf",t.values.slice(0,t.itemsShown)),n.xp6(1),n.Q6J("ngIf",t.values.length>t.defaultItemsShown),n.xp6(1),n.Q6J("ngIf",!t.readonly))},dependencies:[T.sg,T.O5,KD,kA,eL,GI,QI,zn,Ht,yr,di,ji],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),i})(),bB=(()=>{class i{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=to(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e,t){const r=ln();r.width="350px",r.data={value:e,title:t},this.dialog.open(xA,r)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-form-field",0)(1,"input",1),n.NdJ("click",function(){return t.readonly&&void 0!==t.value&&t.showValue(t.value,t.attribute.displayName)})("ngModelChange",function(d){return t.attribute.value=d})("keydown",function(){return t._sendEventToParent()}),n.ALo(2,"multiWordDataCy"),n.qZA()()),2&e&&(n.s9C("appearance",t.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",t.readonly&&void 0!==t.value),n.Q2q("data-cy","",n.lcZ(2,6,t.attribute.displayName),"-value"),n.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},dependencies:[_i,Ai,ua,di,ji,iT],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),i})(),AB=(()=>{class i{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.readonly||(this.readonly=to(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e){const t=ln();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(xA,t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-form-field",0)(1,"input",1),n.NdJ("click",function(){return t.readonly&&void 0!==t.attribute.value&&t.showValue(t.attribute)})("ngModelChange",function(d){return t.attribute.value=d})("keydown",function(){return t._sendEventToParent()}),n.qZA()()),2&e&&(n.s9C("appearance",t.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.value),n.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},dependencies:[_i,Lp,Ai,ua,di,ji],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();const yB=["map"];function wB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-boolean",3),n.NdJ("sendEventToParent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent2())}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function MB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-list",3),n.NdJ("sendEventToParent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent2())}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function CB(i,a){if(1&i&&n._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&i){const e=n.oxw();n.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function vB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-string",3),n.NdJ("sendEventToParent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent2())}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function TB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-integer",3),n.NdJ("sendEventToParent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent2())}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("attribute",e.attribute)("readonly",e.readonly)}}let uT=(()=>{class i{constructor(){this.readonly=!1,this.sendEventToParent2=new n.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(e,t){if(1&e&&n.Gf(yB,5),2&e){let r;n.iGM(r=n.CRH())&&(t.mapComponent=r.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(e,t){1&e&&(n.TgZ(0,"div"),n.YNc(1,wB,1,2,"perun-web-apps-attribute-value-boolean",0),n.YNc(2,MB,1,2,"perun-web-apps-attribute-value-list",0),n.TgZ(3,"div",1),n.NdJ("click",function(){return t._sendEventToParent2()}),n.YNc(4,CB,2,2,"perun-web-apps-attribute-value-map",2),n.qZA(),n.YNc(5,vB,1,2,"perun-web-apps-attribute-value-string",0),n.YNc(6,TB,1,2,"perun-web-apps-attribute-value-integer",0),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf","java.lang.Boolean"===t.attribute.type),n.xp6(1),n.Q6J("ngIf","java.util.ArrayList"===t.attribute.type),n.xp6(2),n.Q6J("ngIf","java.util.LinkedHashMap"===t.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.String"===t.attribute.type||"java.lang.LargeString"===t.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.Integer"===t.attribute.type))},dependencies:[T.O5,OI,_B,yI,bB,AB]}),i})();function xB(i,a){1&i&&n._UZ(0,"mat-spinner",3)}function SB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-option",16),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw(4);return n.KtG(u.changeLanguage(d))}),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"uppercase"),n.qZA()}if(2&i){const e=a.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",n.lcZ(2,2,n.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function EB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",13)(1,"mat-select",14),n.NdJ("valueChange",function(r){n.CHM(e);const d=n.oxw(3);return n.KtG(d.currentLang=r)}),n.YNc(2,SB,4,6,"mat-option",15),n.qZA()()}if(2&i){const e=n.oxw(3);n.xp6(1),n.Q6J("value",e.currentLang),n.xp6(1),n.Q6J("ngForOf",e.languages)}}function DB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"a",17),n._uU(2),n.qZA(),n.TgZ(3,"button",18),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(3);return n.KtG(r.changeEmail())}),n.TgZ(4,"mat-icon"),n._uU(5," edit "),n.qZA()()()}if(2&i){const e=n.oxw(3);n.xp6(1),n.MGl("href","mailto:",e.email,"",n.LSH),n.xp6(1),n.Oqu(e.email)}}function LB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-option",16),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw(4);return n.KtG(u.changeTimeZone(d))}),n._uU(1),n.qZA()}if(2&i){const e=a.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function HB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",13)(1,"mat-select",19),n.NdJ("valueChange",function(r){n.CHM(e);const d=n.oxw(3);return n.KtG(d.currentTimezone=r)}),n.YNc(2,LB,2,2,"mat-option",15),n.qZA()()}if(2&i){const e=n.oxw(3);n.xp6(1),n.Q6J("value",e.currentTimezone),n.xp6(1),n.Q6J("ngForOf",e.timeZones)}}function RB(i,a){1&i&&(n.TgZ(0,"p"),n._uU(1,"-"),n.qZA())}function PB(i,a){if(1&i&&n._UZ(0,"perun-web-apps-attribute-value",22),2&i){const e=n.oxw(2).$implicit;n.Q6J("attribute",e.attribute)("readonly",!0)}}function kB(i,a){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,RB,2,0,"p",20),n.YNc(2,PB,1,2,"perun-web-apps-attribute-value",21),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngIf",!e.attribute.value),n.xp6(1),n.Q6J("ngIf",e.attribute.value)}}function OB(i,a){if(1&i&&(n.TgZ(0,"tr")(1,"td",7)(2,"div",8),n._uU(3),n.qZA()(),n.TgZ(4,"td",9),n.YNc(5,EB,3,2,"mat-form-field",10),n.YNc(6,DB,6,2,"div",11),n.YNc(7,HB,3,2,"mat-form-field",10),n.YNc(8,kB,3,2,"div",12),n.qZA()()),2&i){const e=a.$implicit,t=n.oxw(2);n.xp6(2),n.Q6J("matTooltip",e["tooltip_"+t.currentLang]),n.xp6(1),n.hij(" ",e["displayName_"+t.currentLang]," "),n.xp6(1),n.Q6J("ngSwitch",e.attribute.friendlyName),n.xp6(1),n.Q6J("ngSwitchCase","preferredLanguage"),n.xp6(1),n.Q6J("ngSwitchCase","preferredMail"),n.xp6(1),n.Q6J("ngSwitchCase","timezone")}}function IB(i,a){if(1&i&&(n.TgZ(0,"table",4)(1,"tbody")(2,"tr")(3,"td",5),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA(),n.TgZ(7,"td"),n._uU(8),n.qZA()(),n.YNc(9,OB,9,6,"tr",6),n.qZA()()),2&i){const e=n.oxw();n.xp6(4),n.Oqu(n.lcZ(5,3,n.lcZ(6,5,"PROFILE_PAGE.NAME"))),n.xp6(4),n.Oqu(e.fullName),n.xp6(1),n.Q6J("ngForOf",e.additionalAttributes)}}let BB=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p){this.translateService=e,this.dialog=t,this.authzResolverService=r,this.attributesManagerService=d,this.usersManagerService=u,this.route=c,this.router=o,this.notificator=s,this.storeService=l,this.apiRequestConfiguration=h,this.preferredLangService=p,this.currentLang="en",this.languages=this.storeService.getProperty("supported_languages"),this.timeZones=CD.tz.names().filter(m=>!m.startsWith("Etc/")),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",e.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(m=>this.successMessage=m)}ngOnInit(){const e=this.route.snapshot.queryParamMap,t=e.get("token"),r=e.get("u");this.loading=!0,t&&r?(this.apiRequestConfiguration.dontHandleErrorForNext(),this.usersManagerService.validatePreferredEmailChangeWithToken(t,Number.parseInt(r,10)).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.router.navigate([],{replaceUrl:!0,queryParamsHandling:"preserve"}),this.getData()},error:()=>{const d=ln();d.width="600px",this.dialog.open(xk,d).afterClosed().subscribe(()=>{this.getData()})}})):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(e=>{this.userId=e.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.fullName=(new mA).transform(t);const r=t.userAttributes.find(l=>"preferredMail"===l.friendlyName);this.email=r?.value??"-",this.languageAttribute=t.userAttributes.find(l=>"preferredLanguage"===l.friendlyName);const u=this.preferredLangService.getPreferredLanguage(this.languageAttribute?.value??null);this.translateService.use(u),this.currentLang=u,this.timezoneAttribute=t.userAttributes.find(l=>"timezone"===l.friendlyName),this.currentTimezone=this.timezoneAttribute?.value??"-";const c=this.storeService.getProperty("profile_page_attributes");let o=0;const s=this.storeService.getProperty("supported_languages");c.forEach(l=>{const h=t.userAttributes.find(p=>p.friendlyName===l.friendly_name);h?(o++,this.addAttribute(h,l,s)):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${l.is_virtual?"virt":"def"}:${l.friendly_name}`).subscribe(p=>{this.addAttribute(p,l,s),o++,this.loading=o!==c.length}),this.loading=o!==c.length})})})}changeLanguage(e){this.currentLang=e,this.translateService.use(this.currentLang),this.languageAttribute?this.setLanguage():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:preferredLanguage").subscribe(t=>{this.languageAttribute=t,this.setLanguage()})}setLanguage(){this.languageAttribute.value=this.currentLang,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.languageAttribute}).subscribe(()=>{this.router.navigate([],{queryParams:{lang:null},queryParamsHandling:"merge"})})}changeTimeZone(e){this.currentTimezone=e,this.timezoneAttribute?this.setTimeZone():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:timezone").subscribe(t=>{this.timezoneAttribute=t,this.setTimeZone()})}setTimeZone(){this.timezoneAttribute.value=this.currentTimezone,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.timezoneAttribute}).subscribe(()=>{})}changeEmail(){const e=ln();e.width="350px",e.data={userId:this.userId},this.dialog.open(_k,e).afterClosed().subscribe(r=>{r&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(e=>{this.email=e?.value??"-"})}addAttribute(e,t,r){const d={attribute:e};for(const u of r)d[`displayName_${u}`]=t?.[`display_name_${u}`]?.length?t[`display_name_${u}`]:e.displayName,d[`tooltip_${u}`]=t[`tooltip_${u}`]??"";this.additionalAttributes.push(d)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tn),n.Y36(on),n.Y36(As),n.Y36(jn),n.Y36(li),n.Y36(mi),n.Y36(Dn),n.Y36(Mr),n.Y36(Ut),n.Y36(cg),n.Y36(xv))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-profile-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3 word-break-all",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"mt-3","word-break-all"],[1,"font-weight-bold"],[4,"ngFor","ngForOf"],[1,"font-weight-bold","att-name-width"],["matTooltipPosition","above",3,"matTooltip"],[1,"w-100",3,"ngSwitch"],["class","center-self",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"center-self"],[1,"mb-auto",3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"center-self",3,"href"],["mat-icon-button","",1,"ml-2",3,"click"],[3,"value","valueChange"],[4,"ngIf"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,xB,1,0,"mat-spinner",1),n.YNc(2,IB,10,7,"table",2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.sg,T.O5,T.RF,T.n9,T.ED,zn,Ht,uT,di,fd,Fs,Hn,yr,T.gd,Ke,Xt],styles:[".center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.word-break-all[_ngcontent-%COMP%]{word-break:break-all}td[_ngcontent-%COMP%]{padding-right:1rem!important}.att-name-width[_ngcontent-%COMP%]{min-width:200px}"]}),i})(),NB=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-focus-on-linker-dialog"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),n._uU(3," info "),n.qZA(),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div"),n._uU(7),n.ALo(8,"translate"),n.qZA()()),2&e&&(n.xp6(4),n.hij(" ",n.lcZ(5,2,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL")," "),n.xp6(3),n.hij(" ",n.lcZ(8,4,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL_WARNING")," "))},dependencies:[zn,Ke],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),i})(),VB=(()=>{class i{constructor(e,t,r,d){this.otherApplicationsService=e,this.storeService=t,this.oauthService=r,this.dialog=d}openLinkerWindow(e,t){let r=this.otherApplicationsService.getUrlForOtherApplication(Go.Linker);this.storeService.getProperty("use_localhost_linker_url")&&(r="http://localhost:4201/");let d=r+"?formerToken="+this.oauthService.getAccessToken();t&&0!==t.length&&(d+="&idphint="+t.toString());const o=window.top,h=window.open(d,"_blank",`width=600,height=600,top=${o.outerHeight/2+o.screenY-300}, left=${o.outerWidth/2+o.screenX-300}`);let p;if(h){const g=ln();g.width="450px",g.panelClass="noBorderDialog",p=this.dialog.open(NB,g)}window.addEventListener("message",g=>{sessionStorage.setItem("linkedResult",g.data)});const m=setInterval(()=>{if(h.closed){clearInterval(m),p.close();const g=sessionStorage.getItem("linkedResult");sessionStorage.removeItem("linkedResult"),e(g)}},1e3)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(cA),n.LFG(Ut),n.LFG(Jl.Ct),n.LFG(on))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),hT=(()=>{class i{}return i.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",i.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",i.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",i.MEMBER_GROUP_STATUS_INDIRECT="urn:perun:member_group:attribute-def:virt:groupStatusIndirect",i.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",i.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",i.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",i.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",i.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",i.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",i.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",i.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",i.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",i.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",i.USER_DEF_CERTIFICATES="urn:perun:user:attribute-def:def:userCertificates",i.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",i.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",i.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",i.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",i.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",i.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",i.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",i.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",i.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",i.GROUP_SYNC_INTERVAL="urn:perun:group:attribute-def:def:synchronizationInterval",i.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",i.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",i.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",i.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",i.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",i})();const jB=["mat-sort-header",""];function FB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._disableViewStateAnimation=!1)}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6)(4,"div",7)(5,"div",8),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",e._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",e._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",e._getArrowDirectionState())}}const zB=["*"],tL=new n.OlP("MAT_SORT_DEFAULT_OPTIONS"),UB=M0(Xa(class{}));let ps=(()=>{class i extends UB{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new Le.x,this.start="asc",this._direction="",this.sortChange=new n.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ge(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var t,r,d;if(!e)return"";const u=null!==(t=null!==(r=e?.disableClear)&&void 0!==r?r:this.disableClear)&&void 0!==t?t:!(null===(d=this._defaultOptions)||void 0===d||!d.disableClear);let c=function qB(i,a){let e=["asc","desc"];return"desc"==i&&e.reverse(),a||e.push(""),e}(e.start||this.start,u),o=c.indexOf(this.direction)+1;return o>=c.length&&(o=0),c[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tL,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.qOj,n.TTD]}),i})();const Cd=Kx.ENTERING+" "+Xx.STANDARD_CURVE,lf={indicator:En("indicator",[ut("active-asc, asc",je({transform:"translateY(0px)"})),ut("active-desc, desc",je({transform:"translateY(10px)"})),Ot("active-asc <=> active-desc",Rt(Cd))]),leftPointer:En("leftPointer",[ut("active-asc, asc",je({transform:"rotate(-45deg)"})),ut("active-desc, desc",je({transform:"rotate(45deg)"})),Ot("active-asc <=> active-desc",Rt(Cd))]),rightPointer:En("rightPointer",[ut("active-asc, asc",je({transform:"rotate(45deg)"})),ut("active-desc, desc",je({transform:"rotate(-45deg)"})),Ot("active-asc <=> active-desc",Rt(Cd))]),arrowOpacity:En("arrowOpacity",[ut("desc-to-active, asc-to-active, active",je({opacity:1})),ut("desc-to-hint, asc-to-hint, hint",je({opacity:.54})),ut("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",je({opacity:0})),Ot("* => asc, * => desc, * => active, * => hint, * => void",Rt("0ms")),Ot("* <=> *",Rt(Cd))]),arrowPosition:En("arrowPosition",[Ot("* => desc-to-hint, * => desc-to-active",Rt(Cd,No([je({transform:"translateY(-25%)"}),je({transform:"translateY(0)"})]))),Ot("* => hint-to-desc, * => active-to-desc",Rt(Cd,No([je({transform:"translateY(0)"}),je({transform:"translateY(25%)"})]))),Ot("* => asc-to-hint, * => asc-to-active",Rt(Cd,No([je({transform:"translateY(25%)"}),je({transform:"translateY(0)"})]))),Ot("* => hint-to-asc, * => active-to-asc",Rt(Cd,No([je({transform:"translateY(0)"}),je({transform:"translateY(-25%)"})]))),ut("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",je({transform:"translateY(0)"})),ut("hint-to-desc, active-to-desc, desc",je({transform:"translateY(-25%)"})),ut("hint-to-asc, active-to-asc, asc",je({transform:"translateY(25%)"}))]),allowChildren:En("allowChildren",[Ot("* <=> *",[Br("@*",Hu(),{optional:!0})])])};let OA=(()=>{class i{constructor(){this.changes=new Le.x}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const WB={provide:OA,deps:[[new n.FiY,new n.tp0,OA]],useFactory:function YB(i){return i||new OA}},GB=Xa(class{});let Ag=(()=>{class i extends GB{constructor(e,t,r,d,u,c,o,s){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=d,this._focusMonitor=u,this._elementRef=c,this._ariaDescriber=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=s&&s.arrowPosition&&(this.arrowPosition=s?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ge(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var t,r;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,kn.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(OA),n.Y36(n.sBO),n.Y36(ps,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36($r),n.Y36(n.SBq),n.Y36(hu,8),n.Y36(tL,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._handleClick()})("keydown",function(d){return t._handleKeydown(d)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(n.uIk("aria-sort",t._getAriaSortAttribute()),n.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[n.qOj],attrs:jB,ngContentSelectors:zB,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,FB,6,6,"div",2),n.qZA()),2&e&&(n.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"===t.arrowPosition),n.uIk("tabindex",t._isDisabled()?null:0)("role",t._isDisabled()?null:"button"),n.xp6(3),n.Q6J("ngIf",t._renderArrow()))},dependencies:[T.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[lf.indicator,lf.leftPointer,lf.rightPointer,lf.arrowOpacity,lf.arrowPosition,lf.allowChildren]},changeDetection:0}),i})(),IA=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[WB],imports:[T.ez,wt]}),i})(),nL=(()=>{class i{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&n.NdJ("mouseup",function(d){return t.onClick(d)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),i})(),$B=(()=>{class i{transform(e){return e.find(r=>"mail"===r.friendlyName)?.value??""}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"getMailFromAttributes",type:i,pure:!0}),i})(),yg=(()=>{class i{transform(e){const t="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return e?t+"DESELECT_ROW":t+"SELECT_ROW"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"checkboxLabel",type:i,pure:!0}),i})();function ZB(i,a){1&i&&n._UZ(0,"th",18)}const JB=function(i){return{name:i}};function QB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",19)(1,"span",20),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.TgZ(4,"mat-checkbox",21),n.NdJ("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw();return n.KtG(r?c.selection.toggle(u):null)})("click",function(r){return r.stopPropagation()}),n.ALo(5,"translate"),n.ALo(6,"checkboxLabel"),n.qZA()()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,n.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!e.userExtSource.persistent),n.xp6(3),n.Q6J("aria-label",n.xi3(5,10,n.lcZ(6,13,t.selection.isSelected(e)),n.VKq(15,JB,e.userExtSource.extSource.name)))("checked",t.selection.isSelected(e))("disabled",e.userExtSource.persistent)}}function XB(i,a){1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function KB(i,a){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.userExtSource.id," ")}}function eN(i,a){1&i&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function tN(i,a){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.ALo(2,"getMailFromAttributes"),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,e.attributes)," ")}}function nN(i,a){if(1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,e.extSourceNameHeader?e.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function iN(i,a){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.userExtSource.extSource.name," ")}}function rN(i,a){if(1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,e.loginHeader?e.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function aN(i,a){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.userExtSource.login," ")}}function sN(i,a){1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function oN(i,a){if(1&i&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"date"),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",n.xi3(2,1,e.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function lN(i,a){1&i&&n._UZ(0,"tr",26)}const iL=function(i,a){return["/admin","users",i,"identities",a]};function cN(i,a){if(1&i&&n._UZ(0,"tr",27),2&i){const e=a.$implicit,t=n.oxw();n.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:n.WLB(6,iL,t.userId.toString(),e.userExtSource.id.toString()))("routerLink",t.disableRouting?null:n.WLB(9,iL,t.userId,e.userExtSource.id))}}function dN(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function uN(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",28),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let hN=(()=>{class i{constructor(e,t){this.route=e,this.authResolver=t,this.selection=new Yi,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=Gl}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.userExtSource.id.toString();case"mail":{const r=e.attributes.find(d=>"mail"===d.friendlyName);return r?r.value:"N/A"}case"extSourceName":return e.userExtSource.extSource.name;case"login":return e.userExtSource.login;case"lastAccess":return e.userExtSource.lastAccess.split(".")[0];default:return e[t]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new $o(this.userExtSources),this.setDataSource()}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Zl(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>$l(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(mi),n.Y36(Cn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(os,7),n.Gf(ps,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[n.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,ZB,1,0,"th",4),n.YNc(5,QB,7,17,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,XB,4,5,"th",7),n.YNc(8,KB,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,eN,4,5,"th",10),n.YNc(11,tN,3,3,"td",8),n.BQk(),n.ynx(12,11),n.YNc(13,nN,4,5,"th",7),n.YNc(14,iN,2,1,"td",8),n.BQk(),n.ynx(15,12),n.YNc(16,rN,4,5,"th",7),n.YNc(17,aN,2,1,"td",8),n.BQk(),n.ynx(18,13),n.YNc(19,sN,4,5,"th",7),n.YNc(20,oN,3,4,"td",14),n.BQk(),n.YNc(21,lN,1,0,"tr",15),n.YNc(22,cN,1,12,"tr",16),n.qZA()()(),n.YNc(23,dN,3,3,"perun-web-apps-alert",17),n.YNc(24,uN,4,5,"perun-web-apps-alert",17)),2&e&&(n.Q6J("hidden",0===t.userExtSources.length||0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(19),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.userExtSources.length),n.xp6(1),n.Q6J("ngIf",0===t.userExtSources.length))},dependencies:[T.O5,ic,io,cs,ro,ds,ls,ao,us,hs,so,oo,oa,ps,Ag,yi,yr,os,nL,EA,T.uU,Ke,$B,Xt,yg],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),i})();function pN(i,a){1&i&&n._UZ(0,"mat-spinner",4)}function fN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"h1",8),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"button",5),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.addIdentity())}),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n.TgZ(9,"button",6),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.removeIdentity(r.certSelection))}),n._uU(10),n.ALo(11,"translate"),n.ALo(12,"customTranslate"),n.qZA(),n._UZ(13,"perun-web-apps-user-ext-sources-list",11),n.qZA()}if(2&i){const e=n.oxw(2);n.xp6(2),n.Oqu(n.lcZ(3,10,n.lcZ(4,12,"IDENTITIES.CERT"))),n.xp6(4),n.hij(" ",n.lcZ(7,14,n.lcZ(8,16,"IDENTITIES.ADD"))," "),n.xp6(3),n.Q6J("disabled",0===e.certSelection.selected.length),n.xp6(1),n.hij(" ",n.lcZ(11,18,n.lcZ(12,20,"IDENTITIES.REMOVE"))," "),n.xp6(3),n.Q6J("userExtSources",e.certExtSources)("selection",e.certSelection)("extSourceNameHeader",e.extSourceNameCert)("loginHeader",e.loginCert)("displayedColumns",e.displayedColumnsCert)("disableRouting",!0)}}function mN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"button",5),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.addIdentity())}),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"button",6),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.removeIdentity(r.idpSelection))}),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n._UZ(9,"perun-web-apps-user-ext-sources-list",7),n.YNc(10,fN,14,22,"div",3),n.TgZ(11,"h1",8),n._uU(12),n.ALo(13,"translate"),n.ALo(14,"customTranslate"),n.TgZ(15,"mat-icon",9),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n._uU(18," info_outline "),n.qZA()(),n._UZ(19,"perun-web-apps-user-ext-sources-list",10),n.qZA()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,16,n.lcZ(4,18,"IDENTITIES.ADD"))," "),n.xp6(3),n.Q6J("disabled",0===e.idpSelection.selected.length),n.xp6(1),n.hij(" ",n.lcZ(7,20,n.lcZ(8,22,"IDENTITIES.REMOVE"))," "),n.xp6(3),n.Q6J("userExtSources",e.idpExtSources)("selection",e.idpSelection)("displayedColumns",e.displayedColumnsIdp)("loginHeader",e.loginIdp)("disableRouting",!0),n.xp6(1),n.Q6J("ngIf",e.displayCertificates),n.xp6(2),n.hij(" ",n.lcZ(13,24,n.lcZ(14,26,"IDENTITIES.OTHER"))," "),n.xp6(3),n.Q6J("matTooltip",n.lcZ(16,28,n.lcZ(17,30,"IDENTITIES.OTHER_TOOLTIP"))),n.xp6(4),n.Q6J("userExtSources",e.otherExtSources)("selection",e.otherSelection)("extSourceNameHeader",e.extSourceNameOther)("displayedColumns",e.displayedColumnsOther)("disableRouting",!0)}}let gN=(()=>{class i{constructor(e,t,r,d,u,c,o,s){this.usersManagerService=e,this.storage=t,this.dialog=r,this.attributesManagerService=d,this.translate=u,this.notificator=c,this.registrarManagerService=o,this.openLinkerService=s,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new Yi(!0,[]),this.certSelection=new Yi(!0,[]),this.otherSelection=new Yi(!0,[]),this.loginIdp="IDENTITIES.LOGIN_IDP",this.extSourceNameCert="IDENTITIES.EXT_SOURCE_NAME_CERT",this.loginCert="IDENTITIES.LOGIN_CERT",this.extSourceNameOther="IDENTITIES.EXT_SOURCE_NAME_OTHER",this.displayedColumnsIdp=["select","extSourceName","login","mail","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["extSourceName","login","lastAccess"]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.getProperty("display_identity_certificates"),this.refreshTables()}refreshTables(){this.loading=!0,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{let t=e.length;e.forEach(r=>{this.attributesManagerService.getUserExtSourceAttributesByNames(r.userExtSource.id,[hT.UES_SOURCE_IDP_NAME,hT.UES_DEF_MAIL]).subscribe(d=>{let u;d.filter(c=>"mail"===c.baseFriendlyName&&null===c.value).map(c=>r.attributes.push(c)),d.filter(c=>"sourceIdPName"===c.baseFriendlyName&&c?.value).map(c=>u=c.value),u?(r.userExtSource.extSource.name=u,t--,this.loading=0!==t,this.addToList(r)):this.attributesManagerService.getUserExtSourceAttributeByName(r.userExtSource.id,hT.UES_IDP_ORGANIZATION_NAME).subscribe(c=>{t--,c?.value&&(r.userExtSource.extSource.name=c.value),this.loading=0!==t,this.addToList(r)})})})})}removeIdentity(e){const t=ln();t.width="600px",t.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(ck,t).afterClosed().subscribe(d=>{d&&(e.clear(),this.refreshTables())})}addIdentity(){this.storage.getProperty("use_new_consolidator")?this.openLinkerService.openLinkerWindow(e=>{"TOKEN_EXPIRED"===e?location.reload():"OK"===e?(this.notificator.showSuccess(this.translate.instant("IDENTITIES.SUCCESSFULLY_ADDED")),this.refreshTables()):"MESSAGE_SENT_TO_SUPPORT"===e&&this.notificator.showSuccess(this.translate.instant("IDENTITIES.MESSAGE_SENT_TO_SUPPORT"))}):this.registrarManagerService.getConsolidatorToken().subscribe(e=>{const t=this.storage.getPerunPrincipal().extSourceType,r=this.storage.getProperty("consolidator_base_url");window.location.href=`${r}${t?.endsWith("X509")?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${e}`})}addToList(e){e.userExtSource.extSource.type.endsWith("Idp")?this.idpExtSources.push(e):e.userExtSource.extSource.type.endsWith("X509")?this.certExtSources.push(e):this.otherExtSources.push(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Ut),n.Y36(on),n.Y36(jn),n.Y36(tn),n.Y36(Mr),n.Y36(oc),n.Y36(VB))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-identities-page"]],decls:7,vars:7,consts:[[1,"user-theme"],[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-flat-button","","color","accent",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"userExtSources","selection","displayedColumns","loginHeader","disableRouting"],[1,"page-title","mt-5"],["matTooltipPosition","above",1,"center-icon",3,"matTooltip"],[3,"userExtSources","selection","extSourceNameHeader","displayedColumns","disableRouting"],[3,"userExtSources","selection","extSourceNameHeader","loginHeader","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.YNc(5,pN,1,0,"mat-spinner",2),n.YNc(6,mN,20,32,"div",3),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,3,n.lcZ(4,5,"IDENTITIES.IDP"))),n.xp6(3),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,zn,Ht,hN,Hn,yr,Ke,Xt],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),i})();const _N=["panel"];function bN(i,a){if(1&i&&(n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA()),2&i){const e=a.id,t=n.oxw();n.Q6J("id",t.id)("ngClass",t._classList),n.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(e))}}const AN=["*"];let yN=0;class wN{constructor(a,e){this.source=a,this.option=e}}const MN=Ni(class{}),rL=new n.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function CN(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let vN=(()=>{class i extends MN{constructor(e,t,r,d){super(),this._changeDetectorRef=e,this._elementRef=t,this._activeOptionChanges=Nt.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new n.vpe,this.opened=new n.vpe,this.closed=new n.vpe,this.optionActivated=new n.vpe,this._classList={},this.id="mat-autocomplete-"+yN++,this.inertGroups=d?.SAFARI||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption,this._autoSelectActiveOption=!!r.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=Ge(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=Ge(e)}set classList(e){this._classList=e&&e.length?function uw(i,a=/\s+/){const e=[];if(null!=i){const t=Array.isArray(i)?i:`${i}`.split(a);for(const r of t){const d=`${r}`.trim();d&&e.push(d)}}return e}(e).reduce((t,r)=>(t[r]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new bw(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const t=new wN(this,e);this.optionSelected.emit(t)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(rL),n.Y36(Qn))},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&(n.Gf(n.Rgc,7),n.Gf(_N,5)),2&e){let r;n.iGM(r=n.CRH())&&(t.template=r.first),n.iGM(r=n.CRH())&&(t.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[n.qOj]}),i})(),TN=(()=>{class i extends vN{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,_r,5),n.Suo(r,Fs,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.optionGroups=d),n.iGM(d=n.CRH())&&(t.options=d)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[n._Bn([{provide:S0,useExisting:i}]),n.qOj],ngContentSelectors:AN,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,bN,3,4,"ng-template"))},dependencies:[T.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),i})();const aL=new n.OlP("mat-autocomplete-scroll-strategy"),SN={provide:aL,deps:[rr],useFactory:function xN(i){return()=>i.scrollStrategies.reposition()}},EN={provide:ar,useExisting:(0,n.Gpc)(()=>sL),multi:!0};let DN=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p){this._element=e,this._overlay=t,this._viewContainerRef=r,this._zone=d,this._changeDetectorRef=u,this._dir=o,this._formField=s,this._document=l,this._viewportRuler=h,this._defaults=p,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Nt.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Le.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Rn(()=>{const m=this.autocomplete?this.autocomplete.options:null;return m?m.changes.pipe(vn(m),(0,An.w)(()=>(0,kn.T)(...m.map(g=>g.onSelectionChange)))):this._zone.onStable.pipe((0,ht.q)(1),(0,An.w)(()=>this.optionSelections))}),this._scrollStrategy=c}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=Ge(e)}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,kn.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,bt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,bt.h)(()=>this._overlayAttached)):(0,Ee.of)()).pipe((0,Mt.U)(e=>e instanceof Fw?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,kn.T)(zs(this._document,"click"),zs(this._document,"auxclick"),zs(this._document,"touchend")).pipe((0,bt.h)(e=>{const t=Or(e),r=this._formField?this._formField._elementRef.nativeElement:null,d=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&t!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(t))&&(!d||!d.contains(t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(t)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const t=e.keyCode,r=Di(e);if(27===t&&!r&&e.preventDefault(),this.activeOption&&13===t&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const d=this.autocomplete._keyManager.activeItem,u=38===t||40===t;9===t||u&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):u&&this._canOpen()&&this.openPanel(),(u||this.autocomplete._keyManager.activeItem!==d)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let t=e.target,r=t.value;"number"===t.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const e=this._zone.onStable.pipe((0,ht.q)(1)),t=this.autocomplete.options.changes.pipe((0,Wt.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Up.g)(0));return(0,kn.T)(e,t).pipe((0,An.w)(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,ht.q)(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(t??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const t=e?e.source:this._pendingAutoselectedOption;t&&(this._clearPreviousSelectedOption(t),this._assignOptionValue(t.value),this._onChange(t.value),this.autocomplete._emitSelectEvent(t),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(t=>{t!==e&&t.selected&&t.deselect()})}_attachOverlay(){let e=this._overlayRef;var t;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Oa(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new rd({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const t=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,d=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let u;u="above"===this.position?d:"below"===this.position?t:[...t,...d],e.withPositions(u)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}_scrollToOption(e){const t=this.autocomplete,r=Qh(e,t.options,t.optionGroups);if(0===e&&1===r)t._setScrollTop(0);else if(t.panel){const d=t.options.toArray()[e];if(d){const u=d._getHostElement(),c=Z1(u.offsetTop,u.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(c)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(t=>{var r;(27===t.keyCode&&!Di(t)||38===t.keyCode&&Di(t,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(null!==(r=this._valueBeforeAutoSelection)&&void 0!==r?r:""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),t.stopPropagation(),t.preventDefault())}),e.outsidePointerEvents().subscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(rr),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(aL),n.Y36(Hi,8),n.Y36(sd,9),n.Y36(T.K0,8),n.Y36(Us),n.Y36(rL,8))},i.\u0275dir=n.lG2({type:i,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[n.TTD]}),i})(),sL=(()=>{class i extends DN{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&n.NdJ("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(d){return t._handleInput(d)})("keydown",function(d){return t._handleKeydown(d)})("click",function(){return t._handleClick()}),2&e&&n.uIk("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-owns",t.autocompleteDisabled||!t.panelOpen||null==t.autocomplete?null:t.autocomplete.id)("aria-haspopup",t.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[n._Bn([EN]),n.qOj]}),i})(),LN=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[SN],imports:[Bo,_u,wt,T.ez,da,_u,wt]}),i})(),HN=(()=>{class i{transform(e){return e?.value??"never"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"validateExpiration",type:i,pure:!0}),i})();function RN(i,a){1&i&&n._UZ(0,"th",17)}const PN=function(i){return{name:i}};function kN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",18)(1,"mat-checkbox",19),n.NdJ("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw();return n.KtG(r?c.selection.toggle(u):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.ALo(4,"validateExpiration"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.xi3(2,3,n.lcZ(3,6,t.selection.isSelected(e)),n.VKq(10,PN,e.entity.name)))("checked",t.selection.isSelected(e))("disabled","never"===n.lcZ(4,8,e.expirationAttribute))}}function ON(i,a){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"MEMBERSHIP_LIST.NAME"))," "))}function IN(i,a){if(1&i&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.entity.name)}}function BN(i,a){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))," "))}function NN(i,a){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.entity.description)}}function VN(i,a){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"MEMBERSHIP_LIST.EXPIRATION"))," "))}function jN(i,a){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.ALo(2,"validateExpiration"),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,e.expirationAttribute)," ")}}function FN(i,a){1&i&&n._UZ(0,"th",20)}function zN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",22)(1,"button",24),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.extend(d))}),n.ALo(2,"validateExpiration"),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"customTranslate"),n.qZA()()}if(2&i){const e=a.$implicit;n.xp6(1),n.Q6J("disabled","never"===n.lcZ(2,2,e.expirationAttribute)),n.xp6(2),n.hij(" ",n.lcZ(4,4,n.lcZ(5,6,"MEMBERSHIP_LIST.EXTEND"))," ")}}function UN(i,a){1&i&&n._UZ(0,"tr",25)}function qN(i,a){1&i&&n._UZ(0,"tr",26)}function YN(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",27),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}let oL=(()=>{class i{constructor(){this.members=[],this.searchString="",this.selection=new Yi(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.filterValue="",this.extendMembership=new n.vpe,this.pageSizeOptions=Gl}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"name":return e.entity.name;case"description":return"description"in e.entity?e.entity.description:"";case"expirationAttribute":return e?.expirationAttribute?.value??"never";default:return""}}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new $o(this.members),this.setDataSource()}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Zl(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>$l(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}extend(e){this.extendMembership.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(os,7),n.Gf(ps,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[n.TTD],decls:21,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","expirationAttribute","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["matColumnDef","expirationAttribute"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","extend"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell","","mat-sort-header",""],["color","accent","mat-flat-button","",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,RN,1,0,"th",4),n.YNc(5,kN,5,12,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,ON,4,5,"th",7),n.YNc(8,IN,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,BN,4,5,"th",7),n.YNc(11,NN,2,1,"td",10),n.BQk(),n.ynx(12,11),n.YNc(13,VN,4,5,"th",12),n.YNc(14,jN,3,3,"td",10),n.BQk(),n.ynx(15,13),n.YNc(16,FN,1,0,"th",7),n.YNc(17,zN,6,8,"td",10),n.BQk(),n.YNc(18,UN,1,0,"tr",14),n.YNc(19,qN,1,0,"tr",15),n.qZA()()(),n.YNc(20,YN,4,5,"perun-web-apps-alert",16)),2&e&&(n.Q6J("hidden",!t.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(16),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",!t.dataSource.filteredData.length))},dependencies:[T.O5,Ht,yi,io,cs,ro,ds,ls,ao,us,hs,so,oo,ic,ps,Ag,os,Ke,Xt,yg,HN]}),i})();function WN(i,a){if(1&i&&(n.TgZ(0,"mat-option",13),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.name," ")}}function GN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",7)(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"input",8),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.TgZ(7,"mat-autocomplete",9,10),n.NdJ("optionSelected",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.filterByVo(r))}),n.TgZ(9,"mat-option",11),n._uU(10),n.ALo(11,"translate"),n.ALo(12,"customTranslate"),n.qZA(),n.YNc(13,WN,2,2,"mat-option",12),n.ALo(14,"async"),n.qZA()()}if(2&i){const e=n.MAs(8),t=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,7,"GROUPS.SELECT_VO")),n.xp6(2),n.s9C("placeholder",n.lcZ(5,9,n.lcZ(6,11,"GROUPS.SELECT_VO"))),n.Q6J("formControl",t.myControl)("matAutocomplete",e),n.xp6(3),n.Q6J("displayWith",t.displayFn),n.xp6(3),n.Oqu(n.lcZ(11,13,n.lcZ(12,15,"GROUPS.ALL"))),n.xp6(3),n.Q6J("ngForOf",n.lcZ(14,17,t.filteredVos))}}function $N(i,a){1&i&&n._UZ(0,"mat-spinner",14)}function ZN(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",15),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"GROUPS.NO_GROUPS"))))}const JN=function(){return["name","description","expirationAttribute","extend"]};function QN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"h4",16),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"perun-web-apps-membership-list",17),n.NdJ("extendMembership",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.extendMembership(r))}),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,4,n.lcZ(4,6,"GROUPS.MEMBER_GROUPS"))),n.xp6(3),n.Q6J("members",e.userMemberships)("selection",e.selection)("displayedColumns",n.DdM(8,JN))}}const XN=function(){return["name","description"]};function KN(i,a){if(1&i&&(n.TgZ(0,"div",18)(1,"h4",16),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n._UZ(5,"perun-web-apps-membership-list",19),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,3,n.lcZ(4,5,"GROUPS.ADMINS_GROUPS"))),n.xp6(3),n.Q6J("members",e.adminMemberships)("displayedColumns",n.DdM(7,XN))}}let e3=(()=>{class i{constructor(e,t,r,d,u,c){this.usersService=e,this.memberService=t,this.groupService=r,this.store=d,this.vosManagerService=u,this.attributesManagerService=c,this.loading=!1,this.vos=[],this.myControl=new Js,this.selection=new Yi(!1,[]),this.displayedColumns=["id","name"],this.userMemberships=[],this.adminMemberships=[]}ngOnInit(){this.loading=!0,this.userId=this.store.getPerunPrincipal().userId,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=this.myControl.valueChanges.pipe(vn(""),(0,Mt.U)(t=>this._filter(t))),this.getAllGroups()})}getAllGroups(){this.loading=!0;let e=0,t=0;this.userMemberships=[],this.adminMemberships=[];const r=this.store.getPerunPrincipal().roles.SELF.Member;r.length?t=r.length:this.loading=!1,r.forEach(d=>{t--,this.groupService.getMemberGroups(d).subscribe(u=>{e+=u.length,this.loading=0===e&&0!==t,u.forEach(c=>{this.attributesManagerService.getMemberGroupAttributes(d,c.id).subscribe(o=>{e--,this.userMemberships.push({entity:c,expirationAttribute:o.find(s=>"groupMembershipExpiration"===s.friendlyName)}),this.loading=0!==e})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(d=>{d.forEach(u=>{this.adminMemberships.push({entity:u,expirationAttribute:null})})})}displayFn(e){return e?e.name:null}filterByVo(e){if("all"===e.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;const t=e.option.value;this.memberService.getMemberByUser(t.id,this.userId).subscribe(r=>{this.groupService.getMemberGroups(r.id).subscribe(d=>{let u=d.length;this.loading=0!==u,d.forEach(c=>{this.attributesManagerService.getMemberGroupAttributes(r.id,c.id).subscribe(o=>{u--,this.userMemberships.push({entity:c,expirationAttribute:o.find(s=>"groupMembershipExpiration"===s.friendlyName)}),this.loading=0!==u})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,t.id).subscribe(r=>{r.forEach(d=>{this.adminMemberships.push({entity:d,expirationAttribute:null})})})}}extendMembership(e){const t=this.store.getProperty("registrar_base_url"),r=e.entity,d=this.vos.find(u=>u.id===r.voId).shortName;window.location.href=`${t}?vo=${d}&group=${e.entity.shortName}`}_filter(e){const t="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.vos.filter(r=>r.name.toLowerCase().includes(t))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Er),n.Y36(zr),n.Y36(Ut),n.Y36(ws),n.Y36(jn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-groups-page"]],decls:10,vars:10,consts:[[1,"page-title","pt-2"],[1,"user-theme"],["class","mr-2 w-75",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"mr-2","w-75"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mr-auto","ml-auto"],["alert_type","warn"],[1,"page-subtitle"],[3,"members","selection","displayedColumns","extendMembership"],[1,"mt-5"],[3,"members","displayedColumns"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,GN,15,19,"mat-form-field",2),n.YNc(6,$N,1,0,"mat-spinner",3),n.YNc(7,ZN,4,5,"perun-web-apps-alert",4),n.YNc(8,QN,6,9,"div",5),n.YNc(9,KN,6,8,"div",6),n.qZA()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,6,n.lcZ(3,8,"GROUPS.TITLE"))),n.xp6(4),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.userMemberships.length&&!t.adminMemberships.length&&!t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading&&0!==t.userMemberships.length),n.xp6(1),n.Q6J("ngIf",!t.loading&&0!==t.adminMemberships.length))},dependencies:[T.sg,T.O5,yi,di,as,Fs,ji,_i,Ai,sr,Hn,TN,sL,oL,T.Ov,Ke,Xt]}),i})(),t3=(()=>{class i{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","perunWebAppsAutoFocus",""]]}),i})();function n3(i,a){if(1&i&&(n._UZ(0,"input",3),n.ALo(1,"translate")),2&i){const e=n.oxw();n.s9C("placeholder",n.lcZ(1,2,e.placeholder)),n.Q6J("formControl",e.formControl)}}function r3(i,a){if(1&i&&(n._UZ(0,"input",4),n.ALo(1,"translate")),2&i){const e=n.oxw();n.s9C("placeholder",n.lcZ(1,2,e.placeholder)),n.Q6J("formControl",e.formControl)}}let cf=(()=>{class i{constructor(){this.filter=new n.vpe,this.autoFocus=!1,this.formControl=new Js}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-form-field",0),n.YNc(1,n3,2,4,"input",1),n.YNc(2,r3,2,4,"input",2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",t.autoFocus),n.xp6(1),n.Q6J("ngIf",!t.autoFocus))},dependencies:[T.O5,_i,Ai,di,sr,ji,t3,Ke],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),i})();function a3(i,a){1&i&&(n.TgZ(0,"mat-icon",1),n.ALo(1,"translate"),n._uU(2," visibility\n"),n.qZA()),2&i&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let s3=(()=>{class i{constructor(){this.recentIds=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(e,t){1&e&&n.YNc(0,a3,3,3,"mat-icon",0),2&e&&n.Q6J("ngIf",t.recentIds.indexOf(t.id)>-1)},dependencies:[T.O5,zn,yr,Ke],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),i})();function o3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeStatus())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3,"check_circle_outline"),n.qZA()()}if(2&i){const e=n.oxw();n.s9C("matTooltip",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE")),n.Q2q("data-cy","",e.groupName,"-active")}}function l3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeStatus())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",5),n._uU(3,"block"),n.qZA()()}if(2&i){const e=n.oxw();n.s9C("matTooltip",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE")),n.Q2q("data-cy","",e.groupName,"-inactive")}}function c3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeStatus())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",6),n._uU(3,"report"),n.qZA()()}if(2&i){const e=n.oxw();n.hYB("matTooltip","",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",e.failureCause,"")}}function d3(i,a){1&i&&(n.TgZ(0,"span",7),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",8),n._uU(3,"autorenew"),n.qZA()()),2&i&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let u3=(()=>{class i{constructor(e){this.dialog=e,this.status="",this.groupName="",this.statusChange=new n.vpe}changeStatus(){const e=ln();e.width="500px",e.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(Jk,e).afterClosed().subscribe(r=>{r&&this.statusChange.emit()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",groupName:"groupName",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,o3,4,4,"span",1),n.YNc(2,l3,4,4,"span",1),n.YNc(3,c3,4,4,"span",1),n.YNc(4,d3,4,3,"span",2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf","ACTIVE"===t.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===t.status),n.xp6(1),n.Q6J("ngIf","FAILED"===t.status),n.xp6(1),n.Q6J("ngIf","PROCESSING"===t.status))},dependencies:[T.O5,zn,yr,Ke]}),i})(),h3=(()=>{class i{transform(e){if(null==e)return null;let r="";return e.forEach(function(d){r=r.concat(d.tagName)}),r}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"resourceTagsToString",type:i,pure:!0}),i})(),p3=(()=>{class i{transform(e,t){return t?`/organizations/${e.voId}/resources/${e.id}`:`/facilities/${e.facilityId}/resources/${e.id}`}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"getResourceRoute",type:i,pure:!0}),i})(),pT=(()=>{class i{constructor(e){this.tableCheckboxService=e}transform(e,t,r){return 0!==t&&(function L2(i){return"allObjectCount"in i}(e)?t===e.getData().length:function f3(i){return"_count"in i}(e)?this.tableCheckboxService.isAllSelectedPaginated(e,t,r):this.tableCheckboxService.isAllSelected(t,e,r))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(lA,16))},i.\u0275pipe=n.Yjl({name:"isAllSelected",type:i,pure:!0}),i})(),lL=(()=>{class i{transform(e){const t="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return e?t+"DESELECT_ALL":t+"SELECT_ALL"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"masterCheckboxLabel",type:i,pure:!0}),i})();function m3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-checkbox",27),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(3);return n.KtG(r?d.masterToggle():null)}),n.ALo(1,"translate"),n.ALo(2,"masterCheckboxLabel"),n.qZA()}if(2&i){const e=n.oxw(2).ngIf,t=n.oxw();n.Q6J("aria-label",n.lcZ(1,3,n.lcZ(2,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function g3(i,a){if(1&i&&(n.TgZ(0,"th",25),n.YNc(1,m3,3,7,"mat-checkbox",26),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",e.selection.isMultipleSelection())}}const _3=function(i){return{name:i}};function b3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",28)(1,"span",29),n.ALo(2,"translate"),n.TgZ(3,"mat-checkbox",30),n.NdJ("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.itemSelectionToggle(u):null)})("click",function(r){return r.stopPropagation()}),n.ALo(4,"translate"),n.ALo(5,"checkboxLabel"),n.qZA()()()}if(2&i){const e=a.$implicit,t=n.oxw(2);n.xp6(1),n.s9C("matTooltip",n.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!t.disableSelect(e)),n.xp6(2),n.Q2q("data-cy","",e.name,"-checkbox"),n.Q6J("aria-label",n.xi3(4,9,n.lcZ(5,12,t.selection.isSelected(e)),n.VKq(14,_3,e.name)))("checked",t.selection.isSelected(e))("disabled",t.disableSelect(e))}}function A3(i,a){1&i&&(n.ynx(0,22),n.YNc(1,g3,2,1,"th",23),n.YNc(2,b3,6,16,"td",24),n.BQk())}function y3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function w3(i,a){if(1&i&&(n.TgZ(0,"td",32),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.id)}}function M3(i,a){1&i&&n._UZ(0,"th",33)}function C3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._UZ(1,"perun-web-apps-recently-viewed-icon",35),n.qZA()),2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("recentIds",t.recentIds)("id",e.id)}}function v3(i,a){1&i&&n._UZ(0,"th",33)}function T3(i,a){1&i&&(n.TgZ(0,"mat-icon",37),n.ALo(1,"translate"),n._uU(2,"account_tree"),n.qZA()),2&i&&n.Q6J("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function x3(i,a){if(1&i&&(n.TgZ(0,"td",34),n.YNc(1,T3,3,3,"mat-icon",36),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Q6J("ngIf",e.sourceGroupId)}}function S3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function E3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.uIk("data-cy",e.name),n.xp6(1),n.hij(" ",e.name," ")}}function D3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function L3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.vo.name)}}function H3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function R3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.voId)}}function P3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function k3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",34)(1,"perun-web-apps-group-resource-status",38),n.NdJ("mouseenter",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.disabledRouting=!0)})("mouseleave",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.disabledRouting=r.disableRouting)})("statusChange",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.refreshTable.emit())}),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("theme","group-theme")("resourceId",e.id)("groupId",t.groupId)("failureCause",e.failureCause)("status",e.status)}}function O3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function I3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.facility.name)}}function B3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function N3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.facilityId)}}function V3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function j3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.ALo(2,"resourceTagsToString"),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,e.resourceTags)," ")}}function F3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function z3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.description)}}function U3(i,a){1&i&&n._UZ(0,"tr",39)}const q3=function(i){return[i]};function Y3(i,a){if(1&i&&(n._UZ(0,"tr",40),n.ALo(1,"getResourceRoute"),n.ALo(2,"getResourceRoute")),2&i){const e=a.$implicit,t=n.oxw();n.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disabledRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",n.VKq(12,q3,t.disabledRouting?null:n.xi3(1,6,e,t.routingVo)))("routerLink",t.disabledRouting?null:n.xi3(2,9,e,t.routingVo))}}function W3(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",41),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function G3(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",41),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}const $3=function(i){return{all:i}};let Z3=(()=>{class i{constructor(e,t){this.guiAuthResolver=e,this.tableCheckbox=t,this.resources=[],this.selection=new Yi(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=Gl,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new n.vpe,this.allSelected=new n.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(r,d)=>i.getDataForColumn(r,d,this.recentIds),this.canBeSelected=r=>!this.disableSelect(r)}set matSort(e){this.sort=e}static getDataForColumn(e,t,r){switch(t){case"id":return e.id.toString();case"vo":return e.vo.name;case"name":return e.name;case"facility":return e.facility.name;case"description":return e.description;case"recent":return r&&r.includes(e.id)?"#".repeat(r.indexOf(e.id)):e.name;case"tags":{if(!e.resourceTags)return e[t];let u="";return e.resourceTags.forEach(function(c){u=u.concat(c.tagName)}),u}case"status":return e.status;case"uuid":return e.uuid;default:return e[t]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.setDataSource(),this.setAuth()}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,this.getDataForColumnFun),e)}setDataSource(){this.dataSource||(this.dataSource=new $o,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(e,t)=>Zl(e,t,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(e,t)=>$l(e,t,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const e=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected);return this.allSelected.emit(e),e}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}setAuth(){const e=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((t,r)=>t&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",e.concat([r])),!0),this.addAuth=this.selection.selected.reduce((t,r)=>t&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",e.concat([r])),!0)}itemSelectionToggle(e){this.selection.toggle(e),this.setAuth()}disableSelect(e){return this.resourcesToDisableCheckbox.has(e.id)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Cn),n.Y36(lA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(os,7),n.Gf(ps,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[n.TTD],decls:42,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,A3,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,y3,3,3,"th",5),n.YNc(7,w3,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,M3,1,0,"th",8),n.YNc(10,C3,2,2,"td",9),n.BQk(),n.ynx(11,10),n.YNc(12,v3,1,0,"th",8),n.YNc(13,x3,2,1,"td",9),n.BQk(),n.ynx(14,11),n.YNc(15,S3,3,3,"th",5),n.YNc(16,E3,2,2,"td",9),n.BQk(),n.ynx(17,12),n.YNc(18,D3,3,3,"th",5),n.YNc(19,L3,2,1,"td",9),n.BQk(),n.ynx(20,13),n.YNc(21,H3,3,3,"th",5),n.YNc(22,R3,2,1,"td",9),n.BQk(),n.ynx(23,14),n.YNc(24,P3,3,3,"th",5),n.YNc(25,k3,2,5,"td",9),n.BQk(),n.ynx(26,15),n.YNc(27,O3,3,3,"th",5),n.YNc(28,I3,2,1,"td",9),n.BQk(),n.ynx(29,16),n.YNc(30,B3,3,3,"th",5),n.YNc(31,N3,2,1,"td",9),n.BQk(),n.ynx(32,17),n.YNc(33,V3,3,3,"th",5),n.YNc(34,j3,3,3,"td",9),n.BQk(),n.ynx(35,18),n.YNc(36,F3,3,3,"th",5),n.YNc(37,z3,2,1,"td",9),n.BQk(),n.YNc(38,U3,1,0,"tr",19),n.YNc(39,Y3,3,14,"tr",20),n.qZA()()(),n.YNc(40,W3,3,3,"perun-web-apps-alert",21),n.YNc(41,G3,3,3,"perun-web-apps-alert",21)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.resources.length),n.xp6(1),n.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(14,$3,n.Dn7(4,10,t.dataSource,t.selection.selected.length,t.canBeSelected))),n.xp6(35),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resources.length),n.xp6(1),n.Q6J("ngIf",0===t.resources.length))},dependencies:[T.O5,ic,io,cs,ro,ds,ls,ao,us,hs,so,oo,oa,ps,Ag,yi,zn,yr,os,nL,s3,u3,EA,Ke,h3,p3,pT,yg,lL],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),i})(),J3=0;const fT=new n.OlP("CdkAccordion");let Q3=(()=>{class i{constructor(){this._stateChanges=new Le.x,this._openCloseAllActions=new Le.x,this.id="cdk-accordion-"+J3++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Ge(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:fT,useExisting:i}]),n.TTD]}),i})(),X3=0,K3=(()=>{class i{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=Nt.w0.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-"+X3++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((d,u)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===u&&this.id!==d&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Ge(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Ge(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(fT,12),n.Y36(n.sBO),n.Y36(n_))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:fT,useValue:void 0}])]}),i})(),eV=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const tV=["body"];function nV(i,a){}const iV=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],rV=["mat-expansion-panel-header","*","mat-action-row"];function aV(i,a){if(1&i&&n._UZ(0,"span",2),2&i){const e=n.oxw();n.Q6J("@indicatorRotate",e._getExpandedState())}}const sV=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],oV=["mat-panel-title","mat-panel-description","*"],mT=new n.OlP("MAT_ACCORDION"),cL="225ms cubic-bezier(0.4,0.0,0.2,1)",dL={indicatorRotate:En("indicatorRotate",[ut("collapsed, void",je({transform:"rotate(0deg)"})),ut("expanded",je({transform:"rotate(180deg)"})),Ot("expanded <=> collapsed, void => collapsed",Rt(cL))]),bodyExpansion:En("bodyExpansion",[ut("collapsed, void",je({height:"0px",visibility:"hidden"})),ut("expanded",je({height:"*",visibility:"visible"})),Ot("expanded <=> collapsed, void => collapsed",Rt(cL))])},uL=new n.OlP("MAT_EXPANSION_PANEL");let wg=(()=>{class i{constructor(e,t){this._template=e,this._expansionPanel=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(uL,8))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","matExpansionPanelContent",""]]}),i})(),lV=0;const hL=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Mg=(()=>{class i extends K3{constructor(e,t,r,d,u,c,o){super(e,t,r),this._viewContainerRef=d,this._animationMode=c,this._hideToggle=!1,this.afterExpand=new n.vpe,this.afterCollapse=new n.vpe,this._inputChanges=new Le.x,this._headerId="mat-expansion-panel-header-"+lV++,this._bodyAnimationDone=new Le.x,this.accordion=e,this._document=u,this._bodyAnimationDone.pipe(Uc((s,l)=>s.fromState===l.fromState&&s.toState===l.toState)).subscribe(s=>{"void"!==s.fromState&&("expanded"===s.toState?this.afterExpand.emit():"collapsed"===s.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Ge(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(vn(null),(0,bt.h)(()=>this.expanded&&!this._portal),(0,ht.q)(1)).subscribe(()=>{this._portal=new Oa(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(mT,12),n.Y36(n.sBO),n.Y36(n_),n.Y36(n.s_b),n.Y36(T.K0),n.Y36(n.QbO,8),n.Y36(hL,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,wg,5),2&e){let d;n.iGM(d=n.CRH())&&(t._lazyContent=d.first)}},viewQuery:function(e,t){if(1&e&&n.Gf(tV,5),2&e){let r;n.iGM(r=n.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&n.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n._Bn([{provide:mT,useValue:void 0},{provide:uL,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:rV,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(n.F$t(iV),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(d){return t._bodyAnimationDone.next(d)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,nV,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),n.uIk("aria-labelledby",t._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",t._portal))},dependencies:[id],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[dL.bodyExpansion]},changeDetection:0}),i})();class cV{}const dV=Vs(cV);let Cg=(()=>{class i extends dV{constructor(e,t,r,d,u,c,o){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=d,this._animationMode=c,this._parentChangeSubscription=Nt.w0.EMPTY;const s=e.accordion?e.accordion._stateChanges.pipe((0,bt.h)(l=>!(!l.hideToggle&&!l.togglePosition))):Xi.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,kn.T)(e.opened,e.closed,s,e._inputChanges.pipe((0,bt.h)(l=>!!(l.hideToggle||l.disabled||l.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,bt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),u&&(this.expandedHeight=u.expandedHeight,this.collapsedHeight=u.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Di(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Mg,1),n.Y36(n.SBq),n.Y36($r),n.Y36(n.sBO),n.Y36(hL,8),n.Y36(n.QbO,8),n.$8M("tabindex"))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._toggle()})("keydown",function(d){return t._keydown(d)}),2&e&&(n.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),n.Udp("height",t._getHeaderHeight()),n.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[n.qOj],ngContentSelectors:oV,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(n.F$t(sV),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,aV,1,1,"span",1)),2&e&&(n.xp6(4),n.Q6J("ngIf",t._showToggle()))},dependencies:[T.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[dL.indicatorRotate]},changeDetection:0}),i})(),BA=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),i})(),NA=(()=>{class i extends Q3{constructor(){super(...arguments),this._ownHeaders=new n.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Ge(e)}ngAfterContentInit(){this._headers.changes.pipe(vn(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new m0(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,Cg,5),2&e){let d;n.iGM(d=n.CRH())&&(t._headers=d)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[n._Bn([{provide:mT,useExisting:i}]),n.qOj]}),i})(),gT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,wt,eV,Ws]}),i})();function uV(i,a){1&i&&n._UZ(0,"mat-spinner",8)}const hV=function(){return["name","description"]};function pV(i,a){if(1&i&&n._UZ(0,"perun-web-apps-resources-list",9),2&i){const e=n.oxw(3);n.Q6J("resources",e.resources)("displayedColumns",n.DdM(3,hV))("disableRouting",!0)}}function fV(i,a){if(1&i&&(n.YNc(0,uV,1,0,"mat-spinner",6),n.YNc(1,pV,1,4,"perun-web-apps-resources-list",7)),2&i){const e=n.oxw(2);n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",!e.loading)}}function mV(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",4),n.NdJ("opened",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.getMemberData(d))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.qZA()(),n.YNc(4,fV,2,2,"ng-template",5),n.qZA()}if(2&i){const e=a.$implicit;n.xp6(3),n.hij(" ",e.name," ")}}let gV=(()=>{class i{constructor(e,t,r,d){this.usersManagerService=e,this.membersManagerService=t,this.resourcesManagerService=r,this.storage=d,this.resources=[],this.filteredVos=[]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=e})}getMemberData(e){this.loading=!0,this.membersManagerService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{this.resources=r,this.loading=!1})})}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Er),n.Y36(ia),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-services-page"]],decls:10,vars:11,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"resources","displayedColumns","disableRouting",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"resources","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.TgZ(8,"mat-accordion"),n.YNc(9,mV,5,1,"mat-expansion-panel",3),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,3,n.lcZ(3,5,"SERVICES.TITLE"))),n.xp6(4),n.Q6J("placeholder",n.lcZ(6,7,n.lcZ(7,9,"SERVICES.FILTER"))),n.xp6(4),n.Q6J("ngForOf",t.filteredVos))},dependencies:[T.sg,T.O5,cf,Z3,NA,Mg,Cg,BA,wg,Hn,Ke,Xt]}),i})();function _V(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-immediate-filter",5),n.NdJ("filter",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.applyFilter(r))}),n.qZA()}2&i&&n.Q6J("placeholder","ORGANIZATIONS.FILTER")}function bV(i,a){1&i&&n._UZ(0,"mat-spinner",6)}const AV=function(){return["name","expirationAttribute","extend"]};function yV(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"perun-web-apps-membership-list",11),n.NdJ("extendMembership",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d.extendMembership(r))}),n.qZA()()}if(2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("members",e.userMemberships)("selection",e.selection)("filterValue",e.filterValue)("displayedColumns",n.DdM(4,AV))}}function wV(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",12),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function MV(i,a){if(1&i&&(n.TgZ(0,"div",7)(1,"h1",8),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.YNc(5,yV,2,5,"div",9),n.YNc(6,wV,4,5,"perun-web-apps-alert",10),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,3,n.lcZ(4,5,"ORGANIZATIONS.IS_MEMBER"))),n.xp6(3),n.Q6J("ngIf",0!==e.userMemberships.length),n.xp6(1),n.Q6J("ngIf",0===e.userMemberships.length)}}function CV(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",12),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}const vV=function(){return["name"]};function TV(i,a){if(1&i&&n._UZ(0,"perun-web-apps-membership-list",14),2&i){const e=n.oxw(2);n.Q6J("members",e.adminMemberships)("filterValue",e.filterValue)("displayedColumns",n.DdM(3,vV))}}function xV(i,a){if(1&i&&(n.TgZ(0,"div",7)(1,"h1",8),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.YNc(5,CV,4,5,"perun-web-apps-alert",10),n.YNc(6,TV,1,4,"perun-web-apps-membership-list",13),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,3,n.lcZ(4,5,"ORGANIZATIONS.IS_ADMIN"))),n.xp6(3),n.Q6J("ngIf",!e.adminMemberships.length),n.xp6(1),n.Q6J("ngIf",e.adminMemberships.length)}}let SV=(()=>{class i{constructor(e,t,r){this.usersService=e,this.store=t,this.membersService=r,this.filterValue="",this.selection=new Yi(!1,[]),this.userMemberships=[],this.adminMemberships=[],this.vosCount=0}ngOnInit(){this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.user.id,this.refreshTable()}refreshTable(){this.loading=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(t=>{this.vosCount=e.length+t.length,this.fillMemberships(e,this.userMemberships),this.fillMemberships(t,this.adminMemberships)})})}applyFilter(e){this.filterValue=e}isEverythingLoaded(){this.vosCount--,this.loading=0!==this.vosCount}extendMembership(e){const t=this.store.getProperty("registrar_base_url");window.location.href=`${t}?vo=${e.entity.shortName}`}fillMemberships(e,t){this.membersService.getMembersByUser(this.userId).subscribe(r=>{e.forEach(d=>{const u=r.find(c=>c.voId===d.id);u?this.membersService.getRichMemberWithAttributes(u.id).subscribe(c=>{const o=c.memberAttributes.find(s=>"membershipExpiration"===s.friendlyName);t.push({entity:d,expirationAttribute:o}),this.isEverythingLoaded()}):(t.push({entity:d,expirationAttribute:null}),this.isEverythingLoaded())})})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Ut),n.Y36(Er))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-vos-page"]],decls:9,vars:9,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-5",4,"ngIf"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-5"],[1,"page-subtitle"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"members","selection","filterValue","displayedColumns","extendMembership"],["alert_type","warn"],[3,"members","filterValue","displayedColumns",4,"ngIf"],[3,"members","filterValue","displayedColumns"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,_V,1,1,"perun-web-apps-immediate-filter",2),n.YNc(6,bV,1,0,"mat-spinner",3),n.YNc(7,MV,7,7,"div",4),n.YNc(8,xV,7,7,"div",4),n.qZA()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,n.lcZ(3,7,"ORGANIZATIONS.TITLE"))),n.xp6(4),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,cf,yi,Hn,oL,Ke,Xt]}),i})(),EV=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n._UZ(1,"router-outlet"),n.qZA())},dependencies:[Wr]}),i})(),DV=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t,this.password=""}ngOnInit(){this.password=this.data.password}onClose(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-generated-password-dialog"]],decls:20,vars:22,consts:[["mat-dialog-title","",1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"user-theme"],["disabled","",1,"center-text",3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"p"),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n.TgZ(9,"label"),n._UZ(10,"input",2),n.qZA()(),n.TgZ(11,"div",3)(12,"button",4),n.NdJ("click",function(){return t.onClose()}),n._uU(13),n.ALo(14,"translate"),n.ALo(15,"customTranslate"),n.qZA(),n.TgZ(16,"button",5),n._uU(17),n.ALo(18,"translate"),n.ALo(19,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,6,n.lcZ(3,8,"DIALOGS.SHOW_PASSWORD.TITLE")),"\n"),n.xp6(5),n.Oqu(n.lcZ(7,10,n.lcZ(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),n.xp6(4),n.Q6J("value",t.password),n.xp6(3),n.hij(" ",n.lcZ(14,14,n.lcZ(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),n.xp6(3),n.Q6J("cdkCopyToClipboard",t.password),n.xp6(1),n.hij(" ",n.lcZ(18,18,n.lcZ(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},dependencies:[Ht,Xn,ii,Un,Jv,Ke,Xt],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),i})();function LV(i,a){1&i&&n._UZ(0,"mat-spinner",7)}function HV(i,a){1&i&&n._UZ(0,"th",16)}function RV(i,a){if(1&i&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e)}}function PV(i,a){1&i&&n._UZ(0,"tr",18)}function kV(i,a){1&i&&n._UZ(0,"tr",19)}function OV(i,a){if(1&i&&(n.TgZ(0,"div",8)(1,"p"),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"div",9),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n.TgZ(9,"table",10),n.ynx(10,11),n.YNc(11,HV,1,0,"th",12),n.YNc(12,RV,2,1,"td",13),n.BQk(),n.YNc(13,PV,1,0,"tr",14),n.YNc(14,kV,1,0,"tr",15),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,5,n.lcZ(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),n.xp6(4),n.hij(" ",n.lcZ(7,9,n.lcZ(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),n.xp6(3),n.Q6J("dataSource",e.dataSource),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}let IV=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new $o(this.data.description)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(li))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-remove-alt-password-dialog"]],decls:16,vars:17,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"user-theme"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","description"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,LV,1,0,"mat-spinner",2),n.qZA(),n.YNc(6,OV,15,13,"div",3),n.TgZ(7,"div",4)(8,"button",5),n.NdJ("click",function(){return t.onCancel()}),n._uU(9),n.ALo(10,"translate"),n.ALo(11,"customTranslate"),n.qZA(),n.TgZ(12,"button",6),n.NdJ("click",function(){return t.onSubmit()}),n._uU(13),n.ALo(14,"translate"),n.ALo(15,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,n.lcZ(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),n.xp6(4),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(3),n.hij(" ",n.lcZ(10,9,n.lcZ(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),n.xp6(4),n.hij(" ",n.lcZ(14,13,n.lcZ(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},dependencies:[T.O5,Ht,Xn,ii,Un,io,cs,ro,ds,ls,ao,us,hs,so,oo,Hn,Ke,Xt]}),i})();function BV(i,a){1&i&&n._UZ(0,"th",12)}const NV=function(i){return{name:i}};function VV(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",13)(1,"mat-checkbox",14),n.NdJ("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw();return n.KtG(r?c.selection.toggle(u):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(7,NV,e)))("checked",t.selection.isSelected(e))}}function jV(i,a){if(1&i&&(n.TgZ(0,"th",15),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.headerColumnText)}}function FV(i,a){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e)}}function zV(i,a){1&i&&n._UZ(0,"tr",17)}function UV(i,a){1&i&&n._UZ(0,"tr",18)}function qV(i,a){if(1&i&&(n.TgZ(0,"perun-web-apps-alert",19),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",e.alertText,"\n")}}let pL=(()=>{class i{constructor(){this.values=[],this.selection=new Yi(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"]}static getExportDataForColumn(e){return e}ngOnChanges(){this.values=this.values?this.values:[],this.dataSource=new $o(this.values),this.setDataSource()}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,i.getExportDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getExportDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.setDataSource()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-string-list"]],viewQuery:function(e,t){if(1&e&&n.Gf(os,7),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first)}},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[n.TTD],decls:12,vars:6,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","exportDisplayedData","exportAllData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pl-3","mat-header-cell","",4,"matHeaderCellDef"],["class","truncate pl-3","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","",1,"pl-3"],["mat-cell","",1,"truncate","pl-3"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,BV,1,0,"th",4),n.YNc(5,VV,4,9,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,jV,2,1,"th",7),n.YNc(8,FV,2,1,"td",8),n.BQk(),n.YNc(9,zV,1,0,"tr",9),n.YNc(10,UV,1,0,"tr",10),n.qZA()()(),n.YNc(11,qV,2,1,"perun-web-apps-alert",11)),2&e&&(n.Q6J("hidden",!t.values.length),n.xp6(1),n.Q6J("dataLength",t.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(7),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.values.length))},dependencies:[T.O5,yi,io,cs,ro,ds,ls,ao,us,hs,so,oo,ic,os,Ke,yg],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),i})();function YV(i,a){if(1&i&&n._UZ(0,"perun-web-apps-string-list",10),2&i){const e=n.oxw();n.Q6J("values",e.displayedValues)("selection",e.selection)("alertText",e.alertText)("headerColumnText",e.headerColumnText)}}function WV(i,a){1&i&&n._UZ(0,"mat-spinner",11)}let GV=(()=>{class i{constructor(e,t,r,d,u){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=d,this.usersManagerService=u,this.altPasswordCtrl=new Js(null,[bi.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new Yi(!1,[]),d.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(c=>this.removeDialogDescription=c),d.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),d.get("ALERTS.NO_ALT_PASSWORDS").subscribe(c=>this.alertText=c),d.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(c=>this.headerColumnText=c)}ngOnInit(){this.getAltPasswords()}createPassword(){const e=this.generatePassword();this.usersManagerService.createAlternativePassword({user:this.userId,description:this.altPasswordCtrl.value,loginNamespace:"einfra",password:e}).subscribe(()=>{const t=ln();t.width="600px",t.data={password:e},this.dialog.open(DV,t),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let r="",d=0;const u=t.length;for(;d<16;++d)r+=t.charAt(Math.random()*u);return r.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),r}alreadyContainsValue(e){return this.passwordDescriptions.has(e)}removeAltPasswords(){const e=ln();e.width="600px",e.data={description:this.selection.selected,passwordId:this.altPasswordsAttributeValue.get(this.selection.selected[0]),userId:this.userId},this.dialog.open(IV,e).afterClosed().subscribe(r=>{r&&(this.getAltPasswords(),this.selection.clear())})}getAltPasswords(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(e=>{if(e.value){this.altPasswordsAttributeValue=new Map(Object.entries(e.value));const t=this.altPasswordsAttributeValue.keys();this.passwordDescriptions=new Set(t),this.displayedValues=Array.from(this.passwordDescriptions.values())}else this.displayedValues=[];this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(jn),n.Y36(on),n.Y36(tn),n.Y36(li))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-alternative-passwords"]],decls:28,vars:35,consts:[[1,"ml-3"],[1,"page-title"],[1,"input-width"],["matInput","","type","text",3,"placeholder","formControl"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["alert_type","info"],[1,"page-subtitle"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"values","selection","alertText","headerColumnText"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"mat-form-field",2)(6,"label",2),n._UZ(7,"input",3),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA()(),n.TgZ(10,"button",4),n.NdJ("click",function(){return t.createPassword()}),n._uU(11),n.ALo(12,"translate"),n.ALo(13,"customTranslate"),n.qZA(),n.TgZ(14,"perun-web-apps-alert",5),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA(),n.TgZ(18,"h1",6),n._uU(19),n.ALo(20,"translate"),n.ALo(21,"customTranslate"),n.qZA(),n.TgZ(22,"button",7),n.NdJ("click",function(){return t.removeAltPasswords()}),n._uU(23),n.ALo(24,"translate"),n.ALo(25,"customTranslate"),n.qZA(),n.YNc(26,YV,1,4,"perun-web-apps-string-list",8),n.YNc(27,WV,1,0,"mat-spinner",9),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,11,n.lcZ(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),n.xp6(5),n.s9C("placeholder",n.lcZ(8,15,n.lcZ(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),n.Q6J("formControl",t.altPasswordCtrl),n.xp6(3),n.Q6J("disabled",!t.altPasswordCtrl.valid||t.alreadyContainsValue(t.altPasswordCtrl.value)),n.xp6(1),n.hij(" ",n.lcZ(12,19,n.lcZ(13,21,"ALT_PASSWORDS.GENERATE"))," "),n.xp6(4),n.Oqu(n.lcZ(16,23,n.lcZ(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),n.xp6(4),n.Oqu(n.lcZ(20,27,n.lcZ(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),n.xp6(3),n.Q6J("disabled",t.selection.isEmpty()),n.xp6(1),n.hij(" ",n.lcZ(24,31,n.lcZ(25,33,"ALT_PASSWORDS.REMOVE"))," "),n.xp6(3),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading))},dependencies:[T.O5,Ht,yi,di,ji,_i,Ai,sr,Hn,pL,Ke,Xt]}),i})();function $V(i,a){if(1&i&&(n.TgZ(0,"mat-list-item",1)(1,"mat-icon"),n._uU(2),n.qZA(),n.TgZ(3,"p",2),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA()()),2&i){const e=a.$implicit;n.Q6J("routerLink",e.url),n.xp6(2),n.Oqu(e.icon),n.xp6(2),n.Oqu(n.lcZ(5,3,n.lcZ(6,5,e.label)))}}let ZV=(()=>{class i{constructor(e){this.storeService=e,this.items=[]}ngOnInit(){this.initItems();const e=this.storeService.getProperty("displayed_tabs");this.items=this.items.filter(t=>e.includes(t.tabName))}initItems(){this.items=[{icon:"lock_open",url:"/profile/settings/altPasswords",label:"SETTINGS.ALTERNATIVE_PASSWORDS",tabName:"alt_passwords"},{icon:"admin_panel_settings",url:"/profile/settings/auth",label:"SETTINGS.AUTHENTICATION",tabName:"auth"},{icon:"storage",url:"/profile/settings/dataQuotas",label:"SETTINGS.DATA_QUOTAS",tabName:"data_quotas"},{icon:"face",url:"/profile/settings/localAccount",label:"SETTINGS.LOCAL_ACCOUNT",tabName:"local_acc"},{icon:"unsubscribe",url:"/profile/settings/mailingLists",label:"SETTINGS.MAILING_LISTS",tabName:"opt_out"},{icon:"chevron_right",url:"/profile/settings/prefShells",label:"SETTINGS.PREFERRED_SHELLS",tabName:"pref_shells"},{icon:"group",url:"/profile/settings/prefGroupNames",label:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES",tabName:"pref_group_names"},{icon:"lock_open",url:"/profile/settings/sambaPassword",label:"SETTINGS.SAMBA_PASSWORD",tabName:"samba"},{icon:"vpn_key",url:"/profile/settings/sshKeys",label:"SETTINGS.SSH_KEYS",tabName:"ssh_keys"},{icon:"lock",url:"/profile/settings/passwordReset",label:"SETTINGS.PASSWORD_RESET",tabName:"password_reset"}]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-overview"]],decls:2,vars:1,consts:[["matRipple","","queryParamsHandling","merge",3,"routerLink",4,"ngFor","ngForOf"],["matRipple","","queryParamsHandling","merge",3,"routerLink"],[1,"ml-2","mt-auto","mb-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-list"),n.YNc(1,$V,7,7,"mat-list-item",0),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngForOf",t.items))},dependencies:[T.sg,zn,tT,DA,oa,Jr,Ke,Xt],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-hover)!important;cursor:pointer}"]}),i})();function JV(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",5),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function QV(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-option",11),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(3);return n.KtG(r.changeValue())}),n._uU(1),n.qZA()}if(2&i){const e=a.$implicit;n.Q6J("value",e),n.xp6(1),n.Oqu(e)}}function XV(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-list-item")(1,"mat-form-field",7)(2,"mat-select",8),n.NdJ("valueChange",function(r){const u=n.CHM(e).index,c=n.oxw(2);return n.KtG(c.shells[u]=r)}),n.YNc(3,QV,2,2,"mat-option",9),n.qZA()(),n.TgZ(4,"button",10),n.NdJ("click",function(){const d=n.CHM(e).index,u=n.oxw(2);return n.KtG(u.removeShell(d))}),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA()()}if(2&i){const e=a.index,t=n.oxw(2);n.xp6(2),n.Q6J("value",t.shells[e]),n.xp6(1),n.Q6J("ngForOf",t.defaultShells),n.xp6(2),n.hij(" ",n.lcZ(6,3,n.lcZ(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON"))," ")}}function KV(i,a){if(1&i&&(n.TgZ(0,"mat-list"),n.YNc(1,XV,8,7,"mat-list-item",6),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngForOf",e.shells)}}let ej=(()=>{class i{constructor(e,t,r,d){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=d,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],d.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(u=>this.removeDialogDescription=u),d.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(u=>this.removeDialogTitle=u)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e)}),this.getAttribute()}addShell(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{})}removeShell(e){const t=ln();t.width="600px",t.data={valueIndex:e,values:[this.shells[e]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(SA,t).afterClosed().subscribe(d=>{d&&this.getAttribute()})}changeValue(){this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe({next:()=>{this.getAttribute()},error:()=>this.loading=!1})}getAttribute(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(e=>{this.prefShellsAttribute=e,this.shells=this.prefShellsAttribute?.value??[],this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(jn),n.Y36(on),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-preferred-shells"]],decls:14,vars:17,consts:[[1,"page-title"],["alert_type","info"],["mat-flat-button","","color","accent",3,"click"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],["alert_type","warn"],[4,"ngFor","ngForOf"],[1,"w-100"],[3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[3,"value","click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"perun-web-apps-alert",1),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.TgZ(8,"button",2),n.NdJ("click",function(){return t.addShell()}),n._uU(9),n.ALo(10,"translate"),n.ALo(11,"customTranslate"),n.qZA(),n.YNc(12,JV,4,5,"perun-web-apps-alert",3),n.YNc(13,KV,2,1,"mat-list",4)),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,n.lcZ(3,7,"PREFERRED_SHELLS.TITLE"))),n.xp6(4),n.hij(" ",n.lcZ(6,9,n.lcZ(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),n.xp6(4),n.hij(" ",n.lcZ(10,13,n.lcZ(11,15,"PREFERRED_SHELLS.NEW_BUTTON")),"\n"),n.xp6(3),n.Q6J("ngIf",!t.loading&&0===t.shells.length),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.sg,T.O5,tT,DA,Ht,yi,di,fd,Fs,Ke,Xt]}),i})();function tj(i,a){1&i&&n._UZ(0,"mat-spinner",4)}function nj(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",5)(2,"mat-form-field",6)(3,"label",6),n._UZ(4,"input",7),n.qZA()()(),n.TgZ(5,"div",8)(6,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA(),n.TgZ(10,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(11),n.ALo(12,"translate"),n.ALo(13,"customTranslate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(4),n.Q6J("formControl",e.inputControl),n.xp6(3),n.hij(" ",n.lcZ(8,4,n.lcZ(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",!e.inputControl.valid||e.groups.includes(e.inputControl.value)),n.xp6(1),n.hij(" ",n.lcZ(12,8,n.lcZ(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}let ij=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.groups=[]}ngOnInit(){this.inputControl=new Js(null,bi.required),this.groups=this.data.groups}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.data.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${this.data.namespace}`).subscribe(e=>{const t=e?.value??[];t.push(this.inputControl.value),e.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:e}).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(jn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-unix-group-dialog"]],decls:7,vars:7,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","","required","",1,"w-100",3,"formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,tj,1,0,"mat-spinner",2),n.YNc(6,nj,14,12,"div",3),n.qZA()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,3,n.lcZ(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),n.xp6(4),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,Ht,di,Xn,ii,Un,ji,_i,Ai,Nr,sr,Hn,Ke,Xt]}),i})();function rj(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",2)(1,"h4"),n._uU(2),n.qZA(),n.TgZ(3,"button",3),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.addGroupName(d))}),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA(),n.TgZ(7,"button",4),n.NdJ("click",function(){const r=n.CHM(e),d=r.$implicit,u=r.index,c=n.oxw();return n.KtG(c.removeGroupName(d,u))}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n._UZ(10,"perun-web-apps-string-list",5),n.qZA()}if(2&i){const e=a.$implicit,t=a.index,r=n.oxw();n.xp6(2),n.Oqu(e),n.xp6(2),n.hij(" ",n.lcZ(5,8,n.lcZ(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))," "),n.xp6(3),n.Q6J("disabled",0===r.selectionList[t].selected.length),n.xp6(1),n.hij(" ",n.lcZ(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")," "),n.xp6(2),n.Q6J("values",r.groupNames.get(e))("selection",r.selectionList[t])("alertText",r.alertText)("headerColumnText",r.headerColumnText)}}let aj=(()=>{class i{constructor(e,t,r,d){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=d,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],d.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(u=>this.removeDialogDescription=u),d.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(u=>this.removeDialogTitle=u),d.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(u=>this.alertText=u),d.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(u=>this.headerColumnText=u)}ngOnInit(){this.namespaces=this.store.getProperty("preferred_unix_group_names"),this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(e=>this.alertText=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.initSelection(),this.namespaces.forEach(e=>{this.getAttribute(e)})}initSelection(){this.namespaces.forEach(()=>{this.selectionList.push(new Yi(!0,[]))})}getAttribute(e){this.attributesManagerService.getUserAttributeByName(this.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${e}`).subscribe(t=>{this.groupNames.set(e,t?.value??[]),this.groupNameAttributes.push(t)})}addGroupName(e){const t=this.groupNames.get(e),r=ln();r.width="400px",r.data={groups:t,namespace:e,userId:this.userId},this.dialog.open(ij,r).afterClosed().subscribe(u=>{u&&this.getAttribute(e)})}removeGroupName(e,t){const r=ln();r.width="600px",r.data={values:this.selectionList[t].selected,attribute:this.groupNameAttributes[t],userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(SA,r).afterClosed().subscribe(u=>{u&&(this.selectionList[t].clear(),this.getAttribute(e))})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(jn),n.Y36(on),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-preferred-unix-group-names"]],decls:5,vars:6,consts:[[1,"page-title"],["class","mt-4",4,"ngFor","ngForOf"],[1,"mt-4"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,rj,11,14,"div",1)),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,2,n.lcZ(3,4,"PREFERRED_UNIX_GROUP_NAMES.TITLE"))),n.xp6(3),n.Q6J("ngForOf",t.namespaces))},dependencies:[T.sg,Ht,pL,Ke,Xt]}),i})();function sj(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",7),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"ALERTS.NO_SAMBA")),"\n"))}function oj(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",7),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"ALERTS.SAMBA_EXISTS")),"\n"))}function lj(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",8),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SAMBA_PASSWORD.PASSWORD_VALIDATION"))))}let cj=(()=>{class i{constructor(e,t,r,d,u){this.attributesManagerService=e,this.store=t,this.usersManagerService=r,this.notificator=d,this.translate=u,u.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(c=>this.successMessage=c),u.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(c=>this.showPwdTooltip=c),u.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(c=>this.hidePwdTooltip=c)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new Js("",[bi.pattern("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")]),this.getSambaAttribute()}setSambaPassword(){this.sambaAttribute.value=this.sambaControl.value;const e=(new Date).getTime().toString();this.usersManagerService.createAlternativePassword({user:this.userId,description:e,loginNamespace:"samba-du",password:this.sambaControl.value}).subscribe(()=>{this.sambaControl.setValue(""),this.getSambaAttribute(),this.notificator.showSuccess(this.successMessage)})}getSambaAttribute(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:samba-du").subscribe(e=>{this.sambaExists=!!e.value,this.sambaAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(jn),n.Y36(Ut),n.Y36(li),n.Y36(Mr),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-samba-password"]],decls:19,vars:23,consts:[[1,"page-title"],["alert_type","warn",4,"ngIf"],[1,"input-width"],["matInput","",3,"formControl","type","placeholder"],["disableRipple","","mat-icon-button","",3,"matTooltip","click"],["color","accent","mat-flat-button","",3,"disabled","click"],["alert_type","error",4,"ngIf"],["alert_type","warn"],["alert_type","error"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,sj,4,5,"perun-web-apps-alert",1),n.YNc(5,oj,4,5,"perun-web-apps-alert",1),n.TgZ(6,"mat-form-field",2)(7,"label",2),n._UZ(8,"input",3),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA()(),n.TgZ(11,"button",4),n.NdJ("click",function(){return t.showPassword=!t.showPassword}),n.TgZ(12,"mat-icon"),n._uU(13),n.qZA()(),n.TgZ(14,"button",5),n.NdJ("click",function(){return t.setSambaPassword()}),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA(),n.YNc(18,lj,4,5,"perun-web-apps-alert",6)),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,11,n.lcZ(3,13,"SAMBA_PASSWORD.TITLE"))),n.xp6(3),n.Q6J("ngIf",!t.sambaExists),n.xp6(1),n.Q6J("ngIf",t.sambaExists),n.xp6(3),n.s9C("placeholder",n.lcZ(9,15,n.lcZ(10,17,"SAMBA_PASSWORD.INPUT_PLACEHOLDER"))),n.Q6J("formControl",t.sambaControl)("type",t.showPassword?"text":"password"),n.xp6(3),n.Q6J("matTooltip",t.showPassword?t.hidePwdTooltip:t.showPwdTooltip),n.xp6(2),n.Oqu(t.showPassword?"visibility_off":"visibility"),n.xp6(1),n.Q6J("disabled",0===t.sambaControl.value.length||t.sambaControl.invalid),n.xp6(1),n.hij(" ",n.lcZ(16,19,n.lcZ(17,21,"SAMBA_PASSWORD.SET_PASSWORD")),"\n"),n.xp6(3),n.Q6J("ngIf",t.sambaControl.invalid))},dependencies:[T.O5,zn,Ht,yi,di,ji,_i,Ai,sr,yr,Ke,Xt]}),i})(),fj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),Mj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[fj,wt,wt]}),i})(),Tj=(()=>{class i{constructor(){this.changes=new Le.x,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(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Oj={provide:new n.OlP("mat-datepicker-scroll-strategy"),deps:[rr],useFactory:function kj(i){return()=>i.scrollStrategies.reposition()}};let wT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Tj,Oj],imports:[T.ez,Ka,Bo,Ll,Ws,wt,da]}),i})();new n.OlP("mat-selectsearch-default-options");let qj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[T.ez,Xs,Ka,mg,eo,ef,Uo]]}),i})(),MT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})(),bL=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[js,wt,js,wt]}),i})(),Gj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Ho]}),i})(),CT=(()=>{class i{constructor(){this.changes=new Le.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const rF={provide:CT,deps:[[new n.FiY,new n.tp0,CT]],useFactory:function iF(i){return i||new CT}};let ML=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[rF,Jc],imports:[wt,T.ez,Ws,Ka,Gj,eo,ca,wt]}),i})(),cF=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,wt,Ws,ca,uu,Ll,wt]}),i})();const dF=["input"],uF=function(i){return{enterDuration:i}},hF=["*"],pF=new n.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let fF=0;const mF={provide:ar,useExisting:(0,n.Gpc)(()=>CL),multi:!0};class gF{constructor(a,e){this.source=a,this.checked=e}}const _F=Vs(Hl(Ni(Xa(class{constructor(i){this._elementRef=i}}))));let bF=(()=>{class i extends _F{constructor(e,t,r,d,u,c,o){super(e),this._focusMonitor=t,this._changeDetectorRef=r,this.defaults=u,this._onChange=s=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new n.vpe,this.toggleChange=new n.vpe,this.tabIndex=parseInt(d)||0,this.color=this.defaultColor=u.color||"accent",this._noopAnimations="NoopAnimations"===c,this.id=this._uniqueId=`${o}${++fF}`}get required(){return this._required}set required(e){this._required=Ge(e)}get checked(){return this._checked}set checked(e){this._checked=Ge(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?this._focused=!0:e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[n.qOj]}),i})(),CL=(()=>{class i extends bF{constructor(e,t,r,d,u,c){super(e,t,r,d,u,c,"mat-slide-toggle-")}_createChangeEvent(e){return new gF(this,e)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36($r),n.Y36(n.sBO),n.$8M("tabindex"),n.Y36(pF),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){if(1&e&&n.Gf(dF,5),2&e){let r;n.iGM(r=n.CRH())&&(t._inputElement=r.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(e,t){2&e&&(n.Ikx("id",t.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),n.ekj("mat-checked",t.checked)("mat-disabled",t.disabled)("mat-slide-toggle-label-before","before"==t.labelPosition)("_mat-animation-noopable",t._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[n._Bn([mF]),n.qOj],ngContentSelectors:hF,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,t){if(1&e&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.NdJ("change",function(d){return t._onChangeEvent(d)})("click",function(d){return t._onInputClick(d)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA()()(),n.TgZ(9,"span",9,10),n.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),n.TgZ(11,"span",11),n._uU(12,"\xa0"),n.qZA(),n.Hsn(13),n.qZA()()),2&e){const r=n.MAs(1),d=n.MAs(10);n.uIk("for",t.inputId),n.xp6(2),n.ekj("mat-slide-toggle-bar-no-side-margin",!d.textContent||!d.textContent.trim()),n.xp6(1),n.Q6J("id",t.inputId)("required",t.required)("tabIndex",t.tabIndex)("checked",t.checked)("disabled",t.disabled),n.uIk("name",t.name)("aria-checked",t.checked)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),n.xp6(4),n.Q6J("matRippleTrigger",r)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(18,uF,t._noopAnimations?0:150))}},dependencies:[Jr,c0],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),i})(),vL=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),vT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[vL,ca,wt,uu,vL,wt]}),i})(),wF=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,MT,Kv,gT,Ka,bL,mg,eo,fg,Wu,ef,Gs,Kp,Kc,Fu,Xs,ML,wT,T0,Lv,nT,Wp,Qv,IA,qu,Uo,md,ca,fg,vT,dT,MT,Kv,gT,Ka,bL,mg,eo,fg,Wu,ef,Gs,Kp,Kc,Fu,Xs,ML,wT,T0,Lv,nT,Wp,Qv,IA,qu,Uo,md,ca,cF,vT,dT]}),i})(),MF=(()=>{class i extends W1{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const CF={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let TL=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Zr,useClass:MF},{provide:Uh,useValue:CF}],imports:[T.ez,mg,fg,Fu,dT,XI,po,Tl,IA,qu,ef,gA,eo,Wp,Ka,Uo,Gs,Xs,Kp,ca,JE,rD,Mj,wT,uD,_u,md,qj,Kc,Wu,JC,wF,vO]}),i})();n.B6R(hD,[T.O5,yi,Ht,B0,vu,ko,Xn,Un,pD],[Ke,Xt]);let vF=(()=>{class i{transform(e){return"virt"===e.namespace.split(":")[4]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"isVirtualAttribute",type:i,pure:!0}),i})();function TF(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"th",18)(1,"mat-checkbox",19),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(r?d.masterToggle():null)}),n.ALo(2,"translate"),n.ALo(3,"masterCheckboxLabel"),n.qZA()()}if(2&i){const e=n.oxw().ngIf,t=n.oxw();n.xp6(1),n.Q6J("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)("aria-label",n.lcZ(2,3,n.lcZ(3,5,e.all)))}}const xF=function(i){return{name:i}};function SF(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",20)(1,"mat-checkbox",21),n.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.selection.toggle(u):null)}),n.ALo(2,"multiWordDataCy"),n.ALo(3,"isVirtualAttribute"),n.ALo(4,"translate"),n.ALo(5,"checkboxLabel"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw(2);n.xp6(1),n.Q2q("data-cy","",n.lcZ(2,4,e.displayName),"-checkbox"),n.Q6J("checked",t.selection.isSelected(e))("disabled",n.lcZ(3,6,e)||!e.writable)("aria-label",n.xi3(4,8,n.lcZ(5,11,t.selection.isSelected(e)),n.VKq(13,xF,e.displayName)))}}function EF(i,a){1&i&&(n.ynx(0,15),n.YNc(1,TF,4,7,"th",16),n.YNc(2,SF,6,15,"td",17),n.BQk())}function DF(i,a){1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function LF(i,a){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.id)}}function HF(i,a){1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function RF(i,a){if(1&i&&(n.TgZ(0,"td",24),n.ALo(1,"multiWordDataCy"),n.TgZ(2,"div",25),n._uU(3),n.qZA()()),2&i){const e=a.$implicit,t=n.oxw();n.Q2q("data-cy","",n.lcZ(1,3,e.friendlyName),"-friendlyName"),n.xp6(2),n.s9C("matTooltip",t.getAttributeFullName(e)),n.xp6(1),n.hij(" ",e.displayName," ")}}function PF(i,a){1&i&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function kF(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",24)(1,"perun-web-apps-attribute-value",27),n.NdJ("sendEventToParent2",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.onValueChange(d))}),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("attribute",e)("readonly",t.readonly||!e.writable)}}function OF(i,a){1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function IF(i,a){if(1&i&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.description)}}function BF(i,a){1&i&&n._UZ(0,"tr",28)}function NF(i,a){if(1&i&&(n._UZ(0,"tr",29),n.ALo(1,"translate")),2&i){const e=a.$implicit,t=n.oxw();n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),n.Q6J("matTooltipPosition","before")("matTooltipDisabled",e.writable||t.readonly)}}function VF(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function jF(i,a){if(1&i&&(n.TgZ(0,"perun-web-apps-alert",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,1,e.emptyListText),"\n")}}const FF=function(i){return{all:i}};let zF=(()=>{class i{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.attributes=[],this.selection=new Yi(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=Gl}set matSort(e){this.sort=e,this.setDataSource()}static canBeSelected(e){return!to(e)&&e.writable}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"displayName":return e.displayName;case"description":return e.description;case"value":return JSON.stringify(e.value);case"urn":return e.namespace+":"+e.baseFriendlyName;default:return""}}canBeSelected(e){return!to(e)&&e.writable}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new $o(function uv(i){return i.filter(a=>!a.namespace.includes("def:core"))}(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(e=>!this.hiddenColumns.includes(e)),this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Zl(e,t,this.displayedColumns.concat("urn"),i.getDataForColumn),this.dataSource.sortData=(e,t)=>$l(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,i.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,i.canBeSelected)}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}onValueChange(e){i.canBeSelected(e)&&this.selection.select(e)}getAttributeFullName(e){return`${e.namespace}:${e.friendlyName}`}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Cn),n.Y36(lA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(os,7),n.Gf(ps,7),n.Gf(uT,5)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first),n.iGM(r=n.CRH())&&(t.items=r)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[n.TTD],decls:21,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","displayName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,EF,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,DF,3,3,"th",5),n.YNc(7,LF,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,HF,3,3,"th",5),n.YNc(10,RF,4,5,"td",8),n.BQk(),n.ynx(11,9),n.YNc(12,PF,3,3,"th",10),n.YNc(13,kF,2,2,"td",8),n.BQk(),n.ynx(14,11),n.YNc(15,OF,3,3,"th",5),n.YNc(16,IF,2,1,"td",8),n.BQk(),n.YNc(17,BF,1,0,"tr",12),n.YNc(18,NF,2,5,"tr",13),n.qZA()()(),n.YNc(19,VF,3,3,"perun-web-apps-alert",14),n.YNc(20,jF,3,3,"perun-web-apps-alert",14)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(14,FF,n.Dn7(4,10,t.dataSource,t.selection.selected.length,t.canBeSelected))),n.xp6(14),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.data.length))},dependencies:[T.O5,ic,io,cs,ro,ds,ls,ao,us,hs,so,oo,ps,Ag,yi,yr,os,uT,Ke,vF,iT,pT,yg,lL],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),i})();function UF(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function qF(i,a){1&i&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function YF(i,a){if(1&i&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.friendlyNameParameter)}}function WF(i,a){1&i&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function GF(i,a){if(1&i&&(n.TgZ(0,"td",18),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.value)}}function $F(i,a){1&i&&n._UZ(0,"th",16)}function ZF(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",19)(1,"button",20),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.resetPassword(d.friendlyNameParameter))}),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("disabled",!t.logins.includes(e)),n.xp6(1),n.hij(" ",n.lcZ(3,2,n.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function JF(i,a){1&i&&n._UZ(0,"th",16)}function QF(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",19)(1,"button",21),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.changePassword(d))}),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("disabled",!t.logins.includes(e)),n.xp6(1),n.hij(" ",n.lcZ(3,2,n.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function XF(i,a){1&i&&n._UZ(0,"tr",22)}function KF(i,a){1&i&&n._UZ(0,"tr",23)}let ez=(()=>{class i{constructor(e,t,r,d,u,c,o){this.attributesManagerService=e,this.store=t,this.dialog=r,this.route=d,this.router=u,this.otherApplicationService=c,this.entityStorageService=o,this.authenticationPage=!1,this.filteredNamespaces=new n.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.getProperty("password_namespace_attributes").map(e=>{const t=e.split(":");return t[t.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe(e=>{if(this.logins=e.filter(t=>this.nameSpaces.includes(t.friendlyNameParameter)),this.filteredNamespaces.emit(e.map(t=>t.friendlyNameParameter)),this.dataSource=new $o(e),!this.authenticationPage){const r=this.route.snapshot.queryParamMap.get("namespace");if(r){const d=this.logins.find(u=>u.friendlyNameParameter===r);d&&this.changePassword(d)}}})}resetPassword(e){window.open(this.otherApplicationService.getUrlForOtherApplication(Go.PwdReset,e),"_blank")}changePassword(e){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:e.friendlyNameParameter},queryParamsHandling:"merge"});const t=ln();t.width="600px",t.data={login:String(e.value),namespace:e.friendlyName.split(":")[1]},this.dialog.open(Hk,t).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(jn),n.Y36(Ut),n.Y36(on),n.Y36(mi),n.Y36(Dn),n.Y36(cA),n.Y36(Sv))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,UF,4,5,"perun-web-apps-alert",1),n.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),n.ynx(9,6),n.YNc(10,qF,4,5,"th",7),n.YNc(11,YF,2,1,"td",8),n.BQk(),n.ynx(12,9),n.YNc(13,WF,4,5,"th",7),n.YNc(14,GF,2,1,"td",10),n.BQk(),n.ynx(15,11),n.YNc(16,$F,1,0,"th",7),n.YNc(17,ZF,5,6,"td",12),n.BQk(),n.ynx(18,13),n.YNc(19,JF,1,0,"th",7),n.YNc(20,QF,5,6,"td",12),n.BQk(),n.YNc(21,XF,1,0,"tr",14),n.YNc(22,KF,1,0,"tr",15),n.qZA()()()()),2&e&&(n.xp6(1),n.hij(" ",t.authenticationPage?"":n.lcZ(2,5,n.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),n.xp6(3),n.Q6J("ngIf",!t.logins.length&&!t.authenticationPage),n.xp6(4),n.Q6J("dataSource",t.dataSource),n.xp6(13),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns))},dependencies:[T.O5,io,cs,ro,ds,ls,ao,us,hs,so,oo,ps,yi,Ht,Ke,Xt],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),i})();function Cz(i,a){1&i&&n._UZ(0,"mat-spinner",8)}function vz(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",9),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))))}function Tz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"p")(2,"strong"),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"customTranslate"),n.qZA(),n._uU(6),n.qZA(),n.TgZ(7,"p",10),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA(),n.TgZ(11,"button",11),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw(3).$implicit,u=n.oxw();return n.KtG(u.requestChangeQuota(d,r))}),n._uU(12),n.ALo(13,"translate"),n.ALo(14,"customTranslate"),n.qZA()()}if(2&i){const e=n.oxw(5);n.xp6(3),n.Oqu(n.lcZ(4,4,n.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA"))),n.xp6(3),n.hij(" ",e.quotasMarkup," "),n.xp6(2),n.hij(" ",n.lcZ(9,8,n.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA_INFO"))," "),n.xp6(4),n.hij(" ",n.lcZ(13,12,n.lcZ(14,14,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.CHANGE"))," ")}}function xz(i,a){1&i&&(n.TgZ(0,"p"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))," "))}function Sz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",3),n.NdJ("opened",function(){const d=n.CHM(e).$implicit,u=n.oxw(4);return n.KtG(u.getResAttributes(d.id))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.qZA()(),n.YNc(4,Tz,15,16,"div",7),n.YNc(5,xz,4,5,"p",7),n.qZA()}if(2&i){const e=a.$implicit,t=n.oxw(4);n.xp6(3),n.hij(" ",e.name," "),n.xp6(1),n.Q6J("ngIf",t.defaultQuota),n.xp6(1),n.Q6J("ngIf",!t.defaultQuota)}}function Ez(i,a){if(1&i&&(n.TgZ(0,"mat-accordion"),n.YNc(1,Sz,6,3,"mat-expansion-panel",2),n.qZA()),2&i){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.resources)}}function Dz(i,a){if(1&i&&(n.YNc(0,Cz,1,0,"mat-spinner",5),n.YNc(1,vz,4,5,"perun-web-apps-alert",6),n.YNc(2,Ez,2,1,"mat-accordion",7)),2&i){const e=n.oxw(2);n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",0===e.resources.length&&!e.loading),n.xp6(1),n.Q6J("ngIf",e.resources.length&&!e.loading)}}function Lz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",3),n.NdJ("opened",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.getMembersResources(d))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.qZA()(),n.YNc(4,Dz,3,3,"ng-template",4),n.qZA()}if(2&i){const e=a.$implicit;n.xp6(3),n.hij(" ",e.name," ")}}let Hz=(()=>{class i{constructor(e,t,r,d,u,c,o){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=d,this.attributesManagerService=u,this.dialog=c,this.entityStorageService=o,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(e=>{this.vos=e,this.filteredVos=e})}getMembersResources(e){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{let d=r.length;d||(this.loading=!1),r.forEach(u=>{this.attributesManagerService.getResourceAttributes(u.id).subscribe(c=>{d--,c.find(o=>"defaultDataQuotas"===o.friendlyName)&&this.resources.push(u),this.loading=0!==d})})})})}getResAttributes(e){this.attributesManagerService.getResourceAttributes(e).subscribe(t=>{let r=t.find(d=>"dataQuotas"===d.friendlyName);if(r?.value){const d=Object.entries(r.value).map(u=>String(u[1]));this.currentQuota=d[0]}else this.currentQuota="";if(r=t.find(d=>"defaultDataQuotas"===d.friendlyName),r?.value){const d=Object.entries(r.value).map(u=>String(u[1]));this.defaultQuota=d[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(e,t){const r=ln();r.width="400px",r.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(Xk,r)}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}parseMarkup(){let e="";e+=this.currentQuota,e+=` (default: ${this.defaultQuota})`,e=e.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(li),n.Y36(Er),n.Y36(ia),n.Y36(jn),n.Y36(on),n.Y36(Sv))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-data-quotas"]],inputs:{user:"user"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"color-gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"perun-web-apps-immediate-filter",1),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA(),n.TgZ(7,"mat-accordion"),n.YNc(8,Lz,5,1,"mat-expansion-panel",2),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,3,n.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.TITLE")),"\n"),n.xp6(3),n.Q6J("placeholder",n.lcZ(5,7,n.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.FILTER"))),n.xp6(4),n.Q6J("ngForOf",t.filteredVos))},dependencies:[T.sg,T.O5,Hn,yi,Ht,NA,Mg,Cg,BA,wg,cf,Ke,Xt],styles:[".color-gray[_ngcontent-%COMP%]{color:gray}"]}),i})();function Rz(i,a){1&i&&n._UZ(0,"mat-spinner",8)}function Pz(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",9),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function kz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",3),n.NdJ("closed",function(){n.CHM(e);const r=n.oxw(4);return n.KtG(r.deselectResource())})("afterExpand",function(){const d=n.CHM(e).$implicit,u=n.oxw(4);return n.KtG(u.changeSelectedResource(d))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.qZA()(),n.TgZ(4,"div",10)(5,"mat-checkbox",11),n.NdJ("change",function(){n.CHM(e);const r=n.oxw(4);return n.KtG(r.setOptOut())}),n.qZA(),n.TgZ(6,"p"),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA()()()}if(2&i){const e=a.$implicit,t=n.oxw(4);n.Q6J("expanded",e.name===t.selectedResource),n.xp6(3),n.hij(" ",e.name," "),n.xp6(2),n.Q6J("checked",t.optOutAttribute&&null!==t.optOutAttribute.value),n.xp6(2),n.hij(" ",n.lcZ(8,4,n.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))," ")}}function Oz(i,a){if(1&i&&(n.TgZ(0,"mat-accordion"),n.YNc(1,kz,10,8,"mat-expansion-panel",2),n.qZA()),2&i){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.resources)}}function Iz(i,a){if(1&i&&(n.YNc(0,Rz,1,0,"mat-spinner",5),n.YNc(1,Pz,4,5,"perun-web-apps-alert",6),n.YNc(2,Oz,2,1,"mat-accordion",7)),2&i){const e=n.oxw(2);n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",0===e.resources.length&&!e.loading),n.xp6(1),n.Q6J("ngIf",e.resources.length&&!e.loading)}}function Bz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",3),n.NdJ("closed",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.deselectVo())})("afterExpand",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.changeSelectedVo(d))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.qZA()(),n.YNc(4,Iz,3,3,"ng-template",4),n.qZA()}if(2&i){const e=a.$implicit,t=n.oxw();n.Q6J("expanded",e.shortName===t.selectedVo),n.xp6(3),n.hij(" ",e.name," ")}}let Nz=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=d,this.attributesManagerService=u,this.route=c,this.router=o,this.notificator=s,this.translate=l,this.vos=[],this.resources=[],this.optOuts=[],this.filteredVos=[],this.loading=!0,this.selectedVo=null,this.selectedResource=null}ngOnDestroy(){this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:null,resource:null},replaceUrl:!0,queryParamsHandling:"merge"})}ngOnInit(){this.route.queryParams.subscribe(e=>{this.selectedVo=String(e.vo),this.selectedResource=String(e.resource),this.changeOptOut=String(e.action),this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{if(this.vos=t.sort(gv),this.filteredVos=t,void 0!==this.selectedResource){const r=this.vos.find(d=>d.shortName===this.selectedVo);r&&this.getMailingLists(r)}else if(void 0!==this.selectedVo){const r=this.vos.find(d=>d.shortName===this.selectedVo);r&&(this.getMailingLists(r),this.changeSelectedVo(r))}})}).unsubscribe()}changeSelectedResource(e){this.selectedResource!==e.name&&this.getOptOutAttribute(e),this.isService||(this.changeOptOut&&("subscribe"===this.changeOptOut?this.subscribe():"unsubscribe"===this.changeOptOut&&this.unsubscribe(),this.changeOptOut=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource,action:null},queryParamsHandling:"merge"}))}changeSelectedVo(e){this.selectedVo!==e.shortName&&(this.getMailingLists(e),this.selectedResource=null),this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}getMailingLists(e){this.selectedVo=e.shortName,this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getMailingServiceRichResourcesWithMember(t.id).subscribe(r=>{let d=r.length;d||(this.loading=!1),r.forEach(u=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,u.id).subscribe(c=>{this.attributesManagerService.getResourceAttributeByName(u.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(o=>{d--;const s=c.find(l=>"optOutMailingList"===l.friendlyName);s&&"true"!==o?.value&&(this.optOuts.push({resource:u.id,member:t.id,attribute:s}),this.resources.push(u),this.selectedResource===u.name&&(this.getOptOutAttribute(u),this.changeSelectedResource(u))),this.loading=0!==d})})})}),this.resources.sort(gv)})}getOptOutAttribute(e){this.selectedResource=e.name,this.index=this.resources.indexOf(e),this.optOutAttribute=this.optOuts[this.index].attribute}unsubscribe(){const e=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value="true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.UNSUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=e})}subscribe(){const e=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value=null,this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.SUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=e})}setOptOut(){this.optOutAttribute.value?this.subscribe():this.unsubscribe()}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}deselectVo(){this.loading=!0,this.selectedVo=null,this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}deselectResource(){this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(li),n.Y36(Er),n.Y36(ia),n.Y36(jn),n.Y36(mi),n.Y36(Dn),n.Y36(Mr),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-mailing-lists"]],inputs:{user:"user",isService:"isService"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"expanded","closed","afterExpand",4,"ngFor","ngForOf"],[3,"expanded","closed","afterExpand"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"row"],[1,"ml-3","mr-2",3,"checked","change"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"perun-web-apps-immediate-filter",1),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA(),n.TgZ(7,"mat-accordion"),n.YNc(8,Bz,5,2,"mat-expansion-panel",2),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,3,n.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.TITLE")),"\n"),n.xp6(3),n.Q6J("placeholder",n.lcZ(5,7,n.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.FILTER"))),n.xp6(4),n.Q6J("ngForOf",t.filteredVos))},dependencies:[T.sg,T.O5,ic,Hn,yi,NA,Mg,Cg,BA,wg,cf,Ke,Xt]}),i})();function Vz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-list-item",4)(1,"p",5),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.showWholeKey(d))}),n._uU(2),n.qZA(),n.TgZ(3,"button",6),n.ALo(4,"translate"),n.ALo(5,"customTranslate"),n.TgZ(6,"mat-icon"),n._uU(7," file_copy "),n.qZA()(),n.TgZ(8,"button",7),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.removeKey(d,!1))}),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.TgZ(11,"mat-icon"),n._uU(12," delete "),n.qZA()()()}if(2&i){const e=a.$implicit;n.xp6(2),n.Oqu(e),n.xp6(1),n.s9C("matTooltip",n.lcZ(4,4,n.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.COPY_TOOLTIP"))),n.Q6J("cdkCopyToClipboard",e),n.xp6(5),n.s9C("matTooltip",n.lcZ(9,8,n.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_TOOLTIP")))}}function jz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-list-item",4)(1,"label",8),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.showWholeKey(d))}),n._uU(2),n.qZA(),n.TgZ(3,"button",9)(4,"mat-icon"),n._uU(5," file_copy "),n.qZA()(),n.TgZ(6,"button",10),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.removeKey(d,!0))}),n.TgZ(7,"mat-icon"),n._uU(8," delete "),n.qZA()()()}if(2&i){const e=a.$implicit;n.xp6(2),n.Oqu(e),n.xp6(1),n.Q6J("cdkCopyToClipboard",e)}}let Fz=(()=>{class i{constructor(e,t,r,d,u){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=d,this.entityStorageService=u,this.adminKeys=[],this.userKeys=[],this.userUrn="urn:perun:user:attribute-def:def:sshPublicKey",this.adminUrn="urn:perun:user:attribute-def:def:sshPublicAdminKey",this.selection=new Yi(!1,[]),this.selectionAdmin=new Yi(!1,[]),d.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(c=>this.removeDialogDescription=c),d.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),d.get("ALERTS.NO_ALT_PASSWORDS").subscribe(c=>this.alertText=c),d.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(c=>this.headerColumnText=c)}ngOnInit(){this.userId=window.location.pathname.startsWith("/myProfile")?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(e=>this.alertText=e),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(e){const t=ln();t.width="850px",t.data={attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Zo,t).afterClosed().subscribe(d=>{d&&(e?this.getAdminSSH():this.getUserSSH())})}removeKey(e,t){const r=ln();r.width="600px",r.data={values:[e],attribute:t?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(SA,r).afterClosed().subscribe(u=>{u&&(this.loading=!0,t?(this.getAdminSSH(),this.selectionAdmin.clear()):(this.getUserSSH(),this.selection.clear()))})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(e=>{this.userKeyAttribute=e,this.userKeys=e.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(e=>{this.adminKeyAttribute=e,this.adminKeys=e.value,this.loading=!1})}showWholeKey(e){const t=ln();t.width="600px",t.data={value:e},this.dialog.open(oO,t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(jn),n.Y36(on),n.Y36(tn),n.Y36(Sv))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:28,vars:32,consts:[[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["class","dark-hover-list-item w-auto","matRipple","",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item","w-auto"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ml-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ml-2","center-content",3,"matTooltip","click"],[1,"truncate","center-content",3,"click"],["mat-icon-button","","color","accent",1,"ml-auto","center-content",3,"cdkCopyToClipboard"],["mat-icon-button","","color","warn",1,"ml-2","center-content",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"p"),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.TgZ(8,"button",1),n.NdJ("click",function(){return t.addKey(!1)}),n._uU(9),n.ALo(10,"translate"),n.ALo(11,"customTranslate"),n.qZA(),n.TgZ(12,"mat-list"),n.YNc(13,Vz,13,12,"mat-list-item",2),n.qZA(),n.TgZ(14,"h1",3),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA(),n.TgZ(18,"p"),n._uU(19),n.ALo(20,"translate"),n.ALo(21,"customTranslate"),n.qZA(),n.TgZ(22,"button",1),n.NdJ("click",function(){return t.addKey(!0)}),n._uU(23),n.ALo(24,"translate"),n.ALo(25,"customTranslate"),n.qZA(),n.TgZ(26,"mat-list"),n.YNc(27,jz,9,2,"mat-list-item",2),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,8,n.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_TITLE")),"\n"),n.xp6(4),n.Oqu(n.lcZ(6,12,n.lcZ(7,14,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_DESCRIPTION"))),n.xp6(4),n.hij(" ",n.lcZ(10,16,n.lcZ(11,18,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),n.xp6(4),n.Q6J("ngForOf",t.userKeys),n.xp6(2),n.hij(" ",n.lcZ(16,20,n.lcZ(17,22,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.ADMIN_SSH_KEYS_TITLE")),"\n"),n.xp6(4),n.hij(" ",n.lcZ(20,24,n.lcZ(21,26,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION")),"\n"),n.xp6(4),n.hij(" ",n.lcZ(24,28,n.lcZ(25,30,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),n.xp6(4),n.Q6J("ngForOf",t.adminKeys))},dependencies:[T.sg,zn,Ht,yr,Jr,Jv,tT,DA,Ke,Xt],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}label[_ngcontent-%COMP%]:hover, .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function uU(i,a){1&i&&n._UZ(0,"mat-spinner",5)}function hU(i,a){1&i&&n._UZ(0,"mat-spinner",5)}function pU(i,a){if(1&i&&n._UZ(0,"perun-web-apps-attributes-list",10),2&i){const e=n.oxw(3);n.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function fU(i,a){if(1&i&&(n.YNc(0,hU,1,0,"mat-spinner",3),n.YNc(1,pU,1,3,"perun-web-apps-attributes-list",9)),2&i){const e=n.oxw(2);n.Q6J("ngIf",e.innerLoading),n.xp6(1),n.Q6J("ngIf",!e.innerLoading)}}function mU(i,a){1&i&&n._UZ(0,"mat-spinner",5)}function gU(i,a){if(1&i&&n._UZ(0,"perun-web-apps-attributes-list",10),2&i){const e=n.oxw(4);n.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function _U(i,a){if(1&i&&(n.YNc(0,mU,1,0,"mat-spinner",3),n.YNc(1,gU,1,3,"perun-web-apps-attributes-list",9)),2&i){const e=n.oxw(3);n.Q6J("ngIf",e.innerLoading),n.xp6(1),n.Q6J("ngIf",!e.innerLoading)}}function bU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",6),n.NdJ("opened",function(){const d=n.CHM(e).$implicit,u=n.oxw(2);return n.KtG(u.getMemberData(d))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"customTranslate"),n.qZA()(),n.YNc(6,_U,2,2,"ng-template",7),n.qZA()}if(2&i){const e=a.$implicit;n.xp6(3),n.AsE(" ",n.lcZ(4,2,n.lcZ(5,4,"PRIVACY.DATA")),"",e.name," ")}}function AU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",6),n.NdJ("opened",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.getUserData())}),n.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA()(),n.YNc(7,fU,2,2,"ng-template",7),n.qZA(),n.YNc(8,bU,7,6,"mat-expansion-panel",8),n.qZA()}if(2&i){const e=n.oxw();n.xp6(4),n.hij(" ",n.lcZ(5,2,n.lcZ(6,4,"PRIVACY.USER_INFO"))," "),n.xp6(4),n.Q6J("ngForOf",e.filteredVos)}}new Date(324721404e5).valueOf();let yU=(()=>{class i{constructor(e,t,r,d){this.usersManagerService=e,this.membersService=t,this.attributesManagerService=r,this.storage=d,this.vos=[],this.attributes=[],this.username="",this.hiddenColumns=["select","id"],this.filteredVos=[]}ngOnInit(){this.outerLoading=!0,this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=e,this.outerLoading=!1})}getUserData(){this.innerLoading=!0,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(e=>{this.user=e,this.attributes=e.userAttributes,this.username=(new mA).transform(e),this.innerLoading=!1})}getMemberData(e){this.innerLoading=!0,this.membersService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.membersService.getRichMemberWithAttributes(t.id).subscribe(r=>{this.attributes=r.memberAttributes,this.innerLoading=!1})})}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Er),n.Y36(jn),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-privacy-page"]],decls:10,vars:12,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"opened"],["matExpansionPanelContent",""],[3,"opened",4,"ngFor","ngForOf"],[3,"attributes","readonly","hiddenColumns",4,"ngIf"],[3,"attributes","readonly","hiddenColumns"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.YNc(8,uU,1,0,"mat-spinner",3),n.YNc(9,AU,9,6,"mat-accordion",4),n.qZA()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,4,n.lcZ(3,6,"PRIVACY.TITLE"))),n.xp6(4),n.Q6J("placeholder",n.lcZ(6,8,n.lcZ(7,10,"SERVICES.FILTER"))),n.xp6(3),n.Q6J("ngIf",t.outerLoading),n.xp6(1),n.Q6J("ngIf",!t.outerLoading))},dependencies:[T.sg,T.O5,cf,zF,NA,Mg,Cg,BA,wg,Hn,Ke,Xt]}),i})(),wU=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-home-page"]],decls:1,vars:0,template:function(e,t){1&e&&n._UZ(0,"router-outlet")},dependencies:[Wr]}),i})();function MU(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",11),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.INFO"))))}function CU(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",12),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.IMG_TOO_LONG"))))}function vU(i,a){if(1&i&&(n.TgZ(0,"div",13),n._UZ(1,"img",14),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("src",e.newImage,n.LSH)}}function TU(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",11),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.DELAY_INFO"))))}let SU=(()=>{class i{constructor(e,t,r,d){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.store=d,this.newImage=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.newImage=this.attribute.value}handleInputChange(e){const t=e.dataTransfer?.files[0]??e.target?.files[0],d=new FileReader;t.type.match(/image-*/)?(d.onload=this._handleReaderLoaded.bind(this),this.imageType=t.type,d.readAsDataURL(t)):alert("invalid format")}_handleReaderLoaded(e){const t=e.target;let r=100;const d=()=>{u(t.result).then(c=>{r>50&&c.length>6144?(r-=10,d()):(this.newImage=c,this.imgTooLong=this.newImage.length>=6144)}).catch(c=>console.error(c))},u=c=>new Promise((o,s)=>{const l=new Image;l.src=c,l.onload=()=>{const h=document.createElement("canvas");let p=l.width,m=l.height;p>m?p>r&&(m*=r/p,p=r):m>r&&(p*=r/m,m=r),h.width=p,h.height=m;const g=h.getContext("2d");g.drawImage(l,0,0,p,m);const f=g.canvas.toDataURL();o(f)},l.onerror=h=>s(h)});d()}onAdd(){this.attribute.value=this.newImage,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe(()=>{this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}generateImg(){function s(p,m,g,f){f.beginPath(),f.rect(20*p,20*m,20,20),f.fillStyle="rgb("+g.join(",")+")",f.fill()}this.newImage=function h(){const p=function o(){const p=document.createElement("canvas");p.width=100,p.height=100;const m=p.getContext("2d");return m.beginPath(),m.rect(0,0,100,100),m.fillStyle="#FFFFFF",m.fill(),p}(),m=p.getContext("2d"),g=function l(){const p=[];for(let m=0;m<3;m++){const g=Math.floor(256*Math.random()),f=Math.max(120,g),w=Math.min(200,f);p.push(w)}return p}();for(let f=0;f{class i{constructor(e,t,r,d){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.store=d,this.securityText=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.attribute.value&&(this.securityText=String(this.attribute.value))}onAdd(){this.attribute.value=this.securityText,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe(()=>{this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(jn),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-auth-text-dialog"]],decls:18,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"w-100"],["matInput","","autofocus","",3,"ngModel","ngModelChange"],["alert_type","info"],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"input",3),n.NdJ("ngModelChange",function(d){return t.securityText=d}),n.qZA()(),n.TgZ(7,"perun-web-apps-alert",4),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA()(),n.TgZ(11,"div",5)(12,"button",6),n.NdJ("click",function(){return t.onCancel()}),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"button",7),n.NdJ("click",function(){return t.onAdd()}),n._uU(16),n.ALo(17,"translate"),n.qZA()()()),2&e&&(n.Tol(t.theme),n.xp6(2),n.Oqu(n.lcZ(3,9,"DIALOGS.ADD_AUTH_TEXT.TITLE")),n.xp6(4),n.Q6J("ngModel",t.securityText),n.xp6(2),n.hij(" ",n.lcZ(9,11,n.lcZ(10,13,"DIALOGS.ADD_AUTH_TEXT.DELAY_INFO"))," "),n.xp6(5),n.hij(" ",n.lcZ(14,15,"DIALOGS.ADD_AUTH_TEXT.CANCEL")," "),n.xp6(2),n.Q6J("disabled",""===t.securityText.trim()),n.xp6(1),n.hij(" ",n.lcZ(17,17,"DIALOGS.ADD_AUTH_TEXT.ADD")," "))},dependencies:[Ht,yi,di,Xn,ii,Un,ji,_i,Ai,ua,Ke,Xt]}),i})(),DU=(()=>{class i{constructor(e){this.translate=e}transform(e){return this.translate.currentLang in e?e[this.translate.currentLang]:this.translate.defaultLang in e?e[this.translate.defaultLang]:e[Object.keys(e)[0]]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tn,16))},i.\u0275pipe=n.Yjl({name:"categoryLabel",type:i,pure:!0}),i})();const LU=["toggle"];function HU(i,a){1&i&&n._UZ(0,"mat-spinner",8)}function RU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"mat-slide-toggle",13),n.NdJ("toggleChange",function(){const d=n.CHM(e).$implicit,u=n.oxw(2).$implicit,c=n.oxw(2);return n.KtG(c.toggleRps(u,d.key))}),n._uU(2),n.ALo(3,"categoryLabel"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw(2).$implicit;n.xp6(1),n.Q6J("checked",null==t?null:t.value.rps_value[e.key]),n.xp6(1),n.hij(" ",n.lcZ(3,2,e.value)," ")}}function PU(i,a){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,RU,4,4,"div",9),n.ALo(2,"keyvalue"),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngForOf",n.lcZ(2,1,null==e?null:e.value.rps))}}function kU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"span",10)(2,"mat-slide-toggle",11),n.NdJ("toggleChange",function(){const d=n.CHM(e).$implicit,u=n.oxw(2);return n.KtG(u.toggleCategory(d.value))}),n._uU(3),n.ALo(4,"categoryLabel"),n.qZA(),n.TgZ(5,"button",12),n.NdJ("click",function(){const d=n.CHM(e).$implicit;return n.KtG(d.value.show=!d.value.show)}),n.TgZ(6,"mat-icon"),n._uU(7),n.qZA()()(),n.YNc(8,PU,3,3,"div",7),n.qZA()}if(2&i){const e=a.$implicit;n.xp6(2),n.Q6J("checked",e.value.value),n.xp6(1),n.hij(" ",n.lcZ(4,4,e.value.label)," "),n.xp6(4),n.hij(" ",e.value.show?"keyboard_arrow_up":"keyboard_arrow_down"," "),n.xp6(1),n.Q6J("ngIf",e.value.show)}}function OU(i,a){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,kU,9,6,"div",9),n.ALo(2,"keyvalue"),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngForOf",n.lcZ(2,1,e.categories))}}function IU(i,a){1&i&&n._UZ(0,"mat-spinner",8)}let BU=(()=>{class i{constructor(e,t,r,d,u,c,o){this.translate=e,this.attributesManagerService=t,this.store=r,this.oauthService=d,this.authService=u,this.httpClient=c,this.mfaApiService=o,this.mfaAvailable=!1,this.loadingMfa=!1,this.showDetail=!1,this.loadingCategories=!1,this.includeCategories=[],this.excludeRps=[],this.allCategories=!1,this.unchangedSettings=!0,this.unchangedEnforce=!0,this.categories={}}ngOnInit(){this.loadingMfa=!0,this.enableDetailSettings=this.store.getProperty("mfa").enable_detail_settings,this.mfaApiService.isMfaAvailable().subscribe({next:e=>{this.mfaAvailable=e,e?this.loadMfa():this.loadingMfa=!1},error:e=>{console.error(e),this.loadingMfa=!1}})}loadMfa(){if(sessionStorage.getItem("mfa_route")){const t=sessionStorage.getItem("enforce_mfa");t&&this.changeEnforceMfa("true"===t),sessionStorage.getItem("settings_mfa")&&this.updateDetailSettings()}else{const t=this.store.getProperty("mfa").enforce_mfa_attribute;this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe({next:r=>{r.value?(this.enforceMfa=!0,this.toggle.toggle()):this.enforceMfa=!1,this.loadingMfa=!1},error:r=>{console.error(r),this.loadingMfa=!1}})}}getCategoriesAndSettings(){this.loadingCategories=!0,this.mfaApiService.getCategories().subscribe({next:e=>{this.categories=e,this.getSettings()},error:e=>{console.error(e),this.loadingCategories=!1}})}getSettings(){this.unchangedEnforce?this.mfaApiService.getSettings().subscribe({next:e=>{0!==e.length&&(e.all?this.allCategories=!0:(this.includeCategories=e.include_categories?e.include_categories:[],this.excludeRps=e.exclude_rps?e.exclude_rps:[])),this.setValuesFromSetting(),this.showDetail=!this.showDetail,this.loadingCategories=!1},error:e=>{console.error(e),this.loadingCategories=!1}}):(this.includeCategories=[],this.allCategories=this.toggle.checked,this.setValuesFromSetting(),this.showDetail=!this.showDetail,this.loadingCategories=!1)}setValuesFromSetting(){if(0===this.includeCategories.length){const e=this.allCategories;for(const t in this.categories){this.categories[t].value=e,this.categories[t].show=!1,this.categories[t].rps_value={};for(const r in this.categories[t].rps)this.categories[t].rps_value[r]=e}}else for(const e in this.categories){this.categories[e].value=this.includeCategories.includes(e),this.categories[e].show=!1,this.categories[e].rps_value={};for(const t in this.categories[e].rps)this.categories[e].rps_value[t]=!!this.categories[e].value&&!this.excludeRps.includes(t)}}showDetailSettings(){this.showDetail||0!==Object.keys(this.categories).length?this.showDetail=!this.showDetail:this.getCategoriesAndSettings()}toggleEnableMfa(){this.unchangedEnforce=!1,this.includeCategories=[],this.allCategories=!this.toggle.checked,this.setValuesFromSetting()}toggleCategory(e,t=!1){if(this.unchangedSettings=!1,this.checkAllCategoriesSelected()&&this.toggle.checked&&!t&&this.toggle.toggle(),e.value=!e.value,!t)for(const r in e.rps_value)e.rps_value[r]=e.value;this.checkAllCategoriesSelected()&&!this.toggle.checked&&!t&&this.toggle.toggle()}checkAllCategoriesSelected(){let e=!0;for(const t in this.categories)this.categories[t].value||(e=!1);return e}toggleRps(e,t){t=String(t),this.unchangedSettings=!1,this.checkAllRpsDeselectedForCategory(String(e.key))&&this.toggleCategory(e.value,!0),this.checkAllRpsSelected()&&this.toggle.toggle(),e.value.rps_value[t]=!e.value.rps_value[t],this.checkAllRpsDeselectedForCategory(String(e.key))&&this.toggleCategory(e.value,!0),this.checkAllRpsSelected()&&this.toggle.toggle()}checkAllRpsDeselectedForCategory(e){let t=!0;for(const r in this.categories[e].rps)this.categories[e].rps_value[r]&&(t=!1);return t}checkAllRpsSelected(){let e=!0;for(const t in this.categories){if(!this.categories[t].value)return!1;for(const r in this.categories[t].rps)this.categories[t].rps_value[r]||(e=!1)}return e}saveSettings(e=!1){this.oauthService.getIdTokenExpiration()-(0,CD.now)()>0&&!e?(this.enforceMfa!==this.toggle.checked&&(this.loadingMfa=!0,this.changeEnforceMfa(this.toggle.checked)),this.unchangedSettings||(this.loadingMfa=!0,this.saveDetailSettings(),this.updateDetailSettings())):(this.saveEnforceMfa(),this.unchangedSettings||this.saveDetailSettings(),this.reAuthenticate())}saveEnforceMfa(){this.enforceMfa!==this.toggle.checked&&sessionStorage.setItem("enforce_mfa",this.toggle.checked.toString())}saveDetailSettings(){let r,e=!0,t=!1;this.includeCategories=[],this.excludeRps=[];for(const d in this.categories)if(this.categories[d].value){t=!0,this.includeCategories.push(d);for(const u in this.categories[d].rps)this.categories[d].rps_value[u]?t=!0:(e=!1,this.excludeRps.push(u))}else e=!1;r=e===t?e?JSON.stringify({all:!0}):"{}":JSON.stringify({include_categories:this.includeCategories,exclude_rps:this.excludeRps}),sessionStorage.setItem("settings_mfa",r)}reAuthenticate(){sessionStorage.setItem("mfa_route","/profile/settings/auth"),this.oauthService.logOut(!0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.loadOidcConfigData(),this.oauthService.loadDiscoveryDocumentAndLogin()}changeEnforceMfa(e){this.mfaApiService.enforceMfaForAllServices(e).subscribe({next:()=>{e?(this.enforceMfa=!0,this.toggle.checked||this.toggle.toggle()):this.enforceMfa=!1,this.unchangedSettings=!0,this.unchangedEnforce=!0,sessionStorage.removeItem("enforce_mfa"),sessionStorage.removeItem("mfa_route"),this.loadingMfa=!1},error:t=>{"MFA is required"===t.error.error?this.saveSettings(!0):this.loadingMfa=!1}})}updateDetailSettings(){const e=sessionStorage.getItem("settings_mfa");this.mfaApiService.updateDetailSettings(e).subscribe({next:()=>{this.unchangedSettings=!0,this.unchangedEnforce=!0,sessionStorage.removeItem("settings_mfa"),sessionStorage.removeItem("mfa_route"),this.loadingMfa=!1},error:t=>{"MFA is required"===t.error.error?this.saveSettings(!0):this.loadingMfa=!1}})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tn),n.Y36(jn),n.Y36(Ut),n.Y36(Jl.Ct),n.Y36(Ql),n.Y36(C.eN),n.Y36(H2))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-mfa-settings"]],viewQuery:function(e,t){if(1&e&&n.Gf(LU,5),2&e){let r;n.iGM(r=n.CRH())&&(t.toggle=r.first)}},decls:18,vars:23,consts:[["class","ml-auto mr-auto mt-2",4,"ngIf"],[3,"hidden"],["matTooltipPosition","right",1,"toggle-and-button",3,"matTooltip","matTooltipDisabled"],[1,"toggle-ellipsis",3,"disabled","toggleChange"],["toggle",""],["mat-icon-button","",1,"show-button",3,"hidden","disabled","click"],["mat-flat-button","","color","accent",1,"ml-3",3,"disabled","click"],[4,"ngIf"],[1,"ml-auto","mr-auto","mt-2"],[4,"ngFor","ngForOf"],[1,"toggle-and-button"],[1,"ml-4","toggle-ellipsis",3,"checked","toggleChange"],["mat-icon-button","",1,"show-button",3,"click"],[1,"ml-5",3,"checked","toggleChange"]],template:function(e,t){1&e&&(n.YNc(0,HU,1,0,"mat-spinner",0),n.TgZ(1,"div",1)(2,"span",2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.TgZ(5,"mat-slide-toggle",3,4),n.NdJ("toggleChange",function(){return t.toggleEnableMfa()}),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.TgZ(10,"button",5),n.NdJ("click",function(){return t.showDetailSettings()}),n.TgZ(11,"mat-icon"),n._uU(12),n.qZA()()()(),n.TgZ(13,"button",6),n.NdJ("click",function(){return t.saveSettings()}),n._uU(14),n.ALo(15,"translate"),n.qZA(),n.YNc(16,OU,3,3,"div",7),n.YNc(17,IU,1,0,"mat-spinner",0),n.qZA()),2&e&&(n.Q6J("ngIf",t.loadingMfa),n.xp6(1),n.Q6J("hidden",t.loadingMfa),n.xp6(1),n.Q6J("matTooltip",n.lcZ(3,13,n.lcZ(4,15,"AUTHENTICATION.MFA_DISABLED")))("matTooltipDisabled",t.mfaAvailable),n.xp6(3),n.Q6J("disabled",!t.mfaAvailable),n.xp6(2),n.hij("",n.lcZ(8,17,n.lcZ(9,19,"AUTHENTICATION.MFA_TOGGLE"))," "),n.xp6(3),n.Q6J("hidden",!t.enableDetailSettings)("disabled",!t.mfaAvailable),n.xp6(2),n.Oqu(t.showDetail?"keyboard_arrow_up":"keyboard_arrow_down"),n.xp6(1),n.Q6J("disabled",t.unchangedSettings&&t.unchangedEnforce),n.xp6(1),n.hij(" ",n.lcZ(15,21,"AUTHENTICATION.MFA_SAVE")," "),n.xp6(2),n.Q6J("ngIf",t.showDetail),n.xp6(1),n.Q6J("ngIf",t.loadingCategories))},dependencies:[T.sg,T.O5,zn,Ht,Hn,yr,CL,T.Nd,Ke,Xt,DU],styles:[".toggle-and-button[_ngcontent-%COMP%]{display:inline-flex;max-width:100%}.toggle-ellipsis[_ngcontent-%COMP%]{height:40px;display:inline-block;vertical-align:middle;overflow:hidden}.show-button[_ngcontent-%COMP%]{white-space:nowrap}"]}),i})();const NU=["toggle"];function VU(i,a){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"img",9),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("src",e.imageSrc,n.LSH)}}function jU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",5)(1,"h1",2),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"p"),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n.YNc(9,VU,2,1,"div",6),n.TgZ(10,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onAddAttribute(r.imgAtt,r.imgAttrName,"AddAuthImgDialogComponent","IMG"))}),n._uU(11),n.ALo(12,"translate"),n.ALo(13,"customTranslate"),n.qZA(),n.TgZ(14,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onDeleteAttribute(r.imgAtt,r.imgAttrName,"IMG"))}),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,6,n.lcZ(4,8,"AUTHENTICATION.TITLE"))),n.xp6(4),n.Oqu(n.lcZ(7,10,n.lcZ(8,12,"AUTHENTICATION.ANTI_PHISHING_INFO"))),n.xp6(3),n.Q6J("ngIf",e.imageSrc&&e.imageSrc.length),n.xp6(2),n.hij(" ",n.lcZ(12,14,n.lcZ(13,16,"AUTHENTICATION.NEW_IMG"))," "),n.xp6(3),n.Q6J("disabled",!e.imgAtt||!e.imgAtt.value),n.xp6(1),n.hij(" ",n.lcZ(16,18,n.lcZ(17,20,"AUTHENTICATION.DELETE_IMG"))," ")}}function FU(i,a){if(1&i&&(n.TgZ(0,"h4",11),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.textAtt.value)}}function zU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",5)(1,"h1",2),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"p"),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n.YNc(9,FU,2,1,"h4",10),n.TgZ(10,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onAddAttribute(r.textAtt,r.textAttrName,"AddAuthTextDialogComponent","TEXT"))}),n._uU(11),n.ALo(12,"translate"),n.ALo(13,"customTranslate"),n.qZA(),n.TgZ(14,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onDeleteAttribute(r.textAtt,r.textAttrName,"TEXT"))}),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,6,n.lcZ(4,8,"AUTHENTICATION.TITLE_TEXT"))),n.xp6(4),n.Oqu(n.lcZ(7,10,n.lcZ(8,12,"AUTHENTICATION.ANTI_PHISHING_INFO_TEXT"))),n.xp6(3),n.Q6J("ngIf",e.textAtt),n.xp6(2),n.hij(" ",n.lcZ(12,14,n.lcZ(13,16,"AUTHENTICATION.NEW_TEXT"))," "),n.xp6(3),n.Q6J("disabled",!e.textAtt||!e.textAtt.value),n.xp6(1),n.hij(" ",n.lcZ(16,18,n.lcZ(17,20,"AUTHENTICATION.DELETE_TEXT"))," ")}}function UU(i,a){1&i&&n._UZ(0,"mat-spinner",12)}let qU=(()=>{class i{constructor(e,t,r,d,u){this.dialog=e,this.attributesManagerService=t,this.store=r,this.translate=d,this.notificatorService=u,this.imageSrc="",this.mfaUrl="",this.loading=!1}ngOnInit(){const e=this.store.getProperty("mfa");this.imgAttrName=this.store.getProperty("mfa").security_image_attribute,this.textAttrName=this.store.getProperty("mfa").security_text_attribute,this.componentMapper={AddAuthImgDialogComponent:SU,AddAuthTextDialogComponent:EU},this.translate.onLangChange.subscribe(()=>{this.mfaUrl="en"===this.translate.currentLang?e.url_en:e.url_cs}),this.mfaUrl="en"===this.translate.currentLang?e.url_en:e.url_cs,this.displayImageBlock=this.store.getProperty("mfa").enable_security_image,this.displayImageBlock&&this.loadSecurityAttribute(this.imgAttrName,!0).subscribe(t=>{this.imgAtt=t}),this.displayTextBlock=this.store.getProperty("mfa").enable_security_text,this.displayTextBlock&&this.loadSecurityAttribute(this.textAttrName).subscribe(t=>{this.textAtt=t})}loadSecurityAttribute(e,t=!1){this.loading=!0;const r=new Le.x;return this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,e).subscribe({next:d=>{d?(t&&(this.imageSrc=d.value),r.next(d)):this.attributesManagerService.getAttributeDefinitionByName(e).subscribe(u=>{r.next(u)}),this.loading=!1},error:d=>{console.error(d),this.loading=!1}}),r.asObservable()}onAddAttribute(e,t,r,d){const u=ln();u.width="500px",u.data={theme:"user-theme",attribute:e},this.dialog.open(this.componentMapper[r],u).afterClosed().subscribe(o=>{o&&(this.notificatorService.showSuccess(this.translate.instant(`AUTHENTICATION.SAVE_${d}_SUCCESS`)),this.loadSecurityAttribute(t,"IMG"===d).subscribe(s=>{e=s}))})}onDeleteAttribute(e,t,r){const d=ln();d.width="600px";const u=this.translate.instant(`AUTHENTICATION.DELETE_${r}_DIALOG_TITLE`),c=this.translate.instant(`AUTHENTICATION.DELETE_${r}_DIALOG_DESC`);d.data={doNotShowValues:!0,attribute:e,userId:this.store.getPerunPrincipal().userId,title:u,description:c},this.dialog.open(SA,d).afterClosed().subscribe(s=>{s&&(this.notificatorService.showSuccess(this.translate.instant(`AUTHENTICATION.REMOVE_${r}_SUCCESS`)),this.loadSecurityAttribute(t,"IMG"===r).subscribe(l=>{e=l}))})}redirectToMfa(){window.open(this.mfaUrl,"_blank")}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on),n.Y36(jn),n.Y36(Ut),n.Y36(Dd),n.Y36(Mr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-authentication"]],viewQuery:function(e,t){if(1&e&&n.Gf(NU,5),2&e){let r;n.iGM(r=n.CRH())&&(t.toggle=r.first)}},decls:13,vars:12,consts:[[3,"hidden"],["class","mb-5",4,"ngIf"],[1,"page-subtitle"],["mat-flat-button","","color","accent",1,"mb-2",3,"click"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mb-5"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-1","action-button",3,"click"],["color","warn","mat-flat-button","",3,"disabled","click"],["alt","",3,"src"],["class","security-text",4,"ngIf"],[1,"security-text"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,jU,18,22,"div",1),n.YNc(2,zU,18,22,"div",1),n.TgZ(3,"h1",2),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA(),n.TgZ(7,"button",3),n.NdJ("click",function(){return t.redirectToMfa()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n._UZ(10,"br")(11,"perun-web-apps-mfa-settings"),n.qZA(),n.YNc(12,UU,1,0,"mat-spinner",4)),2&e&&(n.Q6J("hidden",t.loading),n.xp6(1),n.Q6J("ngIf",t.displayImageBlock),n.xp6(1),n.Q6J("ngIf",t.displayTextBlock),n.xp6(2),n.Oqu(n.lcZ(5,6,n.lcZ(6,8,"AUTHENTICATION.MFA"))),n.xp6(4),n.hij(" ",n.lcZ(9,10,"AUTHENTICATION.MFA_INFO")," "),n.xp6(4),n.Q6J("ngIf",t.loading))},dependencies:[T.O5,Ht,Hn,BU,Ke,Xt],styles:[".security-text[_ngcontent-%COMP%]{font-family:FreeMono,monospace;color:gray}"]}),i})(),YU=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,Ka,eo,Tl,TL,po,Gs,Xs,Kp,gA]}),i})(),WU=(()=>{class i{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ql),n.Y36(Dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"button",4),n.NdJ("click",function(){return t.startAuth()}),n._uU(7),n.ALo(8,"translate"),n.TgZ(9,"mat-icon"),n._uU(10," login "),n.qZA()()()()()),2&e&&(n.xp6(4),n.hij(" ",n.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),n.xp6(3),n.hij(" ",n.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Ht,zn,Ke],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),i})();function GU(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",8),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let $U=(()=>{class i{constructor(e,t,r){this.authzService=e,this.auth=t,this.router=r,this.usernameCtrl=new zo(null,[bi.required]),this.passwordCtrl=new zo(null,[bi.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(As),n.Y36(Ql),n.Y36(Dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl","keyup.enter"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,GU,3,3,"perun-web-apps-alert",3),n.TgZ(7,"mat-form-field",4)(8,"mat-label"),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"input",5),n.NdJ("keyup.enter",function(){return t.startAuth()}),n.qZA(),n.TgZ(12,"mat-error"),n._uU(13),n.ALo(14,"translate"),n.qZA()(),n.TgZ(15,"mat-form-field",4)(16,"mat-label"),n._uU(17),n.ALo(18,"translate"),n.qZA(),n.TgZ(19,"input",6),n.NdJ("keyup.enter",function(){return t.startAuth()}),n.qZA(),n.TgZ(20,"mat-error"),n._uU(21),n.ALo(22,"translate"),n.qZA()(),n.TgZ(23,"button",7),n.NdJ("click",function(){return t.startAuth()}),n._uU(24),n.ALo(25,"translate"),n.TgZ(26,"mat-icon"),n._uU(27," login "),n.qZA()()()()()),2&e&&(n.xp6(4),n.Oqu(n.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),n.xp6(2),n.Q6J("ngIf",t.wrongUsernameOrPassword),n.xp6(3),n.Oqu(n.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),n.xp6(2),n.Q6J("formControl",t.usernameCtrl),n.xp6(2),n.hij(" ",n.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),n.xp6(4),n.Oqu(n.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),n.xp6(2),n.Q6J("formControl",t.passwordCtrl)("type","password"),n.xp6(2),n.hij(" ",n.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),n.xp6(2),n.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),n.xp6(1),n.hij(" ",n.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[T.O5,Ht,zn,Na,di,as,_i,Ai,Nr,sr,ji,yi,Ke],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),i})(),ZU=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-consents-page"]],decls:1,vars:0,template:function(e,t){1&e&&n._UZ(0,"router-outlet")},dependencies:[Wr]}),i})();function JU(i,a){1&i&&n._UZ(0,"mat-spinner",4)}function QU(i,a){if(1&i&&(n.TgZ(0,"li"),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.displayName," ")}}function XU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"h1",5),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"div",6),n._uU(6),n.qZA(),n.TgZ(7,"div"),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.TgZ(11,"ul"),n.YNc(12,QU,2,1,"li",7),n.qZA()(),n.TgZ(13,"div",0)(14,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.rejectConsent())}),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA(),n.TgZ(18,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.grantConsent())}),n._uU(19),n.ALo(20,"translate"),n.ALo(21,"customTranslate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,6,n.lcZ(4,8,"CONSENTS.REQUEST.TITLE"))," "),n.xp6(4),n.Oqu(e.consent.consentHub.name),n.xp6(2),n.hij(" ",n.lcZ(9,10,n.lcZ(10,12,"CONSENTS.REQUEST.CONSENT_TEXT_UNSIGNED")),": "),n.xp6(4),n.Q6J("ngForOf",e.consent.attributes),n.xp6(3),n.hij(" ",n.lcZ(16,14,n.lcZ(17,16,"CONSENTS.REQUEST.REJECT_CONSENT_BUTTON"))," "),n.xp6(4),n.hij(" ",n.lcZ(20,18,n.lcZ(21,20,"CONSENTS.REQUEST.GRANT_CONSENT_BUTTON"))," ")}}let KU=(()=>{class i{constructor(e,t,r,d,u,c){this.notificator=e,this.translate=t,this.consentService=r,this.route=d,this.apiRequest=u,this.router=c,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const t=Number(e.consentId);this.apiRequest.dontHandleErrorForNext(),this.consentService.getConsentById(t).subscribe({next:r=>{this.consent=r,"UNSIGNED"!==this.consent.status&&this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"}),this.loading=!1},error:r=>{this.loading=!1,"ConsentNotExistsException"!==r.name&&this.notificator.showRPCError(r),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})}})})}grantConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"GRANTED").subscribe(()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},()=>this.loading=!1)}rejectConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"REVOKED").subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_REJECTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Mr),n.Y36(tn),n.Y36(ys),n.Y36(mi),n.Y36(cg),n.Y36(Dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-consent-request"]],decls:4,vars:2,consts:[[1,"d-flex"],[1,"card","p-4","mat-elevation-z3","ml-auto","mr-auto"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],[1,"page-subtitle"],[4,"ngFor","ngForOf"],["mat-flat-button","","color","warn",1,"mr-2","ml-auto",3,"click"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,JU,1,0,"mat-spinner",2),n.YNc(3,XU,22,22,"div",3),n.qZA()()),2&e&&(n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.sg,T.O5,Ht,Hn,Ke,Xt],styles:[".minimize-checkbox{font-size:.7rem;color:gray}\n"],encapsulation:2}),i})();function eq(i,a){1&i&&(n.TgZ(0,"span")(1,"mat-icon",1),n._uU(2,"priority_high"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,n.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function tq(i,a){1&i&&(n.TgZ(0,"span")(1,"mat-icon",1),n._uU(2,"close"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,n.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function nq(i,a){1&i&&(n.TgZ(0,"span")(1,"mat-icon",2),n._uU(2,"check"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,n.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let iq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-consent-status"]],inputs:{consentStatus:"consentStatus"},decls:3,vars:3,consts:[[4,"ngIf"],["color","warn"],["color","accent"]],template:function(e,t){1&e&&(n.YNc(0,eq,7,5,"span",0),n.YNc(1,tq,7,5,"span",0),n.YNc(2,nq,7,5,"span",0)),2&e&&(n.Q6J("ngIf","UNSIGNED"===t.consentStatus),n.xp6(1),n.Q6J("ngIf","REVOKED"===t.consentStatus),n.xp6(1),n.Q6J("ngIf","GRANTED"===t.consentStatus))},dependencies:[T.O5,zn,Ke,Xt],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),i})();function rq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"th",16)(1,"mat-checkbox",17),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(r?d.masterToggle():null)}),n.qZA()()}if(2&i){const e=n.oxw().ngIf,t=n.oxw();n.xp6(1),n.Q6J("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function aq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",18)(1,"mat-checkbox",19),n.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.selection.toggle(u):null)}),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("checked",t.selection.isSelected(e))}}function sq(i,a){1&i&&(n.ynx(0,13),n.YNc(1,rq,2,2,"th",14),n.YNc(2,aq,2,1,"td",15),n.BQk())}function oq(i,a){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.STATUS"))," "))}function lq(i,a){if(1&i&&(n.TgZ(0,"td",21),n._UZ(1,"perun-web-apps-consent-status",22),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Q6J("consentStatus",e.status)}}function cq(i,a){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.SERVICE_NAME"))," "))}function dq(i,a){if(1&i&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.consentHub.name," ")}}function uq(i,a){1&i&&(n.TgZ(0,"div"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANTED_TEXT"))," : "))}function hq(i,a){1&i&&(n.TgZ(0,"div"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKED_TEXT"))," : "))}function pq(i,a){1&i&&(n.TgZ(0,"div"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.UNSIGNED_TEXT"))," : "))}function fq(i,a){if(1&i&&(n.TgZ(0,"li"),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.displayName," ")}}function mq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",30),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.rejectConsent.emit(r.id))}),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()}if(2&i){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"UNSIGNED"===e.status?"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REJECT_CONSENT_BUTTON":"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKE_CONSENT_BUTTON"))," ")}}function gq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",31),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.grantConsent.emit(r.id))}),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANT_CONSENT_BUTTON"))," "))}function _q(i,a){if(1&i&&(n.TgZ(0,"td",21)(1,"div",23)(2,"div",24),n.YNc(3,uq,4,5,"div",25),n.YNc(4,hq,4,5,"div",25),n.YNc(5,pq,4,5,"div",25),n.TgZ(6,"ul"),n.YNc(7,fq,2,1,"li",26),n.qZA(),n.TgZ(8,"div",27),n.YNc(9,mq,4,5,"button",28),n.YNc(10,gq,4,5,"button",29),n.qZA()()()()),2&i){const e=a.$implicit,t=n.oxw();n.uIk("colspan",t.displayedColumns.length),n.xp6(1),n.Q6J("@detailExpand",e===t.expandedConsent?"expanded":"collapsed"),n.xp6(2),n.Q6J("ngIf","GRANTED"===e.status),n.xp6(1),n.Q6J("ngIf","REVOKED"===e.status),n.xp6(1),n.Q6J("ngIf","UNSIGNED"===e.status),n.xp6(2),n.Q6J("ngForOf",e.attributes),n.xp6(2),n.Q6J("ngIf","REVOKED"!==e.status),n.xp6(1),n.Q6J("ngIf","GRANTED"!==e.status)}}function bq(i,a){1&i&&n._UZ(0,"tr",32)}function Aq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"tr",33),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.expandedConsent=u.expandedConsent===d?null:d)}),n.qZA()}if(2&i){const e=a.$implicit,t=n.oxw();n.ekj("example-expanded-row",t.expandedConsent===e)}}function yq(i,a){1&i&&n._UZ(0,"tr",34)}function wq(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",35),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT")),"\n"))}function Mq(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",35),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.NO_CONSENTS")),"\n"))}const Cq=function(i){return{all:i}},vq=function(){return["expandedDetail"]};let Tq=(()=>{class i{constructor(e){this.tableCheckbox=e,this.filterValue="",this.consents=[],this.selection=new Yi(!0,[]),this.displayedColumns=["select","status","name"],this.grantConsent=new n.vpe,this.rejectConsent=new n.vpe,this.pageSizeOptions=Gl}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"name":return e.consentHub.name;case"status":return e.status;default:return""}}ngOnChanges(){this.dataSource=new $o(this.consents),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Zl(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>$l(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(lA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-consents-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(os,7),n.Gf(ps,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{filterValue:"filterValue",tableId:"tableId",consents:"consents",selection:"selection",displayedColumns:"displayedColumns"},outputs:{grantConsent:"grantConsent",rejectConsent:"rejectConsent"},features:[n.TTD],decls:18,vars:17,consts:[[1,"card",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","status","matSortDirection","asc","matSortDisableClear","","multiTemplateDataRows","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item consent-row",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","consent-detail-row",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"consentStatus"],[1,"consent-detail"],[1,"p-3"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"d-flex"],["mat-flat-button","","class","mr-2","color","warn",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item","consent-row",3,"click"],["mat-row","",1,"consent-detail-row"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,sq,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,oq,4,5,"th",5),n.YNc(7,lq,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,cq,4,5,"th",5),n.YNc(10,dq,2,1,"td",6),n.BQk(),n.ynx(11,8),n.YNc(12,_q,11,8,"td",6),n.BQk(),n.YNc(13,bq,1,0,"tr",9),n.YNc(14,Aq,1,2,"tr",10),n.YNc(15,yq,1,0,"tr",11),n.qZA()()(),n.YNc(16,wq,4,5,"perun-web-apps-alert",12),n.YNc(17,Mq,4,5,"perun-web-apps-alert",12)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(14,Cq,n.xi3(4,11,t.dataSource,t.selection.selected.length))),n.xp6(10),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",n.DdM(16,vq)),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.data.length))},dependencies:[T.sg,T.O5,ic,io,cs,ro,ds,ls,ao,us,hs,so,oo,ps,Ag,yi,Ht,os,iq,Ke,Xt,pT],styles:["tr.consent-detail-row[_ngcontent-%COMP%]{height:0!important}.consent-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{cursor:pointer;border-bottom-width:0!important}.consent-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex;flex-direction:column}th[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%]{padding:0!important}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:1rem!important}"],data:{animation:[En("detailExpand",[ut("collapsed",je({height:"0px",minHeight:"0"})),ut("expanded",je({height:"*"})),Ot("expanded <=> collapsed",Rt("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),i})();const HL=function(){return["status","name"]};function xq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",4),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",5),n.NdJ("filter",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.applyFilterUnsigned(r))}),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.TgZ(8,"perun-web-apps-consents-list",6),n.NdJ("grantConsent",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.grantConsent(r))})("rejectConsent",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.rejectConsent(r))}),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,6,n.lcZ(4,8,"CONSENTS.UNSIGNED_CONSENTS"))," "),n.xp6(3),n.Q6J("placeholder",n.lcZ(6,10,n.lcZ(7,12,"CONSENTS.FILTER"))),n.xp6(3),n.Q6J("consents",e.unsignedConsents)("filterValue",e.filterValueUnsigned)("tableId","TABLE_USER_CONSENTS")("displayedColumns",n.DdM(14,HL))}}function Sq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",7),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",5),n.NdJ("filter",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.applyFilterSigned(r))}),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.TgZ(8,"perun-web-apps-consents-list",8),n.NdJ("grantConsent",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.grantConsent(r))})("rejectConsent",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.rejectConsent(r))}),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,6,n.lcZ(4,8,"CONSENTS.PROCESSED_CONSENTS"))," "),n.xp6(3),n.Q6J("placeholder",n.lcZ(6,10,n.lcZ(7,12,"CONSENTS.FILTER"))),n.xp6(3),n.Q6J("consents",e.signedConsents)("tableId","TABLE_USER_CONSENTS")("filterValue",e.filterValueSigned)("displayedColumns",n.DdM(14,HL))}}function Eq(i,a){1&i&&n._UZ(0,"mat-spinner",9)}let Dq=(()=>{class i{constructor(e,t,r,d,u){this.router=e,this.notificator=t,this.translate=r,this.storeService=d,this.consentService=u,this.loading=!1,this.unsignedConsents=[],this.signedConsents=[],this.filterValueUnsigned="",this.filterValueSigned=""}ngOnInit(){this.loading=!0,this.consentService.getConsentsForUser(this.storeService.getPerunPrincipal().userId).subscribe(e=>{this.unsignedConsents=e.filter(t=>"UNSIGNED"===t.status),this.signedConsents=e.filter(t=>"UNSIGNED"!==t.status),this.loading=!1},()=>this.loading=!1)}grantAll(){this.loading=!0,this.notificator.showSuccess(this.translate.instant("CONSENTS.GRANT_ALL_NOTIFICATION")),this.loading=!1}rejectConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"REVOKED").subscribe(()=>{const t=this.unsignedConsents.find(d=>d.id===e)??this.signedConsents.find(d=>d.id===e);this.moveConsent(t);const r=this.translate.instant("GRANTED"===t.status?"CONSENTS.CONSENT_REVOKED":"CONSENTS.CONSENT_REJECTED");t.status="REVOKED",this.notificator.showSuccess(r+t.consentHub.name),this.loading=!1},()=>this.loading=!1)}moveConsent(e){"UNSIGNED"===e.status&&(this.signedConsents=[...this.signedConsents,e],this.unsignedConsents=this.unsignedConsents.filter(t=>t.id!==e.id))}grantConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"GRANTED").subscribe(()=>{const t=this.unsignedConsents.find(r=>r.id===e)??this.signedConsents.find(r=>r.id===e);this.moveConsent(t),t.status="GRANTED",this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+t.consentHub.name),this.loading=!1},()=>this.loading=!1)}applyFilterUnsigned(e){this.filterValueUnsigned=e}applyFilterSigned(e){this.filterValueSigned=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Dn),n.Y36(Mr),n.Y36(tn),n.Y36(Ut),n.Y36(ys))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-consents-preview"]],decls:8,vars:8,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"page-subtitle"],[3,"placeholder","filter"],[3,"consents","filterValue","tableId","displayedColumns","grantConsent","rejectConsent"],[1,"page-subtitle","mt-4"],[3,"consents","tableId","filterValue","displayedColumns","grantConsent","rejectConsent"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,xq,9,15,"div",2),n.YNc(6,Sq,9,15,"div",2),n.YNc(7,Eq,1,0,"mat-spinner",3),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,4,n.lcZ(3,6,"CONSENTS.TITLE")),"\n"),n.xp6(4),n.Q6J("ngIf",!t.loading&&0!==t.unsignedConsents.length),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading))},dependencies:[T.O5,cf,Tq,Hn,Ke,Xt]}),i})();function Lq(i,a){1&i&&n._UZ(0,"mat-spinner",6)}function Hq(i,a){if(1&i&&(n.TgZ(0,"div",7),n._UZ(1,"perun-web-apps-password-form",8),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("formGroup",e.pwdForm)("namespace",e.data.namespace)("language",e.lang)}}let Rq=(()=>{class i{constructor(e,t,r,d,u,c,o){this.dialogRef=e,this.data=t,this.userManager=r,this.notificator=d,this.translate=u,this.formBuilder=c,this.apiRequestConfiguration=o,this.loading=!1,this.lang=this.translate.currentLang,this.pwdForm=this.formBuilder.group({passwordCtrl:["",bi.required,[QE(this.data.namespace,this.userManager,this.apiRequestConfiguration)]],passwordAgainCtrl:["",bi.required]},{validators:hE.passwordMatchValidator})}cancel(){this.dialogRef.close()}activate(){this.loading=!0;const e=this.pwdForm.get("passwordCtrl").value;this.userManager.reservePasswordForUser({user:this.data.userId,namespace:this.data.namespace,password:e}).pipe((0,An.w)(()=>this.userManager.validatePasswordForUser(this.data.userId,this.data.namespace))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ACTIVATE_LOCAL_ACCOUNT.SUCCESS")),this.dialogRef.close()},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(li),n.Y36(Mr),n.Y36(tn),n.Y36(hd),n.Y36(cg))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-activate-local-account-dialog"]],decls:15,vars:18,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup","namespace","language"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,Lq,1,0,"mat-spinner",1),n.YNc(5,Hq,2,3,"div",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return t.activate()}),n._uU(12),n.ALo(13,"translate"),n.ALo(14,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,6,n.lcZ(3,8,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.TITLE"))),n.xp6(3),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(3),n.hij(" ",n.lcZ(9,10,n.lcZ(10,12,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",t.loading||t.pwdForm.invalid),n.xp6(1),n.hij(" ",n.lcZ(13,14,n.lcZ(14,16,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.ACTIVATE"))," "))},dependencies:[T.O5,Ht,Xn,ii,Un,cd,Qs,Hn,XE,Ke,Xt]}),i})();function Pq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",4),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.openPwdReset())}),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"LOCAL_ACCOUNT.CHANGE_PWD"))," "))}function kq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",4),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.activateAccount())}),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"LOCAL_ACCOUNT.ACTIVATE"))," "))}function Oq(i,a){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,Pq,4,5,"button",3),n.YNc(2,kq,4,5,"button",3),n.qZA()),2&i){const e=a.ngIf;n.xp6(1),n.Q6J("ngIf",e.exists),n.xp6(1),n.Q6J("ngIf",!e.exists)}}const Iq=function(i){return{exists:i}},Bq=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"login",component:WU},{path:"service-access",component:$U},{path:"profile",component:wU,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:BB,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:gN,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:e3,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:gV,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:SV,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:yU,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"consents",component:ZU,data:{breadcrumb:"MENU_ITEMS.CONSENTS"},children:[{path:"",component:Dq,data:{breadcrumb:"MENU_ITEMS.CONSENTS"}},{path:":consentId",component:KU,data:{breadcrumb:"MENU_ITEMS.CONSENT_REQUEST"}}]},{path:"settings",component:EV,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:ZV,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:GV,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:qU,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:(()=>{class i{constructor(e){this.store=e}ngOnInit(){this.user=this.store.getPerunPrincipal().user}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-data-quotas"]],decls:1,vars:1,consts:[[3,"user"]],template:function(e,t){1&e&&n._UZ(0,"perun-web-apps-data-quotas",0),2&e&&n.Q6J("user",t.user)},dependencies:[Hz]}),i})(),data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"localAccount",component:(()=>{class i{constructor(e,t,r,d,u){this.userService=e,this.store=t,this.appUrlService=r,this.dialog=d,this.router=u,this.userId=this.store.getPerunPrincipal().userId,this.namespace=this.store.getProperty("local_account_namespace"),this.loginExists$=this.userService.loginExist(this.userId,this.namespace)}openPwdReset(){let e=this.appUrlService.getUrlForOtherApplication(Go.PwdReset,this.namespace);e+="&reset=true",window.open(e,"_blank")}activateAccount(){const e=ln();e.width="550px",e.data={userId:this.userId,namespace:this.namespace},this.dialog.open(Rq,e).afterClosed().subscribe(()=>{this.router.navigate(["/profile","settings","localAccount"],{queryParamsHandling:"merge"})})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Ut),n.Y36(cA),n.Y36(on),n.Y36(Dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-local-account"]],decls:10,vars:15,consts:[[1,"page-title"],[1,"page-subtitle"],[4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.YNc(8,Oq,3,2,"div",2),n.ALo(9,"async")),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,3,n.lcZ(3,5,"LOCAL_ACCOUNT.TITLE"))),n.xp6(4),n.hij(" ",n.lcZ(6,7,n.lcZ(7,9,"LOCAL_ACCOUNT.DESC")),"\n"),n.xp6(3),n.Q6J("ngIf",n.VKq(13,Iq,n.lcZ(9,11,t.loginExists$))))},dependencies:[T.O5,Ht,T.Ov,Ke,Xt]}),i})(),data:{breadcrumb:"SETTINGS.LOCAL_ACCOUNT"}},{path:"mailingLists",component:(()=>{class i{constructor(e){this.store=e}ngOnInit(){this.user=this.store.getPerunPrincipal().user}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-mailing-lists"]],decls:1,vars:2,consts:[[3,"user","isService"]],template:function(e,t){1&e&&n._UZ(0,"perun-web-apps-mailing-lists",0),2&e&&n.Q6J("user",t.user)("isService",!1)},dependencies:[Nz]}),i})(),data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:ej,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:aj,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:cj,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:Fz,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:ez,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let Nq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Tl.forRoot(Bq,{preloadingStrategy:xy,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})]}),i})();class Vq{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}function RL(i){return new n.vHH(3e3,!1)}function w4(){return typeof window<"u"&&typeof window.document<"u"}function TT(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function vd(i){switch(i.length){case 0:return new Ru;case 1:return i[0];default:return new y_(i)}}function PL(i,a,e,t,r=new Map,d=new Map){const u=[],c=[];let o=-1,s=null;if(t.forEach(l=>{const h=l.get("offset"),p=h==o,m=p&&s||new Map;l.forEach((g,f)=>{let w=f,N=g;if("offset"!==f)switch(w=a.normalizePropertyName(w,u),N){case"!":N=r.get(f);break;case ns:N=d.get(f);break;default:N=a.normalizeStyleValue(f,w,N,u)}m.set(w,N)}),p||c.push(m),s=m,o=h}),u.length)throw function c4(i){return new n.vHH(3502,!1)}();return c}function xT(i,a,e,t){switch(a){case"start":i.onStart(()=>t(e&&ST(e,"start",i)));break;case"done":i.onDone(()=>t(e&&ST(e,"done",i)));break;case"destroy":i.onDestroy(()=>t(e&&ST(e,"destroy",i)))}}function ST(i,a,e){const d=ET(i.element,i.triggerName,i.fromState,i.toState,a||i.phaseName,e.totalTime??i.totalTime,!!e.disabled),u=i._data;return null!=u&&(d._data=u),d}function ET(i,a,e,t,r="",d=0,u){return{element:i,triggerName:a,fromState:e,toState:t,phaseName:r,totalTime:d,disabled:!!u}}function za(i,a,e){let t=i.get(a);return t||i.set(a,t=e),t}function kL(i){const a=i.indexOf(":");return[i.substring(1,a),i.slice(a+1)]}let DT=(i,a)=>!1,OL=(i,a,e)=>[],IL=null;function LT(i){const a=i.parentNode||i.host;return a===IL?null:a}(TT()||typeof Element<"u")&&(w4()?(IL=(()=>document.documentElement)(),DT=(i,a)=>{for(;a;){if(a===i)return!0;a=LT(a)}return!1}):DT=(i,a)=>i.contains(a),OL=(i,a,e)=>{if(e)return Array.from(i.querySelectorAll(a));const t=i.querySelector(a);return t?[t]:[]});let Zu=null,BL=!1;const NL=DT,VL=OL;let jL=(()=>{class i{validateStyleProperty(e){return function C4(i){Zu||(Zu=function v4(){return typeof document<"u"?document.body:null}()||{},BL=!!Zu.style&&"WebkitAppearance"in Zu.style);let a=!0;return Zu.style&&!function M4(i){return"ebkit"==i.substring(1,6)}(i)&&(a=i in Zu.style,!a&&BL&&(a="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Zu.style)),a}(e)}matchesElement(e,t){return!1}containsElement(e,t){return NL(e,t)}getParentElement(e){return LT(e)}query(e,t,r){return VL(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,d,u,c=[],o){return new Ru(r,d)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),HT=(()=>{class i{}return i.NOOP=new jL,i})();const RT="ng-enter",qA="ng-leave",YA="ng-trigger",WA=".ng-trigger",zL="ng-animating",PT=".ng-animating";function Td(i){if("number"==typeof i)return i;const a=i.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:kT(parseFloat(a[1]),a[2])}function kT(i,a){return"s"===a?1e3*i:i}function GA(i,a,e){return i.hasOwnProperty("duration")?i:function S4(i,a,e){let r,d=0,u="";if("string"==typeof i){const c=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===c)return a.push(RL()),{duration:0,delay:0,easing:""};r=kT(parseFloat(c[1]),c[2]);const o=c[3];null!=o&&(d=kT(parseFloat(o),c[4]));const s=c[5];s&&(u=s)}else r=i;if(!e){let c=!1,o=a.length;r<0&&(a.push(function jq(){return new n.vHH(3100,!1)}()),c=!0),d<0&&(a.push(function Fq(){return new n.vHH(3101,!1)}()),c=!0),c&&a.splice(o,0,RL())}return{duration:r,delay:d,easing:u}}(i,a,e)}function Tg(i,a={}){return Object.keys(i).forEach(e=>{a[e]=i[e]}),a}function UL(i){const a=new Map;return Object.keys(i).forEach(e=>{a.set(e,i[e])}),a}function xd(i,a=new Map,e){if(e)for(let[t,r]of e)a.set(t,r);for(let[t,r]of i)a.set(t,r);return a}function YL(i,a,e){return e?a+":"+e+";":""}function WL(i){let a="";for(let e=0;e{const d=IT(r);e&&!e.has(r)&&e.set(r,i.style[d]),i.style[d]=t}),TT()&&WL(i))}function Ju(i,a){i.style&&(a.forEach((e,t)=>{const r=IT(t);i.style[r]=""}),TT()&&WL(i))}function xg(i){return Array.isArray(i)?1==i.length?i[0]:G0(i):i}const OT=new RegExp("{{\\s*(.+?)\\s*}}","g");function GL(i){let a=[];if("string"==typeof i){let e;for(;e=OT.exec(i);)a.push(e[1]);OT.lastIndex=0}return a}function $A(i,a,e){const t=i.toString(),r=t.replace(OT,(d,u)=>{let c=a[u];return null==c&&(e.push(function Uq(i){return new n.vHH(3003,!1)}()),c=""),c.toString()});return r==t?i:r}function ZA(i){const a=[];let e=i.next();for(;!e.done;)a.push(e.value),e=i.next();return a}const L4=/-+([a-z0-9])/g;function IT(i){return i.replace(L4,(...a)=>a[1].toUpperCase())}function H4(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ua(i,a,e){switch(a.type){case 7:return i.visitTrigger(a,e);case 0:return i.visitState(a,e);case 1:return i.visitTransition(a,e);case 2:return i.visitSequence(a,e);case 3:return i.visitGroup(a,e);case 4:return i.visitAnimate(a,e);case 5:return i.visitKeyframes(a,e);case 6:return i.visitStyle(a,e);case 8:return i.visitReference(a,e);case 9:return i.visitAnimateChild(a,e);case 10:return i.visitAnimateRef(a,e);case 11:return i.visitQuery(a,e);case 12:return i.visitStagger(a,e);default:throw function qq(i){return new n.vHH(3004,!1)}()}}function $L(i,a){return window.getComputedStyle(i)[a]}function B4(i,a){const e=[];return"string"==typeof i?i.split(/\s*,\s*/).forEach(t=>function N4(i,a,e){if(":"==i[0]){const o=function V4(i,a){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(i,e);if("function"==typeof o)return void a.push(o);i=o}const t=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function r4(i){return new n.vHH(3015,!1)}()),a;const r=t[1],d=t[2],u=t[3];a.push(ZL(r,u));"<"==d[0]&&!("*"==r&&"*"==u)&&a.push(ZL(u,r))}(t,e,a)):e.push(i),e}const KA=new Set(["true","1"]),ey=new Set(["false","0"]);function ZL(i,a){const e=KA.has(i)||ey.has(i),t=KA.has(a)||ey.has(a);return(r,d)=>{let u="*"==i||i==r,c="*"==a||a==d;return!u&&e&&"boolean"==typeof r&&(u=r?KA.has(i):ey.has(i)),!c&&t&&"boolean"==typeof d&&(c=d?KA.has(a):ey.has(a)),u&&c}}const j4=new RegExp("s*:selfs*,?","g");function BT(i,a,e,t){return new F4(i).build(a,e,t)}class F4{constructor(a){this._driver=a}build(a,e,t){const r=new q4(e);return this._resetContextStyleTimingState(r),Ua(this,xg(a),r)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,r=e.depCount=0;const d=[],u=[];return"@"==a.name.charAt(0)&&e.errors.push(function Wq(){return new n.vHH(3006,!1)}()),a.definitions.forEach(c=>{if(this._resetContextStyleTimingState(e),0==c.type){const o=c,s=o.name;s.toString().split(/\s*,\s*/).forEach(l=>{o.name=l,d.push(this.visitState(o,e))}),o.name=s}else if(1==c.type){const o=this.visitTransition(c,e);t+=o.queryCount,r+=o.depCount,u.push(o)}else e.errors.push(function Gq(){return new n.vHH(3007,!1)}())}),{type:7,name:a.name,states:d,transitions:u,queryCount:t,depCount:r,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),r=a.options&&a.options.params||null;if(t.containsDynamicStyles){const d=new Set,u=r||{};t.styles.forEach(c=>{c instanceof Map&&c.forEach(o=>{GL(o).forEach(s=>{u.hasOwnProperty(s)||d.add(s)})})}),d.size&&(ZA(d.values()),e.errors.push(function $q(i,a){return new n.vHH(3008,!1)}()))}return{type:0,name:a.name,style:t,options:r?{params:r}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Ua(this,xg(a.animation),e);return{type:1,matchers:B4(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Qu(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Ua(this,t,e)),options:Qu(a.options)}}visitGroup(a,e){const t=e.currentTime;let r=0;const d=a.steps.map(u=>{e.currentTime=t;const c=Ua(this,u,e);return r=Math.max(r,e.currentTime),c});return e.currentTime=r,{type:3,steps:d,options:Qu(a.options)}}visitAnimate(a,e){const t=function W4(i,a){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return NT(GA(i,a).duration,0,"");const e=i;if(e.split(/\s+/).some(d=>"{"==d.charAt(0)&&"{"==d.charAt(1))){const d=NT(0,0,"");return d.dynamic=!0,d.strValue=e,d}const r=GA(e,a);return NT(r.duration,r.delay,r.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let r,d=a.styles?a.styles:je({});if(5==d.type)r=this.visitKeyframes(d,e);else{let u=a.styles,c=!1;if(!u){c=!0;const s={};t.easing&&(s.easing=t.easing),u=je(s)}e.currentTime+=t.duration+t.delay;const o=this.visitStyle(u,e);o.isEmptyStep=c,r=o}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[],r=Array.isArray(a.styles)?a.styles:[a.styles];for(let c of r)"string"==typeof c?c===ns?t.push(c):e.errors.push(new n.vHH(3002,!1)):t.push(UL(c));let d=!1,u=null;return t.forEach(c=>{if(c instanceof Map&&(c.has("easing")&&(u=c.get("easing"),c.delete("easing")),!d))for(let o of c.values())if(o.toString().indexOf("{{")>=0){d=!0;break}}),{type:6,styles:t,easing:u,offset:a.offset,containsDynamicStyles:d,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let r=e.currentTime,d=e.currentTime;t&&d>0&&(d-=t.duration+t.delay),a.styles.forEach(u=>{"string"!=typeof u&&u.forEach((c,o)=>{const s=e.collectedStyles.get(e.currentQuerySelector),l=s.get(o);let h=!0;l&&(d!=r&&d>=l.startTime&&r<=l.endTime&&(e.errors.push(function Jq(i,a,e,t,r){return new n.vHH(3010,!1)}()),h=!1),d=l.startTime),h&&s.set(o,{startTime:d,endTime:r}),e.options&&function D4(i,a,e){const t=a.params||{},r=GL(i);r.length&&r.forEach(d=>{t.hasOwnProperty(d)||e.push(function zq(i){return new n.vHH(3001,!1)}())})}(c,e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Qq(){return new n.vHH(3011,!1)}()),t;let d=0;const u=[];let c=!1,o=!1,s=0;const l=a.steps.map(N=>{const se=this._makeStyleAst(N,e);let Pe=null!=se.offset?se.offset:function Y4(i){if("string"==typeof i)return null;let a=null;if(Array.isArray(i))i.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;a=parseFloat(t.get("offset")),t.delete("offset")}});else if(i instanceof Map&&i.has("offset")){const e=i;a=parseFloat(e.get("offset")),e.delete("offset")}return a}(se.styles),ot=0;return null!=Pe&&(d++,ot=se.offset=Pe),o=o||ot<0||ot>1,c=c||ot0&&d{const Pe=p>0?se==m?1:p*se:u[se],ot=Pe*w;e.currentTime=g+f.delay+ot,f.duration=ot,this._validateStyleAst(N,e),N.offset=Pe,t.styles.push(N)}),t}visitReference(a,e){return{type:8,animation:Ua(this,xg(a.animation),e),options:Qu(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:Qu(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:Qu(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,r=a.options||{};e.queryCount++,e.currentQuery=a;const[d,u]=function z4(i){const a=!!i.split(/\s*,\s*/).find(e=>":self"==e);return a&&(i=i.replace(j4,"")),i=i.replace(/@\*/g,WA).replace(/@\w+/g,e=>WA+"-"+e.slice(1)).replace(/:animating/g,PT),[i,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+d:d,za(e.collectedStyles,e.currentQuerySelector,new Map);const c=Ua(this,xg(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:d,limit:r.limit||0,optional:!!r.optional,includeSelf:u,animation:c,originalSelector:a.selector,options:Qu(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push(function t4(){return new n.vHH(3013,!1)}());const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:GA(a.timings,e.errors,!0);return{type:12,animation:Ua(this,xg(a.animation),e),timings:t,options:null}}}class q4{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Qu(i){return i?(i=Tg(i)).params&&(i.params=function U4(i){return i?Tg(i):null}(i.params)):i={},i}function NT(i,a,e){return{duration:i,delay:a,easing:e}}function VT(i,a,e,t,r,d,u=null,c=!1){return{type:1,element:i,keyframes:a,preStyleProps:e,postStyleProps:t,duration:r,delay:d,totalTime:r+d,easing:u,subTimeline:c}}class ty{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const Z4=new RegExp(":enter","g"),Q4=new RegExp(":leave","g");function jT(i,a,e,t,r,d=new Map,u=new Map,c,o,s=[]){return(new X4).buildKeyframes(i,a,e,t,r,d,u,c,o,s)}class X4{buildKeyframes(a,e,t,r,d,u,c,o,s,l=[]){s=s||new ty;const h=new FT(a,e,s,r,d,l,[]);h.options=o;const p=o.delay?Td(o.delay):0;h.currentTimeline.delayNextStep(p),h.currentTimeline.setStyles([u],null,h.errors,o),Ua(this,t,h);const m=h.timelines.filter(g=>g.containsAnimation());if(m.length&&c.size){let g;for(let f=m.length-1;f>=0;f--){const w=m[f];if(w.element===e){g=w;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([c],null,h.errors,o)}return m.length?m.map(g=>g.buildKeyframes()):[VT(e,[],[],[],0,p,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(a.options),d=e.currentTimeline.currentTime,u=this._visitSubInstructions(t,r,r.options);d!=u&&e.transformIntoNewTimeline(u)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let d=e.currentTimeline.currentTime;const u=null!=t.duration?Td(t.duration):null,c=null!=t.delay?Td(t.delay):null;return 0!==u&&a.forEach(o=>{const s=e.appendInstructionToTimeline(o,u,c);d=Math.max(d,s.duration+s.delay)}),d}visitReference(a,e){e.updateOptions(a.options,!0),Ua(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let r=e;const d=a.options;if(d&&(d.params||d.delay)&&(r=e.createSubContext(d),r.transformIntoNewTimeline(),null!=d.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ny);const u=Td(d.delay);r.delayNextStep(u)}a.steps.length&&(a.steps.forEach(u=>Ua(this,u,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let r=e.currentTimeline.currentTime;const d=a.options&&a.options.delay?Td(a.options.delay):0;a.steps.forEach(u=>{const c=e.createSubContext(a.options);d&&c.delayNextStep(d),Ua(this,u,c),r=Math.max(r,c.currentTimeline.currentTime),t.push(c.currentTimeline)}),t.forEach(u=>e.currentTimeline.mergeTimelineCollectedStyles(u)),e.transformIntoNewTimeline(r),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return GA(e.params?$A(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const d=a.style;5==d.type?this.visitKeyframes(d,e):(e.incrementTime(t.duration),this.visitStyle(d,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();const d=r&&r.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(d):t.setStyles(a.styles,d,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,d=t.duration,c=e.createSubContext().currentTimeline;c.easing=t.easing,a.styles.forEach(o=>{c.forwardTime((o.offset||0)*d),c.setStyles(o.styles,o.easing,e.errors,e.options),c.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(c),e.transformIntoNewTimeline(r+d),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,r=a.options||{},d=r.delay?Td(r.delay):0;d&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ny);let u=t;const c=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=c.length;let o=null;c.forEach((s,l)=>{e.currentQueryIndex=l;const h=e.createSubContext(a.options,s);d&&h.delayNextStep(d),s===e.element&&(o=h.currentTimeline),Ua(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),u=Math.max(u,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(u),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,r=e.currentTimeline,d=a.timings,u=Math.abs(d.duration),c=u*(e.currentQueryTotal-1);let o=u*e.currentQueryIndex;switch(d.duration<0?"reverse":d.easing){case"reverse":o=c-o;break;case"full":o=t.currentStaggerTime}const l=e.currentTimeline;o&&l.delayNextStep(o);const h=l.currentTime;Ua(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const ny={};class FT{constructor(a,e,t,r,d,u,c,o){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=d,this.errors=u,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ny,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new iy(this._driver,e,0),c.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let r=this.options;null!=t.duration&&(r.duration=Td(t.duration)),null!=t.delay&&(r.delay=Td(t.delay));const d=t.params;if(d){let u=r.params;u||(u=this.options.params={}),Object.keys(d).forEach(c=>{(!e||!u.hasOwnProperty(c))&&(u[c]=$A(d[c],u,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return a}createSubContext(a=null,e,t){const r=e||this.element,d=new FT(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return d.previousNode=this.previousNode,d.currentAnimateTimings=this.currentAnimateTimings,d.options=this._copyOptions(),d.updateOptions(a),d.currentQueryIndex=this.currentQueryIndex,d.currentQueryTotal=this.currentQueryTotal,d.parentContext=this,this.subContextCount++,d}transformIntoNewTimeline(a){return this.previousNode=ny,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const r={duration:e??a.duration,delay:this.currentTimeline.currentTime+(t??0)+a.delay,easing:""},d=new K4(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,r,a.stretchStartingKeyframe);return this.timelines.push(d),r}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,r,d,u){let c=[];if(r&&c.push(this.element),a.length>0){a=(a=a.replace(Z4,"."+this._enterClassName)).replace(Q4,"."+this._leaveClassName);let s=this._driver.query(this.element,a,1!=t);0!==t&&(s=t<0?s.slice(s.length+t,s.length):s.slice(0,t)),c.push(...s)}return!d&&0==c.length&&u.push(function n4(i){return new n.vHH(3014,!1)}()),c}}class iy{constructor(a,e,t,r){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(a){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new iy(this._driver,a,e||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+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles.set(a,e),this._globalTimelineStyles.set(a,e),this._styleSummary.set(a,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||ns),this._currentKeyframe.set(e,ns);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,r){e&&this._previousKeyframe.set("easing",e);const d=r&&r.params||{},u=function e6(i,a){const e=new Map;let t;return i.forEach(r=>{if("*"===r){t=t||a.keys();for(let d of t)e.set(d,ns)}else xd(r,e)}),e}(a,this._globalTimelineStyles);for(let[o,s]of u){const l=$A(s,d,t);var c;this._pendingStyles.set(o,l),this._localTimelineStyles.has(o)||this._backFill.set(o,null!==(c=this._globalTimelineStyles.get(o))&&void 0!==c?c:ns),this._updateStyle(o,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,e)=>{this._currentKeyframe.set(e,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,a)}))}snapshotCurrentStyles(){for(let[a,e]of this._localTimelineStyles)this._pendingStyles.set(a,e),this._updateStyle(a,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((e,t)=>{const r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((c,o)=>{const s=xd(c,new Map,this._backFill);s.forEach((l,h)=>{"!"===l?a.add(h):l===ns&&e.add(h)}),t||s.set("offset",o/this.duration),r.push(s)});const d=a.size?ZA(a.values()):[],u=e.size?ZA(e.values()):[];if(t){const c=r[0],o=new Map(c);c.set("offset",0),o.set("offset",1),r=[c,o]}return VT(this.element,r,d,u,this.duration,this.startTime,this.easing,!1)}}class K4 extends iy{constructor(a,e,t,r,d,u,c=!1){super(a,e,u.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=d,this._stretchStartingKeyframe=c,this.timings={duration:u.duration,delay:u.delay,easing:u.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const d=[],u=t+e,c=e/u,o=xd(a[0]);o.set("offset",0),d.push(o);const s=xd(a[0]);s.set("offset",XL(c)),d.push(s);const l=a.length-1;for(let h=1;h<=l;h++){let p=xd(a[h]);const m=p.get("offset");p.set("offset",XL((e+m*t)/u)),d.push(p)}t=u,e=0,r="",a=d}return VT(this.element,a,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function XL(i,a=3){const e=Math.pow(10,a-1);return Math.round(i*e)/e}class zT{}const t6=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"]);class n6 extends zT{normalizePropertyName(a,e){return IT(a)}normalizeStyleValue(a,e,t,r){let d="";const u=t.toString().trim();if(t6.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)d="px";else{const c=t.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&r.push(function Yq(i,a){return new n.vHH(3005,!1)}())}return u+d}}function KL(i,a,e,t,r,d,u,c,o,s,l,h,p){return{type:0,element:i,triggerName:a,isRemovalTransition:r,fromState:e,fromStyles:d,toState:t,toStyles:u,timelines:c,queriedElements:o,preStyleProps:s,postStyleProps:l,totalTime:h,errors:p}}const UT={};class eH{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,r){return function r6(i,a,e,t,r){return i.some(d=>d(a,e,t,r))}(this.ast.matchers,a,e,t,r)}buildStyles(a,e,t){let r=this._stateStyles.get("*");return void 0!==a&&(r=this._stateStyles.get(a?.toString())||r),r?r.buildStyles(e,t):new Map}build(a,e,t,r,d,u,c,o,s,l){var h;const p=[],m=this.ast.options&&this.ast.options.params||UT,f=this.buildStyles(t,c&&c.params||UT,p),w=o&&o.params||UT,N=this.buildStyles(r,w,p),se=new Set,Pe=new Map,ot=new Map,Mi="void"===r,Pi={params:a6(w,m),delay:null===(h=this.ast.options)||void 0===h?void 0:h.delay},Fi=l?[]:jT(a,e,this.ast.animation,d,u,f,N,Pi,s,p);let or=0;if(Fi.forEach(lo=>{or=Math.max(lo.duration+lo.delay,or)}),p.length)return KL(e,this._triggerName,t,r,Mi,f,N,[],[],Pe,ot,or,p);Fi.forEach(lo=>{const Eg=lo.element,Dg=za(Pe,Eg,new Set);lo.preStyleProps.forEach(pf=>Dg.add(pf));const Lg=za(ot,Eg,new Set);lo.postStyleProps.forEach(pf=>Lg.add(pf)),Eg!==e&&se.add(Eg)});const Xu=ZA(se.values());return KL(e,this._triggerName,t,r,Mi,f,N,Fi,Xu,Pe,ot,or)}}function a6(i,a){const e=Tg(a);for(const t in i)i.hasOwnProperty(t)&&null!=i[t]&&(e[t]=i[t]);return e}class s6{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t=new Map,r=Tg(this.defaultParams);return Object.keys(a).forEach(d=>{const u=a[d];null!==u&&(r[d]=u)}),this.styles.styles.forEach(d=>{"string"!=typeof d&&d.forEach((u,c)=>{u&&(u=$A(u,r,e));const o=this.normalizer.normalizePropertyName(c,e);u=this.normalizer.normalizeStyleValue(c,o,u,e),t.set(o,u)})}),t}}class l6{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new s6(r.style,r.options&&r.options.params||{},t))}),tH(this.states,"true","1"),tH(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new eH(a,r,this.states))}),this.fallbackTransition=function c6(i,a,e){return new eH(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(u,c)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,r){return this.transitionFactories.find(u=>u.match(a,e,t,r))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function tH(i,a,e){i.has(a)?i.has(e)||i.set(e,i.get(a)):i.has(e)&&i.set(a,i.get(e))}const d6=new ty;class u6{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,e){const t=[],d=BT(this._driver,e,t,[]);if(t.length)throw function d4(i){return new n.vHH(3503,!1)}();this._animations.set(a,d)}_buildPlayer(a,e,t){const r=a.element,d=PL(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(r,d,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const r=[],d=this._animations.get(a);let u;const c=new Map;if(d?(u=jT(this._driver,e,d,RT,qA,new Map,new Map,t,d6,r),u.forEach(l=>{const h=za(c,l.element,new Map);l.postStyleProps.forEach(p=>h.set(p,null))})):(r.push(function u4(){return new n.vHH(3300,!1)}()),u=[]),r.length)throw function h4(i){return new n.vHH(3504,!1)}();c.forEach((l,h)=>{l.forEach((p,m)=>{l.set(m,this._driver.computeStyle(h,m,ns))})});const s=vd(u.map(l=>{const h=c.get(l.element);return this._buildPlayer(l,new Map,h)}));return this._playersById.set(a,s),s.onDestroy(()=>this.destroy(a)),this.players.push(s),s}destroy(a){const e=this._getPlayer(a);e.destroy(),this._playersById.delete(a);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById.get(a);if(!e)throw function p4(i){return new n.vHH(3301,!1)}();return e}listen(a,e,t,r){const d=ET(e,"","","");return xT(this._getPlayer(a),t,d,r),()=>{}}command(a,e,t,r){if("register"==t)return void this.register(a,r[0]);if("create"==t)return void this.create(a,e,r[0]||{});const d=this._getPlayer(a);switch(t){case"play":d.play();break;case"pause":d.pause();break;case"reset":d.reset();break;case"restart":d.restart();break;case"finish":d.finish();break;case"init":d.init();break;case"setPosition":d.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(a)}}}const nH="ng-animate-queued",qT="ng-animate-disabled",g6=[],iH={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_6={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},fs="__ng_removed";class YT{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function w6(i){return i??null}(t?a.value:a),t){const d=Tg(a);delete d.value,this.options=d}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const Sg="void",WT=new YT(Sg);class b6{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,ms(e,this._hostClassName)}listen(a,e,t,r){if(!this._triggers.has(e))throw function f4(i,a){return new n.vHH(3302,!1)}();if(null==t||0==t.length)throw function m4(i){return new n.vHH(3303,!1)}();if(!function M6(i){return"start"==i||"done"==i}(t))throw function g4(i,a){return new n.vHH(3400,!1)}();const d=za(this._elementListeners,a,[]),u={name:e,phase:t,callback:r};d.push(u);const c=za(this._engine.statesByElement,a,new Map);return c.has(e)||(ms(a,YA),ms(a,YA+"-"+e),c.set(e,WT)),()=>{this._engine.afterFlush(()=>{const o=d.indexOf(u);o>=0&&d.splice(o,1),this._triggers.has(e)||c.delete(e)})}}register(a,e){return!this._triggers.has(a)&&(this._triggers.set(a,e),!0)}_getTrigger(a){const e=this._triggers.get(a);if(!e)throw function _4(i){return new n.vHH(3401,!1)}();return e}trigger(a,e,t,r=!0){const d=this._getTrigger(e),u=new GT(this.id,e,a);let c=this._engine.statesByElement.get(a);c||(ms(a,YA),ms(a,YA+"-"+e),this._engine.statesByElement.set(a,c=new Map));let o=c.get(e);const s=new YT(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&o&&s.absorbOptions(o.options),c.set(e,s),o||(o=WT),s.value!==Sg&&o.value===s.value){if(!function T6(i,a){const e=Object.keys(i),t=Object.keys(a);if(e.length!=t.length)return!1;for(let r=0;r{Ju(a,w),Qo(a,N)})}return}const p=za(this._engine.playersByElement,a,[]);p.forEach(f=>{f.namespaceId==this.id&&f.triggerName==e&&f.queued&&f.destroy()});let m=d.matchTransition(o.value,s.value,a,s.params),g=!1;if(!m){if(!r)return;m=d.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:m,fromState:o,toState:s,player:u,isFallbackTransition:g}),g||(ms(a,nH),u.onStart(()=>{hf(a,nH)})),u.onDone(()=>{let f=this.players.indexOf(u);f>=0&&this.players.splice(f,1);const w=this._engine.playersByElement.get(a);if(w){let N=w.indexOf(u);N>=0&&w.splice(N,1)}}),this.players.push(u),p.push(u),u}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(e=>e.delete(a)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,WA,!0);t.forEach(r=>{if(r[fs])return;const d=this._engine.fetchNamespacesByElement(r);d.size?d.forEach(u=>u.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(a,e,t,r){const d=this._engine.statesByElement.get(a),u=new Map;if(d){const c=[];if(d.forEach((o,s)=>{if(u.set(s,o.value),this._triggers.has(s)){const l=this.trigger(a,s,Sg,r);l&&c.push(l)}}),c.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,u),t&&vd(c).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const r=new Set;e.forEach(d=>{const u=d.name;if(r.has(u))return;r.add(u);const o=this._triggers.get(u).fallbackTransition,s=t.get(u)||WT,l=new YT(Sg),h=new GT(this.id,u,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:u,transition:o,fromState:s,toState:l,player:h,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let r=!1;if(t.totalAnimations){const d=t.players.length?t.playersByQueriedElement.get(a):[];if(d&&d.length)r=!0;else{let u=a;for(;u=u.parentNode;)if(t.statesByElement.get(u)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(a),r)t.markElementAsRemoved(this.id,a,!1,e);else{const d=a[fs];(!d||d===iH)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){ms(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const d=t.element,u=this._elementListeners.get(d);u&&u.forEach(c=>{if(c.name==t.triggerName){const o=ET(d,t.triggerName,t.fromState.value,t.toState.value);o._data=a,xT(t.player,c.phase,o,c.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const d=t.transition.ast.depCount,u=r.transition.ast.depCount;return 0==d||0==u?d-u:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class A6{constructor(a,e,t){this.bodyNode=a,this.driver=e,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=(r,d)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new b6(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let u=!1,c=this.driver.getParentElement(e);for(;c;){const o=r.get(c);if(o){const s=t.indexOf(o);t.splice(s+1,0,a),u=!0;break}c=this.driver.getParentElement(c)}u||t.unshift(a)}else t.push(a);return r.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let r=this._namespaceLookup[a];r&&r.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t)for(let r of t.values())if(r.namespaceId){const d=this._fetchNamespace(r.namespaceId);d&&e.add(d)}return e}trigger(a,e,t,r){if(ry(e)){const d=this._fetchNamespace(a);if(d)return d.trigger(e,t,r),!0}return!1}insertNode(a,e,t,r){if(!ry(e))return;const d=e[fs];if(d&&d.setForRemoval){d.setForRemoval=!1,d.setForMove=!0;const u=this.collectedLeaveElements.indexOf(e);u>=0&&this.collectedLeaveElements.splice(u,1)}if(a){const u=this._fetchNamespace(a);u&&u.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),ms(a,qT)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),hf(a,qT))}removeNode(a,e,t,r){if(ry(e)){const d=a?this._fetchNamespace(a):null;if(d?d.removeNode(e,r):this.markElementAsRemoved(a,e,!1,r),t){const u=this.namespacesByHostElement.get(e);u&&u.id!==a&&u.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(a,e,t,r,d){this.collectedLeaveElements.push(e),e[fs]={namespaceId:a,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:d}}listen(a,e,t,r,d){return ry(e)?this._fetchNamespace(a).listen(e,t,r,d):()=>{}}_buildInstruction(a,e,t,r,d){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,r,a.fromState.options,a.toState.options,e,d)}destroyInnerAnimations(a){let e=this.driver.query(a,WA,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,PT,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return vd(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[fs];if(t&&t.setForRemoval){if(a[fs]=iH,t.namespaceId){this.destroyInnerAnimations(a);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(a)}this._onRemovalComplete(a,t.setForRemoval)}null!==(e=a.classList)&&void 0!==e&&e.contains(qT)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?vd(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(a){throw function b4(i){return new n.vHH(3402,!1)}()}_flushAnimations(a,e){const t=new ty,r=[],d=new Map,u=[],c=new Map,o=new Map,s=new Map,l=new Set;this.disabledNodes.forEach(mt=>{l.add(mt);const xt=this.driver.query(mt,".ng-animate-queued",!0);for(let Pt=0;Pt{const Pt=RT+f++;g.set(xt,Pt),mt.forEach(sn=>ms(sn,Pt))});const w=[],N=new Set,se=new Set;for(let mt=0;mtN.add(sn)):se.add(xt))}const Pe=new Map,ot=sH(p,Array.from(N));ot.forEach((mt,xt)=>{const Pt=qA+f++;Pe.set(xt,Pt),mt.forEach(sn=>ms(sn,Pt))}),a.push(()=>{m.forEach((mt,xt)=>{const Pt=g.get(xt);mt.forEach(sn=>hf(sn,Pt))}),ot.forEach((mt,xt)=>{const Pt=Pe.get(xt);mt.forEach(sn=>hf(sn,Pt))}),w.forEach(mt=>{this.processLeaveNode(mt)})});const Mi=[],Pi=[];for(let mt=this._namespaceList.length-1;mt>=0;mt--)this._namespaceList[mt].drainQueuedTransitions(e).forEach(Pt=>{const sn=Pt.player,ki=Pt.element;if(Mi.push(sn),this.collectedEnterElements.length){const Vr=ki[fs];if(Vr&&Vr.setForMove){if(Vr.previousTriggersValues&&Vr.previousTriggersValues.has(Pt.triggerName)){const Ku=Vr.previousTriggersValues.get(Pt.triggerName),gs=this.statesByElement.get(Pt.element);if(gs&&gs.has(Pt.triggerName)){const ly=gs.get(Pt.triggerName);ly.value=Ku,gs.set(Pt.triggerName,ly)}}return void sn.destroy()}}const Xo=!h||!this.driver.containsElement(h,ki),qa=Pe.get(ki),Sd=g.get(ki),Ci=this._buildInstruction(Pt,t,Sd,qa,Xo);if(Ci.errors&&Ci.errors.length)return void Pi.push(Ci);if(Xo)return sn.onStart(()=>Ju(ki,Ci.fromStyles)),sn.onDestroy(()=>Qo(ki,Ci.toStyles)),void r.push(sn);if(Pt.isFallbackTransition)return sn.onStart(()=>Ju(ki,Ci.fromStyles)),sn.onDestroy(()=>Qo(ki,Ci.toStyles)),void r.push(sn);const EH=[];Ci.timelines.forEach(Vr=>{Vr.stretchStartingKeyframe=!0,this.disabledNodes.has(Vr.element)||EH.push(Vr)}),Ci.timelines=EH,t.append(ki,Ci.timelines),u.push({instruction:Ci,player:sn,element:ki}),Ci.queriedElements.forEach(Vr=>za(c,Vr,[]).push(sn)),Ci.preStyleProps.forEach((Vr,Ku)=>{if(Vr.size){let gs=o.get(Ku);gs||o.set(Ku,gs=new Set),Vr.forEach((ly,JT)=>gs.add(JT))}}),Ci.postStyleProps.forEach((Vr,Ku)=>{let gs=s.get(Ku);gs||s.set(Ku,gs=new Set),Vr.forEach((ly,JT)=>gs.add(JT))})});if(Pi.length){const mt=[];Pi.forEach(xt=>{mt.push(function A4(i,a){return new n.vHH(3505,!1)}())}),Mi.forEach(xt=>xt.destroy()),this.reportError(mt)}const Fi=new Map,or=new Map;u.forEach(mt=>{const xt=mt.element;t.has(xt)&&(or.set(xt,xt),this._beforeAnimationBuild(mt.player.namespaceId,mt.instruction,Fi))}),r.forEach(mt=>{const xt=mt.element;this._getPreviousPlayers(xt,!1,mt.namespaceId,mt.triggerName,null).forEach(sn=>{za(Fi,xt,[]).push(sn),sn.destroy()})});const Xu=w.filter(mt=>lH(mt,o,s)),lo=new Map;aH(lo,this.driver,se,s,ns).forEach(mt=>{lH(mt,o,s)&&Xu.push(mt)});const Dg=new Map;m.forEach((mt,xt)=>{aH(Dg,this.driver,new Set(mt),o,"!")}),Xu.forEach(mt=>{var xt,Pt;const sn=lo.get(mt),ki=Dg.get(mt);lo.set(mt,new Map([...Array.from(null!==(xt=sn?.entries())&&void 0!==xt?xt:[]),...Array.from(null!==(Pt=ki?.entries())&&void 0!==Pt?Pt:[])]))});const Lg=[],pf=[],SH={};u.forEach(mt=>{const{element:xt,player:Pt,instruction:sn}=mt;if(t.has(xt)){if(l.has(xt))return Pt.onDestroy(()=>Qo(xt,sn.toStyles)),Pt.disabled=!0,Pt.overrideTotalTime(sn.totalTime),void r.push(Pt);let ki=SH;if(or.size>1){let qa=xt;const Sd=[];for(;qa=qa.parentNode;){const Ci=or.get(qa);if(Ci){ki=Ci;break}Sd.push(qa)}Sd.forEach(Ci=>or.set(Ci,ki))}const Xo=this._buildAnimation(Pt.namespaceId,sn,Fi,d,Dg,lo);if(Pt.setRealPlayer(Xo),ki===SH)Lg.push(Pt);else{const qa=this.playersByElement.get(ki);qa&&qa.length&&(Pt.parentPlayer=vd(qa)),r.push(Pt)}}else Ju(xt,sn.fromStyles),Pt.onDestroy(()=>Qo(xt,sn.toStyles)),pf.push(Pt),l.has(xt)&&r.push(Pt)}),pf.forEach(mt=>{const xt=d.get(mt.element);if(xt&&xt.length){const Pt=vd(xt);mt.setRealPlayer(Pt)}}),r.forEach(mt=>{mt.parentPlayer?mt.syncPlayerEvents(mt.parentPlayer):mt.destroy()});for(let mt=0;mt!Xo.destroyed);ki.length?C6(this,xt,ki):this.processLeaveNode(xt)}return w.length=0,Lg.forEach(mt=>{this.players.push(mt),mt.onDone(()=>{mt.destroy();const xt=this.players.indexOf(mt);this.players.splice(xt,1)}),mt.play()}),Lg}elementContainsData(a,e){let t=!1;const r=e[fs];return r&&r.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,r,d){let u=[];if(e){const c=this.playersByQueriedElement.get(a);c&&(u=c)}else{const c=this.playersByElement.get(a);if(c){const o=!d||d==Sg;c.forEach(s=>{s.queued||!o&&s.triggerName!=r||u.push(s)})}}return(t||r)&&(u=u.filter(c=>!(t&&t!=c.namespaceId||r&&r!=c.triggerName))),u}_beforeAnimationBuild(a,e,t){const d=e.element,u=e.isRemovalTransition?void 0:a,c=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const s=o.element,l=s!==d,h=za(t,s,[]);this._getPreviousPlayers(s,l,u,c,e.toState).forEach(m=>{const g=m.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),m.destroy(),h.push(m)})}Ju(d,e.fromStyles)}_buildAnimation(a,e,t,r,d,u){const c=e.triggerName,o=e.element,s=[],l=new Set,h=new Set,p=e.timelines.map(g=>{const f=g.element;l.add(f);const w=f[fs];if(w&&w.removedBeforeQueried)return new Ru(g.duration,g.delay);const N=f!==o,se=function v6(i){const a=[];return oH(i,a),a}((t.get(f)||g6).map(Fi=>Fi.getRealPlayer())).filter(Fi=>!!Fi.element&&Fi.element===f),Pe=d.get(f),ot=u.get(f),Mi=PL(0,this._normalizer,0,g.keyframes,Pe,ot),Pi=this._buildPlayer(g,Mi,se);if(g.subTimeline&&r&&h.add(f),N){const Fi=new GT(a,c,f);Fi.setRealPlayer(Pi),s.push(Fi)}return Pi});s.forEach(g=>{za(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function y6(i,a,e){let t=i.get(a);if(t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&i.delete(a)}return t}(this.playersByQueriedElement,g.element,g))}),l.forEach(g=>ms(g,zL));const m=vd(p);return m.onDestroy(()=>{l.forEach(g=>hf(g,zL)),Qo(o,e.toStyles)}),h.forEach(g=>{za(r,g,[]).push(m)}),m}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new Ru(a.duration,a.delay)}}class GT{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new Ru,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>xT(a,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){za(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function ry(i){return i&&1===i.nodeType}function rH(i,a){const e=i.style.display;return i.style.display=a??"none",e}function aH(i,a,e,t,r){const d=[];e.forEach(o=>d.push(rH(o)));const u=[];t.forEach((o,s)=>{const l=new Map;o.forEach(h=>{const p=a.computeStyle(s,h,r);l.set(h,p),(!p||0==p.length)&&(s[fs]=_6,u.push(s))}),i.set(s,l)});let c=0;return e.forEach(o=>rH(o,d[c++])),u}function sH(i,a){const e=new Map;if(i.forEach(c=>e.set(c,[])),0==a.length)return e;const r=new Set(a),d=new Map;function u(c){if(!c)return 1;let o=d.get(c);if(o)return o;const s=c.parentNode;return o=e.has(s)?s:r.has(s)?1:u(s),d.set(c,o),o}return a.forEach(c=>{const o=u(c);1!==o&&e.get(o).push(c)}),e}function ms(i,a){var e;null===(e=i.classList)||void 0===e||e.add(a)}function hf(i,a){var e;null===(e=i.classList)||void 0===e||e.remove(a)}function C6(i,a,e){vd(e).onDone(()=>i.processLeaveNode(a))}function oH(i,a){for(let e=0;er.add(d)):a.set(i,t),e.delete(i),!0}class ay{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,d)=>{},this._transitionEngine=new A6(a,e,t),this._timelineEngine=new u6(a,e,t),this._transitionEngine.onRemovalComplete=(r,d)=>this.onRemovalComplete(r,d)}registerTrigger(a,e,t,r,d){const u=a+"-"+r;let c=this._triggerCache[u];if(!c){const o=[],l=BT(this._driver,d,o,[]);if(o.length)throw function l4(i,a){return new n.vHH(3404,!1)}();c=function o6(i,a,e){return new l6(i,a,e)}(r,l,this._normalizer),this._triggerCache[u]=c}this._transitionEngine.registerTrigger(e,r,c)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,r){this._transitionEngine.insertNode(a,e,t,r)}onRemove(a,e,t,r){this._transitionEngine.removeNode(a,e,r||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,r){if("@"==t.charAt(0)){const[d,u]=kL(t);this._timelineEngine.command(d,e,u,r)}else this._transitionEngine.trigger(a,e,t,r)}listen(a,e,t,r,d){if("@"==t.charAt(0)){const[u,c]=kL(t);return this._timelineEngine.listen(u,e,c,d)}return this._transitionEngine.listen(a,e,t,r,d)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let S6=(()=>{class i{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let d=i.initialStylesByElement.get(e);d||i.initialStylesByElement.set(e,d=new Map),this._initialStyles=d}start(){this._state<1&&(this._startStyles&&Qo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Qo(this._element,this._initialStyles),this._endStyles&&(Qo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(Ju(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ju(this._element,this._endStyles),this._endStyles=null),Qo(this._element,this._initialStyles),this._state=3)}}return i.initialStylesByElement=new WeakMap,i})();function $T(i){let a=null;return i.forEach((e,t)=>{(function E6(i){return"display"===i||"position"===i})(t)&&(a=a||new Map,a.set(t,e))}),a}class cH{constructor(a,e,t,r){this.element=a,this.keyframes=e,this.options=t,this._specialStyles=r,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(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const e=[];return a.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(a,e,t){return a.animate(this._convertKeyframesToObject(e),t)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&a.set(r,this._finished?t:$L(this.element,r))}),this.currentSnapshot=a}triggerCallback(a){const e="start"===a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class D6{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,e){return!1}containsElement(a,e){return NL(a,e)}getParentElement(a){return LT(a)}query(a,e,t){return VL(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,r,d,u=[]){const o={duration:t,delay:r,fill:0==r?"both":"forwards"};d&&(o.easing=d);const s=new Map,l=u.filter(m=>m instanceof cH);(function R4(i,a){return 0===i||0===a})(t,r)&&l.forEach(m=>{m.currentSnapshot.forEach((g,f)=>s.set(f,g))});let h=function E4(i){return i.length?i[0]instanceof Map?i:i.map(a=>UL(a)):[]}(e).map(m=>xd(m));h=function P4(i,a,e){if(e.size&&a.length){let t=a[0],r=[];if(e.forEach((d,u)=>{t.has(u)||r.push(u),t.set(u,d)}),r.length)for(let d=1;du.set(c,$L(i,c)))}}return a}(a,h,s);const p=function x6(i,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=$T(a[0]),a.length>1&&(t=$T(a[a.length-1]))):a instanceof Map&&(e=$T(a)),e||t?new S6(i,e,t):null}(a,h);return new cH(a,h,o,p)}}let L6=(()=>{class i extends W0{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?G0(e):e;return dH(this._renderer,null,t,"register",[r]),new H6(t,this._renderer)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.FYo),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class H6 extends class A_{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new R6(this._id,a,e||{},this._renderer)}}class R6{constructor(a,e,t,r){this.id=a,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return dH(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,e;return null!==(a=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==a?a:0}}function dH(i,a,e,t,r){return i.setProperty(a,`@@${e}:${t}`,r)}const uH="@.disabled";let P6=(()=>{class i{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(d,u)=>{const c=u?.parentNode(d);c&&u.removeChild(c,d)}}createRenderer(e,t){const d=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let l=this._rendererCache.get(d);return l||(l=new hH("",d,this.engine),this._rendererCache.set(d,l)),l}const u=t.id,c=t.id+"-"+this._currentId;this._currentId++,this.engine.register(c,e);const o=l=>{Array.isArray(l)?l.forEach(o):this.engine.registerTrigger(u,c,e,l.name,l)};return t.data.animation.forEach(o),new k6(this,c,d,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(d=>{const[u,c]=d;u(c)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.FYo),n.LFG(ay),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class hH{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,r=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,r)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,r){this.delegate.setAttribute(a,e,t,r)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,r){this.delegate.setStyle(a,e,t,r)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==uH?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class k6 extends hH{constructor(a,e,t,r){super(e,t,r),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==uH?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.slice(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const r=function O6(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(a);let d=e.slice(1),u="";return"@"!=d.charAt(0)&&([d,u]=function I6(i){const a=i.indexOf(".");return[i.substring(0,a),i.slice(a+1)]}(d)),this.engine.listen(this.namespaceId,r,d,u,c=>{this.factory.scheduleListenerCallback(c._data||-1,t,c)})}return this.delegate.listen(a,e,t)}}const pH=[{provide:W0,useClass:L6},{provide:zT,useFactory:function N6(){return new n6}},{provide:ay,useClass:(()=>{class i extends ay{constructor(e,t,r,d){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0),n.LFG(HT),n.LFG(zT),n.LFG(n.z2F))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})()},{provide:n.FYo,useFactory:function V6(i,a,e){return new P6(i,a,e)},deps:[Me,ay,n.R0b]}],ZT=[{provide:HT,useFactory:()=>new D6},{provide:n.QbO,useValue:"BrowserAnimations"},...pH],fH=[{provide:HT,useClass:jL},{provide:n.QbO,useValue:"NoopAnimations"},...pH];let j6=(()=>{class i{static withConfig(e){return{ngModule:i,providers:e.disableAnimations?fH:ZT}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:ZT,imports:[Zt]}),i})(),F6=(()=>{class i{constructor(e,t,r,d,u){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=d,this.utilsService=u}initializeColors(e,t){return new Promise(r=>{t.forEach(d=>{const u=this.storeService.getProperty("theme")[d.configValue];document.documentElement.style.setProperty(d.cssVariable,u)}),e.forEach(d=>{const u=this.storeService.getProperty("theme")[d.configValue];document.documentElement.style.setProperty(d.cssVariable,u),this.setEntityTheme(d.entity,u)}),r()})}setEntityTheme(e,t){const r=function z6(i){return[ha(tinycolor(i).lighten(52),"50"),ha(tinycolor(i).lighten(37),"100"),ha(tinycolor(i).lighten(26),"200"),ha(tinycolor(i).lighten(12),"300"),ha(tinycolor(i).lighten(6),"400"),ha(tinycolor(i),"500"),ha(tinycolor(i).darken(6),"600"),ha(tinycolor(i).darken(12),"700"),ha(tinycolor(i).darken(18),"800"),ha(tinycolor(i).darken(24),"900"),ha(tinycolor(i).lighten(50).saturate(30),"A100"),ha(tinycolor(i).lighten(30).saturate(30),"A200"),ha(tinycolor(i).lighten(10).saturate(15),"A400"),ha(tinycolor(i).lighten(5).saturate(5),"A700")]}(t);for(const d of r){const o=`--${e}-theme-primary-contrast-${d.name}`,s=d.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${d.name}`,`${d.red},${d.green},${d.blue}`),document.documentElement.style.setProperty(o,s)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const r=document.location.hostname;t?.brandings?.[r]&&this.storeService.setBanding(r),e()},()=>{e()})})}getNoCacheHeaders(){return new C.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Ut),n.LFG(As),n.LFG(ce),n.LFG(Ti))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function ha(i,a){const e=tinycolor(i),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let U6=(()=>{class i{constructor(e,t,r,d){this.initAuthService=e,this.appConfigService=t,this.location=r,this.mfaHandlerService=d,this.entityColorConfigs=[{entity:"user",configValue:"user_color",cssVariable:"--user-color"}],this.colorConfigs=[{configValue:"sidemenu_bg_color",cssVariable:"--side-bg"},{configValue:"sidemenu_hover_color",cssVariable:"--side-hover"},{configValue:"sidemenu_hover_text_color",cssVariable:"--side-text-hover"},{configValue:"sidemenu_active_color",cssVariable:"--side-active"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-text-active"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Tv),n.LFG(F6),n.LFG(T.Ye),n.LFG(vv))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),bH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Rv,Ho]}),i})(),xH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Rv]}),i})(),mW=(()=>{class i{constructor(e,t){(0,T.PM)(t)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,t=[]){return{ngModule:i,providers:e.serverLoaded?[{provide:no,useValue:{...Pv,...e}},{provide:kv,useValue:t,multi:!0},{provide:Qp,useValue:!0}]:[{provide:no,useValue:{...Pv,...e}},{provide:kv,useValue:t,multi:!0}]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qp),n.LFG(n.Lbi))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[bH,qE,xH,bH,qE,xH]}),i})();const gW=new n.OlP("perun-api-service"),_W={provide:C.TP,useExisting:(0,n.Gpc)(()=>gE),multi:!0};function bW(i){return new Vq(i,"./assets/i18n/",".json")}function AW(i){const a={basePath:i.getProperty("api_url")};return new It(a)}const yW=i=>()=>i.initialize();let wW=(()=>{class i{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(fE),n.LFG(tn))},i.\u0275mod=n.oAB({type:i,bootstrap:[pI]}),i.\u0275inj=n.cJS({providers:[fE,{provide:n.ip1,useFactory:yW,multi:!0,deps:[U6]},{provide:It,useFactory:AW,deps:[Ut]},mA,gE,_W,{provide:gW,useClass:D2},ce,{provide:Jl.Hy,useFactory:()=>localStorage}],imports:[Zt,j6,C.JF,po.forRoot({loader:{provide:ea,useFactory:bW,deps:[C.eN]}}),Nq,eo,Lv,nT,Tl,Ka,mW,Qv,TL,gA,gT,Gs,md,Wu,fg,Kp,Xs,mg,qu,ef,IA,MT,rD,JE,LN,ca,Uo,vT,uD,Fu,YU,JC,Wp,Jl.zr.forRoot(),cP]}),i})();(0,n.G48)(),ye().bootstrapModule(wW).catch(i=>console.error(i))},1302:function(Y,G,E){var T;!function(n,H){var D={};!function(n){"use strict";n.__esModule=!0,n.digestLength=32,n.blockSize=64;var H=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function D(ue,oe,re,be,we){for(var xe,Xe,et,ke,De,Re,_t,Ve,ze,Fe,me,_e,Te;we>=64;){for(xe=oe[0],Xe=oe[1],et=oe[2],ke=oe[3],De=oe[4],Re=oe[5],_t=oe[6],Ve=oe[7],Fe=0;Fe<16;Fe++)ue[Fe]=(255&re[me=be+4*Fe])<<24|(255&re[me+1])<<16|(255&re[me+2])<<8|255&re[me+3];for(Fe=16;Fe<64;Fe++)ue[Fe]=((_e=((ze=ue[Fe-2])>>>17|ze<<15)^(ze>>>19|ze<<13)^ze>>>10)+ue[Fe-7]|0)+((Te=((ze=ue[Fe-15])>>>7|ze<<25)^(ze>>>18|ze<<14)^ze>>>3)+ue[Fe-16]|0);for(Fe=0;Fe<64;Fe++)_e=(((De>>>6|De<<26)^(De>>>11|De<<21)^(De>>>25|De<<7))+(De&Re^~De&_t)|0)+(Ve+(H[Fe]+ue[Fe]|0)|0)|0,Te=((xe>>>2|xe<<30)^(xe>>>13|xe<<19)^(xe>>>22|xe<<10))+(xe&Xe^xe&et^Xe&et)|0,Ve=_t,_t=Re,Re=De,De=ke+_e|0,ke=et,et=Xe,Xe=xe,xe=_e+Te|0;oe[0]+=xe,oe[1]+=Xe,oe[2]+=et,oe[3]+=ke,oe[4]+=De,oe[5]+=Re,oe[6]+=_t,oe[7]+=Ve,be+=64,we-=64}return be}var L=function(){function ue(){this.digestLength=n.digestLength,this.blockSize=n.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ue.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ue.prototype.clean=function(){for(var oe=0;oe0){for(;this.bufferLength<64&&re>0;)this.buffer[this.bufferLength++]=oe[be++],re--;64===this.bufferLength&&(D(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(re>=64&&(be=D(this.temp,this.state,oe,be,re),re%=64);re>0;)this.buffer[this.bufferLength++]=oe[be++],re--;return this},ue.prototype.finish=function(oe){if(!this.finished){var re=this.bytesHashed,be=this.bufferLength,we=re/536870912|0,xe=re<<3,Xe=re%64<56?64:128;this.buffer[be]=128;for(var et=be+1;et>>24&255,this.buffer[Xe-7]=we>>>16&255,this.buffer[Xe-6]=we>>>8&255,this.buffer[Xe-5]=we>>>0&255,this.buffer[Xe-4]=xe>>>24&255,this.buffer[Xe-3]=xe>>>16&255,this.buffer[Xe-2]=xe>>>8&255,this.buffer[Xe-1]=xe>>>0&255,D(this.temp,this.state,this.buffer,0,Xe),this.finished=!0}for(et=0;et<8;et++)oe[4*et+0]=this.state[et]>>>24&255,oe[4*et+1]=this.state[et]>>>16&255,oe[4*et+2]=this.state[et]>>>8&255,oe[4*et+3]=this.state[et]>>>0&255;return this},ue.prototype.digest=function(){var oe=new Uint8Array(this.digestLength);return this.finish(oe),oe},ue.prototype._saveState=function(oe){for(var re=0;rethis.blockSize)(new L).update(oe).finish(re).clean();else for(var be=0;be1&&oe.update(ue),re&&oe.update(re),oe.update(be),oe.finish(ue),be[0]++}n.HMAC=O,n.hash=B,n.default=B,n.hmac=U;var ee=new Uint8Array(n.digestLength);n.hkdf=function te(ue,oe,re,be){void 0===oe&&(oe=ee),void 0===be&&(be=32);for(var we=new Uint8Array([1]),xe=U(oe,ue),Xe=new O(xe),et=new Uint8Array(Xe.digestLength),ke=et.length,De=new Uint8Array(be),Re=0;Re>>24&255,Xe[1]=_t>>>16&255,Xe[2]=_t>>>8&255,Xe[3]=_t>>>0&255,we.reset(),we.update(oe),we.update(Xe),we.finish(ke);for(var Ve=0;Ve=te.status}function O(ee){try{ee.dispatchEvent(new MouseEvent("click"))}catch{var te=document.createEvent("MouseEvents");te.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ee.dispatchEvent(te)}}var B="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,U=B.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),W=B.saveAs||("object"!=typeof window||window!==B?function(){}:"download"in HTMLAnchorElement.prototype&&!U?function(ee,te,ae){var ue=B.URL||B.webkitURL,oe=document.createElement("a");oe.download=te=te||ee.name||"download",oe.rel="noopener","string"==typeof ee?(oe.href=ee,oe.origin===location.origin?O(oe):L(oe.href)?D(ee,te,ae):O(oe,oe.target="_blank")):(oe.href=ue.createObjectURL(ee),setTimeout(function(){ue.revokeObjectURL(oe.href)},4e4),setTimeout(function(){O(oe)},0))}:"msSaveOrOpenBlob"in navigator?function(ee,te,ae){if(te=te||ee.name||"download","string"!=typeof ee)navigator.msSaveOrOpenBlob(function H(ee,te){return typeof te>"u"?te={autoBom:!1}:"object"!=typeof te&&(console.warn("Deprecated: Expected third argument to be a object"),te={autoBom:!te}),te.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ee.type)?new Blob(["\ufeff",ee],{type:ee.type}):ee}(ee,ae),te);else if(L(ee))D(ee,te,ae);else{var ue=document.createElement("a");ue.href=ee,ue.target="_blank",setTimeout(function(){O(ue)})}}:function(ee,te,ae,ue){if((ue=ue||open("","_blank"))&&(ue.document.title=ue.document.body.innerText="downloading..."),"string"==typeof ee)return D(ee,te,ae);var oe="application/octet-stream"===ee.type,re=/constructor/i.test(B.HTMLElement)||B.safari,be=/CriOS\/[\d]+/.test(navigator.userAgent);if((be||oe&&re||U)&&typeof FileReader<"u"){var we=new FileReader;we.onloadend=function(){var et=we.result;et=be?et:et.replace(/^data:[^;]*;/,"data:attachment/file;"),ue?ue.location.href=et:location=et,ue=null},we.readAsDataURL(ee)}else{var xe=B.URL||B.webkitURL,Xe=xe.createObjectURL(ee);ue?ue.location=Xe:location.href=Xe,ue=null,setTimeout(function(){xe.revokeObjectURL(Xe)},4e4)}});B.saveAs=W.saveAs=W,Y.exports=W}.apply(G,[]))&&(Y.exports=n)},1158:(Y,G,E)=>{(Y.exports=E(7867)).tz.load(E(1128))},7867:function(Y,G,E){var T,n,H;!function(D,L){"use strict";Y.exports?Y.exports=L(E(5439)):(n=[E(5439)],void 0!==(H="function"==typeof(T=L)?T.apply(G,n):T)&&(Y.exports=H))}(0,function(D){"use strict";void 0===D.version&&D.default&&(D=D.default);var te,O={},B={},U={},W={},ee={};(!D||"string"!=typeof D.version)&&Ii("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var ae=D.version.split("."),ue=+ae[0],oe=+ae[1];function re(pe){return pe>96?pe-87:pe>64?pe-29:pe-48}function be(pe){var Ie=0,ye=pe.split("."),Ye=ye[0],lt=ye[1]||"",ct=1,hi=0,un=1;for(45===pe.charCodeAt(0)&&(Ie=1,un=-1);Ie= 2.6.0. You are using Moment.js "+D.version+". See momentjs.com"),ke.prototype={_set:function(pe){this.name=pe.name,this.abbrs=pe.abbrs,this.untils=pe.untils,this.offsets=pe.offsets,this.population=pe.population},_index:function(pe){var Ye,Ie=+pe,ye=this.untils;for(Ye=0;Yehi&&hn.moveInvalidForward&&(ct=hi),Ie3){var Ie=W[$e(pe)];if(Ie)return Ie;Ii("Moment Timezone found "+pe+" from the Intl api, but did not have that data loaded.")}}catch{}var Zt,hi,un,ye=function ze(){var Ye,lt,ct,pe=(new Date).getFullYear()-2,Ie=new Re(new Date(pe,0,1)),ye=[Ie];for(ct=1;ct<48;ct++)(lt=new Re(new Date(pe,ct,1))).offset!==Ie.offset&&(Ye=Ve(Ie,lt),ye.push(Ye),ye.push(new Re(new Date(Ye.at+6e4)))),Ie=lt;for(ct=0;ct<4;ct++)ye.push(new Re(new Date(pe+ct,0,1))),ye.push(new Re(new Date(pe+ct,6,1)));return ye}(),Ye=ye.length,lt=function _e(pe){var lt,ct,Zt,Ie=pe.length,ye={},Ye=[];for(lt=0;lt0?ct[0].zone.name:void 0}()),te},hn.names=function Ft(){var pe,Ie=[];for(pe in W)W.hasOwnProperty(pe)&&(O[pe]||O[B[pe]])&&W[pe]&&Ie.push(W[pe]);return Ie.sort()},hn.Zone=ke,hn.unpack=et,hn.unpackBase60=be,hn.needsOffset=Tn,hn.moveInvalidForward=!0,hn.moveAmbiguousForward=!1,hn.countries=function cn(){return Object.keys(U)},hn.zonesForCountry=function Je(pe,Ie){if(!(pe=function Oi(pe){return pe=pe.toUpperCase(),U[pe]||null}(pe)))return null;var ye=pe.zones.sort();return Ie?ye.map(function(Ye){return{name:Ye,offset:yt(Ye).utcOffset(new Date)}}):ye};var vi=D.fn;function co(pe){return function(){return this._z?this._z.abbr(this):pe.call(this)}}function pa(pe){return function(){return this._z=null,pe.apply(this,arguments)}}D.tz=hn,D.defaultZone=null,D.updateOffset=function(pe,Ie){var Ye,ye=D.defaultZone;if(void 0===pe._z&&(ye&&Tn(pe)&&!pe._isUTC&&(pe._d=D.utc(pe._a)._d,pe.utc().add(ye.parse(pe),"minutes")),pe._z=ye),pe._z)if(Ye=pe._z.utcOffset(pe),Math.abs(Ye)<16&&(Ye/=60),void 0!==pe.utcOffset){var lt=pe._z;pe.utcOffset(-Ye,Ie),pe._z=lt}else pe.zone(Ye,Ie)},vi.tz=function(pe,Ie){if(pe){if("string"!=typeof pe)throw new Error("Time zone name must be a string, got "+pe+" ["+typeof pe+"]");return this._z=yt(pe),this._z?D.updateOffset(this,Ie):Ii("Moment Timezone has no data for "+pe+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},vi.zoneName=co(vi.zoneName),vi.zoneAbbr=co(vi.zoneAbbr),vi.utc=pa(vi.utc),vi.local=pa(vi.local),vi.utcOffset=function Cr(pe){return function(){return arguments.length>0&&(this._z=null),pe.apply(this,arguments)}}(vi.utcOffset),D.tz.setDefault=function(pe){return(ue<2||2===ue&&oe<9)&&Ii("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+D.version+"."),D.defaultZone=pe?yt(pe):null,D};var zi=D.momentProperties;return"[object Array]"===Object.prototype.toString.call(zi)?(zi.push("_z"),zi.push("_a")):zi&&(zi._z=null),D})},7088:function(Y,G,E){!function(T){"use strict";T.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(H){return/^nm$/i.test(H)},meridiem:function(H,D,L){return H<12?L?"vm":"VM":L?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(H){return H+(1===H||8===H||H>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},2502:function(Y,G,E){!function(T){"use strict";var n=function(B){return 0===B?0:1===B?1:2===B?2:B%100>=3&&B%100<=10?3:B%100>=11?4:5},H={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},D=function(B){return function(U,W,ee,te){var ae=n(U),ue=H[B][n(U)];return 2===ae&&(ue=ue[W?0:1]),ue.replace(/%d/i,U)}},L=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar-dz",{months:L,monthsShort:L,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(B){return"\u0645"===B},meridiem:function(B,U,W){return B<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:D("s"),ss:D("s"),m:D("m"),mm:D("m"),h:D("h"),hh:D("h"),d:D("d"),dd:D("d"),M:D("M"),MM:D("M"),y:D("y"),yy:D("y")},postformat:function(B){return B.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(E(5439))},128:function(Y,G,E){!function(T){"use strict";T.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(E(5439))},4519:function(Y,G,E){!function(T){"use strict";var n={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},H=function(U){return 0===U?0:1===U?1:2===U?2:U%100>=3&&U%100<=10?3:U%100>=11?4:5},D={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},L=function(U){return function(W,ee,te,ae){var ue=H(W),oe=D[U][H(W)];return 2===ue&&(oe=oe[ee?0:1]),oe.replace(/%d/i,W)}},O=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar-ly",{months:O,monthsShort:O,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(U){return"\u0645"===U},meridiem:function(U,W,ee){return U<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:L("s"),ss:L("s"),m:L("m"),mm:L("m"),h:L("h"),hh:L("h"),d:L("d"),dd:L("d"),M:L("M"),MM:L("M"),y:L("y"),yy:L("y")},preparse:function(U){return U.replace(/\u060c/g,",")},postformat:function(U){return U.replace(/\d/g,function(W){return n[W]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},5443:function(Y,G,E){!function(T){"use strict";T.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(E(5439))},7642:function(Y,G,E){!function(T){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},H={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};T.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(L){return"\u0645"===L},meridiem:function(L,O,B){return L<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(L){return L.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(O){return H[O]}).replace(/\u060c/g,",")},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(E(5439))},8592:function(Y,G,E){!function(T){"use strict";T.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(E(5439))},7038:function(Y,G,E){!function(T){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},H={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},D=function(W){return 0===W?0:1===W?1:2===W?2:W%100>=3&&W%100<=10?3:W%100>=11?4:5},L={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},O=function(W){return function(ee,te,ae,ue){var oe=D(ee),re=L[W][D(ee)];return 2===oe&&(re=re[te?0:1]),re.replace(/%d/i,ee)}},B=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar",{months:B,monthsShort:B,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(W){return"\u0645"===W},meridiem:function(W,ee,te){return W<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:O("s"),ss:O("s"),m:O("m"),mm:O("m"),h:O("h"),hh:O("h"),d:O("d"),dd:O("d"),M:O("M"),MM:O("M"),y:O("y"),yy:O("y")},preparse:function(W){return W.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(ee){return H[ee]}).replace(/\u060c/g,",")},postformat:function(W){return W.replace(/\d/g,function(ee){return n[ee]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},1213:function(Y,G,E){!function(T){"use strict";var n={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};T.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(D){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(D)},meridiem:function(D,L,O){return D<4?"gec\u0259":D<12?"s\u0259h\u0259r":D<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(D){if(0===D)return D+"-\u0131nc\u0131";var L=D%10;return D+(n[L]||n[D%100-L]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},9191:function(Y,G,E){!function(T){"use strict";function H(L,O,B){return"m"===B?O?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===B?O?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":L+" "+function n(L,O){var B=L.split("_");return O%10==1&&O%100!=11?B[0]:O%10>=2&&O%10<=4&&(O%100<10||O%100>=20)?B[1]:B[2]}({ss:O?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:O?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:O?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[B],+L)}T.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:H,mm:H,h:H,hh:H,d:"\u0434\u0437\u0435\u043d\u044c",dd:H,M:"\u043c\u0435\u0441\u044f\u0446",MM:H,y:"\u0433\u043e\u0434",yy:H},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(L)},meridiem:function(L,O,B){return L<4?"\u043d\u043e\u0447\u044b":L<12?"\u0440\u0430\u043d\u0456\u0446\u044b":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(L,O){switch(O){case"M":case"d":case"DDD":case"w":case"W":return L%10!=2&&L%10!=3||L%100==12||L%100==13?L+"-\u044b":L+"-\u0456";case"D":return L+"-\u0433\u0430";default:return L}},week:{dow:1,doy:7}})}(E(5439))},322:function(Y,G,E){!function(T){"use strict";T.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(H){var D=H%10,L=H%100;return 0===H?H+"-\u0435\u0432":0===L?H+"-\u0435\u043d":L>10&&L<20?H+"-\u0442\u0438":1===D?H+"-\u0432\u0438":2===D?H+"-\u0440\u0438":7===D||8===D?H+"-\u043c\u0438":H+"-\u0442\u0438"},week:{dow:1,doy:7}})}(E(5439))},8042:function(Y,G,E){!function(T){"use strict";T.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(E(5439))},5903:function(Y,G,E){!function(T){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},H={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};T.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(L){return L.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u09b0\u09be\u09a4"===O?L<4?L:L+12:"\u09ad\u09cb\u09b0"===O||"\u09b8\u0995\u09be\u09b2"===O?L:"\u09a6\u09c1\u09aa\u09c1\u09b0"===O?L>=3?L:L+12:"\u09ac\u09bf\u0995\u09be\u09b2"===O||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===O?L+12:void 0},meridiem:function(L,O,B){return L<4?"\u09b0\u09be\u09a4":L<6?"\u09ad\u09cb\u09b0":L<12?"\u09b8\u0995\u09be\u09b2":L<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":L<18?"\u09ac\u09bf\u0995\u09be\u09b2":L<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(E(5439))},9620:function(Y,G,E){!function(T){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},H={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};T.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(L){return L.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u09b0\u09be\u09a4"===O&&L>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===O&&L<5||"\u09ac\u09bf\u0995\u09be\u09b2"===O?L+12:L},meridiem:function(L,O,B){return L<4?"\u09b0\u09be\u09a4":L<10?"\u09b8\u0995\u09be\u09b2":L<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":L<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(E(5439))},9645:function(Y,G,E){!function(T){"use strict";var n={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},H={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};T.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(L){return L.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===O&&L>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===O&&L<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===O?L+12:L},meridiem:function(L,O,B){return L<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":L<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":L<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":L<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(E(5439))},5020:function(Y,G,E){!function(T){"use strict";function n(re,be,we){return re+" "+function L(re,be){return 2===be?function O(re){var be={m:"v",b:"v",d:"z"};return void 0===be[re.charAt(0)]?re:be[re.charAt(0)]+re.substring(1)}(re):re}({mm:"munutenn",MM:"miz",dd:"devezh"}[we],re)}function D(re){return re>9?D(re%10):re}var B=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],U=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,ue=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];T.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:ue,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:ue,monthsRegex:U,monthsShortRegex:U,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:B,longMonthsParse:B,shortMonthsParse:B,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:n,h:"un eur",hh:"%d eur",d:"un devezh",dd:n,M:"ur miz",MM:n,y:"ur bloaz",yy:function H(re){switch(D(re)){case 1:case 3:case 4:case 5:case 9:return re+" bloaz";default:return re+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(re){return re+(1===re?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(re){return"g.m."===re},meridiem:function(re,be,we){return re<12?"a.m.":"g.m."}})}(E(5439))},4792:function(Y,G,E){!function(T){"use strict";function n(D,L,O){var B=D+" ";switch(O){case"ss":return B+(1===D?"sekunda":2===D||3===D||4===D?"sekunde":"sekundi");case"m":return L?"jedna minuta":"jedne minute";case"mm":return B+(1===D?"minuta":2===D||3===D||4===D?"minute":"minuta");case"h":return L?"jedan sat":"jednog sata";case"hh":return B+(1===D?"sat":2===D||3===D||4===D?"sata":"sati");case"dd":return B+(1===D?"dan":"dana");case"MM":return B+(1===D?"mjesec":2===D||3===D||4===D?"mjeseca":"mjeseci");case"yy":return B+(1===D?"godina":2===D||3===D||4===D?"godine":"godina")}}T.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},7980:function(Y,G,E){!function(T){"use strict";T.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(H,D){var L=1===H?"r":2===H?"n":3===H?"r":4===H?"t":"\xe8";return("w"===D||"W"===D)&&(L="a"),H+L},week:{dow:1,doy:4}})}(E(5439))},7322:function(Y,G,E){!function(T){"use strict";var n={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},H="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),D=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],L=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function O(W){return W>1&&W<5&&1!=~~(W/10)}function B(W,ee,te,ae){var ue=W+" ";switch(te){case"s":return ee||ae?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return ee||ae?ue+(O(W)?"sekundy":"sekund"):ue+"sekundami";case"m":return ee?"minuta":ae?"minutu":"minutou";case"mm":return ee||ae?ue+(O(W)?"minuty":"minut"):ue+"minutami";case"h":return ee?"hodina":ae?"hodinu":"hodinou";case"hh":return ee||ae?ue+(O(W)?"hodiny":"hodin"):ue+"hodinami";case"d":return ee||ae?"den":"dnem";case"dd":return ee||ae?ue+(O(W)?"dny":"dn\xed"):ue+"dny";case"M":return ee||ae?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return ee||ae?ue+(O(W)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):ue+"m\u011bs\xedci";case"y":return ee||ae?"rok":"rokem";case"yy":return ee||ae?ue+(O(W)?"roky":"let"):ue+"lety"}}T.defineLocale("cs",{months:n,monthsShort:H,monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:B,ss:B,m:B,mm:B,h:B,hh:B,d:B,dd:B,M:B,MM:B,y:B,yy:B},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},365:function(Y,G,E){!function(T){"use strict";T.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(H){return H+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(H)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(H)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(E(5439))},2092:function(Y,G,E){!function(T){"use strict";T.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(H){var L="";return H>20?L=40===H||50===H||60===H||80===H||100===H?"fed":"ain":H>0&&(L=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][H]),H+L},week:{dow:1,doy:4}})}(E(5439))},7387:function(Y,G,E){!function(T){"use strict";T.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9459:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return L?U[O][0]:U[O][1]}T.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3694:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return L?U[O][0]:U[O][1]}T.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},4307:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return L?U[O][0]:U[O][1]}T.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9659:function(Y,G,E){!function(T){"use strict";var n=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],H=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];T.defineLocale("dv",{months:n,monthsShort:n,weekdays:H,weekdaysShort:H,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(L){return"\u0789\u078a"===L},meridiem:function(L,O,B){return L<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(L){return L.replace(/\u060c/g,",")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(E(5439))},3460:function(Y,G,E){!function(T){"use strict";T.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(D,L){return D?"string"==typeof L&&/D/.test(L.substring(0,L.indexOf("MMMM")))?this._monthsGenitiveEl[D.month()]:this._monthsNominativeEl[D.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(D,L,O){return D>11?O?"\u03bc\u03bc":"\u039c\u039c":O?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(D){return"\u03bc"===(D+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(D,L){var O=this._calendarEl[D],B=L&&L.hours();return function n(D){return typeof Function<"u"&&D instanceof Function||"[object Function]"===Object.prototype.toString.call(D)}(O)&&(O=O.apply(L)),O.replace("{}",B%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(E(5439))},4369:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:0,doy:4}})}(E(5439))},530:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")}})}(E(5439))},9998:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},3391:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},5414:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")}})}(E(5439))},9615:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:0,doy:6}})}(E(5439))},1248:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},3767:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},4530:function(Y,G,E){!function(T){"use strict";T.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(H){return"p"===H.charAt(0).toLowerCase()},meridiem:function(H,D,L){return H>11?L?"p.t.m.":"P.T.M.":L?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(E(5439))},8944:function(Y,G,E){!function(T){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),H="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],L=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},9116:function(Y,G,E){!function(T){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),H="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],L=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(E(5439))},3609:function(Y,G,E){!function(T){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),H="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],L=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(E(5439))},6866:function(Y,G,E){!function(T){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),H="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],L=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(E(5439))},6725:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[D+"sekundi",D+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[D+" minuti",D+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[D+" tunni",D+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[D+" kuu",D+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[D+" aasta",D+" aastat"]};return L?U[O][2]?U[O][2]:U[O][1]:B?U[O][0]:U[O][1]}T.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:"%d p\xe4eva",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},7931:function(Y,G,E){!function(T){"use strict";T.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6417:function(Y,G,E){!function(T){"use strict";var n={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},H={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};T.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(L){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(L)},meridiem:function(L,O,B){return L<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(L){return L.replace(/[\u06f0-\u06f9]/g,function(O){return H[O]}).replace(/\u060c/g,",")},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(E(5439))},944:function(Y,G,E){!function(T){"use strict";var n="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),H=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",n[7],n[8],n[9]];function D(B,U,W,ee){var te="";switch(W){case"s":return ee?"muutaman sekunnin":"muutama sekunti";case"ss":te=ee?"sekunnin":"sekuntia";break;case"m":return ee?"minuutin":"minuutti";case"mm":te=ee?"minuutin":"minuuttia";break;case"h":return ee?"tunnin":"tunti";case"hh":te=ee?"tunnin":"tuntia";break;case"d":return ee?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":te=ee?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return ee?"kuukauden":"kuukausi";case"MM":te=ee?"kuukauden":"kuukautta";break;case"y":return ee?"vuoden":"vuosi";case"yy":te=ee?"vuoden":"vuotta"}return function L(B,U){return B<10?U?H[B]:n[B]:B}(B,ee)+" "+te}T.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},1766:function(Y,G,E){!function(T){"use strict";T.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(H){return H},week:{dow:1,doy:4}})}(E(5439))},5867:function(Y,G,E){!function(T){"use strict";T.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},6848:function(Y,G,E){!function(T){"use strict";T.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(H,D){switch(D){default:case"M":case"Q":case"D":case"DDD":case"d":return H+(1===H?"er":"e");case"w":case"W":return H+(1===H?"re":"e")}}})}(E(5439))},7773:function(Y,G,E){!function(T){"use strict";T.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(H,D){switch(D){default:case"M":case"Q":case"D":case"DDD":case"d":return H+(1===H?"er":"e");case"w":case"W":return H+(1===H?"re":"e")}},week:{dow:1,doy:4}})}(E(5439))},1636:function(Y,G,E){!function(T){"use strict";var D=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,L=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];T.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:D,monthsShortRegex:D,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:L,longMonthsParse:L,shortMonthsParse:L,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(B,U){switch(U){case"D":return B+(1===B?"er":"");default:case"M":case"Q":case"DDD":case"d":return B+(1===B?"er":"e");case"w":case"W":return B+(1===B?"re":"e")}},week:{dow:1,doy:4}})}(E(5439))},4940:function(Y,G,E){!function(T){"use strict";var n="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),H="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");T.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(L,O){return L?/-MMM-/.test(O)?H[L.month()]:n[L.month()]:n},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1402:function(Y,G,E){!function(T){"use strict";T.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(U){return U+(1===U?"d":U%10==2?"na":"mh")},week:{dow:1,doy:4}})}(E(5439))},6924:function(Y,G,E){!function(T){"use strict";T.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(U){return U+(1===U?"d":U%10==2?"na":"mh")},week:{dow:1,doy:4}})}(E(5439))},6398:function(Y,G,E){!function(T){"use strict";T.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(H){return 0===H.indexOf("un")?"n"+H:"en "+H},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},2457:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[D+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",D+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[D+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",D+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[D+" \u0935\u0930\u093e\u0902\u0928\u0940",D+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[D+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",D+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[D+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",D+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[D+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",D+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return B?U[O][0]:U[O][1]}T.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(D,L){return"D"===L?D+"\u0935\u0947\u0930":D},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(D,L){return 12===D&&(D=0),"\u0930\u093e\u0924\u0940"===L?D<4?D:D+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===L?D:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===L?D>12?D:D+12:"\u0938\u093e\u0902\u091c\u0947"===L?D+12:void 0},meridiem:function(D,L,O){return D<4?"\u0930\u093e\u0924\u0940":D<12?"\u0938\u0915\u093e\u0933\u0940\u0902":D<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":D<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(E(5439))},2545:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={s:["thoddea sekondamni","thodde sekond"],ss:[D+" sekondamni",D+" sekond"],m:["eka mintan","ek minut"],mm:[D+" mintamni",D+" mintam"],h:["eka voran","ek vor"],hh:[D+" voramni",D+" voram"],d:["eka disan","ek dis"],dd:[D+" disamni",D+" dis"],M:["eka mhoinean","ek mhoino"],MM:[D+" mhoineamni",D+" mhoine"],y:["eka vorsan","ek voros"],yy:[D+" vorsamni",D+" vorsam"]};return B?U[O][0]:U[O][1]}T.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(D,L){return"D"===L?D+"er":D},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(D,L){return 12===D&&(D=0),"rati"===L?D<4?D:D+12:"sokallim"===L?D:"donparam"===L?D>12?D:D+12:"sanje"===L?D+12:void 0},meridiem:function(D,L,O){return D<4?"rati":D<12?"sokallim":D<16?"donparam":D<20?"sanje":"rati"}})}(E(5439))},2641:function(Y,G,E){!function(T){"use strict";var n={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},H={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};T.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(L){return L.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u0ab0\u0abe\u0aa4"===O?L<4?L:L+12:"\u0ab8\u0ab5\u0abe\u0ab0"===O?L:"\u0aac\u0aaa\u0acb\u0ab0"===O?L>=10?L:L+12:"\u0ab8\u0abe\u0a82\u0a9c"===O?L+12:void 0},meridiem:function(L,O,B){return L<4?"\u0ab0\u0abe\u0aa4":L<10?"\u0ab8\u0ab5\u0abe\u0ab0":L<17?"\u0aac\u0aaa\u0acb\u0ab0":L<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(E(5439))},7536:function(Y,G,E){!function(T){"use strict";T.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(H){return 2===H?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":H+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(H){return 2===H?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":H+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(H){return 2===H?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":H+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(H){return 2===H?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":H%10==0&&10!==H?H+" \u05e9\u05e0\u05d4":H+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(H){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(H)},meridiem:function(H,D,L){return H<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":H<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":H<12?L?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":H<18?L?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(E(5439))},6335:function(Y,G,E){!function(T){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},H={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},D=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];T.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:D,longMonthsParse:D,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(B){return B.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(U){return H[U]})},postformat:function(B){return B.replace(/\d/g,function(U){return n[U]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(B,U){return 12===B&&(B=0),"\u0930\u093e\u0924"===U?B<4?B:B+12:"\u0938\u0941\u092c\u0939"===U?B:"\u0926\u094b\u092a\u0939\u0930"===U?B>=10?B:B+12:"\u0936\u093e\u092e"===U?B+12:void 0},meridiem:function(B,U,W){return B<4?"\u0930\u093e\u0924":B<10?"\u0938\u0941\u092c\u0939":B<17?"\u0926\u094b\u092a\u0939\u0930":B<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(E(5439))},7458:function(Y,G,E){!function(T){"use strict";function n(D,L,O){var B=D+" ";switch(O){case"ss":return B+(1===D?"sekunda":2===D||3===D||4===D?"sekunde":"sekundi");case"m":return L?"jedna minuta":"jedne minute";case"mm":return B+(1===D?"minuta":2===D||3===D||4===D?"minute":"minuta");case"h":return L?"jedan sat":"jednog sata";case"hh":return B+(1===D?"sat":2===D||3===D||4===D?"sata":"sati");case"dd":return B+(1===D?"dan":"dana");case"MM":return B+(1===D?"mjesec":2===D||3===D||4===D?"mjeseca":"mjeseci");case"yy":return B+(1===D?"godina":2===D||3===D||4===D?"godine":"godina")}}T.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6540:function(Y,G,E){!function(T){"use strict";var n="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function H(O,B,U,W){var ee=O;switch(U){case"s":return W||B?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return ee+(W||B)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(W||B?" perc":" perce");case"mm":return ee+(W||B?" perc":" perce");case"h":return"egy"+(W||B?" \xf3ra":" \xf3r\xe1ja");case"hh":return ee+(W||B?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(W||B?" nap":" napja");case"dd":return ee+(W||B?" nap":" napja");case"M":return"egy"+(W||B?" h\xf3nap":" h\xf3napja");case"MM":return ee+(W||B?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(W||B?" \xe9v":" \xe9ve");case"yy":return ee+(W||B?" \xe9v":" \xe9ve")}return""}function D(O){return(O?"":"[m\xfalt] ")+"["+n[this.day()]+"] LT[-kor]"}T.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(O){return"u"===O.charAt(1).toLowerCase()},meridiem:function(O,B,U){return O<12?!0===U?"de":"DE":!0===U?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return D.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return D.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:H,ss:H,m:H,mm:H,h:H,hh:H,d:H,dd:H,M:H,MM:H,y:H,yy:H},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},5283:function(Y,G,E){!function(T){"use strict";T.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(H){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(H)},meridiem:function(H){return H<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":H<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":H<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(H,D){switch(D){case"DDD":case"w":case"W":case"DDDo":return 1===H?H+"-\u056b\u0576":H+"-\u0580\u0564";default:return H}},week:{dow:1,doy:7}})}(E(5439))},8780:function(Y,G,E){!function(T){"use strict";T.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(H,D){return 12===H&&(H=0),"pagi"===D?H:"siang"===D?H>=11?H:H+12:"sore"===D||"malam"===D?H+12:void 0},meridiem:function(H,D,L){return H<11?"pagi":H<15?"siang":H<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(E(5439))},4205:function(Y,G,E){!function(T){"use strict";function n(L){return L%100==11||L%10!=1}function H(L,O,B,U){var W=L+" ";switch(B){case"s":return O||U?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return n(L)?W+(O||U?"sek\xfandur":"sek\xfandum"):W+"sek\xfanda";case"m":return O?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return n(L)?W+(O||U?"m\xedn\xfatur":"m\xedn\xfatum"):O?W+"m\xedn\xfata":W+"m\xedn\xfatu";case"hh":return n(L)?W+(O||U?"klukkustundir":"klukkustundum"):W+"klukkustund";case"d":return O?"dagur":U?"dag":"degi";case"dd":return n(L)?O?W+"dagar":W+(U?"daga":"d\xf6gum"):O?W+"dagur":W+(U?"dag":"degi");case"M":return O?"m\xe1nu\xf0ur":U?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return n(L)?O?W+"m\xe1nu\xf0ir":W+(U?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):O?W+"m\xe1nu\xf0ur":W+(U?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return O||U?"\xe1r":"\xe1ri";case"yy":return n(L)?W+(O||U?"\xe1r":"\xe1rum"):W+(O||U?"\xe1r":"\xe1ri")}}T.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:H,ss:H,m:H,mm:H,h:"klukkustund",hh:H,d:H,dd:H,M:H,MM:H,y:H,yy:H},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9985:function(Y,G,E){!function(T){"use strict";T.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(H){return(/^[0-9].+$/.test(H)?"tra":"in")+" "+H},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},4211:function(Y,G,E){!function(T){"use strict";T.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},1003:function(Y,G,E){!function(T){"use strict";T.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(H,D){return"\u5143"===D[1]?1:parseInt(D[1]||H,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(H){return"\u5348\u5f8c"===H},meridiem:function(H,D,L){return H<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(H){return H.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(H){return this.week()!==H.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(H,D){switch(D){case"y":return 1===H?"\u5143\u5e74":H+"\u5e74";case"d":case"D":case"DDD":return H+"\u65e5";default:return H}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(E(5439))},420:function(Y,G,E){!function(T){"use strict";T.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(H,D){return 12===H&&(H=0),"enjing"===D?H:"siyang"===D?H>=11?H:H+12:"sonten"===D||"ndalu"===D?H+12:void 0},meridiem:function(H,D,L){return H<11?"enjing":H<15?"siyang":H<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(E(5439))},851:function(Y,G,E){!function(T){"use strict";T.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(H){return H.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(D,L,O){return"\u10d8"===O?L+"\u10e8\u10d8":L+O+"\u10e8\u10d8"})},past:function(H){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(H)?H.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(H)?H.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):H},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(H){return 0===H?H:1===H?H+"-\u10da\u10d8":H<20||H<=100&&H%20==0||H%100==0?"\u10db\u10d4-"+H:H+"-\u10d4"},week:{dow:1,doy:7}})}(E(5439))},6074:function(Y,G,E){!function(T){"use strict";var n={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};T.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},3343:function(Y,G,E){!function(T){"use strict";var n={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},H={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};T.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(L){return"\u179b\u17d2\u1784\u17b6\u1785"===L},meridiem:function(L,O,B){return L<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(L){return L.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},week:{dow:1,doy:4}})}(E(5439))},4799:function(Y,G,E){!function(T){"use strict";var n={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},H={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};T.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(L){return L.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===O?L<4?L:L+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===O?L:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===O?L>=10?L:L+12:"\u0cb8\u0c82\u0c9c\u0cc6"===O?L+12:void 0},meridiem:function(L,O,B){return L<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":L<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":L<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":L<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(L){return L+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(E(5439))},3549:function(Y,G,E){!function(T){"use strict";T.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"\uc77c";case"M":return H+"\uc6d4";case"w":case"W":return H+"\uc8fc";default:return H}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(H){return"\uc624\ud6c4"===H},meridiem:function(H,D,L){return H<12?"\uc624\uc804":"\uc624\ud6c4"}})}(E(5439))},1037:function(Y,G,E){!function(T){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},H={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},D=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];T.defineLocale("ku",{months:D,monthsShort:D,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(O){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(O)},meridiem:function(O,B,U){return O<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(O){return O.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(B){return H[B]}).replace(/\u060c/g,",")},postformat:function(O){return O.replace(/\d/g,function(B){return n[B]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},3125:function(Y,G,E){!function(T){"use strict";var n={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};T.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},9586:function(Y,G,E){!function(T){"use strict";function n(B,U,W,ee){var te={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return U?te[W][0]:te[W][1]}function L(B){if(B=parseInt(B,10),isNaN(B))return!1;if(B<0)return!0;if(B<10)return 4<=B&&B<=7;if(B<100){var U=B%10;return L(0===U?B/10:U)}if(B<1e4){for(;B>=10;)B/=10;return L(B)}return L(B/=1e3)}T.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function H(B){return L(B.substr(0,B.indexOf(" ")))?"a "+B:"an "+B},past:function D(B){return L(B.substr(0,B.indexOf(" ")))?"viru "+B:"virun "+B},s:"e puer Sekonnen",ss:"%d Sekonnen",m:n,mm:"%d Minutten",h:n,hh:"%d Stonnen",d:n,dd:"%d Deeg",M:n,MM:"%d M\xe9int",y:n,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2349:function(Y,G,E){!function(T){"use strict";T.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(H){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===H},meridiem:function(H,D,L){return H<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(H){return"\u0e97\u0eb5\u0ec8"+H}})}(E(5439))},2400:function(Y,G,E){!function(T){"use strict";var n={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function D(W,ee,te,ae){return ee?O(te)[0]:ae?O(te)[1]:O(te)[2]}function L(W){return W%10==0||W>10&&W<20}function O(W){return n[W].split("_")}function B(W,ee,te,ae){var ue=W+" ";return 1===W?ue+D(0,ee,te[0],ae):ee?ue+(L(W)?O(te)[1]:O(te)[0]):ae?ue+O(te)[1]:ue+(L(W)?O(te)[1]:O(te)[2])}T.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function H(W,ee,te,ae){return ee?"kelios sekund\u0117s":ae?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:B,m:D,mm:B,h:D,hh:B,d:D,dd:B,M:D,MM:B,y:D,yy:B},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(W){return W+"-oji"},week:{dow:1,doy:4}})}(E(5439))},9991:function(Y,G,E){!function(T){"use strict";var n={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function H(U,W,ee){return ee?W%10==1&&W%100!=11?U[2]:U[3]:W%10==1&&W%100!=11?U[0]:U[1]}function D(U,W,ee){return U+" "+H(n[ee],U,W)}function L(U,W,ee){return H(n[ee],U,W)}T.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function O(U,W){return W?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:D,m:L,mm:D,h:L,hh:D,d:L,dd:D,M:L,MM:D,y:L,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8477:function(Y,G,E){!function(T){"use strict";var n={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(D,L){return 1===D?L[0]:D>=2&&D<=4?L[1]:L[2]},translate:function(D,L,O){var B=n.words[O];return 1===O.length?L?B[0]:B[1]:D+" "+n.correctGrammaticalCase(D,B)}};T.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:"dan",dd:n.translate,M:"mjesec",MM:n.translate,y:"godinu",yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},5118:function(Y,G,E){!function(T){"use strict";T.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},5943:function(Y,G,E){!function(T){"use strict";T.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(H){var D=H%10,L=H%100;return 0===H?H+"-\u0435\u0432":0===L?H+"-\u0435\u043d":L>10&&L<20?H+"-\u0442\u0438":1===D?H+"-\u0432\u0438":2===D?H+"-\u0440\u0438":7===D||8===D?H+"-\u043c\u0438":H+"-\u0442\u0438"},week:{dow:1,doy:7}})}(E(5439))},3849:function(Y,G,E){!function(T){"use strict";T.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(H,D){return 12===H&&(H=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===D&&H>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===D||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===D?H+12:H},meridiem:function(H,D,L){return H<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":H<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":H<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":H<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(E(5439))},1977:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){switch(O){case"s":return L?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return D+(L?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return D+(L?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return D+(L?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return D+(L?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return D+(L?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return D+(L?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return D}}T.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(D){return"\u04ae\u0425"===D},meridiem:function(D,L,O){return D<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(D,L){switch(L){case"d":case"D":case"DDD":return D+" \u04e9\u0434\u04e9\u0440";default:return D}}})}(E(5439))},6184:function(Y,G,E){!function(T){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},H={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function D(O,B,U,W){var ee="";if(B)switch(U){case"s":ee="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":ee="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":ee="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":ee="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":ee="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":ee="%d \u0924\u093e\u0938";break;case"d":ee="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":ee="%d \u0926\u093f\u0935\u0938";break;case"M":ee="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":ee="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":ee="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":ee="%d \u0935\u0930\u094d\u0937\u0947"}else switch(U){case"s":ee="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":ee="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":ee="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":ee="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":ee="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":ee="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":ee="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":ee="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":ee="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":ee="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":ee="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":ee="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return ee.replace(/%d/i,O)}T.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},preparse:function(O){return O.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(B){return H[B]})},postformat:function(O){return O.replace(/\d/g,function(B){return n[B]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(O,B){return 12===O&&(O=0),"\u092a\u0939\u093e\u091f\u0947"===B||"\u0938\u0915\u093e\u0933\u0940"===B?O:"\u0926\u0941\u092a\u093e\u0930\u0940"===B||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===B||"\u0930\u093e\u0924\u094d\u0930\u0940"===B?O>=12?O:O+12:void 0},meridiem:function(O,B,U){return O>=0&&O<6?"\u092a\u0939\u093e\u091f\u0947":O<12?"\u0938\u0915\u093e\u0933\u0940":O<17?"\u0926\u0941\u092a\u093e\u0930\u0940":O<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(E(5439))},4524:function(Y,G,E){!function(T){"use strict";T.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(H,D){return 12===H&&(H=0),"pagi"===D?H:"tengahari"===D?H>=11?H:H+12:"petang"===D||"malam"===D?H+12:void 0},meridiem:function(H,D,L){return H<11?"pagi":H<15?"tengahari":H<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(E(5439))},485:function(Y,G,E){!function(T){"use strict";T.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(H,D){return 12===H&&(H=0),"pagi"===D?H:"tengahari"===D?H>=11?H:H+12:"petang"===D||"malam"===D?H+12:void 0},meridiem:function(H,D,L){return H<11?"pagi":H<15?"tengahari":H<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(E(5439))},6681:function(Y,G,E){!function(T){"use strict";T.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},2024:function(Y,G,E){!function(T){"use strict";var n={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},H={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};T.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(L){return L.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},week:{dow:1,doy:4}})}(E(5439))},2688:function(Y,G,E){!function(T){"use strict";T.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8914:function(Y,G,E){!function(T){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},H={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};T.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u0930\u093e\u0924\u093f"===O?L<4?L:L+12:"\u092c\u093f\u0939\u093e\u0928"===O?L:"\u0926\u093f\u0909\u0901\u0938\u094b"===O?L>=10?L:L+12:"\u0938\u093e\u0901\u091d"===O?L+12:void 0},meridiem:function(L,O,B){return L<3?"\u0930\u093e\u0924\u093f":L<12?"\u092c\u093f\u0939\u093e\u0928":L<16?"\u0926\u093f\u0909\u0901\u0938\u094b":L<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(E(5439))},2272:function(Y,G,E){!function(T){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),H="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),D=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],L=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;T.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(B){return B+(1===B||8===B||B>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1758:function(Y,G,E){!function(T){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),H="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),D=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],L=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;T.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(B){return B+(1===B||8===B||B>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1510:function(Y,G,E){!function(T){"use strict";T.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2797:function(Y,G,E){!function(T){"use strict";T.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(H,D){var L=1===H?"r":2===H?"n":3===H?"r":4===H?"t":"\xe8";return("w"===D||"W"===D)&&(L="a"),H+L},week:{dow:1,doy:4}})}(E(5439))},7944:function(Y,G,E){!function(T){"use strict";var n={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},H={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};T.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(L){return L.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u0a30\u0a3e\u0a24"===O?L<4?L:L+12:"\u0a38\u0a35\u0a47\u0a30"===O?L:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===O?L>=10?L:L+12:"\u0a38\u0a3c\u0a3e\u0a2e"===O?L+12:void 0},meridiem:function(L,O,B){return L<4?"\u0a30\u0a3e\u0a24":L<10?"\u0a38\u0a35\u0a47\u0a30":L<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":L<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(E(5439))},1605:function(Y,G,E){!function(T){"use strict";var n="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),H="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),D=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function L(U){return U%10<5&&U%10>1&&~~(U/10)%10!=1}function O(U,W,ee){var te=U+" ";switch(ee){case"ss":return te+(L(U)?"sekundy":"sekund");case"m":return W?"minuta":"minut\u0119";case"mm":return te+(L(U)?"minuty":"minut");case"h":return W?"godzina":"godzin\u0119";case"hh":return te+(L(U)?"godziny":"godzin");case"ww":return te+(L(U)?"tygodnie":"tygodni");case"MM":return te+(L(U)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return te+(L(U)?"lata":"lat")}}T.defineLocale("pl",{months:function(U,W){return U?/D MMMM/.test(W)?H[U.month()]:n[U.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:O,m:O,mm:O,h:O,hh:O,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:O,M:"miesi\u0105c",MM:O,y:"rok",yy:O},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3840:function(Y,G,E){!function(T){"use strict";T.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(E(5439))},4225:function(Y,G,E){!function(T){"use strict";T.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},5128:function(Y,G,E){!function(T){"use strict";function n(D,L,O){var U=" ";return(D%100>=20||D>=100&&D%100==0)&&(U=" de "),D+U+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[O]}T.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:n,m:"un minut",mm:n,h:"o or\u0103",hh:n,d:"o zi",dd:n,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:n,M:"o lun\u0103",MM:n,y:"un an",yy:n},week:{dow:1,doy:7}})}(E(5439))},5127:function(Y,G,E){!function(T){"use strict";function H(O,B,U){return"m"===U?B?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":O+" "+function n(O,B){var U=O.split("_");return B%10==1&&B%100!=11?U[0]:B%10>=2&&B%10<=4&&(B%100<10||B%100>=20)?U[1]:U[2]}({ss:B?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:B?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[U],+O)}var D=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];T.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:D,longMonthsParse:D,shortMonthsParse:D,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(O){if(O.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(O){if(O.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:H,m:H,mm:H,h:"\u0447\u0430\u0441",hh:H,d:"\u0434\u0435\u043d\u044c",dd:H,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:H,M:"\u043c\u0435\u0441\u044f\u0446",MM:H,y:"\u0433\u043e\u0434",yy:H},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(O){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(O)},meridiem:function(O,B,U){return O<4?"\u043d\u043e\u0447\u0438":O<12?"\u0443\u0442\u0440\u0430":O<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(O,B){switch(B){case"M":case"d":case"DDD":return O+"-\u0439";case"D":return O+"-\u0433\u043e";case"w":case"W":return O+"-\u044f";default:return O}},week:{dow:1,doy:4}})}(E(5439))},2525:function(Y,G,E){!function(T){"use strict";var n=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],H=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];T.defineLocale("sd",{months:n,monthsShort:n,weekdays:H,weekdaysShort:H,weekdaysMin:H,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(L){return"\u0634\u0627\u0645"===L},meridiem:function(L,O,B){return L<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(L){return L.replace(/\u060c/g,",")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(E(5439))},9893:function(Y,G,E){!function(T){"use strict";T.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3123:function(Y,G,E){!function(T){"use strict";T.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(H){return H+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(H){return"\u0db4.\u0dc0."===H||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===H},meridiem:function(H,D,L){return H>11?L?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":L?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(E(5439))},3027:function(Y,G,E){!function(T){"use strict";var n="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),H="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function D(B){return B>1&&B<5}function L(B,U,W,ee){var te=B+" ";switch(W){case"s":return U||ee?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return U||ee?te+(D(B)?"sekundy":"sek\xfand"):te+"sekundami";case"m":return U?"min\xfata":ee?"min\xfatu":"min\xfatou";case"mm":return U||ee?te+(D(B)?"min\xfaty":"min\xfat"):te+"min\xfatami";case"h":return U?"hodina":ee?"hodinu":"hodinou";case"hh":return U||ee?te+(D(B)?"hodiny":"hod\xedn"):te+"hodinami";case"d":return U||ee?"de\u0148":"d\u0148om";case"dd":return U||ee?te+(D(B)?"dni":"dn\xed"):te+"d\u0148ami";case"M":return U||ee?"mesiac":"mesiacom";case"MM":return U||ee?te+(D(B)?"mesiace":"mesiacov"):te+"mesiacmi";case"y":return U||ee?"rok":"rokom";case"yy":return U||ee?te+(D(B)?"roky":"rokov"):te+"rokmi"}}T.defineLocale("sk",{months:n,monthsShort:H,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:L,ss:L,m:L,mm:L,h:L,hh:L,d:L,dd:L,M:L,MM:L,y:L,yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8106:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U=D+" ";switch(O){case"s":return L||B?"nekaj sekund":"nekaj sekundami";case"ss":return U+(1===D?L?"sekundo":"sekundi":2===D?L||B?"sekundi":"sekundah":D<5?L||B?"sekunde":"sekundah":"sekund");case"m":return L?"ena minuta":"eno minuto";case"mm":return U+(1===D?L?"minuta":"minuto":2===D?L||B?"minuti":"minutama":D<5?L||B?"minute":"minutami":L||B?"minut":"minutami");case"h":return L?"ena ura":"eno uro";case"hh":return U+(1===D?L?"ura":"uro":2===D?L||B?"uri":"urama":D<5?L||B?"ure":"urami":L||B?"ur":"urami");case"d":return L||B?"en dan":"enim dnem";case"dd":return U+(1===D?L||B?"dan":"dnem":2===D?L||B?"dni":"dnevoma":L||B?"dni":"dnevi");case"M":return L||B?"en mesec":"enim mesecem";case"MM":return U+(1===D?L||B?"mesec":"mesecem":2===D?L||B?"meseca":"mesecema":D<5?L||B?"mesece":"meseci":L||B?"mesecev":"meseci");case"y":return L||B?"eno leto":"enim letom";case"yy":return U+(1===D?L||B?"leto":"letom":2===D?L||B?"leti":"letoma":D<5?L||B?"leta":"leti":L||B?"let":"leti")}}T.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},8799:function(Y,G,E){!function(T){"use strict";T.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(H){return"M"===H.charAt(0)},meridiem:function(H,D,L){return H<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2872:function(Y,G,E){!function(T){"use strict";var n={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(D,L){return D%10>=1&&D%10<=4&&(D%100<10||D%100>=20)?D%10==1?L[0]:L[1]:L[2]},translate:function(D,L,O,B){var W,U=n.words[O];return 1===O.length?"y"===O&&L?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":B||L?U[0]:U[1]:(W=n.correctGrammaticalCase(D,U),"yy"===O&&L&&"\u0433\u043e\u0434\u0438\u043d\u0443"===W?D+" \u0433\u043e\u0434\u0438\u043d\u0430":D+" "+W)}};T.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},7949:function(Y,G,E){!function(T){"use strict";var n={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(D,L){return D%10>=1&&D%10<=4&&(D%100<10||D%100>=20)?D%10==1?L[0]:L[1]:L[2]},translate:function(D,L,O,B){var W,U=n.words[O];return 1===O.length?"y"===O&&L?"jedna godina":B||L?U[0]:U[1]:(W=n.correctGrammaticalCase(D,U),"yy"===O&&L&&"godinu"===W?D+" godina":D+" "+W)}};T.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6167:function(Y,G,E){!function(T){"use strict";T.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(H,D,L){return H<11?"ekuseni":H<15?"emini":H<19?"entsambama":"ebusuku"},meridiemHour:function(H,D){return 12===H&&(H=0),"ekuseni"===D?H:"emini"===D?H>=11?H:H+12:"entsambama"===D||"ebusuku"===D?0===H?0:H+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(E(5439))},9713:function(Y,G,E){!function(T){"use strict";T.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?":e":1===D||2===D?":a":":e")},week:{dow:1,doy:4}})}(E(5439))},1982:function(Y,G,E){!function(T){"use strict";T.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(E(5439))},2732:function(Y,G,E){!function(T){"use strict";var n={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},H={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};T.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(L){return L+"\u0bb5\u0ba4\u0bc1"},preparse:function(L){return L.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(L,O,B){return L<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":L<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":L<10?" \u0b95\u0bbe\u0bb2\u0bc8":L<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":L<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":L<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(L,O){return 12===L&&(L=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===O?L<2?L:L+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===O||"\u0b95\u0bbe\u0bb2\u0bc8"===O||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===O&&L>=10?L:L+12},week:{dow:0,doy:6}})}(E(5439))},3636:function(Y,G,E){!function(T){"use strict";T.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===D?H<4?H:H+12:"\u0c09\u0c26\u0c2f\u0c02"===D?H:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===D?H>=10?H:H+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===D?H+12:void 0},meridiem:function(H,D,L){return H<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":H<10?"\u0c09\u0c26\u0c2f\u0c02":H<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":H<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(E(5439))},2115:function(Y,G,E){!function(T){"use strict";T.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},9801:function(Y,G,E){!function(T){"use strict";var n={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};T.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(D,L){return 12===D&&(D=0),"\u0448\u0430\u0431"===L?D<4?D:D+12:"\u0441\u0443\u0431\u04b3"===L?D:"\u0440\u04ef\u0437"===L?D>=11?D:D+12:"\u0431\u0435\u0433\u043e\u04b3"===L?D+12:void 0},meridiem:function(D,L,O){return D<4?"\u0448\u0430\u0431":D<11?"\u0441\u0443\u0431\u04b3":D<16?"\u0440\u04ef\u0437":D<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},2868:function(Y,G,E){!function(T){"use strict";T.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(H){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===H},meridiem:function(H,D,L){return H<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(E(5439))},1310:function(Y,G,E){!function(T){"use strict";var n={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};T.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(D,L){switch(L){case"d":case"D":case"Do":case"DD":return D;default:if(0===D)return D+"'unjy";var O=D%10;return D+(n[O]||n[D%100-O]||n[D>=100?100:null])}},week:{dow:1,doy:7}})}(E(5439))},2360:function(Y,G,E){!function(T){"use strict";T.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(H){return H},week:{dow:1,doy:4}})}(E(5439))},6645:function(Y,G,E){!function(T){"use strict";var n="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function L(U,W,ee,te){var ae=function O(U){var W=Math.floor(U%1e3/100),ee=Math.floor(U%100/10),te=U%10,ae="";return W>0&&(ae+=n[W]+"vatlh"),ee>0&&(ae+=(""!==ae?" ":"")+n[ee]+"maH"),te>0&&(ae+=(""!==ae?" ":"")+n[te]),""===ae?"pagh":ae}(U);switch(ee){case"ss":return ae+" lup";case"mm":return ae+" tup";case"hh":return ae+" rep";case"dd":return ae+" jaj";case"MM":return ae+" jar";case"yy":return ae+" DIS"}}T.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function H(U){var W=U;return-1!==U.indexOf("jaj")?W.slice(0,-3)+"leS":-1!==U.indexOf("jar")?W.slice(0,-3)+"waQ":-1!==U.indexOf("DIS")?W.slice(0,-3)+"nem":W+" pIq"},past:function D(U){var W=U;return-1!==U.indexOf("jaj")?W.slice(0,-3)+"Hu\u2019":-1!==U.indexOf("jar")?W.slice(0,-3)+"wen":-1!==U.indexOf("DIS")?W.slice(0,-3)+"ben":W+" ret"},s:"puS lup",ss:L,m:"wa\u2019 tup",mm:L,h:"wa\u2019 rep",hh:L,d:"wa\u2019 jaj",dd:L,M:"wa\u2019 jar",MM:L,y:"wa\u2019 DIS",yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8374:function(Y,G,E){!function(T){"use strict";var n={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};T.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(D,L,O){return D<12?O?"\xf6\xf6":"\xd6\xd6":O?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(D){return"\xf6s"===D||"\xd6S"===D},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(D,L){switch(L){case"d":case"D":case"Do":case"DD":return D;default:if(0===D)return D+"'\u0131nc\u0131";var O=D%10;return D+(n[O]||n[D%100-O]||n[D>=100?100:null])}},week:{dow:1,doy:7}})}(E(5439))},256:function(Y,G,E){!function(T){"use strict";function H(D,L,O,B){var U={s:["viensas secunds","'iensas secunds"],ss:[D+" secunds",D+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[D+" m\xeduts",D+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[D+" \xfeoras",D+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[D+" ziuas",D+" ziuas"],M:["'n mes","'iens mes"],MM:[D+" mesen",D+" mesen"],y:["'n ar","'iens ar"],yy:[D+" ars",D+" ars"]};return B||L?U[O][0]:U[O][1]}T.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(D){return"d'o"===D.toLowerCase()},meridiem:function(D,L,O){return D>11?O?"d'o":"D'O":O?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:H,ss:H,m:H,mm:H,h:H,hh:H,d:H,dd:H,M:H,MM:H,y:H,yy:H},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},1631:function(Y,G,E){!function(T){"use strict";T.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(E(5439))},1595:function(Y,G,E){!function(T){"use strict";T.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(E(5439))},6050:function(Y,G,E){!function(T){"use strict";T.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===D||"\u0633\u06d5\u06be\u06d5\u0631"===D||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===D?H:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===D||"\u0643\u06d5\u0686"===D?H+12:H>=11?H:H+12},meridiem:function(H,D,L){var O=100*H+D;return O<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":O<900?"\u0633\u06d5\u06be\u06d5\u0631":O<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":O<1230?"\u0686\u06c8\u0634":O<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return H+"-\u06be\u06d5\u067e\u062a\u06d5";default:return H}},preparse:function(H){return H.replace(/\u060c/g,",")},postformat:function(H){return H.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(E(5439))},5610:function(Y,G,E){!function(T){"use strict";function H(B,U,W){return"m"===W?U?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===W?U?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":B+" "+function n(B,U){var W=B.split("_");return U%10==1&&U%100!=11?W[0]:U%10>=2&&U%10<=4&&(U%100<10||U%100>=20)?W[1]:W[2]}({ss:U?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:U?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:U?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[W],+B)}function L(B){return function(){return B+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}T.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function D(B,U){var W={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===B?W.nominative.slice(1,7).concat(W.nominative.slice(0,1)):B?W[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(U)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(U)?"genitive":"nominative"][B.day()]:W.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:L("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:L("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:L("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:L("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return L("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return L("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:H,m:H,mm:H,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:H,d:"\u0434\u0435\u043d\u044c",dd:H,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:H,y:"\u0440\u0456\u043a",yy:H},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(B){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(B)},meridiem:function(B,U,W){return B<4?"\u043d\u043e\u0447\u0456":B<12?"\u0440\u0430\u043d\u043a\u0443":B<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(B,U){switch(U){case"M":case"d":case"DDD":case"w":case"W":return B+"-\u0439";case"D":return B+"-\u0433\u043e";default:return B}},week:{dow:1,doy:7}})}(E(5439))},6077:function(Y,G,E){!function(T){"use strict";var n=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],H=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];T.defineLocale("ur",{months:n,monthsShort:n,weekdays:H,weekdaysShort:H,weekdaysMin:H,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(L){return"\u0634\u0627\u0645"===L},meridiem:function(L,O,B){return L<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(L){return L.replace(/\u060c/g,",")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(E(5439))},2207:function(Y,G,E){!function(T){"use strict";T.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(E(5439))},2862:function(Y,G,E){!function(T){"use strict";T.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(E(5439))},8093:function(Y,G,E){!function(T){"use strict";T.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(H){return/^ch$/i.test(H)},meridiem:function(H,D,L){return H<12?L?"sa":"SA":L?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(H){return H},week:{dow:1,doy:4}})}(E(5439))},5590:function(Y,G,E){!function(T){"use strict";T.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},9058:function(Y,G,E){!function(T){"use strict";T.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(E(5439))},7908:function(Y,G,E){!function(T){"use strict";T.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?H:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?H+12:H>=11?H:H+12},meridiem:function(H,D,L){var O=100*H+D;return O<600?"\u51cc\u6668":O<900?"\u65e9\u4e0a":O<1130?"\u4e0a\u5348":O<1230?"\u4e2d\u5348":O<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(H){return H.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(H){return this.week()!==H.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"\u65e5";case"M":return H+"\u6708";case"w":case"W":return H+"\u5468";default:return H}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(E(5439))},8867:function(Y,G,E){!function(T){"use strict";T.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?H:"\u4e2d\u5348"===D?H>=11?H:H+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?H+12:void 0},meridiem:function(H,D,L){var O=100*H+D;return O<600?"\u51cc\u6668":O<900?"\u65e9\u4e0a":O<1200?"\u4e0a\u5348":1200===O?"\u4e2d\u5348":O<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"\u65e5";case"M":return H+"\u6708";case"w":case"W":return H+"\u9031";default:return H}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},1133:function(Y,G,E){!function(T){"use strict";T.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?H:"\u4e2d\u5348"===D?H>=11?H:H+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?H+12:void 0},meridiem:function(H,D,L){var O=100*H+D;return O<600?"\u51cc\u6668":O<900?"\u65e9\u4e0a":O<1130?"\u4e0a\u5348":O<1230?"\u4e2d\u5348":O<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"\u65e5";case"M":return H+"\u6708";case"w":case"W":return H+"\u9031";default:return H}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},3291:function(Y,G,E){!function(T){"use strict";T.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?H:"\u4e2d\u5348"===D?H>=11?H:H+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?H+12:void 0},meridiem:function(H,D,L){var O=100*H+D;return O<600?"\u51cc\u6668":O<900?"\u65e9\u4e0a":O<1130?"\u4e0a\u5348":O<1230?"\u4e2d\u5348":O<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"\u65e5";case"M":return H+"\u6708";case"w":case"W":return H+"\u9031";default:return H}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},5439:function(Y,G,E){(Y=E.nmd(Y)).exports=function(){"use strict";var T,be;function n(){return T.apply(null,arguments)}function D(S){return S instanceof Array||"[object Array]"===Object.prototype.toString.call(S)}function L(S){return null!=S&&"[object Object]"===Object.prototype.toString.call(S)}function O(S,P){return Object.prototype.hasOwnProperty.call(S,P)}function B(S){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(S).length;var P;for(P in S)if(O(S,P))return!1;return!0}function U(S){return void 0===S}function W(S){return"number"==typeof S||"[object Number]"===Object.prototype.toString.call(S)}function ee(S){return S instanceof Date||"[object Date]"===Object.prototype.toString.call(S)}function te(S,P){var q,V=[],Q=S.length;for(q=0;q>>0;for(q=0;q0)for(V=0;V=0?V?"+":"":"-")+Math.pow(10,Math.max(0,P-q.length)).toString().substr(1)+q}var cn=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,tt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ai={},Oi={};function Je(S,P,V,q){var Q=q;"string"==typeof q&&(Q=function(){return this[q]()}),S&&(Oi[S]=Q),P&&(Oi[P[0]]=function(){return Ft(Q.apply(this,arguments),P[1],P[2])}),V&&(Oi[V]=function(){return this.localeData().ordinal(Q.apply(this,arguments),S)})}function dn(S){return S.match(/\[[\s\S]/)?S.replace(/^\[|\]$/g,""):S.replace(/\\/g,"")}function Tn(S,P){return S.isValid()?(P=Ii(P,S.localeData()),ai[P]=ai[P]||function Gi(S){var V,q,P=S.match(cn);for(V=0,q=P.length;V=0&&tt.test(S);)S=S.replace(tt,q),tt.lastIndex=0,V-=1;return S}var lt={};function ct(S,P){var V=S.toLowerCase();lt[V]=lt[V+"s"]=lt[P]=S}function Zt(S){return"string"==typeof S?lt[S]||lt[S.toLowerCase()]:void 0}function hi(S){var V,q,P={};for(q in S)O(S,q)&&(V=Zt(q))&&(P[V]=S[q]);return P}var un={};function Kt(S,P){un[S]=P}function ce(S){return S%4==0&&S%100!=0||S%400==0}function ie(S){return S<0?Math.ceil(S)||0:Math.floor(S)}function fe(S){var P=+S,V=0;return 0!==P&&isFinite(P)&&(V=ie(P)),V}function Be(S,P){return function(V){return null!=V?(Bt(this,S,V),n.updateOffset(this,P),this):Ct(this,S)}}function Ct(S,P){return S.isValid()?S._d["get"+(S._isUTC?"UTC":"")+P]():NaN}function Bt(S,P,V){S.isValid()&&!isNaN(V)&&("FullYear"===P&&ce(S.year())&&1===S.month()&&29===S.date()?(V=fe(V),S._d["set"+(S._isUTC?"UTC":"")+P](V,S.month(),Le(V,S.month()))):S._d["set"+(S._isUTC?"UTC":"")+P](V))}var pi,qn=/\d/,kt=/\d\d/,vr=/\d{3}/,Lt=/\d{4}/,Yt=/[+-]?\d{6}/,St=/\d\d?/,lr=/\d\d\d\d?/,Qr=/\d\d\d\d\d\d?/,Kn=/\d{1,3}/,Xr=/\d{1,4}/,jr=/[+-]?\d{1,6}/,Tr=/\d+/,fa=/[+-]?\d+/,Ed=/Z|[+-]\d\d:?\d\d/gi,_s=/Z|[+-]\d\d(?::?\d\d)?/gi,si=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ze(S,P,V){pi[S]=me(P)?P:function(q,Q){return q&&V?V:P}}function ei(S,P){return O(pi,S)?pi[S](P._strict,P._locale):new RegExp(function nt(S){return ft(S.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(P,V,q,Q,he){return V||q||Q||he}))}(S))}function ft(S){return S.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}pi={};var fn={};function Ee(S,P){var V,Q,q=P;for("string"==typeof S&&(S=[S]),W(P)&&(q=function(he,ve){ve[P]=fe(he)}),Q=S.length,V=0;V68?1900:2e3)};var na=Be("FullYear",!0);function Qi(S,P,V,q,Q,he,ve){var At;return S<100&&S>=0?(At=new Date(S+400,P,V,q,Q,he,ve),isFinite(At.getFullYear())&&At.setFullYear(S)):At=new Date(S,P,V,q,Q,he,ve),At}function ba(S){var P,V;return S<100&&S>=0?((V=Array.prototype.slice.call(arguments))[0]=S+400,P=new Date(Date.UTC.apply(null,V)),isFinite(P.getUTCFullYear())&&P.setUTCFullYear(S)):P=new Date(Date.UTC.apply(null,arguments)),P}function ho(S,P,V){var q=7+P-V;return-(7+ba(S,0,q).getUTCDay()-P)%7+q-1}function bs(S,P,V,q,Q){var jt,mn,At=1+7*(P-1)+(7+V-q)%7+ho(S,q,Q);return At<=0?mn=cr(jt=S-1)+At:At>cr(S)?(jt=S+1,mn=At-cr(S)):(jt=S,mn=At),{year:jt,dayOfYear:mn}}function Aa(S,P,V){var he,ve,q=ho(S.year(),P,V),Q=Math.floor((S.dayOfYear()-q-1)/7)+1;return Q<1?he=Q+dr(ve=S.year()-1,P,V):Q>dr(S.year(),P,V)?(he=Q-dr(S.year(),P,V),ve=S.year()+1):(ve=S.year(),he=Q),{week:he,year:ve}}function dr(S,P,V){var q=ho(S,P,V),Q=ho(S+1,P,V);return(cr(S)-q+Q)/7}Je("w",["ww",2],"wo","week"),Je("W",["WW",2],"Wo","isoWeek"),ct("week","w"),ct("isoWeek","W"),Kt("week",5),Kt("isoWeek",5),Ze("w",St),Ze("ww",St,kt),Ze("W",St),Ze("WW",St,kt),yn(["w","ww","W","WW"],function(S,P,V,q){P[q.substr(0,1)]=fe(S)});function Ld(S,P){return S.slice(P,7).concat(S.slice(0,P))}Je("d",0,"do","day"),Je("dd",0,0,function(S){return this.localeData().weekdaysMin(this,S)}),Je("ddd",0,0,function(S){return this.localeData().weekdaysShort(this,S)}),Je("dddd",0,0,function(S){return this.localeData().weekdays(this,S)}),Je("e",0,0,"weekday"),Je("E",0,0,"isoWeekday"),ct("day","d"),ct("weekday","e"),ct("isoWeekday","E"),Kt("day",11),Kt("weekday",11),Kt("isoWeekday",11),Ze("d",St),Ze("e",St),Ze("E",St),Ze("dd",function(S,P){return P.weekdaysMinRegex(S)}),Ze("ddd",function(S,P){return P.weekdaysShortRegex(S)}),Ze("dddd",function(S,P){return P.weekdaysRegex(S)}),yn(["dd","ddd","dddd"],function(S,P,V,q){var Q=V._locale.weekdaysParse(S,q,V._strict);null!=Q?P.d=Q:re(V).invalidWeekday=S}),yn(["d","e","E"],function(S,P,V,q){P[q]=fe(S)});var It="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Hd="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),As=si,Ko=si,ys=si;function zr(S,P,V){var q,Q,he,ve=S.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],q=0;q<7;++q)he=ue([2e3,1]).day(q),this._minWeekdaysParse[q]=this.weekdaysMin(he,"").toLocaleLowerCase(),this._shortWeekdaysParse[q]=this.weekdaysShort(he,"").toLocaleLowerCase(),this._weekdaysParse[q]=this.weekdays(he,"").toLocaleLowerCase();return V?"dddd"===P?-1!==(Q=ht.call(this._weekdaysParse,ve))?Q:null:"ddd"===P?-1!==(Q=ht.call(this._shortWeekdaysParse,ve))?Q:null:-1!==(Q=ht.call(this._minWeekdaysParse,ve))?Q:null:"dddd"===P?-1!==(Q=ht.call(this._weekdaysParse,ve))||-1!==(Q=ht.call(this._shortWeekdaysParse,ve))||-1!==(Q=ht.call(this._minWeekdaysParse,ve))?Q:null:"ddd"===P?-1!==(Q=ht.call(this._shortWeekdaysParse,ve))||-1!==(Q=ht.call(this._weekdaysParse,ve))||-1!==(Q=ht.call(this._minWeekdaysParse,ve))?Q:null:-1!==(Q=ht.call(this._minWeekdaysParse,ve))||-1!==(Q=ht.call(this._weekdaysParse,ve))||-1!==(Q=ht.call(this._shortWeekdaysParse,ve))?Q:null}function el(){function S(Ei,Gr){return Gr.length-Ei.length}var he,ve,At,jt,mn,P=[],V=[],q=[],Q=[];for(he=0;he<7;he++)ve=ue([2e3,1]).day(he),At=ft(this.weekdaysMin(ve,"")),jt=ft(this.weekdaysShort(ve,"")),mn=ft(this.weekdays(ve,"")),P.push(At),V.push(jt),q.push(mn),Q.push(At),Q.push(jt),Q.push(mn);P.sort(S),V.sort(S),q.sort(S),Q.sort(S),this._weekdaysRegex=new RegExp("^("+Q.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+V.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+P.join("|")+")","i")}function go(){return this.hours()%12||12}function Ti(S,P){Je(S,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),P)})}function ws(S,P){return P._meridiemParse}Je("H",["HH",2],0,"hour"),Je("h",["hh",2],0,go),Je("k",["kk",2],0,function li(){return this.hours()||24}),Je("hmm",0,0,function(){return""+go.apply(this)+Ft(this.minutes(),2)}),Je("hmmss",0,0,function(){return""+go.apply(this)+Ft(this.minutes(),2)+Ft(this.seconds(),2)}),Je("Hmm",0,0,function(){return""+this.hours()+Ft(this.minutes(),2)}),Je("Hmmss",0,0,function(){return""+this.hours()+Ft(this.minutes(),2)+Ft(this.seconds(),2)}),Ti("a",!0),Ti("A",!1),ct("hour","h"),Kt("hour",13),Ze("a",ws),Ze("A",ws),Ze("H",St),Ze("h",St),Ze("k",St),Ze("HH",St,kt),Ze("hh",St,kt),Ze("kk",St,kt),Ze("hmm",lr),Ze("hmmss",Qr),Ze("Hmm",lr),Ze("Hmmss",Qr),Ee(["H","HH"],3),Ee(["k","kk"],function(S,P,V){var q=fe(S);P[3]=24===q?0:q}),Ee(["a","A"],function(S,P,V){V._isPm=V._locale.isPM(S),V._meridiem=S}),Ee(["h","hh"],function(S,P,V){P[3]=fe(S),re(V).bigHour=!0}),Ee("hmm",function(S,P,V){var q=S.length-2;P[3]=fe(S.substr(0,q)),P[4]=fe(S.substr(q)),re(V).bigHour=!0}),Ee("hmmss",function(S,P,V){var q=S.length-4,Q=S.length-2;P[3]=fe(S.substr(0,q)),P[4]=fe(S.substr(q,2)),P[5]=fe(S.substr(Q)),re(V).bigHour=!0}),Ee("Hmm",function(S,P,V){var q=S.length-2;P[3]=fe(S.substr(0,q)),P[4]=fe(S.substr(q))}),Ee("Hmmss",function(S,P,V){var q=S.length-4,Q=S.length-2;P[3]=fe(S.substr(0,q)),P[4]=fe(S.substr(q,2)),P[5]=fe(S.substr(Q))});var rh=Be("Hours",!0);var ya,ti={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Zi,monthsShort:Kr,week:{dow:0,doy:6},weekdays:It,weekdaysMin:Hd,weekdaysShort:jn,meridiemParse:/[ap]\.?m?\.?/i},In={},cc={};function ur(S,P){var V,q=Math.min(S.length,P.length);for(V=0;V0;){if(Q=Bi(he.slice(0,V).join("-")))return Q;if(q&&q.length>=V&&ur(he,q)>=V-1)break;V--}P++}return ya}(S)}function Ce(S){var P,V=S._a;return V&&-2===re(S).overflow&&(P=V[1]<0||V[1]>11?1:V[2]<1||V[2]>Le(V[0],V[1])?2:V[3]<0||V[3]>24||24===V[3]&&(0!==V[4]||0!==V[5]||0!==V[6])?3:V[4]<0||V[4]>59?4:V[5]<0||V[5]>59?5:V[6]<0||V[6]>999?6:-1,re(S)._overflowDayOfYear&&(P<0||P>2)&&(P=2),re(S)._overflowWeeks&&-1===P&&(P=7),re(S)._overflowWeekday&&-1===P&&(P=8),re(S).overflow=P),S}var Ae=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Bn=/Z|[+-]\d\d(?::?\d\d)?/,Mn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],nn=/^\/?Date\((-?\d+)/i,gt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Cn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bt(S){var P,V,he,ve,At,jt,q=S._i,Q=Ae.exec(q)||dt.exec(q),mn=Mn.length,Ei=xn.length;if(Q){for(re(S).iso=!0,P=0,V=mn;P7)&&(jt=!0)):(he=S._locale._week.dow,ve=S._locale._week.doy,mn=Aa(Pn(),he,ve),V=Nt(P.gg,S._a[0],mn.year),q=Nt(P.w,mn.week),null!=P.d?((Q=P.d)<0||Q>6)&&(jt=!0):null!=P.e?(Q=P.e+he,(P.e<0||P.e>6)&&(jt=!0)):Q=he),q<1||q>dr(V,he,ve)?re(S)._overflowWeeks=!0:null!=jt?re(S)._overflowWeekday=!0:(At=bs(V,q,Q,he,ve),S._a[0]=At.year,S._dayOfYear=At.dayOfYear)}(S),null!=S._dayOfYear&&(ve=Nt(S._a[0],Q[0]),(S._dayOfYear>cr(ve)||0===S._dayOfYear)&&(re(S)._overflowDayOfYear=!0),V=ba(ve,0,S._dayOfYear),S._a[1]=V.getUTCMonth(),S._a[2]=V.getUTCDate()),P=0;P<3&&null==S._a[P];++P)S._a[P]=q[P]=Q[P];for(;P<7;P++)S._a[P]=q[P]=S._a[P]??(2===P?1:0);24===S._a[3]&&0===S._a[4]&&0===S._a[5]&&0===S._a[6]&&(S._nextDay=!0,S._a[3]=0),S._d=(S._useUTC?ba:Qi).apply(null,q),he=S._useUTC?S._d.getUTCDay():S._d.getDay(),null!=S._tzm&&S._d.setUTCMinutes(S._d.getUTCMinutes()-S._tzm),S._nextDay&&(S._a[3]=24),S._w&&typeof S._w.d<"u"&&S._w.d!==he&&(re(S).weekdayMismatch=!0)}}function vn(S){if(S._f!==n.ISO_8601)if(S._f!==n.RFC_2822){S._a=[],re(S).empty=!0;var V,q,Q,he,ve,mn,Ei,P=""+S._i,At=P.length,jt=0;for(Ei=(Q=Ii(S._f,S._locale).match(cn)||[]).length,V=0;V0&&re(S).unusedInput.push(ve),P=P.slice(P.indexOf(q)+q.length),jt+=q.length),Oi[he]?(q?re(S).empty=!1:re(S).unusedTokens.push(he),wn(he,q,S)):S._strict&&!q&&re(S).unusedTokens.push(he);re(S).charsLeftOver=At-jt,P.length>0&&re(S).unusedInput.push(P),S._a[3]<=12&&!0===re(S).bigHour&&S._a[3]>0&&(re(S).bigHour=void 0),re(S).parsedDateParts=S._a.slice(0),re(S).meridiem=S._meridiem,S._a[3]=function pr(S,P,V){var q;return null==V?P:null!=S.meridiemHour?S.meridiemHour(P,V):(null!=S.isPM&&((q=S.isPM(V))&&P<12&&(P+=12),!q&&12===P&&(P=0)),P)}(S._locale,S._a[3],S._meridiem),null!==(mn=re(S).era)&&(S._a[0]=S._locale.erasConvertYear(mn,S._a[0])),Ms(S),Ce(S)}else Ui(S);else bt(S)}function Rd(S){var P=S._i,V=S._f;return S._locale=S._locale||X(S._l),null===P||void 0===V&&""===P?xe({nullInput:!0}):("string"==typeof P&&(S._i=P=S._locale.preparse(P)),Re(P)?new De(Ce(P)):(ee(P)?S._d=P:D(V)?function Ur(S){var P,V,q,Q,he,ve,At=!1,jt=S._f.length;if(0===jt)return re(S).invalidFormat=!0,void(S._d=new Date(NaN));for(Q=0;Qthis?this:S:xe()});function Pd(S,P){var V,q;if(1===P.length&&D(P[0])&&(P=P[0]),!P.length)return Pn();for(V=P[0],q=1;q=0?new Date(S+400,P,V)-Co:new Date(S,P,V).valueOf()}function jd(S,P,V){return S<100&&S>=0?Date.UTC(S+400,P,V)-Co:Date.UTC(S,P,V)}function gh(S,P){return P.erasAbbrRegex(S)}function zd(){var Q,he,S=[],P=[],V=[],q=[],ve=this.eras();for(Q=0,he=ve.length;Q(he=dr(S,q,Q))&&(P=he),Tc.call(this,S,P,V,q,Q))}function Tc(S,P,V,q,Q){var he=bs(S,P,V,q,Q),ve=ba(he.year,0,he.dayOfYear);return this.year(ve.getUTCFullYear()),this.month(ve.getUTCMonth()),this.date(ve.getUTCDate()),this}Je("N",0,0,"eraAbbr"),Je("NN",0,0,"eraAbbr"),Je("NNN",0,0,"eraAbbr"),Je("NNNN",0,0,"eraName"),Je("NNNNN",0,0,"eraNarrow"),Je("y",["y",1],"yo","eraYear"),Je("y",["yy",2],0,"eraYear"),Je("y",["yyy",3],0,"eraYear"),Je("y",["yyyy",4],0,"eraYear"),Ze("N",gh),Ze("NN",gh),Ze("NNN",gh),Ze("NNNN",function Ng(S,P){return P.erasNameRegex(S)}),Ze("NNNNN",function hl(S,P){return P.erasNarrowRegex(S)}),Ee(["N","NN","NNN","NNNN","NNNNN"],function(S,P,V,q){var Q=V._locale.erasParse(S,q,V._strict);Q?re(V).era=Q:re(V).invalidEra=S}),Ze("y",Tr),Ze("yy",Tr),Ze("yyy",Tr),Ze("yyyy",Tr),Ze("yo",function Vg(S,P){return P._eraYearOrdinalRegex||Tr}),Ee(["y","yy","yyy","yyyy"],0),Ee(["yo"],function(S,P,V,q){var Q;V._locale._eraYearOrdinalRegex&&(Q=S.match(V._locale._eraYearOrdinalRegex)),P[0]=V._locale.eraYearOrdinalParse?V._locale.eraYearOrdinalParse(S,Q):parseInt(S,10)}),Je(0,["gg",2],0,function(){return this.weekYear()%100}),Je(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Zn("gggg","weekYear"),Zn("ggggg","weekYear"),Zn("GGGG","isoWeekYear"),Zn("GGGGG","isoWeekYear"),ct("weekYear","gg"),ct("isoWeekYear","GG"),Kt("weekYear",1),Kt("isoWeekYear",1),Ze("G",fa),Ze("g",fa),Ze("GG",St,kt),Ze("gg",St,kt),Ze("GGGG",Xr,Lt),Ze("gggg",Xr,Lt),Ze("GGGGG",jr,Yt),Ze("ggggg",jr,Yt),yn(["gggg","ggggg","GGGG","GGGGG"],function(S,P,V,q){P[q.substr(0,2)]=fe(S)}),yn(["gg","GG"],function(S,P,V,q){P[q]=n.parseTwoDigitYear(S)}),Je("Q",0,"Qo","quarter"),ct("quarter","Q"),Kt("quarter",7),Ze("Q",qn),Ee("Q",function(S,P){P[1]=3*(fe(S)-1)}),Je("D",["DD",2],"Do","date"),ct("date","D"),Kt("date",9),Ze("D",St),Ze("DD",St,kt),Ze("Do",function(S,P){return S?P._dayOfMonthOrdinalParse||P._ordinalParse:P._dayOfMonthOrdinalParseLenient}),Ee(["D","DD"],2),Ee("Do",function(S,P){P[2]=fe(S.match(St)[0])});var xc=Be("Date",!0);Je("DDD",["DDDD",3],"DDDo","dayOfYear"),ct("dayOfYear","DDD"),Kt("dayOfYear",4),Ze("DDD",Kn),Ze("DDDD",vr),Ee(["DDD","DDDD"],function(S,P,V){V._dayOfYear=fe(S)}),Je("m",["mm",2],0,"minute"),ct("minute","m"),Kt("minute",14),Ze("m",St),Ze("mm",St,kt),Ee(["m","mm"],4);var Sc=Be("Minutes",!1);Je("s",["ss",2],0,"second"),ct("second","s"),Kt("second",15),Ze("s",St),Ze("ss",St,kt),Ee(["s","ss"],5);var xa,Ec,Ef=Be("Seconds",!1);for(Je("S",0,0,function(){return~~(this.millisecond()/100)}),Je(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Je(0,["SSS",3],0,"millisecond"),Je(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Je(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Je(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Je(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Je(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Je(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ct("millisecond","ms"),Kt("millisecond",16),Ze("S",Kn,qn),Ze("SS",Kn,kt),Ze("SSS",Kn,vr),xa="SSSS";xa.length<=9;xa+="S")Ze(xa,Tr);function Ki(S,P){P[6]=fe(1e3*("0."+S))}for(xa="S";xa.length<=9;xa+="S")Ee(xa,Ki);Ec=Be("Milliseconds",!1),Je("z",0,0,"zoneAbbr"),Je("zz",0,0,"zoneName");var Ue=De.prototype;function Dc(S){return S}Ue.add=Af,Ue.calendar=function Id(S,P){1===arguments.length&&(arguments[0]?yf(arguments[0])?(S=arguments[0],P=void 0):gc(arguments[0])&&(P=arguments[0],S=void 0):(S=void 0,P=void 0));var V=S||Pn(),q=rn(V,this).startOf("day"),Q=n.calendarFormat(this,q)||"sameElse",he=P&&(me(P[Q])?P[Q].call(this,V):P[Q]);return this.format(he||this.localeData().calendar(Q,this,Pn(V)))},Ue.clone=function Bd(){return new De(this)},Ue.diff=function ph(S,P,V){var q,Q,he;if(!this.isValid())return NaN;if(!(q=rn(S,this)).isValid())return NaN;switch(Q=6e4*(q.utcOffset()-this.utcOffset()),P=Zt(P)){case"year":he=ll(this,q)/12;break;case"month":he=ll(this,q);break;case"quarter":he=ll(this,q)/3;break;case"second":he=(this-q)/1e3;break;case"minute":he=(this-q)/6e4;break;case"hour":he=(this-q)/36e5;break;case"day":he=(this-q-Q)/864e5;break;case"week":he=(this-q-Q)/6048e5;break;default:he=this-q}return V?he:ie(he)},Ue.endOf=function Ls(S){var P,V;if(void 0===(S=Zt(S))||"millisecond"===S||!this.isValid())return this;switch(V=this._isUTC?jd:Ds,S){case"year":P=V(this.year()+1,0,1)-1;break;case"quarter":P=V(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":P=V(this.year(),this.month()+1,1)-1;break;case"week":P=V(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":P=V(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":P=V(this.year(),this.month(),this.date()+1)-1;break;case"hour":P=this._d.valueOf(),P+=ul-Yr(P+(this._isUTC?0:this.utcOffset()*Hr),ul)-1;break;case"minute":P=this._d.valueOf(),P+=Hr-Yr(P,Hr)-1;break;case"second":P=this._d.valueOf(),P+=1e3-Yr(P,1e3)-1}return this._d.setTime(P),n.updateOffset(this,!0),this},Ue.format=function cl(S){S||(S=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var P=Tn(this,S);return this.localeData().postformat(P)},Ue.from=function Ma(S,P){return this.isValid()&&(Re(S)&&S.isValid()||Pn(S).isValid())?$n({to:this,from:S}).locale(this.locale()).humanize(!P):this.localeData().invalidDate()},Ue.fromNow=function dl(S){return this.from(Pn(),S)},Ue.to=function Nd(S,P){return this.isValid()&&(Re(S)&&S.isValid()||Pn(S).isValid())?$n({from:this,to:S}).locale(this.locale()).humanize(!P):this.localeData().invalidDate()},Ue.toNow=function Ac(S){return this.to(Pn(),S)},Ue.get=function it(S){return me(this[S=Zt(S)])?this[S]():this},Ue.invalidAt=function ir(){return re(this).overflow},Ue.isAfter=function yo(S,P){var V=Re(S)?S:Pn(S);return!(!this.isValid()||!V.isValid())&&("millisecond"===(P=Zt(P)||"millisecond")?this.valueOf()>V.valueOf():V.valueOf()9999?Tn(V,P?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):me(Date.prototype.toISOString)?P?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Tn(V,"Z")):Tn(V,P?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ue.inspect=function bc(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var V,q,S="moment",P="";return this.isLocal()||(S=0===this.utcOffset()?"moment.utc":"moment.parseZone",P="Z"),V="["+S+'("]',q=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(V+q+"-MM-DD[T]HH:mm:ss.SSS"+P+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Ue[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ue.toJSON=function Fd(){return this.isValid()?this.toISOString():null},Ue.toString=function Mf(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ue.unix=function yc(){return Math.floor(this.valueOf()/1e3)},Ue.valueOf=function Cf(){return this._d.valueOf()-6e4*(this._offset||0)},Ue.creationData=function Mc(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ue.eraName=function xf(){var S,P,V,q=this.localeData().eras();for(S=0,P=q.length;Sthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ue.isLocal=function al(){return!!this.isValid()&&!this._isUTC},Ue.isUtcOffset=function sl(){return!!this.isValid()&&this._isUTC},Ue.isUtc=vs,Ue.isUTC=vs,Ue.zoneAbbr=function pl(){return this._isUTC?"UTC":""},Ue.zoneName=function vo(){return this._isUTC?"Coordinated Universal Time":""},Ue.dates=Ve("dates accessor is deprecated. Use date instead.",xc),Ue.months=Ve("months accessor is deprecated. Use month instead",xr),Ue.years=Ve("years accessor is deprecated. Use year instead",na),Ue.zone=Ve("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function ch(S,P){return null!=S?("string"!=typeof S&&(S=-S),this.utcOffset(S,P),this):-this.utcOffset()}),Ue.isDSTShifted=Ve("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function fc(){if(!U(this._isDSTShifted))return this._isDSTShifted;var P,S={};return ke(S,this),(S=Rd(S))._a?(P=S._isUTC?ue(S._a):Pn(S._a),this._isDSTShifted=this.isValid()&&function kd(S,P,V){var ve,q=Math.min(S.length,P.length),Q=Math.abs(S.length-P.length),he=0;for(ve=0;ve0):this._isDSTShifted=!1,this._isDSTShifted});var an=Me.prototype;function fl(S,P,V,q){var Q=X(),he=ue().set(q,P);return Q[V](he,S)}function Ud(S,P,V){if(W(S)&&(P=S,S=void 0),S=S||"",null!=P)return fl(S,P,V,"month");var q,Q=[];for(q=0;q<12;q++)Q[q]=fl(S,q,V,"month");return Q}function Lc(S,P,V,q){"boolean"==typeof S?(W(P)&&(V=P,P=void 0),P=P||""):(V=P=S,S=!1,W(P)&&(V=P,P=void 0),P=P||"");var ve,Q=X(),he=S?Q._week.dow:0,At=[];if(null!=V)return fl(P,(V+he)%7,q,"day");for(ve=0;ve<7;ve++)At[ve]=fl(P,(ve+he)%7,q,"day");return At}an.calendar=function yt(S,P,V){var q=this._calendar[S]||this._calendar.sameElse;return me(q)?q.call(P,V):q},an.longDateFormat=function vi(S){var P=this._longDateFormat[S],V=this._longDateFormat[S.toUpperCase()];return P||!V?P:(this._longDateFormat[S]=V.match(cn).map(function(q){return"MMMM"===q||"MM"===q||"DD"===q||"dddd"===q?q.slice(1):q}).join(""),this._longDateFormat[S])},an.invalidDate=function pa(){return this._invalidDate},an.ordinal=function pe(S){return this._ordinal.replace("%d",S)},an.preparse=Dc,an.postformat=Dc,an.relativeTime=function ye(S,P,V,q){var Q=this._relativeTime[V];return me(Q)?Q(S,P,V,q):Q.replace(/%d/i,S)},an.pastFuture=function Ye(S,P){var V=this._relativeTime[S>0?"future":"past"];return me(V)?V(P):V.replace(/%s/i,P)},an.set=function _e(S){var P,V;for(V in S)O(S,V)&&(me(P=S[V])?this[V]=P:this["_"+V]=P);this._config=S,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},an.eras=function Rr(S,P){var V,q,Q,he=this._eras||X("en")._eras;for(V=0,q=he.length;V=0)return he[q]},an.erasConvertYear=function Tf(S,P){var V=S.since<=S.until?1:-1;return void 0===P?n(S.since).year():n(S.since).year()+(P-S.offset)*V},an.erasAbbrRegex=function Ig(S){return O(this,"_erasAbbrRegex")||zd.call(this),S?this._erasAbbrRegex:this._erasRegex},an.erasNameRegex=function Og(S){return O(this,"_erasNameRegex")||zd.call(this),S?this._erasNameRegex:this._erasRegex},an.erasNarrowRegex=function Bg(S){return O(this,"_erasNarrowRegex")||zd.call(this),S?this._erasNarrowRegex:this._erasRegex},an.months=function Fr(S,P){return S?D(this._months)?this._months[S.month()]:this._months[(this._months.isFormat||uo).test(P)?"format":"standalone"][S.month()]:D(this._months)?this._months:this._months.standalone},an.monthsShort=function An(S,P){return S?D(this._monthsShort)?this._monthsShort[S.month()]:this._monthsShort[uo.test(P)?"format":"standalone"][S.month()]:D(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},an.monthsParse=function ga(S,P,V){var q,Q,he;if(this._monthsParseExact)return ea.call(this,S,P,V);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),q=0;q<12;q++){if(Q=ue([2e3,q]),V&&!this._longMonthsParse[q]&&(this._longMonthsParse[q]=new RegExp("^"+this.months(Q,"").replace(".","")+"$","i"),this._shortMonthsParse[q]=new RegExp("^"+this.monthsShort(Q,"").replace(".","")+"$","i")),!V&&!this._monthsParse[q]&&(he="^"+this.months(Q,"")+"|^"+this.monthsShort(Q,""),this._monthsParse[q]=new RegExp(he.replace(".",""),"i")),V&&"MMMM"===P&&this._longMonthsParse[q].test(S))return q;if(V&&"MMM"===P&&this._shortMonthsParse[q].test(S))return q;if(!V&&this._monthsParse[q].test(S))return q}},an.monthsRegex=function fi(S){return this._monthsParseExact?(O(this,"_monthsRegex")||Ji.call(this),S?this._monthsStrictRegex:this._monthsRegex):(O(this,"_monthsRegex")||(this._monthsRegex=Mt),this._monthsStrictRegex&&S?this._monthsStrictRegex:this._monthsRegex)},an.monthsShortRegex=function ta(S){return this._monthsParseExact?(O(this,"_monthsRegex")||Ji.call(this),S?this._monthsShortStrictRegex:this._monthsShortRegex):(O(this,"_monthsShortRegex")||(this._monthsShortRegex=bn),this._monthsShortStrictRegex&&S?this._monthsShortStrictRegex:this._monthsShortRegex)},an.week=function tn(S){return Aa(S,this._week.dow,this._week.doy).week},an.firstDayOfYear=function po(){return this._week.doy},an.firstDayOfWeek=function Ke(){return this._week.dow},an.weekdays=function eh(S,P){var V=D(this._weekdays)?this._weekdays:this._weekdays[S&&!0!==S&&this._weekdays.isFormat.test(P)?"format":"standalone"];return!0===S?Ld(V,this._week.dow):S?V[S.day()]:V},an.weekdaysMin=function nh(S){return!0===S?Ld(this._weekdaysMin,this._week.dow):S?this._weekdaysMin[S.day()]:this._weekdaysMin},an.weekdaysShort=function th(S){return!0===S?Ld(this._weekdaysShort,this._week.dow):S?this._weekdaysShort[S.day()]:this._weekdaysShort},an.weekdaysParse=function ac(S,P,V){var q,Q,he;if(this._weekdaysParseExact)return zr.call(this,S,P,V);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),q=0;q<7;q++){if(Q=ue([2e3,1]).day(q),V&&!this._fullWeekdaysParse[q]&&(this._fullWeekdaysParse[q]=new RegExp("^"+this.weekdays(Q,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[q]=new RegExp("^"+this.weekdaysShort(Q,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[q]=new RegExp("^"+this.weekdaysMin(Q,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[q]||(he="^"+this.weekdays(Q,"")+"|^"+this.weekdaysShort(Q,"")+"|^"+this.weekdaysMin(Q,""),this._weekdaysParse[q]=new RegExp(he.replace(".",""),"i")),V&&"dddd"===P&&this._fullWeekdaysParse[q].test(S))return q;if(V&&"ddd"===P&&this._shortWeekdaysParse[q].test(S))return q;if(V&&"dd"===P&&this._minWeekdaysParse[q].test(S))return q;if(!V&&this._weekdaysParse[q].test(S))return q}},an.weekdaysRegex=function oc(S){return this._weekdaysParseExact?(O(this,"_weekdaysRegex")||el.call(this),S?this._weekdaysStrictRegex:this._weekdaysRegex):(O(this,"_weekdaysRegex")||(this._weekdaysRegex=As),this._weekdaysStrictRegex&&S?this._weekdaysStrictRegex:this._weekdaysRegex)},an.weekdaysShortRegex=function ia(S){return this._weekdaysParseExact?(O(this,"_weekdaysRegex")||el.call(this),S?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(O(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ko),this._weekdaysShortStrictRegex&&S?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},an.weekdaysMinRegex=function mo(S){return this._weekdaysParseExact?(O(this,"_weekdaysRegex")||el.call(this),S?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(O(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ys),this._weekdaysMinStrictRegex&&S?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},an.isPM=function ih(S){return"p"===(S+"").toLowerCase().charAt(0)},an.meridiem=function ff(S,P,V){return S>11?V?"pm":"PM":V?"am":"AM"},j("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(S){var P=S%10;return S+(1===fe(S%100/10)?"th":1===P?"st":2===P?"nd":3===P?"rd":"th")}}),n.lang=Ve("moment.lang is deprecated. Use moment.locale instead.",j),n.langData=Ve("moment.langData is deprecated. Use moment.localeData instead.",X);var Pr=Math.abs;function Gd(S,P,V,q){var Q=$n(P,V);return S._milliseconds+=q*Q._milliseconds,S._days+=q*Q._days,S._months+=q*Q._months,S._bubble()}function ml(S){return S<0?Math.floor(S):Math.ceil(S)}function Hc(S){return 4800*S/146097}function Jn(S){return 146097*S/4800}function mr(S){return function(){return this.as(S)}}var qi=mr("ms"),Mh=mr("s"),Ch=mr("m"),Hf=mr("h"),$d=mr("d"),To=mr("w"),_l=mr("M"),bl=mr("Q"),Rf=mr("y");function sa(S){return function(){return this.isValid()?this._data[S]:NaN}}var vh=sa("milliseconds"),yl=sa("seconds"),wl=sa("minutes"),xo=sa("hours"),Ml=sa("days"),Pf=sa("months"),Fg=sa("years");var Ea=Math.round,Rc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kf(S,P,V,q,Q){return Q.relativeTime(P||1,!!V,S,q)}var Jd=Math.abs;function Os(S){return(S>0)-(S<0)||+S}function Qd(){if(!this.isValid())return this.localeData().invalidDate();var q,Q,he,ve,jt,mn,Ei,Gr,S=Jd(this._milliseconds)/1e3,P=Jd(this._days),V=Jd(this._months),At=this.asSeconds();return At?(q=ie(S/60),Q=ie(q/60),S%=60,q%=60,he=ie(V/12),V%=12,ve=S?S.toFixed(3).replace(/\.?0+$/,""):"",jt=At<0?"-":"",mn=Os(this._months)!==Os(At)?"-":"",Ei=Os(this._days)!==Os(At)?"-":"",Gr=Os(this._milliseconds)!==Os(At)?"-":"",jt+"P"+(he?mn+he+"Y":"")+(V?mn+V+"M":"")+(P?Ei+P+"D":"")+(Q||q||S?"T":"")+(Q?Gr+Q+"H":"")+(q?Gr+q+"M":"")+(S?Gr+ve+"S":"")):"P0D"}var Jt=nl.prototype;return Jt.isValid=function sh(){return this._isValid},Jt.abs=function Ah(){var S=this._data;return this._milliseconds=Pr(this._milliseconds),this._days=Pr(this._days),this._months=Pr(this._months),S.milliseconds=Pr(S.milliseconds),S.seconds=Pr(S.seconds),S.minutes=Pr(S.minutes),S.hours=Pr(S.hours),S.months=Pr(S.months),S.years=Pr(S.years),this},Jt.add=function jg(S,P){return Gd(this,S,P,1)},Jt.subtract=function Lf(S,P){return Gd(this,S,P,-1)},Jt.as=function yh(S){if(!this.isValid())return NaN;var P,V,q=this._milliseconds;if("month"===(S=Zt(S))||"quarter"===S||"year"===S)switch(P=this._days+q/864e5,V=this._months+Hc(P),S){case"month":return V;case"quarter":return V/3;case"year":return V/12}else switch(P=this._days+Math.round(Jn(this._months)),S){case"week":return P/7+q/6048e5;case"day":return P+q/864e5;case"hour":return 24*P+q/36e5;case"minute":return 1440*P+q/6e4;case"second":return 86400*P+q/1e3;case"millisecond":return Math.floor(864e5*P)+q;default:throw new Error("Unknown unit "+S)}},Jt.asMilliseconds=qi,Jt.asSeconds=Mh,Jt.asMinutes=Ch,Jt.asHours=Hf,Jt.asDays=$d,Jt.asWeeks=To,Jt.asMonths=_l,Jt.asQuarters=bl,Jt.asYears=Rf,Jt.valueOf=function wh(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*fe(this._months/12):NaN},Jt._bubble=function gl(){var Q,he,ve,At,jt,S=this._milliseconds,P=this._days,V=this._months,q=this._data;return S>=0&&P>=0&&V>=0||S<=0&&P<=0&&V<=0||(S+=864e5*ml(Jn(V)+P),P=0,V=0),q.milliseconds=S%1e3,Q=ie(S/1e3),q.seconds=Q%60,he=ie(Q/60),q.minutes=he%60,ve=ie(he/60),q.hours=ve%24,P+=ie(ve/24),V+=jt=ie(Hc(P)),P-=ml(Jn(jt)),At=ie(V/12),V%=12,q.days=P,q.months=V,q.years=At,this},Jt.clone=function Al(){return $n(this)},Jt.get=function Sa(S){return S=Zt(S),this.isValid()?this[S+"s"]():NaN},Jt.milliseconds=vh,Jt.seconds=yl,Jt.minutes=wl,Jt.hours=xo,Jt.days=Ml,Jt.weeks=function Th(){return ie(this.days()/7)},Jt.months=Pf,Jt.years=Fg,Jt.humanize=function xh(S,P){if(!this.isValid())return this.localeData().invalidDate();var Q,he,V=!1,q=Rc;return"object"==typeof S&&(P=S,S=!1),"boolean"==typeof S&&(V=S),"object"==typeof P&&(q=Object.assign({},Rc,P),null!=P.s&&null==P.ss&&(q.ss=P.s-1)),he=function Zd(S,P,V,q){var Q=$n(S).abs(),he=Ea(Q.as("s")),ve=Ea(Q.as("m")),At=Ea(Q.as("h")),jt=Ea(Q.as("d")),mn=Ea(Q.as("M")),Ei=Ea(Q.as("w")),Gr=Ea(Q.as("y")),La=he<=V.ss&&["s",he]||he0,La[4]=q,kf.apply(null,La)}(this,!V,q,Q=this.localeData()),V&&(he=Q.pastFuture(+this,he)),Q.postformat(he)},Jt.toISOString=Qd,Jt.toString=Qd,Jt.toJSON=Qd,Jt.locale=fh,Jt.localeData=Es,Jt.toIsoString=Ve("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qd),Jt.lang=Vd,Je("X",0,0,"unix"),Je("x",0,0,"valueOf"),Ze("x",fa),Ze("X",/[+-]?\d+(\.\d{1,3})?/),Ee("X",function(S,P,V){V._d=new Date(1e3*parseFloat(S))}),Ee("x",function(S,P,V){V._d=new Date(fe(S))}),n.version="2.29.4",function H(S){T=S}(Pn),n.fn=Ue,n.min=function pc(){return Pd("isBefore",[].slice.call(arguments,0))},n.max=function tl(){return Pd("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=ue,n.unix=function bh(S){return Pn(1e3*S)},n.months=function qd(S,P){return Ud(S,P,"months")},n.isDate=ee,n.locale=j,n.invalid=xe,n.duration=$n,n.isMoment=Re,n.weekdays=function Yd(S,P,V){return Lc(S,P,V,"weekdays")},n.parseZone=function Df(){return Pn.apply(null,arguments).parseZone()},n.localeData=X,n.isDuration=il,n.monthsShort=function $a(S,P){return Ud(S,P,"monthsShort")},n.weekdaysMin=function Wd(S,P,V){return Lc(S,P,V,"weekdaysMin")},n.defineLocale=J,n.updateLocale=function F(S,P){if(null!=P){var V,q,Q=ti;null!=In[S]&&null!=In[S].parentLocale?In[S].set(Te(In[S]._config,P)):(null!=(q=Bi(S))&&(Q=q._config),P=Te(Q,P),null==q&&(P.abbr=S),(V=new Me(P)).parentLocale=In[S],In[S]=V),j(S)}else null!=In[S]&&(null!=In[S].parentLocale?(In[S]=In[S].parentLocale,S===j()&&j(S)):null!=In[S]&&delete In[S]);return In[S]},n.locales=function le(){return $e(In)},n.weekdaysShort=function Wr(S,P,V){return Lc(S,P,V,"weekdaysShort")},n.normalizeUnits=Zt,n.relativeTimeRounding=function Pc(S){return void 0===S?Ea:"function"==typeof S&&(Ea=S,!0)},n.relativeTimeThreshold=function Da(S,P){return void 0!==Rc[S]&&(void 0===P?Rc[S]:(Rc[S]=P,"s"===S&&(Rc.ss=P-1),!0))},n.calendarFormat=function Ss(S,P){var V=S.diff(P,"days",!0);return V<-6?"sameElse":V<-1?"lastWeek":V<0?"lastDay":V<1?"sameDay":V<2?"nextDay":V<7?"nextWeek":"sameElse"},n.prototype=Ue,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()},9751:(Y,G,E)=>{"use strict";E.d(G,{y:()=>U});var T=E(930),n=E(727),H=E(8822),D=E(9635),L=E(2416),O=E(576),B=E(2806);let U=(()=>{class ae{constructor(oe){oe&&(this._subscribe=oe)}lift(oe){const re=new ae;return re.source=this,re.operator=oe,re}subscribe(oe,re,be){const we=function te(ae){return ae&&ae instanceof T.Lv||function ee(ae){return ae&&(0,O.m)(ae.next)&&(0,O.m)(ae.error)&&(0,O.m)(ae.complete)}(ae)&&(0,n.Nn)(ae)}(oe)?oe:new T.Hp(oe,re,be);return(0,B.x)(()=>{const{operator:xe,source:Xe}=this;we.add(xe?xe.call(we,Xe):Xe?this._subscribe(we):this._trySubscribe(we))}),we}_trySubscribe(oe){try{return this._subscribe(oe)}catch(re){oe.error(re)}}forEach(oe,re){return new(re=W(re))((be,we)=>{const xe=new T.Hp({next:Xe=>{try{oe(Xe)}catch(et){we(et),xe.unsubscribe()}},error:we,complete:be});this.subscribe(xe)})}_subscribe(oe){var re;return null===(re=this.source)||void 0===re?void 0:re.subscribe(oe)}[H.L](){return this}pipe(...oe){return(0,D.U)(oe)(this)}toPromise(oe){return new(oe=W(oe))((re,be)=>{let we;this.subscribe(xe=>we=xe,xe=>be(xe),()=>re(we))})}}return ae.create=ue=>new ae(ue),ae})();function W(ae){var ue;return null!==(ue=ae??L.v.Promise)&&void 0!==ue?ue:Promise}},7579:(Y,G,E)=>{"use strict";E.d(G,{x:()=>B});var T=E(9751),n=E(727);const D=(0,E(3888).d)(W=>function(){W(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var L=E(8737),O=E(2806);let B=(()=>{class W extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(te){const ae=new U(this,this);return ae.operator=te,ae}_throwIfClosed(){if(this.closed)throw new D}next(te){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ae of this.currentObservers)ae.next(te)}})}error(te){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=te;const{observers:ae}=this;for(;ae.length;)ae.shift().error(te)}})}complete(){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:te}=this;for(;te.length;)te.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var te;return(null===(te=this.observers)||void 0===te?void 0:te.length)>0}_trySubscribe(te){return this._throwIfClosed(),super._trySubscribe(te)}_subscribe(te){return this._throwIfClosed(),this._checkFinalizedStatuses(te),this._innerSubscribe(te)}_innerSubscribe(te){const{hasError:ae,isStopped:ue,observers:oe}=this;return ae||ue?n.Lc:(this.currentObservers=null,oe.push(te),new n.w0(()=>{this.currentObservers=null,(0,L.P)(oe,te)}))}_checkFinalizedStatuses(te){const{hasError:ae,thrownError:ue,isStopped:oe}=this;ae?te.error(ue):oe&&te.complete()}asObservable(){const te=new T.y;return te.source=this,te}}return W.create=(ee,te)=>new U(ee,te),W})();class U extends B{constructor(ee,te){super(),this.destination=ee,this.source=te}next(ee){var te,ae;null===(ae=null===(te=this.destination)||void 0===te?void 0:te.next)||void 0===ae||ae.call(te,ee)}error(ee){var te,ae;null===(ae=null===(te=this.destination)||void 0===te?void 0:te.error)||void 0===ae||ae.call(te,ee)}complete(){var ee,te;null===(te=null===(ee=this.destination)||void 0===ee?void 0:ee.complete)||void 0===te||te.call(ee)}_subscribe(ee){var te,ae;return null!==(ae=null===(te=this.source)||void 0===te?void 0:te.subscribe(ee))&&void 0!==ae?ae:n.Lc}}},930:(Y,G,E)=>{"use strict";E.d(G,{Hp:()=>be,Lv:()=>ae});var T=E(576),n=E(727),H=E(2416),D=E(7849),L=E(5032);const O=W("C",void 0,void 0);function W(ke,De,Re){return{kind:ke,value:De,error:Re}}var ee=E(3410),te=E(2806);class ae extends n.w0{constructor(De){super(),this.isStopped=!1,De?(this.destination=De,(0,n.Nn)(De)&&De.add(this)):this.destination=et}static create(De,Re,_t){return new be(De,Re,_t)}next(De){this.isStopped?Xe(function U(ke){return W("N",ke,void 0)}(De),this):this._next(De)}error(De){this.isStopped?Xe(function B(ke){return W("E",void 0,ke)}(De),this):(this.isStopped=!0,this._error(De))}complete(){this.isStopped?Xe(O,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(De){this.destination.next(De)}_error(De){try{this.destination.error(De)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ue=Function.prototype.bind;function oe(ke,De){return ue.call(ke,De)}class re{constructor(De){this.partialObserver=De}next(De){const{partialObserver:Re}=this;if(Re.next)try{Re.next(De)}catch(_t){we(_t)}}error(De){const{partialObserver:Re}=this;if(Re.error)try{Re.error(De)}catch(_t){we(_t)}else we(De)}complete(){const{partialObserver:De}=this;if(De.complete)try{De.complete()}catch(Re){we(Re)}}}class be extends ae{constructor(De,Re,_t){let Ve;if(super(),(0,T.m)(De)||!De)Ve={next:De??void 0,error:Re??void 0,complete:_t??void 0};else{let ze;this&&H.v.useDeprecatedNextContext?(ze=Object.create(De),ze.unsubscribe=()=>this.unsubscribe(),Ve={next:De.next&&oe(De.next,ze),error:De.error&&oe(De.error,ze),complete:De.complete&&oe(De.complete,ze)}):Ve=De}this.destination=new re(Ve)}}function we(ke){H.v.useDeprecatedSynchronousErrorHandling?(0,te.O)(ke):(0,D.h)(ke)}function Xe(ke,De){const{onStoppedNotification:Re}=H.v;Re&&ee.z.setTimeout(()=>Re(ke,De))}const et={closed:!0,next:L.Z,error:function xe(ke){throw ke},complete:L.Z}},727:(Y,G,E)=>{"use strict";E.d(G,{Lc:()=>O,w0:()=>L,Nn:()=>B});var T=E(576);const H=(0,E(3888).d)(W=>function(te){W(this),this.message=te?`${te.length} errors occurred during unsubscription:\n${te.map((ae,ue)=>`${ue+1}) ${ae.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=te});var D=E(8737);class L{constructor(ee){this.initialTeardown=ee,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let ee;if(!this.closed){this.closed=!0;const{_parentage:te}=this;if(te)if(this._parentage=null,Array.isArray(te))for(const oe of te)oe.remove(this);else te.remove(this);const{initialTeardown:ae}=this;if((0,T.m)(ae))try{ae()}catch(oe){ee=oe instanceof H?oe.errors:[oe]}const{_finalizers:ue}=this;if(ue){this._finalizers=null;for(const oe of ue)try{U(oe)}catch(re){ee=ee??[],re instanceof H?ee=[...ee,...re.errors]:ee.push(re)}}if(ee)throw new H(ee)}}add(ee){var te;if(ee&&ee!==this)if(this.closed)U(ee);else{if(ee instanceof L){if(ee.closed||ee._hasParent(this))return;ee._addParent(this)}(this._finalizers=null!==(te=this._finalizers)&&void 0!==te?te:[]).push(ee)}}_hasParent(ee){const{_parentage:te}=this;return te===ee||Array.isArray(te)&&te.includes(ee)}_addParent(ee){const{_parentage:te}=this;this._parentage=Array.isArray(te)?(te.push(ee),te):te?[te,ee]:ee}_removeParent(ee){const{_parentage:te}=this;te===ee?this._parentage=null:Array.isArray(te)&&(0,D.P)(te,ee)}remove(ee){const{_finalizers:te}=this;te&&(0,D.P)(te,ee),ee instanceof L&&ee._removeParent(this)}}L.EMPTY=(()=>{const W=new L;return W.closed=!0,W})();const O=L.EMPTY;function B(W){return W instanceof L||W&&"closed"in W&&(0,T.m)(W.remove)&&(0,T.m)(W.add)&&(0,T.m)(W.unsubscribe)}function U(W){(0,T.m)(W)?W():W.unsubscribe()}},2416:(Y,G,E)=>{"use strict";E.d(G,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Y,G,E)=>{"use strict";E.d(G,{a:()=>ee});var T=E(9751),n=E(4742),H=E(2076),D=E(4671),L=E(3268),O=E(3269),B=E(1810),U=E(5403),W=E(9672);function ee(...ue){const oe=(0,O.yG)(ue),re=(0,O.jO)(ue),{args:be,keys:we}=(0,n.D)(ue);if(0===be.length)return(0,H.D)([],oe);const xe=new T.y(function te(ue,oe,re=D.y){return be=>{ae(oe,()=>{const{length:we}=ue,xe=new Array(we);let Xe=we,et=we;for(let ke=0;ke{const De=(0,H.D)(ue[ke],oe);let Re=!1;De.subscribe((0,U.x)(be,_t=>{xe[ke]=_t,Re||(Re=!0,et--),et||be.next(re(xe.slice()))},()=>{--Xe||be.complete()}))},be)},be)}}(be,oe,we?Xe=>(0,B.n)(we,Xe):D.y));return re?xe.pipe((0,L.Z)(re)):xe}function ae(ue,oe,re){ue?(0,W.f)(re,ue,oe):oe()}},7272:(Y,G,E)=>{"use strict";E.d(G,{z:()=>L});var T=E(8189),H=E(3269),D=E(2076);function L(...O){return function n(){return(0,T.J)(1)}()((0,D.D)(O,(0,H.yG)(O)))}},515:(Y,G,E)=>{"use strict";E.d(G,{E:()=>n});const n=new(E(9751).y)(L=>L.complete())},2076:(Y,G,E)=>{"use strict";E.d(G,{D:()=>_t});var T=E(8421),n=E(9672),H=E(4482),D=E(5403);function L(Ve,ze=0){return(0,H.e)((Fe,me)=>{Fe.subscribe((0,D.x)(me,_e=>(0,n.f)(me,Ve,()=>me.next(_e),ze),()=>(0,n.f)(me,Ve,()=>me.complete(),ze),_e=>(0,n.f)(me,Ve,()=>me.error(_e),ze)))})}function O(Ve,ze=0){return(0,H.e)((Fe,me)=>{me.add(Ve.schedule(()=>Fe.subscribe(me),ze))})}var W=E(9751),te=E(2202),ae=E(576);function oe(Ve,ze){if(!Ve)throw new Error("Iterable cannot be null");return new W.y(Fe=>{(0,n.f)(Fe,ze,()=>{const me=Ve[Symbol.asyncIterator]();(0,n.f)(Fe,ze,()=>{me.next().then(_e=>{_e.done?Fe.complete():Fe.next(_e.value)})},0,!0)})})}var re=E(3670),be=E(8239),we=E(1144),xe=E(6495),Xe=E(2206),et=E(4532),ke=E(3260);function _t(Ve,ze){return ze?function Re(Ve,ze){if(null!=Ve){if((0,re.c)(Ve))return function B(Ve,ze){return(0,T.Xf)(Ve).pipe(O(ze),L(ze))}(Ve,ze);if((0,we.z)(Ve))return function ee(Ve,ze){return new W.y(Fe=>{let me=0;return ze.schedule(function(){me===Ve.length?Fe.complete():(Fe.next(Ve[me++]),Fe.closed||this.schedule())})})}(Ve,ze);if((0,be.t)(Ve))return function U(Ve,ze){return(0,T.Xf)(Ve).pipe(O(ze),L(ze))}(Ve,ze);if((0,Xe.D)(Ve))return oe(Ve,ze);if((0,xe.T)(Ve))return function ue(Ve,ze){return new W.y(Fe=>{let me;return(0,n.f)(Fe,ze,()=>{me=Ve[te.h](),(0,n.f)(Fe,ze,()=>{let _e,Te;try{({value:_e,done:Te}=me.next())}catch(Me){return void Fe.error(Me)}Te?Fe.complete():Fe.next(_e)},0,!0)}),()=>(0,ae.m)(me?.return)&&me.return()})}(Ve,ze);if((0,ke.L)(Ve))return function De(Ve,ze){return oe((0,ke.Q)(Ve),ze)}(Ve,ze)}throw(0,et.z)(Ve)}(Ve,ze):(0,T.Xf)(Ve)}},8421:(Y,G,E)=>{"use strict";E.d(G,{Xf:()=>ue});var T=E(655),n=E(1144),H=E(8239),D=E(9751),L=E(3670),O=E(2206),B=E(4532),U=E(6495),W=E(3260),ee=E(576),te=E(7849),ae=E(8822);function ue(ke){if(ke instanceof D.y)return ke;if(null!=ke){if((0,L.c)(ke))return function oe(ke){return new D.y(De=>{const Re=ke[ae.L]();if((0,ee.m)(Re.subscribe))return Re.subscribe(De);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ke);if((0,n.z)(ke))return function re(ke){return new D.y(De=>{for(let Re=0;Re{ke.then(Re=>{De.closed||(De.next(Re),De.complete())},Re=>De.error(Re)).then(null,te.h)})}(ke);if((0,O.D)(ke))return xe(ke);if((0,U.T)(ke))return function we(ke){return new D.y(De=>{for(const Re of ke)if(De.next(Re),De.closed)return;De.complete()})}(ke);if((0,W.L)(ke))return function Xe(ke){return xe((0,W.Q)(ke))}(ke)}throw(0,B.z)(ke)}function xe(ke){return new D.y(De=>{(function et(ke,De){var Re,_t,Ve,ze;return(0,T.mG)(this,void 0,void 0,function*(){try{for(Re=(0,T.KL)(ke);!(_t=yield Re.next()).done;)if(De.next(_t.value),De.closed)return}catch(Fe){Ve={error:Fe}}finally{try{_t&&!_t.done&&(ze=Re.return)&&(yield ze.call(Re))}finally{if(Ve)throw Ve.error}}De.complete()})})(ke,De).catch(Re=>De.error(Re))})}},6451:(Y,G,E)=>{"use strict";E.d(G,{T:()=>O});var T=E(8189),n=E(8421),H=E(515),D=E(3269),L=E(2076);function O(...B){const U=(0,D.yG)(B),W=(0,D._6)(B,1/0),ee=B;return ee.length?1===ee.length?(0,n.Xf)(ee[0]):(0,T.J)(W)((0,L.D)(ee,U)):H.E}},9646:(Y,G,E)=>{"use strict";E.d(G,{of:()=>H});var T=E(3269),n=E(2076);function H(...D){const L=(0,T.yG)(D);return(0,n.D)(D,L)}},102:(Y,G,E)=>{"use strict";E.d(G,{S:()=>O});var T=E(9751),n=E(8421);const{isArray:H}=Array;var L=E(5403);function O(...U){return 1===(U=function D(U){return 1===U.length&&H(U[0])?U[0]:U}(U)).length?(0,n.Xf)(U[0]):new T.y(function B(U){return W=>{let ee=[];for(let te=0;ee&&!W.closed&&te{if(ee){for(let ue=0;ue{"use strict";E.d(G,{_:()=>H});var T=E(9751),n=E(576);function H(D,L){const O=(0,n.m)(D)?D:()=>D,B=U=>U.error(O());return new T.y(L?U=>L.schedule(B,0,U):B)}},2805:(Y,G,E)=>{"use strict";E.d(G,{H:()=>L});var T=E(9751),n=E(4986),H=E(3532),D=E(1165);function L(O=0,B,U=n.P){let W=-1;return null!=B&&((0,H.K)(B)?U=B:W=B),new T.y(ee=>{let te=(0,D.q)(O)?+O-U.now():O;te<0&&(te=0);let ae=0;return U.schedule(function(){ee.closed||(ee.next(ae++),0<=W?this.schedule(void 0,W):ee.complete())},te)})}},5403:(Y,G,E)=>{"use strict";E.d(G,{x:()=>n});var T=E(930);function n(D,L,O,B,U){return new H(D,L,O,B,U)}class H extends T.Lv{constructor(L,O,B,U,W,ee){super(L),this.onFinalize=W,this.shouldUnsubscribe=ee,this._next=O?function(te){try{O(te)}catch(ae){L.error(ae)}}:super._next,this._error=U?function(te){try{U(te)}catch(ae){L.error(ae)}finally{this.unsubscribe()}}:super._error,this._complete=B?function(){try{B()}catch(te){L.error(te)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var L;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:O}=this;super.unsubscribe(),!O&&(null===(L=this.onFinalize)||void 0===L||L.call(this))}}}},262:(Y,G,E)=>{"use strict";E.d(G,{K:()=>D});var T=E(8421),n=E(5403),H=E(4482);function D(L){return(0,H.e)((O,B)=>{let ee,U=null,W=!1;U=O.subscribe((0,n.x)(B,void 0,void 0,te=>{ee=(0,T.Xf)(L(te,D(L)(O))),U?(U.unsubscribe(),U=null,ee.subscribe(B)):W=!0})),W&&(U.unsubscribe(),U=null,ee.subscribe(B))})}},4351:(Y,G,E)=>{"use strict";E.d(G,{b:()=>H});var T=E(5577),n=E(576);function H(D,L){return(0,n.m)(L)?(0,T.z)(D,L,1):(0,T.z)(D,1)}},8372:(Y,G,E)=>{"use strict";E.d(G,{b:()=>D});var T=E(4986),n=E(4482),H=E(5403);function D(L,O=T.z){return(0,n.e)((B,U)=>{let W=null,ee=null,te=null;const ae=()=>{if(W){W.unsubscribe(),W=null;const oe=ee;ee=null,U.next(oe)}};function ue(){const oe=te+L,re=O.now();if(re{ee=oe,te=O.now(),W||(W=O.schedule(ue,L),U.add(W))},()=>{ae(),U.complete()},void 0,()=>{ee=W=null}))})}},6590:(Y,G,E)=>{"use strict";E.d(G,{d:()=>H});var T=E(4482),n=E(5403);function H(D){return(0,T.e)((L,O)=>{let B=!1;L.subscribe((0,n.x)(O,U=>{B=!0,O.next(U)},()=>{B||O.next(D),O.complete()}))})}},1005:(Y,G,E)=>{"use strict";E.d(G,{g:()=>ae});var T=E(4986),n=E(7272),H=E(5698),D=E(4482),L=E(5403),O=E(5032),U=E(9718),W=E(5577);function ee(ue,oe){return oe?re=>(0,n.z)(oe.pipe((0,H.q)(1),function B(){return(0,D.e)((ue,oe)=>{ue.subscribe((0,L.x)(oe,O.Z))})}()),re.pipe(ee(ue))):(0,W.z)((re,be)=>ue(re,be).pipe((0,H.q)(1),(0,U.h)(re)))}var te=E(2805);function ae(ue,oe=T.z){const re=(0,te.H)(ue,oe);return ee(()=>re)}},9300:(Y,G,E)=>{"use strict";E.d(G,{h:()=>H});var T=E(4482),n=E(5403);function H(D,L){return(0,T.e)((O,B)=>{let U=0;O.subscribe((0,n.x)(B,W=>D.call(L,W,U++)&&B.next(W)))})}},590:(Y,G,E)=>{"use strict";E.d(G,{P:()=>B});var T=E(6805),n=E(9300),H=E(5698),D=E(6590),L=E(8068),O=E(4671);function B(U,W){const ee=arguments.length>=2;return te=>te.pipe(U?(0,n.h)((ae,ue)=>U(ae,ue,te)):O.y,(0,H.q)(1),ee?(0,D.d)(W):(0,L.T)(()=>new T.K))}},4004:(Y,G,E)=>{"use strict";E.d(G,{U:()=>H});var T=E(4482),n=E(5403);function H(D,L){return(0,T.e)((O,B)=>{let U=0;O.subscribe((0,n.x)(B,W=>{B.next(D.call(L,W,U++))}))})}},9718:(Y,G,E)=>{"use strict";E.d(G,{h:()=>n});var T=E(4004);function n(H){return(0,T.U)(()=>H)}},8189:(Y,G,E)=>{"use strict";E.d(G,{J:()=>H});var T=E(5577),n=E(4671);function H(D=1/0){return(0,T.z)(n.y,D)}},5577:(Y,G,E)=>{"use strict";E.d(G,{z:()=>U});var T=E(4004),n=E(8421),H=E(4482),D=E(9672),L=E(5403),B=E(576);function U(W,ee,te=1/0){return(0,B.m)(ee)?U((ae,ue)=>(0,T.U)((oe,re)=>ee(ae,oe,ue,re))((0,n.Xf)(W(ae,ue))),te):("number"==typeof ee&&(te=ee),(0,H.e)((ae,ue)=>function O(W,ee,te,ae,ue,oe,re,be){const we=[];let xe=0,Xe=0,et=!1;const ke=()=>{et&&!we.length&&!xe&&ee.complete()},De=_t=>xe{oe&&ee.next(_t),xe++;let Ve=!1;(0,n.Xf)(te(_t,Xe++)).subscribe((0,L.x)(ee,ze=>{ue?.(ze),oe?De(ze):ee.next(ze)},()=>{Ve=!0},void 0,()=>{if(Ve)try{for(xe--;we.length&&xeRe(ze)):Re(ze)}ke()}catch(ze){ee.error(ze)}}))};return W.subscribe((0,L.x)(ee,De,()=>{et=!0,ke()})),()=>{be?.()}}(ae,ue,W,te)))}},3099:(Y,G,E)=>{"use strict";E.d(G,{B:()=>L});var T=E(8421),n=E(7579),H=E(930),D=E(4482);function L(B={}){const{connector:U=(()=>new n.x),resetOnError:W=!0,resetOnComplete:ee=!0,resetOnRefCountZero:te=!0}=B;return ae=>{let ue,oe,re,be=0,we=!1,xe=!1;const Xe=()=>{oe?.unsubscribe(),oe=void 0},et=()=>{Xe(),ue=re=void 0,we=xe=!1},ke=()=>{const De=ue;et(),De?.unsubscribe()};return(0,D.e)((De,Re)=>{be++,!xe&&!we&&Xe();const _t=re=re??U();Re.add(()=>{be--,0===be&&!xe&&!we&&(oe=O(ke,te))}),_t.subscribe(Re),!ue&&be>0&&(ue=new H.Hp({next:Ve=>_t.next(Ve),error:Ve=>{xe=!0,Xe(),oe=O(et,W,Ve),_t.error(Ve)},complete:()=>{we=!0,Xe(),oe=O(et,ee),_t.complete()}}),(0,T.Xf)(De).subscribe(ue))})(ae)}}function O(B,U,...W){if(!0===U)return void B();if(!1===U)return;const ee=new H.Hp({next:()=>{ee.unsubscribe(),B()}});return U(...W).subscribe(ee)}},3900:(Y,G,E)=>{"use strict";E.d(G,{w:()=>D});var T=E(8421),n=E(4482),H=E(5403);function D(L,O){return(0,n.e)((B,U)=>{let W=null,ee=0,te=!1;const ae=()=>te&&!W&&U.complete();B.subscribe((0,H.x)(U,ue=>{W?.unsubscribe();let oe=0;const re=ee++;(0,T.Xf)(L(ue,re)).subscribe(W=(0,H.x)(U,be=>U.next(O?O(ue,be,re,oe++):be),()=>{W=null,ae()}))},()=>{te=!0,ae()}))})}},5698:(Y,G,E)=>{"use strict";E.d(G,{q:()=>D});var T=E(515),n=E(4482),H=E(5403);function D(L){return L<=0?()=>T.E:(0,n.e)((O,B)=>{let U=0;O.subscribe((0,H.x)(B,W=>{++U<=L&&(B.next(W),L<=U&&B.complete())}))})}},8505:(Y,G,E)=>{"use strict";E.d(G,{b:()=>L});var T=E(576),n=E(4482),H=E(5403),D=E(4671);function L(O,B,U){const W=(0,T.m)(O)||B||U?{next:O,error:B,complete:U}:O;return W?(0,n.e)((ee,te)=>{var ae;null===(ae=W.subscribe)||void 0===ae||ae.call(W);let ue=!0;ee.subscribe((0,H.x)(te,oe=>{var re;null===(re=W.next)||void 0===re||re.call(W,oe),te.next(oe)},()=>{var oe;ue=!1,null===(oe=W.complete)||void 0===oe||oe.call(W),te.complete()},oe=>{var re;ue=!1,null===(re=W.error)||void 0===re||re.call(W,oe),te.error(oe)},()=>{var oe,re;ue&&(null===(oe=W.unsubscribe)||void 0===oe||oe.call(W)),null===(re=W.finalize)||void 0===re||re.call(W)}))}):D.y}},8068:(Y,G,E)=>{"use strict";E.d(G,{T:()=>D});var T=E(6805),n=E(4482),H=E(5403);function D(O=L){return(0,n.e)((B,U)=>{let W=!1;B.subscribe((0,H.x)(U,ee=>{W=!0,U.next(ee)},()=>W?U.complete():U.error(O())))})}function L(){return new T.K}},7414:(Y,G,E)=>{"use strict";E.d(G,{V:()=>W});var T=E(4986),n=E(1165),H=E(4482),D=E(8421),L=E(3888),O=E(5403),B=E(9672);const U=(0,L.d)(te=>function(ue=null){te(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ue});function W(te,ae){const{first:ue,each:oe,with:re=ee,scheduler:be=ae??T.z,meta:we=null}=(0,n.q)(te)?{first:te}:"number"==typeof te?{each:te}:te;if(null==ue&&null==oe)throw new TypeError("No timeout provided.");return(0,H.e)((xe,Xe)=>{let et,ke,De=null,Re=0;const _t=Ve=>{ke=(0,B.f)(Xe,be,()=>{try{et.unsubscribe(),(0,D.Xf)(re({meta:we,lastValue:De,seen:Re})).subscribe(Xe)}catch(ze){Xe.error(ze)}},Ve)};et=xe.subscribe((0,O.x)(Xe,Ve=>{ke?.unsubscribe(),Re++,Xe.next(De=Ve),oe>0&&_t(oe)},void 0,void 0,()=>{ke?.closed||ke?.unsubscribe(),De=null})),!Re&&_t(null!=ue?"number"==typeof ue?ue:+ue-be.now():oe)})}function ee(te){throw new U(te)}},4408:(Y,G,E)=>{"use strict";E.d(G,{o:()=>L});var T=E(727);class n extends T.w0{constructor(B,U){super()}schedule(B,U=0){return this}}const H={setInterval(O,B,...U){const{delegate:W}=H;return W?.setInterval?W.setInterval(O,B,...U):setInterval(O,B,...U)},clearInterval(O){const{delegate:B}=H;return(B?.clearInterval||clearInterval)(O)},delegate:void 0};var D=E(8737);class L extends n{constructor(B,U){super(B,U),this.scheduler=B,this.work=U,this.pending=!1}schedule(B,U=0){if(this.closed)return this;this.state=B;const W=this.id,ee=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(ee,W,U)),this.pending=!0,this.delay=U,this.id=this.id||this.requestAsyncId(ee,this.id,U),this}requestAsyncId(B,U,W=0){return H.setInterval(B.flush.bind(B,this),W)}recycleAsyncId(B,U,W=0){if(null!=W&&this.delay===W&&!1===this.pending)return U;H.clearInterval(U)}execute(B,U){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(B,U);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(B,U){let ee,W=!1;try{this.work(B)}catch(te){W=!0,ee=te||new Error("Scheduled action threw falsy error")}if(W)return this.unsubscribe(),ee}unsubscribe(){if(!this.closed){const{id:B,scheduler:U}=this,{actions:W}=U;this.work=this.state=this.scheduler=null,this.pending=!1,(0,D.P)(W,this),null!=B&&(this.id=this.recycleAsyncId(U,B,null)),this.delay=null,super.unsubscribe()}}}},7565:(Y,G,E)=>{"use strict";E.d(G,{v:()=>H});var T=E(6063);class n{constructor(L,O=n.now){this.schedulerActionCtor=L,this.now=O}schedule(L,O=0,B){return new this.schedulerActionCtor(this,L).schedule(B,O)}}n.now=T.l.now;class H extends n{constructor(L,O=n.now){super(L,O),this.actions=[],this._active=!1,this._scheduled=void 0}flush(L){const{actions:O}=this;if(this._active)return void O.push(L);let B;this._active=!0;do{if(B=L.execute(L.state,L.delay))break}while(L=O.shift());if(this._active=!1,B){for(;L=O.shift();)L.unsubscribe();throw B}}}},4986:(Y,G,E)=>{"use strict";E.d(G,{P:()=>D,z:()=>H});var T=E(4408);const H=new(E(7565).v)(T.o),D=H},6063:(Y,G,E)=>{"use strict";E.d(G,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(Y,G,E)=>{"use strict";E.d(G,{z:()=>T});const T={setTimeout(n,H,...D){const{delegate:L}=T;return L?.setTimeout?L.setTimeout(n,H,...D):setTimeout(n,H,...D)},clearTimeout(n){const{delegate:H}=T;return(H?.clearTimeout||clearTimeout)(n)},delegate:void 0}},2202:(Y,G,E)=>{"use strict";E.d(G,{h:()=>n});const n=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Y,G,E)=>{"use strict";E.d(G,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Y,G,E)=>{"use strict";E.d(G,{K:()=>n});const n=(0,E(3888).d)(H=>function(){H(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Y,G,E)=>{"use strict";E.d(G,{_6:()=>O,jO:()=>D,yG:()=>L});var T=E(576),n=E(3532);function H(B){return B[B.length-1]}function D(B){return(0,T.m)(H(B))?B.pop():void 0}function L(B){return(0,n.K)(H(B))?B.pop():void 0}function O(B,U){return"number"==typeof H(B)?B.pop():U}},4742:(Y,G,E)=>{"use strict";E.d(G,{D:()=>L});const{isArray:T}=Array,{getPrototypeOf:n,prototype:H,keys:D}=Object;function L(B){if(1===B.length){const U=B[0];if(T(U))return{args:U,keys:null};if(function O(B){return B&&"object"==typeof B&&n(B)===H}(U)){const W=D(U);return{args:W.map(ee=>U[ee]),keys:W}}}return{args:B,keys:null}}},8737:(Y,G,E)=>{"use strict";function T(n,H){if(n){const D=n.indexOf(H);0<=D&&n.splice(D,1)}}E.d(G,{P:()=>T})},3888:(Y,G,E)=>{"use strict";function T(n){const D=n(L=>{Error.call(L),L.stack=(new Error).stack});return D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D}E.d(G,{d:()=>T})},1810:(Y,G,E)=>{"use strict";function T(n,H){return n.reduce((D,L,O)=>(D[L]=H[O],D),{})}E.d(G,{n:()=>T})},2806:(Y,G,E)=>{"use strict";E.d(G,{O:()=>D,x:()=>H});var T=E(2416);let n=null;function H(L){if(T.v.useDeprecatedSynchronousErrorHandling){const O=!n;if(O&&(n={errorThrown:!1,error:null}),L(),O){const{errorThrown:B,error:U}=n;if(n=null,B)throw U}}else L()}function D(L){T.v.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=L)}},9672:(Y,G,E)=>{"use strict";function T(n,H,D,L=0,O=!1){const B=H.schedule(function(){D(),O?n.add(this.schedule(null,L)):this.unsubscribe()},L);if(n.add(B),!O)return B}E.d(G,{f:()=>T})},4671:(Y,G,E)=>{"use strict";function T(n){return n}E.d(G,{y:()=>T})},1144:(Y,G,E)=>{"use strict";E.d(G,{z:()=>T});const T=n=>n&&"number"==typeof n.length&&"function"!=typeof n},2206:(Y,G,E)=>{"use strict";E.d(G,{D:()=>n});var T=E(576);function n(H){return Symbol.asyncIterator&&(0,T.m)(H?.[Symbol.asyncIterator])}},1165:(Y,G,E)=>{"use strict";function T(n){return n instanceof Date&&!isNaN(n)}E.d(G,{q:()=>T})},576:(Y,G,E)=>{"use strict";function T(n){return"function"==typeof n}E.d(G,{m:()=>T})},3670:(Y,G,E)=>{"use strict";E.d(G,{c:()=>H});var T=E(8822),n=E(576);function H(D){return(0,n.m)(D[T.L])}},6495:(Y,G,E)=>{"use strict";E.d(G,{T:()=>H});var T=E(2202),n=E(576);function H(D){return(0,n.m)(D?.[T.h])}},8239:(Y,G,E)=>{"use strict";E.d(G,{t:()=>n});var T=E(576);function n(H){return(0,T.m)(H?.then)}},3260:(Y,G,E)=>{"use strict";E.d(G,{L:()=>D,Q:()=>H});var T=E(655),n=E(576);function H(L){return(0,T.FC)(this,arguments,function*(){const B=L.getReader();try{for(;;){const{value:U,done:W}=yield(0,T.qq)(B.read());if(W)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(U)}}finally{B.releaseLock()}})}function D(L){return(0,n.m)(L?.getReader)}},3532:(Y,G,E)=>{"use strict";E.d(G,{K:()=>n});var T=E(576);function n(H){return H&&(0,T.m)(H.schedule)}},4482:(Y,G,E)=>{"use strict";E.d(G,{A:()=>n,e:()=>H});var T=E(576);function n(D){return(0,T.m)(D?.lift)}function H(D){return L=>{if(n(L))return L.lift(function(O){try{return D(O,this)}catch(B){this.error(B)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Y,G,E)=>{"use strict";E.d(G,{Z:()=>D});var T=E(4004);const{isArray:n}=Array;function D(L){return(0,T.U)(O=>function H(L,O){return n(O)?L(...O):L(O)}(L,O))}},5032:(Y,G,E)=>{"use strict";function T(){}E.d(G,{Z:()=>T})},9635:(Y,G,E)=>{"use strict";E.d(G,{U:()=>H,z:()=>n});var T=E(4671);function n(...D){return H(D)}function H(D){return 0===D.length?T.y:1===D.length?D[0]:function(O){return D.reduce((B,U)=>U(B),O)}}},7849:(Y,G,E)=>{"use strict";E.d(G,{h:()=>H});var T=E(2416),n=E(3410);function H(D){n.z.setTimeout(()=>{const{onUnhandledError:L}=T.v;if(!L)throw D;L(D)})}},4532:(Y,G,E)=>{"use strict";function T(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(G,{z:()=>T})},6700:(Y,G,E)=>{var T={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function n(D){var L=H(D);return E(L)}function H(D){if(!E.o(T,D)){var L=new Error("Cannot find module '"+D+"'");throw L.code="MODULE_NOT_FOUND",L}return T[D]}n.keys=function(){return Object.keys(T)},n.resolve=H,Y.exports=n,n.id=6700},655:(Y,G,E)=>{"use strict";function U(me,_e,Te,Me){return new(Te||(Te=Promise))(function(We,yt){function Ft(ai){try{tt(Me.next(ai))}catch(Oi){yt(Oi)}}function cn(ai){try{tt(Me.throw(ai))}catch(Oi){yt(Oi)}}function tt(ai){ai.done?We(ai.value):function $e(We){return We instanceof Te?We:new Te(function(yt){yt(We)})}(ai.value).then(Ft,cn)}tt((Me=Me.apply(me,_e||[])).next())})}function we(me){return this instanceof we?(this.v=me,this):new we(me)}function xe(me,_e,Te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $e,Me=Te.apply(me,_e||[]),We=[];return $e={},yt("next"),yt("throw"),yt("return"),$e[Symbol.asyncIterator]=function(){return this},$e;function yt(Je){Me[Je]&&($e[Je]=function(dn){return new Promise(function(Gi,Tn){We.push([Je,dn,Gi,Tn])>1||Ft(Je,dn)})})}function Ft(Je,dn){try{!function cn(Je){Je.value instanceof we?Promise.resolve(Je.value.v).then(tt,ai):Oi(We[0][2],Je)}(Me[Je](dn))}catch(Gi){Oi(We[0][3],Gi)}}function tt(Je){Ft("next",Je)}function ai(Je){Ft("throw",Je)}function Oi(Je,dn){Je(dn),We.shift(),We.length&&Ft(We[0][0],We[0][1])}}function et(me){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Te,_e=me[Symbol.asyncIterator];return _e?_e.call(me):(me=function ae(me){var _e="function"==typeof Symbol&&Symbol.iterator,Te=_e&&me[_e],Me=0;if(Te)return Te.call(me);if(me&&"number"==typeof me.length)return{next:function(){return me&&Me>=me.length&&(me=void 0),{value:me&&me[Me++],done:!me}}};throw new TypeError(_e?"Object is not iterable.":"Symbol.iterator is not defined.")}(me),Te={},Me("next"),Me("throw"),Me("return"),Te[Symbol.asyncIterator]=function(){return this},Te);function Me(We){Te[We]=me[We]&&function(yt){return new Promise(function(Ft,cn){!function $e(We,yt,Ft,cn){Promise.resolve(cn).then(function(tt){We({value:tt,done:Ft})},yt)}(Ft,cn,(yt=me[We](yt)).done,yt.value)})}}}E.d(G,{FC:()=>xe,KL:()=>et,mG:()=>U,qq:()=>we})},6895:(Y,G,E)=>{"use strict";E.d(G,{Do:()=>et,ED:()=>ba,EM:()=>ya,HT:()=>L,JF:()=>Bi,K0:()=>B,Mx:()=>Mt,NF:()=>rh,Nd:()=>ac,O5:()=>fi,Ov:()=>Vn,PC:()=>dr,PM:()=>ff,RF:()=>Sr,S$:()=>we,V_:()=>ee,Ye:()=>ke,b0:()=>Xe,bD:()=>Ti,ez:()=>li,gd:()=>Hd,mk:()=>Fr,n9:()=>Qi,q:()=>H,sg:()=>xr,uU:()=>Ko,w_:()=>O});var T=E(4650);let n=null;function H(){return n}function L(j){n||(n=j)}class O{}const B=new T.OlP("DocumentToken");let U=(()=>{class j{historyGo(F){throw new Error("Not implemented")}}return j.\u0275fac=function(F){return new(F||j)},j.\u0275prov=T.Yz7({token:j,factory:function(){return function W(){return(0,T.LFG)(te)}()},providedIn:"platform"}),j})();const ee=new T.OlP("Location Initialized");let te=(()=>{class j extends U{constructor(F){super(),this._doc=F,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return H().getBaseHref(this._doc)}onPopState(F){const X=H().getGlobalEventTarget(this._doc,"window");return X.addEventListener("popstate",F,!1),()=>X.removeEventListener("popstate",F)}onHashChange(F){const X=H().getGlobalEventTarget(this._doc,"window");return X.addEventListener("hashchange",F,!1),()=>X.removeEventListener("hashchange",F)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(F){this.location.pathname=F}pushState(F,X,le){ae()?this._history.pushState(F,X,le):this.location.hash=le}replaceState(F,X,le){ae()?this._history.replaceState(F,X,le):this.location.hash=le}forward(){this._history.forward()}back(){this._history.back()}historyGo(F=0){this._history.go(F)}getState(){return this._history.state}}return j.\u0275fac=function(F){return new(F||j)(T.LFG(B))},j.\u0275prov=T.Yz7({token:j,factory:function(){return function ue(){return new te((0,T.LFG)(B))}()},providedIn:"platform"}),j})();function ae(){return!!window.history.pushState}function oe(j,J){if(0==j.length)return J;if(0==J.length)return j;let F=0;return j.endsWith("/")&&F++,J.startsWith("/")&&F++,2==F?j+J.substring(1):1==F?j+J:j+"/"+J}function re(j){const J=j.match(/#|\?|$/),F=J&&J.index||j.length;return j.slice(0,F-("/"===j[F-1]?1:0))+j.slice(F)}function be(j){return j&&"?"!==j[0]?"?"+j:j}let we=(()=>{class j{historyGo(F){throw new Error("Not implemented")}}return j.\u0275fac=function(F){return new(F||j)},j.\u0275prov=T.Yz7({token:j,factory:function(){return(0,T.f3M)(Xe)},providedIn:"root"}),j})();const xe=new T.OlP("appBaseHref");let Xe=(()=>{class j extends we{constructor(F,X){var le,Ce,Ae;super(),this._platformLocation=F,this._removeListenerFns=[],this._baseHref=null!==(le=null!==(Ce=X??this._platformLocation.getBaseHrefFromDOM())&&void 0!==Ce?Ce:null===(Ae=(0,T.f3M)(B).location)||void 0===Ae?void 0:Ae.origin)&&void 0!==le?le:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}prepareExternalUrl(F){return oe(this._baseHref,F)}path(F=!1){const X=this._platformLocation.pathname+be(this._platformLocation.search),le=this._platformLocation.hash;return le&&F?`${X}${le}`:X}pushState(F,X,le,Ce){const Ae=this.prepareExternalUrl(le+be(Ce));this._platformLocation.pushState(F,X,Ae)}replaceState(F,X,le,Ce){const Ae=this.prepareExternalUrl(le+be(Ce));this._platformLocation.replaceState(F,X,Ae)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var X,le;null===(X=(le=this._platformLocation).historyGo)||void 0===X||X.call(le,F)}}return j.\u0275fac=function(F){return new(F||j)(T.LFG(U),T.LFG(xe,8))},j.\u0275prov=T.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})(),et=(()=>{class j extends we{constructor(F,X){super(),this._platformLocation=F,this._baseHref="",this._removeListenerFns=[],null!=X&&(this._baseHref=X)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}path(F=!1){let X=this._platformLocation.hash;return null==X&&(X="#"),X.length>0?X.substring(1):X}prepareExternalUrl(F){const X=oe(this._baseHref,F);return X.length>0?"#"+X:X}pushState(F,X,le,Ce){let Ae=this.prepareExternalUrl(le+be(Ce));0==Ae.length&&(Ae=this._platformLocation.pathname),this._platformLocation.pushState(F,X,Ae)}replaceState(F,X,le,Ce){let Ae=this.prepareExternalUrl(le+be(Ce));0==Ae.length&&(Ae=this._platformLocation.pathname),this._platformLocation.replaceState(F,X,Ae)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var X,le;null===(X=(le=this._platformLocation).historyGo)||void 0===X||X.call(le,F)}}return j.\u0275fac=function(F){return new(F||j)(T.LFG(U),T.LFG(xe,8))},j.\u0275prov=T.Yz7({token:j,factory:j.\u0275fac}),j})(),ke=(()=>{class j{constructor(F){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=F;const X=this._locationStrategy.getBaseHref();this._baseHref=re(_t(X)),this._locationStrategy.onPopState(le=>{this._subject.emit({url:this.path(!0),pop:!0,state:le.state,type:le.type})})}ngOnDestroy(){var F;null===(F=this._urlChangeSubscription)||void 0===F||F.unsubscribe(),this._urlChangeListeners=[]}path(F=!1){return this.normalize(this._locationStrategy.path(F))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(F,X=""){return this.path()==this.normalize(F+be(X))}normalize(F){return j.stripTrailingSlash(function Re(j,J){return j&&J.startsWith(j)?J.substring(j.length):J}(this._baseHref,_t(F)))}prepareExternalUrl(F){return F&&"/"!==F[0]&&(F="/"+F),this._locationStrategy.prepareExternalUrl(F)}go(F,X="",le=null){this._locationStrategy.pushState(le,"",F,X),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+be(X)),le)}replaceState(F,X="",le=null){this._locationStrategy.replaceState(le,"",F,X),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+be(X)),le)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(F=0){var X,le;null===(X=(le=this._locationStrategy).historyGo)||void 0===X||X.call(le,F)}onUrlChange(F){return this._urlChangeListeners.push(F),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(X=>{this._notifyUrlChangeListeners(X.url,X.state)})),()=>{const X=this._urlChangeListeners.indexOf(F);var le;this._urlChangeListeners.splice(X,1),0===this._urlChangeListeners.length&&(null===(le=this._urlChangeSubscription)||void 0===le||le.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(F="",X){this._urlChangeListeners.forEach(le=>le(F,X))}subscribe(F,X,le){return this._subject.subscribe({next:F,error:X,complete:le})}}return j.normalizeQueryParams=be,j.joinWithSlash=oe,j.stripTrailingSlash=re,j.\u0275fac=function(F){return new(F||j)(T.LFG(we))},j.\u0275prov=T.Yz7({token:j,factory:function(){return function De(){return new ke((0,T.LFG)(we))}()},providedIn:"root"}),j})();function _t(j){return j.replace(/\/index.html$/,"")}var me=(()=>((me=me||{})[me.Format=0]="Format",me[me.Standalone=1]="Standalone",me))(),_e=(()=>((_e=_e||{})[_e.Narrow=0]="Narrow",_e[_e.Abbreviated=1]="Abbreviated",_e[_e.Wide=2]="Wide",_e[_e.Short=3]="Short",_e))(),Te=(()=>((Te=Te||{})[Te.Short=0]="Short",Te[Te.Medium=1]="Medium",Te[Te.Long=2]="Long",Te[Te.Full=3]="Full",Te))(),Me=(()=>((Me=Me||{})[Me.Decimal=0]="Decimal",Me[Me.Group=1]="Group",Me[Me.List=2]="List",Me[Me.PercentSign=3]="PercentSign",Me[Me.PlusSign=4]="PlusSign",Me[Me.MinusSign=5]="MinusSign",Me[Me.Exponential=6]="Exponential",Me[Me.SuperscriptingExponent=7]="SuperscriptingExponent",Me[Me.PerMille=8]="PerMille",Me[Me.Infinity=9]="Infinity",Me[Me.NaN=10]="NaN",Me[Me.TimeSeparator=11]="TimeSeparator",Me[Me.CurrencyDecimal=12]="CurrencyDecimal",Me[Me.CurrencyGroup=13]="CurrencyGroup",Me))();function Je(j,J){return Ye((0,T.cg1)(j)[T.wAp.DateFormat],J)}function dn(j,J){return Ye((0,T.cg1)(j)[T.wAp.TimeFormat],J)}function Gi(j,J){return Ye((0,T.cg1)(j)[T.wAp.DateTimeFormat],J)}function Tn(j,J){const F=(0,T.cg1)(j),X=F[T.wAp.NumberSymbols][J];if(typeof X>"u"){if(J===Me.CurrencyDecimal)return F[T.wAp.NumberSymbols][Me.Decimal];if(J===Me.CurrencyGroup)return F[T.wAp.NumberSymbols][Me.Group]}return X}function zi(j){if(!j[T.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${j[T.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ye(j,J){for(let F=J;F>-1;F--)if(typeof j[F]<"u")return j[F];throw new Error("Locale data API: locale data undefined")}function lt(j){const[J,F]=j.split(":");return{hours:+J,minutes:+F}}const un=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Kt={},Oe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ce=(()=>((ce=ce||{})[ce.Short=0]="Short",ce[ce.ShortGMT=1]="ShortGMT",ce[ce.Long=2]="Long",ce[ce.Extended=3]="Extended",ce))(),ie=(()=>((ie=ie||{})[ie.FullYear=0]="FullYear",ie[ie.Month=1]="Month",ie[ie.Date=2]="Date",ie[ie.Hours=3]="Hours",ie[ie.Minutes=4]="Minutes",ie[ie.Seconds=5]="Seconds",ie[ie.FractionalSeconds=6]="FractionalSeconds",ie[ie.Day=7]="Day",ie))(),fe=(()=>((fe=fe||{})[fe.DayPeriods=0]="DayPeriods",fe[fe.Days=1]="Days",fe[fe.Months=2]="Months",fe[fe.Eras=3]="Eras",fe))();function Be(j,J,F,X){let le=function pi(j){if(ei(j))return j;if("number"==typeof j&&!isNaN(j))return new Date(j);if("string"==typeof j){if(j=j.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(j)){const[le,Ce=1,Ae=1]=j.split("-").map(dt=>+dt);return Ct(le,Ce-1,Ae)}const F=parseFloat(j);if(!isNaN(j-F))return new Date(F);let X;if(X=j.match(un))return function Ze(j){const J=new Date(0);let F=0,X=0;const le=j[8]?J.setUTCFullYear:J.setFullYear,Ce=j[8]?J.setUTCHours:J.setHours;j[9]&&(F=Number(j[9]+j[10]),X=Number(j[9]+j[11])),le.call(J,Number(j[1]),Number(j[2])-1,Number(j[3]));const Ae=Number(j[4]||0)-F,dt=Number(j[5]||0)-X,Bn=Number(j[6]||0),Mn=Math.floor(1e3*parseFloat("0."+(j[7]||0)));return Ce.call(J,Ae,dt,Bn,Mn),J}(X)}const J=new Date(j);if(!ei(J))throw new Error(`Unable to convert "${j}" into a date`);return J}(j);J=Bt(F,J)||J;let dt,Ae=[];for(;J;){if(dt=Oe.exec(J),!dt){Ae.push(J);break}{Ae=Ae.concat(dt.slice(1));const xn=Ae.pop();if(!xn)break;J=xn}}let Bn=le.getTimezoneOffset();X&&(Bn=_s(X,Bn),le=function si(j,J,F){const X=F?-1:1,le=j.getTimezoneOffset();return function pn(j,J){return(j=new Date(j.getTime())).setMinutes(j.getMinutes()+J),j}(j,X*(_s(J,le)-le))}(le,X,!0));let Mn="";return Ae.forEach(xn=>{const nn=function Ed(j){if(fa[j])return fa[j];let J;switch(j){case"G":case"GG":case"GGG":J=Lt(fe.Eras,_e.Abbreviated);break;case"GGGG":J=Lt(fe.Eras,_e.Wide);break;case"GGGGG":J=Lt(fe.Eras,_e.Narrow);break;case"y":J=kt(ie.FullYear,1,0,!1,!0);break;case"yy":J=kt(ie.FullYear,2,0,!0,!0);break;case"yyy":J=kt(ie.FullYear,3,0,!1,!0);break;case"yyyy":J=kt(ie.FullYear,4,0,!1,!0);break;case"Y":J=Tr(1);break;case"YY":J=Tr(2,!0);break;case"YYY":J=Tr(3);break;case"YYYY":J=Tr(4);break;case"M":case"L":J=kt(ie.Month,1,1);break;case"MM":case"LL":J=kt(ie.Month,2,1);break;case"MMM":J=Lt(fe.Months,_e.Abbreviated);break;case"MMMM":J=Lt(fe.Months,_e.Wide);break;case"MMMMM":J=Lt(fe.Months,_e.Narrow);break;case"LLL":J=Lt(fe.Months,_e.Abbreviated,me.Standalone);break;case"LLLL":J=Lt(fe.Months,_e.Wide,me.Standalone);break;case"LLLLL":J=Lt(fe.Months,_e.Narrow,me.Standalone);break;case"w":J=jr(1);break;case"ww":J=jr(2);break;case"W":J=jr(1,!0);break;case"d":J=kt(ie.Date,1);break;case"dd":J=kt(ie.Date,2);break;case"c":case"cc":J=kt(ie.Day,1);break;case"ccc":J=Lt(fe.Days,_e.Abbreviated,me.Standalone);break;case"cccc":J=Lt(fe.Days,_e.Wide,me.Standalone);break;case"ccccc":J=Lt(fe.Days,_e.Narrow,me.Standalone);break;case"cccccc":J=Lt(fe.Days,_e.Short,me.Standalone);break;case"E":case"EE":case"EEE":J=Lt(fe.Days,_e.Abbreviated);break;case"EEEE":J=Lt(fe.Days,_e.Wide);break;case"EEEEE":J=Lt(fe.Days,_e.Narrow);break;case"EEEEEE":J=Lt(fe.Days,_e.Short);break;case"a":case"aa":case"aaa":J=Lt(fe.DayPeriods,_e.Abbreviated);break;case"aaaa":J=Lt(fe.DayPeriods,_e.Wide);break;case"aaaaa":J=Lt(fe.DayPeriods,_e.Narrow);break;case"b":case"bb":case"bbb":J=Lt(fe.DayPeriods,_e.Abbreviated,me.Standalone,!0);break;case"bbbb":J=Lt(fe.DayPeriods,_e.Wide,me.Standalone,!0);break;case"bbbbb":J=Lt(fe.DayPeriods,_e.Narrow,me.Standalone,!0);break;case"B":case"BB":case"BBB":J=Lt(fe.DayPeriods,_e.Abbreviated,me.Format,!0);break;case"BBBB":J=Lt(fe.DayPeriods,_e.Wide,me.Format,!0);break;case"BBBBB":J=Lt(fe.DayPeriods,_e.Narrow,me.Format,!0);break;case"h":J=kt(ie.Hours,1,-12);break;case"hh":J=kt(ie.Hours,2,-12);break;case"H":J=kt(ie.Hours,1);break;case"HH":J=kt(ie.Hours,2);break;case"m":J=kt(ie.Minutes,1);break;case"mm":J=kt(ie.Minutes,2);break;case"s":J=kt(ie.Seconds,1);break;case"ss":J=kt(ie.Seconds,2);break;case"S":J=kt(ie.FractionalSeconds,1);break;case"SS":J=kt(ie.FractionalSeconds,2);break;case"SSS":J=kt(ie.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":J=St(ce.Short);break;case"ZZZZZ":J=St(ce.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":J=St(ce.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":J=St(ce.Long);break;default:return null}return fa[j]=J,J}(xn);Mn+=nn?nn(le,F,Bn):"''"===xn?"'":xn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Mn}function Ct(j,J,F){const X=new Date(0);return X.setFullYear(j,J,F),X.setHours(0,0,0),X}function Bt(j,J){const F=function We(j){return(0,T.cg1)(j)[T.wAp.LocaleId]}(j);if(Kt[F]=Kt[F]||{},Kt[F][J])return Kt[F][J];let X="";switch(J){case"shortDate":X=Je(j,Te.Short);break;case"mediumDate":X=Je(j,Te.Medium);break;case"longDate":X=Je(j,Te.Long);break;case"fullDate":X=Je(j,Te.Full);break;case"shortTime":X=dn(j,Te.Short);break;case"mediumTime":X=dn(j,Te.Medium);break;case"longTime":X=dn(j,Te.Long);break;case"fullTime":X=dn(j,Te.Full);break;case"short":const le=Bt(j,"shortTime"),Ce=Bt(j,"shortDate");X=it(Gi(j,Te.Short),[le,Ce]);break;case"medium":const Ae=Bt(j,"mediumTime"),dt=Bt(j,"mediumDate");X=it(Gi(j,Te.Medium),[Ae,dt]);break;case"long":const Bn=Bt(j,"longTime"),Mn=Bt(j,"longDate");X=it(Gi(j,Te.Long),[Bn,Mn]);break;case"full":const xn=Bt(j,"fullTime"),nn=Bt(j,"fullDate");X=it(Gi(j,Te.Full),[xn,nn])}return X&&(Kt[F][J]=X),X}function it(j,J){return J&&(j=j.replace(/\{([^}]+)}/g,function(F,X){return null!=J&&X in J?J[X]:F})),j}function Et(j,J,F="-",X,le){let Ce="";(j<0||le&&j<=0)&&(le?j=1-j:(j=-j,Ce=F));let Ae=String(j);for(;Ae.length0||dt>-F)&&(dt+=F),j===ie.Hours)0===dt&&-12===F&&(dt=12);else if(j===ie.FractionalSeconds)return function qn(j,J){return Et(j,3).substring(0,J)}(dt,J);const Bn=Tn(Ae,Me.MinusSign);return Et(dt,J,Bn,X,le)}}function Lt(j,J,F=me.Format,X=!1){return function(le,Ce){return function Yt(j,J,F,X,le,Ce){switch(F){case fe.Months:return function cn(j,J,F){const X=(0,T.cg1)(j),Ce=Ye([X[T.wAp.MonthsFormat],X[T.wAp.MonthsStandalone]],J);return Ye(Ce,F)}(J,le,X)[j.getMonth()];case fe.Days:return function Ft(j,J,F){const X=(0,T.cg1)(j),Ce=Ye([X[T.wAp.DaysFormat],X[T.wAp.DaysStandalone]],J);return Ye(Ce,F)}(J,le,X)[j.getDay()];case fe.DayPeriods:const Ae=j.getHours(),dt=j.getMinutes();if(Ce){const Mn=function pe(j){const J=(0,T.cg1)(j);return zi(J),(J[T.wAp.ExtraData][2]||[]).map(X=>"string"==typeof X?lt(X):[lt(X[0]),lt(X[1])])}(J),xn=function Ie(j,J,F){const X=(0,T.cg1)(j);zi(X);const Ce=Ye([X[T.wAp.ExtraData][0],X[T.wAp.ExtraData][1]],J)||[];return Ye(Ce,F)||[]}(J,le,X),nn=Mn.findIndex(gt=>{if(Array.isArray(gt)){const[Cn,bt]=gt,Se=Ae>=Cn.hours&&dt>=Cn.minutes,pt=Ae0?Math.floor(le/60):Math.ceil(le/60);switch(j){case ce.Short:return(le>=0?"+":"")+Et(Ae,2,Ce)+Et(Math.abs(le%60),2,Ce);case ce.ShortGMT:return"GMT"+(le>=0?"+":"")+Et(Ae,1,Ce);case ce.Long:return"GMT"+(le>=0?"+":"")+Et(Ae,2,Ce)+":"+Et(Math.abs(le%60),2,Ce);case ce.Extended:return 0===X?"Z":(le>=0?"+":"")+Et(Ae,2,Ce)+":"+Et(Math.abs(le%60),2,Ce);default:throw new Error(`Unknown zone width "${j}"`)}}}function Xr(j){return Ct(j.getFullYear(),j.getMonth(),j.getDate()+(4-j.getDay()))}function jr(j,J=!1){return function(F,X){let le;if(J){const Ce=new Date(F.getFullYear(),F.getMonth(),1).getDay()-1,Ae=F.getDate();le=1+Math.floor((Ae+Ce)/7)}else{const Ce=Xr(F),Ae=function Kn(j){const J=Ct(j,0,1).getDay();return Ct(j,0,1+(J<=4?4:11)-J)}(Ce.getFullYear()),dt=Ce.getTime()-Ae.getTime();le=1+Math.round(dt/6048e5)}return Et(le,j,Tn(X,Me.MinusSign))}}function Tr(j,J=!1){return function(F,X){return Et(Xr(F).getFullYear(),j,Tn(X,Me.MinusSign),J)}}const fa={};function _s(j,J){j=j.replace(/:/g,"");const F=Date.parse("Jan 01, 1970 00:00:00 "+j)/6e4;return isNaN(F)?J:F}function ei(j){return j instanceof Date&&!isNaN(j.valueOf())}function Mt(j,J){J=encodeURIComponent(J);for(const F of j.split(";")){const X=F.indexOf("="),[le,Ce]=-1==X?[F,""]:[F.slice(0,X),F.slice(X+1)];if(le.trim()===J)return decodeURIComponent(Ce)}return null}let Fr=(()=>{class j{constructor(F,X,le,Ce){this._iterableDiffers=F,this._keyValueDiffers=X,this._ngEl=le,this._renderer=Ce,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(F){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof F?F.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(F){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof F?F.split(/\s+/):F,this._rawClass&&((0,T.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const F=this._iterableDiffer.diff(this._rawClass);F&&this._applyIterableChanges(F)}else if(this._keyValueDiffer){const F=this._keyValueDiffer.diff(this._rawClass);F&&this._applyKeyValueChanges(F)}}_applyKeyValueChanges(F){F.forEachAddedItem(X=>this._toggleClass(X.key,X.currentValue)),F.forEachChangedItem(X=>this._toggleClass(X.key,X.currentValue)),F.forEachRemovedItem(X=>{X.previousValue&&this._toggleClass(X.key,!1)})}_applyIterableChanges(F){F.forEachAddedItem(X=>{if("string"!=typeof X.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(X.item)}`);this._toggleClass(X.item,!0)}),F.forEachRemovedItem(X=>this._toggleClass(X.item,!1))}_applyClasses(F){F&&(Array.isArray(F)||F instanceof Set?F.forEach(X=>this._toggleClass(X,!0)):Object.keys(F).forEach(X=>this._toggleClass(X,!!F[X])))}_removeClasses(F){F&&(Array.isArray(F)||F instanceof Set?F.forEach(X=>this._toggleClass(X,!1)):Object.keys(F).forEach(X=>this._toggleClass(X,!1)))}_toggleClass(F,X){(F=F.trim())&&F.split(/\s+/g).forEach(le=>{X?this._renderer.addClass(this._ngEl.nativeElement,le):this._renderer.removeClass(this._ngEl.nativeElement,le)})}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),j})();class _a{constructor(J,F,X,le){this.$implicit=J,this.ngForOf=F,this.index=X,this.count=le}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let xr=(()=>{class j{constructor(F,X,le){this._viewContainer=F,this._template=X,this._differs=le,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(F){this._ngForOf=F,this._ngForOfDirty=!0}set ngForTrackBy(F){this._trackByFn=F}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(F){F&&(this._template=F)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const F=this._ngForOf;!this._differ&&F&&(this._differ=this._differs.find(F).create(this.ngForTrackBy))}if(this._differ){const F=this._differ.diff(this._ngForOf);F&&this._applyChanges(F)}}_applyChanges(F){const X=this._viewContainer;F.forEachOperation((le,Ce,Ae)=>{if(null==le.previousIndex)X.createEmbeddedView(this._template,new _a(le.item,this._ngForOf,-1,-1),null===Ae?void 0:Ae);else if(null==Ae)X.remove(null===Ce?void 0:Ce);else if(null!==Ce){const dt=X.get(Ce);X.move(dt,Ae),Yn(dt,le)}});for(let le=0,Ce=X.length;le{Yn(X.get(le.currentIndex),le)})}static ngTemplateContextGuard(F,X){return!0}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),j})();function Yn(j,J){j.context.$implicit=J.item}let fi=(()=>{class j{constructor(F,X){this._viewContainer=F,this._context=new Ji,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=X}set ngIf(F){this._context.$implicit=this._context.ngIf=F,this._updateView()}set ngIfThen(F){cr("ngIfThen",F),this._thenTemplateRef=F,this._thenViewRef=null,this._updateView()}set ngIfElse(F){cr("ngIfElse",F),this._elseTemplateRef=F,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(F,X){return!0}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.s_b),T.Y36(T.Rgc))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),j})();class Ji{constructor(){this.$implicit=null,this.ngIf=null}}function cr(j,J){if(J&&!J.createEmbeddedView)throw new Error(`${j} must be a TemplateRef, but received '${(0,T.AaK)(J)}'.`)}class na{constructor(J,F){this._viewContainerRef=J,this._templateRef=F,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(J){J&&!this._created?this.create():!J&&this._created&&this.destroy()}}let Sr=(()=>{class j{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(F){this._ngSwitch=F,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(F){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(F)}_matchCase(F){const X=F==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||X,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),X}_updateDefaultCases(F){if(this._defaultViews&&F!==this._defaultUsed){this._defaultUsed=F;for(let X=0;X{class j{constructor(F,X,le){this.ngSwitch=le,le._addCase(),this._view=new na(F,X)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Sr,9))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),j})(),ba=(()=>{class j{constructor(F,X,le){le._addDefault(new na(F,X))}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Sr,9))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngSwitchDefault",""]],standalone:!0}),j})(),dr=(()=>{class j{constructor(F,X,le){this._ngEl=F,this._differs=X,this._renderer=le,this._ngStyle=null,this._differ=null}set ngStyle(F){this._ngStyle=F,!this._differ&&F&&(this._differ=this._differs.find(F).create())}ngDoCheck(){if(this._differ){const F=this._differ.diff(this._ngStyle);F&&this._applyChanges(F)}}_setStyle(F,X){const[le,Ce]=F.split("."),Ae=-1===le.indexOf("-")?void 0:T.JOm.DashCase;null!=X?this._renderer.setStyle(this._ngEl.nativeElement,le,Ce?`${X}${Ce}`:X,Ae):this._renderer.removeStyle(this._ngEl.nativeElement,le,Ae)}_applyChanges(F){F.forEachRemovedItem(X=>this._setStyle(X.key,null)),F.forEachAddedItem(X=>this._setStyle(X.key,X.currentValue)),F.forEachChangedItem(X=>this._setStyle(X.key,X.currentValue))}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),j})();function Ke(j,J){return new T.vHH(2100,!1)}class po{createSubscription(J,F){return J.subscribe({next:F,error:X=>{throw X}})}dispose(J){J.unsubscribe()}}class Dd{createSubscription(J,F){return J.then(F,X=>{throw X})}dispose(J){}}const C=new Dd,Wn=new po;let Vn=(()=>{class j{constructor(F){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=F}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(F){return this._obj?F!==this._obj?(this._dispose(),this.transform(F)):this._latestValue:(F&&this._subscribe(F),this._latestValue)}_subscribe(F){this._obj=F,this._strategy=this._selectStrategy(F),this._subscription=this._strategy.createSubscription(F,X=>this._updateLatestValue(F,X))}_selectStrategy(F){if((0,T.QGY)(F))return C;if((0,T.F4k)(F))return Wn;throw Ke()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(F,X){F===this._obj&&(this._latestValue=X,this._ref.markForCheck())}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.sBO,16))},j.\u0275pipe=T.Yjl({name:"async",type:j,pure:!1,standalone:!0}),j})(),Hd=(()=>{class j{transform(F){if(null==F)return null;if("string"!=typeof F)throw Ke();return F.toUpperCase()}}return j.\u0275fac=function(F){return new(F||j)},j.\u0275pipe=T.Yjl({name:"uppercase",type:j,pure:!0,standalone:!0}),j})();const As=new T.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ko=(()=>{class j{constructor(F,X){this.locale=F,this.defaultTimezone=X}transform(F,X="mediumDate",le,Ce){if(null==F||""===F||F!=F)return null;try{var Ae;return Be(F,X,Ce||this.locale,null!==(Ae=le??this.defaultTimezone)&&void 0!==Ae?Ae:void 0)}catch(dt){throw Ke()}}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.soG,16),T.Y36(As,24))},j.\u0275pipe=T.Yjl({name:"date",type:j,pure:!0,standalone:!0}),j})(),ac=(()=>{class j{constructor(F){this.differs=F,this.keyValues=[],this.compareFn=Er}transform(F,X=Er){if(!F||!(F instanceof Map)&&"object"!=typeof F)return null;this.differ||(this.differ=this.differs.find(F).create());const le=this.differ.diff(F),Ce=X!==this.compareFn;return le&&(this.keyValues=[],le.forEachItem(Ae=>{this.keyValues.push(function zr(j,J){return{key:j,value:J}}(Ae.key,Ae.currentValue))})),(le||Ce)&&(this.keyValues.sort(X),this.compareFn=X),this.keyValues}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.aQg,16))},j.\u0275pipe=T.Yjl({name:"keyvalue",type:j,pure:!1,standalone:!0}),j})();function Er(j,J){const F=j.key,X=J.key;if(F===X)return 0;if(void 0===F)return 1;if(void 0===X)return-1;if(null===F)return 1;if(null===X)return-1;if("string"==typeof F&&"string"==typeof X)return F{class j{}return j.\u0275fac=function(F){return new(F||j)},j.\u0275mod=T.oAB({type:j}),j.\u0275inj=T.cJS({}),j})();const Ti="browser";function rh(j){return j===Ti}function ff(j){return"server"===j}let ya=(()=>{class j{}return j.\u0275prov=(0,T.Yz7)({token:j,providedIn:"root",factory:()=>new ur((0,T.LFG)(B),window)}),j})();class ur{constructor(J,F){this.document=J,this.window=F,this.offset=()=>[0,0]}setOffset(J){this.offset=Array.isArray(J)?()=>J:J}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(J){this.supportsScrolling()&&this.window.scrollTo(J[0],J[1])}scrollToAnchor(J){if(!this.supportsScrolling())return;const F=function uc(j,J){const F=j.getElementById(J)||j.getElementsByName(J)[0];if(F)return F;if("function"==typeof j.createTreeWalker&&j.body&&(j.body.createShadowRoot||j.body.attachShadow)){const X=j.createTreeWalker(j.body,NodeFilter.SHOW_ELEMENT);let le=X.currentNode;for(;le;){const Ce=le.shadowRoot;if(Ce){const Ae=Ce.getElementById(J)||Ce.querySelector(`[name="${J}"]`);if(Ae)return Ae}le=X.nextNode()}}return null}(this.document,J);F&&(this.scrollToElement(F),F.focus())}setHistoryScrollRestoration(J){if(this.supportScrollRestoration()){const F=this.window.history;F&&F.scrollRestoration&&(F.scrollRestoration=J)}}scrollToElement(J){const F=J.getBoundingClientRect(),X=F.left+this.window.pageXOffset,le=F.top+this.window.pageYOffset,Ce=this.offset();this.window.scrollTo(X-Ce[0],le-Ce[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const J=dc(this.window.history)||dc(Object.getPrototypeOf(this.window.history));return!(!J||!J.writable&&!J.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function dc(j){return Object.getOwnPropertyDescriptor(j,"scrollRestoration")}class Bi{}},529:(Y,G,E)=>{"use strict";E.d(G,{JF:()=>hi,LE:()=>xe,TP:()=>Ft,WM:()=>ee,Zn:()=>Te,eN:()=>We,qT:()=>et});var T=E(6895),n=E(4650),H=E(9646),D=E(9751),L=E(4351),O=E(9300),B=E(4004);class U{}class W{}class ee{constructor(ce){this.normalizedNames=new Map,this.lazyUpdate=null,ce?this.lazyInit="string"==typeof ce?()=>{this.headers=new Map,ce.split("\n").forEach(ie=>{const fe=ie.indexOf(":");if(fe>0){const Be=ie.slice(0,fe),Ct=Be.toLowerCase(),Bt=ie.slice(fe+1).trim();this.maybeSetNormalizedName(Be,Ct),this.headers.has(Ct)?this.headers.get(Ct).push(Bt):this.headers.set(Ct,[Bt])}})}:()=>{this.headers=new Map,Object.keys(ce).forEach(ie=>{let fe=ce[ie];const Be=ie.toLowerCase();"string"==typeof fe&&(fe=[fe]),fe.length>0&&(this.headers.set(Be,fe),this.maybeSetNormalizedName(ie,Be))})}:this.headers=new Map}has(ce){return this.init(),this.headers.has(ce.toLowerCase())}get(ce){this.init();const ie=this.headers.get(ce.toLowerCase());return ie&&ie.length>0?ie[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ce){return this.init(),this.headers.get(ce.toLowerCase())||null}append(ce,ie){return this.clone({name:ce,value:ie,op:"a"})}set(ce,ie){return this.clone({name:ce,value:ie,op:"s"})}delete(ce,ie){return this.clone({name:ce,value:ie,op:"d"})}maybeSetNormalizedName(ce,ie){this.normalizedNames.has(ie)||this.normalizedNames.set(ie,ce)}init(){this.lazyInit&&(this.lazyInit instanceof ee?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ce=>this.applyUpdate(ce)),this.lazyUpdate=null))}copyFrom(ce){ce.init(),Array.from(ce.headers.keys()).forEach(ie=>{this.headers.set(ie,ce.headers.get(ie)),this.normalizedNames.set(ie,ce.normalizedNames.get(ie))})}clone(ce){const ie=new ee;return ie.lazyInit=this.lazyInit&&this.lazyInit instanceof ee?this.lazyInit:this,ie.lazyUpdate=(this.lazyUpdate||[]).concat([ce]),ie}applyUpdate(ce){const ie=ce.name.toLowerCase();switch(ce.op){case"a":case"s":let fe=ce.value;if("string"==typeof fe&&(fe=[fe]),0===fe.length)return;this.maybeSetNormalizedName(ce.name,ie);const Be=("a"===ce.op?this.headers.get(ie):void 0)||[];Be.push(...fe),this.headers.set(ie,Be);break;case"d":const Ct=ce.value;if(Ct){let Bt=this.headers.get(ie);if(!Bt)return;Bt=Bt.filter(it=>-1===Ct.indexOf(it)),0===Bt.length?(this.headers.delete(ie),this.normalizedNames.delete(ie)):this.headers.set(ie,Bt)}else this.headers.delete(ie),this.normalizedNames.delete(ie)}}forEach(ce){this.init(),Array.from(this.normalizedNames.keys()).forEach(ie=>ce(this.normalizedNames.get(ie),this.headers.get(ie)))}}class ae{encodeKey(ce){return be(ce)}encodeValue(ce){return be(ce)}decodeKey(ce){return decodeURIComponent(ce)}decodeValue(ce){return decodeURIComponent(ce)}}const oe=/%(\d[a-f0-9])/gi,re={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function be(Oe){return encodeURIComponent(Oe).replace(oe,(ce,ie)=>{var fe;return null!==(fe=re[ie])&&void 0!==fe?fe:ce})}function we(Oe){return`${Oe}`}class xe{constructor(ce={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ce.encoder||new ae,ce.fromString){if(ce.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ue(Oe,ce){const ie=new Map;return Oe.length>0&&Oe.replace(/^\?/,"").split("&").forEach(Be=>{const Ct=Be.indexOf("="),[Bt,it]=-1==Ct?[ce.decodeKey(Be),""]:[ce.decodeKey(Be.slice(0,Ct)),ce.decodeValue(Be.slice(Ct+1))],Et=ie.get(Bt)||[];Et.push(it),ie.set(Bt,Et)}),ie}(ce.fromString,this.encoder)}else ce.fromObject?(this.map=new Map,Object.keys(ce.fromObject).forEach(ie=>{const fe=ce.fromObject[ie],Be=Array.isArray(fe)?fe.map(we):[we(fe)];this.map.set(ie,Be)})):this.map=null}has(ce){return this.init(),this.map.has(ce)}get(ce){this.init();const ie=this.map.get(ce);return ie?ie[0]:null}getAll(ce){return this.init(),this.map.get(ce)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ce,ie){return this.clone({param:ce,value:ie,op:"a"})}appendAll(ce){const ie=[];return Object.keys(ce).forEach(fe=>{const Be=ce[fe];Array.isArray(Be)?Be.forEach(Ct=>{ie.push({param:fe,value:Ct,op:"a"})}):ie.push({param:fe,value:Be,op:"a"})}),this.clone(ie)}set(ce,ie){return this.clone({param:ce,value:ie,op:"s"})}delete(ce,ie){return this.clone({param:ce,value:ie,op:"d"})}toString(){return this.init(),this.keys().map(ce=>{const ie=this.encoder.encodeKey(ce);return this.map.get(ce).map(fe=>ie+"="+this.encoder.encodeValue(fe)).join("&")}).filter(ce=>""!==ce).join("&")}clone(ce){const ie=new xe({encoder:this.encoder});return ie.cloneFrom=this.cloneFrom||this,ie.updates=(this.updates||[]).concat(ce),ie}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ce=>this.map.set(ce,this.cloneFrom.map.get(ce))),this.updates.forEach(ce=>{switch(ce.op){case"a":case"s":const ie=("a"===ce.op?this.map.get(ce.param):void 0)||[];ie.push(we(ce.value)),this.map.set(ce.param,ie);break;case"d":if(void 0===ce.value){this.map.delete(ce.param);break}{let fe=this.map.get(ce.param)||[];const Be=fe.indexOf(we(ce.value));-1!==Be&&fe.splice(Be,1),fe.length>0?this.map.set(ce.param,fe):this.map.delete(ce.param)}}}),this.cloneFrom=this.updates=null)}}class et{constructor(){this.map=new Map}set(ce,ie){return this.map.set(ce,ie),this}get(ce){return this.map.has(ce)||this.map.set(ce,ce.defaultValue()),this.map.get(ce)}delete(ce){return this.map.delete(ce),this}has(ce){return this.map.has(ce)}keys(){return this.map.keys()}}function De(Oe){return typeof ArrayBuffer<"u"&&Oe instanceof ArrayBuffer}function Re(Oe){return typeof Blob<"u"&&Oe instanceof Blob}function _t(Oe){return typeof FormData<"u"&&Oe instanceof FormData}class ze{constructor(ce,ie,fe,Be){let Ct;if(this.url=ie,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ce.toUpperCase(),function ke(Oe){switch(Oe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Be?(this.body=void 0!==fe?fe:null,Ct=Be):Ct=fe,Ct&&(this.reportProgress=!!Ct.reportProgress,this.withCredentials=!!Ct.withCredentials,Ct.responseType&&(this.responseType=Ct.responseType),Ct.headers&&(this.headers=Ct.headers),Ct.context&&(this.context=Ct.context),Ct.params&&(this.params=Ct.params)),this.headers||(this.headers=new ee),this.context||(this.context=new et),this.params){const Bt=this.params.toString();if(0===Bt.length)this.urlWithParams=ie;else{const it=ie.indexOf("?");this.urlWithParams=ie+(-1===it?"?":itLt.set(Yt,ce.setHeaders[Yt]),qn)),ce.setParams&&(kt=Object.keys(ce.setParams).reduce((Lt,Yt)=>Lt.set(Yt,ce.setParams[Yt]),kt)),new ze(fe,Be,Bt,{params:kt,headers:qn,context:vr,reportProgress:Et,responseType:Ct,withCredentials:it})}}var Fe=(()=>((Fe=Fe||{})[Fe.Sent=0]="Sent",Fe[Fe.UploadProgress=1]="UploadProgress",Fe[Fe.ResponseHeader=2]="ResponseHeader",Fe[Fe.DownloadProgress=3]="DownloadProgress",Fe[Fe.Response=4]="Response",Fe[Fe.User=5]="User",Fe))();class me{constructor(ce,ie=200,fe="OK"){this.headers=ce.headers||new ee,this.status=void 0!==ce.status?ce.status:ie,this.statusText=ce.statusText||fe,this.url=ce.url||null,this.ok=this.status>=200&&this.status<300}}class _e extends me{constructor(ce={}){super(ce),this.type=Fe.ResponseHeader}clone(ce={}){return new _e({headers:ce.headers||this.headers,status:void 0!==ce.status?ce.status:this.status,statusText:ce.statusText||this.statusText,url:ce.url||this.url||void 0})}}class Te extends me{constructor(ce={}){super(ce),this.type=Fe.Response,this.body=void 0!==ce.body?ce.body:null}clone(ce={}){return new Te({body:void 0!==ce.body?ce.body:this.body,headers:ce.headers||this.headers,status:void 0!==ce.status?ce.status:this.status,statusText:ce.statusText||this.statusText,url:ce.url||this.url||void 0})}}class Me extends me{constructor(ce){super(ce,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ce.url||"(unknown url)"}`:`Http failure response for ${ce.url||"(unknown url)"}: ${ce.status} ${ce.statusText}`,this.error=ce.error||null}}function $e(Oe,ce){return{body:ce,headers:Oe.headers,context:Oe.context,observe:Oe.observe,params:Oe.params,reportProgress:Oe.reportProgress,responseType:Oe.responseType,withCredentials:Oe.withCredentials}}let We=(()=>{class Oe{constructor(ie){this.handler=ie}request(ie,fe,Be={}){let Ct;if(ie instanceof ze)Ct=ie;else{let Et,qn;Et=Be.headers instanceof ee?Be.headers:new ee(Be.headers),Be.params&&(qn=Be.params instanceof xe?Be.params:new xe({fromObject:Be.params})),Ct=new ze(ie,fe,void 0!==Be.body?Be.body:null,{headers:Et,context:Be.context,params:qn,reportProgress:Be.reportProgress,responseType:Be.responseType||"json",withCredentials:Be.withCredentials})}const Bt=(0,H.of)(Ct).pipe((0,L.b)(Et=>this.handler.handle(Et)));if(ie instanceof ze||"events"===Be.observe)return Bt;const it=Bt.pipe((0,O.h)(Et=>Et instanceof Te));switch(Be.observe||"body"){case"body":switch(Ct.responseType){case"arraybuffer":return it.pipe((0,B.U)(Et=>{if(null!==Et.body&&!(Et.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Et.body}));case"blob":return it.pipe((0,B.U)(Et=>{if(null!==Et.body&&!(Et.body instanceof Blob))throw new Error("Response is not a Blob.");return Et.body}));case"text":return it.pipe((0,B.U)(Et=>{if(null!==Et.body&&"string"!=typeof Et.body)throw new Error("Response is not a string.");return Et.body}));default:return it.pipe((0,B.U)(Et=>Et.body))}case"response":return it;default:throw new Error(`Unreachable: unhandled observe type ${Be.observe}}`)}}delete(ie,fe={}){return this.request("DELETE",ie,fe)}get(ie,fe={}){return this.request("GET",ie,fe)}head(ie,fe={}){return this.request("HEAD",ie,fe)}jsonp(ie,fe){return this.request("JSONP",ie,{params:(new xe).append(fe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ie,fe={}){return this.request("OPTIONS",ie,fe)}patch(ie,fe,Be={}){return this.request("PATCH",ie,$e(Be,fe))}post(ie,fe,Be={}){return this.request("POST",ie,$e(Be,fe))}put(ie,fe,Be={}){return this.request("PUT",ie,$e(Be,fe))}}return Oe.\u0275fac=function(ie){return new(ie||Oe)(n.LFG(U))},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();class yt{constructor(ce,ie){this.next=ce,this.interceptor=ie}handle(ce){return this.interceptor.intercept(ce,this.next)}}const Ft=new n.OlP("HTTP_INTERCEPTORS");let cn=(()=>{class Oe{intercept(ie,fe){return fe.handle(ie)}}return Oe.\u0275fac=function(ie){return new(ie||Oe)},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();const vi=/^\)\]\}',?\n/;let pa=(()=>{class Oe{constructor(ie){this.xhrFactory=ie}handle(ie){if("JSONP"===ie.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new D.y(fe=>{const Be=this.xhrFactory.build();if(Be.open(ie.method,ie.urlWithParams),ie.withCredentials&&(Be.withCredentials=!0),ie.headers.forEach((Yt,St)=>Be.setRequestHeader(Yt,St.join(","))),ie.headers.has("Accept")||Be.setRequestHeader("Accept","application/json, text/plain, */*"),!ie.headers.has("Content-Type")){const Yt=ie.detectContentTypeHeader();null!==Yt&&Be.setRequestHeader("Content-Type",Yt)}if(ie.responseType){const Yt=ie.responseType.toLowerCase();Be.responseType="json"!==Yt?Yt:"text"}const Ct=ie.serializeBody();let Bt=null;const it=()=>{if(null!==Bt)return Bt;const Yt=Be.statusText||"OK",St=new ee(Be.getAllResponseHeaders()),lr=function co(Oe){return"responseURL"in Oe&&Oe.responseURL?Oe.responseURL:/^X-Request-URL:/m.test(Oe.getAllResponseHeaders())?Oe.getResponseHeader("X-Request-URL"):null}(Be)||ie.url;return Bt=new _e({headers:St,status:Be.status,statusText:Yt,url:lr}),Bt},Et=()=>{let{headers:Yt,status:St,statusText:lr,url:Qr}=it(),Kn=null;204!==St&&(Kn=typeof Be.response>"u"?Be.responseText:Be.response),0===St&&(St=Kn?200:0);let Xr=St>=200&&St<300;if("json"===ie.responseType&&"string"==typeof Kn){const jr=Kn;Kn=Kn.replace(vi,"");try{Kn=""!==Kn?JSON.parse(Kn):null}catch(Tr){Kn=jr,Xr&&(Xr=!1,Kn={error:Tr,text:Kn})}}Xr?(fe.next(new Te({body:Kn,headers:Yt,status:St,statusText:lr,url:Qr||void 0})),fe.complete()):fe.error(new Me({error:Kn,headers:Yt,status:St,statusText:lr,url:Qr||void 0}))},qn=Yt=>{const{url:St}=it(),lr=new Me({error:Yt,status:Be.status||0,statusText:Be.statusText||"Unknown Error",url:St||void 0});fe.error(lr)};let kt=!1;const vr=Yt=>{kt||(fe.next(it()),kt=!0);let St={type:Fe.DownloadProgress,loaded:Yt.loaded};Yt.lengthComputable&&(St.total=Yt.total),"text"===ie.responseType&&!!Be.responseText&&(St.partialText=Be.responseText),fe.next(St)},Lt=Yt=>{let St={type:Fe.UploadProgress,loaded:Yt.loaded};Yt.lengthComputable&&(St.total=Yt.total),fe.next(St)};return Be.addEventListener("load",Et),Be.addEventListener("error",qn),Be.addEventListener("timeout",qn),Be.addEventListener("abort",qn),ie.reportProgress&&(Be.addEventListener("progress",vr),null!==Ct&&Be.upload&&Be.upload.addEventListener("progress",Lt)),Be.send(Ct),fe.next({type:Fe.Sent}),()=>{Be.removeEventListener("error",qn),Be.removeEventListener("abort",qn),Be.removeEventListener("load",Et),Be.removeEventListener("timeout",qn),ie.reportProgress&&(Be.removeEventListener("progress",vr),null!==Ct&&Be.upload&&Be.upload.removeEventListener("progress",Lt)),Be.readyState!==Be.DONE&&Be.abort()}})}}return Oe.\u0275fac=function(ie){return new(ie||Oe)(n.LFG(T.JF))},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();const Cr=new n.OlP("XSRF_COOKIE_NAME"),zi=new n.OlP("XSRF_HEADER_NAME");class pe{}let Ie=(()=>{class Oe{constructor(ie,fe,Be){this.doc=ie,this.platform=fe,this.cookieName=Be,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ie=this.doc.cookie||"";return ie!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(ie,this.cookieName),this.lastCookieString=ie),this.lastToken}}return Oe.\u0275fac=function(ie){return new(ie||Oe)(n.LFG(T.K0),n.LFG(n.Lbi),n.LFG(Cr))},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),ye=(()=>{class Oe{constructor(ie,fe){this.tokenService=ie,this.headerName=fe}intercept(ie,fe){const Be=ie.url.toLowerCase();if("GET"===ie.method||"HEAD"===ie.method||Be.startsWith("http://")||Be.startsWith("https://"))return fe.handle(ie);const Ct=this.tokenService.getToken();return null!==Ct&&!ie.headers.has(this.headerName)&&(ie=ie.clone({headers:ie.headers.set(this.headerName,Ct)})),fe.handle(ie)}}return Oe.\u0275fac=function(ie){return new(ie||Oe)(n.LFG(pe),n.LFG(zi))},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),Ye=(()=>{class Oe{constructor(ie,fe){this.backend=ie,this.injector=fe,this.chain=null}handle(ie){if(null===this.chain){const fe=this.injector.get(Ft,[]);this.chain=fe.reduceRight((Be,Ct)=>new yt(Be,Ct),this.backend)}return this.chain.handle(ie)}}return Oe.\u0275fac=function(ie){return new(ie||Oe)(n.LFG(W),n.LFG(n.zs3))},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),Zt=(()=>{class Oe{static disable(){return{ngModule:Oe,providers:[{provide:ye,useClass:cn}]}}static withOptions(ie={}){return{ngModule:Oe,providers:[ie.cookieName?{provide:Cr,useValue:ie.cookieName}:[],ie.headerName?{provide:zi,useValue:ie.headerName}:[]]}}}return Oe.\u0275fac=function(ie){return new(ie||Oe)},Oe.\u0275mod=n.oAB({type:Oe}),Oe.\u0275inj=n.cJS({providers:[ye,{provide:Ft,useExisting:ye,multi:!0},{provide:pe,useClass:Ie},{provide:Cr,useValue:"XSRF-TOKEN"},{provide:zi,useValue:"X-XSRF-TOKEN"}]}),Oe})(),hi=(()=>{class Oe{}return Oe.\u0275fac=function(ie){return new(ie||Oe)},Oe.\u0275mod=n.oAB({type:Oe}),Oe.\u0275inj=n.cJS({providers:[We,{provide:U,useClass:Ye},pa,{provide:W,useExisting:pa}],imports:[Zt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Oe})()},4650:(Y,G,E)=>{"use strict";E.d(G,{$8M:()=>Fd,$Z:()=>V1,AFp:()=>Lb,ALo:()=>Fu,AaK:()=>U,AsE:()=>S_,B6R:()=>Qr,BQk:()=>Bl,CHM:()=>wa,CRH:()=>SC,CZH:()=>Yo,CqO:()=>Io,D6c:()=>dE,DdM:()=>db,Dn7:()=>km,EJc:()=>zn,EiD:()=>zf,EpF:()=>U0,F$t:()=>rr,F4k:()=>p_,FYo:()=>t0,FiY:()=>To,G48:()=>KS,Gf:()=>_b,GfV:()=>au,GkF:()=>Nl,Gpc:()=>te,Gre:()=>sd,Hsn:()=>g_,Ikx:()=>od,JOm:()=>Ja,JVY:()=>dy,Jf7:()=>qy,KtG:()=>nr,L6k:()=>uy,LAX:()=>Dh,LFG:()=>Jn,LSH:()=>qf,Lbi:()=>GC,Lck:()=>Qs,MAs:()=>rd,MGl:()=>Lu,MMx:()=>Pp,NdJ:()=>sp,O4$:()=>ch,OlP:()=>Sn,Oqu:()=>J0,PXZ:()=>ii,Q2q:()=>id,Q6J:()=>u_,QGY:()=>q0,QP$:()=>Ks,QbO:()=>$C,Qsj:()=>ru,R0b:()=>wr,RDi:()=>V,Rgc:()=>zu,SBq:()=>kr,Sil:()=>Jp,Suo:()=>bb,TTD:()=>Er,TgZ:()=>F0,Tol:()=>M_,Udp:()=>$0,VKq:()=>ub,WFA:()=>op,WLB:()=>Nr,XFs:()=>ye,Xpm:()=>lr,Xts:()=>Cl,Y36:()=>Gc,YKP:()=>rb,YNc:()=>d_,Yjl:()=>_s,Yz7:()=>dn,ZZ4:()=>Jb,_Bn:()=>ib,_UZ:()=>rp,_Vd:()=>Bc,_c5:()=>Cv,_uU:()=>as,aQg:()=>Qb,c2e:()=>Pb,cJS:()=>Tn,cg1:()=>_p,d8E:()=>gp,dDg:()=>nv,dqk:()=>fe,eBb:()=>hy,eFA:()=>Gl,ekj:()=>Z0,eoX:()=>tg,f3M:()=>wh,g9A:()=>Hb,h0i:()=>sr,hGG:()=>cE,hYB:()=>cp,hij:()=>fp,iGM:()=>md,ifc:()=>ie,ip1:()=>qo,kL8:()=>lm,kcU:()=>Od,lG2:()=>Ed,lcZ:()=>pC,lqb:()=>xl,lri:()=>Nb,mCW:()=>eu,n5z:()=>yc,n_E:()=>Np,oAB:()=>jr,oJD:()=>Xg,oxw:()=>m_,pB0:()=>py,q3G:()=>gi,qLn:()=>Ra,qOj:()=>B0,qZA:()=>z0,qzn:()=>kc,rWj:()=>ni,s9C:()=>lp,sBO:()=>tE,sIi:()=>vu,s_b:()=>Uu,soG:()=>Zp,tb:()=>Rb,tp0:()=>bl,uIk:()=>Tu,vHH:()=>re,vpe:()=>ss,wAp:()=>vt,xDo:()=>mp,xi3:()=>fC,xp6:()=>Dl,ynx:()=>ap,z2F:()=>rg,z3N:()=>Za,zSh:()=>Zf,zs3:()=>Qa});var T=E(7579),n=E(727),H=E(9751),D=E(6451),L=E(3099);function O(_){for(let b in _)if(_[b]===O)return b;throw Error("Could not find renamed property on target object.")}function B(_,b){for(const y in b)b.hasOwnProperty(y)&&!_.hasOwnProperty(y)&&(_[y]=b[y])}function U(_){if("string"==typeof _)return _;if(Array.isArray(_))return"["+_.map(U).join(", ")+"]";if(null==_)return""+_;if(_.overriddenName)return`${_.overriddenName}`;if(_.name)return`${_.name}`;const b=_.toString();if(null==b)return""+b;const y=b.indexOf("\n");return-1===y?b:b.substring(0,y)}function W(_,b){return null==_||""===_?null===b?"":b:null==b||""===b?_:_+" "+b}const ee=O({__forward_ref__:O});function te(_){return _.__forward_ref__=te,_.toString=function(){return U(this())},_}function ae(_){return ue(_)?_():_}function ue(_){return"function"==typeof _&&_.hasOwnProperty(ee)&&_.__forward_ref__===te}class re extends Error{constructor(b,y){super(function be(_,b){return`NG0${Math.abs(_)}${b?": "+b.trim():""}`}(b,y)),this.code=b}}function we(_){return"string"==typeof _?_:null==_?"":String(_)}function De(_,b){throw new re(-201,!1)}function cn(_,b){null==_&&function tt(_,b,y,M){throw new Error(`ASSERTION ERROR: ${_}`+(null==M?"":` [Expected=> ${y} ${M} ${b} <=Actual]`))}(b,_,null,"!=")}function dn(_){return{token:_.token,providedIn:_.providedIn||null,factory:_.factory,value:void 0}}function Tn(_){return{providers:_.providers||[],imports:_.imports||[]}}function Ii(_){return hn(_,Cr)||hn(_,pe)}function hn(_,b){return _.hasOwnProperty(b)?_[b]:null}function pa(_){return _&&(_.hasOwnProperty(zi)||_.hasOwnProperty(Ie))?_[zi]:null}const Cr=O({\u0275prov:O}),zi=O({\u0275inj:O}),pe=O({ngInjectableDef:O}),Ie=O({ngInjectorDef:O});var ye=(()=>((ye=ye||{})[ye.Default=0]="Default",ye[ye.Host=1]="Host",ye[ye.Self=2]="Self",ye[ye.SkipSelf=4]="SkipSelf",ye[ye.Optional=8]="Optional",ye))();let Ye;function ct(_){const b=Ye;return Ye=_,b}function Zt(_,b,y){const M=Ii(_);return M&&"root"==M.providedIn?void 0===M.value?M.value=M.factory():M.value:y&ye.Optional?null:void 0!==b?b:void De(U(_))}function un(_){return{toString:_}.toString()}var Kt=(()=>((Kt=Kt||{})[Kt.OnPush=0]="OnPush",Kt[Kt.Default=1]="Default",Kt))(),ie=(()=>{return(_=ie||(ie={}))[_.Emulated=0]="Emulated",_[_.None=2]="None",_[_.ShadowDom=3]="ShadowDom",ie;var _})();const fe=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Bt={},it=[],Et=O({\u0275cmp:O}),qn=O({\u0275dir:O}),kt=O({\u0275pipe:O}),vr=O({\u0275mod:O}),Lt=O({\u0275fac:O}),Yt=O({__NG_ELEMENT_ID__:O});let St=0;function lr(_){return un(()=>{const y=!0===_.standalone,M={},v={type:_.type,providersResolver:null,decls:_.decls,vars:_.vars,factory:null,template:_.template||null,consts:_.consts||null,ngContentSelectors:_.ngContentSelectors,hostBindings:_.hostBindings||null,hostVars:_.hostVars||0,hostAttrs:_.hostAttrs||null,contentQueries:_.contentQueries||null,declaredInputs:M,inputs:null,outputs:null,exportAs:_.exportAs||null,onPush:_.changeDetection===Kt.OnPush,directiveDefs:null,pipeDefs:null,standalone:y,dependencies:y&&_.dependencies||null,getStandaloneInjector:null,selectors:_.selectors||it,viewQuery:_.viewQuery||null,features:_.features||null,data:_.data||{},encapsulation:_.encapsulation||ie.Emulated,id:"c"+St++,styles:_.styles||it,_:null,setInput:null,schemas:_.schemas||null,tView:null},x=_.dependencies,R=_.features;return v.inputs=fa(_.inputs,M),v.outputs=fa(_.outputs),R&&R.forEach(k=>k(v)),v.directiveDefs=x?()=>("function"==typeof x?x():x).map(Kn).filter(Xr):null,v.pipeDefs=x?()=>("function"==typeof x?x():x).map(pi).filter(Xr):null,v})}function Qr(_,b,y){const M=_.\u0275cmp;M.directiveDefs=()=>("function"==typeof b?b():b).map(Kn),M.pipeDefs=()=>("function"==typeof y?y():y).map(pi)}function Kn(_){return pn(_)||si(_)}function Xr(_){return null!==_}function jr(_){return un(()=>({type:_.type,bootstrap:_.bootstrap||it,declarations:_.declarations||it,imports:_.imports||it,exports:_.exports||it,transitiveCompileScopes:null,schemas:_.schemas||null,id:_.id||null}))}function fa(_,b){if(null==_)return Bt;const y={};for(const M in _)if(_.hasOwnProperty(M)){let v=_[M],x=v;Array.isArray(v)&&(x=v[1],v=v[0]),y[v]=M,b&&(b[v]=x)}return y}const Ed=lr;function _s(_){return{type:_.type,name:_.name,factory:null,pure:!1!==_.pure,standalone:!0===_.standalone,onDestroy:_.type.prototype.ngOnDestroy||null}}function pn(_){return _[Et]||null}function si(_){return _[qn]||null}function pi(_){return _[kt]||null}function Ze(_,b){const y=_[vr]||null;if(!y&&!0===b)throw new Error(`Type ${U(_)} does not have '\u0275mod' property.`);return y}function fi(_){return Array.isArray(_)&&"object"==typeof _[1]}function Ji(_){return Array.isArray(_)&&!0===_[1]}function cr(_){return 0!=(8&_.flags)}function na(_){return 2==(2&_.flags)}function Sr(_){return 1==(1&_.flags)}function Qi(_){return null!==_.template}function ba(_){return 0!=(256&_[2])}function zr(_,b){return _.hasOwnProperty(Lt)?_[Lt]:null}class ac{constructor(b,y,M){this.previousValue=b,this.currentValue=y,this.firstChange=M}isFirstChange(){return this.firstChange}}function Er(){return sc}function sc(_){return _.type.prototype.ngOnChanges&&(_.setInput=oc),fo}function fo(){const _=mo(this),b=_?.current;if(b){const y=_.previous;if(y===Bt)_.previous=b;else for(let M in b)y[M]=b[M];_.current=null,this.ngOnChanges(b)}}function oc(_,b,y,M){const v=mo(_)||function el(_,b){return _[ia]=b}(_,{previous:Bt,current:null}),x=v.current||(v.current={}),R=v.previous,k=this.declaredInputs[y],I=R[k];x[k]=new ac(I&&I.currentValue,b,R===Bt),_[M]=b}Er.ngInherit=!0;const ia="__ngSimpleChanges__";function mo(_){return _[ia]||null}function ti(_){for(;Array.isArray(_);)_=_[0];return _}function ya(_,b){return ti(b[_])}function ur(_,b){return ti(b[_.index])}function uc(_,b){return _.data[b]}function _o(_,b){return _[b]}function Bi(_,b){const y=b[_];return fi(y)?y:y[0]}function j(_){return 4==(4&_[2])}function J(_){return 64==(64&_[2])}function X(_,b){return null==b?null:_[b]}function le(_){_[18]=0}function Ce(_,b){_[5]+=b;let y=_,M=_[3];for(;null!==M&&(1===b&&1===y[5]||-1===b&&0===y[5]);)M[5]+=b,y=M,M=M[3]}const Ae={lFrame:il(null),bindingsEnabled:!0};function gt(){return Ae.bindingsEnabled}function Se(){return Ae.lFrame.lView}function pt(){return Ae.lFrame.tView}function wa(_){return Ae.lFrame.contextLView=_,_[8]}function nr(_){return Ae.lFrame.contextLView=null,_}function Gn(){let _=Ui();for(;null!==_&&64===_.type;)_=_.parent;return _}function Ui(){return Ae.lFrame.currentTNode}function Nt(_,b){const y=Ae.lFrame;y.currentTNode=_,y.isParent=b}function hr(){return Ae.lFrame.isParent}function Ms(){Ae.lFrame.isParent=!1}function Wt(){const _=Ae.lFrame;let b=_.bindingRootIndex;return-1===b&&(b=_.bindingRootIndex=_.tView.bindingStartIndex),b}function Fn(){return Ae.lFrame.bindingIndex}function Cs(){return Ae.lFrame.bindingIndex++}function Dr(_){const b=Ae.lFrame,y=b.bindingIndex;return b.bindingIndex=b.bindingIndex+_,y}function ah(_,b){const y=Ae.lFrame;y.bindingIndex=y.bindingRootIndex=_,pc(b)}function pc(_){Ae.lFrame.currentDirectiveIndex=_}function tl(_){const b=Ae.lFrame.currentDirectiveIndex;return-1===b?null:_[b]}function bo(){return Ae.lFrame.currentQueryIndex}function ra(_){Ae.lFrame.currentQueryIndex=_}function qt(_){const b=_[1];return 2===b.type?b.declTNode:1===b.type?_[6]:null}function sh(_,b,y){if(y&ye.SkipSelf){let v=b,x=_;for(;!(v=v.parent,null!==v||y&ye.Host||(v=qt(x),null===v||(x=x[15],10&v.type))););if(null===v)return!1;b=v,_=x}const M=Ae.lFrame=nl();return M.currentTNode=b,M.lView=_,!0}function Ya(_){const b=nl(),y=_[1];Ae.lFrame=b,b.currentTNode=y.firstChild,b.lView=_,b.tView=y,b.contextLView=_,b.bindingIndex=y.bindingStartIndex,b.inI18n=!1}function nl(){const _=Ae.lFrame,b=null===_?null:_.child;return null===b?il(_):b}function il(_){const b={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:_,child:null,inI18n:!1};return null!==_&&(_.child=b),b}function fr(){const _=Ae.lFrame;return Ae.lFrame=_.parent,_.currentTNode=null,_.lView=null,_}const kd=fr;function rl(){const _=fr();_.isParent=!0,_.tView=null,_.selectedIndex=-1,_.contextLView=null,_.elementDepthCount=0,_.currentDirectiveIndex=-1,_.currentNamespace=null,_.bindingRootIndex=-1,_.bindingIndex=-1,_.currentQueryIndex=0}function rn(){return Ae.lFrame.selectedIndex}function xi(_){Ae.lFrame.selectedIndex=_}function Nn(){const _=Ae.lFrame;return uc(_.tView,_.selectedIndex)}function ch(){Ae.lFrame.currentNamespace="svg"}function Od(){!function dh(){Ae.lFrame.currentNamespace=null}()}function fc(_,b){for(let y=b.directiveStart,M=b.directiveEnd;y=M)break}else b[I]<0&&(_[18]+=65536),(k>11<_[18]>>16&&(3&_[2])===b){_[2]+=2048;try{x.call(k)}finally{}}}else try{x.call(k)}finally{}}class qr{constructor(b,y,M){this.factory=b,this.resolving=!1,this.canSeeViewProviders=y,this.injectImpl=M}}function xs(_,b,y){let M=0;for(;Mb){R=x-1;break}}}for(;x<_.length;){const k=_[x];if("number"==typeof k)break;if(k===y){if(null===M)return void(null!==v&&(_[x+1]=v));if(M===_[x+1])return void(_[x+2]=v)}x++,null!==M&&x++,null!==v&&x++}-1!==R&&(_.splice(R,0,b),x=R+1),_.splice(x++,0,y),null!==M&&_.splice(x++,0,M),null!==v&&_.splice(x++,0,v)}function Bd(_){return-1!==_}function yo(_){return 32767&_}function wo(_,b){let y=function wf(_){return _>>16}(_),M=b;for(;y>0;)M=M[15],y--;return M}let Mo=!0;function _c(_){const b=Mo;return Mo=_,b}let Mf=0;const Lr={};function cl(_,b){const y=dl(_,b);if(-1!==y)return y;const M=b[1];M.firstCreatePass&&(_.injectorIndex=b.length,Ma(M.data,_),Ma(b,null),Ma(M.blueprint,null));const v=Nd(_,b),x=_.injectorIndex;if(Bd(v)){const R=yo(v),k=wo(v,b),I=k[1].data;for(let z=0;z<8;z++)b[x+z]=k[R+z]|I[R+z]}return b[x+8]=v,x}function Ma(_,b){_.push(0,0,0,0,0,0,0,0,b)}function dl(_,b){return-1===_.injectorIndex||_.parent&&_.parent.injectorIndex===_.injectorIndex||null===b[_.injectorIndex+8]?-1:_.injectorIndex}function Nd(_,b){if(_.parent&&-1!==_.parent.injectorIndex)return _.parent.injectorIndex;let y=0,M=null,v=b;for(;null!==v;){if(M=wc(v),null===M)return-1;if(y++,v=v[15],-1!==M.injectorIndex)return M.injectorIndex|y<<16}return-1}function Ac(_,b,y){!function bc(_,b,y){let M;"string"==typeof y?M=y.charCodeAt(0)||0:y.hasOwnProperty(Yt)&&(M=y[Yt]),null==M&&(M=y[Yt]=Mf++);const v=255&M;b.data[_+(v>>5)]|=1<=0?255&b:Cf:b}(y);if("function"==typeof x){if(!sh(b,_,M))return M&ye.Host?Vd(v,0,M):Es(b,y,M,v);try{const R=x(M);if(null!=R||M&ye.Optional)return R;De()}finally{kd()}}else if("number"==typeof x){let R=null,k=dl(_,b),I=-1,z=M&ye.Host?b[16][6]:null;for((-1===k||M&ye.SkipSelf)&&(I=-1===k?Nd(_,b):b[k+8],-1!==I&&mh(M,!1)?(R=b[1],k=yo(I),b=wo(I,b)):k=-1);-1!==k;){const $=b[1];if(jd(x,k,$.data)){const ne=ul(k,b,y,R,M,z);if(ne!==Lr)return ne}I=b[k+8],-1!==I&&mh(M,b[1].data[k+8]===z)&&jd(x,k,b)?(R=$,k=yo(I),b=wo(I,b)):k=-1}}return v}function ul(_,b,y,M,v,x){const R=b[1],k=R.data[_+8],$=Co(k,R,y,null==M?na(k)&&Mo:M!=R&&0!=(3&k.type),v&ye.Host&&x===k);return null!==$?Yr(b,R,$,k):Lr}function Co(_,b,y,M,v){const x=_.providerIndexes,R=b.data,k=1048575&x,I=_.directiveStart,$=x>>20,de=v?k+$:_.directiveEnd;for(let ge=M?k:k+$;ge=I&&He.type===y)return ge}if(v){const ge=R[I];if(ge&&Qi(ge)&&ge.type===y)return I}return null}function Yr(_,b,y,M){let v=_[y];const x=b.data;if(function Ga(_){return _ instanceof qr}(v)){const R=v;R.resolving&&function Xe(_,b){const y=b?`. Dependency path: ${b.join(" > ")} > ${_}`:"";throw new re(-200,`Circular dependency in DI detected for ${_}${y}`)}(function xe(_){return"function"==typeof _?_.name||_.toString():"object"==typeof _&&null!=_&&"function"==typeof _.type?_.type.name||_.type.toString():we(_)}(x[y]));const k=_c(R.canSeeViewProviders);R.resolving=!0;const I=R.injectImpl?ct(R.injectImpl):null;sh(_,M,ye.Default);try{v=_[y]=R.factory(void 0,x,_,M),b.firstCreatePass&&y>=M.directiveStart&&function uh(_,b,y){const{ngOnChanges:M,ngOnInit:v,ngDoCheck:x}=b.type.prototype;if(M){const R=sc(b);(y.preOrderHooks||(y.preOrderHooks=[])).push(_,R),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(_,R)}v&&(y.preOrderHooks||(y.preOrderHooks=[])).push(0-_,v),x&&((y.preOrderHooks||(y.preOrderHooks=[])).push(_,x),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(_,x))}(y,x[y],b)}finally{null!==I&&ct(I),_c(k),R.resolving=!1,kd()}}return v}function jd(_,b,y){return!!(y[b+(_>>5)]&1<<_)}function mh(_,b){return!(_&ye.Self||_&ye.Host&&b)}class Ls{constructor(b,y){this._tNode=b,this._lView=y}get(b,y,M){return Ca(this._tNode,this._lView,b,M,y)}}function Cf(){return new Ls(Gn(),Se())}function yc(_){return un(()=>{const b=_.prototype.constructor,y=b[Lt]||Hs(b),M=Object.prototype;let v=Object.getPrototypeOf(_.prototype).constructor;for(;v&&v!==M;){const x=v[Lt]||Hs(v);if(x&&x!==y)return x;v=Object.getPrototypeOf(v)}return x=>new x})}function Hs(_){return ue(_)?()=>{const b=Hs(ae(_));return b&&b()}:zr(_)}function wc(_){const b=_[1],y=b.type;return 2===y?b.declTNode:1===y?_[6]:null}function Fd(_){return function fh(_,b){if("class"===b)return _.classes;if("style"===b)return _.styles;const y=_.attrs;if(y){const M=y.length;let v=0;for(;v{const M=function Rr(_){return function(...y){if(_){const M=_(...y);for(const v in M)this[v]=M[v]}}}(b);function v(...x){if(this instanceof v)return M.apply(this,x),this;const R=new v(...x);return k.annotation=R,k;function k(I,z,$){const ne=I.hasOwnProperty(Ps)?I[Ps]:Object.defineProperty(I,Ps,{value:[]})[Ps];for(;ne.length<=$;)ne.push(null);return(ne[$]=ne[$]||[]).push(R),I}}return y&&(v.prototype=Object.create(y.prototype)),v.prototype.ngMetadataName=_,v.annotationCls=v,v})}class Sn{constructor(b,y){this._desc=b,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof y?this.__NG_ELEMENT_ID__=y:void 0!==y&&(this.\u0275prov=dn({token:this,providedIn:y.providedIn||"root",factory:y.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Si(_,b){void 0===b&&(b=_);for(let y=0;y<_.length;y++){let M=_[y];Array.isArray(M)?(b===_&&(b=_.slice(0,y)),Si(M,b)):b!==_&&b.push(M)}return b}function aa(_,b){_.forEach(y=>Array.isArray(y)?aa(y,b):b(y))}function vc(_,b,y){b>=_.length?_.push(y):_.splice(b,0,y)}function Tc(_,b){return b>=_.length-1?_.pop():_.splice(b,1)[0]}function mi(_,b){const y=[];for(let M=0;M<_;M++)y.push(b);return y}function Ki(_,b,y){let M=vo(_,b);return M>=0?_[1|M]=y:(M=~M,function Sc(_,b,y,M){let v=_.length;if(v==b)_.push(y,M);else if(1===v)_.push(M,_[0]),_[0]=y;else{for(v--,_.push(_[v-1],_[v]);v>b;)_[v]=_[v-2],v--;_[b]=y,_[b+1]=M}}(_,M,b,y)),M}function pl(_,b){const y=vo(_,b);if(y>=0)return _[1|y]}function vo(_,b){return function bh(_,b,y){let M=0,v=_.length>>y;for(;v!==M;){const x=M+(v-M>>1),R=_[x<b?v=x:M=x+1}return~(v<_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Q}())||void 0===b?void 0:b.createHTML(_))||_}function La(_){var b;return(null===(b=function Gr(){if(void 0===Ei&&(Ei=null,fe.trustedTypes))try{Ei=fe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:_=>_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Ei}())||void 0===b?void 0:b.createHTML(_))||_}class So{constructor(b){this.changingThisBreaksApplicationSecurity=b}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Ug extends So{getTypeName(){return"HTML"}}class Sh extends So{getTypeName(){return"Style"}}class Eh extends So{getTypeName(){return"Script"}}class qg extends So{getTypeName(){return"URL"}}class Kd extends So{getTypeName(){return"ResourceURL"}}function Za(_){return _ instanceof So?_.changingThisBreaksApplicationSecurity:_}function kc(_,b){const y=function cy(_){return _ instanceof So&&_.getTypeName()||null}(_);if(null!=y&&y!==b){if("ResourceURL"===y&&"URL"===b)return!0;throw new Error(`Required a safe ${b}, got a ${y} (see https://g.co/ng/security#xss)`)}return y===b}function dy(_){return new Ug(_)}function uy(_){return new Sh(_)}function hy(_){return new Eh(_)}function Dh(_){return new qg(_)}function py(_){return new Kd(_)}class fy{constructor(b){this.inertDocumentHelper=b}getInertBodyElement(b){b=""+b;try{const y=(new window.DOMParser).parseFromString(ve(b),"text/html").body;return null===y?this.inertDocumentHelper.getInertBodyElement(b):(y.removeChild(y.firstChild),y)}catch{return null}}}class my{constructor(b){if(this.defaultDoc=b,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const y=this.inertDocument.createElement("html");this.inertDocument.appendChild(y);const M=this.inertDocument.createElement("body");y.appendChild(M)}}getInertBodyElement(b){const y=this.inertDocument.createElement("template");if("content"in y)return y.innerHTML=ve(b),y;const M=this.inertDocument.createElement("body");return M.innerHTML=ve(b),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(M),M}stripCustomNsAttrs(b){const y=b.attributes;for(let v=y.length-1;0eu(b.trim())).join(", ")),this.buf.push(" ",R,'="',Qg(I),'"')}var _;return this.buf.push(">"),!0}endElement(b){const y=b.nodeName.toLowerCase();Nf.hasOwnProperty(y)&&!If.hasOwnProperty(y)&&(this.buf.push(""))}chars(b){this.buf.push(Qg(b))}checkClobberedElement(b,y){if(y&&(b.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${b.outerHTML}`);return y}}const yy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wy=/([^\#-~ |!])/g;function Qg(_){return _.replace(/&/g,"&").replace(yy,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(wy,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(//g,">")}let Ic;function zf(_,b){let y=null;try{Ic=Ic||function Yg(_){const b=new my(_);return function gy(){try{return!!(new window.DOMParser).parseFromString(ve(""),"text/html")}catch{return!1}}()?new fy(b):b}(_);let M=b?String(b):"";y=Ic.getInertBodyElement(M);let v=5,x=M;do{if(0===v)throw new Error("Failed to sanitize html because the input is unstable");v--,M=x,x=y.innerHTML,y=Ic.getInertBodyElement(M)}while(M!==x);return ve((new Ay).sanitizeChildren(tu(y)||y))}finally{if(y){const M=tu(y)||y;for(;M.firstChild;)M.removeChild(M.firstChild)}}}function tu(_){return"content"in _&&function Uf(_){return _.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===_.nodeName}(_)?_.content:null}var gi=(()=>((gi=gi||{})[gi.NONE=0]="NONE",gi[gi.HTML=1]="HTML",gi[gi.STYLE=2]="STYLE",gi[gi.SCRIPT=3]="SCRIPT",gi[gi.URL=4]="URL",gi[gi.RESOURCE_URL=5]="RESOURCE_URL",gi))();function Xg(_){const b=oa();return b?La(b.sanitize(gi.HTML,_)||""):kc(_,"HTML")?La(Za(_)):zf(function q(){return void 0!==P?P:typeof document<"u"?document:void 0}(),we(_))}function qf(_){const b=oa();return b?b.sanitize(gi.URL,_)||"":kc(_,"URL")?Za(_):eu(we(_))}function oa(){const _=Se();return _&&_[12]}const Cl=new Sn("ENVIRONMENT_INITIALIZER"),t1=new Sn("INJECTOR",-1),n1=new Sn("INJECTOR_DEF_TYPES");class Yf{get(b,y=Wr){if(y===Wr){const M=new Error(`NullInjectorError: No provider for ${U(b)}!`);throw M.name="NullInjectorError",M}return y}}function xy(..._){return{\u0275providers:Sy(0,_)}}function Sy(_,...b){const y=[],M=new Set;let v;return aa(b,x=>{const R=x;Hh(R,y,[],M)&&(v||(v=[]),v.push(R))}),void 0!==v&&Wf(v,y),y}function Wf(_,b){for(let y=0;y<_.length;y++){const{providers:v}=_[y];aa(v,x=>{b.push(x)})}}function Hh(_,b,y,M){if(!(_=ae(_)))return!1;let v=null,x=pa(_);const R=!x&&pn(_);if(x||R){if(R&&!R.standalone)return!1;v=_}else{const I=_.ngModule;if(x=pa(I),!x)return!1;v=I}const k=M.has(v);if(R){if(k)return!1;if(M.add(v),R.dependencies){const I="function"==typeof R.dependencies?R.dependencies():R.dependencies;for(const z of I)Hh(z,b,y,M)}}else{if(!x)return!1;{if(null!=x.imports&&!k){let z;M.add(v);try{aa(x.imports,$=>{Hh($,b,y,M)&&(z||(z=[]),z.push($))})}finally{}void 0!==z&&Wf(z,b)}if(!k){const z=zr(v)||(()=>new v);b.push({provide:v,useFactory:z,deps:it},{provide:n1,useValue:v,multi:!0},{provide:Cl,useValue:()=>Jn(v),multi:!0})}const I=x.providers;null==I||k||aa(I,$=>{b.push($)})}}return v!==_&&void 0!==_.providers}const Eo=O({provide:String,useValue:O});function r1(_){return null!==_&&"object"==typeof _&&Eo in _}function vl(_){return"function"==typeof _}const Zf=new Sn("Set Injector scope."),Tl={},Dy={};let Jf;function Rh(){return void 0===Jf&&(Jf=new Yf),Jf}class xl{}class Qf extends xl{constructor(b,y,M,v){super(),this.parent=y,this.source=M,this.scopes=v,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,e0(b,R=>this.processProvider(R)),this.records.set(t1,Sl(void 0,this)),v.has("environment")&&this.records.set(xl,Sl(void 0,this));const x=this.records.get(Zf);null!=x&&"string"==typeof x.value&&this.scopes.add(x.value),this.injectorDefTypes=new Set(this.get(n1.multi,it,ye.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();for(const b of this._onDestroyHooks)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(b){this._onDestroyHooks.push(b)}runInContext(b){this.assertNotDestroyed();const y=gl(this),M=ct(void 0);try{return b()}finally{gl(y),ct(M)}}get(b,y=Wr,M=ye.Default){this.assertNotDestroyed();const v=gl(this),x=ct(void 0);try{if(!(M&ye.SkipSelf)){let k=this.records.get(b);if(void 0===k){const I=function Ry(_){return"function"==typeof _||"object"==typeof _&&_ instanceof Sn}(b)&&Ii(b);k=I&&this.injectableDefInScope(I)?Sl(Xf(b),Tl):null,this.records.set(b,k)}if(null!=k)return this.hydrate(b,k)}return(M&ye.Self?Rh():this.parent).get(b,y=M&ye.Optional&&y===Wr?null:y)}catch(R){if("NullInjectorError"===R.name){if((R[Pr]=R[Pr]||[]).unshift(U(b)),v)throw R;return function Ch(_,b,y,M){const v=_[Pr];throw b[Lf]&&v.unshift(b[Lf]),_.message=function Hf(_,b,y,M=null){_=_&&"\n"===_.charAt(0)&&"\u0275"==_.charAt(1)?_.slice(2):_;let v=U(b);if(Array.isArray(b))v=b.map(U).join(" -> ");else if("object"==typeof b){let x=[];for(let R in b)if(b.hasOwnProperty(R)){let k=b[R];x.push(R+":"+("string"==typeof k?JSON.stringify(k):U(k)))}v=`{${x.join(", ")}}`}return`${y}${M?"("+M+")":""}[${v}]: ${_.replace(Gd,"\n ")}`}("\n"+_.message,v,y,M),_.ngTokenPath=v,_[Pr]=null,_}(R,b,"R3InjectorError",this.source)}throw R}finally{ct(x),gl(v)}}resolveInjectorInitializers(){const b=gl(this),y=ct(void 0);try{const M=this.get(Cl.multi,it,ye.Self);for(const v of M)v()}finally{gl(b),ct(y)}}toString(){const b=[],y=this.records;for(const M of y.keys())b.push(U(M));return`R3Injector[${b.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new re(205,!1)}processProvider(b){let y=vl(b=ae(b))?b:ae(b&&b.provide);const M=function Ly(_){return r1(_)?Sl(void 0,_.useValue):Sl(s1(_),Tl)}(b);if(vl(b)||!0!==b.multi)this.records.get(y);else{let v=this.records.get(y);v||(v=Sl(void 0,Tl,!0),v.factory=()=>mr(v.multi),this.records.set(y,v)),y=b,v.multi.push(b)}this.records.set(y,M)}hydrate(b,y){return y.value===Tl&&(y.value=Dy,y.value=y.factory()),"object"==typeof y.value&&y.value&&function Kf(_){return null!==_&&"object"==typeof _&&"function"==typeof _.ngOnDestroy}(y.value)&&this._ngOnDestroyHooks.add(y.value),y.value}injectableDefInScope(b){if(!b.providedIn)return!1;const y=ae(b.providedIn);return"string"==typeof y?"any"===y||this.scopes.has(y):this.injectorDefTypes.has(y)}}function Xf(_){const b=Ii(_),y=null!==b?b.factory:zr(_);if(null!==y)return y;if(_ instanceof Sn)throw new re(204,!1);if(_ instanceof Function)return function a1(_){const b=_.length;if(b>0)throw mi(b,"?"),new re(204,!1);const y=function vi(_){const b=_&&(_[Cr]||_[pe]);if(b){const y=function co(_){if(_.hasOwnProperty("name"))return _.name;const b=(""+_).match(/^function\s*([^\s(]+)/);return null===b?"":b[1]}(_);return console.warn(`DEPRECATED: DI is instantiating a token "${y}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${y}" class.`),b}return null}(_);return null!==y?()=>y.factory(_):()=>new _}(_);throw new re(204,!1)}function s1(_,b,y){let M;if(vl(_)){const v=ae(_);return zr(v)||Xf(v)}if(r1(_))M=()=>ae(_.useValue);else if(function $f(_){return!(!_||!_.useFactory)}(_))M=()=>_.useFactory(...mr(_.deps||[]));else if(function Gf(_){return!(!_||!_.useExisting)}(_))M=()=>Jn(ae(_.useExisting));else{const v=ae(_&&(_.useClass||_.provide));if(!function Hy(_){return!!_.deps}(_))return zr(v)||Xf(v);M=()=>new v(...mr(_.deps))}return M}function Sl(_,b,y=!1){return{factory:_,value:b,multi:y?[]:void 0}}function Py(_){return!!_.\u0275providers}function e0(_,b){for(const y of _)Array.isArray(y)?e0(y,b):Py(y)?e0(y.\u0275providers,b):b(y)}class Ph{}class o1{resolveComponentFactory(b){throw function Qn(_){const b=Error(`No component factory found for ${U(_)}. Did you add it to @NgModule.entryComponents?`);return b.ngComponent=_,b}(b)}}let Bc=(()=>{class _{}return _.NULL=new o1,_})();function iu(){return Nc(Gn(),Se())}function Nc(_,b){return new kr(ur(_,b))}let kr=(()=>{class _{constructor(y){this.nativeElement=y}}return _.__NG_ELEMENT_ID__=iu,_})();function kh(_){return _ instanceof kr?_.nativeElement:_}class t0{}let ru=(()=>{class _{}return _.__NG_ELEMENT_ID__=()=>function n0(){const _=Se(),y=Bi(Gn().index,_);return(fi(y)?y:_)[11]}(),_})(),Oy=(()=>{class _{}return _.\u0275prov=dn({token:_,providedIn:"root",factory:()=>null}),_})();class au{constructor(b){this.full=b,this.major=b.split(".")[0],this.minor=b.split(".")[1],this.patch=b.split(".").slice(2).join(".")}}const r0=new au("14.1.2"),Or={};function Fc(_){return _.ngOriginalError}class Ra{constructor(){this._console=console}handleError(b){const y=this._findOriginalError(b);this._console.error("ERROR",b),y&&this._console.error("ORIGINAL ERROR",y)}_findOriginalError(b){let y=b&&Fc(b);for(;y&&Fc(y);)y=Fc(y);return y||null}}const p1=new Map;let px=0;const ou="__ngContext__";function gr(_,b){fi(b)?(_[ou]=b[20],function mx(_){p1.set(_[20],_)}(b)):_[ou]=b}function Oh(_){const b=_[ou];return"number"==typeof b?function Ny(_){return p1.get(_)||null}(b):b||null}function m1(_){const b=Oh(_);return b?fi(b)?b:b.lView:null}const Cx=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(fe))();function qy(_){return _.ownerDocument.defaultView}function Lo(_){return _ instanceof Function?_():_}var Ja=(()=>((Ja=Ja||{})[Ja.Important=1]="Important",Ja[Ja.DashCase=2]="DashCase",Ja))();function g1(_,b){return undefined(_,b)}function Ih(_){const b=_[3];return Ji(b)?b[3]:b}function _1(_){return $y(_[13])}function b1(_){return $y(_[4])}function $y(_){for(;null!==_&&!Ji(_);)_=_[4];return _}function cu(_,b,y,M,v){if(null!=M){let x,R=!1;Ji(M)?x=M:fi(M)&&(R=!0,M=M[0]);const k=ti(M);0===_&&null!==y?null==v?ew(b,y,k):zc(b,y,k,v||null,!0):1===_&&null!==y?zc(b,y,k,v||null,!0):2===_?function ow(_,b,y){const M=o0(_,b);M&&function jx(_,b,y,M){_.removeChild(b,y,M)}(_,M,b,y)}(b,k,R):3===_&&b.destroyNode(k),null!=x&&function Ux(_,b,y,M,v){const x=y[7];x!==ti(y)&&cu(b,_,M,x,v);for(let k=10;k0&&(_[y-1][4]=M[4]);const x=Tc(_,10+b);!function Rx(_,b){Nh(_,b,b[11],2,null,null),b[0]=null,b[6]=null}(M[1],M);const R=x[19];null!==R&&R.detachView(x[1]),M[3]=null,M[4]=null,M[2]&=-65}return M}function Qy(_,b){if(!(128&b[2])){const y=b[11];y.destroyNode&&Nh(_,b,y,3,null,null),function Ox(_){let b=_[13];if(!b)return M1(_[1],_);for(;b;){let y=null;if(fi(b))y=b[13];else{const M=b[10];M&&(y=M)}if(!y){for(;b&&!b[4]&&b!==_;)fi(b)&&M1(b[1],b),b=b[3];null===b&&(b=_),fi(b)&&M1(b[1],b),y=b&&b[4]}b=y}}(b)}}function M1(_,b){if(!(128&b[2])){b[2]&=-65,b[2]|=128,function Vx(_,b){let y;if(null!=_&&null!=(y=_.destroyHooks))for(let M=0;M=0?M[v=z]():M[v=-z].unsubscribe(),x+=2}else{const R=M[v=y[x+1]];y[x].call(R)}if(null!==M){for(let x=v+1;xx?"":v[ne+1].toLowerCase();const ge=8&M?de:null;if(ge&&-1!==du(ge,z,0)||2&M&&z!==de){if(Qt(M))return!1;R=!0}}}}else{if(!R&&!Qt(M)&&!Qt(I))return!1;if(R&&Qt(I))continue;R=!1,M=I|1&M}}return Qt(M)||R}function Qt(_){return 0==(1&_)}function E1(_,b,y,M){if(null===b)return-1;let v=0;if(M||!y){let x=!1;for(;v-1)for(y++;y<_.length;){const M=_[y];if("number"==typeof M)return-1;if(M===b)return y;y++}return-1}(b,_)}function qc(_,b,y=!1){for(let M=0;M0?'="'+k+'"':"")+"]"}else 8&M?v+="."+R:4&M&&(v+=" "+R);else""!==v&&!Qt(R)&&(b+=L1(x,v),v=""),M=R,x=x||!Qt(M);y++}return""!==v&&(b+=L1(x,v)),b}const Vt={};function Dl(_){H1(pt(),Se(),rn()+_,!1)}function H1(_,b,y,M){if(!M)if(3==(3&b[2])){const x=_.preOrderCheckHooks;null!==x&&al(b,x,y)}else{const x=_.preOrderHooks;null!==x&&sl(b,x,0,y)}xi(y)}function gw(_,b=null,y=null,M){const v=p0(_,b,y,M);return v.resolveInjectorInitializers(),v}function p0(_,b=null,y=null,M,v=new Set){const x=[y||it,xy(_)];return M=M||("object"==typeof _?void 0:U(_)),new Qf(x,b||Rh(),M||null,v)}let Qa=(()=>{class _{static create(y,M){if(Array.isArray(y))return gw({name:""},M,y,"");{var v;const x=null!==(v=y.name)&&void 0!==v?v:"";return gw({name:x},y.parent,y.providers,x)}}}return _.THROW_IF_NOT_FOUND=Wr,_.NULL=new Yf,_.\u0275prov=dn({token:_,providedIn:"any",factory:()=>Jn(t1)}),_.__NG_ELEMENT_ID__=-1,_})();function Gc(_,b=ye.Default){const y=Se();return null===y?Jn(_,b):Ca(Gn(),y,ae(_),b)}function V1(){throw new Error("invalid")}function Bs(_,b){return _<<17|b<<2}function Pa(_){return _>>17&32767}function A0(_){return 2|_}function Ns(_){return(131068&_)>>2}function F1(_,b){return-131069&_|b<<2}function $c(_){return 1|_}function T0(_,b){const y=_.contentQueries;if(null!==y)for(let M=0;M22&&H1(_,b,22,!1),y(M,v)}finally{xi(x)}}function x0(_,b,y){if(cr(b)){const v=b.directiveEnd;for(let x=b.directiveStart;x0;){const y=_[--b];if("number"==typeof y&&y<0)return y}return 0})(k)!=I&&k.push(I),k.push(M,v,R)}}function J1(_,b){null!==_.hostBindings&&_.hostBindings(1,b)}function Q1(_,b){b.flags|=2,(_.components||(_.components=[])).push(b.index)}function Yw(_,b,y){if(y){if(b.exportAs)for(let M=0;M0&&Xh(y)}}function Xh(_){for(let M=_1(_);null!==M;M=b1(M))for(let v=10;v0&&Xh(x)}const y=_[1].components;if(null!==y)for(let M=0;M0&&Xh(v)}}function bu(_,b){const y=Bi(b,_),M=y[1];(function Xw(_,b){for(let y=b.length;y<_.blueprint.length;y++)b.push(_.blueprint[y])})(M,y),Yh(M,y,y[8])}function Au(_,b){return _[13]?_[14][4]=b:_[13]=b,_[14]=b,b}function L0(_){for(;_;){_[2]|=32;const b=Ih(_);if(ba(_)&&!b)return _;_=b}return null}function Kh(_){!function Kw(_){for(let b=0;b<_.components.length;b++){const y=_.components[b],M=m1(y);if(null!==M){const v=M[1];Iw(v,M,v.template,y)}}}(_[8])}function P0(_,b,y){ra(0),b(_,y)}const tM=(()=>Promise.resolve(null))();function K1(_){return _[7]||(_[7]=[])}function yu(_){return _.cleanup||(_.cleanup=[])}function e_(_,b,y){return(null===_||Qi(_))&&(y=function In(_){for(;Array.isArray(_);){if("object"==typeof _[1])return _;_=_[0]}return null}(y[b.index])),y[11]}function t_(_,b){const y=_[9],M=y?y.get(Ra,null):null;M&&M.handleError(b)}function wu(_,b,y,M,v){for(let x=0;x-1&&(w1(b,M),Tc(y,M))}this._attachedToViewContainer=!1}Qy(this._lView[1],this._lView)}onDestroy(b){Jh(this._lView[1],this._lView,null,b)}markForCheck(){L0(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function H0(_,b,y){const M=b[10];M.begin&&M.begin();try{Qc(_,b,_.template,y)}catch(v){throw t_(b,v),v}finally{M.end&&M.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new re(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function kx(_,b){Nh(_,b,b[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(b){if(this._attachedToViewContainer)throw new re(902,!1);this._appRef=b}}class tp extends kl{constructor(b){super(b),this._view=b}detectChanges(){Kh(this._view)}checkNoChanges(){}get context(){return null}}class k0 extends Bc{constructor(b){super(),this.ngModule=b}resolveComponentFactory(b){const y=pn(b);return new Xc(y,this.ngModule)}}function O0(_){const b=[];for(let y in _)_.hasOwnProperty(y)&&b.push({propName:_[y],templateName:y});return b}class nM{constructor(b,y){this.injector=b,this.parentInjector=y}get(b,y,M){const v=this.injector.get(b,Or,M);return v!==Or||y===Or?v:this.parentInjector.get(b,y,M)}}class Xc extends Ph{constructor(b,y){super(),this.componentDef=b,this.ngModule=y,this.componentType=b.type,this.selector=function uu(_){return _.map(c0).join(",")}(b.selectors),this.ngContentSelectors=b.ngContentSelectors?b.ngContentSelectors:[],this.isBoundToModule=!!y}get inputs(){return O0(this.componentDef.inputs)}get outputs(){return O0(this.componentDef.outputs)}create(b,y,M,v){var x;let R=(v=v||this.ngModule)instanceof xl?v:null===(x=v)||void 0===x?void 0:x.injector;R&&null!==this.componentDef.getStandaloneInjector&&(R=this.componentDef.getStandaloneInjector(R)||R);const k=R?new nM(b,R):b,I=k.get(t0,null);if(null===I)throw new re(407,!1);const z=k.get(Oy,null),$=I.createRenderer(null,this.componentDef),ne=this.componentDef.selectors[0][0]||"div",de=M?function $1(_,b,y){return _.selectRootElement(b,y===ie.ShadowDom)}($,M,this.componentDef.encapsulation):y1(I.createRenderer(null,this.componentDef),ne,function Cu(_){const b=_.toLowerCase();return"svg"===b?"svg":"math"===b?"math":null}(ne)),ge=this.componentDef.onPush?288:272,He=function rM(_,b){return{components:[],scheduler:_||Cx,clean:tM,playerHandler:b||null,flags:0}}(),qe=Zh(0,null,null,1,0,null,null,null,null,null),Qe=gu(null,qe,He,ge,null,null,I,$,z,k,null);let st,Tt;Ya(Qe);try{const Ne=function Ol(_,b,y,M,v,x){const R=y[1];y[22]=_;const I=Rl(R,22,2,"#host",null),z=I.mergedAttrs=b.hostAttrs;null!==z&&(Mu(I,z,!0),null!==_&&(xs(v,_,z),null!==I.classes&&Di(v,_,I.classes),null!==I.styles&&x1(v,_,I.styles)));const $=M.createRenderer(_,b),ne=gu(y,G1(b),null,b.onPush?32:16,y[22],I,M,$,x||null,null,null);return R.firstCreatePass&&(Ac(cl(I,y),R,b.type),Q1(R,I),Ht(I,y.length,1)),Au(y,ne),y[22]=ne}(de,this.componentDef,Qe,I,$);if(de)if(M)xs($,de,["ng-version",r0.full]);else{const{attrs:Dt,classes:zt}=function Yx(_){const b=[],y=[];let M=1,v=2;for(;M<_.length;){let x=_[M];if("string"==typeof x)2===v?""!==x&&b.push(x,_[++M]):8===v&&y.push(x);else{if(!Qt(v))break;v=x}M++}return{attrs:b,classes:y}}(this.componentDef.selectors[0]);Dt&&xs($,de,Dt),zt&&zt.length>0&&Di($,de,zt.join(" "))}if(Tt=uc(qe,22),void 0!==y){const Dt=Tt.projection=[];for(let zt=0;zt=0;M--){const v=_[M];v.hostVars=b+=v.hostVars,v.hostAttrs=Ss(v.hostAttrs,y=Ss(y,v.hostAttrs))}}(M)}function ts(_){return _===Bt?{}:_===it?[]:_}function Il(_,b){const y=_.viewQuery;_.viewQuery=y?(M,v)=>{b(M,v),y(M,v)}:b}function sM(_,b){const y=_.contentQueries;_.contentQueries=y?(M,v,x)=>{b(M,v,x),y(M,v,x)}:b}function Us(_,b){const y=_.hostBindings;_.hostBindings=y?(M,v)=>{b(M,v),y(M,v)}:b}let np=null;function ko(){if(!np){const _=fe.Symbol;if(_&&_.iterator)np=_.iterator;else{const b=Object.getOwnPropertyNames(Map.prototype);for(let y=0;yk(ti(zt[M.index])):M.index;let Dt=null;if(!k&&I&&(Dt=function cS(_,b,y,M){const v=_.cleanup;if(null!=v)for(let x=0;xI?k[I]:null}"string"==typeof R&&(x+=2)}return null}(_,b,v,M.index)),null!==Dt)(Dt.__ngLastListenerFn__||Dt).__ngNextListenerFn__=x,Dt.__ngLastListenerFn__=x,ge=!1;else{x=f_(M,b,ne,x,!1);const zt=y.listen(st,v,x);de.push(x,zt),$&&$.push(v,Ne,Tt,Tt+1)}}else x=f_(M,b,ne,x,!1);const He=M.outputs;let qe;if(ge&&null!==He&&(qe=He[v])){const Qe=qe.length;if(Qe)for(let st=0;st0;)b=b[15],_--;return b}(_,Ae.lFrame.contextLView))[8]}(_)}function _M(_,b){let y=null;const M=function Li(_){const b=_.attrs;if(null!=b){const y=b.indexOf(5);if(0==(1&y))return b[y+1]}return null}(_);for(let v=0;v=0}const ut={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function No(_){return _.substring(ut.key,ut.keyEnd)}function Hu(_,b){const y=ut.textEnd;return y===b?-1:(b=ut.keyEnd=function Ru(_,b,y){for(;b32;)b++;return b}(_,ut.key=b,y),Vl(_,b,y))}function Vl(_,b,y){for(;b=0;y=Hu(b,y))Ki(_,No(b),!0)}function Ia(_,b,y,M){const v=Se(),x=pt(),R=Dr(2);x.firstUpdatePass&&v_(x,_,R,M),b!==Vt&&br(v,R,b)&&SM(x,x.data[rn()],v,v[11],_,v[R+1]=function T_(_,b){return null==_||("string"==typeof b?_+=b:"object"==typeof _&&(_=U(Za(_)))),_}(b,y),M,R)}function Ba(_,b,y,M){const v=pt(),x=Dr(2);v.firstUpdatePass&&v_(v,null,x,M);const R=Se();if(y!==Vt&&br(R,x,y)){const k=v.data[rn()];if(x_(k,M)&&!C_(v,x)){let I=M?k.classesWithoutHost:k.stylesWithoutHost;null!==I&&(y=W(I,y||"")),h_(v,k,R,y,M)}else!function pS(_,b,y,M,v,x,R,k){v===Vt&&(v=it);let I=0,z=0,$=0=_.expandoStartIndex}function v_(_,b,y,M){const v=_.data;if(null===v[y+1]){const x=v[rn()],R=C_(_,y);x_(x,M)&&null===b&&!R&&(b=!1),b=function MM(_,b,y,M){const v=tl(_);let x=M?b.residualClasses:b.residualStyles;if(null===v)0===(M?b.classBindings:b.styleBindings)&&(y=Na(y=hp(null,_,b,y,M),b.attrs,M),x=null);else{const R=b.directiveStylingLast;if(-1===R||_[R]!==v)if(y=hp(v,_,b,y,M),null===x){let I=function CM(_,b,y){const M=y?b.classBindings:b.styleBindings;if(0!==Ns(M))return _[Pa(M)]}(_,b,M);void 0!==I&&Array.isArray(I)&&(I=hp(null,_,b,I[1],M),I=Na(I,b.attrs,M),function vM(_,b,y,M){_[Pa(y?b.classBindings:b.styleBindings)]=M}(_,b,M,I))}else x=function TM(_,b,y){let M;const v=b.directiveEnd;for(let x=1+b.directiveStylingLast;x0)&&(z=!0)}else $=y;if(v)if(0!==I){const de=Pa(_[k+1]);_[M+1]=Bs(de,k),0!==de&&(_[de+1]=F1(_[de+1],M)),_[k+1]=function Ew(_,b){return 131071&_|b<<17}(_[k+1],M)}else _[M+1]=Bs(k,0),0!==k&&(_[k+1]=F1(_[k+1],M)),k=M;else _[M+1]=Bs(I,0),0===k?k=M:_[I+1]=F1(_[I+1],M),I=M;z&&(_[M+1]=A0(_[M+1])),G0(_,$,M,!0),G0(_,$,M,!1),function dp(_,b,y,M,v){const x=v?_.residualClasses:_.residualStyles;null!=x&&"string"==typeof b&&vo(x,b)>=0&&(y[M+1]=$c(y[M+1]))}(b,$,_,M,x),R=Bs(k,I),x?b.classBindings=R:b.styleBindings=R}(v,x,b,y,R,M)}}function hp(_,b,y,M,v){let x=null;const R=y.directiveEnd;let k=y.directiveStylingLast;for(-1===k?k=y.directiveStart:k++;k0;){const I=_[v],z=Array.isArray(I),$=z?I[1]:I,ne=null===$;let de=y[v+1];de===Vt&&(de=ne?it:void 0);let ge=ne?pl(de,M):$===M?de:void 0;if(z&&!pp(ge)&&(ge=pl(I,M)),pp(ge)&&(k=ge,R))return k;const He=_[v+1];v=R?Pa(He):Ns(He)}if(null!==b){let I=x?b.residualClasses:b.residualStyles;null!=I&&(k=pl(I,M))}return k}function pp(_){return void 0!==_}function x_(_,b){return 0!=(_.flags&(b?16:32))}function as(_,b=""){const y=Se(),M=pt(),v=_+22,x=M.firstCreatePass?Rl(M,v,1,b,null):M.data[v],R=y[v]=function A1(_,b){return _.createText(b)}(y[11],b);l0(M,y,R,x),Nt(x,!1)}function J0(_){return fp("",_,""),J0}function fp(_,b,y){const M=Se(),v=Oa(M,_,b,y);return v!==Vt&&Po(M,rn(),v),fp}function S_(_,b,y,M,v){const x=Se(),R=td(x,_,b,y,M,v);return R!==Vt&&Po(x,rn(),R),S_}function mp(_,b,y,M,v,x,R,k,I,z,$){const ne=Se(),de=nd(ne,_,b,y,M,v,x,R,k,I,z,$);return de!==Vt&&Po(ne,rn(),de),mp}function sd(_,b,y){Ba(Ki,rs,Oa(Se(),_,b,y),!0)}function od(_,b,y){const M=Se();return br(M,Cs(),b)&&_r(pt(),Nn(),M,_,b,M[11],y,!0),od}function gp(_,b,y){const M=Se();if(br(M,Cs(),b)){const x=pt(),R=Nn();_r(x,R,M,_,b,e_(tl(x.data),R,M),y,!0)}return gp}const Fo=void 0;var O_=["en",[["a","p"],["AM","PM"],Fo],[["AM","PM"],Fo,Fo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Fo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Fo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Fo,"{1} 'at' {0}",Fo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function k_(_){const y=Math.floor(Math.abs(_)),M=_.toString().replace(/^[^.]*\.?/,"").length;return 1===y&&0===M?1:5}];let ld={};function _p(_){const b=function B_(_){return _.toLowerCase().replace(/_/g,"-")}(_);let y=bp(b);if(y)return y;const M=b.split("-")[0];if(y=bp(M),y)return y;if("en"===M)return O_;throw new re(701,!1)}function lm(_){return _p(_)[vt.PluralCase]}function bp(_){return _ in ld||(ld[_]=fe.ng&&fe.ng.common&&fe.ng.common.locales&&fe.ng.common.locales[_]),ld[_]}var vt=(()=>((vt=vt||{})[vt.LocaleId=0]="LocaleId",vt[vt.DayPeriodsFormat=1]="DayPeriodsFormat",vt[vt.DayPeriodsStandalone=2]="DayPeriodsStandalone",vt[vt.DaysFormat=3]="DaysFormat",vt[vt.DaysStandalone=4]="DaysStandalone",vt[vt.MonthsFormat=5]="MonthsFormat",vt[vt.MonthsStandalone=6]="MonthsStandalone",vt[vt.Eras=7]="Eras",vt[vt.FirstDayOfWeek=8]="FirstDayOfWeek",vt[vt.WeekendRange=9]="WeekendRange",vt[vt.DateFormat=10]="DateFormat",vt[vt.TimeFormat=11]="TimeFormat",vt[vt.DateTimeFormat=12]="DateTimeFormat",vt[vt.NumberSymbols=13]="NumberSymbols",vt[vt.NumberFormats=14]="NumberFormats",vt[vt.CurrencyCode=15]="CurrencyCode",vt[vt.CurrencySymbol=16]="CurrencySymbol",vt[vt.CurrencyName=17]="CurrencyName",vt[vt.Currencies=18]="Currencies",vt[vt.Directionality=19]="Directionality",vt[vt.PluralCase=20]="PluralCase",vt[vt.ExtraData=21]="ExtraData",vt))();const Fl="en-US";let NM=Fl;function Cm(_,b,y,M,v){if(_=ae(_),Array.isArray(_))for(let x=0;x<_.length;x++)Cm(_[x],b,y,M,v);else{const x=pt(),R=Se();let k=vl(_)?_:ae(_.provide),I=s1(_);const z=Gn(),$=1048575&z.providerIndexes,ne=z.directiveStart,de=z.providerIndexes>>20;if(vl(_)||!_.multi){const ge=new qr(I,v,Gc),He=Tm(k,b,v?$:$+de,ne);-1===He?(Ac(cl(z,R),x,k),tb(x,_,b.length),b.push(k),z.directiveStart++,z.directiveEnd++,v&&(z.providerIndexes+=1048576),y.push(ge),R.push(ge)):(y[He]=ge,R[He]=ge)}else{const ge=Tm(k,b,$+de,ne),He=Tm(k,b,$,$+de),qe=ge>=0&&y[ge],Qe=He>=0&&y[He];if(v&&!Qe||!v&&!qe){Ac(cl(z,R),x,k);const st=function xm(_,b,y,M,v){const x=new qr(_,y,Gc);return x.multi=[],x.index=b,x.componentProviders=0,vm(x,v,M&&!y),x}(v?eC:nb,y.length,v,M,I);!v&&Qe&&(y[He].providerFactory=st),tb(x,_,b.length,0),b.push(k),z.directiveStart++,z.directiveEnd++,v&&(z.providerIndexes+=1048576),y.push(st),R.push(st)}else tb(x,_,ge>-1?ge:He,vm(y[v?He:ge],I,!v&&M));!v&&M&&Qe&&y[He].componentProviders++}}}function tb(_,b,y,M){const v=vl(b),x=function Ey(_){return!!_.useClass}(b);if(v||x){const I=(x?ae(b.useClass):b).prototype.ngOnDestroy;if(I){const z=_.destroyHooks||(_.destroyHooks=[]);if(!v&&b.multi){const $=z.indexOf(y);-1===$?z.push(y,[M,I]):z[$+1].push(M,I)}else z.push(y,I)}}}function vm(_,b,y){return y&&_.componentProviders++,_.multi.push(b)-1}function Tm(_,b,y,M){for(let v=y;v{y.providersResolver=(M,v)=>function Lp(_,b,y){const M=pt();if(M.firstCreatePass){const v=Qi(_);Cm(y,M.data,M.blueprint,v,!0),Cm(b,M.data,M.blueprint,v,!1)}}(M,v?v(_):_,b)}}class sr{}class rb{}function Qs(_,b){return new Rp(_,b??null)}class Rp extends sr{constructor(b,y){super(),this._parent=y,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new k0(this);const M=Ze(b);this._bootstrapComponents=Lo(M.bootstrap),this._r3Injector=p0(b,y,[{provide:sr,useValue:this},{provide:Bc,useValue:this.componentFactoryResolver}],U(b),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(b)}get injector(){return this._r3Injector}destroy(){const b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(y=>y()),this.destroyCbs=null}onDestroy(b){this.destroyCbs.push(b)}}class Sm extends rb{constructor(b){super(),this.moduleType=b}create(b){return new Rp(this.moduleType,b)}}class Em extends sr{constructor(b,y,M){super(),this.componentFactoryResolver=new k0(this),this.instance=null;const v=new Qf([...b,{provide:sr,useValue:this},{provide:Bc,useValue:this.componentFactoryResolver}],y||Rh(),M,new Set(["environment"]));this.injector=v,v.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(b){this.injector.onDestroy(b)}}function Pp(_,b,y=null){return new Em(_,b,y).injector}function db(_,b,y){const M=Wt()+_,v=Se();return v[M]===Vt?qs(v,M,y?b.call(y):b()):function ip(_,b){return _[b]}(v,M)}function ub(_,b,y,M){return Rm(Se(),Wt(),_,b,y,M)}function Nr(_,b,y,M,v){return cC(Se(),Wt(),_,b,y,M,v)}function ju(_,b){const y=_[b];return y===Vt?void 0:y}function Rm(_,b,y,M,v,x){const R=b+y;return br(_,R,v)?qs(_,R+1,x?M.call(x,v):M(v)):ju(_,R+1)}function cC(_,b,y,M,v,x,R){const k=b+y;return ed(_,k,v,x)?qs(_,k+2,R?M.call(R,v,x):M(v,x)):ju(_,k+2)}function dC(_,b,y,M,v,x,R,k){const I=b+y;return function N0(_,b,y,M,v){const x=ed(_,b,y,M);return br(_,b+2,v)||x}(_,I,v,x,R)?qs(_,I+3,k?M.call(k,v,x,R):M(v,x,R)):ju(_,I+3)}function Fu(_,b){const y=pt();let M;const v=_+22;y.firstCreatePass?(M=function Xs(_,b){if(b)for(let y=b.length-1;y>=0;y--){const M=b[y];if(_===M.name)return M}}(b,y.pipeRegistry),y.data[v]=M,M.onDestroy&&(y.destroyHooks||(y.destroyHooks=[])).push(v,M.onDestroy)):M=y.data[v];const x=M.factory||(M.factory=zr(M.type)),R=ct(Gc);try{const k=_c(!1),I=x();return _c(k),function pM(_,b,y,M){y>=_.data.length&&(_.data[y]=null,_.blueprint[y]=null),b[y]=M}(y,Se(),v,I),I}finally{ct(R)}}function pC(_,b,y){const M=_+22,v=Se(),x=_o(v,M);return hd(v,M)?Rm(v,Wt(),b,x.transform,y,x):x.transform(y)}function fC(_,b,y,M){const v=_+22,x=Se(),R=_o(x,v);return hd(x,v)?cC(x,Wt(),b,R.transform,y,M,R):R.transform(y,M)}function km(_,b,y,M,v){const x=_+22,R=Se(),k=_o(R,x);return hd(R,x)?dC(R,Wt(),b,k.transform,y,M,v,k):k.transform(y,M,v)}function hd(_,b){return _[1].data[b].pure}function Om(_){return b=>{setTimeout(_,void 0,b)}}const ss=class LS extends T.x{constructor(b=!1){super(),this.__isAsync=b}emit(b){super.next(b)}subscribe(b,y,M){let v=b,x=y||(()=>null),R=M;if(b&&"object"==typeof b){var k,I,z;const ne=b;v=null===(k=ne.next)||void 0===k?void 0:k.bind(ne),x=null===(I=ne.error)||void 0===I?void 0:I.bind(ne),R=null===(z=ne.complete)||void 0===z?void 0:z.bind(ne)}this.__isAsync&&(x=Om(x),v&&(v=Om(v)),R&&(R=Om(R)));const $=super.subscribe({next:v,error:x,complete:R});return b instanceof n.w0&&b.add($),$}};function gC(){return this._results[ko()]()}class Np{constructor(b=!1){this._emitDistinctChangesOnly=b,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const y=ko(),M=Np.prototype;M[y]||(M[y]=gC)}get changes(){return this._changes||(this._changes=new ss)}get(b){return this._results[b]}map(b){return this._results.map(b)}filter(b){return this._results.filter(b)}find(b){return this._results.find(b)}reduce(b,y){return this._results.reduce(b,y)}forEach(b){this._results.forEach(b)}some(b){return this._results.some(b)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(b,y){const M=this;M.dirty=!1;const v=Si(b);(this._changesDetected=!function Ta(_,b,y){if(_.length!==b.length)return!1;for(let M=0;M<_.length;M++){let v=_[M],x=b[M];if(y&&(v=y(v),x=y(x)),x!==v)return!1}return!0}(M._results,v,y))&&(M._results=v,M.length=v.length,M.last=v[this.length-1],M.first=v[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let zu=(()=>{class _{}return _.__NG_ELEMENT_ID__=AC,_})();const _C=zu,bC=class extends _C{constructor(b,y,M){super(),this._declarationLView=b,this._declarationTContainer=y,this.elementRef=M}createEmbeddedView(b,y){const M=this._declarationTContainer.tViews,v=gu(this._declarationLView,M,b,16,null,M.declTNode,null,null,null,null,y||null);v[17]=this._declarationLView[this._declarationTContainer.index];const R=this._declarationLView[19];return null!==R&&(v[19]=R.createEmbeddedView(M)),Yh(M,v,b),new kl(v)}};function AC(){return Vp(Gn(),Se())}function Vp(_,b){return 4&_.type?new bC(b,_,Nc(_,b)):null}let Uu=(()=>{class _{}return _.__NG_ELEMENT_ID__=HS,_})();function HS(){return Yl(Gn(),Se())}const RS=Uu,yC=class extends RS{constructor(b,y,M){super(),this._lContainer=b,this._hostTNode=y,this._hostLView=M}get element(){return Nc(this._hostTNode,this._hostLView)}get injector(){return new Ls(this._hostTNode,this._hostLView)}get parentInjector(){const b=Nd(this._hostTNode,this._hostLView);if(Bd(b)){const y=wo(b,this._hostLView),M=yo(b);return new Ls(y[1].data[M+8],y)}return new Ls(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(b){const y=Im(this._lContainer);return null!==y&&y[b]||null}get length(){return this._lContainer.length-10}createEmbeddedView(b,y,M){let v,x;"number"==typeof M?v=M:null!=M&&(v=M.index,x=M.injector);const R=b.createEmbeddedView(y||{},x);return this.insert(R,v),R}createComponent(b,y,M,v,x){const R=b&&!function ks(_){return"function"==typeof _}(b);let k;if(R)k=y;else{const ne=y||{};k=ne.index,M=ne.injector,v=ne.projectableNodes,x=ne.environmentInjector||ne.ngModuleRef}const I=R?b:new Xc(pn(b)),z=M||this.parentInjector;if(!x&&null==I.ngModule){const de=(R?z:this.parentInjector).get(xl,null);de&&(x=de)}const $=I.create(z,v,void 0,x);return this.insert($.hostView,k),$}insert(b,y){const M=b._lView,v=M[1];if(function F(_){return Ji(_[3])}(M)){const $=this.indexOf(b);if(-1!==$)this.detach($);else{const ne=M[3],de=new yC(ne,ne[6],ne[3]);de.detach(de.indexOf(b))}}const x=this._adjustIndex(y),R=this._lContainer;!function Ix(_,b,y,M){const v=10+M,x=y.length;M>0&&(y[v-1][4]=b),M0)M.push(R[k/2]);else{const z=x[k+1],$=b[-I];for(let ne=10;ne<$.length;ne++){const de=$[ne];de[17]===de[3]&&fd(de[1],de,z,M)}if(null!==$[9]){const ne=$[9];for(let de=0;de{class _{constructor(y){this.appInits=y,this.resolve=Yu,this.reject=Yu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((M,v)=>{this.resolve=M,this.reject=v})}runInitializers(){if(this.initialized)return;const y=[],M=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let v=0;v{x.subscribe({complete:k,error:I})});y.push(R)}}Promise.all(y).then(()=>{M()}).catch(v=>{this.reject(v)}),0===y.length&&M(),this.initialized=!0}}return _.\u0275fac=function(y){return new(y||_)(Jn(qo,8))},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const Lb=new Sn("AppId",{providedIn:"root",factory:function WC(){return`${$p()}${$p()}${$p()}`}});function $p(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Hb=new Sn("Platform Initializer"),GC=new Sn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Rb=new Sn("appBootstrapListener"),$C=new Sn("AnimationModuleType");let Pb=(()=>{class _{log(y){console.log(y)}warn(y){console.warn(y)}}return _.\u0275fac=function(y){return new(y||_)},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();const Zp=new Sn("LocaleId",{providedIn:"root",factory:()=>wh(Zp,ye.Optional|ye.SkipSelf)||function ZC(){return typeof $localize<"u"&&$localize.locale||Fl}()}),zn=new Sn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class QC{constructor(b,y){this.ngModuleFactory=b,this.componentFactories=y}}let Jp=(()=>{class _{compileModuleSync(y){return new Sm(y)}compileModuleAsync(y){return Promise.resolve(this.compileModuleSync(y))}compileModuleAndAllComponentsSync(y){const M=this.compileModuleSync(y),x=Lo(Ze(y).declarations).reduce((R,k)=>{const I=pn(k);return I&&R.push(new Xc(I)),R},[]);return new QC(M,x)}compileModuleAndAllComponentsAsync(y){return Promise.resolve(this.compileModuleAndAllComponentsSync(y))}clearCache(){}clearCacheFor(y){}getModuleId(y){}}return _.\u0275fac=function(y){return new(y||_)},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const KC=(()=>Promise.resolve(0))();function Km(_){typeof Zone>"u"?KC.then(()=>{_&&_.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",_)}class wr{constructor({enableLongStackTrace:b=!1,shouldCoalesceEventChangeDetection:y=!1,shouldCoalesceRunChangeDetection:M=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ss(!1),this.onMicrotaskEmpty=new ss(!1),this.onStable=new ss(!1),this.onError=new ss(!1),typeof Zone>"u")throw new re(908,!1);Zone.assertZonePatched();const v=this;if(v._nesting=0,v._outer=v._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const x=Zone.AsyncStackTaggingZoneSpec;v._inner=v._inner.fork(new x("Angular"))}Zone.TaskTrackingZoneSpec&&(v._inner=v._inner.fork(new Zone.TaskTrackingZoneSpec)),b&&Zone.longStackTraceZoneSpec&&(v._inner=v._inner.fork(Zone.longStackTraceZoneSpec)),v.shouldCoalesceEventChangeDetection=!M&&y,v.shouldCoalesceRunChangeDetection=M,v.lastRequestAnimationFrameId=-1,v.nativeRequestAnimationFrame=function Ob(){let _=fe.requestAnimationFrame,b=fe.cancelAnimationFrame;if(typeof Zone<"u"&&_&&b){const y=_[Zone.__symbol__("OriginalDelegate")];y&&(_=y);const M=b[Zone.__symbol__("OriginalDelegate")];M&&(b=M)}return{nativeRequestAnimationFrame:_,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function tv(_){const b=()=>{!function yd(_){_.isCheckStableRunning||-1!==_.lastRequestAnimationFrameId||(_.lastRequestAnimationFrameId=_.nativeRequestAnimationFrame.call(fe,()=>{_.fakeTopEventTask||(_.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{_.lastRequestAnimationFrameId=-1,Wl(_),_.isCheckStableRunning=!0,eg(_),_.isCheckStableRunning=!1},void 0,()=>{},()=>{})),_.fakeTopEventTask.invoke()}),Wl(_))}(_)};_._inner=_._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(y,M,v,x,R,k)=>{try{return Ib(_),y.invokeTask(v,x,R,k)}finally{(_.shouldCoalesceEventChangeDetection&&"eventTask"===x.type||_.shouldCoalesceRunChangeDetection)&&b(),Bb(_)}},onInvoke:(y,M,v,x,R,k,I)=>{try{return Ib(_),y.invoke(v,x,R,k,I)}finally{_.shouldCoalesceRunChangeDetection&&b(),Bb(_)}},onHasTask:(y,M,v,x)=>{y.hasTask(v,x),M===v&&("microTask"==x.change?(_._hasPendingMicrotasks=x.microTask,Wl(_),eg(_)):"macroTask"==x.change&&(_.hasPendingMacrotasks=x.macroTask))},onHandleError:(y,M,v,x)=>(y.handleError(v,x),_.runOutsideAngular(()=>_.onError.emit(x)),!1)})}(v)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!wr.isInAngularZone())throw new re(909,!1)}static assertNotInAngularZone(){if(wr.isInAngularZone())throw new re(909,!1)}run(b,y,M){return this._inner.run(b,y,M)}runTask(b,y,M,v){const x=this._inner,R=x.scheduleEventTask("NgZoneEvent: "+v,b,ev,Yu,Yu);try{return x.runTask(R,y,M)}finally{x.cancelTask(R)}}runGuarded(b,y,M){return this._inner.runGuarded(b,y,M)}runOutsideAngular(b){return this._outer.run(b)}}const ev={};function eg(_){if(0==_._nesting&&!_.hasPendingMicrotasks&&!_.isStable)try{_._nesting++,_.onMicrotaskEmpty.emit(null)}finally{if(_._nesting--,!_.hasPendingMicrotasks)try{_.runOutsideAngular(()=>_.onStable.emit(null))}finally{_.isStable=!0}}}function Wl(_){_.hasPendingMicrotasks=!!(_._hasPendingMicrotasks||(_.shouldCoalesceEventChangeDetection||_.shouldCoalesceRunChangeDetection)&&-1!==_.lastRequestAnimationFrameId)}function Ib(_){_._nesting++,_.isStable&&(_.isStable=!1,_.onUnstable.emit(null))}function Bb(_){_._nesting--,eg(_)}class Ln{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ss,this.onMicrotaskEmpty=new ss,this.onStable=new ss,this.onError=new ss}run(b,y,M){return b.apply(y,M)}runGuarded(b,y,M){return b.apply(y,M)}runOutsideAngular(b){return b()}runTask(b,y,M,v){return b.apply(y,M)}}const Nb=new Sn(""),ni=new Sn("");let ng,nv=(()=>{class _{constructor(y,M,v){this._ngZone=y,this.registry=M,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,ng||(function ZS(_){ng=_}(v),v.addToWindow(M)),this._watchAngularEvents(),y.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{wr.assertNotInAngularZone(),Km(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Km(()=>{for(;0!==this._callbacks.length;){let y=this._callbacks.pop();clearTimeout(y.timeoutId),y.doneCb(this._didWork)}this._didWork=!1});else{let y=this.getPendingTasks();this._callbacks=this._callbacks.filter(M=>!M.updateCb||!M.updateCb(y)||(clearTimeout(M.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(y=>({source:y.source,creationLocation:y.creationLocation,data:y.data})):[]}addCallback(y,M,v){let x=-1;M&&M>0&&(x=setTimeout(()=>{this._callbacks=this._callbacks.filter(R=>R.timeoutId!==x),y(this._didWork,this.getPendingTasks())},M)),this._callbacks.push({doneCb:y,timeoutId:x,updateCb:v})}whenStable(y,M,v){if(v&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(y,M,v),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(y){this.registry.registerApplication(y,this)}unregisterApplication(y){this.registry.unregisterApplication(y)}findProviders(y,M,v){return[]}}return _.\u0275fac=function(y){return new(y||_)(Jn(wr),Jn(tg),Jn(ni))},_.\u0275prov=dn({token:_,factory:_.\u0275fac}),_})(),tg=(()=>{class _{constructor(){this._applications=new Map}registerApplication(y,M){this._applications.set(y,M)}unregisterApplication(y){this._applications.delete(y)}unregisterAllApplications(){this._applications.clear()}getTestability(y){return this._applications.get(y)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(y,M=!0){var v,x;return null!==(v=null===(x=ng)||void 0===x?void 0:x.findTestabilityInTree(this,y,M))&&void 0!==v?v:null}}return _.\u0275fac=function(y){return new(y||_)},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})(),Wo=null;const Vb=new Sn("AllowMultipleToken"),ig=new Sn("PlatformDestroyListeners");class ii{constructor(b,y){this.name=b,this.token=y}}function Gl(_,b,y=[]){const M=`Platform: ${b}`,v=new Sn(M);return(x=[])=>{let R=jb();if(!R||R.injector.get(Vb,!1)){const k=[...y,...x,{provide:v,useValue:!0}];_?_(k):function Un(_){if(Wo&&!Wo.get(Vb,!1))throw new re(400,!1);Wo=_;const b=_.get(sv);(function Wu(_){const b=_.get(Hb,null);b&&b.forEach(y=>y())})(_)}(function av(_=[],b){return Qa.create({name:b,providers:[{provide:Zf,useValue:"platform"},{provide:ig,useValue:new Set([()=>Wo=null])},..._]})}(k,M))}return function QS(_){const b=jb();if(!b)throw new re(401,!1);return b}()}}function jb(){var _,b;return null!==(_=null===(b=Wo)||void 0===b?void 0:b.get(sv))&&void 0!==_?_:null}let sv=(()=>{class _{constructor(y){this._injector=y,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(y,M){const v=function XS(_,b){let y;return y="noop"===_?new Ln:("zone.js"===_?void 0:_)||new wr(b),y}(M?.ngZone,function ov(_){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!_||!_.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!_||!_.ngZoneRunCoalescing)||!1}}(M)),x=[{provide:wr,useValue:v}];return v.run(()=>{const R=Qa.create({providers:x,parent:this.injector,name:y.moduleType.name}),k=y.create(R),I=k.injector.get(Ra,null);if(!I)throw new re(402,!1);return v.runOutsideAngular(()=>{const z=v.onError.subscribe({next:$=>{I.handleError($)}});k.onDestroy(()=>{ag(this._modules,k),z.unsubscribe()})}),function lv(_,b,y){try{const M=y();return q0(M)?M.catch(v=>{throw b.runOutsideAngular(()=>_.handleError(v)),v}):M}catch(M){throw b.runOutsideAngular(()=>_.handleError(M)),M}}(I,v,()=>{const z=k.injector.get(Yo);return z.runInitializers(),z.donePromise.then(()=>(function VM(_){cn(_,"Expected localeId to be defined"),"string"==typeof _&&(NM=_.toLowerCase().replace(/_/g,"-"))}(k.injector.get(Zp,Fl)||Fl),this._moduleDoBootstrap(k),k))})})}bootstrapModule(y,M=[]){const v=cv({},M);return function iv(_,b,y){const M=new Sm(y);return Promise.resolve(M)}(0,0,y).then(x=>this.bootstrapModuleFactory(x,v))}_moduleDoBootstrap(y){const M=y.injector.get(rg);if(y._bootstrapComponents.length>0)y._bootstrapComponents.forEach(v=>M.bootstrap(v));else{if(!y.instance.ngDoBootstrap)throw new re(403,!1);y.instance.ngDoBootstrap(M)}this._modules.push(y)}onDestroy(y){this._destroyListeners.push(y)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new re(404,!1);this._modules.slice().forEach(M=>M.destroy()),this._destroyListeners.forEach(M=>M());const y=this._injector.get(ig,null);y&&(y.forEach(M=>M()),y.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return _.\u0275fac=function(y){return new(y||_)(Jn(Qa))},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();function cv(_,b){return Array.isArray(b)?b.reduce(cv,_):{..._,...b}}let rg=(()=>{class _{constructor(y,M,v){this._zone=y,this._injector=M,this._exceptionHandler=v,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const x=new H.y(k=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{k.next(this._stable),k.complete()})}),R=new H.y(k=>{let I;this._zone.runOutsideAngular(()=>{I=this._zone.onStable.subscribe(()=>{wr.assertNotInAngularZone(),Km(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,k.next(!0))})})});const z=this._zone.onUnstable.subscribe(()=>{wr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{k.next(!1)}))});return()=>{I.unsubscribe(),z.unsubscribe()}});this.isStable=(0,D.T)(x,R.pipe((0,L.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(y,M){const v=y instanceof Ph;if(!this._injector.get(Yo).done)throw!v&&Ks(y),new re(405,false);let R;R=v?y:this._injector.get(Bc).resolveComponentFactory(y),this.componentTypes.push(R.componentType);const k=function Xn(_){return _.isBoundToModule}(R)?void 0:this._injector.get(sr),z=R.create(Qa.NULL,[],M||R.selector,k),$=z.location.nativeElement,ne=z.injector.get(Nb,null);return ne?.registerApplication($),z.onDestroy(()=>{this.detachView(z.hostView),ag(this.components,z),ne?.unregisterApplication($)}),this._loadComponent(z),z}tick(){if(this._runningTick)throw new re(101,!1);try{this._runningTick=!0;for(let y of this._views)y.detectChanges()}catch(y){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(y))}finally{this._runningTick=!1}}attachView(y){const M=y;this._views.push(M),M.attachToAppRef(this)}detachView(y){const M=y;ag(this._views,M),M.detachFromAppRef()}_loadComponent(y){this.attachView(y.hostView),this.tick(),this.components.push(y),this._injector.get(Rb,[]).concat(this._bootstrapListeners).forEach(v=>v(y))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(y=>y()),this._views.slice().forEach(y=>y.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(y){return this._destroyListeners.push(y),()=>ag(this._destroyListeners,y)}destroy(){if(this._destroyed)throw new re(406,!1);const y=this._injector;y.destroy&&!y.destroyed&&y.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return _.\u0275fac=function(y){return new(y||_)(Jn(wr),Jn(xl),Jn(Ra))},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function ag(_,b){const y=_.indexOf(b);y>-1&&_.splice(y,1)}let zb=!0;function KS(){zb=!1}let tE=(()=>{class _{}return _.__NG_ELEMENT_ID__=uv,_})();function uv(_){return function hv(_,b,y){if(na(_)&&!y){const M=Bi(_.index,b);return new kl(M,M)}return 47&_.type?new kl(b[16],b):null}(Gn(),Se(),16==(16&_))}class _v{constructor(){}supports(b){return vu(b)}create(b){return new Wb(b)}}const aE=(_,b)=>b;class Wb{constructor(b){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=b||aE}forEachItem(b){let y;for(y=this._itHead;null!==y;y=y._next)b(y)}forEachOperation(b){let y=this._itHead,M=this._removalsHead,v=0,x=null;for(;y||M;){const R=!M||y&&y.currentIndex{R=this._trackByFn(v,k),null!==y&&Object.is(y.trackById,R)?(M&&(y=this._verifyReinsertion(y,k,R,v)),Object.is(y.item,k)||this._addIdentityChange(y,k)):(y=this._mismatch(y,k,R,v),M=!0),y=y._next,v++}),this.length=v;return this._truncate(y),this.collection=b,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let b;for(b=this._previousItHead=this._itHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._additionsHead;null!==b;b=b._nextAdded)b.previousIndex=b.currentIndex;for(this._additionsHead=this._additionsTail=null,b=this._movesHead;null!==b;b=b._nextMoved)b.previousIndex=b.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(b,y,M,v){let x;return null===b?x=this._itTail:(x=b._prev,this._remove(b)),null!==(b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(M,null))?(Object.is(b.item,y)||this._addIdentityChange(b,y),this._reinsertAfter(b,x,v)):null!==(b=null===this._linkedRecords?null:this._linkedRecords.get(M,v))?(Object.is(b.item,y)||this._addIdentityChange(b,y),this._moveAfter(b,x,v)):b=this._addAfter(new sE(y,M),x,v),b}_verifyReinsertion(b,y,M,v){let x=null===this._unlinkedRecords?null:this._unlinkedRecords.get(M,null);return null!==x?b=this._reinsertAfter(x,b._prev,v):b.currentIndex!=v&&(b.currentIndex=v,this._addToMoves(b,v)),b}_truncate(b){for(;null!==b;){const y=b._next;this._addToRemovals(this._unlink(b)),b=y}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(b,y,M){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(b);const v=b._prevRemoved,x=b._nextRemoved;return null===v?this._removalsHead=x:v._nextRemoved=x,null===x?this._removalsTail=v:x._prevRemoved=v,this._insertAfter(b,y,M),this._addToMoves(b,M),b}_moveAfter(b,y,M){return this._unlink(b),this._insertAfter(b,y,M),this._addToMoves(b,M),b}_addAfter(b,y,M){return this._insertAfter(b,y,M),this._additionsTail=null===this._additionsTail?this._additionsHead=b:this._additionsTail._nextAdded=b,b}_insertAfter(b,y,M){const v=null===y?this._itHead:y._next;return b._next=v,b._prev=y,null===v?this._itTail=b:v._prev=b,null===y?this._itHead=b:y._next=b,null===this._linkedRecords&&(this._linkedRecords=new Av),this._linkedRecords.put(b),b.currentIndex=M,b}_remove(b){return this._addToRemovals(this._unlink(b))}_unlink(b){null!==this._linkedRecords&&this._linkedRecords.remove(b);const y=b._prev,M=b._next;return null===y?this._itHead=M:y._next=M,null===M?this._itTail=y:M._prev=y,b}_addToMoves(b,y){return b.previousIndex===y||(this._movesTail=null===this._movesTail?this._movesHead=b:this._movesTail._nextMoved=b),b}_addToRemovals(b){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Av),this._unlinkedRecords.put(b),b.currentIndex=null,b._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=b,b._prevRemoved=null):(b._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=b),b}_addIdentityChange(b,y){return b.item=y,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=b:this._identityChangesTail._nextIdentityChange=b,b}}class sE{constructor(b,y){this.item=b,this.trackById=y,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class bv{constructor(){this._head=null,this._tail=null}add(b){null===this._head?(this._head=this._tail=b,b._nextDup=null,b._prevDup=null):(this._tail._nextDup=b,b._prevDup=this._tail,b._nextDup=null,this._tail=b)}get(b,y){let M;for(M=this._head;null!==M;M=M._nextDup)if((null===y||y<=M.currentIndex)&&Object.is(M.trackById,b))return M;return null}remove(b){const y=b._prevDup,M=b._nextDup;return null===y?this._head=M:y._nextDup=M,null===M?this._tail=y:M._prevDup=y,null===this._head}}class Av{constructor(){this.map=new Map}put(b){const y=b.trackById;let M=this.map.get(y);M||(M=new bv,this.map.set(y,M)),M.add(b)}get(b,y){const v=this.map.get(b);return v?v.get(b,y):null}remove(b){const y=b.trackById;return this.map.get(y).remove(b)&&this.map.delete(y),b}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function yv(_,b,y){const M=_.previousIndex;if(null===M)return M;let v=0;return y&&M{if(y&&y.key===v)this._maybeAddToChanges(y,M),this._appendAfter=y,y=y._next;else{const x=this._getOrCreateRecordForKey(v,M);y=this._insertBeforeOrAppend(y,x)}}),y){y._prev&&(y._prev._next=null),this._removalsHead=y;for(let M=y;null!==M;M=M._nextRemoved)M===this._mapHead&&(this._mapHead=null),this._records.delete(M.key),M._nextRemoved=M._next,M.previousValue=M.currentValue,M.currentValue=null,M._prev=null,M._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(b,y){if(b){const M=b._prev;return y._next=b,y._prev=M,b._prev=y,M&&(M._next=y),b===this._mapHead&&(this._mapHead=y),this._appendAfter=b,b}return this._appendAfter?(this._appendAfter._next=y,y._prev=this._appendAfter):this._mapHead=y,this._appendAfter=y,null}_getOrCreateRecordForKey(b,y){if(this._records.has(b)){const v=this._records.get(b);this._maybeAddToChanges(v,y);const x=v._prev,R=v._next;return x&&(x._next=R),R&&(R._prev=x),v._next=null,v._prev=null,v}const M=new wv(b);return this._records.set(b,M),M.currentValue=y,this._addToAdditions(M),M}_reset(){if(this.isDirty){let b;for(this._previousMapHead=this._mapHead,b=this._previousMapHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._changesHead;null!==b;b=b._nextChanged)b.previousValue=b.currentValue;for(b=this._additionsHead;null!=b;b=b._nextAdded)b.previousValue=b.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(b,y){Object.is(y,b.currentValue)||(b.previousValue=b.currentValue,b.currentValue=y,this._addToChanges(b))}_addToAdditions(b){null===this._additionsHead?this._additionsHead=this._additionsTail=b:(this._additionsTail._nextAdded=b,this._additionsTail=b)}_addToChanges(b){null===this._changesHead?this._changesHead=this._changesTail=b:(this._changesTail._nextChanged=b,this._changesTail=b)}_forEach(b,y){b instanceof Map?b.forEach(y):Object.keys(b).forEach(M=>y(b[M],M))}}class wv{constructor(b){this.key=b,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Zb(){return new Jb([new _v])}let Jb=(()=>{class _{constructor(y){this.factories=y}static create(y,M){if(null!=M){const v=M.factories.slice();y=y.concat(v)}return new _(y)}static extend(y){return{provide:_,useFactory:M=>_.create(y,M||Zb()),deps:[[_,new bl,new To]]}}find(y){const M=this.factories.find(v=>v.supports(y));if(null!=M)return M;throw new re(901,!1)}}return _.\u0275prov=dn({token:_,providedIn:"root",factory:Zb}),_})();function Mv(){return new Qb([new Gb])}let Qb=(()=>{class _{constructor(y){this.factories=y}static create(y,M){if(M){const v=M.factories.slice();y=y.concat(v)}return new _(y)}static extend(y){return{provide:_,useFactory:M=>_.create(y,M||Mv()),deps:[[_,new bl,new To]]}}find(y){const M=this.factories.find(v=>v.supports(y));if(M)return M;throw new re(901,!1)}}return _.\u0275prov=dn({token:_,providedIn:"root",factory:Mv}),_})();const Cv=Gl(null,"core",[]);let cE=(()=>{class _{constructor(y){}}return _.\u0275fac=function(y){return new(y||_)(Jn(rg))},_.\u0275mod=jr({type:_}),_.\u0275inj=Tn({}),_})();function dE(_){return"boolean"==typeof _?_:null!=_&&"false"!==_}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Y extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Y.\u0275fac=function(){let G;return function(T){return(G||(G=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Y)))(T||Y)}}(),Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class Y{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,T){this.data.set(E,T)}}return Y.\u0275fac=function(E){return new(E||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class ReceivedTokens{}class OAuthEvent{constructor(G){this.type=G}}class OAuthSuccessEvent extends OAuthEvent{constructor(G,E=null){super(G),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(G,E=null){super(G),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(G,E,T=null){super(G),this.reason=E,this.params=T}}function b64DecodeUnicode(Y){const G=Y.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(G).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Y){return btoa(Y).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(G){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},G&&Object.assign(this,G)}}class WebHttpUrlEncodingCodec{encodeKey(G){return encodeURIComponent(G)}encodeValue(G){return encodeURIComponent(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(G){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=E.inferHashAlgorithm(G.idTokenHeader),n=yield E.calcHash(G.accessToken,T),D=base64UrlEncode(n.substr(0,n.length/2)),L=G.idTokenClaims.at_hash.replace(/=/g,"");return D!==L&&(console.error("exptected at_hash: "+D),console.error("actual at_hash: "+L)),D===L})()}inferHashAlgorithm(G){let E=G.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class Y{getHashFragmentParams(E){let T=E||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const n=T.indexOf("?");return T=T.substr(n>-1?n+1:1),this.parseQueryString(T)}parseQueryString(E){const T={};let n,H,D,L,O,B,U;if(null===E)return T;n=E.split("&");for(let W=0;W>6,H[L++]=128|63&O):O<55296||O>=57344?(H[L++]=224|O>>12,H[L++]=128|O>>6&63,H[L++]=128|63&O):(O=65536+((1023&O)<<10|1023&Y.charCodeAt(++T)),H[L++]=240|O>>18,H[L++]=128|O>>12&63,H[L++]=128|O>>6&63,H[L++]=128|63&O);Y=H}else{if("object"!==n)throw new Error(ERROR);if(null===Y)throw new Error(ERROR);if(ARRAY_BUFFER&&Y.constructor===ArrayBuffer)Y=new Uint8Array(Y);else if(!(Array.isArray(Y)||ARRAY_BUFFER&&ArrayBuffer.isView(Y)))throw new Error(ERROR)}Y.length>64&&(Y=new Sha256(G,!0).update(Y).array());var B=[],U=[];for(T=0;T<64;++T){var W=Y[T]||0;B[T]=92^W,U[T]=54^W}Sha256.call(this,G,E),this.update(U),this.oKeyPad=B,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(Y){if(!this.finalized){var G,E=typeof Y;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===Y)throw new Error(ERROR);if(ARRAY_BUFFER&&Y.constructor===ArrayBuffer)Y=new Uint8Array(Y);else if(!(Array.isArray(Y)||ARRAY_BUFFER&&ArrayBuffer.isView(Y)))throw new Error(ERROR);G=!0}for(var T,H,n=0,D=Y.length,L=this.blocks;n>2]|=Y[n]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(L[H>>2]|=(224|T>>12)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<>2]|=(240|T>>18)<>2]|=(128|T>>12&63)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<=64?(this.block=L[16],this.start=H-64,this.hash(),this.hashed=!0):this.start=H}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Y=this.blocks,G=this.lastByteIndex;Y[16]=this.block,Y[G>>2]|=EXTRA[3&G],this.block=Y[16],G>=56&&(this.hashed||this.hash(),Y[0]=this.block,Y[16]=Y[1]=Y[2]=Y[3]=Y[4]=Y[5]=Y[6]=Y[7]=Y[8]=Y[9]=Y[10]=Y[11]=Y[12]=Y[13]=Y[14]=Y[15]=0),Y[14]=this.hBytes<<3|this.bytes>>>29,Y[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var B,te,oe,re,be,we,Y=this.h0,G=this.h1,E=this.h2,T=this.h3,n=this.h4,H=this.h5,D=this.h6,L=this.h7,O=this.blocks;for(B=16;B<64;++B)O[B]=O[B-16]+(((te=O[B-15])>>>7|te<<25)^(te>>>18|te<<14)^te>>>3)+O[B-7]+(((te=O[B-2])>>>17|te<<15)^(te>>>19|te<<13)^te>>>10)<<0;for(we=G&E,B=0;B<64;B+=4)this.first?(this.is224?(oe=300032,L=(te=O[0]-1413257819)-150054599<<0,T=te+24177077<<0):(oe=704751109,L=(te=O[0]-210244248)-1521486534<<0,T=te+143694565<<0),this.first=!1):(L=T+(te=L+((n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7))+(n&H^~n&D)+K[B]+O[B])<<0,T=te+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((oe=Y&G)^Y&E^we))<<0),D=E+(te=D+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&n^~L&H)+K[B+1]+O[B+1])<<0,E=te+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((re=T&Y)^T&G^oe))<<0,H=G+(te=H+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&L^~D&n)+K[B+2]+O[B+2])<<0,G=te+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((be=E&T)^E&Y^re))<<0,n=Y+(te=n+((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&D^~H&L)+K[B+3]+O[B+3])<<0,Y=te+(((G>>>2|G<<30)^(G>>>13|G<<19)^(G>>>22|G<<10))+((we=G&E)^G&T^be))<<0;this.h0=this.h0+Y<<0,this.h1=this.h1+G<<0,this.h2=this.h2+E<<0,this.h3=this.h3+T<<0,this.h4=this.h4+n<<0,this.h5=this.h5+H<<0,this.h6=this.h6+D<<0,this.h7=this.h7+L<<0},Sha256.prototype.hex=function(){this.finalize();var Y=this.h0,G=this.h1,E=this.h2,T=this.h3,n=this.h4,H=this.h5,D=this.h6,L=this.h7,O=HEX_CHARS[Y>>28&15]+HEX_CHARS[Y>>24&15]+HEX_CHARS[Y>>20&15]+HEX_CHARS[Y>>16&15]+HEX_CHARS[Y>>12&15]+HEX_CHARS[Y>>8&15]+HEX_CHARS[Y>>4&15]+HEX_CHARS[15&Y]+HEX_CHARS[G>>28&15]+HEX_CHARS[G>>24&15]+HEX_CHARS[G>>20&15]+HEX_CHARS[G>>16&15]+HEX_CHARS[G>>12&15]+HEX_CHARS[G>>8&15]+HEX_CHARS[G>>4&15]+HEX_CHARS[15&G]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[H>>28&15]+HEX_CHARS[H>>24&15]+HEX_CHARS[H>>20&15]+HEX_CHARS[H>>16&15]+HEX_CHARS[H>>12&15]+HEX_CHARS[H>>8&15]+HEX_CHARS[H>>4&15]+HEX_CHARS[15&H]+HEX_CHARS[D>>28&15]+HEX_CHARS[D>>24&15]+HEX_CHARS[D>>20&15]+HEX_CHARS[D>>16&15]+HEX_CHARS[D>>12&15]+HEX_CHARS[D>>8&15]+HEX_CHARS[D>>4&15]+HEX_CHARS[15&D];return this.is224||(O+=HEX_CHARS[L>>28&15]+HEX_CHARS[L>>24&15]+HEX_CHARS[L>>20&15]+HEX_CHARS[L>>16&15]+HEX_CHARS[L>>12&15]+HEX_CHARS[L>>8&15]+HEX_CHARS[L>>4&15]+HEX_CHARS[15&L]),O},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Y=this.h0,G=this.h1,E=this.h2,T=this.h3,n=this.h4,H=this.h5,D=this.h6,L=this.h7,O=[Y>>24&255,Y>>16&255,Y>>8&255,255&Y,G>>24&255,G>>16&255,G>>8&255,255&G,E>>24&255,E>>16&255,E>>8&255,255&E,T>>24&255,T>>16&255,T>>8&255,255&T,n>>24&255,n>>16&255,n>>8&255,255&n,H>>24&255,H>>16&255,H>>8&255,255&H,D>>24&255,D>>16&255,D>>8&255,255&D];return this.is224||O.push(L>>24&255,L>>16&255,L>>8&255,255&L),O},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Y=new ArrayBuffer(this.is224?28:32),G=new DataView(Y);return G.setUint32(0,this.h0),G.setUint32(4,this.h1),G.setUint32(8,this.h2),G.setUint32(12,this.h3),G.setUint32(16,this.h4),G.setUint32(20,this.h5),G.setUint32(24,this.h6),this.is224||G.setUint32(28,this.h7),Y},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Y=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Y),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(Y){if("string"!=typeof Y)throw new TypeError("expected string");var G,E=Y,T=new Uint8Array(E.length);for(G=0;G{class Y{calcHash(E,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})()}toHashString2(E){let T="";for(let n of E)T+=String.fromCharCode(n);return T}toHashString(E){const T=new Uint8Array(E);let n="";for(let H of T)n+=String.fromCharCode(H);return n}}return Y.\u0275fac=function(E){return new(E||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),OAuthService=(()=>{class Y extends AuthConfig{constructor(E,T,n,H,D,L,O,B,U,W){super(),this.ngZone=E,this.http=T,this.config=D,this.urlHelper=L,this.logger=O,this.crypto=B,this.dateTimeService=W,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=U,D||(D={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),H&&(this.tokenValidationHandler=H),D&&this.configure(D);try{n?this.setStorage(n):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(ae){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",ae)}if(this.checkLocalStorageAccessable()){var ee,te;const ae=null===(ee=window)||void 0===ee||null===(te=ee.navigator)||void 0===te?void 0:te.userAgent;(ae?.includes("MSIE ")||ae?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const E="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(E,E),localStorage.removeItem(E),0))}catch{return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},T,n=!0){let H=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(D=>{"token_received"===D.type?H=!0:"logout"===D.type&&(H=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>"token_expires"===D.type&&(null==T||"any"===T||D.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(D=>{H&&this.refreshInternal(E,n).catch(L=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const T=[],n=this.validateUrlForHttps(E),H=this.validateUrlAgainstIssuer(E);return n||T.push("https for all urls required. Also for urls received by discovery."),H||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(E){if(!E)return!0;const T=E.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,T){if(!E)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${T}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),n=this.calcTimeout(T,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(n)).subscribe(H=>{this.ngZone.run(()=>{this.eventsSubject.next(H)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),n=this.calcTimeout(T,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(n)).subscribe(H=>{this.ngZone.run(()=>{this.eventsSubject.next(H)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,T){const n=this.dateTimeService.now();return Math.max(0,(T-E)*this.timeoutFactor-(n-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((T,n)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(H=>{if(!this.validateDiscoveryDocument(H))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void n("discovery_document_validation_error");this.loginUrl=H.authorization_endpoint,this.logoutUrl=H.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=H.grant_types_supported,this.issuer=H.issuer,this.tokenEndpoint=H.token_endpoint,this.userinfoEndpoint=H.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=H.jwks_uri,this.sessionCheckIFrameUrl=H.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(H),this.revocationEndpoint=H.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(D=>{const O=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:H,jwks:D});this.eventsSubject.next(O),T(O)}).catch(D=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",D)),n(D)})},H=>{this.logger.error("error loading discovery document",H),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",H)),n(H)}):n("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(n=>{this.jwks=n,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(n)},n=>{this.logger.error("error loading jwks",n),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",n)),T(n)}):E(null)})}validateDiscoveryDocument(E){let T;return this.skipIssuerCheck||E.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(E.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(E.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,T,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,T,n).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,T)=>{const n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:n,observe:"response",responseType:"text"}).subscribe(H=>{if(this.debug("userinfo received",JSON.stringify(H)),H.headers.get("content-type").startsWith("application/json")){let D=JSON.parse(H.body);const L=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!L.sub||D.sub!==L.sub))return void T("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");D=Object.assign({},L,D),this._storage.setItem("id_token_claims_obj",JSON.stringify(D)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:D})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(H.body))},H=>{this.logger.error("error loading user info",H),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",H)),T(H)})})}fetchTokenUsingPasswordFlow(E,T,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:T},n)}fetchTokenUsingGrant(E,T,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let H=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+D)}if(this.useHttpBasicAuth||(H=H.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(H=H.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const D of Object.getOwnPropertyNames(this.customQueryParams))H=H.set(D,this.customQueryParams[D]);for(const D of Object.keys(T))H=H.set(D,T[D]);return n=n.set("Content-Type","application/x-www-form-urlencoded"),new Promise((D,L)=>{this.http.post(this.tokenEndpoint,H,{headers:n}).subscribe(O=>{this.debug("tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.oidc&&O.id_token&&this.processIdToken(O.id_token,O.access_token).then(B=>{this.storeIdToken(B),D(O)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),D(O)},O=>{this.logger.error("Error performing ${grantType} flow",O),this.eventsSubject.next(new OAuthErrorEvent("token_error",O)),L(O)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,T)=>{let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),H=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);H=H.set("Authorization","Basic "+D)}if(this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const D of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(D,this.customQueryParams[D]);this.http.post(this.tokenEndpoint,n,{headers:H}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(D=>D.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(D.id_token,D.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(L=>this.storeIdToken(L)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(L=>D)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(D))).subscribe(D=>{this.debug("refresh tokenResponse",D),this.storeAccessTokenResponse(D.access_token,D.refresh_token,D.expires_in||this.fallbackAccessTokenExpirationTimeInSec,D.scope,this.extractRecognizedCustomParameters(D)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(D)},D=>{this.logger.error("Error refreshing token",D),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",D)),T(D)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const T=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(n=>this.debug("tryLogin during silent refresh failed",n))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},T=!0){const n=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const H=this.document.getElementById(this.silentRefreshIFrameName);H&&this.document.body.removeChild(H),this.silentRefreshSubject=n.sub;const D=this.document.createElement("iframe");D.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,E).then(W=>{D.setAttribute("src",W),this.silentRefreshShowIFrame||(D.style.display="none"),this.document.body.appendChild(D)});const O=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>W instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),B=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>"token_received"===W.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([O,B,U]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(W=>{if(W instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===W.type||(W=new OAuthErrorEvent("silent_refresh_error",W)),this.eventsSubject.next(W),W;return"token_received"===W.type&&(W=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(W)),W})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((n,H)=>{let O,L=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(L=E.windowRef,L.location.href=T):L=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const B=ae=>{this.tryLogin({customHashFragment:ae,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{W(),n(!0)},ue=>{W(),H(ue)})};L?O=window.setInterval(()=>{(!L||L.closed)&&(W(),H(new OAuthErrorEvent("popup_closed",{})))},500):H(new OAuthErrorEvent("popup_blocked",{}));const W=()=>{window.clearInterval(O),window.removeEventListener("storage",te),window.removeEventListener("message",ee),null!==L&&L.close(),L=null},ee=ae=>{const ue=this.processMessageEventMessage(ae);ue&&null!==ue?(window.removeEventListener("storage",te),B(ue)):console.log("false event firing")},te=ae=>{"auth_hash"===ae.key&&(window.removeEventListener("message",ee),B(ae.newValue))};window.addEventListener("message",ee),window.addEventListener("storage",te)}))}calculatePopupFeatures(E){const T=E.height||470,n=E.width||500,H=window.screenLeft+(window.outerWidth-n)/2;return`location=no,toolbar=no,width=${n},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${H}`}processMessageEventMessage(E){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const n=E.data;return n.startsWith(T)?"#"+n.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const T=E.origin.toLowerCase(),n=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),n.startsWith(T)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",n,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const T=this.document.createElement("iframe");T.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),T.setAttribute("src",this.sessionCheckIFrameUrl),T.style.display="none",this.document.body.appendChild(T),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(E="",T="",n="",H=!1,D={}){var L=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const O=L;let B;B=n||L.redirectUri;const U=yield L.createAndSaveNonce();if(E=E?U+L.config.nonceStateSeparator+encodeURIComponent(E):U,!L.requestAccessToken&&!L.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");L.responseType=L.config.responseType?L.config.responseType:L.oidc&&L.requestAccessToken?"id_token token":L.oidc&&!L.requestAccessToken?"id_token":"token";const W=O.loginUrl.indexOf("?")>-1?"&":"?";let ee=O.scope;L.oidc&&!ee.match(/(^|\s)openid($|\s)/)&&(ee="openid "+ee);let te=O.loginUrl+W+"response_type="+encodeURIComponent(O.responseType)+"&client_id="+encodeURIComponent(O.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(B)+"&scope="+encodeURIComponent(ee);if(L.responseType.includes("code")&&!L.disablePKCE){const[ae,ue]=yield L.createChallangeVerifierPairForPKCE();L.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ue):L._storage.setItem("PKCE_verifier",ue),te+="&code_challenge="+ae,te+="&code_challenge_method=S256"}T&&(te+="&login_hint="+encodeURIComponent(T)),O.resource&&(te+="&resource="+encodeURIComponent(O.resource)),O.oidc&&(te+="&nonce="+encodeURIComponent(U)),H&&(te+="&prompt=none");for(const ae of Object.keys(D))te+="&"+encodeURIComponent(ae)+"="+encodeURIComponent(D[ae]);if(L.customQueryParams)for(const ae of Object.getOwnPropertyNames(L.customQueryParams))te+="&"+ae+"="+encodeURIComponent(L.customQueryParams[ae]);return te})()}initImplicitFlowInternal(E="",T=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let n={},H=null;"string"==typeof T?H=T:"object"==typeof T&&(n=T),this.createLoginUrl(E,H,null,!1,n).then(this.config.openUri).catch(D=>{console.error("Error in initImplicitFlow",D),this.inImplicitFlow=!1})}initImplicitFlow(E="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(n=>"discovery_document_loaded"===n.type)).subscribe(n=>this.initImplicitFlowInternal(E,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const T=this;if(E.onTokenReceived){const n={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};E.onTokenReceived(n)}}storeAccessTokenResponse(E,T,n,H,D){if(this._storage.setItem("access_token",E),H&&!Array.isArray(H)?this._storage.setItem("granted_scopes",JSON.stringify(H.split(" "))):H&&Array.isArray(H)&&this._storage.setItem("granted_scopes",JSON.stringify(H)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),n){const L=1e3*n,B=this.dateTimeService.new().getTime()+L;this._storage.setItem("expires_at",""+B)}T&&this._storage.setItem("refresh_token",T),D&&D.forEach((L,O)=>{this._storage.setItem(O,L)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(T=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const n=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,H=T.getCodePartsFromUrl(n),D=H.code,L=H.state,O=H.session_state;if(!E.preventClearHashAfterLogin){const W=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,W)}let[B,U]=T.parseState(L);if(T.state=U,H.error){T.debug("error trying to login"),T.handleLoginError(E,H);const W=new OAuthErrorEvent("code_error",{},H);return T.eventsSubject.next(W),Promise.reject(W)}if(!E.disableNonceCheck){if(!B)return T.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!T.validateNonce(B)){const ee=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next(ee),Promise.reject(ee)}return T.storeSessionState(O),D&&(yield T.getTokenFromCode(D,E),T.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,T){let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let H;H=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),H?n=n.set("code_verifier",H):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(n,T)}fetchAndProcessToken(E,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const H=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+H)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((H,D)=>{if(this.customQueryParams)for(let L of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(L,this.customQueryParams[L]);this.http.post(this.tokenEndpoint,E,{headers:n}).subscribe(L=>{this.debug("refresh tokenResponse",L),this.storeAccessTokenResponse(L.access_token,L.refresh_token,L.expires_in||this.fallbackAccessTokenExpirationTimeInSec,L.scope,this.extractRecognizedCustomParameters(L)),this.oidc&&L.id_token?this.processIdToken(L.id_token,L.access_token,T.disableNonceCheck).then(O=>{this.storeIdToken(O),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),H(L)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",O)),console.error("Error validating tokens"),console.error(O),D(O)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),H(L))},L=>{console.error("Error getting token",L),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",L)),D(L)})})}tryLoginImplicitFlow(E=null){let T;T=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const n=T.state;let[H,D]=this.parseState(n);if(this.state=D,T.error){this.debug("error trying to login"),this.handleLoginError(E,T);const W=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(W),Promise.reject(W)}const L=T.access_token,O=T.id_token,B=T.session_state,U=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!L||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!n||this.oidc&&!O)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!B&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(H)){const ee=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(ee),Promise.reject(ee)}return this.requestAccessToken&&this.storeAccessTokenResponse(L,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,U),this.oidc?this.processIdToken(O,L,E.disableNonceCheck).then(W=>E.validationHandler?E.validationHandler({accessToken:L,idClaims:W.idTokenClaims,idToken:W.idToken,state:n}).then(ee=>W):W).then(W=>(this.storeIdToken(W),this.storeSessionState(B),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(W=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",W)),this.logger.error("Error validating tokens"),this.logger.error(W),Promise.reject(W))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let T=E,n="";if(E){const H=E.indexOf(this.config.nonceStateSeparator);H>-1&&(T=E.substr(0,H),n=E.substr(H+this.config.nonceStateSeparator.length))}return[T,n]}validateNonce(E){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===E||(console.error("Validating access_token failed, wrong state/nonce.",T,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,T){E.onLoginError&&E.onLoginError(T),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,T,n=!1){const H=E.split("."),L=b64DecodeUnicode(this.padBase64(H[0])),O=JSON.parse(L),U=b64DecodeUnicode(this.padBase64(H[1])),W=JSON.parse(U);let ee;if(ee=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(W.aud)){if(W.aud.every(be=>be!==this.clientId)){const be="Wrong audience: "+W.aud.join(",");return this.logger.warn(be),Promise.reject(be)}}else if(W.aud!==this.clientId){const be="Wrong audience: "+W.aud;return this.logger.warn(be),Promise.reject(be)}if(!W.sub){const be="No sub claim in id_token";return this.logger.warn(be),Promise.reject(be)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==W.sub){const be=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${W.sub}`;return this.logger.warn(be),Promise.reject(be)}if(!W.iat){const be="No iat claim in id_token";return this.logger.warn(be),Promise.reject(be)}if(!this.skipIssuerCheck&&W.iss!==this.issuer){const be="Wrong issuer: "+W.iss;return this.logger.warn(be),Promise.reject(be)}if(!n&&W.nonce!==ee){const be="Wrong nonce: "+W.nonce;return this.logger.warn(be),Promise.reject(be)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!W.at_hash){const be="An at_hash is needed!";return this.logger.warn(be),Promise.reject(be)}const te=this.dateTimeService.now(),ae=1e3*W.iat,ue=1e3*W.exp,oe=this.getClockSkewInMsec();if(ae-oe>=te||ue+oe<=te){const be="Token has expired";return console.error(be),console.error({now:te,issuedAtMSec:ae,expiresAtMSec:ue}),Promise.reject(be)}const re={accessToken:T,idToken:E,jwks:this.jwks,idTokenClaims:W,idTokenHeader:O,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(re).then(be=>({idToken:E,idTokenClaims:W,idTokenClaimsJson:U,idTokenHeader:O,idTokenHeaderJson:L,idTokenExpiresAt:ue})):this.checkAtHash(re).then(be=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!be){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}return this.checkSignature(re).then(we=>{const Xe={idToken:E,idTokenClaims:W,idTokenClaimsJson:U,idTokenHeader:O,idTokenHeaderJson:L,idTokenExpiresAt:ue};return this.disableAtHashCheck?Xe:this.checkAtHash(re).then(et=>{if(this.requestAccessToken&&!et){const ke="Wrong at_hash";return this.logger.warn(ke),Promise.reject(ke)}return Xe})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},T=""){let n=!1;"boolean"==typeof E&&(n=E,E={});const H=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(L=>this._storage.removeItem(L)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||n||!H&&!this.postLogoutRedirectUri)return;let D;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)D=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(H)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let L=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});H&&(L=L.set("id_token_hint",H));const O=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";O&&(L=L.set("post_logout_redirect_uri",O),T&&(L=L.set("state",T)));for(let B in E)L=L.set(B,E[B]);D=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+L.toString()}this.config.openUri(D)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(T){return E.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",T):E._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let n=45,H="";const D=typeof self>"u"?null:self.crypto||self.msCrypto;if(D){let L=new Uint8Array(n);D.getRandomValues(L),L.map||(L.map=Array.prototype.map),L=L.map(O=>T.charCodeAt(O%T.length)),H=String.fromCharCode.apply(null,L)}else for(;0"discovery_document_loaded"===n.type)).subscribe(n=>this.initCodeFlowInternal(E,T))}initCodeFlowInternal(E="",T={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let n={},H=null;"string"==typeof T?H=T:"object"==typeof T&&(n=T),this.createLoginUrl(E,H,null,!1,n).then(this.config.openUri).catch(D=>{console.error("Error in initAuthorizationCodeFlow"),console.error(D)})}createChallangeVerifierPairForPKCE(){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!E.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield E.createNonce();return[base64UrlEncode(yield E.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(E){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(n=>{E[n]&&T.set(n,JSON.stringify(E[n]))}),T}revokeTokenAndLogout(E={},T=!1){let n=this.revocationEndpoint,H=this.getAccessToken(),D=this.getRefreshToken();if(!H)return;let L=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),O=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const B=btoa(`${this.clientId}:${this.dummyClientSecret}`);O=O.set("Authorization","Basic "+B)}if(this.useHttpBasicAuth||(L=L.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(L=L.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const B of Object.getOwnPropertyNames(this.customQueryParams))L=L.set(B,this.customQueryParams[B]);return new Promise((B,U)=>{let W,ee;if(H){let te=L.set("token",H).set("token_type_hint","access_token");W=this.http.post(n,te,{headers:O})}else W=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(D){let te=L.set("token",D).set("token_type_hint","refresh_token");ee=this.http.post(n,te,{headers:O})}else ee=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(W=W.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(te=>0===te.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(te))),ee=ee.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(te=>0===te.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(te)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([W,ee]).subscribe(te=>{this.logOut(E),B(te),this.logger.info("Token successfully revoked")},te=>{this.logger.error("Error revoking token",te),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",te)),U(te)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Y.\u0275fac=function(E){return new(E||Y)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(G){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)}}let DefaultOAuthInterceptor=(()=>{class Y{constructor(E,T,n){this.oAuthService=E,this.errorHandler=T,this.moduleConfig=n}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>E.toLowerCase().startsWith(T.toLowerCase()))}intercept(E,T){const n=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(n)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>!!D)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>"token_received"===D.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(D=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(D=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(D=>{if(D){const O=E.headers.set("Authorization","Bearer "+D);E=E.clone({headers:O})}return T.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(L=>this.errorHandler.handleError(L)))})):T.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(D=>this.errorHandler.handleError(D))):T.handle(E)}}return Y.\u0275fac=function(E){return new(E||Y)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class NullValidationHandler{validateSignature(G){return Promise.resolve(null)}validateAtHash(G){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Y{static forRoot(E=null,T=NullValidationHandler){return{ngModule:Y,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:T},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Y.\u0275fac=function(E){return new(E||Y)},Y.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Y}),Y.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Y})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(Y,G,E)=>{"use strict";function T(H,D,L,O,B,U,W){try{var ee=H[U](W),te=ee.value}catch(ae){return void L(ae)}ee.done?D(te):Promise.resolve(te).then(O,B)}function n(H){return function(){var D=this,L=arguments;return new Promise(function(O,B){var U=H.apply(D,L);function W(te){T(U,O,B,W,ee,"next",te)}function ee(te){T(U,O,B,W,ee,"throw",te)}W(void 0)})}}E.d(G,{Z:()=>n})},1128:Y=>{"use strict";Y.exports=JSON.parse('{"version":"2021e","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|32e5","Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|20e4","Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT AST ADT -0330|3W.t 40 30 3u|0121213121212121|-2m4k1.v 1eAN1.v RB0 1Bz0 Op0 1rb0 11d0 1jJc0 IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5","America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2","America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|0121212121212121212121212121212121212121212121212121212121212121212121212132121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5","America/Guyana|LMT -04 -0345 -03|3Q.D 40 3J 30|01231|-2mf87.l 8Hc7.l 2r7bJ Ey0f|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010401054541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5","America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4","America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5","America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2","America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842","America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452","America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3","America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","Antarctica/Casey|-00 +08 +11|0 -80 -b0|0121212121212|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Pacific/Port_Moresby|+10|-a0|0||25e4","Antarctica/Macquarie|AEST AEDT -00|-a0 -b0 0|010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25","Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5","Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1C00 LA0 1C00|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4","Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|CST CDT|-80 -90|01010101010101010101010101010|-23uw0 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|01010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|IMT EET EEST +03 +04|-1U.U -20 -30 -30 -40|0121212121212121212121212121212121212121212121234312121212121212121212121212121212121212121212121212121212121212123|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|01212121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5","Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|BMT BST AST ADT|4j.i 3j.i 40 30|010102323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28p7E.G 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4","Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4","Atlantic/South_Georgia|-02|20|0||30","Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Hobart|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293iJ xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293i0 xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2","CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","EST|EST|50|0||","EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Etc/GMT-11|+11|-b0|0||","Pacific/Tarawa|+12|-c0|0||29e3","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Indian/Christmas|+07|-70|0||21e2","Etc/GMT-8|+08|-80|0||","Pacific/Palau|+09|-90|0||21e3","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5","Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5","Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5","Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5","Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5","Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4","Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|CET CEST EET EEST MSK MSD +03|-10 -20 -20 -30 -30 -40 -30|01010101010101232454545454545454543232323232323232323232323232323232323232323262|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5","Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2n5c9.l cFX9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3","Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6","Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4","Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5","Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4","Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|0123232323232323212121212121212121212121212121212121212121212121|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5","Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4","HST|HST|a0|0||","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Cocos|+0630|-6u|0||596","Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130","Indian/Mahe|LMT +04|-3F.M -40|01|-2xorF.M|79e3","Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4","Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3","MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","MST|MST|70|0||","MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0|37e3","Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4","Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-00 -12 -11 +13|0 c0 b0 -d0|0123|-1iIo0 1GsA0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|01212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0 4q00 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00|88e4","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4","Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2","Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|LMT -1120 -11|bj.E bk b0|012|-FScE.k suo0.k|12e2","Pacific/Norfolk|+1112 +1130 +1230 +11 +12|-bc -bu -cu -b0 -c0|012134343434343434343434343434343434343434|-Kgbc W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56","Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3","Pacific/Rarotonga|LMT -1030 -0930 -10|aD.4 au 9u a0|0123232323232323232323232323|-FSdk.U 13tbO.U IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|LMT +1220 +13 +14|-cj.c -ck -d0 -e0|01232323232|-XbMj.c BgLX.c 1yndk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3","PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|"],"links":["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/St_Helena","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Chicago|US/Central","America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Godthab|America/Nuuk","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Atikokan","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Phoenix|America/Creston","America/Phoenix|US/Arizona","America/Puerto_Rico|America/Anguilla","America/Puerto_Rico|America/Antigua","America/Puerto_Rico|America/Aruba","America/Puerto_Rico|America/Blanc-Sablon","America/Puerto_Rico|America/Curacao","America/Puerto_Rico|America/Dominica","America/Puerto_Rico|America/Grenada","America/Puerto_Rico|America/Guadeloupe","America/Puerto_Rico|America/Kralendijk","America/Puerto_Rico|America/Lower_Princes","America/Puerto_Rico|America/Marigot","America/Puerto_Rico|America/Montserrat","America/Puerto_Rico|America/Port_of_Spain","America/Puerto_Rico|America/St_Barthelemy","America/Puerto_Rico|America/St_Kitts","America/Puerto_Rico|America/St_Lucia","America/Puerto_Rico|America/St_Thomas","America/Puerto_Rico|America/St_Vincent","America/Puerto_Rico|America/Tortola","America/Puerto_Rico|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|America/Nassau","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Riyadh|Antarctica/Syowa","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Atlantic/Reykjavik|Iceland","Atlantic/South_Georgia|Etc/GMT+2","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Currie","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Oslo|Arctic/Longyearbyen","Europe/Oslo|Atlantic/Jan_Mayen","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Christmas|Etc/GMT-7","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Chuuk|Pacific/Truk","Pacific/Chuuk|Pacific/Yap","Pacific/Easter|Chile/EasterIsland","Pacific/Enderbury|Pacific/Kanton","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Palau|Etc/GMT-9","Pacific/Pohnpei|Pacific/Ponape","Pacific/Port_Moresby|Antarctica/DumontDUrville","Pacific/Port_Moresby|Etc/GMT-10","Pacific/Tarawa|Etc/GMT-12","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],"countries":["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Port_of_Spain America/Antigua","AI|America/Port_of_Spain America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Pacific/Auckland Antarctica/McMurdo","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla","AW|America/Curacao America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Port_of_Spain America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Brunei","BO|America/La_Paz","BQ|America/Curacao America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Blanc-Sablon America/Toronto America/Nipigon America/Thunder_Bay America/Iqaluit America/Pangnirtung America/Atikokan America/Winnipeg America/Rainy_River America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Creston America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver","CC|Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Curacao","CX|Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Copenhagen","DM|America/Port_of_Spain America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Chuuk Pacific/Pohnpei Pacific/Kosrae","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Port_of_Spain America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Accra","GI|Europe/Gibraltar","GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Port_of_Spain America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Enderbury Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Port_of_Spain America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Port_of_Spain America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Port_of_Spain America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Majuro Pacific/Kwajalein","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd Asia/Choibalsan","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Port_of_Spain America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Mazatlan America/Chihuahua America/Ojinaga America/Hermosillo America/Tijuana America/Bahia_Banderas","MY|Asia/Kuala_Lumpur Asia/Kuching","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Amsterdam","NO|Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Volgograd Europe/Astrakhan Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Oslo Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Curacao America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Indian/Reunion Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Port_of_Spain","TV|Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kiev Europe/Uzhgorod Europe/Zaporozhye","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Wake Pacific/Honolulu Pacific/Midway","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Port_of_Spain America/St_Vincent","VE|America/Caracas","VG|America/Port_of_Spain America/Tortola","VI|America/Port_of_Spain America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"]}')},4147:Y=>{"use strict";Y.exports={i8:"10.4.3"}}},Y=>{Y(Y.s=5882)}]); \ No newline at end of file